@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
|
@@ -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 {
|
|
21
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
22
|
-
import { T as Text } from "../__chunks__/Text-
|
|
23
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
20
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
21
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
22
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
23
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-DoMqBfYD.mjs";
|
|
24
24
|
import React__default, { useMemo, useRef, useContext } from "react";
|
|
25
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
25
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
26
26
|
import { classNames } from "../utilities/css.mjs";
|
|
27
27
|
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-y6WGv96n.mjs";
|
|
28
28
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
@@ -53,9 +53,9 @@ function MultipageSectionSidebarNav(props) {
|
|
|
53
53
|
selectedHref
|
|
54
54
|
};
|
|
55
55
|
}, [selectedHref]);
|
|
56
|
-
return
|
|
56
|
+
return jsx(SidebarNavContext.Provider, {
|
|
57
57
|
value: context,
|
|
58
|
-
children:
|
|
58
|
+
children: jsx(VerticalStack, {
|
|
59
59
|
as: "nav",
|
|
60
60
|
gap: "2",
|
|
61
61
|
children
|
|
@@ -64,10 +64,10 @@ function MultipageSectionSidebarNav(props) {
|
|
|
64
64
|
}
|
|
65
65
|
function MultipageSectionSidebarNavSection(props) {
|
|
66
66
|
const { title, children } = props;
|
|
67
|
-
return
|
|
67
|
+
return jsxs(VerticalStack, {
|
|
68
68
|
gap: "2",
|
|
69
69
|
inlineAlign: "start",
|
|
70
|
-
children: [
|
|
70
|
+
children: [jsx(Text, {
|
|
71
71
|
variant: "overline",
|
|
72
72
|
children: title
|
|
73
73
|
}), children]
|
|
@@ -82,14 +82,14 @@ function MultipageSectionSidebarNavLink(props) {
|
|
|
82
82
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
83
83
|
const isSelected = href === selectedHref;
|
|
84
84
|
const className = classNames(styles$1.link, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
85
|
-
return
|
|
85
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
86
86
|
ref,
|
|
87
87
|
className
|
|
88
88
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
89
89
|
"aria-current": isSelected ? "page" : void 0,
|
|
90
|
-
children: [
|
|
90
|
+
children: [jsx(Icon, {
|
|
91
91
|
symbol: iconSymbol
|
|
92
|
-
}),
|
|
92
|
+
}), jsx(Text, {
|
|
93
93
|
variant: "body2",
|
|
94
94
|
weight: isSelected ? "semibold" : void 0,
|
|
95
95
|
children
|
|
@@ -114,28 +114,28 @@ const styles = {
|
|
|
114
114
|
};
|
|
115
115
|
function MultipageSection(props) {
|
|
116
116
|
const { children } = props;
|
|
117
|
-
return
|
|
117
|
+
return jsx("section", {
|
|
118
118
|
className: styles.MultipageSection,
|
|
119
119
|
children
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function MultipageSectionContainer(props) {
|
|
123
123
|
const { children } = props;
|
|
124
|
-
return
|
|
124
|
+
return jsx("div", {
|
|
125
125
|
className: styles.container,
|
|
126
126
|
children
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
function MultipageSectionSplitContainer(props) {
|
|
130
130
|
const { children } = props;
|
|
131
|
-
return
|
|
131
|
+
return jsx("div", {
|
|
132
132
|
className: styles.splitContainer,
|
|
133
133
|
children
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
function MultipageSectionSidebar(props) {
|
|
137
137
|
const { children } = props;
|
|
138
|
-
return
|
|
138
|
+
return jsx("div", {
|
|
139
139
|
role: "region",
|
|
140
140
|
className: styles.sidebar,
|
|
141
141
|
children
|
|
@@ -143,9 +143,9 @@ function MultipageSectionSidebar(props) {
|
|
|
143
143
|
}
|
|
144
144
|
function MultipageSectionBrandHeader(props) {
|
|
145
145
|
const { children } = props;
|
|
146
|
-
return
|
|
146
|
+
return jsx("div", {
|
|
147
147
|
className: styles.brandHeader,
|
|
148
|
-
children:
|
|
148
|
+
children: jsx(HorizontalStack, {
|
|
149
149
|
gap: "2",
|
|
150
150
|
blockAlign: "center",
|
|
151
151
|
children
|
|
@@ -154,14 +154,14 @@ function MultipageSectionBrandHeader(props) {
|
|
|
154
154
|
}
|
|
155
155
|
function MultipageSectionBrandHeaderLogo(props) {
|
|
156
156
|
const { children } = props;
|
|
157
|
-
return
|
|
157
|
+
return jsx("div", {
|
|
158
158
|
className: styles.brandLogo,
|
|
159
159
|
children
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
function MultipageSectionBrandHeaderTitle(props) {
|
|
163
163
|
const { children } = props;
|
|
164
|
-
return
|
|
164
|
+
return jsx(Text, {
|
|
165
165
|
as: "h2",
|
|
166
166
|
variant: "heading3",
|
|
167
167
|
color: "primary.800",
|
|
@@ -170,9 +170,9 @@ function MultipageSectionBrandHeaderTitle(props) {
|
|
|
170
170
|
}
|
|
171
171
|
function MultipageSectionContent(props) {
|
|
172
172
|
const { children } = props;
|
|
173
|
-
return
|
|
173
|
+
return jsx("div", {
|
|
174
174
|
className: styles.content,
|
|
175
|
-
children:
|
|
175
|
+
children: jsx(VerticalStack, {
|
|
176
176
|
gap: "2",
|
|
177
177
|
children
|
|
178
178
|
})
|
|
@@ -180,7 +180,7 @@ function MultipageSectionContent(props) {
|
|
|
180
180
|
}
|
|
181
181
|
function MultipageSectionContentHeader(props) {
|
|
182
182
|
const { children } = props;
|
|
183
|
-
return
|
|
183
|
+
return jsx(HorizontalStack, {
|
|
184
184
|
as: "header",
|
|
185
185
|
blockAlign: "center",
|
|
186
186
|
align: "space-between",
|
|
@@ -189,21 +189,21 @@ function MultipageSectionContentHeader(props) {
|
|
|
189
189
|
}
|
|
190
190
|
function MultipageSectionContentTitle(props) {
|
|
191
191
|
const { children, titleIcon } = props;
|
|
192
|
-
return
|
|
193
|
-
children: titleIcon ?
|
|
192
|
+
return jsx(Fragment, {
|
|
193
|
+
children: titleIcon ? jsxs(HorizontalStack, {
|
|
194
194
|
gap: "1",
|
|
195
195
|
blockAlign: "center",
|
|
196
|
-
children: [
|
|
196
|
+
children: [jsx(Icon, {
|
|
197
197
|
symbol: titleIcon,
|
|
198
198
|
size: "lg",
|
|
199
199
|
color: "primary.800"
|
|
200
|
-
}),
|
|
200
|
+
}), jsx(Text, {
|
|
201
201
|
as: "h3",
|
|
202
202
|
variant: "heading5",
|
|
203
203
|
color: "primary.800",
|
|
204
204
|
children
|
|
205
205
|
})]
|
|
206
|
-
}) :
|
|
206
|
+
}) : jsx(Text, {
|
|
207
207
|
as: "h3",
|
|
208
208
|
variant: "heading5",
|
|
209
209
|
color: "primary.800",
|
package/NexusLayout/index.js
CHANGED
|
@@ -19,20 +19,20 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
-
const jsxRuntime = require("
|
|
22
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
const utilities_css = require("../utilities/css.js");
|
|
24
|
-
const EasyPostLogo = require("../__chunks__/EasyPostLogo-
|
|
24
|
+
const EasyPostLogo = require("../__chunks__/EasyPostLogo-C9-Q0lSn.js");
|
|
25
25
|
const React = require("react");
|
|
26
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
27
|
-
const Icon = require("../__chunks__/Icon-
|
|
28
|
-
const Menu = require("../__chunks__/Menu-
|
|
29
|
-
const Text = require("../__chunks__/Text-
|
|
26
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-CWdKKY8L.js");
|
|
27
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
28
|
+
const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
29
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
30
30
|
const useFocusRing = require("../__chunks__/useFocusRing-DbC9E5wC.js");
|
|
31
31
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
32
32
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
33
33
|
const usePress = require("../__chunks__/usePress-B5G5CgVn.js");
|
|
34
34
|
const useLink = require("../__chunks__/useLink-CChqhQkC.js");
|
|
35
|
-
const VerticalStack = require("../__chunks__/VerticalStack-
|
|
35
|
+
const VerticalStack = require("../__chunks__/VerticalStack-BHkiocKU.js");
|
|
36
36
|
const button = "_button_14248_4";
|
|
37
37
|
const focused$2 = "_focused_14248_25";
|
|
38
38
|
const hovered$2 = "_hovered_14248_37";
|
|
@@ -51,7 +51,7 @@ const styles$4 = {
|
|
|
51
51
|
};
|
|
52
52
|
function NexusLayoutActions(props) {
|
|
53
53
|
const { children } = props;
|
|
54
|
-
return jsxRuntime.
|
|
54
|
+
return jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
55
55
|
wrap: false,
|
|
56
56
|
gap: "0.5",
|
|
57
57
|
align: "end",
|
|
@@ -67,19 +67,19 @@ function NexusLayoutMenuAction(props) {
|
|
|
67
67
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
68
68
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
69
69
|
const className = utilities_css.classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
70
|
-
return jsxRuntime.
|
|
70
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
71
71
|
isOpen,
|
|
72
72
|
onOpenChange: handleOpenChange,
|
|
73
|
-
children: [jsxRuntime.
|
|
74
|
-
children: jsxRuntime.
|
|
73
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
74
|
+
children: jsxRuntime.jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
75
75
|
className
|
|
76
76
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
77
|
-
children: [jsxRuntime.
|
|
77
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
78
78
|
visuallyHidden: true,
|
|
79
79
|
children: accessibilityLabel
|
|
80
|
-
}), jsxRuntime.
|
|
80
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
81
81
|
symbol: iconSymbol
|
|
82
|
-
}), renderBadge && jsxRuntime.
|
|
82
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
83
83
|
className: styles$4.badgeContainer,
|
|
84
84
|
children: renderBadge()
|
|
85
85
|
})]
|
|
@@ -94,17 +94,17 @@ function NexusLayoutLinkAction(props) {
|
|
|
94
94
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
95
95
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
96
96
|
const className = utilities_css.classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
97
|
-
return jsxRuntime.
|
|
97
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
98
98
|
ref,
|
|
99
99
|
className
|
|
100
100
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
101
101
|
"aria-current": isSelected ? "true" : void 0,
|
|
102
|
-
children: [jsxRuntime.
|
|
102
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
103
103
|
visuallyHidden: true,
|
|
104
104
|
children: accessibilityLabel
|
|
105
|
-
}), jsxRuntime.
|
|
105
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
106
106
|
symbol: iconSymbol
|
|
107
|
-
}), renderBadge && jsxRuntime.
|
|
107
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
108
108
|
className: styles$4.badgeContainer,
|
|
109
109
|
children: renderBadge()
|
|
110
110
|
})]
|
|
@@ -112,14 +112,14 @@ function NexusLayoutLinkAction(props) {
|
|
|
112
112
|
}
|
|
113
113
|
function NexusLayoutActionBadge(props) {
|
|
114
114
|
const { children } = props;
|
|
115
|
-
return jsxRuntime.
|
|
115
|
+
return jsxRuntime.jsx("div", {
|
|
116
116
|
className: styles$4.badge,
|
|
117
117
|
children
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
const PressableButton = React.forwardRef((props, ref) => {
|
|
121
121
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
122
|
-
return jsxRuntime.
|
|
122
|
+
return jsxRuntime.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
123
123
|
ref,
|
|
124
124
|
className: utilities_css.classNames(pressProps.className)
|
|
125
125
|
}));
|
|
@@ -135,14 +135,14 @@ const styles$3 = {
|
|
|
135
135
|
};
|
|
136
136
|
function NexusLayoutMultipageContainer(props) {
|
|
137
137
|
const { children } = props;
|
|
138
|
-
return jsxRuntime.
|
|
138
|
+
return jsxRuntime.jsx("div", {
|
|
139
139
|
className: styles$3.container,
|
|
140
140
|
children
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
function NexusLayoutMultipageSidebar(props) {
|
|
144
144
|
const { children } = props;
|
|
145
|
-
return jsxRuntime.
|
|
145
|
+
return jsxRuntime.jsx("div", {
|
|
146
146
|
role: "region",
|
|
147
147
|
className: styles$3.sidebar,
|
|
148
148
|
children
|
|
@@ -150,9 +150,9 @@ function NexusLayoutMultipageSidebar(props) {
|
|
|
150
150
|
}
|
|
151
151
|
function NexusLayoutMultipageContent(props) {
|
|
152
152
|
const { children } = props;
|
|
153
|
-
return jsxRuntime.
|
|
153
|
+
return jsxRuntime.jsx("div", {
|
|
154
154
|
className: styles$3.content,
|
|
155
|
-
children: jsxRuntime.
|
|
155
|
+
children: jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
156
156
|
gap: "2",
|
|
157
157
|
children
|
|
158
158
|
})
|
|
@@ -160,7 +160,7 @@ function NexusLayoutMultipageContent(props) {
|
|
|
160
160
|
}
|
|
161
161
|
function NexusLayoutMultipageHeader(props) {
|
|
162
162
|
const { children } = props;
|
|
163
|
-
return jsxRuntime.
|
|
163
|
+
return jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
164
164
|
as: "header",
|
|
165
165
|
blockAlign: "center",
|
|
166
166
|
align: "space-between",
|
|
@@ -169,7 +169,7 @@ function NexusLayoutMultipageHeader(props) {
|
|
|
169
169
|
}
|
|
170
170
|
function NexusLayoutMultipageTitle(props) {
|
|
171
171
|
const { children } = props;
|
|
172
|
-
return jsxRuntime.
|
|
172
|
+
return jsxRuntime.jsx(Text.Text, {
|
|
173
173
|
as: "h3",
|
|
174
174
|
variant: "heading5",
|
|
175
175
|
children
|
|
@@ -201,13 +201,13 @@ function NexusLayoutMultipageSidebarNav(props) {
|
|
|
201
201
|
selectedHref
|
|
202
202
|
};
|
|
203
203
|
}, [selectedHref]);
|
|
204
|
-
return jsxRuntime.
|
|
204
|
+
return jsxRuntime.jsx(SidebarNavContext.Provider, {
|
|
205
205
|
value: context,
|
|
206
|
-
children: jsxRuntime.
|
|
206
|
+
children: jsxRuntime.jsxs(VerticalStack.VerticalStack, {
|
|
207
207
|
as: "nav",
|
|
208
208
|
gap: "2",
|
|
209
209
|
"aria-labelledby": titleId,
|
|
210
|
-
children: [jsxRuntime.
|
|
210
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
211
211
|
as: "h2",
|
|
212
212
|
variant: "heading4",
|
|
213
213
|
id: titleId,
|
|
@@ -218,10 +218,10 @@ function NexusLayoutMultipageSidebarNav(props) {
|
|
|
218
218
|
}
|
|
219
219
|
function NexusLayoutMultipageSidebarNavSection(props) {
|
|
220
220
|
const { title, children } = props;
|
|
221
|
-
return jsxRuntime.
|
|
221
|
+
return jsxRuntime.jsxs(VerticalStack.VerticalStack, {
|
|
222
222
|
gap: "2",
|
|
223
223
|
inlineAlign: "start",
|
|
224
|
-
children: [jsxRuntime.
|
|
224
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
225
225
|
variant: "overline",
|
|
226
226
|
children: title
|
|
227
227
|
}), children]
|
|
@@ -236,14 +236,14 @@ function NexusLayoutMultipageSidebarNavLink(props) {
|
|
|
236
236
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
237
237
|
const isSelected = href === selectedHref;
|
|
238
238
|
const className = utilities_css.classNames(styles$2.link, isFocusVisible && styles$2.focused, isHovered && styles$2.hovered, isSelected && styles$2.selected);
|
|
239
|
-
return jsxRuntime.
|
|
239
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
240
240
|
ref,
|
|
241
241
|
className
|
|
242
242
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
243
243
|
"aria-current": isSelected ? "page" : void 0,
|
|
244
|
-
children: [jsxRuntime.
|
|
244
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
245
245
|
symbol: iconSymbol
|
|
246
|
-
}), jsxRuntime.
|
|
246
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
247
247
|
variant: "body2",
|
|
248
248
|
weight: isSelected ? "semibold" : void 0,
|
|
249
249
|
children
|
|
@@ -275,9 +275,9 @@ function NexusLayoutNav(props) {
|
|
|
275
275
|
selectedHref
|
|
276
276
|
};
|
|
277
277
|
}, [selectedHref]);
|
|
278
|
-
return jsxRuntime.
|
|
278
|
+
return jsxRuntime.jsx(NexusLayoutNavContext.Provider, {
|
|
279
279
|
value: context,
|
|
280
|
-
children: jsxRuntime.
|
|
280
|
+
children: jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
281
281
|
as: "nav",
|
|
282
282
|
"aria-label": ariaLabel,
|
|
283
283
|
children
|
|
@@ -293,14 +293,14 @@ function NexusLayoutNavLink(props) {
|
|
|
293
293
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
294
294
|
const isSelected = href === selectedHref;
|
|
295
295
|
const className = utilities_css.classNames(styles$1.link, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
296
|
-
return jsxRuntime.
|
|
296
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
297
297
|
ref,
|
|
298
298
|
className
|
|
299
299
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
300
300
|
"aria-current": isSelected ? "page" : void 0,
|
|
301
|
-
children: [jsxRuntime.
|
|
301
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
302
302
|
symbol: iconSymbol
|
|
303
|
-
}), jsxRuntime.
|
|
303
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
304
304
|
variant: "subtitle2",
|
|
305
305
|
weight: "semibold",
|
|
306
306
|
children
|
|
@@ -322,28 +322,28 @@ const styles = {
|
|
|
322
322
|
function NexusLayout(props) {
|
|
323
323
|
const { backgroundDecoration = "01", children } = props;
|
|
324
324
|
const className = utilities_css.classNames(styles.NexusLayout, styles[utilities_css.variationName("backgroundDecoration", backgroundDecoration)]);
|
|
325
|
-
return jsxRuntime.
|
|
325
|
+
return jsxRuntime.jsx("div", {
|
|
326
326
|
className,
|
|
327
327
|
children
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
function NexusLayoutHeader(props) {
|
|
331
331
|
const { children } = props;
|
|
332
|
-
return jsxRuntime.
|
|
332
|
+
return jsxRuntime.jsx("header", {
|
|
333
333
|
className: styles.header,
|
|
334
334
|
children
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
337
|
function NexusLayoutLogo(props) {
|
|
338
|
-
const { children = jsxRuntime.
|
|
339
|
-
return jsxRuntime.
|
|
338
|
+
const { children = jsxRuntime.jsx(EasyPostLogo.EasyPostLogo, {}) } = props;
|
|
339
|
+
return jsxRuntime.jsx("div", {
|
|
340
340
|
className: styles.logo,
|
|
341
341
|
children
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
function NexusLayoutContent(props) {
|
|
345
345
|
const { children } = props;
|
|
346
|
-
return jsxRuntime.
|
|
346
|
+
return jsxRuntime.jsx("main", {
|
|
347
347
|
className: styles.content,
|
|
348
348
|
children
|
|
349
349
|
});
|