@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
|
@@ -30,19 +30,19 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const Button = require("./Button-
|
|
33
|
+
const Button = require("./Button-D9a9VZzF.js");
|
|
34
34
|
const utils = require("./utils-CY9C69XV.js");
|
|
35
35
|
const React = require("react");
|
|
36
36
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
37
37
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
38
|
-
const Overlay = require("./Overlay-
|
|
39
|
-
const useMenuTriggerState = require("./useMenuTriggerState-
|
|
40
|
-
const useOverlayTrigger = require("./useOverlayTrigger-
|
|
41
|
-
const useDialog = require("./useDialog-
|
|
38
|
+
const Overlay = require("./Overlay-BqaNlC3s.js");
|
|
39
|
+
const useMenuTriggerState = require("./useMenuTriggerState-DmsfK2RH.js");
|
|
40
|
+
const useOverlayTrigger = require("./useOverlayTrigger-BJJgq7LS.js");
|
|
41
|
+
const useDialog = require("./useDialog-CmV1awNZ.js");
|
|
42
42
|
const ReactDOM = require("react-dom");
|
|
43
|
-
const focusSafely = require("./focusSafely-
|
|
43
|
+
const focusSafely = require("./focusSafely-CucekFxc.js");
|
|
44
44
|
const context = require("./context-BQfsEeih.js");
|
|
45
|
-
const utilities = require("./utilities-
|
|
45
|
+
const utilities = require("./utilities-x6Aiy1EG.js");
|
|
46
46
|
function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
47
47
|
let [isEntering, setEntering] = React.useState(true);
|
|
48
48
|
let isAnimationReady = isEntering && isReady;
|
|
@@ -29,19 +29,19 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
33
|
-
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3, b as $64fa3d84918910a7$export$2881499e37b75b9a, c as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-
|
|
32
|
+
import { $ as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-CSNMWizI.mjs";
|
|
33
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3, b as $64fa3d84918910a7$export$2881499e37b75b9a, c as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "./utils-CwzguevQ.mjs";
|
|
34
34
|
import React__default, { useState, useCallback, createContext, forwardRef, useContext, useRef, useEffect } from "react";
|
|
35
|
-
import {
|
|
35
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DRsiQq2k.mjs";
|
|
36
36
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
37
|
-
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff, e as $f1ab8c75478c6f73$export$3351871ee4b288b8 } from "./Overlay-
|
|
38
|
-
import { $ as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3 } from "./useMenuTriggerState-
|
|
39
|
-
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "./useOverlayTrigger-
|
|
40
|
-
import { $ as $40df3f8667284809$export$d55e7ee900f34e93 } from "./useDialog-
|
|
37
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff, e as $f1ab8c75478c6f73$export$3351871ee4b288b8 } from "./Overlay-CG-kKp6T.mjs";
|
|
38
|
+
import { $ as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3 } from "./useMenuTriggerState-C-zvqrX2.mjs";
|
|
39
|
+
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "./useOverlayTrigger-Coc4zW72.mjs";
|
|
40
|
+
import { $ as $40df3f8667284809$export$d55e7ee900f34e93 } from "./useDialog-B6qJASRh.mjs";
|
|
41
41
|
import { flushSync } from "react-dom";
|
|
42
|
-
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-
|
|
43
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
44
|
-
import { $ as $f2f8a6077418541e$export$542a6fd13ac93354, a as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "./utilities-
|
|
42
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-psnzsNzD.mjs";
|
|
43
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-C5QKMZmh.mjs";
|
|
44
|
+
import { $ as $f2f8a6077418541e$export$542a6fd13ac93354, a as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "./utilities-BB2zmROs.mjs";
|
|
45
45
|
function $d3f049242431219c$export$6d3443f2c48bfc20(ref, isReady = true) {
|
|
46
46
|
let [isEntering, setEntering] = useState(true);
|
|
47
47
|
let isAnimationReady = isEntering && isReady;
|
|
@@ -34,10 +34,9 @@ var __yieldStar = (value) => {
|
|
|
34
34
|
throw x;
|
|
35
35
|
}, "return" in obj && method("return"), it;
|
|
36
36
|
};
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { $ as $
|
|
40
|
-
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-MpYXzuLP.mjs";
|
|
37
|
+
import { l as $f4e2df6bd15f8569$export$98658e8c59125e6a, b as $d4ee10de306f2510$export$4282f70798064fe0, i as $431fbd86ca7dc216$export$f21a1ffae260145a, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, a as $431fbd86ca7dc216$export$b204af158042fbac, m as $b4b717babfbb907b$export$bebd5a1431fec25d, n as $b4b717babfbb907b$export$4c063cf1350e6fed, e as $d4ee10de306f2510$export$e58f029f0fbfdb29, o as $c87311424ea30a05$export$a11b0059900ceec8, p as $c87311424ea30a05$export$6446a186d09e379e, q as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
38
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-DRsiQq2k.mjs";
|
|
39
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-psnzsNzD.mjs";
|
|
41
40
|
import React__default, { useRef, useContext, useMemo, useEffect } from "react";
|
|
42
41
|
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
43
42
|
get currentNode() {
|
|
@@ -35,17 +35,16 @@ var __yieldStar = (value) => {
|
|
|
35
35
|
throw x;
|
|
36
36
|
}, "return" in obj && method("return"), it;
|
|
37
37
|
};
|
|
38
|
-
const
|
|
38
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
39
39
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
40
|
-
const
|
|
41
|
-
const focusSafely = require("./focusSafely-DLX4i5KV.js");
|
|
40
|
+
const focusSafely = require("./focusSafely-CucekFxc.js");
|
|
42
41
|
const React = require("react");
|
|
43
42
|
class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
44
43
|
get currentNode() {
|
|
45
44
|
return this._currentNode;
|
|
46
45
|
}
|
|
47
46
|
set currentNode(node) {
|
|
48
|
-
if (!
|
|
47
|
+
if (!useFocusVisible.$d4ee10de306f2510$export$4282f70798064fe0(this.root, node)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
|
|
49
48
|
const walkers = [];
|
|
50
49
|
let curNode = node;
|
|
51
50
|
let currentWalkerCurrentNode = node;
|
|
@@ -74,7 +73,7 @@ class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
|
74
73
|
firstChild() {
|
|
75
74
|
let currentNode = this.currentNode;
|
|
76
75
|
let newNode = this.nextNode();
|
|
77
|
-
if (!
|
|
76
|
+
if (!useFocusVisible.$d4ee10de306f2510$export$4282f70798064fe0(currentNode, newNode)) {
|
|
78
77
|
this.currentNode = currentNode;
|
|
79
78
|
return null;
|
|
80
79
|
}
|
|
@@ -211,11 +210,11 @@ class $dfc540311bf7f109$export$63eb3ababa9c55c4 {
|
|
|
211
210
|
}
|
|
212
211
|
}
|
|
213
212
|
function $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root, whatToShow, filter) {
|
|
214
|
-
if (
|
|
213
|
+
if (useFocusVisible.$f4e2df6bd15f8569$export$98658e8c59125e6a()) return new $dfc540311bf7f109$export$63eb3ababa9c55c4(doc, root, whatToShow, filter);
|
|
215
214
|
return doc.createTreeWalker(root, whatToShow, filter);
|
|
216
215
|
}
|
|
217
216
|
function $645f2e67b85a24c9$var$isStyleVisible(element) {
|
|
218
|
-
const windowObject =
|
|
217
|
+
const windowObject = useFocusVisible.$431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
219
218
|
if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
|
|
220
219
|
let { display, visibility } = element.style;
|
|
221
220
|
let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
|
|
@@ -287,7 +286,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
|
|
|
287
286
|
$9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain);
|
|
288
287
|
$9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus);
|
|
289
288
|
React.useEffect(() => {
|
|
290
|
-
const activeElement =
|
|
289
|
+
const activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0));
|
|
291
290
|
let scope = null;
|
|
292
291
|
if ($9bf71ea28793e738$var$isElementInScope(activeElement, scopeRef.current)) {
|
|
293
292
|
for (let node2 of $9bf71ea28793e738$export$d06fae2ee68b101e.traverse()) if (node2.scopeRef && $9bf71ea28793e738$var$isElementInScope(activeElement, node2.scopeRef.current)) scope = node2;
|
|
@@ -333,7 +332,7 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
333
332
|
let scope = scopeRef.current;
|
|
334
333
|
let { from, tabbable, wrap, accept } = opts;
|
|
335
334
|
var _scope_;
|
|
336
|
-
let node = from ||
|
|
335
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
337
336
|
let sentinel = scope[0].previousElementSibling;
|
|
338
337
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
339
338
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
@@ -353,7 +352,7 @@ function $9bf71ea28793e738$var$createFocusManagerForScope(scopeRef) {
|
|
|
353
352
|
let scope = scopeRef.current;
|
|
354
353
|
let { from, tabbable, wrap, accept } = opts;
|
|
355
354
|
var _scope_;
|
|
356
|
-
let node = from ||
|
|
355
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac((_scope_ = scope[0]) !== null && _scope_ !== void 0 ? _scope_ : void 0));
|
|
357
356
|
let sentinel = scope[scope.length - 1].nextElementSibling;
|
|
358
357
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope);
|
|
359
358
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(scopeRoot, {
|
|
@@ -420,10 +419,10 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
|
420
419
|
}
|
|
421
420
|
return;
|
|
422
421
|
}
|
|
423
|
-
const ownerDocument =
|
|
422
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
424
423
|
let onKeyDown = (e) => {
|
|
425
424
|
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
426
|
-
let focusedElement =
|
|
425
|
+
let focusedElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
427
426
|
let scope2 = scopeRef.current;
|
|
428
427
|
if (!scope2 || !$9bf71ea28793e738$var$isElementInScope(focusedElement, scope2)) return;
|
|
429
428
|
let scopeRoot = $9bf71ea28793e738$var$getScopeRoot(scope2);
|
|
@@ -441,23 +440,23 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
|
|
|
441
440
|
if (nextElement) $9bf71ea28793e738$var$focusElement(nextElement, true);
|
|
442
441
|
};
|
|
443
442
|
let onFocus = (e) => {
|
|
444
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(
|
|
443
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef.current)) {
|
|
445
444
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
446
|
-
focusedNode.current =
|
|
447
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(
|
|
445
|
+
focusedNode.current = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
446
|
+
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e), scopeRef)) {
|
|
448
447
|
if (focusedNode.current) focusedNode.current.focus();
|
|
449
448
|
else if ($9bf71ea28793e738$var$activeScope && $9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
|
|
450
|
-
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current =
|
|
449
|
+
} else if ($9bf71ea28793e738$var$shouldContainFocus(scopeRef)) focusedNode.current = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
451
450
|
};
|
|
452
451
|
let onBlur = (e) => {
|
|
453
452
|
if (raf.current) cancelAnimationFrame(raf.current);
|
|
454
453
|
raf.current = requestAnimationFrame(() => {
|
|
455
454
|
let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
456
|
-
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) &&
|
|
457
|
-
let activeElement =
|
|
455
|
+
let shouldSkipFocusRestore = (modality === "virtual" || modality === null) && useFocusVisible.$c87311424ea30a05$export$a11b0059900ceec8() && useFocusVisible.$c87311424ea30a05$export$6446a186d09e379e();
|
|
456
|
+
let activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
458
457
|
if (!shouldSkipFocusRestore && activeElement && $9bf71ea28793e738$var$shouldContainFocus(scopeRef) && !$9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef)) {
|
|
459
458
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
460
|
-
let target =
|
|
459
|
+
let target = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
461
460
|
if (target && target.isConnected) {
|
|
462
461
|
var _focusedNode_current;
|
|
463
462
|
focusedNode.current = target;
|
|
@@ -551,8 +550,8 @@ function $9bf71ea28793e738$var$useAutoFocus(scopeRef, autoFocus) {
|
|
|
551
550
|
React.useEffect(() => {
|
|
552
551
|
if (autoFocusRef.current) {
|
|
553
552
|
$9bf71ea28793e738$var$activeScope = scopeRef;
|
|
554
|
-
const ownerDocument =
|
|
555
|
-
if (!$9bf71ea28793e738$var$isElementInScope(
|
|
553
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
554
|
+
if (!$9bf71ea28793e738$var$isElementInScope(useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), $9bf71ea28793e738$var$activeScope.current) && scopeRef.current) $9bf71ea28793e738$var$focusFirstInScope(scopeRef.current);
|
|
556
555
|
}
|
|
557
556
|
autoFocusRef.current = false;
|
|
558
557
|
}, [
|
|
@@ -563,9 +562,9 @@ function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain)
|
|
|
563
562
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
564
563
|
if (restore || contain) return;
|
|
565
564
|
let scope = scopeRef.current;
|
|
566
|
-
const ownerDocument =
|
|
565
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
567
566
|
let onFocus = (e) => {
|
|
568
|
-
let target =
|
|
567
|
+
let target = useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e);
|
|
569
568
|
if ($9bf71ea28793e738$var$isElementInScope(target, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
570
569
|
else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;
|
|
571
570
|
};
|
|
@@ -590,13 +589,13 @@ function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
|
|
|
590
589
|
return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
|
|
591
590
|
}
|
|
592
591
|
function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
|
|
593
|
-
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ?
|
|
592
|
+
const nodeToRestoreRef = React.useRef(typeof document !== "undefined" ? useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0)) : null);
|
|
594
593
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
595
594
|
let scope = scopeRef.current;
|
|
596
|
-
const ownerDocument =
|
|
595
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scope ? scope[0] : void 0);
|
|
597
596
|
if (!restoreFocus || contain) return;
|
|
598
597
|
let onFocus = () => {
|
|
599
|
-
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(
|
|
598
|
+
if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument), scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
|
|
600
599
|
};
|
|
601
600
|
ownerDocument.addEventListener("focusin", onFocus, false);
|
|
602
601
|
scope === null || scope === void 0 ? void 0 : scope.forEach((element) => element.addEventListener("focusin", onFocus, false));
|
|
@@ -609,7 +608,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
609
608
|
contain
|
|
610
609
|
]);
|
|
611
610
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
612
|
-
const ownerDocument =
|
|
611
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
613
612
|
if (!restoreFocus) return;
|
|
614
613
|
let onKeyDown = (e) => {
|
|
615
614
|
if (e.key !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || !$9bf71ea28793e738$var$shouldContainFocus(scopeRef) || e.isComposing) return;
|
|
@@ -649,7 +648,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
649
648
|
contain
|
|
650
649
|
]);
|
|
651
650
|
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
652
|
-
const ownerDocument =
|
|
651
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(scopeRef.current ? scopeRef.current[0] : void 0);
|
|
653
652
|
if (!restoreFocus) return;
|
|
654
653
|
let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
655
654
|
if (!treeNode) return;
|
|
@@ -659,7 +658,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
|
|
|
659
658
|
let treeNode2 = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
|
|
660
659
|
if (!treeNode2) return;
|
|
661
660
|
let nodeToRestore = treeNode2.nodeToRestore;
|
|
662
|
-
let activeElement =
|
|
661
|
+
let activeElement = useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(ownerDocument);
|
|
663
662
|
if (restoreFocus && nodeToRestore && (activeElement && $9bf71ea28793e738$var$isElementInChildScope(activeElement, scopeRef) || activeElement === ownerDocument.body && $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef))) {
|
|
664
663
|
let clonedTree = $9bf71ea28793e738$export$d06fae2ee68b101e.clone();
|
|
665
664
|
requestAnimationFrame(() => {
|
|
@@ -697,9 +696,9 @@ function $9bf71ea28793e738$var$restoreFocusToElement(node) {
|
|
|
697
696
|
}))) $9bf71ea28793e738$var$focusElement(node);
|
|
698
697
|
}
|
|
699
698
|
function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
|
|
700
|
-
let filter = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ?
|
|
699
|
+
let filter = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? useFocusVisible.$b4b717babfbb907b$export$bebd5a1431fec25d : useFocusVisible.$b4b717babfbb907b$export$4c063cf1350e6fed;
|
|
701
700
|
let rootElement = (root === null || root === void 0 ? void 0 : root.nodeType) === Node.ELEMENT_NODE ? root : null;
|
|
702
|
-
let doc =
|
|
701
|
+
let doc = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(rootElement);
|
|
703
702
|
let walker = $dfc540311bf7f109$export$4d0f8be8b12a7ef6(doc, root || doc, NodeFilter.SHOW_ELEMENT, {
|
|
704
703
|
acceptNode(node) {
|
|
705
704
|
var _opts_from;
|
|
@@ -717,7 +716,7 @@ function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
|
717
716
|
let root = ref.current;
|
|
718
717
|
if (!root) return null;
|
|
719
718
|
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
720
|
-
let node = from ||
|
|
719
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
721
720
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
722
721
|
tabbable,
|
|
723
722
|
accept
|
|
@@ -735,7 +734,7 @@ function $9bf71ea28793e738$export$c5251b9e124bf29(ref, defaultOptions = {}) {
|
|
|
735
734
|
let root = ref.current;
|
|
736
735
|
if (!root) return null;
|
|
737
736
|
let { from, tabbable = defaultOptions.tabbable, wrap = defaultOptions.wrap, accept = defaultOptions.accept } = opts;
|
|
738
|
-
let node = from ||
|
|
737
|
+
let node = from || useFocusVisible.$d4ee10de306f2510$export$cd4e5573fbe2b576(useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(root));
|
|
739
738
|
let walker = $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, {
|
|
740
739
|
tabbable,
|
|
741
740
|
accept
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { I as Icon } from "./Icon-0SN9dbwU.mjs";
|
|
4
|
-
import { M as Menu } from "./Menu-
|
|
4
|
+
import { M as Menu } from "./Menu-DJS86zDM.mjs";
|
|
5
5
|
import { T as Text } from "./Text-BYGcKHR7.mjs";
|
|
6
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
6
|
+
import { U as UnstyledButton } from "./UnstyledButton-D0_XmlIu.mjs";
|
|
7
7
|
var __defProp$1 = Object.defineProperty;
|
|
8
8
|
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
9
9
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const Icon = require("./Icon-W8F9w-jS.js");
|
|
4
|
-
const Menu = require("./Menu-
|
|
4
|
+
const Menu = require("./Menu-BVTFMAX-.js");
|
|
5
5
|
const Text = require("./Text-DZ601qf9.js");
|
|
6
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
6
|
+
const UnstyledButton = require("./UnstyledButton-d3ChgECf.js");
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
9
|
if (e) {
|
|
@@ -23,10 +23,10 @@ const utilities_css = require("../utilities/css.js");
|
|
|
23
23
|
const InputCaption = require("./InputCaption-z01Eep0I.js");
|
|
24
24
|
const Text = require("./Text-DZ601qf9.js");
|
|
25
25
|
const Icon = require("./Icon-W8F9w-jS.js");
|
|
26
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
26
|
+
const UnstyledButton = require("./UnstyledButton-d3ChgECf.js");
|
|
27
27
|
const InputIcon = require("./InputIcon-BIaAI6v9.js");
|
|
28
|
-
const useTextField = require("./useTextField-
|
|
29
|
-
const useHover = require("./useHover-
|
|
28
|
+
const useTextField = require("./useTextField-USpUKriF.js");
|
|
29
|
+
const useHover = require("./useHover-BCKoTdS5.js");
|
|
30
30
|
function _interopNamespaceDefault(e) {
|
|
31
31
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
32
32
|
if (e) {
|
|
@@ -23,10 +23,10 @@ import { classNames, variationName } from "../utilities/css.mjs";
|
|
|
23
23
|
import { L as Label, I as InputCaption } from "./InputCaption-CRtCXzV7.mjs";
|
|
24
24
|
import { T as Text } from "./Text-BYGcKHR7.mjs";
|
|
25
25
|
import { I as Icon } from "./Icon-0SN9dbwU.mjs";
|
|
26
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
26
|
+
import { U as UnstyledButton } from "./UnstyledButton-D0_XmlIu.mjs";
|
|
27
27
|
import { s as styles, m as mapIconSize, g as getElementType, a as logWarningsForInvalidPropConfiguration, l as logWarningForMissingAriaLabel, I as InputIcon } from "./InputIcon-B3t4QT3H.mjs";
|
|
28
|
-
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "./useTextField-
|
|
29
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
28
|
+
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "./useTextField-Dn8JlzYF.mjs";
|
|
29
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BBXJy5NT.mjs";
|
|
30
30
|
var __defProp$1 = Object.defineProperty;
|
|
31
31
|
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
32
32
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
3
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -17,7 +15,6 @@ var __spreadValues = (a, b) => {
|
|
|
17
15
|
}
|
|
18
16
|
return a;
|
|
19
17
|
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
18
|
var __objRest = (source, exclude) => {
|
|
22
19
|
var target = {};
|
|
23
20
|
for (var prop in source)
|
|
@@ -31,8 +28,7 @@ var __objRest = (source, exclude) => {
|
|
|
31
28
|
return target;
|
|
32
29
|
};
|
|
33
30
|
const React = require("react");
|
|
34
|
-
const
|
|
35
|
-
const usePress = require("./usePress-BkfhIu8i.js");
|
|
31
|
+
const UnstyledButton = require("./UnstyledButton-d3ChgECf.js");
|
|
36
32
|
const Text = require("./Text-DZ601qf9.js");
|
|
37
33
|
const Icon = require("./Icon-W8F9w-jS.js");
|
|
38
34
|
function _interopNamespaceDefault(e) {
|
|
@@ -89,25 +85,13 @@ const MoreVert = (_a) => {
|
|
|
89
85
|
d: "M479.88-189.23q-15.09 0-25.72-10.75-10.62-10.74-10.62-25.83 0-15.09 10.75-25.91 10.74-10.82 25.83-10.82 15.09 0 25.72 10.87 10.62 10.86 10.62 26.12 0 15.1-10.75 25.71-10.74 10.61-25.83 10.61Zm0-254.31q-15.09 0-25.72-10.75-10.62-10.74-10.62-25.83 0-15.09 10.75-25.72 10.74-10.62 25.83-10.62 15.09 0 25.72 10.75 10.62 10.74 10.62 25.83 0 15.09-10.75 25.72-10.74 10.62-25.83 10.62Zm0-253.92q-15.09 0-25.72-10.87-10.62-10.86-10.62-26.12 0-15.1 10.75-25.71 10.74-10.61 25.83-10.61 15.09 0 25.72 10.75 10.62 10.74 10.62 25.83 0 15.09-10.75 25.91-10.74 10.82-25.83 10.82Z"
|
|
90
86
|
}));
|
|
91
87
|
};
|
|
92
|
-
const UnstyledPressButton$1 = "_UnstyledPressButton_1oi6s_4";
|
|
93
|
-
const styles$1 = {
|
|
94
|
-
UnstyledPressButton: UnstyledPressButton$1
|
|
95
|
-
};
|
|
96
|
-
const UnstyledPressButton = React.forwardRef((props, ref) => {
|
|
97
|
-
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
98
|
-
return React.createElement("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
99
|
-
ref,
|
|
100
|
-
className: utilities_css.classNames(styles$1.UnstyledPressButton, pressProps.className)
|
|
101
|
-
}));
|
|
102
|
-
});
|
|
103
|
-
UnstyledPressButton.displayName = "UnstyledPressButton";
|
|
104
88
|
const KebabButton$1 = "_KebabButton_2r705_4";
|
|
105
89
|
const styles = {
|
|
106
90
|
KebabButton: KebabButton$1
|
|
107
91
|
};
|
|
108
92
|
const KebabButton = React.forwardRef((props, inRef) => {
|
|
109
93
|
const _a = props, { accessibilityLabel = "Actions" } = _a, restProps = __objRest(_a, ["accessibilityLabel"]);
|
|
110
|
-
return React.createElement(
|
|
94
|
+
return React.createElement(UnstyledButton.UnstyledButton, __spreadValues({
|
|
111
95
|
ref: inRef,
|
|
112
96
|
className: styles.KebabButton
|
|
113
97
|
}, restProps), React.createElement(Text.Text, {
|
|
@@ -118,4 +102,3 @@ const KebabButton = React.forwardRef((props, inRef) => {
|
|
|
118
102
|
});
|
|
119
103
|
KebabButton.displayName = "KebabButton";
|
|
120
104
|
exports.KebabButton = KebabButton;
|
|
121
|
-
exports.UnstyledPressButton = UnstyledPressButton;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
2
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
3
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
4
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -16,7 +14,6 @@ var __spreadValues = (a, b) => {
|
|
|
16
14
|
}
|
|
17
15
|
return a;
|
|
18
16
|
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
17
|
var __objRest = (source, exclude) => {
|
|
21
18
|
var target = {};
|
|
22
19
|
for (var prop in source)
|
|
@@ -30,9 +27,8 @@ var __objRest = (source, exclude) => {
|
|
|
30
27
|
return target;
|
|
31
28
|
};
|
|
32
29
|
import * as React from "react";
|
|
33
|
-
import React__default
|
|
34
|
-
import {
|
|
35
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-CMfwAyab.mjs";
|
|
30
|
+
import React__default from "react";
|
|
31
|
+
import { U as UnstyledButton } from "./UnstyledButton-D0_XmlIu.mjs";
|
|
36
32
|
import { T as Text } from "./Text-BYGcKHR7.mjs";
|
|
37
33
|
import { I as Icon } from "./Icon-0SN9dbwU.mjs";
|
|
38
34
|
var __defProp2 = Object.defineProperty;
|
|
@@ -72,25 +68,13 @@ const MoreVert = (_a) => {
|
|
|
72
68
|
d: "M479.88-189.23q-15.09 0-25.72-10.75-10.62-10.74-10.62-25.83 0-15.09 10.75-25.91 10.74-10.82 25.83-10.82 15.09 0 25.72 10.87 10.62 10.86 10.62 26.12 0 15.1-10.75 25.71-10.74 10.61-25.83 10.61Zm0-254.31q-15.09 0-25.72-10.75-10.62-10.74-10.62-25.83 0-15.09 10.75-25.72 10.74-10.62 25.83-10.62 15.09 0 25.72 10.75 10.62 10.74 10.62 25.83 0 15.09-10.75 25.72-10.74 10.62-25.83 10.62Zm0-253.92q-15.09 0-25.72-10.87-10.62-10.86-10.62-26.12 0-15.1 10.75-25.71 10.74-10.61 25.83-10.61 15.09 0 25.72 10.75 10.62 10.74 10.62 25.83 0 15.09-10.75 25.91-10.74 10.82-25.83 10.82Z"
|
|
73
69
|
}));
|
|
74
70
|
};
|
|
75
|
-
const UnstyledPressButton$1 = "_UnstyledPressButton_1oi6s_4";
|
|
76
|
-
const styles$1 = {
|
|
77
|
-
UnstyledPressButton: UnstyledPressButton$1
|
|
78
|
-
};
|
|
79
|
-
const UnstyledPressButton = forwardRef((props, ref) => {
|
|
80
|
-
const { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
81
|
-
return React__default.createElement("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
82
|
-
ref,
|
|
83
|
-
className: classNames(styles$1.UnstyledPressButton, pressProps.className)
|
|
84
|
-
}));
|
|
85
|
-
});
|
|
86
|
-
UnstyledPressButton.displayName = "UnstyledPressButton";
|
|
87
71
|
const KebabButton$1 = "_KebabButton_2r705_4";
|
|
88
72
|
const styles = {
|
|
89
73
|
KebabButton: KebabButton$1
|
|
90
74
|
};
|
|
91
75
|
const KebabButton = React__default.forwardRef((props, inRef) => {
|
|
92
76
|
const _a = props, { accessibilityLabel = "Actions" } = _a, restProps = __objRest(_a, ["accessibilityLabel"]);
|
|
93
|
-
return React__default.createElement(
|
|
77
|
+
return React__default.createElement(UnstyledButton, __spreadValues({
|
|
94
78
|
ref: inRef,
|
|
95
79
|
className: styles.KebabButton
|
|
96
80
|
}, restProps), React__default.createElement(Text, {
|
|
@@ -101,6 +85,5 @@ const KebabButton = React__default.forwardRef((props, inRef) => {
|
|
|
101
85
|
});
|
|
102
86
|
KebabButton.displayName = "KebabButton";
|
|
103
87
|
export {
|
|
104
|
-
KebabButton as K
|
|
105
|
-
UnstyledPressButton as U
|
|
88
|
+
KebabButton as K
|
|
106
89
|
};
|
|
@@ -32,26 +32,26 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const omit = require("./omit-CC3uE8z5.js");
|
|
35
|
-
const Checkbox = require("./Checkbox-
|
|
35
|
+
const Checkbox = require("./Checkbox-DEmP9BGE.js");
|
|
36
36
|
const Text = require("./Text-DZ601qf9.js");
|
|
37
|
-
const utilities = require("./utilities-
|
|
37
|
+
const utilities = require("./utilities-x6Aiy1EG.js");
|
|
38
38
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
39
39
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
40
|
-
const usePress = require("./usePress-
|
|
41
|
-
const useSelectableList = require("./useSelectableList-
|
|
42
|
-
const useFocus = require("./useFocus-
|
|
43
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
44
|
-
const useHover = require("./useHover-
|
|
45
|
-
const useFocusable = require("./useFocusable-
|
|
46
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
40
|
+
const usePress = require("./usePress-DchxjERD.js");
|
|
41
|
+
const useSelectableList = require("./useSelectableList-F9Rfjy4j.js");
|
|
42
|
+
const useFocus = require("./useFocus-Da6IfenG.js");
|
|
43
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
44
|
+
const useHover = require("./useHover-BCKoTdS5.js");
|
|
45
|
+
const useFocusable = require("./useFocusable-DRHM1otK.js");
|
|
46
|
+
const useSelectableItem = require("./useSelectableItem-CxOGkw0W.js");
|
|
47
47
|
const Item = require("./Item-CfWjPrxx.js");
|
|
48
48
|
const _commonjsHelpers = require("./_commonjsHelpers-Bc2YnDe1.js");
|
|
49
49
|
const utilities_useScrollbar = require("../utilities/useScrollbar.js");
|
|
50
50
|
const useTriggerWidth = require("./useTriggerWidth-B-IM2wNY.js");
|
|
51
|
-
const Overlay = require("./Overlay-
|
|
51
|
+
const Overlay = require("./Overlay-BqaNlC3s.js");
|
|
52
52
|
const useTreeState = require("./useTreeState-DrWJoIPU.js");
|
|
53
|
-
const useMenuTriggerState = require("./useMenuTriggerState-
|
|
54
|
-
const useMenuTrigger = require("./useMenuTrigger-
|
|
53
|
+
const useMenuTriggerState = require("./useMenuTriggerState-DmsfK2RH.js");
|
|
54
|
+
const useMenuTrigger = require("./useMenuTrigger-Dq7mhK38.js");
|
|
55
55
|
const $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
|
|
56
56
|
function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
57
57
|
let _a = props, { shouldFocusWrap = true, onKeyDown, onKeyUp } = _a, otherProps = __objRest(_a, ["shouldFocusWrap", "onKeyDown", "onKeyUp"]);
|
|
@@ -31,26 +31,26 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import React__default, { createContext, useContext, useCallback, useMemo } from "react";
|
|
33
33
|
import { o as omit } from "./omit-CYoLXTjq.mjs";
|
|
34
|
-
import { C as Checkbox } from "./Checkbox-
|
|
34
|
+
import { C as Checkbox } from "./Checkbox-BMBM6doF.mjs";
|
|
35
35
|
import { T as Text } from "./Text-BYGcKHR7.mjs";
|
|
36
|
-
import { i as isSelectAllSelected, S as SELECT_ALL_KEY, e as isSelectAllIndeterminate, D as DEFAULT_MAX_ITEMS_UNTIL_SCROLL, c as DEFAULT_PLACEMENT, b as DEFAULT_WIDTH, u as useSelectionCapture, $ as $f2f8a6077418541e$export$542a6fd13ac93354, O as OVERLAY_OFFSET, f as getMenuPopoverMaxHeight, d as OVERLAY_PADDING_FROM_CONTAINER, h as filterSelectedKeys, g as getUnmergedPopoverStyles, a as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "./utilities-
|
|
37
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
36
|
+
import { i as isSelectAllSelected, S as SELECT_ALL_KEY, e as isSelectAllIndeterminate, D as DEFAULT_MAX_ITEMS_UNTIL_SCROLL, c as DEFAULT_PLACEMENT, b as DEFAULT_WIDTH, u as useSelectionCapture, $ as $f2f8a6077418541e$export$542a6fd13ac93354, O as OVERLAY_OFFSET, f as getMenuPopoverMaxHeight, d as OVERLAY_PADDING_FROM_CONTAINER, h as filterSelectedKeys, g as getUnmergedPopoverStyles, a as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "./utilities-BB2zmROs.mjs";
|
|
37
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$b4cc09c592e8fdb8, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DRsiQq2k.mjs";
|
|
38
38
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
39
|
-
import { a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-
|
|
40
|
-
import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./useSelectableList-
|
|
41
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
42
|
-
import {
|
|
43
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
44
|
-
import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "./useFocusable-
|
|
45
|
-
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-
|
|
39
|
+
import { a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-BH70cn5g.mjs";
|
|
40
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./useSelectableList-D7mL6j6I.mjs";
|
|
41
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-BL_s_3zv.mjs";
|
|
42
|
+
import { f as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
43
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BBXJy5NT.mjs";
|
|
44
|
+
import { a as $46d819fcbaf35654$export$8f71654801c2f7cd } from "./useFocusable-C-Ge2Ht4.mjs";
|
|
45
|
+
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-Xr4pjjqP.mjs";
|
|
46
46
|
import { $ as $c1d7fb2ec91bae71$export$6d08773d2e66f8f2 } from "./Item-BhrTPNN2.mjs";
|
|
47
47
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DWwsNxpa.mjs";
|
|
48
48
|
import { useScrollbar } from "../utilities/useScrollbar.mjs";
|
|
49
49
|
import { $ as $f4b273590fab9f93$export$52210f68a14655d0, a as $9fc4852771d079eb$export$6e2c8f0811a474ce, u as useTriggerWidth } from "./useTriggerWidth-74VNM0k9.mjs";
|
|
50
|
-
import { d as $337b884510726a0d$export$c6fdb837b070b4ff } from "./Overlay-
|
|
50
|
+
import { d as $337b884510726a0d$export$c6fdb837b070b4ff } from "./Overlay-CG-kKp6T.mjs";
|
|
51
51
|
import { $ as $875d6693e12af071$export$728d6ba534403756 } from "./useTreeState-DtfZCGLY.mjs";
|
|
52
|
-
import { $ as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3 } from "./useMenuTriggerState-
|
|
53
|
-
import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "./useMenuTrigger-
|
|
52
|
+
import { $ as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3 } from "./useMenuTriggerState-C-zvqrX2.mjs";
|
|
53
|
+
import { $ as $168583247155ddda$export$dc9c12ed27dd1b49 } from "./useMenuTrigger-BlLkvrnl.mjs";
|
|
54
54
|
const $fc79756100351201$export$6f49b4016bfc8d56 = /* @__PURE__ */ new WeakMap();
|
|
55
55
|
function $d5336fe17ce95402$export$38eaa17faae8f579(props, state, ref) {
|
|
56
56
|
let _a = props, { shouldFocusWrap = true, onKeyDown, onKeyUp } = _a, otherProps = __objRest(_a, ["shouldFocusWrap", "onKeyDown", "onKeyUp"]);
|
|
@@ -28,11 +28,10 @@ const index = require("./index-6ObXAT_4.js");
|
|
|
28
28
|
const Icon = require("./Icon-W8F9w-jS.js");
|
|
29
29
|
const Text = require("./Text-DZ601qf9.js");
|
|
30
30
|
const utilities_css = require("../utilities/css.js");
|
|
31
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const useHover = require("./useHover-NuBBFo1D.js");
|
|
31
|
+
const UnstyledButton = require("./UnstyledButton-d3ChgECf.js");
|
|
32
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
33
|
+
const useFocusWithin = require("./useFocusWithin-T1vqkUYN.js");
|
|
34
|
+
const useHover = require("./useHover-BCKoTdS5.js");
|
|
36
35
|
function _interopNamespaceDefault(e) {
|
|
37
36
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
38
37
|
if (e) {
|
|
@@ -895,7 +894,7 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
895
894
|
let removedFocusedToastIndex = allToasts.findIndex((t) => t.i === focusedToast.current && t.isRemoved);
|
|
896
895
|
if (removedFocusedToastIndex > -1) {
|
|
897
896
|
var _lastFocused_current;
|
|
898
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" && ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected))
|
|
897
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" && ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected)) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
899
898
|
else {
|
|
900
899
|
let i = 0;
|
|
901
900
|
let nextToast;
|
|
@@ -912,8 +911,8 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
912
911
|
i++;
|
|
913
912
|
}
|
|
914
913
|
if (prevToast === void 0 && nextToast === void 0) prevToast = 0;
|
|
915
|
-
if (prevToast >= 0 && prevToast < toasts.current.length)
|
|
916
|
-
else if (nextToast >= 0 && nextToast < toasts.current.length)
|
|
914
|
+
if (prevToast >= 0 && prevToast < toasts.current.length) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(toasts.current[prevToast]);
|
|
915
|
+
else if (nextToast >= 0 && nextToast < toasts.current.length) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(toasts.current[nextToast]);
|
|
917
916
|
}
|
|
918
917
|
}
|
|
919
918
|
prevVisibleToasts.current = state.visibleToasts;
|
|
@@ -938,7 +937,7 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
938
937
|
React.useEffect(() => {
|
|
939
938
|
var _lastFocused_current;
|
|
940
939
|
if (state.visibleToasts.length === 0 && ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected)) {
|
|
941
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer")
|
|
940
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer") useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
942
941
|
else lastFocused.current.focus();
|
|
943
942
|
lastFocused.current = null;
|
|
944
943
|
}
|
|
@@ -950,7 +949,7 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
950
949
|
return () => {
|
|
951
950
|
var _lastFocused_current;
|
|
952
951
|
if ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected) {
|
|
953
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer")
|
|
952
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer") useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
954
953
|
else lastFocused.current.focus();
|
|
955
954
|
lastFocused.current = null;
|
|
956
955
|
}
|