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