@midas-ds/components 10.2.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/{AccordionItem-Z_c9MpAM.cjs → AccordionItem-BGWiWjxA.cjs} +1 -1
  2. package/{AccordionItem-DZT76sWu.js → AccordionItem-ChHpW8EW.js} +11 -11
  3. package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
  4. package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
  5. package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-CwDUNIqF.js} +34 -34
  6. package/{Breadcrumbs-Cx09jwZZ.cjs → Breadcrumbs-DtjJ1UmU.cjs} +1 -1
  7. package/{Button-iSiWjocA.cjs → Button-BoJl6JGM.cjs} +1 -1
  8. package/{Button-CbFRzRrF.js → Button-Csih3v23.js} +2 -2
  9. package/Button-DjBChs7s.js +340 -0
  10. package/Button-htW9qIsS.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/CHANGELOG.md +20 -0
  14. package/Card-0G0mj9q5.cjs +1 -0
  15. package/{Card-CaKKKv9k.js → Card-yrtGzt70.js} +5 -5
  16. package/CharacterCounter-BL_nZHya.js +22 -0
  17. package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-CHcTDHO-.cjs} +1 -1
  18. package/Checkbox-5HINZdGu.js +263 -0
  19. package/Checkbox-DqcPg5hz.cjs +1 -0
  20. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  21. package/CheckboxGroup-CLgixk2p.js +243 -0
  22. package/{Collection-Csx3L9gh.cjs → Collection-BIDsXNhi.cjs} +1 -1
  23. package/{Collection-C5ONNBqd.js → Collection-Brgjpkne.js} +4 -4
  24. package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-BpzQ7g0b.js} +9 -9
  25. package/{ColorSchemeSwitch-JRrCyYVv.cjs → ColorSchemeSwitch-C-qWuqkU.cjs} +2 -2
  26. package/{ComboBox-BCaqPEIH.js → ComboBox-CVDyp2a-.js} +331 -327
  27. package/ComboBox-CWJUg9Xx.cjs +1 -0
  28. package/DateField-DeDhiYnW.cjs +1 -0
  29. package/DateField-DhU3q-rG.js +47 -0
  30. package/DateInputDivider-ADvOavHw.cjs +1 -0
  31. package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-CF4xWsMT.js} +71 -75
  32. package/DateRangePicker-BsAHhy99.cjs +6 -0
  33. package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-ziD1_k1W.js} +194 -194
  34. package/Dialog-B8GTYbvu.cjs +1 -0
  35. package/{Dialog-CwTEAujZ.cjs → Dialog-BOrYdX50.cjs} +1 -1
  36. package/{Dialog-Bxx8cBEq.js → Dialog-CXNu48AC.js} +25 -25
  37. package/{Dialog-CYxThuMl.js → Dialog-D14MbJ7o.js} +564 -540
  38. package/{DragAndDrop-HvycSrKY.cjs → DragAndDrop-DNth776R.cjs} +1 -1
  39. package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-o3ruz_SR.js} +8 -8
  40. package/{Dropdown-CaGon9OR.cjs → Dropdown-CJ6My6EI.cjs} +1 -1
  41. package/{Dropdown-nkjzsVYX.js → Dropdown-Df58j43I.js} +2 -2
  42. package/FieldError-CAcjosk_.js +46 -0
  43. package/FieldError-CKBb2-mp.cjs +1 -0
  44. package/{FileUpload-DYRZ0M9F.cjs → FileUpload-CxCOtyB9.cjs} +2 -2
  45. package/{FileUpload-ULwcYDxs.js → FileUpload-D6qoEAjn.js} +149 -148
  46. package/FocusScope-5c9SVBcR.cjs +1 -0
  47. package/{FocusScope-DwIqdYpQ.js → FocusScope-CxkURfoc.js} +16 -16
  48. package/{Group-CeSsSQVC.js → Group-B6EslsHZ.js} +5 -5
  49. package/{Heading-BY5-QN4S.js → Heading-BFtiin0g.js} +7 -7
  50. package/{Heading-DoJAtYZf.cjs → Heading-mHhCbGjY.cjs} +1 -1
  51. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  52. package/{InfoBanner-CVIBFSWx.js → InfoBanner-BLM-TJJ6.js} +15 -14
  53. package/InfoBanner-C2kTIsrB.cjs +1 -0
  54. package/{Input-D8Ku_FQz.js → Input-BTzwcf72.js} +10 -10
  55. package/Label-7Ybb99CE.cjs +1 -0
  56. package/Label-BwJrdqEE.js +70 -0
  57. package/{Layout-BWeHHnqU.cjs → Layout-1g6bMH62.cjs} +2 -2
  58. package/{Layout-CCt_2L1k.js → Layout-Ey8flY7E.js} +9 -9
  59. package/{Link-DsnCtNeI.cjs → Link-B88l_oaE.cjs} +1 -1
  60. package/{Link-SHMbeyIP.cjs → Link-BQhauBuw.cjs} +1 -1
  61. package/{Link-uFowN4qv.js → Link-DX5BbBnn.js} +1 -1
  62. package/{Link-B-nus-FT.js → Link-yNO2-sqx.js} +17 -17
  63. package/LinkButton-CBpGLETx.cjs +6 -0
  64. package/LinkButton-o6uS1XsR.js +69 -0
  65. package/ListBox-DP9M4H6R.cjs +1 -0
  66. package/{ListBox-DOi_y_Lt.js → ListBox-GnVK_Pdq.js} +72 -73
  67. package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DPBrtXyv.cjs} +1 -1
  68. package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-D_J3jlP0.js} +1 -1
  69. package/{ListBoxSection-DGCP6xpf.cjs → ListBoxSection-BGaigBnG.cjs} +1 -1
  70. package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-C0BGnpB4.js} +9 -9
  71. package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-DNI8GQtX.js} +24 -15
  72. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  73. package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CDLXPTew.js} +44 -44
  74. package/Popover-BGGXeD54.js +38 -0
  75. package/Popover-CqNWzPf-.cjs +1 -0
  76. package/{ProgressBar-gmAzSsrz.js → ProgressBar-DMSg-Prr.js} +2 -2
  77. package/ProgressBar-Jbg28j2a.cjs +1 -0
  78. package/Radio-BwqrdhQE.cjs +1 -0
  79. package/{Radio-_ukSkxPT.js → Radio-Cz29wPXd.js} +71 -71
  80. package/RangeCalendar-BehUaydF.cjs +11 -0
  81. package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-RAlAHlNL.js} +25 -27
  82. package/{SearchField-6yBGiojX.cjs → SearchField-CxMwDeUM.cjs} +2 -2
  83. package/{SearchField-DYl2uo7o.js → SearchField-IlvZ3Kh6.js} +11 -11
  84. package/Select-2q1iSzAX.cjs +1 -0
  85. package/{Select-PvCqY7Lp.js → Select-BVQZtoi9.js} +232 -232
  86. package/{SelectionManager-6H88Cv6B.js → SelectionManager-B4ORduja.js} +26 -27
  87. package/SelectionManager-CwYux2h3.cjs +1 -0
  88. package/{Separator-LYnFqh4L.js → Separator-Cu9fYKUM.js} +19 -20
  89. package/Separator-DECIYLtZ.cjs +1 -0
  90. package/{Spinner-DAJtfxqJ.cjs → Spinner-P35rvvsl.cjs} +1 -1
  91. package/Table-B40CGLT-.cjs +16 -0
  92. package/{Table-B_N7wUmA.js → Table-F4oYBtUM.js} +69 -73
  93. package/{Tabs-Ct6D83aR.js → Tabs-B4oZJkZG.js} +39 -39
  94. package/{Tabs-Dtcl2oK2.cjs → Tabs-DA2qXhzb.cjs} +1 -1
  95. package/Tag-DPAGmcMK.cjs +1 -0
  96. package/{Tag-g6HN-YCv.js → Tag-Du7GvSv2.js} +151 -154
  97. package/Text-BoXuUVVH.js +15 -0
  98. package/{Text-BN-g1iWi.js → Text-jWWg0B20.js} +1 -1
  99. package/TextArea-C7JZ_pQd.cjs +1 -0
  100. package/TextArea-XeBCSyzl.js +191 -0
  101. package/TextField-BgNdhZi_.cjs +1 -0
  102. package/{TextField-DBaRuNj7.js → TextField-C-hTPukq.js} +16 -16
  103. package/Toast-AbDA1BOs.cjs +1 -0
  104. package/{Toast-CjpldAI8.js → Toast-Btg21Xge.js} +32 -31
  105. package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-B5yz1tm2.js} +7 -7
  106. package/{ToggleButtonGroup-BuU_6dYe.cjs → ToggleButtonGroup-BFDoj0P6.cjs} +1 -1
  107. package/{Tooltip-BAIjaYax.js → Tooltip-CMLs7WMw.js} +33 -33
  108. package/{Tooltip-CiWg4zIC.cjs → Tooltip-DeBuBKhS.cjs} +1 -1
  109. package/{VisuallyHidden-CtXvK_Tw.cjs → VisuallyHidden-CLWHbz2n.cjs} +1 -1
  110. package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-ZCYf65q4.js} +8 -8
  111. package/accordion/index.cjs +1 -1
  112. package/accordion/index.js +1 -1
  113. package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
  114. package/assets/Button.css +1 -1
  115. package/assets/Label.css +1 -1
  116. package/assets/LinkButton.css +1 -1
  117. package/assets/Popover.css +1 -0
  118. package/badge/index.cjs +1 -1
  119. package/badge/index.js +1 -1
  120. package/breadcrumbs/index.cjs +1 -1
  121. package/breadcrumbs/index.js +1 -1
  122. package/button/index.cjs +1 -1
  123. package/button/index.js +1 -1
  124. package/calendar/index.cjs +1 -1
  125. package/calendar/index.js +1 -1
  126. package/card/index.cjs +1 -1
  127. package/card/index.js +1 -1
  128. package/character-counter/index.cjs +1 -1
  129. package/character-counter/index.js +1 -1
  130. package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
  131. package/checkbox/Checkbox.d.ts +2 -2
  132. package/checkbox/CheckboxGroup.d.ts +8 -8
  133. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  134. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  135. package/checkbox/CheckboxInner.d.ts +2 -0
  136. package/checkbox/SingleCheckbox.d.ts +3 -0
  137. package/checkbox/context.d.ts +3 -0
  138. package/checkbox/index.cjs +1 -1
  139. package/checkbox/index.d.ts +2 -1
  140. package/checkbox/index.js +2 -2
  141. package/checkbox/intl/translations.json.d.ts +35 -0
  142. package/checkbox/types.d.ts +14 -0
  143. package/checkbox/useSelectAll.d.ts +7 -0
  144. package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
  145. package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
  146. package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/ComboBox.d.ts +3 -1
  150. package/combobox/index.cjs +1 -1
  151. package/combobox/index.js +1 -1
  152. package/{context-B8cn10po.js → context-C81gPYvC.js} +11 -11
  153. package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
  154. package/date-field/DateField.d.ts +3 -0
  155. package/date-field/index.cjs +1 -1
  156. package/date-field/index.js +2 -2
  157. package/date-picker/DatePicker.d.ts +3 -0
  158. package/date-picker/DateRangePicker.d.ts +3 -0
  159. package/date-picker/index.cjs +1 -1
  160. package/date-picker/index.js +1 -1
  161. package/dropdown/index.cjs +1 -1
  162. package/dropdown/index.js +1 -1
  163. package/field-error/index.cjs +1 -1
  164. package/field-error/index.js +1 -1
  165. package/file-upload/FileUpload.d.ts +3 -0
  166. package/file-upload/index.cjs +1 -1
  167. package/file-upload/index.js +1 -1
  168. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-BhFcYrwL.js} +1 -1
  169. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DDJu9WHU.cjs} +1 -1
  170. package/heading/index.cjs +1 -1
  171. package/heading/index.js +1 -1
  172. package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
  173. package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
  174. package/index.cjs +1 -1
  175. package/index.d.ts +1 -0
  176. package/index.js +80 -78
  177. package/inertValue-B3AFhVG4.cjs +1 -0
  178. package/info-BZwphdye.js +15 -0
  179. package/info-CIEIENo6.cjs +6 -0
  180. package/info-banner/index.cjs +1 -1
  181. package/info-banner/index.js +1 -1
  182. package/label/InfoPopover.d.ts +9 -0
  183. package/label/LabelWrapper.d.ts +11 -0
  184. package/label/index.cjs +1 -1
  185. package/label/index.d.ts +1 -0
  186. package/label/index.js +1 -1
  187. package/layout/index.cjs +1 -1
  188. package/layout/index.js +1 -1
  189. package/link/index.cjs +1 -1
  190. package/link/index.js +2 -2
  191. package/link-button/index.cjs +1 -1
  192. package/link-button/index.js +2 -2
  193. package/list-box/index.cjs +1 -1
  194. package/list-box/index.js +2 -2
  195. package/modal/index.cjs +1 -1
  196. package/modal/index.js +2 -2
  197. package/package.json +1 -1
  198. package/popover/Popover.d.ts +7 -0
  199. package/popover/index.cjs +1 -0
  200. package/popover/index.d.ts +1 -0
  201. package/popover/index.js +4 -0
  202. package/progress-bar/index.cjs +1 -1
  203. package/progress-bar/index.js +1 -1
  204. package/radio/Radio.d.ts +3 -0
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-C8doLzDd.cjs +1 -0
  208. package/scrollIntoView-Hwb_aaNf.js +87 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/index.cjs +1 -1
  212. package/select/index.js +1 -1
  213. package/spinner/index.cjs +1 -1
  214. package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
  215. package/table/index.cjs +1 -1
  216. package/table/index.js +1 -1
  217. package/tabs/index.cjs +1 -1
  218. package/tabs/index.js +1 -1
  219. package/tag/index.cjs +1 -1
  220. package/tag/index.js +1 -1
  221. package/text/index.js +1 -1
  222. package/textfield/TextFieldBase.d.ts +2 -0
  223. package/textfield/index.cjs +1 -1
  224. package/textfield/index.js +1 -1
  225. package/toast/index.cjs +1 -1
  226. package/toast/index.js +1 -1
  227. package/toggle-button/index.cjs +1 -1
  228. package/toggle-button/index.js +1 -1
  229. package/tooltip/index.cjs +1 -1
  230. package/tooltip/index.js +1 -1
  231. package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
  232. package/{useButton-C-Lq7CNY.js → useButton-B8dB9sot.js} +6 -6
  233. package/{useButton-B1Fa-6qE.cjs → useButton-cpNi-fY4.cjs} +1 -1
  234. package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-CnxoJ4jF.cjs} +1 -1
  235. package/{useDateFormatter-C53Uxdli.js → useDateFormatter-EHm4auIg.js} +2 -2
  236. package/{useEvent-CjkbBniY.cjs → useEvent-DxBxMX2V.cjs} +1 -1
  237. package/{useEvent-Cyd2ZL0c.js → useEvent-IsD2Awnh.js} +1 -1
  238. package/useField-CXKYU74k.cjs +1 -0
  239. package/{useField-BPMAlIbU.js → useField-DvpGZkw_.js} +7 -7
  240. package/useFilter-BTgDWHVx.cjs +1 -0
  241. package/{useFilter-ChIbnALW.js → useFilter-CUq74PQ2.js} +1 -1
  242. package/{useFocusRing-BDGH3lpn.js → useFocusRing-XnR3cZjO.js} +1 -1
  243. package/useFocusable-C8uh8K4g.js +125 -0
  244. package/useFocusable-NUVSFcRC.cjs +1 -0
  245. package/{useFormValidation-R8hQIjWP.js → useFormValidation-BIGzfO9h.js} +5 -5
  246. package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-C-1mZUQe.js} +2 -2
  247. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  248. package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-CnBDT86u.js} +14 -14
  249. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  250. package/{useHover-qRAon4nS.js → useHover-DjIHtjGN.js} +17 -17
  251. package/{useLabels-BZjoZA1Z.js → useLabels-BDwkBYbE.js} +1 -1
  252. package/{useListState-Ca2-uZMO.cjs → useListState-Bx8u4IFG.cjs} +1 -1
  253. package/{useListState-DFQ9d-uE.js → useListState-CrZFZffI.js} +7 -7
  254. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  255. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  256. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  257. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  258. package/useObserveElement-MhzEsCkX.cjs +1 -0
  259. package/usePress-0AjDbW9R.cjs +7 -0
  260. package/{usePress-CUJ3pMOw.js → usePress-CNjmDzap.js} +48 -48
  261. package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-0AGHxvy3.js} +1 -1
  262. package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-Cl3KV5E1.cjs} +1 -1
  263. package/{useTextField-CtUDWsUl.cjs → useTextField--czJtyNd.cjs} +1 -1
  264. package/{useTextField-5OZQPyOW.js → useTextField-Cw-33OP_.js} +11 -11
  265. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  266. package/{utils-HNTsIwux.js → utils-DIMfEPAt.js} +10 -10
  267. package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
  268. package/Button-DnhqHU01.cjs +0 -1
  269. package/Button-ZOQy9Ivu.js +0 -78
  270. package/Button.module-CMMhIrkn.js +0 -14
  271. package/Button.module-DO5s9hOk.cjs +0 -1
  272. package/Card-C0BFW3wJ.cjs +0 -1
  273. package/CharacterCounter-CPGdboVJ.js +0 -22
  274. package/Checkbox-CvFsn_FL.js +0 -380
  275. package/Checkbox-DSxGAJX2.cjs +0 -1
  276. package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
  277. package/CheckboxGroup-Dij9zKlF.js +0 -54
  278. package/ComboBox-gveQKHU3.cjs +0 -1
  279. package/DateField-CAQlzuDD.js +0 -46
  280. package/DateField-deVVFwKA.cjs +0 -1
  281. package/DateInputDivider-DnUxETEC.cjs +0 -1
  282. package/DateRangePicker-BzfitoK0.cjs +0 -6
  283. package/Dialog-Bd5hK360.cjs +0 -1
  284. package/FieldError-BZw8UzBk.cjs +0 -1
  285. package/FieldError-CZikNDxX.js +0 -28
  286. package/FieldError-DqdfJ3fs.cjs +0 -1
  287. package/FieldError-Dv3bBEjh.js +0 -23
  288. package/FocusScope-NaPbvuuS.cjs +0 -1
  289. package/InfoBanner-BS-dAfzO.cjs +0 -1
  290. package/Label-C9ivwkAd.js +0 -21
  291. package/Label-CUV21CAv.cjs +0 -1
  292. package/Label-DkDOsmUF.js +0 -16
  293. package/Label-IMWAyoKb.cjs +0 -1
  294. package/LinkButton-CuBilDML.js +0 -69
  295. package/LinkButton-CymMrcGL.cjs +0 -6
  296. package/ListBox-CDOsQChA.cjs +0 -1
  297. package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
  298. package/LiveAnnouncer-B6177m92.js +0 -51
  299. package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
  300. package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
  301. package/LocalizedStringFormatter-D-4Qyql0.js +0 -77
  302. package/NumberFormatter-DewVDY5w.cjs +0 -1
  303. package/NumberFormatter-DgOUVrge.js +0 -119
  304. package/PressResponder-C06O3Z5P.cjs +0 -1
  305. package/PressResponder-CVEg5kND.js +0 -33
  306. package/ProgressBar-Bkw9zavs.cjs +0 -1
  307. package/ProgressBar-CEX2WNoW.js +0 -77
  308. package/ProgressBar-Dqh3ftSP.cjs +0 -1
  309. package/Radio-CDKrvQe4.cjs +0 -1
  310. package/RangeCalendar-cbCKBPZv.cjs +0 -11
  311. package/Select-CpHjd1tp.cjs +0 -1
  312. package/SelectionManager-C5NGBzvz.cjs +0 -1
  313. package/Separator-nPra6kD-.cjs +0 -1
  314. package/Table-D9vNc_y-.cjs +0 -16
  315. package/Tag-CVFkzg3s.cjs +0 -1
  316. package/Text-B_H68Tvq.js +0 -15
  317. package/TextArea-DSiQ578a.js +0 -206
  318. package/TextArea-cVyGBRbL.cjs +0 -1
  319. package/TextField-B70CL2qz.cjs +0 -1
  320. package/Toast-DrkOGy4d.cjs +0 -1
  321. package/focusSafely-Bqfo_DH7.cjs +0 -1
  322. package/focusSafely-C48ucRUz.js +0 -56
  323. package/inertValue-BWmZ1afe.cjs +0 -1
  324. package/scrollIntoView-ClEACHUk.js +0 -57
  325. package/scrollIntoView-DRSoJp89.cjs +0 -1
  326. package/useCollator-C_ozeWLo.cjs +0 -1
  327. package/useCollator-CgZcHC8N.js +0 -11
  328. package/useDescription-CVKhFa3c.js +0 -32
  329. package/useDescription-DmQYSEES.cjs +0 -1
  330. package/useField-B1RU0GKs.cjs +0 -1
  331. package/useFilter-CtIwF2qW.cjs +0 -1
  332. package/useFocusable-CaedRTpB.js +0 -74
  333. package/useFocusable-CuPQ7Cm5.cjs +0 -1
  334. package/useHasTabbableChild-DgphNvnk.cjs +0 -1
  335. package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
  336. package/useLabel-DDdAJ1JO.js +0 -23
  337. package/useLabel-m_S5xkHy.cjs +0 -1
  338. package/useLocalizedStringFormatter-D07YB2e1.js +0 -22
  339. package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
  340. package/useObserveElement-BzEr5D32.cjs +0 -1
  341. package/usePress-BFa6cT9o.cjs +0 -7
