@easypost/easy-ui 1.0.0-alpha.72 → 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.
- package/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/Button/utilities.d.ts.map +1 -1
- package/CHANGELOG.md +9 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/index.js +6 -6
- package/CheckableCard/index.mjs +6 -6
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +17 -17
- package/CodeBlock/index.mjs +17 -17
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +157 -126
- package/DataGrid/index.mjs +151 -120
- package/DatePicker/index.js +30 -15
- package/DatePicker/index.mjs +31 -16
- package/DateRangePicker/index.js +30 -15
- package/DateRangePicker/index.mjs +30 -15
- package/Drawer/index.js +21 -21
- package/Drawer/index.mjs +21 -21
- package/DropdownButton/index.js +13 -13
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/ForgeLayout/index.js +44 -44
- package/ForgeLayout/index.mjs +44 -44
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +23 -23
- package/Modal/index.mjs +23 -23
- package/MultiSelect/index.js +60 -54
- package/MultiSelect/index.mjs +51 -45
- package/NexusLayout/index.js +33 -33
- package/NexusLayout/index.mjs +33 -33
- package/Notification/Notification.d.ts.map +1 -1
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +8 -8
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/ProductLayout/index.js +26 -26
- package/ProductLayout/index.mjs +26 -26
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +9 -9
- package/RadioButtonGroup/index.mjs +9 -9
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +29 -29
- package/SearchNav/index.mjs +29 -29
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +16 -12
- package/TabPanels/index.mjs +16 -12
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +29 -29
- package/VerticalNav/index.mjs +29 -29
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-D3HH6Cop.js → Button-DHFTdAxF.js} +19 -19
- package/__chunks__/{Button-DHEZ4A2s.mjs → Button-DhaXhFT-.mjs} +7 -10
- package/__chunks__/{Button-BoPQ-Fx9.js → Button-E5WMp4Zg.js} +7 -10
- package/__chunks__/{Button-BuHLa-_9.mjs → Button-besQ0j6a.mjs} +19 -19
- package/__chunks__/{Calendar-HLsBZpg5.js → Calendar-C5woWpfH.js} +2 -2
- package/__chunks__/{Calendar-CS3-UW6-.mjs → Calendar-p9rHaKwG.mjs} +2 -2
- package/__chunks__/{CalendarBase-BsJ1gLtC.js → CalendarBase-BUa-SUff.js} +30 -30
- package/__chunks__/{CalendarBase-DN4q1mxw.mjs → CalendarBase-mv9La5tR.mjs} +29 -29
- package/__chunks__/{Card-BL_e88zr.mjs → Card-DR2FXTv6.mjs} +12 -12
- package/__chunks__/{Card-CvXlsu1o.js → Card-DfhHosdD.js} +12 -12
- package/__chunks__/{Checkbox-D0xwliOU.mjs → Checkbox-B7qn8pJg.mjs} +25 -25
- package/__chunks__/{Checkbox-BbmNbbNQ.js → Checkbox-BtIjmaiX.js} +25 -25
- package/__chunks__/{CodeSnippet-CpLud0B6.js → CodeSnippet-Cp3glUO1.js} +2 -2
- package/__chunks__/{CodeSnippet-vJa_F29X.mjs → CodeSnippet-Di6gtbdh.mjs} +2 -2
- package/__chunks__/{DatePickerBase-D4ciyYti.js → DatePickerBase-D4UJlvkz.js} +143 -60
- package/__chunks__/{DatePickerBase-DmqKEP5k.mjs → DatePickerBase-nYyQbAs_.mjs} +140 -57
- package/__chunks__/{Dialog-CuqmbMC4.js → Dialog-Bn6AgWyj.js} +69 -23
- package/__chunks__/{Dialog-D9aIj4DH.mjs → Dialog-CpCJycIv.mjs} +70 -24
- package/__chunks__/{FocusScope-Djtxzznf.js → FocusScope-CL3-fUEU.js} +216 -53
- package/__chunks__/{FocusScope-CUJV-jWH.mjs → FocusScope-Dg66t-dG.mjs} +208 -45
- package/__chunks__/{HelpMenu-4kIhlSTd.mjs → HelpMenu-CLhpjJ6h.mjs} +7 -7
- package/__chunks__/{HelpMenu-BG-6BlVd.js → HelpMenu-DyhpQPI8.js} +7 -7
- package/__chunks__/{HorizontalGrid-Caa2bBkn.mjs → HorizontalGrid-7r8FL1aY.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-CAxzLBcy.js → HorizontalGrid-CNc8k_zD.js} +1 -1
- package/__chunks__/{HorizontalStack-Bsl5R02e.mjs → HorizontalStack-8RcZ4huI.mjs} +1 -1
- package/__chunks__/{HorizontalStack-DH_u-Fl7.js → HorizontalStack-BpcS3ASr.js} +1 -1
- package/__chunks__/{Icon-DL_gGk21.mjs → Icon-Dj1ar_iv.mjs} +2 -2
- package/__chunks__/{Icon-BLHQN7Np.js → Icon-lRxgQUlF.js} +2 -2
- package/__chunks__/{InputCaption-CPAw7fJI.mjs → InputCaption-Dh_ynOSC.mjs} +2 -2
- package/__chunks__/{InputCaption-OV5VGKWq.js → InputCaption-uusWFQO6.js} +2 -2
- package/__chunks__/{InputField-B_3YmU4B.mjs → InputField-Cc1uBSYb.mjs} +7 -7
- package/__chunks__/{InputField-ChgMqvwU.js → InputField-HW--yCbl.js} +7 -7
- package/__chunks__/{InputIcon-COm6bQef.mjs → InputIcon-C1dofAnd.mjs} +31 -31
- package/__chunks__/{InputIcon-BXS9Y8rn.js → InputIcon-cFcmXohD.js} +31 -31
- package/__chunks__/{KebabButton-DO9OIb2W.js → KebabButton-AUlp_RzU.js} +5 -5
- package/__chunks__/{KebabButton-BRGCIPIv.mjs → KebabButton-BTDy4F9A.mjs} +5 -5
- package/__chunks__/{Menu-BYCSuuaR.mjs → Menu-CQghk0Xm.mjs} +44 -30
- package/__chunks__/{Menu-DzWdkzK8.js → Menu-CqzvIQht.js} +44 -30
- package/__chunks__/{Notification-D2fe-Xxz.js → Notification-C5yNqG6B.js} +707 -731
- package/__chunks__/{Notification-BKVkpmTz.mjs → Notification-j6oXMj8T.mjs} +706 -730
- package/__chunks__/{Overlay-zuiAML3I.mjs → Overlay-BtkNBEyr.mjs} +4 -4
- package/__chunks__/{Overlay-CwJbrICR.js → Overlay-CwRnK9dm.js} +4 -4
- package/__chunks__/{PillGroup-9OjxsTMP.mjs → PillGroup-DoUZjoCh.mjs} +109 -68
- package/__chunks__/{PillGroup-CHPsa3VB.js → PillGroup-Dv0EvyfJ.js} +109 -68
- package/__chunks__/{RadioGroup-DV7xIP19.mjs → RadioGroup-6LaX18PH.mjs} +28 -26
- package/__chunks__/{RadioGroup-BulGTLfR.js → RadioGroup-DhkWNcLj.js} +28 -26
- package/__chunks__/{RangeCalendar-jktYfFqj.js → RangeCalendar-BiJUNPv-.js} +3 -3
- package/__chunks__/{RangeCalendar-CwDjqHGQ.mjs → RangeCalendar-DET0Ai4u.mjs} +3 -3
- package/__chunks__/{SelectOverlay-HjVuurPc.js → SelectOverlay-Cb0n9TrH.js} +34 -34
- package/__chunks__/{SelectOverlay-6pBMMSgG.mjs → SelectOverlay-CyK3RTnF.mjs} +34 -34
- package/__chunks__/{SelectionManager-DCO_d3m1.mjs → SelectionManager-my6312qq.mjs} +6 -0
- package/__chunks__/{SelectionManager-DuX6geJg.js → SelectionManager-px2R7S_e.js} +6 -0
- package/__chunks__/{SelectorErrorTooltip-BWn16OXi.js → SelectorErrorTooltip-Dgl_s5PI.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-B4k8RWP0.mjs → SelectorErrorTooltip-ixjoIXDZ.mjs} +4 -4
- package/__chunks__/{Spinner-vUeXdpkO.js → Spinner-C0O2rv-c.js} +7 -7
- package/__chunks__/{Spinner-CNPgXjAf.mjs → Spinner-_rvpJRN-.mjs} +7 -7
- package/__chunks__/{Stepper-sqTqQ9uL.js → Stepper-BO0O4mnN.js} +28 -28
- package/__chunks__/{Stepper-CAscDgRy.mjs → Stepper-Bn1VUxUa.mjs} +28 -28
- package/__chunks__/{TabNav-C1qCKmy4.mjs → TabNav-Bicd788A.mjs} +1 -1
- package/__chunks__/{TabNav-ByxN1m64.js → TabNav-DoPWkRzq.js} +1 -1
- package/__chunks__/{Tabs-DNN1AXwm.js → Tabs-CcQ1UKFN.js} +20 -20
- package/__chunks__/{Tabs-CKqKdgkN.mjs → Tabs-CtdBEP39.mjs} +20 -20
- package/__chunks__/{Text-CFmLMgB7.js → Text-BMoA0yMR.js} +40 -40
- package/__chunks__/{Text-BPOoDg5O.mjs → Text-Bx5xQvLg.mjs} +40 -40
- package/__chunks__/{TextField-CtAwsnQG.mjs → TextField-3cY3nKBn.mjs} +1 -1
- package/__chunks__/{TextField-CES6ydsj.js → TextField-Bi1S8cvA.js} +1 -1
- package/__chunks__/{Toggle-D5VRzeJU.js → Toggle-8B3f76vx.js} +15 -15
- package/__chunks__/{Toggle-qwyZuSZH.mjs → Toggle-BVf2PQk2.mjs} +15 -15
- package/__chunks__/{Tooltip-CYDWD3VB.js → Tooltip-7XwvrZnA.js} +17 -16
- package/__chunks__/{Tooltip-BAKQ9mVy.mjs → Tooltip-BEhsOxJe.mjs} +17 -16
- package/__chunks__/{UnstyledButton-yd6ZL2Yi.js → UnstyledButton-BNciIRwZ.js} +3 -3
- package/__chunks__/{UnstyledButton-D_DzFe67.mjs → UnstyledButton-aKk2POM3.mjs} +3 -3
- package/__chunks__/{VerticalStack-BkGZvd41.mjs → VerticalStack-7ngWLZ9D.mjs} +3 -3
- package/__chunks__/{VerticalStack-B7ytb3Iu.js → VerticalStack-8rmfIYQv.js} +3 -3
- package/__chunks__/{VisuallyHidden-cQCgS6_a.mjs → VisuallyHidden-BW8z0u63.mjs} +2 -2
- package/__chunks__/{VisuallyHidden-DcUrMWfu.js → VisuallyHidden-CxznJ2eH.js} +2 -2
- package/__chunks__/{ariaHideOutside-CvJKAP9c.mjs → ariaHideOutside-BWTlv_g_.mjs} +26 -11
- package/__chunks__/{ariaHideOutside-DkYn-eBq.js → ariaHideOutside-CCOx7fIt.js} +27 -12
- package/__chunks__/{context-CYcq9Zvo.js → context-B-dkBtcD.js} +1 -54
- package/__chunks__/{context-D3NeXov7.js → context-BQfsEeih.js} +1 -1
- package/__chunks__/{context-BZCcafjG.mjs → context-BZH2zfKM.mjs} +1 -1
- package/__chunks__/{context-EpOG85wC.mjs → context-ClcSNaYl.mjs} +3 -56
- package/__chunks__/focusSafely-DLX4i5KV.js +15 -0
- package/__chunks__/focusSafely-MpYXzuLP.mjs +16 -0
- package/__chunks__/index-6ObXAT_4.js +147 -0
- package/__chunks__/index-DOQwYO8h.mjs +148 -0
- package/__chunks__/{mergeProps-DniMwM6P.js → mergeProps-6pKCnMWU.js} +21 -19
- package/__chunks__/{mergeProps-DSi85raC.mjs → mergeProps-C4OYS8Nd.mjs} +26 -24
- package/__chunks__/{scrollIntoView-wURtlgJt.mjs → scrollIntoView-1v0vfaIN.mjs} +1 -1
- package/__chunks__/{scrollIntoView-BN4yt25y.js → scrollIntoView-CzFYIYQT.js} +1 -1
- package/__chunks__/{useButton-CdgRb7pd.mjs → useButton-B8EwIeGA.mjs} +5 -5
- package/__chunks__/{useButton-B_VJe1i5.js → useButton-BUzZ-5VB.js} +5 -5
- package/__chunks__/{useCollator-B-keb3wA.mjs → useCollator-CYCg6wMz.mjs} +1 -1
- package/__chunks__/{useCollator-DGrSWVh4.js → useCollator-DpGidudE.js} +1 -1
- package/__chunks__/{useDialog-DJ-g6m8Y.js → useDialog-BkTg_V3k.js} +5 -5
- package/__chunks__/{useDialog-Bxep5NaV.mjs → useDialog-mJmFmECS.mjs} +5 -5
- package/__chunks__/{useEdgeInterceptors-Dr0sj9Ly.js → useEdgeInterceptors-BTw8xzQs.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-WqF_YygM.mjs → useEdgeInterceptors-DtSwXFEP.mjs} +5 -5
- package/__chunks__/{useEvent-B0fsKtsf.mjs → useEvent-DUet8f_n.mjs} +1 -1
- package/__chunks__/{useEvent-DY7dR7Mi.js → useEvent-DiEr5shV.js} +1 -1
- package/__chunks__/{useField-B6VplZ_n.mjs → useField-CQfJ37Nt.mjs} +2 -2
- package/__chunks__/{useField-BJW_bXVD.js → useField-MeTEdBhD.js} +2 -2
- package/__chunks__/{useFilter-D-K0Oj-7.mjs → useFilter-D3MAuO1e.mjs} +1 -1
- package/__chunks__/{useFilter-DpnZ54nd.js → useFilter-DUqh08RA.js} +1 -1
- package/__chunks__/{useFocus-lnK5BCt2.mjs → useFocus-BR2JUcSC.mjs} +3 -3
- package/__chunks__/{useFocus-l6ZlVMHW.js → useFocus-CMM1E_s1.js} +5 -5
- package/__chunks__/{useFocusRing-f5StfjhA.js → useFocusRing-BTr2SNa0.js} +3 -3
- package/__chunks__/{useFocusRing-KIEn23AD.mjs → useFocusRing-BbxvDonI.mjs} +3 -3
- package/__chunks__/{useFocusVisible-CiIrKjuz.js → useFocusVisible-DFYEx6se.js} +18 -107
- package/__chunks__/{useFocusVisible-Bb3k4_O_.mjs → useFocusVisible-D_XXcaLm.mjs} +11 -100
- package/__chunks__/useFocusWithin-B1KKdipT.js +69 -0
- package/__chunks__/useFocusWithin-DMidhx8C.mjs +70 -0
- package/__chunks__/{useFocusable-BQyiwtXU.js → useFocusable-6aWd3xB2.js} +15 -12
- package/__chunks__/{useFocusable-DxcU91xN.mjs → useFocusable-BQyiLqbY.mjs} +16 -13
- package/__chunks__/{useFormReset-DA1Lwdha.mjs → useFormReset-DwIsbrAk.mjs} +1 -1
- package/__chunks__/{useFormReset-Bgj93eR3.js → useFormReset-Ja1aibwy.js} +1 -1
- package/__chunks__/{useFormValidation-BeqiYVJN.js → useFormValidation-BqUyj3MW.js} +2 -2
- package/__chunks__/{useFormValidation-CCe1AoIX.mjs → useFormValidation-SckXeoUZ.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-DOO1szWv.mjs → useHasTabbableChild-BkKbzCwx.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-CepF5tQS.js → useHasTabbableChild-OzJPDs7u.js} +2 -2
- package/__chunks__/{useHighlightSelectionDescription-B_YjQEPD.mjs → useHighlightSelectionDescription-C3ZHe657.mjs} +16 -7
- package/__chunks__/{useHighlightSelectionDescription-nSfKxNPA.js → useHighlightSelectionDescription-DDHTMZiR.js} +16 -7
- package/__chunks__/{useHover-BOYR4wqI.mjs → useHover-DpEGMvo6.mjs} +13 -3
- package/__chunks__/{useHover-BIKwjrCT.js → useHover-NuBBFo1D.js} +13 -3
- package/__chunks__/{useLabel-D37VV43W.mjs → useLabel-B3S3Miea.mjs} +2 -2
- package/__chunks__/{useLabel-t-N6anB8.js → useLabel-DVLShpAi.js} +2 -2
- package/__chunks__/{useLabels-5f58TiCH.mjs → useLabels-ClfID0sX.mjs} +1 -1
- package/__chunks__/{useLabels-KmwewLTv.js → useLabels-DrIYrapv.js} +1 -1
- package/__chunks__/{useLink-CQhl3ZGL.js → useLink-DyvPn11c.js} +4 -4
- package/__chunks__/{useLink-BGK9UEQW.mjs → useLink-WThPkjA2.mjs} +4 -4
- package/__chunks__/{useListBoxSection-Dl15OiHe.mjs → useListBoxSection-8W_ApdBB.mjs} +10 -10
- package/__chunks__/{useListBoxSection-TdoNdwIM.js → useListBoxSection-rWvzEd35.js} +11 -11
- package/__chunks__/{useListState-I5rva0Fq.js → useListState-CKHwm7j_.js} +27 -12
- package/__chunks__/{useListState-AFrlkW73.mjs → useListState-DqBHV23A.mjs} +28 -13
- package/__chunks__/{useLocalizedStringFormatter-BHXy3Wtu.mjs → useLocalizedStringFormatter-BhtDVRd3.mjs} +1 -1
- package/__chunks__/{useLocalizedStringFormatter-CaF1VsOH.js → useLocalizedStringFormatter-C3ZwxPrF.js} +1 -1
- package/__chunks__/{useMenuTrigger-DhSBxWW5.js → useMenuTrigger-BVkF1AqM.js} +9 -5
- package/__chunks__/{useMenuTrigger-DDKy3dcp.mjs → useMenuTrigger-D1J5fKGN.mjs} +9 -5
- package/__chunks__/{useMenuTriggerState-BJJ3WdLH.mjs → useMenuTriggerState-BtbgVHYJ.mjs} +1 -1
- package/__chunks__/{useMenuTriggerState-DTZmPbSP.js → useMenuTriggerState-Skj7UUPq.js} +1 -1
- package/__chunks__/{useModalOverlay-BeCxNyVY.mjs → useModalOverlay-USYfWlZ0.mjs} +3 -3
- package/__chunks__/{useModalOverlay-gSHY_FAb.js → useModalOverlay-VZIDHsXZ.js} +3 -3
- package/__chunks__/{useOverlayPosition-DJGEWKwM.js → useOverlayPosition-4b_rkosH.js} +5 -5
- package/__chunks__/{useOverlayPosition-CTTQ0gZN.mjs → useOverlayPosition-vVuqBjvk.mjs} +4 -4
- package/__chunks__/{useOverlayTrigger-BvP35sYf.mjs → useOverlayTrigger-C_ezbQv8.mjs} +2 -2
- package/__chunks__/{useOverlayTrigger-CiUR_pLO.js → useOverlayTrigger-Df2Gw0ns.js} +2 -2
- package/__chunks__/{usePress-DTGD4Sub.js → usePress-BkfhIu8i.js} +92 -124
- package/__chunks__/{usePress-CqfuY_T7.mjs → usePress-CMfwAyab.mjs} +77 -109
- package/__chunks__/{useSelectableItem-DeFiKyU1.mjs → useSelectableItem-DR0zbOkr.mjs} +122 -55
- package/__chunks__/{useSelectableItem-BEkjpB_K.js → useSelectableItem-DyTPlPnm.js} +123 -56
- package/__chunks__/{useSelectableList-Dk3TxzYJ.js → useSelectableList-CORVRfbM.js} +4 -4
- package/__chunks__/{useSelectableList-DPJUwWwV.mjs → useSelectableList-CPXWkbh2.mjs} +4 -4
- package/__chunks__/{useSingleSelectListState-DuCUY6dR.mjs → useSingleSelectListState-61RqBjo5.mjs} +1 -1
- package/__chunks__/{useSingleSelectListState-5RB1w9vv.js → useSingleSelectListState-IrBbHxlA.js} +1 -1
- package/__chunks__/{useTextField-CspDdKaL.mjs → useTextField-BMdTAdta.mjs} +9 -8
- package/__chunks__/{useTextField-DM-ZTn9j.js → useTextField-CLVShmFK.js} +10 -9
- package/__chunks__/{useToggle-Cu5EqIJD.js → useToggle-ARrVy-Wa.js} +9 -7
- package/__chunks__/{useToggle-CbrJW7jr.mjs → useToggle-XRd89s8O.mjs} +9 -7
- package/__chunks__/{useTreeState-D6aHf9kN.js → useTreeState-DrWJoIPU.js} +1 -1
- package/__chunks__/{useTreeState-w_raYfy2.mjs → useTreeState-DtfZCGLY.mjs} +1 -1
- package/__chunks__/{useUpdateEffect-CssYIsWI.js → useUpdateEffect-BII0W8Ne.js} +2 -1
- package/__chunks__/{useUpdateEffect-BLgGnNgL.mjs → useUpdateEffect-C9amKlvd.mjs} +2 -1
- package/__chunks__/{utilities-DIZYscJV.js → utilities-1DzM5WE1.js} +21 -16
- package/__chunks__/{utilities-CczOI9Hn.mjs → utilities-9S1EwfZA.mjs} +21 -16
- package/__chunks__/{utils-BlKqJM2_.js → utils-CY9C69XV.js} +8 -7
- package/__chunks__/utils-DTjlhnVc.js +383 -0
- package/__chunks__/{utils-BIfsWYLR.mjs → utils-VVmFE3B0.mjs} +8 -7
- package/__chunks__/utils-_T25xnBK.mjs +385 -0
- package/package.json +9 -9
- package/style.css +1072 -1072
- package/styles/_scrollbars.scss +8 -8
- package/styles/_token-helpers.scss +0 -9
- package/styles/global.scss +1 -1
- package/__chunks__/focusSafely-CCOEuEpK.mjs +0 -15
- package/__chunks__/focusSafely-wmTq_iKq.js +0 -14
- package/__chunks__/index-CTw89HMx.js +0 -198
- package/__chunks__/index-DCSYt1ke.mjs +0 -199
- package/__chunks__/isVirtualEvent-B_Z4yzgm.mjs +0 -75
- package/__chunks__/isVirtualEvent-C-tB2MCl.js +0 -74
- package/__chunks__/useFocusWithin-BGNdxo9d.mjs +0 -48
- package/__chunks__/useFocusWithin-C-45XiL1.js +0 -47
|
@@ -35,13 +35,187 @@ var __yieldStar = (value) => {
|
|
|
35
35
|
throw x;
|
|
36
36
|
}, "return" in obj && method("return"), it;
|
|
37
37
|
};
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
41
|
-
const
|
|
38
|
+
const utils = require("./utils-DTjlhnVc.js");
|
|
39
|
+
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
40
|
+
const useFocusVisible = require("./useFocusVisible-DFYEx6se.js");
|
|
41
|
+
const focusSafely = require("./focusSafely-DLX4i5KV.js");
|
|
42
42
|
const React = require("react");
|
|
43
|
+
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
44
|
+
get currentNode() {
|
|
45
|
+
return this._currentNode;
|
|
46
|
+
}
|
|
47
|
+
set currentNode(node) {
|
|
48
|
+
if (!utils.$d4ee10de306f2510$export$4282f70798064fe0(this.root, node)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
49
|
+
const walkers = [];
|
|
50
|
+
let curNode = node;
|
|
51
|
+
let currentWalkerCurrentNode = node;
|
|
52
|
+
this._currentNode = node;
|
|
53
|
+
while (curNode && curNode !== this.root) if (curNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
54
|
+
const shadowRoot = curNode;
|
|
55
|
+
const walker2 = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
|
56
|
+
acceptNode: this._acceptNode
|
|
57
|
+
});
|
|
58
|
+
walkers.push(walker2);
|
|
59
|
+
walker2.currentNode = currentWalkerCurrentNode;
|
|
60
|
+
this._currentSetFor.add(walker2);
|
|
61
|
+
curNode = currentWalkerCurrentNode = shadowRoot.host;
|
|
62
|
+
} else curNode = curNode.parentNode;
|
|
63
|
+
const walker = this._doc.createTreeWalker(this.root, this.whatToShow, {
|
|
64
|
+
acceptNode: this._acceptNode
|
|
65
|
+
});
|
|
66
|
+
walkers.push(walker);
|
|
67
|
+
walker.currentNode = currentWalkerCurrentNode;
|
|
68
|
+
this._currentSetFor.add(walker);
|
|
69
|
+
this._walkerStack = walkers;
|
|
70
|
+
}
|
|
71
|
+
get doc() {
|
|
72
|
+
return this._doc;
|
|
73
|
+
}
|
|
74
|
+
firstChild() {
|
|
75
|
+
let currentNode = this.currentNode;
|
|
76
|
+
let newNode = this.nextNode();
|
|
77
|
+
if (!utils.$d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode)) {
|
|
78
|
+
this.currentNode = currentNode;
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
if (newNode) this.currentNode = newNode;
|
|
82
|
+
return newNode;
|
|
83
|
+
}
|
|
84
|
+
lastChild() {
|
|
85
|
+
let walker = this._walkerStack[0];
|
|
86
|
+
let newNode = walker.lastChild();
|
|
87
|
+
if (newNode) this.currentNode = newNode;
|
|
88
|
+
return newNode;
|
|
89
|
+
}
|
|
90
|
+
nextNode() {
|
|
91
|
+
const nextNode = this._walkerStack[0].nextNode();
|
|
92
|
+
if (nextNode) {
|
|
93
|
+
const shadowRoot = nextNode.shadowRoot;
|
|
94
|
+
if (shadowRoot) {
|
|
95
|
+
var _this_filter;
|
|
96
|
+
let nodeResult;
|
|
97
|
+
if (typeof this.filter === "function") nodeResult = this.filter(nextNode);
|
|
98
|
+
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(nextNode);
|
|
99
|
+
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
|
100
|
+
this.currentNode = nextNode;
|
|
101
|
+
return nextNode;
|
|
102
|
+
}
|
|
103
|
+
let newNode = this.nextNode();
|
|
104
|
+
if (newNode) this.currentNode = newNode;
|
|
105
|
+
return newNode;
|
|
106
|
+
}
|
|
107
|
+
if (nextNode) this.currentNode = nextNode;
|
|
108
|
+
return nextNode;
|
|
109
|
+
} else {
|
|
110
|
+
if (this._walkerStack.length > 1) {
|
|
111
|
+
this._walkerStack.shift();
|
|
112
|
+
let newNode = this.nextNode();
|
|
113
|
+
if (newNode) this.currentNode = newNode;
|
|
114
|
+
return newNode;
|
|
115
|
+
} else return null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
previousNode() {
|
|
119
|
+
const currentWalker = this._walkerStack[0];
|
|
120
|
+
if (currentWalker.currentNode === currentWalker.root) {
|
|
121
|
+
if (this._currentSetFor.has(currentWalker)) {
|
|
122
|
+
this._currentSetFor.delete(currentWalker);
|
|
123
|
+
if (this._walkerStack.length > 1) {
|
|
124
|
+
this._walkerStack.shift();
|
|
125
|
+
let newNode = this.previousNode();
|
|
126
|
+
if (newNode) this.currentNode = newNode;
|
|
127
|
+
return newNode;
|
|
128
|
+
} else return null;
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
const previousNode = currentWalker.previousNode();
|
|
133
|
+
if (previousNode) {
|
|
134
|
+
const shadowRoot = previousNode.shadowRoot;
|
|
135
|
+
if (shadowRoot) {
|
|
136
|
+
var _this_filter;
|
|
137
|
+
let nodeResult;
|
|
138
|
+
if (typeof this.filter === "function") nodeResult = this.filter(previousNode);
|
|
139
|
+
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) nodeResult = this.filter.acceptNode(previousNode);
|
|
140
|
+
if (nodeResult === NodeFilter.FILTER_ACCEPT) {
|
|
141
|
+
if (previousNode) this.currentNode = previousNode;
|
|
142
|
+
return previousNode;
|
|
143
|
+
}
|
|
144
|
+
let newNode = this.lastChild();
|
|
145
|
+
if (newNode) this.currentNode = newNode;
|
|
146
|
+
return newNode;
|
|
147
|
+
}
|
|
148
|
+
if (previousNode) this.currentNode = previousNode;
|
|
149
|
+
return previousNode;
|
|
150
|
+
} else {
|
|
151
|
+
if (this._walkerStack.length > 1) {
|
|
152
|
+
this._walkerStack.shift();
|
|
153
|
+
let newNode = this.previousNode();
|
|
154
|
+
if (newNode) this.currentNode = newNode;
|
|
155
|
+
return newNode;
|
|
156
|
+
} else return null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated
|
|
161
|
+
*/
|
|
162
|
+
nextSibling() {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated
|
|
167
|
+
*/
|
|
168
|
+
previousSibling() {
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @deprecated
|
|
173
|
+
*/
|
|
174
|
+
parentNode() {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
constructor(doc, root, whatToShow, filter) {
|
|
178
|
+
this._walkerStack = [];
|
|
179
|
+
this._currentSetFor = /* @__PURE__ */ new Set();
|
|
180
|
+
this._acceptNode = (node) => {
|
|
181
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
182
|
+
const shadowRoot2 = node.shadowRoot;
|
|
183
|
+
if (shadowRoot2) {
|
|
184
|
+
const walker = this._doc.createTreeWalker(shadowRoot2, this.whatToShow, {
|
|
185
|
+
acceptNode: this._acceptNode
|
|
186
|
+
});
|
|
187
|
+
this._walkerStack.unshift(walker);
|
|
188
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
189
|
+
} else {
|
|
190
|
+
var _this_filter;
|
|
191
|
+
if (typeof this.filter === "function") return this.filter(node);
|
|
192
|
+
else if ((_this_filter = this.filter) === null || _this_filter === void 0 ? void 0 : _this_filter.acceptNode) return this.filter.acceptNode(node);
|
|
193
|
+
else if (this.filter === null) return NodeFilter.FILTER_ACCEPT;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return NodeFilter.FILTER_SKIP;
|
|
197
|
+
};
|
|
198
|
+
this._doc = doc;
|
|
199
|
+
this.root = root;
|
|
200
|
+
this.filter = filter !== null && filter !== void 0 ? filter : null;
|
|
201
|
+
this.whatToShow = whatToShow !== null && whatToShow !== void 0 ? whatToShow : NodeFilter.SHOW_ALL;
|
|
202
|
+
this._currentNode = root;
|
|
203
|
+
this._walkerStack.unshift(doc.createTreeWalker(root, whatToShow, this._acceptNode));
|
|
204
|
+
const shadowRoot = root.shadowRoot;
|
|
205
|
+
if (shadowRoot) {
|
|
206
|
+
const walker = this._doc.createTreeWalker(shadowRoot, this.whatToShow, {
|
|
207
|
+
acceptNode: this._acceptNode
|
|
208
|
+
});
|
|
209
|
+
this._walkerStack.unshift(walker);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
|
214
|
+
if (utils.$f4e2df6bd15f8569$export$98658e8c59125e6a()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
|
215
|
+
return doc.createTreeWalker(root, whatToShow, filter);
|
|
216
|
+
}
|
|
43
217
|
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
44
|
-
const windowObject =
|
|
218
|
+
const windowObject = utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
45
219
|
if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
|
|
46
220
|
let { display, visibility } = element.style;
|
|
47
221
|
let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
|
|
@@ -113,7 +287,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
|
|
|
113
287
|
$9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);
|
|
114
288
|
$9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);
|
|
115
289
|
React.useEffect(() => {
|
|
116
|
-
const activeElement =
|
|
290
|
+
const activeElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(utils.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0));
|
|
117
291
|
let scope = null;
|
|
118
292
|
if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
|
|
119
293
|
for (let node2 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) if (node2.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node2.scopeRef.current)) scope = node2;
|
|
@@ -158,7 +332,8 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
158
332
|
focusNext(opts = {}) {
|
|
159
333
|
let scope = scopeRef.current;
|
|
160
334
|
let { from, tabbable, wrap, accept } = opts;
|
|
161
|
-
|
|
335
|
+
var _scope_;
|
|
336
|
+
let node = from || utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(utils.$431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
162
337
|
let sentinel = scope[0].previousElementSibling;
|
|
163
338
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
164
339
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
@@ -177,7 +352,8 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
177
352
|
focusPrevious(opts = {}) {
|
|
178
353
|
let scope = scopeRef.current;
|
|
179
354
|
let { from, tabbable, wrap, accept } = opts;
|
|
180
|
-
|
|
355
|
+
var _scope_;
|
|
356
|
+
let node = from || utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(utils.$431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
181
357
|
let sentinel = scope[scope.length - 1].nextElementSibling;
|
|
182
358
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
183
359
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
@@ -221,24 +397,6 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
221
397
|
}
|
|
222
398
|
};
|
|
223
399
|
}
|
|
224
|
-
const $9bf71ea28793e738$var$focusableElements = [
|
|
225
|
-
"input:not([disabled]):not([type=hidden])",
|
|
226
|
-
"select:not([disabled])",
|
|
227
|
-
"textarea:not([disabled])",
|
|
228
|
-
"button:not([disabled])",
|
|
229
|
-
"a[href]",
|
|
230
|
-
"area[href]",
|
|
231
|
-
"summary",
|
|
232
|
-
"iframe",
|
|
233
|
-
"object",
|
|
234
|
-
"embed",
|
|
235
|
-
"audio[controls]",
|
|
236
|
-
"video[controls]",
|
|
237
|
-
'[contenteditable]:not([contenteditable^="false"])'
|
|
238
|
-
];
|
|
239
|
-
const $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
240
|
-
$9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
241
|
-
const $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
242
400
|
function $9bf71ea28793e738$var$getScopeRoot(scope) {
|
|
243
401
|
return scope[0].parentElement;
|
|
244
402
|
}
|
|
@@ -262,10 +420,10 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
|
262
420
|
}
|
|
263
421
|
return;
|
|
264
422
|
}
|
|
265
|
-
const ownerDocument =
|
|
423
|
+
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
266
424
|
let onKeyDown = (e) => {
|
|
267
425
|
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
268
|
-
let focusedElement = ownerDocument
|
|
426
|
+
let focusedElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
269
427
|
let scope2 = scopeRef.current;
|
|
270
428
|
if (!scope2 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope2)) return;
|
|
271
429
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2);
|
|
@@ -283,24 +441,26 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
|
283
441
|
if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
284
442
|
};
|
|
285
443
|
let onFocus = (e) => {
|
|
286
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(e
|
|
444
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef.current)) {
|
|
287
445
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
288
|
-
focusedNode.current = e
|
|
289
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(e
|
|
446
|
+
focusedNode.current = utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
447
|
+
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef)) {
|
|
290
448
|
if (focusedNode.current) focusedNode.current.focus();
|
|
291
449
|
else if ($9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
292
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current = e
|
|
450
|
+
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current = utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
293
451
|
};
|
|
294
452
|
let onBlur = (e) => {
|
|
295
453
|
if (raf.current) cancelAnimationFrame(raf.current);
|
|
296
454
|
raf.current = requestAnimationFrame(() => {
|
|
297
455
|
let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
298
|
-
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) &&
|
|
299
|
-
|
|
456
|
+
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) && utils.$c87311424ea30a05$export$a11b0059900ceec8() && utils.$c87311424ea30a05$export$6446a186d09e379e();
|
|
457
|
+
let activeElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
458
|
+
if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) {
|
|
300
459
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
301
|
-
|
|
460
|
+
let target = utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
461
|
+
if (target && target.isConnected) {
|
|
302
462
|
var _focusedNode_current;
|
|
303
|
-
focusedNode.current =
|
|
463
|
+
focusedNode.current = target;
|
|
304
464
|
(_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 ? void 0 : _focusedNode_current.focus();
|
|
305
465
|
} else if ($9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
306
466
|
}
|
|
@@ -357,7 +517,7 @@ function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {
|
|
|
357
517
|
}
|
|
358
518
|
function $9bf71ea28793e738$var$focusElement(element, scroll = false) {
|
|
359
519
|
if (element != null && !scroll) try {
|
|
360
|
-
(0, focusSafely.$
|
|
520
|
+
(0, focusSafely.$3ad3f6e1647bc98d$export$80f3e147d781571c)(element);
|
|
361
521
|
} catch (e) {
|
|
362
522
|
}
|
|
363
523
|
else if (element != null) try {
|
|
@@ -391,8 +551,8 @@ function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
|
|
|
391
551
|
React.useEffect(() => {
|
|
392
552
|
if (autoFocusRef.current) {
|
|
393
553
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
394
|
-
const ownerDocument =
|
|
395
|
-
if (!$9bf71ea28793e738$var$isElementInScope(ownerDocument
|
|
554
|
+
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
555
|
+
if (!$9bf71ea28793e738$var$isElementInScope(utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current) $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
|
|
396
556
|
}
|
|
397
557
|
autoFocusRef.current = false;
|
|
398
558
|
}, [
|
|
@@ -403,9 +563,9 @@ function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain)
|
|
|
403
563
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
404
564
|
if (restore || contain) return;
|
|
405
565
|
let scope = scopeRef.current;
|
|
406
|
-
const ownerDocument =
|
|
566
|
+
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
407
567
|
let onFocus = (e) => {
|
|
408
|
-
let target = e
|
|
568
|
+
let target = utils.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
409
569
|
if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
410
570
|
else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;
|
|
411
571
|
};
|
|
@@ -430,13 +590,13 @@ function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
|
|
|
430
590
|
return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
|
|
431
591
|
}
|
|
432
592
|
function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
|
|
433
|
-
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ?
|
|
593
|
+
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ? utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(utils.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null);
|
|
434
594
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
435
595
|
let scope = scopeRef.current;
|
|
436
|
-
const ownerDocument =
|
|
596
|
+
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
437
597
|
if (!restoreFocus || contain) return;
|
|
438
598
|
let onFocus = () => {
|
|
439
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(ownerDocument
|
|
599
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
440
600
|
};
|
|
441
601
|
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
442
602
|
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
@@ -449,7 +609,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
449
609
|
contain
|
|
450
610
|
]);
|
|
451
611
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
452
|
-
const ownerDocument =
|
|
612
|
+
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
453
613
|
if (!restoreFocus) return;
|
|
454
614
|
let onKeyDown = (e) => {
|
|
455
615
|
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
@@ -463,7 +623,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
463
623
|
});
|
|
464
624
|
walker.currentNode = focusedElement;
|
|
465
625
|
let nextElement = e.shiftKey ? walker.previousNode() : walker.nextNode();
|
|
466
|
-
if (!nodeToRestore || !
|
|
626
|
+
if (!nodeToRestore || !nodeToRestore.isConnected || nodeToRestore === ownerDocument.body) {
|
|
467
627
|
nodeToRestore = void 0;
|
|
468
628
|
treeNode.nodeToRestore = void 0;
|
|
469
629
|
}
|
|
@@ -489,7 +649,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
489
649
|
contain
|
|
490
650
|
]);
|
|
491
651
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
492
|
-
const ownerDocument =
|
|
652
|
+
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
493
653
|
if (!restoreFocus) return;
|
|
494
654
|
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
495
655
|
if (!treeNode) return;
|
|
@@ -499,7 +659,8 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
499
659
|
let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
500
660
|
if (!treeNode2) return;
|
|
501
661
|
let nodeToRestore = treeNode2.nodeToRestore;
|
|
502
|
-
|
|
662
|
+
let activeElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
663
|
+
if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
|
|
503
664
|
let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
|
|
504
665
|
requestAnimationFrame(() => {
|
|
505
666
|
if (ownerDocument.activeElement === ownerDocument.body) {
|
|
@@ -536,12 +697,14 @@ function $9bf71ea28793e738$var$restoreFocusToElement(node) {
|
|
|
536
697
|
}))) $9bf71ea28793e738$var$focusElement(node);
|
|
537
698
|
}
|
|
538
699
|
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
539
|
-
let
|
|
540
|
-
let
|
|
700
|
+
let filter = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? utils.$b4b717babfbb907b$export$bebd5a1431fec25d : utils.$b4b717babfbb907b$export$4c063cf1350e6fed;
|
|
701
|
+
let rootElement = (root === null || root === void 0 ? void 0 : root.nodeType) === Node.ELEMENT_NODE ? root : null;
|
|
702
|
+
let doc = utils.$431fbd86ca7dc216$export$b204af158042fbac(rootElement);
|
|
703
|
+
let walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root || doc, NodeFilter.SHOW_ELEMENT, {
|
|
541
704
|
acceptNode(node) {
|
|
542
705
|
var _opts_from;
|
|
543
706
|
if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
|
|
544
|
-
if (node
|
|
707
|
+
if (filter(node) && $645f2e67b85a24c9$export$e989c0fffaa6b27a(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
|
|
545
708
|
return NodeFilter.FILTER_SKIP;
|
|
546
709
|
}
|
|
547
710
|
});
|
|
@@ -554,7 +717,7 @@ function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
|
554
717
|
let root = ref.current;
|
|
555
718
|
if (!root) return null;
|
|
556
719
|
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
557
|
-
let node = from ||
|
|
720
|
+
let node = from || utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(utils.$431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
558
721
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
559
722
|
tabbable,
|
|
560
723
|
accept
|
|
@@ -572,7 +735,7 @@ function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
|
572
735
|
let root = ref.current;
|
|
573
736
|
if (!root) return null;
|
|
574
737
|
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
575
|
-
let node = from ||
|
|
738
|
+
let node = from || utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(utils.$431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
576
739
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
577
740
|
tabbable,
|
|
578
741
|
accept
|