@eightshift/ui-components 8.1.0 → 8.3.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 (170) hide show
  1. package/dist/{Autocomplete-BUU44AuW.js → Autocomplete-Dqkum3dO.js} +29 -25
  2. package/dist/{Button-_E2Z5G2l.js → Button-DHgs_rCq.js} +15 -9
  3. package/dist/{Dialog-3XLIaepk.js → Dialog-CldDJ_4u.js} +390 -189
  4. package/dist/{Disclosure-Dh0z_DEQ.js → Disclosure-BHNgL5Is.js} +33 -29
  5. package/dist/{FocusScope-BKGWN6UK.js → FocusScope-CUuL5wjz.js} +13 -8
  6. package/dist/{Heading-BWTs9ckA.js → Heading-BQje2nS2.js} +1 -1
  7. package/dist/{I18nProvider-BskRMK8G.js → I18nProvider-R_4IDnf9.js} +1 -1
  8. package/dist/{Label-UpU4cKPh.js → Label-C4bJkVti.js} +1 -1
  9. package/dist/{ListBox-DepY-52g.js → ListBox-CZXso3mJ.js} +14 -38
  10. package/dist/{NumberFormatter-WKBRKiEA.js → NumberFormatter-Bwdv413k.js} +4 -2
  11. package/dist/{RadioGroup-Br9Mn9QJ.js → RadioGroup-BTByPMrl.js} +35 -35
  12. package/dist/{SearchField-q2Fj0L9K.js → SearchField-DkX1vqMN.js} +29 -26
  13. package/dist/{Slider-B8icnyOo.js → Slider-Dw-JjfLx.js} +55 -44
  14. package/dist/{Text-D4y19vs8.js → Text-CA2_mHEB.js} +4 -3
  15. package/dist/{VisuallyHidden-B_LZ_kn7.js → VisuallyHidden-ZZwHZDro.js} +2 -2
  16. package/dist/{animation-DpSgtWyu.js → animation-COc9P6ap.js} +2 -4
  17. package/dist/assets/{image-analysis-worker-BuHru-CI.js → image-analysis-worker-CBOB71mx.js} +1 -1
  18. package/dist/assets/style-admin.css +1 -1
  19. package/dist/assets/style-editor.css +1 -1
  20. package/dist/assets/style.css +1 -1
  21. package/dist/assets/wp-overrides/make-block-messages-nicer.css +1 -1
  22. package/dist/{build-module-DG6ZK7Ty.js → build-module-BISCoQjQ.js} +4 -4
  23. package/dist/{button-XSk_8UW7.js → button-ldR_tlvk.js} +64 -13
  24. package/dist/{checkbox-BYaS9tQ5.js → checkbox-DDyLJRY8.js} +8 -8
  25. package/dist/{color-swatch-6ZEIXej3.js → color-swatch-DmhdOhe4.js} +15 -16
  26. package/dist/components/animated-visibility/animated-visibility.js +5 -3
  27. package/dist/components/base-control/base-control.d.ts +1 -1
  28. package/dist/components/base-control/base-control.js +1 -1
  29. package/dist/components/base-control/container.d.ts +4 -30
  30. package/dist/components/base-control/container.js +5 -32
  31. package/dist/components/breakpoint-preview/breakpoint-preview.js +1 -1
  32. package/dist/components/button/button.d.ts +1 -1
  33. package/dist/components/button/button.js +1 -1
  34. package/dist/components/checkbox/checkbox.js +1 -1
  35. package/dist/components/color-pickers/color-picker.js +8 -8
  36. package/dist/components/color-pickers/color-swatch.js +1 -1
  37. package/dist/components/color-pickers/gradient-editor.js +1 -1
  38. package/dist/components/color-pickers/solid-color-picker.js +1 -1
  39. package/dist/components/component-toggle/component-toggle.d.ts +1 -1
  40. package/dist/components/component-toggle/component-toggle.js +4 -4
  41. package/dist/components/container-panel/container-panel.js +11 -11
  42. package/dist/components/contextual-help/contextual-help.js +3 -3
  43. package/dist/components/draggable/draggable.d.ts +3 -3
  44. package/dist/components/draggable/draggable.js +1 -1
  45. package/dist/components/draggable-list/draggable-list.d.ts +3 -3
  46. package/dist/components/draggable-list/draggable-list.js +9 -9
  47. package/dist/components/expandable/expandable.js +4 -4
  48. package/dist/components/index.d.ts +1 -0
  49. package/dist/components/index.js +18 -17
  50. package/dist/components/input-field/input-field.d.ts +1 -1
  51. package/dist/components/input-field/input-field.js +1 -1
  52. package/dist/components/item-collection/item-collection.d.ts +3 -28
  53. package/dist/components/item-collection/item-collection.js +7 -7
  54. package/dist/components/link-input/link-input.d.ts +0 -2
  55. package/dist/components/link-input/link-input.js +1 -1
  56. package/dist/components/matrix-align/matrix-align.js +5 -4
  57. package/dist/components/menu/menu.d.ts +8 -29
  58. package/dist/components/menu/menu.js +11 -8
  59. package/dist/components/modal/modal.js +1 -1
  60. package/dist/components/notice/notice.js +8 -8
  61. package/dist/components/number-picker/number-picker.d.ts +1 -1
  62. package/dist/components/number-picker/number-picker.js +1 -1
  63. package/dist/components/option-select/option-select.d.ts +1 -1
  64. package/dist/components/option-select/option-select.js +22 -16
  65. package/dist/components/options-panel/options-panel.js +4 -4
  66. package/dist/components/placeholders/file-picker-shell.js +4 -3
  67. package/dist/components/placeholders/file-placeholder.js +3 -2
  68. package/dist/components/popover/popover.js +5 -5
  69. package/dist/components/portal-provider/portal-provider.js +2 -1
  70. package/dist/components/prompt-popover/prompt-popover.d.ts +56 -0
  71. package/dist/components/prompt-popover/prompt-popover.js +81 -0
  72. package/dist/components/radio/radio.d.ts +2 -1
  73. package/dist/components/radio/radio.js +2 -2
  74. package/dist/components/repeater/repeater-context.d.ts +0 -1
  75. package/dist/components/repeater/repeater-item.js +2 -2
  76. package/dist/components/repeater/repeater.d.ts +5 -38
  77. package/dist/components/repeater/repeater.js +8 -11
  78. package/dist/components/responsive/mini-responsive.d.ts +0 -1
  79. package/dist/components/responsive/mini-responsive.js +31 -31
  80. package/dist/components/responsive/responsive-legacy.d.ts +0 -1
  81. package/dist/components/responsive/responsive-legacy.js +13 -11
  82. package/dist/components/responsive/responsive.d.ts +0 -1
  83. package/dist/components/responsive/responsive.js +29 -29
  84. package/dist/components/responsive-preview/responsive-preview.js +4 -4
  85. package/dist/components/rich-label/rich-label.d.ts +1 -1
  86. package/dist/components/rich-label/rich-label.js +2 -2
  87. package/dist/components/select/async-multi-select.d.ts +12 -13
  88. package/dist/components/select/async-multi-select.js +40 -21
  89. package/dist/components/select/async-select.d.ts +12 -13
  90. package/dist/components/select/async-select.js +39 -21
  91. package/dist/components/select/multi-select.d.ts +2 -8
  92. package/dist/components/select/multi-select.js +20 -20
  93. package/dist/components/select/shared.d.ts +7 -11
  94. package/dist/components/select/shared.js +2 -2
  95. package/dist/components/select/single-select.d.ts +2 -8
  96. package/dist/components/select/single-select.js +17 -17
  97. package/dist/components/select/styles.d.ts +2 -2
  98. package/dist/components/slider/column-config-slider.js +8 -6
  99. package/dist/components/slider/slider.js +16 -12
  100. package/dist/components/slider/utils.js +1 -1
  101. package/dist/components/smart-image/smart-image.d.ts +1 -2
  102. package/dist/components/smart-image/smart-image.js +53 -51
  103. package/dist/components/tabs/tabs.d.ts +16 -64
  104. package/dist/components/tabs/tabs.js +1 -1
  105. package/dist/components/toggle/switch.d.ts +1 -1
  106. package/dist/components/toggle/switch.js +1 -1
  107. package/dist/components/toggle/toggle.js +2 -2
  108. package/dist/components/toggle-button/toggle-button.d.ts +2 -2
  109. package/dist/components/toggle-button/toggle-button.js +1 -1
  110. package/dist/components/tooltip/tooltip.js +1 -1
  111. package/dist/{draggable-9MfdTVWP.js → draggable-oS68xcYX.js} +130 -125
  112. package/dist/{es-dash-DunirOmV.js → es-dash-DPtJSRjw.js} +23 -52
  113. package/dist/{gradient-editor-yqSw0uPA.js → gradient-editor-DP8ioFX1.js} +39 -30
  114. package/dist/icons/block-icon.js +1 -1
  115. package/dist/icons/icon.d.ts +3 -3
  116. package/dist/icons/icon.js +21 -9
  117. package/dist/icons/icons.d.ts +210 -1
  118. package/dist/icons/index.js +1 -1
  119. package/dist/icons/jsx-svg.d.ts +5 -4
  120. package/dist/icons/jsx-svg.js +1 -1
  121. package/dist/index.js +18 -17
  122. package/dist/{input-field-nN6BO0oz.js → input-field-C-XvZeCZ.js} +8 -8
  123. package/dist/{jsx-svg-BjGQUBLh.js → jsx-svg-DRwJdRpA.js} +171 -129
  124. package/dist/{keyboard-g5Amam-c.js → keyboard-Cdqi5ZQQ.js} +1 -1
  125. package/dist/{link-input-BhlPElU8.js → link-input-DdwuqoMg.js} +147 -89
  126. package/dist/{modal-B5axB0Fc.js → modal-DZco5MDu.js} +15 -14
  127. package/dist/{number-picker-nnOf0XnN.js → number-picker-XqKW0BNi.js} +9 -9
  128. package/dist/{react-y40Dt3ab.js → react-O71mlJXS.js} +250 -266
  129. package/dist/{shared-Ba_bt4s9.js → shared-YXMIX2ka.js} +60 -44
  130. package/dist/{solid-color-picker-CsosgTVa.js → solid-color-picker-D5LEdmDM.js} +78 -58
  131. package/dist/{switch-BJ4_OyUm.js → switch-Bo6nmed_.js} +8 -8
  132. package/dist/{tabs-wAe0AAyu.js → tabs-DE-qb7Kt.js} +35 -30
  133. package/dist/{text-helpers-2j9DuxP1.js → text-helpers-QrwKKaOh.js} +3 -2
  134. package/dist/{textSelection-B_Nv6Jz3.js → textSelection-C17LWYmO.js} +3 -3
  135. package/dist/{toggle-button-BLJdEp8V.js → toggle-button-Cb4yCEua.js} +39 -8
  136. package/dist/{tooltip-BW9nj5-V.js → tooltip-CT-vzIdz.js} +68 -62
  137. package/dist/{useAsyncList-B3-uyJgA.js → useAsyncList-CjKVLGN0.js} +8 -4
  138. package/dist/{useButton-CPMVLXoX.js → useButton-V65TBDGM.js} +3 -3
  139. package/dist/{useCollection-PzY6FI39.js → useCollection-DqUS7tjk.js} +281 -184
  140. package/dist/useEvent-C9zwSNzZ.js +18 -0
  141. package/dist/{useField-DrfR8j9h.js → useField-B_ibsWst.js} +2 -2
  142. package/dist/{useFilter-CiCjo6Na.js → useFilter-C75IzdIZ.js} +1 -1
  143. package/dist/{useFocusRing-CrYHpV7C.js → useFocusRing-JidySWlU.js} +1 -1
  144. package/dist/{useFormReset-U6c35PHq.js → useFormReset-Sp8-miDa.js} +1 -1
  145. package/dist/{useFormValidation-B2q2MGWN.js → useFormValidation-CpmQEh8J.js} +2 -2
  146. package/dist/{useHover-CNsbAR0V.js → useHover-CaY3sRjL.js} +250 -46
  147. package/dist/{useLabel-DuxAjaic.js → useLabel-gfFDE4bn.js} +2 -2
  148. package/dist/{useLabels-NUsp5IW3.js → useLabels-Dcg-cEyM.js} +1 -1
  149. package/dist/{useListState-FLxa7R_U.js → useListState-CzB3v6M9.js} +6 -11
  150. package/dist/{useLocalizedStringFormatter-Ccm8EL_u.js → useLocalizedStringFormatter-CTCqjYu4.js} +6 -1
  151. package/dist/{useNumberFieldState-DWvm7CXu.js → useNumberFieldState-DC3XY3DQ.js} +79 -62
  152. package/dist/{useNumberFormatter-B0_D7a_o.js → useNumberFormatter-DbAt_fC_.js} +2 -2
  153. package/dist/{useOverlayTriggerState-zZ7homyI.js → useOverlayTriggerState-BKmSTK_5.js} +16 -11
  154. package/dist/{usePress-DRoujMNm.js → usePress-CUCWcP-m.js} +50 -28
  155. package/dist/{useSlot-pRz-v9kC.js → useSlot-CnQHcvd4.js} +1 -1
  156. package/dist/{useTextField-e8jIFT3s.js → useTextField-C3QIkMON.js} +6 -6
  157. package/dist/{useToggle-CR_ZKvr_.js → useToggle-bbGRUbo4.js} +6 -6
  158. package/dist/{useToggleState-ButQxGrJ.js → useToggleState-D_rLMrVW.js} +1 -1
  159. package/dist/utilities/array-helpers.d.ts +2 -2
  160. package/dist/utilities/array-helpers.js +4 -3
  161. package/dist/utilities/debounce-throttle.d.ts +9 -2
  162. package/dist/utilities/es-dash.d.ts +11 -8
  163. package/dist/utilities/es-dash.js +1 -1
  164. package/dist/utilities/index.js +2 -2
  165. package/dist/utilities/text-helpers.js +1 -1
  166. package/dist/utilities/web-workers.d.ts +7 -7
  167. package/dist/utilities/web-workers.js +5 -5
  168. package/dist/{utils-Czi6q2Ub.js → utils-ClM91CuL.js} +30 -19
  169. package/package.json +23 -27
  170. package/dist/useEvent-CzuFZ2HT.js +0 -22
