@midas-ds/components 14.0.0 → 14.1.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 (290) hide show
  1. package/AccordionItem-CAi-XFOc.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-CRIYvCRM.js → Button-CF97piBl.js} +1 -1
  8. package/{Button-B6lxIKPk.js → Button-CGe3Nyos.js} +121 -115
  9. package/CHANGELOG.md +26 -0
  10. package/{Card-CfosvMF5.js → Card-DJ8E5Rzd.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-B1b-6bKq.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-KjnsdbDr.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-D1ZSZ6m-.js} +254 -246
  23. package/ComboBox-Dztk_jtC.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-BogEOseq.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-lsr_1fw4.js} +4 -4
  26. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-CRv3YuXd.js} +191 -188
  27. package/DateInputDivider-CYqm6PZP.cjs +1 -0
  28. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-5k1swaEt.js} +119 -115
  29. package/DateRangePicker-CgNXWOT6.cjs +6 -0
  30. package/Dialog-B1N4Ndyx.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-BUAp30Wc.js} +712 -694
  32. package/Dialog-BgSxz1JW.cjs +1 -0
  33. package/Dialog-PrnV8KTh.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-5rmvcHD_.cjs → Dropdown-DBFLb8Tl.cjs} +1 -1
  37. package/{Dropdown-uC9wc8vd.js → Dropdown-DaARa89l.js} +2 -2
  38. package/{FieldError-C4WBoCRc.cjs → FieldError-Cimgm8qD.cjs} +1 -1
  39. package/{FieldError-C4kD4yJZ.js → FieldError-l3xULRa0.js} +3 -3
  40. package/{FileUpload-01wGpykv.js → FileUpload-CN0HNJ_Y.js} +9 -9
  41. package/{FileUpload-CTbh7Gic.cjs → FileUpload-DHmsupSe.cjs} +1 -1
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-BW3vy9mc.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CV9p0K2n.js → Label-BGMXsSFb.js} +4 -4
  51. package/{Label-CkIRTC0_.cjs → Label-CNTODOFg.cjs} +1 -1
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-JL9l-y7w.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/ListBox-TGCxrXIJ.cjs +1 -0
  61. package/{ListBox-2eEa1l0M.js → ListBox-mOCZvKD4.js} +187 -176
  62. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-CLdTe6-z.js} +3 -3
  63. package/{ListBoxLoadMoreItem-BBE3OF4J.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
  64. package/ListBoxSection-BNBHosou.cjs +1 -0
  65. package/{ListBoxSection-dksiACMZ.js → ListBoxSection-D_kTkvgG.js} +139 -140
  66. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
  67. package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
  68. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  69. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  70. package/{Popover-D7_IfJ3o.js → Popover-CZFi2YGz.js} +2 -2
  71. package/{Popover-BI2Koco0.cjs → Popover-uYTWBGHa.cjs} +1 -1
  72. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  73. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  74. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BGemuJIq.cjs} +1 -1
  75. package/{ProgressBar-B0WEQkyq.js → ProgressBar-DhRmckYM.js} +2 -2
  76. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  77. package/RSPContexts-XUvspq3j.cjs +1 -0
  78. package/Radio-Bp_31Z59.js +340 -0
  79. package/Radio-D3RGVrEd.cjs +1 -0
  80. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-9C96gMvy.js} +58 -58
  81. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-ChfmP_ql.cjs} +2 -2
  82. package/{SearchField-wojUSY2S.js → SearchField-DrEdzWAy.js} +3 -3
  83. package/{SearchField-DnBBlPT7.cjs → SearchField-JaDXLq5W.cjs} +1 -1
  84. package/Select-BCUH-Z7q.cjs +1 -0
  85. package/Select-CpPE78Ke.js +676 -0
  86. package/SelectionIndicator-BiSN1toV.cjs +1 -0
  87. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-ant6jeC1.js} +256 -165
  88. package/SelectionManager-C469yQeD.js +1063 -0
  89. package/SelectionManager-uFYC4wpu.cjs +1 -0
  90. package/{Separator--4b7vckr.js → Separator-B6l5qSpR.js} +2 -2
  91. package/{Separator-COlhRmJF.js → Separator-BWAnBMVN.js} +4 -4
  92. package/{Separator-DcbM84B8.cjs → Separator-DbhmtwDa.cjs} +1 -1
  93. package/{Separator-BQkxEZC9.cjs → Separator-J0pLW4BN.cjs} +1 -1
  94. package/Spinner-D6Fcu_Dp.js +54 -0
  95. package/Spinner-DIapnvIz.cjs +6 -0
  96. package/TabList-C0tRVI6Q.cjs +1 -0
  97. package/TabList-DmkxO7MM.js +394 -0
  98. package/Table-BLqjyYKk.cjs +16 -0
  99. package/{Table-cCSOrPkK.js → Table-CyWZO9uf.js} +707 -703
  100. package/Tag-DJqYiBLR.js +774 -0
  101. package/Tag-FDHGu_WP.cjs +1 -0
  102. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  103. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  104. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  105. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  106. package/{TextArea-B5TsyJxa.cjs → TextArea-CZxwvBcS.cjs} +1 -1
  107. package/{TextArea-Cado2arG.js → TextArea-CrY7P18c.js} +8 -8
  108. package/{TextField-5AI6T1ol.js → TextField-BWea-IT-.js} +10 -10
  109. package/TextField-DsN-kBfh.cjs +1 -0
  110. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  111. package/{Toast-CgXRE33Y.js → Toast-Di3h8A14.js} +12 -12
  112. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-Bh4hP6Lk.js} +82 -78
  113. package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
  114. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  115. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  116. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  117. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  118. package/accordion/index.cjs +1 -1
  119. package/accordion/index.js +1 -1
  120. package/assets/AccordionItem.css +1 -1
  121. package/assets/RangeCalendar.css +1 -1
  122. package/assets/Spinner.css +1 -1
  123. package/assets/TabList.css +1 -1
  124. package/assets/default.css +1 -1
  125. package/breadcrumbs/index.cjs +1 -1
  126. package/breadcrumbs/index.js +1 -1
  127. package/button/index.cjs +1 -1
  128. package/button/index.js +1 -1
  129. package/calendar/index.cjs +1 -1
  130. package/calendar/index.js +1 -1
  131. package/card/index.cjs +1 -1
  132. package/card/index.js +1 -1
  133. package/character-counter/index.cjs +1 -1
  134. package/character-counter/index.js +1 -1
  135. package/checkbox/index.cjs +1 -1
  136. package/checkbox/index.js +2 -2
  137. package/color-scheme-switch/index.cjs +1 -1
  138. package/color-scheme-switch/index.js +1 -1
  139. package/combobox/index.cjs +1 -1
  140. package/combobox/index.js +1 -1
  141. package/date-field/index.cjs +1 -1
  142. package/date-field/index.js +2 -2
  143. package/date-picker/index.cjs +1 -1
  144. package/date-picker/index.js +1 -1
  145. package/dropdown/index.cjs +1 -1
  146. package/dropdown/index.js +1 -1
  147. package/field-error/index.cjs +1 -1
  148. package/field-error/index.js +1 -1
  149. package/file-upload/index.cjs +1 -1
  150. package/file-upload/index.js +1 -1
  151. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  152. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  153. package/heading/index.cjs +1 -1
  154. package/heading/index.js +1 -1
  155. package/index.cjs +1 -1
  156. package/index.js +42 -42
  157. package/info-banner/index.cjs +1 -1
  158. package/info-banner/index.js +1 -1
  159. package/label/index.cjs +1 -1
  160. package/label/index.js +1 -1
  161. package/layout/index.cjs +1 -1
  162. package/layout/index.js +1 -1
  163. package/link/index.cjs +1 -1
  164. package/link/index.js +2 -2
  165. package/link-button/index.cjs +1 -1
  166. package/link-button/index.js +2 -2
  167. package/list-box/index.cjs +1 -1
  168. package/list-box/index.js +2 -2
  169. package/menu/index.cjs +1 -1
  170. package/menu/index.js +2 -2
  171. package/modal/index.cjs +1 -1
  172. package/modal/index.js +2 -2
  173. package/package.json +4 -4
  174. package/popover/index.cjs +1 -1
  175. package/popover/index.js +1 -1
  176. package/progress-bar/index.cjs +1 -1
  177. package/progress-bar/index.js +1 -1
  178. package/radio/index.cjs +1 -1
  179. package/radio/index.js +1 -1
  180. package/scrollIntoView-BVI21Y4-.js +65 -0
  181. package/scrollIntoView-BueMOyGp.cjs +1 -0
  182. package/search-field/index.cjs +1 -1
  183. package/search-field/index.js +1 -1
  184. package/select/index.cjs +1 -1
  185. package/select/index.js +1 -1
  186. package/select/types.d.ts +1 -1
  187. package/select/useMultiSelect.d.ts +2 -2
  188. package/spinner/Spinner.d.ts +5 -1
  189. package/spinner/index.cjs +1 -1
  190. package/spinner/index.js +1 -1
  191. package/table/index.cjs +1 -1
  192. package/table/index.js +1 -1
  193. package/tabs/Tabs.d.ts +2 -9
  194. package/tabs/index.cjs +1 -1
  195. package/tabs/index.d.ts +0 -1
  196. package/tabs/index.js +1 -1
  197. package/tag/index.cjs +1 -1
  198. package/tag/index.js +1 -1
  199. package/text/index.cjs +1 -1
  200. package/text/index.js +1 -1
  201. package/textfield/TextArea.d.ts +3 -2
  202. package/textfield/TextField.d.ts +3 -2
  203. package/textfield/index.cjs +1 -1
  204. package/textfield/index.js +1 -1
  205. package/toast/index.cjs +1 -1
  206. package/toast/index.js +1 -1
  207. package/toggle-button/index.cjs +1 -1
  208. package/toggle-button/index.js +1 -1
  209. package/tooltip/index.cjs +1 -1
  210. package/tooltip/index.js +1 -1
  211. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  212. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  213. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  214. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  215. package/{useField-sSWPm-He.js → useField-BhJ9dM2g.js} +1 -1
  216. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  217. package/{useFilter-DHcouDzv.js → useFilter-BdUU-HQZ.js} +1 -1
  218. package/{useFilter-DlZLqsJD.cjs → useFilter-R2IPvbS8.cjs} +1 -1
  219. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  220. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  221. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  222. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  223. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  224. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  225. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  226. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  227. package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
  228. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-CnpSoDuJ.js} +1 -1
  229. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  230. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-DPiqOr_Z.js} +2 -2
  231. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  232. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  233. package/{useListState-BdC308Sq.cjs → useListState-DBawAMhF.cjs} +1 -1
  234. package/{useListState-D2yPZrFZ.js → useListState-PZF3ahpk.js} +1 -1
  235. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  236. package/usePress-DmU79HEg.cjs +7 -0
  237. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
  238. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
  239. package/{useTextField-DjxrmW7d.js → useTextField-B8pM0p6X.js} +4 -4
  240. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  241. package/utils/types.d.ts +5 -0
  242. package/utils-CtICjCYt.cjs +1 -0
  243. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  244. package/utils-DRIRjPUS.cjs +1 -0
  245. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  246. package/AccordionItem-BJw5IKe0.js +0 -334
  247. package/AccordionItem-DhMimhYo.cjs +0 -1
  248. package/Button-BTX5G3le.cjs +0 -1
  249. package/Checkbox-D-CFY6QF.cjs +0 -1
  250. package/Collection-DaZzboRu.cjs +0 -1
  251. package/ComboBox-C4NybZ32.cjs +0 -1
  252. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  253. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  254. package/Dialog-DLnopN3Z.js +0 -237
  255. package/Dialog-DNu42oLH.cjs +0 -1
  256. package/Dialog-w6EBWT__.cjs +0 -1
  257. package/FocusScope-Dv0F-mG2.cjs +0 -1
  258. package/Group-C2hEIsGV.js +0 -45
  259. package/Group-cuyk9Hsy.cjs +0 -1
  260. package/Layout-CVnlO10z.cjs +0 -16
  261. package/ListBox-Bx9M5vqb.cjs +0 -1
  262. package/ListBoxSection-kujY2gUl.cjs +0 -1
  263. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  264. package/RSPContexts-D8hmBfGm.cjs +0 -1
  265. package/Radio-D6KNkSA2.js +0 -333
  266. package/Radio-DsVsutMH.cjs +0 -1
  267. package/Select-D9h_RQ2k.cjs +0 -1
  268. package/Select-Dc6y8gPR.js +0 -654
  269. package/SelectionManager-D-4ThfPZ.js +0 -1043
  270. package/SelectionManager-FYrDfe5v.cjs +0 -1
  271. package/Spinner-CTha503N.js +0 -47
  272. package/Spinner-DKQ9_SQB.cjs +0 -6
  273. package/TabList-BhC96APe.cjs +0 -1
  274. package/TabList-P5HnizZt.js +0 -393
  275. package/Table-BB8Ag5_3.cjs +0 -16
  276. package/Tag-D2vh0KRD.js +0 -765
  277. package/Tag-D32MGLjS.cjs +0 -1
  278. package/TextField-4xfAzdBI.cjs +0 -1
  279. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  280. package/scrollIntoView-ClEACHUk.js +0 -57
  281. package/scrollIntoView-DRSoJp89.cjs +0 -1
  282. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  283. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  284. package/useObserveElement-BdI4zgd7.js +0 -27
  285. package/useObserveElement-BzEr5D32.cjs +0 -1
  286. package/usePress-Dj3t18Pf.cjs +0 -7
  287. package/utils-I-LGXGYH.cjs +0 -1
  288. package/utils-cBvgilDa.cjs +0 -1
  289. package/variables-B3KEYyhW.cjs +0 -1
  290. package/variables-DzXcMW2k.js +0 -5
