@sebgroup/green-core 1.67.2 → 1.68.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.
Files changed (160) hide show
  1. package/chunks/{chunk.UEJZWDMS.js → chunk.2JGBCOIQ.js} +5 -1
  2. package/chunks/{chunk.MOTMDOMF.js → chunk.3IHEYEIX.js} +1 -1
  3. package/chunks/{chunk.4KOP3MDG.js → chunk.3SEWRFJK.js} +1 -1
  4. package/chunks/{chunk.DCGFNDFX.js → chunk.3VDZTFNL.js} +1 -1
  5. package/chunks/{chunk.TKK3J2TQ.js → chunk.46UEGTK5.js} +1 -1
  6. package/chunks/{chunk.DSCLYUJH.js → chunk.53E36XGT.js} +1 -1
  7. package/chunks/{chunk.7LIY65KP.js → chunk.5EWN7LDC.js} +1 -1
  8. package/chunks/{chunk.LR4JLKAP.js → chunk.5JCGKYB2.js} +2 -2
  9. package/chunks/{chunk.FSK42X7K.js → chunk.6DKX22OB.js} +2 -2
  10. package/chunks/{chunk.PDLHNMEY.js → chunk.733DPNOW.js} +1 -1
  11. package/chunks/{chunk.B7VBNGPU.js → chunk.77C4KMMP.js} +1 -1
  12. package/chunks/{chunk.T57V24TB.js → chunk.7KPAQ23T.js} +2 -2
  13. package/chunks/{chunk.ADQIHTFC.js → chunk.AHTOFVD6.js} +2 -2
  14. package/chunks/{chunk.N33PIQO6.js → chunk.BCIZMK2U.js} +1 -1
  15. package/chunks/{chunk.ZF4AT6MX.js → chunk.C7E55PXQ.js} +2 -2
  16. package/chunks/{chunk.VWQM7XRX.js → chunk.DMM5QQ6O.js} +2 -2
  17. package/chunks/chunk.DN3LJYME.js +295 -0
  18. package/chunks/{chunk.YNCPN53F.js → chunk.EUES6BVY.js} +1 -1
  19. package/chunks/{chunk.OQ5N7PQH.js → chunk.FI4AQLJC.js} +6 -6
  20. package/chunks/{chunk.6YEOPBIX.js → chunk.GQUZ4WUS.js} +1 -1
  21. package/chunks/{chunk.2KP7CXJ5.js → chunk.HEYSFPOO.js} +1 -1
  22. package/chunks/{chunk.HP6WVPOD.js → chunk.HF526RQJ.js} +1 -1
  23. package/chunks/{chunk.NQCWG32E.js → chunk.J3EXGP7R.js} +2 -2
  24. package/chunks/{chunk.UG52NHEU.js → chunk.LLZZ7LXM.js} +1 -1
  25. package/chunks/{chunk.XJBJSFOF.js → chunk.LPLK7FFY.js} +2 -2
  26. package/chunks/{chunk.IVSKSYIJ.js → chunk.M56MNRL5.js} +3 -3
  27. package/chunks/{chunk.VOXIRTMQ.js → chunk.OB7B5V4F.js} +2 -2
  28. package/chunks/{chunk.TQFIEGYC.js → chunk.PD5NJQQ5.js} +109 -30
  29. package/chunks/chunk.QK3R23GV.js +1 -1
  30. package/chunks/{chunk.Y7ALPKTD.js → chunk.S62IFRLG.js} +2 -2
  31. package/chunks/{chunk.6NZIC3TW.js → chunk.TDZCVSNA.js} +1 -1
  32. package/chunks/{chunk.U5GRU6XM.js → chunk.TJK7HUB2.js} +1 -1
  33. package/chunks/{chunk.3YDCI5TN.js → chunk.TO7VMB6K.js} +2 -2
  34. package/chunks/{chunk.XHNT35GH.js → chunk.TWTH525J.js} +2 -2
  35. package/chunks/{chunk.M33XVFO4.js → chunk.ULXGQJ44.js} +2 -2
  36. package/chunks/{chunk.TG2IMOLR.js → chunk.URQU4YK3.js} +1 -1
  37. package/chunks/{chunk.TEHTECXG.js → chunk.W6JGBOIO.js} +1 -1
  38. package/chunks/{chunk.Z62P7O6Q.js → chunk.X6BMBAAE.js} +1 -1
  39. package/chunks/{chunk.5PD3PSK4.js → chunk.YNWJYO4Y.js} +1 -1
  40. package/chunks/{chunk.VQPL6OOY.js → chunk.ZMKVVA7N.js} +1 -1
  41. package/chunks/{chunk.H52APBDI.js → chunk.ZNONAO6O.js} +1 -1
  42. package/chunks/{chunk.YJIZUKAI.js → chunk.ZQFOI7EO.js} +2 -2
  43. package/chunks/{chunk.MXB46C5Z.js → chunk.ZR2OH42G.js} +1 -1
  44. package/components/badge/badge.js +4 -4
  45. package/components/badge/index.js +4 -4
  46. package/components/button/button.js +4 -4
  47. package/components/button/button.trans.styles.js +2 -2
  48. package/components/button/index.js +4 -4
  49. package/components/calendar/calendar.js +3 -3
  50. package/components/calendar/calendar.trans.styles.js +2 -2
  51. package/components/calendar/index.js +3 -3
  52. package/components/card/card.js +3 -3
  53. package/components/card/index.js +3 -3
  54. package/components/container/container.js +3 -3
  55. package/components/container/index.js +3 -3
  56. package/components/context-menu/context-menu.js +6 -6
  57. package/components/context-menu/context-menu.trans.styles.js +2 -2
  58. package/components/context-menu/index.js +7 -7
  59. package/components/datepicker/datepicker.js +17 -17
  60. package/components/datepicker/datepicker.trans.styles.js +2 -2
  61. package/components/datepicker/index.js +17 -17
  62. package/components/dialog/dialog.js +7 -7
  63. package/components/dialog/index.js +7 -7
  64. package/components/div/div.js +2 -2
  65. package/components/div/index.js +2 -2
  66. package/components/divider/divider.js +2 -2
  67. package/components/divider/index.js +2 -2
  68. package/components/dropdown/dropdown.js +14 -14
  69. package/components/dropdown/dropdown.trans.styles.js +2 -2
  70. package/components/dropdown/index.js +15 -15
  71. package/components/fab/fab.js +5 -5
  72. package/components/fab/index.js +5 -5
  73. package/components/filter-chips/filter-chip/filter-chip.js +5 -5
  74. package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +2 -2
  75. package/components/filter-chips/filter-chip/index.js +5 -5
  76. package/components/filter-chips/filter-chips.js +5 -5
  77. package/components/filter-chips/filter-chips.trans.styles.js +2 -2
  78. package/components/filter-chips/index.js +5 -5
  79. package/components/flex/flex.js +3 -3
  80. package/components/flex/index.js +3 -3
  81. package/components/form/index.js +7 -7
  82. package/components/form/summary/index.js +7 -7
  83. package/components/form/summary/summary.js +7 -7
  84. package/components/grid/grid.js +3 -3
  85. package/components/grid/index.js +3 -3
  86. package/components/grouped-list/grouped-list.js +3 -3
  87. package/components/grouped-list/grouped-list.trans.styles.js +2 -2
  88. package/components/grouped-list/index.js +3 -3
  89. package/components/img/img.js +2 -2
  90. package/components/img/index.js +2 -2
  91. package/components/index.js +40 -40
  92. package/components/input/index.js +11 -11
  93. package/components/input/input.js +11 -11
  94. package/components/input/input.trans.styles.js +2 -2
  95. package/components/link/index.js +2 -2
  96. package/components/link/link.js +2 -2
  97. package/components/mask/index.js +4 -4
  98. package/components/mask/mask.js +4 -4
  99. package/components/menu-button/index.js +2 -2
  100. package/components/menu-button/menu-button.js +2 -2
  101. package/components/popover/index.js +3 -3
  102. package/components/popover/popover.js +3 -3
  103. package/components/popover/popover.trans.styles.js +2 -2
  104. package/components/rich-text/index.js +3 -3
  105. package/components/rich-text/rich-text.js +3 -3
  106. package/components/segmented-control/index.js +4 -4
  107. package/components/segmented-control/segment/index.js +3 -3
  108. package/components/segmented-control/segment/segment.js +3 -3
  109. package/components/segmented-control/segment/segment.trans.styles.js +2 -2
  110. package/components/segmented-control/segmented-control.js +4 -4
  111. package/components/segmented-control/segmented-control.trans.styles.js +2 -2
  112. package/components/select/index.js +11 -11
  113. package/components/select/select.js +11 -11
  114. package/components/select/select.trans.styles.js +2 -2
  115. package/components/signal/index.js +2 -2
  116. package/components/signal/signal.js +2 -2
  117. package/components/spacer/index.js +2 -2
  118. package/components/spacer/spacer.js +2 -2
  119. package/components/spinner/gds-spinner.d.ts +103 -0
  120. package/components/spinner/gds-spinner.js +17 -0
  121. package/components/spinner/gds-spinner.styles.d.ts +1 -0
  122. package/components/spinner/index.d.ts +1 -0
  123. package/components/spinner/index.js +17 -0
  124. package/components/text/index.js +4 -4
  125. package/components/text/text.js +4 -4
  126. package/components/textarea/index.js +11 -11
  127. package/components/textarea/textarea.js +11 -11
  128. package/components/theme/index.js +3 -3
  129. package/components/theme/theme.js +3 -3
  130. package/components/theme/theme.trans.styles.js +2 -2
  131. package/components/video/index.js +2 -2
  132. package/components/video/video.js +2 -2
  133. package/gds-element.d.ts +8 -0
  134. package/generated/locales/da.d.ts +1 -0
  135. package/generated/locales/de.d.ts +1 -0
  136. package/generated/locales/fi.d.ts +1 -0
  137. package/generated/locales/fr.d.ts +1 -0
  138. package/generated/locales/it.d.ts +1 -0
  139. package/generated/locales/nl.d.ts +1 -0
  140. package/generated/locales/no.d.ts +1 -0
  141. package/generated/locales/sv.d.ts +1 -0
  142. package/index.js +40 -40
  143. package/localization.js +8 -0
  144. package/package.json +1 -1
  145. package/primitives/field-base/field-base.js +3 -3
  146. package/primitives/field-base/index.js +3 -3
  147. package/primitives/form-control-footer/form-control-footer.js +4 -4
  148. package/primitives/form-control-footer/index.js +4 -4
  149. package/primitives/form-control-header/form-control-header.js +6 -6
  150. package/primitives/form-control-header/index.js +6 -6
  151. package/primitives/listbox/index.js +4 -4
  152. package/primitives/listbox/listbox.js +4 -4
  153. package/primitives/listbox/option.js +3 -3
  154. package/primitives/menu/index.js +4 -4
  155. package/primitives/menu/menu-heading.js +3 -3
  156. package/primitives/menu/menu-item.js +3 -3
  157. package/primitives/menu/menu.js +4 -4
  158. package/primitives/ripple/index.js +2 -2
  159. package/primitives/ripple/ripple.js +2 -2
  160. package/transitional-styles.js +2 -2
