@midas-ds/components 12.0.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 (458) hide show
  1. package/AccordionItem-C9dBt-tQ.js +335 -0
  2. package/AccordionItem-SOfjXh3V.cjs +1 -0
  3. package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
  4. package/BadgeContainer-su0iCJKy.cjs +1 -0
  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-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
  9. package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
  10. package/{Button-DQm2iqKU.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 +65 -0
  16. package/Card-BDDyGAMA.js +131 -0
  17. package/Card-mj5lCIR4.cjs +1 -0
  18. package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/CharacterCounter-DT7A0wWP.js +22 -0
  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-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
  27. package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
  28. package/ComboBox-B2EmfOyr.cjs +1 -0
  29. package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
  30. package/DateField-CcQJYDLD.js +47 -0
  31. package/DateField-IpCiF81R.cjs +1 -0
  32. package/{DateInputDivider-CJEGWmG0.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-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
  43. package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/FieldError-DdvFyIf4.js +48 -0
  46. package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
  51. package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
  52. package/GridItem-CIVF1fRW.cjs +1 -0
  53. package/GridItem-D3FZyyO-.js +243 -0
  54. package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  59. package/InfoBanner-CqjnTYaa.cjs +1 -0
  60. package/InfoBanner-CrA8MS3v.js +83 -0
  61. package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
  62. package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
  63. package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
  64. package/Label-C00qz3kQ.cjs +1 -0
  65. package/Layout-Bta_Cpq_.cjs +16 -0
  66. package/Layout-CG-Qxr_1.js +482 -0
  67. package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
  68. package/Link-Bx6avHVl.cjs +6 -0
  69. package/Link-CbFSuEI1.js +73 -0
  70. package/Link-wM7cVPlS.cjs +1 -0
  71. package/LinkButton-BvXu6vAH.cjs +6 -0
  72. package/LinkButton-D3EnZ65v.js +69 -0
  73. package/ListBox-ICZKGluC.cjs +1 -0
  74. package/ListBox-LncMQt6I.js +523 -0
  75. package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
  76. package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
  77. package/ListBoxSection-BCPv9H50.js +1085 -0
  78. package/ListBoxSection-Dx75ZinL.cjs +1 -0
  79. package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  80. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  81. package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
  82. package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
  83. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  84. package/OverlayArrow-CvNuu3e3.js +519 -0
  85. package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  86. package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
  87. package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
  88. package/PressResponder-DbnYqwGB.cjs +1 -0
  89. package/ProgressBar-CdXHEJh6.js +53 -0
  90. package/ProgressBar-CjuHokVZ.cjs +1 -0
  91. package/Radio-Bll-7H8O.cjs +1 -0
  92. package/Radio-DoWx2AE1.js +333 -0
  93. package/RangeCalendar-A4WQIG7P.cjs +6 -0
  94. package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
  95. package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
  96. package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
  97. package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
  98. package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
  99. package/Select-BnbDXwgD.cjs +1 -0
  100. package/Select-Dpi3LhbI.js +654 -0
  101. package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  102. package/SelectionManager-BtbHoHpA.cjs +1 -0
  103. package/Separator-CM0KPvsX.js +105 -0
  104. package/Separator-Cfv2pbWf.cjs +1 -0
  105. package/Separator-DH-5wu9X.js +77 -0
  106. package/Separator-Dgin8BNW.cjs +1 -0
  107. package/Skeleton-BpYj25p8.js +37 -0
  108. package/Skeleton-DMOxEwnd.cjs +1 -0
  109. package/Spinner-D1UBuLy4.cjs +6 -0
  110. package/Spinner-DTKb_LAA.js +47 -0
  111. package/TabList-D4WwgQY3.cjs +1 -0
  112. package/TabList-D9tl2s85.js +397 -0
  113. package/Table-C6k3PiiC.cjs +16 -0
  114. package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
  115. package/Tag-7dHEMQum.cjs +1 -0
  116. package/Tag-BUJ20HHw.js +765 -0
  117. package/Text-BAFsaON-.cjs +1 -0
  118. package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
  119. package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
  120. package/Text-CmlsaWMA.js +32 -0
  121. package/TextArea-BCikUXaD.cjs +1 -0
  122. package/TextArea-h5_oBQH1.js +125 -0
  123. package/TextField-Bm5916AD.cjs +1 -0
  124. package/TextField-_UY8CXtW.js +134 -0
  125. package/TextField.module-C9Zm9unF.js +13 -0
  126. package/TextField.module-GTQtNO0r.cjs +1 -0
  127. package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
  128. package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
  129. package/ToggleButtonGroup-BGG64PK1.js +214 -0
  130. package/ToggleButtonGroup-Da330GRT.cjs +1 -0
  131. package/Tooltip-BHAtsp9k.js +281 -0
  132. package/Tooltip-CZa9n5sT.cjs +1 -0
  133. package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
  134. package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  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 -1
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/index.cjs +1 -1
  184. package/breadcrumbs/index.js +1 -1
  185. package/button/index.cjs +1 -1
  186. package/button/index.js +2 -2
  187. package/calendar/index.cjs +1 -1
  188. package/calendar/index.js +1 -1
  189. package/card/index.cjs +1 -1
  190. package/card/index.js +1 -1
  191. package/character-counter/index.cjs +1 -1
  192. package/character-counter/index.js +1 -1
  193. package/checkbox/index.cjs +1 -1
  194. package/checkbox/index.js +2 -2
  195. package/chevron-right-0-sUFBiR.cjs +6 -0
  196. package/chevron-right-BYYHEJjK.js +11 -0
  197. package/color-scheme-switch/index.cjs +1 -1
  198. package/color-scheme-switch/index.js +1 -1
  199. package/combobox/index.cjs +1 -1
  200. package/combobox/index.d.ts +1 -1
  201. package/combobox/index.js +1 -1
  202. package/combobox/intl/translations.json.d.ts +4 -2
  203. package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
  204. package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
  205. package/date-field/index.cjs +1 -1
  206. package/date-field/index.js +2 -2
  207. package/date-picker/index.cjs +1 -1
  208. package/date-picker/index.js +1 -1
  209. package/dropdown/Dropdown.d.ts +18 -0
  210. package/dropdown/index.cjs +1 -1
  211. package/dropdown/index.js +1 -1
  212. package/field-error/index.cjs +1 -1
  213. package/field-error/index.js +1 -1
  214. package/file-upload/index.cjs +1 -1
  215. package/file-upload/index.js +1 -1
  216. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  217. package/filterDOMProps-wsa9OcNI.js +65 -0
  218. package/grid/index.cjs +1 -1
  219. package/grid/index.js +2 -2
  220. package/heading/index.cjs +1 -1
  221. package/heading/index.js +1 -1
  222. package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
  223. package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
  224. package/index.cjs +1 -1
  225. package/index.d.ts +2 -0
  226. package/index.js +140 -125
  227. package/inertValue-B3AFhVG4.cjs +1 -0
  228. package/info-banner/index.cjs +1 -1
  229. package/info-banner/index.js +1 -1
  230. package/label/index.cjs +1 -1
  231. package/label/index.js +1 -1
  232. package/layout/index.cjs +1 -1
  233. package/layout/index.js +1 -1
  234. package/link/index.cjs +1 -1
  235. package/link/index.js +2 -2
  236. package/link-button/index.cjs +1 -1
  237. package/link-button/index.js +2 -2
  238. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  239. package/list-box/index.cjs +1 -1
  240. package/list-box/index.d.ts +1 -0
  241. package/list-box/index.js +6 -5
  242. package/list-box/intl/translations.json.d.ts +11 -0
  243. package/logo/index.cjs +1 -1
  244. package/logo/index.js +1 -1
  245. package/menu/Menu.d.ts +13 -0
  246. package/menu/MenuItem.d.ts +5 -0
  247. package/menu/MenuPopover.d.ts +3 -0
  248. package/menu/MenuSection.d.ts +3 -0
  249. package/menu/Separator.d.ts +3 -0
  250. package/menu/index.cjs +1 -0
  251. package/menu/index.d.ts +5 -0
  252. package/menu/index.js +8 -0
  253. package/mergeProps-BSsN7Bgk.js +117 -0
  254. package/mergeProps-JhcJ7uJL.cjs +1 -0
  255. package/modal/index.cjs +1 -1
  256. package/modal/index.js +2 -2
  257. package/package.json +6 -4
  258. package/popover/index.cjs +1 -1
  259. package/popover/index.js +1 -1
  260. package/progress-bar/index.cjs +1 -1
  261. package/progress-bar/index.js +1 -1
  262. package/radio/index.cjs +1 -1
  263. package/radio/index.js +1 -1
  264. package/search-field/index.cjs +1 -1
  265. package/search-field/index.js +1 -1
  266. package/select/Select.d.ts +1 -1
  267. package/select/index.cjs +1 -1
  268. package/select/index.js +1 -1
  269. package/skeleton/index.cjs +1 -1
  270. package/skeleton/index.js +1 -1
  271. package/spinner/index.cjs +1 -1
  272. package/spinner/index.js +1 -1
  273. package/table/index.cjs +1 -1
  274. package/table/index.js +1 -1
  275. package/tabs/index.cjs +1 -1
  276. package/tabs/index.js +1 -1
  277. package/tag/index.cjs +1 -1
  278. package/tag/index.js +1 -1
  279. package/text/index.cjs +1 -1
  280. package/text/index.js +1 -1
  281. package/textfield/Input.d.ts +7 -2
  282. package/textfield/PasswordField.d.ts +1 -1
  283. package/textfield/index.cjs +1 -1
  284. package/textfield/index.js +1 -1
  285. package/theme/generated-object.d.ts +384 -0
  286. package/theme/generated-tokens.d.ts +334 -0
  287. package/theme/index.cjs +1 -1
  288. package/theme/index.d.ts +4 -1
  289. package/theme/index.js +4037 -14
  290. package/theme/tokens.d.ts +30 -1
  291. package/toast/index.cjs +1 -1
  292. package/toast/index.js +1 -1
  293. package/toggle-button/index.cjs +1 -1
  294. package/toggle-button/index.js +1 -1
  295. package/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
  296. package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
  297. package/tooltip/index.cjs +1 -1
  298. package/tooltip/index.js +1 -1
  299. package/useButton-D6iUB8cN.js +56 -0
  300. package/useButton-R8-i3HLC.cjs +1 -0
  301. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  302. package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  303. package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
  304. package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  305. package/useEvent-3ZO5TPSH.cjs +1 -0
  306. package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
  307. package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
  308. package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
  309. package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
  310. package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
  311. package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  312. package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
  313. package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
  314. package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  315. package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  316. package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
  317. package/useFormValidation-BQIRxgbU.cjs +1 -0
  318. package/useFormValidation-L0UHvOsP.js +217 -0
  319. package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  320. package/useHasTabbableChild-CJcLnolh.cjs +1 -0
  321. package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
  322. package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  323. package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
  324. package/useHover-DGAmG7jt.cjs +1 -0
  325. package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  326. package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
  327. package/useListState-D2IEg6_e.cjs +1 -0
  328. package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
  329. package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
  330. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  331. package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  332. package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
  333. package/useObserveElement-MhzEsCkX.cjs +1 -0
  334. package/usePress-CicXV7UO.cjs +7 -0
  335. package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
  336. package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  337. package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  338. package/useTextField-BC5X_AO_.js +89 -0
  339. package/useTextField-Cxpfu0U3.cjs +1 -0
  340. package/useToggleState-BVOqL4hI.js +21 -0
  341. package/useToggleState-SqDyNfRi.cjs +1 -0
  342. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  343. package/utils/types.d.ts +4 -0
  344. package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
  345. package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
  346. package/utils-DFIwp4PB.js +262 -0
  347. package/utils-__vrf9VZ.cjs +1 -0
  348. package/AccordionItem-DEiRuizp.js +0 -361
  349. package/AccordionItem-Dhr7uo8u.cjs +0 -1
  350. package/BadgeContainer-CxVmqJ7g.cjs +0 -1
  351. package/Breadcrumbs-CEyKlcGU.js +0 -262
  352. package/Breadcrumbs-CnGzvtbn.cjs +0 -1
  353. package/Button-DZzQGk-L.cjs +0 -1
  354. package/Button.module-D-mPLRxe.js +0 -14
  355. package/Button.module-goCEz5qs.cjs +0 -1
  356. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  357. package/Card-CwwVnA_a.js +0 -131
  358. package/Card-DPfOZC7f.cjs +0 -1
  359. package/CharacterCounter-DPphWPzA.js +0 -22
  360. package/Checkbox-BN_3F2Hl.js +0 -264
  361. package/Checkbox-CZtCj4yR.cjs +0 -1
  362. package/CheckboxGroup--xgOT1Do.js +0 -159
  363. package/CheckboxGroup-DGHaqRvb.cjs +0 -1
  364. package/Collection-B1xL4EdF.cjs +0 -1
  365. package/Collection-C5vE9MtJ.js +0 -577
  366. package/ComboBox-UadZMhiR.cjs +0 -1
  367. package/DateField-CNEoLyf5.cjs +0 -1
  368. package/DateField-CZmLugT0.js +0 -47
  369. package/DateInputDivider-CCjiq90K.cjs +0 -1
  370. package/DateRangePicker-DhgLEa9P.cjs +0 -6
  371. package/DateRangePicker-WQ97Psz7.js +0 -870
  372. package/Dialog-BT0tVGQb.cjs +0 -1
  373. package/Dialog-BuJdAr0D.js +0 -1611
  374. package/Dialog-DYK8lySl.cjs +0 -1
  375. package/Dialog-L53DWF0Z.js +0 -220
  376. package/DragAndDrop-DKxsUpmW.js +0 -60
  377. package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
  378. package/FieldError-BlKkw9YL.js +0 -46
  379. package/FieldError-BvU0sueN.cjs +0 -1
  380. package/FocusScope-CAgWgk3N.cjs +0 -1
  381. package/GridItem-BnyULDnc.cjs +0 -1
  382. package/GridItem-orSzD7H5.js +0 -243
  383. package/Heading-DDhdwRAW.js +0 -46
  384. package/Heading-OUPkdoEJ.cjs +0 -1
  385. package/InfoBanner-DpLcq_1R.cjs +0 -1
  386. package/InfoBanner-U5hxOipC.js +0 -99
  387. package/Label-COpr4xVt.cjs +0 -1
  388. package/Layout-BR3Or1Ga.cjs +0 -16
  389. package/Layout-Bdqauktv.js +0 -498
  390. package/Link-CM2N5Jq-.js +0 -72
  391. package/Link-Dq8IFDBx.cjs +0 -6
  392. package/Link-ceVlGaWQ.cjs +0 -1
  393. package/LinkButton-BJA9_HzL.cjs +0 -6
  394. package/LinkButton-DH3Nfdis.js +0 -69
  395. package/ListBox-D0u9svwm.cjs +0 -1
  396. package/ListBox-y_dw__MI.js +0 -531
  397. package/ListBoxButton-C2zp-gXD.cjs +0 -1
  398. package/ListBoxButton-DiseS_LX.js +0 -15
  399. package/ListBoxSection-Cv-gN76G.js +0 -1058
  400. package/ListBoxSection-DtsigmC1.cjs +0 -1
  401. package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
  402. package/OverlayArrow-8praV_Xy.cjs +0 -1
  403. package/OverlayArrow-DfkRZlgG.js +0 -507
  404. package/PressResponder-Bm3_RM9c.cjs +0 -1
  405. package/ProgressBar-D5mNQTID.cjs +0 -1
  406. package/ProgressBar-wQirOG1N.js +0 -53
  407. package/Radio-BIomn_sP.js +0 -313
  408. package/Radio-CxvJ5Wrl.cjs +0 -1
  409. package/RangeCalendar-BvvZ2SBj.cjs +0 -11
  410. package/Select-769RSZ9V.js +0 -664
  411. package/Select-Go5x0zWl.cjs +0 -1
  412. package/SelectionManager-BvREZgeu.cjs +0 -1
  413. package/Separator-CggS0R7Q.js +0 -59
  414. package/Separator-DBsDhqCr.cjs +0 -1
  415. package/Skeleton-BAwbfKBW.cjs +0 -1
  416. package/Skeleton-BePDRmrO.js +0 -40
  417. package/Spinner-AXFRWuT6.js +0 -51
  418. package/Spinner-yHx_DX_4.cjs +0 -6
  419. package/TabList-0gj27e_e.js +0 -386
  420. package/TabList-Cqpup53E.cjs +0 -1
  421. package/Table-BhtlNY9P.cjs +0 -16
  422. package/Tag-B9M-nBTM.js +0 -748
  423. package/Tag-DkW6zaIS.cjs +0 -1
  424. package/Text-BUDAzDjW.js +0 -32
  425. package/Text-DA_gK6a2.cjs +0 -1
  426. package/TextArea-CSrrYY05.cjs +0 -1
  427. package/TextArea-DphcH6wE.js +0 -119
  428. package/TextField-CsyRTSEG.js +0 -120
  429. package/TextField-P5yICj5z.cjs +0 -1
  430. package/TextField.module-BcpPBWnD.js +0 -13
  431. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  432. package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
  433. package/ToggleButtonGroup-CuxAKB3-.js +0 -211
  434. package/Tooltip-Bz0xCZSw.cjs +0 -1
  435. package/Tooltip-EuEQtHZj.js +0 -285
  436. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  437. package/filterDOMProps-D6KHYVBX.js +0 -24
  438. package/inertValue-BWmZ1afe.cjs +0 -1
  439. package/mergeProps-BYJQ6N1s.js +0 -115
  440. package/mergeProps-C7Sx47fA.cjs +0 -1
  441. package/useButton-CWHoXYnj.js +0 -47
  442. package/useButton-CwOQUGtY.cjs +0 -1
  443. package/useDateFormatter-bzjwqA2K.cjs +0 -1
  444. package/useEvent-CGRyLM2c.cjs +0 -1
  445. package/useFormValidation-BW2NSTM4.js +0 -215
  446. package/useFormValidation-DSRwb9US.cjs +0 -1
  447. package/useHasTabbableChild-CogBR_6o.cjs +0 -1
  448. package/useHover-CaFzQrR_.cjs +0 -1
  449. package/useListState-TtWy_rDI.cjs +0 -1
  450. package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
  451. package/useObserveElement-BzEr5D32.cjs +0 -1
  452. package/usePress-BOGIOlm8.cjs +0 -7
  453. package/useTextField-BVIOd8Ld.cjs +0 -1
  454. package/useTextField-DFkSHoQN.js +0 -86
  455. package/useToggleState-Bz5rAf4C.js +0 -18
  456. package/useToggleState-DoIkSQdj.cjs +0 -1
  457. package/utils-C5-CzvX2.cjs +0 -1
  458. package/utils-CuqJqFqQ.js +0 -234
@@ -1,54 +1,54 @@
1
- import V, { useRef as S, useEffect as q, useMemo as j, useState as se } from "react";
2
- import { $ as he, a as Y, c as we, d as ye } from "./mergeProps-BYJQ6N1s.js";
3
- import { $ as ke, b as xe, m as ue, c as Ae } from "./utils-CuqJqFqQ.js";
4
- import { b as Fe, c as Pe, f as Ie } from "./usePress-B_jgTf4k.js";
5
- import { $ as J } from "./useEvent-DqWz89vg.js";
6
- import { a as Me, b as pe } from "./scrollIntoView-ClEACHUk.js";
7
- import { flushSync as Ce } from "react-dom";
8
- import { h as Be, o as Re, g as ve } from "./useHover-D8fja4GW.js";
9
- import { b as ae } from "./useFocusable-ZjCKo1ed.js";
10
- import { $ as Le } from "./FocusScope-CEgd3xCY.js";
11
- import { $ as Oe } from "./context-Dl_saGB6.js";
12
- import { $ as ze } from "./useDescription-LmB1V4Tg.js";
13
- import { $ as Ue } from "./useControlledState-u436Wbp1.js";
1
+ import V, { useRef as x, useEffect as q, useMemo as j, useState as se } from "react";
2
+ import { $ as Ie, b as we, m as ue, c as xe } from "./utils-DFIwp4PB.js";
3
+ import { $ as he, a as Y, c as Fe, d as ye, e as Ce } from "./mergeProps-BSsN7Bgk.js";
4
+ import { b as Pe, c as De, f as Me } from "./usePress-DMUpU0GU.js";
5
+ import { $ as J } from "./useEvent-DpBHTuHJ.js";
6
+ import { a as Be, b as pe } from "./scrollIntoView-ClEACHUk.js";
7
+ import { $ as Re } from "./FocusScope-Bj40Ir-g.js";
8
+ import { h as Le, o as Oe, f as ve } from "./useHover-D6bNIkU0.js";
9
+ import { b as ae } from "./useFocusable-DXlMChFC.js";
10
+ import { flushSync as ze } from "react-dom";
11
+ import { $ as Ue } from "./context-CGNJ3grH.js";
12
+ import { $ as Ve } from "./useDescription-BLmIkYCq.js";
13
+ import { $ as He } from "./useControlledState-u436Wbp1.js";
14
14
  function be(n, e) {
15
- const t = S(!0), l = S(null);
15
+ const t = x(!0), l = x(null);
16
16
  he(() => (t.current = !0, () => {
17
17
  t.current = !1;
18
18
  }), []), he(() => {
19
19
  t.current ? t.current = !1 : (!l.current || e.some((i, c) => !Object.is(i, l[c]))) && n(), l.current = e;
20
20
  }, e);
21
21
  }
22
- const Ve = "react-aria-clear-focus", He = "react-aria-focus";
22
+ const We = "react-aria-clear-focus", Ge = "react-aria-focus";
23
23
  function H(n) {
24
- return Be() ? n.metaKey : n.ctrlKey;
24
+ return Le() ? n.metaKey : n.ctrlKey;
25
25
  }
26
- const We = 500;
27
- function Ge(n) {
28
- let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: c = We, accessibilityDescription: r } = n;
29
- const f = S(void 0);
30
- let { addGlobalListener: a, removeGlobalListener: g } = ke(), { pressProps: E } = Fe({
26
+ const qe = 500;
27
+ function je(n) {
28
+ let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: c = qe, accessibilityDescription: r } = n;
29
+ const d = x(void 0);
30
+ let { addGlobalListener: a, removeGlobalListener: K } = Ie(), { pressProps: E } = Pe({
31
31
  isDisabled: e,
32
32
  onPressStart(v) {
33
33
  if (v.continuePropagation(), (v.pointerType === "mouse" || v.pointerType === "touch") && (t && t({
34
34
  ...v,
35
35
  type: "longpressstart"
36
- }), f.current = setTimeout(() => {
36
+ }), d.current = setTimeout(() => {
37
37
  v.target.dispatchEvent(new PointerEvent("pointercancel", {
38
38
  bubbles: !0
39
- })), xe(v.target).activeElement !== v.target && ue(v.target), i && i({
39
+ })), we(v.target).activeElement !== v.target && ue(v.target), i && i({
40
40
  ...v,
41
41
  type: "longpress"
42
- }), f.current = void 0;
42
+ }), d.current = void 0;
43
43
  }, c), v.pointerType === "touch")) {
44
- let $ = (b) => {
44
+ let m = (b) => {
45
45
  b.preventDefault();
46
46
  };
47
- a(v.target, "contextmenu", $, {
47
+ a(v.target, "contextmenu", m, {
48
48
  once: !0
49
49
  }), a(window, "pointerup", () => {
50
50
  setTimeout(() => {
51
- g(v.target, "contextmenu", $);
51
+ K(v.target, "contextmenu", m);
52
52
  }, 30);
53
53
  }, {
54
54
  once: !0
@@ -56,21 +56,21 @@ function Ge(n) {
56
56
  }
57
57
  },
58
58
  onPressEnd(v) {
59
- f.current && clearTimeout(f.current), l && (v.pointerType === "mouse" || v.pointerType === "touch") && l({
59
+ d.current && clearTimeout(d.current), l && (v.pointerType === "mouse" || v.pointerType === "touch") && l({
60
60
  ...v,
61
61
  type: "longpressend"
62
62
  });
63
63
  }
64
- }), m = ze(i && !e ? r : void 0);
64
+ }), $ = Ve(i && !e ? r : void 0);
65
65
  return {
66
- longPressProps: Y(E, m)
66
+ longPressProps: Y(E, $)
67
67
  };
68
68
  }
69
- function De(n) {
70
- let e = Ye(xe(n));
71
- e !== n && (e && qe(e, n), n && je(n, e));
69
+ function Te(n) {
70
+ let e = Ze(we(n));
71
+ e !== n && (e && Ye(e, n), n && Ee(n, e));
72
72
  }
73
- function qe(n, e) {
73
+ function Ye(n, e) {
74
74
  n.dispatchEvent(new FocusEvent("blur", {
75
75
  relatedTarget: e
76
76
  })), n.dispatchEvent(new FocusEvent("focusout", {
@@ -78,7 +78,7 @@ function qe(n, e) {
78
78
  relatedTarget: e
79
79
  }));
80
80
  }
81
- function je(n, e) {
81
+ function Ee(n, e) {
82
82
  n.dispatchEvent(new FocusEvent("focus", {
83
83
  relatedTarget: e
84
84
  })), n.dispatchEvent(new FocusEvent("focusin", {
@@ -86,41 +86,41 @@ function je(n, e) {
86
86
  relatedTarget: e
87
87
  }));
88
88
  }
89
- function Ye(n) {
90
- let e = Ae(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
89
+ function Ze(n) {
90
+ let e = xe(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
91
91
  return t && n.getElementById(t) || e;
92
92
  }
93
93
  function fe(n) {
94
- return Re() ? n.altKey : n.ctrlKey;
94
+ return Oe() ? n.altKey : n.ctrlKey;
95
95
  }
96
96
  function re(n, e) {
97
97
  var t, l;
98
98
  let i = `[data-key="${CSS.escape(String(e))}"]`, c = (t = n.current) === null || t === void 0 ? void 0 : t.dataset.collection;
99
99
  return c && (i = `[data-collection="${CSS.escape(c)}"]${i}`), (l = n.current) === null || l === void 0 ? void 0 : l.querySelector(i);
100
100
  }
101
- const Te = /* @__PURE__ */ new WeakMap();
102
- function Ze(n) {
103
- let e = we();
104
- return Te.set(n, e), e;
105
- }
101
+ const ke = /* @__PURE__ */ new WeakMap();
106
102
  function Je(n) {
107
- return Te.get(n);
103
+ let e = Fe();
104
+ return ke.set(n, e), e;
105
+ }
106
+ function Qe(n) {
107
+ return ke.get(n);
108
108
  }
109
- const Qe = 1e3;
110
- function Xe(n) {
111
- let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = S({
109
+ const Xe = 1e3;
110
+ function Ne(n) {
111
+ let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = x({
112
112
  search: "",
113
113
  timeout: void 0
114
114
  }).current, c = (r) => {
115
- let f = Ne(r.key);
116
- if (!(!f || r.ctrlKey || r.metaKey || !r.currentTarget.contains(r.target))) {
117
- if (f === " " && i.search.trim().length > 0 && (r.preventDefault(), "continuePropagation" in r || r.stopPropagation()), i.search += f, e.getKeyForSearch != null) {
115
+ let d = _e(r.key);
116
+ if (!(!d || r.ctrlKey || r.metaKey || !r.currentTarget.contains(r.target) || i.search.length === 0 && d === " ")) {
117
+ if (d === " " && i.search.trim().length > 0 && (r.preventDefault(), "continuePropagation" in r || r.stopPropagation()), i.search += d, e.getKeyForSearch != null) {
118
118
  let a = e.getKeyForSearch(i.search, t.focusedKey);
119
119
  a == null && (a = e.getKeyForSearch(i.search)), a != null && (t.setFocusedKey(a), l && l(a));
120
120
  }
121
121
  clearTimeout(i.timeout), i.timeout = setTimeout(() => {
122
122
  i.search = "";
123
- }, Qe);
123
+ }, Xe);
124
124
  }
125
125
  };
126
126
  return {
@@ -131,54 +131,54 @@ function Xe(n) {
131
131
  }
132
132
  };
133
133
  }
134
- function Ne(n) {
134
+ function _e(n) {
135
135
  return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
136
136
  }
137
- function $t(n) {
138
- let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: f = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: g = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: m, allowsTabNavigation: v = !1, isVirtualized: $, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction: h } = Oe(), d = Pe(), K = (o) => {
139
- var s;
140
- if (o.altKey && o.key === "Tab" && o.preventDefault(), !(!((s = l.current) === null || s === void 0) && s.contains(o.target))) return;
141
- const p = (u, z) => {
137
+ function mt(n) {
138
+ let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: c = !1, disallowEmptySelection: r = !1, disallowSelectAll: d = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: K = e.selectionBehavior === "replace", disallowTypeAhead: E = !1, shouldUseVirtualFocus: $, allowsTabNavigation: v = !1, isVirtualized: m, scrollRef: b = l, linkBehavior: k = "action" } = n, { direction: y } = Ue(), h = De(), S = (o) => {
139
+ var f;
140
+ if (o.altKey && o.key === "Tab" && o.preventDefault(), !(!((f = l.current) === null || f === void 0) && f.contains(o.target))) return;
141
+ const s = (u, z) => {
142
142
  if (u != null) {
143
- if (e.isLink(u) && k === "selection" && g && !fe(o)) {
144
- Ce(() => {
143
+ if (e.isLink(u) && k === "selection" && K && !fe(o)) {
144
+ ze(() => {
145
145
  e.setFocusedKey(u, z);
146
146
  });
147
147
  let U = re(l, u), de = e.getItemProps(u);
148
- U && d.open(U, o, de.href, de.routerOptions);
148
+ U && h.open(U, o, de.href, de.routerOptions);
149
149
  return;
150
150
  }
151
151
  if (e.setFocusedKey(u, z), e.isLink(u) && k === "override") return;
152
- o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : g && !fe(o) && e.replaceSelection(u);
152
+ o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : K && !fe(o) && e.replaceSelection(u);
153
153
  }
154
154
  };
155
155
  switch (o.key) {
156
156
  case "ArrowDown":
157
157
  if (t.getKeyBelow) {
158
- var x, T, D;
159
- let u = e.focusedKey != null ? (x = t.getKeyBelow) === null || x === void 0 ? void 0 : x.call(t, e.focusedKey) : (T = t.getFirstKey) === null || T === void 0 ? void 0 : T.call(t);
160
- u == null && c && (u = (D = t.getFirstKey) === null || D === void 0 ? void 0 : D.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u));
158
+ var g, T, D;
159
+ let u = e.focusedKey != null ? (g = t.getKeyBelow) === null || g === void 0 ? void 0 : g.call(t, e.focusedKey) : (T = t.getFirstKey) === null || T === void 0 ? void 0 : T.call(t);
160
+ u == null && c && (u = (D = t.getFirstKey) === null || D === void 0 ? void 0 : D.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u));
161
161
  }
162
162
  break;
163
163
  case "ArrowUp":
164
164
  if (t.getKeyAbove) {
165
- var B, L, N;
166
- let u = e.focusedKey != null ? (B = t.getKeyAbove) === null || B === void 0 ? void 0 : B.call(t, e.focusedKey) : (L = t.getLastKey) === null || L === void 0 ? void 0 : L.call(t);
167
- u == null && c && (u = (N = t.getLastKey) === null || N === void 0 ? void 0 : N.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u));
165
+ var R, O, N;
166
+ let u = e.focusedKey != null ? (R = t.getKeyAbove) === null || R === void 0 ? void 0 : R.call(t, e.focusedKey) : (O = t.getLastKey) === null || O === void 0 ? void 0 : O.call(t);
167
+ u == null && c && (u = (N = t.getLastKey) === null || N === void 0 ? void 0 : N.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u));
168
168
  }
169
169
  break;
170
170
  case "ArrowLeft":
171
171
  if (t.getKeyLeftOf) {
172
172
  var _, ee, te;
173
173
  let u = e.focusedKey != null ? (_ = t.getKeyLeftOf) === null || _ === void 0 ? void 0 : _.call(t, e.focusedKey) : null;
174
- u == null && c && (u = h === "rtl" ? (ee = t.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(t, e.focusedKey) : (te = t.getLastKey) === null || te === void 0 ? void 0 : te.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u, h === "rtl" ? "first" : "last"));
174
+ u == null && c && (u = y === "rtl" ? (ee = t.getFirstKey) === null || ee === void 0 ? void 0 : ee.call(t, e.focusedKey) : (te = t.getLastKey) === null || te === void 0 ? void 0 : te.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u, y === "rtl" ? "first" : "last"));
175
175
  }
176
176
  break;
177
177
  case "ArrowRight":
178
178
  if (t.getKeyRightOf) {
179
179
  var le, ie, ne;
180
180
  let u = e.focusedKey != null ? (le = t.getKeyRightOf) === null || le === void 0 ? void 0 : le.call(t, e.focusedKey) : null;
181
- u == null && c && (u = h === "rtl" ? (ie = t.getLastKey) === null || ie === void 0 ? void 0 : ie.call(t, e.focusedKey) : (ne = t.getFirstKey) === null || ne === void 0 ? void 0 : ne.call(t, e.focusedKey)), u != null && (o.preventDefault(), p(u, h === "rtl" ? "last" : "first"));
181
+ u == null && c && (u = y === "rtl" ? (ie = t.getLastKey) === null || ie === void 0 ? void 0 : ie.call(t, e.focusedKey) : (ne = t.getFirstKey) === null || ne === void 0 ? void 0 : ne.call(t, e.focusedKey)), u != null && (o.preventDefault(), s(u, y === "rtl" ? "last" : "first"));
182
182
  }
183
183
  break;
184
184
  case "Home":
@@ -186,7 +186,7 @@ function $t(n) {
186
186
  if (e.focusedKey === null && o.shiftKey) return;
187
187
  o.preventDefault();
188
188
  let u = t.getFirstKey(e.focusedKey, H(o));
189
- e.setFocusedKey(u), u != null && (H(o) && o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : g && e.replaceSelection(u));
189
+ e.setFocusedKey(u), u != null && (H(o) && o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : K && e.replaceSelection(u));
190
190
  }
191
191
  break;
192
192
  case "End":
@@ -194,23 +194,23 @@ function $t(n) {
194
194
  if (e.focusedKey === null && o.shiftKey) return;
195
195
  o.preventDefault();
196
196
  let u = t.getLastKey(e.focusedKey, H(o));
197
- e.setFocusedKey(u), u != null && (H(o) && o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : g && e.replaceSelection(u));
197
+ e.setFocusedKey(u), u != null && (H(o) && o.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : K && e.replaceSelection(u));
198
198
  }
199
199
  break;
200
200
  case "PageDown":
201
201
  if (t.getKeyPageBelow && e.focusedKey != null) {
202
202
  let u = t.getKeyPageBelow(e.focusedKey);
203
- u != null && (o.preventDefault(), p(u));
203
+ u != null && (o.preventDefault(), s(u));
204
204
  }
205
205
  break;
206
206
  case "PageUp":
207
207
  if (t.getKeyPageAbove && e.focusedKey != null) {
208
208
  let u = t.getKeyPageAbove(e.focusedKey);
209
- u != null && (o.preventDefault(), p(u));
209
+ u != null && (o.preventDefault(), s(u));
210
210
  }
211
211
  break;
212
212
  case "a":
213
- H(o) && e.selectionMode === "multiple" && f !== !0 && (o.preventDefault(), e.selectAll());
213
+ H(o) && e.selectionMode === "multiple" && d !== !0 && (o.preventDefault(), e.selectAll());
214
214
  break;
215
215
  case "Escape":
216
216
  a === "clearSelection" && !r && e.selectedKeys.size !== 0 && (o.stopPropagation(), o.preventDefault(), e.clearSelection());
@@ -219,7 +219,7 @@ function $t(n) {
219
219
  if (!v) {
220
220
  if (o.shiftKey) l.current.focus();
221
221
  else {
222
- let u = Le(l.current, {
222
+ let u = Re(l.current, {
223
223
  tabbable: !0
224
224
  }), z, U;
225
225
  do
@@ -230,120 +230,124 @@ function $t(n) {
230
230
  break;
231
231
  }
232
232
  }
233
- }, y = S({
233
+ }, p = x({
234
234
  top: 0,
235
235
  left: 0
236
236
  });
237
- J(b, "scroll", $ ? void 0 : () => {
238
- var o, s, p, x;
239
- y.current = {
240
- top: (p = (o = b.current) === null || o === void 0 ? void 0 : o.scrollTop) !== null && p !== void 0 ? p : 0,
241
- left: (x = (s = b.current) === null || s === void 0 ? void 0 : s.scrollLeft) !== null && x !== void 0 ? x : 0
237
+ J(b, "scroll", m ? void 0 : () => {
238
+ var o, f, s, g;
239
+ p.current = {
240
+ top: (s = (o = b.current) === null || o === void 0 ? void 0 : o.scrollTop) !== null && s !== void 0 ? s : 0,
241
+ left: (g = (f = b.current) === null || f === void 0 ? void 0 : f.scrollLeft) !== null && g !== void 0 ? g : 0
242
242
  };
243
243
  });
244
- let w = (o) => {
244
+ let F = (o) => {
245
245
  if (e.isFocused) {
246
246
  o.currentTarget.contains(o.target) || e.setFocused(!1);
247
247
  return;
248
248
  }
249
249
  if (o.currentTarget.contains(o.target)) {
250
250
  if (e.setFocused(!0), e.focusedKey == null) {
251
- var s, p;
252
- let D = (L) => {
253
- L != null && (e.setFocusedKey(L), g && !e.isSelected(L) && e.replaceSelection(L));
254
- }, B = o.relatedTarget;
255
- var x, T;
256
- B && o.currentTarget.compareDocumentPosition(B) & Node.DOCUMENT_POSITION_FOLLOWING ? D((x = e.lastSelectedKey) !== null && x !== void 0 ? x : (s = t.getLastKey) === null || s === void 0 ? void 0 : s.call(t)) : D((T = e.firstSelectedKey) !== null && T !== void 0 ? T : (p = t.getFirstKey) === null || p === void 0 ? void 0 : p.call(t));
257
- } else !$ && b.current && (b.current.scrollTop = y.current.top, b.current.scrollLeft = y.current.left);
251
+ var f, s;
252
+ let D = (O) => {
253
+ O != null && (e.setFocusedKey(O), K && !e.isSelected(O) && e.replaceSelection(O));
254
+ }, R = o.relatedTarget;
255
+ var g, T;
256
+ R && o.currentTarget.compareDocumentPosition(R) & Node.DOCUMENT_POSITION_FOLLOWING ? D((g = e.lastSelectedKey) !== null && g !== void 0 ? g : (f = t.getLastKey) === null || f === void 0 ? void 0 : f.call(t)) : D((T = e.firstSelectedKey) !== null && T !== void 0 ? T : (s = t.getFirstKey) === null || s === void 0 ? void 0 : s.call(t));
257
+ } else !m && b.current && (b.current.scrollTop = p.current.top, b.current.scrollLeft = p.current.left);
258
258
  if (e.focusedKey != null && b.current) {
259
259
  let D = re(l, e.focusedKey);
260
- D instanceof HTMLElement && (!D.contains(document.activeElement) && !m && ue(D), ve() === "keyboard" && pe(D, {
260
+ D instanceof HTMLElement && (!D.contains(document.activeElement) && !$ && ue(D), ve() === "keyboard" && pe(D, {
261
261
  containingElement: l.current
262
262
  }));
263
263
  }
264
264
  }
265
265
  }, A = (o) => {
266
266
  o.currentTarget.contains(o.relatedTarget) || e.setFocused(!1);
267
- }, I = S(!1);
268
- J(l, He, m ? (o) => {
269
- let { detail: s } = o;
270
- o.stopPropagation(), e.setFocused(!0), (s == null ? void 0 : s.focusStrategy) === "first" && (I.current = !0);
267
+ }, I = x(!1);
268
+ J(l, Ge, $ ? (o) => {
269
+ let { detail: f } = o;
270
+ o.stopPropagation(), e.setFocused(!0), (f == null ? void 0 : f.focusStrategy) === "first" && (I.current = !0);
271
271
  } : void 0);
272
- let C = ye(() => {
273
- var o, s;
274
- let p = (s = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && s !== void 0 ? s : null;
275
- p == null ? (De(l.current), e.collection.size > 0 && (I.current = !1)) : (e.setFocusedKey(p), I.current = !1);
272
+ let M = ye(() => {
273
+ var o, f;
274
+ let s = (f = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && f !== void 0 ? f : null;
275
+ if (s == null) {
276
+ let g = xe();
277
+ Te(l.current), Ee(g, null), e.collection.size > 0 && (I.current = !1);
278
+ } else
279
+ e.setFocusedKey(s), I.current = !1;
276
280
  });
277
281
  be(() => {
278
- I.current && C();
282
+ I.current && M();
279
283
  }, [
280
284
  e.collection,
281
- C
285
+ M
282
286
  ]);
283
- let F = ye(() => {
287
+ let P = ye(() => {
284
288
  e.collection.size > 0 && (I.current = !1);
285
289
  });
286
290
  be(() => {
287
- F();
291
+ P();
288
292
  }, [
289
293
  e.focusedKey,
290
- F
291
- ]), J(l, Ve, m ? (o) => {
292
- var s;
293
- o.stopPropagation(), e.setFocused(!1), !((s = o.detail) === null || s === void 0) && s.clearFocusKey && e.setFocusedKey(null);
294
+ P
295
+ ]), J(l, We, $ ? (o) => {
296
+ var f;
297
+ o.stopPropagation(), e.setFocused(!1), !((f = o.detail) === null || f === void 0) && f.clearFocusKey && e.setFocusedKey(null);
294
298
  } : void 0);
295
- const W = S(i), R = S(!1);
299
+ const W = x(i), B = x(!1);
296
300
  q(() => {
297
301
  if (W.current) {
298
- var o, s;
302
+ var o, f;
299
303
  let T = null;
300
- var p;
301
- i === "first" && (T = (p = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && p !== void 0 ? p : null);
302
- var x;
303
- i === "last" && (T = (x = (s = t.getLastKey) === null || s === void 0 ? void 0 : s.call(t)) !== null && x !== void 0 ? x : null);
304
+ var s;
305
+ i === "first" && (T = (s = (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t)) !== null && s !== void 0 ? s : null);
306
+ var g;
307
+ i === "last" && (T = (g = (f = t.getLastKey) === null || f === void 0 ? void 0 : f.call(t)) !== null && g !== void 0 ? g : null);
304
308
  let D = e.selectedKeys;
305
309
  if (D.size) {
306
- for (let B of D) if (e.canSelectItem(B)) {
307
- T = B;
310
+ for (let R of D) if (e.canSelectItem(R)) {
311
+ T = R;
308
312
  break;
309
313
  }
310
314
  }
311
- e.setFocused(!0), e.setFocusedKey(T), T == null && !m && l.current && ae(l.current), e.collection.size > 0 && (W.current = !1, R.current = !0);
315
+ e.setFocused(!0), e.setFocusedKey(T), T == null && !$ && l.current && ae(l.current), e.collection.size > 0 && (W.current = !1, B.current = !0);
312
316
  }
313
317
  });
314
- let P = S(e.focusedKey), O = S(null);
318
+ let L = x(e.focusedKey), w = x(null);
315
319
  q(() => {
316
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== P.current || R.current) && b.current && l.current) {
317
- let o = ve(), s = re(l, e.focusedKey);
318
- if (!(s instanceof HTMLElement))
320
+ if (e.isFocused && e.focusedKey != null && (e.focusedKey !== L.current || B.current) && b.current && l.current) {
321
+ let o = ve(), f = re(l, e.focusedKey);
322
+ if (!(f instanceof HTMLElement))
319
323
  return;
320
- (o === "keyboard" || R.current) && (O.current && cancelAnimationFrame(O.current), O.current = requestAnimationFrame(() => {
321
- b.current && (Me(b.current, s), o !== "virtual" && pe(s, {
324
+ (o === "keyboard" || B.current) && (w.current && cancelAnimationFrame(w.current), w.current = requestAnimationFrame(() => {
325
+ b.current && (Be(b.current, f), o !== "virtual" && pe(f, {
322
326
  containingElement: l.current
323
327
  }));
324
328
  }));
325
329
  }
326
- !m && e.isFocused && e.focusedKey == null && P.current != null && l.current && ae(l.current), P.current = e.focusedKey, R.current = !1;
330
+ !$ && e.isFocused && e.focusedKey == null && L.current != null && l.current && ae(l.current), L.current = e.focusedKey, B.current = !1;
327
331
  }), q(() => () => {
328
- O.current && cancelAnimationFrame(O.current);
332
+ w.current && cancelAnimationFrame(w.current);
329
333
  }, []), J(l, "react-aria-focus-scope-restore", (o) => {
330
334
  o.preventDefault(), e.setFocused(!0);
331
335
  });
332
336
  let G = {
333
- onKeyDown: K,
334
- onFocus: w,
337
+ onKeyDown: S,
338
+ onFocus: F,
335
339
  onBlur: A,
336
340
  onMouseDown(o) {
337
341
  b.current === o.target && o.preventDefault();
338
342
  }
339
- }, { typeSelectProps: Q } = Xe({
343
+ }, { typeSelectProps: Q } = Ne({
340
344
  keyboardDelegate: t,
341
345
  selectionManager: e
342
346
  });
343
347
  E || (G = Y(Q, G));
344
348
  let Z;
345
- m || (Z = e.focusedKey == null ? 0 : -1);
346
- let X = Ze(e.collection);
349
+ $ || (Z = e.focusedKey == null ? 0 : -1);
350
+ let X = Je(e.collection);
347
351
  return {
348
352
  collectionProps: Y(G, {
349
353
  tabIndex: Z,
@@ -351,25 +355,25 @@ function $t(n) {
351
355
  })
352
356
  };
353
357
  }
354
- function mt(n) {
355
- let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: c, shouldUseVirtualFocus: r, focus: f, isDisabled: a, onAction: g, allowsDifferentPressOrigin: E, linkBehavior: m = "action" } = n, v = Pe();
356
- e = we(e);
357
- let $ = (s) => {
358
+ function gt(n) {
359
+ let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: c, shouldUseVirtualFocus: r, focus: d, isDisabled: a, onAction: K, allowsDifferentPressOrigin: E, linkBehavior: $ = "action" } = n, v = De();
360
+ e = Fe(e);
361
+ let m = (s) => {
358
362
  if (s.pointerType === "keyboard" && fe(s)) t.toggleSelection(l);
359
363
  else {
360
364
  if (t.selectionMode === "none") return;
361
365
  if (t.isLink(l)) {
362
- if (m === "selection" && i.current) {
363
- let p = t.getItemProps(l);
364
- v.open(i.current, s, p.href, p.routerOptions), t.setSelectedKeys(t.selectedKeys);
366
+ if ($ === "selection" && i.current) {
367
+ let g = t.getItemProps(l);
368
+ v.open(i.current, s, g.href, g.routerOptions), t.setSelectedKeys(t.selectedKeys);
365
369
  return;
366
- } else if (m === "override" || m === "none") return;
370
+ } else if ($ === "override" || $ === "none") return;
367
371
  }
368
372
  t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : s && s.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || s && (H(s) || s.pointerType === "touch" || s.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
369
373
  }
370
374
  };
371
375
  q(() => {
372
- l === t.focusedKey && t.isFocused && (r ? De(i.current) : f ? f() : document.activeElement !== i.current && i.current && ae(i.current));
376
+ l === t.focusedKey && t.isFocused && (r ? Te(i.current) : d ? d() : document.activeElement !== i.current && i.current && ae(i.current));
373
377
  }, [
374
378
  i,
375
379
  l,
@@ -387,58 +391,63 @@ function mt(n) {
387
391
  } : a && (b.onMouseDown = (s) => {
388
392
  s.preventDefault();
389
393
  });
390
- let k = t.isLink(l) && m === "override", h = t.isLink(l) && m !== "selection" && m !== "none", d = !a && t.canSelectItem(l) && !k, K = (g || h) && !a, y = K && (t.selectionBehavior === "replace" ? !d : !d || t.isEmpty), w = K && d && t.selectionBehavior === "replace", A = y || w, I = S(null), C = A && d, F = S(!1), W = S(!1), R = (s) => {
391
- if (g && g(), h && i.current) {
392
- let p = t.getItemProps(l);
393
- v.open(i.current, s, p.href, p.routerOptions);
394
- }
395
- }, P = {
394
+ let k = t.isLink(l) && $ === "override", y = t.isLink(l) && $ !== "selection" && $ !== "none", h = !a && t.canSelectItem(l) && !k, S = (K || y) && !a, p = S && (t.selectionBehavior === "replace" ? !h : !h || t.isEmpty), F = S && h && t.selectionBehavior === "replace", A = p || F, I = x(null), M = A && h, P = x(!1), W = x(!1), B = t.getItemProps(l), L = (s) => {
395
+ K && K(), y && i.current && v.open(i.current, s, B.href, B.routerOptions);
396
+ }, w = {
396
397
  ref: i
397
398
  };
398
- c ? (P.onPressStart = (s) => {
399
- I.current = s.pointerType, F.current = C, s.pointerType === "keyboard" && (!A || me()) && $(s);
400
- }, E ? (P.onPressUp = y ? void 0 : (s) => {
401
- s.pointerType === "mouse" && d && $(s);
402
- }, P.onPress = y ? R : (s) => {
403
- s.pointerType !== "keyboard" && s.pointerType !== "mouse" && d && $(s);
404
- }) : P.onPress = (s) => {
405
- if (y || w && s.pointerType !== "mouse") {
399
+ if (c ? (w.onPressStart = (s) => {
400
+ I.current = s.pointerType, P.current = M, s.pointerType === "keyboard" && (!A || me()) && m(s);
401
+ }, E ? (w.onPressUp = p ? void 0 : (s) => {
402
+ s.pointerType === "mouse" && h && m(s);
403
+ }, w.onPress = p ? L : (s) => {
404
+ s.pointerType !== "keyboard" && s.pointerType !== "mouse" && h && m(s);
405
+ }) : w.onPress = (s) => {
406
+ if (p || F && s.pointerType !== "mouse") {
406
407
  if (s.pointerType === "keyboard" && !$e()) return;
407
- R(s);
408
- } else s.pointerType !== "keyboard" && d && $(s);
409
- }) : (P.onPressStart = (s) => {
410
- I.current = s.pointerType, F.current = C, W.current = y, d && (s.pointerType === "mouse" && !y || s.pointerType === "keyboard" && (!K || me())) && $(s);
411
- }, P.onPress = (s) => {
412
- (s.pointerType === "touch" || s.pointerType === "pen" || s.pointerType === "virtual" || s.pointerType === "keyboard" && A && $e() || s.pointerType === "mouse" && W.current) && (A ? R(s) : d && $(s));
413
- }), b["data-collection"] = Je(t.collection), b["data-key"] = l, P.preventFocusOnPress = r, r && (P = Y(P, {
408
+ L(s);
409
+ } else s.pointerType !== "keyboard" && h && m(s);
410
+ }) : (w.onPressStart = (s) => {
411
+ I.current = s.pointerType, P.current = M, W.current = p, h && (s.pointerType === "mouse" && !p || s.pointerType === "keyboard" && (!S || me())) && m(s);
412
+ }, w.onPress = (s) => {
413
+ (s.pointerType === "touch" || s.pointerType === "pen" || s.pointerType === "virtual" || s.pointerType === "keyboard" && A && $e() || s.pointerType === "mouse" && W.current) && (A ? L(s) : h && m(s));
414
+ }), b["data-collection"] = Qe(t.collection), b["data-key"] = l, w.preventFocusOnPress = r, r && (w = Y(w, {
414
415
  onPressStart(s) {
415
416
  s.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
416
417
  },
417
418
  onPress(s) {
418
419
  s.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
419
420
  }
420
- }));
421
- let { pressProps: O, isPressed: G } = Fe(P), Q = w ? (s) => {
422
- I.current === "mouse" && (s.stopPropagation(), s.preventDefault(), R(s));
423
- } : void 0, { longPressProps: Z } = Ge({
424
- isDisabled: !C,
421
+ })), B)
422
+ for (let s of [
423
+ "onPressStart",
424
+ "onPressEnd",
425
+ "onPressChange",
426
+ "onPress",
427
+ "onPressUp",
428
+ "onClick"
429
+ ]) B[s] && (w[s] = Ce(w[s], B[s]));
430
+ let { pressProps: G, isPressed: Q } = Pe(w), Z = F ? (s) => {
431
+ I.current === "mouse" && (s.stopPropagation(), s.preventDefault(), L(s));
432
+ } : void 0, { longPressProps: X } = je({
433
+ isDisabled: !M,
425
434
  onLongPress(s) {
426
- s.pointerType === "touch" && ($(s), t.setSelectionBehavior("toggle"));
435
+ s.pointerType === "touch" && (m(s), t.setSelectionBehavior("toggle"));
427
436
  }
428
- }), X = (s) => {
429
- I.current === "touch" && F.current && s.preventDefault();
430
- }, o = t.isLink(l) ? (s) => {
431
- Ie.isOpening || s.preventDefault();
437
+ }), o = (s) => {
438
+ I.current === "touch" && P.current && s.preventDefault();
439
+ }, f = $ !== "none" && t.isLink(l) ? (s) => {
440
+ Me.isOpening || s.preventDefault();
432
441
  } : void 0;
433
442
  return {
434
443
  itemProps: Y(
435
444
  b,
436
- d || y || r && !a ? O : {},
437
- C ? Z : {},
445
+ h || p || r && !a ? G : {},
446
+ M ? X : {},
438
447
  {
439
- onDoubleClick: Q,
440
- onDragStartCapture: X,
441
- onClick: o,
448
+ onDoubleClick: Z,
449
+ onDragStartCapture: o,
450
+ onClick: f,
442
451
  id: e
443
452
  },
444
453
  // Prevent DOM focus from moving on mouse down when using virtual focus
@@ -446,11 +455,11 @@ function mt(n) {
446
455
  onMouseDown: (s) => s.preventDefault()
447
456
  } : void 0
448
457
  ),
449
- isPressed: G,
458
+ isPressed: Q,
450
459
  isSelected: t.isSelected(l),
451
460
  isFocused: t.isFocused && t.focusedKey === l,
452
461
  isDisabled: a,
453
- allowsSelection: d,
462
+ allowsSelection: h,
454
463
  hasAction: A
455
464
  };
456
465
  }
@@ -462,7 +471,7 @@ function me() {
462
471
  let n = window.event;
463
472
  return (n == null ? void 0 : n.key) === " " || (n == null ? void 0 : n.code) === "Space";
464
473
  }
465
- class _e {
474
+ class et {
466
475
  build(e, t) {
467
476
  return this.context = t, ge(() => this.iterateCollection(e));
468
477
  }
@@ -489,11 +498,11 @@ class _e {
489
498
  });
490
499
  let c = 0;
491
500
  for (let r of i) {
492
- let f = this.getFullNode({
501
+ let d = this.getFullNode({
493
502
  element: r,
494
503
  index: c
495
504
  }, {});
496
- for (let a of f)
505
+ for (let a of d)
497
506
  c++, yield a;
498
507
  }
499
508
  }
@@ -504,9 +513,9 @@ class _e {
504
513
  let c = t.value;
505
514
  if (c != null) {
506
515
  var r;
507
- let f = (r = c.key) !== null && r !== void 0 ? r : c.id;
508
- if (f == null) throw new Error("No key found for item");
509
- return f;
516
+ let d = (r = c.key) !== null && r !== void 0 ? r : c.id;
517
+ if (d == null) throw new Error("No key found for item");
518
+ return d;
510
519
  }
511
520
  return i ? `${i}.${t.index}` : `$.${t.index}`;
512
521
  }
@@ -517,70 +526,70 @@ class _e {
517
526
  }
518
527
  *getFullNode(e, t, l, i) {
519
528
  if (V.isValidElement(e.element) && e.element.type === V.Fragment) {
520
- let h = [];
521
- V.Children.forEach(e.element.props.children, (K) => {
522
- h.push(K);
529
+ let y = [];
530
+ V.Children.forEach(e.element.props.children, (S) => {
531
+ y.push(S);
523
532
  });
524
533
  var c;
525
- let d = (c = e.index) !== null && c !== void 0 ? c : 0;
526
- for (const K of h) yield* this.getFullNode({
527
- element: K,
528
- index: d++
534
+ let h = (c = e.index) !== null && c !== void 0 ? c : 0;
535
+ for (const S of y) yield* this.getFullNode({
536
+ element: S,
537
+ index: h++
529
538
  }, t, l, i);
530
539
  return;
531
540
  }
532
541
  let r = e.element;
533
542
  if (!r && e.value && t && t.renderer) {
534
- let h = this.cache.get(e.value);
535
- if (h && (!h.shouldInvalidate || !h.shouldInvalidate(this.context))) {
536
- h.index = e.index, h.parentKey = i ? i.key : null, yield h;
543
+ let y = this.cache.get(e.value);
544
+ if (y && (!y.shouldInvalidate || !y.shouldInvalidate(this.context))) {
545
+ y.index = e.index, y.parentKey = i ? i.key : null, yield y;
537
546
  return;
538
547
  }
539
548
  r = t.renderer(e.value);
540
549
  }
541
550
  if (V.isValidElement(r)) {
542
- let h = r.type;
543
- if (typeof h != "function" && typeof h.getCollectionNode != "function") {
544
- let w = r.type;
545
- throw new Error(`Unknown element <${w}> in collection.`);
551
+ let y = r.type;
552
+ if (typeof y != "function" && typeof y.getCollectionNode != "function") {
553
+ let F = r.type;
554
+ throw new Error(`Unknown element <${F}> in collection.`);
546
555
  }
547
- let d = h.getCollectionNode(r.props, this.context);
548
- var f;
549
- let K = (f = e.index) !== null && f !== void 0 ? f : 0, y = d.next();
550
- for (; !y.done && y.value; ) {
551
- let w = y.value;
552
- e.index = K;
556
+ let h = y.getCollectionNode(r.props, this.context);
557
+ var d;
558
+ let S = (d = e.index) !== null && d !== void 0 ? d : 0, p = h.next();
559
+ for (; !p.done && p.value; ) {
560
+ let F = p.value;
561
+ e.index = S;
553
562
  var a;
554
- let A = (a = w.key) !== null && a !== void 0 ? a : null;
555
- A == null && (A = w.element ? null : this.getKey(r, e, t, l));
556
- let C = [
563
+ let A = (a = F.key) !== null && a !== void 0 ? a : null;
564
+ A == null && (A = F.element ? null : this.getKey(r, e, t, l));
565
+ let M = [
557
566
  ...this.getFullNode({
558
- ...w,
567
+ ...F,
559
568
  key: A,
560
- index: K,
561
- wrapper: et(e.wrapper, w.wrapper)
562
- }, this.getChildState(t, w), l ? `${l}${r.key}` : r.key, i)
569
+ index: S,
570
+ wrapper: tt(e.wrapper, F.wrapper)
571
+ }, this.getChildState(t, F), l ? `${l}${r.key}` : r.key, i)
563
572
  ];
564
- for (let F of C) {
565
- var g, E;
566
- F.value = (E = (g = w.value) !== null && g !== void 0 ? g : e.value) !== null && E !== void 0 ? E : null, F.value && this.cache.set(F.value, F);
567
- var m;
568
- if (e.type && F.type !== e.type) throw new Error(`Unsupported type <${oe(F.type)}> in <${oe((m = i == null ? void 0 : i.type) !== null && m !== void 0 ? m : "unknown parent type")}>. Only <${oe(e.type)}> is supported.`);
569
- K++, yield F;
573
+ for (let P of M) {
574
+ var K, E;
575
+ P.value = (E = (K = F.value) !== null && K !== void 0 ? K : e.value) !== null && E !== void 0 ? E : null, P.value && this.cache.set(P.value, P);
576
+ var $;
577
+ if (e.type && P.type !== e.type) throw new Error(`Unsupported type <${oe(P.type)}> in <${oe(($ = i == null ? void 0 : i.type) !== null && $ !== void 0 ? $ : "unknown parent type")}>. Only <${oe(e.type)}> is supported.`);
578
+ S++, yield P;
570
579
  }
571
- y = d.next(C);
580
+ p = h.next(M);
572
581
  }
573
582
  return;
574
583
  }
575
584
  if (e.key == null || e.type == null) return;
576
585
  let v = this;
577
- var $, b;
586
+ var m, b;
578
587
  let k = {
579
588
  type: e.type,
580
589
  props: e.props,
581
590
  key: e.key,
582
591
  parentKey: i ? i.key : null,
583
- value: ($ = e.value) !== null && $ !== void 0 ? $ : null,
592
+ value: (m = e.value) !== null && m !== void 0 ? m : null,
584
593
  level: i ? i.level + 1 : 0,
585
594
  index: e.index,
586
595
  rendered: e.rendered,
@@ -591,15 +600,15 @@ class _e {
591
600
  hasChildNodes: e.hasChildNodes || !1,
592
601
  childNodes: ge(function* () {
593
602
  if (!e.hasChildNodes || !e.childNodes) return;
594
- let h = 0;
595
- for (let d of e.childNodes()) {
596
- d.key != null && (d.key = `${k.key}${d.key}`);
597
- let K = v.getFullNode({
598
- ...d,
599
- index: h
600
- }, v.getChildState(t, d), k.key, k);
601
- for (let y of K)
602
- h++, yield y;
603
+ let y = 0;
604
+ for (let h of e.childNodes()) {
605
+ h.key != null && (h.key = `${k.key}${h.key}`);
606
+ let S = v.getFullNode({
607
+ ...h,
608
+ index: y
609
+ }, v.getChildState(t, h), k.key, k);
610
+ for (let p of S)
611
+ y++, yield p;
603
612
  }
604
613
  })
605
614
  };
@@ -620,7 +629,7 @@ function ge(n) {
620
629
  }
621
630
  };
622
631
  }
623
- function et(n, e) {
632
+ function tt(n, e) {
624
633
  if (n && e) return (t) => n(e(t));
625
634
  if (n) return n;
626
635
  if (e) return e;
@@ -628,8 +637,8 @@ function et(n, e) {
628
637
  function oe(n) {
629
638
  return n[0].toUpperCase() + n.slice(1);
630
639
  }
631
- function gt(n, e, t) {
632
- let l = j(() => new _e(), []), { children: i, items: c, collection: r } = n;
640
+ function Kt(n, e, t) {
641
+ let l = j(() => new et(), []), { children: i, items: c, collection: r } = n;
633
642
  return j(() => {
634
643
  if (r) return r;
635
644
  let a = l.build({
@@ -646,13 +655,13 @@ function gt(n, e, t) {
646
655
  e
647
656
  ]);
648
657
  }
649
- function tt(n, e) {
658
+ function lt(n, e) {
650
659
  return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
651
660
  }
652
- function lt(n) {
653
- return it(n, 0);
661
+ function it(n) {
662
+ return nt(n, 0);
654
663
  }
655
- function it(n, e) {
664
+ function nt(n, e) {
656
665
  if (e < 0) return;
657
666
  let t = 0;
658
667
  for (let l of n) {
@@ -660,7 +669,7 @@ function it(n, e) {
660
669
  t++;
661
670
  }
662
671
  }
663
- function Kt(n) {
672
+ function St(n) {
664
673
  let e;
665
674
  for (let t of n) e = t;
666
675
  return e;
@@ -673,7 +682,7 @@ function ce(n, e, t) {
673
682
  ], i = [
674
683
  ...Ke(n, t),
675
684
  t
676
- ], c = l.slice(0, i.length).findIndex((r, f) => r !== i[f]);
685
+ ], c = l.slice(0, i.length).findIndex((r, d) => r !== i[d]);
677
686
  return c !== -1 ? (e = l[c], t = i[c], e.index - t.index) : l.findIndex((r) => r === t) >= 0 ? 1 : (i.findIndex((r) => r === e) >= 0, -1);
678
687
  }
679
688
  function Ke(n, e) {
@@ -682,63 +691,63 @@ function Ke(n, e) {
682
691
  l = n.getItem(l.parentKey), l && t.unshift(l);
683
692
  return t;
684
693
  }
685
- class M extends Set {
694
+ class C extends Set {
686
695
  constructor(e, t, l) {
687
- super(e), e instanceof M ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
696
+ super(e), e instanceof C ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
688
697
  }
689
698
  }
690
- function nt(n, e) {
699
+ function st(n, e) {
691
700
  if (n.size !== e.size) return !1;
692
701
  for (let t of n)
693
702
  if (!e.has(t)) return !1;
694
703
  return !0;
695
704
  }
696
- function St(n) {
697
- let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: c = "all" } = n, r = S(!1), [, f] = se(!1), a = S(null), g = S(null), [, E] = se(null), m = j(() => Se(n.selectedKeys), [
705
+ function wt(n) {
706
+ let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: c = "all" } = n, r = x(!1), [, d] = se(!1), a = x(null), K = x(null), [, E] = se(null), $ = j(() => Se(n.selectedKeys), [
698
707
  n.selectedKeys
699
- ]), v = j(() => Se(n.defaultSelectedKeys, new M()), [
708
+ ]), v = j(() => Se(n.defaultSelectedKeys, new C()), [
700
709
  n.defaultSelectedKeys
701
- ]), [$, b] = Ue(m, v, n.onSelectionChange), k = j(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
710
+ ]), [m, b] = He($, v, n.onSelectionChange), k = j(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
702
711
  n.disabledKeys
703
- ]), [h, d] = se(i);
704
- i === "replace" && h === "toggle" && typeof $ == "object" && $.size === 0 && d("replace");
705
- let K = S(i);
712
+ ]), [y, h] = se(i);
713
+ i === "replace" && y === "toggle" && typeof m == "object" && m.size === 0 && h("replace");
714
+ let S = x(i);
706
715
  return q(() => {
707
- i !== K.current && (d(i), K.current = i);
716
+ i !== S.current && (h(i), S.current = i);
708
717
  }, [
709
718
  i
710
719
  ]), {
711
720
  selectionMode: e,
712
721
  disallowEmptySelection: t,
713
- selectionBehavior: h,
714
- setSelectionBehavior: d,
722
+ selectionBehavior: y,
723
+ setSelectionBehavior: h,
715
724
  get isFocused() {
716
725
  return r.current;
717
726
  },
718
- setFocused(y) {
719
- r.current = y, f(y);
727
+ setFocused(p) {
728
+ r.current = p, d(p);
720
729
  },
721
730
  get focusedKey() {
722
731
  return a.current;
723
732
  },
724
733
  get childFocusStrategy() {
725
- return g.current;
734
+ return K.current;
726
735
  },
727
- setFocusedKey(y, w = "first") {
728
- a.current = y, g.current = w, E(y);
736
+ setFocusedKey(p, F = "first") {
737
+ a.current = p, K.current = F, E(p);
729
738
  },
730
- selectedKeys: $,
731
- setSelectedKeys(y) {
732
- (l || !nt(y, $)) && b(y);
739
+ selectedKeys: m,
740
+ setSelectedKeys(p) {
741
+ (l || !st(p, m)) && b(p);
733
742
  },
734
743
  disabledKeys: k,
735
744
  disabledBehavior: c
736
745
  };
737
746
  }
738
747
  function Se(n, e) {
739
- return n ? n === "all" ? "all" : new M(n) : e;
748
+ return n ? n === "all" ? "all" : new C(n) : e;
740
749
  }
741
- class Ee {
750
+ class Ae {
742
751
  /**
743
752
  * The type of selection that is allowed in the collection.
744
753
  */
@@ -864,17 +873,17 @@ class Ee {
864
873
  let t = this.getKey(e);
865
874
  if (t == null) return;
866
875
  let l;
867
- if (this.state.selectedKeys === "all") l = new M([
876
+ if (this.state.selectedKeys === "all") l = new C([
868
877
  t
869
878
  ], t, t);
870
879
  else {
871
880
  let r = this.state.selectedKeys;
872
881
  var i;
873
- let f = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
874
- l = new M(r, f, t);
882
+ let d = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
883
+ l = new C(r, d, t);
875
884
  var c;
876
- for (let a of this.getKeyRange(f, (c = r.currentKey) !== null && c !== void 0 ? c : t)) l.delete(a);
877
- for (let a of this.getKeyRange(t, f)) this.canSelectItem(a) && l.add(a);
885
+ for (let a of this.getKeyRange(d, (c = r.currentKey) !== null && c !== void 0 ? c : t)) l.delete(a);
886
+ for (let a of this.getKeyRange(t, d)) this.canSelectItem(a) && l.add(a);
878
887
  }
879
888
  this.state.setSelectedKeys(l);
880
889
  }
@@ -910,7 +919,7 @@ class Ee {
910
919
  }
911
920
  let t = this.getKey(e);
912
921
  if (t == null) return;
913
- let l = new M(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
922
+ let l = new C(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
914
923
  l.has(t) ? l.delete(t) : this.canSelectItem(t) && (l.add(t), l.anchorKey = t, l.currentKey = t), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
915
924
  }
916
925
  /**
@@ -920,9 +929,9 @@ class Ee {
920
929
  if (this.selectionMode === "none") return;
921
930
  let t = this.getKey(e);
922
931
  if (t == null) return;
923
- let l = this.canSelectItem(t) ? new M([
932
+ let l = this.canSelectItem(t) ? new C([
924
933
  t
925
- ], t, t) : new M();
934
+ ], t, t) : new C();
926
935
  this.state.setSelectedKeys(l);
927
936
  }
928
937
  /**
@@ -930,7 +939,7 @@ class Ee {
930
939
  */
931
940
  setSelectedKeys(e) {
932
941
  if (this.selectionMode === "none") return;
933
- let t = new M();
942
+ let t = new C();
934
943
  for (let l of e) {
935
944
  let i = this.getKey(l);
936
945
  if (i != null && (t.add(i), this.selectionMode === "single"))
@@ -946,7 +955,7 @@ class Ee {
946
955
  let r = this.collection.getItem(l);
947
956
  (r == null ? void 0 : r.type) === "item" && e.push(l);
948
957
  var c;
949
- r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((c = (i = lt(tt(r, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && c !== void 0 ? c : null);
958
+ r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((c = (i = it(lt(r, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && c !== void 0 ? c : null);
950
959
  }
951
960
  l = this.collection.getKeyAfter(l);
952
961
  }
@@ -963,7 +972,7 @@ class Ee {
963
972
  * Removes all keys from the selection.
964
973
  */
965
974
  clearSelection() {
966
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new M());
975
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new C());
967
976
  }
968
977
  /**
969
978
  * Toggles between select all and an empty selection.
@@ -1006,7 +1015,7 @@ class Ee {
1006
1015
  return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
1007
1016
  }
1008
1017
  withCollection(e) {
1009
- return new Ee(e, this.state, {
1018
+ return new Ae(e, this.state, {
1010
1019
  allowsCellSelection: this.allowsCellSelection,
1011
1020
  layoutDelegate: this.layoutDelegate || void 0
1012
1021
  });
@@ -1018,17 +1027,17 @@ class Ee {
1018
1027
  }
1019
1028
  }
1020
1029
  export {
1021
- St as $,
1022
- gt as a,
1023
- Ee as b,
1030
+ wt as $,
1031
+ Kt as a,
1032
+ Ae as b,
1024
1033
  re as c,
1025
- mt as d,
1026
- $t as e,
1027
- tt as f,
1028
- Xe as g,
1029
- je as h,
1030
- Kt as i,
1031
- lt as j,
1032
- it as k,
1033
- Ge as l
1034
+ gt as d,
1035
+ mt as e,
1036
+ lt as f,
1037
+ Ne as g,
1038
+ Ee as h,
1039
+ St as i,
1040
+ it as j,
1041
+ nt as k,
1042
+ je as l
1034
1043
  };