@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
|
@@ -75,15 +75,44 @@ const TableExpandRow = forwardRef(({ ["aria-controls"]: ariaControls, ["aria-lab
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
TableExpandRow.propTypes = {
|
|
78
|
+
/**
|
|
79
|
+
* Space separated list of one or more ID values referencing the TableExpandedRow(s) being controlled by the TableExpandRow
|
|
80
|
+
* TODO: make this required in v12
|
|
81
|
+
*/
|
|
78
82
|
"aria-controls": PropTypes.string,
|
|
83
|
+
/**
|
|
84
|
+
* Specify the string read by a voice reader when the expand trigger is
|
|
85
|
+
* focused
|
|
86
|
+
*/
|
|
79
87
|
"aria-label": PropTypes.string,
|
|
88
|
+
/**
|
|
89
|
+
* Deprecated, please use `aria-label` instead.
|
|
90
|
+
* Specify the string read by a voice reader when the expand trigger is
|
|
91
|
+
* focused
|
|
92
|
+
*/
|
|
80
93
|
ariaLabel: PropTypes.string,
|
|
81
94
|
children: PropTypes.node,
|
|
82
95
|
className: PropTypes.string,
|
|
96
|
+
/**
|
|
97
|
+
* 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
|
|
98
|
+
*/
|
|
83
99
|
expandHeader: PropTypes.string,
|
|
100
|
+
/**
|
|
101
|
+
* The description of the chevron right icon, to be put in its SVG `<title>` element.
|
|
102
|
+
*/
|
|
84
103
|
expandIconDescription: PropTypes.string,
|
|
104
|
+
/**
|
|
105
|
+
* Specify whether this row is expanded or not. This helps coordinate data
|
|
106
|
+
* attributes so that `TableExpandRow` and `TableExpandedRow` work together
|
|
107
|
+
*/
|
|
85
108
|
isExpanded: PropTypes.bool,
|
|
109
|
+
/**
|
|
110
|
+
* Specify if the row is selected
|
|
111
|
+
*/
|
|
86
112
|
isSelected: PropTypes.bool,
|
|
113
|
+
/**
|
|
114
|
+
* Hook for when a listener initiates a request to expand the given row
|
|
115
|
+
*/
|
|
87
116
|
onExpand: PropTypes.func.isRequired
|
|
88
117
|
};
|
|
89
118
|
TableExpandRow.displayName = "TableExpandRow";
|
|
@@ -46,8 +46,17 @@ const TableExpandedRow = ({ className: customClassName, children, colSpan, ...re
|
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
TableExpandedRow.propTypes = {
|
|
49
|
+
/**
|
|
50
|
+
* Pass in the contents for your TableExpandedRow
|
|
51
|
+
*/
|
|
49
52
|
children: PropTypes.node,
|
|
53
|
+
/**
|
|
54
|
+
* Specify an optional className to be applied to the container node
|
|
55
|
+
*/
|
|
50
56
|
className: PropTypes.string,
|
|
57
|
+
/**
|
|
58
|
+
* The width of the expanded row's internal cell
|
|
59
|
+
*/
|
|
51
60
|
colSpan: PropTypes.number.isRequired
|
|
52
61
|
};
|
|
53
62
|
//#endregion
|
|
@@ -135,15 +135,50 @@ const TableHeader = forwardRef((props, ref) => {
|
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
137
|
TableHeader.propTypes = {
|
|
138
|
+
/**
|
|
139
|
+
* Pass in children that will be embedded in the table header label
|
|
140
|
+
*/
|
|
138
141
|
children: PropTypes.node,
|
|
142
|
+
/**
|
|
143
|
+
* Specify an optional className to be applied to the container node
|
|
144
|
+
*/
|
|
139
145
|
className: PropTypes.string,
|
|
146
|
+
/**
|
|
147
|
+
* Specify `colSpan` as a non-negative integer value to indicate how
|
|
148
|
+
* many columns the TableHeader cell extends in a table
|
|
149
|
+
*/
|
|
140
150
|
colSpan: PropTypes.number,
|
|
151
|
+
/**
|
|
152
|
+
* Supply an id to the th element.
|
|
153
|
+
*/
|
|
141
154
|
id: PropTypes.string,
|
|
155
|
+
/**
|
|
156
|
+
* Specify whether this header is the header by which a table is being sorted
|
|
157
|
+
* by
|
|
158
|
+
*/
|
|
142
159
|
isSortHeader: PropTypes.bool,
|
|
160
|
+
/**
|
|
161
|
+
* Specify whether this header is one through which a user can sort the table
|
|
162
|
+
*/
|
|
143
163
|
isSortable: PropTypes.bool,
|
|
164
|
+
/**
|
|
165
|
+
* Hook that is invoked when the header is clicked
|
|
166
|
+
*/
|
|
144
167
|
onClick: PropTypes.func,
|
|
168
|
+
/**
|
|
169
|
+
* Specify the scope of this table header. You can find more info about this
|
|
170
|
+
* attribute at the following URL:
|
|
171
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th#attr-scope
|
|
172
|
+
*/
|
|
145
173
|
scope: PropTypes.string,
|
|
174
|
+
/**
|
|
175
|
+
* Specify which direction we are currently sorting by, should be one of DESC,
|
|
176
|
+
* NONE, or ASC.
|
|
177
|
+
*/
|
|
146
178
|
sortDirection: PropTypes.oneOf(Object.values(sortStates)),
|
|
179
|
+
/**
|
|
180
|
+
* Translates component strings using your i18n tool.
|
|
181
|
+
*/
|
|
147
182
|
translateWithId: PropTypes.func
|
|
148
183
|
};
|
|
149
184
|
TableHeader.displayName = "TableHeader";
|
|
@@ -39,12 +39,33 @@ const TableRow = forwardRef((props, ref) => {
|
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
TableRow.propTypes = {
|
|
42
|
+
/**
|
|
43
|
+
* Specify an optional className to be applied to the container node
|
|
44
|
+
*/
|
|
42
45
|
className: PropTypes.string,
|
|
46
|
+
/**
|
|
47
|
+
* Specify if the row is selected
|
|
48
|
+
*/
|
|
43
49
|
isSelected: PropTypes.bool,
|
|
50
|
+
/**
|
|
51
|
+
* Non-standard alias for `aria-label`.
|
|
52
|
+
*/
|
|
44
53
|
ariaLabel: PropTypes.string,
|
|
54
|
+
/**
|
|
55
|
+
* Accessible label for the row element.
|
|
56
|
+
*/
|
|
45
57
|
"aria-label": PropTypes.string,
|
|
58
|
+
/**
|
|
59
|
+
* Associates this row with the id of the corresponding expanded row content.
|
|
60
|
+
*/
|
|
46
61
|
"aria-controls": PropTypes.string,
|
|
62
|
+
/**
|
|
63
|
+
* Handler called when the row’s expand toggle is clicked.
|
|
64
|
+
*/
|
|
47
65
|
onExpand: PropTypes.func,
|
|
66
|
+
/**
|
|
67
|
+
* Flag indicating whether the row is currently expanded.
|
|
68
|
+
*/
|
|
48
69
|
isExpanded: PropTypes.bool
|
|
49
70
|
};
|
|
50
71
|
//#endregion
|
|
@@ -36,14 +36,42 @@ const TableSelectAll = ({ ariaLabel: deprecatedAriaLabel = "Select all rows in t
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
TableSelectAll.propTypes = {
|
|
39
|
+
/**
|
|
40
|
+
* Specify the aria label for the underlying input control
|
|
41
|
+
*/
|
|
39
42
|
["aria-label"]: PropTypes.string,
|
|
43
|
+
/**
|
|
44
|
+
* Deprecated, please use `aria-label` instead.
|
|
45
|
+
* Specify the aria label for the underlying input control
|
|
46
|
+
*/
|
|
40
47
|
ariaLabel: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
48
|
+
/**
|
|
49
|
+
* Specify whether all items are selected, or not
|
|
50
|
+
*/
|
|
41
51
|
checked: PropTypes.bool,
|
|
52
|
+
/**
|
|
53
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
54
|
+
*/
|
|
42
55
|
className: PropTypes.string,
|
|
56
|
+
/**
|
|
57
|
+
* Specify whether the checkbox input should be disabled
|
|
58
|
+
*/
|
|
43
59
|
disabled: PropTypes.bool,
|
|
60
|
+
/**
|
|
61
|
+
* Provide an `id` for the underlying input control
|
|
62
|
+
*/
|
|
44
63
|
id: PropTypes.string.isRequired,
|
|
64
|
+
/**
|
|
65
|
+
* Specify whether the selection only has a subset of all items
|
|
66
|
+
*/
|
|
45
67
|
indeterminate: PropTypes.bool,
|
|
68
|
+
/**
|
|
69
|
+
* Provide a `name` for the underlying input control
|
|
70
|
+
*/
|
|
46
71
|
name: PropTypes.string.isRequired,
|
|
72
|
+
/**
|
|
73
|
+
* Provide a handler to listen to when a user initiates a selection request
|
|
74
|
+
*/
|
|
47
75
|
onSelect: PropTypes.func.isRequired
|
|
48
76
|
};
|
|
49
77
|
//#endregion
|
|
@@ -57,15 +57,46 @@ const TableSelectRow = ({ ariaLabel: deprecatedAriaLabel, ["aria-label"]: ariaLa
|
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
TableSelectRow.propTypes = {
|
|
60
|
+
/**
|
|
61
|
+
* Specify the aria label for the underlying input control
|
|
62
|
+
*/
|
|
60
63
|
["aria-label"]: PropTypes.string,
|
|
64
|
+
/**
|
|
65
|
+
* Deprecated, please use `aria-label` instead.
|
|
66
|
+
* Specify the aria label for the underlying input control
|
|
67
|
+
*/
|
|
61
68
|
ariaLabel: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
69
|
+
/**
|
|
70
|
+
* Specify whether this row is selected, or not
|
|
71
|
+
*/
|
|
62
72
|
checked: PropTypes.bool,
|
|
73
|
+
/**
|
|
74
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
75
|
+
*/
|
|
63
76
|
className: PropTypes.string,
|
|
77
|
+
/**
|
|
78
|
+
* Specify whether the control is disabled
|
|
79
|
+
*/
|
|
64
80
|
disabled: PropTypes.bool,
|
|
81
|
+
/**
|
|
82
|
+
* Provide an `id` for the underlying input control
|
|
83
|
+
*/
|
|
65
84
|
id: PropTypes.string.isRequired,
|
|
85
|
+
/**
|
|
86
|
+
* Provide a `name` for the underlying input control
|
|
87
|
+
*/
|
|
66
88
|
name: PropTypes.string.isRequired,
|
|
89
|
+
/**
|
|
90
|
+
* Provide an optional hook that is called each time the input is updated
|
|
91
|
+
*/
|
|
67
92
|
onChange: PropTypes.func,
|
|
93
|
+
/**
|
|
94
|
+
* Provide a handler to listen to when a user initiates a selection request
|
|
95
|
+
*/
|
|
68
96
|
onSelect: PropTypes.func.isRequired,
|
|
97
|
+
/**
|
|
98
|
+
* Specify whether the control should be a radio button or inline checkbox
|
|
99
|
+
*/
|
|
69
100
|
radio: PropTypes.bool
|
|
70
101
|
};
|
|
71
102
|
//#endregion
|
|
@@ -34,7 +34,13 @@ const TableSlugRow = ({ className, slug }) => {
|
|
|
34
34
|
};
|
|
35
35
|
TableSlugRow.displayName = "TableSlugRow";
|
|
36
36
|
TableSlugRow.propTypes = {
|
|
37
|
+
/**
|
|
38
|
+
* The CSS class names of the cell that wraps the underlying input control
|
|
39
|
+
*/
|
|
37
40
|
className: PropTypes.string,
|
|
41
|
+
/**
|
|
42
|
+
* Provide a `Slug` component to be rendered inside the `TableSlugRow` component
|
|
43
|
+
*/
|
|
38
44
|
slug: PropTypes.node
|
|
39
45
|
};
|
|
40
46
|
//#endregion
|
|
@@ -39,9 +39,24 @@ const TableToolbar = ({ ["aria-label"]: ariaLabel = "data table toolbar", ariaLa
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
TableToolbar.propTypes = {
|
|
42
|
+
/**
|
|
43
|
+
* 'aria-label' of the TableToolbar component.
|
|
44
|
+
* Specify a label to be read by screen readers on the container node
|
|
45
|
+
*/
|
|
42
46
|
["aria-label"]: PropTypes.string,
|
|
47
|
+
/**
|
|
48
|
+
* Deprecated, please use `aria-label` instead.
|
|
49
|
+
* Specify a label to be read by screen readers on the container node.
|
|
50
|
+
* 'aria-label' of the TableToolbar component.
|
|
51
|
+
*/
|
|
43
52
|
ariaLabel: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
53
|
+
/**
|
|
54
|
+
* Pass in the children that will be rendered inside the TableToolbar
|
|
55
|
+
*/
|
|
44
56
|
children: PropTypes.node,
|
|
57
|
+
/**
|
|
58
|
+
* `lg` Change the row height of table
|
|
59
|
+
*/
|
|
45
60
|
size: PropTypes.oneOf([
|
|
46
61
|
"xs",
|
|
47
62
|
"sm",
|
|
@@ -38,10 +38,25 @@ const TableToolbarMenu = ({ className, renderIcon = Settings, iconDescription =
|
|
|
38
38
|
};
|
|
39
39
|
TableToolbarMenu.propTypes = {
|
|
40
40
|
children: PropTypes.node.isRequired,
|
|
41
|
+
/**
|
|
42
|
+
* Provide an optional class name for the toolbar menu
|
|
43
|
+
*/
|
|
41
44
|
className: PropTypes.string,
|
|
45
|
+
/**
|
|
46
|
+
* The description of the menu icon.
|
|
47
|
+
*/
|
|
42
48
|
iconDescription: PropTypes.string,
|
|
49
|
+
/**
|
|
50
|
+
* Provide an optional class name for the toolbar menu
|
|
51
|
+
*/
|
|
43
52
|
menuOptionsClass: PropTypes.string,
|
|
53
|
+
/**
|
|
54
|
+
* A component used to render an icon.
|
|
55
|
+
*/
|
|
44
56
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
57
|
+
/**
|
|
58
|
+
* Specify the size of the ToolbarMenu.
|
|
59
|
+
*/
|
|
45
60
|
size: PropTypes.oneOf([
|
|
46
61
|
"xs",
|
|
47
62
|
"sm",
|
|
@@ -87,28 +87,86 @@ const TableToolbarSearch = ({ className, searchContainerClass, onChange: onChang
|
|
|
87
87
|
};
|
|
88
88
|
TableToolbarSearch.propTypes = {
|
|
89
89
|
children: PropTypes.node,
|
|
90
|
+
/**
|
|
91
|
+
* Provide an optional class name for the search container
|
|
92
|
+
*/
|
|
90
93
|
className: PropTypes.string,
|
|
94
|
+
/**
|
|
95
|
+
* Specifies if the search should initially render in an expanded state
|
|
96
|
+
*/
|
|
91
97
|
defaultExpanded: PropTypes.bool,
|
|
98
|
+
/**
|
|
99
|
+
* Provide an optional default value for the Search component
|
|
100
|
+
*/
|
|
92
101
|
defaultValue: PropTypes.string,
|
|
102
|
+
/**
|
|
103
|
+
* Specifies if the search should be disabled
|
|
104
|
+
*/
|
|
93
105
|
disabled: PropTypes.bool,
|
|
106
|
+
/**
|
|
107
|
+
* Specifies if the search should expand
|
|
108
|
+
*/
|
|
94
109
|
expanded: PropTypes.bool,
|
|
110
|
+
/**
|
|
111
|
+
* Provide an optional id for the search container
|
|
112
|
+
*/
|
|
95
113
|
id: PropTypes.string,
|
|
114
|
+
/**
|
|
115
|
+
* Provide an optional label text for the Search component icon
|
|
116
|
+
*/
|
|
96
117
|
labelText: PropTypes.string,
|
|
118
|
+
/**
|
|
119
|
+
* Provide an optional function to be called when the search input loses focus, this will be
|
|
120
|
+
* passed the event as the first parameter and a function to handle the expanding of the search
|
|
121
|
+
* input as the second
|
|
122
|
+
*/
|
|
97
123
|
onBlur: PropTypes.func,
|
|
124
|
+
/**
|
|
125
|
+
* Provide an optional hook that is called each time the input is updated
|
|
126
|
+
*/
|
|
98
127
|
onChange: PropTypes.func,
|
|
128
|
+
/**
|
|
129
|
+
* Optional callback called when the search value is cleared.
|
|
130
|
+
*/
|
|
99
131
|
onClear: PropTypes.func,
|
|
132
|
+
/**
|
|
133
|
+
* Provide an optional hook that is called each time the input is expanded
|
|
134
|
+
*/
|
|
100
135
|
onExpand: PropTypes.func,
|
|
136
|
+
/**
|
|
137
|
+
* Provide an optional function to be called when the search input gains focus, this will be
|
|
138
|
+
* passed the event as the first parameter and a function to handle the expanding of the search
|
|
139
|
+
* input as the second.
|
|
140
|
+
*/
|
|
101
141
|
onFocus: PropTypes.func,
|
|
142
|
+
/**
|
|
143
|
+
* Whether the search should be allowed to expand
|
|
144
|
+
*/
|
|
102
145
|
persistent: PropTypes.bool,
|
|
146
|
+
/**
|
|
147
|
+
* Provide an optional placeholder text for the Search component
|
|
148
|
+
*/
|
|
103
149
|
placeholder: PropTypes.string,
|
|
150
|
+
/**
|
|
151
|
+
* Provide an optional className for the overall container of the Search
|
|
152
|
+
*/
|
|
104
153
|
searchContainerClass: PropTypes.string,
|
|
154
|
+
/**
|
|
155
|
+
* Specify the size of the Search
|
|
156
|
+
*/
|
|
105
157
|
size: PropTypes.oneOf([
|
|
106
158
|
"xs",
|
|
107
159
|
"sm",
|
|
108
160
|
"md",
|
|
109
161
|
"lg"
|
|
110
162
|
]),
|
|
163
|
+
/**
|
|
164
|
+
* Optional prop to specify the tabIndex of the <Search> (in expanded state) or the container (in collapsed state)
|
|
165
|
+
*/
|
|
111
166
|
tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
167
|
+
/**
|
|
168
|
+
* Translates component strings using your i18n tool.
|
|
169
|
+
*/
|
|
112
170
|
translateWithId: PropTypes.func
|
|
113
171
|
};
|
|
114
172
|
//#endregion
|
|
@@ -56,12 +56,33 @@ const DataTableSkeleton = ({ headers, rowCount = 5, columnCount = 5, zebra = fal
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
DataTableSkeleton.propTypes = {
|
|
59
|
+
/**
|
|
60
|
+
* Specify an optional className to add.
|
|
61
|
+
*/
|
|
59
62
|
className: PropTypes.string,
|
|
63
|
+
/**
|
|
64
|
+
* Specify the number of columns that you want to render in the skeleton state
|
|
65
|
+
*/
|
|
60
66
|
columnCount: PropTypes.number,
|
|
67
|
+
/**
|
|
68
|
+
* Optionally specify the displayed headers
|
|
69
|
+
*/
|
|
61
70
|
headers: PropTypes.arrayOf(PropTypes.shape({ header: PropTypes.node.isRequired }).isRequired),
|
|
71
|
+
/**
|
|
72
|
+
* Specify the number of rows that you want to render in the skeleton state
|
|
73
|
+
*/
|
|
62
74
|
rowCount: PropTypes.number,
|
|
75
|
+
/**
|
|
76
|
+
* Specify if the table header should be rendered as part of the skeleton.
|
|
77
|
+
*/
|
|
63
78
|
showHeader: PropTypes.bool,
|
|
79
|
+
/**
|
|
80
|
+
* Specify if the table toolbar should be rendered as part of the skeleton.
|
|
81
|
+
*/
|
|
64
82
|
showToolbar: PropTypes.bool,
|
|
83
|
+
/**
|
|
84
|
+
* Changes the row height of table.
|
|
85
|
+
*/
|
|
65
86
|
size: PropTypes.oneOf([
|
|
66
87
|
"xs",
|
|
67
88
|
"sm",
|
|
@@ -69,6 +90,9 @@ DataTableSkeleton.propTypes = {
|
|
|
69
90
|
"lg",
|
|
70
91
|
"xl"
|
|
71
92
|
]),
|
|
93
|
+
/**
|
|
94
|
+
* Optionally specify whether you want the DataTable to be zebra striped
|
|
95
|
+
*/
|
|
72
96
|
zebra: PropTypes.bool
|
|
73
97
|
};
|
|
74
98
|
//#endregion
|
|
@@ -44,9 +44,21 @@ const DatePickerSkeleton = ({ range, id, hideLabel, className, ...rest }) => {
|
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
DatePickerSkeleton.propTypes = {
|
|
47
|
+
/**
|
|
48
|
+
* Specify an optional className to add.
|
|
49
|
+
*/
|
|
47
50
|
className: PropTypes.string,
|
|
51
|
+
/**
|
|
52
|
+
* Specify whether to hide the label.
|
|
53
|
+
*/
|
|
48
54
|
hideLabel: PropTypes.bool,
|
|
55
|
+
/**
|
|
56
|
+
* Specify the id to add.
|
|
57
|
+
*/
|
|
49
58
|
id: PropTypes.string,
|
|
59
|
+
/**
|
|
60
|
+
* Specify whether to render the range skeleton variant.
|
|
61
|
+
*/
|
|
50
62
|
range: PropTypes.bool
|
|
51
63
|
};
|
|
52
64
|
//#endregion
|
|
@@ -446,31 +446,110 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
DatePicker.propTypes = {
|
|
449
|
+
/**
|
|
450
|
+
* Flatpickr prop passthrough enables direct date input, and when set to
|
|
451
|
+
* false, we must clear dates manually by resetting the value prop to an empty
|
|
452
|
+
* value (such as `""`, `null`, or `undefined`) or an array of all empty
|
|
453
|
+
* values, making it a controlled input.
|
|
454
|
+
*/
|
|
449
455
|
allowInput: PropTypes.bool,
|
|
456
|
+
/**
|
|
457
|
+
* The DOM element the Flatpicker should be inserted into. `<body>` by default.
|
|
458
|
+
*/
|
|
450
459
|
appendTo: PropTypes.object,
|
|
460
|
+
/**
|
|
461
|
+
* The child nodes.
|
|
462
|
+
*/
|
|
451
463
|
children: PropTypes.node,
|
|
464
|
+
/**
|
|
465
|
+
* The CSS class names.
|
|
466
|
+
*/
|
|
452
467
|
className: PropTypes.string,
|
|
468
|
+
/**
|
|
469
|
+
* flatpickr prop passthrough. Controls whether the calendar dropdown closes upon selection.
|
|
470
|
+
*/
|
|
453
471
|
closeOnSelect: PropTypes.bool,
|
|
472
|
+
/**
|
|
473
|
+
* The date format.
|
|
474
|
+
*/
|
|
454
475
|
dateFormat: PropTypes.string,
|
|
476
|
+
/**
|
|
477
|
+
* The type of the date picker:
|
|
478
|
+
*
|
|
479
|
+
* * `simple` - Without calendar dropdown.
|
|
480
|
+
* * `single` - With calendar dropdown and single date.
|
|
481
|
+
* * `range` - With calendar dropdown and a date range.
|
|
482
|
+
*/
|
|
455
483
|
datePickerType: PropTypes.oneOf([
|
|
456
484
|
"simple",
|
|
457
485
|
"single",
|
|
458
486
|
"range"
|
|
459
487
|
]),
|
|
488
|
+
/**
|
|
489
|
+
* The flatpickr `disable` option that allows a user to disable certain dates.
|
|
490
|
+
*/
|
|
460
491
|
disable: PropTypes.array,
|
|
492
|
+
/**
|
|
493
|
+
* The flatpickr `enable` option that allows a user to enable certain dates.
|
|
494
|
+
*/
|
|
461
495
|
enable: PropTypes.array,
|
|
496
|
+
/**
|
|
497
|
+
* The flatpickr `inline` option.
|
|
498
|
+
*/
|
|
462
499
|
inline: PropTypes.bool,
|
|
500
|
+
/**
|
|
501
|
+
* Specify whether or not the control is invalid (Fluid only)
|
|
502
|
+
*/
|
|
463
503
|
invalid: PropTypes.bool,
|
|
504
|
+
/**
|
|
505
|
+
* `true` to use the light version.
|
|
506
|
+
*/
|
|
464
507
|
light: deprecate(PropTypes.bool, "The `light` prop for `DatePicker` has been deprecated in favor of the new `Layer` component. It will be removed in the next major release."),
|
|
508
|
+
/**
|
|
509
|
+
* The language locale used to format the days of the week, months, and numbers. The full list of supported locales can be found here https://github.com/flatpickr/flatpickr/tree/master/src/l10n
|
|
510
|
+
*/
|
|
465
511
|
locale: PropTypes.oneOfType([PropTypes.object, PropTypes.oneOf(SUPPORTED_LOCALES)]),
|
|
512
|
+
/**
|
|
513
|
+
* The maximum date that a user can pick to.
|
|
514
|
+
*/
|
|
466
515
|
maxDate: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
516
|
+
/**
|
|
517
|
+
* The minimum date that a user can start picking from.
|
|
518
|
+
*/
|
|
467
519
|
minDate: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
520
|
+
/**
|
|
521
|
+
* The `change` event handler.
|
|
522
|
+
* `(dates: Date[], dStr: string, fp: Instance, data?: any):void;`
|
|
523
|
+
*/
|
|
468
524
|
onChange: PropTypes.func,
|
|
525
|
+
/**
|
|
526
|
+
* The `close` event handler.
|
|
527
|
+
* `(dates: Date[], dStr: string, fp: Instance, data?: any):void;`
|
|
528
|
+
*/
|
|
469
529
|
onClose: PropTypes.func,
|
|
530
|
+
/**
|
|
531
|
+
* The `open` event handler.
|
|
532
|
+
* `(dates: Date[], dStr: string, fp: Instance, data?: any):void;`
|
|
533
|
+
*/
|
|
470
534
|
onOpen: PropTypes.func,
|
|
535
|
+
/**
|
|
536
|
+
* flatpickr prop passthrough. Controls how dates are parsed.
|
|
537
|
+
*/
|
|
471
538
|
parseDate: PropTypes.func,
|
|
539
|
+
/**
|
|
540
|
+
* whether the DatePicker is to be readOnly
|
|
541
|
+
* if boolean applies to all inputs
|
|
542
|
+
* if array applies to each input in order
|
|
543
|
+
*/
|
|
472
544
|
readOnly: PropTypes.oneOfType([PropTypes.bool, PropTypes.array]),
|
|
545
|
+
/**
|
|
546
|
+
* `true` to use the short version.
|
|
547
|
+
*/
|
|
473
548
|
short: PropTypes.bool,
|
|
549
|
+
/**
|
|
550
|
+
* The value of the date value provided to flatpickr, could
|
|
551
|
+
* be a date, a date number, a date string, an array of dates.
|
|
552
|
+
*/
|
|
474
553
|
value: PropTypes.oneOfType([
|
|
475
554
|
PropTypes.string,
|
|
476
555
|
PropTypes.arrayOf(PropTypes.oneOfType([
|
|
@@ -481,8 +560,17 @@ DatePicker.propTypes = {
|
|
|
481
560
|
PropTypes.object,
|
|
482
561
|
PropTypes.number
|
|
483
562
|
]),
|
|
563
|
+
/**
|
|
564
|
+
* Specify whether the control is currently in warning state (Fluid only)
|
|
565
|
+
*/
|
|
484
566
|
warn: PropTypes.bool,
|
|
567
|
+
/**
|
|
568
|
+
* Accessible aria-label for the "next month" arrow icon.
|
|
569
|
+
*/
|
|
485
570
|
nextMonthAriaLabel: PropTypes.string,
|
|
571
|
+
/**
|
|
572
|
+
* Accessible aria-label for the "previous month" arrow icon.
|
|
573
|
+
*/
|
|
486
574
|
prevMonthAriaLabel: PropTypes.string
|
|
487
575
|
};
|
|
488
576
|
//#endregion
|