@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.mjs
CHANGED
|
@@ -17,19 +17,20 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
22
|
-
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
22
|
+
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-DgIgAGa3.mjs";
|
|
23
|
+
import React__default, { useState, useCallback, forwardRef, useRef, useId, useMemo, useContext } from "react";
|
|
24
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
25
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
26
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
27
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
27
28
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
28
29
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
29
30
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
30
31
|
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../__chunks__/usePress-Cw67P1FM.mjs";
|
|
31
32
|
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-y6WGv96n.mjs";
|
|
32
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
33
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-DoMqBfYD.mjs";
|
|
33
34
|
const button = "_button_14248_4";
|
|
34
35
|
const focused$2 = "_focused_14248_25";
|
|
35
36
|
const hovered$2 = "_hovered_14248_37";
|
|
@@ -48,11 +49,12 @@ const styles$4 = {
|
|
|
48
49
|
};
|
|
49
50
|
function NexusLayoutActions(props) {
|
|
50
51
|
const { children } = props;
|
|
51
|
-
return
|
|
52
|
+
return jsx(HorizontalStack, {
|
|
52
53
|
wrap: false,
|
|
53
54
|
gap: "0.5",
|
|
54
|
-
align: "end"
|
|
55
|
-
|
|
55
|
+
align: "end",
|
|
56
|
+
children
|
|
57
|
+
});
|
|
56
58
|
}
|
|
57
59
|
function NexusLayoutMenuAction(props) {
|
|
58
60
|
const { accessibilityLabel = "Actions", iconSymbol, children, renderBadge } = props;
|
|
@@ -63,18 +65,25 @@ function NexusLayoutMenuAction(props) {
|
|
|
63
65
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
64
66
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
65
67
|
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
66
|
-
return
|
|
68
|
+
return jsxs(Menu, {
|
|
67
69
|
isOpen,
|
|
68
|
-
onOpenChange: handleOpenChange
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
onOpenChange: handleOpenChange,
|
|
71
|
+
children: [jsx(Menu.Trigger, {
|
|
72
|
+
children: jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
73
|
+
className
|
|
74
|
+
}, $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
75
|
+
children: [jsx(Text, {
|
|
76
|
+
visuallyHidden: true,
|
|
77
|
+
children: accessibilityLabel
|
|
78
|
+
}), jsx(Icon, {
|
|
79
|
+
symbol: iconSymbol
|
|
80
|
+
}), renderBadge && jsx("div", {
|
|
81
|
+
className: styles$4.badgeContainer,
|
|
82
|
+
children: renderBadge()
|
|
83
|
+
})]
|
|
84
|
+
}))
|
|
85
|
+
}), children]
|
|
86
|
+
});
|
|
78
87
|
}
|
|
79
88
|
function NexusLayoutLinkAction(props) {
|
|
80
89
|
const { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = props;
|
|
@@ -83,28 +92,32 @@ function NexusLayoutLinkAction(props) {
|
|
|
83
92
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
84
93
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
85
94
|
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
86
|
-
return
|
|
95
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
87
96
|
ref,
|
|
88
97
|
className
|
|
89
98
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
90
|
-
"aria-current": isSelected ? "true" : void 0
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
100
|
+
children: [jsx(Text, {
|
|
101
|
+
visuallyHidden: true,
|
|
102
|
+
children: accessibilityLabel
|
|
103
|
+
}), jsx(Icon, {
|
|
104
|
+
symbol: iconSymbol
|
|
105
|
+
}), renderBadge && jsx("div", {
|
|
106
|
+
className: styles$4.badgeContainer,
|
|
107
|
+
children: renderBadge()
|
|
108
|
+
})]
|
|
109
|
+
}));
|
|
98
110
|
}
|
|
99
111
|
function NexusLayoutActionBadge(props) {
|
|
100
112
|
const { children } = props;
|
|
101
|
-
return
|
|
102
|
-
className: styles$4.badge
|
|
103
|
-
|
|
113
|
+
return jsx("div", {
|
|
114
|
+
className: styles$4.badge,
|
|
115
|
+
children
|
|
116
|
+
});
|
|
104
117
|
}
|
|
105
118
|
const PressableButton = forwardRef((props, ref) => {
|
|
106
119
|
const { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
107
|
-
return
|
|
120
|
+
return jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
108
121
|
ref,
|
|
109
122
|
className: classNames(pressProps.className)
|
|
110
123
|
}));
|
|
@@ -120,39 +133,45 @@ const styles$3 = {
|
|
|
120
133
|
};
|
|
121
134
|
function NexusLayoutMultipageContainer(props) {
|
|
122
135
|
const { children } = props;
|
|
123
|
-
return
|
|
124
|
-
className: styles$3.container
|
|
125
|
-
|
|
136
|
+
return jsx("div", {
|
|
137
|
+
className: styles$3.container,
|
|
138
|
+
children
|
|
139
|
+
});
|
|
126
140
|
}
|
|
127
141
|
function NexusLayoutMultipageSidebar(props) {
|
|
128
142
|
const { children } = props;
|
|
129
|
-
return
|
|
143
|
+
return jsx("div", {
|
|
130
144
|
role: "region",
|
|
131
|
-
className: styles$3.sidebar
|
|
132
|
-
|
|
145
|
+
className: styles$3.sidebar,
|
|
146
|
+
children
|
|
147
|
+
});
|
|
133
148
|
}
|
|
134
149
|
function NexusLayoutMultipageContent(props) {
|
|
135
150
|
const { children } = props;
|
|
136
|
-
return
|
|
137
|
-
className: styles$3.content
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
151
|
+
return jsx("div", {
|
|
152
|
+
className: styles$3.content,
|
|
153
|
+
children: jsx(VerticalStack, {
|
|
154
|
+
gap: "2",
|
|
155
|
+
children
|
|
156
|
+
})
|
|
157
|
+
});
|
|
141
158
|
}
|
|
142
159
|
function NexusLayoutMultipageHeader(props) {
|
|
143
160
|
const { children } = props;
|
|
144
|
-
return
|
|
161
|
+
return jsx(HorizontalStack, {
|
|
145
162
|
as: "header",
|
|
146
163
|
blockAlign: "center",
|
|
147
|
-
align: "space-between"
|
|
148
|
-
|
|
164
|
+
align: "space-between",
|
|
165
|
+
children
|
|
166
|
+
});
|
|
149
167
|
}
|
|
150
168
|
function NexusLayoutMultipageTitle(props) {
|
|
151
169
|
const { children } = props;
|
|
152
|
-
return
|
|
170
|
+
return jsx(Text, {
|
|
153
171
|
as: "h3",
|
|
154
|
-
variant: "heading5"
|
|
155
|
-
|
|
172
|
+
variant: "heading5",
|
|
173
|
+
children
|
|
174
|
+
});
|
|
156
175
|
}
|
|
157
176
|
const link$1 = "_link_os35m_4";
|
|
158
177
|
const focused$1 = "_focused_os35m_13";
|
|
@@ -180,26 +199,31 @@ function NexusLayoutMultipageSidebarNav(props) {
|
|
|
180
199
|
selectedHref
|
|
181
200
|
};
|
|
182
201
|
}, [selectedHref]);
|
|
183
|
-
return
|
|
184
|
-
value: context
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
202
|
+
return jsx(SidebarNavContext.Provider, {
|
|
203
|
+
value: context,
|
|
204
|
+
children: jsxs(VerticalStack, {
|
|
205
|
+
as: "nav",
|
|
206
|
+
gap: "2",
|
|
207
|
+
"aria-labelledby": titleId,
|
|
208
|
+
children: [jsx(Text, {
|
|
209
|
+
as: "h2",
|
|
210
|
+
variant: "heading4",
|
|
211
|
+
id: titleId,
|
|
212
|
+
children: title
|
|
213
|
+
}), children]
|
|
214
|
+
})
|
|
215
|
+
});
|
|
194
216
|
}
|
|
195
217
|
function NexusLayoutMultipageSidebarNavSection(props) {
|
|
196
218
|
const { title, children } = props;
|
|
197
|
-
return
|
|
219
|
+
return jsxs(VerticalStack, {
|
|
198
220
|
gap: "2",
|
|
199
|
-
inlineAlign: "start"
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
221
|
+
inlineAlign: "start",
|
|
222
|
+
children: [jsx(Text, {
|
|
223
|
+
variant: "overline",
|
|
224
|
+
children: title
|
|
225
|
+
}), children]
|
|
226
|
+
});
|
|
203
227
|
}
|
|
204
228
|
function NexusLayoutMultipageSidebarNavLink(props) {
|
|
205
229
|
const { href, iconSymbol, children } = props;
|
|
@@ -210,17 +234,19 @@ function NexusLayoutMultipageSidebarNavLink(props) {
|
|
|
210
234
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
211
235
|
const isSelected = href === selectedHref;
|
|
212
236
|
const className = classNames(styles$2.link, isFocusVisible && styles$2.focused, isHovered && styles$2.hovered, isSelected && styles$2.selected);
|
|
213
|
-
return
|
|
237
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
214
238
|
ref,
|
|
215
239
|
className
|
|
216
240
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
217
|
-
"aria-current": isSelected ? "page" : void 0
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
241
|
+
"aria-current": isSelected ? "page" : void 0,
|
|
242
|
+
children: [jsx(Icon, {
|
|
243
|
+
symbol: iconSymbol
|
|
244
|
+
}), jsx(Text, {
|
|
245
|
+
variant: "body2",
|
|
246
|
+
weight: isSelected ? "semibold" : void 0,
|
|
247
|
+
children
|
|
248
|
+
})]
|
|
249
|
+
}));
|
|
224
250
|
}
|
|
225
251
|
const link = "_link_q3unw_4";
|
|
226
252
|
const focused = "_focused_q3unw_23";
|
|
@@ -247,12 +273,14 @@ function NexusLayoutNav(props) {
|
|
|
247
273
|
selectedHref
|
|
248
274
|
};
|
|
249
275
|
}, [selectedHref]);
|
|
250
|
-
return
|
|
251
|
-
value: context
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
276
|
+
return jsx(NexusLayoutNavContext.Provider, {
|
|
277
|
+
value: context,
|
|
278
|
+
children: jsx(HorizontalStack, {
|
|
279
|
+
as: "nav",
|
|
280
|
+
"aria-label": ariaLabel,
|
|
281
|
+
children
|
|
282
|
+
})
|
|
283
|
+
});
|
|
256
284
|
}
|
|
257
285
|
function NexusLayoutNavLink(props) {
|
|
258
286
|
const { href, iconSymbol, children } = props;
|
|
@@ -263,17 +291,19 @@ function NexusLayoutNavLink(props) {
|
|
|
263
291
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
264
292
|
const isSelected = href === selectedHref;
|
|
265
293
|
const className = classNames(styles$1.link, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
266
|
-
return
|
|
294
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
267
295
|
ref,
|
|
268
296
|
className
|
|
269
297
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
270
|
-
"aria-current": isSelected ? "page" : void 0
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
298
|
+
"aria-current": isSelected ? "page" : void 0,
|
|
299
|
+
children: [jsx(Icon, {
|
|
300
|
+
symbol: iconSymbol
|
|
301
|
+
}), jsx(Text, {
|
|
302
|
+
variant: "subtitle2",
|
|
303
|
+
weight: "semibold",
|
|
304
|
+
children
|
|
305
|
+
})]
|
|
306
|
+
}));
|
|
277
307
|
}
|
|
278
308
|
const NexusLayout$1 = "_NexusLayout_1gn4l_4";
|
|
279
309
|
const backgroundDecoration01 = "_backgroundDecoration01_1gn4l_13";
|
|
@@ -290,27 +320,31 @@ const styles = {
|
|
|
290
320
|
function NexusLayout(props) {
|
|
291
321
|
const { backgroundDecoration = "01", children } = props;
|
|
292
322
|
const className = classNames(styles.NexusLayout, styles[variationName("backgroundDecoration", backgroundDecoration)]);
|
|
293
|
-
return
|
|
294
|
-
className
|
|
295
|
-
|
|
323
|
+
return jsx("div", {
|
|
324
|
+
className,
|
|
325
|
+
children
|
|
326
|
+
});
|
|
296
327
|
}
|
|
297
328
|
function NexusLayoutHeader(props) {
|
|
298
329
|
const { children } = props;
|
|
299
|
-
return
|
|
300
|
-
className: styles.header
|
|
301
|
-
|
|
330
|
+
return jsx("header", {
|
|
331
|
+
className: styles.header,
|
|
332
|
+
children
|
|
333
|
+
});
|
|
302
334
|
}
|
|
303
335
|
function NexusLayoutLogo(props) {
|
|
304
|
-
const { children =
|
|
305
|
-
return
|
|
306
|
-
className: styles.logo
|
|
307
|
-
|
|
336
|
+
const { children = jsx(EasyPostLogo, {}) } = props;
|
|
337
|
+
return jsx("div", {
|
|
338
|
+
className: styles.logo,
|
|
339
|
+
children
|
|
340
|
+
});
|
|
308
341
|
}
|
|
309
342
|
function NexusLayoutContent(props) {
|
|
310
343
|
const { children } = props;
|
|
311
|
-
return
|
|
312
|
-
className: styles.content
|
|
313
|
-
|
|
344
|
+
return jsx("main", {
|
|
345
|
+
className: styles.content,
|
|
346
|
+
children
|
|
347
|
+
});
|
|
314
348
|
}
|
|
315
349
|
NexusLayout.Header = NexusLayoutHeader;
|
|
316
350
|
NexusLayout.Logo = NexusLayoutLogo;
|
|
@@ -5,7 +5,7 @@ export type NotificationTransitionProps = {
|
|
|
5
5
|
* Children function that receives a ref to the node being transitioned.
|
|
6
6
|
*/
|
|
7
7
|
children: ChildrenFunction<{
|
|
8
|
-
nodeRef: RefObject<HTMLDivElement>;
|
|
8
|
+
nodeRef: RefObject<HTMLDivElement | null>;
|
|
9
9
|
}>;
|
|
10
10
|
/**
|
|
11
11
|
* Unique key for the transition.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationTransition.d.ts","sourceRoot":"","sources":["../../src/Notification/NotificationTransition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAY,SAAS,EAAe,MAAM,OAAO,CAAC;AAIhF,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;AAElD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;QAAE,OAAO,EAAE,SAAS,CAAC,cAAc,CAAC,CAAA;KAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"NotificationTransition.d.ts","sourceRoot":"","sources":["../../src/Notification/NotificationTransition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAY,SAAS,EAAe,MAAM,OAAO,CAAC;AAIhF,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;AAElD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC;QAAE,OAAO,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;KAAE,CAAC,CAAC;IAE1E;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IAEnB;;OAEG;IACH,yBAAyB,CAAC,EAAE,CAAC,mBAAmB,EAAE,OAAO,KAAK,IAAI,CAAC;CACpE,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,aAAa,EACb,yBAAoC,EACpC,GAAG,oBAAoB,EACxB,EAAE,2BAA2B,qBAiC7B;AAED;;;GAGG;AACH,wBAAgB,iCAAiC;;qDAES,OAAO;EAShE"}
|
package/Notification/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Notification = require("../__chunks__/Notification-
|
|
3
|
+
const Notification = require("../__chunks__/Notification-DDQHWloB.js");
|
|
4
4
|
exports.Notification = Notification.Notification;
|
|
5
5
|
exports.NotificationContext = Notification.NotificationContext;
|
|
6
6
|
exports.NotificationProvider = Notification.NotificationProvider;
|
package/Notification/index.mjs
CHANGED
package/Pagination/index.js
CHANGED
|
@@ -31,14 +31,15 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
34
35
|
const React = require("react");
|
|
35
36
|
const KeyboardDoubleArrowRight = require("../__chunks__/KeyboardDoubleArrowRight-Ber8mUIO.js");
|
|
36
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
37
|
-
const Icon = require("../__chunks__/Icon-
|
|
38
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
37
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-CWdKKY8L.js");
|
|
38
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
39
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
39
40
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
40
|
-
const Text = require("../__chunks__/Text-
|
|
41
|
-
const Menu = require("../__chunks__/Menu-
|
|
41
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
42
|
+
const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
42
43
|
const utilities_react = require("../utilities/react.js");
|
|
43
44
|
const utilities_css = require("../utilities/css.js");
|
|
44
45
|
const menuButton = "_menuButton_bdft3_4";
|
|
@@ -51,38 +52,47 @@ const styles = {
|
|
|
51
52
|
};
|
|
52
53
|
function PaginationButton(props) {
|
|
53
54
|
const _a = props, { symbol } = _a, buttonProps = __objRest(_a, ["symbol"]);
|
|
54
|
-
return
|
|
55
|
-
className: styles.arrowButton
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
return jsxRuntime.jsx(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, buttonProps), {
|
|
56
|
+
className: styles.arrowButton,
|
|
57
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
58
|
+
symbol,
|
|
59
|
+
size: "md"
|
|
60
|
+
})
|
|
59
61
|
}));
|
|
60
62
|
}
|
|
61
63
|
function PaginationDropdown(props) {
|
|
62
64
|
const { page, count, onSelect, isDisabled } = props;
|
|
63
|
-
return
|
|
64
|
-
isDisabled
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
65
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
66
|
+
isDisabled,
|
|
67
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
68
|
+
children: jsxRuntime.jsx(UnstyledButton.UnstyledButton, {
|
|
69
|
+
"aria-label": "dropdown",
|
|
70
|
+
className: styles.menuButton,
|
|
71
|
+
isDisabled,
|
|
72
|
+
children: jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
73
|
+
blockAlign: "center",
|
|
74
|
+
wrap: false,
|
|
75
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
76
|
+
variant: "body2",
|
|
77
|
+
children: `${page} of ${count}`
|
|
78
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
79
|
+
symbol: ExpandMore400.ExpandMore400,
|
|
80
|
+
size: "2xs"
|
|
81
|
+
})]
|
|
82
|
+
})
|
|
83
|
+
})
|
|
84
|
+
}), jsxRuntime.jsx(Menu.Menu.Overlay, {
|
|
85
|
+
onAction: (key) => onSelect(Number(key)),
|
|
86
|
+
children: numberToArray(count).map((pageNumber) => jsxRuntime.jsx(Menu.Menu.Item, {
|
|
87
|
+
"aria-label": `${pageNumber} of ${count}`,
|
|
88
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
89
|
+
variant: "body2",
|
|
90
|
+
color: "neutral.900",
|
|
91
|
+
children: `${pageNumber} of ${count}`
|
|
92
|
+
})
|
|
93
|
+
}, pageNumber))
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
86
96
|
}
|
|
87
97
|
function numberToArray(num) {
|
|
88
98
|
return Array.from({
|
|
@@ -96,24 +106,26 @@ function Pagination(props) {
|
|
|
96
106
|
if (children && utilities_react.getDisplayNameFromReactNode(children) !== PaginationDropdown.displayName) {
|
|
97
107
|
throw new Error(`children must be ${PaginationDropdown.displayName}`);
|
|
98
108
|
}
|
|
99
|
-
return
|
|
109
|
+
return jsxRuntime.jsx("nav", {
|
|
100
110
|
"aria-label": label,
|
|
101
|
-
className
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
className,
|
|
112
|
+
children: jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
113
|
+
wrap: false,
|
|
114
|
+
children: [jsxRuntime.jsx(PaginationButton, {
|
|
115
|
+
"aria-label": "Previous",
|
|
116
|
+
onPress: onPrevious,
|
|
117
|
+
isDisabled: !hasPrevious || isDisabled,
|
|
118
|
+
symbol: KeyboardDoubleArrowRight.KeyboardDoubleArrowLeft
|
|
119
|
+
}), children && React.cloneElement(children, {
|
|
120
|
+
isDisabled
|
|
121
|
+
}), jsxRuntime.jsx(PaginationButton, {
|
|
122
|
+
"aria-label": "Next",
|
|
123
|
+
onPress: onNext,
|
|
124
|
+
isDisabled: !hasNext || isDisabled,
|
|
125
|
+
symbol: KeyboardDoubleArrowRight.KeyboardDoubleArrowRight
|
|
126
|
+
})]
|
|
127
|
+
})
|
|
128
|
+
});
|
|
117
129
|
}
|
|
118
130
|
Pagination.Dropdown = PaginationDropdown;
|
|
119
131
|
exports.Pagination = Pagination;
|