@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/CodeBlock/index.mjs
CHANGED
|
@@ -17,22 +17,22 @@ 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 * as React from "react";
|
|
22
22
|
import React__default, { useCallback, useMemo } from "react";
|
|
23
|
-
import { f as friendlySnippetLanguageNames, a as CodeBlockContext, u as useCodeBlock, C as CodeSnippet } from "../__chunks__/CodeSnippet-
|
|
24
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
23
|
+
import { f as friendlySnippetLanguageNames, a as CodeBlockContext, u as useCodeBlock, C as CodeSnippet } from "../__chunks__/CodeSnippet-B3nsMpvq.mjs";
|
|
24
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
25
25
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
26
26
|
import { filterChildrenByDisplayName } from "../utilities/react.mjs";
|
|
27
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
28
|
-
import { T as Text } from "../__chunks__/Text-
|
|
29
|
-
import { T as Tooltip, $ as $8796f90736e175cb$export$4d40659c25ecb50b } from "../__chunks__/Tooltip-
|
|
27
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
28
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
29
|
+
import { T as Tooltip, $ as $8796f90736e175cb$export$4d40659c25ecb50b } from "../__chunks__/Tooltip-BXRi0h4E.mjs";
|
|
30
30
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
31
31
|
import { $ as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6 } from "../__chunks__/useFocus-u61kyYs8.mjs";
|
|
32
32
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
33
33
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
34
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
35
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
34
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
35
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
36
36
|
var __defProp2 = Object.defineProperty;
|
|
37
37
|
var __getOwnPropSymbols2 = Object.getOwnPropertySymbols;
|
|
38
38
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
@@ -218,17 +218,17 @@ function CopyButton({ text }) {
|
|
|
218
218
|
tooltipState.close();
|
|
219
219
|
}, [clipboard, text, tooltipState]);
|
|
220
220
|
const content = clipboard.copied ? "Copied!" : "Copy code block";
|
|
221
|
-
return
|
|
221
|
+
return jsx(Tooltip, {
|
|
222
222
|
isOpen: tooltipState.isOpen || clipboard.copied,
|
|
223
223
|
content,
|
|
224
|
-
children:
|
|
224
|
+
children: jsxs("button", __spreadProps(__spreadValues({
|
|
225
225
|
className: styles$1.CopyButton,
|
|
226
226
|
onClick: handlePress
|
|
227
227
|
}, triggerProps), {
|
|
228
|
-
children: [
|
|
228
|
+
children: [jsx(Text, {
|
|
229
229
|
visuallyHidden: true,
|
|
230
230
|
children: "Copy code"
|
|
231
|
-
}),
|
|
231
|
+
}), jsx(Icon, {
|
|
232
232
|
symbol: ContentCopy
|
|
233
233
|
})]
|
|
234
234
|
}))
|
|
@@ -258,25 +258,25 @@ function LanguageMenu(props) {
|
|
|
258
258
|
const language2 = key;
|
|
259
259
|
onChange(language2);
|
|
260
260
|
}, [onChange]);
|
|
261
|
-
return
|
|
262
|
-
children: [
|
|
263
|
-
children:
|
|
264
|
-
children:
|
|
261
|
+
return jsxs(Menu, {
|
|
262
|
+
children: [jsx(Menu.Trigger, {
|
|
263
|
+
children: jsx(UnstyledButton, {
|
|
264
|
+
children: jsxs(HorizontalStack, {
|
|
265
265
|
blockAlign: "center",
|
|
266
266
|
gap: "1",
|
|
267
267
|
wrap: false,
|
|
268
|
-
children: [
|
|
268
|
+
children: [jsx(Text, {
|
|
269
269
|
variant: "body1",
|
|
270
270
|
children: friendlySnippetLanguageNames[language]
|
|
271
|
-
}),
|
|
271
|
+
}), jsx(Icon, {
|
|
272
272
|
symbol: ExpandMore400
|
|
273
273
|
})]
|
|
274
274
|
})
|
|
275
275
|
})
|
|
276
|
-
}),
|
|
276
|
+
}), jsx(Menu.Overlay, {
|
|
277
277
|
maxItemsUntilScroll: Infinity,
|
|
278
278
|
onAction: handleMenuAction,
|
|
279
|
-
children: languages.map((language2) =>
|
|
279
|
+
children: languages.map((language2) => jsx(Menu.Item, {
|
|
280
280
|
children: friendlySnippetLanguageNames[language2]
|
|
281
281
|
}, language2))
|
|
282
282
|
})]
|
|
@@ -300,26 +300,26 @@ function CodeBlockHeader(props) {
|
|
|
300
300
|
const { children, color = "neutral", hideCopy = false } = props;
|
|
301
301
|
const { snippet, languages, language, onLanguageChange } = useCodeBlock();
|
|
302
302
|
const className = classNames(styles.header, styles[variationName("color", color)]);
|
|
303
|
-
return
|
|
303
|
+
return jsx("div", {
|
|
304
304
|
className,
|
|
305
|
-
children:
|
|
305
|
+
children: jsxs(HorizontalStack, {
|
|
306
306
|
align: "space-between",
|
|
307
307
|
gap: "2",
|
|
308
308
|
wrap: false,
|
|
309
309
|
blockAlign: "start",
|
|
310
|
-
children: [
|
|
310
|
+
children: [jsx("span", {
|
|
311
311
|
className: styles.headerTitle,
|
|
312
312
|
children
|
|
313
|
-
}),
|
|
313
|
+
}), jsxs(HorizontalStack, {
|
|
314
314
|
gap: "2",
|
|
315
315
|
wrap: false,
|
|
316
|
-
children: [languages.length > 1 &&
|
|
316
|
+
children: [languages.length > 1 && jsx(LanguageMenu, {
|
|
317
317
|
languages,
|
|
318
318
|
language,
|
|
319
319
|
onChange: onLanguageChange
|
|
320
|
-
}), languages.length > 1 && !hideCopy &&
|
|
320
|
+
}), languages.length > 1 && !hideCopy && jsx("span", {
|
|
321
321
|
className: styles.divider
|
|
322
|
-
}), !hideCopy &&
|
|
322
|
+
}), !hideCopy && jsx(CopyButton, {
|
|
323
323
|
text: snippet.props.code
|
|
324
324
|
})]
|
|
325
325
|
})]
|
|
@@ -328,7 +328,7 @@ function CodeBlockHeader(props) {
|
|
|
328
328
|
}
|
|
329
329
|
CodeBlockHeader.displayName = "CodeBlock.Header";
|
|
330
330
|
function CodeBlockSnippet(props) {
|
|
331
|
-
return
|
|
331
|
+
return jsx(CodeSnippet, __spreadValues({}, props));
|
|
332
332
|
}
|
|
333
333
|
CodeBlockSnippet.displayName = "CodeBlock.Snippet";
|
|
334
334
|
function CodeBlock(props) {
|
|
@@ -361,9 +361,9 @@ function CodeBlock(props) {
|
|
|
361
361
|
onLanguageChange
|
|
362
362
|
};
|
|
363
363
|
}, [languages, snippet, language, onLanguageChange]);
|
|
364
|
-
return
|
|
364
|
+
return jsx(CodeBlockContext.Provider, {
|
|
365
365
|
value: context,
|
|
366
|
-
children:
|
|
366
|
+
children: jsxs("div", {
|
|
367
367
|
className: styles.CodeBlock,
|
|
368
368
|
children: [header2, snippet]
|
|
369
369
|
})
|
package/CodeSnippet/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const CodeSnippet = require("../__chunks__/CodeSnippet-
|
|
3
|
+
const CodeSnippet = require("../__chunks__/CodeSnippet-25l4r2Gh.js");
|
|
4
4
|
exports.CodeSnippet = CodeSnippet.CodeSnippet;
|
package/CodeSnippet/index.mjs
CHANGED
package/ColorPicker/index.js
CHANGED
|
@@ -32,7 +32,7 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
return target;
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
35
|
-
const jsxRuntime = require("
|
|
35
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
36
36
|
const React = require("react");
|
|
37
37
|
const utils = require("../__chunks__/utils-CRWC8dEm.js");
|
|
38
38
|
const BaseCollection = require("../__chunks__/BaseCollection-BFCqPRBy.js");
|
|
@@ -65,7 +65,7 @@ const useSpinButton = require("../__chunks__/useSpinButton-BtlaFD9D.js");
|
|
|
65
65
|
const useEvent = require("../__chunks__/useEvent-D3eKExds.js");
|
|
66
66
|
const useTextField = require("../__chunks__/useTextField-BlTYl2ML.js");
|
|
67
67
|
const useNumberFormatter = require("../__chunks__/useNumberFormatter-BCYp6Is8.js");
|
|
68
|
-
const InputCaption = require("../__chunks__/InputCaption-
|
|
68
|
+
const InputCaption = require("../__chunks__/InputCaption-CccF4ynE.js");
|
|
69
69
|
var $2d805fd52bb48883$exports = {};
|
|
70
70
|
$2d805fd52bb48883$exports = {
|
|
71
71
|
"alpha": `ألفا`,
|
|
@@ -5215,7 +5215,7 @@ const styles$4 = {
|
|
|
5215
5215
|
ColorThumb: ColorThumb$1
|
|
5216
5216
|
};
|
|
5217
5217
|
function ColorThumb2(props) {
|
|
5218
|
-
return jsxRuntime.
|
|
5218
|
+
return jsxRuntime.jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, __spreadProps(__spreadValues({}, props), {
|
|
5219
5219
|
className: utilities_css.classNames(styles$4.ColorThumb, props.className)
|
|
5220
5220
|
}));
|
|
5221
5221
|
}
|
|
@@ -5224,9 +5224,9 @@ const styles$3 = {
|
|
|
5224
5224
|
ColorArea: ColorArea$1
|
|
5225
5225
|
};
|
|
5226
5226
|
function ColorArea2(props) {
|
|
5227
|
-
return jsxRuntime.
|
|
5227
|
+
return jsxRuntime.jsx($0de070065d44825d$export$b2103f68a961418e, __spreadProps(__spreadValues({}, props), {
|
|
5228
5228
|
className: styles$3.ColorArea,
|
|
5229
|
-
children: jsxRuntime.
|
|
5229
|
+
children: jsxRuntime.jsx(ColorThumb2, {})
|
|
5230
5230
|
}));
|
|
5231
5231
|
}
|
|
5232
5232
|
const ColorSlider$1 = "_ColorSlider_2ybsk_4";
|
|
@@ -5238,9 +5238,9 @@ const styles$2 = {
|
|
|
5238
5238
|
thumb
|
|
5239
5239
|
};
|
|
5240
5240
|
function ColorSlider2(props) {
|
|
5241
|
-
return jsxRuntime.
|
|
5241
|
+
return jsxRuntime.jsx($1cca5300a3c2e7f9$export$44fd664bcca5b6fb, __spreadProps(__spreadValues({}, props), {
|
|
5242
5242
|
className: styles$2.ColorSlider,
|
|
5243
|
-
children: jsxRuntime.
|
|
5243
|
+
children: jsxRuntime.jsx($6f909507e6374d18$export$105594979f116971, {
|
|
5244
5244
|
className: styles$2.track,
|
|
5245
5245
|
style: ({ defaultStyle }) => ({
|
|
5246
5246
|
background: `
|
|
@@ -5249,7 +5249,7 @@ function ColorSlider2(props) {
|
|
|
5249
5249
|
`
|
|
5250
5250
|
}),
|
|
5251
5251
|
"aria-label": "Hue slider",
|
|
5252
|
-
children: jsxRuntime.
|
|
5252
|
+
children: jsxRuntime.jsx(ColorThumb2, {
|
|
5253
5253
|
className: styles$2.thumb
|
|
5254
5254
|
})
|
|
5255
5255
|
})
|
|
@@ -5260,18 +5260,18 @@ const styles$1 = {
|
|
|
5260
5260
|
popover
|
|
5261
5261
|
};
|
|
5262
5262
|
function ColorPicker(props) {
|
|
5263
|
-
return jsxRuntime.
|
|
5263
|
+
return jsxRuntime.jsx($2637d3f5efb23186$export$9feb1bc2e5f1ccb3, __spreadValues({}, props));
|
|
5264
5264
|
}
|
|
5265
5265
|
function ColorPickerTrigger({ children }) {
|
|
5266
|
-
return jsxRuntime.
|
|
5267
|
-
children: [children, jsxRuntime.
|
|
5266
|
+
return jsxRuntime.jsxs(Dialog.$de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
5267
|
+
children: [children, jsxRuntime.jsxs(Dialog.$07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
5268
5268
|
placement: "bottom start",
|
|
5269
5269
|
className: styles$1.popover,
|
|
5270
|
-
children: [jsxRuntime.
|
|
5270
|
+
children: [jsxRuntime.jsx(ColorArea2, {
|
|
5271
5271
|
colorSpace: "hsb",
|
|
5272
5272
|
xChannel: "saturation",
|
|
5273
5273
|
yChannel: "brightness"
|
|
5274
|
-
}), jsxRuntime.
|
|
5274
|
+
}), jsxRuntime.jsx(ColorSlider2, {
|
|
5275
5275
|
colorSpace: "hsb",
|
|
5276
5276
|
channel: "hue"
|
|
5277
5277
|
})]
|
|
@@ -5309,8 +5309,8 @@ const styles = {
|
|
|
5309
5309
|
function ColorPickerInputField(props) {
|
|
5310
5310
|
const _a = props, { size = "md", validationState, errorText, helperText, label, isLabelEmphasized, isDisabled, isReadOnly, isRequired, placeholder, autoFocus, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby } = _a, colorPickerProps = __objRest(_a, ["size", "validationState", "errorText", "helperText", "label", "isLabelEmphasized", "isDisabled", "isReadOnly", "isRequired", "placeholder", "autoFocus", "aria-label", "aria-labelledby"]);
|
|
5311
5311
|
const className = utilities_css.classNames(styles.ColorPickerInput, validationState === "invalid" && styles.error, styles[utilities_css.variationName("size", size)]);
|
|
5312
|
-
return jsxRuntime.
|
|
5313
|
-
children: jsxRuntime.
|
|
5312
|
+
return jsxRuntime.jsx(ColorPicker, __spreadProps(__spreadValues({}, colorPickerProps), {
|
|
5313
|
+
children: jsxRuntime.jsxs($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
5314
5314
|
className,
|
|
5315
5315
|
isDisabled,
|
|
5316
5316
|
isReadOnly,
|
|
@@ -5319,26 +5319,26 @@ function ColorPickerInputField(props) {
|
|
|
5319
5319
|
autoFocus,
|
|
5320
5320
|
"aria-label": ariaLabel,
|
|
5321
5321
|
"aria-labelledby": ariaLabelledby,
|
|
5322
|
-
children: [label && jsxRuntime.
|
|
5322
|
+
children: [label && jsxRuntime.jsx(InputCaption.Label, {
|
|
5323
5323
|
isLabelEmphasized,
|
|
5324
5324
|
fieldSize: size,
|
|
5325
5325
|
hasError: validationState === "invalid",
|
|
5326
5326
|
children: label
|
|
5327
|
-
}), jsxRuntime.
|
|
5327
|
+
}), jsxRuntime.jsxs("div", {
|
|
5328
5328
|
className: styles.inputContainer,
|
|
5329
|
-
children: [jsxRuntime.
|
|
5329
|
+
children: [jsxRuntime.jsx("div", {
|
|
5330
5330
|
className: styles.swatchContainer,
|
|
5331
|
-
children: isDisabled || isReadOnly ? jsxRuntime.
|
|
5332
|
-
children: jsxRuntime.
|
|
5331
|
+
children: isDisabled || isReadOnly ? jsxRuntime.jsx(InputColorSwatch, {}) : jsxRuntime.jsx(ColorPicker.Trigger, {
|
|
5332
|
+
children: jsxRuntime.jsx(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
5333
5333
|
className: styles.swatchButton,
|
|
5334
|
-
children: jsxRuntime.
|
|
5334
|
+
children: jsxRuntime.jsx(InputColorSwatch, {})
|
|
5335
5335
|
})
|
|
5336
5336
|
})
|
|
5337
|
-
}), jsxRuntime.
|
|
5337
|
+
}), jsxRuntime.jsx(Input.$3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
5338
5338
|
className: styles.input,
|
|
5339
5339
|
placeholder
|
|
5340
5340
|
})]
|
|
5341
|
-
}), (helperText || errorText) && jsxRuntime.
|
|
5341
|
+
}), (helperText || errorText) && jsxRuntime.jsx(InputCaption.InputCaption, {
|
|
5342
5342
|
variant: errorText && validationState === "invalid" ? "error" : "helper",
|
|
5343
5343
|
children: errorText || helperText
|
|
5344
5344
|
})]
|
|
@@ -5346,7 +5346,7 @@ function ColorPickerInputField(props) {
|
|
|
5346
5346
|
}));
|
|
5347
5347
|
}
|
|
5348
5348
|
function InputColorSwatch() {
|
|
5349
|
-
return jsxRuntime.
|
|
5349
|
+
return jsxRuntime.jsx($251c695a52d94a8d$export$cae13e90592f246a, {
|
|
5350
5350
|
className: styles.swatch,
|
|
5351
5351
|
style: ({ color }) => ({
|
|
5352
5352
|
background: `
|
package/ColorPicker/index.mjs
CHANGED
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
import {
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
34
|
import React__default, { useState, useMemo, useRef, useCallback, useEffect, createContext, forwardRef, useContext } from "react";
|
|
35
35
|
import { a as $64fa3d84918910a7$export$4d86445c2cf5e3, $ as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, f as $64fa3d84918910a7$export$ef03459518577ad4, d as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../__chunks__/utils-C1be5hOp.mjs";
|
|
36
36
|
import { f as $4e85f108e88277b8$export$ebe63fadcdce34ed, g as $4e85f108e88277b8$export$44644b8a16031b5b, h as $4e85f108e88277b8$export$717b2c0a523a0b53, i as $4e85f108e88277b8$export$265015d6dc85bf21 } from "../__chunks__/BaseCollection-BVO0lZBs.mjs";
|
|
@@ -63,7 +63,7 @@ import { a as $6c7bd7858deea686$export$cd11ab140839f11d, $ as $d2e8511e6f209edf$
|
|
|
63
63
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "../__chunks__/useEvent-CnahkmoD.mjs";
|
|
64
64
|
import { $ as $2d73ec29415bd339$export$712718f7aec83d5 } from "../__chunks__/useTextField-0Mbs_DmY.mjs";
|
|
65
65
|
import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "../__chunks__/useNumberFormatter-dSwO_MBg.mjs";
|
|
66
|
-
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-
|
|
66
|
+
import { L as Label, I as InputCaption } from "../__chunks__/InputCaption-DoyGkWQe.mjs";
|
|
67
67
|
var $2d805fd52bb48883$exports = {};
|
|
68
68
|
$2d805fd52bb48883$exports = {
|
|
69
69
|
"alpha": `ألفا`,
|
|
@@ -5213,7 +5213,7 @@ const styles$4 = {
|
|
|
5213
5213
|
ColorThumb: ColorThumb$1
|
|
5214
5214
|
};
|
|
5215
5215
|
function ColorThumb2(props) {
|
|
5216
|
-
return
|
|
5216
|
+
return jsx($e2b71ec1d6016406$export$a3cc47cee1c1ccc, __spreadProps(__spreadValues({}, props), {
|
|
5217
5217
|
className: classNames(styles$4.ColorThumb, props.className)
|
|
5218
5218
|
}));
|
|
5219
5219
|
}
|
|
@@ -5222,9 +5222,9 @@ const styles$3 = {
|
|
|
5222
5222
|
ColorArea: ColorArea$1
|
|
5223
5223
|
};
|
|
5224
5224
|
function ColorArea2(props) {
|
|
5225
|
-
return
|
|
5225
|
+
return jsx($0de070065d44825d$export$b2103f68a961418e, __spreadProps(__spreadValues({}, props), {
|
|
5226
5226
|
className: styles$3.ColorArea,
|
|
5227
|
-
children:
|
|
5227
|
+
children: jsx(ColorThumb2, {})
|
|
5228
5228
|
}));
|
|
5229
5229
|
}
|
|
5230
5230
|
const ColorSlider$1 = "_ColorSlider_2ybsk_4";
|
|
@@ -5236,9 +5236,9 @@ const styles$2 = {
|
|
|
5236
5236
|
thumb
|
|
5237
5237
|
};
|
|
5238
5238
|
function ColorSlider2(props) {
|
|
5239
|
-
return
|
|
5239
|
+
return jsx($1cca5300a3c2e7f9$export$44fd664bcca5b6fb, __spreadProps(__spreadValues({}, props), {
|
|
5240
5240
|
className: styles$2.ColorSlider,
|
|
5241
|
-
children:
|
|
5241
|
+
children: jsx($6f909507e6374d18$export$105594979f116971, {
|
|
5242
5242
|
className: styles$2.track,
|
|
5243
5243
|
style: ({ defaultStyle }) => ({
|
|
5244
5244
|
background: `
|
|
@@ -5247,7 +5247,7 @@ function ColorSlider2(props) {
|
|
|
5247
5247
|
`
|
|
5248
5248
|
}),
|
|
5249
5249
|
"aria-label": "Hue slider",
|
|
5250
|
-
children:
|
|
5250
|
+
children: jsx(ColorThumb2, {
|
|
5251
5251
|
className: styles$2.thumb
|
|
5252
5252
|
})
|
|
5253
5253
|
})
|
|
@@ -5258,18 +5258,18 @@ const styles$1 = {
|
|
|
5258
5258
|
popover
|
|
5259
5259
|
};
|
|
5260
5260
|
function ColorPicker(props) {
|
|
5261
|
-
return
|
|
5261
|
+
return jsx($2637d3f5efb23186$export$9feb1bc2e5f1ccb3, __spreadValues({}, props));
|
|
5262
5262
|
}
|
|
5263
5263
|
function ColorPickerTrigger({ children }) {
|
|
5264
|
-
return
|
|
5265
|
-
children: [children,
|
|
5264
|
+
return jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
5265
|
+
children: [children, jsxs($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
5266
5266
|
placement: "bottom start",
|
|
5267
5267
|
className: styles$1.popover,
|
|
5268
|
-
children: [
|
|
5268
|
+
children: [jsx(ColorArea2, {
|
|
5269
5269
|
colorSpace: "hsb",
|
|
5270
5270
|
xChannel: "saturation",
|
|
5271
5271
|
yChannel: "brightness"
|
|
5272
|
-
}),
|
|
5272
|
+
}), jsx(ColorSlider2, {
|
|
5273
5273
|
colorSpace: "hsb",
|
|
5274
5274
|
channel: "hue"
|
|
5275
5275
|
})]
|
|
@@ -5307,8 +5307,8 @@ const styles = {
|
|
|
5307
5307
|
function ColorPickerInputField(props) {
|
|
5308
5308
|
const _a = props, { size = "md", validationState, errorText, helperText, label, isLabelEmphasized, isDisabled, isReadOnly, isRequired, placeholder, autoFocus, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby } = _a, colorPickerProps = __objRest(_a, ["size", "validationState", "errorText", "helperText", "label", "isLabelEmphasized", "isDisabled", "isReadOnly", "isRequired", "placeholder", "autoFocus", "aria-label", "aria-labelledby"]);
|
|
5309
5309
|
const className = classNames(styles.ColorPickerInput, validationState === "invalid" && styles.error, styles[variationName("size", size)]);
|
|
5310
|
-
return
|
|
5311
|
-
children:
|
|
5310
|
+
return jsx(ColorPicker, __spreadProps(__spreadValues({}, colorPickerProps), {
|
|
5311
|
+
children: jsxs($3ada01a82feafb94$export$b865d4358897bb17, {
|
|
5312
5312
|
className,
|
|
5313
5313
|
isDisabled,
|
|
5314
5314
|
isReadOnly,
|
|
@@ -5317,26 +5317,26 @@ function ColorPickerInputField(props) {
|
|
|
5317
5317
|
autoFocus,
|
|
5318
5318
|
"aria-label": ariaLabel,
|
|
5319
5319
|
"aria-labelledby": ariaLabelledby,
|
|
5320
|
-
children: [label &&
|
|
5320
|
+
children: [label && jsx(Label, {
|
|
5321
5321
|
isLabelEmphasized,
|
|
5322
5322
|
fieldSize: size,
|
|
5323
5323
|
hasError: validationState === "invalid",
|
|
5324
5324
|
children: label
|
|
5325
|
-
}),
|
|
5325
|
+
}), jsxs("div", {
|
|
5326
5326
|
className: styles.inputContainer,
|
|
5327
|
-
children: [
|
|
5327
|
+
children: [jsx("div", {
|
|
5328
5328
|
className: styles.swatchContainer,
|
|
5329
|
-
children: isDisabled || isReadOnly ?
|
|
5330
|
-
children:
|
|
5329
|
+
children: isDisabled || isReadOnly ? jsx(InputColorSwatch, {}) : jsx(ColorPicker.Trigger, {
|
|
5330
|
+
children: jsx($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
5331
5331
|
className: styles.swatchButton,
|
|
5332
|
-
children:
|
|
5332
|
+
children: jsx(InputColorSwatch, {})
|
|
5333
5333
|
})
|
|
5334
5334
|
})
|
|
5335
|
-
}),
|
|
5335
|
+
}), jsx($3985021b0ad6602f$export$f5b8910cec6cf069, {
|
|
5336
5336
|
className: styles.input,
|
|
5337
5337
|
placeholder
|
|
5338
5338
|
})]
|
|
5339
|
-
}), (helperText || errorText) &&
|
|
5339
|
+
}), (helperText || errorText) && jsx(InputCaption, {
|
|
5340
5340
|
variant: errorText && validationState === "invalid" ? "error" : "helper",
|
|
5341
5341
|
children: errorText || helperText
|
|
5342
5342
|
})]
|
|
@@ -5344,7 +5344,7 @@ function ColorPickerInputField(props) {
|
|
|
5344
5344
|
}));
|
|
5345
5345
|
}
|
|
5346
5346
|
function InputColorSwatch() {
|
|
5347
|
-
return
|
|
5347
|
+
return jsx($251c695a52d94a8d$export$cae13e90592f246a, {
|
|
5348
5348
|
className: styles.swatch,
|
|
5349
5349
|
style: ({ color }) => ({
|
|
5350
5350
|
background: `
|
|
@@ -31,14 +31,14 @@ 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
|
-
const EasyPostLogo = require("../__chunks__/EasyPostLogo-
|
|
37
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
38
|
-
const Text = require("../__chunks__/Text-
|
|
39
|
-
const Icon = require("../__chunks__/Icon-
|
|
36
|
+
const EasyPostLogo = require("../__chunks__/EasyPostLogo-C9-Q0lSn.js");
|
|
37
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-CWdKKY8L.js");
|
|
38
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
39
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
40
40
|
const Button = require("../__chunks__/Button-BpQFyL49.js");
|
|
41
|
-
const Menu = require("../__chunks__/Menu-
|
|
41
|
+
const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
42
42
|
const utilities_css = require("../utilities/css.js");
|
|
43
43
|
const useFocusRing = require("../__chunks__/useFocusRing-DbC9E5wC.js");
|
|
44
44
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
@@ -117,7 +117,7 @@ const styles$1 = {
|
|
|
117
117
|
};
|
|
118
118
|
function CustomerPortalLayoutActions(props) {
|
|
119
119
|
const { children } = props;
|
|
120
|
-
return jsxRuntime.
|
|
120
|
+
return jsxRuntime.jsx(HorizontalStack.HorizontalStack, {
|
|
121
121
|
wrap: false,
|
|
122
122
|
gap: "1",
|
|
123
123
|
align: "end",
|
|
@@ -133,19 +133,19 @@ function CustomerPortalLayoutMenuAction(props) {
|
|
|
133
133
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
134
134
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
135
135
|
const className = utilities_css.classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isOpen && styles$1.open);
|
|
136
|
-
return jsxRuntime.
|
|
136
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
137
137
|
isOpen,
|
|
138
138
|
onOpenChange: handleOpenChange,
|
|
139
|
-
children: [jsxRuntime.
|
|
140
|
-
children: jsxRuntime.
|
|
139
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
140
|
+
children: jsxRuntime.jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
141
141
|
className
|
|
142
142
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
143
|
-
children: [jsxRuntime.
|
|
143
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
144
144
|
visuallyHidden: true,
|
|
145
145
|
children: accessibilityLabel
|
|
146
|
-
}), jsxRuntime.
|
|
146
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
147
147
|
symbol: iconSymbol
|
|
148
|
-
}), renderBadge && jsxRuntime.
|
|
148
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
149
149
|
className: styles$1.badgeContainer,
|
|
150
150
|
children: renderBadge()
|
|
151
151
|
})]
|
|
@@ -160,17 +160,17 @@ function CustomerPortalLayoutLinkAction(props) {
|
|
|
160
160
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
161
161
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
162
162
|
const className = utilities_css.classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
163
|
-
return jsxRuntime.
|
|
163
|
+
return jsxRuntime.jsxs("a", __spreadProps(__spreadValues({
|
|
164
164
|
ref,
|
|
165
165
|
className
|
|
166
166
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
167
167
|
"aria-current": isSelected ? "true" : void 0,
|
|
168
|
-
children: [jsxRuntime.
|
|
168
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
169
169
|
visuallyHidden: true,
|
|
170
170
|
children: accessibilityLabel
|
|
171
|
-
}), jsxRuntime.
|
|
171
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
172
172
|
symbol: iconSymbol
|
|
173
|
-
}), renderBadge && jsxRuntime.
|
|
173
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
174
174
|
className: styles$1.badgeContainer,
|
|
175
175
|
children: renderBadge()
|
|
176
176
|
})]
|
|
@@ -180,17 +180,17 @@ function CustomerPortalLayoutButtonAction(props) {
|
|
|
180
180
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
181
181
|
const ref = React.useRef(null);
|
|
182
182
|
const className = utilities_css.classNames(styles$1.button, isSelected && styles$1.selected);
|
|
183
|
-
return jsxRuntime.
|
|
183
|
+
return jsxRuntime.jsxs(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadProps(__spreadValues({
|
|
184
184
|
ref,
|
|
185
185
|
className,
|
|
186
186
|
"aria-current": isSelected ? "true" : void 0
|
|
187
187
|
}, buttonProps), {
|
|
188
|
-
children: [jsxRuntime.
|
|
188
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
189
189
|
visuallyHidden: true,
|
|
190
190
|
children: accessibilityLabel
|
|
191
|
-
}), jsxRuntime.
|
|
191
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
192
192
|
symbol: iconSymbol
|
|
193
|
-
}), renderBadge && jsxRuntime.
|
|
193
|
+
}), renderBadge && jsxRuntime.jsx("div", {
|
|
194
194
|
className: styles$1.badgeContainer,
|
|
195
195
|
children: renderBadge()
|
|
196
196
|
})]
|
|
@@ -198,14 +198,14 @@ function CustomerPortalLayoutButtonAction(props) {
|
|
|
198
198
|
}
|
|
199
199
|
function CustomerPortalLayoutActionBadge(props) {
|
|
200
200
|
const { children } = props;
|
|
201
|
-
return jsxRuntime.
|
|
201
|
+
return jsxRuntime.jsx("div", {
|
|
202
202
|
className: styles$1.badge,
|
|
203
203
|
children
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
const PressableButton = React.forwardRef((props, ref) => {
|
|
207
207
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
208
|
-
return jsxRuntime.
|
|
208
|
+
return jsxRuntime.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
209
209
|
ref,
|
|
210
210
|
className: utilities_css.classNames(pressProps.className)
|
|
211
211
|
}));
|
|
@@ -241,25 +241,25 @@ function CustomerPortalLayout(props) {
|
|
|
241
241
|
shouldDisplayEasyPostLogo
|
|
242
242
|
};
|
|
243
243
|
}, [mode, shouldDisplayEasyPostLogo]);
|
|
244
|
-
return jsxRuntime.
|
|
244
|
+
return jsxRuntime.jsx(CustomerPortalLayoutContext.Provider, {
|
|
245
245
|
value: context,
|
|
246
|
-
children: jsxRuntime.
|
|
246
|
+
children: jsxRuntime.jsx("div", {
|
|
247
247
|
className: styles.CustomerPortalLayout,
|
|
248
248
|
children
|
|
249
249
|
})
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
function TestModeBanner() {
|
|
253
|
-
return jsxRuntime.
|
|
253
|
+
return jsxRuntime.jsx("div", {
|
|
254
254
|
className: styles.testModeBanner,
|
|
255
|
-
children: jsxRuntime.
|
|
255
|
+
children: jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
256
256
|
gap: "1",
|
|
257
257
|
blockAlign: "center",
|
|
258
|
-
children: [jsxRuntime.
|
|
258
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
259
259
|
symbol: Experiment,
|
|
260
260
|
color: "primary.700",
|
|
261
261
|
size: "lg"
|
|
262
|
-
}), jsxRuntime.
|
|
262
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
263
263
|
variant: "subtitle1",
|
|
264
264
|
color: "warning.900",
|
|
265
265
|
children: "This Environment is in Test Mode"
|
|
@@ -271,9 +271,9 @@ function CustomerPortalLayoutHeader(props) {
|
|
|
271
271
|
const { children } = props;
|
|
272
272
|
const { mode } = useCustomerPortalLayout();
|
|
273
273
|
const isTestMode = mode === "test";
|
|
274
|
-
return jsxRuntime.
|
|
274
|
+
return jsxRuntime.jsxs("header", {
|
|
275
275
|
className: styles.header,
|
|
276
|
-
children: [isTestMode && jsxRuntime.
|
|
276
|
+
children: [isTestMode && jsxRuntime.jsx(TestModeBanner, {}), jsxRuntime.jsx("div", {
|
|
277
277
|
className: styles.logoAndActions,
|
|
278
278
|
children
|
|
279
279
|
})]
|
|
@@ -281,7 +281,7 @@ function CustomerPortalLayoutHeader(props) {
|
|
|
281
281
|
}
|
|
282
282
|
function CustomerPortalLayoutLogo(props) {
|
|
283
283
|
const { children } = props;
|
|
284
|
-
return jsxRuntime.
|
|
284
|
+
return jsxRuntime.jsx("div", {
|
|
285
285
|
className: styles.logo,
|
|
286
286
|
children
|
|
287
287
|
});
|
|
@@ -289,19 +289,19 @@ function CustomerPortalLayoutLogo(props) {
|
|
|
289
289
|
function CustomerPortalLayoutLogoContainer(props) {
|
|
290
290
|
const { children } = props;
|
|
291
291
|
const { shouldDisplayEasyPostLogo } = useCustomerPortalLayout();
|
|
292
|
-
return jsxRuntime.
|
|
292
|
+
return jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
293
293
|
gap: "1",
|
|
294
294
|
blockAlign: "center",
|
|
295
295
|
align: "start",
|
|
296
296
|
wrap: false,
|
|
297
|
-
children: [shouldDisplayEasyPostLogo && jsxRuntime.
|
|
298
|
-
children: jsxRuntime.
|
|
297
|
+
children: [shouldDisplayEasyPostLogo && jsxRuntime.jsx(CustomerPortalLayoutLogo, {
|
|
298
|
+
children: jsxRuntime.jsx(EasyPostLogo.EasyPostLogo, {})
|
|
299
299
|
}), children]
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
function CustomerPortalLayoutContent(props) {
|
|
303
303
|
const { children } = props;
|
|
304
|
-
return jsxRuntime.
|
|
304
|
+
return jsxRuntime.jsx("main", {
|
|
305
305
|
className: styles.content,
|
|
306
306
|
children
|
|
307
307
|
});
|