@sebgroup/green-core 1.68.4 → 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.EYXSM3IO.js → chunk.3GQXXIAA.js} +2 -2
  2. package/chunks/{chunk.ZA7FUZWW.js → chunk.4D6PS3YB.js} +1 -1
  3. package/chunks/{chunk.EFTM4D5F.js → chunk.4GEYYFIK.js} +11 -5
  4. package/chunks/{chunk.EDYRAGUL.js → chunk.4KL2SL2I.js} +1 -1
  5. package/chunks/{chunk.6XYPJFZ5.js → chunk.5PXMD6FN.js} +2 -2
  6. package/chunks/chunk.6PGW4W5E.js +240 -0
  7. package/chunks/{chunk.WPD7436F.js → chunk.A7DPHMYA.js} +1 -1
  8. package/chunks/{chunk.TUSHH76M.js → chunk.BA4XMBLV.js} +1 -1
  9. package/chunks/{chunk.NAFFMLGK.js → chunk.BR67WBUE.js} +1 -1
  10. package/chunks/{chunk.C6XGJNM4.js → chunk.CHZ4Z2YY.js} +1 -1
  11. package/chunks/{chunk.ZWWU5COM.js → chunk.D73543IP.js} +1 -1
  12. package/chunks/{chunk.LWTVR43C.js → chunk.EPGFD7VH.js} +2 -2
  13. package/chunks/{chunk.LCNJORVJ.js → chunk.ERTFEGJX.js} +1 -1
  14. package/chunks/{chunk.TMBUYE3G.js → chunk.FB74W3AW.js} +2 -8
  15. package/chunks/{chunk.7CRT7WQF.js → chunk.FIRXUEIK.js} +1 -1
  16. package/chunks/{chunk.45A3E7GA.js → chunk.FV4KNGDE.js} +1 -1
  17. package/chunks/{chunk.IY2VDC7T.js → chunk.GJ6CZ6UN.js} +2 -2
  18. package/chunks/{chunk.TQ3TKXVC.js → chunk.GOPGCNDC.js} +1 -1
  19. package/chunks/{chunk.XUOZ3TKN.js → chunk.GRVFPKOG.js} +1 -1
  20. package/chunks/{chunk.NOL7ELKS.js → chunk.GVAZGVX2.js} +1 -1
  21. package/chunks/{chunk.7PVEQR6Y.js → chunk.GZQMA4XI.js} +1 -1
  22. package/chunks/{chunk.J7EM7GJ6.js → chunk.HBGEHVVS.js} +1 -1
  23. package/chunks/{chunk.5ZIK4RYR.js → chunk.I2YO744I.js} +2 -2
  24. package/chunks/{chunk.SXI3P5U5.js → chunk.IT5VVUWI.js} +1 -1
  25. package/chunks/chunk.ITT4IIHM.js +378 -0
  26. package/chunks/{chunk.Y65XQQBB.js → chunk.JFJHA6P6.js} +1 -1
  27. package/chunks/{chunk.ZRPKWV7G.js → chunk.JIL3VXPT.js} +2 -2
  28. package/chunks/{chunk.WGJELYN3.js → chunk.JLTWJMDP.js} +1 -1
  29. package/chunks/chunk.LTVUUK5B.js +0 -0
  30. package/chunks/{chunk.2M44U2K3.js → chunk.LUSRFI2X.js} +2 -2
  31. package/chunks/{chunk.4DVL6SCE.js → chunk.N6GUDNJV.js} +2 -2
  32. package/chunks/{chunk.4NEQU7ZK.js → chunk.NHCDT25A.js} +1 -1
  33. package/chunks/{chunk.JKFDIQUQ.js → chunk.NQQAFN6S.js} +1 -1
  34. package/chunks/{chunk.WBSBQTTV.js → chunk.NSJATXHH.js} +2 -2
  35. package/chunks/{chunk.MSVSXABF.js → chunk.OGHRZS7Z.js} +2 -2
  36. package/chunks/{chunk.MTHVWA5N.js → chunk.OGXYFLYC.js} +6 -6
  37. package/chunks/chunk.PBKM6LEO.js +0 -0
  38. package/chunks/{chunk.FYHXXDHZ.js → chunk.Q3QF6FIQ.js} +2 -2
  39. package/chunks/chunk.QK3R23GV.js +1 -1
  40. package/chunks/{chunk.DMFM4FHD.js → chunk.ST5QI4XQ.js} +93 -91
  41. package/chunks/{chunk.GETVG6RJ.js → chunk.UAED2ICJ.js} +1 -1
  42. package/chunks/{chunk.2OHW47UJ.js → chunk.UR2O7OZR.js} +2 -2
  43. package/chunks/{chunk.4DRWAIPQ.js → chunk.VDIZOFXQ.js} +1 -1
  44. package/chunks/chunk.VL6WP6CO.js +113 -0
  45. package/chunks/{chunk.ZP33HSUL.js → chunk.WDV4K3NB.js} +2 -2
  46. package/chunks/{chunk.IW324TUB.js → chunk.WSXUN75Q.js} +2 -2
  47. package/chunks/{chunk.IF5LOTNI.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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.7CRT7WQF.js";
3
+ } from "./chunk.FIRXUEIK.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.MTHVWA5N.js";
12
+ } from "./chunk.OGXYFLYC.js";
13
13
  import {
14
14
  gdsCustomElement,
15
15
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.4NEQU7ZK.js";
3
+ } from "./chunk.NHCDT25A.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TYGMNHNO.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.WM7HBMMV.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.4NEQU7ZK.js";
6
+ } from "./chunk.NHCDT25A.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.TYGMNHNO.js";
@@ -30,8 +30,8 @@ import { classMap } from "lit/directives/class-map.js";
30
30
  import {
31
31
  autoUpdate,
32
32
  computePosition,
33
- flip,
34
- offset
33
+ offset,
34
+ shift
35
35
  } from "@floating-ui/dom";