@@ -1,41 +1,42 @@
1
1
  import { jsxs as xe, jsx as A } from "react/jsx-runtime";
2
2
  import _, { useRef as y, useMemo as J, useEffect as ce, useState as z, useCallback as de, forwardRef as bu, createContext as Ee } from "react";
3
- import { f as ae, b as De, e as Te, $ as Cu } from "./Button-B6lxIKPk.js";
4
- import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-BMBoiyL7.js";
5
- import { $ as Bu, F as he } from "./FieldError-C4kD4yJZ.js";
3
+ import { f as ae, b as Te, e as De, $ as Cu } from "./Button-CGe3Nyos.js";
4
+ import { $ as mu, c as xu, d as hu, e as fu, a as vu, f as Au } from "./utils-D2iKpxcZ.js";
5
+ import { $ as Bu, F as he } from "./FieldError-l3xULRa0.js";
6
6
  import { $ as Eu } from "./Form-CXcEMuBf.js";
7
- import { $ as ye } from "./Group-C2hEIsGV.js";
8
- import { $ as Fe, a as Du } from "./Input-CkTOajNJ.js";
9
- import { d as Tu, e as yu, f as Se, g as Fu } from "./ListBox-2eEa1l0M.js";
10
- import { p as Su, h as Lu, i as gu, n as Ku } from "./Dialog-DOyFzvUa.js";
11
- import { $ as Le } from "./Text-BpERRete.js";
12
- import { b as ku, c as Pu } from "./Collection-j_iWeuZo.js";
13
- import { $ as Iu } from "./filterDOMProps-wsa9OcNI.js";
14
- import { a as Ou, g as Ru } from "./OverlayArrow-Bh_G2tJ3.js";
15
- import { $ as Vu } from "./useFilter-DHcouDzv.js";
16
- import { d as ju, $ as wu } from "./useFormValidation-DdIIVZ5j.js";
17
- import { e as Gu, f as ge, h as Mu } from "./SelectionManager-D-4ThfPZ.js";
18
- import { $ as zu } from "./useSingleSelectListState-lyai-bC_.js";
19
- import { b as Nu } from "./useListState-D2yPZrFZ.js";
7
+ import { $ as ye } from "./Group-BAd7alBM.js";
8
+ import { $ as Fe, a as Tu } from "./Input-CQzv-D9g.js";
9
+ import { d as Du, e as yu, f as Se, g as Fu } from "./ListBox-mOCZvKD4.js";
10
+ import { p as Su, h as Lu, i as gu, n as ku } from "./Dialog-BUAp30Wc.js";
11
+ import { $ as Le } from "./Text-bqP9NeVg.js";
12
+ import { b as Ku, c as Pu } from "./Collection-BkxwF21i.js";
13
+ import { $ as Ou } from "./filterDOMProps-wsa9OcNI.js";
14
+ import { a as Iu, g as Ru } from "./OverlayArrow-CjGslX2c.js";
15
+ import { $ as Vu } from "./useFilter-BdUU-HQZ.js";
16
+ import { d as ju, $ as wu } from "./useFormValidation-By7G-T7y.js";
17
+ import { e as Gu, f as ge, i as Mu } from "./SelectionManager-C469yQeD.js";
18
+ import { $ as zu } from "./useSingleSelectListState-BLRBEJC7.js";
19
+ import { b as Nu } from "./useListState-PZF3ahpk.js";
20
20
  import { $ as Uu } from "./useControlledState-u436Wbp1.js";
