@jetbrains/ring-ui 8.0.0-beta.2 → 8.0.0-beta.4

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 (121) hide show
  1. package/babel.config.js +1 -1
  2. package/components/auth-dialog-service/auth-dialog-service.js +2 -2
  3. package/components/checkbox/checkbox.d.ts +1 -1
  4. package/components/collapse/collapse-content.js +2 -2
  5. package/components/collapse/collapse-control.js +2 -2
  6. package/components/collapse/collapse.js +2 -2
  7. package/components/collapsible-group/collapsible-group.css +138 -0
  8. package/components/collapsible-group/collapsible-group.d.ts +20 -0
  9. package/components/collapsible-group/collapsible-group.js +73 -0
  10. package/components/confirm-service/confirm-service.js +2 -2
  11. package/components/data-list/data-list.d.ts +1 -1
  12. package/components/data-list/data-list.mock.d.ts +1 -1
  13. package/components/data-list/item.d.ts +1 -1
  14. package/components/data-list/selection.d.ts +1 -1
  15. package/components/data-list/selection.js +1 -1
  16. package/components/date-picker/months.js +2 -2
  17. package/components/date-picker/use-scroll-behavior.js +5 -6
  18. package/components/date-picker/years.js +2 -2
  19. package/components/dialog/dialog.d.ts +2 -2
  20. package/components/dialog/dialog.js +2 -2
  21. package/components/dropdown-menu/dropdown-menu.d.ts +4 -4
  22. package/components/dropdown-menu/dropdown-menu.js +4 -4
  23. package/components/editable-heading/editable-heading.d.ts +1 -2
  24. package/components/editable-heading/editable-heading.js +18 -19
  25. package/components/expand/collapsible-group.css +23 -89
  26. package/components/expand/collapsible-group.d.ts +8 -16
  27. package/components/expand/collapsible-group.js +13 -72
  28. package/components/global/compose-refs.d.ts +2 -1
  29. package/components/global/compose-refs.js +24 -8
  30. package/components/global/create-stateful-context.js +5 -5
  31. package/components/global/focus-with-temporary-tabindex.d.ts +11 -0
  32. package/components/global/focus-with-temporary-tabindex.js +21 -0
  33. package/components/global/intersection-observer-context.d.ts +31 -11
  34. package/components/global/intersection-observer-context.js +47 -28
  35. package/components/global/is-within-interactive-element.d.ts +6 -0
  36. package/components/global/is-within-interactive-element.js +26 -0
  37. package/components/global/is-within-navigable-element.d.ts +6 -0
  38. package/components/global/is-within-navigable-element.js +27 -0
  39. package/components/global/parse-css-duration.d.ts +5 -0
  40. package/components/global/parse-css-duration.js +13 -0
  41. package/components/global/rerender-hoc.d.ts +4 -2
  42. package/components/global/rerender-hoc.js +4 -4
  43. package/components/global/schedule-with-cleanup.d.ts +12 -0
  44. package/components/global/schedule-with-cleanup.js +34 -0
  45. package/components/{legacy-table/selection.d.ts → global/table-selection.d.ts} +14 -14
  46. package/components/{legacy-table/selection.js → global/table-selection.js} +2 -2
  47. package/components/global/theme.d.ts +4 -3
  48. package/components/global/theme.js +8 -8
  49. package/components/i18n/i18n-context.js +1 -1
  50. package/components/input/input.d.ts +1 -1
  51. package/components/island/adaptive-island-hoc.js +4 -4
  52. package/components/island/content.d.ts +7 -2
  53. package/components/island/content.js +5 -5
  54. package/components/legacy-table/cell.js +1 -1
  55. package/components/legacy-table/header-cell.js +1 -1
  56. package/components/legacy-table/header.js +1 -1
  57. package/components/legacy-table/multitable.d.ts +1 -1
  58. package/components/legacy-table/row.d.ts +1 -1
  59. package/components/legacy-table/row.js +1 -1
  60. package/components/legacy-table/selection-adapter.d.ts +3 -3
  61. package/components/legacy-table/selection-shortcuts-hoc.d.ts +5 -5
  62. package/components/legacy-table/simple-table.d.ts +2 -2
  63. package/components/legacy-table/simple-table.js +3 -3
  64. package/components/legacy-table/smart-table.d.ts +5 -5
  65. package/components/legacy-table/smart-table.js +3 -3
  66. package/components/legacy-table/table.js +1 -1
  67. package/components/login-dialog/service.js +2 -2
  68. package/components/popup/popup.d.ts +2 -0
  69. package/components/popup/popup.js +2 -2
  70. package/components/popup/popup.target.d.ts +3 -2
  71. package/components/popup/popup.target.js +4 -6
  72. package/components/query-assist/query-assist.d.ts +3 -1
  73. package/components/query-assist/query-assist.js +2 -2
  74. package/components/radio/radio-item.d.ts +3 -3
  75. package/components/radio/radio-item.js +3 -4
  76. package/components/radio/radio.d.ts +2 -2
  77. package/components/radio/radio.js +1 -1
  78. package/components/select/select-popup.d.ts +1 -1
  79. package/components/select/select.d.ts +4 -2
  80. package/components/slider/slider.js +4 -5
  81. package/components/tab-trap/tab-trap.d.ts +3 -3
  82. package/components/tab-trap/tab-trap.js +3 -5
  83. package/components/table/default-item-renderer.d.ts +35 -11
  84. package/components/table/default-item-renderer.js +47 -47
  85. package/components/table/internal/column-animation.d.ts +16 -0
  86. package/components/table/internal/column-animation.js +45 -0
  87. package/components/table/internal/table-header.d.ts +4 -0
  88. package/components/table/internal/table-header.js +357 -0
  89. package/components/table/internal/virtual-items.d.ts +34 -0
  90. package/components/table/{table-virtualize.js → internal/virtual-items.js} +78 -44
  91. package/components/table/item-virtualization.d.ts +35 -0
  92. package/components/table/item-virtualization.js +28 -0
  93. package/components/table/table-const.d.ts +40 -6
  94. package/components/table/table-const.js +14 -5
  95. package/components/table/table-primitives.d.ts +21 -0
  96. package/components/table/table-primitives.js +25 -0
  97. package/components/table/table-props.d.ts +280 -0
  98. package/components/table/table-props.js +1 -0
  99. package/components/table/table.css +171 -66
  100. package/components/table/table.d.ts +205 -224
  101. package/components/table/table.js +298 -2
  102. package/components/tags-input/tags-input.d.ts +3 -1
  103. package/components/tooltip/tooltip.js +2 -2
  104. package/components/upload/upload.d.ts +4 -3
  105. package/components/upload/upload.js +3 -7
  106. package/components/user-agreement/service.js +2 -2
  107. package/components/util-stories.d.ts +26 -0
  108. package/components/util-stories.js +61 -0
  109. package/package.json +41 -41
  110. package/components/date-picker/use-intersection-observer.d.ts +0 -6
  111. package/components/date-picker/use-intersection-observer.js +0 -48
  112. package/components/global/composeRefs.d.ts +0 -6
  113. package/components/global/composeRefs.js +0 -7
  114. package/components/global/use-event-callback.d.ts +0 -1
  115. package/components/global/use-event-callback.js +0 -15
  116. package/components/table/table-base.d.ts +0 -24
  117. package/components/table/table-base.js +0 -79
  118. package/components/table/table-component.d.ts +0 -53
  119. package/components/table/table-component.js +0 -101
  120. package/components/table/table-virtualize.d.ts +0 -32
  121. /package/components/legacy-table/{table.css → legacy-table.css} +0 -0
