@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
|
@@ -29,15 +29,15 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
33
|
import * as React from "react";
|
|
34
34
|
import React__default, { useState, useCallback, forwardRef, useRef, useContext, useMemo } from "react";
|
|
35
|
-
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-
|
|
36
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
37
|
-
import { T as Text } from "../__chunks__/Text-
|
|
38
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
35
|
+
import { E as EasyPostLogo } from "../__chunks__/EasyPostLogo-DgIgAGa3.mjs";
|
|
36
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
37
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
38
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
39
39
|
import { a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../__chunks__/Button-B4DxcTvZ.mjs";
|
|
40
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
40
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
41
41
|
import { classNames } from "../utilities/css.mjs";
|
|
42
42
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
43
43
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
@@ -99,7 +99,7 @@ const styles$1 = {
|
|
|
99
99
|
};
|
|
100
100
|
function CustomerPortalLayoutActions(props) {
|
|
101
101
|
const { children } = props;
|
|
102
|
-
return
|
|
102
|
+
return jsx(HorizontalStack, {
|
|
103
103
|
wrap: false,
|
|
104
104
|
gap: "1",
|
|
105
105
|
align: "end",
|
|
@@ -115,19 +115,19 @@ function CustomerPortalLayoutMenuAction(props) {
|
|
|
115
115
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
116
116
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
117
117
|
const className = classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isOpen && styles$1.open);
|
|
118
|
-
return
|
|
118
|
+
return jsxs(Menu, {
|
|
119
119
|
isOpen,
|
|
120
120
|
onOpenChange: handleOpenChange,
|
|
121
|
-
children: [
|
|
122
|
-
children:
|
|
121
|
+
children: [jsx(Menu.Trigger, {
|
|
122
|
+
children: jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
123
123
|
className
|
|
124
124
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
125
|
-
children: [
|
|
125
|
+
children: [jsx(Text, {
|
|
126
126
|
visuallyHidden: true,
|
|
127
127
|
children: accessibilityLabel
|
|
128
|
-
}),
|
|
128
|
+
}), jsx(Icon, {
|
|
129
129
|
symbol: iconSymbol
|
|
130
|
-
}), renderBadge &&
|
|
130
|
+
}), renderBadge && jsx("div", {
|
|
131
131
|
className: styles$1.badgeContainer,
|
|
132
132
|
children: renderBadge()
|
|
133
133
|
})]
|
|
@@ -142,17 +142,17 @@ function CustomerPortalLayoutLinkAction(props) {
|
|
|
142
142
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
143
143
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
144
144
|
const className = classNames(styles$1.button, isFocusVisible && styles$1.focused, isHovered && styles$1.hovered, isSelected && styles$1.selected);
|
|
145
|
-
return
|
|
145
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
146
146
|
ref,
|
|
147
147
|
className
|
|
148
148
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
149
149
|
"aria-current": isSelected ? "true" : void 0,
|
|
150
|
-
children: [
|
|
150
|
+
children: [jsx(Text, {
|
|
151
151
|
visuallyHidden: true,
|
|
152
152
|
children: accessibilityLabel
|
|
153
|
-
}),
|
|
153
|
+
}), jsx(Icon, {
|
|
154
154
|
symbol: iconSymbol
|
|
155
|
-
}), renderBadge &&
|
|
155
|
+
}), renderBadge && jsx("div", {
|
|
156
156
|
className: styles$1.badgeContainer,
|
|
157
157
|
children: renderBadge()
|
|
158
158
|
})]
|
|
@@ -162,17 +162,17 @@ function CustomerPortalLayoutButtonAction(props) {
|
|
|
162
162
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
163
163
|
const ref = useRef(null);
|
|
164
164
|
const className = classNames(styles$1.button, isSelected && styles$1.selected);
|
|
165
|
-
return
|
|
165
|
+
return jsxs($d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadProps(__spreadValues({
|
|
166
166
|
ref,
|
|
167
167
|
className,
|
|
168
168
|
"aria-current": isSelected ? "true" : void 0
|
|
169
169
|
}, buttonProps), {
|
|
170
|
-
children: [
|
|
170
|
+
children: [jsx(Text, {
|
|
171
171
|
visuallyHidden: true,
|
|
172
172
|
children: accessibilityLabel
|
|
173
|
-
}),
|
|
173
|
+
}), jsx(Icon, {
|
|
174
174
|
symbol: iconSymbol
|
|
175
|
-
}), renderBadge &&
|
|
175
|
+
}), renderBadge && jsx("div", {
|
|
176
176
|
className: styles$1.badgeContainer,
|
|
177
177
|
children: renderBadge()
|
|
178
178
|
})]
|
|
@@ -180,14 +180,14 @@ function CustomerPortalLayoutButtonAction(props) {
|
|
|
180
180
|
}
|
|
181
181
|
function CustomerPortalLayoutActionBadge(props) {
|
|
182
182
|
const { children } = props;
|
|
183
|
-
return
|
|
183
|
+
return jsx("div", {
|
|
184
184
|
className: styles$1.badge,
|
|
185
185
|
children
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
const PressableButton = forwardRef((props, ref) => {
|
|
189
189
|
const { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
190
|
-
return
|
|
190
|
+
return jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
191
191
|
ref,
|
|
192
192
|
className: classNames(pressProps.className)
|
|
193
193
|
}));
|
|
@@ -223,25 +223,25 @@ function CustomerPortalLayout(props) {
|
|
|
223
223
|
shouldDisplayEasyPostLogo
|
|
224
224
|
};
|
|
225
225
|
}, [mode, shouldDisplayEasyPostLogo]);
|
|
226
|
-
return
|
|
226
|
+
return jsx(CustomerPortalLayoutContext.Provider, {
|
|
227
227
|
value: context,
|
|
228
|
-
children:
|
|
228
|
+
children: jsx("div", {
|
|
229
229
|
className: styles.CustomerPortalLayout,
|
|
230
230
|
children
|
|
231
231
|
})
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
function TestModeBanner() {
|
|
235
|
-
return
|
|
235
|
+
return jsx("div", {
|
|
236
236
|
className: styles.testModeBanner,
|
|
237
|
-
children:
|
|
237
|
+
children: jsxs(HorizontalStack, {
|
|
238
238
|
gap: "1",
|
|
239
239
|
blockAlign: "center",
|
|
240
|
-
children: [
|
|
240
|
+
children: [jsx(Icon, {
|
|
241
241
|
symbol: Experiment,
|
|
242
242
|
color: "primary.700",
|
|
243
243
|
size: "lg"
|
|
244
|
-
}),
|
|
244
|
+
}), jsx(Text, {
|
|
245
245
|
variant: "subtitle1",
|
|
246
246
|
color: "warning.900",
|
|
247
247
|
children: "This Environment is in Test Mode"
|
|
@@ -253,9 +253,9 @@ function CustomerPortalLayoutHeader(props) {
|
|
|
253
253
|
const { children } = props;
|
|
254
254
|
const { mode } = useCustomerPortalLayout();
|
|
255
255
|
const isTestMode = mode === "test";
|
|
256
|
-
return
|
|
256
|
+
return jsxs("header", {
|
|
257
257
|
className: styles.header,
|
|
258
|
-
children: [isTestMode &&
|
|
258
|
+
children: [isTestMode && jsx(TestModeBanner, {}), jsx("div", {
|
|
259
259
|
className: styles.logoAndActions,
|
|
260
260
|
children
|
|
261
261
|
})]
|
|
@@ -263,7 +263,7 @@ function CustomerPortalLayoutHeader(props) {
|
|
|
263
263
|
}
|
|
264
264
|
function CustomerPortalLayoutLogo(props) {
|
|
265
265
|
const { children } = props;
|
|
266
|
-
return
|
|
266
|
+
return jsx("div", {
|
|
267
267
|
className: styles.logo,
|
|
268
268
|
children
|
|
269
269
|
});
|
|
@@ -271,19 +271,19 @@ function CustomerPortalLayoutLogo(props) {
|
|
|
271
271
|
function CustomerPortalLayoutLogoContainer(props) {
|
|
272
272
|
const { children } = props;
|
|
273
273
|
const { shouldDisplayEasyPostLogo } = useCustomerPortalLayout();
|
|
274
|
-
return
|
|
274
|
+
return jsxs(HorizontalStack, {
|
|
275
275
|
gap: "1",
|
|
276
276
|
blockAlign: "center",
|
|
277
277
|
align: "start",
|
|
278
278
|
wrap: false,
|
|
279
|
-
children: [shouldDisplayEasyPostLogo &&
|
|
280
|
-
children:
|
|
279
|
+
children: [shouldDisplayEasyPostLogo && jsx(CustomerPortalLayoutLogo, {
|
|
280
|
+
children: jsx(EasyPostLogo, {})
|
|
281
281
|
}), children]
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
function CustomerPortalLayoutContent(props) {
|
|
285
285
|
const { children } = props;
|
|
286
|
-
return
|
|
286
|
+
return jsx("main", {
|
|
287
287
|
className: styles.content,
|
|
288
288
|
children
|
|
289
289
|
});
|
package/DataGrid/index.js
CHANGED
|
@@ -67,16 +67,16 @@ var __yieldStar = (value) => {
|
|
|
67
67
|
}, "return" in obj && method("return"), it;
|
|
68
68
|
};
|
|
69
69
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
70
|
-
const jsxRuntime = require("
|
|
70
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
71
71
|
const React = require("react");
|
|
72
|
-
const Icon = require("../__chunks__/Icon-
|
|
73
|
-
const Menu = require("../__chunks__/Menu-
|
|
74
|
-
const Text = require("../__chunks__/Text-
|
|
75
|
-
const KebabButton = require("../__chunks__/KebabButton-
|
|
72
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
73
|
+
const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
74
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
75
|
+
const KebabButton = require("../__chunks__/KebabButton-TbapERgy.js");
|
|
76
76
|
const utilities_css = require("../utilities/css.js");
|
|
77
77
|
const usePress = require("../__chunks__/usePress-B5G5CgVn.js");
|
|
78
78
|
const ArrowForwardIos = require("../__chunks__/ArrowForwardIos-DpRiDPNZ.js");
|
|
79
|
-
const Checkbox = require("../__chunks__/Checkbox-
|
|
79
|
+
const Checkbox = require("../__chunks__/Checkbox-B_-6lfKk.js");
|
|
80
80
|
const useFocusVisible = require("../__chunks__/useFocusVisible-BNcpO5Sv.js");
|
|
81
81
|
const focusSafely = require("../__chunks__/focusSafely-C5HWSeZE.js");
|
|
82
82
|
const FocusScope = require("../__chunks__/FocusScope-CncDnO-E.js");
|
|
@@ -92,9 +92,9 @@ const useFocusable = require("../__chunks__/useFocusable-fxgaZN7X.js");
|
|
|
92
92
|
const VisuallyHidden = require("../__chunks__/VisuallyHidden-CIjowwM_.js");
|
|
93
93
|
const SelectionManager = require("../__chunks__/SelectionManager-CFPcxpAj.js");
|
|
94
94
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
95
|
-
const useEdgeInterceptors = require("../__chunks__/useEdgeInterceptors-
|
|
95
|
+
const useEdgeInterceptors = require("../__chunks__/useEdgeInterceptors-Rb2Hf0v8.js");
|
|
96
96
|
const useResizeObserver = require("../__chunks__/useResizeObserver-CEeqtqhm.js");
|
|
97
|
-
const Spinner = require("../__chunks__/Spinner-
|
|
97
|
+
const Spinner = require("../__chunks__/Spinner-vRnrcEz0.js");
|
|
98
98
|
const useSelectableList = require("../__chunks__/useSelectableList-DeSKmxTV.js");
|
|
99
99
|
const LiveAnnouncer = require("../__chunks__/LiveAnnouncer-CzeNwq2D.js");
|
|
100
100
|
const filterDOMProps = require("../__chunks__/filterDOMProps-p6wKN-SS.js");
|
|
@@ -2164,7 +2164,7 @@ const styles$8 = {
|
|
|
2164
2164
|
};
|
|
2165
2165
|
const UnstyledPressButton = React.forwardRef((props, ref) => {
|
|
2166
2166
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
2167
|
-
return jsxRuntime.
|
|
2167
|
+
return jsxRuntime.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
2168
2168
|
ref,
|
|
2169
2169
|
className: utilities_css.classNames(styles$8.UnstyledPressButton, pressProps.className)
|
|
2170
2170
|
}));
|
|
@@ -2192,11 +2192,11 @@ const styles$7 = {
|
|
|
2192
2192
|
ActionsCellContent: ActionsCellContent$1
|
|
2193
2193
|
};
|
|
2194
2194
|
function ActionsCellContent({ rowActions }) {
|
|
2195
|
-
return jsxRuntime.
|
|
2195
|
+
return jsxRuntime.jsx("span", {
|
|
2196
2196
|
className: styles$7.ActionsCellContent,
|
|
2197
|
-
children: rowActions.map((rowAction, i) => rowAction.type === "menu" ? jsxRuntime.
|
|
2197
|
+
children: rowActions.map((rowAction, i) => rowAction.type === "menu" ? jsxRuntime.jsx(MenuRowAction, {
|
|
2198
2198
|
rowAction
|
|
2199
|
-
}, i) : jsxRuntime.
|
|
2199
|
+
}, i) : jsxRuntime.jsx(ActionRowAction, {
|
|
2200
2200
|
rowAction
|
|
2201
2201
|
}, i))
|
|
2202
2202
|
});
|
|
@@ -2211,11 +2211,11 @@ function MenuRowAction({ rowAction }) {
|
|
|
2211
2211
|
const handleOpenChange = React.useCallback((isOpen2) => {
|
|
2212
2212
|
setIsOpen(isOpen2);
|
|
2213
2213
|
}, []);
|
|
2214
|
-
return jsxRuntime.
|
|
2214
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
2215
2215
|
isOpen,
|
|
2216
2216
|
onOpenChange: handleOpenChange,
|
|
2217
|
-
children: [jsxRuntime.
|
|
2218
|
-
children: jsxRuntime.
|
|
2217
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
2218
|
+
children: jsxRuntime.jsx(KebabButton.KebabButton, {
|
|
2219
2219
|
onPress: handleClick,
|
|
2220
2220
|
accessibilityLabel
|
|
2221
2221
|
})
|
|
@@ -2227,12 +2227,12 @@ function ActionRowAction({ rowAction }) {
|
|
|
2227
2227
|
const handleClick = React.useCallback(() => {
|
|
2228
2228
|
onAction();
|
|
2229
2229
|
}, [onAction]);
|
|
2230
|
-
return jsxRuntime.
|
|
2230
|
+
return jsxRuntime.jsxs(UnstyledPressButton, {
|
|
2231
2231
|
onPress: handleClick,
|
|
2232
|
-
children: [jsxRuntime.
|
|
2232
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
2233
2233
|
visuallyHidden: true,
|
|
2234
2234
|
children: rowAction.accessibilityLabel
|
|
2235
|
-
}), jsxRuntime.
|
|
2235
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
2236
2236
|
symbol: rowAction.iconSymbol
|
|
2237
2237
|
})]
|
|
2238
2238
|
});
|
|
@@ -2248,14 +2248,14 @@ function ExpandCellContent({ isExpanded, toggleExpanded }) {
|
|
|
2248
2248
|
toggleExpanded();
|
|
2249
2249
|
}, [toggleExpanded]);
|
|
2250
2250
|
const className = utilities_css.classNames(styles$6.button, isExpanded && styles$6.expanded);
|
|
2251
|
-
return jsxRuntime.
|
|
2251
|
+
return jsxRuntime.jsxs(UnstyledPressButton, {
|
|
2252
2252
|
onPress: handleClick,
|
|
2253
2253
|
className,
|
|
2254
2254
|
"aria-expanded": isExpanded,
|
|
2255
|
-
children: [jsxRuntime.
|
|
2255
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
2256
2256
|
visuallyHidden: true,
|
|
2257
2257
|
children: "Expand"
|
|
2258
|
-
}), jsxRuntime.
|
|
2258
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
2259
2259
|
symbol: ArrowForwardIos.ArrowForwardIos,
|
|
2260
2260
|
size: "xs"
|
|
2261
2261
|
})]
|
|
@@ -2306,22 +2306,22 @@ function Cell({ cell, state }) {
|
|
|
2306
2306
|
const hasLeftShadow = hasActionsAtEnd && table2.isRightEdgeUnderScroll && cell.index === state.collection.columnCount - 1;
|
|
2307
2307
|
const className = utilities_css.classNames(styles$5.Cell, isFocusVisible && styles$5.focused, row.isExpanded && styles$5.expanded, row.isFocusVisible && styles$5.rowFocused, hasRightShadow && styles$5[utilities_css.variationName("shadow", "right")], hasLeftShadow && styles$5[utilities_css.variationName("shadow", "left")], cell.index === 0 && styles$5.first, hasActionsAtStart && cell.index === 0 && styles$5.firstWithActions, hasActionsAtStart && cell.index === 1 && styles$5.secondWithActions, cell.index === state.collection.columnCount - 1 && styles$5.last, hasActionsAtEnd && cell.index === state.collection.columnCount - 1 && styles$5.lastWithActions, hasActionsAtEnd && cell.index === state.collection.columnCount - 2 && styles$5.secondToLastWithActions, row.index === 0 && styles$5.firstRow, row.index === state.collection.size - 1 && styles$5.lastRow);
|
|
2308
2308
|
const CellContentComponent = cell.props.isSelectionCell ? SelectCellContent : DefaultCellContent;
|
|
2309
|
-
return jsxRuntime.
|
|
2309
|
+
return jsxRuntime.jsx("td", __spreadProps(__spreadValues({}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(gridCellProps, focusProps)), {
|
|
2310
2310
|
ref,
|
|
2311
2311
|
className,
|
|
2312
|
-
children: jsxRuntime.
|
|
2312
|
+
children: jsxRuntime.jsxs("div", {
|
|
2313
2313
|
className: styles$5.content,
|
|
2314
|
-
children: [jsxRuntime.
|
|
2314
|
+
children: [jsxRuntime.jsx(CellContentComponent, {
|
|
2315
2315
|
cell,
|
|
2316
2316
|
state
|
|
2317
|
-
}), jsxRuntime.
|
|
2317
|
+
}), jsxRuntime.jsx("div", {
|
|
2318
2318
|
"data-ezui-data-grid-shadow": true
|
|
2319
2319
|
})]
|
|
2320
2320
|
})
|
|
2321
2321
|
}));
|
|
2322
2322
|
}
|
|
2323
2323
|
function DefaultCellContent({ cell }) {
|
|
2324
|
-
return jsxRuntime.
|
|
2324
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2325
2325
|
children: cell.rendered
|
|
2326
2326
|
});
|
|
2327
2327
|
}
|
|
@@ -2329,21 +2329,21 @@ function SelectCellContent({ cell, state }) {
|
|
|
2329
2329
|
const { checkboxProps } = $2a795c53a101c542$export$16ea7f650bd7c1bb({
|
|
2330
2330
|
key: cell.parentKey
|
|
2331
2331
|
}, state);
|
|
2332
|
-
return jsxRuntime.
|
|
2332
|
+
return jsxRuntime.jsx(Checkbox.Checkbox, __spreadValues({}, checkboxProps));
|
|
2333
2333
|
}
|
|
2334
2334
|
function StaticCell({ children, colSpan }) {
|
|
2335
2335
|
const className = utilities_css.classNames(styles$5.Cell, styles$5.static);
|
|
2336
|
-
return jsxRuntime.
|
|
2336
|
+
return jsxRuntime.jsx("td", {
|
|
2337
2337
|
role: "gridcell",
|
|
2338
2338
|
className,
|
|
2339
2339
|
colSpan,
|
|
2340
|
-
children: jsxRuntime.
|
|
2340
|
+
children: jsxRuntime.jsxs("div", {
|
|
2341
2341
|
className: styles$5.content,
|
|
2342
|
-
children: [jsxRuntime.
|
|
2342
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
2343
2343
|
variant: "subtitle2",
|
|
2344
2344
|
color: "neutral.500",
|
|
2345
2345
|
children
|
|
2346
|
-
}), jsxRuntime.
|
|
2346
|
+
}), jsxRuntime.jsx("div", {
|
|
2347
2347
|
"data-ezui-data-grid-shadow": true
|
|
2348
2348
|
})]
|
|
2349
2349
|
})
|
|
@@ -2361,10 +2361,10 @@ const styles$4 = {
|
|
|
2361
2361
|
};
|
|
2362
2362
|
function SortIndicator({ sortDirection }) {
|
|
2363
2363
|
const { headerVariant } = useDataGridTable();
|
|
2364
|
-
return jsxRuntime.
|
|
2364
|
+
return jsxRuntime.jsx("span", {
|
|
2365
2365
|
"aria-hidden": "true",
|
|
2366
2366
|
className: utilities_css.classNames(styles$4.SortIndicator, sortDirection && styles$4.sorted, headerVariant && styles$4[utilities_css.variationName("onHeader", headerVariant)]),
|
|
2367
|
-
children: jsxRuntime.
|
|
2367
|
+
children: jsxRuntime.jsx(Arrow, {
|
|
2368
2368
|
className: styles$4.arrow,
|
|
2369
2369
|
style: {
|
|
2370
2370
|
transform: sortDirection === "ascending" ? "scaleY(-1)" : "scaleY(1)"
|
|
@@ -2373,14 +2373,14 @@ function SortIndicator({ sortDirection }) {
|
|
|
2373
2373
|
});
|
|
2374
2374
|
}
|
|
2375
2375
|
function Arrow(props) {
|
|
2376
|
-
return jsxRuntime.
|
|
2376
|
+
return jsxRuntime.jsx("svg", __spreadProps(__spreadValues({
|
|
2377
2377
|
width: "12",
|
|
2378
2378
|
height: "8",
|
|
2379
2379
|
viewBox: "0 0 12 8",
|
|
2380
2380
|
fill: "none",
|
|
2381
2381
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2382
2382
|
}, props), {
|
|
2383
|
-
children: jsxRuntime.
|
|
2383
|
+
children: jsxRuntime.jsx("path", {
|
|
2384
2384
|
fill: "currentColor",
|
|
2385
2385
|
fillRule: "evenodd",
|
|
2386
2386
|
clipRule: "evenodd",
|
|
@@ -2430,19 +2430,19 @@ function ColumnHeader({ column, state }) {
|
|
|
2430
2430
|
const className = utilities_css.classNames(styles$3.ColumnHeader, isFocusVisible && styles$3.focused, column.props.allowsSorting && styles$3.allowsSorting, hasRightShadow && styles$3[utilities_css.variationName("shadow", "right")], hasLeftShadow && styles$3[utilities_css.variationName("shadow", "left")], table2.isTopEdgeUnderScroll && styles$3[utilities_css.variationName("shadow", "bottom")], column.index === 0 && styles$3.first, hasActionsAtStart && column.index === 0 && styles$3.firstWithActions, hasActionsAtStart && column.index === 1 && styles$3.secondWithActions, column.index === state.collection.columnCount - 1 && styles$3.last, hasActionsAtEnd && column.index === state.collection.columnCount - 1 && styles$3.lastWithActions, hasActionsAtEnd && column.index === state.collection.columnCount - 2 && styles$3.secondToLastWithActions);
|
|
2431
2431
|
const contentClassName = utilities_css.classNames(styles$3.content, column.props.allowsSorting && styles$3.allowsSorting);
|
|
2432
2432
|
const ColumnHeaderContentComponent = column.props.isSelectionCell ? SelectAllColumnHeaderContent : DefaultColumnHeaderContent;
|
|
2433
|
-
return jsxRuntime.
|
|
2433
|
+
return jsxRuntime.jsx("td", __spreadProps(__spreadValues({
|
|
2434
2434
|
ref
|
|
2435
2435
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(columnHeaderProps, focusProps)), {
|
|
2436
2436
|
className,
|
|
2437
2437
|
"data-ezui-data-grid-column-header": "true",
|
|
2438
|
-
children: jsxRuntime.
|
|
2438
|
+
children: jsxRuntime.jsxs("div", {
|
|
2439
2439
|
className: contentClassName,
|
|
2440
|
-
children: [jsxRuntime.
|
|
2440
|
+
children: [jsxRuntime.jsx(ColumnHeaderContentComponent, {
|
|
2441
2441
|
column,
|
|
2442
2442
|
state
|
|
2443
|
-
}), jsxRuntime.
|
|
2443
|
+
}), jsxRuntime.jsx("div", {
|
|
2444
2444
|
"data-ezui-data-grid-shadow": "bottom"
|
|
2445
|
-
}), jsxRuntime.
|
|
2445
|
+
}), jsxRuntime.jsx("div", {
|
|
2446
2446
|
"data-ezui-data-grid-shadow": "side"
|
|
2447
2447
|
})]
|
|
2448
2448
|
})
|
|
@@ -2450,8 +2450,8 @@ function ColumnHeader({ column, state }) {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
function DefaultColumnHeaderContent({ column, state }) {
|
|
2452
2452
|
var _a, _b;
|
|
2453
|
-
return jsxRuntime.
|
|
2454
|
-
children: [column.rendered, column.props.allowsSorting && jsxRuntime.
|
|
2453
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2454
|
+
children: [column.rendered, column.props.allowsSorting && jsxRuntime.jsx(SortIndicator, {
|
|
2455
2455
|
sortDirection: ((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? (_b = state.sortDescriptor) == null ? void 0 : _b.direction : void 0
|
|
2456
2456
|
})]
|
|
2457
2457
|
});
|
|
@@ -2459,11 +2459,11 @@ function DefaultColumnHeaderContent({ column, state }) {
|
|
|
2459
2459
|
function SelectAllColumnHeaderContent({ state }) {
|
|
2460
2460
|
const { checkboxProps } = $2a795c53a101c542$export$1003db6a7e384b99(state);
|
|
2461
2461
|
if (state.selectionManager.selectionMode === "single") {
|
|
2462
|
-
return jsxRuntime.
|
|
2462
|
+
return jsxRuntime.jsx(VisuallyHidden.$5c3e21d68f1c4674$export$439d29a4e110a164, {
|
|
2463
2463
|
children: checkboxProps["aria-label"]
|
|
2464
2464
|
});
|
|
2465
2465
|
}
|
|
2466
|
-
return jsxRuntime.
|
|
2466
|
+
return jsxRuntime.jsx(Checkbox.Checkbox, __spreadValues({}, checkboxProps));
|
|
2467
2467
|
}
|
|
2468
2468
|
const ExpandedRowContent$1 = "_ExpandedRowContent_180oy_4";
|
|
2469
2469
|
const inner = "_inner_180oy_16";
|
|
@@ -2472,10 +2472,10 @@ const styles$2 = {
|
|
|
2472
2472
|
inner
|
|
2473
2473
|
};
|
|
2474
2474
|
function ExpandedRowContent({ children }) {
|
|
2475
|
-
return jsxRuntime.
|
|
2475
|
+
return jsxRuntime.jsx("div", {
|
|
2476
2476
|
className: utilities_css.classNames(styles$2.ExpandedRowContent),
|
|
2477
2477
|
"data-ezui-data-grid-expanded-row-content": "active",
|
|
2478
|
-
children: jsxRuntime.
|
|
2478
|
+
children: jsxRuntime.jsx("div", {
|
|
2479
2479
|
className: utilities_css.classNames(styles$2.inner),
|
|
2480
2480
|
children
|
|
2481
2481
|
})
|
|
@@ -2498,7 +2498,7 @@ function HeaderRow({ item, state, children }) {
|
|
|
2498
2498
|
const { rowProps } = $f917ee10f4c32dab$export$1b95a7d2d517b841({
|
|
2499
2499
|
node: item
|
|
2500
2500
|
}, state);
|
|
2501
|
-
return jsxRuntime.
|
|
2501
|
+
return jsxRuntime.jsx("tr", __spreadProps(__spreadValues({}, rowProps), {
|
|
2502
2502
|
ref,
|
|
2503
2503
|
className: styles$1.Row,
|
|
2504
2504
|
children
|
|
@@ -2540,9 +2540,9 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2540
2540
|
};
|
|
2541
2541
|
}, [isExpanded, isFocusVisible, removeHover, rowIndex]);
|
|
2542
2542
|
const className = utilities_css.classNames(styles$1.Row, isExpanded && styles$1.expanded, isHovered && styles$1.hovered, isFocusVisible && styles$1.focused, isSelected && styles$1.selected, isPressed && styles$1.pressed, isDisabled && styles$1.disabled, (hasSelection || hasOnRowAction) && styles$1.noUserSelection);
|
|
2543
|
-
return jsxRuntime.
|
|
2543
|
+
return jsxRuntime.jsx(DataGridRowContext.Provider, {
|
|
2544
2544
|
value: context2,
|
|
2545
|
-
children: jsxRuntime.
|
|
2545
|
+
children: jsxRuntime.jsx("tr", __spreadProps(__spreadValues({
|
|
2546
2546
|
ref
|
|
2547
2547
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(rowProps, focusProps, hoverProps)), {
|
|
2548
2548
|
className,
|
|
@@ -2553,7 +2553,7 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2553
2553
|
});
|
|
2554
2554
|
}
|
|
2555
2555
|
function StaticRow({ children }) {
|
|
2556
|
-
return jsxRuntime.
|
|
2556
|
+
return jsxRuntime.jsx("tr", {
|
|
2557
2557
|
role: "row",
|
|
2558
2558
|
className: styles$1.Row,
|
|
2559
2559
|
children
|
|
@@ -2581,7 +2581,7 @@ const styles = {
|
|
|
2581
2581
|
};
|
|
2582
2582
|
function RowGroup({ as: As = "div", children }) {
|
|
2583
2583
|
const { rowGroupProps } = $0047e6c294ea075f$export$6fb1613bd7b28198();
|
|
2584
|
-
return jsxRuntime.
|
|
2584
|
+
return jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, rowGroupProps), {
|
|
2585
2585
|
className: styles.contents,
|
|
2586
2586
|
children
|
|
2587
2587
|
}));
|
|
@@ -2677,50 +2677,50 @@ function Table(props) {
|
|
|
2677
2677
|
isRightEdgeUnderScroll
|
|
2678
2678
|
};
|
|
2679
2679
|
}, [headerVariant, hasSelection, hasExpansion, hasRowActions, hasOnRowAction, isTopEdgeUnderScroll, isLeftEdgeUnderScroll, isRightEdgeUnderScroll]);
|
|
2680
|
-
return jsxRuntime.
|
|
2680
|
+
return jsxRuntime.jsx(DataGridTableContext.Provider, {
|
|
2681
2681
|
value: context2,
|
|
2682
|
-
children: jsxRuntime.
|
|
2682
|
+
children: jsxRuntime.jsx("div", {
|
|
2683
2683
|
ref: outerContainerRef,
|
|
2684
2684
|
className: dataGridClassName,
|
|
2685
2685
|
style,
|
|
2686
|
-
children: jsxRuntime.
|
|
2686
|
+
children: jsxRuntime.jsxs("div", {
|
|
2687
2687
|
ref: innerContainerRef,
|
|
2688
2688
|
className: styles.innerContainer,
|
|
2689
|
-
children: [jsxRuntime.
|
|
2689
|
+
children: [jsxRuntime.jsxs("table", __spreadProps(__spreadValues({}, gridProps), {
|
|
2690
2690
|
ref: tableRef,
|
|
2691
2691
|
className: tableClassName,
|
|
2692
|
-
children: [jsxRuntime.
|
|
2692
|
+
children: [jsxRuntime.jsx(RowGroup, {
|
|
2693
2693
|
as: "thead",
|
|
2694
|
-
children: collection.headerRows.map((headerRow) => jsxRuntime.
|
|
2694
|
+
children: collection.headerRows.map((headerRow) => jsxRuntime.jsx(HeaderRow, {
|
|
2695
2695
|
item: headerRow,
|
|
2696
2696
|
state,
|
|
2697
|
-
children: [...headerRow.childNodes].map((column) => jsxRuntime.
|
|
2697
|
+
children: [...headerRow.childNodes].map((column) => jsxRuntime.jsx(ColumnHeader, {
|
|
2698
2698
|
column,
|
|
2699
2699
|
state
|
|
2700
2700
|
}, column.key))
|
|
2701
2701
|
}, headerRow.key))
|
|
2702
|
-
}), jsxRuntime.
|
|
2702
|
+
}), jsxRuntime.jsx(RowGroup, {
|
|
2703
2703
|
as: "tbody",
|
|
2704
|
-
children: collection.size === 0 || isLoading ? jsxRuntime.
|
|
2705
|
-
children: jsxRuntime.
|
|
2704
|
+
children: collection.size === 0 || isLoading ? jsxRuntime.jsx(StaticRow, {
|
|
2705
|
+
children: jsxRuntime.jsx(StaticCell, {
|
|
2706
2706
|
colSpan: collection.columnCount,
|
|
2707
|
-
children: isLoading ? jsxRuntime.
|
|
2707
|
+
children: isLoading ? jsxRuntime.jsx(Spinner.Spinner, {
|
|
2708
2708
|
isIndeterminate: true,
|
|
2709
2709
|
size: "sm",
|
|
2710
2710
|
children: "Loading.."
|
|
2711
2711
|
}) : renderEmptyState()
|
|
2712
2712
|
})
|
|
2713
|
-
}) : [...collection.body.childNodes].map((row) => jsxRuntime.
|
|
2713
|
+
}) : [...collection.body.childNodes].map((row) => jsxRuntime.jsx(Row, {
|
|
2714
2714
|
item: row,
|
|
2715
2715
|
state,
|
|
2716
2716
|
isExpanded: expandedRow ? expandedRow.key === row.key : false,
|
|
2717
|
-
children: [...row.childNodes].map((cell) => jsxRuntime.
|
|
2717
|
+
children: [...row.childNodes].map((cell) => jsxRuntime.jsx(Cell, {
|
|
2718
2718
|
cell,
|
|
2719
2719
|
state
|
|
2720
2720
|
}, cell.key))
|
|
2721
2721
|
}, row.key))
|
|
2722
2722
|
})]
|
|
2723
|
-
})), expandedRow && jsxRuntime.
|
|
2723
|
+
})), expandedRow && jsxRuntime.jsx(ExpandedRowContent, {
|
|
2724
2724
|
children: renderExpandedRow(expandedRow.key)
|
|
2725
2725
|
}), renderInterceptors()]
|
|
2726
2726
|
})
|
|
@@ -2728,9 +2728,9 @@ function Table(props) {
|
|
|
2728
2728
|
});
|
|
2729
2729
|
}
|
|
2730
2730
|
function VisuallyHiddenCellContent({ children }) {
|
|
2731
|
-
return jsxRuntime.
|
|
2731
|
+
return jsxRuntime.jsx("span", {
|
|
2732
2732
|
className: styles.visuallyHiddenCellContainer,
|
|
2733
|
-
children: jsxRuntime.
|
|
2733
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
2734
2734
|
visuallyHidden: true,
|
|
2735
2735
|
children
|
|
2736
2736
|
})
|
|
@@ -2770,28 +2770,28 @@ function DataGrid(props) {
|
|
|
2770
2770
|
setExpandedKey
|
|
2771
2771
|
};
|
|
2772
2772
|
}, [expandedKey]);
|
|
2773
|
-
return jsxRuntime.
|
|
2773
|
+
return jsxRuntime.jsx(DataGridContext.Provider, {
|
|
2774
2774
|
value: context2,
|
|
2775
|
-
children: jsxRuntime.
|
|
2776
|
-
children: [jsxRuntime.
|
|
2775
|
+
children: jsxRuntime.jsxs(Table, __spreadProps(__spreadValues({}, props), {
|
|
2776
|
+
children: [jsxRuntime.jsx($312ae3b56a94a86e$export$f850895b287ef28e, {
|
|
2777
2777
|
columns,
|
|
2778
|
-
children: (column) => jsxRuntime.
|
|
2778
|
+
children: (column) => jsxRuntime.jsx($1cd244557c2f97d5$export$816b5d811295e6bc, {
|
|
2779
2779
|
isRowHeader: column.key === rowHeaderColumnKey,
|
|
2780
2780
|
allowsSorting: column.key === EXPAND_COLUMN_KEY || column.key === ACTIONS_COLUMN_KEY ? false : columnKeysAllowingSort.includes(column.key),
|
|
2781
|
-
children: column.key === EXPAND_COLUMN_KEY ? jsxRuntime.
|
|
2781
|
+
children: column.key === EXPAND_COLUMN_KEY ? jsxRuntime.jsx(VisuallyHiddenCellContent, {
|
|
2782
2782
|
children: "Expand row"
|
|
2783
|
-
}) : column.key === ACTIONS_COLUMN_KEY ? jsxRuntime.
|
|
2783
|
+
}) : column.key === ACTIONS_COLUMN_KEY ? jsxRuntime.jsx(VisuallyHiddenCellContent, {
|
|
2784
2784
|
children: "Row actions"
|
|
2785
2785
|
}) : renderColumnCell(column)
|
|
2786
2786
|
})
|
|
2787
|
-
}), jsxRuntime.
|
|
2787
|
+
}), jsxRuntime.jsx($4ae5314bf50db1a3$export$76ccd210b9029917, {
|
|
2788
2788
|
items: rows,
|
|
2789
|
-
children: (row) => jsxRuntime.
|
|
2790
|
-
children: (columnKey) => jsxRuntime.
|
|
2791
|
-
children: columnKey === EXPAND_COLUMN_KEY ? jsxRuntime.
|
|
2789
|
+
children: (row) => jsxRuntime.jsx($70d70eb16ea48428$export$b59bdbef9ce70de2, {
|
|
2790
|
+
children: (columnKey) => jsxRuntime.jsx($941d1d9a6a28982a$export$f6f0c3fe4ec306ea, {
|
|
2791
|
+
children: columnKey === EXPAND_COLUMN_KEY ? jsxRuntime.jsx(ExpandCellContent, {
|
|
2792
2792
|
isExpanded: row.key === expandedKey,
|
|
2793
2793
|
toggleExpanded: () => toggleExpandedRow(row.key)
|
|
2794
|
-
}) : columnKey === ACTIONS_COLUMN_KEY && rowActions ? jsxRuntime.
|
|
2794
|
+
}) : columnKey === ACTIONS_COLUMN_KEY && rowActions ? jsxRuntime.jsx(ActionsCellContent, {
|
|
2795
2795
|
rowActions: rowActions(row.key)
|
|
2796
2796
|
}) : renderRowCell(row[columnKey], columnKey, row)
|
|
2797
2797
|
})
|