@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,9 +9,9 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { useId } from "../../internal/useId.js";
|
|
10
10
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
11
11
|
import { IconButton } from "../IconButton/index.js";
|
|
12
|
-
import Toggletip,
|
|
13
|
-
import classNames from "classnames";
|
|
12
|
+
import { Toggletip, ToggletipActions, ToggletipButton, ToggletipContent } from "../Toggletip/index.js";
|
|
14
13
|
import React from "react";
|
|
14
|
+
import cx from "classnames";
|
|
15
15
|
import PropTypes from "prop-types";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { Undo } from "@carbon/icons-react";
|
|
@@ -25,7 +25,7 @@ import { Undo } from "@carbon/icons-react";
|
|
|
25
25
|
const AILabelContent = ({ className, children }) => {
|
|
26
26
|
const prefix = usePrefix();
|
|
27
27
|
return /* @__PURE__ */ jsx(ToggletipContent, {
|
|
28
|
-
className:
|
|
28
|
+
className: cx(className, {
|
|
29
29
|
[`${prefix}--ai-label-content`]: true,
|
|
30
30
|
[`${prefix}--ai-label-content--with-actions`]: false
|
|
31
31
|
}),
|
|
@@ -45,7 +45,7 @@ AILabelContent.propTypes = {
|
|
|
45
45
|
};
|
|
46
46
|
const AILabelActions = ({ className, children }) => {
|
|
47
47
|
return /* @__PURE__ */ jsx(ToggletipActions, {
|
|
48
|
-
className:
|
|
48
|
+
className: cx(className, { [`${usePrefix()}--ai-label-actions`]: true }),
|
|
49
49
|
children
|
|
50
50
|
});
|
|
51
51
|
};
|
|
@@ -63,11 +63,11 @@ AILabelActions.propTypes = {
|
|
|
63
63
|
const AILabel = React.forwardRef(function AILabel({ aiText = "AI", aiTextLabel, textLabel, align, autoAlign = true, children, className, kind = "default", onRevertClick, revertActive, revertLabel = "Revert to AI input", slugLabel = "Show information", ["aria-label"]: ariaLabel = "Show information", size = "xs", ...rest }, ref) {
|
|
64
64
|
const prefix = usePrefix();
|
|
65
65
|
const id = useId("AILabel");
|
|
66
|
-
const aiLabelClasses =
|
|
66
|
+
const aiLabelClasses = cx(className, {
|
|
67
67
|
[`${prefix}--ai-label`]: true,
|
|
68
68
|
[`${prefix}--ai-label--revert`]: revertActive
|
|
69
69
|
});
|
|
70
|
-
const aiLabelButtonClasses =
|
|
70
|
+
const aiLabelButtonClasses = cx({
|
|
71
71
|
[`${prefix}--ai-label__button`]: true,
|
|
72
72
|
[`${prefix}--ai-label__button--${size}`]: size,
|
|
73
73
|
[`${prefix}--ai-label__button--${kind}`]: kind,
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import SkeletonIcon from "../SkeletonIcon/SkeletonIcon.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/AISkeleton/AISkeletonIcon.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
*/
|
|
21
21
|
const AISkeletonIcon = ({ className, ...rest }) => {
|
|
22
22
|
return /* @__PURE__ */ jsx(SkeletonIcon, {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, { [`${usePrefix()}--skeleton__icon--ai`]: true }),
|
|
24
24
|
...rest
|
|
25
25
|
});
|
|
26
26
|
};
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import SkeletonPlaceholder from "../SkeletonPlaceholder/SkeletonPlaceholder.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/AISkeleton/AISkeletonPlaceholder.tsx
|
|
15
15
|
const AISkeletonPlaceholder = ({ className, ...other }) => {
|
|
16
16
|
return /* @__PURE__ */ jsx(SkeletonPlaceholder, {
|
|
17
|
-
className:
|
|
17
|
+
className: cx(className, { [`${usePrefix()}--skeleton__placeholder--ai`]: true }),
|
|
18
18
|
...other
|
|
19
19
|
});
|
|
20
20
|
};
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import SkeletonText from "../SkeletonText/SkeletonText.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/AISkeleton/AISkeletonText.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
*/
|
|
21
21
|
const AISkeletonText = ({ className, ...rest }) => {
|
|
22
22
|
return /* @__PURE__ */ jsx(SkeletonText, {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, { [`${usePrefix()}--skeleton__text--ai`]: true }),
|
|
24
24
|
...rest
|
|
25
25
|
});
|
|
26
26
|
};
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import SkeletonText_default from "../SkeletonText/index.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, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { ChevronRight } from "@carbon/icons-react";
|
|
@@ -21,7 +21,7 @@ import { ChevronRight } from "@carbon/icons-react";
|
|
|
21
21
|
*/
|
|
22
22
|
function AccordionSkeleton({ align = "end", className, count = 4, isFlush, open = true, ordered = false, ...rest }) {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
|
-
const classes =
|
|
24
|
+
const classes = cx(`${prefix}--accordion`, `${prefix}--skeleton`, className, {
|
|
25
25
|
[`${prefix}--accordion--${align}`]: align,
|
|
26
26
|
[`${prefix}--accordion--flush`]: isFlush && align !== "start"
|
|
27
27
|
});
|
|
@@ -78,4 +78,4 @@ function AccordionSkeletonItem() {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { AccordionSkeleton as default };
|
|
81
|
+
export { AccordionSkeleton, AccordionSkeleton as default };
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { AccordionProvider } from "./AccordionProvider.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/Accordion/Accordion.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
*/
|
|
21
21
|
function Accordion({ align = "end", children, className: customClassName, disabled = false, isFlush = false, ordered = false, size, ...rest }) {
|
|
22
22
|
const prefix = usePrefix();
|
|
23
|
-
const className =
|
|
23
|
+
const className = cx(`${prefix}--accordion`, customClassName, {
|
|
24
24
|
[`${prefix}--accordion--${align}`]: align,
|
|
25
25
|
[`${prefix}--accordion--${size}`]: size,
|
|
26
26
|
[`${prefix}--layout--size-${size}`]: size,
|
|
@@ -12,8 +12,8 @@ import { Escape } from "../../internal/keyboard/keys.js";
|
|
|
12
12
|
import { match } from "../../internal/keyboard/match.js";
|
|
13
13
|
import { useId } from "../../internal/useId.js";
|
|
14
14
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
15
|
-
import classNames from "classnames";
|
|
16
15
|
import React, { useContext, useEffect, useRef, useState } 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
|
import { ChevronRight } from "@carbon/icons-react";
|
|
@@ -35,7 +35,7 @@ function AccordionItem({ children, className: customClassName = "", open = false
|
|
|
35
35
|
const disabled = typeof controlledDisabled === "boolean" ? controlledDisabled : accordionState.disabled;
|
|
36
36
|
const id = useId("accordion-item");
|
|
37
37
|
const prefix = usePrefix();
|
|
38
|
-
const className =
|
|
38
|
+
const className = cx({
|
|
39
39
|
[`${prefix}--accordion__item`]: true,
|
|
40
40
|
[`${prefix}--accordion__item--active`]: isOpen && !disabled,
|
|
41
41
|
[`${prefix}--accordion__item--disabled`]: disabled,
|
|
@@ -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/AspectRatio/AspectRatio.tsx
|
|
@@ -26,7 +26,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
26
26
|
const AspectRatio = ({ as: BaseComponent = "div", className: containerClassName, children, ratio = "1x1", ...rest }) => {
|
|
27
27
|
const prefix = usePrefix();
|
|
28
28
|
return /* @__PURE__ */ jsx(BaseComponent, {
|
|
29
|
-
className:
|
|
29
|
+
className: cx(containerClassName, `${prefix}--aspect-ratio`, `${prefix}--aspect-ratio--${ratio}`),
|
|
30
30
|
...rest,
|
|
31
31
|
children
|
|
32
32
|
});
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
|
-
import classNames from "classnames";
|
|
10
9
|
import { forwardRef } from "react";
|
|
10
|
+
import cx from "classnames";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
const BadgeIndicator = forwardRef((props, ref) => {
|
|
14
14
|
const { className: customClassName, count, ...rest } = props;
|
|
15
15
|
const prefix = usePrefix();
|
|
16
|
-
const classNames
|
|
16
|
+
const classNames = cx(`${prefix}--badge-indicator`, customClassName, { [`${prefix}--badge-indicator--count`]: count });
|
|
17
17
|
const displayCount = count && count > 999 ? "999+" : count;
|
|
18
18
|
return /* @__PURE__ */ jsx("div", {
|
|
19
|
-
className: classNames
|
|
19
|
+
className: classNames,
|
|
20
20
|
ref,
|
|
21
21
|
...rest,
|
|
22
22
|
children: displayCount
|
|
@@ -37,4 +37,4 @@ BadgeIndicator.propTypes = {
|
|
|
37
37
|
id: PropTypes.string
|
|
38
38
|
};
|
|
39
39
|
//#endregion
|
|
40
|
-
export { BadgeIndicator as default };
|
|
40
|
+
export { BadgeIndicator, BadgeIndicator 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/Breadcrumb/Breadcrumb.Skeleton.tsx
|
|
@@ -30,7 +30,7 @@ function Item() {
|
|
|
30
30
|
function BreadcrumbSkeleton({ className, items = 3, noTrailingSlash, size, ...rest }) {
|
|
31
31
|
const prefix = usePrefix();
|
|
32
32
|
return /* @__PURE__ */ jsx("div", {
|
|
33
|
-
className:
|
|
33
|
+
className: cx({
|
|
34
34
|
[`${prefix}--breadcrumb`]: true,
|
|
35
35
|
[`${prefix}--skeleton`]: true,
|
|
36
36
|
[`${prefix}--breadcrumb--no-trailing-slash`]: noTrailingSlash,
|
|
@@ -59,4 +59,4 @@ BreadcrumbSkeleton.propTypes = {
|
|
|
59
59
|
size: PropTypes.oneOf(["sm", "md"])
|
|
60
60
|
};
|
|
61
61
|
//#endregion
|
|
62
|
-
export { BreadcrumbSkeleton as default };
|
|
62
|
+
export { BreadcrumbSkeleton, BreadcrumbSkeleton 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 { forwardRef } 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/Breadcrumb/Breadcrumb.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
const Breadcrumb = forwardRef((props, ref) => {
|
|
21
21
|
const { "aria-label": ariaLabel, children, className: customClassNameNav, noTrailingSlash, size, ...rest } = props;
|
|
22
22
|
const prefix = usePrefix();
|
|
23
|
-
const className =
|
|
23
|
+
const className = cx({
|
|
24
24
|
[`${prefix}--breadcrumb`]: true,
|
|
25
25
|
[`${prefix}--breadcrumb--no-trailing-slash`]: noTrailingSlash,
|
|
26
26
|
[`${prefix}--breadcrumb--sm`]: size === "sm"
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { Text } from "../Text/Text.js";
|
|
10
10
|
import Link_default from "../Link/index.js";
|
|
11
|
-
import classNames from "classnames";
|
|
12
11
|
import React, { cloneElement, forwardRef, isValidElement } from "react";
|
|
12
|
+
import cx from "classnames";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
import { OverflowMenuHorizontal } from "@carbon/icons-react";
|
|
@@ -23,7 +23,7 @@ import { OverflowMenuHorizontal } from "@carbon/icons-react";
|
|
|
23
23
|
const BreadcrumbItem = forwardRef((props, ref) => {
|
|
24
24
|
const { "aria-current": ariaCurrent, children, className: customClassName = "", href, isCurrentPage, ...rest } = props;
|
|
25
25
|
const prefix = usePrefix();
|
|
26
|
-
const className =
|
|
26
|
+
const className = cx({
|
|
27
27
|
[`${prefix}--breadcrumb-item`]: true,
|
|
28
28
|
[`${prefix}--breadcrumb-item--current`]: isCurrentPage && ariaCurrent !== "page",
|
|
29
29
|
[customClassName]: !!customClassName
|
|
@@ -65,7 +65,7 @@ const BreadcrumbItem = forwardRef((props, ref) => {
|
|
|
65
65
|
...rest,
|
|
66
66
|
children: child ? cloneElement(child, {
|
|
67
67
|
"aria-current": ariaCurrent,
|
|
68
|
-
className:
|
|
68
|
+
className: cx(`${prefix}--link`, child.props.className)
|
|
69
69
|
}) : children
|
|
70
70
|
});
|
|
71
71
|
});
|
|
@@ -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/Button/Button.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
const ButtonSkeleton = ({ className, small = false, href, size = "lg", ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
const commonProps = {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, {
|
|
24
24
|
[`${prefix}--skeleton`]: true,
|
|
25
25
|
[`${prefix}--btn`]: true,
|
|
26
26
|
[`${prefix}--btn--xs`]: size === "xs",
|
|
@@ -72,4 +72,4 @@ ButtonSkeleton.propTypes = {
|
|
|
72
72
|
small: PropTypes.bool
|
|
73
73
|
};
|
|
74
74
|
//#endregion
|
|
75
|
-
export { ButtonSkeleton as default };
|
|
75
|
+
export { ButtonSkeleton, ButtonSkeleton as default };
|
|
@@ -55,10 +55,10 @@ const Button = React.forwardRef((props, ref) => {
|
|
|
55
55
|
if (ButtonImageElement && !children && !iconDescription) console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");
|
|
56
56
|
const iconOnlyImage = !ButtonImageElement ? null : /* @__PURE__ */ jsx(ButtonImageElement, {});
|
|
57
57
|
if (!isIconOnlyButton(hasIconOnly, kind)) {
|
|
58
|
-
const { tooltipAlignment, ...
|
|
58
|
+
const { autoAlign, tooltipAlignment, tooltipDropShadow, tooltipHighContrast, tooltipPosition, ...propsWithoutIconOnlyTooltipProps } = props;
|
|
59
59
|
return /* @__PURE__ */ jsx(ButtonBase, {
|
|
60
60
|
ref,
|
|
61
|
-
...
|
|
61
|
+
...propsWithoutIconOnlyTooltipProps
|
|
62
62
|
});
|
|
63
63
|
} else {
|
|
64
64
|
let align = void 0;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { useId } from "../../internal/useId.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import React from "react";
|
|
11
|
+
import cx from "classnames";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/Button/ButtonBase.tsx
|
|
14
14
|
/**
|
|
@@ -21,7 +21,7 @@ const ButtonBase = React.forwardRef(function ButtonBase({ as, children, classNam
|
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
const commonProps = {
|
|
23
23
|
tabIndex,
|
|
24
|
-
className:
|
|
24
|
+
className: cx(className, {
|
|
25
25
|
[`${prefix}--btn`]: true,
|
|
26
26
|
[`${prefix}--btn--xs`]: size === "xs" && !isExpressive,
|
|
27
27
|
[`${prefix}--btn--sm`]: size === "sm" && !isExpressive,
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import Button from "./Button.js";
|
|
9
|
-
import "./Button.Skeleton.js";
|
|
8
|
+
import Button, { ButtonKinds, ButtonSizes, ButtonTooltipAlignments, ButtonTooltipPositions } from "./Button.js";
|
|
9
|
+
import { ButtonSkeleton } from "./Button.Skeleton.js";
|
|
10
10
|
//#region src/components/Button/index.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -16,4 +16,4 @@ import "./Button.Skeleton.js";
|
|
|
16
16
|
*/
|
|
17
17
|
var Button_default = Button;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { Button_default as default };
|
|
19
|
+
export { Button, ButtonKinds, ButtonSizes, ButtonSkeleton, ButtonTooltipAlignments, ButtonTooltipPositions, Button_default as default };
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import useIsomorphicEffect from "../../internal/useIsomorphicEffect.js";
|
|
10
|
-
import classNames from "classnames";
|
|
11
10
|
import React, { 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/ButtonSet/ButtonSet.tsx
|
|
@@ -59,7 +59,7 @@ const ButtonSet = forwardRef((props, ref) => {
|
|
|
59
59
|
});
|
|
60
60
|
setSortedChildren(newSortedChildren);
|
|
61
61
|
}, [children, isStacked]);
|
|
62
|
-
const buttonSetClasses =
|
|
62
|
+
const buttonSetClasses = cx(className, `${prefix}--btn-set`, {
|
|
63
63
|
[`${prefix}--btn-set--stacked`]: isStacked,
|
|
64
64
|
[`${prefix}--btn-set--fluid`]: fluid
|
|
65
65
|
});
|
|
@@ -69,7 +69,7 @@ const ButtonSet = forwardRef((props, ref) => {
|
|
|
69
69
|
ref,
|
|
70
70
|
children: fluid ? /* @__PURE__ */ jsx("div", {
|
|
71
71
|
ref: fluidInnerRef,
|
|
72
|
-
className:
|
|
72
|
+
className: cx(`${prefix}--btn-set__fluid-inner`, { [`${prefix}--btn-set__fluid-inner--auto-stack`]: true }),
|
|
73
73
|
children: sortedChildren
|
|
74
74
|
}) : children
|
|
75
75
|
});
|
|
@@ -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/ChatButton/ChatButton.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
const ChatButtonSkeleton = ({ className, size, ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, `${prefix}--skeleton`, `${prefix}--btn`, `${prefix}--chat-btn`, { [`${prefix}--layout--size-${size}`]: size }),
|
|
24
24
|
...rest
|
|
25
25
|
});
|
|
26
26
|
};
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import Button_default from "../Button/index.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/ChatButton/ChatButton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
*/
|
|
21
21
|
const ChatButton = React.forwardRef(function ChatButton({ className, children, disabled, isQuickAction, isSelected, kind, renderIcon, size, ...other }, ref) {
|
|
22
22
|
const prefix = usePrefix();
|
|
23
|
-
const classNames
|
|
23
|
+
const classNames = cx(className, {
|
|
24
24
|
[`${prefix}--chat-btn`]: true,
|
|
25
25
|
[`${prefix}--chat-btn--with-icon`]: renderIcon,
|
|
26
26
|
[`${prefix}--chat-btn--quick-action`]: isQuickAction,
|
|
@@ -40,7 +40,7 @@ const ChatButton = React.forwardRef(function ChatButton({ className, children, d
|
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ jsx(Button_default, {
|
|
42
42
|
disabled,
|
|
43
|
-
className: classNames
|
|
43
|
+
className: classNames,
|
|
44
44
|
kind,
|
|
45
45
|
ref,
|
|
46
46
|
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
|
//#region src/components/Checkbox/Checkbox.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
const CheckboxSkeleton = ({ className, ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(`${prefix}--form-item`, `${prefix}--checkbox-wrapper`, `${prefix}--checkbox-skeleton`, className),
|
|
24
24
|
...rest,
|
|
25
25
|
children: /* @__PURE__ */ jsx("div", {
|
|
26
26
|
className: `${prefix}--checkbox-label`,
|
|
@@ -34,4 +34,4 @@ CheckboxSkeleton.propTypes = {
|
|
|
34
34
|
*/
|
|
35
35
|
className: PropTypes.string };
|
|
36
36
|
//#endregion
|
|
37
|
-
export { CheckboxSkeleton as default };
|
|
37
|
+
export { CheckboxSkeleton, CheckboxSkeleton as default };
|
|
@@ -5,17 +5,17 @@
|
|
|
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 { useId } from "../../internal/useId.js";
|
|
11
|
-
import { noopFn } from "../../internal/noopFn.js";
|
|
12
12
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
13
13
|
import { isComponentElement } from "../../internal/utils.js";
|
|
14
14
|
import { hasHelperText } from "../../internal/hasHelperText.js";
|
|
15
15
|
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
16
16
|
import { AILabel } from "../AILabel/index.js";
|
|
17
|
-
import classNames from "classnames";
|
|
18
17
|
import React, { cloneElement } 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";
|
|
@@ -47,14 +47,14 @@ const Checkbox$1 = React.forwardRef(({ className, decorator, helperText, id, lab
|
|
|
47
47
|
className: `${prefix}--form__helper-text`,
|
|
48
48
|
children: helperText
|
|
49
49
|
});
|
|
50
|
-
const wrapperClasses =
|
|
50
|
+
const wrapperClasses = cx(`${prefix}--form-item`, `${prefix}--checkbox-wrapper`, className, {
|
|
51
51
|
[`${prefix}--checkbox-wrapper--readonly`]: readOnly,
|
|
52
52
|
[`${prefix}--checkbox-wrapper--invalid`]: normalizedProps.invalid,
|
|
53
53
|
[`${prefix}--checkbox-wrapper--warning`]: showWarning,
|
|
54
54
|
[`${prefix}--checkbox-wrapper--slug`]: slug,
|
|
55
55
|
[`${prefix}--checkbox-wrapper--decorator`]: decorator
|
|
56
56
|
});
|
|
57
|
-
const innerLabelClasses =
|
|
57
|
+
const innerLabelClasses = cx(`${prefix}--checkbox-label-text`, { [`${prefix}--visually-hidden`]: hideLabel });
|
|
58
58
|
const candidate = slug ?? decorator;
|
|
59
59
|
const normalizedDecorator = isComponentElement(candidate, AILabel) ? cloneElement(candidate, { size: candidate.props.kind === "inline" ? "md" : "mini" }) : candidate;
|
|
60
60
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Checkbox from "./Checkbox.js";
|
|
9
|
-
import "./Checkbox.Skeleton.js";
|
|
9
|
+
import { CheckboxSkeleton } from "./Checkbox.Skeleton.js";
|
|
10
10
|
//#region src/components/Checkbox/index.ts
|
|
11
11
|
/**
|
|
12
12
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -16,4 +16,4 @@ import "./Checkbox.Skeleton.js";
|
|
|
16
16
|
*/
|
|
17
17
|
var Checkbox_default = Checkbox;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { Checkbox_default as default };
|
|
19
|
+
export { Checkbox, CheckboxSkeleton, Checkbox_default as default };
|
|
@@ -13,8 +13,8 @@ import { hasHelperText } from "../../internal/hasHelperText.js";
|
|
|
13
13
|
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
14
14
|
import { AILabel } from "../AILabel/index.js";
|
|
15
15
|
import Checkbox$1 from "../Checkbox/Checkbox.js";
|
|
16
|
-
import classNames from "classnames";
|
|
17
16
|
import { Children, cloneElement } from "react";
|
|
17
|
+
import cx from "classnames";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
import { WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
@@ -46,7 +46,7 @@ const CheckboxGroup = ({ children, className, decorator, helperText, invalid, in
|
|
|
46
46
|
className: `${prefix}--form__helper-text`,
|
|
47
47
|
children: helperText
|
|
48
48
|
});
|
|
49
|
-
const fieldsetClasses =
|
|
49
|
+
const fieldsetClasses = cx(`${prefix}--checkbox-group`, className, {
|
|
50
50
|
[`${prefix}--checkbox-group--${orientation}`]: orientation === "horizontal",
|
|
51
51
|
[`${prefix}--checkbox-group--readonly`]: readOnly,
|
|
52
52
|
[`${prefix}--checkbox-group--invalid`]: normalizedProps.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, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/CodeSnippet/CodeSnippet.Skeleton.tsx
|
|
@@ -19,7 +19,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
19
19
|
*/
|
|
20
20
|
function CodeSnippetSkeleton({ className: containerClassName, type = "single", ...rest }) {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
|
-
const className =
|
|
22
|
+
const className = cx(containerClassName, {
|
|
23
23
|
[`${prefix}--snippet`]: true,
|
|
24
24
|
[`${prefix}--skeleton`]: true,
|
|
25
25
|
[`${prefix}--snippet--single`]: type === "single",
|
|
@@ -57,4 +57,4 @@ CodeSnippetSkeleton.propTypes = {
|
|
|
57
57
|
type: PropTypes.oneOf(["single", "multi"])
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
|
-
export { CodeSnippetSkeleton as default };
|
|
60
|
+
export { CodeSnippetSkeleton, CodeSnippetSkeleton as default };
|
|
@@ -14,8 +14,8 @@ import Button_default from "../Button/index.js";
|
|
|
14
14
|
import { useResizeObserver } from "../../internal/useResizeObserver.js";
|
|
15
15
|
import Copy_default from "../Copy/index.js";
|
|
16
16
|
import CopyButton_default from "../CopyButton/index.js";
|
|
17
|
-
import classNames from "classnames";
|
|
18
17
|
import { useCallback, useRef, useState } from "react";
|
|
18
|
+
import cx from "classnames";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { ChevronDown } from "@carbon/icons-react";
|
|
@@ -60,7 +60,7 @@ function CodeSnippet({ align = "bottom", autoAlign = false, className, type = "s
|
|
|
60
60
|
if (copyText || innerCodeRef?.current) copy(copyText ?? innerCodeRef?.current?.innerText ?? "");
|
|
61
61
|
if (onClick) onClick(evt);
|
|
62
62
|
};
|
|
63
|
-
const codeSnippetClasses =
|
|
63
|
+
const codeSnippetClasses = cx(className, `${prefix}--snippet`, {
|
|
64
64
|
[`${prefix}--snippet--${type}`]: type,
|
|
65
65
|
[`${prefix}--snippet--disabled`]: type !== "inline" && disabled,
|
|
66
66
|
[`${prefix}--snippet--expand`]: expandedCode,
|