@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
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const React = require("react");
|
|
3
|
+
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
4
|
+
let $f4e2df6bd15f8569$var$_tableNestedRows = false;
|
|
5
|
+
let $f4e2df6bd15f8569$var$_shadowDOM = false;
|
|
6
|
+
function $f4e2df6bd15f8569$export$1b00cb14a96194e6() {
|
|
7
|
+
return $f4e2df6bd15f8569$var$_tableNestedRows;
|
|
8
|
+
}
|
|
9
|
+
function $f4e2df6bd15f8569$export$98658e8c59125e6a() {
|
|
10
|
+
return $f4e2df6bd15f8569$var$_shadowDOM;
|
|
11
|
+
}
|
|
12
|
+
const $431fbd86ca7dc216$export$b204af158042fbac = (el) => {
|
|
13
|
+
var _el_ownerDocument;
|
|
14
|
+
return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
|
|
15
|
+
};
|
|
16
|
+
const $431fbd86ca7dc216$export$f21a1ffae260145a = (el) => {
|
|
17
|
+
if (el && "window" in el && el.window === el) return el;
|
|
18
|
+
const doc = $431fbd86ca7dc216$export$b204af158042fbac(el);
|
|
19
|
+
return doc.defaultView || window;
|
|
20
|
+
};
|
|
21
|
+
function $431fbd86ca7dc216$var$isNode(value) {
|
|
22
|
+
return value !== null && typeof value === "object" && "nodeType" in value && typeof value.nodeType === "number";
|
|
23
|
+
}
|
|
24
|
+
function $431fbd86ca7dc216$export$af51f0f06c0f328a(node) {
|
|
25
|
+
return $431fbd86ca7dc216$var$isNode(node) && node.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in node;
|
|
26
|
+
}
|
|
27
|
+
function $d4ee10de306f2510$export$4282f70798064fe0(node, otherNode) {
|
|
28
|
+
if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return otherNode && node ? node.contains(otherNode) : false;
|
|
29
|
+
if (!node || !otherNode) return false;
|
|
30
|
+
let currentNode = otherNode;
|
|
31
|
+
while (currentNode !== null) {
|
|
32
|
+
if (currentNode === node) return true;
|
|
33
|
+
if (currentNode.tagName === "SLOT" && currentNode.assignedSlot)
|
|
34
|
+
currentNode = currentNode.assignedSlot.parentNode;
|
|
35
|
+
else if ($431fbd86ca7dc216$export$af51f0f06c0f328a(currentNode))
|
|
36
|
+
currentNode = currentNode.host;
|
|
37
|
+
else currentNode = currentNode.parentNode;
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
const $d4ee10de306f2510$export$cd4e5573fbe2b576 = (doc = document) => {
|
|
42
|
+
var _activeElement_shadowRoot;
|
|
43
|
+
if (!$f4e2df6bd15f8569$export$98658e8c59125e6a()) return doc.activeElement;
|
|
44
|
+
let activeElement = doc.activeElement;
|
|
45
|
+
while (activeElement && "shadowRoot" in activeElement && ((_activeElement_shadowRoot = activeElement.shadowRoot) === null || _activeElement_shadowRoot === void 0 ? void 0 : _activeElement_shadowRoot.activeElement)) activeElement = activeElement.shadowRoot.activeElement;
|
|
46
|
+
return activeElement;
|
|
47
|
+
};
|
|
48
|
+
function $d4ee10de306f2510$export$e58f029f0fbfdb29(event) {
|
|
49
|
+
if ($f4e2df6bd15f8569$export$98658e8c59125e6a() && event.target.shadowRoot) {
|
|
50
|
+
if (event.composedPath) return event.composedPath()[0];
|
|
51
|
+
}
|
|
52
|
+
return event.target;
|
|
53
|
+
}
|
|
54
|
+
function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
|
|
55
|
+
if ($7215afc6de606d6b$var$supportsPreventScroll()) element.focus({
|
|
56
|
+
preventScroll: true
|
|
57
|
+
});
|
|
58
|
+
else {
|
|
59
|
+
let scrollableElements = $7215afc6de606d6b$var$getScrollableElements(element);
|
|
60
|
+
element.focus();
|
|
61
|
+
$7215afc6de606d6b$var$restoreScrollPosition(scrollableElements);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
let $7215afc6de606d6b$var$supportsPreventScrollCached = null;
|
|
65
|
+
function $7215afc6de606d6b$var$supportsPreventScroll() {
|
|
66
|
+
if ($7215afc6de606d6b$var$supportsPreventScrollCached == null) {
|
|
67
|
+
$7215afc6de606d6b$var$supportsPreventScrollCached = false;
|
|
68
|
+
try {
|
|
69
|
+
let focusElem = document.createElement("div");
|
|
70
|
+
focusElem.focus({
|
|
71
|
+
get preventScroll() {
|
|
72
|
+
$7215afc6de606d6b$var$supportsPreventScrollCached = true;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
} catch (e) {
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return $7215afc6de606d6b$var$supportsPreventScrollCached;
|
|
80
|
+
}
|
|
81
|
+
function $7215afc6de606d6b$var$getScrollableElements(element) {
|
|
82
|
+
let parent = element.parentNode;
|
|
83
|
+
let scrollableElements = [];
|
|
84
|
+
let rootScrollingElement = document.scrollingElement || document.documentElement;
|
|
85
|
+
while (parent instanceof HTMLElement && parent !== rootScrollingElement) {
|
|
86
|
+
if (parent.offsetHeight < parent.scrollHeight || parent.offsetWidth < parent.scrollWidth) scrollableElements.push({
|
|
87
|
+
element: parent,
|
|
88
|
+
scrollTop: parent.scrollTop,
|
|
89
|
+
scrollLeft: parent.scrollLeft
|
|
90
|
+
});
|
|
91
|
+
parent = parent.parentNode;
|
|
92
|
+
}
|
|
93
|
+
if (rootScrollingElement instanceof HTMLElement) scrollableElements.push({
|
|
94
|
+
element: rootScrollingElement,
|
|
95
|
+
scrollTop: rootScrollingElement.scrollTop,
|
|
96
|
+
scrollLeft: rootScrollingElement.scrollLeft
|
|
97
|
+
});
|
|
98
|
+
return scrollableElements;
|
|
99
|
+
}
|
|
100
|
+
function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
|
|
101
|
+
for (let { element, scrollTop, scrollLeft } of scrollableElements) {
|
|
102
|
+
element.scrollTop = scrollTop;
|
|
103
|
+
element.scrollLeft = scrollLeft;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function $c87311424ea30a05$var$testUserAgent(re) {
|
|
107
|
+
var _window_navigator_userAgentData;
|
|
108
|
+
if (typeof window === "undefined" || window.navigator == null) return false;
|
|
109
|
+
return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
|
|
110
|
+
}
|
|
111
|
+
function $c87311424ea30a05$var$testPlatform(re) {
|
|
112
|
+
var _window_navigator_userAgentData;
|
|
113
|
+
return typeof window !== "undefined" && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
|
|
114
|
+
}
|
|
115
|
+
function $c87311424ea30a05$var$cached(fn) {
|
|
116
|
+
let res = null;
|
|
117
|
+
return () => {
|
|
118
|
+
if (res == null) res = fn();
|
|
119
|
+
return res;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
const $c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$var$cached(function() {
|
|
123
|
+
return $c87311424ea30a05$var$testPlatform(/^Mac/i);
|
|
124
|
+
});
|
|
125
|
+
const $c87311424ea30a05$export$186c6964ca17d99 = $c87311424ea30a05$var$cached(function() {
|
|
126
|
+
return $c87311424ea30a05$var$testPlatform(/^iPhone/i);
|
|
127
|
+
});
|
|
128
|
+
const $c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$var$cached(function() {
|
|
129
|
+
return $c87311424ea30a05$var$testPlatform(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
130
|
+
$c87311424ea30a05$export$9ac100e40613ea10() && navigator.maxTouchPoints > 1;
|
|
131
|
+
});
|
|
132
|
+
const $c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$var$cached(function() {
|
|
133
|
+
return $c87311424ea30a05$export$186c6964ca17d99() || $c87311424ea30a05$export$7bef049ce92e4224();
|
|
134
|
+
});
|
|
135
|
+
const $c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$var$cached(function() {
|
|
136
|
+
return $c87311424ea30a05$export$9ac100e40613ea10() || $c87311424ea30a05$export$fedb369cb70207f1();
|
|
137
|
+
});
|
|
138
|
+
const $c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$var$cached(function() {
|
|
139
|
+
return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i) && !$c87311424ea30a05$export$6446a186d09e379e();
|
|
140
|
+
});
|
|
141
|
+
const $c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$var$cached(function() {
|
|
142
|
+
return $c87311424ea30a05$var$testUserAgent(/Chrome/i);
|
|
143
|
+
});
|
|
144
|
+
const $c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$var$cached(function() {
|
|
145
|
+
return $c87311424ea30a05$var$testUserAgent(/Android/i);
|
|
146
|
+
});
|
|
147
|
+
const $c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$var$cached(function() {
|
|
148
|
+
return $c87311424ea30a05$var$testUserAgent(/Firefox/i);
|
|
149
|
+
});
|
|
150
|
+
function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
|
|
151
|
+
let globalListeners = React.useRef(/* @__PURE__ */ new Map());
|
|
152
|
+
let addGlobalListener = React.useCallback((eventTarget, type, listener, options) => {
|
|
153
|
+
let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args) => {
|
|
154
|
+
globalListeners.current.delete(listener);
|
|
155
|
+
listener(...args);
|
|
156
|
+
} : listener;
|
|
157
|
+
globalListeners.current.set(listener, {
|
|
158
|
+
type,
|
|
159
|
+
eventTarget,
|
|
160
|
+
fn,
|
|
161
|
+
options
|
|
162
|
+
});
|
|
163
|
+
eventTarget.addEventListener(type, fn, options);
|
|
164
|
+
}, []);
|
|
165
|
+
let removeGlobalListener = React.useCallback((eventTarget, type, listener, options) => {
|
|
166
|
+
var _globalListeners_current_get;
|
|
167
|
+
let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
|
|
168
|
+
eventTarget.removeEventListener(type, fn, options);
|
|
169
|
+
globalListeners.current.delete(listener);
|
|
170
|
+
}, []);
|
|
171
|
+
let removeAllGlobalListeners = React.useCallback(() => {
|
|
172
|
+
globalListeners.current.forEach((value, key) => {
|
|
173
|
+
removeGlobalListener(value.eventTarget, value.type, key, value.options);
|
|
174
|
+
});
|
|
175
|
+
}, [
|
|
176
|
+
removeGlobalListener
|
|
177
|
+
]);
|
|
178
|
+
React.useEffect(() => {
|
|
179
|
+
return removeAllGlobalListeners;
|
|
180
|
+
}, [
|
|
181
|
+
removeAllGlobalListeners
|
|
182
|
+
]);
|
|
183
|
+
return {
|
|
184
|
+
addGlobalListener,
|
|
185
|
+
removeGlobalListener,
|
|
186
|
+
removeAllGlobalListeners
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function $6a7db85432448f7f$export$60278871457622de(event) {
|
|
190
|
+
if (event.mozInputSource === 0 && event.isTrusted) return true;
|
|
191
|
+
if ($c87311424ea30a05$export$a11b0059900ceec8() && event.pointerType) return event.type === "click" && event.buttons === 1;
|
|
192
|
+
return event.detail === 0 && !event.pointerType;
|
|
193
|
+
}
|
|
194
|
+
function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
|
|
195
|
+
return !$c87311424ea30a05$export$a11b0059900ceec8() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
|
|
196
|
+
}
|
|
197
|
+
const $b4b717babfbb907b$var$focusableElements = [
|
|
198
|
+
"input:not([disabled]):not([type=hidden])",
|
|
199
|
+
"select:not([disabled])",
|
|
200
|
+
"textarea:not([disabled])",
|
|
201
|
+
"button:not([disabled])",
|
|
202
|
+
"a[href]",
|
|
203
|
+
"area[href]",
|
|
204
|
+
"summary",
|
|
205
|
+
"iframe",
|
|
206
|
+
"object",
|
|
207
|
+
"embed",
|
|
208
|
+
"audio[controls]",
|
|
209
|
+
"video[controls]",
|
|
210
|
+
'[contenteditable]:not([contenteditable^="false"])'
|
|
211
|
+
];
|
|
212
|
+
const $b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
213
|
+
$b4b717babfbb907b$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
|
|
214
|
+
const $b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR = $b4b717babfbb907b$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
|
|
215
|
+
function $b4b717babfbb907b$export$4c063cf1350e6fed(element) {
|
|
216
|
+
return element.matches($b4b717babfbb907b$var$FOCUSABLE_ELEMENT_SELECTOR);
|
|
217
|
+
}
|
|
218
|
+
function $b4b717babfbb907b$export$bebd5a1431fec25d(element) {
|
|
219
|
+
return element.matches($b4b717babfbb907b$var$TABBABLE_ELEMENT_SELECTOR);
|
|
220
|
+
}
|
|
221
|
+
class $8a9cb279dc87e130$export$905e7fc544a71f36 {
|
|
222
|
+
isDefaultPrevented() {
|
|
223
|
+
return this.nativeEvent.defaultPrevented;
|
|
224
|
+
}
|
|
225
|
+
preventDefault() {
|
|
226
|
+
this.defaultPrevented = true;
|
|
227
|
+
this.nativeEvent.preventDefault();
|
|
228
|
+
}
|
|
229
|
+
stopPropagation() {
|
|
230
|
+
this.nativeEvent.stopPropagation();
|
|
231
|
+
this.isPropagationStopped = () => true;
|
|
232
|
+
}
|
|
233
|
+
isPropagationStopped() {
|
|
234
|
+
return false;
|
|
235
|
+
}
|
|
236
|
+
persist() {
|
|
237
|
+
}
|
|
238
|
+
constructor(type, nativeEvent) {
|
|
239
|
+
this.nativeEvent = nativeEvent;
|
|
240
|
+
this.target = nativeEvent.target;
|
|
241
|
+
this.currentTarget = nativeEvent.currentTarget;
|
|
242
|
+
this.relatedTarget = nativeEvent.relatedTarget;
|
|
243
|
+
this.bubbles = nativeEvent.bubbles;
|
|
244
|
+
this.cancelable = nativeEvent.cancelable;
|
|
245
|
+
this.defaultPrevented = nativeEvent.defaultPrevented;
|
|
246
|
+
this.eventPhase = nativeEvent.eventPhase;
|
|
247
|
+
this.isTrusted = nativeEvent.isTrusted;
|
|
248
|
+
this.timeStamp = nativeEvent.timeStamp;
|
|
249
|
+
this.type = type;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
|
|
253
|
+
let stateRef = React.useRef({
|
|
254
|
+
isFocused: false,
|
|
255
|
+
observer: null
|
|
256
|
+
});
|
|
257
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
258
|
+
const state = stateRef.current;
|
|
259
|
+
return () => {
|
|
260
|
+
if (state.observer) {
|
|
261
|
+
state.observer.disconnect();
|
|
262
|
+
state.observer = null;
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
}, []);
|
|
266
|
+
let dispatchBlur = mergeProps.$8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
|
|
267
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
268
|
+
});
|
|
269
|
+
return React.useCallback((e) => {
|
|
270
|
+
if (e.target instanceof HTMLButtonElement || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLSelectElement) {
|
|
271
|
+
stateRef.current.isFocused = true;
|
|
272
|
+
let target = e.target;
|
|
273
|
+
let onBlurHandler = (e2) => {
|
|
274
|
+
stateRef.current.isFocused = false;
|
|
275
|
+
if (target.disabled)
|
|
276
|
+
dispatchBlur(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur", e2));
|
|
277
|
+
if (stateRef.current.observer) {
|
|
278
|
+
stateRef.current.observer.disconnect();
|
|
279
|
+
stateRef.current.observer = null;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
target.addEventListener("focusout", onBlurHandler, {
|
|
283
|
+
once: true
|
|
284
|
+
});
|
|
285
|
+
stateRef.current.observer = new MutationObserver(() => {
|
|
286
|
+
if (stateRef.current.isFocused && target.disabled) {
|
|
287
|
+
var _stateRef_current_observer;
|
|
288
|
+
(_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
|
|
289
|
+
let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
|
|
290
|
+
target.dispatchEvent(new FocusEvent("blur", {
|
|
291
|
+
relatedTarget: relatedTargetEl
|
|
292
|
+
}));
|
|
293
|
+
target.dispatchEvent(new FocusEvent("focusout", {
|
|
294
|
+
bubbles: true,
|
|
295
|
+
relatedTarget: relatedTargetEl
|
|
296
|
+
}));
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
stateRef.current.observer.observe(target, {
|
|
300
|
+
attributes: true,
|
|
301
|
+
attributeFilter: [
|
|
302
|
+
"disabled"
|
|
303
|
+
]
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
}, [
|
|
307
|
+
dispatchBlur
|
|
308
|
+
]);
|
|
309
|
+
}
|
|
310
|
+
exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
311
|
+
function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
|
|
312
|
+
while (target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target)) target = target.parentElement;
|
|
313
|
+
let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target);
|
|
314
|
+
let activeElement = window2.document.activeElement;
|
|
315
|
+
if (!activeElement || activeElement === target) return;
|
|
316
|
+
exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;
|
|
317
|
+
let isRefocusing = false;
|
|
318
|
+
let onBlur = (e) => {
|
|
319
|
+
if (e.target === activeElement || isRefocusing) e.stopImmediatePropagation();
|
|
320
|
+
};
|
|
321
|
+
let onFocusOut = (e) => {
|
|
322
|
+
if (e.target === activeElement || isRefocusing) {
|
|
323
|
+
e.stopImmediatePropagation();
|
|
324
|
+
if (!target && !isRefocusing) {
|
|
325
|
+
isRefocusing = true;
|
|
326
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(activeElement);
|
|
327
|
+
cleanup();
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
let onFocus = (e) => {
|
|
332
|
+
if (e.target === target || isRefocusing) e.stopImmediatePropagation();
|
|
333
|
+
};
|
|
334
|
+
let onFocusIn = (e) => {
|
|
335
|
+
if (e.target === target || isRefocusing) {
|
|
336
|
+
e.stopImmediatePropagation();
|
|
337
|
+
if (!isRefocusing) {
|
|
338
|
+
isRefocusing = true;
|
|
339
|
+
$7215afc6de606d6b$export$de79e2c695e052f3(activeElement);
|
|
340
|
+
cleanup();
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
window2.addEventListener("blur", onBlur, true);
|
|
345
|
+
window2.addEventListener("focusout", onFocusOut, true);
|
|
346
|
+
window2.addEventListener("focusin", onFocusIn, true);
|
|
347
|
+
window2.addEventListener("focus", onFocus, true);
|
|
348
|
+
let cleanup = () => {
|
|
349
|
+
cancelAnimationFrame(raf);
|
|
350
|
+
window2.removeEventListener("blur", onBlur, true);
|
|
351
|
+
window2.removeEventListener("focusout", onFocusOut, true);
|
|
352
|
+
window2.removeEventListener("focusin", onFocusIn, true);
|
|
353
|
+
window2.removeEventListener("focus", onFocus, true);
|
|
354
|
+
exports.$8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
355
|
+
isRefocusing = false;
|
|
356
|
+
};
|
|
357
|
+
let raf = requestAnimationFrame(cleanup);
|
|
358
|
+
return cleanup;
|
|
359
|
+
}
|
|
360
|
+
exports.$03deb23ff14920c4$export$4eaf04e54aa8eed6 = $03deb23ff14920c4$export$4eaf04e54aa8eed6;
|
|
361
|
+
exports.$431fbd86ca7dc216$export$b204af158042fbac = $431fbd86ca7dc216$export$b204af158042fbac;
|
|
362
|
+
exports.$431fbd86ca7dc216$export$f21a1ffae260145a = $431fbd86ca7dc216$export$f21a1ffae260145a;
|
|
363
|
+
exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63 = $6a7db85432448f7f$export$29bf1b5f2c56cf63;
|
|
364
|
+
exports.$6a7db85432448f7f$export$60278871457622de = $6a7db85432448f7f$export$60278871457622de;
|
|
365
|
+
exports.$7215afc6de606d6b$export$de79e2c695e052f3 = $7215afc6de606d6b$export$de79e2c695e052f3;
|
|
366
|
+
exports.$8a9cb279dc87e130$export$715c682d09d639cc = $8a9cb279dc87e130$export$715c682d09d639cc;
|
|
367
|
+
exports.$8a9cb279dc87e130$export$905e7fc544a71f36 = $8a9cb279dc87e130$export$905e7fc544a71f36;
|
|
368
|
+
exports.$8a9cb279dc87e130$export$cabe61c495ee3649 = $8a9cb279dc87e130$export$cabe61c495ee3649;
|
|
369
|
+
exports.$b4b717babfbb907b$export$4c063cf1350e6fed = $b4b717babfbb907b$export$4c063cf1350e6fed;
|
|
370
|
+
exports.$b4b717babfbb907b$export$bebd5a1431fec25d = $b4b717babfbb907b$export$bebd5a1431fec25d;
|
|
371
|
+
exports.$c87311424ea30a05$export$6446a186d09e379e = $c87311424ea30a05$export$6446a186d09e379e;
|
|
372
|
+
exports.$c87311424ea30a05$export$78551043582a6a98 = $c87311424ea30a05$export$78551043582a6a98;
|
|
373
|
+
exports.$c87311424ea30a05$export$7bef049ce92e4224 = $c87311424ea30a05$export$7bef049ce92e4224;
|
|
374
|
+
exports.$c87311424ea30a05$export$9ac100e40613ea10 = $c87311424ea30a05$export$9ac100e40613ea10;
|
|
375
|
+
exports.$c87311424ea30a05$export$a11b0059900ceec8 = $c87311424ea30a05$export$a11b0059900ceec8;
|
|
376
|
+
exports.$c87311424ea30a05$export$b7d78993b74f766d = $c87311424ea30a05$export$b7d78993b74f766d;
|
|
377
|
+
exports.$c87311424ea30a05$export$e1865c3bedcd822b = $c87311424ea30a05$export$e1865c3bedcd822b;
|
|
378
|
+
exports.$c87311424ea30a05$export$fedb369cb70207f1 = $c87311424ea30a05$export$fedb369cb70207f1;
|
|
379
|
+
exports.$d4ee10de306f2510$export$4282f70798064fe0 = $d4ee10de306f2510$export$4282f70798064fe0;
|
|
380
|
+
exports.$d4ee10de306f2510$export$cd4e5573fbe2b576 = $d4ee10de306f2510$export$cd4e5573fbe2b576;
|
|
381
|
+
exports.$d4ee10de306f2510$export$e58f029f0fbfdb29 = $d4ee10de306f2510$export$e58f029f0fbfdb29;
|
|
382
|
+
exports.$f4e2df6bd15f8569$export$1b00cb14a96194e6 = $f4e2df6bd15f8569$export$1b00cb14a96194e6;
|
|
383
|
+
exports.$f4e2df6bd15f8569$export$98658e8c59125e6a = $f4e2df6bd15f8569$export$98658e8c59125e6a;
|
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
32
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-C4OYS8Nd.mjs";
|
|
33
33
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
34
34
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-wU82Pkgx.mjs";
|
|
35
35
|
import React__default, { useMemo, useContext, useState, useRef, useCallback } from "react";
|
|
@@ -81,11 +81,12 @@ function $64fa3d84918910a7$export$fabf2dc03a41866e(context, slot) {
|
|
|
81
81
|
if (slot === null)
|
|
82
82
|
return null;
|
|
83
83
|
if (ctx && typeof ctx === "object" && "slots" in ctx && ctx.slots) {
|
|
84
|
-
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `"${p}"`));
|
|
85
|
-
if (!slot && !ctx.slots[$64fa3d84918910a7$export$c62b8e45d58ddad9]) throw new Error(`A slot prop is required. Valid slot names are ${availableSlots}.`);
|
|
86
84
|
let slotKey = slot || $64fa3d84918910a7$export$c62b8e45d58ddad9;
|
|
87
|
-
if (!ctx.slots[slotKey])
|
|
88
|
-
|
|
85
|
+
if (!ctx.slots[slotKey]) {
|
|
86
|
+
let availableSlots = new Intl.ListFormat().format(Object.keys(ctx.slots).map((p) => `"${p}"`));
|
|
87
|
+
let errorMessage = slot ? `Invalid slot "${slot}".` : "A slot prop is required.";
|
|
88
|
+
throw new Error(`${errorMessage} Valid slot names are ${availableSlots}.`);
|
|
89
|
+
}
|
|
89
90
|
return ctx.slots[slotKey];
|
|
90
91
|
}
|
|
91
92
|
return ctx;
|
|
@@ -116,8 +117,8 @@ function $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, context) {
|
|
|
116
117
|
mergedRef
|
|
117
118
|
];
|
|
118
119
|
}
|
|
119
|
-
function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8() {
|
|
120
|
-
let [hasSlot, setHasSlot] = useState(
|
|
120
|
+
function $64fa3d84918910a7$export$9d4c57ee4c6ffdd8(initialState = true) {
|
|
121
|
+
let [hasSlot, setHasSlot] = useState(initialState);
|
|
121
122
|
let hasRun = useRef(false);
|
|
122
123
|
let ref = useCallback((el) => {
|
|
123
124
|
hasRun.current = true;
|