@sebgroup/green-core 1.69.0 → 1.69.2

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 (158) hide show
  1. package/chunks/{chunk.4KL2SL2I.js → chunk.2FBVGWTH.js} +1 -1
  2. package/chunks/{chunk.JLTWJMDP.js → chunk.4G5BI5VA.js} +1 -1
  3. package/chunks/{chunk.HBGEHVVS.js → chunk.5ATSIMSY.js} +1 -1
  4. package/chunks/{chunk.NSJATXHH.js → chunk.6BUQXS7O.js} +16 -20
  5. package/chunks/{chunk.I2YO744I.js → chunk.6PGLJBYC.js} +2 -2
  6. package/chunks/{chunk.UR2O7OZR.js → chunk.7EUNPLC3.js} +3 -2
  7. package/chunks/{chunk.OGXYFLYC.js → chunk.B7L7OY5V.js} +6 -6
  8. package/chunks/{chunk.4D6PS3YB.js → chunk.BB72A45V.js} +1 -1
  9. package/chunks/{chunk.Q3QF6FIQ.js → chunk.BCGOSBXK.js} +2 -2
  10. package/chunks/{chunk.FIRXUEIK.js → chunk.BLE64O33.js} +4 -1
  11. package/chunks/{chunk.GJ6CZ6UN.js → chunk.D7GEZ4LF.js} +2 -2
  12. package/chunks/{chunk.GVAZGVX2.js → chunk.DORGLQNH.js} +1 -1
  13. package/chunks/{chunk.6PGW4W5E.js → chunk.EWB754RT.js} +1 -1
  14. package/chunks/{chunk.UAED2ICJ.js → chunk.F736FH36.js} +1 -1
  15. package/chunks/{chunk.GRVFPKOG.js → chunk.FMYEIX2Z.js} +1 -1
  16. package/chunks/{chunk.WDV4K3NB.js → chunk.FQRFW5HH.js} +2 -2
  17. package/chunks/{chunk.FB74W3AW.js → chunk.HH7F7OTM.js} +20 -5
  18. package/chunks/{chunk.OGHRZS7Z.js → chunk.HMRJT6JV.js} +2 -2
  19. package/chunks/{chunk.VL6WP6CO.js → chunk.ID34XFMM.js} +2 -2
  20. package/chunks/{chunk.NQQAFN6S.js → chunk.JEU2R6X3.js} +1 -1
  21. package/chunks/{chunk.BR67WBUE.js → chunk.JRIXNT6C.js} +1 -1
  22. package/chunks/{chunk.GOPGCNDC.js → chunk.KYSBYHZN.js} +2 -2
  23. package/chunks/{chunk.JIL3VXPT.js → chunk.L5APO5HN.js} +2 -2
  24. package/chunks/{chunk.A7DPHMYA.js → chunk.MDZT5BA6.js} +1 -1
  25. package/chunks/{chunk.FV4KNGDE.js → chunk.NBKDSAUX.js} +1 -1
  26. package/chunks/{chunk.EPGFD7VH.js → chunk.O5TC4G25.js} +2 -2
  27. package/chunks/{chunk.CHZ4Z2YY.js → chunk.OQ6NKEDC.js} +1 -1
  28. package/chunks/chunk.QK3R23GV.js +1 -1
  29. package/chunks/{chunk.ST5QI4XQ.js → chunk.QUGSHMTM.js} +2 -2
  30. package/chunks/{chunk.JFJHA6P6.js → chunk.SKWIDAHG.js} +1 -1
  31. package/chunks/{chunk.GZQMA4XI.js → chunk.SQAM6HWU.js} +1 -1
  32. package/chunks/{chunk.XA77YAN3.js → chunk.SQOU72IJ.js} +1 -1
  33. package/chunks/{chunk.BA4XMBLV.js → chunk.SU4JU7VX.js} +1 -1
  34. package/chunks/{chunk.VDIZOFXQ.js → chunk.T53WSXJG.js} +1 -1
  35. package/chunks/{chunk.3GQXXIAA.js → chunk.TTHH5UZK.js} +2 -2
  36. package/chunks/{chunk.5PXMD6FN.js → chunk.UFSOVQI5.js} +2 -2
  37. package/chunks/{chunk.IT5VVUWI.js → chunk.UIDZVJSO.js} +1 -1
  38. package/chunks/{chunk.NHCDT25A.js → chunk.UPVVRLCC.js} +2 -2
  39. package/chunks/{chunk.ERTFEGJX.js → chunk.W7TAR23S.js} +1 -1
  40. package/chunks/{chunk.N6GUDNJV.js → chunk.WPPCJTAE.js} +2 -2
  41. package/chunks/{chunk.LUSRFI2X.js → chunk.WVW3KV56.js} +2 -2
  42. package/chunks/{chunk.WSXUN75Q.js → chunk.XENGUZWO.js} +2 -2
  43. package/chunks/{chunk.D73543IP.js → chunk.YBK3ZFCA.js} +1 -1
  44. package/chunks/{chunk.ZRKILGXZ.js → chunk.YSAE26FD.js} +1 -1
  45. package/chunks/{chunk.4GEYYFIK.js → chunk.ZIQKTXNY.js} +13 -9
  46. package/components/badge/badge.js +4 -4
  47. package/components/badge/index.js +4 -4
  48. package/components/button/button.js +4 -4
  49. package/components/button/button.trans.styles.js +2 -2
  50. package/components/button/index.js +4 -4
  51. package/components/calendar/calendar.js +3 -3
  52. package/components/calendar/calendar.trans.styles.js +2 -2
  53. package/components/calendar/index.js +3 -3
  54. package/components/card/card.js +3 -3
  55. package/components/card/index.js +3 -3
  56. package/components/container/container.js +3 -3
  57. package/components/container/index.js +3 -3
  58. package/components/context-menu/context-menu.js +7 -7
  59. package/components/context-menu/context-menu.trans.styles.js +2 -2
  60. package/components/context-menu/index.js +8 -8
  61. package/components/datepicker/datepicker.js +17 -17
  62. package/components/datepicker/datepicker.trans.styles.js +2 -2
  63. package/components/datepicker/index.js +17 -17
  64. package/components/dialog/dialog.js +7 -7
  65. package/components/dialog/index.js +7 -7
  66. package/components/div/div.d.ts +5 -0
  67. package/components/div/div.js +2 -2
  68. package/components/div/index.js +2 -2
  69. package/components/divider/divider.js +2 -2
  70. package/components/divider/index.js +2 -2
  71. package/components/dropdown/dropdown.d.ts +1 -1
  72. package/components/dropdown/dropdown.js +14 -14
  73. package/components/dropdown/dropdown.trans.styles.js +2 -2
  74. package/components/dropdown/index.js +15 -15
  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/index.js +6 -6
  86. package/components/form/summary/index.js +6 -6
  87. package/components/form/summary/summary.js +6 -6
  88. package/components/grid/grid.js +3 -3
  89. package/components/grid/index.js +3 -3
  90. package/components/grouped-list/grouped-list.js +3 -3
  91. package/components/grouped-list/grouped-list.trans.styles.js +2 -2
  92. package/components/grouped-list/index.js +3 -3
  93. package/components/img/img.js +2 -2
  94. package/components/img/index.js +2 -2
  95. package/components/index.js +42 -42
  96. package/components/input/index.js +10 -10
  97. package/components/input/input.js +10 -10
  98. package/components/input/input.trans.styles.js +2 -2
  99. package/components/link/index.js +2 -2
  100. package/components/link/link.js +2 -2
  101. package/components/mask/index.js +4 -4
  102. package/components/mask/mask.js +4 -4
  103. package/components/menu-button/index.js +2 -2
  104. package/components/menu-button/menu-button.js +2 -2
  105. package/components/popover/index.js +3 -3
  106. package/components/popover/popover.d.ts +4 -0
  107. package/components/popover/popover.js +3 -3
  108. package/components/popover/popover.trans.styles.js +2 -2
  109. package/components/radio/index.js +10 -10
  110. package/components/radio/radio-group/radio-group.js +8 -8
  111. package/components/radio/radio.js +4 -4
  112. package/components/radio/radio.trans.styles.js +2 -2
  113. package/components/rich-text/index.js +2 -2
  114. package/components/rich-text/rich-text.js +2 -2
  115. package/components/segmented-control/index.js +4 -4
  116. package/components/segmented-control/segment/index.js +3 -3
  117. package/components/segmented-control/segment/segment.js +3 -3
  118. package/components/segmented-control/segment/segment.trans.styles.js +2 -2
  119. package/components/segmented-control/segmented-control.js +4 -4
  120. package/components/segmented-control/segmented-control.trans.styles.js +2 -2
  121. package/components/select/index.js +10 -10
  122. package/components/select/select.js +10 -10
  123. package/components/select/select.trans.styles.js +2 -2
  124. package/components/signal/index.js +2 -2
  125. package/components/signal/signal.js +2 -2
  126. package/components/spacer/index.js +2 -2
  127. package/components/spacer/spacer.js +2 -2
  128. package/components/spinner/gds-spinner.js +2 -2
  129. package/components/spinner/index.js +2 -2
  130. package/components/text/index.js +3 -3
  131. package/components/text/text.js +3 -3
  132. package/components/textarea/index.js +10 -10
  133. package/components/textarea/textarea.js +10 -10
  134. package/components/theme/index.js +3 -3
  135. package/components/theme/theme.js +3 -3
  136. package/components/theme/theme.trans.styles.js +2 -2
  137. package/components/video/index.js +2 -2
  138. package/components/video/video.js +2 -2
  139. package/index.js +42 -42
  140. package/package.json +1 -1
  141. package/primitives/field-base/field-base.js +3 -3
  142. package/primitives/field-base/index.js +3 -3
  143. package/primitives/form-control-footer/form-control-footer.js +4 -4
  144. package/primitives/form-control-footer/index.js +4 -4
  145. package/primitives/form-control-header/form-control-header.js +6 -6
  146. package/primitives/form-control-header/index.js +6 -6
  147. package/primitives/listbox/index.js +5 -5
  148. package/primitives/listbox/listbox.js +5 -5
  149. package/primitives/listbox/option.js +4 -4
  150. package/primitives/menu/index.js +5 -5
  151. package/primitives/menu/menu-heading.js +3 -3
  152. package/primitives/menu/menu-item.js +4 -4
  153. package/primitives/menu/menu.js +5 -5
  154. package/primitives/ripple/index.js +2 -2
  155. package/primitives/ripple/ripple.js +2 -2
  156. package/primitives/selection-controls/index.js +3 -3
  157. package/primitives/selection-controls/selection-field-label.js +3 -3
  158. package/transitional-styles.js +2 -2
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk.TWXTKG4B.js";
6
6
  import {
7
7
  tokens
8
- } from "./chunk.OGXYFLYC.js";
8
+ } from "./chunk.B7L7OY5V.js";
9
9
  import {
10
10
  GdsElement
11
11
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.NHCDT25A.js";
3
+ } from "./chunk.UPVVRLCC.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.OGXYFLYC.js";
9
+ } from "./chunk.B7L7OY5V.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  Focusable,
3
3
  option_styles_default