@@ -4,10 +4,14 @@ var defaultStyles = css`
4
4
  @layer defaults {
5
5
  a:link {
6
6
  color: currentColor;
7
- text-undeline-offset: 0.2lh;
7
+ text-underline-offset: 0.1lh;
8
8
  font-weight: var(--gds-text-weight-book);
9
9
  }
10
10
 
11
+ a:visited {
12
+ color: currentColor;
13
+ }
14
+
11
15
  h1 {
12
16
  font-size: var(--gds-text-size-heading-xl);
13
17
  line-height: var(--gds-text-line-height-heading-xl);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.YNCPN53F.js";
3
+ } from "./chunk.EUES6BVY.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk.TYGMNHNO.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.OQ5N7PQH.js";
17
+ } from "./chunk.FI4AQLJC.js";
18
18
  import {
19
19
  gdsCustomElement,
20
20
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.YNCPN53F.js";
3
+ } from "./chunk.EUES6BVY.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OQ5N7PQH.js";
9
+ } from "./chunk.FI4AQLJC.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.YNCPN53F.js";
3
+ } from "./chunk.EUES6BVY.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk.TWXTKG4B.js";
6
6
  import {
7
7
  tokens
8
- } from "./chunk.OQ5N7PQH.js";
8
+ } from "./chunk.FI4AQLJC.js";
9
9
  import {
10
10
  GdsElement
11
11
  } from "./chunk.TMEWQZER.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk.TWXTKG4B.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.YNCPN53F.js";
6
+ } from "./chunk.EUES6BVY.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OQ5N7PQH.js";
9
+ } from "./chunk.FI4AQLJC.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -12,13 +12,13 @@ import {
12
12
  } from "./chunk.TWXTKG4B.js";
13
13
  import {
14
14
  TransitionalStyles
15
- } from "./chunk.YNCPN53F.js";
15
+ } from "./chunk.EUES6BVY.js";
16
16
  import {
17
17
  watch
18
18
  } from "./chunk.TYGMNHNO.js";
19
19
  import {
20
20
  tokens
21
- } from "./chunk.OQ5N7PQH.js";
21
+ } from "./chunk.FI4AQLJC.js";
22
22
  import {
23
23
  gdsCustomElement,
24
24
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.N33PIQO6.js";
3
+ } from "./chunk.BCIZMK2U.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.QK3R23GV.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.E62NOHQC.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.YNCPN53F.js";
7
+ } from "./chunk.EUES6BVY.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsFlex
3
- } from "./chunk.3YDCI5TN.js";
3
+ } from "./chunk.TO7VMB6K.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OQ5N7PQH.js";
9
+ } from "./chunk.FI4AQLJC.js";
10
10
  import {
11
11
  gdsCustomElement
12
12
  } from "./chunk.QK3R23GV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.N33PIQO6.js";
3
+ } from "./chunk.BCIZMK2U.js";
4
4
  import {
5
5
  forSpaceTokens
6
6
  } from "./chunk.76QWARGM.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.NUUST5OZ.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.OQ5N7PQH.js";
12
+ } from "./chunk.FI4AQLJC.js";
13
13
  import {
14
14
  gdsCustomElement,
15
15
  html
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.NUUST5OZ.js";
17
17
  import {
18
18
  tokens
19
- } from "./chunk.OQ5N7PQH.js";
19
+ } from "./chunk.FI4AQLJC.js";
20
20
  import {
21
21
  GdsElement
22
22
  } from "./chunk.TMEWQZER.js";
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk.TWXTKG4B.js";
9
9
  import {
10
10
  TransitionalStyles
11
- } from "./chunk.YNCPN53F.js";
11
+ } from "./chunk.EUES6BVY.js";
12
12
  import {
13
13
  watch
14
14
  } from "./chunk.TYGMNHNO.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.OQ5N7PQH.js";
17
+ } from "./chunk.FI4AQLJC.js";
18
18
  import {
19
19
  GdsElement
20
20
  } from "./chunk.TMEWQZER.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.N33PIQO6.js";
3
+ } from "./chunk.BCIZMK2U.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OQ5N7PQH.js";
9
+ } from "./chunk.FI4AQLJC.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -0,0 +1,295 @@
1
+ import {
2
+ withLayoutChildProps,
3
+ withMarginProps,
4
+ withPositioningProps
5
+ } from "./chunk.TWXTKG4B.js";
6
+ import {
7
+ watch
8
+ } from "./chunk.TYGMNHNO.js";
9
+ import {
10
+ tokens
11
+ } from "./chunk.FI4AQLJC.js";
12
+ import {
13
+ GdsElement
14
+ } from "./chunk.TMEWQZER.js";
15
+ import {
16
+ gdsCustomElement,
17
+ html
18
+ } from "./chunk.QK3R23GV.js";
19
+ import {
20
+ __decorateClass,
21
+ __privateAdd,
22
+ __privateGet,
23
+ __privateMethod,
24
+ __privateSet
25
+ } from "./chunk.SEHSDSX2.js";
26
+
27
+ // libs/core/src/components/spinner/gds-spinner.ts
28
+ import { localized, msg } from "@lit/localize";
29
+ import { property, state } from "lit/decorators.js";
30
+ import { classMap } from "lit/directives/class-map.js";
31
+ import { when } from "lit/directives/when.js";
32
+
33
+ // libs/core/src/components/spinner/gds-spinner.styles.ts
34
+ import { css } from "lit";
35
+ var styles = css`
36
+ /* Host configuration with core variables */
37
+ :host {
38
+ /* Size variables with indexed access using CSS custom properties */
39
+ --spinner-sizes: 2rem 3.75rem 6rem;
40
+ --spinner-size-sm: 2rem;
41
+ --spinner-size-md: 3.75rem;
42
+ --spinner-size-lg: 6rem;
43
+
44
+ --track-widths: 0.1rem 0.2rem 0.3rem;
45
+ --track-width-sm: 0.275rem;
46
+ --track-width-md: 0.375rem;
47
+ --track-width-lg: 0.375rem;
48
+
49
+ /* Default to light mode as fallback */
50
+ --spinner-track-color: var(--gds-color-l3-background-secondary);
51
+ --spinner-active-color: var(--gds-color-l3-content-secondary);
52
+ --spinner-label-color: currentColor;
53
+ --spinner-backdrop-color: rgba(0, 0, 0, 0.8);
54
+
55
+ --spinner-backdrop-blur: 2px;
56
+
57
+ /* Base sizing, will be overridden by size-specific variables */
58
+ --size: var(--spinner-size-md);
59
+ --track-width: var(--track-width-md);
60
+
61
+ /* Use CSS variable for color-scheme to avoid minification issues */
62
+ --spinner-color-scheme: light dark;
63
+ color-scheme: var(--spinner-color-scheme);
64
+
65
+ display: block;
66
+ }
67
+
68
+ /* Size-specific host settings */
69
+ :host([size='sm']) {
70
+ --size: var(--spinner-size-sm);
71
+ --track-width: var(--track-width-sm);
72
+ }
73
+
74
+ :host([size='md']),
75
+ :host([size='default']) {
76
+ --size: var(--spinner-size-md);
77
+ --track-width: var(--track-width-md);
78
+ }
79
+
80
+ :host([size='lg']) {
81
+ --size: var(--spinner-size-lg);
82
+ --track-width: var(--track-width-lg);
83
+ }
84
+
85
+ /* Fullscreen positioning */
86
+ :host([fullscreen]) {
87
+ position: fixed;
88
+ inset: 0;
89
+ width: 100vw;
90
+ height: 100vh;
91
+ z-index: 9999;
92
+ }
93
+
94
+ /* Focus styles */
95
+ :host(:focus-visible) {
96
+ outline: 2px solid var(--spinner-active-color);
97
+ outline-offset: 2px;
98
+ }
99
+
100
+ /* Spinner component */
101
+ .gds-spinner {
102
+ border-radius: 50%;
103
+ border: var(--track-width, 0.375rem) solid var(--spinner-track-color);
104
+ border-top-color: var(--spinner-active-color);
105
+ height: var(--size, 3.75rem);
106
+ width: var(--size, 3.75rem);
107
+ animation: gdsSpinnerRotation 1s linear infinite;
108
+ }
109
+
110
+ /* Motion preference adjustments */
111
+ @media (prefers-reduced-motion: reduce) {
112
+ .gds-spinner {
113
+ /* Slower rotation for reduced motion preference */
114
+ animation-duration: 2s;
115
+ /* Smaller rotation to reduce visual intensity */
116
+ animation-name: gdsSpinnerReducedRotation;
117
+ }
118
+
119
+ @keyframes gdsSpinnerReducedRotation {
120
+ to {
121
+ transform: rotate(180deg);
122
+ }
123
+ }
124
+ }
125
+
126
+ /* Layout components */
127
+ .gds-spinner-wrapper {
128
+ display: flex;
129
+ justify-content: center;
130
+ align-items: center;
131
+ flex-direction: column;
132
+ }
133
+
134
+ .gds-spinner-wrapper.gds-spinner-cover {
135
+ position: absolute;
136
+ inset: 0;
137
+ z-index: 999;
138
+ }
139
+
140
+ .gds-spinner-wrapper.gds-spinner-fullscreen {
141
+ position: fixed;
142
+ inset: 0;
143
+ z-index: 9999;
144
+ }
145
+
146
+ .gds-spinner-wrapper.gds-spinner-backdrop {
147
+ background-color: var(--spinner-backdrop-color);
148
+ backdrop-filter: blur(var(--spinner-backdrop-blur));
149
+ --spinner-label-color: #fff;
150
+ --spinner-track-color: var(--gds-color-l3-content-secondary);
151
+ --spinner-active-color: var(--gds-color-l3-background-secondary);
152
+ }
153
+
154
+ /* Label styling */
155
+ .spinner-label {
156
+ margin-top: 1rem;
157
+ color: var(--spinner-label-color);
158
+ text-align: center;
159
+ }
160
+
161
+ /* Animation keyframes */
162
+ @keyframes gdsSpinnerRotation {
163
+ to {
164
+ transform: rotate(360deg);
165
+ }
166
+ }
167
+ `;
168
+
169
+ // libs/core/src/components/spinner/gds-spinner.ts
170
+ var _getWrapperClasses, getWrapperClasses_fn, _originalStyles;
171
+ var GdsSpinner = class extends withMarginProps(
172
+ withPositioningProps(withLayoutChildProps(GdsElement))
173
+ ) {
174
+ constructor() {
175
+ super(...arguments);
176
+ /**
177
+ * Generates CSS classes for the wrapper element based on component state
178
+ * @private
179
+ */
180
+ __privateAdd(this, _getWrapperClasses);
181
+ this.label = msg("Loading...");
182
+ this.showLabel = false;
183
+ this.cover = false;
184
+ this.fullscreen = false;
185
+ this.size = "md";
186
+ this._isAnimating = false;
187
+ /**
188
+ * Stores original document styles before applying fullscreen mode
189
+ * @private
190
+ */
191
+ __privateAdd(this, _originalStyles, {
192
+ overflow: "visible",
193
+ overscrollBehavior: "auto"
194
+ });
195
+ }
196
+ /**
197
+ * Sets up accessibility attributes and initializes the spinner
198
+ */
199
+ connectedCallback() {
200
+ super.connectedCallback();
201
+ this.setAttribute("role", "status");
202
+ this.setAttribute("aria-live", "polite");
203
+ this._isAnimating = true;
204
+ this.dispatchEvent(new CustomEvent("gds-spinner-connected"));
205
+ }
206
+ /**
207
+ * Cleans up document styles if fullscreen mode was used
208
+ */
209
+ disconnectedCallback() {
210
+ super.disconnectedCallback();
211
+ if (this.fullscreen) {
212
+ this.fullscreen = false;
213
+ this._toggleRootStyles();
214
+ }
215
+ this._isAnimating = false;
216
+ super.disconnectedCallback();
217
+ }
218
+ _updateAriaLabel() {
219
+ this.setAttribute("aria-label", this.label);
220
+ }
221
+ /**
222
+ * Renders the spinner component
223
+ */
224
+ render() {
225
+ return html`
226
+ <div part="wrapper" class=${classMap(__privateMethod(this, _getWrapperClasses, getWrapperClasses_fn).call(this))}>
227
+ <span part="spinner" class="gds-spinner"></span>
228
+ ${when(
229
+ this.label && this.showLabel,
230
+ () => html`<span part="label" class="spinner-label">${this.label}</span>`,
231
+ () => null
232
+ )}
233
+ </div>
234
+ `;
235
+ }
236
+ _toggleRootStyles() {
237
+ const { style } = document.documentElement;
238
+ if (this.fullscreen) {
239
+ __privateSet(this, _originalStyles, {
240
+ overflow: style.overflow,
241
+ overscrollBehavior: style.overscrollBehavior
242
+ });
243
+ style.overflow = "hidden";
244
+ style.overscrollBehavior = "none";
245
+ } else {
246
+ style.overflow = __privateGet(this, _originalStyles).overflow;
247
+ style.overscrollBehavior = __privateGet(this, _originalStyles).overscrollBehavior;
248
+ }
249
+ }
250
+ };
251
+ _getWrapperClasses = new WeakSet();
252
+ getWrapperClasses_fn = function() {
253
+ return {
254
+ "gds-spinner-wrapper": true,
255
+ "gds-spinner-fullscreen": this.fullscreen,
256
+ "gds-spinner-cover": this.cover,
257
+ "gds-spinner-backdrop": this.cover || this.fullscreen,
258
+ "gds-spinner-animating": this._isAnimating
259
+ };
260
+ };
261
+ _originalStyles = new WeakMap();
262
+ /** All styles are defined in the external styles file */
263
+ GdsSpinner.styles = [tokens, styles];
264
+ __decorateClass([
265
+ property({ type: String })
266
+ ], GdsSpinner.prototype, "label", 2);
267
+ __decorateClass([
268
+ property({ type: Boolean, reflect: true })
269
+ ], GdsSpinner.prototype, "showLabel", 2);
270
+ __decorateClass([
271
+ property({ type: Boolean, reflect: true })
272
+ ], GdsSpinner.prototype, "cover", 2);
273
+ __decorateClass([
274
+ property({ type: Boolean, reflect: true })
275
+ ], GdsSpinner.prototype, "fullscreen", 2);
276
+ __decorateClass([
277
+ property({ type: String, reflect: true })
278
+ ], GdsSpinner.prototype, "size", 2);
279
+ __decorateClass([
280
+ state()
281
+ ], GdsSpinner.prototype, "_isAnimating", 2);
282
+ __decorateClass([
283
+ watch("label")
284
+ ], GdsSpinner.prototype, "_updateAriaLabel", 1);
285
+ __decorateClass([
286
+ watch("fullscreen")
287
+ ], GdsSpinner.prototype, "_toggleRootStyles", 1);
288
+ GdsSpinner = __decorateClass([
289
+ gdsCustomElement("gds-spinner"),
290
+ localized()
291
+ ], GdsSpinner);
292
+
293
+ export {
294
+ GdsSpinner
295
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.OQ5N7PQH.js";
3
+ } from "./chunk.FI4AQLJC.js";
4
4
  import {
5
5
  VER_SUFFIX
6
6
  } from "./chunk.QK3R23GV.js";
@@ -5,7 +5,7 @@ import {
5
5
  // dist/libs/tokens/internal/dark.css?inline
6
6
  var dark_default = `/**
7
7
  * Do not edit directly
8
- * Generated on Mon, 03 Mar 2025 14:15:14 GMT
8
+ * Generated on Wed, 05 Mar 2025 09:01:50 GMT
9
9
  */
