@carbon/react 1.85.1 → 1.86.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 (189) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +842 -842
  2. package/es/components/AILabel/index.js +1 -1
  3. package/es/components/Accordion/AccordionItem.d.ts +1 -1
  4. package/es/components/Accordion/AccordionItem.js +1 -1
  5. package/es/components/Checkbox/Checkbox.js +1 -1
  6. package/es/components/CheckboxGroup/CheckboxGroup.js +1 -1
  7. package/es/components/CodeSnippet/CodeSnippet.d.ts +2 -2
  8. package/es/components/CodeSnippet/CodeSnippet.js +1 -1
  9. package/es/components/ComboBox/ComboBox.js +1 -1
  10. package/es/components/ComposedModal/ComposedModal.js +1 -1
  11. package/es/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
  12. package/es/components/ContentSwitcher/ContentSwitcher.js +1 -1
  13. package/es/components/DataTable/DataTable.d.ts +230 -170
  14. package/es/components/DataTable/DataTable.js +508 -519
  15. package/es/components/DataTable/TableContainer.d.ts +9 -1
  16. package/es/components/DataTable/TableContainer.js +7 -1
  17. package/es/components/DataTable/TableExpandHeader.d.ts +1 -1
  18. package/es/components/DataTable/TableExpandHeader.js +1 -1
  19. package/es/components/DataTable/TableSelectAll.d.ts +2 -2
  20. package/es/components/DataTable/TableSelectAll.js +1 -1
  21. package/es/components/DataTable/TableSelectRow.d.ts +2 -2
  22. package/es/components/DataTable/TableSelectRow.js +1 -1
  23. package/es/components/DataTable/TableToolbar.d.ts +1 -1
  24. package/es/components/DataTable/TableToolbar.js +1 -1
  25. package/es/components/DataTable/TableToolbarMenu.d.ts +2 -18
  26. package/es/components/DataTable/TableToolbarMenu.js +0 -1
  27. package/es/components/DataTable/index.d.ts +1 -1
  28. package/es/components/DataTable/state/getDerivedStateFromProps.js +5 -1
  29. package/es/components/DatePicker/DatePicker.js +1 -1
  30. package/es/components/DatePickerInput/DatePickerInput.js +1 -1
  31. package/es/components/Dropdown/Dropdown.js +1 -1
  32. package/es/components/FeatureFlags/index.d.ts +2 -2
  33. package/es/components/FeatureFlags/index.js +1 -1
  34. package/es/components/FileUploader/FileUploaderButton.d.ts +1 -1
  35. package/es/components/FileUploader/FileUploaderButton.js +1 -1
  36. package/es/components/FileUploader/FileUploaderDropContainer.d.ts +2 -2
  37. package/es/components/FileUploader/FileUploaderDropContainer.js +1 -1
  38. package/es/components/FluidTextArea/FluidTextArea.d.ts +1 -1
  39. package/es/components/FluidTextArea/FluidTextArea.js +1 -1
  40. package/es/components/InlineCheckbox/InlineCheckbox.js +1 -1
  41. package/es/components/ListBox/ListBox.js +1 -1
  42. package/es/components/Loading/Loading.d.ts +1 -1
  43. package/es/components/Loading/Loading.js +1 -1
  44. package/es/components/Menu/Menu.js +1 -1
  45. package/es/components/Modal/Modal.js +1 -1
  46. package/es/components/MultiSelect/FilterableMultiSelect.js +2 -2
  47. package/es/components/MultiSelect/MultiSelect.js +1 -1
  48. package/es/components/Notification/Notification.d.ts +4 -4
  49. package/es/components/Notification/Notification.js +1 -1
  50. package/es/components/NumberInput/NumberInput.d.ts +7 -0
  51. package/es/components/NumberInput/NumberInput.js +80 -25
  52. package/es/components/OverflowMenu/OverflowMenu.d.ts +2 -6
  53. package/es/components/OverflowMenu/OverflowMenu.js +1 -1
  54. package/es/components/Pagination/Pagination.js +22 -5
  55. package/es/components/RadioButton/RadioButton.js +1 -1
  56. package/es/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  57. package/es/components/RadioTile/RadioTile.js +1 -1
  58. package/es/components/Search/Search.js +1 -1
  59. package/es/components/Select/Select.js +1 -1
  60. package/es/components/Slider/Slider.js +1 -1
  61. package/es/components/StructuredList/StructuredList.d.ts +5 -5
  62. package/es/components/StructuredList/StructuredList.js +1 -1
  63. package/es/components/Tabs/Tabs.d.ts +1 -1
  64. package/es/components/Tabs/Tabs.js +1 -1
  65. package/es/components/Tag/DismissibleTag.js +1 -1
  66. package/es/components/Tag/Tag.js +1 -1
  67. package/es/components/TextArea/TextArea.js +1 -1
  68. package/es/components/TextInput/ControlledPasswordInput.js +1 -1
  69. package/es/components/TextInput/PasswordInput.js +1 -1
  70. package/es/components/TextInput/TextInput.js +1 -1
  71. package/es/components/Tile/Tile.js +1 -1
  72. package/es/components/TileGroup/TileGroup.d.ts +5 -5
  73. package/es/components/TimePicker/TimePicker.d.ts +8 -0
  74. package/es/components/TimePicker/TimePicker.js +6 -4
  75. package/es/components/Tooltip/DefinitionTooltip.d.ts +1 -1
  76. package/es/components/Tooltip/DefinitionTooltip.js +1 -1
  77. package/es/components/TreeView/TreeContext.d.ts +19 -0
  78. package/es/components/TreeView/TreeContext.js +13 -0
  79. package/es/components/TreeView/TreeNode.d.ts +4 -4
  80. package/es/components/TreeView/TreeNode.js +56 -108
  81. package/es/components/TreeView/TreeView.js +42 -79
  82. package/es/components/UIShell/HeaderMenu.js +1 -1
  83. package/es/components/UIShell/HeaderMenuItem.d.ts +1 -1
  84. package/es/components/UIShell/HeaderMenuItem.js +1 -1
  85. package/es/components/UIShell/HeaderName.d.ts +1 -1
  86. package/es/components/UIShell/Link.d.ts +2 -2
  87. package/es/components/UIShell/Link.js +1 -1
  88. package/es/components/UIShell/Switcher.d.ts +1 -1
  89. package/es/components/UIShell/Switcher.js +39 -12
  90. package/es/index.js +1 -1
  91. package/es/internal/useNoInteractiveChildren.d.ts +25 -0
  92. package/es/internal/useNoInteractiveChildren.js +39 -32
  93. package/es/prop-types/deprecate.d.ts +17 -0
  94. package/es/prop-types/deprecate.js +22 -12
  95. package/lib/components/AILabel/index.js +2 -2
  96. package/lib/components/Accordion/AccordionItem.d.ts +1 -1
  97. package/lib/components/Accordion/AccordionItem.js +1 -1
  98. package/lib/components/Checkbox/Checkbox.js +1 -1
  99. package/lib/components/CheckboxGroup/CheckboxGroup.js +1 -1
  100. package/lib/components/CodeSnippet/CodeSnippet.d.ts +2 -2
  101. package/lib/components/CodeSnippet/CodeSnippet.js +2 -2
  102. package/lib/components/ComboBox/ComboBox.js +3 -3
  103. package/lib/components/ComposedModal/ComposedModal.js +1 -1
  104. package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +1 -1
  105. package/lib/components/ContentSwitcher/ContentSwitcher.js +1 -1
  106. package/lib/components/DataTable/DataTable.d.ts +230 -170
  107. package/lib/components/DataTable/DataTable.js +507 -518
  108. package/lib/components/DataTable/TableContainer.d.ts +9 -1
  109. package/lib/components/DataTable/TableContainer.js +7 -1
  110. package/lib/components/DataTable/TableExpandHeader.d.ts +1 -1
  111. package/lib/components/DataTable/TableExpandHeader.js +1 -1
  112. package/lib/components/DataTable/TableSelectAll.d.ts +2 -2
  113. package/lib/components/DataTable/TableSelectAll.js +1 -1
  114. package/lib/components/DataTable/TableSelectRow.d.ts +2 -2
  115. package/lib/components/DataTable/TableSelectRow.js +1 -1
  116. package/lib/components/DataTable/TableToolbar.d.ts +1 -1
  117. package/lib/components/DataTable/TableToolbar.js +1 -1
  118. package/lib/components/DataTable/TableToolbarMenu.d.ts +2 -18
  119. package/lib/components/DataTable/TableToolbarMenu.js +0 -1
  120. package/lib/components/DataTable/index.d.ts +1 -1
  121. package/lib/components/DataTable/state/getDerivedStateFromProps.js +5 -1
  122. package/lib/components/DatePicker/DatePicker.js +1 -1
  123. package/lib/components/DatePickerInput/DatePickerInput.js +1 -1
  124. package/lib/components/Dropdown/Dropdown.js +3 -3
  125. package/lib/components/FeatureFlags/index.d.ts +2 -2
  126. package/lib/components/FeatureFlags/index.js +1 -1
  127. package/lib/components/FileUploader/FileUploaderButton.d.ts +1 -1
  128. package/lib/components/FileUploader/FileUploaderButton.js +1 -1
  129. package/lib/components/FileUploader/FileUploaderDropContainer.d.ts +2 -2
  130. package/lib/components/FileUploader/FileUploaderDropContainer.js +2 -2
  131. package/lib/components/FluidTextArea/FluidTextArea.d.ts +1 -1
  132. package/lib/components/FluidTextArea/FluidTextArea.js +1 -1
  133. package/lib/components/InlineCheckbox/InlineCheckbox.js +1 -1
  134. package/lib/components/ListBox/ListBox.js +1 -1
  135. package/lib/components/Loading/Loading.d.ts +1 -1
  136. package/lib/components/Loading/Loading.js +1 -1
  137. package/lib/components/Menu/Menu.js +1 -1
  138. package/lib/components/Modal/Modal.js +1 -1
  139. package/lib/components/MultiSelect/FilterableMultiSelect.js +5 -5
  140. package/lib/components/MultiSelect/MultiSelect.js +2 -2
  141. package/lib/components/Notification/Notification.d.ts +4 -4
  142. package/lib/components/Notification/Notification.js +4 -4
  143. package/lib/components/NumberInput/NumberInput.d.ts +7 -0
  144. package/lib/components/NumberInput/NumberInput.js +81 -26
  145. package/lib/components/OverflowMenu/OverflowMenu.d.ts +2 -6
  146. package/lib/components/OverflowMenu/OverflowMenu.js +2 -2
  147. package/lib/components/Pagination/Pagination.js +21 -4
  148. package/lib/components/RadioButton/RadioButton.js +1 -1
  149. package/lib/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
  150. package/lib/components/RadioTile/RadioTile.js +2 -2
  151. package/lib/components/Search/Search.js +1 -1
  152. package/lib/components/Select/Select.js +2 -2
  153. package/lib/components/Slider/Slider.js +1 -1
  154. package/lib/components/StructuredList/StructuredList.d.ts +5 -5
  155. package/lib/components/StructuredList/StructuredList.js +4 -4
  156. package/lib/components/Tabs/Tabs.d.ts +1 -1
  157. package/lib/components/Tabs/Tabs.js +1 -1
  158. package/lib/components/Tag/DismissibleTag.js +1 -1
  159. package/lib/components/Tag/Tag.js +4 -4
  160. package/lib/components/TextArea/TextArea.js +2 -2
  161. package/lib/components/TextInput/ControlledPasswordInput.js +1 -1
  162. package/lib/components/TextInput/PasswordInput.js +1 -1
  163. package/lib/components/TextInput/TextInput.js +2 -2
  164. package/lib/components/Tile/Tile.js +9 -9
  165. package/lib/components/TileGroup/TileGroup.d.ts +5 -5
  166. package/lib/components/TimePicker/TimePicker.d.ts +8 -0
  167. package/lib/components/TimePicker/TimePicker.js +6 -4
  168. package/lib/components/Tooltip/DefinitionTooltip.d.ts +1 -1
  169. package/lib/components/Tooltip/DefinitionTooltip.js +1 -1
  170. package/lib/components/TreeView/TreeContext.d.ts +19 -0
  171. package/lib/components/TreeView/TreeContext.js +18 -0
  172. package/lib/components/TreeView/TreeNode.d.ts +4 -4
  173. package/lib/components/TreeView/TreeNode.js +55 -107
  174. package/lib/components/TreeView/TreeView.js +41 -78
  175. package/lib/components/UIShell/HeaderMenu.js +1 -1
  176. package/lib/components/UIShell/HeaderMenuItem.d.ts +1 -1
  177. package/lib/components/UIShell/HeaderMenuItem.js +1 -1
  178. package/lib/components/UIShell/HeaderName.d.ts +1 -1
  179. package/lib/components/UIShell/Link.d.ts +2 -2
  180. package/lib/components/UIShell/Link.js +1 -1
  181. package/lib/components/UIShell/Switcher.d.ts +1 -1
  182. package/lib/components/UIShell/Switcher.js +38 -11
  183. package/lib/index.js +1 -1
  184. package/lib/internal/useNoInteractiveChildren.d.ts +25 -0
  185. package/lib/internal/useNoInteractiveChildren.js +39 -32
  186. package/lib/prop-types/deprecate.d.ts +17 -0
  187. package/lib/prop-types/deprecate.js +22 -12
  188. package/package.json +3 -3
  189. package/telemetry.yml +15 -14