@@ -1,53 +1,51 @@
1
1
  import { jsx as a, jsxs as b, Fragment as T } from "react/jsx-runtime";
2
2
  import * as k from "react";
3
- import v, { useMemo as F, useState as D, useCallback as E, useEffect as O, useRef as A } from "react";
3
+ import v, { useMemo as F, useState as D, useCallback as E, useEffect as L, useRef as O } from "react";
4
4
  import { c as P } from "./clsx-OuTLNxxd.js";
5
- import { d as K, c as L, n as q, e as z } from "./utils-HNTsIwux.js";
6
- import { a as R, $ as j, T as G } from "./Tag-g6HN-YCv.js";
7
- import { $ as H } from "./TextField-DBaRuNj7.js";
8
- import { c as W } from "./Collection-C5ONNBqd.js";
9
- import { C as B } from "./Checkbox-CvFsn_FL.js";
10
- import { L as U, c as X, a as J, b as Q } from "./ListBoxSection-C1aLKL9p.js";
5
+ import { c as K, e as A, n as q, l as z } from "./utils-DIMfEPAt.js";
6
+ import { a as R, $ as j, T as G } from "./Tag-Du7GvSv2.js";
7
+ import { $ as W } from "./TextField-C-hTPukq.js";
8
+ import { c as H } from "./Collection-Brgjpkne.js";
9
+ import { C as B } from "./Checkbox-5HINZdGu.js";
10
+ import { L as U, c as X, a as J, b as Q } from "./ListBoxSection-C0BGnpB4.js";
11
11
  import { C as Y } from "./check-CLF6Yxza.js";