21
21
  import { e as qu, a as fe } from "./mergeProps-Ct8m5-xW.js";
22
- import { c as Wu, b as _u } from "./utils-CrT5PVBA.js";
23
- import { c as Xu } from "./usePress-4yZ5a87p.js";
22
+ import { c as Wu, b as _u } from "./utils-Dxh86KaB.js";
23
+ import { c as Xu } from "./usePress-BqQIhkNY.js";
24
24
  import { $ as ve } from "./useLabels-D24on06F.js";
25
25
  import { $ as Zu } from "./useUpdateEffect-CCDx8D4X.js";
26
- import { o as be } from "./useHover-zCCNtF6g.js";
27
- import { a as Hu } from "./Separator-COlhRmJF.js";
28
- import { c as Ju } from "./ListKeyboardDelegate-Dyu4eFtP.js";
29
- import { $ as Yu } from "./useLocalizedStringFormatter-CSEh15AZ.js";
30
- import { $ as Qu } from "./useTextField-DjxrmW7d.js";
26
+ import { o as be } from "./useHover-DkC5FyNd.js";
27
+ import { $ as Hu } from "./useEvent-smuTnX4G.js";
28
+ import { a as Ju } from "./Separator-BWAnBMVN.js";
29
+ import { a as Yu } from "./ListKeyboardDelegate-BHnZMUhW.js";
30
+ import { $ as Qu } from "./useLocalizedStringFormatter-CSEh15AZ.js";
31
+ import { $ as en } from "./useTextField-B8pM0p6X.js";
31
32
  import { c as Ce } from "./clsx-jbLnTBqA.js";
