@easypost/easy-ui 1.0.0-alpha.66 → 1.0.0-alpha.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +14 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +15 -15
- package/CodeBlock/index.mjs +15 -15
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +69 -69
- package/DataGrid/index.mjs +69 -69
- package/DatePicker/index.js +8 -8
- package/DatePicker/index.mjs +8 -8
- package/DateRangePicker/index.js +8 -8
- package/DateRangePicker/index.mjs +8 -8
- package/Drawer/index.js +22 -22
- package/Drawer/index.mjs +22 -22
- package/DropdownButton/index.js +13 -13
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/ForgeLayout/index.js +42 -42
- package/ForgeLayout/index.mjs +42 -42
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +23 -23
- package/Modal/index.mjs +23 -23
- package/MultiSelect/index.js +37 -39
- package/MultiSelect/index.mjs +38 -40
- package/NexusLayout/index.js +31 -31
- package/NexusLayout/index.mjs +31 -31
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +8 -8
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/ProductLayout/index.js +26 -26
- package/ProductLayout/index.mjs +26 -26
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +10 -12
- package/RadioButtonGroup/index.mjs +10 -12
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +29 -29
- package/SearchNav/index.mjs +29 -29
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +4 -4
- package/TabPanels/index.mjs +4 -4
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +25 -25
- package/VerticalNav/index.mjs +25 -25
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-Y550ybuK.js → Button-BoPQ-Fx9.js} +6 -6
- package/__chunks__/{Button-CVbi-24J.mjs → Button-C2XjH0To.mjs} +19 -19
- package/__chunks__/{Button-BqogJAQ3.mjs → Button-DShBPWIF.mjs} +6 -6
- package/__chunks__/{Button-CVaEK94Q.js → Button-DnLoaSJr.js} +19 -19
- package/__chunks__/{Calendar-C2JlXaSY.mjs → Calendar-CE1me5kU.mjs} +1 -1
- package/__chunks__/{Calendar-CmF_v-Dn.js → Calendar-DDwEgLvp.js} +1 -1
- package/__chunks__/{CalendarBase-aeU9JZC2.mjs → CalendarBase-BaIRHctl.mjs} +49 -38
- package/__chunks__/{CalendarBase-Cavy4k_H.js → CalendarBase-C3ZpOlSV.js} +49 -38
- package/__chunks__/{Card-B5c1vM8E.mjs → Card-C6wAxtdL.mjs} +12 -12
- package/__chunks__/{Card-BHZOcCVB.js → Card-Dd-q1bh8.js} +12 -12
- package/__chunks__/{Checkbox-BmtLwm3J.js → Checkbox-CNu0kM51.js} +23 -23
- package/__chunks__/{Checkbox-IhSMESiF.mjs → Checkbox-DxVLox7u.mjs} +23 -23
- package/__chunks__/{CodeSnippet-HAojQDBb.js → CodeSnippet-BT2hkAfu.js} +2 -2
- package/__chunks__/{CodeSnippet-DA3SuGi9.mjs → CodeSnippet-Duhq5nHT.mjs} +2 -2
- package/__chunks__/{DatePickerBase-DYuliQ2j.mjs → DatePickerBase-BeCCGUnY.mjs} +24 -24
- package/__chunks__/{DatePickerBase-PqJZhPW5.js → DatePickerBase-L-HoCUep.js} +24 -24
- package/__chunks__/{Dialog-CFyC5TFs.js → Dialog-CuqmbMC4.js} +74 -15
- package/__chunks__/{Dialog-DnCSZh3s.mjs → Dialog-Dhrf3s5u.mjs} +75 -16
- package/__chunks__/{FocusScope-Qg8vUhZ_.mjs → FocusScope-Bwm5pVEe.mjs} +7 -4
- package/__chunks__/{FocusScope-DFE0IeGl.js → FocusScope-Djtxzznf.js} +7 -4
- package/__chunks__/{HelpMenu-dPaIsmEG.mjs → HelpMenu-BAmSNUnC.mjs} +7 -7
- package/__chunks__/{HelpMenu-DttT1pkc.js → HelpMenu-D1cDon5L.js} +7 -7
- package/__chunks__/{HorizontalGrid-CyBrrh6k.mjs → HorizontalGrid-Ch9ENxEo.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-BFqXCljf.js → HorizontalGrid-kfsspHih.js} +1 -1
- package/__chunks__/{HorizontalStack-BG-lZii5.js → HorizontalStack-B1uZiaNX.js} +1 -1
- package/__chunks__/{HorizontalStack-p9m9muAJ.mjs → HorizontalStack-Dyv-5-kh.mjs} +1 -1
- package/__chunks__/{Icon-BHbBKuGB.js → Icon-BEiJGivA.js} +2 -2
- package/__chunks__/{Icon-ZRjQkfey.mjs → Icon-DOHoWHbH.mjs} +2 -2
- package/__chunks__/{InputCaption-DE7SnGJr.mjs → InputCaption-CySYnmNV.mjs} +2 -2
- package/__chunks__/{InputCaption-BQw7pLl1.js → InputCaption-Dj5fHEqX.js} +2 -2
- package/__chunks__/{InputField-1toY1X94.mjs → InputField-DA7g3X1G.mjs} +6 -6
- package/__chunks__/{InputField-e2dBsTrQ.js → InputField-DHwzYUj5.js} +6 -6
- package/__chunks__/{InputIcon-CKwsgYvg.mjs → InputIcon-DuUwLnBp.mjs} +31 -31
- package/__chunks__/{InputIcon-DM19rdNu.js → InputIcon-UgLsMyoE.js} +31 -31
- package/__chunks__/{KebabButton-CGvwEB3q.mjs → KebabButton-BIAHO0Cj.mjs} +5 -5
- package/__chunks__/{KebabButton-3APOVOtc.js → KebabButton-C-bMU56U.js} +5 -5
- package/__chunks__/{Menu-90Db_wYM.js → Menu-7hcIonxF.js} +43 -30
- package/__chunks__/{Menu-D7JiGJt4.mjs → Menu-BhWR0nq_.mjs} +43 -30
- package/__chunks__/{Notification-C4gEE6IM.mjs → Notification-BHHczfET.mjs} +17 -17
- package/__chunks__/{Notification-DZ0uDsoT.js → Notification-CsAZEegz.js} +17 -17
- package/__chunks__/{Overlay-Dmwy9VjC.js → Overlay-CwJbrICR.js} +1 -1
- package/__chunks__/{Overlay-BEmOdNIB.mjs → Overlay-kQ6Q7dIG.mjs} +1 -1
- package/__chunks__/{PillGroup-Bp5vfk6Z.mjs → PillGroup-CNUAWSR0.mjs} +135 -51
- package/__chunks__/{PillGroup-BetDOSFz.js → PillGroup-DJbLolMZ.js} +134 -50
- package/__chunks__/{RadioGroup-Qn2c29rT.js → RadioGroup-CeV2gCqE.js} +21 -21
- package/__chunks__/{RadioGroup-DPJOnxCi.mjs → RadioGroup-Cxj8sLXq.mjs} +21 -21
- package/__chunks__/{RangeCalendar-BNySCRAa.mjs → RangeCalendar-CzkbWcll.mjs} +1 -1
- package/__chunks__/{RangeCalendar-lhIzCnWl.js → RangeCalendar-GePc_84N.js} +1 -1
- package/__chunks__/{SelectOverlay-CoOED545.js → SelectOverlay-BduwEfhI.js} +28 -28
- package/__chunks__/{SelectOverlay-D12QgA_I.mjs → SelectOverlay-XpPaiSFA.mjs} +28 -28
- package/__chunks__/{SelectorErrorTooltip-CNinvIcU.js → SelectorErrorTooltip-CKfb04-I.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-Cz7Uw_O_.mjs → SelectorErrorTooltip-Dh0VAxiG.mjs} +4 -4
- package/__chunks__/{Spinner-DTH0xdij.js → Spinner-BKXdBoJJ.js} +5 -5
- package/__chunks__/{Spinner-Co64ezt-.mjs → Spinner-nrWHZuaA.mjs} +5 -5
- package/__chunks__/{Stepper-OFWKfhi3.mjs → Stepper-DJoTq-8d.mjs} +27 -27
- package/__chunks__/{Stepper-DqcfNOrn.js → Stepper-Dsu6ZQmh.js} +27 -27
- package/__chunks__/{TabNav-B44TuB70.mjs → TabNav-BPVFmoVS.mjs} +1 -1
- package/__chunks__/{TabNav-DzF57oTN.js → TabNav-Cdy2fWSb.js} +1 -1
- package/__chunks__/{Tabs-CsxDAl1X.js → Tabs-BwwFqtnK.js} +18 -18
- package/__chunks__/{Tabs-ClOwavjv.mjs → Tabs-MOd7gGYp.mjs} +18 -18
- package/__chunks__/{Text-BwXTDw77.js → Text-Bi6LyLI0.js} +34 -34
- package/__chunks__/{Text-DYLBjpe-.mjs → Text-FQhZrmyS.mjs} +34 -34
- package/__chunks__/{TextField-DVWDMYaM.mjs → TextField-Beqw4ytb.mjs} +1 -1
- package/__chunks__/{TextField-YD_1oSnk.js → TextField-DcwzlNPF.js} +1 -1
- package/__chunks__/{Toggle-gPKUf7QS.js → Toggle-DDgvulcD.js} +13 -13
- package/__chunks__/{Toggle-DiK1wHdG.mjs → Toggle-t9mfqH-0.mjs} +13 -13
- package/__chunks__/{Tooltip-DPZMv6Ia.js → Tooltip-BB9vKUHa.js} +12 -12
- package/__chunks__/{Tooltip-BX_C7x_7.mjs → Tooltip-C30mSvZB.mjs} +12 -12
- package/__chunks__/{UnstyledButton-Dmq9K7Jv.js → UnstyledButton-BNpFL1WV.js} +1 -1
- package/__chunks__/{UnstyledButton-Ctqv-3bt.mjs → UnstyledButton-_Fv2Zvnn.mjs} +1 -1
- package/__chunks__/{VerticalStack-C466n8W1.mjs → VerticalStack-Cth39m-n.mjs} +3 -3
- package/__chunks__/{VerticalStack-DIpmkisq.js → VerticalStack-D5juweSg.js} +3 -3
- package/__chunks__/{VisuallyHidden-BC5PXI9q.mjs → VisuallyHidden-BM6BpKe-.mjs} +1 -1
- package/__chunks__/{VisuallyHidden-CVfjb1YY.js → VisuallyHidden-DcUrMWfu.js} +1 -1
- package/__chunks__/{ariaHideOutside-B6WqGXJj.js → ariaHideOutside-DkYn-eBq.js} +4 -14
- package/__chunks__/{ariaHideOutside-CxWZQtI1.mjs → ariaHideOutside-DzT8L09V.mjs} +4 -14
- package/__chunks__/{focusSafely-BWGCG3W3.mjs → focusSafely-DByEWahg.mjs} +2 -2
- package/__chunks__/{focusSafely-BvrXUhlW.js → focusSafely-wmTq_iKq.js} +2 -2
- package/__chunks__/{isVirtualEvent-BPCuFO54.mjs → isVirtualEvent-B_Z4yzgm.mjs} +7 -6
- package/__chunks__/{isVirtualEvent-DwoP1rNI.js → isVirtualEvent-C-tB2MCl.js} +1 -0
- package/__chunks__/{scrollIntoView-DkcUbB3D.js → scrollIntoView-BN4yt25y.js} +11 -7
- package/__chunks__/{scrollIntoView-CZM0k-rp.mjs → scrollIntoView-wURtlgJt.mjs} +11 -7
- package/__chunks__/{useButton-DZ0C3d-K.js → useButton-B_VJe1i5.js} +2 -2
- package/__chunks__/{useButton-BK6hwK02.mjs → useButton-CAB58gzb.mjs} +2 -2
- package/__chunks__/{useDialog-wy_ru95P.js → useDialog-DJ-g6m8Y.js} +2 -2
- package/__chunks__/{useDialog-h-MPfyGr.mjs → useDialog-IOP1VbOS.mjs} +2 -2
- package/__chunks__/{useEdgeInterceptors-DU8I_hQ1.js → useEdgeInterceptors-BPijGinK.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-BORL2txk.mjs → useEdgeInterceptors-DD-Z8qkB.mjs} +5 -5
- package/__chunks__/{useFocus-BJ7JikEx.mjs → useFocus-CK70xB5-.mjs} +2 -2
- package/__chunks__/{useFocus-B4oRb1dU.js → useFocus-l6ZlVMHW.js} +2 -2
- package/__chunks__/{useFocusRing-YOWeCHgO.mjs → useFocusRing-DE2KtVaT.mjs} +3 -3
- package/__chunks__/{useFocusRing-DFRFvht_.js → useFocusRing-f5StfjhA.js} +3 -3
- package/__chunks__/{useFocusVisible-ng1Hn25t.mjs → useFocusVisible-BWsOm7z5.mjs} +1 -1
- package/__chunks__/{useFocusVisible-PBQuklI8.js → useFocusVisible-CiIrKjuz.js} +1 -1
- package/__chunks__/{useFocusWithin-C1ioGWec.js → useFocusWithin-C-45XiL1.js} +1 -1
- package/__chunks__/{useFocusWithin-B-vQAW9V.mjs → useFocusWithin-C1nTntXX.mjs} +1 -1
- package/__chunks__/{useFocusable-8kJcp2yc.js → useFocusable-BQyiwtXU.js} +7 -3
- package/__chunks__/{useFocusable-CNor_Zjt.mjs → useFocusable-DFWO-r50.mjs} +7 -3
- package/__chunks__/{useFormValidation-DYz5WFze.js → useFormValidation-BeqiYVJN.js} +2 -2
- package/__chunks__/{useFormValidation-B3euLzzR.mjs → useFormValidation-DfzAl9pN.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-Cs10TUUE.js → useHasTabbableChild-CepF5tQS.js} +1 -1
- package/__chunks__/{useHasTabbableChild-BKgmY6ej.mjs → useHasTabbableChild-YC8W7aRx.mjs} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-Cebr-N8X.mjs → useHighlightSelectionDescription-DjuXbVSH.mjs} +2 -2
- package/__chunks__/{useHighlightSelectionDescription-CT5XKTz0.js → useHighlightSelectionDescription-nSfKxNPA.js} +2 -2
- package/__chunks__/{useLink-DSnaSTQf.js → useLink-CQhl3ZGL.js} +2 -2
- package/__chunks__/{useLink-xdTgcuUM.mjs → useLink-D-4bwjAt.mjs} +2 -2
- package/__chunks__/{useListBoxSection-BsSdeGKp.mjs → useListBoxSection-CAwVEYPF.mjs} +10 -8
- package/__chunks__/{useListBoxSection-BlFRlBZy.js → useListBoxSection-TdoNdwIM.js} +10 -8
- package/__chunks__/{useMenuTrigger-qbIPy-fg.js → useMenuTrigger-DhSBxWW5.js} +2 -2
- package/__chunks__/{useMenuTrigger-D4pQ727R.mjs → useMenuTrigger-sRmDwcBp.mjs} +2 -2
- package/__chunks__/{useMenuTriggerState-Dai3rheB.js → useMenuTriggerState-DTZmPbSP.js} +1 -1
- package/__chunks__/{useMenuTriggerState-Cf_X36NC.mjs → useMenuTriggerState-cQf7L0mT.mjs} +1 -1
- package/__chunks__/{useModalOverlay-CkOujl0G.mjs → useModalOverlay-DyHdFvmT.mjs} +2 -2
- package/__chunks__/{useModalOverlay-BljLSPJ0.js → useModalOverlay-gSHY_FAb.js} +2 -2
- package/__chunks__/{useOverlayPosition-CMvGmqVL.js → useOverlayPosition-DJGEWKwM.js} +2 -2
- package/__chunks__/{useOverlayPosition-dua8TTSS.mjs → useOverlayPosition-VlLR-wFE.mjs} +2 -2
- package/__chunks__/{useOverlayTrigger-BS8c6XEz.mjs → useOverlayTrigger-BDiptZUo.mjs} +1 -1
- package/__chunks__/{useOverlayTrigger-Dp7RXQ9B.js → useOverlayTrigger-CiUR_pLO.js} +1 -1
- package/__chunks__/{usePress-DNETV97g.js → usePress-DTGD4Sub.js} +14 -13
- package/__chunks__/{usePress-Db4pSZfY.mjs → usePress-U7SFXdpv.mjs} +14 -13
- package/__chunks__/{useSelectableItem-B8l2VAQ8.mjs → useSelectableItem-BB067hsf.mjs} +102 -25
- package/__chunks__/{useSelectableItem-DpEX9QBc.js → useSelectableItem-BEkjpB_K.js} +101 -24
- package/__chunks__/{useSelectableList-DsUuWr0P.mjs → useSelectableList-DDqgQiaE.mjs} +1 -1
- package/__chunks__/{useSelectableList-CzTJAukw.js → useSelectableList-Dk3TxzYJ.js} +1 -1
- package/__chunks__/{useTextField-CErFc3WZ.js → useTextField-DM-ZTn9j.js} +6 -3
- package/__chunks__/{useTextField-Dd-YTxI4.mjs → useTextField-DmLS2Qbm.mjs} +6 -3
- package/__chunks__/{useToggle-BfpHeO2F.js → useToggle-Cu5EqIJD.js} +2 -2
- package/__chunks__/{useToggle-BDx-p-Zv.mjs → useToggle-infPUFau.mjs} +2 -2
- package/__chunks__/{utilities-DpKIaDkW.mjs → utilities-BXDJP7Yh.mjs} +4 -4
- package/__chunks__/{utilities-BDABIMDb.js → utilities-DIZYscJV.js} +4 -4
- package/__chunks__/{utils-Dt6xdGol.mjs → utils-BIfsWYLR.mjs} +5 -57
- package/__chunks__/{utils-eHk7b-OB.js → utils-BlKqJM2_.js} +0 -52
- package/package.json +5 -5
- package/style.css +1056 -1056
|
@@ -18,17 +18,39 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useRef, useEffect } from "react";
|
|
21
|
-
import {
|
|
22
|
-
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-Qg8vUhZ_.mjs";
|
|
23
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-BWGCG3W3.mjs";
|
|
24
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
21
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-DSi85raC.mjs";
|
|
25
22
|
import { a as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./context-EpOG85wC.mjs";
|
|
26
|
-
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, f as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-
|
|
23
|
+
import { e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, f as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-U7SFXdpv.mjs";
|
|
27
24
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B0fsKtsf.mjs";
|
|
28
|
-
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-
|
|
29
|
-
import {
|
|
25
|
+
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-wURtlgJt.mjs";
|
|
26
|
+
import { flushSync } from "react-dom";
|
|
27
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-Bwm5pVEe.mjs";
|
|
28
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-DByEWahg.mjs";
|
|
29
|
+
import { $ as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-BWsOm7z5.mjs";
|
|
30
30
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BZCcafjG.mjs";
|
|
31
|
-
import {
|
|
31
|
+
import { c as $c87311424ea30a05$export$9ac100e40613ea10, h as $c87311424ea30a05$export$e1865c3bedcd822b } from "./isVirtualEvent-B_Z4yzgm.mjs";
|
|
32
|
+
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
33
|
+
const isInitialMount = useRef(true);
|
|
34
|
+
const lastDeps = useRef(null);
|
|
35
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
36
|
+
isInitialMount.current = true;
|
|
37
|
+
return () => {
|
|
38
|
+
isInitialMount.current = false;
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
41
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
42
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
43
|
+
else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
|
|
44
|
+
lastDeps.current = dependencies;
|
|
45
|
+
}, dependencies);
|
|
46
|
+
}
|
|
47
|
+
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
48
|
+
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
49
|
+
const $5671b20cf9b562b2$export$9db568f6321ad9dc = "react-aria-update-activedescendant";
|
|
50
|
+
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
51
|
+
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
52
|
+
return e.ctrlKey;
|
|
53
|
+
}
|
|
32
54
|
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
33
55
|
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
34
56
|
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
@@ -83,10 +105,6 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
83
105
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
84
106
|
return $c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
85
107
|
}
|
|
86
|
-
function $feb5ffebff200149$export$16792effe837dba3(e) {
|
|
87
|
-
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
88
|
-
return e.ctrlKey;
|
|
89
|
-
}
|
|
90
108
|
const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
91
109
|
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
92
110
|
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
@@ -200,22 +218,24 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
200
218
|
break;
|
|
201
219
|
case "Home":
|
|
202
220
|
if (delegate.getFirstKey) {
|
|
221
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
203
222
|
e.preventDefault();
|
|
204
|
-
let firstKey = delegate.getFirstKey(manager.focusedKey, $
|
|
223
|
+
let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
205
224
|
manager.setFocusedKey(firstKey);
|
|
206
225
|
if (firstKey != null) {
|
|
207
|
-
if ($
|
|
226
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(firstKey);
|
|
208
227
|
else if (selectOnFocus) manager.replaceSelection(firstKey);
|
|
209
228
|
}
|
|
210
229
|
}
|
|
211
230
|
break;
|
|
212
231
|
case "End":
|
|
213
232
|
if (delegate.getLastKey) {
|
|
233
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
214
234
|
e.preventDefault();
|
|
215
|
-
let lastKey = delegate.getLastKey(manager.focusedKey, $
|
|
235
|
+
let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
216
236
|
manager.setFocusedKey(lastKey);
|
|
217
237
|
if (lastKey != null) {
|
|
218
|
-
if ($
|
|
238
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(lastKey);
|
|
219
239
|
else if (selectOnFocus) manager.replaceSelection(lastKey);
|
|
220
240
|
}
|
|
221
241
|
}
|
|
@@ -239,7 +259,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
239
259
|
}
|
|
240
260
|
break;
|
|
241
261
|
case "a":
|
|
242
|
-
if ($
|
|
262
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== true) {
|
|
243
263
|
e.preventDefault();
|
|
244
264
|
manager.selectAll();
|
|
245
265
|
}
|
|
@@ -319,6 +339,49 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
319
339
|
let onBlur = (e) => {
|
|
320
340
|
if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);
|
|
321
341
|
};
|
|
342
|
+
let shouldVirtualFocusFirst = useRef(false);
|
|
343
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
344
|
+
let { detail } = e;
|
|
345
|
+
e.stopPropagation();
|
|
346
|
+
manager.setFocused(true);
|
|
347
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.focusStrategy) === "first") shouldVirtualFocusFirst.current = true;
|
|
348
|
+
});
|
|
349
|
+
let updateActiveDescendant = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
350
|
+
var _delegate_getFirstKey;
|
|
351
|
+
var _delegate_getFirstKey1;
|
|
352
|
+
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
353
|
+
if (keyToFocus == null) {
|
|
354
|
+
var _ref_current;
|
|
355
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
356
|
+
cancelable: true,
|
|
357
|
+
bubbles: true
|
|
358
|
+
}));
|
|
359
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
360
|
+
} else {
|
|
361
|
+
manager.setFocusedKey(keyToFocus);
|
|
362
|
+
shouldVirtualFocusFirst.current = false;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
366
|
+
if (shouldVirtualFocusFirst.current) updateActiveDescendant();
|
|
367
|
+
}, [
|
|
368
|
+
manager.collection,
|
|
369
|
+
updateActiveDescendant
|
|
370
|
+
]);
|
|
371
|
+
let resetFocusFirstFlag = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
372
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
373
|
+
});
|
|
374
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
375
|
+
resetFocusFirstFlag();
|
|
376
|
+
}, [
|
|
377
|
+
manager.focusedKey,
|
|
378
|
+
resetFocusFirstFlag
|
|
379
|
+
]);
|
|
380
|
+
$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
381
|
+
e.stopPropagation();
|
|
382
|
+
manager.setFocused(false);
|
|
383
|
+
manager.setFocusedKey(null);
|
|
384
|
+
});
|
|
322
385
|
const autoFocusRef = useRef(autoFocus);
|
|
323
386
|
useEffect(() => {
|
|
324
387
|
if (autoFocusRef.current) {
|
|
@@ -378,6 +441,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
378
441
|
if (!disallowTypeAhead) handlers = $3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
379
442
|
let tabIndex = void 0;
|
|
380
443
|
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
444
|
+
else tabIndex = -1;
|
|
381
445
|
return {
|
|
382
446
|
collectionProps: __spreadProps(__spreadValues({}, handlers), {
|
|
383
447
|
tabIndex
|
|
@@ -385,8 +449,9 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
385
449
|
};
|
|
386
450
|
}
|
|
387
451
|
function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
388
|
-
let { selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
452
|
+
let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
389
453
|
let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
454
|
+
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
390
455
|
let onSelect = (e) => {
|
|
391
456
|
if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
|
|
392
457
|
else {
|
|
@@ -403,16 +468,25 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
403
468
|
if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);
|
|
404
469
|
else manager.replaceSelection(key);
|
|
405
470
|
} else if (e && e.shiftKey) manager.extendSelection(key);
|
|
406
|
-
else if (manager.selectionBehavior === "toggle" || e && ($
|
|
471
|
+
else if (manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual"))
|
|
407
472
|
manager.toggleSelection(key);
|
|
408
473
|
else manager.replaceSelection(key);
|
|
409
474
|
}
|
|
410
475
|
};
|
|
411
476
|
useEffect(() => {
|
|
412
477
|
let isFocused = key === manager.focusedKey;
|
|
413
|
-
if (isFocused && manager.isFocused
|
|
414
|
-
if (
|
|
415
|
-
|
|
478
|
+
if (isFocused && manager.isFocused) {
|
|
479
|
+
if (!shouldUseVirtualFocus) {
|
|
480
|
+
if (focus) focus();
|
|
481
|
+
else if (document.activeElement !== ref.current && ref.current) $6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
482
|
+
} else {
|
|
483
|
+
var _ref_current;
|
|
484
|
+
let updateActiveDescendant = new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
485
|
+
cancelable: true,
|
|
486
|
+
bubbles: true
|
|
487
|
+
});
|
|
488
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(updateActiveDescendant);
|
|
489
|
+
}
|
|
416
490
|
}
|
|
417
491
|
}, [
|
|
418
492
|
ref,
|
|
@@ -466,9 +540,11 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
466
540
|
};
|
|
467
541
|
else {
|
|
468
542
|
itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
|
|
469
|
-
if (e.pointerType
|
|
543
|
+
if (e.pointerType === "mouse" && allowsSelection) onSelect(e);
|
|
544
|
+
};
|
|
545
|
+
itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
|
|
546
|
+
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection) onSelect(e);
|
|
470
547
|
};
|
|
471
|
-
itemPressProps.onPress = hasPrimaryAction ? performAction : void 0;
|
|
472
548
|
}
|
|
473
549
|
} else {
|
|
474
550
|
itemPressProps.onPressStart = (e) => {
|
|
@@ -513,7 +589,8 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
513
589
|
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
514
590
|
onDoubleClick,
|
|
515
591
|
onDragStartCapture,
|
|
516
|
-
onClick
|
|
592
|
+
onClick,
|
|
593
|
+
id
|
|
517
594
|
}),
|
|
518
595
|
isPressed,
|
|
519
596
|
isSelected: manager.isSelected(key),
|
|
@@ -19,17 +19,39 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const ReactDOM = require("react-dom");
|
|
23
|
-
const FocusScope = require("./FocusScope-DFE0IeGl.js");
|
|
24
|
-
const focusSafely = require("./focusSafely-BvrXUhlW.js");
|
|
25
22
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
26
23
|
const context$1 = require("./context-CYcq9Zvo.js");
|
|
27
|
-
const usePress = require("./usePress-
|
|
24
|
+
const usePress = require("./usePress-DTGD4Sub.js");
|
|
28
25
|
const useEvent = require("./useEvent-DY7dR7Mi.js");
|
|
29
|
-
const scrollIntoView = require("./scrollIntoView-
|
|
30
|
-
const
|
|
26
|
+
const scrollIntoView = require("./scrollIntoView-BN4yt25y.js");
|
|
27
|
+
const ReactDOM = require("react-dom");
|
|
28
|
+
const FocusScope = require("./FocusScope-Djtxzznf.js");
|
|
29
|
+
const focusSafely = require("./focusSafely-wmTq_iKq.js");
|
|
30
|
+
const useFocusVisible = require("./useFocusVisible-CiIrKjuz.js");
|
|
31
31
|
const context = require("./context-D3NeXov7.js");
|
|
32
|
-
const isVirtualEvent = require("./isVirtualEvent-
|
|
32
|
+
const isVirtualEvent = require("./isVirtualEvent-C-tB2MCl.js");
|
|
33
|
+
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
34
|
+
const isInitialMount = React.useRef(true);
|
|
35
|
+
const lastDeps = React.useRef(null);
|
|
36
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
37
|
+
isInitialMount.current = true;
|
|
38
|
+
return () => {
|
|
39
|
+
isInitialMount.current = false;
|
|
40
|
+
};
|
|
41
|
+
}, []);
|
|
42
|
+
mergeProps.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
43
|
+
if (isInitialMount.current) isInitialMount.current = false;
|
|
44
|
+
else if (!lastDeps.current || dependencies.some((dep, i) => !Object.is(dep, lastDeps[i]))) effect();
|
|
45
|
+
lastDeps.current = dependencies;
|
|
46
|
+
}, dependencies);
|
|
47
|
+
}
|
|
48
|
+
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
49
|
+
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
50
|
+
const $5671b20cf9b562b2$export$9db568f6321ad9dc = "react-aria-update-activedescendant";
|
|
51
|
+
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
52
|
+
if (isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
53
|
+
return e.ctrlKey;
|
|
54
|
+
}
|
|
33
55
|
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
34
56
|
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
35
57
|
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
@@ -84,10 +106,6 @@ function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
|
84
106
|
function $feb5ffebff200149$export$d3e3bd3e26688c04(e) {
|
|
85
107
|
return isVirtualEvent.$c87311424ea30a05$export$e1865c3bedcd822b() ? e.altKey : e.ctrlKey;
|
|
86
108
|
}
|
|
87
|
-
function $feb5ffebff200149$export$16792effe837dba3(e) {
|
|
88
|
-
if (isVirtualEvent.$c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
89
|
-
return e.ctrlKey;
|
|
90
|
-
}
|
|
91
109
|
const $fb3050f43d946246$var$TYPEAHEAD_DEBOUNCE_WAIT_MS = 1e3;
|
|
92
110
|
function $fb3050f43d946246$export$e32c88dfddc6e1d8(options) {
|
|
93
111
|
let { keyboardDelegate, selectionManager, onTypeSelect } = options;
|
|
@@ -201,22 +219,24 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
201
219
|
break;
|
|
202
220
|
case "Home":
|
|
203
221
|
if (delegate.getFirstKey) {
|
|
222
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
204
223
|
e.preventDefault();
|
|
205
|
-
let firstKey = delegate.getFirstKey(manager.focusedKey, $
|
|
224
|
+
let firstKey = delegate.getFirstKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
206
225
|
manager.setFocusedKey(firstKey);
|
|
207
226
|
if (firstKey != null) {
|
|
208
|
-
if ($
|
|
227
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(firstKey);
|
|
209
228
|
else if (selectOnFocus) manager.replaceSelection(firstKey);
|
|
210
229
|
}
|
|
211
230
|
}
|
|
212
231
|
break;
|
|
213
232
|
case "End":
|
|
214
233
|
if (delegate.getLastKey) {
|
|
234
|
+
if (manager.focusedKey === null && e.shiftKey) return;
|
|
215
235
|
e.preventDefault();
|
|
216
|
-
let lastKey = delegate.getLastKey(manager.focusedKey, $
|
|
236
|
+
let lastKey = delegate.getLastKey(manager.focusedKey, $21f1aa98acb08317$export$16792effe837dba3(e));
|
|
217
237
|
manager.setFocusedKey(lastKey);
|
|
218
238
|
if (lastKey != null) {
|
|
219
|
-
if ($
|
|
239
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && e.shiftKey && manager.selectionMode === "multiple") manager.extendSelection(lastKey);
|
|
220
240
|
else if (selectOnFocus) manager.replaceSelection(lastKey);
|
|
221
241
|
}
|
|
222
242
|
}
|
|
@@ -240,7 +260,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
240
260
|
}
|
|
241
261
|
break;
|
|
242
262
|
case "a":
|
|
243
|
-
if ($
|
|
263
|
+
if ($21f1aa98acb08317$export$16792effe837dba3(e) && manager.selectionMode === "multiple" && disallowSelectAll !== true) {
|
|
244
264
|
e.preventDefault();
|
|
245
265
|
manager.selectAll();
|
|
246
266
|
}
|
|
@@ -320,6 +340,49 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
320
340
|
let onBlur = (e) => {
|
|
321
341
|
if (!e.currentTarget.contains(e.relatedTarget)) manager.setFocused(false);
|
|
322
342
|
};
|
|
343
|
+
let shouldVirtualFocusFirst = React.useRef(false);
|
|
344
|
+
useEvent.$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$831c820ad60f9d12, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
345
|
+
let { detail } = e;
|
|
346
|
+
e.stopPropagation();
|
|
347
|
+
manager.setFocused(true);
|
|
348
|
+
if ((detail === null || detail === void 0 ? void 0 : detail.focusStrategy) === "first") shouldVirtualFocusFirst.current = true;
|
|
349
|
+
});
|
|
350
|
+
let updateActiveDescendant = mergeProps.$8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
351
|
+
var _delegate_getFirstKey;
|
|
352
|
+
var _delegate_getFirstKey1;
|
|
353
|
+
let keyToFocus = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
|
|
354
|
+
if (keyToFocus == null) {
|
|
355
|
+
var _ref_current;
|
|
356
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
357
|
+
cancelable: true,
|
|
358
|
+
bubbles: true
|
|
359
|
+
}));
|
|
360
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
361
|
+
} else {
|
|
362
|
+
manager.setFocusedKey(keyToFocus);
|
|
363
|
+
shouldVirtualFocusFirst.current = false;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
367
|
+
if (shouldVirtualFocusFirst.current) updateActiveDescendant();
|
|
368
|
+
}, [
|
|
369
|
+
manager.collection,
|
|
370
|
+
updateActiveDescendant
|
|
371
|
+
]);
|
|
372
|
+
let resetFocusFirstFlag = mergeProps.$8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
|
|
373
|
+
if (manager.collection.size > 0) shouldVirtualFocusFirst.current = false;
|
|
374
|
+
});
|
|
375
|
+
$ca9b37712f007381$export$72ef708ab07251f1(() => {
|
|
376
|
+
resetFocusFirstFlag();
|
|
377
|
+
}, [
|
|
378
|
+
manager.focusedKey,
|
|
379
|
+
resetFocusFirstFlag
|
|
380
|
+
]);
|
|
381
|
+
useEvent.$e9faafb641e167db$export$90fc3a17d93f704c(ref, $5671b20cf9b562b2$export$447a38995de2c711, !shouldUseVirtualFocus ? void 0 : (e) => {
|
|
382
|
+
e.stopPropagation();
|
|
383
|
+
manager.setFocused(false);
|
|
384
|
+
manager.setFocusedKey(null);
|
|
385
|
+
});
|
|
323
386
|
const autoFocusRef = React.useRef(autoFocus);
|
|
324
387
|
React.useEffect(() => {
|
|
325
388
|
if (autoFocusRef.current) {
|
|
@@ -379,6 +442,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
379
442
|
if (!disallowTypeAhead) handlers = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(typeSelectProps, handlers);
|
|
380
443
|
let tabIndex = void 0;
|
|
381
444
|
if (!shouldUseVirtualFocus) tabIndex = manager.focusedKey == null ? 0 : -1;
|
|
445
|
+
else tabIndex = -1;
|
|
382
446
|
return {
|
|
383
447
|
collectionProps: __spreadProps(__spreadValues({}, handlers), {
|
|
384
448
|
tabIndex
|
|
@@ -386,8 +450,9 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
386
450
|
};
|
|
387
451
|
}
|
|
388
452
|
function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
389
|
-
let { selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
453
|
+
let { id, selectionManager: manager, key, ref, shouldSelectOnPressUp, shouldUseVirtualFocus, focus, isDisabled, onAction, allowsDifferentPressOrigin, linkBehavior = "action" } = options;
|
|
390
454
|
let router = usePress.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();
|
|
455
|
+
id = mergeProps.$bdb11010cef70236$export$f680877a34711e37(id);
|
|
391
456
|
let onSelect = (e) => {
|
|
392
457
|
if (e.pointerType === "keyboard" && $feb5ffebff200149$export$d3e3bd3e26688c04(e)) manager.toggleSelection(key);
|
|
393
458
|
else {
|
|
@@ -404,16 +469,25 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
404
469
|
if (manager.isSelected(key) && !manager.disallowEmptySelection) manager.toggleSelection(key);
|
|
405
470
|
else manager.replaceSelection(key);
|
|
406
471
|
} else if (e && e.shiftKey) manager.extendSelection(key);
|
|
407
|
-
else if (manager.selectionBehavior === "toggle" || e && ($
|
|
472
|
+
else if (manager.selectionBehavior === "toggle" || e && ($21f1aa98acb08317$export$16792effe837dba3(e) || e.pointerType === "touch" || e.pointerType === "virtual"))
|
|
408
473
|
manager.toggleSelection(key);
|
|
409
474
|
else manager.replaceSelection(key);
|
|
410
475
|
}
|
|
411
476
|
};
|
|
412
477
|
React.useEffect(() => {
|
|
413
478
|
let isFocused = key === manager.focusedKey;
|
|
414
|
-
if (isFocused && manager.isFocused
|
|
415
|
-
if (
|
|
416
|
-
|
|
479
|
+
if (isFocused && manager.isFocused) {
|
|
480
|
+
if (!shouldUseVirtualFocus) {
|
|
481
|
+
if (focus) focus();
|
|
482
|
+
else if (document.activeElement !== ref.current && ref.current) focusSafely.$6a99195332edec8b$export$80f3e147d781571c(ref.current);
|
|
483
|
+
} else {
|
|
484
|
+
var _ref_current;
|
|
485
|
+
let updateActiveDescendant = new CustomEvent($5671b20cf9b562b2$export$9db568f6321ad9dc, {
|
|
486
|
+
cancelable: true,
|
|
487
|
+
bubbles: true
|
|
488
|
+
});
|
|
489
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(updateActiveDescendant);
|
|
490
|
+
}
|
|
417
491
|
}
|
|
418
492
|
}, [
|
|
419
493
|
ref,
|
|
@@ -467,9 +541,11 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
467
541
|
};
|
|
468
542
|
else {
|
|
469
543
|
itemPressProps.onPressUp = hasPrimaryAction ? void 0 : (e) => {
|
|
470
|
-
if (e.pointerType
|
|
544
|
+
if (e.pointerType === "mouse" && allowsSelection) onSelect(e);
|
|
545
|
+
};
|
|
546
|
+
itemPressProps.onPress = hasPrimaryAction ? performAction : (e) => {
|
|
547
|
+
if (e.pointerType !== "keyboard" && e.pointerType !== "mouse" && allowsSelection) onSelect(e);
|
|
471
548
|
};
|
|
472
|
-
itemPressProps.onPress = hasPrimaryAction ? performAction : void 0;
|
|
473
549
|
}
|
|
474
550
|
} else {
|
|
475
551
|
itemPressProps.onPressStart = (e) => {
|
|
@@ -514,7 +590,8 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
514
590
|
itemProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(itemProps, allowsSelection || hasPrimaryAction ? pressProps : {}, longPressEnabled ? longPressProps : {}, {
|
|
515
591
|
onDoubleClick,
|
|
516
592
|
onDragStartCapture,
|
|
517
|
-
onClick
|
|
593
|
+
onClick,
|
|
594
|
+
id
|
|
518
595
|
}),
|
|
519
596
|
isPressed,
|
|
520
597
|
isSelected: manager.isSelected(key),
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as $c5a24bc478652b5f$export$1005530eda016c13 } from "./SelectionManager-DCO_d3m1.mjs";
|
|
21
|
-
import { a as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-
|
|
21
|
+
import { a as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-BB067hsf.mjs";
|
|
22
22
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
|
|
23
23
|
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-B-keb3wA.mjs";
|
|
24
24
|
import { useMemo } from "react";
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const SelectionManager = require("./SelectionManager-DuX6geJg.js");
|
|
22
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
22
|
+
const useSelectableItem = require("./useSelectableItem-BEkjpB_K.js");
|
|
23
23
|
const isScrollable = require("./isScrollable-CE3Xdlg4.js");
|
|
24
24
|
const useCollator = require("./useCollator-DGrSWVh4.js");
|
|
25
25
|
const React = require("react");
|
|
@@ -19,14 +19,14 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const isVirtualEvent = require("./isVirtualEvent-
|
|
22
|
+
const isVirtualEvent = require("./isVirtualEvent-C-tB2MCl.js");
|
|
23
23
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
24
24
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
25
25
|
const useFormReset = require("./useFormReset-Bgj93eR3.js");
|
|
26
26
|
const useControlledState = require("./useControlledState-mnKBd6Uc.js");
|
|
27
27
|
const useField = require("./useField-BJW_bXVD.js");
|
|
28
|
-
const useFocusable = require("./useFocusable-
|
|
29
|
-
const useFormValidation = require("./useFormValidation-
|
|
28
|
+
const useFocusable = require("./useFocusable-BQyiwtXU.js");
|
|
29
|
+
const useFormValidation = require("./useFormValidation-BeqiYVJN.js");
|
|
30
30
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
31
31
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
32
32
|
let [value, setValue] = useControlledState.$458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -73,6 +73,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
73
73
|
"aria-activedescendant": props["aria-activedescendant"],
|
|
74
74
|
"aria-autocomplete": props["aria-autocomplete"],
|
|
75
75
|
"aria-haspopup": props["aria-haspopup"],
|
|
76
|
+
"aria-controls": props["aria-controls"],
|
|
76
77
|
value,
|
|
77
78
|
onChange: (e) => setValue(e.target.value),
|
|
78
79
|
autoComplete: props.autoComplete,
|
|
@@ -82,6 +83,8 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
82
83
|
name: props.name,
|
|
83
84
|
placeholder: props.placeholder,
|
|
84
85
|
inputMode: props.inputMode,
|
|
86
|
+
autoCorrect: props.autoCorrect,
|
|
87
|
+
spellCheck: props.spellCheck,
|
|
85
88
|
// Clipboard events
|
|
86
89
|
onCopy: props.onCopy,
|
|
87
90
|
onCut: props.onCut,
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useEffect } from "react";
|
|
21
|
-
import { a as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./isVirtualEvent-
|
|
21
|
+
import { a as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./isVirtualEvent-B_Z4yzgm.mjs";
|
|
22
22
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
23
23
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
24
24
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DA1Lwdha.mjs";
|
|
25
25
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-CFWhSD5C.mjs";
|
|
26
26
|
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./useField-B6VplZ_n.mjs";
|
|
27
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
28
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
27
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DFWO-r50.mjs";
|
|
28
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-DfzAl9pN.mjs";
|
|
29
29
|
function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
30
30
|
let { inputElementType = "input", isDisabled = false, isRequired = false, isReadOnly = false, type = "text", validationBehavior = "aria" } = props;
|
|
31
31
|
let [value, setValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.value, props.defaultValue || "", props.onChange);
|
|
@@ -72,6 +72,7 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
72
72
|
"aria-activedescendant": props["aria-activedescendant"],
|
|
73
73
|
"aria-autocomplete": props["aria-autocomplete"],
|
|
74
74
|
"aria-haspopup": props["aria-haspopup"],
|
|
75
|
+
"aria-controls": props["aria-controls"],
|
|
75
76
|
value,
|
|
76
77
|
onChange: (e) => setValue(e.target.value),
|
|
77
78
|
autoComplete: props.autoComplete,
|
|
@@ -81,6 +82,8 @@ function $2d73ec29415bd339$export$712718f7aec83d5(props, ref) {
|
|
|
81
82
|
name: props.name,
|
|
82
83
|
placeholder: props.placeholder,
|
|
83
84
|
inputMode: props.inputMode,
|
|
85
|
+
autoCorrect: props.autoCorrect,
|
|
86
|
+
spellCheck: props.spellCheck,
|
|
84
87
|
// Clipboard events
|
|
85
88
|
onCopy: props.onCopy,
|
|
86
89
|
onCut: props.onCut,
|
|
@@ -21,8 +21,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
21
21
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
22
22
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
23
23
|
const useFormReset = require("./useFormReset-Bgj93eR3.js");
|
|
24
|
-
const useFocusable = require("./useFocusable-
|
|
25
|
-
const usePress = require("./usePress-
|
|
24
|
+
const useFocusable = require("./useFocusable-BQyiwtXU.js");
|
|
25
|
+
const usePress = require("./usePress-DTGD4Sub.js");
|
|
26
26
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
27
27
|
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
28
28
|
let onChange = (e) => {
|
|
@@ -20,8 +20,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
22
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DA1Lwdha.mjs";
|
|
23
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
24
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
23
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DFWO-r50.mjs";
|
|
24
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-U7SFXdpv.mjs";
|
|
25
25
|
function $d2c8e2b0480f3f34$export$cbe85ee05b554577(props, state, ref) {
|
|
26
26
|
let { isDisabled = false, isReadOnly = false, value, name, children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, validationState = "valid", isInvalid } = props;
|
|
27
27
|
let onChange = (e) => {
|
|
@@ -32,9 +32,9 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
import React__default, { useCallback, useEffect } from "react";
|
|
33
33
|
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-5f58TiCH.mjs";
|
|
34
34
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-BHXy3Wtu.mjs";
|
|
35
|
-
import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-
|
|
36
|
-
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-
|
|
37
|
-
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-
|
|
35
|
+
import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "./VisuallyHidden-BM6BpKe-.mjs";
|
|
36
|
+
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-DzT8L09V.mjs";
|
|
37
|
+
import { $ as $2a41e45df1593e64$export$d39e1813b3bdd0e1 } from "./useOverlayPosition-VlLR-wFE.mjs";
|
|
38
38
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DSi85raC.mjs";
|
|
39
39
|
import { getComponentToken, pxToRem, getResponsiveValue } from "../utilities/css.mjs";
|
|
40
40
|
var $773d5888b972f1cf$exports = {};
|
|
@@ -244,7 +244,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
|
244
244
|
targetRef: triggerRef,
|
|
245
245
|
overlayRef: popoverRef,
|
|
246
246
|
isOpen: state.isOpen,
|
|
247
|
-
onClose: isNonModal ? state.close :
|
|
247
|
+
onClose: isNonModal ? state.close : null
|
|
248
248
|
}));
|
|
249
249
|
$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
|
|
250
250
|
isDisabled: isNonModal || !state.isOpen
|
|
@@ -33,9 +33,9 @@ var __objRest = (source, exclude) => {
|
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const useLabels = require("./useLabels-KmwewLTv.js");
|
|
35
35
|
const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-CaF1VsOH.js");
|
|
36
|
-
const VisuallyHidden = require("./VisuallyHidden-
|
|
37
|
-
const ariaHideOutside = require("./ariaHideOutside-
|
|
38
|
-
const useOverlayPosition = require("./useOverlayPosition-
|
|
36
|
+
const VisuallyHidden = require("./VisuallyHidden-DcUrMWfu.js");
|
|
37
|
+
const ariaHideOutside = require("./ariaHideOutside-DkYn-eBq.js");
|
|
38
|
+
const useOverlayPosition = require("./useOverlayPosition-DJGEWKwM.js");
|
|
39
39
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
40
40
|
const utilities_css = require("../utilities/css.js");
|
|
41
41
|
var $773d5888b972f1cf$exports = {};
|
|
@@ -245,7 +245,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
|
|
|
245
245
|
targetRef: triggerRef,
|
|
246
246
|
overlayRef: popoverRef,
|
|
247
247
|
isOpen: state.isOpen,
|
|
248
|
-
onClose: isNonModal ? state.close :
|
|
248
|
+
onClose: isNonModal ? state.close : null
|
|
249
249
|
}));
|
|
250
250
|
ariaHideOutside.$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({
|
|
251
251
|
isDisabled: isNonModal || !state.isOpen
|