@easypost/easy-ui 1.0.0-alpha.113 → 1.0.0-alpha.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AlertBadge/AlertBadge.d.ts +1 -1
- package/AlertBadge/AlertBadge.d.ts.map +1 -1
- package/AlertBadge/index.js +11 -9
- package/AlertBadge/index.mjs +11 -9
- package/Badge/index.js +12 -12
- package/Badge/index.mjs +12 -12
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +7 -7
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +12 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/CheckableCard/index.js +14 -14
- package/CheckableCard/index.mjs +14 -14
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +30 -30
- package/CodeBlock/index.mjs +30 -30
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +24 -24
- package/ColorPicker/index.mjs +24 -24
- package/CustomerPortalLayout/index.js +36 -36
- package/CustomerPortalLayout/index.mjs +36 -36
- package/DataGrid/index.js +78 -78
- package/DataGrid/index.mjs +78 -78
- package/DatePicker/index.js +6 -6
- package/DatePicker/index.mjs +6 -6
- package/DateRangePicker/index.js +6 -6
- package/DateRangePicker/index.mjs +6 -6
- package/Drawer/index.js +24 -24
- package/Drawer/index.mjs +24 -24
- package/DropdownButton/index.js +7 -7
- package/DropdownButton/index.mjs +7 -7
- package/EmptyStateCard/index.js +18 -18
- package/EmptyStateCard/index.mjs +18 -18
- package/FocusedProductLayout/index.js +38 -38
- package/FocusedProductLayout/index.mjs +38 -38
- package/ForgeLayout/index.js +91 -91
- package/ForgeLayout/index.mjs +92 -92
- package/FormLayout/index.js +11 -11
- package/FormLayout/index.mjs +11 -11
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/index.js +7 -7
- package/IconButton/index.mjs +7 -7
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +39 -39
- package/Modal/index.mjs +39 -39
- package/MultiSelect/index.js +30 -30
- package/MultiSelect/index.mjs +31 -31
- package/MultipageSection/index.js +28 -28
- package/MultipageSection/index.mjs +28 -28
- package/NexusLayout/index.js +44 -44
- package/NexusLayout/index.mjs +44 -44
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +21 -21
- package/Pagination/index.mjs +21 -21
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +88 -88
- package/PlanCard/illustrations/Building01/index.mjs +88 -88
- package/PlanCard/illustrations/Building02/index.js +33 -33
- package/PlanCard/illustrations/Building02/index.mjs +33 -33
- package/PlanCard/illustrations/Building03/index.js +120 -120
- package/PlanCard/illustrations/Building03/index.mjs +120 -120
- package/PlanCard/illustrations/Building04/index.js +236 -236
- package/PlanCard/illustrations/Building04/index.mjs +236 -236
- package/PlanCard/index.js +17 -17
- package/PlanCard/index.mjs +17 -17
- package/ProductLayout/index.js +48 -48
- package/ProductLayout/index.mjs +48 -48
- package/Provider/index.js +7 -7
- package/Provider/index.mjs +7 -7
- package/RadioButtonGroup/index.js +5 -5
- package/RadioButtonGroup/index.mjs +5 -5
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +70 -70
- package/SearchNav/index.mjs +71 -71
- package/SectionCard/index.js +16 -16
- package/SectionCard/index.mjs +16 -16
- package/Select/index.js +20 -20
- package/Select/index.mjs +20 -20
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +11 -11
- package/SplitToggleCard/index.mjs +11 -11
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +7 -7
- package/TabPanels/index.mjs +7 -7
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +3 -3
- package/Textarea/index.mjs +3 -3
- package/Theme/index.js +1 -1
- package/Theme/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +7 -7
- package/ToggleCard/index.mjs +7 -7
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +39 -39
- package/VerticalNav/index.mjs +39 -39
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-C3vDXJsJ.js → Button-CQdi4TMV.js} +7 -7
- package/__chunks__/{Button-Dexauftx.mjs → Button-JL1YQxJ5.mjs} +7 -7
- package/__chunks__/{Calendar-BEbdigVB.js → Calendar-C9zdRov0.js} +3 -3
- package/__chunks__/{Calendar-BOxw8lwX.mjs → Calendar-DLzAtdfg.mjs} +3 -3
- package/__chunks__/{CalendarBase-3a9i7QNo.mjs → CalendarBase-DJ38_qK6.mjs} +32 -32
- package/__chunks__/{CalendarBase-Bx8bdXeT.js → CalendarBase-M-f289w8.js} +32 -32
- package/__chunks__/{Card-8778avMv.mjs → Card-BgjWYPVY.mjs} +5 -5
- package/__chunks__/{Card-DIZFYg6E.js → Card-LPIW5drP.js} +5 -5
- package/__chunks__/{Checkbox-DFWhjlaO.js → Checkbox-B_-6lfKk.js} +14 -14
- package/__chunks__/{Checkbox-C-NlI-Ym.mjs → Checkbox-DcaO0fC3.mjs} +14 -14
- package/__chunks__/{CodeSnippet-BCOMwE07.js → CodeSnippet-25l4r2Gh.js} +5 -5
- package/__chunks__/{CodeSnippet-CWnMHdVu.mjs → CodeSnippet-B3nsMpvq.mjs} +5 -5
- package/__chunks__/{DatePickerBase-C4PwUr9x.mjs → DatePickerBase-BQc8LKWg.mjs} +30 -30
- package/__chunks__/{DatePickerBase-XoRply_u.js → DatePickerBase-BYYfRTEY.js} +30 -30
- package/__chunks__/{EasyPostLogo-D3WNdZ29.js → EasyPostLogo-C9-Q0lSn.js} +5 -5
- package/__chunks__/{EasyPostLogo-tf6CCEAq.mjs → EasyPostLogo-DgIgAGa3.mjs} +5 -5
- package/__chunks__/{HelpMenu-8r0cjx5z.mjs → HelpMenu-BZRV42ab.mjs} +14 -14
- package/__chunks__/{HelpMenu-DBo_fklD.js → HelpMenu-C2t8KQuU.js} +14 -14
- package/__chunks__/{HorizontalGrid-BAvSeg39.js → HorizontalGrid-CAoDcmPW.js} +2 -2
- package/__chunks__/{HorizontalGrid-C4MBFEH-.mjs → HorizontalGrid-DbLeJBt8.mjs} +2 -2
- package/__chunks__/{HorizontalStack-BkE82C73.mjs → HorizontalStack-CJavrBHm.mjs} +2 -2
- package/__chunks__/{HorizontalStack-DidoI4Ks.js → HorizontalStack-CWdKKY8L.js} +2 -2
- package/__chunks__/{Icon-DzTns8u5.mjs → Icon-BIpaQJ_I.mjs} +3 -3
- package/__chunks__/{Icon-BVa5ddiD.js → Icon-BRlbo3RF.js} +3 -3
- package/__chunks__/{InputCaption-Dkyn1sg6.js → InputCaption-CccF4ynE.js} +6 -6
- package/__chunks__/{InputCaption-B8bZH6sX.mjs → InputCaption-DoyGkWQe.mjs} +6 -6
- package/__chunks__/{InputField-BTrYBVAD.mjs → InputField-CAY9O90X.mjs} +21 -21
- package/__chunks__/{InputField-Dvkk5R1K.js → InputField-DGb4ZDoR.js} +21 -21
- package/__chunks__/{InputIcon-BLJ6dx_5.mjs → InputIcon-CEATdJ1j.mjs} +4 -4
- package/__chunks__/{InputIcon-BSIAXX9k.js → InputIcon-DDKBJ_Tk.js} +4 -4
- package/__chunks__/{KebabButton-DSK0ISAn.mjs → KebabButton-D-5Mjaj0.mjs} +7 -7
- package/__chunks__/{KebabButton-3FnxY-Fz.js → KebabButton-TbapERgy.js} +7 -7
- package/__chunks__/{Menu-C2F4fvhd.mjs → Menu-Ci1FGh8B.mjs} +29 -29
- package/__chunks__/{Menu-Du8SsMeJ.js → Menu-MGDv1tob.js} +29 -29
- package/__chunks__/{Notification-CeJn5Qq1.js → Notification-DDQHWloB.js} +21 -21
- package/__chunks__/{Notification-CgUT2gv6.mjs → Notification-DnNx0rb6.mjs} +21 -21
- package/__chunks__/{PillGroup-rTS853Rr.js → PillGroup-BK8VCf3B.js} +14 -14
- package/__chunks__/{PillGroup-EJ8t8SrT.mjs → PillGroup-DN72MPhg.mjs} +14 -14
- package/__chunks__/{RadioGroup-DBgIqOkZ.mjs → RadioGroup-BfKaJnSo.mjs} +19 -19
- package/__chunks__/{RadioGroup-BFqH1Csi.js → RadioGroup-BiCqtR0F.js} +19 -19
- package/__chunks__/{RangeCalendar-BSsmX9l4.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -3
- package/__chunks__/{RangeCalendar-Do2nei5A.js → RangeCalendar-Dz6LyRYS.js} +3 -3
- package/__chunks__/{SelectOverlay-DjiJHthj.js → SelectOverlay-Bva0SG8D.js} +20 -20
- package/__chunks__/{SelectOverlay-DUIIhF4t.mjs → SelectOverlay-q23ZLLi4.mjs} +20 -20
- package/__chunks__/{SelectorErrorTooltip-BMxbuFiM.js → SelectorErrorTooltip-BNLrFRLN.js} +8 -8
- package/__chunks__/{SelectorErrorTooltip-BC-1JoX3.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +8 -8
- package/__chunks__/{Spinner-2PFCOK3I.mjs → Spinner-COsekFr1.mjs} +7 -7
- package/__chunks__/{Spinner-Dd68v9QX.js → Spinner-vRnrcEz0.js} +7 -7
- package/__chunks__/{Stepper-q3YNLglj.mjs → Stepper-DlI-16t-.mjs} +17 -17
- package/__chunks__/{Stepper-BZ90AIx0.js → Stepper-lhcjfVFY.js} +17 -17
- package/__chunks__/{TabNav-BnpNl7tj.mjs → TabNav-BNhQF0b0.mjs} +4 -4
- package/__chunks__/{TabNav-CLVG0bL2.js → TabNav-bVgyfEV7.js} +4 -4
- package/__chunks__/{Tabs-CtyYEye0.mjs → Tabs-BaROnbKg.mjs} +14 -14
- package/__chunks__/{Tabs-5_61DIBw.js → Tabs-DSngzN9A.js} +14 -14
- package/__chunks__/{Text-u9mYLeWj.mjs → Text-D6oT5WJQ.mjs} +2 -2
- package/__chunks__/{Text-C4CEsglh.js → Text-DkzMEqky.js} +2 -2
- package/__chunks__/{TextField-D1JGaTQv.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-DE1vPtQm.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-unLHjjnm.js → Theme-C2nSZUpG.js} +10 -10
- package/__chunks__/{Theme-CyUCrGdN.mjs → Theme-M__gFMM3.mjs} +10 -10
- package/__chunks__/{Toggle-BHzAGPDh.js → Toggle-BmJjrdVn.js} +11 -11
- package/__chunks__/{Toggle-DioYP2KQ.mjs → Toggle-DlDQ7rr2.mjs} +11 -11
- package/__chunks__/{Tooltip-COjtKErw.js → Tooltip-BSMvNula.js} +9 -9
- package/__chunks__/{Tooltip-BKGkKnOx.mjs → Tooltip-BXRi0h4E.mjs} +9 -9
- package/__chunks__/{UnstyledButton-_YQekhlm.js → UnstyledButton-DW8CjaXN.js} +2 -2
- package/__chunks__/{UnstyledButton-BCg7eEyP.mjs → UnstyledButton-DxJLvL-G.mjs} +2 -2
- package/__chunks__/{VerticalStack-CunLpHRv.js → VerticalStack-BHkiocKU.js} +2 -2
- package/__chunks__/{VerticalStack-Cbdpucbh.mjs → VerticalStack-DoMqBfYD.mjs} +2 -2
- package/__chunks__/{useEdgeInterceptors-BBmo6MI4.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +6 -6
- package/__chunks__/{useEdgeInterceptors-BLxn3eUi.js → useEdgeInterceptors-Rb2Hf0v8.js} +6 -6
- package/package.json +1 -1
- package/__chunks__/jsx-runtime-CH1d66I3.js +0 -320
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +0 -321
package/ProductLayout/index.mjs
CHANGED
|
@@ -29,20 +29,20 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
33
33
|
import React__default, { useEffect, createContext, useContext, useCallback, useRef, useMemo } from "react";
|
|
34
34
|
import { M as Menu } from "../__chunks__/Menu-qMqvSorL.mjs";
|
|
35
|
-
import { B as Button } from "../__chunks__/Button-
|
|
36
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
37
|
-
import { T as Text } from "../__chunks__/Text-
|
|
38
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
35
|
+
import { B as Button } from "../__chunks__/Button-JL1YQxJ5.mjs";
|
|
36
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
37
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
38
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
39
39
|
import { classNames } from "../utilities/css.mjs";
|
|
40
|
-
import { H as HelpMenu } from "../__chunks__/HelpMenu-
|
|
40
|
+
import { H as HelpMenu } from "../__chunks__/HelpMenu-BZRV42ab.mjs";
|
|
41
41
|
import { e as ezuiTokens } from "../__chunks__/tokens-BXztpSjv.mjs";
|
|
42
42
|
import { $ as $8ac8429251c45e4b$export$dbc0f175b25fb0fb } from "../__chunks__/useModalOverlay-BmYXH7rq.mjs";
|
|
43
43
|
import { d as $337b884510726a0d$export$c6fdb837b070b4ff, a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-Dkjxuk6V.mjs";
|
|
44
44
|
import { $ as $40df3f8667284809$export$d55e7ee900f34e93 } from "../__chunks__/useDialog-nKMoC_Cs.mjs";
|
|
45
|
-
import { T as TabNav } from "../__chunks__/TabNav-
|
|
45
|
+
import { T as TabNav } from "../__chunks__/TabNav-BNhQF0b0.mjs";
|
|
46
46
|
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/useOverlayTrigger-CIVwezu3.mjs";
|
|
47
47
|
const ProductLayout$1 = "_ProductLayout_1orpb_4";
|
|
48
48
|
const body = "_body_1orpb_10";
|
|
@@ -52,7 +52,7 @@ const styles$4 = {
|
|
|
52
52
|
};
|
|
53
53
|
function ProductLayoutContent(props) {
|
|
54
54
|
const { children } = props;
|
|
55
|
-
return
|
|
55
|
+
return jsx("main", {
|
|
56
56
|
className: styles$4.content,
|
|
57
57
|
children
|
|
58
58
|
});
|
|
@@ -77,11 +77,11 @@ function LayoutScreenSizeRenderer(props) {
|
|
|
77
77
|
mediaQueries.removeEventListener("change", handleChange);
|
|
78
78
|
};
|
|
79
79
|
}, [onChange]);
|
|
80
|
-
return
|
|
81
|
-
children: [
|
|
80
|
+
return jsxs(Fragment, {
|
|
81
|
+
children: [jsx("div", {
|
|
82
82
|
className: styles$3.largeScreen,
|
|
83
83
|
children: renderOnLargeScreen()
|
|
84
|
-
}),
|
|
84
|
+
}), jsx("div", {
|
|
85
85
|
className: styles$3.smallScreen,
|
|
86
86
|
children: renderOnSmallScreen()
|
|
87
87
|
})]
|
|
@@ -114,45 +114,45 @@ const styles$2 = {
|
|
|
114
114
|
actions
|
|
115
115
|
};
|
|
116
116
|
function ProductLayoutHeader(props) {
|
|
117
|
-
return
|
|
118
|
-
children:
|
|
119
|
-
renderOnLargeScreen: () =>
|
|
120
|
-
renderOnSmallScreen: () =>
|
|
117
|
+
return jsx("header", {
|
|
118
|
+
children: jsx(LayoutScreenSizeRenderer, {
|
|
119
|
+
renderOnLargeScreen: () => jsx(LargeScreenHeader, __spreadValues({}, props)),
|
|
120
|
+
renderOnSmallScreen: () => jsx(SmallScreenHeader, __spreadValues({}, props))
|
|
121
121
|
})
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
function SmallScreenHeader(props) {
|
|
125
125
|
const { helpMenuItems, onHelpMenuAction, primaryAction, renderSmallScreenLogo, title } = props;
|
|
126
126
|
const { sidebarTriggerProps } = useProductLayout();
|
|
127
|
-
return
|
|
127
|
+
return jsxs("div", {
|
|
128
128
|
className: classNames(styles$2.ProductLayoutHeader, styles$2.smallScreen),
|
|
129
|
-
children: [
|
|
129
|
+
children: [jsxs("div", {
|
|
130
130
|
className: styles$2.smallScreenTopBar,
|
|
131
|
-
children: [
|
|
131
|
+
children: [jsxs("div", {
|
|
132
132
|
className: styles$2.logoMenu,
|
|
133
|
-
children: [
|
|
133
|
+
children: [jsxs(UnstyledButton, __spreadProps(__spreadValues({
|
|
134
134
|
className: styles$2.logoMenuBtn
|
|
135
135
|
}, sidebarTriggerProps), {
|
|
136
|
-
children: [
|
|
136
|
+
children: [jsx(Icon, {
|
|
137
137
|
symbol: Menu
|
|
138
|
-
}),
|
|
138
|
+
}), jsx(Text, {
|
|
139
139
|
visuallyHidden: true,
|
|
140
140
|
children: "Menu"
|
|
141
141
|
})]
|
|
142
142
|
})), renderSmallScreenLogo()]
|
|
143
|
-
}),
|
|
143
|
+
}), jsx("div", {
|
|
144
144
|
className: styles$2.actions,
|
|
145
|
-
children: primaryAction ?
|
|
145
|
+
children: primaryAction ? jsx(Button, {
|
|
146
146
|
size: "sm",
|
|
147
147
|
onPress: primaryAction.onAction,
|
|
148
148
|
isDisabled: primaryAction.isDisabled,
|
|
149
149
|
children: primaryAction.content
|
|
150
|
-
}) :
|
|
150
|
+
}) : jsx(HelpMenu, {
|
|
151
151
|
items: helpMenuItems,
|
|
152
152
|
onAction: onHelpMenuAction
|
|
153
153
|
})
|
|
154
154
|
})]
|
|
155
|
-
}),
|
|
155
|
+
}), jsx(Text, {
|
|
156
156
|
as: "h2",
|
|
157
157
|
variant: "heading4",
|
|
158
158
|
children: title
|
|
@@ -161,24 +161,24 @@ function SmallScreenHeader(props) {
|
|
|
161
161
|
}
|
|
162
162
|
function LargeScreenHeader(props) {
|
|
163
163
|
const { helpMenuItems, onHelpMenuAction, primaryAction, secondaryAction, title } = props;
|
|
164
|
-
return
|
|
164
|
+
return jsxs("div", {
|
|
165
165
|
className: classNames(styles$2.ProductLayoutHeader, styles$2.largeScreen),
|
|
166
|
-
children: [
|
|
166
|
+
children: [jsx(Text, {
|
|
167
167
|
as: "h2",
|
|
168
168
|
variant: "heading4",
|
|
169
169
|
children: title
|
|
170
|
-
}),
|
|
170
|
+
}), jsxs("div", {
|
|
171
171
|
className: styles$2.actions,
|
|
172
|
-
children: [
|
|
172
|
+
children: [jsx(HelpMenu, {
|
|
173
173
|
items: helpMenuItems,
|
|
174
174
|
onAction: onHelpMenuAction
|
|
175
|
-
}), (primaryAction || secondaryAction) &&
|
|
175
|
+
}), (primaryAction || secondaryAction) && jsx(ActionDivider, {}), secondaryAction && jsx(Button, {
|
|
176
176
|
variant: "outlined",
|
|
177
177
|
color: "support",
|
|
178
178
|
onPress: secondaryAction.onAction,
|
|
179
179
|
isDisabled: secondaryAction.isDisabled,
|
|
180
180
|
children: secondaryAction.content
|
|
181
|
-
}), primaryAction &&
|
|
181
|
+
}), primaryAction && jsx(Button, {
|
|
182
182
|
onPress: primaryAction.onAction,
|
|
183
183
|
isDisabled: primaryAction.isDisabled,
|
|
184
184
|
children: primaryAction.content
|
|
@@ -187,7 +187,7 @@ function LargeScreenHeader(props) {
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
function ActionDivider() {
|
|
190
|
-
return
|
|
190
|
+
return jsx("div", {
|
|
191
191
|
className: styles$2.divider
|
|
192
192
|
});
|
|
193
193
|
}
|
|
@@ -206,17 +206,17 @@ function ProductLayoutSidebar(props) {
|
|
|
206
206
|
sidebarTriggerState.close();
|
|
207
207
|
}
|
|
208
208
|
}, [sidebarTriggerState]);
|
|
209
|
-
return
|
|
209
|
+
return jsx(LayoutScreenSizeRenderer, {
|
|
210
210
|
onChange: handleScreenSizeChange,
|
|
211
|
-
renderOnLargeScreen: () =>
|
|
212
|
-
renderOnSmallScreen: () =>
|
|
211
|
+
renderOnLargeScreen: () => jsx(LargeScreenSidebar, __spreadValues({}, props)),
|
|
212
|
+
renderOnSmallScreen: () => jsx(SmallScreenSidebar, __spreadValues({}, props))
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
function LargeScreenSidebar(props) {
|
|
216
216
|
const { children } = props;
|
|
217
217
|
const { sidebarTriggerState } = useProductLayout();
|
|
218
218
|
const className = classNames(styles$1.ProductLayoutSidebar, sidebarTriggerState.isOpen && styles$1.open);
|
|
219
|
-
return
|
|
219
|
+
return jsx("div", {
|
|
220
220
|
role: "region",
|
|
221
221
|
"aria-label": "Sidebar",
|
|
222
222
|
className,
|
|
@@ -226,8 +226,8 @@ function LargeScreenSidebar(props) {
|
|
|
226
226
|
function SmallScreenSidebar(props) {
|
|
227
227
|
const { children } = props;
|
|
228
228
|
const { sidebarTriggerState } = useProductLayout();
|
|
229
|
-
return sidebarTriggerState.isOpen ?
|
|
230
|
-
children:
|
|
229
|
+
return sidebarTriggerState.isOpen ? jsx(DialogSidebarOverlay, {
|
|
230
|
+
children: jsx(DialogSidebar, {
|
|
231
231
|
children
|
|
232
232
|
})
|
|
233
233
|
}) : null;
|
|
@@ -240,7 +240,7 @@ function DialogSidebar(props) {
|
|
|
240
240
|
"aria-label": "Sidebar"
|
|
241
241
|
}, ref);
|
|
242
242
|
const className = classNames(styles$1.ProductLayoutSidebar, styles$1.open);
|
|
243
|
-
return
|
|
243
|
+
return jsx("div", __spreadProps(__spreadValues({}, dialogProps), {
|
|
244
244
|
ref,
|
|
245
245
|
className,
|
|
246
246
|
children
|
|
@@ -255,12 +255,12 @@ function DialogSidebarOverlay(props) {
|
|
|
255
255
|
isDismissable: true,
|
|
256
256
|
isKeyboardDismissDisabled: false
|
|
257
257
|
}, sidebarTriggerState, ref);
|
|
258
|
-
return
|
|
258
|
+
return jsx($337b884510726a0d$export$c6fdb837b070b4ff, {
|
|
259
259
|
portalContainer: (_a = layoutContainerRef.current) != null ? _a : void 0,
|
|
260
|
-
children:
|
|
260
|
+
children: jsx("div", __spreadProps(__spreadValues({
|
|
261
261
|
className: styles$1.overlay
|
|
262
262
|
}, underlayProps), {
|
|
263
|
-
children:
|
|
263
|
+
children: jsx("div", __spreadProps(__spreadValues({
|
|
264
264
|
ref
|
|
265
265
|
}, modalProps), {
|
|
266
266
|
children
|
|
@@ -274,11 +274,11 @@ const styles = {
|
|
|
274
274
|
};
|
|
275
275
|
function ProductLayoutTabbedContent(props) {
|
|
276
276
|
const _a = props, { children, tabs } = _a, tabNavProps = __objRest(_a, ["children", "tabs"]);
|
|
277
|
-
return
|
|
277
|
+
return jsxs("div", {
|
|
278
278
|
className: styles.ProductLayoutTabbedContent,
|
|
279
|
-
children: [
|
|
279
|
+
children: [jsx(TabNav, __spreadProps(__spreadValues({}, tabNavProps), {
|
|
280
280
|
children: tabs
|
|
281
|
-
})),
|
|
281
|
+
})), jsx("main", {
|
|
282
282
|
children
|
|
283
283
|
})]
|
|
284
284
|
});
|
|
@@ -298,12 +298,12 @@ function ProductLayout(props) {
|
|
|
298
298
|
sidebarOverlayProps: overlayProps
|
|
299
299
|
};
|
|
300
300
|
}, [state, triggerProps, overlayProps]);
|
|
301
|
-
return
|
|
301
|
+
return jsx(ProductLayoutContext.Provider, {
|
|
302
302
|
value: context,
|
|
303
|
-
children:
|
|
303
|
+
children: jsxs("div", {
|
|
304
304
|
className: styles$4.ProductLayout,
|
|
305
305
|
ref: layoutContainerRef,
|
|
306
|
-
children: [sidebar,
|
|
306
|
+
children: [sidebar, jsxs("div", {
|
|
307
307
|
className: styles$4.body,
|
|
308
308
|
children: [header, content]
|
|
309
309
|
})]
|
package/Provider/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const useFocusVisible = require("../__chunks__/useFocusVisible-BNcpO5Sv.js");
|
|
5
|
-
const Notification = require("../__chunks__/Notification-
|
|
6
|
-
const Theme = require("../__chunks__/Theme-
|
|
5
|
+
const Notification = require("../__chunks__/Notification-DDQHWloB.js");
|
|
6
|
+
const Theme = require("../__chunks__/Theme-C2nSZUpG.js");
|
|
7
7
|
function Provider({ children, theme, colorScheme, notificationPlacement, navigate, useHref }) {
|
|
8
|
-
return jsxRuntime.
|
|
8
|
+
return jsxRuntime.jsx(EasyUIRouterProvider, {
|
|
9
9
|
navigate,
|
|
10
10
|
useHref,
|
|
11
|
-
children: jsxRuntime.
|
|
11
|
+
children: jsxRuntime.jsx(Theme.ThemeProvider, {
|
|
12
12
|
theme,
|
|
13
13
|
colorScheme,
|
|
14
|
-
children: jsxRuntime.
|
|
14
|
+
children: jsxRuntime.jsx(Notification.NotificationProvider, {
|
|
15
15
|
notificationPlacement,
|
|
16
16
|
children
|
|
17
17
|
})
|
|
@@ -21,7 +21,7 @@ function Provider({ children, theme, colorScheme, notificationPlacement, navigat
|
|
|
21
21
|
function EasyUIRouterProvider(props) {
|
|
22
22
|
const { navigate, useHref, children } = props;
|
|
23
23
|
if (navigate) {
|
|
24
|
-
return jsxRuntime.
|
|
24
|
+
return jsxRuntime.jsx(useFocusVisible.$ea8dcbcb9ea1b556$export$323e4fc2fa4753fb, {
|
|
25
25
|
navigate,
|
|
26
26
|
useHref,
|
|
27
27
|
children
|
package/Provider/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { o as $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb } from "../__chunks__/useFocusVisible-DDvp2PwR.mjs";
|
|
3
|
-
import { b as NotificationProvider } from "../__chunks__/Notification-
|
|
4
|
-
import { T as ThemeProvider } from "../__chunks__/Theme-
|
|
3
|
+
import { b as NotificationProvider } from "../__chunks__/Notification-DnNx0rb6.mjs";
|
|
4
|
+
import { T as ThemeProvider } from "../__chunks__/Theme-M__gFMM3.mjs";
|
|
5
5
|
function Provider({ children, theme, colorScheme, notificationPlacement, navigate, useHref }) {
|
|
6
|
-
return
|
|
6
|
+
return jsx(EasyUIRouterProvider, {
|
|
7
7
|
navigate,
|
|
8
8
|
useHref,
|
|
9
|
-
children:
|
|
9
|
+
children: jsx(ThemeProvider, {
|
|
10
10
|
theme,
|
|
11
11
|
colorScheme,
|
|
12
|
-
children:
|
|
12
|
+
children: jsx(NotificationProvider, {
|
|
13
13
|
notificationPlacement,
|
|
14
14
|
children
|
|
15
15
|
})
|
|
@@ -19,7 +19,7 @@ function Provider({ children, theme, colorScheme, notificationPlacement, navigat
|
|
|
19
19
|
function EasyUIRouterProvider(props) {
|
|
20
20
|
const { navigate, useHref, children } = props;
|
|
21
21
|
if (navigate) {
|
|
22
|
-
return
|
|
22
|
+
return jsx($ea8dcbcb9ea1b556$export$323e4fc2fa4753fb, {
|
|
23
23
|
navigate,
|
|
24
24
|
useHref,
|
|
25
25
|
children
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
|
-
const jsxRuntime = require("
|
|
22
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
const utils = require("../__chunks__/utils-CRWC8dEm.js");
|
|
24
24
|
const SelectionIndicator = require("../__chunks__/SelectionIndicator-DW9MR_Io.js");
|
|
25
25
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
@@ -33,7 +33,7 @@ const useToggleState = require("../__chunks__/useToggleState-BYfp0R5h.js");
|
|
|
33
33
|
const useFocusRing = require("../__chunks__/useFocusRing-DbC9E5wC.js");
|
|
34
34
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
|
-
const Text = require("../__chunks__/Text-
|
|
36
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
37
37
|
function $ad999b7f496648d1$export$8deac67f4addf270(props) {
|
|
38
38
|
let { selectionMode = "single", disallowEmptySelection, isDisabled = false } = props;
|
|
39
39
|
let [selectedKeys, setSelectedKeys] = useControlledState.$458b0a5536c1a7cf$export$40bfa8c7b0832715(React.useMemo(() => props.selectedKeys ? new Set(props.selectedKeys) : void 0, [
|
|
@@ -250,11 +250,11 @@ const styles = {
|
|
|
250
250
|
};
|
|
251
251
|
function RadioButtonGroupButton(props) {
|
|
252
252
|
const { children, isDisabled, id } = props;
|
|
253
|
-
return jsxRuntime.
|
|
253
|
+
return jsxRuntime.jsx($efde0372d7a700fe$export$d2b052e7b4be1756, {
|
|
254
254
|
className: utilities_css.classNames(styles.RadioButtonGroupButton),
|
|
255
255
|
isDisabled,
|
|
256
256
|
id,
|
|
257
|
-
children: jsxRuntime.
|
|
257
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
258
258
|
variant: "small_button",
|
|
259
259
|
children
|
|
260
260
|
})
|
|
@@ -263,7 +263,7 @@ function RadioButtonGroupButton(props) {
|
|
|
263
263
|
function RadioButtonGroup(props) {
|
|
264
264
|
const { color = "primary.500", children, onSelectionChange, selectedKeys, selectionMode = "single", disallowEmptySelection, defaultSelectedKeys, isDisabled } = props;
|
|
265
265
|
const style = __spreadValues({}, utilities_css.getComponentThemeToken("radio-button-group", "color", "color", color));
|
|
266
|
-
return jsxRuntime.
|
|
266
|
+
return jsxRuntime.jsx($84b7d8702d4ff4a8$export$40258cc1d95ff477, {
|
|
267
267
|
style,
|
|
268
268
|
className: styles.RadiobuttonGroup,
|
|
269
269
|
onSelectionChange,
|
|
@@ -17,7 +17,7 @@ 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 } from "react/jsx-runtime";
|
|
21
21
|
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, a as $64fa3d84918910a7$export$4d86445c2cf5e3 } from "../__chunks__/utils-C1be5hOp.mjs";
|
|
22
22
|
import { $ as $c8a5a149f625efcf$export$758399f318e6385a, a as $1d5b8b8664671ef2$export$c9549807523555e0 } from "../__chunks__/SelectionIndicator-Co962vpA.mjs";
|
|
23
23
|
import { e as $ff5963eb1fccf552$export$e08e3b67e392101e, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, a as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
@@ -31,7 +31,7 @@ import { $ as $3017fa7ffdddec74$export$8042c6c013fd5226 } from "../__chunks__/us
|
|
|
31
31
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
32
32
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
33
33
|
import { getComponentThemeToken, classNames } from "../utilities/css.mjs";
|
|
34
|
-
import { T as Text } from "../__chunks__/Text-
|
|
34
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
35
35
|
function $ad999b7f496648d1$export$8deac67f4addf270(props) {
|
|
36
36
|
let { selectionMode = "single", disallowEmptySelection, isDisabled = false } = props;
|
|
37
37
|
let [selectedKeys, setSelectedKeys] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(useMemo(() => props.selectedKeys ? new Set(props.selectedKeys) : void 0, [
|
|
@@ -248,11 +248,11 @@ const styles = {
|
|
|
248
248
|
};
|
|
249
249
|
function RadioButtonGroupButton(props) {
|
|
250
250
|
const { children, isDisabled, id } = props;
|
|
251
|
-
return
|
|
251
|
+
return jsx($efde0372d7a700fe$export$d2b052e7b4be1756, {
|
|
252
252
|
className: classNames(styles.RadioButtonGroupButton),
|
|
253
253
|
isDisabled,
|
|
254
254
|
id,
|
|
255
|
-
children:
|
|
255
|
+
children: jsx(Text, {
|
|
256
256
|
variant: "small_button",
|
|
257
257
|
children
|
|
258
258
|
})
|
|
@@ -261,7 +261,7 @@ function RadioButtonGroupButton(props) {
|
|
|
261
261
|
function RadioButtonGroup(props) {
|
|
262
262
|
const { color = "primary.500", children, onSelectionChange, selectedKeys, selectionMode = "single", disallowEmptySelection, defaultSelectedKeys, isDisabled } = props;
|
|
263
263
|
const style = __spreadValues({}, getComponentThemeToken("radio-button-group", "color", "color", color));
|
|
264
|
-
return
|
|
264
|
+
return jsx($84b7d8702d4ff4a8$export$40258cc1d95ff477, {
|
|
265
265
|
style,
|
|
266
266
|
className: styles.RadiobuttonGroup,
|
|
267
267
|
onSelectionChange,
|
package/RadioGroup/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const RadioGroup = require("../__chunks__/RadioGroup-
|
|
3
|
+
const RadioGroup = require("../__chunks__/RadioGroup-BiCqtR0F.js");
|
|
4
4
|
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
5
5
|
exports.useRadioGroupContext = RadioGroup.useRadioGroupContext;
|
package/RadioGroup/index.mjs
CHANGED
package/RangeCalendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const RangeCalendar = require("../__chunks__/RangeCalendar-
|
|
3
|
+
const RangeCalendar = require("../__chunks__/RangeCalendar-Dz6LyRYS.js");
|
|
4
4
|
exports.RangeCalendar = RangeCalendar.RangeCalendar;
|
package/RangeCalendar/index.mjs
CHANGED