10
10
 
11
11
  color-scheme: dark;
@@ -119,7 +119,7 @@ color-scheme: dark;
119
119
  // dist/libs/tokens/internal/light.css?inline
120
120
  var light_default = `/**
121
121
  * Do not edit directly
122
- * Generated on Mon, 03 Mar 2025 14:15:14 GMT
122
+ * Generated on Wed, 05 Mar 2025 09:01:50 GMT
123
123
  */
124
124
 
125
125
  color-scheme: light;
@@ -236,7 +236,7 @@ import { css, unsafeCSS } from "lit";
236
236
  // dist/libs/tokens/internal/motion.css?inline
237
237
  var motion_default = `/**
238
238
  * Do not edit directly
239
- * Generated on Mon, 03 Mar 2025 14:15:14 GMT
239
+ * Generated on Wed, 05 Mar 2025 09:01:50 GMT
240
240
  */
241
241
 
242
242
  :host {
@@ -255,7 +255,7 @@ var motion_default = `/**
255
255
  // dist/libs/tokens/internal/shadow.css?inline
256
256
  var shadow_default = `/**
257
257
  * Do not edit directly
258
- * Generated on Mon, 03 Mar 2025 14:15:14 GMT
258
+ * Generated on Wed, 05 Mar 2025 09:01:50 GMT
259
259
  */
260
260
 
261
261
  :host {
@@ -270,7 +270,7 @@ var shadow_default = `/**
270
270
  // dist/libs/tokens/internal/size.css?inline
271
271
  var size_default = `/**
272
272
  * Do not edit directly
273
- * Generated on Mon, 03 Mar 2025 14:15:14 GMT
273
+ * Generated on Wed, 05 Mar 2025 09:01:50 GMT
274
274
  */
275
275
 
276
276
  :host {
@@ -297,7 +297,7 @@ var size_default = `/**
297
297
  // dist/libs/tokens/internal/text.css?inline
298
298
  var text_default = `/**
299
299
  * Do not edit directly
300
- * Generated on Mon, 03 Mar 2025 14:15:14 GMT
300
+ * Generated on Wed, 05 Mar 2025 09:01:50 GMT
301
301
  */
302
302
 
303
303
  :host {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.NUUST5OZ.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.OQ5N7PQH.js";
6
+ } from "./chunk.FI4AQLJC.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsButton
3
- } from "./chunk.XJBJSFOF.js";
3
+ } from "./chunk.LPLK7FFY.js";
4
4
  import {
5
5
  withPositioningProps
6
6
  } from "./chunk.TWXTKG4B.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.E62NOHQC.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.YNCPN53F.js";
7
+ } from "./chunk.EUES6BVY.js";
8
8
  import {
9
9
  watch
10
10
  } from "./chunk.TYGMNHNO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  forwardAttributes
