@react-stately/table 3.15.4 → 3.16.0

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.
Files changed (76) hide show
  1. package/dist/import.mjs +6 -18
  2. package/dist/main.js +18 -30
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +6 -18
  5. package/dist/module.js.map +1 -1
  6. package/dist/types/src/index.d.ts +9 -0
  7. package/package.json +17 -20
  8. package/src/index.ts +9 -16
  9. package/dist/Cell.main.js +0 -38
  10. package/dist/Cell.main.js.map +0 -1
  11. package/dist/Cell.mjs +0 -33
  12. package/dist/Cell.module.js +0 -33
  13. package/dist/Cell.module.js.map +0 -1
  14. package/dist/Column.main.js +0 -75
  15. package/dist/Column.main.js.map +0 -1
  16. package/dist/Column.mjs +0 -66
  17. package/dist/Column.module.js +0 -66
  18. package/dist/Column.module.js.map +0 -1
  19. package/dist/Row.main.js +0 -102
  20. package/dist/Row.main.js.map +0 -1
  21. package/dist/Row.mjs +0 -93
  22. package/dist/Row.module.js +0 -93
  23. package/dist/Row.module.js.map +0 -1
  24. package/dist/TableBody.main.js +0 -61
  25. package/dist/TableBody.main.js.map +0 -1
  26. package/dist/TableBody.mjs +0 -52
  27. package/dist/TableBody.module.js +0 -52
  28. package/dist/TableBody.module.js.map +0 -1
  29. package/dist/TableCollection.main.js +0 -308
  30. package/dist/TableCollection.main.js.map +0 -1
  31. package/dist/TableCollection.mjs +0 -302
  32. package/dist/TableCollection.module.js +0 -302
  33. package/dist/TableCollection.module.js.map +0 -1
  34. package/dist/TableColumnLayout.main.js +0 -113
  35. package/dist/TableColumnLayout.main.js.map +0 -1
  36. package/dist/TableColumnLayout.mjs +0 -108
  37. package/dist/TableColumnLayout.module.js +0 -108
  38. package/dist/TableColumnLayout.module.js.map +0 -1
  39. package/dist/TableHeader.main.js +0 -56
  40. package/dist/TableHeader.main.js.map +0 -1
  41. package/dist/TableHeader.mjs +0 -47
  42. package/dist/TableHeader.module.js +0 -47
  43. package/dist/TableHeader.module.js.map +0 -1
  44. package/dist/TableUtils.main.js +0 -182
  45. package/dist/TableUtils.main.js.map +0 -1
  46. package/dist/TableUtils.mjs +0 -175
  47. package/dist/TableUtils.module.js +0 -175
  48. package/dist/TableUtils.module.js.map +0 -1
  49. package/dist/types.d.ts +0 -194
  50. package/dist/types.d.ts.map +0 -1
  51. package/dist/useTableColumnResizeState.main.js +0 -109
  52. package/dist/useTableColumnResizeState.main.js.map +0 -1
  53. package/dist/useTableColumnResizeState.mjs +0 -104
  54. package/dist/useTableColumnResizeState.module.js +0 -104
  55. package/dist/useTableColumnResizeState.module.js.map +0 -1
  56. package/dist/useTableState.main.js +0 -86
  57. package/dist/useTableState.main.js.map +0 -1
  58. package/dist/useTableState.mjs +0 -80
  59. package/dist/useTableState.module.js +0 -80
  60. package/dist/useTableState.module.js.map +0 -1
  61. package/dist/useTreeGridState.main.js +0 -207
  62. package/dist/useTreeGridState.main.js.map +0 -1
  63. package/dist/useTreeGridState.mjs +0 -202
  64. package/dist/useTreeGridState.module.js +0 -202
  65. package/dist/useTreeGridState.module.js.map +0 -1
  66. package/src/Cell.ts +0 -40
  67. package/src/Column.ts +0 -83
  68. package/src/Row.ts +0 -121
  69. package/src/TableBody.ts +0 -61
  70. package/src/TableCollection.ts +0 -367
  71. package/src/TableColumnLayout.ts +0 -127
  72. package/src/TableHeader.ts +0 -59
  73. package/src/TableUtils.ts +0 -266
  74. package/src/useTableColumnResizeState.ts +0 -147
  75. package/src/useTableState.ts +0 -124
  76. package/src/useTreeGridState.ts +0 -278