@@ -4,30 +4,9 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import React, { Component, type ChangeEvent, type MouseEvent, type ReactElement, type ReactNode } from 'react';
7
+ import PropTypes from 'prop-types';
8
+ import React, { type ChangeEvent, type MouseEvent, type ReactElement, type ReactNode } from 'react';
8
9
  import type { DataTableSortState } from './state/sortStates';
9
- import Table from './Table';
10
- import TableActionList from './TableActionList';
11
- import TableBatchAction from './TableBatchAction';
12
- import TableBatchActions from './TableBatchActions';
13
- import TableBody from './TableBody';
14
- import TableCell from './TableCell';
15
- import TableContainer from './TableContainer';
16
- import TableDecoratorRow from './TableDecoratorRow';
17
- import TableExpandHeader from './TableExpandHeader';
18
- import TableExpandRow from './TableExpandRow';
19
- import TableExpandedRow from './TableExpandedRow';
20
- import TableHead from './TableHead';
21
- import TableHeader from './TableHeader';
22
- import TableRow from './TableRow';
23
- import TableSelectAll from './TableSelectAll';
24
- import TableSelectRow from './TableSelectRow';
25
- import TableSlugRow from './TableSlugRow';
26
- import TableToolbar from './TableToolbar';
27
- import TableToolbarAction from './TableToolbarAction';
28
- import TableToolbarContent from './TableToolbarContent';
29
- import TableToolbarSearch from './TableToolbarSearch';
30
- import TableToolbarMenu from './TableToolbarMenu';
31
10
  import { TranslateWithId } from '../../types/common';
