@sebgroup/green-core 2.11.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/button/button.trans.styles.scss.js +1 -1
- package/components/card-linked/card-linked.component.d.ts +12 -0
- package/components/card-linked/card-linked.component.js +33 -0
- package/components/card-linked/card-linked.d.ts +2 -0
- package/components/card-linked/card-linked.js +6 -0
- package/components/card-linked/card-linked.styles.d.ts +2 -0
- package/components/card-linked/card-linked.styles.js +56 -0
- package/components/card-linked/index.d.ts +1 -0
- package/components/card-linked/index.js +1 -0
- package/components/context-menu/context-menu.component.d.ts +2 -2
- package/components/context-menu/context-menu.component.js +69 -46
- package/components/div/div.component.d.ts +15 -0
- package/components/div/div.component.js +9 -0
- package/components/div/div.styles.js +0 -6
- package/components/img/img.component.d.ts +1 -13
- package/components/img/img.component.js +7 -9
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/link/link.component.d.ts +1 -17
- package/components/link/link.component.js +2 -14
- package/components/popover/popover.component.d.ts +6 -0
- package/components/popover/popover.component.js +16 -12
- package/gds-element.js +1 -1
- package/generated/react/card/index.d.ts +3 -0
- package/generated/react/card-linked/index.d.ts +436 -0
- package/generated/react/card-linked/index.js +13 -0
- package/generated/react/card-pattern-01/index.d.ts +403 -0
- package/generated/react/card-pattern-01/index.js +15 -0
- package/generated/react/div/index.d.ts +3 -0
- package/generated/react/flex/index.d.ts +3 -0
- package/generated/react/formatted-account/index.d.ts +3 -0
- package/generated/react/formatted-date/index.d.ts +3 -0
- package/generated/react/formatted-number/index.d.ts +3 -0
- package/generated/react/grid/index.d.ts +3 -0
- package/generated/react/img/index.d.ts +6 -2
- package/generated/react/index.d.ts +7 -5
- package/generated/react/index.js +7 -5
- package/generated/react/link/index.d.ts +4 -4
- package/generated/react/mask/index.d.ts +3 -0
- package/generated/react/sensitive-account/index.d.ts +3 -0
- package/generated/react/sensitive-date/index.d.ts +3 -0
- package/generated/react/sensitive-number/index.d.ts +3 -0
- package/generated/react/text/index.d.ts +3 -0
- package/package.json +6 -2
- package/patterns/card-pattern-01/card-pattern-01.component.d.ts +48 -0
- package/patterns/card-pattern-01/card-pattern-01.component.js +258 -0
- package/patterns/card-pattern-01/card-pattern-01.d.ts +2 -0
- package/patterns/card-pattern-01/card-pattern-01.js +6 -0
- package/patterns/card-pattern-01/card-pattern-01.styles.d.ts +2 -0
- package/patterns/card-pattern-01/card-pattern-01.styles.js +23 -0
- package/patterns/card-pattern-01/index.d.ts +1 -0
- package/patterns/card-pattern-01/index.js +1 -0
- package/patterns/index.d.ts +1 -0
- package/patterns/index.js +1 -0
- package/pure.d.ts +50 -0
- package/pure.js +50 -0
- package/tokens/variables.dark.css.js +1 -1
- package/tokens/variables.light.css.js +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
- package/utils/mixins/props-image.d.ts +17 -0
- package/utils/mixins/props-image.js +35 -0
- package/utils/mixins/props-link.d.ts +17 -0
- package/utils/mixins/props-link.js +33 -0
- package/components/pure.d.ts +0 -48
- package/components/pure.js +0 -48
|
@@ -40,6 +40,9 @@ export declare const GdsSensitiveNumber: (props: React.ComponentProps<ReturnType
|
|
|
40
40
|
'flex-wrap'?: string | undefined;
|
|
41
41
|
'place-items'?: string | undefined;
|
|
42
42
|
'place-content'?: string | undefined;
|
|
43
|
+
'aspect-ratio'?: string | undefined;
|
|
44
|
+
cursor?: string | undefined;
|
|
45
|
+
'pointer-events'?: string | undefined;
|
|
43
46
|
width?: string | undefined;
|
|
44
47
|
'min-width'?: string | undefined;
|
|
45
48
|
'max-width'?: string | undefined;
|
|
@@ -35,6 +35,9 @@ export declare const GdsText: (props: React.ComponentProps<ReturnType<typeof get
|
|
|
35
35
|
'flex-wrap'?: string | undefined;
|
|
36
36
|
'place-items'?: string | undefined;
|
|
37
37
|
'place-content'?: string | undefined;
|
|
38
|
+
'aspect-ratio'?: string | undefined;
|
|
39
|
+
cursor?: string | undefined;
|
|
40
|
+
'pointer-events'?: string | undefined;
|
|
38
41
|
width?: string | undefined;
|
|
39
42
|
'min-width'?: string | undefined;
|
|
40
43
|
'max-width'?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-core",
|
|
3
3
|
"description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.12.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
7
7
|
"type": "module",
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
"./components/calendar/calendar.js",
|
|
67
67
|
"./components/calendar/functions.js",
|
|
68
68
|
"./components/calendar/index.js",
|
|
69
|
+
"./components/card-linked/card-linked.js",
|
|
70
|
+
"./components/card-linked/index.js",
|
|
69
71
|
"./components/card/card.js",
|
|
70
72
|
"./components/card/index.js",
|
|
71
73
|
"./components/checkbox/checkbox-group/checkbox-group.js",
|
|
@@ -464,7 +466,6 @@
|
|
|
464
466
|
"./components/popover/backdrop.js",
|
|
465
467
|
"./components/popover/index.js",
|
|
466
468
|
"./components/popover/popover.js",
|
|
467
|
-
"./components/pure.js",
|
|
468
469
|
"./components/radio/index.js",
|
|
469
470
|
"./components/radio/radio-group/radio-group.js",
|
|
470
471
|
"./components/radio/radio.js",
|
|
@@ -495,6 +496,9 @@
|
|
|
495
496
|
"./components/theme/theme.js",
|
|
496
497
|
"./components/video/index.js",
|
|
497
498
|
"./components/video/video.js",
|
|
499
|
+
"./patterns/card-pattern-01/card-pattern-01.js",
|
|
500
|
+
"./patterns/card-pattern-01/index.js",
|
|
501
|
+
"./patterns/index.js",
|
|
498
502
|
"./primitives/field-base/field-base.js",
|
|
499
503
|
"./primitives/field-base/index.js",
|
|
500
504
|
"./primitives/form-control-footer/form-control-footer.js",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { GdsElement } from '../../gds-element';
|
|
2
|
+
declare const GdsCardPattern01_base: (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeXProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").MarginProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").LayoutChildProps) & (new (...args: any[]) => import("../../utils/mixins/props-link").LinkProps) & (new (...args: any[]) => import("../../utils/mixins/props-image").ImageProps) & typeof GdsElement;
|
|
3
|
+
/**
|
|
4
|
+
* @element gds-card-pattern-01
|
|
5
|
+
* @status beta
|
|
6
|
+
*
|
|
7
|
+
* @slot header - Custom header content
|
|
8
|
+
* @slot footer - Action items (buttons, links)
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare class GdsCardPattern01 extends GdsCardPattern01_base {
|
|
12
|
+
#private;
|
|
13
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
14
|
+
/**
|
|
15
|
+
* The main title of the card
|
|
16
|
+
*/
|
|
17
|
+
title: string;
|
|
18
|
+
/**
|
|
19
|
+
* A brief description or summary text
|
|
20
|
+
*/
|
|
21
|
+
excerpt: string;
|
|
22
|
+
/**
|
|
23
|
+
* Optional label text used on the linked card footer decorative element.
|
|
24
|
+
*/
|
|
25
|
+
label: string;
|
|
26
|
+
/**
|
|
27
|
+
* Card background variant
|
|
28
|
+
*/
|
|
29
|
+
variant: 'neutral-01' | 'neutral-02';
|
|
30
|
+
/**
|
|
31
|
+
* Enables border styling
|
|
32
|
+
* Designed to work with neutral-02 variant
|
|
33
|
+
*/
|
|
34
|
+
outlined: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* HTML tag for the card title
|
|
37
|
+
* Controls heading level for accessibility
|
|
38
|
+
*/
|
|
39
|
+
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
40
|
+
/**
|
|
41
|
+
* Aspect ratio/format of the card's media section
|
|
42
|
+
* - landscape: 16:9 or similar horizontal format
|
|
43
|
+
* - square: 1:1 square format
|
|
44
|
+
*/
|
|
45
|
+
ratio: 'landscape' | 'square';
|
|
46
|
+
render(): any;
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass,
|
|
3
|
+
__privateAdd,
|
|
4
|
+
__privateMethod
|
|
5
|
+
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
6
|
+
var _GdsCardPattern01_instances, hasFooterContent_fn, getVariant_fn, getClasses_fn, renderLinkedCard_fn, renderLinkedFooter_fn, renderStaticCard_fn, renderStaticFooter_fn, renderCardContent_fn;
|
|
7
|
+
import { property } from "lit/decorators.js";
|
|
8
|
+
import { classMap } from "lit/directives/class-map.js";
|
|
9
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
+
import { when } from "lit/directives/when.js";
|
|
11
|
+
import { GdsCardLinked } from "../../components/card-linked/card-linked.component.js";
|
|
12
|
+
import { GdsCard } from "../../components/card/card.component.js";
|
|
13
|
+
import { GdsFlex } from "../../components/flex/flex.component.js";
|
|
14
|
+
import { IconChainLink } from "../../components/icon/icons/chain-link.js";
|
|
15
|
+
import { GdsImg } from "../../components/img/img.component.js";
|
|
16
|
+
import { GdsText } from "../../components/text/text.component.js";
|
|
17
|
+
import { GdsElement } from "../../gds-element.js";
|
|
18
|
+
import { tokens } from "../../tokens.style.js";
|
|
19
|
+
import {
|
|
20
|
+
gdsCustomElement,
|
|
21
|
+
html
|
|
22
|
+
} from "../../utils/helpers/custom-element-scoping.js";
|
|
23
|
+
import {
|
|
24
|
+
withLayoutChildProps,
|
|
25
|
+
withMarginProps,
|
|
26
|
+
withSizeXProps
|
|
27
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
28
|
+
import { withImageProps } from "../../utils/mixins/props-image.js";
|
|
29
|
+
import { withLinkProps } from "../../utils/mixins/props-link.js";
|
|
30
|
+
import CardPattern01Styles from "./card-pattern-01.styles.js";
|
|
31
|
+
let GdsCardPattern01 = class extends withSizeXProps(
|
|
32
|
+
withMarginProps(
|
|
33
|
+
withLayoutChildProps(withLinkProps(withImageProps(GdsElement)))
|
|
34
|
+
)
|
|
35
|
+
) {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
__privateAdd(this, _GdsCardPattern01_instances);
|
|
39
|
+
this.title = "";
|
|
40
|
+
this.excerpt = "";
|
|
41
|
+
this.label = "";
|
|
42
|
+
this.variant = "neutral-01";
|
|
43
|
+
this.outlined = false;
|
|
44
|
+
this.tag = "h2";
|
|
45
|
+
this.ratio = "landscape";
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return when(
|
|
49
|
+
this.href,
|
|
50
|
+
() => __privateMethod(this, _GdsCardPattern01_instances, renderLinkedCard_fn).call(this),
|
|
51
|
+
() => __privateMethod(this, _GdsCardPattern01_instances, renderStaticCard_fn).call(this)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
_GdsCardPattern01_instances = new WeakSet();
|
|
56
|
+
/**
|
|
57
|
+
* Checks if footer content exists
|
|
58
|
+
* @param isLinked - Determines if label should be considered for linked cards
|
|
59
|
+
*/
|
|
60
|
+
hasFooterContent_fn = function(isLinked = false) {
|
|
61
|
+
return isLinked && this.label || this.querySelector('[slot="footer"]');
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Determines card variant based on neutral-01/02 and outlined state
|
|
65
|
+
* neutral-01 → primary
|
|
66
|
+
* neutral-02 + outlined → secondary
|
|
67
|
+
* neutral-02 → tertiary
|
|
68
|
+
*/
|
|
69
|
+
getVariant_fn = function() {
|
|
70
|
+
switch (this.variant) {
|
|
71
|
+
case "neutral-02":
|
|
72
|
+
return this.outlined ? "secondary" : "tertiary";
|
|
73
|
+
case "neutral-01":
|
|
74
|
+
default:
|
|
75
|
+
return "primary";
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
getClasses_fn = function(type) {
|
|
79
|
+
return classMap({
|
|
80
|
+
card: true,
|
|
81
|
+
outlined: this.outlined,
|
|
82
|
+
[`card-${type}`]: !!type,
|
|
83
|
+
[`variant-${this.variant}`]: true,
|
|
84
|
+
[`ratio-${this.ratio}`]: true
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Renders linked version of the card
|
|
89
|
+
* Includes href, target, and rel attributes
|
|
90
|
+
*/
|
|
91
|
+
renderLinkedCard_fn = function() {
|
|
92
|
+
return html`
|
|
93
|
+
<gds-card-linked
|
|
94
|
+
padding="0"
|
|
95
|
+
gap="0"
|
|
96
|
+
href=${ifDefined(this.href)}
|
|
97
|
+
target=${ifDefined(this.target)}
|
|
98
|
+
rel=${ifDefined(this.rel)}
|
|
99
|
+
variant=${__privateMethod(this, _GdsCardPattern01_instances, getVariant_fn).call(this)}
|
|
100
|
+
class=${__privateMethod(this, _GdsCardPattern01_instances, getClasses_fn).call(this, "linked")}
|
|
101
|
+
>
|
|
102
|
+
${__privateMethod(this, _GdsCardPattern01_instances, renderCardContent_fn).call(this)}
|
|
103
|
+
</gds-card-linked>
|
|
104
|
+
`;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Renders footer for linked cards
|
|
108
|
+
* Includes accessibility attributes and default link
|
|
109
|
+
*/
|
|
110
|
+
renderLinkedFooter_fn = function() {
|
|
111
|
+
return when(
|
|
112
|
+
__privateMethod(this, _GdsCardPattern01_instances, hasFooterContent_fn).call(this, true),
|
|
113
|
+
() => html`
|
|
114
|
+
<gds-flex
|
|
115
|
+
font="detail-book-m"
|
|
116
|
+
align-items="center"
|
|
117
|
+
gap="s"
|
|
118
|
+
pointer-events="none"
|
|
119
|
+
aria-hidden="true"
|
|
120
|
+
inert
|
|
121
|
+
>
|
|
122
|
+
<slot name="footer">
|
|
123
|
+
${when(
|
|
124
|
+
this.label,
|
|
125
|
+
() => html`
|
|
126
|
+
<gds-link href=${ifDefined(this.href)}>
|
|
127
|
+
<gds-icon-chain-link slot="lead"></gds-icon-chain-link>
|
|
128
|
+
${this.label}
|
|
129
|
+
</gds-link>
|
|
130
|
+
`
|
|
131
|
+
)}
|
|
132
|
+
</slot>
|
|
133
|
+
</gds-flex>
|
|
134
|
+
`
|
|
135
|
+
);
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Renders static version of the card
|
|
139
|
+
* Used when no href is provided
|
|
140
|
+
*/
|
|
141
|
+
renderStaticCard_fn = function() {
|
|
142
|
+
return html`
|
|
143
|
+
<gds-card
|
|
144
|
+
padding="0"
|
|
145
|
+
gap="0"
|
|
146
|
+
variant=${__privateMethod(this, _GdsCardPattern01_instances, getVariant_fn).call(this)}
|
|
147
|
+
class=${__privateMethod(this, _GdsCardPattern01_instances, getClasses_fn).call(this, "static")}
|
|
148
|
+
>
|
|
149
|
+
${__privateMethod(this, _GdsCardPattern01_instances, renderCardContent_fn).call(this)}
|
|
150
|
+
</gds-card>
|
|
151
|
+
`;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Renders footer for static cards
|
|
155
|
+
* Simple slot without accessibility restrictions
|
|
156
|
+
*/
|
|
157
|
+
renderStaticFooter_fn = function() {
|
|
158
|
+
return when(
|
|
159
|
+
__privateMethod(this, _GdsCardPattern01_instances, hasFooterContent_fn).call(this),
|
|
160
|
+
() => html`
|
|
161
|
+
<gds-flex font="detail-book-m" align-items="center" gap="s">
|
|
162
|
+
<slot name="footer"></slot>
|
|
163
|
+
</gds-flex>
|
|
164
|
+
`
|
|
165
|
+
);
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Renders card content structure
|
|
169
|
+
* Includes media, header slot, title/excerpt, and footer
|
|
170
|
+
* Header slot only shows when no media is present
|
|
171
|
+
*/
|
|
172
|
+
renderCardContent_fn = function() {
|
|
173
|
+
return html`
|
|
174
|
+
${when(
|
|
175
|
+
this.src,
|
|
176
|
+
() => html`
|
|
177
|
+
<gds-flex padding="xs xs 0 xs">
|
|
178
|
+
<gds-img
|
|
179
|
+
src=${ifDefined(this.src)}
|
|
180
|
+
srcset=${ifDefined(this.srcset)}
|
|
181
|
+
sizes=${ifDefined(this.sizes)}
|
|
182
|
+
width="100%"
|
|
183
|
+
height="100%"
|
|
184
|
+
object-fit="cover"
|
|
185
|
+
object-position="center"
|
|
186
|
+
border-radius="xs"
|
|
187
|
+
aspect-ratio=${this.ratio === "square" ? "1/1" : "16/9"}
|
|
188
|
+
loading=${ifDefined(this.loading)}
|
|
189
|
+
decoding=${ifDefined(this.decoding)}
|
|
190
|
+
alt=${ifDefined(this.alt)}
|
|
191
|
+
class="card-media"
|
|
192
|
+
></gds-img>
|
|
193
|
+
</gds-flex>
|
|
194
|
+
`
|
|
195
|
+
)}
|
|
196
|
+
<gds-flex flex-direction="column" gap="xl" padding="xl">
|
|
197
|
+
${when(!this.src, () => html`<slot name="header"></slot>`)}
|
|
198
|
+
${when(
|
|
199
|
+
this.title || this.excerpt,
|
|
200
|
+
() => html`
|
|
201
|
+
<gds-flex flex-direction="column" gap="xs">
|
|
202
|
+
${when(
|
|
203
|
+
this.title,
|
|
204
|
+
() => html`
|
|
205
|
+
<gds-text tag=${ifDefined(this.tag)} font="heading-s">
|
|
206
|
+
${this.title}
|
|
207
|
+
</gds-text>
|
|
208
|
+
`
|
|
209
|
+
)}
|
|
210
|
+
${when(
|
|
211
|
+
this.excerpt,
|
|
212
|
+
() => html`
|
|
213
|
+
<gds-text tag="p" lines="3" font="body-regular-m">
|
|
214
|
+
${this.excerpt}
|
|
215
|
+
</gds-text>
|
|
216
|
+
`
|
|
217
|
+
)}
|
|
218
|
+
</gds-flex>
|
|
219
|
+
`
|
|
220
|
+
)}
|
|
221
|
+
${when(
|
|
222
|
+
this.href,
|
|
223
|
+
() => __privateMethod(this, _GdsCardPattern01_instances, renderLinkedFooter_fn).call(this),
|
|
224
|
+
() => __privateMethod(this, _GdsCardPattern01_instances, renderStaticFooter_fn).call(this)
|
|
225
|
+
)}
|
|
226
|
+
</gds-flex>
|
|
227
|
+
`;
|
|
228
|
+
};
|
|
229
|
+
GdsCardPattern01.styles = [tokens, CardPattern01Styles];
|
|
230
|
+
__decorateClass([
|
|
231
|
+
property({ reflect: false })
|
|
232
|
+
], GdsCardPattern01.prototype, "title", 2);
|
|
233
|
+
__decorateClass([
|
|
234
|
+
property({ reflect: false })
|
|
235
|
+
], GdsCardPattern01.prototype, "excerpt", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
property({ reflect: false })
|
|
238
|
+
], GdsCardPattern01.prototype, "label", 2);
|
|
239
|
+
__decorateClass([
|
|
240
|
+
property({ reflect: false })
|
|
241
|
+
], GdsCardPattern01.prototype, "variant", 2);
|
|
242
|
+
__decorateClass([
|
|
243
|
+
property({ type: Boolean, reflect: false })
|
|
244
|
+
], GdsCardPattern01.prototype, "outlined", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
property({ reflect: false })
|
|
247
|
+
], GdsCardPattern01.prototype, "tag", 2);
|
|
248
|
+
__decorateClass([
|
|
249
|
+
property({ reflect: false, attribute: "aspect-ratio" })
|
|
250
|
+
], GdsCardPattern01.prototype, "ratio", 2);
|
|
251
|
+
GdsCardPattern01 = __decorateClass([
|
|
252
|
+
gdsCustomElement("gds-card-pattern-01", {
|
|
253
|
+
dependsOn: [GdsCard, GdsCardLinked, GdsImg, GdsText, GdsFlex, IconChainLink]
|
|
254
|
+
})
|
|
255
|
+
], GdsCardPattern01);
|
|
256
|
+
export {
|
|
257
|
+
GdsCardPattern01
|
|
258
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "../../chunks/chunk.QU3DSPNU.js";
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
const style = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
height: max-content;
|
|
7
|
+
text-align: left;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.card-media {
|
|
11
|
+
transition-timing-function: var(--gds-sys-motion-easing-linear);
|
|
12
|
+
transition-duration: var(--gds-sys-motion-duration-fast);
|
|
13
|
+
transition-property: opacity;
|
|
14
|
+
|
|
15
|
+
@starting-style {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
var card_pattern_01_styles_default = style;
|
|
21
|
+
export {
|
|
22
|
+
card_pattern_01_styles_default as default
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './card-pattern-01';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./card-pattern-01.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './card-pattern-01/card-pattern-01';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./card-pattern-01/card-pattern-01.js";
|
package/pure.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export * from './primitives/listbox/option.component';
|
|
2
|
+
export * from './primitives/menu/menu-heading.component';
|
|
3
|
+
export * from './primitives/menu/menu-item.component';
|
|
4
|
+
export * from './components/alert/alert.component';
|
|
5
|
+
export * from './components/badge/badge.component';
|
|
6
|
+
export * from './components/blur/blur.component';
|
|
7
|
+
export * from './components/breadcrumbs/breadcrumbs.component';
|
|
8
|
+
export * from './components/breadcrumbs/breadcrumb/breadcrumb.component';
|
|
9
|
+
export * from './components/button/button.component';
|
|
10
|
+
export * from './components/calendar/calendar.component';
|
|
11
|
+
export * from './components/card/card.component';
|
|
12
|
+
export * from './components/card-linked/card-linked.component';
|
|
13
|
+
export * from './components/checkbox/checkbox-group/checkbox-group.component';
|
|
14
|
+
export * from './components/checkbox/checkbox.component';
|
|
15
|
+
export * from './components/coachmark/coachmark.component';
|
|
16
|
+
export * from './components/context-menu/context-menu.component';
|
|
17
|
+
export * from './components/datepicker/datepicker.component';
|
|
18
|
+
export * from './components/dialog/dialog.component';
|
|
19
|
+
export * from './components/div/div.component';
|
|
20
|
+
export * from './components/divider/divider.component';
|
|
21
|
+
export * from './components/dropdown/dropdown.component';
|
|
22
|
+
export * from './components/fab/fab.component';
|
|
23
|
+
export * from './components/filter-chips/filter-chips.component';
|
|
24
|
+
export * from './components/flex/flex.component';
|
|
25
|
+
export * from './components/form-summary/summary.component';
|
|
26
|
+
export * from './components/grid/grid.component';
|
|
27
|
+
export * from './components/grouped-list/grouped-list.component';
|
|
28
|
+
export * from './components/icon/icon.component';
|
|
29
|
+
export * from './components/icon/icons/pure';
|
|
30
|
+
export * from './components/img/img.component';
|
|
31
|
+
export * from './components/input/input.component';
|
|
32
|
+
export * from './components/link/link.component';
|
|
33
|
+
export * from './components/mask/mask.component';
|
|
34
|
+
export * from './components/menu-button/menu-button.component';
|
|
35
|
+
export * from './components/popover/popover.component';
|
|
36
|
+
export * from './components/radio/radio-group/radio-group.component';
|
|
37
|
+
export * from './components/radio/radio.component';
|
|
38
|
+
export * from './components/rich-text/rich-text.component';
|
|
39
|
+
export * from './components/segmented-control/segmented-control.component';
|
|
40
|
+
export * from './components/sensitive/number/sensitive-number.component';
|
|
41
|
+
export * from './components/sensitive/date/sensitive-date.component';
|
|
42
|
+
export * from './components/sensitive/account/sensitive-account.component';
|
|
43
|
+
export * from './components/select/select.component';
|
|
44
|
+
export * from './components/signal/signal.component';
|
|
45
|
+
export * from './components/spinner/spinner.component';
|
|
46
|
+
export * from './components/text/text.component';
|
|
47
|
+
export * from './components/textarea/textarea.component';
|
|
48
|
+
export * from './components/theme/theme.component';
|
|
49
|
+
export * from './components/video/video.component';
|
|
50
|
+
export * from './patterns/card-pattern-01/card-pattern-01.component';
|
package/pure.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export * from "./primitives/listbox/option.component.js";
|
|
2
|
+
export * from "./primitives/menu/menu-heading.component.js";
|
|
3
|
+
export * from "./primitives/menu/menu-item.component.js";
|
|
4
|
+
export * from "./components/alert/alert.component.js";
|
|
5
|
+
export * from "./components/badge/badge.component.js";
|
|
6
|
+
export * from "./components/blur/blur.component.js";
|
|
7
|
+
export * from "./components/breadcrumbs/breadcrumbs.component.js";
|
|
8
|
+
export * from "./components/breadcrumbs/breadcrumb/breadcrumb.component.js";
|
|
9
|
+
export * from "./components/button/button.component.js";
|
|
10
|
+
export * from "./components/calendar/calendar.component.js";
|
|
11
|
+
export * from "./components/card/card.component.js";
|
|
12
|
+
export * from "./components/card-linked/card-linked.component.js";
|
|
13
|
+
export * from "./components/checkbox/checkbox-group/checkbox-group.component.js";
|
|
14
|
+
export * from "./components/checkbox/checkbox.component.js";
|
|
15
|
+
export * from "./components/coachmark/coachmark.component.js";
|
|
16
|
+
export * from "./components/context-menu/context-menu.component.js";
|
|
17
|
+
export * from "./components/datepicker/datepicker.component.js";
|
|
18
|
+
export * from "./components/dialog/dialog.component.js";
|
|
19
|
+
export * from "./components/div/div.component.js";
|
|
20
|
+
export * from "./components/divider/divider.component.js";
|
|
21
|
+
export * from "./components/dropdown/dropdown.component.js";
|
|
22
|
+
export * from "./components/fab/fab.component.js";
|
|
23
|
+
export * from "./components/filter-chips/filter-chips.component.js";
|
|
24
|
+
export * from "./components/flex/flex.component.js";
|
|
25
|
+
export * from "./components/form-summary/summary.component.js";
|
|
26
|
+
export * from "./components/grid/grid.component.js";
|
|
27
|
+
export * from "./components/grouped-list/grouped-list.component.js";
|
|
28
|
+
export * from "./components/icon/icon.component.js";
|
|
29
|
+
export * from "./components/icon/icons/pure.js";
|
|
30
|
+
export * from "./components/img/img.component.js";
|
|
31
|
+
export * from "./components/input/input.component.js";
|
|
32
|
+
export * from "./components/link/link.component.js";
|
|
33
|
+
export * from "./components/mask/mask.component.js";
|
|
34
|
+
export * from "./components/menu-button/menu-button.component.js";
|
|
35
|
+
export * from "./components/popover/popover.component.js";
|
|
36
|
+
export * from "./components/radio/radio-group/radio-group.component.js";
|
|
37
|
+
export * from "./components/radio/radio.component.js";
|
|
38
|
+
export * from "./components/rich-text/rich-text.component.js";
|
|
39
|
+
export * from "./components/segmented-control/segmented-control.component.js";
|
|
40
|
+
export * from "./components/sensitive/number/sensitive-number.component.js";
|
|
41
|
+
export * from "./components/sensitive/date/sensitive-date.component.js";
|
|
42
|
+
export * from "./components/sensitive/account/sensitive-account.component.js";
|
|
43
|
+
export * from "./components/select/select.component.js";
|
|
44
|
+
export * from "./components/signal/signal.component.js";
|
|
45
|
+
export * from "./components/spinner/spinner.component.js";
|
|
46
|
+
export * from "./components/text/text.component.js";
|
|
47
|
+
export * from "./components/textarea/textarea.component.js";
|
|
48
|
+
export * from "./components/theme/theme.component.js";
|
|
49
|
+
export * from "./components/video/video.component.js";
|
|
50
|
+
export * from "./patterns/card-pattern-01/card-pattern-01.component.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n\n color-scheme: dark;\n --gds-sys-color-l1-neutral-01: #0a0b0b;\n --gds-sys-color-l1-neutral-02: #
|
|
1
|
+
const styles = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n\n color-scheme: dark;\n --gds-sys-color-l1-neutral-01: #0a0b0b;\n --gds-sys-color-l1-neutral-02: #0a0b0b;\n --gds-sys-color-l1-brand-01: #003824;\n --gds-sys-color-l1-inversed: #ffffff;\n --gds-sys-color-l2-neutral-01: #191a1a;\n --gds-sys-color-l2-neutral-02: #191a1a;\n --gds-sys-color-l2-neutral-03: #3b3f3e;\n --gds-sys-color-l2-brand-01: #003824;\n --gds-sys-color-l2-brand-02: #231d10;\n --gds-sys-color-l2-positive-01: #003d26;\n --gds-sys-color-l2-negative-01: #451207;\n --gds-sys-color-l2-warning-01: #482a05;\n --gds-sys-color-l2-information-01: #1e201f;\n --gds-sys-color-l2-notice-01: #00294d;\n --gds-sys-color-l3-brand-01: #d5d7d7;\n --gds-sys-color-l3-brand-02: #efe9dc;\n --gds-sys-color-l3-brand-03: #e7ddcb;\n --gds-sys-color-l3-neutral-01: #d5d7d7;\n --gds-sys-color-l3-neutral-02: #282a29;\n --gds-sys-color-l3-neutral-03: #3b3f3e;\n --gds-sys-color-l3-neutral-04: #3b3f3e;\n --gds-sys-color-l3-neutral-05: #003824;\n --gds-sys-color-l3-positive-01: #026436;\n --gds-sys-color-l3-positive-02: #015130;\n --gds-sys-color-l3-positive-03: #003d26;\n --gds-sys-color-l3-negative-01: #a22911;\n --gds-sys-color-l3-negative-02: #731d0c;\n --gds-sys-color-l3-negative-03: #5c170a;\n --gds-sys-color-l3-notice-01: #005fb3;\n --gds-sys-color-l3-notice-02: #004480;\n --gds-sys-color-l3-notice-03: #003666;\n --gds-sys-color-l3-warning-01: #f19e38;\n --gds-sys-color-l3-warning-02: #774508;\n --gds-sys-color-l3-warning-03: #5f3707;\n --gds-sys-color-l3-information-01: #d5d7d7;\n --gds-sys-color-l3-information-02: #313533;\n --gds-sys-color-l3-information-03: #595f5d;\n --gds-sys-color-l3-disabled-01: #595f5d;\n --gds-sys-color-l3-disabled-02: #595f5d;\n --gds-sys-color-l3-disabled-03: #818886;\n --gds-sys-color-border-interactive: #a0a6a4;\n --gds-sys-color-border-subtle-01: #595f5d;\n --gds-sys-color-border-subtle-02: #777e7c;\n --gds-sys-color-border-strong: #f7f8f7;\n --gds-sys-color-border-inverse: #ffffff;\n --gds-sys-color-border-information-01: #636967;\n --gds-sys-color-border-positive-01: #8ae58d;\n --gds-sys-color-border-negative-01: #f08975;\n --gds-sys-color-border-warning-01: #f5b970;\n --gds-sys-color-border-notice-01: #66b8ff;\n --gds-sys-color-border-information-02: rgba(99, 105, 103, 0.4);\n --gds-sys-color-border-positive-02: rgba(138, 229, 141, 0.4);\n --gds-sys-color-border-negative-02: rgba(240, 137, 117, 0.4);\n --gds-sys-color-border-warning-02: rgba(245, 185, 112, 0.4);\n --gds-sys-color-border-notice-02: rgba(102, 184, 255, 0.4);\n --gds-sys-color-content-neutral-01: #f7f8f7;\n --gds-sys-color-content-neutral-02: #abb0ae;\n --gds-sys-color-content-neutral-03: #0a0b0b;\n --gds-sys-color-content-neutral-04: #595f5d;\n --gds-sys-color-content-inversed: #f7f8f7;\n --gds-sys-color-content-brand-01: #003824;\n --gds-sys-color-content-brand-02: #d6c7a8;\n --gds-sys-color-content-positive-01: #8ae58d;\n --gds-sys-color-content-positive-02: #027839;\n --gds-sys-color-content-positive-03: #8ae58d;\n --gds-sys-color-content-negative-01: #f08975;\n --gds-sys-color-content-negative-02: #f5b0a3;\n --gds-sys-color-content-warning-01: #f5b970;\n --gds-sys-color-content-warning-02: #fce8cf;\n --gds-sys-color-content-notice-01: #66b8ff;\n --gds-sys-color-content-notice-02: #99cfff;\n --gds-sys-color-content-disabled-01: #cacecc;\n --gds-sys-color-content-disabled-02: #cacecc;\n --gds-sys-color-state-brand-01: #000000 20%;\n --gds-sys-color-state-brand-02: #000000 30%;\n --gds-sys-color-state-brand-03: #003824 30%;\n --gds-sys-color-state-brand-04: #003824 70%;\n --gds-sys-color-state-brand-05: #003824 50%;\n --gds-sys-color-state-brand-06: #003824 90%;\n --gds-sys-color-state-neutral-01: #000000 20%;\n --gds-sys-color-state-neutral-02: #000000 35%;\n --gds-sys-color-state-neutral-03: #ffffff 20%;\n --gds-sys-color-state-neutral-04: #ffffff 30%;\n --gds-sys-color-state-neutral-05: #ffffff 12%;\n --gds-sys-color-state-neutral-06: #ffffff 25%;\n --gds-sys-color-state-positive-01: #000000 12%;\n --gds-sys-color-state-positive-02: #000000 23%;\n --gds-sys-color-state-positive-03: #ffffff 8%;\n --gds-sys-color-state-positive-04: #ffffff 14%;\n --gds-sys-color-state-positive-05: #027839 30%;\n --gds-sys-color-state-positive-06: #027839 50%;\n --gds-sys-color-state-negative-01: #000000 15%;\n --gds-sys-color-state-negative-02: #000000 30%;\n --gds-sys-color-state-negative-03: #ffffff 8%;\n --gds-sys-color-state-negative-04: #ffffff 14%;\n --gds-sys-color-state-negative-05: #b92f13 30%;\n --gds-sys-color-state-negative-06: #b92f13 45%;\n --gds-sys-color-state-notice-01: #000000 12%;\n --gds-sys-color-state-notice-02: #000000 20%;\n --gds-sys-color-state-notice-03: #ffffff 6%;\n --gds-sys-color-state-notice-04: #ffffff 10%;\n --gds-sys-color-state-notice-05: #005fb3 40%;\n --gds-sys-color-state-notice-06: #005fb3 60%;\n --gds-sys-color-state-warning-01: #000000 6%;\n --gds-sys-color-state-warning-02: #000000 14%;\n --gds-sys-color-state-warning-03: #ffffff 8%;\n --gds-sys-color-state-warning-04: #ffffff 14%;\n --gds-sys-color-state-warning-05: #f19e38 12%;\n --gds-sys-color-state-warning-06: #f19e38 20%;";
|
|
2
2
|
export default styles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n\n color-scheme: light;\n --gds-sys-color-l1-neutral-01: #ffffff;\n --gds-sys-color-l1-neutral-02: #
|
|
1
|
+
const styles = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n\n color-scheme: light;\n --gds-sys-color-l1-neutral-01: #ffffff;\n --gds-sys-color-l1-neutral-02: #f4f5f5;\n --gds-sys-color-l1-brand-01: #003824;\n --gds-sys-color-l1-inversed: #0a0b0b;\n --gds-sys-color-l2-neutral-01: #f7f8f7;\n --gds-sys-color-l2-neutral-02: #ffffff;\n --gds-sys-color-l2-neutral-03: #0a0b0b;\n --gds-sys-color-l2-brand-01: #003824;\n --gds-sys-color-l2-brand-02: #f8f6f1;\n --gds-sys-color-l2-positive-01: #f1f9f1;\n --gds-sys-color-l2-negative-01: #fef7f6;\n --gds-sys-color-l2-warning-01: #fef8f1;\n --gds-sys-color-l2-information-01: #f7f8f7;\n --gds-sys-color-l2-notice-01: #f5faff;\n --gds-sys-color-l3-brand-01: #003824;\n --gds-sys-color-l3-brand-02: #efe9dc;\n --gds-sys-color-l3-brand-03: #e7ddcb;\n --gds-sys-color-l3-neutral-01: #0a0b0b;\n --gds-sys-color-l3-neutral-02: #eaebeb;\n --gds-sys-color-l3-neutral-03: #d5d7d7;\n --gds-sys-color-l3-neutral-04: #ffffff;\n --gds-sys-color-l3-neutral-05: #ffffff;\n --gds-sys-color-l3-positive-01: #027839;\n --gds-sys-color-l3-positive-02: #dcefdc;\n --gds-sys-color-l3-positive-03: #cceacc;\n --gds-sys-color-l3-negative-01: #b92f13;\n --gds-sys-color-l3-negative-02: #fdebe8;\n --gds-sys-color-l3-negative-03: #fad8d1;\n --gds-sys-color-l3-notice-01: #005fb3;\n --gds-sys-color-l3-notice-02: #e6f3ff;\n --gds-sys-color-l3-notice-03: #cce7ff;\n --gds-sys-color-l3-warning-01: #8f530a;\n --gds-sys-color-l3-warning-02: #fce8cf;\n --gds-sys-color-l3-warning-03: #fadcb7;\n --gds-sys-color-l3-information-01: #0a0b0b;\n --gds-sys-color-l3-information-02: #eaebeb;\n --gds-sys-color-l3-information-03: #dfe1e1;\n --gds-sys-color-l3-disabled-01: #eff0f0;\n --gds-sys-color-l3-disabled-02: #a0a6a4;\n --gds-sys-color-l3-disabled-03: #eff0f0;\n --gds-sys-color-border-interactive: #777e7c;\n --gds-sys-color-border-subtle-01: #dfe1e1;\n --gds-sys-color-border-subtle-02: #eff0f0;\n --gds-sys-color-border-strong: #0a0b0b;\n --gds-sys-color-border-inverse: #ffffff;\n --gds-sys-color-border-information-01: #0a0b0b;\n --gds-sys-color-border-positive-01: #027839;\n --gds-sys-color-border-negative-01: #b92f13;\n --gds-sys-color-border-warning-01: #8f530a;\n --gds-sys-color-border-notice-01: #005fb3;\n --gds-sys-color-border-information-02: rgba(10, 11, 11, 0.4);\n --gds-sys-color-border-positive-02: rgba(2, 120, 57, 0.4);\n --gds-sys-color-border-negative-02: rgba(185, 47, 19, 0.4);\n --gds-sys-color-border-warning-02: rgba(143, 83, 10, 0.4);\n --gds-sys-color-border-notice-02: rgba(0, 95, 179, 0.4);\n --gds-sys-color-content-neutral-01: #0a0b0b;\n --gds-sys-color-content-neutral-02: #636967;\n --gds-sys-color-content-neutral-03: #ffffff;\n --gds-sys-color-content-neutral-04: #a0a6a4;\n --gds-sys-color-content-inversed: #ffffff;\n --gds-sys-color-content-brand-01: #003824;\n --gds-sys-color-content-brand-02: #685631;\n --gds-sys-color-content-positive-01: #027839;\n --gds-sys-color-content-positive-02: #eaf6ea;\n --gds-sys-color-content-positive-03: #026436;\n --gds-sys-color-content-negative-01: #b92f13;\n --gds-sys-color-content-negative-02: #fdebe8;\n --gds-sys-color-content-warning-01: #8f530a;\n --gds-sys-color-content-warning-02: #fce8cf;\n --gds-sys-color-content-notice-01: #005fb3;\n --gds-sys-color-content-notice-02: #e6f3ff;\n --gds-sys-color-content-disabled-01: #a0a6a4;\n --gds-sys-color-content-disabled-02: #f7f8f7;\n --gds-sys-color-state-brand-01: #ffffff 20%;\n --gds-sys-color-state-brand-02: #ffffff 35%;\n --gds-sys-color-state-brand-03: #003824 6%;\n --gds-sys-color-state-brand-04: #003824 14%;\n --gds-sys-color-state-brand-05: #003824 6%;\n --gds-sys-color-state-brand-06: #003824 14%;\n --gds-sys-color-state-neutral-01: #ffffff 20%;\n --gds-sys-color-state-neutral-02: #ffffff 35%;\n --gds-sys-color-state-neutral-03: #000000 6%;\n --gds-sys-color-state-neutral-04: #000000 14%;\n --gds-sys-color-state-neutral-05: #000000 6%;\n --gds-sys-color-state-neutral-06: #000000 14%;\n --gds-sys-color-state-positive-01: #ffffff 12%;\n --gds-sys-color-state-positive-02: #ffffff 23%;\n --gds-sys-color-state-positive-03: #027839 8%;\n --gds-sys-color-state-positive-04: #027839 16%;\n --gds-sys-color-state-positive-05: #027839 8%;\n --gds-sys-color-state-positive-06: #027839 16%;\n --gds-sys-color-state-negative-01: #ffffff 8%;\n --gds-sys-color-state-negative-02: #ffffff 16%;\n --gds-sys-color-state-negative-03: #b92f13 8%;\n --gds-sys-color-state-negative-04: #b92f13 16%;\n --gds-sys-color-state-negative-05: #b92f13 8%;\n --gds-sys-color-state-negative-06: #b92f13 16%;\n --gds-sys-color-state-notice-01: #ffffff 20%;\n --gds-sys-color-state-notice-02: #ffffff 35%;\n --gds-sys-color-state-notice-03: #005fb3 8%;\n --gds-sys-color-state-notice-04: #005fb3 16%;\n --gds-sys-color-state-notice-05: #005fb3 8%;\n --gds-sys-color-state-notice-06: #005fb3 16%;\n --gds-sys-color-state-warning-01: #ffffff 20%;\n --gds-sys-color-state-warning-02: #ffffff 35%;\n --gds-sys-color-state-warning-03: #8f530a 8%;\n --gds-sys-color-state-warning-04: #8f530a 16%;\n --gds-sys-color-state-warning-05: #8f530a 8%;\n --gds-sys-color-state-warning-06: #8f530a 16%;";
|
|
2
2
|
export default styles;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GdsElement } from '../../gds-element';
|
|
2
|
+
type Constructor<T = GdsElement> = new (...args: any[]) => T;
|
|
3
|
+
export interface ImageProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
srcset?: string;
|
|
6
|
+
sizes?: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
loading?: 'lazy' | 'eager';
|
|
9
|
+
decoding?: 'auto' | 'sync' | 'async';
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Mixin that adds image-related properties to a component.
|
|
13
|
+
* Use this for any component that needs to display images with responsive
|
|
14
|
+
* and accessibility support.
|
|
15
|
+
*/
|
|
16
|
+
export declare function withImageProps<T extends Constructor<GdsElement>>(base: T): Constructor<ImageProps> & T;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass
|
|
3
|
+
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
4
|
+
import { property } from "lit/decorators.js";
|
|
5
|
+
function withImageProps(base) {
|
|
6
|
+
class ImagePropsMixin extends base {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.loading = "lazy";
|
|
10
|
+
this.decoding = "auto";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
__decorateClass([
|
|
14
|
+
property({ reflect: false })
|
|
15
|
+
], ImagePropsMixin.prototype, "src", 2);
|
|
16
|
+
__decorateClass([
|
|
17
|
+
property({ reflect: false })
|
|
18
|
+
], ImagePropsMixin.prototype, "srcset", 2);
|
|
19
|
+
__decorateClass([
|
|
20
|
+
property({ reflect: false })
|
|
21
|
+
], ImagePropsMixin.prototype, "sizes", 2);
|
|
22
|
+
__decorateClass([
|
|
23
|
+
property({ reflect: false })
|
|
24
|
+
], ImagePropsMixin.prototype, "alt", 2);
|
|
25
|
+
__decorateClass([
|
|
26
|
+
property({ reflect: false })
|
|
27
|
+
], ImagePropsMixin.prototype, "loading", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
property({ reflect: false })
|
|
30
|
+
], ImagePropsMixin.prototype, "decoding", 2);
|
|
31
|
+
return ImagePropsMixin;
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
withImageProps
|
|
35
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GdsElement } from '../../gds-element';
|
|
2
|
+
type Constructor<T = GdsElement> = new (...args: any[]) => T;
|
|
3
|
+
/**
|
|
4
|
+
* Interface defining the properties available for link functionality
|
|
5
|
+
*/
|
|
6
|
+
export interface LinkProps {
|
|
7
|
+
href?: string;
|
|
8
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
9
|
+
rel?: string;
|
|
10
|
+
download?: string | boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Mixin that adds link-related properties to a component.
|
|
14
|
+
* Provides standard anchor/link functionality with built-in security features.
|
|
15
|
+
*/
|
|
16
|
+
export declare function withLinkProps<T extends Constructor<GdsElement>>(base: T): Constructor<LinkProps> & T;
|
|
17
|
+
export {};
|