@@ -1,33 +1,34 @@
1
1
  import { t as clsx } from "./clsx-DQoRUQAf.js";
2
2
  import { AnimatedVisibility } from "./components/animated-visibility/animated-visibility.js";
3
- import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, g as $a4e76a5424781910$export$e08e3b67e392101e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-Czi6q2Ub.js";
4
- import { r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 } from "./keyboard-g5Amam-c.js";
5
- import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, H as $23f2114a1b82827e$export$e58f029f0fbfdb29, S as $caaf0dd3060ed57c$export$9a302a45f65d0572, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, W as $d447af545b77c9f1$export$b204af158042fbac, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CNsbAR0V.js";
6
- import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-CzuFZ2HT.js";
7
- import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-NUsp5IW3.js";
8
- import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-Ccm8EL_u.js";
9
- import { g as $42ceafc619f9c3ba$export$bf788dd355e3a401, i as $cd5ea4b915021f1d$export$1005530eda016c13, s as $d667c2af82d35a98$export$d6daf82dcd84e87c } from "./useCollection-PzY6FI39.js";
3
+ import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, g as $a4e76a5424781910$export$e08e3b67e392101e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, p as $390e54f620492c70$export$f680877a34711e37, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
4
+ import { r as $b72f3f7b3b5f42c6$export$2b35b76d2e30e129 } from "./keyboard-Cdqi5ZQQ.js";
5
+ import { A as $2add3ce32c6007eb$export$e1865c3bedcd822b, S as $caaf0dd3060ed57c$export$9a302a45f65d0572, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, d as $3e6197669829fe11$export$40bfa8c7b0832715, f as $fe16bffc7a557bf0$export$7f54fc3180508a52, m as $8f5a2122b0992be3$export$8397ddfc504fdb9a, q as $d447af545b77c9f1$export$b204af158042fbac, s as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, z as $23f2114a1b82827e$export$4282f70798064fe0 } from "./useHover-CaY3sRjL.js";
6
+ import { n as $4b38b5b75ecc6208$export$698f465ec27e93df } from "./Autocomplete-Dqkum3dO.js";
7
+ import { t as $600b3cf69ae46262$export$90fc3a17d93f704c } from "./useEvent-C9zwSNzZ.js";
8
+ import { t as $e8ac3c3f5d4bae7f$export$d6875122194c7b44 } from "./useLabels-Dcg-cEyM.js";
9
+ import { t as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CTCqjYu4.js";
10
+ import { _ as $42ceafc619f9c3ba$export$bf788dd355e3a401, a as $cd5ea4b915021f1d$export$1005530eda016c13, c as $d667c2af82d35a98$export$d6daf82dcd84e87c } from "./useCollection-DqUS7tjk.js";
10
11
  import { t as $d7f64c32b702fe2c$export$86427a43e3e48ebb } from "./Hidden-C4Saxkx9.js";
11
12
  import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
12
- import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-UpU4cKPh.js";
13
- import { n as $7705c033048f6da7$export$353f5b6fc5456de1, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-_E2Z5G2l.js";
14
- import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D4y19vs8.js";
15
- import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, d as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, l as $f19b83c1486f45cc$export$dc9c12ed27dd1b49, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, u as $542a13ca2fa5b484$export$5b6b19405a83ff9d, v as $2efe10d3f1f9e31e$export$77d5aafae4e095b2, x as $ae8f8d98b2b18f2f$export$a05409b8bb224a5a } from "./Dialog-3XLIaepk.js";
16
- import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-DrfR8j9h.js";
17
- import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-B2q2MGWN.js";
13
+ import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
14
+ import { n as $7705c033048f6da7$export$353f5b6fc5456de1, r as $a46cf152bb926da5$export$a9b970dcc4ae71a9, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DHgs_rCq.js";
15
+ import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
16
+ import { S as $ae8f8d98b2b18f2f$export$a05409b8bb224a5a, _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, d as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, l as $f19b83c1486f45cc$export$dc9c12ed27dd1b49, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, u as $542a13ca2fa5b484$export$5b6b19405a83ff9d, y as $2efe10d3f1f9e31e$export$77d5aafae4e095b2 } from "./Dialog-CldDJ_4u.js";
17
+ import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-B_ibsWst.js";
18
+ import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$a763b9476acd3eb } from "./useFormValidation-CpmQEh8J.js";
18
19
  import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BWMVEpwR.js";
19
- import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-U6c35PHq.js";
20
- import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-e8jIFT3s.js";
21
- import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, o as $cd088b5c0d7b27b4$export$3585ede4d035bf14, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, s as $cd088b5c0d7b27b4$export$9145995848b05025, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-DepY-52g.js";
22
- import { r as $f664a81d022446b5$export$d085fb9e920b5ca7, t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-FLxa7R_U.js";
23
- import { r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-zZ7homyI.js";
24
- import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "./useFilter-CiCjo6Na.js";
25
- import { n as Tooltip } from "./tooltip-BW9nj5-V.js";
26
- import { t as $c73d3f3d5ec90946$export$bc3384a35de93d66 } from "./useAsyncList-B3-uyJgA.js";
20
+ import { t as $3274bf1495747a7b$export$5add1d006293d136 } from "./useFormReset-Sp8-miDa.js";
21
+ import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $054f71d2330da2e3$export$712718f7aec83d5 } from "./useTextField-C3QIkMON.js";
22
+ import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, o as $cd088b5c0d7b27b4$export$3585ede4d035bf14, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, s as $cd088b5c0d7b27b4$export$9145995848b05025, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-CZXso3mJ.js";
23
+ import { r as $f664a81d022446b5$export$d085fb9e920b5ca7, t as $b14b6f590b50af39$export$2f645645f7bca764 } from "./useListState-CzB3v6M9.js";
24
+ import { r as $970072cf4b13fde3$export$683480f191c0e3ea, t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-BKmSTK_5.js";
25
+ import { t as $ef182bb9912241d8$export$3274cf84b703fff } from "./useFilter-C75IzdIZ.js";
26
+ import { n as Tooltip } from "./tooltip-CT-vzIdz.js";
27
+ import { t as $c73d3f3d5ec90946$export$bc3384a35de93d66 } from "./useAsyncList-CjKVLGN0.js";
27
28
  import { RichLabel } from "./components/rich-label/rich-label.js";
28
29
  import { BaseControl } from "./components/base-control/base-control.js";
29
30
  import { randomId } from "./utilities/hash.js";
30
- import { t as __ } from "./build-module-DG6ZK7Ty.js";
31
+ import { t as __ } from "./build-module-BISCoQjQ.js";
31
32
  import { t as cva } from "./dist-DpXluZqJ.js";
32
33
  import { Spinner } from "./icons/spinner.js";
33
34
  import { anchor } from "./icons/ui-icons/anchor.js";
@@ -263,13 +264,13 @@ $f1b3c1991f38986b$exports = {
263
264
  "buttonLabel": `N\xe4yt\xe4 ehdotukset`,
264
265
  "countAnnouncement": (args, formatter) => `${formatter.plural(args.optionCount, {
265
266
  one: () => `${formatter.number(args.optionCount)} vaihtoehto`,
266
- other: () => `${formatter.number(args.optionCount)} vaihtoehdot`
267
+ other: () => `${formatter.number(args.optionCount)} vaihtoehtoa`
267
268
  })} saatavilla.`,
268
269
  "focusAnnouncement": (args, formatter) => `${formatter.select({
269
- true: () => `Mentiin ryhm\xe4\xe4n ${args.groupTitle}, ${formatter.plural(args.groupCount, {
270
- one: () => `${formatter.number(args.groupCount)} vaihtoehdon`,
271
- other: () => `${formatter.number(args.groupCount)} vaihtoehdon`
272
- })} kanssa.`,
270
+ true: () => `Siirtyi ryhm\xe4\xe4n ${args.groupTitle}, jossa ${formatter.plural(args.groupCount, {
271
+ one: () => `${formatter.number(args.groupCount)} vaihtoehto`,
272
+ other: () => `${formatter.number(args.groupCount)} vaihtoehtoa`
273
+ })}.`,
273
274
  other: ``
274
275
  }, args.isGroupChange)}${args.optionText}${formatter.select({
275
276
  true: `, valittu`,
@@ -884,46 +885,76 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
884
885
  isVirtualized: true
885
886
  });
886
887
  let router = $caaf0dd3060ed57c$export$9a302a45f65d0572();
887
- let onKeyDown = (e) => {
888
- if (e.nativeEvent.isComposing) return;
889
- switch (e.key) {
890
- case "Enter":
891
- case "Tab":
892
- if (state.isOpen && e.key === "Enter") e.preventDefault();
893
- if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null) {
894
- let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
895
- if (collectionItem?.props.href) {
896
- let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
897
- if (e.key === "Enter" && item instanceof HTMLAnchorElement) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
898
- state.close();
899
- break;
900
- } else if (collectionItem?.props.onAction) {
901
- collectionItem.props.onAction();
902
- state.close();
903
- break;
904
- }
888
+ let { keyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({ shortcuts: {
889
+ Enter: (e) => {
890
+ let shouldPreventDefault = state.isOpen;
891
+ if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null) {
892
+ let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
893
+ if (collectionItem?.props.href) {
894
+ let item = listBoxRef.current.querySelector(`[data-key="${CSS.escape(state.selectionManager.focusedKey.toString())}"]`);
895
+ if (item instanceof HTMLAnchorElement) router.open(item, e, collectionItem.props.href, collectionItem.props.routerOptions);
896
+ state.close();
897
+ return { shouldPreventDefault };
898
+ } else if (collectionItem?.props.onAction) {
899
+ collectionItem.props.onAction();
900
+ state.close();
901
+ return { shouldPreventDefault };
902
+ }
903
+ }
904
+ state.commit();
905
+ return { shouldPreventDefault };
906
+ },
907
+ Tab: () => {
908
+ if (state.isOpen && listBoxRef.current && state.selectionManager.focusedKey != null) {
909
+ let collectionItem = state.collection.getItem(state.selectionManager.focusedKey);
910
+ if (collectionItem?.props.href) {
911
+ state.close();
912
+ return { shouldPreventDefault: false };
913
+ } else if (collectionItem?.props.onAction) {
914
+ collectionItem.props.onAction();
915
+ state.close();
916
+ return {
917
+ shouldPreventDefault: false,
918
+ shouldContinuePropagation: true
919
+ };
905
920
  }
906
- if (e.key === "Enter" || state.isOpen) state.commit();
907
- if (e.key === "Tab") e.continuePropagation();
908
- break;
909
- case "Escape":
910
- if (!state.selectionManager.isEmpty || state.inputValue === "" || props.allowsCustomValue) e.continuePropagation();
911
- state.revert();
912
- break;
913
- case "ArrowDown":
921
+ }
922
+ if (state.isOpen) state.commit();
923
+ return {
924
+ shouldPreventDefault: false,
925
+ shouldContinuePropagation: true
926
+ };
927
+ },
928
+ Escape: () => {
929
+ let shouldContinuePropagation = false;
930
+ if (!state.selectionManager.isEmpty || state.inputValue === "" || props.allowsCustomValue) shouldContinuePropagation = true;
931
+ state.revert();
932
+ return { shouldContinuePropagation };
933
+ }
934
+ } });
935
+ let { keyboardProps: repeatKeyboardProps } = $8296dad1a4c5e0dc$export$8f71654801c2f7cd({
936
+ shortcuts: {
937
+ ArrowDown: () => {
914
938
  state.open("first", "manual");
915
- break;
916
- case "ArrowUp":
939
+ return { shouldPreventDefault: false };
940
+ },
941
+ ArrowUp: () => {
917
942
  state.open("last", "manual");
918
- break;
919
- case "ArrowLeft":
920
- case "ArrowRight":
943
+ return { shouldPreventDefault: false };
944
+ },
945
+ ArrowLeft: () => {
921
946
  state.selectionManager.setFocusedKey(null);
922
- break;
923
- }
924
- };
947
+ return { shouldPreventDefault: false };
948
+ },
949
+ ArrowRight: () => {
950
+ state.selectionManager.setFocusedKey(null);
951
+ return { shouldPreventDefault: false };
952
+ }
953
+ },
954
+ allowRepeats: true
955
+ });
925
956
  let onBlur = (e) => {
926
- let blurFromButton = buttonRef?.current && buttonRef.current === e.relatedTarget;
957
+ let blurFromButton = $23f2114a1b82827e$export$4282f70798064fe0(buttonRef.current, e.relatedTarget);
927
958
  let blurIntoPopover = $23f2114a1b82827e$export$4282f70798064fe0(popoverRef.current, e.relatedTarget);
928
959
  if (blurFromButton || blurIntoPopover) return;
929
960
  if (props.onBlur) props.onBlur(e);
@@ -940,7 +971,7 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
940
971
  ...props,
941
972
  isRequired: props.selectionMode === "multiple" ? props.isRequired && state.selectionManager.isEmpty : props.isRequired,
942
973
  onChange: state.setInputValue,
943
- onKeyDown: !isReadOnly ? $a4e76a5424781910$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, onKeyDown, props.onKeyDown) : props.onKeyDown,
974
+ onKeyDown: !isReadOnly ? $a4e76a5424781910$export$e08e3b67e392101e(state.isOpen && collectionProps.onKeyDown, keyboardProps.onKeyDown, repeatKeyboardProps.onKeyDown, props.onKeyDown) : props.onKeyDown,
944
975
  onBlur,
945
976
  value: state.inputValue,
946
977
  defaultValue: state.defaultInputValue,
@@ -1002,13 +1033,14 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
1002
1033
  let isSelected = state.selectionManager.isSelected(itemKey);
1003
1034
  let section = sectionKey != null ? state.collection.getItem(sectionKey) : null;
1004
1035
  let sectionTitle = section?.["aria-label"] || (typeof section?.rendered === "string" ? section.rendered : "") || "";
1005
- $a46cf152bb926da5$export$a9b970dcc4ae71a9(stringFormatter.format("focusAnnouncement", {
1036
+ let announcement = stringFormatter.format("focusAnnouncement", {
1006
1037
  isGroupChange: (section && sectionKey !== lastSection.current) ?? false,
1007
1038
  groupTitle: sectionTitle,
1008
1039
  groupCount: section ? [...$cd5ea4b915021f1d$export$1005530eda016c13(section, state.collection)].length : 0,
1009
1040
  optionText: focusedItem["aria-label"] || focusedItem.textValue || "",
1010
1041
  isSelected
1011
- }));
1042
+ });
1043
+ $a46cf152bb926da5$export$a9b970dcc4ae71a9(announcement);
1012
1044
  }
1013
1045
  lastSection.current = sectionKey;
1014
1046
  lastItem.current = itemKey;
@@ -1018,7 +1050,10 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
1018
1050
  let lastOpen = useRef(state.isOpen);
1019
1051
  useEffect(() => {
1020
1052
  let didOpenWithoutFocusedItem = state.isOpen !== lastOpen.current && (state.selectionManager.focusedKey == null || $2add3ce32c6007eb$export$e1865c3bedcd822b());
1021
- if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) $a46cf152bb926da5$export$a9b970dcc4ae71a9(stringFormatter.format("countAnnouncement", { optionCount }));
1053
+ if (state.isOpen && (didOpenWithoutFocusedItem || optionCount !== lastSize.current)) {
1054
+ let announcement = stringFormatter.format("countAnnouncement", { optionCount });
1055
+ $a46cf152bb926da5$export$a9b970dcc4ae71a9(announcement);
1056
+ }
1022
1057
  lastSize.current = optionCount;
1023
1058
  lastOpen.current = state.isOpen;
1024
1059
  });
@@ -1026,7 +1061,8 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
1026
1061
  useEffect(() => {
1027
1062
  if ($2add3ce32c6007eb$export$e1865c3bedcd822b() && state.isFocused && state.selectedItem && state.selectedKey !== lastSelectedKey.current) {
1028
1063
  let optionText = state.selectedItem["aria-label"] || state.selectedItem.textValue || "";
1029
- $a46cf152bb926da5$export$a9b970dcc4ae71a9(stringFormatter.format("selectedAnnouncement", { optionText }));
1064
+ let announcement = stringFormatter.format("selectedAnnouncement", { optionText });
1065
+ $a46cf152bb926da5$export$a9b970dcc4ae71a9(announcement);
1030
1066
  }
1031
1067
  lastSelectedKey.current = state.selectedKey;
1032
1068
  });
@@ -1044,7 +1080,13 @@ function $bf505c7417d9b616$export$8c18d1b4f7232bbf(props, state) {
1044
1080
  state.close();
1045
1081
  } : void 0);
1046
1082
  return {
1047
- labelProps,
1083
+ labelProps: {
1084
+ ...labelProps,
1085
+ onClick: "htmlFor" in labelProps && labelProps.htmlFor || props.isDisabled ? void 0 : () => {
1086
+ inputRef.current?.focus();
1087
+ $8f5a2122b0992be3$export$8397ddfc504fdb9a("keyboard");
1088
+ }
1089
+ },
1048
1090
  buttonProps: {
1049
1091
  ...menuTriggerProps,
1050
1092
  ...triggerLabelProps,
@@ -1290,9 +1332,10 @@ function $120eca7b9c40f820$export$b453a3bfd4a5fa9e(props) {
1290
1332
  } else commitSelection();
1291
1333
  };
1292
1334
  let commit = () => {
1293
- if (triggerState.isOpen && selectionManager.focusedKey != null) if (selectionManager.isSelected(selectionManager.focusedKey) && selectionMode === "single") commitSelection(true);
1294
- else selectionManager.select(selectionManager.focusedKey);
1295
- else commitValue();
1335
+ if (triggerState.isOpen && selectionManager.focusedKey != null) {
1336
+ if (selectionManager.isSelected(selectionManager.focusedKey) && selectionMode === "single") commitSelection(true);
1337
+ else selectionManager.select(selectionManager.focusedKey);
1338
+ } else commitValue();
1296
1339
  };
1297
1340
  let valueOnFocus = useRef([inputValue, displayValue]);
1298
1341
  let setFocused = (isFocused) => {
@@ -1306,9 +1349,10 @@ function $120eca7b9c40f820$export$b453a3bfd4a5fa9e(props) {
1306
1349
  setFocusedState(isFocused);
1307
1350
  };
1308
1351
  let displayedCollection = useMemo(() => {
1309
- if (triggerState.isOpen) if (showAllItems) return originalCollection;
1310
- else return filteredCollection;
1311
- else return lastCollection;
1352
+ if (triggerState.isOpen) {
1353
+ if (showAllItems) return originalCollection;
1354
+ else return filteredCollection;
1355
+ } else return lastCollection;
1312
1356
  }, [
1313
1357
  triggerState.isOpen,
1314
1358
  originalCollection,
@@ -1403,6 +1447,7 @@ var $dbdc5e6e7ce01b4b$var$CLEAR_CONTEXTS = [
1403
1447
  $43a3b93638fe5db9$export$75b6ee27786ba447,
1404
1448
  $7705c033048f6da7$export$24d547caef80ccd1,
1405
1449
  $41fb335299a4a39e$export$37fb8590cf2c088c,
1450
+ $4b38b5b75ecc6208$export$698f465ec27e93df,
1406
1451
  $3a442827418ebe87$export$f9c6924e160136d1,
1407
1452
  $efe09c6d1c304b50$export$9afb8bc826b033ea
1408
1453
  ];
@@ -1426,6 +1471,7 @@ function $dbdc5e6e7ce01b4b$var$ComboBoxInner({ props, collection, comboBoxRef: r
1426
1471
  let listBoxRef = useRef(null);
1427
1472
  let popoverRef = useRef(null);
1428
1473
  let [labelRef, label] = $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8(!props["aria-label"] && !props["aria-labelledby"]);
1474
+ let [labelElementType, setLabelElementType] = useState("label");
1429
1475
  let { buttonProps, inputProps, listBoxProps, labelProps, descriptionProps, errorMessageProps, valueProps, ...validation } = $bf505c7417d9b616$export$8c18d1b4f7232bbf({
1430
1476
  ...$7230ffa83bc0c2cf$export$ef03459518577ad4(props),
1431
1477
  label,
@@ -1434,24 +1480,26 @@ function $dbdc5e6e7ce01b4b$var$ComboBoxInner({ props, collection, comboBoxRef: r
1434
1480
  listBoxRef,
1435
1481
  popoverRef,
1436
1482
  name: formValue === "text" ? name : void 0,
1437
- validationBehavior
1483
+ validationBehavior,
1484
+ labelElementType
1438
1485
  }, state);
1439
1486
  let [menuWidth, setMenuWidth] = useState(null);
1487
+ let onResize = useCallback(() => {
1488
+ if (inputRef.current && !groupRef.current) {
1489
+ let buttonRect = buttonRef.current?.getBoundingClientRect();
1490
+ let inputRect = inputRef.current.getBoundingClientRect();
1491
+ let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
1492
+ let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;
1493
+ setMenuWidth(maxX - minX + "px");
1494
+ }
1495
+ }, [
1496
+ buttonRef,
1497
+ inputRef,
1498
+ setMenuWidth
1499
+ ]);
1440
1500
  $970072cf4b13fde3$export$683480f191c0e3ea({
1441
1501
  ref: inputRef,
1442
- onResize: useCallback(() => {
1443
- if (inputRef.current && !groupRef.current) {
1444
- let buttonRect = buttonRef.current?.getBoundingClientRect();
1445
- let inputRect = inputRef.current.getBoundingClientRect();
1446
- let minX = buttonRect ? Math.min(buttonRect.left, inputRect.left) : inputRect.left;
1447
- let maxX = buttonRect ? Math.max(buttonRect.right, inputRect.right) : inputRect.right;
1448
- setMenuWidth(maxX - minX + "px");
1449
- }
1450
- }, [
1451
- buttonRef,
1452
- inputRef,
1453
- setMenuWidth
1454
- ])
1502
+ onResize
1455
1503
  });
1456
1504
  let triggerRef = useMemo(() => ({ get current() {
1457
1505
  return groupRef.current || inputRef.current;
@@ -1492,6 +1540,7 @@ function $dbdc5e6e7ce01b4b$var$ComboBoxInner({ props, collection, comboBoxRef: r
1492
1540
  [$dbdc5e6e7ce01b4b$export$c02625b26074192c, state],
1493
1541
  [$43a3b93638fe5db9$export$75b6ee27786ba447, {
1494
1542
  ...labelProps,
1543
+ elementType: labelElementType,
1495
1544
  ref: labelRef
1496
1545
  }],
1497
1546
  [$7705c033048f6da7$export$24d547caef80ccd1, {
@@ -1503,6 +1552,15 @@ function $dbdc5e6e7ce01b4b$var$ComboBoxInner({ props, collection, comboBoxRef: r
1503
1552
  ...inputProps,
1504
1553
  ref: inputRef
1505
1554
  }],
1555
+ [$4b38b5b75ecc6208$export$698f465ec27e93df, {
1556
+ ...inputProps,
1557
+ ref: useCallback((el) => {
1558
+ inputRef.current = el;
1559
+ if (el) setLabelElementType(el.tagName.toLowerCase() === "input" ? "label" : "span");
1560
+ }, []),
1561
+ value: state.inputValue,
1562
+ onChange: (v) => state.setInputValue(v)
1563
+ }],
1506
1564
  [$f2ff30fde7b014be$export$d2f961adcb0afbe, state],
1507
1565
  [$542a13ca2fa5b484$export$9b9a0cd73afb7ca4, {
1508
1566
  ref: popoverRef,
@@ -1642,7 +1700,7 @@ var getSuggestionIcon = (subtype) => {
1642
1700
  */
1643
1701
  var LinkInput = (props) => {
1644
1702
  const { url = "", onChange, label = __("Link", "eightshift-ui-components"), subtitle, help, actions, inline, placeholder = __("Type to search or enter URL", "eightshift-ui-components"), icon = globe, removeIcon = clearAlt, disabled = false, suggestionTypeIconOverride, showSuggestionsWhenEmpty, fetchSuggestions, className, keyboardShortcuts, flat, size = "default", hidden } = props;
1645
- const canShowSuggestions = typeof fetchSuggestions !== "undefined";
1703
+ const canShowSuggestions = fetchSuggestions !== void 0;
1646
1704
  let shouldShowSuggestions = true;
1647
1705
  if (!canShowSuggestions || !showSuggestionsWhenEmpty && url.length < 1) shouldShowSuggestions = false;
1648
1706
  else shouldShowSuggestions = !(showSuggestionsWhenEmpty !== true && url.trim().length < 3 || url.startsWith("/") || url.startsWith("#") || url.startsWith(":") || url.startsWith("mailto") || url.startsWith("tel") || url.startsWith("http") || url.startsWith("www"));
@@ -1,15 +1,15 @@
1
1
  import { t as clsx } from "./clsx-DQoRUQAf.js";
2
- import { d as $4064df0d6f9620e1$export$c9058316764c140e, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-Czi6q2Ub.js";
3
- import { n as $bb39c0fc1c19b34c$export$c57958e35f31ed73 } from "./keyboard-g5Amam-c.js";
4
- import { H as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, j as $2add3ce32c6007eb$export$fedb369cb70207f1 } from "./useHover-CNsbAR0V.js";
5
- import { u as $901761b40e390936$export$2bb74740c4e19def } from "./useCollection-PzY6FI39.js";
2
+ import { d as $4064df0d6f9620e1$export$c9058316764c140e, l as $03e8ab2d84d7657a$export$4338b53315abf666, m as $c7eafbbe1ea5834e$export$535bd6ca7f90a273, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a, u as $bbaa08b3cd72f041$export$9d1611c77c2fe928 } from "./utils-ClM91CuL.js";
3
+ import { n as $bb39c0fc1c19b34c$export$c57958e35f31ed73 } from "./keyboard-Cdqi5ZQQ.js";
4
+ import { D as $2add3ce32c6007eb$export$78551043582a6a98, U as $23f2114a1b82827e$export$e58f029f0fbfdb29, V as $23f2114a1b82827e$export$cd4e5573fbe2b576, j as $2add3ce32c6007eb$export$fedb369cb70207f1 } from "./useHover-CaY3sRjL.js";
5
+ import { d as $901761b40e390936$export$2bb74740c4e19def } from "./useCollection-DqUS7tjk.js";
6
6
  import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
7
- import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "./Heading-BWTs9ckA.js";
8
- import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, f as $d7a937236970dc7f$export$14c98a7594375490, g as $77844860df94ba23$export$ea8f71083e90600f, h as $0644e3663365bfe5$export$ee0f7cc6afcd1c18, m as $081058010ef8962e$export$2317d149ed6f78c4, n as $f2ff30fde7b014be$export$3ddf2d174ce01153, p as $d7a937236970dc7f$export$c6fdb837b070b4ff, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-3XLIaepk.js";
9
- import { t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-zZ7homyI.js";
10
- import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-DpSgtWyu.js";
11
- import { t as Button } from "./button-XSk_8UW7.js";
12
- import { t as __ } from "./build-module-DG6ZK7Ty.js";
7
+ import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "./Heading-BQje2nS2.js";
8
+ import { _ as $58196c8d6a1f38fc$export$1c3ebcada18427bf, f as $d7a937236970dc7f$export$14c98a7594375490, g as $77844860df94ba23$export$ea8f71083e90600f, h as $0644e3663365bfe5$export$ee0f7cc6afcd1c18, m as $081058010ef8962e$export$2317d149ed6f78c4, n as $f2ff30fde7b014be$export$3ddf2d174ce01153, p as $d7a937236970dc7f$export$c6fdb837b070b4ff, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-CldDJ_4u.js";
9
+ import { t as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6 } from "./useOverlayTriggerState-BKmSTK_5.js";
10
+ import { n as $fcc7165e876206c6$export$6d3443f2c48bfc20, t as $fcc7165e876206c6$export$45fda7c47f93fd48 } from "./animation-COc9P6ap.js";
11
+ import { t as Button } from "./button-ldR_tlvk.js";
12
+ import { t as __ } from "./build-module-BISCoQjQ.js";
13
13
  import { clear } from "./icons/ui-icons/clear.js";
14
14
  import { HStack } from "./components/layout/hstack.js";
15
15
  import $3ARPR$react, { createContext, forwardRef, useContext, useEffect, useMemo, useRef, useState } from "react";
@@ -63,12 +63,12 @@ function $6066a2c586ade9e1$export$d699905dd57c73ca() {
63
63
  });
64
64
  };
65
65
  updateSize($6066a2c586ade9e1$var$getViewportSize());
66
- if ($2add3ce32c6007eb$export$fedb369cb70207f1()) window.addEventListener("blur", onBlur, true);
66
+ if ($2add3ce32c6007eb$export$fedb369cb70207f1() && $2add3ce32c6007eb$export$78551043582a6a98()) window.addEventListener("blur", onBlur, true);
67
67
  if (!$6066a2c586ade9e1$var$visualViewport) window.addEventListener("resize", onResize);
68
68
  else $6066a2c586ade9e1$var$visualViewport.addEventListener("resize", onResize);
69
69
  return () => {
70
70
  cancelAnimationFrame(frame);
71
- if ($2add3ce32c6007eb$export$fedb369cb70207f1()) window.removeEventListener("blur", onBlur, true);
71
+ if ($2add3ce32c6007eb$export$fedb369cb70207f1() && $2add3ce32c6007eb$export$78551043582a6a98()) window.removeEventListener("blur", onBlur, true);
72
72
  if (!$6066a2c586ade9e1$var$visualViewport) window.removeEventListener("resize", onResize);
73
73
  else $6066a2c586ade9e1$var$visualViewport.removeEventListener("resize", onResize);
74
74
  };
@@ -200,7 +200,8 @@ function $8b8d26808cb8cb53$var$ModalOverlayInner({ UNSTABLE_portalContainer, ...
200
200
  function $8b8d26808cb8cb53$var$ModalContent(props) {
201
201
  let { modalProps, modalRef, isExiting, isDismissable } = useContext($8b8d26808cb8cb53$var$InternalModalContext);
202
202
  let state = useContext($f2ff30fde7b014be$export$d2f961adcb0afbe);
203
- let ref = $03e8ab2d84d7657a$export$4338b53315abf666(useMemo(() => $4064df0d6f9620e1$export$c9058316764c140e(props.modalRef, modalRef), [props.modalRef, modalRef]));
203
+ let mergedRefs = useMemo(() => $4064df0d6f9620e1$export$c9058316764c140e(props.modalRef, modalRef), [props.modalRef, modalRef]);
204
+ let ref = $03e8ab2d84d7657a$export$4338b53315abf666(mergedRefs);
204
205
  let entering = $fcc7165e876206c6$export$6d3443f2c48bfc20(ref);
205
206
  let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
206
207
  ...props,
@@ -285,7 +286,7 @@ var ModalInternal = (props) => {
285
286
  */
286
287
  var Modal = (props) => {
287
288
  const { triggerLabel, triggerIcon, triggerProps, customTrigger, open } = props;
288
- if (typeof open !== "undefined") return jsx(ModalInternal, { ...props });
289
+ if (open !== void 0) return jsx(ModalInternal, { ...props });
289
290
  return jsxs($f2ff30fde7b014be$export$2e1e1122cf0cba88, { children: [
290
291
  !customTrigger ? jsx(Button, {
291
292
  icon: triggerIcon,
@@ -1,15 +1,15 @@
1
1
  import { t as clsx } from "./clsx-DQoRUQAf.js";
2
- import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czi6q2Ub.js";
3
- import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-BskRMK8G.js";
2
+ import { c as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$df3a06d6289f983e, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$ef03459518577ad4, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-ClM91CuL.js";
3
+ import { t as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7 } from "./I18nProvider-R_4IDnf9.js";
4
4
  import { t as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-CgeMQsGa.js";
5
- import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-UpU4cKPh.js";
6
- import { n as $cd2fa56213693c5e$export$23f548e970bdf099, t as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c } from "./useNumberFieldState-DWvm7CXu.js";
7
- import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-_E2Z5G2l.js";
8
- import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D4y19vs8.js";
9
- import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-DrfR8j9h.js";
5
+ import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5, t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-C4bJkVti.js";
6
+ import { n as $cd2fa56213693c5e$export$23f548e970bdf099, t as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c } from "./useNumberFieldState-DC3XY3DQ.js";
7
+ import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-DHgs_rCq.js";
8
+ import { n as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-CA2_mHEB.js";
9
+ import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03 } from "./useField-B_ibsWst.js";
10
10
  import { t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-BWMVEpwR.js";
11
- import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./useTextField-e8jIFT3s.js";
12
- import { n as ButtonGroup, t as Button } from "./button-XSk_8UW7.js";
11
+ import { a as $3a442827418ebe87$export$f9c6924e160136d1, i as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, n as $41fb335299a4a39e$export$37fb8590cf2c088c, r as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./useTextField-C3QIkMON.js";
12
+ import { n as ButtonGroup, t as Button } from "./button-ldR_tlvk.js";
13
13
  import { BaseControl } from "./components/base-control/base-control.js";
14
14
  import { t as cva } from "./dist-DpXluZqJ.js";
15
15
  import { chevronDown } from "./icons/ui-icons/chevron-down.js";