@sebgroup/green-core 1.41.4 → 1.43.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/chunks/{chunk.LFJRIUDW.js → chunk.27E4EAEK.js} +1 -1
- package/chunks/{chunk.OZKMO7MO.js → chunk.45G6WXHQ.js} +4 -4
- package/chunks/{chunk.U5ZRINAQ.js → chunk.5ILTFS7Z.js} +4 -4
- package/chunks/{chunk.TIZKFTOL.js → chunk.6TK2YLON.js} +4 -4
- package/chunks/{chunk.7LRXZSEN.js → chunk.7DT5MKRB.js} +16 -16
- package/chunks/{chunk.5HZZAANC.js → chunk.AYPTUHYC.js} +36 -8
- package/chunks/chunk.BMCPXEME.js +547 -0
- package/chunks/{chunk.PGF5IHBJ.js → chunk.BSBZ273F.js} +4 -5
- package/chunks/{chunk.QMCIUYKV.js → chunk.BV4C5SVG.js} +4 -4
- package/chunks/{chunk.46EN32JA.js → chunk.C7Y7PTZR.js} +4 -3
- package/chunks/chunk.CK2UGCPG.js +0 -0
- package/chunks/{chunk.3CMOBJLQ.js → chunk.COV7GAYR.js} +1 -1
- package/chunks/chunk.CXRT6D5K.js +37 -0
- package/chunks/chunk.FJYZD6XI.js +85 -0
- package/chunks/{chunk.UYKGWW26.js → chunk.G5USMKIK.js} +4 -4
- package/chunks/chunk.GWCQWDVH.js +652 -0
- package/chunks/{chunk.5OEMCN3X.js → chunk.GZZHMTT6.js} +4 -4
- package/chunks/{chunk.4VW724L2.js → chunk.JMCXGEXD.js} +1 -1
- package/chunks/{chunk.6UWH3HEF.js → chunk.MPWX3JFB.js} +185 -69
- package/chunks/chunk.MRMXDOA5.js +0 -0
- package/chunks/{chunk.KDPIWUU4.js → chunk.N36GFO5Q.js} +2 -2
- package/chunks/{chunk.NCVXC67U.js → chunk.O7DQRPML.js} +36 -12
- package/chunks/{chunk.CB6SQEYF.js → chunk.PINFIHVO.js} +1 -1
- package/chunks/{chunk.7QHWOINK.js → chunk.QX3VLACM.js} +2 -2
- package/chunks/chunk.SIMOQIAG.js +363 -0
- package/chunks/{chunk.35VXSWIL.js → chunk.U5ZHQXSW.js} +24 -14
- package/chunks/chunk.U7PZF5JG.js +142 -0
- package/chunks/{chunk.UNXDEINN.js → chunk.UO5V45G5.js} +3 -3
- package/chunks/{chunk.2WIGXRMD.js → chunk.VM32X2K4.js} +303 -301
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/{chunk.GHL35SB7.js → chunk.WPF76QMP.js} +33 -9
- package/chunks/{chunk.ADPMTWTS.js → chunk.XKACXVCM.js} +55 -44
- package/chunks/{chunk.Z27WVNGN.js → chunk.XUSFHKBA.js} +1 -1
- package/chunks/chunk.YGBQCHTD.js +107 -0
- package/chunks/{chunk.2BMJPIND.js → chunk.YUFO2JLT.js} +4 -1
- package/components/badge/badge.d.ts +27 -3
- package/components/badge/badge.figma.js +2 -2
- package/components/badge/badge.js +2 -4
- package/components/badge/index.js +3 -4
- package/components/button/button.d.ts +1 -1
- package/components/button/button.js +4 -5
- package/components/button/fab/fab.js +6 -7
- package/components/button/fab/index.js +6 -7
- package/components/button/index.js +4 -5
- package/components/calendar/calendar.js +2 -2
- package/components/calendar/index.js +2 -2
- package/components/content/divider/divider.js +3 -3
- package/components/content/divider/index.js +3 -3
- package/components/content/spacer/index.js +3 -3
- package/components/content/spacer/spacer.js +3 -3
- package/components/content/text/index.js +4 -3
- package/components/content/text/text.d.ts +25 -9
- package/components/content/text/text.js +3 -3
- package/components/context-menu/context-menu.js +2 -2
- package/components/context-menu/index.js +2 -2
- package/components/datepicker/datepicker.js +9 -10
- package/components/datepicker/index.js +9 -10
- package/components/dropdown/dropdown.js +7 -8
- package/components/dropdown/index.js +7 -8
- package/components/filter-chips/filter-chip/filter-chip.js +4 -5
- package/components/filter-chips/filter-chip/index.js +4 -5
- package/components/filter-chips/filter-chips.js +5 -6
- package/components/filter-chips/index.js +5 -6
- package/components/form/form-control.d.ts +1 -0
- package/components/form/form-control.js +1 -1
- package/components/form/index.js +6 -6
- package/components/form/summary/index.js +6 -6
- package/components/form/summary/summary.js +6 -6
- package/components/icon/icons/index.js +3 -3
- package/components/index.d.ts +3 -0
- package/components/index.js +48 -36
- package/components/input/index.js +23 -4
- package/components/input/input.d.ts +21 -14
- package/components/input/input.js +23 -4
- package/components/layout/card/card.d.ts +1 -91
- package/components/layout/card/card.js +4 -4
- package/components/layout/card/index.js +4 -4
- package/components/layout/container/container.d.ts +229 -12
- package/components/layout/container/container.js +3 -3
- package/components/layout/container/index.js +3 -3
- package/components/layout/flex/flex.d.ts +35 -5
- package/components/layout/flex/flex.js +4 -4
- package/components/layout/flex/index.js +4 -4
- package/components/layout/grid/grid.d.ts +1 -1
- package/components/layout/grid/grid.js +4 -4
- package/components/layout/grid/index.js +4 -4
- package/components/layout/mask/index.d.ts +1 -0
- package/components/layout/mask/index.js +18 -0
- package/components/layout/mask/mask.d.ts +30 -0
- package/components/layout/mask/mask.js +18 -0
- package/components/media/img/img.d.ts +10 -10
- package/components/media/img/img.js +3 -4
- package/components/media/img/index.js +3 -4
- package/components/media/video/index.js +3 -4
- package/components/media/video/video.d.ts +10 -10
- package/components/media/video/video.js +3 -4
- package/components/menu-button/index.js +4 -4
- package/components/menu-button/menu-button.d.ts +1 -1
- package/components/menu-button/menu-button.js +4 -4
- package/components/segmented-control/index.js +3 -3
- package/components/segmented-control/segment/index.js +2 -2
- package/components/segmented-control/segment/segment.js +2 -2
- package/components/segmented-control/segmented-control.js +3 -3
- package/components/textarea/index.d.ts +1 -0
- package/components/textarea/index.js +37 -0
- package/components/textarea/textarea.d.ts +91 -0
- package/components/textarea/textarea.js +37 -0
- package/components/textarea/textarea.styles.d.ts +1 -0
- package/components/theme/index.js +2 -2
- package/components/theme/theme.js +2 -2
- package/index.js +47 -35
- package/package.json +1 -1
- package/primitives/listbox/index.js +3 -3
- package/primitives/listbox/listbox.js +3 -3
- package/primitives/listbox/option.js +3 -3
- package/primitives/menu/index.js +2 -2
- package/primitives/menu/menu-item.js +2 -2
- package/primitives/menu/menu.js +2 -2
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/primitives/signal/index.js +3 -4
- package/primitives/signal/signal.js +3 -4
- package/utils/decorators/style-expression-property.d.ts +16 -1
- package/utils/helpers/style-expression-parser-tester.d.ts +1 -0
- package/utils/helpers/style-expression-parser.d.ts +5 -1
- package/chunks/chunk.7VC33K5Z.js +0 -49
- package/chunks/chunk.DONYL7JA.js +0 -625
- package/chunks/chunk.DXFB4XE4.js +0 -145
- package/chunks/chunk.NKSKWGNM.js +0 -28
- package/chunks/chunk.QQNADZQJ.js +0 -100
- package/chunks/chunk.S7GBHO2E.js +0 -40
- package/chunks/chunk.SXGACXKX.js +0 -28
- package/chunks/chunk.XAOS66M6.js +0 -103
- package/chunks/chunk.YBOK7MI7.js +0 -31
- package/components/media/img/img.style.css.js +0 -7
- package/components/media/video/video.style.css.js +0 -7
- package/primitives/signal/signal.style.css.js +0 -7
- /package/chunks/{chunk.WK7IKANC.js → chunk.BPGOHQLS.js} +0 -0
- /package/components/layout/{card/card.style.d.ts → mask/mask.style.d.ts} +0 -0
- /package/components/media/img/{img.style.css.d.ts → img.style.d.ts} +0 -0
- /package/components/media/video/{video.style.css.d.ts → video.style.d.ts} +0 -0
- /package/primitives/signal/{signal.style.css.d.ts → signal.style.d.ts} +0 -0
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forwardAttributes
|
|
3
|
-
} from "./chunk.YBOK7MI7.js";
|
|
4
1
|
import {
|
|
5
2
|
GdsFormControlElement
|
|
6
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.YUFO2JLT.js";
|
|
7
4
|
import {
|
|
8
5
|
constrainSlots
|
|
9
6
|
} from "./chunk.KBYQYDL3.js";
|
|
@@ -12,7 +9,7 @@ import {
|
|
|
12
9
|
} from "./chunk.3XCSDEVC.js";
|
|
13
10
|
import {
|
|
14
11
|
tokens
|
|
15
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.VM32X2K4.js";
|
|
16
13
|
import {
|
|
17
14
|
gdsCustomElement,
|
|
18
15
|
html
|
|
@@ -25,31 +22,57 @@ import {
|
|
|
25
22
|
} from "./chunk.5VURDMKE.js";
|
|
26
23
|
|
|
27
24
|
// libs/core/src/components/button/button.ts
|
|
28
|
-
import { nothing, unsafeCSS } from "lit";
|
|
25
|
+
import { nothing as nothing2, unsafeCSS } from "lit";
|
|
29
26
|
import { html as staticHtml, literal } from "lit/static-html.js";
|
|
30
27
|
import { property, query } from "lit/decorators.js";
|
|
31
28
|
import { when } from "lit/directives/when.js";
|
|
32
29
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
33
30
|
import { classMap } from "lit/directives/class-map.js";
|
|
34
31
|
|
|
35
|
-
// libs/core/src/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
// libs/core/src/utils/directives/forward-attributes.ts
|
|
33
|
+
import { Directive, PartType, directive } from "lit/directive.js";
|
|
34
|
+
import { nothing } from "lit/html.js";
|
|
35
|
+
var ForwardAttributesDirective = class extends Directive {
|
|
36
|
+
constructor(partInfo) {
|
|
37
|
+
super(partInfo);
|
|
38
|
+
if (partInfo.type !== PartType.ELEMENT) {
|
|
39
|
+
throw new Error(
|
|
40
|
+
"The `forwardAttributes` directive must be used in element bindings"
|
|
41
|
+
);
|
|
42
|
+
}
|
|
41
43
|
}
|
|
42
|
-
|
|
44
|
+
render(_filter) {
|
|
45
|
+
return nothing;
|
|
46
|
+
}
|
|
47
|
+
update(part, [filter]) {
|
|
48
|
+
var _a;
|
|
49
|
+
const element = part.element;
|
|
50
|
+
const host = (_a = part.options) == null ? void 0 : _a.host;
|
|
51
|
+
Array.from(host.attributes).forEach((attr) => {
|
|
52
|
+
if (filter(attr)) {
|
|
53
|
+
element.setAttribute(attr.name.replace("gds-", ""), attr.value);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var forwardAttributes = directive(ForwardAttributesDirective);
|
|
59
|
+
|
|
60
|
+
// libs/core/src/components/button/button.style.css?inline
|
|
61
|
+
var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, disabled;
|
|
43
62
|
|
|
44
63
|
@layer a11y {
|
|
45
64
|
@media (prefers-reduced-motion: reduce) {
|
|
46
|
-
|
|
65
|
+
.button {
|
|
47
66
|
transition: none;
|
|
48
67
|
}
|
|
49
68
|
}
|
|
50
69
|
}
|
|
51
70
|
|
|
52
71
|
@layer core {
|
|
72
|
+
:host {
|
|
73
|
+
display: inline-block;
|
|
74
|
+
}
|
|
75
|
+
|
|
53
76
|
.button {
|
|
54
77
|
--_block-size: var(--gds-space-3xl);
|
|
55
78
|
display: inline-flex;
|
|
@@ -86,22 +109,20 @@ var button_style_default = `@layer tokens, a11y, core, ranks, sizes, variants, d
|
|
|
86
109
|
}
|
|
87
110
|
}
|
|
88
111
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
transition: all 0.4s;
|
|
97
|
-
|
|
98
|
-
:hover & {
|
|
99
|
-
background-color: var(--gds-color-l3-states-dark-hover);
|
|
100
|
-
}
|
|
112
|
+
&:hover {
|
|
113
|
+
background-color: color-mix(
|
|
114
|
+
in srgb,
|
|
115
|
+
var(--gds-color-l3-background-primary),
|
|
116
|
+
var(--gds-color-l3-states-dark-hover)
|
|
117
|
+
);
|
|
118
|
+
}
|
|
101
119
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
120
|
+
&:active {
|
|
121
|
+
background-color: color-mix(
|
|
122
|
+
in srgb,
|
|
123
|
+
var(--gds-color-l3-background-primary),
|
|
124
|
+
var(--gds-color-l3-states-dark-pressed)
|
|
125
|
+
);
|
|
105
126
|
}
|
|
106
127
|
|
|
107
128
|
&:not(.circle) slot:not([name]) {
|
|
@@ -131,14 +152,20 @@ var button_style_default = `@layer tokens, a11y, core, ranks, sizes, variants, d
|
|
|
131
152
|
background-color: var(--gds-color-l3-background-secondary);
|
|
132
153
|
color: var(--gds-color-l3-content-secondary);
|
|
133
154
|
|
|
134
|
-
|
|
135
|
-
:
|
|
136
|
-
|
|
137
|
-
|
|
155
|
+
&:hover {
|
|
156
|
+
background-color: color-mix(
|
|
157
|
+
in srgb,
|
|
158
|
+
var(--gds-color-l3-background-secondary),
|
|
159
|
+
var(--gds-color-l3-states-light-hover)
|
|
160
|
+
);
|
|
161
|
+
}
|
|
138
162
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
163
|
+
&:active {
|
|
164
|
+
background-color: color-mix(
|
|
165
|
+
in srgb,
|
|
166
|
+
var(--gds-color-l3-background-secondary),
|
|
167
|
+
var(--gds-color-l3-states-light-pressed)
|
|
168
|
+
);
|
|
142
169
|
}
|
|
143
170
|
}
|
|
144
171
|
|
|
@@ -146,19 +173,32 @@ var button_style_default = `@layer tokens, a11y, core, ranks, sizes, variants, d
|
|
|
146
173
|
background-color: transparent;
|
|
147
174
|
color: var(--gds-color-l3-content-tertiary);
|
|
148
175
|
|
|
149
|
-
|
|
150
|
-
:
|
|
151
|
-
|
|
152
|
-
|
|
176
|
+
&:hover {
|
|
177
|
+
background-color: color-mix(
|
|
178
|
+
in srgb,
|
|
179
|
+
transparent,
|
|
180
|
+
var(--gds-color-l3-states-light-hover)
|
|
181
|
+
);
|
|
182
|
+
}
|
|
153
183
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
184
|
+
&:active {
|
|
185
|
+
background-color: color-mix(
|
|
186
|
+
in srgb,
|
|
187
|
+
transparent,
|
|
188
|
+
var(--gds-color-l3-states-light-pressed)
|
|
189
|
+
);
|
|
157
190
|
}
|
|
158
191
|
}
|
|
159
192
|
}
|
|
160
193
|
|
|
161
194
|
@layer sizes {
|
|
195
|
+
:host([size='xs']) .button {
|
|
196
|
+
--_block-size: var(--gds-space-l);
|
|
197
|
+
font-size: var(--gds-text-size-detail-s);
|
|
198
|
+
line-height: var(--gds-text-line-height-detail-s);
|
|
199
|
+
padding-inline: var(--gds-space-m);
|
|
200
|
+
}
|
|
201
|
+
|
|
162
202
|
:host([size='small']) .button {
|
|
163
203
|
--_block-size: var(--gds-space-xl);
|
|
164
204
|
font-size: var(--gds-text-size-detail-s);
|
|
@@ -175,50 +215,126 @@ var button_style_default = `@layer tokens, a11y, core, ranks, sizes, variants, d
|
|
|
175
215
|
|
|
176
216
|
@layer variants {
|
|
177
217
|
.positive {
|
|
178
|
-
background-color: var(--gds-color-
|
|
218
|
+
background-color: var(--gds-color-l3-background-positive);
|
|
179
219
|
|
|
180
|
-
|
|
181
|
-
:
|
|
182
|
-
|
|
183
|
-
|
|
220
|
+
&:hover {
|
|
221
|
+
background-color: color-mix(
|
|
222
|
+
in srgb,
|
|
223
|
+
var(--gds-color-l3-background-positive),
|
|
224
|
+
var(--gds-color-l3-states-dark-hover)
|
|
225
|
+
);
|
|
226
|
+
}
|
|
184
227
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
228
|
+
&:active {
|
|
229
|
+
background-color: color-mix(
|
|
230
|
+
in srgb,
|
|
231
|
+
var(--gds-color-l3-background-positive),
|
|
232
|
+
var(--gds-color-l3-states-dark-pressed)
|
|
233
|
+
);
|
|
188
234
|
}
|
|
189
235
|
|
|
190
236
|
&.secondary {
|
|
191
|
-
background-color: var(--gds-color-
|
|
192
|
-
color: var(--gds-color-
|
|
237
|
+
background-color: var(--gds-color-l3-background-positive-secondary);
|
|
238
|
+
color: var(--gds-color-l3-content-positive);
|
|
239
|
+
|
|
240
|
+
&:hover {
|
|
241
|
+
background-color: color-mix(
|
|
242
|
+
in srgb,
|
|
243
|
+
var(--gds-color-l3-background-positive-secondary),
|
|
244
|
+
var(--gds-color-l3-states-positive-hover)
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&:active {
|
|
249
|
+
background-color: color-mix(
|
|
250
|
+
in srgb,
|
|
251
|
+
var(--gds-color-l3-background-positive-secondary),
|
|
252
|
+
var(--gds-color-l3-states-positive-pressed)
|
|
253
|
+
);
|
|
254
|
+
}
|
|
193
255
|
}
|
|
194
256
|
|
|
195
257
|
&.tertiary {
|
|
196
258
|
background-color: transparent;
|
|
197
|
-
color: var(--gds-color-
|
|
259
|
+
color: var(--gds-color-l3-content-positive);
|
|
260
|
+
|
|
261
|
+
&:hover {
|
|
262
|
+
background-color: color-mix(
|
|
263
|
+
in srgb,
|
|
264
|
+
transparent,
|
|
265
|
+
var(--gds-color-l3-states-positive-hover)
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&:active {
|
|
270
|
+
background-color: color-mix(
|
|
271
|
+
in srgb,
|
|
272
|
+
transparent,
|
|
273
|
+
var(--gds-color-l3-states-positive-pressed)
|
|
274
|
+
);
|
|
275
|
+
}
|
|
198
276
|
}
|
|
199
277
|
}
|
|
200
278
|
|
|
201
279
|
.negative {
|
|
202
|
-
background-color: var(--gds-color-
|
|
280
|
+
background-color: var(--gds-color-l3-background-negative);
|
|
203
281
|
|
|
204
|
-
|
|
205
|
-
:
|
|
206
|
-
|
|
207
|
-
|
|
282
|
+
&:hover {
|
|
283
|
+
background-color: color-mix(
|
|
284
|
+
in srgb,
|
|
285
|
+
var(--gds-color-l3-background-negative),
|
|
286
|
+
var(--gds-color-l3-states-dark-hover)
|
|
287
|
+
);
|
|
288
|
+
}
|
|
208
289
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
290
|
+
&:active {
|
|
291
|
+
background-color: color-mix(
|
|
292
|
+
in srgb,
|
|
293
|
+
var(--gds-color-l3-background-negative),
|
|
294
|
+
var(--gds-color-l3-states-dark-pressed)
|
|
295
|
+
);
|
|
212
296
|
}
|
|
213
297
|
|
|
214
298
|
&.secondary {
|
|
215
|
-
background-color: var(--gds-color-
|
|
216
|
-
color: var(--gds-color-
|
|
299
|
+
background-color: var(--gds-color-l3-background-negative-secondary);
|
|
300
|
+
color: var(--gds-color-l3-content-negative);
|
|
301
|
+
|
|
302
|
+
&:hover {
|
|
303
|
+
background-color: color-mix(
|
|
304
|
+
in srgb,
|
|
305
|
+
var(--gds-color-l3-background-negative-secondary),
|
|
306
|
+
var(--gds-color-l3-states-negative-hover)
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
&:active {
|
|
311
|
+
background-color: color-mix(
|
|
312
|
+
in srgb,
|
|
313
|
+
var(--gds-color-l3-background-negative-secondary),
|
|
314
|
+
var(--gds-color-l3-states-negative-pressed)
|
|
315
|
+
);
|
|
316
|
+
}
|
|
217
317
|
}
|
|
218
318
|
|
|
219
319
|
&.tertiary {
|
|
220
320
|
background-color: transparent;
|
|
221
|
-
color: var(--gds-color-
|
|
321
|
+
color: var(--gds-color-l3-content-negative);
|
|
322
|
+
|
|
323
|
+
&:hover {
|
|
324
|
+
background-color: color-mix(
|
|
325
|
+
in srgb,
|
|
326
|
+
transparent,
|
|
327
|
+
var(--gds-color-l3-states-negative-hover)
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&:active {
|
|
332
|
+
background-color: color-mix(
|
|
333
|
+
in srgb,
|
|
334
|
+
transparent,
|
|
335
|
+
var(--gds-color-l3-states-negative-pressed)
|
|
336
|
+
);
|
|
337
|
+
}
|
|
222
338
|
}
|
|
223
339
|
}
|
|
224
340
|
}
|
|
@@ -304,7 +420,7 @@ var GdsButton = class extends GdsFormControlElement {
|
|
|
304
420
|
class=${classMap(buttonClasses)}
|
|
305
421
|
type="${ifDefined(__privateGet(this, _isLink, isLink_get) ? void 0 : this.type)}"
|
|
306
422
|
?disabled="${this.disabled}"
|
|
307
|
-
aria-label=${this.label ||
|
|
423
|
+
aria-label=${this.label || nothing2}
|
|
308
424
|
href=${ifDefined(__privateGet(this, _isLink, isLink_get) ? this.href : void 0)}
|
|
309
425
|
target=${ifDefined(__privateGet(this, _isLink, isLink_get) ? this.target : void 0)}
|
|
310
426
|
rel=${ifDefined(__privateGet(this, _isLink, isLink_get) ? this.rel || __privateGet(this, _defaultRel, defaultRel_get) : void 0)}
|
|
@@ -322,9 +438,8 @@ var GdsButton = class extends GdsFormControlElement {
|
|
|
322
438
|
!this._isUsingTransitionalStyles,
|
|
323
439
|
() => html2`<gds-ripple part="_ripple"></gds-ripple>`
|
|
324
440
|
)}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
`;
|
|
441
|
+
</${tag}>
|
|
442
|
+
`;
|
|
328
443
|
}
|
|
329
444
|
_getValidityAnchor() {
|
|
330
445
|
return this._button;
|
|
@@ -390,5 +505,6 @@ GdsButton = __decorateClass([
|
|
|
390
505
|
], GdsButton);
|
|
391
506
|
|
|
392
507
|
export {
|
|
508
|
+
forwardAttributes,
|
|
393
509
|
GdsButton
|
|
394
510
|
};
|
|
File without changes
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
video_style_css_default
|
|
3
|
-
} from "./chunk.SXGACXKX.js";
|
|
4
1
|
import {
|
|
5
2
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XKACXVCM.js";
|
|
7
4
|
import {
|
|
8
5
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.VM32X2K4.js";
|
|
10
7
|
import {
|
|
11
8
|
GdsElement
|
|
12
9
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -20,6 +17,33 @@ import {
|
|
|
20
17
|
|
|
21
18
|
// libs/core/src/components/media/video/video.ts
|
|
22
19
|
import { property, query } from "lit/decorators.js";
|
|
20
|
+
|
|
21
|
+
// libs/core/src/components/media/video/video.style.ts
|
|
22
|
+
import { css } from "lit";
|
|
23
|
+
var style = css`
|
|
24
|
+
:host {
|
|
25
|
+
display: contents;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
figure {
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
font-size: 0;
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: auto;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
video {
|
|
39
|
+
display: flex;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
var video_style_default = style;
|
|
45
|
+
|
|
46
|
+
// libs/core/src/components/media/video/video.ts
|
|
23
47
|
var GdsVideo = class extends GdsElement {
|
|
24
48
|
// Method to programmatically apply video settings
|
|
25
49
|
applyVideoSettings() {
|
|
@@ -39,21 +63,21 @@ var GdsVideo = class extends GdsElement {
|
|
|
39
63
|
this.applyVideoSettings();
|
|
40
64
|
}
|
|
41
65
|
};
|
|
42
|
-
GdsVideo.styles = [tokens,
|
|
66
|
+
GdsVideo.styles = [tokens, video_style_default];
|
|
43
67
|
__decorateClass([
|
|
44
68
|
styleExpressionProperty({
|
|
45
69
|
property: "aspect-ratio",
|
|
46
70
|
selector: "figure",
|
|
47
71
|
valueTemplate: (v) => v
|
|
48
72
|
})
|
|
49
|
-
], GdsVideo.prototype, "ratio", 2);
|
|
73
|
+
], GdsVideo.prototype, "aspect-ratio", 2);
|
|
50
74
|
__decorateClass([
|
|
51
75
|
styleExpressionProperty({
|
|
52
76
|
property: "object-position",
|
|
53
77
|
selector: "video",
|
|
54
78
|
valueTemplate: (v) => v
|
|
55
79
|
})
|
|
56
|
-
], GdsVideo.prototype, "position", 2);
|
|
80
|
+
], GdsVideo.prototype, "object-position", 2);
|
|
57
81
|
__decorateClass([
|
|
58
82
|
styleExpressionProperty({
|
|
59
83
|
property: "inset",
|
|
@@ -86,21 +110,21 @@ __decorateClass([
|
|
|
86
110
|
selector: "video",
|
|
87
111
|
valueTemplate: (v) => v
|
|
88
112
|
})
|
|
89
|
-
], GdsVideo.prototype, "fit", 2);
|
|
113
|
+
], GdsVideo.prototype, "object-fit", 2);
|
|
90
114
|
__decorateClass([
|
|
91
115
|
styleExpressionProperty({
|
|
92
116
|
property: "pointer-events",
|
|
93
117
|
selector: "video",
|
|
94
118
|
valueTemplate: (v) => v
|
|
95
119
|
})
|
|
96
|
-
], GdsVideo.prototype, "events", 2);
|
|
120
|
+
], GdsVideo.prototype, "pointer-events", 2);
|
|
97
121
|
__decorateClass([
|
|
98
122
|
styleExpressionProperty({
|
|
99
123
|
property: "border-radius",
|
|
100
124
|
selector: "figure",
|
|
101
|
-
valueTemplate: (v) => `var(--gds-
|
|
125
|
+
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
102
126
|
})
|
|
103
|
-
], GdsVideo.prototype, "radius", 2);
|
|
127
|
+
], GdsVideo.prototype, "border-radius", 2);
|
|
104
128
|
__decorateClass([
|
|
105
129
|
property()
|
|
106
130
|
], GdsVideo.prototype, "src", 2);
|