4
- } from "./chunk.ZRKILGXZ.js";
4
+ } from "./chunk.YSAE26FD.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.NHCDT25A.js";
7
+ } from "./chunk.UPVVRLCC.js";
8
8
  import {
9
9
  watch
10
10
  } from "./chunk.TYGMNHNO.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.OGXYFLYC.js";
13
+ } from "./chunk.B7L7OY5V.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.TMEWQZER.js";
@@ -50,32 +50,28 @@ var GdsOption = class extends Focusable(GdsElement) {
50
50
  return __privateGet(this, _hidden);
51
51
  }
52
52
  set hidden(value) {
53
- if (this.isPlaceholder)
54
- return;
55
- __privateSet(this, _hidden, value === "true" || value === true);
56
- this.setAttribute("aria-hidden", value.toString());
53
+ const strValue = value.toString();
54
+ __privateSet(this, _hidden, strValue === "true");
55
+ __privateGet(this, _hidden) ? this.setAttribute("inert", "") : this.removeAttribute("inert");
57
56
  }
58
57
  connectedCallback() {
59
58
  super.connectedCallback();
60
59
  this.setAttribute("role", "option");
61
- if (this.isPlaceholder) {
62
- __privateSet(this, _hidden, true);
63
- this.setAttribute("aria-hidden", "true");
64
- }
65
- this.updateComplete.then(
66
- () => TransitionalStyles.instance.apply(this, "gds-option")
67
- );
60
+ this.updateComplete.then(() => {
61
+ if (this.isPlaceholder) {
62
+ this.hidden = true;
63
+ }
64
+ TransitionalStyles.instance.apply(this, "gds-option");
65
+ });
68
66
  }
