-
Notifications
You must be signed in to change notification settings - Fork 159
/
feature-section-card-link.ts
43 lines (37 loc) · 1.27 KB
/
feature-section-card-link.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @license
*
* Copyright IBM Corp. 2020, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { css } from 'lit';
import settings from '../../internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings';
import { carbonElement as customElement } from '../../internal/vendor/@carbon/web-components/globals/decorators/carbon-element';
import C4DCardCTA from '../cta/card-cta';
import styles from './feature-section.scss';
const { stablePrefix: c4dPrefix } = settings;
/**
* Feature Section Card Link.
*
* @element c4d-feature-section-card-link
*/
@customElement(`${c4dPrefix}-feature-section-card-link`)
class C4DFeatureSectionCardLink extends C4DCardCTA {
static get stableSelector() {
return `${c4dPrefix}--feature-section-card-link`;
}
// `styles` here is a `CSSResult` generated by custom WebPack loader
static get styles() {
return css`
${super.styles}${styles}
`;
}
}
console.warn(
'The feature-section-card-link component has been deprecated in favor of the card (link variant) component. ' +
'See card documentation for more information.'
);
/* @__GENERATE_REACT_CUSTOM_ELEMENT_TYPE__ */
export default C4DFeatureSectionCardLink;