@easypost/easy-ui 1.0.0-alpha.71 → 1.0.0-alpha.73

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 (294) hide show
  1. package/Badge/index.js +14 -14
  2. package/Badge/index.mjs +14 -14
  3. package/Banner/index.js +5 -5
  4. package/Banner/index.mjs +5 -5
  5. package/Button/index.js +1 -1
  6. package/Button/index.mjs +1 -1
  7. package/Button/utilities.d.ts.map +1 -1
  8. package/CHANGELOG.md +15 -0
  9. package/Calendar/index.js +1 -1
  10. package/Calendar/index.mjs +1 -1
  11. package/Card/index.js +1 -1
  12. package/Card/index.mjs +1 -1
  13. package/CheckableCard/index.js +6 -6
  14. package/CheckableCard/index.mjs +6 -6
  15. package/Checkbox/index.js +1 -1
  16. package/Checkbox/index.mjs +1 -1
  17. package/CodeBlock/index.js +17 -17
  18. package/CodeBlock/index.mjs +17 -17
  19. package/CodeSnippet/index.js +1 -1
  20. package/CodeSnippet/index.mjs +1 -1
  21. package/DataGrid/index.js +157 -126
  22. package/DataGrid/index.mjs +151 -120
  23. package/DatePicker/index.js +30 -15
  24. package/DatePicker/index.mjs +31 -16
  25. package/DateRangePicker/index.js +30 -15
  26. package/DateRangePicker/index.mjs +30 -15
  27. package/Drawer/index.js +21 -21
  28. package/Drawer/index.mjs +21 -21
  29. package/DropdownButton/index.js +13 -13
  30. package/DropdownButton/index.mjs +13 -13
  31. package/EmptyStateCard/index.js +8 -8
  32. package/EmptyStateCard/index.mjs +8 -8
  33. package/FocusedProductLayout/index.js +23 -23
  34. package/FocusedProductLayout/index.mjs +23 -23
  35. package/ForgeLayout/index.js +44 -44
  36. package/ForgeLayout/index.mjs +44 -44
  37. package/FormLayout/index.js +5 -5
  38. package/FormLayout/index.mjs +5 -5
  39. package/HorizontalGrid/index.js +1 -1
  40. package/HorizontalGrid/index.mjs +1 -1
  41. package/HorizontalStack/index.js +1 -1
  42. package/HorizontalStack/index.mjs +1 -1
  43. package/Icon/index.js +1 -1
  44. package/Icon/index.mjs +1 -1
  45. package/IconButton/index.js +13 -13
  46. package/IconButton/index.mjs +13 -13
  47. package/InputField/index.js +1 -1
  48. package/InputField/index.mjs +1 -1
  49. package/KebabButton/index.js +1 -1
  50. package/KebabButton/index.mjs +1 -1
  51. package/Menu/index.js +1 -1
  52. package/Menu/index.mjs +1 -1
  53. package/Modal/index.js +23 -23
  54. package/Modal/index.mjs +23 -23
  55. package/MultiSelect/index.js +60 -54
  56. package/MultiSelect/index.mjs +51 -45
  57. package/NexusLayout/index.js +33 -33
  58. package/NexusLayout/index.mjs +33 -33
  59. package/Notification/Notification.d.ts.map +1 -1
  60. package/Notification/index.js +1 -1
  61. package/Notification/index.mjs +1 -1
  62. package/Pagination/index.js +8 -8
  63. package/Pagination/index.mjs +8 -8
  64. package/PillGroup/index.js +1 -1
  65. package/PillGroup/index.mjs +1 -1
  66. package/ProductLayout/index.js +26 -26
  67. package/ProductLayout/index.mjs +26 -26
  68. package/Provider/index.js +2 -2
  69. package/Provider/index.mjs +2 -2
  70. package/RadioButtonGroup/index.js +9 -9
  71. package/RadioButtonGroup/index.mjs +9 -9
  72. package/RadioGroup/index.js +1 -1
  73. package/RadioGroup/index.mjs +1 -1
  74. package/RangeCalendar/index.js +1 -1
  75. package/RangeCalendar/index.mjs +1 -1
  76. package/SearchNav/index.js +29 -29
  77. package/SearchNav/index.mjs +29 -29
  78. package/SectionCard/index.js +7 -7
  79. package/SectionCard/index.mjs +7 -7
  80. package/Select/index.js +5 -5
  81. package/Select/index.mjs +5 -5
  82. package/SelectorErrorTooltip/index.js +1 -1
  83. package/SelectorErrorTooltip/index.mjs +1 -1
  84. package/Spinner/index.js +1 -1
  85. package/Spinner/index.mjs +1 -1
  86. package/SplitToggleCard/index.js +4 -4
  87. package/SplitToggleCard/index.mjs +4 -4
  88. package/Stepper/index.js +1 -1
  89. package/Stepper/index.mjs +1 -1
  90. package/TabNav/index.js +1 -1
  91. package/TabNav/index.mjs +1 -1
  92. package/TabPanels/index.js +16 -12
  93. package/TabPanels/index.mjs +16 -12
  94. package/Tabs/index.js +1 -1
  95. package/Tabs/index.mjs +1 -1
  96. package/Text/index.js +1 -1
  97. package/Text/index.mjs +1 -1
  98. package/TextField/index.js +1 -1
  99. package/TextField/index.mjs +1 -1
  100. package/Textarea/index.js +1 -1
  101. package/Textarea/index.mjs +1 -1
  102. package/Toggle/index.js +1 -1
  103. package/Toggle/index.mjs +1 -1
  104. package/ToggleCard/index.js +2 -2
  105. package/ToggleCard/index.mjs +2 -2
  106. package/Tooltip/index.js +1 -1
  107. package/Tooltip/index.mjs +1 -1
  108. package/UnstyledButton/index.js +1 -1
  109. package/UnstyledButton/index.mjs +1 -1
  110. package/VerticalNav/index.js +29 -29
  111. package/VerticalNav/index.mjs +29 -29
  112. package/VerticalStack/index.js +1 -1
  113. package/VerticalStack/index.mjs +1 -1
  114. package/__chunks__/{Button-Cbv2rnYl.js → Button-DHFTdAxF.js} +19 -19
  115. package/__chunks__/{Button-DHEZ4A2s.mjs → Button-DhaXhFT-.mjs} +7 -10
  116. package/__chunks__/{Button-BoPQ-Fx9.js → Button-E5WMp4Zg.js} +7 -10
  117. package/__chunks__/{Button-DDDdq1jy.mjs → Button-besQ0j6a.mjs} +19 -19
  118. package/__chunks__/{Calendar-6J28aEN6.js → Calendar-C5woWpfH.js} +2 -2
  119. package/__chunks__/{Calendar-IH-Hdju1.mjs → Calendar-p9rHaKwG.mjs} +2 -2
  120. package/__chunks__/{CalendarBase-Cn_m810l.js → CalendarBase-BUa-SUff.js} +30 -30
  121. package/__chunks__/{CalendarBase-NkfY0ZZQ.mjs → CalendarBase-mv9La5tR.mjs} +29 -29
  122. package/__chunks__/{Card-Cfs_61bW.mjs → Card-DR2FXTv6.mjs} +12 -12
  123. package/__chunks__/{Card-BHov7_vu.js → Card-DfhHosdD.js} +12 -12
  124. package/__chunks__/{Checkbox-PjSuOA8S.mjs → Checkbox-B7qn8pJg.mjs} +25 -25
  125. package/__chunks__/{Checkbox-5_dirQJ7.js → Checkbox-BtIjmaiX.js} +25 -25
  126. package/__chunks__/{CodeSnippet--gFmAN9i.js → CodeSnippet-Cp3glUO1.js} +2 -2
  127. package/__chunks__/{CodeSnippet-BvZT69UG.mjs → CodeSnippet-Di6gtbdh.mjs} +2 -2
  128. package/__chunks__/{DatePickerBase-DFxPgoc8.js → DatePickerBase-D4UJlvkz.js} +143 -60
  129. package/__chunks__/{DatePickerBase-B5DTXN8_.mjs → DatePickerBase-nYyQbAs_.mjs} +140 -57
  130. package/__chunks__/{Dialog-CuqmbMC4.js → Dialog-Bn6AgWyj.js} +69 -23
  131. package/__chunks__/{Dialog-D9aIj4DH.mjs → Dialog-CpCJycIv.mjs} +70 -24
  132. package/__chunks__/{FocusScope-Djtxzznf.js → FocusScope-CL3-fUEU.js} +216 -53
  133. package/__chunks__/{FocusScope-CUJV-jWH.mjs → FocusScope-Dg66t-dG.mjs} +208 -45
  134. package/__chunks__/{HelpMenu-D8fqyHN6.mjs → HelpMenu-CLhpjJ6h.mjs} +7 -7
  135. package/__chunks__/{HelpMenu-CnMDuzfD.js → HelpMenu-DyhpQPI8.js} +7 -7
  136. package/__chunks__/{HorizontalGrid-DXgJ4dXw.mjs → HorizontalGrid-7r8FL1aY.mjs} +1 -1
  137. package/__chunks__/{HorizontalGrid-C0WrCjxa.js → HorizontalGrid-CNc8k_zD.js} +1 -1
  138. package/__chunks__/{HorizontalStack-hi_QrrZB.mjs → HorizontalStack-8RcZ4huI.mjs} +1 -1
  139. package/__chunks__/{HorizontalStack-4-woUNq_.js → HorizontalStack-BpcS3ASr.js} +1 -1
  140. package/__chunks__/{Icon-C5tHQyHr.mjs → Icon-Dj1ar_iv.mjs} +2 -2
  141. package/__chunks__/{Icon-YEBBOjcK.js → Icon-lRxgQUlF.js} +2 -2
  142. package/__chunks__/{InputCaption-DiSkdAGZ.mjs → InputCaption-Dh_ynOSC.mjs} +2 -2
  143. package/__chunks__/{InputCaption-DYZkvdQw.js → InputCaption-uusWFQO6.js} +2 -2
  144. package/__chunks__/{InputField-ErsDNt4h.mjs → InputField-Cc1uBSYb.mjs} +7 -7
  145. package/__chunks__/{InputField-ISqVunp5.js → InputField-HW--yCbl.js} +7 -7
  146. package/__chunks__/{InputIcon-MAaUXGCr.mjs → InputIcon-C1dofAnd.mjs} +31 -31
  147. package/__chunks__/{InputIcon-x3fs2oAT.js → InputIcon-cFcmXohD.js} +31 -31
  148. package/__chunks__/{KebabButton-K9NaCoId.js → KebabButton-AUlp_RzU.js} +5 -5
  149. package/__chunks__/{KebabButton-C2L-OC4Y.mjs → KebabButton-BTDy4F9A.mjs} +5 -5
  150. package/__chunks__/{Menu-Bh10IFV1.mjs → Menu-CQghk0Xm.mjs} +44 -30
  151. package/__chunks__/{Menu-BR1eZSkl.js → Menu-CqzvIQht.js} +44 -30
  152. package/__chunks__/{Notification-BYzidkwf.js → Notification-C5yNqG6B.js} +707 -731
  153. package/__chunks__/{Notification-BVk1cbKv.mjs → Notification-j6oXMj8T.mjs} +706 -730
  154. package/__chunks__/{Overlay-zuiAML3I.mjs → Overlay-BtkNBEyr.mjs} +4 -4
  155. package/__chunks__/{Overlay-CwJbrICR.js → Overlay-CwRnK9dm.js} +4 -4
  156. package/__chunks__/{PillGroup-Cw7NxHK1.mjs → PillGroup-DoUZjoCh.mjs} +109 -68
  157. package/__chunks__/{PillGroup-DHGP8AdT.js → PillGroup-Dv0EvyfJ.js} +109 -68
  158. package/__chunks__/{RadioGroup-NZKo5DhW.mjs → RadioGroup-6LaX18PH.mjs} +28 -26
  159. package/__chunks__/{RadioGroup-BRCEngTq.js → RadioGroup-DhkWNcLj.js} +28 -26
  160. package/__chunks__/{RangeCalendar-Ccn11Hi1.js → RangeCalendar-BiJUNPv-.js} +3 -3
  161. package/__chunks__/{RangeCalendar-CbbQ0oO-.mjs → RangeCalendar-DET0Ai4u.mjs} +3 -3
  162. package/__chunks__/{SelectOverlay-QpThRYAk.js → SelectOverlay-Cb0n9TrH.js} +34 -34
  163. package/__chunks__/{SelectOverlay-Od1KotbU.mjs → SelectOverlay-CyK3RTnF.mjs} +34 -34
  164. package/__chunks__/{SelectionManager-DCO_d3m1.mjs → SelectionManager-my6312qq.mjs} +6 -0
  165. package/__chunks__/{SelectionManager-DuX6geJg.js → SelectionManager-px2R7S_e.js} +6 -0
  166. package/__chunks__/{SelectorErrorTooltip-B6N15DSq.js → SelectorErrorTooltip-Dgl_s5PI.js} +4 -4
  167. package/__chunks__/{SelectorErrorTooltip-DZK9TYeX.mjs → SelectorErrorTooltip-ixjoIXDZ.mjs} +4 -4
  168. package/__chunks__/{Spinner-idiilXrq.js → Spinner-C0O2rv-c.js} +7 -7
  169. package/__chunks__/{Spinner-DWNM6vOK.mjs → Spinner-_rvpJRN-.mjs} +7 -7
  170. package/__chunks__/{Stepper-Dt63049f.js → Stepper-BO0O4mnN.js} +28 -28
  171. package/__chunks__/{Stepper-Dip3LHZb.mjs → Stepper-Bn1VUxUa.mjs} +28 -28
  172. package/__chunks__/{TabNav-BCal_o_e.mjs → TabNav-Bicd788A.mjs} +1 -1
  173. package/__chunks__/{TabNav-D_4bqwZ5.js → TabNav-DoPWkRzq.js} +1 -1
  174. package/__chunks__/{Tabs-DL53NmLt.js → Tabs-CcQ1UKFN.js} +20 -20
  175. package/__chunks__/{Tabs-D5YHkBYr.mjs → Tabs-CtdBEP39.mjs} +20 -20
  176. package/__chunks__/{Text-DKSomTmh.js → Text-BMoA0yMR.js} +40 -40
  177. package/__chunks__/{Text-DAilskpC.mjs → Text-Bx5xQvLg.mjs} +40 -40
  178. package/__chunks__/{TextField-gPC5-arj.mjs → TextField-3cY3nKBn.mjs} +1 -1
  179. package/__chunks__/{TextField-Co7_GAzT.js → TextField-Bi1S8cvA.js} +1 -1
  180. package/__chunks__/{Toggle-D89AeiqA.js → Toggle-8B3f76vx.js} +15 -15
  181. package/__chunks__/{Toggle-B6b2-C7T.mjs → Toggle-BVf2PQk2.mjs} +15 -15
  182. package/__chunks__/{Tooltip-5lz6tVdi.js → Tooltip-7XwvrZnA.js} +17 -16
  183. package/__chunks__/{Tooltip-BAlARvJi.mjs → Tooltip-BEhsOxJe.mjs} +17 -16
  184. package/__chunks__/{UnstyledButton-yd6ZL2Yi.js → UnstyledButton-BNciIRwZ.js} +3 -3
  185. package/__chunks__/{UnstyledButton-D_DzFe67.mjs → UnstyledButton-aKk2POM3.mjs} +3 -3
  186. package/__chunks__/{VerticalStack-yZwmajIO.mjs → VerticalStack-7ngWLZ9D.mjs} +3 -3
  187. package/__chunks__/{VerticalStack-Dw2YBdjg.js → VerticalStack-8rmfIYQv.js} +3 -3
  188. package/__chunks__/{VisuallyHidden-cQCgS6_a.mjs → VisuallyHidden-BW8z0u63.mjs} +2 -2
  189. package/__chunks__/{VisuallyHidden-DcUrMWfu.js → VisuallyHidden-CxznJ2eH.js} +2 -2
  190. package/__chunks__/{ariaHideOutside-CvJKAP9c.mjs → ariaHideOutside-BWTlv_g_.mjs} +26 -11
  191. package/__chunks__/{ariaHideOutside-DkYn-eBq.js → ariaHideOutside-CCOx7fIt.js} +27 -12
  192. package/__chunks__/{context-CYcq9Zvo.js → context-B-dkBtcD.js} +1 -54
  193. package/__chunks__/{context-D3NeXov7.js → context-BQfsEeih.js} +1 -1
  194. package/__chunks__/{context-BZCcafjG.mjs → context-BZH2zfKM.mjs} +1 -1
  195. package/__chunks__/{context-EpOG85wC.mjs → context-ClcSNaYl.mjs} +3 -56
  196. package/__chunks__/focusSafely-DLX4i5KV.js +15 -0
  197. package/__chunks__/focusSafely-MpYXzuLP.mjs +16 -0
  198. package/__chunks__/index-6ObXAT_4.js +147 -0
  199. package/__chunks__/index-DOQwYO8h.mjs +148 -0
  200. package/__chunks__/{mergeProps-DniMwM6P.js → mergeProps-6pKCnMWU.js} +21 -19
  201. package/__chunks__/{mergeProps-DSi85raC.mjs → mergeProps-C4OYS8Nd.mjs} +26 -24
  202. package/__chunks__/{scrollIntoView-wURtlgJt.mjs → scrollIntoView-1v0vfaIN.mjs} +1 -1
  203. package/__chunks__/{scrollIntoView-BN4yt25y.js → scrollIntoView-CzFYIYQT.js} +1 -1
  204. package/__chunks__/{useButton-CdgRb7pd.mjs → useButton-B8EwIeGA.mjs} +5 -5
  205. package/__chunks__/{useButton-B_VJe1i5.js → useButton-BUzZ-5VB.js} +5 -5
  206. package/__chunks__/{useCollator-B-keb3wA.mjs → useCollator-CYCg6wMz.mjs} +1 -1
  207. package/__chunks__/{useCollator-DGrSWVh4.js → useCollator-DpGidudE.js} +1 -1
  208. package/__chunks__/{useDialog-DJ-g6m8Y.js → useDialog-BkTg_V3k.js} +5 -5
  209. package/__chunks__/{useDialog-Bxep5NaV.mjs → useDialog-mJmFmECS.mjs} +5 -5
  210. package/__chunks__/{useEdgeInterceptors-B2OWg9dT.js → useEdgeInterceptors-BTw8xzQs.js} +5 -5
  211. package/__chunks__/{useEdgeInterceptors-YaV-ot5j.mjs → useEdgeInterceptors-DtSwXFEP.mjs} +5 -5
  212. package/__chunks__/{useEvent-B0fsKtsf.mjs → useEvent-DUet8f_n.mjs} +1 -1
  213. package/__chunks__/{useEvent-DY7dR7Mi.js → useEvent-DiEr5shV.js} +1 -1
  214. package/__chunks__/{useField-B6VplZ_n.mjs → useField-CQfJ37Nt.mjs} +2 -2
  215. package/__chunks__/{useField-BJW_bXVD.js → useField-MeTEdBhD.js} +2 -2
  216. package/__chunks__/{useFilter-D-K0Oj-7.mjs → useFilter-D3MAuO1e.mjs} +1 -1
  217. package/__chunks__/{useFilter-DpnZ54nd.js → useFilter-DUqh08RA.js} +1 -1
  218. package/__chunks__/{useFocus-lnK5BCt2.mjs → useFocus-BR2JUcSC.mjs} +3 -3
  219. package/__chunks__/{useFocus-l6ZlVMHW.js → useFocus-CMM1E_s1.js} +5 -5
  220. package/__chunks__/{useFocusRing-f5StfjhA.js → useFocusRing-BTr2SNa0.js} +3 -3
  221. package/__chunks__/{useFocusRing-KIEn23AD.mjs → useFocusRing-BbxvDonI.mjs} +3 -3
  222. package/__chunks__/{useFocusVisible-CiIrKjuz.js → useFocusVisible-DFYEx6se.js} +18 -107
  223. package/__chunks__/{useFocusVisible-Bb3k4_O_.mjs → useFocusVisible-D_XXcaLm.mjs} +11 -100
  224. package/__chunks__/useFocusWithin-B1KKdipT.js +69 -0
  225. package/__chunks__/useFocusWithin-DMidhx8C.mjs +70 -0
  226. package/__chunks__/{useFocusable-BQyiwtXU.js → useFocusable-6aWd3xB2.js} +15 -12
  227. package/__chunks__/{useFocusable-DxcU91xN.mjs → useFocusable-BQyiLqbY.mjs} +16 -13
  228. package/__chunks__/{useFormReset-DA1Lwdha.mjs → useFormReset-DwIsbrAk.mjs} +1 -1
  229. package/__chunks__/{useFormReset-Bgj93eR3.js → useFormReset-Ja1aibwy.js} +1 -1
  230. package/__chunks__/{useFormValidation-BeqiYVJN.js → useFormValidation-BqUyj3MW.js} +2 -2
  231. package/__chunks__/{useFormValidation-CCe1AoIX.mjs → useFormValidation-SckXeoUZ.mjs} +2 -2
  232. package/__chunks__/{useHasTabbableChild-DOO1szWv.mjs → useHasTabbableChild-BkKbzCwx.mjs} +2 -2
  233. package/__chunks__/{useHasTabbableChild-CepF5tQS.js → useHasTabbableChild-OzJPDs7u.js} +2 -2
  234. package/__chunks__/{useHighlightSelectionDescription-B_YjQEPD.mjs → useHighlightSelectionDescription-C3ZHe657.mjs} +16 -7
  235. package/__chunks__/{useHighlightSelectionDescription-nSfKxNPA.js → useHighlightSelectionDescription-DDHTMZiR.js} +16 -7
  236. package/__chunks__/{useHover-BOYR4wqI.mjs → useHover-DpEGMvo6.mjs} +13 -3
  237. package/__chunks__/{useHover-BIKwjrCT.js → useHover-NuBBFo1D.js} +13 -3
  238. package/__chunks__/{useLabel-D37VV43W.mjs → useLabel-B3S3Miea.mjs} +2 -2
  239. package/__chunks__/{useLabel-t-N6anB8.js → useLabel-DVLShpAi.js} +2 -2
  240. package/__chunks__/{useLabels-5f58TiCH.mjs → useLabels-ClfID0sX.mjs} +1 -1
  241. package/__chunks__/{useLabels-KmwewLTv.js → useLabels-DrIYrapv.js} +1 -1
  242. package/__chunks__/{useLink-CQhl3ZGL.js → useLink-DyvPn11c.js} +4 -4
  243. package/__chunks__/{useLink-BGK9UEQW.mjs → useLink-WThPkjA2.mjs} +4 -4
  244. package/__chunks__/{useListBoxSection-Dl15OiHe.mjs → useListBoxSection-8W_ApdBB.mjs} +10 -10
  245. package/__chunks__/{useListBoxSection-TdoNdwIM.js → useListBoxSection-rWvzEd35.js} +11 -11
  246. package/__chunks__/{useListState-I5rva0Fq.js → useListState-CKHwm7j_.js} +27 -12
  247. package/__chunks__/{useListState-AFrlkW73.mjs → useListState-DqBHV23A.mjs} +28 -13
  248. package/__chunks__/{useLocalizedStringFormatter-BHXy3Wtu.mjs → useLocalizedStringFormatter-BhtDVRd3.mjs} +1 -1
  249. package/__chunks__/{useLocalizedStringFormatter-CaF1VsOH.js → useLocalizedStringFormatter-C3ZwxPrF.js} +1 -1
  250. package/__chunks__/{useMenuTrigger-DhSBxWW5.js → useMenuTrigger-BVkF1AqM.js} +9 -5
  251. package/__chunks__/{useMenuTrigger-DDKy3dcp.mjs → useMenuTrigger-D1J5fKGN.mjs} +9 -5
  252. package/__chunks__/{useMenuTriggerState-BJJ3WdLH.mjs → useMenuTriggerState-BtbgVHYJ.mjs} +1 -1
  253. package/__chunks__/{useMenuTriggerState-DTZmPbSP.js → useMenuTriggerState-Skj7UUPq.js} +1 -1
  254. package/__chunks__/{useModalOverlay-BeCxNyVY.mjs → useModalOverlay-USYfWlZ0.mjs} +3 -3
  255. package/__chunks__/{useModalOverlay-gSHY_FAb.js → useModalOverlay-VZIDHsXZ.js} +3 -3
  256. package/__chunks__/{useOverlayPosition-DJGEWKwM.js → useOverlayPosition-4b_rkosH.js} +5 -5
  257. package/__chunks__/{useOverlayPosition-CTTQ0gZN.mjs → useOverlayPosition-vVuqBjvk.mjs} +4 -4
  258. package/__chunks__/{useOverlayTrigger-BvP35sYf.mjs → useOverlayTrigger-C_ezbQv8.mjs} +2 -2
  259. package/__chunks__/{useOverlayTrigger-CiUR_pLO.js → useOverlayTrigger-Df2Gw0ns.js} +2 -2
  260. package/__chunks__/{usePress-DTGD4Sub.js → usePress-BkfhIu8i.js} +92 -124
  261. package/__chunks__/{usePress-CqfuY_T7.mjs → usePress-CMfwAyab.mjs} +77 -109
  262. package/__chunks__/{useSelectableItem-DeFiKyU1.mjs → useSelectableItem-DR0zbOkr.mjs} +122 -55
  263. package/__chunks__/{useSelectableItem-BEkjpB_K.js → useSelectableItem-DyTPlPnm.js} +123 -56
  264. package/__chunks__/{useSelectableList-Dk3TxzYJ.js → useSelectableList-CORVRfbM.js} +4 -4
  265. package/__chunks__/{useSelectableList-DPJUwWwV.mjs → useSelectableList-CPXWkbh2.mjs} +4 -4
  266. package/__chunks__/{useSingleSelectListState-DuCUY6dR.mjs → useSingleSelectListState-61RqBjo5.mjs} +1 -1
  267. package/__chunks__/{useSingleSelectListState-5RB1w9vv.js → useSingleSelectListState-IrBbHxlA.js} +1 -1
  268. package/__chunks__/{useTextField-CspDdKaL.mjs → useTextField-BMdTAdta.mjs} +9 -8
  269. package/__chunks__/{useTextField-DM-ZTn9j.js → useTextField-CLVShmFK.js} +10 -9
  270. package/__chunks__/{useToggle-Cu5EqIJD.js → useToggle-ARrVy-Wa.js} +9 -7
  271. package/__chunks__/{useToggle-CbrJW7jr.mjs → useToggle-XRd89s8O.mjs} +9 -7
  272. package/__chunks__/{useTreeState-D6aHf9kN.js → useTreeState-DrWJoIPU.js} +1 -1
  273. package/__chunks__/{useTreeState-w_raYfy2.mjs → useTreeState-DtfZCGLY.mjs} +1 -1
  274. package/__chunks__/{useUpdateEffect-CssYIsWI.js → useUpdateEffect-BII0W8Ne.js} +2 -1
  275. package/__chunks__/{useUpdateEffect-BLgGnNgL.mjs → useUpdateEffect-C9amKlvd.mjs} +2 -1
  276. package/__chunks__/{utilities-DIZYscJV.js → utilities-1DzM5WE1.js} +21 -16
  277. package/__chunks__/{utilities-CczOI9Hn.mjs → utilities-9S1EwfZA.mjs} +21 -16
  278. package/__chunks__/{utils-BlKqJM2_.js → utils-CY9C69XV.js} +8 -7
  279. package/__chunks__/utils-DTjlhnVc.js +383 -0
  280. package/__chunks__/{utils-BIfsWYLR.mjs → utils-VVmFE3B0.mjs} +8 -7
  281. package/__chunks__/utils-_T25xnBK.mjs +385 -0
  282. package/package.json +9 -9
  283. package/style.css +1073 -1072
  284. package/styles/_scrollbars.scss +8 -8
  285. package/styles/_token-helpers.scss +0 -9
  286. package/styles/global.scss +1 -1
  287. package/__chunks__/focusSafely-CCOEuEpK.mjs +0 -15
  288. package/__chunks__/focusSafely-wmTq_iKq.js +0 -14
  289. package/__chunks__/index-CTw89HMx.js +0 -198
  290. package/__chunks__/index-DCSYt1ke.mjs +0 -199
  291. package/__chunks__/isVirtualEvent-B_Z4yzgm.mjs +0 -75
  292. package/__chunks__/isVirtualEvent-C-tB2MCl.js +0 -74
  293. package/__chunks__/useFocusWithin-BGNdxo9d.mjs +0 -48
  294. package/__chunks__/useFocusWithin-C-45XiL1.js +0 -47
