@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
|
@@ -30,11 +30,12 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
33
|
-
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-
|
|
33
|
+
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-ClQjEiLh.mjs";
|
|
34
|
+
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-77h4G8qk.mjs";
|
|
34
35
|
import React__default, { forwardRef, useRef } from "react";
|
|
35
36
|
import { classNames } from "../utilities/css.mjs";
|
|
36
37
|
import { o as omit } from "./omit-CYoLXTjq.mjs";
|
|
37
|
-
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-
|
|
38
|
+
import { $ as $701a24aa0da5b062$export$ea18c227d4417cc3 } from "./useButton-Ca3vtrUS.mjs";
|
|
38
39
|
const FILLED_BUTTON_COLORS = ["primary", "secondary", "success", "warning", "neutral"];
|
|
39
40
|
const OUTLINED_BUTTON_COLORS = ["primary", "secondary", "support", "warning", "inverse"];
|
|
40
41
|
const LINK_BUTTON_COLORS = ["primary", "secondary"];
|
|
@@ -61,13 +62,14 @@ const styles = {
|
|
|
61
62
|
const UnstyledButton = forwardRef((props, inRef) => {
|
|
62
63
|
const _a = props, { className = "", href = "", children = "Button", isDisabled = false } = _a, restProps = __objRest(_a, ["className", "href", "children", "isDisabled"]);
|
|
63
64
|
const ref = useRef(null);
|
|
65
|
+
const mergedRef = $df56164dff5785e2$export$4338b53315abf666($5dc95899b306f630$export$c9058316764c140e(ref, inRef));
|
|
64
66
|
const As = href ? "a" : "button";
|
|
65
67
|
const { buttonProps: elementProps } = $701a24aa0da5b062$export$ea18c227d4417cc3(__spreadProps(__spreadValues({}, props), {
|
|
66
68
|
elementType: As
|
|
67
69
|
}), ref);
|
|
68
70
|
return React__default.createElement(As, __spreadProps(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928(omitReactAriaSpecificProps(restProps), elementProps)), {
|
|
69
71
|
disabled: isDisabled,
|
|
70
|
-
ref:
|
|
72
|
+
ref: mergedRef,
|
|
71
73
|
className: classNames(styles.UnstyledButton, className)
|
|
72
74
|
}), children);
|
|
73
75
|
});
|
|
@@ -31,11 +31,12 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
34
|
-
const mergeRefs = require("./mergeRefs-
|
|
34
|
+
const mergeRefs = require("./mergeRefs-qNwPManW.js");
|
|
35
|
+
const useObjectRef = require("./useObjectRef-Bma_uNHw.js");
|
|
35
36
|
const React = require("react");
|
|
36
37
|
const utilities_css = require("../utilities/css.js");
|
|
37
38
|
const omit = require("./omit-CC3uE8z5.js");
|
|
38
|
-
const useButton = require("./useButton-
|
|
39
|
+
const useButton = require("./useButton-RDnDDS-w.js");
|
|
39
40
|
const FILLED_BUTTON_COLORS = ["primary", "secondary", "success", "warning", "neutral"];
|
|
40
41
|
const OUTLINED_BUTTON_COLORS = ["primary", "secondary", "support", "warning", "inverse"];
|
|
41
42
|
const LINK_BUTTON_COLORS = ["primary", "secondary"];
|
|
@@ -62,13 +63,14 @@ const styles = {
|
|
|
62
63
|
const UnstyledButton = React.forwardRef((props, inRef) => {
|
|
63
64
|
const _a = props, { className = "", href = "", children = "Button", isDisabled = false } = _a, restProps = __objRest(_a, ["className", "href", "children", "isDisabled"]);
|
|
64
65
|
const ref = React.useRef(null);
|
|
66
|
+
const mergedRef = useObjectRef.$df56164dff5785e2$export$4338b53315abf666(mergeRefs.$5dc95899b306f630$export$c9058316764c140e(ref, inRef));
|
|
65
67
|
const As = href ? "a" : "button";
|
|
66
68
|
const { buttonProps: elementProps } = useButton.$701a24aa0da5b062$export$ea18c227d4417cc3(__spreadProps(__spreadValues({}, props), {
|
|
67
69
|
elementType: As
|
|
68
70
|
}), ref);
|
|
69
71
|
return React.createElement(As, __spreadProps(__spreadValues({}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(omitReactAriaSpecificProps(restProps), elementProps)), {
|
|
70
72
|
disabled: isDisabled,
|
|
71
|
-
ref:
|
|
73
|
+
ref: mergedRef,
|
|
72
74
|
className: utilities_css.classNames(styles.UnstyledButton, className)
|
|
73
75
|
}), children);
|
|
74
76
|
});
|
|
@@ -31,7 +31,7 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
33
33
|
import React__default, { useState, useMemo } from "react";
|
|
34
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
34
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-eVSXHfLE.mjs";
|
|
35
35
|
const $5c3e21d68f1c4674$var$styles = {
|
|
36
36
|
border: 0,
|
|
37
37
|
clip: "rect(0 0 0 0)",
|
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
34
34
|
const React = require("react");
|
|
35
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
35
|
+
const useFocusWithin = require("./useFocusWithin-4tCIop4g.js");
|
|
36
36
|
const $5c3e21d68f1c4674$var$styles = {
|
|
37
37
|
border: 0,
|
|
38
38
|
clip: "rect(0 0 0 0)",
|
|
@@ -14,9 +14,9 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { b as $9bf71ea28793e738$export$1258395f99bf9cbf } from "./FocusScope-
|
|
18
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
19
|
-
import { a as $431fbd86ca7dc216$export$b204af158042fbac, u as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useFocusVisible-
|
|
17
|
+
import { b as $9bf71ea28793e738$export$1258395f99bf9cbf } from "./FocusScope-DHbxxtYV.mjs";
|
|
18
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-eVSXHfLE.mjs";
|
|
19
|
+
import { a as $431fbd86ca7dc216$export$b204af158042fbac, u as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
20
20
|
import { a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-CORsYhTp.mjs";
|
|
21
21
|
import { useRef, useEffect } from "react";
|
|
22
22
|
import { $ as $62d8ded9296f3872$export$cfa2225e87938781 } from "./getScrollParent-B5CCP-yO.mjs";
|
|
@@ -41,15 +41,15 @@ function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
|
41
41
|
const element = ref.current;
|
|
42
42
|
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
43
43
|
if (typeof PointerEvent !== "undefined") {
|
|
44
|
-
let
|
|
44
|
+
let onClick = (e) => {
|
|
45
45
|
if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);
|
|
46
46
|
state.isPointerDown = false;
|
|
47
47
|
};
|
|
48
48
|
documentObject.addEventListener("pointerdown", onPointerDown, true);
|
|
49
|
-
documentObject.addEventListener("
|
|
49
|
+
documentObject.addEventListener("click", onClick, true);
|
|
50
50
|
return () => {
|
|
51
51
|
documentObject.removeEventListener("pointerdown", onPointerDown, true);
|
|
52
|
-
documentObject.removeEventListener("
|
|
52
|
+
documentObject.removeEventListener("click", onClick, true);
|
|
53
53
|
};
|
|
54
54
|
} else if (process.env.NODE_ENV === "test") {
|
|
55
55
|
let onMouseUp = (e) => {
|
|
@@ -188,7 +188,9 @@ function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
|
|
|
188
188
|
]);
|
|
189
189
|
}
|
|
190
190
|
function $49c51c25361d4cd2$var$preventScrollStandard() {
|
|
191
|
-
|
|
191
|
+
let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
192
|
+
return $ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
|
|
193
|
+
("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
|
|
192
194
|
}
|
|
193
195
|
function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
194
196
|
let scrollable;
|
|
@@ -15,9 +15,9 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
}
|
|
16
16
|
return a;
|
|
17
17
|
};
|
|
18
|
-
const FocusScope = require("./FocusScope-
|
|
19
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
20
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
18
|
+
const FocusScope = require("./FocusScope-Beno1SIx.js");
|
|
19
|
+
const useFocusWithin = require("./useFocusWithin-4tCIop4g.js");
|
|
20
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
21
21
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
22
22
|
const React = require("react");
|
|
23
23
|
const getScrollParent = require("./getScrollParent-DNz2ReWu.js");
|
|
@@ -42,15 +42,15 @@ function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {
|
|
|
42
42
|
const element = ref.current;
|
|
43
43
|
const documentObject = useFocusVisible.$431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
44
44
|
if (typeof PointerEvent !== "undefined") {
|
|
45
|
-
let
|
|
45
|
+
let onClick = (e) => {
|
|
46
46
|
if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);
|
|
47
47
|
state.isPointerDown = false;
|
|
48
48
|
};
|
|
49
49
|
documentObject.addEventListener("pointerdown", onPointerDown, true);
|
|
50
|
-
documentObject.addEventListener("
|
|
50
|
+
documentObject.addEventListener("click", onClick, true);
|
|
51
51
|
return () => {
|
|
52
52
|
documentObject.removeEventListener("pointerdown", onPointerDown, true);
|
|
53
|
-
documentObject.removeEventListener("
|
|
53
|
+
documentObject.removeEventListener("click", onClick, true);
|
|
54
54
|
};
|
|
55
55
|
} else if (process.env.NODE_ENV === "test") {
|
|
56
56
|
let onMouseUp = (e) => {
|
|
@@ -189,7 +189,9 @@ function $49c51c25361d4cd2$export$ee0f7cc6afcd1c18(options = {}) {
|
|
|
189
189
|
]);
|
|
190
190
|
}
|
|
191
191
|
function $49c51c25361d4cd2$var$preventScrollStandard() {
|
|
192
|
-
|
|
192
|
+
let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
193
|
+
return mergeProps.$ff5963eb1fccf552$export$e08e3b67e392101e(scrollbarWidth > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
|
|
194
|
+
("scrollbarGutter" in document.documentElement.style ? $49c51c25361d4cd2$var$setStyle(document.documentElement, "scrollbarGutter", "stable") : $49c51c25361d4cd2$var$setStyle(document.documentElement, "paddingRight", `${scrollbarWidth}px`)), $49c51c25361d4cd2$var$setStyle(document.documentElement, "overflow", "hidden"));
|
|
193
195
|
}
|
|
194
196
|
function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
|
|
195
197
|
let scrollable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-CORsYhTp.mjs";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, r as $507fabe10e71c6fb$export$630ff653c5ada6a9, s as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./useFocusVisible-
|
|
3
|
+
import { a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, r as $507fabe10e71c6fb$export$630ff653c5ada6a9, s as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
4
4
|
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
5
5
|
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
6
6
|
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
@@ -41,8 +41,13 @@ if (typeof document !== "undefined") {
|
|
|
41
41
|
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
42
42
|
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
43
43
|
}
|
|
44
|
+
function $bbed8b41f857bcc0$var$cleanupDetachedElements() {
|
|
45
|
+
for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)
|
|
46
|
+
if ("isConnected" in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);
|
|
47
|
+
}
|
|
44
48
|
function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
|
|
45
49
|
requestAnimationFrame(() => {
|
|
50
|
+
$bbed8b41f857bcc0$var$cleanupDetachedElements();
|
|
46
51
|
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();
|
|
47
52
|
else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
|
|
48
53
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
4
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
5
5
|
let $bbed8b41f857bcc0$var$transitionsByElement = /* @__PURE__ */ new Map();
|
|
6
6
|
let $bbed8b41f857bcc0$var$transitionCallbacks = /* @__PURE__ */ new Set();
|
|
7
7
|
function $bbed8b41f857bcc0$var$setupGlobalEvents() {
|
|
@@ -42,8 +42,13 @@ if (typeof document !== "undefined") {
|
|
|
42
42
|
if (document.readyState !== "loading") $bbed8b41f857bcc0$var$setupGlobalEvents();
|
|
43
43
|
else document.addEventListener("DOMContentLoaded", $bbed8b41f857bcc0$var$setupGlobalEvents);
|
|
44
44
|
}
|
|
45
|
+
function $bbed8b41f857bcc0$var$cleanupDetachedElements() {
|
|
46
|
+
for (const [eventTarget] of $bbed8b41f857bcc0$var$transitionsByElement)
|
|
47
|
+
if ("isConnected" in eventTarget && !eventTarget.isConnected) $bbed8b41f857bcc0$var$transitionsByElement.delete(eventTarget);
|
|
48
|
+
}
|
|
45
49
|
function $bbed8b41f857bcc0$export$24490316f764c430(fn) {
|
|
46
50
|
requestAnimationFrame(() => {
|
|
51
|
+
$bbed8b41f857bcc0$var$cleanupDetachedElements();
|
|
47
52
|
if ($bbed8b41f857bcc0$var$transitionsByElement.size === 0) fn();
|
|
48
53
|
else $bbed8b41f857bcc0$var$transitionCallbacks.add(fn);
|
|
49
54
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function $5dc95899b306f630$export$c9058316764c140e(...refs) {
|
|
2
|
+
if (refs.length === 1 && refs[0]) return refs[0];
|
|
3
|
+
return (value) => {
|
|
4
|
+
let hasCleanup = false;
|
|
5
|
+
const cleanups = refs.map((ref) => {
|
|
6
|
+
const cleanup = $5dc95899b306f630$var$setRef(ref, value);
|
|
7
|
+
hasCleanup || (hasCleanup = typeof cleanup == "function");
|
|
8
|
+
return cleanup;
|
|
9
|
+
});
|
|
10
|
+
if (hasCleanup) return () => {
|
|
11
|
+
cleanups.forEach((cleanup, i) => {
|
|
12
|
+
if (typeof cleanup === "function") cleanup();
|
|
13
|
+
else $5dc95899b306f630$var$setRef(refs[i], null);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function $5dc95899b306f630$var$setRef(ref, value) {
|
|
19
|
+
if (typeof ref === "function") return ref(value);
|
|
20
|
+
else if (ref != null) ref.current = value;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
$5dc95899b306f630$export$c9058316764c140e as $
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function $5dc95899b306f630$export$c9058316764c140e(...refs) {
|
|
3
|
+
if (refs.length === 1 && refs[0]) return refs[0];
|
|
4
|
+
return (value) => {
|
|
5
|
+
let hasCleanup = false;
|
|
6
|
+
const cleanups = refs.map((ref) => {
|
|
7
|
+
const cleanup = $5dc95899b306f630$var$setRef(ref, value);
|
|
8
|
+
hasCleanup || (hasCleanup = typeof cleanup == "function");
|
|
9
|
+
return cleanup;
|
|
10
|
+
});
|
|
11
|
+
if (hasCleanup) return () => {
|
|
12
|
+
cleanups.forEach((cleanup, i) => {
|
|
13
|
+
if (typeof cleanup === "function") cleanup();
|
|
14
|
+
else $5dc95899b306f630$var$setRef(refs[i], null);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function $5dc95899b306f630$var$setRef(ref, value) {
|
|
20
|
+
if (typeof ref === "function") return ref(value);
|
|
21
|
+
else if (ref != null) ref.current = value;
|
|
22
|
+
}
|
|
23
|
+
exports.$5dc95899b306f630$export$c9058316764c140e = $5dc95899b306f630$export$c9058316764c140e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
3
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
4
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-
|
|
3
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-tJX1Ngpm.mjs";
|
|
4
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-YWcLWvwY.mjs";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let { elementType = "button", isDisabled, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type = "button" } = props;
|
|
7
7
|
let additionalProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
3
3
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
4
|
-
const usePress = require("./usePress-
|
|
5
|
-
const useFocusable = require("./useFocusable-
|
|
4
|
+
const usePress = require("./usePress-BbU41fvX.js");
|
|
5
|
+
const useFocusable = require("./useFocusable-CztLmeBQ.js");
|
|
6
6
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
7
7
|
let { elementType = "button", isDisabled, onPress, onPressStart, onPressEnd, onPressUp, onPressChange, preventFocusOnPress, allowFocusWhenDisabled, onClick, href, target, rel, type = "button" } = props;
|
|
8
8
|
let additionalProps;
|
|
@@ -19,9 +19,9 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { b as $bdb11010cef70236$export$b4cc09c592e8fdb8 } from "./mergeProps-CORsYhTp.mjs";
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
|
-
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-
|
|
22
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c } from "./focusSafely-D4cM_C4U.mjs";
|
|
23
23
|
import { useRef, useEffect } from "react";
|
|
24
|
-
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-
|
|
24
|
+
import { b as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-aI53DFC4.mjs";
|
|
25
25
|
function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
26
26
|
let { role = "dialog" } = props;
|
|
27
27
|
let titleId = $bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
@@ -20,9 +20,9 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
22
22
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
23
|
-
const focusSafely = require("./focusSafely-
|
|
23
|
+
const focusSafely = require("./focusSafely-DGwTMyzw.js");
|
|
24
24
|
const React = require("react");
|
|
25
|
-
const Overlay = require("./Overlay-
|
|
25
|
+
const Overlay = require("./Overlay-CTC5iCTq.js");
|
|
26
26
|
function $40df3f8667284809$export$d55e7ee900f34e93(props, ref) {
|
|
27
27
|
let { role = "dialog" } = props;
|
|
28
28
|
let titleId = mergeProps.$bdb11010cef70236$export$b4cc09c592e8fdb8();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as $8a9cb279dc87e130$export$715c682d09d639cc, a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $d4ee10de306f2510$export$e58f029f0fbfdb29 } from "./useFocusVisible-
|
|
1
|
+
import { c as $8a9cb279dc87e130$export$715c682d09d639cc, a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $d4ee10de306f2510$export$e58f029f0fbfdb29 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
4
4
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
2
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
5
5
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocus = require("./useFocus-
|
|
3
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
4
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
2
|
+
const useFocus = require("./useFocus-r5im5eX7.js");
|
|
3
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
4
|
+
const useFocusWithin = require("./useFocusWithin-4tCIop4g.js");
|
|
5
5
|
const React = require("react");
|
|
6
6
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
7
7
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
2
|
-
import { f as $507fabe10e71c6fb$export$b9b3dfddab17db27, g as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-
|
|
3
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
1
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-QhB_LR_6.mjs";
|
|
2
|
+
import { f as $507fabe10e71c6fb$export$b9b3dfddab17db27, g as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
3
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-eVSXHfLE.mjs";
|
|
4
4
|
import { useRef, useState, useCallback } from "react";
|
|
5
5
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
6
6
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -396,7 +396,7 @@ function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
|
396
396
|
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
397
397
|
}
|
|
398
398
|
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
399
|
-
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
399
|
+
if (typeof window === "undefined" || typeof document === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
400
400
|
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
401
401
|
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
402
402
|
let focus = windowObject.HTMLElement.prototype.focus;
|
|
@@ -395,7 +395,7 @@ function $507fabe10e71c6fb$var$handleWindowBlur() {
|
|
|
395
395
|
$507fabe10e71c6fb$var$hasBlurredWindowRecently = true;
|
|
396
396
|
}
|
|
397
397
|
function $507fabe10e71c6fb$var$setupGlobalFocusEvents(element) {
|
|
398
|
-
if (typeof window === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
398
|
+
if (typeof window === "undefined" || typeof document === "undefined" || $507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(element))) return;
|
|
399
399
|
const windowObject = $431fbd86ca7dc216$export$f21a1ffae260145a(element);
|
|
400
400
|
const documentObject = $431fbd86ca7dc216$export$b204af158042fbac(element);
|
|
401
401
|
let focus = windowObject.HTMLElement.prototype.focus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
2
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
5
5
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, c as $8a9cb279dc87e130$export$715c682d09d639cc, a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $d4ee10de306f2510$export$e58f029f0fbfdb29, b as $d4ee10de306f2510$export$4282f70798064fe0, h as $8a9cb279dc87e130$export$c2b7abe5d61ec696, i as $8a9cb279dc87e130$export$525bc4921d56d4a } from "./useFocusVisible-
|
|
1
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, c as $8a9cb279dc87e130$export$715c682d09d639cc, a as $431fbd86ca7dc216$export$b204af158042fbac, d as $d4ee10de306f2510$export$cd4e5573fbe2b576, e as $d4ee10de306f2510$export$e58f029f0fbfdb29, b as $d4ee10de306f2510$export$4282f70798064fe0, h as $8a9cb279dc87e130$export$c2b7abe5d61ec696, i as $8a9cb279dc87e130$export$525bc4921d56d4a } from "./useFocusVisible-S02S36Aj.mjs";
|
|
2
2
|
import { useRef, useCallback } from "react";
|
|
3
3
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
4
4
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -30,8 +30,8 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const focusSafely = require("./focusSafely-
|
|
34
|
-
const useFocus = require("./useFocus-
|
|
33
|
+
const focusSafely = require("./focusSafely-DGwTMyzw.js");
|
|
34
|
+
const useFocus = require("./useFocus-r5im5eX7.js");
|
|
35
35
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
36
36
|
const React = require("react");
|
|
37
37
|
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
@@ -29,8 +29,8 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c, a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-
|
|
33
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
32
|
+
import { $ as $3ad3f6e1647bc98d$export$80f3e147d781571c, a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-D4cM_C4U.mjs";
|
|
33
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-QhB_LR_6.mjs";
|
|
34
34
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
35
35
|
import React__default, { useRef, useEffect, useContext } from "react";
|
|
36
36
|
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { useMemo, useContext, createContext, useState, useRef, useEffect } from "react";
|
|
21
|
-
import { l as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-
|
|
21
|
+
import { l as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-S02S36Aj.mjs";
|
|
22
22
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-CORsYhTp.mjs";
|
|
23
23
|
const $e5be200c675c3b3a$export$aca958c65c314e6c = {
|
|
24
24
|
badInput: false,
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
const React = require("react");
|
|
22
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
22
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
23
23
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
24
24
|
const $e5be200c675c3b3a$export$aca958c65c314e6c = {
|
|
25
25
|
badInput: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const FocusScope = require("./FocusScope-
|
|
2
|
+
const FocusScope = require("./FocusScope-Beno1SIx.js");
|
|
3
3
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
1
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-DHbxxtYV.mjs";
|
|
2
2
|
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-CORsYhTp.mjs";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
@@ -5,7 +5,7 @@ const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
|
5
5
|
const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-X4sjSzZt.js");
|
|
6
6
|
const React = require("react");
|
|
7
7
|
const scrollIntoView = require("./scrollIntoView-DrxAy81g.js");
|
|
8
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
8
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
9
9
|
var $682989befd4f478d$exports = {};
|
|
10
10
|
$682989befd4f478d$exports = {
|
|
11
11
|
"deselectedItem": (args) => `${args.item} غير المحدد`,
|
|
@@ -508,20 +508,25 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
|
|
|
508
508
|
let isReplace = state.selectionManager.selectionBehavior === "replace";
|
|
509
509
|
let messages = [];
|
|
510
510
|
if (state.selectionManager.selectedKeys.size === 1 && isReplace) {
|
|
511
|
-
|
|
512
|
-
|
|
511
|
+
let firstKey = state.selectionManager.selectedKeys.keys().next().value;
|
|
512
|
+
if (firstKey != null && state.collection.getItem(firstKey)) {
|
|
513
|
+
let currentSelectionText = getRowText(firstKey);
|
|
513
514
|
if (currentSelectionText) messages.push(stringFormatter.format("selectedItem", {
|
|
514
515
|
item: currentSelectionText
|
|
515
516
|
}));
|
|
516
517
|
}
|
|
517
518
|
} else if (addedKeys.size === 1 && removedKeys.size === 0) {
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
let firstKey = addedKeys.keys().next().value;
|
|
520
|
+
if (firstKey != null) {
|
|
521
|
+
let addedText = getRowText(firstKey);
|
|
522
|
+
if (addedText) messages.push(stringFormatter.format("selectedItem", {
|
|
523
|
+
item: addedText
|
|
524
|
+
}));
|
|
525
|
+
}
|
|
522
526
|
} else if (removedKeys.size === 1 && addedKeys.size === 0) {
|
|
523
|
-
|
|
524
|
-
|
|
527
|
+
let firstKey = removedKeys.keys().next().value;
|
|
528
|
+
if (firstKey != null && state.collection.getItem(firstKey)) {
|
|
529
|
+
let removedText = getRowText(firstKey);
|
|
525
530
|
if (removedText) messages.push(stringFormatter.format("deselectedItem", {
|
|
526
531
|
item: removedText
|
|
527
532
|
}));
|
|
@@ -4,7 +4,7 @@ import { a as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-COR
|
|
|
4
4
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-D-qKpkp4.mjs";
|
|
5
5
|
import { useRef, useMemo } from "react";
|
|
6
6
|
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-BY1C_8w5.mjs";
|
|
7
|
-
import { B as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-
|
|
7
|
+
import { B as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-S02S36Aj.mjs";
|
|
8
8
|
var $682989befd4f478d$exports = {};
|
|
9
9
|
$682989befd4f478d$exports = {
|
|
10
10
|
"deselectedItem": (args) => `${args.item} غير المحدد`,
|
|
@@ -507,20 +507,25 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
|
|
|
507
507
|
let isReplace = state.selectionManager.selectionBehavior === "replace";
|
|
508
508
|
let messages = [];
|
|
509
509
|
if (state.selectionManager.selectedKeys.size === 1 && isReplace) {
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
let firstKey = state.selectionManager.selectedKeys.keys().next().value;
|
|
511
|
+
if (firstKey != null && state.collection.getItem(firstKey)) {
|
|
512
|
+
let currentSelectionText = getRowText(firstKey);
|
|
512
513
|
if (currentSelectionText) messages.push(stringFormatter.format("selectedItem", {
|
|
513
514
|
item: currentSelectionText
|
|
514
515
|
}));
|
|
515
516
|
}
|
|
516
517
|
} else if (addedKeys.size === 1 && removedKeys.size === 0) {
|
|
517
|
-
let
|
|
518
|
-
if (
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
let firstKey = addedKeys.keys().next().value;
|
|
519
|
+
if (firstKey != null) {
|
|
520
|
+
let addedText = getRowText(firstKey);
|
|
521
|
+
if (addedText) messages.push(stringFormatter.format("selectedItem", {
|
|
522
|
+
item: addedText
|
|
523
|
+
}));
|
|
524
|
+
}
|
|
521
525
|
} else if (removedKeys.size === 1 && addedKeys.size === 0) {
|
|
522
|
-
|
|
523
|
-
|
|
526
|
+
let firstKey = removedKeys.keys().next().value;
|
|
527
|
+
if (firstKey != null && state.collection.getItem(firstKey)) {
|
|
528
|
+
let removedText = getRowText(firstKey);
|
|
524
529
|
if (removedText) messages.push(stringFormatter.format("deselectedItem", {
|
|
525
530
|
item: removedText
|
|
526
531
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
2
|
+
const useFocusVisible = require("./useFocusVisible-CbSS3hxW.js");
|
|
3
3
|
const React = require("react");
|
|
4
4
|
let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
|
|
5
5
|
let $6179b936705e76d3$var$hoverCount = 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $431fbd86ca7dc216$export$b204af158042fbac, b as $d4ee10de306f2510$export$4282f70798064fe0 } from "./useFocusVisible-
|
|
1
|
+
import { $ as $03deb23ff14920c4$export$4eaf04e54aa8eed6, a as $431fbd86ca7dc216$export$b204af158042fbac, b as $d4ee10de306f2510$export$4282f70798064fe0 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
2
2
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
3
3
|
let $6179b936705e76d3$var$globalIgnoreEmulatedMouseEvents = false;
|
|
4
4
|
let $6179b936705e76d3$var$hoverCount = 0;
|
|
@@ -31,8 +31,8 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-CORsYhTp.mjs";
|
|
33
33
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
34
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, c as $ea8dcbcb9ea1b556$export$efa8c9099e530235 } from "./usePress-
|
|
35
|
-
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-
|
|
34
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, a as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18, c as $ea8dcbcb9ea1b556$export$efa8c9099e530235 } from "./usePress-tJX1Ngpm.mjs";
|
|
35
|
+
import { $ as $f645667febf57a63$export$4c014de7c8940b4c } from "./useFocusable-YWcLWvwY.mjs";
|
|
36
36
|
function $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {
|
|
37
37
|
let _a = props, { elementType = "a", onPress, onPressStart, onPressEnd, onClick, isDisabled } = _a, otherProps = __objRest(_a, ["elementType", "onPress", "onPressStart", "onPressEnd", "onClick", "isDisabled"]);
|
|
38
38
|
let linkProps = {};
|
|
@@ -32,8 +32,8 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const mergeProps = require("./mergeProps-d7wJkv71.js");
|
|
34
34
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
35
|
-
const usePress = require("./usePress-
|
|
36
|
-
const useFocusable = require("./useFocusable-
|
|
35
|
+
const usePress = require("./usePress-BbU41fvX.js");
|
|
36
|
+
const useFocusable = require("./useFocusable-CztLmeBQ.js");
|
|
37
37
|
function $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {
|
|
38
38
|
let _a = props, { elementType = "a", onPress, onPressStart, onPressEnd, onClick, isDisabled } = _a, otherProps = __objRest(_a, ["elementType", "onPress", "onPressStart", "onPressEnd", "onClick", "isDisabled"]);
|
|
39
39
|
let linkProps = {};
|
|
@@ -19,13 +19,13 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, b as $bdb11010cef70236$export$b4cc09c592e8fdb8, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-CORsYhTp.mjs";
|
|
21
21
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
22
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
22
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-eVSXHfLE.mjs";
|
|
23
23
|
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-DG4LdFPw.mjs";
|
|
24
|
-
import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./useSelectableList-
|
|
25
|
-
import { b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-
|
|
26
|
-
import { t as $c87311424ea30a05$export$9ac100e40613ea10, k as $c87311424ea30a05$export$78551043582a6a98, f as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-
|
|
27
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-
|
|
28
|
-
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-
|
|
24
|
+
import { $ as $982254629710d113$export$b95089534ab7c1fd, a as $453cc9f0df89c0a5$export$77d5aafae4e095b2 } from "./useSelectableList-By73z8mx.mjs";
|
|
25
|
+
import { b as $ea8dcbcb9ea1b556$export$7e924b3091a3bd18 } from "./usePress-tJX1Ngpm.mjs";
|
|
26
|
+
import { t as $c87311424ea30a05$export$9ac100e40613ea10, k as $c87311424ea30a05$export$78551043582a6a98, f as $507fabe10e71c6fb$export$b9b3dfddab17db27 } from "./useFocusVisible-S02S36Aj.mjs";
|
|
27
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-Djd8mM67.mjs";
|
|
28
|
+
import { $ as $880e95eb8b93ba9a$export$ecf600387e221c37 } from "./useSelectableItem-DeMnuLRU.mjs";
|
|
29
29
|
const $b1f0cad8af73213b$export$3585ede4d035bf14 = /* @__PURE__ */ new WeakMap();
|
|
30
30
|
function $b1f0cad8af73213b$var$normalizeKey(key) {
|
|
31
31
|
if (typeof key === "string") return key.replace(/\s*/g, "");
|