12
- import { t as Z } from "./useHover-qRAon4nS.js";
13
- import { o as ee, p as te } from "./Dialog-CYxThuMl.js";
14
- import { $ as le } from "./ListKeyboardDelegate-DNOzQ8nc.js";
15
- import { g as oe } from "./SelectionManager-6H88Cv6B.js";
16
- import { $ as ae } from "./filterDOMProps-D6KHYVBX.js";
17
- import { $ as ie } from "./useCollator-CgZcHC8N.js";
18
- import { $ as ne } from "./useField-BPMAlIbU.js";
19
- import { $ as re, a as ce, b as se } from "./useFormValidation-R8hQIjWP.js";
20
- import { $ as de } from "./useListState-DFQ9d-uE.js";
12
+ import { s as Z } from "./useHover-DjIHtjGN.js";
13
+ import { o as ee, p as te } from "./Dialog-D14MbJ7o.js";
14
+ import { $ as le, a as oe } from "./ListKeyboardDelegate-DNI8GQtX.js";
15
+ import { g as ae } from "./SelectionManager-B4ORduja.js";
16
+ import { $ as ne } from "./filterDOMProps-D6KHYVBX.js";
17
+ import { $ as ie } from "./useField-DvpGZkw_.js";
18
+ import { $ as re, a as ce, b as se } from "./useFormValidation-BIGzfO9h.js";
19
+ import { $ as de } from "./useListState-CrZFZffI.js";
21
20
  import { u as ue } from "./useObserveElement-BdI4zgd7.js";
