@midas-ds/components 14.0.0 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/AccordionItem-CAi-XFOc.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-CRIYvCRM.js → Button-CF97piBl.js} +1 -1
  8. package/{Button-B6lxIKPk.js → Button-CGe3Nyos.js} +121 -115
  9. package/CHANGELOG.md +26 -0
  10. package/{Card-CfosvMF5.js → Card-DJ8E5Rzd.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-B1b-6bKq.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-BfZyy5yU.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-BOooU0iy.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-KjnsdbDr.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-D1ZSZ6m-.js} +254 -246
  23. package/ComboBox-Dztk_jtC.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-BogEOseq.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-lsr_1fw4.js} +4 -4
  26. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-CRv3YuXd.js} +191 -188
  27. package/DateInputDivider-CYqm6PZP.cjs +1 -0
  28. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-5k1swaEt.js} +119 -115
  29. package/DateRangePicker-CgNXWOT6.cjs +6 -0
  30. package/Dialog-B1N4Ndyx.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-BUAp30Wc.js} +712 -694
  32. package/Dialog-BgSxz1JW.cjs +1 -0
  33. package/Dialog-PrnV8KTh.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-5rmvcHD_.cjs → Dropdown-DBFLb8Tl.cjs} +1 -1
  37. package/{Dropdown-uC9wc8vd.js → Dropdown-DaARa89l.js} +2 -2
  38. package/{FieldError-C4WBoCRc.cjs → FieldError-Cimgm8qD.cjs} +1 -1
  39. package/{FieldError-C4kD4yJZ.js → FieldError-l3xULRa0.js} +3 -3
  40. package/{FileUpload-01wGpykv.js → FileUpload-CN0HNJ_Y.js} +9 -9
  41. package/{FileUpload-CTbh7Gic.cjs → FileUpload-DHmsupSe.cjs} +1 -1
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-BW3vy9mc.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CV9p0K2n.js → Label-BGMXsSFb.js} +4 -4
  51. package/{Label-CkIRTC0_.cjs → Label-CNTODOFg.cjs} +1 -1
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-JL9l-y7w.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/ListBox-TGCxrXIJ.cjs +1 -0
  61. package/{ListBox-2eEa1l0M.js → ListBox-mOCZvKD4.js} +187 -176
  62. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-CLdTe6-z.js} +3 -3
  63. package/{ListBoxLoadMoreItem-BBE3OF4J.cjs → ListBoxLoadMoreItem-UX0jFQN4.cjs} +1 -1
  64. package/ListBoxSection-BNBHosou.cjs +1 -0
  65. package/{ListBoxSection-dksiACMZ.js → ListBoxSection-D_kTkvgG.js} +139 -140
  66. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BHnZMUhW.js} +36 -40
  67. package/ListKeyboardDelegate-CLRlDto7.cjs +1 -0
  68. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  69. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  70. package/{Popover-D7_IfJ3o.js → Popover-CZFi2YGz.js} +2 -2
  71. package/{Popover-BI2Koco0.cjs → Popover-uYTWBGHa.cjs} +1 -1
  72. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  73. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  74. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BGemuJIq.cjs} +1 -1
  75. package/{ProgressBar-B0WEQkyq.js → ProgressBar-DhRmckYM.js} +2 -2
  76. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  77. package/RSPContexts-XUvspq3j.cjs +1 -0
  78. package/Radio-Bp_31Z59.js +340 -0
  79. package/Radio-D3RGVrEd.cjs +1 -0
  80. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-9C96gMvy.js} +58 -58
  81. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-ChfmP_ql.cjs} +2 -2
  82. package/{SearchField-wojUSY2S.js → SearchField-DrEdzWAy.js} +3 -3
  83. package/{SearchField-DnBBlPT7.cjs → SearchField-JaDXLq5W.cjs} +1 -1
  84. package/Select-BCUH-Z7q.cjs +1 -0
  85. package/Select-CpPE78Ke.js +676 -0
  86. package/SelectionIndicator-BiSN1toV.cjs +1 -0
  87. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-ant6jeC1.js} +256 -165
  88. package/SelectionManager-C469yQeD.js +1063 -0
  89. package/SelectionManager-uFYC4wpu.cjs +1 -0
  90. package/{Separator--4b7vckr.js → Separator-B6l5qSpR.js} +2 -2
  91. package/{Separator-COlhRmJF.js → Separator-BWAnBMVN.js} +4 -4
  92. package/{Separator-DcbM84B8.cjs → Separator-DbhmtwDa.cjs} +1 -1
  93. package/{Separator-BQkxEZC9.cjs → Separator-J0pLW4BN.cjs} +1 -1
  94. package/Spinner-D6Fcu_Dp.js +54 -0
  95. package/Spinner-DIapnvIz.cjs +6 -0
  96. package/TabList-C0tRVI6Q.cjs +1 -0
  97. package/TabList-DmkxO7MM.js +394 -0
  98. package/Table-BLqjyYKk.cjs +16 -0
  99. package/{Table-cCSOrPkK.js → Table-CyWZO9uf.js} +707 -703
  100. package/Tag-DJqYiBLR.js +774 -0
  101. package/Tag-FDHGu_WP.cjs +1 -0
  102. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  103. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  104. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  105. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  106. package/{TextArea-B5TsyJxa.cjs → TextArea-CZxwvBcS.cjs} +1 -1
  107. package/{TextArea-Cado2arG.js → TextArea-CrY7P18c.js} +8 -8
  108. package/{TextField-5AI6T1ol.js → TextField-BWea-IT-.js} +10 -10
  109. package/TextField-DsN-kBfh.cjs +1 -0
  110. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  111. package/{Toast-CgXRE33Y.js → Toast-Di3h8A14.js} +12 -12
  112. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-Bh4hP6Lk.js} +82 -78
  113. package/ToggleButtonGroup-D7r34GCt.cjs +1 -0
  114. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  115. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  116. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  117. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  118. package/accordion/index.cjs +1 -1
  119. package/accordion/index.js +1 -1
  120. package/assets/AccordionItem.css +1 -1
  121. package/assets/RangeCalendar.css +1 -1
  122. package/assets/Spinner.css +1 -1
  123. package/assets/TabList.css +1 -1
  124. package/assets/default.css +1 -1
  125. package/breadcrumbs/index.cjs +1 -1
  126. package/breadcrumbs/index.js +1 -1
  127. package/button/index.cjs +1 -1
  128. package/button/index.js +1 -1
  129. package/calendar/index.cjs +1 -1
  130. package/calendar/index.js +1 -1
  131. package/card/index.cjs +1 -1
  132. package/card/index.js +1 -1
  133. package/character-counter/index.cjs +1 -1
  134. package/character-counter/index.js +1 -1
  135. package/checkbox/index.cjs +1 -1
  136. package/checkbox/index.js +2 -2
  137. package/color-scheme-switch/index.cjs +1 -1
  138. package/color-scheme-switch/index.js +1 -1
  139. package/combobox/index.cjs +1 -1
  140. package/combobox/index.js +1 -1
  141. package/date-field/index.cjs +1 -1
  142. package/date-field/index.js +2 -2
  143. package/date-picker/index.cjs +1 -1
  144. package/date-picker/index.js +1 -1
  145. package/dropdown/index.cjs +1 -1
  146. package/dropdown/index.js +1 -1
  147. package/field-error/index.cjs +1 -1
  148. package/field-error/index.js +1 -1
  149. package/file-upload/index.cjs +1 -1
  150. package/file-upload/index.js +1 -1
  151. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  152. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  153. package/heading/index.cjs +1 -1
  154. package/heading/index.js +1 -1
  155. package/index.cjs +1 -1
  156. package/index.js +42 -42
  157. package/info-banner/index.cjs +1 -1
  158. package/info-banner/index.js +1 -1
  159. package/label/index.cjs +1 -1
  160. package/label/index.js +1 -1
  161. package/layout/index.cjs +1 -1
  162. package/layout/index.js +1 -1
  163. package/link/index.cjs +1 -1
  164. package/link/index.js +2 -2
  165. package/link-button/index.cjs +1 -1
  166. package/link-button/index.js +2 -2
  167. package/list-box/index.cjs +1 -1
  168. package/list-box/index.js +2 -2
  169. package/menu/index.cjs +1 -1
  170. package/menu/index.js +2 -2
  171. package/modal/index.cjs +1 -1
  172. package/modal/index.js +2 -2
  173. package/package.json +4 -4
  174. package/popover/index.cjs +1 -1
  175. package/popover/index.js +1 -1
  176. package/progress-bar/index.cjs +1 -1
  177. package/progress-bar/index.js +1 -1
  178. package/radio/index.cjs +1 -1
  179. package/radio/index.js +1 -1
  180. package/scrollIntoView-BVI21Y4-.js +65 -0
  181. package/scrollIntoView-BueMOyGp.cjs +1 -0
  182. package/search-field/index.cjs +1 -1
  183. package/search-field/index.js +1 -1
  184. package/select/index.cjs +1 -1
  185. package/select/index.js +1 -1
  186. package/select/types.d.ts +1 -1
  187. package/select/useMultiSelect.d.ts +2 -2
  188. package/spinner/Spinner.d.ts +5 -1
  189. package/spinner/index.cjs +1 -1
  190. package/spinner/index.js +1 -1
  191. package/table/index.cjs +1 -1
  192. package/table/index.js +1 -1
  193. package/tabs/Tabs.d.ts +2 -9
  194. package/tabs/index.cjs +1 -1
  195. package/tabs/index.d.ts +0 -1
  196. package/tabs/index.js +1 -1
  197. package/tag/index.cjs +1 -1
  198. package/tag/index.js +1 -1
  199. package/text/index.cjs +1 -1
  200. package/text/index.js +1 -1
  201. package/textfield/TextArea.d.ts +3 -2
  202. package/textfield/TextField.d.ts +3 -2
  203. package/textfield/index.cjs +1 -1
  204. package/textfield/index.js +1 -1
  205. package/toast/index.cjs +1 -1
  206. package/toast/index.js +1 -1
  207. package/toggle-button/index.cjs +1 -1
  208. package/toggle-button/index.js +1 -1
  209. package/tooltip/index.cjs +1 -1
  210. package/tooltip/index.js +1 -1
  211. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  212. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  213. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  214. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  215. package/{useField-sSWPm-He.js → useField-BhJ9dM2g.js} +1 -1
  216. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  217. package/{useFilter-DHcouDzv.js → useFilter-BdUU-HQZ.js} +1 -1
  218. package/{useFilter-DlZLqsJD.cjs → useFilter-R2IPvbS8.cjs} +1 -1
  219. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  220. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  221. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  222. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  223. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  224. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  225. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  226. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  227. package/useHasTabbableChild-CIZGg_iG.cjs +1 -0
  228. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-CnpSoDuJ.js} +1 -1
  229. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  230. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-DPiqOr_Z.js} +2 -2
  231. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  232. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  233. package/{useListState-BdC308Sq.cjs → useListState-DBawAMhF.cjs} +1 -1
  234. package/{useListState-D2yPZrFZ.js → useListState-PZF3ahpk.js} +1 -1
  235. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  236. package/usePress-DmU79HEg.cjs +7 -0
  237. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-BLRBEJC7.js} +1 -1
  238. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-CNETmoj5.cjs} +1 -1
  239. package/{useTextField-DjxrmW7d.js → useTextField-B8pM0p6X.js} +4 -4
  240. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  241. package/utils/types.d.ts +5 -0
  242. package/utils-CtICjCYt.cjs +1 -0
  243. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  244. package/utils-DRIRjPUS.cjs +1 -0
  245. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  246. package/AccordionItem-BJw5IKe0.js +0 -334
  247. package/AccordionItem-DhMimhYo.cjs +0 -1
  248. package/Button-BTX5G3le.cjs +0 -1
  249. package/Checkbox-D-CFY6QF.cjs +0 -1
  250. package/Collection-DaZzboRu.cjs +0 -1
  251. package/ComboBox-C4NybZ32.cjs +0 -1
  252. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  253. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  254. package/Dialog-DLnopN3Z.js +0 -237
  255. package/Dialog-DNu42oLH.cjs +0 -1
  256. package/Dialog-w6EBWT__.cjs +0 -1
  257. package/FocusScope-Dv0F-mG2.cjs +0 -1
  258. package/Group-C2hEIsGV.js +0 -45
  259. package/Group-cuyk9Hsy.cjs +0 -1
  260. package/Layout-CVnlO10z.cjs +0 -16
  261. package/ListBox-Bx9M5vqb.cjs +0 -1
  262. package/ListBoxSection-kujY2gUl.cjs +0 -1
  263. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  264. package/RSPContexts-D8hmBfGm.cjs +0 -1
  265. package/Radio-D6KNkSA2.js +0 -333
  266. package/Radio-DsVsutMH.cjs +0 -1
  267. package/Select-D9h_RQ2k.cjs +0 -1
  268. package/Select-Dc6y8gPR.js +0 -654
  269. package/SelectionManager-D-4ThfPZ.js +0 -1043
  270. package/SelectionManager-FYrDfe5v.cjs +0 -1
  271. package/Spinner-CTha503N.js +0 -47
  272. package/Spinner-DKQ9_SQB.cjs +0 -6
  273. package/TabList-BhC96APe.cjs +0 -1
  274. package/TabList-P5HnizZt.js +0 -393
  275. package/Table-BB8Ag5_3.cjs +0 -16
  276. package/Tag-D2vh0KRD.js +0 -765
  277. package/Tag-D32MGLjS.cjs +0 -1
  278. package/TextField-4xfAzdBI.cjs +0 -1
  279. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  280. package/scrollIntoView-ClEACHUk.js +0 -57
  281. package/scrollIntoView-DRSoJp89.cjs +0 -1
  282. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  283. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  284. package/useObserveElement-BdI4zgd7.js +0 -27
  285. package/useObserveElement-BzEr5D32.cjs +0 -1
  286. package/usePress-Dj3t18Pf.cjs +0 -7
  287. package/utils-I-LGXGYH.cjs +0 -1
  288. package/utils-cBvgilDa.cjs +0 -1
  289. package/variables-B3KEYyhW.cjs +0 -1
  290. package/variables-DzXcMW2k.js +0 -5
