@easypost/easy-ui 1.0.0-alpha.69 → 1.0.0-alpha.70
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/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +11 -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 +6 -6
- package/CheckableCard/index.mjs +6 -6
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +13 -13
- package/CodeBlock/index.mjs +13 -13
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/Row.d.ts.map +1 -1
- package/DataGrid/Table.d.ts.map +1 -1
- package/DataGrid/VisuallyHiddenCellContent.d.ts.map +1 -1
- package/DataGrid/context.d.ts +1 -0
- package/DataGrid/context.d.ts.map +1 -1
- package/DataGrid/index.js +71 -62
- package/DataGrid/index.mjs +71 -62
- package/DatePicker/index.js +3 -3
- package/DatePicker/index.mjs +3 -3
- package/DateRangePicker/index.js +3 -3
- package/DateRangePicker/index.mjs +3 -3
- package/Drawer/index.js +17 -17
- package/Drawer/index.mjs +17 -17
- package/DropdownButton/index.js +12 -12
- package/DropdownButton/index.mjs +12 -12
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/ForgeLayout/index.js +36 -36
- package/ForgeLayout/index.mjs +36 -36
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- 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 +12 -12
- package/IconButton/index.mjs +12 -12
- 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 +19 -19
- package/Modal/index.mjs +19 -19
- package/MultiSelect/index.js +16 -16
- package/MultiSelect/index.mjs +17 -17
- package/NexusLayout/index.js +28 -28
- package/NexusLayout/index.mjs +28 -28
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +7 -7
- package/Pagination/index.mjs +7 -7
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/ProductLayout/index.js +21 -21
- package/ProductLayout/index.mjs +21 -21
- package/Provider/index.js +1 -1
- package/Provider/index.mjs +1 -1
- package/RadioButtonGroup/index.js +2 -2
- package/RadioButtonGroup/index.mjs +2 -2
- 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 +28 -28
- package/SearchNav/index.mjs +28 -28
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +4 -4
- package/Select/index.mjs +4 -4
- 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 +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- 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 +1 -1
- package/TabPanels/index.mjs +1 -1
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/Text.d.ts +4 -1
- package/Text/Text.d.ts.map +1 -1
- package/Text/Text.stories.d.ts +1 -0
- package/Text/Text.stories.d.ts.map +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 +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/VerticalNav/index.js +24 -24
- package/VerticalNav/index.mjs +24 -24
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-5ySni8Hh.js → Button-BPRaVGPL.js} +18 -18
- package/__chunks__/{Button-pgrX3do0.mjs → Button-DF_rdiaE.mjs} +18 -18
- package/__chunks__/{Calendar-CRF4AZno.mjs → Calendar-BypbgQDc.mjs} +1 -1
- package/__chunks__/{Calendar-CaPbfdfI.js → Calendar-Tx6YYe1Z.js} +1 -1
- package/__chunks__/{CalendarBase-2ZQWqtoJ.js → CalendarBase-CyfGzPs0.js} +18 -18
- package/__chunks__/{CalendarBase-C5U2z_dE.mjs → CalendarBase-d72EQzpy.mjs} +18 -18
- package/__chunks__/{Card-BglJr0kt.js → Card-D1i8zLMR.js} +12 -12
- package/__chunks__/{Card-BDwEhe4v.mjs → Card-ULdlYqfr.mjs} +12 -12
- package/__chunks__/{Checkbox-ukdXVfAE.mjs → Checkbox-CAqgwqP5.mjs} +19 -19
- package/__chunks__/{Checkbox-DZQ5HskZ.js → Checkbox-CQ1sLqDH.js} +19 -19
- package/__chunks__/{CodeSnippet-DzSaE0NF.js → CodeSnippet-BaPDU5UY.js} +2 -2
- package/__chunks__/{CodeSnippet-CNO4caRz.mjs → CodeSnippet-nq2cOEYD.mjs} +2 -2
- package/__chunks__/{DatePickerBase-Dn6y6xs8.js → DatePickerBase-D_Cbxxc6.js} +15 -15
- package/__chunks__/{DatePickerBase-DVa8mIxi.mjs → DatePickerBase-ix3RmplD.mjs} +15 -15
- package/__chunks__/{HelpMenu-o_hQKn4r.mjs → HelpMenu-BMczxdnx.mjs} +6 -6
- package/__chunks__/{HelpMenu-DCAISGya.js → HelpMenu-OAKEfgwn.js} +6 -6
- package/__chunks__/{HorizontalGrid-DbUUnstP.js → HorizontalGrid-B666Dz0t.js} +1 -1
- package/__chunks__/{HorizontalGrid-RdSsoPeC.mjs → HorizontalGrid-BZzIqRyv.mjs} +1 -1
- package/__chunks__/{HorizontalStack-vmmevfre.js → HorizontalStack-ClWTvZqM.js} +1 -1
- package/__chunks__/{HorizontalStack-WaIa_On_.mjs → HorizontalStack-ycH41R6u.mjs} +1 -1
- package/__chunks__/{Icon-CYsmNchv.js → Icon-BlcrcY3U.js} +2 -2
- package/__chunks__/{Icon-CcUj4MVY.mjs → Icon-CQ73-QIg.mjs} +2 -2
- package/__chunks__/{InputCaption-bYqI7fXg.js → InputCaption-BL_NLjoT.js} +2 -2
- package/__chunks__/{InputCaption-CxxltDAs.mjs → InputCaption-CWtoKFv-.mjs} +2 -2
- package/__chunks__/{InputField-buf5D3ld.js → InputField-2I7cBW-k.js} +4 -4
- package/__chunks__/{InputField-Ca7qeLiO.mjs → InputField-BEQE01Ks.mjs} +4 -4
- package/__chunks__/{InputIcon-DfLwYU9w.mjs → InputIcon-CktsE7z9.mjs} +31 -31
- package/__chunks__/{InputIcon-Cyg4utaN.js → InputIcon-Djdhmk7P.js} +31 -31
- package/__chunks__/{KebabButton-BPEfCygq.js → KebabButton-CpClD-ta.js} +4 -4
- package/__chunks__/{KebabButton-Bj7-5IMa.mjs → KebabButton-D_JdD9tg.mjs} +4 -4
- package/__chunks__/{Menu-BElR0RBK.js → Menu-ChrJLF1b.js} +11 -11
- package/__chunks__/{Menu-i28maspp.mjs → Menu-DZBO3sp5.mjs} +11 -11
- package/__chunks__/{Notification-DiJldjM9.mjs → Notification-BoupUo2q.mjs} +14 -14
- package/__chunks__/{Notification-DXHN4vv_.js → Notification-fbWzf7BF.js} +14 -14
- package/__chunks__/{PillGroup-BRYeG6Od.mjs → PillGroup-3zK1GHRU.mjs} +5 -5
- package/__chunks__/{PillGroup-Cn8E8E4P.js → PillGroup-6MG9UkFs.js} +5 -5
- package/__chunks__/{RadioGroup-DJK8z1vF.js → RadioGroup-BKpolhQi.js} +14 -14
- package/__chunks__/{RadioGroup-CPEyf5hC.mjs → RadioGroup-mbzALykd.mjs} +14 -14
- package/__chunks__/{RangeCalendar-Bs9IeXPy.js → RangeCalendar-BbXSVgVP.js} +1 -1
- package/__chunks__/{RangeCalendar-BPHbgsZ0.mjs → RangeCalendar-Bctey6Vi.mjs} +1 -1
- package/__chunks__/{SelectOverlay-PEm5Tl8A.mjs → SelectOverlay-BXGkUiwu.mjs} +19 -19
- package/__chunks__/{SelectOverlay-Db5VJkmw.js → SelectOverlay-CdA5k1EB.js} +19 -19
- package/__chunks__/{SelectorErrorTooltip-DDNm75nL.js → SelectorErrorTooltip-BpiNAFuB.js} +4 -4
- package/__chunks__/{SelectorErrorTooltip-Boqc65Yy.mjs → SelectorErrorTooltip-CPVNpxGK.mjs} +4 -4
- package/__chunks__/{Spinner-m8qMSR1F.js → Spinner-DGw1szSS.js} +4 -4
- package/__chunks__/{Spinner-CBomPNoI.mjs → Spinner-w1oZ97DZ.mjs} +4 -4
- package/__chunks__/{Stepper-BEPd-fky.mjs → Stepper-0S2slVvL.mjs} +25 -25
- package/__chunks__/{Stepper-_2jbaW9J.js → Stepper-C0LQwSRc.js} +25 -25
- package/__chunks__/{TabNav-Bf-77rib.js → TabNav-Bhq7vuFD.js} +1 -1
- package/__chunks__/{TabNav-CGZ4r4PS.mjs → TabNav-CmEu1osE.mjs} +1 -1
- package/__chunks__/{Tabs-tyZA8KaR.js → Tabs-Bgb2pnmW.js} +17 -17
- package/__chunks__/{Tabs-CxYgTX5o.mjs → Tabs-CVXhD1Q9.mjs} +17 -17
- package/__chunks__/{Text-BAiVIBZd.mjs → Text-BY4p1xZ-.mjs} +46 -37
- package/__chunks__/{Text-hP_Y9mSJ.js → Text-C6DuTMMj.js} +46 -37
- package/__chunks__/{TextField-CCjc76fv.mjs → TextField-BhrZgTyN.mjs} +1 -1
- package/__chunks__/{TextField-dE7TispK.js → TextField-CjTtasRE.js} +1 -1
- package/__chunks__/{Toggle-Crbwuw_5.mjs → Toggle-DVZ0H58G.mjs} +11 -11
- package/__chunks__/{Toggle-OHMRIrIs.js → Toggle-DXWt5hLD.js} +11 -11
- package/__chunks__/{Tooltip-DGSCicRM.mjs → Tooltip-Dg1Eau1x.mjs} +8 -8
- package/__chunks__/{Tooltip-D3SlLoJf.js → Tooltip-vmnwEvfN.js} +8 -8
- package/__chunks__/{VerticalStack-CtaqI7n3.mjs → VerticalStack-BIhfodYr.mjs} +3 -3
- package/__chunks__/{VerticalStack-C-yspCsz.js → VerticalStack-DIWUMCDj.js} +3 -3
- package/__chunks__/{useEdgeInterceptors--Trr_tJl.js → useEdgeInterceptors-BE1QLRt6.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-BougedeY.mjs → useEdgeInterceptors-DUaDYOew.mjs} +5 -5
- package/package.json +1 -1
- package/style.css +1090 -1059
package/DataGrid/index.js
CHANGED
|
@@ -68,13 +68,13 @@ var __yieldStar = (value) => {
|
|
|
68
68
|
};
|
|
69
69
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
70
70
|
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-
|
|
71
|
+
const Icon = require("../__chunks__/Icon-BlcrcY3U.js");
|
|
72
|
+
const Menu = require("../__chunks__/Menu-ChrJLF1b.js");
|
|
73
|
+
const Text = require("../__chunks__/Text-C6DuTMMj.js");
|
|
74
|
+
const KebabButton = require("../__chunks__/KebabButton-CpClD-ta.js");
|
|
75
75
|
const ArrowForwardIos = require("../__chunks__/ArrowForwardIos-DpRiDPNZ.js");
|
|
76
76
|
const utilities_css = require("../utilities/css.js");
|
|
77
|
-
const Checkbox = require("../__chunks__/Checkbox-
|
|
77
|
+
const Checkbox = require("../__chunks__/Checkbox-CQ1sLqDH.js");
|
|
78
78
|
const FocusScope = require("../__chunks__/FocusScope-Djtxzznf.js");
|
|
79
79
|
const focusSafely = require("../__chunks__/focusSafely-wmTq_iKq.js");
|
|
80
80
|
const mergeProps = require("../__chunks__/mergeProps-DniMwM6P.js");
|
|
@@ -92,9 +92,9 @@ const usePress = require("../__chunks__/usePress-DTGD4Sub.js");
|
|
|
92
92
|
const VisuallyHidden = require("../__chunks__/VisuallyHidden-DcUrMWfu.js");
|
|
93
93
|
const SelectionManager = require("../__chunks__/SelectionManager-DuX6geJg.js");
|
|
94
94
|
const useHover = require("../__chunks__/useHover-BIKwjrCT.js");
|
|
95
|
-
const useEdgeInterceptors = require("../__chunks__/useEdgeInterceptors
|
|
95
|
+
const useEdgeInterceptors = require("../__chunks__/useEdgeInterceptors-BE1QLRt6.js");
|
|
96
96
|
const useResizeObserver = require("../__chunks__/useResizeObserver-BsbT3mjh.js");
|
|
97
|
-
const Spinner = require("../__chunks__/Spinner-
|
|
97
|
+
const Spinner = require("../__chunks__/Spinner-DGw1szSS.js");
|
|
98
98
|
const useSelectableList = require("../__chunks__/useSelectableList-Dk3TxzYJ.js");
|
|
99
99
|
const LiveAnnouncer = require("../__chunks__/LiveAnnouncer-CzeNwq2D.js");
|
|
100
100
|
const filterDOMProps = require("../__chunks__/filterDOMProps-D3iOHP0H.js");
|
|
@@ -2136,7 +2136,7 @@ const useDataGridRow = () => {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
return dataGridRowContext;
|
|
2138
2138
|
};
|
|
2139
|
-
const ActionsCellContent$1 = "
|
|
2139
|
+
const ActionsCellContent$1 = "_ActionsCellContent_1emjy_5";
|
|
2140
2140
|
const styles$7 = {
|
|
2141
2141
|
ActionsCellContent: ActionsCellContent$1
|
|
2142
2142
|
};
|
|
@@ -2182,8 +2182,8 @@ function ActionRowAction({ rowAction }) {
|
|
|
2182
2182
|
symbol: rowAction.iconSymbol
|
|
2183
2183
|
}));
|
|
2184
2184
|
}
|
|
2185
|
-
const button = "
|
|
2186
|
-
const expanded$2 = "
|
|
2185
|
+
const button = "_button_13cnl_5";
|
|
2186
|
+
const expanded$2 = "_expanded_13cnl_23";
|
|
2187
2187
|
const styles$6 = {
|
|
2188
2188
|
button,
|
|
2189
2189
|
expanded: expanded$2
|
|
@@ -2204,20 +2204,20 @@ function ExpandCellContent({ isExpanded, toggleExpanded }) {
|
|
|
2204
2204
|
size: "xs"
|
|
2205
2205
|
}));
|
|
2206
2206
|
}
|
|
2207
|
-
const Cell$1 = "
|
|
2208
|
-
const content$1 = "
|
|
2209
|
-
const lastRow = "
|
|
2210
|
-
const focused$1 = "
|
|
2211
|
-
const rowFocused = "
|
|
2212
|
-
const expanded$1 = "
|
|
2213
|
-
const first$1 = "
|
|
2214
|
-
const firstWithActions$1 = "
|
|
2215
|
-
const secondWithActions$1 = "
|
|
2216
|
-
const last$1 = "
|
|
2217
|
-
const lastWithActions$1 = "
|
|
2218
|
-
const secondToLastWithActions$1 = "
|
|
2219
|
-
const shadowLeft$1 = "
|
|
2220
|
-
const shadowRight$1 = "
|
|
2207
|
+
const Cell$1 = "_Cell_i9u81_5";
|
|
2208
|
+
const content$1 = "_content_i9u81_14";
|
|
2209
|
+
const lastRow = "_lastRow_i9u81_25";
|
|
2210
|
+
const focused$1 = "_focused_i9u81_29";
|
|
2211
|
+
const rowFocused = "_rowFocused_i9u81_30";
|
|
2212
|
+
const expanded$1 = "_expanded_i9u81_34";
|
|
2213
|
+
const first$1 = "_first_i9u81_38";
|
|
2214
|
+
const firstWithActions$1 = "_firstWithActions_i9u81_45";
|
|
2215
|
+
const secondWithActions$1 = "_secondWithActions_i9u81_51";
|
|
2216
|
+
const last$1 = "_last_i9u81_25";
|
|
2217
|
+
const lastWithActions$1 = "_lastWithActions_i9u81_62";
|
|
2218
|
+
const secondToLastWithActions$1 = "_secondToLastWithActions_i9u81_71";
|
|
2219
|
+
const shadowLeft$1 = "_shadowLeft_i9u81_75";
|
|
2220
|
+
const shadowRight$1 = "_shadowRight_i9u81_94";
|
|
2221
2221
|
const styles$5 = {
|
|
2222
2222
|
Cell: Cell$1,
|
|
2223
2223
|
content: content$1,
|
|
@@ -2233,7 +2233,7 @@ const styles$5 = {
|
|
|
2233
2233
|
secondToLastWithActions: secondToLastWithActions$1,
|
|
2234
2234
|
shadowLeft: shadowLeft$1,
|
|
2235
2235
|
shadowRight: shadowRight$1,
|
|
2236
|
-
"static": "
|
|
2236
|
+
"static": "_static_i9u81_113"
|
|
2237
2237
|
};
|
|
2238
2238
|
function Cell({ cell, state }) {
|
|
2239
2239
|
const table2 = useDataGridTable();
|
|
@@ -2285,10 +2285,10 @@ function StaticCell({ children, colSpan }) {
|
|
|
2285
2285
|
"data-ezui-data-grid-shadow": true
|
|
2286
2286
|
})));
|
|
2287
2287
|
}
|
|
2288
|
-
const SortIndicator$1 = "
|
|
2289
|
-
const arrow = "
|
|
2290
|
-
const sorted = "
|
|
2291
|
-
const onHeaderSecondary = "
|
|
2288
|
+
const SortIndicator$1 = "_SortIndicator_1h8s6_5";
|
|
2289
|
+
const arrow = "_arrow_1h8s6_10";
|
|
2290
|
+
const sorted = "_sorted_1h8s6_14";
|
|
2291
|
+
const onHeaderSecondary = "_onHeaderSecondary_1h8s6_18";
|
|
2292
2292
|
const styles$4 = {
|
|
2293
2293
|
SortIndicator: SortIndicator$1,
|
|
2294
2294
|
arrow,
|
|
@@ -2321,19 +2321,19 @@ function Arrow(props) {
|
|
|
2321
2321
|
d: "M12 0.344238L0 0.344238L6 7.561L12 0.344238Z"
|
|
2322
2322
|
}));
|
|
2323
2323
|
}
|
|
2324
|
-
const ColumnHeader$1 = "
|
|
2325
|
-
const content = "
|
|
2326
|
-
const allowsSorting = "
|
|
2327
|
-
const focused = "
|
|
2328
|
-
const first = "
|
|
2329
|
-
const firstWithActions = "
|
|
2330
|
-
const secondWithActions = "
|
|
2331
|
-
const last = "
|
|
2332
|
-
const lastWithActions = "
|
|
2333
|
-
const secondToLastWithActions = "
|
|
2334
|
-
const shadowBottom = "
|
|
2335
|
-
const shadowRight = "
|
|
2336
|
-
const shadowLeft = "
|
|
2324
|
+
const ColumnHeader$1 = "_ColumnHeader_tk8fi_5";
|
|
2325
|
+
const content = "_content_tk8fi_15";
|
|
2326
|
+
const allowsSorting = "_allowsSorting_tk8fi_26";
|
|
2327
|
+
const focused = "_focused_tk8fi_31";
|
|
2328
|
+
const first = "_first_tk8fi_44";
|
|
2329
|
+
const firstWithActions = "_firstWithActions_tk8fi_50";
|
|
2330
|
+
const secondWithActions = "_secondWithActions_tk8fi_57";
|
|
2331
|
+
const last = "_last_tk8fi_63";
|
|
2332
|
+
const lastWithActions = "_lastWithActions_tk8fi_67";
|
|
2333
|
+
const secondToLastWithActions = "_secondToLastWithActions_tk8fi_74";
|
|
2334
|
+
const shadowBottom = "_shadowBottom_tk8fi_78";
|
|
2335
|
+
const shadowRight = "_shadowRight_tk8fi_100";
|
|
2336
|
+
const shadowLeft = "_shadowLeft_tk8fi_119";
|
|
2337
2337
|
const styles$3 = {
|
|
2338
2338
|
ColumnHeader: ColumnHeader$1,
|
|
2339
2339
|
content,
|
|
@@ -2392,8 +2392,8 @@ function SelectAllColumnHeaderContent({ state }) {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
return React.createElement(Checkbox.Checkbox, __spreadValues({}, checkboxProps));
|
|
2394
2394
|
}
|
|
2395
|
-
const ExpandedRowContent$1 = "
|
|
2396
|
-
const inner = "
|
|
2395
|
+
const ExpandedRowContent$1 = "_ExpandedRowContent_1sl9n_5";
|
|
2396
|
+
const inner = "_inner_1sl9n_17";
|
|
2397
2397
|
const styles$2 = {
|
|
2398
2398
|
ExpandedRowContent: ExpandedRowContent$1,
|
|
2399
2399
|
inner
|
|
@@ -2406,12 +2406,14 @@ function ExpandedRowContent({ children }) {
|
|
|
2406
2406
|
className: utilities_css.classNames(styles$2.inner)
|
|
2407
2407
|
}, children));
|
|
2408
2408
|
}
|
|
2409
|
-
const Row$1 = "
|
|
2410
|
-
const
|
|
2411
|
-
const
|
|
2412
|
-
const
|
|
2409
|
+
const Row$1 = "_Row_1s55p_5";
|
|
2410
|
+
const noUserSelection = "_noUserSelection_1s55p_10";
|
|
2411
|
+
const expanded = "_expanded_1s55p_15";
|
|
2412
|
+
const hovered = "_hovered_1s55p_21";
|
|
2413
|
+
const selected = "_selected_1s55p_25";
|
|
2413
2414
|
const styles$1 = {
|
|
2414
2415
|
Row: Row$1,
|
|
2416
|
+
noUserSelection,
|
|
2415
2417
|
expanded,
|
|
2416
2418
|
hovered,
|
|
2417
2419
|
selected
|
|
@@ -2436,6 +2438,7 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2436
2438
|
const isPendingExpanded = item.value ? item.value[EXPAND_COLUMN_KEY] === true : false;
|
|
2437
2439
|
const rowIndex = item.index;
|
|
2438
2440
|
const ref = React.useRef(null);
|
|
2441
|
+
const { hasSelection, hasOnRowAction } = useDataGridTable();
|
|
2439
2442
|
const { rowProps, isPressed } = $b2db214c022798eb$export$7f2f6ae19e707aa5({
|
|
2440
2443
|
node: item
|
|
2441
2444
|
}, state, ref);
|
|
@@ -2460,7 +2463,7 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2460
2463
|
index: rowIndex
|
|
2461
2464
|
};
|
|
2462
2465
|
}, [isExpanded, isFocusVisible, removeHover, rowIndex]);
|
|
2463
|
-
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);
|
|
2466
|
+
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);
|
|
2464
2467
|
return React.createElement(DataGridRowContext.Provider, {
|
|
2465
2468
|
value: context2
|
|
2466
2469
|
}, React.createElement("tr", __spreadProps(__spreadValues({
|
|
@@ -2477,14 +2480,15 @@ function StaticRow({ children }) {
|
|
|
2477
2480
|
className: styles$1.Row
|
|
2478
2481
|
}, children);
|
|
2479
2482
|
}
|
|
2480
|
-
const DataGrid$1 = "
|
|
2481
|
-
const sizeSm = "
|
|
2482
|
-
const sizeLg = "
|
|
2483
|
-
const innerContainer = "
|
|
2484
|
-
const contents = "
|
|
2485
|
-
const table = "
|
|
2486
|
-
const headerSecondary = "
|
|
2487
|
-
const headerEmphasized = "
|
|
2483
|
+
const DataGrid$1 = "_DataGrid_1mou1_5";
|
|
2484
|
+
const sizeSm = "_sizeSm_1mou1_41";
|
|
2485
|
+
const sizeLg = "_sizeLg_1mou1_46";
|
|
2486
|
+
const innerContainer = "_innerContainer_1mou1_50";
|
|
2487
|
+
const contents = "_contents_1mou1_55";
|
|
2488
|
+
const table = "_table_1mou1_59";
|
|
2489
|
+
const headerSecondary = "_headerSecondary_1mou1_67";
|
|
2490
|
+
const headerEmphasized = "_headerEmphasized_1mou1_72";
|
|
2491
|
+
const visuallyHiddenCellContainer = "_visuallyHiddenCellContainer_1mou1_76";
|
|
2488
2492
|
const styles = {
|
|
2489
2493
|
DataGrid: DataGrid$1,
|
|
2490
2494
|
sizeSm,
|
|
@@ -2493,7 +2497,8 @@ const styles = {
|
|
|
2493
2497
|
contents,
|
|
2494
2498
|
table,
|
|
2495
2499
|
headerSecondary,
|
|
2496
|
-
headerEmphasized
|
|
2500
|
+
headerEmphasized,
|
|
2501
|
+
visuallyHiddenCellContainer
|
|
2497
2502
|
};
|
|
2498
2503
|
function RowGroup({ as: As = "div", children }) {
|
|
2499
2504
|
const { rowGroupProps } = $0047e6c294ea075f$export$6fb1613bd7b28198();
|
|
@@ -2556,7 +2561,7 @@ function getExpandedRowEl($container) {
|
|
|
2556
2561
|
return $container.querySelector(`[data-ezui-data-grid-expanded-row='true']`);
|
|
2557
2562
|
}
|
|
2558
2563
|
function Table(props) {
|
|
2559
|
-
const { headerVariant, maxRows = DEFAULT_MAX_ROWS, renderExpandedRow = (r) => r, selectionMode, size = DEFAULT_SIZE, renderEmptyState = () => "No Data
|
|
2564
|
+
const { headerVariant, maxRows = DEFAULT_MAX_ROWS, renderExpandedRow = (r) => r, selectionMode, size = DEFAULT_SIZE, renderEmptyState = () => "No Data", isLoading = false } = props;
|
|
2560
2565
|
const outerContainerRef = React.useRef(null);
|
|
2561
2566
|
const innerContainerRef = React.useRef(null);
|
|
2562
2567
|
const tableRef = React.useRef(null);
|
|
@@ -2576,6 +2581,7 @@ function Table(props) {
|
|
|
2576
2581
|
const hasSelection = columns.some((c) => c.props.isSelectionCell);
|
|
2577
2582
|
const hasExpansion = columns.some((c) => c.key === EXPAND_COLUMN_KEY);
|
|
2578
2583
|
const hasRowActions = columns.some((c) => c.key === ACTIONS_COLUMN_KEY);
|
|
2584
|
+
const hasOnRowAction = !!props.onRowAction;
|
|
2579
2585
|
const dataGridClassName = utilities_css.classNames(styles.DataGrid, styles[utilities_css.variationName("size", size)]);
|
|
2580
2586
|
const tableClassName = utilities_css.classNames(styles.table, headerVariant && styles[utilities_css.variationName("header", headerVariant)], hasSelection && styles.hasSelection, hasExpansion && styles.hasExpansion, hasRowActions && styles.hasRowActions, isTopEdgeUnderScroll && styles.topEdgeUnderScroll, isLeftEdgeUnderScroll && styles.leftEdgeUnderScroll, isRightEdgeUnderScroll && styles.rightEdgeUnderScroll);
|
|
2581
2587
|
const style = __spreadValues(__spreadValues({}, utilities_css.getComponentToken("data-grid", "max-rows", String(maxRows))), expandedRowStyle);
|
|
@@ -2585,11 +2591,12 @@ function Table(props) {
|
|
|
2585
2591
|
hasSelection,
|
|
2586
2592
|
hasExpansion,
|
|
2587
2593
|
hasRowActions,
|
|
2594
|
+
hasOnRowAction,
|
|
2588
2595
|
isTopEdgeUnderScroll,
|
|
2589
2596
|
isLeftEdgeUnderScroll,
|
|
2590
2597
|
isRightEdgeUnderScroll
|
|
2591
2598
|
};
|
|
2592
|
-
}, [headerVariant, hasSelection, hasExpansion, hasRowActions, isTopEdgeUnderScroll, isLeftEdgeUnderScroll, isRightEdgeUnderScroll]);
|
|
2599
|
+
}, [headerVariant, hasSelection, hasExpansion, hasRowActions, hasOnRowAction, isTopEdgeUnderScroll, isLeftEdgeUnderScroll, isRightEdgeUnderScroll]);
|
|
2593
2600
|
return React.createElement(DataGridTableContext.Provider, {
|
|
2594
2601
|
value: context2
|
|
2595
2602
|
}, React.createElement("div", {
|
|
@@ -2631,9 +2638,11 @@ function Table(props) {
|
|
|
2631
2638
|
})))))), expandedRow && React.createElement(ExpandedRowContent, null, renderExpandedRow(expandedRow.key)), renderInterceptors())));
|
|
2632
2639
|
}
|
|
2633
2640
|
function VisuallyHiddenCellContent({ children }) {
|
|
2634
|
-
return React.createElement(
|
|
2641
|
+
return React.createElement("span", {
|
|
2642
|
+
className: styles.visuallyHiddenCellContainer
|
|
2643
|
+
}, React.createElement(Text.Text, {
|
|
2635
2644
|
visuallyHidden: true
|
|
2636
|
-
}, children);
|
|
2645
|
+
}, children));
|
|
2637
2646
|
}
|
|
2638
2647
|
function DataGrid(props) {
|
|
2639
2648
|
const { columns: unprocessedColumns, columnKeysAllowingSort = [], defaultExpandedKey, expandedKey: expandedKeyFromUser, onExpandedChange = () => {
|
package/DataGrid/index.mjs
CHANGED
|
@@ -66,13 +66,13 @@ var __yieldStar = (value) => {
|
|
|
66
66
|
}, "return" in obj && method("return"), it;
|
|
67
67
|
};
|
|
68
68
|
import React__default, { useMemo, useRef, useEffect, useState, useCallback, createContext, useContext, useLayoutEffect } from "react";
|
|
69
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
70
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
71
|
-
import { T as Text } from "../__chunks__/Text-
|
|
72
|
-
import { K as KebabButton, U as UnstyledPressButton } from "../__chunks__/KebabButton-
|
|
69
|
+
import { I as Icon } from "../__chunks__/Icon-CQ73-QIg.mjs";
|
|
70
|
+
import { M as Menu } from "../__chunks__/Menu-DZBO3sp5.mjs";
|
|
71
|
+
import { T as Text } from "../__chunks__/Text-BY4p1xZ-.mjs";
|
|
72
|
+
import { K as KebabButton, U as UnstyledPressButton } from "../__chunks__/KebabButton-D_JdD9tg.mjs";
|
|
73
73
|
import { A as ArrowForwardIos } from "../__chunks__/ArrowForwardIos-DSeLeLhY.mjs";
|
|
74
74
|
import { classNames, variationName, getComponentToken } from "../utilities/css.mjs";
|
|
75
|
-
import { C as Checkbox } from "../__chunks__/Checkbox-
|
|
75
|
+
import { C as Checkbox } from "../__chunks__/Checkbox-CAqgwqP5.mjs";
|
|
76
76
|
import { $ as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "../__chunks__/FocusScope-CUJV-jWH.mjs";
|
|
77
77
|
import { $ as $6a99195332edec8b$export$80f3e147d781571c } from "../__chunks__/focusSafely-CCOEuEpK.mjs";
|
|
78
78
|
import { c as $bdb11010cef70236$export$f680877a34711e37, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, f as $ff5963eb1fccf552$export$e08e3b67e392101e } from "../__chunks__/mergeProps-DSi85raC.mjs";
|
|
@@ -90,9 +90,9 @@ import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, g as $ea8dcbcb9ea1b556$
|
|
|
90
90
|
import { a as $5c3e21d68f1c4674$export$439d29a4e110a164 } from "../__chunks__/VisuallyHidden-cQCgS6_a.mjs";
|
|
91
91
|
import { $ as $7af3f5b51489e0b5$export$253fe78d46329472, c as $c5a24bc478652b5f$export$1005530eda016c13, d as $c5a24bc478652b5f$export$7475b2c64539e4cf, e as $c5a24bc478652b5f$export$fbdeaa6a76694f71, b as $d496c0a20b6e58ec$export$6c8a5aaad13c9852, a as $7613b1592d41b092$export$6cd28814d92fa9c9, f as $c5a24bc478652b5f$export$5f3398f8733f90e2 } from "../__chunks__/SelectionManager-DCO_d3m1.mjs";
|
|
92
92
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-BOYR4wqI.mjs";
|
|
93
|
-
import { u as useEdgeInterceptors } from "../__chunks__/useEdgeInterceptors-
|
|
93
|
+
import { u as useEdgeInterceptors } from "../__chunks__/useEdgeInterceptors-DUaDYOew.mjs";
|
|
94
94
|
import { $ as $9daab02d461809db$export$683480f191c0e3ea } from "../__chunks__/useResizeObserver-Dyb4wvuA.mjs";
|
|
95
|
-
import { S as Spinner } from "../__chunks__/Spinner-
|
|
95
|
+
import { S as Spinner } from "../__chunks__/Spinner-w1oZ97DZ.mjs";
|
|
96
96
|
import { c as $657e4dc4a6e88df0$export$8f5ed9ff9f511381 } from "../__chunks__/useSelectableList-DPJUwWwV.mjs";
|
|
97
97
|
import { $ as $319e236875307eab$export$a9b970dcc4ae71a9 } from "../__chunks__/LiveAnnouncer-BSV5-C0m.mjs";
|
|
98
98
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../__chunks__/filterDOMProps-EDDcM64A.mjs";
|
|
@@ -2134,7 +2134,7 @@ const useDataGridRow = () => {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
return dataGridRowContext;
|
|
2136
2136
|
};
|
|
2137
|
-
const ActionsCellContent$1 = "
|
|
2137
|
+
const ActionsCellContent$1 = "_ActionsCellContent_1emjy_5";
|
|
2138
2138
|
const styles$7 = {
|
|
2139
2139
|
ActionsCellContent: ActionsCellContent$1
|
|
2140
2140
|
};
|
|
@@ -2180,8 +2180,8 @@ function ActionRowAction({ rowAction }) {
|
|
|
2180
2180
|
symbol: rowAction.iconSymbol
|
|
2181
2181
|
}));
|
|
2182
2182
|
}
|
|
2183
|
-
const button = "
|
|
2184
|
-
const expanded$2 = "
|
|
2183
|
+
const button = "_button_13cnl_5";
|
|
2184
|
+
const expanded$2 = "_expanded_13cnl_23";
|
|
2185
2185
|
const styles$6 = {
|
|
2186
2186
|
button,
|
|
2187
2187
|
expanded: expanded$2
|
|
@@ -2202,20 +2202,20 @@ function ExpandCellContent({ isExpanded, toggleExpanded }) {
|
|
|
2202
2202
|
size: "xs"
|
|
2203
2203
|
}));
|
|
2204
2204
|
}
|
|
2205
|
-
const Cell$1 = "
|
|
2206
|
-
const content$1 = "
|
|
2207
|
-
const lastRow = "
|
|
2208
|
-
const focused$1 = "
|
|
2209
|
-
const rowFocused = "
|
|
2210
|
-
const expanded$1 = "
|
|
2211
|
-
const first$1 = "
|
|
2212
|
-
const firstWithActions$1 = "
|
|
2213
|
-
const secondWithActions$1 = "
|
|
2214
|
-
const last$1 = "
|
|
2215
|
-
const lastWithActions$1 = "
|
|
2216
|
-
const secondToLastWithActions$1 = "
|
|
2217
|
-
const shadowLeft$1 = "
|
|
2218
|
-
const shadowRight$1 = "
|
|
2205
|
+
const Cell$1 = "_Cell_i9u81_5";
|
|
2206
|
+
const content$1 = "_content_i9u81_14";
|
|
2207
|
+
const lastRow = "_lastRow_i9u81_25";
|
|
2208
|
+
const focused$1 = "_focused_i9u81_29";
|
|
2209
|
+
const rowFocused = "_rowFocused_i9u81_30";
|
|
2210
|
+
const expanded$1 = "_expanded_i9u81_34";
|
|
2211
|
+
const first$1 = "_first_i9u81_38";
|
|
2212
|
+
const firstWithActions$1 = "_firstWithActions_i9u81_45";
|
|
2213
|
+
const secondWithActions$1 = "_secondWithActions_i9u81_51";
|
|
2214
|
+
const last$1 = "_last_i9u81_25";
|
|
2215
|
+
const lastWithActions$1 = "_lastWithActions_i9u81_62";
|
|
2216
|
+
const secondToLastWithActions$1 = "_secondToLastWithActions_i9u81_71";
|
|
2217
|
+
const shadowLeft$1 = "_shadowLeft_i9u81_75";
|
|
2218
|
+
const shadowRight$1 = "_shadowRight_i9u81_94";
|
|
2219
2219
|
const styles$5 = {
|
|
2220
2220
|
Cell: Cell$1,
|
|
2221
2221
|
content: content$1,
|
|
@@ -2231,7 +2231,7 @@ const styles$5 = {
|
|
|
2231
2231
|
secondToLastWithActions: secondToLastWithActions$1,
|
|
2232
2232
|
shadowLeft: shadowLeft$1,
|
|
2233
2233
|
shadowRight: shadowRight$1,
|
|
2234
|
-
"static": "
|
|
2234
|
+
"static": "_static_i9u81_113"
|
|
2235
2235
|
};
|
|
2236
2236
|
function Cell({ cell, state }) {
|
|
2237
2237
|
const table2 = useDataGridTable();
|
|
@@ -2283,10 +2283,10 @@ function StaticCell({ children, colSpan }) {
|
|
|
2283
2283
|
"data-ezui-data-grid-shadow": true
|
|
2284
2284
|
})));
|
|
2285
2285
|
}
|
|
2286
|
-
const SortIndicator$1 = "
|
|
2287
|
-
const arrow = "
|
|
2288
|
-
const sorted = "
|
|
2289
|
-
const onHeaderSecondary = "
|
|
2286
|
+
const SortIndicator$1 = "_SortIndicator_1h8s6_5";
|
|
2287
|
+
const arrow = "_arrow_1h8s6_10";
|
|
2288
|
+
const sorted = "_sorted_1h8s6_14";
|
|
2289
|
+
const onHeaderSecondary = "_onHeaderSecondary_1h8s6_18";
|
|
2290
2290
|
const styles$4 = {
|
|
2291
2291
|
SortIndicator: SortIndicator$1,
|
|
2292
2292
|
arrow,
|
|
@@ -2319,19 +2319,19 @@ function Arrow(props) {
|
|
|
2319
2319
|
d: "M12 0.344238L0 0.344238L6 7.561L12 0.344238Z"
|
|
2320
2320
|
}));
|
|
2321
2321
|
}
|
|
2322
|
-
const ColumnHeader$1 = "
|
|
2323
|
-
const content = "
|
|
2324
|
-
const allowsSorting = "
|
|
2325
|
-
const focused = "
|
|
2326
|
-
const first = "
|
|
2327
|
-
const firstWithActions = "
|
|
2328
|
-
const secondWithActions = "
|
|
2329
|
-
const last = "
|
|
2330
|
-
const lastWithActions = "
|
|
2331
|
-
const secondToLastWithActions = "
|
|
2332
|
-
const shadowBottom = "
|
|
2333
|
-
const shadowRight = "
|
|
2334
|
-
const shadowLeft = "
|
|
2322
|
+
const ColumnHeader$1 = "_ColumnHeader_tk8fi_5";
|
|
2323
|
+
const content = "_content_tk8fi_15";
|
|
2324
|
+
const allowsSorting = "_allowsSorting_tk8fi_26";
|
|
2325
|
+
const focused = "_focused_tk8fi_31";
|
|
2326
|
+
const first = "_first_tk8fi_44";
|
|
2327
|
+
const firstWithActions = "_firstWithActions_tk8fi_50";
|
|
2328
|
+
const secondWithActions = "_secondWithActions_tk8fi_57";
|
|
2329
|
+
const last = "_last_tk8fi_63";
|
|
2330
|
+
const lastWithActions = "_lastWithActions_tk8fi_67";
|
|
2331
|
+
const secondToLastWithActions = "_secondToLastWithActions_tk8fi_74";
|
|
2332
|
+
const shadowBottom = "_shadowBottom_tk8fi_78";
|
|
2333
|
+
const shadowRight = "_shadowRight_tk8fi_100";
|
|
2334
|
+
const shadowLeft = "_shadowLeft_tk8fi_119";
|
|
2335
2335
|
const styles$3 = {
|
|
2336
2336
|
ColumnHeader: ColumnHeader$1,
|
|
2337
2337
|
content,
|
|
@@ -2390,8 +2390,8 @@ function SelectAllColumnHeaderContent({ state }) {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
return React__default.createElement(Checkbox, __spreadValues({}, checkboxProps));
|
|
2392
2392
|
}
|
|
2393
|
-
const ExpandedRowContent$1 = "
|
|
2394
|
-
const inner = "
|
|
2393
|
+
const ExpandedRowContent$1 = "_ExpandedRowContent_1sl9n_5";
|
|
2394
|
+
const inner = "_inner_1sl9n_17";
|
|
2395
2395
|
const styles$2 = {
|
|
2396
2396
|
ExpandedRowContent: ExpandedRowContent$1,
|
|
2397
2397
|
inner
|
|
@@ -2404,12 +2404,14 @@ function ExpandedRowContent({ children }) {
|
|
|
2404
2404
|
className: classNames(styles$2.inner)
|
|
2405
2405
|
}, children));
|
|
2406
2406
|
}
|
|
2407
|
-
const Row$1 = "
|
|
2408
|
-
const
|
|
2409
|
-
const
|
|
2410
|
-
const
|
|
2407
|
+
const Row$1 = "_Row_1s55p_5";
|
|
2408
|
+
const noUserSelection = "_noUserSelection_1s55p_10";
|
|
2409
|
+
const expanded = "_expanded_1s55p_15";
|
|
2410
|
+
const hovered = "_hovered_1s55p_21";
|
|
2411
|
+
const selected = "_selected_1s55p_25";
|
|
2411
2412
|
const styles$1 = {
|
|
2412
2413
|
Row: Row$1,
|
|
2414
|
+
noUserSelection,
|
|
2413
2415
|
expanded,
|
|
2414
2416
|
hovered,
|
|
2415
2417
|
selected
|
|
@@ -2434,6 +2436,7 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2434
2436
|
const isPendingExpanded = item.value ? item.value[EXPAND_COLUMN_KEY] === true : false;
|
|
2435
2437
|
const rowIndex = item.index;
|
|
2436
2438
|
const ref = useRef(null);
|
|
2439
|
+
const { hasSelection, hasOnRowAction } = useDataGridTable();
|
|
2437
2440
|
const { rowProps, isPressed } = $b2db214c022798eb$export$7f2f6ae19e707aa5({
|
|
2438
2441
|
node: item
|
|
2439
2442
|
}, state, ref);
|
|
@@ -2458,7 +2461,7 @@ function Row({ item, children, state, isExpanded }) {
|
|
|
2458
2461
|
index: rowIndex
|
|
2459
2462
|
};
|
|
2460
2463
|
}, [isExpanded, isFocusVisible, removeHover, rowIndex]);
|
|
2461
|
-
const className = 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);
|
|
2464
|
+
const className = 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);
|
|
2462
2465
|
return React__default.createElement(DataGridRowContext.Provider, {
|
|
2463
2466
|
value: context
|
|
2464
2467
|
}, React__default.createElement("tr", __spreadProps(__spreadValues({
|
|
@@ -2475,14 +2478,15 @@ function StaticRow({ children }) {
|
|
|
2475
2478
|
className: styles$1.Row
|
|
2476
2479
|
}, children);
|
|
2477
2480
|
}
|
|
2478
|
-
const DataGrid$1 = "
|
|
2479
|
-
const sizeSm = "
|
|
2480
|
-
const sizeLg = "
|
|
2481
|
-
const innerContainer = "
|
|
2482
|
-
const contents = "
|
|
2483
|
-
const table = "
|
|
2484
|
-
const headerSecondary = "
|
|
2485
|
-
const headerEmphasized = "
|
|
2481
|
+
const DataGrid$1 = "_DataGrid_1mou1_5";
|
|
2482
|
+
const sizeSm = "_sizeSm_1mou1_41";
|
|
2483
|
+
const sizeLg = "_sizeLg_1mou1_46";
|
|
2484
|
+
const innerContainer = "_innerContainer_1mou1_50";
|
|
2485
|
+
const contents = "_contents_1mou1_55";
|
|
2486
|
+
const table = "_table_1mou1_59";
|
|
2487
|
+
const headerSecondary = "_headerSecondary_1mou1_67";
|
|
2488
|
+
const headerEmphasized = "_headerEmphasized_1mou1_72";
|
|
2489
|
+
const visuallyHiddenCellContainer = "_visuallyHiddenCellContainer_1mou1_76";
|
|
2486
2490
|
const styles = {
|
|
2487
2491
|
DataGrid: DataGrid$1,
|
|
2488
2492
|
sizeSm,
|
|
@@ -2491,7 +2495,8 @@ const styles = {
|
|
|
2491
2495
|
contents,
|
|
2492
2496
|
table,
|
|
2493
2497
|
headerSecondary,
|
|
2494
|
-
headerEmphasized
|
|
2498
|
+
headerEmphasized,
|
|
2499
|
+
visuallyHiddenCellContainer
|
|
2495
2500
|
};
|
|
2496
2501
|
function RowGroup({ as: As = "div", children }) {
|
|
2497
2502
|
const { rowGroupProps } = $0047e6c294ea075f$export$6fb1613bd7b28198();
|
|
@@ -2554,7 +2559,7 @@ function getExpandedRowEl($container) {
|
|
|
2554
2559
|
return $container.querySelector(`[data-ezui-data-grid-expanded-row='true']`);
|
|
2555
2560
|
}
|
|
2556
2561
|
function Table(props) {
|
|
2557
|
-
const { headerVariant, maxRows = DEFAULT_MAX_ROWS, renderExpandedRow = (r) => r, selectionMode, size = DEFAULT_SIZE, renderEmptyState = () => "No Data
|
|
2562
|
+
const { headerVariant, maxRows = DEFAULT_MAX_ROWS, renderExpandedRow = (r) => r, selectionMode, size = DEFAULT_SIZE, renderEmptyState = () => "No Data", isLoading = false } = props;
|
|
2558
2563
|
const outerContainerRef = useRef(null);
|
|
2559
2564
|
const innerContainerRef = useRef(null);
|
|
2560
2565
|
const tableRef = useRef(null);
|
|
@@ -2574,6 +2579,7 @@ function Table(props) {
|
|
|
2574
2579
|
const hasSelection = columns.some((c) => c.props.isSelectionCell);
|
|
2575
2580
|
const hasExpansion = columns.some((c) => c.key === EXPAND_COLUMN_KEY);
|
|
2576
2581
|
const hasRowActions = columns.some((c) => c.key === ACTIONS_COLUMN_KEY);
|
|
2582
|
+
const hasOnRowAction = !!props.onRowAction;
|
|
2577
2583
|
const dataGridClassName = classNames(styles.DataGrid, styles[variationName("size", size)]);
|
|
2578
2584
|
const tableClassName = classNames(styles.table, headerVariant && styles[variationName("header", headerVariant)], hasSelection && styles.hasSelection, hasExpansion && styles.hasExpansion, hasRowActions && styles.hasRowActions, isTopEdgeUnderScroll && styles.topEdgeUnderScroll, isLeftEdgeUnderScroll && styles.leftEdgeUnderScroll, isRightEdgeUnderScroll && styles.rightEdgeUnderScroll);
|
|
2579
2585
|
const style = __spreadValues(__spreadValues({}, getComponentToken("data-grid", "max-rows", String(maxRows))), expandedRowStyle);
|
|
@@ -2583,11 +2589,12 @@ function Table(props) {
|
|
|
2583
2589
|
hasSelection,
|
|
2584
2590
|
hasExpansion,
|
|
2585
2591
|
hasRowActions,
|
|
2592
|
+
hasOnRowAction,
|
|
2586
2593
|
isTopEdgeUnderScroll,
|
|
2587
2594
|
isLeftEdgeUnderScroll,
|
|
2588
2595
|
isRightEdgeUnderScroll
|
|
2589
2596
|
};
|
|
2590
|
-
}, [headerVariant, hasSelection, hasExpansion, hasRowActions, isTopEdgeUnderScroll, isLeftEdgeUnderScroll, isRightEdgeUnderScroll]);
|
|
2597
|
+
}, [headerVariant, hasSelection, hasExpansion, hasRowActions, hasOnRowAction, isTopEdgeUnderScroll, isLeftEdgeUnderScroll, isRightEdgeUnderScroll]);
|
|
2591
2598
|
return React__default.createElement(DataGridTableContext.Provider, {
|
|
2592
2599
|
value: context
|
|
2593
2600
|
}, React__default.createElement("div", {
|
|
@@ -2629,9 +2636,11 @@ function Table(props) {
|
|
|
2629
2636
|
})))))), expandedRow && React__default.createElement(ExpandedRowContent, null, renderExpandedRow(expandedRow.key)), renderInterceptors())));
|
|
2630
2637
|
}
|
|
2631
2638
|
function VisuallyHiddenCellContent({ children }) {
|
|
2632
|
-
return React__default.createElement(
|
|
2639
|
+
return React__default.createElement("span", {
|
|
2640
|
+
className: styles.visuallyHiddenCellContainer
|
|
2641
|
+
}, React__default.createElement(Text, {
|
|
2633
2642
|
visuallyHidden: true
|
|
2634
|
-
}, children);
|
|
2643
|
+
}, children));
|
|
2635
2644
|
}
|
|
2636
2645
|
function DataGrid(props) {
|
|
2637
2646
|
const { columns: unprocessedColumns, columnKeysAllowingSort = [], defaultExpandedKey, expandedKey: expandedKeyFromUser, onExpandedChange = () => {
|
package/DatePicker/index.js
CHANGED
|
@@ -20,9 +20,9 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
22
|
const React = require("react");
|
|
23
|
-
const DatePickerBase = require("../__chunks__/DatePickerBase-
|
|
24
|
-
const Calendar = require("../__chunks__/Calendar-
|
|
25
|
-
const CalendarBase = require("../__chunks__/CalendarBase-
|
|
23
|
+
const DatePickerBase = require("../__chunks__/DatePickerBase-D_Cbxxc6.js");
|
|
24
|
+
const Calendar = require("../__chunks__/Calendar-Tx6YYe1Z.js");
|
|
25
|
+
const CalendarBase = require("../__chunks__/CalendarBase-CyfGzPs0.js");
|
|
26
26
|
const useFormValidation = require("../__chunks__/useFormValidation-BeqiYVJN.js");
|
|
27
27
|
const Overlay = require("../__chunks__/Overlay-CwJbrICR.js");
|
|
28
28
|
const useControlledState = require("../__chunks__/useControlledState-mnKBd6Uc.js");
|
package/DatePicker/index.mjs
CHANGED
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import React__default, { useState, useMemo } from "react";
|
|
21
|
-
import { $ as $35a22f14a1f04b11$export$2440da353cedad43, h as $35a22f14a1f04b11$export$f18627323ab57ac0, b as $35a22f14a1f04b11$export$7e319ea407e63bc0, c as $35a22f14a1f04b11$export$c5221a78ef73c5e9, d as $3dfb0f96be0d6a08$export$4a931266a3838b86, f as $16f0b7bb276bc17e$export$300019f83c56d282, e as $dfb4eba373ed9493$exports, D as DatePickerBase } from "../__chunks__/DatePickerBase-
|
|
22
|
-
import { C as Calendar } from "../__chunks__/Calendar-
|
|
23
|
-
import { m as $fb18d541ea1ad717$export$ad991b66133851cf, n as $11d87f3f76e88657$export$b21e0b124e224484, d as $11d87f3f76e88657$export$93522d1a439f3617 } from "../__chunks__/CalendarBase-
|
|
21
|
+
import { $ as $35a22f14a1f04b11$export$2440da353cedad43, h as $35a22f14a1f04b11$export$f18627323ab57ac0, b as $35a22f14a1f04b11$export$7e319ea407e63bc0, c as $35a22f14a1f04b11$export$c5221a78ef73c5e9, d as $3dfb0f96be0d6a08$export$4a931266a3838b86, f as $16f0b7bb276bc17e$export$300019f83c56d282, e as $dfb4eba373ed9493$exports, D as DatePickerBase } from "../__chunks__/DatePickerBase-ix3RmplD.mjs";
|
|
22
|
+
import { C as Calendar } from "../__chunks__/Calendar-BypbgQDc.mjs";
|
|
23
|
+
import { m as $fb18d541ea1ad717$export$ad991b66133851cf, n as $11d87f3f76e88657$export$b21e0b124e224484, d as $11d87f3f76e88657$export$93522d1a439f3617 } from "../__chunks__/CalendarBase-d72EQzpy.mjs";
|
|
24
24
|
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, c as $e5be200c675c3b3a$export$a763b9476acd3eb } from "../__chunks__/useFormValidation-CCe1AoIX.mjs";
|
|
25
25
|
import { a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-zuiAML3I.mjs";
|
|
26
26
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../__chunks__/useControlledState-CFWhSD5C.mjs";
|
package/DateRangePicker/index.js
CHANGED
|
@@ -20,9 +20,9 @@ var __spreadValues = (a, b) => {
|
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
21
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
22
22
|
const React = require("react");
|
|
23
|
-
const RangeCalendar = require("../__chunks__/RangeCalendar-
|
|
24
|
-
const DatePickerBase = require("../__chunks__/DatePickerBase-
|
|
25
|
-
const CalendarBase = require("../__chunks__/CalendarBase-
|
|
23
|
+
const RangeCalendar = require("../__chunks__/RangeCalendar-BbXSVgVP.js");
|
|
24
|
+
const DatePickerBase = require("../__chunks__/DatePickerBase-D_Cbxxc6.js");
|
|
25
|
+
const CalendarBase = require("../__chunks__/CalendarBase-CyfGzPs0.js");
|
|
26
26
|
const useFormValidation = require("../__chunks__/useFormValidation-BeqiYVJN.js");
|
|
27
27
|
const Overlay = require("../__chunks__/Overlay-CwJbrICR.js");
|
|
28
28
|
const useControlledState = require("../__chunks__/useControlledState-mnKBd6Uc.js");
|
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import React__default, { useState, useMemo, useRef } from "react";
|
|
21
|
-
import { R as RangeCalendar } from "../__chunks__/RangeCalendar-
|
|
22
|
-
import { $ as $35a22f14a1f04b11$export$2440da353cedad43, a as $35a22f14a1f04b11$export$80ff8fc0ae339c13, b as $35a22f14a1f04b11$export$7e319ea407e63bc0, c as $35a22f14a1f04b11$export$c5221a78ef73c5e9, d as $3dfb0f96be0d6a08$export$4a931266a3838b86, e as $dfb4eba373ed9493$exports, f as $16f0b7bb276bc17e$export$300019f83c56d282, g as $16f0b7bb276bc17e$export$7b3062cd49e80452, D as DatePickerBase } from "../__chunks__/DatePickerBase-
|
|
23
|
-
import { m as $fb18d541ea1ad717$export$ad991b66133851cf, n as $11d87f3f76e88657$export$b21e0b124e224484, d as $11d87f3f76e88657$export$93522d1a439f3617 } from "../__chunks__/CalendarBase-
|
|
21
|
+
import { R as RangeCalendar } from "../__chunks__/RangeCalendar-Bctey6Vi.mjs";
|
|
22
|
+
import { $ as $35a22f14a1f04b11$export$2440da353cedad43, a as $35a22f14a1f04b11$export$80ff8fc0ae339c13, b as $35a22f14a1f04b11$export$7e319ea407e63bc0, c as $35a22f14a1f04b11$export$c5221a78ef73c5e9, d as $3dfb0f96be0d6a08$export$4a931266a3838b86, e as $dfb4eba373ed9493$exports, f as $16f0b7bb276bc17e$export$300019f83c56d282, g as $16f0b7bb276bc17e$export$7b3062cd49e80452, D as DatePickerBase } from "../__chunks__/DatePickerBase-ix3RmplD.mjs";
|
|
23
|
+
import { m as $fb18d541ea1ad717$export$ad991b66133851cf, n as $11d87f3f76e88657$export$b21e0b124e224484, d as $11d87f3f76e88657$export$93522d1a439f3617 } from "../__chunks__/CalendarBase-d72EQzpy.mjs";
|
|
24
24
|
import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$dad6ae84456c676a, c as $e5be200c675c3b3a$export$a763b9476acd3eb, d as $e5be200c675c3b3a$export$75ee7c75d68f5b0e } from "../__chunks__/useFormValidation-CCe1AoIX.mjs";
|
|
25
25
|
import { a as $fc909762b330b746$export$61c6a8c84e605fb6 } from "../__chunks__/Overlay-zuiAML3I.mjs";
|
|
26
26
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "../__chunks__/useControlledState-CFWhSD5C.mjs";
|
package/Drawer/index.js
CHANGED
|
@@ -34,8 +34,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
34
34
|
const React = require("react");
|
|
35
35
|
const utilities_css = require("../utilities/css.js");
|
|
36
36
|
const utilities_useScrollbar = require("../utilities/useScrollbar.js");
|
|
37
|
-
const Icon = require("../__chunks__/Icon-
|
|
38
|
-
const Text = require("../__chunks__/Text-
|
|
37
|
+
const Icon = require("../__chunks__/Icon-BlcrcY3U.js");
|
|
38
|
+
const Text = require("../__chunks__/Text-C6DuTMMj.js");
|
|
39
39
|
const useModalOverlay = require("../__chunks__/useModalOverlay-gSHY_FAb.js");
|
|
40
40
|
const Overlay = require("../__chunks__/Overlay-CwJbrICR.js");
|
|
41
41
|
const objectWithoutPropertiesLoose = require("../__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js");
|
|
@@ -60,21 +60,21 @@ function _interopNamespaceDefault(e) {
|
|
|
60
60
|
return Object.freeze(n);
|
|
61
61
|
}
|
|
62
62
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
63
|
-
const underlayBg = "
|
|
64
|
-
const underlayBgEnter = "
|
|
65
|
-
const underlayBgEnterDone = "
|
|
66
|
-
const underlayBgExit = "
|
|
67
|
-
const underlayBox = "
|
|
68
|
-
const underlayBoxAppear = "
|
|
69
|
-
const underlayBoxExit = "
|
|
70
|
-
const Drawer$1 = "
|
|
71
|
-
const header = "
|
|
72
|
-
const stuck = "
|
|
73
|
-
const banner = "
|
|
74
|
-
const body = "
|
|
75
|
-
const closeButton = "
|
|
76
|
-
const banneredContentArea = "
|
|
77
|
-
const standaloneContentArea = "
|
|
63
|
+
const underlayBg = "_underlayBg_gm5y1_5";
|
|
64
|
+
const underlayBgEnter = "_underlayBgEnter_gm5y1_33";
|
|
65
|
+
const underlayBgEnterDone = "_underlayBgEnterDone_gm5y1_37";
|
|
66
|
+
const underlayBgExit = "_underlayBgExit_gm5y1_42";
|
|
67
|
+
const underlayBox = "_underlayBox_gm5y1_47";
|
|
68
|
+
const underlayBoxAppear = "_underlayBoxAppear_gm5y1_58";
|
|
69
|
+
const underlayBoxExit = "_underlayBoxExit_gm5y1_66";
|
|
70
|
+
const Drawer$1 = "_Drawer_gm5y1_70";
|
|
71
|
+
const header = "_header_gm5y1_87";
|
|
72
|
+
const stuck = "_stuck_gm5y1_90";
|
|
73
|
+
const banner = "_banner_gm5y1_94";
|
|
74
|
+
const body = "_body_gm5y1_100";
|
|
75
|
+
const closeButton = "_closeButton_gm5y1_117";
|
|
76
|
+
const banneredContentArea = "_banneredContentArea_gm5y1_132";
|
|
77
|
+
const standaloneContentArea = "_standaloneContentArea_gm5y1_136";
|
|
78
78
|
const styles = {
|
|
79
79
|
underlayBg,
|
|
80
80
|
underlayBgEnter,
|