@@ -1,96 +1,7 @@
1
1
  "use strict";
2
+ const utils = require("./utils-DTjlhnVc.js");
2
3
  const React = require("react");
3
- const mergeProps = require("./mergeProps-DniMwM6P.js");
4
- const isVirtualEvent = require("./isVirtualEvent-C-tB2MCl.js");
5
- class $8a9cb279dc87e130$export$905e7fc544a71f36 {
6
- isDefaultPrevented() {
7
- return this.nativeEvent.defaultPrevented;
8
- }
9
- preventDefault() {
10
- this.defaultPrevented = true;
11
- this.nativeEvent.preventDefault();
12
- }
13
- stopPropagation() {
14
- this.nativeEvent.stopPropagation();
15
- this.isPropagationStopped = () => true;
16
- }
17
- isPropagationStopped() {
18
- return false;
19
- }
20
- persist() {
21
- }
22
- constructor(type, nativeEvent) {
23
- this.nativeEvent = nativeEvent;
24
- this.target = nativeEvent.target;
25
- this.currentTarget = nativeEvent.currentTarget;
26
- this.relatedTarget = nativeEvent.relatedTarget;
27
- this.bubbles = nativeEvent.bubbles;
28
- this.cancelable = nativeEvent.cancelable;
29
- this.defaultPrevented = nativeEvent.defaultPrevented;
30
- this.eventPhase = nativeEvent.eventPhase;
31
- this.isTrusted = nativeEvent.isTrusted;
32
- this.timeStamp = nativeEvent.timeStamp;
33
- this.type = type;
34
- }
35
- }
36
- function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
37
- let stateRef = React.useRef({
38
- isFocused: false,
39
- observer: null
40
- });
41
- mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
42
- const state = stateRef.current;
43
- return () => {
44
- if (state.observer) {
45
- state.observer.disconnect();
46
- state.observer = null;
47
- }
48
- };
49
- }, []);
50
- let dispatchBlur = mergeProps.$8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
51
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
52
- });
53
- return React.useCallback((e) => {
54
- if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
55
- stateRef.current.isFocused = true;
56
- let target = e.target;
57
- let onBlurHandler = (e2) => {
58
- stateRef.current.isFocused = false;
59
- if (target.disabled)
60
- dispatchBlur(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur", e2));
61
- if (stateRef.current.observer) {
62
- stateRef.current.observer.disconnect();
63
- stateRef.current.observer = null;
64
- }
65
- };
66
- target.addEventListener("focusout", onBlurHandler, {
67
- once: true
68
- });
69
- stateRef.current.observer = new MutationObserver(() => {
70
- if (stateRef.current.isFocused && target.disabled) {
71
- var _stateRef_current_observer;
72
- (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
73
- let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
74
- target.dispatchEvent(new FocusEvent("blur", {
75
- relatedTarget: relatedTargetEl
76
- }));
77
- target.dispatchEvent(new FocusEvent("focusout", {
78
- bubbles: true,
79
- relatedTarget: relatedTargetEl
80
- }));
81
- }
82
- });
83
- stateRef.current.observer.observe(target, {
84
- attributes: true,
85
- attributeFilter: [
86
- "disabled"
87
- ]
88
- });
89
- }
90
- }, [
91
- dispatchBlur
92
- ]);
93
- }
4
+ const mergeProps = require("./mergeProps-6pKCnMWU.js");
94
5
  let $507fabe10e71c6fb$var$currentModality = null;