36
36
 
37
37
  // libs/core/src/components/popover/popover.styles.ts
@@ -145,9 +145,15 @@ var GdsPopover = class extends GdsElement {
145
145
  this.calcMinWidth = (referenceEl) => `${referenceEl.offsetWidth}px`;
146
146
  this.calcMaxWidth = (_referenceEl) => `auto`;
147
147
  this.calcMinHeight = (_referenceEl) => `auto`;
148
- this.calcMaxHeight = (_referenceEl) => `500px`;
148
+ this.calcMaxHeight = (_referenceEl) => `${window.innerHeight - 16}px`;
149
149
  this.nonmodal = false;
150
- this.floatingUIMiddleware = [offset(8), flip()];
150
+ this.floatingUIMiddleware = [
151
+ offset(8),
152
+ shift({
153
+ crossAxis: true,
154
+ padding: 8
155
+ })
156
+ ];
151
157
  this._trigger = void 0;
152
158
  this._anchor = void 0;
153
159
  this._isVirtKbVisible = false;
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk.TWXTKG4B.js";
6
6
  import {
7
7
  tokens
8
- } from "./chunk.MTHVWA5N.js";
8
+ } from "./chunk.OGXYFLYC.js";
9
9
  import {
10
10
  GdsElement
11
11
  } from "./chunk.TMEWQZER.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.4NEQU7ZK.js";
