@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
|
@@ -29,14 +29,15 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
32
33
|
import * as React from "react";
|
|
33
34
|
import React__default, { useState, useCallback, forwardRef, useRef, useContext, useMemo } from "react";
|
|
34
|
-
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-
|
|
35
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
36
|
-
import { T as Text } from "../__chunks__/Text-
|
|
37
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
35
|
+
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-DgIgAGa3.mjs";
|
|
36
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
37
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
38
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
38
39
|
import { a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../__chunks__/Button-B4DxcTvZ.mjs";
|
|
39
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
40
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
40
41
|
import { classNames } from "../utilities/css.mjs";
|
|
41
42
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
42
43
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
@@ -98,11 +99,12 @@ const styles$1 = {
|
|
|
98
99
|
};
|
|
99
100
|
function CustomerPortalLayoutActions(props) {
|
|
100
101
|
const { children } = props;
|
|
101
|
-
return
|
|
102
|
+
return jsx(HorizontalStack, {
|
|
102
103
|
wrap: false,
|
|
103
104
|
gap: "1",
|
|
104
|
-
align: "end"
|
|
105
|
-
|
|
105
|
+
align: "end",
|
|
106
|
+
children
|
|
107
|
+
});
|
|
106
108
|
}
|
|
107
109
|
function CustomerPortalLayoutMenuAction(props) {
|
|
108
110
|
const { accessibilityLabel = "Actions", iconSymbol, children, renderBadge } = props;
|
|
@@ -113,18 +115,25 @@ function CustomerPortalLayoutMenuAction(props) {
|
|
|
113
115
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
114
116
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
115
117
|
const className = classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isOpen && styles$1.open);
|
|
116
|
-
return
|
|
118
|
+
return jsxs(Menu, {
|
|
117
119
|
isOpen,
|
|
118
|
-
onOpenChange: handleOpenChange
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
onOpenChange: handleOpenChange,
|
|
121
|
+
children: [jsx(Menu.Trigger, {
|
|
122
|
+
children: jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
123
|
+
className
|
|
124
|
+
}, $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
125
|
+
children: [jsx(Text, {
|
|
126
|
+
visuallyHidden: true,
|
|
127
|
+
children: accessibilityLabel
|
|
128
|
+
}), jsx(Icon, {
|
|
129
|
+
symbol: iconSymbol
|
|
130
|
+
}), renderBadge && jsx("div", {
|
|
131
|
+
className: styles$1.badgeContainer,
|
|
132
|
+
children: renderBadge()
|
|
133
|
+
})]
|
|
134
|
+
}))
|
|
135
|
+
}), children]
|
|
136
|
+
});
|
|
128
137
|
}
|
|
129
138
|
function CustomerPortalLayoutLinkAction(props) {
|
|
130
139
|
const { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = props;
|
|
@@ -133,44 +142,52 @@ function CustomerPortalLayoutLinkAction(props) {
|
|
|
133
142
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
134
143
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
135
144
|
const className = classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
136
|
-
return
|
|
145
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
137
146
|
ref,
|
|
138
147
|
className
|
|
139
148
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
140
|
-
"aria-current": isSelected ? "true" : void 0
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
149
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
150
|
+
children: [jsx(Text, {
|
|
151
|
+
visuallyHidden: true,
|
|
152
|
+
children: accessibilityLabel
|
|
153
|
+
}), jsx(Icon, {
|
|
154
|
+
symbol: iconSymbol
|
|
155
|
+
}), renderBadge && jsx("div", {
|
|
156
|
+
className: styles$1.badgeContainer,
|
|
157
|
+
children: renderBadge()
|
|
158
|
+
})]
|
|
159
|
+
}));
|
|
148
160
|
}
|
|
149
161
|
function CustomerPortalLayoutButtonAction(props) {
|
|
150
162
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
151
163
|
const ref = useRef(null);
|
|
152
164
|
const className = classNames(styles$1.button, isSelected && styles$1.selected);
|
|
153
|
-
return
|
|
165
|
+
return jsxs($d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadProps(__spreadValues({
|
|
154
166
|
ref,
|
|
155
167
|
className,
|
|
156
168
|
"aria-current": isSelected ? "true" : void 0
|
|
157
|
-
}, buttonProps),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
169
|
+
}, buttonProps), {
|
|
170
|
+
children: [jsx(Text, {
|
|
171
|
+
visuallyHidden: true,
|
|
172
|
+
children: accessibilityLabel
|
|
173
|
+
}), jsx(Icon, {
|
|
174
|
+
symbol: iconSymbol
|
|
175
|
+
}), renderBadge && jsx("div", {
|
|
176
|
+
className: styles$1.badgeContainer,
|
|
177
|
+
children: renderBadge()
|
|
178
|
+
})]
|
|
179
|
+
}));
|
|
164
180
|
}
|
|
165
181
|
function CustomerPortalLayoutActionBadge(props) {
|
|
166
182
|
const { children } = props;
|
|
167
|
-
return
|
|
168
|
-
className: styles$1.badge
|
|
169
|
-
|
|
183
|
+
return jsx("div", {
|
|
184
|
+
className: styles$1.badge,
|
|
185
|
+
children
|
|
186
|
+
});
|
|
170
187
|
}
|
|
171
188
|
const PressableButton = forwardRef((props, ref) => {
|
|
172
189
|
const { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
173
|
-
return
|
|
190
|
+
return jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
174
191
|
ref,
|
|
175
192
|
className: classNames(pressProps.className)
|
|
176
193
|
}));
|
|
@@ -206,58 +223,70 @@ function CustomerPortalLayout(props) {
|
|
|
206
223
|
shouldDisplayEasyPostLogo
|
|
207
224
|
};
|
|
208
225
|
}, [mode, shouldDisplayEasyPostLogo]);
|
|
209
|
-
return
|
|
210
|
-
value: context
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
226
|
+
return jsx(CustomerPortalLayoutContext.Provider, {
|
|
227
|
+
value: context,
|
|
228
|
+
children: jsx("div", {
|
|
229
|
+
className: styles.CustomerPortalLayout,
|
|
230
|
+
children
|
|
231
|
+
})
|
|
232
|
+
});
|
|
214
233
|
}
|
|
215
234
|
function TestModeBanner() {
|
|
216
|
-
return
|
|
217
|
-
className: styles.testModeBanner
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
235
|
+
return jsx("div", {
|
|
236
|
+
className: styles.testModeBanner,
|
|
237
|
+
children: jsxs(HorizontalStack, {
|
|
238
|
+
gap: "1",
|
|
239
|
+
blockAlign: "center",
|
|
240
|
+
children: [jsx(Icon, {
|
|
241
|
+
symbol: Experiment,
|
|
242
|
+
color: "primary.700",
|
|
243
|
+
size: "lg"
|
|
244
|
+
}), jsx(Text, {
|
|
245
|
+
variant: "subtitle1",
|
|
246
|
+
color: "warning.900",
|
|
247
|
+
children: "This Environment is in Test Mode"
|
|
248
|
+
})]
|
|
249
|
+
})
|
|
250
|
+
});
|
|
229
251
|
}
|
|
230
252
|
function CustomerPortalLayoutHeader(props) {
|
|
231
253
|
const { children } = props;
|
|
232
254
|
const { mode } = useCustomerPortalLayout();
|
|
233
255
|
const isTestMode = mode === "test";
|
|
234
|
-
return
|
|
235
|
-
className: styles.header
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
256
|
+
return jsxs("header", {
|
|
257
|
+
className: styles.header,
|
|
258
|
+
children: [isTestMode && jsx(TestModeBanner, {}), jsx("div", {
|
|
259
|
+
className: styles.logoAndActions,
|
|
260
|
+
children
|
|
261
|
+
})]
|
|
262
|
+
});
|
|
239
263
|
}
|
|
240
264
|
function CustomerPortalLayoutLogo(props) {
|
|
241
265
|
const { children } = props;
|
|
242
|
-
return
|
|
243
|
-
className: styles.logo
|
|
244
|
-
|
|
266
|
+
return jsx("div", {
|
|
267
|
+
className: styles.logo,
|
|
268
|
+
children
|
|
269
|
+
});
|
|
245
270
|
}
|
|
246
271
|
function CustomerPortalLayoutLogoContainer(props) {
|
|
247
272
|
const { children } = props;
|
|
248
273
|
const { shouldDisplayEasyPostLogo } = useCustomerPortalLayout();
|
|
249
|
-
return
|
|
274
|
+
return jsxs(HorizontalStack, {
|
|
250
275
|
gap: "1",
|
|
251
276
|
blockAlign: "center",
|
|
252
277
|
align: "start",
|
|
253
|
-
wrap: false
|
|
254
|
-
|
|
278
|
+
wrap: false,
|
|
279
|
+
children: [shouldDisplayEasyPostLogo && jsx(CustomerPortalLayoutLogo, {
|
|
280
|
+
children: jsx(EasyPostLogo, {})
|
|
281
|
+
}), children]
|
|
282
|
+
});
|
|
255
283
|
}
|
|
256
284
|
function CustomerPortalLayoutContent(props) {
|
|
257
285
|
const { children } = props;
|
|
258
|
-
return
|
|
259
|
-
className: styles.content
|
|
260
|
-
|
|
286
|
+
return jsx("main", {
|
|
287
|
+
className: styles.content,
|
|
288
|
+
children
|
|
289
|
+
});
|
|
261
290
|
}
|
|
262
291
|
CustomerPortalLayout.Header = CustomerPortalLayoutHeader;
|
|
263
292
|
CustomerPortalLayout.Logo = CustomerPortalLayoutLogo;
|