@@ -1,226 +1,207 @@
1
- import Table from './table-component';
2
- import type { ReactNode, RefObject } from 'react';
3
- import type Selection from '../legacy-table/selection';
4
- export default Table;
5
- export interface TableProps<T> {
6
- /**
7
- * The data items to render. `null` and `undefined` as an item is not supported.
8
- * Referentially same items are not supported either.
9
- */
10
- data: T[];
11
- /**
12
- * Columns specification.
13
- */
14
- columns: Column<T>[];
15
- /**
16
- * Used to render a row key, e.g. `<tr key={getKey(item, index)}>`.
17
- */
18
- getKey: (item: T, index: number) => React.Key;
19
- /**
20
- * Displays the selection and focus state.
21
- */
22
- selection?: Selection<T>;
23
- /**
24
- * If true, the item can be focused by keyboard up/down arrows.
25
- * Note that `false` doesn't prevent from `selection.focus()`.
26
- */
27
- isItemKeyboardFocusable?: (item: T, index: number, items: T[]) => boolean;
28
- /**
29
- * When the item should get focused by keyboard navigation.
30
- * The client is expected to update `selection`.
31
- */
32
- onItemFocus?: (item: T | null, index: number, items: T[]) => void;
33
- /**
34
- * Called when the client moves a row by dragging it.
35
- */
36
- onItemMove?: (item: T, fromIndex: number, toIndex: number, items: T[]) => void;
37
- /**
38
- * Called when the client clicks on SortButton in a column header.
39
- */
40
- onSort?: (columnIndex: number, newOrder: SortOrder) => void;
41
- /**
42
- * Called when the client clicks on a column delete button in the header.
43
- */
44
- onColumnDelete?: (columnIndex: number) => void;
45
- /**
46
- * Called when the client moves a column.
47
- */
48
- onColumnMove?: (fromIndex: number, toIndex: number) => void;
49
- /**
50
- * Implement to specify props like `clickable`, handlers like `onClick`,
51
- * a custom `className`, a `ref` etc., or to provide a custom renderer.
52
- *
53
- * ```tsx
54
- * <Table
55
- * renderItem={(item, index) => (
56
- * <DefaultItemRenderer
57
- * index={index}
58
- * className='my-row'
59
- * clickable
60
- * onClick={() => setSelection(selection.focus(item))}
61
- * />
62
- * )}
63
- * />
64
- * ```
65
- *
66
- * In your custom implementation, use `TableRow` and `TableCell` base components to apply the
67
- * standard classnames, but beware that `tdClassName` won't be applied.
68
- *
69
- * You can also use `DefaultItemRenderer` in combination with your custom rows.
70
- */
71
- renderItem?: (item: T, index: number, items: T[]) => ReactNode;
72
- /**
73
- * Only renders rows near the viewport.
74
- *
75
- * Rows may transition between two states:
76
- * - materialized: rendered as actual table rows. This happens when the corresponding
77
- * spacer approaches the viewport, as specified by `lookaheadPx`.
78
- * - virtualized: replaced with spacer rows of the same height. This happens when the row
79
- * moves sufficiently far from the viewport, as specified by `retentionMarginPx`.
80
- */
81
- virtualizeRows?: boolean;
82
- /**
83
- * Used with `virtualizeRows` as a source of scroll events, as a target for ResizeObserver,
84
- * and as the root for IntersectionObserver. Required when the scrollable container is not
85
- * the whole document.
86
- *
87
- * If not set:
88
- * - scroll listener is attached to `window`
89
- * - ResizeObserver observes `document.body`
90
- * - IntersectionObserver has no root (i.e. the viewport is used)
91
- */
92
- scrollerRef?: React.RefObject<HTMLElement | null>;
93
- /**
94
- * Used with `virtualizeRows` to estimate the height of items that have not been rendered yet.
95
- * The function should be fast and side-effect free. Do not measure the DOM here.
96
- * Once a row is rendered, its actual height will be measured and used instead of this estimate.
97
- *
98
- * Note the effects of imprecise estimates:
99
- * - When the height is underestimated, the table may materialize more rows than specified by `lookaheadPx`.
100
- * If the resulting rows extend beyond `retentionMarginPx`, they will be virtualized again.
101
- * If this causes relayout flickering, increase `retentionMarginPx`.
102
- * - When the height is overestimated, the table may materialize fewer rows than specified by `lookaheadPx`,
103
- * which may leave a spacer partially visible. To avoid this, increase `lookaheadPx` (and
104
- * `retentionMarginPx` accordingly, since it should be greater than `lookaheadPx`).
105
- *
106
- * Default: 37px = 16px padding + 20px line height + 1px border.
107
- */
108
- estimateHeight?: (index: number) => number;
109
- /**
110
- * When using `virtualizeRows`, the number of pixels above and below the viewport
111
- * to materialize in advance.
112
- *
113
- * Increase this value if blank space becomes visible during fast scrolling.
114
- *
115
- * Default: 400px.
116
- */
117
- lookaheadPx?: number;
118
- /**
119
- * Used with `virtualizeRows`. Additional margin around the viewport before
120
- * materialized rows become eligible for virtualization.
121
- *
122
- * Increasing this value reduces row churn when heights are underestimated.
123
- * In that case, the table may materialize more rows than needed and then immediately
124
- * virtualize them again. A larger margin keeps such rows rendered for longer,
125
- * at the cost of rendering more rows overall.
126
- *
127
- * This value should be greater than `lookaheadPx`.
128
- * Increase it if you notice table relayouts during initial render or scrolling.
129
- *
130
- * Default: 450px.
131
- */
132
- retentionMarginPx?: number;
133
- /**
134
- * When using `virtualizeRows`, ignore scroll and resize position changes
135
- * smaller than this value.
136
- *
137
- * Measurement inaccuracies and rounding artifacts may slightly change the
138
- * table layout during materialization and virtualization. With scroll
139
- * anchoring enabled (the default browser behavior), the browser may then
140
- * adjust the scroll position, triggering additional scroll or resize events.
141
- * Small deltas are ignored to prevent such feedback loops from causing
142
- * oscillations at virtualization boundaries.
143
- *
144
- * Increase if you expect high inaccuracy in height measurements, or if you
145
- * notice oscillations at virtualization boundaries.
146
- *
147
- * Default: 50px.
148
- */
149
- minScrollAndResizeDeltaPx?: number;
150
- /**
151
- * Whether to show a small gear button at the top right corner.
152
- */
153
- columnEditButton?: 'everywhere' | 'mobileOnly';
154
- /**
155
- * Optional ref to install on the table element.
156
- */
157
- ref?: RefObject<HTMLTableElement | null>;
158
- /**
159
- * Applied to the `<thead>` element.
160
- */
161
- theadClassName?: string;
162
- /**
163
- * Applied to the only `<tr>` element within the `<thead>`.
164
- */
165
- theadTrClassName?: string;
166
- /**
167
- * Applied to the `<tbody>` element.
168
- */
169
- tbodyClassName?: string;
170
- }
171
- export type SortOrder = 'none' | 'ascending' | 'descending';
1
+ import React, { type ComponentPropsWithRef } from 'react';
2
+ import type { TableProps } from './table-props';
172
3
  /**
173
- * The column specification.
4
+ * Table component replacing the tables in the `legacy-table` folder.
5
+ *
6
+ * This documentation provides an overview of the most common usage patterns.
7
+ * See individual props and exported components for detailed behavior.
8
+ *
9
+ * ## Minimal usage
10
+ *
11
+ * You need the following props:
12
+ * - `data`
13
+ * - `getKey`
14
+ * - `columns`
15
+ * - `key`
16
+ * - `name` (optional but needed in most cases)
17
+ * - `renderCell` (optional but needed in most cases)
18
+ *
19
+ * ## Item rendering
20
+ *
21
+ * If `renderItem` is not specified, each item is rendered using
22
+ * `DefaultItemRenderer` (from `table/default-item-renderer`)
23
+ * as if the following code were used:
24
+ *
25
+ * ```tsx
26
+ * <Table
27
+ * renderItem={(_item, index, _items) => (
28
+ * <DefaultItemRenderer index={index} />
29
+ * )}
30
+ * />
31
+ * ```
32
+ *
33
+ * `DefaultItemRenderer` renders a table row using the column definitions
34
+ * (`Column.renderCell`) and provides built-in support for features such as
35
+ * selection, keyboard navigation, and virtualization. It also accepts all
36
+ * standard `tr` attributes, including `ref`.
37
+ *
38
+ * Use `renderItem` to configure `DefaultItemRenderer` for each item:
39
+ *
40
+ * ```tsx
41
+ * <Table
42
+ * renderItem={(item, index, items) => (
43
+ * <DefaultItemRenderer
44
+ * index={index}
45
+ * keyboardFocusable
46
+ * className='my-item'
47
+ * onClick={e => handleClick(e, item, items)}
48
+ * />
49
+ * )}
50
+ * />
51
+ * ```
52
+ *
53
+ * If you need complete control over rendering, `renderItem` can instead
54
+ * return your own table rows. See "Custom item rendering" below.
55
+ *
56
+ * ## Selection
57
+ *
58
+ * Selection is typically implemented using the following props
59
+ * of the `DefaultItemRenderer`:
60
+ *
61
+ * - `clickable`
62
+ * - `selected`
63
+ * - `onClick` or `onPointerUp`, etc.
64
+ *
65
+ * The following utilities (from `global`) may come in handy:
66
+ *
67
+ * - `TableSelection` class to manage selection state
68
+ * - An alternative approach is to keep a `selected` field on each item
69
+ * - `isWithinInteractiveElement()` to check if a click was made on a control
70
+ * or on "empty space"
71
+ *
72
+ * ```tsx
73
+ * <Table
74
+ * renderItem={(item, index) => (
75
+ * <DefaultItemRenderer
76
+ * index={index}
77
+ * clickable
78
+ * selected={selection.isSelected(item)}
79
+ * onClick={e => {
80
+ * if (!isWithinInteractiveElement(e)) {
81
+ * setSelection(selection.toggleSelection(item));
82
+ * }
83
+ * }}
84
+ * />
85
+ * )}
86
+ * />
87
+ * ```
88
+ *
89
+ * Note that for accessibility reasons, you should have a cell with a checkbox
90
+ * to display and toggle item selection.
91
+ *
92
+ * ## Rows focus
93
+ *
94
+ * The table implements the ["roving tabindex"](https://developer.mozilla.org/en-US/docs/Web/Accessibility/Guides/Keyboard-navigable_JavaScript_widgets#technique_1_roving_tabindex)
95
+ * technique to focus rows with the up/down arrow keys.
96
+ * Rows can also be focused on click or other pointer events.
97
+ * To support it, use the following props of the `DefaultItemRenderer`:
98
+ *
99
+ * - `keyboardFocusable`
100
+ * - `clickable`, if you want to react to hover
101
+ * - `onClick`, if you want to focus on click
102
+ *
103
+ * Useful utils:
104
+ * - `focusWithTemporaryTabIndex()` from `global` to focus a row temporarily
105
+ * patching its `tabindex`.
106
+ *
107
+ * ```tsx
108
+ * <Table
109
+ * renderItem={(item, index) => (
110
+ * <DefaultItemRenderer
111
+ * index={index}
112
+ * clickable
113
+ * keyboardFocusable
114
+ * onClick={e => {
115
+ * if (!isWithinInteractiveElement(e)) {
116
+ * focusWithTemporaryTabIndex(e.currentTarget);
117
+ * }
118
+ * }}
119
+ * />
120
+ * )}
121
+ * />
122
+ * ```
123
+ *
124
+ * Note that the table does not implement standard accessibility patterns such
125
+ * as `grid` or `treegrid`, so row focus is not announced by screen readers.
126
+ * Make sure all essential actions remain available without row focus, for
127
+ * example via standard Tab navigation.
128
+ *
129
+ * ## Sorting
130
+ *
131
+ * You need the following to support sorting:
132
+ *
133
+ * - Set `Column.sortOrder` to `'none'`, `'ascending'` or `'descending'`
134
+ * to render the sort button, `aria-sort`, and indicate the current
135
+ * sort order.
136
+ * - Handle `TableProps.onSort` callback in the client code.
137
+ *
138
+ * ## Deleting columns
139
+ *
140
+ * You need the following to support deleting columns:
141
+ *
142
+ * - Set `Column.deletable` to `true`. This will render a delete button in the
143
+ * column header.
144
+ * - Make sure the `column` has a proper `name` or `key` prop, which will be
145
+ * automatically included in the aria-label of the column delete button.
146
+ * - Handle `TableProps.onColumnDelete` callback in the client code. It is
147
+ * expected to update `columns` by removing the corresponding column.
148
+ *
149
+ * ## Moving columns
150
+ *
151
+ * - Set `Column.canReorder` to `true` or to predicate specifying possible
152
+ * insertion targets.
153
+ * This will render a reorder button in the column header.
154
+ * - Make sure the `column` has a proper `name` or `key` prop, which will be
155
+ * automatically included in the aria-label of the column reorder button.
156
+ * - Handle `TableProps.onColumnReorder` callback in the client code. It is
157
+ * expected to update `columns` by moving the corresponding column to the
158
+ * new position.
159
+ *
160
+ * ## Row virtualization
161
+ *
162
+ * To render only rows near the viewport while replacing off-screen rows with
163
+ * spacers, use:
164
+ *
165
+ * - `virtualizeRows` prop set to `true`
166
+ * - `scrollerRef` — required when the scrollable container is not the whole
167
+ * document
168
+ * - `estimateHeight` — recommended when rows are expected to be taller than
169
+ * the default height (e.g. multiline or custom content)
170
+ * - Fine-tuning props: `lookaheadPx`, `retentionMarginPx`,
171
+ * `minScrollAndResizeDeltaPx`
172
+ *
173
+ * ## Custom item rendering
174
+ *
175
+ * Use the `renderItem` prop to render an item in a completely custom way.
176
+ * The prop is expected to return one or more table rows for the item.
177
+ * Use `TableRow` and `TableCell` from `table/table-primitives` to apply
178
+ * the default row and cell styles.
179
+ *
180
+ * ### Focus
181
+ *
182
+ * Just like `DefaultItemRenderer`, `TableRow` accepts the
183
+ * `keyboardFocusable` prop.
184
+ *
185
+ * Focusable rows rendered by either component form a single keyboard
186
+ * navigation sequence.
187
+ *
188
+ * ### Virtualization
189
+ *
190
+ * If `Table.virtualizeRows` is set to `true`, you need to handle visibility
191
+ * for your custom-rendered component yourself with the
192
+ * `useItemVirtualization()` hook (from `table/item-virtualization`). The hook
193
+ * allows observing the intersection of one or multiple elements rendered for
194
+ * the item, and, based on their intersection status, reporting the item as
195
+ * eligible for virtualization.
196
+ *
197
+ * If you use `DefaultItemRenderer` as part of your custom row renderer,
198
+ * set the `noItemVirtualization` prop to `true`, otherwise it will also try
199
+ * to control the virtualization, possibly reporting incorrect item height.
200
+ *
201
+ * ### Column reorder animation
202
+ *
203
+ * Default-rendered rows highlight the column that was just reordered. To apply
204
+ * the same animation to your custom-rendered rows, use `ColumnAnimationContext`
205
+ * (from `table/table-const`) to get information about the currently animated column.
174
206
  */
