@carbon/react 1.90.0 → 1.91.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 (131) hide show
  1. package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +986 -926
  2. package/es/components/Breadcrumb/Breadcrumb.Skeleton.d.ts +27 -2
  3. package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +27 -4
  4. package/es/components/Breadcrumb/Breadcrumb.js +2 -1
  5. package/es/components/CodeSnippet/CodeSnippet.d.ts +1 -1
  6. package/es/components/CodeSnippet/CodeSnippet.js +1 -1
  7. package/es/components/ComboBox/ComboBox.js +1 -12
  8. package/es/components/ComboButton/index.js +1 -1
  9. package/es/components/ComposedModal/ComposedModal.js +1 -1
  10. package/es/components/ContentSwitcher/ContentSwitcher.js +2 -2
  11. package/es/components/Copy/Copy.d.ts +1 -1
  12. package/es/components/Copy/Copy.js +1 -1
  13. package/es/components/CopyButton/CopyButton.d.ts +1 -1
  14. package/es/components/CopyButton/CopyButton.js +1 -1
  15. package/es/components/DataTable/DataTable.d.ts +60 -15
  16. package/es/components/DataTable/DataTable.js +106 -179
  17. package/es/components/DataTable/Table.d.ts +2 -2
  18. package/es/components/DataTable/Table.js +1 -1
  19. package/es/components/DataTable/TableExpandHeader.d.ts +1 -1
  20. package/es/components/DataTable/TableExpandHeader.js +1 -1
  21. package/es/components/DatePicker/DatePicker.d.ts +0 -12
  22. package/es/components/DatePicker/DatePicker.js +3 -3
  23. package/es/components/DatePicker/plugins/rangePlugin.d.ts +19 -2
  24. package/es/components/DatePicker/plugins/rangePlugin.js +18 -14
  25. package/es/components/Dropdown/Dropdown.js +1 -12
  26. package/es/components/FeatureFlags/index.js +1 -0
  27. package/es/components/IconButton/index.js +1 -1
  28. package/es/components/Menu/MenuItem.d.ts +1 -1
  29. package/es/components/Menu/MenuItem.js +5 -5
  30. package/es/components/Modal/Modal.js +1 -1
  31. package/es/components/MultiSelect/FilterableMultiSelect.js +1 -1
  32. package/es/components/MultiSelect/MultiSelect.js +1 -12
  33. package/es/components/Notification/Notification.d.ts +6 -6
  34. package/es/components/Notification/Notification.js +6 -6
  35. package/es/components/OverflowMenu/OverflowMenu.js +1 -1
  36. package/es/components/OverflowMenu/next/index.js +1 -1
  37. package/es/components/PaginationNav/PaginationNav.d.ts +20 -0
  38. package/es/components/PaginationNav/PaginationNav.js +34 -5
  39. package/es/components/Popover/index.js +1 -1
  40. package/es/components/Search/Search.d.ts +4 -2
  41. package/es/components/Search/Search.js +5 -4
  42. package/es/components/Slider/Slider.d.ts +144 -188
  43. package/es/components/Slider/Slider.js +787 -710
  44. package/es/components/Slider/index.d.ts +2 -2
  45. package/es/components/Tabs/Tabs.d.ts +4 -0
  46. package/es/components/TextArea/TextArea.js +13 -6
  47. package/es/components/TextInput/ControlledPasswordInput.js +2 -2
  48. package/es/components/TextInput/PasswordInput.js +2 -2
  49. package/es/components/TextInput/TextInput.js +2 -2
  50. package/es/components/TextInput/util.d.ts +17 -5
  51. package/es/components/TextInput/util.js +2 -7
  52. package/es/components/UIShell/HeaderPanel.d.ts +1 -1
  53. package/es/index.d.ts +27 -24
  54. package/es/index.js +43 -41
  55. package/es/internal/defaultItemToString.d.ts +7 -0
  56. package/es/internal/defaultItemToString.js +17 -0
  57. package/es/internal/index.d.ts +1 -0
  58. package/es/prop-types/deprecateValuesWithin.d.ts +8 -1
  59. package/es/prop-types/deprecateValuesWithin.js +6 -6
  60. package/es/prop-types/requiredIfGivenPropIsTruthy.d.ts +8 -7
  61. package/es/prop-types/requiredIfGivenPropIsTruthy.js +10 -10
  62. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.d.ts +27 -2
  63. package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +27 -4
  64. package/lib/components/Breadcrumb/Breadcrumb.js +2 -1
  65. package/lib/components/CodeSnippet/CodeSnippet.d.ts +1 -1
  66. package/lib/components/CodeSnippet/CodeSnippet.js +1 -1
  67. package/lib/components/ComboBox/ComboBox.js +3 -14
  68. package/lib/components/ComboButton/index.js +1 -1
  69. package/lib/components/ComposedModal/ComposedModal.js +1 -1
  70. package/lib/components/ContentSwitcher/ContentSwitcher.js +1 -1
  71. package/lib/components/Copy/Copy.d.ts +1 -1
  72. package/lib/components/Copy/Copy.js +1 -1
  73. package/lib/components/CopyButton/CopyButton.d.ts +1 -1
  74. package/lib/components/CopyButton/CopyButton.js +1 -1
  75. package/lib/components/DataTable/DataTable.d.ts +60 -15
  76. package/lib/components/DataTable/DataTable.js +106 -179
  77. package/lib/components/DataTable/Table.d.ts +2 -2
  78. package/lib/components/DataTable/Table.js +1 -1
  79. package/lib/components/DataTable/TableExpandHeader.d.ts +1 -1
  80. package/lib/components/DataTable/TableExpandHeader.js +3 -3
  81. package/lib/components/DatePicker/DatePicker.d.ts +0 -12
  82. package/lib/components/DatePicker/DatePicker.js +2 -2
  83. package/lib/components/DatePicker/plugins/rangePlugin.d.ts +19 -2
  84. package/lib/components/DatePicker/plugins/rangePlugin.js +18 -16
  85. package/lib/components/Dropdown/Dropdown.js +3 -14
  86. package/lib/components/FeatureFlags/index.js +1 -0
  87. package/lib/components/IconButton/index.js +1 -1
  88. package/lib/components/Menu/MenuItem.d.ts +1 -1
  89. package/lib/components/Menu/MenuItem.js +6 -6
  90. package/lib/components/Modal/Modal.js +1 -1
  91. package/lib/components/MultiSelect/FilterableMultiSelect.js +8 -8
  92. package/lib/components/MultiSelect/MultiSelect.js +2 -13
  93. package/lib/components/Notification/Notification.d.ts +6 -6
  94. package/lib/components/Notification/Notification.js +6 -6
  95. package/lib/components/OverflowMenu/OverflowMenu.js +1 -1
  96. package/lib/components/OverflowMenu/next/index.js +1 -1
  97. package/lib/components/PaginationNav/PaginationNav.d.ts +20 -0
  98. package/lib/components/PaginationNav/PaginationNav.js +34 -5
  99. package/lib/components/Popover/index.js +1 -1
  100. package/lib/components/Search/Search.d.ts +4 -2
  101. package/lib/components/Search/Search.js +5 -4
  102. package/lib/components/Slider/Slider.d.ts +144 -188
  103. package/lib/components/Slider/Slider.js +784 -709
  104. package/lib/components/Slider/index.d.ts +2 -2
  105. package/lib/components/Tabs/Tabs.d.ts +4 -0
  106. package/lib/components/TextArea/TextArea.js +13 -6
  107. package/lib/components/TextInput/ControlledPasswordInput.js +1 -1
  108. package/lib/components/TextInput/PasswordInput.js +1 -1
  109. package/lib/components/TextInput/TextInput.js +1 -1
  110. package/lib/components/TextInput/util.d.ts +17 -5
  111. package/lib/components/TextInput/util.js +2 -7
  112. package/lib/components/UIShell/HeaderPanel.d.ts +1 -1
  113. package/lib/index.d.ts +27 -24
  114. package/lib/index.js +95 -28
  115. package/lib/internal/defaultItemToString.d.ts +7 -0
  116. package/lib/internal/defaultItemToString.js +19 -0
  117. package/lib/internal/index.d.ts +1 -0
  118. package/lib/prop-types/deprecateValuesWithin.d.ts +8 -1
  119. package/lib/prop-types/deprecateValuesWithin.js +6 -8
  120. package/lib/prop-types/requiredIfGivenPropIsTruthy.d.ts +8 -7
  121. package/lib/prop-types/requiredIfGivenPropIsTruthy.js +10 -12
  122. package/package.json +8 -7
  123. package/telemetry.yml +1 -2
  124. package/es/components/MultiSelect/tools/itemToString.d.ts +0 -1
  125. package/es/components/MultiSelect/tools/itemToString.js +0 -21
  126. package/es/components/Slider/index.js +0 -14
  127. package/es/internal/createClassWrapper.js +0 -23
  128. package/lib/components/MultiSelect/tools/itemToString.d.ts +0 -1
  129. package/lib/components/MultiSelect/tools/itemToString.js +0 -23
  130. package/lib/components/Slider/index.js +0 -20
  131. package/lib/internal/createClassWrapper.js +0 -25