95
6
  let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
96
7
  let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
@@ -104,7 +15,7 @@ function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
104
15
  for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
105
16
  }
106
17
  function $507fabe10e71c6fb$var$isValidKey(e) {
107
- return !(e.metaKey || !isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
18
+ return !(e.metaKey || !utils.$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
108
19
  }
109
20
  function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
110
21
  $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
@@ -121,13 +32,13 @@ function $507fabe10e71c6fb$var$handlePointerEvent(e) {
121
32
  }
122
33
  }
123
34
  function $507fabe10e71c6fb$var$handleClickEvent(e) {
124
- if (isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e)) {
35
+ if (utils.$6a7db85432448f7f$export$60278871457622de(e)) {
125
36
  $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
126
37
  $507fabe10e71c6fb$var$currentModality = "virtual";
127
38
  }
128
39
  }
129
40
  function $507fabe10e71c6fb$var$handleFocusEvent(e) {
130
- if (e.target === window || e.target === document) return;
41
+ if (e.target === window || e.target === document || utils.$8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted) return;
131
42
  if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
132
43
  $507fabe10e71c6fb$var$currentModality = "virtual";
133
44
  $507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
@@ -136,13 +47,14 @@ function $507fabe10e71c6fb$var$handleFocusEvent(e) {
136
47
  $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
137
48
  }
138
49
  function $507fabe10e71c6fb$var$handleWindowBlur() {
50
+ if (utils.$8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
139
51
  $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
140
52
  $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
141
53
  }
142
54
  function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
143
- if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get(isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
144
- const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
145
- const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
55
+ if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get(utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
56
+ const windowObject = utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
57
+ const documentObject = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
146
58
  let focus = windowObject.HTMLElement.prototype.focus;
147
59
  windowObject.HTMLElement.prototype.focus = function() {
148
60
  $507fabe10e71c6fb$var$hasEventBeforeFocus = true;
@@ -172,8 +84,8 @@ function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
172
84
  });
173
85
  }
174
86
  const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
175
- const windowObject = isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
176
- const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
87
+ const windowObject = utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
88
+ const documentObject = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
177
89
  if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
178
90
  if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
179
91
  windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
@@ -194,7 +106,7 @@ const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener
194
106
  $507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
195
107
  };
196
108
  function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
197
- const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(element);
109
+ const documentObject = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
198
110
  let loadListener;
199
111
  if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
200
112
  else {
@@ -242,12 +154,12 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
242
154
  "reset"
243
155
  ]);
244
156
  function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
245
- var _e_target;
246
- const IHTMLInputElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
247
- const IHTMLTextAreaElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
248
- const IHTMLElement = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
249
- const IKeyboardEvent = typeof window !== "undefined" ? isVirtualEvent.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
250
- isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
157
+ let document1 = utils.$431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
158
+ const IHTMLInputElement = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
159
+ const IHTMLTextAreaElement = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
160
+ const IHTMLElement = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
161
+ const IKeyboardEvent = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
162
+ isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
251
163
  return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
252
164
  }
