@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
@@ -0,0 +1,678 @@
1
+ import { jsx as n, jsxs as g, Fragment as D } from "react/jsx-runtime";
2
+ import * as P from "react";
3
+ import x, { useMemo as E, useState as V, useCallback as L, useEffect as k, useRef as O } from "react";
4
+ import { c as B } from "./clsx-jbLnTBqA.js";
5
+ import { b as j } from "./utils-D2iKpxcZ.js";
6
+ import { a as R, $ as G, T as W } from "./Tag-DX1X_NZE.js";
7
+ import { $ as H } from "./TextField-DyR61bjZ.js";
8
+ import { c as U } from "./Collection-BkxwF21i.js";
9
+ import { C as I } from "./Checkbox-CdN1D5pD.js";
10
+ import { L as q } from "./ListBox-LJ3VgZMr.js";
11
+ import { b as X, L as J, a as Q } from "./ListBoxSection-DjGs1ndn.js";
12
+ import { C as Y } from "./check-B5h1DvDs.js";
13
+ import { d as Z } from "./useHover-DkC5FyNd.js";
14
+ import { p as ee, q as te } from "./Dialog-D4Py85wi.js";
15
+ import { $ as le, a as ae } from "./ListKeyboardDelegate-BBmpJ-2O.js";
16
+ import { h as oe } from "./SelectionManager-DoNLJm8c.js";
17
+ import { a as w, c as ne, e as re } from "./mergeProps-Ct8m5-xW.js";
18
+ import { $ as ie } from "./filterDOMProps-wsa9OcNI.js";
19
+ import { $ as ce } from "./useField-Bx76iuoW.js";
20
+ import { $ as se, a as de, b as ue } from "./useFormValidation-By7G-T7y.js";
21
+ import { $ as fe } from "./useListState-CP7AKhOX.js";
22
+ import { a as me } from "./VisuallyHidden-DuW70K-5.js";
23
+ import { a as be, L as he } from "./Label-FfEnd4ai.js";
24
+ import { T as pe } from "./Text-BBFWBNAH.js";
25
+ import { X as ge } from "./x-C2xUHAEl.js";
26
+ import { u as N } from "./useLocalizedStringFormatter-aOhh7wdl.js";
27
+ import { $ as ye } from "./useButton-CRgN6aZf.js";
28
+ import { C as $e } from "./chevron-down-DmZMdOiC.js";
29
+ import { $ as ve, F as xe } from "./FieldError-CIxlNQCM.js";
30
+ import './assets/Select2.css';function A(e) {
31
+ return null;
32
+ }
33
+ A.getCollectionNode = function* (t, o) {
34
+ let { childItems: r, title: l, children: i } = t, a = t.title || t.children, s = t.textValue || (typeof a == "string" ? a : "") || t["aria-label"] || "";
35
+ !s && !(o != null && o.suppressTextValueWarning) && process.env.NODE_ENV !== "production" && console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."), yield {
36
+ type: "item",
37
+ props: t,
38
+ rendered: a,
39
+ textValue: s,
40
+ "aria-label": t["aria-label"],
41
+ hasChildNodes: Se(t),
42
+ *childNodes() {
43
+ if (r) for (let c of r) yield {
44
+ type: "item",
45
+ value: c
46
+ };
47
+ else if (l) {
48
+ let c = [];
49
+ x.Children.forEach(i, (u) => {
50
+ c.push({
51
+ type: "item",
52
+ element: u
53
+ });
54
+ }), yield* c;
55
+ }
56
+ }
57
+ };
58
+ };
59
+ function Se(e) {
60
+ return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && x.Children.count(e.children) > 0);
61
+ }
62
+ let _ = A;
63
+ function M(e) {
64
+ return null;
65
+ }
66
+ M.getCollectionNode = function* (t) {
67
+ let { children: o, title: r, items: l } = t;
68
+ yield {
69
+ type: "section",
70
+ props: t,
71
+ hasChildNodes: !0,
72
+ rendered: r,
73
+ "aria-label": t["aria-label"],
74
+ *childNodes() {
75
+ if (typeof o == "function") {
76
+ if (!l) throw new Error("props.children was a function but props.items is missing");
77
+ for (let i of l) yield {
78
+ type: "item",
79
+ value: i,
80
+ renderer: o
81
+ };
82
+ } else {
83
+ let i = [];
84
+ x.Children.forEach(o, (a) => {
85
+ i.push({
86
+ type: "item",
87
+ element: a
88
+ });
89
+ }), yield* i;
90
+ }
91
+ }
92
+ };
93
+ };
94
+ let Ce = M;
95
+ const we = "_wrapper_1rw0v_7", _e = "_trigger_1rw0v_18", Ke = "_medium_1rw0v_32", Pe = "_icon_1rw0v_68", Ve = "_tagGroup_1rw0v_74", ke = "_listBoxItemCheckmark_1rw0v_90", Be = "_triggerContainer_1rw0v_95", Ie = "_selectValueTag_1rw0v_101", Ne = "_clearButton_1rw0v_117", Ae = "_truncate_1rw0v_129", Me = "_checkboxContainer_1rw0v_166", Te = "_selectAll_1rw0v_172", b = {
96
+ wrapper: we,
97
+ trigger: _e,
98
+ medium: Ke,
99
+ icon: Pe,
100
+ tagGroup: Ve,
101
+ listBoxItemCheckmark: ke,
102
+ triggerContainer: Be,
103
+ selectValueTag: Ie,
104
+ clearButton: Ne,
105
+ truncate: Ae,
106
+ checkboxContainer: Me,
107
+ selectAll: Te
108
+ }, T = ({ item: e }) => /* @__PURE__ */ n(
109
+ J,
110
+ {
111
+ ...e.value,
112
+ textValue: e.textValue,
113
+ "aria-label": e.textValue,
114
+ hideSelectionIndicator: !0,
115
+ children: ({ isDisabled: t, isSelected: o, selectionMode: r }) => /* @__PURE__ */ g(D, { children: [
116
+ r === "multiple" ? /* @__PURE__ */ n(
117
+ "div",
118
+ {
119
+ className: b.checkboxContainer,
120
+ "aria-hidden": !0,
121
+ children: /* @__PURE__ */ n(
122
+ I,
123
+ {
124
+ isDisabled: t,
125
+ isSelected: o,
126
+ isReadOnly: !0,
127
+ excludeFromTabOrder: !0,
128
+ "aria-label": e.textValue
129
+ }
130
+ )
131
+ }
132
+ ) : null,
133
+ e.rendered,
134
+ o && r === "single" ? /* @__PURE__ */ n(
135
+ Y,
136
+ {
137
+ size: 20,
138
+ className: b.listBoxItemCheckmark
139
+ }
140
+ ) : null
141
+ ] })
142
+ }
143
+ ), ze = ({ section: e, state: t }) => /* @__PURE__ */ n(X, { ...e.value, children: t.collection.getChildren ? /* @__PURE__ */ n(U, { items: t.collection.getChildren(e.key), children: (o) => /* @__PURE__ */ n(T, { item: o }) }) : null }), Fe = ({
144
+ state: e,
145
+ ...t
146
+ }) => /* @__PURE__ */ n(
147
+ q,
148
+ {
149
+ ...t,
150
+ ...e,
151
+ escapeKeyBehavior: "none",
152
+ onSelectionChange: e.setSelectedKeys,
153
+ items: e.collection,
154
+ children: (o) => o.type === "section" ? /* @__PURE__ */ n(
155
+ ze,
156
+ {
157
+ state: e,
158
+ section: o
159
+ }
160
+ ) : /* @__PURE__ */ n(T, { item: o })
161
+ }
162
+ );
163
+ function De(e, t, o) {
164
+ const { disallowEmptySelection: r, isDisabled: l } = e, i = le({ usage: "search", sensitivity: "base" }), a = E(
165
+ () => new ae(
166
+ t.collection,
167
+ t.disabledKeys,
168
+ null,
169
+ i
170
+ ),
171
+ [t.collection, t.disabledKeys, i]
172
+ ), { menuTriggerProps: s, menuProps: c } = ee(
173
+ {
174
+ isDisabled: l,
175
+ type: "listbox"
176
+ },
177
+ t,
178
+ o
179
+ ), u = (f) => {
180
+ const { selectedKeys: v, selectionMode: F } = t, C = v.values().next().value;
181
+ if (F === "single")
182
+ switch (f.key) {
183
+ case "ArrowLeft": {
184
+ f.preventDefault();
185
+ const $ = v.size > 0 ? a.getKeyAbove(C) : a.getFirstKey();
186
+ $ && t.setSelectedKeys([$]);
187
+ break;
188
+ }
189
+ case "ArrowRight": {
190
+ f.preventDefault();
191
+ const $ = v.size > 0 ? a.getKeyBelow(C) : a.getFirstKey();
192
+ $ && t.setSelectedKeys([$]);
193
+ break;
194
+ }
195
+ }
196
+ }, { typeSelectProps: d } = oe({
197
+ keyboardDelegate: a,
198
+ selectionManager: t.selectionManager,
199
+ onTypeSelect(f) {
200
+ t.setSelectedKeys([f]);
201
+ }
202
+ }), { labelProps: y, fieldProps: h } = ce({
203
+ ...e,
204
+ labelElementType: "span"
205
+ });
206
+ d.onKeyDown = d.onKeyDownCapture, delete d.onKeyDownCapture;
207
+ const m = ie(e, { labelable: !0 }), p = w(d, s, h), S = ne();
208
+ return {
209
+ labelProps: {
210
+ ...y,
211
+ onClick: () => {
212
+ var f;
213
+ e.isDisabled || ((f = o.current) == null || f.focus(), Z("keyboard"));
214
+ }
215
+ },
216
+ triggerProps: w(m, {
217
+ ...p,
218
+ onKeyDown: re(
219
+ p.onKeyDown,
220
+ u,
221
+ e.onKeyDown
222
+ ),
223
+ onKeyUp: e.onKeyUp,
224
+ "aria-labelledby": [
225
+ p["aria-labelledby"],
226
+ p["aria-label"] && !p["aria-labelledby"] ? p.id : null,
227
+ S
228
+ ].filter(Boolean).join(" "),
229
+ onFocus(f) {
230
+ t.isFocused || (e.onFocus && e.onFocus(f), t.setFocused(!0));
231
+ },
232
+ onBlur(f) {
233
+ t.isOpen || (e.onBlur && e.onBlur(f), t.setFocused(!1));
234
+ }
235
+ }),
236
+ valueProps: {
237
+ id: S
238
+ },
239
+ menuProps: {
240
+ ...c,
241
+ disallowEmptySelection: r,
242
+ autoFocus: t.focusStrategy || !0,
243
+ shouldSelectOnPressUp: !0,
244
+ shouldFocusOnHover: !0,
245
+ onBlur: (f) => {
246
+ f.currentTarget.contains(f.relatedTarget) || (e.onBlur && e.onBlur(f), t.setFocused(!1));
247
+ },
248
+ "aria-labelledby": [
249
+ h["aria-labelledby"],
250
+ p["aria-label"] && !h["aria-labelledby"] ? p.id : null
251
+ ].filter(Boolean).join(" ")
252
+ }
253
+ };
254
+ }
255
+ function Ee(e) {
256
+ const {
257
+ collection: t,
258
+ disabledKeys: o,
259
+ selectionManager: r,
260
+ selectionManager: { setSelectedKeys: l, selectedKeys: i, selectionMode: a }
261
+ } = fe(e), s = [], c = i.size !== 0 ? Array.from(i).map((u) => {
262
+ const d = t.getItem(u);
263
+ return d || s.push(u), d;
264
+ }).filter(Boolean) : null;
265
+ return s.length && console.warn(
266
+ `Select: Keys "${s.join(
267
+ ", "
268
+ )}" passed to "selectedKeys" are not present in the collection.`
269
+ ), {
270
+ collection: t,
271
+ disabledKeys: o,
272
+ selectionManager: r,
273
+ selectionMode: a,
274
+ selectedKeys: i,
275
+ setSelectedKeys: l.bind(r),
276
+ selectedItems: c
277
+ };
278
+ }
279
+ function Le(e) {
280
+ const [t, o] = V(!1), r = te(e), l = e.selectionMode === "single", i = Ee({
281
+ ...e,
282
+ onSelectionChange: (d) => {
283
+ e.onSelectionChange && e.onSelectionChange(d), l && r.close();
284
+ }
285
+ }), a = se({
286
+ ...e,
287
+ validationBehavior: "native",
288
+ value: i.selectedKeys
289
+ }), s = i.collection.size === 0, c = !!i.selectedKeys.size, u = L(() => {
290
+ a.resetValidation(), a.commitValidation();
291
+ }, [a]);
292
+ return k(() => {
293
+ l && c && u();
294
+ }, [c, l, u]), {
295
+ ...i,
296
+ ...r,
297
+ close() {
298
+ r.close(), c && u();
299
+ },
300
+ open() {
301
+ s || r.open();
302
+ },
303
+ toggle(d) {
304
+ s || r.toggle(d);
305
+ },
306
+ isFocused: t,
307
+ setFocused: o,
308
+ ...a
309
+ };
310
+ }
311
+ function Oe(e, t = {}) {
312
+ const [o, r] = V({ width: 0, height: 0 }), l = t.delay === void 0 ? 500 : t.delay, i = !!t.includePadding;
313
+ return k(() => {
314
+ if (!e) return;
315
+ const a = new ResizeObserver(
316
+ je(([s]) => {
317
+ const { inlineSize: c, blockSize: u } = i ? s.borderBoxSize[0] : s.contentBoxSize[0];
318
+ r({ width: c, height: u });
319
+ }, l)
320
+ );
321
+ return a.observe(e), () => {
322
+ a.disconnect();
323
+ };
324
+ }, [l, e, i]), o;
325
+ }
326
+ function je(e, t) {
327
+ let o;
328
+ return (r, l) => {
329
+ clearTimeout(o), o = setTimeout(() => {
330
+ e(r, l);
331
+ }, t);
332
+ };
333
+ }
334
+ function Re({
335
+ autoComplete: e,
336
+ name: t,
337
+ isDisabled: o,
338
+ isRequired: r,
339
+ selectRef: l
340
+ }, i, a) {
341
+ const { visuallyHiddenProps: s } = me();
342
+ return de(l, i.selectedKeys, i.setSelectedKeys), ue(
343
+ {
344
+ validationBehavior: "native",
345
+ focus: () => {
346
+ var c;
347
+ return (c = a.current) == null ? void 0 : c.focus();
348
+ }
349
+ },
350
+ i,
351
+ l
352
+ ), {
353
+ containerProps: {
354
+ ...s,
355
+ "aria-hidden": !0,
356
+ // @ts-expect-error - data-a11y-ignore is not a standard attribute
357
+ "data-react-aria-prevent-focus": !0,
358
+ "data-a11y-ignore": "aria-hidden-focus"
359
+ },
360
+ inputProps: {
361
+ style: { display: "none" }
362
+ },
363
+ selectProps: {
364
+ tabIndex: -1,
365
+ autoComplete: e,
366
+ disabled: o,
367
+ required: r,
368
+ name: t,
369
+ value: Array.from(i.selectedKeys).map((c) => c.toString()),
370
+ onChange: (c) => i.setSelectedKeys(c.target.value),
371
+ multiple: !0
372
+ }
373
+ };
374
+ }
375
+ function Ge(e) {
376
+ const { state: t, triggerRef: o, name: r, isDisabled: l } = e, i = `${e.label}-hidden`, a = O(null), { containerProps: s, selectProps: c } = Re(
377
+ { ...e, selectRef: a },
378
+ t,
379
+ o
380
+ );
381
+ return t.collection.size <= 300 ? /* @__PURE__ */ n(
382
+ "div",
383
+ {
384
+ ...s,
385
+ "data-testid": "hidden-select-container",
386
+ children: /* @__PURE__ */ g("label", { children: [
387
+ i,
388
+ /* @__PURE__ */ g(
389
+ "select",
390
+ {
391
+ ...c,
392
+ ref: a,
393
+ children: [
394
+ /* @__PURE__ */ n("option", {}),
395
+ [...t.collection.getKeys()].map((u) => {
396
+ const d = t.collection.getItem(u);
397
+ return d && d.type === "item" ? /* @__PURE__ */ n(
398
+ "option",
399
+ {
400
+ value: d.key,
401
+ children: d.textValue
402
+ },
403
+ d.key
404
+ ) : null;
405
+ })
406
+ ]
407
+ }
408
+ )
409
+ ] })
410
+ }
411
+ ) : r ? /* @__PURE__ */ n(
412
+ "input",
413
+ {
414
+ type: "hidden",
415
+ autoComplete: c.autoComplete,
416
+ name: r,
417
+ disabled: l,
418
+ value: Array.from(t.selectedKeys).map((u) => u.toString()) ?? [""]
419
+ }
420
+ ) : null;
421
+ }
422
+ const We = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", chosen: "chosen" }, He = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", chosen: "valda" }, z = {
423
+ en: We,
424
+ sv: He
425
+ }, Ue = ({
426
+ state: { selectedItems: e },
427
+ isDisabled: t,
428
+ parentWidth: o,
429
+ onClear: r,
430
+ triggerRef: l,
431
+ isClearable: i
432
+ }) => {
433
+ const a = N(z);
434
+ return /* @__PURE__ */ g(
435
+ "div",
436
+ {
437
+ className: b.selectValueTag,
438
+ "data-disabled": t || void 0,
439
+ children: [
440
+ /* @__PURE__ */ n(
441
+ "span",
442
+ {
443
+ className: b.truncate,
444
+ style: { maxWidth: o - 92 },
445
+ children: e != null && e.length && e.length > 1 ? `${e.length} ${a.format("chosen")}` : e == null ? void 0 : e[0].textValue
446
+ }
447
+ ),
448
+ i && /* @__PURE__ */ n(
449
+ "button",
450
+ {
451
+ disabled: t,
452
+ "aria-label": a.format("clearAll"),
453
+ className: b.clearButton,
454
+ onClick: () => {
455
+ var s;
456
+ r(), (s = l == null ? void 0 : l.current) == null || s.focus();
457
+ },
458
+ children: /* @__PURE__ */ n(
459
+ ge,
460
+ {
461
+ width: 20,
462
+ height: 20
463
+ }
464
+ )
465
+ }
466
+ )
467
+ ]
468
+ }
469
+ );
470
+ }, qe = ({
471
+ autoFocus: e,
472
+ excludeFromTabOrder: t,
473
+ isDisabled: o,
474
+ size: r = "large",
475
+ isOpen: l,
476
+ isInvalid: i,
477
+ selectionMode: a,
478
+ state: { selectedItems: s },
479
+ placeholder: c,
480
+ children: u,
481
+ triggerRef: d,
482
+ ...y
483
+ }) => {
484
+ const { buttonProps: h } = ye(
485
+ { autoFocus: e, excludeFromTabOrder: t, isDisabled: o, ...y },
486
+ d
487
+ ), m = a === "multiple";
488
+ return /* @__PURE__ */ g(
489
+ "div",
490
+ {
491
+ className: b.triggerContainer,
492
+ "data-disabled": o || void 0,
493
+ children: [
494
+ /* @__PURE__ */ g(
495
+ "button",
496
+ {
497
+ ...h,
498
+ autoFocus: e,
499
+ className: B(b.trigger, {
500
+ [b.medium]: r === "medium"
501
+ }),
502
+ "data-disabled": o || void 0,
503
+ "data-invalid": i || void 0,
504
+ "data-open": l || void 0,
505
+ ref: d,
506
+ type: "button",
507
+ children: [
508
+ m && !s ? /* @__PURE__ */ n("span", { children: c }) : null,
509
+ m ? null : /* @__PURE__ */ n("span", { children: s ? s[0].textValue : c }),
510
+ /* @__PURE__ */ n(
511
+ "div",
512
+ {
513
+ className: b.icon,
514
+ "aria-hidden": "true",
515
+ children: /* @__PURE__ */ n($e, { size: 20 })
516
+ }
517
+ )
518
+ ]
519
+ }
520
+ ),
521
+ u
522
+ ]
523
+ }
524
+ );
525
+ }, K = ({
526
+ state: e,
527
+ errorMessage: t
528
+ }) => /* @__PURE__ */ n(ve.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ n(xe, { children: t }) }), Xe = P.forwardRef(
529
+ ({ isClearable: e = !0, popover: t, ...o }, r) => {
530
+ const l = {
531
+ selectionMode: "single",
532
+ errorPosition: "top",
533
+ disallowEmptySelection: !e,
534
+ isClearable: e,
535
+ size: "large",
536
+ popover: t,
537
+ ...o
538
+ }, i = j(r), a = Le(l), s = N(z), { labelProps: c, triggerProps: u, valueProps: d, menuProps: y } = De(
539
+ l,
540
+ a,
541
+ i
542
+ ), { width: h } = Oe(i.current, {
543
+ includePadding: !0
544
+ });
545
+ return /* @__PURE__ */ g(
546
+ H,
547
+ {
548
+ ...l,
549
+ className: B(b.wrapper, l.className),
550
+ children: [
551
+ /* @__PURE__ */ n(
552
+ Ge,
553
+ {
554
+ ...l,
555
+ state: a,
556
+ triggerRef: i
557
+ }
558
+ ),
559
+ /* @__PURE__ */ n(be, { popover: t, children: l.label && /* @__PURE__ */ n(
560
+ he,
561
+ {
562
+ ...c,
563
+ "data-disabled": l.isDisabled || void 0,
564
+ children: l.label
565
+ }
566
+ ) }),
567
+ l.description && /* @__PURE__ */ n(pe, { slot: "description", children: l.description }),
568
+ l.errorPosition === "top" && /* @__PURE__ */ n(
569
+ K,
570
+ {
571
+ ...l,
572
+ state: a
573
+ }
574
+ ),
575
+ /* @__PURE__ */ n(
576
+ qe,
577
+ {
578
+ ...l,
579
+ ...u,
580
+ isInvalid: a.displayValidation.isInvalid,
581
+ triggerRef: i,
582
+ state: a,
583
+ children: l.selectionMode === "multiple" && a.selectedItems ? /* @__PURE__ */ n("span", { ...d, children: /* @__PURE__ */ n(
584
+ Ue,
585
+ {
586
+ ...l,
587
+ state: a,
588
+ parentWidth: h,
589
+ onClear: () => a.selectionManager.clearSelection(),
590
+ triggerRef: i
591
+ }
592
+ ) }) : null
593
+ }
594
+ ),
595
+ l.errorPosition === "bottom" && /* @__PURE__ */ n(
596
+ K,
597
+ {
598
+ ...l,
599
+ state: a
600
+ }
601
+ ),
602
+ /* @__PURE__ */ g(
603
+ Q,
604
+ {
605
+ isOpen: a.isOpen,
606
+ onOpenChange: (m) => {
607
+ m || a.close();
608
+ },
609
+ triggerRef: i,
610
+ style: { width: h },
611
+ children: [
612
+ l.isSelectableAll && /* @__PURE__ */ n(
613
+ I,
614
+ {
615
+ isSelected: a.selectionManager.isSelectAll,
616
+ isIndeterminate: !a.selectionManager.isSelectAll && !a.selectionManager.isEmpty,
617
+ className: b.selectAll,
618
+ onChange: () => a.selectionManager.toggleSelectAll(),
619
+ children: s.format("selectAll")
620
+ }
621
+ ),
622
+ /* @__PURE__ */ n(
623
+ Fe,
624
+ {
625
+ ...y,
626
+ state: a
627
+ }
628
+ )
629
+ ]
630
+ }
631
+ ),
632
+ l.showTags && !!a.selectedItems && /* @__PURE__ */ n(
633
+ R,
634
+ {
635
+ "aria-label": s.format("selectedItems"),
636
+ selectionBehavior: "toggle",
637
+ onRemove: (m) => a.selectionManager.toggleSelection(Array.from(m)[0]),
638
+ className: b.tagGroup,
639
+ children: /* @__PURE__ */ n(G, { items: a.selectedItems, children: (m) => /* @__PURE__ */ n(
640
+ W,
641
+ {
642
+ textValue: m.textValue,
643
+ id: m.key,
644
+ dismissable: !0,
645
+ isDisabled: l.isDisabled,
646
+ children: m.textValue
647
+ },
648
+ m.key
649
+ ) })
650
+ }
651
+ )
652
+ ]
653
+ }
654
+ );
655
+ }
656
+ ), Je = P.forwardRef(
657
+ ({ options: e, ...t }, o) => /* @__PURE__ */ n(
658
+ Xe,
659
+ {
660
+ ...t,
661
+ items: e,
662
+ ref: o,
663
+ children: (r) => r.children ? /* @__PURE__ */ n(
664
+ Ce,
665
+ {
666
+ items: r.children,
667
+ title: r.name,
668
+ children: (l) => /* @__PURE__ */ n(_, { textValue: l.textValue, children: l.name })
669
+ },
670
+ r.name
671
+ ) : /* @__PURE__ */ n(_, { textValue: r.textValue, children: r.name })
672
+ }
673
+ )
674
+ );
675
+ Je.displayName = "Select";
676
+ export {
677
+ Je as S
678
+ };