@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/PlanCard/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -28,11 +31,12 @@ var __objRest = (source, exclude) => {
|
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
30
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
31
35
|
const React = require("react");
|
|
32
|
-
const Card = require("../__chunks__/Card-
|
|
33
|
-
const Text = require("../__chunks__/Text-
|
|
34
|
-
const VerticalStack = require("../__chunks__/VerticalStack-
|
|
35
|
-
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");
|
|
36
40
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
37
41
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
38
42
|
const useLink = require("../__chunks__/useLink-CChqhQkC.js");
|
|
@@ -48,90 +52,109 @@ const styles = {
|
|
|
48
52
|
};
|
|
49
53
|
function PlanCard(props) {
|
|
50
54
|
const _a = props, { children } = _a, cardProps = __objRest(_a, ["children"]);
|
|
51
|
-
return
|
|
55
|
+
return jsxRuntime.jsx(Card.Card, __spreadProps(__spreadValues({
|
|
52
56
|
variant: "outlined",
|
|
53
57
|
background: "neutral.000",
|
|
54
58
|
borderColor: "neutral.200",
|
|
55
59
|
borderRadius: "lg",
|
|
56
60
|
paddingY: "2",
|
|
57
61
|
paddingX: "4"
|
|
58
|
-
}, cardProps),
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
}, cardProps), {
|
|
63
|
+
children: jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
64
|
+
gap: "3",
|
|
65
|
+
children
|
|
66
|
+
})
|
|
67
|
+
}));
|
|
61
68
|
}
|
|
62
69
|
function PlanCardLink(_a) {
|
|
63
70
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
64
71
|
const ref = React.useRef(null);
|
|
65
72
|
const { isHovered, hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
66
73
|
const { linkProps } = useLink.$298d61e98472621b$export$dcf14c9974fe2767(props, ref);
|
|
67
|
-
return
|
|
74
|
+
return jsxRuntime.jsx("a", __spreadProps(__spreadValues({
|
|
68
75
|
ref,
|
|
69
76
|
className: styles.link
|
|
70
|
-
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, linkProps)),
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, linkProps)), {
|
|
78
|
+
children: typeof children === "function" ? children({
|
|
79
|
+
isHovered
|
|
80
|
+
}) : children
|
|
81
|
+
}));
|
|
73
82
|
}
|
|
74
83
|
function PlanCardButton(_c) {
|
|
75
84
|
var _d = _c, { children } = _d, props = __objRest(_d, ["children"]);
|
|
76
85
|
const { isHovered, hoverProps } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
77
|
-
return
|
|
86
|
+
return jsxRuntime.jsx(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
78
87
|
className: styles.button
|
|
79
|
-
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, props)),
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, props)), {
|
|
89
|
+
children: typeof children === "function" ? children({
|
|
90
|
+
isHovered
|
|
91
|
+
}) : children
|
|
92
|
+
}));
|
|
82
93
|
}
|
|
83
94
|
function PlanCardHeader({ children }) {
|
|
84
|
-
return
|
|
95
|
+
return jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
85
96
|
gap: "0.5",
|
|
86
|
-
inlineAlign: "center"
|
|
87
|
-
|
|
97
|
+
inlineAlign: "center",
|
|
98
|
+
children
|
|
99
|
+
});
|
|
88
100
|
}
|
|
89
101
|
function PlanCardCallout({ children }) {
|
|
90
|
-
return
|
|
91
|
-
className: styles.callout
|
|
92
|
-
|
|
102
|
+
return jsxRuntime.jsx("div", {
|
|
103
|
+
className: styles.callout,
|
|
104
|
+
children
|
|
105
|
+
});
|
|
93
106
|
}
|
|
94
107
|
function PlanCardTitle(_e) {
|
|
95
108
|
var _f = _e, { children } = _f, textProps = __objRest(_f, ["children"]);
|
|
96
|
-
return
|
|
109
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
97
110
|
as: "h3",
|
|
98
111
|
variant: "heading5",
|
|
99
112
|
color: "neutral.600"
|
|
100
|
-
}, textProps),
|
|
113
|
+
}, textProps), {
|
|
114
|
+
children
|
|
115
|
+
}));
|
|
101
116
|
}
|
|
102
117
|
function PlanCardPrice(_g) {
|
|
103
118
|
var _h = _g, { children } = _h, textProps = __objRest(_h, ["children"]);
|
|
104
|
-
return
|
|
119
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
105
120
|
variant: "heading2",
|
|
106
121
|
weight: "normal",
|
|
107
122
|
color: "neutral.800",
|
|
108
123
|
fontVariantNumeric: "tabular-nums"
|
|
109
|
-
}, textProps),
|
|
124
|
+
}, textProps), {
|
|
125
|
+
children
|
|
126
|
+
}));
|
|
110
127
|
}
|
|
111
128
|
function PlanCardCaption(_i) {
|
|
112
129
|
var _j = _i, { children } = _j, textProps = __objRest(_j, ["children"]);
|
|
113
|
-
return
|
|
130
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
114
131
|
variant: "caption",
|
|
115
132
|
color: "primary.800"
|
|
116
|
-
}, textProps),
|
|
133
|
+
}, textProps), {
|
|
134
|
+
children
|
|
135
|
+
}));
|
|
117
136
|
}
|
|
118
137
|
function PlanCardFeatures({ children }) {
|
|
119
|
-
return
|
|
138
|
+
return jsxRuntime.jsx(VerticalStack.VerticalStack, {
|
|
120
139
|
gap: "1",
|
|
121
|
-
inlineAlign: "center"
|
|
122
|
-
|
|
140
|
+
inlineAlign: "center",
|
|
141
|
+
children
|
|
142
|
+
});
|
|
123
143
|
}
|
|
124
144
|
function PlanCardFeature(_k) {
|
|
125
145
|
var _l = _k, { children } = _l, textProps = __objRest(_l, ["children"]);
|
|
126
|
-
return
|
|
146
|
+
return jsxRuntime.jsx(Text.Text, __spreadProps(__spreadValues({
|
|
127
147
|
variant: "body2",
|
|
128
148
|
color: "primary.800"
|
|
129
|
-
}, textProps),
|
|
149
|
+
}, textProps), {
|
|
150
|
+
children
|
|
151
|
+
}));
|
|
130
152
|
}
|
|
131
153
|
function PlanCardIllustration({ children }) {
|
|
132
|
-
return
|
|
133
|
-
className: styles.illustration
|
|
134
|
-
|
|
154
|
+
return jsxRuntime.jsx("div", {
|
|
155
|
+
className: styles.illustration,
|
|
156
|
+
children
|
|
157
|
+
});
|
|
135
158
|
}
|
|
136
159
|
PlanCard.Button = PlanCardButton;
|
|
137
160
|
PlanCard.Link = PlanCardLink;
|
package/PlanCard/index.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __objRest = (source, exclude) => {
|
|
18
21
|
var target = {};
|
|
19
22
|
for (var prop in source)
|
|
@@ -26,11 +29,12 @@ var __objRest = (source, exclude) => {
|
|
|
26
29
|
}
|
|
27
30
|
return target;
|
|
28
31
|
};
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
|
+
import { useRef } from "react";
|
|
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";
|
|
34
38
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
35
39
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
36
40
|
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-y6WGv96n.mjs";
|
|
@@ -46,90 +50,109 @@ const styles = {
|
|
|
46
50
|
};
|
|
47
51
|
function PlanCard(props) {
|
|
48
52
|
const _a = props, { children } = _a, cardProps = __objRest(_a, ["children"]);
|
|
49
|
-
return
|
|
53
|
+
return jsx(Card, __spreadProps(__spreadValues({
|
|
50
54
|
variant: "outlined",
|
|
51
55
|
background: "neutral.000",
|
|
52
56
|
borderColor: "neutral.200",
|
|
53
57
|
borderRadius: "lg",
|
|
54
58
|
paddingY: "2",
|
|
55
59
|
paddingX: "4"
|
|
56
|
-
}, cardProps),
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
}, cardProps), {
|
|
61
|
+
children: jsx(VerticalStack, {
|
|
62
|
+
gap: "3",
|
|
63
|
+
children
|
|
64
|
+
})
|
|
65
|
+
}));
|
|
59
66
|
}
|
|
60
67
|
function PlanCardLink(_a) {
|
|
61
68
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
62
69
|
const ref = useRef(null);
|
|
63
70
|
const { isHovered, hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
64
71
|
const { linkProps } = $298d61e98472621b$export$dcf14c9974fe2767(props, ref);
|
|
65
|
-
return
|
|
72
|
+
return jsx("a", __spreadProps(__spreadValues({
|
|
66
73
|
ref,
|
|
67
74
|
className: styles.link
|
|
68
|
-
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, linkProps)),
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, linkProps)), {
|
|
76
|
+
children: typeof children === "function" ? children({
|
|
77
|
+
isHovered
|
|
78
|
+
}) : children
|
|
79
|
+
}));
|
|
71
80
|
}
|
|
72
81
|
function PlanCardButton(_c) {
|
|
73
82
|
var _d = _c, { children } = _d, props = __objRest(_d, ["children"]);
|
|
74
83
|
const { isHovered, hoverProps } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
75
|
-
return
|
|
84
|
+
return jsx(UnstyledButton, __spreadProps(__spreadValues({
|
|
76
85
|
className: styles.button
|
|
77
|
-
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, props)),
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, props)), {
|
|
87
|
+
children: typeof children === "function" ? children({
|
|
88
|
+
isHovered
|
|
89
|
+
}) : children
|
|
90
|
+
}));
|
|
80
91
|
}
|
|
81
92
|
function PlanCardHeader({ children }) {
|
|
82
|
-
return
|
|
93
|
+
return jsx(VerticalStack, {
|
|
83
94
|
gap: "0.5",
|
|
84
|
-
inlineAlign: "center"
|
|
85
|
-
|
|
95
|
+
inlineAlign: "center",
|
|
96
|
+
children
|
|
97
|
+
});
|
|
86
98
|
}
|
|
87
99
|
function PlanCardCallout({ children }) {
|
|
88
|
-
return
|
|
89
|
-
className: styles.callout
|
|
90
|
-
|
|
100
|
+
return jsx("div", {
|
|
101
|
+
className: styles.callout,
|
|
102
|
+
children
|
|
103
|
+
});
|
|
91
104
|
}
|
|
92
105
|
function PlanCardTitle(_e) {
|
|
93
106
|
var _f = _e, { children } = _f, textProps = __objRest(_f, ["children"]);
|
|
94
|
-
return
|
|
107
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
95
108
|
as: "h3",
|
|
96
109
|
variant: "heading5",
|
|
97
110
|
color: "neutral.600"
|
|
98
|
-
}, textProps),
|
|
111
|
+
}, textProps), {
|
|
112
|
+
children
|
|
113
|
+
}));
|
|
99
114
|
}
|
|
100
115
|
function PlanCardPrice(_g) {
|
|
101
116
|
var _h = _g, { children } = _h, textProps = __objRest(_h, ["children"]);
|
|
102
|
-
return
|
|
117
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
103
118
|
variant: "heading2",
|
|
104
119
|
weight: "normal",
|
|
105
120
|
color: "neutral.800",
|
|
106
121
|
fontVariantNumeric: "tabular-nums"
|
|
107
|
-
}, textProps),
|
|
122
|
+
}, textProps), {
|
|
123
|
+
children
|
|
124
|
+
}));
|
|
108
125
|
}
|
|
109
126
|
function PlanCardCaption(_i) {
|
|
110
127
|
var _j = _i, { children } = _j, textProps = __objRest(_j, ["children"]);
|
|
111
|
-
return
|
|
128
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
112
129
|
variant: "caption",
|
|
113
130
|
color: "primary.800"
|
|
114
|
-
}, textProps),
|
|
131
|
+
}, textProps), {
|
|
132
|
+
children
|
|
133
|
+
}));
|
|
115
134
|
}
|
|
116
135
|
function PlanCardFeatures({ children }) {
|
|
117
|
-
return
|
|
136
|
+
return jsx(VerticalStack, {
|
|
118
137
|
gap: "1",
|
|
119
|
-
inlineAlign: "center"
|
|
120
|
-
|
|
138
|
+
inlineAlign: "center",
|
|
139
|
+
children
|
|
140
|
+
});
|
|
121
141
|
}
|
|
122
142
|
function PlanCardFeature(_k) {
|
|
123
143
|
var _l = _k, { children } = _l, textProps = __objRest(_l, ["children"]);
|
|
124
|
-
return
|
|
144
|
+
return jsx(Text, __spreadProps(__spreadValues({
|
|
125
145
|
variant: "body2",
|
|
126
146
|
color: "primary.800"
|
|
127
|
-
}, textProps),
|
|
147
|
+
}, textProps), {
|
|
148
|
+
children
|
|
149
|
+
}));
|
|
128
150
|
}
|
|
129
151
|
function PlanCardIllustration({ children }) {
|
|
130
|
-
return
|
|
131
|
-
className: styles.illustration
|
|
132
|
-
|
|
152
|
+
return jsx("div", {
|
|
153
|
+
className: styles.illustration,
|
|
154
|
+
children
|
|
155
|
+
});
|
|
133
156
|
}
|
|
134
157
|
PlanCard.Button = PlanCardButton;
|
|
135
158
|
PlanCard.Link = PlanCardLink;
|
package/ProductLayout/index.js
CHANGED
|
@@ -31,19 +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("react/jsx-runtime");
|
|
34
35
|
const React = require("react");
|
|
35
36
|
const Menu = require("../__chunks__/Menu-OacI_98l.js");
|
|
36
|
-
const Button = require("../__chunks__/Button-
|
|
37
|
-
const Icon = require("../__chunks__/Icon-
|
|
38
|
-
const Text = require("../__chunks__/Text-
|
|
39
|
-
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");
|
|
40
41
|
const utilities_css = require("../utilities/css.js");
|
|
41
|
-
const HelpMenu = require("../__chunks__/HelpMenu-
|
|
42
|
+
const HelpMenu = require("../__chunks__/HelpMenu-C2t8KQuU.js");
|
|
42
43
|
const tokens = require("../__chunks__/tokens-CJGKzS0r.js");
|
|
43
44
|
const useModalOverlay = require("../__chunks__/useModalOverlay-C4Gci3MA.js");
|
|
44
45
|
const Overlay = require("../__chunks__/Overlay-BNP_t3v4.js");
|
|
45
46
|
const useDialog = require("../__chunks__/useDialog-uxNR0maK.js");
|
|
46
|
-
const TabNav = require("../__chunks__/TabNav-
|
|
47
|
+
const TabNav = require("../__chunks__/TabNav-bVgyfEV7.js");
|
|
47
48
|
const useOverlayTrigger = require("../__chunks__/useOverlayTrigger-DP9RbCAF.js");
|
|
48
49
|
const ProductLayout$1 = "_ProductLayout_1orpb_4";
|
|
49
50
|
const body = "_body_1orpb_10";
|
|
@@ -53,9 +54,10 @@ const styles$4 = {
|
|
|
53
54
|
};
|
|
54
55
|
function ProductLayoutContent(props) {
|
|
55
56
|
const { children } = props;
|
|
56
|
-
return
|
|
57
|
-
className: styles$4.content
|
|
58
|
-
|
|
57
|
+
return jsxRuntime.jsx("main", {
|
|
58
|
+
className: styles$4.content,
|
|
59
|
+
children
|
|
60
|
+
});
|
|
59
61
|
}
|
|
60
62
|
const productLayoutMediaQuery = `(min-width: ${tokens.ezuiTokens["breakpoint.lg"]})`;
|
|
61
63
|
const largeScreen$1 = "_largeScreen_1tr81_4";
|
|
@@ -77,11 +79,15 @@ function LayoutScreenSizeRenderer(props) {
|
|
|
77
79
|
mediaQueries.removeEventListener("change", handleChange);
|
|
78
80
|
};
|
|
79
81
|
}, [onChange]);
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
83
|
+
children: [jsxRuntime.jsx("div", {
|
|
84
|
+
className: styles$3.largeScreen,
|
|
85
|
+
children: renderOnLargeScreen()
|
|
86
|
+
}), jsxRuntime.jsx("div", {
|
|
87
|
+
className: styles$3.smallScreen,
|
|
88
|
+
children: renderOnSmallScreen()
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
85
91
|
}
|
|
86
92
|
const ProductLayoutContext = React.createContext(null);
|
|
87
93
|
const useProductLayout = () => {
|
|
@@ -110,64 +116,80 @@ const styles$2 = {
|
|
|
110
116
|
actions
|
|
111
117
|
};
|
|
112
118
|
function ProductLayoutHeader(props) {
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
+
})
|
|
124
|
+
});
|
|
117
125
|
}
|
|
118
126
|
function SmallScreenHeader(props) {
|
|
119
127
|
const { helpMenuItems, onHelpMenuAction, primaryAction, renderSmallScreenLogo, title } = props;
|
|
120
128
|
const { sidebarTriggerProps } = useProductLayout();
|
|
121
|
-
return
|
|
122
|
-
className: utilities_css.classNames(styles$2.ProductLayoutHeader, styles$2.smallScreen)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
129
|
+
return jsxRuntime.jsxs("div", {
|
|
130
|
+
className: utilities_css.classNames(styles$2.ProductLayoutHeader, styles$2.smallScreen),
|
|
131
|
+
children: [jsxRuntime.jsxs("div", {
|
|
132
|
+
className: styles$2.smallScreenTopBar,
|
|
133
|
+
children: [jsxRuntime.jsxs("div", {
|
|
134
|
+
className: styles$2.logoMenu,
|
|
135
|
+
children: [jsxRuntime.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({
|
|
136
|
+
className: styles$2.logoMenuBtn
|
|
137
|
+
}, sidebarTriggerProps), {
|
|
138
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
139
|
+
symbol: Menu.Menu
|
|
140
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
141
|
+
visuallyHidden: true,
|
|
142
|
+
children: "Menu"
|
|
143
|
+
})]
|
|
144
|
+
})), renderSmallScreenLogo()]
|
|
145
|
+
}), jsxRuntime.jsx("div", {
|
|
146
|
+
className: styles$2.actions,
|
|
147
|
+
children: primaryAction ? jsxRuntime.jsx(Button.Button, {
|
|
148
|
+
size: "sm",
|
|
149
|
+
onPress: primaryAction.onAction,
|
|
150
|
+
isDisabled: primaryAction.isDisabled,
|
|
151
|
+
children: primaryAction.content
|
|
152
|
+
}) : jsxRuntime.jsx(HelpMenu.HelpMenu, {
|
|
153
|
+
items: helpMenuItems,
|
|
154
|
+
onAction: onHelpMenuAction
|
|
155
|
+
})
|
|
156
|
+
})]
|
|
157
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
158
|
+
as: "h2",
|
|
159
|
+
variant: "heading4",
|
|
160
|
+
children: title
|
|
161
|
+
})]
|
|
162
|
+
});
|
|
146
163
|
}
|
|
147
164
|
function LargeScreenHeader(props) {
|
|
148
165
|
const { helpMenuItems, onHelpMenuAction, primaryAction, secondaryAction, title } = props;
|
|
149
|
-
return
|
|
150
|
-
className: utilities_css.classNames(styles$2.ProductLayoutHeader, styles$2.largeScreen)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
166
|
+
return jsxRuntime.jsxs("div", {
|
|
167
|
+
className: utilities_css.classNames(styles$2.ProductLayoutHeader, styles$2.largeScreen),
|
|
168
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
169
|
+
as: "h2",
|
|
170
|
+
variant: "heading4",
|
|
171
|
+
children: title
|
|
172
|
+
}), jsxRuntime.jsxs("div", {
|
|
173
|
+
className: styles$2.actions,
|
|
174
|
+
children: [jsxRuntime.jsx(HelpMenu.HelpMenu, {
|
|
175
|
+
items: helpMenuItems,
|
|
176
|
+
onAction: onHelpMenuAction
|
|
177
|
+
}), (primaryAction || secondaryAction) && jsxRuntime.jsx(ActionDivider, {}), secondaryAction && jsxRuntime.jsx(Button.Button, {
|
|
178
|
+
variant: "outlined",
|
|
179
|
+
color: "support",
|
|
180
|
+
onPress: secondaryAction.onAction,
|
|
181
|
+
isDisabled: secondaryAction.isDisabled,
|
|
182
|
+
children: secondaryAction.content
|
|
183
|
+
}), primaryAction && jsxRuntime.jsx(Button.Button, {
|
|
184
|
+
onPress: primaryAction.onAction,
|
|
185
|
+
isDisabled: primaryAction.isDisabled,
|
|
186
|
+
children: primaryAction.content
|
|
187
|
+
})]
|
|
188
|
+
})]
|
|
189
|
+
});
|
|
168
190
|
}
|
|
169
191
|
function ActionDivider() {
|
|
170
|
-
return
|
|
192
|
+
return jsxRuntime.jsx("div", {
|
|
171
193
|
className: styles$2.divider
|
|
172
194
|
});
|
|
173
195
|
}
|
|
@@ -186,26 +208,31 @@ function ProductLayoutSidebar(props) {
|
|
|
186
208
|
sidebarTriggerState.close();
|
|
187
209
|
}
|
|
188
210
|
}, [sidebarTriggerState]);
|
|
189
|
-
return
|
|
211
|
+
return jsxRuntime.jsx(LayoutScreenSizeRenderer, {
|
|
190
212
|
onChange: handleScreenSizeChange,
|
|
191
|
-
renderOnLargeScreen: () =>
|
|
192
|
-
renderOnSmallScreen: () =>
|
|
213
|
+
renderOnLargeScreen: () => jsxRuntime.jsx(LargeScreenSidebar, __spreadValues({}, props)),
|
|
214
|
+
renderOnSmallScreen: () => jsxRuntime.jsx(SmallScreenSidebar, __spreadValues({}, props))
|
|
193
215
|
});
|
|
194
216
|
}
|
|
195
217
|
function LargeScreenSidebar(props) {
|
|
196
218
|
const { children } = props;
|
|
197
219
|
const { sidebarTriggerState } = useProductLayout();
|
|
198
220
|
const className = utilities_css.classNames(styles$1.ProductLayoutSidebar, sidebarTriggerState.isOpen && styles$1.open);
|
|
199
|
-
return
|
|
221
|
+
return jsxRuntime.jsx("div", {
|
|
200
222
|
role: "region",
|
|
201
223
|
"aria-label": "Sidebar",
|
|
202
|
-
className
|
|
203
|
-
|
|
224
|
+
className,
|
|
225
|
+
children
|
|
226
|
+
});
|
|
204
227
|
}
|
|
205
228
|
function SmallScreenSidebar(props) {
|
|
206
229
|
const { children } = props;
|
|
207
230
|
const { sidebarTriggerState } = useProductLayout();
|
|
208
|
-
return sidebarTriggerState.isOpen ?
|
|
231
|
+
return sidebarTriggerState.isOpen ? jsxRuntime.jsx(DialogSidebarOverlay, {
|
|
232
|
+
children: jsxRuntime.jsx(DialogSidebar, {
|
|
233
|
+
children
|
|
234
|
+
})
|
|
235
|
+
}) : null;
|
|
209
236
|
}
|
|
210
237
|
function DialogSidebar(props) {
|
|
211
238
|
const { children } = props;
|
|
@@ -215,10 +242,11 @@ function DialogSidebar(props) {
|
|
|
215
242
|
"aria-label": "Sidebar"
|
|
216
243
|
}, ref);
|
|
217
244
|
const className = utilities_css.classNames(styles$1.ProductLayoutSidebar, styles$1.open);
|
|
218
|
-
return
|
|
245
|
+
return jsxRuntime.jsx("div", __spreadProps(__spreadValues({}, dialogProps), {
|
|
219
246
|
ref,
|
|
220
|
-
className
|
|
221
|
-
|
|
247
|
+
className,
|
|
248
|
+
children
|
|
249
|
+
}));
|
|
222
250
|
}
|
|
223
251
|
function DialogSidebarOverlay(props) {
|
|
224
252
|
var _a;
|
|
@@ -229,13 +257,18 @@ function DialogSidebarOverlay(props) {
|
|
|
229
257
|
isDismissable: true,
|
|
230
258
|
isKeyboardDismissDisabled: false
|
|
231
259
|
}, sidebarTriggerState, ref);
|
|
232
|
-
return
|
|
233
|
-
portalContainer: (_a = layoutContainerRef.current) != null ? _a : void 0
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
260
|
+
return jsxRuntime.jsx(Overlay.$337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
261
|
+
portalContainer: (_a = layoutContainerRef.current) != null ? _a : void 0,
|
|
262
|
+
children: jsxRuntime.jsx("div", __spreadProps(__spreadValues({
|
|
263
|
+
className: styles$1.overlay
|
|
264
|
+
}, underlayProps), {
|
|
265
|
+
children: jsxRuntime.jsx("div", __spreadProps(__spreadValues({
|
|
266
|
+
ref
|
|
267
|
+
}, modalProps), {
|
|
268
|
+
children
|
|
269
|
+
}))
|
|
270
|
+
}))
|
|
271
|
+
});
|
|
239
272
|
}
|
|
240
273
|
const ProductLayoutTabbedContent$1 = "_ProductLayoutTabbedContent_1nnkc_4";
|
|
241
274
|
const styles = {
|
|
@@ -243,9 +276,14 @@ const styles = {
|
|
|
243
276
|
};
|
|
244
277
|
function ProductLayoutTabbedContent(props) {
|
|
245
278
|
const _a = props, { children, tabs } = _a, tabNavProps = __objRest(_a, ["children", "tabs"]);
|
|
246
|
-
return
|
|
247
|
-
className: styles.ProductLayoutTabbedContent
|
|
248
|
-
|
|
279
|
+
return jsxRuntime.jsxs("div", {
|
|
280
|
+
className: styles.ProductLayoutTabbedContent,
|
|
281
|
+
children: [jsxRuntime.jsx(TabNav.TabNav, __spreadProps(__spreadValues({}, tabNavProps), {
|
|
282
|
+
children: tabs
|
|
283
|
+
})), jsxRuntime.jsx("main", {
|
|
284
|
+
children
|
|
285
|
+
})]
|
|
286
|
+
});
|
|
249
287
|
}
|
|
250
288
|
function ProductLayout(props) {
|
|
251
289
|
const { sidebar, header, content } = props;
|
|
@@ -262,14 +300,17 @@ function ProductLayout(props) {
|
|
|
262
300
|
sidebarOverlayProps: overlayProps
|
|
263
301
|
};
|
|
264
302
|
}, [state, triggerProps, overlayProps]);
|
|
265
|
-
return
|
|
266
|
-
value: context
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
303
|
+
return jsxRuntime.jsx(ProductLayoutContext.Provider, {
|
|
304
|
+
value: context,
|
|
305
|
+
children: jsxRuntime.jsxs("div", {
|
|
306
|
+
className: styles$4.ProductLayout,
|
|
307
|
+
ref: layoutContainerRef,
|
|
308
|
+
children: [sidebar, jsxRuntime.jsxs("div", {
|
|
309
|
+
className: styles$4.body,
|
|
310
|
+
children: [header, content]
|
|
311
|
+
})]
|
|
312
|
+
})
|
|
313
|
+
});
|
|
273
314
|
}
|
|
274
315
|
ProductLayout.Sidebar = ProductLayoutSidebar;
|
|
275
316
|
ProductLayout.Header = ProductLayoutHeader;
|