@carbon/react 1.31.3 → 1.32.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 (190) hide show
  1. package/README.md +1 -1
  2. package/es/components/Accordion/Accordion.Skeleton.d.ts +64 -0
  3. package/es/components/Accordion/Accordion.Skeleton.js +3 -3
  4. package/es/components/Accordion/Accordion.d.ts +65 -0
  5. package/es/components/Accordion/Accordion.js +5 -6
  6. package/es/components/Accordion/AccordionItem.d.ts +105 -0
  7. package/es/components/Accordion/AccordionItem.js +12 -9
  8. package/es/components/Accordion/AccordionProvider.d.ts +20 -0
  9. package/es/components/Accordion/AccordionProvider.js +25 -0
  10. package/es/components/Accordion/index.d.ts +11 -0
  11. package/es/components/Button/Button.Skeleton.d.ts +28 -0
  12. package/es/components/Button/Button.Skeleton.js +5 -3
  13. package/es/components/Button/Button.d.ts +72 -0
  14. package/es/components/Button/Button.js +13 -10
  15. package/es/components/Button/index.d.ts +11 -0
  16. package/es/components/Button/index.js +2 -1
  17. package/es/components/ButtonSet/ButtonSet.d.ts +17 -0
  18. package/es/components/ButtonSet/ButtonSet.js +1 -2
  19. package/es/components/ButtonSet/index.d.ts +9 -0
  20. package/es/components/CodeSnippet/CodeSnippet.js +1 -0
  21. package/es/components/ComboButton/index.js +1 -0
  22. package/es/components/ComposedModal/ComposedModal.d.ts +70 -0
  23. package/es/components/ComposedModal/ComposedModal.js +58 -67
  24. package/es/components/ComposedModal/ModalFooter.d.ts +71 -0
  25. package/es/components/ComposedModal/ModalFooter.js +22 -19
  26. package/es/components/ComposedModal/ModalHeader.d.ts +58 -0
  27. package/es/components/ComposedModal/ModalHeader.js +8 -25
  28. package/es/components/ComposedModal/index.d.ts +9 -0
  29. package/es/components/ContainedList/ContainedList.js +12 -1
  30. package/es/components/ContentSwitcher/ContentSwitcher.d.ts +109 -0
  31. package/es/components/ContentSwitcher/ContentSwitcher.js +14 -6
  32. package/es/components/DangerButton/DangerButton.d.ts +9 -0
  33. package/es/components/DangerButton/DangerButton.js +2 -2
  34. package/es/components/DangerButton/index.d.ts +9 -0
  35. package/es/components/DataTable/TableBatchAction.js +1 -0
  36. package/es/components/DataTable/TableBatchActions.js +1 -0
  37. package/es/components/DataTable/TableBody.d.ts +29 -0
  38. package/es/components/DataTable/TableBody.js +2 -3
  39. package/es/components/DataTable/TableContainer.d.ts +51 -0
  40. package/es/components/DataTable/TableContainer.js +3 -4
  41. package/es/components/DataTable/TableExpandHeader.d.ts +86 -0
  42. package/es/components/DataTable/TableExpandHeader.js +4 -5
  43. package/es/components/DatePicker/plugins/fixEventsPlugin.js +12 -16
  44. package/es/components/Dropdown/Dropdown.js +1 -0
  45. package/es/components/FluidTextInput/FluidTextInput.js +1 -0
  46. package/es/components/FormGroup/FormGroup.d.ts +80 -0
  47. package/es/components/IconButton/index.js +3 -2
  48. package/es/components/Layout/index.d.ts +74 -0
  49. package/es/components/Layout/index.js +14 -5
  50. package/es/components/Link/Link.d.ts +2 -2
  51. package/es/components/Link/Link.js +2 -1
  52. package/es/components/MenuButton/index.js +1 -0
  53. package/es/components/Modal/Modal.js +1 -0
  54. package/es/components/ModalWrapper/ModalWrapper.js +1 -0
  55. package/es/components/Notification/Notification.d.ts +531 -0
  56. package/es/components/Notification/Notification.js +40 -6
  57. package/es/components/Notification/index.d.ts +7 -0
  58. package/es/components/PrimaryButton/PrimaryButton.js +1 -0
  59. package/es/components/SecondaryButton/SecondaryButton.js +1 -0
  60. package/es/components/Select/Select.d.ts +1 -1
  61. package/es/components/SkeletonText/SkeletonText.d.ts +61 -0
  62. package/es/components/SkeletonText/SkeletonText.js +15 -17
  63. package/es/components/SkeletonText/index.d.ts +9 -0
  64. package/es/components/Switch/Switch.d.ts +56 -0
  65. package/es/components/Switch/Switch.js +4 -4
  66. package/es/components/Tab/index.d.ts +9 -0
  67. package/es/components/TabContent/TabContent.d.ts +40 -0
  68. package/es/components/TabContent/TabContent.js +6 -12
  69. package/es/components/TabContent/index.d.ts +10 -0
  70. package/es/components/Tabs/Tabs.Skeleton.d.ts +33 -0
  71. package/es/components/Tabs/Tabs.Skeleton.js +2 -2
  72. package/es/components/Tabs/Tabs.d.ts +311 -0
  73. package/es/components/Tabs/Tabs.js +151 -97
  74. package/es/components/Tabs/index.d.ts +10 -0
  75. package/es/components/Tabs/usePressable.js +11 -0
  76. package/es/components/TextInput/ControlledPasswordInput.d.ts +90 -0
  77. package/es/components/TextInput/ControlledPasswordInput.js +5 -6
  78. package/es/components/Tile/Tile.d.ts +153 -0
  79. package/es/components/Tile/Tile.js +62 -74
  80. package/es/components/Tile/index.d.ts +7 -0
  81. package/es/components/Toggle/Toggle.Skeleton.d.ts +3 -47
  82. package/es/components/Toggle/Toggle.Skeleton.js +24 -64
  83. package/es/components/Toggle/Toggle.js +1 -1
  84. package/es/components/UIShell/HeaderGlobalAction.js +1 -0
  85. package/es/components/UIShell/HeaderPanel.js +61 -5
  86. package/es/components/UIShell/SideNav.d.ts +1 -1
  87. package/es/components/UIShell/Switcher.js +45 -5
  88. package/es/components/UIShell/SwitcherItem.js +45 -6
  89. package/es/index.js +16 -16
  90. package/es/internal/keyboard/match.js +2 -2
  91. package/es/internal/useControllableState.js +2 -2
  92. package/es/internal/useMatchMedia.js +44 -0
  93. package/es/internal/wrapFocus.js +6 -6
  94. package/es/prop-types/requiredIfGivenPropIsTruthy.js +1 -1
  95. package/es/prop-types/types.js +3 -0
  96. package/lib/components/Accordion/Accordion.Skeleton.d.ts +64 -0
  97. package/lib/components/Accordion/Accordion.Skeleton.js +3 -3
  98. package/lib/components/Accordion/Accordion.d.ts +65 -0
  99. package/lib/components/Accordion/Accordion.js +5 -6
  100. package/lib/components/Accordion/AccordionItem.d.ts +105 -0
  101. package/lib/components/Accordion/AccordionItem.js +11 -8
  102. package/lib/components/Accordion/AccordionProvider.d.ts +20 -0
  103. package/lib/components/Accordion/AccordionProvider.js +34 -0
  104. package/lib/components/Accordion/index.d.ts +11 -0
  105. package/lib/components/Button/Button.Skeleton.d.ts +28 -0
  106. package/lib/components/Button/Button.Skeleton.js +5 -3
  107. package/lib/components/Button/Button.d.ts +72 -0
  108. package/lib/components/Button/Button.js +18 -11
  109. package/lib/components/Button/index.d.ts +11 -0
  110. package/lib/components/Button/index.js +6 -0
  111. package/lib/components/ButtonSet/ButtonSet.d.ts +17 -0
  112. package/lib/components/ButtonSet/ButtonSet.js +1 -2
  113. package/lib/components/ButtonSet/index.d.ts +9 -0
  114. package/lib/components/CodeSnippet/CodeSnippet.js +1 -0
  115. package/lib/components/ComboButton/index.js +1 -0
  116. package/lib/components/ComposedModal/ComposedModal.d.ts +70 -0
  117. package/lib/components/ComposedModal/ComposedModal.js +58 -67
  118. package/lib/components/ComposedModal/ModalFooter.d.ts +71 -0
  119. package/lib/components/ComposedModal/ModalFooter.js +22 -19
  120. package/lib/components/ComposedModal/ModalHeader.d.ts +58 -0
  121. package/lib/components/ComposedModal/ModalHeader.js +8 -25
  122. package/lib/components/ComposedModal/index.d.ts +9 -0
  123. package/lib/components/ContainedList/ContainedList.js +12 -1
  124. package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +109 -0
  125. package/lib/components/ContentSwitcher/ContentSwitcher.js +14 -6
  126. package/lib/components/DangerButton/DangerButton.d.ts +9 -0
  127. package/lib/components/DangerButton/DangerButton.js +2 -2
  128. package/lib/components/DangerButton/index.d.ts +9 -0
  129. package/lib/components/DataTable/TableBatchAction.js +1 -0
  130. package/lib/components/DataTable/TableBatchActions.js +1 -0
  131. package/lib/components/DataTable/TableBody.d.ts +29 -0
  132. package/lib/components/DataTable/TableBody.js +3 -4
  133. package/lib/components/DataTable/TableContainer.d.ts +51 -0
  134. package/lib/components/DataTable/TableContainer.js +3 -4
  135. package/lib/components/DataTable/TableExpandHeader.d.ts +86 -0
  136. package/lib/components/DataTable/TableExpandHeader.js +4 -5
  137. package/lib/components/DatePicker/plugins/fixEventsPlugin.js +12 -16
  138. package/lib/components/Dropdown/Dropdown.js +1 -0
  139. package/lib/components/FluidTextInput/FluidTextInput.js +1 -0
  140. package/lib/components/FormGroup/FormGroup.d.ts +80 -0
  141. package/lib/components/IconButton/index.js +3 -2
  142. package/lib/components/Layout/index.d.ts +74 -0
  143. package/lib/components/Layout/index.js +14 -5
  144. package/lib/components/Link/Link.d.ts +2 -2
  145. package/lib/components/Link/Link.js +2 -1
  146. package/lib/components/MenuButton/index.js +1 -0
  147. package/lib/components/Modal/Modal.js +1 -0
  148. package/lib/components/ModalWrapper/ModalWrapper.js +1 -0
  149. package/lib/components/Notification/Notification.d.ts +531 -0
  150. package/lib/components/Notification/Notification.js +40 -6
  151. package/lib/components/Notification/index.d.ts +7 -0
  152. package/lib/components/PrimaryButton/PrimaryButton.js +1 -0
  153. package/lib/components/SecondaryButton/SecondaryButton.js +1 -0
  154. package/lib/components/Select/Select.d.ts +1 -1
  155. package/lib/components/SkeletonText/SkeletonText.d.ts +61 -0
  156. package/lib/components/SkeletonText/SkeletonText.js +15 -17
  157. package/lib/components/SkeletonText/index.d.ts +9 -0
  158. package/lib/components/Switch/Switch.d.ts +56 -0
  159. package/lib/components/Switch/Switch.js +4 -4
  160. package/lib/components/Tab/index.d.ts +9 -0
  161. package/lib/components/TabContent/TabContent.d.ts +40 -0
  162. package/lib/components/TabContent/TabContent.js +6 -12
  163. package/lib/components/TabContent/index.d.ts +10 -0
  164. package/lib/components/Tabs/Tabs.Skeleton.d.ts +33 -0
  165. package/lib/components/Tabs/Tabs.Skeleton.js +2 -2
  166. package/lib/components/Tabs/Tabs.d.ts +311 -0
  167. package/lib/components/Tabs/Tabs.js +150 -96
  168. package/lib/components/Tabs/index.d.ts +10 -0
  169. package/lib/components/Tabs/usePressable.js +11 -0
  170. package/lib/components/TextInput/ControlledPasswordInput.d.ts +90 -0
  171. package/lib/components/TextInput/ControlledPasswordInput.js +5 -6
  172. package/lib/components/Tile/Tile.d.ts +153 -0
  173. package/lib/components/Tile/Tile.js +62 -74
  174. package/lib/components/Tile/index.d.ts +7 -0
  175. package/lib/components/Toggle/Toggle.Skeleton.d.ts +3 -47
  176. package/lib/components/Toggle/Toggle.Skeleton.js +22 -62
  177. package/lib/components/Toggle/Toggle.js +1 -1
  178. package/lib/components/UIShell/HeaderGlobalAction.js +1 -0
  179. package/lib/components/UIShell/HeaderPanel.js +60 -4
  180. package/lib/components/UIShell/SideNav.d.ts +1 -1
  181. package/lib/components/UIShell/Switcher.js +44 -4
  182. package/lib/components/UIShell/SwitcherItem.js +45 -6
  183. package/lib/index.js +51 -47
  184. package/lib/internal/keyboard/match.js +2 -2
  185. package/lib/internal/useControllableState.js +2 -2
  186. package/lib/internal/useMatchMedia.js +48 -0
  187. package/lib/internal/wrapFocus.js +6 -6
  188. package/lib/prop-types/requiredIfGivenPropIsTruthy.js +1 -1
  189. package/lib/prop-types/types.js +3 -0
  190. package/package.json +4 -3
