@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
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
9
|
const require_usePrefix = require("../../internal/usePrefix.js");
|
|
10
|
-
let react = require("react");
|
|
11
|
-
react = require_runtime.__toESM(react);
|
|
12
10
|
let classnames = require("classnames");
|
|
13
11
|
classnames = require_runtime.__toESM(classnames);
|
|
12
|
+
let react = require("react");
|
|
13
|
+
react = require_runtime.__toESM(react);
|
|
14
14
|
let prop_types = require("prop-types");
|
|
15
15
|
prop_types = require_runtime.__toESM(prop_types);
|
|
16
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -32,6 +32,10 @@ const CheckboxSkeleton = ({ className, ...rest }) => {
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
|
-
CheckboxSkeleton.propTypes = {
|
|
35
|
+
CheckboxSkeleton.propTypes = {
|
|
36
|
+
/**
|
|
37
|
+
* Specify an optional className to add.
|
|
38
|
+
*/
|
|
39
|
+
className: prop_types.default.string };
|
|
36
40
|
//#endregion
|
|
37
41
|
exports.default = CheckboxSkeleton;
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
|
-
const require_noopFn = require("../../internal/noopFn.js");
|
|
10
9
|
const require_usePrefix = require("../../internal/usePrefix.js");
|
|
11
10
|
const require_Text = require("../Text/Text.js");
|
|
12
11
|
const require_useId = require("../../internal/useId.js");
|
|
12
|
+
const require_noopFn = require("../../internal/noopFn.js");
|
|
13
13
|
const require_deprecate = require("../../prop-types/deprecate.js");
|
|
14
14
|
const require_utils = require("../../internal/utils.js");
|
|
15
15
|
const require_hasHelperText = require("../../internal/hasHelperText.js");
|
|
16
16
|
const require_useNormalizedInputProps = require("../../internal/useNormalizedInputProps.js");
|
|
17
17
|
const require_index = require("../AILabel/index.js");
|
|
18
|
-
let react = require("react");
|
|
19
|
-
react = require_runtime.__toESM(react);
|
|
20
18
|
let classnames = require("classnames");
|
|
21
19
|
classnames = require_runtime.__toESM(classnames);
|
|
20
|
+
let react = require("react");
|
|
21
|
+
react = require_runtime.__toESM(react);
|
|
22
22
|
let prop_types = require("prop-types");
|
|
23
23
|
prop_types = require_runtime.__toESM(prop_types);
|
|
24
24
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -116,23 +116,80 @@ const Checkbox = react.default.forwardRef(({ className, decorator, helperText, i
|
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
118
|
Checkbox.propTypes = {
|
|
119
|
+
/**
|
|
120
|
+
* Specify whether the underlying input should be checked
|
|
121
|
+
*/
|
|
119
122
|
checked: prop_types.default.bool,
|
|
123
|
+
/**
|
|
124
|
+
* Specify an optional className to be applied to the <label> node
|
|
125
|
+
*/
|
|
120
126
|
className: prop_types.default.string,
|
|
127
|
+
/**
|
|
128
|
+
* **Experimental**: Provide a decorator component to be rendered inside the `Checkbox` component
|
|
129
|
+
*/
|
|
121
130
|
decorator: prop_types.default.node,
|
|
131
|
+
/**
|
|
132
|
+
* Specify whether the underlying input should be checked by default
|
|
133
|
+
*/
|
|
122
134
|
defaultChecked: prop_types.default.bool,
|
|
135
|
+
/**
|
|
136
|
+
* Specify whether the Checkbox should be disabled
|
|
137
|
+
*/
|
|
123
138
|
disabled: prop_types.default.bool,
|
|
139
|
+
/**
|
|
140
|
+
* Provide text for the form group for additional help
|
|
141
|
+
*/
|
|
124
142
|
helperText: prop_types.default.node,
|
|
143
|
+
/**
|
|
144
|
+
* Specify whether the label should be hidden, or not
|
|
145
|
+
*/
|
|
125
146
|
hideLabel: prop_types.default.bool,
|
|
147
|
+
/**
|
|
148
|
+
* Provide an `id` to uniquely identify the Checkbox input
|
|
149
|
+
*/
|
|
126
150
|
id: prop_types.default.string.isRequired,
|
|
151
|
+
/**
|
|
152
|
+
* Specify whether the Checkbox is in an indeterminate state
|
|
153
|
+
*/
|
|
127
154
|
indeterminate: prop_types.default.bool,
|
|
155
|
+
/**
|
|
156
|
+
* Specify whether the Checkbox is currently invalid
|
|
157
|
+
*/
|
|
128
158
|
invalid: prop_types.default.bool,
|
|
159
|
+
/**
|
|
160
|
+
* Provide the text that is displayed when the Checkbox is in an invalid state
|
|
161
|
+
*/
|
|
129
162
|
invalidText: prop_types.default.node,
|
|
163
|
+
/**
|
|
164
|
+
* Provide a label to provide a description of the Checkbox input that you are
|
|
165
|
+
* exposing to the user
|
|
166
|
+
*/
|
|
130
167
|
labelText: prop_types.default.node.isRequired,
|
|
168
|
+
/**
|
|
169
|
+
* Provide an optional handler that is called when the internal state of
|
|
170
|
+
* Checkbox changes. This handler is called with event and state info.
|
|
171
|
+
* `(event, { checked, id }) => void`
|
|
172
|
+
*/
|
|
131
173
|
onChange: prop_types.default.func,
|
|
174
|
+
/**
|
|
175
|
+
* Specify whether the Checkbox is read-only
|
|
176
|
+
*/
|
|
132
177
|
readOnly: prop_types.default.bool,
|
|
178
|
+
/**
|
|
179
|
+
* **Experimental**: Provide a `Slug` component to be rendered inside the `Checkbox` component
|
|
180
|
+
*/
|
|
133
181
|
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."),
|
|
182
|
+
/**
|
|
183
|
+
* Specify a title for the <label> node for the Checkbox
|
|
184
|
+
*/
|
|
134
185
|
title: prop_types.default.string,
|
|
186
|
+
/**
|
|
187
|
+
* Specify whether the Checkbox is currently in warning state
|
|
188
|
+
*/
|
|
135
189
|
warn: prop_types.default.bool,
|
|
190
|
+
/**
|
|
191
|
+
* Provide the text that is displayed when the Checkbox is in warning state
|
|
192
|
+
*/
|
|
136
193
|
warnText: prop_types.default.node
|
|
137
194
|
};
|
|
138
195
|
Checkbox.displayName = "Checkbox";
|
|
@@ -14,10 +14,10 @@ const require_hasHelperText = require("../../internal/hasHelperText.js");
|
|
|
14
14
|
const require_useNormalizedInputProps = require("../../internal/useNormalizedInputProps.js");
|
|
15
15
|
const require_index = require("../AILabel/index.js");
|
|
16
16
|
const require_Checkbox = require("../Checkbox/Checkbox.js");
|
|
17
|
-
let react = require("react");
|
|
18
|
-
react = require_runtime.__toESM(react);
|
|
19
17
|
let classnames = require("classnames");
|
|
20
18
|
classnames = require_runtime.__toESM(classnames);
|
|
19
|
+
let react = require("react");
|
|
20
|
+
react = require_runtime.__toESM(react);
|
|
21
21
|
let prop_types = require("prop-types");
|
|
22
22
|
prop_types = require_runtime.__toESM(prop_types);
|
|
23
23
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -109,18 +109,58 @@ const CheckboxGroup = ({ children, className, decorator, helperText, invalid, in
|
|
|
109
109
|
});
|
|
110
110
|
};
|
|
111
111
|
CheckboxGroup.propTypes = {
|
|
112
|
+
/**
|
|
113
|
+
* Provide the children form elements to be rendered inside of the <fieldset>
|
|
114
|
+
*/
|
|
112
115
|
children: prop_types.default.node,
|
|
116
|
+
/**
|
|
117
|
+
* Provide a custom className to be applied to the containing <fieldset> node
|
|
118
|
+
*/
|
|
113
119
|
className: prop_types.default.string,
|
|
120
|
+
/**
|
|
121
|
+
* **Experimental**: Provide a decorator component to be rendered inside the `CheckboxGroup` component
|
|
122
|
+
*/
|
|
114
123
|
decorator: prop_types.default.node,
|
|
124
|
+
/**
|
|
125
|
+
* Provide text for the form group for additional help
|
|
126
|
+
*/
|
|
115
127
|
helperText: prop_types.default.node,
|
|
128
|
+
/**
|
|
129
|
+
* Specify whether the form group is currently invalid
|
|
130
|
+
*/
|
|
116
131
|
invalid: prop_types.default.bool,
|
|
132
|
+
/**
|
|
133
|
+
* Provide the text that is displayed when the form group is in an invalid state
|
|
134
|
+
*/
|
|
117
135
|
invalidText: prop_types.default.node,
|
|
136
|
+
/**
|
|
137
|
+
* Provide id for the fieldset <legend> which corresponds to the fieldset
|
|
138
|
+
* `aria-labelledby`
|
|
139
|
+
*/
|
|
118
140
|
legendId: prop_types.default.node,
|
|
141
|
+
/**
|
|
142
|
+
* Provide the text to be rendered inside of the fieldset <legend>
|
|
143
|
+
*/
|
|
119
144
|
legendText: prop_types.default.node.isRequired,
|
|
145
|
+
/**
|
|
146
|
+
* Provide the orientation for how the checkbox should be displayed
|
|
147
|
+
*/
|
|
120
148
|
orientation: prop_types.default.oneOf(["horizontal", "vertical"]),
|
|
149
|
+
/**
|
|
150
|
+
* Whether the CheckboxGroup should be read-only
|
|
151
|
+
*/
|
|
121
152
|
readOnly: prop_types.default.bool,
|
|
153
|
+
/**
|
|
154
|
+
* **Experimental**: Provide a `Slug` component to be rendered inside the `CheckboxGroup` component
|
|
155
|
+
*/
|
|
122
156
|
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."),
|
|
157
|
+
/**
|
|
158
|
+
* Specify whether the form group is currently in warning state
|
|
159
|
+
*/
|
|
123
160
|
warn: prop_types.default.bool,
|
|
161
|
+
/**
|
|
162
|
+
* Provide the text that is displayed when the form group is in warning state
|
|
163
|
+
*/
|
|
124
164
|
warnText: prop_types.default.node
|
|
125
165
|
};
|
|
126
166
|
//#endregion
|
|
@@ -27,6 +27,9 @@ function ClassPrefix({ children, prefix }) {
|
|
|
27
27
|
}
|
|
28
28
|
ClassPrefix.propTypes = {
|
|
29
29
|
children: prop_types.default.node,
|
|
30
|
+
/**
|
|
31
|
+
* The value used to prefix the CSS selectors used by Carbon components
|
|
32
|
+
*/
|
|
30
33
|
prefix: prop_types.default.string.isRequired
|
|
31
34
|
};
|
|
32
35
|
//#endregion
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
9
|
const require_usePrefix = require("../../internal/usePrefix.js");
|
|
10
|
-
let react = require("react");
|
|
11
|
-
react = require_runtime.__toESM(react);
|
|
12
10
|
let classnames = require("classnames");
|
|
13
11
|
classnames = require_runtime.__toESM(classnames);
|
|
12
|
+
let react = require("react");
|
|
13
|
+
react = require_runtime.__toESM(react);
|
|
14
14
|
let prop_types = require("prop-types");
|
|
15
15
|
prop_types = require_runtime.__toESM(prop_types);
|
|
16
16
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -51,7 +51,13 @@ function CodeSnippetSkeleton({ className: containerClassName, type = "single", .
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
CodeSnippetSkeleton.propTypes = {
|
|
54
|
+
/**
|
|
55
|
+
* Specify an optional className to be applied to the container node
|
|
56
|
+
*/
|
|
54
57
|
className: prop_types.default.string,
|
|
58
|
+
/**
|
|
59
|
+
* The type of the code snippet, including single or multi
|
|
60
|
+
*/
|
|
55
61
|
type: prop_types.default.oneOf(["single", "multi"])
|
|
56
62
|
};
|
|
57
63
|
//#endregion
|
|
@@ -15,10 +15,10 @@ const require_index = require("../Button/index.js");
|
|
|
15
15
|
const require_useResizeObserver = require("../../internal/useResizeObserver.js");
|
|
16
16
|
const require_index$1 = require("../Copy/index.js");
|
|
17
17
|
const require_index$2 = require("../CopyButton/index.js");
|
|
18
|
-
let react = require("react");
|
|
19
|
-
react = require_runtime.__toESM(react);
|
|
20
18
|
let classnames = require("classnames");
|
|
21
19
|
classnames = require_runtime.__toESM(classnames);
|
|
20
|
+
let react = require("react");
|
|
21
|
+
react = require_runtime.__toESM(react);
|
|
22
22
|
let prop_types = require("prop-types");
|
|
23
23
|
prop_types = require_runtime.__toESM(prop_types);
|
|
24
24
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -164,6 +164,9 @@ function CodeSnippet({ align = "bottom", autoAlign = false, className, type = "s
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
CodeSnippet.propTypes = {
|
|
167
|
+
/**
|
|
168
|
+
* Specify how the trigger should align with the tooltip
|
|
169
|
+
*/
|
|
167
170
|
align: require_deprecateValuesWithin.deprecateValuesWithin(prop_types.default.oneOf([
|
|
168
171
|
"top",
|
|
169
172
|
"top-left",
|
|
@@ -199,30 +202,103 @@ CodeSnippet.propTypes = {
|
|
|
199
202
|
"right-start",
|
|
200
203
|
"right-end"
|
|
201
204
|
], require_mapPopoverAlign.mapPopoverAlign),
|
|
205
|
+
/**
|
|
206
|
+
* Specify a label to be read by screen readers on the containing textbox
|
|
207
|
+
* node
|
|
208
|
+
*/
|
|
202
209
|
["aria-label"]: prop_types.default.string,
|
|
210
|
+
/**
|
|
211
|
+
* Deprecated, please use `aria-label` instead.
|
|
212
|
+
* Specify a label to be read by screen readers on the containing textbox
|
|
213
|
+
* node
|
|
214
|
+
*/
|
|
203
215
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
216
|
+
/**
|
|
217
|
+
* **Experimental**: Will attempt to automatically align the tooltip. Requires
|
|
218
|
+
* React v17+
|
|
219
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
220
|
+
*/
|
|
204
221
|
autoAlign: prop_types.default.bool,
|
|
222
|
+
/**
|
|
223
|
+
* Provide the content of your CodeSnippet as a node or string
|
|
224
|
+
*/
|
|
205
225
|
children: prop_types.default.node,
|
|
226
|
+
/**
|
|
227
|
+
* Specify an optional className to be applied to the container node
|
|
228
|
+
*/
|
|
206
229
|
className: prop_types.default.string,
|
|
230
|
+
/**
|
|
231
|
+
* Specify the description for the Copy Button
|
|
232
|
+
*/
|
|
207
233
|
copyButtonDescription: prop_types.default.string,
|
|
234
|
+
/**
|
|
235
|
+
* Optional text to copy. If not specified, the `children` node's `innerText`
|
|
236
|
+
* will be used as the copy value.
|
|
237
|
+
*/
|
|
208
238
|
copyText: prop_types.default.string,
|
|
239
|
+
/**
|
|
240
|
+
* Specify whether or not the CodeSnippet should be disabled
|
|
241
|
+
*/
|
|
209
242
|
disabled: prop_types.default.bool,
|
|
243
|
+
/**
|
|
244
|
+
* Specify the string displayed when the snippet is copied
|
|
245
|
+
*/
|
|
210
246
|
feedback: prop_types.default.string,
|
|
247
|
+
/**
|
|
248
|
+
* Specify the time it takes for the feedback message to timeout
|
|
249
|
+
*/
|
|
211
250
|
feedbackTimeout: prop_types.default.number,
|
|
251
|
+
/**
|
|
252
|
+
* Specify whether or not a copy button should be used/rendered.
|
|
253
|
+
*/
|
|
212
254
|
hideCopyButton: prop_types.default.bool,
|
|
255
|
+
/**
|
|
256
|
+
* Specify whether you are using the light variant of the Code Snippet,
|
|
257
|
+
* typically used for inline snippet to display an alternate color
|
|
258
|
+
*/
|
|
213
259
|
light: require_deprecate.deprecate(prop_types.default.bool, "The `light` prop for `CodeSnippet` has been deprecated in favor of the new `Layer` component. It will be removed in the next major release."),
|
|
260
|
+
/**
|
|
261
|
+
* Specify the maximum number of rows to be shown when in collapsed view
|
|
262
|
+
*/
|
|
214
263
|
maxCollapsedNumberOfRows: prop_types.default.number,
|
|
264
|
+
/**
|
|
265
|
+
* Specify the maximum number of rows to be shown when in expanded view
|
|
266
|
+
*/
|
|
215
267
|
maxExpandedNumberOfRows: prop_types.default.number,
|
|
268
|
+
/**
|
|
269
|
+
* Specify the minimum number of rows to be shown when in collapsed view
|
|
270
|
+
*/
|
|
216
271
|
minCollapsedNumberOfRows: prop_types.default.number,
|
|
272
|
+
/**
|
|
273
|
+
* Specify the minimum number of rows to be shown when in expanded view
|
|
274
|
+
*/
|
|
217
275
|
minExpandedNumberOfRows: prop_types.default.number,
|
|
276
|
+
/**
|
|
277
|
+
* An optional handler to listen to the `onClick` even fired by the Copy
|
|
278
|
+
* Button
|
|
279
|
+
*/
|
|
218
280
|
onClick: prop_types.default.func,
|
|
281
|
+
/**
|
|
282
|
+
* Specify a string that is displayed when the Code Snippet has been
|
|
283
|
+
* interacted with to show more lines
|
|
284
|
+
*/
|
|
219
285
|
showLessText: prop_types.default.string,
|
|
286
|
+
/**
|
|
287
|
+
* Specify a string that is displayed when the Code Snippet text is more
|
|
288
|
+
* than 15 lines
|
|
289
|
+
*/
|
|
220
290
|
showMoreText: prop_types.default.string,
|
|
291
|
+
/**
|
|
292
|
+
* Provide the type of Code Snippet
|
|
293
|
+
*/
|
|
221
294
|
type: prop_types.default.oneOf([
|
|
222
295
|
"single",
|
|
223
296
|
"inline",
|
|
224
297
|
"multi"
|
|
225
298
|
]),
|
|
299
|
+
/**
|
|
300
|
+
* Specify whether or not to wrap the text.
|
|
301
|
+
*/
|
|
226
302
|
wrapText: prop_types.default.bool
|
|
227
303
|
};
|
|
228
304
|
//#endregion
|
|
@@ -23,10 +23,10 @@ const require_index$2 = require("../ListBox/index.js");
|
|
|
23
23
|
const require_ListBoxSelection = require("../ListBox/next/ListBoxSelection.js");
|
|
24
24
|
const require_ListBoxTrigger = require("../ListBox/next/ListBoxTrigger.js");
|
|
25
25
|
const require_mergeRefs = require("../../tools/mergeRefs.js");
|
|
26
|
-
let react = require("react");
|
|
27
|
-
react = require_runtime.__toESM(react);
|
|
28
26
|
let classnames = require("classnames");
|
|
29
27
|
classnames = require_runtime.__toESM(classnames);
|
|
28
|
+
let react = require("react");
|
|
29
|
+
react = require_runtime.__toESM(react);
|
|
30
30
|
let prop_types = require("prop-types");
|
|
31
31
|
prop_types = require_runtime.__toESM(prop_types);
|
|
32
32
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -619,47 +619,187 @@ const ComboBox = (0, react.forwardRef)((props, ref) => {
|
|
|
619
619
|
});
|
|
620
620
|
ComboBox.displayName = "ComboBox";
|
|
621
621
|
ComboBox.propTypes = {
|
|
622
|
+
/**
|
|
623
|
+
* Specify whether or not the ComboBox should allow a value that is
|
|
624
|
+
* not in the list to be entered in the input
|
|
625
|
+
*/
|
|
622
626
|
allowCustomValue: prop_types.default.bool,
|
|
627
|
+
/**
|
|
628
|
+
* 'aria-label' of the ListBox component.
|
|
629
|
+
* Specify a label to be read by screen readers on the container node
|
|
630
|
+
*/
|
|
623
631
|
["aria-label"]: prop_types.default.string,
|
|
632
|
+
/**
|
|
633
|
+
* Deprecated, please use `aria-label` instead.
|
|
634
|
+
* Specify a label to be read by screen readers on the container note.
|
|
635
|
+
* 'aria-label' of the ListBox component.
|
|
636
|
+
*/
|
|
624
637
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
638
|
+
/**
|
|
639
|
+
* **Experimental**: Will attempt to automatically align the floating
|
|
640
|
+
* element to avoid collisions with the viewport and being clipped by
|
|
641
|
+
* ancestor elements. Requires React v17+
|
|
642
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
643
|
+
*/
|
|
625
644
|
autoAlign: prop_types.default.bool,
|
|
645
|
+
/**
|
|
646
|
+
* An optional className to add to the container node
|
|
647
|
+
*/
|
|
626
648
|
className: prop_types.default.string,
|
|
649
|
+
/**
|
|
650
|
+
* **Experimental**: Provide a decorator component to be rendered inside the `ComboBox` component
|
|
651
|
+
*/
|
|
627
652
|
decorator: prop_types.default.node,
|
|
653
|
+
/**
|
|
654
|
+
* Specify the direction of the combobox dropdown. Can be either top or bottom.
|
|
655
|
+
*/
|
|
628
656
|
direction: prop_types.default.oneOf(["top", "bottom"]),
|
|
657
|
+
/**
|
|
658
|
+
* Specify if the control should be disabled, or not
|
|
659
|
+
*/
|
|
629
660
|
disabled: prop_types.default.bool,
|
|
661
|
+
/**
|
|
662
|
+
* Additional props passed to Downshift.
|
|
663
|
+
*
|
|
664
|
+
* **Use with caution:** anything you define here overrides the components'
|
|
665
|
+
* internal handling of that prop. Downshift APIs and internals are subject to
|
|
666
|
+
* change, and in some cases they can not be shimmed by Carbon to shield you
|
|
667
|
+
* from potentially breaking changes.
|
|
668
|
+
*/
|
|
630
669
|
downshiftProps: prop_types.default.object,
|
|
670
|
+
/**
|
|
671
|
+
* Provide a ref that will be mutated to contain an object of downshift
|
|
672
|
+
* action functions. These can be called to change the internal state of the
|
|
673
|
+
* downshift useCombobox hook.
|
|
674
|
+
*
|
|
675
|
+
* **Use with caution:** calling these actions modifies the internal state of
|
|
676
|
+
* downshift. It may conflict with or override the state management used within
|
|
677
|
+
* Combobox. Downshift APIs and internals are subject to change, and in some
|
|
678
|
+
* cases they can not be shimmed by Carbon to shield you from potentially breaking
|
|
679
|
+
* changes.
|
|
680
|
+
*/
|
|
631
681
|
downshiftActions: prop_types.default.exact({ current: prop_types.default.any }),
|
|
682
|
+
/**
|
|
683
|
+
* Provide helper text that is used alongside the control label for
|
|
684
|
+
* additional help
|
|
685
|
+
*/
|
|
632
686
|
helperText: prop_types.default.node,
|
|
687
|
+
/**
|
|
688
|
+
* Specify a custom `id` for the input
|
|
689
|
+
*/
|
|
633
690
|
id: prop_types.default.string.isRequired,
|
|
691
|
+
/**
|
|
692
|
+
* Allow users to pass in an arbitrary item or a string (in case their items are an array of strings)
|
|
693
|
+
* from their collection that are pre-selected
|
|
694
|
+
*/
|
|
634
695
|
initialSelectedItem: prop_types.default.oneOfType([
|
|
635
696
|
prop_types.default.object,
|
|
636
697
|
prop_types.default.string,
|
|
637
698
|
prop_types.default.number
|
|
638
699
|
]),
|
|
700
|
+
/**
|
|
701
|
+
* Specify if the currently selected value is invalid.
|
|
702
|
+
*/
|
|
639
703
|
invalid: prop_types.default.bool,
|
|
704
|
+
/**
|
|
705
|
+
* Message which is displayed if the value is invalid.
|
|
706
|
+
*/
|
|
640
707
|
invalidText: prop_types.default.node,
|
|
708
|
+
/**
|
|
709
|
+
* Renders an item as a custom React node instead of a string.
|
|
710
|
+
*/
|
|
641
711
|
itemToElement: prop_types.default.func,
|
|
712
|
+
/**
|
|
713
|
+
* Helper function passed to downshift that allows the library to render a
|
|
714
|
+
* given item to a string label. By default, it extracts the `label` field
|
|
715
|
+
* from a given item to serve as the item label in the list
|
|
716
|
+
*/
|
|
642
717
|
itemToString: prop_types.default.func,
|
|
718
|
+
/**
|
|
719
|
+
* We try to stay as generic as possible here to allow individuals to pass
|
|
720
|
+
* in a collection of whatever kind of data structure they prefer
|
|
721
|
+
*/
|
|
643
722
|
items: prop_types.default.array.isRequired,
|
|
723
|
+
/**
|
|
724
|
+
* should use "light theme" (white background)?
|
|
725
|
+
*/
|
|
644
726
|
light: require_deprecate.deprecate(prop_types.default.bool, "The `light` prop for `Combobox` has been deprecated in favor of the new `Layer` component. It will be removed in the next major release."),
|
|
727
|
+
/**
|
|
728
|
+
* `onChange` is a utility for this controlled component to communicate to a
|
|
729
|
+
* consuming component when a specific dropdown item is selected.
|
|
730
|
+
* `({ selectedItem }) => void`
|
|
731
|
+
* @param {{ selectedItem }}
|
|
732
|
+
*/
|
|
645
733
|
onChange: prop_types.default.func.isRequired,
|
|
734
|
+
/**
|
|
735
|
+
* Callback function to notify consumer when the text input changes.
|
|
736
|
+
* This provides support to change available items based on the text.
|
|
737
|
+
* `(inputText) => void`
|
|
738
|
+
* @param {string} inputText
|
|
739
|
+
*/
|
|
646
740
|
onInputChange: prop_types.default.func,
|
|
741
|
+
/**
|
|
742
|
+
* Callback function that fires when the combobox menu toggle is clicked
|
|
743
|
+
* `(evt) => void`
|
|
744
|
+
* @param {MouseEvent} event
|
|
745
|
+
*/
|
|
647
746
|
onToggleClick: prop_types.default.func,
|
|
747
|
+
/**
|
|
748
|
+
* Used to provide a placeholder text node before a user enters any input.
|
|
749
|
+
* This is only present if the control has no items selected
|
|
750
|
+
*/
|
|
648
751
|
placeholder: prop_types.default.string,
|
|
752
|
+
/**
|
|
753
|
+
* Is the ComboBox readonly?
|
|
754
|
+
*/
|
|
649
755
|
readOnly: prop_types.default.bool,
|
|
756
|
+
/**
|
|
757
|
+
* For full control of the selection
|
|
758
|
+
*/
|
|
650
759
|
selectedItem: prop_types.default.oneOfType([
|
|
651
760
|
prop_types.default.object,
|
|
652
761
|
prop_types.default.string,
|
|
653
762
|
prop_types.default.number
|
|
654
763
|
]),
|
|
764
|
+
/**
|
|
765
|
+
* Specify your own filtering logic by passing in a `shouldFilterItem`
|
|
766
|
+
* function that takes in the current input and an item and passes back
|
|
767
|
+
* whether or not the item should be filtered.
|
|
768
|
+
* this prop will be ignored if `typeahead` prop is enabled
|
|
769
|
+
*/
|
|
655
770
|
shouldFilterItem: prop_types.default.func,
|
|
771
|
+
/**
|
|
772
|
+
* Specify the size of the ListBox. Currently supports either `xs`, `sm`, `md` or `lg` as an option.
|
|
773
|
+
*/
|
|
656
774
|
size: require_ListBoxPropTypes.ListBoxSizePropType,
|
|
657
775
|
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."),
|
|
776
|
+
/**
|
|
777
|
+
* Provide text to be used in a `<label>` element that is tied to the
|
|
778
|
+
* combobox via ARIA attributes.
|
|
779
|
+
*/
|
|
658
780
|
titleText: prop_types.default.node,
|
|
781
|
+
/**
|
|
782
|
+
* Translates component strings using your i18n tool.
|
|
783
|
+
*/
|
|
659
784
|
translateWithId: prop_types.default.func,
|
|
785
|
+
/**
|
|
786
|
+
* **Experimental**: will enable autocomplete and typeahead for the input field
|
|
787
|
+
*/
|
|
660
788
|
typeahead: prop_types.default.bool,
|
|
789
|
+
/**
|
|
790
|
+
* Specify whether the control is currently in warning state
|
|
791
|
+
*/
|
|
661
792
|
warn: prop_types.default.bool,
|
|
793
|
+
/**
|
|
794
|
+
* Provide the text that is displayed when the control is in warning state
|
|
795
|
+
*/
|
|
662
796
|
warnText: prop_types.default.node,
|
|
797
|
+
/**
|
|
798
|
+
* Specify native input attributes to place on the `<input>`, like maxLength.
|
|
799
|
+
* These are passed to downshift's getInputProps() and will override the
|
|
800
|
+
* internal input props.
|
|
801
|
+
* https://github.com/downshift-js/downshift?tab=readme-ov-file#getinputprops
|
|
802
|
+
*/
|
|
663
803
|
inputProps: prop_types.default.object
|
|
664
804
|
};
|
|
665
805
|
//#endregion
|
|
@@ -17,10 +17,10 @@ const require_index$2 = require("../Button/index.js");
|
|
|
17
17
|
const require_mergeRefs = require("../../tools/mergeRefs.js");
|
|
18
18
|
const require_Menu = require("../Menu/Menu.js");
|
|
19
19
|
const require_useAttachedMenu = require("../../internal/useAttachedMenu.js");
|
|
20
|
-
let react = require("react");
|
|
21
|
-
react = require_runtime.__toESM(react);
|
|
22
20
|
let classnames = require("classnames");
|
|
23
21
|
classnames = require_runtime.__toESM(classnames);
|
|
22
|
+
let react = require("react");
|
|
23
|
+
react = require_runtime.__toESM(react);
|
|
24
24
|
let prop_types = require("prop-types");
|
|
25
25
|
prop_types = require_runtime.__toESM(prop_types);
|
|
26
26
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -126,10 +126,25 @@ const ComboButton = react.default.forwardRef(function ComboButton({ children, cl
|
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
ComboButton.propTypes = {
|
|
129
|
+
/**
|
|
130
|
+
* A collection of MenuItems to be rendered as additional actions for this ComboButton.
|
|
131
|
+
*/
|
|
129
132
|
children: prop_types.default.node.isRequired,
|
|
133
|
+
/**
|
|
134
|
+
* Additional CSS class names.
|
|
135
|
+
*/
|
|
130
136
|
className: prop_types.default.string,
|
|
137
|
+
/**
|
|
138
|
+
* Specify whether the ComboButton should be disabled, or not.
|
|
139
|
+
*/
|
|
131
140
|
disabled: prop_types.default.bool,
|
|
141
|
+
/**
|
|
142
|
+
* Provide the label to be rendered on the primary action button.
|
|
143
|
+
*/
|
|
132
144
|
label: prop_types.default.string.isRequired,
|
|
145
|
+
/**
|
|
146
|
+
* Experimental property. Specify how the menu should align with the button element
|
|
147
|
+
*/
|
|
133
148
|
menuAlignment: prop_types.default.oneOf([
|
|
134
149
|
"top",
|
|
135
150
|
"top-start",
|
|
@@ -138,13 +153,22 @@ ComboButton.propTypes = {
|
|
|
138
153
|
"bottom-start",
|
|
139
154
|
"bottom-end"
|
|
140
155
|
]),
|
|
156
|
+
/**
|
|
157
|
+
* Provide an optional function to be called when the primary action element is clicked.
|
|
158
|
+
*/
|
|
141
159
|
onClick: prop_types.default.func,
|
|
160
|
+
/**
|
|
161
|
+
* Specify the size of the buttons and menu.
|
|
162
|
+
*/
|
|
142
163
|
size: prop_types.default.oneOf([
|
|
143
164
|
"xs",
|
|
144
165
|
"sm",
|
|
145
166
|
"md",
|
|
146
167
|
"lg"
|
|
147
168
|
]),
|
|
169
|
+
/**
|
|
170
|
+
* Specify how the trigger tooltip should be aligned.
|
|
171
|
+
*/
|
|
148
172
|
tooltipAlignment: require_deprecateValuesWithin.deprecateValuesWithin(prop_types.default.oneOf([
|
|
149
173
|
"top",
|
|
150
174
|
"top-left",
|
|
@@ -180,6 +204,9 @@ ComboButton.propTypes = {
|
|
|
180
204
|
"right-start",
|
|
181
205
|
"right-end"
|
|
182
206
|
], require_mapPopoverAlign.mapPopoverAlign),
|
|
207
|
+
/**
|
|
208
|
+
* Translates component strings using your i18n tool.
|
|
209
|
+
*/
|
|
183
210
|
translateWithId: prop_types.default.func
|
|
184
211
|
};
|
|
185
212
|
//#endregion
|