175
- export interface Column<T> {
176
- /**
177
- * Used to render a row key, e.g. `<thead><tr><td key={getKey(item, index)}...</td></tr></thead>`.
178
- */
179
- key: React.Key;
180
- /**
181
- * Used in aria-labels of controls which do not contain text,
182
- * e.g. `DeleteColumnButton`. If not set, the `String(key)` is used.
183
- */
184
- name?: string;
185
- /**
186
- * Default: name ?? String(key)
187
- */
188
- renderHeader?: () => ReactNode;
189
- /**
190
- * Renders a single cell value for a column.
191
- * Default:
192
- * - If item is an Array, renders `String(item[columnIndex])`
193
- * - If item is an Object, renders `Object.values(item)[columnIndex]`
194
- * - Otherwise:
195
- * - The first column renders `String(item)`
196
- * - Other columns render empty value
197
- */
198
- renderCell?: (item: T, index: number, items: T[]) => ReactNode;
199
- /**
200
- * If the column gets an indent when `TableProps.getItemLevel()` returns
201
- * a positive number.
202
- */
203
- indent?: boolean;
204
- /**
205
- * The current sort order displayed by `SortButton` and indicated
206
- * by `aria-sort` in `th`.
207
- *
208
- * - `undefined` or not set means that the column is not sortable,
209
- * and it shouldn't have a `SortButton`.
210
- * - `none` means that the column is sortable, but currently not sorted.
211
- * It should include a `SortButton`.
212
- * - `ascending` and `descending` mean that the column is sorted
213
- * in the corresponding order, and it should include a `SortButton`.
214
- */
215
- sortOrder?: SortOrder;
216
- /**
217
- * The classname to apply to the `th` element inside `table / thead`.
218
- */
219
- thClassName?: string;
220
- /**
221
- * The classname to apply to the `td` element inside `table / tbody`.
222
- * If a custom `TableProps.renderItem` is provided, this prop is not used,
223
- * unless the custom renderer falls back to `DefaultItemRenderer`.
224
- */
225
- tdClassName?: (item: T, index: number, items: T[]) => string | undefined;
226
- }
207
+ export default function Table<T>(props: TableProps<T> & ComponentPropsWithRef<'table'>): React.JSX.Element;