@@ -15,7 +15,6 @@ var React = require('react');
15
15
  var cx = require('classnames');
16
16
  var usePrefix = require('../../internal/usePrefix.js');
17
17
 
18
- var _Item, _Item2, _Item3;
19
18
  function Item() {
20
19
  const prefix = usePrefix.usePrefix();
21
20
  return /*#__PURE__*/React.createElement("div", {
@@ -26,19 +25,43 @@ function Item() {
26
25
  }
27
26
  function BreadcrumbSkeleton({
28
27
  className,
28
+ items = 3,
29
+ noTrailingSlash,
30
+ size,
29
31
  ...rest
30
32
  }) {
31
33
  const prefix = usePrefix.usePrefix();
32
- const classes = cx(`${prefix}--breadcrumb`, `${prefix}--skeleton`, className);
34
+ const classes = cx({
35
+ [`${prefix}--breadcrumb`]: true,
36
+ [`${prefix}--skeleton`]: true,
37
+ [`${prefix}--breadcrumb--no-trailing-slash`]: noTrailingSlash,
38
+ [`${prefix}--breadcrumb--sm`]: size === 'sm'
39
+ }, className);
33
40
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
34
41
  className: classes
35
- }, rest), _Item || (_Item = /*#__PURE__*/React.createElement(Item, null)), _Item2 || (_Item2 = /*#__PURE__*/React.createElement(Item, null)), _Item3 || (_Item3 = /*#__PURE__*/React.createElement(Item, null)));
42
+ }, rest), Array.from({
43
+ length: items
44
+ }, (_, i) => /*#__PURE__*/React.createElement(Item, {
45
+ key: i
46
+ })));
36
47
  }