253
165
  function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
@@ -268,4 +180,3 @@ exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a = $507fabe10e71c6fb$export$839
268
180
  exports.$507fabe10e71c6fb$export$98e20ec92f614cfe = $507fabe10e71c6fb$export$98e20ec92f614cfe;
269
181
  exports.$507fabe10e71c6fb$export$b9b3dfddab17db27 = $507fabe10e71c6fb$export$b9b3dfddab17db27;
270
182
  exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3 = $507fabe10e71c6fb$export$ec71b4b83ac08ec3;
271
- exports.$8a9cb279dc87e130$export$715c682d09d639cc = $8a9cb279dc87e130$export$715c682d09d639cc;
@@ -1,95 +1,6 @@
1
- import { useRef, useCallback, useEffect, useState } from "react";
2
- import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-DSi85raC.mjs";
3
- import { a as $431fbd86ca7dc216$export$f21a1ffae260145a, $ as $431fbd86ca7dc216$export$b204af158042fbac, b as $6a7db85432448f7f$export$60278871457622de, c as $c87311424ea30a05$export$9ac100e40613ea10 } from "./isVirtualEvent-B_Z4yzgm.mjs";
4
- class $8a9cb279dc87e130$export$905e7fc544a71f36 {
5
- isDefaultPrevented() {
6
- return this.nativeEvent.defaultPrevented;
7
- }
8
- preventDefault() {
9
- this.defaultPrevented = true;
10
- this.nativeEvent.preventDefault();
11
- }
12
- stopPropagation() {
13
- this.nativeEvent.stopPropagation();
14
- this.isPropagationStopped = () => true;
15
- }
16
- isPropagationStopped() {
17
- return false;
18
- }
19
- persist() {
20
- }
21
- constructor(type, nativeEvent) {
22
- this.nativeEvent = nativeEvent;
23
- this.target = nativeEvent.target;
24
- this.currentTarget = nativeEvent.currentTarget;
25
- this.relatedTarget = nativeEvent.relatedTarget;
26
- this.bubbles = nativeEvent.bubbles;
27
- this.cancelable = nativeEvent.cancelable;
28
- this.defaultPrevented = nativeEvent.defaultPrevented;
29
- this.eventPhase = nativeEvent.eventPhase;
30
- this.isTrusted = nativeEvent.isTrusted;
31
- this.timeStamp = nativeEvent.timeStamp;
32
- this.type = type;
33
- }
34
- }
35
- function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
36
- let stateRef = useRef({
37
- isFocused: false,
38
- observer: null
39
- });
40
- $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
41
- const state = stateRef.current;
42
- return () => {
43
- if (state.observer) {
44
- state.observer.disconnect();
45
- state.observer = null;
46
- }
47
- };
48
- }, []);
49
- let dispatchBlur = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
50
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
51
- });
52
- return useCallback((e) => {
53
- if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
54
- stateRef.current.isFocused = true;
55
- let target = e.target;
56
- let onBlurHandler = (e2) => {
57
- stateRef.current.isFocused = false;
58
- if (target.disabled)
59
- dispatchBlur(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur", e2));
60
- if (stateRef.current.observer) {
61
- stateRef.current.observer.disconnect();
62
- stateRef.current.observer = null;
63
- }
64
- };
65
- target.addEventListener("focusout", onBlurHandler, {
66
- once: true
67
- });
68
- stateRef.current.observer = new MutationObserver(() => {
69
- if (stateRef.current.isFocused && target.disabled) {
70
- var _stateRef_current_observer;
71
- (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
72
- let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
73
- target.dispatchEvent(new FocusEvent("blur", {
74
- relatedTarget: relatedTargetEl
75
- }));
76
- target.dispatchEvent(new FocusEvent("focusout", {
77
- bubbles: true,
78
- relatedTarget: relatedTargetEl
79
- }));
80
- }
81
- });
82
- stateRef.current.observer.observe(target, {
83
- attributes: true,
84
- attributeFilter: [
85
- "disabled"
86
- ]
87
- });
88
- }
89
- }, [
90
- dispatchBlur
91
- ]);
92
- }
1
+ import { g as $431fbd86ca7dc216$export$f21a1ffae260145a, a as $431fbd86ca7dc216$export$b204af158042fbac, h as $6a7db85432448f7f$export$60278871457622de, i as $8a9cb279dc87e130$export$fda7da73ab5d4c48, j as $c87311424ea30a05$export$9ac100e40613ea10 } from "./utils-_T25xnBK.mjs";
2
+ import { useEffect, useState } from "react";
3
+ import { a as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-C4OYS8Nd.mjs";
93
4
  let $507fabe10e71c6fb$var$currentModality = null;
94
5
  let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
95
6
  let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
@@ -126,7 +37,7 @@ function $507fabe10e71c6fb$var$handleClickEvent(e) {
126
37
  }
127
38
  }