3
+ } from "./chunk.NHCDT25A.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TYGMNHNO.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.MTHVWA5N.js";
9
+ } from "./chunk.OGXYFLYC.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -0,0 +1,240 @@
1
+ import {
2
+ watch
3
+ } from "./chunk.TYGMNHNO.js";
4
+ import {
5
+ tokens
6
+ } from "./chunk.OGXYFLYC.js";
7
+ import {
8
+ GdsElement
9
+ } from "./chunk.TMEWQZER.js";
10
+ import {
11
+ gdsCustomElement,
12
+ html
13
+ } from "./chunk.QK3R23GV.js";
14
+ import {
15
+ __decorateClass,
16
+ __privateAdd,
17
+ __privateGet
18
+ } from "./chunk.SEHSDSX2.js";
19
+
20
+ // libs/core/src/components/radio/radio.ts
21
+ import { property, state } from "lit/decorators.js";
22
+
23
+ // libs/core/src/components/radio/radio.styles.ts
24
+ import { css } from "lit";
25
+ var styles = css`
26
+ @layer base, a11y, reset, transitional-styles;
27
+
28
+ @layer a11y {
29
+ @media (prefers-reduced-motion: reduce) {
30
+ .radio {
31
+ transition: none;
32
+ }
33
+ }
34
+ }
35
+
36
+ @layer base {
37
+ :host([disabled]) {
38
+ --_radio-label-color: var(--gds-color-l3-content-disabled);
39
+ }
40
+
41
+ .radio {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ position: relative;
46
+ width: var(--radio-disc-size);
47
+ height: var(--radio-disc-size);
48
+ margin-block-start: calc(var(--radio-border-width) * 2);
49
+ cursor: pointer;
50
+ }
51
+
52
+ .state {
53
+ display: flex;
54
+ box-sizing: border-box;
55
+ backface-visibility: hidden;
56
+ transition-property: background-color, scale, outline;
57
+ transition-duration: 248ms;
58
+ outline-style: solid;
59
+ outline-offset: calc(-1 * var(--radio-outline-width));
60
+ outline-width: var(--radio-outline-width);
61
+ outline-color: transparent;
62
+ border-radius: var(--radio-radius);
63
+ min-width: var(--radio-size);
64
+ min-height: var(--radio-size);
65
+ position: absolute;
66
+ left: calc(* 1 - calc((var(--radio-size) - var(--radio-disc-size)) / 2));
67
+ top: calc(* 1 - calc((var(--radio-size) - var(--radio-disc-size)) / 2));
68
+ scale: 0.8;
69
+ }
70
+
71
+ @media (hover: hover) {
72
+ .radio:hover,
73
+ :host(:hover) .radio .state {
74
+ background-color: var(--radio-bg-mix);
75
+ scale: 1;
76
+ }
77
+ }
78
+
79
+ .radio:active .state,
80
+ :host(:active) .radio .state {
81
+ background-color: var(--radio-bg-mix-active);
82
+ }
83
+
84
+ :host(:active:not(:focus-visible)) .radio:active .state,
85
+ :host(:active:not(:focus-visible)) .radio .state {
86
+ scale: 0.96;
87
+ }
88
+
89
+ :host(:focus) {
90
+ outline: none;
91
+ }
92
+
93
+ :host(:focus) .radio .state {
94
+ outline-color: var(--_radio-outline-color);
95
+ scale: 1;
96
+ }
97
+
98
+ :host(:not(:focus-visible)) .radio .state {
99
+ outline-color: transparent;
100
+ }
101
+
102
+ .disc {
103
+ width: var(--radio-disc-size);
104
+ height: var(--radio-disc-size);
105
+ border-radius: var(--radio-radius);
106
+ box-shadow: inset 0 0 0 var(--radio-border-width)
107
+ var(--radio-border-color);
108
+ background-color: var(--radio-disc-background-color);
109
+ box-sizing: border-box;
110
+ transition-property: box-shadow;
111
+ transition-duration: 248ms;
112
+ will-change: box-shadow;
113
+ position: absolute;
114
+ inset: 0;
115
+ }
116
+
117
+ :host([checked]) .disc,
118
+ :host(:active) .disc {
119
+ box-shadow: inset 0 0 0 var(--radio-border-width-selected)
120
+ var(--radio-border-color-selected);
121
+ }
122
+
123
+ :host([disabled]) {
124
+ pointer-events: none;
125
+ }
126
+
127
+ :host([disabled]) .radio .disc {
128
+ box-shadow: none;
129
+ background-color: var(--gds-color-l3-content-disabled);
130
+ }
131
+ }
132
+ `;
133
+
134
+ // libs/core/src/components/radio/radio.ts
135
+ var _handleClick, _handleKeyDown;
136
+ var GdsRadio = class extends GdsElement {
137
+ constructor() {
138
+ super();
139
+ this.label = "";
140
+ this.supportingText = "";
141
+ this.value = "";
142
+ this.checked = false;
143
+ this.disabled = false;
144
+ this.invalid = false;
145
+ this._isFocused = false;
146
+ __privateAdd(this, _handleClick, (e) => {
147
+ if (this.disabled || !this.value || !this.label)
148
+ return;
149
+ e.preventDefault();
150
+ this.checked = true;
151
+ this.focus();
152
+ this.dispatchEvent(new Event("gds-radio-change", { bubbles: true }));
153
+ });
154
+ __privateAdd(this, _handleKeyDown, (e) => {
155
+ if (this.disabled)
156
+ return;
157
+ if (e.key === "Enter" || e.key === " ") {
158
+ e.preventDefault();
159
+ this.checked = true;
160
+ this.dispatchEvent(new Event("gds-radio-change", { bubbles: true }));
161
+ }
162
+ });
163
+ this.addEventListener("keydown", __privateGet(this, _handleKeyDown));
164
+ this.addEventListener("focus", () => this._isFocused = true);
165
+ this.addEventListener("blur", () => this._isFocused = false);
166
+ }
167
+ connectedCallback() {
168
+ super.connectedCallback();
169
+ this.setAttribute("role", "radio");
170
+ this._updateAriaState();
171
+ this.addEventListener("click", __privateGet(this, _handleClick));
172
+ }
173
+ _updateAriaState() {
174
+ this.setAttribute("aria-checked", this.checked.toString());
175
+ this.setAttribute("aria-disabled", this.disabled.toString());
176
+ this.setAttribute("tabindex", this.disabled ? "-1" : "0");
177
+ this.toggleAttribute("aria-invalid", this.invalid);
178
+ }
179
+ updated(changedProperties) {
180
+ super.updated(changedProperties);
181
+ if (changedProperties.has("checked") || changedProperties.has("disabled") || changedProperties.has("invalid")) {
182
+ this._updateAriaState();
183
+ }
184
+ }
185
+ _handleDisabledChange() {
186
+ if (this.disabled) {
187
+ this.setAttribute("inert", "");
188
+ } else {
189
+ this.removeAttribute("inert");
190
+ }
191
+ }
192
+ render() {
193
+ return html`
194
+ <gds-selection-field-label
195
+ supporting-text=${this.supportingText}
196
+ label=${this.label}
197
+ type="radio"
198
+ >
199
+ <div class="radio">
200
+ <div class="state"></div>
201
+ <div class="disc"></div>
202
+ </div>
203
+ </gds-selection-field-label>
204
+ `;
205
+ }
206
+ };
207
+ _handleClick = new WeakMap();
208
+ _handleKeyDown = new WeakMap();
209
+ GdsRadio.styles = [tokens, styles];
210
+ __decorateClass([
211
+ property()
212
+ ], GdsRadio.prototype, "label", 2);
213
+ __decorateClass([
214
+ property({ attribute: "supporting-text" })
215
+ ], GdsRadio.prototype, "supportingText", 2);
216
+ __decorateClass([
217
+ property()
218
+ ], GdsRadio.prototype, "value", 2);
219
+ __decorateClass([
220
+ property({ type: Boolean, reflect: true })
221
+ ], GdsRadio.prototype, "checked", 2);
222
+ __decorateClass([
223
+ property({ type: Boolean, reflect: true })
224
+ ], GdsRadio.prototype, "disabled", 2);
225
+ __decorateClass([
226
+ property({ type: Boolean })
227
+ ], GdsRadio.prototype, "invalid", 2);
228
+ __decorateClass([
229
+ state()
230
+ ], GdsRadio.prototype, "_isFocused", 2);
231
+ __decorateClass([
232
+ watch("disabled")
233
+ ], GdsRadio.prototype, "_handleDisabledChange", 1);
234
+ GdsRadio = __decorateClass([
235
+ gdsCustomElement("gds-radio")
236
+ ], GdsRadio);
237
+
238
+ export {
239
+ GdsRadio
240
+ };
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk.TYGMNHNO.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.MTHVWA5N.js";
17
+ } from "./chunk.OGXYFLYC.js";
18
18
  import {
19
19
  gdsCustomElement,
20
20
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.7CRT7WQF.js";
3
+ } from "./chunk.FIRXUEIK.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.QK3R23GV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.4NEQU7ZK.js";
3
+ } from "./chunk.NHCDT25A.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk.NUUST5OZ.js";
9
9
  import {
10
10
  tokens
11
- } from "./chunk.MTHVWA5N.js";
11
+ } from "./chunk.OGXYFLYC.js";
12
12
  import {
13
13
  GdsElement
14
14
  } from "./chunk.TMEWQZER.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.NUUST5OZ.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.MTHVWA5N.js";
