@carbon/react 1.112.0 → 1.113.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.playwright/INTERNAL_AVT_REPORT_DO_NOT_USE.json +941 -941
- 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/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.js +10 -8
- 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/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.js +6 -4
- 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 +12 -9
- package/telemetry.yml +1 -0
|
@@ -5,15 +5,15 @@
|
|
|
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 { Enter, Space } from "../../internal/keyboard/keys.js";
|
|
10
11
|
import { matches } from "../../internal/keyboard/match.js";
|
|
11
12
|
import { useId } from "../../internal/useId.js";
|
|
12
|
-
import { noopFn } from "../../internal/noopFn.js";
|
|
13
13
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
14
14
|
import { composeEventHandlers } from "../../tools/events.js";
|
|
15
|
-
import classNames from "classnames";
|
|
16
15
|
import { 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
|
//#region src/components/FileUploader/FileUploaderDropContainer.tsx
|
|
@@ -29,7 +29,7 @@ function FileUploaderDropContainer({ accept = [], className, id, disabled, label
|
|
|
29
29
|
const generatedId = useId();
|
|
30
30
|
const { current: uid } = useRef(id || generatedId);
|
|
31
31
|
const [isActive, setActive] = useState(false);
|
|
32
|
-
const dropareaClasses =
|
|
32
|
+
const dropareaClasses = cx(`${prefix}--file__drop-container`, `${prefix}--file-browse-btn`, {
|
|
33
33
|
[`${prefix}--file__drop-container--drag-over`]: isActive,
|
|
34
34
|
[`${prefix}--file-browse-btn--disabled`]: disabled
|
|
35
35
|
}, className);
|
|
@@ -58,17 +58,19 @@ function FileUploaderDropContainer({ accept = [], className, id, disabled, label
|
|
|
58
58
|
return onAddFiles(event, { addedFiles: validateFiles(multiple ? files : [files[0]]) });
|
|
59
59
|
};
|
|
60
60
|
const handleChange = (event) => {
|
|
61
|
-
|
|
61
|
+
const files = [...event.target.files ?? []];
|
|
62
|
+
return handleFiles(event, files);
|
|
62
63
|
};
|
|
63
64
|
const handleDrop = (event) => {
|
|
64
65
|
const items = [...event.dataTransfer.items ?? []];
|
|
65
|
-
|
|
66
|
+
const files = items.length ? items.reduce((acc, item) => {
|
|
66
67
|
if (item.kind !== "file") return acc;
|
|
67
68
|
if (item.webkitGetAsEntry()?.isDirectory) return acc;
|
|
68
69
|
const file = item.getAsFile();
|
|
69
70
|
if (file) acc.push(file);
|
|
70
71
|
return acc;
|
|
71
|
-
}, []) : [...event.dataTransfer.files]
|
|
72
|
+
}, []) : [...event.dataTransfer.files];
|
|
73
|
+
return handleFiles(event, files);
|
|
72
74
|
};
|
|
73
75
|
const handleClick = () => {
|
|
74
76
|
if (!disabled) inputRef.current?.click();
|
|
@@ -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 { Enter, Space } from "../../internal/keyboard/keys.js";
|
|
11
12
|
import { matches } from "../../internal/keyboard/match.js";
|
|
12
13
|
import useIsomorphicEffect from "../../internal/useIsomorphicEffect.js";
|
|
13
14
|
import { useId } from "../../internal/useId.js";
|
|
14
|
-
import { noopFn } from "../../internal/noopFn.js";
|
|
15
15
|
import { Tooltip } from "../Tooltip/Tooltip.js";
|
|
16
16
|
import Filename from "./Filename.js";
|
|
17
|
-
import classNames from "classnames";
|
|
18
17
|
import { 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
|
//#region src/components/FileUploader/FileUploaderItem.tsx
|
|
@@ -31,7 +31,7 @@ function FileUploaderItem({ uuid, name, status = "uploading", iconDescription, o
|
|
|
31
31
|
const prefix = usePrefix();
|
|
32
32
|
const generatedId = useId();
|
|
33
33
|
const { current: id } = useRef(uuid || generatedId);
|
|
34
|
-
const classes =
|
|
34
|
+
const classes = cx(`${prefix}--file__selected-file`, className, {
|
|
35
35
|
[`${prefix}--file__selected-file--invalid`]: invalid,
|
|
36
36
|
[`${prefix}--file__selected-file--md`]: size === "md",
|
|
37
37
|
[`${prefix}--file__selected-file--sm`]: size === "sm",
|
|
@@ -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/FluidComboBox/FluidComboBox.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
const FluidComboBoxSkeleton = ({ className, ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, `${prefix}--list-box__wrapper--fluid`),
|
|
24
24
|
...rest,
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
26
|
className: `${prefix}--skeleton ${prefix}--list-box`,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import ComboBox_default from "../ComboBox/index.js";
|
|
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/FluidComboBox/FluidComboBox.tsx
|
|
@@ -21,12 +21,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
21
21
|
*/
|
|
22
22
|
const FluidComboBox = React.forwardRef(function FluidComboBox({ className, isCondensed, ...other }, ref) {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(`${prefix}--list-box__wrapper--fluid`, className, { [`${prefix}--list-box__wrapper--fluid--condensed`]: isCondensed });
|
|
25
25
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
26
26
|
value: { isFluid: true },
|
|
27
27
|
children: /* @__PURE__ */ jsx(ComboBox_default, {
|
|
28
28
|
ref,
|
|
29
|
-
className: classNames
|
|
29
|
+
className: classNames,
|
|
30
30
|
...other
|
|
31
31
|
})
|
|
32
32
|
});
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.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 { Calendar } from "@carbon/icons-react";
|
|
@@ -21,11 +21,11 @@ import { Calendar } from "@carbon/icons-react";
|
|
|
21
21
|
*/
|
|
22
22
|
const FluidDatePickerSkeleton = ({ className, datePickerType = "single", ...other }) => {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(className, `${prefix}--form-item ${prefix}--date-picker--fluid__skeleton`, { [`${prefix}--date-picker--fluid__skeleton--range`]: datePickerType === "range" });
|
|
25
25
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
26
26
|
value: { isFluid: true },
|
|
27
27
|
children: /* @__PURE__ */ jsxs("div", {
|
|
28
|
-
className: classNames
|
|
28
|
+
className: classNames,
|
|
29
29
|
...other,
|
|
30
30
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
31
31
|
className: `${prefix}--date-picker--fluid__skeleton--container`,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import DatePicker_default from "../DatePicker/index.js";
|
|
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/FluidDatePicker/FluidDatePicker.tsx
|
|
@@ -21,7 +21,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
21
21
|
*/
|
|
22
22
|
const FluidDatePicker = React.forwardRef(function FluidDatePicker({ className, children, invalid, readOnly, warn, ...other }, ref) {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(className, {
|
|
25
25
|
[`${prefix}--date-picker--fluid`]: true,
|
|
26
26
|
[`${prefix}--date-picker--fluid--invalid`]: invalid,
|
|
27
27
|
[`${prefix}--date-picker--fluid--readonly`]: readOnly,
|
|
@@ -33,7 +33,7 @@ const FluidDatePicker = React.forwardRef(function FluidDatePicker({ className, c
|
|
|
33
33
|
invalid,
|
|
34
34
|
readOnly,
|
|
35
35
|
warn,
|
|
36
|
-
className: classNames
|
|
36
|
+
className: classNames,
|
|
37
37
|
ref,
|
|
38
38
|
...other,
|
|
39
39
|
children
|
|
@@ -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/FluidDropdown/FluidDropdown.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
const FluidDropdownSkeleton = ({ className, ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, `${prefix}--list-box__wrapper--fluid`),
|
|
24
24
|
...rest,
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
26
|
className: `${prefix}--skeleton ${prefix}--list-box`,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import Dropdown_default from "../Dropdown/index.js";
|
|
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/FluidDropdown/FluidDropdown.tsx
|
|
@@ -21,12 +21,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
21
21
|
*/
|
|
22
22
|
const FluidDropdown = React.forwardRef(function FluidDropdown({ className, isCondensed, ...other }, ref) {
|
|
23
23
|
const prefix = usePrefix();
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(`${prefix}--list-box__wrapper--fluid`, className, { [`${prefix}--list-box__wrapper--fluid--condensed`]: isCondensed });
|
|
25
25
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
26
26
|
value: { isFluid: true },
|
|
27
27
|
children: /* @__PURE__ */ jsx(Dropdown_default, {
|
|
28
28
|
ref,
|
|
29
|
-
className: classNames
|
|
29
|
+
className: classNames,
|
|
30
30
|
...other
|
|
31
31
|
})
|
|
32
32
|
});
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import Form from "../Form/Form.js";
|
|
10
10
|
import { FormContext } from "./FormContext.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 } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/FluidForm/FluidForm.tsx
|
|
@@ -20,11 +20,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
const FluidForm = ({ className, children, ...other }) => {
|
|
23
|
-
const classNames
|
|
23
|
+
const classNames = cx(`${usePrefix()}--form--fluid`, className);
|
|
24
24
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
25
25
|
value: { isFluid: true },
|
|
26
26
|
children: /* @__PURE__ */ jsx(Form, {
|
|
27
|
-
className: classNames
|
|
27
|
+
className: classNames,
|
|
28
28
|
...other,
|
|
29
29
|
children
|
|
30
30
|
})
|
|
@@ -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/FluidMultiSelect/FluidMultiSelect.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
const FluidMultiSelectSkeleton = ({ className, ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, `${prefix}--list-box__wrapper--fluid`),
|
|
24
24
|
...rest,
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
26
|
className: `${prefix}--skeleton ${prefix}--list-box`,
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import { FilterableMultiSelect } from "../MultiSelect/FilterableMultiSelect.js";
|
|
11
11
|
import { MultiSelect } from "../MultiSelect/MultiSelect.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/FluidMultiSelect/FluidMultiSelect.tsx
|
|
@@ -22,16 +22,16 @@ import { jsx } from "react/jsx-runtime";
|
|
|
22
22
|
*/
|
|
23
23
|
const FluidMultiSelect = React.forwardRef(function FluidMultiSelect({ className, isCondensed, isFilterable, ...other }, ref) {
|
|
24
24
|
const prefix = usePrefix();
|
|
25
|
-
const classNames
|
|
25
|
+
const classNames = cx(`${prefix}--list-box__wrapper--fluid`, className, { [`${prefix}--list-box__wrapper--fluid--condensed`]: isCondensed });
|
|
26
26
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
27
27
|
value: { isFluid: true },
|
|
28
28
|
children: isFilterable ? /* @__PURE__ */ jsx(FilterableMultiSelect, {
|
|
29
29
|
ref,
|
|
30
|
-
className: classNames
|
|
30
|
+
className: classNames,
|
|
31
31
|
...other
|
|
32
32
|
}) : /* @__PURE__ */ jsx(MultiSelect, {
|
|
33
33
|
ref,
|
|
34
|
-
className: classNames
|
|
34
|
+
className: classNames,
|
|
35
35
|
...other
|
|
36
36
|
})
|
|
37
37
|
});
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.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
|
//#region src/components/FluidNumberInput/FluidNumberInput.Skeleton.tsx
|
|
@@ -23,7 +23,7 @@ const FluidNumberInputSkeleton = ({ className, ...other }) => {
|
|
|
23
23
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
24
24
|
value: { isFluid: true },
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
-
className:
|
|
26
|
+
className: cx(`${prefix}--form-item ${prefix}--text-input--fluid__skeleton`, className),
|
|
27
27
|
...other,
|
|
28
28
|
children: [/* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: `${prefix}--skeleton ${prefix}--text-input` })]
|
|
29
29
|
})
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import { NumberFormatOptionsPropType } from "../NumberInput/NumberFormatPropTypes.js";
|
|
11
11
|
import { NumberInput } from "../NumberInput/NumberInput.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/FluidNumberInput/FluidNumberInput.tsx
|
|
@@ -21,12 +21,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
23
|
const FluidNumberInput = React.forwardRef(({ className, ...other }, ref) => {
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(`${usePrefix()}--number-input--fluid`, className);
|
|
25
25
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
26
26
|
value: { isFluid: true },
|
|
27
27
|
children: /* @__PURE__ */ jsx(NumberInput, {
|
|
28
28
|
ref,
|
|
29
|
-
className: classNames
|
|
29
|
+
className: classNames,
|
|
30
30
|
...other
|
|
31
31
|
})
|
|
32
32
|
});
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.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
|
//#region src/components/FluidSearch/FluidSearch.Skeleton.tsx
|
|
@@ -23,7 +23,7 @@ const FluidSearchSkeleton = ({ className, ...other }) => {
|
|
|
23
23
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
24
24
|
value: { isFluid: true },
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
-
className:
|
|
26
|
+
className: cx(`${prefix}--form-item ${prefix}--text-input--fluid__skeleton`, className),
|
|
27
27
|
...other,
|
|
28
28
|
children: [/* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: `${prefix}--skeleton ${prefix}--text-input` })]
|
|
29
29
|
})
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import Search_default from "../Search/index.js";
|
|
11
|
-
import classNames from "classnames";
|
|
12
11
|
import { forwardRef } 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/FluidSearch/FluidSearch.tsx
|
|
@@ -20,12 +20,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
const FluidSearch = forwardRef(({ className, ...other }, ref) => {
|
|
23
|
-
const classNames
|
|
23
|
+
const classNames = cx(`${usePrefix()}--search--fluid`, className);
|
|
24
24
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
25
25
|
value: { isFluid: true },
|
|
26
26
|
children: /* @__PURE__ */ jsx(Search_default, {
|
|
27
27
|
ref,
|
|
28
|
-
className: classNames
|
|
28
|
+
className: classNames,
|
|
29
29
|
...other
|
|
30
30
|
})
|
|
31
31
|
});
|
|
@@ -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/FluidSelect/FluidSelect.Skeleton.tsx
|
|
@@ -20,7 +20,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
20
20
|
const FluidSelectSkeleton = ({ className, ...rest }) => {
|
|
21
21
|
const prefix = usePrefix();
|
|
22
22
|
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className:
|
|
23
|
+
className: cx(className, `${prefix}--list-box__wrapper--fluid`),
|
|
24
24
|
...rest,
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
26
|
className: `${prefix}--skeleton ${prefix}--list-box`,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import Select_default from "../Select/index.js";
|
|
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/FluidSelect/FluidSelect.tsx
|
|
@@ -20,12 +20,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
const FluidSelect = React.forwardRef(({ className, children, ...other }, ref) => {
|
|
23
|
-
const classNames
|
|
23
|
+
const classNames = cx(`${usePrefix()}--select--fluid`, className);
|
|
24
24
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
25
25
|
value: { isFluid: true },
|
|
26
26
|
children: /* @__PURE__ */ jsx(Select_default, {
|
|
27
27
|
ref,
|
|
28
|
-
className: classNames
|
|
28
|
+
className: classNames,
|
|
29
29
|
...other,
|
|
30
30
|
children
|
|
31
31
|
})
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import FluidSelect from "./FluidSelect.js";
|
|
9
|
-
import "./FluidSelect.Skeleton.js";
|
|
9
|
+
import FluidSelectSkeleton from "./FluidSelect.Skeleton.js";
|
|
10
10
|
//#region src/components/FluidSelect/index.tsx
|
|
11
11
|
/**
|
|
12
12
|
* Copyright IBM Corp. 2022
|
|
@@ -16,4 +16,4 @@ import "./FluidSelect.Skeleton.js";
|
|
|
16
16
|
*/
|
|
17
17
|
var FluidSelect_default = FluidSelect;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { FluidSelect_default as default };
|
|
19
|
+
export { FluidSelect, FluidSelectSkeleton, FluidSelect_default as default };
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.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
|
//#region src/components/FluidTextArea/FluidTextArea.Skeleton.tsx
|
|
@@ -23,7 +23,7 @@ const FluidTextAreaSkeleton = ({ className, ...other }) => {
|
|
|
23
23
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
24
24
|
value: { isFluid: true },
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
-
className:
|
|
26
|
+
className: cx(`${prefix}--form-item ${prefix}--text-area--fluid__skeleton`, className),
|
|
27
27
|
...other,
|
|
28
28
|
children: [/* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: `${prefix}--skeleton ${prefix}--text-area` })]
|
|
29
29
|
})
|
|
@@ -9,8 +9,8 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
10
10
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
11
11
|
import TextArea_default from "../TextArea/index.js";
|
|
12
|
-
import classNames from "classnames";
|
|
13
12
|
import "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/FluidTextArea/FluidTextArea.tsx
|
|
@@ -21,11 +21,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
23
|
const FluidTextArea = ({ className, ...other }) => {
|
|
24
|
-
const classNames
|
|
24
|
+
const classNames = cx(`${usePrefix()}--text-area--fluid`, className);
|
|
25
25
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
26
26
|
value: { isFluid: true },
|
|
27
27
|
children: /* @__PURE__ */ jsx(TextArea_default, {
|
|
28
|
-
className: classNames
|
|
28
|
+
className: classNames,
|
|
29
29
|
...other
|
|
30
30
|
})
|
|
31
31
|
});
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
10
10
|
import PasswordInput from "../TextInput/PasswordInput.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 } from "react/jsx-runtime";
|
|
15
15
|
//#region src/components/FluidTextInput/FluidPasswordInput.tsx
|
|
@@ -20,11 +20,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
22
|
const FluidPasswordInput = ({ className, ...other }) => {
|
|
23
|
-
const classNames
|
|
23
|
+
const classNames = cx(className, `${usePrefix()}--text-input--fluid`);
|
|
24
24
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
25
25
|
value: { isFluid: true },
|
|
26
26
|
children: /* @__PURE__ */ jsx(PasswordInput, {
|
|
27
|
-
className: classNames
|
|
27
|
+
className: classNames,
|
|
28
28
|
...other
|
|
29
29
|
})
|
|
30
30
|
});
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { FormContext } from "../FluidForm/FormContext.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
|
//#region src/components/FluidTextInput/FluidTextInput.Skeleton.tsx
|
|
@@ -23,7 +23,7 @@ const FluidTextInputSkeleton = ({ className, ...other }) => {
|
|
|
23
23
|
return /* @__PURE__ */ jsx(FormContext.Provider, {
|
|
24
24
|
value: { isFluid: true },
|
|
25
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
26
|
-
className:
|
|
26
|
+
className: cx(`${prefix}--form-item ${prefix}--text-input--fluid__skeleton`, className),
|
|
27
27
|
...other,
|
|
28
28
|
children: [/* @__PURE__ */ jsx("span", { className: `${prefix}--label ${prefix}--skeleton` }), /* @__PURE__ */ jsx("div", { className: `${prefix}--skeleton ${prefix}--text-input` })]
|
|
29
29
|
})
|
|
@@ -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 };
|