69
67
  get parentElement() {
70
68
  return super.parentElement;
71
69
  }
72
70
  _handlePlaceholderStatusChange() {
73
71
  if (this.isPlaceholder) {
74
- __privateSet(this, _hidden, true);
75
- this.setAttribute("aria-hidden", "true");
72
+ this.hidden = true;
76
73
  } else {
77
- __privateSet(this, _hidden, false);
78
- this.setAttribute("aria-hidden", "false");
74
+ this.hidden = false;
79
75
  }
80
76
  }
81
77
  render() {
@@ -119,7 +115,7 @@ __decorateClass([
119
115
  ], GdsOption.prototype, "value", 2);
120
116
  __decorateClass([
121
117
  property({
122
- attribute: "aria-hidden",
118
+ type: Boolean,
123
119
  reflect: true
124
120
  })
125
121
  ], GdsOption.prototype, "hidden", 1);
@@ -133,7 +129,7 @@ __decorateClass([
133
129
  property({ type: Boolean, reflect: true })
134
130
  ], GdsOption.prototype, "isPlaceholder", 2);
135
131
  __decorateClass([
136
- watch("isplaceholder")
132
+ watch("isPlaceholder")
137
133
  ], GdsOption.prototype, "_handlePlaceholderStatusChange", 1);
138
134
  GdsOption = __decorateClass([
139
135
  gdsCustomElement("gds-option")
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk.TWXTKG4B.js";
12
12
  import {
13
13
  TransitionalStyles
14
- } from "./chunk.NHCDT25A.js";
14
+ } from "./chunk.UPVVRLCC.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.OGXYFLYC.js";
17
+ } from "./chunk.B7L7OY5V.js";
18
18
  import {
19
19
  gdsCustomElement,
20
20
  html
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk.2JGBCOIQ.js";
4
4
  import {
5
5
  GdsDiv
6
- } from "./chunk.FIRXUEIK.js";
6
+ } from "./chunk.BLE64O33.js";
7
7
  import {
8
8
  styleExpressionProperty
9
9
  } from "./chunk.NUUST5OZ.js";
10
10
  import {
11
11
  tokens
12
- } from "./chunk.OGXYFLYC.js";
12
+ } from "./chunk.B7L7OY5V.js";
13
13
  import {
14
14
  gdsCustomElement
15
15
  } from "./chunk.QK3R23GV.js";
