@easypost/easy-ui 1.0.0-alpha.74 → 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/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +8 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/CheckableCard/index.js +1 -1
- package/CheckableCard/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +6 -6
- package/CodeBlock/index.mjs +7 -7
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +36 -25
- package/DataGrid/index.mjs +35 -24
- 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/index.js +11 -15
- package/Drawer/index.mjs +11 -15
- package/DropdownButton/index.js +1 -1
- package/DropdownButton/index.mjs +1 -1
- package/FocusedProductLayout/index.js +3 -3
- package/FocusedProductLayout/index.mjs +3 -3
- package/ForgeLayout/index.js +10 -10
- package/ForgeLayout/index.mjs +11 -11
- package/IconButton/index.js +1 -1
- package/IconButton/index.mjs +1 -1
- 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/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +5 -5
- package/Modal/index.mjs +5 -5
- package/MultiSelect/index.js +30 -30
- package/MultiSelect/index.mjs +24 -24
- package/NexusLayout/index.js +5 -5
- package/NexusLayout/index.mjs +6 -6
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +2 -2
- package/Pagination/index.mjs +2 -2
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/ProductLayout/index.js +8 -8
- package/ProductLayout/index.mjs +8 -8
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +4 -4
- package/RadioButtonGroup/index.mjs +7 -7
- 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 +4 -4
- package/SearchNav/index.mjs +4 -4
- package/Select/index.js +2 -2
- package/Select/index.mjs +2 -2
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +1 -1
- package/SplitToggleCard/index.mjs +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/index.js +5 -5
- package/TabPanels/index.mjs +8 -8
- package/Tabs/index.js +1 -1
- package/Tabs/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/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 +2 -2
- package/VerticalNav/index.mjs +3 -3
- package/__chunks__/{Button-DhaXhFT-.mjs → Button-CSNMWizI.mjs} +5 -5
- package/__chunks__/{Button-E5WMp4Zg.js → Button-D9a9VZzF.js} +3 -3
- package/__chunks__/{Button-BP4wFAxx.js → Button-DA6XfGLP.js} +1 -1
- package/__chunks__/{Button-Cltfedkl.mjs → Button-cjD7z6sK.mjs} +1 -1
- package/__chunks__/{Calendar-4bRks2Gi.mjs → Calendar-B4BCW9t8.mjs} +2 -2
- package/__chunks__/{Calendar-B1PZJFWH.js → Calendar-BGIbWVyN.js} +1 -1
- package/__chunks__/{CalendarBase-Do4GSgxd.js → CalendarBase-BgzOdHfS.js} +5 -6
- package/__chunks__/{CalendarBase-B3wrkkDS.mjs → CalendarBase-C_AQ7bu5.mjs} +9 -10
- package/__chunks__/{Checkbox-BWiWcRta.mjs → Checkbox-BMBM6doF.mjs} +7 -7
- package/__chunks__/{Checkbox-DlGXuABy.js → Checkbox-DEmP9BGE.js} +6 -6
- package/__chunks__/{CodeSnippet-BUoVXuUr.mjs → CodeSnippet-B6KCRlKQ.mjs} +47 -60
- package/__chunks__/{CodeSnippet-odGPao5O.js → CodeSnippet-BBZpDbHX.js} +47 -60
- package/__chunks__/{DatePickerBase-CphayrFl.mjs → DatePickerBase-VNenwOmb.mjs} +18 -18
- package/__chunks__/{DatePickerBase-CV6eQTsD.js → DatePickerBase-WNWiVJoF.js} +12 -12
- 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-Bpe3QdoK.mjs → HelpMenu-Bed-PzGS.mjs} +2 -2
- package/__chunks__/{HelpMenu-BsRNOEFK.js → HelpMenu-CTNmYcKm.js} +2 -2
- package/__chunks__/{InputField-DlJu_e99.js → InputField-Bb98b1MA.js} +3 -3
- package/__chunks__/{InputField-BcEdR4h5.mjs → InputField-Dm5yHcWV.mjs} +3 -3
- package/__chunks__/{KebabButton-uoFD_mgV.js → KebabButton-B9eYB6ZD.js} +2 -19
- package/__chunks__/{KebabButton-B98kLaDH.mjs → KebabButton-gf3gFlb0.mjs} +4 -21
- package/__chunks__/{Menu-DKoRZfeR.js → Menu-BVTFMAX-.js} +12 -12
- package/__chunks__/{Menu-BpTzrm6c.mjs → Menu-DJS86zDM.mjs} +13 -13
- package/__chunks__/{Notification-fsBr9yzr.js → Notification-BCS0ugaf.js} +9 -10
- package/__chunks__/{Notification-Br5D4KA8.mjs → Notification-lg6ggtug.mjs} +6 -7
- package/__chunks__/{Overlay-CwRnK9dm.js → Overlay-BqaNlC3s.js} +10 -10
- package/__chunks__/{Overlay-BtkNBEyr.mjs → Overlay-CG-kKp6T.mjs} +3 -3
- package/__chunks__/{PillGroup-DQxoRceT.js → PillGroup-D-VEy6sn.js} +14 -14
- package/__chunks__/{PillGroup-Bwtq0W9U.mjs → PillGroup-DZtHC3NK.mjs} +21 -21
- package/__chunks__/{RadioGroup-DHvuOAI0.js → RadioGroup-CDmT0FW5.js} +8 -8
- package/__chunks__/{RadioGroup-iTWNHb_4.mjs → RadioGroup-ppUojVMB.mjs} +12 -12
- package/__chunks__/{RangeCalendar-CV64PgSa.js → RangeCalendar-B5UtHhmt.js} +1 -1
- package/__chunks__/{RangeCalendar-W6F-KXKF.mjs → RangeCalendar-rMPxj6HM.mjs} +3 -3
- package/__chunks__/{SelectOverlay-D5Df5qbg.mjs → SelectOverlay-CG2jyYZ_.mjs} +13 -13
- package/__chunks__/{SelectOverlay-snHhT9xQ.js → SelectOverlay-DgDBimW8.js} +9 -9
- package/__chunks__/{SelectorErrorTooltip-ZTlArMnH.js → SelectorErrorTooltip-BfKzfYpQ.js} +1 -1
- package/__chunks__/{SelectorErrorTooltip-D78wZKLX.mjs → SelectorErrorTooltip-Dkuaiq7N.mjs} +1 -1
- package/__chunks__/{Spinner-fkGldbX3.mjs → Spinner-C4B8utkI.mjs} +3 -3
- package/__chunks__/{Stepper-BUH1axEj.mjs → Stepper-Dbvg5Wn_.mjs} +3 -3
- package/__chunks__/{Stepper-DLfdtbvv.js → Stepper-lFftpFos.js} +2 -2
- package/__chunks__/{TabNav-CKEi-DUF.mjs → TabNav-CNAVzfBp.mjs} +1 -1
- package/__chunks__/{TabNav-BUwzxG3g.js → TabNav-D6mXxhua.js} +1 -1
- package/__chunks__/{Tabs--FBVp-tw.js → Tabs-9z2E6ZhV.js} +2 -2
- package/__chunks__/{Tabs-C7OfCIBi.mjs → Tabs-Chw75GHi.mjs} +3 -3
- package/__chunks__/{TextField-DJ5YAdLq.js → TextField-Co8OtDnO.js} +1 -1
- package/__chunks__/{TextField-BWEZbXZ-.mjs → TextField-HXNCIy4W.mjs} +1 -1
- package/__chunks__/{Toggle-DdKkOwZq.js → Toggle-C1cAD3ld.js} +3 -3
- package/__chunks__/{Toggle-CgRXkhDq.mjs → Toggle-Dm0_ZvLs.mjs} +4 -4
- package/__chunks__/{Tooltip-b45ajKHN.js → Tooltip-C9bST6SD.js} +5 -5
- package/__chunks__/{Tooltip-2wr2yp_C.mjs → Tooltip-DzWQUbuB.mjs} +6 -6
- package/__chunks__/{UnstyledButton-aKk2POM3.mjs → UnstyledButton-D0_XmlIu.mjs} +2 -2
- package/__chunks__/{UnstyledButton-BNciIRwZ.js → UnstyledButton-d3ChgECf.js} +1 -1
- 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__/{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__/{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 +1 -1
- package/style.css +14 -14
- 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
|
@@ -20,13 +20,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import React__default, { useMemo, useRef, useEffect, useLayoutEffect } from "react";
|
|
21
21
|
import { T as Text } from "./Text-BYGcKHR7.mjs";
|
|
22
22
|
import { getComponentToken, pxToRem, classNames } from "../utilities/css.mjs";
|
|
23
|
-
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff } from "./Overlay-
|
|
24
|
-
import {
|
|
25
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
26
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-
|
|
27
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
23
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff } from "./Overlay-CG-kKp6T.mjs";
|
|
24
|
+
import { q as $507fabe10e71c6fb$export$630ff653c5ada6a9, f as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
25
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BBXJy5NT.mjs";
|
|
26
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-C-Ge2Ht4.mjs";
|
|
27
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DRsiQq2k.mjs";
|
|
28
28
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
29
|
-
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-
|
|
29
|
+
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-D8MX_oIt.mjs";
|
|
30
30
|
const $8796f90736e175cb$var$TOOLTIP_DELAY = 1500;
|
|
31
31
|
const $8796f90736e175cb$var$TOOLTIP_COOLDOWN = 500;
|
|
32
32
|
let $8796f90736e175cb$var$tooltips = {};
|
|
@@ -29,12 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-
|
|
32
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DRsiQq2k.mjs";
|
|
33
33
|
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
34
34
|
import React__default, { forwardRef, useRef } from "react";
|
|
35
35
|
import { classNames } from "../utilities/css.mjs";
|
|
36
36
|
import { o as omit } from "./omit-CYoLXTjq.mjs";
|
|
37
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
37
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-Doz4-YMS.mjs";
|
|
38
38
|
const FILLED_BUTTON_COLORS = ["primary", "secondary", "success", "warning", "neutral"];
|
|
39
39
|
const OUTLINED_BUTTON_COLORS = ["primary", "secondary", "support", "warning", "inverse"];
|
|
40
40
|
const LINK_BUTTON_COLORS = ["primary", "secondary"];
|
|
@@ -35,7 +35,7 @@ const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
|
35
35
|
const React = require("react");
|
|
36
36
|
const utilities_css = require("../utilities/css.js");
|
|
37
37
|
const omit = require("./omit-CC3uE8z5.js");
|
|
38
|
-
const useButton = require("./useButton-
|
|
38
|
+
const useButton = require("./useButton-SSooC6Sc.js");
|
|
39
39
|
const FILLED_BUTTON_COLORS = ["primary", "secondary", "success", "warning", "neutral"];
|
|
40
40
|
const OUTLINED_BUTTON_COLORS = ["primary", "secondary", "support", "warning", "inverse"];
|
|
41
41
|
const LINK_BUTTON_COLORS = ["primary", "secondary"];
|
|
@@ -29,9 +29,9 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-
|
|
32
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DRsiQq2k.mjs";
|
|
33
33
|
import React__default, { useState, useMemo } from "react";
|
|
34
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
34
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-BgSjulWP.mjs";
|
|
35
35
|
const $5c3e21d68f1c4674$var$styles = {
|
|
36
36
|
border: 0,
|
|
37
37
|
clip: "rect(0 0 0 0)",
|
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
34
34
|
const React = require("react");
|
|
35
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
35
|
+
const useFocusWithin = require("./useFocusWithin-T1vqkUYN.js");
|
|
36
36
|
const $5c3e21d68f1c4674$var$styles = {
|
|
37
37
|
border: 0,
|
|
38
38
|
clip: "rect(0 0 0 0)",
|
|
@@ -15,9 +15,9 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
}
|
|
16
16
|
return a;
|
|
17
17
|
};
|
|
18
|
-
const FocusScope = require("./FocusScope-
|
|
19
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
20
|
-
const
|
|
18
|
+
const FocusScope = require("./FocusScope-DxiwSl55.js");
|
|
19
|
+
const useFocusWithin = require("./useFocusWithin-T1vqkUYN.js");
|
|
20
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
21
21
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
22
22
|
const React = require("react");
|
|
23
23
|
const getScrollParent = require("./getScrollParent-DNz2ReWu.js");
|
|
@@ -40,7 +40,7 @@ function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
|
40
40
|
let state = stateRef.current;
|
|
41
41
|
if (isDisabled) return;
|
|
42
42
|
const element = ref.current;
|
|
43
|
-
const documentObject =
|
|
43
|
+
const documentObject = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
44
44
|
if (typeof PointerEvent !== "undefined") {
|
|
45
45
|
let onPointerUp = (e) => {
|
|
46
46
|
if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);
|
|
@@ -177,7 +177,7 @@ function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
|
|
|
177
177
|
if (isDisabled) return;
|
|
178
178
|
$49c51c25361d4cd2$var$preventScrollCount++;
|
|
179
179
|
if ($49c51c25361d4cd2$var$preventScrollCount === 1) {
|
|
180
|
-
if (
|
|
180
|
+
if (useFocusVisible.$c87311424ea30a05$export$fedb369cb70207f1()) $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollMobileSafari();
|
|
181
181
|
else $49c51c25361d4cd2$var$restore = $49c51c25361d4cd2$var$preventScrollStandard();
|
|
182
182
|
}
|
|
183
183
|
return () => {
|
|
@@ -14,10 +14,10 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { b as $9bf71ea28793e738$export$1258395f99bf9cbf } from "./FocusScope-
|
|
18
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
19
|
-
import { a as $431fbd86ca7dc216$export$b204af158042fbac,
|
|
20
|
-
import {
|
|
17
|
+
import { b as $9bf71ea28793e738$export$1258395f99bf9cbf } from "./FocusScope-CQhiv02m.mjs";
|
|
18
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-BgSjulWP.mjs";
|
|
19
|
+
import { a as $431fbd86ca7dc216$export$b204af158042fbac, t as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
20
|
+
import { a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-DRsiQq2k.mjs";
|
|
21
21
|
import { useRef, useEffect } from "react";
|
|
22
22
|
import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "./getScrollParent-B5CCP-yO.mjs";
|
|
23
23
|
function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { useState, useEffect, useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-DRsiQq2k.mjs";
|
|
3
3
|
const $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
4
4
|
"Arab",
|
|
5
5
|
"Syrc",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
3
3
|
const React = require("react");
|
|
4
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
4
5
|
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
5
6
|
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
6
7
|
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
@@ -62,6 +63,17 @@ const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React.createContext({
|
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
66
|
+
function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
|
|
67
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
68
|
+
const activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
69
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
70
|
+
let lastFocusedElement = activeElement;
|
|
71
|
+
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
72
|
+
if (useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
73
|
+
});
|
|
74
|
+
} else useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
75
|
+
}
|
|
76
|
+
exports.$3ad3f6e1647bc98d$export$80f3e147d781571c = $3ad3f6e1647bc98d$export$80f3e147d781571c;
|
|
65
77
|
exports.$ae1eeba8b9eafd08$export$5165eccb35aaadb5 = $ae1eeba8b9eafd08$export$5165eccb35aaadb5;
|
|
66
78
|
exports.$bbed8b41f857bcc0$export$24490316f764c430 = $bbed8b41f857bcc0$export$24490316f764c430;
|
|
67
79
|
exports.$e7801be82b4b2a53$export$4debdb1a3f0fa79e = $e7801be82b4b2a53$export$4debdb1a3f0fa79e;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-DRsiQq2k.mjs";
|
|
2
2
|
import React__default from "react";
|
|
3
|
+
import { a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, q as $507fabe10e71c6fb$export$630ff653c5ada6a9, s as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
3
4
|
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
4
5
|
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
5
6
|
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
@@ -61,8 +62,19 @@ const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React__default.createContext({
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
65
|
+
function $3ad3f6e1647bc98d$export$80f3e147d781571c(element) {
|
|
66
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
67
|
+
const activeElement = $d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
68
|
+
if ($507fabe10e71c6fb$export$630ff653c5ada6a9() === "virtual") {
|
|
69
|
+
let lastFocusedElement = activeElement;
|
|
70
|
+
$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
71
|
+
if ($d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) === lastFocusedElement && element.isConnected) $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
72
|
+
});
|
|
73
|
+
} else $7215afc6de606d6b$export$de79e2c695e052f3(element);
|
|
74
|
+
}
|
|
64
75
|
export {
|
|
65
|
-
$
|
|
76
|
+
$3ad3f6e1647bc98d$export$80f3e147d781571c as $,
|
|
66
77
|
$e7801be82b4b2a53$export$4debdb1a3f0fa79e as a,
|
|
67
|
-
$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as b
|
|
78
|
+
$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as b,
|
|
79
|
+
$bbed8b41f857bcc0$export$24490316f764c430 as c
|
|
68
80
|
};
|
|
@@ -220,10 +220,10 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
|
220
220
|
}
|
|
221
221
|
export {
|
|
222
222
|
$3ef42575df84b30b$export$9d1611c77c2fe928 as $,
|
|
223
|
-
$
|
|
224
|
-
$
|
|
225
|
-
$bdb11010cef70236$export$
|
|
226
|
-
$
|
|
227
|
-
$
|
|
223
|
+
$8ae05eaa5c114e9c$export$7f54fc3180508a52 as a,
|
|
224
|
+
$bdb11010cef70236$export$b4cc09c592e8fdb8 as b,
|
|
225
|
+
$bdb11010cef70236$export$f680877a34711e37 as c,
|
|
226
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as d,
|
|
227
|
+
$b5e257d569688ac6$export$535bd6ca7f90a273 as e,
|
|
228
228
|
$ff5963eb1fccf552$export$e08e3b67e392101e as f
|
|
229
229
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function _extends() {
|
|
3
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
4
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
5
|
+
var t = arguments[e];
|
|
6
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
7
|
+
}
|
|
8
|
+
return n;
|
|
9
|
+
}, _extends.apply(null, arguments);
|
|
10
|
+
}
|
|
11
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
12
|
+
if (null == r) return {};
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
15
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
16
|
+
t[n] = r[n];
|
|
17
|
+
}
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
exports._extends = _extends;
|
|
21
|
+
exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
3
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
+
var t = arguments[e];
|
|
5
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6
|
+
}
|
|
7
|
+
return n;
|
|
8
|
+
}, _extends.apply(null, arguments);
|
|
9
|
+
}
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
11
|
+
if (null == r) return {};
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
14
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
15
|
+
t[n] = r[n];
|
|
16
|
+
}
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
_objectWithoutPropertiesLoose as _,
|
|
21
|
+
_extends as a
|
|
22
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-DRsiQq2k.mjs";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
|
|
4
4
|
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-
|
|
1
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DRsiQq2k.mjs";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
3
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-
|
|
3
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-BH70cn5g.mjs";
|
|
4
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-C-Ge2Ht4.mjs";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let {
|
|
7
7
|
elementType = "button",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
3
3
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
4
|
-
const usePress = require("./usePress-
|
|
5
|
-
const useFocusable = require("./useFocusable-
|
|
4
|
+
const usePress = require("./usePress-DchxjERD.js");
|
|
5
|
+
const useFocusable = require("./useFocusable-DRHM1otK.js");
|
|
6
6
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
7
7
|
let {
|
|
8
8
|
elementType = "button",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-C5QKMZmh.mjs";
|
|
2
2
|
let $325a3faab7a68acd$var$cache = /* @__PURE__ */ new Map();
|
|
3
3
|
function $325a3faab7a68acd$export$a16aca283550c30d(options) {
|
|
4
4
|
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
@@ -17,11 +17,11 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { b as $bdb11010cef70236$export$b4cc09c592e8fdb8 } from "./mergeProps-DRsiQq2k.mjs";
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
|
-
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-
|
|
22
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-psnzsNzD.mjs";
|
|
23
23
|
import { useRef, useEffect } from "react";
|
|
24
|
-
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-
|
|
24
|
+
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-CG-kKp6T.mjs";
|
|
25
25
|
function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
26
26
|
let { role = "dialog" } = props;
|
|
27
27
|
let titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
@@ -20,9 +20,9 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
22
22
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
23
|
-
const focusSafely = require("./focusSafely-
|
|
23
|
+
const focusSafely = require("./focusSafely-CucekFxc.js");
|
|
24
24
|
const React = require("react");
|
|
25
|
-
const Overlay = require("./Overlay-
|
|
25
|
+
const Overlay = require("./Overlay-BqaNlC3s.js");
|
|
26
26
|
function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
27
27
|
let { role = "dialog" } = props;
|
|
28
28
|
let titleId = mergeProps.$bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-DRsiQq2k.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
4
|
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-CMWuiLM0.mjs";
|
|
2
|
+
import { b as $bdb11010cef70236$export$b4cc09c592e8fdb8, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DRsiQq2k.mjs";
|
|
3
3
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
4
4
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
5
5
|
let { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f(props);
|
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-
|
|
17
|
+
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-DiblLehW.mjs";
|
|
18
18
|
import { useCallback, useMemo } from "react";
|
|
19
19
|
function $bb77f239b46e8c72$export$3274cf84b703fff(options) {
|
|
20
20
|
let collator = $325a3faab7a68acd$export$a16aca283550c30d(__spreadValues({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as $8a9cb279dc87e130$export$715c682d09d639cc, a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $d4ee10de306f2510$export$e58f029f0fbfdb29 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
4
4
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const
|
|
2
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
5
5
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
@@ -13,11 +13,11 @@ function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
|
13
13
|
onBlurProp,
|
|
14
14
|
onFocusChange
|
|
15
15
|
]);
|
|
16
|
-
const onSyntheticFocus =
|
|
16
|
+
const onSyntheticFocus = useFocusVisible.$8a9cb279dc87e130$export$715c682d09d639cc(onBlur);
|
|
17
17
|
const onFocus = React.useCallback((e) => {
|
|
18
|
-
const ownerDocument =
|
|
19
|
-
const activeElement = ownerDocument ?
|
|
20
|
-
if (e.target === e.currentTarget && activeElement ===
|
|
18
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(e.target);
|
|
19
|
+
const activeElement = ownerDocument ? useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument) : useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576();
|
|
20
|
+
if (e.target === e.currentTarget && activeElement === useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) {
|
|
21
21
|
if (onFocusProp) onFocusProp(e);
|
|
22
22
|
if (onFocusChange) onFocusChange(true);
|
|
23
23
|
onSyntheticFocus(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
1
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-BL_s_3zv.mjs";
|
|
2
|
+
import { f as $507fabe10e71c6fb$export$b9b3dfddab17db27, g as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
3
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-BgSjulWP.mjs";
|
|
4
4
|
import { useRef, useState, useCallback } from "react";
|
|
5
5
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
6
6
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocus = require("./useFocus-
|
|
3
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
4
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
2
|
+
const useFocus = require("./useFocus-Da6IfenG.js");
|
|
3
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
4
|
+
const useFocusWithin = require("./useFocusWithin-T1vqkUYN.js");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
7
7
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -307,13 +307,13 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
|
|
|
307
307
|
dispatchBlur
|
|
308
308
|
]);
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
let $8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
311
311
|
function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
|
|
312
312
|
while (target && !$b4b717babfbb907b$export$4c063cf1350e6fed(target)) target = target.parentElement;
|
|
313
313
|
let window2 = $431fbd86ca7dc216$export$f21a1ffae260145a(target);
|
|
314
314
|
let activeElement = window2.document.activeElement;
|
|
315
315
|
if (!activeElement || activeElement === target) return;
|
|
316
|
-
|
|
316
|
+
$8a9cb279dc87e130$export$fda7da73ab5d4c48 = true;
|
|
317
317
|
let isRefocusing = false;
|
|
318
318
|
let onBlur = (e) => {
|
|
319
319
|
if (e.target === activeElement || isRefocusing) e.stopImmediatePropagation();
|
|
@@ -351,15 +351,193 @@ function $8a9cb279dc87e130$export$cabe61c495ee3649(target) {
|
|
|
351
351
|
window2.removeEventListener("focusout", onFocusOut, true);
|
|
352
352
|
window2.removeEventListener("focusin", onFocusIn, true);
|
|
353
353
|
window2.removeEventListener("focus", onFocus, true);
|
|
354
|
-
|
|
354
|
+
$8a9cb279dc87e130$export$fda7da73ab5d4c48 = false;
|
|
355
355
|
isRefocusing = false;
|
|
356
356
|
};
|
|
357
357
|
let raf = requestAnimationFrame(cleanup);
|
|
358
358
|
return cleanup;
|
|
359
359
|
}
|
|
360
|
+
let $507fabe10e71c6fb$var$currentModality = null;
|
|
361
|
+
let $507fabe10e71c6fb$var$changeHandlers = /* @__PURE__ */ new Set();
|
|
362
|
+
let $507fabe10e71c6fb$export$d90243b58daecda7 = /* @__PURE__ */ new Map();
|
|
363
|
+
let $507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
364
|
+
let $507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
365
|
+
const $507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS = {
|
|
366
|
+
Tab: true,
|
|
367
|
+
Escape: true
|
|
368
|
+
};
|
|
369
|
+
function $507fabe10e71c6fb$var$triggerChangeHandlers(modality, e) {
|
|
370
|
+
for (let handler of $507fabe10e71c6fb$var$changeHandlers) handler(modality, e);
|
|
371
|
+
}
|
|
372
|
+
function $507fabe10e71c6fb$var$isValidKey(e) {
|
|
373
|
+
return !(e.metaKey || !$c87311424ea30a05$export$9ac100e40613ea10() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
374
|
+
}
|
|
375
|
+
function $507fabe10e71c6fb$var$handleKeyboardEvent(e) {
|
|
376
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
377
|
+
if ($507fabe10e71c6fb$var$isValidKey(e)) {
|
|
378
|
+
$507fabe10e71c6fb$var$currentModality = "keyboard";
|
|
379
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard", e);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
function $507fabe10e71c6fb$var$handlePointerEvent(e) {
|
|
383
|
+
$507fabe10e71c6fb$var$currentModality = "pointer";
|
|
384
|
+
if (e.type === "mousedown" || e.type === "pointerdown") {
|
|
385
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
386
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers("pointer", e);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function $507fabe10e71c6fb$var$handleClickEvent(e) {
|
|
390
|
+
if ($6a7db85432448f7f$export$60278871457622de(e)) {
|
|
391
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
392
|
+
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
function $507fabe10e71c6fb$var$handleFocusEvent(e) {
|
|
396
|
+
if (e.target === window || e.target === document || $8a9cb279dc87e130$export$fda7da73ab5d4c48 || !e.isTrusted) return;
|
|
397
|
+
if (!$507fabe10e71c6fb$var$hasEventBeforeFocus && !$507fabe10e71c6fb$var$hasBlurredWindowRecently) {
|
|
398
|
+
$507fabe10e71c6fb$var$currentModality = "virtual";
|
|
399
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers("virtual", e);
|
|
400
|
+
}
|
|
401
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
402
|
+
$507fabe10e71c6fb$var$hasBlurredWindowRecently = false;
|
|
403
|
+
}
|
|
404
|
+
function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
405
|
+
if ($8a9cb279dc87e130$export$fda7da73ab5d4c48) return;
|
|
406
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = false;
|
|
407
|
+
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
408
|
+
}
|
|
409
|
+
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
410
|
+
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
411
|
+
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
412
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
413
|
+
let focus = windowObject.HTMLElement.prototype.focus;
|
|
414
|
+
windowObject.HTMLElement.prototype.focus = function() {
|
|
415
|
+
$507fabe10e71c6fb$var$hasEventBeforeFocus = true;
|
|
416
|
+
focus.apply(this, arguments);
|
|
417
|
+
};
|
|
418
|
+
documentObject.addEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
419
|
+
documentObject.addEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
420
|
+
documentObject.addEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
421
|
+
windowObject.addEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
422
|
+
windowObject.addEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
423
|
+
if (typeof PointerEvent !== "undefined") {
|
|
424
|
+
documentObject.addEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
425
|
+
documentObject.addEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
426
|
+
documentObject.addEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
427
|
+
} else {
|
|
428
|
+
documentObject.addEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
429
|
+
documentObject.addEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
430
|
+
documentObject.addEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
431
|
+
}
|
|
432
|
+
windowObject.addEventListener("beforeunload", () => {
|
|
433
|
+
$507fabe10e71c6fb$var$tearDownWindowFocusTracking(element);
|
|
434
|
+
}, {
|
|
435
|
+
once: true
|
|
436
|
+
});
|
|
437
|
+
$507fabe10e71c6fb$export$d90243b58daecda7.set(windowObject, {
|
|
438
|
+
focus
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
const $507fabe10e71c6fb$var$tearDownWindowFocusTracking = (element, loadListener) => {
|
|
442
|
+
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
443
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
444
|
+
if (loadListener) documentObject.removeEventListener("DOMContentLoaded", loadListener);
|
|
445
|
+
if (!$507fabe10e71c6fb$export$d90243b58daecda7.has(windowObject)) return;
|
|
446
|
+
windowObject.HTMLElement.prototype.focus = $507fabe10e71c6fb$export$d90243b58daecda7.get(windowObject).focus;
|
|
447
|
+
documentObject.removeEventListener("keydown", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
448
|
+
documentObject.removeEventListener("keyup", $507fabe10e71c6fb$var$handleKeyboardEvent, true);
|
|
449
|
+
documentObject.removeEventListener("click", $507fabe10e71c6fb$var$handleClickEvent, true);
|
|
450
|
+
windowObject.removeEventListener("focus", $507fabe10e71c6fb$var$handleFocusEvent, true);
|
|
451
|
+
windowObject.removeEventListener("blur", $507fabe10e71c6fb$var$handleWindowBlur, false);
|
|
452
|
+
if (typeof PointerEvent !== "undefined") {
|
|
453
|
+
documentObject.removeEventListener("pointerdown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
454
|
+
documentObject.removeEventListener("pointermove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
455
|
+
documentObject.removeEventListener("pointerup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
456
|
+
} else {
|
|
457
|
+
documentObject.removeEventListener("mousedown", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
458
|
+
documentObject.removeEventListener("mousemove", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
459
|
+
documentObject.removeEventListener("mouseup", $507fabe10e71c6fb$var$handlePointerEvent, true);
|
|
460
|
+
}
|
|
461
|
+
$507fabe10e71c6fb$export$d90243b58daecda7.delete(windowObject);
|
|
462
|
+
};
|
|
463
|
+
function $507fabe10e71c6fb$export$2f1888112f558a7d(element) {
|
|
464
|
+
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
465
|
+
let loadListener;
|
|
466
|
+
if (documentObject.readyState !== "loading") $507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
467
|
+
else {
|
|
468
|
+
loadListener = () => {
|
|
469
|
+
$507fabe10e71c6fb$var$setupGlobalFocusEvents(element);
|
|
470
|
+
};
|
|
471
|
+
documentObject.addEventListener("DOMContentLoaded", loadListener);
|
|
472
|
+
}
|
|
473
|
+
return () => $507fabe10e71c6fb$var$tearDownWindowFocusTracking(element, loadListener);
|
|
474
|
+
}
|
|
475
|
+
if (typeof document !== "undefined") $507fabe10e71c6fb$export$2f1888112f558a7d();
|
|
476
|
+
function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
|
|
477
|
+
return $507fabe10e71c6fb$var$currentModality !== "pointer";
|
|
478
|
+
}
|
|
479
|
+
function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
|
|
480
|
+
return $507fabe10e71c6fb$var$currentModality;
|
|
481
|
+
}
|
|
482
|
+
function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
|
|
483
|
+
$507fabe10e71c6fb$var$currentModality = modality;
|
|
484
|
+
$507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
|
|
485
|
+
}
|
|
486
|
+
function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
|
|
487
|
+
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
488
|
+
let [modality, setModality] = React.useState($507fabe10e71c6fb$var$currentModality);
|
|
489
|
+
React.useEffect(() => {
|
|
490
|
+
let handler = () => {
|
|
491
|
+
setModality($507fabe10e71c6fb$var$currentModality);
|
|
492
|
+
};
|
|
493
|
+
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
494
|
+
return () => {
|
|
495
|
+
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
496
|
+
};
|
|
497
|
+
}, []);
|
|
498
|
+
return mergeProps.$b5e257d569688ac6$export$535bd6ca7f90a273() ? null : modality;
|
|
499
|
+
}
|
|
500
|
+
const $507fabe10e71c6fb$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
501
|
+
"checkbox",
|
|
502
|
+
"radio",
|
|
503
|
+
"range",
|
|
504
|
+
"color",
|
|
505
|
+
"file",
|
|
506
|
+
"image",
|
|
507
|
+
"button",
|
|
508
|
+
"submit",
|
|
509
|
+
"reset"
|
|
510
|
+
]);
|
|
511
|
+
function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
512
|
+
let document1 = $431fbd86ca7dc216$export$b204af158042fbac(e === null || e === void 0 ? void 0 : e.target);
|
|
513
|
+
const IHTMLInputElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
|
|
514
|
+
const IHTMLTextAreaElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
|
|
515
|
+
const IHTMLElement = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
|
|
516
|
+
const IKeyboardEvent = typeof window !== "undefined" ? $431fbd86ca7dc216$export$f21a1ffae260145a(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
517
|
+
isTextInput = isTextInput || document1.activeElement instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(document1.activeElement.type) || document1.activeElement instanceof IHTMLTextAreaElement || document1.activeElement instanceof IHTMLElement && document1.activeElement.isContentEditable;
|
|
518
|
+
return !(isTextInput && modality === "keyboard" && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
|
|
519
|
+
}
|
|
520
|
+
function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
|
|
521
|
+
$507fabe10e71c6fb$var$setupGlobalFocusEvents();
|
|
522
|
+
React.useEffect(() => {
|
|
523
|
+
let handler = (modality, e) => {
|
|
524
|
+
if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
|
|
525
|
+
fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
|
|
526
|
+
};
|
|
527
|
+
$507fabe10e71c6fb$var$changeHandlers.add(handler);
|
|
528
|
+
return () => {
|
|
529
|
+
$507fabe10e71c6fb$var$changeHandlers.delete(handler);
|
|
530
|
+
};
|
|
531
|
+
}, deps);
|
|
532
|
+
}
|
|
360
533
|
exports.$03deb23ff14920c4$export$4eaf04e54aa8eed6 = $03deb23ff14920c4$export$4eaf04e54aa8eed6;
|
|
361
534
|
exports.$431fbd86ca7dc216$export$b204af158042fbac = $431fbd86ca7dc216$export$b204af158042fbac;
|
|
362
535
|
exports.$431fbd86ca7dc216$export$f21a1ffae260145a = $431fbd86ca7dc216$export$f21a1ffae260145a;
|
|
536
|
+
exports.$507fabe10e71c6fb$export$630ff653c5ada6a9 = $507fabe10e71c6fb$export$630ff653c5ada6a9;
|
|
537
|
+
exports.$507fabe10e71c6fb$export$8397ddfc504fdb9a = $507fabe10e71c6fb$export$8397ddfc504fdb9a;
|
|
538
|
+
exports.$507fabe10e71c6fb$export$98e20ec92f614cfe = $507fabe10e71c6fb$export$98e20ec92f614cfe;
|
|
539
|
+
exports.$507fabe10e71c6fb$export$b9b3dfddab17db27 = $507fabe10e71c6fb$export$b9b3dfddab17db27;
|
|
540
|
+
exports.$507fabe10e71c6fb$export$ec71b4b83ac08ec3 = $507fabe10e71c6fb$export$ec71b4b83ac08ec3;
|
|
363
541
|
exports.$6a7db85432448f7f$export$29bf1b5f2c56cf63 = $6a7db85432448f7f$export$29bf1b5f2c56cf63;
|
|
364
542
|
exports.$6a7db85432448f7f$export$60278871457622de = $6a7db85432448f7f$export$60278871457622de;
|
|
365
543
|
exports.$7215afc6de606d6b$export$de79e2c695e052f3 = $7215afc6de606d6b$export$de79e2c695e052f3;
|