32
- import { a as en, L as un } from "./Label-CV9p0K2n.js";
33
- import { T as Ae } from "./Text-BQe1I4-r.js";
34
- import { b as nn, L as on, a as tn, c as ln } from "./ListBoxSection-dksiACMZ.js";
35
- import { C as cn } from "./chevron-down-DmZMdOiC.js";
36
- import { u as pn } from "./useLocalizedStringFormatter-aOhh7wdl.js";
37
- import './assets/ComboBox.css';var Ke = {};
38
- Ke = {
33
+ import { a as un, L as nn } from "./Label-BGMXsSFb.js";
34
+ import { T as Ae } from "./Text-BBFWBNAH.js";
35
+ import { b as on, L as tn, a as ln, c as cn } from "./ListBoxSection-D_kTkvgG.js";
36
+ import { C as pn } from "./chevron-down-DmZMdOiC.js";
37
+ import { u as dn } from "./useLocalizedStringFormatter-aOhh7wdl.js";
38
+ import './assets/ComboBox.css';var ke = {};
39
+ ke = {
39
40
  buttonLabel: "عرض المقترحات",
40
41
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
41
42
  one: () => `${u.number(e.optionCount)} خيار`,
@@ -54,8 +55,8 @@ Ke = {
54
55
  listboxLabel: "مقترحات",
55
56
  selectedAnnouncement: (e) => `${e.optionText}، محدد`
56
57
  };
57
- var ke = {};
58
- ke = {
58
+ var Ke = {};
59
+ Ke = {
59
60
  buttonLabel: "Покажи предложения",
60
61
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
61
62
  one: () => `${u.number(e.optionCount)} опция`,
@@ -94,8 +95,8 @@ Pe = {
94
95
  listboxLabel: "Návrhy",
95
96
  selectedAnnouncement: (e) => `${e.optionText}, vybráno`
96
97
  };
97
- var Ie = {};
98
- Ie = {
98
+ var Oe = {};
99
+ Oe = {
99
100
  buttonLabel: "Vis forslag",
100
101
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
101
102
  one: () => `${u.number(e.optionCount)} mulighed tilgængelig`,
@@ -114,8 +115,8 @@ Ie = {
114
115
  listboxLabel: "Forslag",
115
116
  selectedAnnouncement: (e) => `${e.optionText}, valgt`
116
117
  };
117
- var Oe = {};
118
- Oe = {
118
+ var Ie = {};
119
+ Ie = {
119
120
  buttonLabel: "Empfehlungen anzeigen",
120
121
  countAnnouncement: (e, u) => `${u.plural(e.optionCount, {
121
122
  one: () => `${u.number(e.optionCount)} Option`,
@@ -716,11 +717,11 @@ ru = {
716
717
  };
717
718
  var su = {};
718
719
  su = {
719
- "ar-AE": Ke,
720
- "bg-BG": ke,
720
+ "ar-AE": ke,
721
+ "bg-BG": Ke,
721
722
  "cs-CZ": Pe,
722
- "da-DK": Ie,
723
- "de-DE": Oe,
723
+ "da-DK": Oe,
724
+ "de-DE": Ie,
724
725
  "el-GR": Re,
725
726
  "en-US": Ve,
726
727
  "es-ES": je,
@@ -751,37 +752,37 @@ su = {
751
752
  "zh-CN": du,
752
753
  "zh-TW": ru
753
754
  };
754
- function dn(e) {
755
+ function rn(e) {
755
756
  return e && e.__esModule ? e.default : e;
756
757
  }
757
- function rn(e, u) {
758
- let { buttonRef: l, popoverRef: p, inputRef: o, listBoxRef: r, keyboardDelegate: B, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: F, isDisabled: g } = e, h = y(null);
759
- l = l ?? h;
760
- let E = Yu(dn(su), "@react-aria/combobox"), { menuTriggerProps: D, menuProps: T } = Su({
758
+ function sn(e, u) {
759
+ let { buttonRef: i, popoverRef: p, inputRef: t, listBoxRef: d, keyboardDelegate: B, layoutDelegate: b, shouldFocusWrap: x, isReadOnly: F, isDisabled: g } = e, h = y(null);
760
+ i = i ?? h;
761
+ let E = Qu(rn(su), "@react-aria/combobox"), { menuTriggerProps: T, menuProps: D } = Su({
761
762
  type: "listbox",
762
763
  isDisabled: g || F
763
- }, u, l);
764
- Tu.set(u, {
765
- id: T.id
764
+ }, u, i);
765
+ Du.set(u, {
766
+ id: D.id
766
767
  });
767
- let { collection: f } = u, { disabledKeys: S } = u.selectionManager, i = J(() => B || new Ju({
768
+ let { collection: f } = u, { disabledKeys: S } = u.selectionManager, c = J(() => B || new Yu({
768
769
  collection: f,
769
770
  disabledKeys: S,
770
- ref: r,
771
+ ref: d,
771
772
  layoutDelegate: b
772
773
  }), [
773
774
  B,
774
775
  b,
775
776
  f,
776
777
  S,
777
- r
778
+ d
778
779
  ]), { collectionProps: R } = Gu({
779
780
  selectionManager: u.selectionManager,
780
- keyboardDelegate: i,
781
+ keyboardDelegate: c,
781
782
  disallowTypeAhead: !0,
782
783
  disallowEmptySelection: !0,
783
784
  shouldFocusWrap: x,
784
- ref: o,
785
+ ref: t,
785
786
  // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
786
787
  isVirtualized: !0
787
788
  }), Y = Xu(), Q = (n) => {
@@ -789,14 +790,18 @@ function rn(e, u) {
789
790
  switch (n.key) {
790
791
  case "Enter":
791
792
  case "Tab":
792
- if (u.isOpen && n.key === "Enter" && n.preventDefault(), u.isOpen && r.current && u.selectionManager.focusedKey != null && u.selectionManager.isLink(u.selectionManager.focusedKey)) {
793
- let c = r.current.querySelector(`[data-key="${CSS.escape(u.selectionManager.focusedKey.toString())}"]`);
794
- if (n.key === "Enter" && c instanceof HTMLAnchorElement) {
795
- let d = u.collection.getItem(u.selectionManager.focusedKey);
796
- d && Y.open(c, n, d.props.href, d.props.routerOptions);
793
+ if (u.isOpen && n.key === "Enter" && n.preventDefault(), u.isOpen && d.current && u.selectionManager.focusedKey != null) {
794
+ let o = u.collection.getItem(u.selectionManager.focusedKey);
795
+ if (o != null && o.props.href) {
796
+ let r = d.current.querySelector(`[data-key="${CSS.escape(u.selectionManager.focusedKey.toString())}"]`);
797
+ n.key === "Enter" && r instanceof HTMLAnchorElement && Y.open(r, n, o.props.href, o.props.routerOptions), u.close();
798
+ break;
799
+ } else if (o != null && o.props.onAction) {
800
+ o.props.onAction(), u.close();
801
+ break;
797
802
  }
798
- u.close();
799
- } else u.commit();
803
+ }
804
+ u.commit();
800
805
  break;
801
806
  case "Escape":
802
807
  (u.selectedKey !== null || u.inputValue === "" || e.allowsCustomValue) && n.continuePropagation(), u.revert();
@@ -813,12 +818,12 @@ function rn(e, u) {
813
818
  break;
814
819
  }
815
820
  }, a = (n) => {
816
- var c;
817
- let d = (l == null ? void 0 : l.current) && l.current === n.relatedTarget, G = (c = p.current) === null || c === void 0 ? void 0 : c.contains(n.relatedTarget);
818
- d || G || (e.onBlur && e.onBlur(n), u.setFocused(!1));
821
+ var o;
822
+ let r = (i == null ? void 0 : i.current) && i.current === n.relatedTarget, G = (o = p.current) === null || o === void 0 ? void 0 : o.contains(n.relatedTarget);
823
+ r || G || (e.onBlur && e.onBlur(n), u.setFocused(!1));
819
824
  }, N = (n) => {
820
825
  u.isFocused || (e.onFocus && e.onFocus(n), u.setFocused(!0));
821
- }, { isInvalid: ee, validationErrors: P, validationDetails: K } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = Qu({
826
+ }, { isInvalid: ee, validationErrors: P, validationDetails: k } = u.displayValidation, { labelProps: v, inputProps: X, descriptionProps: ue, errorMessageProps: U } = en({
822
827
  ...e,
823
828
  onChange: u.setInputValue,
824
829
  onKeyDown: F ? e.onKeyDown : qu(u.isOpen && R.onKeyDown, Q, e.onKeyDown),
@@ -829,96 +834,98 @@ function rn(e, u) {
829
834
  autoComplete: "off",
830
835
  validate: void 0,
831
836
  [ju]: u
832
- }, o), ne = (n) => {
837
+ }, t), ne = (n) => {
833
838
  if (n.pointerType === "touch") {
834
- var c;
835
- (c = o.current) === null || c === void 0 || c.focus(), u.toggle(null, "manual");
839
+ var o;
840
+ (o = t.current) === null || o === void 0 || o.focus(), u.toggle(null, "manual");
836
841
  }
837
842
  }, s = (n) => {
838
843
  if (n.pointerType !== "touch") {
839
- var c;
840
- (c = o.current) === null || c === void 0 || c.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
844
+ var o;
845
+ (o = t.current) === null || o === void 0 || o.focus(), u.toggle(n.pointerType === "keyboard" || n.pointerType === "virtual" ? "first" : null, "manual");
841
846
  }
842
- }, I = ve({
843
- id: D.id,
847
+ }, O = ve({
848
+ id: T.id,
844
849
  "aria-label": E.format("buttonLabel"),
845
850
  "aria-labelledby": e["aria-labelledby"] || v.id
846
851
  }), V = ve({
847
- id: T.id,
852
+ id: D.id,
848
853
  "aria-label": E.format("listboxLabel"),
849
854
  "aria-labelledby": e["aria-labelledby"] || v.id
850
855
  }), L = y(0), oe = (n) => {
851
856
  if (g || F) return;
852
857
  if (n.timeStamp - L.current < 500) {
853
- var c;
854
- n.preventDefault(), (c = o.current) === null || c === void 0 || c.focus();
858
+ var o;
859
+ n.preventDefault(), (o = t.current) === null || o === void 0 || o.focus();
855
860
  return;
856
861
  }
857
- let d = n.target.getBoundingClientRect(), G = n.changedTouches[0], H = Math.ceil(d.left + 0.5 * d.width), re = Math.ceil(d.top + 0.5 * d.height);
862
+ let r = n.target.getBoundingClientRect(), G = n.changedTouches[0], H = Math.ceil(r.left + 0.5 * r.width), re = Math.ceil(r.top + 0.5 * r.height);
858
863
  if (G.clientX === H && G.clientY === re) {
859
864
  var ie;
860
- n.preventDefault(), (ie = o.current) === null || ie === void 0 || ie.focus(), u.toggle(null, "manual"), L.current = n.timeStamp;
865
+ n.preventDefault(), (ie = t.current) === null || ie === void 0 || ie.focus(), u.toggle(null, "manual"), L.current = n.timeStamp;
861
866
  }
862
867
  }, C = u.selectionManager.focusedKey != null && u.isOpen ? u.collection.getItem(u.selectionManager.focusedKey) : void 0;
863
868
  var q;
864
- let k = (q = C == null ? void 0 : C.parentKey) !== null && q !== void 0 ? q : null;
869
+ let K = (q = C == null ? void 0 : C.parentKey) !== null && q !== void 0 ? q : null;
865
870
  var W;
866
- let O = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(k), j = y(O);
871
+ let I = (W = u.selectionManager.focusedKey) !== null && W !== void 0 ? W : null, Z = y(K), j = y(I);
867
872
  ce(() => {
868
- if (be() && C != null && O != null && O !== j.current) {
869
- let c = u.selectionManager.isSelected(O), d = k != null ? u.collection.getItem(k) : null, G = (d == null ? void 0 : d["aria-label"]) || (typeof (d == null ? void 0 : d.rendered) == "string" ? d.rendered : "") || "";
873
+ if (be() && C != null && I != null && I !== j.current) {
874
+ let o = u.selectionManager.isSelected(I), r = K != null ? u.collection.getItem(K) : null, G = (r == null ? void 0 : r["aria-label"]) || (typeof (r == null ? void 0 : r.rendered) == "string" ? r.rendered : "") || "";
870
875
  var n;
871
876
  let H = E.format("focusAnnouncement", {
872
- isGroupChange: (n = d && k !== Z.current) !== null && n !== void 0 ? n : !1,
877
+ isGroupChange: (n = r && K !== Z.current) !== null && n !== void 0 ? n : !1,
873
878
  groupTitle: G,
874
- groupCount: d ? [
875
- ...ge(d, u.collection)
879
+ groupCount: r ? [
880
+ ...ge(r, u.collection)
876
881
  ].length : 0,
877
882
  optionText: C["aria-label"] || C.textValue || "",
878
- isSelected: c
883
+ isSelected: o
879
884
  });
880
885
  ae(H);
881
886
  }
882
- Z.current = k, j.current = O;
887
+ Z.current = K, j.current = I;
883
888
  });
884
- let w = Hu(u.collection), te = y(w), le = y(u.isOpen);
889
+ let w = Ju(u.collection), te = y(w), le = y(u.isOpen);
885
890
  ce(() => {
886
891
  let n = u.isOpen !== le.current && (u.selectionManager.focusedKey == null || be());
887
892
  if (u.isOpen && (n || w !== te.current)) {
888
- let c = E.format("countAnnouncement", {
893
+ let o = E.format("countAnnouncement", {
889
894
  optionCount: w
890
895
  });
891
- ae(c);
896
+ ae(o);
892
897
  }
893
898
  te.current = w, le.current = u.isOpen;
894
899
  });
895
900
  let pe = y(u.selectedKey);
896
901
  return ce(() => {
897
902
  if (be() && u.isFocused && u.selectedItem && u.selectedKey !== pe.current) {
898
- let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", c = E.format("selectedAnnouncement", {
903
+ let n = u.selectedItem["aria-label"] || u.selectedItem.textValue || "", o = E.format("selectedAnnouncement", {
899
904
  optionText: n
900
905
  });
901
- ae(c);
906
+ ae(o);
902
907
  }
903
908
  pe.current = u.selectedKey;
904
909
  }), ce(() => {
905
910
  if (u.isOpen) return Lu([
906
- o.current,
911
+ t.current,
907
912
  p.current
908
913
  ].filter((n) => n != null));
909
914
  }, [
910
915
  u.isOpen,
911
- o,
916
+ t,
912
917
  p
913
918
  ]), Zu(() => {
914
- !C && o.current && Wu(_u(o.current)) === o.current && Mu(o.current, null);
919
+ !C && t.current && Wu(_u(t.current)) === t.current && Mu(t.current, null);
915
920
  }, [
916
921
  C
917
- ]), {
922
+ ]), Hu(d, "react-aria-item-action", u.isOpen ? () => {
923
+ u.close();
924
+ } : void 0), {
918
925
  labelProps: v,
919
926
  buttonProps: {
920
- ...D,
921
- ...I,
927
+ ...T,
928
+ ...O,
922
929
  excludeFromTabOrder: !0,
923
930
  preventFocusOnPress: !0,
924
931
  onPress: ne,
@@ -927,8 +934,8 @@ function rn(e, u) {
927
934
  },
928
935
  inputProps: fe(X, {
929
936
  role: "combobox",
930
- "aria-expanded": D["aria-expanded"],
931
- "aria-controls": u.isOpen ? T.id : void 0,
937
+ "aria-expanded": T["aria-expanded"],
938
+ "aria-controls": u.isOpen ? D.id : void 0,
932
939
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
933
940
  "aria-autocomplete": "list",
934
941
  "aria-activedescendant": C ? yu(u, C.key) : void 0,
@@ -938,59 +945,60 @@ function rn(e, u) {
938
945
  // This disable's the macOS Safari spell check auto corrections.
939
946
  spellCheck: "false"
940
947
  }),
941
- listBoxProps: fe(T, V, {
948
+ listBoxProps: fe(D, V, {
942
949
  autoFocus: u.focusStrategy || !0,
943
950
  shouldUseVirtualFocus: !0,
944
951
  shouldSelectOnPressUp: !0,
945
952
  shouldFocusOnHover: !0,
946
- linkBehavior: "selection"
953
+ linkBehavior: "selection",
954
+ UNSTABLE_itemBehavior: "action"
947
955
  }),
948
956
  descriptionProps: ue,
949
957
  errorMessageProps: U,
950
958
  isInvalid: ee,
951
959
  validationErrors: P,
952
- validationDetails: K
960
+ validationDetails: k
953
961
  };
954
962
  }
955
- function sn(e) {
963
+ function $n(e) {
956
964
  var u;
957
- let { defaultFilter: l, menuTrigger: p = "input", allowsEmptyCollection: o = !1, allowsCustomValue: r, shouldCloseOnBlur: B = !0 } = e, [b, x] = z(!1), [F, g] = z(!1), [h, E] = z(null), D = (t) => {
958
- e.onSelectionChange && e.onSelectionChange(t), t === i && (W(), C());
965
+ let { defaultFilter: i, menuTrigger: p = "input", allowsEmptyCollection: t = !1, allowsCustomValue: d, shouldCloseOnBlur: B = !0 } = e, [b, x] = z(!1), [F, g] = z(!1), [h, E] = z(null), T = (l) => {
966
+ e.onSelectionChange && e.onSelectionChange(l), l === c && (W(), C());
959
967
  };
960
- var T;
961
- let { collection: f, selectionManager: S, selectedKey: i, setSelectedKey: R, selectedItem: Y, disabledKeys: Q } = zu({
968
+ var D;
969
+ let { collection: f, selectionManager: S, selectedKey: c, setSelectedKey: R, selectedItem: Y, disabledKeys: Q } = zu({
962
970
  ...e,
963
- onSelectionChange: D,
964
- items: (T = e.items) !== null && T !== void 0 ? T : e.defaultItems
965
- }), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, i, f) || "", e.onInputChange), [ee] = z(i), [P] = z(a), K = f, v = J(() => (
971
+ onSelectionChange: T,
972
+ items: (D = e.items) !== null && D !== void 0 ? D : e.defaultItems
973
+ }), [a, N] = Uu(e.inputValue, Be(e.defaultInputValue, c, f) || "", e.onInputChange), [ee] = z(c), [P] = z(a), k = f, v = J(() => (
966
974
  // No default filter if items are controlled.
967
- e.items != null || !l ? f : $n(f, a, l)
975
+ e.items != null || !i ? f : an(f, a, i)
968
976
  ), [
969
977
  f,
970
978
  a,
971
- l,
979
+ i,
972
980
  e.items
973
- ]), [X, ue] = z(v), U = y("focus"), s = Ou({
981
+ ]), [X, ue] = z(v), U = y("focus"), s = Iu({
974
982
  ...e,
975
- onOpenChange: (t) => {
976
- e.onOpenChange && e.onOpenChange(t, t ? U.current : void 0), S.setFocused(t), t || S.setFocusedKey(null);
983
+ onOpenChange: (l) => {
984
+ e.onOpenChange && e.onOpenChange(l, l ? U.current : void 0), S.setFocused(l), l || S.setFocusedKey(null);
977
985
  },
978
986
  isOpen: void 0,
979
987
  defaultOpen: void 0
980
- }), I = (t = null, $) => {
988
+ }), O = (l = null, $) => {
981
989
  let m = $ === "manual" || $ === "focus" && p === "focus";
982
- (o || v.size > 0 || m && K.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, E(t), s.open());
983
- }, V = (t = null, $) => {
990
+ (t || v.size > 0 || m && k.size > 0 || e.items) && (m && !s.isOpen && e.items === void 0 && x(!0), U.current = $, E(l), s.open());
991
+ }, V = (l = null, $) => {
984
992
  let m = $ === "manual" || $ === "focus" && p === "focus";
985
- !(o || v.size > 0 || m && K.size > 0 || e.items) && !s.isOpen || (m && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (U.current = $), oe(t));
993
+ !(t || v.size > 0 || m && k.size > 0 || e.items) && !s.isOpen || (m && !s.isOpen && e.items === void 0 && x(!0), s.isOpen || (U.current = $), oe(l));
986
994
  }, L = de(() => {
987
- ue(b ? K : v);
995
+ ue(b ? k : v);
988
996
  }, [
989
997
  b,
990
- K,
998
+ k,
991
999
  v
992
- ]), oe = de((t = null) => {
993
- s.isOpen && L(), E(t), s.toggle();
1000
+ ]), oe = de((l = null) => {
1001
+ s.isOpen && L(), E(l), s.toggle();
994
1002
  }, [
995
1003
  s,
996
1004
  L
@@ -999,60 +1007,60 @@ function sn(e) {
999
1007
  }, [
1000
1008
  s,
1001
1009
  L
1002
- ]), [q, k] = z(a), W = () => {
1003
- var t, $;
1004
- let m = i != null && ($ = (t = f.getItem(i)) === null || t === void 0 ? void 0 : t.textValue) !== null && $ !== void 0 ? $ : "";
1005
- k(m), N(m);
1010
+ ]), [q, K] = z(a), W = () => {
1011
+ var l, $;
1012
+ let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
1013
+ K(m), N(m);
1006
1014
  };
1007
- var O, Z;
1008
- let j = y((Z = (O = e.selectedKey) !== null && O !== void 0 ? O : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
1015
+ var I, Z;
1016
+ let j = y((Z = (I = e.selectedKey) !== null && I !== void 0 ? I : e.defaultSelectedKey) !== null && Z !== void 0 ? Z : null);
1009
1017
  var w;
1010
- let te = y(i != null && (w = (u = f.getItem(i)) === null || u === void 0 ? void 0 : u.textValue) !== null && w !== void 0 ? w : "");
1018
+ let te = y(c != null && (w = (u = f.getItem(c)) === null || u === void 0 ? void 0 : u.textValue) !== null && w !== void 0 ? w : "");
1011
1019
  ce(() => {
1012
- var t;
1013
- F && (v.size > 0 || o) && !s.isOpen && a !== q && p !== "manual" && I(null, "input"), !b && !o && s.isOpen && v.size === 0 && C(), i != null && i !== j.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && R(null)), i !== j.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && k(a);
1020
+ var l;
1021
+ F && (v.size > 0 || t) && !s.isOpen && a !== q && p !== "manual" && O(null, "input"), !b && !t && s.isOpen && v.size === 0 && C(), c != null && c !== j.current && C(), a !== q && (S.setFocusedKey(null), x(!1), a === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && R(null)), c !== j.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? W() : q !== a && K(a);
1014
1022
  var $;
1015
- let m = i != null && ($ = (t = f.getItem(i)) === null || t === void 0 ? void 0 : t.textValue) !== null && $ !== void 0 ? $ : "";
1016
- !F && i != null && e.inputValue === void 0 && i === j.current && te.current !== m && (k(m), N(m)), j.current = i, te.current = m;
1023
+ let m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
1024
+ !F && c != null && e.inputValue === void 0 && c === j.current && te.current !== m && (K(m), N(m)), j.current = c, te.current = m;
1017
1025
  });
1018
1026
  let le = wu({
1019
1027
  ...e,
1020
1028
  value: J(() => ({
1021
1029
  inputValue: a,
1022
- selectedKey: i
1030
+ selectedKey: c
1023
1031
  }), [
1024
1032
  a,
1025
- i
1033
+ c
1026
1034
  ])
1027
1035
  }), pe = () => {
1028
- r && i == null ? n() : c();
1036
+ d && c == null ? n() : o();
1029
1037
  }, n = () => {
1030
1038
  j.current = null, R(null), C();
1031
- }, c = () => {
1039
+ }, o = () => {
1032
1040
  if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
1033
- var t, $;
1034
- (t = e.onSelectionChange) === null || t === void 0 || t.call(e, i);
1041
+ var l, $;
1042
+ (l = e.onSelectionChange) === null || l === void 0 || l.call(e, c);
1035
1043
  var m;
1036
- let au = i != null && (m = ($ = f.getItem(i)) === null || $ === void 0 ? void 0 : $.textValue) !== null && m !== void 0 ? m : "";
1037
- k(au), C();
1044
+ let au = c != null && (m = ($ = f.getItem(c)) === null || $ === void 0 ? void 0 : $.textValue) !== null && m !== void 0 ? m : "";
1045
+ K(au), C();
1038
1046
  } else
1039
1047
  W(), C();
1040
1048
  };
1041
- const d = () => {
1042
- if (r) {
1043
- var t, $;
1044
- const m = i != null && ($ = (t = f.getItem(i)) === null || t === void 0 ? void 0 : t.textValue) !== null && $ !== void 0 ? $ : "";
1045
- a === m ? c() : n();
1049
+ const r = () => {
1050
+ if (d) {
1051
+ var l, $;
1052
+ const m = c != null && ($ = (l = f.getItem(c)) === null || l === void 0 ? void 0 : l.textValue) !== null && $ !== void 0 ? $ : "";
1053
+ a === m ? o() : n();
1046
1054
  } else
1047
- c();
1055
+ o();
1048
1056
  };
1049
1057
  let G = () => {
1050
- s.isOpen && S.focusedKey != null ? i === S.focusedKey ? c() : R(S.focusedKey) : d();
1051
- }, H = y(a), re = (t) => {
1052
- t ? (H.current = a, p === "focus" && !e.isReadOnly && I(null, "focus")) : (B && d(), a !== H.current && le.commitValidation()), g(t);
1053
- }, ie = J(() => s.isOpen ? b ? K : v : X, [
1058
+ s.isOpen && S.focusedKey != null ? c === S.focusedKey ? o() : R(S.focusedKey) : r();
1059
+ }, H = y(a), re = (l) => {
1060
+ l ? (H.current = a, p === "focus" && !e.isReadOnly && O(null, "focus")) : (B && r(), a !== H.current && le.commitValidation()), g(l);
1061
+ }, ie = J(() => s.isOpen ? b ? k : v : X, [
1054
1062
  s.isOpen,
1055
- K,
1063
+ k,
1056
1064
  v,
1057
1065
  b,
1058
1066
  X
@@ -1065,10 +1073,10 @@ function sn(e) {
1065
1073
  ...s,
1066
1074
  focusStrategy: h,
1067
1075
  toggle: V,
1068
- open: I,
1069
- close: d,
1076
+ open: O,
1077
+ close: r,
1070
1078
  selectionManager: S,
1071
- selectedKey: i,
1079
+ selectedKey: c,
1072
1080
  defaultSelectedKey: me,
1073
1081
  setSelectedKey: R,
1074
1082
  disabledKeys: Q,
@@ -1083,37 +1091,37 @@ function sn(e) {
1083
1091
  revert: pe
1084
1092
  };
1085
1093
  }
1086
- function $n(e, u, l) {
1087
- return new Nu($u(e, e, u, l));
1094
+ function an(e, u, i) {
1095
+ return new Nu($u(e, e, u, i));
1088
1096
  }
1089
- function $u(e, u, l, p) {
1090
- let o = [];
1091
- for (let r of u)
1092
- if (r.type === "section" && r.hasChildNodes) {
1093
- let B = $u(e, ge(r, e), l, p);
1097
+ function $u(e, u, i, p) {
1098
+ let t = [];
1099
+ for (let d of u)
1100
+ if (d.type === "section" && d.hasChildNodes) {
1101
+ let B = $u(e, ge(d, e), i, p);
1094
1102
  [
1095
1103
  ...B
1096
- ].some((b) => b.type === "item") && o.push({
1097
- ...r,
1104
+ ].some((b) => b.type === "item") && t.push({
1105
+ ...d,
1098
1106
  childNodes: B
1099
1107
  });
1100
- } else r.type === "item" && p(r.textValue, l) ? o.push({
1101
- ...r
1102
- }) : r.type !== "item" && o.push({
1103
- ...r
1108
+ } else d.type === "item" && p(d.textValue, i) ? t.push({
1109
+ ...d
1110
+ }) : d.type !== "item" && t.push({
1111
+ ...d
1104
1112
  });
1105
- return o;
1113
+ return t;
1106
1114
  }
1107
- function Be(e, u, l) {
1115
+ function Be(e, u, i) {
1108
1116
  if (e == null) {
1109
- var p, o;
1110
- if (u != null) return (o = (p = l.getItem(u)) === null || p === void 0 ? void 0 : p.textValue) !== null && o !== void 0 ? o : "";
1117
+ var p, t;
1118
+ if (u != null) return (t = (p = i.getItem(u)) === null || p === void 0 ? void 0 : p.textValue) !== null && t !== void 0 ? t : "";
1111
1119
  }
1112
1120
  return e;
1113
1121
  }
1114
- const an = /* @__PURE__ */ Ee(null), bn = /* @__PURE__ */ Ee(null), Cn = /* @__PURE__ */ bu(function(u, l) {
1115
- [u, l] = mu(u, l, an);
1116
- let { children: p, isDisabled: o = !1, isInvalid: r = !1, isRequired: B = !1 } = u, b = J(() => {
1122
+ const bn = /* @__PURE__ */ Ee(null), Cn = /* @__PURE__ */ Ee(null), mn = /* @__PURE__ */ bu(function(u, i) {
1123
+ [u, i] = mu(u, i, bn);
1124
+ let { children: p, isDisabled: t = !1, isInvalid: d = !1, isRequired: B = !1 } = u, b = J(() => {
1117
1125
  var x;
1118
1126
  return /* @__PURE__ */ _.createElement(Se.Provider, {
1119
1127
  value: {
@@ -1121,41 +1129,41 @@ const an = /* @__PURE__ */ Ee(null), bn = /* @__PURE__ */ Ee(null), Cn = /* @__P
1121
1129
  }
1122
1130
  }, typeof p == "function" ? p({
1123
1131
  isOpen: !1,
1124
- isDisabled: o,
1125
- isInvalid: r,
1132
+ isDisabled: t,
1133
+ isInvalid: d,
1126
1134
  isRequired: B,
1127
1135
  defaultChildren: null
1128
1136
  }) : p);
1129
1137
  }, [
1130
1138
  p,
1131
- o,
1132
- r,
1139
+ t,
1140
+ d,
1133
1141
  B,
1134
1142
  u.items,
1135
1143
  u.defaultItems
1136
1144
  ]);
1137
- return /* @__PURE__ */ _.createElement(ku, {
1145
+ return /* @__PURE__ */ _.createElement(Ku, {
1138
1146
  content: b
1139
- }, (x) => /* @__PURE__ */ _.createElement(xn, {
1147
+ }, (x) => /* @__PURE__ */ _.createElement(hn, {
1140
1148
  props: u,
1141
1149
  collection: x,
1142
- comboBoxRef: l
1150
+ comboBoxRef: i
1143
1151
  }));
1144
- }), mn = [
1145
- De,
1152
+ }), xn = [
1146
1153
  Te,
1154
+ De,
1147
1155
  Fe,
1148
1156
  ye,
1149
1157
  Le
1150
1158
  ];
1151
- function xn({ props: e, collection: u, comboBoxRef: l }) {
1152
- let { name: p, formValue: o = "key", allowsCustomValue: r } = e;
1153
- r && (o = "text");
1159
+ function hn({ props: e, collection: u, comboBoxRef: i }) {
1160
+ let { name: p, formValue: t = "key", allowsCustomValue: d } = e;
1161
+ d && (t = "text");
1154
1162
  let { validationBehavior: B } = xu(Eu) || {};
1155
1163
  var b, x;
1156
1164
  let F = (x = (b = e.validationBehavior) !== null && b !== void 0 ? b : B) !== null && x !== void 0 ? x : "native", { contains: g } = Vu({
1157
1165
  sensitivity: "base"
1158
- }), h = sn({
1166
+ }), h = $n({
1159
1167
  defaultFilter: e.defaultFilter || g,
1160
1168
  ...e,
1161
1169
  // If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
@@ -1163,28 +1171,28 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
1163
1171
  children: void 0,
1164
1172
  collection: u,
1165
1173
  validationBehavior: F
1166
- }), E = y(null), D = y(null), T = y(null), f = y(null), [S, i] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...P } = rn({
1174
+ }), E = y(null), T = y(null), D = y(null), f = y(null), [S, c] = hu(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: R, inputProps: Y, listBoxProps: Q, labelProps: a, descriptionProps: N, errorMessageProps: ee, ...P } = sn({
1167
1175
  ...fu(e),
1168
- label: i,
1169
- inputRef: D,
1176
+ label: c,
1177
+ inputRef: T,
1170
1178
  buttonRef: E,
1171
- listBoxRef: T,
1179
+ listBoxRef: D,
1172
1180
  popoverRef: f,
1173
- name: o === "text" ? p : void 0,
1181
+ name: t === "text" ? p : void 0,
1174
1182
  validationBehavior: F
1175
- }, h), [K, v] = z(null), X = de(() => {
1176
- if (D.current) {
1177
- var I;
1178
- let V = (I = E.current) === null || I === void 0 ? void 0 : I.getBoundingClientRect(), L = D.current.getBoundingClientRect(), oe = V ? Math.min(V.left, L.left) : L.left, C = V ? Math.max(V.right, L.right) : L.right;
1183
+ }, h), [k, v] = z(null), X = de(() => {
1184
+ if (T.current) {
1185
+ var O;
1186
+ let V = (O = E.current) === null || O === void 0 ? void 0 : O.getBoundingClientRect(), L = T.current.getBoundingClientRect(), oe = V ? Math.min(V.left, L.left) : L.left, C = V ? Math.max(V.right, L.right) : L.right;
1179
1187
  v(C - oe + "px");
1180
1188
  }
1181
1189
  }, [
1182
1190
  E,
1183
- D,
1191
+ T,
1184
1192
  v
1185
1193
  ]);
1186
1194
  Ru({
1187
- ref: D,
1195
+ ref: T,
1188
1196
  onResize: X
1189
1197
  });
1190
1198
  let ue = J(() => ({
@@ -1201,7 +1209,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
1201
1209
  ...e,
1202
1210
  values: ue,
1203
1211
  defaultClassName: "react-aria-ComboBox"
1204
- }), ne = Iu(e, {
1212
+ }), ne = Ou(e, {
1205
1213
  global: !0
1206
1214
  });
1207
1215
  delete ne.id;
@@ -1209,18 +1217,18 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
1209
1217
  return /* @__PURE__ */ _.createElement(Au, {
1210
1218
  values: [
1211
1219
  [
1212
- bn,
1220
+ Cn,
1213
1221
  h
1214
1222
  ],
1215
1223
  [
1216
- De,
1224
+ Te,
1217
1225
  {
1218
1226
  ...a,
1219
1227
  ref: S
1220
1228
  }
1221
1229
  ],
1222
1230
  [
1223
- Te,
1231
+ De,
1224
1232
  {
1225
1233
  ...R,
1226
1234
  ref: E,
@@ -1231,7 +1239,7 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
1231
1239
  Fe,
1232
1240
  {
1233
1241
  ...Y,
1234
- ref: D
1242
+ ref: T
1235
1243
  }
1236
1244
  ],
1237
1245
  [
@@ -1239,25 +1247,25 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
1239
1247
  h
1240
1248
  ],
1241
1249
  [
1242
- Ku,
1250
+ ku,
1243
1251
  {
1244
1252
  ref: f,
1245
- triggerRef: D,
1246
- scrollRef: T,
1253
+ triggerRef: T,
1254
+ scrollRef: D,
1247
1255
  placement: "bottom start",
1248
1256
  isNonModal: !0,
1249
1257
  trigger: "ComboBox",
1250
1258
  style: {
1251
- "--trigger-width": K
1259
+ "--trigger-width": k
1252
1260
  },
1253
- clearContexts: mn
1261
+ clearContexts: xn
1254
1262
  }
1255
1263
  ],
1256
1264
  [
1257
1265
  Se,
1258
1266
  {
1259
1267
  ...Q,
1260
- ref: T
1268
+ ref: D
1261
1269
  }
1262
1270
  ],
1263
1271
  [
@@ -1288,60 +1296,60 @@ function xn({ props: e, collection: u, comboBoxRef: l }) {
1288
1296
  }, /* @__PURE__ */ _.createElement("div", {
1289
1297
  ...ne,
1290
1298
  ...U,
1291
- ref: l,
1299
+ ref: i,
1292
1300
  slot: e.slot || void 0,
1293
1301
  "data-focused": h.isFocused || void 0,
1294
1302
  "data-open": h.isOpen || void 0,
1295
1303
  "data-disabled": e.isDisabled || void 0,
1296
1304
  "data-invalid": P.isInvalid || void 0,
1297
1305
  "data-required": e.isRequired || void 0
1298
- }), p && o === "key" && /* @__PURE__ */ _.createElement("input", {
1306
+ }), p && t === "key" && /* @__PURE__ */ _.createElement("input", {
1299
1307
  type: "hidden",
1300
1308
  name: p,
1301
1309
  form: e.form,
1302
1310
  value: (s = h.selectedKey) !== null && s !== void 0 ? s : ""
1303
1311
  }));
1304
1312
  }
1305
- const hn = "_combobox_j6di5_1", fn = "_inputField_j6di5_6", vn = "_medium_j6di5_28", An = "_wrap_j6di5_68", Bn = "_button_j6di5_74", En = "_icon_j6di5_106", Dn = "_emptyState_j6di5_112", M = {
1306
- combobox: hn,
1307
- inputField: fn,
1308
- medium: vn,
1309
- wrap: An,
1310
- button: Bn,
1311
- icon: En,
1313
+ const fn = "_combobox_j6di5_1", vn = "_inputField_j6di5_6", An = "_medium_j6di5_28", Bn = "_wrap_j6di5_68", En = "_button_j6di5_74", Tn = "_icon_j6di5_106", Dn = "_emptyState_j6di5_112", M = {
1314
+ combobox: fn,
1315
+ inputField: vn,
1316
+ medium: An,
1317
+ wrap: Bn,
1318
+ button: En,
1319
+ icon: Tn,
1312
1320
  emptyState: Dn
1313
- }, Tn = { showList: "Show list", noResultsFound: "No results found" }, yn = { showList: "Visa lista", noResultsFound: "Inga träffar" }, Fn = {
1314
- en: Tn,
1315
- sv: yn
1321
+ }, yn = { showList: "Show list", noResultsFound: "No results found" }, Fn = { showList: "Visa lista", noResultsFound: "Inga träffar" }, Sn = {
1322
+ en: yn,
1323
+ sv: Fn
1316
1324
  };
1317
- function $o({
1325
+ function bo({
1318
1326
  label: e,
1319
1327
  description: u,
1320
- errorMessage: l,
1328
+ errorMessage: i,
1321
1329
  children: p,
1322
- items: o,
1323
- className: r,
1330
+ items: t,
1331
+ className: d,
1324
1332
  errorPosition: B = "top",
1325
1333
  size: b = "large",
1326
1334
  popover: x,
1327
1335
  ...F
1328
1336
  }) {
1329
- const g = _.useRef(null), h = pn(Fn), E = (D) => {
1330
- var T;
1331
- D.currentTarget.value && ((T = g.current) == null || T.select());
1337
+ const g = _.useRef(null), h = dn(Sn), E = (T) => {
1338
+ var D;
1339
+ T.currentTarget.value && ((D = g.current) == null || D.select());
1332
1340
  };
1333
1341
  return /* @__PURE__ */ xe(
1334
- Cn,
1342
+ mn,
1335
1343
  {
1336
- className: Ce(M.combobox, r),
1344
+ className: Ce(M.combobox, d),
1337
1345
  ...F,
1338
1346
  children: [
1339
- /* @__PURE__ */ A(en, { popover: x, children: e && /* @__PURE__ */ A(un, { children: e }) }),
1347
+ /* @__PURE__ */ A(un, { popover: x, children: e && /* @__PURE__ */ A(nn, { children: e }) }),
1340
1348
  u && /* @__PURE__ */ A(Ae, { slot: "description", children: u }),
1341
- B === "top" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: l }),
1349
+ B === "top" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: i }),
1342
1350
  /* @__PURE__ */ xe("div", { className: M.wrap, children: [
1343
1351
  /* @__PURE__ */ A(
1344
- Du,
1352
+ Tu,
1345
1353
  {
1346
1354
  className: Ce(M.inputField, {
1347
1355
  [M.medium]: b === "medium"
@@ -1363,7 +1371,7 @@ function $o({
1363
1371
  className: M.icon,
1364
1372
  "aria-hidden": "true",
1365
1373
  children: /* @__PURE__ */ A(
1366
- cn,
1374
+ pn,
1367
1375
  {
1368
1376
  size: 20,
1369
1377
  "aria-hidden": !0
@@ -1374,11 +1382,11 @@ function $o({
1374
1382
  }
1375
1383
  )
1376
1384
  ] }),
1377
- B === "bottom" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: l }),
1378
- /* @__PURE__ */ A(nn, { children: /* @__PURE__ */ A(
1379
- on,
1385
+ B === "bottom" && /* @__PURE__ */ A(he, { "data-testid": "fieldError", children: i }),
1386
+ /* @__PURE__ */ A(on, { children: /* @__PURE__ */ A(
1387
+ tn,
1380
1388
  {
1381
- items: o,
1389
+ items: t,
1382
1390
  renderEmptyState: () => /* @__PURE__ */ A(Ae, { className: M.emptyState, children: h.format("noResultsFound") }),
1383
1391
  children: p
1384
1392
  }
@@ -1387,14 +1395,14 @@ function $o({
1387
1395
  }
1388
1396
  );
1389
1397
  }
1390
- function Sn(e) {
1391
- return /* @__PURE__ */ A(tn, { ...e });
1398
+ function Ln(e) {
1399
+ return /* @__PURE__ */ A(ln, { ...e });
1392
1400
  }
1393
- function ao(e) {
1394
- return /* @__PURE__ */ A(ln, { ...e, children: /* @__PURE__ */ A(Pu, { items: e.children, children: (u) => /* @__PURE__ */ A(Sn, { children: u.name }, u.id) }) });
1401
+ function Co(e) {
1402
+ return /* @__PURE__ */ A(cn, { ...e, children: /* @__PURE__ */ A(Pu, { items: e.children, children: (u) => /* @__PURE__ */ A(Ln, { children: u.name }, u.id) }) });
1395
1403
  }
1396
1404
  export {
1397
- $o as C,
1398
- Sn as a,
1399
- ao as b
1405
+ bo as C,
1406
+ Ln as a,
1407
+ Co as b
1400
1408
  };