@sebgroup/green-core 1.39.0 → 1.40.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.KC3QFSLY.js → chunk.22BHF5MM.js} +1 -1
- package/chunks/{chunk.JLTCEWS2.js → chunk.42QKJ3AE.js} +1 -1
- package/chunks/{chunk.YAGE2PRV.js → chunk.4VE5KIQV.js} +1 -1
- package/chunks/{chunk.FMJZDVMQ.js → chunk.5FEETFJJ.js} +1 -1
- package/chunks/chunk.7VC33K5Z.js +49 -0
- package/chunks/{chunk.P4YC2BEI.js → chunk.CZFPSYSK.js} +2 -2
- package/chunks/{chunk.HXSX2352.js → chunk.DM2X2WJJ.js} +2 -2
- package/chunks/{chunk.N54HRIOT.js → chunk.GDH3LVVJ.js} +1 -1
- package/chunks/{chunk.TUCS4UFR.js → chunk.H2VKRHL7.js} +1 -1
- package/chunks/{chunk.F7VQ4QEE.js → chunk.HSI6XK2B.js} +3 -3
- package/chunks/{chunk.QCDJEZMP.js → chunk.LV3U2CE2.js} +2 -2
- package/chunks/{chunk.KALODFIV.js → chunk.Q6HA6IGV.js} +1 -1
- package/chunks/{chunk.HGTRTF3J.js → chunk.QHOOLVJZ.js} +1 -1
- package/chunks/{chunk.P46R3OGN.js → chunk.TEPZ5LAW.js} +1 -1
- package/chunks/{chunk.OZBL6IO2.js → chunk.TH2C35R2.js} +1 -1
- package/chunks/{chunk.QCGLT253.js → chunk.UMYAICK2.js} +3 -3
- package/chunks/{chunk.GRJSXR6F.js → chunk.UWI5YW33.js} +1 -1
- package/chunks/{chunk.N4OJZNL2.js → chunk.VBALKDBZ.js} +1 -1
- package/chunks/{chunk.EF6MCM6B.js → chunk.VIVDWSPB.js} +28 -1
- package/chunks/{chunk.XOI3RMD2.js → chunk.VL4HFY2N.js} +7 -5
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/chunk.WNFJQ5DF.js +40 -0
- package/chunks/{chunk.Q2QJ2KF2.js → chunk.WZRLM4IU.js} +110 -231
- package/chunks/{chunk.KMSRBHFR.js → chunk.YUMPRKYF.js} +1 -1
- package/chunks/chunk.ZFI2LPGC.js +758 -0
- package/components/button/button.js +3 -3
- package/components/button/fab/fab.js +4 -4
- package/components/button/fab/index.js +4 -4
- package/components/button/index.js +3 -3
- package/components/calendar/calendar.js +2 -2
- package/components/calendar/index.js +2 -2
- package/components/content/divider/divider.js +2 -2
- package/components/content/divider/index.js +2 -2
- package/components/content/spacer/index.js +2 -2
- package/components/content/spacer/spacer.js +2 -2
- package/components/content/text/index.js +2 -2
- package/components/content/text/text.js +2 -2
- package/components/datepicker/datepicker.js +7 -7
- package/components/datepicker/index.js +7 -7
- package/components/dropdown/dropdown.js +5 -5
- package/components/dropdown/index.js +5 -5
- package/components/filter-chips/filter-chip/filter-chip.js +3 -3
- package/components/filter-chips/filter-chip/index.js +3 -3
- package/components/filter-chips/filter-chips.js +3 -3
- package/components/filter-chips/index.js +3 -3
- package/components/form/index.js +4 -4
- package/components/form/summary/index.js +4 -4
- package/components/form/summary/summary.js +4 -4
- package/components/index.js +20 -20
- package/components/input/index.js +2 -2
- package/components/input/input.js +2 -2
- package/components/layout/card/card.js +3 -3
- package/components/layout/card/index.js +3 -3
- package/components/layout/container/container.js +2 -2
- package/components/layout/container/index.js +2 -2
- package/components/layout/flex/flex.js +3 -3
- package/components/layout/flex/index.js +3 -3
- package/components/layout/grid/grid.js +2 -2
- package/components/layout/grid/index.js +2 -2
- package/components/media/img/img.js +2 -2
- package/components/media/img/index.js +2 -2
- package/components/media/video/index.js +2 -2
- package/components/media/video/video.js +2 -2
- package/components/menu-button/index.js +2 -2
- package/components/menu-button/menu-button.js +2 -2
- 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/theme/index.js +4 -1
- package/components/theme/theme.d.ts +1 -0
- package/components/theme/theme.js +4 -1
- package/index.js +20 -20
- package/package.json +1 -1
- package/primitives/listbox/index.js +2 -2
- package/primitives/listbox/listbox.js +2 -2
- package/primitives/listbox/option.js +2 -2
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/primitives/signal/index.d.ts +1 -0
- package/primitives/signal/index.js +15 -0
- package/primitives/signal/signal.d.ts +9 -0
- package/primitives/signal/signal.js +15 -0
- package/primitives/signal/signal.style.css.d.ts +2 -0
- package/primitives/signal/signal.style.css.js +7 -0
- package/tokens.style.d.ts +3 -1
- package/chunks/chunk.VGQTBRXA.js +0 -419
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// libs/core/src/primitives/signal/signal.style.css.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var style = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: contents;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[part='signal'] {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
position: relative;
|
|
13
|
+
width: 6px;
|
|
14
|
+
height: 6px;
|
|
15
|
+
border-radius: var(--gds-space-max);
|
|
16
|
+
background-color: currentColor;
|
|
17
|
+
transition: all 0.4s;
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
display: flex;
|
|
21
|
+
position: absolute;
|
|
22
|
+
content: '';
|
|
23
|
+
inset: -4px;
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
background-color: color-mix(in srgb, currentColor, transparent 80%);
|
|
26
|
+
animation: signal 3s ease-in-out infinite;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes signal {
|
|
31
|
+
0% {
|
|
32
|
+
transform: scale(2);
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
60% {
|
|
36
|
+
transform: scale(1);
|
|
37
|
+
opacity: 1;
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
transform: scale(3);
|
|
41
|
+
opacity: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
var signal_style_css_default = style;
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
signal_style_css_default
|
|
49
|
+
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.ADPMTWTS.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -53,7 +53,7 @@ __decorateClass([
|
|
|
53
53
|
if (transparency) {
|
|
54
54
|
return `color-mix(in srgb, var(--gds-sys-color-${colorName}) ${parseFloat(transparency) * 100}%, transparent 0%)`;
|
|
55
55
|
} else {
|
|
56
|
-
return `var(--gds-
|
|
56
|
+
return `var(--gds-color-${colorName})`;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.H2VKRHL7.js";
|
|
4
4
|
import {
|
|
5
5
|
resizeObserver
|
|
6
6
|
} from "./chunk.VHN4JEZC.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.S7DYDS4E.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContainer
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.CZFPSYSK.js";
|
|
4
4
|
import {
|
|
5
5
|
card_style_css_default
|
|
6
6
|
} from "./chunk.JTFG2VCZ.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.ADPMTWTS.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -35,7 +35,7 @@ __decorateClass([
|
|
|
35
35
|
styleExpressionProperty({
|
|
36
36
|
valueTemplate: (v) => {
|
|
37
37
|
const [size, color] = v.split("/");
|
|
38
|
-
return `var(--gds-space-${size}) solid ${color ? `var(--gds-
|
|
38
|
+
return `var(--gds-space-${size}) solid ${color ? `var(--gds-color-${color})` : "currentColor"}`;
|
|
39
39
|
},
|
|
40
40
|
styleTemplate: (_prop, values) => {
|
|
41
41
|
const top = values[0];
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk.54252E4T.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsContainer
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.CZFPSYSK.js";
|
|
7
7
|
import {
|
|
8
8
|
styleExpressionProperty
|
|
9
9
|
} from "./chunk.ADPMTWTS.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk.ADPMTWTS.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -110,9 +110,9 @@ __decorateClass([
|
|
|
110
110
|
valueTemplate: (v) => {
|
|
111
111
|
const [colorName, transparency] = v.split("/");
|
|
112
112
|
if (transparency) {
|
|
113
|
-
return `color-mix(in srgb, var(--gds-
|
|
113
|
+
return `color-mix(in srgb, var(--gds-color-${colorName}) ${parseFloat(transparency) * 100}%, transparent 0%)`;
|
|
114
114
|
} else {
|
|
115
|
-
return `var(--gds-
|
|
115
|
+
return `var(--gds-color-${colorName})`;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
})
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
3
|
} from "./chunk.S7DYDS4E.js";
|
|
4
|
+
import {
|
|
5
|
+
dark_default,
|
|
6
|
+
light_default
|
|
7
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
8
|
+
import {
|
|
9
|
+
watch
|
|
10
|
+
} from "./chunk.2WO4NHJ2.js";
|
|
4
11
|
import {
|
|
5
12
|
GdsElement
|
|
6
13
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -14,7 +21,7 @@ import {
|
|
|
14
21
|
|
|
15
22
|
// libs/core/src/components/theme/theme.ts
|
|
16
23
|
import { property } from "lit/decorators.js";
|
|
17
|
-
import { css } from "lit";
|
|
24
|
+
import { css, unsafeCSS } from "lit";
|
|
18
25
|
var GdsTheme = class extends GdsElement {
|
|
19
26
|
constructor() {
|
|
20
27
|
super(...arguments);
|
|
@@ -23,10 +30,27 @@ var GdsTheme = class extends GdsElement {
|
|
|
23
30
|
connectedCallback() {
|
|
24
31
|
super.connectedCallback();
|
|
25
32
|
TransitionalStyles.instance.apply(this, "gds-theme");
|
|
33
|
+
this._dynamicStylesController.inject(
|
|
34
|
+
"tokens",
|
|
35
|
+
unsafeCSS(`:host {${dark_default}}`)
|
|
36
|
+
);
|
|
26
37
|
}
|
|
27
38
|
render() {
|
|
28
39
|
return html`<slot></slot>`;
|
|
29
40
|
}
|
|
41
|
+
_onColorSchemeChange() {
|
|
42
|
+
if (this.colorScheme === "dark") {
|
|
43
|
+
this._dynamicStylesController.inject(
|
|
44
|
+
"tokens",
|
|
45
|
+
unsafeCSS(`:host { ${dark_default}}`)
|
|
46
|
+
);
|
|
47
|
+
} else {
|
|
48
|
+
this._dynamicStylesController.inject(
|
|
49
|
+
"tokens",
|
|
50
|
+
unsafeCSS(`:host { ${light_default}}`)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
30
54
|
};
|
|
31
55
|
GdsTheme.styles = css`
|
|
32
56
|
:host {
|
|
@@ -36,6 +60,9 @@ GdsTheme.styles = css`
|
|
|
36
60
|
__decorateClass([
|
|
37
61
|
property({ reflect: true, attribute: "color-scheme" })
|
|
38
62
|
], GdsTheme.prototype, "colorScheme", 2);
|
|
63
|
+
__decorateClass([
|
|
64
|
+
watch("colorScheme")
|
|
65
|
+
], GdsTheme.prototype, "_onColorSchemeChange", 1);
|
|
39
66
|
GdsTheme = __decorateClass([
|
|
40
67
|
gdsCustomElement("gds-theme")
|
|
41
68
|
], GdsTheme);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.ADPMTWTS.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsButton
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WZRLM4IU.js";
|
|
7
7
|
import {
|
|
8
8
|
gdsCustomElement
|
|
9
9
|
} from "./chunk.VOYMQ322.js";
|
|
@@ -15,13 +15,14 @@ import {
|
|
|
15
15
|
import { css } from "lit";
|
|
16
16
|
var style = css`
|
|
17
17
|
:host {
|
|
18
|
-
|
|
19
|
-
inset: auto 2rem 2rem auto;
|
|
18
|
+
display: contents;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
.button {
|
|
23
22
|
box-shadow: var(--gds-shadow-m);
|
|
24
|
-
|
|
23
|
+
position: fixed;
|
|
24
|
+
inset: auto var(--gds-space-3xl) var(--gds-space-3xl) auto;
|
|
25
|
+
block-size: calc(var(--_block-size) + var(--gds-space-xs));
|
|
25
26
|
}
|
|
26
27
|
`;
|
|
27
28
|
var fab_styles_default = style;
|
|
@@ -45,7 +46,8 @@ __decorateClass([
|
|
|
45
46
|
], GdsFab.prototype, "transform", 2);
|
|
46
47
|
__decorateClass([
|
|
47
48
|
styleExpressionProperty({
|
|
48
|
-
valueTemplate: (v) => v
|
|
49
|
+
valueTemplate: (v) => v,
|
|
50
|
+
selector: '[part="_button"]'
|
|
49
51
|
})
|
|
50
52
|
], GdsFab.prototype, "inset", 2);
|
|
51
53
|
GdsFab = __decorateClass([
|
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 = "-c5afc6";
|
|
5
5
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
6
6
|
var gdsCustomElement = (tagName) => {
|
|
7
7
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
signal_style_css_default
|
|
3
|
+
} from "./chunk.7VC33K5Z.js";
|
|
4
|
+
import {
|
|
5
|
+
styleExpressionProperty
|
|
6
|
+
} from "./chunk.ADPMTWTS.js";
|
|
7
|
+
import {
|
|
8
|
+
tokens
|
|
9
|
+
} from "./chunk.ZFI2LPGC.js";
|
|
10
|
+
import {
|
|
11
|
+
GdsElement
|
|
12
|
+
} from "./chunk.ZQ4D5K7J.js";
|
|
13
|
+
import {
|
|
14
|
+
gdsCustomElement
|
|
15
|
+
} from "./chunk.VOYMQ322.js";
|
|
16
|
+
import {
|
|
17
|
+
__decorateClass
|
|
18
|
+
} from "./chunk.5VURDMKE.js";
|
|
19
|
+
|
|
20
|
+
// libs/core/src/primitives/signal/signal.ts
|
|
21
|
+
import { html } from "lit/static-html.js";
|
|
22
|
+
var GdsSignal = class extends GdsElement {
|
|
23
|
+
render() {
|
|
24
|
+
return html`<div part="signal"></div>`;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
GdsSignal.styles = [tokens, signal_style_css_default];
|
|
28
|
+
__decorateClass([
|
|
29
|
+
styleExpressionProperty({
|
|
30
|
+
valueTemplate: (v) => `var(--gds-color-${v})`,
|
|
31
|
+
selector: '[part="signal"]'
|
|
32
|
+
})
|
|
33
|
+
], GdsSignal.prototype, "color", 2);
|
|
34
|
+
GdsSignal = __decorateClass([
|
|
35
|
+
gdsCustomElement("gds-signal")
|
|
36
|
+
], GdsSignal);
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
GdsSignal
|
|
40
|
+
};
|