@easypost/easy-ui 1.0.0-alpha.73 → 1.0.0-alpha.75
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/Button.d.ts.map +1 -1
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/Button/utilities.d.ts.map +1 -1
- package/CHANGELOG.md +21 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/Card.stories.d.ts.map +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/Checkbox.stories.d.ts.map +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +16 -16
- package/CodeBlock/index.mjs +17 -17
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +91 -80
- package/DataGrid/index.mjs +89 -78
- package/DataGrid/types.d.ts +96 -0
- package/DataGrid/types.d.ts.map +1 -0
- package/DatePicker/index.js +7 -7
- package/DatePicker/index.mjs +12 -12
- package/DateRangePicker/index.js +7 -7
- package/DateRangePicker/index.mjs +12 -12
- package/Drawer/Drawer.stories.d.ts.map +1 -1
- package/Drawer/index.js +28 -32
- package/Drawer/index.mjs +28 -32
- 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 +87 -57
- package/ForgeLayout/index.mjs +88 -58
- 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/KebabButton.d.ts.map +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/MenuItem.d.ts.map +1 -1
- package/Menu/MenuSection.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/Modal.stories.d.ts.map +1 -1
- package/Modal/index.js +23 -23
- package/Modal/index.mjs +23 -23
- package/MultiSelect/index.js +45 -45
- package/MultiSelect/index.mjs +38 -38
- package/NexusLayout/index.js +32 -32
- package/NexusLayout/index.mjs +33 -33
- package/Notification/Notification.stories.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/ProductLayout.stories.d.ts.map +1 -1
- package/ProductLayout/index.js +27 -27
- package/ProductLayout/index.mjs +27 -27
- package/Provider/index.js +3 -3
- package/Provider/index.mjs +3 -3
- package/RadioButtonGroup/index.js +6 -6
- 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/CTAGroup.d.ts.map +1 -1
- package/SearchNav/LogoGroup.d.ts.map +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/Select.stories.d.ts.map +1 -1
- package/Select/SelectOption.d.ts.map +1 -1
- package/Select/SelectSection.d.ts.map +1 -1
- 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/Stepper.stories.d.ts.map +1 -1
- 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/TabPanelsItem.d.ts.map +1 -1
- package/TabPanels/index.js +5 -5
- package/TabPanels/index.mjs +8 -8
- 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/Theme/index.js +1 -1
- package/Theme/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/Item.d.ts.map +1 -1
- package/VerticalNav/index.js +26 -26
- package/VerticalNav/index.mjs +27 -27
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-DhaXhFT-.mjs → Button-CSNMWizI.mjs} +5 -5
- package/__chunks__/{Button-E5WMp4Zg.js → Button-D9a9VZzF.js} +3 -3
- package/__chunks__/{Button-DHFTdAxF.js → Button-DA6XfGLP.js} +19 -19
- package/__chunks__/{Button-besQ0j6a.mjs → Button-cjD7z6sK.mjs} +19 -19
- package/__chunks__/{Calendar-p9rHaKwG.mjs → Calendar-B4BCW9t8.mjs} +2 -2
- package/__chunks__/{Calendar-C5woWpfH.js → Calendar-BGIbWVyN.js} +1 -1
- package/__chunks__/{CalendarBase-BUa-SUff.js → CalendarBase-BgzOdHfS.js} +23 -24
- package/__chunks__/{CalendarBase-mv9La5tR.mjs → CalendarBase-C_AQ7bu5.mjs} +27 -28
- package/__chunks__/{Card-DR2FXTv6.mjs → Card-DLf_ttOB.mjs} +12 -12
- package/__chunks__/{Card-DfhHosdD.js → Card-svNtJnxD.js} +12 -12
- package/__chunks__/{Checkbox-B7qn8pJg.mjs → Checkbox-BMBM6doF.mjs} +25 -25
- package/__chunks__/{Checkbox-BtIjmaiX.js → Checkbox-DEmP9BGE.js} +24 -24
- package/__chunks__/{CodeSnippet-Di6gtbdh.mjs → CodeSnippet-B6KCRlKQ.mjs} +50 -63
- package/__chunks__/{CodeSnippet-Cp3glUO1.js → CodeSnippet-BBZpDbHX.js} +50 -63
- package/__chunks__/{DatePickerBase-nYyQbAs_.mjs → DatePickerBase-VNenwOmb.mjs} +32 -32
- package/__chunks__/{DatePickerBase-D4UJlvkz.js → DatePickerBase-WNWiVJoF.js} +26 -26
- package/__chunks__/{Dialog-Bn6AgWyj.js → Dialog-Dde11Vfw.js} +7 -7
- package/__chunks__/{Dialog-CpCJycIv.mjs → Dialog-E2U6mUFU.mjs} +10 -10
- package/__chunks__/{FocusScope-Dg66t-dG.mjs → FocusScope-CQhiv02m.mjs} +3 -4
- package/__chunks__/{FocusScope-CL3-fUEU.js → FocusScope-DxiwSl55.js} +32 -33
- package/__chunks__/{HelpMenu-CLhpjJ6h.mjs → HelpMenu-Bed-PzGS.mjs} +7 -7
- package/__chunks__/{HelpMenu-DyhpQPI8.js → HelpMenu-CTNmYcKm.js} +7 -7
- package/__chunks__/{HorizontalGrid-CNc8k_zD.js → HorizontalGrid-CAwv7zKY.js} +1 -1
- package/__chunks__/{HorizontalGrid-7r8FL1aY.mjs → HorizontalGrid-Dz8EFgmu.mjs} +1 -1
- package/__chunks__/{HorizontalStack-BpcS3ASr.js → HorizontalStack-CXpjASZi.js} +1 -1
- package/__chunks__/{HorizontalStack-8RcZ4huI.mjs → HorizontalStack-CxE8tPx_.mjs} +1 -1
- package/__chunks__/{Icon-Dj1ar_iv.mjs → Icon-0SN9dbwU.mjs} +2 -2
- package/__chunks__/{Icon-lRxgQUlF.js → Icon-W8F9w-jS.js} +2 -2
- package/__chunks__/{InputCaption-Dh_ynOSC.mjs → InputCaption-CRtCXzV7.mjs} +2 -2
- package/__chunks__/{InputCaption-uusWFQO6.js → InputCaption-z01Eep0I.js} +2 -2
- package/__chunks__/{InputField-HW--yCbl.js → InputField-Bb98b1MA.js} +7 -7
- package/__chunks__/{InputField-Cc1uBSYb.mjs → InputField-Dm5yHcWV.mjs} +7 -7
- package/__chunks__/{InputIcon-C1dofAnd.mjs → InputIcon-B3t4QT3H.mjs} +31 -31
- package/__chunks__/{InputIcon-cFcmXohD.js → InputIcon-BIaAI6v9.js} +31 -31
- package/__chunks__/{KebabButton-AUlp_RzU.js → KebabButton-B9eYB6ZD.js} +5 -22
- package/__chunks__/{KebabButton-BTDy4F9A.mjs → KebabButton-gf3gFlb0.mjs} +7 -24
- package/__chunks__/{Menu-CqzvIQht.js → Menu-BVTFMAX-.js} +22 -22
- package/__chunks__/{Menu-CQghk0Xm.mjs → Menu-DJS86zDM.mjs} +23 -23
- package/__chunks__/{Notification-C5yNqG6B.js → Notification-BCS0ugaf.js} +23 -24
- package/__chunks__/{Notification-j6oXMj8T.mjs → Notification-lg6ggtug.mjs} +20 -21
- package/__chunks__/{Overlay-CwRnK9dm.js → Overlay-BqaNlC3s.js} +10 -10
- package/__chunks__/{Overlay-BtkNBEyr.mjs → Overlay-CG-kKp6T.mjs} +3 -3
- package/__chunks__/{PillGroup-Dv0EvyfJ.js → PillGroup-D-VEy6sn.js} +19 -19
- package/__chunks__/{PillGroup-DoUZjoCh.mjs → PillGroup-DZtHC3NK.mjs} +26 -26
- package/__chunks__/{RadioGroup-DhkWNcLj.js → RadioGroup-CDmT0FW5.js} +21 -21
- package/__chunks__/{RadioGroup-6LaX18PH.mjs → RadioGroup-ppUojVMB.mjs} +25 -25
- package/__chunks__/{RangeCalendar-BiJUNPv-.js → RangeCalendar-B5UtHhmt.js} +1 -1
- package/__chunks__/{RangeCalendar-DET0Ai4u.mjs → RangeCalendar-rMPxj6HM.mjs} +3 -3
- package/__chunks__/{SelectOverlay-CyK3RTnF.mjs → SelectOverlay-CG2jyYZ_.mjs} +32 -32
- package/__chunks__/{SelectOverlay-Cb0n9TrH.js → SelectOverlay-DgDBimW8.js} +28 -28
- package/__chunks__/{SelectorErrorTooltip-Dgl_s5PI.js → SelectorErrorTooltip-BfKzfYpQ.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-ixjoIXDZ.mjs → SelectorErrorTooltip-Dkuaiq7N.mjs} +4 -4
- package/__chunks__/{Spinner-C0O2rv-c.js → Spinner-BQg8KbBa.js} +4 -4
- package/__chunks__/{Spinner-_rvpJRN-.mjs → Spinner-C4B8utkI.mjs} +7 -7
- package/__chunks__/{Stepper-Bn1VUxUa.mjs → Stepper-Dbvg5Wn_.mjs} +28 -28
- package/__chunks__/{Stepper-BO0O4mnN.js → Stepper-lFftpFos.js} +27 -27
- package/__chunks__/{TabNav-Bicd788A.mjs → TabNav-CNAVzfBp.mjs} +1 -1
- package/__chunks__/{TabNav-DoPWkRzq.js → TabNav-D6mXxhua.js} +1 -1
- package/__chunks__/{Tabs-CcQ1UKFN.js → Tabs-9z2E6ZhV.js} +19 -19
- package/__chunks__/{Tabs-CtdBEP39.mjs → Tabs-Chw75GHi.mjs} +20 -20
- package/__chunks__/{Text-Bx5xQvLg.mjs → Text-BYGcKHR7.mjs} +40 -40
- package/__chunks__/{Text-BMoA0yMR.js → Text-DZ601qf9.js} +40 -40
- package/__chunks__/{TextField-Bi1S8cvA.js → TextField-Co8OtDnO.js} +1 -1
- package/__chunks__/{TextField-3cY3nKBn.mjs → TextField-HXNCIy4W.mjs} +1 -1
- package/__chunks__/{Theme-ByVPHaBx.mjs → Theme-CctofSlt.mjs} +1 -1
- package/__chunks__/{Theme-BTOgcCP2.js → Theme-Ck5K42IR.js} +1 -1
- package/__chunks__/{Toggle-8B3f76vx.js → Toggle-C1cAD3ld.js} +14 -14
- package/__chunks__/{Toggle-BVf2PQk2.mjs → Toggle-Dm0_ZvLs.mjs} +15 -15
- package/__chunks__/{Tooltip-7XwvrZnA.js → Tooltip-C9bST6SD.js} +13 -13
- package/__chunks__/{Tooltip-BEhsOxJe.mjs → Tooltip-DzWQUbuB.mjs} +14 -14
- package/__chunks__/{UnstyledButton-aKk2POM3.mjs → UnstyledButton-D0_XmlIu.mjs} +2 -2
- package/__chunks__/{UnstyledButton-BNciIRwZ.js → UnstyledButton-d3ChgECf.js} +1 -1
- package/__chunks__/{VerticalStack-7ngWLZ9D.mjs → VerticalStack-C2yDQVHD.mjs} +3 -3
- package/__chunks__/{VerticalStack-8rmfIYQv.js → VerticalStack-Dzpv3O67.js} +3 -3
- package/__chunks__/{VisuallyHidden-BW8z0u63.mjs → VisuallyHidden-Buyb8r_B.mjs} +2 -2
- package/__chunks__/{VisuallyHidden-CxznJ2eH.js → VisuallyHidden-Cl5AQsPA.js} +1 -1
- package/__chunks__/{ariaHideOutside-CCOx7fIt.js → ariaHideOutside-7ae_6If3.js} +5 -5
- package/__chunks__/{ariaHideOutside-BWTlv_g_.mjs → ariaHideOutside-b0UviP2F.mjs} +4 -4
- package/__chunks__/{context-BZH2zfKM.mjs → context-C5QKMZmh.mjs} +1 -1
- package/__chunks__/{context-B-dkBtcD.js → focusSafely-CucekFxc.js} +12 -0
- package/__chunks__/{context-ClcSNaYl.mjs → focusSafely-psnzsNzD.mjs} +15 -3
- package/__chunks__/{mergeProps-C4OYS8Nd.mjs → mergeProps-DRsiQq2k.mjs} +5 -5
- package/__chunks__/objectWithoutPropertiesLoose-C4Mip8ZU.js +21 -0
- package/__chunks__/objectWithoutPropertiesLoose-COdxq1Ge.mjs +22 -0
- package/__chunks__/{scrollIntoView-1v0vfaIN.mjs → scrollIntoView-DSPpbfzY.mjs} +1 -1
- package/__chunks__/{tokens-BolVbjJp.mjs → tokens-CyXKQDx6.mjs} +142 -142
- package/__chunks__/{tokens-BmCk-Bk0.js → tokens-MDLCVf35.js} +142 -142
- package/__chunks__/{useButton-B8EwIeGA.mjs → useButton-Doz4-YMS.mjs} +3 -3
- package/__chunks__/{useButton-BUzZ-5VB.js → useButton-SSooC6Sc.js} +2 -2
- package/__chunks__/{useCollator-CYCg6wMz.mjs → useCollator-DiblLehW.mjs} +1 -1
- package/__chunks__/{useDialog-mJmFmECS.mjs → useDialog-B6qJASRh.mjs} +3 -3
- package/__chunks__/{useDialog-BkTg_V3k.js → useDialog-CmV1awNZ.js} +2 -2
- package/__chunks__/{useEdgeInterceptors-DtSwXFEP.mjs → useEdgeInterceptors-D_DARZZd.mjs} +5 -5
- package/__chunks__/{useEdgeInterceptors-BTw8xzQs.js → useEdgeInterceptors-Ihk8NfjJ.js} +5 -5
- package/__chunks__/{useEvent-DUet8f_n.mjs → useEvent-BR4RE1uc.mjs} +1 -1
- package/__chunks__/{useField-CQfJ37Nt.mjs → useField-D71RzzwQ.mjs} +2 -2
- package/__chunks__/{useFilter-D3MAuO1e.mjs → useFilter-Cd0PVtCe.mjs} +1 -1
- package/__chunks__/{useFocus-BR2JUcSC.mjs → useFocus-BL_s_3zv.mjs} +1 -1
- package/__chunks__/{useFocus-CMM1E_s1.js → useFocus-Da6IfenG.js} +5 -5
- package/__chunks__/{useFocusRing-BbxvDonI.mjs → useFocusRing-4hM0Ggs3.mjs} +3 -3
- package/__chunks__/{useFocusRing-BTr2SNa0.js → useFocusRing-CtLKOxxD.js} +3 -3
- package/__chunks__/{utils-DTjlhnVc.js → useFocusVisible-CLoIPL6T.js} +181 -3
- package/__chunks__/{utils-_T25xnBK.mjs → useFocusVisible-CQ1e0o7u.mjs} +201 -24
- package/__chunks__/{useFocusWithin-DMidhx8C.mjs → useFocusWithin-BgSjulWP.mjs} +1 -1
- package/__chunks__/{useFocusWithin-B1KKdipT.js → useFocusWithin-T1vqkUYN.js} +8 -8
- package/__chunks__/{useFocusable-BQyiLqbY.mjs → useFocusable-C-Ge2Ht4.mjs} +3 -4
- package/__chunks__/{useFocusable-6aWd3xB2.js → useFocusable-DRHM1otK.js} +5 -6
- package/__chunks__/{useFormReset-DwIsbrAk.mjs → useFormReset-BUBASXJO.mjs} +1 -1
- package/__chunks__/{useFormValidation-SckXeoUZ.mjs → useFormValidation-Crn66hAu.mjs} +2 -2
- package/__chunks__/{useFormValidation-BqUyj3MW.js → useFormValidation-DaCYT2Ut.js} +1 -1
- package/__chunks__/{useHasTabbableChild-BkKbzCwx.mjs → useHasTabbableChild-DQC24yLO.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-OzJPDs7u.js → useHasTabbableChild-DSm3UrCF.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-DDHTMZiR.js → useHighlightSelectionDescription-B49pg43a.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-C3ZHe657.mjs → useHighlightSelectionDescription-BGq4guwQ.mjs} +4 -4
- package/__chunks__/{useHover-DpEGMvo6.mjs → useHover-BBXJy5NT.mjs} +1 -1
- package/__chunks__/{useHover-NuBBFo1D.js → useHover-BCKoTdS5.js} +4 -4
- package/__chunks__/{useLabel-B3S3Miea.mjs → useLabel-CMWuiLM0.mjs} +2 -2
- package/__chunks__/{useLabels-ClfID0sX.mjs → useLabels-DCSAqT2C.mjs} +1 -1
- package/__chunks__/{useLink-DyvPn11c.js → useLink-DihQM2-s.js} +2 -2
- package/__chunks__/{useLink-WThPkjA2.mjs → useLink-Dmu5rS4r.mjs} +3 -3
- package/__chunks__/{useListBoxSection-8W_ApdBB.mjs → useListBoxSection-CpQ4pADf.mjs} +8 -9
- package/__chunks__/{useListBoxSection-rWvzEd35.js → useListBoxSection-u2FxpXWK.js} +7 -8
- package/__chunks__/{useLocalizedStringFormatter-BhtDVRd3.mjs → useLocalizedStringFormatter-SC1Py3Uf.mjs} +1 -1
- package/__chunks__/{useMenuTrigger-D1J5fKGN.mjs → useMenuTrigger-BlLkvrnl.mjs} +5 -5
- package/__chunks__/{useMenuTrigger-BVkF1AqM.js → useMenuTrigger-Dq7mhK38.js} +4 -4
- package/__chunks__/{useMenuTriggerState-BtbgVHYJ.mjs → useMenuTriggerState-C-zvqrX2.mjs} +1 -1
- package/__chunks__/{useMenuTriggerState-Skj7UUPq.js → useMenuTriggerState-DmsfK2RH.js} +1 -1
- package/__chunks__/{useModalOverlay-USYfWlZ0.mjs → useModalOverlay-BlCaGnUr.mjs} +3 -3
- package/__chunks__/{useModalOverlay-VZIDHsXZ.js → useModalOverlay-C_b9YfI9.js} +2 -2
- package/__chunks__/{useOverlayPosition-4b_rkosH.js → useOverlayPosition-BIRVQjJL.js} +3 -3
- package/__chunks__/{useOverlayPosition-vVuqBjvk.mjs → useOverlayPosition-D8MX_oIt.mjs} +4 -4
- package/__chunks__/{useOverlayTrigger-Df2Gw0ns.js → useOverlayTrigger-BJJgq7LS.js} +1 -1
- package/__chunks__/{useOverlayTrigger-C_ezbQv8.mjs → useOverlayTrigger-Coc4zW72.mjs} +2 -2
- package/__chunks__/{usePress-CMfwAyab.mjs → usePress-BH70cn5g.mjs} +3 -3
- package/__chunks__/{usePress-BkfhIu8i.js → usePress-DchxjERD.js} +53 -53
- package/__chunks__/{useSelectableItem-DyTPlPnm.js → useSelectableItem-CxOGkw0W.js} +12 -13
- package/__chunks__/{useSelectableItem-DR0zbOkr.mjs → useSelectableItem-Xr4pjjqP.mjs} +8 -9
- package/__chunks__/{useSelectableList-CPXWkbh2.mjs → useSelectableList-D7mL6j6I.mjs} +2 -2
- package/__chunks__/{useSelectableList-CORVRfbM.js → useSelectableList-F9Rfjy4j.js} +1 -1
- package/__chunks__/{useTextField-BMdTAdta.mjs → useTextField-Dn8JlzYF.mjs} +6 -6
- package/__chunks__/{useTextField-CLVShmFK.js → useTextField-USpUKriF.js} +4 -4
- package/__chunks__/{useToggle-XRd89s8O.mjs → useToggle-BlKdU7Ta.mjs} +4 -4
- package/__chunks__/{useToggle-ARrVy-Wa.js → useToggle-CRkaTfEP.js} +2 -2
- package/__chunks__/{utilities-9S1EwfZA.mjs → utilities-BB2zmROs.mjs} +6 -6
- package/__chunks__/{utilities-1DzM5WE1.js → utilities-x6Aiy1EG.js} +3 -3
- package/__chunks__/{utils-VVmFE3B0.mjs → utils-CwzguevQ.mjs} +1 -1
- package/package.json +3 -3
- package/style.css +1226 -1325
- package/utilities/react.d.ts.map +1 -1
- package/utilities/storybook.d.ts +12 -88
- package/utilities/storybook.d.ts.map +1 -1
- package/__chunks__/focusSafely-DLX4i5KV.js +0 -15
- package/__chunks__/focusSafely-MpYXzuLP.mjs +0 -16
- package/__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js +0 -29
- package/__chunks__/objectWithoutPropertiesLoose-ij10PUAf.mjs +0 -30
- package/__chunks__/useFocusVisible-DFYEx6se.js +0 -182
- package/__chunks__/useFocusVisible-D_XXcaLm.mjs +0 -183
package/utilities/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/utilities/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,GAAG,EAEH,YAAY,EACZ,SAAS,EAGV,MAAM,OAAO,CAAC;AAGf;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,EACnB,KAAK,GAAE,MAAU,EACjB,IAAI,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,GAC7B,SAAS,EAAE,CA4Bb;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,MAAM,4EASpB;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,sBAM/D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,GAAG,GAAG,IAAI,EACf,KAAK,GAAE,MAAU,EACjB,UAAU,GAAE,MAAM,GAAG,GAAQ,GAC5B,MAAM,GAAG,GAAG,CASd;AAyBD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,EACjC,UAAU,EAAE,CACV,KAAK,EAAE,SAAS,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,SAAS,EAAE,KACnB,OAAO,GACX,SAAS,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/utilities/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,GAAG,EAEH,YAAY,EACZ,SAAS,EAGV,MAAM,OAAO,CAAC;AAGf;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,SAAS,EACnB,KAAK,GAAE,MAAU,EACjB,IAAI,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,GAC7B,SAAS,EAAE,CA4Bb;AAED,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,MAAM,4EASpB;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,sBAM/D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,GAAG,GAAG,IAAI,EACf,KAAK,GAAE,MAAU,EACjB,UAAU,GAAE,MAAM,GAAG,GAAQ,GAC5B,MAAM,GAAG,GAAG,CASd;AAyBD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,EACjC,UAAU,EAAE,CACV,KAAK,EAAE,SAAS,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,SAAS,EAAE,KACnB,OAAO,GACX,SAAS,GAAG,SAAS,CAqBvB"}
|
package/utilities/storybook.d.ts
CHANGED
|
@@ -2,94 +2,18 @@ import { Decorator } from "@storybook/react";
|
|
|
2
2
|
import React, { ComponentProps, ReactNode, SVGProps } from "react";
|
|
3
3
|
import type { Placement as AriaPlacement } from "react-aria";
|
|
4
4
|
import { SortDescriptor } from "react-stately";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type: string;
|
|
18
|
-
labels: {};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export declare function createColorTokensControl(): {
|
|
22
|
-
options: string[];
|
|
23
|
-
mapping: Record<string, unknown>;
|
|
24
|
-
control: {
|
|
25
|
-
type: string;
|
|
26
|
-
labels: {};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export declare function createShadowTokensControl(): {
|
|
30
|
-
options: string[];
|
|
31
|
-
mapping: Record<string, unknown>;
|
|
32
|
-
control: {
|
|
33
|
-
type: string;
|
|
34
|
-
labels: {};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
export declare function createBorderRadiusTokensControl(): {
|
|
38
|
-
options: string[];
|
|
39
|
-
mapping: Record<string, unknown>;
|
|
40
|
-
control: {
|
|
41
|
-
type: string;
|
|
42
|
-
labels: {};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export declare function getDesignTokensControl(pattern: string): {
|
|
46
|
-
options: string[];
|
|
47
|
-
mapping: Record<string, unknown>;
|
|
48
|
-
control: {
|
|
49
|
-
type: string;
|
|
50
|
-
labels: {};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
export declare function getThemeTokensControl(pattern: string): {
|
|
54
|
-
options: string[];
|
|
55
|
-
mapping: Record<string, unknown>;
|
|
56
|
-
control: {
|
|
57
|
-
type: string;
|
|
58
|
-
labels: {};
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export declare function getFilledButtonsColorMapping(): {
|
|
62
|
-
options: string[];
|
|
63
|
-
mapping: Record<string, unknown>;
|
|
64
|
-
control: {
|
|
65
|
-
type: string;
|
|
66
|
-
labels: {};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare function getOutlinedButtonsColorMapping(): {
|
|
70
|
-
options: string[];
|
|
71
|
-
mapping: Record<string, unknown>;
|
|
72
|
-
control: {
|
|
73
|
-
type: string;
|
|
74
|
-
labels: {};
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
export declare function getLinkButtonsColorMapping(): {
|
|
78
|
-
options: string[];
|
|
79
|
-
mapping: Record<string, unknown>;
|
|
80
|
-
control: {
|
|
81
|
-
type: string;
|
|
82
|
-
labels: {};
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
export declare function getTextButtonsColorMapping(): {
|
|
86
|
-
options: string[];
|
|
87
|
-
mapping: Record<string, unknown>;
|
|
88
|
-
control: {
|
|
89
|
-
type: string;
|
|
90
|
-
labels: {};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
5
|
+
import { InputType } from "storybook/internal/types";
|
|
6
|
+
export declare function createLabelledOptionsControl(opts: Record<string, unknown>, control?: {}, restProps?: {}): InputType;
|
|
7
|
+
export declare function createFontStyleTokensControl(): InputType;
|
|
8
|
+
export declare function createColorTokensControl(): InputType;
|
|
9
|
+
export declare function createShadowTokensControl(): InputType;
|
|
10
|
+
export declare function createBorderRadiusTokensControl(): InputType;
|
|
11
|
+
export declare function getDesignTokensControl(pattern: string): InputType;
|
|
12
|
+
export declare function getThemeTokensControl(pattern: string): InputType;
|
|
13
|
+
export declare function getFilledButtonsColorMapping(): InputType;
|
|
14
|
+
export declare function getOutlinedButtonsColorMapping(): InputType;
|
|
15
|
+
export declare function getLinkButtonsColorMapping(): InputType;
|
|
16
|
+
export declare function getTextButtonsColorMapping(): InputType;
|
|
93
17
|
export declare const InlineStoryDecorator: Decorator;
|
|
94
18
|
export declare const InlineStoryOnDarkBackgroundDecorator: Decorator;
|
|
95
19
|
export declare const FullScreenStoryPreviewStyle: () => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../src/utilities/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../src/utilities/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,KAAK,EACZ,SAAS,KAAK,GACb,SAAS,CAWX;AAED,wBAAgB,4BAA4B,cAE3C;AAED,wBAAgB,wBAAwB,cAEvC;AAED,wBAAgB,yBAAyB,cAExC;AAED,wBAAgB,+BAA+B,cAE9C;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,aAErD;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,aAEpD;AAQD,wBAAgB,4BAA4B,cAe3C;AAED,wBAAgB,8BAA8B,cAe7C;AAED,wBAAgB,0BAA0B,cAczC;AAED,wBAAgB,0BAA0B,cAczC;AAcD,eAAO,MAAM,oBAAoB,EAAE,SAIlC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,SAIlD,CAAC;AAGF,eAAO,MAAM,2BAA2B,yBAUvC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAgCpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAazB,aAAa,EAAE,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,wCAKxB,mBAAmB,sBAgBrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAW5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAgB1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAwB9D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAkBxD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,qBAOtD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,qBAOxD;AAED,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,cAAc,OAC5D,MAAM,KAAK,MAAM,YAQ7B;AAED,wBAAgB,cAAc,sBAgC7B;AAKD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,qBAEvE;AAED,wBAAgB,aAAa,wBA2B5B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-DFYEx6se.js");
|
|
3
|
-
const utils = require("./utils-DTjlhnVc.js");
|
|
4
|
-
const context = require("./context-B-dkBtcD.js");
|
|
5
|
-
function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
|
|
6
|
-
const ownerDocument = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
7
|
-
const activeElement = utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
8
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
9
|
-
let lastFocusedElement = activeElement;
|
|
10
|
-
context.$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
11
|
-
if (utils.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected) utils.$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
12
|
-
});
|
|
13
|
-
} else utils.$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
14
|
-
}
|
|
15
|
-
exports.$3ad3f6e1647bc98d$export$80f3e147d781571c = $3ad3f6e1647bc98d$export$80f3e147d781571c;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-D_XXcaLm.mjs";
|
|
2
|
-
import { a as $431fbd86ca7dc216$export$b204af158042fbac, c as $d4ee10de306f2510$export$cd4e5573fbe2b576, d as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./utils-_T25xnBK.mjs";
|
|
3
|
-
import { $ as $bbed8b41f857bcc0$export$24490316f764c430 } from "./context-ClcSNaYl.mjs";
|
|
4
|
-
function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
|
|
5
|
-
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
6
|
-
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
7
|
-
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
8
|
-
let lastFocusedElement = activeElement;
|
|
9
|
-
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
10
|
-
if ($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
11
|
-
});
|
|
12
|
-
} else $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
$3ad3f6e1647bc98d$export$80f3e147d781571c as $
|
|
16
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function _extends() {
|
|
3
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
4
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
5
|
-
var source = arguments[i];
|
|
6
|
-
for (var key in source) {
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8
|
-
target[key] = source[key];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return target;
|
|
13
|
-
};
|
|
14
|
-
return _extends.apply(this, arguments);
|
|
15
|
-
}
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
17
|
-
if (source == null) return {};
|
|
18
|
-
var target = {};
|
|
19
|
-
var sourceKeys = Object.keys(source);
|
|
20
|
-
var key, i;
|
|
21
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
22
|
-
key = sourceKeys[i];
|
|
23
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
24
|
-
target[key] = source[key];
|
|
25
|
-
}
|
|
26
|
-
return target;
|
|
27
|
-
}
|
|
28
|
-
exports._extends = _extends;
|
|
29
|
-
exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
3
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
4
|
-
var source = arguments[i];
|
|
5
|
-
for (var key in source) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
7
|
-
target[key] = source[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return target;
|
|
12
|
-
};
|
|
13
|
-
return _extends.apply(this, arguments);
|
|
14
|
-
}
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
16
|
-
if (source == null) return {};
|
|
17
|
-
var target = {};
|
|
18
|
-
var sourceKeys = Object.keys(source);
|
|
19
|
-
var key, i;
|
|
20
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
21
|
-
key = sourceKeys[i];
|
|
22
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
23
|
-
target[key] = source[key];
|
|
24
|
-
}
|
|
25
|
-
return target;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
_objectWithoutPropertiesLoose as _,
|
|
29
|
-
_extends as a
|
|
30
|
-
};
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const utils = require("./utils-DTjlhnVc.js");
|
|
3
|
-
const React = require("react");
|
|
4
|
-
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
5
|
-
let $507fabe10e71c6fb$var$currentModality = null;
|
|
6
|
-
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
7
|
-
let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
8
|
-
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
9
|
-
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
10
|
-
const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
11
|
-
Tab: true,
|
|
12
|
-
Escape: true
|
|
13
|
-
};
|
|
14
|
-
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
15
|
-
for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
|
|
16
|
-
}
|
|
17
|
-
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
18
|
-
return !(e.metaKey || !utils.$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
19
|
-
}
|
|
20
|
-
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
21
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
22
|
-
if ($507fabe10e71c6fb$var$isValidKey(e)) {
|
|
23
|
-
$507fabe10e71c6fb$var$currentModality = "keyboard";
|
|
24
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
28
|
-
$507fabe10e71c6fb$var$currentModality = "pointer";
|
|
29
|
-
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
30
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
31
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
35
|
-
if (utils.$6a7db85432448f7f$export$60278871457622de(e)) {
|
|
36
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
37
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
41
|
-
if (e.target === window || e.target === document || utils.$8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted) return;
|
|
42
|
-
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
43
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
44
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
45
|
-
}
|
|
46
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
47
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
48
|
-
}
|
|
49
|
-
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
50
|
-
if (utils.$8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
|
|
51
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
52
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
53
|
-
}
|
|
54
|
-
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
55
|
-
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get(utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
56
|
-
const windowObject = utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
57
|
-
const documentObject = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
58
|
-
let focus = windowObject.HTMLElement.prototype.focus;
|
|
59
|
-
windowObject.HTMLElement.prototype.focus = function() {
|
|
60
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
61
|
-
focus.apply(this, arguments);
|
|
62
|
-
};
|
|
63
|
-
documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
64
|
-
documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
65
|
-
documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
66
|
-
windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
67
|
-
windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
68
|
-
if (typeof PointerEvent !== "undefined") {
|
|
69
|
-
documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
70
|
-
documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
71
|
-
documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
72
|
-
} else {
|
|
73
|
-
documentObject.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
74
|
-
documentObject.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
75
|
-
documentObject.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
76
|
-
}
|
|
77
|
-
windowObject.addEventListener("beforeunload", () => {
|
|
78
|
-
$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
|
|
79
|
-
}, {
|
|
80
|
-
once: true
|
|
81
|
-
});
|
|
82
|
-
$507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
|
|
83
|
-
focus
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
|
|
87
|
-
const windowObject = utils.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
88
|
-
const documentObject = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
89
|
-
if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
90
|
-
if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
|
|
91
|
-
windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
|
|
92
|
-
documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
93
|
-
documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
94
|
-
documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
95
|
-
windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
96
|
-
windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
97
|
-
if (typeof PointerEvent !== "undefined") {
|
|
98
|
-
documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
99
|
-
documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
100
|
-
documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
101
|
-
} else {
|
|
102
|
-
documentObject.removeEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
103
|
-
documentObject.removeEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
104
|
-
documentObject.removeEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
105
|
-
}
|
|
106
|
-
$507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
|
|
107
|
-
};
|
|
108
|
-
function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
|
|
109
|
-
const documentObject = utils.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
110
|
-
let loadListener;
|
|
111
|
-
if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
112
|
-
else {
|
|
113
|
-
loadListener = () => {
|
|
114
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
115
|
-
};
|
|
116
|
-
documentObject.addEventListener("DOMContentLoaded", loadListener);
|
|
117
|
-
}
|
|
118
|
-
return () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
|
|
119
|
-
}
|
|
120
|
-
if (typeof document !== "undefined") $507fabe10e71c6fb$export$2f1888112f558a7d();
|
|
121
|
-
function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
122
|
-
return $507fabe10e71c6fb$var$currentModality !== "pointer";
|
|
123
|
-
}
|
|
124
|
-
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
125
|
-
return $507fabe10e71c6fb$var$currentModality;
|
|
126
|
-
}
|
|
127
|
-
function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
|
|
128
|
-
$507fabe10e71c6fb$var$currentModality = modality;
|
|
129
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
|
|
130
|
-
}
|
|
131
|
-
function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
132
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
133
|
-
let [modality, setModality] = React.useState($507fabe10e71c6fb$var$currentModality);
|
|
134
|
-
React.useEffect(() => {
|
|
135
|
-
let handler = () => {
|
|
136
|
-
setModality($507fabe10e71c6fb$var$currentModality);
|
|
137
|
-
};
|
|
138
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
139
|
-
return () => {
|
|
140
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
141
|
-
};
|
|
142
|
-
}, []);
|
|
143
|
-
return mergeProps.$b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
|
|
144
|
-
}
|
|
145
|
-
const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
146
|
-
"checkbox",
|
|
147
|
-
"radio",
|
|
148
|
-
"range",
|
|
149
|
-
"color",
|
|
150
|
-
"file",
|
|
151
|
-
"image",
|
|
152
|
-
"button",
|
|
153
|
-
"submit",
|
|
154
|
-
"reset"
|
|
155
|
-
]);
|
|
156
|
-
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
157
|
-
let document1 = utils.$431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
|
|
158
|
-
const IHTMLInputElement = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
159
|
-
const IHTMLTextAreaElement = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
160
|
-
const IHTMLElement = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
161
|
-
const IKeyboardEvent = typeof window !== "undefined" ? utils.$431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
162
|
-
isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
|
|
163
|
-
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
164
|
-
}
|
|
165
|
-
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
166
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
167
|
-
React.useEffect(() => {
|
|
168
|
-
let handler = (modality, e) => {
|
|
169
|
-
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
|
|
170
|
-
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
171
|
-
};
|
|
172
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
173
|
-
return () => {
|
|
174
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
175
|
-
};
|
|
176
|
-
}, deps);
|
|
177
|
-
}
|
|
178
|
-
exports.$507fabe10e71c6fb$export$630ff653c5ada6a9 = $507fabe10e71c6fb$export$630ff653c5ada6a9;
|
|
179
|
-
exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a = $507fabe10e71c6fb$export$8397ddfc504fdb9a;
|
|
180
|
-
exports.$507fabe10e71c6fb$export$98e20ec92f614cfe = $507fabe10e71c6fb$export$98e20ec92f614cfe;
|
|
181
|
-
exports.$507fabe10e71c6fb$export$b9b3dfddab17db27 = $507fabe10e71c6fb$export$b9b3dfddab17db27;
|
|
182
|
-
exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3 = $507fabe10e71c6fb$export$ec71b4b83ac08ec3;
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { g as $431fbd86ca7dc216$export$f21a1ffae260145a, a as $431fbd86ca7dc216$export$b204af158042fbac, h as $6a7db85432448f7f$export$60278871457622de, i as $8a9cb279dc87e130$export$fda7da73ab5d4c48, j as $c87311424ea30a05$export$9ac100e40613ea10 } from "./utils-_T25xnBK.mjs";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import { a as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-C4OYS8Nd.mjs";
|
|
4
|
-
let $507fabe10e71c6fb$var$currentModality = null;
|
|
5
|
-
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
6
|
-
let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
7
|
-
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
8
|
-
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
9
|
-
const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
10
|
-
Tab: true,
|
|
11
|
-
Escape: true
|
|
12
|
-
};
|
|
13
|
-
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
14
|
-
for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
|
|
15
|
-
}
|
|
16
|
-
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
17
|
-
return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
18
|
-
}
|
|
19
|
-
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
20
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
21
|
-
if ($507fabe10e71c6fb$var$isValidKey(e)) {
|
|
22
|
-
$507fabe10e71c6fb$var$currentModality = "keyboard";
|
|
23
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
27
|
-
$507fabe10e71c6fb$var$currentModality = "pointer";
|
|
28
|
-
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
29
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
30
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
34
|
-
if ($6a7db85432448f7f$export$60278871457622de(e)) {
|
|
35
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
36
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
40
|
-
if (e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted) return;
|
|
41
|
-
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
42
|
-
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
43
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
44
|
-
}
|
|
45
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
46
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
47
|
-
}
|
|
48
|
-
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
49
|
-
if ($8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
|
|
50
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
51
|
-
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
52
|
-
}
|
|
53
|
-
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
54
|
-
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
55
|
-
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
56
|
-
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
57
|
-
let focus = windowObject.HTMLElement.prototype.focus;
|
|
58
|
-
windowObject.HTMLElement.prototype.focus = function() {
|
|
59
|
-
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
60
|
-
focus.apply(this, arguments);
|
|
61
|
-
};
|
|
62
|
-
documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
63
|
-
documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
64
|
-
documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
65
|
-
windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
66
|
-
windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
67
|
-
if (typeof PointerEvent !== "undefined") {
|
|
68
|
-
documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
69
|
-
documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
70
|
-
documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
71
|
-
} else {
|
|
72
|
-
documentObject.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
73
|
-
documentObject.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
74
|
-
documentObject.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
75
|
-
}
|
|
76
|
-
windowObject.addEventListener("beforeunload", () => {
|
|
77
|
-
$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
|
|
78
|
-
}, {
|
|
79
|
-
once: true
|
|
80
|
-
});
|
|
81
|
-
$507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
|
|
82
|
-
focus
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
|
|
86
|
-
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
87
|
-
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
88
|
-
if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
89
|
-
if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
|
|
90
|
-
windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
|
|
91
|
-
documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
92
|
-
documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
93
|
-
documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
94
|
-
windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
95
|
-
windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
96
|
-
if (typeof PointerEvent !== "undefined") {
|
|
97
|
-
documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
98
|
-
documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
99
|
-
documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
100
|
-
} else {
|
|
101
|
-
documentObject.removeEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
102
|
-
documentObject.removeEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
103
|
-
documentObject.removeEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
104
|
-
}
|
|
105
|
-
$507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
|
|
106
|
-
};
|
|
107
|
-
function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
|
|
108
|
-
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
109
|
-
let loadListener;
|
|
110
|
-
if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
111
|
-
else {
|
|
112
|
-
loadListener = () => {
|
|
113
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
114
|
-
};
|
|
115
|
-
documentObject.addEventListener("DOMContentLoaded", loadListener);
|
|
116
|
-
}
|
|
117
|
-
return () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
|
|
118
|
-
}
|
|
119
|
-
if (typeof document !== "undefined") $507fabe10e71c6fb$export$2f1888112f558a7d();
|
|
120
|
-
function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
121
|
-
return $507fabe10e71c6fb$var$currentModality !== "pointer";
|
|
122
|
-
}
|
|
123
|
-
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
124
|
-
return $507fabe10e71c6fb$var$currentModality;
|
|
125
|
-
}
|
|
126
|
-
function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
|
|
127
|
-
$507fabe10e71c6fb$var$currentModality = modality;
|
|
128
|
-
$507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
|
|
129
|
-
}
|
|
130
|
-
function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
131
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
132
|
-
let [modality, setModality] = useState($507fabe10e71c6fb$var$currentModality);
|
|
133
|
-
useEffect(() => {
|
|
134
|
-
let handler = () => {
|
|
135
|
-
setModality($507fabe10e71c6fb$var$currentModality);
|
|
136
|
-
};
|
|
137
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
138
|
-
return () => {
|
|
139
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
140
|
-
};
|
|
141
|
-
}, []);
|
|
142
|
-
return $b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
|
|
143
|
-
}
|
|
144
|
-
const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
145
|
-
"checkbox",
|
|
146
|
-
"radio",
|
|
147
|
-
"range",
|
|
148
|
-
"color",
|
|
149
|
-
"file",
|
|
150
|
-
"image",
|
|
151
|
-
"button",
|
|
152
|
-
"submit",
|
|
153
|
-
"reset"
|
|
154
|
-
]);
|
|
155
|
-
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
156
|
-
let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
|
|
157
|
-
const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
158
|
-
const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
159
|
-
const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
160
|
-
const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
161
|
-
isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
|
|
162
|
-
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
163
|
-
}
|
|
164
|
-
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
165
|
-
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
166
|
-
useEffect(() => {
|
|
167
|
-
let handler = (modality, e) => {
|
|
168
|
-
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
|
|
169
|
-
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
170
|
-
};
|
|
171
|
-
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
172
|
-
return () => {
|
|
173
|
-
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
174
|
-
};
|
|
175
|
-
}, deps);
|
|
176
|
-
}
|
|
177
|
-
export {
|
|
178
|
-
$507fabe10e71c6fb$export$630ff653c5ada6a9 as $,
|
|
179
|
-
$507fabe10e71c6fb$export$b9b3dfddab17db27 as a,
|
|
180
|
-
$507fabe10e71c6fb$export$ec71b4b83ac08ec3 as b,
|
|
181
|
-
$507fabe10e71c6fb$export$8397ddfc504fdb9a as c,
|
|
182
|
-
$507fabe10e71c6fb$export$98e20ec92f614cfe as d
|
|
183
|
-
};
|