@@ -1,14 +1,16 @@
1
- import { i as j, e as D, c as T, b as $, j as B, k as G, d as S } from "./utils-CrT5PVBA.js";
2
- import { $ as m } from "./mergeProps-Ct8m5-xW.js";
3
- import { d as V, e as Q, f as X } from "./useHover-zCCNtF6g.js";
4
- import { b as Y } from "./useFocusable-CCh54GIw.js";
5
- import R, { useRef as _, useContext as Z, useMemo as L, useEffect as q } from "react";
6
- class O {
1
+ import { i as ie, e as B, c as x, b as $, j as le, k as ae, d as L } from "./utils-Dxh86KaB.js";
2
+ import { $ as g } from "./mergeProps-Ct8m5-xW.js";
3
+ import { f as ce, e as ue, g as de } from "./useHover-DkC5FyNd.js";
4
+ import { b as se } from "./useFocusable-BJj-Bkig.js";
5
+ import y, { useRef as _, useContext as X, useMemo as K, useEffect as Y, createContext as Q, forwardRef as Z, useState as fe } from "react";
6
+ import { b as be, a as he, $ as ve } from "./utils-D2iKpxcZ.js";
7
+ import { flushSync as J } from "react-dom";
8
+ class Ne {
7
9
  get currentNode() {
8
10
  return this._currentNode;
9
11
  }
10
12
  set currentNode(e) {
11
- if (!D(this.root, e)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
13
+ if (!B(this.root, e)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
12
14
  const t = [];
13
15
  let n = e, o = e;
14
16
  for (this._currentNode = e; n && n !== this.root; ) if (n.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
@@ -27,7 +29,7 @@ class O {
27
29
  }
28
30
  firstChild() {
29
31
  let e = this.currentNode, t = this.nextNode();
30
- return D(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
32
+ return B(e, t) ? (t && (this.currentNode = t), t) : (this.currentNode = e, null);
31
33
  }
32
34
  lastChild() {
33
35
  let t = this._walkerStack[0].lastChild();
@@ -100,12 +102,12 @@ class O {
100
102
  constructor(e, t, n, o) {
101
103
  this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (a) => {
102
104
  if (a.nodeType === Node.ELEMENT_NODE) {
103
- const f = a.shadowRoot;
104
- if (f) {
105
- const u = this._doc.createTreeWalker(f, this.whatToShow, {
105
+ const b = a.shadowRoot;
106
+ if (b) {
107
+ const c = this._doc.createTreeWalker(b, this.whatToShow, {
106
108
  acceptNode: this._acceptNode
107
109
  });
108
- return this._walkerStack.unshift(u), NodeFilter.FILTER_ACCEPT;
110
+ return this._walkerStack.unshift(c), NodeFilter.FILTER_ACCEPT;
109
111
  } else {
110
112
  var i;
111
113
  if (typeof this.filter == "function") return this.filter(a);
@@ -124,103 +126,103 @@ class O {
124
126
  }
125
127
  }
126
128
  }
127
- function ee(r, e, t, n) {
128
- return j() ? new O(r, e, t, n) : r.createTreeWalker(e, t, n);
129
+ function pe(r, e, t, n) {
130
+ return ie() ? new Ne(r, e, t, n) : r.createTreeWalker(e, t, n);
129
131
  }
130
- const W = /* @__PURE__ */ R.createContext(null), M = "react-aria-focus-scope-restore";
132
+ const H = /* @__PURE__ */ y.createContext(null), W = "react-aria-focus-scope-restore";
131
133
  let v = null;
132
- function fe(r) {
133
- let { children: e, contain: t, restoreFocus: n, autoFocus: o } = r, l = _(null), a = _(null), i = _([]), { parentNode: f } = Z(W) || {}, u = L(() => new K({
134
+ function Ae(r) {
135
+ let { children: e, contain: t, restoreFocus: n, autoFocus: o } = r, l = _(null), a = _(null), i = _([]), { parentNode: b } = X(H) || {}, c = K(() => new z({
134
136
  scopeRef: i
135
137
  }), [
136
138
  i
137
139
  ]);
138
- m(() => {
139
- let s = f || N.root;
140
- if (N.getTreeNode(s.scopeRef) && v && !y(v, s.scopeRef)) {
141
- let b = N.getTreeNode(v);
142
- b && (s = b);
140
+ g(() => {
141
+ let f = b || N.root;
142
+ if (N.getTreeNode(f.scopeRef) && v && !I(v, f.scopeRef)) {
143
+ let s = N.getTreeNode(v);
144
+ s && (f = s);
143
145
  }
144
- s.addChild(u), N.addNode(u);
146
+ f.addChild(c), N.addNode(c);
145
147
  }, [
146
- u,
147
- f
148
- ]), m(() => {
149
- let s = N.getTreeNode(i);
150
- s && (s.contain = !!t);
148
+ c,
149
+ b
150
+ ]), g(() => {
151
+ let f = N.getTreeNode(i);
152
+ f && (f.contain = !!t);
151
153
  }, [
152
154
  t
153
- ]), m(() => {
154
- var s;
155
- let b = (s = l.current) === null || s === void 0 ? void 0 : s.nextSibling, h = [], x = (C) => C.stopPropagation();
156
- for (; b && b !== a.current; )
157
- h.push(b), b.addEventListener(M, x), b = b.nextSibling;
155
+ ]), g(() => {
156
+ var f;
157
+ let s = (f = l.current) === null || f === void 0 ? void 0 : f.nextSibling, h = [], T = (S) => S.stopPropagation();
158
+ for (; s && s !== a.current; )
159
+ h.push(s), s.addEventListener(W, T), s = s.nextSibling;
158
160
  return i.current = h, () => {
159
- for (let C of h) C.removeEventListener(M, x);
161
+ for (let S of h) S.removeEventListener(W, T);
160
162
  };
161
163
  }, [
162
164
  e
163
- ]), ie(i, n, t), ne(i, t), le(i, n, t), oe(i, o), q(() => {
164
- const s = T($(i.current ? i.current[0] : void 0));
165
- let b = null;
166
- if (w(s, i.current)) {
167
- for (let h of N.traverse()) h.scopeRef && w(s, h.scopeRef.current) && (b = h);
168
- b === N.getTreeNode(i) && (v = b.scopeRef);
165
+ ]), Te(i, n, t), Ee(i, t), ge(i, n, t), we(i, o), Y(() => {
166
+ const f = x($(i.current ? i.current[0] : void 0));
167
+ let s = null;
168
+ if (w(f, i.current)) {
169
+ for (let h of N.traverse()) h.scopeRef && w(f, h.scopeRef.current) && (s = h);
170
+ s === N.getTreeNode(i) && (v = s.scopeRef);
169
171
  }
170
172
  }, [
171
173
  i
172
- ]), m(() => () => {
173
- var s, b, h;
174
- let x = (h = (b = N.getTreeNode(i)) === null || b === void 0 || (s = b.parent) === null || s === void 0 ? void 0 : s.scopeRef) !== null && h !== void 0 ? h : null;
175
- (i === v || y(i, v)) && (!x || N.getTreeNode(x)) && (v = x), N.removeTreeNode(i);
174
+ ]), g(() => () => {
175
+ var f, s, h;
176
+ let T = (h = (s = N.getTreeNode(i)) === null || s === void 0 || (f = s.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && h !== void 0 ? h : null;
177
+ (i === v || I(i, v)) && (!T || N.getTreeNode(T)) && (v = T), N.removeTreeNode(i);
176
178
  }, [
177
179
  i
178
180
  ]);
179
- let d = L(() => te(i), []), c = L(() => ({
181
+ let d = K(() => $e(i), []), u = K(() => ({
180
182
  focusManager: d,
181
- parentNode: u
183
+ parentNode: c
182
184
  }), [
183
- u,
185
+ c,
184
186
  d
185
187
  ]);
186
- return /* @__PURE__ */ R.createElement(W.Provider, {
187
- value: c
188
- }, /* @__PURE__ */ R.createElement("span", {
188
+ return /* @__PURE__ */ y.createElement(H.Provider, {
189
+ value: u
190
+ }, /* @__PURE__ */ y.createElement("span", {
189
191
  "data-focus-scope-start": !0,
190
192
  hidden: !0,
191
193
  ref: l
192
- }), e, /* @__PURE__ */ R.createElement("span", {
194
+ }), e, /* @__PURE__ */ y.createElement("span", {
193
195
  "data-focus-scope-end": !0,
194
196
  hidden: !0,
195
197
  ref: a
196
198
  }));
197
199
  }
198
- function te(r) {
200
+ function $e(r) {
199
201
  return {
200
202
  focusNext(e = {}) {
201
203
  let t = r.current, { from: n, tabbable: o, wrap: l, accept: a } = e;
202
204
  var i;
203
- let f = n || T($((i = t[0]) !== null && i !== void 0 ? i : void 0)), u = t[0].previousElementSibling, d = g(t), c = E(d, {
205
+ let b = n || x($((i = t[0]) !== null && i !== void 0 ? i : void 0)), c = t[0].previousElementSibling, d = R(t), u = E(d, {
204
206
  tabbable: o,
205
207
  accept: a
206
208
  }, t);
207
- c.currentNode = w(f, t) ? f : u;
208
- let s = c.nextNode();
209
- return !s && l && (c.currentNode = u, s = c.nextNode()), s && p(s, !0), s;
209
+ u.currentNode = w(b, t) ? b : c;
210
+ let f = u.nextNode();
211
+ return !f && l && (u.currentNode = c, f = u.nextNode()), f && p(f, !0), f;
210
212
  },
211
213
  focusPrevious(e = {}) {
212
214
  let t = r.current, { from: n, tabbable: o, wrap: l, accept: a } = e;
213
215
  var i;
214
- let f = n || T($((i = t[0]) !== null && i !== void 0 ? i : void 0)), u = t[t.length - 1].nextElementSibling, d = g(t), c = E(d, {
216
+ let b = n || x($((i = t[0]) !== null && i !== void 0 ? i : void 0)), c = t[t.length - 1].nextElementSibling, d = R(t), u = E(d, {
215
217
  tabbable: o,
216
218
  accept: a
217
219
  }, t);
218
- c.currentNode = w(f, t) ? f : u;
219
- let s = c.previousNode();
220
- return !s && l && (c.currentNode = u, s = c.previousNode()), s && p(s, !0), s;
220
+ u.currentNode = w(b, t) ? b : c;
221
+ let f = u.previousNode();
222
+ return !f && l && (u.currentNode = c, f = u.previousNode()), f && p(f, !0), f;
221
223
  },
222
224
  focusFirst(e = {}) {
223
- let t = r.current, { tabbable: n, accept: o } = e, l = g(t), a = E(l, {
225
+ let t = r.current, { tabbable: n, accept: o } = e, l = R(t), a = E(l, {
224
226
  tabbable: n,
225
227
  accept: o
226
228
  }, t);
@@ -229,7 +231,7 @@ function te(r) {
229
231
  return i && p(i, !0), i;
230
232
  },
231
233
  focusLast(e = {}) {
232
- let t = r.current, { tabbable: n, accept: o } = e, l = g(t), a = E(l, {
234
+ let t = r.current, { tabbable: n, accept: o } = e, l = R(t), a = E(l, {
233
235
  tabbable: n,
234
236
  accept: o
235
237
  }, t);
@@ -239,10 +241,10 @@ function te(r) {
239
241
  }
240
242
  };
241
243
  }
242
- function g(r) {
244
+ function R(r) {
243
245
  return r[0].parentElement;
244
246
  }
245
- function F(r) {
247
+ function A(r) {
246
248
  let e = N.getTreeNode(v);
247
249
  for (; e && e.scopeRef !== r; ) {
248
250
  if (e.contain) return !1;
@@ -250,7 +252,7 @@ function F(r) {
250
252
  }
251
253
  return !0;
252
254
  }
253
- function re(r) {
255
+ function me(r) {
254
256
  if (r.checked) return !0;
255
257
  let e = [];
256
258
  if (!r.form) e = [
@@ -265,54 +267,54 @@ function re(r) {
265
267
  }
266
268
  return e ? !e.some((l) => l.checked) : !1;
267
269
  }
268
- function ne(r, e) {
270
+ function Ee(r, e) {
269
271
  let t = _(void 0), n = _(void 0);
270
- m(() => {
272
+ g(() => {
271
273
  let o = r.current;
272
274
  if (!e) {
273
275
  n.current && (cancelAnimationFrame(n.current), n.current = void 0);
274
276
  return;
275
277
  }
276
278
  const l = $(o ? o[0] : void 0);
277
- let a = (u) => {
278
- if (u.key !== "Tab" || u.altKey || u.ctrlKey || u.metaKey || !F(r) || u.isComposing) return;
279
- let d = T(l), c = r.current;
280
- if (!c || !w(d, c)) return;
281
- let s = g(c), b = E(s, {
279
+ let a = (c) => {
280
+ if (c.key !== "Tab" || c.altKey || c.ctrlKey || c.metaKey || !A(r) || c.isComposing) return;
281
+ let d = x(l), u = r.current;
282
+ if (!u || !w(d, u)) return;
283
+ let f = R(u), s = E(f, {
282
284
  tabbable: !0
283
- }, c);
285
+ }, u);
284
286
  if (!d) return;
285
- b.currentNode = d;
286
- let h = u.shiftKey ? b.previousNode() : b.nextNode();
287
- h || (b.currentNode = u.shiftKey ? c[c.length - 1].nextElementSibling : c[0].previousElementSibling, h = u.shiftKey ? b.previousNode() : b.nextNode()), u.preventDefault(), h && p(h, !0);
288
- }, i = (u) => {
289
- (!v || y(v, r)) && w(S(u), r.current) ? (v = r, t.current = S(u)) : F(r) && !k(S(u), r) ? t.current ? t.current.focus() : v && v.current && A(v.current) : F(r) && (t.current = S(u));
290
- }, f = (u) => {
287
+ s.currentNode = d;
288
+ let h = c.shiftKey ? s.previousNode() : s.nextNode();
289
+ h || (s.currentNode = c.shiftKey ? u[u.length - 1].nextElementSibling : u[0].previousElementSibling, h = c.shiftKey ? s.previousNode() : s.nextNode()), c.preventDefault(), h && p(h, !0);
290
+ }, i = (c) => {
291
+ (!v || I(v, r)) && w(L(c), r.current) ? (v = r, t.current = L(c)) : A(r) && !k(L(c), r) ? t.current ? t.current.focus() : v && v.current && q(v.current) : A(r) && (t.current = L(c));
292
+ }, b = (c) => {
291
293
  n.current && cancelAnimationFrame(n.current), n.current = requestAnimationFrame(() => {
292
- let d = X(), c = (d === "virtual" || d === null) && V() && Q(), s = T(l);
293
- if (!c && s && F(r) && !k(s, r)) {
294
+ let d = de(), u = (d === "virtual" || d === null) && ce() && ue(), f = x(l);
295
+ if (!u && f && A(r) && !k(f, r)) {
294
296
  v = r;
295
- let h = S(u);
297
+ let h = L(c);
296
298
  if (h && h.isConnected) {
297
- var b;
298
- t.current = h, (b = t.current) === null || b === void 0 || b.focus();
299
- } else v.current && A(v.current);
299
+ var s;
300
+ t.current = h, (s = t.current) === null || s === void 0 || s.focus();
301
+ } else v.current && q(v.current);
300
302
  }
301
303
  });
302
304
  };
303
- return l.addEventListener("keydown", a, !1), l.addEventListener("focusin", i, !1), o == null || o.forEach((u) => u.addEventListener("focusin", i, !1)), o == null || o.forEach((u) => u.addEventListener("focusout", f, !1)), () => {
304
- l.removeEventListener("keydown", a, !1), l.removeEventListener("focusin", i, !1), o == null || o.forEach((u) => u.removeEventListener("focusin", i, !1)), o == null || o.forEach((u) => u.removeEventListener("focusout", f, !1));
305
+ return l.addEventListener("keydown", a, !1), l.addEventListener("focusin", i, !1), o == null || o.forEach((c) => c.addEventListener("focusin", i, !1)), o == null || o.forEach((c) => c.addEventListener("focusout", b, !1)), () => {
306
+ l.removeEventListener("keydown", a, !1), l.removeEventListener("focusin", i, !1), o == null || o.forEach((c) => c.removeEventListener("focusin", i, !1)), o == null || o.forEach((c) => c.removeEventListener("focusout", b, !1));
305
307
  };
306
308
  }, [
307
309
  r,
308
310
  e
309
- ]), m(() => () => {
311
+ ]), g(() => () => {
310
312
  n.current && cancelAnimationFrame(n.current);
311
313
  }, [
312
314
  n
313
315
  ]);
314
316
  }
315
- function J(r) {
317
+ function O(r) {
316
318
  return k(r);
317
319
  }
318
320
  function w(r, e) {
@@ -324,10 +326,10 @@ function k(r, e = null) {
324
326
  if (t && w(r, t.current)) return !0;
325
327
  return !1;
326
328
  }
327
- function be(r) {
329
+ function Ie(r) {
328
330
  return k(r, v);
329
331
  }
330
- function y(r, e) {
332
+ function I(r, e) {
331
333
  var t;
332
334
  let n = (t = N.getTreeNode(e)) === null || t === void 0 ? void 0 : t.parent;
333
335
  for (; n; ) {
@@ -338,7 +340,7 @@ function y(r, e) {
338
340
  }
339
341
  function p(r, e = !1) {
340
342
  if (r != null && !e) try {
341
- Y(r);
343
+ se(r);
342
344
  } catch {
343
345
  }
344
346
  else if (r != null) try {
@@ -346,40 +348,40 @@ function p(r, e = !1) {
346
348
  } catch {
347
349
  }
348
350
  }
349
- function H(r, e = !0) {
350
- let t = r[0].previousElementSibling, n = g(r), o = E(n, {
351
+ function ee(r, e = !0) {
352
+ let t = r[0].previousElementSibling, n = R(r), o = E(n, {
351
353
  tabbable: e
352
354
  }, r);
353
355
  o.currentNode = t;
354
356
  let l = o.nextNode();
355
- return e && !l && (n = g(r), o = E(n, {
357
+ return e && !l && (n = R(r), o = E(n, {
356
358
  tabbable: !1
357
359
  }, r), o.currentNode = t, l = o.nextNode()), l;
358
360
  }
359
- function A(r, e = !0) {
360
- p(H(r, e));
361
+ function q(r, e = !0) {
362
+ p(ee(r, e));
361
363
  }
362
- function oe(r, e) {
363
- const t = R.useRef(e);
364
- q(() => {
364
+ function we(r, e) {
365
+ const t = y.useRef(e);
366
+ Y(() => {
365
367
  if (t.current) {
366
368
  v = r;
367
369
  const n = $(r.current ? r.current[0] : void 0);
368
- !w(T(n), v.current) && r.current && A(r.current);
370
+ !w(x(n), v.current) && r.current && q(r.current);
369
371
  }
370
372
  t.current = !1;
371
373
  }, [
372
374
  r
373
375
  ]);
374
376
  }
375
- function ie(r, e, t) {
376
- m(() => {
377
+ function Te(r, e, t) {
378
+ g(() => {
377
379
  if (e || t) return;
378
380
  let n = r.current;
379
381
  const o = $(n ? n[0] : void 0);
380
382
  let l = (a) => {
381
- let i = S(a);
382
- w(i, r.current) ? v = r : J(i) || (v = null);
383
+ let i = L(a);
384
+ w(i, r.current) ? v = r : O(i) || (v = null);
383
385
  };
384
386
  return o.addEventListener("focusin", l, !1), n == null || n.forEach((a) => a.addEventListener("focusin", l, !1)), () => {
385
387
  o.removeEventListener("focusin", l, !1), n == null || n.forEach((a) => a.removeEventListener("focusin", l, !1));
@@ -390,7 +392,7 @@ function ie(r, e, t) {
390
392
  t
391
393
  ]);
392
394
  }
393
- function z(r) {
395
+ function j(r) {
394
396
  let e = N.getTreeNode(v);
395
397
  for (; e && e.scopeRef !== r; ) {
396
398
  if (e.nodeToRestore) return !1;
@@ -398,14 +400,14 @@ function z(r) {
398
400
  }
399
401
  return (e == null ? void 0 : e.scopeRef) === r;
400
402
  }
401
- function le(r, e, t) {
402
- const n = _(typeof document < "u" ? T($(r.current ? r.current[0] : void 0)) : null);
403
- m(() => {
403
+ function ge(r, e, t) {
404
+ const n = _(typeof document < "u" ? x($(r.current ? r.current[0] : void 0)) : null);
405
+ g(() => {
404
406
  let o = r.current;
405
407
  const l = $(o ? o[0] : void 0);
406
408
  if (!e || t) return;
407
409
  let a = () => {
408
- (!v || y(v, r)) && w(T(l), r.current) && (v = r);
410
+ (!v || I(v, r)) && w(x(l), r.current) && (v = r);
409
411
  };
410
412
  return l.addEventListener("focusin", a, !1), o == null || o.forEach((i) => i.addEventListener("focusin", a, !1)), () => {
411
413
  l.removeEventListener("focusin", a, !1), o == null || o.forEach((i) => i.removeEventListener("focusin", a, !1));
@@ -413,26 +415,26 @@ function le(r, e, t) {
413
415
  }, [
414
416
  r,
415
417
  t
416
- ]), m(() => {
418
+ ]), g(() => {
417
419
  const o = $(r.current ? r.current[0] : void 0);
418
420
  if (!e) return;
419
421
  let l = (a) => {
420
- if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !F(r) || a.isComposing) return;
422
+ if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !A(r) || a.isComposing) return;
421
423
  let i = o.activeElement;
422
- if (!k(i, r) || !z(r)) return;
423
- let f = N.getTreeNode(r);
424
- if (!f) return;
425
- let u = f.nodeToRestore, d = E(o.body, {
424
+ if (!k(i, r) || !j(r)) return;
425
+ let b = N.getTreeNode(r);
426
+ if (!b) return;
427
+ let c = b.nodeToRestore, d = E(o.body, {
426
428
  tabbable: !0
427
429
  });
428
430
  d.currentNode = i;
429
- let c = a.shiftKey ? d.previousNode() : d.nextNode();
430
- if ((!u || !u.isConnected || u === o.body) && (u = void 0, f.nodeToRestore = void 0), (!c || !k(c, r)) && u) {
431
- d.currentNode = u;
431
+ let u = a.shiftKey ? d.previousNode() : d.nextNode();
432
+ if ((!c || !c.isConnected || c === o.body) && (c = void 0, b.nodeToRestore = void 0), (!u || !k(u, r)) && c) {
433
+ d.currentNode = c;
432
434
  do
433
- c = a.shiftKey ? d.previousNode() : d.nextNode();
434
- while (k(c, r));
435
- a.preventDefault(), a.stopPropagation(), c ? p(c, !0) : J(u) ? p(u, !0) : i.blur();
435
+ u = a.shiftKey ? d.previousNode() : d.nextNode();
436
+ while (k(u, r));
437
+ a.preventDefault(), a.stopPropagation(), u ? p(u, !0) : O(c) ? p(c, !0) : i.blur();
436
438
  }
437
439
  };
438
440
  return t || o.addEventListener("keydown", l, !0), () => {
@@ -442,7 +444,7 @@ function le(r, e, t) {
442
444
  r,
443
445
  e,
444
446
  t
445
- ]), m(() => {
447
+ ]), g(() => {
446
448
  const o = $(r.current ? r.current[0] : void 0);
447
449
  if (!e) return;
448
450
  let l = N.getTreeNode(r);
@@ -451,26 +453,26 @@ function le(r, e, t) {
451
453
  return l.nodeToRestore = (a = n.current) !== null && a !== void 0 ? a : void 0, () => {
452
454
  let i = N.getTreeNode(r);
453
455
  if (!i) return;
454
- let f = i.nodeToRestore, u = T(o);
455
- if (e && f && (u && k(u, r) || u === o.body && z(r))) {
456
+ let b = i.nodeToRestore, c = x(o);
457
+ if (e && b && (c && k(c, r) || c === o.body && j(r))) {
456
458
  let d = N.clone();
457
459
  requestAnimationFrame(() => {
458
460
  if (o.activeElement === o.body) {
459
- let c = d.getTreeNode(r);
460
- for (; c; ) {
461
- if (c.nodeToRestore && c.nodeToRestore.isConnected) {
462
- U(c.nodeToRestore);
461
+ let u = d.getTreeNode(r);
462
+ for (; u; ) {
463
+ if (u.nodeToRestore && u.nodeToRestore.isConnected) {
464
+ G(u.nodeToRestore);
463
465
  return;
464
466
  }
465
- c = c.parent;
467
+ u = u.parent;
466
468
  }
467
- for (c = d.getTreeNode(r); c; ) {
468
- if (c.scopeRef && c.scopeRef.current && N.getTreeNode(c.scopeRef)) {
469
- let s = H(c.scopeRef.current, !0);
470
- U(s);
469
+ for (u = d.getTreeNode(r); u; ) {
470
+ if (u.scopeRef && u.scopeRef.current && N.getTreeNode(u.scopeRef)) {
471
+ let f = ee(u.scopeRef.current, !0);
472
+ G(f);
471
473
  return;
472
474
  }
473
- c = c.parent;
475
+ u = u.parent;
474
476
  }
475
477
  }
476
478
  });
@@ -482,53 +484,53 @@ function le(r, e, t) {
482
484
  e
483
485
  ]);
484
486
  }
485
- function U(r) {
486
- r.dispatchEvent(new CustomEvent(M, {
487
+ function G(r) {
488
+ r.dispatchEvent(new CustomEvent(W, {
487
489
  bubbles: !0,
488
490
  cancelable: !0
489
491
  })) && p(r);
490
492
  }
491
493
  function E(r, e, t) {
492
- let n = e != null && e.tabbable ? B : G, o = (r == null ? void 0 : r.nodeType) === Node.ELEMENT_NODE ? r : null, l = $(o), a = ee(l, r || l, NodeFilter.SHOW_ELEMENT, {
494
+ let n = e != null && e.tabbable ? le : ae, o = (r == null ? void 0 : r.nodeType) === Node.ELEMENT_NODE ? r : null, l = $(o), a = pe(l, r || l, NodeFilter.SHOW_ELEMENT, {
493
495
  acceptNode(i) {
494
- var f;
495
- return !(e == null || (f = e.from) === null || f === void 0) && f.contains(i) || e != null && e.tabbable && i.tagName === "INPUT" && i.getAttribute("type") === "radio" && (!re(i) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === i.name) ? NodeFilter.FILTER_REJECT : n(i) && (!t || w(i, t)) && (!(e != null && e.accept) || e.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
496
+ var b;
497
+ return !(e == null || (b = e.from) === null || b === void 0) && b.contains(i) || e != null && e.tabbable && i.tagName === "INPUT" && i.getAttribute("type") === "radio" && (!me(i) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === i.name) ? NodeFilter.FILTER_REJECT : n(i) && (!t || w(i, t)) && (!(e != null && e.accept) || e.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
496
498
  }
497
499
  });
498
500
  return e != null && e.from && (a.currentNode = e.from), a;
499
501
  }
500
- function ve(r, e = {}) {
502
+ function Pe(r, e = {}) {
501
503
  return {
502
504
  focusNext(t = {}) {
503
505
  let n = r.current;
504
506
  if (!n) return null;
505
- let { from: o, tabbable: l = e.tabbable, wrap: a = e.wrap, accept: i = e.accept } = t, f = o || T($(n)), u = E(n, {
507
+ let { from: o, tabbable: l = e.tabbable, wrap: a = e.wrap, accept: i = e.accept } = t, b = o || x($(n)), c = E(n, {
506
508
  tabbable: l,
507
509
  accept: i
508
510
  });
509
- n.contains(f) && (u.currentNode = f);
510
- let d = u.nextNode();
511
- return !d && a && (u.currentNode = n, d = u.nextNode()), d && p(d, !0), d;
511
+ n.contains(b) && (c.currentNode = b);
512
+ let d = c.nextNode();
513
+ return !d && a && (c.currentNode = n, d = c.nextNode()), d && p(d, !0), d;
512
514
  },
513
515
  focusPrevious(t = e) {
514
516
  let n = r.current;
515
517
  if (!n) return null;
516
- let { from: o, tabbable: l = e.tabbable, wrap: a = e.wrap, accept: i = e.accept } = t, f = o || T($(n)), u = E(n, {
518
+ let { from: o, tabbable: l = e.tabbable, wrap: a = e.wrap, accept: i = e.accept } = t, b = o || x($(n)), c = E(n, {
517
519
  tabbable: l,
518
520
  accept: i
519
521
  });
520
- if (n.contains(f)) u.currentNode = f;
522
+ if (n.contains(b)) c.currentNode = b;
521
523
  else {
522
- let c = I(u);
523
- return c && p(c, !0), c ?? null;
524
+ let u = D(c);
525
+ return u && p(u, !0), u ?? null;
524
526
  }
525
- let d = u.previousNode();
527
+ let d = c.previousNode();
526
528
  if (!d && a) {
527
- u.currentNode = n;
528
- let c = I(u);
529
- if (!c)
529
+ c.currentNode = n;
530
+ let u = D(c);
531
+ if (!u)
530
532
  return null;
531
- d = c;
533
+ d = u;
532
534
  }
533
535
  return d && p(d, !0), d ?? null;
534
536
  },
@@ -547,19 +549,19 @@ function ve(r, e = {}) {
547
549
  let { tabbable: o = e.tabbable, accept: l = e.accept } = t, a = E(n, {
548
550
  tabbable: o,
549
551
  accept: l
550
- }), i = I(a);
552
+ }), i = D(a);
551
553
  return i && p(i, !0), i ?? null;
552
554
  }
553
555
  };
554
556
  }
555
- function I(r) {
557
+ function D(r) {
556
558
  let e, t;
557
559
  do
558
560
  t = r.lastChild(), t && (e = t);
559
561
  while (t);
560
562
  return e;
561
563
  }
562
- class P {
564
+ class U {
563
565
  get size() {
564
566
  return this.fastMap.size;
565
567
  }
@@ -569,7 +571,7 @@ class P {
569
571
  addTreeNode(e, t, n) {
570
572
  let o = this.fastMap.get(t ?? null);
571
573
  if (!o) return;
572
- let l = new K({
574
+ let l = new z({
573
575
  scopeRef: e
574
576
  });
575
577
  o.addChild(l), l.parent = o, this.fastMap.set(e, l), n && (l.nodeToRestore = n);
@@ -592,18 +594,18 @@ class P {
592
594
  }
593
595
  clone() {
594
596
  var e;
595
- let t = new P();
597
+ let t = new U();
596
598
  var n;
597
599
  for (let o of this.traverse()) t.addTreeNode(o.scopeRef, (n = (e = o.parent) === null || e === void 0 ? void 0 : e.scopeRef) !== null && n !== void 0 ? n : null, o.nodeToRestore);
598
600
  return t;
599
601
  }
600
602
  constructor() {
601
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new K({
603
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new z({
602
604
  scopeRef: null
603
605
  }), this.fastMap.set(null, this.root);
604
606
  }
605
607
  }
606
- class K {
608
+ class z {
607
609
  addChild(e) {
608
610
  this.children.add(e), e.parent = this;
609
611
  }
@@ -614,10 +616,99 @@ class K {
614
616
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
615
617
  }
616
618
  }
617
- let N = new P();
619
+ let N = new U();
620
+ const te = /* @__PURE__ */ Q(null);
621
+ function Me(r) {
622
+ let e = _({});
623
+ return /* @__PURE__ */ y.createElement(te.Provider, {
624
+ value: e
625
+ }, r.children);
626
+ }
627
+ const xe = /* @__PURE__ */ Z(function(e, t) {
628
+ let { name: n, isVisible: o = !0, children: l, className: a, style: i, ...b } = e, [c, d] = fe(o ? "visible" : "hidden"), u = X(te);
629
+ if (!u) throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");
630
+ o && c === "hidden" && d("visible"), t = be(t), g(() => {
631
+ let s = t.current, h = u.current, T = h[n], S = null;
632
+ if (s && o && T) {
633
+ d("visible");
634
+ let F = s.getAnimations(), P = T.style.map(([m, M]) => {
635
+ let re = s.style[m];
636
+ if (m === "translate") {
637
+ let V = T.rect, C = s.getBoundingClientRect(), ne = V.left - (C == null ? void 0 : C.left), oe = V.top - (C == null ? void 0 : C.top);
638
+ s.style.translate = `${ne}px ${oe}px`;
639
+ } else s.style[m] = M;
640
+ return [
641
+ m,
642
+ re
643
+ ];
644
+ });
645
+ for (let m of s.getAnimations()) F.includes(m) || m.cancel();
646
+ S = requestAnimationFrame(() => {
647
+ S = null;
648
+ for (let [m, M] of P) s.style[m] = M;
649
+ }), delete h[n];
650
+ } else s && o && !T ? (queueMicrotask(() => J(() => d("entering"))), S = requestAnimationFrame(() => {
651
+ S = null, d("visible");
652
+ })) : s && !o && queueMicrotask(() => {
653
+ h[n] ? (delete h[n], J(() => d("exiting")), Promise.all(s.getAnimations().map((F) => F.finished)).then(() => d("hidden")).catch(() => {
654
+ })) : d("hidden");
655
+ });
656
+ return () => {
657
+ if (S != null && cancelAnimationFrame(S), s && s.isConnected && !s.hasAttribute("data-exiting")) {
658
+ let F = window.getComputedStyle(s);
659
+ if (F.transitionProperty !== "none") {
660
+ let P = F.transitionProperty.split(/\s*,\s*/);
661
+ h[n] = {
662
+ rect: s.getBoundingClientRect(),
663
+ style: P.map((m) => [
664
+ m,
665
+ F[m]
666
+ ])
667
+ };
668
+ }
669
+ }
670
+ };
671
+ }, [
672
+ t,
673
+ u,
674
+ n,
675
+ o
676
+ ]);
677
+ let f = he({
678
+ children: l,
679
+ className: a,
680
+ style: i,
681
+ values: {
682
+ isEntering: c === "entering",
683
+ isExiting: c === "exiting"
684
+ }
685
+ });
686
+ return c === "hidden" ? null : /* @__PURE__ */ y.createElement("div", {
687
+ ...b,
688
+ ...f,
689
+ ref: t,
690
+ "data-entering": c === "entering" || void 0,
691
+ "data-exiting": c === "exiting" || void 0
692
+ });
693
+ }), Se = /* @__PURE__ */ Q({
694
+ isSelected: !1
695
+ }), Ke = /* @__PURE__ */ Z(function(e, t) {
696
+ [e, t] = ve(e, t, Se);
697
+ let { isSelected: n, ...o } = e;
698
+ return /* @__PURE__ */ y.createElement(xe, {
699
+ ...o,
700
+ ref: t,
701
+ className: e.className || "react-aria-SelectionIndicator",
702
+ name: "SelectionIndicator",
703
+ isVisible: n
704
+ });
705
+ });
618
706
  export {
619
707
  E as $,
620
- fe as a,
621
- ve as b,
622
- be as c
708
+ Se as a,
709
+ Ae as b,
710
+ Me as c,
711
+ Pe as d,
712
+ Ke as e,
713
+ Ie as f
623
714
  };