128
39
  function $507fabe10e71c6fb$var$handleFocusEvent(e) {
129
- if (e.target === window || e.target === document) return;
40
+ if (e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted) return;
130
41
  if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
131
42
  $507fabe10e71c6fb$var$currentModality = "virtual";
132
43
  $507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
@@ -135,6 +46,7 @@ function $507fabe10e71c6fb$var$handleFocusEvent(e) {
135
46
  $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
136
47
  }
137
48
  function $507fabe10e71c6fb$var$handleWindowBlur() {
49
+ if ($8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
138
50
  $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
139
51
  $507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
140
52
  }
@@ -241,12 +153,12 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
241
153
  "reset"
242
154
  ]);
243
155
  function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
244
- var _e_target;
156
+ let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
245
157
  const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
246
158
  const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
247
159
  const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
248
160
  const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
249
- isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
161
+ isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
250
162
  return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
251
163
  }
252
164
  function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
@@ -264,9 +176,8 @@ function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
264
176
  }
265
177
  export {
266
178
  $507fabe10e71c6fb$export$630ff653c5ada6a9 as $,
267
- $8a9cb279dc87e130$export$715c682d09d639cc as a,
268
- $507fabe10e71c6fb$export$b9b3dfddab17db27 as b,
269
- $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as c,
270
- $507fabe10e71c6fb$export$8397ddfc504fdb9a as d,
271
- $507fabe10e71c6fb$export$98e20ec92f614cfe as e
179
+ $507fabe10e71c6fb$export$b9b3dfddab17db27 as a,
180
+ $507fabe10e71c6fb$export$ec71b4b83ac08ec3 as b,
181
+ $507fabe10e71c6fb$export$8397ddfc504fdb9a as c,
182
+ $507fabe10e71c6fb$export$98e20ec92f614cfe as d
272
183
  };
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ const utils = require("./utils-DTjlhnVc.js");
3
+ const React = require("react");
4
+ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
5
+ let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
6
+ let state = React.useRef({
7
+ isFocusWithin: false
8
+ });
9
+ let { addGlobalListener, removeAllGlobalListeners } = utils.$03deb23ff14920c4$export$4eaf04e54aa8eed6();
10
+ let onBlur = React.useCallback((e) => {
11
+ if (!e.currentTarget.contains(e.target)) return;
12
+ if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
13
+ state.current.isFocusWithin = false;
14
+ removeAllGlobalListeners();
15
+ if (onBlurWithin) onBlurWithin(e);
16
+ if (onFocusWithinChange) onFocusWithinChange(false);
17
+ }
18
+ }, [
19
+ onBlurWithin,
20
+ onFocusWithinChange,
21
+ state,
22
+ removeAllGlobalListeners
23
+ ]);
24
+ let onSyntheticFocus = utils.$8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
25
+ let onFocus = React.useCallback((e) => {
26
+ if (!e.currentTarget.contains(e.target)) return;
27
+ const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(e.target);
28
+ const activeElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
29
+ if (!state.current.isFocusWithin && activeElement === utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
30
+ if (onFocusWithin) onFocusWithin(e);
31
+ if (onFocusWithinChange) onFocusWithinChange(true);
32
+ state.current.isFocusWithin = true;
33
+ onSyntheticFocus(e);
34
+ let currentTarget = e.currentTarget;
35
+ addGlobalListener(ownerDocument, "focus", (e2) => {
36
+ if (state.current.isFocusWithin && !utils.$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) {
37
+ let event = new utils.$8a9cb279dc87e130$export$905e7fc544a71f36("blur", new ownerDocument.defaultView.FocusEvent("blur", {
38
+ relatedTarget: e2.target
39
+ }));
40
+ event.target = currentTarget;
41
+ event.currentTarget = currentTarget;
42
+ onBlur(event);
43
+ }
44
+ }, {
45
+ capture: true
46
+ });
47
+ }
48
+ }, [
49
+ onFocusWithin,
50
+ onFocusWithinChange,
51
+ onSyntheticFocus,
52
+ addGlobalListener,
53
+ onBlur
54
+ ]);
55
+ if (isDisabled) return {
56
+ focusWithinProps: {
57
+ // These cannot be null, that would conflict in mergeProps
58
+ onFocus: void 0,
59
+ onBlur: void 0
60
+ }
61
+ };
62
+ return {
63
+ focusWithinProps: {
64
+ onFocus,
65
+ onBlur
66
+ }
67
+ };
68
+ }
69
+ exports.$9ab94262bd0047c7$export$420e68273165f4ec = $9ab94262bd0047c7$export$420e68273165f4ec;
@@ -0,0 +1,70 @@
1
+ import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, e as $8a9cb279dc87e130$export$715c682d09d639cc, a as $431fbd86ca7dc216$export$b204af158042fbac, c as $d4ee10de306f2510$export$cd4e5573fbe2b576, f as $d4ee10de306f2510$export$e58f029f0fbfdb29, b as $d4ee10de306f2510$export$4282f70798064fe0, k as $8a9cb279dc87e130$export$905e7fc544a71f36 } from "./utils-_T25xnBK.mjs";
2
+ import { useRef, useCallback } from "react";
3
+ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
4
+ let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
5
+ let state = useRef({
6
+ isFocusWithin: false
7
+ });
8
+ let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
9
+ let onBlur = useCallback((e) => {
10
+ if (!e.currentTarget.contains(e.target)) return;
11
+ if (state.current.isFocusWithin && !e.currentTarget.contains(e.relatedTarget)) {
12
+ state.current.isFocusWithin = false;
13
+ removeAllGlobalListeners();
14
+ if (onBlurWithin) onBlurWithin(e);
15
+ if (onFocusWithinChange) onFocusWithinChange(false);
16
+ }
17
+ }, [
18
+ onBlurWithin,
19
+ onFocusWithinChange,
20
+ state,
21
+ removeAllGlobalListeners
22
+ ]);
23
+ let onSyntheticFocus = $8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
24
+ let onFocus = useCallback((e) => {
25
+ if (!e.currentTarget.contains(e.target)) return;
26
+ const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(e.target);
27
+ const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
28
+ if (!state.current.isFocusWithin && activeElement === $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
29
+ if (onFocusWithin) onFocusWithin(e);
30
+ if (onFocusWithinChange) onFocusWithinChange(true);
31
+ state.current.isFocusWithin = true;
32
+ onSyntheticFocus(e);
33
+ let currentTarget = e.currentTarget;
34
+ addGlobalListener(ownerDocument, "focus", (e2) => {
35
+ if (state.current.isFocusWithin && !$d4ee10de306f2510$export$4282f70798064fe0(currentTarget, e2.target)) {
36
+ let event = new $8a9cb279dc87e130$export$905e7fc544a71f36("blur", new ownerDocument.defaultView.FocusEvent("blur", {
37
+ relatedTarget: e2.target
38
+ }));
39
+ event.target = currentTarget;
40
+ event.currentTarget = currentTarget;
41
+ onBlur(event);
42
+ }
43
+ }, {
44
+ capture: true
45
+ });
46
+ }
47
+ }, [
48
+ onFocusWithin,
49
+ onFocusWithinChange,
50
+ onSyntheticFocus,
51
+ addGlobalListener,
52
+ onBlur
53
+ ]);
54
+ if (isDisabled) return {
55
+ focusWithinProps: {
56
+ // These cannot be null, that would conflict in mergeProps
57
+ onFocus: void 0,
58
+ onBlur: void 0
59
+ }
60
+ };
61
+ return {
62
+ focusWithinProps: {
63
+ onFocus,
64
+ onBlur
65
+ }
66
+ };
67
+ }
68
+ export {
69
+ $9ab94262bd0047c7$export$420e68273165f4ec as $
70
+ };
@@ -30,11 +30,11 @@ var __objRest = (source, exclude) => {
30
30
  }
