@midas-ds/components 13.0.1 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/AccordionItem-CAi-XFOc.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/BadgeContainer-BZl6mSeb.cjs +1 -0
  4. package/{BadgeContainer-iNNgJKD9.js → BadgeContainer-DilMiV6u.js} +9 -9
  5. package/{Breadcrumbs-BQLxFZVm.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  6. package/{Breadcrumbs-C6B4fyk3.js → Breadcrumbs-BenPNv8Z.js} +15 -15
  7. package/Button-1sEX8jKn.cjs +1 -0
  8. package/{Button-D_tRdPW9.cjs → Button-BEWKXjlP.cjs} +1 -1
  9. package/{Button-CUMHt7MG.js → Button-CF97piBl.js} +10 -4
  10. package/{Button-DD5_S-tD.js → Button-CGe3Nyos.js} +122 -116
  11. package/Button.module-COONZqNU.cjs +1 -0
  12. package/Button.module-Cm0H98vy.js +14 -0
  13. package/{ButtonGroup-zx-9mxbJ.cjs → ButtonGroup-BpvDDECt.cjs} +1 -1
  14. package/{ButtonGroup-DC8925jD.js → ButtonGroup-Swh2E6Es.js} +1 -1
  15. package/CHANGELOG.md +59 -0
  16. package/Card-DJ8E5Rzd.js +131 -0
  17. package/Card-Db9xdzJ0.cjs +1 -0
  18. package/{CharacterCounter-CnRv-iUP.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  19. package/{CharacterCounter-DT7A0wWP.js → CharacterCounter-gbDGfize.js} +8 -8
  20. package/Checkbox-BgrLxY6P.cjs +1 -0
  21. package/{Checkbox-DTuryJdM.js → Checkbox-CdN1D5pD.js} +91 -87
  22. package/{CheckboxGroup-BmFdy-K6.js → CheckboxGroup-B1b-6bKq.js} +12 -12
  23. package/{CheckboxGroup-LrqCwPET.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
  24. package/{Collection-B0_WAieZ.js → Collection-BkxwF21i.js} +205 -213
  25. package/Collection-vGO6v3_U.cjs +1 -0
  26. package/{ColorSchemeSwitch-D5juAHPc.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +3 -3
  27. package/{ColorSchemeSwitch-CgZfgCG4.js → ColorSchemeSwitch-KjnsdbDr.js} +10 -10
  28. package/{ComboBox-B2btGwWe.js → ComboBox-D1ZSZ6m-.js} +286 -278
  29. package/ComboBox-Dztk_jtC.cjs +1 -0
  30. package/DateField-BogEOseq.cjs +1 -0
  31. package/DateField-lsr_1fw4.js +47 -0
  32. package/{DateInputDivider-LxS0Kw1H.js → DateInputDivider-CRv3YuXd.js} +199 -196
  33. package/DateInputDivider-CYqm6PZP.cjs +1 -0
  34. package/{DateRangePicker-BmPPDZIF.js → DateRangePicker-5k1swaEt.js} +123 -119
  35. package/DateRangePicker-CgNXWOT6.cjs +6 -0
  36. package/Dialog-B1N4Ndyx.js +256 -0
  37. package/{Dialog-COeUapMW.js → Dialog-BUAp30Wc.js} +710 -692
  38. package/Dialog-BgSxz1JW.cjs +1 -0
  39. package/Dialog-PrnV8KTh.cjs +6 -0
  40. package/{DragAndDrop-Dw8JZmrn.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  41. package/{DragAndDrop-PrUJv--B.js → DragAndDrop-DF0VoPJw.js} +2 -2
  42. package/{Dropdown-C_W6Sizy.cjs → Dropdown-DBFLb8Tl.cjs} +2 -2
  43. package/{Dropdown-CGQbf7OT.js → Dropdown-DaARa89l.js} +8 -8
  44. package/FieldError-Cimgm8qD.cjs +1 -0
  45. package/FieldError-l3xULRa0.js +48 -0
  46. package/{FileUpload-D2gnQKdn.js → FileUpload-CN0HNJ_Y.js} +14 -14
  47. package/{FileUpload-D3RaARDV.cjs → FileUpload-DHmsupSe.cjs} +1 -1
  48. package/{Grid-BmX6arAO.js → Grid-0XOQPryP.js} +2 -2
  49. package/{Grid-Bn1bCTH8.cjs → Grid-B6G4PWn5.cjs} +1 -1
  50. package/{GridItem-luVsL9lu.cjs → GridItem-BZ8eOXMB.cjs} +1 -1
  51. package/{GridItem-BtO9kCX9.js → GridItem-YtIpL5V2.js} +1 -1
  52. package/Group-B0Wj9pI8.cjs +1 -0
  53. package/Group-BAd7alBM.js +46 -0
  54. package/Heading-CCoGfKQ8.js +48 -0
  55. package/Heading-x7y3xadc.cjs +1 -0
  56. package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
  57. package/InfoBanner-BW3vy9mc.js +72 -0
  58. package/InfoBanner-_M_rGQiu.cjs +1 -0
  59. package/{Input-CzMx2mfl.cjs → Input-Bda0PCu5.cjs} +1 -1
  60. package/{Input-BLVRv0FK.js → Input-CQzv-D9g.js} +9 -9
  61. package/{Label-1N6ddn5w.js → Label-BGMXsSFb.js} +15 -15
  62. package/Label-CNTODOFg.cjs +1 -0
  63. package/Layout-BrEuHajQ.cjs +16 -0
  64. package/{Layout-B-A-s7B0.js → Layout-JL9l-y7w.js} +144 -145
  65. package/{Link-lO-Ke97K.js → Link-BudFjYrw.js} +22 -22
  66. package/Link-BvUSTIip.cjs +6 -0
  67. package/{Link-wM7cVPlS.cjs → Link-DRU6Qzia.cjs} +1 -1
  68. package/{Link-CbFSuEI1.js → Link-l-nMP-Zd.js} +10 -10
  69. package/LinkButton-DGdnbTgR.cjs +6 -0
  70. package/LinkButton-DP9W-E32.js +69 -0
  71. package/ListBox-TGCxrXIJ.cjs +1 -0
  72. package/ListBox-mOCZvKD4.js +534 -0
  73. package/{ListBoxLoadMoreItem-C4jnDcYH.js → ListBoxLoadMoreItem-CLdTe6-z.js} +5 -5
  74. package/{ListBoxLoadMoreItem-3jGpi90m.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
  75. package/ListBoxSection-BNBHosou.cjs +1 -0
  76. package/{ListBoxSection-D7BcbjUt.js → ListBoxSection-D_kTkvgG.js} +139 -140
  77. package/{ListKeyboardDelegate-CVxkAn5D.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
  78. package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
  79. package/{Logo-CFjZc5u2.cjs → Logo-4tRnV4Su.cjs} +1 -1
  80. package/{Logo-DkagDdKQ.js → Logo-DLlt576_.js} +17 -17
  81. package/{OverlayArrow-CvNuu3e3.js → OverlayArrow-CjGslX2c.js} +4 -4
  82. package/{OverlayArrow-ByH6lM-H.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  83. package/{Popover-Bf5YH53o.js → Popover-CZFi2YGz.js} +13 -13
  84. package/Popover-uYTWBGHa.cjs +1 -0
  85. package/{PressResponder-CxVtArtP.js → PressResponder-BMj6Zvbn.js} +9 -9
  86. package/PressResponder-ChvCuOue.cjs +1 -0
  87. package/ProgressBar-BGemuJIq.cjs +1 -0
  88. package/ProgressBar-DhRmckYM.js +53 -0
  89. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  90. package/RSPContexts-XUvspq3j.cjs +1 -0
  91. package/Radio-Bp_31Z59.js +340 -0
  92. package/Radio-D3RGVrEd.cjs +1 -0
  93. package/{RangeCalendar-Bi9jc61A.js → RangeCalendar-9C96gMvy.js} +146 -145
  94. package/RangeCalendar-ChfmP_ql.cjs +6 -0
  95. package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
  96. package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
  97. package/{SearchField-BevjTbcW.js → SearchField-DrEdzWAy.js} +44 -44
  98. package/SearchField-JaDXLq5W.cjs +6 -0
  99. package/Select-BCUH-Z7q.cjs +1 -0
  100. package/{Select-CEwJo1BT.js → Select-CpPE78Ke.js} +210 -188
  101. package/SelectionIndicator-BiSN1toV.cjs +1 -0
  102. package/{FocusScope-Bj40Ir-g.js → SelectionIndicator-ant6jeC1.js} +256 -165
  103. package/SelectionManager-C469yQeD.js +1063 -0
  104. package/SelectionManager-uFYC4wpu.cjs +1 -0
  105. package/{Separator-Bj24aGrT.js → Separator-B6l5qSpR.js} +28 -28
  106. package/{Separator-CM0KPvsX.js → Separator-BWAnBMVN.js} +5 -5
  107. package/Separator-DbhmtwDa.cjs +1 -0
  108. package/{Separator-Dgin8BNW.cjs → Separator-J0pLW4BN.cjs} +1 -1
  109. package/Skeleton-8onymGEG.cjs +1 -0
  110. package/Skeleton-BjTEGRpe.js +35 -0
  111. package/Spinner-D6Fcu_Dp.js +54 -0
  112. package/Spinner-DIapnvIz.cjs +6 -0
  113. package/TabList-C0tRVI6Q.cjs +1 -0
  114. package/TabList-DmkxO7MM.js +394 -0
  115. package/Table-BLqjyYKk.cjs +16 -0
  116. package/{Table-BzJktg2G.js → Table-CyWZO9uf.js} +710 -706
  117. package/Tag-DJqYiBLR.js +774 -0
  118. package/Tag-FDHGu_WP.cjs +1 -0
  119. package/{Text-BtPiT2P1.cjs → Text-0wXj3J8E.cjs} +1 -1
  120. package/Text-BBFWBNAH.js +32 -0
  121. package/{Text-BAFsaON-.cjs → Text-D5OSv6Uv.cjs} +1 -1
  122. package/{Text-Be7WIOwv.js → Text-bqP9NeVg.js} +3 -3
  123. package/TextArea-CZxwvBcS.cjs +1 -0
  124. package/TextArea-CrY7P18c.js +125 -0
  125. package/{TextField-_UY8CXtW.js → TextField-BWea-IT-.js} +26 -26
  126. package/TextField-DsN-kBfh.cjs +1 -0
  127. package/TextField.module-C03d0VY9.js +13 -0
  128. package/TextField.module-DmRrFHra.cjs +1 -0
  129. package/{Toast-Cs0CEbRr.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  130. package/{Toast-B74PMVL9.js → Toast-Di3h8A14.js} +101 -101
  131. package/{ToggleButtonGroup-CwHPu7w5.js → ToggleButtonGroup-Bh4hP6Lk.js} +83 -79
  132. package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
  133. package/{Tooltip-BHAtsp9k.js → Tooltip-CUdmOznK.js} +13 -13
  134. package/{Tooltip-CZa9n5sT.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  135. package/{VisuallyHidden-EjrqodVh.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  136. package/{VisuallyHidden-CGEtjAP7.js → VisuallyHidden-DuW70K-5.js} +8 -8
  137. package/accordion/Accordion.d.ts +0 -1
  138. package/accordion/index.cjs +1 -1
  139. package/accordion/index.js +2 -3
  140. package/assets/AccordionItem.css +1 -1
  141. package/assets/Button.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/Checkbox.css +1 -1
  144. package/assets/ComboBox.css +1 -1
  145. package/assets/DateField.css +1 -1
  146. package/assets/DateInputDivider.css +1 -1
  147. package/assets/DateRangePicker.css +1 -1
  148. package/assets/Dialog.css +1 -1
  149. package/assets/Dropdown.css +1 -1
  150. package/assets/FieldError.css +1 -1
  151. package/assets/Heading.css +1 -1
  152. package/assets/InfoBanner.css +1 -1
  153. package/assets/Label.css +1 -1
  154. package/assets/Layout.css +1 -1
  155. package/assets/Link.css +1 -1
  156. package/assets/LinkButton.css +1 -1
  157. package/assets/ListBoxSection.css +1 -1
  158. package/assets/Logo.css +1 -1
  159. package/assets/Popover.css +1 -1
  160. package/assets/ProgressBar.css +1 -1
  161. package/assets/Radio.css +1 -1
  162. package/assets/RangeCalendar.css +1 -1
  163. package/assets/SearchField.css +1 -1
  164. package/assets/Select.css +1 -1
  165. package/assets/Separator.css +1 -1
  166. package/assets/Skeleton.css +1 -1
  167. package/assets/Spinner.css +1 -1
  168. package/assets/TabList.css +1 -1
  169. package/assets/Text.css +1 -1
  170. package/assets/TextField.css +1 -1
  171. package/assets/Toast.css +1 -1
  172. package/assets/Tooltip.css +1 -1
  173. package/assets/default.css +1 -1
  174. package/badge/index.cjs +1 -1
  175. package/badge/index.js +1 -1
  176. package/breadcrumbs/index.cjs +1 -1
  177. package/breadcrumbs/index.js +1 -1
  178. package/button/index.cjs +1 -1
  179. package/button/index.js +2 -2
  180. package/calendar/index.cjs +1 -1
  181. package/calendar/index.js +1 -1
  182. package/card/index.cjs +1 -1
  183. package/card/index.js +1 -1
  184. package/character-counter/index.cjs +1 -1
  185. package/character-counter/index.js +1 -1
  186. package/checkbox/index.cjs +1 -1
  187. package/checkbox/index.js +2 -2
  188. package/clsx-DKOfLqne.cjs +1 -0
  189. package/clsx-jbLnTBqA.js +11 -0
  190. package/color-scheme-switch/index.cjs +1 -1
  191. package/color-scheme-switch/index.js +1 -1
  192. package/combobox/index.cjs +1 -1
  193. package/combobox/index.js +1 -1
  194. package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
  195. package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
  196. package/date-field/index.cjs +1 -1
  197. package/date-field/index.js +2 -2
  198. package/date-picker/index.cjs +1 -1
  199. package/date-picker/index.js +1 -1
  200. package/dropdown/index.cjs +1 -1
  201. package/dropdown/index.js +1 -1
  202. package/field-error/index.cjs +1 -1
  203. package/field-error/index.js +1 -1
  204. package/file-upload/index.cjs +1 -1
  205. package/file-upload/index.js +1 -1
  206. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  207. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  208. package/grid/index.cjs +1 -1
  209. package/grid/index.js +2 -2
  210. package/heading/Heading.d.ts +6 -0
  211. package/heading/index.cjs +1 -1
  212. package/heading/index.js +1 -1
  213. package/{index-BLPblar-.js → index-DEx4upZl.js} +19 -19
  214. package/{index-DSFSh2sC.cjs → index-hURPlN0u.cjs} +2 -2
  215. package/index.cjs +1 -1
  216. package/index.js +126 -127
  217. package/inertValue-BWmZ1afe.cjs +1 -0
  218. package/info-banner/index.cjs +1 -1
  219. package/info-banner/index.js +1 -1
  220. package/label/index.cjs +1 -1
  221. package/label/index.js +1 -1
  222. package/layout/index.cjs +1 -1
  223. package/layout/index.js +1 -1
  224. package/link/index.cjs +1 -1
  225. package/link/index.js +2 -2
  226. package/link-button/index.cjs +1 -1
  227. package/link-button/index.js +2 -2
  228. package/list-box/index.cjs +1 -1
  229. package/list-box/index.js +2 -2
  230. package/logo/index.cjs +1 -1
  231. package/logo/index.js +1 -1
  232. package/menu/index.cjs +1 -1
  233. package/menu/index.js +2 -2
  234. package/{mergeProps-BSsN7Bgk.js → mergeProps-Ct8m5-xW.js} +1 -1
  235. package/{mergeProps-JhcJ7uJL.cjs → mergeProps-Du5A8xi8.cjs} +1 -1
  236. package/modal/Dialog.d.ts +16 -3
  237. package/modal/index.cjs +1 -1
  238. package/modal/index.d.ts +1 -1
  239. package/modal/index.js +2 -2
  240. package/package.json +4 -4
  241. package/popover/index.cjs +1 -1
  242. package/popover/index.js +1 -1
  243. package/progress-bar/index.cjs +1 -1
  244. package/progress-bar/index.js +1 -1
  245. package/radio/index.cjs +1 -1
  246. package/radio/index.js +1 -1
  247. package/scrollIntoView-BVI21Y4-.js +65 -0
  248. package/scrollIntoView-BueMOyGp.cjs +1 -0
  249. package/search-field/index.cjs +1 -1
  250. package/search-field/index.js +1 -1
  251. package/select/index.cjs +1 -1
  252. package/select/index.js +1 -1
  253. package/select/types.d.ts +1 -1
  254. package/select/useMultiSelect.d.ts +2 -2
  255. package/skeleton/index.cjs +1 -1
  256. package/skeleton/index.js +1 -1
  257. package/spinner/Spinner.d.ts +5 -1
  258. package/spinner/index.cjs +1 -1
  259. package/spinner/index.js +1 -1
  260. package/table/index.cjs +1 -1
  261. package/table/index.js +1 -1
  262. package/tabs/Tabs.d.ts +2 -9
  263. package/tabs/index.cjs +1 -1
  264. package/tabs/index.d.ts +0 -1
  265. package/tabs/index.js +1 -1
  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/TextArea.d.ts +3 -2
  271. package/textfield/TextField.d.ts +3 -2
  272. package/textfield/index.cjs +1 -1
  273. package/textfield/index.js +1 -1
  274. package/toast/index.cjs +1 -1
  275. package/toast/index.js +1 -1
  276. package/toggle-button/index.cjs +1 -1
  277. package/toggle-button/index.js +1 -1
  278. package/tooltip/index.cjs +1 -1
  279. package/tooltip/index.js +1 -1
  280. package/{useButton-R8-i3HLC.cjs → useButton-C0r5nrqs.cjs} +1 -1
  281. package/{useButton-D6iUB8cN.js → useButton-CRgN6aZf.js} +3 -3
  282. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  283. package/{useDateFormatter-BJ1ZyaH1.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  284. package/{useDescription-BMuiAqI5.cjs → useDescription-6BYtQxe6.cjs} +1 -1
  285. package/{useDescription-BLmIkYCq.js → useDescription-BFwQx7Rp.js} +1 -1
  286. package/useEvent-C125NAue.cjs +1 -0
  287. package/{useEvent-DpBHTuHJ.js → useEvent-smuTnX4G.js} +1 -1
  288. package/{useField-BMegM8fA.js → useField-BhJ9dM2g.js} +2 -2
  289. package/{useField-DyeD7MLj.cjs → useField-DvszkIMx.cjs} +1 -1
  290. package/{useFilter-BFnSe_Eq.js → useFilter-BdUU-HQZ.js} +1 -1
  291. package/{useFilter-aoggM85n.cjs → useFilter-R2IPvbS8.cjs} +1 -1
  292. package/{useFocusRing-BcbYske2.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  293. package/{useFocusRing-DMo8ctYV.js → useFocusRing-CcxI7nbg.js} +2 -2
  294. package/{useFocusWithin-ClMkhYcq.js → useFocusWithin-DhXBuB2O.js} +1 -1
  295. package/{useFocusWithin-DTnk0e8a.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  296. package/{useFocusable-DXlMChFC.js → useFocusable-BJj-Bkig.js} +14 -14
  297. package/{useFocusable-CsG-IPuC.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  298. package/{useFormValidation-L0UHvOsP.js → useFormValidation-By7G-T7y.js} +2 -2
  299. package/{useFormValidation-BQIRxgbU.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  300. package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
  301. package/{useHasTabbableChild-BDaxMsGu.js → useHasTabbableChild-CnpSoDuJ.js} +2 -2
  302. package/{useHighlightSelectionDescription-CQaG611l.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  303. package/{useHighlightSelectionDescription-BkEv9Jye.js → useHighlightSelectionDescription-DPiqOr_Z.js} +5 -5
  304. package/{useHover-DGAmG7jt.cjs → useHover-DULSfLuK.cjs} +1 -1
  305. package/{useHover-D6bNIkU0.js → useHover-DkC5FyNd.js} +5 -5
  306. package/{useLabels-CvUk-yS3.cjs → useLabels-B5pmat1S.cjs} +1 -1
  307. package/{useLabels-Kmq5JCp_.js → useLabels-D24on06F.js} +1 -1
  308. package/{useListState-D2IEg6_e.cjs → useListState-DBawAMhF.cjs} +1 -1
  309. package/{useListState-pixYqSLl.js → useListState-PZF3ahpk.js} +1 -1
  310. package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
  311. package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
  312. package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
  313. package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
  314. package/{usePress-DMUpU0GU.js → usePress-BqQIhkNY.js} +54 -54
  315. package/usePress-DmU79HEg.cjs +7 -0
  316. package/{useSingleSelectListState-BlvpP8y-.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
  317. package/{useSingleSelectListState-CwWK_Dx2.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
  318. package/{useTextField-BC5X_AO_.js → useTextField-B8pM0p6X.js} +7 -7
  319. package/{useTextField-Cxpfu0U3.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  320. package/useToggleState-DaxmInOW.cjs +1 -0
  321. package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
  322. package/utils/clsx.d.ts +8 -0
  323. package/utils/types.d.ts +5 -0
  324. package/utils-CtICjCYt.cjs +1 -0
  325. package/{utils-Cpcjg55U.js → utils-D2iKpxcZ.js} +47 -43
  326. package/utils-DRIRjPUS.cjs +1 -0
  327. package/{utils-DFIwp4PB.js → utils-Dxh86KaB.js} +20 -18
  328. package/AccordionItem-Bq8nUKg4.cjs +0 -1
  329. package/AccordionItem-D2Y0gJZB.js +0 -335
  330. package/BadgeContainer-su0iCJKy.cjs +0 -1
  331. package/Button-CMIbSc4-.cjs +0 -1
  332. package/Button.module-BT9wZenr.cjs +0 -1
  333. package/Button.module-CGIVvzVm.js +0 -14
  334. package/Card-D2UbrhDW.js +0 -131
  335. package/Card-UolcSL5O.cjs +0 -1
  336. package/Checkbox-dtZfsSfx.cjs +0 -1
  337. package/Collection-BvWp2xBd.cjs +0 -1
  338. package/ComboBox-uMsVrOYu.cjs +0 -1
  339. package/DateField-B5dlDwdH.cjs +0 -1
  340. package/DateField-CEpRn4wR.js +0 -47
  341. package/DateInputDivider-BnSo_Aox.cjs +0 -1
  342. package/DateRangePicker-It4M98bT.cjs +0 -6
  343. package/Dialog-B1HuzqOX.js +0 -240
  344. package/Dialog-DR6nEqMT.cjs +0 -1
  345. package/Dialog-doGnVsJJ.cjs +0 -1
  346. package/FieldError-Cornph2A.cjs +0 -1
  347. package/FieldError-DdvFyIf4.js +0 -48
  348. package/FocusScope-Uy3DiY0-.cjs +0 -1
  349. package/Group-BKYGeOBr.cjs +0 -1
  350. package/Group-C73mD_-i.js +0 -45
  351. package/Heading-BQlmb5Tm.js +0 -46
  352. package/Heading-D3FR_KXb.cjs +0 -1
  353. package/InfoBanner-C82hcpzj.cjs +0 -1
  354. package/InfoBanner-Dz_0wVSa.js +0 -83
  355. package/Label-06gf6yKQ.cjs +0 -1
  356. package/Layout-DlE30BHE.cjs +0 -16
  357. package/Link-ePZ3nrAW.cjs +0 -6
  358. package/LinkButton-CJyZh3BS.js +0 -69
  359. package/LinkButton-Cw73pOM2.cjs +0 -6
  360. package/ListBox-ICZKGluC.cjs +0 -1
  361. package/ListBox-LncMQt6I.js +0 -523
  362. package/ListBoxSection-BeDwnVZx.cjs +0 -1
  363. package/ListKeyboardDelegate-C_X1wLkh.cjs +0 -1
  364. package/Popover-DIq3kp6B.cjs +0 -1
  365. package/PressResponder-DbnYqwGB.cjs +0 -1
  366. package/ProgressBar-DRhXkSE6.js +0 -53
  367. package/ProgressBar-i7almbvK.cjs +0 -1
  368. package/RSPContexts-D8hmBfGm.cjs +0 -1
  369. package/Radio-BpQoJB8e.cjs +0 -1
  370. package/Radio-D4wUZfW9.js +0 -333
  371. package/RangeCalendar-KcJooXYf.cjs +0 -6
  372. package/SearchField-BA-X9dzb.cjs +0 -6
  373. package/Select-1QuVY4f5.cjs +0 -1
  374. package/SelectionManager-Bq-Gw1UT.js +0 -1043
  375. package/SelectionManager-BtbHoHpA.cjs +0 -1
  376. package/Separator-Cfv2pbWf.cjs +0 -1
  377. package/Skeleton-Iovq135_.js +0 -35
  378. package/Skeleton-MaBUPqhT.cjs +0 -1
  379. package/Spinner-BZ7i01Kt.js +0 -47
  380. package/Spinner-DxWDMW6e.cjs +0 -6
  381. package/TabList-3fErCDyP.cjs +0 -1
  382. package/TabList-CXaxruLg.js +0 -397
  383. package/Table-Dyqa6_rE.cjs +0 -16
  384. package/Tag-BYUPXbhG.js +0 -765
  385. package/Tag-BweDKw1v.cjs +0 -1
  386. package/Text-CmlsaWMA.js +0 -32
  387. package/TextArea-B4BZUoJp.cjs +0 -1
  388. package/TextArea-Df1fR5R4.js +0 -124
  389. package/TextField-Bm5916AD.cjs +0 -1
  390. package/TextField.module-CH39P8ZE.js +0 -13
  391. package/TextField.module-gJ-ruFra.cjs +0 -1
  392. package/ToggleButtonGroup-DY9S3USc.cjs +0 -1
  393. package/inertValue-B3AFhVG4.cjs +0 -1
  394. package/scrollIntoView-ClEACHUk.js +0 -57
  395. package/scrollIntoView-DRSoJp89.cjs +0 -1
  396. package/useDateFormatter-2B0vgHc-.cjs +0 -1
  397. package/useEvent-3ZO5TPSH.cjs +0 -1
  398. package/useHasTabbableChild-CJcLnolh.cjs +0 -1
  399. package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
  400. package/useObserveElement-BdI4zgd7.js +0 -27
  401. package/useObserveElement-MhzEsCkX.cjs +0 -1
  402. package/usePress-CicXV7UO.cjs +0 -7
  403. package/useToggleState-SqDyNfRi.cjs +0 -1
  404. package/utils/storybook.d.ts +0 -5
  405. package/utils/test.d.ts +0 -11
  406. package/utils-CMHKYKlz.cjs +0 -1
  407. package/utils-__vrf9VZ.cjs +0 -1
  408. package/variables-B3KEYyhW.cjs +0 -1
  409. package/variables-DzXcMW2k.js +0 -5
@@ -1,52 +1,51 @@
1
- import { jsx as n, jsxs as g, Fragment as F } from "react/jsx-runtime";
2
- import * as V from "react";
3
- import v, { useMemo as D, useState as E, useCallback as L, useEffect as O, useRef as z } from "react";
4
- import { c as P } from "./clsx-OuTLNxxd.js";
5
- import { b as j } from "./utils-Cpcjg55U.js";
6
- import { a as R, $ as G, T as W } from "./Tag-BYUPXbhG.js";
7
- import { $ as H } from "./TextField-_UY8CXtW.js";
8
- import { c as U } from "./Collection-B0_WAieZ.js";
9
- import { C as k } from "./Checkbox-DTuryJdM.js";
10
- import { L as q, c as X, a as J, b as Q } from "./ListBoxSection-D7BcbjUt.js";
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 O, useEffect as k, useRef as L } 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-DJqYiBLR.js";
7
+ import { $ as H } from "./TextField-BWea-IT-.js";
8
+ import { c as U } from "./Collection-BkxwF21i.js";
9
+ import { C as I } from "./Checkbox-CdN1D5pD.js";
10
+ import { L as q, c as X, a as J, b as Q } from "./ListBoxSection-D_kTkvgG.js";
11
11
  import { C as Y } from "./check-B5h1DvDs.js";
12
- import { g as Z } from "./useHover-D6bNIkU0.js";
13
- import { p as ee, q as te } from "./Dialog-COeUapMW.js";
14
- import { $ as le, c as ae } from "./ListKeyboardDelegate-CVxkAn5D.js";
15
- import { g as ne } from "./SelectionManager-Bq-Gw1UT.js";
16
- import { a as w, c as oe, e as ie } from "./mergeProps-BSsN7Bgk.js";
17
- import { $ as re } from "./filterDOMProps-wsa9OcNI.js";
18
- import { $ as ce } from "./useField-BMegM8fA.js";
19
- import { $ as se, a as de, b as ue } from "./useFormValidation-L0UHvOsP.js";
20
- import { $ as fe } from "./useListState-pixYqSLl.js";
21
- import { u as me } from "./useObserveElement-BdI4zgd7.js";
22
- import { a as pe } from "./VisuallyHidden-CGEtjAP7.js";
23
- import { a as be, L as he } from "./Label-1N6ddn5w.js";
24
- import { T as ge } from "./Text-CmlsaWMA.js";
25
- import { X as ye } from "./x-C2xUHAEl.js";
26
- import { u as B } from "./useLocalizedStringFormatter-N0AyjzbM.js";
27
- import { $ as $e } from "./useButton-D6iUB8cN.js";
28
- import { C as xe } from "./chevron-down-DmZMdOiC.js";
29
- import { $ as ve, F as Se } from "./FieldError-DdvFyIf4.js";
30
- import './assets/Select.css';function I(e) {
12
+ import { d as Z } from "./useHover-DkC5FyNd.js";
13
+ import { p as ee, q as te } from "./Dialog-BUAp30Wc.js";
14
+ import { $ as le, a as ae } from "./ListKeyboardDelegate-BHnZMUhW.js";
15
+ import { h as oe } from "./SelectionManager-C469yQeD.js";
16
+ import { a as w, c as ne, e as re } from "./mergeProps-Ct8m5-xW.js";
17
+ import { $ as ie } from "./filterDOMProps-wsa9OcNI.js";
18
+ import { $ as ce } from "./useField-BhJ9dM2g.js";
19
+ import { $ as se, a as de, b as ue } from "./useFormValidation-By7G-T7y.js";
20
+ import { $ as fe } from "./useListState-PZF3ahpk.js";
21
+ import { a as me } from "./VisuallyHidden-DuW70K-5.js";
22
+ import { a as be, L as he } from "./Label-BGMXsSFb.js";
23
+ import { T as pe } from "./Text-BBFWBNAH.js";
24
+ import { X as ge } from "./x-C2xUHAEl.js";
25
+ import { u as N } from "./useLocalizedStringFormatter-aOhh7wdl.js";
26
+ import { $ as ye } from "./useButton-CRgN6aZf.js";
27
+ import { C as $e } from "./chevron-down-DmZMdOiC.js";
28
+ import { $ as ve, F as xe } from "./FieldError-l3xULRa0.js";
29
+ import './assets/Select.css';function A(e) {
31
30
  return null;
32
31
  }
33
- I.getCollectionNode = function* (t, o) {
34
- let { childItems: r, title: a, children: i } = t, l = t.title || t.children, s = t.textValue || (typeof l == "string" ? l : "") || t["aria-label"] || "";
32
+ A.getCollectionNode = function* (t, o) {
33
+ let { childItems: r, title: l, children: i } = t, a = t.title || t.children, s = t.textValue || (typeof a == "string" ? a : "") || t["aria-label"] || "";
35
34
  !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
35
  type: "item",
37
36
  props: t,
38
- rendered: l,
37
+ rendered: a,
39
38
  textValue: s,
40
39
  "aria-label": t["aria-label"],
41
- hasChildNodes: Ce(t),
40
+ hasChildNodes: Se(t),
42
41
  *childNodes() {
43
42
  if (r) for (let c of r) yield {
44
43
  type: "item",
45
44
  value: c
46
45
  };
47
- else if (a) {
46
+ else if (l) {
48
47
  let c = [];
49
- v.Children.forEach(i, (u) => {
48
+ x.Children.forEach(i, (u) => {
50
49
  c.push({
51
50
  type: "item",
52
51
  element: u
@@ -56,15 +55,15 @@ I.getCollectionNode = function* (t, o) {
56
55
  }
57
56
  };
58
57
  };
59
- function Ce(e) {
60
- return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && v.Children.count(e.children) > 0);
58
+ function Se(e) {
59
+ return e.hasChildItems != null ? e.hasChildItems : !!(e.childItems || e.title && x.Children.count(e.children) > 0);
61
60
  }
62
- let _ = I;
63
- function N(e) {
61
+ let _ = A;
62
+ function M(e) {
64
63
  return null;
65
64
  }
66
- N.getCollectionNode = function* (t) {
67
- let { children: o, title: r, items: a } = t;
65
+ M.getCollectionNode = function* (t) {
66
+ let { children: o, title: r, items: l } = t;
68
67
  yield {
69
68
  type: "section",
70
69
  props: t,
@@ -73,52 +72,52 @@ N.getCollectionNode = function* (t) {
73
72
  "aria-label": t["aria-label"],
74
73
  *childNodes() {
75
74
  if (typeof o == "function") {
76
- if (!a) throw new Error("props.children was a function but props.items is missing");
77
- for (let i of a) yield {
75
+ if (!l) throw new Error("props.children was a function but props.items is missing");
76
+ for (let i of l) yield {
78
77
  type: "item",
79
78
  value: i,
80
79
  renderer: o
81
80
  };
82
81
  } else {
83
82
  let i = [];
84
- v.Children.forEach(o, (l) => {
83
+ x.Children.forEach(o, (a) => {
85
84
  i.push({
86
85
  type: "item",
87
- element: l
86
+ element: a
88
87
  });
89
88
  }), yield* i;
90
89
  }
91
90
  }
92
91
  };
93
92
  };
94
- let we = N;
95
- const _e = "_wrapper_c5n5w_7", Ke = "_trigger_c5n5w_18", Ve = "_medium_c5n5w_32", Pe = "_icon_c5n5w_68", ke = "_tagGroup_c5n5w_74", Be = "_listBoxItemCheckmark_c5n5w_90", Ie = "_triggerContainer_c5n5w_95", Ne = "_selectValueTag_c5n5w_101", Ae = "_clearButton_c5n5w_117", Me = "_truncate_c5n5w_129", Te = "_checkboxContainer_c5n5w_166", Fe = "_selectAll_c5n5w_172", p = {
96
- wrapper: _e,
97
- trigger: Ke,
98
- medium: Ve,
93
+ let Ce = M;
94
+ 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 = {
95
+ wrapper: we,
96
+ trigger: _e,
97
+ medium: Ke,
99
98
  icon: Pe,
100
- tagGroup: ke,
101
- listBoxItemCheckmark: Be,
102
- triggerContainer: Ie,
103
- selectValueTag: Ne,
104
- clearButton: Ae,
105
- truncate: Me,
106
- checkboxContainer: Te,
107
- selectAll: Fe
108
- }, A = ({ item: e }) => /* @__PURE__ */ n(
99
+ tagGroup: Ve,
100
+ listBoxItemCheckmark: ke,
101
+ triggerContainer: Be,
102
+ selectValueTag: Ie,
103
+ clearButton: Ne,
104
+ truncate: Ae,
105
+ checkboxContainer: Me,
106
+ selectAll: Te
107
+ }, T = ({ item: e }) => /* @__PURE__ */ n(
109
108
  J,
110
109
  {
111
110
  ...e.value,
112
111
  textValue: e.textValue,
113
112
  "aria-label": e.textValue,
114
- children: ({ isDisabled: t, isSelected: o, selectionMode: r }) => /* @__PURE__ */ g(F, { children: [
113
+ children: ({ isDisabled: t, isSelected: o, selectionMode: r }) => /* @__PURE__ */ g(D, { children: [
115
114
  r === "multiple" ? /* @__PURE__ */ n(
116
115
  "div",
117
116
  {
118
- className: p.checkboxContainer,
117
+ className: b.checkboxContainer,
119
118
  "aria-hidden": !0,
120
119
  children: /* @__PURE__ */ n(
121
- k,
120
+ I,
122
121
  {
123
122
  isDisabled: t,
124
123
  isSelected: o,
@@ -134,12 +133,12 @@ const _e = "_wrapper_c5n5w_7", Ke = "_trigger_c5n5w_18", Ve = "_medium_c5n5w_32"
134
133
  Y,
135
134
  {
136
135
  size: 20,
137
- className: p.listBoxItemCheckmark
136
+ className: b.listBoxItemCheckmark
138
137
  }
139
138
  ) : null
140
139
  ] })
141
140
  }
142
- ), De = ({ 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(A, { item: o }) }) : null }), Ee = ({
141
+ ), 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 = ({
143
142
  state: e,
144
143
  ...t
145
144
  }) => /* @__PURE__ */ n(
@@ -151,16 +150,16 @@ const _e = "_wrapper_c5n5w_7", Ke = "_trigger_c5n5w_18", Ve = "_medium_c5n5w_32"
151
150
  onSelectionChange: e.setSelectedKeys,
152
151
  items: e.collection,
153
152
  children: (o) => o.type === "section" ? /* @__PURE__ */ n(
154
- De,
153
+ ze,
155
154
  {
156
155
  state: e,
157
156
  section: o
158
157
  }
159
- ) : /* @__PURE__ */ n(A, { item: o })
158
+ ) : /* @__PURE__ */ n(T, { item: o })
160
159
  }
161
160
  );
162
- function Le(e, t, o) {
163
- const { disallowEmptySelection: r, isDisabled: a } = e, i = le({ usage: "search", sensitivity: "base" }), l = D(
161
+ function De(e, t, o) {
162
+ const { disallowEmptySelection: r, isDisabled: l } = e, i = le({ usage: "search", sensitivity: "base" }), a = E(
164
163
  () => new ae(
165
164
  t.collection,
166
165
  t.disabledKeys,
@@ -170,40 +169,40 @@ function Le(e, t, o) {
170
169
  [t.collection, t.disabledKeys, i]
171
170
  ), { menuTriggerProps: s, menuProps: c } = ee(
172
171
  {
173
- isDisabled: a,
172
+ isDisabled: l,
174
173
  type: "listbox"
175
174
  },
176
175
  t,
177
176
  o
178
177
  ), u = (f) => {
179
- const { selectedKeys: x, selectionMode: T } = t, C = x.values().next().value;
180
- if (T === "single")
178
+ const { selectedKeys: v, selectionMode: F } = t, C = v.values().next().value;
179
+ if (F === "single")
181
180
  switch (f.key) {
182
181
  case "ArrowLeft": {
183
182
  f.preventDefault();
184
- const $ = x.size > 0 ? l.getKeyAbove(C) : l.getFirstKey();
183
+ const $ = v.size > 0 ? a.getKeyAbove(C) : a.getFirstKey();
185
184
  $ && t.setSelectedKeys([$]);
186
185
  break;
187
186
  }
188
187
  case "ArrowRight": {
189
188
  f.preventDefault();
190
- const $ = x.size > 0 ? l.getKeyBelow(C) : l.getFirstKey();
189
+ const $ = v.size > 0 ? a.getKeyBelow(C) : a.getFirstKey();
191
190
  $ && t.setSelectedKeys([$]);
192
191
  break;
193
192
  }
194
193
  }
195
- }, { typeSelectProps: d } = ne({
196
- keyboardDelegate: l,
194
+ }, { typeSelectProps: d } = oe({
195
+ keyboardDelegate: a,
197
196
  selectionManager: t.selectionManager,
198
197
  onTypeSelect(f) {
199
198
  t.setSelectedKeys([f]);
200
199
  }
201
- }), { labelProps: y, fieldProps: b } = ce({
200
+ }), { labelProps: y, fieldProps: h } = ce({
202
201
  ...e,
203
202
  labelElementType: "span"
204
203
  });
205
204
  d.onKeyDown = d.onKeyDownCapture, delete d.onKeyDownCapture;
206
- const m = re(e, { labelable: !0 }), h = w(d, s, b), S = oe();
205
+ const m = ie(e, { labelable: !0 }), p = w(d, s, h), S = ne();
207
206
  return {
208
207
  labelProps: {
209
208
  ...y,
@@ -213,16 +212,16 @@ function Le(e, t, o) {
213
212
  }
214
213
  },
215
214
  triggerProps: w(m, {
216
- ...h,
217
- onKeyDown: ie(
218
- h.onKeyDown,
215
+ ...p,
216
+ onKeyDown: re(
217
+ p.onKeyDown,
219
218
  u,
220
219
  e.onKeyDown
221
220
  ),
222
221
  onKeyUp: e.onKeyUp,
223
222
  "aria-labelledby": [
224
- h["aria-labelledby"],
225
- h["aria-label"] && !h["aria-labelledby"] ? h.id : null,
223
+ p["aria-labelledby"],
224
+ p["aria-label"] && !p["aria-labelledby"] ? p.id : null,
226
225
  S
227
226
  ].filter(Boolean).join(" "),
228
227
  onFocus(f) {
@@ -245,18 +244,18 @@ function Le(e, t, o) {
245
244
  f.currentTarget.contains(f.relatedTarget) || (e.onBlur && e.onBlur(f), t.setFocused(!1));
246
245
  },
247
246
  "aria-labelledby": [
248
- b["aria-labelledby"],
249
- h["aria-label"] && !b["aria-labelledby"] ? h.id : null
247
+ h["aria-labelledby"],
248
+ p["aria-label"] && !h["aria-labelledby"] ? p.id : null
250
249
  ].filter(Boolean).join(" ")
251
250
  }
252
251
  };
253
252
  }
254
- function Oe(e) {
253
+ function Ee(e) {
255
254
  const {
256
255
  collection: t,
257
256
  disabledKeys: o,
258
257
  selectionManager: r,
259
- selectionManager: { setSelectedKeys: a, selectedKeys: i, selectionMode: l }
258
+ selectionManager: { setSelectedKeys: l, selectedKeys: i, selectionMode: a }
260
259
  } = fe(e), s = [], c = i.size !== 0 ? Array.from(i).map((u) => {
261
260
  const d = t.getItem(u);
262
261
  return d || s.push(u), d;
@@ -269,28 +268,28 @@ function Oe(e) {
269
268
  collection: t,
270
269
  disabledKeys: o,
271
270
  selectionManager: r,
272
- selectionMode: l,
271
+ selectionMode: a,
273
272
  selectedKeys: i,
274
- setSelectedKeys: a.bind(r),
273
+ setSelectedKeys: l.bind(r),
275
274
  selectedItems: c
276
275
  };
277
276
  }
278
- function ze(e) {
279
- const [t, o] = E(!1), r = te(e), a = e.selectionMode === "single", i = Oe({
277
+ function Oe(e) {
278
+ const [t, o] = V(!1), r = te(e), l = e.selectionMode === "single", i = Ee({
280
279
  ...e,
281
280
  onSelectionChange: (d) => {
282
- e.onSelectionChange && e.onSelectionChange(d), a && r.close();
281
+ e.onSelectionChange && e.onSelectionChange(d), l && r.close();
283
282
  }
284
- }), l = se({
283
+ }), a = se({
285
284
  ...e,
286
285
  validationBehavior: "native",
287
286
  value: i.selectedKeys
288
- }), s = i.collection.size === 0, c = !!i.selectedKeys.size, u = L(() => {
289
- l.resetValidation(), l.commitValidation();
290
- }, [l]);
291
- return O(() => {
292
- a && c && u();
293
- }, [c, a, u]), {
287
+ }), s = i.collection.size === 0, c = !!i.selectedKeys.size, u = O(() => {
288
+ a.resetValidation(), a.commitValidation();
289
+ }, [a]);
290
+ return k(() => {
291
+ l && c && u();
292
+ }, [c, l, u]), {
294
293
  ...i,
295
294
  ...r,
296
295
  close() {
@@ -304,27 +303,50 @@ function ze(e) {
304
303
  },
305
304
  isFocused: t,
306
305
  setFocused: o,
307
- ...l
306
+ ...a
307
+ };
308
+ }
309
+ function Le(e, t = {}) {
310
+ const [o, r] = V({ width: 0, height: 0 }), l = t.delay === void 0 ? 500 : t.delay, i = !!t.includePadding;
311
+ return k(() => {
312
+ if (!e) return;
313
+ const a = new ResizeObserver(
314
+ je(([s]) => {
315
+ const { inlineSize: c, blockSize: u } = i ? s.borderBoxSize[0] : s.contentBoxSize[0];
316
+ r({ width: c, height: u });
317
+ }, l)
318
+ );
319
+ return a.observe(e), () => {
320
+ a.disconnect();
321
+ };
322
+ }, [l, e, i]), o;
323
+ }
324
+ function je(e, t) {
325
+ let o;
326
+ return (r, l) => {
327
+ clearTimeout(o), o = setTimeout(() => {
328
+ e(r, l);
329
+ }, t);
308
330
  };
309
331
  }
310
- function je({
332
+ function Re({
311
333
  autoComplete: e,
312
334
  name: t,
313
335
  isDisabled: o,
314
336
  isRequired: r,
315
- selectRef: a
316
- }, i, l) {
317
- const { visuallyHiddenProps: s } = pe();
318
- return de(a, i.selectedKeys, i.setSelectedKeys), ue(
337
+ selectRef: l
338
+ }, i, a) {
339
+ const { visuallyHiddenProps: s } = me();
340
+ return de(l, i.selectedKeys, i.setSelectedKeys), ue(
319
341
  {
320
342
  validationBehavior: "native",
321
343
  focus: () => {
322
344
  var c;
323
- return (c = l.current) == null ? void 0 : c.focus();
345
+ return (c = a.current) == null ? void 0 : c.focus();
324
346
  }
325
347
  },
326
348
  i,
327
- a
349
+ l
328
350
  ), {
329
351
  containerProps: {
330
352
  ...s,
@@ -348,9 +370,9 @@ function je({
348
370
  }
349
371
  };
350
372
  }
351
- function Re(e) {
352
- const { state: t, triggerRef: o, name: r, isDisabled: a } = e, i = `${e.label}-hidden`, l = z(null), { containerProps: s, selectProps: c } = je(
353
- { ...e, selectRef: l },
373
+ function Ge(e) {
374
+ const { state: t, triggerRef: o, name: r, isDisabled: l } = e, i = `${e.label}-hidden`, a = L(null), { containerProps: s, selectProps: c } = Re(
375
+ { ...e, selectRef: a },
354
376
  t,
355
377
  o
356
378
  );
@@ -365,7 +387,7 @@ function Re(e) {
365
387
  "select",
366
388
  {
367
389
  ...c,
368
- ref: l,
390
+ ref: a,
369
391
  children: [
370
392
  /* @__PURE__ */ n("option", {}),
371
393
  [...t.collection.getKeys()].map((u) => {
@@ -390,49 +412,49 @@ function Re(e) {
390
412
  type: "hidden",
391
413
  autoComplete: c.autoComplete,
392
414
  name: r,
393
- disabled: a,
415
+ disabled: l,
394
416
  value: Array.from(t.selectedKeys).map((u) => u.toString()) ?? [""]
395
417
  }
396
418
  ) : null;
397
419
  }
398
- const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", chosen: "chosen" }, We = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", chosen: "valda" }, M = {
399
- en: Ge,
400
- sv: We
401
- }, He = ({
420
+ 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 = {
421
+ en: We,
422
+ sv: He
423
+ }, Ue = ({
402
424
  state: { selectedItems: e },
403
425
  isDisabled: t,
404
426
  parentWidth: o,
405
427
  onClear: r,
406
- triggerRef: a,
428
+ triggerRef: l,
407
429
  isClearable: i
408
430
  }) => {
409
- const l = B(M);
431
+ const a = N(z);
410
432
  return /* @__PURE__ */ g(
411
433
  "div",
412
434
  {
413
- className: p.selectValueTag,
435
+ className: b.selectValueTag,
414
436
  "data-disabled": t || void 0,
415
437
  children: [
416
438
  /* @__PURE__ */ n(
417
439
  "span",
418
440
  {
419
- className: p.truncate,
441
+ className: b.truncate,
420
442
  style: { maxWidth: o - 92 },
421
- children: e != null && e.length && e.length > 1 ? `${e.length} ${l.format("chosen")}` : e == null ? void 0 : e[0].textValue
443
+ children: e != null && e.length && e.length > 1 ? `${e.length} ${a.format("chosen")}` : e == null ? void 0 : e[0].textValue
422
444
  }
423
445
  ),
424
446
  i && /* @__PURE__ */ n(
425
447
  "button",
426
448
  {
427
449
  disabled: t,
428
- "aria-label": l.format("clearAll"),
429
- className: p.clearButton,
450
+ "aria-label": a.format("clearAll"),
451
+ className: b.clearButton,
430
452
  onClick: () => {
431
453
  var s;
432
- r(), (s = a == null ? void 0 : a.current) == null || s.focus();
454
+ r(), (s = l == null ? void 0 : l.current) == null || s.focus();
433
455
  },
434
456
  children: /* @__PURE__ */ n(
435
- ye,
457
+ ge,
436
458
  {
437
459
  width: 20,
438
460
  height: 20
@@ -443,41 +465,41 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
443
465
  ]
444
466
  }
445
467
  );
446
- }, Ue = ({
468
+ }, qe = ({
447
469
  autoFocus: e,
448
470
  excludeFromTabOrder: t,
449
471
  isDisabled: o,
450
472
  size: r = "large",
451
- isOpen: a,
473
+ isOpen: l,
452
474
  isInvalid: i,
453
- selectionMode: l,
475
+ selectionMode: a,
454
476
  state: { selectedItems: s },
455
477
  placeholder: c,
456
478
  children: u,
457
479
  triggerRef: d,
458
480
  ...y
459
481
  }) => {
460
- const { buttonProps: b } = $e(
482
+ const { buttonProps: h } = ye(
461
483
  { autoFocus: e, excludeFromTabOrder: t, isDisabled: o, ...y },
462
484
  d
463
- ), m = l === "multiple";
485
+ ), m = a === "multiple";
464
486
  return /* @__PURE__ */ g(
465
487
  "div",
466
488
  {
467
- className: p.triggerContainer,
489
+ className: b.triggerContainer,
468
490
  "data-disabled": o || void 0,
469
491
  children: [
470
492
  /* @__PURE__ */ g(
471
493
  "button",
472
494
  {
473
- ...b,
495
+ ...h,
474
496
  autoFocus: e,
475
- className: P(p.trigger, {
476
- [p.medium]: r === "medium"
497
+ className: B(b.trigger, {
498
+ [b.medium]: r === "medium"
477
499
  }),
478
500
  "data-disabled": o || void 0,
479
501
  "data-invalid": i || void 0,
480
- "data-open": a || void 0,
502
+ "data-open": l || void 0,
481
503
  ref: d,
482
504
  type: "button",
483
505
  children: [
@@ -486,9 +508,9 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
486
508
  /* @__PURE__ */ n(
487
509
  "div",
488
510
  {
489
- className: p.icon,
511
+ className: b.icon,
490
512
  "aria-hidden": "true",
491
- children: /* @__PURE__ */ n(xe, { size: 20 })
513
+ children: /* @__PURE__ */ n($e, { size: 20 })
492
514
  }
493
515
  )
494
516
  ]
@@ -501,9 +523,9 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
501
523
  }, K = ({
502
524
  state: e,
503
525
  errorMessage: t
504
- }) => /* @__PURE__ */ n(ve.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ n(Se, { children: t }) }), qe = V.forwardRef(
526
+ }) => /* @__PURE__ */ n(ve.Provider, { value: { ...e.displayValidation }, children: /* @__PURE__ */ n(xe, { children: t }) }), Xe = P.forwardRef(
505
527
  ({ isClearable: e = !0, popover: t, ...o }, r) => {
506
- const a = {
528
+ const l = {
507
529
  selectionMode: "single",
508
530
  errorPosition: "top",
509
531
  disallowEmptySelection: !e,
@@ -511,114 +533,114 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
511
533
  size: "large",
512
534
  popover: t,
513
535
  ...o
514
- }, i = j(r), l = ze(a), s = B(M), { labelProps: c, triggerProps: u, valueProps: d, menuProps: y } = Le(
515
- a,
536
+ }, i = j(r), a = Oe(l), s = N(z), { labelProps: c, triggerProps: u, valueProps: d, menuProps: y } = De(
516
537
  l,
538
+ a,
517
539
  i
518
- ), { width: b } = me(i.current, {
540
+ ), { width: h } = Le(i.current, {
519
541
  includePadding: !0
520
542
  });
521
543
  return /* @__PURE__ */ g(
522
544
  H,
523
545
  {
524
- ...a,
525
- className: P(p.wrapper, a.className),
546
+ ...l,
547
+ className: B(b.wrapper, l.className),
526
548
  children: [
527
549
  /* @__PURE__ */ n(
528
- Re,
550
+ Ge,
529
551
  {
530
- ...a,
531
- state: l,
552
+ ...l,
553
+ state: a,
532
554
  triggerRef: i
533
555
  }
534
556
  ),
535
- /* @__PURE__ */ n(be, { popover: t, children: a.label && /* @__PURE__ */ n(
557
+ /* @__PURE__ */ n(be, { popover: t, children: l.label && /* @__PURE__ */ n(
536
558
  he,
537
559
  {
538
560
  ...c,
539
- "data-disabled": a.isDisabled || void 0,
540
- children: a.label
561
+ "data-disabled": l.isDisabled || void 0,
562
+ children: l.label
541
563
  }
542
564
  ) }),
543
- a.description && /* @__PURE__ */ n(ge, { slot: "description", children: a.description }),
544
- a.errorPosition === "top" && /* @__PURE__ */ n(
565
+ l.description && /* @__PURE__ */ n(pe, { slot: "description", children: l.description }),
566
+ l.errorPosition === "top" && /* @__PURE__ */ n(
545
567
  K,
546
568
  {
547
- ...a,
548
- state: l
569
+ ...l,
570
+ state: a
549
571
  }
550
572
  ),
551
573
  /* @__PURE__ */ n(
552
- Ue,
574
+ qe,
553
575
  {
554
- ...a,
576
+ ...l,
555
577
  ...u,
556
- isInvalid: l.displayValidation.isInvalid,
578
+ isInvalid: a.displayValidation.isInvalid,
557
579
  triggerRef: i,
558
- state: l,
559
- children: a.selectionMode === "multiple" && l.selectedItems ? /* @__PURE__ */ n("span", { ...d, children: /* @__PURE__ */ n(
560
- He,
580
+ state: a,
581
+ children: l.selectionMode === "multiple" && a.selectedItems ? /* @__PURE__ */ n("span", { ...d, children: /* @__PURE__ */ n(
582
+ Ue,
561
583
  {
562
- ...a,
563
- state: l,
564
- parentWidth: b,
565
- onClear: () => l.selectionManager.clearSelection(),
584
+ ...l,
585
+ state: a,
586
+ parentWidth: h,
587
+ onClear: () => a.selectionManager.clearSelection(),
566
588
  triggerRef: i
567
589
  }
568
590
  ) }) : null
569
591
  }
570
592
  ),
571
- a.errorPosition === "bottom" && /* @__PURE__ */ n(
593
+ l.errorPosition === "bottom" && /* @__PURE__ */ n(
572
594
  K,
573
595
  {
574
- ...a,
575
- state: l
596
+ ...l,
597
+ state: a
576
598
  }
577
599
  ),
578
600
  /* @__PURE__ */ g(
579
601
  Q,
580
602
  {
581
- isOpen: l.isOpen,
603
+ isOpen: a.isOpen,
582
604
  onOpenChange: (m) => {
583
- m || l.close();
605
+ m || a.close();
584
606
  },
585
607
  triggerRef: i,
586
- style: { width: b },
608
+ style: { width: h },
587
609
  children: [
588
- a.isSelectableAll && /* @__PURE__ */ n(
589
- k,
610
+ l.isSelectableAll && /* @__PURE__ */ n(
611
+ I,
590
612
  {
591
- isSelected: l.selectionManager.isSelectAll,
592
- isIndeterminate: !l.selectionManager.isSelectAll && !l.selectionManager.isEmpty,
593
- className: p.selectAll,
594
- onChange: () => l.selectionManager.toggleSelectAll(),
613
+ isSelected: a.selectionManager.isSelectAll,
614
+ isIndeterminate: !a.selectionManager.isSelectAll && !a.selectionManager.isEmpty,
615
+ className: b.selectAll,
616
+ onChange: () => a.selectionManager.toggleSelectAll(),
595
617
  children: s.format("selectAll")
596
618
  }
597
619
  ),
598
620
  /* @__PURE__ */ n(
599
- Ee,
621
+ Fe,
600
622
  {
601
623
  ...y,
602
- state: l
624
+ state: a
603
625
  }
604
626
  )
605
627
  ]
606
628
  }
607
629
  ),
608
- a.showTags && !!l.selectedItems && /* @__PURE__ */ n(
630
+ l.showTags && !!a.selectedItems && /* @__PURE__ */ n(
609
631
  R,
610
632
  {
611
633
  "aria-label": s.format("selectedItems"),
612
634
  selectionBehavior: "toggle",
613
- onRemove: (m) => l.selectionManager.toggleSelection(Array.from(m)[0]),
614
- className: p.tagGroup,
615
- children: /* @__PURE__ */ n(G, { items: l.selectedItems, children: (m) => /* @__PURE__ */ n(
635
+ onRemove: (m) => a.selectionManager.toggleSelection(Array.from(m)[0]),
636
+ className: b.tagGroup,
637
+ children: /* @__PURE__ */ n(G, { items: a.selectedItems, children: (m) => /* @__PURE__ */ n(
616
638
  W,
617
639
  {
618
640
  textValue: m.textValue,
619
641
  id: m.key,
620
642
  dismissable: !0,
621
- isDisabled: a.isDisabled,
643
+ isDisabled: l.isDisabled,
622
644
  children: m.textValue
623
645
  },
624
646
  m.key
@@ -629,26 +651,26 @@ const Ge = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Sel
629
651
  }
630
652
  );
631
653
  }
632
- ), Xe = V.forwardRef(
654
+ ), Je = P.forwardRef(
633
655
  ({ options: e, ...t }, o) => /* @__PURE__ */ n(
634
- qe,
656
+ Xe,
635
657
  {
636
658
  ...t,
637
659
  items: e,
638
660
  ref: o,
639
661
  children: (r) => r.children ? /* @__PURE__ */ n(
640
- we,
662
+ Ce,
641
663
  {
642
664
  items: r.children,
643
665
  title: r.name,
644
- children: (a) => /* @__PURE__ */ n(_, { textValue: a.textValue, children: a.name })
666
+ children: (l) => /* @__PURE__ */ n(_, { textValue: l.textValue, children: l.name })
645
667
  },
646
668
  r.name
647
669
  ) : /* @__PURE__ */ n(_, { textValue: r.textValue, children: r.name })
648
670
  }
649
671
  )
650
672
  );
651
- Xe.displayName = "Select";
673
+ Je.displayName = "Select";
652
674
  export {
653
- Xe as S
675
+ Je as S
654
676
  };