@midas-ds/components 10.2.0 → 10.4.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 (440) hide show
  1. package/AccordionItem-BcsoC78F.cjs +1 -0
  2. package/{AccordionItem-DZT76sWu.js → AccordionItem-BqsgiVWV.js} +43 -41
  3. package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
  4. package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
  5. package/Breadcrumbs-CfW5IuyE.cjs +1 -0
  6. package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-D7eoibWk.js} +85 -73
  7. package/{Button-iSiWjocA.cjs → Button-BXY5ZhqI.cjs} +1 -1
  8. package/{Button-CbFRzRrF.js → Button-BZUo7vsZ.js} +2 -2
  9. package/Button-CFYdzG0H.js +341 -0
  10. package/Button-DExMoP5f.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/CHANGELOG.md +48 -0
  14. package/{Card-CaKKKv9k.js → Card-BaWSgtSF.js} +5 -5
  15. package/Card-Cc1TNPcQ.cjs +1 -0
  16. package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
  17. package/CharacterCounter-cLhqPZlk.js +22 -0
  18. package/Checkbox-Co3h0hur.cjs +1 -0
  19. package/Checkbox-LuUwTZ3W.js +264 -0
  20. package/CheckboxGroup-CUA8_xSx.js +160 -0
  21. package/CheckboxGroup-DmUOM0xl.cjs +1 -0
  22. package/{Collection-C5ONNBqd.js → Collection--62xKPm9.js} +19 -18
  23. package/Collection-BtBX5IMY.cjs +1 -0
  24. package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-Cwono7Ap.js} +48 -32
  25. package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
  26. package/ComboBox-BBC7jhnm.cjs +1 -0
  27. package/{ComboBox-BCaqPEIH.js → ComboBox-HLIAbb2q.js} +360 -345
  28. package/DateField-B3VjOSde.cjs +1 -0
  29. package/DateField-CnLEi7uX.js +47 -0
  30. package/DateInputDivider-3BvwXXa9.cjs +1 -0
  31. package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-Bi5N-C0c.js} +73 -73
  32. package/DateRangePicker-BPlZ12r8.cjs +6 -0
  33. package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-CFOoGvut.js} +192 -189
  34. package/Dialog-CSnN6baf.cjs +1 -0
  35. package/{Dialog-CYxThuMl.js → Dialog-CtVrVuMr.js} +565 -538
  36. package/Dialog-SqciohRY.js +221 -0
  37. package/Dialog-pSSy1zwf.cjs +1 -0
  38. package/DragAndDrop-BoEd260f.cjs +1 -0
  39. package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-DkSTL28C.js} +8 -8
  40. package/{Dropdown-nkjzsVYX.js → Dropdown-CkBp70BH.js} +2 -2
  41. package/{Dropdown-CaGon9OR.cjs → Dropdown-DAsVShlt.cjs} +1 -1
  42. package/FieldError-B3YFj-an.js +23 -0
  43. package/{FieldError-CZikNDxX.js → FieldError-BbR-29BM.js} +8 -8
  44. package/{FieldError-DqdfJ3fs.cjs → FieldError-MVsU-Mgw.cjs} +1 -1
  45. package/{FieldError-BZw8UzBk.cjs → FieldError-bRTpchvr.cjs} +1 -1
  46. package/{FileUpload-ULwcYDxs.js → FileUpload-B4rv-wke.js} +502 -480
  47. package/{FileUpload-DYRZ0M9F.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
  48. package/{FocusScope-DwIqdYpQ.js → FocusScope-D_hwN_TJ.js} +38 -37
  49. package/FocusScope-vcXLOQiu.cjs +1 -0
  50. package/Group-CpkUzEAs.js +45 -0
  51. package/Group-DOpbdoAi.cjs +1 -0
  52. package/Heading-CKTR4sOz.cjs +1 -0
  53. package/{Heading-BY5-QN4S.js → Heading-NxtGri2i.js} +7 -7
  54. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  55. package/{InfoBanner-CVIBFSWx.js → InfoBanner-CBUoad7A.js} +45 -36
  56. package/InfoBanner-CVry6Y8i.cjs +1 -0
  57. package/Input-LnjmFI1x.js +42 -0
  58. package/Input-MJji5hhq.cjs +1 -0
  59. package/Label-CNmTN1YY.cjs +1 -0
  60. package/Label-TVxwGZ-O.js +78 -0
  61. package/Layout-Dw-oCqxd.cjs +16 -0
  62. package/Layout-amz9BESl.js +498 -0
  63. package/{Link-B-nus-FT.js → Link-Bn8V3ZI0.js} +20 -19
  64. package/Link-CidjjqHb.cjs +1 -0
  65. package/{Link-DsnCtNeI.cjs → Link-D92ftFi2.cjs} +1 -1
  66. package/{Link-uFowN4qv.js → Link-DegonJfl.js} +1 -1
  67. package/LinkButton-CckYzfJ8.js +69 -0
  68. package/LinkButton-DKZ4z6zu.cjs +6 -0
  69. package/ListBox-BCz5-23H.cjs +1 -0
  70. package/{ListBox-DOi_y_Lt.js → ListBox-C-isJIHL.js} +56 -55
  71. package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-C_krklY0.js} +1 -1
  72. package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
  73. package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-BVR2xtOH.js} +9 -9
  74. package/ListBoxSection-CfQZoURJ.cjs +1 -0
  75. package/ListKeyboardDelegate-CPsZ7D83.cjs +1 -0
  76. package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-CY6t6y1t.js} +24 -15
  77. package/Logo-BpH0HC91.cjs +1 -0
  78. package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
  79. package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CfhSYL46.js} +28 -27
  80. package/OverlayArrow-DpZ1FqOd.cjs +1 -0
  81. package/Popover-C8VY1YKi.js +38 -0
  82. package/Popover-CnAsw3wI.cjs +1 -0
  83. package/{ProgressBar-gmAzSsrz.js → ProgressBar-BNCjpcv8.js} +2 -2
  84. package/ProgressBar-CcbxcWdT.cjs +1 -0
  85. package/Radio-B2zfEFdq.cjs +1 -0
  86. package/{Radio-_ukSkxPT.js → Radio-CZYibh9r.js} +81 -78
  87. package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-B16b6tJD.js} +303 -294
  88. package/RangeCalendar-C1LFeOVk.cjs +11 -0
  89. package/SSRProvider-40TXmsUG.js +50 -0
  90. package/SSRProvider-Bc-sMhsT.cjs +1 -0
  91. package/SearchField-CML0kjtn.cjs +6 -0
  92. package/{SearchField-DYl2uo7o.js → SearchField-giwECmXS.js} +175 -166
  93. package/Select-DKey6CeS.cjs +1 -0
  94. package/Select-mwaAv20X.js +665 -0
  95. package/SelectionManager-D0jYUYcy.cjs +1 -0
  96. package/{SelectionManager-6H88Cv6B.js → SelectionManager-zsWy3vsd.js} +86 -86
  97. package/Separator-CxF-3jhR.cjs +1 -0
  98. package/{Separator-LYnFqh4L.js → Separator-Dn5LYN5I.js} +19 -20
  99. package/Spinner-CbJ6YAz-.js +53 -0
  100. package/Spinner-yHcy8YHC.cjs +6 -0
  101. package/TabList-7VtCiXxX.cjs +1 -0
  102. package/TabList-CthsM5h6.js +435 -0
  103. package/{Table-B_N7wUmA.js → Table-BcQPvJT3.js} +67 -69
  104. package/Table-DkvNp6xm.cjs +16 -0
  105. package/{Tag-g6HN-YCv.js → Tag-Bs8T2Ei7.js} +140 -141
  106. package/Tag-CFWZ2LQW.cjs +1 -0
  107. package/{Text-B_H68Tvq.js → Text-92cPh38G.js} +3 -3
  108. package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
  109. package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
  110. package/{Text-BN-g1iWi.js → Text-DlKqpvSa.js} +1 -1
  111. package/TextArea-DBNAVWqL.js +119 -0
  112. package/TextArea-XJDfeXRs.cjs +1 -0
  113. package/TextField-BdK9KEQ5.cjs +1 -0
  114. package/{TextField-DBaRuNj7.js → TextField-ByDJkig9.js} +22 -21
  115. package/{Toast-CjpldAI8.js → Toast-DPPvPhrF.js} +95 -87
  116. package/Toast-l1bKo2oA.cjs +1 -0
  117. package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
  118. package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-HOWNWtQZ.js} +47 -46
  119. package/{Tooltip-BAIjaYax.js → Tooltip-5mLWn_wO.js} +53 -51
  120. package/Tooltip-pN5W3IK6.cjs +1 -0
  121. package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-CYfmTSCD.js} +8 -8
  122. package/VisuallyHidden-Doyzl0F7.cjs +1 -0
  123. package/accordion/index.cjs +1 -1
  124. package/accordion/index.js +1 -1
  125. package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
  126. package/assets/Button.css +1 -1
  127. package/assets/Checkbox.css +1 -1
  128. package/assets/FileUpload.css +1 -1
  129. package/assets/Label.css +1 -1
  130. package/assets/LinkButton.css +1 -1
  131. package/assets/Popover.css +1 -0
  132. package/assets/RangeCalendar.css +1 -1
  133. package/assets/SearchField.css +1 -1
  134. package/assets/Spinner.css +1 -1
  135. package/assets/TabList.css +1 -0
  136. package/badge/index.cjs +1 -1
  137. package/badge/index.js +1 -1
  138. package/breadcrumbs/Breadcrumbs.d.ts +11 -7
  139. package/breadcrumbs/index.cjs +1 -1
  140. package/breadcrumbs/index.d.ts +1 -1
  141. package/breadcrumbs/index.js +1 -1
  142. package/button/index.cjs +1 -1
  143. package/button/index.js +1 -1
  144. package/calendar/CalendarGrid.d.ts +1 -0
  145. package/calendar/index.cjs +1 -1
  146. package/calendar/index.js +1 -1
  147. package/card/index.cjs +1 -1
  148. package/card/index.js +1 -1
  149. package/character-counter/index.cjs +1 -1
  150. package/character-counter/index.js +1 -1
  151. package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
  152. package/checkbox/Checkbox.d.ts +4 -2
  153. package/checkbox/CheckboxGroup.d.ts +8 -8
  154. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  155. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  156. package/checkbox/CheckboxInner.d.ts +2 -0
  157. package/checkbox/SingleCheckbox.d.ts +3 -0
  158. package/checkbox/context.d.ts +3 -0
  159. package/checkbox/index.cjs +1 -1
  160. package/checkbox/index.d.ts +2 -1
  161. package/checkbox/index.js +2 -2
  162. package/checkbox/intl/translations.json.d.ts +7 -0
  163. package/checkbox/types.d.ts +16 -0
  164. package/checkbox/useSelectAll.d.ts +7 -0
  165. package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
  166. package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
  167. package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
  168. package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
  169. package/color-scheme-switch/index.cjs +1 -1
  170. package/color-scheme-switch/index.js +1 -1
  171. package/color-scheme-switch/intl/translations.json.d.ts +15 -0
  172. package/combobox/ComboBox.d.ts +3 -1
  173. package/combobox/index.cjs +1 -1
  174. package/combobox/index.js +1 -1
  175. package/combobox/intl/translations.json.d.ts +11 -0
  176. package/{context-B8cn10po.js → context-CGNJ3grH.js} +11 -11
  177. package/context-Df3XbgBG.cjs +1 -0
  178. package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
  179. package/date-field/DateField.d.ts +3 -0
  180. package/date-field/index.cjs +1 -1
  181. package/date-field/index.js +2 -2
  182. package/date-picker/DatePicker.d.ts +3 -0
  183. package/date-picker/DateRangePicker.d.ts +3 -0
  184. package/date-picker/index.cjs +1 -1
  185. package/date-picker/index.js +1 -1
  186. package/dropdown/index.cjs +1 -1
  187. package/dropdown/index.js +1 -1
  188. package/field-error/index.cjs +1 -1
  189. package/field-error/index.js +1 -1
  190. package/file-upload/FileUpload.d.ts +4 -0
  191. package/file-upload/index.cjs +1 -1
  192. package/file-upload/index.js +1 -1
  193. package/file-upload/intl/translations.json.d.ts +17 -0
  194. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-CT_L9LUr.js} +1 -1
  195. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
  196. package/heading/index.cjs +1 -1
  197. package/heading/index.js +1 -1
  198. package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
  199. package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
  200. package/index.cjs +1 -1
  201. package/index.d.ts +1 -0
  202. package/index.js +105 -100
  203. package/inertValue-B3AFhVG4.cjs +1 -0
  204. package/info-BZwphdye.js +15 -0
  205. package/info-CIEIENo6.cjs +6 -0
  206. package/info-banner/index.cjs +1 -1
  207. package/info-banner/index.js +1 -1
  208. package/info-banner/intl/translations.json.d.ts +11 -0
  209. package/label/InfoPopover.d.ts +9 -0
  210. package/label/LabelWrapper.d.ts +11 -0
  211. package/label/index.cjs +1 -1
  212. package/label/index.d.ts +1 -0
  213. package/label/index.js +1 -1
  214. package/label/intl/translations.json.d.ts +11 -0
  215. package/layout/Layout.d.ts +1 -0
  216. package/layout/context/LayoutContext.d.ts +1 -0
  217. package/layout/index.cjs +1 -1
  218. package/layout/index.js +1 -1
  219. package/layout/intl/translations.json.d.ts +23 -0
  220. package/link/index.cjs +1 -1
  221. package/link/index.js +2 -2
  222. package/link-button/index.cjs +1 -1
  223. package/link-button/index.js +2 -2
  224. package/list-box/index.cjs +1 -1
  225. package/list-box/index.js +2 -2
  226. package/logo/index.cjs +1 -1
  227. package/logo/index.js +1 -1
  228. package/logo/intl/translations.json.d.ts +11 -0
  229. package/mergeProps-B5KXZAI3.cjs +1 -0
  230. package/mergeProps-C1U1OIeJ.js +115 -0
  231. package/modal/index.cjs +1 -1
  232. package/modal/index.js +2 -2
  233. package/modal/intl/translations.json.d.ts +11 -0
  234. package/package.json +1 -1
  235. package/popover/Popover.d.ts +7 -0
  236. package/popover/index.cjs +1 -0
  237. package/popover/index.d.ts +1 -0
  238. package/popover/index.js +4 -0
  239. package/progress-bar/index.cjs +1 -1
  240. package/progress-bar/index.js +1 -1
  241. package/radio/Radio.d.ts +4 -4
  242. package/radio/index.cjs +1 -1
  243. package/radio/index.js +1 -1
  244. package/scrollIntoView-BLnsPvFA.js +87 -0
  245. package/scrollIntoView-joIyo-Jt.cjs +1 -0
  246. package/search-field/index.cjs +1 -1
  247. package/search-field/index.js +1 -1
  248. package/search-field/intl/translations.json.d.ts +11 -0
  249. package/select/index.cjs +1 -1
  250. package/select/index.js +1 -1
  251. package/select/intl/translations.json.d.ts +17 -0
  252. package/spinner/Spinner.d.ts +1 -0
  253. package/spinner/index.cjs +1 -1
  254. package/spinner/index.js +1 -1
  255. package/spinner/intl/translations.json.d.ts +11 -0
  256. package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
  257. package/table/index.cjs +1 -1
  258. package/table/index.js +1 -1
  259. package/tabs/Tab.d.ts +4 -0
  260. package/tabs/TabList.d.ts +3 -0
  261. package/tabs/TabPanel.d.ts +4 -0
  262. package/tabs/Tabs.d.ts +11 -5
  263. package/tabs/index.cjs +1 -1
  264. package/tabs/index.d.ts +3 -0
  265. package/tabs/index.js +5 -2
  266. package/tag/index.cjs +1 -1
  267. package/tag/index.js +1 -1
  268. package/text/index.cjs +1 -1
  269. package/text/index.js +1 -1
  270. package/textfield/TextFieldBase.d.ts +2 -0
  271. package/textfield/index.cjs +1 -1
  272. package/textfield/index.js +1 -1
  273. package/textfield/intl/translations.json.d.ts +0 -72
  274. package/theme/index.cjs +1 -1
  275. package/theme/index.d.ts +5 -0
  276. package/theme/index.js +2 -2
  277. package/theme/tokens.d.ts +5 -0
  278. package/toast/Toast.d.ts +5 -2
  279. package/toast/index.cjs +1 -1
  280. package/toast/index.js +1 -1
  281. package/toggle-button/index.cjs +1 -1
  282. package/toggle-button/index.js +1 -1
  283. package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
  284. package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
  285. package/tooltip/index.cjs +1 -1
  286. package/tooltip/index.js +1 -1
  287. package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
  288. package/{useButton-C-Lq7CNY.js → useButton-1-Jf-oHj.js} +6 -6
  289. package/useButton-D60q0SQw.cjs +1 -0
  290. package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
  291. package/{useDateFormatter-C53Uxdli.js → useDateFormatter-BVCkxVdw.js} +2 -2
  292. package/{useEvent-Cyd2ZL0c.js → useEvent-CigwyJOw.js} +3 -3
  293. package/useEvent-DPxMu-X9.cjs +1 -0
  294. package/{useField-BPMAlIbU.js → useField-BEBXv5Mh.js} +7 -7
  295. package/useField-D1UkzeaI.cjs +1 -0
  296. package/{useFilter-ChIbnALW.js → useFilter-CousKe2K.js} +1 -1
  297. package/useFilter-e2oIVF_O.cjs +1 -0
  298. package/useFocusRing-B-A1OLhU.cjs +1 -0
  299. package/useFocusRing-DOfBqnUN.js +33 -0
  300. package/useFocusWithin-CG8mAt2D.cjs +1 -0
  301. package/useFocusWithin-T1ifEM_s.js +54 -0
  302. package/useFocusable-ChPA2Jc7.js +127 -0
  303. package/useFocusable-D7I1ujkW.cjs +1 -0
  304. package/useFormValidation-BlFGdPZB.cjs +1 -0
  305. package/{useFormValidation-R8hQIjWP.js → useFormValidation-BzzruZKm.js} +5 -5
  306. package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-BE81d_ab.js} +2 -2
  307. package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
  308. package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
  309. package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-D73hrkmn.js} +14 -14
  310. package/useHover-BE_XKZKe.cjs +1 -0
  311. package/useHover-DQvJ3Y-W.js +262 -0
  312. package/useLabels-CSU0kbtJ.cjs +1 -0
  313. package/{useLabels-BZjoZA1Z.js → useLabels-LrKQiY11.js} +1 -1
  314. package/{useListState-DFQ9d-uE.js → useListState-CebsX_1d.js} +7 -7
  315. package/{useListState-Ca2-uZMO.cjs → useListState-DymkJGDF.cjs} +1 -1
  316. package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
  317. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  318. package/{useLocalizedStringFormatter-D07YB2e1.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  319. package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
  320. package/useObserveElement-MhzEsCkX.cjs +1 -0
  321. package/usePress-BooY_CAy.cjs +7 -0
  322. package/{usePress-CUJ3pMOw.js → usePress-DuR4pVsE.js} +154 -153
  323. package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
  324. package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
  325. package/{useTextField-5OZQPyOW.js → useTextField-C-sUypsx.js} +14 -14
  326. package/useTextField-DnRrCg5o.cjs +1 -0
  327. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  328. package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
  329. package/utils-CoCR_Fce.js +234 -0
  330. package/utils-DHNZrQmj.cjs +1 -0
  331. package/utils-DJhAJHk_.js +152 -0
  332. package/utils-Dvdohqm9.cjs +1 -0
  333. package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
  334. package/AccordionItem-Z_c9MpAM.cjs +0 -1
  335. package/Breadcrumbs-Cx09jwZZ.cjs +0 -1
  336. package/Button-DnhqHU01.cjs +0 -1
  337. package/Button-ZOQy9Ivu.js +0 -78
  338. package/Button.module-CMMhIrkn.js +0 -14
  339. package/Button.module-DO5s9hOk.cjs +0 -1
  340. package/Card-C0BFW3wJ.cjs +0 -1
  341. package/CharacterCounter-CPGdboVJ.js +0 -22
  342. package/Checkbox-CvFsn_FL.js +0 -380
  343. package/Checkbox-DSxGAJX2.cjs +0 -1
  344. package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
  345. package/CheckboxGroup-Dij9zKlF.js +0 -54
  346. package/Collection-Csx3L9gh.cjs +0 -1
  347. package/ColorSchemeSwitch-JRrCyYVv.cjs +0 -16
  348. package/ComboBox-gveQKHU3.cjs +0 -1
  349. package/DateField-CAQlzuDD.js +0 -46
  350. package/DateField-deVVFwKA.cjs +0 -1
  351. package/DateInputDivider-DnUxETEC.cjs +0 -1
  352. package/DateRangePicker-BzfitoK0.cjs +0 -6
  353. package/Dialog-Bd5hK360.cjs +0 -1
  354. package/Dialog-Bxx8cBEq.js +0 -208
  355. package/Dialog-CwTEAujZ.cjs +0 -1
  356. package/DragAndDrop-HvycSrKY.cjs +0 -1
  357. package/FieldError-Dv3bBEjh.js +0 -23
  358. package/FocusScope-NaPbvuuS.cjs +0 -1
  359. package/Group-CeSsSQVC.js +0 -44
  360. package/Group-CgiqQHH1.cjs +0 -1
  361. package/Heading-DoJAtYZf.cjs +0 -1
  362. package/InfoBanner-BS-dAfzO.cjs +0 -1
  363. package/Input-D8Ku_FQz.js +0 -41
  364. package/Input-DKSAYvsw.cjs +0 -1
  365. package/Label-C9ivwkAd.js +0 -21
  366. package/Label-CUV21CAv.cjs +0 -1
  367. package/Label-DkDOsmUF.js +0 -16
  368. package/Label-IMWAyoKb.cjs +0 -1
  369. package/Layout-BWeHHnqU.cjs +0 -16
  370. package/Layout-CCt_2L1k.js +0 -468
  371. package/Link-SHMbeyIP.cjs +0 -1
  372. package/LinkButton-CuBilDML.js +0 -69
  373. package/LinkButton-CymMrcGL.cjs +0 -6
  374. package/ListBox-CDOsQChA.cjs +0 -1
  375. package/ListBoxSection-DGCP6xpf.cjs +0 -1
  376. package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
  377. package/LiveAnnouncer-B6177m92.js +0 -51
  378. package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
  379. package/Logo-DT2_2O43.cjs +0 -1
  380. package/NumberFormatter-DewVDY5w.cjs +0 -1
  381. package/NumberFormatter-DgOUVrge.js +0 -119
  382. package/OverlayArrow-D75k-EMl.cjs +0 -1
  383. package/PressResponder-C06O3Z5P.cjs +0 -1
  384. package/PressResponder-CVEg5kND.js +0 -33
  385. package/ProgressBar-Bkw9zavs.cjs +0 -1
  386. package/ProgressBar-CEX2WNoW.js +0 -77
  387. package/ProgressBar-Dqh3ftSP.cjs +0 -1
  388. package/Radio-CDKrvQe4.cjs +0 -1
  389. package/RangeCalendar-cbCKBPZv.cjs +0 -11
  390. package/SearchField-6yBGiojX.cjs +0 -6
  391. package/Select-CpHjd1tp.cjs +0 -1
  392. package/Select-PvCqY7Lp.js +0 -646
  393. package/SelectionManager-C5NGBzvz.cjs +0 -1
  394. package/Separator-nPra6kD-.cjs +0 -1
  395. package/Spinner-D31SXm-U.js +0 -41
  396. package/Spinner-DAJtfxqJ.cjs +0 -6
  397. package/Table-D9vNc_y-.cjs +0 -16
  398. package/Tabs-Ct6D83aR.js +0 -404
  399. package/Tabs-Dtcl2oK2.cjs +0 -1
  400. package/Tag-CVFkzg3s.cjs +0 -1
  401. package/TextArea-DSiQ578a.js +0 -206
  402. package/TextArea-cVyGBRbL.cjs +0 -1
  403. package/TextField-B70CL2qz.cjs +0 -1
  404. package/Toast-DrkOGy4d.cjs +0 -1
  405. package/ToggleButtonGroup-BuU_6dYe.cjs +0 -1
  406. package/Tooltip-CiWg4zIC.cjs +0 -1
  407. package/VisuallyHidden-CtXvK_Tw.cjs +0 -1
  408. package/assets/Tabs.css +0 -1
  409. package/context-DjwhtgxQ.cjs +0 -1
  410. package/focusSafely-Bqfo_DH7.cjs +0 -1
  411. package/focusSafely-C48ucRUz.js +0 -56
  412. package/inertValue-BWmZ1afe.cjs +0 -1
  413. package/scrollIntoView-ClEACHUk.js +0 -57
  414. package/scrollIntoView-DRSoJp89.cjs +0 -1
  415. package/useButton-B1Fa-6qE.cjs +0 -1
  416. package/useCollator-C_ozeWLo.cjs +0 -1
  417. package/useCollator-CgZcHC8N.js +0 -11
  418. package/useDescription-CVKhFa3c.js +0 -32
  419. package/useDescription-DmQYSEES.cjs +0 -1
  420. package/useEvent-CjkbBniY.cjs +0 -1
  421. package/useField-B1RU0GKs.cjs +0 -1
  422. package/useFilter-CtIwF2qW.cjs +0 -1
  423. package/useFocusRing-BDGH3lpn.js +0 -82
  424. package/useFocusRing-CbImDrwF.cjs +0 -1
  425. package/useFocusable-CaedRTpB.js +0 -74
  426. package/useFocusable-CuPQ7Cm5.cjs +0 -1
  427. package/useFormValidation-ClximP89.cjs +0 -1
  428. package/useHasTabbableChild-DgphNvnk.cjs +0 -1
  429. package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
  430. package/useHover-_mv5J4_q.cjs +0 -1
  431. package/useHover-qRAon4nS.js +0 -490
  432. package/useLabel-DDdAJ1JO.js +0 -23
  433. package/useLabel-m_S5xkHy.cjs +0 -1
  434. package/useLabels-BLOfc6Y-.cjs +0 -1
  435. package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
  436. package/useObserveElement-BzEr5D32.cjs +0 -1
  437. package/usePress-BFa6cT9o.cjs +0 -7
  438. package/useTextField-CtUDWsUl.cjs +0 -1
  439. package/utils-BNtZbAib.cjs +0 -1
  440. package/utils-HNTsIwux.js +0 -308
@@ -0,0 +1,665 @@
1
+ import { jsx as a, jsxs as h, Fragment as A } from "react/jsx-runtime";
2
+ import * as w from "react";
3
+ import v, { useMemo as D, useState as L, useCallback as E, useEffect as O, useRef as q } from "react";
4
+ import { c as V } from "./clsx-OuTLNxxd.js";
5
+ import { f as z } from "./utils-DJhAJHk_.js";
6
+ import { a as j, $ as R, T as G } from "./Tag-Bs8T2Ei7.js";
7
+ import { $ as W } from "./TextField-ByDJkig9.js";
8
+ import { c as H } from "./Collection--62xKPm9.js";
9
+ import { C as P } from "./Checkbox-LuUwTZ3W.js";
10
+ import { L as U, c as X, a as J, b as Q } from "./ListBoxSection-BVR2xtOH.js";
11
+ import { C as Y } from "./check-CLF6Yxza.js";
12
+ import { g as Z } from "./useHover-DQvJ3Y-W.js";
13
+ import { o as ee, p as te } from "./Dialog-CtVrVuMr.js";
14
+ import { $ as le, a as oe } from "./ListKeyboardDelegate-CY6t6y1t.js";
15
+ import { g as ae } from "./SelectionManager-zsWy3vsd.js";
16
+ import { a as K, c as re, e as ne } from "./mergeProps-C1U1OIeJ.js";
17
+ import { $ as ie } from "./filterDOMProps-D6KHYVBX.js";
18
+ import { $ as ce } from "./useField-BEBXv5Mh.js";
19
+ import { $ as se, a as de, b as ue } from "./useFormValidation-BzzruZKm.js";
20
+ import { $ as fe } from "./useListState-CebsX_1d.js";
21
+ import { u as me } from "./useObserveElement-BdI4zgd7.js";
22
+ import { a as pe } from "./VisuallyHidden-CYfmTSCD.js";
23
+ import { a as he, L as be } from "./Label-TVxwGZ-O.js";
24
+ import { T as ge } from "./Text-DlKqpvSa.js";
25
+ import { L as ye } from "./ListBoxButton-C_krklY0.js";
26
+ import { X as $e } from "./x-JK7i-TQC.js";
27
+ import { u as B } from "./useLocalizedStringFormatter-N0AyjzbM.js";
28
+ import { $ as xe } from "./useButton-1-Jf-oHj.js";
29
+ import { C as ve } from "./chevron-down-Cd1bkzXT.js";
30
+ import { $ as Se } from "./FieldError-BbR-29BM.js";
31
+ import { F as Ce } from "./FieldError-B3YFj-an.js";
32
+ import './assets/Select.css';function I(e) {
33
+ return null;
34
+ }
35
+ I.getCollectionNode = function* (t, r) {
36
+ let { childItems: i, title: o, children: n } = t, l = t.title || t.children, s = t.textValue || (typeof l == "string" ? l : "") || t["aria-label"] || "";
37
+ !s && !(r != null && r.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 {
38
+ type: "item",
39
+ props: t,
40
+ rendered: l,
41
+ textValue: s,
42
+ "aria-label": t["aria-label"],
43
+ hasChildNodes: Ke(t),
44
+ *childNodes() {
45
+ if (i) for (let c of i) yield {
46
+ type: "item",
47
+ value: c
48
+ };
49
+ else if (o) {
50
+ let c = [];
51
+ v.Children.forEach(n, (u) => {
52
+ c.push({
53
+ type: "item",
54
+ element: u
55
+ });
56
+ }), yield* c;
57
+ }
58
+ }
59
+ };
60
+ };
61
+ function Ke(e) {
62
+ return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && v.Children.count(e.children) > 0);
63
+ }
64
+ let _ = I;
65
+ function N(e) {
66
+ return null;
67
+ }
68
+ N.getCollectionNode = function* (t) {
69
+ let { children: r, title: i, items: o } = t;
70
+ yield {
71
+ type: "section",
72
+ props: t,
73
+ hasChildNodes: !0,
74
+ rendered: i,
75
+ "aria-label": t["aria-label"],
76
+ *childNodes() {
77
+ if (typeof r == "function") {
78
+ if (!o) throw new Error("props.children was a function but props.items is missing");
79
+ for (let n of o) yield {
80
+ type: "item",
81
+ value: n,
82
+ renderer: r
83
+ };
84
+ } else {
85
+ let n = [];
86
+ v.Children.forEach(r, (l) => {
87
+ n.push({
88
+ type: "item",
89
+ element: l
90
+ });
91
+ }), yield* n;
92
+ }
93
+ }
94
+ };
95
+ };
96
+ let _e = N;
97
+ const ke = "_wrapper_1rlqo_10", we = "_trigger_1rlqo_21", Ve = "_medium_1rlqo_35", Pe = "_icon_1rlqo_71", Be = "_tagGroup_1rlqo_77", Ie = "_listBoxItemCheckmark_1rlqo_93", Ne = "_triggerContainer_1rlqo_98", Me = "_selectValueTag_1rlqo_104", Te = "_clearButton_1rlqo_120", Fe = "_truncate_1rlqo_132", Ae = "_checkboxContainer_1rlqo_169", p = {
98
+ wrapper: ke,
99
+ trigger: we,
100
+ medium: Ve,
101
+ icon: Pe,
102
+ tagGroup: Be,
103
+ listBoxItemCheckmark: Ie,
104
+ triggerContainer: Ne,
105
+ selectValueTag: Me,
106
+ clearButton: Te,
107
+ truncate: Fe,
108
+ checkboxContainer: Ae
109
+ }, M = ({ item: e }) => /* @__PURE__ */ a(
110
+ J,
111
+ {
112
+ ...e.value,
113
+ textValue: e.textValue,
114
+ children: ({ isDisabled: t, isSelected: r, selectionMode: i }) => /* @__PURE__ */ h(A, { children: [
115
+ i === "multiple" ? /* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
116
+ P,
117
+ {
118
+ isDisabled: t,
119
+ isSelected: r,
120
+ isReadOnly: !0,
121
+ excludeFromTabOrder: !0,
122
+ "aria-label": e.textValue
123
+ }
124
+ ) }) : null,
125
+ e.rendered,
126
+ r && i === "single" ? /* @__PURE__ */ a(
127
+ Y,
128
+ {
129
+ size: 20,
130
+ className: p.listBoxItemCheckmark
131
+ }
132
+ ) : null
133
+ ] })
134
+ }
135
+ ), De = ({ section: e, state: t }) => /* @__PURE__ */ a(X, { ...e.value, children: t.collection.getChildren ? /* @__PURE__ */ a(H, { items: t.collection.getChildren(e.key), children: (r) => /* @__PURE__ */ a(M, { item: r }) }) : null }), Le = ({
136
+ state: e,
137
+ ...t
138
+ }) => /* @__PURE__ */ a(
139
+ U,
140
+ {
141
+ ...t,
142
+ ...e,
143
+ escapeKeyBehavior: "none",
144
+ onSelectionChange: e.setSelectedKeys,
145
+ items: e.collection,
146
+ children: (r) => r.type === "section" ? /* @__PURE__ */ a(
147
+ De,
148
+ {
149
+ state: e,
150
+ section: r
151
+ }
152
+ ) : /* @__PURE__ */ a(M, { item: r })
153
+ }
154
+ );
155
+ function Ee(e, t, r) {
156
+ const { disallowEmptySelection: i, isDisabled: o } = e, n = le({ usage: "search", sensitivity: "base" }), l = D(
157
+ () => new oe(
158
+ t.collection,
159
+ t.disabledKeys,
160
+ null,
161
+ n
162
+ ),
163
+ [t.collection, t.disabledKeys, n]
164
+ ), { menuTriggerProps: s, menuProps: c } = ee(
165
+ {
166
+ isDisabled: o,
167
+ type: "listbox"
168
+ },
169
+ t,
170
+ r
171
+ ), u = (f) => {
172
+ const { selectedKeys: x, selectionMode: F } = t, C = x.values().next().value;
173
+ if (F === "single")
174
+ switch (f.key) {
175
+ case "ArrowLeft": {
176
+ f.preventDefault();
177
+ const $ = x.size > 0 ? l.getKeyAbove(C) : l.getFirstKey();
178
+ $ && t.setSelectedKeys([$]);
179
+ break;
180
+ }
181
+ case "ArrowRight": {
182
+ f.preventDefault();
183
+ const $ = x.size > 0 ? l.getKeyBelow(C) : l.getFirstKey();
184
+ $ && t.setSelectedKeys([$]);
185
+ break;
186
+ }
187
+ }
188
+ }, { typeSelectProps: d } = ae({
189
+ keyboardDelegate: l,
190
+ selectionManager: t.selectionManager,
191
+ onTypeSelect(f) {
192
+ t.setSelectedKeys([f]);
193
+ }
194
+ }), { labelProps: y, fieldProps: b } = ce({
195
+ ...e,
196
+ labelElementType: "span"
197
+ });
198
+ d.onKeyDown = d.onKeyDownCapture, delete d.onKeyDownCapture;
199
+ const m = ie(e, { labelable: !0 }), g = K(d, s, b), S = re();
200
+ return {
201
+ labelProps: {
202
+ ...y,
203
+ onClick: () => {
204
+ var f;
205
+ e.isDisabled || ((f = r.current) == null || f.focus(), Z("keyboard"));
206
+ }
207
+ },
208
+ triggerProps: K(m, {
209
+ ...g,
210
+ onKeyDown: ne(
211
+ g.onKeyDown,
212
+ u,
213
+ e.onKeyDown
214
+ ),
215
+ onKeyUp: e.onKeyUp,
216
+ "aria-labelledby": [
217
+ g["aria-labelledby"],
218
+ g["aria-label"] && !g["aria-labelledby"] ? g.id : null,
219
+ S
220
+ ].filter(Boolean).join(" "),
221
+ onFocus(f) {
222
+ t.isFocused || (e.onFocus && e.onFocus(f), t.setFocused(!0));
223
+ },
224
+ onBlur(f) {
225
+ t.isOpen || (e.onBlur && e.onBlur(f), t.setFocused(!1));
226
+ }
227
+ }),
228
+ valueProps: {
229
+ id: S
230
+ },
231
+ menuProps: {
232
+ ...c,
233
+ disallowEmptySelection: i,
234
+ autoFocus: t.focusStrategy || !0,
235
+ shouldSelectOnPressUp: !0,
236
+ shouldFocusOnHover: !0,
237
+ onBlur: (f) => {
238
+ f.currentTarget.contains(f.relatedTarget) || (e.onBlur && e.onBlur(f), t.setFocused(!1));
239
+ },
240
+ "aria-labelledby": [
241
+ b["aria-labelledby"],
242
+ g["aria-label"] && !b["aria-labelledby"] ? g.id : null
243
+ ].filter(Boolean).join(" ")
244
+ }
245
+ };
246
+ }
247
+ function Oe(e) {
248
+ const {
249
+ collection: t,
250
+ disabledKeys: r,
251
+ selectionManager: i,
252
+ selectionManager: { setSelectedKeys: o, selectedKeys: n, selectionMode: l }
253
+ } = fe(e), s = [], c = n.size !== 0 ? Array.from(n).map((u) => {
254
+ const d = t.getItem(u);
255
+ return d || s.push(u), d;
256
+ }).filter(Boolean) : null;
257
+ return s.length && console.warn(
258
+ `Select: Keys "${s.join(
259
+ ", "
260
+ )}" passed to "selectedKeys" are not present in the collection.`
261
+ ), {
262
+ collection: t,
263
+ disabledKeys: r,
264
+ selectionManager: i,
265
+ selectionMode: l,
266
+ selectedKeys: n,
267
+ setSelectedKeys: o.bind(i),
268
+ selectedItems: c
269
+ };
270
+ }
271
+ function qe(e) {
272
+ const [t, r] = L(!1), i = te(e), o = e.selectionMode === "single", n = Oe({
273
+ ...e,
274
+ onSelectionChange: (d) => {
275
+ e.onSelectionChange && e.onSelectionChange(d), o && i.close();
276
+ }
277
+ }), l = se({
278
+ ...e,
279
+ validationBehavior: "native",
280
+ value: n.selectedKeys
281
+ }), s = n.collection.size === 0, c = !!n.selectedKeys.size, u = E(() => {
282
+ l.resetValidation(), l.commitValidation();
283
+ }, [l]);
284
+ return O(() => {
285
+ o && c && u();
286
+ }, [c, o, u]), {
287
+ ...n,
288
+ ...i,
289
+ close() {
290
+ i.close(), c && u();
291
+ },
292
+ open() {
293
+ s || i.open();
294
+ },
295
+ toggle(d) {
296
+ s || i.toggle(d);
297
+ },
298
+ isFocused: t,
299
+ setFocused: r,
300
+ ...l
301
+ };
302
+ }
303
+ function ze({
304
+ autoComplete: e,
305
+ name: t,
306
+ isDisabled: r,
307
+ isRequired: i,
308
+ selectRef: o
309
+ }, n, l) {
310
+ const { visuallyHiddenProps: s } = pe();
311
+ return de(o, n.selectedKeys, n.setSelectedKeys), ue(
312
+ {
313
+ validationBehavior: "native",
314
+ focus: () => {
315
+ var c;
316
+ return (c = l.current) == null ? void 0 : c.focus();
317
+ }
318
+ },
319
+ n,
320
+ o
321
+ ), {
322
+ containerProps: {
323
+ ...s,
324
+ "aria-hidden": !0,
325
+ // @ts-expect-error - data-a11y-ignore is not a standard attribute
326
+ "data-react-aria-prevent-focus": !0,
327
+ "data-a11y-ignore": "aria-hidden-focus"
328
+ },
329
+ inputProps: {
330
+ style: { display: "none" }
331
+ },
332
+ selectProps: {
333
+ tabIndex: -1,
334
+ autoComplete: e,
335
+ disabled: r,
336
+ required: i,
337
+ name: t,
338
+ value: Array.from(n.selectedKeys).map((c) => c.toString()),
339
+ onChange: (c) => n.setSelectedKeys(c.target.value),
340
+ multiple: !0
341
+ }
342
+ };
343
+ }
344
+ function je(e) {
345
+ const { state: t, triggerRef: r, name: i, isDisabled: o } = e, n = `${e.label}-hidden`, l = q(null), { containerProps: s, selectProps: c } = ze(
346
+ { ...e, selectRef: l },
347
+ t,
348
+ r
349
+ );
350
+ return t.collection.size <= 300 ? /* @__PURE__ */ a(
351
+ "div",
352
+ {
353
+ ...s,
354
+ "data-testid": "hidden-select-container",
355
+ children: /* @__PURE__ */ h("label", { children: [
356
+ n,
357
+ /* @__PURE__ */ h(
358
+ "select",
359
+ {
360
+ ...c,
361
+ ref: l,
362
+ children: [
363
+ /* @__PURE__ */ a("option", {}),
364
+ [...t.collection.getKeys()].map((u) => {
365
+ const d = t.collection.getItem(u);
366
+ return d && d.type === "item" ? /* @__PURE__ */ a(
367
+ "option",
368
+ {
369
+ value: d.key,
370
+ children: d.textValue
371
+ },
372
+ d.key
373
+ ) : null;
374
+ })
375
+ ]
376
+ }
377
+ )
378
+ ] })
379
+ }
380
+ ) : i ? /* @__PURE__ */ a(
381
+ "input",
382
+ {
383
+ type: "hidden",
384
+ autoComplete: c.autoComplete,
385
+ name: i,
386
+ disabled: o,
387
+ value: Array.from(t.selectedKeys).map((u) => u.toString()) ?? [""]
388
+ }
389
+ ) : null;
390
+ }
391
+ const Re = {
392
+ clearAll: "Clear all",
393
+ selectAll: "Select all",
394
+ selectedItems: "Selected items",
395
+ chosen: "chosen"
396
+ }, Ge = {
397
+ clearAll: "Rensa alla",
398
+ selectAll: "Välj alla",
399
+ selectedItems: "Valda objekt",
400
+ chosen: "valda"
401
+ }, T = {
402
+ en: Re,
403
+ sv: Ge
404
+ }, We = ({
405
+ state: { selectedItems: e },
406
+ isDisabled: t,
407
+ parentWidth: r,
408
+ onClear: i,
409
+ triggerRef: o,
410
+ isClearable: n
411
+ }) => {
412
+ const l = B(T);
413
+ return /* @__PURE__ */ h(
414
+ "div",
415
+ {
416
+ className: p.selectValueTag,
417
+ "data-disabled": t || void 0,
418
+ children: [
419
+ /* @__PURE__ */ a(
420
+ "span",
421
+ {
422
+ className: p.truncate,
423
+ style: { maxWidth: r - 92 },
424
+ children: e != null && e.length && e.length > 1 ? `${e.length} ${l.format("chosen")}` : e == null ? void 0 : e[0].textValue
425
+ }
426
+ ),
427
+ n && /* @__PURE__ */ a(
428
+ "button",
429
+ {
430
+ disabled: t,
431
+ "aria-label": l.format("clearAll"),
432
+ className: p.clearButton,
433
+ onClick: () => {
434
+ var s;
435
+ i(), (s = o == null ? void 0 : o.current) == null || s.focus();
436
+ },
437
+ children: /* @__PURE__ */ a(
438
+ $e,
439
+ {
440
+ width: 20,
441
+ height: 20
442
+ }
443
+ )
444
+ }
445
+ )
446
+ ]
447
+ }
448
+ );
449
+ }, He = ({
450
+ autoFocus: e,
451
+ excludeFromTabOrder: t,
452
+ isDisabled: r,
453
+ size: i = "large",
454
+ isOpen: o,
455
+ isInvalid: n,
456
+ selectionMode: l,
457
+ state: { selectedItems: s },
458
+ placeholder: c,
459
+ children: u,
460
+ triggerRef: d,
461
+ ...y
462
+ }) => {
463
+ const { buttonProps: b } = xe(
464
+ { autoFocus: e, excludeFromTabOrder: t, isDisabled: r, ...y },
465
+ d
466
+ ), m = l === "multiple";
467
+ return /* @__PURE__ */ h(
468
+ "div",
469
+ {
470
+ className: p.triggerContainer,
471
+ "data-disabled": r || void 0,
472
+ children: [
473
+ /* @__PURE__ */ h(
474
+ "button",
475
+ {
476
+ ...b,
477
+ autoFocus: e,
478
+ className: V(p.trigger, {
479
+ [p.medium]: i === "medium"
480
+ }),
481
+ "data-disabled": r || void 0,
482
+ "data-invalid": n || void 0,
483
+ "data-open": o || void 0,
484
+ ref: d,
485
+ type: "button",
486
+ children: [
487
+ m && !s ? /* @__PURE__ */ a("span", { children: c }) : null,
488
+ m ? null : /* @__PURE__ */ a("span", { children: s ? s[0].textValue : c }),
489
+ /* @__PURE__ */ a(
490
+ "div",
491
+ {
492
+ className: p.icon,
493
+ "aria-hidden": "true",
494
+ children: /* @__PURE__ */ a(ve, { size: 20 })
495
+ }
496
+ )
497
+ ]
498
+ }
499
+ ),
500
+ u
501
+ ]
502
+ }
503
+ );
504
+ }, k = ({
505
+ state: e,
506
+ errorMessage: t
507
+ }) => /* @__PURE__ */ a(Se.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ a(Ce, { children: t }) }), Ue = w.forwardRef(
508
+ ({ isClearable: e = !0, popover: t, ...r }, i) => {
509
+ const o = {
510
+ selectionMode: "single",
511
+ errorPosition: "top",
512
+ disallowEmptySelection: !e,
513
+ isClearable: e,
514
+ size: "large",
515
+ popover: t,
516
+ ...r
517
+ }, n = z(i), l = qe(o), s = B(T), { labelProps: c, triggerProps: u, valueProps: d, menuProps: y } = Ee(
518
+ o,
519
+ l,
520
+ n
521
+ ), { width: b } = me(n.current, {
522
+ includePadding: !0
523
+ });
524
+ return /* @__PURE__ */ h(
525
+ W,
526
+ {
527
+ ...o,
528
+ className: V(p.wrapper, o.className),
529
+ children: [
530
+ /* @__PURE__ */ a(
531
+ je,
532
+ {
533
+ ...o,
534
+ state: l,
535
+ triggerRef: n
536
+ }
537
+ ),
538
+ /* @__PURE__ */ a(he, { popover: t, children: o.label && /* @__PURE__ */ a(
539
+ be,
540
+ {
541
+ ...c,
542
+ "data-disabled": o.isDisabled || void 0,
543
+ children: o.label
544
+ }
545
+ ) }),
546
+ o.description && /* @__PURE__ */ a(ge, { slot: "description", children: o.description }),
547
+ o.errorPosition === "top" && /* @__PURE__ */ a(
548
+ k,
549
+ {
550
+ ...o,
551
+ state: l
552
+ }
553
+ ),
554
+ /* @__PURE__ */ a(
555
+ He,
556
+ {
557
+ ...o,
558
+ ...u,
559
+ isInvalid: l.displayValidation.isInvalid,
560
+ triggerRef: n,
561
+ state: l,
562
+ children: o.selectionMode === "multiple" && l.selectedItems ? /* @__PURE__ */ a("span", { ...d, children: /* @__PURE__ */ a(
563
+ We,
564
+ {
565
+ ...o,
566
+ state: l,
567
+ parentWidth: b,
568
+ onClear: () => l.selectionManager.clearSelection(),
569
+ triggerRef: n
570
+ }
571
+ ) }) : null
572
+ }
573
+ ),
574
+ o.errorPosition === "bottom" && /* @__PURE__ */ a(
575
+ k,
576
+ {
577
+ ...o,
578
+ state: l
579
+ }
580
+ ),
581
+ /* @__PURE__ */ h(
582
+ Q,
583
+ {
584
+ isOpen: l.isOpen,
585
+ onOpenChange: (m) => {
586
+ m || l.close();
587
+ },
588
+ triggerRef: n,
589
+ style: { width: b },
590
+ children: [
591
+ o.isSelectableAll && /* @__PURE__ */ h(
592
+ ye,
593
+ {
594
+ onClick: () => l.selectionManager.toggleSelectAll(),
595
+ children: [
596
+ /* @__PURE__ */ a("div", { className: p.checkboxContainer, children: /* @__PURE__ */ a(
597
+ P,
598
+ {
599
+ isSelected: l.selectionManager.isSelectAll,
600
+ isIndeterminate: !l.selectionManager.isSelectAll && !l.selectionManager.isEmpty,
601
+ isReadOnly: !0,
602
+ excludeFromTabOrder: !0
603
+ }
604
+ ) }),
605
+ /* @__PURE__ */ a("span", { children: s.format("selectAll") })
606
+ ]
607
+ }
608
+ ),
609
+ /* @__PURE__ */ a(
610
+ Le,
611
+ {
612
+ ...y,
613
+ state: l
614
+ }
615
+ )
616
+ ]
617
+ }
618
+ ),
619
+ o.showTags && !!l.selectedItems && /* @__PURE__ */ a(
620
+ j,
621
+ {
622
+ "aria-label": s.format("selectedItems"),
623
+ selectionBehavior: "toggle",
624
+ onRemove: (m) => l.selectionManager.toggleSelection(Array.from(m)[0]),
625
+ className: p.tagGroup,
626
+ children: /* @__PURE__ */ a(R, { items: l.selectedItems, children: (m) => /* @__PURE__ */ a(
627
+ G,
628
+ {
629
+ textValue: m.textValue,
630
+ id: m.key,
631
+ dismissable: !0,
632
+ isDisabled: o.isDisabled,
633
+ children: m.textValue
634
+ },
635
+ m.key
636
+ ) })
637
+ }
638
+ )
639
+ ]
640
+ }
641
+ );
642
+ }
643
+ ), Xe = w.forwardRef(
644
+ ({ options: e, ...t }, r) => /* @__PURE__ */ a(
645
+ Ue,
646
+ {
647
+ ...t,
648
+ items: e,
649
+ ref: r,
650
+ children: (i) => i.children ? /* @__PURE__ */ a(
651
+ _e,
652
+ {
653
+ items: i.children,
654
+ title: i.name,
655
+ children: (o) => /* @__PURE__ */ a(_, { textValue: o.textValue, children: o.name })
656
+ },
657
+ i.name
658
+ ) : /* @__PURE__ */ a(_, { textValue: i.textValue, children: i.name })
659
+ }
660
+ )
661
+ );
662
+ Xe.displayName = "Select";
663
+ export {
664
+ Xe as S
665
+ };