31
31
  return target;
32
32
  };
33
- const focusSafely = require("./focusSafely-wmTq_iKq.js");
34
- const mergeProps = require("./mergeProps-DniMwM6P.js");
35
- const context = require("./context-CYcq9Zvo.js");
33
+ const focusSafely = require("./focusSafely-DLX4i5KV.js");
34
+ const useFocus = require("./useFocus-CMM1E_s1.js");
35
+ const mergeProps = require("./mergeProps-6pKCnMWU.js");
36
+ const context = require("./context-B-dkBtcD.js");
36
37
  const React = require("react");
37
- const useFocus = require("./useFocus-l6ZlVMHW.js");
38
38
  function $93925083ecbb358c$export$48d1ea6320830260(handler) {
39
39
  if (!handler) return void 0;
40
40
  let shouldStopPropagation = true;
@@ -69,31 +69,34 @@ function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
69
69
  }
70
70
  };
71
71
  }
72
- let $e6afbd83fe6ebbd2$var$FocusableContext = /* @__PURE__ */ React.createContext(null);
73
- function $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {
74
- let context$1 = React.useContext($e6afbd83fe6ebbd2$var$FocusableContext) || {};
72
+ let $f645667febf57a63$export$f9762fab77588ecb = /* @__PURE__ */ React.createContext(null);
73
+ function $f645667febf57a63$var$useFocusableContext(ref) {
74
+ let context$1 = React.useContext($f645667febf57a63$export$f9762fab77588ecb) || {};
75
75
  context.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(context$1, ref);
76
76
  let _a = context$1, { ref: _ } = _a, otherProps = __objRest(_a, ["ref"]);
77
77
  return otherProps;
78
78
  }
79
- function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
79
+ function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
80
80
  let { focusProps } = useFocus.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
81
81
  let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
82
82
  let interactions = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps);
