@carbon/react 1.112.0 → 1.113.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 +959 -959
- package/es/components/AILabel/index.js +6 -6
- package/es/components/AISkeleton/AISkeletonIcon.js +2 -2
- package/es/components/AISkeleton/AISkeletonPlaceholder.js +2 -2
- package/es/components/AISkeleton/AISkeletonText.js +2 -2
- package/es/components/Accordion/Accordion.Skeleton.js +3 -3
- package/es/components/Accordion/Accordion.js +2 -2
- package/es/components/Accordion/AccordionItem.js +2 -2
- package/es/components/AspectRatio/AspectRatio.js +2 -2
- package/es/components/BadgeIndicator/index.js +4 -4
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +3 -3
- package/es/components/Breadcrumb/Breadcrumb.js +2 -2
- package/es/components/Breadcrumb/BreadcrumbItem.js +3 -3
- package/es/components/Button/Button.Skeleton.js +3 -3
- package/es/components/Button/Button.js +2 -2
- package/es/components/Button/ButtonBase.js +2 -2
- package/es/components/Button/index.js +3 -3
- package/es/components/ButtonSet/ButtonSet.js +3 -3
- package/es/components/ButtonSet/index.js +1 -1
- package/es/components/ChatButton/ChatButton.Skeleton.js +2 -2
- package/es/components/ChatButton/ChatButton.js +3 -3
- package/es/components/Checkbox/Checkbox.Skeleton.js +3 -3
- package/es/components/Checkbox/Checkbox.js +4 -4
- package/es/components/Checkbox/index.js +2 -2
- package/es/components/CheckboxGroup/CheckboxGroup.js +2 -2
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +3 -3
- package/es/components/CodeSnippet/CodeSnippet.js +2 -2
- package/es/components/ComboBox/ComboBox.js +12 -9
- package/es/components/ComboBox/index.js +1 -1
- package/es/components/ComboButton/index.js +5 -5
- package/es/components/ComposedModal/ComposedModal.js +7 -6
- package/es/components/ComposedModal/ComposedModalPresence.js +5 -2
- package/es/components/ComposedModal/ModalFooter.js +4 -4
- package/es/components/ComposedModal/ModalHeader.js +6 -6
- package/es/components/ContainedList/ContainedList.js +2 -2
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +2 -2
- package/es/components/ContainedList/ContainedListItem/index.js +1 -1
- package/es/components/ContentSwitcher/ContentSwitcher.js +2 -2
- package/es/components/Copy/Copy.js +4 -4
- package/es/components/Copy/index.js +1 -1
- package/es/components/CopyButton/CopyButton.js +3 -3
- package/es/components/CopyButton/index.js +1 -1
- package/es/components/DataTable/DataTable.js +4 -3
- package/es/components/DataTable/Table.js +3 -3
- package/es/components/DataTable/TableBatchActions.js +3 -3
- package/es/components/DataTable/TableCell.js +2 -2
- package/es/components/DataTable/TableContainer.js +3 -3
- package/es/components/DataTable/TableDecoratorRow.js +2 -2
- package/es/components/DataTable/TableExpandHeader.js +2 -2
- package/es/components/DataTable/TableExpandRow.js +2 -2
- package/es/components/DataTable/TableExpandedRow.js +2 -2
- package/es/components/DataTable/TableHeader.js +4 -4
- package/es/components/DataTable/TableRow.js +2 -2
- package/es/components/DataTable/TableSelectAll.js +2 -2
- package/es/components/DataTable/TableSelectRow.js +2 -2
- package/es/components/DataTable/TableSlugRow.js +2 -2
- package/es/components/DataTable/TableToolbar.js +3 -3
- package/es/components/DataTable/TableToolbarMenu.js +4 -4
- package/es/components/DataTable/TableToolbarSearch.js +3 -3
- package/es/components/DataTable/state/sorting.js +3 -2
- package/es/components/DataTable/tools/sorting.js +1 -1
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +2 -2
- package/es/components/DatePicker/DatePicker.Skeleton.js +4 -4
- package/es/components/DatePicker/DatePicker.js +3 -3
- package/es/components/DatePicker/index.js +2 -2
- package/es/components/DatePickerInput/DatePickerInput.js +7 -7
- package/es/components/DatePickerInput/index.js +1 -1
- package/es/components/Dialog/Dialog.js +9 -9
- package/es/components/Dialog/index.js +1 -1
- package/es/components/Dropdown/Dropdown.Skeleton.js +4 -4
- package/es/components/Dropdown/Dropdown.js +5 -5
- package/es/components/Dropdown/index.js +2 -2
- package/es/components/ExpandableSearch/ExpandableSearch.js +2 -2
- package/es/components/ExpandableSearch/index.js +1 -1
- package/es/components/FeatureFlags/index.d.ts +58 -0
- package/es/components/FeatureFlags/index.js +4 -2
- package/es/components/FileUploader/FileUploader.Skeleton.js +4 -4
- package/es/components/FileUploader/FileUploader.js +11 -8
- package/es/components/FileUploader/FileUploaderButton.js +3 -3
- package/es/components/FileUploader/FileUploaderDropContainer.js +8 -6
- package/es/components/FileUploader/FileUploaderItem.js +3 -3
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -2
- package/es/components/FluidComboBox/FluidComboBox.js +3 -3
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +3 -3
- package/es/components/FluidDatePicker/FluidDatePicker.js +3 -3
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -2
- package/es/components/FluidDropdown/FluidDropdown.js +3 -3
- package/es/components/FluidForm/FluidForm.js +3 -3
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -2
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +4 -4
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -2
- package/es/components/FluidNumberInput/FluidNumberInput.js +3 -3
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
- package/es/components/FluidSearch/FluidSearch.js +3 -3
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +2 -2
- package/es/components/FluidSelect/FluidSelect.js +3 -3
- package/es/components/FluidSelect/index.js +2 -2
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -2
- package/es/components/FluidTextArea/FluidTextArea.js +3 -3
- package/es/components/FluidTextInput/FluidPasswordInput.js +3 -3
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
- package/es/components/FluidTextInput/FluidTextInput.js +4 -4
- package/es/components/FluidTextInput/index.js +3 -3
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -2
- package/es/components/FluidTimePicker/FluidTimePicker.js +3 -3
- package/es/components/FluidTimePickerSelect/index.js +1 -1
- package/es/components/Form/Form.js +2 -2
- package/es/components/FormGroup/FormGroup.js +2 -2
- package/es/components/FormItem/FormItem.js +2 -2
- package/es/components/FormLabel/FormLabel.js +2 -2
- package/es/components/Grid/CSSGrid.js +4 -4
- package/es/components/Grid/Column.js +3 -3
- package/es/components/Grid/ColumnHang.js +3 -3
- package/es/components/Grid/FlexGrid.js +3 -3
- package/es/components/Grid/Grid.js +3 -3
- package/es/components/Grid/Row.js +2 -2
- package/es/components/Icon/Icon.Skeleton.js +3 -3
- package/es/components/IconButton/index.js +4 -3
- package/es/components/IconIndicator/index.js +4 -4
- package/es/components/InlineCheckbox/index.js +1 -1
- package/es/components/InlineLoading/InlineLoading.js +2 -2
- package/es/components/InlineLoading/index.js +1 -1
- package/es/components/Layer/LayerLevel.js +1 -1
- package/es/components/Layer/index.js +2 -2
- package/es/components/Layout/index.js +3 -3
- package/es/components/LayoutDirection/LayoutDirection.js +1 -1
- package/es/components/Link/Link.js +2 -2
- package/es/components/Link/index.js +1 -1
- package/es/components/ListBox/ListBox.js +2 -2
- package/es/components/ListBox/ListBoxMenuIcon.js +2 -2
- package/es/components/ListBox/ListBoxMenuItem.js +4 -3
- package/es/components/ListBox/ListBoxSelection.js +3 -3
- package/es/components/ListBox/index.js +2 -2
- package/es/components/ListBox/next/ListBoxSelection.js +3 -3
- package/es/components/ListBox/next/ListBoxTrigger.js +2 -2
- package/es/components/ListItem/ListItem.js +2 -2
- package/es/components/Loading/Loading.js +3 -3
- package/es/components/Loading/index.js +1 -1
- package/es/components/Menu/Menu.js +3 -3
- package/es/components/Menu/MenuItem.js +9 -9
- package/es/components/MenuButton/index.js +4 -4
- package/es/components/Modal/Modal.js +9 -9
- package/es/components/Modal/ModalPresence.js +5 -2
- package/es/components/Modal/index.js +2 -2
- package/es/components/ModalWrapper/ModalWrapper.js +2 -2
- package/es/components/MultiSelect/FilterableMultiSelect.d.ts +1 -2
- package/es/components/MultiSelect/FilterableMultiSelect.js +12 -11
- package/es/components/MultiSelect/MultiSelect.js +7 -7
- package/es/components/Notification/Notification.js +10 -10
- package/es/components/NumberInput/NumberInput.Skeleton.js +2 -2
- package/es/components/NumberInput/NumberInput.js +21 -11
- package/es/components/OrderedList/OrderedList.js +2 -2
- package/es/components/OverflowMenu/OverflowMenu.js +7 -7
- package/es/components/OverflowMenu/index.js +2 -2
- package/es/components/OverflowMenu/next/index.js +4 -4
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +4 -4
- package/es/components/OverflowMenuItem/index.js +1 -1
- package/es/components/OverflowMenuV2/index.js +1 -1
- package/es/components/PageHeader/PageHeader.js +15 -15
- package/es/components/PageHeader/index.js +1 -1
- package/es/components/Pagination/Pagination.Skeleton.js +3 -3
- package/es/components/Pagination/Pagination.d.ts +18 -1
- package/es/components/Pagination/Pagination.js +33 -8
- package/es/components/Pagination/experimental/PageSelector.d.ts +4 -0
- package/es/components/Pagination/experimental/PageSelector.js +16 -3
- package/es/components/Pagination/experimental/Pagination-story.d.ts +100 -65
- package/es/components/Pagination/experimental/Pagination.d.ts +4 -0
- package/es/components/Pagination/experimental/Pagination.js +12 -5
- package/es/components/PaginationNav/PaginationNav.js +8 -6
- package/es/components/Popover/index.js +14 -6
- package/es/components/ProgressBar/ProgressBar.js +3 -3
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -3
- package/es/components/ProgressIndicator/ProgressIndicator.js +4 -4
- package/es/components/RadioButton/RadioButton.Skeleton.js +3 -3
- package/es/components/RadioButton/RadioButton.js +3 -3
- package/es/components/RadioButton/index.js +1 -1
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +4 -4
- package/es/components/RadioTile/RadioTile.js +3 -3
- package/es/components/RadioTile/index.js +1 -1
- package/es/components/Search/Search.Skeleton.js +3 -3
- package/es/components/Search/Search.js +4 -4
- package/es/components/Search/index.js +2 -2
- package/es/components/Select/Select.Skeleton.js +3 -3
- package/es/components/Select/Select.js +6 -6
- package/es/components/Select/index.js +2 -2
- package/es/components/SelectItem/SelectItem.js +2 -2
- package/es/components/SelectItem/index.js +1 -1
- package/es/components/SelectItemGroup/SelectItemGroup.js +2 -2
- package/es/components/ShapeIndicator/index.js +4 -4
- package/es/components/SkeletonIcon/SkeletonIcon.js +2 -2
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -2
- package/es/components/SkeletonText/SkeletonText.js +2 -2
- package/es/components/SkeletonText/index.js +1 -1
- package/es/components/Slider/Slider.Skeleton.js +7 -7
- package/es/components/Slider/Slider.js +22 -20
- package/es/components/Stack/Stack.js +2 -2
- package/es/components/StructuredList/StructuredList.Skeleton.js +3 -3
- package/es/components/StructuredList/StructuredList.js +7 -7
- package/es/components/Switch/IconSwitch.js +6 -5
- package/es/components/Switch/Switch.js +3 -3
- package/es/components/TabContent/TabContent.js +2 -2
- package/es/components/Tabs/Tabs.Skeleton.js +3 -3
- package/es/components/Tabs/Tabs.js +45 -33
- package/es/components/Tag/DismissibleTag.js +4 -3
- package/es/components/Tag/OperationalTag.js +4 -3
- package/es/components/Tag/SelectableTag.js +3 -3
- package/es/components/Tag/Tag.Skeleton.js +3 -3
- package/es/components/Tag/Tag.js +4 -3
- package/es/components/TextArea/TextArea.Skeleton.js +3 -3
- package/es/components/TextArea/TextArea.js +8 -8
- package/es/components/TextArea/index.js +2 -2
- package/es/components/TextInput/ControlledPasswordInput.js +6 -6
- package/es/components/TextInput/PasswordInput.js +10 -10
- package/es/components/TextInput/TextInput.Skeleton.js +3 -3
- package/es/components/TextInput/TextInput.js +9 -9
- package/es/components/TextInput/index.js +2 -2
- package/es/components/Theme/index.js +2 -2
- package/es/components/Tile/Tile.js +14 -11
- package/es/components/TileGroup/TileGroup.js +1 -1
- package/es/components/TimePicker/TimePicker.js +5 -5
- package/es/components/TimePickerSelect/TimePickerSelect.js +2 -2
- package/es/components/Toggle/Toggle.Skeleton.js +3 -3
- package/es/components/Toggle/Toggle.js +6 -6
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -2
- package/es/components/Toggletip/index.js +6 -6
- package/es/components/Tooltip/DefinitionTooltip.js +2 -2
- package/es/components/Tooltip/Tooltip.d.ts +2 -1
- package/es/components/Tooltip/Tooltip.js +5 -4
- package/es/components/TreeView/TreeNode.js +11 -8
- package/es/components/TreeView/TreeView.js +2 -2
- package/es/components/UIShell/Content.js +2 -2
- package/es/components/UIShell/Header.js +2 -2
- package/es/components/UIShell/HeaderGlobalAction.js +2 -2
- package/es/components/UIShell/HeaderMenu.js +4 -4
- package/es/components/UIShell/HeaderMenuButton.js +2 -2
- package/es/components/UIShell/HeaderMenuItem.js +2 -2
- package/es/components/UIShell/HeaderName.js +2 -2
- package/es/components/UIShell/HeaderNavigation.js +2 -2
- package/es/components/UIShell/HeaderPanel.js +3 -3
- package/es/components/UIShell/HeaderSideNavItems.js +2 -2
- package/es/components/UIShell/SideNav.js +3 -3
- package/es/components/UIShell/SideNavDetails.js +2 -2
- package/es/components/UIShell/SideNavDivider.js +2 -2
- package/es/components/UIShell/SideNavFooter.js +2 -2
- package/es/components/UIShell/SideNavHeader.js +2 -2
- package/es/components/UIShell/SideNavIcon.js +2 -2
- package/es/components/UIShell/SideNavItem.js +2 -2
- package/es/components/UIShell/SideNavItems.js +2 -2
- package/es/components/UIShell/SideNavLink.js +2 -2
- package/es/components/UIShell/SideNavLinkText.js +2 -2
- package/es/components/UIShell/SideNavMenu.js +3 -3
- package/es/components/UIShell/SideNavMenuItem.js +3 -3
- package/es/components/UIShell/SideNavSwitcher.js +2 -2
- package/es/components/UIShell/SkipToContent.js +2 -2
- package/es/components/UIShell/Switcher.js +2 -2
- package/es/components/UIShell/SwitcherDivider.js +3 -3
- package/es/components/UIShell/SwitcherItem.js +4 -4
- package/es/components/UnorderedList/UnorderedList.js +2 -2
- package/es/index.js +30 -30
- package/es/internal/FloatingMenu.js +12 -9
- package/es/internal/motion/MotionSurface.d.ts +35 -0
- package/es/internal/motion/useMotionEnabled.d.ts +13 -0
- package/es/internal/motion/useMotionSurface.d.ts +33 -0
- package/es/internal/useId.js +1 -1
- package/es/internal/useOverflowItems.js +2 -1
- package/es/internal/usePresence.d.ts +8 -1
- package/es/internal/usePresence.js +4 -2
- package/es/internal/usePresenceContext.d.ts +12 -0
- package/es/internal/usePresenceContext.js +23 -5
- package/es/tools/wrapComponent.js +2 -2
- package/lib/components/AILabel/index.js +4 -4
- package/lib/components/AISkeleton/AISkeletonIcon.js +2 -2
- package/lib/components/AISkeleton/AISkeletonPlaceholder.js +2 -2
- package/lib/components/AISkeleton/AISkeletonText.js +2 -2
- package/lib/components/Accordion/Accordion.Skeleton.js +3 -2
- package/lib/components/Accordion/Accordion.js +2 -2
- package/lib/components/Accordion/AccordionItem.js +2 -2
- package/lib/components/AspectRatio/AspectRatio.js +2 -2
- package/lib/components/BadgeIndicator/index.js +3 -2
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +3 -2
- package/lib/components/Breadcrumb/Breadcrumb.js +2 -2
- package/lib/components/Breadcrumb/BreadcrumbItem.js +2 -2
- package/lib/components/Button/Button.Skeleton.js +3 -2
- package/lib/components/Button/Button.js +2 -2
- package/lib/components/Button/ButtonBase.js +2 -2
- package/lib/components/Button/index.js +7 -1
- package/lib/components/ButtonSet/ButtonSet.js +2 -2
- package/lib/components/ButtonSet/index.js +3 -1
- package/lib/components/ChatButton/ChatButton.Skeleton.js +2 -2
- package/lib/components/ChatButton/ChatButton.js +2 -2
- package/lib/components/Checkbox/Checkbox.Skeleton.js +3 -2
- package/lib/components/Checkbox/Checkbox.js +3 -3
- package/lib/components/Checkbox/index.js +3 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.js +2 -2
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +3 -2
- package/lib/components/CodeSnippet/CodeSnippet.js +2 -2
- package/lib/components/ComboBox/ComboBox.js +8 -5
- package/lib/components/ComboBox/index.js +3 -1
- package/lib/components/ComboButton/index.js +2 -2
- package/lib/components/ComposedModal/ComposedModal.js +5 -4
- package/lib/components/ComposedModal/ComposedModalPresence.js +4 -1
- package/lib/components/ComposedModal/ModalFooter.js +3 -3
- package/lib/components/ComposedModal/ModalHeader.js +2 -2
- package/lib/components/ContainedList/ContainedList.js +2 -2
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +2 -2
- package/lib/components/ContainedList/ContainedListItem/index.js +3 -1
- package/lib/components/ContentSwitcher/ContentSwitcher.js +2 -2
- package/lib/components/Copy/Copy.js +3 -3
- package/lib/components/Copy/index.js +3 -1
- package/lib/components/CopyButton/CopyButton.js +3 -3
- package/lib/components/CopyButton/index.js +3 -1
- package/lib/components/DataTable/DataTable.js +4 -3
- package/lib/components/DataTable/Table.js +3 -2
- package/lib/components/DataTable/TableBatchActions.js +2 -2
- package/lib/components/DataTable/TableCell.js +2 -2
- package/lib/components/DataTable/TableContainer.js +2 -2
- package/lib/components/DataTable/TableDecoratorRow.js +2 -2
- package/lib/components/DataTable/TableExpandHeader.js +2 -2
- package/lib/components/DataTable/TableExpandRow.js +2 -2
- package/lib/components/DataTable/TableExpandedRow.js +2 -2
- package/lib/components/DataTable/TableHeader.js +2 -2
- package/lib/components/DataTable/TableRow.js +2 -2
- package/lib/components/DataTable/TableSelectAll.js +2 -2
- package/lib/components/DataTable/TableSelectRow.js +2 -2
- package/lib/components/DataTable/TableSlugRow.js +2 -2
- package/lib/components/DataTable/TableToolbar.js +3 -2
- package/lib/components/DataTable/TableToolbarMenu.js +3 -3
- package/lib/components/DataTable/TableToolbarSearch.js +3 -3
- package/lib/components/DataTable/state/sorting.js +3 -1
- package/lib/components/DataTable/tools/sorting.js +2 -0
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +2 -2
- package/lib/components/DatePicker/DatePicker.Skeleton.js +3 -2
- package/lib/components/DatePicker/DatePicker.js +2 -2
- package/lib/components/DatePicker/index.js +3 -1
- package/lib/components/DatePickerInput/DatePickerInput.js +3 -3
- package/lib/components/DatePickerInput/index.js +3 -1
- package/lib/components/Dialog/Dialog.js +3 -3
- package/lib/components/Dialog/index.js +8 -0
- package/lib/components/Dropdown/Dropdown.Skeleton.js +3 -2
- package/lib/components/Dropdown/Dropdown.js +2 -2
- package/lib/components/Dropdown/index.js +3 -1
- package/lib/components/ExpandableSearch/ExpandableSearch.js +2 -2
- package/lib/components/ExpandableSearch/index.js +3 -1
- package/lib/components/FeatureFlags/index.d.ts +58 -0
- package/lib/components/FeatureFlags/index.js +3 -1
- package/lib/components/FileUploader/FileUploader.Skeleton.js +4 -3
- package/lib/components/FileUploader/FileUploader.js +9 -6
- package/lib/components/FileUploader/FileUploaderButton.js +3 -3
- package/lib/components/FileUploader/FileUploaderDropContainer.js +8 -6
- package/lib/components/FileUploader/FileUploaderItem.js +3 -3
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -2
- package/lib/components/FluidComboBox/FluidComboBox.js +2 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +2 -2
- package/lib/components/FluidDatePicker/FluidDatePicker.js +2 -2
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -2
- package/lib/components/FluidDropdown/FluidDropdown.js +2 -2
- package/lib/components/FluidForm/FluidForm.js +2 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -2
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +2 -2
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -2
- package/lib/components/FluidNumberInput/FluidNumberInput.js +2 -2
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +2 -2
- package/lib/components/FluidSearch/FluidSearch.js +2 -2
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +2 -2
- package/lib/components/FluidSelect/FluidSelect.js +2 -2
- package/lib/components/FluidSelect/index.js +3 -1
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -2
- package/lib/components/FluidTextArea/FluidTextArea.js +2 -2
- package/lib/components/FluidTextInput/FluidPasswordInput.js +2 -2
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -2
- package/lib/components/FluidTextInput/FluidTextInput.js +2 -2
- package/lib/components/FluidTextInput/index.js +5 -2
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -2
- package/lib/components/FluidTimePicker/FluidTimePicker.js +2 -2
- package/lib/components/FluidTimePickerSelect/index.js +3 -1
- package/lib/components/Form/Form.js +2 -2
- package/lib/components/FormGroup/FormGroup.js +2 -2
- package/lib/components/FormItem/FormItem.js +2 -2
- package/lib/components/FormLabel/FormLabel.js +2 -2
- package/lib/components/Grid/CSSGrid.js +3 -3
- package/lib/components/Grid/Column.js +2 -2
- package/lib/components/Grid/ColumnHang.js +3 -3
- package/lib/components/Grid/FlexGrid.js +3 -3
- package/lib/components/Grid/Grid.js +3 -3
- package/lib/components/Grid/Row.js +2 -2
- package/lib/components/Icon/Icon.Skeleton.js +3 -2
- package/lib/components/IconButton/index.js +4 -3
- package/lib/components/IconIndicator/index.js +4 -2
- package/lib/components/InlineCheckbox/index.js +3 -1
- package/lib/components/InlineLoading/InlineLoading.js +2 -2
- package/lib/components/InlineLoading/index.js +3 -1
- package/lib/components/Layer/LayerLevel.js +1 -0
- package/lib/components/Layer/index.js +2 -2
- package/lib/components/Layout/index.js +2 -2
- package/lib/components/LayoutDirection/LayoutDirection.js +1 -0
- package/lib/components/Link/Link.js +2 -2
- package/lib/components/Link/index.js +3 -1
- package/lib/components/ListBox/ListBox.js +2 -2
- package/lib/components/ListBox/ListBoxMenuIcon.js +2 -2
- package/lib/components/ListBox/ListBoxMenuItem.js +4 -3
- package/lib/components/ListBox/ListBoxSelection.js +2 -2
- package/lib/components/ListBox/index.js +3 -1
- package/lib/components/ListBox/next/ListBoxSelection.js +2 -2
- package/lib/components/ListBox/next/ListBoxTrigger.js +2 -2
- package/lib/components/ListItem/ListItem.js +2 -2
- package/lib/components/Loading/Loading.js +2 -2
- package/lib/components/Loading/index.js +3 -1
- package/lib/components/Menu/Menu.js +2 -2
- package/lib/components/Menu/MenuItem.js +2 -2
- package/lib/components/MenuButton/index.js +2 -2
- package/lib/components/Modal/Modal.js +5 -4
- package/lib/components/Modal/ModalPresence.js +4 -1
- package/lib/components/Modal/index.js +6 -2
- package/lib/components/ModalWrapper/ModalWrapper.js +2 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.d.ts +1 -2
- package/lib/components/MultiSelect/FilterableMultiSelect.js +8 -7
- package/lib/components/MultiSelect/MultiSelect.js +3 -3
- package/lib/components/Notification/Notification.js +4 -4
- package/lib/components/NumberInput/NumberInput.Skeleton.js +2 -2
- package/lib/components/NumberInput/NumberInput.js +16 -5
- package/lib/components/OrderedList/OrderedList.js +2 -2
- package/lib/components/OverflowMenu/OverflowMenu.js +5 -3
- package/lib/components/OverflowMenu/index.js +3 -2
- package/lib/components/OverflowMenu/next/index.js +2 -2
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +3 -3
- package/lib/components/OverflowMenuItem/index.js +3 -1
- package/lib/components/OverflowMenuV2/index.js +1 -1
- package/lib/components/PageHeader/PageHeader.js +5 -5
- package/lib/components/PageHeader/index.js +14 -0
- package/lib/components/Pagination/Pagination.Skeleton.js +3 -2
- package/lib/components/Pagination/Pagination.d.ts +18 -1
- package/lib/components/Pagination/Pagination.js +31 -6
- package/lib/components/Pagination/experimental/PageSelector.d.ts +4 -0
- package/lib/components/Pagination/experimental/PageSelector.js +9 -2
- package/lib/components/Pagination/experimental/Pagination-story.d.ts +100 -65
- package/lib/components/Pagination/experimental/Pagination.d.ts +4 -0
- package/lib/components/Pagination/experimental/Pagination.js +9 -2
- package/lib/components/PaginationNav/PaginationNav.js +6 -4
- package/lib/components/Popover/index.js +10 -2
- package/lib/components/ProgressBar/ProgressBar.js +2 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -2
- package/lib/components/ProgressIndicator/ProgressIndicator.js +2 -2
- package/lib/components/RadioButton/RadioButton.Skeleton.js +3 -2
- package/lib/components/RadioButton/RadioButton.js +2 -2
- package/lib/components/RadioButton/index.js +3 -1
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/lib/components/RadioTile/RadioTile.js +3 -3
- package/lib/components/RadioTile/index.js +3 -1
- package/lib/components/Search/Search.Skeleton.js +3 -2
- package/lib/components/Search/Search.js +3 -3
- package/lib/components/Search/index.js +3 -1
- package/lib/components/Select/Select.Skeleton.js +3 -2
- package/lib/components/Select/Select.js +2 -2
- package/lib/components/Select/index.js +3 -1
- package/lib/components/SelectItem/SelectItem.js +2 -2
- package/lib/components/SelectItem/index.js +3 -1
- package/lib/components/SelectItemGroup/SelectItemGroup.js +2 -2
- package/lib/components/ShapeIndicator/index.js +4 -2
- package/lib/components/SkeletonIcon/SkeletonIcon.js +2 -2
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -2
- package/lib/components/SkeletonText/SkeletonText.js +2 -2
- package/lib/components/SkeletonText/index.js +3 -1
- package/lib/components/Slider/Slider.Skeleton.js +2 -2
- package/lib/components/Slider/Slider.js +8 -6
- package/lib/components/Stack/Stack.js +2 -2
- package/lib/components/StructuredList/StructuredList.Skeleton.js +2 -2
- package/lib/components/StructuredList/StructuredList.js +2 -2
- package/lib/components/Switch/IconSwitch.js +5 -4
- package/lib/components/Switch/Switch.js +3 -3
- package/lib/components/TabContent/TabContent.js +2 -2
- package/lib/components/Tabs/Tabs.Skeleton.js +3 -2
- package/lib/components/Tabs/Tabs.js +35 -23
- package/lib/components/Tag/DismissibleTag.js +3 -2
- package/lib/components/Tag/OperationalTag.js +3 -2
- package/lib/components/Tag/SelectableTag.js +2 -2
- package/lib/components/Tag/Tag.Skeleton.js +3 -2
- package/lib/components/Tag/Tag.js +3 -2
- package/lib/components/TextArea/TextArea.Skeleton.js +3 -2
- package/lib/components/TextArea/TextArea.js +3 -3
- package/lib/components/TextArea/index.js +3 -1
- package/lib/components/TextInput/ControlledPasswordInput.js +3 -3
- package/lib/components/TextInput/PasswordInput.js +2 -2
- package/lib/components/TextInput/TextInput.Skeleton.js +3 -2
- package/lib/components/TextInput/TextInput.js +2 -2
- package/lib/components/TextInput/index.js +3 -1
- package/lib/components/Theme/index.js +2 -2
- package/lib/components/Tile/Tile.js +7 -4
- package/lib/components/TileGroup/TileGroup.js +1 -1
- package/lib/components/TimePicker/TimePicker.js +2 -2
- package/lib/components/TimePickerSelect/TimePickerSelect.js +2 -2
- package/lib/components/Toggle/Toggle.Skeleton.js +3 -2
- package/lib/components/Toggle/Toggle.js +3 -2
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -2
- package/lib/components/Toggletip/index.js +4 -3
- package/lib/components/Tooltip/DefinitionTooltip.js +2 -2
- package/lib/components/Tooltip/Tooltip.d.ts +2 -1
- package/lib/components/Tooltip/Tooltip.js +5 -4
- package/lib/components/TreeView/TreeNode.js +8 -5
- package/lib/components/TreeView/TreeView.js +2 -2
- package/lib/components/UIShell/Content.js +2 -2
- package/lib/components/UIShell/Header.js +2 -2
- package/lib/components/UIShell/HeaderGlobalAction.js +2 -2
- package/lib/components/UIShell/HeaderMenu.js +3 -2
- package/lib/components/UIShell/HeaderMenuButton.js +2 -2
- package/lib/components/UIShell/HeaderMenuItem.js +2 -2
- package/lib/components/UIShell/HeaderName.js +2 -2
- package/lib/components/UIShell/HeaderNavigation.js +2 -2
- package/lib/components/UIShell/HeaderPanel.js +3 -3
- package/lib/components/UIShell/HeaderSideNavItems.js +2 -2
- package/lib/components/UIShell/SideNav.js +2 -2
- package/lib/components/UIShell/SideNavDetails.js +2 -2
- package/lib/components/UIShell/SideNavDivider.js +2 -2
- package/lib/components/UIShell/SideNavFooter.js +2 -2
- package/lib/components/UIShell/SideNavHeader.js +2 -2
- package/lib/components/UIShell/SideNavIcon.js +2 -2
- package/lib/components/UIShell/SideNavItem.js +2 -2
- package/lib/components/UIShell/SideNavItems.js +2 -2
- package/lib/components/UIShell/SideNavLink.js +2 -2
- package/lib/components/UIShell/SideNavLinkText.js +2 -2
- package/lib/components/UIShell/SideNavMenu.js +3 -2
- package/lib/components/UIShell/SideNavMenuItem.js +2 -2
- package/lib/components/UIShell/SideNavSwitcher.js +2 -2
- package/lib/components/UIShell/SkipToContent.js +2 -2
- package/lib/components/UIShell/Switcher.js +2 -2
- package/lib/components/UIShell/SwitcherDivider.js +2 -2
- package/lib/components/UIShell/SwitcherItem.js +2 -2
- package/lib/components/UnorderedList/UnorderedList.js +2 -2
- package/lib/index.js +33 -32
- package/lib/internal/FloatingMenu.js +13 -8
- package/lib/internal/motion/MotionSurface.d.ts +35 -0
- package/lib/internal/motion/useMotionEnabled.d.ts +13 -0
- package/lib/internal/motion/useMotionSurface.d.ts +33 -0
- package/lib/internal/useId.js +1 -0
- package/lib/internal/useOverflowItems.js +2 -1
- package/lib/internal/usePresence.d.ts +8 -1
- package/lib/internal/usePresence.js +4 -2
- package/lib/internal/usePresenceContext.d.ts +12 -0
- package/lib/internal/usePresenceContext.js +22 -3
- package/lib/tools/wrapComponent.js +2 -2
- package/package.json +14 -11
- package/telemetry.yml +1 -0
|
@@ -4,111 +4,146 @@ declare namespace _default {
|
|
|
4
4
|
export namespace subcomponents {
|
|
5
5
|
export { PageSelector };
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
let storyName: string;
|
|
13
|
-
}
|
|
14
|
-
export function WithNoSizerChildInputOrChildSelector(): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export namespace WithNoSizerChildInputOrChildSelector {
|
|
16
|
-
let storyName_1: string;
|
|
17
|
-
export { storyName_1 as storyName };
|
|
18
|
-
}
|
|
19
|
-
export function Playground(args: any): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export namespace Playground {
|
|
21
|
-
namespace argTypes {
|
|
22
|
-
namespace className {
|
|
23
|
-
let control: boolean;
|
|
7
|
+
export namespace argTypes {
|
|
8
|
+
namespace backwardText {
|
|
9
|
+
namespace control {
|
|
10
|
+
let type: string;
|
|
11
|
+
}
|
|
24
12
|
}
|
|
25
13
|
namespace children {
|
|
26
14
|
let control_1: boolean;
|
|
27
15
|
export { control_1 as control };
|
|
28
16
|
}
|
|
29
|
-
namespace
|
|
17
|
+
namespace className {
|
|
30
18
|
let control_2: boolean;
|
|
31
19
|
export { control_2 as control };
|
|
32
20
|
}
|
|
33
|
-
namespace itemText {
|
|
34
|
-
let control_3: boolean;
|
|
35
|
-
export { control_3 as control };
|
|
36
|
-
}
|
|
37
|
-
namespace forwardText {
|
|
38
|
-
export namespace control_4 {
|
|
39
|
-
let type: string;
|
|
40
|
-
}
|
|
41
|
-
export { control_4 as control };
|
|
42
|
-
export let defaultValue: string;
|
|
43
|
-
}
|
|
44
21
|
namespace disabled {
|
|
45
|
-
export namespace
|
|
22
|
+
export namespace control_3 {
|
|
46
23
|
let type_1: string;
|
|
47
24
|
export { type_1 as type };
|
|
48
25
|
}
|
|
49
|
-
export {
|
|
50
|
-
let defaultValue_1: string;
|
|
51
|
-
export { defaultValue_1 as defaultValue };
|
|
52
|
-
}
|
|
53
|
-
namespace itemRangeText {
|
|
54
|
-
let control_6: boolean;
|
|
55
|
-
export { control_6 as control };
|
|
26
|
+
export { control_3 as control };
|
|
56
27
|
}
|
|
57
|
-
namespace
|
|
58
|
-
export namespace
|
|
28
|
+
namespace forwardText {
|
|
29
|
+
export namespace control_4 {
|
|
59
30
|
let type_2: string;
|
|
60
31
|
export { type_2 as type };
|
|
61
32
|
}
|
|
62
|
-
export {
|
|
63
|
-
|
|
64
|
-
|
|
33
|
+
export { control_4 as control };
|
|
34
|
+
}
|
|
35
|
+
namespace id {
|
|
36
|
+
let control_5: boolean;
|
|
37
|
+
export { control_5 as control };
|
|
65
38
|
}
|
|
66
39
|
namespace initialPage {
|
|
67
|
-
export namespace
|
|
40
|
+
export namespace control_6 {
|
|
68
41
|
let type_3: string;
|
|
69
42
|
export { type_3 as type };
|
|
70
43
|
}
|
|
71
|
-
export {
|
|
72
|
-
let defaultValue_3: number;
|
|
73
|
-
export { defaultValue_3 as defaultValue };
|
|
44
|
+
export { control_6 as control };
|
|
74
45
|
}
|
|
75
|
-
namespace
|
|
76
|
-
|
|
46
|
+
namespace itemRangeText {
|
|
47
|
+
let control_7: boolean;
|
|
48
|
+
export { control_7 as control };
|
|
49
|
+
}
|
|
50
|
+
namespace itemsPerPageText {
|
|
51
|
+
export namespace control_8 {
|
|
77
52
|
let type_4: string;
|
|
78
53
|
export { type_4 as type };
|
|
79
54
|
}
|
|
55
|
+
export { control_8 as control };
|
|
56
|
+
}
|
|
57
|
+
namespace itemText {
|
|
58
|
+
let control_9: boolean;
|
|
80
59
|
export { control_9 as control };
|
|
81
|
-
let defaultValue_4: number;
|
|
82
|
-
export { defaultValue_4 as defaultValue };
|
|
83
60
|
}
|
|
84
|
-
namespace
|
|
85
|
-
|
|
61
|
+
namespace onChange {
|
|
62
|
+
let action: string;
|
|
63
|
+
}
|
|
64
|
+
namespace pageRangeText {
|
|
65
|
+
let control_10: boolean;
|
|
66
|
+
export { control_10 as control };
|
|
67
|
+
}
|
|
68
|
+
namespace pageSize {
|
|
69
|
+
export namespace control_11 {
|
|
86
70
|
let type_5: string;
|
|
87
71
|
export { type_5 as type };
|
|
88
72
|
}
|
|
89
|
-
export {
|
|
90
|
-
let defaultValue_5: number[];
|
|
91
|
-
export { defaultValue_5 as defaultValue };
|
|
73
|
+
export { control_11 as control };
|
|
92
74
|
}
|
|
93
|
-
namespace
|
|
94
|
-
export namespace
|
|
75
|
+
namespace pageSizes {
|
|
76
|
+
export namespace control_12 {
|
|
95
77
|
let type_6: string;
|
|
96
78
|
export { type_6 as type };
|
|
97
79
|
}
|
|
98
|
-
export {
|
|
99
|
-
let defaultValue_6: string;
|
|
100
|
-
export { defaultValue_6 as defaultValue };
|
|
80
|
+
export { control_12 as control };
|
|
101
81
|
}
|
|
102
|
-
namespace
|
|
103
|
-
export namespace
|
|
82
|
+
namespace pagesUnknown {
|
|
83
|
+
export namespace control_13 {
|
|
104
84
|
let type_7: string;
|
|
105
85
|
export { type_7 as type };
|
|
106
86
|
}
|
|
107
|
-
export {
|
|
108
|
-
|
|
109
|
-
|
|
87
|
+
export { control_13 as control };
|
|
88
|
+
}
|
|
89
|
+
namespace pageText {
|
|
90
|
+
let control_14: boolean;
|
|
91
|
+
export { control_14 as control };
|
|
92
|
+
}
|
|
93
|
+
namespace totalItems {
|
|
94
|
+
export namespace control_15 {
|
|
95
|
+
let type_8: string;
|
|
96
|
+
export { type_8 as type };
|
|
97
|
+
}
|
|
98
|
+
export { control_15 as control };
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export let decorators: ((story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
102
|
+
}
|
|
103
|
+
export default _default;
|
|
104
|
+
export function WithAPageSelector(args: any): import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
export namespace WithAPageSelector {
|
|
106
|
+
let storyName: string;
|
|
107
|
+
namespace args {
|
|
108
|
+
let backwardText_1: string;
|
|
109
|
+
export { backwardText_1 as backwardText };
|
|
110
|
+
let disabled_1: boolean;
|
|
111
|
+
export { disabled_1 as disabled };
|
|
112
|
+
let forwardText_1: string;
|
|
113
|
+
export { forwardText_1 as forwardText };
|
|
114
|
+
let initialPage_1: number;
|
|
115
|
+
export { initialPage_1 as initialPage };
|
|
116
|
+
let itemsPerPageText_1: string;
|
|
117
|
+
export { itemsPerPageText_1 as itemsPerPageText };
|
|
118
|
+
let pageSize_1: number;
|
|
119
|
+
export { pageSize_1 as pageSize };
|
|
120
|
+
let pageSizes_1: number[];
|
|
121
|
+
export { pageSizes_1 as pageSizes };
|
|
122
|
+
let pagesUnknown_1: boolean;
|
|
123
|
+
export { pagesUnknown_1 as pagesUnknown };
|
|
124
|
+
let totalItems_1: number;
|
|
125
|
+
export { totalItems_1 as totalItems };
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export function WithNoSizerChildInputOrChildSelector(args: any): import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
export namespace WithNoSizerChildInputOrChildSelector {
|
|
130
|
+
let storyName_1: string;
|
|
131
|
+
export { storyName_1 as storyName };
|
|
132
|
+
export namespace args_1 {
|
|
133
|
+
let pageSizes_2: undefined;
|
|
134
|
+
export { pageSizes_2 as pageSizes };
|
|
135
|
+
}
|
|
136
|
+
export { args_1 as args };
|
|
137
|
+
export namespace parameters {
|
|
138
|
+
namespace controls {
|
|
139
|
+
let exclude: string[];
|
|
110
140
|
}
|
|
111
141
|
}
|
|
112
142
|
}
|
|
143
|
+
export function Playground(args: any): import("react/jsx-runtime").JSX.Element;
|
|
144
|
+
export namespace Playground {
|
|
145
|
+
export namespace args_2 { }
|
|
146
|
+
export { args_2 as args };
|
|
147
|
+
}
|
|
113
148
|
import { preview_Pagination as Pagination } from '../../..';
|
|
114
149
|
import { preview_PageSelector as PageSelector } from '../../..';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Pagination;
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use the stable `Pagination` component with the `renderPageSelect`
|
|
4
|
+
* prop instead. `unstable_Pagination` / `preview_Pagination` will be removed in v12.
|
|
5
|
+
*/
|
|
2
6
|
declare function Pagination({ backwardText, children, className, disabled, forwardText, id, initialPage, itemsPerPageText, itemRangeText, itemText, onChange, pageRangeText, pageSize, pageSizes, pageText, pagesUnknown, totalItems, ...other }: {
|
|
3
7
|
[x: string]: any;
|
|
4
8
|
backwardText?: string | undefined;
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../../internal/usePrefix.js";
|
|
|
9
9
|
import { IconButton } from "../../IconButton/index.js";
|
|
10
10
|
import Select_default from "../../Select/index.js";
|
|
11
11
|
import SelectItem_default from "../../SelectItem/index.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import { useEffect, useState } from "react";
|
|
13
|
+
import cx from "classnames";
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { CaretLeft, CaretRight } from "@carbon/icons-react";
|
|
@@ -21,10 +21,17 @@ import { CaretLeft, CaretRight } from "@carbon/icons-react";
|
|
|
21
21
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
23
|
*/
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use the stable `Pagination` component with the `renderPageSelect`
|
|
26
|
+
* prop instead. `unstable_Pagination` / `preview_Pagination` will be removed in v12.
|
|
27
|
+
*/
|
|
24
28
|
function Pagination({ backwardText = "Previous page", children = void 0, className = null, disabled = false, forwardText = "Next page", id = 1, initialPage = 1, itemsPerPageText = "Items per page:", itemRangeText = (min, max, total) => `${min}–${max} of ${total} items`, itemText = (min, max) => `${min}–${max} items`, onChange, pageRangeText = (current, total) => `${current} of ${total} pages`, pageSize = 10, pageSizes = void 0, pageText = (page) => `page ${page}`, pagesUnknown = false, totalItems = void 0, ...other }) {
|
|
25
29
|
const [currentPage, setCurrentPage] = useState(initialPage);
|
|
26
30
|
const [currentPageSize, setCurrentPageSize] = useState(pageSize);
|
|
27
31
|
const prefix = usePrefix();
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
console.warn("[Carbon] `unstable_Pagination` / `preview_Pagination` is deprecated and will be removed in v12. Use the stable `Pagination` component with the `renderPageSelect` prop instead.");
|
|
34
|
+
}, []);
|
|
28
35
|
const totalPages = totalItems ? Math.max(Math.ceil(totalItems / currentPageSize), 1) : void 0;
|
|
29
36
|
const backButtonDisabled = disabled || currentPage === 1;
|
|
30
37
|
const forwardButtonDisabled = disabled || currentPage === totalPages;
|
|
@@ -49,7 +56,7 @@ function Pagination({ backwardText = "Previous page", children = void 0, classNa
|
|
|
49
56
|
}
|
|
50
57
|
const namespace = `${prefix}--unstable-pagination`;
|
|
51
58
|
return /* @__PURE__ */ jsxs("section", {
|
|
52
|
-
className:
|
|
59
|
+
className: cx(namespace, className),
|
|
53
60
|
...other,
|
|
54
61
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
55
62
|
className: `${namespace}__left`,
|
|
@@ -113,7 +120,7 @@ function Pagination({ backwardText = "Previous page", children = void 0, classNa
|
|
|
113
120
|
align: "top",
|
|
114
121
|
disabled: backButtonDisabled,
|
|
115
122
|
kind: "ghost",
|
|
116
|
-
className:
|
|
123
|
+
className: cx(`${namespace}__button`, `${namespace}__button--backward`, { [`${namespace}__button--no-index`]: backButtonDisabled }),
|
|
117
124
|
label: backwardText,
|
|
118
125
|
onClick: () => decrementPage(),
|
|
119
126
|
children: /* @__PURE__ */ jsx(CaretLeft, {})
|
|
@@ -121,7 +128,7 @@ function Pagination({ backwardText = "Previous page", children = void 0, classNa
|
|
|
121
128
|
align: "top-right",
|
|
122
129
|
disabled: forwardButtonDisabled,
|
|
123
130
|
kind: "ghost",
|
|
124
|
-
className:
|
|
131
|
+
className: cx(`${namespace}__button`, `${namespace}__button--forward`, { [`${namespace}__button--no-index`]: forwardButtonDisabled }),
|
|
125
132
|
label: forwardText,
|
|
126
133
|
onClick: () => incrementPage(),
|
|
127
134
|
children: /* @__PURE__ */ jsx(CaretRight, {})
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { IconButton } from "../IconButton/index.js";
|
|
10
10
|
import { clamp } from "../../internal/clamp.js";
|
|
11
11
|
import { useMatchMedia } from "../../internal/useMatchMedia.js";
|
|
12
|
-
import classNames from "classnames";
|
|
13
12
|
import React, { useEffect, useRef, useState } from "react";
|
|
13
|
+
import cx from "classnames";
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { CaretLeft, CaretRight, OverflowMenuHorizontal } from "@carbon/icons-react";
|
|
@@ -89,7 +89,7 @@ function PaginationItem({ page, isActive, onClick, translateWithId: t = defaultT
|
|
|
89
89
|
className: `${prefix}--pagination-nav__list-item`,
|
|
90
90
|
children: /* @__PURE__ */ jsxs("button", {
|
|
91
91
|
type: "button",
|
|
92
|
-
className:
|
|
92
|
+
className: cx(`${prefix}--pagination-nav__page`, { [`${prefix}--pagination-nav__page--active`]: isActive }),
|
|
93
93
|
onClick,
|
|
94
94
|
"data-page": page,
|
|
95
95
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -207,18 +207,20 @@ const PaginationNav = React.forwardRef(({ className, onChange = () => {}, totalI
|
|
|
207
207
|
size
|
|
208
208
|
]);
|
|
209
209
|
useEffect(() => {
|
|
210
|
-
if (pageWouldBeHidden(currentPage)) if (currentPage - (prevPage || 0) > 0)
|
|
211
|
-
|
|
210
|
+
if (pageWouldBeHidden(currentPage)) if (currentPage - (prevPage || 0) > 0) {
|
|
211
|
+
const splitPoint = itemsDisplayedOnPage - 3;
|
|
212
|
+
setCuts(calculateCuts(currentPage, totalItems, itemsDisplayedOnPage, splitPoint));
|
|
213
|
+
} else setCuts(calculateCuts(currentPage, totalItems, itemsDisplayedOnPage, itemsDisplayedOnPage > 4 ? 2 : 1));
|
|
212
214
|
}, [currentPage]);
|
|
213
215
|
useEffect(() => {
|
|
214
216
|
setIsOverFlowDisabled(disableOverflow);
|
|
215
217
|
}, [disableOverflow]);
|
|
216
|
-
const classNames
|
|
218
|
+
const classNames = cx(`${prefix}--pagination-nav`, className, { [`${prefix}--layout--size-${size}`]: size });
|
|
217
219
|
const backwardButtonDisabled = !loop && currentPage === 0;
|
|
218
220
|
const forwardButtonDisabled = !loop && currentPage === totalItems - 1;
|
|
219
221
|
const startOffset = itemsDisplayedOnPage <= 4 && currentPage > 1 ? 0 : 1;
|
|
220
222
|
return /* @__PURE__ */ jsxs("nav", {
|
|
221
|
-
className: classNames
|
|
223
|
+
className: classNames,
|
|
222
224
|
ref,
|
|
223
225
|
...rest,
|
|
224
226
|
children: [/* @__PURE__ */ jsxs("ul", {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
+
import { selectorTabbable } from "../../internal/keyboard/navigation.js";
|
|
9
10
|
import useIsomorphicEffect from "../../internal/useIsomorphicEffect.js";
|
|
10
11
|
import { deprecateValuesWithin } from "../../prop-types/deprecateValuesWithin.js";
|
|
11
12
|
import { isComponentElement } from "../../internal/utils.js";
|
|
@@ -13,8 +14,8 @@ import { useMergedRefs } from "../../internal/useMergedRefs.js";
|
|
|
13
14
|
import { useEvent, useWindowEvent } from "../../internal/useEvent.js";
|
|
14
15
|
import { mapPopoverAlign } from "../../tools/mapPopoverAlign.js";
|
|
15
16
|
import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
16
|
-
import classNames from "classnames";
|
|
17
17
|
import React, { forwardRef, useEffect, useMemo, useRef } from "react";
|
|
18
|
+
import cx from "classnames";
|
|
18
19
|
import PropTypes from "prop-types";
|
|
19
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
21
|
import { arrow, autoUpdate, flip, hide, offset, useFloating } from "@floating-ui/react";
|
|
@@ -72,6 +73,13 @@ const Popover = React.forwardRef(function PopoverRenderFunction({ isTabTip, alig
|
|
|
72
73
|
if (isOutsideFloating && !isFocusableWrapper) onRequestClose?.();
|
|
73
74
|
}
|
|
74
75
|
});
|
|
76
|
+
useWindowEvent("keydown", (event) => {
|
|
77
|
+
if (!open || event.key !== "Escape" || event.defaultPrevented) return;
|
|
78
|
+
const target = event.target;
|
|
79
|
+
if (!(target instanceof Element) || target.closest(`.${prefix}--popover-content`) !== refs.floating.current) return;
|
|
80
|
+
onRequestClose?.();
|
|
81
|
+
(popover.current?.querySelector(selectorTabbable))?.focus();
|
|
82
|
+
});
|
|
75
83
|
useWindowEvent("click", ({ target }) => {
|
|
76
84
|
if (open && target instanceof Node && !popover.current?.contains(target) && !isTargetInDatePickerInsidePopover(target)) onRequestClose?.();
|
|
77
85
|
});
|
|
@@ -201,7 +209,7 @@ const Popover = React.forwardRef(function PopoverRenderFunction({ isTabTip, alig
|
|
|
201
209
|
]);
|
|
202
210
|
const ref = useMergedRefs([forwardRef, popover]);
|
|
203
211
|
const currentAlignment = autoAlign && placement !== align ? placement : align;
|
|
204
|
-
const className =
|
|
212
|
+
const className = cx({
|
|
205
213
|
[`${prefix}--popover-container`]: true,
|
|
206
214
|
[`${prefix}--popover--caret`]: caret,
|
|
207
215
|
[`${prefix}--popover--drop-shadow`]: dropShadow,
|
|
@@ -231,7 +239,7 @@ const Popover = React.forwardRef(function PopoverRenderFunction({ isTabTip, alig
|
|
|
231
239
|
if (React.isValidElement(item) && (isTriggerElement || isTriggerComponent || isAllowedTriggerComponent)) {
|
|
232
240
|
const className = (item?.props)?.className;
|
|
233
241
|
const ref = (item?.props).ref;
|
|
234
|
-
const tabTipClasses =
|
|
242
|
+
const tabTipClasses = cx(`${prefix}--popover--tab-tip__button`, className);
|
|
235
243
|
return React.cloneElement(item, {
|
|
236
244
|
className: isTabTip && item?.type === "button" ? tabTipClasses : className || "",
|
|
237
245
|
ref: (node) => {
|
|
@@ -375,17 +383,17 @@ const PopoverContent = forwardRef((props, forwardRef) => {
|
|
|
375
383
|
...rest,
|
|
376
384
|
className: `${prefix}--popover`,
|
|
377
385
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
378
|
-
className:
|
|
386
|
+
className: cx(`${prefix}--popover-content`, className),
|
|
379
387
|
ref,
|
|
380
388
|
children: [children, enableFloatingStyles && /* @__PURE__ */ jsx("span", {
|
|
381
|
-
className:
|
|
389
|
+
className: cx({
|
|
382
390
|
[`${prefix}--popover-caret`]: true,
|
|
383
391
|
[`${prefix}--popover--auto-align`]: true
|
|
384
392
|
}),
|
|
385
393
|
ref: caretRef
|
|
386
394
|
})]
|
|
387
395
|
}), !enableFloatingStyles && /* @__PURE__ */ jsx("span", {
|
|
388
|
-
className:
|
|
396
|
+
className: cx({ [`${prefix}--popover-caret`]: true }),
|
|
389
397
|
ref: caretRef
|
|
390
398
|
})]
|
|
391
399
|
});
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import useIsomorphicEffect from "../../internal/useIsomorphicEffect.js";
|
|
10
10
|
import { useId } from "../../internal/useId.js";
|
|
11
|
-
import classNames from "classnames";
|
|
12
11
|
import React, { useRef } from "react";
|
|
12
|
+
import cx from "classnames";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { CheckmarkFilled, ErrorFilled } from "@carbon/icons-react";
|
|
@@ -34,12 +34,12 @@ function ProgressBar({ className, helperText, hideLabel, label, max = 100, size
|
|
|
34
34
|
if (isError) cappedValue = 0;
|
|
35
35
|
else if (isFinished) cappedValue = max;
|
|
36
36
|
const percentage = (cappedValue ?? NaN) / max;
|
|
37
|
-
const wrapperClasses =
|
|
37
|
+
const wrapperClasses = cx(`${prefix}--progress-bar`, `${prefix}--progress-bar--${size}`, `${prefix}--progress-bar--${type}`, {
|
|
38
38
|
[`${prefix}--progress-bar--indeterminate`]: indeterminate,
|
|
39
39
|
[`${prefix}--progress-bar--finished`]: isFinished,
|
|
40
40
|
[`${prefix}--progress-bar--error`]: isError
|
|
41
41
|
}, className);
|
|
42
|
-
const labelClasses =
|
|
42
|
+
const labelClasses = cx(`${prefix}--progress-bar__label`, { [`${prefix}--visually-hidden`]: hideLabel });
|
|
43
43
|
let StatusIcon = null;
|
|
44
44
|
if (isError) StatusIcon = React.forwardRef((props, ref) => {
|
|
45
45
|
return /* @__PURE__ */ jsx(ErrorFilled, {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
-
import classNames from "classnames";
|
|
10
9
|
import "react";
|
|
10
|
+
import cx from "classnames";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { CircleDash } from "@carbon/icons-react";
|
|
@@ -35,7 +35,7 @@ function Step() {
|
|
|
35
35
|
function ProgressIndicatorSkeleton({ className, vertical, ...rest }) {
|
|
36
36
|
const prefix = usePrefix();
|
|
37
37
|
return /* @__PURE__ */ jsxs("ul", {
|
|
38
|
-
className:
|
|
38
|
+
className: cx(`${prefix}--progress`, `${prefix}--skeleton`, { [`${prefix}--progress--vertical`]: vertical }, className),
|
|
39
39
|
...rest,
|
|
40
40
|
children: [
|
|
41
41
|
/* @__PURE__ */ jsx(Step, {}),
|
|
@@ -56,4 +56,4 @@ ProgressIndicatorSkeleton.propTypes = {
|
|
|
56
56
|
vertical: PropTypes.bool
|
|
57
57
|
};
|
|
58
58
|
//#endregion
|
|
59
|
-
export { ProgressIndicatorSkeleton as default };
|
|
59
|
+
export { ProgressIndicatorSkeleton, ProgressIndicatorSkeleton as default };
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { Text } from "../Text/Text.js";
|
|
10
10
|
import { Enter, Space } from "../../internal/keyboard/keys.js";
|
|
11
11
|
import { matches } from "../../internal/keyboard/match.js";
|
|
12
|
-
import classNames from "classnames";
|
|
13
12
|
import React from "react";
|
|
13
|
+
import cx from "classnames";
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { CheckmarkOutline, CircleDash, Incomplete, Warning } from "@carbon/icons-react";
|
|
@@ -39,7 +39,7 @@ const defaultTranslateWithId = (messageId) => {
|
|
|
39
39
|
function ProgressIndicator({ children, className: customClassName, currentIndex: controlledIndex = 0, onChange, spaceEqually, vertical, ...rest }) {
|
|
40
40
|
const prefix = usePrefix();
|
|
41
41
|
return /* @__PURE__ */ jsx("ul", {
|
|
42
|
-
className:
|
|
42
|
+
className: cx({
|
|
43
43
|
[`${prefix}--progress`]: true,
|
|
44
44
|
[`${prefix}--progress--vertical`]: vertical,
|
|
45
45
|
[`${prefix}--progress--space-equal`]: spaceEqually && !vertical,
|
|
@@ -98,7 +98,7 @@ ProgressIndicator.propTypes = {
|
|
|
98
98
|
};
|
|
99
99
|
function ProgressStep({ label, description, className, current, complete, invalid, secondaryLabel, disabled, onClick, translateWithId: t = defaultTranslateWithId, ...rest }) {
|
|
100
100
|
const prefix = usePrefix();
|
|
101
|
-
const classes =
|
|
101
|
+
const classes = cx({
|
|
102
102
|
[`${prefix}--progress-step`]: true,
|
|
103
103
|
[`${prefix}--progress-step--current`]: current,
|
|
104
104
|
[`${prefix}--progress-step--complete`]: complete,
|
|
@@ -126,7 +126,7 @@ function ProgressStep({ label, description, className, current, complete, invali
|
|
|
126
126
|
className: classes,
|
|
127
127
|
children: /* @__PURE__ */ jsxs("button", {
|
|
128
128
|
type: "button",
|
|
129
|
-
className:
|
|
129
|
+
className: cx(`${prefix}--progress-step-button`, { [`${prefix}--progress-step-button--unclickable`]: !onClick || current }),
|
|
130
130
|
disabled,
|
|
131
131
|
"aria-disabled": disabled,
|
|
132
132
|
tabIndex: disabled ? -1 : 0,
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
-
import classNames from "classnames";
|
|
10
9
|
import "react";
|
|
10
|
+
import cx from "classnames";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/RadioButton/RadioButton.Skeleton.tsx
|
|
@@ -21,7 +21,7 @@ function RadioButtonSkeleton(props) {
|
|
|
21
21
|
const { className, ...rest } = props;
|
|
22
22
|
const prefix = usePrefix();
|
|
23
23
|
return /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
className:
|
|
24
|
+
className: cx(`${prefix}--radio-button-wrapper`, className),
|
|
25
25
|
...rest,
|
|
26
26
|
children: [/* @__PURE__ */ jsx("div", { className: `${prefix}--radio-button ${prefix}--skeleton` }), /* @__PURE__ */ jsx("span", { className: `${prefix}--radio-button__label ${prefix}--skeleton` })]
|
|
27
27
|
});
|
|
@@ -32,4 +32,4 @@ RadioButtonSkeleton.propTypes = {
|
|
|
32
32
|
*/
|
|
33
33
|
className: PropTypes.string };
|
|
34
34
|
//#endregion
|
|
35
|
-
export { RadioButtonSkeleton as default };
|
|
35
|
+
export { RadioButtonSkeleton, RadioButtonSkeleton as default };
|
|
@@ -13,8 +13,8 @@ import { isComponentElement } from "../../internal/utils.js";
|
|
|
13
13
|
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
14
14
|
import { AILabel } from "../AILabel/index.js";
|
|
15
15
|
import { mergeRefs } from "../../tools/mergeRefs.js";
|
|
16
|
-
import classNames from "classnames";
|
|
17
16
|
import React, { cloneElement, useRef } from "react";
|
|
17
|
+
import cx from "classnames";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
@@ -41,8 +41,8 @@ const RadioButton = React.forwardRef((props, ref) => {
|
|
|
41
41
|
function handleOnChange(event) {
|
|
42
42
|
onChange(value, name, event);
|
|
43
43
|
}
|
|
44
|
-
const innerLabelClasses =
|
|
45
|
-
const wrapperClasses =
|
|
44
|
+
const innerLabelClasses = cx(`${prefix}--radio-button__label-text`, { [`${prefix}--visually-hidden`]: hideLabel });
|
|
45
|
+
const wrapperClasses = cx(className, `${prefix}--radio-button-wrapper`, {
|
|
46
46
|
[`${prefix}--radio-button-wrapper--label-${labelPosition}`]: labelPosition !== "right",
|
|
47
47
|
[`${prefix}--radio-button-wrapper--slug`]: slug,
|
|
48
48
|
[`${prefix}--radio-button-wrapper--decorator`]: decorator,
|
|
@@ -14,8 +14,8 @@ import { AILabel } from "../AILabel/index.js";
|
|
|
14
14
|
import { mergeRefs } from "../../tools/mergeRefs.js";
|
|
15
15
|
import RadioButton_default from "../RadioButton/index.js";
|
|
16
16
|
import { Legend } from "../Text/createTextComponent.js";
|
|
17
|
-
import classNames from "classnames";
|
|
18
17
|
import React, { Children, cloneElement, createContext, useEffect, useRef, useState } from "react";
|
|
18
|
+
import cx from "classnames";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
@@ -57,8 +57,8 @@ const RadioButtonGroup = React.forwardRef((props, ref) => {
|
|
|
57
57
|
}
|
|
58
58
|
const showWarning = !readOnly && !disabled && !invalid && warn;
|
|
59
59
|
const showHelper = !invalid && !disabled && !warn;
|
|
60
|
-
const wrapperClasses =
|
|
61
|
-
const fieldsetClasses =
|
|
60
|
+
const wrapperClasses = cx(`${prefix}--form-item`, className);
|
|
61
|
+
const fieldsetClasses = cx(`${prefix}--radio-button-group`, {
|
|
62
62
|
[`${prefix}--radio-button-group--${orientation}`]: orientation === "vertical",
|
|
63
63
|
[`${prefix}--radio-button-group--label-${labelPosition}`]: labelPosition,
|
|
64
64
|
[`${prefix}--radio-button-group--readonly`]: readOnly,
|
|
@@ -67,7 +67,7 @@ const RadioButtonGroup = React.forwardRef((props, ref) => {
|
|
|
67
67
|
[`${prefix}--radio-button-group--slug`]: slug,
|
|
68
68
|
[`${prefix}--radio-button-group--decorator`]: decorator
|
|
69
69
|
});
|
|
70
|
-
const helperClasses =
|
|
70
|
+
const helperClasses = cx(`${prefix}--form__helper-text`, { [`${prefix}--form__helper-text--disabled`]: disabled });
|
|
71
71
|
const hasHelper = hasHelperText(helperText);
|
|
72
72
|
const helperId = !hasHelper ? void 0 : `radio-button-group-helper-text-${radioButtonGroupInstanceId}`;
|
|
73
73
|
const helper = hasHelper && /* @__PURE__ */ jsx("div", {
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { noopFn } from "../../internal/noopFn.js";
|
|
8
9
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
10
|
import { Text } from "../Text/Text.js";
|
|
10
11
|
import { Enter, Space } from "../../internal/keyboard/keys.js";
|
|
11
12
|
import { matches } from "../../internal/keyboard/match.js";
|
|
12
13
|
import { useFallbackId } from "../../internal/useId.js";
|
|
13
|
-
import { noopFn } from "../../internal/noopFn.js";
|
|
14
14
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
15
15
|
import { isComponentElement } from "../../internal/utils.js";
|
|
16
16
|
import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
17
17
|
import { AILabel } from "../AILabel/index.js";
|
|
18
|
-
import classNames from "classnames";
|
|
19
18
|
import React, { cloneElement } from "react";
|
|
19
|
+
import cx from "classnames";
|
|
20
20
|
import PropTypes from "prop-types";
|
|
21
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
22
|
import { CheckmarkFilled, RadioButton, RadioButtonChecked } from "@carbon/icons-react";
|
|
@@ -30,7 +30,7 @@ import { CheckmarkFilled, RadioButton, RadioButtonChecked } from "@carbon/icons-
|
|
|
30
30
|
const RadioTile = React.forwardRef(({ children, className: customClassName, decorator, disabled, light, checked, name, value, id, onChange = noopFn, tabIndex = 0, hasRoundedCorners, slug, required, ...rest }, ref) => {
|
|
31
31
|
const prefix = usePrefix();
|
|
32
32
|
const inputId = useFallbackId(id);
|
|
33
|
-
const className =
|
|
33
|
+
const className = cx(customClassName, `${prefix}--tile`, `${prefix}--tile--selectable`, `${prefix}--tile--radio`, {
|
|
34
34
|
[`${prefix}--tile--is-selected`]: checked,
|
|
35
35
|
[`${prefix}--tile--light`]: light,
|
|
36
36
|
[`${prefix}--tile--disabled`]: disabled,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import "react";
|
|
11
|
+
import cx from "classnames";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
//#region src/components/Search/Search.Skeleton.tsx
|
|
@@ -22,7 +22,7 @@ const SearchSkeleton = ({ small = false, size, className, ...rest }) => {
|
|
|
22
22
|
const prefix = usePrefix();
|
|
23
23
|
const normalizedSize = small ? "sm" : size;
|
|
24
24
|
return /* @__PURE__ */ jsx("div", {
|
|
25
|
-
className:
|
|
25
|
+
className: cx(className, {
|
|
26
26
|
[`${prefix}--skeleton`]: true,
|
|
27
27
|
[`${prefix}--search--sm`]: small,
|
|
28
28
|
[`${prefix}--layout--size-${normalizedSize}`]: normalizedSize
|
|
@@ -51,4 +51,4 @@ SearchSkeleton.propTypes = {
|
|
|
51
51
|
small: deprecate(PropTypes.bool, "The `small` prop has been deprecated and will be removed in the next major release. Please use the `size` prop instead.")
|
|
52
52
|
};
|
|
53
53
|
//#endregion
|
|
54
|
-
export { SearchSkeleton as default };
|
|
54
|
+
export { SearchSkeleton, SearchSkeleton as default };
|