@midas-ds/components 11.2.0 → 12.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 (465) hide show
  1. package/AccordionItem-C9dBt-tQ.js +335 -0
  2. package/AccordionItem-SOfjXh3V.cjs +1 -0
  3. package/BadgeContainer-iNNgJKD9.js +37 -0
  4. package/{BadgeContainer-DWVHS5dn.cjs → BadgeContainer-su0iCJKy.cjs} +1 -1
  5. package/Breadcrumbs-BAHJMPsu.js +271 -0
  6. package/Breadcrumbs-DUcHHI_2.cjs +1 -0
  7. package/Button-CMIbSc4-.cjs +1 -0
  8. package/{Button-CepQFEit.js → Button-DD5_S-tD.js} +154 -160
  9. package/{Button-BjMaGya2.js → Button-DYcmg49Z.js} +2 -2
  10. package/{Button-Dq6ugqxT.cjs → Button-DrL5Jv-s.cjs} +1 -1
  11. package/Button.module-BNLcvARn.cjs +1 -0
  12. package/Button.module-Bax2YU6N.js +14 -0
  13. package/ButtonGroup-ClYTgaRc.cjs +1 -0
  14. package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
  15. package/CHANGELOG.md +114 -0
  16. package/Card-BDDyGAMA.js +131 -0
  17. package/Card-mj5lCIR4.cjs +1 -0
  18. package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DT7A0wWP.js} +8 -8
  20. package/Checkbox-BtM2rFh9.js +278 -0
  21. package/Checkbox-CvdIG43J.cjs +1 -0
  22. package/CheckboxGroup-C94as9Xt.cjs +1 -0
  23. package/CheckboxGroup-CjcDYBRk.js +157 -0
  24. package/Collection-B0_WAieZ.js +625 -0
  25. package/Collection-BvWp2xBd.cjs +1 -0
  26. package/{ColorSchemeSwitch-PiEHptw1.js → ColorSchemeSwitch-C4PMYeD5.js} +17 -25
  27. package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +1 -1
  28. package/ComboBox-B2EmfOyr.cjs +1 -0
  29. package/{ComboBox-DfJ_aJrf.js → ComboBox-BWXJZyOR.js} +522 -511
  30. package/DateField-CcQJYDLD.js +47 -0
  31. package/DateField-IpCiF81R.cjs +1 -0
  32. package/{DateInputDivider-BmvqW1Hk.js → DateInputDivider-CXkUdlzc.js} +936 -839
  33. package/DateInputDivider-Cf5GZHlM.cjs +1 -0
  34. package/DateRangePicker-B2BJO1KC.js +889 -0
  35. package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
  36. package/Dialog-B8swxl24.js +1643 -0
  37. package/Dialog-DR6nEqMT.cjs +1 -0
  38. package/Dialog-DgJobm71.cjs +1 -0
  39. package/Dialog-P3frHOdq.js +240 -0
  40. package/DragAndDrop-Dw8JZmrn.cjs +1 -0
  41. package/DragAndDrop-PrUJv--B.js +75 -0
  42. package/{Dropdown-Cpc2EszJ.js → Dropdown-CIvWpN3v.js} +33 -32
  43. package/Dropdown-DJ2vWAqk.cjs +6 -0
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/{FieldError-CDCvUjK5.js → FieldError-DdvFyIf4.js} +16 -14
  46. package/{FileUpload-BokzdXVc.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-Bz9md5zc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-DMsfA3bj.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/Grid-WbEkSCGh.cjs +1 -0
  51. package/{Grid--OhtgCo6.js → Grid-s8ovKDi8.js} +6 -9
  52. package/GridItem-CIVF1fRW.cjs +1 -0
  53. package/GridItem-D3FZyyO-.js +243 -0
  54. package/{Group-DOpbdoAi.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B0vQfHDy.js → Group-C73mD_-i.js} +6 -6
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/InfoBanner-CqjnTYaa.cjs +1 -0
  59. package/InfoBanner-CrA8MS3v.js +83 -0
  60. package/{Input-n-Z20KbW.js → Input-BLVRv0FK.js} +4 -4
  61. package/{Input-MJji5hhq.cjs → Input-CzMx2mfl.cjs} +1 -1
  62. package/{Label-endv1fkJ.js → Label-BG7G0iyG.js} +23 -27
  63. package/Label-C00qz3kQ.cjs +1 -0
  64. package/Layout-Bta_Cpq_.cjs +16 -0
  65. package/Layout-CG-Qxr_1.js +482 -0
  66. package/{Link-ovwNVMfg.js → Link-BtxKZ0h3.js} +16 -16
  67. package/Link-Bx6avHVl.cjs +6 -0
  68. package/Link-CbFSuEI1.js +73 -0
  69. package/Link-wM7cVPlS.cjs +1 -0
  70. package/LinkButton-BvXu6vAH.cjs +6 -0
  71. package/LinkButton-D3EnZ65v.js +69 -0
  72. package/ListBox-ICZKGluC.cjs +1 -0
  73. package/ListBox-LncMQt6I.js +523 -0
  74. package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
  75. package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
  76. package/ListBoxSection-BCPv9H50.js +1085 -0
  77. package/ListBoxSection-Dx75ZinL.cjs +1 -0
  78. package/{ListKeyboardDelegate-CHki611g.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  79. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  80. package/{Logo-BpH0HC91.cjs → Logo-CFjZc5u2.cjs} +1 -1
  81. package/{Logo-ME4ffCue.js → Logo-DkagDdKQ.js} +14 -18
  82. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  83. package/OverlayArrow-CvNuu3e3.js +519 -0
  84. package/{Popover-BDvKByTT.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  85. package/{Popover-Tniqbaes.js → Popover-CyEVqpJ6.js} +11 -11
  86. package/{PressResponder-C3APAKsz.js → PressResponder-CxVtArtP.js} +4 -4
  87. package/{PressResponder-4jE_HLu3.cjs → PressResponder-DbnYqwGB.cjs} +1 -1
  88. package/ProgressBar-CdXHEJh6.js +53 -0
  89. package/ProgressBar-CjuHokVZ.cjs +1 -0
  90. package/Radio-Bll-7H8O.cjs +1 -0
  91. package/Radio-DoWx2AE1.js +333 -0
  92. package/RangeCalendar-A4WQIG7P.cjs +6 -0
  93. package/{RangeCalendar-BCruEq9d.js → RangeCalendar-D7eFVAPP.js} +637 -629
  94. package/{SearchField-QFyuaT-K.cjs → SearchField-BbrUZpQm.cjs} +2 -2
  95. package/{SearchField-nwlyszwt.js → SearchField-F2FKgYds.js} +27 -31
  96. package/Select-BnbDXwgD.cjs +1 -0
  97. package/Select-Dpi3LhbI.js +654 -0
  98. package/{SelectionManager-BKrZ_mMO.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  99. package/SelectionManager-BtbHoHpA.cjs +1 -0
  100. package/Separator-CM0KPvsX.js +105 -0
  101. package/Separator-Cfv2pbWf.cjs +1 -0
  102. package/Separator-DH-5wu9X.js +77 -0
  103. package/Separator-Dgin8BNW.cjs +1 -0
  104. package/Skeleton-BpYj25p8.js +37 -0
  105. package/Skeleton-DMOxEwnd.cjs +1 -0
  106. package/Spinner-D1UBuLy4.cjs +6 -0
  107. package/Spinner-DTKb_LAA.js +47 -0
  108. package/TabList-D4WwgQY3.cjs +1 -0
  109. package/TabList-D9tl2s85.js +397 -0
  110. package/Table-C6k3PiiC.cjs +16 -0
  111. package/{Table-DGTwyh7U.js → Table-CkN3y69S.js} +883 -804
  112. package/Tag-7dHEMQum.cjs +1 -0
  113. package/Tag-BUJ20HHw.js +765 -0
  114. package/Text-BAFsaON-.cjs +1 -0
  115. package/{Text-DcZqSUN9.js → Text-Be7WIOwv.js} +1 -1
  116. package/{Text-CfcjRtke.cjs → Text-BtPiT2P1.cjs} +1 -1
  117. package/Text-CmlsaWMA.js +32 -0
  118. package/TextArea-BCikUXaD.cjs +1 -0
  119. package/TextArea-h5_oBQH1.js +125 -0
  120. package/TextField-Bm5916AD.cjs +1 -0
  121. package/TextField-_UY8CXtW.js +134 -0
  122. package/TextField.module-C9Zm9unF.js +13 -0
  123. package/TextField.module-GTQtNO0r.cjs +1 -0
  124. package/{Toast-CWt_mNIg.js → Toast-BBkWczCk.js} +234 -253
  125. package/Toast-DclaxvZM.cjs +1 -0
  126. package/ToggleButtonGroup-BGG64PK1.js +214 -0
  127. package/ToggleButtonGroup-Da330GRT.cjs +1 -0
  128. package/Tooltip-BHAtsp9k.js +281 -0
  129. package/Tooltip-CZa9n5sT.cjs +1 -0
  130. package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-CGEtjAP7.js} +2 -2
  131. package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  132. package/accordion/Accordion.d.ts +8 -2
  133. package/accordion/AccordionContext.d.ts +4 -0
  134. package/accordion/AccordionItem.d.ts +6 -4
  135. package/accordion/index.cjs +1 -1
  136. package/accordion/index.js +1 -1
  137. package/assets/AccordionItem.css +1 -1
  138. package/assets/BadgeContainer.css +1 -1
  139. package/assets/Breadcrumbs.css +1 -1
  140. package/assets/Button.css +1 -1
  141. package/assets/ButtonGroup.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/CharacterCounter.css +1 -1
  144. package/assets/Checkbox.css +1 -1
  145. package/assets/ComboBox.css +1 -1
  146. package/assets/DateField.css +1 -1
  147. package/assets/DateInputDivider.css +1 -1
  148. package/assets/DateRangePicker.css +1 -1
  149. package/assets/Dialog.css +1 -1
  150. package/assets/Dropdown.css +1 -1
  151. package/assets/FieldError.css +1 -1
  152. package/assets/FileUpload.css +1 -1
  153. package/assets/GridItem.css +1 -1
  154. package/assets/Heading.css +1 -1
  155. package/assets/InfoBanner.css +1 -1
  156. package/assets/Label.css +1 -1
  157. package/assets/Layout.css +1 -1
  158. package/assets/Link.css +1 -1
  159. package/assets/LinkButton.css +1 -1
  160. package/assets/ListBoxSection.css +1 -1
  161. package/assets/Logo.css +1 -1
  162. package/assets/Popover.css +1 -1
  163. package/assets/ProgressBar.css +1 -1
  164. package/assets/Radio.css +1 -1
  165. package/assets/RangeCalendar.css +1 -1
  166. package/assets/SearchField.css +1 -1
  167. package/assets/Select.css +1 -1
  168. package/assets/Separator.css +1 -0
  169. package/assets/Skeleton.css +1 -1
  170. package/assets/Spinner.css +1 -1
  171. package/assets/TabList.css +1 -1
  172. package/assets/Table.css +1 -1
  173. package/assets/Tag.css +1 -1
  174. package/assets/Text.css +1 -1
  175. package/assets/TextField.css +1 -1
  176. package/assets/Toast.css +1 -1
  177. package/assets/ToggleButtonGroup.css +1 -1
  178. package/assets/Tooltip.css +1 -1
  179. package/assets/theme.css +1 -0
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/Breadcrumbs.d.ts +0 -2
  184. package/breadcrumbs/index.cjs +1 -1
  185. package/breadcrumbs/index.js +1 -1
  186. package/button/index.cjs +1 -1
  187. package/button/index.js +2 -2
  188. package/calendar/index.cjs +1 -1
  189. package/calendar/index.js +1 -1
  190. package/card/index.cjs +1 -1
  191. package/card/index.js +1 -1
  192. package/character-counter/index.cjs +1 -1
  193. package/character-counter/index.js +1 -1
  194. package/checkbox/index.cjs +1 -1
  195. package/checkbox/index.js +2 -2
  196. package/chevron-right-0-sUFBiR.cjs +6 -0
  197. package/chevron-right-BYYHEJjK.js +11 -0
  198. package/color-scheme-switch/index.cjs +1 -1
  199. package/color-scheme-switch/index.js +1 -1
  200. package/combobox/ComboBox.d.ts +0 -4
  201. package/combobox/index.cjs +1 -1
  202. package/combobox/index.d.ts +1 -2
  203. package/combobox/index.js +2 -3
  204. package/combobox/intl/translations.json.d.ts +4 -2
  205. package/combobox/types.d.ts +0 -13
  206. package/common/icon-map.d.ts +6 -0
  207. package/common/types.d.ts +8 -0
  208. package/date-field/index.cjs +1 -1
  209. package/date-field/index.js +2 -2
  210. package/date-picker/index.cjs +1 -1
  211. package/date-picker/index.js +1 -1
  212. package/dropdown/Dropdown.d.ts +25 -1
  213. package/dropdown/index.cjs +1 -1
  214. package/dropdown/index.js +1 -1
  215. package/field-error/index.cjs +1 -1
  216. package/field-error/index.js +1 -1
  217. package/file-upload/index.cjs +1 -1
  218. package/file-upload/index.js +1 -1
  219. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  220. package/filterDOMProps-wsa9OcNI.js +65 -0
  221. package/grid/Grid.d.ts +0 -8
  222. package/grid/GridItem.d.ts +0 -8
  223. package/grid/index.cjs +1 -1
  224. package/grid/index.d.ts +2 -2
  225. package/grid/index.js +4 -6
  226. package/heading/index.cjs +1 -1
  227. package/heading/index.js +1 -1
  228. package/icon-map-9XcghDra.cjs +11 -0
  229. package/icon-map-uS87FT_Q.js +43 -0
  230. package/{index-CGRFP4CC.js → index-BLPblar-.js} +34 -31
  231. package/index-DSFSh2sC.cjs +17 -0
  232. package/index.cjs +1 -1
  233. package/index.d.ts +2 -0
  234. package/index.js +133 -121
  235. package/info-banner/InfoBanner.d.ts +18 -10
  236. package/info-banner/index.cjs +1 -1
  237. package/info-banner/index.js +1 -1
  238. package/label/index.cjs +1 -1
  239. package/label/index.js +1 -1
  240. package/layout/index.cjs +1 -1
  241. package/layout/index.js +1 -1
  242. package/link/index.cjs +1 -1
  243. package/link/index.js +2 -2
  244. package/link-button/index.cjs +1 -1
  245. package/link-button/index.js +2 -2
  246. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  247. package/list-box/index.cjs +1 -1
  248. package/list-box/index.d.ts +1 -0
  249. package/list-box/index.js +6 -5
  250. package/list-box/intl/translations.json.d.ts +11 -0
  251. package/logo/index.cjs +1 -1
  252. package/logo/index.js +1 -1
  253. package/menu/Menu.d.ts +13 -0
  254. package/menu/MenuItem.d.ts +5 -0
  255. package/menu/MenuPopover.d.ts +3 -0
  256. package/menu/MenuSection.d.ts +3 -0
  257. package/menu/Separator.d.ts +3 -0
  258. package/menu/index.cjs +1 -0
  259. package/menu/index.d.ts +5 -0
  260. package/menu/index.js +8 -0
  261. package/{mergeProps-C1U1OIeJ.js → mergeProps-BSsN7Bgk.js} +36 -34
  262. package/mergeProps-JhcJ7uJL.cjs +1 -0
  263. package/modal/index.cjs +1 -1
  264. package/modal/index.js +2 -2
  265. package/package.json +9 -4
  266. package/popover/index.cjs +1 -1
  267. package/popover/index.js +1 -1
  268. package/progress-bar/index.cjs +1 -1
  269. package/progress-bar/index.js +1 -1
  270. package/radio/index.cjs +1 -1
  271. package/radio/index.js +1 -1
  272. package/search-field/index.cjs +1 -1
  273. package/search-field/index.js +1 -1
  274. package/select/Select.d.ts +1 -1
  275. package/select/index.cjs +1 -1
  276. package/select/index.d.ts +1 -1
  277. package/select/index.js +1 -1
  278. package/select/types.d.ts +1 -13
  279. package/skeleton/index.cjs +1 -1
  280. package/skeleton/index.js +1 -1
  281. package/spinner/index.cjs +1 -1
  282. package/spinner/index.js +1 -1
  283. package/table/Table.d.ts +7 -12
  284. package/table/index.cjs +1 -1
  285. package/table/index.js +1 -1
  286. package/tabs/Tabs.d.ts +0 -12
  287. package/tabs/index.cjs +1 -1
  288. package/tabs/index.js +1 -1
  289. package/tag/Tag.d.ts +2 -1
  290. package/tag/index.cjs +1 -1
  291. package/tag/index.js +1 -1
  292. package/text/index.cjs +1 -1
  293. package/text/index.js +1 -1
  294. package/textfield/Input.d.ts +7 -2
  295. package/textfield/PasswordField.d.ts +1 -1
  296. package/textfield/index.cjs +1 -1
  297. package/textfield/index.js +1 -1
  298. package/theme/generated-object.d.ts +384 -0
  299. package/theme/generated-tokens.d.ts +334 -0
  300. package/theme/index.cjs +1 -1
  301. package/theme/index.d.ts +39 -12
  302. package/theme/index.js +4037 -13
  303. package/theme/tokens.d.ts +65 -18
  304. package/toast/Toast.d.ts +2 -1
  305. package/toast/index.cjs +1 -1
  306. package/toast/index.js +1 -1
  307. package/toggle-button/index.cjs +1 -1
  308. package/toggle-button/index.js +1 -1
  309. package/tokens-B3FfJ-rY.cjs +1 -0
  310. package/{tokens-CqvelUoA.js → tokens-B9ooUP4g.js} +69 -32
  311. package/tooltip/index.cjs +1 -1
  312. package/tooltip/index.js +1 -1
  313. package/useButton-D6iUB8cN.js +56 -0
  314. package/useButton-R8-i3HLC.cjs +1 -0
  315. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  316. package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  317. package/{useDescription-DYfKjGGU.js → useDescription-BLmIkYCq.js} +1 -1
  318. package/{useDescription-CPo72trh.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  319. package/{useEvent-DPxMu-X9.cjs → useEvent-3ZO5TPSH.cjs} +1 -1
  320. package/{useEvent-CigwyJOw.js → useEvent-DpBHTuHJ.js} +1 -1
  321. package/{useField-CefQB81E.js → useField-BMegM8fA.js} +2 -2
  322. package/{useField-D1UkzeaI.cjs → useField-DyeD7MLj.cjs} +1 -1
  323. package/{useFilter-DsOxD9JB.js → useFilter-BFnSe_Eq.js} +1 -1
  324. package/{useFilter-BhM2yVO3.cjs → useFilter-aoggM85n.cjs} +1 -1
  325. package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  326. package/{useFocusRing-DOfBqnUN.js → useFocusRing-DMo8ctYV.js} +2 -2
  327. package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-ClMkhYcq.js} +1 -1
  328. package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  329. package/{useFocusable-D7I1ujkW.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  330. package/{useFocusable-BjE42axF.js → useFocusable-DXlMChFC.js} +4 -4
  331. package/useFormValidation-BQIRxgbU.cjs +1 -0
  332. package/useFormValidation-L0UHvOsP.js +217 -0
  333. package/{useHasTabbableChild-BgEe5J35.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  334. package/{useHasTabbableChild-CoQRpNbC.cjs → useHasTabbableChild-CJcLnolh.cjs} +1 -1
  335. package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-BkEv9Jye.js} +4 -4
  336. package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  337. package/{useHover-DQvJ3Y-W.js → useHover-D6bNIkU0.js} +76 -74
  338. package/useHover-DGAmG7jt.cjs +1 -0
  339. package/{useLabels-CSU0kbtJ.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  340. package/{useLabels-LrKQiY11.js → useLabels-Kmq5JCp_.js} +1 -1
  341. package/useListState-D2IEg6_e.cjs +1 -0
  342. package/{useListState-B3c3xcNW.js → useListState-pixYqSLl.js} +43 -42
  343. package/usePress-CicXV7UO.cjs +7 -0
  344. package/{usePress-BW47IcyU.js → usePress-DMUpU0GU.js} +153 -149
  345. package/{useSingleSelectListState-DdBsBWKG.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  346. package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  347. package/{useTextField-DjxayZsV.js → useTextField-BC5X_AO_.js} +30 -27
  348. package/useTextField-Cxpfu0U3.cjs +1 -0
  349. package/useToggleState-BVOqL4hI.js +21 -0
  350. package/useToggleState-SqDyNfRi.cjs +1 -0
  351. package/utils/types.d.ts +4 -0
  352. package/{utils-DHNZrQmj.cjs → utils-CMHKYKlz.cjs} +1 -1
  353. package/{utils-KLjWgdLR.js → utils-Cpcjg55U.js} +1 -1
  354. package/utils-DFIwp4PB.js +262 -0
  355. package/utils-__vrf9VZ.cjs +1 -0
  356. package/AccordionItem-BPOQqTkQ.js +0 -323
  357. package/AccordionItem-CS-QKqrU.cjs +0 -1
  358. package/BadgeContainer-CKBIZWsc.js +0 -37
  359. package/Breadcrumbs-BBzSV4SK.js +0 -262
  360. package/Breadcrumbs-CFUryOhf.cjs +0 -1
  361. package/Button-DExMoP5f.cjs +0 -1
  362. package/Button.module-D-mPLRxe.js +0 -14
  363. package/Button.module-goCEz5qs.cjs +0 -1
  364. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  365. package/Card-BRs1FKX5.js +0 -131
  366. package/Card-cdL5669N.cjs +0 -1
  367. package/Checkbox-Co3h0hur.cjs +0 -1
  368. package/Checkbox-EB_SCBEo.js +0 -264
  369. package/CheckboxGroup-CT_eqERw.cjs +0 -1
  370. package/CheckboxGroup-DvrN1oyw.js +0 -159
  371. package/Collection-BtBX5IMY.cjs +0 -1
  372. package/Collection-D2jVTmDW.js +0 -577
  373. package/ComboBox-D_jh7TKo.cjs +0 -1
  374. package/DateField-BURrxhil.cjs +0 -1
  375. package/DateField-DKCbEonm.js +0 -47
  376. package/DateInputDivider-ToFY-yjB.cjs +0 -1
  377. package/DateRangePicker-B5vx9onl.js +0 -870
  378. package/DateRangePicker-DkIAEIIj.cjs +0 -6
  379. package/Dialog-CxHiZorC.cjs +0 -1
  380. package/Dialog-D5c_dUnB.js +0 -1611
  381. package/Dialog-DtHk3eXI.cjs +0 -1
  382. package/Dialog-DuGcBeNN.js +0 -212
  383. package/DragAndDrop-CSg60YQE.cjs +0 -1
  384. package/DragAndDrop-DOXLfJaA.js +0 -60
  385. package/Dropdown-CYakzdJg.cjs +0 -6
  386. package/FieldError-Bv3Q6ZP-.cjs +0 -1
  387. package/FocusScope-vcXLOQiu.cjs +0 -1
  388. package/Grid-DVQtOcu9.cjs +0 -1
  389. package/GridItem-DlbSdRmB.js +0 -246
  390. package/GridItem-XgHmZWXY.cjs +0 -1
  391. package/Heading-CKTR4sOz.cjs +0 -1
  392. package/Heading-D2y_kiC0.js +0 -46
  393. package/InfoBanner-CzwbOdRG.cjs +0 -1
  394. package/InfoBanner-D05poAe3.js +0 -91
  395. package/Label-ChjDdBlv.cjs +0 -1
  396. package/Layout-D0E1fOgZ.cjs +0 -16
  397. package/Layout-DtyhUz-G.js +0 -498
  398. package/Link-CibH8uRY.js +0 -72
  399. package/Link-CidjjqHb.cjs +0 -1
  400. package/Link-ESjrl63P.cjs +0 -6
  401. package/LinkButton-B6AWNiRn.cjs +0 -6
  402. package/LinkButton-BkZULm2a.js +0 -69
  403. package/ListBox-B0E1hdEt.cjs +0 -1
  404. package/ListBox-Djy7244v.js +0 -531
  405. package/ListBoxButton-CIqNRR3y.cjs +0 -1
  406. package/ListBoxButton-sqirI6I4.js +0 -15
  407. package/ListBoxSection-BYJccE4T.cjs +0 -1
  408. package/ListBoxSection-Cicbu8pS.js +0 -1058
  409. package/ListKeyboardDelegate-ZKBk2IId.cjs +0 -1
  410. package/OverlayArrow-DB_aVTVM.js +0 -507
  411. package/OverlayArrow-DpZ1FqOd.cjs +0 -1
  412. package/ProgressBar-ClysdvqU.cjs +0 -1
  413. package/ProgressBar-DTn23Zkr.js +0 -53
  414. package/Radio-CCN3o3s-.js +0 -313
  415. package/Radio-Cz0vLIBw.cjs +0 -1
  416. package/RangeCalendar-BY82hPRu.cjs +0 -11
  417. package/Select-MwvnbChP.js +0 -664
  418. package/Select-lhIwwJL7.cjs +0 -1
  419. package/SelectionManager-BJjqIWtf.cjs +0 -1
  420. package/Separator-DPLEx950.cjs +0 -1
  421. package/Separator-DvvVAypT.js +0 -59
  422. package/Skeleton-BAwbfKBW.cjs +0 -1
  423. package/Skeleton-BePDRmrO.js +0 -40
  424. package/Spinner-VSyPhiJ9.js +0 -51
  425. package/Spinner-vof0Y9Hh.cjs +0 -6
  426. package/TabList-CWMlbijV.cjs +0 -1
  427. package/TabList-VpTv_Xff.js +0 -435
  428. package/Table-DGYC-sDq.cjs +0 -16
  429. package/Tag-bYq-wf5D.cjs +0 -1
  430. package/Tag-rI-NhuT0.js +0 -748
  431. package/Text-BPcfhYQ9.js +0 -32
  432. package/Text-DBHWi5gA.cjs +0 -1
  433. package/TextArea-CrEALC58.js +0 -119
  434. package/TextArea-DJKHFKuI.cjs +0 -1
  435. package/TextField-BAX93sq7.cjs +0 -1
  436. package/TextField-Dma22dnD.js +0 -120
  437. package/TextField.module-BcpPBWnD.js +0 -13
  438. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  439. package/Toast-DdmSvNaO.cjs +0 -1
  440. package/ToggleButtonGroup-98z8Dw8-.js +0 -211
  441. package/ToggleButtonGroup-DZ_wo0qx.cjs +0 -1
  442. package/Tooltip-DjNc93tV.js +0 -285
  443. package/Tooltip-pN5W3IK6.cjs +0 -1
  444. package/circle-check-BErh6TKu.js +0 -26
  445. package/circle-check-OVUGxwp9.cjs +0 -11
  446. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  447. package/filterDOMProps-D6KHYVBX.js +0 -24
  448. package/index-Dsz3aiWt.cjs +0 -17
  449. package/mergeProps-B5KXZAI3.cjs +0 -1
  450. package/tokens-5PzK5zK7.cjs +0 -1
  451. package/triangle-alert-B_qAPmWC.js +0 -21
  452. package/triangle-alert-BviJNFjf.cjs +0 -6
  453. package/useButton-BoIV3kDJ.js +0 -47
  454. package/useButton-D60q0SQw.cjs +0 -1
  455. package/useDateFormatter-BJBt0jk_.cjs +0 -1
  456. package/useFormValidation-BlFGdPZB.cjs +0 -1
  457. package/useFormValidation-BzzruZKm.js +0 -215
  458. package/useHover-BE_XKZKe.cjs +0 -1
  459. package/useListState-wLau6fXo.cjs +0 -1
  460. package/usePress-BooY_CAy.cjs +0 -7
  461. package/useTextField-DnRrCg5o.cjs +0 -1
  462. package/useToggleState-Bz5rAf4C.js +0 -18
  463. package/useToggleState-DoIkSQdj.cjs +0 -1
  464. package/utils-CoCR_Fce.js +0 -234
  465. package/utils-Dvdohqm9.cjs +0 -1
@@ -1,28 +1,30 @@
1
- import { h as y } from "./utils-CoCR_Fce.js";
2
- import { a as x } from "./mergeProps-C1U1OIeJ.js";
3
- import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
4
- import { $ as I, a as M, b as D } from "./useFormValidation-BzzruZKm.js";
1
+ import { h as E } from "./utils-DFIwp4PB.js";
2
+ import { a as I } from "./mergeProps-BSsN7Bgk.js";
3
+ import { $ as M } from "./filterDOMProps-wsa9OcNI.js";
4
+ import { $ as V, a as S, b as D } from "./useFormValidation-L0UHvOsP.js";
5
5
  import { $ as L } from "./useControlledState-u436Wbp1.js";
6
- import O, { useEffect as R } from "react";
7
- import { $ as S } from "./useField-CefQB81E.js";
8
- import { a as q } from "./useFocusable-BjE42axF.js";
9
- function _(e, a) {
10
- let { inputElementType: u = "input", isDisabled: c = !1, isRequired: o = !1, isReadOnly: f = !1, type: m = "text", validationBehavior: r = "aria" } = e, [i, l] = L(e.value, e.defaultValue || "", e.onChange), { focusableProps: $ } = q(e, a), d = I({
6
+ import O, { useState as R, useEffect as q } from "react";
7
+ import { $ as B } from "./useField-BMegM8fA.js";
8
+ import { a as T } from "./useFocusable-DXlMChFC.js";
9
+ function w(e, a) {
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 = V({
11
11
  ...e,
12
12
  value: i
13
- }), { isInvalid: n, validationErrors: s, validationDetails: b } = d.displayValidation, { labelProps: v, fieldProps: C, descriptionProps: p, errorMessageProps: P } = S({
13
+ }), { isInvalid: n, validationErrors: s, validationDetails: v } = u.displayValidation, { labelProps: C, fieldProps: P, descriptionProps: p, errorMessageProps: g } = B({
14
14
  ...e,
15
15
  isInvalid: n,
16
16
  errorMessage: e.errorMessage || s
17
- }), g = E(e, {
17
+ }), h = M(e, {
18
18
  labelable: !0
19
19
  });
20
- const h = {
21
- type: m,
20
+ const y = {
21
+ type: $,
22
22
  pattern: e.pattern
23
23
  };
24
- return M(a, i, l), D(e, d, a), R(() => {
25
- if (a.current instanceof y(a.current).HTMLTextAreaElement) {
24
+ let [x] = R(i);
25
+ var o;
26
+ return S(a, (o = e.defaultValue) !== null && o !== void 0 ? o : x, d), D(e, u, a), q(() => {
27
+ if (a.current instanceof E(a.current).HTMLTextAreaElement) {
26
28
  let t = a.current;
27
29
  Object.defineProperty(t, "defaultValue", {
28
30
  get: () => t.value,
@@ -34,12 +36,12 @@ function _(e, a) {
34
36
  }, [
35
37
  a
36
38
  ]), {
37
- labelProps: v,
38
- inputProps: x(g, u === "input" ? h : void 0, {
39
- disabled: c,
40
- readOnly: f,
41
- required: o && r === "native",
42
- "aria-required": o && r === "aria" || void 0,
39
+ labelProps: C,
40
+ inputProps: I(h, c === "input" ? y : void 0, {
41
+ disabled: f,
42
+ readOnly: m,
43
+ required: r && l === "native",
44
+ "aria-required": r && l === "aria" || void 0,
43
45
  "aria-invalid": n || void 0,
44
46
  "aria-errormessage": e["aria-errormessage"],
45
47
  "aria-activedescendant": e["aria-activedescendant"],
@@ -47,12 +49,13 @@ function _(e, a) {
47
49
  "aria-haspopup": e["aria-haspopup"],
48
50
  "aria-controls": e["aria-controls"],
49
51
  value: i,
50
- onChange: (t) => l(t.target.value),
52
+ onChange: (t) => d(t.target.value),
51
53
  autoComplete: e.autoComplete,
52
54
  autoCapitalize: e.autoCapitalize,
53
55
  maxLength: e.maxLength,
54
56
  minLength: e.minLength,
55
57
  name: e.name,
58
+ form: e.form,
56
59
  placeholder: e.placeholder,
57
60
  inputMode: e.inputMode,
58
61
  autoCorrect: e.autoCorrect,
@@ -71,16 +74,16 @@ function _(e, a) {
71
74
  // Input events
72
75
  onBeforeInput: e.onBeforeInput,
73
76
  onInput: e.onInput,
74
- ...$,
75
- ...C
77
+ ...b,
78
+ ...P
76
79
  }),
77
80
  descriptionProps: p,
78
- errorMessageProps: P,
81
+ errorMessageProps: g,
79
82
  isInvalid: n,
80
83
  validationErrors: s,
81
- validationDetails: b
84
+ validationDetails: v
82
85
  };
83
86
  }
84
87
  export {
85
- _ as $
88
+ w as $
86
89
  };
@@ -0,0 +1 @@
1
+ "use strict";const I=require("./utils-__vrf9VZ.cjs"),M=require("./mergeProps-JhcJ7uJL.cjs"),V=require("./filterDOMProps-RRlKPKX0.cjs"),r=require("./useFormValidation-BQIRxgbU.cjs"),S=require("./useControlledState-D0L6S_5r.cjs"),l=require("react"),D=require("./useField-DyeD7MLj.cjs"),O=require("./useFocusable-CsG-IPuC.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]=S.$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=V.$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;
@@ -0,0 +1,21 @@
1
+ import { $ as u } from "./useControlledState-u436Wbp1.js";
2
+ import { useState as S } from "react";
3
+ function $(e = {}) {
4
+ let { isReadOnly: d } = e, [t, a] = u(e.isSelected, e.defaultSelected || !1, e.onChange), [c] = S(t);
5
+ function f(n) {
6
+ d || a(n);
7
+ }
8
+ function i() {
9
+ d || a(!t);
10
+ }
11
+ var l;
12
+ return {
13
+ isSelected: t,
14
+ defaultSelected: (l = e.defaultSelected) !== null && l !== void 0 ? l : c,
15
+ setSelected: f,
16
+ toggle: i
17
+ };
18
+ }
19
+ export {
20
+ $
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./useControlledState-D0L6S_5r.cjs"),S=require("react");function o(e={}){let{isReadOnly:d}=e,[t,c]=u.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.isSelected,e.defaultSelected||!1,e.onChange),[a]=S.useState(t);function f(n){d||c(n)}function i(){d||c(!t)}var l;return{isSelected:t,defaultSelected:(l=e.defaultSelected)!==null&&l!==void 0?l:a,setSelected:f,toggle:i}}exports.$3017fa7ffdddec74$export$8042c6c013fd5226=o;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Create an object with disallowed keys
3
+ */
4
+ export type ExcludeKeysFrom<T extends object, ToExlude extends PropertyKey> = Omit<T, ToExlude> & Partial<Record<ToExlude, never>>;
@@ -1 +1 @@
1
- "use strict";const $=require("./mergeProps-B5KXZAI3.cjs"),r=require("react");function y(...e){return e.length===1&&e[0]?e[0]:l=>{let t=!1;const n=e.map(a=>{const f=i(a,l);return t||(t=typeof f=="function"),f});if(t)return()=>{n.forEach((a,f)=>{typeof a=="function"?a():i(e[f],null)})}}}function i(e,l){if(typeof e=="function")return e(l);e!=null&&(e.current=l)}function p(e){const l=r.useRef(null),t=r.useRef(void 0),n=r.useCallback(a=>{if(typeof e=="function"){const f=e,u=f(a);return()=>{typeof u=="function"?u():f(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return r.useMemo(()=>({get current(){return l.current},set current(a){l.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:l}){for(let[t,n]of e)l=r.createElement(t.Provider,{value:n},l);return l}function S(e){let{className:l,style:t,children:n,defaultClassName:a,defaultChildren:f,defaultStyle:u,values:s}=e;return r.useMemo(()=>{let o,d,c;return typeof l=="function"?o=l({...s,defaultClassName:a}):o=l,typeof t=="function"?d=t({...s,defaultStyle:u||{}}):d=t,typeof n=="function"?c=n({...s,defaultChildren:f}):n==null?c=f:c=n,{className:o??a,style:d||u?{...u,...d}:void 0,children:c??f,"data-rac":""}},[l,t,n,a,f,u,s])}function x(e,l){let t=r.useContext(e);if(l===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let n=l||b;if(!t.slots[n]){let a=new Intl.ListFormat().format(Object.keys(t.slots).map(u=>`"${u}"`)),f=l?`Invalid slot "${l}".`:"A slot prop is required.";throw new Error(`${f} Valid slot names are ${a}.`)}return t.slots[n]}return t}function h(e,l,t){let n=x(t,e.slot)||{},{ref:a,...f}=n,u=p(r.useMemo(()=>y(l,a),[l,a])),s=$.$3ef42575df84b30b$export$9d1611c77c2fe928(f,e);return"style"in f&&f.style&&"style"in e&&e.style&&(typeof f.style=="function"||typeof e.style=="function"?s.style=o=>{let d=typeof f.style=="function"?f.style(o):f.style,c={...o.defaultStyle,...d},m=typeof e.style=="function"?e.style({...o,defaultStyle:c}):e.style;return{...c,...m}}:s.style={...f.style,...e.style}),[s,u]}function R(e=!0){let[l,t]=r.useState(e),n=r.useRef(!1),a=r.useCallback(f=>{n.current=!0,t(!!f)},[]);return $.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{n.current||t(!1)},[]),[a,l]}function v(e){const l=/^(data-.*)$/;let t={};for(const n in e)l.test(n)||(t[n]=e[n]);return t}exports.$5dc95899b306f630$export$c9058316764c140e=y;exports.$64fa3d84918910a7$export$2881499e37b75b9a=C;exports.$64fa3d84918910a7$export$29f1550f4b0d4415=h;exports.$64fa3d84918910a7$export$4d86445c2cf5e3=S;exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8=R;exports.$64fa3d84918910a7$export$c62b8e45d58ddad9=b;exports.$64fa3d84918910a7$export$ef03459518577ad4=v;exports.$64fa3d84918910a7$export$fabf2dc03a41866e=x;exports.$df56164dff5785e2$export$4338b53315abf666=p;
1
+ "use strict";const $=require("./mergeProps-JhcJ7uJL.cjs"),r=require("react");function y(...e){return e.length===1&&e[0]?e[0]:l=>{let t=!1;const n=e.map(a=>{const f=i(a,l);return t||(t=typeof f=="function"),f});if(t)return()=>{n.forEach((a,f)=>{typeof a=="function"?a():i(e[f],null)})}}}function i(e,l){if(typeof e=="function")return e(l);e!=null&&(e.current=l)}function p(e){const l=r.useRef(null),t=r.useRef(void 0),n=r.useCallback(a=>{if(typeof e=="function"){const f=e,u=f(a);return()=>{typeof u=="function"?u():f(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return r.useMemo(()=>({get current(){return l.current},set current(a){l.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:l}){for(let[t,n]of e)l=r.createElement(t.Provider,{value:n},l);return l}function S(e){let{className:l,style:t,children:n,defaultClassName:a,defaultChildren:f,defaultStyle:u,values:s}=e;return r.useMemo(()=>{let o,d,c;return typeof l=="function"?o=l({...s,defaultClassName:a}):o=l,typeof t=="function"?d=t({...s,defaultStyle:u||{}}):d=t,typeof n=="function"?c=n({...s,defaultChildren:f}):n==null?c=f:c=n,{className:o??a,style:d||u?{...u,...d}:void 0,children:c??f,"data-rac":""}},[l,t,n,a,f,u,s])}function x(e,l){let t=r.useContext(e);if(l===null)return null;if(t&&typeof t=="object"&&"slots"in t&&t.slots){let n=l||b;if(!t.slots[n]){let a=new Intl.ListFormat().format(Object.keys(t.slots).map(u=>`"${u}"`)),f=l?`Invalid slot "${l}".`:"A slot prop is required.";throw new Error(`${f} Valid slot names are ${a}.`)}return t.slots[n]}return t}function h(e,l,t){let n=x(t,e.slot)||{},{ref:a,...f}=n,u=p(r.useMemo(()=>y(l,a),[l,a])),s=$.$3ef42575df84b30b$export$9d1611c77c2fe928(f,e);return"style"in f&&f.style&&"style"in e&&e.style&&(typeof f.style=="function"||typeof e.style=="function"?s.style=o=>{let d=typeof f.style=="function"?f.style(o):f.style,c={...o.defaultStyle,...d},m=typeof e.style=="function"?e.style({...o,defaultStyle:c}):e.style;return{...c,...m}}:s.style={...f.style,...e.style}),[s,u]}function R(e=!0){let[l,t]=r.useState(e),n=r.useRef(!1),a=r.useCallback(f=>{n.current=!0,t(!!f)},[]);return $.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{n.current||t(!1)},[]),[a,l]}function v(e){const l=/^(data-.*)$/;let t={};for(const n in e)l.test(n)||(t[n]=e[n]);return t}exports.$5dc95899b306f630$export$c9058316764c140e=y;exports.$64fa3d84918910a7$export$2881499e37b75b9a=C;exports.$64fa3d84918910a7$export$29f1550f4b0d4415=h;exports.$64fa3d84918910a7$export$4d86445c2cf5e3=S;exports.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8=R;exports.$64fa3d84918910a7$export$c62b8e45d58ddad9=b;exports.$64fa3d84918910a7$export$ef03459518577ad4=v;exports.$64fa3d84918910a7$export$fabf2dc03a41866e=x;exports.$df56164dff5785e2$export$4338b53315abf666=p;
@@ -1,4 +1,4 @@
1
- import { a as p, $ as b } from "./mergeProps-C1U1OIeJ.js";
1
+ import { a as p, $ as b } from "./mergeProps-BSsN7Bgk.js";
2
2
  import x, { useRef as d, useCallback as $, useMemo as i, useContext as C, useState as h } from "react";
3
3
  function S(...e) {
4
4
  return e.length === 1 && e[0] ? e[0] : (l) => {
@@ -0,0 +1,262 @@
1
+ import { useRef as E, useCallback as u, useEffect as w } from "react";
2
+ import { $ as T, d as g } from "./mergeProps-BSsN7Bgk.js";
3
+ const y = (e) => {
4
+ var t;
5
+ return (t = e == null ? void 0 : e.ownerDocument) !== null && t !== void 0 ? t : document;
6
+ }, h = (e) => e && "window" in e && e.window === e ? e : y(e).defaultView || window;
7
+ function x(e) {
8
+ return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
9
+ }
10
+ function S(e) {
11
+ return x(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
12
+ }
13
+ let M = !1, A = !1;
14
+ function I() {
15
+ return M;
16
+ }
17
+ function b() {
18
+ return A;
19
+ }
20
+ function B(e, t) {
21
+ if (!b()) return t && e ? e.contains(t) : !1;
22
+ if (!e || !t) return !1;
23
+ let n = t;
24
+ for (; n !== null; ) {
25
+ if (n === e) return !0;
26
+ n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : S(n) ? n = n.host : n = n.parentNode;
27
+ }
28
+ return !1;
29
+ }
30
+ const k = (e = document) => {
31
+ var t;
32
+ if (!b()) return e.activeElement;
33
+ let n = e.activeElement;
34
+ for (; n && "shadowRoot" in n && (!((t = n.shadowRoot) === null || t === void 0) && t.activeElement); ) n = n.shadowRoot.activeElement;
35
+ return n;
36
+ };
37
+ function U(e) {
38
+ return b() && e.target.shadowRoot && e.composedPath ? e.composedPath()[0] : e.target;
39
+ }
40
+ function v(e) {
41
+ if (F()) e.focus({
42
+ preventScroll: !0
43
+ });
44
+ else {
45
+ let t = N(e);
46
+ e.focus(), P(t);
47
+ }
48
+ }
49
+ let f = null;
50
+ function F() {
51
+ if (f == null) {
52
+ f = !1;
53
+ try {
54
+ document.createElement("div").focus({
55
+ get preventScroll() {
56
+ return f = !0, !0;
57
+ }
58
+ });
59
+ } catch {
60
+ }
61
+ }
62
+ return f;
63
+ }
64
+ function N(e) {
65
+ let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
66
+ for (; t instanceof HTMLElement && t !== r; )
67
+ (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
68
+ element: t,
69
+ scrollTop: t.scrollTop,
70
+ scrollLeft: t.scrollLeft
71
+ }), t = t.parentNode;
72
+ return r instanceof HTMLElement && n.push({
73
+ element: r,
74
+ scrollTop: r.scrollTop,
75
+ scrollLeft: r.scrollLeft
76
+ }), n;
77
+ }
78
+ function P(e) {
79
+ for (let { element: t, scrollTop: n, scrollLeft: r } of e)
80
+ t.scrollTop = n, t.scrollLeft = r;
81
+ }
82
+ function W() {
83
+ let e = E(/* @__PURE__ */ new Map()), t = u((o, l, a, i) => {
84
+ let c = i != null && i.once ? (...d) => {
85
+ e.current.delete(a), a(...d);
86
+ } : a;
87
+ e.current.set(a, {
88
+ type: l,
89
+ eventTarget: o,
90
+ fn: c,
91
+ options: i
92
+ }), o.addEventListener(l, c, i);
93
+ }, []), n = u((o, l, a, i) => {
94
+ var c;
95
+ let d = ((c = e.current.get(a)) === null || c === void 0 ? void 0 : c.fn) || a;
96
+ o.removeEventListener(l, d, i), e.current.delete(a);
97
+ }, []), r = u(() => {
98
+ e.current.forEach((o, l) => {
99
+ n(o.eventTarget, o.type, l, o.options);
100
+ });
101
+ }, [
102
+ n
103
+ ]);
104
+ return w(() => r, [
105
+ r
106
+ ]), {
107
+ addGlobalListener: t,
108
+ removeGlobalListener: n,
109
+ removeAllGlobalListeners: r
110
+ };
111
+ }
112
+ const O = typeof Element < "u" && "checkVisibility" in Element.prototype;
113
+ function H(e) {
114
+ const t = h(e);
115
+ if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
116
+ let { display: n, visibility: r } = e.style, o = n !== "none" && r !== "hidden" && r !== "collapse";
117
+ if (o) {
118
+ const { getComputedStyle: l } = e.ownerDocument.defaultView;
119
+ let { display: a, visibility: i } = l(e);
120
+ o = a !== "none" && i !== "hidden" && i !== "collapse";
121
+ }
122
+ return o;
123
+ }
124
+ function R(e, t) {
125
+ return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
126
+ !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
127
+ }
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));
130
+ }
131
+ const p = [
132
+ "input:not([disabled]):not([type=hidden])",
133
+ "select:not([disabled])",
134
+ "textarea:not([disabled])",
135
+ "button:not([disabled])",
136
+ "a[href]",
137
+ "area[href]",
138
+ "summary",
139
+ "iframe",
140
+ "object",
141
+ "embed",
142
+ "audio[controls]",
143
+ "video[controls]",
144
+ '[contenteditable]:not([contenteditable^="false"])',
145
+ "permission"
146
+ ], V = p.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
147
+ p.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
148
+ const D = p.join(':not([hidden]):not([tabindex="-1"]),');
149
+ function C(e) {
150
+ return e.matches(V) && $(e) && !L(e);
151
+ }
152
+ function q(e) {
153
+ return e.matches(D) && $(e) && !L(e);
154
+ }
155
+ function L(e) {
156
+ let t = e;
157
+ for (; t != null; ) {
158
+ if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
159
+ t = t.parentElement;
160
+ }
161
+ return !1;
162
+ }
163
+ function _(e) {
164
+ let t = e;
165
+ return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
166
+ }, t;
167
+ }
168
+ function Y(e, t) {
169
+ Object.defineProperty(e, "target", {
170
+ value: t
171
+ }), Object.defineProperty(e, "currentTarget", {
172
+ value: t
173
+ });
174
+ }
175
+ function z(e) {
176
+ let t = E({
177
+ isFocused: !1,
178
+ observer: null
179
+ });
180
+ T(() => {
181
+ const r = t.current;
182
+ return () => {
183
+ r.observer && (r.observer.disconnect(), r.observer = null);
184
+ };
185
+ }, []);
186
+ let n = g((r) => {
187
+ e == null || e(r);
188
+ });
189
+ return u((r) => {
190
+ if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
191
+ t.current.isFocused = !0;
192
+ let o = r.target, l = (a) => {
193
+ if (t.current.isFocused = !1, o.disabled) {
194
+ let i = _(a);
195
+ n(i);
196
+ }
197
+ t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
198
+ };
199
+ o.addEventListener("focusout", l, {
200
+ once: !0
201
+ }), t.current.observer = new MutationObserver(() => {
202
+ if (t.current.isFocused && o.disabled) {
203
+ var a;
204
+ (a = t.current.observer) === null || a === void 0 || a.disconnect();
205
+ let i = o === document.activeElement ? null : document.activeElement;
206
+ o.dispatchEvent(new FocusEvent("blur", {
207
+ relatedTarget: i
208
+ })), o.dispatchEvent(new FocusEvent("focusout", {
209
+ bubbles: !0,
210
+ relatedTarget: i
211
+ }));
212
+ }
213
+ }), t.current.observer.observe(o, {
214
+ attributes: !0,
215
+ attributeFilter: [
216
+ "disabled"
217
+ ]
218
+ });
219
+ }
220
+ }, [
221
+ n
222
+ ]);
223
+ }
224
+ let m = !1;
225
+ function J(e) {
226
+ for (; e && !C(e); ) e = e.parentElement;
227
+ let t = h(e), n = t.document.activeElement;
228
+ if (!n || n === e) return;
229
+ m = !0;
230
+ let r = !1, o = (s) => {
231
+ (s.target === n || r) && s.stopImmediatePropagation();
232
+ }, l = (s) => {
233
+ (s.target === n || r) && (s.stopImmediatePropagation(), !e && !r && (r = !0, v(n), c()));
234
+ }, a = (s) => {
235
+ (s.target === e || r) && s.stopImmediatePropagation();
236
+ }, i = (s) => {
237
+ (s.target === e || r) && (s.stopImmediatePropagation(), r || (r = !0, v(n), c()));
238
+ };
239
+ t.addEventListener("blur", o, !0), t.addEventListener("focusout", l, !0), t.addEventListener("focusin", i, !0), t.addEventListener("focus", a, !0);
240
+ let c = () => {
241
+ cancelAnimationFrame(d), t.removeEventListener("blur", o, !0), t.removeEventListener("focusout", l, !0), t.removeEventListener("focusin", i, !0), t.removeEventListener("focus", a, !0), m = !1, r = !1;
242
+ }, d = requestAnimationFrame(c);
243
+ return c;
244
+ }
245
+ export {
246
+ W as $,
247
+ z as a,
248
+ y as b,
249
+ k as c,
250
+ U as d,
251
+ B as e,
252
+ Y as f,
253
+ _ as g,
254
+ h,
255
+ b as i,
256
+ q as j,
257
+ C as k,
258
+ m as l,
259
+ v as m,
260
+ J as n,
261
+ I as o
262
+ };
@@ -0,0 +1 @@
1
+ "use strict";const f=require("react"),E=require("./mergeProps-JhcJ7uJL.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 A(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 P=(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()&&!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=A;exports.$d4ee10de306f2510$export$cd4e5573fbe2b576=P;exports.$d4ee10de306f2510$export$e58f029f0fbfdb29=F;exports.$f4e2df6bd15f8569$export$1b00cb14a96194e6=M;exports.$f4e2df6bd15f8569$export$98658e8c59125e6a=b;