@sebgroup/green-core 1.22.4 → 1.22.6
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.AYPCHY4Z.js → chunk.2WGZEROP.js} +1 -1
- package/chunks/{chunk.BES3ZPRI.js → chunk.3J7NBKCM.js} +1 -1
- package/chunks/{chunk.Y3QYM3PT.js → chunk.4FZLD4GF.js} +12 -9
- package/chunks/{chunk.2U3TOPJJ.js → chunk.5IDY3R3B.js} +1 -1
- package/chunks/{chunk.2ARCMXYK.js → chunk.AYS4XTWL.js} +8 -2
- package/chunks/{chunk.BRPJSXL7.js → chunk.BOXKLSQ4.js} +1 -1
- package/chunks/{chunk.5LNBEZ2R.js → chunk.ERRPHNRC.js} +48 -36
- package/chunks/{chunk.AJUEVQ74.js → chunk.KMVEBCWE.js} +2 -2
- package/chunks/{chunk.AZVE6BUE.js → chunk.KQ7KXFPT.js} +3 -3
- package/chunks/{chunk.QOW72DZJ.js → chunk.KW7NXQEL.js} +3 -3
- package/chunks/{chunk.XJIVEK46.js → chunk.PFAU5MJG.js} +8 -8
- package/chunks/{chunk.IRMSZ2MB.js → chunk.PME7HPSR.js} +1 -1
- package/chunks/{chunk.TUFHFRJL.js → chunk.SBLVBDYS.js} +1 -1
- package/chunks/{chunk.XFVCUSEN.js → chunk.SKRG4C7O.js} +1 -1
- package/chunks/{chunk.V6LS4RAA.js → chunk.SPU6LGY6.js} +5 -4
- package/chunks/{chunk.ABX5MSZM.js → chunk.SSWIRJTS.js} +1 -1
- package/chunks/{chunk.S7K4GJTN.js → chunk.TCK22ZSS.js} +1 -1
- package/chunks/{chunk.7XMPECL4.js → chunk.V2BEG77G.js} +19 -7
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/{chunk.LMAVTXVL.js → chunk.X2VQYOI4.js} +2 -2
- package/chunks/{chunk.UCOIQUXN.js → chunk.Z7XFIUQM.js} +1 -1
- package/components/button/button.js +4 -4
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/index.js +4 -4
- package/components/context-menu/context-menu.js +5 -5
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/context-menu/index.js +6 -6
- package/components/datepicker/datepicker.js +11 -11
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/datepicker/index.js +11 -11
- package/components/dropdown/dropdown.js +5 -5
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/index.js +6 -6
- package/components/filter-chips/filter-chip/filter-chip.js +5 -5
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
- package/components/filter-chips/filter-chip/index.js +5 -5
- package/components/filter-chips/filter-chips.js +5 -5
- package/components/filter-chips/filter-chips.trans.styles.js +1 -1
- package/components/filter-chips/index.js +5 -5
- package/components/grid/grid.js +2 -2
- package/components/grid/index.js +2 -2
- package/components/grouped-list/grouped-list.js +2 -2
- package/components/grouped-list/grouped-list.trans.styles.js +1 -1
- package/components/grouped-list/index.js +2 -2
- package/components/index.js +20 -20
- package/components/popover/index.js +2 -2
- package/components/popover/popover.js +2 -2
- package/components/popover/popover.trans.styles.js +1 -1
- package/components/segmented-control/index.js +4 -4
- package/components/segmented-control/segment/index.js +3 -3
- package/components/segmented-control/segment/segment.js +3 -3
- package/components/segmented-control/segment/segment.trans.styles.js +1 -1
- package/components/segmented-control/segmented-control.js +4 -4
- package/components/segmented-control/segmented-control.trans.styles.js +1 -1
- package/components/theme/index.js +2 -2
- package/components/theme/theme.d.ts +1 -0
- package/components/theme/theme.js +2 -2
- package/components/theme/theme.trans.styles.js +1 -1
- package/index.js +20 -20
- package/package.json +1 -1
- package/primitives/calendar/calendar.js +2 -2
- package/primitives/calendar/index.js +2 -2
- package/primitives/listbox/index.js +3 -3
- package/primitives/listbox/listbox.js +3 -3
- package/primitives/listbox/option.js +2 -2
- package/primitives/menu/index.js +3 -3
- package/primitives/menu/menu-heading.js +2 -2
- package/primitives/menu/menu-item.js +2 -2
- package/primitives/menu/menu.js +3 -3
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/transitional-styles.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ERRPHNRC.js";
|
|
4
4
|
import {
|
|
5
5
|
watchMediaQuery
|
|
6
6
|
} from "./chunk.WM7HBMMV.js";
|
|
@@ -78,7 +78,7 @@ var style = css`
|
|
|
78
78
|
var popover_styles_default = style;
|
|
79
79
|
|
|
80
80
|
// libs/core/src/components/popover/popover.ts
|
|
81
|
-
var _handleTriggerSlotChange, handleTriggerSlotChange_fn, _autoPositionCleanupFn, _isMobileViewport, _dispatchUiStateEvent, _handleCloseButton, _registerTriggerEvents, registerTriggerEvents_fn, _unregisterTriggerEvents, unregisterTriggerEvents_fn, _setupTriggerAttributes, setupTriggerAttributes_fn, _registerAutoPositioning, registerAutoPositioning_fn, _handleTriggerKeyDown, _handleTriggerClick, _focusFirstSlottedChild, _handleClickOutside;
|
|
81
|
+
var _handleTriggerSlotChange, handleTriggerSlotChange_fn, _autoPositionCleanupFn, _isMobileViewport, _handleCancel, _dispatchUiStateEvent, _handleCloseButton, _registerTriggerEvents, registerTriggerEvents_fn, _unregisterTriggerEvents, unregisterTriggerEvents_fn, _setupTriggerAttributes, setupTriggerAttributes_fn, _registerAutoPositioning, registerAutoPositioning_fn, _handleTriggerKeyDown, _handleTriggerClick, _focusFirstSlottedChild, _handleClickOutside;
|
|
82
82
|
var GdsPopover = class extends GdsElement {
|
|
83
83
|
constructor() {
|
|
84
84
|
super(...arguments);
|
|
@@ -102,6 +102,10 @@ var GdsPopover = class extends GdsElement {
|
|
|
102
102
|
// A function that removes the Floating UI auto positioning. This gets called when we switch to mobile view layout.
|
|
103
103
|
__privateAdd(this, _autoPositionCleanupFn, void 0);
|
|
104
104
|
__privateAdd(this, _isMobileViewport, false);
|
|
105
|
+
__privateAdd(this, _handleCancel, () => {
|
|
106
|
+
this.open = false;
|
|
107
|
+
__privateGet(this, _dispatchUiStateEvent).call(this, "cancel");
|
|
108
|
+
});
|
|
105
109
|
__privateAdd(this, _dispatchUiStateEvent, (reason) => {
|
|
106
110
|
this.dispatchEvent(
|
|
107
111
|
new CustomEvent("gds-ui-state", {
|
|
@@ -130,9 +134,8 @@ var GdsPopover = class extends GdsElement {
|
|
|
130
134
|
this.open = true;
|
|
131
135
|
__privateGet(this, _dispatchUiStateEvent).call(this, "show");
|
|
132
136
|
}
|
|
133
|
-
if (e.key === "Escape") {
|
|
134
|
-
this.
|
|
135
|
-
__privateGet(this, _dispatchUiStateEvent).call(this, "cancel");
|
|
137
|
+
if (e.key === "Escape" && this.open) {
|
|
138
|
+
__privateGet(this, _handleCancel).call(this);
|
|
136
139
|
}
|
|
137
140
|
});
|
|
138
141
|
__privateAdd(this, _handleTriggerClick, (e) => {
|
|
@@ -192,9 +195,8 @@ var GdsPopover = class extends GdsElement {
|
|
|
192
195
|
__privateMethod(this, _registerTriggerEvents, registerTriggerEvents_fn).call(this);
|
|
193
196
|
this._handleOpenChange();
|
|
194
197
|
this.addEventListener("keydown", (e) => {
|
|
195
|
-
if (e.key === "Escape") {
|
|
196
|
-
this.
|
|
197
|
-
__privateGet(this, _dispatchUiStateEvent).call(this, "cancel");
|
|
198
|
+
if (e.key === "Escape" && this.open) {
|
|
199
|
+
__privateGet(this, _handleCancel).call(this);
|
|
198
200
|
e.stopPropagation();
|
|
199
201
|
e.preventDefault();
|
|
200
202
|
}
|
|
@@ -227,7 +229,7 @@ var GdsPopover = class extends GdsElement {
|
|
|
227
229
|
"use-modal-in-mobile": this.useModalInMobileView
|
|
228
230
|
})}"
|
|
229
231
|
aria-hidden="${String(!this.open)}"
|
|
230
|
-
@close=${() => this.open
|
|
232
|
+
@close=${() => this.open && __privateGet(this, _handleCancel).call(this)}
|
|
231
233
|
>
|
|
232
234
|
<header>
|
|
233
235
|
<h2>${this.label}</h2>
|
|
@@ -295,6 +297,7 @@ handleTriggerSlotChange_fn = function() {
|
|
|
295
297
|
};
|
|
296
298
|
_autoPositionCleanupFn = new WeakMap();
|
|
297
299
|
_isMobileViewport = new WeakMap();
|
|
300
|
+
_handleCancel = new WeakMap();
|
|
298
301
|
_dispatchUiStateEvent = new WeakMap();
|
|
299
302
|
_handleCloseButton = new WeakMap();
|
|
300
303
|
_registerTriggerEvents = new WeakSet();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.ERRPHNRC.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsElement
|
|
6
6
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// libs/core/src/components/theme/theme.ts
|
|
16
16
|
import { property } from "lit/decorators.js";
|
|
17
|
+
import { css } from "lit";
|
|
17
18
|
var GdsTheme = class extends GdsElement {
|
|
18
19
|
constructor() {
|
|
19
20
|
super(...arguments);
|
|
@@ -24,9 +25,14 @@ var GdsTheme = class extends GdsElement {
|
|
|
24
25
|
TransitionalStyles.instance.apply(this, "gds-theme");
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
|
-
return html
|
|
28
|
+
return html`<slot></slot>`;
|
|
28
29
|
}
|
|
29
30
|
};
|
|
31
|
+
GdsTheme.styles = css`
|
|
32
|
+
:host {
|
|
33
|
+
display: contents;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
30
36
|
__decorateClass([
|
|
31
37
|
property({ reflect: true, attribute: "color-scheme" })
|
|
32
38
|
], GdsTheme.prototype, "colorScheme", 2);
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
// libs/core/src/utils/transitional-styles/transitional-styles.ts
|
|
15
15
|
import { unsafeCSS } from "lit";
|
|
16
16
|
|
|
17
|
-
// libs/core/src/components/dropdown/dropdown.trans.styles.scss
|
|
17
|
+
// libs/core/src/components/dropdown/dropdown.trans.styles.scss?inline
|
|
18
18
|
var dropdown_trans_styles_default = `/**
|
|
19
19
|
* Calculate the luminance for a color.
|
|
20
20
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -492,7 +492,7 @@ var dropdown_trans_styles_default = `/**
|
|
|
492
492
|
}
|
|
493
493
|
}`;
|
|
494
494
|
|
|
495
|
-
// libs/core/src/primitives/listbox/listbox.trans.styles.scss
|
|
495
|
+
// libs/core/src/primitives/listbox/listbox.trans.styles.scss?inline
|
|
496
496
|
var listbox_trans_styles_default = `/**
|
|
497
497
|
* Calculate the luminance for a color.
|
|
498
498
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -544,7 +544,7 @@ var listbox_trans_styles_default = `/**
|
|
|
544
544
|
}
|
|
545
545
|
}`;
|
|
546
546
|
|
|
547
|
-
// libs/core/src/primitives/listbox/option.trans.styles.scss
|
|
547
|
+
// libs/core/src/primitives/listbox/option.trans.styles.scss?inline
|
|
548
548
|
var option_trans_styles_default = `/**
|
|
549
549
|
* Calculate the luminance for a color.
|
|
550
550
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -638,7 +638,7 @@ var option_trans_styles_default = `/**
|
|
|
638
638
|
}
|
|
639
639
|
}`;
|
|
640
640
|
|
|
641
|
-
// libs/core/src/primitives/menu/menu-heading.trans.styles.scss
|
|
641
|
+
// libs/core/src/primitives/menu/menu-heading.trans.styles.scss?inline
|
|
642
642
|
var menu_heading_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
643
643
|
@layer transitional-styles {
|
|
644
644
|
:host {
|
|
@@ -667,7 +667,7 @@ function register() {
|
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
// libs/core/src/components/popover/popover.trans.styles.scss
|
|
670
|
+
// libs/core/src/components/popover/popover.trans.styles.scss?inline
|
|
671
671
|
var popover_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
672
672
|
/* stylelint-enable max-nesting-depth */
|
|
673
673
|
/**
|
|
@@ -794,7 +794,7 @@ function register3() {
|
|
|
794
794
|
}
|
|
795
795
|
var dropdown_trans_styles_default2 = register3;
|
|
796
796
|
|
|
797
|
-
// libs/core/src/components/context-menu/context-menu.trans.styles.scss
|
|
797
|
+
// libs/core/src/components/context-menu/context-menu.trans.styles.scss?inline
|
|
798
798
|
var context_menu_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
799
799
|
/* stylelint-enable max-nesting-depth */
|
|
800
800
|
/**
|
|
@@ -994,7 +994,7 @@ function register4() {
|
|
|
994
994
|
}
|
|
995
995
|
var context_menu_trans_styles_default2 = register4;
|
|
996
996
|
|
|
997
|
-
// libs/core/src/components/datepicker/datepicker.trans.styles.scss
|
|
997
|
+
// libs/core/src/components/datepicker/datepicker.trans.styles.scss?inline
|
|
998
998
|
var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
999
999
|
/* stylelint-enable max-nesting-depth */
|
|
1000
1000
|
/**
|
|
@@ -1209,7 +1209,7 @@ var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1209
1209
|
}
|
|
1210
1210
|
}`;
|
|
1211
1211
|
|
|
1212
|
-
// libs/core/src/primitives/calendar/calendar.trans.styles.scss
|
|
1212
|
+
// libs/core/src/primitives/calendar/calendar.trans.styles.scss?inline
|
|
1213
1213
|
var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
1214
1214
|
/* stylelint-enable max-nesting-depth */
|
|
1215
1215
|
/**
|
|
@@ -1256,35 +1256,35 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1256
1256
|
:host table {
|
|
1257
1257
|
border-spacing: 0;
|
|
1258
1258
|
}
|
|
1259
|
-
:host
|
|
1260
|
-
:host
|
|
1259
|
+
:host th,
|
|
1260
|
+
:host td {
|
|
1261
1261
|
box-sizing: border-box;
|
|
1262
1262
|
height: 2.75rem;
|
|
1263
1263
|
text-align: center;
|
|
1264
1264
|
width: 2.75rem;
|
|
1265
1265
|
}
|
|
1266
|
-
:host
|
|
1266
|
+
:host thead {
|
|
1267
1267
|
/* days */
|
|
1268
1268
|
}
|
|
1269
|
-
:host
|
|
1269
|
+
:host thead th {
|
|
1270
1270
|
background: var(--sg-bg-level-2);
|
|
1271
1271
|
border-bottom: solid 1px var(--sg-grey-300);
|
|
1272
1272
|
font-weight: 400;
|
|
1273
1273
|
top: 0;
|
|
1274
1274
|
}
|
|
1275
1275
|
@media (max-width: 35.98em) {
|
|
1276
|
-
:host
|
|
1276
|
+
:host thead th {
|
|
1277
1277
|
position: sticky;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
:host
|
|
1280
|
+
:host tbody {
|
|
1281
1281
|
/* week numbers */
|
|
1282
1282
|
/* dates */
|
|
1283
1283
|
}
|
|
1284
|
-
:host
|
|
1284
|
+
:host tbody th {
|
|
1285
1285
|
font-weight: 400;
|
|
1286
1286
|
}
|
|
1287
|
-
:host
|
|
1287
|
+
:host tbody td {
|
|
1288
1288
|
border: solid 1px transparent;
|
|
1289
1289
|
font-weight: 500;
|
|
1290
1290
|
-webkit-user-select: none;
|
|
@@ -1299,56 +1299,56 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1299
1299
|
/* active (pressed) */
|
|
1300
1300
|
/* disabled */
|
|
1301
1301
|
}
|
|
1302
|
-
:host
|
|
1302
|
+
:host tbody td.sg-date-holiday:not(.disabled) {
|
|
1303
1303
|
background: var(--sg-bg-level-2);
|
|
1304
1304
|
color: hsl(var(--sg-hsl-red-2));
|
|
1305
1305
|
}
|
|
1306
|
-
:host
|
|
1306
|
+
:host tbody td.today {
|
|
1307
1307
|
background: transparent;
|
|
1308
1308
|
border-radius: 4px;
|
|
1309
1309
|
box-shadow: inset 0 0 0 2px var(--grey-1000);
|
|
1310
1310
|
color: var(--grey-1000);
|
|
1311
1311
|
}
|
|
1312
|
-
:host
|
|
1312
|
+
:host tbody td:hover:not(.disabled) {
|
|
1313
1313
|
background: var(--grey-500);
|
|
1314
1314
|
border: solid 1px var(--sg-bg-level-2);
|
|
1315
1315
|
border-radius: 4px;
|
|
1316
1316
|
color: var(--gds-sys-color-font);
|
|
1317
1317
|
cursor: pointer;
|
|
1318
1318
|
}
|
|
1319
|
-
:host
|
|
1319
|
+
:host tbody td:focus-visible:focus:not(:focus-visible) {
|
|
1320
1320
|
box-shadow: none;
|
|
1321
1321
|
outline: 0;
|
|
1322
1322
|
}
|
|
1323
|
-
:host
|
|
1323
|
+
:host tbody td:focus-visible:focus, :host tbody td:focus-visible:focus-visible {
|
|
1324
1324
|
outline-color: var(--gds-sys-color-focus-outline);
|
|
1325
1325
|
outline-style: solid;
|
|
1326
1326
|
outline-width: 0.125rem;
|
|
1327
1327
|
outline-offset: 0.125rem;
|
|
1328
1328
|
}
|
|
1329
|
-
:host
|
|
1329
|
+
:host tbody td:focus-visible:not(.disabled) {
|
|
1330
1330
|
border: solid 1px var(--sg-bg-level-2);
|
|
1331
1331
|
border-radius: 4px;
|
|
1332
1332
|
cursor: pointer;
|
|
1333
1333
|
position: relative;
|
|
1334
1334
|
z-index: 0;
|
|
1335
1335
|
}
|
|
1336
|
-
:host
|
|
1336
|
+
:host tbody td[aria-selected=true] {
|
|
1337
1337
|
background: var(--grey-1000);
|
|
1338
1338
|
border: solid 1px var(--sg-bg-level-2);
|
|
1339
1339
|
border-radius: 4px;
|
|
1340
1340
|
color: hsl(var(--sg-hsl-white));
|
|
1341
1341
|
}
|
|
1342
|
-
:host
|
|
1342
|
+
:host tbody td[tabindex="0"] {
|
|
1343
1343
|
border-radius: 4px;
|
|
1344
1344
|
}
|
|
1345
|
-
:host
|
|
1345
|
+
:host tbody td:hover:active:not(.disabled) {
|
|
1346
1346
|
background: var(--grey-1000);
|
|
1347
1347
|
border: solid 1px var(--sg-bg-level-2);
|
|
1348
1348
|
border-radius: 4px;
|
|
1349
1349
|
color: hsl(var(--sg-hsl-white));
|
|
1350
1350
|
}
|
|
1351
|
-
:host
|
|
1351
|
+
:host tbody td.disabled {
|
|
1352
1352
|
background: hsl(var(--sg-hsl-disabled-background));
|
|
1353
1353
|
border: solid 1px var(--sg-bg-level-2);
|
|
1354
1354
|
border-radius: 4px;
|
|
@@ -1356,13 +1356,20 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1356
1356
|
cursor: not-allowed;
|
|
1357
1357
|
font-weight: 400;
|
|
1358
1358
|
}
|
|
1359
|
-
:host
|
|
1359
|
+
:host tbody td.disabled.sg-date-holiday {
|
|
1360
1360
|
color: hsla(var(--sg-hsl-red-2), 0.25);
|
|
1361
1361
|
}
|
|
1362
|
-
:host
|
|
1362
|
+
:host tbody td.disabled .number,
|
|
1363
|
+
:host tbody td.disabled .indicator-dot {
|
|
1364
|
+
--_color: hsl(var(--sg-hsl-disabled-color)) !important;
|
|
1365
|
+
}
|
|
1366
|
+
:host tbody td.custom-date {
|
|
1363
1367
|
position: relative;
|
|
1364
1368
|
}
|
|
1365
|
-
:host
|
|
1369
|
+
:host tbody .number {
|
|
1370
|
+
color: var(--_color, "currentColor");
|
|
1371
|
+
}
|
|
1372
|
+
:host tbody .indicator-dot {
|
|
1366
1373
|
display: block;
|
|
1367
1374
|
width: 0.375rem;
|
|
1368
1375
|
height: 0.375rem;
|
|
@@ -1372,6 +1379,7 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1372
1379
|
position: absolute;
|
|
1373
1380
|
inset-block-end: 0.125rem;
|
|
1374
1381
|
inset-inline: 0;
|
|
1382
|
+
background-color: var(--_color);
|
|
1375
1383
|
}
|
|
1376
1384
|
table {
|
|
1377
1385
|
flex-grow: 1;
|
|
@@ -1401,7 +1409,7 @@ function register6() {
|
|
|
1401
1409
|
}
|
|
1402
1410
|
var datepicker_trans_styles_default2 = register6;
|
|
1403
1411
|
|
|
1404
|
-
// libs/core/src/components/grouped-list/grouped-list.trans.styles.scss
|
|
1412
|
+
// libs/core/src/components/grouped-list/grouped-list.trans.styles.scss?inline
|
|
1405
1413
|
var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1406
1414
|
@layer transitional-styles {
|
|
1407
1415
|
@layer _base, _overrides;
|
|
@@ -1433,7 +1441,7 @@ function register7() {
|
|
|
1433
1441
|
}
|
|
1434
1442
|
var grouped_list_trans_styles_default2 = register7;
|
|
1435
1443
|
|
|
1436
|
-
// libs/core/src/components/segmented-control/segmented-control.trans.styles.css
|
|
1444
|
+
// libs/core/src/components/segmented-control/segmented-control.trans.styles.css?inline
|
|
1437
1445
|
var segmented_control_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1438
1446
|
|
|
1439
1447
|
@layer transitional-styles {
|
|
@@ -1527,7 +1535,7 @@ var segmented_control_trans_styles_default = `@layer base, reset, transitional-s
|
|
|
1527
1535
|
}
|
|
1528
1536
|
`;
|
|
1529
1537
|
|
|
1530
|
-
// libs/core/src/components/segmented-control/segment/segment.trans.styles.css
|
|
1538
|
+
// libs/core/src/components/segmented-control/segment/segment.trans.styles.css?inline
|
|
1531
1539
|
var segment_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1532
1540
|
|
|
1533
1541
|
@layer transitional-styles {
|
|
@@ -1603,7 +1611,7 @@ function register9() {
|
|
|
1603
1611
|
}
|
|
1604
1612
|
var segmented_control_trans_styles_default2 = register9;
|
|
1605
1613
|
|
|
1606
|
-
// libs/core/src/components/filter-chips/filter-chips.trans.styles.scss
|
|
1614
|
+
// libs/core/src/components/filter-chips/filter-chips.trans.styles.scss?inline
|
|
1607
1615
|
var filter_chips_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1608
1616
|
@layer transitional-styles {
|
|
1609
1617
|
@layer _base, _overrides;
|
|
@@ -1611,7 +1619,7 @@ var filter_chips_trans_styles_default = `@layer base, reset, transitional-styles
|
|
|
1611
1619
|
@layer _overrides {}
|
|
1612
1620
|
}`;
|
|
1613
1621
|
|
|
1614
|
-
// libs/core/src/components/filter-chips/filter-chip/filter-chip.trans.styles.scss
|
|
1622
|
+
// libs/core/src/components/filter-chips/filter-chip/filter-chip.trans.styles.scss?inline
|
|
1615
1623
|
var filter_chip_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1616
1624
|
@layer transitional-styles {
|
|
1617
1625
|
@layer _base, _overrides;
|
|
@@ -1639,7 +1647,7 @@ function register12() {
|
|
|
1639
1647
|
}
|
|
1640
1648
|
var filter_chips_trans_styles_default2 = register12;
|
|
1641
1649
|
|
|
1642
|
-
// libs/core/src/components/theme/chlorophyll-tokens.scss
|
|
1650
|
+
// libs/core/src/components/theme/chlorophyll-tokens.scss?inline
|
|
1643
1651
|
var chlorophyll_tokens_default = `/**
|
|
1644
1652
|
* Calculate the luminance for a color.
|
|
1645
1653
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -1658,6 +1666,10 @@ Themes such as dark-mode, high-contrast mode etc.
|
|
|
1658
1666
|
Values for light mode are used by default.
|
|
1659
1667
|
*/
|
|
1660
1668
|
/* mixin for generating css variables from map with optional prefix */
|
|
1669
|
+
:host {
|
|
1670
|
+
display: contents;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1661
1673
|
:host([color-scheme=light]) {
|
|
1662
1674
|
--gds-sys-shape-corner-none: 0;
|
|
1663
1675
|
--gds-sys-shape-corner-small: 0.125rem;
|
|
@@ -2290,7 +2302,7 @@ _elements = new WeakMap();
|
|
|
2290
2302
|
_useLegacyStylesheets = new WeakMap();
|
|
2291
2303
|
var TransitionalStyles = _TransitionalStyles;
|
|
2292
2304
|
|
|
2293
|
-
// libs/core/src/components/button/button.trans.styles.scss
|
|
2305
|
+
// libs/core/src/components/button/button.trans.styles.scss?inline
|
|
2294
2306
|
var button_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
2295
2307
|
/* stylelint-enable max-nesting-depth */
|
|
2296
2308
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokens
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PFAU5MJG.js";
|
|
4
4
|
import {
|
|
5
5
|
gdsCustomElement
|
|
6
6
|
} from "./chunk.VOYMQ322.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { LitElement, html, unsafeCSS } from "lit";
|
|
13
13
|
import { query } from "lit/decorators.js";
|
|
14
14
|
|
|
15
|
-
// libs/core/src/primitives/ripple/ripple.styles.scss
|
|
15
|
+
// libs/core/src/primitives/ripple/ripple.styles.scss?inline
|
|
16
16
|
var ripple_styles_default = `:host {
|
|
17
17
|
--gds-ripple-motion-name: ripple;
|
|
18
18
|
--gds-ripple-motion: var(--gds-ripple-motion-name)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokens
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.PFAU5MJG.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsFormControlElement
|
|
6
6
|
} from "./chunk.MZSK66DN.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.KBYQYDL3.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.ERRPHNRC.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -57,7 +57,7 @@ var ForwardAttributesDirective = class extends Directive {
|
|
|
57
57
|
};
|
|
58
58
|
var forwardAttributes = directive(ForwardAttributesDirective);
|
|
59
59
|
|
|
60
|
-
// libs/core/src/components/button/button.style.css
|
|
60
|
+
// libs/core/src/components/button/button.style.css?inline
|
|
61
61
|
var button_style_default = `@layer tokens, a11y, core, ranks, sizes, variants, disabled;
|
|
62
62
|
|
|
63
63
|
@layer tokens {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.X2VQYOI4.js";
|
|
4
4
|
import {
|
|
5
5
|
resizeObserver
|
|
6
6
|
} from "./chunk.VHN4JEZC.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.PFAU5MJG.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.ERRPHNRC.js";
|
|
13
13
|
import {
|
|
14
14
|
GdsElement
|
|
15
15
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// libs/core/src/tokens.style.ts
|
|
2
2
|
import { unsafeCSS } from "lit";
|
|
3
3
|
|
|
4
|
-
// dist/libs/tokens/internal/pallet.css
|
|
4
|
+
// dist/libs/tokens/internal/pallet.css?inline
|
|
5
5
|
var pallet_default = `/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Fri, 14 Jun 2024 09:06:20 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
:host {
|
|
@@ -162,10 +162,10 @@ var pallet_default = `/**
|
|
|
162
162
|
}
|
|
163
163
|
`;
|
|
164
164
|
|
|
165
|
-
// dist/libs/tokens/internal/theme/light.css
|
|
165
|
+
// dist/libs/tokens/internal/theme/light.css?inline
|
|
166
166
|
var light_default = `/**
|
|
167
167
|
* Do not edit directly
|
|
168
|
-
* Generated on
|
|
168
|
+
* Generated on Fri, 14 Jun 2024 09:06:20 GMT
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
171
|
:host {
|
|
@@ -283,10 +283,10 @@ var light_default = `/**
|
|
|
283
283
|
}
|
|
284
284
|
`;
|
|
285
285
|
|
|
286
|
-
// dist/libs/tokens/internal/size.css
|
|
286
|
+
// dist/libs/tokens/internal/size.css?inline
|
|
287
287
|
var size_default = `/**
|
|
288
288
|
* Do not edit directly
|
|
289
|
-
* Generated on
|
|
289
|
+
* Generated on Fri, 14 Jun 2024 09:06:20 GMT
|
|
290
290
|
*/
|
|
291
291
|
|
|
292
292
|
:host {
|
|
@@ -529,10 +529,10 @@ var size_default = `/**
|
|
|
529
529
|
}
|
|
530
530
|
`;
|
|
531
531
|
|
|
532
|
-
// dist/libs/tokens/internal/motion.css
|
|
532
|
+
// dist/libs/tokens/internal/motion.css?inline
|
|
533
533
|
var motion_default = `/**
|
|
534
534
|
* Do not edit directly
|
|
535
|
-
* Generated on
|
|
535
|
+
* Generated on Fri, 14 Jun 2024 09:06:20 GMT
|
|
536
536
|
*/
|
|
537
537
|
|
|
538
538
|
:host {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.NNJ6DJO2.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.ERRPHNRC.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsElement
|
|
9
9
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -160,15 +160,16 @@ var GdsCalendar = class extends GdsElement {
|
|
|
160
160
|
id="dateCell-${day.getDate()}"
|
|
161
161
|
>
|
|
162
162
|
<span
|
|
163
|
-
|
|
163
|
+
class="number"
|
|
164
|
+
style="--_color: ${customization ? customization == null ? void 0 : customization.color : ""}"
|
|
164
165
|
>${day.getDate()}</span
|
|
165
166
|
>
|
|
166
167
|
|
|
167
168
|
${when(
|
|
168
169
|
customization.indicator,
|
|
169
170
|
() => html`<span
|
|
170
|
-
class="
|
|
171
|
-
style="
|
|
171
|
+
class="indicator-${customization == null ? void 0 : customization.indicator}"
|
|
172
|
+
style="--_color: ${customization == null ? void 0 : customization.color}"
|
|
172
173
|
></span>`
|
|
173
174
|
)}
|
|
174
175
|
</td>
|