@easypost/easy-ui 1.0.0-alpha.89 → 1.0.0-alpha.90
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 +7 -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/Checkbox.d.ts.map +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +6 -6
- package/CodeBlock/index.mjs +6 -6
- package/CodeSnippet/CodeSnippet.d.ts.map +1 -1
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/CustomerPortalLayout/index.js +6 -6
- package/CustomerPortalLayout/index.mjs +6 -6
- package/DataGrid/index.js +21 -20
- package/DataGrid/index.mjs +21 -20
- package/DatePicker/index.js +7 -7
- package/DatePicker/index.mjs +7 -7
- package/DateRangePicker/index.js +8 -8
- package/DateRangePicker/index.mjs +8 -8
- package/Drawer/index.js +4 -4
- package/Drawer/index.mjs +4 -4
- 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 +10 -10
- 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/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 +21 -20
- package/MultiSelect/index.mjs +22 -21
- package/MultipageSection/index.js +3 -3
- package/MultipageSection/index.mjs +3 -3
- package/NexusLayout/index.js +5 -5
- package/NexusLayout/index.mjs +5 -5
- package/Notification/Notification.d.ts.map +1 -1
- 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/PlanCard/index.js +3 -3
- package/PlanCard/index.mjs +3 -3
- 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/README.md +52 -27
- package/RadioButtonGroup/index.js +5 -5
- package/RadioButtonGroup/index.mjs +5 -5
- 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/Select.d.ts.map +1 -1
- 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/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 +9 -5
- package/TabPanels/index.mjs +9 -5
- 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/Toggle.d.ts.map +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/UnstyledButton.d.ts.map +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +2 -2
- package/VerticalNav/index.mjs +2 -2
- package/__chunks__/{Button-DUZZ9HoT.js → Button--4bR8jiH.js} +1 -1
- package/__chunks__/{Button-BpGjkRZu.mjs → Button-B9eOc3oY.mjs} +4 -4
- package/__chunks__/{Button-2GplvjoR.js → Button-BpAgRrMP.js} +4 -4
- package/__chunks__/{Button-BE3zVhME.mjs → Button-DweJ2JfF.mjs} +1 -1
- package/__chunks__/{Calendar-gsUZ4Ouw.mjs → Calendar-BX4HC7xq.mjs} +1 -1
- package/__chunks__/{Calendar-B5vygFsi.js → Calendar-CU64FTOr.js} +1 -1
- package/__chunks__/{CalendarBase-DdQhuGNt.mjs → CalendarBase-Dh_owoCy.mjs} +5 -4
- package/__chunks__/{CalendarBase-uhGc8AVV.js → CalendarBase-m7eUzrcA.js} +5 -4
- package/__chunks__/{Checkbox-DRiYZLsh.js → Checkbox-Log6uL2y.js} +10 -8
- package/__chunks__/{Checkbox-qpqqY9LH.mjs → Checkbox-WhepkGg3.mjs} +10 -8
- package/__chunks__/{CodeSnippet-DOyQDfxp.mjs → CodeSnippet-Bc_MNBCp.mjs} +4 -2
- package/__chunks__/{CodeSnippet-Bpf7eWjq.js → CodeSnippet-C2dSUmN3.js} +4 -2
- package/__chunks__/{DatePickerBase-ybPQnjX-.mjs → DatePickerBase-BQISZ4tY.mjs} +35 -21
- package/__chunks__/{DatePickerBase-CNWUovPI.js → DatePickerBase-DTRyPxUH.js} +35 -21
- package/__chunks__/{Dialog-71SzSgdZ.mjs → Dialog-CrixpxNM.mjs} +8 -8
- package/__chunks__/{Dialog-D1oLQPjX.js → Dialog-DHEa0HJb.js} +8 -8
- package/__chunks__/{FocusScope-BYrP0odg.js → FocusScope-Beno1SIx.js} +2 -2
- package/__chunks__/{FocusScope-DP1VSF7s.mjs → FocusScope-DHbxxtYV.mjs} +2 -2
- package/__chunks__/{HelpMenu-B2V5jMQp.js → HelpMenu-BWEypFzC.js} +2 -2
- package/__chunks__/{HelpMenu-wJ8eKahi.mjs → HelpMenu-CSrPwH1K.mjs} +2 -2
- package/__chunks__/{InputField-CVYymiyI.mjs → InputField-B2ypcQOx.mjs} +3 -3
- package/__chunks__/{InputField-Bs95nClb.js → InputField-MGA2_gCZ.js} +3 -3
- package/__chunks__/{KebabButton-C1m6nOIu.js → KebabButton-C7gZ573-.js} +1 -1
- package/__chunks__/{KebabButton-DBFzY1Rq.mjs → KebabButton-Csspxerl.mjs} +1 -1
- package/__chunks__/{Menu-y5owPz-O.js → Menu-CxptqDZf.js} +12 -12
- package/__chunks__/{Menu-O33j8u7r.mjs → Menu-DVei3CtR.mjs} +12 -12
- package/__chunks__/{Notification-CLnVLOaw.js → Notification-BfBwPNub.js} +8 -6
- package/__chunks__/{Notification-DbzTJzSE.mjs → Notification-_uA9Lm5j.mjs} +8 -6
- package/__chunks__/{Overlay-88Ee_QUh.js → Overlay-CTC5iCTq.js} +3 -3
- package/__chunks__/{Overlay-Cj4W5w8m.mjs → Overlay-aI53DFC4.mjs} +3 -3
- package/__chunks__/{PillGroup-QTB5sJER.mjs → PillGroup-DLiSsITz.mjs} +43 -37
- package/__chunks__/{PillGroup-D5gTBzKy.js → PillGroup-Eqyl1bDU.js} +43 -37
- package/__chunks__/{RadioGroup-K565r4-w.js → RadioGroup-XPAeX1Q8.js} +8 -8
- package/__chunks__/{RadioGroup-DqooAc9M.mjs → RadioGroup-wcwn_iD9.mjs} +8 -8
- package/__chunks__/{RangeCalendar-Ce46gNnr.mjs → RangeCalendar-1DS6SiHr.mjs} +1 -1
- package/__chunks__/{RangeCalendar-DPThKM4W.js → RangeCalendar-BkOPNa-r.js} +1 -1
- package/__chunks__/{SelectOverlay-DT4LOSDh.mjs → SelectOverlay-Wgoyy1xh.mjs} +17 -11
- package/__chunks__/{SelectOverlay-CwRhbg9F.js → SelectOverlay-yK4x3ME5.js} +17 -11
- package/__chunks__/{SelectorErrorTooltip-DlXOZjmQ.mjs → SelectorErrorTooltip-CfELFFol.mjs} +1 -1
- package/__chunks__/{SelectorErrorTooltip-BT5gU6Pn.js → SelectorErrorTooltip-Dy5XVo5i.js} +1 -1
- package/__chunks__/{Stepper-CACO2jLG.mjs → Stepper-CexdatYw.mjs} +2 -2
- package/__chunks__/{Stepper--KsoKMdM.js → Stepper-DV4cL0T9.js} +2 -2
- package/__chunks__/{TabNav-DTnHIUFZ.js → TabNav-Csa-J3Fk.js} +1 -1
- package/__chunks__/{TabNav-D2_vfrMU.mjs → TabNav-T8hRXmuY.mjs} +1 -1
- package/__chunks__/{Tabs-BkzVKvWV.mjs → Tabs-CIjTS2ET.mjs} +2 -2
- package/__chunks__/{Tabs-J924obQC.js → Tabs-Dzj2pWUX.js} +2 -2
- package/__chunks__/{TextField-BVpSTQw-.mjs → TextField-CwU9Dqtd.mjs} +1 -1
- package/__chunks__/{TextField-BPZ6niGw.js → TextField-E-qy6m58.js} +1 -1
- package/__chunks__/{Toggle-O9F7R6RR.js → Toggle-HaiwEDJI.js} +7 -5
- package/__chunks__/{Toggle-Cr_Myw_x.mjs → Toggle-yrZiKq0v.mjs} +7 -5
- package/__chunks__/{Tooltip-CNKZl6De.js → Tooltip-DCaNdmWS.js} +5 -5
- package/__chunks__/{Tooltip-DMBtRdkk.mjs → Tooltip-UHXfPjcM.mjs} +5 -5
- package/__chunks__/{UnstyledButton-CfhKDftV.mjs → UnstyledButton-CbCwVIkK.mjs} +5 -3
- package/__chunks__/{UnstyledButton-CnIn7VBo.js → UnstyledButton-DaRYVyfB.js} +5 -3
- package/__chunks__/{VisuallyHidden-CCdi-Y1w.mjs → VisuallyHidden-CEixEKmF.mjs} +1 -1
- package/__chunks__/{VisuallyHidden-DeSpvYML.js → VisuallyHidden-xO9zYcmX.js} +1 -1
- package/__chunks__/{ariaHideOutside-CT4hjtef.mjs → ariaHideOutside-B7gPQCIa.mjs} +9 -7
- package/__chunks__/{ariaHideOutside-Bq8FQnZq.js → ariaHideOutside-HcCjeNMn.js} +9 -7
- package/__chunks__/{focusSafely-D0XrieaU.mjs → focusSafely-D4cM_C4U.mjs} +6 -1
- package/__chunks__/{focusSafely-BgcYAZN6.js → focusSafely-DGwTMyzw.js} +6 -1
- package/__chunks__/mergeRefs-ClQjEiLh.mjs +24 -0
- package/__chunks__/mergeRefs-qNwPManW.js +23 -0
- package/__chunks__/{useButton-W0nkeGLb.mjs → useButton-Ca3vtrUS.mjs} +2 -2
- package/__chunks__/{useButton-BxK3VBiR.js → useButton-RDnDDS-w.js} +2 -2
- package/__chunks__/{useDialog-BhvpnpTk.mjs → useDialog-C2wEAsRc.mjs} +2 -2
- package/__chunks__/{useDialog-D_2QCyti.js → useDialog-s6kCqmHb.js} +2 -2
- package/__chunks__/{useFocus-DsnhrQiB.mjs → useFocus-QhB_LR_6.mjs} +1 -1
- package/__chunks__/{useFocus-Df2haWPe.js → useFocus-r5im5eX7.js} +1 -1
- package/__chunks__/{useFocusRing-ygRrwBu3.js → useFocusRing-Do5WdNL_.js} +3 -3
- package/__chunks__/{useFocusRing-DAMeUI3t.mjs → useFocusRing-I6O2iIqT.mjs} +3 -3
- package/__chunks__/{useFocusVisible-7ks2C0sQ.js → useFocusVisible-CbSS3hxW.js} +1 -1
- package/__chunks__/{useFocusVisible-DWC9qGtP.mjs → useFocusVisible-S02S36Aj.mjs} +1 -1
- package/__chunks__/{useFocusWithin-CxspK-F2.js → useFocusWithin-4tCIop4g.js} +1 -1
- package/__chunks__/{useFocusWithin-DPnHAdQU.mjs → useFocusWithin-eVSXHfLE.mjs} +1 -1
- package/__chunks__/{useFocusable-HXkH_Kuc.js → useFocusable-CztLmeBQ.js} +2 -2
- package/__chunks__/{useFocusable-C6giMIa8.mjs → useFocusable-YWcLWvwY.mjs} +2 -2
- package/__chunks__/{useFormValidation-HasG7QCl.mjs → useFormValidation-CUeEhwOT.mjs} +1 -1
- package/__chunks__/{useFormValidation-CAsEJ1eu.js → useFormValidation-CzZERvX9.js} +1 -1
- package/__chunks__/{useHasTabbableChild-D23JzSLZ.js → useHasTabbableChild-Bq9mFdfm.js} +1 -1
- package/__chunks__/{useHasTabbableChild-C5KDnOFZ.mjs → useHasTabbableChild-CCkpUWx6.mjs} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-CT3jLcfS.js → useHighlightSelectionDescription-2e9FDFKT.js} +14 -9
- package/__chunks__/{useHighlightSelectionDescription-BODt1AHW.mjs → useHighlightSelectionDescription-Dpnx4leb.mjs} +14 -9
- package/__chunks__/{useHover-BMIowV0x.js → useHover-BK8LX0kX.js} +1 -1
- package/__chunks__/{useHover-CwJuylzq.mjs → useHover-Djd8mM67.mjs} +1 -1
- package/__chunks__/{useLink-CxFvWxcs.mjs → useLink-hFVDzAjm.mjs} +2 -2
- package/__chunks__/{useLink-CcRvXaFq.js → useLink-rHGI96g9.js} +2 -2
- package/__chunks__/{useListBoxSection-UWw98S5n.mjs → useListBoxSection-C0KVZkom.mjs} +6 -6
- package/__chunks__/{useListBoxSection-yxKStnVF.js → useListBoxSection-UKCe8noj.js} +6 -6
- package/__chunks__/{useMenuTrigger-Bm2l00Fx.mjs → useMenuTrigger-C91gC8Fc.mjs} +3 -3
- package/__chunks__/{useMenuTrigger-CYz-sHYa.js → useMenuTrigger-Caz-rlTr.js} +3 -3
- package/__chunks__/{useMenuTriggerState-DzOmQv8m.mjs → useMenuTriggerState-4geEb8Fl.mjs} +1 -1
- package/__chunks__/{useMenuTriggerState-Bpow2FQo.js → useMenuTriggerState-trGu1Eq_.js} +1 -1
- package/__chunks__/{useModalOverlay-E3JkPreO.js → useModalOverlay-B1oqp24F.js} +2 -2
- package/__chunks__/{useModalOverlay-1zoyqSAR.mjs → useModalOverlay-C2Qh_ZjU.mjs} +2 -2
- package/__chunks__/useObjectRef-77h4G8qk.mjs +40 -0
- package/__chunks__/useObjectRef-Bma_uNHw.js +39 -0
- package/__chunks__/{useOverlayPosition-Ba2II0yy.js → useOverlayPosition-BT4OWkj_.js} +2 -2
- package/__chunks__/{useOverlayPosition-BJjENFKW.mjs → useOverlayPosition-CgkOWsX7.mjs} +2 -2
- package/__chunks__/{useOverlayTrigger-DSYyww_1.js → useOverlayTrigger-AXvrWojB.js} +1 -1
- package/__chunks__/{useOverlayTrigger-DTO7VB3r.mjs → useOverlayTrigger-DOqDd2-0.mjs} +1 -1
- package/__chunks__/{usePress-Btah4Wrd.js → usePress-BbU41fvX.js} +25 -12
- package/__chunks__/{usePress-BGHDb_ce.mjs → usePress-tJX1Ngpm.mjs} +25 -12
- package/__chunks__/{useSelectableItem-iCGDFQiY.js → useSelectableItem-CHrk6m3n.js} +19 -8
- package/__chunks__/{useSelectableItem-CBqJNF3F.mjs → useSelectableItem-DeMnuLRU.mjs} +19 -8
- package/__chunks__/{useSelectableList-C1gLRl6h.mjs → useSelectableList-By73z8mx.mjs} +5 -3
- package/__chunks__/{useSelectableList-CPHfKit7.js → useSelectableList-CdgAPdCe.js} +5 -3
- package/__chunks__/{useTextField-DUw10Bpa.mjs → useTextField-CWNBnEVY.mjs} +3 -3
- package/__chunks__/{useTextField-DYKc0daU.js → useTextField-DjK7_RjC.js} +3 -3
- package/__chunks__/{useToggle-Dvy3oMSz.mjs → useToggle-DOBadbRi.mjs} +2 -2
- package/__chunks__/{useToggle-nWML_sp8.js → useToggle-DyJeZfUS.js} +2 -2
- package/__chunks__/{utilities-DgR-vXbf.js → utilities-Bg_lZUNn.js} +3 -3
- package/__chunks__/{utilities-DaMKHxI8.mjs → utilities-DUnS31dY.mjs} +3 -3
- package/__chunks__/{utils-B-3LZYje.js → utils-Bjpgmx8t.js} +2 -2
- package/__chunks__/{utils-CZnJZGiu.mjs → utils-mDT30gHU.mjs} +2 -2
- package/package.json +8 -8
- package/__chunks__/mergeRefs-CCV6itCY.mjs +0 -12
- package/__chunks__/mergeRefs-CQsNYO0P.js +0 -11
- package/__chunks__/useObjectRef-BOGMJ5vM.js +0 -18
- package/__chunks__/useObjectRef-wU82Pkgx.mjs +0 -19
|
@@ -20,13 +20,13 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
22
22
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
23
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
23
|
+
const useFocusWithin = require("./useFocusWithin-4tCIop4g.js");
|
|
24
24
|
const useLabel = require("./useLabel-D9oYLpKn.js");
|
|
25
|
-
const useSelectableList = require("./useSelectableList-
|
|
26
|
-
const usePress = require("./usePress-
|
|
27
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
28
|
-
const useHover = require("./useHover-
|
|
29
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
25
|
+
const useSelectableList = require("./useSelectableList-CdgAPdCe.js");
|
|
26
|
+
const usePress = require("./usePress-BbU41fvX.js");
|
|
27
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
28
|
+
const useHover = require("./useHover-BK8LX0kX.js");
|
|
29
|
+
const useSelectableItem = require("./useSelectableItem-CHrk6m3n.js");
|
|
30
30
|
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
31
31
|
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
32
32
|
if (typeof key === "string") return key.replace(/\s*/g, "");
|
|
@@ -18,10 +18,10 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-CORsYhTp.mjs";
|
|
21
|
-
import { s as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./useFocusVisible-
|
|
22
|
-
import { d as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./useSelectableItem-
|
|
21
|
+
import { s as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
22
|
+
import { d as $8a26561d2877236e$export$c24ed0104d07eab9 } from "./useSelectableItem-DeMnuLRU.mjs";
|
|
23
23
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-D-qKpkp4.mjs";
|
|
24
|
-
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "./useOverlayTrigger-
|
|
24
|
+
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "./useOverlayTrigger-DOqDd2-0.mjs";
|
|
25
25
|
var $c0398ad35c3639b7$exports = {};
|
|
26
26
|
$c0398ad35c3639b7$exports = {
|
|
27
27
|
"longPressMessage": `اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`
|
|
@@ -19,10 +19,10 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
22
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
23
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
22
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
23
|
+
const useSelectableItem = require("./useSelectableItem-CHrk6m3n.js");
|
|
24
24
|
const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-X4sjSzZt.js");
|
|
25
|
-
const useOverlayTrigger = require("./useOverlayTrigger-
|
|
25
|
+
const useOverlayTrigger = require("./useOverlayTrigger-AXvrWojB.js");
|
|
26
26
|
var $c0398ad35c3639b7$exports = {};
|
|
27
27
|
$c0398ad35c3639b7$exports = {
|
|
28
28
|
"longPressMessage": `اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة`
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./Overlay-
|
|
20
|
+
import { a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "./Overlay-aI53DFC4.mjs";
|
|
21
21
|
import { useState } from "react";
|
|
22
22
|
function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
|
|
23
23
|
let overlayTriggerState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
const Overlay = require("./Overlay-
|
|
21
|
+
const Overlay = require("./Overlay-CTC5iCTq.js");
|
|
22
22
|
const React = require("react");
|
|
23
23
|
function $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props) {
|
|
24
24
|
let overlayTriggerState = Overlay.$fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
const ariaHideOutside = require("./ariaHideOutside-
|
|
22
|
-
const Overlay = require("./Overlay-
|
|
21
|
+
const ariaHideOutside = require("./ariaHideOutside-HcCjeNMn.js");
|
|
22
|
+
const Overlay = require("./Overlay-CTC5iCTq.js");
|
|
23
23
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
24
24
|
const React = require("react");
|
|
25
25
|
function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
@@ -17,8 +17,8 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-
|
|
21
|
-
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-
|
|
20
|
+
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-B7gPQCIa.mjs";
|
|
21
|
+
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-aI53DFC4.mjs";
|
|
22
22
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
23
23
|
import { useEffect } from "react";
|
|
24
24
|
function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useRef, useCallback, useMemo } from "react";
|
|
2
|
+
function $df56164dff5785e2$export$4338b53315abf666(ref) {
|
|
3
|
+
const objRef = useRef(null);
|
|
4
|
+
const cleanupRef = useRef(void 0);
|
|
5
|
+
const refEffect = useCallback((instance) => {
|
|
6
|
+
if (typeof ref === "function") {
|
|
7
|
+
const refCallback = ref;
|
|
8
|
+
const refCleanup = refCallback(instance);
|
|
9
|
+
return () => {
|
|
10
|
+
if (typeof refCleanup === "function") refCleanup();
|
|
11
|
+
else refCallback(null);
|
|
12
|
+
};
|
|
13
|
+
} else if (ref) {
|
|
14
|
+
ref.current = instance;
|
|
15
|
+
return () => {
|
|
16
|
+
ref.current = null;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}, [
|
|
20
|
+
ref
|
|
21
|
+
]);
|
|
22
|
+
return useMemo(() => ({
|
|
23
|
+
get current() {
|
|
24
|
+
return objRef.current;
|
|
25
|
+
},
|
|
26
|
+
set current(value) {
|
|
27
|
+
objRef.current = value;
|
|
28
|
+
if (cleanupRef.current) {
|
|
29
|
+
cleanupRef.current();
|
|
30
|
+
cleanupRef.current = void 0;
|
|
31
|
+
}
|
|
32
|
+
if (value != null) cleanupRef.current = refEffect(value);
|
|
33
|
+
}
|
|
34
|
+
}), [
|
|
35
|
+
refEffect
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
$df56164dff5785e2$export$4338b53315abf666 as $
|
|
40
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const React = require("react");
|
|
3
|
+
function $df56164dff5785e2$export$4338b53315abf666(ref) {
|
|
4
|
+
const objRef = React.useRef(null);
|
|
5
|
+
const cleanupRef = React.useRef(void 0);
|
|
6
|
+
const refEffect = React.useCallback((instance) => {
|
|
7
|
+
if (typeof ref === "function") {
|
|
8
|
+
const refCallback = ref;
|
|
9
|
+
const refCleanup = refCallback(instance);
|
|
10
|
+
return () => {
|
|
11
|
+
if (typeof refCleanup === "function") refCleanup();
|
|
12
|
+
else refCallback(null);
|
|
13
|
+
};
|
|
14
|
+
} else if (ref) {
|
|
15
|
+
ref.current = instance;
|
|
16
|
+
return () => {
|
|
17
|
+
ref.current = null;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}, [
|
|
21
|
+
ref
|
|
22
|
+
]);
|
|
23
|
+
return React.useMemo(() => ({
|
|
24
|
+
get current() {
|
|
25
|
+
return objRef.current;
|
|
26
|
+
},
|
|
27
|
+
set current(value) {
|
|
28
|
+
objRef.current = value;
|
|
29
|
+
if (cleanupRef.current) {
|
|
30
|
+
cleanupRef.current();
|
|
31
|
+
cleanupRef.current = void 0;
|
|
32
|
+
}
|
|
33
|
+
if (value != null) cleanupRef.current = refEffect(value);
|
|
34
|
+
}
|
|
35
|
+
}), [
|
|
36
|
+
refEffect
|
|
37
|
+
]);
|
|
38
|
+
}
|
|
39
|
+
exports.$df56164dff5785e2$export$4338b53315abf666 = $df56164dff5785e2$export$4338b53315abf666;
|
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
21
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
22
22
|
const number = require("./number-C4N6pKyl.js");
|
|
23
|
-
const Overlay = require("./Overlay-
|
|
23
|
+
const Overlay = require("./Overlay-CTC5iCTq.js");
|
|
24
24
|
const React = require("react");
|
|
25
25
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
26
26
|
const useResizeObserver = require("./useResizeObserver-BsbT3mjh.js");
|
|
@@ -17,9 +17,9 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { k as $c87311424ea30a05$export$78551043582a6a98 } from "./useFocusVisible-
|
|
20
|
+
import { k as $c87311424ea30a05$export$78551043582a6a98 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
21
21
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-CLRm_tTs.mjs";
|
|
22
|
-
import { c as $dd149f63282afbbf$export$18fc8428861184da } from "./Overlay-
|
|
22
|
+
import { c as $dd149f63282afbbf$export$18fc8428861184da } from "./Overlay-aI53DFC4.mjs";
|
|
23
23
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
24
24
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-CORsYhTp.mjs";
|
|
25
25
|
import { $ as $9daab02d461809db$export$683480f191c0e3ea } from "./useResizeObserver-Dyb4wvuA.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const Overlay = require("./Overlay-
|
|
2
|
+
const Overlay = require("./Overlay-CTC5iCTq.js");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
5
5
|
function $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $dd149f63282afbbf$export$f6211563215e3b37 } from "./Overlay-
|
|
1
|
+
import { $ as $dd149f63282afbbf$export$f6211563215e3b37 } from "./Overlay-aI53DFC4.mjs";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { c as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-CORsYhTp.mjs";
|
|
4
4
|
function $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {
|
|
@@ -14,8 +14,8 @@ var __objRest = (source, exclude) => {
|
|
|
14
14
|
}
|
|
15
15
|
return target;
|
|
16
16
|
};
|
|
17
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
18
|
-
const focusSafely = require("./focusSafely-
|
|
17
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
18
|
+
const focusSafely = require("./focusSafely-DGwTMyzw.js");
|
|
19
19
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
20
20
|
const React = require("react");
|
|
21
21
|
const ReactDOM = require("react-dom");
|
|
@@ -254,6 +254,8 @@ class $f6c31cce2adf654f$var$PressEvent {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
const $f6c31cce2adf654f$var$LINK_CLICKED = Symbol("linkClicked");
|
|
257
|
+
const $f6c31cce2adf654f$var$STYLE_ID = "react-aria-pressable-style";
|
|
258
|
+
const $f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE = "data-react-aria-pressable";
|
|
257
259
|
function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
258
260
|
let _a = $f6c31cce2adf654f$var$usePressResponderContext(props), { onPress, onPressChange, onPressStart, onPressEnd, onPressUp, onClick, isDisabled, isPressed: isPressedProp, preventFocusOnPress, shouldCancelOnPointerExit, allowTextSelectionOnPress, ref: domRef } = _a, domProps = __objRest(_a, ["onPress", "onPressChange", "onPressStart", "onPressEnd", "onPressUp", "onClick", "isDisabled", "isPressed", "preventFocusOnPress", "shouldCancelOnPointerExit", "allowTextSelectionOnPress", "ref"]);
|
|
259
261
|
let [isPressed, setPressed] = React.useState(false);
|
|
@@ -381,7 +383,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
381
383
|
shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
|
|
382
384
|
} else if (state.isPressed && state.pointerType !== "keyboard") {
|
|
383
385
|
let pointerType = state.pointerType || e.nativeEvent.pointerType || "virtual";
|
|
384
|
-
|
|
386
|
+
let stopPressUp = triggerPressUp($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType);
|
|
387
|
+
let stopPressEnd = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, true);
|
|
388
|
+
shouldStopPropagation = stopPressUp && stopPressEnd;
|
|
385
389
|
state.isOverTarget = false;
|
|
386
390
|
triggerClick(e);
|
|
387
391
|
cancel(e);
|
|
@@ -449,7 +453,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
449
453
|
};
|
|
450
454
|
pressProps2.onPointerUp = (e) => {
|
|
451
455
|
if (!useFocusVisible.$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state.pointerType === "virtual") return;
|
|
452
|
-
if (e.button === 0) triggerPressUp(e, state.pointerType || e.pointerType);
|
|
456
|
+
if (e.button === 0 && !state.isPressed) triggerPressUp(e, state.pointerType || e.pointerType);
|
|
453
457
|
};
|
|
454
458
|
pressProps2.onPointerEnter = (e) => {
|
|
455
459
|
if (e.pointerId === state.activePointerId && state.target && !state.isOverTarget && state.pointerType != null) {
|
|
@@ -530,7 +534,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
530
534
|
};
|
|
531
535
|
pressProps2.onMouseUp = (e) => {
|
|
532
536
|
if (!useFocusVisible.$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, useFocusVisible.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
533
|
-
if (!state.ignoreEmulatedMouseEvents && e.button === 0) triggerPressUp(e, state.pointerType || "mouse");
|
|
537
|
+
if (!state.ignoreEmulatedMouseEvents && e.button === 0 && !state.isPressed) triggerPressUp(e, state.pointerType || "mouse");
|
|
534
538
|
};
|
|
535
539
|
let onMouseUp = (e) => {
|
|
536
540
|
if (e.button !== 0) return;
|
|
@@ -633,12 +637,19 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
633
637
|
triggerSyntheticClick
|
|
634
638
|
]);
|
|
635
639
|
React.useEffect(() => {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
640
|
+
if (!domRef || process.env.NODE_ENV === "test") return;
|
|
641
|
+
const ownerDocument = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(domRef.current);
|
|
642
|
+
if (!ownerDocument || !ownerDocument.head || ownerDocument.getElementById($f6c31cce2adf654f$var$STYLE_ID)) return;
|
|
643
|
+
const style = ownerDocument.createElement("style");
|
|
644
|
+
style.id = $f6c31cce2adf654f$var$STYLE_ID;
|
|
645
|
+
style.textContent = `
|
|
646
|
+
@layer {
|
|
647
|
+
[${$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE}] {
|
|
648
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
`.trim();
|
|
652
|
+
ownerDocument.head.prepend(style);
|
|
642
653
|
}, [
|
|
643
654
|
domRef
|
|
644
655
|
]);
|
|
@@ -655,7 +666,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
655
666
|
]);
|
|
656
667
|
return {
|
|
657
668
|
isPressed: isPressedProp || isPressed,
|
|
658
|
-
pressProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps
|
|
669
|
+
pressProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps, {
|
|
670
|
+
[$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE]: true
|
|
671
|
+
})
|
|
659
672
|
};
|
|
660
673
|
}
|
|
661
674
|
function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
|
|
@@ -13,8 +13,8 @@ var __objRest = (source, exclude) => {
|
|
|
13
13
|
}
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
|
-
import { w as $c87311424ea30a05$export$b7d78993b74f766d, k as $c87311424ea30a05$export$78551043582a6a98, t as $c87311424ea30a05$export$9ac100e40613ea10, x as $c87311424ea30a05$export$7bef049ce92e4224, s as $7215afc6de606d6b$export$de79e2c695e052f3, u as $c87311424ea30a05$export$fedb369cb70207f1, a as $431fbd86ca7dc216$export$b204af158042fbac, $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, h as $8a9cb279dc87e130$export$c2b7abe5d61ec696, i as $8a9cb279dc87e130$export$525bc4921d56d4a, b as $d4ee10de306f2510$export$4282f70798064fe0, e as $d4ee10de306f2510$export$e58f029f0fbfdb29, y as $6a7db85432448f7f$export$29bf1b5f2c56cf63, z as $8a9cb279dc87e130$export$cabe61c495ee3649, A as $6a7db85432448f7f$export$60278871457622de, j as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useFocusVisible-
|
|
17
|
-
import { c as $bbed8b41f857bcc0$export$24490316f764c430, b as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-
|
|
16
|
+
import { w as $c87311424ea30a05$export$b7d78993b74f766d, k as $c87311424ea30a05$export$78551043582a6a98, t as $c87311424ea30a05$export$9ac100e40613ea10, x as $c87311424ea30a05$export$7bef049ce92e4224, s as $7215afc6de606d6b$export$de79e2c695e052f3, u as $c87311424ea30a05$export$fedb369cb70207f1, a as $431fbd86ca7dc216$export$b204af158042fbac, $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, h as $8a9cb279dc87e130$export$c2b7abe5d61ec696, i as $8a9cb279dc87e130$export$525bc4921d56d4a, b as $d4ee10de306f2510$export$4282f70798064fe0, e as $d4ee10de306f2510$export$e58f029f0fbfdb29, y as $6a7db85432448f7f$export$29bf1b5f2c56cf63, z as $8a9cb279dc87e130$export$cabe61c495ee3649, A as $6a7db85432448f7f$export$60278871457622de, j as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useFocusVisible-S02S36Aj.mjs";
|
|
17
|
+
import { c as $bbed8b41f857bcc0$export$24490316f764c430, b as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-D4cM_C4U.mjs";
|
|
18
18
|
import { a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-CORsYhTp.mjs";
|
|
19
19
|
import React__default, { useMemo, createContext, useContext, useState, useRef, useEffect } from "react";
|
|
20
20
|
import { flushSync } from "react-dom";
|
|
@@ -253,6 +253,8 @@ class $f6c31cce2adf654f$var$PressEvent {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
const $f6c31cce2adf654f$var$LINK_CLICKED = Symbol("linkClicked");
|
|
256
|
+
const $f6c31cce2adf654f$var$STYLE_ID = "react-aria-pressable-style";
|
|
257
|
+
const $f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE = "data-react-aria-pressable";
|
|
256
258
|
function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
257
259
|
let _a = $f6c31cce2adf654f$var$usePressResponderContext(props), { onPress, onPressChange, onPressStart, onPressEnd, onPressUp, onClick, isDisabled, isPressed: isPressedProp, preventFocusOnPress, shouldCancelOnPointerExit, allowTextSelectionOnPress, ref: domRef } = _a, domProps = __objRest(_a, ["onPress", "onPressChange", "onPressStart", "onPressEnd", "onPressUp", "onClick", "isDisabled", "isPressed", "preventFocusOnPress", "shouldCancelOnPointerExit", "allowTextSelectionOnPress", "ref"]);
|
|
258
260
|
let [isPressed, setPressed] = useState(false);
|
|
@@ -380,7 +382,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
380
382
|
shouldStopPropagation = stopPressStart && stopPressUp && stopPressEnd;
|
|
381
383
|
} else if (state.isPressed && state.pointerType !== "keyboard") {
|
|
382
384
|
let pointerType = state.pointerType || e.nativeEvent.pointerType || "virtual";
|
|
383
|
-
|
|
385
|
+
let stopPressUp = triggerPressUp($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType);
|
|
386
|
+
let stopPressEnd = triggerPressEnd($f6c31cce2adf654f$var$createEvent(e.currentTarget, e), pointerType, true);
|
|
387
|
+
shouldStopPropagation = stopPressUp && stopPressEnd;
|
|
384
388
|
state.isOverTarget = false;
|
|
385
389
|
triggerClick(e);
|
|
386
390
|
cancel(e);
|
|
@@ -448,7 +452,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
448
452
|
};
|
|
449
453
|
pressProps2.onPointerUp = (e) => {
|
|
450
454
|
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)) || state.pointerType === "virtual") return;
|
|
451
|
-
if (e.button === 0) triggerPressUp(e, state.pointerType || e.pointerType);
|
|
455
|
+
if (e.button === 0 && !state.isPressed) triggerPressUp(e, state.pointerType || e.pointerType);
|
|
452
456
|
};
|
|
453
457
|
pressProps2.onPointerEnter = (e) => {
|
|
454
458
|
if (e.pointerId === state.activePointerId && state.target && !state.isOverTarget && state.pointerType != null) {
|
|
@@ -529,7 +533,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
529
533
|
};
|
|
530
534
|
pressProps2.onMouseUp = (e) => {
|
|
531
535
|
if (!$d4ee10de306f2510$export$4282f70798064fe0(e.currentTarget, $d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent))) return;
|
|
532
|
-
if (!state.ignoreEmulatedMouseEvents && e.button === 0) triggerPressUp(e, state.pointerType || "mouse");
|
|
536
|
+
if (!state.ignoreEmulatedMouseEvents && e.button === 0 && !state.isPressed) triggerPressUp(e, state.pointerType || "mouse");
|
|
533
537
|
};
|
|
534
538
|
let onMouseUp = (e) => {
|
|
535
539
|
if (e.button !== 0) return;
|
|
@@ -632,12 +636,19 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
632
636
|
triggerSyntheticClick
|
|
633
637
|
]);
|
|
634
638
|
useEffect(() => {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
639
|
+
if (!domRef || process.env.NODE_ENV === "test") return;
|
|
640
|
+
const ownerDocument = $431fbd86ca7dc216$export$b204af158042fbac(domRef.current);
|
|
641
|
+
if (!ownerDocument || !ownerDocument.head || ownerDocument.getElementById($f6c31cce2adf654f$var$STYLE_ID)) return;
|
|
642
|
+
const style = ownerDocument.createElement("style");
|
|
643
|
+
style.id = $f6c31cce2adf654f$var$STYLE_ID;
|
|
644
|
+
style.textContent = `
|
|
645
|
+
@layer {
|
|
646
|
+
[${$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE}] {
|
|
647
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
`.trim();
|
|
651
|
+
ownerDocument.head.prepend(style);
|
|
641
652
|
}, [
|
|
642
653
|
domRef
|
|
643
654
|
]);
|
|
@@ -654,7 +665,9 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
654
665
|
]);
|
|
655
666
|
return {
|
|
656
667
|
isPressed: isPressedProp || isPressed,
|
|
657
|
-
pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps
|
|
668
|
+
pressProps: $3ef42575df84b30b$export$9d1611c77c2fe928(domProps, pressProps, {
|
|
669
|
+
[$f6c31cce2adf654f$var$PRESSABLE_ATTRIBUTE]: true
|
|
670
|
+
})
|
|
658
671
|
};
|
|
659
672
|
}
|
|
660
673
|
function $f6c31cce2adf654f$var$isHTMLAnchorLink(target) {
|
|
@@ -20,13 +20,13 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
22
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
23
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
24
|
-
const usePress = require("./usePress-
|
|
23
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
24
|
+
const usePress = require("./usePress-BbU41fvX.js");
|
|
25
25
|
const useEvent = require("./useEvent-Dh4hqdOa.js");
|
|
26
26
|
const scrollIntoView = require("./scrollIntoView-DrxAy81g.js");
|
|
27
27
|
const ReactDOM = require("react-dom");
|
|
28
|
-
const focusSafely = require("./focusSafely-
|
|
29
|
-
const FocusScope = require("./FocusScope-
|
|
28
|
+
const focusSafely = require("./focusSafely-DGwTMyzw.js");
|
|
29
|
+
const FocusScope = require("./FocusScope-Beno1SIx.js");
|
|
30
30
|
const context = require("./context-Dxz9OXQY.js");
|
|
31
31
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
32
32
|
const isInitialMount = React.useRef(true);
|
|
@@ -451,6 +451,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
let lastFocusedKey = React.useRef(manager.focusedKey);
|
|
454
|
+
let raf = React.useRef(null);
|
|
454
455
|
React.useEffect(() => {
|
|
455
456
|
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
456
457
|
let modality = useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
@@ -458,9 +459,14 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
458
459
|
if (!(element instanceof HTMLElement))
|
|
459
460
|
return;
|
|
460
461
|
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
463
|
+
raf.current = requestAnimationFrame(() => {
|
|
464
|
+
if (scrollRef.current) {
|
|
465
|
+
scrollIntoView.$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
466
|
+
if (modality !== "virtual") scrollIntoView.$2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
467
|
+
containingElement: ref.current
|
|
468
|
+
});
|
|
469
|
+
}
|
|
464
470
|
});
|
|
465
471
|
}
|
|
466
472
|
}
|
|
@@ -468,6 +474,11 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
468
474
|
lastFocusedKey.current = manager.focusedKey;
|
|
469
475
|
didAutoFocusRef.current = false;
|
|
470
476
|
});
|
|
477
|
+
React.useEffect(() => {
|
|
478
|
+
return () => {
|
|
479
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
480
|
+
};
|
|
481
|
+
}, []);
|
|
471
482
|
useEvent.$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
472
483
|
e.preventDefault();
|
|
473
484
|
manager.setFocused(true);
|
|
@@ -646,7 +657,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
646
657
|
return {
|
|
647
658
|
itemProps: mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
648
659
|
itemProps,
|
|
649
|
-
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {},
|
|
660
|
+
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled ? pressProps : {},
|
|
650
661
|
longPressEnabled ? longPressProps : {},
|
|
651
662
|
{
|
|
652
663
|
onDoubleClick,
|
|
@@ -19,13 +19,13 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useRef, useEffect } from "react";
|
|
21
21
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-CORsYhTp.mjs";
|
|
22
|
-
import { t as $c87311424ea30a05$export$9ac100e40613ea10, $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $431fbd86ca7dc216$export$b204af158042fbac, s as $7215afc6de606d6b$export$de79e2c695e052f3, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, v as $c87311424ea30a05$export$e1865c3bedcd822b, r as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-
|
|
23
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, e as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-
|
|
22
|
+
import { t as $c87311424ea30a05$export$9ac100e40613ea10, $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $431fbd86ca7dc216$export$b204af158042fbac, s as $7215afc6de606d6b$export$de79e2c695e052f3, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, v as $c87311424ea30a05$export$e1865c3bedcd822b, r as $507fabe10e71c6fb$export$630ff653c5ada6a9 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
23
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, e as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-tJX1Ngpm.mjs";
|
|
24
24
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-B40RDiQ6.mjs";
|
|
25
25
|
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1, a as $2f04cbc44ee30ce0$export$53a0910f038337bd, b as $2f04cbc44ee30ce0$export$c826860796309d1b } from "./scrollIntoView-BY1C_8w5.mjs";
|
|
26
26
|
import { flushSync } from "react-dom";
|
|
27
|
-
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-
|
|
28
|
-
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
27
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-D4cM_C4U.mjs";
|
|
28
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-DHbxxtYV.mjs";
|
|
29
29
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-BEoWr5Bw.mjs";
|
|
30
30
|
function $ca9b37712f007381$export$72ef708ab07251f1(effect, dependencies) {
|
|
31
31
|
const isInitialMount = useRef(true);
|
|
@@ -450,6 +450,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
let lastFocusedKey = useRef(manager.focusedKey);
|
|
453
|
+
let raf = useRef(null);
|
|
453
454
|
useEffect(() => {
|
|
454
455
|
if (manager.isFocused && manager.focusedKey != null && (manager.focusedKey !== lastFocusedKey.current || didAutoFocusRef.current) && scrollRef.current && ref.current) {
|
|
455
456
|
let modality = $507fabe10e71c6fb$export$630ff653c5ada6a9();
|
|
@@ -457,9 +458,14 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
457
458
|
if (!(element instanceof HTMLElement))
|
|
458
459
|
return;
|
|
459
460
|
if (modality === "keyboard" || didAutoFocusRef.current) {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
461
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
462
|
+
raf.current = requestAnimationFrame(() => {
|
|
463
|
+
if (scrollRef.current) {
|
|
464
|
+
$2f04cbc44ee30ce0$export$53a0910f038337bd(scrollRef.current, element);
|
|
465
|
+
if (modality !== "virtual") $2f04cbc44ee30ce0$export$c826860796309d1b(element, {
|
|
466
|
+
containingElement: ref.current
|
|
467
|
+
});
|
|
468
|
+
}
|
|
463
469
|
});
|
|
464
470
|
}
|
|
465
471
|
}
|
|
@@ -467,6 +473,11 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
|
|
|
467
473
|
lastFocusedKey.current = manager.focusedKey;
|
|
468
474
|
didAutoFocusRef.current = false;
|
|
469
475
|
});
|
|
476
|
+
useEffect(() => {
|
|
477
|
+
return () => {
|
|
478
|
+
if (raf.current) cancelAnimationFrame(raf.current);
|
|
479
|
+
};
|
|
480
|
+
}, []);
|
|
470
481
|
$e9faafb641e167db$export$90fc3a17d93f704c(ref, "react-aria-focus-scope-restore", (e) => {
|
|
471
482
|
e.preventDefault();
|
|
472
483
|
manager.setFocused(true);
|
|
@@ -645,7 +656,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
645
656
|
return {
|
|
646
657
|
itemProps: $3ef42575df84b30b$export$9d1611c77c2fe928(
|
|
647
658
|
itemProps,
|
|
648
|
-
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus ? pressProps : {},
|
|
659
|
+
allowsSelection || hasPrimaryAction || shouldUseVirtualFocus && !isDisabled ? pressProps : {},
|
|
649
660
|
longPressEnabled ? longPressProps : {},
|
|
650
661
|
{
|
|
651
662
|
onDoubleClick,
|
|
@@ -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-VOfe5ZyB.mjs";
|
|
21
|
-
import { a as $feb5ffebff200149$export$c3d8340acf92597f, b as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-
|
|
21
|
+
import { a as $feb5ffebff200149$export$c3d8340acf92597f, b as $ae20dd8cbca75726$export$d6daf82dcd84e87c } from "./useSelectableItem-DeMnuLRU.mjs";
|
|
22
22
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
|
|
23
23
|
import { $ as $325a3faab7a68acd$export$a16aca283550c30d } from "./useCollator-D97tqUbx.mjs";
|
|
24
24
|
import { useMemo } from "react";
|
|
@@ -28,8 +28,10 @@ function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
|
|
|
28
28
|
if (count != null) return count;
|
|
29
29
|
let counter = 0;
|
|
30
30
|
let countItems = (items) => {
|
|
31
|
-
for (let item of items)
|
|
32
|
-
|
|
31
|
+
for (let item of items) {
|
|
32
|
+
if (item.type === "section") countItems($c5a24bc478652b5f$export$1005530eda016c13(item, collection));
|
|
33
|
+
else if (item.type === "item") counter++;
|
|
34
|
+
}
|
|
33
35
|
};
|
|
34
36
|
countItems(collection);
|
|
35
37
|
$453cc9f0df89c0a5$var$cache.set(collection, counter);
|
|
@@ -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-BZ_5U5QP.js");
|
|
22
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
22
|
+
const useSelectableItem = require("./useSelectableItem-CHrk6m3n.js");
|
|
23
23
|
const isScrollable = require("./isScrollable-CE3Xdlg4.js");
|
|
24
24
|
const useCollator = require("./useCollator-Bbw6GMg7.js");
|
|
25
25
|
const React = require("react");
|
|
@@ -29,8 +29,10 @@ function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
|
|
|
29
29
|
if (count != null) return count;
|
|
30
30
|
let counter = 0;
|
|
31
31
|
let countItems = (items) => {
|
|
32
|
-
for (let item of items)
|
|
33
|
-
|
|
32
|
+
for (let item of items) {
|
|
33
|
+
if (item.type === "section") countItems(SelectionManager.$c5a24bc478652b5f$export$1005530eda016c13(item, collection));
|
|
34
|
+
else if (item.type === "item") counter++;
|
|
35
|
+
}
|
|
34
36
|
};
|
|
35
37
|
countItems(collection);
|
|
36
38
|
$453cc9f0df89c0a5$var$cache.set(collection, counter);
|
|
@@ -17,15 +17,15 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { j as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useFocusVisible-
|
|
20
|
+
import { j as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./useFocusVisible-S02S36Aj.mjs";
|
|
21
21
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
22
22
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
23
23
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-XL_MAi9u.mjs";
|
|
24
24
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-BDO08zJF.mjs";
|
|
25
25
|
import React__default, { useEffect } from "react";
|
|
26
26
|
import { $ as $2baaea4c71418dea$export$294aa081a6c6f55d } from "./useField-D1rL_Lz6.mjs";
|
|
27
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-
|
|
28
|
-
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-
|
|
27
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-YWcLWvwY.mjs";
|
|
28
|
+
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, a as $e93e671b31057976$export$b8473d3665f3a75a } from "./useFormValidation-CUeEhwOT.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);
|
|
@@ -18,15 +18,15 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
21
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
22
22
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
23
23
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
24
24
|
const useFormReset = require("./useFormReset-mp5g2mF5.js");
|
|
25
25
|
const useControlledState = require("./useControlledState-B2XIiHlL.js");
|
|
26
26
|
const React = require("react");
|
|
27
27
|
const useField = require("./useField-C80n1AHI.js");
|
|
28
|
-
const useFocusable = require("./useFocusable-
|
|
29
|
-
const useFormValidation = require("./useFormValidation-
|
|
28
|
+
const useFocusable = require("./useFocusable-CztLmeBQ.js");
|
|
29
|
+
const useFormValidation = require("./useFormValidation-CzZERvX9.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);
|
|
@@ -20,8 +20,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
22
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-XL_MAi9u.mjs";
|
|
23
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
24
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-
|
|
23
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-tJX1Ngpm.mjs";
|
|
24
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-YWcLWvwY.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) => {
|