@sebgroup/green-core 3.12.2 → 3.12.3
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/components/avatar/avatar.styles.js +4 -3
- package/components/segmented-control/segmented-control.component.js +1 -1
- package/custom-elements.json +19268 -19268
- package/gds-element.js +1 -1
- package/generated/locales/da.d.ts +2 -0
- package/generated/locales/da.js +2 -0
- package/generated/locales/de.d.ts +2 -0
- package/generated/locales/de.js +2 -0
- package/generated/locales/fi.d.ts +2 -0
- package/generated/locales/fi.js +2 -0
- package/generated/locales/fr.d.ts +2 -0
- package/generated/locales/fr.js +2 -0
- package/generated/locales/it.d.ts +2 -0
- package/generated/locales/it.js +2 -0
- package/generated/locales/nl.d.ts +2 -0
- package/generated/locales/nl.js +2 -0
- package/generated/locales/no.d.ts +2 -0
- package/generated/locales/no.js +2 -0
- package/generated/locales/sv.d.ts +2 -0
- package/generated/locales/sv.js +2 -0
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/mcp/tokens.json +5 -5
- package/generated/react/index.d.ts +5 -5
- package/generated/react/index.js +5 -5
- package/package.json +1 -1
- package/tokens/variables.light.css.js +1 -1
- package/utils/decorators/aria-forwarding.js +9 -5
- package/utils/helpers/custom-element-scoping.js +1 -1
package/gds-element.js
CHANGED
|
@@ -16,7 +16,7 @@ class GdsElement extends LitElement {
|
|
|
16
16
|
/**
|
|
17
17
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
18
18
|
*/
|
|
19
|
-
this.semanticVersion = "3.12.
|
|
19
|
+
this.semanticVersion = "3.12.3";
|
|
20
20
|
this.syncFirstRender = false;
|
|
21
21
|
this._isUsingTransitionalStyles = false;
|
|
22
22
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/da.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Automatisk afvisningstimer`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Br\xF8dkrummer`,
|
|
26
26
|
"s3d195621e562d805": `V\xE6lg r\xE6kke`,
|
|
27
|
+
"s3dc14a4b8129f989": `Paginering`,
|
|
27
28
|
"s407a88a592a0987c": `August`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Rul til venstre`,
|
|
28
30
|
"s49730f3d5751a433": `Indl\xE6ser...`,
|
|
29
31
|
"s5052d10b539eabf0": `Marts`,
|
|
30
32
|
"s5068a6876795d628": `V\xE6lg synlige kolonner`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/de.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Automatischer Schlie\xDF-Timer`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Brotkr\xFCmelnavigation`,
|
|
26
26
|
"s3d195621e562d805": `Zeile ausw\xE4hlen`,
|
|
27
|
+
"s3dc14a4b8129f989": `Paginierung`,
|
|
27
28
|
"s407a88a592a0987c": `August`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Nach links scrollen`,
|
|
28
30
|
"s49730f3d5751a433": `Laden...`,
|
|
29
31
|
"s5052d10b539eabf0": `M\xE4rz`,
|
|
30
32
|
"s5068a6876795d628": `Sichtbare Spalten ausw\xE4hlen`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/fi.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Automaattinen sulkeutumisaika`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Murupolku`,
|
|
26
26
|
"s3d195621e562d805": `Valitse rivi`,
|
|
27
|
+
"s3dc14a4b8129f989": `Sivutus`,
|
|
27
28
|
"s407a88a592a0987c": `Elokuu`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Vierit\xE4 vasemmalle`,
|
|
28
30
|
"s49730f3d5751a433": `Ladataan...`,
|
|
29
31
|
"s5052d10b539eabf0": `Maalis`,
|
|
30
32
|
"s5068a6876795d628": `Valitse n\xE4kyv\xE4t sarakkeet`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/fr.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Minuterie de fermeture automatique`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Fil d'Ariane`,
|
|
26
26
|
"s3d195621e562d805": `S\xE9lectionner la ligne`,
|
|
27
|
+
"s3dc14a4b8129f989": `Pagination`,
|
|
27
28
|
"s407a88a592a0987c": `Ao\xFBt`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Faire d\xE9filer \xE0 gauche`,
|
|
28
30
|
"s49730f3d5751a433": `Chargement...`,
|
|
29
31
|
"s5052d10b539eabf0": `Mars`,
|
|
30
32
|
"s5068a6876795d628": `S\xE9lectionner les colonnes visibles`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/it.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Timer di chiusura automatica`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Percorso di navigazione`,
|
|
26
26
|
"s3d195621e562d805": `Seleziona riga`,
|
|
27
|
+
"s3dc14a4b8129f989": `Paginazione`,
|
|
27
28
|
"s407a88a592a0987c": `Agosto`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Scorri a sinistra`,
|
|
28
30
|
"s49730f3d5751a433": `Caricamento...`,
|
|
29
31
|
"s5052d10b539eabf0": `Marzo`,
|
|
30
32
|
"s5068a6876795d628": `Seleziona colonne visibili`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/nl.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Automatisch sluiten timer`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Kruimelpad`,
|
|
26
26
|
"s3d195621e562d805": `Selecteer rij`,
|
|
27
|
+
"s3dc14a4b8129f989": `Paginering`,
|
|
27
28
|
"s407a88a592a0987c": `Augustus`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Scroll links`,
|
|
28
30
|
"s49730f3d5751a433": `Laden...`,
|
|
29
31
|
"s5052d10b539eabf0": `Maart`,
|
|
30
32
|
"s5068a6876795d628": `Selecteer zichtbare kolommen`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/no.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Automatisk lukk-timer`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Br\xF8dsmuler`,
|
|
26
26
|
"s3d195621e562d805": `Velg rad`,
|
|
27
|
+
"s3dc14a4b8129f989": `Paginering`,
|
|
27
28
|
"s407a88a592a0987c": `August`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Rull til venstre`,
|
|
28
30
|
"s49730f3d5751a433": `Laster...`,
|
|
29
31
|
"s5052d10b539eabf0": `Mars`,
|
|
30
32
|
"s5068a6876795d628": `Velg synlige kolonner`,
|
|
@@ -22,7 +22,9 @@ export declare const templates: {
|
|
|
22
22
|
s39943b8a5733f5d2: string;
|
|
23
23
|
s3b8a6245b12fa2ad: string;
|
|
24
24
|
s3d195621e562d805: string;
|
|
25
|
+
s3dc14a4b8129f989: string;
|
|
25
26
|
s407a88a592a0987c: string;
|
|
27
|
+
s480d27b7a8b69ce5: string;
|
|
26
28
|
s49730f3d5751a433: string;
|
|
27
29
|
s5052d10b539eabf0: string;
|
|
28
30
|
s5068a6876795d628: string;
|
package/generated/locales/sv.js
CHANGED
|
@@ -24,7 +24,9 @@ const templates = {
|
|
|
24
24
|
"s39943b8a5733f5d2": `Automatisk st\xE4ngningstimer`,
|
|
25
25
|
"s3b8a6245b12fa2ad": `Br\xF6dsmulor`,
|
|
26
26
|
"s3d195621e562d805": `V\xE4lj rad`,
|
|
27
|
+
"s3dc14a4b8129f989": `Paginering`,
|
|
27
28
|
"s407a88a592a0987c": `Augusti`,
|
|
29
|
+
"s480d27b7a8b69ce5": `Scrolla v\xE4nster`,
|
|
28
30
|
"s49730f3d5751a433": `Laddar...`,
|
|
29
31
|
"s5052d10b539eabf0": `Mars`,
|
|
30
32
|
"s5068a6876795d628": `V\xE4lj synliga kolumner`,
|
package/generated/mcp/icons.json
CHANGED
package/generated/mcp/index.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-
|
|
2
|
+
"generatedAt": "2026-06-02T07:23:54.645Z",
|
|
3
3
|
"categories": {
|
|
4
4
|
"space": {
|
|
5
5
|
"description": "Spacing tokens for padding, margin, gap, and other spacing",
|
|
@@ -980,12 +980,12 @@
|
|
|
980
980
|
"cssVariable": "--gds-sys-color-state-brand-06"
|
|
981
981
|
},
|
|
982
982
|
{
|
|
983
|
-
"name": "brand-02-
|
|
984
|
-
"cssVariable": "--gds-sys-color-state-brand-02-
|
|
983
|
+
"name": "brand-02-2",
|
|
984
|
+
"cssVariable": "--gds-sys-color-state-brand-02-2"
|
|
985
985
|
},
|
|
986
986
|
{
|
|
987
|
-
"name": "brand-02-
|
|
988
|
-
"cssVariable": "--gds-sys-color-state-brand-02-
|
|
987
|
+
"name": "brand-02-3",
|
|
988
|
+
"cssVariable": "--gds-sys-color-state-brand-02-3"
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
991
|
"name": "positive-01",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './alert/index.js';
|
|
2
|
-
export * from './badge/index.js';
|
|
3
2
|
export * from './avatar/index.js';
|
|
4
|
-
export * from './
|
|
3
|
+
export * from './badge/index.js';
|
|
5
4
|
export * from './breadcrumbs/index.js';
|
|
5
|
+
export * from './blur/index.js';
|
|
6
6
|
export * from './button/index.js';
|
|
7
7
|
export * from './calendar/index.js';
|
|
8
8
|
export * from './card/index.js';
|
|
@@ -17,8 +17,8 @@ export * from './div/index.js';
|
|
|
17
17
|
export * from './divider/index.js';
|
|
18
18
|
export * from './dropdown/index.js';
|
|
19
19
|
export * from './fab/index.js';
|
|
20
|
-
export * from './flex/index.js';
|
|
21
20
|
export * from './filter-chips/index.js';
|
|
21
|
+
export * from './flex/index.js';
|
|
22
22
|
export * from './form-summary/index.js';
|
|
23
23
|
export * from './grid/index.js';
|
|
24
24
|
export * from './grouped-list/index.js';
|
|
@@ -37,8 +37,8 @@ export * from './segmented-control/index.js';
|
|
|
37
37
|
export * from './select/index.js';
|
|
38
38
|
export * from './signal/index.js';
|
|
39
39
|
export * from './spinner/index.js';
|
|
40
|
-
export * from './table/index.js';
|
|
41
40
|
export * from './switch/index.js';
|
|
41
|
+
export * from './table/index.js';
|
|
42
42
|
export * from './text/index.js';
|
|
43
43
|
export * from './textarea/index.js';
|
|
44
44
|
export * from './theme/index.js';
|
|
@@ -54,8 +54,8 @@ export * from './formatted-date/index.js';
|
|
|
54
54
|
export * from './formatted-number/index.js';
|
|
55
55
|
export * from './radio-group/index.js';
|
|
56
56
|
export * from './segment/index.js';
|
|
57
|
-
export * from './sensitive-date/index.js';
|
|
58
57
|
export * from './sensitive-account/index.js';
|
|
58
|
+
export * from './sensitive-date/index.js';
|
|
59
59
|
export * from './sensitive-number/index.js';
|
|
60
60
|
export * from './icons/icon-ai/index.js';
|
|
61
61
|
export * from './icons/icon-airplane-up/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./alert/index.js";
|
|
2
|
-
export * from "./badge/index.js";
|
|
3
2
|
export * from "./avatar/index.js";
|
|
4
|
-
export * from "./
|
|
3
|
+
export * from "./badge/index.js";
|
|
5
4
|
export * from "./breadcrumbs/index.js";
|
|
5
|
+
export * from "./blur/index.js";
|
|
6
6
|
export * from "./button/index.js";
|
|
7
7
|
export * from "./calendar/index.js";
|
|
8
8
|
export * from "./card/index.js";
|
|
@@ -17,8 +17,8 @@ export * from "./div/index.js";
|
|
|
17
17
|
export * from "./divider/index.js";
|
|
18
18
|
export * from "./dropdown/index.js";
|
|
19
19
|
export * from "./fab/index.js";
|
|
20
|
-
export * from "./flex/index.js";
|
|
21
20
|
export * from "./filter-chips/index.js";
|
|
21
|
+
export * from "./flex/index.js";
|
|
22
22
|
export * from "./form-summary/index.js";
|
|
23
23
|
export * from "./grid/index.js";
|
|
24
24
|
export * from "./grouped-list/index.js";
|
|
@@ -37,8 +37,8 @@ export * from "./segmented-control/index.js";
|
|
|
37
37
|
export * from "./select/index.js";
|
|
38
38
|
export * from "./signal/index.js";
|
|
39
39
|
export * from "./spinner/index.js";
|
|
40
|
-
export * from "./table/index.js";
|
|
41
40
|
export * from "./switch/index.js";
|
|
41
|
+
export * from "./table/index.js";
|
|
42
42
|
export * from "./text/index.js";
|
|
43
43
|
export * from "./textarea/index.js";
|
|
44
44
|
export * from "./theme/index.js";
|
|
@@ -54,8 +54,8 @@ export * from "./formatted-date/index.js";
|
|
|
54
54
|
export * from "./formatted-number/index.js";
|
|
55
55
|
export * from "./radio-group/index.js";
|
|
56
56
|
export * from "./segment/index.js";
|
|
57
|
-
export * from "./sensitive-date/index.js";
|
|
58
57
|
export * from "./sensitive-account/index.js";
|
|
58
|
+
export * from "./sensitive-date/index.js";
|
|
59
59
|
export * from "./sensitive-number/index.js";
|
|
60
60
|
export * from "./icons/icon-ai/index.js";
|
|
61
61
|
export * from "./icons/icon-airplane-up/index.js";
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const styles = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n\n color-scheme: light;\n --gds-sys-color-l1-neutral-01: #ffffff;\n --gds-sys-color-l1-neutral-02: #f4f5f5;\n --gds-sys-color-l1-brand-01: #003824;\n --gds-sys-color-l1-neutral-03: #0a0b0b;\n --gds-sys-color-l2-neutral-01: #f7f8f7;\n --gds-sys-color-l2-neutral-01-2: #ffffff;\n --gds-sys-color-l2-neutral-02: #ffffff;\n --gds-sys-color-l2-neutral-02-2: #f7f8f7;\n --gds-sys-color-l2-neutral-03: #0a0b0b;\n --gds-sys-color-l2-brand-01: #003824;\n --gds-sys-color-l2-brand-02: #f8f6f1;\n --gds-sys-color-l2-positive-01: #f1f9f1;\n --gds-sys-color-l2-negative-01: #fef7f6;\n --gds-sys-color-l2-warning-01: #fef8f1;\n --gds-sys-color-l2-information-01: #f7f8f7;\n --gds-sys-color-l2-notice-01: #f5faff;\n --gds-sys-color-l3-neutral-01: #ffffff;\n --gds-sys-color-l3-neutral-01-2: #eff0f0;\n --gds-sys-color-l3-neutral-02: #eff0f0;\n --gds-sys-color-l3-neutral-02-2: #ffffff;\n --gds-sys-color-l3-neutral-03: #0a0b0b;\n --gds-sys-color-l3-neutral-03-2: #282a29;\n --gds-sys-color-l3-brand-01: #003824;\n --gds-sys-color-l3-brand-02: #efe9dc;\n --gds-sys-color-l3-brand-02-2: #e7ddcb;\n --gds-sys-color-l3-positive-01: #027839;\n --gds-sys-color-l3-positive-02: #dcefdc;\n --gds-sys-color-l3-positive-03: #cceacc;\n --gds-sys-color-l3-negative-01: #b92f13;\n --gds-sys-color-l3-negative-02: #fdebe8;\n --gds-sys-color-l3-negative-03: #fad8d1;\n --gds-sys-color-l3-notice-01: #005fb3;\n --gds-sys-color-l3-notice-02: #e6f3ff;\n --gds-sys-color-l3-notice-03: #cce7ff;\n --gds-sys-color-l3-warning-01: #8f530a;\n --gds-sys-color-l3-warning-02: #fce8cf;\n --gds-sys-color-l3-warning-03: #fadcb7;\n --gds-sys-color-l3-information-01: #0a0b0b;\n --gds-sys-color-l3-information-02: #eaebeb;\n --gds-sys-color-l3-information-03: #dfe1e1;\n --gds-sys-color-l3-disabled-01: #eff0f0;\n --gds-sys-color-l3-disabled-02: #a0a6a4;\n --gds-sys-color-l3-disabled-03: #eff0f0;\n --gds-sys-color-border-neutral-01: #777e7c;\n --gds-sys-color-border-neutral-02: #dfe1e1;\n --gds-sys-color-border-neutral-03: #eff0f0;\n --gds-sys-color-border-neutral-04: #0a0b0b;\n --gds-sys-color-border-neutral-05: #ffffff;\n --gds-sys-color-border-information-01: #0a0b0b;\n --gds-sys-color-border-information-02: rgba(10, 11, 11, 0.4);\n --gds-sys-color-border-positive-01: #027839;\n --gds-sys-color-border-positive-02: rgba(2, 120, 57, 0.4);\n --gds-sys-color-border-negative-01: #b92f13;\n --gds-sys-color-border-negative-02: rgba(185, 47, 19, 0.4);\n --gds-sys-color-border-warning-01: #8f530a;\n --gds-sys-color-border-warning-02: rgba(143, 83, 10, 0.4);\n --gds-sys-color-border-notice-01: #005fb3;\n --gds-sys-color-border-notice-02: rgba(0, 95, 179, 0.4);\n --gds-sys-color-content-neutral-01: #0a0b0b;\n --gds-sys-color-content-neutral-02: #636967;\n --gds-sys-color-content-neutral-03: #ffffff;\n --gds-sys-color-content-neutral-04: #a0a6a4;\n --gds-sys-color-content-neutral-05: #ffffff;\n --gds-sys-color-content-brand-01: #003824;\n --gds-sys-color-content-brand-02: #685631;\n --gds-sys-color-content-positive-01: #027839;\n --gds-sys-color-content-positive-02: #eaf6ea;\n --gds-sys-color-content-positive-03: #026436;\n --gds-sys-color-content-negative-01: #b92f13;\n --gds-sys-color-content-negative-02: #fdebe8;\n --gds-sys-color-content-warning-01: #8f530a;\n --gds-sys-color-content-warning-02: #fce8cf;\n --gds-sys-color-content-notice-01: #005fb3;\n --gds-sys-color-content-notice-02: #e6f3ff;\n --gds-sys-color-content-disabled-01: #a0a6a4;\n --gds-sys-color-content-disabled-02: #f7f8f7;\n --gds-sys-color-state-neutral-01: #ffffff 20%;\n --gds-sys-color-state-neutral-02: #ffffff 35%;\n --gds-sys-color-state-neutral-03: #000000 6%;\n --gds-sys-color-state-neutral-04: #000000 14%;\n --gds-sys-color-state-neutral-05: #000000 6%;\n --gds-sys-color-state-neutral-06: #000000 14%;\n --gds-sys-color-state-brand-01: #ffffff 20%;\n --gds-sys-color-state-brand-02: #ffffff 35%;\n --gds-sys-color-state-brand-03: #003824 6%;\n --gds-sys-color-state-brand-04: #003824 14%;\n --gds-sys-color-state-brand-05: #003824 6%;\n --gds-sys-color-state-brand-06: #003824 14%;\n --gds-sys-color-state-brand-02-
|
|
1
|
+
const styles = "/**\n * Do not edit directly, this file was auto-generated.\n */\n\n\n color-scheme: light;\n --gds-sys-color-l1-neutral-01: #ffffff;\n --gds-sys-color-l1-neutral-02: #f4f5f5;\n --gds-sys-color-l1-brand-01: #003824;\n --gds-sys-color-l1-neutral-03: #0a0b0b;\n --gds-sys-color-l2-neutral-01: #f7f8f7;\n --gds-sys-color-l2-neutral-01-2: #ffffff;\n --gds-sys-color-l2-neutral-02: #ffffff;\n --gds-sys-color-l2-neutral-02-2: #f7f8f7;\n --gds-sys-color-l2-neutral-03: #0a0b0b;\n --gds-sys-color-l2-brand-01: #003824;\n --gds-sys-color-l2-brand-02: #f8f6f1;\n --gds-sys-color-l2-positive-01: #f1f9f1;\n --gds-sys-color-l2-negative-01: #fef7f6;\n --gds-sys-color-l2-warning-01: #fef8f1;\n --gds-sys-color-l2-information-01: #f7f8f7;\n --gds-sys-color-l2-notice-01: #f5faff;\n --gds-sys-color-l3-neutral-01: #ffffff;\n --gds-sys-color-l3-neutral-01-2: #eff0f0;\n --gds-sys-color-l3-neutral-02: #eff0f0;\n --gds-sys-color-l3-neutral-02-2: #ffffff;\n --gds-sys-color-l3-neutral-03: #0a0b0b;\n --gds-sys-color-l3-neutral-03-2: #282a29;\n --gds-sys-color-l3-brand-01: #003824;\n --gds-sys-color-l3-brand-02: #efe9dc;\n --gds-sys-color-l3-brand-02-2: #e7ddcb;\n --gds-sys-color-l3-positive-01: #027839;\n --gds-sys-color-l3-positive-02: #dcefdc;\n --gds-sys-color-l3-positive-03: #cceacc;\n --gds-sys-color-l3-negative-01: #b92f13;\n --gds-sys-color-l3-negative-02: #fdebe8;\n --gds-sys-color-l3-negative-03: #fad8d1;\n --gds-sys-color-l3-notice-01: #005fb3;\n --gds-sys-color-l3-notice-02: #e6f3ff;\n --gds-sys-color-l3-notice-03: #cce7ff;\n --gds-sys-color-l3-warning-01: #8f530a;\n --gds-sys-color-l3-warning-02: #fce8cf;\n --gds-sys-color-l3-warning-03: #fadcb7;\n --gds-sys-color-l3-information-01: #0a0b0b;\n --gds-sys-color-l3-information-02: #eaebeb;\n --gds-sys-color-l3-information-03: #dfe1e1;\n --gds-sys-color-l3-disabled-01: #eff0f0;\n --gds-sys-color-l3-disabled-02: #a0a6a4;\n --gds-sys-color-l3-disabled-03: #eff0f0;\n --gds-sys-color-border-neutral-01: #777e7c;\n --gds-sys-color-border-neutral-02: #dfe1e1;\n --gds-sys-color-border-neutral-03: #eff0f0;\n --gds-sys-color-border-neutral-04: #0a0b0b;\n --gds-sys-color-border-neutral-05: #ffffff;\n --gds-sys-color-border-information-01: #0a0b0b;\n --gds-sys-color-border-information-02: rgba(10, 11, 11, 0.4);\n --gds-sys-color-border-positive-01: #027839;\n --gds-sys-color-border-positive-02: rgba(2, 120, 57, 0.4);\n --gds-sys-color-border-negative-01: #b92f13;\n --gds-sys-color-border-negative-02: rgba(185, 47, 19, 0.4);\n --gds-sys-color-border-warning-01: #8f530a;\n --gds-sys-color-border-warning-02: rgba(143, 83, 10, 0.4);\n --gds-sys-color-border-notice-01: #005fb3;\n --gds-sys-color-border-notice-02: rgba(0, 95, 179, 0.4);\n --gds-sys-color-content-neutral-01: #0a0b0b;\n --gds-sys-color-content-neutral-02: #636967;\n --gds-sys-color-content-neutral-03: #ffffff;\n --gds-sys-color-content-neutral-04: #a0a6a4;\n --gds-sys-color-content-neutral-05: #ffffff;\n --gds-sys-color-content-brand-01: #003824;\n --gds-sys-color-content-brand-02: #685631;\n --gds-sys-color-content-positive-01: #027839;\n --gds-sys-color-content-positive-02: #eaf6ea;\n --gds-sys-color-content-positive-03: #026436;\n --gds-sys-color-content-negative-01: #b92f13;\n --gds-sys-color-content-negative-02: #fdebe8;\n --gds-sys-color-content-warning-01: #8f530a;\n --gds-sys-color-content-warning-02: #fce8cf;\n --gds-sys-color-content-notice-01: #005fb3;\n --gds-sys-color-content-notice-02: #e6f3ff;\n --gds-sys-color-content-disabled-01: #a0a6a4;\n --gds-sys-color-content-disabled-02: #f7f8f7;\n --gds-sys-color-state-neutral-01: #ffffff 20%;\n --gds-sys-color-state-neutral-02: #ffffff 35%;\n --gds-sys-color-state-neutral-03: #000000 6%;\n --gds-sys-color-state-neutral-04: #000000 14%;\n --gds-sys-color-state-neutral-05: #000000 6%;\n --gds-sys-color-state-neutral-06: #000000 14%;\n --gds-sys-color-state-brand-01: #ffffff 20%;\n --gds-sys-color-state-brand-02: #ffffff 35%;\n --gds-sys-color-state-brand-03: #003824 6%;\n --gds-sys-color-state-brand-04: #003824 14%;\n --gds-sys-color-state-brand-05: #003824 6%;\n --gds-sys-color-state-brand-06: #003824 14%;\n --gds-sys-color-state-brand-02-2: #685631 4%;\n --gds-sys-color-state-brand-02-3: #685631 10%;\n --gds-sys-color-state-positive-01: #ffffff 12%;\n --gds-sys-color-state-positive-02: #ffffff 23%;\n --gds-sys-color-state-positive-03: #027839 8%;\n --gds-sys-color-state-positive-04: #027839 16%;\n --gds-sys-color-state-positive-05: #027839 8%;\n --gds-sys-color-state-positive-06: #027839 16%;\n --gds-sys-color-state-negative-01: #ffffff 8%;\n --gds-sys-color-state-negative-02: #ffffff 16%;\n --gds-sys-color-state-negative-03: #b92f13 8%;\n --gds-sys-color-state-negative-04: #b92f13 16%;\n --gds-sys-color-state-negative-05: #b92f13 8%;\n --gds-sys-color-state-negative-06: #b92f13 16%;\n --gds-sys-color-state-notice-01: #ffffff 20%;\n --gds-sys-color-state-notice-02: #ffffff 35%;\n --gds-sys-color-state-notice-03: #005fb3 8%;\n --gds-sys-color-state-notice-04: #005fb3 16%;\n --gds-sys-color-state-notice-05: #005fb3 8%;\n --gds-sys-color-state-notice-06: #005fb3 16%;\n --gds-sys-color-state-warning-01: #ffffff 20%;\n --gds-sys-color-state-warning-02: #ffffff 35%;\n --gds-sys-color-state-warning-03: #8f530a 8%;\n --gds-sys-color-state-warning-04: #8f530a 16%;\n --gds-sys-color-state-warning-05: #8f530a 8%;\n --gds-sys-color-state-warning-06: #8f530a 16%;";
|
|
2
2
|
export default styles;
|
|
@@ -14,13 +14,17 @@ function getAriaRefMeta(key) {
|
|
|
14
14
|
}
|
|
15
15
|
const ARIA_STORE = Symbol("ariaForwardingStore");
|
|
16
16
|
const ARIA_INIT = Symbol("ariaForwardingInit");
|
|
17
|
-
function setElementProperty(el, prop, value) {
|
|
18
|
-
const current = el[prop];
|
|
17
|
+
function setElementProperty(el, prop, value, type = "list") {
|
|
19
18
|
const record = el;
|
|
20
19
|
if (value === null) {
|
|
21
20
|
record[prop] = null;
|
|
22
21
|
return;
|
|
23
22
|
}
|
|
23
|
+
if (type === "single") {
|
|
24
|
+
record[prop] = Array.isArray(value) ? value[0] ?? null : value;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const current = record[prop];
|
|
24
28
|
const currentArray = current === null ? [] : Array.isArray(current) ? current : [current];
|
|
25
29
|
const newArray = Array.isArray(value) ? value : [value];
|
|
26
30
|
const combined = Array.from(/* @__PURE__ */ new Set([...currentArray, ...newArray]));
|
|
@@ -100,13 +104,13 @@ function ariaForwarding(config) {
|
|
|
100
104
|
if (!targets || targets.length === 0)
|
|
101
105
|
return;
|
|
102
106
|
if (!value) {
|
|
103
|
-
targets.forEach((t) => setElementProperty(t, meta.property, null));
|
|
107
|
+
targets.forEach((t) => setElementProperty(t, meta.property, null, meta.type));
|
|
104
108
|
return;
|
|
105
109
|
}
|
|
106
110
|
const ids = value.trim().split(/\s+/);
|
|
107
111
|
const elements = ids.map((id) => host.ownerDocument.getElementById(id)).filter((el) => el !== null);
|
|
108
112
|
const resolved = meta.type === "single" ? elements[0] ?? null : elements.length > 0 ? elements : null;
|
|
109
|
-
targets.forEach((t) => setElementProperty(t, meta.property, resolved));
|
|
113
|
+
targets.forEach((t) => setElementProperty(t, meta.property, resolved, meta.type));
|
|
110
114
|
});
|
|
111
115
|
}
|
|
112
116
|
function forwardAriaRefProperty(host, refKey, value) {
|
|
@@ -118,7 +122,7 @@ function ariaForwarding(config) {
|
|
|
118
122
|
const targets = host.shadowRoot?.querySelectorAll(selector);
|
|
119
123
|
if (!targets || targets.length === 0)
|
|
120
124
|
return;
|
|
121
|
-
targets.forEach((t) => setElementProperty(t, meta.property, value));
|
|
125
|
+
targets.forEach((t) => setElementProperty(t, meta.property, value, meta.type));
|
|
122
126
|
});
|
|
123
127
|
}
|
|
124
128
|
return AriaForwardingElement;
|