37
48
  BreadcrumbSkeleton.propTypes = {
38
49
  /**
39
50
  * Specify an optional className to add.
40
51
  */
41
- className: PropTypes.string
52
+ className: PropTypes.string,
53
+ /**
54
+ * Specify the number of items
55
+ */
56
+ items: PropTypes.number,
57
+ /**
58
+ * Optional prop to omit the trailing slash for the breadcrumbs
59
+ */
60
+ noTrailingSlash: PropTypes.bool,
61
+ /**
62
+ * Specify the size of the Breadcrumb. Currently supports the following: `sm` & `md` (default: 'md')
63
+ */
64
+ size: PropTypes.oneOf(['sm', 'md'])
42
65
  };
43
66
 
44
67
  exports.BreadcrumbSkeleton = BreadcrumbSkeleton;
@@ -57,7 +57,8 @@ Breadcrumb.propTypes = {
57
57
  */
58
58
  noTrailingSlash: PropTypes.bool,
59
59
  /**
60
- * Specify the size of the Breadcrumb. Currently supports the following:
60
+ * Specify the size of the Breadcrumb. Currently
61
+ * supports the following: `sm` & `md` (default: 'md')
61
62
  */
62
63
  size: PropTypes.oneOf(['sm', 'md'])
63
64
  };
