@carbon/react 1.99.0 → 1.100.0-rc.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.
- package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +953 -953
- package/es/components/BadgeIndicator/index.d.ts +1 -1
- package/es/components/BadgeIndicator/index.js +8 -6
- package/es/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/es/components/Breadcrumb/BreadcrumbItem.js +6 -7
- package/es/components/Button/Button.Skeleton.d.ts +28 -2
- package/es/components/Button/Button.js +3 -2
- package/es/components/ChatButton/ChatButton.d.ts +3 -2
- package/es/components/CheckboxGroup/CheckboxGroup.d.ts +60 -2
- package/es/components/ComboBox/ComboBox.d.ts +4 -4
- package/es/components/ComboBox/ComboBox.js +21 -3
- package/es/components/ComposedModal/ComposedModal.d.ts +2 -2
- package/es/components/ContainedList/ContainedList.d.ts +35 -6
- package/es/components/ContainedList/ContainedList.js +3 -1
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.d.ts +32 -3
- package/es/components/ContainedList/index.d.ts +1 -1
- package/es/components/ContainedList/index.js +4 -1
- package/es/components/DangerButton/DangerButton.d.ts +1 -1
- package/es/components/DataTable/DataTable.d.ts +22 -5
- package/es/components/DataTable/DataTable.js +1 -1
- package/es/components/DataTable/TableExpandRow.d.ts +1 -1
- package/es/components/DataTable/TableExpandRow.js +2 -2
- package/es/components/DataTable/TableHeader.d.ts +1 -1
- package/es/components/DataTable/TableHeader.js +18 -16
- package/es/components/DataTable/TableToolbar.d.ts +25 -1
- package/es/components/DataTable/TableToolbarMenu.d.ts +25 -5
- package/es/components/DataTable/TableToolbarMenu.js +0 -3
- package/es/components/DataTableSkeleton/DataTableSkeleton.d.ts +51 -2
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +6 -0
- package/es/components/DatePicker/DatePicker.d.ts +2 -2
- package/es/components/DatePicker/DatePicker.js +38 -53
- package/es/components/DatePicker/plugins/fixEventsPlugin.js +28 -2
- package/es/components/DatePickerInput/DatePickerInput.d.ts +1 -1
- package/es/components/DatePickerInput/DatePickerInput.js +3 -2
- package/es/components/Dialog/Dialog.d.ts +1 -1
- package/es/components/Dropdown/Dropdown.Skeleton.d.ts +19 -2
- package/es/components/ExpandableSearch/ExpandableSearch.d.ts +1 -1
- package/es/components/ExpandableSearch/ExpandableSearch.js +14 -12
- package/es/components/FileUploader/FileUploader.d.ts +1 -1
- package/es/components/FileUploader/FileUploader.js +2 -2
- package/es/components/FileUploader/FileUploaderDropContainer.d.ts +1 -1
- package/es/components/FileUploader/FileUploaderDropContainer.js +28 -10
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.d.ts +11 -3
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.d.ts +15 -3
- package/es/components/FluidDatePicker/FluidDatePicker.d.ts +2 -2
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.d.ts +11 -3
- package/es/components/FluidForm/FluidForm.d.ts +15 -2
- package/es/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +2 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.d.ts +11 -3
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.d.ts +11 -3
- package/es/components/FluidNumberInput/FluidNumberInput.d.ts +1 -1
- package/es/components/FluidSearch/FluidSearch.Skeleton.d.ts +11 -3
- package/es/components/FluidSearch/FluidSearch.d.ts +1 -1
- package/es/components/FluidSearch/FluidSearch.js +3 -3
- package/es/components/FluidSelect/FluidSelect.Skeleton.d.ts +11 -3
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.d.ts +11 -3
- package/es/components/FluidTextArea/FluidTextArea.d.ts +95 -1
- package/es/components/FluidTextInput/FluidPasswordInput.d.ts +83 -2
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.d.ts +11 -3
- package/es/components/Grid/GridContext.d.ts +19 -1
- package/es/components/IconButton/index.d.ts +1 -1
- package/es/components/IconButton/index.js +2 -2
- package/es/components/Link/Link.js +3 -0
- package/es/components/ListBox/ListBoxField.d.ts +35 -2
- package/es/components/ListBox/ListBoxMenuIcon.d.ts +16 -3
- package/es/components/ListBox/ListBoxMenuItem.d.ts +1 -1
- package/es/components/ListBox/ListBoxSelection.d.ts +34 -3
- package/es/components/Menu/MenuItem.d.ts +2 -2
- package/es/components/MultiSelect/FilterableMultiSelect.d.ts +2 -2
- package/es/components/MultiSelect/FilterableMultiSelect.js +22 -13
- package/es/components/MultiSelect/MultiSelect.js +22 -13
- package/es/components/Notification/Notification.d.ts +8 -7
- package/es/components/Notification/Notification.js +0 -1
- package/es/components/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/es/components/OverflowMenu/OverflowMenu.js +0 -1
- package/es/components/OverflowMenu/index.d.ts +1 -1
- package/es/components/PageHeader/PageHeader.d.ts +3 -3
- package/es/components/Popover/index.js +21 -12
- package/es/components/Search/Search.d.ts +2 -2
- package/es/components/Select/Select.d.ts +1 -1
- package/es/components/Select/Select.js +2 -2
- package/es/components/SkeletonIcon/SkeletonIcon.d.ts +16 -2
- package/es/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/es/components/Tag/Tag.d.ts +1 -1
- package/es/components/Tag/Tag.js +2 -0
- package/es/components/Text/Text.d.ts +1 -1
- package/es/components/Text/Text.js +4 -3
- package/es/components/Text/TextDirection.d.ts +1 -1
- package/es/components/Text/TextDirection.js +1 -3
- package/es/components/Text/TextDirectionContext.d.ts +3 -3
- package/es/components/TextInput/ControlledPasswordInput.d.ts +1 -1
- package/es/components/TextInput/ControlledPasswordInput.js +2 -2
- package/es/components/TextInput/PasswordInput.d.ts +1 -1
- package/es/components/TextInput/PasswordInput.js +2 -2
- package/es/components/TextInput/TextInput.d.ts +1 -1
- package/es/components/TextInput/TextInput.js +2 -2
- package/es/components/Toggle/Toggle.Skeleton.d.ts +9 -3
- package/es/components/Toggletip/index.d.ts +1 -1
- package/es/components/Toggletip/index.js +9 -7
- package/es/components/Tooltip/DefinitionTooltip.d.ts +52 -1
- package/es/components/Tooltip/Tooltip.js +2 -0
- package/es/components/TreeView/TreeNode.d.ts +4 -4
- package/es/components/UIShell/Header.d.ts +20 -3
- package/es/components/UIShell/HeaderGlobalAction.d.ts +2 -2
- package/es/components/UIShell/HeaderName.js +1 -1
- package/es/components/UIShell/Link.d.ts +1 -1
- package/es/components/UIShell/Link.js +14 -14
- package/es/components/UIShell/SideNav.d.ts +3 -3
- package/es/components/UIShell/SideNav.js +26 -25
- package/es/components/UIShell/SideNavDivider.d.ts +11 -3
- package/es/components/UIShell/SideNavHeader.d.ts +24 -1
- package/es/components/UIShell/SideNavIcon.d.ts +20 -2
- package/es/components/UIShell/SideNavItem.d.ts +20 -2
- package/es/components/UIShell/SideNavItems.d.ts +22 -2
- package/es/components/UIShell/SideNavLink.d.ts +1 -1
- package/es/components/UIShell/SideNavLink.js +14 -14
- package/es/components/UIShell/SideNavMenu.d.ts +1 -1
- package/es/components/UIShell/SideNavMenu.js +2 -2
- package/es/components/UIShell/SideNavMenuItem.d.ts +2 -2
- package/es/components/UIShell/SideNavMenuItem.js +2 -2
- package/es/components/UIShell/SwitcherDivider.d.ts +10 -2
- package/es/internal/FloatingMenu.d.ts +1 -1
- package/es/internal/FloatingMenu.js +0 -2
- package/es/internal/PolymorphicProps.d.ts +3 -3
- package/es/internal/useNoInteractiveChildren.d.ts +1 -1
- package/es/internal/useNoInteractiveChildren.js +8 -10
- package/es/internal/useOutsideClick.d.ts +1 -1
- package/es/internal/useOutsideClick.js +0 -4
- package/lib/components/BadgeIndicator/index.d.ts +1 -1
- package/lib/components/BadgeIndicator/index.js +7 -5
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/components/Breadcrumb/BreadcrumbItem.js +5 -6
- package/lib/components/Button/Button.Skeleton.d.ts +28 -2
- package/lib/components/Button/Button.js +3 -2
- package/lib/components/ChatButton/ChatButton.d.ts +3 -2
- package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +60 -2
- package/lib/components/ComboBox/ComboBox.d.ts +4 -4
- package/lib/components/ComboBox/ComboBox.js +21 -3
- package/lib/components/ComposedModal/ComposedModal.d.ts +2 -2
- package/lib/components/ContainedList/ContainedList.d.ts +35 -6
- package/lib/components/ContainedList/ContainedList.js +3 -1
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.d.ts +32 -3
- package/lib/components/ContainedList/index.d.ts +1 -1
- package/lib/components/ContainedList/index.js +4 -1
- package/lib/components/DangerButton/DangerButton.d.ts +1 -1
- package/lib/components/DataTable/DataTable.d.ts +22 -5
- package/lib/components/DataTable/DataTable.js +1 -1
- package/lib/components/DataTable/TableExpandRow.d.ts +1 -1
- package/lib/components/DataTable/TableHeader.d.ts +1 -1
- package/lib/components/DataTable/TableHeader.js +17 -15
- package/lib/components/DataTable/TableToolbar.d.ts +25 -1
- package/lib/components/DataTable/TableToolbarMenu.d.ts +25 -5
- package/lib/components/DataTable/TableToolbarMenu.js +0 -3
- package/lib/components/DataTableSkeleton/DataTableSkeleton.d.ts +51 -2
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +6 -0
- package/lib/components/DatePicker/DatePicker.d.ts +2 -2
- package/lib/components/DatePicker/DatePicker.js +37 -52
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +28 -2
- package/lib/components/DatePickerInput/DatePickerInput.d.ts +1 -1
- package/lib/components/DatePickerInput/DatePickerInput.js +2 -1
- package/lib/components/Dialog/Dialog.d.ts +1 -1
- package/lib/components/Dropdown/Dropdown.Skeleton.d.ts +19 -2
- package/lib/components/ExpandableSearch/ExpandableSearch.d.ts +1 -1
- package/lib/components/ExpandableSearch/ExpandableSearch.js +13 -11
- package/lib/components/FileUploader/FileUploader.d.ts +1 -1
- package/lib/components/FileUploader/FileUploaderDropContainer.d.ts +1 -1
- package/lib/components/FileUploader/FileUploaderDropContainer.js +28 -10
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.d.ts +11 -3
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.d.ts +15 -3
- package/lib/components/FluidDatePicker/FluidDatePicker.d.ts +2 -2
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.d.ts +11 -3
- package/lib/components/FluidForm/FluidForm.d.ts +15 -2
- package/lib/components/FluidMultiSelect/FluidFilterableMultiSelect.d.ts +2 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.d.ts +11 -3
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.d.ts +11 -3
- package/lib/components/FluidNumberInput/FluidNumberInput.d.ts +1 -1
- package/lib/components/FluidSearch/FluidSearch.Skeleton.d.ts +11 -3
- package/lib/components/FluidSearch/FluidSearch.d.ts +1 -1
- package/lib/components/FluidSearch/FluidSearch.js +2 -2
- package/lib/components/FluidSelect/FluidSelect.Skeleton.d.ts +11 -3
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.d.ts +11 -3
- package/lib/components/FluidTextArea/FluidTextArea.d.ts +95 -1
- package/lib/components/FluidTextInput/FluidPasswordInput.d.ts +83 -2
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.d.ts +11 -3
- package/lib/components/Grid/GridContext.d.ts +19 -1
- package/lib/components/IconButton/index.d.ts +1 -1
- package/lib/components/Link/Link.js +3 -0
- package/lib/components/ListBox/ListBoxField.d.ts +35 -2
- package/lib/components/ListBox/ListBoxMenuIcon.d.ts +16 -3
- package/lib/components/ListBox/ListBoxMenuItem.d.ts +1 -1
- package/lib/components/ListBox/ListBoxSelection.d.ts +34 -3
- package/lib/components/Menu/MenuItem.d.ts +2 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.d.ts +2 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.js +22 -13
- package/lib/components/MultiSelect/MultiSelect.js +22 -13
- package/lib/components/Notification/Notification.d.ts +8 -7
- package/lib/components/Notification/Notification.js +0 -1
- package/lib/components/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/lib/components/OverflowMenu/OverflowMenu.js +0 -1
- package/lib/components/OverflowMenu/index.d.ts +1 -1
- package/lib/components/PageHeader/PageHeader.d.ts +3 -3
- package/lib/components/Popover/index.js +19 -10
- package/lib/components/Search/Search.d.ts +2 -2
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/SkeletonIcon/SkeletonIcon.d.ts +16 -2
- package/lib/components/SkeletonText/SkeletonText.d.ts +1 -1
- package/lib/components/Tag/Tag.d.ts +1 -1
- package/lib/components/Tag/Tag.js +2 -0
- package/lib/components/Text/Text.d.ts +1 -1
- package/lib/components/Text/Text.js +3 -2
- package/lib/components/Text/TextDirection.d.ts +1 -1
- package/lib/components/Text/TextDirection.js +1 -3
- package/lib/components/Text/TextDirectionContext.d.ts +3 -3
- package/lib/components/TextInput/ControlledPasswordInput.d.ts +1 -1
- package/lib/components/TextInput/PasswordInput.d.ts +1 -1
- package/lib/components/TextInput/TextInput.d.ts +1 -1
- package/lib/components/Toggle/Toggle.Skeleton.d.ts +9 -3
- package/lib/components/Toggletip/index.d.ts +1 -1
- package/lib/components/Toggletip/index.js +7 -5
- package/lib/components/Tooltip/DefinitionTooltip.d.ts +52 -1
- package/lib/components/Tooltip/Tooltip.js +2 -0
- package/lib/components/TreeView/TreeNode.d.ts +4 -4
- package/lib/components/UIShell/Header.d.ts +20 -3
- package/lib/components/UIShell/HeaderGlobalAction.d.ts +2 -2
- package/lib/components/UIShell/HeaderName.js +1 -1
- package/lib/components/UIShell/Link.d.ts +1 -1
- package/lib/components/UIShell/Link.js +13 -13
- package/lib/components/UIShell/SideNav.d.ts +3 -3
- package/lib/components/UIShell/SideNav.js +25 -24
- package/lib/components/UIShell/SideNavDivider.d.ts +11 -3
- package/lib/components/UIShell/SideNavHeader.d.ts +24 -1
- package/lib/components/UIShell/SideNavIcon.d.ts +20 -2
- package/lib/components/UIShell/SideNavItem.d.ts +20 -2
- package/lib/components/UIShell/SideNavItems.d.ts +22 -2
- package/lib/components/UIShell/SideNavLink.d.ts +1 -1
- package/lib/components/UIShell/SideNavLink.js +14 -14
- package/lib/components/UIShell/SideNavMenu.d.ts +1 -1
- package/lib/components/UIShell/SideNavMenuItem.d.ts +2 -2
- package/lib/components/UIShell/SwitcherDivider.d.ts +10 -2
- package/lib/internal/FloatingMenu.d.ts +1 -1
- package/lib/internal/FloatingMenu.js +0 -2
- package/lib/internal/PolymorphicProps.d.ts +3 -3
- package/lib/internal/useNoInteractiveChildren.d.ts +1 -1
- package/lib/internal/useNoInteractiveChildren.js +8 -10
- package/lib/internal/useOutsideClick.d.ts +1 -1
- package/lib/internal/useOutsideClick.js +0 -4
- package/package.json +7 -7
- package/scss/_carbon-utilities.scss +9 -0
- package/telemetry.yml +0 -1
- package/es/internal/createClassWrapper.d.ts +0 -12
- package/lib/internal/createClassWrapper.d.ts +0 -12
|
@@ -34,6 +34,7 @@ var index = require('../FeatureFlags/index.js');
|
|
|
34
34
|
var index$1 = require('../AILabel/index.js');
|
|
35
35
|
var defaultItemToString = require('../../internal/defaultItemToString.js');
|
|
36
36
|
var utils = require('../../internal/utils.js');
|
|
37
|
+
var useNormalizedInputProps = require('../../internal/useNormalizedInputProps.js');
|
|
37
38
|
var ListBoxPropTypes = require('../ListBox/ListBoxPropTypes.js');
|
|
38
39
|
|
|
39
40
|
const {
|
|
@@ -73,9 +74,9 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
73
74
|
clearAnnouncement = 'all items have been cleared',
|
|
74
75
|
clearSelectionDescription = 'Total items selected: ',
|
|
75
76
|
light,
|
|
76
|
-
invalid,
|
|
77
|
+
invalid = false,
|
|
77
78
|
invalidText,
|
|
78
|
-
warn,
|
|
79
|
+
warn = false,
|
|
79
80
|
warnText,
|
|
80
81
|
useTitleInItem,
|
|
81
82
|
translateWithId,
|
|
@@ -256,14 +257,22 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
256
257
|
setIsOpenWrapper(open);
|
|
257
258
|
setPrevOpenProp(open);
|
|
258
259
|
}
|
|
260
|
+
const normalizedProps = useNormalizedInputProps.useNormalizedInputProps({
|
|
261
|
+
id,
|
|
262
|
+
disabled,
|
|
263
|
+
readOnly,
|
|
264
|
+
invalid,
|
|
265
|
+
warn
|
|
266
|
+
});
|
|
259
267
|
const inline = type === 'inline';
|
|
260
|
-
const showWarning =
|
|
268
|
+
const showWarning = normalizedProps.warn;
|
|
269
|
+
const showHelperText = !normalizedProps.warn && !normalizedProps.invalid && helperText;
|
|
261
270
|
const wrapperClasses = cx(`${prefix}--multi-select__wrapper`, `${prefix}--list-box__wrapper`, containerClassName, {
|
|
262
271
|
[`${prefix}--multi-select__wrapper--inline`]: inline,
|
|
263
272
|
[`${prefix}--list-box__wrapper--inline`]: inline,
|
|
264
|
-
[`${prefix}--multi-select__wrapper--inline--invalid`]: inline && invalid,
|
|
265
|
-
[`${prefix}--list-box__wrapper--inline--invalid`]: inline && invalid,
|
|
266
|
-
[`${prefix}--list-box__wrapper--fluid--invalid`]: isFluid && invalid,
|
|
273
|
+
[`${prefix}--multi-select__wrapper--inline--invalid`]: inline && normalizedProps.invalid,
|
|
274
|
+
[`${prefix}--list-box__wrapper--inline--invalid`]: inline && normalizedProps.invalid,
|
|
275
|
+
[`${prefix}--list-box__wrapper--fluid--invalid`]: isFluid && normalizedProps.invalid,
|
|
267
276
|
[`${prefix}--list-box__wrapper--slug`]: slug,
|
|
268
277
|
[`${prefix}--list-box__wrapper--decorator`]: decorator
|
|
269
278
|
});
|
|
@@ -277,8 +286,8 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
277
286
|
[`${prefix}--form__helper-text--disabled`]: disabled
|
|
278
287
|
});
|
|
279
288
|
const className = cx(`${prefix}--multi-select`, {
|
|
280
|
-
[`${prefix}--multi-select--invalid`]: invalid,
|
|
281
|
-
[`${prefix}--multi-select--invalid--focused`]:
|
|
289
|
+
[`${prefix}--multi-select--invalid`]: normalizedProps.invalid,
|
|
290
|
+
[`${prefix}--multi-select--invalid--focused`]: inputFocused && normalizedProps.invalid,
|
|
282
291
|
[`${prefix}--multi-select--warning`]: showWarning,
|
|
283
292
|
[`${prefix}--multi-select--inline`]: inline,
|
|
284
293
|
[`${prefix}--multi-select--selected`]: selectedItems && selectedItems.length > 0,
|
|
@@ -449,13 +458,13 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
449
458
|
className: className,
|
|
450
459
|
disabled: disabled,
|
|
451
460
|
light: light,
|
|
452
|
-
invalid: invalid,
|
|
461
|
+
invalid: normalizedProps.invalid,
|
|
453
462
|
invalidText: invalidText,
|
|
454
|
-
warn: warn,
|
|
463
|
+
warn: normalizedProps.warn,
|
|
455
464
|
warnText: warnText,
|
|
456
465
|
isOpen: isOpen,
|
|
457
466
|
id: id
|
|
458
|
-
}, invalid && /*#__PURE__*/React.createElement(iconsReact.WarningFilled, {
|
|
467
|
+
}, normalizedProps.invalid && /*#__PURE__*/React.createElement(iconsReact.WarningFilled, {
|
|
459
468
|
className: `${prefix}--list-box__invalid-icon`
|
|
460
469
|
}), showWarning && /*#__PURE__*/React.createElement(iconsReact.WarningAltFilled, {
|
|
461
470
|
className: `${prefix}--list-box__invalid-icon ${prefix}--list-box__invalid-icon--warning`
|
|
@@ -475,7 +484,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
475
484
|
className: `${prefix}--list-box__field`,
|
|
476
485
|
disabled: disabled,
|
|
477
486
|
"aria-disabled": disabled || readOnly,
|
|
478
|
-
"aria-describedby": !inline &&
|
|
487
|
+
"aria-describedby": !inline && showHelperText ? helperId : undefined
|
|
479
488
|
}, toggleButtonProps, {
|
|
480
489
|
ref: mergedRef
|
|
481
490
|
}, readOnlyEventHandlers), /*#__PURE__*/React.createElement("span", {
|
|
@@ -530,7 +539,7 @@ const MultiSelect = /*#__PURE__*/React.forwardRef(({
|
|
|
530
539
|
})), itemsCleared && /*#__PURE__*/React.createElement("span", {
|
|
531
540
|
"aria-live": "assertive",
|
|
532
541
|
"aria-label": clearAnnouncement
|
|
533
|
-
})), !inline &&
|
|
542
|
+
})), !inline && showHelperText && /*#__PURE__*/React.createElement("div", {
|
|
534
543
|
id: helperId,
|
|
535
544
|
className: helperClasses
|
|
536
545
|
}, helperText));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2026
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import React, { type ReactNode, type MouseEvent, type ButtonHTMLAttributes, type HTMLAttributes, type ComponentProps } from 'react';
|
|
9
9
|
import Button, { type ButtonProps } from '../Button';
|
|
10
|
+
type NotificationCloseHandler = ((event: MouseEvent) => boolean) | ((event: MouseEvent) => void);
|
|
10
11
|
export interface NotificationActionButtonProps extends ButtonProps<'button'> {
|
|
11
12
|
/**
|
|
12
13
|
* Specify the content of the notification action button.
|
|
@@ -151,7 +152,7 @@ export interface ToastNotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
151
152
|
/**
|
|
152
153
|
* Provide a function that is called when menu is closed
|
|
153
154
|
*/
|
|
154
|
-
onClose
|
|
155
|
+
onClose?: NotificationCloseHandler;
|
|
155
156
|
/**
|
|
156
157
|
* Provide a function that is called when the close button is clicked
|
|
157
158
|
*/
|
|
@@ -277,7 +278,7 @@ export interface InlineNotificationProps extends HTMLAttributes<HTMLDivElement>
|
|
|
277
278
|
/**
|
|
278
279
|
* Provide a function that is called when menu is closed
|
|
279
280
|
*/
|
|
280
|
-
onClose
|
|
281
|
+
onClose?: NotificationCloseHandler;
|
|
281
282
|
/**
|
|
282
283
|
* Provide a function that is called when the close button is clicked
|
|
283
284
|
*/
|
|
@@ -409,7 +410,7 @@ export interface ActionableNotificationProps extends HTMLAttributes<HTMLDivEleme
|
|
|
409
410
|
* Provide a function that is called when menu is closed.
|
|
410
411
|
* Default behavior of hiding the notification is prevented if this function returns false.
|
|
411
412
|
*/
|
|
412
|
-
onClose
|
|
413
|
+
onClose?: NotificationCloseHandler;
|
|
413
414
|
/**
|
|
414
415
|
* Provide a function that is called when the close button is clicked
|
|
415
416
|
*/
|
|
@@ -617,6 +618,6 @@ export declare namespace Callout {
|
|
|
617
618
|
/**
|
|
618
619
|
* @deprecated Use `CalloutProps` instead.
|
|
619
620
|
*/
|
|
620
|
-
export
|
|
621
|
-
|
|
622
|
-
export
|
|
621
|
+
export type StaticNotificationProps = CalloutProps;
|
|
622
|
+
export declare const StaticNotification: (props: StaticNotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
623
|
+
export {};
|
|
@@ -812,7 +812,6 @@ Callout.propTypes = {
|
|
|
812
812
|
/**
|
|
813
813
|
* @deprecated Use `CalloutProps` instead.
|
|
814
814
|
*/
|
|
815
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
816
815
|
|
|
817
816
|
let didWarnAboutDeprecation = false;
|
|
818
817
|
const StaticNotification = props => {
|
|
@@ -79,7 +79,6 @@ const getMenuOffset = (menuBody, direction, trigger, flip) => {
|
|
|
79
79
|
case 'top':
|
|
80
80
|
case 'bottom':
|
|
81
81
|
{
|
|
82
|
-
// TODO: Ensure `trigger` is there for `<OverflowMenu open>`
|
|
83
82
|
const triggerWidth = !trigger ? 0 : trigger.offsetWidth;
|
|
84
83
|
return {
|
|
85
84
|
left: (!flip ? 1 : -1) * (menuWidth / 2 - triggerWidth / 2),
|
|
@@ -4,7 +4,7 @@
|
|
|
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, { type
|
|
7
|
+
import React, { type ElementType } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { TYPES } from '../Tag/Tag';
|
|
10
10
|
/**
|
|
@@ -32,7 +32,7 @@ interface PageHeaderBreadcrumbBarProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* Provide an optional icon to render in front of the PageHeaderContent's title.
|
|
34
34
|
*/
|
|
35
|
-
renderIcon?:
|
|
35
|
+
renderIcon?: ElementType;
|
|
36
36
|
/**
|
|
37
37
|
* The PageHeaderBreadcrumbBar's content actions
|
|
38
38
|
*/
|
|
@@ -68,7 +68,7 @@ interface PageHeaderContentProps {
|
|
|
68
68
|
/**
|
|
69
69
|
* Provide an optional icon to render in front of the PageHeaderContent's title.
|
|
70
70
|
*/
|
|
71
|
-
renderIcon?:
|
|
71
|
+
renderIcon?: ElementType;
|
|
72
72
|
/**
|
|
73
73
|
* The PageHeaderContent's title
|
|
74
74
|
*/
|
|
@@ -149,7 +149,9 @@ forwardRef) {
|
|
|
149
149
|
refs,
|
|
150
150
|
floatingStyles,
|
|
151
151
|
placement,
|
|
152
|
-
middlewareData
|
|
152
|
+
middlewareData,
|
|
153
|
+
elements,
|
|
154
|
+
update
|
|
153
155
|
} = react.useFloating(enableFloatingStyles ? {
|
|
154
156
|
placement: align,
|
|
155
157
|
// The floating element is positioned relative to its nearest
|
|
@@ -169,12 +171,18 @@ forwardRef) {
|
|
|
169
171
|
}), react.arrow({
|
|
170
172
|
element: caretRef,
|
|
171
173
|
padding: 16
|
|
172
|
-
}), autoAlign && react.hide()]
|
|
173
|
-
whileElementsMounted: react.autoUpdate
|
|
174
|
+
}), autoAlign && react.hide()]
|
|
174
175
|
} : {}
|
|
175
176
|
// When autoAlign is turned off & the `enable-v12-dynamic-floating-styles` feature flag is not
|
|
176
177
|
// enabled, floating-ui will not be used
|
|
177
178
|
);
|
|
179
|
+
React.useEffect(() => {
|
|
180
|
+
if (!enableFloatingStyles) return;
|
|
181
|
+
if (open && elements.reference && elements.floating) {
|
|
182
|
+
const cleanup = react.autoUpdate(elements.reference, elements.floating, update);
|
|
183
|
+
return cleanup;
|
|
184
|
+
}
|
|
185
|
+
}, [enableFloatingStyles, open, elements, update]);
|
|
178
186
|
const value = React.useMemo(() => {
|
|
179
187
|
return {
|
|
180
188
|
floating,
|
|
@@ -399,11 +407,13 @@ Popover.propTypes = {
|
|
|
399
407
|
*/
|
|
400
408
|
open: PropTypes.bool.isRequired
|
|
401
409
|
};
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
410
|
+
const frFn = React.forwardRef;
|
|
411
|
+
const PopoverContent = frFn((props, forwardRef) => {
|
|
412
|
+
const {
|
|
413
|
+
className,
|
|
414
|
+
children,
|
|
415
|
+
...rest
|
|
416
|
+
} = props;
|
|
407
417
|
const prefix = usePrefix.usePrefix();
|
|
408
418
|
const {
|
|
409
419
|
setFloating,
|
|
@@ -429,8 +439,7 @@ function PopoverContentRenderFunction({
|
|
|
429
439
|
}),
|
|
430
440
|
ref: caretRef
|
|
431
441
|
}));
|
|
432
|
-
}
|
|
433
|
-
const PopoverContent = /*#__PURE__*/React.forwardRef(PopoverContentRenderFunction);
|
|
442
|
+
});
|
|
434
443
|
PopoverContent.displayName = 'PopoverContent';
|
|
435
444
|
PopoverContent.propTypes = {
|
|
436
445
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
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, { type ChangeEvent, type
|
|
7
|
+
import React, { type ChangeEvent, type ElementType, type HTMLAttributes, type KeyboardEvent, type MouseEvent, type ReactNode } from 'react';
|
|
8
8
|
type InputPropsBase = Omit<HTMLAttributes<HTMLInputElement>, 'onChange'>;
|
|
9
9
|
export interface SearchProps extends InputPropsBase {
|
|
10
10
|
/**
|
|
@@ -61,7 +61,7 @@ export interface SearchProps extends InputPropsBase {
|
|
|
61
61
|
/**
|
|
62
62
|
* A component used to render an icon.
|
|
63
63
|
*/
|
|
64
|
-
renderIcon?:
|
|
64
|
+
renderIcon?: ElementType;
|
|
65
65
|
/**
|
|
66
66
|
* @deprecated Specify the role for the underlying `<input>`.
|
|
67
67
|
* No longer needed since `<input type="search">` already provides the correct semantics.
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
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';
|
|
2
8
|
export interface SkeletonIconProps {
|
|
3
9
|
/**
|
|
4
10
|
* Specify an optional className to add.
|
|
5
11
|
*/
|
|
6
12
|
className?: string;
|
|
7
13
|
}
|
|
8
|
-
declare const SkeletonIcon:
|
|
14
|
+
declare const SkeletonIcon: {
|
|
15
|
+
({ className, ...other }: SkeletonIconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
propTypes: {
|
|
17
|
+
/**
|
|
18
|
+
* Specify an optional className to add.
|
|
19
|
+
*/
|
|
20
|
+
className: PropTypes.Requireable<string>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
9
23
|
export default SkeletonIcon;
|
|
@@ -72,7 +72,7 @@ export interface TagBaseProps {
|
|
|
72
72
|
*/
|
|
73
73
|
slug?: ReactNode;
|
|
74
74
|
/**
|
|
75
|
-
* @deprecated The `title` prop has been deprecated and will be removed in the next major version. Use
|
|
75
|
+
* @deprecated The `title` prop has been deprecated and will be removed in the next major version. Use `children` instead.
|
|
76
76
|
*/
|
|
77
77
|
title?: string;
|
|
78
78
|
/**
|
|
@@ -156,6 +156,8 @@ const TagBase = /*#__PURE__*/React.forwardRef(({
|
|
|
156
156
|
}, normalizedDecorator) : '');
|
|
157
157
|
});
|
|
158
158
|
const Tag = TagBase;
|
|
159
|
+
|
|
160
|
+
// @ts-expect-error - `propTypes` isn't typed.
|
|
159
161
|
Tag.propTypes = {
|
|
160
162
|
/**
|
|
161
163
|
* Provide an alternative tag or component to use instead of the default
|
|
@@ -13,7 +13,7 @@ var React = require('react');
|
|
|
13
13
|
var TextDirectionContext = require('./TextDirectionContext.js');
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line react/display-name -- https://github.com/carbon-design-system/carbon/issues/20452
|
|
16
|
-
const
|
|
16
|
+
const Text = /*#__PURE__*/React.forwardRef(({
|
|
17
17
|
as,
|
|
18
18
|
children,
|
|
19
19
|
dir = 'auto',
|
|
@@ -55,7 +55,8 @@ const TextBase = /*#__PURE__*/React.forwardRef(({
|
|
|
55
55
|
ref: ref
|
|
56
56
|
}, rest, textProps), children));
|
|
57
57
|
});
|
|
58
|
-
|
|
58
|
+
|
|
59
|
+
// @ts-expect-error - `propTypes` isn't typed.
|
|
59
60
|
Text.propTypes = {
|
|
60
61
|
/**
|
|
61
62
|
* Provide a custom element type used to render the outermost node
|
|
@@ -25,9 +25,7 @@ const TextDirection = ({
|
|
|
25
25
|
}, [dir]);
|
|
26
26
|
React.useEffect(() => {
|
|
27
27
|
savedCallback.current = getTextDirection;
|
|
28
|
-
|
|
29
|
-
// `getTextDirection`?
|
|
30
|
-
});
|
|
28
|
+
}, [getTextDirection]);
|
|
31
29
|
return /*#__PURE__*/React.createElement(TextDirectionContext.TextDirectionContext.Provider, {
|
|
32
30
|
value: value
|
|
33
31
|
}, children);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2026
|
|
3
3
|
*
|
|
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 { type
|
|
7
|
+
import { type RefObject } from 'react';
|
|
8
8
|
export type TextDir = 'ltr' | 'rtl' | 'auto' | string;
|
|
9
9
|
export type GetTextDirection = (text: string | string[] | undefined) => TextDir;
|
|
10
10
|
export interface TextDirectionContextType {
|
|
11
11
|
direction: TextDir;
|
|
12
|
-
getTextDirection:
|
|
12
|
+
getTextDirection: RefObject<GetTextDirection | undefined>;
|
|
13
13
|
}
|
|
14
14
|
export declare const TextDirectionContext: import("react").Context<TextDirectionContextType>;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
3
3
|
*
|
|
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
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
8
|
export interface ToggleSkeletonProps {
|
|
9
9
|
'aria-label'?: string;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const ToggleSkeleton:
|
|
12
|
+
declare const ToggleSkeleton: {
|
|
13
|
+
({ className, ...rest }: ToggleSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
propTypes: {
|
|
15
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
16
|
+
className: PropTypes.Requireable<string>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
13
19
|
export default ToggleSkeleton;
|
|
14
20
|
export { ToggleSkeleton };
|
|
@@ -188,7 +188,6 @@ Toggletip.propTypes = {
|
|
|
188
188
|
* `ToggletipButton` controls the visibility of the Toggletip through mouse
|
|
189
189
|
* clicks and keyboard interactions.
|
|
190
190
|
*/
|
|
191
|
-
|
|
192
191
|
const ToggletipButton = /*#__PURE__*/React.forwardRef(function ToggletipButton({
|
|
193
192
|
children,
|
|
194
193
|
className: customClassName,
|
|
@@ -229,15 +228,18 @@ ToggletipButton.propTypes = {
|
|
|
229
228
|
label: PropTypes.string
|
|
230
229
|
};
|
|
231
230
|
ToggletipButton.displayName = 'ToggletipButton';
|
|
231
|
+
const frFn = React.forwardRef;
|
|
232
|
+
|
|
232
233
|
/**
|
|
233
234
|
* `ToggletipContent` is a wrapper around `PopoverContent`. It places the
|
|
234
235
|
* `children` passed in as a prop inside of `PopoverContent` so that they will
|
|
235
236
|
* be rendered inside of the popover for this component.
|
|
236
237
|
*/
|
|
237
|
-
const ToggletipContent =
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
const ToggletipContent = frFn((props, ref) => {
|
|
239
|
+
const {
|
|
240
|
+
children,
|
|
241
|
+
className: customClassName
|
|
242
|
+
} = props;
|
|
241
243
|
const toggletip = useToggletip();
|
|
242
244
|
const prefix = usePrefix.usePrefix();
|
|
243
245
|
return /*#__PURE__*/React.createElement(index.PopoverContent, _rollupPluginBabelHelpers.extends({
|
|
@@ -4,6 +4,7 @@
|
|
|
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 PropTypes from 'prop-types';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import { PopoverAlignment } from '../Popover';
|
|
9
10
|
export interface DefinitionTooltipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'id' | 'classname' | 'children' | 'type'> {
|
|
@@ -54,5 +55,55 @@ export interface DefinitionTooltipProps extends Omit<React.ButtonHTMLAttributes<
|
|
|
54
55
|
*/
|
|
55
56
|
triggerClassName?: string;
|
|
56
57
|
}
|
|
57
|
-
declare const DefinitionTooltip:
|
|
58
|
+
declare const DefinitionTooltip: {
|
|
59
|
+
({ align, autoAlign, className, children, definition, defaultOpen, id, openOnHover, tooltipText, triggerClassName, ...rest }: DefinitionTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
propTypes: {
|
|
61
|
+
/**
|
|
62
|
+
* Specify how the trigger should align with the tooltip
|
|
63
|
+
*/
|
|
64
|
+
align: PropTypes.Requireable<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Will auto-align the popover. This prop is currently experimental and is
|
|
67
|
+
* subject to future changes. Requires React v17+
|
|
68
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
69
|
+
*/
|
|
70
|
+
autoAlign: PropTypes.Requireable<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* The `children` prop will be used as the value that is being defined
|
|
73
|
+
*/
|
|
74
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
75
|
+
/**
|
|
76
|
+
* Specify an optional className to be applied to the container node
|
|
77
|
+
*/
|
|
78
|
+
className: PropTypes.Requireable<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Specify whether the tooltip should be open when it first renders
|
|
81
|
+
*/
|
|
82
|
+
defaultOpen: PropTypes.Requireable<boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* The `definition` prop is used as the content inside of the tooltip that
|
|
85
|
+
* appears when a user interacts with the element rendered by the `children`
|
|
86
|
+
* prop
|
|
87
|
+
*/
|
|
88
|
+
definition: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
89
|
+
/**
|
|
90
|
+
* Provide a value that will be assigned as the id of the tooltip
|
|
91
|
+
*/
|
|
92
|
+
id: PropTypes.Requireable<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Specifies whether or not the `DefinitionTooltip` should open on hover or not
|
|
95
|
+
*/
|
|
96
|
+
openOnHover: PropTypes.Requireable<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* [Deprecated in v11] Please use the `definition` prop instead.
|
|
99
|
+
*
|
|
100
|
+
* Provide the text that will be displayed in the tooltip when it is rendered.
|
|
101
|
+
*/
|
|
102
|
+
tooltipText: (props: Record<string, any>, propName: string, componentName: string, ...rest: any[]) => any;
|
|
103
|
+
/**
|
|
104
|
+
* The CSS class name of the trigger element
|
|
105
|
+
*/
|
|
106
|
+
triggerClassName: PropTypes.Requireable<string>;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
58
109
|
export { DefinitionTooltip };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2026
|
|
3
3
|
*
|
|
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, { type
|
|
7
|
+
import React, { type ElementType } from 'react';
|
|
8
8
|
type UncontrolledOnToggle = (event: React.MouseEvent | React.KeyboardEvent, node: Pick<TreeNodeProps, 'id' | 'label' | 'value' | 'isExpanded'>) => void;
|
|
9
9
|
type ControlledOnToggle = (isExpanded: TreeNodeProps['isExpanded']) => void;
|
|
10
10
|
export type TreeNodeProps = {
|
|
@@ -78,7 +78,7 @@ export type TreeNodeProps = {
|
|
|
78
78
|
/**
|
|
79
79
|
* A component used to render an icon.
|
|
80
80
|
*/
|
|
81
|
-
renderIcon?:
|
|
81
|
+
renderIcon?: ElementType;
|
|
82
82
|
/**
|
|
83
83
|
* **Note:** this is controlled by the parent TreeView component, do not set manually.
|
|
84
84
|
* Array containing all selected node IDs in the tree
|
|
@@ -178,7 +178,7 @@ declare const TreeNode: React.ForwardRefExoticComponent<{
|
|
|
178
178
|
/**
|
|
179
179
|
* A component used to render an icon.
|
|
180
180
|
*/
|
|
181
|
-
renderIcon?:
|
|
181
|
+
renderIcon?: ElementType;
|
|
182
182
|
/**
|
|
183
183
|
* **Note:** this is controlled by the parent TreeView component, do not set manually.
|
|
184
184
|
* Array containing all selected node IDs in the tree
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2016,
|
|
2
|
+
* Copyright IBM Corp. 2016, 2025
|
|
3
3
|
*
|
|
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
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
8
9
|
export interface HeaderProps {
|
|
9
10
|
children?: ReactNode;
|
|
10
11
|
/**
|
|
@@ -20,5 +21,21 @@ export interface HeaderProps {
|
|
|
20
21
|
*/
|
|
21
22
|
className?: string;
|
|
22
23
|
}
|
|
23
|
-
declare const Header:
|
|
24
|
+
declare const Header: {
|
|
25
|
+
({ className: customClassName, children, ...rest }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
propTypes: {
|
|
27
|
+
/**
|
|
28
|
+
* Optionally provide aria-label
|
|
29
|
+
*/
|
|
30
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Optionally provide aria-labelledby
|
|
33
|
+
*/
|
|
34
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Optionally provide a custom class name that is applied to the underlying header
|
|
37
|
+
*/
|
|
38
|
+
className: PropTypes.Requireable<string>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
24
41
|
export default Header;
|