@rockshin/tao-ui 0.0.37 → 0.0.39

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@rockshin/tao-ui",
4
- "generatedAt": "2026-09-13T04:23:06.126Z",
4
+ "generatedAt": "2026-10-15T04:34:03.126Z",
5
5
  "components": [
6
6
  {
7
7
  "name": "alert",
@@ -1565,7 +1565,7 @@
1565
1565
  "name": "table",
1566
1566
  "displayName": "Table",
1567
1567
  "category": "Data Display",
1568
- "description": "Displays structured row and column data with selection, sorting, filtering, and pagination hooks.",
1568
+ "description": "Displays structured row and column data with selection, sorting, filtering, expandable rows, summary rows, a pinned header, and pagination hooks.",
1569
1569
  "exports": [
1570
1570
  "Table"
1571
1571
  ],
@@ -1586,6 +1586,8 @@
1586
1586
  "body.row",
1587
1587
  "body.cell",
1588
1588
  "selection.cell",
1589
+ "expandedRow",
1590
+ "summary",
1589
1591
  "empty",
1590
1592
  "pagination"
1591
1593
  ],
@@ -182,12 +182,19 @@ button[data-tao-select-clear] {
182
182
  color: var(--tao-color-text-quaternary);
183
183
  cursor: pointer;
184
184
  transition: color var(--tao-motion-duration-fast) var(--tao-motion-ease-out);
185
+ position: relative;
185
186
  }
186
187
 
187
188
  [data-tao-select-clear]:hover {
188
189
  color: var(--tao-color-text-secondary);
189
190
  }
190
191
 
192
+ [data-tao-select-clear]:before {
193
+ content: "";
194
+ position: absolute;
195
+ inset: -6px -8px;
196
+ }
197
+
191
198
  [data-tao-select-loading] {
192
199
  color: var(--tao-color-text-tertiary);
193
200
  animation: tao-spin calc(var(--tao-motion-unit) * 8) linear infinite;
@@ -410,7 +410,7 @@
410
410
  --tao-steps-icon-border: transparent;
411
411
  --tao-steps-icon-text: var(--tao-error);
412
412
  --tao-steps-dot-bg: var(--tao-error);
413
- --tao-steps-icon-bg-hover: color-mix(in oklch,
413
+ --tao-steps-icon-bg-hover: color-mix(in oklab,
414
414
  var(--tao-color-error) 12%,
415
415
  var(--tao-color-bg-base));
416
416
  --tao-steps-icon-border-hover: transparent;
@@ -1,3 +1,4 @@
1
+ import type { MouseEvent } from 'react';
1
2
  import type { SortOrder } from './table-types';
2
3
  export declare function SortIcon({ order }: {
3
4
  order: SortOrder;
@@ -7,3 +8,7 @@ export declare function FilterIcon({ active }: {
7
8
  }): import("react/jsx-runtime").JSX.Element;
8
9
  export declare function TableLoadingSpinner(): import("react/jsx-runtime").JSX.Element;
9
10
  export declare function CheckIcon(): import("react/jsx-runtime").JSX.Element;
11
+ export declare function ExpandIcon({ expanded, onClick, }: {
12
+ expanded: boolean;
13
+ onClick: (event: MouseEvent<HTMLButtonElement>) => void;
14
+ }): import("react/jsx-runtime").JSX.Element;
@@ -154,4 +154,27 @@ function CheckIcon() {
154
154
  } else t0 = $[0];
155
155
  return t0;
156
156
  }
157
- export { CheckIcon, FilterIcon, SortIcon, TableLoadingSpinner };
157
+ function ExpandIcon(t0) {
158
+ const $ = c(5);
159
+ const { expanded, onClick } = t0;
160
+ const t1 = expanded || void 0;
161
+ const t2 = expanded ? "Collapse row" : "Expand row";
162
+ let t3;
163
+ if ($[0] !== expanded || $[1] !== onClick || $[2] !== t1 || $[3] !== t2) {
164
+ t3 = /*#__PURE__*/ jsx("button", {
165
+ type: "button",
166
+ "data-tao-table-expand-icon": "",
167
+ "data-tao-expanded": t1,
168
+ "aria-expanded": expanded,
169
+ "aria-label": t2,
170
+ onClick: onClick
171
+ });
172
+ $[0] = expanded;
173
+ $[1] = onClick;
174
+ $[2] = t1;
175
+ $[3] = t2;
176
+ $[4] = t3;
177
+ } else t3 = $[4];
178
+ return t3;
179
+ }
180
+ export { CheckIcon, ExpandIcon, FilterIcon, SortIcon, TableLoadingSpinner };
@@ -0,0 +1,38 @@
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ export interface TableSummaryProps {
3
+ /** Pin the summary to the bottom while the body scrolls (needs `scroll.y`). */
4
+ fixed?: boolean;
5
+ children?: ReactNode;
6
+ }
7
+ export interface TableSummaryRowProps {
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ children?: ReactNode;
11
+ }
12
+ export interface TableSummaryCellProps {
13
+ /** Column index this cell starts at, counting the expand/selection columns. */
14
+ index: number;
15
+ colSpan?: number;
16
+ rowSpan?: number;
17
+ align?: 'left' | 'center' | 'right';
18
+ className?: string;
19
+ style?: CSSProperties;
20
+ children?: ReactNode;
21
+ }
22
+ export interface TableSummaryColumn {
23
+ fixed?: 'left' | 'right';
24
+ sticky?: {
25
+ left?: number;
26
+ right?: number;
27
+ };
28
+ }
29
+ /** Flattened columns (expand + selection + data) so cells can sync fixed state. */
30
+ export declare const TableSummaryContext: import("react").Context<TableSummaryColumn[]>;
31
+ declare function TableSummary({ children }: TableSummaryProps): import("react/jsx-runtime").JSX.Element;
32
+ declare namespace TableSummary {
33
+ var Row: typeof TableSummaryRow;
34
+ var Cell: typeof TableSummaryCell;
35
+ }
36
+ declare function TableSummaryRow({ className, style, children }: TableSummaryRowProps): import("react/jsx-runtime").JSX.Element;
37
+ declare function TableSummaryCell({ index, colSpan, rowSpan, align, className, style, children, }: TableSummaryCellProps): import("react/jsx-runtime").JSX.Element;
38
+ export { TableSummary };
@@ -0,0 +1,90 @@
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ import { c } from "react-compiler-runtime";
3
+ import { createContext, useContext } from "react";
4
+ const TableSummaryContext = /*#__PURE__*/ createContext([]);
5
+ function TableSummary(t0) {
6
+ const $ = c(2);
7
+ const { children } = t0;
8
+ let t1;
9
+ if ($[0] !== children) {
10
+ t1 = /*#__PURE__*/ jsx(Fragment, {
11
+ children: children
12
+ });
13
+ $[0] = children;
14
+ $[1] = t1;
15
+ } else t1 = $[1];
16
+ return t1;
17
+ }
18
+ function TableSummaryRow(t0) {
19
+ const $ = c(4);
20
+ const { className, style, children } = t0;
21
+ let t1;
22
+ if ($[0] !== children || $[1] !== className || $[2] !== style) {
23
+ t1 = /*#__PURE__*/ jsx("tr", {
24
+ "data-tao-table-summary-row": "",
25
+ className: className,
26
+ style: style,
27
+ children: children
28
+ });
29
+ $[0] = children;
30
+ $[1] = className;
31
+ $[2] = style;
32
+ $[3] = t1;
33
+ } else t1 = $[3];
34
+ return t1;
35
+ }
36
+ function TableSummaryCell(t0) {
37
+ const $ = c(14);
38
+ const { index, colSpan, rowSpan, align, className, style, children } = t0;
39
+ const columns = useContext(TableSummaryContext);
40
+ const first = columns[index];
41
+ const last = columns[index + (colSpan ?? 1) - 1];
42
+ const fixed = first?.fixed === "left" && first.sticky ? "left" : last?.fixed === "right" && last.sticky ? "right" : void 0;
43
+ const sticky = "left" === fixed ? first?.sticky : last?.sticky;
44
+ let t1;
45
+ if ($[0] !== fixed || $[1] !== sticky) {
46
+ t1 = fixed && sticky ? {
47
+ position: "sticky",
48
+ ...sticky,
49
+ zIndex: 1
50
+ } : void 0;
51
+ $[0] = fixed;
52
+ $[1] = sticky;
53
+ $[2] = t1;
54
+ } else t1 = $[2];
55
+ let t2;
56
+ if ($[3] !== style || $[4] !== t1) {
57
+ t2 = {
58
+ ...t1,
59
+ ...style
60
+ };
61
+ $[3] = style;
62
+ $[4] = t1;
63
+ $[5] = t2;
64
+ } else t2 = $[5];
65
+ let t3;
66
+ if ($[6] !== align || $[7] !== children || $[8] !== className || $[9] !== colSpan || $[10] !== fixed || $[11] !== rowSpan || $[12] !== t2) {
67
+ t3 = /*#__PURE__*/ jsx("td", {
68
+ "data-tao-table-cell": "",
69
+ "data-tao-align": align,
70
+ "data-tao-fixed": fixed,
71
+ colSpan: colSpan,
72
+ rowSpan: rowSpan,
73
+ className: className,
74
+ style: t2,
75
+ children: children
76
+ });
77
+ $[6] = align;
78
+ $[7] = children;
79
+ $[8] = className;
80
+ $[9] = colSpan;
81
+ $[10] = fixed;
82
+ $[11] = rowSpan;
83
+ $[12] = t2;
84
+ $[13] = t3;
85
+ } else t3 = $[13];
86
+ return t3;
87
+ }
88
+ TableSummary.Row = TableSummaryRow;
89
+ TableSummary.Cell = TableSummaryCell;
90
+ export { TableSummary, TableSummaryContext };
@@ -3,7 +3,7 @@ import type { TaoSize, TaoVariant } from '../../provider/tao-provider';
3
3
  import type { TaoBreakpoint } from '../../utils/breakpoint';
4
4
  import type { SemanticClassNames, SemanticStyles } from '../../utils/semantic';
5
5
  export type TableRecord = object;
6
- export type TableSemanticPart = 'root' | 'scroll' | 'table' | 'header.wrapper' | 'header.row' | 'header.cell' | 'header.content' | 'header.title' | 'body.row' | 'body.cell' | 'selection.cell' | 'empty' | 'pagination';
6
+ export type TableSemanticPart = 'root' | 'scroll' | 'table' | 'header.wrapper' | 'header.row' | 'header.cell' | 'header.content' | 'header.title' | 'body.row' | 'body.cell' | 'selection.cell' | 'expandedRow' | 'summary' | 'empty' | 'pagination';
7
7
  export type TableVariant = TaoVariant | 'modern';
8
8
  export type SortOrder = 'ascend' | 'descend' | null;
9
9
  export interface TableFilterItem {
@@ -44,6 +44,20 @@ export interface TableRowSelection<T extends TableRecord = Record<string, unknow
44
44
  fixed?: boolean;
45
45
  columnWidth?: number | string;
46
46
  }
47
+ export interface TableExpandable<T extends TableRecord = Record<string, unknown>> {
48
+ expandedRowRender: (record: T, index: number) => ReactNode;
49
+ /** Rows returning false get no expand icon. */
50
+ rowExpandable?: (record: T) => boolean;
51
+ expandedRowKeys?: Key[];
52
+ defaultExpandedRowKeys?: Key[];
53
+ onExpand?: (expanded: boolean, record: T) => void;
54
+ onExpandedRowsChange?: (expandedKeys: Key[]) => void;
55
+ /** Toggle by clicking anywhere on the row, not just the icon. */
56
+ expandRowByClick?: boolean;
57
+ /** Pin the expand column to the left edge (needs `scroll.x`). */
58
+ fixed?: boolean;
59
+ columnWidth?: number | string;
60
+ }
47
61
  export interface TablePagination {
48
62
  current?: number;
49
63
  pageSize?: number;
@@ -74,10 +88,15 @@ export interface TableProps<T extends TableRecord = Record<string, unknown>> {
74
88
  current: number;
75
89
  pageSize: number;
76
90
  }, filters: Record<string, string[] | null>, sorter: SorterResult<T>) => void;
91
+ /** `y` caps the body height and keeps the header pinned while it scrolls. */
77
92
  scroll?: {
78
93
  x?: number | string;
94
+ y?: number | string;
79
95
  };
80
96
  rowSelection?: TableRowSelection<T>;
97
+ expandable?: TableExpandable<T>;
98
+ /** Footer rows built from `Table.Summary.Row` / `Table.Summary.Cell`. */
99
+ summary?: (pageData: T[]) => ReactNode;
81
100
  rowClassName?: string | ((record: T, index: number) => string);
82
101
  rowStyle?: CSSProperties | ((record: T, index: number) => CSSProperties);
83
102
  onRow?: (record: T, index: number) => HTMLAttributes<HTMLTableRowElement>;
@@ -4,12 +4,17 @@
4
4
  --tao-table-cell-bg: transparent;
5
5
  --tao-table-header-bg: transparent;
6
6
  --tao-table-header-color: var(--tao-color-text-secondary);
7
- --tao-table-row-hover-bg: var(--tao-color-fill-quaternary);
8
- --tao-table-row-selected-bg: var(--tao-color-shadow-hint);
9
- --tao-table-row-selected-hover-bg: color-mix(in oklch,
7
+ --tao-table-row-hover-bg: color-mix(in oklab,
8
+ var(--tao-color-primary) 6%,
9
+ var(--tao-color-bg-container));
10
+ --tao-table-row-selected-bg: var(--tao-primary-bg);
11
+ --tao-table-row-selected-hover-bg: var(--tao-primary-bg-hover);
12
+ --tao-table-fixed-shadow-color: color-mix(in oklch,
13
+ var(--tao-color-text-base) 14%,
14
+ transparent);
15
+ --tao-table-border-color: color-mix(in oklch,
10
16
  var(--tao-color-text-base) 7%,
11
17
  transparent);
12
- --tao-table-border-color: var(--tao-color-border-secondary);
13
18
  --tao-table-frame-radius: var(--tao-radius-md);
14
19
  --tao-table-cell-padding-block: var(--tao-padding-sm);
15
20
  --tao-table-cell-padding-inline: var(--tao-padding);
@@ -24,20 +29,17 @@
24
29
  --tao-table-empty-padding-block: var(--tao-padding-xl);
25
30
  --tao-table-empty-padding-inline: var(--tao-padding);
26
31
  --tao-table-empty-color: var(--tao-color-text-tertiary);
32
+ --tao-table-expanded-row-bg: var(--tao-color-fill-quaternary);
27
33
  position: relative;
28
34
  }
29
35
 
30
36
  [data-tao-table-wrapper][data-tao-variant="filled"], [data-tao-table-wrapper][data-tao-variant="outlined"] {
31
37
  --tao-table-header-bg: var(--tao-color-fill-quaternary);
32
- --tao-table-row-selected-bg: var(--tao-primary-bg);
33
- --tao-table-row-selected-hover-bg: var(--tao-primary-bg-hover);
34
38
  }
35
39
 
36
40
  [data-tao-table-wrapper][data-tao-variant="modern"] {
37
41
  --tao-table-header-bg: var(--tao-color-bg-container);
38
42
  --tao-table-header-color: var(--tao-color-text-secondary);
39
- --tao-table-row-selected-bg: var(--tao-primary-bg);
40
- --tao-table-row-selected-hover-bg: var(--tao-primary-bg-hover);
41
43
  --tao-table-border-color: var(--tao-color-border);
42
44
  --tao-table-frame-radius: var(--tao-radius-md);
43
45
  }
@@ -48,7 +50,17 @@
48
50
 
49
51
  [data-tao-table-scroll] {
50
52
  position: relative;
51
- overflow-x: auto;
53
+ overflow: auto hidden;
54
+ }
55
+
56
+ [data-tao-table-scroll][data-tao-scroll-y] {
57
+ overflow-y: auto;
58
+ }
59
+
60
+ [data-tao-scroll-y] [data-tao-table-thead] [data-tao-table-cell] {
61
+ z-index: 2;
62
+ position: sticky;
63
+ top: 0;
52
64
  }
53
65
 
54
66
  [data-tao-table-wrapper][data-tao-variant="modern"] [data-tao-table-scroll] {
@@ -283,33 +295,135 @@
283
295
 
284
296
  [data-tao-table-thead] [data-tao-table-cell][data-tao-fixed] {
285
297
  z-index: 3;
286
- background: var(--tao-table-header-bg);
298
+ }
299
+
300
+ [data-tao-scroll-y] [data-tao-table-thead] [data-tao-table-cell], [data-tao-table-thead] [data-tao-table-cell][data-tao-fixed] {
301
+ background-color: var(--tao-color-bg-container);
302
+ background-image: linear-gradient(var(--tao-table-header-bg),
303
+ var(--tao-table-header-bg));
287
304
  }
288
305
 
289
306
  [data-tao-table-wrapper][data-tao-scroll-state="middle"] [data-tao-fixed="left"]:after, [data-tao-table-wrapper][data-tao-scroll-state="right"] [data-tao-fixed="left"]:after {
290
307
  content: "";
308
+ top: 0;
309
+ right: -30px;
310
+ bottom: calc(var(--tao-line-width) * -1);
291
311
  width: 30px;
292
- box-shadow: inset 10px 0 8px -8px var(--tao-table-border-color);
312
+ box-shadow: inset 12px 0 12px -8px var(--tao-table-fixed-shadow-color);
293
313
  transition: box-shadow var(--tao-motion-duration-slow)
294
314
  var(--tao-motion-ease-out);
295
315
  pointer-events: none;
296
316
  position: absolute;
297
- top: 0;
298
- bottom: 0;
299
- right: -30px;
300
317
  }
301
318
 
302
319
  [data-tao-table-wrapper][data-tao-scroll-state="middle"] [data-tao-fixed="right"]:before, [data-tao-table-wrapper][data-tao-scroll-state="left"] [data-tao-fixed="right"]:before {
303
320
  content: "";
321
+ top: 0;
322
+ left: -30px;
323
+ bottom: calc(var(--tao-line-width) * -1);
304
324
  width: 30px;
305
- box-shadow: inset -10px 0 8px -8px var(--tao-table-border-color);
325
+ box-shadow: inset -12px 0 12px -8px var(--tao-table-fixed-shadow-color);
306
326
  transition: box-shadow var(--tao-motion-duration-slow)
307
327
  var(--tao-motion-ease-out);
308
328
  pointer-events: none;
309
329
  position: absolute;
310
- top: 0;
330
+ }
331
+
332
+ [data-tao-table-expand-cell] {
333
+ text-align: center;
334
+ }
335
+
336
+ [data-tao-table-expand-icon] {
337
+ vertical-align: middle;
338
+ width: 17px;
339
+ height: 17px;
340
+ color: inherit;
341
+ background: var(--tao-color-bg-container);
342
+ border: var(--tao-line-width) solid var(--tao-color-border);
343
+ border-radius: var(--tao-radius-xs);
344
+ cursor: pointer;
345
+ transition: border-color var(--tao-motion-duration-fast)
346
+ var(--tao-motion-ease-out);
347
+ padding: 0;
348
+ display: inline-flex;
349
+ position: relative;
350
+ }
351
+
352
+ [data-tao-table-expand-icon]:hover {
353
+ border-color: currentColor;
354
+ }
355
+
356
+ [data-tao-table-expand-icon]:focus-visible {
357
+ box-shadow: 0 0 0 var(--tao-ring-width) var(--tao-control-outline);
358
+ outline: none;
359
+ }
360
+
361
+ [data-tao-table-expand-icon]:before, [data-tao-table-expand-icon]:after {
362
+ content: "";
363
+ transition: transform var(--tao-motion-duration-slow)
364
+ var(--tao-motion-ease-out);
365
+ background: currentColor;
366
+ position: absolute;
367
+ }
368
+
369
+ [data-tao-table-expand-icon]:before {
370
+ top: 7px;
371
+ height: 1px;
372
+ inset-inline: 3px;
373
+ transform: rotate(-180deg);
374
+ }
375
+
376
+ [data-tao-table-expand-icon]:after {
377
+ left: 7px;
378
+ width: 1px;
379
+ inset-block: 3px;
380
+ }
381
+
382
+ [data-tao-table-expand-icon][data-tao-expanded]:before {
383
+ transform: rotate(0);
384
+ }
385
+
386
+ [data-tao-table-expand-icon][data-tao-expanded]:after {
387
+ transform: rotate(90deg);
388
+ }
389
+
390
+ [data-tao-table-expanded-row] > [data-tao-table-cell] {
391
+ background: var(--tao-table-expanded-row-bg);
392
+ padding: 0;
393
+ }
394
+
395
+ [data-tao-table-expanded-content] {
396
+ box-sizing: border-box;
397
+ padding: var(--tao-table-cell-padding-block)
398
+ var(--tao-table-cell-padding-inline);
399
+ }
400
+
401
+ [data-tao-scroll-state] [data-tao-table-expanded-content] {
402
+ position: sticky;
403
+ left: 0;
404
+ overflow: hidden;
405
+ }
406
+
407
+ [data-tao-table]:has( > [data-tao-table-summary]) [data-tao-table-tbody] > tr:last-child > [data-tao-table-cell] {
408
+ border-bottom: none;
409
+ }
410
+
411
+ [data-tao-table-summary] > tr:first-child > [data-tao-table-cell] {
412
+ box-shadow: inset 0 var(--tao-line-width) 0 var(--tao-table-border-color);
413
+ }
414
+
415
+ [data-tao-table-wrapper][data-tao-bordered] [data-tao-table-summary] > tr:last-child > [data-tao-table-cell] {
416
+ border-bottom: none;
417
+ }
418
+
419
+ [data-tao-scroll-y] [data-tao-table-summary][data-tao-summary-fixed] {
420
+ z-index: 2;
421
+ position: sticky;
311
422
  bottom: 0;
312
- left: -30px;
423
+ }
424
+
425
+ [data-tao-table-summary][data-tao-summary-fixed] [data-tao-table-cell] {
426
+ background: var(--tao-color-bg-container);
313
427
  }
314
428
 
315
429
  [data-tao-table-empty] {
@@ -350,6 +464,15 @@
350
464
  var(--tao-line-width));
351
465
  }
352
466
 
467
+ [data-tao-table-wrapper][data-tao-bordered] [data-tao-scroll-y] {
468
+ border: var(--tao-line-width) solid var(--tao-table-border-color);
469
+ border-radius: var(--tao-table-frame-radius);
470
+ }
471
+
472
+ [data-tao-table-wrapper][data-tao-bordered] [data-tao-scroll-y] [data-tao-table] {
473
+ border: none;
474
+ }
475
+
353
476
  [data-tao-table-wrapper][data-tao-bordered] [data-tao-table-cell] {
354
477
  border-right: var(--tao-line-width) solid var(--tao-table-border-color);
355
478
  }
@@ -370,11 +493,11 @@
370
493
  border-top-right-radius: var(--tao-table-inner-radius);
371
494
  }
372
495
 
373
- [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table-tbody] > tr:last-child > [data-tao-table-cell]:first-child {
496
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table] > :last-child > tr:last-child > [data-tao-table-cell]:first-child {
374
497
  border-bottom-left-radius: var(--tao-table-inner-radius);
375
498
  }
376
499
 
377
- [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table-tbody] > tr:last-child > [data-tao-table-cell]:last-child {
500
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table] > :last-child > tr:last-child > [data-tao-table-cell]:last-child {
378
501
  border-bottom-right-radius: var(--tao-table-inner-radius);
379
502
  }
380
503
 
@@ -1,4 +1,9 @@
1
+ import { TableSummary } from './table-summary';
1
2
  import type { TableProps, TableRecord } from './table-types';
2
3
  import './table.css';
3
- export type { SorterResult, SortOrder, TableColumn, TableFilterItem, TablePagination, TableProps, TableRowSelection, TableSemanticClassNames, TableSemanticInfo, TableSemanticPart, TableSemanticStyles, TableVariant, } from './table-types';
4
- export declare function Table<T extends TableRecord = Record<string, unknown>>({ columns: columnsProp, dataSource, rowKey, loading, pagination: paginationProp, onChange, scroll, rowSelection, size, variant, headerBackground, emptyText, bordered, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
4
+ export type { TableSummaryCellProps, TableSummaryProps, TableSummaryRowProps, } from './table-summary';
5
+ export type { SorterResult, SortOrder, TableColumn, TableExpandable, TableFilterItem, TablePagination, TableProps, TableRowSelection, TableSemanticClassNames, TableSemanticInfo, TableSemanticPart, TableSemanticStyles, TableVariant, } from './table-types';
6
+ export declare function Table<T extends TableRecord = Record<string, unknown>>({ columns: columnsProp, dataSource, rowKey, loading, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground, emptyText, bordered, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
7
+ export declare namespace Table {
8
+ var Summary: typeof TableSummary;
9
+ }