@easypost/easy-ui 1.0.0-alpha.112 → 1.0.0-alpha.114
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 +20 -16
- package/AlertBadge/index.mjs +20 -16
- package/Badge/index.js +29 -19
- package/Badge/index.mjs +29 -19
- package/Banner/index.js +19 -12
- package/Banner/index.mjs +19 -12
- 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 +33 -24
- package/CheckableCard/index.mjs +33 -24
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/context.d.ts +2 -1
- package/CodeBlock/context.d.ts.map +1 -1
- package/CodeBlock/index.js +81 -59
- package/CodeBlock/index.mjs +81 -59
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +71 -54
- package/ColorPicker/index.mjs +71 -54
- package/CustomerPortalLayout/index.js +101 -72
- package/CustomerPortalLayout/index.mjs +101 -72
- package/DataGrid/index.js +229 -173
- package/DataGrid/index.mjs +229 -173
- package/DatePicker/index.js +10 -8
- package/DatePicker/index.mjs +10 -8
- package/DateRangePicker/index.js +10 -8
- package/DateRangePicker/index.mjs +10 -8
- package/Drawer/context.d.ts +2 -2
- package/Drawer/context.d.ts.map +1 -1
- package/Drawer/index.js +99 -78
- package/Drawer/index.mjs +99 -78
- package/Drawer/useIntersectionDetection.d.ts +1 -1
- package/Drawer/useIntersectionDetection.d.ts.map +1 -1
- package/DropdownButton/index.js +15 -7
- package/DropdownButton/index.mjs +16 -8
- package/EmptyStateCard/index.js +53 -33
- package/EmptyStateCard/index.mjs +53 -33
- package/FocusedProductLayout/index.js +104 -76
- package/FocusedProductLayout/index.mjs +104 -76
- package/ForgeLayout/index.js +283 -217
- package/ForgeLayout/index.mjs +284 -218
- package/FormLayout/index.js +38 -24
- package/FormLayout/index.mjs +38 -24
- 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 +16 -9
- package/IconButton/index.mjs +17 -10
- 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/MenuTrigger.d.ts +1 -1
- package/Menu/MenuTrigger.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/context.d.ts +3 -3
- package/Modal/context.d.ts.map +1 -1
- package/Modal/index.js +124 -93
- package/Modal/index.mjs +124 -93
- package/Modal/useIntersectionDetection.d.ts +1 -1
- package/Modal/useIntersectionDetection.d.ts.map +1 -1
- package/MultiSelect/MultiSelectDropdown.d.ts +2 -2
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -1
- package/MultiSelect/index.js +106 -83
- package/MultiSelect/index.mjs +107 -84
- package/MultiSelect/utilities.d.ts +1 -1
- package/MultiSelect/utilities.d.ts.map +1 -1
- package/MultipageSection/index.js +94 -71
- package/MultipageSection/index.mjs +94 -71
- package/NexusLayout/index.js +136 -102
- package/NexusLayout/index.mjs +136 -102
- package/Notification/NotificationTransition.d.ts +1 -1
- package/Notification/NotificationTransition.d.ts.map +1 -1
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +62 -50
- package/Pagination/index.mjs +63 -51
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +532 -531
- package/PlanCard/illustrations/Building01/index.mjs +532 -531
- package/PlanCard/illustrations/Building02/index.js +206 -205
- package/PlanCard/illustrations/Building02/index.mjs +206 -205
- package/PlanCard/illustrations/Building03/index.js +773 -772
- package/PlanCard/illustrations/Building03/index.mjs +773 -772
- package/PlanCard/illustrations/Building04/index.js +1528 -1527
- package/PlanCard/illustrations/Building04/index.mjs +1528 -1527
- package/PlanCard/index.js +59 -36
- package/PlanCard/index.mjs +60 -37
- package/ProductLayout/index.js +132 -91
- package/ProductLayout/index.mjs +132 -91
- package/Provider/index.js +18 -14
- package/Provider/index.mjs +18 -14
- package/RadioButtonGroup/index.js +14 -10
- package/RadioButtonGroup/index.mjs +14 -10
- 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/CondensedSearchNav.d.ts.map +1 -1
- package/SearchNav/index.js +197 -141
- package/SearchNav/index.mjs +198 -142
- package/SearchNav/utilities.d.ts +3 -3
- package/SearchNav/utilities.d.ts.map +1 -1
- package/SectionCard/index.js +43 -25
- package/SectionCard/index.mjs +43 -25
- package/Select/index.js +74 -62
- package/Select/index.mjs +74 -62
- 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 +22 -16
- package/SplitToggleCard/index.mjs +22 -16
- 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 +22 -16
- package/TabPanels/index.mjs +24 -18
- 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 +20 -15
- package/ToggleCard/index.mjs +21 -16
- 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 +115 -88
- package/VerticalNav/index.mjs +115 -88
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-5AuHgwU3.js → Button-CQdi4TMV.js} +15 -12
- package/__chunks__/{Button-BsGH6vGC.mjs → Button-JL1YQxJ5.mjs} +16 -13
- package/__chunks__/{Calendar-D09mdpmC.js → Calendar-C9zdRov0.js} +3 -2
- package/__chunks__/{Calendar-BGZysoV0.mjs → Calendar-DLzAtdfg.mjs} +3 -2
- package/__chunks__/{CalendarBase-Bn9o8BdD.mjs → CalendarBase-DJ38_qK6.mjs} +86 -64
- package/__chunks__/{CalendarBase-DHxad3N9.js → CalendarBase-M-f289w8.js} +86 -64
- package/__chunks__/{Card-CJug4GMX.mjs → Card-BgjWYPVY.mjs} +21 -12
- package/__chunks__/{Card-BM2DKiVA.js → Card-LPIW5drP.js} +21 -12
- package/__chunks__/{Checkbox-D2-8vvdr.js → Checkbox-B_-6lfKk.js} +36 -28
- package/__chunks__/{Checkbox-BWfY9XqH.mjs → Checkbox-DcaO0fC3.mjs} +36 -28
- package/__chunks__/{CodeSnippet-CIijbclb.js → CodeSnippet-25l4r2Gh.js} +16 -12
- package/__chunks__/{CodeSnippet-QpCpkoXv.mjs → CodeSnippet-B3nsMpvq.mjs} +16 -12
- package/__chunks__/{DatePickerBase-CFB0JDQA.mjs → DatePickerBase-BQc8LKWg.mjs} +80 -62
- package/__chunks__/{DatePickerBase-DSPIErms.js → DatePickerBase-BYYfRTEY.js} +80 -62
- package/__chunks__/EasyPostLogo-C9-Q0lSn.js +22 -0
- package/__chunks__/EasyPostLogo-DgIgAGa3.mjs +23 -0
- package/__chunks__/{HelpMenu-CO6kYktc.mjs → HelpMenu-BZRV42ab.mjs} +30 -21
- package/__chunks__/{HelpMenu-nihaGEVy.js → HelpMenu-C2t8KQuU.js} +30 -20
- package/__chunks__/{HorizontalGrid-CAwv7zKY.js → HorizontalGrid-CAoDcmPW.js} +5 -3
- package/__chunks__/{HorizontalGrid-Dz8EFgmu.mjs → HorizontalGrid-DbLeJBt8.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CxE8tPx_.mjs → HorizontalStack-CJavrBHm.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CXpjASZi.js → HorizontalStack-CWdKKY8L.js} +5 -3
- package/__chunks__/{Icon-0SN9dbwU.mjs → Icon-BIpaQJ_I.mjs} +11 -10
- package/__chunks__/{Icon-W8F9w-jS.js → Icon-BRlbo3RF.js} +11 -10
- package/__chunks__/{InputCaption-C3Hf9Hvt.js → InputCaption-CccF4ynE.js} +19 -15
- package/__chunks__/{InputCaption-BJO9_Tby.mjs → InputCaption-DoyGkWQe.mjs} +19 -15
- package/__chunks__/{InputField-dq5XIhr1.mjs → InputField-CAY9O90X.mjs} +77 -66
- package/__chunks__/{InputField-CDHznUZd.js → InputField-DGb4ZDoR.js} +77 -66
- package/__chunks__/{InputIcon-Bpg4lyQx.mjs → InputIcon-CEATdJ1j.mjs} +9 -8
- package/__chunks__/{InputIcon-DdcvN3A4.js → InputIcon-DDKBJ_Tk.js} +9 -8
- package/__chunks__/{KebabButton-Bf1OdC5_.mjs → KebabButton-D-5Mjaj0.mjs} +15 -8
- package/__chunks__/{KebabButton-DdzHU7is.js → KebabButton-TbapERgy.js} +15 -8
- package/__chunks__/{Menu-DHwqwFlg.mjs → Menu-Ci1FGh8B.mjs} +88 -70
- package/__chunks__/{Menu-Kfc6nxFP.js → Menu-MGDv1tob.js} +88 -70
- package/__chunks__/{Notification-vF_YGVIP.js → Notification-DDQHWloB.js} +62 -48
- package/__chunks__/{Notification-BoT3Hm0B.mjs → Notification-DnNx0rb6.mjs} +64 -50
- package/__chunks__/{PillGroup-CAHVIlU0.js → PillGroup-BK8VCf3B.js} +41 -27
- package/__chunks__/{PillGroup-DjLJ4wVb.mjs → PillGroup-DN72MPhg.mjs} +41 -27
- package/__chunks__/{RadioGroup-DUu5GEpn.mjs → RadioGroup-BfKaJnSo.mjs} +58 -40
- package/__chunks__/{RadioGroup-CGQKZwDU.js → RadioGroup-BiCqtR0F.js} +58 -40
- package/__chunks__/{RangeCalendar-LPcJB19o.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -2
- package/__chunks__/{RangeCalendar-Ckqj2J9L.js → RangeCalendar-Dz6LyRYS.js} +3 -2
- package/__chunks__/{SelectOverlay-CmbC4zrD.js → SelectOverlay-Bva0SG8D.js} +62 -51
- package/__chunks__/{SelectOverlay-DptO7xtn.mjs → SelectOverlay-q23ZLLi4.mjs} +62 -51
- package/__chunks__/{SelectorErrorTooltip-_D8DSBKs.js → SelectorErrorTooltip-BNLrFRLN.js} +19 -11
- package/__chunks__/{SelectorErrorTooltip-Dw1Fvd_q.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +19 -12
- package/__chunks__/{Spinner-DOmPV59I.mjs → Spinner-COsekFr1.mjs} +17 -13
- package/__chunks__/{Spinner-D0ifPtVV.js → Spinner-vRnrcEz0.js} +16 -12
- package/__chunks__/{Stepper-BEyDIPNJ.mjs → Stepper-DlI-16t-.mjs} +48 -37
- package/__chunks__/{Stepper-CX0Mu37p.js → Stepper-lhcjfVFY.js} +47 -36
- package/__chunks__/{TabNav-vCt_zTvE.mjs → TabNav-BNhQF0b0.mjs} +10 -8
- package/__chunks__/{TabNav-B8aEzVyr.js → TabNav-bVgyfEV7.js} +10 -8
- package/__chunks__/{Tabs-DJ4aKu11.mjs → Tabs-BaROnbKg.mjs} +47 -38
- package/__chunks__/{Tabs-BL8odO0p.js → Tabs-DSngzN9A.js} +46 -37
- package/__chunks__/{Text-YOL3isF4.mjs → Text-D6oT5WJQ.mjs} +5 -4
- package/__chunks__/{Text-CSESKR_s.js → Text-DkzMEqky.js} +5 -4
- package/__chunks__/{TextField-D2QhDAdD.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-94cCP805.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-DqbmY4wy.js → Theme-C2nSZUpG.js} +27 -17
- package/__chunks__/{Theme-BAFk7BvV.mjs → Theme-M__gFMM3.mjs} +28 -18
- package/__chunks__/{Toggle-D2ucsFxO.js → Toggle-BmJjrdVn.js} +43 -37
- package/__chunks__/{Toggle-CxjLdmzW.mjs → Toggle-DlDQ7rr2.mjs} +43 -37
- package/__chunks__/{Tooltip-DqpxBjpa.js → Tooltip-BSMvNula.js} +25 -17
- package/__chunks__/{Tooltip-DAyUY3na.mjs → Tooltip-BXRi0h4E.mjs} +25 -17
- package/__chunks__/{UnstyledButton-BFpQ2Irc.js → UnstyledButton-DW8CjaXN.js} +5 -3
- package/__chunks__/{UnstyledButton-DpQ5Ic9D.mjs → UnstyledButton-DxJLvL-G.mjs} +6 -4
- package/__chunks__/{VerticalStack-Dzpv3O67.js → VerticalStack-BHkiocKU.js} +5 -3
- package/__chunks__/{VerticalStack-C2yDQVHD.mjs → VerticalStack-DoMqBfYD.mjs} +6 -4
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/{useEdgeInterceptors-D_DARZZd.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +17 -14
- package/__chunks__/{useEdgeInterceptors-Ihk8NfjJ.js → useEdgeInterceptors-Rb2Hf0v8.js} +16 -13
- package/package.json +4 -6
- package/types.d.ts +1 -1
- package/types.d.ts.map +1 -1
- package/utilities/Noop.d.ts +1 -1
- package/utilities/Noop.d.ts.map +1 -1
- package/utilities/react.d.ts +1 -1
- package/utilities/react.d.ts.map +1 -1
- package/utilities/react.js +1 -1
- package/utilities/react.mjs +1 -1
- package/utilities/test.d.ts +1 -0
- package/utilities/test.d.ts.map +1 -1
- package/__chunks__/EasyPostLogo-B3Um5vvS.mjs +0 -22
- package/__chunks__/EasyPostLogo-DQt5KlFX.js +0 -21
- package/__chunks__/index-CUcRN4NO.js +0 -311
- package/__chunks__/index-Izk6uvQC.mjs +0 -312
package/NexusLayout/index.js
CHANGED
|
@@ -19,19 +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
|
|
22
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
const utilities_css = require("../utilities/css.js");
|
|
24
|
-
const EasyPostLogo = require("../__chunks__/EasyPostLogo-
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
24
|
+
const EasyPostLogo = require("../__chunks__/EasyPostLogo-C9-Q0lSn.js");
|
|
25
|
+
const React = require("react");
|
|
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");
|
|
29
30
|
const useFocusRing = require("../__chunks__/useFocusRing-DbC9E5wC.js");
|
|
30
31
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
31
32
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
32
33
|
const usePress = require("../__chunks__/usePress-B5G5CgVn.js");
|
|
33
34
|
const useLink = require("../__chunks__/useLink-CChqhQkC.js");
|
|
34
|
-
const VerticalStack = require("../__chunks__/VerticalStack-
|
|
35
|
+
const VerticalStack = require("../__chunks__/VerticalStack-BHkiocKU.js");
|
|
35
36
|
const button = "_button_14248_4";
|
|
36
37
|
const focused$2 = "_focused_14248_25";
|
|
37
38
|
const hovered$2 = "_hovered_14248_37";
|
|
@@ -50,11 +51,12 @@ const styles$4 = {
|
|
|
50
51
|
};
|
|
51
52
|
function NexusLayoutActions(props) {
|
|
52
53
|
const { children } = props;
|
|
53
|
-
return
|
|
54
|
+
return jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
54
55
|
wrap: false,
|
|
55
56
|
gap: "0.5",
|
|
56
|
-
align: "end"
|
|
57
|
-
|
|
57
|
+
align: "end",
|
|
58
|
+
children
|
|
59
|
+
});
|
|
58
60
|
}
|
|
59
61
|
function NexusLayoutMenuAction(props) {
|
|
60
62
|
const { accessibilityLabel = "Actions", iconSymbol, children, renderBadge } = props;
|
|
@@ -65,18 +67,25 @@ function NexusLayoutMenuAction(props) {
|
|
|
65
67
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
66
68
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
67
69
|
const className = utilities_css.classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
68
|
-
return
|
|
70
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
69
71
|
isOpen,
|
|
70
|
-
onOpenChange: handleOpenChange
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
onOpenChange: handleOpenChange,
|
|
73
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
74
|
+
children: jsxRuntime.jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
75
|
+
className
|
|
76
|
+
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
77
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
78
|
+
visuallyHidden: true,
|
|
79
|
+
children: accessibilityLabel
|
|
80
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
81
|
+
symbol: iconSymbol
|
|
82
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
83
|
+
className: styles$4.badgeContainer,
|
|
84
|
+
children: renderBadge()
|
|
85
|
+
})]
|
|
86
|
+
}))
|
|
87
|
+
}), children]
|
|
88
|
+
});
|
|
80
89
|
}
|
|
81
90
|
function NexusLayoutLinkAction(props) {
|
|
82
91
|
const { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = props;
|
|
@@ -85,28 +94,32 @@ function NexusLayoutLinkAction(props) {
|
|
|
85
94
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
86
95
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
87
96
|
const className = utilities_css.classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
88
|
-
return
|
|
97
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
89
98
|
ref,
|
|
90
99
|
className
|
|
91
100
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
92
|
-
"aria-current": isSelected ? "true" : void 0
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
102
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
103
|
+
visuallyHidden: true,
|
|
104
|
+
children: accessibilityLabel
|
|
105
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
106
|
+
symbol: iconSymbol
|
|
107
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
108
|
+
className: styles$4.badgeContainer,
|
|
109
|
+
children: renderBadge()
|
|
110
|
+
})]
|
|
111
|
+
}));
|
|
100
112
|
}
|
|
101
113
|
function NexusLayoutActionBadge(props) {
|
|
102
114
|
const { children } = props;
|
|
103
|
-
return
|
|
104
|
-
className: styles$4.badge
|
|
105
|
-
|
|
115
|
+
return jsxRuntime.jsx("div", {
|
|
116
|
+
className: styles$4.badge,
|
|
117
|
+
children
|
|
118
|
+
});
|
|
106
119
|
}
|
|
107
120
|
const PressableButton = React.forwardRef((props, ref) => {
|
|
108
121
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
109
|
-
return
|
|
122
|
+
return jsxRuntime.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
110
123
|
ref,
|
|
111
124
|
className: utilities_css.classNames(pressProps.className)
|
|
112
125
|
}));
|
|
@@ -122,39 +135,45 @@ const styles$3 = {
|
|
|
122
135
|
};
|
|
123
136
|
function NexusLayoutMultipageContainer(props) {
|
|
124
137
|
const { children } = props;
|
|
125
|
-
return
|
|
126
|
-
className: styles$3.container
|
|
127
|
-
|
|
138
|
+
return jsxRuntime.jsx("div", {
|
|
139
|
+
className: styles$3.container,
|
|
140
|
+
children
|
|
141
|
+
});
|
|
128
142
|
}
|
|
129
143
|
function NexusLayoutMultipageSidebar(props) {
|
|
130
144
|
const { children } = props;
|
|
131
|
-
return
|
|
145
|
+
return jsxRuntime.jsx("div", {
|
|
132
146
|
role: "region",
|
|
133
|
-
className: styles$3.sidebar
|
|
134
|
-
|
|
147
|
+
className: styles$3.sidebar,
|
|
148
|
+
children
|
|
149
|
+
});
|
|
135
150
|
}
|
|
136
151
|
function NexusLayoutMultipageContent(props) {
|
|
137
152
|
const { children } = props;
|
|
138
|
-
return
|
|
139
|
-
className: styles$3.content
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
153
|
+
return jsxRuntime.jsx("div", {
|
|
154
|
+
className: styles$3.content,
|
|
155
|
+
children: jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
156
|
+
gap: "2",
|
|
157
|
+
children
|
|
158
|
+
})
|
|
159
|
+
});
|
|
143
160
|
}
|
|
144
161
|
function NexusLayoutMultipageHeader(props) {
|
|
145
162
|
const { children } = props;
|
|
146
|
-
return
|
|
163
|
+
return jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
147
164
|
as: "header",
|
|
148
165
|
blockAlign: "center",
|
|
149
|
-
align: "space-between"
|
|
150
|
-
|
|
166
|
+
align: "space-between",
|
|
167
|
+
children
|
|
168
|
+
});
|
|
151
169
|
}
|
|
152
170
|
function NexusLayoutMultipageTitle(props) {
|
|
153
171
|
const { children } = props;
|
|
154
|
-
return
|
|
172
|
+
return jsxRuntime.jsx(Text.Text, {
|
|
155
173
|
as: "h3",
|
|
156
|
-
variant: "heading5"
|
|
157
|
-
|
|
174
|
+
variant: "heading5",
|
|
175
|
+
children
|
|
176
|
+
});
|
|
158
177
|
}
|
|
159
178
|
const link$1 = "_link_os35m_4";
|
|
160
179
|
const focused$1 = "_focused_os35m_13";
|
|
@@ -182,26 +201,31 @@ function NexusLayoutMultipageSidebarNav(props) {
|
|
|
182
201
|
selectedHref
|
|
183
202
|
};
|
|
184
203
|
}, [selectedHref]);
|
|
185
|
-
return
|
|
186
|
-
value: context
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
204
|
+
return jsxRuntime.jsx(SidebarNavContext.Provider, {
|
|
205
|
+
value: context,
|
|
206
|
+
children: jsxRuntime.jsxs(VerticalStack.VerticalStack, {
|
|
207
|
+
as: "nav",
|
|
208
|
+
gap: "2",
|
|
209
|
+
"aria-labelledby": titleId,
|
|
210
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
211
|
+
as: "h2",
|
|
212
|
+
variant: "heading4",
|
|
213
|
+
id: titleId,
|
|
214
|
+
children: title
|
|
215
|
+
}), children]
|
|
216
|
+
})
|
|
217
|
+
});
|
|
196
218
|
}
|
|
197
219
|
function NexusLayoutMultipageSidebarNavSection(props) {
|
|
198
220
|
const { title, children } = props;
|
|
199
|
-
return
|
|
221
|
+
return jsxRuntime.jsxs(VerticalStack.VerticalStack, {
|
|
200
222
|
gap: "2",
|
|
201
|
-
inlineAlign: "start"
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
223
|
+
inlineAlign: "start",
|
|
224
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
225
|
+
variant: "overline",
|
|
226
|
+
children: title
|
|
227
|
+
}), children]
|
|
228
|
+
});
|
|
205
229
|
}
|
|
206
230
|
function NexusLayoutMultipageSidebarNavLink(props) {
|
|
207
231
|
const { href, iconSymbol, children } = props;
|
|
@@ -212,17 +236,19 @@ function NexusLayoutMultipageSidebarNavLink(props) {
|
|
|
212
236
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
213
237
|
const isSelected = href === selectedHref;
|
|
214
238
|
const className = utilities_css.classNames(styles$2.link, isFocusVisible && styles$2.focused, isHovered && styles$2.hovered, isSelected && styles$2.selected);
|
|
215
|
-
return
|
|
239
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
216
240
|
ref,
|
|
217
241
|
className
|
|
218
242
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
219
|
-
"aria-current": isSelected ? "page" : void 0
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
243
|
+
"aria-current": isSelected ? "page" : void 0,
|
|
244
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
245
|
+
symbol: iconSymbol
|
|
246
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
247
|
+
variant: "body2",
|
|
248
|
+
weight: isSelected ? "semibold" : void 0,
|
|
249
|
+
children
|
|
250
|
+
})]
|
|
251
|
+
}));
|
|
226
252
|
}
|
|
227
253
|
const link = "_link_q3unw_4";
|
|
228
254
|
const focused = "_focused_q3unw_23";
|
|
@@ -249,12 +275,14 @@ function NexusLayoutNav(props) {
|
|
|
249
275
|
selectedHref
|
|
250
276
|
};
|
|
251
277
|
}, [selectedHref]);
|
|
252
|
-
return
|
|
253
|
-
value: context
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
278
|
+
return jsxRuntime.jsx(NexusLayoutNavContext.Provider, {
|
|
279
|
+
value: context,
|
|
280
|
+
children: jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
281
|
+
as: "nav",
|
|
282
|
+
"aria-label": ariaLabel,
|
|
283
|
+
children
|
|
284
|
+
})
|
|
285
|
+
});
|
|
258
286
|
}
|
|
259
287
|
function NexusLayoutNavLink(props) {
|
|
260
288
|
const { href, iconSymbol, children } = props;
|
|
@@ -265,17 +293,19 @@ function NexusLayoutNavLink(props) {
|
|
|
265
293
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
266
294
|
const isSelected = href === selectedHref;
|
|
267
295
|
const className = utilities_css.classNames(styles$1.link, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
268
|
-
return
|
|
296
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
269
297
|
ref,
|
|
270
298
|
className
|
|
271
299
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
272
|
-
"aria-current": isSelected ? "page" : void 0
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
300
|
+
"aria-current": isSelected ? "page" : void 0,
|
|
301
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
302
|
+
symbol: iconSymbol
|
|
303
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
304
|
+
variant: "subtitle2",
|
|
305
|
+
weight: "semibold",
|
|
306
|
+
children
|
|
307
|
+
})]
|
|
308
|
+
}));
|
|
279
309
|
}
|
|
280
310
|
const NexusLayout$1 = "_NexusLayout_1gn4l_4";
|
|
281
311
|
const backgroundDecoration01 = "_backgroundDecoration01_1gn4l_13";
|
|
@@ -292,27 +322,31 @@ const styles = {
|
|
|
292
322
|
function NexusLayout(props) {
|
|
293
323
|
const { backgroundDecoration = "01", children } = props;
|
|
294
324
|
const className = utilities_css.classNames(styles.NexusLayout, styles[utilities_css.variationName("backgroundDecoration", backgroundDecoration)]);
|
|
295
|
-
return
|
|
296
|
-
className
|
|
297
|
-
|
|
325
|
+
return jsxRuntime.jsx("div", {
|
|
326
|
+
className,
|
|
327
|
+
children
|
|
328
|
+
});
|
|
298
329
|
}
|
|
299
330
|
function NexusLayoutHeader(props) {
|
|
300
331
|
const { children } = props;
|
|
301
|
-
return
|
|
302
|
-
className: styles.header
|
|
303
|
-
|
|
332
|
+
return jsxRuntime.jsx("header", {
|
|
333
|
+
className: styles.header,
|
|
334
|
+
children
|
|
335
|
+
});
|
|
304
336
|
}
|
|
305
337
|
function NexusLayoutLogo(props) {
|
|
306
|
-
const { children =
|
|
307
|
-
return
|
|
308
|
-
className: styles.logo
|
|
309
|
-
|
|
338
|
+
const { children = jsxRuntime.jsx(EasyPostLogo.EasyPostLogo, {}) } = props;
|
|
339
|
+
return jsxRuntime.jsx("div", {
|
|
340
|
+
className: styles.logo,
|
|
341
|
+
children
|
|
342
|
+
});
|
|
310
343
|
}
|
|
311
344
|
function NexusLayoutContent(props) {
|
|
312
345
|
const { children } = props;
|
|
313
|
-
return
|
|
314
|
-
className: styles.content
|
|
315
|
-
|
|
346
|
+
return jsxRuntime.jsx("main", {
|
|
347
|
+
className: styles.content,
|
|
348
|
+
children
|
|
349
|
+
});
|
|
316
350
|
}
|
|
317
351
|
NexusLayout.Header = NexusLayoutHeader;
|
|
318
352
|
NexusLayout.Logo = NexusLayoutLogo;
|