@sebgroup/green-core 1.41.3 → 1.42.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.UHNPSJD7.js → chunk.27FXJC7Z.js} +1 -1
- package/chunks/{chunk.2OM65U7R.js → chunk.34MAIINV.js} +1 -1
- package/chunks/{chunk.67V2EUAS.js → chunk.3DNQAQ3I.js} +8 -8
- package/chunks/{chunk.FRKST3V3.js → chunk.3XCSDEVC.js} +5 -1
- package/chunks/{chunk.KEABUNKI.js → chunk.4KEZS5UA.js} +2 -2
- package/chunks/{chunk.ACZZOEZO.js → chunk.4VW724L2.js} +1 -1
- package/chunks/{chunk.3CKYXYV3.js → chunk.647FXT6C.js} +2 -2
- package/chunks/{chunk.FVMGQCFX.js → chunk.6GS7KCSS.js} +2 -2
- package/chunks/{chunk.RB5IEYTY.js → chunk.CTY24X3K.js} +3 -0
- package/chunks/{chunk.DUOVRIQ3.js → chunk.DBILHPMR.js} +2 -2
- package/chunks/{chunk.VI5YAAZZ.js → chunk.DEMK2FD7.js} +1 -1
- package/chunks/{chunk.D2YFE7PP.js → chunk.DMV5YQTC.js} +5 -5
- package/chunks/{chunk.FNDEKTVD.js → chunk.DW6Q6SBC.js} +2 -2
- package/chunks/{chunk.IKIDSA6U.js → chunk.EJUBEZ5B.js} +2 -2
- package/chunks/{chunk.R23KL74Y.js → chunk.EYEFIM2C.js} +2 -2
- package/chunks/{chunk.2M3OZFKW.js → chunk.G3YUUPNZ.js} +2 -2
- package/chunks/{chunk.3BXJ2QSM.js → chunk.GHYMUUPE.js} +3 -3
- package/chunks/{chunk.QI63FAPW.js → chunk.H3EKOZFJ.js} +1 -1
- package/chunks/{chunk.XRGHHEV3.js → chunk.IA5PLMWU.js} +1 -1
- package/chunks/{chunk.TITFQADC.js → chunk.IV4BHCMI.js} +1 -1
- package/chunks/{chunk.FYU66WVW.js → chunk.JZZIQFBB.js} +3 -3
- package/chunks/{chunk.FOLZGQJ4.js → chunk.L6K6EODO.js} +1 -1
- package/chunks/{chunk.Q4V3NZWP.js → chunk.MBOWSQFX.js} +2 -2
- package/chunks/{chunk.QHSSAUNX.js → chunk.O7YI7FZ5.js} +2 -2
- package/chunks/{chunk.MXEOEIBB.js → chunk.OCU74EXO.js} +3 -3
- package/chunks/{chunk.OBHMVP3G.js → chunk.OL4Y3QHU.js} +2 -2
- package/chunks/{chunk.JVTCYOPL.js → chunk.Q54LZGGX.js} +1 -1
- package/chunks/{chunk.VHC2TZFN.js → chunk.RHDKSFLQ.js} +3 -3
- package/chunks/{chunk.THIKKSKY.js → chunk.RPYPYJW6.js} +1 -1
- package/chunks/{chunk.AVF2XDCI.js → chunk.S2QX5GSA.js} +2 -2
- package/chunks/{chunk.ADPMTWTS.js → chunk.U6OZ3R3W.js} +47 -42
- package/chunks/{chunk.YVOYO7NA.js → chunk.VC72CYU3.js} +2 -2
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/{chunk.BI7ICMOI.js → chunk.W67TOOB4.js} +1 -1
- package/chunks/{chunk.JECXO3YI.js → chunk.XF5K6ZIH.js} +2 -2
- package/chunks/{chunk.ANXCMF3X.js → chunk.XO3GEBSD.js} +2 -2
- package/components/badge/badge.js +3 -3
- package/components/badge/index.js +3 -3
- package/components/button/button.js +4 -4
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/fab/fab.js +6 -6
- package/components/button/fab/index.js +6 -6
- package/components/button/index.js +4 -4
- package/components/calendar/calendar.js +4 -4
- package/components/calendar/calendar.trans.styles.js +1 -1
- package/components/calendar/functions.js +1 -1
- package/components/calendar/index.js +4 -4
- 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 +3 -3
- package/components/content/text/text.js +3 -3
- 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 +12 -12
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/datepicker/index.js +12 -12
- package/components/dropdown/dropdown.js +8 -8
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/index.js +9 -9
- 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/form/index.js +5 -5
- package/components/form/summary/index.js +5 -5
- package/components/form/summary/summary.js +5 -5
- 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 +32 -32
- package/components/input/index.js +2 -2
- package/components/input/input.js +2 -2
- package/components/layout/card/card.js +4 -4
- package/components/layout/card/index.js +4 -4
- package/components/layout/container/container.js +3 -3
- package/components/layout/container/index.js +3 -3
- package/components/layout/flex/flex.js +4 -4
- package/components/layout/flex/index.js +4 -4
- package/components/layout/grid/grid.js +4 -4
- package/components/layout/grid/index.js +4 -4
- package/components/media/img/img.js +3 -3
- package/components/media/img/index.js +3 -3
- package/components/media/video/index.js +3 -3
- package/components/media/video/video.js +3 -3
- package/components/menu-button/index.js +2 -2
- package/components/menu-button/menu-button.js +2 -2
- 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 +3 -3
- package/components/theme/theme.js +3 -3
- package/components/theme/theme.trans.styles.js +1 -1
- package/index.js +32 -32
- package/package.json +1 -1
- package/primitives/listbox/index.js +4 -4
- package/primitives/listbox/listbox.js +4 -4
- package/primitives/listbox/option.js +3 -3
- 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/primitives/signal/index.js +3 -3
- package/primitives/signal/signal.js +3 -3
- package/transitional-styles.js +1 -1
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// dist/libs/tokens/internal/light.css?inline
|
|
2
2
|
var light_default = `/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
color-scheme: light;
|
|
@@ -114,7 +114,7 @@ var light_default = `/**
|
|
|
114
114
|
// dist/libs/tokens/internal/dark.css?inline
|
|
115
115
|
var dark_default = `/**
|
|
116
116
|
* Do not edit directly
|
|
117
|
-
* Generated on
|
|
117
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
118
118
|
*/
|
|
119
119
|
|
|
120
120
|
color-scheme: dark;
|
|
@@ -230,7 +230,7 @@ import { unsafeCSS } from "lit";
|
|
|
230
230
|
// dist/libs/tokens/internal/pallet.css?inline
|
|
231
231
|
var pallet_default = `/**
|
|
232
232
|
* Do not edit directly
|
|
233
|
-
* Generated on
|
|
233
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
234
234
|
*/
|
|
235
235
|
|
|
236
236
|
:host {
|
|
@@ -391,7 +391,7 @@ var pallet_default = `/**
|
|
|
391
391
|
// dist/libs/tokens/internal/theme/light.css?inline
|
|
392
392
|
var light_default2 = `/**
|
|
393
393
|
* Do not edit directly
|
|
394
|
-
* Generated on
|
|
394
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
395
395
|
*/
|
|
396
396
|
|
|
397
397
|
:host {
|
|
@@ -617,7 +617,7 @@ var light_default2 = `/**
|
|
|
617
617
|
// dist/libs/tokens/internal/size.css?inline
|
|
618
618
|
var size_default = `/**
|
|
619
619
|
* Do not edit directly
|
|
620
|
-
* Generated on
|
|
620
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
621
621
|
*/
|
|
622
622
|
|
|
623
623
|
:host {
|
|
@@ -644,7 +644,7 @@ var size_default = `/**
|
|
|
644
644
|
// dist/libs/tokens/internal/text.css?inline
|
|
645
645
|
var text_default = `/**
|
|
646
646
|
* Do not edit directly
|
|
647
|
-
* Generated on
|
|
647
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
648
648
|
*/
|
|
649
649
|
|
|
650
650
|
:host {
|
|
@@ -705,7 +705,7 @@ var text_default = `/**
|
|
|
705
705
|
// dist/libs/tokens/internal/motion.css?inline
|
|
706
706
|
var motion_default = `/**
|
|
707
707
|
* Do not edit directly
|
|
708
|
-
* Generated on
|
|
708
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
709
709
|
*/
|
|
710
710
|
|
|
711
711
|
:host {
|
|
@@ -723,7 +723,7 @@ var motion_default = `/**
|
|
|
723
723
|
// dist/libs/tokens/internal/shadow.css?inline
|
|
724
724
|
var shadow_default = `/**
|
|
725
725
|
* Do not edit directly
|
|
726
|
-
* Generated on
|
|
726
|
+
* Generated on Tue, 24 Sep 2024 14:04:07 GMT
|
|
727
727
|
*/
|
|
728
728
|
|
|
729
729
|
:host {
|
|
@@ -1400,10 +1400,14 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1400
1400
|
inset-inline: 0;
|
|
1401
1401
|
background-color: var(--_color);
|
|
1402
1402
|
}
|
|
1403
|
-
table {
|
|
1403
|
+
:host table {
|
|
1404
1404
|
flex-grow: 1;
|
|
1405
1405
|
width: 100%;
|
|
1406
1406
|
}
|
|
1407
|
+
:host table td {
|
|
1408
|
+
width: 3rem;
|
|
1409
|
+
height: 3rem;
|
|
1410
|
+
}
|
|
1407
1411
|
}
|
|
1408
1412
|
@layer _modifiers {
|
|
1409
1413
|
.week-number {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk.LFJRIUDW.js";
|
|
5
5
|
import {
|
|
6
6
|
TransitionalStyles
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.3XCSDEVC.js";
|
|
8
8
|
import {
|
|
9
9
|
tokens
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -14,6 +14,9 @@ function renderMonthGridView(date, template) {
|
|
|
14
14
|
{ start: monthStart, end: monthEnd },
|
|
15
15
|
{ weekStartsOn: 1 }
|
|
16
16
|
);
|
|
17
|
+
while (weeks.length < 6) {
|
|
18
|
+
weeks.push(addDays(weeks[weeks.length - 1], 7));
|
|
19
|
+
}
|
|
17
20
|
return html`${template(
|
|
18
21
|
weeks.map((weekStartDay) => ({
|
|
19
22
|
days: eachDayOfInterval({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderMonthGridView
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.CTY24X3K.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.3XCSDEVC.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -73,8 +73,8 @@ var style = css`
|
|
|
73
73
|
tbody {
|
|
74
74
|
td {
|
|
75
75
|
position: relative;
|
|
76
|
-
height: var(--gds-space-
|
|
77
|
-
width: var(--gds-space-
|
|
76
|
+
height: var(--gds-space-3xl);
|
|
77
|
+
width: var(--gds-space-3xl);
|
|
78
78
|
box-sizing: border-box;
|
|
79
79
|
text-align: center;
|
|
80
80
|
user-select: none;
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk.KBYQYDL3.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.3XCSDEVC.js";
|
|
13
13
|
import {
|
|
14
14
|
tokens
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
16
16
|
import {
|
|
17
17
|
gdsCustomElement,
|
|
18
18
|
html
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.NKSKWGNM.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.U6OZ3R3W.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VC72CYU3.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.U6OZ3R3W.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VC72CYU3.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.U6OZ3R3W.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.SXGACXKX.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.U6OZ3R3W.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.VC72CYU3.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.U6OZ3R3W.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.7VC33K5Z.js";
|
|
4
4
|
import {
|
|
5
5
|
styleExpressionProperty
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.U6OZ3R3W.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XF5K6ZIH.js";
|
|
4
4
|
import {
|
|
5
5
|
resizeObserver
|
|
6
6
|
} from "./chunk.VHN4JEZC.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.3XCSDEVC.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk.WM7HBMMV.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.3XCSDEVC.js";
|
|
13
13
|
import {
|
|
14
14
|
tokens
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
16
16
|
import {
|
|
17
17
|
watch
|
|
18
18
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -22,7 +22,7 @@ var viewportBreakpoints = {
|
|
|
22
22
|
"6xl": "7680px"
|
|
23
23
|
};
|
|
24
24
|
var breakpointValueRegex = /^([<|>]=?)?([0-9a-z]+)/;
|
|
25
|
-
var
|
|
25
|
+
var controlTokens = ["{", "}", ";", ":", ","];
|
|
26
26
|
var whitespace = [" ", "/n"];
|
|
27
27
|
function tokenize(source) {
|
|
28
28
|
const lexemes = [];
|
|
@@ -31,7 +31,7 @@ function tokenize(source) {
|
|
|
31
31
|
const c = source[i];
|
|
32
32
|
if (!whitespace.includes(c))
|
|
33
33
|
scanned += c;
|
|
34
|
-
if (
|
|
34
|
+
if (controlTokens.includes(c)) {
|
|
35
35
|
lexemes.push(scanned.slice(0, -1));
|
|
36
36
|
lexemes.push(c);
|
|
37
37
|
scanned = "";
|
|
@@ -46,53 +46,46 @@ function tokenize(source) {
|
|
|
46
46
|
return lexemes.filter((l) => l !== "");
|
|
47
47
|
}
|
|
48
48
|
function parse(tokens) {
|
|
49
|
+
var _a;
|
|
49
50
|
const tree = [];
|
|
50
|
-
let
|
|
51
|
-
|
|
52
|
-
let
|
|
51
|
+
let bpScope = { breakpoint: "-", values: [] };
|
|
52
|
+
const getEmptyBucket = () => ({ sel: "", values: [] });
|
|
53
|
+
let valueBucket = getEmptyBucket();
|
|
53
54
|
for (const t of tokens) {
|
|
54
|
-
if (!
|
|
55
|
-
|
|
56
|
-
t !== "}" && scope.values.push(t);
|
|
57
|
-
} else {
|
|
58
|
-
if (scope && expectMultiCondition) {
|
|
59
|
-
scope.breakpoint += `,${t}`;
|
|
60
|
-
expectMultiCondition = false;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
if (!scope) {
|
|
64
|
-
scope = { breakpoint: t, values: [] };
|
|
65
|
-
tree.push(scope);
|
|
66
|
-
} else {
|
|
67
|
-
level = "val";
|
|
68
|
-
scope.values.push(scope.breakpoint);
|
|
69
|
-
scope.values.push(t);
|
|
70
|
-
scope.breakpoint = "-";
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
if (t === ",") {
|
|
76
|
-
expectMultiCondition = true;
|
|
55
|
+
if (!controlTokens.includes(t)) {
|
|
56
|
+
valueBucket.values.push(t);
|
|
77
57
|
continue;
|
|
78
58
|
}
|
|
79
59
|
if (t === "{") {
|
|
80
|
-
|
|
81
|
-
|
|
60
|
+
bpScope = { breakpoint: valueBucket.values.join(","), values: [] };
|
|
61
|
+
valueBucket = getEmptyBucket();
|
|
82
62
|
}
|
|
83
|
-
if (t === "
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
63
|
+
if (t === ";") {
|
|
64
|
+
if (tree.length === 0) {
|
|
65
|
+
tree.push(bpScope);
|
|
66
|
+
}
|
|
67
|
+
if (valueBucket.values.length > 0) {
|
|
68
|
+
bpScope.values.push(valueBucket);
|
|
69
|
+
valueBucket = getEmptyBucket();
|
|
70
|
+
}
|
|
87
71
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
bp.values.push(bp.breakpoint);
|
|
92
|
-
bp.breakpoint = "-";
|
|
72
|
+
if (t === ":") {
|
|
73
|
+
const sel = (_a = valueBucket.values.pop()) != null ? _a : "";
|
|
74
|
+
valueBucket.sel = sel;
|
|
93
75
|
}
|
|
94
|
-
|
|
95
|
-
|
|
76
|
+
if (bpScope && t === "}") {
|
|
77
|
+
bpScope.values.push(valueBucket);
|
|
78
|
+
valueBucket = getEmptyBucket();
|
|
79
|
+
tree.push(bpScope);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (valueBucket.values.length > 0) {
|
|
83
|
+
bpScope.values.push(valueBucket);
|
|
84
|
+
}
|
|
85
|
+
if (tree.length === 0) {
|
|
86
|
+
tree.push(bpScope);
|
|
87
|
+
}
|
|
88
|
+
return tree;
|
|
96
89
|
}
|
|
97
90
|
function parseBreakpoint(bp) {
|
|
98
91
|
const bps = bp.split(",");
|
|
@@ -114,7 +107,19 @@ function toCss(selector, property2, tree, valueTemplate = (v) => v, styleTemplat
|
|
|
114
107
|
return `(${((_a = b.condition) == null ? void 0 : _a.includes("<")) ? "max-width" : "min-width"}: ${(_b = viewportBreakpoints[b.value]) != null ? _b : b.value})`;
|
|
115
108
|
}
|
|
116
109
|
).join(" and ");
|
|
117
|
-
const mq = `@media ${query} {${
|
|
110
|
+
const mq = `@media ${query} {${bp.values.map((bpValues) => {
|
|
111
|
+
let sel = selector;
|
|
112
|
+
if (bpValues.sel.length > 0)
|
|
113
|
+
sel = selector === ":host" ? `:host(:${bpValues.sel})` : `${selector}:${bpValues.sel}`;
|
|
114
|
+
const style = styleTemplate(
|
|
115
|
+
property2,
|
|
116
|
+
bpValues.values.map(valueTemplate)
|
|
117
|
+
);
|
|
118
|
+
if (bpValues.sel === "hover")
|
|
119
|
+
return `@media (hover: hover) {${sel}{${style}}}`;
|
|
120
|
+
else
|
|
121
|
+
return `${sel}{${style}}`;
|
|
122
|
+
}).join("")}}`;
|
|
118
123
|
css += mq;
|
|
119
124
|
}
|
|
120
125
|
return css;
|
package/chunks/chunk.VOYMQ322.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// libs/core/src/utils/helpers/custom-element-scoping.ts
|
|
2
2
|
import { html as litHtml } from "lit";
|
|
3
3
|
import { customElement } from "lit/decorators.js";
|
|
4
|
-
var VER_SUFFIX = "-
|
|
4
|
+
var VER_SUFFIX = "-6b2be5";
|
|
5
5
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
6
6
|
var gdsCustomElement = (tagName) => {
|
|
7
7
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk.2BMJPIND.js";
|
|
8
8
|
import {
|
|
9
9
|
TransitionalStyles
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.3XCSDEVC.js";
|
|
11
11
|
import {
|
|
12
12
|
tokens
|
|
13
|
-
} from "./chunk.
|
|
13
|
+
} from "./chunk.3DNQAQ3I.js";
|
|
14
14
|
import {
|
|
15
15
|
watch
|
|
16
16
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsBadge
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
5
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.4KEZS5UA.js";
|
|
4
|
+
import "../../chunks/chunk.U6OZ3R3W.js";
|
|
5
|
+
import "../../chunks/chunk.3DNQAQ3I.js";
|
|
6
6
|
import "../../chunks/chunk.2WO4NHJ2.js";
|
|
7
7
|
import "../../chunks/chunk.ZQ4D5K7J.js";
|
|
8
8
|
import "../../chunks/chunk.W7CV3QYI.js";
|