@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
|
@@ -9,14 +9,14 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import { useId } from "../../internal/useId.js";
|
|
10
10
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
11
11
|
import { isComponentElement } from "../../internal/utils.js";
|
|
12
|
+
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
12
13
|
import { AILabel } from "../AILabel/index.js";
|
|
13
14
|
import Checkbox$1 from "../Checkbox/Checkbox.js";
|
|
14
15
|
import classNames from "classnames";
|
|
15
|
-
import
|
|
16
|
+
import { Children, cloneElement } from "react";
|
|
16
17
|
import PropTypes from "prop-types";
|
|
17
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
19
|
import { WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
19
|
-
|
|
20
20
|
//#region src/components/CheckboxGroup/CheckboxGroup.tsx
|
|
21
21
|
/**
|
|
22
22
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -24,11 +24,20 @@ import { WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
|
24
24
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
26
|
*/
|
|
27
|
-
const CheckboxGroup = ({ children, className, decorator, helperText, invalid, invalidText, legendId, legendText, readOnly, warn, warnText, slug, orientation = "vertical", ...rest }) => {
|
|
27
|
+
const CheckboxGroup = ({ children, className, decorator, helperText, invalid, invalidText, legendId, legendText, readOnly, disabled, warn, warnText, slug, orientation = "vertical", ...rest }) => {
|
|
28
28
|
const prefix = usePrefix();
|
|
29
|
-
const showWarning = !readOnly && !invalid && warn;
|
|
30
|
-
const showHelper = !invalid && !warn;
|
|
31
29
|
const checkboxGroupInstanceId = useId();
|
|
30
|
+
const normalizedProps = useNormalizedInputProps({
|
|
31
|
+
id: `checkbox-group-${checkboxGroupInstanceId}`,
|
|
32
|
+
readOnly,
|
|
33
|
+
disabled: disabled ?? false,
|
|
34
|
+
invalid: invalid ?? false,
|
|
35
|
+
invalidText,
|
|
36
|
+
warn: warn ?? false,
|
|
37
|
+
warnText
|
|
38
|
+
});
|
|
39
|
+
const showWarning = normalizedProps.warn;
|
|
40
|
+
const showHelper = !normalizedProps.invalid && !normalizedProps.warn;
|
|
32
41
|
const hasHelper = typeof helperText !== "undefined" && helperText !== null;
|
|
33
42
|
const helperId = !hasHelper ? void 0 : `checkbox-group-helper-text-${checkboxGroupInstanceId}`;
|
|
34
43
|
const helper = hasHelper && /* @__PURE__ */ jsx("div", {
|
|
@@ -39,7 +48,7 @@ const CheckboxGroup = ({ children, className, decorator, helperText, invalid, in
|
|
|
39
48
|
const fieldsetClasses = classNames(`${prefix}--checkbox-group`, className, {
|
|
40
49
|
[`${prefix}--checkbox-group--${orientation}`]: orientation === "horizontal",
|
|
41
50
|
[`${prefix}--checkbox-group--readonly`]: readOnly,
|
|
42
|
-
[`${prefix}--checkbox-group--invalid`]:
|
|
51
|
+
[`${prefix}--checkbox-group--invalid`]: normalizedProps.invalid,
|
|
43
52
|
[`${prefix}--checkbox-group--warning`]: showWarning,
|
|
44
53
|
[`${prefix}--checkbox-group--slug`]: slug,
|
|
45
54
|
[`${prefix}--checkbox-group--decorator`]: decorator
|
|
@@ -52,9 +61,10 @@ const CheckboxGroup = ({ children, className, decorator, helperText, invalid, in
|
|
|
52
61
|
const clonedChildren = Children.map(children, (child) => {
|
|
53
62
|
if (isComponentElement(child, Checkbox$1)) {
|
|
54
63
|
const childProps = {
|
|
55
|
-
...typeof invalid !== "undefined" && typeof child.props.invalid === "undefined" ? { invalid } : {},
|
|
64
|
+
...typeof invalid !== "undefined" && typeof child.props.invalid === "undefined" ? { invalid: normalizedProps.invalid } : {},
|
|
56
65
|
...typeof readOnly !== "undefined" && typeof child.props.readOnly === "undefined" ? { readOnly } : {},
|
|
57
|
-
...typeof warn !== "undefined" && typeof child.props.warn === "undefined" ? { warn } : {}
|
|
66
|
+
...typeof warn !== "undefined" && typeof child.props.warn === "undefined" ? { warn: normalizedProps.warn } : {},
|
|
67
|
+
...typeof disabled !== "undefined" && typeof child.props.disabled === "undefined" ? { disabled } : {}
|
|
58
68
|
};
|
|
59
69
|
return Object.keys(childProps).length ? cloneElement(child, childProps) : child;
|
|
60
70
|
}
|
|
@@ -62,10 +72,12 @@ const CheckboxGroup = ({ children, className, decorator, helperText, invalid, in
|
|
|
62
72
|
});
|
|
63
73
|
return /* @__PURE__ */ jsxs("fieldset", {
|
|
64
74
|
className: fieldsetClasses,
|
|
65
|
-
|
|
75
|
+
disabled,
|
|
76
|
+
"data-invalid": normalizedProps.invalid ? true : void 0,
|
|
66
77
|
"aria-labelledby": rest["aria-labelledby"] || legendId,
|
|
67
78
|
"aria-readonly": readOnly,
|
|
68
|
-
"aria-
|
|
79
|
+
"aria-disabled": disabled,
|
|
80
|
+
"aria-describedby": !normalizedProps.invalid && !normalizedProps.warn && helper ? helperId : void 0,
|
|
69
81
|
...rest,
|
|
70
82
|
children: [
|
|
71
83
|
/* @__PURE__ */ jsxs("legend", {
|
|
@@ -79,7 +91,7 @@ const CheckboxGroup = ({ children, className, decorator, helperText, invalid, in
|
|
|
79
91
|
clonedChildren,
|
|
80
92
|
/* @__PURE__ */ jsxs("div", {
|
|
81
93
|
className: `${prefix}--checkbox-group__validation-msg`,
|
|
82
|
-
children: [
|
|
94
|
+
children: [normalizedProps.invalid && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(WarningFilled, { className: `${prefix}--checkbox__invalid-icon` }), /* @__PURE__ */ jsx("div", {
|
|
83
95
|
className: `${prefix}--form-requirement`,
|
|
84
96
|
children: invalidText
|
|
85
97
|
})] }), showWarning && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(WarningAltFilled, { className: `${prefix}--checkbox__invalid-icon ${prefix}--checkbox__invalid-icon--warning` }), /* @__PURE__ */ jsx("div", {
|
|
@@ -106,6 +118,5 @@ CheckboxGroup.propTypes = {
|
|
|
106
118
|
warn: PropTypes.bool,
|
|
107
119
|
warnText: PropTypes.node
|
|
108
120
|
};
|
|
109
|
-
|
|
110
121
|
//#endregion
|
|
111
|
-
export { CheckboxGroup as default };
|
|
122
|
+
export { CheckboxGroup as default };
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { PrefixContext } from "../../internal/usePrefix.js";
|
|
9
|
-
import
|
|
9
|
+
import "react";
|
|
10
10
|
import PropTypes from "prop-types";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
//#region src/components/ClassPrefix/index.tsx
|
|
14
13
|
/**
|
|
15
14
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -27,6 +26,5 @@ ClassPrefix.propTypes = {
|
|
|
27
26
|
children: PropTypes.node,
|
|
28
27
|
prefix: PropTypes.string.isRequired
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
|
-
export { ClassPrefix };
|
|
30
|
+
export { ClassPrefix };
|
|
@@ -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/CodeSnippet/CodeSnippet.Skeleton.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -51,6 +50,5 @@ CodeSnippetSkeleton.propTypes = {
|
|
|
51
50
|
className: PropTypes.string,
|
|
52
51
|
type: PropTypes.oneOf(["single", "multi"])
|
|
53
52
|
};
|
|
54
|
-
|
|
55
53
|
//#endregion
|
|
56
|
-
export { CodeSnippetSkeleton as default };
|
|
54
|
+
export { CodeSnippetSkeleton as default };
|
|
@@ -15,12 +15,11 @@ import { useResizeObserver } from "../../internal/useResizeObserver.js";
|
|
|
15
15
|
import Copy_default from "../Copy/index.js";
|
|
16
16
|
import CopyButton_default from "../CopyButton/index.js";
|
|
17
17
|
import classNames from "classnames";
|
|
18
|
-
import
|
|
18
|
+
import { useCallback, useRef, useState } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { ChevronDown } from "@carbon/icons-react";
|
|
22
22
|
import copy from "copy-to-clipboard";
|
|
23
|
-
|
|
24
23
|
//#region src/components/CodeSnippet/CodeSnippet.tsx
|
|
25
24
|
/**
|
|
26
25
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -221,6 +220,5 @@ CodeSnippet.propTypes = {
|
|
|
221
220
|
]),
|
|
222
221
|
wrapText: PropTypes.bool
|
|
223
222
|
};
|
|
224
|
-
|
|
225
223
|
//#endregion
|
|
226
|
-
export { CodeSnippet as default };
|
|
224
|
+
export { CodeSnippet as default };
|
|
@@ -14,6 +14,7 @@ import { deprecate } from "../../prop-types/deprecate.js";
|
|
|
14
14
|
import { defaultItemToString } from "../../internal/defaultItemToString.js";
|
|
15
15
|
import { isComponentElement } from "../../internal/utils.js";
|
|
16
16
|
import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
17
|
+
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
17
18
|
import { AILabel } from "../AILabel/index.js";
|
|
18
19
|
import { ListBoxSizePropType } from "../ListBox/ListBoxPropTypes.js";
|
|
19
20
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
@@ -21,16 +22,14 @@ import ListBox from "../ListBox/index.js";
|
|
|
21
22
|
import ListBoxSelection from "../ListBox/next/ListBoxSelection.js";
|
|
22
23
|
import ListBoxTrigger from "../ListBox/next/ListBoxTrigger.js";
|
|
23
24
|
import { mergeRefs } from "../../tools/mergeRefs.js";
|
|
24
|
-
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
25
25
|
import classNames from "classnames";
|
|
26
|
-
import
|
|
26
|
+
import { cloneElement, forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
27
27
|
import PropTypes from "prop-types";
|
|
28
28
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
29
|
import { Checkmark, WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
30
30
|
import { autoUpdate, flip, hide, useFloating } from "@floating-ui/react";
|
|
31
31
|
import { useCombobox } from "downshift";
|
|
32
32
|
import isEqual from "react-fast-compare";
|
|
33
|
-
|
|
34
33
|
//#region src/components/ComboBox/ComboBox.tsx
|
|
35
34
|
/**
|
|
36
35
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -57,7 +56,7 @@ const findHighlightedIndex = ({ items, itemToString = defaultItemToString }, inp
|
|
|
57
56
|
const searchValue = inputValue.toLowerCase();
|
|
58
57
|
for (let i = 0; i < items.length; i++) {
|
|
59
58
|
const item = itemToString(items[i]).toLowerCase();
|
|
60
|
-
if (!items[i]
|
|
59
|
+
if (!isDisabledItem(items[i]) && item.indexOf(searchValue) !== -1) return i;
|
|
61
60
|
}
|
|
62
61
|
return -1;
|
|
63
62
|
};
|
|
@@ -201,7 +200,8 @@ const ComboBox = forwardRef((props, ref) => {
|
|
|
201
200
|
if (!allowCustomValue) {
|
|
202
201
|
const currentInput = state.inputValue ?? "";
|
|
203
202
|
if (!(!!currentInput && items.some((item) => itemToString(item) === currentInput))) {
|
|
204
|
-
const
|
|
203
|
+
const selectedItem = typeof selectedItemProp !== "undefined" ? selectedItemProp : state.selectedItem;
|
|
204
|
+
const restoredInput = selectedItem !== null ? itemToString(selectedItem) : "";
|
|
205
205
|
return {
|
|
206
206
|
...changes,
|
|
207
207
|
inputValue: restoredInput
|
|
@@ -212,7 +212,7 @@ const ComboBox = forwardRef((props, ref) => {
|
|
|
212
212
|
case InputKeyDownEnter:
|
|
213
213
|
if (!allowCustomValue) if (state.highlightedIndex !== -1) {
|
|
214
214
|
const highlightedItem = filterItems(items, itemToString, inputValue)[state.highlightedIndex];
|
|
215
|
-
if (highlightedItem && !highlightedItem
|
|
215
|
+
if (highlightedItem && !isDisabledItem(highlightedItem)) return {
|
|
216
216
|
...changes,
|
|
217
217
|
selectedItem: highlightedItem,
|
|
218
218
|
inputValue: itemToString(highlightedItem)
|
|
@@ -221,7 +221,7 @@ const ComboBox = forwardRef((props, ref) => {
|
|
|
221
221
|
const autoIndex = indexToHighlight(inputValue);
|
|
222
222
|
if (autoIndex !== -1) {
|
|
223
223
|
const matchingItem = items[autoIndex];
|
|
224
|
-
if (matchingItem && !matchingItem
|
|
224
|
+
if (matchingItem && !isDisabledItem(matchingItem)) return {
|
|
225
225
|
...changes,
|
|
226
226
|
selectedItem: matchingItem,
|
|
227
227
|
inputValue: itemToString(matchingItem)
|
|
@@ -242,7 +242,8 @@ const ComboBox = forwardRef((props, ref) => {
|
|
|
242
242
|
if (state.isOpen && !changes.isOpen && !allowCustomValue) {
|
|
243
243
|
const currentInput = state.inputValue ?? "";
|
|
244
244
|
if (!(!!currentInput && items.some((item) => itemToString(item) === currentInput))) {
|
|
245
|
-
const
|
|
245
|
+
const selectedItem = typeof selectedItemProp !== "undefined" ? selectedItemProp : state.selectedItem;
|
|
246
|
+
const restoredInput = selectedItem !== null ? itemToString(selectedItem) : "";
|
|
246
247
|
return {
|
|
247
248
|
...changes,
|
|
248
249
|
inputValue: restoredInput
|
|
@@ -342,9 +343,7 @@ const ComboBox = forwardRef((props, ref) => {
|
|
|
342
343
|
initialSelectedItem,
|
|
343
344
|
inputId: id,
|
|
344
345
|
stateReducer,
|
|
345
|
-
isItemDisabled
|
|
346
|
-
return item?.disabled;
|
|
347
|
-
},
|
|
346
|
+
isItemDisabled: isDisabledItem,
|
|
348
347
|
...downshiftProps,
|
|
349
348
|
onStateChange: ({ type, selectedItem: newSelectedItem }) => {
|
|
350
349
|
downshiftProps?.onStateChange?.({
|
|
@@ -631,6 +630,5 @@ ComboBox.propTypes = {
|
|
|
631
630
|
warnText: PropTypes.node,
|
|
632
631
|
inputProps: PropTypes.object
|
|
633
632
|
};
|
|
634
|
-
|
|
635
633
|
//#endregion
|
|
636
|
-
export { ComboBox as default };
|
|
634
|
+
export { ComboBox as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import ComboBox from "./ComboBox.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/ComboBox/index.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -15,6 +14,5 @@ import ComboBox from "./ComboBox.js";
|
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
16
|
var ComboBox_default = ComboBox;
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { ComboBox_default as default };
|
|
18
|
+
export { ComboBox_default as default };
|
|
@@ -22,7 +22,6 @@ import PropTypes from "prop-types";
|
|
|
22
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
import { ChevronDown } from "@carbon/icons-react";
|
|
24
24
|
import { autoUpdate, flip, hide, size, useFloating } from "@floating-ui/react";
|
|
25
|
-
|
|
26
25
|
//#region src/components/ComboButton/index.tsx
|
|
27
26
|
/**
|
|
28
27
|
* Copyright IBM Corp. 2023, 2026
|
|
@@ -179,6 +178,5 @@ ComboButton.propTypes = {
|
|
|
179
178
|
], mapPopoverAlign),
|
|
180
179
|
translateWithId: PropTypes.func
|
|
181
180
|
};
|
|
182
|
-
|
|
183
181
|
//#endregion
|
|
184
|
-
export { ComboButton };
|
|
182
|
+
export { ComboButton };
|
|
@@ -31,7 +31,6 @@ import React, { Children, cloneElement, useContext, useEffect, useRef } from "re
|
|
|
31
31
|
import PropTypes from "prop-types";
|
|
32
32
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
33
|
import { useMergeRefs } from "@floating-ui/react";
|
|
34
|
-
|
|
35
34
|
//#region src/components/ComposedModal/ComposedModal.tsx
|
|
36
35
|
/**
|
|
37
36
|
* Copyright IBM Corp. 2023, 2026
|
|
@@ -321,6 +320,5 @@ ComposedModal.propTypes = {
|
|
|
321
320
|
]),
|
|
322
321
|
slug: deprecate(PropTypes.node, "The `slug` prop for `ComposedModal` has been deprecated in favor of the new `decorator` prop. It will be removed in the next major release.")
|
|
323
322
|
};
|
|
324
|
-
|
|
325
323
|
//#endregion
|
|
326
|
-
export { ModalBody, ComposedModal as default };
|
|
324
|
+
export { ModalBody, ComposedModal as default };
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePresenceContext } from "../../internal/usePresenceContext.js";
|
|
9
9
|
import { useComposedModalState } from "./useComposedModalState.js";
|
|
10
|
-
import
|
|
10
|
+
import { createContext, useContext, useMemo } from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
12
|
//#region src/components/ComposedModal/ComposedModalPresence.tsx
|
|
14
13
|
/**
|
|
15
14
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -55,6 +54,5 @@ const withComposedModalPresence = (Component) => {
|
|
|
55
54
|
WithComposedModalPresence.displayName = `withComposedModalPresence(${Component.displayName || Component.name || "Component"})`;
|
|
56
55
|
return WithComposedModalPresence;
|
|
57
56
|
};
|
|
58
|
-
|
|
59
57
|
//#endregion
|
|
60
|
-
export { ComposedModalPresence, ComposedModalPresenceContext, useExclusiveComposedModalPresenceContext, withComposedModalPresence };
|
|
58
|
+
export { ComposedModalPresence, ComposedModalPresenceContext, useExclusiveComposedModalPresenceContext, withComposedModalPresence };
|
|
@@ -14,7 +14,6 @@ import classNames from "classnames";
|
|
|
14
14
|
import React from "react";
|
|
15
15
|
import PropTypes from "prop-types";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
|
|
18
17
|
//#region src/components/ComposedModal/ModalFooter.tsx
|
|
19
18
|
/**
|
|
20
19
|
* Copyright IBM Corp. 2023, 2025
|
|
@@ -136,6 +135,5 @@ ModalFooter.propTypes = {
|
|
|
136
135
|
},
|
|
137
136
|
secondaryClassName: PropTypes.string
|
|
138
137
|
};
|
|
139
|
-
|
|
140
138
|
//#endregion
|
|
141
|
-
export { ModalFooter };
|
|
139
|
+
export { ModalFooter };
|
|
@@ -12,7 +12,6 @@ import React from "react";
|
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { Close } from "@carbon/icons-react";
|
|
15
|
-
|
|
16
15
|
//#region src/components/ComposedModal/ModalHeader.tsx
|
|
17
16
|
/**
|
|
18
17
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -77,6 +76,5 @@ ModalHeader.propTypes = {
|
|
|
77
76
|
title: PropTypes.node,
|
|
78
77
|
titleClassName: PropTypes.string
|
|
79
78
|
};
|
|
80
|
-
|
|
81
79
|
//#endregion
|
|
82
|
-
export { ModalHeader };
|
|
80
|
+
export { ModalHeader };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { useEffect, useMemo, useState } from "react";
|
|
9
|
-
|
|
10
9
|
//#region src/components/ComposedModal/useComposedModalState.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -25,6 +24,5 @@ const useComposedModalState = (open) => {
|
|
|
25
24
|
}, [open, wasOpen]);
|
|
26
25
|
return useMemo(() => [isOpen, setIsOpen], [isOpen]);
|
|
27
26
|
};
|
|
28
|
-
|
|
29
27
|
//#endregion
|
|
30
|
-
export { useComposedModalState };
|
|
28
|
+
export { useComposedModalState };
|
|
@@ -13,10 +13,9 @@ import ContainedListItem_default from "./ContainedListItem/index.js";
|
|
|
13
13
|
import Search from "../Search/Search.js";
|
|
14
14
|
import ExpandableSearch_default from "../ExpandableSearch/index.js";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import
|
|
16
|
+
import "react";
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
|
|
20
19
|
//#region src/components/ContainedList/ContainedList.tsx
|
|
21
20
|
const variants = ["on-page", "disclosed"];
|
|
22
21
|
const isSearchComponent = (node) => isComponentElement(node, Search) || isComponentElement(node, ExpandableSearch_default);
|
|
@@ -52,11 +51,21 @@ const ContainedList = ({ action, children, className, isInset, kind = variants[0
|
|
|
52
51
|
className: `${prefix}--contained-list__action`,
|
|
53
52
|
children: action
|
|
54
53
|
})]
|
|
55
|
-
}), children && /* @__PURE__ */ jsx(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
}), children && /* @__PURE__ */ jsx(
|
|
55
|
+
"ul",
|
|
56
|
+
/**
|
|
57
|
+
* Webkit removes implicit "list" semantics when "list-style-type: none" is set.
|
|
58
|
+
* Explicitly setting the "list" role ensures assistive technology in webkit
|
|
59
|
+
* browsers correctly announce the semantics.
|
|
60
|
+
*
|
|
61
|
+
* Ref https://bugs.webkit.org/show_bug.cgi?id=170179#c1
|
|
62
|
+
*/
|
|
63
|
+
{
|
|
64
|
+
role: "list",
|
|
65
|
+
"aria-labelledby": label ? labelId : void 0,
|
|
66
|
+
children: isActionSearch ? filteredChildren : children
|
|
67
|
+
}
|
|
68
|
+
)]
|
|
60
69
|
});
|
|
61
70
|
};
|
|
62
71
|
ContainedList.propTypes = {
|
|
@@ -74,6 +83,5 @@ ContainedList.propTypes = {
|
|
|
74
83
|
])
|
|
75
84
|
};
|
|
76
85
|
Object.assign(ContainedList, { ContainedListItem: ContainedListItem_default });
|
|
77
|
-
|
|
78
86
|
//#endregion
|
|
79
|
-
export { ContainedList as default };
|
|
87
|
+
export { ContainedList as default };
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import { usePrefix } from "../../../internal/usePrefix.js";
|
|
9
9
|
import { LayoutConstraint } from "../../Layout/index.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/ContainedList/ContainedListItem/ContainedListItem.tsx
|
|
16
15
|
const ContainedListItem = ({ action, children, className, disabled = false, onClick, renderIcon: IconElement, ...rest }) => {
|
|
17
16
|
const prefix = usePrefix();
|
|
@@ -55,6 +54,5 @@ ContainedListItem.propTypes = {
|
|
|
55
54
|
onClick: PropTypes.func,
|
|
56
55
|
renderIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
57
56
|
};
|
|
58
|
-
|
|
59
57
|
//#endregion
|
|
60
|
-
export { ContainedListItem as default };
|
|
58
|
+
export { ContainedListItem as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import ContainedListItem from "./ContainedListItem.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/ContainedList/ContainedListItem/index.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2022
|
|
@@ -15,6 +14,5 @@ import ContainedListItem from "./ContainedListItem.js";
|
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
16
|
var ContainedListItem_default = ContainedListItem;
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { ContainedListItem_default as default };
|
|
18
|
+
export { ContainedListItem_default as default };
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { deprecateFieldOnObject } from "../../internal/deprecateFieldOnObject.js";
|
|
9
9
|
import ContainedListItem_default from "./ContainedListItem/index.js";
|
|
10
10
|
import ContainedList from "./ContainedList.js";
|
|
11
|
-
|
|
12
11
|
//#region src/components/ContainedList/index.ts
|
|
13
12
|
/**
|
|
14
13
|
* Copyright IBM Corp. 2022, 2025
|
|
@@ -18,6 +17,5 @@ import ContainedList from "./ContainedList.js";
|
|
|
18
17
|
*/
|
|
19
18
|
deprecateFieldOnObject(ContainedList, "ContainedListItem", ContainedListItem_default);
|
|
20
19
|
var ContainedList_default = ContainedList;
|
|
21
|
-
|
|
22
20
|
//#endregion
|
|
23
|
-
export { ContainedList, ContainedListItem_default as ContainedListItem, ContainedList_default as default };
|
|
21
|
+
export { ContainedList, ContainedListItem_default as ContainedListItem, ContainedList_default as default };
|
|
@@ -15,10 +15,9 @@ import { composeEventHandlers } from "../../tools/events.js";
|
|
|
15
15
|
import { LayoutConstraint } from "../Layout/index.js";
|
|
16
16
|
import IconSwitch from "../Switch/IconSwitch.js";
|
|
17
17
|
import classNames from "classnames";
|
|
18
|
-
import
|
|
18
|
+
import { Children, cloneElement, isValidElement, useContext, useEffect, useRef, useState } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx } from "react/jsx-runtime";
|
|
21
|
-
|
|
22
21
|
//#region src/components/ContentSwitcher/ContentSwitcher.tsx
|
|
23
22
|
/**
|
|
24
23
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -114,6 +113,5 @@ ContentSwitcher.propTypes = {
|
|
|
114
113
|
"lg"
|
|
115
114
|
])
|
|
116
115
|
};
|
|
117
|
-
|
|
118
116
|
//#endregion
|
|
119
|
-
export { ContentSwitcher };
|
|
117
|
+
export { ContentSwitcher };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { useEffect, useState } from "react";
|
|
9
|
-
|
|
10
9
|
//#region src/components/ContextMenu/useContextMenu.tsx
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2020, 2023
|
|
@@ -47,6 +46,5 @@ function useContextMenu(trigger = document) {
|
|
|
47
46
|
onClose
|
|
48
47
|
};
|
|
49
48
|
}
|
|
50
|
-
|
|
51
49
|
//#endregion
|
|
52
|
-
export { useContextMenu as default };
|
|
50
|
+
export { useContextMenu as default };
|
|
@@ -12,11 +12,10 @@ import { mapPopoverAlign } from "../../tools/mapPopoverAlign.js";
|
|
|
12
12
|
import { IconButton } from "../IconButton/index.js";
|
|
13
13
|
import { composeEventHandlers } from "../../tools/events.js";
|
|
14
14
|
import classNames from "classnames";
|
|
15
|
-
import
|
|
15
|
+
import { useCallback, useEffect, useState } from "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
import { debounce } from "es-toolkit/compat";
|
|
19
|
-
|
|
20
19
|
//#region src/components/Copy/Copy.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -103,6 +102,5 @@ Copy.propTypes = {
|
|
|
103
102
|
onAnimationEnd: PropTypes.func,
|
|
104
103
|
onClick: PropTypes.func
|
|
105
104
|
};
|
|
106
|
-
|
|
107
105
|
//#endregion
|
|
108
|
-
export { Copy as default };
|
|
106
|
+
export { Copy as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Copy from "./Copy.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/Copy/index.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -15,6 +14,5 @@ import Copy from "./Copy.js";
|
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
16
|
var Copy_default = Copy;
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { Copy_default as default };
|
|
18
|
+
export { Copy_default as default };
|
|
@@ -12,11 +12,10 @@ import { mapPopoverAlign } from "../../tools/mapPopoverAlign.js";
|
|
|
12
12
|
import Copy_default from "../Copy/index.js";
|
|
13
13
|
import { LayoutConstraint } from "../Layout/index.js";
|
|
14
14
|
import classNames from "classnames";
|
|
15
|
-
import
|
|
15
|
+
import "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
import { Copy } from "@carbon/icons-react";
|
|
19
|
-
|
|
20
19
|
//#region src/components/CopyButton/CopyButton.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -87,6 +86,5 @@ CopyButton.propTypes = {
|
|
|
87
86
|
iconDescription: PropTypes.string,
|
|
88
87
|
onClick: PropTypes.func
|
|
89
88
|
};
|
|
90
|
-
|
|
91
89
|
//#endregion
|
|
92
|
-
export { CopyButton as default };
|
|
90
|
+
export { CopyButton as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import CopyButton from "./CopyButton.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/CopyButton/index.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -15,6 +14,5 @@ import CopyButton from "./CopyButton.js";
|
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
16
|
var CopyButton_default = CopyButton;
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { CopyButton_default as default };
|
|
18
|
+
export { CopyButton_default as default };
|
|
@@ -6,14 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Button_default from "../Button/index.js";
|
|
9
|
-
import
|
|
9
|
+
import "react";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
|
|
12
11
|
//#region src/components/DangerButton/DangerButton.tsx
|
|
13
12
|
const DangerButton = (props) => /* @__PURE__ */ jsx(Button_default, {
|
|
14
13
|
...props,
|
|
15
14
|
kind: "danger"
|
|
16
15
|
});
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
|
-
export { DangerButton as default };
|
|
17
|
+
export { DangerButton as default };
|
|
@@ -38,7 +38,6 @@ import TableToolbarMenu from "./TableToolbarMenu.js";
|
|
|
38
38
|
import { useEffect, useMemo, useState } from "react";
|
|
39
39
|
import PropTypes from "prop-types";
|
|
40
40
|
import isEqual from "react-fast-compare";
|
|
41
|
-
|
|
42
41
|
//#region src/components/DataTable/DataTable.tsx
|
|
43
42
|
/**
|
|
44
43
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -483,6 +482,5 @@ DataTable.propTypes = {
|
|
|
483
482
|
useStaticWidth: PropTypes.bool,
|
|
484
483
|
useZebraStyles: PropTypes.bool
|
|
485
484
|
};
|
|
486
|
-
|
|
487
485
|
//#endregion
|
|
488
|
-
export { DataTable };
|
|
486
|
+
export { DataTable };
|
|
@@ -10,11 +10,10 @@ import useIsomorphicEffect from "../../internal/useIsomorphicEffect.js";
|
|
|
10
10
|
import { useWindowEvent } from "../../internal/useEvent.js";
|
|
11
11
|
import { TableContext } from "./TableContext.js";
|
|
12
12
|
import classNames from "classnames";
|
|
13
|
-
import
|
|
13
|
+
import { useCallback, useContext, useRef } from "react";
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
import { debounce } from "es-toolkit/compat";
|
|
17
|
-
|
|
18
17
|
//#region src/components/DataTable/Table.tsx
|
|
19
18
|
/**
|
|
20
19
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -119,6 +118,5 @@ Table.propTypes = {
|
|
|
119
118
|
useZebraStyles: PropTypes.bool,
|
|
120
119
|
tabIndex: PropTypes.number
|
|
121
120
|
};
|
|
122
|
-
|
|
123
121
|
//#endregion
|
|
124
|
-
export { Table as default };
|
|
122
|
+
export { Table as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import wrapComponent from "../../tools/wrapComponent.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/DataTable/TableActionList.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -19,6 +18,5 @@ const TableActionList = wrapComponent({
|
|
|
19
18
|
type: "div",
|
|
20
19
|
className: (prefix) => `${prefix}--action-list`
|
|
21
20
|
});
|
|
22
|
-
|
|
23
21
|
//#endregion
|
|
24
|
-
export { TableActionList as default };
|
|
22
|
+
export { TableActionList as default };
|