@@ -111,7 +111,7 @@ declare namespace CodeSnippet {
111
111
  /**
112
112
  * Specify how the trigger should align with the tooltip
113
113
  */
114
- align: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
114
+ align: PropTypes.Requireable<string> | PropTypes.Validator<string>;
115
115
  /**
116
116
  * Specify a label to be read by screen readers on the containing textbox
117
117
  * node
@@ -238,7 +238,7 @@ CodeSnippet.propTypes = {
238
238
  /**
239
239
  * Specify how the trigger should align with the tooltip
240
240
  */
241
- align: deprecateValuesWithin.default(PropTypes.oneOf(['top', 'top-left',
241
+ align: deprecateValuesWithin.deprecateValuesWithin(PropTypes.oneOf(['top', 'top-left',
242
242
  // deprecated use top-start instead
243
243
  'top-right',
244
244
  // deprecated use top-end instead
@@ -31,6 +31,7 @@ var FormContext = require('../FluidForm/FormContext.js');
31
31
  var react = require('@floating-ui/react');
32
32
  var index = require('../FeatureFlags/index.js');
33
33
  var index$1 = require('../AILabel/index.js');
34
+ var defaultItemToString = require('../../internal/defaultItemToString.js');
34
35
  var utils = require('../../internal/utils.js');
35
36
  var ListBoxPropTypes = require('../ListBox/ListBoxPropTypes.js');
36
37
  var Text = require('../Text/Text.js');
@@ -47,18 +48,6 @@ const {
47
48
  ItemClick,
48
49
  FunctionSelectItem
49
50
  } = Downshift.useCombobox.stateChangeTypes;
50
- const defaultItemToString = item => {
51
- if (typeof item === 'string') {
52
- return item;
53
- }
54
- if (typeof item === 'number') {
55
- return `${item}`;
56
- }
57
- if (item !== null && typeof item === 'object' && 'label' in item && typeof item['label'] === 'string') {
58
- return item['label'];
59
- }
60
- return '';
61
- };
62
51
  const defaultShouldFilterItem = () => true;
63
52
  const autocompleteCustomFilter = ({
64
53
  item,
@@ -94,7 +83,7 @@ const getInputValue = ({
94
83
  };
95
84
  const findHighlightedIndex = ({
96
85
  items,
97
- itemToString = defaultItemToString
86
+ itemToString = defaultItemToString.defaultItemToString
98
87
  }, inputValue) => {
99
88
  if (!inputValue) {
100
89
  return -1;
@@ -137,7 +126,7 @@ const ComboBox = /*#__PURE__*/React.forwardRef((props, ref) => {
137
126
  invalidText,
138
127
  items,
139
128
  itemToElement = null,
140
- itemToString = defaultItemToString,
129
+ itemToString = defaultItemToString.defaultItemToString,
141
130
  light,
142
131
  onChange,
143
132
  onInputChange,
@@ -192,7 +192,7 @@ ComboButton.propTypes = {
192
192
  /**
193
193
  * Specify how the trigger tooltip should be aligned.
194
194
  */
195
- tooltipAlignment: deprecateValuesWithin.default(PropTypes.oneOf(['top', 'top-left',
195
+ tooltipAlignment: deprecateValuesWithin.deprecateValuesWithin(PropTypes.oneOf(['top', 'top-left',
196
196
  // deprecated use top-start instead
197
197
  'top-right',
198
198
  // deprecated use top-end instead
@@ -79,7 +79,7 @@ ModalBody.propTypes = {
79
79
  /**
80
80
  * Required props for the accessibility label of the header
81
81
  */
82
- ['aria-label']: requiredIfGivenPropIsTruthy.default('hasScrollingContent', PropTypes.string),
82
+ ['aria-label']: requiredIfGivenPropIsTruthy.requiredIfGivenPropIsTruthy('hasScrollingContent', PropTypes.string),
83
83
  /**
84
84
  * Specify the content to be placed in the ModalBody
85
85
  */
@@ -77,7 +77,7 @@ const ContentSwitcher = ({
77
77
  });
78
78
  }
79
79
  }
80
- } else if (selectedIndex !== index) {
80
+ } else if (selectedIndex !== index && (isKeyboardEvent(event) ? match.matches(event, [keys.Enter, keys.Space]) : true)) {
81
81
  setSelectedIndex(index);
82
82
  focusSwitch(index);
83
83
  onChange(event);
@@ -50,7 +50,7 @@ declare namespace Copy {
50
50
  /**
51
51
  * Specify how the trigger should align with the tooltip
52
52
  */
53
- align: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
53
+ align: PropTypes.Requireable<string> | PropTypes.Validator<string>;
54
54
  /**
55
55
  * **Experimental**: Will attempt to automatically align the tooltip. Requires
56
56
  * React v17+
@@ -72,7 +72,7 @@ Copy.propTypes = {
72
72
  /**
73
73
  * Specify how the trigger should align with the tooltip
74
74
  */
75
- align: deprecateValuesWithin.default(PropTypes.oneOf(['top', 'top-left',
75
+ align: deprecateValuesWithin.deprecateValuesWithin(PropTypes.oneOf(['top', 'top-left',
76
76
  // deprecated use top-start instead
77
77
  'top-right',
78
78
  // deprecated use top-end instead
@@ -51,7 +51,7 @@ declare namespace CopyButton {
51
51
  /**
52
52
  * Specify how the trigger should align with the tooltip
53
53
  */
54
- align: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
54
+ align: PropTypes.Requireable<string> | PropTypes.Validator<string>;
55
55
  /**
56
56
  * **Experimental**: Will attempt to automatically align the tooltip. Requires
57
57
  * React v17+
@@ -53,7 +53,7 @@ CopyButton.propTypes = {
53
53
  /**
54
54
  * Specify how the trigger should align with the tooltip
55
55
  */
56
- align: deprecateValuesWithin.default(PropTypes.oneOf(['top', 'top-left',
56
+ align: deprecateValuesWithin.deprecateValuesWithin(PropTypes.oneOf(['top', 'top-left',
57
57
  // deprecated use top-start instead
58
58
  'top-right',
59
59
  // deprecated use top-end instead
@@ -20,7 +20,7 @@ declare const translationKeys: {
20
20
  readonly unselectRow: "carbon.table.row.unselect";
21
21
  };
22
22
  /**
23
- * Message ids that will be passed to translateWithId().
23
+ * Message IDs that will be passed to translateWithId().
24
24
  */
25
25
  type TranslationKey = (typeof translationKeys)[keyof typeof translationKeys];
26
26
  export type DataTableSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -35,7 +35,6 @@ export interface DataTableCell<T> {
35
35
  header: string;
36
36
  };
37
37
  hasAILabelHeader?: boolean;
38
- hasDecoratorHeader?: boolean;
39
38
  }
40
39
  type DataTableCells<T extends any[]> = {
41
40
  [K in keyof T]: DataTableCell<T[K]>;
@@ -54,8 +53,17 @@ export interface DataTableHeader {
54
53
  decorator?: ReactElement;
55
54
  }
56
55
  export interface DataTableRenderProps<RowType, ColTypes extends any[]> {
56
+ /**
57
+ * The headers for the table.
58
+ */
57
59
  headers: DataTableHeader[];
60
+ /**
61
+ * The rows for the table.
62
+ */
58
63
  rows: (DataTableRow<ColTypes> & RowType)[];
64
+ /**
65
+ * The rows that are currently selected.
66
+ */
59
67
  selectedRows: (DataTableRow<ColTypes> & RowType)[];
60
68
  getHeaderProps: (options: {
61
69
  header: DataTableHeader;
@@ -154,14 +162,36 @@ export interface DataTableRenderProps<RowType, ColTypes extends any[]> {
154
162
  }) => {
155
163
  [key: string]: unknown;
156
164
  hasAILabelHeader?: boolean;
157
- hasDecoratorHeader?: boolean;
165
+ key: string;
158
166
  };
167
+ /**
168
+ * Handles input value changes.
169
+ */
159
170
  onInputChange: (event: ChangeEvent<HTMLInputElement>, defaultValue?: string) => void;
171
+ /**
172
+ * Sorts the table by a specific header.
173
+ */
160
174
  sortBy: (headerKey: string) => void;
175
+ /**
176
+ * Selects all rows.
177
+ */
161
178
  selectAll: () => void;
179
+ /**
180
+ * Selects or deselects a specific row.
181
+ */
162
182
  selectRow: (rowId: string) => void;
183
+ /**
184
+ * Expands or collapses a specific row.
185
+ */
163
186
  expandRow: (rowId: string) => void;
187
+ /**
188
+ * Expands or collapses all rows.
189
+ */
164
190
  expandAll: () => void;
191
+ /**
192
+ * Whether the table is using radio buttons for selection instead of
193
+ * checkboxes.
194
+ */
165
195
  radio: boolean | undefined;
166
196
  }
167
197
  export interface DataTableProps<RowType, ColTypes extends any[]> extends TranslateWithId<TranslationKey> {
@@ -179,6 +209,12 @@ export interface DataTableProps<RowType, ColTypes extends any[]> extends Transla
179
209
  locale?: string;
180
210
  overflowMenuOnHover?: boolean;
181
211
  radio?: boolean;
212
+ /**
213
+ * @deprecated Use `children` instead. This prop will be removed in
214
+ * the next major version.
215
+ *
216
+ * https://www.patterns.dev/react/render-props-pattern/#children-as-a-function
217
+ */
182
218
  render?: (renderProps: DataTableRenderProps<RowType, ColTypes>) => ReactElement;
183
219
  rows: Omit<DataTableRow<ColTypes>, 'cells'>[];
184
220
  size?: DataTableSize;
@@ -188,14 +224,12 @@ export interface DataTableProps<RowType, ColTypes extends any[]> extends Transla
188
224
  useZebraStyles?: boolean;
189
225
  }
190
226
  /**
191
- * Data Tables are used to represent a collection of resources, displaying a
192
- * subset of their fields in columns, or headers. We prioritize direct updates
193
- * to the state of what we're rendering, so internally we end up normalizing the
194
- * given data and then denormalizing it when rendering.
195
- *
196
- * As a result, each part of the DataTable is accessible through look-up by id,
197
- * and updating the state of the single entity will cascade updates to the
198
- * consumer.
227
+ * DataTable components are used to represent a collection of resources,
228
+ * displaying a subset of their fields in columns, or headers. We prioritize
229
+ * direct updates to the state of what we're rendering, so internally we
230
+ * normalize the given data and then denormalize it at render time. Each part of
231
+ * the DataTable is accessible through look-up by ID, and updating the state of
232
+ * a single entity cascades updates to the consumer.
199
233
  */
200
234
  export declare const DataTable: {
201
235
  <RowType, ColTypes extends any[]>(props: DataTableProps<RowType, ColTypes>): React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
@@ -266,7 +300,7 @@ export declare const DataTable: {
266
300
  enableToggle: PropTypes.Requireable<boolean>;
267
301
  expandIconDescription: PropTypes.Requireable<string>;
268
302
  id: PropTypes.Requireable<string>;
269
- isExpanded: React.Validator;
303
+ isExpanded: PropTypes.Validator<boolean | null | undefined>;
270
304
  onExpand: PropTypes.Requireable<any>;
271
305
  };
272
306
  };
@@ -348,6 +382,10 @@ export declare const DataTable: {
348
382
  };
349
383
  TableToolbarMenu: React.FC<import("./TableToolbarMenu").TableToolbarMenuProps>;
350
384
  propTypes: {
385
+ /**
386
+ * Pass in the children that will be rendered within the Table
387
+ */
388
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
351
389
  /**
352
390
  * 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
353
391
  */
@@ -383,6 +421,13 @@ export declare const DataTable: {
383
421
  * Specify whether the control should be a radio button or inline checkbox
384
422
  */
385
423
  radio: PropTypes.Requireable<boolean>;
424
+ /**
425
+ * @deprecated Use `children` instead. This prop will be removed in
426
+ * the next major version.
427
+ *
428
+ * https://www.patterns.dev/react/render-props-pattern/#children-as-a-function
429
+ */
430
+ render: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
386
431
  /**
387
432
  * The `rows` prop is where you provide us with a list of all the rows that
388
433
  * you want to render in the table. The only hard requirement is that this
@@ -409,13 +454,13 @@ export declare const DataTable: {
409
454
  */
410
455
  stickyHeader: PropTypes.Requireable<boolean>;
411
456
  /**
412
- * Optional method that takes in a message id and returns an
457
+ * Optional method that takes in a message ID and returns an
413
458
  * internationalized string. See `DataTable.translationKeys` for all
414
- * available message ids.
459
+ * available message IDs.
415
460
  */
416
461
  translateWithId: PropTypes.Requireable<(...args: any[]) => any>;
417
462
  /**
418
- * `false` If true, will use a width of 'auto' instead of 100%
463
+ * If `true`, sets the table width to `auto` instead of `100%`.
419
464
  */
420
465
  useStaticWidth: PropTypes.Requireable<boolean>;
421
466
  /**