@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
|
@@ -19,10 +19,10 @@ const require_FormContext = require("../FluidForm/FormContext.js");
|
|
|
19
19
|
const require_useControllableState = require("../../internal/useControllableState.js");
|
|
20
20
|
const require_clamp = require("../../internal/clamp.js");
|
|
21
21
|
const require_NumberFormatPropTypes = require("./NumberFormatPropTypes.js");
|
|
22
|
-
let react = require("react");
|
|
23
|
-
react = require_runtime.__toESM(react);
|
|
24
22
|
let classnames = require("classnames");
|
|
25
23
|
classnames = require_runtime.__toESM(classnames);
|
|
24
|
+
let react = require("react");
|
|
25
|
+
react = require_runtime.__toESM(react);
|
|
26
26
|
let prop_types = require("prop-types");
|
|
27
27
|
prop_types = require_runtime.__toESM(prop_types);
|
|
28
28
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -471,18 +471,63 @@ const NumberInput = react.default.forwardRef((props, forwardRef) => {
|
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
NumberInput.propTypes = {
|
|
474
|
+
/**
|
|
475
|
+
* `true` to allow empty string.
|
|
476
|
+
*/
|
|
474
477
|
allowEmpty: prop_types.default.bool,
|
|
478
|
+
/**
|
|
479
|
+
* Specify an optional className to be applied to the wrapper node
|
|
480
|
+
*/
|
|
475
481
|
className: prop_types.default.string,
|
|
482
|
+
/**
|
|
483
|
+
* **Experimental**: Provide a `decorator` component to be rendered inside the `NumberInput` component
|
|
484
|
+
*/
|
|
476
485
|
decorator: prop_types.default.node,
|
|
486
|
+
/**
|
|
487
|
+
* Optional starting value for uncontrolled state
|
|
488
|
+
*/
|
|
477
489
|
defaultValue: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),
|
|
490
|
+
/**
|
|
491
|
+
* Specify if the wheel functionality for the input should be disabled, or no t
|
|
492
|
+
*/
|
|
478
493
|
disableWheel: prop_types.default.bool,
|
|
494
|
+
/**
|
|
495
|
+
* Specify if the control should be disabled, or not
|
|
496
|
+
*/
|
|
479
497
|
disabled: prop_types.default.bool,
|
|
498
|
+
/**
|
|
499
|
+
* **Experimental:** Specify Intl.NumberFormat options applied to internal
|
|
500
|
+
* number parsing and formatting. Use with `type="text"`, has no effect when
|
|
501
|
+
* `type="number"`.
|
|
502
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options
|
|
503
|
+
*/
|
|
480
504
|
formatOptions: require_NumberFormatPropTypes.NumberFormatOptionsPropType,
|
|
505
|
+
/**
|
|
506
|
+
* Provide text that is used alongside the control label for additional help
|
|
507
|
+
*/
|
|
481
508
|
helperText: prop_types.default.node,
|
|
509
|
+
/**
|
|
510
|
+
* Specify whether you want the underlying label to be visually hidden
|
|
511
|
+
*/
|
|
482
512
|
hideLabel: prop_types.default.bool,
|
|
513
|
+
/**
|
|
514
|
+
* Specify whether you want the steppers to be hidden
|
|
515
|
+
*/
|
|
483
516
|
hideSteppers: prop_types.default.bool,
|
|
517
|
+
/**
|
|
518
|
+
* Provide a description for up/down icons that can be read by screen readers
|
|
519
|
+
*/
|
|
484
520
|
iconDescription: prop_types.default.string,
|
|
521
|
+
/**
|
|
522
|
+
* Specify a custom `id` for the input
|
|
523
|
+
*/
|
|
485
524
|
id: prop_types.default.string.isRequired,
|
|
525
|
+
/**
|
|
526
|
+
* Instruct the browser which keyboard to display on mobile devices. Defaults
|
|
527
|
+
* to `decimal`, but note that standard numeric keyboards vary across devices
|
|
528
|
+
* and operating systems.
|
|
529
|
+
* @see https://css-tricks.com/everything-you-ever-wanted-to-know-about-inputmode/
|
|
530
|
+
*/
|
|
486
531
|
inputMode: prop_types.default.oneOf([
|
|
487
532
|
"none",
|
|
488
533
|
"text",
|
|
@@ -493,33 +538,126 @@ NumberInput.propTypes = {
|
|
|
493
538
|
"decimal",
|
|
494
539
|
"search"
|
|
495
540
|
]),
|
|
541
|
+
/**
|
|
542
|
+
* Specify if the currently value is invalid.
|
|
543
|
+
*/
|
|
496
544
|
invalid: prop_types.default.bool,
|
|
545
|
+
/**
|
|
546
|
+
* Message which is displayed if the value is invalid.
|
|
547
|
+
*/
|
|
497
548
|
invalidText: prop_types.default.node,
|
|
549
|
+
/**
|
|
550
|
+
* Generic `label` that will be used as the textual representation of what
|
|
551
|
+
* this field is for
|
|
552
|
+
*/
|
|
498
553
|
label: prop_types.default.node,
|
|
554
|
+
/**
|
|
555
|
+
* `true` to use the light version.
|
|
556
|
+
*/
|
|
499
557
|
light: require_deprecate.deprecate(prop_types.default.bool, "The `light` prop for `NumberInput` is no longer needed and has been deprecated in v11 in favor of the new `Layer` component. It will be moved in the next major release."),
|
|
558
|
+
/**
|
|
559
|
+
* **Experimental:** Specify a [BCP47](https://www.ietf.org/rfc/bcp/bcp47.txt)
|
|
560
|
+
* language code for parsing and formatting. Use with `type="text"`, has no
|
|
561
|
+
* effect when `type="number"`.
|
|
562
|
+
*/
|
|
500
563
|
locale: prop_types.default.string,
|
|
564
|
+
/**
|
|
565
|
+
* The maximum value.
|
|
566
|
+
*/
|
|
501
567
|
max: prop_types.default.number,
|
|
568
|
+
/**
|
|
569
|
+
* The minimum value.
|
|
570
|
+
*/
|
|
502
571
|
min: prop_types.default.number,
|
|
572
|
+
/**
|
|
573
|
+
* Provide the value stepping should begin at when the input is empty
|
|
574
|
+
*/
|
|
503
575
|
stepStartValue: prop_types.default.number,
|
|
576
|
+
/**
|
|
577
|
+
* Provide an optional handler that is called when the input is blurred.
|
|
578
|
+
*/
|
|
504
579
|
onBlur: prop_types.default.func,
|
|
580
|
+
/**
|
|
581
|
+
* Provide an optional handler that is called when the stepper
|
|
582
|
+
* buttons are blurred.
|
|
583
|
+
*/
|
|
505
584
|
onStepperBlur: prop_types.default.func,
|
|
585
|
+
/**
|
|
586
|
+
* Provide an optional handler that is called when the internal state of
|
|
587
|
+
* NumberInput changes. This handler is called with event and state info.
|
|
588
|
+
* When type="number", this is called on every change of the input.
|
|
589
|
+
* When type="text", this is only called on blur after the number has been
|
|
590
|
+
* parsed and formatted.
|
|
591
|
+
* `(event, { value, direction }) => void`
|
|
592
|
+
*/
|
|
506
593
|
onChange: prop_types.default.func,
|
|
594
|
+
/**
|
|
595
|
+
* Provide an optional function to be called when the up/down button is clicked
|
|
596
|
+
*/
|
|
507
597
|
onClick: prop_types.default.func,
|
|
598
|
+
/**
|
|
599
|
+
* Provide an optional function to be called when a key is pressed in the number input
|
|
600
|
+
*/
|
|
508
601
|
onKeyUp: prop_types.default.func,
|
|
602
|
+
/**
|
|
603
|
+
* When type="text", provide an optional pattern to restrict user input. Has
|
|
604
|
+
* no effect when type="number".
|
|
605
|
+
*/
|
|
509
606
|
pattern: prop_types.default.string,
|
|
607
|
+
/**
|
|
608
|
+
* Specify if the component should be read-only
|
|
609
|
+
*/
|
|
510
610
|
readOnly: prop_types.default.bool,
|
|
611
|
+
/**
|
|
612
|
+
* Specify the size of the Number Input.
|
|
613
|
+
*/
|
|
511
614
|
size: prop_types.default.oneOf([
|
|
512
615
|
"sm",
|
|
513
616
|
"md",
|
|
514
617
|
"lg"
|
|
515
618
|
]),
|
|
619
|
+
/**
|
|
620
|
+
* **Experimental**: Provide a `Slug` component to be rendered inside the
|
|
621
|
+
* `NumberInput` component
|
|
622
|
+
*/
|
|
516
623
|
slug: require_deprecate.deprecate(prop_types.default.node, "The `slug` prop for `NumberInput` is no longer needed and has been deprecated in v11 in favor of the new `decorator` prop. It will be moved in the next major release."),
|
|
624
|
+
/**
|
|
625
|
+
* Specify how much the values should increase/decrease upon clicking on
|
|
626
|
+
* up/down button
|
|
627
|
+
*/
|
|
517
628
|
step: prop_types.default.number,
|
|
629
|
+
/**
|
|
630
|
+
* Translates component strings using your i18n tool.
|
|
631
|
+
*/
|
|
518
632
|
translateWithId: prop_types.default.func,
|
|
633
|
+
/**
|
|
634
|
+
* **Experimental**: Specify if the input should be of type text or number.
|
|
635
|
+
* Use type="text" with `locale`, `formatOptions`, and guide user input with
|
|
636
|
+
* `pattern` and `inputMode`.
|
|
637
|
+
*/
|
|
519
638
|
type: prop_types.default.oneOf(["number", "text"]),
|
|
639
|
+
/**
|
|
640
|
+
* Specify the value of the input
|
|
641
|
+
*/
|
|
520
642
|
value: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),
|
|
643
|
+
/**
|
|
644
|
+
* Specify whether the control is currently in warning state
|
|
645
|
+
*/
|
|
521
646
|
warn: prop_types.default.bool,
|
|
647
|
+
/**
|
|
648
|
+
* Provide the text that is displayed when the control is in warning state
|
|
649
|
+
*/
|
|
522
650
|
warnText: prop_types.default.node,
|
|
651
|
+
/**
|
|
652
|
+
* Optional validation function that is called with the input value and locale.
|
|
653
|
+
*
|
|
654
|
+
* - Return `false` to immediately fail validation.
|
|
655
|
+
* - Return `true` to pass this validation, but still run other checks (min, max, required, etc.).
|
|
656
|
+
* - Return `undefined` to defer entirely to built-in validation logic.
|
|
657
|
+
*
|
|
658
|
+
* This is called before other validations, giving consumers the ability
|
|
659
|
+
* to short-circuit or extend validation without replacing built-in rules.
|
|
660
|
+
*/
|
|
523
661
|
validate: prop_types.default.func
|
|
524
662
|
};
|
|
525
663
|
const Label = ({ disabled, id, hideLabel, label }) => {
|
|
@@ -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");
|
|
@@ -34,10 +34,25 @@ function OrderedList({ className, nested = false, native = false, isExpressive =
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
OrderedList.propTypes = {
|
|
37
|
+
/**
|
|
38
|
+
* Provide list items to be rendered in the ordered list
|
|
39
|
+
*/
|
|
37
40
|
children: prop_types.default.node,
|
|
41
|
+
/**
|
|
42
|
+
* Provide an optional className to be applied to the containing <ol> node
|
|
43
|
+
*/
|
|
38
44
|
className: prop_types.default.string,
|
|
45
|
+
/**
|
|
46
|
+
* Specify whether this ordered list expressive or not
|
|
47
|
+
*/
|
|
39
48
|
isExpressive: prop_types.default.bool,
|
|
49
|
+
/**
|
|
50
|
+
* Specify whether this ordered list should use native list styles instead of custom counter
|
|
51
|
+
*/
|
|
40
52
|
native: prop_types.default.bool,
|
|
53
|
+
/**
|
|
54
|
+
* Specify whether this ordered list is nested inside of another nested list
|
|
55
|
+
*/
|
|
41
56
|
nested: prop_types.default.bool
|
|
42
57
|
};
|
|
43
58
|
//#endregion
|
|
@@ -6,11 +6,11 @@
|
|
|
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_keys = require("../../internal/keyboard/keys.js");
|
|
12
11
|
const require_match = require("../../internal/keyboard/match.js");
|
|
13
12
|
const require_setupGetInstanceId = require("../../tools/setupGetInstanceId.js");
|
|
13
|
+
const require_noopFn = require("../../internal/noopFn.js");
|
|
14
14
|
const require_deprecate = require("../../prop-types/deprecate.js");
|
|
15
15
|
const require_deprecateValuesWithin = require("../../prop-types/deprecateValuesWithin.js");
|
|
16
16
|
const require_mapPopoverAlign = require("../../tools/mapPopoverAlign.js");
|
|
@@ -18,10 +18,10 @@ const require_index = require("../IconButton/index.js");
|
|
|
18
18
|
const require_mergeRefs = require("../../tools/mergeRefs.js");
|
|
19
19
|
const require_FloatingMenu = require("../../internal/FloatingMenu.js");
|
|
20
20
|
const require_useOutsideClick = require("../../internal/useOutsideClick.js");
|
|
21
|
-
let react = require("react");
|
|
22
|
-
react = require_runtime.__toESM(react);
|
|
23
21
|
let classnames = require("classnames");
|
|
24
22
|
classnames = require_runtime.__toESM(classnames);
|
|
23
|
+
let react = require("react");
|
|
24
|
+
react = require_runtime.__toESM(react);
|
|
25
25
|
let prop_types = require("prop-types");
|
|
26
26
|
prop_types = require_runtime.__toESM(prop_types);
|
|
27
27
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -287,6 +287,9 @@ const OverflowMenu = (0, react.forwardRef)(({ align, ["aria-label"]: ariaLabel =
|
|
|
287
287
|
}) });
|
|
288
288
|
});
|
|
289
289
|
OverflowMenu.propTypes = {
|
|
290
|
+
/**
|
|
291
|
+
* Specify how the trigger should align with the tooltip
|
|
292
|
+
*/
|
|
290
293
|
align: require_deprecateValuesWithin.deprecateValuesWithin(prop_types.default.oneOf([
|
|
291
294
|
"top",
|
|
292
295
|
"top-left",
|
|
@@ -322,34 +325,107 @@ OverflowMenu.propTypes = {
|
|
|
322
325
|
"right-start",
|
|
323
326
|
"right-end"
|
|
324
327
|
], require_mapPopoverAlign.mapPopoverAlign),
|
|
328
|
+
/**
|
|
329
|
+
* Specify a label to be read by screen readers on the container node
|
|
330
|
+
*/
|
|
325
331
|
["aria-label"]: prop_types.default.string,
|
|
332
|
+
/**
|
|
333
|
+
* Deprecated, please use `aria-label` instead.
|
|
334
|
+
* Specify a label to be read by screen readers on the container note.
|
|
335
|
+
*/
|
|
326
336
|
ariaLabel: require_deprecate.deprecate(prop_types.default.string, "This prop syntax has been deprecated. Please use the new `aria-label`."),
|
|
337
|
+
/**
|
|
338
|
+
* The child nodes.
|
|
339
|
+
*/
|
|
327
340
|
children: prop_types.default.node,
|
|
341
|
+
/**
|
|
342
|
+
* The CSS class names.
|
|
343
|
+
*/
|
|
328
344
|
className: prop_types.default.string,
|
|
345
|
+
/**
|
|
346
|
+
* The menu direction.
|
|
347
|
+
*/
|
|
329
348
|
direction: prop_types.default.oneOf(["top", require_FloatingMenu.DIRECTION_BOTTOM]),
|
|
349
|
+
/**
|
|
350
|
+
* `true` if the menu alignment should be flipped.
|
|
351
|
+
*/
|
|
330
352
|
flipped: prop_types.default.bool,
|
|
353
|
+
/**
|
|
354
|
+
* @deprecated Tab key is handled with event handler so no need for focus trap.
|
|
355
|
+
* Enable or disable focus trap behavior
|
|
356
|
+
*/
|
|
331
357
|
focusTrap: prop_types.default.bool,
|
|
358
|
+
/**
|
|
359
|
+
* The CSS class for the icon.
|
|
360
|
+
*/
|
|
332
361
|
iconClass: prop_types.default.string,
|
|
362
|
+
/**
|
|
363
|
+
* The icon description.
|
|
364
|
+
*/
|
|
333
365
|
iconDescription: prop_types.default.string,
|
|
366
|
+
/**
|
|
367
|
+
* The element ID.
|
|
368
|
+
*/
|
|
334
369
|
id: prop_types.default.string,
|
|
370
|
+
/**
|
|
371
|
+
* `true` to use the light version. For use on $ui-01 backgrounds only.
|
|
372
|
+
* Don't use this to make OverflowMenu background color same as container background color.
|
|
373
|
+
*/
|
|
335
374
|
light: require_deprecate.deprecate(prop_types.default.bool, "The `light` prop for `OverflowMenu` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead."),
|
|
375
|
+
/**
|
|
376
|
+
* The adjustment in position applied to the floating menu.
|
|
377
|
+
*/
|
|
336
378
|
menuOffset: prop_types.default.oneOfType([prop_types.default.shape({
|
|
337
379
|
top: prop_types.default.number.isRequired,
|
|
338
380
|
left: prop_types.default.number.isRequired
|
|
339
381
|
}), prop_types.default.func]),
|
|
382
|
+
/**
|
|
383
|
+
* The adjustment in position applied to the floating menu when flipped.
|
|
384
|
+
*/
|
|
340
385
|
menuOffsetFlip: prop_types.default.oneOfType([prop_types.default.shape({
|
|
341
386
|
top: prop_types.default.number.isRequired,
|
|
342
387
|
left: prop_types.default.number.isRequired
|
|
343
388
|
}), prop_types.default.func]),
|
|
389
|
+
/**
|
|
390
|
+
* The class to apply to the menu options
|
|
391
|
+
*/
|
|
344
392
|
menuOptionsClass: prop_types.default.string,
|
|
393
|
+
/**
|
|
394
|
+
* The event handler for the `click` event.
|
|
395
|
+
*/
|
|
345
396
|
onClick: prop_types.default.func,
|
|
397
|
+
/**
|
|
398
|
+
* Function called when menu is closed
|
|
399
|
+
*/
|
|
346
400
|
onClose: prop_types.default.func,
|
|
401
|
+
/**
|
|
402
|
+
* The event handler for the `focus` event.
|
|
403
|
+
*/
|
|
347
404
|
onFocus: prop_types.default.func,
|
|
405
|
+
/**
|
|
406
|
+
* The event handler for the `keydown` event.
|
|
407
|
+
*/
|
|
348
408
|
onKeyDown: prop_types.default.func,
|
|
409
|
+
/**
|
|
410
|
+
* Function called when menu is opened
|
|
411
|
+
*/
|
|
349
412
|
onOpen: prop_types.default.func,
|
|
413
|
+
/**
|
|
414
|
+
* `true` if the menu should be open.
|
|
415
|
+
*/
|
|
350
416
|
open: prop_types.default.bool,
|
|
417
|
+
/**
|
|
418
|
+
* A component used to render an icon.
|
|
419
|
+
*/
|
|
351
420
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
421
|
+
/**
|
|
422
|
+
* Specify a CSS selector that matches the DOM element that should
|
|
423
|
+
* be focused when the OverflowMenu opens
|
|
424
|
+
*/
|
|
352
425
|
selectorPrimaryFocus: prop_types.default.string,
|
|
426
|
+
/**
|
|
427
|
+
* Specify the size of the OverflowMenu. Currently supports either `xs`, `sm`, `md` (default) or `lg` as an option.
|
|
428
|
+
*/
|
|
353
429
|
size: prop_types.default.oneOf([
|
|
354
430
|
"xs",
|
|
355
431
|
"sm",
|
|
@@ -15,10 +15,10 @@ const require_index$1 = require("../../IconButton/index.js");
|
|
|
15
15
|
const require_mergeRefs = require("../../../tools/mergeRefs.js");
|
|
16
16
|
const require_Menu = require("../../Menu/Menu.js");
|
|
17
17
|
const require_useAttachedMenu = require("../../../internal/useAttachedMenu.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");
|
|
@@ -109,23 +109,50 @@ const OverflowMenu = react.default.forwardRef(({ autoAlign = false, children, cl
|
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
OverflowMenu.propTypes = {
|
|
112
|
+
/**
|
|
113
|
+
* **Experimental**: Will attempt to automatically align the floating element
|
|
114
|
+
* to avoid collisions with the viewport and being clipped by ancestor
|
|
115
|
+
* elements. Requires React v17+
|
|
116
|
+
* @see https://github.com/carbon-design-system/carbon/issues/18714
|
|
117
|
+
*/
|
|
112
118
|
autoAlign: prop_types.default.bool,
|
|
119
|
+
/**
|
|
120
|
+
* A collection of MenuItems to be rendered within this OverflowMenu.
|
|
121
|
+
*/
|
|
113
122
|
children: prop_types.default.node,
|
|
123
|
+
/**
|
|
124
|
+
* Additional CSS class names for the trigger button.
|
|
125
|
+
*/
|
|
114
126
|
className: prop_types.default.string,
|
|
127
|
+
/**
|
|
128
|
+
* A label describing the options available. Is used in the trigger tooltip and as the menu's accessible label.
|
|
129
|
+
*/
|
|
115
130
|
label: prop_types.default.string,
|
|
131
|
+
/**
|
|
132
|
+
* Experimental property. Specify how the menu should align with the button element
|
|
133
|
+
*/
|
|
116
134
|
menuAlignment: prop_types.default.oneOf([
|
|
117
135
|
"top-start",
|
|
118
136
|
"top-end",
|
|
119
137
|
"bottom-start",
|
|
120
138
|
"bottom-end"
|
|
121
139
|
]),
|
|
140
|
+
/**
|
|
141
|
+
* A component used to render an icon.
|
|
142
|
+
*/
|
|
122
143
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
144
|
+
/**
|
|
145
|
+
* Specify the size of the menu, from a list of available sizes.
|
|
146
|
+
*/
|
|
123
147
|
size: prop_types.default.oneOf([
|
|
124
148
|
"xs",
|
|
125
149
|
"sm",
|
|
126
150
|
"md",
|
|
127
151
|
"lg"
|
|
128
152
|
]),
|
|
153
|
+
/**
|
|
154
|
+
* Specify how the trigger tooltip should be aligned.
|
|
155
|
+
*/
|
|
129
156
|
tooltipAlignment: require_deprecateValuesWithin.deprecateValuesWithin(prop_types.default.oneOf([
|
|
130
157
|
"top",
|
|
131
158
|
"top-left",
|
|
@@ -161,6 +188,9 @@ OverflowMenu.propTypes = {
|
|
|
161
188
|
"right-start",
|
|
162
189
|
"right-end"
|
|
163
190
|
], require_mapPopoverAlign.mapPopoverAlign),
|
|
191
|
+
/**
|
|
192
|
+
* Specify a DOM node where the Menu should be rendered in. Defaults to document.body.
|
|
193
|
+
*/
|
|
164
194
|
menuTarget: prop_types.default.instanceOf(typeof Element !== "undefined" ? Element : Object)
|
|
165
195
|
};
|
|
166
196
|
//#endregion
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
|
-
const require_warning = require("../../internal/warning.js");
|
|
10
9
|
const require_usePrefix = require("../../internal/usePrefix.js");
|
|
11
10
|
const require_Text = require("../Text/Text.js");
|
|
12
11
|
const require_keys = require("../../internal/keyboard/keys.js");
|
|
13
12
|
const require_match = require("../../internal/keyboard/match.js");
|
|
14
13
|
const require_useId = require("../../internal/useId.js");
|
|
15
|
-
|
|
16
|
-
react = require_runtime.__toESM(react);
|
|
14
|
+
const require_warning = require("../../internal/warning.js");
|
|
17
15
|
let classnames = require("classnames");
|
|
18
16
|
classnames = require_runtime.__toESM(classnames);
|
|
17
|
+
let react = require("react");
|
|
18
|
+
react = require_runtime.__toESM(react);
|
|
19
19
|
let prop_types = require("prop-types");
|
|
20
20
|
prop_types = require_runtime.__toESM(prop_types);
|
|
21
21
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -87,16 +87,43 @@ const OverflowMenuItem = (0, react.forwardRef)((props, ref) => {
|
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
OverflowMenuItem.propTypes = {
|
|
90
|
+
/**
|
|
91
|
+
* The CSS class name to be placed on the button element
|
|
92
|
+
*/
|
|
90
93
|
className: prop_types.default.string,
|
|
94
|
+
/**
|
|
95
|
+
* A callback to tell the parent menu component that the menu should be closed.
|
|
96
|
+
*/
|
|
91
97
|
closeMenu: prop_types.default.func,
|
|
98
|
+
/**
|
|
99
|
+
* Specify the message read by screen readers for the danger overflow menu item variant
|
|
100
|
+
*/
|
|
92
101
|
dangerDescription: prop_types.default.string,
|
|
102
|
+
/**
|
|
103
|
+
* `true` to make this menu item disabled.
|
|
104
|
+
*/
|
|
93
105
|
disabled: prop_types.default.bool,
|
|
94
106
|
handleOverflowMenuItemFocus: prop_types.default.func,
|
|
107
|
+
/**
|
|
108
|
+
* `true` to make this menu item a divider.
|
|
109
|
+
*/
|
|
95
110
|
hasDivider: prop_types.default.bool,
|
|
111
|
+
/**
|
|
112
|
+
* If given, overflow item will render as a link with the given href
|
|
113
|
+
*/
|
|
96
114
|
href: prop_types.default.string,
|
|
97
115
|
index: prop_types.default.number,
|
|
116
|
+
/**
|
|
117
|
+
* `true` to make this menu item a "danger button".
|
|
118
|
+
*/
|
|
98
119
|
isDelete: prop_types.default.bool,
|
|
120
|
+
/**
|
|
121
|
+
* The text in the menu item.
|
|
122
|
+
*/
|
|
99
123
|
itemText: prop_types.default.node.isRequired,
|
|
124
|
+
/**
|
|
125
|
+
* event handlers
|
|
126
|
+
*/
|
|
100
127
|
onBlur: prop_types.default.func,
|
|
101
128
|
onClick: prop_types.default.func,
|
|
102
129
|
onFocus: prop_types.default.func,
|
|
@@ -106,8 +133,17 @@ OverflowMenuItem.propTypes = {
|
|
|
106
133
|
onMouseEnter: prop_types.default.func,
|
|
107
134
|
onMouseLeave: prop_types.default.func,
|
|
108
135
|
onMouseUp: prop_types.default.func,
|
|
136
|
+
/**
|
|
137
|
+
* `true` if this menu item has long text and requires a browser tooltip
|
|
138
|
+
*/
|
|
109
139
|
requireTitle: prop_types.default.bool,
|
|
140
|
+
/**
|
|
141
|
+
* Specify a title for the OverflowMenuItem
|
|
142
|
+
*/
|
|
110
143
|
title: prop_types.default.string,
|
|
144
|
+
/**
|
|
145
|
+
* The CSS class name to be placed on the wrapper list item element
|
|
146
|
+
*/
|
|
111
147
|
wrapperClassName: prop_types.default.string
|
|
112
148
|
};
|
|
113
149
|
//#endregion
|
|
@@ -22,10 +22,10 @@ const require_useMatchMedia = require("../../internal/useMatchMedia.js");
|
|
|
22
22
|
const require_Tag = require("../Tag/Tag.js");
|
|
23
23
|
const require_OperationalTag = require("../Tag/OperationalTag.js");
|
|
24
24
|
const require_useOverflowItems = require("../../internal/useOverflowItems.js");
|
|
25
|
-
let react = require("react");
|
|
26
|
-
react = require_runtime.__toESM(react);
|
|
27
25
|
let classnames = require("classnames");
|
|
28
26
|
classnames = require_runtime.__toESM(classnames);
|
|
27
|
+
let react = require("react");
|
|
28
|
+
react = require_runtime.__toESM(react);
|
|
29
29
|
let prop_types = require("prop-types");
|
|
30
30
|
prop_types = require_runtime.__toESM(prop_types);
|
|
31
31
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -150,12 +150,33 @@ const PageHeaderContent = react.default.forwardRef(({ className, children, title
|
|
|
150
150
|
});
|
|
151
151
|
PageHeaderContent.displayName = "PageHeaderContent";
|
|
152
152
|
PageHeaderContent.propTypes = {
|
|
153
|
+
/**
|
|
154
|
+
* Provide child elements to be rendered inside PageHeaderContent.
|
|
155
|
+
*/
|
|
153
156
|
children: prop_types.default.node,
|
|
157
|
+
/**
|
|
158
|
+
* Specify an optional className to be added to your PageHeaderContent
|
|
159
|
+
*/
|
|
154
160
|
className: prop_types.default.string,
|
|
161
|
+
/**
|
|
162
|
+
* Provide an optional icon to render in front of the PageHeaderContent's title.
|
|
163
|
+
*/
|
|
155
164
|
renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
|
|
165
|
+
/**
|
|
166
|
+
* The PageHeaderContent's title
|
|
167
|
+
*/
|
|
156
168
|
title: prop_types.default.string.isRequired,
|
|
169
|
+
/**
|
|
170
|
+
* The PageHeaderContent's subtitle
|
|
171
|
+
*/
|
|
157
172
|
subtitle: prop_types.default.string,
|
|
173
|
+
/**
|
|
174
|
+
* The PageHeaderContent's contextual actions
|
|
175
|
+
*/
|
|
158
176
|
contextualActions: prop_types.default.node,
|
|
177
|
+
/**
|
|
178
|
+
* The PageHeaderContent's page actions
|
|
179
|
+
*/
|
|
159
180
|
pageActions: prop_types.default.node
|
|
160
181
|
};
|
|
161
182
|
const PageHeaderContentPageActions = ({ className, children, menuButtonLabel = "Actions", actions, ...other }) => {
|
|
@@ -207,9 +228,21 @@ const PageHeaderContentPageActions = ({ className, children, menuButtonLabel = "
|
|
|
207
228
|
};
|
|
208
229
|
PageHeaderContentPageActions.displayName = "PageHeaderContentPageActions";
|
|
209
230
|
PageHeaderContentPageActions.propTypes = {
|
|
231
|
+
/**
|
|
232
|
+
* Provide child elements to be rendered inside PageHeaderContentPageActions.
|
|
233
|
+
*/
|
|
210
234
|
children: prop_types.default.node,
|
|
235
|
+
/**
|
|
236
|
+
* Specify an optional className to be added to your PageHeaderContentPageActions
|
|
237
|
+
*/
|
|
211
238
|
className: prop_types.default.string,
|
|
239
|
+
/**
|
|
240
|
+
* The PageHeaderContent's collapsible Menu button label
|
|
241
|
+
*/
|
|
212
242
|
menuButtonLabel: prop_types.default.string,
|
|
243
|
+
/**
|
|
244
|
+
* The PageHeaderContent's page actions
|
|
245
|
+
*/
|
|
213
246
|
actions: prop_types.default.oneOfType([prop_types.default.node, prop_types.default.array])
|
|
214
247
|
};
|
|
215
248
|
const PageHeaderContentText = ({ className, children, subtitle, ...other }) => {
|
|
@@ -227,8 +260,17 @@ const PageHeaderContentText = ({ className, children, subtitle, ...other }) => {
|
|
|
227
260
|
};
|
|
228
261
|
PageHeaderContentText.displayName = "PageHeaderContentText";
|
|
229
262
|
PageHeaderContentText.propTypes = {
|
|
263
|
+
/**
|
|
264
|
+
* Provide child elements to be rendered inside PageHeaderContentText.
|
|
265
|
+
*/
|
|
230
266
|
children: prop_types.default.node,
|
|
267
|
+
/**
|
|
268
|
+
* Specify an optional className to be added to your PageHeaderContentText
|
|
269
|
+
*/
|
|
231
270
|
className: prop_types.default.string,
|
|
271
|
+
/**
|
|
272
|
+
* The PageHeaderContent's subtitle
|
|
273
|
+
*/
|
|
232
274
|
subtitle: prop_types.default.string
|
|
233
275
|
};
|
|
234
276
|
const PageHeaderHeroImage = ({ className, children, ...other }) => {
|
|
@@ -244,7 +286,13 @@ const PageHeaderHeroImage = ({ className, children, ...other }) => {
|
|
|
244
286
|
};
|
|
245
287
|
PageHeaderHeroImage.displayName = "PageHeaderHeroImage";
|
|
246
288
|
PageHeaderHeroImage.propTypes = {
|
|
289
|
+
/**
|
|
290
|
+
* Provide child elements to be rendered inside PageHeaderHeroImage.
|
|
291
|
+
*/
|
|
247
292
|
children: prop_types.default.node,
|
|
293
|
+
/**
|
|
294
|
+
* Specify an optional className to be added to your PageHeaderHeroImage
|
|
295
|
+
*/
|
|
248
296
|
className: prop_types.default.string
|
|
249
297
|
};
|
|
250
298
|
const PageHeaderTabBar = react.default.forwardRef(({ className, children, tags = [], ...other }, ref) => {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
const require_runtime = require("../../_virtual/_rolldown/runtime.js");
|
|
9
9
|
const require_usePrefix = require("../../internal/usePrefix.js");
|
|
10
10
|
const require_index = require("../SkeletonText/index.js");
|
|
11
|
-
let react = require("react");
|
|
12
|
-
react = require_runtime.__toESM(react);
|
|
13
11
|
let classnames = require("classnames");
|
|
14
12
|
classnames = require_runtime.__toESM(classnames);
|
|
13
|
+
let react = require("react");
|
|
14
|
+
react = require_runtime.__toESM(react);
|
|
15
15
|
let prop_types = require("prop-types");
|
|
16
16
|
prop_types = require_runtime.__toESM(prop_types);
|
|
17
17
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -40,6 +40,10 @@ function PaginationSkeleton({ className, ...rest }) {
|
|
|
40
40
|
})]
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
PaginationSkeleton.propTypes = {
|
|
43
|
+
PaginationSkeleton.propTypes = {
|
|
44
|
+
/**
|
|
45
|
+
* Specify an optional className to add.
|
|
46
|
+
*/
|
|
47
|
+
className: prop_types.default.string };
|
|
44
48
|
//#endregion
|
|
45
49
|
exports.default = PaginationSkeleton;
|
|
@@ -15,6 +15,10 @@ export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
15
15
|
* The description for the backward icon.
|
|
16
16
|
*/
|
|
17
17
|
backwardText?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The tooltip position for the backward button.
|
|
20
|
+
*/
|
|
21
|
+
backwardTextTooltipPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
18
22
|
/**
|
|
19
23
|
* The CSS class names.
|
|
20
24
|
*/
|
|
@@ -27,6 +31,10 @@ export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
27
31
|
* The description for the forward icon.
|
|
28
32
|
*/
|
|
29
33
|
forwardText?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The tooltip position for the forward button.
|
|
36
|
+
*/
|
|
37
|
+
forwardTextTooltipPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
30
38
|
/**
|
|
31
39
|
* The unique ID of this component instance.
|
|
32
40
|
*/
|