@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
|
@@ -42,10 +42,25 @@ const TableToolbarMenu = ({ className, renderIcon = _carbon_icons_react.Settings
|
|
|
42
42
|
};
|
|
43
43
|
TableToolbarMenu.propTypes = {
|
|
44
44
|
children: prop_types.default.node.isRequired,
|
|
45
|
+
/**
|
|
46
|
+
* Provide an optional class name for the toolbar menu
|
|
47
|
+
*/
|
|
45
48
|
className: prop_types.default.string,
|
|
49
|
+
/**
|
|
50
|
+
* The description of the menu icon.
|
|
51
|
+
*/
|
|
46
52
|
iconDescription: prop_types.default.string,
|
|
53
|
+
/**
|
|
54
|
+
* Provide an optional class name for the toolbar menu
|
|
55
|
+
*/
|
|
47
56
|
menuOptionsClass: prop_types.default.string,
|
|
57
|
+
/**
|
|
58
|
+
* A component used to render an icon.
|
|
59
|
+
*/
|
|
48
60
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
61
|
+
/**
|
|
62
|
+
* Specify the size of the ToolbarMenu.
|
|
63
|
+
*/
|
|
49
64
|
size: prop_types.default.oneOf([
|
|
50
65
|
"xs",
|
|
51
66
|
"sm",
|
|
@@ -91,28 +91,86 @@ const TableToolbarSearch = ({ className, searchContainerClass, onChange: onChang
|
|
|
91
91
|
};
|
|
92
92
|
TableToolbarSearch.propTypes = {
|
|
93
93
|
children: prop_types.default.node,
|
|
94
|
+
/**
|
|
95
|
+
* Provide an optional class name for the search container
|
|
96
|
+
*/
|
|
94
97
|
className: prop_types.default.string,
|
|
98
|
+
/**
|
|
99
|
+
* Specifies if the search should initially render in an expanded state
|
|
100
|
+
*/
|
|
95
101
|
defaultExpanded: prop_types.default.bool,
|
|
102
|
+
/**
|
|
103
|
+
* Provide an optional default value for the Search component
|
|
104
|
+
*/
|
|
96
105
|
defaultValue: prop_types.default.string,
|
|
106
|
+
/**
|
|
107
|
+
* Specifies if the search should be disabled
|
|
108
|
+
*/
|
|
97
109
|
disabled: prop_types.default.bool,
|
|
110
|
+
/**
|
|
111
|
+
* Specifies if the search should expand
|
|
112
|
+
*/
|
|
98
113
|
expanded: prop_types.default.bool,
|
|
114
|
+
/**
|
|
115
|
+
* Provide an optional id for the search container
|
|
116
|
+
*/
|
|
99
117
|
id: prop_types.default.string,
|
|
118
|
+
/**
|
|
119
|
+
* Provide an optional label text for the Search component icon
|
|
120
|
+
*/
|
|
100
121
|
labelText: prop_types.default.string,
|
|
122
|
+
/**
|
|
123
|
+
* Provide an optional function to be called when the search input loses focus, this will be
|
|
124
|
+
* passed the event as the first parameter and a function to handle the expanding of the search
|
|
125
|
+
* input as the second
|
|
126
|
+
*/
|
|
101
127
|
onBlur: prop_types.default.func,
|
|
128
|
+
/**
|
|
129
|
+
* Provide an optional hook that is called each time the input is updated
|
|
130
|
+
*/
|
|
102
131
|
onChange: prop_types.default.func,
|
|
132
|
+
/**
|
|
133
|
+
* Optional callback called when the search value is cleared.
|
|
134
|
+
*/
|
|
103
135
|
onClear: prop_types.default.func,
|
|
136
|
+
/**
|
|
137
|
+
* Provide an optional hook that is called each time the input is expanded
|
|
138
|
+
*/
|
|
104
139
|
onExpand: prop_types.default.func,
|
|
140
|
+
/**
|
|
141
|
+
* Provide an optional function to be called when the search input gains focus, this will be
|
|
142
|
+
* passed the event as the first parameter and a function to handle the expanding of the search
|
|
143
|
+
* input as the second.
|
|
144
|
+
*/
|
|
105
145
|
onFocus: prop_types.default.func,
|
|
146
|
+
/**
|
|
147
|
+
* Whether the search should be allowed to expand
|
|
148
|
+
*/
|
|
106
149
|
persistent: prop_types.default.bool,
|
|
150
|
+
/**
|
|
151
|
+
* Provide an optional placeholder text for the Search component
|
|
152
|
+
*/
|
|
107
153
|
placeholder: prop_types.default.string,
|
|
154
|
+
/**
|
|
155
|
+
* Provide an optional className for the overall container of the Search
|
|
156
|
+
*/
|
|
108
157
|
searchContainerClass: prop_types.default.string,
|
|
158
|
+
/**
|
|
159
|
+
* Specify the size of the Search
|
|
160
|
+
*/
|
|
109
161
|
size: prop_types.default.oneOf([
|
|
110
162
|
"xs",
|
|
111
163
|
"sm",
|
|
112
164
|
"md",
|
|
113
165
|
"lg"
|
|
114
166
|
]),
|
|
167
|
+
/**
|
|
168
|
+
* Optional prop to specify the tabIndex of the <Search> (in expanded state) or the container (in collapsed state)
|
|
169
|
+
*/
|
|
115
170
|
tabIndex: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),
|
|
171
|
+
/**
|
|
172
|
+
* Translates component strings using your i18n tool.
|
|
173
|
+
*/
|
|
116
174
|
translateWithId: prop_types.default.func
|
|
117
175
|
};
|
|
118
176
|
//#endregion
|
|
@@ -60,12 +60,33 @@ const DataTableSkeleton = ({ headers, rowCount = 5, columnCount = 5, zebra = fal
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
DataTableSkeleton.propTypes = {
|
|
63
|
+
/**
|
|
64
|
+
* Specify an optional className to add.
|
|
65
|
+
*/
|
|
63
66
|
className: prop_types.default.string,
|
|
67
|
+
/**
|
|
68
|
+
* Specify the number of columns that you want to render in the skeleton state
|
|
69
|
+
*/
|
|
64
70
|
columnCount: prop_types.default.number,
|
|
71
|
+
/**
|
|
72
|
+
* Optionally specify the displayed headers
|
|
73
|
+
*/
|
|
65
74
|
headers: prop_types.default.arrayOf(prop_types.default.shape({ header: prop_types.default.node.isRequired }).isRequired),
|
|
75
|
+
/**
|
|
76
|
+
* Specify the number of rows that you want to render in the skeleton state
|
|
77
|
+
*/
|
|
66
78
|
rowCount: prop_types.default.number,
|
|
79
|
+
/**
|
|
80
|
+
* Specify if the table header should be rendered as part of the skeleton.
|
|
81
|
+
*/
|
|
67
82
|
showHeader: prop_types.default.bool,
|
|
83
|
+
/**
|
|
84
|
+
* Specify if the table toolbar should be rendered as part of the skeleton.
|
|
85
|
+
*/
|
|
68
86
|
showToolbar: prop_types.default.bool,
|
|
87
|
+
/**
|
|
88
|
+
* Changes the row height of table.
|
|
89
|
+
*/
|
|
69
90
|
size: prop_types.default.oneOf([
|
|
70
91
|
"xs",
|
|
71
92
|
"sm",
|
|
@@ -73,6 +94,9 @@ DataTableSkeleton.propTypes = {
|
|
|
73
94
|
"lg",
|
|
74
95
|
"xl"
|
|
75
96
|
]),
|
|
97
|
+
/**
|
|
98
|
+
* Optionally specify whether you want the DataTable to be zebra striped
|
|
99
|
+
*/
|
|
76
100
|
zebra: prop_types.default.bool
|
|
77
101
|
};
|
|
78
102
|
//#endregion
|
|
@@ -48,9 +48,21 @@ const DatePickerSkeleton = ({ range, id, hideLabel, className, ...rest }) => {
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
DatePickerSkeleton.propTypes = {
|
|
51
|
+
/**
|
|
52
|
+
* Specify an optional className to add.
|
|
53
|
+
*/
|
|
51
54
|
className: prop_types.default.string,
|
|
55
|
+
/**
|
|
56
|
+
* Specify whether to hide the label.
|
|
57
|
+
*/
|
|
52
58
|
hideLabel: prop_types.default.bool,
|
|
59
|
+
/**
|
|
60
|
+
* Specify the id to add.
|
|
61
|
+
*/
|
|
53
62
|
id: prop_types.default.string,
|
|
63
|
+
/**
|
|
64
|
+
* Specify whether to render the range skeleton variant.
|
|
65
|
+
*/
|
|
54
66
|
range: prop_types.default.bool
|
|
55
67
|
};
|
|
56
68
|
//#endregion
|
|
@@ -452,31 +452,110 @@ const DatePicker = (0, react.forwardRef)((props, ref) => {
|
|
|
452
452
|
});
|
|
453
453
|
});
|
|
454
454
|
DatePicker.propTypes = {
|
|
455
|
+
/**
|
|
456
|
+
* Flatpickr prop passthrough enables direct date input, and when set to
|
|
457
|
+
* false, we must clear dates manually by resetting the value prop to an empty
|
|
458
|
+
* value (such as `""`, `null`, or `undefined`) or an array of all empty
|
|
459
|
+
* values, making it a controlled input.
|
|
460
|
+
*/
|
|
455
461
|
allowInput: prop_types.default.bool,
|
|
462
|
+
/**
|
|
463
|
+
* The DOM element the Flatpicker should be inserted into. `<body>` by default.
|
|
464
|
+
*/
|
|
456
465
|
appendTo: prop_types.default.object,
|
|
466
|
+
/**
|
|
467
|
+
* The child nodes.
|
|
468
|
+
*/
|
|
457
469
|
children: prop_types.default.node,
|
|
470
|
+
/**
|
|
471
|
+
* The CSS class names.
|
|
472
|
+
*/
|
|
458
473
|
className: prop_types.default.string,
|
|
474
|
+
/**
|
|
475
|
+
* flatpickr prop passthrough. Controls whether the calendar dropdown closes upon selection.
|
|
476
|
+
*/
|
|
459
477
|
closeOnSelect: prop_types.default.bool,
|
|
478
|
+
/**
|
|
479
|
+
* The date format.
|
|
480
|
+
*/
|
|
460
481
|
dateFormat: prop_types.default.string,
|
|
482
|
+
/**
|
|
483
|
+
* The type of the date picker:
|
|
484
|
+
*
|
|
485
|
+
* * `simple` - Without calendar dropdown.
|
|
486
|
+
* * `single` - With calendar dropdown and single date.
|
|
487
|
+
* * `range` - With calendar dropdown and a date range.
|
|
488
|
+
*/
|
|
461
489
|
datePickerType: prop_types.default.oneOf([
|
|
462
490
|
"simple",
|
|
463
491
|
"single",
|
|
464
492
|
"range"
|
|
465
493
|
]),
|
|
494
|
+
/**
|
|
495
|
+
* The flatpickr `disable` option that allows a user to disable certain dates.
|
|
496
|
+
*/
|
|
466
497
|
disable: prop_types.default.array,
|
|
498
|
+
/**
|
|
499
|
+
* The flatpickr `enable` option that allows a user to enable certain dates.
|
|
500
|
+
*/
|
|
467
501
|
enable: prop_types.default.array,
|
|
502
|
+
/**
|
|
503
|
+
* The flatpickr `inline` option.
|
|
504
|
+
*/
|
|
468
505
|
inline: prop_types.default.bool,
|
|
506
|
+
/**
|
|
507
|
+
* Specify whether or not the control is invalid (Fluid only)
|
|
508
|
+
*/
|
|
469
509
|
invalid: prop_types.default.bool,
|
|
510
|
+
/**
|
|
511
|
+
* `true` to use the light version.
|
|
512
|
+
*/
|
|
470
513
|
light: require_deprecate.deprecate(prop_types.default.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."),
|
|
514
|
+
/**
|
|
515
|
+
* 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
|
|
516
|
+
*/
|
|
471
517
|
locale: prop_types.default.oneOfType([prop_types.default.object, prop_types.default.oneOf(require_DatePickerLocales.SUPPORTED_LOCALES)]),
|
|
518
|
+
/**
|
|
519
|
+
* The maximum date that a user can pick to.
|
|
520
|
+
*/
|
|
472
521
|
maxDate: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.number]),
|
|
522
|
+
/**
|
|
523
|
+
* The minimum date that a user can start picking from.
|
|
524
|
+
*/
|
|
473
525
|
minDate: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.number]),
|
|
526
|
+
/**
|
|
527
|
+
* The `change` event handler.
|
|
528
|
+
* `(dates: Date[], dStr: string, fp: Instance, data?: any):void;`
|
|
529
|
+
*/
|
|
474
530
|
onChange: prop_types.default.func,
|
|
531
|
+
/**
|
|
532
|
+
* The `close` event handler.
|
|
533
|
+
* `(dates: Date[], dStr: string, fp: Instance, data?: any):void;`
|
|
534
|
+
*/
|
|
475
535
|
onClose: prop_types.default.func,
|
|
536
|
+
/**
|
|
537
|
+
* The `open` event handler.
|
|
538
|
+
* `(dates: Date[], dStr: string, fp: Instance, data?: any):void;`
|
|
539
|
+
*/
|
|
476
540
|
onOpen: prop_types.default.func,
|
|
541
|
+
/**
|
|
542
|
+
* flatpickr prop passthrough. Controls how dates are parsed.
|
|
543
|
+
*/
|
|
477
544
|
parseDate: prop_types.default.func,
|
|
545
|
+
/**
|
|
546
|
+
* whether the DatePicker is to be readOnly
|
|
547
|
+
* if boolean applies to all inputs
|
|
548
|
+
* if array applies to each input in order
|
|
549
|
+
*/
|
|
478
550
|
readOnly: prop_types.default.oneOfType([prop_types.default.bool, prop_types.default.array]),
|
|
551
|
+
/**
|
|
552
|
+
* `true` to use the short version.
|
|
553
|
+
*/
|
|
479
554
|
short: prop_types.default.bool,
|
|
555
|
+
/**
|
|
556
|
+
* The value of the date value provided to flatpickr, could
|
|
557
|
+
* be a date, a date number, a date string, an array of dates.
|
|
558
|
+
*/
|
|
480
559
|
value: prop_types.default.oneOfType([
|
|
481
560
|
prop_types.default.string,
|
|
482
561
|
prop_types.default.arrayOf(prop_types.default.oneOfType([
|
|
@@ -487,8 +566,17 @@ DatePicker.propTypes = {
|
|
|
487
566
|
prop_types.default.object,
|
|
488
567
|
prop_types.default.number
|
|
489
568
|
]),
|
|
569
|
+
/**
|
|
570
|
+
* Specify whether the control is currently in warning state (Fluid only)
|
|
571
|
+
*/
|
|
490
572
|
warn: prop_types.default.bool,
|
|
573
|
+
/**
|
|
574
|
+
* Accessible aria-label for the "next month" arrow icon.
|
|
575
|
+
*/
|
|
491
576
|
nextMonthAriaLabel: prop_types.default.string,
|
|
577
|
+
/**
|
|
578
|
+
* Accessible aria-label for the "previous month" arrow icon.
|
|
579
|
+
*/
|
|
492
580
|
prevMonthAriaLabel: prop_types.default.string
|
|
493
581
|
};
|
|
494
582
|
//#endregion
|
|
@@ -140,32 +140,92 @@ const DatePickerInput = (0, react.forwardRef)((props, ref) => {
|
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
142
|
DatePickerInput.propTypes = {
|
|
143
|
+
/**
|
|
144
|
+
* The type of the date picker:
|
|
145
|
+
*
|
|
146
|
+
* * `simple` - Without calendar dropdown.
|
|
147
|
+
* * `single` - With calendar dropdown and single date.
|
|
148
|
+
* * `range` - With calendar dropdown and a date range.
|
|
149
|
+
*/
|
|
143
150
|
datePickerType: prop_types.default.oneOf([
|
|
144
151
|
"simple",
|
|
145
152
|
"single",
|
|
146
153
|
"range"
|
|
147
154
|
]),
|
|
155
|
+
/**
|
|
156
|
+
* **Experimental**: Provide a decorator component to be rendered inside the `RadioButton` component
|
|
157
|
+
*/
|
|
148
158
|
decorator: prop_types.default.node,
|
|
159
|
+
/**
|
|
160
|
+
* Specify whether or not the input should be disabled
|
|
161
|
+
*/
|
|
149
162
|
disabled: prop_types.default.bool,
|
|
163
|
+
/**
|
|
164
|
+
* Provide text that is used alongside the control label for additional help
|
|
165
|
+
*/
|
|
150
166
|
helperText: prop_types.default.node,
|
|
167
|
+
/**
|
|
168
|
+
* Specify if the label should be hidden
|
|
169
|
+
*/
|
|
151
170
|
hideLabel: prop_types.default.bool,
|
|
171
|
+
/**
|
|
172
|
+
* Specify an id that uniquely identifies the `<input>`
|
|
173
|
+
*/
|
|
152
174
|
id: prop_types.default.string.isRequired,
|
|
175
|
+
/**
|
|
176
|
+
* Specify whether or not the input should be invalid
|
|
177
|
+
*/
|
|
153
178
|
invalid: prop_types.default.bool,
|
|
179
|
+
/**
|
|
180
|
+
* Specify the text to be rendered when the input is invalid
|
|
181
|
+
*/
|
|
154
182
|
invalidText: prop_types.default.node,
|
|
183
|
+
/**
|
|
184
|
+
* Provide the text that will be read by a screen reader when visiting this
|
|
185
|
+
* control
|
|
186
|
+
*/
|
|
155
187
|
labelText: prop_types.default.node.isRequired,
|
|
188
|
+
/**
|
|
189
|
+
* Specify an `onChange` handler that is called whenever a change in the
|
|
190
|
+
* input field has occurred
|
|
191
|
+
*/
|
|
156
192
|
onChange: prop_types.default.func,
|
|
193
|
+
/**
|
|
194
|
+
* Provide a function to be called when the input field is clicked
|
|
195
|
+
*/
|
|
157
196
|
onClick: prop_types.default.func,
|
|
197
|
+
/**
|
|
198
|
+
* Provide a regular expression pattern string that the input value must match
|
|
199
|
+
*/
|
|
158
200
|
pattern: prop_types.default.string,
|
|
201
|
+
/**
|
|
202
|
+
* Specify the placeholder text
|
|
203
|
+
*/
|
|
159
204
|
placeholder: prop_types.default.string,
|
|
205
|
+
/**
|
|
206
|
+
* whether the DatePicker is to be readOnly
|
|
207
|
+
*/
|
|
160
208
|
readOnly: prop_types.default.bool,
|
|
209
|
+
/**
|
|
210
|
+
* Specify the size of the Date Picker Input. Currently supports either `sm`, `md`, or `lg` as an option.
|
|
211
|
+
*/
|
|
161
212
|
size: prop_types.default.oneOf([
|
|
162
213
|
"sm",
|
|
163
214
|
"md",
|
|
164
215
|
"lg"
|
|
165
216
|
]),
|
|
166
217
|
slug: require_deprecate.deprecate(prop_types.default.node, "The `slug` prop has been deprecated and will be removed in the next major version. Use the decorator prop instead."),
|
|
218
|
+
/**
|
|
219
|
+
* Specify the type of the `<input>`
|
|
220
|
+
*/
|
|
167
221
|
type: prop_types.default.string,
|
|
222
|
+
/**
|
|
223
|
+
* Specify whether the control is currently in warning state
|
|
224
|
+
*/
|
|
168
225
|
warn: prop_types.default.bool,
|
|
226
|
+
/**
|
|
227
|
+
* Provide the text that is displayed when the control is in warning state
|
|
228
|
+
*/
|
|
169
229
|
warnText: prop_types.default.node
|
|
170
230
|
};
|
|
171
231
|
function DatePickerIcon({ datePickerType, invalid, warn, disabled, readOnly }) {
|
|
@@ -188,14 +248,33 @@ function DatePickerIcon({ datePickerType, invalid, warn, disabled, readOnly }) {
|
|
|
188
248
|
});
|
|
189
249
|
}
|
|
190
250
|
DatePickerIcon.propTypes = {
|
|
251
|
+
/**
|
|
252
|
+
* The type of the date picker:
|
|
253
|
+
*
|
|
254
|
+
* * `simple` - Without calendar dropdown.
|
|
255
|
+
* * `single` - With calendar dropdown and single date.
|
|
256
|
+
* * `range` - With calendar dropdown and a date range.
|
|
257
|
+
*/
|
|
191
258
|
datePickerType: prop_types.default.oneOf([
|
|
192
259
|
"simple",
|
|
193
260
|
"single",
|
|
194
261
|
"range"
|
|
195
262
|
]),
|
|
263
|
+
/**
|
|
264
|
+
* Specify whether or not the input should be invalid
|
|
265
|
+
*/
|
|
196
266
|
invalid: prop_types.default.bool,
|
|
267
|
+
/**
|
|
268
|
+
* Specify whether the control is currently in warning state
|
|
269
|
+
*/
|
|
197
270
|
warn: prop_types.default.bool,
|
|
271
|
+
/**
|
|
272
|
+
* Specify whether or not the input should be disabled
|
|
273
|
+
*/
|
|
198
274
|
disabled: prop_types.default.bool,
|
|
275
|
+
/**
|
|
276
|
+
* Specify whether the input is readonly
|
|
277
|
+
*/
|
|
199
278
|
readOnly: prop_types.default.bool
|
|
200
279
|
};
|
|
201
280
|
//#endregion
|
|
@@ -108,18 +108,59 @@ const Dialog = react.default.forwardRef(({ children, className, focusAfterCloseR
|
|
|
108
108
|
});
|
|
109
109
|
Dialog.displayName = "Dialog";
|
|
110
110
|
Dialog.propTypes = {
|
|
111
|
+
/**
|
|
112
|
+
* Provide children to be rendered inside of the Dialog
|
|
113
|
+
*/
|
|
111
114
|
children: prop_types.default.node,
|
|
115
|
+
/**
|
|
116
|
+
* Specify an optional className to be applied to the modal root node
|
|
117
|
+
*/
|
|
112
118
|
className: prop_types.default.string,
|
|
119
|
+
/**
|
|
120
|
+
* Provide a ref to return focus to once the dialog is closed.
|
|
121
|
+
*/
|
|
113
122
|
focusAfterCloseRef: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.shape({ current: prop_types.default.any })]),
|
|
123
|
+
/**
|
|
124
|
+
* Modal specifies whether the Dialog is modal or non-modal. This cannot be
|
|
125
|
+
* changed while open=true
|
|
126
|
+
*/
|
|
114
127
|
modal: prop_types.default.bool,
|
|
128
|
+
/**
|
|
129
|
+
* Specify a handler for closing Dialog.
|
|
130
|
+
* The handler should care of closing Dialog, e.g. changing `open` prop.
|
|
131
|
+
*/
|
|
115
132
|
onRequestClose: prop_types.default.func,
|
|
133
|
+
/**
|
|
134
|
+
* open initial state
|
|
135
|
+
*/
|
|
116
136
|
open: prop_types.default.bool,
|
|
137
|
+
/**
|
|
138
|
+
* Specify the role of the dialog for accessibility
|
|
139
|
+
*/
|
|
117
140
|
role: prop_types.default.oneOf(["dialog", "alertdialog"]),
|
|
141
|
+
/**
|
|
142
|
+
* Specify a label for screen readers
|
|
143
|
+
*/
|
|
118
144
|
"aria-label": prop_types.default.string,
|
|
145
|
+
/**
|
|
146
|
+
* Specify the ID of an element that labels this dialog
|
|
147
|
+
*/
|
|
119
148
|
"aria-labelledby": prop_types.default.string,
|
|
149
|
+
/**
|
|
150
|
+
* Specify the ID of an element that describes this dialog
|
|
151
|
+
*/
|
|
120
152
|
"aria-describedby": prop_types.default.string,
|
|
153
|
+
/**
|
|
154
|
+
* Specify a label for screen readers
|
|
155
|
+
*/
|
|
121
156
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`"),
|
|
157
|
+
/**
|
|
158
|
+
* Specify the ID of an element that labels this dialog
|
|
159
|
+
*/
|
|
122
160
|
ariaLabelledBy: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-labelledby`"),
|
|
161
|
+
/**
|
|
162
|
+
* Specify the ID of an element that describes this dialog
|
|
163
|
+
*/
|
|
123
164
|
ariaDescribedBy: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-describedby`")
|
|
124
165
|
};
|
|
125
166
|
const DialogHeader = react.default.forwardRef(({ children, ...rest }, ref) => {
|
|
@@ -131,7 +172,11 @@ const DialogHeader = react.default.forwardRef(({ children, ...rest }, ref) => {
|
|
|
131
172
|
});
|
|
132
173
|
});
|
|
133
174
|
DialogHeader.displayName = "DialogHeader";
|
|
134
|
-
DialogHeader.propTypes = {
|
|
175
|
+
DialogHeader.propTypes = {
|
|
176
|
+
/**
|
|
177
|
+
* Provide the contents to be rendered inside of this component
|
|
178
|
+
*/
|
|
179
|
+
children: prop_types.default.node };
|
|
135
180
|
const DialogControls = react.default.forwardRef(({ children, ...rest }, ref) => {
|
|
136
181
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
137
182
|
className: `${require_usePrefix.usePrefix()}--dialog__header-controls`,
|
|
@@ -141,7 +186,11 @@ const DialogControls = react.default.forwardRef(({ children, ...rest }, ref) =>
|
|
|
141
186
|
});
|
|
142
187
|
});
|
|
143
188
|
DialogControls.displayName = "DialogControls";
|
|
144
|
-
DialogControls.propTypes = {
|
|
189
|
+
DialogControls.propTypes = {
|
|
190
|
+
/**
|
|
191
|
+
* Provide children to be rendered inside of this component
|
|
192
|
+
*/
|
|
193
|
+
children: prop_types.default.node };
|
|
145
194
|
const DialogCloseButton = react.default.forwardRef(({ onClick, ...rest }, ref) => {
|
|
146
195
|
const prefix = require_usePrefix.usePrefix();
|
|
147
196
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.IconButton, {
|
|
@@ -163,7 +212,11 @@ const DialogCloseButton = react.default.forwardRef(({ onClick, ...rest }, ref) =
|
|
|
163
212
|
});
|
|
164
213
|
});
|
|
165
214
|
DialogCloseButton.displayName = "DialogCloseButton";
|
|
166
|
-
DialogCloseButton.propTypes = {
|
|
215
|
+
DialogCloseButton.propTypes = {
|
|
216
|
+
/**
|
|
217
|
+
* Specify a click handler applied to the IconButton
|
|
218
|
+
*/
|
|
219
|
+
onClick: prop_types.default.func };
|
|
167
220
|
const DialogTitle = react.default.forwardRef(({ children, className, id, ...rest }, ref) => {
|
|
168
221
|
const prefix = require_usePrefix.usePrefix();
|
|
169
222
|
const { dialogId, setTitleId } = (0, react.useContext)(DialogContext);
|
|
@@ -184,8 +237,17 @@ const DialogTitle = react.default.forwardRef(({ children, className, id, ...rest
|
|
|
184
237
|
});
|
|
185
238
|
DialogTitle.displayName = "DialogTitle";
|
|
186
239
|
DialogTitle.propTypes = {
|
|
240
|
+
/**
|
|
241
|
+
* Provide the contents to be rendered inside of this component
|
|
242
|
+
*/
|
|
187
243
|
children: prop_types.default.node,
|
|
244
|
+
/**
|
|
245
|
+
* Specify an optional className to be applied to the title node
|
|
246
|
+
*/
|
|
188
247
|
className: prop_types.default.string,
|
|
248
|
+
/**
|
|
249
|
+
* Specify an optional id for the title element
|
|
250
|
+
*/
|
|
189
251
|
id: prop_types.default.string
|
|
190
252
|
};
|
|
191
253
|
const DialogSubtitle = react.default.forwardRef(({ children, className, id, ...rest }, ref) => {
|
|
@@ -208,8 +270,17 @@ const DialogSubtitle = react.default.forwardRef(({ children, className, id, ...r
|
|
|
208
270
|
});
|
|
209
271
|
DialogSubtitle.displayName = "DialogSubtitle";
|
|
210
272
|
DialogSubtitle.propTypes = {
|
|
273
|
+
/**
|
|
274
|
+
* Provide the contents to be rendered inside of this component
|
|
275
|
+
*/
|
|
211
276
|
children: prop_types.default.node,
|
|
277
|
+
/**
|
|
278
|
+
* Specify an optional className to be applied to the subtitle node
|
|
279
|
+
*/
|
|
212
280
|
className: prop_types.default.string,
|
|
281
|
+
/**
|
|
282
|
+
* Specify an optional id for the subtitle element
|
|
283
|
+
*/
|
|
213
284
|
id: prop_types.default.string
|
|
214
285
|
};
|
|
215
286
|
const DialogBody = react.default.forwardRef(({ children, className, hasScrollingContent, ...rest }, ref) => {
|
|
@@ -248,8 +319,17 @@ const DialogBody = react.default.forwardRef(({ children, className, hasScrolling
|
|
|
248
319
|
});
|
|
249
320
|
DialogBody.displayName = "DialogBody";
|
|
250
321
|
DialogBody.propTypes = {
|
|
322
|
+
/**
|
|
323
|
+
* Provide the contents to be rendered inside of this component
|
|
324
|
+
*/
|
|
251
325
|
children: prop_types.default.node,
|
|
326
|
+
/**
|
|
327
|
+
* Specify an optional className to be applied to the body node
|
|
328
|
+
*/
|
|
252
329
|
className: prop_types.default.string,
|
|
330
|
+
/**
|
|
331
|
+
* Specify whether the content has overflow that should be scrollable
|
|
332
|
+
*/
|
|
253
333
|
hasScrollingContent: prop_types.default.bool
|
|
254
334
|
};
|
|
255
335
|
const DialogFooter = react.default.forwardRef(({ children, className, onRequestClose = require_noopFn.noopFn, onSecondarySubmit, onRequestSubmit = require_noopFn.noopFn, primaryButtonText = "Save", primaryButtonDisabled = false, secondaryButtonText = "Cancel", secondaryButtons, loadingStatus = "inactive", loadingDescription, loadingIconDescription, onLoadingSuccess = require_noopFn.noopFn, danger = false, dangerDescription = "", ...rest }, ref) => {
|
|
@@ -316,14 +396,41 @@ const DialogFooter = react.default.forwardRef(({ children, className, onRequestC
|
|
|
316
396
|
});
|
|
317
397
|
DialogFooter.displayName = "DialogFooter";
|
|
318
398
|
DialogFooter.propTypes = {
|
|
399
|
+
/**
|
|
400
|
+
* Provide the contents to be rendered inside of this component
|
|
401
|
+
*/
|
|
319
402
|
children: prop_types.default.node,
|
|
403
|
+
/**
|
|
404
|
+
* Specify an optional className to be applied to the footer node
|
|
405
|
+
*/
|
|
320
406
|
className: prop_types.default.string,
|
|
407
|
+
/**
|
|
408
|
+
* Specify a handler for closing dialog.
|
|
409
|
+
*/
|
|
321
410
|
onRequestClose: prop_types.default.func,
|
|
411
|
+
/**
|
|
412
|
+
* Specify a handler for the secondary button.
|
|
413
|
+
*/
|
|
322
414
|
onSecondarySubmit: prop_types.default.func,
|
|
415
|
+
/**
|
|
416
|
+
* Specify a handler for submitting dialog.
|
|
417
|
+
*/
|
|
323
418
|
onRequestSubmit: prop_types.default.func,
|
|
419
|
+
/**
|
|
420
|
+
* Specify the text for the primary button
|
|
421
|
+
*/
|
|
324
422
|
primaryButtonText: prop_types.default.node,
|
|
423
|
+
/**
|
|
424
|
+
* Specify whether the Button should be disabled, or not
|
|
425
|
+
*/
|
|
325
426
|
primaryButtonDisabled: prop_types.default.bool,
|
|
427
|
+
/**
|
|
428
|
+
* Specify the text for the secondary button
|
|
429
|
+
*/
|
|
326
430
|
secondaryButtonText: prop_types.default.node,
|
|
431
|
+
/**
|
|
432
|
+
* Specify an array of config objects for secondary buttons
|
|
433
|
+
*/
|
|
327
434
|
secondaryButtons: (props, propName, componentName) => {
|
|
328
435
|
if (props.secondaryButtons) {
|
|
329
436
|
if (!Array.isArray(props.secondaryButtons) || props.secondaryButtons.length !== 2) return /* @__PURE__ */ new Error(`${propName} needs to be an array of two button config objects`);
|
|
@@ -337,16 +444,36 @@ DialogFooter.propTypes = {
|
|
|
337
444
|
}
|
|
338
445
|
return null;
|
|
339
446
|
},
|
|
447
|
+
/**
|
|
448
|
+
* Specify whether the Dialog is for dangerous actions
|
|
449
|
+
*/
|
|
340
450
|
danger: prop_types.default.bool,
|
|
451
|
+
/**
|
|
452
|
+
* Specify the message read by screen readers for the danger primary button.
|
|
453
|
+
* Defaults to an empty string; provide localized text to opt in.
|
|
454
|
+
*/
|
|
341
455
|
dangerDescription: prop_types.default.string,
|
|
456
|
+
/**
|
|
457
|
+
* Specify loading status
|
|
458
|
+
*/
|
|
342
459
|
loadingStatus: prop_types.default.oneOf([
|
|
343
460
|
"inactive",
|
|
344
461
|
"active",
|
|
345
462
|
"finished",
|
|
346
463
|
"error"
|
|
347
464
|
]),
|
|
465
|
+
/**
|
|
466
|
+
* Specify the description for the loading text
|
|
467
|
+
*/
|
|
348
468
|
loadingDescription: prop_types.default.string,
|
|
469
|
+
/**
|
|
470
|
+
* Specify the description for the loading icon
|
|
471
|
+
*/
|
|
349
472
|
loadingIconDescription: prop_types.default.string,
|
|
473
|
+
/**
|
|
474
|
+
* Provide an optional handler to be invoked when loading is
|
|
475
|
+
* successful
|
|
476
|
+
*/
|
|
350
477
|
onLoadingSuccess: prop_types.default.func
|
|
351
478
|
};
|
|
352
479
|
//#endregion
|
|
@@ -31,8 +31,17 @@ const DropdownSkeleton = ({ className, size, hideLabel, ...rest }) => {
|
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
33
|
DropdownSkeleton.propTypes = {
|
|
34
|
+
/**
|
|
35
|
+
* Specify an optional className to add.
|
|
36
|
+
*/
|
|
34
37
|
className: prop_types.default.string,
|
|
38
|
+
/**
|
|
39
|
+
* Specify whether the label should be hidden, or not
|
|
40
|
+
*/
|
|
35
41
|
hideLabel: prop_types.default.bool,
|
|
42
|
+
/**
|
|
43
|
+
* Specify the size of the ListBox.
|
|
44
|
+
*/
|
|
36
45
|
size: require_ListBoxPropTypes.ListBoxSizePropType
|
|
37
46
|
};
|
|
38
47
|
//#endregion
|