6
+ } from "./chunk.OGXYFLYC.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.TMEWQZER.js";
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk.TWXTKG4B.js";
9
9
  import {
10
10
  TransitionalStyles
11
- } from "./chunk.4NEQU7ZK.js";
11
+ } from "./chunk.NHCDT25A.js";
12
12
  import {
13
13
  watch
14
14
  } from "./chunk.TYGMNHNO.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.MTHVWA5N.js";
17
+ } from "./chunk.OGXYFLYC.js";
18
18
  import {
19
19
  GdsElement
20
20
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsButton
3
- } from "./chunk.5ZIK4RYR.js";
3
+ } from "./chunk.I2YO744I.js";
4
4
  import {
5
5
  withPositioningProps
6
6
  } from "./chunk.TWXTKG4B.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.TYGMNHNO.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.MTHVWA5N.js";
12
+ } from "./chunk.OGXYFLYC.js";
13
13
  import {
14
14
  gdsCustomElement,
15
15
  html
@@ -210,13 +210,7 @@ var GdsDropdown = class extends GdsFormControlElement {
210
210
  `;
211
211
  });
212
212
  __privateAdd(this, _calcMaxHeight, (trigger) => {
213
- const triggerRect = trigger.getBoundingClientRect();
214
- const windowHeight = window.innerHeight;
215
- const bottomSpace = windowHeight - triggerRect.bottom;
216
- const topSpace = triggerRect.top;
217
- let height = Math.min(topSpace, this.maxHeight);
218
- if (bottomSpace > topSpace)
219
- height = Math.min(bottomSpace, this.maxHeight);
213
+ const height = Math.min(window.innerHeight, this.maxHeight);
220
214
  return `${height - 16}px`;
221
215
  });
222
216
  __privateAdd(this, _dispatchUISateEvent, (toState, reason) => this.dispatchEvent(
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.NUUST5OZ.js";
17
17
  import {
18
18
  tokens
19
- } from "./chunk.MTHVWA5N.js";
19
+ } from "./chunk.OGXYFLYC.js";
20
20
  import {
21
21
  GdsElement
22
22
  } from "./chunk.TMEWQZER.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.E62NOHQC.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.4NEQU7ZK.js";
7
+ } from "./chunk.NHCDT25A.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk.TWXTKG4B.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.4NEQU7ZK.js";
6
+ } from "./chunk.NHCDT25A.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.MTHVWA5N.js";
9
+ } from "./chunk.OGXYFLYC.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.ZRKILGXZ.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.4NEQU7ZK.js";
7
+ } from "./chunk.NHCDT25A.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.NUUST5OZ.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.MTHVWA5N.js";
6
+ } from "./chunk.OGXYFLYC.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.TMEWQZER.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.TWXTKG4B.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.MTHVWA5N.js";
13
+ } from "./chunk.OGXYFLYC.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.TMEWQZER.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.NUUST5OZ.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.MTHVWA5N.js";
13
+ } from "./chunk.OGXYFLYC.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.TMEWQZER.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.MTHVWA5N.js";
9
+ } from "./chunk.OGXYFLYC.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk.TWXTKG4B.js";
12
12
  import {
13
13
  TransitionalStyles
14
- } from "./chunk.4NEQU7ZK.js";
14
+ } from "./chunk.NHCDT25A.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.MTHVWA5N.js";
17
+ } from "./chunk.OGXYFLYC.js";
18
18
  import {
19
19
  gdsCustomElement,
20
20
  html
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.E62NOHQC.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.4NEQU7ZK.js";
7
+ } from "./chunk.NHCDT25A.js";
8
8
  import {
9
9
  watch
10
10
  } from "./chunk.TYGMNHNO.js";