@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/DataGrid/index.js
CHANGED
|
@@ -67,15 +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("react/jsx-runtime");
|
|
70
71
|
const React = require("react");
|
|
71
|
-
const Icon = require("../__chunks__/Icon-
|
|
72
|
-
const Menu = require("../__chunks__/Menu-
|
|
73
|
-
const Text = require("../__chunks__/Text-
|
|
74
|
-
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");
|
|
75
76
|
const utilities_css = require("../utilities/css.js");
|
|
76
77
|
const usePress = require("../__chunks__/usePress-B5G5CgVn.js");
|
|
77
78
|
const ArrowForwardIos = require("../__chunks__/ArrowForwardIos-DpRiDPNZ.js");
|
|
78
|
-
const Checkbox = require("../__chunks__/Checkbox-
|
|
79
|
+
const Checkbox = require("../__chunks__/Checkbox-B_-6lfKk.js");
|
|
79
80
|
const useFocusVisible = require("../__chunks__/useFocusVisible-BNcpO5Sv.js");
|
|
80
81
|
const focusSafely = require("../__chunks__/focusSafely-C5HWSeZE.js");
|
|
81
82
|
const FocusScope = require("../__chunks__/FocusScope-CncDnO-E.js");
|
|
@@ -91,9 +92,9 @@ const useFocusable = require("../__chunks__/useFocusable-fxgaZN7X.js");
|
|
|
91
92
|
const VisuallyHidden = require("../__chunks__/VisuallyHidden-CIjowwM_.js");
|
|
92
93
|
const SelectionManager = require("../__chunks__/SelectionManager-CFPcxpAj.js");
|
|
93
94
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
94
|
-
const useEdgeInterceptors = require("../__chunks__/useEdgeInterceptors-
|
|
95
|
+
const useEdgeInterceptors = require("../__chunks__/useEdgeInterceptors-Rb2Hf0v8.js");
|
|
95
96
|
const useResizeObserver = require("../__chunks__/useResizeObserver-CEeqtqhm.js");
|
|
96
|
-
const Spinner = require("../__chunks__/Spinner-
|
|
97
|
+
const Spinner = require("../__chunks__/Spinner-vRnrcEz0.js");
|
|
97
98
|
const useSelectableList = require("../__chunks__/useSelectableList-DeSKmxTV.js");
|
|
98
99
|
const LiveAnnouncer = require("../__chunks__/LiveAnnouncer-CzeNwq2D.js");
|
|
99
100
|
const filterDOMProps = require("../__chunks__/filterDOMProps-p6wKN-SS.js");
|
|
@@ -2163,7 +2164,7 @@ const styles$8 = {
|
|
|
2163
2164
|
};
|
|
2164
2165
|
const UnstyledPressButton = React.forwardRef((props, ref) => {
|
|
2165
2166
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
2166
|
-
return
|
|
2167
|
+
return jsxRuntime.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
2167
2168
|
ref,
|
|
2168
2169
|
className: utilities_css.classNames(styles$8.UnstyledPressButton, pressProps.className)
|
|
2169
2170
|
}));
|
|
@@ -2191,15 +2192,14 @@ const styles$7 = {
|
|
|
2191
2192
|
ActionsCellContent: ActionsCellContent$1
|
|
2192
2193
|
};
|
|
2193
2194
|
function ActionsCellContent({ rowActions }) {
|
|
2194
|
-
return
|
|
2195
|
-
className: styles$7.ActionsCellContent
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
})));
|
|
2195
|
+
return jsxRuntime.jsx("span", {
|
|
2196
|
+
className: styles$7.ActionsCellContent,
|
|
2197
|
+
children: rowActions.map((rowAction, i) => rowAction.type === "menu" ? jsxRuntime.jsx(MenuRowAction, {
|
|
2198
|
+
rowAction
|
|
2199
|
+
}, i) : jsxRuntime.jsx(ActionRowAction, {
|
|
2200
|
+
rowAction
|
|
2201
|
+
}, i))
|
|
2202
|
+
});
|
|
2203
2203
|
}
|
|
2204
2204
|
function MenuRowAction({ rowAction }) {
|
|
2205
2205
|
const { accessibilityLabel = "Actions" } = rowAction;
|
|
@@ -2211,26 +2211,31 @@ function MenuRowAction({ rowAction }) {
|
|
|
2211
2211
|
const handleOpenChange = React.useCallback((isOpen2) => {
|
|
2212
2212
|
setIsOpen(isOpen2);
|
|
2213
2213
|
}, []);
|
|
2214
|
-
return
|
|
2214
|
+
return jsxRuntime.jsxs(Menu.Menu, {
|
|
2215
2215
|
isOpen,
|
|
2216
|
-
onOpenChange: handleOpenChange
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2216
|
+
onOpenChange: handleOpenChange,
|
|
2217
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
2218
|
+
children: jsxRuntime.jsx(KebabButton.KebabButton, {
|
|
2219
|
+
onPress: handleClick,
|
|
2220
|
+
accessibilityLabel
|
|
2221
|
+
})
|
|
2222
|
+
}), rowAction.renderMenuOverlay()]
|
|
2223
|
+
});
|
|
2221
2224
|
}
|
|
2222
2225
|
function ActionRowAction({ rowAction }) {
|
|
2223
2226
|
const { onAction } = rowAction;
|
|
2224
2227
|
const handleClick = React.useCallback(() => {
|
|
2225
2228
|
onAction();
|
|
2226
2229
|
}, [onAction]);
|
|
2227
|
-
return
|
|
2228
|
-
onPress: handleClick
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2230
|
+
return jsxRuntime.jsxs(UnstyledPressButton, {
|
|
2231
|
+
onPress: handleClick,
|
|
2232
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
2233
|
+
visuallyHidden: true,
|
|
2234
|
+
children: rowAction.accessibilityLabel
|
|
2235
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
2236
|
+
symbol: rowAction.iconSymbol
|
|
2237
|
+
})]
|
|
2238
|
+
});
|
|
2234
2239
|
}
|
|
2235
2240
|
const button = "_button_2dhvf_4";
|
|
2236
2241
|
const expanded$2 = "_expanded_2dhvf_22";
|
|
@@ -2243,16 +2248,18 @@ function ExpandCellContent({ isExpanded, toggleExpanded }) {
|
|
|
2243
2248
|
toggleExpanded();
|
|
2244
2249
|
}, [toggleExpanded]);
|
|
2245
2250
|
const className = utilities_css.classNames(styles$6.button, isExpanded && styles$6.expanded);
|
|
2246
|
-
return
|
|
2251
|
+
return jsxRuntime.jsxs(UnstyledPressButton, {
|
|
2247
2252
|
onPress: handleClick,
|
|
2248
2253
|
className,
|
|
2249
|
-
"aria-expanded": isExpanded
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2254
|
+
"aria-expanded": isExpanded,
|
|
2255
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
2256
|
+
visuallyHidden: true,
|
|
2257
|
+
children: "Expand"
|
|
2258
|
+
}), jsxRuntime.jsx(Icon.Icon, {
|
|
2259
|
+
symbol: ArrowForwardIos.ArrowForwardIos,
|
|
2260
|
+
size: "xs"
|
|
2261
|
+
})]
|
|
2262
|
+
});
|
|
2256
2263
|
}
|
|
2257
2264
|
const Cell$1 = "_Cell_mlbdo_4";
|
|
2258
2265
|
const content$1 = "_content_mlbdo_13";
|
|
@@ -2299,41 +2306,48 @@ function Cell({ cell, state }) {
|
|
|
2299
2306
|
const hasLeftShadow = hasActionsAtEnd && table2.isRightEdgeUnderScroll && cell.index === state.collection.columnCount - 1;
|
|
2300
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);
|
|
2301
2308
|
const CellContentComponent = cell.props.isSelectionCell ? SelectCellContent : DefaultCellContent;
|
|
2302
|
-
return
|
|
2309
|
+
return jsxRuntime.jsx("td", __spreadProps(__spreadValues({}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(gridCellProps, focusProps)), {
|
|
2303
2310
|
ref,
|
|
2304
|
-
className
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2311
|
+
className,
|
|
2312
|
+
children: jsxRuntime.jsxs("div", {
|
|
2313
|
+
className: styles$5.content,
|
|
2314
|
+
children: [jsxRuntime.jsx(CellContentComponent, {
|
|
2315
|
+
cell,
|
|
2316
|
+
state
|
|
2317
|
+
}), jsxRuntime.jsx("div", {
|
|
2318
|
+
"data-ezui-data-grid-shadow": true
|
|
2319
|
+
})]
|
|
2320
|
+
})
|
|
2321
|
+
}));
|
|
2313
2322
|
}
|
|
2314
2323
|
function DefaultCellContent({ cell }) {
|
|
2315
|
-
return
|
|
2324
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2325
|
+
children: cell.rendered
|
|
2326
|
+
});
|
|
2316
2327
|
}
|
|
2317
2328
|
function SelectCellContent({ cell, state }) {
|
|
2318
2329
|
const { checkboxProps } = $2a795c53a101c542$export$16ea7f650bd7c1bb({
|
|
2319
2330
|
key: cell.parentKey
|
|
2320
2331
|
}, state);
|
|
2321
|
-
return
|
|
2332
|
+
return jsxRuntime.jsx(Checkbox.Checkbox, __spreadValues({}, checkboxProps));
|
|
2322
2333
|
}
|
|
2323
2334
|
function StaticCell({ children, colSpan }) {
|
|
2324
2335
|
const className = utilities_css.classNames(styles$5.Cell, styles$5.static);
|
|
2325
|
-
return
|
|
2336
|
+
return jsxRuntime.jsx("td", {
|
|
2326
2337
|
role: "gridcell",
|
|
2327
2338
|
className,
|
|
2328
|
-
colSpan
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2339
|
+
colSpan,
|
|
2340
|
+
children: jsxRuntime.jsxs("div", {
|
|
2341
|
+
className: styles$5.content,
|
|
2342
|
+
children: [jsxRuntime.jsx(Text.Text, {
|
|
2343
|
+
variant: "subtitle2",
|
|
2344
|
+
color: "neutral.500",
|
|
2345
|
+
children
|
|
2346
|
+
}), jsxRuntime.jsx("div", {
|
|
2347
|
+
"data-ezui-data-grid-shadow": true
|
|
2348
|
+
})]
|
|
2349
|
+
})
|
|
2350
|
+
});
|
|
2337
2351
|
}
|
|
2338
2352
|
const SortIndicator$1 = "_SortIndicator_19d3w_4";
|
|
2339
2353
|
const arrow = "_arrow_19d3w_9";
|
|
@@ -2347,28 +2361,31 @@ const styles$4 = {
|
|
|
2347
2361
|
};
|
|
2348
2362
|
function SortIndicator({ sortDirection }) {
|
|
2349
2363
|
const { headerVariant } = useDataGridTable();
|
|
2350
|
-
return
|
|
2364
|
+
return jsxRuntime.jsx("span", {
|
|
2351
2365
|
"aria-hidden": "true",
|
|
2352
|
-
className: utilities_css.classNames(styles$4.SortIndicator, sortDirection && styles$4.sorted, headerVariant && styles$4[utilities_css.variationName("onHeader", headerVariant)])
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2366
|
+
className: utilities_css.classNames(styles$4.SortIndicator, sortDirection && styles$4.sorted, headerVariant && styles$4[utilities_css.variationName("onHeader", headerVariant)]),
|
|
2367
|
+
children: jsxRuntime.jsx(Arrow, {
|
|
2368
|
+
className: styles$4.arrow,
|
|
2369
|
+
style: {
|
|
2370
|
+
transform: sortDirection === "ascending" ? "scaleY(-1)" : "scaleY(1)"
|
|
2371
|
+
}
|
|
2372
|
+
})
|
|
2373
|
+
});
|
|
2359
2374
|
}
|
|
2360
2375
|
function Arrow(props) {
|
|
2361
|
-
return
|
|
2376
|
+
return jsxRuntime.jsx("svg", __spreadProps(__spreadValues({
|
|
2362
2377
|
width: "12",
|
|
2363
2378
|
height: "8",
|
|
2364
2379
|
viewBox: "0 0 12 8",
|
|
2365
2380
|
fill: "none",
|
|
2366
2381
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2367
|
-
}, props),
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2382
|
+
}, props), {
|
|
2383
|
+
children: jsxRuntime.jsx("path", {
|
|
2384
|
+
fill: "currentColor",
|
|
2385
|
+
fillRule: "evenodd",
|
|
2386
|
+
clipRule: "evenodd",
|
|
2387
|
+
d: "M12 0.344238L0 0.344238L6 7.561L12 0.344238Z"
|
|
2388
|
+
})
|
|
2372
2389
|
}));
|
|
2373
2390
|
}
|
|
2374
2391
|
const ColumnHeader$1 = "_ColumnHeader_1le2g_4";
|
|
@@ -2413,34 +2430,40 @@ function ColumnHeader({ column, state }) {
|
|
|
2413
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);
|
|
2414
2431
|
const contentClassName = utilities_css.classNames(styles$3.content, column.props.allowsSorting && styles$3.allowsSorting);
|
|
2415
2432
|
const ColumnHeaderContentComponent = column.props.isSelectionCell ? SelectAllColumnHeaderContent : DefaultColumnHeaderContent;
|
|
2416
|
-
return
|
|
2433
|
+
return jsxRuntime.jsx("td", __spreadProps(__spreadValues({
|
|
2417
2434
|
ref
|
|
2418
2435
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(columnHeaderProps, focusProps)), {
|
|
2419
2436
|
className,
|
|
2420
|
-
"data-ezui-data-grid-column-header": "true"
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2437
|
+
"data-ezui-data-grid-column-header": "true",
|
|
2438
|
+
children: jsxRuntime.jsxs("div", {
|
|
2439
|
+
className: contentClassName,
|
|
2440
|
+
children: [jsxRuntime.jsx(ColumnHeaderContentComponent, {
|
|
2441
|
+
column,
|
|
2442
|
+
state
|
|
2443
|
+
}), jsxRuntime.jsx("div", {
|
|
2444
|
+
"data-ezui-data-grid-shadow": "bottom"
|
|
2445
|
+
}), jsxRuntime.jsx("div", {
|
|
2446
|
+
"data-ezui-data-grid-shadow": "side"
|
|
2447
|
+
})]
|
|
2448
|
+
})
|
|
2449
|
+
}));
|
|
2431
2450
|
}
|
|
2432
2451
|
function DefaultColumnHeaderContent({ column, state }) {
|
|
2433
2452
|
var _a, _b;
|
|
2434
|
-
return
|
|
2435
|
-
|
|
2436
|
-
|
|
2453
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2454
|
+
children: [column.rendered, column.props.allowsSorting && jsxRuntime.jsx(SortIndicator, {
|
|
2455
|
+
sortDirection: ((_a = state.sortDescriptor) == null ? void 0 : _a.column) === column.key ? (_b = state.sortDescriptor) == null ? void 0 : _b.direction : void 0
|
|
2456
|
+
})]
|
|
2457
|
+
});
|
|
2437
2458
|
}
|
|
2438
2459
|
function SelectAllColumnHeaderContent({ state }) {
|
|
2439
2460
|
const { checkboxProps } = $2a795c53a101c542$export$1003db6a7e384b99(state);
|
|
2440
2461
|
if (state.selectionManager.selectionMode === "single") {
|
|
2441
|
-
return
|
|
2462
|
+
return jsxRuntime.jsx(VisuallyHidden.$5c3e21d68f1c4674$export$439d29a4e110a164, {
|
|
2463
|
+
children: checkboxProps["aria-label"]
|
|
2464
|
+
});
|
|
2442
2465
|
}
|
|
2443
|
-
return
|
|
2466
|
+
return jsxRuntime.jsx(Checkbox.Checkbox, __spreadValues({}, checkboxProps));
|
|
2444
2467
|
}
|
|
2445
2468
|
const ExpandedRowContent$1 = "_ExpandedRowContent_180oy_4";
|
|
2446
2469
|
const inner = "_inner_180oy_16";
|
|
@@ -2449,12 +2472,14 @@ const styles$2 = {
|
|
|
2449
2472
|
inner
|
|
2450
2473
|
};
|
|
2451
2474
|
function ExpandedRowContent({ children }) {
|
|
2452
|
-
return
|
|
2475
|
+
return jsxRuntime.jsx("div", {
|
|
2453
2476
|
className: utilities_css.classNames(styles$2.ExpandedRowContent),
|
|
2454
|
-
"data-ezui-data-grid-expanded-row-content": "active"
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2477
|
+
"data-ezui-data-grid-expanded-row-content": "active",
|
|
2478
|
+
children: jsxRuntime.jsx("div", {
|
|
2479
|
+
className: utilities_css.classNames(styles$2.inner),
|
|
2480
|
+
children
|
|
2481
|
+
})
|
|
2482
|
+
});
|
|
2458
2483
|
}
|
|
2459
2484
|
const Row$1 = "_Row_oip0t_4";
|
|
2460
2485
|
const noUserSelection = "_noUserSelection_oip0t_10";
|
|
@@ -2473,10 +2498,11 @@ function HeaderRow({ item, state, children }) {
|
|
|
2473
2498
|
const { rowProps } = $f917ee10f4c32dab$export$1b95a7d2d517b841({
|
|
2474
2499
|
node: item
|
|
2475
2500
|
}, state);
|
|
2476
|
-
return
|
|
2501
|
+
return jsxRuntime.jsx("tr", __spreadProps(__spreadValues({}, rowProps), {
|
|
2477
2502
|
ref,
|
|
2478
|
-
className: styles$1.Row
|
|
2479
|
-
|
|
2503
|
+
className: styles$1.Row,
|
|
2504
|
+
children
|
|
2505
|
+
}));
|
|
2480
2506
|
}
|
|
2481
2507
|
const EXPAND_COLUMN_KEY = "__ezui-column-key-expand__";
|
|
2482
2508
|
const ACTIONS_COLUMN_KEY = "__ezui-column-key-actions__";
|
|
@@ -2514,21 +2540,24 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2514
2540
|
};
|
|
2515
2541
|
}, [isExpanded, isFocusVisible, removeHover, rowIndex]);
|
|
2516
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);
|
|
2517
|
-
return
|
|
2518
|
-
value: context2
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2543
|
+
return jsxRuntime.jsx(DataGridRowContext.Provider, {
|
|
2544
|
+
value: context2,
|
|
2545
|
+
children: jsxRuntime.jsx("tr", __spreadProps(__spreadValues({
|
|
2546
|
+
ref
|
|
2547
|
+
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(rowProps, focusProps, hoverProps)), {
|
|
2548
|
+
className,
|
|
2549
|
+
"data-ezui-data-grid-expanded-row": isPendingExpanded,
|
|
2550
|
+
"data-ezui-data-grid-row": "true",
|
|
2551
|
+
children
|
|
2552
|
+
}))
|
|
2553
|
+
});
|
|
2526
2554
|
}
|
|
2527
2555
|
function StaticRow({ children }) {
|
|
2528
|
-
return
|
|
2556
|
+
return jsxRuntime.jsx("tr", {
|
|
2529
2557
|
role: "row",
|
|
2530
|
-
className: styles$1.Row
|
|
2531
|
-
|
|
2558
|
+
className: styles$1.Row,
|
|
2559
|
+
children
|
|
2560
|
+
});
|
|
2532
2561
|
}
|
|
2533
2562
|
const DataGrid$1 = "_DataGrid_en1kq_4";
|
|
2534
2563
|
const sizeSm = "_sizeSm_en1kq_40";
|
|
@@ -2552,9 +2581,10 @@ const styles = {
|
|
|
2552
2581
|
};
|
|
2553
2582
|
function RowGroup({ as: As = "div", children }) {
|
|
2554
2583
|
const { rowGroupProps } = $0047e6c294ea075f$export$6fb1613bd7b28198();
|
|
2555
|
-
return
|
|
2556
|
-
className: styles.contents
|
|
2557
|
-
|
|
2584
|
+
return jsxRuntime.jsx(As, __spreadProps(__spreadValues({}, rowGroupProps), {
|
|
2585
|
+
className: styles.contents,
|
|
2586
|
+
children
|
|
2587
|
+
}));
|
|
2558
2588
|
}
|
|
2559
2589
|
function useExpandedRow({ containerRef, state }) {
|
|
2560
2590
|
const [expandedRowRect, setExpandedRowRect] = React.useState(null);
|
|
@@ -2647,52 +2677,64 @@ function Table(props) {
|
|
|
2647
2677
|
isRightEdgeUnderScroll
|
|
2648
2678
|
};
|
|
2649
2679
|
}, [headerVariant, hasSelection, hasExpansion, hasRowActions, hasOnRowAction, isTopEdgeUnderScroll, isLeftEdgeUnderScroll, isRightEdgeUnderScroll]);
|
|
2650
|
-
return
|
|
2651
|
-
value: context2
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2680
|
+
return jsxRuntime.jsx(DataGridTableContext.Provider, {
|
|
2681
|
+
value: context2,
|
|
2682
|
+
children: jsxRuntime.jsx("div", {
|
|
2683
|
+
ref: outerContainerRef,
|
|
2684
|
+
className: dataGridClassName,
|
|
2685
|
+
style,
|
|
2686
|
+
children: jsxRuntime.jsxs("div", {
|
|
2687
|
+
ref: innerContainerRef,
|
|
2688
|
+
className: styles.innerContainer,
|
|
2689
|
+
children: [jsxRuntime.jsxs("table", __spreadProps(__spreadValues({}, gridProps), {
|
|
2690
|
+
ref: tableRef,
|
|
2691
|
+
className: tableClassName,
|
|
2692
|
+
children: [jsxRuntime.jsx(RowGroup, {
|
|
2693
|
+
as: "thead",
|
|
2694
|
+
children: collection.headerRows.map((headerRow) => jsxRuntime.jsx(HeaderRow, {
|
|
2695
|
+
item: headerRow,
|
|
2696
|
+
state,
|
|
2697
|
+
children: [...headerRow.childNodes].map((column) => jsxRuntime.jsx(ColumnHeader, {
|
|
2698
|
+
column,
|
|
2699
|
+
state
|
|
2700
|
+
}, column.key))
|
|
2701
|
+
}, headerRow.key))
|
|
2702
|
+
}), jsxRuntime.jsx(RowGroup, {
|
|
2703
|
+
as: "tbody",
|
|
2704
|
+
children: collection.size === 0 || isLoading ? jsxRuntime.jsx(StaticRow, {
|
|
2705
|
+
children: jsxRuntime.jsx(StaticCell, {
|
|
2706
|
+
colSpan: collection.columnCount,
|
|
2707
|
+
children: isLoading ? jsxRuntime.jsx(Spinner.Spinner, {
|
|
2708
|
+
isIndeterminate: true,
|
|
2709
|
+
size: "sm",
|
|
2710
|
+
children: "Loading.."
|
|
2711
|
+
}) : renderEmptyState()
|
|
2712
|
+
})
|
|
2713
|
+
}) : [...collection.body.childNodes].map((row) => jsxRuntime.jsx(Row, {
|
|
2714
|
+
item: row,
|
|
2715
|
+
state,
|
|
2716
|
+
isExpanded: expandedRow ? expandedRow.key === row.key : false,
|
|
2717
|
+
children: [...row.childNodes].map((cell) => jsxRuntime.jsx(Cell, {
|
|
2718
|
+
cell,
|
|
2719
|
+
state
|
|
2720
|
+
}, cell.key))
|
|
2721
|
+
}, row.key))
|
|
2722
|
+
})]
|
|
2723
|
+
})), expandedRow && jsxRuntime.jsx(ExpandedRowContent, {
|
|
2724
|
+
children: renderExpandedRow(expandedRow.key)
|
|
2725
|
+
}), renderInterceptors()]
|
|
2726
|
+
})
|
|
2727
|
+
})
|
|
2728
|
+
});
|
|
2689
2729
|
}
|
|
2690
2730
|
function VisuallyHiddenCellContent({ children }) {
|
|
2691
|
-
return
|
|
2692
|
-
className: styles.visuallyHiddenCellContainer
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2731
|
+
return jsxRuntime.jsx("span", {
|
|
2732
|
+
className: styles.visuallyHiddenCellContainer,
|
|
2733
|
+
children: jsxRuntime.jsx(Text.Text, {
|
|
2734
|
+
visuallyHidden: true,
|
|
2735
|
+
children
|
|
2736
|
+
})
|
|
2737
|
+
});
|
|
2696
2738
|
}
|
|
2697
2739
|
function DataGrid(props) {
|
|
2698
2740
|
const { columns: unprocessedColumns, columnKeysAllowingSort = [], defaultExpandedKey, expandedKey: expandedKeyFromUser, onExpandedChange = () => {
|
|
@@ -2728,21 +2770,35 @@ function DataGrid(props) {
|
|
|
2728
2770
|
setExpandedKey
|
|
2729
2771
|
};
|
|
2730
2772
|
}, [expandedKey]);
|
|
2731
|
-
return
|
|
2732
|
-
value: context2
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2773
|
+
return jsxRuntime.jsx(DataGridContext.Provider, {
|
|
2774
|
+
value: context2,
|
|
2775
|
+
children: jsxRuntime.jsxs(Table, __spreadProps(__spreadValues({}, props), {
|
|
2776
|
+
children: [jsxRuntime.jsx($312ae3b56a94a86e$export$f850895b287ef28e, {
|
|
2777
|
+
columns,
|
|
2778
|
+
children: (column) => jsxRuntime.jsx($1cd244557c2f97d5$export$816b5d811295e6bc, {
|
|
2779
|
+
isRowHeader: column.key === rowHeaderColumnKey,
|
|
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.jsx(VisuallyHiddenCellContent, {
|
|
2782
|
+
children: "Expand row"
|
|
2783
|
+
}) : column.key === ACTIONS_COLUMN_KEY ? jsxRuntime.jsx(VisuallyHiddenCellContent, {
|
|
2784
|
+
children: "Row actions"
|
|
2785
|
+
}) : renderColumnCell(column)
|
|
2786
|
+
})
|
|
2787
|
+
}), jsxRuntime.jsx($4ae5314bf50db1a3$export$76ccd210b9029917, {
|
|
2788
|
+
items: rows,
|
|
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
|
+
isExpanded: row.key === expandedKey,
|
|
2793
|
+
toggleExpanded: () => toggleExpandedRow(row.key)
|
|
2794
|
+
}) : columnKey === ACTIONS_COLUMN_KEY && rowActions ? jsxRuntime.jsx(ActionsCellContent, {
|
|
2795
|
+
rowActions: rowActions(row.key)
|
|
2796
|
+
}) : renderRowCell(row[columnKey], columnKey, row)
|
|
2797
|
+
})
|
|
2798
|
+
})
|
|
2799
|
+
})]
|
|
2800
|
+
}))
|
|
2801
|
+
});
|
|
2746
2802
|
}
|
|
2747
2803
|
function useProcessedColumns(props) {
|
|
2748
2804
|
const { renderExpandedRow, columns, rowActions } = props;
|