@@ -78,6 +78,7 @@ __decorateClass([
78
78
  ], GdsText.prototype, "text-decoration", 2);
79
79
  __decorateClass([
80
80
  styleExpressionProperty({
81
+ selector: "[tag]",
81
82
  styleTemplate: (_prop, values) => {
82
83
  return `overflow: hidden;
83
84
  text-overflow: ellipsis;
@@ -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 Thu, 13 Mar 2025 14:30:10 GMT
8
+ * Generated on Mon, 17 Mar 2025 15:53:40 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 Thu, 13 Mar 2025 14:30:10 GMT
122
+ * Generated on Mon, 17 Mar 2025 15:53:40 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 Thu, 13 Mar 2025 14:30:10 GMT
239
+ * Generated on Mon, 17 Mar 2025 15:53:40 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 Thu, 13 Mar 2025 14:30:10 GMT
258
+ * Generated on Mon, 17 Mar 2025 15:53:40 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 Thu, 13 Mar 2025 14:30:10 GMT
273
+ * Generated on Mon, 17 Mar 2025 15:53:40 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 Thu, 13 Mar 2025 14:30:10 GMT
300
+ * Generated on Mon, 17 Mar 2025 15:53:40 GMT
301
301
  */
302
302
 
303
303
  :host {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.NHCDT25A.js";
3
+ } from "./chunk.UPVVRLCC.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TYGMNHNO.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.FIRXUEIK.js";
3
+ } from "./chunk.BLE64O33.js";
4
4
  import {
5
5
  styleExpressionProperty
6
6
  } from "./chunk.NUUST5OZ.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OGXYFLYC.js";
9
+ } from "./chunk.B7L7OY5V.js";
10
10
  import {
11
11
  gdsCustomElement,
12
12
  html
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk.NUUST5OZ.js";
17
17
  import {
18
18
  tokens
19
- } from "./chunk.OGXYFLYC.js";
19
+ } from "./chunk.B7L7OY5V.js";
20
20
  import {
21
21
  GdsElement
22
22
  } from "./chunk.TMEWQZER.js";
@@ -146,6 +146,9 @@ __decorateClass([
146
146
  __decorateClass([
147
147
  styleExpressionProperty()
148
148
  ], GdsDiv.prototype, "text-wrap", 2);
149
+ __decorateClass([
150
+ styleExpressionProperty()
151
+ ], GdsDiv.prototype, "overflow-wrap", 2);
149
152
  __decorateClass([
150
153
  styleExpressionProperty(__spreadProps(__spreadValues({}, forSpaceTokens), {
151
154
  styleTemplate: (_prop, values) => {
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk.TWXTKG4B.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.NHCDT25A.js";
6
+ } from "./chunk.UPVVRLCC.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OGXYFLYC.js";
9
+ } from "./chunk.B7L7OY5V.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.TWXTKG4B.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.OGXYFLYC.js";
13
+ } from "./chunk.B7L7OY5V.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.TMEWQZER.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.TYGMNHNO.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.OGXYFLYC.js";
6
+ } from "./chunk.B7L7OY5V.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.NHCDT25A.js";
3
+ } from "./chunk.UPVVRLCC.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.NUUST5OZ.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.OGXYFLYC.js";
6
+ } from "./chunk.B7L7OY5V.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.TMEWQZER.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.VHN4JEZC.js";
4
4
  import {
5
5
  forwardAttributes
6
- } from "./chunk.I2YO744I.js";
6
+ } from "./chunk.6PGLJBYC.js";
7
7
  import {
8
8
  GdsFormControlElement
9
9
  } from "./chunk.VA6TUMR2.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk.TYGMNHNO.js";
21
21
  import {
22
22
  tokens
23
- } from "./chunk.OGXYFLYC.js";
23
+ } from "./chunk.B7L7OY5V.js";
24
24
  import {
25
25
  gdsCustomElement,
26
26
  html
@@ -1,3 +1,6 @@
1
+ import {
2
+ GdsPopover
3
+ } from "./chunk.ZIQKTXNY.js";
1
4
  import {
2
5
  GdsFormControlElement
3
6
  } from "./chunk.VA6TUMR2.js";
@@ -9,7 +12,7 @@ import {
9
12
  } from "./chunk.TYGMNHNO.js";
10
13
  import {
11
14
  tokens
12
- } from "./chunk.OGXYFLYC.js";
15
+ } from "./chunk.B7L7OY5V.js";
13
16
  import {
14
17
  gdsCustomElement,
15
18
  html
@@ -28,6 +31,7 @@ import { property, query, queryAsync } from "lit/decorators.js";
28
31
  import { ifDefined } from "lit/directives/if-defined.js";
29
32
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
30
33
  import { when } from "lit/directives/when.js";
34
+ import { flip, offset } from "@floating-ui/dom";
31
35
 
32
36
  // libs/core/src/components/dropdown/dropdown.styles.ts
33
37
  import { css } from "lit";
@@ -210,6 +214,16 @@ var GdsDropdown = class extends GdsFormControlElement {
210
214
  `;
211
215
  });
212
216
  __privateAdd(this, _calcMaxHeight, (trigger) => {
217
+ if (this.combobox) {
218
+ const triggerRect = trigger.getBoundingClientRect();
219
+ const windowHeight = window.innerHeight;
220
+ const bottomSpace = windowHeight - triggerRect.bottom;
221
+ const topSpace = triggerRect.top;
222
+ let height2 = Math.min(topSpace, this.maxHeight);
223
+ if (bottomSpace > topSpace)
224
+ height2 = Math.min(bottomSpace, this.maxHeight);
225
+ return `${height2 - 16}px`;
226
+ }
213
227
  const height = Math.min(window.innerHeight, this.maxHeight);
214
228
  return `${height - 16}px`;
215
229
  });
@@ -381,6 +395,7 @@ var GdsDropdown = class extends GdsFormControlElement {
381
395
  this.updateComplete.then(() => {
382
396
  this._handleLightDOMChange();
383
397
  this._handleValueChange();
398
+ this._handleOpenChange();
384
399
  });
385
400
  }
386
401
  render() {
@@ -414,6 +429,7 @@ var GdsDropdown = class extends GdsFormControlElement {
414
429
  .calcMaxHeight=${__privateGet(this, _calcMaxHeight)}
415
430
  .disableMobileStyles=${this.disableMobileStyles || this.combobox}
416
431
  .nonmodal=${this.combobox}
432
+ .floatingUIMiddleware=${this.combobox ? [offset(8), flip()] : GdsPopover.DefaultMiddleware}
417
433
  @gds-ui-state=${__privateGet(this, _handlePopoverStateChange)}
418
434
  >
419
435
  <gds-field-base
@@ -507,10 +523,9 @@ var GdsDropdown = class extends GdsFormControlElement {
507
523
  }
508
524
  });
509
525
  }
510
- _onOpenChange() {
511
- var _a;
526
+ _handleOpenChange() {
512
527
  const open = this.open;
513
- (_a = __privateGet(this, _optionElements)) == null ? void 0 : _a.forEach((o) => o.hidden = !open);
528
+ this.options.forEach((o) => o.hidden = !open);
514
529
  if (open)
515
530
  __privateMethod(this, _registerAutoCloseListener, registerAutoCloseListener_fn).call(this);
516
531
  else {
@@ -631,7 +646,7 @@ __decorateClass([
631
646
  ], GdsDropdown.prototype, "_handleValueChange", 1);
632
647
  __decorateClass([
633
648
  watch("open")
634
- ], GdsDropdown.prototype, "_onOpenChange", 1);
649
+ ], GdsDropdown.prototype, "_handleOpenChange", 1);
635
650
  GdsDropdown = __decorateClass([
636
651
  gdsCustomElement("gds-dropdown"),
637
652
  localized()
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  forwardAttributes
3
- } from "./chunk.I2YO744I.js";
3
+ } from "./chunk.6PGLJBYC.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.OGXYFLYC.js";
14
+ } from "./chunk.B7L7OY5V.js";
15
15
  import {
16
16
  gdsCustomElement,
17
17
  html
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.NHCDT25A.js";
3
+ } from "./chunk.UPVVRLCC.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.OGXYFLYC.js";
6
+ } from "./chunk.B7L7OY5V.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.TMEWQZER.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.TWXTKG4B.js";
5
5
  import {
6
6
  tokens
7
- } from "./chunk.OGXYFLYC.js";
7
+ } from "./chunk.B7L7OY5V.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.NHCDT25A.js";
3
+ } from "./chunk.UPVVRLCC.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.TMEWQZER.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Focusable,
3
3
  option_styles_default
