@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.
- 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 +15 -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-Cbv2rnYl.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-DDDdq1jy.mjs → Button-besQ0j6a.mjs} +19 -19
- package/__chunks__/{Calendar-6J28aEN6.js → Calendar-C5woWpfH.js} +2 -2
- package/__chunks__/{Calendar-IH-Hdju1.mjs → Calendar-p9rHaKwG.mjs} +2 -2
- package/__chunks__/{CalendarBase-Cn_m810l.js → CalendarBase-BUa-SUff.js} +30 -30
- package/__chunks__/{CalendarBase-NkfY0ZZQ.mjs → CalendarBase-mv9La5tR.mjs} +29 -29
- package/__chunks__/{Card-Cfs_61bW.mjs → Card-DR2FXTv6.mjs} +12 -12
- package/__chunks__/{Card-BHov7_vu.js → Card-DfhHosdD.js} +12 -12
- package/__chunks__/{Checkbox-PjSuOA8S.mjs → Checkbox-B7qn8pJg.mjs} +25 -25
- package/__chunks__/{Checkbox-5_dirQJ7.js → Checkbox-BtIjmaiX.js} +25 -25
- package/__chunks__/{CodeSnippet--gFmAN9i.js → CodeSnippet-Cp3glUO1.js} +2 -2
- package/__chunks__/{CodeSnippet-BvZT69UG.mjs → CodeSnippet-Di6gtbdh.mjs} +2 -2
- package/__chunks__/{DatePickerBase-DFxPgoc8.js → DatePickerBase-D4UJlvkz.js} +143 -60
- package/__chunks__/{DatePickerBase-B5DTXN8_.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-D8fqyHN6.mjs → HelpMenu-CLhpjJ6h.mjs} +7 -7
- package/__chunks__/{HelpMenu-CnMDuzfD.js → HelpMenu-DyhpQPI8.js} +7 -7
- package/__chunks__/{HorizontalGrid-DXgJ4dXw.mjs → HorizontalGrid-7r8FL1aY.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-C0WrCjxa.js → HorizontalGrid-CNc8k_zD.js} +1 -1
- package/__chunks__/{HorizontalStack-hi_QrrZB.mjs → HorizontalStack-8RcZ4huI.mjs} +1 -1
- package/__chunks__/{HorizontalStack-4-woUNq_.js → HorizontalStack-BpcS3ASr.js} +1 -1
- package/__chunks__/{Icon-C5tHQyHr.mjs → Icon-Dj1ar_iv.mjs} +2 -2
- package/__chunks__/{Icon-YEBBOjcK.js → Icon-lRxgQUlF.js} +2 -2
- package/__chunks__/{InputCaption-DiSkdAGZ.mjs → InputCaption-Dh_ynOSC.mjs} +2 -2
- package/__chunks__/{InputCaption-DYZkvdQw.js → InputCaption-uusWFQO6.js} +2 -2
- package/__chunks__/{InputField-ErsDNt4h.mjs → InputField-Cc1uBSYb.mjs} +7 -7
- package/__chunks__/{InputField-ISqVunp5.js → InputField-HW--yCbl.js} +7 -7
- package/__chunks__/{InputIcon-MAaUXGCr.mjs → InputIcon-C1dofAnd.mjs} +31 -31
- package/__chunks__/{InputIcon-x3fs2oAT.js → InputIcon-cFcmXohD.js} +31 -31
- package/__chunks__/{KebabButton-K9NaCoId.js → KebabButton-AUlp_RzU.js} +5 -5
- package/__chunks__/{KebabButton-C2L-OC4Y.mjs → KebabButton-BTDy4F9A.mjs} +5 -5
- package/__chunks__/{Menu-Bh10IFV1.mjs → Menu-CQghk0Xm.mjs} +44 -30
- package/__chunks__/{Menu-BR1eZSkl.js → Menu-CqzvIQht.js} +44 -30
- package/__chunks__/{Notification-BYzidkwf.js → Notification-C5yNqG6B.js} +707 -731
- package/__chunks__/{Notification-BVk1cbKv.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-Cw7NxHK1.mjs → PillGroup-DoUZjoCh.mjs} +109 -68
- package/__chunks__/{PillGroup-DHGP8AdT.js → PillGroup-Dv0EvyfJ.js} +109 -68
- package/__chunks__/{RadioGroup-NZKo5DhW.mjs → RadioGroup-6LaX18PH.mjs} +28 -26
- package/__chunks__/{RadioGroup-BRCEngTq.js → RadioGroup-DhkWNcLj.js} +28 -26
- package/__chunks__/{RangeCalendar-Ccn11Hi1.js → RangeCalendar-BiJUNPv-.js} +3 -3
- package/__chunks__/{RangeCalendar-CbbQ0oO-.mjs → RangeCalendar-DET0Ai4u.mjs} +3 -3
- package/__chunks__/{SelectOverlay-QpThRYAk.js → SelectOverlay-Cb0n9TrH.js} +34 -34
- package/__chunks__/{SelectOverlay-Od1KotbU.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-B6N15DSq.js → SelectorErrorTooltip-Dgl_s5PI.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-DZK9TYeX.mjs → SelectorErrorTooltip-ixjoIXDZ.mjs} +4 -4
- package/__chunks__/{Spinner-idiilXrq.js → Spinner-C0O2rv-c.js} +7 -7
- package/__chunks__/{Spinner-DWNM6vOK.mjs → Spinner-_rvpJRN-.mjs} +7 -7
- package/__chunks__/{Stepper-Dt63049f.js → Stepper-BO0O4mnN.js} +28 -28
- package/__chunks__/{Stepper-Dip3LHZb.mjs → Stepper-Bn1VUxUa.mjs} +28 -28
- package/__chunks__/{TabNav-BCal_o_e.mjs → TabNav-Bicd788A.mjs} +1 -1
- package/__chunks__/{TabNav-D_4bqwZ5.js → TabNav-DoPWkRzq.js} +1 -1
- package/__chunks__/{Tabs-DL53NmLt.js → Tabs-CcQ1UKFN.js} +20 -20
- package/__chunks__/{Tabs-D5YHkBYr.mjs → Tabs-CtdBEP39.mjs} +20 -20
- package/__chunks__/{Text-DKSomTmh.js → Text-BMoA0yMR.js} +40 -40
- package/__chunks__/{Text-DAilskpC.mjs → Text-Bx5xQvLg.mjs} +40 -40
- package/__chunks__/{TextField-gPC5-arj.mjs → TextField-3cY3nKBn.mjs} +1 -1
- package/__chunks__/{TextField-Co7_GAzT.js → TextField-Bi1S8cvA.js} +1 -1
- package/__chunks__/{Toggle-D89AeiqA.js → Toggle-8B3f76vx.js} +15 -15
- package/__chunks__/{Toggle-B6b2-C7T.mjs → Toggle-BVf2PQk2.mjs} +15 -15
- package/__chunks__/{Tooltip-5lz6tVdi.js → Tooltip-7XwvrZnA.js} +17 -16
- package/__chunks__/{Tooltip-BAlARvJi.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-yZwmajIO.mjs → VerticalStack-7ngWLZ9D.mjs} +3 -3
- package/__chunks__/{VerticalStack-Dw2YBdjg.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-B2OWg9dT.js → useEdgeInterceptors-BTw8xzQs.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-YaV-ot5j.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 +1073 -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
|
@@ -18,17 +18,16 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useRef, useEffect } from "react";
|
|
21
|
-
import {
|
|
22
|
-
import { a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./
|
|
23
|
-
import {
|
|
24
|
-
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-
|
|
25
|
-
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-
|
|
21
|
+
import { e as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-C4OYS8Nd.mjs";
|
|
22
|
+
import { j as $c87311424ea30a05$export$9ac100e40613ea10, $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $431fbd86ca7dc216$export$b204af158042fbac, d as $7215afc6de606d6b$export$de79e2c695e052f3, c as $d4ee10de306f2510$export$cd4e5573fbe2b576, s as $c87311424ea30a05$export$e1865c3bedcd822b } from "./utils-_T25xnBK.mjs";
|
|
23
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, e as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-CMfwAyab.mjs";
|
|
24
|
+
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-DUet8f_n.mjs";
|
|
25
|
+
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-1v0vfaIN.mjs";
|
|
26
26
|
import { flushSync } from "react-dom";
|
|
27
|
-
import { $ as $
|
|
28
|
-
import { $ as $
|
|
29
|
-
import { $ as $
|
|
30
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
31
|
-
import { c as $c87311424ea30a05$export$9ac100e40613ea10, h as $c87311424ea30a05$export$e1865c3bedcd822b } from "./isVirtualEvent-B_Z4yzgm.mjs";
|
|
27
|
+
import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-D_XXcaLm.mjs";
|
|
28
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-MpYXzuLP.mjs";
|
|
29
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-Dg66t-dG.mjs";
|
|
30
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BZH2zfKM.mjs";
|
|
32
31
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
33
32
|
const isInitialMount = useRef(true);
|
|
34
33
|
const lastDeps = useRef(null);
|
|
@@ -46,7 +45,6 @@ function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
|
46
45
|
}
|
|
47
46
|
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
48
47
|
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
49
|
-
const $5671b20cf9b562b2$export$9db568f6321ad9dc = "react-aria-update-activedescendant";
|
|
50
48
|
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
51
49
|
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
52
50
|
return e.ctrlKey;
|
|
@@ -68,6 +66,7 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
68
66
|
e.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
69
67
|
bubbles: true
|
|
70
68
|
}));
|
|
69
|
+
if ($431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target) $7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
71
70
|
if (onLongPress) onLongPress(__spreadProps(__spreadValues({}, e), {
|
|
72
71
|
type: "longpress"
|
|
73
72
|
}));
|
|
@@ -102,9 +101,56 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
102
101
|
longPressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
|
|
103
102
|
};
|
|
104
103
|
}
|
|
104
|
+
function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
|
|
105
|
+
let from = $55f9b1ae81f22853$export$759df0d867455a91($431fbd86ca7dc216$export$b204af158042fbac(to));
|
|
106
|
+
if (from !== to) {
|
|
107
|
+
if (from) $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to);
|
|
108
|
+
if (to) $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to) {
|
|
112
|
+
from.dispatchEvent(new FocusEvent("blur", {
|
|
113
|
+
relatedTarget: to
|
|
114
|
+
}));
|
|
115
|
+
from.dispatchEvent(new FocusEvent("focusout", {
|
|
116
|
+
bubbles: true,
|
|
117
|
+
relatedTarget: to
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
120
|
+
function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from) {
|
|
121
|
+
to.dispatchEvent(new FocusEvent("focus", {
|
|
122
|
+
relatedTarget: from
|
|
123
|
+
}));
|
|
124
|
+
to.dispatchEvent(new FocusEvent("focusin", {
|
|
125
|
+
bubbles: true,
|
|
126
|
+
relatedTarget: from
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
function $55f9b1ae81f22853$export$759df0d867455a91(document2) {
|
|
130
|
+
let activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(document2);
|
|
131
|
+
let activeDescendant = activeElement === null || activeElement === void 0 ? void 0 : activeElement.getAttribute("aria-activedescendant");
|
|
132
|
+
if (activeDescendant) return document2.getElementById(activeDescendant) || activeElement;
|
|
133
|
+
return activeElement;
|
|
134
|
+
}
|
|
105
135
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
106
136
|
return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
107
137
|
}
|
|
138
|
+
function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
|
|
139
|
+
var _collectionRef_current, _collectionRef_current1;
|
|
140
|
+
let selector = `[data-key="${CSS.escape(String(key))}"]`;
|
|
141
|
+
let collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
|
|
142
|
+
if (collection) selector = `[data-collection="${CSS.escape(collection)}"]${selector}`;
|
|
143
|
+
return (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
|
|
144
|
+
}
|
|
145
|
+
const $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap();
|
|
146
|
+
function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
|
|
147
|
+
let id = $bdb11010cef70236$export$f680877a34711e37();
|
|
148
|
+
$feb5ffebff200149$var$collectionMap.set(collection, id);
|
|
149
|
+
return id;
|
|
150
|
+
}
|
|
151
|
+
function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
|
|
152
|
+
return $feb5ffebff200149$var$collectionMap.get(collection);
|
|
153
|
+
}
|
|
108
154
|
const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
109
155
|
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
110
156
|
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
@@ -156,11 +202,10 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
156
202
|
const navigateToKey = (key, childFocus) => {
|
|
157
203
|
if (key != null) {
|
|
158
204
|
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
|
|
159
|
-
var _scrollRef_current;
|
|
160
205
|
flushSync(() => {
|
|
161
206
|
manager.setFocusedKey(key, childFocus);
|
|
162
207
|
});
|
|
163
|
-
let item = (
|
|
208
|
+
let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key);
|
|
164
209
|
let itemProps = manager.getItemProps(key);
|
|
165
210
|
if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
|
|
166
211
|
return;
|
|
@@ -311,24 +356,24 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
311
356
|
manager.setFocused(true);
|
|
312
357
|
if (manager.focusedKey == null) {
|
|
313
358
|
var _delegate_getLastKey, _delegate_getFirstKey;
|
|
314
|
-
let
|
|
359
|
+
let navigateToKey = (key) => {
|
|
315
360
|
if (key != null) {
|
|
316
361
|
manager.setFocusedKey(key);
|
|
317
|
-
if (selectOnFocus) manager.replaceSelection(key);
|
|
362
|
+
if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);
|
|
318
363
|
}
|
|
319
364
|
};
|
|
320
365
|
let relatedTarget = e.relatedTarget;
|
|
321
366
|
var _manager_lastSelectedKey, _manager_firstSelectedKey;
|
|
322
|
-
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING)
|
|
323
|
-
else
|
|
367
|
+
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
|
|
368
|
+
else navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
|
|
324
369
|
} else if (!isVirtualized && scrollRef.current) {
|
|
325
370
|
scrollRef.current.scrollTop = scrollPos.current.top;
|
|
326
371
|
scrollRef.current.scrollLeft = scrollPos.current.left;
|
|
327
372
|
}
|
|
328
373
|
if (manager.focusedKey != null && scrollRef.current) {
|
|
329
|
-
let element =
|
|
330
|
-
if (element) {
|
|
331
|
-
if (!element.contains(document.activeElement)) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
374
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
375
|
+
if (element instanceof HTMLElement) {
|
|
376
|
+
if (!element.contains(document.activeElement) && !shouldUseVirtualFocus) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
332
377
|
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
333
378
|
if (modality === "keyboard") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
334
379
|
containingElement: ref.current
|
|
@@ -351,11 +396,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
351
396
|
var _delegate_getFirstKey1;
|
|
352
397
|
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
353
398
|
if (keyToFocus == null) {
|
|
354
|
-
|
|
355
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
356
|
-
cancelable: true,
|
|
357
|
-
bubbles: true
|
|
358
|
-
}));
|
|
399
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
359
400
|
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
360
401
|
} else {
|
|
361
402
|
manager.setFocusedKey(keyToFocus);
|
|
@@ -378,11 +419,13 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
378
419
|
resetFocusFirstFlag
|
|
379
420
|
]);
|
|
380
421
|
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
422
|
+
var _e_detail;
|
|
381
423
|
e.stopPropagation();
|
|
382
424
|
manager.setFocused(false);
|
|
383
|
-
manager.setFocusedKey(null);
|
|
425
|
+
if ((_e_detail = e.detail) === null || _e_detail === void 0 ? void 0 : _e_detail.clearFocusKey) manager.setFocusedKey(null);
|
|
384
426
|
});
|
|
385
427
|
const autoFocusRef = useRef(autoFocus);
|
|
428
|
+
const didAutoFocusRef = useRef(false);
|
|
386
429
|
useEffect(() => {
|
|
387
430
|
if (autoFocusRef.current) {
|
|
388
431
|
var _delegate_getFirstKey, _delegate_getLastKey;
|
|
@@ -400,26 +443,30 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
400
443
|
}
|
|
401
444
|
manager.setFocused(true);
|
|
402
445
|
manager.setFocusedKey(focusedKey);
|
|
403
|
-
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $
|
|
446
|
+
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
447
|
+
if (manager.collection.size > 0) {
|
|
448
|
+
autoFocusRef.current = false;
|
|
449
|
+
didAutoFocusRef.current = true;
|
|
450
|
+
}
|
|
404
451
|
}
|
|
405
|
-
}
|
|
452
|
+
});
|
|
406
453
|
let lastFocusedKey = useRef(manager.focusedKey);
|
|
407
454
|
useEffect(() => {
|
|
408
|
-
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current ||
|
|
455
|
+
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
409
456
|
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
410
|
-
let element =
|
|
411
|
-
if (!element)
|
|
457
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
458
|
+
if (!(element instanceof HTMLElement))
|
|
412
459
|
return;
|
|
413
|
-
if (modality === "keyboard" ||
|
|
460
|
+
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
414
461
|
$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
415
462
|
if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
416
463
|
containingElement: ref.current
|
|
417
464
|
});
|
|
418
465
|
}
|
|
419
466
|
}
|
|
420
|
-
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $
|
|
467
|
+
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
421
468
|
lastFocusedKey.current = manager.focusedKey;
|
|
422
|
-
|
|
469
|
+
didAutoFocusRef.current = false;
|
|
423
470
|
});
|
|
424
471
|
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
425
472
|
e.preventDefault();
|
|
@@ -441,10 +488,11 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
441
488
|
if (!disallowTypeAhead) handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
442
489
|
let tabIndex = void 0;
|
|
443
490
|
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
444
|
-
|
|
491
|
+
let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
|
|
445
492
|
return {
|
|
446
|
-
collectionProps:
|
|
447
|
-
tabIndex
|
|
493
|
+
collectionProps: $3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
|
|
494
|
+
tabIndex,
|
|
495
|
+
"data-collection": collectionId
|
|
448
496
|
})
|
|
449
497
|
};
|
|
450
498
|
}
|
|
@@ -478,15 +526,8 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
478
526
|
if (isFocused && manager.isFocused) {
|
|
479
527
|
if (!shouldUseVirtualFocus) {
|
|
480
528
|
if (focus) focus();
|
|
481
|
-
else if (document.activeElement !== ref.current && ref.current) $
|
|
482
|
-
} else
|
|
483
|
-
var _ref_current;
|
|
484
|
-
let updateActiveDescendant = new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
485
|
-
cancelable: true,
|
|
486
|
-
bubbles: true
|
|
487
|
-
});
|
|
488
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(updateActiveDescendant);
|
|
489
|
-
}
|
|
529
|
+
else if (document.activeElement !== ref.current && ref.current) $3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
530
|
+
} else $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
490
531
|
}
|
|
491
532
|
}, [
|
|
492
533
|
ref,
|
|
@@ -560,8 +601,23 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
560
601
|
}
|
|
561
602
|
};
|
|
562
603
|
}
|
|
604
|
+
itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection);
|
|
563
605
|
itemProps["data-key"] = key;
|
|
564
606
|
itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;
|
|
607
|
+
if (shouldUseVirtualFocus) itemPressProps = $3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
|
|
608
|
+
onPressStart(e) {
|
|
609
|
+
if (e.pointerType !== "touch") {
|
|
610
|
+
manager.setFocused(true);
|
|
611
|
+
manager.setFocusedKey(key);
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
onPress(e) {
|
|
615
|
+
if (e.pointerType === "touch") {
|
|
616
|
+
manager.setFocused(true);
|
|
617
|
+
manager.setFocusedKey(key);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
});
|
|
565
621
|
let { pressProps, isPressed } = $f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps);
|
|
566
622
|
let onDoubleClick = hasSecondaryAction ? (e) => {
|
|
567
623
|
if (modality.current === "mouse") {
|
|
@@ -586,12 +642,21 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
586
642
|
if (!$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) e.preventDefault();
|
|
587
643
|
} : void 0;
|
|
588
644
|
return {
|
|
589
|
-
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
645
|
+
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
646
|
+
itemProps,
|
|
647
|
+
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {},
|
|
648
|
+
longPressEnabled ? longPressProps : {},
|
|
649
|
+
{
|
|
650
|
+
onDoubleClick,
|
|
651
|
+
onDragStartCapture,
|
|
652
|
+
onClick,
|
|
653
|
+
id
|
|
654
|
+
},
|
|
655
|
+
// Prevent DOM focus from moving on mouse down when using virtual focus
|
|
656
|
+
shouldUseVirtualFocus ? {
|
|
657
|
+
onMouseDown: (e) => e.preventDefault()
|
|
658
|
+
} : void 0
|
|
659
|
+
),
|
|
595
660
|
isPressed,
|
|
596
661
|
isSelected: manager.isSelected(key),
|
|
597
662
|
isFocused: manager.isFocused && manager.focusedKey === key,
|
|
@@ -610,7 +675,9 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
610
675
|
}
|
|
611
676
|
export {
|
|
612
677
|
$880e95eb8b93ba9a$export$ecf600387e221c37 as $,
|
|
613
|
-
$
|
|
614
|
-
$
|
|
615
|
-
$
|
|
678
|
+
$feb5ffebff200149$export$c3d8340acf92597f as a,
|
|
679
|
+
$ae20dd8cbca75726$export$d6daf82dcd84e87c as b,
|
|
680
|
+
$fb3050f43d946246$export$e32c88dfddc6e1d8 as c,
|
|
681
|
+
$8a26561d2877236e$export$c24ed0104d07eab9 as d,
|
|
682
|
+
$55f9b1ae81f22853$export$2b35b76d2e30e129 as e
|
|
616
683
|
};
|
|
@@ -19,17 +19,16 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const mergeProps = require("./mergeProps-
|
|
23
|
-
const
|
|
24
|
-
const usePress = require("./usePress-
|
|
25
|
-
const useEvent = require("./useEvent-
|
|
26
|
-
const scrollIntoView = require("./scrollIntoView-
|
|
22
|
+
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
23
|
+
const utils = require("./utils-DTjlhnVc.js");
|
|
24
|
+
const usePress = require("./usePress-BkfhIu8i.js");
|
|
25
|
+
const useEvent = require("./useEvent-DiEr5shV.js");
|
|
26
|
+
const scrollIntoView = require("./scrollIntoView-CzFYIYQT.js");
|
|
27
27
|
const ReactDOM = require("react-dom");
|
|
28
|
-
const
|
|
29
|
-
const focusSafely = require("./focusSafely-
|
|
30
|
-
const
|
|
31
|
-
const context = require("./context-
|
|
32
|
-
const isVirtualEvent = require("./isVirtualEvent-C-tB2MCl.js");
|
|
28
|
+
const useFocusVisible = require("./useFocusVisible-DFYEx6se.js");
|
|
29
|
+
const focusSafely = require("./focusSafely-DLX4i5KV.js");
|
|
30
|
+
const FocusScope = require("./FocusScope-CL3-fUEU.js");
|
|
31
|
+
const context = require("./context-BQfsEeih.js");
|
|
33
32
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
34
33
|
const isInitialMount = React.useRef(true);
|
|
35
34
|
const lastDeps = React.useRef(null);
|
|
@@ -47,16 +46,15 @@ function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
|
47
46
|
}
|
|
48
47
|
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
49
48
|
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
50
|
-
const $5671b20cf9b562b2$export$9db568f6321ad9dc = "react-aria-update-activedescendant";
|
|
51
49
|
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
52
|
-
if (
|
|
50
|
+
if (utils.$c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
53
51
|
return e.ctrlKey;
|
|
54
52
|
}
|
|
55
53
|
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
56
54
|
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
57
55
|
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
58
56
|
const timeRef = React.useRef(void 0);
|
|
59
|
-
let { addGlobalListener, removeGlobalListener } =
|
|
57
|
+
let { addGlobalListener, removeGlobalListener } = utils.$03deb23ff14920c4$export$4eaf04e54aa8eed6();
|
|
60
58
|
let { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21({
|
|
61
59
|
isDisabled,
|
|
62
60
|
onPressStart(e) {
|
|
@@ -69,6 +67,7 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
69
67
|
e.target.dispatchEvent(new PointerEvent("pointercancel", {
|
|
70
68
|
bubbles: true
|
|
71
69
|
}));
|
|
70
|
+
if (utils.$431fbd86ca7dc216$export$b204af158042fbac(e.target).activeElement !== e.target) utils.$7215afc6de606d6b$export$de79e2c695e052f3(e.target);
|
|
72
71
|
if (onLongPress) onLongPress(__spreadProps(__spreadValues({}, e), {
|
|
73
72
|
type: "longpress"
|
|
74
73
|
}));
|
|
@@ -103,8 +102,55 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
103
102
|
longPressProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(pressProps, descriptionProps)
|
|
104
103
|
};
|
|
105
104
|
}
|
|
105
|
+
function $55f9b1ae81f22853$export$76e4e37e5339496d(to) {
|
|
106
|
+
let from = $55f9b1ae81f22853$export$759df0d867455a91(utils.$431fbd86ca7dc216$export$b204af158042fbac(to));
|
|
107
|
+
if (from !== to) {
|
|
108
|
+
if (from) $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to);
|
|
109
|
+
if (to) $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function $55f9b1ae81f22853$export$6c5dc7e81d2cc29a(from, to) {
|
|
113
|
+
from.dispatchEvent(new FocusEvent("blur", {
|
|
114
|
+
relatedTarget: to
|
|
115
|
+
}));
|
|
116
|
+
from.dispatchEvent(new FocusEvent("focusout", {
|
|
117
|
+
bubbles: true,
|
|
118
|
+
relatedTarget: to
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
function $55f9b1ae81f22853$export$2b35b76d2e30e129(to, from) {
|
|
122
|
+
to.dispatchEvent(new FocusEvent("focus", {
|
|
123
|
+
relatedTarget: from
|
|
124
|
+
}));
|
|
125
|
+
to.dispatchEvent(new FocusEvent("focusin", {
|
|
126
|
+
bubbles: true,
|
|
127
|
+
relatedTarget: from
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
function $55f9b1ae81f22853$export$759df0d867455a91(document2) {
|
|
131
|
+
let activeElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(document2);
|
|
132
|
+
let activeDescendant = activeElement === null || activeElement === void 0 ? void 0 : activeElement.getAttribute("aria-activedescendant");
|
|
133
|
+
if (activeDescendant) return document2.getElementById(activeDescendant) || activeElement;
|
|
134
|
+
return activeElement;
|
|
135
|
+
}
|
|
106
136
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
107
|
-
return
|
|
137
|
+
return utils.$c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
138
|
+
}
|
|
139
|
+
function $feb5ffebff200149$export$c3d8340acf92597f(collectionRef, key) {
|
|
140
|
+
var _collectionRef_current, _collectionRef_current1;
|
|
141
|
+
let selector = `[data-key="${CSS.escape(String(key))}"]`;
|
|
142
|
+
let collection = (_collectionRef_current = collectionRef.current) === null || _collectionRef_current === void 0 ? void 0 : _collectionRef_current.dataset.collection;
|
|
143
|
+
if (collection) selector = `[data-collection="${CSS.escape(collection)}"]${selector}`;
|
|
144
|
+
return (_collectionRef_current1 = collectionRef.current) === null || _collectionRef_current1 === void 0 ? void 0 : _collectionRef_current1.querySelector(selector);
|
|
145
|
+
}
|
|
146
|
+
const $feb5ffebff200149$var$collectionMap = /* @__PURE__ */ new WeakMap();
|
|
147
|
+
function $feb5ffebff200149$export$881eb0d9f3605d9d(collection) {
|
|
148
|
+
let id = mergeProps.$bdb11010cef70236$export$f680877a34711e37();
|
|
149
|
+
$feb5ffebff200149$var$collectionMap.set(collection, id);
|
|
150
|
+
return id;
|
|
151
|
+
}
|
|
152
|
+
function $feb5ffebff200149$export$6aeb1680a0ae8741(collection) {
|
|
153
|
+
return $feb5ffebff200149$var$collectionMap.get(collection);
|
|
108
154
|
}
|
|
109
155
|
const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
110
156
|
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
@@ -157,11 +203,10 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
157
203
|
const navigateToKey = (key, childFocus) => {
|
|
158
204
|
if (key != null) {
|
|
159
205
|
if (manager.isLink(key) && linkBehavior === "selection" && selectOnFocus && !$feb5ffebff200149$export$d3e3bd3e26688c04(e)) {
|
|
160
|
-
var _scrollRef_current;
|
|
161
206
|
ReactDOM.flushSync(() => {
|
|
162
207
|
manager.setFocusedKey(key, childFocus);
|
|
163
208
|
});
|
|
164
|
-
let item = (
|
|
209
|
+
let item = $feb5ffebff200149$export$c3d8340acf92597f(ref, key);
|
|
165
210
|
let itemProps = manager.getItemProps(key);
|
|
166
211
|
if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
|
|
167
212
|
return;
|
|
@@ -285,7 +330,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
285
330
|
last = walker.lastChild();
|
|
286
331
|
if (last) next = last;
|
|
287
332
|
} while (last);
|
|
288
|
-
if (next && !next.contains(document.activeElement))
|
|
333
|
+
if (next && !next.contains(document.activeElement)) utils.$7215afc6de606d6b$export$de79e2c695e052f3(next);
|
|
289
334
|
}
|
|
290
335
|
break;
|
|
291
336
|
}
|
|
@@ -312,24 +357,24 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
312
357
|
manager.setFocused(true);
|
|
313
358
|
if (manager.focusedKey == null) {
|
|
314
359
|
var _delegate_getLastKey, _delegate_getFirstKey;
|
|
315
|
-
let
|
|
360
|
+
let navigateToKey = (key) => {
|
|
316
361
|
if (key != null) {
|
|
317
362
|
manager.setFocusedKey(key);
|
|
318
|
-
if (selectOnFocus) manager.replaceSelection(key);
|
|
363
|
+
if (selectOnFocus && !manager.isSelected(key)) manager.replaceSelection(key);
|
|
319
364
|
}
|
|
320
365
|
};
|
|
321
366
|
let relatedTarget = e.relatedTarget;
|
|
322
367
|
var _manager_lastSelectedKey, _manager_firstSelectedKey;
|
|
323
|
-
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING)
|
|
324
|
-
else
|
|
368
|
+
if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
|
|
369
|
+
else navigateToKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
|
|
325
370
|
} else if (!isVirtualized && scrollRef.current) {
|
|
326
371
|
scrollRef.current.scrollTop = scrollPos.current.top;
|
|
327
372
|
scrollRef.current.scrollLeft = scrollPos.current.left;
|
|
328
373
|
}
|
|
329
374
|
if (manager.focusedKey != null && scrollRef.current) {
|
|
330
|
-
let element =
|
|
331
|
-
if (element) {
|
|
332
|
-
if (!element.contains(document.activeElement))
|
|
375
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
376
|
+
if (element instanceof HTMLElement) {
|
|
377
|
+
if (!element.contains(document.activeElement) && !shouldUseVirtualFocus) utils.$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
333
378
|
let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
334
379
|
if (modality === "keyboard") scrollIntoView.$2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
335
380
|
containingElement: ref.current
|
|
@@ -352,11 +397,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
352
397
|
var _delegate_getFirstKey1;
|
|
353
398
|
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
354
399
|
if (keyToFocus == null) {
|
|
355
|
-
|
|
356
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
357
|
-
cancelable: true,
|
|
358
|
-
bubbles: true
|
|
359
|
-
}));
|
|
400
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
360
401
|
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
361
402
|
} else {
|
|
362
403
|
manager.setFocusedKey(keyToFocus);
|
|
@@ -379,11 +420,13 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
379
420
|
resetFocusFirstFlag
|
|
380
421
|
]);
|
|
381
422
|
useEvent.$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
423
|
+
var _e_detail;
|
|
382
424
|
e.stopPropagation();
|
|
383
425
|
manager.setFocused(false);
|
|
384
|
-
manager.setFocusedKey(null);
|
|
426
|
+
if ((_e_detail = e.detail) === null || _e_detail === void 0 ? void 0 : _e_detail.clearFocusKey) manager.setFocusedKey(null);
|
|
385
427
|
});
|
|
386
428
|
const autoFocusRef = React.useRef(autoFocus);
|
|
429
|
+
const didAutoFocusRef = React.useRef(false);
|
|
387
430
|
React.useEffect(() => {
|
|
388
431
|
if (autoFocusRef.current) {
|
|
389
432
|
var _delegate_getFirstKey, _delegate_getLastKey;
|
|
@@ -401,26 +444,30 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
401
444
|
}
|
|
402
445
|
manager.setFocused(true);
|
|
403
446
|
manager.setFocusedKey(focusedKey);
|
|
404
|
-
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) focusSafely.$
|
|
447
|
+
if (focusedKey == null && !shouldUseVirtualFocus && ref.current) focusSafely.$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
448
|
+
if (manager.collection.size > 0) {
|
|
449
|
+
autoFocusRef.current = false;
|
|
450
|
+
didAutoFocusRef.current = true;
|
|
451
|
+
}
|
|
405
452
|
}
|
|
406
|
-
}
|
|
453
|
+
});
|
|
407
454
|
let lastFocusedKey = React.useRef(manager.focusedKey);
|
|
408
455
|
React.useEffect(() => {
|
|
409
|
-
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current ||
|
|
456
|
+
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
410
457
|
let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
411
|
-
let element =
|
|
412
|
-
if (!element)
|
|
458
|
+
let element = $feb5ffebff200149$export$c3d8340acf92597f(ref, manager.focusedKey);
|
|
459
|
+
if (!(element instanceof HTMLElement))
|
|
413
460
|
return;
|
|
414
|
-
if (modality === "keyboard" ||
|
|
461
|
+
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
415
462
|
scrollIntoView.$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
416
463
|
if (modality !== "virtual") scrollIntoView.$2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
417
464
|
containingElement: ref.current
|
|
418
465
|
});
|
|
419
466
|
}
|
|
420
467
|
}
|
|
421
|
-
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) focusSafely.$
|
|
468
|
+
if (!shouldUseVirtualFocus && manager.isFocused && manager.focusedKey == null && lastFocusedKey.current != null && ref.current) focusSafely.$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
422
469
|
lastFocusedKey.current = manager.focusedKey;
|
|
423
|
-
|
|
470
|
+
didAutoFocusRef.current = false;
|
|
424
471
|
});
|
|
425
472
|
useEvent.$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
426
473
|
e.preventDefault();
|
|
@@ -442,10 +489,11 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
442
489
|
if (!disallowTypeAhead) handlers = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
443
490
|
let tabIndex = void 0;
|
|
444
491
|
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
445
|
-
|
|
492
|
+
let collectionId = $feb5ffebff200149$export$881eb0d9f3605d9d(manager.collection);
|
|
446
493
|
return {
|
|
447
|
-
collectionProps:
|
|
448
|
-
tabIndex
|
|
494
|
+
collectionProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(handlers, {
|
|
495
|
+
tabIndex,
|
|
496
|
+
"data-collection": collectionId
|
|
449
497
|
})
|
|
450
498
|
};
|
|
451
499
|
}
|
|
@@ -479,15 +527,8 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
479
527
|
if (isFocused && manager.isFocused) {
|
|
480
528
|
if (!shouldUseVirtualFocus) {
|
|
481
529
|
if (focus) focus();
|
|
482
|
-
else if (document.activeElement !== ref.current && ref.current) focusSafely.$
|
|
483
|
-
} else
|
|
484
|
-
var _ref_current;
|
|
485
|
-
let updateActiveDescendant = new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
486
|
-
cancelable: true,
|
|
487
|
-
bubbles: true
|
|
488
|
-
});
|
|
489
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(updateActiveDescendant);
|
|
490
|
-
}
|
|
530
|
+
else if (document.activeElement !== ref.current && ref.current) focusSafely.$3ad3f6e1647bc98d$export$80f3e147d781571c(ref.current);
|
|
531
|
+
} else $55f9b1ae81f22853$export$76e4e37e5339496d(ref.current);
|
|
491
532
|
}
|
|
492
533
|
}, [
|
|
493
534
|
ref,
|
|
@@ -561,8 +602,23 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
561
602
|
}
|
|
562
603
|
};
|
|
563
604
|
}
|
|
605
|
+
itemProps["data-collection"] = $feb5ffebff200149$export$6aeb1680a0ae8741(manager.collection);
|
|
564
606
|
itemProps["data-key"] = key;
|
|
565
607
|
itemPressProps.preventFocusOnPress = shouldUseVirtualFocus;
|
|
608
|
+
if (shouldUseVirtualFocus) itemPressProps = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(itemPressProps, {
|
|
609
|
+
onPressStart(e) {
|
|
610
|
+
if (e.pointerType !== "touch") {
|
|
611
|
+
manager.setFocused(true);
|
|
612
|
+
manager.setFocusedKey(key);
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
onPress(e) {
|
|
616
|
+
if (e.pointerType === "touch") {
|
|
617
|
+
manager.setFocused(true);
|
|
618
|
+
manager.setFocusedKey(key);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
});
|
|
566
622
|
let { pressProps, isPressed } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(itemPressProps);
|
|
567
623
|
let onDoubleClick = hasSecondaryAction ? (e) => {
|
|
568
624
|
if (modality.current === "mouse") {
|
|
@@ -587,12 +643,21 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
587
643
|
if (!usePress.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening) e.preventDefault();
|
|
588
644
|
} : void 0;
|
|
589
645
|
return {
|
|
590
|
-
itemProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
646
|
+
itemProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
647
|
+
itemProps,
|
|
648
|
+
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {},
|
|
649
|
+
longPressEnabled ? longPressProps : {},
|
|
650
|
+
{
|
|
651
|
+
onDoubleClick,
|
|
652
|
+
onDragStartCapture,
|
|
653
|
+
onClick,
|
|
654
|
+
id
|
|
655
|
+
},
|
|
656
|
+
// Prevent DOM focus from moving on mouse down when using virtual focus
|
|
657
|
+
shouldUseVirtualFocus ? {
|
|
658
|
+
onMouseDown: (e) => e.preventDefault()
|
|
659
|
+
} : void 0
|
|
660
|
+
),
|
|
596
661
|
isPressed,
|
|
597
662
|
isSelected: manager.isSelected(key),
|
|
598
663
|
isFocused: manager.isFocused && manager.focusedKey === key,
|
|
@@ -609,7 +674,9 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
|
|
|
609
674
|
let event = window.event;
|
|
610
675
|
return (event === null || event === void 0 ? void 0 : event.key) === " " || (event === null || event === void 0 ? void 0 : event.code) === "Space";
|
|
611
676
|
}
|
|
677
|
+
exports.$55f9b1ae81f22853$export$2b35b76d2e30e129 = $55f9b1ae81f22853$export$2b35b76d2e30e129;
|
|
612
678
|
exports.$880e95eb8b93ba9a$export$ecf600387e221c37 = $880e95eb8b93ba9a$export$ecf600387e221c37;
|
|
613
679
|
exports.$8a26561d2877236e$export$c24ed0104d07eab9 = $8a26561d2877236e$export$c24ed0104d07eab9;
|
|
614
680
|
exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c = $ae20dd8cbca75726$export$d6daf82dcd84e87c;
|
|
615
681
|
exports.$fb3050f43d946246$export$e32c88dfddc6e1d8 = $fb3050f43d946246$export$e32c88dfddc6e1d8;
|
|
682
|
+
exports.$feb5ffebff200149$export$c3d8340acf92597f = $feb5ffebff200149$export$c3d8340acf92597f;
|