32
11
  declare const translationKeys: {
33
12
  readonly expandRow: "carbon.table.row.expand";
@@ -213,17 +192,6 @@ export interface DataTableProps<RowType, ColTypes extends any[]> extends Transla
213
192
  useStaticWidth?: boolean;
214
193
  useZebraStyles?: boolean;
215
194
  }
216
- interface DataTableState<ColTypes extends any[]> {
217
- cellsById: Record<string, DataTableCell<ColTypes>>;
218
- filterInputValue: string | null;
219
- initialRowOrder: string[];
220
- isExpandedAll: boolean;
221
- rowIds: string[];
222
- rowsById: Record<string, DataTableRow<ColTypes>>;
223
- shouldShowBatchActions: boolean;
224
- sortDirection: DataTableSortState;
225
- sortHeaderKey: string | null;
226
- }
227
195
  /**
228
196
  * Data Tables are used to represent a collection of resources, displaying a
229
197
  * subset of their fields in columns, or headers. We prioritize direct updates
@@ -234,139 +202,231 @@ interface DataTableState<ColTypes extends any[]> {
234
202
  * and updating the state of the single entity will cascade updates to the
235
203
  * consumer.
236
204
  */
237
- declare class DataTable<RowType, ColTypes extends any[]> extends Component<DataTableProps<RowType, ColTypes>, DataTableState<ColTypes>> {
238
- instanceId: number;
239
- static translationKeys: ("carbon.table.row.expand" | "carbon.table.row.collapse" | "carbon.table.all.expand" | "carbon.table.all.collapse" | "carbon.table.all.select" | "carbon.table.all.unselect" | "carbon.table.row.select" | "carbon.table.row.unselect")[];
240
- static Table: typeof Table;
241
- static TableActionList: typeof TableActionList;
242
- static TableBatchAction: typeof TableBatchAction;
243
- static TableBatchActions: typeof TableBatchActions;
244
- static TableBody: typeof TableBody;
245
- static TableCell: typeof TableCell;
246
- static TableContainer: typeof TableContainer;
247
- static TableDecoratorRow: typeof TableDecoratorRow;
248
- static TableExpandHeader: typeof TableExpandHeader;
249
- static TableExpandRow: typeof TableExpandRow;
250
- static TableExpandedRow: typeof TableExpandedRow;
251
- static TableHead: typeof TableHead;
252
- static TableHeader: typeof TableHeader;
253
- static TableRow: typeof TableRow;
254
- static TableSelectAll: typeof TableSelectAll;
255
- static TableSelectRow: typeof TableSelectRow;
256
- static TableSlugRow: typeof TableSlugRow;
257
- static TableToolbar: typeof TableToolbar;
258
- static TableToolbarAction: typeof TableToolbarAction;
259
- static TableToolbarContent: typeof TableToolbarContent;
260
- static TableToolbarSearch: typeof TableToolbarSearch;
261
- static TableToolbarMenu: typeof TableToolbarMenu;
262
- private readonly rp;
263
- constructor(props: DataTableProps<RowType, ColTypes>);
264
- shouldComponentUpdate(nextProps: DataTableProps<RowType, ColTypes>): boolean;
265
- /**
266
- * Get the props associated with the given header. Mostly used for adding in
267
- * sorting behavior.
268
- */
269
- getHeaderProps: (typeof this.rp)['getHeaderProps'];
270
- /**
271
- * Get the props associated with the given expand header.
272
- */
273
- getExpandHeaderProps: (typeof this.rp)['getExpandHeaderProps'];
274
- /**
275
- * Decorate consumer's `onClick` event handler with sort parameters
276
- */
277
- handleOnHeaderClick: (onClick: (event: MouseEvent<HTMLButtonElement>, sortParams: {
278
- sortHeaderKey: string;
279
- sortDirection: DataTableSortState;
280
- }) => void, sortParams: {
281
- sortHeaderKey: string;
282
- sortDirection: DataTableSortState;
283
- }) => (event: MouseEvent<HTMLButtonElement>) => void;
284
- /**
285
- * Decorate consumer's `onClick` event handler with expand parameters
286
- */
287
- handleOnExpandHeaderClick: (onClick: (event: MouseEvent<HTMLButtonElement>, expandParams: {
288
- isExpanded: boolean;
289
- }) => void, expandParams: {
290
- isExpanded: boolean;
291
- }) => (event: MouseEvent<HTMLButtonElement>) => void;
292
- /**
293
- * Get the props associated with the given row. Mostly used for expansion.
294
- */
295
- getRowProps: (typeof this.rp)['getRowProps'];
296
- /**
297
- * Get the props associated with an expanded row
298
- */
299
- getExpandedRowProps: (typeof this.rp)['getExpandedRowProps'];
300
- /**
301
- * Gets the props associated with selection for a header or a row, where
302
- * applicable. Most often used to indicate selection status of the table or
303
- * for a specific row.
304
- */
305
- getSelectionProps: (typeof this.rp)['getSelectionProps'];
306
- getToolbarProps: (typeof this.rp)['getToolbarProps'];
307
- getBatchActionProps: (typeof this.rp)['getBatchActionProps'];
308
- getTableProps: (typeof this.rp)['getTableProps'];
309
- getTableContainerProps: (typeof this.rp)['getTableContainerProps'];
310
- /**
311
- * Get the props associated with the given table cell.
312
- */
313
- getCellProps: (typeof this.rp)['getCellProps'];
314
- /**
315
- * Helper utility to get all the currently selected rows
316
- *
317
- * @returns the array of rowIds that are currently selected
318
- */
319
- getSelectedRows: () => string[];
320
- /**
321
- * Helper utility to get all of the available rows after applying the filter
322
- *
323
- * @returns the array of rowIds that are currently included through the filter
324
- */
325
- getFilteredRowIds: () => string[];
326
- /**
327
- * Helper for getting the table prefix for elements that require an
328
- * `id` attribute that is unique.
329
- */
330
- getTablePrefix: () => string;
331
- /**
332
- * Helper for toggling all selected items in a state. Does not call
333
- * setState, so use it when setting state.
334
- *
335
- * @returns object to put into this.setState (use spread operator)
336
- */
337
- setAllSelectedState: (initialState: DataTableState<ColTypes>, isSelected: boolean, filteredRowIds: string[]) => Pick<DataTableState<ColTypes>, "rowsById">;
338
- /**
339
- * Handler for the `onCancel` event to hide the batch action bar and
340
- * deselect all selected rows
341
- */
342
- handleOnCancel: () => void;
343
- /**
344
- * Handler for toggling the selection state of all rows in the database
345
- */
346
- handleSelectAll: () => void;
347
- /**
348
- * Handler for toggling the selection state of a given row.
349
- */
350
- handleOnSelectRow: (rowId: string) => () => void;
351
- /**
352
- * Handler for toggling the expansion state of a given row.
353
- */
354
- handleOnExpandRow: (rowId: string) => () => void;
355
- /**
356
- * Handler for changing the expansion state of all rows.
357
- */
358
- handleOnExpandAll: () => void;
359
- /**
360
- * Handler for transitioning to the next sort state of the table
361
- *
362
- * @param headerKey - The field for the header that we are sorting by.
363
- */
364
- handleSortBy: (headerKey: string) => () => void;
365
- /**
366
- * Event handler for transitioning input value state changes for the table
367
- * filter component.
368
- */
369
- handleOnInputValueChange: (event: ChangeEvent<HTMLInputElement>, defaultValue?: string) => void;
370
- render(): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
371
- }
372
- export default DataTable;
205
+ export declare const DataTable: {
206
+ <RowType, ColTypes extends any[]>(props: DataTableProps<RowType, ColTypes>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
207
+ translationKeys: ("carbon.table.row.expand" | "carbon.table.row.collapse" | "carbon.table.all.expand" | "carbon.table.all.collapse" | "carbon.table.all.select" | "carbon.table.all.unselect" | "carbon.table.row.select" | "carbon.table.row.unselect")[];
208
+ Table: {
209
+ ({ className, children, useZebraStyles, size, isSortable, useStaticWidth, stickyHeader, overflowMenuOnHover, experimentalAutoAlign, tabIndex, ...other }: React.PropsWithChildren<import("./Table").TableProps>): import("react/jsx-runtime").JSX.Element;
210
+ propTypes: {
211
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
212
+ className: PropTypes.Requireable<string>;
213
+ experimentalAutoAlign: PropTypes.Requireable<boolean>;
214
+ isSortable: PropTypes.Requireable<boolean>;
215
+ overflowMenuOnHover: PropTypes.Requireable<boolean>;
216
+ size: PropTypes.Requireable<string>;
217
+ stickyHeader: PropTypes.Requireable<boolean>;
218
+ useStaticWidth: PropTypes.Requireable<boolean>;
219
+ useZebraStyles: PropTypes.Requireable<boolean>;
220
+ tabIndex: PropTypes.Requireable<number>;
221
+ };
222
+ };
223
+ TableActionList: (props: React.HTMLAttributes<"div">) => React.ReactElement<any>;
224
+ TableBatchAction: {
225
+ ({ renderIcon, iconDescription, ...props }: import("./TableBatchAction").TableBatchActionProps): import("react/jsx-runtime").JSX.Element;
226
+ propTypes: {
227
+ hasIconOnly: PropTypes.Requireable<boolean>;
228
+ iconDescription: (props: any) => Error | undefined;
229
+ renderIcon: PropTypes.Requireable<object>;
230
+ };
231
+ };
232
+ TableBatchActions: import("./TableBatchActions").TableBatchActionsComponent;
233
+ TableBody: {
234
+ ({ children, className, ...rest }: import("./TableBody").TableBodyProps): import("react/jsx-runtime").JSX.Element;
235
+ propTypes: {
236
+ 'aria-live': PropTypes.Requireable<string>;
237
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
238
+ className: PropTypes.Requireable<string>;
239
+ };
240
+ };
241
+ TableCell: React.ForwardRefExoticComponent<import("./TableCell").TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
242
+ TableContainer: {
243
+ ({ aiEnabled, className, children, title, description, stickyHeader, useStaticWidth, ...rest }: import("./TableContainer").TableContainerProps): import("react/jsx-runtime").JSX.Element;
244
+ propTypes: {
245
+ aiEnabled: PropTypes.Requireable<boolean>;
246
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
247
+ className: PropTypes.Requireable<string>;
248
+ description: PropTypes.Requireable<PropTypes.ReactNodeLike>;
249
+ stickyHeader: PropTypes.Requireable<boolean>;
250
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
251
+ useStaticWidth: PropTypes.Requireable<boolean>;
252
+ };
253
+ };
254
+ TableDecoratorRow: {
255
+ ({ className, decorator, }: import("./TableDecoratorRow").TableDecoratorRowProps): import("react/jsx-runtime").JSX.Element;
256
+ displayName: string;
257
+ propTypes: {
258
+ className: PropTypes.Requireable<string>;
259
+ decorator: PropTypes.Requireable<PropTypes.ReactNodeLike>;
260
+ };
261
+ };
262
+ TableExpandHeader: {
263
+ ({ ["aria-controls"]: ariaControls, ["aria-label"]: ariaLabel, ariaLabel: deprecatedAriaLabel, className: headerClassName, enableExpando, enableToggle, id, isExpanded, onExpand, expandIconDescription, children, ...rest }: import("./TableExpandHeader").TableExpandHeaderProps): import("react/jsx-runtime").JSX.Element;
264
+ propTypes: {
265
+ "aria-controls": PropTypes.Requireable<string>;
266
+ "aria-label": PropTypes.Requireable<string>;
267
+ ariaLabel: PropTypes.Requireable<string>;
268
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
269
+ className: PropTypes.Requireable<string>;
270
+ enableExpando: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
271
+ enableToggle: PropTypes.Requireable<boolean>;
272
+ expandIconDescription: PropTypes.Requireable<string>;
273
+ id: PropTypes.Requireable<string>;
274
+ isExpanded: React.Validator;
275
+ onExpand: PropTypes.Requireable<any>;
276
+ };
277
+ };
278
+ TableExpandRow: React.ForwardRefExoticComponent<import("./TableExpandRow").TableExpandRowProps & React.RefAttributes<HTMLTableCellElement>>;
279
+ TableExpandedRow: {
280
+ ({ className: customClassName, children, colSpan, ...rest }: import("./TableExpandedRow").TableExpandedRowProps): import("react/jsx-runtime").JSX.Element;
281
+ propTypes: {
282
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
283
+ className: PropTypes.Requireable<string>;
284
+ colSpan: PropTypes.Validator<number>;
285
+ };
286
+ };
287
+ TableHead: (props: React.HTMLAttributes<"thead">) => React.ReactElement<any>;
288
+ TableHeader: React.ForwardRefExoticComponent<import("./TableHeader").TableHeaderProps & React.RefAttributes<HTMLTableCellElement>>;
289
+ TableRow: React.ForwardRefExoticComponent<import("./TableRow").TableRowProps & React.RefAttributes<HTMLTableCellElement>>;
290
+ TableSelectAll: {
291
+ ({ ariaLabel: deprecatedAriaLabel, ["aria-label"]: ariaLabel, checked, id, indeterminate, name, onSelect, disabled, className, }: import("./TableSelectAll").TableSelectAllProps): import("react/jsx-runtime").JSX.Element;
292
+ propTypes: {
293
+ "aria-label": PropTypes.Requireable<string>;
294
+ ariaLabel: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
295
+ checked: PropTypes.Requireable<boolean>;
296
+ className: PropTypes.Requireable<string>;
297
+ disabled: PropTypes.Requireable<boolean>;
298
+ id: PropTypes.Validator<string>;
299
+ indeterminate: PropTypes.Requireable<boolean>;
300
+ name: PropTypes.Validator<string>;
301
+ onSelect: PropTypes.Validator<(...args: any[]) => any>;
302
+ };
303
+ };
304
+ TableSelectRow: {
305
+ ({ ariaLabel: deprecatedAriaLabel, ["aria-label"]: ariaLabel, checked, id, name, onSelect, onChange, disabled, radio, className, }: import("./TableSelectRow").TableSelectRowProps): import("react/jsx-runtime").JSX.Element;
306
+ propTypes: {
307
+ "aria-label": PropTypes.Requireable<string>;
308
+ ariaLabel: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
309
+ checked: PropTypes.Requireable<boolean>;
310
+ className: PropTypes.Requireable<string>;
311
+ disabled: PropTypes.Requireable<boolean>;
312
+ id: PropTypes.Validator<string>;
313
+ name: PropTypes.Validator<string>;
314
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
315
+ onSelect: PropTypes.Validator<(...args: any[]) => any>;
316
+ radio: PropTypes.Requireable<boolean>;
317
+ };
318
+ };
319
+ TableSlugRow: {
320
+ ({ className, slug }: import("./TableSlugRow").TableSlugRowProps): import("react/jsx-runtime").JSX.Element;
321
+ displayName: string;
322
+ propTypes: {
323
+ className: PropTypes.Requireable<string>;
324
+ slug: PropTypes.Requireable<PropTypes.ReactNodeLike>;
325
+ };
326
+ };
327
+ TableToolbar: React.FC<import("./TableToolbar").TableToolbarProps>;
328
+ TableToolbarAction: React.ForwardRefExoticComponent<import("./TableToolbarAction").TableToolbarActionProps & React.RefAttributes<HTMLDivElement>>;
329
+ TableToolbarContent: (props: React.HTMLAttributes<"div">) => React.ReactElement<any>;
330
+ TableToolbarSearch: {
331
+ ({ className, searchContainerClass, onChange: onChangeProp, onClear, translateWithId: t, placeholder, labelText, expanded: expandedProp, defaultExpanded, defaultValue, disabled, onExpand, persistent, id, onBlur, onFocus, size, tabIndex, ...rest }: import("./TableToolbarSearch").TableToolbarSearchProps): import("react/jsx-runtime").JSX.Element;
332
+ propTypes: {
333
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
334
+ className: PropTypes.Requireable<string>;
335
+ defaultExpanded: PropTypes.Requireable<boolean>;
336
+ defaultValue: PropTypes.Requireable<string>;
337
+ disabled: PropTypes.Requireable<boolean>;
338
+ expanded: PropTypes.Requireable<boolean>;
339
+ id: PropTypes.Requireable<string>;
340
+ labelText: PropTypes.Requireable<string>;
341
+ onBlur: PropTypes.Requireable<(...args: any[]) => any>;
342
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
343
+ onClear: PropTypes.Requireable<(...args: any[]) => any>;
344
+ onExpand: PropTypes.Requireable<(...args: any[]) => any>;
345
+ onFocus: PropTypes.Requireable<(...args: any[]) => any>;
346
+ persistent: PropTypes.Requireable<boolean>;
347
+ placeholder: PropTypes.Requireable<string>;
348
+ searchContainerClass: PropTypes.Requireable<string>;
349
+ size: PropTypes.Requireable<string>;
350
+ tabIndex: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
351
+ translateWithId: PropTypes.Requireable<(...args: any[]) => any>;
352
+ };
353
+ };
354
+ TableToolbarMenu: React.FC<import("./TableToolbarMenu").TableToolbarMenuProps>;
355
+ propTypes: {
356
+ /**
357
+ * Experimental property. Allows table to align cell contents to the top if there is text wrapping in the content. Might have performance issues, intended for smaller tables
358
+ */
359
+ experimentalAutoAlign: PropTypes.Requireable<boolean>;
360
+ /**
361
+ * Optional hook to manually control filtering of the rows from the
362
+ * TableToolbarSearch component
363
+ */
364
+ filterRows: PropTypes.Requireable<(...args: any[]) => any>;
365
+ /**
366
+ * The `headers` prop represents the order in which the headers should
367
+ * appear in the table. We expect an array of objects to be passed in, where
368
+ * `key` is the name of the key in a row object, and `header` is the name of
369
+ * the header.
370
+ */
371
+ headers: PropTypes.Validator<(PropTypes.InferProps<{
372
+ key: PropTypes.Validator<string>;
373
+ header: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
374
+ }> | null | undefined)[]>;
375
+ /**
376
+ * Specify whether the table should be able to be sorted by its headers
377
+ */
378
+ isSortable: PropTypes.Requireable<boolean>;
379
+ /**
380
+ * Provide a string for the current locale
381
+ */
382
+ locale: PropTypes.Requireable<string>;
383
+ /**
384
+ * Specify whether the overflow menu (if it exists) should be shown always, or only on hover
385
+ */
386
+ overflowMenuOnHover: PropTypes.Requireable<boolean>;
387
+ /**
388
+ * Specify whether the control should be a radio button or inline checkbox
389
+ */
390
+ radio: PropTypes.Requireable<boolean>;
391
+ /**
392
+ * The `rows` prop is where you provide us with a list of all the rows that
393
+ * you want to render in the table. The only hard requirement is that this
394
+ * is an array of objects, and that each object has a unique `id` field
395
+ * available on it.
396
+ */
397
+ rows: PropTypes.Validator<(PropTypes.InferProps<{
398
+ id: PropTypes.Validator<string>;
399
+ disabled: PropTypes.Requireable<boolean>;
400
+ isSelected: PropTypes.Requireable<boolean>;
401
+ isExpanded: PropTypes.Requireable<boolean>;
402
+ }> | null | undefined)[]>;
403
+ /**
404
+ * Change the row height of table. Currently supports `xs`, `sm`, `md`, `lg`, and `xl`.
405
+ */
406
+ size: PropTypes.Requireable<string>;
407
+ /**
408
+ * Optional hook to manually control sorting of the rows.
409
+ */
410
+ sortRow: PropTypes.Requireable<(...args: any[]) => any>;
411
+ /**
412
+ * Specify whether the header should be sticky.
413
+ * Still experimental: may not work with every combination of table props
414
+ */
415
+ stickyHeader: PropTypes.Requireable<boolean>;
416
+ /**
417
+ * Optional method that takes in a message id and returns an
418
+ * internationalized string. See `DataTable.translationKeys` for all
419
+ * available message ids.
420
+ */
421
+ translateWithId: PropTypes.Requireable<(...args: any[]) => any>;
422
+ /**
423
+ * `false` If true, will use a width of 'auto' instead of 100%
424
+ */
425
+ useStaticWidth: PropTypes.Requireable<boolean>;
426
+ /**
427
+ * `true` to add useZebraStyles striping.
428
+ */
429
+ useZebraStyles: PropTypes.Requireable<boolean>;
430
+ };
431
+ };
432
+ export {};