3
- } from "./chunk.XJBJSFOF.js";
3
+ } from "./chunk.LPLK7FFY.js";
4
4
  import {
5
5
  GdsFormControlElement
6
6
  } from "./chunk.VA6TUMR2.js";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk.TWXTKG4B.js";
12
12
  import {
13
13
  tokens
14
- } from "./chunk.OQ5N7PQH.js";
14
+ } from "./chunk.FI4AQLJC.js";
15
15
  import {
16
16
  gdsCustomElement,
17
17
  html
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.TYGMNHNO.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.OQ5N7PQH.js";
12
+ } from "./chunk.FI4AQLJC.js";
13
13
  import {
14
14
  gdsCustomElement,
15
15
  html
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk.TWXTKG4B.js";
12
12
  import {
13
13
  TransitionalStyles
14
- } from "./chunk.YNCPN53F.js";
14
+ } from "./chunk.EUES6BVY.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.OQ5N7PQH.js";
17
+ } from "./chunk.FI4AQLJC.js";
18
18
  import {
19
19
  gdsCustomElement,
20
20
  html
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  defaultStyles
3
- } from "./chunk.UEJZWDMS.js";
3
+ } from "./chunk.2JGBCOIQ.js";
4
4
  import {
5
5
  GdsDiv
6
- } from "./chunk.N33PIQO6.js";
6
+ } from "./chunk.BCIZMK2U.js";
7
7
  import {
8
8
  styleExpressionProperty
9
9
  } from "./chunk.NUUST5OZ.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.OQ5N7PQH.js";
12
+ } from "./chunk.FI4AQLJC.js";
13
13
  import {
14
14
  gdsCustomElement
15
15
  } from "./chunk.QK3R23GV.js";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk.TWXTKG4B.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.YNCPN53F.js";
7
+ } from "./chunk.EUES6BVY.js";
8
8
  import {
9
9
  tokens
10
- } from "./chunk.OQ5N7PQH.js";
10
+ } from "./chunk.FI4AQLJC.js";
11
11
  import {
12
12
  GdsElement
13
13
  } from "./chunk.TMEWQZER.js";