@easypost/easy-ui 1.0.0-alpha.113 → 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/index.js +8 -8
- package/AlertBadge/index.mjs +8 -8
- 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 +6 -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/PlanCard/index.js
CHANGED
|
@@ -31,12 +31,12 @@ 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 Card = require("../__chunks__/Card-
|
|
37
|
-
const Text = require("../__chunks__/Text-
|
|
38
|
-
const VerticalStack = require("../__chunks__/VerticalStack-
|
|
39
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
36
|
+
const Card = require("../__chunks__/Card-LPIW5drP.js");
|
|
37
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
38
|
+
const VerticalStack = require("../__chunks__/VerticalStack-BHkiocKU.js");
|
|
39
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
40
40
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
41
41
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
42
42
|
const useLink = require("../__chunks__/useLink-CChqhQkC.js");
|
|
@@ -52,7 +52,7 @@ const styles = {
|
|
|
52
52
|
};
|
|
53
53
|
function PlanCard(props) {
|
|
54
54
|
const _a = props, { children } = _a, cardProps = __objRest(_a, ["children"]);
|
|
55
|
-
return jsxRuntime.
|
|
55
|
+
return jsxRuntime.jsx(Card.Card, __spreadProps(__spreadValues({
|
|
56
56
|
variant: "outlined",
|
|
57
57
|
background: "neutral.000",
|
|
58
58
|
borderColor: "neutral.200",
|
|
@@ -60,7 +60,7 @@ function PlanCard(props) {
|
|
|
60
60
|
paddingY: "2",
|
|
61
61
|
paddingX: "4"
|
|
62
62
|
}, cardProps), {
|
|
63
|
-
children: jsxRuntime.
|
|
63
|
+
children: jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
64
64
|
gap: "3",
|
|
65
65
|
children
|
|
66
66
|
})
|
|
@@ -71,7 +71,7 @@ function PlanCardLink(_a) {
|
|
|
71
71
|
const ref = React.useRef(null);
|
|
72
72
|
const { isHovered, hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
73
73
|
const { linkProps } = useLink.$298d61e98472621b$export$dcf14c9974fe2767(props, ref);
|
|
74
|
-
return jsxRuntime.
|
|
74
|
+
return jsxRuntime.jsx("a", __spreadProps(__spreadValues({
|
|
75
75
|
ref,
|
|
76
76
|
className: styles.link
|
|
77
77
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, linkProps)), {
|
|
@@ -83,7 +83,7 @@ function PlanCardLink(_a) {
|
|
|
83
83
|
function PlanCardButton(_c) {
|
|
84
84
|
var _d = _c, { children } = _d, props = __objRest(_d, ["children"]);
|
|
85
85
|
const { isHovered, hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
86
|
-
return jsxRuntime.
|
|
86
|
+
return jsxRuntime.jsx(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
87
87
|
className: styles.button
|
|
88
88
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, props)), {
|
|
89
89
|
children: typeof children === "function" ? children({
|
|
@@ -92,21 +92,21 @@ function PlanCardButton(_c) {
|
|
|
92
92
|
}));
|
|
93
93
|
}
|
|
94
94
|
function PlanCardHeader({ children }) {
|
|
95
|
-
return jsxRuntime.
|
|
95
|
+
return jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
96
96
|
gap: "0.5",
|
|
97
97
|
inlineAlign: "center",
|
|
98
98
|
children
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
function PlanCardCallout({ children }) {
|
|
102
|
-
return jsxRuntime.
|
|
102
|
+
return jsxRuntime.jsx("div", {
|
|
103
103
|
className: styles.callout,
|
|
104
104
|
children
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
function PlanCardTitle(_e) {
|
|
108
108
|
var _f = _e, { children } = _f, textProps = __objRest(_f, ["children"]);
|
|
109
|
-
return jsxRuntime.
|
|
109
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
110
110
|
as: "h3",
|
|
111
111
|
variant: "heading5",
|
|
112
112
|
color: "neutral.600"
|
|
@@ -116,7 +116,7 @@ function PlanCardTitle(_e) {
|
|
|
116
116
|
}
|
|
117
117
|
function PlanCardPrice(_g) {
|
|
118
118
|
var _h = _g, { children } = _h, textProps = __objRest(_h, ["children"]);
|
|
119
|
-
return jsxRuntime.
|
|
119
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
120
120
|
variant: "heading2",
|
|
121
121
|
weight: "normal",
|
|
122
122
|
color: "neutral.800",
|
|
@@ -127,7 +127,7 @@ function PlanCardPrice(_g) {
|
|
|
127
127
|
}
|
|
128
128
|
function PlanCardCaption(_i) {
|
|
129
129
|
var _j = _i, { children } = _j, textProps = __objRest(_j, ["children"]);
|
|
130
|
-
return jsxRuntime.
|
|
130
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
131
131
|
variant: "caption",
|
|
132
132
|
color: "primary.800"
|
|
133
133
|
}, textProps), {
|
|
@@ -135,7 +135,7 @@ function PlanCardCaption(_i) {
|
|
|
135
135
|
}));
|
|
136
136
|
}
|
|
137
137
|
function PlanCardFeatures({ children }) {
|
|
138
|
-
return jsxRuntime.
|
|
138
|
+
return jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
139
139
|
gap: "1",
|
|
140
140
|
inlineAlign: "center",
|
|
141
141
|
children
|
|
@@ -143,7 +143,7 @@ function PlanCardFeatures({ children }) {
|
|
|
143
143
|
}
|
|
144
144
|
function PlanCardFeature(_k) {
|
|
145
145
|
var _l = _k, { children } = _l, textProps = __objRest(_l, ["children"]);
|
|
146
|
-
return jsxRuntime.
|
|
146
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
147
147
|
variant: "body2",
|
|
148
148
|
color: "primary.800"
|
|
149
149
|
}, textProps), {
|
|
@@ -151,7 +151,7 @@ function PlanCardFeature(_k) {
|
|
|
151
151
|
}));
|
|
152
152
|
}
|
|
153
153
|
function PlanCardIllustration({ children }) {
|
|
154
|
-
return jsxRuntime.
|
|
154
|
+
return jsxRuntime.jsx("div", {
|
|
155
155
|
className: styles.illustration,
|
|
156
156
|
children
|
|
157
157
|
});
|
package/PlanCard/index.mjs
CHANGED
|
@@ -29,12 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
33
|
import { useRef } from "react";
|
|
34
|
-
import { C as Card } from "../__chunks__/Card-
|
|
35
|
-
import { T as Text } from "../__chunks__/Text-
|
|
36
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
37
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
34
|
+
import { C as Card } from "../__chunks__/Card-BgjWYPVY.mjs";
|
|
35
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
36
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-DoMqBfYD.mjs";
|
|
37
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
38
38
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
39
39
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
40
40
|
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-y6WGv96n.mjs";
|
|
@@ -50,7 +50,7 @@ const styles = {
|
|
|
50
50
|
};
|
|
51
51
|
function PlanCard(props) {
|
|
52
52
|
const _a = props, { children } = _a, cardProps = __objRest(_a, ["children"]);
|
|
53
|
-
return
|
|
53
|
+
return jsx(Card, __spreadProps(__spreadValues({
|
|
54
54
|
variant: "outlined",
|
|
55
55
|
background: "neutral.000",
|
|
56
56
|
borderColor: "neutral.200",
|
|
@@ -58,7 +58,7 @@ function PlanCard(props) {
|
|
|
58
58
|
paddingY: "2",
|
|
59
59
|
paddingX: "4"
|
|
60
60
|
}, cardProps), {
|
|
61
|
-
children:
|
|
61
|
+
children: jsx(VerticalStack, {
|
|
62
62
|
gap: "3",
|
|
63
63
|
children
|
|
64
64
|
})
|
|
@@ -69,7 +69,7 @@ function PlanCardLink(_a) {
|
|
|
69
69
|
const ref = useRef(null);
|
|
70
70
|
const { isHovered, hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
71
71
|
const { linkProps } = $298d61e98472621b$export$dcf14c9974fe2767(props, ref);
|
|
72
|
-
return
|
|
72
|
+
return jsx("a", __spreadProps(__spreadValues({
|
|
73
73
|
ref,
|
|
74
74
|
className: styles.link
|
|
75
75
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, linkProps)), {
|
|
@@ -81,7 +81,7 @@ function PlanCardLink(_a) {
|
|
|
81
81
|
function PlanCardButton(_c) {
|
|
82
82
|
var _d = _c, { children } = _d, props = __objRest(_d, ["children"]);
|
|
83
83
|
const { isHovered, hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
84
|
-
return
|
|
84
|
+
return jsx(UnstyledButton, __spreadProps(__spreadValues({
|
|
85
85
|
className: styles.button
|
|
86
86
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, props)), {
|
|
87
87
|
children: typeof children === "function" ? children({
|
|
@@ -90,21 +90,21 @@ function PlanCardButton(_c) {
|
|
|
90
90
|
}));
|
|
91
91
|
}
|
|
92
92
|
function PlanCardHeader({ children }) {
|
|
93
|
-
return
|
|
93
|
+
return jsx(VerticalStack, {
|
|
94
94
|
gap: "0.5",
|
|
95
95
|
inlineAlign: "center",
|
|
96
96
|
children
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
function PlanCardCallout({ children }) {
|
|
100
|
-
return
|
|
100
|
+
return jsx("div", {
|
|
101
101
|
className: styles.callout,
|
|
102
102
|
children
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
function PlanCardTitle(_e) {
|
|
106
106
|
var _f = _e, { children } = _f, textProps = __objRest(_f, ["children"]);
|
|
107
|
-
return
|
|
107
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
108
108
|
as: "h3",
|
|
109
109
|
variant: "heading5",
|
|
110
110
|
color: "neutral.600"
|
|
@@ -114,7 +114,7 @@ function PlanCardTitle(_e) {
|
|
|
114
114
|
}
|
|
115
115
|
function PlanCardPrice(_g) {
|
|
116
116
|
var _h = _g, { children } = _h, textProps = __objRest(_h, ["children"]);
|
|
117
|
-
return
|
|
117
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
118
118
|
variant: "heading2",
|
|
119
119
|
weight: "normal",
|
|
120
120
|
color: "neutral.800",
|
|
@@ -125,7 +125,7 @@ function PlanCardPrice(_g) {
|
|
|
125
125
|
}
|
|
126
126
|
function PlanCardCaption(_i) {
|
|
127
127
|
var _j = _i, { children } = _j, textProps = __objRest(_j, ["children"]);
|
|
128
|
-
return
|
|
128
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
129
129
|
variant: "caption",
|
|
130
130
|
color: "primary.800"
|
|
131
131
|
}, textProps), {
|
|
@@ -133,7 +133,7 @@ function PlanCardCaption(_i) {
|
|
|
133
133
|
}));
|
|
134
134
|
}
|
|
135
135
|
function PlanCardFeatures({ children }) {
|
|
136
|
-
return
|
|
136
|
+
return jsx(VerticalStack, {
|
|
137
137
|
gap: "1",
|
|
138
138
|
inlineAlign: "center",
|
|
139
139
|
children
|
|
@@ -141,7 +141,7 @@ function PlanCardFeatures({ children }) {
|
|
|
141
141
|
}
|
|
142
142
|
function PlanCardFeature(_k) {
|
|
143
143
|
var _l = _k, { children } = _l, textProps = __objRest(_l, ["children"]);
|
|
144
|
-
return
|
|
144
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
145
145
|
variant: "body2",
|
|
146
146
|
color: "primary.800"
|
|
147
147
|
}, textProps), {
|
|
@@ -149,7 +149,7 @@ function PlanCardFeature(_k) {
|
|
|
149
149
|
}));
|
|
150
150
|
}
|
|
151
151
|
function PlanCardIllustration({ children }) {
|
|
152
|
-
return
|
|
152
|
+
return jsx("div", {
|
|
153
153
|
className: styles.illustration,
|
|
154
154
|
children
|
|
155
155
|
});
|
package/ProductLayout/index.js
CHANGED
|
@@ -31,20 +31,20 @@ 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
36
|
const Menu = require("../__chunks__/Menu-OacI_98l.js");
|
|
37
|
-
const Button = require("../__chunks__/Button-
|
|
38
|
-
const Icon = require("../__chunks__/Icon-
|
|
39
|
-
const Text = require("../__chunks__/Text-
|
|
40
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
37
|
+
const Button = require("../__chunks__/Button-CQdi4TMV.js");
|
|
38
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
39
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
40
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
41
41
|
const utilities_css = require("../utilities/css.js");
|
|
42
|
-
const HelpMenu = require("../__chunks__/HelpMenu-
|
|
42
|
+
const HelpMenu = require("../__chunks__/HelpMenu-C2t8KQuU.js");
|
|
43
43
|
const tokens = require("../__chunks__/tokens-CJGKzS0r.js");
|
|
44
44
|
const useModalOverlay = require("../__chunks__/useModalOverlay-C4Gci3MA.js");
|
|
45
45
|
const Overlay = require("../__chunks__/Overlay-BNP_t3v4.js");
|
|
46
46
|
const useDialog = require("../__chunks__/useDialog-uxNR0maK.js");
|
|
47
|
-
const TabNav = require("../__chunks__/TabNav-
|
|
47
|
+
const TabNav = require("../__chunks__/TabNav-bVgyfEV7.js");
|
|
48
48
|
const useOverlayTrigger = require("../__chunks__/useOverlayTrigger-DP9RbCAF.js");
|
|
49
49
|
const ProductLayout$1 = "_ProductLayout_1orpb_4";
|
|
50
50
|
const body = "_body_1orpb_10";
|
|
@@ -54,7 +54,7 @@ const styles$4 = {
|
|
|
54
54
|
};
|
|
55
55
|
function ProductLayoutContent(props) {
|
|
56
56
|
const { children } = props;
|
|
57
|
-
return jsxRuntime.
|
|
57
|
+
return jsxRuntime.jsx("main", {
|
|
58
58
|
className: styles$4.content,
|
|
59
59
|
children
|
|
60
60
|
});
|
|
@@ -79,11 +79,11 @@ function LayoutScreenSizeRenderer(props) {
|
|
|
79
79
|
mediaQueries.removeEventListener("change", handleChange);
|
|
80
80
|
};
|
|
81
81
|
}, [onChange]);
|
|
82
|
-
return jsxRuntime.
|
|
83
|
-
children: [jsxRuntime.
|
|
82
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
83
|
+
children: [jsxRuntime.jsx("div", {
|
|
84
84
|
className: styles$3.largeScreen,
|
|
85
85
|
children: renderOnLargeScreen()
|
|
86
|
-
}), jsxRuntime.
|
|
86
|
+
}), jsxRuntime.jsx("div", {
|
|
87
87
|
className: styles$3.smallScreen,
|
|
88
88
|
children: renderOnSmallScreen()
|
|
89
89
|
})]
|
|
@@ -116,45 +116,45 @@ const styles$2 = {
|
|
|
116
116
|
actions
|
|
117
117
|
};
|
|
118
118
|
function ProductLayoutHeader(props) {
|
|
119
|
-
return jsxRuntime.
|
|
120
|
-
children: jsxRuntime.
|
|
121
|
-
renderOnLargeScreen: () => jsxRuntime.
|
|
122
|
-
renderOnSmallScreen: () => jsxRuntime.
|
|
119
|
+
return jsxRuntime.jsx("header", {
|
|
120
|
+
children: jsxRuntime.jsx(LayoutScreenSizeRenderer, {
|
|
121
|
+
renderOnLargeScreen: () => jsxRuntime.jsx(LargeScreenHeader, __spreadValues({}, props)),
|
|
122
|
+
renderOnSmallScreen: () => jsxRuntime.jsx(SmallScreenHeader, __spreadValues({}, props))
|
|
123
123
|
})
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function SmallScreenHeader(props) {
|
|
127
127
|
const { helpMenuItems, onHelpMenuAction, primaryAction, renderSmallScreenLogo, title } = props;
|
|
128
128
|
const { sidebarTriggerProps } = useProductLayout();
|
|
129
|
-
return jsxRuntime.
|
|
129
|
+
return jsxRuntime.jsxs("div", {
|
|
130
130
|
className: utilities_css.classNames(styles$2.ProductLayoutHeader, styles$2.smallScreen),
|
|
131
|
-
children: [jsxRuntime.
|
|
131
|
+
children: [jsxRuntime.jsxs("div", {
|
|
132
132
|
className: styles$2.smallScreenTopBar,
|
|
133
|
-
children: [jsxRuntime.
|
|
133
|
+
children: [jsxRuntime.jsxs("div", {
|
|
134
134
|
className: styles$2.logoMenu,
|
|
135
|
-
children: [jsxRuntime.
|
|
135
|
+
children: [jsxRuntime.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
136
136
|
className: styles$2.logoMenuBtn
|
|
137
137
|
}, sidebarTriggerProps), {
|
|
138
|
-
children: [jsxRuntime.
|
|
138
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
139
139
|
symbol: Menu.Menu
|
|
140
|
-
}), jsxRuntime.
|
|
140
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
141
141
|
visuallyHidden: true,
|
|
142
142
|
children: "Menu"
|
|
143
143
|
})]
|
|
144
144
|
})), renderSmallScreenLogo()]
|
|
145
|
-
}), jsxRuntime.
|
|
145
|
+
}), jsxRuntime.jsx("div", {
|
|
146
146
|
className: styles$2.actions,
|
|
147
|
-
children: primaryAction ? jsxRuntime.
|
|
147
|
+
children: primaryAction ? jsxRuntime.jsx(Button.Button, {
|
|
148
148
|
size: "sm",
|
|
149
149
|
onPress: primaryAction.onAction,
|
|
150
150
|
isDisabled: primaryAction.isDisabled,
|
|
151
151
|
children: primaryAction.content
|
|
152
|
-
}) : jsxRuntime.
|
|
152
|
+
}) : jsxRuntime.jsx(HelpMenu.HelpMenu, {
|
|
153
153
|
items: helpMenuItems,
|
|
154
154
|
onAction: onHelpMenuAction
|
|
155
155
|
})
|
|
156
156
|
})]
|
|
157
|
-
}), jsxRuntime.
|
|
157
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
158
158
|
as: "h2",
|
|
159
159
|
variant: "heading4",
|
|
160
160
|
children: title
|
|
@@ -163,24 +163,24 @@ function SmallScreenHeader(props) {
|
|
|
163
163
|
}
|
|
164
164
|
function LargeScreenHeader(props) {
|
|
165
165
|
const { helpMenuItems, onHelpMenuAction, primaryAction, secondaryAction, title } = props;
|
|
166
|
-
return jsxRuntime.
|
|
166
|
+
return jsxRuntime.jsxs("div", {
|
|
167
167
|
className: utilities_css.classNames(styles$2.ProductLayoutHeader, styles$2.largeScreen),
|
|
168
|
-
children: [jsxRuntime.
|
|
168
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
169
169
|
as: "h2",
|
|
170
170
|
variant: "heading4",
|
|
171
171
|
children: title
|
|
172
|
-
}), jsxRuntime.
|
|
172
|
+
}), jsxRuntime.jsxs("div", {
|
|
173
173
|
className: styles$2.actions,
|
|
174
|
-
children: [jsxRuntime.
|
|
174
|
+
children: [jsxRuntime.jsx(HelpMenu.HelpMenu, {
|
|
175
175
|
items: helpMenuItems,
|
|
176
176
|
onAction: onHelpMenuAction
|
|
177
|
-
}), (primaryAction || secondaryAction) && jsxRuntime.
|
|
177
|
+
}), (primaryAction || secondaryAction) && jsxRuntime.jsx(ActionDivider, {}), secondaryAction && jsxRuntime.jsx(Button.Button, {
|
|
178
178
|
variant: "outlined",
|
|
179
179
|
color: "support",
|
|
180
180
|
onPress: secondaryAction.onAction,
|
|
181
181
|
isDisabled: secondaryAction.isDisabled,
|
|
182
182
|
children: secondaryAction.content
|
|
183
|
-
}), primaryAction && jsxRuntime.
|
|
183
|
+
}), primaryAction && jsxRuntime.jsx(Button.Button, {
|
|
184
184
|
onPress: primaryAction.onAction,
|
|
185
185
|
isDisabled: primaryAction.isDisabled,
|
|
186
186
|
children: primaryAction.content
|
|
@@ -189,7 +189,7 @@ function LargeScreenHeader(props) {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
function ActionDivider() {
|
|
192
|
-
return jsxRuntime.
|
|
192
|
+
return jsxRuntime.jsx("div", {
|
|
193
193
|
className: styles$2.divider
|
|
194
194
|
});
|
|
195
195
|
}
|
|
@@ -208,17 +208,17 @@ function ProductLayoutSidebar(props) {
|
|
|
208
208
|
sidebarTriggerState.close();
|
|
209
209
|
}
|
|
210
210
|
}, [sidebarTriggerState]);
|
|
211
|
-
return jsxRuntime.
|
|
211
|
+
return jsxRuntime.jsx(LayoutScreenSizeRenderer, {
|
|
212
212
|
onChange: handleScreenSizeChange,
|
|
213
|
-
renderOnLargeScreen: () => jsxRuntime.
|
|
214
|
-
renderOnSmallScreen: () => jsxRuntime.
|
|
213
|
+
renderOnLargeScreen: () => jsxRuntime.jsx(LargeScreenSidebar, __spreadValues({}, props)),
|
|
214
|
+
renderOnSmallScreen: () => jsxRuntime.jsx(SmallScreenSidebar, __spreadValues({}, props))
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
function LargeScreenSidebar(props) {
|
|
218
218
|
const { children } = props;
|
|
219
219
|
const { sidebarTriggerState } = useProductLayout();
|
|
220
220
|
const className = utilities_css.classNames(styles$1.ProductLayoutSidebar, sidebarTriggerState.isOpen && styles$1.open);
|
|
221
|
-
return jsxRuntime.
|
|
221
|
+
return jsxRuntime.jsx("div", {
|
|
222
222
|
role: "region",
|
|
223
223
|
"aria-label": "Sidebar",
|
|
224
224
|
className,
|
|
@@ -228,8 +228,8 @@ function LargeScreenSidebar(props) {
|
|
|
228
228
|
function SmallScreenSidebar(props) {
|
|
229
229
|
const { children } = props;
|
|
230
230
|
const { sidebarTriggerState } = useProductLayout();
|
|
231
|
-
return sidebarTriggerState.isOpen ? jsxRuntime.
|
|
232
|
-
children: jsxRuntime.
|
|
231
|
+
return sidebarTriggerState.isOpen ? jsxRuntime.jsx(DialogSidebarOverlay, {
|
|
232
|
+
children: jsxRuntime.jsx(DialogSidebar, {
|
|
233
233
|
children
|
|
234
234
|
})
|
|
235
235
|
}) : null;
|
|
@@ -242,7 +242,7 @@ function DialogSidebar(props) {
|
|
|
242
242
|
"aria-label": "Sidebar"
|
|
243
243
|
}, ref);
|
|
244
244
|
const className = utilities_css.classNames(styles$1.ProductLayoutSidebar, styles$1.open);
|
|
245
|
-
return jsxRuntime.
|
|
245
|
+
return jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, dialogProps), {
|
|
246
246
|
ref,
|
|
247
247
|
className,
|
|
248
248
|
children
|
|
@@ -257,12 +257,12 @@ function DialogSidebarOverlay(props) {
|
|
|
257
257
|
isDismissable: true,
|
|
258
258
|
isKeyboardDismissDisabled: false
|
|
259
259
|
}, sidebarTriggerState, ref);
|
|
260
|
-
return jsxRuntime.
|
|
260
|
+
return jsxRuntime.jsx(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
261
261
|
portalContainer: (_a = layoutContainerRef.current) != null ? _a : void 0,
|
|
262
|
-
children: jsxRuntime.
|
|
262
|
+
children: jsxRuntime.jsx("div", __spreadProps(__spreadValues({
|
|
263
263
|
className: styles$1.overlay
|
|
264
264
|
}, underlayProps), {
|
|
265
|
-
children: jsxRuntime.
|
|
265
|
+
children: jsxRuntime.jsx("div", __spreadProps(__spreadValues({
|
|
266
266
|
ref
|
|
267
267
|
}, modalProps), {
|
|
268
268
|
children
|
|
@@ -276,11 +276,11 @@ const styles = {
|
|
|
276
276
|
};
|
|
277
277
|
function ProductLayoutTabbedContent(props) {
|
|
278
278
|
const _a = props, { children, tabs } = _a, tabNavProps = __objRest(_a, ["children", "tabs"]);
|
|
279
|
-
return jsxRuntime.
|
|
279
|
+
return jsxRuntime.jsxs("div", {
|
|
280
280
|
className: styles.ProductLayoutTabbedContent,
|
|
281
|
-
children: [jsxRuntime.
|
|
281
|
+
children: [jsxRuntime.jsx(TabNav.TabNav, __spreadProps(__spreadValues({}, tabNavProps), {
|
|
282
282
|
children: tabs
|
|
283
|
-
})), jsxRuntime.
|
|
283
|
+
})), jsxRuntime.jsx("main", {
|
|
284
284
|
children
|
|
285
285
|
})]
|
|
286
286
|
});
|
|
@@ -300,12 +300,12 @@ function ProductLayout(props) {
|
|
|
300
300
|
sidebarOverlayProps: overlayProps
|
|
301
301
|
};
|
|
302
302
|
}, [state, triggerProps, overlayProps]);
|
|
303
|
-
return jsxRuntime.
|
|
303
|
+
return jsxRuntime.jsx(ProductLayoutContext.Provider, {
|
|
304
304
|
value: context,
|
|
305
|
-
children: jsxRuntime.
|
|
305
|
+
children: jsxRuntime.jsxs("div", {
|
|
306
306
|
className: styles$4.ProductLayout,
|
|
307
307
|
ref: layoutContainerRef,
|
|
308
|
-
children: [sidebar, jsxRuntime.
|
|
308
|
+
children: [sidebar, jsxRuntime.jsxs("div", {
|
|
309
309
|
className: styles$4.body,
|
|
310
310
|
children: [header, content]
|
|
311
311
|
})]
|