@midas-ds/components 14.0.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/AccordionItem-DTbu3lqx.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
  8. package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
  9. package/CHANGELOG.md +49 -0
  10. package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
  23. package/ComboBox-DFPrJUoV.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
  26. package/DateInputDivider-CCrXjsUB.cjs +1 -0
  27. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
  28. package/DateRangePicker-COSTCOt8.cjs +6 -0
  29. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
  30. package/Dialog-CPuJA2fm.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
  32. package/Dialog-DtOf0vWx.cjs +1 -0
  33. package/Dialog-DycTLpdr.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
  37. package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
  38. package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
  39. package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
  40. package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
  41. package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
  51. package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
  61. package/ListBox-FD30iELk.cjs +1 -0
  62. package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
  63. package/ListBox-u6ZXp5Yi.cjs +1 -0
  64. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
  65. package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
  66. package/ListBoxSection-CBlpg0AG.cjs +1 -0
  67. package/ListBoxSection-DjGs1ndn.js +51 -0
  68. package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
  69. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
  70. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  71. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  72. package/Popover-CS8Yyfrq.js +39 -0
  73. package/Popover-DpB0XDBp.cjs +1 -0
  74. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  75. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  76. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
  77. package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
  78. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  79. package/RSPContexts-XUvspq3j.cjs +1 -0
  80. package/Radio-B3FBTn4F.cjs +1 -0
  81. package/Radio-LevFYAg4.js +340 -0
  82. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
  83. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
  84. package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
  85. package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
  86. package/Select-C-ykeY_T.js +773 -0
  87. package/Select-CiCng7ZP.js +678 -0
  88. package/Select-D4wi-0Jw.cjs +1 -0
  89. package/Select-JIDW2mN8.cjs +1 -0
  90. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
  91. package/SelectionIndicator-ClG0GpJu.cjs +1 -0
  92. package/SelectionManager-CNJmHeCF.cjs +1 -0
  93. package/SelectionManager-DoNLJm8c.js +1063 -0
  94. package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
  95. package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
  96. package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
  97. package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
  98. package/Spinner-D6Fcu_Dp.js +54 -0
  99. package/Spinner-DIapnvIz.cjs +6 -0
  100. package/TabList-BBmBumm6.js +394 -0
  101. package/TabList-DVzXuGXA.cjs +1 -0
  102. package/Table-B1nxmW14.cjs +16 -0
  103. package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
  104. package/Tag-BL-_PONN.cjs +1 -0
  105. package/Tag-DX1X_NZE.js +774 -0
  106. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  107. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  108. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  109. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  110. package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
  111. package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
  112. package/TextField-DtD9-arA.cjs +1 -0
  113. package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
  114. package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
  115. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  116. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
  117. package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
  118. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  119. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  120. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  121. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  122. package/accordion/index.cjs +1 -1
  123. package/accordion/index.js +1 -1
  124. package/assets/AccordionItem.css +1 -1
  125. package/assets/FieldError.css +1 -1
  126. package/assets/ListBox.css +1 -0
  127. package/assets/Popover.css +1 -1
  128. package/assets/RangeCalendar.css +1 -1
  129. package/assets/Select.css +1 -1
  130. package/assets/Select2.css +1 -0
  131. package/assets/Spinner.css +1 -1
  132. package/assets/TabList.css +1 -1
  133. package/assets/Tag.css +1 -1
  134. package/assets/default.css +1 -1
  135. package/breadcrumbs/index.cjs +1 -1
  136. package/breadcrumbs/index.js +1 -1
  137. package/button/index.cjs +1 -1
  138. package/button/index.js +1 -1
  139. package/calendar/index.cjs +1 -1
  140. package/calendar/index.js +1 -1
  141. package/card/index.cjs +1 -1
  142. package/card/index.js +1 -1
  143. package/character-counter/index.cjs +1 -1
  144. package/character-counter/index.js +1 -1
  145. package/checkbox/index.cjs +1 -1
  146. package/checkbox/index.js +2 -2
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/index.cjs +1 -1
  150. package/combobox/index.js +1 -1
  151. package/date-field/index.cjs +1 -1
  152. package/date-field/index.js +2 -2
  153. package/date-picker/index.cjs +1 -1
  154. package/date-picker/index.js +1 -1
  155. package/dropdown/index.cjs +1 -1
  156. package/dropdown/index.js +1 -1
  157. package/field-error/index.cjs +1 -1
  158. package/field-error/index.js +1 -1
  159. package/file-upload/index.cjs +1 -1
  160. package/file-upload/index.js +1 -1
  161. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  162. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  163. package/heading/index.cjs +1 -1
  164. package/heading/index.js +1 -1
  165. package/index.cjs +1 -1
  166. package/index.d.ts +1 -0
  167. package/index.js +99 -95
  168. package/info-banner/index.cjs +1 -1
  169. package/info-banner/index.js +1 -1
  170. package/intlStrings-Cd44R5hT.js +278 -0
  171. package/intlStrings-ClBuC6xN.cjs +1 -0
  172. package/label/index.cjs +1 -1
  173. package/label/index.js +1 -1
  174. package/layout/index.cjs +1 -1
  175. package/layout/index.js +1 -1
  176. package/legacy-select/Select.d.ts +8 -0
  177. package/legacy-select/SelectTrigger.d.ts +10 -0
  178. package/legacy-select/index.cjs +1 -0
  179. package/legacy-select/index.d.ts +2 -0
  180. package/legacy-select/index.js +4 -0
  181. package/legacy-select/intl/translations.json.d.ts +17 -0
  182. package/{select → legacy-select}/types.d.ts +2 -2
  183. package/legacy-select/useMultiSelect.d.ts +5 -0
  184. package/link/index.cjs +1 -1
  185. package/link/index.js +2 -2
  186. package/link-button/index.cjs +1 -1
  187. package/link-button/index.js +2 -2
  188. package/list-box/ListBox.d.ts +1 -2
  189. package/list-box/ListBoxHeader.d.ts +3 -0
  190. package/list-box/ListBoxItem.d.ts +9 -3
  191. package/list-box/ListBoxSection.d.ts +1 -1
  192. package/list-box/index.cjs +1 -1
  193. package/list-box/index.d.ts +1 -0
  194. package/list-box/index.js +9 -7
  195. package/menu/index.cjs +1 -1
  196. package/menu/index.js +2 -2
  197. package/modal/index.cjs +1 -1
  198. package/modal/index.js +2 -2
  199. package/package.json +4 -4
  200. package/popover/Popover.d.ts +2 -1
  201. package/popover/index.cjs +1 -1
  202. package/popover/index.js +1 -1
  203. package/progress-bar/index.cjs +1 -1
  204. package/progress-bar/index.js +1 -1
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-BVI21Y4-.js +65 -0
  208. package/scrollIntoView-BueMOyGp.cjs +1 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/Select.d.ts +33 -4
  212. package/select/SelectAll.d.ts +1 -0
  213. package/select/SelectTags.d.ts +4 -0
  214. package/select/SelectTrigger.d.ts +4 -8
  215. package/select/SelectValueTag.d.ts +5 -0
  216. package/select/index.cjs +1 -1
  217. package/select/index.d.ts +1 -2
  218. package/select/index.js +1 -1
  219. package/select/intl/translations.json.d.ts +2 -2
  220. package/spinner/Spinner.d.ts +5 -1
  221. package/spinner/index.cjs +1 -1
  222. package/spinner/index.js +1 -1
  223. package/table/index.cjs +1 -1
  224. package/table/index.js +1 -1
  225. package/tabs/Tabs.d.ts +2 -9
  226. package/tabs/index.cjs +1 -1
  227. package/tabs/index.d.ts +0 -1
  228. package/tabs/index.js +1 -1
  229. package/tag/index.cjs +1 -1
  230. package/tag/index.js +1 -1
  231. package/text/index.cjs +1 -1
  232. package/text/index.js +1 -1
  233. package/textfield/TextArea.d.ts +3 -2
  234. package/textfield/TextField.d.ts +3 -2
  235. package/textfield/index.cjs +1 -1
  236. package/textfield/index.js +1 -1
  237. package/toast/index.cjs +1 -1
  238. package/toast/index.js +1 -1
  239. package/toggle-button/index.cjs +1 -1
  240. package/toggle-button/index.js +1 -1
  241. package/tooltip/index.cjs +1 -1
  242. package/tooltip/index.js +1 -1
  243. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  244. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  245. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  246. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  247. package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
  248. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  249. package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
  250. package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
  251. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  252. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  253. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  254. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  255. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  256. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  257. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  258. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  259. package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
  260. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
  261. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  262. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
  263. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  264. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  265. package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
  266. package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
  267. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  268. package/usePress-DmU79HEg.cjs +7 -0
  269. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
  270. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
  271. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  272. package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
  273. package/utils/types.d.ts +5 -0
  274. package/utils-CtICjCYt.cjs +1 -0
  275. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  276. package/utils-DRIRjPUS.cjs +1 -0
  277. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  278. package/AccordionItem-BJw5IKe0.js +0 -334
  279. package/AccordionItem-DhMimhYo.cjs +0 -1
  280. package/Button-BTX5G3le.cjs +0 -1
  281. package/Checkbox-D-CFY6QF.cjs +0 -1
  282. package/Collection-DaZzboRu.cjs +0 -1
  283. package/ComboBox-C4NybZ32.cjs +0 -1
  284. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  285. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  286. package/Dialog-DLnopN3Z.js +0 -237
  287. package/Dialog-DNu42oLH.cjs +0 -1
  288. package/Dialog-w6EBWT__.cjs +0 -1
  289. package/FocusScope-Dv0F-mG2.cjs +0 -1
  290. package/Group-C2hEIsGV.js +0 -45
  291. package/Group-cuyk9Hsy.cjs +0 -1
  292. package/Layout-CVnlO10z.cjs +0 -16
  293. package/ListBox-Bx9M5vqb.cjs +0 -1
  294. package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
  295. package/ListBoxSection-kujY2gUl.cjs +0 -1
  296. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  297. package/Popover-BI2Koco0.cjs +0 -1
  298. package/Popover-D7_IfJ3o.js +0 -38
  299. package/RSPContexts-D8hmBfGm.cjs +0 -1
  300. package/Radio-D6KNkSA2.js +0 -333
  301. package/Radio-DsVsutMH.cjs +0 -1
  302. package/Select-D9h_RQ2k.cjs +0 -1
  303. package/Select-Dc6y8gPR.js +0 -654
  304. package/SelectionManager-D-4ThfPZ.js +0 -1043
  305. package/SelectionManager-FYrDfe5v.cjs +0 -1
  306. package/Spinner-CTha503N.js +0 -47
  307. package/Spinner-DKQ9_SQB.cjs +0 -6
  308. package/TabList-BhC96APe.cjs +0 -1
  309. package/TabList-P5HnizZt.js +0 -393
  310. package/Table-BB8Ag5_3.cjs +0 -16
  311. package/Tag-D2vh0KRD.js +0 -765
  312. package/Tag-D32MGLjS.cjs +0 -1
  313. package/TextField-4xfAzdBI.cjs +0 -1
  314. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  315. package/assets/ListBoxSection.css +0 -1
  316. package/scrollIntoView-ClEACHUk.js +0 -57
  317. package/scrollIntoView-DRSoJp89.cjs +0 -1
  318. package/select/useMultiSelect.d.ts +0 -4
  319. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  320. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  321. package/useObserveElement-BdI4zgd7.js +0 -27
  322. package/useObserveElement-BzEr5D32.cjs +0 -1
  323. package/usePress-Dj3t18Pf.cjs +0 -7
  324. package/utils-I-LGXGYH.cjs +0 -1
  325. package/utils-cBvgilDa.cjs +0 -1
  326. package/variables-B3KEYyhW.cjs +0 -1
  327. package/variables-DzXcMW2k.js +0 -5
  328. /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
  329. /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
  330. /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
  331. /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
  332. /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
  333. /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
  334. /package/{select → legacy-select}/utils.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { $ as f } from "./useListState-D2yPZrFZ.js";