4
- } from "./chunk.ZRKILGXZ.js";
4
+ } from "./chunk.YSAE26FD.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.NHCDT25A.js";
7
+ } from "./chunk.UPVVRLCC.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.FIRXUEIK.js";
3
+ } from "./chunk.BLE64O33.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.OGXYFLYC.js";
6
+ } from "./chunk.B7L7OY5V.js";
7
7
  import {
8
8
  gdsCustomElement,
9
9
  html
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk.TYGMNHNO.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.OGXYFLYC.js";
17
+ } from "./chunk.B7L7OY5V.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.NHCDT25A.js";
7
+ } from "./chunk.UPVVRLCC.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.TMEWQZER.js";
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk.TWXTKG4B.js";
9
9
  import {
10
10
  TransitionalStyles
11
- } from "./chunk.NHCDT25A.js";
11
+ } from "./chunk.UPVVRLCC.js";
12
12
  import {
13
13
  watch
14
14
  } from "./chunk.TYGMNHNO.js";
15
15
  import {
16
16
  tokens
17
- } from "./chunk.OGXYFLYC.js";
17
+ } from "./chunk.B7L7OY5V.js";
18
18
  import {
19
19
  GdsElement
20
20
  } from "./chunk.TMEWQZER.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk.NUUST5OZ.js";
