@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
|
@@ -81,6 +81,9 @@ const IconSwitch = (0, react.forwardRef)((props, ref) => {
|
|
|
81
81
|
});
|
|
82
82
|
IconSwitch.displayName = "IconSwitch";
|
|
83
83
|
IconSwitch.propTypes = {
|
|
84
|
+
/**
|
|
85
|
+
* Specify how the trigger should align with the tooltip
|
|
86
|
+
*/
|
|
84
87
|
align: prop_types.default.oneOf([
|
|
85
88
|
"top",
|
|
86
89
|
"top-left",
|
|
@@ -91,21 +94,65 @@ IconSwitch.propTypes = {
|
|
|
91
94
|
"left",
|
|
92
95
|
"right"
|
|
93
96
|
]),
|
|
97
|
+
/**
|
|
98
|
+
* Children to be rendered inside of the `IconSwitch`.
|
|
99
|
+
*/
|
|
94
100
|
children: prop_types.default.node,
|
|
101
|
+
/**
|
|
102
|
+
* Specify an optional className to be added to your `IconSwitch`.
|
|
103
|
+
*/
|
|
95
104
|
className: prop_types.default.string,
|
|
105
|
+
/**
|
|
106
|
+
* Whether the `IconSwitch` should be disabled.
|
|
107
|
+
*/
|
|
96
108
|
disabled: prop_types.default.bool,
|
|
109
|
+
/**
|
|
110
|
+
* Specify the duration in milliseconds to delay before displaying the tooltip
|
|
111
|
+
*/
|
|
97
112
|
enterDelayMs: prop_types.default.number,
|
|
113
|
+
/**
|
|
114
|
+
* The index of the `IconSwitch`.
|
|
115
|
+
*
|
|
116
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
117
|
+
*/
|
|
98
118
|
index: prop_types.default.number,
|
|
119
|
+
/**
|
|
120
|
+
* Specify the duration in milliseconds to delay before hiding the tooltip
|
|
121
|
+
*/
|
|
99
122
|
leaveDelayMs: prop_types.default.number,
|
|
123
|
+
/**
|
|
124
|
+
* The name of the `IconSwitch`.
|
|
125
|
+
*/
|
|
100
126
|
name: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.number]),
|
|
127
|
+
/**
|
|
128
|
+
* A handler that is invoked when a user clicks on the control.
|
|
129
|
+
*
|
|
130
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
131
|
+
*/
|
|
101
132
|
onClick: prop_types.default.func,
|
|
133
|
+
/**
|
|
134
|
+
* A handler that is invoked on the key down event for the control.
|
|
135
|
+
*
|
|
136
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
137
|
+
*/
|
|
102
138
|
onKeyDown: prop_types.default.func,
|
|
139
|
+
/**
|
|
140
|
+
* Whether the `IconSwitch` is selected.
|
|
141
|
+
*
|
|
142
|
+
* Reserved for usage in `ContentSwitcher`.
|
|
143
|
+
*/
|
|
103
144
|
selected: prop_types.default.bool,
|
|
145
|
+
/**
|
|
146
|
+
* Specify the size of the underlying icon-only button.
|
|
147
|
+
*/
|
|
104
148
|
size: prop_types.default.oneOf([
|
|
105
149
|
"sm",
|
|
106
150
|
"md",
|
|
107
151
|
"lg"
|
|
108
152
|
]),
|
|
153
|
+
/**
|
|
154
|
+
* `Tooltip` text.
|
|
155
|
+
*/
|
|
109
156
|
text: prop_types.default.string
|
|
110
157
|
};
|
|
111
158
|
//#endregion
|
|
@@ -65,14 +65,44 @@ const Switch = react.default.forwardRef((props, tabRef) => {
|
|
|
65
65
|
});
|
|
66
66
|
Switch.displayName = "Switch";
|
|
67
67
|
Switch.propTypes = {
|
|
68
|
+
/**
|
|
69
|
+
* Provide child elements to be rendered inside of the Switch
|
|
70
|
+
*/
|
|
68
71
|
children: prop_types.default.node,
|
|
72
|
+
/**
|
|
73
|
+
* Specify an optional className to be added to your Switch
|
|
74
|
+
*/
|
|
69
75
|
className: prop_types.default.string,
|
|
76
|
+
/**
|
|
77
|
+
* Specify whether or not the Switch should be disabled
|
|
78
|
+
*/
|
|
70
79
|
disabled: prop_types.default.bool,
|
|
80
|
+
/**
|
|
81
|
+
* The index of your Switch in your ContentSwitcher that is used for event handlers.
|
|
82
|
+
* Reserved for usage in ContentSwitcher
|
|
83
|
+
*/
|
|
71
84
|
index: prop_types.default.number,
|
|
85
|
+
/**
|
|
86
|
+
* Provide the name of your Switch that is used for event handlers
|
|
87
|
+
*/
|
|
72
88
|
name: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.number]),
|
|
89
|
+
/**
|
|
90
|
+
* A handler that is invoked when a user clicks on the control.
|
|
91
|
+
* Reserved for usage in ContentSwitcher
|
|
92
|
+
*/
|
|
73
93
|
onClick: prop_types.default.func,
|
|
94
|
+
/**
|
|
95
|
+
* A handler that is invoked on the key down event for the control.
|
|
96
|
+
* Reserved for usage in ContentSwitcher
|
|
97
|
+
*/
|
|
74
98
|
onKeyDown: prop_types.default.func,
|
|
99
|
+
/**
|
|
100
|
+
* Whether your Switch is selected. Reserved for usage in ContentSwitcher
|
|
101
|
+
*/
|
|
75
102
|
selected: prop_types.default.bool,
|
|
103
|
+
/**
|
|
104
|
+
* Provide the contents of your Switch
|
|
105
|
+
*/
|
|
76
106
|
text: prop_types.default.string
|
|
77
107
|
};
|
|
78
108
|
//#endregion
|
|
@@ -34,8 +34,17 @@ function TabContent(props) {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
TabContent.propTypes = {
|
|
37
|
+
/**
|
|
38
|
+
* Pass in content to render inside the TabContent
|
|
39
|
+
*/
|
|
37
40
|
children: prop_types.default.node,
|
|
41
|
+
/**
|
|
42
|
+
* Provide a className for the tab content container
|
|
43
|
+
*/
|
|
38
44
|
className: prop_types.default.string,
|
|
45
|
+
/**
|
|
46
|
+
* Specify whether the TabContent is selected
|
|
47
|
+
*/
|
|
39
48
|
selected: prop_types.default.bool
|
|
40
49
|
};
|
|
41
50
|
//#endregion
|
|
@@ -49,7 +49,13 @@ function TabsSkeleton({ className, contained, ...rest }) {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
TabsSkeleton.propTypes = {
|
|
52
|
+
/**
|
|
53
|
+
* Specify an optional className to add.
|
|
54
|
+
*/
|
|
52
55
|
className: prop_types.default.string,
|
|
56
|
+
/**
|
|
57
|
+
* Provide the type of Tab
|
|
58
|
+
*/
|
|
53
59
|
contained: prop_types.default.bool
|
|
54
60
|
};
|
|
55
61
|
//#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
|
/**
|
|
@@ -83,13 +83,36 @@ function Tabs({ children, defaultSelectedIndex = 0, onChange, selectedIndex: con
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
Tabs.propTypes = {
|
|
86
|
+
/**
|
|
87
|
+
* Provide child elements to be rendered inside the `Tabs`.
|
|
88
|
+
* These elements should render either `TabsList` or `TabsPanels`
|
|
89
|
+
*/
|
|
86
90
|
children: prop_types.default.node,
|
|
91
|
+
/**
|
|
92
|
+
* Specify which content tab should be initially selected when the component
|
|
93
|
+
* is first rendered
|
|
94
|
+
*/
|
|
87
95
|
defaultSelectedIndex: prop_types.default.number,
|
|
96
|
+
/**
|
|
97
|
+
* Whether the render Tab children should be dismissable.
|
|
98
|
+
*/
|
|
88
99
|
dismissable: prop_types.default.bool,
|
|
100
|
+
/**
|
|
101
|
+
* Provide an optional function which is called whenever the state of the
|
|
102
|
+
* `Tabs` changes
|
|
103
|
+
*/
|
|
89
104
|
onChange: prop_types.default.func,
|
|
105
|
+
/**
|
|
106
|
+
* If specifying the `onTabCloseRequest` prop, provide a callback function
|
|
107
|
+
* responsible for removing the tab when close button is pressed on one of the Tab elements
|
|
108
|
+
*/
|
|
90
109
|
onTabCloseRequest: (props) => {
|
|
91
110
|
if (props.dismissable && !props.onTabCloseRequest) return /* @__PURE__ */ new Error("dismissable property specified without also providing an onTabCloseRequest property.");
|
|
92
111
|
},
|
|
112
|
+
/**
|
|
113
|
+
* Control which content panel is currently selected. This puts the component
|
|
114
|
+
* in a controlled mode and should be used along with `onChange`
|
|
115
|
+
*/
|
|
93
116
|
selectedIndex: prop_types.default.number
|
|
94
117
|
};
|
|
95
118
|
function TabsVertical({ children, height, defaultSelectedIndex = 0, onChange, selectedIndex: controlledSelectedIndex, ...rest }) {
|
|
@@ -116,10 +139,29 @@ function TabsVertical({ children, height, defaultSelectedIndex = 0, onChange, se
|
|
|
116
139
|
});
|
|
117
140
|
}
|
|
118
141
|
TabsVertical.propTypes = {
|
|
142
|
+
/**
|
|
143
|
+
* Provide child elements to be rendered inside the `TabsVertical`.
|
|
144
|
+
* These elements should render either `TabsListVertical` or `TabsPanels`
|
|
145
|
+
*/
|
|
119
146
|
children: prop_types.default.node,
|
|
147
|
+
/**
|
|
148
|
+
* Specify which content tab should be initially selected when the component
|
|
149
|
+
* is first rendered
|
|
150
|
+
*/
|
|
120
151
|
defaultSelectedIndex: prop_types.default.number,
|
|
152
|
+
/**
|
|
153
|
+
* Option to set a height style only if using vertical variation
|
|
154
|
+
*/
|
|
121
155
|
height: prop_types.default.string,
|
|
156
|
+
/**
|
|
157
|
+
* Provide an optional function which is called whenever the state of the
|
|
158
|
+
* `Tabs` changes
|
|
159
|
+
*/
|
|
122
160
|
onChange: prop_types.default.func,
|
|
161
|
+
/**
|
|
162
|
+
* Control which content panel is currently selected. This puts the component
|
|
163
|
+
* in a controlled mode and should be used along with `onChange`
|
|
164
|
+
*/
|
|
123
165
|
selectedIndex: prop_types.default.number
|
|
124
166
|
};
|
|
125
167
|
/**
|
|
@@ -165,7 +207,7 @@ function TabList({ activation = "automatic", "aria-label": label, children, clas
|
|
|
165
207
|
[`${prefix}--tabs__icon--default`]: iconSize === "default",
|
|
166
208
|
[`${prefix}--tabs__icon--lg`]: iconSize === "lg",
|
|
167
209
|
[`${prefix}--layout--size-lg`]: iconSize === "lg",
|
|
168
|
-
[`${prefix}--layout--size-${size}`]: size && !hasSecondaryLabelTabs,
|
|
210
|
+
[`${prefix}--layout--size-${size}`]: size && !hasSecondaryLabelTabs && (contained || size === "sm" || size === "md"),
|
|
169
211
|
[`${prefix}--tabs--tall`]: hasSecondaryLabelTabs,
|
|
170
212
|
[`${prefix}--tabs--full-width`]: distributeWidth,
|
|
171
213
|
[`${prefix}--tabs--dismissable`]: dismissable
|
|
@@ -335,32 +377,80 @@ function TabList({ activation = "automatic", "aria-label": label, children, clas
|
|
|
335
377
|
});
|
|
336
378
|
}
|
|
337
379
|
TabList.propTypes = {
|
|
380
|
+
/**
|
|
381
|
+
* Specify whether the content tab should be activated automatically or
|
|
382
|
+
* manually
|
|
383
|
+
*/
|
|
338
384
|
activation: prop_types.default.oneOf(["automatic", "manual"]),
|
|
385
|
+
/**
|
|
386
|
+
* Provide an accessible label to be read when a user interacts with this
|
|
387
|
+
* component
|
|
388
|
+
*/
|
|
339
389
|
"aria-label": prop_types.default.string,
|
|
390
|
+
/**
|
|
391
|
+
* Provide child elements to be rendered inside `ContentTabs`.
|
|
392
|
+
* These elements should render a `ContentTab`
|
|
393
|
+
*/
|
|
340
394
|
children: prop_types.default.node,
|
|
395
|
+
/**
|
|
396
|
+
* Specify an optional className to be added to the container node
|
|
397
|
+
*/
|
|
341
398
|
className: prop_types.default.string,
|
|
399
|
+
/**
|
|
400
|
+
* Specify whether component is contained type
|
|
401
|
+
*/
|
|
342
402
|
contained: prop_types.default.bool,
|
|
403
|
+
/**
|
|
404
|
+
* 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
|
|
405
|
+
*/
|
|
343
406
|
fullWidth: prop_types.default.bool,
|
|
407
|
+
/**
|
|
408
|
+
* If using `IconTab`, specify the size of the icon being used.
|
|
409
|
+
*/
|
|
344
410
|
iconSize: prop_types.default.oneOf(["default", "lg"]),
|
|
411
|
+
/**
|
|
412
|
+
* Provide the props that describe the left overflow button
|
|
413
|
+
*/
|
|
345
414
|
leftOverflowButtonProps: prop_types.default.object,
|
|
415
|
+
/**
|
|
416
|
+
* Specify whether to use the light component variant
|
|
417
|
+
*/
|
|
346
418
|
light: require_deprecate.deprecate(prop_types.default.bool, "The `light` prop for `TabList` has been deprecated in favor of the new `Layer` component. It will be removed in the next major release."),
|
|
419
|
+
/**
|
|
420
|
+
* Provide the props that describe the right overflow button
|
|
421
|
+
*/
|
|
347
422
|
rightOverflowButtonProps: prop_types.default.object,
|
|
423
|
+
/**
|
|
424
|
+
* Optionally provide a delay (in milliseconds) passed to the lodash
|
|
425
|
+
* debounce of the onScroll handler. This will impact the responsiveness
|
|
426
|
+
* of scroll arrow buttons rendering when scrolling to the first or last tab.
|
|
427
|
+
*/
|
|
348
428
|
scrollDebounceWait: prop_types.default.number,
|
|
429
|
+
/**
|
|
430
|
+
* Choose whether to automatically scroll
|
|
431
|
+
* to newly selected tabs on component rerender
|
|
432
|
+
*/
|
|
349
433
|
scrollIntoView: prop_types.default.bool,
|
|
434
|
+
/**
|
|
435
|
+
* Specify the size of the tabs.
|
|
436
|
+
*
|
|
437
|
+
* Supports `sm` and `md` for line tabs.
|
|
438
|
+
* Supports `sm`, `md`, and `lg` for contained tabs.
|
|
439
|
+
*/
|
|
350
440
|
size: prop_types.default.oneOf([
|
|
351
441
|
"sm",
|
|
352
442
|
"md",
|
|
353
443
|
"lg"
|
|
354
444
|
])
|
|
355
445
|
};
|
|
356
|
-
function TabListVertical({ activation = "automatic", "aria-label": label, children, className: customClassName, scrollIntoView, ...rest }) {
|
|
446
|
+
function TabListVertical({ activation = "automatic", "aria-label": label, children, className: customClassName, scrollIntoView, size, ...rest }) {
|
|
357
447
|
const { activeIndex, selectedIndex, setSelectedIndex, setActiveIndex } = react.default.useContext(TabsContext);
|
|
358
448
|
const prefix = require_usePrefix.usePrefix();
|
|
359
449
|
const ref = (0, react.useRef)(null);
|
|
360
450
|
const [isOverflowingBottom, setIsOverflowingBottom] = (0, react.useState)(false);
|
|
361
451
|
const [isOverflowingTop, setIsOverflowingTop] = (0, react.useState)(false);
|
|
362
452
|
const isSm = require_useMatchMedia.useMatchMedia(smMediaQuery);
|
|
363
|
-
const className = (0, classnames.default)(`${prefix}--tabs`, `${prefix}--tabs--vertical`, `${prefix}--tabs--contained`, customClassName);
|
|
453
|
+
const className = (0, classnames.default)(`${prefix}--tabs`, `${prefix}--tabs--vertical`, `${prefix}--tabs--contained`, { [`${prefix}--layout--size-${size}`]: size }, customClassName);
|
|
364
454
|
const tabs = (0, react.useRef)([]);
|
|
365
455
|
function onKeyDown(event) {
|
|
366
456
|
if (require_match.matches(event, [
|
|
@@ -432,6 +522,7 @@ function TabListVertical({ activation = "automatic", "aria-label": label, childr
|
|
|
432
522
|
...rest,
|
|
433
523
|
"aria-label": label,
|
|
434
524
|
contained: true,
|
|
525
|
+
size: size === "xl" ? "lg" : size,
|
|
435
526
|
children
|
|
436
527
|
});
|
|
437
528
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -464,10 +555,34 @@ function TabListVertical({ activation = "automatic", "aria-label": label, childr
|
|
|
464
555
|
});
|
|
465
556
|
}
|
|
466
557
|
TabListVertical.propTypes = {
|
|
558
|
+
/**
|
|
559
|
+
* Specify whether the content tab should be activated automatically or
|
|
560
|
+
* manually
|
|
561
|
+
*/
|
|
467
562
|
activation: prop_types.default.oneOf(["automatic", "manual"]),
|
|
563
|
+
/**
|
|
564
|
+
* Provide an accessible label to be read when a user interacts with this
|
|
565
|
+
* component
|
|
566
|
+
*/
|
|
468
567
|
"aria-label": prop_types.default.string,
|
|
568
|
+
/**
|
|
569
|
+
* Provide child elements to be rendered inside `ContentTabs`.
|
|
570
|
+
* These elements should render a `ContentTab`
|
|
571
|
+
*/
|
|
469
572
|
children: prop_types.default.node,
|
|
470
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Specify an optional className to be added to the container node
|
|
575
|
+
*/
|
|
576
|
+
className: prop_types.default.string,
|
|
577
|
+
/**
|
|
578
|
+
* Specify the size of the tabs.
|
|
579
|
+
*/
|
|
580
|
+
size: prop_types.default.oneOf([
|
|
581
|
+
"sm",
|
|
582
|
+
"md",
|
|
583
|
+
"lg",
|
|
584
|
+
"xl"
|
|
585
|
+
])
|
|
471
586
|
};
|
|
472
587
|
/**
|
|
473
588
|
* Helper function to set up the behavior when a button is "long pressed".
|
|
@@ -681,14 +796,44 @@ const Tab = (0, react.forwardRef)(({ as = "button", children, className: customC
|
|
|
681
796
|
}), DismissIcon] });
|
|
682
797
|
});
|
|
683
798
|
Tab.propTypes = {
|
|
799
|
+
/**
|
|
800
|
+
* Provide a custom element to render instead of the default button
|
|
801
|
+
*/
|
|
684
802
|
as: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.elementType]),
|
|
803
|
+
/**
|
|
804
|
+
* Provide child elements to be rendered inside `Tab`.
|
|
805
|
+
*/
|
|
685
806
|
children: prop_types.default.node,
|
|
807
|
+
/**
|
|
808
|
+
* Specify an optional className to be added to your Tab
|
|
809
|
+
*/
|
|
686
810
|
className: prop_types.default.string,
|
|
811
|
+
/**
|
|
812
|
+
* Whether your Tab is disabled.
|
|
813
|
+
*/
|
|
687
814
|
disabled: prop_types.default.bool,
|
|
815
|
+
/**
|
|
816
|
+
* Provide a handler that is invoked when a user clicks on the control
|
|
817
|
+
*/
|
|
688
818
|
onClick: prop_types.default.func,
|
|
819
|
+
/**
|
|
820
|
+
* Provide a handler that is invoked on the key down event for the control
|
|
821
|
+
*/
|
|
689
822
|
onKeyDown: prop_types.default.func,
|
|
823
|
+
/**
|
|
824
|
+
* An optional parameter to allow overriding the anchor rendering.
|
|
825
|
+
* Useful for using Tab along with react-router or other client
|
|
826
|
+
* side router libraries.
|
|
827
|
+
*/
|
|
690
828
|
renderButton: prop_types.default.func,
|
|
829
|
+
/**
|
|
830
|
+
* A component used to render an icon.
|
|
831
|
+
*/
|
|
691
832
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
833
|
+
/**
|
|
834
|
+
* An optional label to render under the primary tab label.
|
|
835
|
+
* Only useful for contained tabs.
|
|
836
|
+
*/
|
|
692
837
|
secondaryLabel: prop_types.default.string
|
|
693
838
|
};
|
|
694
839
|
/**
|
|
@@ -719,12 +864,37 @@ const IconTab = react.default.forwardRef(({ badgeIndicator, children, className:
|
|
|
719
864
|
});
|
|
720
865
|
});
|
|
721
866
|
IconTab.propTypes = {
|
|
867
|
+
/**
|
|
868
|
+
* **Experimental**: Display an empty dot badge on the Tab.
|
|
869
|
+
*/
|
|
722
870
|
badgeIndicator: prop_types.default.bool,
|
|
871
|
+
/**
|
|
872
|
+
* Provide an icon to be rendered inside `IconTab` as the visual label for Tab.
|
|
873
|
+
*/
|
|
723
874
|
children: prop_types.default.node,
|
|
875
|
+
/**
|
|
876
|
+
* Specify an optional className to be added to your Tab
|
|
877
|
+
*/
|
|
724
878
|
className: prop_types.default.string,
|
|
879
|
+
/**
|
|
880
|
+
* Specify whether the tooltip for the icon should be open when it first renders
|
|
881
|
+
*/
|
|
725
882
|
defaultOpen: prop_types.default.bool,
|
|
883
|
+
/**
|
|
884
|
+
* Specify the duration in milliseconds to delay before displaying the tooltip for the icon.
|
|
885
|
+
*/
|
|
726
886
|
enterDelayMs: prop_types.default.number,
|
|
887
|
+
/**
|
|
888
|
+
* Provide the label to be rendered inside the Tooltip. The label will use
|
|
889
|
+
* `aria-labelledby` and will fully describe the child node that is provided.
|
|
890
|
+
* This means that if you have text in the child node it will not be
|
|
891
|
+
* announced to the screen reader. If using the badgeIndicator then provide a
|
|
892
|
+
* label with describing that there is a new notification.
|
|
893
|
+
*/
|
|
727
894
|
label: prop_types.default.node.isRequired,
|
|
895
|
+
/**
|
|
896
|
+
* Specify the duration in milliseconds to delay before hiding the tooltip
|
|
897
|
+
*/
|
|
728
898
|
leaveDelayMs: prop_types.default.number
|
|
729
899
|
};
|
|
730
900
|
const TabPanel = react.default.forwardRef(({ children, className: customClassName, ...rest }, forwardRef) => {
|
|
@@ -746,7 +916,13 @@ const TabPanel = react.default.forwardRef(({ children, className: customClassNam
|
|
|
746
916
|
});
|
|
747
917
|
});
|
|
748
918
|
TabPanel.propTypes = {
|
|
919
|
+
/**
|
|
920
|
+
* Provide child elements to be rendered inside `TabPanel`.
|
|
921
|
+
*/
|
|
749
922
|
children: prop_types.default.node,
|
|
923
|
+
/**
|
|
924
|
+
* Specify an optional className to be added to TabPanel.
|
|
925
|
+
*/
|
|
750
926
|
className: prop_types.default.string
|
|
751
927
|
};
|
|
752
928
|
function TabPanels({ children }) {
|
|
@@ -779,7 +955,11 @@ function TabPanels({ children }) {
|
|
|
779
955
|
});
|
|
780
956
|
}) });
|
|
781
957
|
}
|
|
782
|
-
TabPanels.propTypes = {
|
|
958
|
+
TabPanels.propTypes = {
|
|
959
|
+
/**
|
|
960
|
+
* Provide child elements to be rendered inside `TabPanels`.
|
|
961
|
+
*/
|
|
962
|
+
children: prop_types.default.node };
|
|
783
963
|
//#endregion
|
|
784
964
|
exports.IconTab = IconTab;
|
|
785
965
|
exports.Tab = Tab;
|
|
@@ -99,9 +99,21 @@ const DismissibleTag = (0, react.forwardRef)(({ className, decorator, disabled,
|
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
DismissibleTag.propTypes = {
|
|
102
|
+
/**
|
|
103
|
+
* Provide a custom className that is applied to the containing <span>
|
|
104
|
+
*/
|
|
102
105
|
className: prop_types.default.string,
|
|
106
|
+
/**
|
|
107
|
+
* **Experimental:** Provide a `decorator` component to be rendered inside the `DismissibleTag` component
|
|
108
|
+
*/
|
|
103
109
|
decorator: prop_types.default.node,
|
|
110
|
+
/**
|
|
111
|
+
* Specify if the `DismissibleTag` is disabled
|
|
112
|
+
*/
|
|
104
113
|
disabled: prop_types.default.bool,
|
|
114
|
+
/**
|
|
115
|
+
* Specify the tooltip alignment for the dismiss button
|
|
116
|
+
*/
|
|
105
117
|
dismissTooltipAlignment: prop_types.default.oneOf([
|
|
106
118
|
"top",
|
|
107
119
|
"bottom",
|
|
@@ -116,15 +128,46 @@ DismissibleTag.propTypes = {
|
|
|
116
128
|
"right-end",
|
|
117
129
|
"right-start"
|
|
118
130
|
]),
|
|
131
|
+
/**
|
|
132
|
+
* Provide a custom tooltip label for the dismiss button
|
|
133
|
+
*/
|
|
119
134
|
dismissTooltipLabel: prop_types.default.string,
|
|
135
|
+
/**
|
|
136
|
+
* Specify the id for the tag.
|
|
137
|
+
*/
|
|
120
138
|
id: prop_types.default.string,
|
|
139
|
+
/**
|
|
140
|
+
* Click handler for filter tag close button.
|
|
141
|
+
*/
|
|
121
142
|
onClose: prop_types.default.func,
|
|
143
|
+
/**
|
|
144
|
+
* A component used to render an icon.
|
|
145
|
+
*/
|
|
122
146
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
147
|
+
/**
|
|
148
|
+
* Specify the size of the Tag. Currently supports either `sm`,
|
|
149
|
+
* `md` (default) or `lg` sizes.
|
|
150
|
+
*/
|
|
123
151
|
size: prop_types.default.oneOf(Object.keys(require_Tag.SIZES)),
|
|
152
|
+
/**
|
|
153
|
+
* **Experimental:** Provide a `Slug` component to be rendered inside the `DismissibleTag` component
|
|
154
|
+
*/
|
|
124
155
|
slug: require_deprecate.deprecate(prop_types.default.node, "The `slug` prop has been deprecated and will be removed in the next major version. Use the decorator prop instead."),
|
|
156
|
+
/**
|
|
157
|
+
* Provide text to be rendered inside of a the tag.
|
|
158
|
+
*/
|
|
125
159
|
text: prop_types.default.string,
|
|
160
|
+
/**
|
|
161
|
+
* Provide a custom `title` to be inserted in the tag.
|
|
162
|
+
*/
|
|
126
163
|
tagTitle: prop_types.default.string,
|
|
164
|
+
/**
|
|
165
|
+
* Text to show on clear filters
|
|
166
|
+
*/
|
|
127
167
|
title: prop_types.default.string,
|
|
168
|
+
/**
|
|
169
|
+
* Specify the type of the `Tag`
|
|
170
|
+
*/
|
|
128
171
|
type: prop_types.default.oneOf(Object.keys(require_Tag.TYPES))
|
|
129
172
|
};
|
|
130
173
|
//#endregion
|
|
@@ -93,12 +93,34 @@ const OperationalTag = (0, react.forwardRef)(({ className, disabled, id, renderI
|
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
OperationalTag.propTypes = {
|
|
96
|
+
/**
|
|
97
|
+
* Provide a custom className that is applied to the containing <span>
|
|
98
|
+
*/
|
|
96
99
|
className: prop_types.default.string,
|
|
100
|
+
/**
|
|
101
|
+
* Specify if the `OperationalTag` is disabled
|
|
102
|
+
*/
|
|
97
103
|
disabled: prop_types.default.bool,
|
|
104
|
+
/**
|
|
105
|
+
* Specify the id for the tag.
|
|
106
|
+
*/
|
|
98
107
|
id: prop_types.default.string,
|
|
108
|
+
/**
|
|
109
|
+
* A component used to render an icon.
|
|
110
|
+
*/
|
|
99
111
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
112
|
+
/**
|
|
113
|
+
* Specify the size of the Tag. Currently supports either `sm`,
|
|
114
|
+
* `md` (default) or `lg` sizes.
|
|
115
|
+
*/
|
|
100
116
|
size: prop_types.default.oneOf(Object.keys(require_Tag.SIZES)),
|
|
117
|
+
/**
|
|
118
|
+
* Provide text to be rendered inside of a the tag.
|
|
119
|
+
*/
|
|
101
120
|
text: prop_types.default.string,
|
|
121
|
+
/**
|
|
122
|
+
* Specify the type of the `Tag`
|
|
123
|
+
*/
|
|
102
124
|
type: prop_types.default.oneOf(Object.keys(TYPES))
|
|
103
125
|
};
|
|
104
126
|
//#endregion
|
|
@@ -92,15 +92,46 @@ const SelectableTag = (0, react.forwardRef)(({ className, disabled, id, renderIc
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
SelectableTag.propTypes = {
|
|
95
|
+
/**
|
|
96
|
+
* Provide a custom className that is applied to the containing <span>
|
|
97
|
+
*/
|
|
95
98
|
className: prop_types.default.string,
|
|
99
|
+
/**
|
|
100
|
+
* Specify if the `SelectableTag` is disabled
|
|
101
|
+
*/
|
|
96
102
|
disabled: prop_types.default.bool,
|
|
103
|
+
/**
|
|
104
|
+
* Specify the id for the tag.
|
|
105
|
+
*/
|
|
97
106
|
id: prop_types.default.string,
|
|
107
|
+
/**
|
|
108
|
+
* A component used to render an icon.
|
|
109
|
+
*/
|
|
98
110
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
111
|
+
/**
|
|
112
|
+
* Provide an optional hook that is called when selected is changed
|
|
113
|
+
*/
|
|
99
114
|
onChange: prop_types.default.func,
|
|
115
|
+
/**
|
|
116
|
+
* Provide an optional function to be called when the tag is clicked.
|
|
117
|
+
*/
|
|
100
118
|
onClick: prop_types.default.func,
|
|
119
|
+
/**
|
|
120
|
+
* Specify the state of the selectable tag.
|
|
121
|
+
*/
|
|
101
122
|
selected: prop_types.default.bool,
|
|
123
|
+
/**
|
|
124
|
+
* Specify the default state of the selectable tag.
|
|
125
|
+
*/
|
|
102
126
|
defaultSelected: prop_types.default.bool,
|
|
127
|
+
/**
|
|
128
|
+
* Specify the size of the Tag. Currently supports either `sm`,
|
|
129
|
+
* `md` (default) or `lg` sizes.
|
|
130
|
+
*/
|
|
103
131
|
size: prop_types.default.oneOf(Object.keys(require_Tag.SIZES)),
|
|
132
|
+
/**
|
|
133
|
+
* Provide text to be rendered inside of a the tag.
|
|
134
|
+
*/
|
|
104
135
|
text: prop_types.default.string
|
|
105
136
|
};
|
|
106
137
|
//#endregion
|
|
@@ -32,7 +32,14 @@ function TagSkeleton({ className, size, ...rest }) {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
TagSkeleton.propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* Specify an optional className to add.
|
|
37
|
+
*/
|
|
35
38
|
className: prop_types.default.string,
|
|
39
|
+
/**
|
|
40
|
+
* Specify the size of the Tag. Currently supports either `sm` or
|
|
41
|
+
* default sizes.
|
|
42
|
+
*/
|
|
36
43
|
size: prop_types.default.oneOf(["sm"])
|
|
37
44
|
};
|
|
38
45
|
//#endregion
|