@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
|
@@ -48,6 +48,9 @@ function CopyButton({ align = "bottom", autoAlign = false, feedback = "Copied!",
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
CopyButton.propTypes = {
|
|
51
|
+
/**
|
|
52
|
+
* Specify how the trigger should align with the tooltip
|
|
53
|
+
*/
|
|
51
54
|
align: require_deprecateValuesWithin.deprecateValuesWithin(prop_types.default.oneOf([
|
|
52
55
|
"top",
|
|
53
56
|
"top-left",
|
|
@@ -83,11 +86,34 @@ CopyButton.propTypes = {
|
|
|
83
86
|
"right-start",
|
|
84
87
|
"right-end"
|
|
85
88
|
], require_mapPopoverAlign.mapPopoverAlign),
|
|
89
|
+
/**
|
|
90
|
+
* **Experimental**: Will attempt to automatically align the tooltip. Requires
|
|
91
|
+
* React v17+
|
|
92
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
93
|
+
*/
|
|
86
94
|
autoAlign: prop_types.default.bool,
|
|
95
|
+
/**
|
|
96
|
+
* Specify an optional className to be applied to the underlying `<button>`
|
|
97
|
+
*/
|
|
87
98
|
className: prop_types.default.string,
|
|
99
|
+
/**
|
|
100
|
+
* Specify the string that is displayed when the button is clicked and the
|
|
101
|
+
* content is copied
|
|
102
|
+
*/
|
|
88
103
|
feedback: prop_types.default.string,
|
|
104
|
+
/**
|
|
105
|
+
* Specify the time it takes for the feedback message to timeout
|
|
106
|
+
*/
|
|
89
107
|
feedbackTimeout: prop_types.default.number,
|
|
108
|
+
/**
|
|
109
|
+
* Provide a description for the icon representing the copy action that can
|
|
110
|
+
* be read by screen readers
|
|
111
|
+
*/
|
|
90
112
|
iconDescription: prop_types.default.string,
|
|
113
|
+
/**
|
|
114
|
+
* Specify an optional `onClick` handler that is called when the underlying
|
|
115
|
+
* `<button>` is clicked
|
|
116
|
+
*/
|
|
91
117
|
onClick: prop_types.default.func
|
|
92
118
|
};
|
|
93
119
|
//#endregion
|
|
@@ -455,25 +455,68 @@ DataTable.TableToolbarContent = require_TableToolbarContent.default;
|
|
|
455
455
|
DataTable.TableToolbarSearch = require_TableToolbarSearch.default;
|
|
456
456
|
DataTable.TableToolbarMenu = require_TableToolbarMenu.default;
|
|
457
457
|
DataTable.propTypes = {
|
|
458
|
+
/**
|
|
459
|
+
* Pass in the children that will be rendered within the Table
|
|
460
|
+
*/
|
|
458
461
|
children: prop_types.default.func,
|
|
462
|
+
/**
|
|
463
|
+
* Experimental property. Allows table to align cell contents to the top if there is text wrapping in the content. Might have performance issues, intended for smaller tables
|
|
464
|
+
*/
|
|
459
465
|
experimentalAutoAlign: prop_types.default.bool,
|
|
466
|
+
/**
|
|
467
|
+
* Optional hook to manually control filtering of the rows from the
|
|
468
|
+
* TableToolbarSearch component
|
|
469
|
+
*/
|
|
460
470
|
filterRows: prop_types.default.func,
|
|
471
|
+
/**
|
|
472
|
+
* The `headers` prop represents the order in which the headers should
|
|
473
|
+
* appear in the table. We expect an array of objects to be passed in, where
|
|
474
|
+
* `key` is the name of the key in a row object, and `header` is the name of
|
|
475
|
+
* the header.
|
|
476
|
+
*/
|
|
461
477
|
headers: prop_types.default.arrayOf(prop_types.default.shape({
|
|
462
478
|
key: prop_types.default.string.isRequired,
|
|
463
479
|
header: prop_types.default.node.isRequired,
|
|
464
480
|
isSortable: prop_types.default.bool
|
|
465
481
|
})).isRequired,
|
|
482
|
+
/**
|
|
483
|
+
* Specify whether the table should be able to be sorted by its headers
|
|
484
|
+
*/
|
|
466
485
|
isSortable: prop_types.default.bool,
|
|
486
|
+
/**
|
|
487
|
+
* Provide a string for the current locale
|
|
488
|
+
*/
|
|
467
489
|
locale: prop_types.default.string,
|
|
490
|
+
/**
|
|
491
|
+
* Specify whether the overflow menu (if it exists) should be shown always, or only on hover
|
|
492
|
+
*/
|
|
468
493
|
overflowMenuOnHover: prop_types.default.bool,
|
|
494
|
+
/**
|
|
495
|
+
* Specify whether the control should be a radio button or inline checkbox
|
|
496
|
+
*/
|
|
469
497
|
radio: prop_types.default.bool,
|
|
498
|
+
/**
|
|
499
|
+
* @deprecated Use `children` instead. This prop will be removed in
|
|
500
|
+
* the next major version.
|
|
501
|
+
*
|
|
502
|
+
* https://www.patterns.dev/react/render-props-pattern/#children-as-a-function
|
|
503
|
+
*/
|
|
470
504
|
render: require_deprecate.deprecate(prop_types.default.func),
|
|
505
|
+
/**
|
|
506
|
+
* The `rows` prop is where you provide us with a list of all the rows that
|
|
507
|
+
* you want to render in the table. The only hard requirement is that this
|
|
508
|
+
* is an array of objects, and that each object has a unique `id` field
|
|
509
|
+
* available on it.
|
|
510
|
+
*/
|
|
471
511
|
rows: prop_types.default.arrayOf(prop_types.default.shape({
|
|
472
512
|
id: prop_types.default.string.isRequired,
|
|
473
513
|
disabled: prop_types.default.bool,
|
|
474
514
|
isSelected: prop_types.default.bool,
|
|
475
515
|
isExpanded: prop_types.default.bool
|
|
476
516
|
})).isRequired,
|
|
517
|
+
/**
|
|
518
|
+
* Change the row height of table. Currently supports `xs`, `sm`, `md`, `lg`, and `xl`.
|
|
519
|
+
*/
|
|
477
520
|
size: prop_types.default.oneOf([
|
|
478
521
|
"xs",
|
|
479
522
|
"sm",
|
|
@@ -481,10 +524,26 @@ DataTable.propTypes = {
|
|
|
481
524
|
"lg",
|
|
482
525
|
"xl"
|
|
483
526
|
]),
|
|
527
|
+
/**
|
|
528
|
+
* Optional hook to manually control sorting of the rows.
|
|
529
|
+
*/
|
|
484
530
|
sortRow: prop_types.default.func,
|
|
531
|
+
/**
|
|
532
|
+
* Specify whether the header should be sticky.
|
|
533
|
+
* Still experimental: may not work with every combination of table props
|
|
534
|
+
*/
|
|
485
535
|
stickyHeader: prop_types.default.bool,
|
|
536
|
+
/**
|
|
537
|
+
* Translates component strings using your i18n tool.
|
|
538
|
+
*/
|
|
486
539
|
translateWithId: prop_types.default.func,
|
|
540
|
+
/**
|
|
541
|
+
* If `true`, sets the table width to `auto` instead of `100%`.
|
|
542
|
+
*/
|
|
487
543
|
useStaticWidth: prop_types.default.bool,
|
|
544
|
+
/**
|
|
545
|
+
* `true` to add useZebraStyles striping.
|
|
546
|
+
*/
|
|
488
547
|
useZebraStyles: prop_types.default.bool
|
|
489
548
|
};
|
|
490
549
|
//#endregion
|
|
@@ -105,11 +105,26 @@ const Table = ({ className, children, useZebraStyles, size = "lg", isSortable =
|
|
|
105
105
|
}) : table;
|
|
106
106
|
};
|
|
107
107
|
Table.propTypes = {
|
|
108
|
+
/**
|
|
109
|
+
* Pass in the children that will be rendered within the Table
|
|
110
|
+
*/
|
|
108
111
|
children: prop_types.default.node,
|
|
109
112
|
className: prop_types.default.string,
|
|
113
|
+
/**
|
|
114
|
+
* Experimental property. Allows table to align cell contents to the top if there is text wrapping in the content. Might have performance issues, intended for smaller tables
|
|
115
|
+
*/
|
|
110
116
|
experimentalAutoAlign: prop_types.default.bool,
|
|
117
|
+
/**
|
|
118
|
+
* `false` If true, will apply sorting styles
|
|
119
|
+
*/
|
|
111
120
|
isSortable: prop_types.default.bool,
|
|
121
|
+
/**
|
|
122
|
+
* Specify whether the overflow menu (if it exists) should be shown always, or only on hover
|
|
123
|
+
*/
|
|
112
124
|
overflowMenuOnHover: prop_types.default.bool,
|
|
125
|
+
/**
|
|
126
|
+
* Change the row height of table. Currently supports `xs`, `sm`, `md`, `lg`, and `xl`.
|
|
127
|
+
*/
|
|
113
128
|
size: prop_types.default.oneOf([
|
|
114
129
|
"xs",
|
|
115
130
|
"sm",
|
|
@@ -117,9 +132,21 @@ Table.propTypes = {
|
|
|
117
132
|
"lg",
|
|
118
133
|
"xl"
|
|
119
134
|
]),
|
|
135
|
+
/**
|
|
136
|
+
* `false` If true, will keep the header sticky (only data rows will scroll)
|
|
137
|
+
*/
|
|
120
138
|
stickyHeader: prop_types.default.bool,
|
|
139
|
+
/**
|
|
140
|
+
* If `true`, sets the table width to `auto` instead of `100%`.
|
|
141
|
+
*/
|
|
121
142
|
useStaticWidth: prop_types.default.bool,
|
|
143
|
+
/**
|
|
144
|
+
* `true` to add useZebraStyles striping.
|
|
145
|
+
*/
|
|
122
146
|
useZebraStyles: prop_types.default.bool,
|
|
147
|
+
/**
|
|
148
|
+
* Specify the table tabIndex
|
|
149
|
+
*/
|
|
123
150
|
tabIndex: prop_types.default.number
|
|
124
151
|
};
|
|
125
152
|
//#endregion
|
|
@@ -26,10 +26,20 @@ const TableBatchAction = ({ renderIcon = _carbon_icons_react.AddFilled, iconDesc
|
|
|
26
26
|
...props
|
|
27
27
|
});
|
|
28
28
|
TableBatchAction.propTypes = {
|
|
29
|
+
/**
|
|
30
|
+
* Specify if the button is an icon-only button
|
|
31
|
+
*/
|
|
29
32
|
hasIconOnly: prop_types.default.bool,
|
|
33
|
+
/**
|
|
34
|
+
* If specifying the `renderIcon` prop, provide a description for that icon that can
|
|
35
|
+
* be read by screen readers
|
|
36
|
+
*/
|
|
30
37
|
iconDescription: (props) => {
|
|
31
38
|
if (props.renderIcon && !props.children && !props.iconDescription) return /* @__PURE__ */ new Error("renderIcon property specified without also providing an iconDescription property.");
|
|
32
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* A component used to render an icon.
|
|
42
|
+
*/
|
|
33
43
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object])
|
|
34
44
|
};
|
|
35
45
|
//#endregion
|
|
@@ -87,11 +87,35 @@ const TableBatchActions = ({ className, children, shouldShowBatchActions, totalS
|
|
|
87
87
|
TableBatchActions.propTypes = {
|
|
88
88
|
children: prop_types.default.node,
|
|
89
89
|
className: prop_types.default.string,
|
|
90
|
+
/**
|
|
91
|
+
* Hook required to listen for when the user initiates a cancel request
|
|
92
|
+
* through this component
|
|
93
|
+
*/
|
|
90
94
|
onCancel: prop_types.default.func.isRequired,
|
|
95
|
+
/**
|
|
96
|
+
* Hook to listen for when the user initiates a select all
|
|
97
|
+
* request through this component. This _only_ controls the rendering
|
|
98
|
+
* of the `Select All` button and does not include built in functionality
|
|
99
|
+
*/
|
|
91
100
|
onSelectAll: prop_types.default.func,
|
|
101
|
+
/**
|
|
102
|
+
* Boolean specifier for whether or not the batch action bar should be
|
|
103
|
+
* displayed
|
|
104
|
+
*/
|
|
92
105
|
shouldShowBatchActions: prop_types.default.bool,
|
|
106
|
+
/**
|
|
107
|
+
* Numeric representation of the total number of items in a table.
|
|
108
|
+
* This number is used in the select all button text
|
|
109
|
+
*/
|
|
93
110
|
totalCount: prop_types.default.number,
|
|
111
|
+
/**
|
|
112
|
+
* Numeric representation of the total number of items selected in a table.
|
|
113
|
+
* This number is used to derive the selection message
|
|
114
|
+
*/
|
|
94
115
|
totalSelected: prop_types.default.number.isRequired,
|
|
116
|
+
/**
|
|
117
|
+
* Translates component strings using your i18n tool.
|
|
118
|
+
*/
|
|
95
119
|
translateWithId: prop_types.default.func
|
|
96
120
|
};
|
|
97
121
|
//#endregion
|
|
@@ -25,6 +25,9 @@ const TableBody = ({ children, className, ...rest }) => /* @__PURE__ */ (0, reac
|
|
|
25
25
|
children
|
|
26
26
|
});
|
|
27
27
|
TableBody.propTypes = {
|
|
28
|
+
/**
|
|
29
|
+
* `polite` Adjust the notification behavior of screen readers
|
|
30
|
+
*/
|
|
28
31
|
"aria-live": prop_types.default.oneOf([
|
|
29
32
|
"polite",
|
|
30
33
|
"assertive",
|
|
@@ -34,10 +34,25 @@ const TableCell = (0, react.forwardRef)((props, ref) => {
|
|
|
34
34
|
});
|
|
35
35
|
TableCell.displayName = "TableCell";
|
|
36
36
|
TableCell.propTypes = {
|
|
37
|
+
/**
|
|
38
|
+
* Pass in children that will be embedded in the table header label
|
|
39
|
+
*/
|
|
37
40
|
children: prop_types.default.node,
|
|
41
|
+
/**
|
|
42
|
+
* Specify an optional className to be applied to the container node
|
|
43
|
+
*/
|
|
38
44
|
className: prop_types.default.string,
|
|
45
|
+
/**
|
|
46
|
+
* The width of the expanded row's internal cell
|
|
47
|
+
*/
|
|
39
48
|
colSpan: prop_types.default.number,
|
|
49
|
+
/**
|
|
50
|
+
* Specify if the table cell is in an AI column
|
|
51
|
+
*/
|
|
40
52
|
hasAILabelHeader: prop_types.default.bool,
|
|
53
|
+
/**
|
|
54
|
+
* The id of the matching th node in the table head. Addresses a11y concerns outlined here: https://www.ibm.com/able/guidelines/ci162/info_and_relationships.html and https://www.w3.org/TR/WCAG20-TECHS/H43
|
|
55
|
+
*/
|
|
41
56
|
headers: prop_types.default.string
|
|
42
57
|
};
|
|
43
58
|
//#endregion
|
|
@@ -75,13 +75,31 @@ const TableContainer = ({ aiEnabled, className, children, decorator, title, desc
|
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
TableContainer.propTypes = {
|
|
78
|
+
/**
|
|
79
|
+
* Specify if the entire table has AI generated contents
|
|
80
|
+
*/
|
|
78
81
|
aiEnabled: prop_types.default.bool,
|
|
79
82
|
children: prop_types.default.node,
|
|
80
83
|
className: prop_types.default.string,
|
|
84
|
+
/**
|
|
85
|
+
* **Experimental**: Provide a `decorator` component to be rendered inside the `TableContainer` component
|
|
86
|
+
*/
|
|
81
87
|
decorator: prop_types.default.node,
|
|
88
|
+
/**
|
|
89
|
+
* Optional description text for the Table
|
|
90
|
+
*/
|
|
82
91
|
description: prop_types.default.node,
|
|
92
|
+
/**
|
|
93
|
+
* Specify whether the table should have a sticky header
|
|
94
|
+
*/
|
|
83
95
|
stickyHeader: prop_types.default.bool,
|
|
96
|
+
/**
|
|
97
|
+
* Provide a title for the Table
|
|
98
|
+
*/
|
|
84
99
|
title: prop_types.default.node,
|
|
100
|
+
/**
|
|
101
|
+
* If true, will use a width of 'fit-content' to match the inner table width
|
|
102
|
+
*/
|
|
85
103
|
useStaticWidth: prop_types.default.bool
|
|
86
104
|
};
|
|
87
105
|
//#endregion
|
|
@@ -36,7 +36,13 @@ const TableDecoratorRow = ({ className, decorator }) => {
|
|
|
36
36
|
};
|
|
37
37
|
TableDecoratorRow.displayName = "TableDecoratorRow";
|
|
38
38
|
TableDecoratorRow.propTypes = {
|
|
39
|
+
/**
|
|
40
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
41
|
+
*/
|
|
39
42
|
className: prop_types.default.string,
|
|
43
|
+
/**
|
|
44
|
+
* **Experimental**: Provide a `decorator` component to be rendered inside the `TableDecoratorRow` component
|
|
45
|
+
*/
|
|
40
46
|
decorator: prop_types.default.node
|
|
41
47
|
};
|
|
42
48
|
//#endregion
|
|
@@ -48,16 +48,47 @@ const TableExpandHeader = ({ ["aria-controls"]: ariaControls, ["aria-label"]: ar
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
TableExpandHeader.propTypes = {
|
|
51
|
+
/**
|
|
52
|
+
* Space separated list of one or more ID values referencing the TableExpandedRow(s) being controlled by the TableExpandHeader
|
|
53
|
+
*/
|
|
51
54
|
["aria-controls"]: prop_types.default.string,
|
|
55
|
+
/**
|
|
56
|
+
* Specify the string read by a voice reader when the expand trigger is
|
|
57
|
+
* focused
|
|
58
|
+
*/
|
|
52
59
|
["aria-label"]: prop_types.default.string,
|
|
60
|
+
/**
|
|
61
|
+
* Deprecated, please use `aria-label` instead.
|
|
62
|
+
* Specify the string read by a voice reader when the expand trigger is
|
|
63
|
+
* focused
|
|
64
|
+
*/
|
|
53
65
|
ariaLabel: prop_types.default.string,
|
|
54
66
|
children: prop_types.default.node,
|
|
55
67
|
className: prop_types.default.string,
|
|
68
|
+
/**
|
|
69
|
+
* The enableExpando prop is being replaced by TableExpandHeader
|
|
70
|
+
*/
|
|
56
71
|
enableExpando: require_deprecate.deprecate(prop_types.default.bool, "The `enableExpando` prop has been deprecated in favor of `enableToggle`. This prop will be removed in the next major release."),
|
|
72
|
+
/**
|
|
73
|
+
* Specify whether an expand all button should be displayed
|
|
74
|
+
*/
|
|
57
75
|
enableToggle: prop_types.default.bool,
|
|
76
|
+
/**
|
|
77
|
+
* The description of the chevron right icon, to be put in its SVG `<title>` element.
|
|
78
|
+
*/
|
|
58
79
|
expandIconDescription: prop_types.default.string,
|
|
80
|
+
/**
|
|
81
|
+
* Supply an id to the th element.
|
|
82
|
+
*/
|
|
59
83
|
id: prop_types.default.string,
|
|
84
|
+
/**
|
|
85
|
+
* Specify whether this row is expanded or not. This helps coordinate data
|
|
86
|
+
* attributes so that `TableExpandRow` and `TableExpandedRow` work together
|
|
87
|
+
*/
|
|
60
88
|
isExpanded: require_requiredIfGivenPropIsTruthy.requiredIfGivenPropIsTruthy("enableToggle", prop_types.default.bool),
|
|
89
|
+
/**
|
|
90
|
+
* Hook for when a listener initiates a request to expand the given row
|
|
91
|
+
*/
|
|
61
92
|
onExpand: prop_types.default.oneOfType([require_requiredIfGivenPropIsTruthy.requiredIfGivenPropIsTruthy("enableExpando", prop_types.default.func), require_requiredIfGivenPropIsTruthy.requiredIfGivenPropIsTruthy("enableToggle", prop_types.default.func)])
|
|
62
93
|
};
|
|
63
94
|
//#endregion
|
|
@@ -79,15 +79,44 @@ const TableExpandRow = (0, react.forwardRef)(({ ["aria-controls"]: ariaControls,
|
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
81
|
TableExpandRow.propTypes = {
|
|
82
|
+
/**
|
|
83
|
+
* Space separated list of one or more ID values referencing the TableExpandedRow(s) being controlled by the TableExpandRow
|
|
84
|
+
* TODO: make this required in v12
|
|
85
|
+
*/
|
|
82
86
|
"aria-controls": prop_types.default.string,
|
|
87
|
+
/**
|
|
88
|
+
* Specify the string read by a voice reader when the expand trigger is
|
|
89
|
+
* focused
|
|
90
|
+
*/
|
|
83
91
|
"aria-label": prop_types.default.string,
|
|
92
|
+
/**
|
|
93
|
+
* Deprecated, please use `aria-label` instead.
|
|
94
|
+
* Specify the string read by a voice reader when the expand trigger is
|
|
95
|
+
* focused
|
|
96
|
+
*/
|
|
84
97
|
ariaLabel: prop_types.default.string,
|
|
85
98
|
children: prop_types.default.node,
|
|
86
99
|
className: prop_types.default.string,
|
|
100
|
+
/**
|
|
101
|
+
* The id of the matching th node in the table head. Addresses a11y concerns outlined here: https://www.ibm.com/able/guidelines/ci162/info_and_relationships.html and https://www.w3.org/TR/WCAG20-TECHS/H43
|
|
102
|
+
*/
|
|
87
103
|
expandHeader: prop_types.default.string,
|
|
104
|
+
/**
|
|
105
|
+
* The description of the chevron right icon, to be put in its SVG `<title>` element.
|
|
106
|
+
*/
|
|
88
107
|
expandIconDescription: prop_types.default.string,
|
|
108
|
+
/**
|
|
109
|
+
* Specify whether this row is expanded or not. This helps coordinate data
|
|
110
|
+
* attributes so that `TableExpandRow` and `TableExpandedRow` work together
|
|
111
|
+
*/
|
|
89
112
|
isExpanded: prop_types.default.bool,
|
|
113
|
+
/**
|
|
114
|
+
* Specify if the row is selected
|
|
115
|
+
*/
|
|
90
116
|
isSelected: prop_types.default.bool,
|
|
117
|
+
/**
|
|
118
|
+
* Hook for when a listener initiates a request to expand the given row
|
|
119
|
+
*/
|
|
91
120
|
onExpand: prop_types.default.func.isRequired
|
|
92
121
|
};
|
|
93
122
|
TableExpandRow.displayName = "TableExpandRow";
|
|
@@ -50,8 +50,17 @@ const TableExpandedRow = ({ className: customClassName, children, colSpan, ...re
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
TableExpandedRow.propTypes = {
|
|
53
|
+
/**
|
|
54
|
+
* Pass in the contents for your TableExpandedRow
|
|
55
|
+
*/
|
|
53
56
|
children: prop_types.default.node,
|
|
57
|
+
/**
|
|
58
|
+
* Specify an optional className to be applied to the container node
|
|
59
|
+
*/
|
|
54
60
|
className: prop_types.default.string,
|
|
61
|
+
/**
|
|
62
|
+
* The width of the expanded row's internal cell
|
|
63
|
+
*/
|
|
55
64
|
colSpan: prop_types.default.number.isRequired
|
|
56
65
|
};
|
|
57
66
|
//#endregion
|
|
@@ -139,15 +139,50 @@ const TableHeader = (0, react.forwardRef)((props, ref) => {
|
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
TableHeader.propTypes = {
|
|
142
|
+
/**
|
|
143
|
+
* Pass in children that will be embedded in the table header label
|
|
144
|
+
*/
|
|
142
145
|
children: prop_types.default.node,
|
|
146
|
+
/**
|
|
147
|
+
* Specify an optional className to be applied to the container node
|
|
148
|
+
*/
|
|
143
149
|
className: prop_types.default.string,
|
|
150
|
+
/**
|
|
151
|
+
* Specify `colSpan` as a non-negative integer value to indicate how
|
|
152
|
+
* many columns the TableHeader cell extends in a table
|
|
153
|
+
*/
|
|
144
154
|
colSpan: prop_types.default.number,
|
|
155
|
+
/**
|
|
156
|
+
* Supply an id to the th element.
|
|
157
|
+
*/
|
|
145
158
|
id: prop_types.default.string,
|
|
159
|
+
/**
|
|
160
|
+
* Specify whether this header is the header by which a table is being sorted
|
|
161
|
+
* by
|
|
162
|
+
*/
|
|
146
163
|
isSortHeader: prop_types.default.bool,
|
|
164
|
+
/**
|
|
165
|
+
* Specify whether this header is one through which a user can sort the table
|
|
166
|
+
*/
|
|
147
167
|
isSortable: prop_types.default.bool,
|
|
168
|
+
/**
|
|
169
|
+
* Hook that is invoked when the header is clicked
|
|
170
|
+
*/
|
|
148
171
|
onClick: prop_types.default.func,
|
|
172
|
+
/**
|
|
173
|
+
* Specify the scope of this table header. You can find more info about this
|
|
174
|
+
* attribute at the following URL:
|
|
175
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope
|
|
176
|
+
*/
|
|
149
177
|
scope: prop_types.default.string,
|
|
178
|
+
/**
|
|
179
|
+
* Specify which direction we are currently sorting by, should be one of DESC,
|
|
180
|
+
* NONE, or ASC.
|
|
181
|
+
*/
|
|
150
182
|
sortDirection: prop_types.default.oneOf(Object.values(require_sortStates.sortStates)),
|
|
183
|
+
/**
|
|
184
|
+
* Translates component strings using your i18n tool.
|
|
185
|
+
*/
|
|
151
186
|
translateWithId: prop_types.default.func
|
|
152
187
|
};
|
|
153
188
|
TableHeader.displayName = "TableHeader";
|
|
@@ -43,12 +43,33 @@ const TableRow = (0, react.forwardRef)((props, ref) => {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
TableRow.propTypes = {
|
|
46
|
+
/**
|
|
47
|
+
* Specify an optional className to be applied to the container node
|
|
48
|
+
*/
|
|
46
49
|
className: prop_types.default.string,
|
|
50
|
+
/**
|
|
51
|
+
* Specify if the row is selected
|
|
52
|
+
*/
|
|
47
53
|
isSelected: prop_types.default.bool,
|
|
54
|
+
/**
|
|
55
|
+
* Non-standard alias for `aria-label`.
|
|
56
|
+
*/
|
|
48
57
|
ariaLabel: prop_types.default.string,
|
|
58
|
+
/**
|
|
59
|
+
* Accessible label for the row element.
|
|
60
|
+
*/
|
|
49
61
|
"aria-label": prop_types.default.string,
|
|
62
|
+
/**
|
|
63
|
+
* Associates this row with the id of the corresponding expanded row content.
|
|
64
|
+
*/
|
|
50
65
|
"aria-controls": prop_types.default.string,
|
|
66
|
+
/**
|
|
67
|
+
* Handler called when the row’s expand toggle is clicked.
|
|
68
|
+
*/
|
|
51
69
|
onExpand: prop_types.default.func,
|
|
70
|
+
/**
|
|
71
|
+
* Flag indicating whether the row is currently expanded.
|
|
72
|
+
*/
|
|
52
73
|
isExpanded: prop_types.default.bool
|
|
53
74
|
};
|
|
54
75
|
//#endregion
|
|
@@ -40,14 +40,42 @@ const TableSelectAll = ({ ariaLabel: deprecatedAriaLabel = "Select all rows in t
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
TableSelectAll.propTypes = {
|
|
43
|
+
/**
|
|
44
|
+
* Specify the aria label for the underlying input control
|
|
45
|
+
*/
|
|
43
46
|
["aria-label"]: prop_types.default.string,
|
|
47
|
+
/**
|
|
48
|
+
* Deprecated, please use `aria-label` instead.
|
|
49
|
+
* Specify the aria label for the underlying input control
|
|
50
|
+
*/
|
|
44
51
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
52
|
+
/**
|
|
53
|
+
* Specify whether all items are selected, or not
|
|
54
|
+
*/
|
|
45
55
|
checked: prop_types.default.bool,
|
|
56
|
+
/**
|
|
57
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
58
|
+
*/
|
|
46
59
|
className: prop_types.default.string,
|
|
60
|
+
/**
|
|
61
|
+
* Specify whether the checkbox input should be disabled
|
|
62
|
+
*/
|
|
47
63
|
disabled: prop_types.default.bool,
|
|
64
|
+
/**
|
|
65
|
+
* Provide an `id` for the underlying input control
|
|
66
|
+
*/
|
|
48
67
|
id: prop_types.default.string.isRequired,
|
|
68
|
+
/**
|
|
69
|
+
* Specify whether the selection only has a subset of all items
|
|
70
|
+
*/
|
|
49
71
|
indeterminate: prop_types.default.bool,
|
|
72
|
+
/**
|
|
73
|
+
* Provide a `name` for the underlying input control
|
|
74
|
+
*/
|
|
50
75
|
name: prop_types.default.string.isRequired,
|
|
76
|
+
/**
|
|
77
|
+
* Provide a handler to listen to when a user initiates a selection request
|
|
78
|
+
*/
|
|
51
79
|
onSelect: prop_types.default.func.isRequired
|
|
52
80
|
};
|
|
53
81
|
//#endregion
|
|
@@ -61,15 +61,46 @@ const TableSelectRow = ({ ariaLabel: deprecatedAriaLabel, ["aria-label"]: ariaLa
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
TableSelectRow.propTypes = {
|
|
64
|
+
/**
|
|
65
|
+
* Specify the aria label for the underlying input control
|
|
66
|
+
*/
|
|
64
67
|
["aria-label"]: prop_types.default.string,
|
|
68
|
+
/**
|
|
69
|
+
* Deprecated, please use `aria-label` instead.
|
|
70
|
+
* Specify the aria label for the underlying input control
|
|
71
|
+
*/
|
|
65
72
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
73
|
+
/**
|
|
74
|
+
* Specify whether this row is selected, or not
|
|
75
|
+
*/
|
|
66
76
|
checked: prop_types.default.bool,
|
|
77
|
+
/**
|
|
78
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
79
|
+
*/
|
|
67
80
|
className: prop_types.default.string,
|
|
81
|
+
/**
|
|
82
|
+
* Specify whether the control is disabled
|
|
83
|
+
*/
|
|
68
84
|
disabled: prop_types.default.bool,
|
|
85
|
+
/**
|
|
86
|
+
* Provide an `id` for the underlying input control
|
|
87
|
+
*/
|
|
69
88
|
id: prop_types.default.string.isRequired,
|
|
89
|
+
/**
|
|
90
|
+
* Provide a `name` for the underlying input control
|
|
91
|
+
*/
|
|
70
92
|
name: prop_types.default.string.isRequired,
|
|
93
|
+
/**
|
|
94
|
+
* Provide an optional hook that is called each time the input is updated
|
|
95
|
+
*/
|
|
71
96
|
onChange: prop_types.default.func,
|
|
97
|
+
/**
|
|
98
|
+
* Provide a handler to listen to when a user initiates a selection request
|
|
99
|
+
*/
|
|
72
100
|
onSelect: prop_types.default.func.isRequired,
|
|
101
|
+
/**
|
|
102
|
+
* Specify whether the control should be a radio button or inline checkbox
|
|
103
|
+
*/
|
|
73
104
|
radio: prop_types.default.bool
|
|
74
105
|
};
|
|
75
106
|
//#endregion
|
|
@@ -38,7 +38,13 @@ const TableSlugRow = ({ className, slug }) => {
|
|
|
38
38
|
};
|
|
39
39
|
TableSlugRow.displayName = "TableSlugRow";
|
|
40
40
|
TableSlugRow.propTypes = {
|
|
41
|
+
/**
|
|
42
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
43
|
+
*/
|
|
41
44
|
className: prop_types.default.string,
|
|
45
|
+
/**
|
|
46
|
+
* Provide a `Slug` component to be rendered inside the `TableSlugRow` component
|
|
47
|
+
*/
|
|
42
48
|
slug: prop_types.default.node
|
|
43
49
|
};
|
|
44
50
|
//#endregion
|
|
@@ -43,9 +43,24 @@ const TableToolbar = ({ ["aria-label"]: ariaLabel = "data table toolbar", ariaLa
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
TableToolbar.propTypes = {
|
|
46
|
+
/**
|
|
47
|
+
* 'aria-label' of the TableToolbar component.
|
|
48
|
+
* Specify a label to be read by screen readers on the container node
|
|
49
|
+
*/
|
|
46
50
|
["aria-label"]: prop_types.default.string,
|
|
51
|
+
/**
|
|
52
|
+
* Deprecated, please use `aria-label` instead.
|
|
53
|
+
* Specify a label to be read by screen readers on the container node.
|
|
54
|
+
* 'aria-label' of the TableToolbar component.
|
|
55
|
+
*/
|
|
47
56
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
57
|
+
/**
|
|
58
|
+
* Pass in the children that will be rendered inside the TableToolbar
|
|
59
|
+
*/
|
|
48
60
|
children: prop_types.default.node,
|
|
61
|
+
/**
|
|
62
|
+
* `lg` Change the row height of table
|
|
63
|
+
*/
|
|
49
64
|
size: prop_types.default.oneOf([
|
|
50
65
|
"xs",
|
|
51
66
|
"sm",
|