9
9
  import {
10
10
  tokens
11
- } from "./chunk.OGXYFLYC.js";
11
+ } from "./chunk.B7L7OY5V.js";
12
12
  import {
13
13
  GdsElement
14
14
  } from "./chunk.TMEWQZER.js";
@@ -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 = "-1e0e02";
9
+ var VER_SUFFIX = "-9ebb55";
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.NHCDT25A.js";
15
+ } from "./chunk.UPVVRLCC.js";
16
16
  import {
17
17
  watch
18
18
  } from "./chunk.TYGMNHNO.js";
19
19
  import {
20
20
  tokens
21
- } from "./chunk.OGXYFLYC.js";
21
+ } from "./chunk.B7L7OY5V.js";
22
22
  import {
23
23
  gdsCustomElement,
24
24
  html
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.OGXYFLYC.js";
3
+ } from "./chunk.B7L7OY5V.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.QK3R23GV.js";
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk.NUUST5OZ.js";
11
11
  import {
12
12
  tokens
13
- } from "./chunk.OGXYFLYC.js";
13
+ } from "./chunk.B7L7OY5V.js";
14
14
  import {
15
15
  GdsElement
16
16
  } from "./chunk.TMEWQZER.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk.NUUST5OZ.js";
9
9
  import {
10
10
  tokens
11
- } from "./chunk.OGXYFLYC.js";
11
+ } from "./chunk.B7L7OY5V.js";
12
12
  import {
13
13
  GdsElement
14
14
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.FIRXUEIK.js";
3
+ } from "./chunk.BLE64O33.js";
4
4
  import {
5
5
  gdsCustomElement
6
6
  } from "./chunk.QK3R23GV.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk.TYGMNHNO.js";
