@carbon/react 1.105.0 → 1.106.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 +997 -997
- package/es/_virtual/_rolldown/runtime.js +6 -11
- package/es/components/AILabel/index.js +1 -3
- package/es/components/AISkeleton/AISkeletonIcon.js +2 -4
- package/es/components/AISkeleton/AISkeletonPlaceholder.js +3 -8
- package/es/components/AISkeleton/AISkeletonText.js +2 -4
- package/es/components/Accordion/Accordion.Skeleton.js +2 -4
- package/es/components/Accordion/Accordion.js +2 -4
- package/es/components/Accordion/AccordionItem.js +1 -3
- package/es/components/Accordion/AccordionProvider.js +2 -4
- package/es/components/AspectRatio/AspectRatio.js +2 -4
- package/es/components/BadgeIndicator/index.js +3 -13
- package/es/components/Breadcrumb/Breadcrumb.Skeleton.js +2 -4
- package/es/components/Breadcrumb/Breadcrumb.js +2 -4
- package/es/components/Breadcrumb/BreadcrumbItem.js +1 -3
- package/es/components/Button/Button.Skeleton.js +2 -4
- package/es/components/Button/Button.js +1 -3
- package/es/components/Button/ButtonBase.js +1 -3
- package/es/components/Button/index.js +3 -5
- package/es/components/ButtonSet/ButtonSet.js +1 -3
- package/es/components/ButtonSet/index.js +1 -3
- package/es/components/ChatButton/ChatButton.Skeleton.js +2 -4
- package/es/components/ChatButton/ChatButton.js +1 -3
- package/es/components/Checkbox/Checkbox.Skeleton.js +2 -4
- package/es/components/Checkbox/Checkbox.d.ts +1 -1
- package/es/components/Checkbox/Checkbox.js +19 -10
- package/es/components/Checkbox/index.js +2 -4
- package/es/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/es/components/CheckboxGroup/CheckboxGroup.js +24 -13
- package/es/components/ClassPrefix/index.js +2 -4
- package/es/components/CodeSnippet/CodeSnippet.Skeleton.js +2 -4
- package/es/components/CodeSnippet/CodeSnippet.js +2 -4
- package/es/components/ComboBox/ComboBox.js +11 -13
- package/es/components/ComboBox/index.js +1 -3
- package/es/components/ComboButton/index.js +1 -3
- package/es/components/ComposedModal/ComposedModal.js +1 -3
- package/es/components/ComposedModal/ComposedModalPresence.js +2 -4
- package/es/components/ComposedModal/ModalFooter.js +1 -3
- package/es/components/ComposedModal/ModalHeader.js +1 -3
- package/es/components/ComposedModal/useComposedModalState.js +1 -3
- package/es/components/ContainedList/ContainedList.js +17 -9
- package/es/components/ContainedList/ContainedListItem/ContainedListItem.js +2 -4
- package/es/components/ContainedList/ContainedListItem/index.js +1 -3
- package/es/components/ContainedList/index.js +1 -3
- package/es/components/ContentSwitcher/ContentSwitcher.js +2 -4
- package/es/components/ContextMenu/useContextMenu.js +1 -3
- package/es/components/Copy/Copy.js +2 -4
- package/es/components/Copy/index.js +1 -3
- package/es/components/CopyButton/CopyButton.js +2 -4
- package/es/components/CopyButton/index.js +1 -3
- package/es/components/DangerButton/DangerButton.js +2 -4
- package/es/components/DataTable/DataTable.js +1 -3
- package/es/components/DataTable/Table.js +2 -4
- package/es/components/DataTable/TableActionList.js +1 -3
- package/es/components/DataTable/TableBatchAction.js +2 -4
- package/es/components/DataTable/TableBatchActions.js +1 -3
- package/es/components/DataTable/TableBody.js +2 -4
- package/es/components/DataTable/TableCell.js +2 -4
- package/es/components/DataTable/TableContainer.js +2 -4
- package/es/components/DataTable/TableContext.js +1 -3
- package/es/components/DataTable/TableDecoratorRow.js +2 -4
- package/es/components/DataTable/TableExpandHeader.js +4 -8
- package/es/components/DataTable/TableExpandRow.js +2 -4
- package/es/components/DataTable/TableExpandedRow.js +2 -4
- package/es/components/DataTable/TableHead.js +1 -3
- package/es/components/DataTable/TableHeader.js +2 -4
- package/es/components/DataTable/TableRow.js +2 -4
- package/es/components/DataTable/TableSelectAll.js +3 -6
- package/es/components/DataTable/TableSelectRow.js +2 -4
- package/es/components/DataTable/TableSlugRow.js +1 -3
- package/es/components/DataTable/TableToolbar.js +2 -4
- package/es/components/DataTable/TableToolbarAction.js +2 -4
- package/es/components/DataTable/TableToolbarContent.js +1 -3
- package/es/components/DataTable/TableToolbarMenu.js +2 -5
- package/es/components/DataTable/TableToolbarSearch.js +2 -4
- package/es/components/DataTable/state/getDerivedStateFromProps.js +1 -3
- package/es/components/DataTable/state/sortStates.js +1 -2
- package/es/components/DataTable/state/sorting.js +1 -3
- package/es/components/DataTable/tools/cells.js +1 -2
- package/es/components/DataTable/tools/denormalize.js +1 -2
- package/es/components/DataTable/tools/filter.js +1 -2
- package/es/components/DataTable/tools/normalize.js +1 -3
- package/es/components/DataTable/tools/sorting.js +1 -3
- package/es/components/DataTableSkeleton/DataTableSkeleton.js +2 -4
- package/es/components/DatePicker/DatePicker.Skeleton.js +2 -4
- package/es/components/DatePicker/DatePicker.js +3 -4
- package/es/components/DatePicker/DatePickerLocales.js +1 -2
- package/es/components/DatePicker/index.js +2 -4
- package/es/components/DatePicker/plugins/appendToPlugin.js +1 -2
- package/es/components/DatePicker/plugins/fixEventsPlugin.js +1 -3
- package/es/components/DatePicker/plugins/rangePlugin.js +1 -3
- package/es/components/DatePicker/utils.js +1 -2
- package/es/components/DatePickerInput/DatePickerInput.js +3 -5
- package/es/components/DatePickerInput/index.js +1 -3
- package/es/components/Dialog/Dialog.d.ts +15 -0
- package/es/components/Dialog/Dialog.js +50 -33
- package/es/components/Dialog/index.js +1 -3
- package/es/components/Dropdown/Dropdown.Skeleton.js +2 -4
- package/es/components/Dropdown/Dropdown.js +2 -4
- package/es/components/Dropdown/index.js +2 -4
- package/es/components/ErrorBoundary/ErrorBoundary.js +1 -3
- package/es/components/ErrorBoundary/ErrorBoundaryContext.js +1 -3
- package/es/components/ExpandableSearch/ExpandableSearch.js +2 -4
- package/es/components/ExpandableSearch/index.js +1 -3
- package/es/components/FeatureFlags/index.js +2 -4
- package/es/components/FileUploader/FileUploader.Skeleton.js +2 -4
- package/es/components/FileUploader/FileUploader.js +1 -3
- package/es/components/FileUploader/FileUploaderButton.js +2 -4
- package/es/components/FileUploader/FileUploaderDropContainer.js +2 -4
- package/es/components/FileUploader/FileUploaderItem.js +2 -4
- package/es/components/FileUploader/Filename.js +2 -4
- package/es/components/FluidComboBox/FluidComboBox.Skeleton.js +2 -4
- package/es/components/FluidComboBox/FluidComboBox.js +1 -3
- package/es/components/FluidDatePicker/FluidDatePicker.Skeleton.js +2 -4
- package/es/components/FluidDatePicker/FluidDatePicker.js +1 -3
- package/es/components/FluidDatePickerInput/FluidDatePickerInput.js +2 -4
- package/es/components/FluidDropdown/FluidDropdown.Skeleton.js +2 -4
- package/es/components/FluidDropdown/FluidDropdown.js +1 -3
- package/es/components/FluidForm/FluidForm.js +2 -4
- package/es/components/FluidForm/FormContext.js +1 -3
- package/es/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +2 -4
- package/es/components/FluidMultiSelect/FluidMultiSelect.js +1 -3
- package/es/components/FluidNumberInput/FluidNumberInput.Skeleton.js +2 -4
- package/es/components/FluidNumberInput/FluidNumberInput.js +1 -3
- package/es/components/FluidSearch/FluidSearch.Skeleton.js +2 -4
- package/es/components/FluidSearch/FluidSearch.js +2 -4
- package/es/components/FluidSelect/FluidSelect.Skeleton.js +2 -4
- package/es/components/FluidSelect/FluidSelect.js +1 -3
- package/es/components/FluidSelect/index.js +2 -4
- package/es/components/FluidTextArea/FluidTextArea.Skeleton.js +2 -4
- package/es/components/FluidTextArea/FluidTextArea.js +2 -4
- package/es/components/FluidTextInput/FluidPasswordInput.js +2 -4
- package/es/components/FluidTextInput/FluidTextInput.Skeleton.js +2 -4
- package/es/components/FluidTextInput/FluidTextInput.js +1 -3
- package/es/components/FluidTextInput/index.js +3 -5
- package/es/components/FluidTimePicker/FluidTimePicker.Skeleton.js +2 -4
- package/es/components/FluidTimePicker/FluidTimePicker.js +1 -3
- package/es/components/FluidTimePickerSelect/FluidTimePickerSelect.js +1 -3
- package/es/components/Form/Form.js +2 -4
- package/es/components/FormGroup/FormGroup.js +2 -4
- package/es/components/FormItem/FormItem.js +2 -4
- package/es/components/FormLabel/FormLabel.js +2 -4
- package/es/components/Grid/CSSGrid.js +1 -3
- package/es/components/Grid/Column.js +1 -3
- package/es/components/Grid/ColumnHang.js +2 -4
- package/es/components/Grid/FlexGrid.js +1 -3
- package/es/components/Grid/Grid.js +2 -4
- package/es/components/Grid/GridContext.js +1 -3
- package/es/components/Grid/Row.js +2 -4
- package/es/components/Heading/index.js +1 -3
- package/es/components/Icon/Icon.Skeleton.js +2 -4
- package/es/components/IconButton/index.js +2 -4
- package/es/components/IconIndicator/index.js +1 -3
- package/es/components/IdPrefix/index.js +2 -4
- package/es/components/InlineCheckbox/InlineCheckbox.js +1 -3
- package/es/components/InlineCheckbox/index.js +1 -3
- package/es/components/InlineLoading/InlineLoading.js +2 -4
- package/es/components/InlineLoading/index.js +1 -3
- package/es/components/Layer/LayerContext.js +1 -3
- package/es/components/Layer/LayerLevel.js +1 -2
- package/es/components/Layer/index.js +1 -3
- package/es/components/Layout/index.js +1 -3
- package/es/components/LayoutDirection/LayoutDirection.js +1 -3
- package/es/components/LayoutDirection/LayoutDirectionContext.js +1 -3
- package/es/components/LayoutDirection/useLayoutDirection.js +1 -3
- package/es/components/Link/Link.js +1 -3
- package/es/components/Link/index.js +1 -3
- package/es/components/ListBox/ListBox.js +2 -4
- package/es/components/ListBox/ListBoxField.js +2 -4
- package/es/components/ListBox/ListBoxMenu.js +2 -4
- package/es/components/ListBox/ListBoxMenuIcon.js +2 -4
- package/es/components/ListBox/ListBoxMenuItem.js +2 -4
- package/es/components/ListBox/ListBoxPropTypes.js +1 -3
- package/es/components/ListBox/ListBoxSelection.js +2 -4
- package/es/components/ListBox/index.js +2 -4
- package/es/components/ListBox/next/ListBoxSelection.js +2 -4
- package/es/components/ListBox/next/ListBoxTrigger.js +1 -3
- package/es/components/ListItem/ListItem.js +2 -4
- package/es/components/Loading/Loading.js +2 -4
- package/es/components/Loading/index.js +1 -3
- package/es/components/Menu/Menu.d.ts +3 -0
- package/es/components/Menu/Menu.js +5 -6
- package/es/components/Menu/MenuContext.js +1 -3
- package/es/components/Menu/MenuItem.js +1 -3
- package/es/components/MenuButton/index.js +2 -4
- package/es/components/Modal/Modal.js +2 -5
- package/es/components/Modal/ModalPresence.js +2 -4
- package/es/components/Modal/index.js +2 -4
- package/es/components/ModalWrapper/ModalWrapper.js +1 -3
- package/es/components/MultiSelect/FilterableMultiSelect.js +3 -5
- package/es/components/MultiSelect/MultiSelect.js +2 -4
- package/es/components/MultiSelect/MultiSelectPropTypes.js +1 -3
- package/es/components/MultiSelect/filter.js +1 -2
- package/es/components/MultiSelect/tools/sorting.js +1 -2
- package/es/components/Notification/Notification.js +2 -4
- package/es/components/NumberInput/NumberFormatPropTypes.js +1 -3
- package/es/components/NumberInput/NumberInput.Skeleton.js +2 -4
- package/es/components/NumberInput/NumberInput.js +2 -4
- package/es/components/OrderedList/OrderedList.js +2 -4
- package/es/components/OverflowMenu/OverflowMenu.js +5 -7
- package/es/components/OverflowMenu/index.js +2 -4
- package/es/components/OverflowMenu/next/index.js +1 -3
- package/es/components/OverflowMenuItem/OverflowMenuItem.js +2 -4
- package/es/components/OverflowMenuItem/index.js +1 -3
- package/es/components/OverflowMenuV2/index.js +2 -4
- package/es/components/PageHeader/PageHeader.js +1 -3
- package/es/components/PageHeader/index.js +1 -3
- package/es/components/Pagination/Pagination.Skeleton.js +2 -4
- package/es/components/Pagination/Pagination.js +1 -3
- package/es/components/Pagination/experimental/PageSelector.js +2 -4
- package/es/components/Pagination/experimental/Pagination.js +2 -4
- package/es/components/PaginationNav/PaginationNav.js +1 -3
- package/es/components/Popover/index.js +2 -5
- package/es/components/PrimaryButton/PrimaryButton.js +2 -4
- package/es/components/ProgressBar/ProgressBar.js +1 -3
- package/es/components/ProgressIndicator/ProgressIndicator.Skeleton.js +2 -4
- package/es/components/ProgressIndicator/ProgressIndicator.js +1 -3
- package/es/components/RadioButton/RadioButton.Skeleton.js +2 -4
- package/es/components/RadioButton/RadioButton.js +2 -4
- package/es/components/RadioButton/index.js +1 -3
- package/es/components/RadioButtonGroup/RadioButtonGroup.js +2 -11
- package/es/components/RadioTile/RadioTile.js +1 -3
- package/es/components/RadioTile/index.js +1 -3
- package/es/components/Search/Search.Skeleton.js +2 -4
- package/es/components/Search/Search.js +7 -10
- package/es/components/Search/index.js +2 -4
- package/es/components/Search/utils.js +1 -2
- package/es/components/SecondaryButton/SecondaryButton.js +2 -4
- package/es/components/Select/Select.Skeleton.js +2 -4
- package/es/components/Select/Select.js +2 -4
- package/es/components/Select/index.js +2 -4
- package/es/components/SelectItem/SelectItem.js +2 -4
- package/es/components/SelectItem/index.js +1 -3
- package/es/components/SelectItemGroup/SelectItemGroup.js +2 -4
- package/es/components/ShapeIndicator/index.js +1 -3
- package/es/components/SkeletonIcon/SkeletonIcon.js +2 -4
- package/es/components/SkeletonPlaceholder/SkeletonPlaceholder.js +2 -4
- package/es/components/SkeletonText/SkeletonText.js +2 -4
- package/es/components/SkeletonText/index.js +1 -3
- package/es/components/Slider/Slider.Skeleton.js +2 -4
- package/es/components/Slider/Slider.js +24 -31
- package/es/components/Slider/SliderHandles.js +2 -4
- package/es/components/Stack/HStack.js +2 -4
- package/es/components/Stack/Stack.js +2 -4
- package/es/components/Stack/VStack.js +2 -4
- package/es/components/StructuredList/StructuredList.Skeleton.js +2 -4
- package/es/components/StructuredList/StructuredList.js +1 -3
- package/es/components/Switch/IconSwitch.js +2 -4
- package/es/components/Switch/Switch.js +1 -3
- package/es/components/TabContent/TabContent.js +2 -4
- package/es/components/Tabs/Tabs.Skeleton.js +2 -4
- package/es/components/Tabs/Tabs.js +2 -4
- package/es/components/Tabs/usePressable.js +1 -3
- package/es/components/Tag/DismissibleTag.js +2 -5
- package/es/components/Tag/OperationalTag.js +2 -5
- package/es/components/Tag/SelectableTag.js +2 -4
- package/es/components/Tag/Tag.Skeleton.js +2 -4
- package/es/components/Tag/Tag.js +1 -4
- package/es/components/Tag/isEllipsisActive.js +1 -2
- package/es/components/Text/Text.js +2 -4
- package/es/components/Text/TextDirection.js +2 -4
- package/es/components/Text/TextDirectionContext.js +1 -3
- package/es/components/Text/createTextComponent.js +2 -4
- package/es/components/TextArea/TextArea.Skeleton.js +2 -4
- package/es/components/TextArea/TextArea.js +2 -4
- package/es/components/TextArea/index.js +2 -4
- package/es/components/TextInput/ControlledPasswordInput.js +2 -4
- package/es/components/TextInput/PasswordInput.js +3 -5
- package/es/components/TextInput/TextInput.Skeleton.js +2 -4
- package/es/components/TextInput/TextInput.js +3 -5
- package/es/components/TextInput/index.js +2 -4
- package/es/components/TextInput/util.js +1 -2
- package/es/components/Theme/index.js +1 -3
- package/es/components/Tile/Tile.js +1 -6
- package/es/components/TileGroup/TileGroup.js +2 -4
- package/es/components/TimePicker/TimePicker.js +2 -4
- package/es/components/TimePickerSelect/TimePickerSelect.js +2 -4
- package/es/components/Toggle/Toggle.Skeleton.js +2 -4
- package/es/components/Toggle/Toggle.js +2 -4
- package/es/components/ToggleSmall/ToggleSmall.Skeleton.js +2 -4
- package/es/components/Toggletip/index.js +6 -6
- package/es/components/Tooltip/DefinitionTooltip.js +2 -4
- package/es/components/Tooltip/Tooltip.js +3 -7
- package/es/components/TreeView/TreeContext.js +1 -3
- package/es/components/TreeView/TreeNode.js +3 -4
- package/es/components/TreeView/TreeView.js +4 -5
- package/es/components/UIShell/Content.js +1 -3
- package/es/components/UIShell/Header.js +2 -4
- package/es/components/UIShell/HeaderContainer.js +2 -4
- package/es/components/UIShell/HeaderGlobalAction.js +1 -3
- package/es/components/UIShell/HeaderGlobalBar.js +1 -3
- package/es/components/UIShell/HeaderMenu.js +3 -13
- package/es/components/UIShell/HeaderMenuButton.js +2 -4
- package/es/components/UIShell/HeaderMenuItem.js +2 -4
- package/es/components/UIShell/HeaderName.js +2 -4
- package/es/components/UIShell/HeaderNavigation.js +2 -4
- package/es/components/UIShell/HeaderPanel.js +1 -3
- package/es/components/UIShell/HeaderSideNavItems.js +2 -4
- package/es/components/UIShell/Link.js +2 -4
- package/es/components/UIShell/SideNav.js +3 -5
- package/es/components/UIShell/SideNavContext.js +2 -4
- package/es/components/UIShell/SideNavDetails.js +2 -4
- package/es/components/UIShell/SideNavDivider.js +2 -4
- package/es/components/UIShell/SideNavFooter.js +2 -4
- package/es/components/UIShell/SideNavHeader.js +2 -4
- package/es/components/UIShell/SideNavIcon.js +2 -4
- package/es/components/UIShell/SideNavItem.js +2 -4
- package/es/components/UIShell/SideNavItems.js +2 -4
- package/es/components/UIShell/SideNavLink.js +2 -4
- package/es/components/UIShell/SideNavLinkText.js +2 -4
- package/es/components/UIShell/SideNavMenu.js +1 -3
- package/es/components/UIShell/SideNavMenuItem.js +2 -4
- package/es/components/UIShell/SideNavSwitcher.js +2 -4
- package/es/components/UIShell/SkipToContent.js +2 -4
- package/es/components/UIShell/Switcher.js +2 -4
- package/es/components/UIShell/SwitcherDivider.js +2 -4
- package/es/components/UIShell/SwitcherItem.js +2 -4
- package/es/components/UnorderedList/UnorderedList.js +2 -4
- package/es/feature-flags.js +1 -3
- package/es/index.js +2 -5
- package/es/internal/FloatingMenu.js +3 -6
- package/es/internal/OptimizedResize.js +1 -2
- package/es/internal/Selection.js +3 -5
- package/es/internal/clamp.js +1 -2
- package/es/internal/defaultItemToString.js +1 -2
- package/es/internal/deprecateFieldOnObject.js +1 -3
- package/es/internal/environment.js +1 -2
- package/es/internal/getAnnouncement.js +1 -2
- package/es/internal/keyboard/keys.js +1 -2
- package/es/internal/keyboard/match.js +1 -2
- package/es/internal/keyboard/navigation.js +1 -3
- package/es/internal/noopFn.js +1 -2
- package/es/internal/useAttachedMenu.js +1 -3
- package/es/internal/useControllableState.js +1 -3
- package/es/internal/useDelayedState.js +1 -3
- package/es/internal/useEvent.js +1 -3
- package/es/internal/useId.js +1 -3
- package/es/internal/useIdPrefix.js +1 -3
- package/es/internal/useIsomorphicEffect.js +1 -3
- package/es/internal/useMatchMedia.js +1 -3
- package/es/internal/useMergedRefs.js +1 -3
- package/es/internal/useNoInteractiveChildren.js +1 -3
- package/es/internal/useNormalizedInputProps.js +2 -4
- package/es/internal/useOutsideClick.js +3 -4
- package/es/internal/useOverflowItems.js +1 -3
- package/es/internal/usePrefix.js +1 -3
- package/es/internal/usePresence.js +1 -3
- package/es/internal/usePresenceContext.js +1 -3
- package/es/internal/usePreviousValue.js +1 -3
- package/es/internal/useResizeObserver.js +1 -3
- package/es/internal/useSavedCallback.js +1 -3
- package/es/internal/utils.js +1 -3
- package/es/internal/warning.js +1 -2
- package/es/internal/wrapFocus.js +1 -3
- package/es/prop-types/AriaPropTypes.js +1 -3
- package/es/prop-types/deprecate.js +1 -3
- package/es/prop-types/deprecateComponent.js +1 -3
- package/es/prop-types/deprecateValuesWithin.js +1 -3
- package/es/prop-types/isRequiredOneOf.js +1 -2
- package/es/prop-types/requiredIfGivenPropIsTruthy.js +1 -2
- package/es/tools/events.js +1 -2
- package/es/tools/mapPopoverAlign.js +1 -2
- package/es/tools/mergeRefs.js +1 -2
- package/es/tools/setupGetInstanceId.js +1 -2
- package/es/tools/toggleClass.js +1 -2
- package/es/tools/wrapComponent.js +1 -3
- package/icons/index.esm.js +1 -1
- package/icons/index.js +7 -7
- package/lib/_virtual/_rolldown/runtime.js +12 -22
- package/lib/components/AILabel/index.js +7 -9
- package/lib/components/AISkeleton/AISkeletonIcon.js +4 -6
- package/lib/components/AISkeleton/AISkeletonPlaceholder.js +5 -10
- package/lib/components/AISkeleton/AISkeletonText.js +4 -6
- package/lib/components/Accordion/Accordion.Skeleton.js +4 -6
- package/lib/components/Accordion/Accordion.js +4 -6
- package/lib/components/Accordion/AccordionItem.js +9 -11
- package/lib/components/Accordion/AccordionProvider.js +2 -4
- package/lib/components/AspectRatio/AspectRatio.js +3 -5
- package/lib/components/BadgeIndicator/index.js +3 -5
- package/lib/components/Breadcrumb/Breadcrumb.Skeleton.js +3 -5
- package/lib/components/Breadcrumb/Breadcrumb.js +3 -5
- package/lib/components/Breadcrumb/BreadcrumbItem.js +5 -7
- package/lib/components/Button/Button.Skeleton.js +3 -5
- package/lib/components/Button/Button.js +4 -6
- package/lib/components/Button/ButtonBase.js +4 -6
- package/lib/components/Button/index.js +3 -5
- package/lib/components/ButtonSet/ButtonSet.js +4 -6
- package/lib/components/ButtonSet/index.js +2 -5
- package/lib/components/ChatButton/ChatButton.Skeleton.js +3 -5
- package/lib/components/ChatButton/ChatButton.js +4 -6
- package/lib/components/Checkbox/Checkbox.Skeleton.js +3 -5
- package/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.js +27 -18
- package/lib/components/Checkbox/index.js +3 -5
- package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.js +30 -19
- package/lib/components/ClassPrefix/index.js +3 -5
- package/lib/components/CodeSnippet/CodeSnippet.Skeleton.js +3 -5
- package/lib/components/CodeSnippet/CodeSnippet.js +11 -13
- package/lib/components/ComboBox/ComboBox.js +27 -29
- package/lib/components/ComboBox/index.js +2 -5
- package/lib/components/ComboButton/index.js +13 -15
- package/lib/components/ComposedModal/ComposedModal.js +23 -25
- package/lib/components/ComposedModal/ComposedModalPresence.js +4 -6
- package/lib/components/ComposedModal/ModalFooter.js +7 -9
- package/lib/components/ComposedModal/ModalHeader.js +4 -6
- package/lib/components/ComposedModal/useComposedModalState.js +2 -4
- package/lib/components/ContainedList/ContainedList.js +24 -16
- package/lib/components/ContainedList/ContainedListItem/ContainedListItem.js +4 -6
- package/lib/components/ContainedList/ContainedListItem/index.js +2 -5
- package/lib/components/ContainedList/index.js +8 -7
- package/lib/components/ContentSwitcher/ContentSwitcher.js +11 -13
- package/lib/components/ContextMenu/useContextMenu.js +2 -4
- package/lib/components/Copy/Copy.js +8 -10
- package/lib/components/Copy/index.js +2 -5
- package/lib/components/CopyButton/CopyButton.js +8 -10
- package/lib/components/CopyButton/index.js +2 -5
- package/lib/components/DangerButton/DangerButton.js +3 -5
- package/lib/components/DataTable/DataTable.js +32 -34
- package/lib/components/DataTable/Table.js +6 -8
- package/lib/components/DataTable/TableActionList.js +2 -5
- package/lib/components/DataTable/TableBatchAction.js +3 -5
- package/lib/components/DataTable/TableBatchActions.js +6 -8
- package/lib/components/DataTable/TableBody.js +2 -4
- package/lib/components/DataTable/TableCell.js +3 -5
- package/lib/components/DataTable/TableContainer.js +6 -8
- package/lib/components/DataTable/TableContext.js +3 -6
- package/lib/components/DataTable/TableDecoratorRow.js +5 -7
- package/lib/components/DataTable/TableExpandHeader.js +7 -11
- package/lib/components/DataTable/TableExpandRow.js +8 -10
- package/lib/components/DataTable/TableExpandedRow.js +4 -6
- package/lib/components/DataTable/TableHead.js +2 -5
- package/lib/components/DataTable/TableHeader.js +7 -9
- package/lib/components/DataTable/TableRow.js +7 -9
- package/lib/components/DataTable/TableSelectAll.js +6 -9
- package/lib/components/DataTable/TableSelectRow.js +7 -9
- package/lib/components/DataTable/TableSlugRow.js +4 -6
- package/lib/components/DataTable/TableToolbar.js +4 -6
- package/lib/components/DataTable/TableToolbarAction.js +3 -5
- package/lib/components/DataTable/TableToolbarContent.js +2 -5
- package/lib/components/DataTable/TableToolbarMenu.js +4 -7
- package/lib/components/DataTable/TableToolbarSearch.js +6 -8
- package/lib/components/DataTable/state/getDerivedStateFromProps.js +3 -5
- package/lib/components/DataTable/state/sortStates.js +1 -3
- package/lib/components/DataTable/state/sorting.js +3 -5
- package/lib/components/DataTable/tools/cells.js +1 -3
- package/lib/components/DataTable/tools/denormalize.js +1 -3
- package/lib/components/DataTable/tools/filter.js +1 -3
- package/lib/components/DataTable/tools/normalize.js +4 -6
- package/lib/components/DataTable/tools/sorting.js +3 -5
- package/lib/components/DataTableSkeleton/DataTableSkeleton.js +3 -5
- package/lib/components/DatePicker/DatePicker.Skeleton.js +3 -5
- package/lib/components/DatePicker/DatePicker.js +16 -17
- package/lib/components/DatePicker/DatePickerLocales.js +1 -3
- package/lib/components/DatePicker/index.js +3 -5
- package/lib/components/DatePicker/plugins/appendToPlugin.js +1 -3
- package/lib/components/DatePicker/plugins/fixEventsPlugin.js +3 -5
- package/lib/components/DatePicker/plugins/rangePlugin.js +3 -5
- package/lib/components/DatePicker/utils.js +1 -3
- package/lib/components/DatePickerInput/DatePickerInput.js +11 -13
- package/lib/components/DatePickerInput/index.js +2 -5
- package/lib/components/Dialog/Dialog.d.ts +15 -0
- package/lib/components/Dialog/Dialog.js +60 -43
- package/lib/components/Dialog/index.js +8 -10
- package/lib/components/Dropdown/Dropdown.Skeleton.js +4 -6
- package/lib/components/Dropdown/Dropdown.js +13 -15
- package/lib/components/Dropdown/index.js +3 -5
- package/lib/components/ErrorBoundary/ErrorBoundary.js +3 -5
- package/lib/components/ErrorBoundary/ErrorBoundaryContext.js +3 -6
- package/lib/components/ExpandableSearch/ExpandableSearch.js +9 -11
- package/lib/components/ExpandableSearch/index.js +2 -5
- package/lib/components/FeatureFlags/index.js +3 -5
- package/lib/components/FileUploader/FileUploader.Skeleton.js +5 -7
- package/lib/components/FileUploader/FileUploader.js +11 -13
- package/lib/components/FileUploader/FileUploaderButton.js +9 -11
- package/lib/components/FileUploader/FileUploaderDropContainer.js +9 -11
- package/lib/components/FileUploader/FileUploaderItem.js +11 -13
- package/lib/components/FileUploader/Filename.js +4 -6
- package/lib/components/FluidComboBox/FluidComboBox.Skeleton.js +3 -5
- package/lib/components/FluidComboBox/FluidComboBox.js +5 -7
- package/lib/components/FluidDatePicker/FluidDatePicker.Skeleton.js +4 -6
- package/lib/components/FluidDatePicker/FluidDatePicker.js +5 -7
- package/lib/components/FluidDatePickerInput/FluidDatePickerInput.js +4 -6
- package/lib/components/FluidDropdown/FluidDropdown.Skeleton.js +3 -5
- package/lib/components/FluidDropdown/FluidDropdown.js +5 -7
- package/lib/components/FluidForm/FluidForm.js +5 -7
- package/lib/components/FluidForm/FormContext.js +3 -6
- package/lib/components/FluidMultiSelect/FluidMultiSelect.Skeleton.js +3 -5
- package/lib/components/FluidMultiSelect/FluidMultiSelect.js +6 -8
- package/lib/components/FluidNumberInput/FluidNumberInput.Skeleton.js +4 -6
- package/lib/components/FluidNumberInput/FluidNumberInput.js +6 -8
- package/lib/components/FluidSearch/FluidSearch.Skeleton.js +4 -6
- package/lib/components/FluidSearch/FluidSearch.js +5 -7
- package/lib/components/FluidSelect/FluidSelect.Skeleton.js +3 -5
- package/lib/components/FluidSelect/FluidSelect.js +5 -7
- package/lib/components/FluidSelect/index.js +3 -5
- package/lib/components/FluidTextArea/FluidTextArea.Skeleton.js +4 -6
- package/lib/components/FluidTextArea/FluidTextArea.js +6 -8
- package/lib/components/FluidTextInput/FluidPasswordInput.js +5 -7
- package/lib/components/FluidTextInput/FluidTextInput.Skeleton.js +4 -6
- package/lib/components/FluidTextInput/FluidTextInput.js +6 -8
- package/lib/components/FluidTextInput/index.js +4 -6
- package/lib/components/FluidTimePicker/FluidTimePicker.Skeleton.js +5 -7
- package/lib/components/FluidTimePicker/FluidTimePicker.js +4 -6
- package/lib/components/FluidTimePickerSelect/FluidTimePickerSelect.js +3 -5
- package/lib/components/Form/Form.js +3 -5
- package/lib/components/FormGroup/FormGroup.js +3 -5
- package/lib/components/FormItem/FormItem.js +3 -5
- package/lib/components/FormLabel/FormLabel.js +4 -6
- package/lib/components/Grid/CSSGrid.js +4 -6
- package/lib/components/Grid/Column.js +4 -6
- package/lib/components/Grid/ColumnHang.js +3 -5
- package/lib/components/Grid/FlexGrid.js +4 -6
- package/lib/components/Grid/Grid.js +5 -7
- package/lib/components/Grid/GridContext.js +2 -4
- package/lib/components/Grid/Row.js +3 -5
- package/lib/components/Heading/index.js +2 -4
- package/lib/components/Icon/Icon.Skeleton.js +3 -5
- package/lib/components/IconButton/index.js +9 -11
- package/lib/components/IconIndicator/index.js +3 -5
- package/lib/components/IdPrefix/index.js +3 -5
- package/lib/components/InlineCheckbox/InlineCheckbox.js +5 -7
- package/lib/components/InlineCheckbox/index.js +2 -5
- package/lib/components/InlineLoading/InlineLoading.js +4 -6
- package/lib/components/InlineLoading/index.js +2 -5
- package/lib/components/Layer/LayerContext.js +2 -4
- package/lib/components/Layer/LayerLevel.js +1 -3
- package/lib/components/Layer/index.js +6 -8
- package/lib/components/Layout/index.js +3 -5
- package/lib/components/LayoutDirection/LayoutDirection.js +3 -5
- package/lib/components/LayoutDirection/LayoutDirectionContext.js +2 -4
- package/lib/components/LayoutDirection/useLayoutDirection.js +3 -5
- package/lib/components/Link/Link.js +3 -5
- package/lib/components/Link/index.js +2 -5
- package/lib/components/ListBox/ListBox.js +6 -8
- package/lib/components/ListBox/ListBoxField.js +3 -5
- package/lib/components/ListBox/ListBoxMenu.js +4 -6
- package/lib/components/ListBox/ListBoxMenuIcon.js +3 -5
- package/lib/components/ListBox/ListBoxMenuItem.js +4 -6
- package/lib/components/ListBox/ListBoxPropTypes.js +2 -4
- package/lib/components/ListBox/ListBoxSelection.js +3 -5
- package/lib/components/ListBox/index.js +8 -10
- package/lib/components/ListBox/next/ListBoxSelection.js +3 -5
- package/lib/components/ListBox/next/ListBoxTrigger.js +3 -5
- package/lib/components/ListItem/ListItem.js +4 -6
- package/lib/components/Loading/Loading.js +4 -6
- package/lib/components/Loading/index.js +2 -5
- package/lib/components/Menu/Menu.d.ts +3 -0
- package/lib/components/Menu/Menu.js +13 -14
- package/lib/components/Menu/MenuContext.js +2 -4
- package/lib/components/Menu/MenuItem.js +13 -15
- package/lib/components/MenuButton/index.js +10 -12
- package/lib/components/Modal/Modal.js +28 -31
- package/lib/components/Modal/ModalPresence.js +3 -5
- package/lib/components/Modal/index.js +3 -6
- package/lib/components/ModalWrapper/ModalWrapper.js +9 -11
- package/lib/components/MultiSelect/FilterableMultiSelect.js +23 -25
- package/lib/components/MultiSelect/MultiSelect.js +22 -24
- package/lib/components/MultiSelect/MultiSelectPropTypes.js +2 -4
- package/lib/components/MultiSelect/filter.js +1 -3
- package/lib/components/MultiSelect/tools/sorting.js +1 -3
- package/lib/components/Notification/Notification.js +16 -18
- package/lib/components/NumberInput/NumberFormatPropTypes.js +2 -4
- package/lib/components/NumberInput/NumberInput.Skeleton.js +3 -5
- package/lib/components/NumberInput/NumberInput.js +15 -17
- package/lib/components/OrderedList/OrderedList.js +3 -5
- package/lib/components/OverflowMenu/OverflowMenu.js +17 -19
- package/lib/components/OverflowMenu/index.js +5 -7
- package/lib/components/OverflowMenu/next/index.js +11 -13
- package/lib/components/OverflowMenuItem/OverflowMenuItem.js +8 -10
- package/lib/components/OverflowMenuItem/index.js +2 -5
- package/lib/components/OverflowMenuV2/index.js +5 -7
- package/lib/components/PageHeader/PageHeader.js +17 -19
- package/lib/components/PageHeader/index.js +8 -10
- package/lib/components/Pagination/Pagination.Skeleton.js +4 -6
- package/lib/components/Pagination/Pagination.js +8 -10
- package/lib/components/Pagination/experimental/PageSelector.js +6 -8
- package/lib/components/Pagination/experimental/Pagination.js +6 -8
- package/lib/components/PaginationNav/PaginationNav.js +6 -8
- package/lib/components/Popover/index.js +10 -12
- package/lib/components/PrimaryButton/PrimaryButton.js +3 -5
- package/lib/components/ProgressBar/ProgressBar.js +5 -7
- package/lib/components/ProgressIndicator/ProgressIndicator.Skeleton.js +3 -5
- package/lib/components/ProgressIndicator/ProgressIndicator.js +6 -8
- package/lib/components/RadioButton/RadioButton.Skeleton.js +3 -5
- package/lib/components/RadioButton/RadioButton.js +10 -12
- package/lib/components/RadioButton/index.js +2 -5
- package/lib/components/RadioButtonGroup/RadioButtonGroup.js +10 -19
- package/lib/components/RadioTile/RadioTile.js +12 -14
- package/lib/components/RadioTile/index.js +2 -5
- package/lib/components/Search/Search.Skeleton.js +3 -5
- package/lib/components/Search/Search.js +19 -22
- package/lib/components/Search/index.js +3 -5
- package/lib/components/Search/utils.js +1 -3
- package/lib/components/SecondaryButton/SecondaryButton.js +3 -5
- package/lib/components/Select/Select.Skeleton.js +3 -5
- package/lib/components/Select/Select.js +10 -12
- package/lib/components/Select/index.js +3 -5
- package/lib/components/SelectItem/SelectItem.js +3 -5
- package/lib/components/SelectItem/index.js +2 -5
- package/lib/components/SelectItemGroup/SelectItemGroup.js +3 -5
- package/lib/components/ShapeIndicator/index.js +3 -5
- package/lib/components/SkeletonIcon/SkeletonIcon.js +3 -5
- package/lib/components/SkeletonPlaceholder/SkeletonPlaceholder.js +3 -5
- package/lib/components/SkeletonText/SkeletonText.js +4 -6
- package/lib/components/SkeletonText/index.js +2 -5
- package/lib/components/Slider/Slider.Skeleton.js +5 -7
- package/lib/components/Slider/Slider.js +34 -41
- package/lib/components/Slider/SliderHandles.js +3 -5
- package/lib/components/Stack/HStack.js +3 -5
- package/lib/components/Stack/Stack.js +3 -5
- package/lib/components/Stack/VStack.js +3 -5
- package/lib/components/StructuredList/StructuredList.Skeleton.js +3 -5
- package/lib/components/StructuredList/StructuredList.js +7 -9
- package/lib/components/Switch/IconSwitch.js +5 -7
- package/lib/components/Switch/Switch.js +4 -6
- package/lib/components/TabContent/TabContent.js +3 -5
- package/lib/components/Tabs/Tabs.Skeleton.js +3 -5
- package/lib/components/Tabs/Tabs.js +19 -21
- package/lib/components/Tabs/usePressable.js +2 -4
- package/lib/components/Tag/DismissibleTag.js +13 -16
- package/lib/components/Tag/OperationalTag.js +10 -13
- package/lib/components/Tag/SelectableTag.js +11 -13
- package/lib/components/Tag/Tag.Skeleton.js +3 -5
- package/lib/components/Tag/Tag.js +12 -15
- package/lib/components/Tag/isEllipsisActive.js +1 -3
- package/lib/components/Text/Text.js +3 -5
- package/lib/components/Text/TextDirection.js +3 -5
- package/lib/components/Text/TextDirectionContext.js +3 -6
- package/lib/components/Text/createTextComponent.js +3 -5
- package/lib/components/TextArea/TextArea.Skeleton.js +3 -5
- package/lib/components/TextArea/TextArea.js +13 -15
- package/lib/components/TextArea/index.js +3 -5
- package/lib/components/TextInput/ControlledPasswordInput.js +7 -9
- package/lib/components/TextInput/PasswordInput.js +8 -10
- package/lib/components/TextInput/TextInput.Skeleton.js +3 -5
- package/lib/components/TextInput/TextInput.js +12 -14
- package/lib/components/TextInput/index.js +3 -5
- package/lib/components/TextInput/util.js +1 -3
- package/lib/components/Theme/index.js +5 -7
- package/lib/components/Tile/Tile.js +16 -21
- package/lib/components/TileGroup/TileGroup.js +6 -8
- package/lib/components/TimePicker/TimePicker.js +6 -8
- package/lib/components/TimePickerSelect/TimePickerSelect.js +3 -5
- package/lib/components/Toggle/Toggle.Skeleton.js +3 -5
- package/lib/components/Toggle/Toggle.js +5 -7
- package/lib/components/ToggleSmall/ToggleSmall.Skeleton.js +3 -5
- package/lib/components/Toggletip/index.js +13 -13
- package/lib/components/Tooltip/DefinitionTooltip.js +8 -10
- package/lib/components/Tooltip/Tooltip.js +12 -16
- package/lib/components/TreeView/TreeContext.js +2 -4
- package/lib/components/TreeView/TreeNode.js +13 -14
- package/lib/components/TreeView/TreeView.js +12 -13
- package/lib/components/UIShell/Content.js +3 -5
- package/lib/components/UIShell/Header.js +3 -5
- package/lib/components/UIShell/HeaderContainer.js +5 -7
- package/lib/components/UIShell/HeaderGlobalAction.js +5 -7
- package/lib/components/UIShell/HeaderGlobalBar.js +2 -5
- package/lib/components/UIShell/HeaderMenu.js +9 -11
- package/lib/components/UIShell/HeaderMenuButton.js +4 -6
- package/lib/components/UIShell/HeaderMenuItem.js +5 -7
- package/lib/components/UIShell/HeaderName.js +4 -6
- package/lib/components/UIShell/HeaderNavigation.js +4 -6
- package/lib/components/UIShell/HeaderPanel.js +10 -12
- package/lib/components/UIShell/HeaderSideNavItems.js +3 -5
- package/lib/components/UIShell/Link.js +3 -5
- package/lib/components/UIShell/SideNav.js +11 -13
- package/lib/components/UIShell/SideNavContext.js +2 -4
- package/lib/components/UIShell/SideNavDetails.js +3 -5
- package/lib/components/UIShell/SideNavDivider.js +3 -5
- package/lib/components/UIShell/SideNavFooter.js +3 -5
- package/lib/components/UIShell/SideNavHeader.js +4 -6
- package/lib/components/UIShell/SideNavIcon.js +3 -5
- package/lib/components/UIShell/SideNavItem.js +3 -5
- package/lib/components/UIShell/SideNavItems.js +4 -6
- package/lib/components/UIShell/SideNavLink.js +8 -10
- package/lib/components/UIShell/SideNavLinkText.js +3 -5
- package/lib/components/UIShell/SideNavMenu.js +7 -9
- package/lib/components/UIShell/SideNavMenuItem.js +5 -7
- package/lib/components/UIShell/SideNavSwitcher.js +4 -6
- package/lib/components/UIShell/SkipToContent.js +3 -5
- package/lib/components/UIShell/Switcher.js +8 -10
- package/lib/components/UIShell/SwitcherDivider.js +3 -5
- package/lib/components/UIShell/SwitcherItem.js +7 -9
- package/lib/components/UnorderedList/UnorderedList.js +3 -5
- package/lib/feature-flags.js +3 -6
- package/lib/index.js +253 -256
- package/lib/internal/FloatingMenu.js +10 -14
- package/lib/internal/OptimizedResize.js +1 -3
- package/lib/internal/Selection.js +3 -5
- package/lib/internal/clamp.js +1 -3
- package/lib/internal/defaultItemToString.js +1 -3
- package/lib/internal/deprecateFieldOnObject.js +3 -5
- package/lib/internal/environment.js +1 -3
- package/lib/internal/getAnnouncement.js +1 -3
- package/lib/internal/keyboard/keys.js +1 -3
- package/lib/internal/keyboard/match.js +1 -3
- package/lib/internal/keyboard/navigation.js +3 -5
- package/lib/internal/noopFn.js +1 -3
- package/lib/internal/useAttachedMenu.js +2 -4
- package/lib/internal/useControllableState.js +3 -5
- package/lib/internal/useDelayedState.js +2 -4
- package/lib/internal/useEvent.js +2 -4
- package/lib/internal/useId.js +5 -7
- package/lib/internal/useIdPrefix.js +2 -4
- package/lib/internal/useIsomorphicEffect.js +2 -4
- package/lib/internal/useMatchMedia.js +2 -4
- package/lib/internal/useMergedRefs.js +2 -4
- package/lib/internal/useNoInteractiveChildren.js +2 -4
- package/lib/internal/useNormalizedInputProps.js +4 -6
- package/lib/internal/useOutsideClick.js +6 -7
- package/lib/internal/useOverflowItems.js +4 -6
- package/lib/internal/usePrefix.js +2 -4
- package/lib/internal/usePresence.js +4 -6
- package/lib/internal/usePresenceContext.js +3 -5
- package/lib/internal/usePreviousValue.js +2 -4
- package/lib/internal/useResizeObserver.js +3 -5
- package/lib/internal/useSavedCallback.js +2 -4
- package/lib/internal/utils.js +2 -4
- package/lib/internal/warning.js +2 -4
- package/lib/internal/wrapFocus.js +3 -5
- package/lib/prop-types/AriaPropTypes.js +3 -5
- package/lib/prop-types/deprecate.js +2 -4
- package/lib/prop-types/deprecateComponent.js +2 -4
- package/lib/prop-types/deprecateValuesWithin.js +2 -4
- package/lib/prop-types/isRequiredOneOf.js +1 -3
- package/lib/prop-types/requiredIfGivenPropIsTruthy.js +1 -3
- package/lib/tools/events.js +1 -3
- package/lib/tools/mapPopoverAlign.js +1 -3
- package/lib/tools/mergeRefs.js +1 -3
- package/lib/tools/setupGetInstanceId.js +1 -3
- package/lib/tools/toggleClass.js +1 -3
- package/lib/tools/wrapComponent.js +3 -5
- package/package.json +9 -9
- package/telemetry.yml +1 -2
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import Link, { LinkPropTypes } from "./Link.js";
|
|
10
10
|
import classNames from "classnames";
|
|
11
|
-
import
|
|
11
|
+
import "react";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
14
|
//#region src/components/UIShell/HeaderName.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -38,6 +37,5 @@ HeaderName.propTypes = {
|
|
|
38
37
|
href: PropTypes.string,
|
|
39
38
|
prefix: PropTypes.string
|
|
40
39
|
};
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
|
-
export { HeaderName as default };
|
|
41
|
+
export { HeaderName as default };
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { AriaLabelPropType } from "../../prop-types/AriaPropTypes.js";
|
|
10
10
|
import classNames from "classnames";
|
|
11
|
-
import
|
|
11
|
+
import "react";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
14
|
//#region src/components/UIShell/HeaderNavigation.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -38,6 +37,5 @@ HeaderNavigation.propTypes = {
|
|
|
38
37
|
children: PropTypes.node,
|
|
39
38
|
className: PropTypes.string
|
|
40
39
|
};
|
|
41
|
-
|
|
42
40
|
//#endregion
|
|
43
|
-
export { HeaderNavigation as default };
|
|
41
|
+
export { HeaderNavigation as default };
|
|
@@ -17,7 +17,6 @@ import classNames from "classnames";
|
|
|
17
17
|
import React, { useRef, useState } from "react";
|
|
18
18
|
import PropTypes from "prop-types";
|
|
19
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
-
|
|
21
20
|
//#region src/components/UIShell/HeaderPanel.tsx
|
|
22
21
|
/**
|
|
23
22
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -80,6 +79,5 @@ HeaderPanel.propTypes = {
|
|
|
80
79
|
onHeaderPanelFocus: PropTypes.func
|
|
81
80
|
};
|
|
82
81
|
HeaderPanel.displayName = "HeaderPanel";
|
|
83
|
-
|
|
84
82
|
//#endregion
|
|
85
|
-
export { HeaderPanel as default };
|
|
83
|
+
export { HeaderPanel as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/HeaderSideNavItems.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -33,6 +32,5 @@ HeaderSideNavItems.propTypes = {
|
|
|
33
32
|
className: PropTypes.string,
|
|
34
33
|
hasDivider: PropTypes.bool
|
|
35
34
|
};
|
|
36
|
-
|
|
37
35
|
//#endregion
|
|
38
|
-
export { HeaderSideNavItems as default };
|
|
36
|
+
export { HeaderSideNavItems as default };
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
9
|
-
import
|
|
9
|
+
import { forwardRef } from "react";
|
|
10
10
|
import PropTypes from "prop-types";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
//#region src/components/UIShell/Link.tsx
|
|
14
13
|
/**
|
|
15
14
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -37,6 +36,5 @@ const LinkPropTypes = {
|
|
|
37
36
|
};
|
|
38
37
|
Link.displayName = "Link";
|
|
39
38
|
Link.propTypes = LinkPropTypes;
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { LinkPropTypes, Link as default };
|
|
40
|
+
export { LinkPropTypes, Link as default };
|
|
@@ -13,13 +13,12 @@ import { useWindowEvent } from "../../internal/useEvent.js";
|
|
|
13
13
|
import { useDelayedState } from "../../internal/useDelayedState.js";
|
|
14
14
|
import { useMatchMedia } from "../../internal/useMatchMedia.js";
|
|
15
15
|
import { AriaLabelPropType } from "../../prop-types/AriaPropTypes.js";
|
|
16
|
-
import {
|
|
16
|
+
import { SideNavContextProvider } from "./SideNavContext.js";
|
|
17
17
|
import classNames from "classnames";
|
|
18
|
-
import
|
|
18
|
+
import { forwardRef, useEffect, useRef } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { breakpoints } from "@carbon/layout";
|
|
22
|
-
|
|
23
22
|
//#region src/components/UIShell/SideNav.tsx
|
|
24
23
|
/**
|
|
25
24
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -138,6 +137,5 @@ SideNav.propTypes = {
|
|
|
138
137
|
onSideNavBlur: PropTypes.func,
|
|
139
138
|
onToggle: PropTypes.func
|
|
140
139
|
};
|
|
141
|
-
|
|
142
140
|
//#endregion
|
|
143
|
-
export { SideNav as default };
|
|
141
|
+
export { SideNav as default };
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import { createContext } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
|
|
11
10
|
//#region src/components/UIShell/SideNavContext.tsx
|
|
12
11
|
/**
|
|
13
12
|
* Copyright IBM Corp. 2026
|
|
@@ -25,6 +24,5 @@ const SideNavContextProvider = ({ children, isRail, isSideNavExpanded }) => {
|
|
|
25
24
|
children
|
|
26
25
|
});
|
|
27
26
|
};
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { SideNavContext, SideNavContextProvider };
|
|
28
|
+
export { SideNavContext, SideNavContextProvider };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SideNavDetails.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -35,6 +34,5 @@ SideNavDetails.propTypes = {
|
|
|
35
34
|
className: PropTypes.string,
|
|
36
35
|
title: PropTypes.string.isRequired
|
|
37
36
|
};
|
|
38
|
-
|
|
39
37
|
//#endregion
|
|
40
|
-
export { SideNavDetails as default };
|
|
38
|
+
export { SideNavDetails as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SideNavDivider.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2021, 2025
|
|
@@ -25,6 +24,5 @@ const SideNavDivider = ({ className }) => {
|
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
26
|
SideNavDivider.propTypes = { className: PropTypes.string };
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { SideNavDivider as default };
|
|
28
|
+
export { SideNavDivider as default };
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { ChevronRight, Close } from "@carbon/icons-react";
|
|
14
|
-
|
|
15
14
|
//#region src/components/UIShell/SideNavFooter.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -50,6 +49,5 @@ SideNavFooter.propTypes = {
|
|
|
50
49
|
expanded: PropTypes.bool.isRequired,
|
|
51
50
|
onToggle: PropTypes.func.isRequired
|
|
52
51
|
};
|
|
53
|
-
|
|
54
52
|
//#endregion
|
|
55
|
-
export { SideNavFooter as default };
|
|
53
|
+
export { SideNavFooter as default };
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import SideNavIcon from "./SideNavIcon.js";
|
|
10
10
|
import classNames from "classnames";
|
|
11
|
-
import
|
|
11
|
+
import "react";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
14
|
//#region src/components/UIShell/SideNavHeader.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -32,6 +31,5 @@ SideNavHeader.propTypes = {
|
|
|
32
31
|
isSideNavExpanded: PropTypes.bool,
|
|
33
32
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired
|
|
34
33
|
};
|
|
35
|
-
|
|
36
34
|
//#endregion
|
|
37
|
-
export { SideNavHeader as default };
|
|
35
|
+
export { SideNavHeader as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SideNavIcon.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -34,6 +33,5 @@ SideNavIcon.propTypes = {
|
|
|
34
33
|
className: PropTypes.string,
|
|
35
34
|
small: PropTypes.bool
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
|
-
export { SideNavIcon as default };
|
|
37
|
+
export { SideNavIcon as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SideNavItem.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -34,6 +33,5 @@ SideNavItem.propTypes = {
|
|
|
34
33
|
className: PropTypes.string,
|
|
35
34
|
large: PropTypes.bool
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
|
-
export { SideNavItem as default };
|
|
37
|
+
export { SideNavItem as default };
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { SideNavContext, SideNavContextProvider } from "./SideNavContext.js";
|
|
10
10
|
import classNames from "classnames";
|
|
11
|
-
import
|
|
11
|
+
import { useContext } from "react";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
|
|
15
14
|
//#region src/components/UIShell/SideNavItems.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -37,6 +36,5 @@ SideNavItems.propTypes = {
|
|
|
37
36
|
className: PropTypes.string,
|
|
38
37
|
isSideNavExpanded: PropTypes.bool
|
|
39
38
|
};
|
|
40
|
-
|
|
41
39
|
//#endregion
|
|
42
|
-
export { SideNavItems as default };
|
|
40
|
+
export { SideNavItems as default };
|
|
@@ -12,10 +12,9 @@ import SideNavIcon from "./SideNavIcon.js";
|
|
|
12
12
|
import SideNavItem from "./SideNavItem.js";
|
|
13
13
|
import SideNavLinkText from "./SideNavLinkText.js";
|
|
14
14
|
import classNames from "classnames";
|
|
15
|
-
import
|
|
15
|
+
import { forwardRef, useContext } from "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
|
|
19
18
|
//#region src/components/UIShell/SideNavLink.tsx
|
|
20
19
|
/**
|
|
21
20
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -58,6 +57,5 @@ SideNavLink.propTypes = {
|
|
|
58
57
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
59
58
|
tabIndex: PropTypes.number
|
|
60
59
|
};
|
|
61
|
-
|
|
62
60
|
//#endregion
|
|
63
|
-
export { SideNavLink as default };
|
|
61
|
+
export { SideNavLink as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SideNavLinkText.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -30,6 +29,5 @@ SideNavLinkText.propTypes = {
|
|
|
30
29
|
children: PropTypes.node.isRequired,
|
|
31
30
|
className: PropTypes.string
|
|
32
31
|
};
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
|
-
export { SideNavLinkText as default };
|
|
33
|
+
export { SideNavLinkText as default };
|
|
@@ -15,7 +15,6 @@ import React, { forwardRef, useContext, useEffect, useRef, useState } from "reac
|
|
|
15
15
|
import PropTypes from "prop-types";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { ChevronDown } from "@carbon/icons-react";
|
|
18
|
-
|
|
19
18
|
//#region src/components/UIShell/SideNavMenu.tsx
|
|
20
19
|
/**
|
|
21
20
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -114,6 +113,5 @@ function hasActiveDescendant(children) {
|
|
|
114
113
|
}
|
|
115
114
|
return false;
|
|
116
115
|
}
|
|
117
|
-
|
|
118
116
|
//#endregion
|
|
119
|
-
export { SideNavMenu as default };
|
|
117
|
+
export { SideNavMenu as default };
|
|
@@ -9,10 +9,9 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import Link from "./Link.js";
|
|
10
10
|
import SideNavLinkText from "./SideNavLinkText.js";
|
|
11
11
|
import classNames from "classnames";
|
|
12
|
-
import
|
|
12
|
+
import { forwardRef } from "react";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
15
|
//#region src/components/UIShell/SideNavMenuItem.tsx
|
|
17
16
|
/**
|
|
18
17
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -46,6 +45,5 @@ SideNavMenuItem.propTypes = {
|
|
|
46
45
|
href: PropTypes.string,
|
|
47
46
|
isActive: PropTypes.bool
|
|
48
47
|
};
|
|
49
|
-
|
|
50
48
|
//#endregion
|
|
51
|
-
export { SideNavMenuItem as default };
|
|
49
|
+
export { SideNavMenuItem as default };
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { useId } from "../../internal/useId.js";
|
|
10
10
|
import classNames from "classnames";
|
|
11
|
-
import
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { ChevronDown } from "@carbon/icons-react";
|
|
15
|
-
|
|
16
15
|
//#region src/components/UIShell/SideNavSwitcher.tsx
|
|
17
16
|
/**
|
|
18
17
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -65,6 +64,5 @@ SideNavSwitcher.propTypes = {
|
|
|
65
64
|
onChange: PropTypes.func,
|
|
66
65
|
options: PropTypes.arrayOf(PropTypes.string).isRequired
|
|
67
66
|
};
|
|
68
|
-
|
|
69
67
|
//#endregion
|
|
70
|
-
export { SideNavSwitcher as default };
|
|
68
|
+
export { SideNavSwitcher as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SkipToContent.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -34,6 +33,5 @@ SkipToContent.propTypes = {
|
|
|
34
33
|
href: PropTypes.string,
|
|
35
34
|
tabIndex: PropTypes.string
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
|
-
export { SkipToContent as default };
|
|
37
|
+
export { SkipToContent as default };
|
|
@@ -12,10 +12,9 @@ import { AriaLabelPropType } from "../../prop-types/AriaPropTypes.js";
|
|
|
12
12
|
import SwitcherItem from "./SwitcherItem.js";
|
|
13
13
|
import SwitcherDivider from "./SwitcherDivider.js";
|
|
14
14
|
import classNames from "classnames";
|
|
15
|
-
import
|
|
15
|
+
import { Children, cloneElement, forwardRef, useRef } from "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
|
|
19
18
|
//#region src/components/UIShell/Switcher.tsx
|
|
20
19
|
/**
|
|
21
20
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -75,6 +74,5 @@ Switcher.propTypes = {
|
|
|
75
74
|
className: PropTypes.string,
|
|
76
75
|
expanded: PropTypes.bool
|
|
77
76
|
};
|
|
78
|
-
|
|
79
77
|
//#endregion
|
|
80
|
-
export { Switcher as default };
|
|
78
|
+
export { Switcher as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UIShell/SwitcherDivider.tsx
|
|
15
14
|
const SwitcherDivider = ({ className: customClassName, ...other }) => {
|
|
16
15
|
const classNames$1 = classNames(`${usePrefix()}--switcher__item--divider`, { [customClassName || ""]: !!customClassName });
|
|
@@ -20,6 +19,5 @@ const SwitcherDivider = ({ className: customClassName, ...other }) => {
|
|
|
20
19
|
});
|
|
21
20
|
};
|
|
22
21
|
SwitcherDivider.propTypes = { className: PropTypes.string };
|
|
23
|
-
|
|
24
22
|
//#endregion
|
|
25
|
-
export { SwitcherDivider as default };
|
|
23
|
+
export { SwitcherDivider as default };
|
|
@@ -11,10 +11,9 @@ import { match } from "../../internal/keyboard/match.js";
|
|
|
11
11
|
import { AriaLabelPropType } from "../../prop-types/AriaPropTypes.js";
|
|
12
12
|
import Link from "./Link.js";
|
|
13
13
|
import classNames from "classnames";
|
|
14
|
-
import
|
|
14
|
+
import { forwardRef } from "react";
|
|
15
15
|
import PropTypes from "prop-types";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
|
-
|
|
18
17
|
//#region src/components/UIShell/SwitcherItem.tsx
|
|
19
18
|
/**
|
|
20
19
|
* Copyright IBM Corp. 2023, 2025
|
|
@@ -80,6 +79,5 @@ SwitcherItem.propTypes = {
|
|
|
80
79
|
target: PropTypes.string,
|
|
81
80
|
rel: PropTypes.string
|
|
82
81
|
};
|
|
83
|
-
|
|
84
82
|
//#endregion
|
|
85
|
-
export { SwitcherItem as default };
|
|
83
|
+
export { SwitcherItem as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import classNames from "classnames";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/UnorderedList/UnorderedList.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -34,6 +33,5 @@ UnorderedList.propTypes = {
|
|
|
34
33
|
isExpressive: PropTypes.bool,
|
|
35
34
|
nested: PropTypes.bool
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
|
-
export { UnorderedList as default };
|
|
37
|
+
export { UnorderedList as default };
|
package/es/feature-flags.js
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { merge } from "@carbon/feature-flags";
|
|
9
|
-
|
|
10
9
|
//#region src/feature-flags.js
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -24,5 +23,4 @@ merge({
|
|
|
24
23
|
"enable-v12-structured-list-visible-icons": false,
|
|
25
24
|
"enable-v12-dynamic-floating-styles": false
|
|
26
25
|
});
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
26
|
+
//#endregion
|
package/es/index.js
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
"use client";
|
|
10
9
|
import "./feature-flags.js";
|
|
11
10
|
import { PrefixContext, usePrefix } from "./internal/usePrefix.js";
|
|
12
11
|
import Accordion from "./components/Accordion/Accordion.js";
|
|
@@ -242,7 +241,6 @@ import AISkeletonPlaceholder from "./components/AISkeleton/AISkeletonPlaceholder
|
|
|
242
241
|
import AISkeletonIcon from "./components/AISkeleton/AISkeletonIcon.js";
|
|
243
242
|
import AISkeletonText from "./components/AISkeleton/AISkeletonText.js";
|
|
244
243
|
import { GlobalTheme, Theme, ThemeContext, usePrefersDarkScheme, useTheme } from "./components/Theme/index.js";
|
|
245
|
-
|
|
246
244
|
//#region src/index.ts
|
|
247
245
|
/**
|
|
248
246
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -250,6 +248,5 @@ import { GlobalTheme, Theme, ThemeContext, usePrefersDarkScheme, useTheme } from
|
|
|
250
248
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
251
249
|
* LICENSE file in the root directory of this source tree.
|
|
252
250
|
*/
|
|
253
|
-
|
|
254
251
|
//#endregion
|
|
255
|
-
export { AILabel, AILabelActions, AILabelContent, AISkeletonIcon, AISkeletonPlaceholder, AISkeletonText, Accordion, AccordionItem, AccordionSkeleton, ActionableNotification, AspectRatio, Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton, Button, ButtonKinds, ButtonSet, ButtonSizes, ButtonSkeleton, ButtonTooltipAlignments, ButtonTooltipPositions, Callout, Checkbox, CheckboxGroup, CheckboxSkeleton, ClassPrefix, ClickableTile, CodeSnippet, CodeSnippetSkeleton, Column, ColumnHangComponent as ColumnHang, ComboBox, ComboButton, ComposedModal, ComposedModalPresence, ContainedList, ContainedListItem_default as ContainedListItem, Content, ContentSwitcher, ControlledPasswordInput, Copy, CopyButton, DangerButton, DataTable, DataTableSkeleton, DatePicker, DatePickerInput, DatePickerSkeleton, DefinitionTooltip, DismissibleTag, Dropdown, DropdownSkeleton, ErrorBoundary, ErrorBoundaryContext, ExpandableSearch, ExpandableTile, FeatureFlags, FileUploader, FileUploaderButton, FileUploaderDropContainer, FileUploaderItem, FileUploaderSkeleton, Filename, FilterableMultiSelect, FlexGridComponent as FlexGrid, FluidComboBox, FluidComboBoxSkeleton, FluidDatePicker, FluidDatePickerInput, FluidDatePickerSkeleton, FluidDropdown, FluidDropdownSkeleton, FluidForm, FluidMultiSelect, FluidMultiSelectSkeleton, FluidNumberInput, FluidNumberInputSkeleton, FluidPasswordInput, FluidSearch, FluidSearchSkeleton, FluidSelect, FluidSelectSkeleton, FluidTextArea, FluidTextAreaSkeleton, FluidTextInput, FluidTextInputSkeleton, FluidTimePicker, FluidTimePickerSelect, FluidTimePickerSkeleton, Form, FormContext, FormGroup, FormItem, FormLabel, GlobalTheme, GridAsGridComponent as Grid, GridSettings, HStack, Header, HeaderContainer, HeaderGlobalAction, HeaderGlobalBar, HeaderMenu, HeaderMenuButton, HeaderMenuItem, HeaderName, HeaderNavigation, HeaderPanel, HeaderSideNavItems, Heading, IconButton, IconButtonKinds, IconSkeleton, IconSwitch, IconTab, IdPrefix, InlineLoading, InlineNotification, Layer, Link, ListItem, Loading, Menu, MenuButton, MenuItem, MenuItemDivider, MenuItemGroup, MenuItemRadioGroup, MenuItemSelectable, Modal, ModalBody, ModalFooter, ModalHeader, ModalPresence, ModalWrapper, MultiSelect, NotificationActionButton, NotificationButton, NumberInput, NumberInputSkeleton, OperationalTag, OrderedList, OverflowMenu, OverflowMenuItem, Pagination, PaginationNav, PaginationSkeleton, PasswordInput, Popover, PopoverContent, PrefixContext, PrimaryButton, ProgressBar, ProgressIndicator, ProgressIndicatorSkeleton, ProgressStep, RadioButton, RadioButtonGroup, RadioButtonSkeleton, RadioTile, Row, Search, SearchSkeleton, SecondaryButton, Section, Select, SelectItem, SelectItemGroup, SelectSkeleton, SelectableTag, SelectableTile, SideNav, SideNavDetails, SideNavDivider, SideNavFooter, SideNavHeader, SideNavIcon, SideNavItem, SideNavItems, SideNavLink, SideNavLinkText, SideNavMenu, SideNavMenuItem, SideNavSwitcher, SkeletonIcon, SkeletonPlaceholder, SkeletonText, SkipToContent, Slider, SliderSkeleton, Stack, StaticNotification, StructuredListBody, StructuredListCell, StructuredListHead, StructuredListInput, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, Switch, Switcher, SwitcherDivider, SwitcherItem, Tab, TabContent, TabList, TabListVertical, TabPanel, TabPanels, Table, TableActionList, TableBatchAction, TableBatchActions, TableBody, TableCell, TableContainer, TableDecoratorRow, TableExpandHeader, TableExpandRow, TableExpandedRow, TableHead, TableHeader, TableRow, TableSelectAll, TableSelectRow, TableSlugRow, TableToolbar, TableToolbarAction, TableToolbarContent, TableToolbarMenu, TableToolbarSearch, Tabs, TabsSkeleton, TabsVertical, Tag, TagSkeleton, TextArea, TextAreaSkeleton, TextInput, TextInputSkeleton, Theme, ThemeContext, Tile, TileAboveTheFoldContent, TileBelowTheFoldContent, TileGroup, TimePicker, TimePickerSelect, ToastNotification, Toggle, ToggleSkeleton, ToggleSmallSkeleton, Toggletip, ToggletipActions, ToggletipButton, ToggletipContent, ToggletipLabel, Tooltip, TreeNode, TreeView, UnorderedList, VStack, FeatureFlags as preview_FeatureFlags, Layout as preview_Layout, LayoutDirection as preview_LayoutDirection, OverflowMenuV2 as preview_OverflowMenuV2, PageSelector as preview_PageSelector, Pagination$1 as preview_Pagination, Text as preview_Text, TextDirection as preview_TextDirection, AISkeletonIcon as preview__AiSkeletonIcon, AISkeletonPlaceholder as preview__AiSkeletonPlaceholder, AISkeletonText as preview__AiSkeletonText, ChatButton as preview__ChatButton, ChatButtonSkeleton as preview__ChatButtonSkeleton, Dialog_exports as preview__Dialog, FluidComboBox as preview__FluidComboBox, FluidComboBoxSkeleton as preview__FluidComboBoxSkeleton, FluidDatePicker as preview__FluidDatePicker, FluidDatePickerInput as preview__FluidDatePickerInput, FluidDatePickerSkeleton as preview__FluidDatePickerSkeleton, FluidDropdown as preview__FluidDropdown, FluidDropdownSkeleton as preview__FluidDropdownSkeleton, FluidMultiSelect as preview__FluidMultiSelect, FluidMultiSelectSkeleton as preview__FluidMultiSelectSkeleton, FluidNumberInput as preview__FluidNumberInput, FluidNumberInputSkeleton as preview__FluidNumberInputSkeleton, FluidSearch as preview__FluidSearch, FluidSearchSkeleton as preview__FluidSearchSkeleton, FluidSelect as preview__FluidSelect, FluidSelectSkeleton as preview__FluidSelectSkeleton, FluidTextArea as preview__FluidTextArea, FluidTextAreaSkeleton as preview__FluidTextAreaSkeleton, FluidTextInput as preview__FluidTextInput, FluidTextInputSkeleton as preview__FluidTextInputSkeleton, FluidTimePicker as preview__FluidTimePicker, FluidTimePickerSelect as preview__FluidTimePickerSelect, FluidTimePickerSkeleton as preview__FluidTimePickerSkeleton, IconIndicator as preview__IconIndicator, PageHeader_exports as preview__PageHeader, ShapeIndicator as preview__ShapeIndicator, AILabel as preview__Slug, AILabelActions as preview__SlugActions, AILabelContent as preview__SlugContent, useFeatureFlag as preview_useFeatureFlag, useFeatureFlags as preview_useFeatureFlags, useLayoutDirection as preview_useLayoutDirection, FeatureFlags as unstable_FeatureFlags, Layout as unstable_Layout, LayoutDirection as unstable_LayoutDirection, OverflowMenuV2 as unstable_OverflowMenuV2, PageSelector as unstable_PageSelector, Pagination$1 as unstable_Pagination, Text as unstable_Text, TextDirection as unstable_TextDirection, AISkeletonIcon as unstable__AiSkeletonIcon, AISkeletonPlaceholder as unstable__AiSkeletonPlaceholder, AISkeletonText as unstable__AiSkeletonText, ChatButton as unstable__ChatButton, ChatButtonSkeleton as unstable__ChatButtonSkeleton, FluidComboBox as unstable__FluidComboBox, FluidComboBoxSkeleton as unstable__FluidComboBoxSkeleton, FluidDatePicker as unstable__FluidDatePicker, FluidDatePickerInput as unstable__FluidDatePickerInput, FluidDatePickerSkeleton as unstable__FluidDatePickerSkeleton, FluidDropdown as unstable__FluidDropdown, FluidDropdownSkeleton as unstable__FluidDropdownSkeleton, FluidMultiSelect as unstable__FluidMultiSelect, FluidMultiSelectSkeleton as unstable__FluidMultiSelectSkeleton, FluidNumberInput as unstable__FluidNumberInput, FluidNumberInputSkeleton as unstable__FluidNumberInputSkeleton, FluidSearch as unstable__FluidSearch, FluidSearchSkeleton as unstable__FluidSearchSkeleton, FluidSelect as unstable__FluidSelect, FluidSelectSkeleton as unstable__FluidSelectSkeleton, FluidTextArea as unstable__FluidTextArea, FluidTextAreaSkeleton as unstable__FluidTextAreaSkeleton, FluidTextInput as unstable__FluidTextInput, FluidTextInputSkeleton as unstable__FluidTextInputSkeleton, FluidTimePicker as unstable__FluidTimePicker, FluidTimePickerSelect as unstable__FluidTimePickerSelect, FluidTimePickerSkeleton as unstable__FluidTimePickerSkeleton, IconIndicator as unstable__IconIndicator, PageHeader_exports as unstable__PageHeader, ShapeIndicator as unstable__ShapeIndicator, AILabel as unstable__Slug, AILabelActions as unstable__SlugActions, AILabelContent as unstable__SlugContent, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, useLayoutDirection as unstable_useLayoutDirection, useContextMenu, useFeatureFlag, useFeatureFlags, useIdPrefix, useLayer, usePrefersDarkScheme, usePrefix, useTheme, validateNumberSeparators, withComposedModalPresence, withModalPresence };
|
|
252
|
+
export { AILabel, AILabelActions, AILabelContent, AISkeletonIcon, AISkeletonPlaceholder, AISkeletonText, Accordion, AccordionItem, AccordionSkeleton, ActionableNotification, AspectRatio, Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton, Button, ButtonKinds, ButtonSet, ButtonSizes, ButtonSkeleton, ButtonTooltipAlignments, ButtonTooltipPositions, Callout, Checkbox, CheckboxGroup, CheckboxSkeleton, ClassPrefix, ClickableTile, CodeSnippet, CodeSnippetSkeleton, Column, ColumnHangComponent as ColumnHang, ComboBox, ComboButton, ComposedModal, ComposedModalPresence, ContainedList, ContainedListItem_default as ContainedListItem, Content, ContentSwitcher, ControlledPasswordInput, Copy, CopyButton, DangerButton, DataTable, DataTableSkeleton, DatePicker, DatePickerInput, DatePickerSkeleton, DefinitionTooltip, DismissibleTag, Dropdown, DropdownSkeleton, ErrorBoundary, ErrorBoundaryContext, ExpandableSearch, ExpandableTile, FeatureFlags, FileUploader, FileUploaderButton, FileUploaderDropContainer, FileUploaderItem, FileUploaderSkeleton, Filename, FilterableMultiSelect, FlexGridComponent as FlexGrid, FluidComboBox, FluidComboBoxSkeleton, FluidDatePicker, FluidDatePickerInput, FluidDatePickerSkeleton, FluidDropdown, FluidDropdownSkeleton, FluidForm, FluidMultiSelect, FluidMultiSelectSkeleton, FluidNumberInput, FluidNumberInputSkeleton, FluidPasswordInput, FluidSearch, FluidSearchSkeleton, FluidSelect, FluidSelectSkeleton, FluidTextArea, FluidTextAreaSkeleton, FluidTextInput, FluidTextInputSkeleton, FluidTimePicker, FluidTimePickerSelect, FluidTimePickerSkeleton, Form, FormContext, FormGroup, FormItem, FormLabel, GlobalTheme, GridAsGridComponent as Grid, GridSettings, HStack, Header, HeaderContainer, HeaderGlobalAction, HeaderGlobalBar, HeaderMenu, HeaderMenuButton, HeaderMenuItem, HeaderName, HeaderNavigation, HeaderPanel, HeaderSideNavItems, Heading, IconButton, IconButtonKinds, IconSkeleton, IconSwitch, IconTab, IdPrefix, InlineLoading, InlineNotification, Layer, Link, ListItem, Loading, Menu, MenuButton, MenuItem, MenuItemDivider, MenuItemGroup, MenuItemRadioGroup, MenuItemSelectable, Modal, ModalBody, ModalFooter, ModalHeader, ModalPresence, ModalWrapper, MultiSelect, NotificationActionButton, NotificationButton, NumberInput, NumberInputSkeleton, OperationalTag, OrderedList, OverflowMenu, OverflowMenuItem, Pagination, PaginationNav, PaginationSkeleton, PasswordInput, Popover, PopoverContent, PrefixContext, PrimaryButton, ProgressBar, ProgressIndicator, ProgressIndicatorSkeleton, ProgressStep, RadioButton, RadioButtonGroup, RadioButtonSkeleton, RadioTile, Row, Search, SearchSkeleton, SecondaryButton, Section, Select, SelectItem, SelectItemGroup, SelectSkeleton, SelectableTag, SelectableTile, SideNav, SideNavDetails, SideNavDivider, SideNavFooter, SideNavHeader, SideNavIcon, SideNavItem, SideNavItems, SideNavLink, SideNavLinkText, SideNavMenu, SideNavMenuItem, SideNavSwitcher, SkeletonIcon, SkeletonPlaceholder, SkeletonText, SkipToContent, Slider, SliderSkeleton, Stack, StaticNotification, StructuredListBody, StructuredListCell, StructuredListHead, StructuredListInput, StructuredListRow, StructuredListSkeleton, StructuredListWrapper, Switch, Switcher, SwitcherDivider, SwitcherItem, Tab, TabContent, TabList, TabListVertical, TabPanel, TabPanels, Table, TableActionList, TableBatchAction, TableBatchActions, TableBody, TableCell, TableContainer, TableDecoratorRow, TableExpandHeader, TableExpandRow, TableExpandedRow, TableHead, TableHeader, TableRow, TableSelectAll, TableSelectRow, TableSlugRow, TableToolbar, TableToolbarAction, TableToolbarContent, TableToolbarMenu, TableToolbarSearch, Tabs, TabsSkeleton, TabsVertical, Tag, TagSkeleton, TextArea, TextAreaSkeleton, TextInput, TextInputSkeleton, Theme, ThemeContext, Tile, TileAboveTheFoldContent, TileBelowTheFoldContent, TileGroup, TimePicker, TimePickerSelect, ToastNotification, Toggle, ToggleSkeleton, ToggleSmallSkeleton, Toggletip, ToggletipActions, ToggletipButton, ToggletipContent, ToggletipLabel, Tooltip, TreeNode, TreeView, UnorderedList, VStack, FeatureFlags as preview_FeatureFlags, Layout as preview_Layout, LayoutDirection as preview_LayoutDirection, OverflowMenuV2 as preview_OverflowMenuV2, PageSelector as preview_PageSelector, Pagination$1 as preview_Pagination, Text as preview_Text, TextDirection as preview_TextDirection, AISkeletonIcon as preview__AiSkeletonIcon, AISkeletonPlaceholder as preview__AiSkeletonPlaceholder, AISkeletonText as preview__AiSkeletonText, ChatButton as preview__ChatButton, ChatButtonSkeleton as preview__ChatButtonSkeleton, Dialog_exports as preview__Dialog, FluidComboBox as preview__FluidComboBox, FluidComboBoxSkeleton as preview__FluidComboBoxSkeleton, FluidDatePicker as preview__FluidDatePicker, FluidDatePickerInput as preview__FluidDatePickerInput, FluidDatePickerSkeleton as preview__FluidDatePickerSkeleton, FluidDropdown as preview__FluidDropdown, FluidDropdownSkeleton as preview__FluidDropdownSkeleton, FluidMultiSelect as preview__FluidMultiSelect, FluidMultiSelectSkeleton as preview__FluidMultiSelectSkeleton, FluidNumberInput as preview__FluidNumberInput, FluidNumberInputSkeleton as preview__FluidNumberInputSkeleton, FluidSearch as preview__FluidSearch, FluidSearchSkeleton as preview__FluidSearchSkeleton, FluidSelect as preview__FluidSelect, FluidSelectSkeleton as preview__FluidSelectSkeleton, FluidTextArea as preview__FluidTextArea, FluidTextAreaSkeleton as preview__FluidTextAreaSkeleton, FluidTextInput as preview__FluidTextInput, FluidTextInputSkeleton as preview__FluidTextInputSkeleton, FluidTimePicker as preview__FluidTimePicker, FluidTimePickerSelect as preview__FluidTimePickerSelect, FluidTimePickerSkeleton as preview__FluidTimePickerSkeleton, IconIndicator as preview__IconIndicator, PageHeader_exports as preview__PageHeader, ShapeIndicator as preview__ShapeIndicator, AILabel as preview__Slug, AILabelActions as preview__SlugActions, AILabelContent as preview__SlugContent, useFeatureFlag as preview_useFeatureFlag, useFeatureFlags as preview_useFeatureFlags, useLayoutDirection as preview_useLayoutDirection, FeatureFlags as unstable_FeatureFlags, Layout as unstable_Layout, LayoutDirection as unstable_LayoutDirection, OverflowMenuV2 as unstable_OverflowMenuV2, PageSelector as unstable_PageSelector, Pagination$1 as unstable_Pagination, Text as unstable_Text, TextDirection as unstable_TextDirection, AISkeletonIcon as unstable__AiSkeletonIcon, AISkeletonPlaceholder as unstable__AiSkeletonPlaceholder, AISkeletonText as unstable__AiSkeletonText, ChatButton as unstable__ChatButton, ChatButtonSkeleton as unstable__ChatButtonSkeleton, FluidComboBox as unstable__FluidComboBox, FluidComboBoxSkeleton as unstable__FluidComboBoxSkeleton, FluidDatePicker as unstable__FluidDatePicker, FluidDatePickerInput as unstable__FluidDatePickerInput, FluidDatePickerSkeleton as unstable__FluidDatePickerSkeleton, FluidDropdown as unstable__FluidDropdown, FluidDropdownSkeleton as unstable__FluidDropdownSkeleton, FluidMultiSelect as unstable__FluidMultiSelect, FluidMultiSelectSkeleton as unstable__FluidMultiSelectSkeleton, FluidNumberInput as unstable__FluidNumberInput, FluidNumberInputSkeleton as unstable__FluidNumberInputSkeleton, FluidSearch as unstable__FluidSearch, FluidSearchSkeleton as unstable__FluidSearchSkeleton, FluidSelect as unstable__FluidSelect, FluidSelectSkeleton as unstable__FluidSelectSkeleton, FluidTextArea as unstable__FluidTextArea, FluidTextAreaSkeleton as unstable__FluidTextAreaSkeleton, FluidTextInput as unstable__FluidTextInput, FluidTextInputSkeleton as unstable__FluidTextInputSkeleton, FluidTimePicker as unstable__FluidTimePicker, FluidTimePickerSelect as unstable__FluidTimePickerSelect, FluidTimePickerSkeleton as unstable__FluidTimePickerSkeleton, IconIndicator as unstable__IconIndicator, PageHeader_exports as unstable__PageHeader, ShapeIndicator as unstable__ShapeIndicator, AILabel as unstable__Slug, AILabelActions as unstable__SlugActions, AILabelContent as unstable__SlugContent, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags, useLayoutDirection as unstable_useLayoutDirection, useContextMenu, useFeatureFlag, useFeatureFlags, useIdPrefix, useLayer, usePrefersDarkScheme, usePrefix, useTheme, validateNumberSeparators, withComposedModalPresence, withModalPresence };
|
|
@@ -13,10 +13,9 @@ import { warning } from "./warning.js";
|
|
|
13
13
|
import { wrapFocus, wrapFocusWithoutSentinels } from "./wrapFocus.js";
|
|
14
14
|
import { OptimizedResize } from "./OptimizedResize.js";
|
|
15
15
|
import { enabled } from "@carbon/feature-flags";
|
|
16
|
-
import
|
|
16
|
+
import { cloneElement, useCallback, useContext, useEffect, useRef, useState } from "react";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
import ReactDOM from "react-dom";
|
|
19
|
-
|
|
20
19
|
//#region src/internal/FloatingMenu.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -25,7 +24,6 @@ import ReactDOM from "react-dom";
|
|
|
25
24
|
* LICENSE file in the root directory of this source tree.
|
|
26
25
|
*/
|
|
27
26
|
const DIRECTION_LEFT = "left";
|
|
28
|
-
const DIRECTION_TOP = "top";
|
|
29
27
|
const DIRECTION_RIGHT = "right";
|
|
30
28
|
const DIRECTION_BOTTOM = "bottom";
|
|
31
29
|
/**
|
|
@@ -49,7 +47,7 @@ const getFloatingPosition = ({ menuSize, refPosition, offset, direction, scrollX
|
|
|
49
47
|
left: refLeft - width + effectiveScrollX - left - relativeDiff.left,
|
|
50
48
|
top: refCenterVertical - height / 2 + effectiveScrollY + top - 9 - relativeDiff.top
|
|
51
49
|
}),
|
|
52
|
-
[
|
|
50
|
+
["top"]: () => ({
|
|
53
51
|
left: refCenterHorizontal - width / 2 + effectiveScrollX + left - relativeDiff.left,
|
|
54
52
|
top: refTop - height + effectiveScrollY - top - relativeDiff.top
|
|
55
53
|
}),
|
|
@@ -252,6 +250,5 @@ const FloatingMenu = ({ children, flipped, focusTrap, menuDirection = DIRECTION_
|
|
|
252
250
|
}
|
|
253
251
|
return null;
|
|
254
252
|
};
|
|
255
|
-
|
|
256
253
|
//#endregion
|
|
257
|
-
export { DIRECTION_BOTTOM,
|
|
254
|
+
export { DIRECTION_BOTTOM, FloatingMenu };
|
package/es/internal/Selection.js
CHANGED
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
9
|
+
import "react/jsx-runtime";
|
|
10
10
|
import isEqual from "react-fast-compare";
|
|
11
|
-
|
|
12
11
|
//#region src/internal/Selection.tsx
|
|
13
12
|
/**
|
|
14
13
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -107,6 +106,5 @@ const removeAtIndex = (array, index) => {
|
|
|
107
106
|
result.splice(index, 1);
|
|
108
107
|
return result;
|
|
109
108
|
};
|
|
110
|
-
|
|
111
109
|
//#endregion
|
|
112
|
-
export { useSelection };
|
|
110
|
+
export { useSelection };
|
package/es/internal/clamp.js
CHANGED