22
- import { a as fe } from "./VisuallyHidden-D-4z1VgU.js";
23
- import { L as me } from "./Label-C9ivwkAd.js";
24
- import { T as pe } from "./Text-BN-g1iWi.js";
25
- import { L as be } from "./ListBoxButton-O6zN3P4W.js";
26
- import { X as he } from "./x-JK7i-TQC.js";
27
- import { $ as ge } from "./useButton-C-Lq7CNY.js";
28
- import { C as ye } from "./chevron-down-Cd1bkzXT.js";
29
- import { $ as $e } from "./FieldError-CZikNDxX.js";
30
- import { F as xe } from "./FieldError-Dv3bBEjh.js";
21
+ import { a as fe } from "./VisuallyHidden-ZCYf65q4.js";
22
+ import { a as me, L as pe } from "./Label-BwJrdqEE.js";
23
+ import { T as be } from "./Text-jWWg0B20.js";
24
+ import { L as he } from "./ListBoxButton-D_J3jlP0.js";
25
+ import { X as ge } from "./x-JK7i-TQC.js";
26
+ import { $ as ye } from "./useButton-B8dB9sot.js";
27
+ import { C as $e } from "./chevron-down-Cd1bkzXT.js";
28
+ import { $ as xe, F as ve } from "./FieldError-CAcjosk_.js";
31
29
  import './assets/Select.css';function V(e) {
32
30
  return null;
33
31
  }