9
9
  import {
10
10
  tokens
11
- } from "./chunk.OGXYFLYC.js";
11
+ } from "./chunk.B7L7OY5V.js";
12
12
  import {
13
13
  GdsElement
14
14
  } from "./chunk.TMEWQZER.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GdsDiv
3
- } from "./chunk.FIRXUEIK.js";
3
+ } from "./chunk.BLE64O33.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.OGXYFLYC.js";
12
+ } from "./chunk.B7L7OY5V.js";
13
13
  import {
14
14
  gdsCustomElement,
15
15
  html
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.NHCDT25A.js";
3
+ } from "./chunk.UPVVRLCC.js";
4
4
  import {
5
5
  watch
6
6
  } from "./chunk.TYGMNHNO.js";
7
7
  import {
8
8
  tokens
9
- } from "./chunk.OGXYFLYC.js";
9
+ } from "./chunk.B7L7OY5V.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.TMEWQZER.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.E62NOHQC.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.NHCDT25A.js";
7
+ } from "./chunk.UPVVRLCC.js";
8
8
  import {
9
9
  watch
10
10
  } from "./chunk.TYGMNHNO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.OGXYFLYC.js";
3
+ } from "./chunk.B7L7OY5V.js";
4
4
  import {
5
5
  VER_SUFFIX
6
6
  } from "./chunk.QK3R23GV.js";
@@ -147,7 +147,7 @@ var option_trans_styles_default = `/**
147
147
  outline-color: #000;
148
148
  outline-offset: -0.25rem;
149
149
  }
150
- :host([aria-hidden=true]) {
150
+ :host([inert]) {
151
151
  display: none;
152
152
  }
153
153
  :host([highlighted]) div {