@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
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import PasswordInput from "../TextInput/PasswordInput.js";
|
|
11
11
|
import TextInput_default from "../TextInput/index.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 } from "react/jsx-runtime";
|
|
16
16
|
//#region src/components/FluidTextInput/FluidTextInput.tsx
|
|
@@ -21,15 +21,15 @@ import { jsx } from "react/jsx-runtime";
|
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
23
|
const FluidTextInput = React.forwardRef(({ className, isPassword, ...other }, ref) => {
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(className, { [`${usePrefix()}--text-input--fluid`]: !isPassword });
|
|
25
25
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
26
26
|
value: { isFluid: true },
|
|
27
27
|
children: isPassword ? /* @__PURE__ */ jsx(PasswordInput, {
|
|
28
|
-
className: classNames
|
|
28
|
+
className: classNames,
|
|
29
29
|
ref,
|
|
30
30
|
...other
|
|
31
31
|
}) : /* @__PURE__ */ jsx(TextInput_default, {
|
|
32
|
-
className: classNames
|
|
32
|
+
className: classNames,
|
|
33
33
|
ref,
|
|
34
34
|
...other
|
|
35
35
|
})
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import FluidTextInput from "./FluidTextInput.js";
|
|
9
|
-
import "./FluidPasswordInput.js";
|
|
10
|
-
import "./FluidTextInput.Skeleton.js";
|
|
9
|
+
import FluidPasswordInput from "./FluidPasswordInput.js";
|
|
10
|
+
import FluidTextInputSkeleton from "./FluidTextInput.Skeleton.js";
|
|
11
11
|
//#region src/components/FluidTextInput/index.tsx
|
|
12
12
|
/**
|
|
13
13
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -17,4 +17,4 @@ import "./FluidTextInput.Skeleton.js";
|
|
|
17
17
|
*/
|
|
18
18
|
var FluidTextInput_default = FluidTextInput;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { FluidTextInput_default as default };
|
|
20
|
+
export { FluidPasswordInput, FluidTextInput, FluidTextInputSkeleton, FluidTextInput_default as default };
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import FluidSelectSkeleton from "../FluidSelect/FluidSelect.Skeleton.js";
|
|
10
10
|
import FluidTextInputSkeleton from "../FluidTextInput/FluidTextInput.Skeleton.js";
|
|
11
|
-
import classNames from "classnames";
|
|
12
11
|
import "react";
|
|
12
|
+
import cx from "classnames";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/FluidTimePicker/FluidTimePicker.Skeleton.tsx
|
|
@@ -22,7 +22,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
22
22
|
const FluidTimePickerSkeleton = ({ className, isOnlyTwo, ...rest }) => {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
24
|
return /* @__PURE__ */ jsxs("div", {
|
|
25
|
-
className:
|
|
25
|
+
className: cx(className, `${prefix}--time-picker--fluid--skeleton`, { [`${prefix}--time-picker--equal-width`]: isOnlyTwo }),
|
|
26
26
|
...rest,
|
|
27
27
|
children: [
|
|
28
28
|
/* @__PURE__ */ jsx(FluidTextInputSkeleton, {}),
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { isComponentElement } from "../../internal/utils.js";
|
|
10
10
|
import FluidTextInput_default from "../FluidTextInput/index.js";
|
|
11
11
|
import FluidTimePickerSelect_default from "../FluidTimePickerSelect/index.js";
|
|
12
|
-
import classNames from "classnames";
|
|
13
12
|
import React, { cloneElement } 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 { WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
@@ -23,7 +23,7 @@ import { WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
|
23
23
|
*/
|
|
24
24
|
const FluidTimePicker = React.forwardRef(({ className, children, disabled, invalid, invalidText, warn, warnText, readOnly, ...other }, ref) => {
|
|
25
25
|
const prefix = usePrefix();
|
|
26
|
-
const classNames
|
|
26
|
+
const classNames = cx(className, {
|
|
27
27
|
[`${prefix}--time-picker--fluid`]: true,
|
|
28
28
|
[`${prefix}--time-picker--equal-width`]: React.Children.toArray(children).length !== 2,
|
|
29
29
|
[`${prefix}--time-picker--fluid--disabled`]: disabled,
|
|
@@ -41,7 +41,7 @@ const FluidTimePicker = React.forwardRef(({ className, children, disabled, inval
|
|
|
41
41
|
return children;
|
|
42
42
|
};
|
|
43
43
|
return /* @__PURE__ */ jsxs("div", {
|
|
44
|
-
className: classNames
|
|
44
|
+
className: classNames,
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ jsxs("div", {
|
|
47
47
|
className: `${prefix}--time-picker--fluid__wrapper`,
|
|
@@ -15,4 +15,4 @@ import FluidTimePickerSelect from "./FluidTimePickerSelect.js";
|
|
|
15
15
|
*/
|
|
16
16
|
var FluidTimePickerSelect_default = FluidTimePickerSelect;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { FluidTimePickerSelect_default as default };
|
|
18
|
+
export { FluidTimePickerSelect, FluidTimePickerSelect_default as default };
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Form/Form.tsx
|
|
@@ -19,7 +19,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
19
19
|
*/
|
|
20
20
|
function Form({ className, children, ...other }) {
|
|
21
21
|
return /* @__PURE__ */ jsx("form", {
|
|
22
|
-
className:
|
|
22
|
+
className: cx(`${usePrefix()}--form`, className),
|
|
23
23
|
...other,
|
|
24
24
|
children
|
|
25
25
|
});
|
|
@@ -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/FormGroup/FormGroup.tsx
|
|
@@ -19,7 +19,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
19
19
|
*/
|
|
20
20
|
const FormGroup = ({ disabled = false, legendId, legendText, invalid = false, children, className, message = false, messageText = "", ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
|
-
const classNamesFieldset =
|
|
22
|
+
const classNamesFieldset = cx(`${prefix}--fieldset`, className);
|
|
23
23
|
return /* @__PURE__ */ jsxs("fieldset", {
|
|
24
24
|
disabled,
|
|
25
25
|
...invalid && { "data-invalid": "" },
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/FormItem/FormItem.tsx
|
|
@@ -19,7 +19,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
19
19
|
*/
|
|
20
20
|
function FormItem({ className, children, ...rest }) {
|
|
21
21
|
return /* @__PURE__ */ jsx("div", {
|
|
22
|
-
className:
|
|
22
|
+
className: cx(`${usePrefix()}--form-item`, className),
|
|
23
23
|
...rest,
|
|
24
24
|
children
|
|
25
25
|
});
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { Text } from "../Text/Text.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/FormLabel/FormLabel.tsx
|
|
@@ -23,7 +23,7 @@ function FormLabel({ className: customClassName, children, id, ...rest }) {
|
|
|
23
23
|
return /* @__PURE__ */ jsx(Text, {
|
|
24
24
|
as: "label",
|
|
25
25
|
htmlFor: id,
|
|
26
|
-
className:
|
|
26
|
+
className: cx(`${prefix}--label`, `${prefix}--label--no-margin`, customClassName),
|
|
27
27
|
...rest,
|
|
28
28
|
children
|
|
29
29
|
});
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { GridSettings, useGridSettings } from "./GridContext.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import React from "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/Grid/CSSGrid.tsx
|
|
@@ -37,7 +37,7 @@ const CSSGrid = React.forwardRef(({ align, as, children, className: customClassN
|
|
|
37
37
|
children
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
|
-
const className =
|
|
40
|
+
const className = cx(customClassName, {
|
|
41
41
|
[`${prefix}--css-grid`]: true,
|
|
42
42
|
[`${prefix}--css-grid--condensed`]: mode === "condensed",
|
|
43
43
|
[`${prefix}--css-grid--narrow`]: mode === "narrow",
|
|
@@ -100,7 +100,7 @@ CSSGrid.propTypes = {
|
|
|
100
100
|
};
|
|
101
101
|
const Subgrid = React.forwardRef(({ as, className: customClassName, children, mode, withRowGap, ...rest }, ref) => {
|
|
102
102
|
const prefix = usePrefix();
|
|
103
|
-
const className =
|
|
103
|
+
const className = cx(customClassName, {
|
|
104
104
|
[`${prefix}--subgrid`]: true,
|
|
105
105
|
[`${prefix}--subgrid--condensed`]: mode === "condensed",
|
|
106
106
|
[`${prefix}--subgrid--narrow`]: mode === "narrow",
|
|
@@ -143,4 +143,4 @@ Subgrid.propTypes = {
|
|
|
143
143
|
};
|
|
144
144
|
const CSSGridComponent = CSSGrid;
|
|
145
145
|
//#endregion
|
|
146
|
-
export { CSSGridComponent };
|
|
146
|
+
export { CSSGridComponent as CSSGrid };
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { useGridSettings } from "./GridContext.js";
|
|
10
10
|
import { enabled } from "@carbon/feature-flags";
|
|
11
|
-
import classNames from "classnames";
|
|
12
11
|
import React from "react";
|
|
12
|
+
import cx from "classnames";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/Grid/Column.tsx
|
|
@@ -43,7 +43,7 @@ const Column = React.forwardRef(({ as, children, className: customClassName, sm,
|
|
|
43
43
|
max
|
|
44
44
|
], prefix);
|
|
45
45
|
return /* @__PURE__ */ jsx(BaseComponent, {
|
|
46
|
-
className:
|
|
46
|
+
className: cx(customClassName, columnClassName, { [`${prefix}--col`]: columnClassName.length === 0 }),
|
|
47
47
|
ref,
|
|
48
48
|
...rest,
|
|
49
49
|
children
|
|
@@ -130,7 +130,7 @@ Column.propTypes = {
|
|
|
130
130
|
const CSSGridColumn = React.forwardRef(({ as: BaseComponent = "div", children, className: containerClassName, sm, md, lg, xlg, max, span, ...rest }, ref) => {
|
|
131
131
|
const prefix = usePrefix();
|
|
132
132
|
return /* @__PURE__ */ jsx(BaseComponent, {
|
|
133
|
-
className:
|
|
133
|
+
className: cx(containerClassName, getClassNameForBreakpoints([
|
|
134
134
|
sm,
|
|
135
135
|
md,
|
|
136
136
|
lg,
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Grid/ColumnHang.tsx
|
|
@@ -22,7 +22,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
22
22
|
* trying to align content across different gutter modes
|
|
23
23
|
*/
|
|
24
24
|
function ColumnHang({ as: BaseComponent = "div", className: customClassName, children, ...rest }) {
|
|
25
|
-
const className =
|
|
25
|
+
const className = cx(customClassName, `${usePrefix()}--grid-column-hang`);
|
|
26
26
|
return /* @__PURE__ */ jsx(BaseComponent, {
|
|
27
27
|
...rest,
|
|
28
28
|
className,
|
|
@@ -45,4 +45,4 @@ ColumnHang.propTypes = {
|
|
|
45
45
|
};
|
|
46
46
|
const ColumnHangComponent = ColumnHang;
|
|
47
47
|
//#endregion
|
|
48
|
-
export { ColumnHangComponent };
|
|
48
|
+
export { ColumnHangComponent as ColumnHang };
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { GridSettings } from "./GridContext.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import React from "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/Grid/FlexGrid.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
*/
|
|
21
21
|
const FlexGrid = React.forwardRef(({ as, condensed = false, narrow = false, fullWidth = false, withRowGap = false, className: containerClassName, children, ...rest }, ref) => {
|
|
22
22
|
const prefix = usePrefix();
|
|
23
|
-
const className =
|
|
23
|
+
const className = cx(containerClassName, {
|
|
24
24
|
[`${prefix}--grid`]: true,
|
|
25
25
|
[`${prefix}--grid--condensed`]: condensed,
|
|
26
26
|
[`${prefix}--grid--narrow`]: narrow,
|
|
@@ -73,4 +73,4 @@ FlexGrid.propTypes = {
|
|
|
73
73
|
};
|
|
74
74
|
const FlexGridComponent = FlexGrid;
|
|
75
75
|
//#endregion
|
|
76
|
-
export { FlexGridComponent };
|
|
76
|
+
export { FlexGridComponent as FlexGrid };
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
9
|
-
import { FlexGridComponent } from "./FlexGrid.js";
|
|
10
|
-
import { CSSGridComponent } from "./CSSGrid.js";
|
|
9
|
+
import { FlexGrid as FlexGridComponent } from "./FlexGrid.js";
|
|
10
|
+
import { CSSGrid as CSSGridComponent } from "./CSSGrid.js";
|
|
11
11
|
import "react";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -65,4 +65,4 @@ Grid.propTypes = {
|
|
|
65
65
|
};
|
|
66
66
|
const GridAsGridComponent = Grid;
|
|
67
67
|
//#endregion
|
|
68
|
-
export { GridAsGridComponent };
|
|
68
|
+
export { GridAsGridComponent as Grid };
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Grid/Row.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
function Row({ as: BaseComponent = "div", condensed = false, narrow = false, className: containerClassName, children, ...rest }) {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx(BaseComponent, {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(containerClassName, {
|
|
24
24
|
[`${prefix}--row`]: true,
|
|
25
25
|
[`${prefix}--row--condensed`]: condensed,
|
|
26
26
|
[`${prefix}--row--narrow`]: narrow
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Icon/Icon.Skeleton.tsx
|
|
@@ -19,7 +19,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
19
19
|
*/
|
|
20
20
|
const IconSkeleton = ({ className, ...rest }) => {
|
|
21
21
|
return /* @__PURE__ */ jsx("div", {
|
|
22
|
-
className:
|
|
22
|
+
className: cx(`${usePrefix()}--icon--skeleton`, className),
|
|
23
23
|
...rest
|
|
24
24
|
});
|
|
25
25
|
};
|
|
@@ -29,4 +29,4 @@ IconSkeleton.propTypes = {
|
|
|
29
29
|
*/
|
|
30
30
|
className: PropTypes.string };
|
|
31
31
|
//#endregion
|
|
32
|
-
export { IconSkeleton as default };
|
|
32
|
+
export { IconSkeleton, IconSkeleton as default };
|
|
@@ -11,9 +11,9 @@ import { deprecateValuesWithin } from "../../prop-types/deprecateValuesWithin.js
|
|
|
11
11
|
import { mapPopoverAlign } from "../../tools/mapPopoverAlign.js";
|
|
12
12
|
import { Tooltip } from "../Tooltip/Tooltip.js";
|
|
13
13
|
import ButtonBase from "../Button/ButtonBase.js";
|
|
14
|
-
import BadgeIndicator from "../BadgeIndicator/index.js";
|
|
15
|
-
import classNames from "classnames";
|
|
14
|
+
import { BadgeIndicator } from "../BadgeIndicator/index.js";
|
|
16
15
|
import { forwardRef } from "react";
|
|
16
|
+
import cx from "classnames";
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
//#region src/components/IconButton/index.tsx
|
|
@@ -31,7 +31,7 @@ const IconButtonKinds = [
|
|
|
31
31
|
];
|
|
32
32
|
const IconButton = forwardRef(({ align, autoAlign = false, badgeCount, children, className, closeOnActivation = true, defaultOpen = false, disabled, dropShadow = false, enterDelayMs = 100, highContrast = true, kind, label, leaveDelayMs = 100, wrapperClasses, size, isSelected, ...rest }, ref) => {
|
|
33
33
|
const prefix = usePrefix();
|
|
34
|
-
const tooltipClasses =
|
|
34
|
+
const tooltipClasses = cx(wrapperClasses, `${prefix}--icon-tooltip`, { [`${prefix}--icon-tooltip--disabled`]: disabled });
|
|
35
35
|
if (badgeCount && (kind !== "ghost" || size !== "lg")) console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");
|
|
36
36
|
const badgeId = useId("badge-indicator");
|
|
37
37
|
return /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -177,6 +177,7 @@ IconButton.propTypes = {
|
|
|
177
177
|
* Specify the size of the Button.
|
|
178
178
|
*/
|
|
179
179
|
size: PropTypes.oneOf([
|
|
180
|
+
"xs",
|
|
180
181
|
"sm",
|
|
181
182
|
"md",
|
|
182
183
|
"lg"
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { DefinitionTooltip } from "../Tooltip/DefinitionTooltip.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import React from "react";
|
|
11
|
+
import cx from "classnames";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { CheckmarkFilled, CheckmarkOutline, CircleDash, ErrorFilled, InProgress, Incomplete, PendingFilled, UndefinedFilled, UnknownFilled, WarningAltFilled, WarningAltInvertedFilled, WarningSquareFilled } from "@carbon/icons-react";
|
|
@@ -36,7 +36,7 @@ const iconTypes = {
|
|
|
36
36
|
const IconIndicatorKinds = Object.keys(iconTypes);
|
|
37
37
|
const IconIndicator = React.forwardRef(({ align = "right", autoAlign = false, className: customClassName, compact = false, iconDescription, kind, label, size = 16 }, ref) => {
|
|
38
38
|
const prefix = usePrefix();
|
|
39
|
-
const classNames
|
|
39
|
+
const classNames = cx(`${prefix}--icon-indicator`, customClassName, { [`${prefix}--icon-indicator--20`]: size === 20 });
|
|
40
40
|
const IconForKind = iconTypes[kind];
|
|
41
41
|
if (!IconForKind) return null;
|
|
42
42
|
const iconElement = /* @__PURE__ */ jsx(IconForKind, {
|
|
@@ -44,7 +44,7 @@ const IconIndicator = React.forwardRef(({ align = "right", autoAlign = false, cl
|
|
|
44
44
|
className: `${prefix}--icon-indicator--${kind}`
|
|
45
45
|
});
|
|
46
46
|
return /* @__PURE__ */ jsx("div", {
|
|
47
|
-
className: classNames
|
|
47
|
+
className: classNames,
|
|
48
48
|
ref,
|
|
49
49
|
children: compact ? /* @__PURE__ */ jsxs(DefinitionTooltip, {
|
|
50
50
|
align,
|
|
@@ -108,4 +108,4 @@ IconIndicator.propTypes = {
|
|
|
108
108
|
size: PropTypes.oneOf([16, 20])
|
|
109
109
|
};
|
|
110
110
|
//#endregion
|
|
111
|
-
export { IconIndicator as default };
|
|
111
|
+
export { IconIndicator, IconIndicator as default, IconIndicatorKinds };
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import Loading_default from "../Loading/index.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import { useEffect, useRef } from "react";
|
|
11
|
+
import cx from "classnames";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { CheckmarkFilled, ErrorFilled } from "@carbon/icons-react";
|
|
@@ -21,7 +21,7 @@ import { CheckmarkFilled, ErrorFilled } from "@carbon/icons-react";
|
|
|
21
21
|
*/
|
|
22
22
|
const InlineLoading = ({ className, status = "active", iconDescription, description, onSuccess, successDelay = 1500, ...rest }) => {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
|
-
const loadingClasses =
|
|
24
|
+
const loadingClasses = cx(`${prefix}--inline-loading`, className);
|
|
25
25
|
const timerRef = useRef(null);
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
if (status === "finished") timerRef.current = setTimeout(() => {
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { LayerContext } from "./LayerContext.js";
|
|
10
10
|
import { MAX_LEVEL, MIN_LEVEL, levels } from "./LayerLevel.js";
|
|
11
11
|
import { clamp } from "../../internal/clamp.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 } from "react/jsx-runtime";
|
|
16
16
|
//#region src/components/Layer/index.tsx
|
|
@@ -33,7 +33,7 @@ const Layer = React.forwardRef((props, ref) => {
|
|
|
33
33
|
const contextLevel = React.useContext(LayerContext);
|
|
34
34
|
const level = overrideLevel ?? contextLevel;
|
|
35
35
|
const prefix = usePrefix();
|
|
36
|
-
const className =
|
|
36
|
+
const className = cx(`${prefix}--layer-${levels[level]}`, { [`${prefix}--layer__with-background`]: withBackground }, customClassName);
|
|
37
37
|
const value = clamp(level + 1, MIN_LEVEL, MAX_LEVEL);
|
|
38
38
|
const BaseComponent = as || "div";
|
|
39
39
|
return /* @__PURE__ */ jsx(LayerContext.Provider, {
|
|
@@ -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 from "react";
|
|
10
|
+
import cx from "classnames";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Layout/index.tsx
|
|
@@ -28,7 +28,7 @@ const sizes = [
|
|
|
28
28
|
const densities = ["condensed", "normal"];
|
|
29
29
|
const Layout = React.forwardRef(({ as: BaseComponent = "div", children, className, density, size, ...rest }, forwardRef) => {
|
|
30
30
|
const prefix = usePrefix();
|
|
31
|
-
const classes =
|
|
31
|
+
const classes = cx(className, `${prefix}--layout`, {
|
|
32
32
|
[`${prefix}--layout--size-${size}`]: size && sizes.includes(size),
|
|
33
33
|
[`${prefix}--layout--density-${density}`]: density && densities.includes(density)
|
|
34
34
|
});
|
|
@@ -69,7 +69,7 @@ Layout.propTypes = {
|
|
|
69
69
|
};
|
|
70
70
|
const LayoutConstraint = React.forwardRef(({ as: BaseComponent = "div", children, className, density, size, ...rest }, forwardRef) => {
|
|
71
71
|
const prefix = usePrefix();
|
|
72
|
-
const classes =
|
|
72
|
+
const classes = cx(className, Object.entries({
|
|
73
73
|
size,
|
|
74
74
|
density
|
|
75
75
|
}).map(([group, constraints]) => ({
|
|
@@ -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 from "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/Link/Link.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
const Link = React.forwardRef(({ as: BaseComponent, children, className: customClassName, href, disabled = false, inline = false, visited = false, renderIcon: Icon, size, target, ...rest }, ref) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
const linkProps = {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(`${prefix}--link`, customClassName, {
|
|
24
24
|
[`${prefix}--link--disabled`]: disabled,
|
|
25
25
|
[`${prefix}--link--inline`]: inline,
|
|
26
26
|
[`${prefix}--link--visited`]: visited,
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
10
10
|
import { ListBoxSizePropType, ListBoxTypePropType } from "./ListBoxPropTypes.js";
|
|
11
11
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
12
|
-
import classNames from "classnames";
|
|
13
12
|
import { forwardRef, useContext } 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
|
//#region src/components/ListBox/ListBox.tsx
|
|
@@ -36,7 +36,7 @@ const ListBox = forwardRef((props, ref) => {
|
|
|
36
36
|
const prefix = usePrefix();
|
|
37
37
|
const { isFluid } = useContext(FormContext);
|
|
38
38
|
const showWarning = !invalid && warn;
|
|
39
|
-
const className =
|
|
39
|
+
const className = cx({
|
|
40
40
|
...containerClassName && { [containerClassName]: true },
|
|
41
41
|
[`${prefix}--list-box`]: true,
|
|
42
42
|
[`${prefix}--list-box--${size}`]: size,
|
|
@@ -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 } from "react/jsx-runtime";
|
|
13
13
|
import { ChevronDown } from "@carbon/icons-react";
|
|
@@ -35,7 +35,7 @@ const defaultTranslateWithId = (messageId) => {
|
|
|
35
35
|
*/
|
|
36
36
|
const ListBoxMenuIcon = ({ isOpen, translateWithId: t = defaultTranslateWithId }) => {
|
|
37
37
|
const prefix = usePrefix();
|
|
38
|
-
const className =
|
|
38
|
+
const className = cx(`${prefix}--list-box__menu-icon`, { [`${prefix}--list-box__menu-icon--open`]: isOpen });
|
|
39
39
|
const description = isOpen ? t("close.menu") : t("open.menu");
|
|
40
40
|
return /* @__PURE__ */ jsx("div", {
|
|
41
41
|
className,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { useMergedRefs } from "../../internal/useMergedRefs.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import { forwardRef, useEffect, useRef, useState } from "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/ListBox/ListBoxMenuItem.tsx
|
|
@@ -51,8 +51,9 @@ const useIsTruncated = (forwardedRef, deps = []) => {
|
|
|
51
51
|
*/
|
|
52
52
|
const ListBoxMenuItem = forwardRef(({ children, isActive = false, isHighlighted = false, title, ...rest }, forwardedRef) => {
|
|
53
53
|
const prefix = usePrefix();
|
|
54
|
-
const
|
|
55
|
-
const
|
|
54
|
+
const menuItemOptionRefProp = forwardedRef && typeof forwardedRef !== "function" ? forwardedRef.menuItemOptionRef : void 0;
|
|
55
|
+
const { isTruncated, ref: menuItemOptionRef } = useIsTruncated(menuItemOptionRefProp, [children]);
|
|
56
|
+
const className = cx(`${prefix}--list-box__menu-item`, {
|
|
56
57
|
[`${prefix}--list-box__menu-item--active`]: isActive,
|
|
57
58
|
[`${prefix}--list-box__menu-item--highlighted`]: isHighlighted
|
|
58
59
|
});
|
|
@@ -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 { Close } from "@carbon/icons-react";
|
|
@@ -38,7 +38,7 @@ const ListBoxSelection = ({ clearSelection, selectionCount, translateWithId: t =
|
|
|
38
38
|
const prefix = usePrefix();
|
|
39
39
|
const hasSelectionCount = (selectionCount ?? 0) > 0;
|
|
40
40
|
const hasMultipleSelections = (selectionCount ?? 0) > 1;
|
|
41
|
-
const className =
|
|
41
|
+
const className = cx(`${prefix}--list-box__selection`, {
|
|
42
42
|
[`${prefix}--tag--filter`]: hasSelectionCount,
|
|
43
43
|
[`${prefix}--list-box__selection--multi`]: hasSelectionCount
|
|
44
44
|
});
|
|
@@ -49,7 +49,7 @@ const ListBoxSelection = ({ clearSelection, selectionCount, translateWithId: t =
|
|
|
49
49
|
if (onClearSelection) onClearSelection(event);
|
|
50
50
|
};
|
|
51
51
|
const description = hasMultipleSelections ? t("clear.all") : t("clear.selection");
|
|
52
|
-
const tagClasses =
|
|
52
|
+
const tagClasses = cx(`${prefix}--tag`, `${prefix}--tag--filter`, `${prefix}--tag--high-contrast`, { [`${prefix}--tag--disabled`]: disabled });
|
|
53
53
|
return hasSelectionCount ? /* @__PURE__ */ jsxs("div", {
|
|
54
54
|
className: tagClasses,
|
|
55
55
|
children: [/* @__PURE__ */ jsx("span", {
|