@carbon/react 1.110.0-rc.0 → 1.111.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 +994 -994
- package/es/components/AILabel/index.js +47 -0
- package/es/components/AISkeleton/AISkeletonIcon.js +6 -0
- package/es/components/AISkeleton/AISkeletonPlaceholder.js +6 -1
- package/es/components/AISkeleton/AISkeletonText.js +15 -0
- package/es/components/Accordion/Accordion.Skeleton.js +15 -0
- package/es/components/Accordion/Accordion.js +22 -0
- package/es/components/Accordion/AccordionItem.js +33 -0
- package/es/components/AspectRatio/AspectRatio.js +19 -0
- package/es/components/BadgeIndicator/index.js +9 -0
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +12 -0
- package/es/components/Breadcrumb/Breadcrumb.js +16 -0
- package/es/components/Breadcrumb/BreadcrumbItem.js +12 -0
- package/es/components/Button/Button.Skeleton.js +17 -0
- package/es/components/Button/Button.js +96 -0
- package/es/components/ButtonSet/ButtonSet.js +14 -0
- package/es/components/ChatButton/ChatButton.Skeleton.js +6 -0
- package/es/components/ChatButton/ChatButton.js +24 -0
- package/es/components/Checkbox/Checkbox.Skeleton.js +5 -1
- package/es/components/Checkbox/Checkbox.js +57 -0
- package/es/components/CheckboxGroup/CheckboxGroup.js +40 -0
- package/es/components/ClassPrefix/index.js +3 -0
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +6 -0
- package/es/components/CodeSnippet/CodeSnippet.js +76 -0
- package/es/components/ComboBox/ComboBox.js +140 -0
- package/es/components/ComboButton/index.js +27 -0
- package/es/components/ComposedModal/ComposedModal.js +68 -0
- package/es/components/ComposedModal/ModalFooter.js +63 -0
- package/es/components/ComposedModal/ModalHeader.js +35 -0
- package/es/components/ContainedList/ContainedList.js +21 -0
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +18 -0
- package/es/components/ContentSwitcher/ContentSwitcher.js +25 -0
- package/es/components/Copy/Copy.js +29 -0
- package/es/components/CopyButton/CopyButton.js +26 -0
- package/es/components/DataTable/DataTable.js +59 -0
- package/es/components/DataTable/Table.js +27 -0
- package/es/components/DataTable/TableBatchAction.js +10 -0
- package/es/components/DataTable/TableBatchActions.js +24 -0
- package/es/components/DataTable/TableBody.js +3 -0
- package/es/components/DataTable/TableCell.js +15 -0
- package/es/components/DataTable/TableContainer.js +18 -0
- package/es/components/DataTable/TableDecoratorRow.js +6 -0
- package/es/components/DataTable/TableExpandHeader.js +31 -0
- package/es/components/DataTable/TableExpandRow.js +29 -0
- package/es/components/DataTable/TableExpandedRow.js +9 -0
- package/es/components/DataTable/TableHeader.js +35 -0
- package/es/components/DataTable/TableRow.js +21 -0
- package/es/components/DataTable/TableSelectAll.js +28 -0
- package/es/components/DataTable/TableSelectRow.js +31 -0
- package/es/components/DataTable/TableSlugRow.js +6 -0
- package/es/components/DataTable/TableToolbar.js +15 -0
- package/es/components/DataTable/TableToolbarMenu.js +15 -0
- package/es/components/DataTable/TableToolbarSearch.js +58 -0
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +24 -0
- package/es/components/DatePicker/DatePicker.Skeleton.js +12 -0
- package/es/components/DatePicker/DatePicker.js +88 -0
- package/es/components/DatePickerInput/DatePickerInput.js +79 -0
- package/es/components/Dialog/Dialog.js +130 -3
- package/es/components/Dropdown/Dropdown.Skeleton.js +9 -0
- package/es/components/Dropdown/Dropdown.js +109 -0
- package/es/components/FeatureFlags/index.js +3 -0
- package/es/components/FileUploader/FileUploader.Skeleton.js +5 -1
- package/es/components/FileUploader/FileUploader.js +57 -0
- package/es/components/FileUploader/FileUploaderButton.js +47 -0
- package/es/components/FileUploader/FileUploaderDropContainer.js +42 -0
- package/es/components/FileUploader/FileUploaderItem.js +29 -0
- package/es/components/FileUploader/Filename.js +18 -0
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +5 -1
- package/es/components/FluidComboBox/FluidComboBox.js +61 -0
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +6 -0
- package/es/components/FluidDatePicker/FluidDatePicker.js +21 -0
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +5 -1
- package/es/components/FluidDropdown/FluidDropdown.js +65 -0
- package/es/components/FluidForm/FluidForm.js +6 -0
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +5 -1
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +128 -0
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +5 -1
- package/es/components/FluidNumberInput/FluidNumberInput.js +95 -0
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +5 -1
- package/es/components/FluidSearch/FluidSearch.js +45 -0
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +5 -1
- package/es/components/FluidSelect/FluidSelect.js +38 -0
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +5 -1
- package/es/components/FluidTextArea/FluidTextArea.js +67 -0
- package/es/components/FluidTextInput/FluidPasswordInput.js +58 -0
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +5 -1
- package/es/components/FluidTextInput/FluidTextInput.js +54 -0
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +6 -0
- package/es/components/FluidTimePicker/FluidTimePicker.js +28 -0
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +26 -0
- package/es/components/Form/Form.js +6 -0
- package/es/components/FormGroup/FormGroup.js +25 -0
- package/es/components/FormItem/FormItem.js +6 -0
- package/es/components/FormLabel/FormLabel.js +9 -0
- package/es/components/Grid/CSSGrid.js +43 -0
- package/es/components/Grid/Column.js +86 -0
- package/es/components/Grid/ColumnHang.js +9 -0
- package/es/components/Grid/FlexGrid.js +24 -0
- package/es/components/Grid/Grid.js +27 -0
- package/es/components/Grid/GridContext.js +10 -0
- package/es/components/Grid/Row.js +17 -0
- package/es/components/Heading/index.js +19 -0
- package/es/components/Icon/Icon.Skeleton.js +5 -1
- package/es/components/IconButton/index.js +68 -0
- package/es/components/IconIndicator/index.js +12 -0
- package/es/components/IdPrefix/index.js +3 -0
- package/es/components/InlineCheckbox/InlineCheckbox.js +34 -0
- package/es/components/InlineLoading/InlineLoading.js +19 -0
- package/es/components/Layer/index.js +17 -0
- package/es/components/Layout/index.js +34 -0
- package/es/components/LayoutDirection/LayoutDirection.js +10 -0
- package/es/components/Link/Link.d.ts +1 -1
- package/es/components/Link/Link.js +28 -0
- package/es/components/ListBox/ListBox.js +41 -0
- package/es/components/ListBox/ListBoxField.js +17 -0
- package/es/components/ListBox/ListBoxMenu.js +6 -0
- package/es/components/ListBox/ListBoxMenuIcon.js +7 -0
- package/es/components/ListBox/ListBoxMenuItem.js +16 -0
- package/es/components/ListBox/ListBoxSelection.d.ts +1 -1
- package/es/components/ListBox/ListBoxSelection.js +32 -9
- package/es/components/ListBox/next/ListBoxSelection.d.ts +1 -1
- package/es/components/ListBox/next/ListBoxSelection.js +41 -6
- package/es/components/ListBox/next/ListBoxTrigger.js +7 -0
- package/es/components/ListItem/ListItem.js +6 -0
- package/es/components/Loading/Loading.js +18 -0
- package/es/components/Menu/Menu.js +52 -0
- package/es/components/Menu/MenuContext.d.ts +11 -12
- package/es/components/Menu/MenuItem.js +77 -1
- package/es/components/MenuButton/index.js +33 -0
- package/es/components/Modal/Modal.js +115 -1
- package/es/components/MultiSelect/FilterableMultiSelect.js +128 -0
- package/es/components/MultiSelect/MultiSelect.js +149 -1
- package/es/components/MultiSelect/MultiSelectPropTypes.js +25 -0
- package/es/components/Notification/Notification.js +207 -0
- package/es/components/NumberInput/NumberInput.Skeleton.js +9 -0
- package/es/components/NumberInput/NumberInput.js +138 -0
- package/es/components/OrderedList/OrderedList.js +15 -0
- package/es/components/OverflowMenu/OverflowMenu.js +76 -0
- package/es/components/OverflowMenu/next/index.js +30 -0
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +36 -0
- package/es/components/PageHeader/PageHeader.js +48 -0
- package/es/components/Pagination/Pagination.Skeleton.js +5 -1
- package/es/components/Pagination/Pagination.d.ts +8 -0
- package/es/components/Pagination/Pagination.js +85 -3
- package/es/components/Pagination/experimental/PageSelector.js +8 -0
- package/es/components/Pagination/experimental/Pagination.js +54 -0
- package/es/components/PaginationNav/PaginationNav.js +80 -0
- package/es/components/Popover/index.js +58 -0
- package/es/components/ProgressBar/ProgressBar.js +27 -0
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +6 -0
- package/es/components/ProgressIndicator/ProgressIndicator.js +58 -0
- package/es/components/RadioButton/RadioButton.Skeleton.js +5 -1
- package/es/components/RadioButton/RadioButton.js +63 -0
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +59 -0
- package/es/components/RadioTile/RadioTile.js +45 -0
- package/es/components/Search/Search.Skeleton.js +9 -0
- package/es/components/Search/Search.js +66 -1
- package/es/components/Select/Select.Skeleton.js +6 -0
- package/es/components/Select/Select.js +82 -19
- package/es/components/SelectItem/SelectItem.js +15 -0
- package/es/components/SelectItemGroup/SelectItemGroup.js +12 -0
- package/es/components/ShapeIndicator/index.js +12 -0
- package/es/components/SkeletonIcon/SkeletonIcon.js +5 -1
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +5 -1
- package/es/components/SkeletonText/SkeletonText.js +15 -0
- package/es/components/Slider/Slider.Skeleton.js +15 -0
- package/es/components/Slider/Slider.js +104 -0
- package/es/components/Stack/Stack.js +20 -0
- package/es/components/StructuredList/StructuredList.Skeleton.js +6 -0
- package/es/components/StructuredList/StructuredList.js +97 -0
- package/es/components/Switch/IconSwitch.js +47 -0
- package/es/components/Switch/Switch.js +30 -0
- package/es/components/TabContent/TabContent.js +9 -0
- package/es/components/Tabs/Tabs.Skeleton.js +6 -0
- package/es/components/Tabs/Tabs.d.ts +15 -1
- package/es/components/Tabs/Tabs.js +185 -5
- package/es/components/Tag/DismissibleTag.js +43 -0
- package/es/components/Tag/OperationalTag.js +22 -0
- package/es/components/Tag/SelectableTag.js +31 -0
- package/es/components/Tag/Tag.Skeleton.js +7 -0
- package/es/components/Tag/Tag.js +41 -0
- package/es/components/Text/Text.js +10 -0
- package/es/components/Text/TextDirection.js +11 -0
- package/es/components/TextArea/TextArea.Skeleton.js +6 -0
- package/es/components/TextArea/TextArea.js +80 -0
- package/es/components/TextInput/ControlledPasswordInput.js +64 -0
- package/es/components/TextInput/PasswordInput.js +83 -0
- package/es/components/TextInput/TextInput.Skeleton.js +9 -0
- package/es/components/TextInput/TextInput.js +76 -0
- package/es/components/Theme/index.js +21 -0
- package/es/components/Tile/Tile.js +157 -2
- package/es/components/TileGroup/TileGroup.js +28 -0
- package/es/components/TimePicker/TimePicker.js +67 -0
- package/es/components/TimePickerSelect/TimePickerSelect.js +15 -0
- package/es/components/Toggle/Toggle.js +46 -0
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +11 -0
- package/es/components/Toggletip/index.js +38 -0
- package/es/components/Tooltip/DefinitionTooltip.js +36 -0
- package/es/components/Tooltip/Tooltip.js +46 -0
- package/es/components/TreeView/TreeNode.js +64 -0
- package/es/components/TreeView/TreeView.js +32 -0
- package/es/components/UIShell/Content.js +9 -0
- package/es/components/UIShell/Header.js +9 -0
- package/es/components/UIShell/HeaderContainer.js +9 -0
- package/es/components/UIShell/HeaderGlobalAction.js +28 -0
- package/es/components/UIShell/HeaderMenu.js +37 -0
- package/es/components/UIShell/HeaderMenuButton.js +17 -0
- package/es/components/UIShell/HeaderMenuItem.js +25 -0
- package/es/components/UIShell/HeaderName.js +18 -0
- package/es/components/UIShell/HeaderNavigation.js +10 -0
- package/es/components/UIShell/HeaderPanel.js +19 -0
- package/es/components/UIShell/HeaderSideNavItems.js +11 -0
- package/es/components/UIShell/Link.js +14 -0
- package/es/components/UIShell/SideNav.js +53 -0
- package/es/components/UIShell/SideNavDetails.js +10 -0
- package/es/components/UIShell/SideNavDivider.js +5 -1
- package/es/components/UIShell/SideNavFooter.js +11 -0
- package/es/components/UIShell/SideNavHeader.js +13 -0
- package/es/components/UIShell/SideNavIcon.js +10 -0
- package/es/components/UIShell/SideNavItem.js +10 -0
- package/es/components/UIShell/SideNavItems.js +11 -0
- package/es/components/UIShell/SideNavLink.js +22 -0
- package/es/components/UIShell/SideNavLinkText.js +6 -0
- package/es/components/UIShell/SideNavMenu.js +31 -0
- package/es/components/UIShell/SideNavMenuItem.js +17 -0
- package/es/components/UIShell/SideNavSwitcher.js +16 -0
- package/es/components/UIShell/SkipToContent.js +11 -0
- package/es/components/UIShell/Switcher.js +12 -0
- package/es/components/UIShell/SwitcherDivider.js +5 -1
- package/es/components/UIShell/SwitcherItem.js +30 -0
- package/es/components/UnorderedList/UnorderedList.js +12 -0
- package/es/index.d.ts +1 -0
- package/es/internal/OptimizedResize.js +6 -2
- package/es/internal/usePresence.js +6 -0
- package/es/internal/warnAboutDeprecatedReactVersion.d.ts +7 -0
- package/lib/components/AILabel/index.js +47 -0
- package/lib/components/AISkeleton/AISkeletonIcon.js +6 -0
- package/lib/components/AISkeleton/AISkeletonPlaceholder.js +6 -1
- package/lib/components/AISkeleton/AISkeletonText.js +15 -0
- package/lib/components/Accordion/Accordion.Skeleton.js +15 -0
- package/lib/components/Accordion/Accordion.js +22 -0
- package/lib/components/Accordion/AccordionItem.js +33 -0
- package/lib/components/AspectRatio/AspectRatio.js +19 -0
- package/lib/components/BadgeIndicator/index.js +9 -0
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +12 -0
- package/lib/components/Breadcrumb/Breadcrumb.js +16 -0
- package/lib/components/Breadcrumb/BreadcrumbItem.js +12 -0
- package/lib/components/Button/Button.Skeleton.js +17 -0
- package/lib/components/Button/Button.js +96 -0
- package/lib/components/ButtonSet/ButtonSet.js +14 -0
- package/lib/components/ChatButton/ChatButton.Skeleton.js +6 -0
- package/lib/components/ChatButton/ChatButton.js +24 -0
- package/lib/components/Checkbox/Checkbox.Skeleton.js +5 -1
- package/lib/components/Checkbox/Checkbox.js +57 -0
- package/lib/components/CheckboxGroup/CheckboxGroup.js +40 -0
- package/lib/components/ClassPrefix/index.js +3 -0
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +6 -0
- package/lib/components/CodeSnippet/CodeSnippet.js +76 -0
- package/lib/components/ComboBox/ComboBox.js +140 -0
- package/lib/components/ComboButton/index.js +27 -0
- package/lib/components/ComposedModal/ComposedModal.js +68 -0
- package/lib/components/ComposedModal/ComposedModalContext.js +0 -1
- package/lib/components/ComposedModal/ModalFooter.js +63 -0
- package/lib/components/ComposedModal/ModalHeader.js +35 -0
- package/lib/components/ComposedModal/useComposedModalState.js +0 -1
- package/lib/components/ContainedList/ContainedList.js +21 -0
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +18 -0
- package/lib/components/ContainedList/index.js +2 -2
- package/lib/components/ContentSwitcher/ContentSwitcher.js +25 -0
- package/lib/components/ContextMenu/useContextMenu.js +0 -1
- package/lib/components/Copy/Copy.js +29 -0
- package/lib/components/CopyButton/CopyButton.js +26 -0
- package/lib/components/DataTable/DataTable.js +59 -0
- package/lib/components/DataTable/Table.js +27 -0
- package/lib/components/DataTable/TableBatchAction.js +10 -0
- package/lib/components/DataTable/TableBatchActions.js +24 -0
- package/lib/components/DataTable/TableBody.js +3 -0
- package/lib/components/DataTable/TableCell.js +15 -0
- package/lib/components/DataTable/TableContainer.js +18 -0
- package/lib/components/DataTable/TableContext.js +0 -1
- package/lib/components/DataTable/TableDecoratorRow.js +6 -0
- package/lib/components/DataTable/TableExpandHeader.js +31 -0
- package/lib/components/DataTable/TableExpandRow.js +29 -0
- package/lib/components/DataTable/TableExpandedRow.js +9 -0
- package/lib/components/DataTable/TableHeader.js +35 -0
- package/lib/components/DataTable/TableRow.js +21 -0
- package/lib/components/DataTable/TableSelectAll.js +28 -0
- package/lib/components/DataTable/TableSelectRow.js +31 -0
- package/lib/components/DataTable/TableSlugRow.js +6 -0
- package/lib/components/DataTable/TableToolbar.js +15 -0
- package/lib/components/DataTable/TableToolbarMenu.js +15 -0
- package/lib/components/DataTable/TableToolbarSearch.js +58 -0
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +24 -0
- package/lib/components/DatePicker/DatePicker.Skeleton.js +12 -0
- package/lib/components/DatePicker/DatePicker.js +88 -0
- package/lib/components/DatePickerInput/DatePickerInput.js +79 -0
- package/lib/components/Dialog/Dialog.js +130 -3
- package/lib/components/Dropdown/Dropdown.Skeleton.js +9 -0
- package/lib/components/Dropdown/Dropdown.js +109 -0
- package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +0 -1
- package/lib/components/FeatureFlags/index.js +3 -0
- package/lib/components/FileUploader/FileUploader.Skeleton.js +5 -1
- package/lib/components/FileUploader/FileUploader.js +57 -0
- package/lib/components/FileUploader/FileUploaderButton.js +47 -0
- package/lib/components/FileUploader/FileUploaderDropContainer.js +42 -0
- package/lib/components/FileUploader/FileUploaderItem.js +29 -0
- package/lib/components/FileUploader/Filename.js +18 -0
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +5 -1
- package/lib/components/FluidComboBox/FluidComboBox.js +61 -0
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +6 -0
- package/lib/components/FluidDatePicker/FluidDatePicker.js +21 -0
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +5 -1
- package/lib/components/FluidDropdown/FluidDropdown.js +65 -0
- package/lib/components/FluidForm/FluidForm.js +6 -0
- package/lib/components/FluidForm/FormContext.js +0 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +5 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +128 -0
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +5 -1
- package/lib/components/FluidNumberInput/FluidNumberInput.js +95 -0
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +5 -1
- package/lib/components/FluidSearch/FluidSearch.js +45 -0
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +5 -1
- package/lib/components/FluidSelect/FluidSelect.js +38 -0
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +5 -1
- package/lib/components/FluidTextArea/FluidTextArea.js +67 -0
- package/lib/components/FluidTextInput/FluidPasswordInput.js +58 -0
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +5 -1
- package/lib/components/FluidTextInput/FluidTextInput.js +54 -0
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +6 -0
- package/lib/components/FluidTimePicker/FluidTimePicker.js +28 -0
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +26 -0
- package/lib/components/Form/Form.js +6 -0
- package/lib/components/FormGroup/FormGroup.js +25 -0
- package/lib/components/FormItem/FormItem.js +6 -0
- package/lib/components/FormLabel/FormLabel.js +9 -0
- package/lib/components/Grid/CSSGrid.js +43 -0
- package/lib/components/Grid/Column.js +86 -0
- package/lib/components/Grid/ColumnHang.js +9 -0
- package/lib/components/Grid/FlexGrid.js +24 -0
- package/lib/components/Grid/Grid.js +27 -0
- package/lib/components/Grid/GridContext.js +10 -0
- package/lib/components/Grid/Row.js +17 -0
- package/lib/components/Heading/index.js +19 -0
- package/lib/components/Icon/Icon.Skeleton.js +5 -1
- package/lib/components/IconButton/index.js +68 -0
- package/lib/components/IconIndicator/index.js +12 -0
- package/lib/components/IdPrefix/index.js +3 -0
- package/lib/components/InlineCheckbox/InlineCheckbox.js +34 -0
- package/lib/components/InlineLoading/InlineLoading.js +19 -0
- package/lib/components/Layer/index.js +17 -0
- package/lib/components/Layout/index.js +34 -0
- package/lib/components/LayoutDirection/LayoutDirection.js +10 -0
- package/lib/components/LayoutDirection/useLayoutDirection.js +0 -1
- package/lib/components/Link/Link.d.ts +1 -1
- package/lib/components/Link/Link.js +28 -0
- package/lib/components/ListBox/ListBox.js +41 -0
- package/lib/components/ListBox/ListBoxField.js +17 -0
- package/lib/components/ListBox/ListBoxMenu.js +6 -0
- package/lib/components/ListBox/ListBoxMenuIcon.js +7 -0
- package/lib/components/ListBox/ListBoxMenuItem.js +16 -0
- package/lib/components/ListBox/ListBoxSelection.d.ts +1 -1
- package/lib/components/ListBox/ListBoxSelection.js +32 -9
- package/lib/components/ListBox/next/ListBoxSelection.d.ts +1 -1
- package/lib/components/ListBox/next/ListBoxSelection.js +41 -6
- package/lib/components/ListBox/next/ListBoxTrigger.js +7 -0
- package/lib/components/ListItem/ListItem.js +6 -0
- package/lib/components/Loading/Loading.js +18 -0
- package/lib/components/Menu/Menu.js +52 -0
- package/lib/components/Menu/MenuContext.d.ts +11 -12
- package/lib/components/Menu/MenuContext.js +0 -1
- package/lib/components/Menu/MenuItem.js +77 -1
- package/lib/components/MenuButton/index.js +33 -0
- package/lib/components/Modal/Modal.js +115 -1
- package/lib/components/MultiSelect/FilterableMultiSelect.js +128 -0
- package/lib/components/MultiSelect/MultiSelect.js +148 -0
- package/lib/components/MultiSelect/MultiSelectPropTypes.js +25 -0
- package/lib/components/Notification/Notification.js +207 -0
- package/lib/components/NumberInput/NumberInput.Skeleton.js +9 -0
- package/lib/components/NumberInput/NumberInput.js +138 -0
- package/lib/components/OrderedList/OrderedList.js +15 -0
- package/lib/components/OverflowMenu/OverflowMenu.js +76 -0
- package/lib/components/OverflowMenu/next/index.js +30 -0
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +36 -0
- package/lib/components/PageHeader/PageHeader.js +48 -0
- package/lib/components/Pagination/Pagination.Skeleton.js +5 -1
- package/lib/components/Pagination/Pagination.d.ts +8 -0
- package/lib/components/Pagination/Pagination.js +85 -3
- package/lib/components/Pagination/experimental/PageSelector.js +8 -0
- package/lib/components/Pagination/experimental/Pagination.js +54 -0
- package/lib/components/PaginationNav/PaginationNav.js +80 -0
- package/lib/components/Popover/index.js +58 -0
- package/lib/components/ProgressBar/ProgressBar.js +27 -0
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +6 -0
- package/lib/components/ProgressIndicator/ProgressIndicator.js +58 -0
- package/lib/components/RadioButton/RadioButton.Skeleton.js +5 -1
- package/lib/components/RadioButton/RadioButton.js +63 -0
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +59 -0
- package/lib/components/RadioTile/RadioTile.js +45 -0
- package/lib/components/Search/Search.Skeleton.js +9 -0
- package/lib/components/Search/Search.js +66 -1
- package/lib/components/Select/Select.Skeleton.js +6 -0
- package/lib/components/Select/Select.js +82 -19
- package/lib/components/SelectItem/SelectItem.js +15 -0
- package/lib/components/SelectItemGroup/SelectItemGroup.js +12 -0
- package/lib/components/ShapeIndicator/index.js +12 -0
- package/lib/components/SkeletonIcon/SkeletonIcon.js +5 -1
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +5 -1
- package/lib/components/SkeletonText/SkeletonText.js +15 -0
- package/lib/components/Slider/Slider.Skeleton.js +15 -0
- package/lib/components/Slider/Slider.js +104 -0
- package/lib/components/Stack/Stack.js +20 -0
- package/lib/components/StructuredList/StructuredList.Skeleton.js +6 -0
- package/lib/components/StructuredList/StructuredList.js +97 -0
- package/lib/components/Switch/IconSwitch.js +47 -0
- package/lib/components/Switch/Switch.js +30 -0
- package/lib/components/TabContent/TabContent.js +9 -0
- package/lib/components/Tabs/Tabs.Skeleton.js +6 -0
- package/lib/components/Tabs/Tabs.d.ts +15 -1
- package/lib/components/Tabs/Tabs.js +185 -5
- package/lib/components/Tabs/usePressable.js +0 -1
- package/lib/components/Tag/DismissibleTag.js +43 -0
- package/lib/components/Tag/OperationalTag.js +22 -0
- package/lib/components/Tag/SelectableTag.js +31 -0
- package/lib/components/Tag/Tag.Skeleton.js +7 -0
- package/lib/components/Tag/Tag.js +41 -0
- package/lib/components/Text/Text.js +10 -0
- package/lib/components/Text/TextDirection.js +11 -0
- package/lib/components/Text/TextDirectionContext.js +0 -1
- package/lib/components/TextArea/TextArea.Skeleton.js +6 -0
- package/lib/components/TextArea/TextArea.js +80 -0
- package/lib/components/TextInput/ControlledPasswordInput.js +64 -0
- package/lib/components/TextInput/PasswordInput.js +83 -0
- package/lib/components/TextInput/TextInput.Skeleton.js +9 -0
- package/lib/components/TextInput/TextInput.js +76 -0
- package/lib/components/Theme/index.js +21 -0
- package/lib/components/Tile/Tile.js +157 -2
- package/lib/components/TileGroup/TileGroup.js +28 -0
- package/lib/components/TimePicker/TimePicker.js +67 -0
- package/lib/components/TimePickerSelect/TimePickerSelect.js +15 -0
- package/lib/components/Toggle/Toggle.js +46 -0
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +11 -0
- package/lib/components/Toggletip/index.js +38 -0
- package/lib/components/Tooltip/DefinitionTooltip.js +36 -0
- package/lib/components/Tooltip/Tooltip.js +46 -0
- package/lib/components/TreeView/TreeContext.js +0 -1
- package/lib/components/TreeView/TreeNode.js +64 -0
- package/lib/components/TreeView/TreeView.js +32 -0
- package/lib/components/UIShell/Content.js +9 -0
- package/lib/components/UIShell/Header.js +9 -0
- package/lib/components/UIShell/HeaderContainer.js +9 -0
- package/lib/components/UIShell/HeaderGlobalAction.js +28 -0
- package/lib/components/UIShell/HeaderMenu.js +37 -0
- package/lib/components/UIShell/HeaderMenuButton.js +17 -0
- package/lib/components/UIShell/HeaderMenuItem.js +25 -0
- package/lib/components/UIShell/HeaderName.js +18 -0
- package/lib/components/UIShell/HeaderNavigation.js +10 -0
- package/lib/components/UIShell/HeaderPanel.js +19 -0
- package/lib/components/UIShell/HeaderSideNavItems.js +11 -0
- package/lib/components/UIShell/Link.js +14 -0
- package/lib/components/UIShell/SideNav.js +53 -0
- package/lib/components/UIShell/SideNavDetails.js +10 -0
- package/lib/components/UIShell/SideNavDivider.js +5 -1
- package/lib/components/UIShell/SideNavFooter.js +11 -0
- package/lib/components/UIShell/SideNavHeader.js +13 -0
- package/lib/components/UIShell/SideNavIcon.js +10 -0
- package/lib/components/UIShell/SideNavItem.js +10 -0
- package/lib/components/UIShell/SideNavItems.js +11 -0
- package/lib/components/UIShell/SideNavLink.js +22 -0
- package/lib/components/UIShell/SideNavLinkText.js +6 -0
- package/lib/components/UIShell/SideNavMenu.js +31 -0
- package/lib/components/UIShell/SideNavMenuItem.js +17 -0
- package/lib/components/UIShell/SideNavSwitcher.js +16 -0
- package/lib/components/UIShell/SkipToContent.js +11 -0
- package/lib/components/UIShell/Switcher.js +12 -0
- package/lib/components/UIShell/SwitcherDivider.js +5 -1
- package/lib/components/UIShell/SwitcherItem.js +30 -0
- package/lib/components/UnorderedList/UnorderedList.js +12 -0
- package/lib/feature-flags.js +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +241 -241
- package/lib/internal/OptimizedResize.js +6 -2
- package/lib/internal/useAttachedMenu.js +0 -1
- package/lib/internal/useControllableState.js +0 -1
- package/lib/internal/useDelayedState.js +0 -1
- package/lib/internal/useEvent.js +0 -1
- package/lib/internal/useIsomorphicEffect.js +0 -1
- package/lib/internal/useMatchMedia.js +0 -1
- package/lib/internal/useMergedRefs.js +0 -1
- package/lib/internal/useNoInteractiveChildren.js +0 -1
- package/lib/internal/useOutsideClick.js +0 -1
- package/lib/internal/useOverflowItems.js +0 -1
- package/lib/internal/usePresence.js +6 -1
- package/lib/internal/usePresenceContext.js +0 -1
- package/lib/internal/usePreviousValue.js +0 -1
- package/lib/internal/useResizeObserver.js +0 -1
- package/lib/internal/useSavedCallback.js +0 -1
- package/lib/internal/utils.js +0 -1
- package/lib/internal/warnAboutDeprecatedReactVersion.d.ts +7 -0
- package/lib/internal/wrapFocus.js +0 -1
- package/package.json +9 -9
- package/telemetry.yml +12 -0
|
@@ -826,38 +826,142 @@ const Slider = (props) => {
|
|
|
826
826
|
});
|
|
827
827
|
};
|
|
828
828
|
Slider.propTypes = {
|
|
829
|
+
/**
|
|
830
|
+
* The `ariaLabel` for the `<input>`.
|
|
831
|
+
*/
|
|
829
832
|
ariaLabelInput: PropTypes.string,
|
|
833
|
+
/**
|
|
834
|
+
* The child nodes.
|
|
835
|
+
*/
|
|
830
836
|
children: PropTypes.node,
|
|
837
|
+
/**
|
|
838
|
+
* The CSS class name for the slider.
|
|
839
|
+
*/
|
|
831
840
|
className: PropTypes.string,
|
|
841
|
+
/**
|
|
842
|
+
* `true` to disable this slider.
|
|
843
|
+
*/
|
|
832
844
|
disabled: PropTypes.bool,
|
|
845
|
+
/**
|
|
846
|
+
* The callback to format the label associated with the minimum/maximum value.
|
|
847
|
+
*/
|
|
833
848
|
formatLabel: PropTypes.func,
|
|
849
|
+
/**
|
|
850
|
+
* `true` to hide the number input box.
|
|
851
|
+
*/
|
|
834
852
|
hideTextInput: PropTypes.bool,
|
|
853
|
+
/**
|
|
854
|
+
* The ID of the `<input>`.
|
|
855
|
+
*/
|
|
835
856
|
id: PropTypes.string,
|
|
857
|
+
/**
|
|
858
|
+
* The `type` attribute of the `<input>`.
|
|
859
|
+
*/
|
|
836
860
|
inputType: PropTypes.string,
|
|
861
|
+
/**
|
|
862
|
+
* `Specify whether the Slider is currently invalid
|
|
863
|
+
*/
|
|
837
864
|
invalid: PropTypes.bool,
|
|
865
|
+
/**
|
|
866
|
+
* Provide the text that is displayed when the Slider is in an invalid state
|
|
867
|
+
*/
|
|
838
868
|
invalidText: PropTypes.node,
|
|
869
|
+
/**
|
|
870
|
+
* The label for the slider.
|
|
871
|
+
*/
|
|
839
872
|
labelText: PropTypes.node,
|
|
873
|
+
/**
|
|
874
|
+
* Specify whether you want the underlying label to be visually hidden
|
|
875
|
+
*/
|
|
840
876
|
hideLabel: PropTypes.bool,
|
|
877
|
+
/**
|
|
878
|
+
* `true` to use the light version.
|
|
879
|
+
*/
|
|
841
880
|
light: deprecate(PropTypes.bool, "The `light` prop for `Slider` is no longer needed and has been deprecated in v11 in favor of the new `Layer` component. It will be moved in the next major release."),
|
|
881
|
+
/**
|
|
882
|
+
* The maximum value.
|
|
883
|
+
*/
|
|
842
884
|
max: PropTypes.number.isRequired,
|
|
885
|
+
/**
|
|
886
|
+
* The label associated with the maximum value.
|
|
887
|
+
*/
|
|
843
888
|
maxLabel: PropTypes.string,
|
|
889
|
+
/**
|
|
890
|
+
* The minimum value.
|
|
891
|
+
*/
|
|
844
892
|
min: PropTypes.number.isRequired,
|
|
893
|
+
/**
|
|
894
|
+
* The label associated with the minimum value.
|
|
895
|
+
*/
|
|
845
896
|
minLabel: PropTypes.string,
|
|
897
|
+
/**
|
|
898
|
+
* The `name` attribute of the `<input>`.
|
|
899
|
+
*/
|
|
846
900
|
name: PropTypes.string,
|
|
901
|
+
/**
|
|
902
|
+
* Provide an optional function to be called when the input element
|
|
903
|
+
* loses focus
|
|
904
|
+
*/
|
|
847
905
|
onBlur: PropTypes.func,
|
|
906
|
+
/**
|
|
907
|
+
* The callback to get notified of change in value.
|
|
908
|
+
*/
|
|
848
909
|
onChange: PropTypes.func,
|
|
910
|
+
/**
|
|
911
|
+
* Provide an optional function to be called when a key is pressed in the number input.
|
|
912
|
+
*/
|
|
849
913
|
onInputKeyUp: PropTypes.func,
|
|
914
|
+
/**
|
|
915
|
+
* The callback to get notified of value on handle release.
|
|
916
|
+
*/
|
|
850
917
|
onRelease: PropTypes.func,
|
|
918
|
+
/**
|
|
919
|
+
* Whether the slider should be read-only
|
|
920
|
+
*/
|
|
851
921
|
readOnly: PropTypes.bool,
|
|
922
|
+
/**
|
|
923
|
+
* `true` to specify if the control is required.
|
|
924
|
+
*/
|
|
852
925
|
required: PropTypes.bool,
|
|
926
|
+
/**
|
|
927
|
+
* A value determining how much the value should increase/decrease by moving the thumb by mouse. If a value other than 1 is provided and the input is *not* hidden, the new step requirement should be added to a visible label. Values outside the `step` increment will be considered invalid.
|
|
928
|
+
*/
|
|
853
929
|
step: PropTypes.number,
|
|
930
|
+
/**
|
|
931
|
+
* A value determining how much the value should increase/decrease by Shift+arrow keys,
|
|
932
|
+
* which will be `(max - min) / stepMultiplier`.
|
|
933
|
+
*/
|
|
854
934
|
stepMultiplier: PropTypes.number,
|
|
935
|
+
/**
|
|
936
|
+
* Supply a method to translate internal strings with your i18n tool of
|
|
937
|
+
* choice. Translation keys are available on the `translationIds` field for
|
|
938
|
+
* this component.
|
|
939
|
+
*/
|
|
855
940
|
translateWithId: PropTypes.func,
|
|
941
|
+
/**
|
|
942
|
+
* The `ariaLabel` for the upper bound `<input>` when there are two handles.
|
|
943
|
+
*/
|
|
856
944
|
unstable_ariaLabelInputUpper: PropTypes.string,
|
|
945
|
+
/**
|
|
946
|
+
* The `name` attribute of the upper bound `<input>` when there are two handles.
|
|
947
|
+
*/
|
|
857
948
|
unstable_nameUpper: PropTypes.string,
|
|
949
|
+
/**
|
|
950
|
+
* The upper bound when there are two handles.
|
|
951
|
+
*/
|
|
858
952
|
unstable_valueUpper: PropTypes.number,
|
|
953
|
+
/**
|
|
954
|
+
* The value of the slider. When there are two handles, value is the lower
|
|
955
|
+
* bound.
|
|
956
|
+
*/
|
|
859
957
|
value: PropTypes.number.isRequired,
|
|
958
|
+
/**
|
|
959
|
+
* Specify whether the Slider is in a warning state.
|
|
960
|
+
*/
|
|
860
961
|
warn: PropTypes.bool,
|
|
962
|
+
/**
|
|
963
|
+
* Provide the text displayed when the Slider is in a warning state.
|
|
964
|
+
*/
|
|
861
965
|
warnText: PropTypes.node
|
|
862
966
|
};
|
|
863
967
|
//#endregion
|
|
@@ -57,10 +57,30 @@ const Stack = forwardRef((props, ref) => {
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
Stack.propTypes = {
|
|
60
|
+
/**
|
|
61
|
+
* Provide a custom element type to render as the outermost element in
|
|
62
|
+
* the Stack component. By default, this component will render a `div`.
|
|
63
|
+
*/
|
|
60
64
|
as: PropTypes.elementType,
|
|
65
|
+
/**
|
|
66
|
+
* Provide the elements that will be rendered as children inside of the Stack
|
|
67
|
+
* component. These elements will have having spacing between them according
|
|
68
|
+
* to the `step` and `orientation` prop
|
|
69
|
+
*/
|
|
61
70
|
children: PropTypes.node,
|
|
71
|
+
/**
|
|
72
|
+
* Provide a custom class name to be used by the outermost element rendered by
|
|
73
|
+
* Stack
|
|
74
|
+
*/
|
|
62
75
|
className: PropTypes.string,
|
|
76
|
+
/**
|
|
77
|
+
* Provide either a custom value or a step from the spacing scale to be used
|
|
78
|
+
* as the gap in the layout
|
|
79
|
+
*/
|
|
63
80
|
gap: PropTypes.oneOfType([PropTypes.string, PropTypes.oneOf(SPACING_STEPS)]),
|
|
81
|
+
/**
|
|
82
|
+
* Specify the orientation of them items in the Stack
|
|
83
|
+
*/
|
|
64
84
|
orientation: PropTypes.oneOf(["horizontal", "vertical"])
|
|
65
85
|
};
|
|
66
86
|
//#endregion
|
|
@@ -57,7 +57,13 @@ function StructuredListSkeleton({ rowCount = 5, className, ...rest }) {
|
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
StructuredListSkeleton.propTypes = {
|
|
60
|
+
/**
|
|
61
|
+
* Specify an optional className to add.
|
|
62
|
+
*/
|
|
60
63
|
className: PropTypes.string,
|
|
64
|
+
/**
|
|
65
|
+
* number of table rows
|
|
66
|
+
*/
|
|
61
67
|
rowCount: PropTypes.number
|
|
62
68
|
};
|
|
63
69
|
//#endregion
|
|
@@ -48,13 +48,38 @@ function StructuredListWrapper(props) {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
StructuredListWrapper.propTypes = {
|
|
51
|
+
/**
|
|
52
|
+
* Specify a label to be read by screen readers on the container node
|
|
53
|
+
*/
|
|
51
54
|
["aria-label"]: PropTypes.string,
|
|
55
|
+
/**
|
|
56
|
+
* Deprecated, please use `aria-label` instead.
|
|
57
|
+
* Specify a label to be read by screen readers on the container note.
|
|
58
|
+
*/
|
|
52
59
|
ariaLabel: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
60
|
+
/**
|
|
61
|
+
* Provide the contents of your StructuredListWrapper
|
|
62
|
+
*/
|
|
53
63
|
children: PropTypes.node,
|
|
64
|
+
/**
|
|
65
|
+
* Specify an optional className to be applied to the container node
|
|
66
|
+
*/
|
|
54
67
|
className: PropTypes.string,
|
|
68
|
+
/**
|
|
69
|
+
* Specify if structured list is condensed, default is false
|
|
70
|
+
*/
|
|
55
71
|
isCondensed: PropTypes.bool,
|
|
72
|
+
/**
|
|
73
|
+
* Specify if structured list is flush, not valid for selection variant, default is false
|
|
74
|
+
*/
|
|
56
75
|
isFlush: PropTypes.bool,
|
|
76
|
+
/**
|
|
77
|
+
* Specify whether your StructuredListWrapper should have selections
|
|
78
|
+
*/
|
|
57
79
|
selection: PropTypes.bool,
|
|
80
|
+
/**
|
|
81
|
+
* Specify which row will be selected initially
|
|
82
|
+
*/
|
|
58
83
|
selectedInitialRow: PropTypes.string
|
|
59
84
|
};
|
|
60
85
|
function StructuredListHead(props) {
|
|
@@ -67,7 +92,13 @@ function StructuredListHead(props) {
|
|
|
67
92
|
});
|
|
68
93
|
}
|
|
69
94
|
StructuredListHead.propTypes = {
|
|
95
|
+
/**
|
|
96
|
+
* Provide the contents of your StructuredListHead
|
|
97
|
+
*/
|
|
70
98
|
children: PropTypes.node,
|
|
99
|
+
/**
|
|
100
|
+
* Specify an optional className to be applied to the node
|
|
101
|
+
*/
|
|
71
102
|
className: PropTypes.string
|
|
72
103
|
};
|
|
73
104
|
function StructuredListBody(props) {
|
|
@@ -80,9 +111,18 @@ function StructuredListBody(props) {
|
|
|
80
111
|
});
|
|
81
112
|
}
|
|
82
113
|
StructuredListBody.propTypes = {
|
|
114
|
+
/**
|
|
115
|
+
* Provide the contents of your StructuredListBody
|
|
116
|
+
*/
|
|
83
117
|
children: PropTypes.node,
|
|
118
|
+
/**
|
|
119
|
+
* Specify an optional className to be applied to the container node
|
|
120
|
+
*/
|
|
84
121
|
className: PropTypes.string,
|
|
85
122
|
head: PropTypes.bool,
|
|
123
|
+
/**
|
|
124
|
+
* Provide a handler that is invoked on the key down event for the control
|
|
125
|
+
*/
|
|
86
126
|
onKeyDown: PropTypes.func
|
|
87
127
|
};
|
|
88
128
|
const GridRowContext = React.createContext(null);
|
|
@@ -134,13 +174,37 @@ function StructuredListRow(props) {
|
|
|
134
174
|
});
|
|
135
175
|
}
|
|
136
176
|
StructuredListRow.propTypes = {
|
|
177
|
+
/**
|
|
178
|
+
* Provide the contents of your StructuredListRow
|
|
179
|
+
*/
|
|
137
180
|
children: PropTypes.node,
|
|
181
|
+
/**
|
|
182
|
+
* Specify an optional className to be applied to the container node
|
|
183
|
+
*/
|
|
138
184
|
className: PropTypes.string,
|
|
185
|
+
/**
|
|
186
|
+
* Specify whether your StructuredListRow should be used as a header row
|
|
187
|
+
*/
|
|
139
188
|
head: PropTypes.bool,
|
|
189
|
+
/**
|
|
190
|
+
* Specify whether a `<label>` should be used
|
|
191
|
+
*/
|
|
140
192
|
label: deprecate(PropTypes.bool, `\nThe \`label\` prop is no longer needed and will be removed in the next major version of Carbon.`),
|
|
193
|
+
/**
|
|
194
|
+
* Provide a handler that is invoked on the click
|
|
195
|
+
*/
|
|
141
196
|
onClick: PropTypes.func,
|
|
197
|
+
/**
|
|
198
|
+
* Provide a handler that is invoked on the key down event for the control,
|
|
199
|
+
*/
|
|
142
200
|
onKeyDown: PropTypes.func,
|
|
201
|
+
/**
|
|
202
|
+
* Mark if this row should be selectable
|
|
203
|
+
*/
|
|
143
204
|
selection: PropTypes.bool,
|
|
205
|
+
/**
|
|
206
|
+
* Specify row id so that it can be used for initial selection
|
|
207
|
+
*/
|
|
144
208
|
id: PropTypes.string
|
|
145
209
|
};
|
|
146
210
|
function StructuredListInput(props) {
|
|
@@ -168,12 +232,33 @@ function StructuredListInput(props) {
|
|
|
168
232
|
});
|
|
169
233
|
}
|
|
170
234
|
StructuredListInput.propTypes = {
|
|
235
|
+
/**
|
|
236
|
+
* Specify an optional className to be applied to the input
|
|
237
|
+
*/
|
|
171
238
|
className: PropTypes.string,
|
|
239
|
+
/**
|
|
240
|
+
* Specify whether the underlying input should be checked by default
|
|
241
|
+
*/
|
|
172
242
|
defaultChecked: deprecate(PropTypes.bool, `\nThe prop \`defaultChecked\` is no longer needed and will be removed in the next major version of Carbon.`),
|
|
243
|
+
/**
|
|
244
|
+
* Specify a custom `id` for the input
|
|
245
|
+
*/
|
|
173
246
|
id: PropTypes.string,
|
|
247
|
+
/**
|
|
248
|
+
* Provide a `name` for the input
|
|
249
|
+
*/
|
|
174
250
|
name: PropTypes.string,
|
|
251
|
+
/**
|
|
252
|
+
* Provide an optional hook that is called each time the input is updated
|
|
253
|
+
*/
|
|
175
254
|
onChange: PropTypes.func,
|
|
255
|
+
/**
|
|
256
|
+
* Provide a `title` for the input
|
|
257
|
+
*/
|
|
176
258
|
title: PropTypes.string,
|
|
259
|
+
/**
|
|
260
|
+
* Specify the value of the input
|
|
261
|
+
*/
|
|
177
262
|
value: deprecate(PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, `\nThe prop \`value\` will be removed in the next major version of Carbon.`)
|
|
178
263
|
};
|
|
179
264
|
function StructuredListCell(props) {
|
|
@@ -199,9 +284,21 @@ function StructuredListCell(props) {
|
|
|
199
284
|
});
|
|
200
285
|
}
|
|
201
286
|
StructuredListCell.propTypes = {
|
|
287
|
+
/**
|
|
288
|
+
* Provide the contents of your StructuredListCell
|
|
289
|
+
*/
|
|
202
290
|
children: PropTypes.node,
|
|
291
|
+
/**
|
|
292
|
+
* Specify an optional className to be applied to the container node
|
|
293
|
+
*/
|
|
203
294
|
className: PropTypes.string,
|
|
295
|
+
/**
|
|
296
|
+
* Specify whether your StructuredListCell should be used as a header cell
|
|
297
|
+
*/
|
|
204
298
|
head: PropTypes.bool,
|
|
299
|
+
/**
|
|
300
|
+
* Specify whether your StructuredListCell should have text wrapping
|
|
301
|
+
*/
|
|
205
302
|
noWrap: PropTypes.bool
|
|
206
303
|
};
|
|
207
304
|
//#endregion
|
|
@@ -77,6 +77,9 @@ const IconSwitch = forwardRef((props, ref) => {
|
|
|
77
77
|
});
|
|
78
78
|
IconSwitch.displayName = "IconSwitch";
|
|
79
79
|
IconSwitch.propTypes = {
|
|
80
|
+
/**
|
|
81
|
+
* Specify how the trigger should align with the tooltip
|
|
82
|
+
*/
|
|
80
83
|
align: PropTypes.oneOf([
|
|
81
84
|
"top",
|
|
82
85
|
"top-left",
|
|
@@ -87,21 +90,65 @@ IconSwitch.propTypes = {
|
|
|
87
90
|
"left",
|
|
88
91
|
"right"
|
|
89
92
|
]),
|
|
93
|
+
/**
|
|
94
|
+
* Children to be rendered inside of the `IconSwitch`.
|
|
95
|
+
*/
|
|
90
96
|
children: PropTypes.node,
|
|
97
|
+
/**
|
|
98
|
+
* Specify an optional className to be added to your `IconSwitch`.
|
|
99
|
+
*/
|
|
91
100
|
className: PropTypes.string,
|
|
101
|
+
/**
|
|
102
|
+
* Whether the `IconSwitch` should be disabled.
|
|
103
|
+
*/
|
|
92
104
|
disabled: PropTypes.bool,
|
|
105
|
+
/**
|
|
106
|
+
* Specify the duration in milliseconds to delay before displaying the tooltip
|
|
107
|
+
*/
|
|
93
108
|
enterDelayMs: PropTypes.number,
|
|
109
|
+
/**
|
|
110
|
+
* The index of the `IconSwitch`.
|
|
111
|
+
*
|
|
112
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
113
|
+
*/
|
|
94
114
|
index: PropTypes.number,
|
|
115
|
+
/**
|
|
116
|
+
* Specify the duration in milliseconds to delay before hiding the tooltip
|
|
117
|
+
*/
|
|
95
118
|
leaveDelayMs: PropTypes.number,
|
|
119
|
+
/**
|
|
120
|
+
* The name of the `IconSwitch`.
|
|
121
|
+
*/
|
|
96
122
|
name: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
123
|
+
/**
|
|
124
|
+
* A handler that is invoked when a user clicks on the control.
|
|
125
|
+
*
|
|
126
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
127
|
+
*/
|
|
97
128
|
onClick: PropTypes.func,
|
|
129
|
+
/**
|
|
130
|
+
* A handler that is invoked on the key down event for the control.
|
|
131
|
+
*
|
|
132
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
133
|
+
*/
|
|
98
134
|
onKeyDown: PropTypes.func,
|
|
135
|
+
/**
|
|
136
|
+
* Whether the `IconSwitch` is selected.
|
|
137
|
+
*
|
|
138
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
139
|
+
*/
|
|
99
140
|
selected: PropTypes.bool,
|
|
141
|
+
/**
|
|
142
|
+
* Specify the size of the underlying icon-only button.
|
|
143
|
+
*/
|
|
100
144
|
size: PropTypes.oneOf([
|
|
101
145
|
"sm",
|
|
102
146
|
"md",
|
|
103
147
|
"lg"
|
|
104
148
|
]),
|
|
149
|
+
/**
|
|
150
|
+
* `Tooltip` text.
|
|
151
|
+
*/
|
|
105
152
|
text: PropTypes.string
|
|
106
153
|
};
|
|
107
154
|
//#endregion
|
|
@@ -61,14 +61,44 @@ const Switch = React.forwardRef((props, tabRef) => {
|
|
|
61
61
|
});
|
|
62
62
|
Switch.displayName = "Switch";
|
|
63
63
|
Switch.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* Provide child elements to be rendered inside of the Switch
|
|
66
|
+
*/
|
|
64
67
|
children: PropTypes.node,
|
|
68
|
+
/**
|
|
69
|
+
* Specify an optional className to be added to your Switch
|
|
70
|
+
*/
|
|
65
71
|
className: PropTypes.string,
|
|
72
|
+
/**
|
|
73
|
+
* Specify whether or not the Switch should be disabled
|
|
74
|
+
*/
|
|
66
75
|
disabled: PropTypes.bool,
|
|
76
|
+
/**
|
|
77
|
+
* The index of your Switch in your ContentSwitcher that is used for event handlers.
|
|
78
|
+
* Reserved for usage in ContentSwitcher
|
|
79
|
+
*/
|
|
67
80
|
index: PropTypes.number,
|
|
81
|
+
/**
|
|
82
|
+
* Provide the name of your Switch that is used for event handlers
|
|
83
|
+
*/
|
|
68
84
|
name: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
85
|
+
/**
|
|
86
|
+
* A handler that is invoked when a user clicks on the control.
|
|
87
|
+
* Reserved for usage in ContentSwitcher
|
|
88
|
+
*/
|
|
69
89
|
onClick: PropTypes.func,
|
|
90
|
+
/**
|
|
91
|
+
* A handler that is invoked on the key down event for the control.
|
|
92
|
+
* Reserved for usage in ContentSwitcher
|
|
93
|
+
*/
|
|
70
94
|
onKeyDown: PropTypes.func,
|
|
95
|
+
/**
|
|
96
|
+
* Whether your Switch is selected. Reserved for usage in ContentSwitcher
|
|
97
|
+
*/
|
|
71
98
|
selected: PropTypes.bool,
|
|
99
|
+
/**
|
|
100
|
+
* Provide the contents of your Switch
|
|
101
|
+
*/
|
|
72
102
|
text: PropTypes.string
|
|
73
103
|
};
|
|
74
104
|
//#endregion
|
|
@@ -30,8 +30,17 @@ function TabContent(props) {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
TabContent.propTypes = {
|
|
33
|
+
/**
|
|
34
|
+
* Pass in content to render inside the TabContent
|
|
35
|
+
*/
|
|
33
36
|
children: PropTypes.node,
|
|
37
|
+
/**
|
|
38
|
+
* Provide a className for the tab content container
|
|
39
|
+
*/
|
|
34
40
|
className: PropTypes.string,
|
|
41
|
+
/**
|
|
42
|
+
* Specify whether the TabContent is selected
|
|
43
|
+
*/
|
|
35
44
|
selected: PropTypes.bool
|
|
36
45
|
};
|
|
37
46
|
//#endregion
|
|
@@ -45,7 +45,13 @@ function TabsSkeleton({ className, contained, ...rest }) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
TabsSkeleton.propTypes = {
|
|
48
|
+
/**
|
|
49
|
+
* Specify an optional className to add.
|
|
50
|
+
*/
|
|
48
51
|
className: PropTypes.string,
|
|
52
|
+
/**
|
|
53
|
+
* Provide the type of Tab
|
|
54
|
+
*/
|
|
49
55
|
contained: PropTypes.bool
|
|
50
56
|
};
|
|
51
57
|
//#endregion
|
|
@@ -194,6 +194,9 @@ export interface TabListProps extends DivAttributes {
|
|
|
194
194
|
scrollIntoView?: boolean;
|
|
195
195
|
/**
|
|
196
196
|
* Specify the size of the tabs.
|
|
197
|
+
*
|
|
198
|
+
* Supports `sm` and `md` for line tabs.
|
|
199
|
+
* Supports `sm`, `md`, and `lg` for contained tabs.
|
|
197
200
|
*/
|
|
198
201
|
size?: 'sm' | 'md' | 'lg';
|
|
199
202
|
}
|
|
@@ -256,6 +259,9 @@ declare namespace TabList {
|
|
|
256
259
|
scrollIntoView: PropTypes.Requireable<boolean>;
|
|
257
260
|
/**
|
|
258
261
|
* Specify the size of the tabs.
|
|
262
|
+
*
|
|
263
|
+
* Supports `sm` and `md` for line tabs.
|
|
264
|
+
* Supports `sm`, `md`, and `lg` for contained tabs.
|
|
259
265
|
*/
|
|
260
266
|
size: PropTypes.Requireable<string>;
|
|
261
267
|
};
|
|
@@ -288,8 +294,12 @@ export interface TabListVerticalProps extends DivAttributes {
|
|
|
288
294
|
* on component rerender
|
|
289
295
|
*/
|
|
290
296
|
scrollIntoView?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Specify the size of the tabs.
|
|
299
|
+
*/
|
|
300
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
291
301
|
}
|
|
292
|
-
declare function TabListVertical({ activation, 'aria-label': label, children, className: customClassName, scrollIntoView, ...rest }: TabListVerticalProps): import("react/jsx-runtime").JSX.Element;
|
|
302
|
+
declare function TabListVertical({ activation, 'aria-label': label, children, className: customClassName, scrollIntoView, size, ...rest }: TabListVerticalProps): import("react/jsx-runtime").JSX.Element;
|
|
293
303
|
declare namespace TabListVertical {
|
|
294
304
|
var propTypes: {
|
|
295
305
|
/**
|
|
@@ -311,6 +321,10 @@ declare namespace TabListVertical {
|
|
|
311
321
|
* Specify an optional className to be added to the container node
|
|
312
322
|
*/
|
|
313
323
|
className: PropTypes.Requireable<string>;
|
|
324
|
+
/**
|
|
325
|
+
* Specify the size of the tabs.
|
|
326
|
+
*/
|
|
327
|
+
size: PropTypes.Requireable<string>;
|
|
314
328
|
};
|
|
315
329
|
}
|
|
316
330
|
/**
|