@sebgroup/green-core 1.60.0 → 1.61.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.HLWSHILT.js → chunk.27SYD4ZG.js} +6 -8
- package/chunks/{chunk.4F2WAZKO.js → chunk.2HVQ24BJ.js} +2 -2
- package/chunks/{chunk.BRHKDNFD.js → chunk.3HGZ5B5Q.js} +1 -1
- package/chunks/{chunk.TVJYFYLU.js → chunk.43JUKB53.js} +33 -11
- package/chunks/chunk.5HUS6CAH.js +0 -0
- package/chunks/{chunk.SHITJ27X.js → chunk.5L6LO6VX.js} +1 -1
- package/chunks/{chunk.RXOV7ZV4.js → chunk.77RJTA43.js} +1 -1
- package/chunks/{chunk.4VYS7SYU.js → chunk.A2VYZXDP.js} +14 -6
- package/chunks/{chunk.KSBQGJ4N.js → chunk.B525N4J3.js} +2 -2
- package/chunks/{chunk.2Z4W2TRI.js → chunk.B7X4UWIN.js} +1 -1
- package/chunks/{chunk.BGWGCMCR.js → chunk.BHWBJIPJ.js} +75 -57
- package/chunks/chunk.BYYROY6X.js +382 -0
- package/chunks/{chunk.B3BCODWZ.js → chunk.C3ZGNKY3.js} +2 -2
- package/chunks/{chunk.3WZNFNK6.js → chunk.DBFF5KCR.js} +1 -1
- package/chunks/{chunk.DG5H6P5X.js → chunk.DYKJT56X.js} +2 -2
- package/chunks/{chunk.3DRYWPZO.js → chunk.FCB5VT3N.js} +8 -4
- package/chunks/{chunk.QYSGJ5CP.js → chunk.GYV7S25D.js} +6 -13
- package/chunks/{chunk.P2DEMU5V.js → chunk.H26SOC3M.js} +2 -2
- package/chunks/{chunk.TPWB5DUJ.js → chunk.HJBA7FLT.js} +47 -17
- package/chunks/{chunk.ECWUT62F.js → chunk.HOH7FXB5.js} +20 -8
- package/chunks/{chunk.OXGED2L5.js → chunk.HORYYI6N.js} +2 -2
- package/chunks/{chunk.532242YD.js → chunk.IS6GBDKU.js} +1 -1
- package/chunks/{chunk.HVDSCK6U.js → chunk.JYTNQTK4.js} +2 -2
- package/chunks/{chunk.4ZHTAQDZ.js → chunk.KEPXMMGX.js} +3 -3
- package/chunks/{chunk.LJOYUM3A.js → chunk.KMMI2BYQ.js} +1 -1
- package/chunks/{chunk.KOSOFSBP.js → chunk.KTCN5HJV.js} +25 -3
- package/chunks/{chunk.EQK24GA7.js → chunk.M6S3B5GI.js} +1 -1
- package/chunks/chunk.MLXMQIEV.js +1 -1
- package/chunks/{chunk.DDEH4BLM.js → chunk.MSDETVDW.js} +1 -1
- package/chunks/{chunk.HZSYETQW.js → chunk.NCZAYYNU.js} +1 -1
- package/chunks/{chunk.HRNZCGRZ.js → chunk.OSIUU4NF.js} +20 -6
- package/chunks/{chunk.2QH66UQK.js → chunk.P2BOEVHE.js} +2 -2
- package/chunks/{chunk.AIJ6QFLC.js → chunk.PBUUPCPL.js} +1 -1
- package/chunks/{chunk.2FIMLN5K.js → chunk.QIE6QJ5O.js} +2 -2
- package/chunks/{chunk.6YX75PNT.js → chunk.QN5HFZCH.js} +1 -1
- package/chunks/{chunk.E5WWCN6L.js → chunk.RL2KSWKV.js} +1 -1
- package/chunks/{chunk.FAQESENL.js → chunk.RTE75ZOU.js} +13 -7
- package/chunks/{chunk.MXCTN4I7.js → chunk.S4DOMLSN.js} +2 -2
- package/chunks/{chunk.W6APMWG7.js → chunk.SGFAP56K.js} +1 -1
- package/chunks/{chunk.QRS6W5CU.js → chunk.SIRY2HVR.js} +2 -2
- package/chunks/chunk.T6P6LC4Y.js +26 -0
- package/chunks/{chunk.2RPIXTTF.js → chunk.U44LH2CF.js} +1 -1
- package/chunks/{chunk.JHTTWGJB.js → chunk.W6E54X7P.js} +1 -1
- package/chunks/{chunk.EXYL4FK6.js → chunk.WV7BXKV6.js} +2 -2
- package/chunks/{chunk.XFOLMVIU.js → chunk.WXBRUX3Q.js} +12 -12
- package/chunks/{chunk.ZKJKGAYQ.js → chunk.XAWXXWZ3.js} +2 -2
- package/chunks/{chunk.PIVMG24U.js → chunk.YAPDYZK6.js} +1 -1
- package/chunks/{chunk.WOGUULLN.js → chunk.YRHYEHLO.js} +1 -1
- package/chunks/{chunk.H7DJUX62.js → chunk.Z334YLO4.js} +1 -1
- package/chunks/{chunk.JYQY43ZR.js → chunk.Z3MHP5MN.js} +8 -1
- package/chunks/{chunk.UDVIBJU2.js → chunk.ZTRXED5A.js} +1 -1
- package/components/badge/badge.js +4 -4
- package/components/badge/index.js +4 -4
- package/components/button/button.js +5 -5
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/index.js +5 -5
- package/components/calendar/calendar.js +3 -3
- package/components/calendar/calendar.trans.styles.js +1 -1
- package/components/calendar/index.js +3 -3
- package/components/card/card.js +3 -3
- package/components/card/index.js +3 -3
- package/components/container/container.js +2 -2
- package/components/container/index.js +2 -2
- package/components/context-menu/context-menu.js +6 -6
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/context-menu/index.js +7 -7
- package/components/datepicker/datepicker.js +13 -13
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/datepicker/index.js +13 -13
- package/components/dialog/dialog.js +8 -8
- package/components/dialog/index.js +8 -8
- package/components/divider/divider.js +2 -2
- package/components/divider/index.js +2 -2
- package/components/dropdown/dropdown.js +10 -10
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/index.js +11 -11
- package/components/fab/fab.js +6 -6
- package/components/fab/index.js +6 -6
- package/components/filter-chips/filter-chip/filter-chip.js +6 -6
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
- package/components/filter-chips/filter-chip/index.js +6 -6
- package/components/filter-chips/filter-chips.js +7 -7
- package/components/filter-chips/filter-chips.trans.styles.js +1 -1
- package/components/filter-chips/index.js +7 -7
- package/components/flex/flex.js +3 -3
- package/components/flex/index.js +3 -3
- package/components/form/form-control.d.ts +8 -0
- package/components/form/form-control.js +1 -1
- package/components/form/index.js +8 -7
- package/components/form/summary/index.js +8 -7
- package/components/form/summary/summary.d.ts +1 -1
- package/components/form/summary/summary.js +8 -7
- package/components/grid/grid.js +3 -3
- package/components/grid/index.js +3 -3
- 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/icon/icons/back.js +1 -1
- package/components/icon/icons/brand-app-store.js +1 -1
- package/components/icon/icons/brand-chrome.js +1 -1
- package/components/icon/icons/brand-green.js +1 -1
- package/components/icon/icons/brand-play-store.js +1 -1
- package/components/icon/icons/brand-x.js +1 -1
- package/components/icon/icons/fast-forward.js +1 -1
- package/components/icon/icons/index.js +11 -11
- package/components/icon/icons/pause.js +1 -1
- package/components/img/img.js +2 -2
- package/components/img/index.js +2 -2
- package/components/index.js +44 -43
- package/components/input/index.js +11 -11
- package/components/input/input.d.ts +1 -1
- package/components/input/input.js +11 -11
- package/components/link/index.js +2 -2
- package/components/link/link.js +2 -2
- package/components/mask/index.js +4 -4
- package/components/mask/mask.js +4 -4
- 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/rich-text/index.js +2 -2
- package/components/rich-text/rich-text.d.ts +15 -1
- package/components/rich-text/rich-text.js +2 -2
- 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/signal/index.js +2 -2
- package/components/signal/signal.js +2 -2
- package/components/spacer/index.js +2 -2
- package/components/spacer/spacer.js +2 -2
- package/components/text/index.js +3 -2
- package/components/text/text.js +2 -2
- package/components/textarea/index.js +11 -11
- package/components/textarea/textarea.d.ts +2 -1
- package/components/textarea/textarea.js +11 -11
- package/components/theme/index.js +3 -3
- package/components/theme/theme.js +3 -3
- package/components/theme/theme.trans.styles.js +1 -1
- package/components/video/index.js +2 -2
- package/components/video/video.js +2 -2
- package/index.js +44 -43
- package/package.json +1 -1
- package/primitives/form-control-footer/form-control-footer.js +4 -4
- package/primitives/form-control-footer/index.js +4 -4
- package/primitives/form-control-header/form-control-header.js +7 -7
- package/primitives/form-control-header/index.js +7 -7
- package/primitives/listbox/index.js +5 -5
- package/primitives/listbox/listbox.js +5 -5
- package/primitives/listbox/option.js +4 -4
- package/primitives/menu/index.js +4 -4
- package/primitives/menu/menu-heading.js +2 -2
- package/primitives/menu/menu-item.js +3 -3
- package/primitives/menu/menu.js +4 -4
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/tokens.style.d.ts +3 -3
- package/transitional-styles.js +1 -1
- package/chunks/chunk.5OF4VUNB.js +0 -26
- package/chunks/chunk.VI2KPHVV.js +0 -797
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.U44LH2CF.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk.TYGMNHNO.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.BYYROY6X.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.LQSWYCMZ.js";
|
|
@@ -64,7 +64,6 @@ var style = css`
|
|
|
64
64
|
th {
|
|
65
65
|
height: var(--gds-space-2xl);
|
|
66
66
|
width: var(--gds-space-2xl);
|
|
67
|
-
background: var(--gds-sys-color-container-container-bright);
|
|
68
67
|
box-sizing: border-box;
|
|
69
68
|
text-align: center;
|
|
70
69
|
font-weight: normal;
|
|
@@ -91,18 +90,17 @@ var style = css`
|
|
|
91
90
|
|
|
92
91
|
&:not(.disabled):hover,
|
|
93
92
|
&[aria-selected='true'] {
|
|
94
|
-
background: var(--gds-
|
|
93
|
+
background: var(--gds-color-l2-background-tertiary);
|
|
95
94
|
cursor: pointer;
|
|
96
|
-
color: var(--gds-
|
|
95
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
&.today {
|
|
100
|
-
border-color: var(--gds-
|
|
99
|
+
border-color: var(--gds-color-l2-background-tertiary);
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
&.disabled {
|
|
104
|
-
|
|
105
|
-
color: var(--gds-sys-color-base500);
|
|
103
|
+
color: var(--gds-color-l3-content-disabled);
|
|
106
104
|
cursor: not-allowed;
|
|
107
105
|
}
|
|
108
106
|
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
var IconBack = class extends GdsIcon {
|
|
13
13
|
};
|
|
14
14
|
/** @private */
|
|
15
|
-
IconBack._regularSVG = `<path fill-rule="evenodd" clip-rule="evenodd" d="M19.609 4.09151C19.368 3.96011 19.0745 3.97087 18.8437 4.11957L7.59372 11.3696C7.37946 11.5077 7.25 11.7451 7.25 12C7.25 12.2549 7.37946 12.4924 7.59372 12.6304L18.8437 19.8804C19.0745 20.0291 19.368 20.0399 19.609 19.9085C19.85 19.7771 20 19.5245 20 19.25V4.75C20 4.47549 19.85 4.22292 19.609 4.09151ZM4.75 4C4.33579 4 4 4.33579 4 4.75V19.25C4 19.6642 4.33579 20 4.75 20C5.16421 20 5.5 19.6642 5.5 19.25V4.75C5.5 4.33579 5.16421 4 4.75 4ZM18.5 6.12558V17.8744L9.38453 12L18.5 6.12558Z" fill="
|
|
15
|
+
IconBack._regularSVG = `<path fill-rule="evenodd" clip-rule="evenodd" d="M19.609 4.09151C19.368 3.96011 19.0745 3.97087 18.8437 4.11957L7.59372 11.3696C7.37946 11.5077 7.25 11.7451 7.25 12C7.25 12.2549 7.37946 12.4924 7.59372 12.6304L18.8437 19.8804C19.0745 20.0291 19.368 20.0399 19.609 19.9085C19.85 19.7771 20 19.5245 20 19.25V4.75C20 4.47549 19.85 4.22292 19.609 4.09151ZM4.75 4C4.33579 4 4 4.33579 4 4.75V19.25C4 19.6642 4.33579 20 4.75 20C5.16421 20 5.5 19.6642 5.5 19.25V4.75C5.5 4.33579 5.16421 4 4.75 4ZM18.5 6.12558V17.8744L9.38453 12L18.5 6.12558Z" fill="currentColor"/>`;
|
|
16
16
|
/** @private */
|
|
17
|
-
IconBack._solidSVG = `<path d="M18.8437 4.11957C19.0745 3.97087 19.368 3.96011 19.609 4.09151C19.85 4.22292 20 4.47549 20 4.75V19.25C20 19.5245 19.85 19.7771 19.609 19.9085C19.368 20.0399 19.0745 20.0291 18.8437 19.8804L7.59372 12.6304C7.37946 12.4923 7.25 12.2549 7.25 12C7.25 11.7451 7.37946 11.5077 7.59372 11.3696L18.8437 4.11957Z" fill="
|
|
17
|
+
IconBack._solidSVG = `<path d="M18.8437 4.11957C19.0745 3.97087 19.368 3.96011 19.609 4.09151C19.85 4.22292 20 4.47549 20 4.75V19.25C20 19.5245 19.85 19.7771 19.609 19.9085C19.368 20.0399 19.0745 20.0291 18.8437 19.8804L7.59372 12.6304C7.37946 12.4923 7.25 12.2549 7.25 12C7.25 11.7451 7.37946 11.5077 7.59372 11.3696L18.8437 4.11957Z" fill="currentColor"/><path d="M4 4.75C4 4.33579 4.33579 4 4.75 4C5.16421 4 5.5 4.33579 5.5 4.75V19.25C5.5 19.6642 5.16421 20 4.75 20C4.33579 20 4 19.6642 4 19.25V4.75Z" fill="currentColor"/>`;
|
|
18
18
|
/** @private */
|
|
19
19
|
IconBack._name = "back";
|
|
20
20
|
IconBack = __decorateClass([
|
|
@@ -38,7 +38,7 @@ var style = css`
|
|
|
38
38
|
|
|
39
39
|
@layer base {
|
|
40
40
|
:host(:not(:last-child)) {
|
|
41
|
-
border-bottom: 1px solid var(--gds-
|
|
41
|
+
border-bottom: 1px solid var(--gds-color-l2-border-primary);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
:host div {
|
|
@@ -54,22 +54,44 @@ var style = css`
|
|
|
54
54
|
gap: 1ch;
|
|
55
55
|
max-width: 100%;
|
|
56
56
|
box-sizing: border-box;
|
|
57
|
+
position: relative;
|
|
58
|
+
transition:
|
|
59
|
+
background-color 0.2s,
|
|
60
|
+
border-color 0.2s,
|
|
61
|
+
color 0.2s,
|
|
62
|
+
outline-color 422ms;
|
|
63
|
+
|
|
64
|
+
&::before {
|
|
65
|
+
content: ' ';
|
|
66
|
+
display: flex;
|
|
67
|
+
inset: var(--gds-space-2xs);
|
|
68
|
+
position: absolute;
|
|
69
|
+
border: var(--gds-space-3xs) solid currentColor;
|
|
70
|
+
border-radius: var(--gds-space-xs);
|
|
71
|
+
opacity: 0;
|
|
72
|
+
visitility: hidden;
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
transition: opacity 422ms;
|
|
75
|
+
}
|
|
57
76
|
}
|
|
58
77
|
|
|
59
|
-
:host([highlighted])
|
|
60
|
-
background-color: var(--gds-
|
|
61
|
-
color: var(--gds-
|
|
78
|
+
:host([highlighted]) {
|
|
79
|
+
background-color: var(--gds-color-l2-background-tertiary);
|
|
80
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
62
81
|
}
|
|
63
82
|
|
|
64
83
|
:host(:hover:not([highlighted])) div {
|
|
65
|
-
background-color: var(--gds-
|
|
84
|
+
background-color: var(--gds-color-l3-background-secondary);
|
|
66
85
|
}
|
|
67
86
|
|
|
68
87
|
:host(:focus-visible) {
|
|
69
|
-
outline:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
88
|
+
outline: none;
|
|
89
|
+
|
|
90
|
+
div::before {
|
|
91
|
+
inset: var(--gds-space-2xs);
|
|
92
|
+
opacity: 1;
|
|
93
|
+
visivility: visible;
|
|
94
|
+
}
|
|
73
95
|
}
|
|
74
96
|
|
|
75
97
|
:host([aria-hidden='true']) div {
|
|
@@ -81,7 +103,7 @@ var style = css`
|
|
|
81
103
|
align-items: center;
|
|
82
104
|
justify-content: center;
|
|
83
105
|
height: 1lh;
|
|
84
|
-
width:
|
|
106
|
+
width: 1lh;
|
|
85
107
|
box-sizing: border-box;
|
|
86
108
|
position: relative;
|
|
87
109
|
aspect-ratio: 1/1;
|
|
@@ -94,7 +116,7 @@ var style = css`
|
|
|
94
116
|
|
|
95
117
|
gds-icon-checkmark {
|
|
96
118
|
&::part(icon) {
|
|
97
|
-
color: var(--gds-
|
|
119
|
+
color: var(--gds-color-l2-content-tertiary);
|
|
98
120
|
stroke-width: var(--gds-space-2xs);
|
|
99
121
|
}
|
|
100
122
|
}
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
forwardAttributes
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.BHWBJIPJ.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsFormControlElement
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.Z3MHP5MN.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.BYYROY6X.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -196,6 +196,12 @@ var GdsInput = class extends GdsFormControlElement {
|
|
|
196
196
|
composed: true
|
|
197
197
|
})
|
|
198
198
|
);
|
|
199
|
+
this.dispatchEvent(
|
|
200
|
+
new Event("input", {
|
|
201
|
+
bubbles: true,
|
|
202
|
+
composed: true
|
|
203
|
+
})
|
|
204
|
+
);
|
|
199
205
|
});
|
|
200
206
|
}
|
|
201
207
|
connectedCallback() {
|
|
@@ -216,6 +222,7 @@ var GdsInput = class extends GdsFormControlElement {
|
|
|
216
222
|
};
|
|
217
223
|
_renderDefault = new WeakSet();
|
|
218
224
|
renderDefault_fn = function() {
|
|
225
|
+
var _a;
|
|
219
226
|
return html`
|
|
220
227
|
<gds-form-control-header class="size-${this.size}">
|
|
221
228
|
<label for="input" slot="label">${this.label}</label>
|
|
@@ -253,8 +260,8 @@ renderDefault_fn = function() {
|
|
|
253
260
|
|
|
254
261
|
<gds-form-control-footer
|
|
255
262
|
class="size-${this.size}"
|
|
256
|
-
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get) && this.maxlength - this.value.length}
|
|
257
|
-
.validationMessage=${this.invalid && this.validationMessage}
|
|
263
|
+
.charCounter=${__privateGet(this, _shouldShowRemainingChars, shouldShowRemainingChars_get) && this.maxlength - (((_a = this.value) == null ? void 0 : _a.length) || 0)}
|
|
264
|
+
.validationMessage=${this.invalid && (this.errorMessage || this.validationMessage)}
|
|
258
265
|
></gds-form-control-footer>
|
|
259
266
|
`;
|
|
260
267
|
};
|
|
@@ -307,7 +314,8 @@ renderNativeInput_fn = function() {
|
|
|
307
314
|
};
|
|
308
315
|
_renderClearButton = new WeakSet();
|
|
309
316
|
renderClearButton_fn = function() {
|
|
310
|
-
|
|
317
|
+
var _a;
|
|
318
|
+
if (this.clearable && (((_a = this.value) == null ? void 0 : _a.length) || 0) > 0)
|
|
311
319
|
return html`
|
|
312
320
|
<gds-button
|
|
313
321
|
size="${this.size === "small" ? "xs" : "small"}"
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
var IconPause = class extends GdsIcon {
|
|
13
13
|
};
|
|
14
14
|
/** @private */
|
|
15
|
-
IconPause._regularSVG = `<path d="M4.75 4.75C4.75 4.19772 5.19772 3.75 5.75 3.75H8.25C8.80228 3.75 9.25 4.19772 9.25 4.75V19.25C9.25 19.8023 8.80228 20.25 8.25 20.25H5.75C5.19772 20.25 4.75 19.8023 4.75 19.25V4.75Z" stroke="
|
|
15
|
+
IconPause._regularSVG = `<path d="M4.75 4.75C4.75 4.19772 5.19772 3.75 5.75 3.75H8.25C8.80228 3.75 9.25 4.19772 9.25 4.75V19.25C9.25 19.8023 8.80228 20.25 8.25 20.25H5.75C5.19772 20.25 4.75 19.8023 4.75 19.25V4.75Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/><path d="M14.75 4.75C14.75 4.19772 15.1977 3.75 15.75 3.75H18.25C18.8023 3.75 19.25 4.19772 19.25 4.75V19.25C19.25 19.8023 18.8023 20.25 18.25 20.25H15.75C15.1977 20.25 14.75 19.8023 14.75 19.25V4.75Z" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>`;
|
|
16
16
|
/** @private */
|
|
17
|
-
IconPause._solidSVG = `<path d="M4.75 3C4.33579 3 4 3.33579 4 3.75V20.25C4 20.6642 4.33579 21 4.75 21H9.25C9.66421 21 10 20.6642 10 20.25V3.75C10 3.33579 9.66421 3 9.25 3H4.75Z" fill="
|
|
17
|
+
IconPause._solidSVG = `<path d="M4.75 3C4.33579 3 4 3.33579 4 3.75V20.25C4 20.6642 4.33579 21 4.75 21H9.25C9.66421 21 10 20.6642 10 20.25V3.75C10 3.33579 9.66421 3 9.25 3H4.75Z" fill="currentColor"/><path d="M14.75 3C14.3358 3 14 3.33579 14 3.75V20.25C14 20.6642 14.3358 21 14.75 21H19.25C19.6642 21 20 20.6642 20 20.25V3.75C20 3.33579 19.6642 3 19.25 3H14.75Z" fill="currentColor"/>`;
|
|
18
18
|
/** @private */
|
|
19
19
|
IconPause._name = "pause";
|
|
20
20
|
IconPause = __decorateClass([
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsFormControlElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.Z3MHP5MN.js";
|
|
4
4
|
import {
|
|
5
5
|
observeLightDOM
|
|
6
6
|
} from "./chunk.WM7HBMMV.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.U44LH2CF.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.BYYROY6X.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -130,12 +130,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
@media (pointer: fine) {
|
|
134
|
+
&:hover {
|
|
135
|
+
background-color: color-mix(
|
|
136
|
+
in srgb,
|
|
137
|
+
var(--gds-color-l3-background-primary),
|
|
138
|
+
var(--gds-color-l3-states-dark-hover)
|
|
139
|
+
);
|
|
140
|
+
}
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
&:active {
|
|
@@ -173,12 +175,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
173
175
|
background-color: var(--gds-color-l3-background-secondary);
|
|
174
176
|
color: var(--gds-color-l3-content-tertiary);
|
|
175
177
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
@media (pointer: fine) {
|
|
179
|
+
&:hover {
|
|
180
|
+
background-color: color-mix(
|
|
181
|
+
in srgb,
|
|
182
|
+
var(--gds-color-l3-background-secondary),
|
|
183
|
+
var(--gds-color-l3-states-light-hover)
|
|
184
|
+
);
|
|
185
|
+
}
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
&:active {
|
|
@@ -194,12 +198,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
194
198
|
background-color: transparent;
|
|
195
199
|
color: var(--gds-color-l3-content-tertiary);
|
|
196
200
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
@media (pointer: fine) {
|
|
202
|
+
&:hover {
|
|
203
|
+
background-color: color-mix(
|
|
204
|
+
in srgb,
|
|
205
|
+
transparent,
|
|
206
|
+
var(--gds-color-l3-states-light-hover)
|
|
207
|
+
);
|
|
208
|
+
}
|
|
203
209
|
}
|
|
204
210
|
|
|
205
211
|
&:active {
|
|
@@ -238,12 +244,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
238
244
|
.positive {
|
|
239
245
|
background-color: var(--gds-color-l3-background-positive);
|
|
240
246
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
@media (pointer: fine) {
|
|
248
|
+
&:hover {
|
|
249
|
+
background-color: color-mix(
|
|
250
|
+
in srgb,
|
|
251
|
+
var(--gds-color-l3-background-positive),
|
|
252
|
+
var(--gds-color-l3-states-dark-hover)
|
|
253
|
+
);
|
|
254
|
+
}
|
|
247
255
|
}
|
|
248
256
|
|
|
249
257
|
&:active {
|
|
@@ -258,12 +266,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
258
266
|
background-color: var(--gds-color-l3-background-positive-secondary);
|
|
259
267
|
color: var(--gds-color-l3-content-positive);
|
|
260
268
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
269
|
+
@media (pointer: fine) {
|
|
270
|
+
&:hover {
|
|
271
|
+
background-color: color-mix(
|
|
272
|
+
in srgb,
|
|
273
|
+
var(--gds-color-l3-background-positive-secondary),
|
|
274
|
+
var(--gds-color-l3-states-positive-hover)
|
|
275
|
+
);
|
|
276
|
+
}
|
|
267
277
|
}
|
|
268
278
|
|
|
269
279
|
&:active {
|
|
@@ -279,12 +289,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
279
289
|
background-color: transparent;
|
|
280
290
|
color: var(--gds-color-l3-content-positive);
|
|
281
291
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
292
|
+
@media (pointer: fine) {
|
|
293
|
+
&:hover {
|
|
294
|
+
background-color: color-mix(
|
|
295
|
+
in srgb,
|
|
296
|
+
transparent,
|
|
297
|
+
var(--gds-color-l3-states-positive-hover)
|
|
298
|
+
);
|
|
299
|
+
}
|
|
288
300
|
}
|
|
289
301
|
|
|
290
302
|
&:active {
|
|
@@ -300,12 +312,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
300
312
|
.negative {
|
|
301
313
|
background-color: var(--gds-color-l3-background-negative);
|
|
302
314
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
315
|
+
@media (pointer: fine) {
|
|
316
|
+
&:hover {
|
|
317
|
+
background-color: color-mix(
|
|
318
|
+
in srgb,
|
|
319
|
+
var(--gds-color-l3-background-negative),
|
|
320
|
+
var(--gds-color-l3-states-dark-hover)
|
|
321
|
+
);
|
|
322
|
+
}
|
|
309
323
|
}
|
|
310
324
|
|
|
311
325
|
&:active {
|
|
@@ -320,12 +334,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
320
334
|
background-color: var(--gds-color-l3-background-negative-secondary);
|
|
321
335
|
color: var(--gds-color-l3-content-negative);
|
|
322
336
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
337
|
+
@media (pointer: fine) {
|
|
338
|
+
&:hover {
|
|
339
|
+
background-color: color-mix(
|
|
340
|
+
in srgb,
|
|
341
|
+
var(--gds-color-l3-background-negative-secondary),
|
|
342
|
+
var(--gds-color-l3-states-negative-hover)
|
|
343
|
+
);
|
|
344
|
+
}
|
|
329
345
|
}
|
|
330
346
|
|
|
331
347
|
&:active {
|
|
@@ -341,12 +357,14 @@ var button_style_default = `@layer tokens, core, a11y, ranks, sizes, variants, d
|
|
|
341
357
|
background-color: transparent;
|
|
342
358
|
color: var(--gds-color-l3-content-negative);
|
|
343
359
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
360
|
+
@media (pointer: fine) {
|
|
361
|
+
&:hover {
|
|
362
|
+
background-color: color-mix(
|
|
363
|
+
in srgb,
|
|
364
|
+
transparent,
|
|
365
|
+
var(--gds-color-l3-states-negative-hover)
|
|
366
|
+
);
|
|
367
|
+
}
|
|
350
368
|
}
|
|
351
369
|
|
|
352
370
|
&:active {
|