@@ -1,367 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {getFirstItem, getLastItem} from '@react-stately/collections';
14
- import {GridCollection} from '@react-stately/grid';
15
- import {GridNode} from '@react-types/grid';
16
- import {TableCollection as ITableCollection} from '@react-types/table';
17
- import {Key} from '@react-types/shared';
18
-
19
- interface GridCollectionOptions {
20
- showSelectionCheckboxes?: boolean,
21
- showDragButtons?: boolean
22
- }
23
-
24
- const ROW_HEADER_COLUMN_KEY = 'row-header-column-' + Math.random().toString(36).slice(2);
25
- let ROW_HEADER_COLUMN_KEY_DRAG = 'row-header-column-' + Math.random().toString(36).slice(2);
26
- while (ROW_HEADER_COLUMN_KEY === ROW_HEADER_COLUMN_KEY_DRAG) {
27
- ROW_HEADER_COLUMN_KEY_DRAG = 'row-header-column-' + Math.random().toString(36).slice(2);
28
- }
29
-
30
- /** @private */
31
- export function buildHeaderRows<T>(keyMap: Map<Key, GridNode<T>>, columnNodes: GridNode<T>[]): GridNode<T>[] {
32
- if (columnNodes.length === 0) {
33
- return [];
34
- }
35
-
36
- let columns: GridNode<T>[][] = [];
37
- let seen = new Map();
38
- for (let column of columnNodes) {
39
- let parentKey = column.parentKey;
40
- let col = [column];
41
-
42
- while (parentKey) {
43
- let parent: GridNode<T> | undefined = keyMap.get(parentKey);
44
- if (!parent) {
45
- break;
46
- }
47
-
48
- // If we've already seen this parent, than it is shared
49
- // with a previous column. If the current column is taller
50
- // than the previous column, than we need to shift the parent
51
- // in the previous column so it's level with the current column.
52
- if (seen.has(parent)) {
53
- parent.colSpan ??= 0;
54
- parent.colSpan++;
55
- parent.colspan = parent.colSpan;
56
-
57
- let {column, index} = seen.get(parent);
58
- if (index > col.length) {
59
- break;
60
- }
61
-
62
- for (let i = index; i < col.length; i++) {
63
- column.splice(i, 0, null);
64
- }
65
-
66
- // Adjust shifted indices
67
- for (let i = col.length; i < column.length; i++) {
68
- // eslint-disable-next-line max-depth
69
- if (column[i] && seen.has(column[i])) {
70
- seen.get(column[i]).index = i;
71
- }
72
- }
73
- } else {
74
- parent.colSpan = 1;
75
- parent.colspan = 1;
76
- col.push(parent);
77
- seen.set(parent, {column: col, index: col.length - 1});
78
- }
79
-
80
- parentKey = parent.parentKey;
81
- }
82
-
83
- columns.push(col);
84
- column.index = columns.length - 1;
85
- }
86
-
87
- let maxLength = Math.max(...columns.map(c => c.length));
88
- let headerRows: GridNode<T>[][] = Array(maxLength).fill(0).map(() => []);
89
-
90
- // Convert columns into rows.
91
- let colIndex = 0;
92
- for (let column of columns) {
93
- let i = maxLength - 1;
94
- for (let item of column) {
95
- if (item) {
96
- // Fill the space up until the current column with a placeholder
97
- let row = headerRows[i];
98
- let rowLength = row.reduce((p, c) => p + (c.colSpan ?? 1), 0);
99
- if (rowLength < colIndex) {
100
- let placeholder: GridNode<T> = {
101
- type: 'placeholder',
102
- key: 'placeholder-' + item.key,
103
- colspan: colIndex - rowLength,
104
- colSpan: colIndex - rowLength,
105
- index: rowLength,
106
- value: null,
107
- rendered: null,
108
- level: i,
109
- hasChildNodes: false,
110
- childNodes: [],
111
- textValue: ''
112
- };
113
-
114
- // eslint-disable-next-line max-depth
115
- if (row.length > 0) {
116
- row[row.length - 1].nextKey = placeholder.key;
117
- placeholder.prevKey = row[row.length - 1].key;
118
- }
119
-
120
- row.push(placeholder);
121
- }
122
-
123
- if (row.length > 0) {
124
- row[row.length - 1].nextKey = item.key;
125
- item.prevKey = row[row.length - 1].key;
126
- }
127
-
128
- item.level = i;
129
- item.colIndex = colIndex;
130
- row.push(item);
131
- }
132
-
133
- i--;
134
- }
135
-
136
- colIndex++;
137
- }
138
-
139
- // Add placeholders at the end of each row that is shorter than the maximum
140
- let i = 0;
141
- for (let row of headerRows) {
142
- let rowLength = row.reduce((p, c) => p + (c.colSpan ?? 1), 0);
143
- if (rowLength < columnNodes.length) {
144
- let placeholder: GridNode<T> = {
145
- type: 'placeholder',
146
- key: 'placeholder-' + row[row.length - 1].key,
147
- colSpan: columnNodes.length - rowLength,
148
- colspan: columnNodes.length - rowLength,
149
- index: rowLength,
150
- value: null,
151
- rendered: null,
152
- level: i,
153
- hasChildNodes: false,
154
- childNodes: [],
155
- textValue: '',
156
- prevKey: row[row.length - 1].key
157
- };
158
-
159
- row.push(placeholder);
160
- }
161
-
162
- i++;
163
- }
164
-
165
- return headerRows.map((childNodes, index) => {
166
- let row: GridNode<T> = {
167
- type: 'headerrow',
168
- key: 'headerrow-' + index,
169
- index,
170
- value: null,
171
- rendered: null,
172
- level: 0,
173
- hasChildNodes: true,
174
- childNodes,
175
- textValue: ''
176
- };
177
-
178
- return row;
179
- });
180
- }
181
-
182
- export class TableCollection<T> extends GridCollection<T> implements ITableCollection<T> {
183
- headerRows: GridNode<T>[];
184
- columns: GridNode<T>[];
185
- rowHeaderColumnKeys: Set<Key>;
186
- body: GridNode<T>;
187
- _size: number = 0;
188
-
189
- constructor(nodes: Iterable<GridNode<T>>, prev?: ITableCollection<T> | null, opts?: GridCollectionOptions) {
190
- let rowHeaderColumnKeys: Set<Key> = new Set();
191
- let body: GridNode<T> | null = null;
192
- let columns: GridNode<T>[] = [];
193
- // Add cell for selection checkboxes if needed.
194
- if (opts?.showSelectionCheckboxes) {
195
- let rowHeaderColumn: GridNode<T> = {
196
- type: 'column',
197
- key: ROW_HEADER_COLUMN_KEY,
198
- value: null,
199
- textValue: '',
200
- level: 0,
201
- index: opts?.showDragButtons ? 1 : 0,
202
- hasChildNodes: false,
203
- rendered: null,
204
- childNodes: [],
205
- props: {
206
- isSelectionCell: true
207
- }
208
- };
209
-
210
- columns.unshift(rowHeaderColumn);
211
- }
212
-
213
- // Add cell for drag buttons if needed.
214
- if (opts?.showDragButtons) {
215
- let rowHeaderColumn: GridNode<T> = {
216
- type: 'column',
217
- key: ROW_HEADER_COLUMN_KEY_DRAG,
218
- value: null,
219
- textValue: '',
220
- level: 0,
221
- index: 0,
222
- hasChildNodes: false,
223
- rendered: null,
224
- childNodes: [],
225
- props: {
226
- isDragButtonCell: true
227
- }
228
- };
229
-
230
- columns.unshift(rowHeaderColumn);
231
- }
232
-
233
- let rows: GridNode<T>[] = [];
234
- let columnKeyMap = new Map();
235
- let visit = (node: GridNode<T>) => {
236
- switch (node.type) {
237
- case 'body':
238
- body = node;
239
- break;
240
- case 'column':
241
- columnKeyMap.set(node.key, node);
242
- if (!node.hasChildNodes) {
243
- columns.push(node);
244
-
245
- if (node.props.isRowHeader) {
246
- rowHeaderColumnKeys.add(node.key);
247
- }
248
- }
249
- break;
250
- case 'item':
251
- rows.push(node);
252
- return; // do not go into childNodes
253
- }
254
- for (let child of node.childNodes) {
255
- visit(child);
256
- }
257
- };
258
-
259
- for (let node of nodes) {
260
- visit(node);
261
- }
262
-
263
- let headerRows = buildHeaderRows(columnKeyMap, columns) as GridNode<T>[];
264
- headerRows.forEach((row, i) => rows.splice(i, 0, row));
265
-
266
- super({
267
- columnCount: columns.length,
268
- items: rows,
269
- visitNode: node => {
270
- node.column = columns[node.index];
271
- return node;
272
- }
273
- });
274
- this.columns = columns;
275
- this.rowHeaderColumnKeys = rowHeaderColumnKeys;
276
- this.body = body!;
277
- this.headerRows = headerRows;
278
- this._size = [...body!.childNodes].length;
279
-
280
- // Default row header column to the first one.
281
- if (this.rowHeaderColumnKeys.size === 0) {
282
- let col = this.columns.find(column => !column.props?.isDragButtonCell && !column.props?.isSelectionCell);
283
- if (col) {
284
- this.rowHeaderColumnKeys.add(col.key);
285
- }
286
- }
287
- }
288
-
289
- *[Symbol.iterator](): IterableIterator<GridNode<T>> {
290
- yield* this.body.childNodes;
291
- }
292
-
293
- get size(): number {
294
- return this._size;
295
- }
296
-
297
- getKeys(): IterableIterator<Key> {
298
- return this.keyMap.keys();
299
- }
300
-
301
- getKeyBefore(key: Key): Key | null {
302
- let node = this.keyMap.get(key);
303
- return node?.prevKey ?? null;
304
- }
305
-
306
- getKeyAfter(key: Key): Key | null {
307
- let node = this.keyMap.get(key);
308
- return node?.nextKey ?? null;
309
- }
310
-
311
- getFirstKey(): Key | null {
312
- return getFirstItem(this.body.childNodes)?.key ?? null;
313
- }
314
-
315
- getLastKey(): Key | null {
316
- return getLastItem(this.body.childNodes)?.key ?? null;
317
- }
318
-
319
- getItem(key: Key): GridNode<T> | null {
320
- return this.keyMap.get(key) ?? null;
321
- }
322
-
323
- at(idx: number): GridNode<T> | null {
324
- const keys = [...this.getKeys()];
325
- return this.getItem(keys[idx]);
326
- }
327
-
328
- getChildren(key: Key): Iterable<GridNode<T>> {
329
- if (key === this.body.key) {
330
- return this.body.childNodes;
331
- }
332
-
333
- return super.getChildren(key);
334
- }
335
-
336
- getTextValue(key: Key): string {
337
- let row = this.getItem(key);
338
- if (!row) {
339
- return '';
340
- }
341
-
342
- // If the row has a textValue, use that.
343
- if (row.textValue) {
344
- return row.textValue;
345
- }
346
-
347
- // Otherwise combine the text of each of the row header columns.
348
- let rowHeaderColumnKeys = this.rowHeaderColumnKeys;
349
- if (rowHeaderColumnKeys) {
350
- let text: string[] = [];
351
- for (let cell of row.childNodes) {
352
- let column = this.columns[cell.index];
353
- if (rowHeaderColumnKeys.has(column.key) && cell.textValue) {
354
- text.push(cell.textValue);
355
- }
356
-
357
- if (text.length === rowHeaderColumnKeys.size) {
358
- break;
359
- }
360
- }
361
-
362
- return text.join(' ');
363
- }
364
-
365
- return '';
366
- }
367
- }
@@ -1,127 +0,0 @@
1
- /*
2
- * Copyright 2022 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {
14
- calculateColumnSizes,
15
- getMaxWidth,
16
- getMinWidth
17
- } from './TableUtils';
18
- import {ColumnSize, TableCollection} from '@react-types/table';
19
- import {GridNode} from '@react-types/grid';
20
- import {Key} from '@react-types/shared';
21
-
22
- export interface TableColumnLayoutOptions<T> {
23
- getDefaultWidth?: (column: GridNode<T>) => ColumnSize | null | undefined,
24
- getDefaultMinWidth?: (column: GridNode<T>) => ColumnSize | null | undefined
25
- }
26
-
27
- export class TableColumnLayout<T> {
28
- getDefaultWidth: (column: GridNode<T>) => ColumnSize | null | undefined;
29
- getDefaultMinWidth: (column: GridNode<T>) => ColumnSize | null | undefined;
30
- columnWidths: Map<Key, number> = new Map();
31
- columnMinWidths: Map<Key, number> = new Map();
32
- columnMaxWidths: Map<Key, number> = new Map();
33
-
34
- constructor(options: TableColumnLayoutOptions<T>) {
35
- this.getDefaultWidth = options?.getDefaultWidth ?? (() => '1fr');
36
- this.getDefaultMinWidth = options?.getDefaultMinWidth ?? (() => 75);
37
- }
38
-
39
- /** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
40
- splitColumnsIntoControlledAndUncontrolled(columns: Array<GridNode<T>>): [Map<Key, GridNode<T>>, Map<Key, GridNode<T>>] {
41
- return columns.reduce((acc, col) => {
42
- if (col.props.width != null) {
43
- acc[0].set(col.key, col);
44
- } else {
45
- acc[1].set(col.key, col);
46
- }
47
- return acc;
48
- }, [new Map(), new Map()]);
49
- }
50
-
51
- /** Takes uncontrolled and controlled widths and joins them into a single Map. */
52
- recombineColumns(columns: Array<GridNode<T>>, uncontrolledWidths: Map<Key, ColumnSize>, uncontrolledColumns: Map<Key, GridNode<T>>, controlledColumns: Map<Key, GridNode<T>>): Map<Key, ColumnSize> {
53
- return new Map(columns.map(col => {
54
- if (uncontrolledColumns.has(col.key)) {
55
- return [col.key, uncontrolledWidths.get(col.key)];
56
- } else {
57
- return [col.key, controlledColumns.get(col.key)!.props.width];
58
- }
59
- }));
60
- }
61
-
62
- /** Used to make an initial Map of the uncontrolled widths based on default widths. */
63
- getInitialUncontrolledWidths(uncontrolledColumns: Map<Key, GridNode<T>>): Map<Key, ColumnSize> {
64
- return new Map(Array.from(uncontrolledColumns).map(([key, col]) =>
65
- [key, col.props.defaultWidth ?? this.getDefaultWidth?.(col) ?? '1fr']
66
- ));
67
- }
68
-
69
- getColumnWidth(key: Key): number {
70
- return this.columnWidths.get(key) ?? 0;
71
- }
72
-
73
- getColumnMinWidth(key: Key): number {
74
- return this.columnMinWidths.get(key) ?? 0;
75
- }
76
-
77
- getColumnMaxWidth(key: Key): number {
78
- return this.columnMaxWidths.get(key) ?? 0;
79
- }
80
-
81
- resizeColumnWidth(collection: TableCollection<T>, uncontrolledWidths: Map<Key, ColumnSize>, col: Key, width: number): Map<Key, ColumnSize> {
82
- let prevColumnWidths = this.columnWidths;
83
- let freeze = true;
84
- let newWidths = new Map<Key, ColumnSize>();
85
-
86
- width = Math.max(this.getColumnMinWidth(col), Math.min(this.getColumnMaxWidth(col), Math.floor(width)));
87
-
88
- collection.columns.forEach(column => {
89
- if (column.key === col) {
90
- newWidths.set(column.key, width);
91
- freeze = false;
92
- } else if (freeze) {
93
- // freeze columns to the left to their previous pixel value
94
- newWidths.set(column.key, prevColumnWidths.get(column.key) ?? 0);
95
- } else {
96
- newWidths.set(column.key, column.props.width ?? uncontrolledWidths.get(column.key));
97
- }
98
- });
99
-
100
- return newWidths;
101
- }
102
-
103
- buildColumnWidths(tableWidth: number, collection: TableCollection<T>, widths: Map<Key, ColumnSize>): Map<Key, number> {
104
- this.columnWidths = new Map();
105
- this.columnMinWidths = new Map();
106
- this.columnMaxWidths = new Map();
107
-
108
- // initial layout or table/window resizing
109
- let columnWidths = calculateColumnSizes(
110
- tableWidth,
111
- collection.columns.map(col => ({...col.props, key: col.key})),
112
- widths,
113
- (i) => this.getDefaultWidth(collection.columns[i]),
114
- (i) => this.getDefaultMinWidth(collection.columns[i])
115
- );
116
-
117
- // columns going in will be the same order as the columns coming out
118
- columnWidths.forEach((width, index) => {
119
- let key = collection.columns[index].key;
120
- let column = collection.columns[index];
121
- this.columnWidths.set(key, width);
122
- this.columnMinWidths.set(key, getMinWidth(column.props.minWidth ?? this.getDefaultMinWidth(column), tableWidth));
123
- this.columnMaxWidths.set(key, getMaxWidth(column.props.maxWidth, tableWidth));
124
- });
125
- return this.columnWidths;
126
- }
127
- }
@@ -1,59 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {CollectionBuilderContext} from './useTableState';
14
- import {PartialNode} from '@react-stately/collections';
15
- import React, {JSX, ReactElement} from 'react';
16
- import {TableHeaderProps} from '@react-types/table';
17
-
18
- function TableHeader<T>(props: TableHeaderProps<T>): ReactElement | null { // eslint-disable-line @typescript-eslint/no-unused-vars
19
- return null;
20
- }
21
-
22
- TableHeader.getCollectionNode = function* getCollectionNode<T>(props: TableHeaderProps<T>, context: CollectionBuilderContext<T>): Generator<PartialNode<T>, void, any> {
23
- let {children, columns} = props;
24
-
25
- // Clear columns so they aren't double added in strict mode.
26
- context.columns = [];
27
-
28
- if (typeof children === 'function') {
29
- if (!columns) {
30
- throw new Error('props.children was a function but props.columns is missing');
31
- }
32
-
33
- for (let column of columns) {
34
- yield {
35
- type: 'column',
36
- value: column,
37
- renderer: children
38
- };
39
- }
40
- } else {
41
- let columns: PartialNode<T>[] = [];
42
- React.Children.forEach(children, column => {
43
- columns.push({
44
- type: 'column',
45
- element: column
46
- });
47
- });
48
-
49
- yield* columns;
50
- }
51
- };
52
-
53
- /**
54
- * A TableHeader is a container for the Column elements in a Table. Columns can be statically defined
55
- * as children, or generated dynamically using a function based on the data passed to the `columns` prop.
56
- */
57
- // We don't want getCollectionNode to show up in the type definition
58
- let _TableHeader = TableHeader as <T>(props: TableHeaderProps<T>) => JSX.Element;
59
- export {_TableHeader as TableHeader};