@primer/react 38.44.1-rc.db12d2e52 → 38.45.0-rc.33f45c4d7
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/CHANGELOG.md +15 -1
- package/dist/Blankslate/{Blankslate-11d7a7fd.css → Blankslate-670cf090.css} +2 -2
- package/dist/Blankslate/Blankslate-670cf090.css.map +1 -0
- package/dist/Blankslate/Blankslate.js +46 -36
- package/dist/Blankslate/Blankslate.module.css.js +1 -1
- package/dist/DataTable/DataTable.d.ts +11 -2
- package/dist/DataTable/DataTable.js +153 -61
- package/dist/DataTable/Table-3916da1f.css +2 -0
- package/dist/DataTable/Table-3916da1f.css.map +1 -0
- package/dist/DataTable/Table.d.ts +1 -0
- package/dist/DataTable/Table.js +18 -13
- package/dist/DataTable/Table.module.css.js +3 -1
- package/dist/DataTable/TableBulkActions-aca5618a.css +2 -0
- package/dist/DataTable/TableBulkActions-aca5618a.css.map +1 -0
- package/dist/DataTable/TableBulkActions.d.ts +15 -0
- package/dist/DataTable/TableBulkActions.js +217 -0
- package/dist/DataTable/TableBulkActions.module.css.js +12 -0
- package/dist/DataTable/TableGroup.d.ts +7 -1
- package/dist/DataTable/TableGroup.js +153 -120
- package/dist/DataTable/index.d.ts +4 -2
- package/dist/DataTable/index.js +2 -0
- package/dist/DataTable/useTable.js +103 -65
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/FilteredActionList/FilteredActionList.js +7 -3
- package/dist/FilteredActionList/FilteredActionListInput.d.ts +2 -1
- package/dist/FilteredActionList/FilteredActionListInput.js +16 -14
- package/dist/SegmentedControl/SegmentedControl-3dc28307.css +2 -0
- package/dist/SegmentedControl/SegmentedControl-3dc28307.css.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/dist/SegmentedControl/SegmentedControlButton.js +119 -76
- package/dist/TooltipV2/Tooltip.d.ts +1 -1
- package/dist/TooltipV2/Tooltip.js +128 -101
- package/dist/experimental/index.d.ts +3 -2
- package/dist/utils/descendant-registry.d.ts +1 -1
- package/generated/components.json +68 -2
- package/package.json +1 -1
- package/dist/Blankslate/Blankslate-11d7a7fd.css.map +0 -1
- package/dist/DataTable/Table-0327e248.css +0 -2
- package/dist/DataTable/Table-0327e248.css.map +0 -1
- package/dist/SegmentedControl/SegmentedControl-99b8e34e.css +0 -2
- package/dist/SegmentedControl/SegmentedControl-99b8e34e.css.map +0 -1
package/dist/DataTable/Table.js
CHANGED
|
@@ -370,25 +370,29 @@ function TableSelectionHeader(t0) {
|
|
|
370
370
|
return t9;
|
|
371
371
|
}
|
|
372
372
|
function TableRow(t0) {
|
|
373
|
-
const $ = c(
|
|
373
|
+
const $ = c(10);
|
|
374
374
|
let children;
|
|
375
|
+
let className;
|
|
375
376
|
let rest;
|
|
376
377
|
if ($[0] !== t0) {
|
|
377
|
-
({children, ...rest} = t0);
|
|
378
|
+
({children, className, ...rest} = t0);
|
|
378
379
|
$[0] = t0;
|
|
379
380
|
$[1] = children;
|
|
380
|
-
$[2] =
|
|
381
|
+
$[2] = className;
|
|
382
|
+
$[3] = rest;
|
|
381
383
|
} else {
|
|
382
384
|
children = $[1];
|
|
383
|
-
|
|
385
|
+
className = $[2];
|
|
386
|
+
rest = $[3];
|
|
384
387
|
}
|
|
385
388
|
let t1;
|
|
386
|
-
if ($[
|
|
387
|
-
t1 = clsx("TableRow", Table_module_css_default.TableRow);
|
|
388
|
-
$[
|
|
389
|
-
|
|
389
|
+
if ($[4] !== className) {
|
|
390
|
+
t1 = clsx("TableRow", Table_module_css_default.TableRow, className);
|
|
391
|
+
$[4] = className;
|
|
392
|
+
$[5] = t1;
|
|
393
|
+
} else t1 = $[5];
|
|
390
394
|
let t2;
|
|
391
|
-
if ($[
|
|
395
|
+
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
392
396
|
t2 = /* @__PURE__ */ jsx("tr", {
|
|
393
397
|
...rest,
|
|
394
398
|
className: t1,
|
|
@@ -396,10 +400,11 @@ function TableRow(t0) {
|
|
|
396
400
|
"data-component": "Table.Row",
|
|
397
401
|
children
|
|
398
402
|
});
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
|
|
403
|
+
$[6] = children;
|
|
404
|
+
$[7] = rest;
|
|
405
|
+
$[8] = t1;
|
|
406
|
+
$[9] = t2;
|
|
407
|
+
} else t2 = $[9];
|
|
403
408
|
return t2;
|
|
404
409
|
}
|
|
405
410
|
function TableCell(t0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./Table-
|
|
1
|
+
import "./Table-3916da1f.css";
|
|
2
2
|
//#region src/DataTable/Table.module.css.js
|
|
3
3
|
var Table_module_css_default = {
|
|
4
4
|
"TableContainer": "prc-DataTable-TableContainer-hn0p3",
|
|
@@ -24,7 +24,9 @@ var Table_module_css_default = {
|
|
|
24
24
|
"TableSortIcon--ascending": "prc-DataTable-TableSortIcon--ascending-Lpx6z",
|
|
25
25
|
"TableSortIcon--descending": "prc-DataTable-TableSortIcon--descending-hHJGo",
|
|
26
26
|
"TableCellSkeletonItems": "prc-DataTable-TableCellSkeletonItems-Ljhq5",
|
|
27
|
+
"TableGroupHeaderTitle": "prc-DataTable-TableGroupHeaderTitle-zed7E",
|
|
27
28
|
"TableGroupHeaderContent": "prc-DataTable-TableGroupHeaderContent-H9FbA",
|
|
29
|
+
"TableGroupSelection": "prc-DataTable-TableGroupSelection-lgN9s",
|
|
28
30
|
"TableGroupHeaderLabel": "prc-DataTable-TableGroupHeaderLabel--c-od",
|
|
29
31
|
"TableGroupHeaderCount": "prc-DataTable-TableGroupHeaderCount-6r8Pj",
|
|
30
32
|
"TableGroupToggle": "prc-DataTable-TableGroupToggle-9OwNG",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.prc-DataTable-TableBulkActions-kfFOd:where([data-active]){align-items:center;display:flex;flex-wrap:wrap;gap:var(--base-size-8,.5rem)}.prc-DataTable-Count-G2fIf{color:var(--fgColor-muted,#59636e);font-weight:var(--base-text-weight-semibold,600)}.prc-DataTable-ColumnLabel-nT9S-{min-block-size:1lh}.prc-DataTable-Actions-BRFii{align-items:center;display:flex;flex-wrap:wrap;gap:var(--base-size-8,.5rem);margin-inline-start:auto}.prc-DataTable-Actions-BRFii :focus{scroll-margin:var(--base-size-4,.25rem)}.prc-DataTable-HeaderRow-vCWxU,.prc-DataTable-HeaderRow-vCWxU>*{grid-row:1}.prc-DataTable-BulkActionsCell-ji6XT{align-content:center;background-color:var(--bgColor-muted,#f6f8fa);border-block-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);border-block-start:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);border-inline-end:var(--borderWidth-thin,.0625rem) solid var(--borderColor-default,#d1d9e0);border-start-end-radius:var(--table-border-radius);grid-column:2/-1;grid-row:1;min-width:0;padding:var(--table-cell-padding);padding-block:0;z-index:1}.prc-DataTable-HeaderRow-vCWxU>.prc-DataTable-BulkActionsCell-ji6XT:first-child:last-child{padding-inline-end:var(--base-size-8,.5rem);padding-inline-start:var(--cell-padding-inline,var(--base-size-12,.75rem))}
|
|
2
|
+
/*# sourceMappingURL=TableBulkActions-aca5618a.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/DataTable/TableBulkActions.module.css.js"],"names":[],"mappings":"AACE,2DAGE,kBAAmB,CAFnB,YAAa,CACb,cAAe,CAEf,4BACF,CAGF,2BAEE,kCAA2B,CAD3B,gDAEF,CAEA,iCACE,kBACF,CAEA,6BAGE,kBAAmB,CAFnB,YAAa,CACb,cAAe,CAEf,4BAAuB,CACvB,wBAKF,CAHE,oCACE,uCACF,CAGF,gEAEE,UACF,CAEA,qCAKE,oBAAqB,CAIrB,6CAAsC,CAEtC,0FAA0E,CAD1E,4FAA4E,CAE5E,2FAA2E,CAE3E,kDAAmD,CAZnD,gBAAmB,CADnB,UAAW,CAGX,WAAY,CAGZ,iCAAkC,CAClC,eAAgB,CALhB,SAYF,CAEA,2FAGE,2CAAsC,CADtC,0EAEF","file":"TableBulkActions-aca5618a.css","sourcesContent":[".TableBulkActions {\n &:where([data-active]) {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--base-size-8);\n }\n}\n\n.Count {\n font-weight: var(--base-text-weight-semibold);\n color: var(--fgColor-muted);\n}\n\n.ColumnLabel {\n min-block-size: 1lh;\n}\n\n.Actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--base-size-8);\n margin-inline-start: auto;\n\n :focus {\n scroll-margin: var(--base-size-4);\n }\n}\n\n.HeaderRow,\n.HeaderRow > * {\n grid-row: 1;\n}\n\n.BulkActionsCell {\n grid-row: 1;\n grid-column: 2 / -1;\n z-index: 1;\n min-width: 0;\n align-content: center;\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--table-cell-padding);\n padding-block: 0;\n background-color: var(--bgColor-muted);\n border-block-start: var(--borderWidth-thin) solid var(--borderColor-default);\n border-block-end: var(--borderWidth-thin) solid var(--borderColor-default);\n border-inline-end: var(--borderWidth-thin) solid var(--borderColor-default);\n /* stylelint-disable-next-line primer/borders */\n border-start-end-radius: var(--table-border-radius);\n}\n\n.HeaderRow > .BulkActionsCell:first-child:last-child {\n /* stylelint-disable-next-line primer/spacing */\n padding-inline-start: var(--cell-padding-inline, var(--base-size-12));\n padding-inline-end: var(--base-size-8);\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/DataTable/TableBulkActions.d.ts
|
|
4
|
+
type TableBulkActionsProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'role'> & {
|
|
5
|
+
selectedCount: number;
|
|
6
|
+
onFocusReturn?: () => void;
|
|
7
|
+
getSelectedCountLabel?: (selectedCount: number) => string;
|
|
8
|
+
};
|
|
9
|
+
declare const TableBulkActions: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "role"> & {
|
|
10
|
+
selectedCount: number;
|
|
11
|
+
onFocusReturn?: () => void;
|
|
12
|
+
getSelectedCountLabel?: (selectedCount: number) => string;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TableBulkActions, TableBulkActionsProps };
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { c } from "../utils/react-compiler-runtime.js";
|
|
2
|
+
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
3
|
+
import useIsomorphicLayoutEffect from "../utils/useIsomorphicLayoutEffect.js";
|
|
4
|
+
import VisuallyHidden from "../_VisuallyHidden.js";
|
|
5
|
+
import TableBulkActions_module_css_default from "./TableBulkActions.module.css.js";
|
|
6
|
+
import React, { useRef } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
//#region src/DataTable/TableBulkActions.tsx
|
|
10
|
+
function defaultSelectedCountLabel(selectedCount) {
|
|
11
|
+
return `${selectedCount} selected`;
|
|
12
|
+
}
|
|
13
|
+
const TableBulkActions = /*#__PURE__*/ React.forwardRef(function TableBulkActions(t0, ref) {
|
|
14
|
+
const $ = c(47);
|
|
15
|
+
let children;
|
|
16
|
+
let className;
|
|
17
|
+
let onBlurCapture;
|
|
18
|
+
let onFocusCapture;
|
|
19
|
+
let onFocusReturn;
|
|
20
|
+
let rest;
|
|
21
|
+
let selectedCount;
|
|
22
|
+
let t1;
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[0] !== t0) {
|
|
25
|
+
({selectedCount, onFocusReturn, getSelectedCountLabel: t1, "aria-label": t2, className, children, onFocusCapture, onBlurCapture, ...rest} = t0);
|
|
26
|
+
$[0] = t0;
|
|
27
|
+
$[1] = children;
|
|
28
|
+
$[2] = className;
|
|
29
|
+
$[3] = onBlurCapture;
|
|
30
|
+
$[4] = onFocusCapture;
|
|
31
|
+
$[5] = onFocusReturn;
|
|
32
|
+
$[6] = rest;
|
|
33
|
+
$[7] = selectedCount;
|
|
34
|
+
$[8] = t1;
|
|
35
|
+
$[9] = t2;
|
|
36
|
+
} else {
|
|
37
|
+
children = $[1];
|
|
38
|
+
className = $[2];
|
|
39
|
+
onBlurCapture = $[3];
|
|
40
|
+
onFocusCapture = $[4];
|
|
41
|
+
onFocusReturn = $[5];
|
|
42
|
+
rest = $[6];
|
|
43
|
+
selectedCount = $[7];
|
|
44
|
+
t1 = $[8];
|
|
45
|
+
t2 = $[9];
|
|
46
|
+
}
|
|
47
|
+
const getSelectedCountLabel = t1 === void 0 ? defaultSelectedCountLabel : t1;
|
|
48
|
+
const ariaLabel = t2 === void 0 ? "Bulk actions" : t2;
|
|
49
|
+
const focusedAction = useRef(null);
|
|
50
|
+
const focusObserver = useRef(null);
|
|
51
|
+
const active = selectedCount > 0;
|
|
52
|
+
let t3;
|
|
53
|
+
if ($[10] !== onFocusReturn) {
|
|
54
|
+
t3 = function recoverFocus() {
|
|
55
|
+
const element = focusedAction.current;
|
|
56
|
+
if (element && !element.isConnected) {
|
|
57
|
+
var _focusObserver$curren;
|
|
58
|
+
focusedAction.current = null;
|
|
59
|
+
(_focusObserver$curren = focusObserver.current) === null || _focusObserver$curren === void 0 || _focusObserver$curren.disconnect();
|
|
60
|
+
const document = element.ownerDocument;
|
|
61
|
+
if (document.activeElement === document.body) {
|
|
62
|
+
var _onFocusReturn;
|
|
63
|
+
(_onFocusReturn = onFocusReturn) === null || _onFocusReturn === void 0 || _onFocusReturn();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
$[10] = onFocusReturn;
|
|
68
|
+
$[11] = t3;
|
|
69
|
+
} else t3 = $[11];
|
|
70
|
+
const recoverFocus = t3;
|
|
71
|
+
let t4;
|
|
72
|
+
if ($[12] !== recoverFocus) {
|
|
73
|
+
t4 = function observeFocusedAction() {
|
|
74
|
+
var _focusObserver$curren2;
|
|
75
|
+
(_focusObserver$curren2 = focusObserver.current) === null || _focusObserver$curren2 === void 0 || _focusObserver$curren2.disconnect();
|
|
76
|
+
const element_0 = focusedAction.current;
|
|
77
|
+
if (element_0) {
|
|
78
|
+
const observer = new MutationObserver(recoverFocus);
|
|
79
|
+
observer.observe(element_0.ownerDocument.body, {
|
|
80
|
+
childList: true,
|
|
81
|
+
subtree: true
|
|
82
|
+
});
|
|
83
|
+
focusObserver.current = observer;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
$[12] = recoverFocus;
|
|
87
|
+
$[13] = t4;
|
|
88
|
+
} else t4 = $[13];
|
|
89
|
+
const observeFocusedAction = t4;
|
|
90
|
+
let t5;
|
|
91
|
+
if ($[14] !== observeFocusedAction || $[15] !== recoverFocus) {
|
|
92
|
+
t5 = () => {
|
|
93
|
+
recoverFocus();
|
|
94
|
+
observeFocusedAction();
|
|
95
|
+
return () => {
|
|
96
|
+
var _focusObserver$curren3;
|
|
97
|
+
(_focusObserver$curren3 = focusObserver.current) === null || _focusObserver$curren3 === void 0 || _focusObserver$curren3.disconnect();
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
$[14] = observeFocusedAction;
|
|
101
|
+
$[15] = recoverFocus;
|
|
102
|
+
$[16] = t5;
|
|
103
|
+
} else t5 = $[16];
|
|
104
|
+
useIsomorphicLayoutEffect(t5);
|
|
105
|
+
let t6;
|
|
106
|
+
if ($[17] !== getSelectedCountLabel || $[18] !== selectedCount) {
|
|
107
|
+
t6 = getSelectedCountLabel(selectedCount);
|
|
108
|
+
$[17] = getSelectedCountLabel;
|
|
109
|
+
$[18] = selectedCount;
|
|
110
|
+
$[19] = t6;
|
|
111
|
+
} else t6 = $[19];
|
|
112
|
+
let t7;
|
|
113
|
+
if ($[20] !== active || $[21] !== t6) {
|
|
114
|
+
t7 = /* @__PURE__ */ jsx(AriaStatus, {
|
|
115
|
+
as: "span",
|
|
116
|
+
className: TableBulkActions_module_css_default.Count,
|
|
117
|
+
announceOnShow: active,
|
|
118
|
+
children: t6
|
|
119
|
+
});
|
|
120
|
+
$[20] = active;
|
|
121
|
+
$[21] = t6;
|
|
122
|
+
$[22] = t7;
|
|
123
|
+
} else t7 = $[22];
|
|
124
|
+
const count = t7;
|
|
125
|
+
let t8;
|
|
126
|
+
if ($[23] !== observeFocusedAction || $[24] !== onFocusCapture) {
|
|
127
|
+
t8 = (event) => {
|
|
128
|
+
focusedAction.current = event.target;
|
|
129
|
+
observeFocusedAction();
|
|
130
|
+
if (event.currentTarget.contains(event.target)) event.target.scrollIntoView({
|
|
131
|
+
block: "nearest",
|
|
132
|
+
inline: "nearest"
|
|
133
|
+
});
|
|
134
|
+
if (!event.defaultPrevented) {
|
|
135
|
+
var _onFocusCapture;
|
|
136
|
+
(_onFocusCapture = onFocusCapture) === null || _onFocusCapture === void 0 || _onFocusCapture(event);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
$[23] = observeFocusedAction;
|
|
140
|
+
$[24] = onFocusCapture;
|
|
141
|
+
$[25] = t8;
|
|
142
|
+
} else t8 = $[25];
|
|
143
|
+
let t9;
|
|
144
|
+
if ($[26] !== onBlurCapture) {
|
|
145
|
+
t9 = (event_0) => {
|
|
146
|
+
if (event_0.target.isConnected) {
|
|
147
|
+
var _focusObserver$curren4;
|
|
148
|
+
focusedAction.current = null;
|
|
149
|
+
(_focusObserver$curren4 = focusObserver.current) === null || _focusObserver$curren4 === void 0 || _focusObserver$curren4.disconnect();
|
|
150
|
+
}
|
|
151
|
+
if (!event_0.defaultPrevented) {
|
|
152
|
+
var _onBlurCapture;
|
|
153
|
+
(_onBlurCapture = onBlurCapture) === null || _onBlurCapture === void 0 || _onBlurCapture(event_0);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
$[26] = onBlurCapture;
|
|
157
|
+
$[27] = t9;
|
|
158
|
+
} else t9 = $[27];
|
|
159
|
+
const t10 = active ? "group" : void 0;
|
|
160
|
+
const t11 = active ? ariaLabel : void 0;
|
|
161
|
+
const t12 = active || void 0;
|
|
162
|
+
let t13;
|
|
163
|
+
if ($[28] !== className) {
|
|
164
|
+
t13 = clsx(TableBulkActions_module_css_default.TableBulkActions, className);
|
|
165
|
+
$[28] = className;
|
|
166
|
+
$[29] = t13;
|
|
167
|
+
} else t13 = $[29];
|
|
168
|
+
let t14;
|
|
169
|
+
if ($[30] !== active || $[31] !== count) {
|
|
170
|
+
t14 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
171
|
+
isVisible: active,
|
|
172
|
+
children: count
|
|
173
|
+
});
|
|
174
|
+
$[30] = active;
|
|
175
|
+
$[31] = count;
|
|
176
|
+
$[32] = t14;
|
|
177
|
+
} else t14 = $[32];
|
|
178
|
+
let t15;
|
|
179
|
+
if ($[33] !== active || $[34] !== children) {
|
|
180
|
+
t15 = active ? /* @__PURE__ */ jsx("div", {
|
|
181
|
+
className: TableBulkActions_module_css_default.Actions,
|
|
182
|
+
children
|
|
183
|
+
}) : null;
|
|
184
|
+
$[33] = active;
|
|
185
|
+
$[34] = children;
|
|
186
|
+
$[35] = t15;
|
|
187
|
+
} else t15 = $[35];
|
|
188
|
+
let t16;
|
|
189
|
+
if ($[36] !== ref || $[37] !== rest || $[38] !== t10 || $[39] !== t11 || $[40] !== t12 || $[41] !== t13 || $[42] !== t14 || $[43] !== t15 || $[44] !== t8 || $[45] !== t9) {
|
|
190
|
+
t16 = /* @__PURE__ */ jsxs("div", {
|
|
191
|
+
...rest,
|
|
192
|
+
onFocusCapture: t8,
|
|
193
|
+
onBlurCapture: t9,
|
|
194
|
+
ref,
|
|
195
|
+
role: t10,
|
|
196
|
+
"aria-label": t11,
|
|
197
|
+
"data-component": "Table.BulkActions",
|
|
198
|
+
"data-active": t12,
|
|
199
|
+
className: t13,
|
|
200
|
+
children: [t14, t15]
|
|
201
|
+
});
|
|
202
|
+
$[36] = ref;
|
|
203
|
+
$[37] = rest;
|
|
204
|
+
$[38] = t10;
|
|
205
|
+
$[39] = t11;
|
|
206
|
+
$[40] = t12;
|
|
207
|
+
$[41] = t13;
|
|
208
|
+
$[42] = t14;
|
|
209
|
+
$[43] = t15;
|
|
210
|
+
$[44] = t8;
|
|
211
|
+
$[45] = t9;
|
|
212
|
+
$[46] = t16;
|
|
213
|
+
} else t16 = $[46];
|
|
214
|
+
return t16;
|
|
215
|
+
});
|
|
216
|
+
//#endregion
|
|
217
|
+
export { TableBulkActions };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./TableBulkActions-aca5618a.css";
|
|
2
|
+
//#region src/DataTable/TableBulkActions.module.css.js
|
|
3
|
+
var TableBulkActions_module_css_default = {
|
|
4
|
+
"TableBulkActions": "prc-DataTable-TableBulkActions-kfFOd",
|
|
5
|
+
"Count": "prc-DataTable-Count-G2fIf",
|
|
6
|
+
"ColumnLabel": "prc-DataTable-ColumnLabel-nT9S-",
|
|
7
|
+
"Actions": "prc-DataTable-Actions-BRFii",
|
|
8
|
+
"HeaderRow": "prc-DataTable-HeaderRow-vCWxU",
|
|
9
|
+
"BulkActionsCell": "prc-DataTable-BulkActionsCell-ji6XT"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { TableBulkActions_module_css_default as default };
|
|
@@ -47,6 +47,9 @@ type TableGroupProps = {
|
|
|
47
47
|
}: {
|
|
48
48
|
expanded: boolean;
|
|
49
49
|
}) => void;
|
|
50
|
+
selection?: 'all' | 'some' | 'none';
|
|
51
|
+
selectionDisabled?: boolean;
|
|
52
|
+
onToggleSelect?: () => void;
|
|
50
53
|
};
|
|
51
54
|
declare function TableGroup({
|
|
52
55
|
className,
|
|
@@ -59,7 +62,10 @@ declare function TableGroup({
|
|
|
59
62
|
collapsible,
|
|
60
63
|
expanded: controlledExpanded,
|
|
61
64
|
defaultExpanded,
|
|
62
|
-
onExpandedChange
|
|
65
|
+
onExpandedChange,
|
|
66
|
+
selection,
|
|
67
|
+
selectionDisabled,
|
|
68
|
+
onToggleSelect
|
|
63
69
|
}: TableGroupProps): React.JSX.Element;
|
|
64
70
|
//#endregion
|
|
65
71
|
export { TableGroup, TableGroupProps };
|