1
+ import { $ as f } from "./useListState-CP7AKhOX.js";
2
2
  import { $ as y } from "./useControlledState-u436Wbp1.js";
3
3
  import { useMemo as K } from "react";
4
4
  function S(l) {
@@ -1 +1 @@
1
- "use strict";const f=require("./useListState-BdC308Sq.cjs"),b=require("./useControlledState-D0L6S_5r.cjs"),y=require("react");function $(l){var t;let[e,a]=b.$458b0a5536c1a7cf$export$40bfa8c7b0832715(l.selectedKey,(t=l.defaultSelectedKey)!==null&&t!==void 0?t:null,l.onSelectionChange),s=y.useMemo(()=>e!=null?[e]:[],[e]),{collection:o,disabledKeys:i,selectionManager:u}=f.$e72dd72e1c76a225$export$2f645645f7bca764({...l,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:d=>{if(d==="all")return;var n;let c=(n=d.values().next().value)!==null&&n!==void 0?n:null;c===e&&l.onSelectionChange&&l.onSelectionChange(c),a(c)}}),r=e!=null?o.getItem(e):null;return{collection:o,disabledKeys:i,selectionManager:u,selectedKey:e,setSelectedKey:a,selectedItem:r}}exports.$a0d645289fe9b86b$export$e7f05e985daf4b5f=$;
1
+ "use strict";const f=require("./useListState-DZFWpD-x.cjs"),b=require("./useControlledState-D0L6S_5r.cjs"),y=require("react");function $(l){var t;let[e,a]=b.$458b0a5536c1a7cf$export$40bfa8c7b0832715(l.selectedKey,(t=l.defaultSelectedKey)!==null&&t!==void 0?t:null,l.onSelectionChange),s=y.useMemo(()=>e!=null?[e]:[],[e]),{collection:o,disabledKeys:i,selectionManager:u}=f.$e72dd72e1c76a225$export$2f645645f7bca764({...l,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:s,onSelectionChange:d=>{if(d==="all")return;var n;let c=(n=d.values().next().value)!==null&&n!==void 0?n:null;c===e&&l.onSelectionChange&&l.onSelectionChange(c),a(c)}}),r=e!=null?o.getItem(e):null;return{collection:o,disabledKeys:i,selectionManager:u,selectedKey:e,setSelectedKey:a,selectedItem:r}}exports.$a0d645289fe9b86b$export$e7f05e985daf4b5f=$;
@@ -1 +1 @@
1
- "use strict";const I=require("./utils-I-LGXGYH.cjs"),M=require("./mergeProps-Du5A8xi8.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),r=require("./useFormValidation-BJNizNDf.cjs"),V=require("./useControlledState-D0L6S_5r.cjs"),l=require("react"),D=require("./useField-CY4OYE5a.cjs"),O=require("./useFocusable-DhdAtEw8.cjs");function L(e,a){let{inputElementType:$="input",isDisabled:b=!1,isRequired:d=!1,isReadOnly:v=!1,type:m="text",validationBehavior:u="aria"}=e,[i,s]=V.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:C}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,a),c=r.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:f,validationDetails:P}=c.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:h,errorMessageProps:x}=D.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||f}),q=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:m,pattern:e.pattern};let[E]=l.useState(i);var o;return r.$99facab73266f662$export$5add1d006293d136(a,(o=e.defaultValue)!==null&&o!==void 0?o:E,s),r.$e93e671b31057976$export$b8473d3665f3a75a(e,c,a),l.useEffect(()=>{if(a.current instanceof I.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:g,inputProps:M.$3ef42575df84b30b$export$9d1611c77c2fe928(q,$==="input"?p:void 0,{disabled:b,readOnly:v,required:d&&u==="native","aria-required":d&&u==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>s(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(l.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...C,...y}),descriptionProps:h,errorMessageProps:x,isInvalid:n,validationErrors:f,validationDetails:P}}exports.$2d73ec29415bd339$export$712718f7aec83d5=L;
1
+ "use strict";const I=require("./utils-DRIRjPUS.cjs"),M=require("./mergeProps-Du5A8xi8.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),r=require("./useFormValidation-DV2Ioblb.cjs"),V=require("./useControlledState-D0L6S_5r.cjs"),l=require("react"),D=require("./useField-DvszkIMx.cjs"),O=require("./useFocusable-M4se1KJt.cjs");function L(e,a){let{inputElementType:$="input",isDisabled:b=!1,isRequired:d=!1,isReadOnly:v=!1,type:m="text",validationBehavior:u="aria"}=e,[i,s]=V.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:C}=O.$f645667febf57a63$export$4c014de7c8940b4c(e,a),c=r.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:i}),{isInvalid:n,validationErrors:f,validationDetails:P}=c.displayValidation,{labelProps:g,fieldProps:y,descriptionProps:h,errorMessageProps:x}=D.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:n,errorMessage:e.errorMessage||f}),q=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const p={type:m,pattern:e.pattern};let[E]=l.useState(i);var o;return r.$99facab73266f662$export$5add1d006293d136(a,(o=e.defaultValue)!==null&&o!==void 0?o:E,s),r.$e93e671b31057976$export$b8473d3665f3a75a(e,c,a),l.useEffect(()=>{if(a.current instanceof I.$431fbd86ca7dc216$export$f21a1ffae260145a(a.current).HTMLTextAreaElement){let t=a.current;Object.defineProperty(t,"defaultValue",{get:()=>t.value,set:()=>{},configurable:!0})}},[a]),{labelProps:g,inputProps:M.$3ef42575df84b30b$export$9d1611c77c2fe928(q,$==="input"?p:void 0,{disabled:b,readOnly:v,required:d&&u==="native","aria-required":d&&u==="aria"||void 0,"aria-invalid":n||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:i,onChange:t=>s(t.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(l.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...C,...y}),descriptionProps:h,errorMessageProps:x,isInvalid:n,validationErrors:f,validationDetails:P}}exports.$2d73ec29415bd339$export$712718f7aec83d5=L;
@@ -1,11 +1,11 @@
1
- import { h as E } from "./utils-CrT5PVBA.js";
1
+ import { h as E } from "./utils-Dxh86KaB.js";
2
2
  import { a as I } from "./mergeProps-Ct8m5-xW.js";
3
3
  import { $ as M } from "./filterDOMProps-wsa9OcNI.js";
4
- import { $ as S, a as V, b as D } from "./useFormValidation-DdIIVZ5j.js";
4
+ import { $ as S, a as V, b as D } from "./useFormValidation-By7G-T7y.js";
5
5
  import { $ as L } from "./useControlledState-u436Wbp1.js";
6
6
  import O, { useState as R, useEffect as q } from "react";
7
- import { $ as B } from "./useField-sSWPm-He.js";
8
- import { a as T } from "./useFocusable-CCh54GIw.js";
7
+ import { $ as B } from "./useField-Bx76iuoW.js";
8
+ import { a as T } from "./useFocusable-BJj-Bkig.js";
9
9
  function w(e, a) {
10
10
  let { inputElementType: c = "input", isDisabled: f = !1, isRequired: r = !1, isReadOnly: m = !1, type: $ = "text", validationBehavior: l = "aria" } = e, [i, d] = L(e.value, e.defaultValue || "", e.onChange), { focusableProps: b } = T(e, a), u = S({
11
11
  ...e,
package/utils/types.d.ts CHANGED
@@ -2,3 +2,8 @@
2
2
  * Create an object with disallowed keys
3
3
  */
4
4
  export type ExcludeKeysFrom<T extends object, ToExlude extends PropertyKey> = Omit<T, ToExlude> & Partial<Record<ToExlude, never>>;
5
+ /**
6
+ * Get keys in B but not in A
7
+ * ![img](https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Relative_compliment.svg/50px-Relative_compliment.svg.png)
8
+ */
9
+ export type Complement<A, B> = Omit<B, keyof A & keyof B>;
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./mergeProps-Du5A8xi8.cjs"),u=require("react");function y(...e){return e.length===1&&e[0]?e[0]:f=>{let t=!1;const n=e.map(a=>{const l=$(a,f);return t||(t=typeof l=="function"),l});if(t)return()=>{n.forEach((a,l)=>{typeof a=="function"?a():$(e[l],null)})}}}function $(e,f){if(typeof e=="function")return e(f);e!=null&&(e.current=f)}function p(e){const f=u.useRef(null),t=u.useRef(void 0),n=u.useCallback(a=>{if(typeof e=="function"){const l=e,r=l(a);return()=>{typeof r=="function"?r():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return u.useMemo(()=>({get current(){return f.current},set current(a){f.current=a,t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=n(a))}}),[n])}const b=Symbol("default");function C({values:e,children:f}){for(let[t,n]of e)f=u.createElement(t.Provider,{value:n},f);return f}function S(e){let{className:f,style:t,children:n,defaultClassName:a,defaultChildren:l,defaultStyle:r,values:d}=e;return u.useMemo(()=>{let o,s,c;return typeof f=="function"?o=f({...d,defaultClassName:a}):o=f,typeof t=="function"?s=t({...d,defaultStyle:r||{}}):s=t,typeof n=="function"?c=n({...d,defaultChildren:l}):n==null?c=l:c=n,{className:o??a,style:s||r?{...r,...s}:void 0,children:c??l,"data-rac":""}},[f,t,n,a,l,r,d])}function h(e,f){return t=>f(typeof e=="function"?e(t):e,t)}function x(e,f){let t=u.useContext(e);if(f===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let n=f||b;if(!t.slots[n]){let a=new Intl.ListFormat().format(Object.keys(t.slots).map(r=>`"${r}"`)),l=f?`Invalid slot "${f}".`:"A slot prop is required.";throw new Error(`${l} Valid slot names are ${a}.`)}return t.slots[n]}return t}function R(e,f,t){let n=x(t,e.slot)||{},{ref:a,...l}=n,r=p(u.useMemo(()=>y(f,a),[f,a])),d=i.$3ef42575df84b30b$export$9d1611c77c2fe928(l,e);return"style"in l&&l.style&&"style"in e&&e.style&&(typeof l.style=="function"||typeof e.style=="function"?d.style=o=>{let s=typeof l.style=="function"?l.style(o):l.style,c={...o.defaultStyle,...s},m=typeof e.style=="function"?e.style({...o,defaultStyle:c}):e.style;return{...c,...m}}:d.style={...l.style,...e.style}),[d,r]}function N(e=!0){let[f,t]=u.useState(e),n=u.useRef(!1),a=u.useCallback(l=>{n.current=!0,t(!!l)},[]);return i.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{n.current||t(!1)},[]),[a,f]}function g(e){const f=/^(data-.*)$/;let t={};for(const n in e)f.test(n)||(t[n]=e[n]);return t}exports.$5dc95899b306f630$export$c9058316764c140e=y;exports.$64fa3d84918910a7$export$2881499e37b75b9a=C;exports.$64fa3d84918910a7$export$29f1550f4b0d4415=R;exports.$64fa3d84918910a7$export$4d86445c2cf5e3=S;exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8=N;exports.$64fa3d84918910a7$export$c245e6201fed2f75=h;exports.$64fa3d84918910a7$export$c62b8e45d58ddad9=b;exports.$64fa3d84918910a7$export$ef03459518577ad4=g;exports.$64fa3d84918910a7$export$fabf2dc03a41866e=x;exports.$df56164dff5785e2$export$4338b53315abf666=p;
@@ -1,5 +1,5 @@
1
- import { a as p, $ as b } from "./mergeProps-Ct8m5-xW.js";
2
- import x, { useRef as d, useCallback as y, useMemo as i, useContext as C, useState as S } from "react";
1
+ import { a as m, $ as b } from "./mergeProps-Ct8m5-xW.js";
2
+ import x, { useRef as i, useCallback as y, useMemo as d, useContext as C, useState as S } from "react";
3
3
  function h(...e) {
4
4
  return e.length === 1 && e[0] ? e[0] : (l) => {
5
5
  let t = !1;
@@ -18,8 +18,8 @@ function $(e, l) {
18
18
  if (typeof e == "function") return e(l);
19
19
  e != null && (e.current = l);
20
20
  }
21
- function v(e) {
22
- const l = d(null), t = d(void 0), f = y((a) => {
21
+ function R(e) {
22
+ const l = i(null), t = i(void 0), f = y((a) => {
23
23
  if (typeof e == "function") {
24
24
  const n = e, u = n(a);
25
25
  return () => {
@@ -32,7 +32,7 @@ function v(e) {
32
32
  }, [
33
33
  e
34
34
  ]);
35
- return i(() => ({
35
+ return d(() => ({
36
36
  get current() {
37
37
  return l.current;
38
38
  },
@@ -43,7 +43,7 @@ function v(e) {
43
43
  f
44
44
  ]);
45
45
  }
46
- const R = Symbol("default");
46
+ const N = Symbol("default");
47
47
  function j({ values: e, children: l }) {
48
48
  for (let [t, f] of e)
49
49
  l = /* @__PURE__ */ x.createElement(t.Provider, {
@@ -52,25 +52,25 @@ function j({ values: e, children: l }) {
52
52
  return l;
53
53
  }
54
54
  function k(e) {
55
- let { className: l, style: t, children: f, defaultClassName: a, defaultChildren: n, defaultStyle: u, values: o } = e;
56
- return i(() => {
57
- let r, c, s;
55
+ let { className: l, style: t, children: f, defaultClassName: a, defaultChildren: n, defaultStyle: u, values: s } = e;
56
+ return d(() => {
57
+ let r, c, o;
58
58
  return typeof l == "function" ? r = l({
59
- ...o,
59
+ ...s,
60
60
  defaultClassName: a
61
61
  }) : r = l, typeof t == "function" ? c = t({
62
- ...o,
62
+ ...s,
63
63
  defaultStyle: u || {}
64
- }) : c = t, typeof f == "function" ? s = f({
65
- ...o,
64
+ }) : c = t, typeof f == "function" ? o = f({
65
+ ...s,
66
66
  defaultChildren: n
67
- }) : f == null ? s = n : s = f, {
67
+ }) : f == null ? o = n : o = f, {
68
68
  className: r ?? a,
69
69
  style: c || u ? {
70
70
  ...u,
71
71
  ...c
72
72
  } : void 0,
73
- children: s ?? n,
73
+ children: o ?? n,
74
74
  "data-rac": ""
75
75
  };
76
76
  }, [
@@ -80,15 +80,18 @@ function k(e) {
80
80
  a,
81
81
  n,
82
82
  u,
83
- o
83
+ s
84
84
  ]);
85
85
  }
86
- function N(e, l) {
86
+ function w(e, l) {
87
+ return (t) => l(typeof e == "function" ? e(t) : e, t);
88
+ }
89
+ function g(e, l) {
87
90
  let t = C(e);
88
91
  if (l === null)
89
92
  return null;
90
93
  if (t && typeof t == "object" && "slots" in t && t.slots) {
91
- let f = l || R;
94
+ let f = l || N;
92
95
  if (!t.slots[f]) {
93
96
  let a = new Intl.ListFormat().format(Object.keys(t.slots).map((u) => `"${u}"`)), n = l ? `Invalid slot "${l}".` : "A slot prop is required.";
94
97
  throw new Error(`${n} Valid slot names are ${a}.`);
@@ -97,33 +100,33 @@ function N(e, l) {
97
100
  }
98
101
  return t;
99
102
  }
100
- function w(e, l, t) {
101
- let f = N(t, e.slot) || {}, { ref: a, ...n } = f, u = v(i(() => h(l, a), [
103
+ function I(e, l, t) {
104
+ let f = g(t, e.slot) || {}, { ref: a, ...n } = f, u = R(d(() => h(l, a), [
102
105
  l,
103
106
  a
104
- ])), o = p(n, e);
105
- return "style" in n && n.style && "style" in e && e.style && (typeof n.style == "function" || typeof e.style == "function" ? o.style = (r) => {
106
- let c = typeof n.style == "function" ? n.style(r) : n.style, s = {
107
+ ])), s = m(n, e);
108
+ return "style" in n && n.style && "style" in e && e.style && (typeof n.style == "function" || typeof e.style == "function" ? s.style = (r) => {
109
+ let c = typeof n.style == "function" ? n.style(r) : n.style, o = {
107
110
  ...r.defaultStyle,
108
111
  ...c
109
- }, m = typeof e.style == "function" ? e.style({
112
+ }, p = typeof e.style == "function" ? e.style({
110
113
  ...r,
111
- defaultStyle: s
114
+ defaultStyle: o
112
115
  }) : e.style;
113
116
  return {
114
- ...s,
115
- ...m
117
+ ...o,
118
+ ...p
116
119
  };
117
- } : o.style = {
120
+ } : s.style = {
118
121
  ...n.style,
119
122
  ...e.style
120
123
  }), [
121
- o,
124
+ s,
122
125
  u
123
126
  ];
124
127
  }
125
- function I(e = !0) {
126
- let [l, t] = S(e), f = d(!1), a = y((n) => {
128
+ function M(e = !0) {
129
+ let [l, t] = S(e), f = i(!1), a = y((n) => {
127
130
  f.current = !0, t(!!n);
128
131
  }, []);
129
132
  return b(() => {
@@ -133,20 +136,21 @@ function I(e = !0) {
133
136
  l
134
137
  ];
135
138
  }
136
- function M(e) {
139
+ function _(e) {
137
140
  const l = /^(data-.*)$/;
138
141
  let t = {};
139
142
  for (const f in e) l.test(f) || (t[f] = e[f]);
140
143
  return t;
141
144
  }
142
145
  export {
143
- w as $,
146
+ I as $,
144
147
  k as a,
145
- v as b,
146
- N as c,
147
- I as d,
148
- M as e,
148
+ R as b,
149
+ g as c,
150
+ M as d,
151
+ _ as e,
149
152
  j as f,
150
- R as g,
151
- h
153
+ N as g,
154
+ h,
155
+ w as i
152
156
  };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("react"),E=require("./mergeProps-Du5A8xi8.cjs"),x=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},p=e=>e&&"window"in e&&e.window===e?e:x(e).defaultView||window;function T(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function g(e){return T(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let y=!1,S=!1;function M(){return y}function b(){return S}function P(e,t){if(!b())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:g(r)?r=r.host:r=r.parentNode}return!1}const A=(e=document)=>{var t;if(!b())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function F(e){return b()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function $(e){if(N())e.focus({preventScroll:!0});else{let t=R(e);e.focus(),C(t)}}let u=null;function N(){if(u==null){u=!1;try{document.createElement("div").focus({get preventScroll(){return u=!0,!0}})}catch{}}return u}function R(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function C(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function O(){let e=f.useRef(new Map),t=f.useCallback((o,d,a,c)=>{let i=c!=null&&c.once?(...s)=>{e.current.delete(a),a(...s)}:a;e.current.set(a,{type:d,eventTarget:o,fn:i,options:c}),o.addEventListener(d,i,c)},[]),r=f.useCallback((o,d,a,c)=>{var i;let s=((i=e.current.get(a))===null||i===void 0?void 0:i.fn)||a;o.removeEventListener(d,s,c),e.current.delete(a)},[]),n=f.useCallback(()=>{e.current.forEach((o,d)=>{r(o.eventTarget,o.type,d,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}const H=typeof Element<"u"&&"checkVisibility"in Element.prototype;function V(e){const t=p(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:d}=e.ownerDocument.defaultView;let{display:a,visibility:c}=d(e);o=a!=="none"&&c!=="hidden"&&c!=="collapse"}return o}function D(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function v(e,t){return H?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&V(e)&&D(e,t)&&(!e.parentElement||v(e.parentElement,e))}const m=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],_=m.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";m.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const G=m.join(':not([hidden]):not([tabindex="-1"]),');function L(e){return e.matches(_)&&v(e)&&!h(e)}function I(e){return e.matches(G)&&v(e)&&!h(e)}function h(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function w(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function j(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function k(e){let t=f.useRef({isFocused:!1,observer:null});E.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=E.$8ae05eaa5c114e9c$export$7f54fc3180508a52(n=>{e==null||e(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,d=a=>{if(t.current.isFocused=!1,o.disabled){let c=w(a);r(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",d,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let c=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48=!1;function B(e){for(;e&&!L(e);)e=e.parentElement;let t=p(e),r=t.document.activeElement;if(!r||r===e)return;exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48=!0;let n=!1,o=l=>{(l.target===r||n)&&l.stopImmediatePropagation()},d=l=>{(l.target===r||n)&&(l.stopImmediatePropagation(),!e&&!n&&(n=!0,$(r),i()))},a=l=>{(l.target===e||n)&&l.stopImmediatePropagation()},c=l=>{(l.target===e||n)&&(l.stopImmediatePropagation(),n||(n=!0,$(r),i()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",d,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",a,!0);let i=()=>{cancelAnimationFrame(s),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",d,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",a,!0),exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48=!1,n=!1},s=requestAnimationFrame(i);return i}exports.$03deb23ff14920c4$export$4eaf04e54aa8eed6=O;exports.$431fbd86ca7dc216$export$b204af158042fbac=x;exports.$431fbd86ca7dc216$export$f21a1ffae260145a=p;exports.$7215afc6de606d6b$export$de79e2c695e052f3=$;exports.$8a9cb279dc87e130$export$525bc4921d56d4a=w;exports.$8a9cb279dc87e130$export$715c682d09d639cc=k;exports.$8a9cb279dc87e130$export$c2b7abe5d61ec696=j;exports.$8a9cb279dc87e130$export$cabe61c495ee3649=B;exports.$b4b717babfbb907b$export$4c063cf1350e6fed=L;exports.$b4b717babfbb907b$export$bebd5a1431fec25d=I;exports.$d4ee10de306f2510$export$4282f70798064fe0=P;exports.$d4ee10de306f2510$export$cd4e5573fbe2b576=A;exports.$d4ee10de306f2510$export$e58f029f0fbfdb29=F;exports.$f4e2df6bd15f8569$export$1b00cb14a96194e6=M;exports.$f4e2df6bd15f8569$export$98658e8c59125e6a=b;
@@ -1,4 +1,4 @@
1
- import { useRef as E, useCallback as u, useEffect as w } from "react";
1
+ import { useRef as E, useCallback as f, useEffect as w } from "react";
2
2
  import { $ as T, d as g } from "./mergeProps-Ct8m5-xW.js";
3
3
  const y = (e) => {
4
4
  var t;
@@ -38,30 +38,30 @@ function U(e) {
38
38
  return b() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
39
39
  }
40
40
  function v(e) {
41
- if (F()) e.focus({
41
+ if (P()) e.focus({
42
42
  preventScroll: !0
43
43
  });
44
44
  else {
45
- let t = N(e);
46
- e.focus(), P(t);
45
+ let t = F(e);
46
+ e.focus(), N(t);
47
47
  }
48
48
  }
49
- let f = null;
50
- function F() {
51
- if (f == null) {
52
- f = !1;
49
+ let u = null;
50
+ function P() {
51
+ if (u == null) {
52
+ u = !1;
53
53
  try {
54
54
  document.createElement("div").focus({
55
55
  get preventScroll() {
56
- return f = !0, !0;
56
+ return u = !0, !0;
57
57
  }
58
58
  });
59
59
  } catch {
60
60
  }
61
61
  }
62
- return f;
62
+ return u;
63
63
  }
64
- function N(e) {
64
+ function F(e) {
65
65
  let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
66
66
  for (; t instanceof HTMLElement && t !== r; )
67
67
  (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
@@ -75,12 +75,12 @@ function N(e) {
75
75
  scrollLeft: r.scrollLeft
76
76
  }), n;
77
77
  }
78
- function P(e) {
78
+ function N(e) {
79
79
  for (let { element: t, scrollTop: n, scrollLeft: r } of e)
80
80
  t.scrollTop = n, t.scrollLeft = r;
81
81
  }
82
82
  function W() {
83
- let e = E(/* @__PURE__ */ new Map()), t = u((o, l, a, i) => {
83
+ let e = E(/* @__PURE__ */ new Map()), t = f((o, l, a, i) => {
84
84
  let c = i != null && i.once ? (...d) => {
85
85
  e.current.delete(a), a(...d);
86
86
  } : a;
@@ -90,11 +90,11 @@ function W() {
90
90
  fn: c,
91
91
  options: i
92
92
  }), o.addEventListener(l, c, i);
93
- }, []), n = u((o, l, a, i) => {
93
+ }, []), n = f((o, l, a, i) => {
94
94
  var c;
95
95
  let d = ((c = e.current.get(a)) === null || c === void 0 ? void 0 : c.fn) || a;
96
96
  o.removeEventListener(l, d, i), e.current.delete(a);
97
- }, []), r = u(() => {
97
+ }, []), r = f(() => {
98
98
  e.current.forEach((o, l) => {
99
99
  n(o.eventTarget, o.type, l, o.options);
100
100
  });
@@ -126,7 +126,9 @@ function R(e, t) {
126
126
  !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
127
127
  }
128
128
  function $(e, t) {
129
- return O ? e.checkVisibility() && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && H(e) && R(e, t) && (!e.parentElement || $(e.parentElement, e));
129
+ return O ? e.checkVisibility({
130
+ visibilityProperty: !0
131
+ }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && H(e) && R(e, t) && (!e.parentElement || $(e.parentElement, e));
130
132
  }
131
133
  const p = [
132
134
  "input:not([disabled]):not([type=hidden])",
@@ -186,7 +188,7 @@ function z(e) {
186
188
  let n = g((r) => {
187
189
  e == null || e(r);
188
190
  });
189
- return u((r) => {
191
+ return f((r) => {
190
192
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
191
193
  t.current.isFocused = !0;
192
194
  let o = r.target, l = (a) => {
@@ -1,334 +0,0 @@
1
- import { jsx as u, jsxs as S } from "react/jsx-runtime";
2
- import { c as h } from "./clsx-jbLnTBqA.js";
3
- import { i as z } from "./icon-map-uS87FT_Q.js";
4
- import b, { useRef as G, useCallback as $, useEffect as y, useMemo as K, forwardRef as v, createContext as m, useContext as P } from "react";
5
- import { e as N } from "./Button-B6lxIKPk.js";
6
- import { $ as H, a as C, f as B, g as q, h as O } from "./utils-BMBoiyL7.js";
7
- import { c as E, $ as J, a as M } from "./mergeProps-Ct8m5-xW.js";
8
- import { $ as D } from "./filterDOMProps-wsa9OcNI.js";
9
- import { $ as A } from "./useControlledState-u436Wbp1.js";
10
- import { flushSync as L } from "react-dom";
11
- import { $ as Q } from "./useEvent-smuTnX4G.js";
12
- import { $ as U } from "./SSRProvider-D8lZ0o6A.js";
13
- import { $ as R } from "./useFocusRing-Copf_tx8.js";
14
- import { B as X } from "./Button-CRIYvCRM.js";
15
- import { H as Y } from "./Heading-CEx2LJyM.js";
16
- import { C as Z } from "./chevron-down-DmZMdOiC.js";
17
- import './assets/AccordionItem.css';const ee = "_root_17bdp_1", te = "_contained_17bdp_5", _ = {
18
- root: ee,
19
- contained: te
20
- };
21
- function ne(d, e, n) {
22
- let { isDisabled: t } = d, a = E(), s = E(), l = !U() && "onbeforematch" in document.body, o = G(null), c = $(() => {
23
- o.current = requestAnimationFrame(() => {
24
- n.current && n.current.setAttribute("hidden", "until-found");
25
- }), L(() => {
26
- e.toggle();
27
- });
28
- }, [
29
- n,
30
- e
31
- ]);
32
- return Q(n, "beforematch", l ? c : null), J(() => {
33
- o.current && cancelAnimationFrame(o.current), l && n.current && !t && (e.isExpanded ? n.current.removeAttribute("hidden") : n.current.setAttribute("hidden", "until-found"));
34
- }, [
35
- t,
36
- n,
37
- e.isExpanded,
38
- l
39
- ]), y(() => () => {
40
- o.current && cancelAnimationFrame(o.current);
41
- }, []), {
42
- buttonProps: {
43
- id: a,
44
- "aria-expanded": e.isExpanded,
45
- "aria-controls": s,
46
- onPress: (f) => {
47
- !t && f.pointerType !== "keyboard" && e.toggle();
48
- },
49
- isDisabled: t,
50
- onPressStart(f) {
51
- f.pointerType === "keyboard" && !t && e.toggle();
52
- }
53
- },
54
- panelProps: {
55
- id: s,
56
- // This can be overridden at the panel element level.
57
- role: "group",
58
- "aria-labelledby": a,
59
- "aria-hidden": !e.isExpanded,
60
- hidden: l ? !0 : !e.isExpanded
61
- }
62
- };
63
- }
64
- function ae(d) {
65
- let [e, n] = A(d.isExpanded, d.defaultExpanded || !1, d.onExpandedChange);
66
- const t = $(() => {
67
- n(!0);
68
- }, [
69
- n
70
- ]), a = $(() => {
71
- n(!1);
72
- }, [
73
- n
74
- ]), s = $(() => {
75
- n(!e);
76
- }, [
77
- n,
78
- e
79
- ]);
80
- return {
81
- isExpanded: e,
82
- setExpanded: n,
83
- expand: t,
84
- collapse: a,
85
- toggle: s
86
- };
87
- }
88
- function se(d) {
89
- let { allowsMultipleExpanded: e = !1, isDisabled: n = !1 } = d, [t, a] = A(K(() => d.expandedKeys ? new Set(d.expandedKeys) : void 0, [
90
- d.expandedKeys
91
- ]), K(() => d.defaultExpandedKeys ? new Set(d.defaultExpandedKeys) : /* @__PURE__ */ new Set(), [
92
- d.defaultExpandedKeys
93
- ]), d.onExpandedChange);
94
- return y(() => {
95
- if (!e && t.size > 1) {
96
- let s = t.values().next().value;
97
- s != null && a(/* @__PURE__ */ new Set([
98
- s
99
- ]));
100
- }
101
- }), {
102
- allowsMultipleExpanded: e,
103
- isDisabled: n,
104
- expandedKeys: t,
105
- setExpandedKeys: a,
106
- toggleKey(s) {
107
- let i;
108
- e ? (i = new Set(t), i.has(s) ? i.delete(s) : i.add(s)) : i = new Set(t.has(s) ? [] : [
109
- s
110
- ]), a(i);
111
- }
112
- };
113
- }
114
- const F = /* @__PURE__ */ m(null), de = /* @__PURE__ */ v(function(e, n) {
115
- let t = se(e), a = C({
116
- ...e,
117
- defaultClassName: "react-aria-DisclosureGroup",
118
- values: {
119
- isDisabled: t.isDisabled,
120
- state: t
121
- }
122
- }), s = D(e, {
123
- global: !0
124
- });
125
- return /* @__PURE__ */ b.createElement("div", {
126
- ...s,
127
- ...a,
128
- ref: n,
129
- "data-disabled": e.isDisabled || void 0
130
- }, /* @__PURE__ */ b.createElement(F.Provider, {
131
- value: t
132
- }, a.children));
133
- }), oe = /* @__PURE__ */ m(null), ie = /* @__PURE__ */ m(null), T = /* @__PURE__ */ m(null), re = /* @__PURE__ */ v(function(e, n) {
134
- [e, n] = H(e, n, oe);
135
- let t = P(F), { id: a, ...s } = e, i = E();
136
- a || (a = i);
137
- let l = t ? t.expandedKeys.has(a) : e.isExpanded, o = ae({
138
- ...e,
139
- isExpanded: l,
140
- onExpandedChange(j) {
141
- var g;
142
- t && t.toggleKey(a), (g = e.onExpandedChange) === null || g === void 0 || g.call(e, j);
143
- }
144
- }), c = b.useRef(null), f = e.isDisabled || (t == null ? void 0 : t.isDisabled) || !1, { buttonProps: p, panelProps: x } = ne({
145
- ...e,
146
- isExpanded: l,
147
- isDisabled: f
148
- }, o, c), { isFocusVisible: w, focusProps: V } = R({
149
- within: !0
150
- }), I = C({
151
- ...e,
152
- id: void 0,
153
- defaultClassName: "react-aria-Disclosure",
154
- values: {
155
- isExpanded: o.isExpanded,
156
- isDisabled: f,
157
- isFocusVisibleWithin: w,
158
- state: o
159
- }
160
- }), k = D(s, {
161
- global: !0
162
- });
163
- return /* @__PURE__ */ b.createElement(B, {
164
- values: [
165
- [
166
- N,
167
- {
168
- slots: {
169
- [q]: {},
170
- trigger: p
171
- }
172
- }
173
- ],
174
- [
175
- T,
176
- {
177
- panelProps: x,
178
- panelRef: c
179
- }
180
- ],
181
- [
182
- ie,
183
- o
184
- ]
185
- ]
186
- }, /* @__PURE__ */ b.createElement("div", {
187
- ...M(k, I, V),
188
- ref: n,
189
- "data-expanded": o.isExpanded || void 0,
190
- "data-disabled": f || void 0,
191
- "data-focus-visible-within": w || void 0
192
- }, I.children));
193
- }), le = /* @__PURE__ */ v(function(e, n) {
194
- let { role: t = "group" } = e, { panelProps: a, panelRef: s } = P(T), { isFocusVisible: i, focusProps: l } = R({
195
- within: !0
196
- }), o = C({
197
- ...e,
198
- defaultClassName: "react-aria-DisclosurePanel",
199
- values: {
200
- isFocusVisibleWithin: i
201
- }
202
- }), c = D(e, {
203
- global: !0
204
- });
205
- return /* @__PURE__ */ b.createElement("div", {
206
- ...M(c, o, a, l),
207
- ref: O(n, s),
208
- role: t,
209
- "data-focus-visible-within": i || void 0
210
- }, /* @__PURE__ */ b.createElement(B, {
211
- values: [
212
- [
213
- N,
214
- null
215
- ]
216
- ]
217
- }, e.children));
218
- }), W = m(void 0), ze = ({
219
- variant: d,
220
- children: e,
221
- className: n,
222
- isContained: t,
223
- ...a
224
- }) => {
225
- const s = t || d === "contained";
226
- return /* @__PURE__ */ u(W.Provider, { value: { isContained: s }, children: /* @__PURE__ */ u(
227
- de,
228
- {
229
- className: h(
230
- _.root,
231
- s ? _.contained : _.uncontained,
232
- n
233
- ),
234
- ...a,
235
- children: e
236
- }
237
- ) });
238
- }, ce = "_item_mrybs_1", fe = "_contained_mrybs_18", ue = "_success_mrybs_29", be = "_warning_mrybs_35", me = "_info_mrybs_41", pe = "_important_mrybs_47", $e = "_triggerButton_mrybs_58", xe = "_triggerText_mrybs_62", ge = "_trigger_mrybs_58", _e = "_triggerMainContent_mrybs_75", he = "_chevronIcon_mrybs_92", Ee = "_statusIcon_mrybs_98", ye = "_panel_mrybs_116", ve = "_content_mrybs_128", Pe = "_hasBackground_mrybs_133", Ce = "_header_mrybs_137", r = {
239
- item: ce,
240
- contained: fe,
241
- success: ue,
242
- warning: be,
243
- info: me,
244
- important: pe,
245
- triggerButton: $e,
246
- triggerText: xe,
247
- trigger: ge,
248
- triggerMainContent: _e,
249
- " ": "_ _mrybs_1",
250
- chevronIcon: he,
251
- statusIcon: Ee,
252
- panel: ye,
253
- content: ve,
254
- hasBackground: Pe,
255
- header: Ce
256
- }, Ge = ({
257
- title: d,
258
- children: e,
259
- className: n,
260
- headingLevel: t = "h2",
261
- type: a,
262
- hasBackground: s = !0,
263
- isContained: i,
264
- ...l
265
- }) => {
266
- const o = P(W), c = i ?? (o == null ? void 0 : o.isContained) ?? !1, f = typeof d == "object";
267
- y(() => {
268
- a && !c && console.warn(
269
- "AccordionItem: When 'type' is set, it is recommended to also set 'isContained' to true for visual consistency."
270
- );
271
- }, [a, c]);
272
- const p = a ? z[a] : null, x = p ? /* @__PURE__ */ u(
273
- p,
274
- {
275
- size: 20,
276
- className: r.statusIcon
277
- }
278
- ) : null;
279
- return /* @__PURE__ */ S(
280
- re,
281
- {
282
- ...l,
283
- className: h(
284
- r.item,
285
- a && r[a],
286
- c && r.contained,
287
- n
288
- ),
289
- children: [
290
- /* @__PURE__ */ u("div", { className: r.trigger, children: /* @__PURE__ */ S(
291
- X,
292
- {
293
- className: r.triggerButton,
294
- slot: "trigger",
295
- variant: "icon",
296
- children: [
297
- /* @__PURE__ */ u(
298
- Z,
299
- {
300
- size: 20,
301
- className: r.chevronIcon
302
- }
303
- ),
304
- /* @__PURE__ */ u("div", { className: r.triggerMainContent, children: f ? d : /* @__PURE__ */ u(
305
- Y,
306
- {
307
- level: 3,
308
- elementType: t,
309
- className: r.triggerText,
310
- children: d
311
- }
312
- ) }),
313
- x
314
- ]
315
- }
316
- ) }),
317
- /* @__PURE__ */ u(le, { className: r.panel, children: /* @__PURE__ */ u(
318
- "div",
319
- {
320
- className: h(
321
- r.content,
322
- s && r.hasBackground
323
- ),
324
- children: e
325
- }
326
- ) })
327
- ]
328
- }
329
- );
330
- };
331
- export {
332
- Ge as A,
333
- ze as a
334
- };