@carbon/react 1.83.0 → 1.84.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 +909 -874
- package/README.md +1 -1
- package/es/components/AILabel/index.js +27 -30
- package/es/components/AISkeleton/AISkeletonIcon.js +4 -5
- package/es/components/AISkeleton/AISkeletonPlaceholder.js +4 -5
- package/es/components/AISkeleton/AISkeletonText.js +4 -5
- package/es/components/Accordion/Accordion.Skeleton.js +9 -10
- package/es/components/Accordion/Accordion.js +10 -11
- package/es/components/Accordion/AccordionItem.js +13 -14
- package/es/components/Accordion/AccordionProvider.js +4 -5
- package/es/components/AspectRatio/AspectRatio.js +7 -8
- package/es/components/BadgeIndicator/index.js +5 -6
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +4 -5
- package/es/components/Button/Button.Skeleton.js +7 -8
- package/es/components/Button/ButtonBase.js +23 -24
- package/es/components/ChatButton/ChatButton.Skeleton.js +5 -6
- package/es/components/ChatButton/ChatButton.js +11 -12
- package/es/components/Checkbox/Checkbox.Skeleton.js +4 -5
- package/es/components/Checkbox/Checkbox.js +19 -20
- package/es/components/CheckboxGroup/CheckboxGroup.js +16 -17
- package/es/components/ClassPrefix/index.js +4 -5
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +5 -6
- package/es/components/CodeSnippet/CodeSnippet.js +25 -26
- package/es/components/ComboBox/ComboBox.js +24 -30
- package/es/components/ComboBox/tools/filter.js +9 -12
- package/es/components/ComboButton/index.js +16 -18
- package/es/components/ComposedModal/ComposedModal.js +50 -36
- package/es/components/ComposedModal/ModalFooter.js +37 -42
- package/es/components/ComposedModal/ModalHeader.js +14 -15
- package/es/components/ContainedList/ContainedList.js +10 -11
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +9 -10
- package/es/components/ContentSwitcher/ContentSwitcher.d.ts +9 -29
- package/es/components/ContentSwitcher/ContentSwitcher.js +96 -128
- package/es/components/ContentSwitcher/index.d.ts +3 -4
- package/es/components/ContextMenu/useContextMenu.js +1 -2
- package/es/components/Copy/Copy.js +11 -12
- package/es/components/CopyButton/CopyButton.js +10 -11
- package/es/components/DataTable/DataTable.js +45 -53
- package/es/components/DataTable/Table.js +15 -18
- package/es/components/DataTable/TableBatchAction.js +8 -11
- package/es/components/DataTable/TableBatchActions.js +18 -20
- package/es/components/DataTable/TableBody.js +8 -11
- package/es/components/DataTable/TableContainer.js +9 -10
- package/es/components/DataTable/TableDecoratorRow.js +4 -5
- package/es/components/DataTable/TableExpandHeader.js +14 -15
- package/es/components/DataTable/TableExpandRow.js +13 -14
- package/es/components/DataTable/TableExpandedRow.js +6 -7
- package/es/components/DataTable/TableHeader.js +15 -16
- package/es/components/DataTable/TableSelectAll.js +11 -12
- package/es/components/DataTable/TableSelectRow.js +12 -13
- package/es/components/DataTable/TableSlugRow.js +4 -5
- package/es/components/DataTable/TableToolbar.js +7 -8
- package/es/components/DataTable/TableToolbarMenu.js +8 -9
- package/es/components/DataTable/TableToolbarSearch.js +22 -24
- package/es/components/DataTable/state/sorting.js +3 -4
- package/es/components/DataTable/tools/filter.js +10 -12
- package/es/components/DataTable/tools/normalize.js +6 -8
- package/es/components/DataTable/tools/sorting.js +24 -30
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +11 -12
- package/es/components/DatePicker/DatePicker.Skeleton.js +7 -8
- package/es/components/DatePicker/DatePicker.js +88 -65
- package/es/components/DatePickerInput/DatePickerInput.js +5 -6
- package/es/components/Dialog/index.d.ts +193 -8
- package/es/components/Dialog/index.js +454 -35
- package/es/components/Dropdown/Dropdown.Skeleton.js +6 -7
- package/es/components/Dropdown/Dropdown.js +40 -43
- package/es/components/ErrorBoundary/ErrorBoundary.js +2 -2
- package/es/components/ExpandableSearch/ExpandableSearch.js +9 -10
- package/es/components/FeatureFlags/index.js +11 -12
- package/es/components/FileUploader/FileUploader.Skeleton.js +4 -5
- package/es/components/FileUploader/FileUploader.js +22 -24
- package/es/components/FileUploader/FileUploaderButton.js +16 -17
- package/es/components/FileUploader/FileUploaderDropContainer.js +15 -16
- package/es/components/FileUploader/FileUploaderItem.js +13 -14
- package/es/components/FileUploader/Filename.js +9 -10
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +4 -5
- package/es/components/FluidComboBox/FluidComboBox.js +5 -6
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +5 -6
- package/es/components/FluidDatePicker/FluidDatePicker.js +10 -11
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +4 -5
- package/es/components/FluidDropdown/FluidDropdown.js +5 -6
- package/es/components/FluidForm/FluidForm.js +5 -6
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +4 -5
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +6 -7
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +4 -5
- package/es/components/FluidNumberInput/FluidNumberInput.d.ts +40 -1
- package/es/components/FluidNumberInput/FluidNumberInput.js +38 -5
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +4 -5
- package/es/components/FluidSearch/FluidSearch.js +4 -5
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +4 -5
- package/es/components/FluidSelect/FluidSelect.js +5 -6
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +4 -5
- package/es/components/FluidTextArea/FluidTextArea.js +4 -5
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +4 -5
- package/es/components/FluidTextInput/FluidTextInput.js +5 -6
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +5 -6
- package/es/components/FluidTimePicker/FluidTimePicker.js +11 -12
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +5 -6
- package/es/components/Form/Form.js +5 -6
- package/es/components/FormGroup/FormGroup.js +11 -12
- package/es/components/FormItem/FormItem.js +5 -6
- package/es/components/FormLabel/FormLabel.js +6 -7
- package/es/components/Grid/CSSGrid.js +17 -19
- package/es/components/Grid/Column.js +28 -27
- package/es/components/Grid/ColumnHang.js +6 -7
- package/es/components/Grid/FlexGrid.js +9 -10
- package/es/components/Grid/GridContext.js +5 -6
- package/es/components/Grid/Row.js +8 -9
- package/es/components/Heading/index.js +5 -6
- package/es/components/Icon/Icon.Skeleton.js +4 -5
- package/es/components/IconButton/index.js +20 -21
- package/es/components/IconIndicator/index.js +7 -8
- package/es/components/IdPrefix/index.js +4 -5
- package/es/components/InlineLoading/InlineLoading.js +9 -10
- package/es/components/Layer/index.js +8 -9
- package/es/components/Layout/index.js +21 -26
- package/es/components/LayoutDirection/LayoutDirection.js +6 -7
- package/es/components/Link/Link.d.ts +1 -1
- package/es/components/Link/Link.js +14 -15
- package/es/components/ListBox/ListBoxField.js +6 -7
- package/es/components/ListBox/ListBoxMenu.js +5 -6
- package/es/components/ListBox/ListBoxMenuIcon.js +4 -5
- package/es/components/ListBox/ListBoxMenuItem.js +8 -10
- package/es/components/ListBox/ListBoxSelection.js +8 -9
- package/es/components/ListBox/next/ListBoxSelection.js +9 -10
- package/es/components/ListBox/next/ListBoxTrigger.js +5 -6
- package/es/components/ListItem/ListItem.js +5 -6
- package/es/components/Loading/Loading.js +8 -9
- package/es/components/Menu/Menu.js +23 -24
- package/es/components/Menu/MenuItem.js +39 -44
- package/es/components/MenuButton/index.js +16 -18
- package/es/components/Modal/Modal.js +74 -65
- package/es/components/ModalWrapper/ModalWrapper.js +2 -2
- package/es/components/MultiSelect/FilterableMultiSelect.js +67 -48
- package/es/components/MultiSelect/MultiSelect.js +43 -45
- package/es/components/MultiSelect/tools/sorting.js +11 -15
- package/es/components/Notification/Notification.js +96 -105
- package/es/components/NumberInput/NumberFormatPropTypes.d.ts +29 -0
- package/es/components/NumberInput/NumberFormatPropTypes.js +40 -0
- package/es/components/NumberInput/NumberInput.Skeleton.js +6 -7
- package/es/components/NumberInput/NumberInput.d.ts +39 -3
- package/es/components/NumberInput/NumberInput.js +174 -44
- package/es/components/OrderedList/OrderedList.js +7 -8
- package/es/components/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/es/components/OverflowMenu/OverflowMenu.js +39 -46
- package/es/components/OverflowMenu/next/index.js +12 -13
- package/es/components/PageHeader/PageHeader.d.ts +39 -14
- package/es/components/PageHeader/PageHeader.js +187 -81
- package/es/components/PageHeader/index.d.ts +2 -2
- package/es/components/PageHeader/index.js +1 -1
- package/es/components/Pagination/Pagination.Skeleton.js +4 -5
- package/es/components/Pagination/Pagination.js +24 -25
- package/es/components/Pagination/experimental/PageSelector.js +8 -9
- package/es/components/Pagination/experimental/Pagination.js +20 -21
- package/es/components/PaginationNav/PaginationNav.js +33 -38
- package/es/components/Popover/index.js +26 -28
- package/es/components/ProgressBar/ProgressBar.js +11 -12
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +5 -6
- package/es/components/ProgressIndicator/ProgressIndicator.js +29 -32
- package/es/components/RadioTile/RadioTile.js +17 -18
- package/es/components/Search/Search.Skeleton.js +5 -6
- package/es/components/Search/Search.js +26 -29
- package/es/components/Select/Select.Skeleton.js +5 -6
- package/es/components/Select/Select.js +24 -25
- package/es/components/SelectItem/SelectItem.js +8 -9
- package/es/components/SelectItemGroup/SelectItemGroup.js +7 -8
- package/es/components/ShapeIndicator/index.js +7 -8
- package/es/components/SkeletonIcon/SkeletonIcon.js +4 -5
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +4 -5
- package/es/components/SkeletonText/SkeletonText.js +8 -9
- package/es/components/Slider/Slider.Skeleton.js +8 -9
- package/es/components/Slider/Slider.js +75 -83
- package/es/components/Slider/SliderHandles.js +6 -6
- package/es/components/StructuredList/StructuredList.Skeleton.js +5 -6
- package/es/components/Tabs/Tabs.Skeleton.js +5 -6
- package/es/components/Tabs/Tabs.js +83 -98
- package/es/components/Tabs/usePressable.js +7 -8
- package/es/components/Tag/DismissibleTag.js +16 -17
- package/es/components/Tag/OperationalTag.js +10 -11
- package/es/components/Tag/SelectableTag.js +13 -14
- package/es/components/Tag/Tag.Skeleton.js +5 -6
- package/es/components/Tag/Tag.js +19 -20
- package/es/components/Text/Text.js +6 -7
- package/es/components/Text/TextDirection.js +5 -6
- package/es/components/TextArea/TextArea.js +7 -7
- package/es/components/TextInput/ControlledPasswordInput.js +24 -25
- package/es/components/TextInput/PasswordInput.js +26 -27
- package/es/components/TextInput/TextInput.Skeleton.js +5 -6
- package/es/components/TextInput/TextInput.js +27 -28
- package/es/components/TextInput/util.js +14 -17
- package/es/components/Theme/index.js +10 -12
- package/es/components/Tile/Tile.js +68 -74
- package/es/components/TileGroup/TileGroup.d.ts +4 -4
- package/es/components/TileGroup/TileGroup.js +45 -53
- package/es/components/TileGroup/index.d.ts +3 -3
- package/es/components/Toggle/Toggle.Skeleton.js +4 -5
- package/es/components/Toggle/Toggle.js +17 -18
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +6 -7
- package/es/components/Toggletip/index.js +33 -39
- package/es/components/Tooltip/DefinitionTooltip.js +13 -14
- package/es/components/Tooltip/Tooltip.js +15 -16
- package/es/components/TreeView/TreeNode.js +20 -21
- package/es/components/TreeView/TreeView.js +14 -16
- package/es/components/UIShell/Content.js +6 -7
- package/es/components/UIShell/Header.js +5 -6
- package/es/components/UIShell/HeaderContainer.js +5 -6
- package/es/components/UIShell/HeaderGlobalAction.js +12 -13
- package/es/components/UIShell/HeaderMenu.d.ts +10 -112
- package/es/components/UIShell/HeaderMenu.js +154 -201
- package/es/components/UIShell/HeaderMenuButton.js +10 -11
- package/es/components/UIShell/HeaderMenuItem.js +12 -12
- package/es/components/UIShell/HeaderName.js +6 -7
- package/es/components/UIShell/HeaderNavigation.js +7 -8
- package/es/components/UIShell/HeaderPanel.js +9 -10
- package/es/components/UIShell/HeaderSideNavItems.js +5 -6
- package/es/components/UIShell/Link.js +8 -9
- package/es/components/UIShell/SideNav.js +23 -25
- package/es/components/UIShell/SideNavDetails.js +6 -7
- package/es/components/UIShell/SideNavDivider.js +3 -4
- package/es/components/UIShell/SideNavFooter.js +6 -7
- package/es/components/UIShell/SideNavHeader.js +5 -6
- package/es/components/UIShell/SideNavIcon.js +5 -6
- package/es/components/UIShell/SideNavItem.js +5 -6
- package/es/components/UIShell/SideNavItems.js +5 -6
- package/es/components/UIShell/SideNavLink.js +10 -11
- package/es/components/UIShell/SideNavLinkText.js +5 -6
- package/es/components/UIShell/SideNavMenu.js +11 -12
- package/es/components/UIShell/SkipToContent.js +7 -8
- package/es/components/UIShell/Switcher.js +4 -5
- package/es/components/UIShell/SwitcherDivider.js +4 -5
- package/es/components/UnorderedList/UnorderedList.js +6 -7
- package/es/index.js +3 -3
- package/es/internal/FloatingMenu.js +26 -28
- package/es/internal/Selection.js +15 -17
- package/es/internal/getAnnouncement.d.ts +8 -0
- package/es/internal/getAnnouncement.js +22 -0
- package/es/internal/keyboard/match.js +6 -7
- package/es/internal/useControllableState.d.ts +1 -1
- package/es/internal/useControllableState.js +8 -9
- package/es/internal/useDelayedState.js +1 -2
- package/es/internal/useDocumentLang.d.ts +12 -0
- package/es/internal/useId.js +2 -4
- package/es/internal/useMatchMedia.js +1 -2
- package/es/internal/useMergedRefs.d.ts +1 -1
- package/es/internal/useNoInteractiveChildren.js +2 -4
- package/es/internal/useNormalizedInputProps.js +9 -10
- package/es/internal/useOverflowItems.d.ts +29 -0
- package/es/internal/useOverflowItems.js +122 -0
- package/es/internal/useResizeObserver.js +4 -5
- package/es/internal/useSavedCallback.js +1 -3
- package/es/internal/wrapFocus.js +20 -29
- package/es/prop-types/deprecate.js +1 -4
- package/es/prop-types/deprecateValuesWithin.js +1 -4
- package/es/prop-types/isRequiredOneOf.js +1 -4
- package/es/prop-types/requiredIfGivenPropIsTruthy.js +1 -4
- package/es/tools/events.js +1 -4
- package/es/tools/mergeRefs.js +9 -14
- package/es/tools/uniqueId.js +1 -2
- package/es/tools/wrapComponent.js +9 -11
- package/lib/components/AILabel/index.js +27 -30
- package/lib/components/AISkeleton/AISkeletonIcon.js +4 -5
- package/lib/components/AISkeleton/AISkeletonPlaceholder.js +4 -5
- package/lib/components/AISkeleton/AISkeletonText.js +4 -5
- package/lib/components/Accordion/Accordion.Skeleton.js +9 -10
- package/lib/components/Accordion/Accordion.js +10 -11
- package/lib/components/Accordion/AccordionItem.js +13 -14
- package/lib/components/Accordion/AccordionProvider.js +4 -5
- package/lib/components/AspectRatio/AspectRatio.js +7 -8
- package/lib/components/BadgeIndicator/index.js +5 -6
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +4 -5
- package/lib/components/Button/Button.Skeleton.js +7 -8
- package/lib/components/Button/ButtonBase.js +23 -24
- package/lib/components/ChatButton/ChatButton.Skeleton.js +5 -6
- package/lib/components/ChatButton/ChatButton.js +11 -12
- package/lib/components/Checkbox/Checkbox.Skeleton.js +4 -5
- package/lib/components/Checkbox/Checkbox.js +19 -20
- package/lib/components/CheckboxGroup/CheckboxGroup.js +16 -17
- package/lib/components/ClassPrefix/index.js +4 -5
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +5 -6
- package/lib/components/CodeSnippet/CodeSnippet.js +25 -26
- package/lib/components/ComboBox/ComboBox.js +24 -30
- package/lib/components/ComboBox/tools/filter.js +9 -12
- package/lib/components/ComboButton/index.js +16 -18
- package/lib/components/ComposedModal/ComposedModal.js +50 -36
- package/lib/components/ComposedModal/ModalFooter.js +37 -42
- package/lib/components/ComposedModal/ModalHeader.js +14 -15
- package/lib/components/ContainedList/ContainedList.js +10 -11
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +9 -10
- package/lib/components/ContentSwitcher/ContentSwitcher.d.ts +9 -29
- package/lib/components/ContentSwitcher/ContentSwitcher.js +94 -126
- package/lib/components/ContentSwitcher/index.d.ts +3 -4
- package/lib/components/ContextMenu/useContextMenu.js +1 -2
- package/lib/components/Copy/Copy.js +11 -12
- package/lib/components/CopyButton/CopyButton.js +10 -11
- package/lib/components/DataTable/DataTable.js +45 -53
- package/lib/components/DataTable/Table.js +15 -18
- package/lib/components/DataTable/TableBatchAction.js +8 -11
- package/lib/components/DataTable/TableBatchActions.js +18 -20
- package/lib/components/DataTable/TableBody.js +8 -11
- package/lib/components/DataTable/TableContainer.js +9 -10
- package/lib/components/DataTable/TableDecoratorRow.js +4 -5
- package/lib/components/DataTable/TableExpandHeader.js +14 -15
- package/lib/components/DataTable/TableExpandRow.js +13 -14
- package/lib/components/DataTable/TableExpandedRow.js +6 -7
- package/lib/components/DataTable/TableHeader.js +15 -16
- package/lib/components/DataTable/TableSelectAll.js +11 -12
- package/lib/components/DataTable/TableSelectRow.js +12 -13
- package/lib/components/DataTable/TableSlugRow.js +4 -5
- package/lib/components/DataTable/TableToolbar.js +7 -8
- package/lib/components/DataTable/TableToolbarMenu.js +8 -9
- package/lib/components/DataTable/TableToolbarSearch.js +22 -24
- package/lib/components/DataTable/state/sorting.js +3 -4
- package/lib/components/DataTable/tools/filter.js +10 -12
- package/lib/components/DataTable/tools/normalize.js +6 -8
- package/lib/components/DataTable/tools/sorting.js +24 -30
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +11 -12
- package/lib/components/DatePicker/DatePicker.Skeleton.js +7 -8
- package/lib/components/DatePicker/DatePicker.js +87 -64
- package/lib/components/DatePickerInput/DatePickerInput.js +5 -6
- package/lib/components/Dialog/index.d.ts +193 -8
- package/lib/components/Dialog/index.js +457 -33
- package/lib/components/Dropdown/Dropdown.Skeleton.js +6 -7
- package/lib/components/Dropdown/Dropdown.js +40 -43
- package/lib/components/ErrorBoundary/ErrorBoundary.js +2 -2
- package/lib/components/ExpandableSearch/ExpandableSearch.js +9 -10
- package/lib/components/FeatureFlags/index.js +11 -12
- package/lib/components/FileUploader/FileUploader.Skeleton.js +4 -5
- package/lib/components/FileUploader/FileUploader.js +22 -24
- package/lib/components/FileUploader/FileUploaderButton.js +16 -17
- package/lib/components/FileUploader/FileUploaderDropContainer.js +15 -16
- package/lib/components/FileUploader/FileUploaderItem.js +13 -14
- package/lib/components/FileUploader/Filename.js +9 -10
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +4 -5
- package/lib/components/FluidComboBox/FluidComboBox.js +5 -6
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +5 -6
- package/lib/components/FluidDatePicker/FluidDatePicker.js +10 -11
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +4 -5
- package/lib/components/FluidDropdown/FluidDropdown.js +5 -6
- package/lib/components/FluidForm/FluidForm.js +5 -6
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +4 -5
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +6 -7
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +4 -5
- package/lib/components/FluidNumberInput/FluidNumberInput.d.ts +40 -1
- package/lib/components/FluidNumberInput/FluidNumberInput.js +38 -5
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +4 -5
- package/lib/components/FluidSearch/FluidSearch.js +4 -5
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +4 -5
- package/lib/components/FluidSelect/FluidSelect.js +5 -6
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +4 -5
- package/lib/components/FluidTextArea/FluidTextArea.js +4 -5
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +4 -5
- package/lib/components/FluidTextInput/FluidTextInput.js +5 -6
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +5 -6
- package/lib/components/FluidTimePicker/FluidTimePicker.js +11 -12
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +5 -6
- package/lib/components/Form/Form.js +5 -6
- package/lib/components/FormGroup/FormGroup.js +11 -12
- package/lib/components/FormItem/FormItem.js +5 -6
- package/lib/components/FormLabel/FormLabel.js +6 -7
- package/lib/components/Grid/CSSGrid.js +17 -19
- package/lib/components/Grid/Column.js +28 -27
- package/lib/components/Grid/ColumnHang.js +6 -7
- package/lib/components/Grid/FlexGrid.js +9 -10
- package/lib/components/Grid/GridContext.js +5 -6
- package/lib/components/Grid/Row.js +8 -9
- package/lib/components/Heading/index.js +5 -6
- package/lib/components/Icon/Icon.Skeleton.js +4 -5
- package/lib/components/IconButton/index.js +20 -21
- package/lib/components/IconIndicator/index.js +7 -8
- package/lib/components/IdPrefix/index.js +4 -5
- package/lib/components/InlineLoading/InlineLoading.js +9 -10
- package/lib/components/Layer/index.js +8 -9
- package/lib/components/Layout/index.js +21 -26
- package/lib/components/LayoutDirection/LayoutDirection.js +6 -7
- package/lib/components/Link/Link.d.ts +1 -1
- package/lib/components/Link/Link.js +14 -15
- package/lib/components/ListBox/ListBoxField.js +6 -7
- package/lib/components/ListBox/ListBoxMenu.js +5 -6
- package/lib/components/ListBox/ListBoxMenuIcon.js +4 -5
- package/lib/components/ListBox/ListBoxMenuItem.js +8 -10
- package/lib/components/ListBox/ListBoxSelection.js +8 -9
- package/lib/components/ListBox/next/ListBoxSelection.js +9 -10
- package/lib/components/ListBox/next/ListBoxTrigger.js +5 -6
- package/lib/components/ListItem/ListItem.js +5 -6
- package/lib/components/Loading/Loading.js +8 -9
- package/lib/components/Menu/Menu.js +23 -24
- package/lib/components/Menu/MenuItem.js +39 -44
- package/lib/components/MenuButton/index.js +16 -18
- package/lib/components/Modal/Modal.js +74 -65
- package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.js +66 -47
- package/lib/components/MultiSelect/MultiSelect.js +43 -45
- package/lib/components/MultiSelect/tools/sorting.js +11 -15
- package/lib/components/Notification/Notification.js +96 -105
- package/lib/components/NumberInput/NumberFormatPropTypes.d.ts +29 -0
- package/lib/components/NumberInput/NumberFormatPropTypes.js +48 -0
- package/lib/components/NumberInput/NumberInput.Skeleton.js +6 -7
- package/lib/components/NumberInput/NumberInput.d.ts +39 -3
- package/lib/components/NumberInput/NumberInput.js +173 -43
- package/lib/components/OrderedList/OrderedList.js +7 -8
- package/lib/components/OverflowMenu/OverflowMenu.d.ts +1 -1
- package/lib/components/OverflowMenu/OverflowMenu.js +39 -46
- package/lib/components/OverflowMenu/next/index.js +12 -13
- package/lib/components/PageHeader/PageHeader.d.ts +39 -14
- package/lib/components/PageHeader/PageHeader.js +185 -81
- package/lib/components/PageHeader/index.d.ts +2 -2
- package/lib/components/PageHeader/index.js +0 -2
- package/lib/components/Pagination/Pagination.Skeleton.js +4 -5
- package/lib/components/Pagination/Pagination.js +24 -25
- package/lib/components/Pagination/experimental/PageSelector.js +8 -9
- package/lib/components/Pagination/experimental/Pagination.js +20 -21
- package/lib/components/PaginationNav/PaginationNav.js +33 -38
- package/lib/components/Popover/index.js +26 -28
- package/lib/components/ProgressBar/ProgressBar.js +11 -12
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +5 -6
- package/lib/components/ProgressIndicator/ProgressIndicator.js +29 -32
- package/lib/components/RadioTile/RadioTile.js +17 -18
- package/lib/components/Search/Search.Skeleton.js +5 -6
- package/lib/components/Search/Search.js +26 -29
- package/lib/components/Select/Select.Skeleton.js +5 -6
- package/lib/components/Select/Select.js +24 -25
- package/lib/components/SelectItem/SelectItem.js +8 -9
- package/lib/components/SelectItemGroup/SelectItemGroup.js +7 -8
- package/lib/components/ShapeIndicator/index.js +7 -8
- package/lib/components/SkeletonIcon/SkeletonIcon.js +4 -5
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +4 -5
- package/lib/components/SkeletonText/SkeletonText.js +8 -9
- package/lib/components/Slider/Slider.Skeleton.js +8 -9
- package/lib/components/Slider/Slider.js +75 -83
- package/lib/components/Slider/SliderHandles.js +6 -6
- package/lib/components/StructuredList/StructuredList.Skeleton.js +5 -6
- package/lib/components/Tabs/Tabs.Skeleton.js +5 -6
- package/lib/components/Tabs/Tabs.js +83 -98
- package/lib/components/Tabs/usePressable.js +7 -8
- package/lib/components/Tag/DismissibleTag.js +16 -17
- package/lib/components/Tag/OperationalTag.js +10 -11
- package/lib/components/Tag/SelectableTag.js +13 -14
- package/lib/components/Tag/Tag.Skeleton.js +5 -6
- package/lib/components/Tag/Tag.js +19 -20
- package/lib/components/Text/Text.js +6 -7
- package/lib/components/Text/TextDirection.js +5 -6
- package/lib/components/TextArea/TextArea.js +7 -7
- package/lib/components/TextInput/ControlledPasswordInput.js +24 -25
- package/lib/components/TextInput/PasswordInput.js +26 -27
- package/lib/components/TextInput/TextInput.Skeleton.js +5 -6
- package/lib/components/TextInput/TextInput.js +27 -28
- package/lib/components/TextInput/util.js +14 -17
- package/lib/components/Theme/index.js +10 -12
- package/lib/components/Tile/Tile.js +68 -74
- package/lib/components/TileGroup/TileGroup.d.ts +4 -4
- package/lib/components/TileGroup/TileGroup.js +44 -52
- package/lib/components/TileGroup/index.d.ts +3 -3
- package/lib/components/Toggle/Toggle.Skeleton.js +4 -5
- package/lib/components/Toggle/Toggle.js +17 -18
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +6 -7
- package/lib/components/Toggletip/index.js +33 -39
- package/lib/components/Tooltip/DefinitionTooltip.js +13 -14
- package/lib/components/Tooltip/Tooltip.js +15 -16
- package/lib/components/TreeView/TreeNode.js +20 -21
- package/lib/components/TreeView/TreeView.js +14 -16
- package/lib/components/UIShell/Content.js +6 -7
- package/lib/components/UIShell/Header.js +5 -6
- package/lib/components/UIShell/HeaderContainer.js +5 -6
- package/lib/components/UIShell/HeaderGlobalAction.js +12 -13
- package/lib/components/UIShell/HeaderMenu.d.ts +10 -112
- package/lib/components/UIShell/HeaderMenu.js +152 -199
- package/lib/components/UIShell/HeaderMenuButton.js +10 -11
- package/lib/components/UIShell/HeaderMenuItem.js +12 -12
- package/lib/components/UIShell/HeaderName.js +6 -7
- package/lib/components/UIShell/HeaderNavigation.js +7 -8
- package/lib/components/UIShell/HeaderPanel.js +9 -10
- package/lib/components/UIShell/HeaderSideNavItems.js +5 -6
- package/lib/components/UIShell/Link.js +8 -9
- package/lib/components/UIShell/SideNav.js +23 -25
- package/lib/components/UIShell/SideNavDetails.js +6 -7
- package/lib/components/UIShell/SideNavDivider.js +3 -4
- package/lib/components/UIShell/SideNavFooter.js +6 -7
- package/lib/components/UIShell/SideNavHeader.js +5 -6
- package/lib/components/UIShell/SideNavIcon.js +5 -6
- package/lib/components/UIShell/SideNavItem.js +5 -6
- package/lib/components/UIShell/SideNavItems.js +5 -6
- package/lib/components/UIShell/SideNavLink.js +10 -11
- package/lib/components/UIShell/SideNavLinkText.js +5 -6
- package/lib/components/UIShell/SideNavMenu.js +11 -12
- package/lib/components/UIShell/SkipToContent.js +7 -8
- package/lib/components/UIShell/Switcher.js +4 -5
- package/lib/components/UIShell/SwitcherDivider.js +4 -5
- package/lib/components/UnorderedList/UnorderedList.js +6 -7
- package/lib/index.js +36 -36
- package/lib/internal/FloatingMenu.js +26 -28
- package/lib/internal/Selection.js +15 -17
- package/lib/internal/getAnnouncement.d.ts +8 -0
- package/lib/internal/getAnnouncement.js +26 -0
- package/lib/internal/keyboard/match.js +6 -7
- package/lib/internal/useControllableState.d.ts +1 -1
- package/lib/internal/useControllableState.js +8 -9
- package/lib/internal/useDelayedState.js +1 -2
- package/lib/internal/useDocumentLang.d.ts +12 -0
- package/lib/internal/useId.js +2 -4
- package/lib/internal/useMatchMedia.js +1 -2
- package/lib/internal/useMergedRefs.d.ts +1 -1
- package/lib/internal/useNoInteractiveChildren.js +2 -4
- package/lib/internal/useNormalizedInputProps.js +9 -10
- package/lib/internal/useOverflowItems.d.ts +29 -0
- package/lib/internal/useOverflowItems.js +126 -0
- package/lib/internal/useResizeObserver.js +4 -5
- package/lib/internal/useSavedCallback.js +1 -3
- package/lib/internal/wrapFocus.js +20 -29
- package/lib/prop-types/deprecate.js +1 -4
- package/lib/prop-types/deprecateValuesWithin.js +1 -4
- package/lib/prop-types/isRequiredOneOf.js +1 -4
- package/lib/prop-types/requiredIfGivenPropIsTruthy.js +1 -4
- package/lib/tools/events.js +1 -4
- package/lib/tools/mergeRefs.js +9 -14
- package/lib/tools/uniqueId.js +1 -2
- package/lib/tools/wrapComponent.js +9 -11
- package/package.json +21 -19
- package/telemetry.yml +25 -1
- package/es/components/ContentSwitcher/index.js +0 -13
- package/es/feature-flags.d.ts +0 -7
- package/es/internal/useAnnouncer.js +0 -21
- package/lib/components/ContentSwitcher/index.js +0 -18
- package/lib/feature-flags.d.ts +0 -7
- package/lib/internal/useAnnouncer.js +0 -25
|
@@ -27,27 +27,26 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
27
27
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
28
28
|
|
|
29
29
|
var _CaretLeft, _CaretRight;
|
|
30
|
-
function Pagination(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} = _ref;
|
|
30
|
+
function Pagination({
|
|
31
|
+
backwardText = 'Previous page',
|
|
32
|
+
children = undefined,
|
|
33
|
+
className = null,
|
|
34
|
+
disabled = false,
|
|
35
|
+
forwardText = 'Next page',
|
|
36
|
+
id = 1,
|
|
37
|
+
initialPage = 1,
|
|
38
|
+
itemsPerPageText = 'Items per page:',
|
|
39
|
+
itemRangeText = (min, max, total) => `${min}–${max} of ${total} items`,
|
|
40
|
+
itemText = (min, max) => `${min}–${max} items`,
|
|
41
|
+
onChange,
|
|
42
|
+
pageRangeText = (current, total) => `${current} of ${total} pages`,
|
|
43
|
+
pageSize = 10,
|
|
44
|
+
pageSizes = undefined,
|
|
45
|
+
pageText = page => `page ${page}`,
|
|
46
|
+
pagesUnknown = false,
|
|
47
|
+
totalItems = undefined,
|
|
48
|
+
...other
|
|
49
|
+
}) {
|
|
51
50
|
const [currentPage, setCurrentPage] = React.useState(initialPage);
|
|
52
51
|
const [currentPageSize, setCurrentPageSize] = React.useState(pageSize);
|
|
53
52
|
const prefix = usePrefix.usePrefix();
|
|
@@ -51,8 +51,7 @@ function usePrevious(value) {
|
|
|
51
51
|
});
|
|
52
52
|
return ref.current;
|
|
53
53
|
}
|
|
54
|
-
function calculateCuts(page, totalItems, itemsDisplayedOnPage) {
|
|
55
|
-
let splitPoint = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
54
|
+
function calculateCuts(page, totalItems, itemsDisplayedOnPage, splitPoint = null) {
|
|
56
55
|
if (itemsDisplayedOnPage >= totalItems) {
|
|
57
56
|
return {
|
|
58
57
|
front: 0,
|
|
@@ -75,13 +74,12 @@ function calculateCuts(page, totalItems, itemsDisplayedOnPage) {
|
|
|
75
74
|
back: backHidden
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
|
-
function DirectionButton(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} = _ref;
|
|
77
|
+
function DirectionButton({
|
|
78
|
+
direction,
|
|
79
|
+
label,
|
|
80
|
+
disabled,
|
|
81
|
+
onClick
|
|
82
|
+
}) {
|
|
85
83
|
const prefix = usePrefix.usePrefix();
|
|
86
84
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
87
85
|
className: `${prefix}--pagination-nav__list-item`
|
|
@@ -93,13 +91,12 @@ function DirectionButton(_ref) {
|
|
|
93
91
|
onClick: onClick
|
|
94
92
|
}, direction === 'forward' ? _CaretRight || (_CaretRight = /*#__PURE__*/React__default["default"].createElement(iconsReact.CaretRight, null)) : _CaretLeft || (_CaretLeft = /*#__PURE__*/React__default["default"].createElement(iconsReact.CaretLeft, null))));
|
|
95
93
|
}
|
|
96
|
-
function PaginationItem(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
} = _ref2;
|
|
94
|
+
function PaginationItem({
|
|
95
|
+
page,
|
|
96
|
+
isActive,
|
|
97
|
+
onClick,
|
|
98
|
+
translateWithId: t = translateWithId
|
|
99
|
+
}) {
|
|
103
100
|
const prefix = usePrefix.usePrefix();
|
|
104
101
|
const itemLabel = t('carbon.pagination-nav.item');
|
|
105
102
|
return /*#__PURE__*/React__default["default"].createElement("li", {
|
|
@@ -116,15 +113,14 @@ function PaginationItem(_ref2) {
|
|
|
116
113
|
className: `${prefix}--pagination-nav__accessibility-label`
|
|
117
114
|
}, isActive ? `${t('carbon.pagination-nav.active')}, ${itemLabel}` : itemLabel), page));
|
|
118
115
|
}
|
|
119
|
-
function PaginationOverflow(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
} = _ref3;
|
|
116
|
+
function PaginationOverflow({
|
|
117
|
+
fromIndex = NaN,
|
|
118
|
+
count = NaN,
|
|
119
|
+
onSelect,
|
|
120
|
+
// eslint-disable-next-line react/prop-types
|
|
121
|
+
disableOverflow,
|
|
122
|
+
translateWithId: t = translateWithId
|
|
123
|
+
}) {
|
|
128
124
|
const prefix = usePrefix.usePrefix();
|
|
129
125
|
|
|
130
126
|
//If overflow is disabled, return a select tag with no select options
|
|
@@ -179,19 +175,18 @@ function PaginationOverflow(_ref3) {
|
|
|
179
175
|
}
|
|
180
176
|
return null;
|
|
181
177
|
}
|
|
182
|
-
const PaginationNav = /*#__PURE__*/React__default["default"].forwardRef(function PaginationNav(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
} = _ref4;
|
|
178
|
+
const PaginationNav = /*#__PURE__*/React__default["default"].forwardRef(function PaginationNav({
|
|
179
|
+
className,
|
|
180
|
+
onChange = () => {},
|
|
181
|
+
totalItems = NaN,
|
|
182
|
+
disableOverflow,
|
|
183
|
+
itemsShown = 10,
|
|
184
|
+
page = 0,
|
|
185
|
+
loop = false,
|
|
186
|
+
size = 'lg',
|
|
187
|
+
translateWithId: t = translateWithId,
|
|
188
|
+
...rest
|
|
189
|
+
}, ref) {
|
|
195
190
|
const smMediaQuery = `(max-width: ${layout.breakpoints.sm.width})`;
|
|
196
191
|
const isSm = useMatchMedia.useMatchMedia(smMediaQuery);
|
|
197
192
|
let numberOfPages;
|
|
@@ -43,25 +43,24 @@ const PopoverContext = /*#__PURE__*/React__default["default"].createContext({
|
|
|
43
43
|
* @deprecated Use NewPopoverAlignment instead.
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
|
-
const Popover = /*#__PURE__*/React__default["default"].forwardRef(function PopoverRenderFunction(
|
|
46
|
+
const Popover = /*#__PURE__*/React__default["default"].forwardRef(function PopoverRenderFunction({
|
|
47
|
+
isTabTip,
|
|
48
|
+
align: initialAlign = isTabTip ? 'bottom-start' : 'bottom',
|
|
49
|
+
as: BaseComponent = 'span',
|
|
50
|
+
autoAlign = false,
|
|
51
|
+
autoAlignBoundary,
|
|
52
|
+
caret = isTabTip ? false : true,
|
|
53
|
+
className: customClassName,
|
|
54
|
+
children,
|
|
55
|
+
dropShadow = true,
|
|
56
|
+
highContrast = false,
|
|
57
|
+
onRequestClose,
|
|
58
|
+
open,
|
|
59
|
+
alignmentAxisOffset,
|
|
60
|
+
...rest
|
|
61
|
+
},
|
|
47
62
|
//this is a workaround, have to come back and fix this.
|
|
48
63
|
forwardRef) {
|
|
49
|
-
let {
|
|
50
|
-
isTabTip,
|
|
51
|
-
align: initialAlign = isTabTip ? 'bottom-start' : 'bottom',
|
|
52
|
-
as: BaseComponent = 'span',
|
|
53
|
-
autoAlign = false,
|
|
54
|
-
autoAlignBoundary,
|
|
55
|
-
caret = isTabTip ? false : true,
|
|
56
|
-
className: customClassName,
|
|
57
|
-
children,
|
|
58
|
-
dropShadow = true,
|
|
59
|
-
highContrast = false,
|
|
60
|
-
onRequestClose,
|
|
61
|
-
open,
|
|
62
|
-
alignmentAxisOffset,
|
|
63
|
-
...rest
|
|
64
|
-
} = _ref;
|
|
65
64
|
const prefix = usePrefix.usePrefix();
|
|
66
65
|
const floating = React.useRef(null);
|
|
67
66
|
const caretRef = React.useRef(null);
|
|
@@ -75,10 +74,9 @@ forwardRef) {
|
|
|
75
74
|
onRequestClose?.();
|
|
76
75
|
}
|
|
77
76
|
});
|
|
78
|
-
useEvent.useWindowEvent('click',
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
} = _ref2;
|
|
77
|
+
useEvent.useWindowEvent('click', ({
|
|
78
|
+
target
|
|
79
|
+
}) => {
|
|
82
80
|
if (open && target instanceof Node && !popover.current?.contains(target)) {
|
|
83
81
|
onRequestClose?.();
|
|
84
82
|
}
|
|
@@ -348,13 +346,13 @@ Popover.propTypes = {
|
|
|
348
346
|
*/
|
|
349
347
|
open: PropTypes__default["default"].bool.isRequired
|
|
350
348
|
};
|
|
351
|
-
function PopoverContentRenderFunction(
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
349
|
+
function PopoverContentRenderFunction(
|
|
350
|
+
// eslint-disable-next-line react/prop-types
|
|
351
|
+
{
|
|
352
|
+
className,
|
|
353
|
+
children,
|
|
354
|
+
...rest
|
|
355
|
+
}, forwardRef) {
|
|
358
356
|
const prefix = usePrefix.usePrefix();
|
|
359
357
|
const {
|
|
360
358
|
setFloating,
|
|
@@ -24,18 +24,17 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
24
24
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
25
25
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
26
26
|
|
|
27
|
-
function ProgressBar(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref;
|
|
27
|
+
function ProgressBar({
|
|
28
|
+
className,
|
|
29
|
+
helperText,
|
|
30
|
+
hideLabel,
|
|
31
|
+
label,
|
|
32
|
+
max = 100,
|
|
33
|
+
size = 'big',
|
|
34
|
+
status = 'active',
|
|
35
|
+
type = 'default',
|
|
36
|
+
value
|
|
37
|
+
}) {
|
|
39
38
|
const labelId = useId.useId('progress-bar');
|
|
40
39
|
const helperId = useId.useId('progress-bar-helper');
|
|
41
40
|
const helperTextId = useId.useId('progress-bar-helper-text');
|
|
@@ -35,12 +35,11 @@ function Step() {
|
|
|
35
35
|
className: `${prefix}--progress-line`
|
|
36
36
|
})));
|
|
37
37
|
}
|
|
38
|
-
function ProgressIndicatorSkeleton(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
38
|
+
function ProgressIndicatorSkeleton({
|
|
39
|
+
className,
|
|
40
|
+
vertical,
|
|
41
|
+
...rest
|
|
42
|
+
}) {
|
|
44
43
|
const prefix = usePrefix.usePrefix();
|
|
45
44
|
return /*#__PURE__*/React__default["default"].createElement("ul", _rollupPluginBabelHelpers["extends"]({
|
|
46
45
|
className: cx__default["default"](`${prefix}--progress`, `${prefix}--skeleton`, {
|
|
@@ -40,16 +40,15 @@ const defaultTranslations = {
|
|
|
40
40
|
function translateWithId(messageId) {
|
|
41
41
|
return defaultTranslations[messageId];
|
|
42
42
|
}
|
|
43
|
-
function ProgressIndicator(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} = _ref;
|
|
43
|
+
function ProgressIndicator({
|
|
44
|
+
children,
|
|
45
|
+
className: customClassName,
|
|
46
|
+
currentIndex: controlledIndex = 0,
|
|
47
|
+
onChange,
|
|
48
|
+
spaceEqually,
|
|
49
|
+
vertical,
|
|
50
|
+
...rest
|
|
51
|
+
}) {
|
|
53
52
|
const prefix = usePrefix.usePrefix();
|
|
54
53
|
const [currentIndex, setCurrentIndex] = React.useState(controlledIndex);
|
|
55
54
|
const [prevControlledIndex, setPrevControlledIndex] = React.useState(controlledIndex);
|
|
@@ -124,20 +123,19 @@ ProgressIndicator.propTypes = {
|
|
|
124
123
|
*/
|
|
125
124
|
vertical: PropTypes__default["default"].bool
|
|
126
125
|
};
|
|
127
|
-
function ProgressStep(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
} = _ref2;
|
|
126
|
+
function ProgressStep({
|
|
127
|
+
label,
|
|
128
|
+
description,
|
|
129
|
+
className,
|
|
130
|
+
current,
|
|
131
|
+
complete,
|
|
132
|
+
invalid,
|
|
133
|
+
secondaryLabel,
|
|
134
|
+
disabled,
|
|
135
|
+
onClick,
|
|
136
|
+
translateWithId: t = translateWithId,
|
|
137
|
+
...rest
|
|
138
|
+
}) {
|
|
141
139
|
const prefix = usePrefix.usePrefix();
|
|
142
140
|
const classes = cx__default["default"]({
|
|
143
141
|
[`${prefix}--progress-step`]: true,
|
|
@@ -152,14 +150,13 @@ function ProgressStep(_ref2) {
|
|
|
152
150
|
onClick(e);
|
|
153
151
|
}
|
|
154
152
|
};
|
|
155
|
-
const SVGIcon =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
} = _ref3;
|
|
153
|
+
const SVGIcon = ({
|
|
154
|
+
complete,
|
|
155
|
+
current,
|
|
156
|
+
description,
|
|
157
|
+
invalid,
|
|
158
|
+
prefix
|
|
159
|
+
}) => {
|
|
163
160
|
if (invalid) {
|
|
164
161
|
return /*#__PURE__*/React__default["default"].createElement(iconsReact.Warning, {
|
|
165
162
|
className: `${prefix}--progress__warning`
|
|
@@ -31,24 +31,23 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
31
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
32
|
|
|
33
33
|
var _RadioButtonChecked, _RadioButton, _CheckmarkFilled;
|
|
34
|
-
const RadioTile = /*#__PURE__*/React__default["default"].forwardRef(function RadioTile(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = _ref;
|
|
34
|
+
const RadioTile = /*#__PURE__*/React__default["default"].forwardRef(function RadioTile({
|
|
35
|
+
children,
|
|
36
|
+
className: customClassName,
|
|
37
|
+
decorator,
|
|
38
|
+
disabled,
|
|
39
|
+
light,
|
|
40
|
+
checked,
|
|
41
|
+
name,
|
|
42
|
+
value,
|
|
43
|
+
id,
|
|
44
|
+
onChange = noopFn.noopFn,
|
|
45
|
+
tabIndex = 0,
|
|
46
|
+
hasRoundedCorners,
|
|
47
|
+
slug,
|
|
48
|
+
required,
|
|
49
|
+
...rest
|
|
50
|
+
}, ref) {
|
|
52
51
|
const prefix = usePrefix.usePrefix();
|
|
53
52
|
const inputId = useId.useFallbackId(id);
|
|
54
53
|
const className = cx__default["default"](customClassName, `${prefix}--tile`, `${prefix}--tile--selectable`, `${prefix}--tile--radio`, {
|
|
@@ -21,12 +21,11 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
23
23
|
|
|
24
|
-
const SearchSkeleton =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
24
|
+
const SearchSkeleton = ({
|
|
25
|
+
small = false,
|
|
26
|
+
className,
|
|
27
|
+
...rest
|
|
28
|
+
}) => {
|
|
30
29
|
const prefix = usePrefix.usePrefix();
|
|
31
30
|
const searchClasses = cx__default["default"](className, {
|
|
32
31
|
[`${prefix}--skeleton`]: true,
|
|
@@ -32,30 +32,29 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
32
32
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
33
|
|
|
34
34
|
var _Close;
|
|
35
|
-
const Search = /*#__PURE__*/React__default["default"].forwardRef(function Search(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} = _ref;
|
|
35
|
+
const Search = /*#__PURE__*/React__default["default"].forwardRef(function Search({
|
|
36
|
+
autoComplete = 'off',
|
|
37
|
+
className,
|
|
38
|
+
closeButtonLabelText = 'Clear search input',
|
|
39
|
+
defaultValue,
|
|
40
|
+
disabled,
|
|
41
|
+
isExpanded = true,
|
|
42
|
+
id,
|
|
43
|
+
labelText,
|
|
44
|
+
// @ts-expect-error: deprecated prop
|
|
45
|
+
light,
|
|
46
|
+
onChange = () => {},
|
|
47
|
+
onClear = () => {},
|
|
48
|
+
onKeyDown,
|
|
49
|
+
onExpand,
|
|
50
|
+
placeholder = 'Search',
|
|
51
|
+
renderIcon,
|
|
52
|
+
role = 'searchbox',
|
|
53
|
+
size = 'md',
|
|
54
|
+
type = 'text',
|
|
55
|
+
value,
|
|
56
|
+
...rest
|
|
57
|
+
}, forwardRef) {
|
|
59
58
|
const hasPropValue = value || defaultValue ? true : false;
|
|
60
59
|
const prefix = usePrefix.usePrefix();
|
|
61
60
|
const {
|
|
@@ -145,7 +144,6 @@ const Search = /*#__PURE__*/React__default["default"].forwardRef(function Search
|
|
|
145
144
|
"aria-label": placeholder,
|
|
146
145
|
className: searchClasses
|
|
147
146
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
148
|
-
"aria-label": onExpand ? 'button' : undefined,
|
|
149
147
|
"aria-labelledby": onExpand ? searchId : undefined,
|
|
150
148
|
role: onExpand ? 'button' : undefined,
|
|
151
149
|
className: `${prefix}--search-magnifier`,
|
|
@@ -266,10 +264,9 @@ Search.propTypes = {
|
|
|
266
264
|
*/
|
|
267
265
|
value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
|
|
268
266
|
};
|
|
269
|
-
function CustomSearchIcon(
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
} = _ref2;
|
|
267
|
+
function CustomSearchIcon({
|
|
268
|
+
icon: Icon
|
|
269
|
+
}) {
|
|
273
270
|
const prefix = usePrefix.usePrefix();
|
|
274
271
|
if (Icon) {
|
|
275
272
|
return /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
@@ -21,12 +21,11 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
23
23
|
|
|
24
|
-
const SelectSkeleton =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref;
|
|
24
|
+
const SelectSkeleton = ({
|
|
25
|
+
hideLabel,
|
|
26
|
+
className,
|
|
27
|
+
...rest
|
|
28
|
+
}) => {
|
|
30
29
|
const prefix = usePrefix.usePrefix();
|
|
31
30
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({
|
|
32
31
|
className: cx__default["default"](`${prefix}--form-item`, className)
|
|
@@ -29,31 +29,30 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
29
29
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
30
30
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
31
31
|
|
|
32
|
-
const Select = /*#__PURE__*/React__default["default"].forwardRef(function Select(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} = _ref;
|
|
32
|
+
const Select = /*#__PURE__*/React__default["default"].forwardRef(function Select({
|
|
33
|
+
className,
|
|
34
|
+
decorator,
|
|
35
|
+
id,
|
|
36
|
+
inline = false,
|
|
37
|
+
labelText = 'Select',
|
|
38
|
+
disabled = false,
|
|
39
|
+
children,
|
|
40
|
+
// reserved for use with Pagination component
|
|
41
|
+
noLabel = false,
|
|
42
|
+
// eslint-disable-next-line no-unused-vars
|
|
43
|
+
hideLabel = false,
|
|
44
|
+
invalid = false,
|
|
45
|
+
invalidText = '',
|
|
46
|
+
helperText = '',
|
|
47
|
+
light = false,
|
|
48
|
+
readOnly,
|
|
49
|
+
size,
|
|
50
|
+
warn = false,
|
|
51
|
+
warnText,
|
|
52
|
+
onChange,
|
|
53
|
+
slug,
|
|
54
|
+
...other
|
|
55
|
+
}, ref) {
|
|
57
56
|
const prefix = usePrefix.usePrefix();
|
|
58
57
|
const {
|
|
59
58
|
isFluid
|
|
@@ -21,15 +21,14 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
23
23
|
|
|
24
|
-
const SelectItem =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} = _ref;
|
|
24
|
+
const SelectItem = ({
|
|
25
|
+
className,
|
|
26
|
+
value = '',
|
|
27
|
+
disabled = false,
|
|
28
|
+
hidden = false,
|
|
29
|
+
text = '',
|
|
30
|
+
...other
|
|
31
|
+
}) => {
|
|
33
32
|
const prefix = usePrefix.usePrefix();
|
|
34
33
|
const selectItemClasses = cx__default["default"]({
|
|
35
34
|
[`${prefix}--select-option`]: true,
|
|
@@ -21,14 +21,13 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
23
23
|
|
|
24
|
-
const SelectItemGroup =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} = _ref;
|
|
24
|
+
const SelectItemGroup = ({
|
|
25
|
+
children,
|
|
26
|
+
className,
|
|
27
|
+
disabled = false,
|
|
28
|
+
label,
|
|
29
|
+
...other
|
|
30
|
+
}) => {
|
|
32
31
|
const prefix = usePrefix.usePrefix();
|
|
33
32
|
const classNames = cx__default["default"](`${prefix}--select-optgroup`, className);
|
|
34
33
|
return /*#__PURE__*/React__default["default"].createElement("optgroup", _rollupPluginBabelHelpers["extends"]({
|
|
@@ -56,14 +56,13 @@ const shapeTypes = {
|
|
|
56
56
|
incomplete: incompleteIcon,
|
|
57
57
|
draft: iconsReact.CircleStroke
|
|
58
58
|
};
|
|
59
|
-
const ShapeIndicator = /*#__PURE__*/React__default["default"].forwardRef(function ShapeIndicatorContent(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
} = _ref;
|
|
59
|
+
const ShapeIndicator = /*#__PURE__*/React__default["default"].forwardRef(function ShapeIndicatorContent({
|
|
60
|
+
className: customClassName,
|
|
61
|
+
kind,
|
|
62
|
+
label,
|
|
63
|
+
textSize = 12,
|
|
64
|
+
...rest
|
|
65
|
+
}, ref) {
|
|
67
66
|
const prefix = usePrefix.usePrefix();
|
|
68
67
|
const classNames = cx__default["default"](`${prefix}--shape-indicator`, customClassName, {
|
|
69
68
|
[`${prefix}--shape-indicator--14`]: textSize == 14
|
|
@@ -21,11 +21,10 @@ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
|
21
21
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
22
22
|
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
|
23
23
|
|
|
24
|
-
const SkeletonIcon =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = _ref;
|
|
24
|
+
const SkeletonIcon = ({
|
|
25
|
+
className,
|
|
26
|
+
...other
|
|
27
|
+
}) => {
|
|
29
28
|
const prefix = usePrefix.usePrefix();
|
|
30
29
|
const skeletonIconClasses = cx__default["default"](className, {
|
|
31
30
|
[`${prefix}--icon--skeleton`]: true
|