@easypost/easy-ui 1.0.0-alpha.54 → 1.0.0-alpha.55
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 +6 -0
- package/Calendar/index.js +19 -19
- package/Calendar/index.mjs +18 -18
- 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 +14 -14
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +63 -63
- package/DataGrid/index.mjs +63 -63
- 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/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 +24 -25
- package/Modal/index.mjs +22 -23
- package/NexusLayout/index.js +30 -30
- package/NexusLayout/index.mjs +30 -30
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +8 -8
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +12 -12
- package/PillGroup/index.mjs +12 -12
- 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 +4 -4
- package/RadioGroup/index.js +18 -18
- package/RadioGroup/index.mjs +18 -18
- package/SearchNav/index.js +30 -30
- package/SearchNav/index.mjs +30 -30
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +4 -4
- package/TabPanels/index.mjs +4 -4
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +25 -25
- package/VerticalNav/index.mjs +25 -25
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-D_Bk7BuN.js → Button-Bg19kicX.js} +18 -18
- package/__chunks__/{Button-Dy9idhgT.mjs → Button-vppvnDZX.mjs} +18 -18
- package/__chunks__/{Card-mxjU9S-F.mjs → Card-BL4ap8Im.mjs} +12 -12
- package/__chunks__/{Card-9RlZlFEC.js → Card-bN2Bjyiu.js} +12 -12
- package/__chunks__/{Checkbox-CBB8jlZw.js → Checkbox-Bbhv57QW.js} +21 -21
- package/__chunks__/{Checkbox-BgumKMXU.mjs → Checkbox-D7PJfiLF.mjs} +21 -21
- package/__chunks__/{CodeSnippet-BjUoaeh9.mjs → CodeSnippet-CT5SOnzT.mjs} +2 -2
- package/__chunks__/{CodeSnippet-DVrkwOg4.js → CodeSnippet-DMxiG1lt.js} +2 -2
- package/__chunks__/{FocusScope-C194OB-4.mjs → FocusScope-CMdrObui.mjs} +1 -1
- package/__chunks__/{FocusScope-DJer9ahG.js → FocusScope-Co1hHX8R.js} +1 -1
- package/__chunks__/{HelpMenu-DF2Bx-bn.js → HelpMenu-C4Lgr_6O.js} +7 -7
- package/__chunks__/{HelpMenu-m1qJ4EyP.mjs → HelpMenu-Cz2v3GAo.mjs} +7 -7
- package/__chunks__/{HorizontalGrid-BYR8Gr-h.mjs → HorizontalGrid-BV2_WP0d.mjs} +1 -1
- package/__chunks__/{HorizontalGrid-DuHNRhon.js → HorizontalGrid-sYdKXIX9.js} +1 -1
- package/__chunks__/{HorizontalStack-DaZakHYj.mjs → HorizontalStack-DtOxexq4.mjs} +1 -1
- package/__chunks__/{HorizontalStack-By6XdGZh.js → HorizontalStack-Jdgb1NMD.js} +1 -1
- package/__chunks__/{Icon-3zFwhVjn.mjs → Icon-BdrQIZ7G.mjs} +2 -2
- package/__chunks__/{Icon-BB9QecRC.js → Icon-ylOKybLj.js} +2 -2
- package/__chunks__/{InputField-CHAxJwME.js → InputField-CDopP3qd.js} +5 -5
- package/__chunks__/{InputField-CdEl4M4-.mjs → InputField-CmzPMEdU.mjs} +5 -5
- package/__chunks__/{InputIcon--PdoGQOO.mjs → InputIcon-C4kynRVv.mjs} +25 -25
- package/__chunks__/{InputIcon-oj25h1MN.js → InputIcon-DJjhAUG8.js} +25 -25
- package/__chunks__/{KebabButton-3bAqpgLu.js → KebabButton-Bct1ZWZ7.js} +5 -5
- package/__chunks__/{KebabButton-fmLpDchx.mjs → KebabButton-b1cJAu-k.mjs} +5 -5
- package/__chunks__/{Menu-B95QYBVQ.mjs → Menu-Bi8Xblu3.mjs} +17 -18
- package/__chunks__/{Menu--B0Fn4Ol.js → Menu-DhjEsT6X.js} +18 -19
- package/__chunks__/{Notification-DTb3bJn4.js → Notification-B7cXFkbn.js} +20 -20
- package/__chunks__/{Notification-D15awRNG.mjs → Notification-DgT-Srat.mjs} +16 -16
- package/__chunks__/{Overlay-BtzIt9Ka.mjs → Overlay-C3rJpwIX.mjs} +57 -5
- package/__chunks__/{Overlay-CUtfbILq.js → Overlay-ZinDp2HW.js} +54 -2
- package/__chunks__/{SelectOverlay-D39ws5R2.mjs → SelectOverlay-DRYndVx9.mjs} +25 -26
- package/__chunks__/{SelectOverlay-_dx1vHML.js → SelectOverlay-QlG4R4EK.js} +26 -27
- package/__chunks__/{SelectorErrorTooltip-D8y5kImH.mjs → SelectorErrorTooltip-CpIinREp.mjs} +4 -4
- package/__chunks__/{SelectorErrorTooltip-DhV9YtiA.js → SelectorErrorTooltip-Uuj_150A.js} +4 -4
- package/__chunks__/{Spinner-CVcjgzNy.js → Spinner-BHcblUXI.js} +5 -5
- package/__chunks__/{Spinner-CfniY1TS.mjs → Spinner-Cq8bw1nz.mjs} +5 -5
- package/__chunks__/{Stepper-D_2YRENa.mjs → Stepper-B7UuO2-U.mjs} +26 -26
- package/__chunks__/{Stepper-E2li7kd2.js → Stepper-RX4JamiX.js} +26 -26
- package/__chunks__/{TabNav-BgwlyiLE.mjs → TabNav-BJEE3Rgt.mjs} +1 -1
- package/__chunks__/{TabNav-C7_HMIZx.js → TabNav-Cr966uUR.js} +1 -1
- package/__chunks__/{Tabs-CwxqTiAn.mjs → Tabs-BJTPGnZs.mjs} +17 -17
- package/__chunks__/{Tabs-WKn9NKJy.js → Tabs-pX8dmtn1.js} +17 -17
- package/__chunks__/{Text-CoOcI-ZA.js → Text-BP87eq_Y.js} +34 -34
- package/__chunks__/{Text-Dfn-c0km.mjs → Text-hB1p7qnS.mjs} +34 -34
- package/__chunks__/{Toggle-DYTnMD3t.js → Toggle-CBZgoM67.js} +12 -12
- package/__chunks__/{Toggle-qa6gbH9Q.mjs → Toggle-CLR23YhR.mjs} +12 -12
- package/__chunks__/{Tooltip-6vJKVOnU.js → Tooltip-BckLAOT1.js} +14 -14
- package/__chunks__/{Tooltip-DnLwtGUV.mjs → Tooltip-C1JxFbtW.mjs} +12 -12
- package/__chunks__/{UnstyledButton-0v6TRjMY.mjs → UnstyledButton-CO7FOpAq.mjs} +1 -1
- package/__chunks__/{UnstyledButton-BfeN_d1h.js → UnstyledButton-Dn8KZHdh.js} +1 -1
- package/__chunks__/{VerticalStack-BUxIVmGp.js → VerticalStack-CDoPLDw4.js} +3 -3
- package/__chunks__/{VerticalStack-ac4iBcxE.mjs → VerticalStack-CkBHjLJD.mjs} +3 -3
- package/__chunks__/{ariaHideOutside-Dhj8j6Mb.mjs → ariaHideOutside-D-yj7DXL.mjs} +2 -2
- package/__chunks__/{ariaHideOutside-2fSu0FuJ.js → ariaHideOutside-DNGR3Fo6.js} +3 -3
- package/__chunks__/{runAfterTransition-DtSqibrj.js → context-C6CFGY_J.js} +7 -0
- package/__chunks__/{runAfterTransition-B7Bfhj0D.mjs → context-CgOWZch5.mjs} +8 -1
- package/__chunks__/{focusSafely-DfpH-pE9.mjs → focusSafely-8R2xSTi2.mjs} +1 -1
- package/__chunks__/{focusSafely-CZPj1Dug.js → focusSafely-sLifanM7.js} +4 -4
- package/__chunks__/{useButton-DVdJNlul.js → useButton-DvulUoU2.js} +2 -2
- package/__chunks__/{useButton-C6QFpa4j.mjs → useButton-s_sjr8Ix.mjs} +2 -2
- package/__chunks__/{useDialog-CtMBWxF5.js → useDialog-Dsqz1M_N.js} +3 -3
- package/__chunks__/{useDialog-CfUEt_df.mjs → useDialog-RxvhRzry.mjs} +3 -3
- package/__chunks__/{useEdgeInterceptors-CQ1iontu.js → useEdgeInterceptors-B7c--t3K.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-DYwJNXXm.mjs → useEdgeInterceptors-D0t_4eZ3.mjs} +5 -5
- package/__chunks__/{useFocusable-D0hhxIk-.js → useFocusable-BfXLORiH.js} +1 -1
- package/__chunks__/{useFocusable-B0naYTNU.mjs → useFocusable-CgTd-4A-.mjs} +1 -1
- package/__chunks__/{useHasTabbableChild-9rS-nuc-.mjs → useHasTabbableChild-BQnJycug.mjs} +1 -1
- package/__chunks__/{useHasTabbableChild-BY-g4H3y.js → useHasTabbableChild-C34XhtMr.js} +1 -1
- package/__chunks__/{useModal-DajWXu6g.mjs → useOverlayPosition-CoEMr0ZL.mjs} +4 -71
- package/__chunks__/{useModal-QwDRNW96.js → useOverlayPosition-ucZjuzzI.js} +2 -69
- package/__chunks__/{usePress-BVH8whNd.js → usePress-Dz8YYpge.js} +7 -8
- package/__chunks__/{usePress-CiUDlxr6.mjs → usePress-qBr44_1g.mjs} +1 -2
- package/__chunks__/{useSelectableItem-C0qCIU8l.js → useSelectableItem-Ca_8R3iv.js} +6 -6
- package/__chunks__/{useSelectableItem-CHd6ksRw.mjs → useSelectableItem-D7gxXSuA.mjs} +4 -4
- package/__chunks__/{useSelectableList-FvytdUu7.mjs → useSelectableList-CWMPIUPQ.mjs} +1 -1
- package/__chunks__/{useSelectableList-CnP9hXkb.js → useSelectableList-uSeYGnKL.js} +1 -1
- package/__chunks__/{useToggle-DsYRac30.js → useToggle-D7gzXCXF.js} +2 -2
- package/__chunks__/{useToggle-YUgC8qn-.mjs → useToggle-D9D1ZDRl.mjs} +2 -2
- package/__chunks__/{useTriggerWidth-CcKoLR8z.js → useTriggerWidth-ClsknzJh.js} +4 -4
- package/__chunks__/{useTriggerWidth-B3JINZlR.mjs → useTriggerWidth-i06IegOT.mjs} +3 -3
- package/package.json +1 -1
- package/style.css +955 -955
- 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
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const React = require("react");
|
|
3
|
-
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React.createContext({
|
|
4
|
-
register: () => {
|
|
5
|
-
}
|
|
6
|
-
});
|
|
7
|
-
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
8
|
-
exports.$ae1eeba8b9eafd08$export$5165eccb35aaadb5 = $ae1eeba8b9eafd08$export$5165eccb35aaadb5;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React__default from "react";
|
|
2
|
-
const $ae1eeba8b9eafd08$export$5165eccb35aaadb5 = React__default.createContext({
|
|
3
|
-
register: () => {
|
|
4
|
-
}
|
|
5
|
-
});
|
|
6
|
-
$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName = "PressResponderContext";
|
|
7
|
-
export {
|
|
8
|
-
$ae1eeba8b9eafd08$export$5165eccb35aaadb5 as $
|
|
9
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const React = require("react");
|
|
3
|
-
const useControlledState = require("./useControlledState-mnKBd6Uc.js");
|
|
4
|
-
function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
5
|
-
let [isOpen, setOpen] = useControlledState.$458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || false, props.onOpenChange);
|
|
6
|
-
const open = React.useCallback(() => {
|
|
7
|
-
setOpen(true);
|
|
8
|
-
}, [
|
|
9
|
-
setOpen
|
|
10
|
-
]);
|
|
11
|
-
const close = React.useCallback(() => {
|
|
12
|
-
setOpen(false);
|
|
13
|
-
}, [
|
|
14
|
-
setOpen
|
|
15
|
-
]);
|
|
16
|
-
const toggle = React.useCallback(() => {
|
|
17
|
-
setOpen(!isOpen);
|
|
18
|
-
}, [
|
|
19
|
-
setOpen,
|
|
20
|
-
isOpen
|
|
21
|
-
]);
|
|
22
|
-
return {
|
|
23
|
-
isOpen,
|
|
24
|
-
setOpen,
|
|
25
|
-
open,
|
|
26
|
-
close,
|
|
27
|
-
toggle
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
const $dd149f63282afbbf$export$f6211563215e3b37 = /* @__PURE__ */ new WeakMap();
|
|
31
|
-
function $dd149f63282afbbf$export$18fc8428861184da(opts) {
|
|
32
|
-
let { triggerRef, isOpen, onClose } = opts;
|
|
33
|
-
React.useEffect(() => {
|
|
34
|
-
if (!isOpen || onClose === null) return;
|
|
35
|
-
let onScroll = (e) => {
|
|
36
|
-
let target = e.target;
|
|
37
|
-
if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current)) return;
|
|
38
|
-
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
|
|
39
|
-
let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);
|
|
40
|
-
if (onCloseHandler) onCloseHandler();
|
|
41
|
-
};
|
|
42
|
-
window.addEventListener("scroll", onScroll, true);
|
|
43
|
-
return () => {
|
|
44
|
-
window.removeEventListener("scroll", onScroll, true);
|
|
45
|
-
};
|
|
46
|
-
}, [
|
|
47
|
-
isOpen,
|
|
48
|
-
onClose,
|
|
49
|
-
triggerRef
|
|
50
|
-
]);
|
|
51
|
-
}
|
|
52
|
-
exports.$dd149f63282afbbf$export$18fc8428861184da = $dd149f63282afbbf$export$18fc8428861184da;
|
|
53
|
-
exports.$dd149f63282afbbf$export$f6211563215e3b37 = $dd149f63282afbbf$export$f6211563215e3b37;
|
|
54
|
-
exports.$fc909762b330b746$export$61c6a8c84e605fb6 = $fc909762b330b746$export$61c6a8c84e605fb6;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect } from "react";
|
|
2
|
-
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-CFWhSD5C.mjs";
|
|
3
|
-
function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
4
|
-
let [isOpen, setOpen] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || false, props.onOpenChange);
|
|
5
|
-
const open = useCallback(() => {
|
|
6
|
-
setOpen(true);
|
|
7
|
-
}, [
|
|
8
|
-
setOpen
|
|
9
|
-
]);
|
|
10
|
-
const close = useCallback(() => {
|
|
11
|
-
setOpen(false);
|
|
12
|
-
}, [
|
|
13
|
-
setOpen
|
|
14
|
-
]);
|
|
15
|
-
const toggle = useCallback(() => {
|
|
16
|
-
setOpen(!isOpen);
|
|
17
|
-
}, [
|
|
18
|
-
setOpen,
|
|
19
|
-
isOpen
|
|
20
|
-
]);
|
|
21
|
-
return {
|
|
22
|
-
isOpen,
|
|
23
|
-
setOpen,
|
|
24
|
-
open,
|
|
25
|
-
close,
|
|
26
|
-
toggle
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const $dd149f63282afbbf$export$f6211563215e3b37 = /* @__PURE__ */ new WeakMap();
|
|
30
|
-
function $dd149f63282afbbf$export$18fc8428861184da(opts) {
|
|
31
|
-
let { triggerRef, isOpen, onClose } = opts;
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
if (!isOpen || onClose === null) return;
|
|
34
|
-
let onScroll = (e) => {
|
|
35
|
-
let target = e.target;
|
|
36
|
-
if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current)) return;
|
|
37
|
-
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;
|
|
38
|
-
let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);
|
|
39
|
-
if (onCloseHandler) onCloseHandler();
|
|
40
|
-
};
|
|
41
|
-
window.addEventListener("scroll", onScroll, true);
|
|
42
|
-
return () => {
|
|
43
|
-
window.removeEventListener("scroll", onScroll, true);
|
|
44
|
-
};
|
|
45
|
-
}, [
|
|
46
|
-
isOpen,
|
|
47
|
-
onClose,
|
|
48
|
-
triggerRef
|
|
49
|
-
]);
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
$dd149f63282afbbf$export$18fc8428861184da as $,
|
|
53
|
-
$fc909762b330b746$export$61c6a8c84e605fb6 as a,
|
|
54
|
-
$dd149f63282afbbf$export$f6211563215e3b37 as b
|
|
55
|
-
};
|