@carbon/react 1.110.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 +927 -927
- package/es/components/AILabel/index.js +48 -1
- package/es/components/AISkeleton/AISkeletonIcon.js +7 -1
- package/es/components/AISkeleton/AISkeletonPlaceholder.js +7 -2
- package/es/components/AISkeleton/AISkeletonText.js +16 -1
- package/es/components/Accordion/Accordion.Skeleton.js +16 -1
- package/es/components/Accordion/Accordion.js +23 -1
- package/es/components/Accordion/AccordionItem.js +34 -1
- package/es/components/AspectRatio/AspectRatio.js +20 -1
- package/es/components/BadgeIndicator/index.js +10 -1
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +13 -1
- package/es/components/Breadcrumb/Breadcrumb.js +17 -1
- package/es/components/Breadcrumb/BreadcrumbItem.js +13 -1
- package/es/components/Button/Button.Skeleton.js +18 -1
- package/es/components/Button/Button.js +96 -0
- package/es/components/Button/ButtonBase.js +1 -1
- package/es/components/ButtonSet/ButtonSet.js +15 -1
- package/es/components/ChatButton/ChatButton.Skeleton.js +7 -1
- package/es/components/ChatButton/ChatButton.js +25 -1
- package/es/components/Checkbox/Checkbox.Skeleton.js +6 -2
- package/es/components/Checkbox/Checkbox.js +59 -2
- package/es/components/CheckboxGroup/CheckboxGroup.js +41 -1
- package/es/components/ClassPrefix/index.js +3 -0
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +7 -1
- package/es/components/CodeSnippet/CodeSnippet.js +77 -1
- package/es/components/ComboBox/ComboBox.js +141 -1
- package/es/components/ComboButton/index.js +28 -1
- package/es/components/ComposedModal/ComposedModal.js +70 -2
- package/es/components/ComposedModal/ModalFooter.js +65 -2
- package/es/components/ComposedModal/ModalHeader.js +36 -1
- package/es/components/ContainedList/ContainedList.js +22 -1
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +19 -1
- package/es/components/ContentSwitcher/ContentSwitcher.js +26 -1
- package/es/components/Copy/Copy.js +31 -2
- package/es/components/CopyButton/CopyButton.js +28 -2
- package/es/components/DataTable/DataTable.js +59 -0
- package/es/components/DataTable/Table.js +28 -1
- package/es/components/DataTable/TableBatchAction.js +10 -0
- package/es/components/DataTable/TableBatchActions.js +25 -1
- package/es/components/DataTable/TableBody.js +3 -0
- package/es/components/DataTable/TableCell.js +16 -1
- package/es/components/DataTable/TableContainer.js +19 -1
- package/es/components/DataTable/TableDecoratorRow.js +7 -1
- package/es/components/DataTable/TableExpandHeader.js +32 -1
- package/es/components/DataTable/TableExpandRow.js +30 -1
- package/es/components/DataTable/TableExpandedRow.js +10 -1
- package/es/components/DataTable/TableHeader.js +36 -1
- package/es/components/DataTable/TableRow.js +22 -1
- package/es/components/DataTable/TableSelectAll.js +29 -1
- package/es/components/DataTable/TableSelectRow.js +32 -1
- package/es/components/DataTable/TableSlugRow.js +7 -1
- package/es/components/DataTable/TableToolbar.js +16 -1
- package/es/components/DataTable/TableToolbarMenu.js +16 -1
- package/es/components/DataTable/TableToolbarSearch.js +60 -2
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +25 -1
- package/es/components/DatePicker/DatePicker.Skeleton.js +13 -1
- package/es/components/DatePicker/DatePicker.js +89 -1
- package/es/components/DatePickerInput/DatePickerInput.js +81 -2
- package/es/components/Dialog/Dialog.js +132 -5
- package/es/components/Dropdown/Dropdown.Skeleton.js +10 -1
- package/es/components/Dropdown/Dropdown.js +110 -1
- package/es/components/ExpandableSearch/ExpandableSearch.js +1 -1
- package/es/components/FeatureFlags/index.js +3 -0
- package/es/components/FileUploader/FileUploader.Skeleton.js +6 -2
- package/es/components/FileUploader/FileUploader.js +58 -1
- package/es/components/FileUploader/FileUploaderButton.js +49 -2
- package/es/components/FileUploader/FileUploaderDropContainer.js +44 -2
- package/es/components/FileUploader/FileUploaderItem.js +31 -2
- package/es/components/FileUploader/Filename.js +18 -0
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +6 -2
- package/es/components/FluidComboBox/FluidComboBox.js +62 -1
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +7 -1
- package/es/components/FluidDatePicker/FluidDatePicker.js +22 -1
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +6 -2
- package/es/components/FluidDropdown/FluidDropdown.js +66 -1
- package/es/components/FluidForm/FluidForm.js +7 -1
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +6 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +129 -1
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +6 -2
- package/es/components/FluidNumberInput/FluidNumberInput.js +96 -1
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +6 -2
- package/es/components/FluidSearch/FluidSearch.js +46 -1
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +6 -2
- package/es/components/FluidSelect/FluidSelect.js +39 -1
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +6 -2
- package/es/components/FluidTextArea/FluidTextArea.js +68 -1
- package/es/components/FluidTextInput/FluidPasswordInput.js +59 -1
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +6 -2
- package/es/components/FluidTextInput/FluidTextInput.js +55 -1
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +7 -1
- package/es/components/FluidTimePicker/FluidTimePicker.js +29 -1
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +26 -0
- package/es/components/Form/Form.js +7 -1
- package/es/components/FormGroup/FormGroup.js +26 -1
- package/es/components/FormItem/FormItem.js +7 -1
- package/es/components/FormLabel/FormLabel.js +10 -1
- package/es/components/Grid/CSSGrid.js +44 -1
- package/es/components/Grid/Column.js +87 -1
- package/es/components/Grid/ColumnHang.js +10 -1
- package/es/components/Grid/FlexGrid.js +25 -1
- package/es/components/Grid/Grid.js +27 -0
- package/es/components/Grid/GridContext.js +10 -0
- package/es/components/Grid/Row.js +18 -1
- package/es/components/Heading/index.js +19 -0
- package/es/components/Icon/Icon.Skeleton.js +6 -2
- package/es/components/IconButton/index.js +69 -1
- package/es/components/IconIndicator/index.js +13 -1
- package/es/components/IdPrefix/index.js +3 -0
- package/es/components/InlineCheckbox/InlineCheckbox.js +34 -0
- package/es/components/InlineLoading/InlineLoading.js +20 -1
- package/es/components/Layer/index.js +18 -1
- package/es/components/Layout/index.js +35 -1
- package/es/components/LayoutDirection/LayoutDirection.js +10 -0
- package/es/components/Link/Link.d.ts +1 -1
- package/es/components/Link/Link.js +29 -1
- package/es/components/ListBox/ListBox.js +42 -1
- package/es/components/ListBox/ListBoxField.js +17 -0
- package/es/components/ListBox/ListBoxMenu.js +6 -0
- package/es/components/ListBox/ListBoxMenuIcon.js +8 -1
- package/es/components/ListBox/ListBoxMenuItem.js +17 -1
- package/es/components/ListBox/ListBoxSelection.d.ts +1 -1
- package/es/components/ListBox/ListBoxSelection.js +33 -10
- package/es/components/ListBox/next/ListBoxSelection.d.ts +1 -1
- package/es/components/ListBox/next/ListBoxSelection.js +42 -7
- package/es/components/ListBox/next/ListBoxTrigger.js +8 -1
- package/es/components/ListItem/ListItem.js +7 -1
- package/es/components/Loading/Loading.js +19 -1
- package/es/components/Menu/Menu.js +53 -1
- package/es/components/Menu/MenuItem.js +78 -2
- package/es/components/MenuButton/index.js +34 -1
- package/es/components/Modal/Modal.js +118 -4
- package/es/components/ModalWrapper/ModalWrapper.js +2 -2
- package/es/components/MultiSelect/FilterableMultiSelect.js +129 -1
- package/es/components/MultiSelect/MultiSelect.js +151 -3
- package/es/components/MultiSelect/MultiSelectPropTypes.js +25 -0
- package/es/components/Notification/Notification.js +210 -3
- package/es/components/NumberInput/NumberInput.Skeleton.js +10 -1
- package/es/components/NumberInput/NumberInput.js +139 -1
- package/es/components/OrderedList/OrderedList.js +16 -1
- package/es/components/OverflowMenu/OverflowMenu.js +78 -2
- package/es/components/OverflowMenu/next/index.js +31 -1
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +38 -2
- package/es/components/PageHeader/PageHeader.js +49 -1
- package/es/components/Pagination/Pagination.Skeleton.js +6 -2
- package/es/components/Pagination/Pagination.d.ts +8 -0
- package/es/components/Pagination/Pagination.js +86 -4
- package/es/components/Pagination/experimental/PageSelector.js +9 -1
- package/es/components/Pagination/experimental/Pagination.js +55 -1
- package/es/components/PaginationNav/PaginationNav.js +81 -1
- package/es/components/Popover/index.js +59 -1
- package/es/components/ProgressBar/ProgressBar.js +28 -1
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +7 -1
- package/es/components/ProgressIndicator/ProgressIndicator.js +59 -1
- package/es/components/RadioButton/RadioButton.Skeleton.js +6 -2
- package/es/components/RadioButton/RadioButton.js +64 -1
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +60 -1
- package/es/components/RadioTile/RadioTile.js +47 -2
- package/es/components/Search/Search.Skeleton.js +10 -1
- package/es/components/Search/Search.js +68 -3
- package/es/components/Select/Select.Skeleton.js +7 -1
- package/es/components/Select/Select.js +83 -20
- package/es/components/SelectItem/SelectItem.js +16 -1
- package/es/components/SelectItemGroup/SelectItemGroup.js +13 -1
- package/es/components/ShapeIndicator/index.js +13 -1
- package/es/components/SkeletonIcon/SkeletonIcon.js +6 -2
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +6 -2
- package/es/components/SkeletonText/SkeletonText.js +16 -1
- package/es/components/Slider/Slider.Skeleton.js +16 -1
- package/es/components/Slider/Slider.js +105 -1
- package/es/components/Stack/Stack.js +21 -1
- package/es/components/StructuredList/StructuredList.Skeleton.js +7 -1
- package/es/components/StructuredList/StructuredList.js +98 -1
- package/es/components/Switch/IconSwitch.js +49 -2
- package/es/components/Switch/Switch.js +32 -2
- package/es/components/TabContent/TabContent.js +10 -1
- package/es/components/Tabs/Tabs.Skeleton.js +7 -1
- package/es/components/Tabs/Tabs.js +175 -2
- package/es/components/Tag/DismissibleTag.js +44 -1
- package/es/components/Tag/OperationalTag.js +23 -1
- package/es/components/Tag/SelectableTag.js +32 -1
- package/es/components/Tag/Tag.Skeleton.js +8 -1
- package/es/components/Tag/Tag.js +42 -1
- package/es/components/Text/Text.js +10 -0
- package/es/components/Text/TextDirection.js +11 -0
- package/es/components/TextArea/TextArea.Skeleton.js +7 -1
- package/es/components/TextArea/TextArea.js +82 -2
- package/es/components/TextInput/ControlledPasswordInput.js +66 -2
- package/es/components/TextInput/PasswordInput.js +84 -1
- package/es/components/TextInput/TextInput.Skeleton.js +10 -1
- package/es/components/TextInput/TextInput.js +77 -1
- package/es/components/Theme/index.js +22 -1
- package/es/components/Tile/Tile.js +158 -3
- package/es/components/TileGroup/TileGroup.js +29 -1
- package/es/components/TimePicker/TimePicker.js +68 -1
- package/es/components/TimePickerSelect/TimePickerSelect.js +16 -1
- package/es/components/Toggle/Toggle.Skeleton.js +1 -1
- package/es/components/Toggle/Toggle.js +47 -1
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +12 -1
- package/es/components/Toggletip/index.js +39 -1
- package/es/components/Tooltip/DefinitionTooltip.js +37 -1
- package/es/components/Tooltip/Tooltip.js +47 -1
- package/es/components/TreeView/TreeNode.js +65 -1
- package/es/components/TreeView/TreeView.js +33 -1
- package/es/components/UIShell/Content.js +10 -1
- package/es/components/UIShell/Header.js +10 -1
- package/es/components/UIShell/HeaderContainer.js +9 -0
- package/es/components/UIShell/HeaderGlobalAction.js +29 -1
- package/es/components/UIShell/HeaderMenu.js +38 -1
- package/es/components/UIShell/HeaderMenuButton.js +18 -1
- package/es/components/UIShell/HeaderMenuItem.js +26 -1
- package/es/components/UIShell/HeaderName.js +19 -1
- package/es/components/UIShell/HeaderNavigation.js +11 -1
- package/es/components/UIShell/HeaderPanel.js +21 -2
- package/es/components/UIShell/HeaderSideNavItems.js +12 -1
- package/es/components/UIShell/Link.js +14 -0
- package/es/components/UIShell/SideNav.js +54 -1
- package/es/components/UIShell/SideNavDetails.js +11 -1
- package/es/components/UIShell/SideNavDivider.js +6 -2
- package/es/components/UIShell/SideNavFooter.js +12 -1
- package/es/components/UIShell/SideNavHeader.js +14 -1
- package/es/components/UIShell/SideNavIcon.js +11 -1
- package/es/components/UIShell/SideNavItem.js +11 -1
- package/es/components/UIShell/SideNavItems.js +12 -1
- package/es/components/UIShell/SideNavLink.js +23 -1
- package/es/components/UIShell/SideNavLinkText.js +7 -1
- package/es/components/UIShell/SideNavMenu.js +32 -1
- package/es/components/UIShell/SideNavMenuItem.js +18 -1
- package/es/components/UIShell/SideNavSwitcher.js +17 -1
- package/es/components/UIShell/SkipToContent.js +12 -1
- package/es/components/UIShell/Switcher.js +13 -1
- package/es/components/UIShell/SwitcherDivider.js +6 -2
- package/es/components/UIShell/SwitcherItem.js +31 -1
- package/es/components/UnorderedList/UnorderedList.js +13 -1
- package/es/internal/FloatingMenu.js +1 -1
- package/es/internal/OptimizedResize.js +6 -2
- package/es/internal/usePresence.js +6 -0
- package/es/tools/wrapComponent.js +1 -1
- package/lib/components/AILabel/index.js +49 -2
- package/lib/components/AISkeleton/AISkeletonIcon.js +8 -2
- package/lib/components/AISkeleton/AISkeletonPlaceholder.js +8 -3
- package/lib/components/AISkeleton/AISkeletonText.js +17 -2
- package/lib/components/Accordion/Accordion.Skeleton.js +17 -2
- package/lib/components/Accordion/Accordion.js +24 -2
- package/lib/components/Accordion/AccordionItem.js +35 -2
- package/lib/components/AspectRatio/AspectRatio.js +21 -2
- package/lib/components/BadgeIndicator/index.js +11 -2
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +14 -2
- package/lib/components/Breadcrumb/Breadcrumb.js +18 -2
- package/lib/components/Breadcrumb/BreadcrumbItem.js +14 -2
- package/lib/components/Button/Button.Skeleton.js +19 -2
- package/lib/components/Button/Button.js +96 -0
- package/lib/components/Button/ButtonBase.js +2 -2
- package/lib/components/ButtonSet/ButtonSet.js +16 -2
- package/lib/components/ChatButton/ChatButton.Skeleton.js +8 -2
- package/lib/components/ChatButton/ChatButton.js +26 -2
- package/lib/components/Checkbox/Checkbox.Skeleton.js +7 -3
- package/lib/components/Checkbox/Checkbox.js +60 -3
- package/lib/components/CheckboxGroup/CheckboxGroup.js +42 -2
- package/lib/components/ClassPrefix/index.js +3 -0
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +8 -2
- package/lib/components/CodeSnippet/CodeSnippet.js +78 -2
- package/lib/components/ComboBox/ComboBox.js +142 -2
- package/lib/components/ComboButton/index.js +29 -2
- package/lib/components/ComposedModal/ComposedModal.js +71 -3
- package/lib/components/ComposedModal/ComposedModalContext.js +0 -1
- package/lib/components/ComposedModal/ModalFooter.js +66 -3
- package/lib/components/ComposedModal/ModalHeader.js +37 -2
- package/lib/components/ComposedModal/useComposedModalState.js +0 -1
- package/lib/components/ContainedList/ContainedList.js +23 -2
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +20 -2
- package/lib/components/ContainedList/index.js +2 -2
- package/lib/components/ContentSwitcher/ContentSwitcher.js +27 -2
- package/lib/components/ContextMenu/useContextMenu.js +0 -1
- package/lib/components/Copy/Copy.js +32 -3
- package/lib/components/CopyButton/CopyButton.js +29 -3
- package/lib/components/DataTable/DataTable.js +59 -0
- package/lib/components/DataTable/Table.js +29 -2
- package/lib/components/DataTable/TableBatchAction.js +10 -0
- package/lib/components/DataTable/TableBatchActions.js +26 -2
- package/lib/components/DataTable/TableBody.js +3 -0
- package/lib/components/DataTable/TableCell.js +17 -2
- package/lib/components/DataTable/TableContainer.js +20 -2
- package/lib/components/DataTable/TableContext.js +0 -1
- package/lib/components/DataTable/TableDecoratorRow.js +8 -2
- package/lib/components/DataTable/TableExpandHeader.js +33 -2
- package/lib/components/DataTable/TableExpandRow.js +31 -2
- package/lib/components/DataTable/TableExpandedRow.js +11 -2
- package/lib/components/DataTable/TableHeader.js +37 -2
- package/lib/components/DataTable/TableRow.js +23 -2
- package/lib/components/DataTable/TableSelectAll.js +30 -2
- package/lib/components/DataTable/TableSelectRow.js +33 -2
- package/lib/components/DataTable/TableSlugRow.js +8 -2
- package/lib/components/DataTable/TableToolbar.js +17 -2
- package/lib/components/DataTable/TableToolbarMenu.js +17 -2
- package/lib/components/DataTable/TableToolbarSearch.js +61 -3
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +26 -2
- package/lib/components/DatePicker/DatePicker.Skeleton.js +14 -2
- package/lib/components/DatePicker/DatePicker.js +90 -2
- package/lib/components/DatePickerInput/DatePickerInput.js +82 -3
- package/lib/components/Dialog/Dialog.js +133 -6
- package/lib/components/Dropdown/Dropdown.Skeleton.js +11 -2
- package/lib/components/Dropdown/Dropdown.js +111 -2
- package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +0 -1
- package/lib/components/ExpandableSearch/ExpandableSearch.js +2 -2
- package/lib/components/FeatureFlags/index.js +3 -0
- package/lib/components/FileUploader/FileUploader.Skeleton.js +7 -3
- package/lib/components/FileUploader/FileUploader.js +59 -2
- package/lib/components/FileUploader/FileUploaderButton.js +50 -3
- package/lib/components/FileUploader/FileUploaderDropContainer.js +45 -3
- package/lib/components/FileUploader/FileUploaderItem.js +32 -3
- package/lib/components/FileUploader/Filename.js +18 -0
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +7 -3
- package/lib/components/FluidComboBox/FluidComboBox.js +63 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +8 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.js +23 -2
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +7 -3
- package/lib/components/FluidDropdown/FluidDropdown.js +67 -2
- package/lib/components/FluidForm/FluidForm.js +8 -2
- package/lib/components/FluidForm/FormContext.js +0 -1
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +7 -3
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +130 -2
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +7 -3
- package/lib/components/FluidNumberInput/FluidNumberInput.js +97 -2
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +7 -3
- package/lib/components/FluidSearch/FluidSearch.js +47 -2
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +7 -3
- package/lib/components/FluidSelect/FluidSelect.js +40 -2
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +7 -3
- package/lib/components/FluidTextArea/FluidTextArea.js +69 -2
- package/lib/components/FluidTextInput/FluidPasswordInput.js +60 -2
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +7 -3
- package/lib/components/FluidTextInput/FluidTextInput.js +56 -2
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +8 -2
- package/lib/components/FluidTimePicker/FluidTimePicker.js +30 -2
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +26 -0
- package/lib/components/Form/Form.js +8 -2
- package/lib/components/FormGroup/FormGroup.js +27 -2
- package/lib/components/FormItem/FormItem.js +8 -2
- package/lib/components/FormLabel/FormLabel.js +11 -2
- package/lib/components/Grid/CSSGrid.js +45 -2
- package/lib/components/Grid/Column.js +88 -2
- package/lib/components/Grid/ColumnHang.js +11 -2
- package/lib/components/Grid/FlexGrid.js +26 -2
- package/lib/components/Grid/Grid.js +27 -0
- package/lib/components/Grid/GridContext.js +10 -0
- package/lib/components/Grid/Row.js +19 -2
- package/lib/components/Heading/index.js +19 -0
- package/lib/components/Icon/Icon.Skeleton.js +7 -3
- package/lib/components/IconButton/index.js +70 -2
- package/lib/components/IconIndicator/index.js +14 -2
- package/lib/components/IdPrefix/index.js +3 -0
- package/lib/components/InlineCheckbox/InlineCheckbox.js +34 -0
- package/lib/components/InlineLoading/InlineLoading.js +21 -2
- package/lib/components/Layer/index.js +19 -2
- package/lib/components/Layout/index.js +36 -2
- 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 +30 -2
- package/lib/components/ListBox/ListBox.js +43 -2
- package/lib/components/ListBox/ListBoxField.js +17 -0
- package/lib/components/ListBox/ListBoxMenu.js +6 -0
- package/lib/components/ListBox/ListBoxMenuIcon.js +9 -2
- package/lib/components/ListBox/ListBoxMenuItem.js +18 -2
- package/lib/components/ListBox/ListBoxSelection.d.ts +1 -1
- package/lib/components/ListBox/ListBoxSelection.js +34 -11
- package/lib/components/ListBox/next/ListBoxSelection.d.ts +1 -1
- package/lib/components/ListBox/next/ListBoxSelection.js +43 -8
- package/lib/components/ListBox/next/ListBoxTrigger.js +9 -2
- package/lib/components/ListItem/ListItem.js +8 -2
- package/lib/components/Loading/Loading.js +20 -2
- package/lib/components/Menu/Menu.js +54 -2
- package/lib/components/Menu/MenuContext.js +0 -1
- package/lib/components/Menu/MenuItem.js +79 -3
- package/lib/components/MenuButton/index.js +35 -2
- package/lib/components/Modal/Modal.js +119 -5
- package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.js +130 -2
- package/lib/components/MultiSelect/MultiSelect.js +151 -3
- package/lib/components/MultiSelect/MultiSelectPropTypes.js +25 -0
- package/lib/components/Notification/Notification.js +211 -4
- package/lib/components/NumberInput/NumberInput.Skeleton.js +11 -2
- package/lib/components/NumberInput/NumberInput.js +140 -2
- package/lib/components/OrderedList/OrderedList.js +17 -2
- package/lib/components/OverflowMenu/OverflowMenu.js +79 -3
- package/lib/components/OverflowMenu/next/index.js +32 -2
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +39 -3
- package/lib/components/PageHeader/PageHeader.js +50 -2
- package/lib/components/Pagination/Pagination.Skeleton.js +7 -3
- package/lib/components/Pagination/Pagination.d.ts +8 -0
- package/lib/components/Pagination/Pagination.js +87 -5
- package/lib/components/Pagination/experimental/PageSelector.js +10 -2
- package/lib/components/Pagination/experimental/Pagination.js +56 -2
- package/lib/components/PaginationNav/PaginationNav.js +82 -2
- package/lib/components/Popover/index.js +60 -2
- package/lib/components/ProgressBar/ProgressBar.js +29 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +8 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.js +60 -2
- package/lib/components/RadioButton/RadioButton.Skeleton.js +7 -3
- package/lib/components/RadioButton/RadioButton.js +65 -2
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +61 -2
- package/lib/components/RadioTile/RadioTile.js +48 -3
- package/lib/components/Search/Search.Skeleton.js +11 -2
- package/lib/components/Search/Search.js +69 -4
- package/lib/components/Select/Select.Skeleton.js +8 -2
- package/lib/components/Select/Select.js +84 -21
- package/lib/components/SelectItem/SelectItem.js +17 -2
- package/lib/components/SelectItemGroup/SelectItemGroup.js +14 -2
- package/lib/components/ShapeIndicator/index.js +14 -2
- package/lib/components/SkeletonIcon/SkeletonIcon.js +7 -3
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +7 -3
- package/lib/components/SkeletonText/SkeletonText.js +17 -2
- package/lib/components/Slider/Slider.Skeleton.js +17 -2
- package/lib/components/Slider/Slider.js +106 -2
- package/lib/components/Stack/Stack.js +22 -2
- package/lib/components/StructuredList/StructuredList.Skeleton.js +8 -2
- package/lib/components/StructuredList/StructuredList.js +99 -2
- package/lib/components/Switch/IconSwitch.js +50 -3
- package/lib/components/Switch/Switch.js +33 -3
- package/lib/components/TabContent/TabContent.js +11 -2
- package/lib/components/Tabs/Tabs.Skeleton.js +8 -2
- package/lib/components/Tabs/Tabs.js +176 -3
- package/lib/components/Tabs/usePressable.js +0 -1
- package/lib/components/Tag/DismissibleTag.js +45 -2
- package/lib/components/Tag/OperationalTag.js +24 -2
- package/lib/components/Tag/SelectableTag.js +33 -2
- package/lib/components/Tag/Tag.Skeleton.js +9 -2
- package/lib/components/Tag/Tag.js +43 -2
- 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 +8 -2
- package/lib/components/TextArea/TextArea.js +83 -3
- package/lib/components/TextInput/ControlledPasswordInput.js +67 -3
- package/lib/components/TextInput/PasswordInput.js +85 -2
- package/lib/components/TextInput/TextInput.Skeleton.js +11 -2
- package/lib/components/TextInput/TextInput.js +78 -2
- package/lib/components/Theme/index.js +23 -2
- package/lib/components/Tile/Tile.js +159 -4
- package/lib/components/TileGroup/TileGroup.js +29 -1
- package/lib/components/TimePicker/TimePicker.js +69 -2
- package/lib/components/TimePickerSelect/TimePickerSelect.js +17 -2
- package/lib/components/Toggle/Toggle.Skeleton.js +2 -2
- package/lib/components/Toggle/Toggle.js +48 -2
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +13 -2
- package/lib/components/Toggletip/index.js +40 -2
- package/lib/components/Tooltip/DefinitionTooltip.js +38 -2
- package/lib/components/Tooltip/Tooltip.js +48 -2
- package/lib/components/TreeView/TreeContext.js +0 -1
- package/lib/components/TreeView/TreeNode.js +66 -2
- package/lib/components/TreeView/TreeView.js +34 -2
- package/lib/components/UIShell/Content.js +11 -2
- package/lib/components/UIShell/Header.js +11 -2
- package/lib/components/UIShell/HeaderContainer.js +9 -0
- package/lib/components/UIShell/HeaderGlobalAction.js +30 -2
- package/lib/components/UIShell/HeaderMenu.js +39 -2
- package/lib/components/UIShell/HeaderMenuButton.js +19 -2
- package/lib/components/UIShell/HeaderMenuItem.js +27 -2
- package/lib/components/UIShell/HeaderName.js +20 -2
- package/lib/components/UIShell/HeaderNavigation.js +12 -2
- package/lib/components/UIShell/HeaderPanel.js +22 -3
- package/lib/components/UIShell/HeaderSideNavItems.js +13 -2
- package/lib/components/UIShell/Link.js +14 -0
- package/lib/components/UIShell/SideNav.js +55 -2
- package/lib/components/UIShell/SideNavDetails.js +12 -2
- package/lib/components/UIShell/SideNavDivider.js +7 -3
- package/lib/components/UIShell/SideNavFooter.js +13 -2
- package/lib/components/UIShell/SideNavHeader.js +15 -2
- package/lib/components/UIShell/SideNavIcon.js +12 -2
- package/lib/components/UIShell/SideNavItem.js +12 -2
- package/lib/components/UIShell/SideNavItems.js +13 -2
- package/lib/components/UIShell/SideNavLink.js +24 -2
- package/lib/components/UIShell/SideNavLinkText.js +8 -2
- package/lib/components/UIShell/SideNavMenu.js +33 -2
- package/lib/components/UIShell/SideNavMenuItem.js +19 -2
- package/lib/components/UIShell/SideNavSwitcher.js +18 -2
- package/lib/components/UIShell/SkipToContent.js +13 -2
- package/lib/components/UIShell/Switcher.js +14 -2
- package/lib/components/UIShell/SwitcherDivider.js +7 -3
- package/lib/components/UIShell/SwitcherItem.js +32 -2
- package/lib/components/UnorderedList/UnorderedList.js +14 -2
- package/lib/feature-flags.js +0 -1
- package/lib/index.js +241 -242
- package/lib/internal/FloatingMenu.js +1 -1
- 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/wrapFocus.js +0 -1
- package/lib/tools/wrapComponent.js +2 -2
- package/package.json +9 -9
- package/telemetry.yml +12 -0
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
10
10
|
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
11
|
-
import React, { forwardRef } from "react";
|
|
12
11
|
import classNames from "classnames";
|
|
12
|
+
import React, { forwardRef } from "react";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/TimePicker/TimePicker.tsx
|
|
@@ -130,30 +130,97 @@ const TimePicker = forwardRef((props, ref) => {
|
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
TimePicker.propTypes = {
|
|
133
|
+
/**
|
|
134
|
+
* Pass in the children that will be rendered next to the form control
|
|
135
|
+
*/
|
|
133
136
|
children: PropTypes.node,
|
|
137
|
+
/**
|
|
138
|
+
* Specify an optional className to be applied to the container node
|
|
139
|
+
*/
|
|
134
140
|
className: PropTypes.string,
|
|
141
|
+
/**
|
|
142
|
+
* Specify whether the `<input>` should be disabled
|
|
143
|
+
*/
|
|
135
144
|
disabled: PropTypes.bool,
|
|
145
|
+
/**
|
|
146
|
+
* Specify whether you want the underlying label to be visually hidden
|
|
147
|
+
*/
|
|
136
148
|
hideLabel: PropTypes.bool,
|
|
149
|
+
/**
|
|
150
|
+
* Specify a custom `id` for the `<input>`
|
|
151
|
+
*/
|
|
137
152
|
id: PropTypes.string.isRequired,
|
|
153
|
+
/**
|
|
154
|
+
* Specify whether the control is currently invalid
|
|
155
|
+
*/
|
|
138
156
|
invalid: PropTypes.bool,
|
|
157
|
+
/**
|
|
158
|
+
* Provide the text that is displayed when the control is in an invalid state
|
|
159
|
+
*/
|
|
139
160
|
invalidText: PropTypes.node,
|
|
161
|
+
/**
|
|
162
|
+
* Provide the text that will be read by a screen reader when visiting this
|
|
163
|
+
* control
|
|
164
|
+
*/
|
|
140
165
|
labelText: PropTypes.node,
|
|
166
|
+
/**
|
|
167
|
+
* The `light` prop for `TimePicker` has been deprecated. It will be removed in v12. Use the `Layer` component instead.
|
|
168
|
+
*/
|
|
141
169
|
light: deprecate(PropTypes.bool, "The `light` prop for `TimePicker` is no longer needed and has been deprecated. It will be removed in the next major release. Use the `Layer` component instead."),
|
|
170
|
+
/**
|
|
171
|
+
* Specify the maximum length of the time string in `<input>`
|
|
172
|
+
*/
|
|
142
173
|
maxLength: PropTypes.number,
|
|
174
|
+
/**
|
|
175
|
+
* Optionally provide an `onBlur` handler that is called whenever the
|
|
176
|
+
* `<input>` loses focus
|
|
177
|
+
*/
|
|
143
178
|
onBlur: PropTypes.func,
|
|
179
|
+
/**
|
|
180
|
+
* Optionally provide an `onChange` handler that is called whenever `<input>`
|
|
181
|
+
* is updated
|
|
182
|
+
*/
|
|
144
183
|
onChange: PropTypes.func,
|
|
184
|
+
/**
|
|
185
|
+
* Optionally provide an `onClick` handler that is called whenever the
|
|
186
|
+
* `<input>` is clicked
|
|
187
|
+
*/
|
|
145
188
|
onClick: PropTypes.func,
|
|
189
|
+
/**
|
|
190
|
+
* Specify the regular expression working as the pattern of the time string in `<input>`
|
|
191
|
+
*/
|
|
146
192
|
pattern: PropTypes.string,
|
|
193
|
+
/**
|
|
194
|
+
* Specify the placeholder attribute for the `<input>`
|
|
195
|
+
*/
|
|
147
196
|
placeholder: PropTypes.string,
|
|
197
|
+
/**
|
|
198
|
+
* Specify whether the TimePicker should be read-only
|
|
199
|
+
*/
|
|
148
200
|
readOnly: PropTypes.bool,
|
|
201
|
+
/**
|
|
202
|
+
* Specify the size of the Time Picker.
|
|
203
|
+
*/
|
|
149
204
|
size: PropTypes.oneOf([
|
|
150
205
|
"sm",
|
|
151
206
|
"md",
|
|
152
207
|
"lg"
|
|
153
208
|
]),
|
|
209
|
+
/**
|
|
210
|
+
* Specify the type of the `<input>`
|
|
211
|
+
*/
|
|
154
212
|
type: PropTypes.string,
|
|
213
|
+
/**
|
|
214
|
+
* Specify the value of the `<input>`
|
|
215
|
+
*/
|
|
155
216
|
value: PropTypes.string,
|
|
217
|
+
/**
|
|
218
|
+
* Specify a warning message
|
|
219
|
+
*/
|
|
156
220
|
warning: PropTypes.bool,
|
|
221
|
+
/**
|
|
222
|
+
* Provide the text that is displayed when the control is in an warning state
|
|
223
|
+
*/
|
|
157
224
|
warningText: PropTypes.node
|
|
158
225
|
};
|
|
159
226
|
//#endregion
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
9
|
import classNames from "classnames";
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { ChevronDown } from "@carbon/icons-react";
|
|
@@ -42,10 +42,25 @@ const TimePickerSelect = forwardRef((props, ref) => {
|
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
TimePickerSelect.propTypes = {
|
|
45
|
+
/**
|
|
46
|
+
* Provide the contents of your TimePickerSelect
|
|
47
|
+
*/
|
|
45
48
|
children: PropTypes.node,
|
|
49
|
+
/**
|
|
50
|
+
* Specify an optional className to be applied to the node containing the label and the select box
|
|
51
|
+
*/
|
|
46
52
|
className: PropTypes.string,
|
|
53
|
+
/**
|
|
54
|
+
* Optionally provide the default value of the `<select>`
|
|
55
|
+
*/
|
|
47
56
|
defaultValue: PropTypes.any,
|
|
57
|
+
/**
|
|
58
|
+
* Specify whether the control is disabled
|
|
59
|
+
*/
|
|
48
60
|
disabled: PropTypes.bool,
|
|
61
|
+
/**
|
|
62
|
+
* Specify a custom `id` for the `<select>`
|
|
63
|
+
*/
|
|
49
64
|
id: PropTypes.string.isRequired
|
|
50
65
|
};
|
|
51
66
|
//#endregion
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
-
import "react";
|
|
10
9
|
import classNames from "classnames";
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Toggle/Toggle.Skeleton.tsx
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { Text } from "../Text/Text.js";
|
|
10
10
|
import { useControllableState } from "../../internal/useControllableState.js";
|
|
11
|
-
import { useRef } from "react";
|
|
12
11
|
import classNames from "classnames";
|
|
12
|
+
import { useRef } from "react";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/Toggle/Toggle.tsx
|
|
@@ -92,19 +92,65 @@ function Toggle({ "aria-labelledby": ariaLabelledby, className, defaultToggled =
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
Toggle.propTypes = {
|
|
95
|
+
/**
|
|
96
|
+
* Specify another element's id to be used as the label for this toggle
|
|
97
|
+
*/
|
|
95
98
|
"aria-labelledby": PropTypes.string,
|
|
99
|
+
/**
|
|
100
|
+
* Specify a custom className to apply to the form-item node
|
|
101
|
+
*/
|
|
96
102
|
className: PropTypes.string,
|
|
103
|
+
/**
|
|
104
|
+
* Specify whether the toggle should be on by default
|
|
105
|
+
*/
|
|
97
106
|
defaultToggled: PropTypes.bool,
|
|
107
|
+
/**
|
|
108
|
+
* Whether this control should be disabled
|
|
109
|
+
*/
|
|
98
110
|
disabled: PropTypes.bool,
|
|
111
|
+
/**
|
|
112
|
+
* If true, the side labels (props.labelA and props.labelB) will be replaced by
|
|
113
|
+
* props.labelText (if passed), so that the toggle doesn't render a top label.
|
|
114
|
+
*/
|
|
99
115
|
hideLabel: PropTypes.bool,
|
|
116
|
+
/**
|
|
117
|
+
* Provide an id that unique represents the underlying `<button>`
|
|
118
|
+
*/
|
|
100
119
|
id: PropTypes.string.isRequired,
|
|
120
|
+
/**
|
|
121
|
+
* Specify the label for the "off" position
|
|
122
|
+
*/
|
|
101
123
|
labelA: PropTypes.node,
|
|
124
|
+
/**
|
|
125
|
+
* Specify the label for the "on" position
|
|
126
|
+
*/
|
|
102
127
|
labelB: PropTypes.node,
|
|
128
|
+
/**
|
|
129
|
+
* Provide the text that will be read by a screen reader when visiting this
|
|
130
|
+
* control. This should be provided unless 'aria-labelledby' is set instead
|
|
131
|
+
* or you use an external <label> element with its "for" attribute set to the
|
|
132
|
+
* toggle's id.
|
|
133
|
+
*/
|
|
103
134
|
labelText: PropTypes.string,
|
|
135
|
+
/**
|
|
136
|
+
* Provide an event listener that is called when the control is clicked
|
|
137
|
+
*/
|
|
104
138
|
onClick: PropTypes.func,
|
|
139
|
+
/**
|
|
140
|
+
* Provide an event listener that is called when the control is toggled
|
|
141
|
+
*/
|
|
105
142
|
onToggle: PropTypes.func,
|
|
143
|
+
/**
|
|
144
|
+
* Whether the toggle should be read-only
|
|
145
|
+
*/
|
|
106
146
|
readOnly: PropTypes.bool,
|
|
147
|
+
/**
|
|
148
|
+
* Specify the size of the Toggle. Currently only supports 'sm' or 'md' (default)
|
|
149
|
+
*/
|
|
107
150
|
size: PropTypes.oneOf(["sm", "md"]),
|
|
151
|
+
/**
|
|
152
|
+
* Specify whether the control is toggled
|
|
153
|
+
*/
|
|
108
154
|
toggled: PropTypes.bool
|
|
109
155
|
};
|
|
110
156
|
//#endregion
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { PrefixContext } from "../../internal/usePrefix.js";
|
|
9
|
-
import { useContext } from "react";
|
|
10
9
|
import classNames from "classnames";
|
|
10
|
+
import { useContext } from "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/ToggleSmall/ToggleSmall.Skeleton.tsx
|
|
@@ -47,8 +47,19 @@ const ToggleSmallSkeleton = ({ id, labelText, className, ...rest }) => {
|
|
|
47
47
|
};
|
|
48
48
|
ToggleSmallSkeleton.propTypes = {
|
|
49
49
|
["aria-label"]: PropTypes.string.isRequired,
|
|
50
|
+
/**
|
|
51
|
+
* Specify an optional className to add to the form item wrapper.
|
|
52
|
+
*/
|
|
50
53
|
className: PropTypes.string,
|
|
54
|
+
/**
|
|
55
|
+
* Provide an id that unique represents the underlying `<input>`
|
|
56
|
+
*/
|
|
51
57
|
id: PropTypes.string,
|
|
58
|
+
/**
|
|
59
|
+
* Provide the text that will be read by a screen reader when visiting this
|
|
60
|
+
* control. `aria-label` is always required but will be `null` if `labelText`
|
|
61
|
+
* is also provided.
|
|
62
|
+
*/
|
|
52
63
|
labelText: PropTypes.string
|
|
53
64
|
};
|
|
54
65
|
//#endregion
|
|
@@ -11,8 +11,8 @@ import { match } from "../../internal/keyboard/match.js";
|
|
|
11
11
|
import { useId } from "../../internal/useId.js";
|
|
12
12
|
import { useWindowEvent } from "../../internal/useEvent.js";
|
|
13
13
|
import { Popover, PopoverContent } from "../Popover/index.js";
|
|
14
|
-
import React, { forwardRef, useContext, useEffect, useRef, useState } from "react";
|
|
15
14
|
import classNames from "classnames";
|
|
15
|
+
import React, { forwardRef, useContext, useEffect, useRef, useState } from "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
//#region src/components/Toggletip/index.tsx
|
|
@@ -33,8 +33,19 @@ function ToggletipLabel({ as: BaseComponent = "span", children, className: custo
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
ToggletipLabel.propTypes = {
|
|
36
|
+
/**
|
|
37
|
+
* Provide a custom element or component to render the top-level node for the
|
|
38
|
+
* component.
|
|
39
|
+
*/
|
|
36
40
|
as: PropTypes.elementType,
|
|
41
|
+
/**
|
|
42
|
+
* Custom children to be rendered as the content of the label
|
|
43
|
+
*/
|
|
37
44
|
children: PropTypes.node,
|
|
45
|
+
/**
|
|
46
|
+
* Provide a custom class name to be added to the outermost node in the
|
|
47
|
+
* component
|
|
48
|
+
*/
|
|
38
49
|
className: PropTypes.string
|
|
39
50
|
};
|
|
40
51
|
const ToggletipContext = React.createContext(void 0);
|
|
@@ -126,6 +137,9 @@ function Toggletip({ align, as, autoAlign, className: customClassName, children,
|
|
|
126
137
|
const { open, ...popoverNonOpenPropTypes } = Popover.propTypes ?? {};
|
|
127
138
|
Toggletip.propTypes = {
|
|
128
139
|
...popoverNonOpenPropTypes,
|
|
140
|
+
/**
|
|
141
|
+
* Specify if the toggletip should be open by default
|
|
142
|
+
*/
|
|
129
143
|
defaultOpen: PropTypes.bool
|
|
130
144
|
};
|
|
131
145
|
/**
|
|
@@ -153,8 +167,18 @@ const ToggletipButton = forwardRef(function ToggletipButton({ children, classNam
|
|
|
153
167
|
});
|
|
154
168
|
});
|
|
155
169
|
ToggletipButton.propTypes = {
|
|
170
|
+
/**
|
|
171
|
+
* Custom children to be rendered as the content of the label
|
|
172
|
+
*/
|
|
156
173
|
children: PropTypes.node,
|
|
174
|
+
/**
|
|
175
|
+
* Provide a custom class name to be added to the outermost node in the
|
|
176
|
+
* component
|
|
177
|
+
*/
|
|
157
178
|
className: PropTypes.string,
|
|
179
|
+
/**
|
|
180
|
+
* Provide an accessible label for this button
|
|
181
|
+
*/
|
|
158
182
|
label: PropTypes.string
|
|
159
183
|
};
|
|
160
184
|
ToggletipButton.displayName = "ToggletipButton";
|
|
@@ -178,7 +202,14 @@ const ToggletipContent = forwardRef((props, ref) => {
|
|
|
178
202
|
});
|
|
179
203
|
});
|
|
180
204
|
ToggletipContent.propTypes = {
|
|
205
|
+
/**
|
|
206
|
+
* Custom children to be rendered as the content of the label
|
|
207
|
+
*/
|
|
181
208
|
children: PropTypes.node,
|
|
209
|
+
/**
|
|
210
|
+
* Provide a custom class name to be added to the outermost node in the
|
|
211
|
+
* component
|
|
212
|
+
*/
|
|
182
213
|
className: PropTypes.string
|
|
183
214
|
};
|
|
184
215
|
ToggletipContent.displayName = "ToggletipContent";
|
|
@@ -193,7 +224,14 @@ function ToggletipActions({ children, className: customClassName }) {
|
|
|
193
224
|
});
|
|
194
225
|
}
|
|
195
226
|
ToggletipActions.propTypes = {
|
|
227
|
+
/**
|
|
228
|
+
* Custom children to be rendered as the content of the label
|
|
229
|
+
*/
|
|
196
230
|
children: PropTypes.node,
|
|
231
|
+
/**
|
|
232
|
+
* Provide a custom class name to be added to the outermost node in the
|
|
233
|
+
* component
|
|
234
|
+
*/
|
|
197
235
|
className: PropTypes.string
|
|
198
236
|
};
|
|
199
237
|
//#endregion
|
|
@@ -11,8 +11,8 @@ import { match } from "../../internal/keyboard/match.js";
|
|
|
11
11
|
import { useFallbackId } from "../../internal/useId.js";
|
|
12
12
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
13
13
|
import { Popover, PopoverContent } from "../Popover/index.js";
|
|
14
|
-
import { useState } from "react";
|
|
15
14
|
import classNames from "classnames";
|
|
15
|
+
import { useState } from "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
//#region src/components/Tooltip/DefinitionTooltip.tsx
|
|
@@ -71,6 +71,9 @@ const DefinitionTooltip = ({ align = "bottom", autoAlign, className, children, d
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
DefinitionTooltip.propTypes = {
|
|
74
|
+
/**
|
|
75
|
+
* Specify how the trigger should align with the tooltip
|
|
76
|
+
*/
|
|
74
77
|
align: PropTypes.oneOf([
|
|
75
78
|
"top",
|
|
76
79
|
"top-left",
|
|
@@ -93,14 +96,47 @@ DefinitionTooltip.propTypes = {
|
|
|
93
96
|
"right-end",
|
|
94
97
|
"right-start"
|
|
95
98
|
]),
|
|
99
|
+
/**
|
|
100
|
+
* Will auto-align the popover. This prop is currently experimental and is
|
|
101
|
+
* subject to future changes. Requires React v17+
|
|
102
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
103
|
+
*/
|
|
96
104
|
autoAlign: PropTypes.bool,
|
|
105
|
+
/**
|
|
106
|
+
* The `children` prop will be used as the value that is being defined
|
|
107
|
+
*/
|
|
97
108
|
children: PropTypes.node.isRequired,
|
|
109
|
+
/**
|
|
110
|
+
* Specify an optional className to be applied to the container node
|
|
111
|
+
*/
|
|
98
112
|
className: PropTypes.string,
|
|
113
|
+
/**
|
|
114
|
+
* Specify whether the tooltip should be open when it first renders
|
|
115
|
+
*/
|
|
99
116
|
defaultOpen: PropTypes.bool,
|
|
117
|
+
/**
|
|
118
|
+
* The `definition` prop is used as the content inside of the tooltip that
|
|
119
|
+
* appears when a user interacts with the element rendered by the `children`
|
|
120
|
+
* prop
|
|
121
|
+
*/
|
|
100
122
|
definition: PropTypes.node.isRequired,
|
|
123
|
+
/**
|
|
124
|
+
* Provide a value that will be assigned as the id of the tooltip
|
|
125
|
+
*/
|
|
101
126
|
id: PropTypes.string,
|
|
127
|
+
/**
|
|
128
|
+
* Specifies whether or not the `DefinitionTooltip` should open on hover or not
|
|
129
|
+
*/
|
|
102
130
|
openOnHover: PropTypes.bool,
|
|
131
|
+
/**
|
|
132
|
+
* [Deprecated in v11] Please use the `definition` prop instead.
|
|
133
|
+
*
|
|
134
|
+
* Provide the text that will be displayed in the tooltip when it is rendered.
|
|
135
|
+
*/
|
|
103
136
|
tooltipText: deprecate(PropTypes.node, "The tooltipText prop has been deprecated. Please use the `definition` prop instead."),
|
|
137
|
+
/**
|
|
138
|
+
* The CSS class name of the trigger element
|
|
139
|
+
*/
|
|
104
140
|
triggerClassName: PropTypes.string
|
|
105
141
|
};
|
|
106
142
|
//#endregion
|
|
@@ -13,8 +13,8 @@ import { useId } from "../../internal/useId.js";
|
|
|
13
13
|
import { Popover, PopoverContent } from "../Popover/index.js";
|
|
14
14
|
import { useDelayedState } from "../../internal/useDelayedState.js";
|
|
15
15
|
import { useNoInteractiveChildren } from "../../internal/useNoInteractiveChildren.js";
|
|
16
|
-
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
17
16
|
import classNames from "classnames";
|
|
17
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
@@ -159,6 +159,9 @@ const Tooltip = React.forwardRef(({ as, align = "top", className: customClassNam
|
|
|
159
159
|
});
|
|
160
160
|
});
|
|
161
161
|
Tooltip.propTypes = {
|
|
162
|
+
/**
|
|
163
|
+
* Specify how the trigger should align with the tooltip
|
|
164
|
+
*/
|
|
162
165
|
align: PropTypes.oneOf([
|
|
163
166
|
"top",
|
|
164
167
|
"top-left",
|
|
@@ -181,15 +184,58 @@ Tooltip.propTypes = {
|
|
|
181
184
|
"right-end",
|
|
182
185
|
"right-start"
|
|
183
186
|
]),
|
|
187
|
+
/**
|
|
188
|
+
* Pass in the child to which the tooltip will be applied
|
|
189
|
+
*/
|
|
184
190
|
children: PropTypes.node,
|
|
191
|
+
/**
|
|
192
|
+
* Specify an optional className to be applied to the container node
|
|
193
|
+
*/
|
|
185
194
|
className: PropTypes.string,
|
|
195
|
+
/**
|
|
196
|
+
* Determines wether the tooltip should close when inner content is activated (click, Enter or Space)
|
|
197
|
+
*/
|
|
186
198
|
closeOnActivation: PropTypes.bool,
|
|
199
|
+
/**
|
|
200
|
+
* Specify whether the tooltip should be open when it first renders
|
|
201
|
+
*/
|
|
187
202
|
defaultOpen: PropTypes.bool,
|
|
203
|
+
/**
|
|
204
|
+
* Provide the description to be rendered inside of the Tooltip. The
|
|
205
|
+
* description will use `aria-describedby` and will describe the child node
|
|
206
|
+
* in addition to the text rendered inside of the child. This means that if you
|
|
207
|
+
* have text in the child node, that it will be announced alongside the
|
|
208
|
+
* description to the screen reader.
|
|
209
|
+
*
|
|
210
|
+
* Note: if label and description are both provided, label will be used and
|
|
211
|
+
* description will not be used
|
|
212
|
+
*/
|
|
188
213
|
description: PropTypes.node,
|
|
214
|
+
/**
|
|
215
|
+
* Specify whether a drop shadow should be rendered
|
|
216
|
+
*/
|
|
189
217
|
dropShadow: PropTypes.bool,
|
|
218
|
+
/**
|
|
219
|
+
* Specify the duration in milliseconds to delay before displaying the tooltip
|
|
220
|
+
*/
|
|
190
221
|
enterDelayMs: PropTypes.number,
|
|
222
|
+
/**
|
|
223
|
+
* Render the component using the high-contrast theme
|
|
224
|
+
*/
|
|
191
225
|
highContrast: PropTypes.bool,
|
|
226
|
+
/**
|
|
227
|
+
* Provide the label to be rendered inside of the Tooltip. The label will use
|
|
228
|
+
* `aria-labelledby` and will fully describe the child node that is provided.
|
|
229
|
+
* This means that if you have text in the child node, that it will not be
|
|
230
|
+
* announced to the screen reader.
|
|
231
|
+
*
|
|
232
|
+
* Note: if label and description are both provided, description will not be
|
|
233
|
+
* used
|
|
234
|
+
*/
|
|
192
235
|
label: PropTypes.node,
|
|
236
|
+
/**
|
|
237
|
+
* Specify the duration in milliseconds to delay before hiding the tooltip
|
|
238
|
+
*/
|
|
193
239
|
leaveDelayMs: PropTypes.number
|
|
194
240
|
};
|
|
195
241
|
//#endregion
|
|
@@ -14,8 +14,8 @@ import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
|
14
14
|
import { IconButton } from "../IconButton/index.js";
|
|
15
15
|
import { useControllableState } from "../../internal/useControllableState.js";
|
|
16
16
|
import { DepthContext, TreeContext } from "./TreeContext.js";
|
|
17
|
-
import React, { isValidElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
18
17
|
import classNames from "classnames";
|
|
18
|
+
import React, { isValidElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { CaretDown } from "@carbon/icons-react";
|
|
@@ -336,23 +336,81 @@ const TreeNode = React.forwardRef(({ children, className, disabled, id: nodeId,
|
|
|
336
336
|
}) });
|
|
337
337
|
});
|
|
338
338
|
TreeNode.propTypes = {
|
|
339
|
+
/**
|
|
340
|
+
* **Note:** this is controlled by the parent TreeView component, do not set manually.
|
|
341
|
+
* The ID of the active node in the tree
|
|
342
|
+
*/
|
|
339
343
|
active: deprecate(PropTypes.oneOfType([PropTypes.string, PropTypes.number]), "The `active` prop for `TreeNode` is no longer needed and has been deprecated. It will be removed in the next major release."),
|
|
344
|
+
/**
|
|
345
|
+
* Specify the children of the TreeNode
|
|
346
|
+
*/
|
|
340
347
|
children: PropTypes.node,
|
|
348
|
+
/**
|
|
349
|
+
* Specify an optional className to be applied to the TreeNode
|
|
350
|
+
*/
|
|
341
351
|
className: PropTypes.string,
|
|
352
|
+
/**
|
|
353
|
+
* **[Experimental]** The default expansion state of the node.
|
|
354
|
+
* *This is only supported with the `enable-treeview-controllable` feature flag!*
|
|
355
|
+
*/
|
|
342
356
|
defaultIsExpanded: PropTypes.bool,
|
|
357
|
+
/**
|
|
358
|
+
* **Note:** this is controlled by the parent TreeView component, do not set manually.
|
|
359
|
+
* TreeNode depth to determine spacing
|
|
360
|
+
*/
|
|
343
361
|
depth: deprecate(PropTypes.number, "The `depth` prop for `TreeNode` is no longer needed and has been deprecated. It will be removed in the next major release."),
|
|
362
|
+
/**
|
|
363
|
+
* Specify if the TreeNode is disabled
|
|
364
|
+
*/
|
|
344
365
|
disabled: PropTypes.bool,
|
|
366
|
+
/**
|
|
367
|
+
* Specify the TreeNode's ID. Must be unique in the DOM and is used for props.active, props.selected and aria-owns
|
|
368
|
+
*/
|
|
345
369
|
id: PropTypes.string,
|
|
370
|
+
/**
|
|
371
|
+
* Specify if the TreeNode is expanded (only applicable to parent nodes)
|
|
372
|
+
*/
|
|
346
373
|
isExpanded: PropTypes.bool,
|
|
374
|
+
/**
|
|
375
|
+
* Rendered label for the TreeNode
|
|
376
|
+
*/
|
|
347
377
|
label: PropTypes.node,
|
|
378
|
+
/**
|
|
379
|
+
* Callback function for when the node receives or loses focus
|
|
380
|
+
*/
|
|
348
381
|
onNodeFocusEvent: deprecate(PropTypes.func, "The `onNodeFocusEvent` prop for `TreeNode` is no longer needed and has been deprecated. It will be removed in the next major release."),
|
|
382
|
+
/**
|
|
383
|
+
* Callback function for when the node is selected
|
|
384
|
+
*/
|
|
349
385
|
onSelect: PropTypes.func,
|
|
386
|
+
/**
|
|
387
|
+
* Callback function for when a parent node is expanded or collapsed
|
|
388
|
+
*/
|
|
350
389
|
onToggle: PropTypes.func,
|
|
390
|
+
/**
|
|
391
|
+
* Callback function for when any node in the tree is selected
|
|
392
|
+
*/
|
|
351
393
|
onTreeSelect: deprecate(PropTypes.func, "The `onTreeSelect` prop for `TreeNode` is no longer needed and has been deprecated. It will be removed in the next major release."),
|
|
394
|
+
/**
|
|
395
|
+
* A component used to render an icon.
|
|
396
|
+
*/
|
|
352
397
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
398
|
+
/**
|
|
399
|
+
* **Note:** this is controlled by the parent TreeView component, do not set manually.
|
|
400
|
+
* Array containing all selected node IDs in the tree
|
|
401
|
+
*/
|
|
353
402
|
selected: deprecate(PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), "The `selected` prop for `TreeNode` is no longer needed and has been deprecated. It will be removed in the next major release."),
|
|
403
|
+
/**
|
|
404
|
+
* Specify the value of the TreeNode
|
|
405
|
+
*/
|
|
354
406
|
value: PropTypes.string,
|
|
407
|
+
/**
|
|
408
|
+
* Optional: The URL the TreeNode is linking to
|
|
409
|
+
*/
|
|
355
410
|
href: PropTypes.string,
|
|
411
|
+
/**
|
|
412
|
+
* Specify how the tooltip should align when text is truncated
|
|
413
|
+
*/
|
|
356
414
|
align: PropTypes.oneOf([
|
|
357
415
|
"top",
|
|
358
416
|
"bottom",
|
|
@@ -367,6 +425,12 @@ TreeNode.propTypes = {
|
|
|
367
425
|
"right-end",
|
|
368
426
|
"right-start"
|
|
369
427
|
]),
|
|
428
|
+
/**
|
|
429
|
+
* **Experimental**: Will attempt to automatically align the floating
|
|
430
|
+
* element to avoid collisions with the viewport and being clipped by
|
|
431
|
+
* ancestor elements. Requires React v17+
|
|
432
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
433
|
+
*/
|
|
370
434
|
autoAlign: PropTypes.bool
|
|
371
435
|
};
|
|
372
436
|
TreeNode.displayName = "TreeNode";
|
|
@@ -13,8 +13,8 @@ import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
|
13
13
|
import { useControllableState } from "../../internal/useControllableState.js";
|
|
14
14
|
import { DepthContext, TreeContext } from "./TreeContext.js";
|
|
15
15
|
import TreeNode from "./TreeNode.js";
|
|
16
|
-
import { useEffect, useMemo, useRef, useState } from "react";
|
|
17
16
|
import classNames from "classnames";
|
|
17
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
//#region src/components/TreeView/TreeView.tsx
|
|
@@ -159,15 +159,47 @@ const TreeView = ({ active: prespecifiedActive, children, className, hideLabel =
|
|
|
159
159
|
})] });
|
|
160
160
|
};
|
|
161
161
|
TreeView.propTypes = {
|
|
162
|
+
/**
|
|
163
|
+
* Mark the active node in the tree, represented by its ID
|
|
164
|
+
*/
|
|
162
165
|
active: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
166
|
+
/**
|
|
167
|
+
* Specify the children of the TreeView
|
|
168
|
+
*/
|
|
163
169
|
children: PropTypes.node,
|
|
170
|
+
/**
|
|
171
|
+
* Specify an optional className to be applied to the TreeView
|
|
172
|
+
*/
|
|
164
173
|
className: PropTypes.string,
|
|
174
|
+
/**
|
|
175
|
+
* Specify whether or not the label should be hidden
|
|
176
|
+
*/
|
|
165
177
|
hideLabel: PropTypes.bool,
|
|
178
|
+
/**
|
|
179
|
+
* Provide the label text that will be read by a screen reader
|
|
180
|
+
*/
|
|
166
181
|
label: PropTypes.string.isRequired,
|
|
182
|
+
/**
|
|
183
|
+
* **[Experimental]** Specify the selection mode of the tree.
|
|
184
|
+
* If `multiselect` is `false` then only one node can be selected at a time
|
|
185
|
+
*/
|
|
167
186
|
multiselect: PropTypes.bool,
|
|
187
|
+
/**
|
|
188
|
+
* **[Experimental]** Callback function that is called when any node is activated.
|
|
189
|
+
* *This is only supported with the `enable-treeview-controllable` feature flag!*
|
|
190
|
+
*/
|
|
168
191
|
onActivate: PropTypes.func,
|
|
192
|
+
/**
|
|
193
|
+
* Callback function that is called when any node is selected
|
|
194
|
+
*/
|
|
169
195
|
onSelect: PropTypes.func,
|
|
196
|
+
/**
|
|
197
|
+
* Array representing all selected node IDs in the tree
|
|
198
|
+
*/
|
|
170
199
|
selected: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
200
|
+
/**
|
|
201
|
+
* Specify the size of the tree from a list of available sizes.
|
|
202
|
+
*/
|
|
171
203
|
size: PropTypes.oneOf(["xs", "sm"])
|
|
172
204
|
};
|
|
173
205
|
TreeView.TreeNode = TreeNode;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
-
import React from "react";
|
|
10
9
|
import classNames from "classnames";
|
|
10
|
+
import React from "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
//#region src/components/UIShell/Content.ts
|
|
13
13
|
/**
|
|
@@ -24,8 +24,17 @@ const Content = ({ className: customClassName, children, tagName = "main", ...re
|
|
|
24
24
|
}, children);
|
|
25
25
|
};
|
|
26
26
|
Content.propTypes = {
|
|
27
|
+
/**
|
|
28
|
+
* Provide children nodes to be rendered in the content container
|
|
29
|
+
*/
|
|
27
30
|
children: PropTypes.node,
|
|
31
|
+
/**
|
|
32
|
+
* Optionally provide a custom class name that is applied to the container
|
|
33
|
+
*/
|
|
28
34
|
className: PropTypes.string,
|
|
35
|
+
/**
|
|
36
|
+
* Optionally specify the tag of the content node. Defaults to `main`
|
|
37
|
+
*/
|
|
29
38
|
tagName: PropTypes.string
|
|
30
39
|
};
|
|
31
40
|
//#endregion
|