34
- V.getCollectionNode = function* (t, i) {
35
- let { childItems: l, title: n, children: o } = t, r = t.title || t.children, d = t.textValue || (typeof r == "string" ? r : "") || t["aria-label"] || "";
36
- !d && !(i != null && i.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 {
32
+ V.getCollectionNode = function* (t, n) {
33
+ let { childItems: r, title: o, children: i } = t, l = t.title || t.children, d = t.textValue || (typeof l == "string" ? l : "") || t["aria-label"] || "";
34
+ !d && !(n != null && n.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 {
37
35
  type: "item",
38
36
  props: t,
39
- rendered: r,
37
+ rendered: l,
40
38
  textValue: d,
41
39
  "aria-label": t["aria-label"],
42
- hasChildNodes: ve(t),
40
+ hasChildNodes: Se(t),
43
41
  *childNodes() {
44
- if (l) for (let c of l) yield {
42
+ if (r) for (let c of r) yield {
45
43
  type: "item",
46
44
  value: c
47
45
  };
48
- else if (n) {
46
+ else if (o) {
49
47
  let c = [];
50
- v.Children.forEach(o, (u) => {
48
+ v.Children.forEach(i, (u) => {
51
49
  c.push({
52
50
  type: "item",
53
51
  element: u
@@ -57,7 +55,7 @@ V.getCollectionNode = function* (t, i) {
57
55
  }
58
56
  };
59
57
  };
60
- function ve(e) {
58
+ function Se(e) {
61
59
  return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && v.Children.count(e.children) > 0);
62
60
  }
63
61
  let _ = V;
@@ -65,63 +63,64 @@ function I(e) {
65
63
  return null;
66
64
  }
67
65
  I.getCollectionNode = function* (t) {
68
- let { children: i, title: l, items: n } = t;
66
+ let { children: n, title: r, items: o } = t;
69
67
  yield {
70
68
  type: "section",
71
69
  props: t,
72
70
  hasChildNodes: !0,
73
- rendered: l,
71
+ rendered: r,
74
72
  "aria-label": t["aria-label"],
75
73
  *childNodes() {
76
- if (typeof i == "function") {
77
- if (!n) throw new Error("props.children was a function but props.items is missing");
78
- for (let o of n) yield {
74
+ if (typeof n == "function") {
75
+ if (!o) throw new Error("props.children was a function but props.items is missing");
76
+ for (let i of o) yield {
79
77
  type: "item",
80
- value: o,
81
- renderer: i
78
+ value: i,
79
+ renderer: n
82
80
  };
83
81
  } else {
84
- let o = [];
85
- v.Children.forEach(i, (r) => {
86
- o.push({
82
+ let i = [];
83
+ v.Children.forEach(n, (l) => {
84
+ i.push({
87
85
  type: "item",
88
- element: r
86
+ element: l
89
87
  });
90
- }), yield* o;
88
+ }), yield* i;
91
89
  }
92
90
  }
93
91
  };
94
92
  };
95
- let Se = I;
96
- const Ce = "_wrapper_1rlqo_10", Ke = "_trigger_1rlqo_21", _e = "_medium_1rlqo_35", we = "_icon_1rlqo_71", ke = "_tagGroup_1rlqo_77", Pe = "_listBoxItemCheckmark_1rlqo_93", Be = "_triggerContainer_1rlqo_98", Ve = "_selectValueTag_1rlqo_104", Ie = "_clearButton_1rlqo_120", Ne = "_truncate_1rlqo_132", Me = "_checkboxContainer_1rlqo_169", p = {
97
- wrapper: Ce,
98
- trigger: Ke,
99
- medium: _e,
100
- icon: we,
101
- tagGroup: ke,
102
- listBoxItemCheckmark: Pe,
103
- triggerContainer: Be,
104
- selectValueTag: Ve,
105
- clearButton: Ie,
106
- truncate: Ne,
107
- checkboxContainer: Me
93
+ let Ce = I;
94
+ const Ke = "_wrapper_1rlqo_10", _e = "_trigger_1rlqo_21", we = "_medium_1rlqo_35", ke = "_icon_1rlqo_71", Pe = "_tagGroup_1rlqo_77", Be = "_listBoxItemCheckmark_1rlqo_93", Ve = "_triggerContainer_1rlqo_98", Ie = "_selectValueTag_1rlqo_104", Ne = "_clearButton_1rlqo_120", Me = "_truncate_1rlqo_132", Te = "_checkboxContainer_1rlqo_169", p = {
95
+ wrapper: Ke,
96
+ trigger: _e,
97
+ medium: we,
98
+ icon: ke,
99
+ tagGroup: Pe,
100
+ listBoxItemCheckmark: Be,
101
+ triggerContainer: Ve,
102
+ selectValueTag: Ie,
103
+ clearButton: Ne,
104
+ truncate: Me,
105
+ checkboxContainer: Te
108
106
  }, N = ({ item: e }) => /* @__PURE__ */ a(
109
107
  J,
110
108
  {
111
109
  ...e.value,
112
110
  textValue: e.textValue,
113
- children: ({ isDisabled: t, isSelected: i, selectionMode: l }) => /* @__PURE__ */ b(T, { children: [
114
- l === "multiple" ? /* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
111
+ children: ({ isDisabled: t, isSelected: n, selectionMode: r }) => /* @__PURE__ */ b(T, { children: [
112
+ r === "multiple" ? /* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
115
113
  B,
116
114
  {
117
115
  isDisabled: t,
118
- isSelected: i,
116
+ isSelected: n,
119
117
  isReadOnly: !0,
120
- excludeFromTabOrder: !0
118
+ excludeFromTabOrder: !0,
119
+ "aria-label": e.textValue
121
120
  }
122
121
  ) }) : null,
123
122
  e.rendered,
124
- i && l === "single" ? /* @__PURE__ */ a(
123
+ n && r === "single" ? /* @__PURE__ */ a(
125
124
  Y,
126
125
  {
127
126
  size: 20,
@@ -130,7 +129,7 @@ const Ce = "_wrapper_1rlqo_10", Ke = "_trigger_1rlqo_21", _e = "_medium_1rlqo_35
130
129
  ) : null
131
130
  ] })
132
131
  }
133
- ), Te = ({ section: e, state: t }) => /* @__PURE__ */ a(X, { ...e.value, children: t.collection.getChildren ? /* @__PURE__ */ a(W, { items: t.collection.getChildren(e.key), children: (i) => /* @__PURE__ */ a(N, { item: i }) }) : null }), Fe = ({
132
+ ), Fe = ({ section: e, state: t }) => /* @__PURE__ */ a(X, { ...e.value, children: t.collection.getChildren ? /* @__PURE__ */ a(H, { items: t.collection.getChildren(e.key), children: (n) => /* @__PURE__ */ a(N, { item: n }) }) : null }), De = ({
134
133
  state: e,
135
134
  ...t
136
135
  }) => /* @__PURE__ */ a(
@@ -141,66 +140,66 @@ const Ce = "_wrapper_1rlqo_10", Ke = "_trigger_1rlqo_21", _e = "_medium_1rlqo_35
141
140
  escapeKeyBehavior: "none",
142
141
  onSelectionChange: e.setSelectedKeys,
143
142
  items: e.collection,
144
- children: (i) => i.type === "section" ? /* @__PURE__ */ a(
145
- Te,
143
+ children: (n) => n.type === "section" ? /* @__PURE__ */ a(
144
+ Fe,
146
145
  {
147
146
  state: e,
148
- section: i
147
+ section: n
149
148
  }
150
- ) : /* @__PURE__ */ a(N, { item: i })
149
+ ) : /* @__PURE__ */ a(N, { item: n })
151
150
  }
152
151
  );
153
- function De(e, t, i) {
154
- const { disallowEmptySelection: l, isDisabled: n } = e, o = ie({ usage: "search", sensitivity: "base" }), r = F(
155
- () => new le(
152
+ function Ee(e, t, n) {
153
+ const { disallowEmptySelection: r, isDisabled: o } = e, i = le({ usage: "search", sensitivity: "base" }), l = F(
154
+ () => new oe(
156
155
  t.collection,
157
156
  t.disabledKeys,
158
157
  null,
159
- o
158
+ i
160
159
  ),
161
- [t.collection, t.disabledKeys, o]
160
+ [t.collection, t.disabledKeys, i]
162
161
  ), { menuTriggerProps: d, menuProps: c } = ee(
163
162
  {
164
- isDisabled: n,
163
+ isDisabled: o,
165
164
  type: "listbox"
166
165
  },
167
166
  t,
168
- i
167
+ n
169
168
  ), u = (f) => {
170
169
  const { selectedKeys: x, selectionMode: M } = t, C = x.values().next().value;
171
170
  if (M === "single")
172
171
  switch (f.key) {
173
172
  case "ArrowLeft": {
174
173
  f.preventDefault();
175
- const y = x.size > 0 ? r.getKeyAbove(C) : r.getFirstKey();
174
+ const y = x.size > 0 ? l.getKeyAbove(C) : l.getFirstKey();
176
175
  y && t.setSelectedKeys([y]);
177
176
  break;
178
177
  }
179
178
  case "ArrowRight": {
180
179
  f.preventDefault();
181
- const y = x.size > 0 ? r.getKeyBelow(C) : r.getFirstKey();
180
+ const y = x.size > 0 ? l.getKeyBelow(C) : l.getFirstKey();
182
181
  y && t.setSelectedKeys([y]);
183
182
  break;
184
183
  }
185
184
  }
186
- }, { typeSelectProps: s } = oe({
187
- keyboardDelegate: r,
185
+ }, { typeSelectProps: s } = ae({
186
+ keyboardDelegate: l,
188
187
  selectionManager: t.selectionManager,
189
188
  onTypeSelect(f) {
190
189
  t.setSelectedKeys([f]);
191
190
  }
192
- }), { labelProps: m, fieldProps: g } = ne({
191
+ }), { labelProps: g, fieldProps: m } = ie({
193
192
  ...e,
194
193
  labelElementType: "span"
195
194
  });
196
195
  s.onKeyDown = s.onKeyDownCapture, delete s.onKeyDownCapture;
197
- const $ = ae(e, { labelable: !0 }), h = K(s, d, g), S = L();
196
+ const $ = ne(e, { labelable: !0 }), h = K(s, d, m), S = A();
198
197
  return {
199
198
  labelProps: {
200
- ...m,
199
+ ...g,
201
200
  onClick: () => {
202
201
  var f;
203
- e.isDisabled || ((f = i.current) == null || f.focus(), Z("keyboard"));
202
+ e.isDisabled || ((f = n.current) == null || f.focus(), Z("keyboard"));
204
203
  }
205
204
  },
206
205
  triggerProps: K($, {
@@ -228,7 +227,7 @@ function De(e, t, i) {
228
227
  },
229
228
  menuProps: {
230
229
  ...c,
231
- disallowEmptySelection: l,
230
+ disallowEmptySelection: r,
232
231
  autoFocus: t.focusStrategy || !0,
233
232
  shouldSelectOnPressUp: !0,
234
233
  shouldFocusOnHover: !0,
@@ -236,19 +235,19 @@ function De(e, t, i) {
236
235
  f.currentTarget.contains(f.relatedTarget) || (e.onBlur && e.onBlur(f), t.setFocused(!1));
237
236
  },
238
237
  "aria-labelledby": [
239
- g["aria-labelledby"],
240
- h["aria-label"] && !g["aria-labelledby"] ? h.id : null
238
+ m["aria-labelledby"],
239
+ h["aria-label"] && !m["aria-labelledby"] ? h.id : null
241
240
  ].filter(Boolean).join(" ")
242
241
  }
243
242
  };
244
243
  }
245
- function Ee(e) {
244
+ function Le(e) {
246
245
  const {
247
246
  collection: t,
248
- disabledKeys: i,
249
- selectionManager: l,
250
- selectionManager: { setSelectedKeys: n, selectedKeys: o, selectionMode: r }
251
- } = de(e), d = [], c = o.size !== 0 ? Array.from(o).map((u) => {
247
+ disabledKeys: n,
248
+ selectionManager: r,
249
+ selectionManager: { setSelectedKeys: o, selectedKeys: i, selectionMode: l }
250
+ } = de(e), d = [], c = i.size !== 0 ? Array.from(i).map((u) => {
252
251
  const s = t.getItem(u);
253
252
  return s || d.push(u), s;
254
253
  }).filter(Boolean) : null;
@@ -258,64 +257,64 @@ function Ee(e) {
258
257
  )}" passed to "selectedKeys" are not present in the collection.`
259
258
  ), {
260
259
  collection: t,
261
- disabledKeys: i,
262
- selectionManager: l,
263
- selectionMode: r,
264
- selectedKeys: o,
265
- setSelectedKeys: n.bind(l),
260
+ disabledKeys: n,
261
+ selectionManager: r,
262
+ selectionMode: l,
263
+ selectedKeys: i,
264
+ setSelectedKeys: o.bind(r),
266
265
  selectedItems: c
267
266
  };
268
267
  }
269
268
  function Oe(e) {
270
- const [t, i] = D(!1), l = te(e), n = e.selectionMode === "single", o = Ee({
269
+ const [t, n] = D(!1), r = te(e), o = e.selectionMode === "single", i = Le({
271
270
  ...e,
272
271
  onSelectionChange: (s) => {
273
- e.onSelectionChange && e.onSelectionChange(s), n && l.close();
272
+ e.onSelectionChange && e.onSelectionChange(s), o && r.close();
274
273
  }
275
- }), r = re({
274
+ }), l = re({
276
275
  ...e,
277
276
  validationBehavior: "native",
278
- value: o.selectedKeys
279
- }), d = o.collection.size === 0, c = !!o.selectedKeys.size, u = E(() => {
280
- r.resetValidation(), r.commitValidation();
281
- }, [r]);
282
- return O(() => {
283
- n && c && u();
284
- }, [c, n, u]), {
285
- ...o,
286
- ...l,
277
+ value: i.selectedKeys
278
+ }), d = i.collection.size === 0, c = !!i.selectedKeys.size, u = E(() => {
279
+ l.resetValidation(), l.commitValidation();
280
+ }, [l]);
281
+ return L(() => {
282
+ o && c && u();
283
+ }, [c, o, u]), {
284
+ ...i,
285
+ ...r,
287
286
  close() {
288
- l.close(), c && u();
287
+ r.close(), c && u();
289
288
  },
290
289
  open() {
291
- d || l.open();
290
+ d || r.open();
292
291
  },
293
292
  toggle(s) {
294
- d || l.toggle(s);
293
+ d || r.toggle(s);
295
294
  },
296
295
  isFocused: t,
297
- setFocused: i,
298
- ...r
296
+ setFocused: n,
297
+ ...l
299
298
  };
300
299
  }
301
300
  function Ae({
302
301
  autoComplete: e,
303
302
  name: t,
304
- isDisabled: i,
305
- isRequired: l,
306
- selectRef: n
307
- }, o, r) {
303
+ isDisabled: n,
304
+ isRequired: r,
305
+ selectRef: o
306
+ }, i, l) {
308
307
  const { visuallyHiddenProps: d } = fe();
309
- return ce(n, o.selectedKeys, o.setSelectedKeys), se(
308
+ return ce(o, i.selectedKeys, i.setSelectedKeys), se(
310
309
  {
311
310
  validationBehavior: "native",
312
311
  focus: () => {
313
312
  var c;
314
- return (c = r.current) == null ? void 0 : c.focus();
313
+ return (c = l.current) == null ? void 0 : c.focus();
315
314
  }
316
315
  },
317
- o,
318
- n
316
+ i,
317
+ o
319
318
  ), {
320
319
  containerProps: {
321
320
  ...d,
@@ -330,20 +329,20 @@ function Ae({
330
329
  selectProps: {
331
330
  tabIndex: -1,
332
331
  autoComplete: e,
333
- disabled: i,
334
- required: l,
332
+ disabled: n,
333
+ required: r,
335
334
  name: t,
336
- value: Array.from(o.selectedKeys).map((c) => c.toString()),
337
- onChange: (c) => o.setSelectedKeys(c.target.value),
335
+ value: Array.from(i.selectedKeys).map((c) => c.toString()),
336
+ onChange: (c) => i.setSelectedKeys(c.target.value),
338
337
  multiple: !0
339
338
  }
340
339
  };
341
340
  }
342
- function Le(e) {
343
- const { state: t, triggerRef: i, name: l, isDisabled: n } = e, o = `${e.label}-hidden`, r = A(null), { containerProps: d, selectProps: c } = Ae(
344
- { ...e, selectRef: r },
341
+ function qe(e) {
342
+ const { state: t, triggerRef: n, name: r, isDisabled: o } = e, i = `${e.label}-hidden`, l = O(null), { containerProps: d, selectProps: c } = Ae(
343
+ { ...e, selectRef: l },
345
344
  t,
346
- i
345
+ n
347
346
  );
348
347
  return t.collection.size <= 300 ? /* @__PURE__ */ a(
349
348
  "div",
@@ -351,12 +350,12 @@ function Le(e) {
351
350
  ...d,
352
351
  "data-testid": "hidden-select-container",
353
352
  children: /* @__PURE__ */ b("label", { children: [
354
- o,
353
+ i,
355
354
  /* @__PURE__ */ b(
356
355
  "select",
357
356
  {
358
357
  ...c,
359
- ref: r,
358
+ ref: l,
360
359
  children: [
361
360
  /* @__PURE__ */ a("option", {}),
362
361
  [...t.collection.getKeys()].map((u) => {
@@ -375,24 +374,24 @@ function Le(e) {
375
374
  )
376
375
  ] })
377
376
  }
378
- ) : l ? /* @__PURE__ */ a(
377
+ ) : r ? /* @__PURE__ */ a(
379
378
  "input",
380
379
  {
381
380
  type: "hidden",
382
381
  autoComplete: c.autoComplete,
383
- name: l,
384
- disabled: n,
382
+ name: r,
383
+ disabled: o,
385
384
  value: Array.from(t.selectedKeys).map((u) => u.toString()) ?? [""]
386
385
  }
387
386
  ) : null;
388
387
  }
389
- const qe = ({
388
+ const ze = ({
390
389
  state: { selectedItems: e },
391
390
  isDisabled: t,
392
- parentWidth: i,
393
- onClear: l,
394
- triggerRef: n,
395
- isClearable: o
391
+ parentWidth: n,
392
+ onClear: r,
393
+ triggerRef: o,
394
+ isClearable: i
396
395
  }) => /* @__PURE__ */ b(
397
396
  "div",
398
397
  {
@@ -403,22 +402,22 @@ const qe = ({
403
402
  "span",
404
403
  {
405
404
  className: p.truncate,
406
- style: { maxWidth: i - 92 },
405
+ style: { maxWidth: n - 92 },
407
406
  children: e != null && e.length && e.length > 1 ? `${e.length} valda` : e == null ? void 0 : e[0].textValue
408
407
  }
409
408
  ),
410
- o && /* @__PURE__ */ a(
409
+ i && /* @__PURE__ */ a(
411
410
  "button",
412
411
  {
413
412
  disabled: t,
414
413
  "aria-label": "Rensa alla",
415
414
  className: p.clearButton,
416
415
  onClick: () => {
417
- var r;
418
- l(), (r = n == null ? void 0 : n.current) == null || r.focus();
416
+ var l;
417
+ r(), (l = o == null ? void 0 : o.current) == null || l.focus();
419
418
  },
420
419
  children: /* @__PURE__ */ a(
421
- he,
420
+ ge,
422
421
  {
423
422
  width: 20,
424
423
  height: 20
@@ -428,41 +427,41 @@ const qe = ({
428
427
  )
429
428
  ]
430
429
  }
431
- ), ze = ({
430
+ ), Re = ({
432
431
  autoFocus: e,
433
432
  excludeFromTabOrder: t,
434
- isDisabled: i,
435
- size: l = "large",
436
- isOpen: n,
437
- isInvalid: o,
438
- selectionMode: r,
433
+ isDisabled: n,
434
+ size: r = "large",
435
+ isOpen: o,
436
+ isInvalid: i,
437
+ selectionMode: l,
439
438
  state: { selectedItems: d },
440
439
  placeholder: c,
441
440
  children: u,
442
441
  triggerRef: s,
443
- ...m
442
+ ...g
444
443
  }) => {
445
- const { buttonProps: g } = ge(
446
- { autoFocus: e, excludeFromTabOrder: t, isDisabled: i, ...m },
444
+ const { buttonProps: m } = ye(
445
+ { autoFocus: e, excludeFromTabOrder: t, isDisabled: n, ...g },
447
446
  s
448
- ), $ = r === "multiple";
447
+ ), $ = l === "multiple";
449
448
  return /* @__PURE__ */ b(
450
449
  "div",
451
450
  {
452
451
  className: p.triggerContainer,
453
- "data-disabled": i || void 0,
452
+ "data-disabled": n || void 0,
454
453
  children: [
455
454
  /* @__PURE__ */ b(
456
455
  "button",
457
456
  {
458
- ...g,
457
+ ...m,
459
458
  autoFocus: e,
460
459
  className: P(p.trigger, {
461
- [p.medium]: l === "medium"
460
+ [p.medium]: r === "medium"
462
461
  }),
463
- "data-disabled": i || void 0,
464
- "data-invalid": o || void 0,
465
- "data-open": n || void 0,
462
+ "data-disabled": n || void 0,
463
+ "data-invalid": i || void 0,
464
+ "data-open": o || void 0,
466
465
  ref: s,
467
466
  type: "button",
468
467
  children: [
@@ -473,7 +472,7 @@ const qe = ({
473
472
  {
474
473
  className: p.icon,
475
474
  "aria-hidden": "true",
476
- children: /* @__PURE__ */ a(ye, { size: 20 })
475
+ children: /* @__PURE__ */ a($e, { size: 20 })
477
476
  }
478
477
  )
479
478
  ]
@@ -486,99 +485,100 @@ const qe = ({
486
485
  }, w = ({
487
486
  state: e,
488
487
  errorMessage: t
489
- }) => /* @__PURE__ */ a($e.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ a(xe, { children: t }) }), Re = k.forwardRef(
490
- ({ isClearable: e = !0, ...t }, i) => {
491
- const l = {
488
+ }) => /* @__PURE__ */ a(xe.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ a(ve, { children: t }) }), je = k.forwardRef(
489
+ ({ isClearable: e = !0, popover: t, ...n }, r) => {
490
+ const o = {
492
491
  selectionMode: "single",
493
492
  errorPosition: "top",
494
493
  disallowEmptySelection: !e,
495
494
  isClearable: e,
496
495
  size: "large",
497
- ...t
498
- }, n = z(i), o = Oe(l), { labelProps: r, triggerProps: d, valueProps: c, menuProps: u } = De(
499
- l,
496
+ popover: t,
497
+ ...n
498
+ }, i = z(r), l = Oe(o), { labelProps: d, triggerProps: c, valueProps: u, menuProps: s } = Ee(
500
499
  o,
501
- n
502
- ), { width: s } = ue(n.current, {
500
+ l,
501
+ i
502
+ ), { width: g } = ue(i.current, {
503
503
  includePadding: !0
504
504
  });
505
505
  return /* @__PURE__ */ b(
506
- H,
506
+ W,
507
507
  {
508
- ...l,
509
- className: P(p.wrapper, l.className),
508
+ ...o,
509
+ className: P(p.wrapper, o.className),
510
510
  children: [
511
511
  /* @__PURE__ */ a(
512
- Le,
512
+ qe,
513
513
  {
514
- ...l,
515
- state: o,
516
- triggerRef: n
514
+ ...o,
515
+ state: l,
516
+ triggerRef: i
517
517
  }
518
518
  ),
519
- l.label && /* @__PURE__ */ a(
520
- me,
519
+ /* @__PURE__ */ a(me, { popover: t, children: o.label && /* @__PURE__ */ a(
520
+ pe,
521
521
  {
522
- ...r,
523
- "data-disabled": l.isDisabled || void 0,
524
- children: l.label
522
+ ...d,
523
+ "data-disabled": o.isDisabled || void 0,
524
+ children: o.label
525
525
  }
526
- ),
527
- l.description && /* @__PURE__ */ a(pe, { slot: "description", children: l.description }),
528
- l.errorPosition === "top" && /* @__PURE__ */ a(
526
+ ) }),
527
+ o.description && /* @__PURE__ */ a(be, { slot: "description", children: o.description }),
528
+ o.errorPosition === "top" && /* @__PURE__ */ a(
529
529
  w,
530
530
  {
531
- ...l,
532
- state: o
531
+ ...o,
532
+ state: l
533
533
  }
534
534
  ),
535
535
  /* @__PURE__ */ a(
536
- ze,
536
+ Re,
537
537
  {
538
- ...l,
539
- ...d,
540
- isInvalid: o.displayValidation.isInvalid,
541
- triggerRef: n,
542
- state: o,
543
- children: l.selectionMode === "multiple" && o.selectedItems ? /* @__PURE__ */ a("span", { ...c, children: /* @__PURE__ */ a(
544
- qe,
538
+ ...o,
539
+ ...c,
540
+ isInvalid: l.displayValidation.isInvalid,
541
+ triggerRef: i,
542
+ state: l,
543
+ children: o.selectionMode === "multiple" && l.selectedItems ? /* @__PURE__ */ a("span", { ...u, children: /* @__PURE__ */ a(
544
+ ze,
545
545
  {
546
- ...l,
547
- state: o,
548
- parentWidth: s,
549
- onClear: () => o.selectionManager.clearSelection(),
550
- triggerRef: n
546
+ ...o,
547
+ state: l,
548
+ parentWidth: g,
549
+ onClear: () => l.selectionManager.clearSelection(),
550
+ triggerRef: i
551
551
  }
552
552
  ) }) : null
553
553
  }
554
554
  ),
555
- l.errorPosition === "bottom" && /* @__PURE__ */ a(
555
+ o.errorPosition === "bottom" && /* @__PURE__ */ a(
556
556
  w,
557
557
  {
558
- ...l,
559
- state: o
558
+ ...o,
559
+ state: l
560
560
  }
561
561
  ),
562
562
  /* @__PURE__ */ b(
563
563
  Q,
564
564
  {
565
- isOpen: o.isOpen,
565
+ isOpen: l.isOpen,
566
566
  onOpenChange: (m) => {
567
- m || o.close();
567
+ m || l.close();
568
568
  },
569
- triggerRef: n,
570
- style: { width: s },
569
+ triggerRef: i,
570
+ style: { width: g },
571
571
  children: [
572
- l.isSelectableAll && /* @__PURE__ */ b(
573
- be,
572
+ o.isSelectableAll && /* @__PURE__ */ b(
573
+ he,
574
574
  {
575
- onClick: () => o.selectionManager.toggleSelectAll(),
575
+ onClick: () => l.selectionManager.toggleSelectAll(),
576
576
  children: [
577
577
  /* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
578
578
  B,
579
579
  {
580
- isSelected: o.selectionManager.isSelectAll,
581
- isIndeterminate: !o.selectionManager.isSelectAll && !o.selectionManager.isEmpty,
580
+ isSelected: l.selectionManager.isSelectAll,
581
+ isIndeterminate: !l.selectionManager.isSelectAll && !l.selectionManager.isEmpty,
582
582
  isReadOnly: !0,
583
583
  excludeFromTabOrder: !0
584
584
  }
@@ -588,29 +588,29 @@ const qe = ({
588
588
  }
589
589
  ),
590
590
  /* @__PURE__ */ a(
591
- Fe,
591
+ De,
592
592
  {
593
- ...u,
594
- state: o
593
+ ...s,
594
+ state: l
595
595
  }
596
596
  )
597
597
  ]
598
598
  }
599
599
  ),
600
- l.showTags && !!o.selectedItems && /* @__PURE__ */ a(
600
+ o.showTags && !!l.selectedItems && /* @__PURE__ */ a(
601
601
  R,
602
602
  {
603
603
  "aria-label": "Selected Items",
604
604
  selectionBehavior: "toggle",
605
- onRemove: (m) => o.selectionManager.toggleSelection(Array.from(m)[0]),
605
+ onRemove: (m) => l.selectionManager.toggleSelection(Array.from(m)[0]),
606
606
  className: p.tagGroup,
607
- children: /* @__PURE__ */ a(j, { items: o.selectedItems, children: (m) => /* @__PURE__ */ a(
607
+ children: /* @__PURE__ */ a(j, { items: l.selectedItems, children: (m) => /* @__PURE__ */ a(
608
608
  G,
609
609
  {
610
610
  textValue: m.textValue,
611
611
  id: m.key,
612
612
  dismissable: !0,
613
- isDisabled: l.isDisabled,
613
+ isDisabled: o.isDisabled,
614
614
  children: m.textValue
615
615
  },
616
616
  m.key
@@ -621,26 +621,26 @@ const qe = ({
621
621
  }
622
622
  );
623
623
  }
624
- ), je = k.forwardRef(
625
- ({ options: e, ...t }, i) => /* @__PURE__ */ a(
626
- Re,
624
+ ), Ge = k.forwardRef(
625
+ ({ options: e, ...t }, n) => /* @__PURE__ */ a(
626
+ je,
627
627
  {
628
628
  ...t,
629
629
  items: e,
630
- ref: i,
631
- children: (l) => l.children ? /* @__PURE__ */ a(
632
- Se,
630
+ ref: n,
631
+ children: (r) => r.children ? /* @__PURE__ */ a(
632
+ Ce,
633
633
  {
634
- items: l.children,
635
- title: l.name,
636
- children: (n) => /* @__PURE__ */ a(_, { textValue: n.textValue, children: n.name })
634
+ items: r.children,
635
+ title: r.name,
636
+ children: (o) => /* @__PURE__ */ a(_, { textValue: o.textValue, children: o.name })
637
637
  },
638
- l.name
639
- ) : /* @__PURE__ */ a(_, { textValue: l.textValue, children: l.name })
638
+ r.name
639
+ ) : /* @__PURE__ */ a(_, { textValue: r.textValue, children: r.name })
640
640
  }
641
641
  )
642
642
  );
643
- je.displayName = "Select";
643
+ Ge.displayName = "Select";
644
644
  export {
645
- je as S
645
+ Ge as S
646
646
  };