@sebgroup/green-core 1.68.5 → 1.69.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 (171) hide show
  1. package/chunks/{chunk.DYN6322L.js → chunk.3GQXXIAA.js} +2 -2
  2. package/chunks/{chunk.IJTVVDT5.js → chunk.4D6PS3YB.js} +1 -1
  3. package/chunks/{chunk.CTQODNHP.js → chunk.4GEYYFIK.js} +1 -1
  4. package/chunks/{chunk.TOBY35JG.js → chunk.4KL2SL2I.js} +1 -1
  5. package/chunks/{chunk.UPA7PT7F.js → chunk.5PXMD6FN.js} +2 -2
  6. package/chunks/chunk.6PGW4W5E.js +240 -0
  7. package/chunks/{chunk.HXC56ASG.js → chunk.A7DPHMYA.js} +1 -1
  8. package/chunks/{chunk.RF56IWRC.js → chunk.BA4XMBLV.js} +1 -1
  9. package/chunks/{chunk.KRR2MHH6.js → chunk.BR67WBUE.js} +1 -1
  10. package/chunks/{chunk.4RYCDDEL.js → chunk.CHZ4Z2YY.js} +1 -1
  11. package/chunks/{chunk.G5A6TLEB.js → chunk.D73543IP.js} +1 -1
  12. package/chunks/{chunk.2UGVYZW6.js → chunk.EPGFD7VH.js} +2 -2
  13. package/chunks/{chunk.OXFUYPNR.js → chunk.ERTFEGJX.js} +1 -1
  14. package/chunks/{chunk.KYGKWH6H.js → chunk.FB74W3AW.js} +1 -1
  15. package/chunks/{chunk.R7PMRDER.js → chunk.FIRXUEIK.js} +1 -1
  16. package/chunks/{chunk.AYJAUUCZ.js → chunk.FV4KNGDE.js} +1 -1
  17. package/chunks/{chunk.YDPMAYLA.js → chunk.GJ6CZ6UN.js} +2 -2
  18. package/chunks/{chunk.TRS2VCUR.js → chunk.GOPGCNDC.js} +1 -1
  19. package/chunks/{chunk.DNBHE2HW.js → chunk.GRVFPKOG.js} +1 -1
  20. package/chunks/{chunk.L27GXXCR.js → chunk.GVAZGVX2.js} +1 -1
  21. package/chunks/{chunk.SSMQSB4N.js → chunk.GZQMA4XI.js} +1 -1
  22. package/chunks/{chunk.3JPQEXQG.js → chunk.HBGEHVVS.js} +1 -1
  23. package/chunks/{chunk.W7XFAJ4E.js → chunk.I2YO744I.js} +2 -2
  24. package/chunks/{chunk.R7SHJPQX.js → chunk.IT5VVUWI.js} +1 -1
  25. package/chunks/chunk.ITT4IIHM.js +378 -0
  26. package/chunks/{chunk.KFICL24P.js → chunk.JFJHA6P6.js} +1 -1
  27. package/chunks/{chunk.XB7K3C5P.js → chunk.JIL3VXPT.js} +2 -2
  28. package/chunks/{chunk.L5PE6QYR.js → chunk.JLTWJMDP.js} +1 -1
  29. package/chunks/chunk.LTVUUK5B.js +0 -0
  30. package/chunks/{chunk.3ER354IV.js → chunk.LUSRFI2X.js} +2 -2
  31. package/chunks/{chunk.XHLTNW7U.js → chunk.N6GUDNJV.js} +2 -2
  32. package/chunks/{chunk.Y2NHXTDW.js → chunk.NHCDT25A.js} +1 -1
  33. package/chunks/{chunk.JO7TMUNS.js → chunk.NQQAFN6S.js} +1 -1
  34. package/chunks/{chunk.M6XWWL3K.js → chunk.NSJATXHH.js} +2 -2
  35. package/chunks/{chunk.7Y2HXZTW.js → chunk.OGHRZS7Z.js} +2 -2
  36. package/chunks/{chunk.NGISBDVX.js → chunk.OGXYFLYC.js} +6 -6
  37. package/chunks/chunk.PBKM6LEO.js +0 -0
  38. package/chunks/{chunk.L76SIVXL.js → chunk.Q3QF6FIQ.js} +2 -2
  39. package/chunks/chunk.QK3R23GV.js +1 -1
  40. package/chunks/{chunk.F2SQQT5J.js → chunk.ST5QI4XQ.js} +2 -2
  41. package/chunks/{chunk.FFOHUW46.js → chunk.UAED2ICJ.js} +1 -1
  42. package/chunks/{chunk.KC6Z3HNY.js → chunk.UR2O7OZR.js} +2 -2
  43. package/chunks/{chunk.M42OSKF3.js → chunk.VDIZOFXQ.js} +1 -1
  44. package/chunks/chunk.VL6WP6CO.js +113 -0
  45. package/chunks/{chunk.ZNRXC2JN.js → chunk.WDV4K3NB.js} +2 -2
  46. package/chunks/{chunk.J5LBLNY4.js → chunk.WSXUN75Q.js} +2 -2
  47. package/chunks/{chunk.Y5YZV6CC.js → chunk.XA77YAN3.js} +1 -1
  48. package/components/badge/badge.js +4 -4
  49. package/components/badge/index.js +4 -4
  50. package/components/button/button.js +4 -4
  51. package/components/button/button.trans.styles.js +2 -2
  52. package/components/button/index.js +4 -4
  53. package/components/calendar/calendar.js +3 -3
  54. package/components/calendar/calendar.trans.styles.js +2 -2
  55. package/components/calendar/index.js +3 -3
  56. package/components/card/card.js +3 -3
  57. package/components/card/index.js +3 -3
  58. package/components/container/container.js +3 -3
  59. package/components/container/index.js +3 -3
  60. package/components/context-menu/context-menu.js +6 -6
  61. package/components/context-menu/context-menu.trans.styles.js +2 -2
  62. package/components/context-menu/index.js +7 -7
  63. package/components/datepicker/datepicker.js +16 -16
  64. package/components/datepicker/datepicker.trans.styles.js +2 -2
  65. package/components/datepicker/index.js +16 -16
  66. package/components/dialog/dialog.js +7 -7
  67. package/components/dialog/index.js +7 -7
  68. package/components/div/div.js +2 -2
  69. package/components/div/index.js +2 -2
  70. package/components/divider/divider.js +2 -2
  71. package/components/divider/index.js +2 -2
  72. package/components/dropdown/dropdown.js +13 -13
  73. package/components/dropdown/dropdown.trans.styles.js +2 -2
  74. package/components/dropdown/index.js +14 -14
  75. package/components/fab/fab.js +5 -5
  76. package/components/fab/index.js +5 -5
  77. package/components/filter-chips/filter-chip/filter-chip.js +5 -5
  78. package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +2 -2
  79. package/components/filter-chips/filter-chip/index.js +5 -5
  80. package/components/filter-chips/filter-chips.js +5 -5
  81. package/components/filter-chips/filter-chips.trans.styles.js +2 -2
  82. package/components/filter-chips/index.js +5 -5
  83. package/components/flex/flex.js +3 -3
  84. package/components/flex/index.js +3 -3
  85. package/components/form/form-control.d.ts +4 -1
  86. package/components/form/index.js +6 -6
  87. package/components/form/summary/index.js +6 -6
  88. package/components/form/summary/summary.js +6 -6
  89. package/components/grid/grid.js +3 -3
  90. package/components/grid/index.js +3 -3
  91. package/components/grouped-list/grouped-list.js +3 -3
  92. package/components/grouped-list/grouped-list.trans.styles.js +2 -2
  93. package/components/grouped-list/index.js +3 -3
  94. package/components/img/img.js +2 -2
  95. package/components/img/index.js +2 -2
  96. package/components/index.d.ts +1 -0
  97. package/components/index.js +54 -43
  98. package/components/input/index.js +10 -10
  99. package/components/input/input.js +10 -10
  100. package/components/input/input.trans.styles.js +2 -2
  101. package/components/link/index.js +2 -2
  102. package/components/link/link.js +2 -2
  103. package/components/mask/index.js +4 -4
  104. package/components/mask/mask.js +4 -4
  105. package/components/menu-button/index.js +2 -2
  106. package/components/menu-button/menu-button.js +2 -2
  107. package/components/popover/index.js +3 -3
  108. package/components/popover/popover.js +3 -3
  109. package/components/popover/popover.trans.styles.js +2 -2
  110. package/components/radio/index.d.ts +2 -0
  111. package/components/radio/index.js +46 -0
  112. package/components/radio/radio-group/radio-group.d.ts +55 -0
  113. package/components/radio/radio-group/radio-group.js +39 -0
  114. package/components/radio/radio-group/radio-group.styles.d.ts +1 -0
  115. package/components/radio/radio.d.ts +44 -0
  116. package/components/radio/radio.js +17 -0
  117. package/components/radio/radio.styles.d.ts +1 -0
  118. package/components/radio/radio.trans.styles.d.ts +2 -0
  119. package/components/radio/radio.trans.styles.js +26 -0
  120. package/components/rich-text/index.js +2 -2
  121. package/components/rich-text/rich-text.js +2 -2
  122. package/components/segmented-control/index.js +4 -4
  123. package/components/segmented-control/segment/index.js +3 -3
  124. package/components/segmented-control/segment/segment.js +3 -3
  125. package/components/segmented-control/segment/segment.trans.styles.js +2 -2
  126. package/components/segmented-control/segmented-control.js +4 -4
  127. package/components/segmented-control/segmented-control.trans.styles.js +2 -2
  128. package/components/select/index.js +10 -10
  129. package/components/select/select.js +10 -10
  130. package/components/select/select.trans.styles.js +2 -2
  131. package/components/signal/index.js +2 -2
  132. package/components/signal/signal.js +2 -2
  133. package/components/spacer/index.js +2 -2
  134. package/components/spacer/spacer.js +2 -2
  135. package/components/spinner/gds-spinner.js +2 -2
  136. package/components/spinner/index.js +2 -2
  137. package/components/text/index.js +3 -3
  138. package/components/text/text.js +3 -3
  139. package/components/textarea/index.js +10 -10
  140. package/components/textarea/textarea.js +10 -10
  141. package/components/theme/index.js +3 -3
  142. package/components/theme/theme.js +3 -3
  143. package/components/theme/theme.trans.styles.js +2 -2
  144. package/components/video/index.js +2 -2
  145. package/components/video/video.js +2 -2
  146. package/index.js +54 -43
  147. package/package.json +1 -1
  148. package/primitives/field-base/field-base.js +3 -3
  149. package/primitives/field-base/index.js +3 -3
  150. package/primitives/form-control-footer/form-control-footer.js +4 -4
  151. package/primitives/form-control-footer/index.js +4 -4
  152. package/primitives/form-control-header/form-control-header.js +6 -6
  153. package/primitives/form-control-header/index.js +6 -6
  154. package/primitives/listbox/index.js +4 -4
  155. package/primitives/listbox/listbox.js +4 -4
  156. package/primitives/listbox/option.js +3 -3
  157. package/primitives/menu/index.js +4 -4
  158. package/primitives/menu/menu-heading.js +3 -3
  159. package/primitives/menu/menu-item.js +3 -3
  160. package/primitives/menu/menu.js +4 -4
  161. package/primitives/ripple/index.js +2 -2
  162. package/primitives/ripple/ripple.js +2 -2
  163. package/primitives/selection-controls/index.d.ts +1 -0
  164. package/primitives/selection-controls/index.js +15 -0
  165. package/primitives/selection-controls/selection-field-label.d.ts +36 -0
  166. package/primitives/selection-controls/selection-field-label.js +14 -0
  167. package/primitives/selection-controls/selection-field-label.styles.d.ts +1 -0
  168. package/transitional-styles.js +2 -2
  169. package/components/radio/radio-group.d.ts +0 -13
  170. package/components/radio/radio-group.js +0 -69
  171. /package/chunks/{chunk.2PVXNNB5.js → chunk.4S2VQKXS.js} +0 -0