83
- let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);
83
+ let domProps = $f645667febf57a63$var$useFocusableContext(domRef);
84
84
  let interactionProps = props.isDisabled ? {} : domProps;
85
85
  let autoFocusRef = React.useRef(props.autoFocus);
86
86
  React.useEffect(() => {
87
- if (autoFocusRef.current && domRef.current) focusSafely.$6a99195332edec8b$export$80f3e147d781571c(domRef.current);
87
+ if (autoFocusRef.current && domRef.current) focusSafely.$3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current);
88
88
  autoFocusRef.current = false;
89
89
  }, [
90
90
  domRef
91
91
  ]);
92
+ let tabIndex = props.excludeFromTabOrder ? -1 : 0;
93
+ if (props.isDisabled) tabIndex = void 0;
92
94
  return {
93
95
  focusableProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(__spreadProps(__spreadValues({}, interactions), {
94
- tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : void 0
96
+ tabIndex
95
97
  }), interactionProps)
96
98
  };
97
99
  }
98
100
  exports.$46d819fcbaf35654$export$8f71654801c2f7cd = $46d819fcbaf35654$export$8f71654801c2f7cd;
99
- exports.$e6afbd83fe6ebbd2$export$4c014de7c8940b4c = $e6afbd83fe6ebbd2$export$4c014de7c8940b4c;
101
+ exports.$f645667febf57a63$export$4c014de7c8940b4c = $f645667febf57a63$export$4c014de7c8940b4c;
102
+ exports.$f645667febf57a63$export$f9762fab77588ecb = $f645667febf57a63$export$f9762fab77588ecb;
@@ -29,11 +29,11 @@ var __objRest = (source, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-CCOEuEpK.mjs";
33
- import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
34
- import { b as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./context-EpOG85wC.mjs";
32
+ import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-MpYXzuLP.mjs";
33
+ import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-BR2JUcSC.mjs";
34
+ import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-C4OYS8Nd.mjs";
35
+ import { a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./context-ClcSNaYl.mjs";
35
36
  import React__default, { useRef, useEffect, useContext } from "react";
36
- import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-lnK5BCt2.mjs";
37
37
  function $93925083ecbb358c$export$48d1ea6320830260(handler) {
38
38
  if (!handler) return void 0;
39
39
  let shouldStopPropagation = true;
@@ -68,33 +68,36 @@ function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
68
68
  }
69
69
  };
70
70
  }
71
- let $e6afbd83fe6ebbd2$var$FocusableContext = /* @__PURE__ */ React__default.createContext(null);
72
- function $e6afbd83fe6ebbd2$var$useFocusableContext(ref) {
73
- let context = useContext($e6afbd83fe6ebbd2$var$FocusableContext) || {};
71
+ let $f645667febf57a63$export$f9762fab77588ecb = /* @__PURE__ */ React__default.createContext(null);
72
+ function $f645667febf57a63$var$useFocusableContext(ref) {
73
+ let context = useContext($f645667febf57a63$export$f9762fab77588ecb) || {};
74
74
  $e7801be82b4b2a53$export$4debdb1a3f0fa79e(context, ref);
75
75
  let _a = context, { ref: _ } = _a, otherProps = __objRest(_a, ["ref"]);
76
76
  return otherProps;
77
77
  }
78
- function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
78
+ function $f645667febf57a63$export$4c014de7c8940b4c(props, domRef) {
79
79
  let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props);
80
80
  let { keyboardProps } = $46d819fcbaf35654$export$8f71654801c2f7cd(props);
81
81
  let interactions = $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, keyboardProps);
82
- let domProps = $e6afbd83fe6ebbd2$var$useFocusableContext(domRef);
82
+ let domProps = $f645667febf57a63$var$useFocusableContext(domRef);
83
83
  let interactionProps = props.isDisabled ? {} : domProps;
84
84
  let autoFocusRef = useRef(props.autoFocus);
85
85
  useEffect(() => {
86
- if (autoFocusRef.current && domRef.current) $6a99195332edec8b$export$80f3e147d781571c(domRef.current);
86
+ if (autoFocusRef.current && domRef.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(domRef.current);
87
87
  autoFocusRef.current = false;
88
88
  }, [
89
89
  domRef
90
90
  ]);
91
+ let tabIndex = props.excludeFromTabOrder ? -1 : 0;
92
+ if (props.isDisabled) tabIndex = void 0;
91
93
  return {
92
94
  focusableProps: $3ef42575df84b30b$export$9d1611c77c2fe928(__spreadProps(__spreadValues({}, interactions), {
93
- tabIndex: props.excludeFromTabOrder && !props.isDisabled ? -1 : void 0
95
+ tabIndex
94
96
  }), interactionProps)
95
97
  };
96
98
  }
97
99
  export {
98
- $e6afbd83fe6ebbd2$export$4c014de7c8940b4c as $,
99
- $46d819fcbaf35654$export$8f71654801c2f7cd as a
100
+ $f645667febf57a63$export$4c014de7c8940b4c as $,
101
+ $46d819fcbaf35654$export$8f71654801c2f7cd as a,
102
+ $f645667febf57a63$export$f9762fab77588ecb as b
100
103
  };
@@ -1,4 +1,4 @@
1
- import { a as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-DSi85raC.mjs";
1
+ import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-C4OYS8Nd.mjs";
2
2
  import { useRef, useEffect } from "react";
3
3
  function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
4
4
  let resetValue = useRef(initialValue);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const mergeProps = require("./mergeProps-DniMwM6P.js");
2
+ const mergeProps = require("./mergeProps-6pKCnMWU.js");
3
3
  const React = require("react");
4
4
  function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
5
5
  let resetValue = React.useRef(initialValue);
@@ -19,8 +19,8 @@ var __spreadValues = (a, b) => {
19
19
  };
20
20
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
21
21
  const React = require("react");
22
- const useFocusVisible = require("./useFocusVisible-CiIrKjuz.js");
23
- const mergeProps = require("./mergeProps-DniMwM6P.js");
22
+ const useFocusVisible = require("./useFocusVisible-DFYEx6se.js");
23
+ const mergeProps = require("./mergeProps-6pKCnMWU.js");
24
24
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
25
25
  badInput: false,
26
26
  customError: false,
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { useMemo, useContext, createContext, useState, useRef, useEffect } from "react";
21
- import { d as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-Bb3k4_O_.mjs";
22
- import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-DSi85raC.mjs";
21
+ import { c as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-D_XXcaLm.mjs";
22
+ import { e as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-C4OYS8Nd.mjs";
23
23
  const $e5be200c675c3b3a$export$aca958c65c314e6c = {
24
24
  badInput: false,
25
25
  customError: false,
@@ -1,5 +1,5 @@
1
- import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CUJV-jWH.mjs";
2
- import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-DSi85raC.mjs";
1
+ import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-Dg66t-dG.mjs";
2
+ import { e as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-C4OYS8Nd.mjs";
3
3
  import { useState } from "react";
4
4
  function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
5
5
  let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const FocusScope = require("./FocusScope-Djtxzznf.js");
3
- const mergeProps = require("./mergeProps-DniMwM6P.js");
2
+ const FocusScope = require("./FocusScope-CL3-fUEU.js");
3
+ const mergeProps = require("./mergeProps-6pKCnMWU.js");
4
4
  const React = require("react");
5
5
  function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
6
6
  let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;