@easypost/easy-ui 1.0.0-alpha.113 → 1.0.0-alpha.115
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/AlertBadge/AlertBadge.d.ts +1 -1
- package/AlertBadge/AlertBadge.d.ts.map +1 -1
- package/AlertBadge/index.js +11 -9
- package/AlertBadge/index.mjs +11 -9
- package/Badge/index.js +12 -12
- package/Badge/index.mjs +12 -12
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +7 -7
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +12 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/index.js +14 -14
- package/CheckableCard/index.mjs +14 -14
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +30 -30
- package/CodeBlock/index.mjs +30 -30
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +24 -24
- package/ColorPicker/index.mjs +24 -24
- package/CustomerPortalLayout/index.js +36 -36
- package/CustomerPortalLayout/index.mjs +36 -36
- package/DataGrid/index.js +78 -78
- package/DataGrid/index.mjs +78 -78
- package/DatePicker/index.js +6 -6
- package/DatePicker/index.mjs +6 -6
- package/DateRangePicker/index.js +6 -6
- package/DateRangePicker/index.mjs +6 -6
- package/Drawer/index.js +24 -24
- package/Drawer/index.mjs +24 -24
- package/DropdownButton/index.js +7 -7
- package/DropdownButton/index.mjs +7 -7
- package/EmptyStateCard/index.js +18 -18
- package/EmptyStateCard/index.mjs +18 -18
- package/FocusedProductLayout/index.js +38 -38
- package/FocusedProductLayout/index.mjs +38 -38
- package/ForgeLayout/index.js +91 -91
- package/ForgeLayout/index.mjs +92 -92
- package/FormLayout/index.js +11 -11
- package/FormLayout/index.mjs +11 -11
- 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 +7 -7
- package/IconButton/index.mjs +7 -7
- 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 +39 -39
- package/Modal/index.mjs +39 -39
- package/MultiSelect/index.js +30 -30
- package/MultiSelect/index.mjs +31 -31
- package/MultipageSection/index.js +28 -28
- package/MultipageSection/index.mjs +28 -28
- package/NexusLayout/index.js +44 -44
- package/NexusLayout/index.mjs +44 -44
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +21 -21
- package/Pagination/index.mjs +21 -21
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +88 -88
- package/PlanCard/illustrations/Building01/index.mjs +88 -88
- package/PlanCard/illustrations/Building02/index.js +33 -33
- package/PlanCard/illustrations/Building02/index.mjs +33 -33
- package/PlanCard/illustrations/Building03/index.js +120 -120
- package/PlanCard/illustrations/Building03/index.mjs +120 -120
- package/PlanCard/illustrations/Building04/index.js +236 -236
- package/PlanCard/illustrations/Building04/index.mjs +236 -236
- package/PlanCard/index.js +17 -17
- package/PlanCard/index.mjs +17 -17
- package/ProductLayout/index.js +48 -48
- package/ProductLayout/index.mjs +48 -48
- package/Provider/index.js +7 -7
- package/Provider/index.mjs +7 -7
- 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 +70 -70
- package/SearchNav/index.mjs +71 -71
- package/SectionCard/index.js +16 -16
- package/SectionCard/index.mjs +16 -16
- package/Select/index.js +20 -20
- package/Select/index.mjs +20 -20
- 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 +11 -11
- package/SplitToggleCard/index.mjs +11 -11
- 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 +7 -7
- 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/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +3 -3
- package/Textarea/index.mjs +3 -3
- package/Theme/index.js +1 -1
- package/Theme/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +7 -7
- package/ToggleCard/index.mjs +7 -7
- 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 +39 -39
- package/VerticalNav/index.mjs +39 -39
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-C3vDXJsJ.js → Button-CQdi4TMV.js} +7 -7
- package/__chunks__/{Button-Dexauftx.mjs → Button-JL1YQxJ5.mjs} +7 -7
- package/__chunks__/{Calendar-BEbdigVB.js → Calendar-C9zdRov0.js} +3 -3
- package/__chunks__/{Calendar-BOxw8lwX.mjs → Calendar-DLzAtdfg.mjs} +3 -3
- package/__chunks__/{CalendarBase-3a9i7QNo.mjs → CalendarBase-DJ38_qK6.mjs} +32 -32
- package/__chunks__/{CalendarBase-Bx8bdXeT.js → CalendarBase-M-f289w8.js} +32 -32
- package/__chunks__/{Card-8778avMv.mjs → Card-BgjWYPVY.mjs} +5 -5
- package/__chunks__/{Card-DIZFYg6E.js → Card-LPIW5drP.js} +5 -5
- package/__chunks__/{Checkbox-DFWhjlaO.js → Checkbox-B_-6lfKk.js} +14 -14
- package/__chunks__/{Checkbox-C-NlI-Ym.mjs → Checkbox-DcaO0fC3.mjs} +14 -14
- package/__chunks__/{CodeSnippet-BCOMwE07.js → CodeSnippet-25l4r2Gh.js} +5 -5
- package/__chunks__/{CodeSnippet-CWnMHdVu.mjs → CodeSnippet-B3nsMpvq.mjs} +5 -5
- package/__chunks__/{DatePickerBase-C4PwUr9x.mjs → DatePickerBase-BQc8LKWg.mjs} +30 -30
- package/__chunks__/{DatePickerBase-XoRply_u.js → DatePickerBase-BYYfRTEY.js} +30 -30
- package/__chunks__/{EasyPostLogo-D3WNdZ29.js → EasyPostLogo-C9-Q0lSn.js} +5 -5
- package/__chunks__/{EasyPostLogo-tf6CCEAq.mjs → EasyPostLogo-DgIgAGa3.mjs} +5 -5
- package/__chunks__/{HelpMenu-8r0cjx5z.mjs → HelpMenu-BZRV42ab.mjs} +14 -14
- package/__chunks__/{HelpMenu-DBo_fklD.js → HelpMenu-C2t8KQuU.js} +14 -14
- package/__chunks__/{HorizontalGrid-BAvSeg39.js → HorizontalGrid-CAoDcmPW.js} +2 -2
- package/__chunks__/{HorizontalGrid-C4MBFEH-.mjs → HorizontalGrid-DbLeJBt8.mjs} +2 -2
- package/__chunks__/{HorizontalStack-BkE82C73.mjs → HorizontalStack-CJavrBHm.mjs} +2 -2
- package/__chunks__/{HorizontalStack-DidoI4Ks.js → HorizontalStack-CWdKKY8L.js} +2 -2
- package/__chunks__/{Icon-DzTns8u5.mjs → Icon-BIpaQJ_I.mjs} +3 -3
- package/__chunks__/{Icon-BVa5ddiD.js → Icon-BRlbo3RF.js} +3 -3
- package/__chunks__/{InputCaption-Dkyn1sg6.js → InputCaption-CccF4ynE.js} +6 -6
- package/__chunks__/{InputCaption-B8bZH6sX.mjs → InputCaption-DoyGkWQe.mjs} +6 -6
- package/__chunks__/{InputField-BTrYBVAD.mjs → InputField-CAY9O90X.mjs} +21 -21
- package/__chunks__/{InputField-Dvkk5R1K.js → InputField-DGb4ZDoR.js} +21 -21
- package/__chunks__/{InputIcon-BLJ6dx_5.mjs → InputIcon-CEATdJ1j.mjs} +4 -4
- package/__chunks__/{InputIcon-BSIAXX9k.js → InputIcon-DDKBJ_Tk.js} +4 -4
- package/__chunks__/{KebabButton-DSK0ISAn.mjs → KebabButton-D-5Mjaj0.mjs} +7 -7
- package/__chunks__/{KebabButton-3FnxY-Fz.js → KebabButton-TbapERgy.js} +7 -7
- package/__chunks__/{Menu-C2F4fvhd.mjs → Menu-Ci1FGh8B.mjs} +29 -29
- package/__chunks__/{Menu-Du8SsMeJ.js → Menu-MGDv1tob.js} +29 -29
- package/__chunks__/{Notification-CeJn5Qq1.js → Notification-DDQHWloB.js} +21 -21
- package/__chunks__/{Notification-CgUT2gv6.mjs → Notification-DnNx0rb6.mjs} +21 -21
- package/__chunks__/{PillGroup-rTS853Rr.js → PillGroup-BK8VCf3B.js} +14 -14
- package/__chunks__/{PillGroup-EJ8t8SrT.mjs → PillGroup-DN72MPhg.mjs} +14 -14
- package/__chunks__/{RadioGroup-DBgIqOkZ.mjs → RadioGroup-BfKaJnSo.mjs} +19 -19
- package/__chunks__/{RadioGroup-BFqH1Csi.js → RadioGroup-BiCqtR0F.js} +19 -19
- package/__chunks__/{RangeCalendar-BSsmX9l4.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -3
- package/__chunks__/{RangeCalendar-Do2nei5A.js → RangeCalendar-Dz6LyRYS.js} +3 -3
- package/__chunks__/{SelectOverlay-DjiJHthj.js → SelectOverlay-Bva0SG8D.js} +20 -20
- package/__chunks__/{SelectOverlay-DUIIhF4t.mjs → SelectOverlay-q23ZLLi4.mjs} +20 -20
- package/__chunks__/{SelectorErrorTooltip-BMxbuFiM.js → SelectorErrorTooltip-BNLrFRLN.js} +8 -8
- package/__chunks__/{SelectorErrorTooltip-BC-1JoX3.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +8 -8
- package/__chunks__/{Spinner-2PFCOK3I.mjs → Spinner-COsekFr1.mjs} +7 -7
- package/__chunks__/{Spinner-Dd68v9QX.js → Spinner-vRnrcEz0.js} +7 -7
- package/__chunks__/{Stepper-q3YNLglj.mjs → Stepper-DlI-16t-.mjs} +17 -17
- package/__chunks__/{Stepper-BZ90AIx0.js → Stepper-lhcjfVFY.js} +17 -17
- package/__chunks__/{TabNav-BnpNl7tj.mjs → TabNav-BNhQF0b0.mjs} +4 -4
- package/__chunks__/{TabNav-CLVG0bL2.js → TabNav-bVgyfEV7.js} +4 -4
- package/__chunks__/{Tabs-CtyYEye0.mjs → Tabs-BaROnbKg.mjs} +14 -14
- package/__chunks__/{Tabs-5_61DIBw.js → Tabs-DSngzN9A.js} +14 -14
- package/__chunks__/{Text-u9mYLeWj.mjs → Text-D6oT5WJQ.mjs} +2 -2
- package/__chunks__/{Text-C4CEsglh.js → Text-DkzMEqky.js} +2 -2
- package/__chunks__/{TextField-D1JGaTQv.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-DE1vPtQm.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-unLHjjnm.js → Theme-C2nSZUpG.js} +10 -10
- package/__chunks__/{Theme-CyUCrGdN.mjs → Theme-M__gFMM3.mjs} +10 -10
- package/__chunks__/{Toggle-BHzAGPDh.js → Toggle-BmJjrdVn.js} +11 -11
- package/__chunks__/{Toggle-DioYP2KQ.mjs → Toggle-DlDQ7rr2.mjs} +11 -11
- package/__chunks__/{Tooltip-COjtKErw.js → Tooltip-BSMvNula.js} +9 -9
- package/__chunks__/{Tooltip-BKGkKnOx.mjs → Tooltip-BXRi0h4E.mjs} +9 -9
- package/__chunks__/{UnstyledButton-_YQekhlm.js → UnstyledButton-DW8CjaXN.js} +2 -2
- package/__chunks__/{UnstyledButton-BCg7eEyP.mjs → UnstyledButton-DxJLvL-G.mjs} +2 -2
- package/__chunks__/{VerticalStack-CunLpHRv.js → VerticalStack-BHkiocKU.js} +2 -2
- package/__chunks__/{VerticalStack-Cbdpucbh.mjs → VerticalStack-DoMqBfYD.mjs} +2 -2
- package/__chunks__/{useEdgeInterceptors-BBmo6MI4.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +6 -6
- package/__chunks__/{useEdgeInterceptors-BLxn3eUi.js → useEdgeInterceptors-Rb2Hf0v8.js} +6 -6
- package/package.json +1 -1
- package/__chunks__/jsx-runtime-CH1d66I3.js +0 -320
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +0 -321
package/NexusLayout/index.mjs
CHANGED
|
@@ -17,20 +17,20 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
22
|
-
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-
|
|
22
|
+
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-DgIgAGa3.mjs";
|
|
23
23
|
import React__default, { useState, useCallback, forwardRef, useRef, useId, useMemo, useContext } from "react";
|
|
24
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
25
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
26
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
27
|
-
import { T as Text } from "../__chunks__/Text-
|
|
24
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
25
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
26
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
27
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
28
28
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
29
29
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
30
30
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
31
31
|
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../__chunks__/usePress-Cw67P1FM.mjs";
|
|
32
32
|
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-y6WGv96n.mjs";
|
|
33
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
33
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-DoMqBfYD.mjs";
|
|
34
34
|
const button = "_button_14248_4";
|
|
35
35
|
const focused$2 = "_focused_14248_25";
|
|
36
36
|
const hovered$2 = "_hovered_14248_37";
|
|
@@ -49,7 +49,7 @@ const styles$4 = {
|
|
|
49
49
|
};
|
|
50
50
|
function NexusLayoutActions(props) {
|
|
51
51
|
const { children } = props;
|
|
52
|
-
return
|
|
52
|
+
return jsx(HorizontalStack, {
|
|
53
53
|
wrap: false,
|
|
54
54
|
gap: "0.5",
|
|
55
55
|
align: "end",
|
|
@@ -65,19 +65,19 @@ function NexusLayoutMenuAction(props) {
|
|
|
65
65
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
66
66
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
67
67
|
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
68
|
-
return
|
|
68
|
+
return jsxs(Menu, {
|
|
69
69
|
isOpen,
|
|
70
70
|
onOpenChange: handleOpenChange,
|
|
71
|
-
children: [
|
|
72
|
-
children:
|
|
71
|
+
children: [jsx(Menu.Trigger, {
|
|
72
|
+
children: jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
73
73
|
className
|
|
74
74
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
75
|
-
children: [
|
|
75
|
+
children: [jsx(Text, {
|
|
76
76
|
visuallyHidden: true,
|
|
77
77
|
children: accessibilityLabel
|
|
78
|
-
}),
|
|
78
|
+
}), jsx(Icon, {
|
|
79
79
|
symbol: iconSymbol
|
|
80
|
-
}), renderBadge &&
|
|
80
|
+
}), renderBadge && jsx("div", {
|
|
81
81
|
className: styles$4.badgeContainer,
|
|
82
82
|
children: renderBadge()
|
|
83
83
|
})]
|
|
@@ -92,17 +92,17 @@ function NexusLayoutLinkAction(props) {
|
|
|
92
92
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
93
93
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
94
94
|
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
95
|
-
return
|
|
95
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
96
96
|
ref,
|
|
97
97
|
className
|
|
98
98
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
99
99
|
"aria-current": isSelected ? "true" : void 0,
|
|
100
|
-
children: [
|
|
100
|
+
children: [jsx(Text, {
|
|
101
101
|
visuallyHidden: true,
|
|
102
102
|
children: accessibilityLabel
|
|
103
|
-
}),
|
|
103
|
+
}), jsx(Icon, {
|
|
104
104
|
symbol: iconSymbol
|
|
105
|
-
}), renderBadge &&
|
|
105
|
+
}), renderBadge && jsx("div", {
|
|
106
106
|
className: styles$4.badgeContainer,
|
|
107
107
|
children: renderBadge()
|
|
108
108
|
})]
|
|
@@ -110,14 +110,14 @@ function NexusLayoutLinkAction(props) {
|
|
|
110
110
|
}
|
|
111
111
|
function NexusLayoutActionBadge(props) {
|
|
112
112
|
const { children } = props;
|
|
113
|
-
return
|
|
113
|
+
return jsx("div", {
|
|
114
114
|
className: styles$4.badge,
|
|
115
115
|
children
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
const PressableButton = forwardRef((props, ref) => {
|
|
119
119
|
const { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
120
|
-
return
|
|
120
|
+
return jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
121
121
|
ref,
|
|
122
122
|
className: classNames(pressProps.className)
|
|
123
123
|
}));
|
|
@@ -133,14 +133,14 @@ const styles$3 = {
|
|
|
133
133
|
};
|
|
134
134
|
function NexusLayoutMultipageContainer(props) {
|
|
135
135
|
const { children } = props;
|
|
136
|
-
return
|
|
136
|
+
return jsx("div", {
|
|
137
137
|
className: styles$3.container,
|
|
138
138
|
children
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
function NexusLayoutMultipageSidebar(props) {
|
|
142
142
|
const { children } = props;
|
|
143
|
-
return
|
|
143
|
+
return jsx("div", {
|
|
144
144
|
role: "region",
|
|
145
145
|
className: styles$3.sidebar,
|
|
146
146
|
children
|
|
@@ -148,9 +148,9 @@ function NexusLayoutMultipageSidebar(props) {
|
|
|
148
148
|
}
|
|
149
149
|
function NexusLayoutMultipageContent(props) {
|
|
150
150
|
const { children } = props;
|
|
151
|
-
return
|
|
151
|
+
return jsx("div", {
|
|
152
152
|
className: styles$3.content,
|
|
153
|
-
children:
|
|
153
|
+
children: jsx(VerticalStack, {
|
|
154
154
|
gap: "2",
|
|
155
155
|
children
|
|
156
156
|
})
|
|
@@ -158,7 +158,7 @@ function NexusLayoutMultipageContent(props) {
|
|
|
158
158
|
}
|
|
159
159
|
function NexusLayoutMultipageHeader(props) {
|
|
160
160
|
const { children } = props;
|
|
161
|
-
return
|
|
161
|
+
return jsx(HorizontalStack, {
|
|
162
162
|
as: "header",
|
|
163
163
|
blockAlign: "center",
|
|
164
164
|
align: "space-between",
|
|
@@ -167,7 +167,7 @@ function NexusLayoutMultipageHeader(props) {
|
|
|
167
167
|
}
|
|
168
168
|
function NexusLayoutMultipageTitle(props) {
|
|
169
169
|
const { children } = props;
|
|
170
|
-
return
|
|
170
|
+
return jsx(Text, {
|
|
171
171
|
as: "h3",
|
|
172
172
|
variant: "heading5",
|
|
173
173
|
children
|
|
@@ -199,13 +199,13 @@ function NexusLayoutMultipageSidebarNav(props) {
|
|
|
199
199
|
selectedHref
|
|
200
200
|
};
|
|
201
201
|
}, [selectedHref]);
|
|
202
|
-
return
|
|
202
|
+
return jsx(SidebarNavContext.Provider, {
|
|
203
203
|
value: context,
|
|
204
|
-
children:
|
|
204
|
+
children: jsxs(VerticalStack, {
|
|
205
205
|
as: "nav",
|
|
206
206
|
gap: "2",
|
|
207
207
|
"aria-labelledby": titleId,
|
|
208
|
-
children: [
|
|
208
|
+
children: [jsx(Text, {
|
|
209
209
|
as: "h2",
|
|
210
210
|
variant: "heading4",
|
|
211
211
|
id: titleId,
|
|
@@ -216,10 +216,10 @@ function NexusLayoutMultipageSidebarNav(props) {
|
|
|
216
216
|
}
|
|
217
217
|
function NexusLayoutMultipageSidebarNavSection(props) {
|
|
218
218
|
const { title, children } = props;
|
|
219
|
-
return
|
|
219
|
+
return jsxs(VerticalStack, {
|
|
220
220
|
gap: "2",
|
|
221
221
|
inlineAlign: "start",
|
|
222
|
-
children: [
|
|
222
|
+
children: [jsx(Text, {
|
|
223
223
|
variant: "overline",
|
|
224
224
|
children: title
|
|
225
225
|
}), children]
|
|
@@ -234,14 +234,14 @@ function NexusLayoutMultipageSidebarNavLink(props) {
|
|
|
234
234
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
235
235
|
const isSelected = href === selectedHref;
|
|
236
236
|
const className = classNames(styles$2.link, isFocusVisible && styles$2.focused, isHovered && styles$2.hovered, isSelected && styles$2.selected);
|
|
237
|
-
return
|
|
237
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
238
238
|
ref,
|
|
239
239
|
className
|
|
240
240
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
241
241
|
"aria-current": isSelected ? "page" : void 0,
|
|
242
|
-
children: [
|
|
242
|
+
children: [jsx(Icon, {
|
|
243
243
|
symbol: iconSymbol
|
|
244
|
-
}),
|
|
244
|
+
}), jsx(Text, {
|
|
245
245
|
variant: "body2",
|
|
246
246
|
weight: isSelected ? "semibold" : void 0,
|
|
247
247
|
children
|
|
@@ -273,9 +273,9 @@ function NexusLayoutNav(props) {
|
|
|
273
273
|
selectedHref
|
|
274
274
|
};
|
|
275
275
|
}, [selectedHref]);
|
|
276
|
-
return
|
|
276
|
+
return jsx(NexusLayoutNavContext.Provider, {
|
|
277
277
|
value: context,
|
|
278
|
-
children:
|
|
278
|
+
children: jsx(HorizontalStack, {
|
|
279
279
|
as: "nav",
|
|
280
280
|
"aria-label": ariaLabel,
|
|
281
281
|
children
|
|
@@ -291,14 +291,14 @@ function NexusLayoutNavLink(props) {
|
|
|
291
291
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
292
292
|
const isSelected = href === selectedHref;
|
|
293
293
|
const className = classNames(styles$1.link, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
294
|
-
return
|
|
294
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
295
295
|
ref,
|
|
296
296
|
className
|
|
297
297
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
298
298
|
"aria-current": isSelected ? "page" : void 0,
|
|
299
|
-
children: [
|
|
299
|
+
children: [jsx(Icon, {
|
|
300
300
|
symbol: iconSymbol
|
|
301
|
-
}),
|
|
301
|
+
}), jsx(Text, {
|
|
302
302
|
variant: "subtitle2",
|
|
303
303
|
weight: "semibold",
|
|
304
304
|
children
|
|
@@ -320,28 +320,28 @@ const styles = {
|
|
|
320
320
|
function NexusLayout(props) {
|
|
321
321
|
const { backgroundDecoration = "01", children } = props;
|
|
322
322
|
const className = classNames(styles.NexusLayout, styles[variationName("backgroundDecoration", backgroundDecoration)]);
|
|
323
|
-
return
|
|
323
|
+
return jsx("div", {
|
|
324
324
|
className,
|
|
325
325
|
children
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
function NexusLayoutHeader(props) {
|
|
329
329
|
const { children } = props;
|
|
330
|
-
return
|
|
330
|
+
return jsx("header", {
|
|
331
331
|
className: styles.header,
|
|
332
332
|
children
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
function NexusLayoutLogo(props) {
|
|
336
|
-
const { children =
|
|
337
|
-
return
|
|
336
|
+
const { children = jsx(EasyPostLogo, {}) } = props;
|
|
337
|
+
return jsx("div", {
|
|
338
338
|
className: styles.logo,
|
|
339
339
|
children
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
342
|
function NexusLayoutContent(props) {
|
|
343
343
|
const { children } = props;
|
|
344
|
-
return
|
|
344
|
+
return jsx("main", {
|
|
345
345
|
className: styles.content,
|
|
346
346
|
children
|
|
347
347
|
});
|
package/Notification/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Notification = require("../__chunks__/Notification-
|
|
3
|
+
const Notification = require("../__chunks__/Notification-DDQHWloB.js");
|
|
4
4
|
exports.Notification = Notification.Notification;
|
|
5
5
|
exports.NotificationContext = Notification.NotificationContext;
|
|
6
6
|
exports.NotificationProvider = Notification.NotificationProvider;
|
package/Notification/index.mjs
CHANGED
package/Pagination/index.js
CHANGED
|
@@ -31,15 +31,15 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
-
const jsxRuntime = require("
|
|
34
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
const React = require("react");
|
|
36
36
|
const KeyboardDoubleArrowRight = require("../__chunks__/KeyboardDoubleArrowRight-Ber8mUIO.js");
|
|
37
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
38
|
-
const Icon = require("../__chunks__/Icon-
|
|
39
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
37
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-CWdKKY8L.js");
|
|
38
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
39
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
40
40
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
41
|
-
const Text = require("../__chunks__/Text-
|
|
42
|
-
const Menu = require("../__chunks__/Menu-
|
|
41
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
42
|
+
const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
43
43
|
const utilities_react = require("../utilities/react.js");
|
|
44
44
|
const utilities_css = require("../utilities/css.js");
|
|
45
45
|
const menuButton = "_menuButton_bdft3_4";
|
|
@@ -52,9 +52,9 @@ const styles = {
|
|
|
52
52
|
};
|
|
53
53
|
function PaginationButton(props) {
|
|
54
54
|
const _a = props, { symbol } = _a, buttonProps = __objRest(_a, ["symbol"]);
|
|
55
|
-
return jsxRuntime.
|
|
55
|
+
return jsxRuntime.jsx(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, buttonProps), {
|
|
56
56
|
className: styles.arrowButton,
|
|
57
|
-
children: jsxRuntime.
|
|
57
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
58
58
|
symbol,
|
|
59
59
|
size: "md"
|
|
60
60
|
})
|
|
@@ -62,30 +62,30 @@ function PaginationButton(props) {
|
|
|
62
62
|
}
|
|
63
63
|
function PaginationDropdown(props) {
|
|
64
64
|
const { page, count, onSelect, isDisabled } = props;
|
|
65
|
-
return jsxRuntime.
|
|
65
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
66
66
|
isDisabled,
|
|
67
|
-
children: [jsxRuntime.
|
|
68
|
-
children: jsxRuntime.
|
|
67
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
68
|
+
children: jsxRuntime.jsx(UnstyledButton.UnstyledButton, {
|
|
69
69
|
"aria-label": "dropdown",
|
|
70
70
|
className: styles.menuButton,
|
|
71
71
|
isDisabled,
|
|
72
|
-
children: jsxRuntime.
|
|
72
|
+
children: jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
73
73
|
blockAlign: "center",
|
|
74
74
|
wrap: false,
|
|
75
|
-
children: [jsxRuntime.
|
|
75
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
76
76
|
variant: "body2",
|
|
77
77
|
children: `${page} of ${count}`
|
|
78
|
-
}), jsxRuntime.
|
|
78
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
79
79
|
symbol: ExpandMore400.ExpandMore400,
|
|
80
80
|
size: "2xs"
|
|
81
81
|
})]
|
|
82
82
|
})
|
|
83
83
|
})
|
|
84
|
-
}), jsxRuntime.
|
|
84
|
+
}), jsxRuntime.jsx(Menu.Menu.Overlay, {
|
|
85
85
|
onAction: (key) => onSelect(Number(key)),
|
|
86
|
-
children: numberToArray(count).map((pageNumber) => jsxRuntime.
|
|
86
|
+
children: numberToArray(count).map((pageNumber) => jsxRuntime.jsx(Menu.Menu.Item, {
|
|
87
87
|
"aria-label": `${pageNumber} of ${count}`,
|
|
88
|
-
children: jsxRuntime.
|
|
88
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
89
89
|
variant: "body2",
|
|
90
90
|
color: "neutral.900",
|
|
91
91
|
children: `${pageNumber} of ${count}`
|
|
@@ -106,19 +106,19 @@ function Pagination(props) {
|
|
|
106
106
|
if (children && utilities_react.getDisplayNameFromReactNode(children) !== PaginationDropdown.displayName) {
|
|
107
107
|
throw new Error(`children must be ${PaginationDropdown.displayName}`);
|
|
108
108
|
}
|
|
109
|
-
return jsxRuntime.
|
|
109
|
+
return jsxRuntime.jsx("nav", {
|
|
110
110
|
"aria-label": label,
|
|
111
111
|
className,
|
|
112
|
-
children: jsxRuntime.
|
|
112
|
+
children: jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
113
113
|
wrap: false,
|
|
114
|
-
children: [jsxRuntime.
|
|
114
|
+
children: [jsxRuntime.jsx(PaginationButton, {
|
|
115
115
|
"aria-label": "Previous",
|
|
116
116
|
onPress: onPrevious,
|
|
117
117
|
isDisabled: !hasPrevious || isDisabled,
|
|
118
118
|
symbol: KeyboardDoubleArrowRight.KeyboardDoubleArrowLeft
|
|
119
119
|
}), children && React.cloneElement(children, {
|
|
120
120
|
isDisabled
|
|
121
|
-
}), jsxRuntime.
|
|
121
|
+
}), jsxRuntime.jsx(PaginationButton, {
|
|
122
122
|
"aria-label": "Next",
|
|
123
123
|
onPress: onNext,
|
|
124
124
|
isDisabled: !hasNext || isDisabled,
|
package/Pagination/index.mjs
CHANGED
|
@@ -29,15 +29,15 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
33
|
import { cloneElement } from "react";
|
|
34
34
|
import { K as KeyboardDoubleArrowLeft, a as KeyboardDoubleArrowRight } from "../__chunks__/KeyboardDoubleArrowRight-AAMLvGk-.mjs";
|
|
35
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
36
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
37
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
35
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
36
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
37
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
38
38
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
39
|
-
import { T as Text } from "../__chunks__/Text-
|
|
40
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
39
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
40
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
41
41
|
import { getDisplayNameFromReactNode } from "../utilities/react.mjs";
|
|
42
42
|
import { classNames } from "../utilities/css.mjs";
|
|
43
43
|
const menuButton = "_menuButton_bdft3_4";
|
|
@@ -50,9 +50,9 @@ const styles = {
|
|
|
50
50
|
};
|
|
51
51
|
function PaginationButton(props) {
|
|
52
52
|
const _a = props, { symbol } = _a, buttonProps = __objRest(_a, ["symbol"]);
|
|
53
|
-
return
|
|
53
|
+
return jsx(UnstyledButton, __spreadProps(__spreadValues({}, buttonProps), {
|
|
54
54
|
className: styles.arrowButton,
|
|
55
|
-
children:
|
|
55
|
+
children: jsx(Icon, {
|
|
56
56
|
symbol,
|
|
57
57
|
size: "md"
|
|
58
58
|
})
|
|
@@ -60,30 +60,30 @@ function PaginationButton(props) {
|
|
|
60
60
|
}
|
|
61
61
|
function PaginationDropdown(props) {
|
|
62
62
|
const { page, count, onSelect, isDisabled } = props;
|
|
63
|
-
return
|
|
63
|
+
return jsxs(Menu, {
|
|
64
64
|
isDisabled,
|
|
65
|
-
children: [
|
|
66
|
-
children:
|
|
65
|
+
children: [jsx(Menu.Trigger, {
|
|
66
|
+
children: jsx(UnstyledButton, {
|
|
67
67
|
"aria-label": "dropdown",
|
|
68
68
|
className: styles.menuButton,
|
|
69
69
|
isDisabled,
|
|
70
|
-
children:
|
|
70
|
+
children: jsxs(HorizontalStack, {
|
|
71
71
|
blockAlign: "center",
|
|
72
72
|
wrap: false,
|
|
73
|
-
children: [
|
|
73
|
+
children: [jsx(Text, {
|
|
74
74
|
variant: "body2",
|
|
75
75
|
children: `${page} of ${count}`
|
|
76
|
-
}),
|
|
76
|
+
}), jsx(Icon, {
|
|
77
77
|
symbol: ExpandMore400,
|
|
78
78
|
size: "2xs"
|
|
79
79
|
})]
|
|
80
80
|
})
|
|
81
81
|
})
|
|
82
|
-
}),
|
|
82
|
+
}), jsx(Menu.Overlay, {
|
|
83
83
|
onAction: (key) => onSelect(Number(key)),
|
|
84
|
-
children: numberToArray(count).map((pageNumber) =>
|
|
84
|
+
children: numberToArray(count).map((pageNumber) => jsx(Menu.Item, {
|
|
85
85
|
"aria-label": `${pageNumber} of ${count}`,
|
|
86
|
-
children:
|
|
86
|
+
children: jsx(Text, {
|
|
87
87
|
variant: "body2",
|
|
88
88
|
color: "neutral.900",
|
|
89
89
|
children: `${pageNumber} of ${count}`
|
|
@@ -104,19 +104,19 @@ function Pagination(props) {
|
|
|
104
104
|
if (children && getDisplayNameFromReactNode(children) !== PaginationDropdown.displayName) {
|
|
105
105
|
throw new Error(`children must be ${PaginationDropdown.displayName}`);
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return jsx("nav", {
|
|
108
108
|
"aria-label": label,
|
|
109
109
|
className,
|
|
110
|
-
children:
|
|
110
|
+
children: jsxs(HorizontalStack, {
|
|
111
111
|
wrap: false,
|
|
112
|
-
children: [
|
|
112
|
+
children: [jsx(PaginationButton, {
|
|
113
113
|
"aria-label": "Previous",
|
|
114
114
|
onPress: onPrevious,
|
|
115
115
|
isDisabled: !hasPrevious || isDisabled,
|
|
116
116
|
symbol: KeyboardDoubleArrowLeft
|
|
117
117
|
}), children && cloneElement(children, {
|
|
118
118
|
isDisabled
|
|
119
|
-
}),
|
|
119
|
+
}), jsx(PaginationButton, {
|
|
120
120
|
"aria-label": "Next",
|
|
121
121
|
onPress: onNext,
|
|
122
122
|
isDisabled: !hasNext || isDisabled,
|
package/PillGroup/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const PillGroup = require("../__chunks__/PillGroup-
|
|
3
|
+
const PillGroup = require("../__chunks__/PillGroup-BK8VCf3B.js");
|
|
4
4
|
exports.PillGroup = PillGroup.PillGroup;
|
|
5
5
|
exports.usePillListState = PillGroup.usePillListState;
|
package/PillGroup/index.mjs
CHANGED