@@ -0,0 +1,378 @@
1
+ import {
2
+ GdsFormControlElement
3
+ } from "./chunk.VA6TUMR2.js";
4
+ import {
5
+ withLayoutChildProps,
6
+ withMarginProps,
7
+ withSizeXProps
8
+ } from "./chunk.TWXTKG4B.js";
9
+ import {
10
+ watch
11
+ } from "./chunk.TYGMNHNO.js";
12
+ import {
13
+ gdsCustomElement,
14
+ html
15
+ } from "./chunk.QK3R23GV.js";
16
+ import {
17
+ __decorateClass,
18
+ __privateAdd,
19
+ __privateMethod
20
+ } from "./chunk.SEHSDSX2.js";
21
+
22
+ // libs/core/src/components/radio/radio-group/radio-group.ts
23
+ import { localized } from "@lit/localize";
24
+ import { property, query } from "lit/decorators.js";
25
+ import { classMap } from "lit/directives/class-map.js";
26
+
27
+ // libs/core/src/components/radio/radio-group/radio-group.styles.ts
28
+ import { css } from "lit";
29
+ var styles = css`
30
+ :host {
31
+ --radio-bg-mix: color-mix(
32
+ in srgb,
33
+ var(--gds-color-l3-background-secondary),
34
+ var(--gds-color-l3-states-light-hover)
35
+ );
36
+ --radio-bg-mix-active: color-mix(
37
+ in srgb,
38
+ var(--gds-color-l3-background-secondary),
39
+ var(--gds-color-l3-states-light-pressed)
40
+ );
41
+
42
+ --radio-size: var(--gds-space-xl);
43
+ --radio-disc-size: var(--gds-space-m);
44
+ --radio-radius: var(--gds-space-max);
45
+ --radio-border-color: var(--gds-color-l3-border-secondary);
46
+ --radio-border-color-selected: var(--gds-color-l3-border-primary);
47
+ --radio-border-width: var(--gds-space-4xs);
48
+ --radio-border-width-selected: var(--gds-space-2xs);
49
+ --radio-outline-width: var(--gds-space-3xs);
50
+ --radio-disc-background-color: var(--gds-color-l3-content-primary);
51
+
52
+ /* Font Sizes */
53
+ --_font-size-label: var(--gds-text-size-detail-m);
54
+ --_line-height-label: var(--gds-text-line-height-detail-m);
55
+ --_font-size-supporting-text: var(--gds-text-size-detail-s);
56
+ --_line-height-supporting-text: var(--gds-text-line-height-detail-s);
57
+ font-size: var(--_font-size-label);
58
+ line-height: var(--_line-height-label);
59
+
60
+ /* Color */
61
+ --_radio-label-color: var(--gds-color-l3-content-tertiary);
62
+ --_radio-outline-color: var(--gds-color-l3-content-tertiary);
63
+ }
64
+
65
+ :host(:invalid) {
66
+ --radio-border-color: var(--gds-color-l3-border-negative);
67
+ --radio-disc-background-color: var(
68
+ --gds-color-l3-background-negative-secondary
69
+ );
70
+ --radio-border-color-selected: var(--gds-color-l3-border-negative);
71
+ --radio-bg-mix: color-mix(
72
+ in srgb,
73
+ var(--gds-color-l3-background-negative-secondary),
74
+ var(--gds-color-l3-states-negative-hover)
75
+ );
76
+ --radio-bg-mix-active: color-mix(
77
+ in srgb,
78
+ var(--gds-color-l3-background-negative-secondary),
79
+ var(--gds-color-l3-states-negative-pressed)
80
+ );
81
+ --_radio-label-color: var(--gds-color-l3-content-negative);
82
+ --_radio-outline-color: var(--gds-color-l3-content-negative);
83
+ }
84
+
85
+ :host([size='small']) {
86
+ --_font-size-label: var(--gds-text-size-detail-s);
87
+ --_line-height-label: var(--gds-text-line-height-detail-s);
88
+ --_font-size-supporting-text: var(--gds-text-size-detail-s);
89
+ --_line-height-supporting-text: var(--gds-text-line-height-detail-s);
90
+ }
91
+
92
+ .radio-group {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: var(--gds-space-m);
96
+ }
97
+
98
+ .content {
99
+ display: flex;
100
+ position: relative;
101
+ max-width: max-content;
102
+ color: var(--_radio-label-color);
103
+ }
104
+
105
+ .direction-row .content {
106
+ flex-direction: row;
107
+ flex-wrap: wrap;
108
+ gap: var(--gds-space-l);
109
+ }
110
+
111
+ .direction-column .content {
112
+ flex-direction: column;
113
+ gap: var(--gds-space-xs);
114
+ }
115
+ `;
116
+
117
+ // libs/core/src/components/radio/radio-group/radio-group.ts
118
+ var _initializeFocusable, initializeFocusable_fn, _handleFocus, handleFocus_fn, _dispatchChangeEvents, dispatchChangeEvents_fn, _handleRadioChange, handleRadioChange_fn, _handleKeyDown, handleKeyDown_fn, _focusAndSelectRadio, focusAndSelectRadio_fn, _renderRadioGroupContents, renderRadioGroupContents_fn, _renderFieldControlHeader, renderFieldControlHeader_fn, _renderRadios, renderRadios_fn, _renderFieldControlFooter, renderFieldControlFooter_fn;
119
+ var RadioGroup = class extends GdsFormControlElement {
120
+ constructor() {
121
+ super(...arguments);
122
+ __privateAdd(this, _initializeFocusable);
123
+ __privateAdd(this, _handleFocus);
124
+ __privateAdd(this, _dispatchChangeEvents);
125
+ __privateAdd(this, _handleRadioChange);
126
+ __privateAdd(this, _handleKeyDown);
127
+ __privateAdd(this, _focusAndSelectRadio);
128
+ __privateAdd(this, _renderRadioGroupContents);
129
+ __privateAdd(this, _renderFieldControlHeader);
130
+ __privateAdd(this, _renderRadios);
131
+ __privateAdd(this, _renderFieldControlFooter);
132
+ this.size = "large";
133
+ this.direction = "column";
134
+ this.supportingText = "";
135
+ this.showExtendedSupportingText = false;
136
+ this._isConnected = false;
137
+ }
138
+ /**
139
+ * Returns an array of `<gds-radio>` elements in the radio group.
140
+ *
141
+ * @readonly
142
+ */
143
+ get radios() {
144
+ return Array.from(
145
+ this.querySelectorAll("[gds-element=gds-radio]")
146
+ );
147
+ }
148
+ connectedCallback() {
149
+ super.connectedCallback();
150
+ this._isConnected = true;
151
+ this.updateComplete.then(() => {
152
+ this._syncRadioStates();
153
+ __privateMethod(this, _initializeFocusable, initializeFocusable_fn).call(this);
154
+ });
155
+ this.addEventListener("invalid", this._syncRadioStates);
156
+ }
157
+ disconnectedCallback() {
158
+ super.disconnectedCallback();
159
+ this._isConnected = false;
160
+ this.removeEventListener("invalid", this._syncRadioStates);
161
+ }
162
+ _getValidityAnchor() {
163
+ return this._contentElement;
164
+ }
165
+ _handleValueChange() {
166
+ if (!this._isConnected)
167
+ return;
168
+ this._syncRadioStates();
169
+ this.updateComplete.then(() => {
170
+ __privateMethod(this, _initializeFocusable, initializeFocusable_fn).call(this);
171
+ });
172
+ }
173
+ _syncRadioStates() {
174
+ if (!this._isConnected)
175
+ return;
176
+ this.radios.forEach((radio) => {
177
+ radio.checked = radio.value === this.value;
178
+ radio.size = this.size;
179
+ radio.invalid = this.invalid;
180
+ });
181
+ }
182
+ render() {
183
+ const classes = {
184
+ "radio-group": true,
185
+ "direction-row": this.direction === "row",
186
+ "direction-column": this.direction === "column"
187
+ };
188
+ return html`<div
189
+ role="radiogroup"
190
+ id="radiogroup"
191
+ class=${classMap(classes)}
192
+ aria-labelledby="group-label"
193
+ aria-describedby="supporting-text extended-supporting-text footer"
194
+ >
195
+ ${__privateMethod(this, _renderRadioGroupContents, renderRadioGroupContents_fn).call(this)}
196
+ </div>`;
197
+ }
198
+ };
199
+ _initializeFocusable = new WeakSet();
200
+ initializeFocusable_fn = function() {
201
+ if (!this._contentElement || !this._isConnected)
202
+ return;
203
+ const selectedRadio = this.radios.find((radio) => radio.checked);
204
+ if (selectedRadio) {
205
+ selectedRadio.setAttribute("tabindex", "0");
206
+ this._contentElement.setAttribute("tabindex", "-1");
207
+ } else {
208
+ this._contentElement.setAttribute("tabindex", "0");
209
+ }
210
+ this.radios.filter((radio) => !radio.checked).forEach((radio) => radio.setAttribute("tabindex", "-1"));
211
+ };
212
+ _handleFocus = new WeakSet();
213
+ handleFocus_fn = function() {
214
+ if (!this._contentElement || !this._isConnected)
215
+ return;
216
+ const selectedRadio = this.radios.find((radio) => radio.checked);
217
+ const radioToFocus = selectedRadio || this.radios[0];
218
+ if (radioToFocus) {
219
+ radioToFocus.focus();
220
+ if (!selectedRadio) {
221
+ this.radios.forEach((radio) => radio.setAttribute("tabindex", "-1"));
222
+ radioToFocus.setAttribute("tabindex", "0");
223
+ this._contentElement.setAttribute("tabindex", "-1");
224
+ }
225
+ }
226
+ };
227
+ _dispatchChangeEvents = new WeakSet();
228
+ dispatchChangeEvents_fn = function() {
229
+ this.dispatchEvent(
230
+ new CustomEvent("change", {
231
+ detail: { value: this.value },
232
+ bubbles: true
233
+ })
234
+ );
235
+ this.dispatchEvent(new Event("input", { bubbles: true }));
236
+ };
237
+ _handleRadioChange = new WeakSet();
238
+ handleRadioChange_fn = function(e) {
239
+ const radio = e.target;
240
+ if (radio.hasAttribute("value")) {
241
+ this.value = radio.value;
242
+ this._syncRadioStates();
243
+ __privateMethod(this, _dispatchChangeEvents, dispatchChangeEvents_fn).call(this);
244
+ }
245
+ };
246
+ _handleKeyDown = new WeakSet();
247
+ handleKeyDown_fn = function(e) {
248
+ if (!this._isConnected)
249
+ return;
250
+ const radios = this.radios.filter(
251
+ (radio) => !radio.hasAttribute("disabled")
252
+ );
253
+ if (radios.length === 0)
254
+ return;
255
+ let currentIndex = radios.findIndex(
256
+ (radio) => document.activeElement === radio
257
+ );
258
+ if (currentIndex === -1) {
259
+ currentIndex = radios.findIndex((radio) => radio.checked);
260
+ if (currentIndex === -1)
261
+ currentIndex = 0;
262
+ }
263
+ switch (e.key) {
264
+ case "ArrowDown":
265
+ case "ArrowRight": {
266
+ e.preventDefault();
267
+ const nextIndex = (currentIndex + 1) % radios.length;
268
+ __privateMethod(this, _focusAndSelectRadio, focusAndSelectRadio_fn).call(this, radios[nextIndex]);
269
+ break;
270
+ }
271
+ case "ArrowUp":
272
+ case "ArrowLeft": {
273
+ e.preventDefault();
274
+ const nextIndex = (currentIndex - 1 + radios.length) % radios.length;
275
+ __privateMethod(this, _focusAndSelectRadio, focusAndSelectRadio_fn).call(this, radios[nextIndex]);
276
+ break;
277
+ }
278
+ default:
279
+ return;
280
+ }
281
+ };
282
+ _focusAndSelectRadio = new WeakSet();
283
+ focusAndSelectRadio_fn = function(radio) {
284
+ if (!this._contentElement || !this._isConnected)
285
+ return;
286
+ this.radios.forEach((r) => r.setAttribute("tabindex", "-1"));
287
+ radio.setAttribute("tabindex", "0");
288
+ this._contentElement.setAttribute("tabindex", "-1");
289
+ radio.checked = true;
290
+ radio.focus();
291
+ this.value = radio.value;
292
+ this._syncRadioStates();
293
+ __privateMethod(this, _dispatchChangeEvents, dispatchChangeEvents_fn).call(this);
294
+ };
295
+ _renderRadioGroupContents = new WeakSet();
296
+ renderRadioGroupContents_fn = function() {
297
+ const elements = [
298
+ __privateMethod(this, _renderFieldControlHeader, renderFieldControlHeader_fn).call(this),
299
+ __privateMethod(this, _renderRadios, renderRadios_fn).call(this),
300
+ __privateMethod(this, _renderFieldControlFooter, renderFieldControlFooter_fn).call(this)
301
+ ];
302
+ return elements.map((element) => html`${element}`);
303
+ };
304
+ _renderFieldControlHeader = new WeakSet();
305
+ renderFieldControlHeader_fn = function() {
306
+ if (this.label) {
307
+ return html` <gds-form-control-header class="size-${this.size}">
308
+ <label id="group-label" slot="label">${this.label}</label>
309
+ <span slot="supporting-text" id="supporting-text">
310
+ ${this.supportingText}
311
+ </span>
312
+ <slot
313
+ id="extended-supporting-text"
314
+ name="extended-supporting-text"
315
+ slot="extended-supporting-text"
316
+ ></slot>
317
+ </gds-form-control-header>`;
318
+ }
319
+ };
320
+ _renderRadios = new WeakSet();
321
+ renderRadios_fn = function() {
322
+ return html` <div
323
+ class="content"
324
+ @keydown=${__privateMethod(this, _handleKeyDown, handleKeyDown_fn)}
325
+ @focus=${__privateMethod(this, _handleFocus, handleFocus_fn)}
326
+ >
327
+ <slot @gds-radio-change=${__privateMethod(this, _handleRadioChange, handleRadioChange_fn)}></slot>
328
+ </div>`;
329
+ };
330
+ _renderFieldControlFooter = new WeakSet();
331
+ renderFieldControlFooter_fn = function() {
332
+ return html` <gds-form-control-footer
333
+ id="footer"
334
+ class="size-${this.size}"
335
+ .validationMessage=${this.invalid && (this.errorMessage || this.validationMessage)}
336
+ >
337
+ </gds-form-control-footer>`;
338
+ };
339
+ RadioGroup.styles = [styles];
340
+ __decorateClass([
341
+ property()
342
+ ], RadioGroup.prototype, "size", 2);
343
+ __decorateClass([
344
+ property()
345
+ ], RadioGroup.prototype, "direction", 2);
346
+ __decorateClass([
347
+ property({ attribute: "supporting-text" })
348
+ ], RadioGroup.prototype, "supportingText", 2);
349
+ __decorateClass([
350
+ property({
351
+ attribute: "show-extended-supporting-text",
352
+ type: Boolean,
353
+ reflect: true
354
+ })
355
+ ], RadioGroup.prototype, "showExtendedSupportingText", 2);
356
+ __decorateClass([
357
+ query(".content")
358
+ ], RadioGroup.prototype, "_contentElement", 2);
359
+ __decorateClass([
360
+ watch("value")
361
+ ], RadioGroup.prototype, "_handleValueChange", 1);
362
+ __decorateClass([
363
+ watch("invalid")
364
+ ], RadioGroup.prototype, "_syncRadioStates", 1);
365
+ RadioGroup = __decorateClass([
366
+ localized()
367
+ ], RadioGroup);
368
+ var GdsRadioGroup = class extends withLayoutChildProps(
369
+ withMarginProps(withSizeXProps(RadioGroup))
370
+ ) {
371
+ };
372
+ GdsRadioGroup = __decorateClass([
373
+ gdsCustomElement("gds-radio-group")
374
+ ], GdsRadioGroup);
375
+
376
+ export {
377
+ GdsRadioGroup
378
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.NGISBDVX.js";
3
+ } from "./chunk.OGXYFLYC.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.QK3R23GV.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.R7PMRDER.js";
3
+ } from "./chunk.FIRXUEIK.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.NGISBDVX.js";
6
+ } from "./chunk.OGXYFLYC.js";
7
7
  import {
8
8
  gdsCustomElement,
9
9
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.Y2NHXTDW.js";
3
+ } from "./chunk.NHCDT25A.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
File without changes
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk.TWXTKG4B.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.Y2NHXTDW.js";
7
+ } from "./chunk.NHCDT25A.js";
8
8
  import {
9
9
  tokens
10
- } from "./chunk.NGISBDVX.js";
10
+ } from "./chunk.OGXYFLYC.js";
11
11
  import {
12
12
  GdsElement
13
13
  } from "./chunk.TMEWQZER.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsFlex
3
- } from "./chunk.XB7K3C5P.js";
3
+ } from "./chunk.JIL3VXPT.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.NGISBDVX.js";
9
+ } from "./chunk.OGXYFLYC.js";
10
10
  import {
11
11
  gdsCustomElement
12
12
  } from "./chunk.QK3R23GV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.NGISBDVX.js";
3
+ } from "./chunk.OGXYFLYC.js";
4
4
  import {
5
5
  VER_SUFFIX
6
6
  } from "./chunk.QK3R23GV.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.TWXTKG4B.js";
5
5
  import {
6
6
  tokens
7
- } from "./chunk.NGISBDVX.js";
7
+ } from "./chunk.OGXYFLYC.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk.ZRKILGXZ.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.Y2NHXTDW.js";
7
+ } from "./chunk.NHCDT25A.js";
8
8
  import {
9
9
  watch
10
10
  } from "./chunk.TYGMNHNO.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.NGISBDVX.js";
13
+ } from "./chunk.OGXYFLYC.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  forwardAttributes
3
- } from "./chunk.W7XFAJ4E.js";
3
+ } from "./chunk.I2YO744I.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.NGISBDVX.js";
14
+ } from "./chunk.OGXYFLYC.js";
15
15
  import {
16
16
  gdsCustomElement,
17
17
  html
@@ -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 Wed, 12 Mar 2025 20:07:25 GMT
8
+ * Generated on Thu, 13 Mar 2025 14:30:10 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 Wed, 12 Mar 2025 20:07:25 GMT
122
+ * Generated on Thu, 13 Mar 2025 14:30:10 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 Wed, 12 Mar 2025 20:07:25 GMT
239
+ * Generated on Thu, 13 Mar 2025 14:30:10 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 Wed, 12 Mar 2025 20:07:25 GMT
258
+ * Generated on Thu, 13 Mar 2025 14:30:10 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 Wed, 12 Mar 2025 20:07:25 GMT
273
+ * Generated on Thu, 13 Mar 2025 14:30:10 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 Wed, 12 Mar 2025 20:07:25 GMT
300
+ * Generated on Thu, 13 Mar 2025 14:30:10 GMT
301
301
  */
302
302
 
303
303
  :host {
File without changes
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.R7PMRDER.js";
3
+ } from "./chunk.FIRXUEIK.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.NGISBDVX.js";
9
+ } from "./chunk.OGXYFLYC.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -6,7 +6,7 @@ import {
6
6
  // libs/core/src/utils/helpers/custom-element-scoping.ts
