@easypost/easy-ui 1.0.0-alpha.54 → 1.0.0-alpha.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +13 -0
- package/Calendar/Calendar.d.ts +43 -33
- package/Calendar/Calendar.d.ts.map +1 -1
- package/Calendar/CalendarBase.d.ts +57 -0
- package/Calendar/CalendarBase.d.ts.map +1 -0
- package/Calendar/CalendarCell.d.ts +2 -2
- package/Calendar/CalendarCell.d.ts.map +1 -1
- package/Calendar/CalendarGrid.d.ts +2 -5
- package/Calendar/CalendarGrid.d.ts.map +1 -1
- package/Calendar/CalendarHeader.d.ts +1 -6
- package/Calendar/CalendarHeader.d.ts.map +1 -1
- package/Calendar/index.js +9 -3349
- package/Calendar/index.mjs +8 -3348
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +14 -14
- package/CodeBlock/index.mjs +16 -16
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +63 -63
- package/DataGrid/index.mjs +72 -72
- package/Drawer/index.js +23 -24
- package/Drawer/index.mjs +21 -22
- package/DropdownButton/index.js +13 -13
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/InputField.d.ts +4 -0
- package/InputField/InputField.d.ts.map +1 -1
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/InputField/inputText.d.ts +24 -0
- package/InputField/inputText.d.ts.map +1 -0
- package/InputField/utilities.d.ts +1 -1
- package/InputField/utilities.d.ts.map +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +24 -25
- package/Modal/index.mjs +22 -23
- package/NexusLayout/index.js +30 -30
- package/NexusLayout/index.mjs +32 -32
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +11 -11
- package/Pagination/index.mjs +9 -9
- package/PillGroup/index.js +12 -12
- package/PillGroup/index.mjs +22 -22
- package/ProductLayout/index.js +26 -27
- package/ProductLayout/index.mjs +25 -26
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +4 -4
- package/RadioButtonGroup/index.mjs +8 -8
- package/RadioGroup/index.js +18 -18
- package/RadioGroup/index.mjs +25 -25
- package/RangeCalendar/RangeCalendar.d.ts +71 -0
- package/RangeCalendar/RangeCalendar.d.ts.map +1 -0
- package/RangeCalendar/RangeCalendar.stories.d.ts +15 -0
- package/RangeCalendar/RangeCalendar.stories.d.ts.map +1 -0
- package/RangeCalendar/RangeCalendar.test.d.ts +2 -0
- package/RangeCalendar/RangeCalendar.test.d.ts.map +1 -0
- package/RangeCalendar/index.d.ts +2 -0
- package/RangeCalendar/index.d.ts.map +1 -0
- package/RangeCalendar/index.js +228 -0
- package/RangeCalendar/index.mjs +228 -0
- package/SearchNav/index.js +30 -30
- package/SearchNav/index.mjs +30 -30
- package/SectionCard/index.js +9 -5497
- package/SectionCard/index.mjs +8 -5496
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +4 -4
- package/TabPanels/index.mjs +7 -7
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/TextField.stories.d.ts +1 -0
- package/TextField/TextField.stories.d.ts.map +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +25 -25
- package/VerticalNav/index.mjs +26 -26
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-Dy9idhgT.mjs → Button-D6onI-kJ.mjs} +18 -18
- package/__chunks__/{Button-D_Bk7BuN.js → Button-DQ2NkvB7.js} +18 -18
- package/__chunks__/CalendarBase-DaXcE0Vl.js +3410 -0
- package/__chunks__/CalendarBase-DkLU-xxk.mjs +3411 -0
- package/__chunks__/{Card-mxjU9S-F.mjs → Card-CYdEo89C.mjs} +12 -12
- package/__chunks__/{Card-9RlZlFEC.js → Card-Cw9W0Zvm.js} +12 -12
- package/__chunks__/{Checkbox-CBB8jlZw.js → Checkbox-DMIaBIMX.js} +21 -21
- package/__chunks__/{Checkbox-BgumKMXU.mjs → Checkbox-DTX_wDBB.mjs} +24 -24
- package/__chunks__/{CodeSnippet-BjUoaeh9.mjs → CodeSnippet-CBDtqnFn.mjs} +2 -2
- package/__chunks__/{CodeSnippet-DVrkwOg4.js → CodeSnippet-Dg-w1ncw.js} +2 -2
- package/__chunks__/{FocusScope-C194OB-4.mjs → FocusScope-CEeqhVmO.mjs} +3 -3
- package/__chunks__/{FocusScope-DJer9ahG.js → FocusScope-Co1hHX8R.js} +1 -1
- package/__chunks__/{HelpMenu-m1qJ4EyP.mjs → HelpMenu-DCIr7b5K.mjs} +7 -7
- package/__chunks__/{HelpMenu-DF2Bx-bn.js → HelpMenu-br4uY5D7.js} +7 -7
- package/__chunks__/{HorizontalGrid-BYR8Gr-h.mjs → HorizontalGrid--W2GD8lN.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-DuHNRhon.js → HorizontalGrid-BUpw5nwO.js} +1 -1
- package/__chunks__/{HorizontalStack-By6XdGZh.js → HorizontalStack-CXhmbQu4.js} +1 -1
- package/__chunks__/{HorizontalStack-DaZakHYj.mjs → HorizontalStack-x4HGqgsU.mjs} +1 -1
- package/__chunks__/{Icon-BB9QecRC.js → Icon-BCBvOy-b.js} +2 -2
- package/__chunks__/{Icon-3zFwhVjn.mjs → Icon-CDgix2Sz.mjs} +2 -2
- package/__chunks__/{InputField-CdEl4M4-.mjs → InputField-Bj22Z9om.mjs} +36 -14
- package/__chunks__/{InputField-CHAxJwME.js → InputField-C86b2081.js} +31 -9
- package/__chunks__/{InputIcon-oj25h1MN.js → InputIcon-BLzlQuQq.js} +44 -27
- package/__chunks__/{InputIcon--PdoGQOO.mjs → InputIcon-zjySEVjo.mjs} +44 -27
- package/__chunks__/{KebabButton-3bAqpgLu.js → KebabButton-ClU7vgEf.js} +5 -5
- package/__chunks__/{KebabButton-fmLpDchx.mjs → KebabButton-DDDKfSUI.mjs} +5 -5
- package/__chunks__/{Menu-B95QYBVQ.mjs → Menu-B4KcJbMm.mjs} +20 -21
- package/__chunks__/{Menu--B0Fn4Ol.js → Menu-anVQErb9.js} +18 -19
- package/__chunks__/{Notification-DTb3bJn4.js → Notification-BCLsclpu.js} +20 -20
- package/__chunks__/{Notification-D15awRNG.mjs → Notification-BoMoXyLI.mjs} +20 -20
- package/__chunks__/{Overlay-BtzIt9Ka.mjs → Overlay-CuhLUuXt.mjs} +58 -6
- package/__chunks__/{Overlay-CUtfbILq.js → Overlay-ZinDp2HW.js} +54 -2
- package/__chunks__/{SelectOverlay-_dx1vHML.js → SelectOverlay-BAFmxwi9.js} +26 -27
- package/__chunks__/{SelectOverlay-D39ws5R2.mjs → SelectOverlay-C5Kk7H2z.mjs} +34 -35
- package/__chunks__/{SelectorErrorTooltip-DhV9YtiA.js → SelectorErrorTooltip-B1tkBijI.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-D8y5kImH.mjs → SelectorErrorTooltip-C3BApHSk.mjs} +4 -4
- package/__chunks__/{Spinner-CVcjgzNy.js → Spinner-0AHyjbiK.js} +5 -5
- package/__chunks__/{Spinner-CfniY1TS.mjs → Spinner-DCi-JKIV.mjs} +8 -8
- package/__chunks__/{Stepper-D_2YRENa.mjs → Stepper-CgF1pSNE.mjs} +28 -28
- package/__chunks__/{Stepper-E2li7kd2.js → Stepper-Ds60cKSk.js} +26 -26
- package/__chunks__/{TabNav-BgwlyiLE.mjs → TabNav-BVyJkGz0.mjs} +1 -1
- package/__chunks__/{TabNav-C7_HMIZx.js → TabNav-BpsdF4EQ.js} +1 -1
- package/__chunks__/{Tabs-WKn9NKJy.js → Tabs-BTr3Uoym.js} +17 -17
- package/__chunks__/{Tabs-CwxqTiAn.mjs → Tabs-N3WVqQTL.mjs} +19 -19
- package/__chunks__/{Text-CoOcI-ZA.js → Text-Bo5ZXIKu.js} +34 -34
- package/__chunks__/{Text-Dfn-c0km.mjs → Text-Sv_euunS.mjs} +34 -34
- package/__chunks__/{Toggle-DYTnMD3t.js → Toggle-CHXljwk6.js} +12 -12
- package/__chunks__/{Toggle-qa6gbH9Q.mjs → Toggle-Dj6H2veI.mjs} +14 -14
- package/__chunks__/{Tooltip-6vJKVOnU.js → Tooltip-C0qyP5jK.js} +14 -14
- package/__chunks__/{Tooltip-DnLwtGUV.mjs → Tooltip-DMLWZU15.mjs} +14 -14
- package/__chunks__/{UnstyledButton-0v6TRjMY.mjs → UnstyledButton-6seSbTV1.mjs} +2 -2
- package/__chunks__/{UnstyledButton-BfeN_d1h.js → UnstyledButton-Dn8KZHdh.js} +1 -1
- package/__chunks__/{VerticalStack-ac4iBcxE.mjs → VerticalStack-BGcflJsS.mjs} +3 -3
- package/__chunks__/{VerticalStack-BUxIVmGp.js → VerticalStack-DYStFa7Z.js} +3 -3
- package/__chunks__/{VisuallyHidden-BsBkcHpw.mjs → VisuallyHidden-BttNIgVC.mjs} +2 -2
- package/__chunks__/{ariaHideOutside-2fSu0FuJ.js → ariaHideOutside-DNGR3Fo6.js} +3 -3
- package/__chunks__/{ariaHideOutside-Dhj8j6Mb.mjs → ariaHideOutside-DcIkumuG.mjs} +5 -5
- package/__chunks__/{runAfterTransition-DtSqibrj.js → context-C6CFGY_J.js} +7 -0
- package/__chunks__/{runAfterTransition-B7Bfhj0D.mjs → context-CgOWZch5.mjs} +8 -1
- package/__chunks__/{context-D3I6RuRU.mjs → context-DEwqildc.mjs} +1 -1
- package/__chunks__/{focusSafely-DfpH-pE9.mjs → focusSafely-Dw7K4rnX.mjs} +3 -3
- package/__chunks__/{focusSafely-CZPj1Dug.js → focusSafely-sLifanM7.js} +4 -4
- package/__chunks__/{isVirtualEvent-BPCuFO54.mjs → isVirtualEvent-BFRy7P_p.mjs} +2 -2
- package/__chunks__/lodash-Cu2-TIbX.mjs +5492 -0
- package/__chunks__/lodash-DfTCP3Dk.js +5491 -0
- package/__chunks__/{mergeProps-SJQ-f8LF.mjs → mergeProps-T961Q1yJ.mjs} +4 -4
- package/__chunks__/{scrollIntoView-C4vMSOYx.mjs → scrollIntoView-GfnXaOCE.mjs} +1 -1
- package/__chunks__/{useButton-C6QFpa4j.mjs → useButton-DEhs-Rkj.mjs} +3 -3
- package/__chunks__/{useButton-DVdJNlul.js → useButton-DvulUoU2.js} +2 -2
- package/__chunks__/{useDialog-CfUEt_df.mjs → useDialog-DAYxqkKY.mjs} +4 -4
- package/__chunks__/{useDialog-CtMBWxF5.js → useDialog-Dsqz1M_N.js} +3 -3
- package/__chunks__/{useEdgeInterceptors-DYwJNXXm.mjs → useEdgeInterceptors-B-WQYXsP.mjs} +5 -5
- package/__chunks__/{useEdgeInterceptors-CQ1iontu.js → useEdgeInterceptors-CuD3aTAb.js} +5 -5
- package/__chunks__/useEvent-C5RCZjKr.mjs +23 -0
- package/__chunks__/useEvent-DY7dR7Mi.js +22 -0
- package/__chunks__/{useField-DPD-La1H.mjs → useField-DWmSslhe.mjs} +2 -2
- package/__chunks__/{useFocus-By3Cx-xz.mjs → useFocus-DDj4i8Xy.mjs} +2 -2
- package/__chunks__/{useFocusRing-dRPhwlpK.mjs → useFocusRing-BE_dgxH5.mjs} +3 -3
- package/__chunks__/{useFocusVisible-BbEmluTm.mjs → useFocusVisible-CXSIZSY_.mjs} +2 -2
- package/__chunks__/{useFocusWithin-krnNAgDY.mjs → useFocusWithin-CDX8m0Wu.mjs} +1 -1
- package/__chunks__/{useFocusable-D0hhxIk-.js → useFocusable-BfXLORiH.js} +1 -1
- package/__chunks__/{useFocusable-B0naYTNU.mjs → useFocusable-DD5dAIXt.mjs} +4 -4
- package/__chunks__/{useFormReset-CFhWic3i.mjs → useFormReset-CmXMJVpO.mjs} +1 -1
- package/__chunks__/{useFormValidation-DAScndBq.mjs → useFormValidation-gwcVryr8.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-BY-g4H3y.js → useHasTabbableChild-C34XhtMr.js} +1 -1
- package/__chunks__/{useHasTabbableChild-9rS-nuc-.mjs → useHasTabbableChild-CRCY1COZ.mjs} +2 -2
- package/__chunks__/{useHighlightSelectionDescription-CPtYsCSQ.mjs → useHighlightSelectionDescription-DCgFgP4G.mjs} +3 -3
- package/__chunks__/{useLabel-BlM5Qwvq.mjs → useLabel-C0Q8946u.mjs} +2 -2
- package/__chunks__/{useLabels-DdXkBiwn.mjs → useLabels-Bly436JP.mjs} +1 -1
- package/__chunks__/{useLocalizedStringFormatter-DJWWtB78.mjs → useLocalizedStringFormatter-B5ons_mh.mjs} +1 -1
- package/__chunks__/{useModal-DajWXu6g.mjs → useOverlayPosition-B31NgShQ.mjs} +6 -73
- package/__chunks__/{useModal-QwDRNW96.js → useOverlayPosition-ucZjuzzI.js} +2 -69
- package/__chunks__/{usePress-CiUDlxr6.mjs → usePress-DV7a17gG.mjs} +4 -5
- package/__chunks__/{usePress-BVH8whNd.js → usePress-Dz8YYpge.js} +7 -8
- package/__chunks__/{useSelectableItem-CHd6ksRw.mjs → useSelectableItem-BDZ5pN_C.mjs} +11 -28
- package/__chunks__/{useSelectableItem-C0qCIU8l.js → useSelectableItem-BGvBbIwY.js} +9 -26
- package/__chunks__/{useSelectableList-FvytdUu7.mjs → useSelectableList-Bj35aLZH.mjs} +2 -2
- package/__chunks__/{useSelectableList-CnP9hXkb.js → useSelectableList-DlkRkps4.js} +1 -1
- package/__chunks__/{useSyncRef-Cp332icp.mjs → useSyncRef-CpaiKz0R.mjs} +1 -1
- package/__chunks__/{useToggle-YUgC8qn-.mjs → useToggle-BfGkPrAg.mjs} +4 -4
- package/__chunks__/{useToggle-DsYRac30.js → useToggle-D7gzXCXF.js} +2 -2
- package/__chunks__/{useTriggerWidth-B3JINZlR.mjs → useTriggerWidth-BC_zeUJ5.mjs} +7 -7
- package/__chunks__/{useTriggerWidth-CcKoLR8z.js → useTriggerWidth-C7OT3WI9.js} +4 -4
- package/__chunks__/{utils-Dm-0qf_-.mjs → utils-XuD3IFpv.mjs} +1 -1
- package/package.json +1 -1
- package/style.css +1131 -1046
- package/__chunks__/context-B-c1HPQa.js +0 -8
- package/__chunks__/context-BzShm_W7.mjs +0 -9
- package/__chunks__/useCloseOnScroll-CLFhBFoo.js +0 -54
- package/__chunks__/useCloseOnScroll-DxZ3orlK.mjs +0 -55
- package/__chunks__/{KeyboardDoubleArrowLeft-GpUjmD9o.mjs → KeyboardDoubleArrowRight-AAMLvGk-.mjs} +4 -4
- package/__chunks__/{KeyboardDoubleArrowLeft-BHR8vGMo.js → KeyboardDoubleArrowRight-Ber8mUIO.js} +4 -4
|
@@ -217,10 +217,10 @@ function $3ef42575df84b30b$export$9d1611c77c2fe928(...args) {
|
|
|
217
217
|
return result;
|
|
218
218
|
}
|
|
219
219
|
export {
|
|
220
|
-
$
|
|
221
|
-
$
|
|
222
|
-
$
|
|
223
|
-
$
|
|
220
|
+
$3ef42575df84b30b$export$9d1611c77c2fe928 as $,
|
|
221
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c as a,
|
|
222
|
+
$8ae05eaa5c114e9c$export$7f54fc3180508a52 as b,
|
|
223
|
+
$bdb11010cef70236$export$b4cc09c592e8fdb8 as c,
|
|
224
224
|
$bdb11010cef70236$export$f680877a34711e37 as d,
|
|
225
225
|
$b5e257d569688ac6$export$535bd6ca7f90a273 as e,
|
|
226
226
|
$ff5963eb1fccf552$export$e08e3b67e392101e as f
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-T961Q1yJ.mjs";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { $ as $cc38e7bd3fc7b213$export$2bb74740c4e19def } from "./isScrollable-DwbLAiO0.mjs";
|
|
4
4
|
function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
|
|
2
2
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
3
|
-
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-
|
|
3
|
+
import { $ as $e6afbd83fe6ebbd2$export$4c014de7c8940b4c } from "./useFocusable-DD5dAIXt.mjs";
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "./usePress-DV7a17gG.mjs";
|
|
5
5
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
6
6
|
let {
|
|
7
7
|
elementType = "button",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
3
3
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
4
|
-
const useFocusable = require("./useFocusable-
|
|
5
|
-
const usePress = require("./usePress-
|
|
4
|
+
const useFocusable = require("./useFocusable-BfXLORiH.js");
|
|
5
|
+
const usePress = require("./usePress-Dz8YYpge.js");
|
|
6
6
|
function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
|
|
7
7
|
let {
|
|
8
8
|
elementType = "button",
|
|
@@ -17,12 +17,12 @@ 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 {
|
|
22
|
-
import {
|
|
20
|
+
import { $ as $a11501f3d1d39e6c$export$ea8f71083e90600f, a as $49c51c25361d4cd2$export$ee0f7cc6afcd1c18, b as $5e3802645cc19319$export$1c3ebcada18427bf } from "./ariaHideOutside-DcIkumuG.mjs";
|
|
21
|
+
import { a as $337b884510726a0d$export$14c98a7594375490 } from "./Overlay-CuhLUuXt.mjs";
|
|
22
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$b4cc09c592e8fdb8 } from "./mergeProps-T961Q1yJ.mjs";
|
|
23
23
|
import { useEffect, useRef } from "react";
|
|
24
24
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.mjs";
|
|
25
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
25
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-Dw7K4rnX.mjs";
|
|
26
26
|
function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
27
27
|
let { overlayProps, underlayProps } = $a11501f3d1d39e6c$export$ea8f71083e90600f(__spreadProps(__spreadValues({}, props), {
|
|
28
28
|
isOpen: state.isOpen,
|
|
@@ -18,12 +18,12 @@ 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-DNGR3Fo6.js");
|
|
22
|
+
const Overlay = require("./Overlay-ZinDp2HW.js");
|
|
23
23
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
24
24
|
const React = require("react");
|
|
25
25
|
const filterDOMProps = require("./filterDOMProps-D3iOHP0H.js");
|
|
26
|
-
const focusSafely = require("./focusSafely-
|
|
26
|
+
const focusSafely = require("./focusSafely-sLifanM7.js");
|
|
27
27
|
function $8ac8429251c45e4b$export$dbc0f175b25fb0fb(props, state, ref) {
|
|
28
28
|
let { overlayProps, underlayProps } = ariaHideOutside.$a11501f3d1d39e6c$export$ea8f71083e90600f(__spreadProps(__spreadValues({}, props), {
|
|
29
29
|
isOpen: state.isOpen,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React__default, { useRef, useCallback } from "react";
|
|
2
2
|
import { u as useIntersectionDetection } from "./useIntersectionDetection-BvUmtDgl.mjs";
|
|
3
3
|
import { classNames } from "../utilities/css.mjs";
|
|
4
|
-
const interceptor = "
|
|
5
|
-
const top = "
|
|
6
|
-
const bottom = "
|
|
7
|
-
const left = "
|
|
8
|
-
const right = "
|
|
4
|
+
const interceptor = "_interceptor_1wnqs_5";
|
|
5
|
+
const top = "_top_1wnqs_13";
|
|
6
|
+
const bottom = "_bottom_1wnqs_14";
|
|
7
|
+
const left = "_left_1wnqs_18";
|
|
8
|
+
const right = "_right_1wnqs_19";
|
|
9
9
|
const styles = {
|
|
10
10
|
interceptor,
|
|
11
11
|
top,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
const React = require("react");
|
|
3
3
|
const useIntersectionDetection = require("./useIntersectionDetection-DI5n4zwA.js");
|
|
4
4
|
const utilities_css = require("../utilities/css.js");
|
|
5
|
-
const interceptor = "
|
|
6
|
-
const top = "
|
|
7
|
-
const bottom = "
|
|
8
|
-
const left = "
|
|
9
|
-
const right = "
|
|
5
|
+
const interceptor = "_interceptor_1wnqs_5";
|
|
6
|
+
const top = "_top_1wnqs_13";
|
|
7
|
+
const bottom = "_bottom_1wnqs_14";
|
|
8
|
+
const left = "_left_1wnqs_18";
|
|
9
|
+
const right = "_right_1wnqs_19";
|
|
10
10
|
const styles = {
|
|
11
11
|
interceptor,
|
|
12
12
|
top,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-T961Q1yJ.mjs";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
4
|
+
let handleEvent = $8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
5
|
+
let isDisabled = handler == null;
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
if (isDisabled || !ref.current) return;
|
|
8
|
+
let element = ref.current;
|
|
9
|
+
element.addEventListener(event, handleEvent, options);
|
|
10
|
+
return () => {
|
|
11
|
+
element.removeEventListener(event, handleEvent, options);
|
|
12
|
+
};
|
|
13
|
+
}, [
|
|
14
|
+
ref,
|
|
15
|
+
event,
|
|
16
|
+
options,
|
|
17
|
+
isDisabled,
|
|
18
|
+
handleEvent
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
$e9faafb641e167db$export$90fc3a17d93f704c as $
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
3
|
+
const React = require("react");
|
|
4
|
+
function $e9faafb641e167db$export$90fc3a17d93f704c(ref, event, handler, options) {
|
|
5
|
+
let handleEvent = mergeProps.$8ae05eaa5c114e9c$export$7f54fc3180508a52(handler);
|
|
6
|
+
let isDisabled = handler == null;
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
if (isDisabled || !ref.current) return;
|
|
9
|
+
let element = ref.current;
|
|
10
|
+
element.addEventListener(event, handleEvent, options);
|
|
11
|
+
return () => {
|
|
12
|
+
element.removeEventListener(event, handleEvent, options);
|
|
13
|
+
};
|
|
14
|
+
}, [
|
|
15
|
+
ref,
|
|
16
|
+
event,
|
|
17
|
+
options,
|
|
18
|
+
isDisabled,
|
|
19
|
+
handleEvent
|
|
20
|
+
]);
|
|
21
|
+
}
|
|
22
|
+
exports.$e9faafb641e167db$export$90fc3a17d93f704c = $e9faafb641e167db$export$90fc3a17d93f704c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as $d191a55c9702f145$export$8467354a121f1b9f } from "./useLabel-C0Q8946u.mjs";
|
|
2
|
+
import { c as $bdb11010cef70236$export$b4cc09c592e8fdb8, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
|
|
3
3
|
function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
|
|
4
4
|
let { description, errorMessage, isInvalid, validationState } = props;
|
|
5
5
|
let { labelProps, fieldProps } = $d191a55c9702f145$export$8467354a121f1b9f(props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-
|
|
1
|
+
import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-CXSIZSY_.mjs";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { $ as $431fbd86ca7dc216$export$b204af158042fbac } from "./isVirtualEvent-
|
|
3
|
+
import { $ as $431fbd86ca7dc216$export$b204af158042fbac } from "./isVirtualEvent-BFRy7P_p.mjs";
|
|
4
4
|
function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
|
|
5
5
|
let { isDisabled, onFocus: onFocusProp, onBlur: onBlurProp, onFocusChange } = props;
|
|
6
6
|
const onBlur = useCallback((e) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
2
|
-
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-
|
|
3
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-
|
|
1
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-DDj4i8Xy.mjs";
|
|
2
|
+
import { b as $507fabe10e71c6fb$export$b9b3dfddab17db27, c as $507fabe10e71c6fb$export$ec71b4b83ac08ec3 } from "./useFocusVisible-CXSIZSY_.mjs";
|
|
3
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-CDX8m0Wu.mjs";
|
|
4
4
|
import { useRef, useState, useCallback } from "react";
|
|
5
5
|
function $f7dceffc5ad7768b$export$4e328f61c538687f(props = {}) {
|
|
6
6
|
let { autoFocus = false, isTextInput, within } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef, useCallback, useEffect, useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as $431fbd86ca7dc216$export$b204af158042fbac, a as $431fbd86ca7dc216$export$f21a1ffae260145a, b as $6a7db85432448f7f$export$60278871457622de, c as $c87311424ea30a05$export$9ac100e40613ea10 } from "./isVirtualEvent-
|
|
2
|
+
import { a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, e as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-T961Q1yJ.mjs";
|
|
3
|
+
import { $ as $431fbd86ca7dc216$export$b204af158042fbac, a as $431fbd86ca7dc216$export$f21a1ffae260145a, b as $6a7db85432448f7f$export$60278871457622de, c as $c87311424ea30a05$export$9ac100e40613ea10 } from "./isVirtualEvent-BFRy7P_p.mjs";
|
|
4
4
|
class $8a9cb279dc87e130$export$905e7fc544a71f36 {
|
|
5
5
|
isDefaultPrevented() {
|
|
6
6
|
return this.nativeEvent.defaultPrevented;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-
|
|
1
|
+
import { a as $8a9cb279dc87e130$export$715c682d09d639cc } from "./useFocusVisible-CXSIZSY_.mjs";
|
|
2
2
|
import { useRef, useCallback } from "react";
|
|
3
3
|
function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
|
|
4
4
|
let { isDisabled, onBlurWithin, onFocusWithin, onFocusWithinChange } = props;
|
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
const focusSafely = require("./focusSafely-
|
|
33
|
+
const focusSafely = require("./focusSafely-sLifanM7.js");
|
|
34
34
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
35
35
|
const useSyncRef = require("./useSyncRef-CPg4onT-.js");
|
|
36
36
|
const React = require("react");
|
|
@@ -29,11 +29,11 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-
|
|
33
|
-
import {
|
|
34
|
-
import { $ as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useSyncRef-
|
|
32
|
+
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "./focusSafely-Dw7K4rnX.mjs";
|
|
33
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-T961Q1yJ.mjs";
|
|
34
|
+
import { $ as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useSyncRef-CpaiKz0R.mjs";
|
|
35
35
|
import React__default, { useRef, useEffect, useContext } from "react";
|
|
36
|
-
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-
|
|
36
|
+
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "./useFocus-DDj4i8Xy.mjs";
|
|
37
37
|
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
38
38
|
if (!handler) return void 0;
|
|
39
39
|
let shouldStopPropagation = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-T961Q1yJ.mjs";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
|
|
4
4
|
let resetValue = useRef(initialValue);
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { createContext, useMemo, useContext, useState, useRef, useEffect } from "react";
|
|
21
|
-
import { d as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-
|
|
22
|
-
import {
|
|
21
|
+
import { d as $507fabe10e71c6fb$export$8397ddfc504fdb9a } from "./useFocusVisible-CXSIZSY_.mjs";
|
|
22
|
+
import { a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $8ae05eaa5c114e9c$export$7f54fc3180508a52 } from "./mergeProps-T961Q1yJ.mjs";
|
|
23
23
|
const $e5be200c675c3b3a$export$aca958c65c314e6c = {
|
|
24
24
|
badInput: false,
|
|
25
25
|
customError: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const FocusScope = require("./FocusScope-
|
|
2
|
+
const FocusScope = require("./FocusScope-Co1hHX8R.js");
|
|
3
3
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-CEeqhVmO.mjs";
|
|
2
|
+
import { a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-T961Q1yJ.mjs";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
|
|
5
5
|
let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $ as $4f58c5f72bcf79f7$export$496315a1608d9602, a as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./LiveAnnouncer-UhhG0KqR.mjs";
|
|
2
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
2
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-B5ons_mh.mjs";
|
|
3
3
|
import { useRef, useMemo } from "react";
|
|
4
|
-
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-
|
|
5
|
-
import { e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-
|
|
4
|
+
import { $ as $ef06256079686ba0$export$f8aeda7b10753fa1 } from "./scrollIntoView-GfnXaOCE.mjs";
|
|
5
|
+
import { e as $507fabe10e71c6fb$export$98e20ec92f614cfe } from "./useFocusVisible-CXSIZSY_.mjs";
|
|
6
6
|
var $682989befd4f478d$exports = {};
|
|
7
7
|
$682989befd4f478d$exports = {
|
|
8
8
|
"deselectedItem": (args) => `${args.item} غير المحدد`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-
|
|
2
|
-
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-
|
|
1
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-T961Q1yJ.mjs";
|
|
2
|
+
import { $ as $313b98861ee5dd6c$export$d6875122194c7b44 } from "./useLabels-Bly436JP.mjs";
|
|
3
3
|
function $d191a55c9702f145$export$8467354a121f1b9f(props) {
|
|
4
4
|
let { id, label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType = "label" } = props;
|
|
5
5
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-
|
|
1
|
+
import { d as $bdb11010cef70236$export$f680877a34711e37 } from "./mergeProps-T961Q1yJ.mjs";
|
|
2
2
|
function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
|
|
3
3
|
let { id, "aria-label": label, "aria-labelledby": labelledBy } = props;
|
|
4
4
|
id = $bdb11010cef70236$export$f680877a34711e37(id);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
1
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DEwqildc.mjs";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
const $5b160d28a433310d$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
|
|
4
4
|
const $5b160d28a433310d$var$stringsSymbol = Symbol.for("react-aria.i18n.strings");
|
|
@@ -17,26 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
var target = {};
|
|
22
|
-
for (var prop in source)
|
|
23
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
-
target[prop] = source[prop];
|
|
25
|
-
if (source != null && __getOwnPropSymbols)
|
|
26
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
-
target[prop] = source[prop];
|
|
29
|
-
}
|
|
30
|
-
return target;
|
|
31
|
-
};
|
|
32
|
-
import { d as $c87311424ea30a05$export$78551043582a6a98 } from "./isVirtualEvent-BPCuFO54.mjs";
|
|
20
|
+
import { d as $c87311424ea30a05$export$78551043582a6a98 } from "./isVirtualEvent-BFRy7P_p.mjs";
|
|
33
21
|
import { $ as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-CLRm_tTs.mjs";
|
|
34
|
-
import { $ as $dd149f63282afbbf$export$18fc8428861184da } from "./
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
22
|
+
import { $ as $dd149f63282afbbf$export$18fc8428861184da } from "./Overlay-CuhLUuXt.mjs";
|
|
23
|
+
import { useState, useRef, useEffect, useCallback } from "react";
|
|
24
|
+
import { a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-T961Q1yJ.mjs";
|
|
37
25
|
import { $ as $9daab02d461809db$export$683480f191c0e3ea } from "./useResizeObserver-Dyb4wvuA.mjs";
|
|
38
|
-
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-
|
|
39
|
-
import ReactDOM from "react-dom";
|
|
26
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DEwqildc.mjs";
|
|
40
27
|
const $edcf132a9284368a$var$AXIS = {
|
|
41
28
|
top: "top",
|
|
42
29
|
bottom: "top",
|
|
@@ -481,60 +468,6 @@ function $2a41e45df1593e64$var$translateRTL(position, direction) {
|
|
|
481
468
|
if (direction === "rtl") return position.replace("start", "right").replace("end", "left");
|
|
482
469
|
return position.replace("start", "left").replace("end", "right");
|
|
483
470
|
}
|
|
484
|
-
const $f57aed4a881a3485$var$Context = /* @__PURE__ */ React__default.createContext(null);
|
|
485
|
-
function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
486
|
-
let { children } = props;
|
|
487
|
-
let parent = useContext($f57aed4a881a3485$var$Context);
|
|
488
|
-
let [modalCount, setModalCount] = useState(0);
|
|
489
|
-
let context = useMemo(() => ({
|
|
490
|
-
parent,
|
|
491
|
-
modalCount,
|
|
492
|
-
addModal() {
|
|
493
|
-
setModalCount((count) => count + 1);
|
|
494
|
-
if (parent) parent.addModal();
|
|
495
|
-
},
|
|
496
|
-
removeModal() {
|
|
497
|
-
setModalCount((count) => count - 1);
|
|
498
|
-
if (parent) parent.removeModal();
|
|
499
|
-
}
|
|
500
|
-
}), [
|
|
501
|
-
parent,
|
|
502
|
-
modalCount
|
|
503
|
-
]);
|
|
504
|
-
return /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$var$Context.Provider, {
|
|
505
|
-
value: context
|
|
506
|
-
}, children);
|
|
507
|
-
}
|
|
508
|
-
function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {
|
|
509
|
-
let context = useContext($f57aed4a881a3485$var$Context);
|
|
510
|
-
return {
|
|
511
|
-
modalProviderProps: {
|
|
512
|
-
"aria-hidden": context && context.modalCount > 0 ? true : void 0
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
function $f57aed4a881a3485$var$OverlayContainerDOM(props) {
|
|
517
|
-
let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();
|
|
518
|
-
return /* @__PURE__ */ React__default.createElement("div", __spreadValues(__spreadValues({
|
|
519
|
-
"data-overlay-container": true
|
|
520
|
-
}, props), modalProviderProps));
|
|
521
|
-
}
|
|
522
|
-
function $f57aed4a881a3485$export$bf688221f59024e5(props) {
|
|
523
|
-
return /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));
|
|
524
|
-
}
|
|
525
|
-
function $f57aed4a881a3485$export$b47c3594eab58386(props) {
|
|
526
|
-
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
527
|
-
let _a = props, { portalContainer = isSSR ? null : document.body } = _a, rest = __objRest(_a, ["portalContainer"]);
|
|
528
|
-
React__default.useEffect(() => {
|
|
529
|
-
if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
530
|
-
}, [
|
|
531
|
-
portalContainer
|
|
532
|
-
]);
|
|
533
|
-
if (!portalContainer) return null;
|
|
534
|
-
let contents = /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);
|
|
535
|
-
return /* @__PURE__ */ ReactDOM.createPortal(contents, portalContainer);
|
|
536
|
-
}
|
|
537
471
|
export {
|
|
538
|
-
$
|
|
539
|
-
$2a41e45df1593e64$export$d39e1813b3bdd0e1 as a
|
|
472
|
+
$2a41e45df1593e64$export$d39e1813b3bdd0e1 as $
|
|
540
473
|
};
|
|
@@ -18,26 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
21
|
const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
|
|
34
22
|
const number = require("./number-C4N6pKyl.js");
|
|
35
|
-
const
|
|
23
|
+
const Overlay = require("./Overlay-ZinDp2HW.js");
|
|
36
24
|
const React = require("react");
|
|
37
25
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
38
26
|
const useResizeObserver = require("./useResizeObserver-BsbT3mjh.js");
|
|
39
27
|
const context = require("./context-D3NeXov7.js");
|
|
40
|
-
const ReactDOM = require("react-dom");
|
|
41
28
|
const $edcf132a9284368a$var$AXIS = {
|
|
42
29
|
top: "top",
|
|
43
30
|
bottom: "top",
|
|
@@ -441,7 +428,7 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
|
|
|
441
428
|
onClose,
|
|
442
429
|
isResizing
|
|
443
430
|
]);
|
|
444
|
-
|
|
431
|
+
Overlay.$dd149f63282afbbf$export$18fc8428861184da({
|
|
445
432
|
triggerRef: targetRef,
|
|
446
433
|
isOpen,
|
|
447
434
|
onClose: onClose && close
|
|
@@ -482,58 +469,4 @@ function $2a41e45df1593e64$var$translateRTL(position, direction) {
|
|
|
482
469
|
if (direction === "rtl") return position.replace("start", "right").replace("end", "left");
|
|
483
470
|
return position.replace("start", "left").replace("end", "right");
|
|
484
471
|
}
|
|
485
|
-
const $f57aed4a881a3485$var$Context = /* @__PURE__ */ React.createContext(null);
|
|
486
|
-
function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
487
|
-
let { children } = props;
|
|
488
|
-
let parent = React.useContext($f57aed4a881a3485$var$Context);
|
|
489
|
-
let [modalCount, setModalCount] = React.useState(0);
|
|
490
|
-
let context2 = React.useMemo(() => ({
|
|
491
|
-
parent,
|
|
492
|
-
modalCount,
|
|
493
|
-
addModal() {
|
|
494
|
-
setModalCount((count) => count + 1);
|
|
495
|
-
if (parent) parent.addModal();
|
|
496
|
-
},
|
|
497
|
-
removeModal() {
|
|
498
|
-
setModalCount((count) => count - 1);
|
|
499
|
-
if (parent) parent.removeModal();
|
|
500
|
-
}
|
|
501
|
-
}), [
|
|
502
|
-
parent,
|
|
503
|
-
modalCount
|
|
504
|
-
]);
|
|
505
|
-
return /* @__PURE__ */ React.createElement($f57aed4a881a3485$var$Context.Provider, {
|
|
506
|
-
value: context2
|
|
507
|
-
}, children);
|
|
508
|
-
}
|
|
509
|
-
function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {
|
|
510
|
-
let context2 = React.useContext($f57aed4a881a3485$var$Context);
|
|
511
|
-
return {
|
|
512
|
-
modalProviderProps: {
|
|
513
|
-
"aria-hidden": context2 && context2.modalCount > 0 ? true : void 0
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
function $f57aed4a881a3485$var$OverlayContainerDOM(props) {
|
|
518
|
-
let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();
|
|
519
|
-
return /* @__PURE__ */ React.createElement("div", __spreadValues(__spreadValues({
|
|
520
|
-
"data-overlay-container": true
|
|
521
|
-
}, props), modalProviderProps));
|
|
522
|
-
}
|
|
523
|
-
function $f57aed4a881a3485$export$bf688221f59024e5(props) {
|
|
524
|
-
return /* @__PURE__ */ React.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /* @__PURE__ */ React.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));
|
|
525
|
-
}
|
|
526
|
-
function $f57aed4a881a3485$export$b47c3594eab58386(props) {
|
|
527
|
-
let isSSR = mergeProps.$b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
528
|
-
let _a = props, { portalContainer = isSSR ? null : document.body } = _a, rest = __objRest(_a, ["portalContainer"]);
|
|
529
|
-
React.useEffect(() => {
|
|
530
|
-
if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
531
|
-
}, [
|
|
532
|
-
portalContainer
|
|
533
|
-
]);
|
|
534
|
-
if (!portalContainer) return null;
|
|
535
|
-
let contents = /* @__PURE__ */ React.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);
|
|
536
|
-
return /* @__PURE__ */ ReactDOM.createPortal(contents, portalContainer);
|
|
537
|
-
}
|
|
538
472
|
exports.$2a41e45df1593e64$export$d39e1813b3bdd0e1 = $2a41e45df1593e64$export$d39e1813b3bdd0e1;
|
|
539
|
-
exports.$f57aed4a881a3485$export$b47c3594eab58386 = $f57aed4a881a3485$export$b47c3594eab58386;
|
|
@@ -13,12 +13,11 @@ var __objRest = (source, exclude) => {
|
|
|
13
13
|
}
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
|
-
import { g as $c87311424ea30a05$export$b7d78993b74f766d, c as $c87311424ea30a05$export$9ac100e40613ea10, d as $c87311424ea30a05$export$78551043582a6a98, h as $c87311424ea30a05$export$7bef049ce92e4224,
|
|
17
|
-
import { a as $7215afc6de606d6b$export$de79e2c695e052f3, $ as $bbed8b41f857bcc0$export$24490316f764c430 } from "./
|
|
18
|
-
import { $ as $
|
|
19
|
-
import { c as $8ae05eaa5c114e9c$export$7f54fc3180508a52, a as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-SJQ-f8LF.mjs";
|
|
16
|
+
import { g as $c87311424ea30a05$export$b7d78993b74f766d, c as $c87311424ea30a05$export$9ac100e40613ea10, d as $c87311424ea30a05$export$78551043582a6a98, h as $c87311424ea30a05$export$7bef049ce92e4224, f as $c87311424ea30a05$export$fedb369cb70207f1, $ as $431fbd86ca7dc216$export$b204af158042fbac, i as $6a7db85432448f7f$export$29bf1b5f2c56cf63, b as $6a7db85432448f7f$export$60278871457622de, a as $431fbd86ca7dc216$export$f21a1ffae260145a } from "./isVirtualEvent-BFRy7P_p.mjs";
|
|
17
|
+
import { a as $7215afc6de606d6b$export$de79e2c695e052f3, $ as $bbed8b41f857bcc0$export$24490316f764c430, b as $ae1eeba8b9eafd08$export$5165eccb35aaadb5 } from "./context-CgOWZch5.mjs";
|
|
18
|
+
import { b as $8ae05eaa5c114e9c$export$7f54fc3180508a52, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./mergeProps-T961Q1yJ.mjs";
|
|
20
19
|
import React__default, { useMemo, createContext, useContext, useRef, useCallback, useEffect, useState } from "react";
|
|
21
|
-
import { $ as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useSyncRef-
|
|
20
|
+
import { $ as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./useSyncRef-CpaiKz0R.mjs";
|
|
22
21
|
function _check_private_redeclaration(obj, privateCollection) {
|
|
23
22
|
if (privateCollection.has(obj)) {
|
|
24
23
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
@@ -15,8 +15,7 @@ var __objRest = (source, exclude) => {
|
|
|
15
15
|
return target;
|
|
16
16
|
};
|
|
17
17
|
const isVirtualEvent = require("./isVirtualEvent-DwoP1rNI.js");
|
|
18
|
-
const
|
|
19
|
-
const context = require("./context-B-c1HPQa.js");
|
|
18
|
+
const context = require("./context-C6CFGY_J.js");
|
|
20
19
|
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
21
20
|
const React = require("react");
|
|
22
21
|
const useSyncRef = require("./useSyncRef-CPg4onT-.js");
|
|
@@ -85,7 +84,7 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
|
|
|
85
84
|
cancelable: true
|
|
86
85
|
});
|
|
87
86
|
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = setOpening;
|
|
88
|
-
|
|
87
|
+
context.$7215afc6de606d6b$export$de79e2c695e052f3(target);
|
|
89
88
|
target.dispatchEvent(event);
|
|
90
89
|
$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening = false;
|
|
91
90
|
}
|
|
@@ -194,7 +193,7 @@ function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
|
|
|
194
193
|
if ($14c0b72509d70225$var$state !== "disabled") return;
|
|
195
194
|
$14c0b72509d70225$var$state = "restoring";
|
|
196
195
|
setTimeout(() => {
|
|
197
|
-
|
|
196
|
+
context.$bbed8b41f857bcc0$export$24490316f764c430(() => {
|
|
198
197
|
if ($14c0b72509d70225$var$state === "restoring") {
|
|
199
198
|
const documentObject = isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(target);
|
|
200
199
|
if (documentObject.documentElement.style.webkitUserSelect === "none") documentObject.documentElement.style.webkitUserSelect = $14c0b72509d70225$var$savedUserSelect || "";
|
|
@@ -425,7 +424,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
425
424
|
let shouldStopPropagation = true;
|
|
426
425
|
if (isDisabled) e.preventDefault();
|
|
427
426
|
if (!state.ignoreClickAfterPress && !state.ignoreEmulatedMouseEvents && !state.isPressed && (state.pointerType === "virtual" || isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e.nativeEvent))) {
|
|
428
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
427
|
+
if (!isDisabled && !preventFocusOnPress) context.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
429
428
|
let stopPressStart = triggerPressStart(e, "virtual");
|
|
430
429
|
let stopPressUp = triggerPressUp(e, "virtual");
|
|
431
430
|
let stopPressEnd = triggerPressEnd(e, "virtual");
|
|
@@ -473,7 +472,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
473
472
|
state.isOverTarget = true;
|
|
474
473
|
state.activePointerId = e.pointerId;
|
|
475
474
|
state.target = e.currentTarget;
|
|
476
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
475
|
+
if (!isDisabled && !preventFocusOnPress) context.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
477
476
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
|
|
478
477
|
shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
479
478
|
addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "pointermove", onPointerMove, false);
|
|
@@ -543,7 +542,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
543
542
|
state.isOverTarget = true;
|
|
544
543
|
state.target = e.currentTarget;
|
|
545
544
|
state.pointerType = isVirtualEvent.$6a7db85432448f7f$export$60278871457622de(e.nativeEvent) ? "virtual" : "mouse";
|
|
546
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
545
|
+
if (!isDisabled && !preventFocusOnPress) context.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
547
546
|
let shouldStopPropagation = triggerPressStart(e, state.pointerType);
|
|
548
547
|
if (shouldStopPropagation) e.stopPropagation();
|
|
549
548
|
addGlobalListener(isVirtualEvent.$431fbd86ca7dc216$export$b204af158042fbac(e.currentTarget), "mouseup", onMouseUp, false);
|
|
@@ -593,7 +592,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
|
|
|
593
592
|
state.isPressed = true;
|
|
594
593
|
state.target = e.currentTarget;
|
|
595
594
|
state.pointerType = "touch";
|
|
596
|
-
if (!isDisabled && !preventFocusOnPress)
|
|
595
|
+
if (!isDisabled && !preventFocusOnPress) context.$7215afc6de606d6b$export$de79e2c695e052f3(e.currentTarget);
|
|
597
596
|
if (!allowTextSelectionOnPress) $14c0b72509d70225$export$16a4697467175487(state.target);
|
|
598
597
|
let shouldStopPropagation = triggerPressStart($f6c31cce2adf654f$var$createTouchEvent(state.target, e), state.pointerType);
|
|
599
598
|
if (shouldStopPropagation) e.stopPropagation();
|