@@ -0,0 +1,311 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import PropTypes from 'prop-types';
8
+ import React, { type ReactNode, type MouseEvent, type KeyboardEvent, type HTMLAttributes, type ComponentType, type ReactHTML } from 'react';
9
+ type DivAttributes = HTMLAttributes<HTMLDivElement>;
10
+ /**
11
+ * Tabs
12
+ */
13
+ export interface TabsProps {
14
+ /**
15
+ * Provide child elements to be rendered inside the `Tabs`.
16
+ * These elements should render either `TabsList` or `TabsPanels`
17
+ */
18
+ children?: ReactNode;
19
+ /**
20
+ * Specify which content tab should be initially selected when the component
21
+ * is first rendered
22
+ */
23
+ defaultSelectedIndex?: number;
24
+ /**
25
+ * Whether the rendered Tab children should be dismissable.
26
+ */
27
+ dismissable?: boolean;
28
+ /**
29
+ * Provide an optional function which is called
30
+ * whenever the state of the `Tabs` changes
31
+ */
32
+ onChange?(state: {
33
+ selectedIndex: number;
34
+ }): void;
35
+ /**
36
+ * If specifying the `onTabCloseRequest` prop, provide a callback function
37
+ * responsible for removing the tab when close button is pressed on one of the Tab elements
38
+ */
39
+ onTabCloseRequest?(tabIndex: number): void;
40
+ /**
41
+ * Control which content panel is currently selected. This puts the component
42
+ * in a controlled mode and should be used along with `onChange`
43
+ */
44
+ selectedIndex?: number;
45
+ }
46
+ declare function Tabs({ children, defaultSelectedIndex, onChange, selectedIndex: controlledSelectedIndex, dismissable, onTabCloseRequest, }: TabsProps): JSX.Element;
47
+ declare namespace Tabs {
48
+ var propTypes: {
49
+ /**
50
+ * Provide child elements to be rendered inside the `Tabs`.
51
+ * These elements should render either `TabsList` or `TabsPanels`
52
+ */
53
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
54
+ /**
55
+ * Specify which content tab should be initially selected when the component
56
+ * is first rendered
57
+ */
58
+ defaultSelectedIndex: PropTypes.Requireable<number>;
59
+ /**
60
+ * Whether the render Tab children should be dismissable.
61
+ */
62
+ dismissable: PropTypes.Requireable<boolean>;
63
+ /**
64
+ * Provide an optional function which is called whenever the state of the
65
+ * `Tabs` changes
66
+ */
67
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
68
+ /**
69
+ * If specifying the `onTabCloseRequest` prop, provide a callback function
70
+ * responsible for removing the tab when close button is pressed on one of the Tab elements
71
+ */
72
+ onTabCloseRequest: (props: any) => Error | undefined;
73
+ /**
74
+ * Control which content panel is currently selected. This puts the component
75
+ * in a controlled mode and should be used along with `onChange`
76
+ */
77
+ selectedIndex: PropTypes.Requireable<number>;
78
+ };
79
+ }
80
+ /**
81
+ * TabList
82
+ */
83
+ export interface TabListProps extends DivAttributes {
84
+ /**
85
+ * Specify whether the content tab should be activated automatically or
86
+ * manually
87
+ */
88
+ activation?: 'automatic' | 'manual';
89
+ /**
90
+ * Provide an accessible label to be read when a user interacts with this
91
+ * component
92
+ */
93
+ 'aria-label': string;
94
+ /**
95
+ * Provide child elements to be rendered inside `ContentTabs`.
96
+ * These elements should render a `ContentTab`
97
+ */
98
+ children?: ReactNode;
99
+ /**
100
+ * Specify an optional className to be added to the container node
101
+ */
102
+ className?: string;
103
+ /**
104
+ * Specify whether component is contained type
105
+ */
106
+ contained?: boolean;
107
+ /**
108
+ * Used for tabs within a grid, this makes it so tabs span the full container width and have the same width. Only available on contained tabs with <9 children
109
+ */
110
+ fullWidth?: boolean;
111
+ /**
112
+ * If using `IconTab`, specify the size of the icon being used.
113
+ */
114
+ iconSize?: 'default' | 'lg';
115
+ /**
116
+ * Provide the props that describe the left overflow button
117
+ */
118
+ leftOverflowButtonProps: HTMLAttributes<HTMLButtonElement>;
119
+ /**
120
+ * Specify whether to use the light component variant
121
+ */
122
+ light?: boolean;
123
+ /**
124
+ * Provide the props that describe the right overflow button
125
+ */
126
+ rightOverflowButtonProps: HTMLAttributes<HTMLButtonElement>;
127
+ /**
128
+ * Optionally provide a delay (in milliseconds) passed to the lodash
129
+ * debounce of the onScroll handler. This will impact the responsiveness
130
+ * of scroll arrow buttons rendering when scrolling to the first or last tab.
131
+ */
132
+ scrollDebounceWait?: number;
133
+ /**
134
+ * Choose whether to automatically scroll to newly selected tabs
135
+ * on component rerender
136
+ */
137
+ scrollIntoView?: boolean;
138
+ }
139
+ declare function TabList({ activation, 'aria-label': label, children, className: customClassName, contained, fullWidth, iconSize, leftOverflowButtonProps, light, rightOverflowButtonProps, scrollDebounceWait, scrollIntoView, ...rest }: TabListProps): JSX.Element;
140
+ declare namespace TabList {
141
+ var propTypes: {
142
+ /**
143
+ * Specify whether the content tab should be activated automatically or
144
+ * manually
145
+ */
146
+ activation: PropTypes.Requireable<string>;
147
+ /**
148
+ * Provide an accessible label to be read when a user interacts with this
149
+ * component
150
+ */
151
+ 'aria-label': PropTypes.Validator<string>;
152
+ /**
153
+ * Provide child elements to be rendered inside `ContentTabs`.
154
+ * These elements should render a `ContentTab`
155
+ */
156
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
157
+ /**
158
+ * Specify an optional className to be added to the container node
159
+ */
160
+ className: PropTypes.Requireable<string>;
161
+ /**
162
+ * Specify whether component is contained type
163
+ */
164
+ contained: PropTypes.Requireable<boolean>;
165
+ /**
166
+ * Used for tabs within a grid, this makes it so tabs span the full container width and have the same width. Only available on contained tabs with <9 children
167
+ */
168
+ fullWidth: PropTypes.Requireable<boolean>;
169
+ /**
170
+ * If using `IconTab`, specify the size of the icon being used.
171
+ */
172
+ iconSize: PropTypes.Requireable<string>;
173
+ /**
174
+ * Provide the props that describe the left overflow button
175
+ */
176
+ leftOverflowButtonProps: PropTypes.Requireable<object>;
177
+ /**
178
+ * Specify whether to use the light component variant
179
+ */
180
+ light: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
181
+ /**
182
+ * Provide the props that describe the right overflow button
183
+ */
184
+ rightOverflowButtonProps: PropTypes.Requireable<object>;
185
+ /**
186
+ * Optionally provide a delay (in milliseconds) passed to the lodash
187
+ * debounce of the onScroll handler. This will impact the responsiveness
188
+ * of scroll arrow buttons rendering when scrolling to the first or last tab.
189
+ */
190
+ scrollDebounceWait: PropTypes.Requireable<number>;
191
+ /**
192
+ * Choose whether to automatically scroll
193
+ * to newly selected tabs on component rerender
194
+ */
195
+ scrollIntoView: PropTypes.Requireable<boolean>;
196
+ };
197
+ }
198
+ /**
199
+ * Tab
200
+ */
201
+ export interface TabProps extends HTMLAttributes<HTMLElement> {
202
+ /**
203
+ * Provide a custom element to render instead of the default button
204
+ */
205
+ as?: keyof ReactHTML | ComponentType;
206
+ /**
207
+ * Provide child elements to be rendered inside `Tab`.
208
+ */
209
+ children?: ReactNode;
210
+ /**
211
+ * Specify an optional className to be added to your Tab
212
+ */
213
+ className?: string;
214
+ /**
215
+ * Whether your Tab is disabled.
216
+ */
217
+ disabled?: boolean;
218
+ /**
219
+ * Provide a handler that is invoked when a user clicks on the control
220
+ */
221
+ onClick?(event: MouseEvent): void;
222
+ /**
223
+ * Provide a handler that is invoked on the key down event for the control
224
+ */
225
+ onKeyDown?(event: KeyboardEvent): void;
226
+ /**
227
+ * An optional parameter to allow overriding the anchor rendering.
228
+ * Useful for using Tab along with react-router or other client
229
+ * side router libraries.
230
+ */
231
+ renderButton?(): ReactNode;
232
+ /**
233
+ * Optional prop to render an icon next to the label.
234
+ * Can be a React component class
235
+ */
236
+ renderIcon?: ComponentType<{
237
+ size: number;
238
+ }>;
239
+ /**
240
+ * An optional label to render under the primary tab label.
241
+ * Only useful for conained tabs.
242
+ */
243
+ secondaryLabel?: string;
244
+ }
245
+ declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLElement>>;
246
+ /**
247
+ * IconTab
248
+ */
249
+ export interface IconTabProps extends DivAttributes {
250
+ /**
251
+ * Provide an icon to be rendered inside `IconTab` as the visual label for Tab.
252
+ */
253
+ children?: ReactNode;
254
+ /**
255
+ * Specify an optional className to be added to your Tab
256
+ */
257
+ className?: string;
258
+ /**
259
+ * Specify whether the tooltip for the icon should be open when it first renders
260
+ */
261
+ defaultOpen?: boolean;
262
+ /**
263
+ * Specify the duration in milliseconds to delay before displaying the tooltip for the icon.
264
+ */
265
+ enterDelayMs?: number;
266
+ /**
267
+ * Provide the label to be rendered inside the Tooltip. The label will use
268
+ * `aria-labelledby` and will fully describe the child node that is provided.
269
+ * This means that if you have text in the child node it will not be
270
+ * announced to the screen reader.
271
+ */
272
+ label: ReactNode;
273
+ /**
274
+ * Specify the duration in milliseconds to delay before hiding the tooltip
275
+ */
276
+ leaveDelayMs?: number;
277
+ }
278
+ declare const IconTab: React.ForwardRefExoticComponent<IconTabProps & React.RefAttributes<HTMLDivElement>>;
279
+ /**
280
+ * TabPanel
281
+ */
282
+ export interface TabPanelProps extends DivAttributes {
283
+ /**
284
+ * Provide child elements to be rendered inside `TabPanel`.
285
+ */
286
+ children?: ReactNode;
287
+ /**
288
+ * Specify an optional className to be added to TabPanel.
289
+ */
290
+ className?: string;
291
+ }
292
+ declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
293
+ /**
294
+ * TabPanels
295
+ */
296
+ export interface TabPanelsProps {
297
+ /**
298
+ * Provide child elements to be rendered inside `TabPanels`.
299
+ */
300
+ children?: ReactNode;
301
+ }
302
+ declare function TabPanels({ children }: TabPanelsProps): JSX.Element[] | null | undefined;
303
+ declare namespace TabPanels {
304
+ var propTypes: {
305
+ /**
306
+ * Provide child elements to be rendered inside `TabPanels`.
307
+ */
308
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
309
+ };
310
+ }
311
+ export { Tabs, Tab, IconTab, TabPanel, TabPanels, TabList };