7
7
  import { html as litHtml } from "lit";
8
8
  import { customElement } from "lit/decorators.js";
9
- var VER_SUFFIX = "-f5b7af";
9
+ var VER_SUFFIX = "-1e0e02";
10
10
  var ScopedElementRegistry = class {
11
11
  static get instance() {
12
12
  var _a;
@@ -12,13 +12,13 @@ import {
12
12
  } from "./chunk.TWXTKG4B.js";
13
13
  import {
14
14
  TransitionalStyles
15
- } from "./chunk.Y2NHXTDW.js";
15
+ } from "./chunk.NHCDT25A.js";
16
16
  import {
17
17
  watch
18
18
  } from "./chunk.TYGMNHNO.js";
19
19
  import {
20
20
  tokens
21
- } from "./chunk.NGISBDVX.js";
21
+ } from "./chunk.OGXYFLYC.js";
22
22
  import {
23
23
  gdsCustomElement,
24
24
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.Y2NHXTDW.js";
3
+ } from "./chunk.NHCDT25A.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk.2JGBCOIQ.js";
4
4
  import {
5
5
  GdsDiv
6
- } from "./chunk.R7PMRDER.js";
6
+ } from "./chunk.FIRXUEIK.js";
7
7
  import {
8
8
  styleExpressionProperty
9
9
  } from "./chunk.NUUST5OZ.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.NGISBDVX.js";
12
+ } from "./chunk.OGXYFLYC.js";
13
13
  import {
14
14
  gdsCustomElement
15
15
  } from "./chunk.QK3R23GV.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk.TYGMNHNO.js";
9
9
  import {
10
10
  tokens
11
- } from "./chunk.NGISBDVX.js";
11
+ } from "./chunk.OGXYFLYC.js";
12
12
  import {
13
13
  GdsElement
14
14
  } from "./chunk.TMEWQZER.js";