@carbon/react 1.105.0-rc.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 +976 -976
- 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 +5 -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 +15 -9
- 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 +7 -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 +23 -17
- 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 +10 -10
- package/telemetry.yml +1 -2
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import { ArrowDown, ArrowLeft, ArrowRight, Enter } from "../../../internal/keyboard/keys.js";
|
|
9
9
|
import { match } from "../../../internal/keyboard/match.js";
|
|
10
|
-
|
|
11
10
|
//#region src/components/DatePicker/plugins/fixEventsPlugin.ts
|
|
12
11
|
const fixEventsPlugin = (config) => (fp) => {
|
|
13
12
|
const { inputFrom, inputTo, lastStartValue, container } = config;
|
|
@@ -47,8 +46,12 @@ const fixEventsPlugin = (config) => (fp) => {
|
|
|
47
46
|
const { target } = event;
|
|
48
47
|
if (inputFrom === target || inputTo === target) {
|
|
49
48
|
if (match(event, Enter)) {
|
|
49
|
+
mouseDownInside = false;
|
|
50
50
|
fp.setDate(inputTo ? [inputFrom.value, inputTo.value] : [inputFrom.value], true, fp.config.dateFormat);
|
|
51
51
|
event.stopPropagation();
|
|
52
|
+
if (inputTo === target && fp.config.closeOnSelect) requestAnimationFrame(() => {
|
|
53
|
+
fp.close();
|
|
54
|
+
});
|
|
52
55
|
} else if (match(event, ArrowLeft) || match(event, ArrowRight)) event.stopPropagation();
|
|
53
56
|
else if (match(event, ArrowDown)) {
|
|
54
57
|
event.preventDefault();
|
|
@@ -125,6 +128,5 @@ const fixEventsPlugin = (config) => (fp) => {
|
|
|
125
128
|
onDestroy: [release]
|
|
126
129
|
};
|
|
127
130
|
};
|
|
128
|
-
|
|
129
131
|
//#endregion
|
|
130
|
-
export { fixEventsPlugin as default };
|
|
132
|
+
export { fixEventsPlugin as default };
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import { isEmptyDateValue } from "../utils.js";
|
|
9
9
|
import baseRangePlugin from "flatpickr/dist/plugins/rangePlugin";
|
|
10
|
-
|
|
11
10
|
//#region src/components/DatePicker/plugins/rangePlugin.ts
|
|
12
11
|
/**
|
|
13
12
|
* Copyright IBM Corp. 2019, 2026
|
|
@@ -46,6 +45,5 @@ const rangePlugin = (config = {}) => {
|
|
|
46
45
|
});
|
|
47
46
|
};
|
|
48
47
|
};
|
|
49
|
-
|
|
50
48
|
//#endregion
|
|
51
|
-
export { rangePlugin };
|
|
49
|
+
export { rangePlugin };
|
|
@@ -11,15 +11,14 @@ import { useId } from "../../internal/useId.js";
|
|
|
11
11
|
import { warning } from "../../internal/warning.js";
|
|
12
12
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
13
13
|
import { isComponentElement } from "../../internal/utils.js";
|
|
14
|
+
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
14
15
|
import { AILabel } from "../AILabel/index.js";
|
|
15
16
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
16
|
-
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
17
17
|
import classNames from "classnames";
|
|
18
|
-
import
|
|
18
|
+
import { cloneElement, forwardRef, useContext } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { Calendar, WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
22
|
-
|
|
23
22
|
//#region src/components/DatePickerInput/DatePickerInput.tsx
|
|
24
23
|
/**
|
|
25
24
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -188,6 +187,5 @@ DatePickerIcon.propTypes = {
|
|
|
188
187
|
disabled: PropTypes.bool,
|
|
189
188
|
readOnly: PropTypes.bool
|
|
190
189
|
};
|
|
191
|
-
|
|
192
190
|
//#endregion
|
|
193
|
-
export { DatePickerInput as default };
|
|
191
|
+
export { DatePickerInput as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import DatePickerInput from "./DatePickerInput.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/DatePickerInput/index.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -15,6 +14,5 @@ import DatePickerInput from "./DatePickerInput.js";
|
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
16
|
var DatePickerInput_default = DatePickerInput;
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { DatePickerInput_default as default };
|
|
18
|
+
export { DatePickerInput_default as default };
|
|
@@ -60,12 +60,27 @@ interface DialogProps extends HTMLAttributes<HTMLDialogElement> {
|
|
|
60
60
|
/**
|
|
61
61
|
* Specify a label for screen readers
|
|
62
62
|
*/
|
|
63
|
+
'aria-label'?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Specify the ID of an element that labels this dialog
|
|
66
|
+
*/
|
|
67
|
+
'aria-labelledby'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Specify the ID of an element that describes this dialog
|
|
70
|
+
*/
|
|
71
|
+
'aria-describedby'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Use 'aria-label' instead.
|
|
74
|
+
* Specify a label for screen readers
|
|
75
|
+
*/
|
|
63
76
|
ariaLabel?: string;
|
|
64
77
|
/**
|
|
78
|
+
* @deprecated Use 'aria-labelledby' instead.
|
|
65
79
|
* Specify the ID of an element that labels this dialog
|
|
66
80
|
*/
|
|
67
81
|
ariaLabelledBy?: string;
|
|
68
82
|
/**
|
|
83
|
+
* @deprecated Use 'aria-describedby' instead.
|
|
69
84
|
* Specify the ID of an element that describes this dialog
|
|
70
85
|
*/
|
|
71
86
|
ariaDescribedBy?: string;
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { Text } from "../Text/Text.js";
|
|
10
|
-
import useIsomorphicEffect from "../../internal/useIsomorphicEffect.js";
|
|
11
10
|
import { useId } from "../../internal/useId.js";
|
|
12
11
|
import { noopFn } from "../../internal/noopFn.js";
|
|
12
|
+
import { deprecate } from "../../prop-types/deprecate.js";
|
|
13
13
|
import { IconButton } from "../IconButton/index.js";
|
|
14
14
|
import Button_default from "../Button/index.js";
|
|
15
15
|
import ButtonSet_default from "../ButtonSet/index.js";
|
|
16
|
+
import { useResizeObserver } from "../../internal/useResizeObserver.js";
|
|
16
17
|
import { Layer } from "../Layer/index.js";
|
|
17
18
|
import InlineLoading from "../InlineLoading/InlineLoading.js";
|
|
18
19
|
import classNames from "classnames";
|
|
@@ -20,8 +21,6 @@ import React, { createContext, useContext, useEffect, useRef, useState } from "r
|
|
|
20
21
|
import PropTypes from "prop-types";
|
|
21
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
23
|
import { Close } from "@carbon/icons-react";
|
|
23
|
-
import { debounce } from "es-toolkit/compat";
|
|
24
|
-
|
|
25
24
|
//#region src/components/Dialog/Dialog.tsx
|
|
26
25
|
/**
|
|
27
26
|
* Copyright IBM Corp. 2025, 2026
|
|
@@ -30,11 +29,11 @@ import { debounce } from "es-toolkit/compat";
|
|
|
30
29
|
* LICENSE file in the root directory of this source tree.
|
|
31
30
|
*/
|
|
32
31
|
const DialogContext = createContext({});
|
|
33
|
-
const Dialog = React.forwardRef(({ children, className, focusAfterCloseRef, modal, onCancel = noopFn, onClick = noopFn, onClose = noopFn, onRequestClose = noopFn, open = false, role, ariaLabel, ariaLabelledBy, ariaDescribedBy, ...rest }, forwardRef) => {
|
|
32
|
+
const Dialog = React.forwardRef(({ children, className, focusAfterCloseRef, modal, onCancel = noopFn, onClick = noopFn, onClose = noopFn, onRequestClose = noopFn, open = false, role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ariaLabel: deprecatedAriaLabel, ariaLabelledBy: deprecatedAriaLabelledBy, ariaDescribedBy: deprecatedAriaDescribedBy, ...rest }, forwardRef) => {
|
|
34
33
|
const prefix = usePrefix();
|
|
35
34
|
const dialogId = useId();
|
|
36
|
-
const titleId =
|
|
37
|
-
const subtitleId =
|
|
35
|
+
const [titleId, setTitleId] = useState(void 0);
|
|
36
|
+
const [subtitleId, setSubtitleId] = useState(void 0);
|
|
38
37
|
const backupRef = useRef(null);
|
|
39
38
|
const ref = forwardRef ?? backupRef;
|
|
40
39
|
function handleModalBackdropClick(e) {
|
|
@@ -64,17 +63,23 @@ const Dialog = React.forwardRef(({ children, className, focusAfterCloseRef, moda
|
|
|
64
63
|
dialogId,
|
|
65
64
|
titleId,
|
|
66
65
|
subtitleId,
|
|
67
|
-
isOpen: open
|
|
66
|
+
isOpen: open,
|
|
67
|
+
setTitleId,
|
|
68
|
+
setSubtitleId
|
|
68
69
|
};
|
|
69
70
|
useEffect(() => {
|
|
70
|
-
|
|
71
|
+
const effectiveAriaLabel = ariaLabel || deprecatedAriaLabel;
|
|
72
|
+
const effectiveAriaLabelledBy = ariaLabelledBy || deprecatedAriaLabelledBy;
|
|
73
|
+
if (ref.current && open && !effectiveAriaLabel && !effectiveAriaLabelledBy) {
|
|
71
74
|
const title = ref.current.querySelector(`.${prefix}--dialog-header__heading`);
|
|
72
75
|
if (title && title.id) ref.current.setAttribute("aria-labelledby", title.id);
|
|
73
76
|
}
|
|
74
77
|
}, [
|
|
75
78
|
open,
|
|
76
79
|
ariaLabel,
|
|
80
|
+
deprecatedAriaLabel,
|
|
77
81
|
ariaLabelledBy,
|
|
82
|
+
deprecatedAriaLabelledBy,
|
|
78
83
|
prefix
|
|
79
84
|
]);
|
|
80
85
|
return /* @__PURE__ */ jsx(DialogContext.Provider, {
|
|
@@ -87,9 +92,9 @@ const Dialog = React.forwardRef(({ children, className, focusAfterCloseRef, moda
|
|
|
87
92
|
onClick: handleClick,
|
|
88
93
|
onClose,
|
|
89
94
|
role,
|
|
90
|
-
"aria-label": ariaLabel,
|
|
91
|
-
"aria-labelledby": !ariaLabel ? ariaLabelledBy || titleId : void 0,
|
|
92
|
-
"aria-describedby": ariaDescribedBy,
|
|
95
|
+
"aria-label": ariaLabel || deprecatedAriaLabel,
|
|
96
|
+
"aria-labelledby": !(ariaLabel || deprecatedAriaLabel) ? ariaLabelledBy || deprecatedAriaLabelledBy || titleId : void 0,
|
|
97
|
+
"aria-describedby": ariaDescribedBy || deprecatedAriaDescribedBy,
|
|
93
98
|
children: /* @__PURE__ */ jsx("div", {
|
|
94
99
|
className: containerClasses,
|
|
95
100
|
children
|
|
@@ -108,7 +113,10 @@ Dialog.propTypes = {
|
|
|
108
113
|
role: PropTypes.oneOf(["dialog", "alertdialog"]),
|
|
109
114
|
"aria-label": PropTypes.string,
|
|
110
115
|
"aria-labelledby": PropTypes.string,
|
|
111
|
-
|
|
116
|
+
"aria-describedby": PropTypes.string,
|
|
117
|
+
ariaLabel: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-label`"),
|
|
118
|
+
ariaLabelledBy: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-labelledby`"),
|
|
119
|
+
ariaDescribedBy: deprecate(PropTypes.string, "This prop syntax has been deprecated. Please use the new `aria-describedby`")
|
|
112
120
|
};
|
|
113
121
|
const DialogHeader = React.forwardRef(({ children, ...rest }, ref) => {
|
|
114
122
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -154,10 +162,16 @@ DialogCloseButton.displayName = "DialogCloseButton";
|
|
|
154
162
|
DialogCloseButton.propTypes = { onClick: PropTypes.func };
|
|
155
163
|
const DialogTitle = React.forwardRef(({ children, className, id, ...rest }, ref) => {
|
|
156
164
|
const prefix = usePrefix();
|
|
157
|
-
const {
|
|
165
|
+
const { dialogId, setTitleId } = useContext(DialogContext);
|
|
166
|
+
const defaultTitleId = `${prefix}--dialog-header__heading--${dialogId}`;
|
|
167
|
+
const headingId = id ?? defaultTitleId;
|
|
168
|
+
useEffect(() => {
|
|
169
|
+
setTitleId?.(headingId);
|
|
170
|
+
return () => setTitleId?.(void 0);
|
|
171
|
+
}, [headingId, setTitleId]);
|
|
158
172
|
return /* @__PURE__ */ jsx(Text, {
|
|
159
173
|
as: "h2",
|
|
160
|
-
id:
|
|
174
|
+
id: headingId,
|
|
161
175
|
className: classNames(`${prefix}--dialog-header__heading`, className),
|
|
162
176
|
ref,
|
|
163
177
|
...rest,
|
|
@@ -172,10 +186,16 @@ DialogTitle.propTypes = {
|
|
|
172
186
|
};
|
|
173
187
|
const DialogSubtitle = React.forwardRef(({ children, className, id, ...rest }, ref) => {
|
|
174
188
|
const prefix = usePrefix();
|
|
175
|
-
const {
|
|
189
|
+
const { dialogId, setSubtitleId } = useContext(DialogContext);
|
|
190
|
+
const defaultSubtitleId = `${prefix}--dialog-header__label--${dialogId}`;
|
|
191
|
+
const labelId = id ?? defaultSubtitleId;
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
setSubtitleId?.(labelId);
|
|
194
|
+
return () => setSubtitleId?.(void 0);
|
|
195
|
+
}, [labelId, setSubtitleId]);
|
|
176
196
|
return /* @__PURE__ */ jsx(Text, {
|
|
177
197
|
as: "h2",
|
|
178
|
-
id:
|
|
198
|
+
id: labelId,
|
|
179
199
|
className: classNames(`${prefix}--dialog-header__label`, className),
|
|
180
200
|
ref,
|
|
181
201
|
...rest,
|
|
@@ -191,24 +211,22 @@ DialogSubtitle.propTypes = {
|
|
|
191
211
|
const DialogBody = React.forwardRef(({ children, className, hasScrollingContent, ...rest }, ref) => {
|
|
192
212
|
const prefix = usePrefix();
|
|
193
213
|
const contentRef = useRef(null);
|
|
194
|
-
const [isScrollable, setIsScrollable] = useState(false);
|
|
195
214
|
const dialogBodyId = `${prefix}--dialog-body--${useId()}`;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}, []);
|
|
208
|
-
const contentClasses = classNames(`${prefix}--dialog-content`, { [`${prefix}--dialog-scroll-content`]: hasScrollingContent || isScrollable }, className);
|
|
215
|
+
const { titleId, subtitleId } = useContext(DialogContext);
|
|
216
|
+
const { height } = useResizeObserver({ ref: contentRef });
|
|
217
|
+
/**
|
|
218
|
+
* isScrollable is implicitly dependent on height, when height gets updated
|
|
219
|
+
* via `useResizeObserver`, clientHeight and scrollHeight get updated too
|
|
220
|
+
*/
|
|
221
|
+
const isScrollable = !!contentRef.current && contentRef?.current?.scrollHeight > contentRef?.current?.clientHeight;
|
|
222
|
+
const contentClasses = classNames(`${prefix}--dialog-content`, {
|
|
223
|
+
[`${prefix}--dialog-scroll-content`]: hasScrollingContent || isScrollable,
|
|
224
|
+
[`${prefix}--dialog-scroll-content--no-fade`]: height <= 300
|
|
225
|
+
}, className);
|
|
209
226
|
const hasScrollingContentProps = hasScrollingContent || isScrollable ? {
|
|
210
227
|
tabIndex: 0,
|
|
211
|
-
role: "region"
|
|
228
|
+
role: "region",
|
|
229
|
+
"aria-labelledby": subtitleId ?? titleId
|
|
212
230
|
} : {};
|
|
213
231
|
const combinedRef = (el) => {
|
|
214
232
|
if (typeof ref === "function") ref(el);
|
|
@@ -325,6 +343,5 @@ DialogFooter.propTypes = {
|
|
|
325
343
|
loadingIconDescription: PropTypes.string,
|
|
326
344
|
onLoadingSuccess: PropTypes.func
|
|
327
345
|
};
|
|
328
|
-
|
|
329
346
|
//#endregion
|
|
330
|
-
export { Dialog, DialogBody, DialogCloseButton, DialogControls, DialogFooter, DialogHeader, DialogSubtitle, DialogTitle };
|
|
347
|
+
export { Dialog, DialogBody, DialogCloseButton, DialogControls, DialogFooter, DialogHeader, DialogSubtitle, DialogTitle };
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
9
9
|
import { Dialog, DialogBody, DialogCloseButton, DialogControls, DialogFooter, DialogHeader, DialogSubtitle, DialogTitle } from "./Dialog.js";
|
|
10
|
-
|
|
11
10
|
//#region src/components/Dialog/index.tsx
|
|
12
11
|
var Dialog_exports = /* @__PURE__ */ __exportAll({
|
|
13
12
|
Dialog: () => Dialog,
|
|
@@ -19,6 +18,5 @@ var Dialog_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
18
|
DialogSubtitle: () => DialogSubtitle,
|
|
20
19
|
DialogTitle: () => DialogTitle
|
|
21
20
|
});
|
|
22
|
-
|
|
23
21
|
//#endregion
|
|
24
|
-
export { Dialog_exports };
|
|
22
|
+
export { Dialog_exports };
|
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import { ListBoxSizePropType } from "../ListBox/ListBoxPropTypes.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/Dropdown/Dropdown.Skeleton.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -32,6 +31,5 @@ DropdownSkeleton.propTypes = {
|
|
|
32
31
|
hideLabel: PropTypes.bool,
|
|
33
32
|
size: ListBoxSizePropType
|
|
34
33
|
};
|
|
35
|
-
|
|
36
34
|
//#endregion
|
|
37
|
-
export { DropdownSkeleton as default };
|
|
35
|
+
export { DropdownSkeleton as default };
|
|
@@ -10,12 +10,12 @@ import { deprecate } from "../../prop-types/deprecate.js";
|
|
|
10
10
|
import { defaultItemToString } from "../../internal/defaultItemToString.js";
|
|
11
11
|
import { isComponentElement } from "../../internal/utils.js";
|
|
12
12
|
import { useFeatureFlag } from "../FeatureFlags/index.js";
|
|
13
|
+
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
13
14
|
import { AILabel } from "../AILabel/index.js";
|
|
14
15
|
import { ListBoxSizePropType, ListBoxTypePropType } from "../ListBox/ListBoxPropTypes.js";
|
|
15
16
|
import { FormContext } from "../FluidForm/FormContext.js";
|
|
16
17
|
import ListBox from "../ListBox/index.js";
|
|
17
18
|
import { mergeRefs } from "../../tools/mergeRefs.js";
|
|
18
|
-
import { useNormalizedInputProps } from "../../internal/useNormalizedInputProps.js";
|
|
19
19
|
import classNames from "classnames";
|
|
20
20
|
import React, { cloneElement, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
21
21
|
import PropTypes from "prop-types";
|
|
@@ -23,7 +23,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
23
23
|
import { Checkmark, WarningAltFilled, WarningFilled } from "@carbon/icons-react";
|
|
24
24
|
import { autoUpdate, flip, hide, size, useFloating } from "@floating-ui/react";
|
|
25
25
|
import { useSelect } from "downshift";
|
|
26
|
-
|
|
27
26
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
28
27
|
/**
|
|
29
28
|
* Copyright IBM Corp. 2022, 2026
|
|
@@ -353,6 +352,5 @@ Dropdown.propTypes = {
|
|
|
353
352
|
warn: PropTypes.bool,
|
|
354
353
|
warnText: PropTypes.node
|
|
355
354
|
};
|
|
356
|
-
|
|
357
355
|
//#endregion
|
|
358
|
-
export { Dropdown as default };
|
|
356
|
+
export { Dropdown as default };
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Dropdown from "./Dropdown.js";
|
|
9
|
-
import
|
|
10
|
-
|
|
9
|
+
import "./Dropdown.Skeleton.js";
|
|
11
10
|
//#region src/components/Dropdown/index.ts
|
|
12
11
|
/**
|
|
13
12
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -16,6 +15,5 @@ import DropdownSkeleton from "./Dropdown.Skeleton.js";
|
|
|
16
15
|
* LICENSE file in the root directory of this source tree.
|
|
17
16
|
*/
|
|
18
17
|
var Dropdown_default = Dropdown;
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { Dropdown_default as default };
|
|
19
|
+
export { Dropdown_default as default };
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import { ErrorBoundaryContext } from "./ErrorBoundaryContext.js";
|
|
9
9
|
import React from "react";
|
|
10
10
|
import PropTypes from "prop-types";
|
|
11
|
-
|
|
12
11
|
//#region src/components/ErrorBoundary/ErrorBoundary.tsx
|
|
13
12
|
/**
|
|
14
13
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -40,6 +39,5 @@ ErrorBoundary.propTypes = {
|
|
|
40
39
|
fallback: PropTypes.node
|
|
41
40
|
};
|
|
42
41
|
ErrorBoundary.contextType = ErrorBoundaryContext;
|
|
43
|
-
|
|
44
42
|
//#endregion
|
|
45
|
-
export { ErrorBoundary as default };
|
|
43
|
+
export { ErrorBoundary as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { createContext } from "react";
|
|
9
|
-
|
|
10
9
|
//#region src/components/ErrorBoundary/ErrorBoundaryContext.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2016, 2023
|
|
@@ -17,6 +16,5 @@ import { createContext } from "react";
|
|
|
17
16
|
const ErrorBoundaryContext = createContext({ log(error, info) {
|
|
18
17
|
console.log(info.componentStack);
|
|
19
18
|
} });
|
|
20
|
-
|
|
21
19
|
//#endregion
|
|
22
|
-
export { ErrorBoundaryContext };
|
|
20
|
+
export { ErrorBoundaryContext };
|
|
@@ -13,9 +13,8 @@ import { mergeRefs } from "../../tools/mergeRefs.js";
|
|
|
13
13
|
import { isSearchValuePresent } from "../Search/utils.js";
|
|
14
14
|
import Search_default from "../Search/index.js";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import
|
|
16
|
+
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
|
-
|
|
19
18
|
//#region src/components/ExpandableSearch/ExpandableSearch.tsx
|
|
20
19
|
/**
|
|
21
20
|
* Copyright IBM Corp. 2021, 2026
|
|
@@ -64,6 +63,5 @@ const ExpandableSearch = forwardRef((props, forwardedRef) => {
|
|
|
64
63
|
});
|
|
65
64
|
ExpandableSearch.propTypes = Search_default.propTypes;
|
|
66
65
|
ExpandableSearch.displayName = "ExpandableSearch";
|
|
67
|
-
|
|
68
66
|
//#endregion
|
|
69
|
-
export { ExpandableSearch as default };
|
|
67
|
+
export { ExpandableSearch as default };
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import ExpandableSearch from "./ExpandableSearch.js";
|
|
9
|
-
|
|
10
9
|
//#region src/components/ExpandableSearch/index.ts
|
|
11
10
|
/**
|
|
12
11
|
* Copyright IBM Corp. 2021
|
|
@@ -15,6 +14,5 @@ import ExpandableSearch from "./ExpandableSearch.js";
|
|
|
15
14
|
* LICENSE file in the root directory of this source tree.
|
|
16
15
|
*/
|
|
17
16
|
var ExpandableSearch_default = ExpandableSearch;
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { ExpandableSearch_default as default };
|
|
18
|
+
export { ExpandableSearch_default as default };
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
9
9
|
import { FeatureFlags, createScope } from "@carbon/feature-flags";
|
|
10
|
-
import
|
|
10
|
+
import { createContext, useContext, useMemo } from "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/FeatureFlags/index.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2015, 2026
|
|
@@ -90,6 +89,5 @@ const useFeatureFlag = (flag) => {
|
|
|
90
89
|
* Access all feature flag information for the given FeatureFlagContext
|
|
91
90
|
*/
|
|
92
91
|
const useFeatureFlags = () => useContext(FeatureFlagContext);
|
|
93
|
-
|
|
94
92
|
//#endregion
|
|
95
|
-
export { FeatureFlags$1 as FeatureFlags, useFeatureFlag, useFeatureFlags };
|
|
93
|
+
export { FeatureFlags$1 as FeatureFlags, useFeatureFlag, useFeatureFlags };
|
|
@@ -9,10 +9,9 @@ import { usePrefix } from "../../internal/usePrefix.js";
|
|
|
9
9
|
import SkeletonText_default from "../SkeletonText/index.js";
|
|
10
10
|
import ButtonSkeleton from "../Button/Button.Skeleton.js";
|
|
11
11
|
import classNames from "classnames";
|
|
12
|
-
import
|
|
12
|
+
import "react";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
15
|
//#region src/components/FileUploader/FileUploader.Skeleton.tsx
|
|
17
16
|
/**
|
|
18
17
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -39,6 +38,5 @@ function FileUploaderSkeleton({ className, ...rest }) {
|
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
40
|
FileUploaderSkeleton.propTypes = { className: PropTypes.string };
|
|
42
|
-
|
|
43
41
|
//#endregion
|
|
44
|
-
export { FileUploaderSkeleton as default };
|
|
42
|
+
export { FileUploaderSkeleton as default };
|
|
@@ -18,7 +18,6 @@ import classNames from "classnames";
|
|
|
18
18
|
import React, { forwardRef, useCallback, useImperativeHandle, useState } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
|
|
22
21
|
//#region src/components/FileUploader/FileUploader.tsx
|
|
23
22
|
/**
|
|
24
23
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -275,6 +274,5 @@ FileUploader.propTypes = {
|
|
|
275
274
|
"lg"
|
|
276
275
|
])
|
|
277
276
|
};
|
|
278
|
-
|
|
279
277
|
//#endregion
|
|
280
|
-
export { FileUploader as default };
|
|
278
|
+
export { FileUploader as default };
|
|
@@ -13,10 +13,9 @@ import { noopFn } from "../../internal/noopFn.js";
|
|
|
13
13
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
14
14
|
import { ButtonKinds } from "../Button/Button.js";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import
|
|
16
|
+
import { useEffect, useRef, useState } from "react";
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
|
|
20
19
|
//#region src/components/FileUploader/FileUploaderButton.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -116,6 +115,5 @@ FileUploaderButton.propTypes = {
|
|
|
116
115
|
]),
|
|
117
116
|
tabIndex: deprecate(PropTypes.number, "The `tabIndex` prop for `FileUploaderButton` has been deprecated since it now renders a button element by default.")
|
|
118
117
|
};
|
|
119
|
-
|
|
120
118
|
//#endregion
|
|
121
|
-
export { FileUploaderButton as default };
|
|
119
|
+
export { FileUploaderButton as default };
|
|
@@ -13,10 +13,9 @@ import { noopFn } from "../../internal/noopFn.js";
|
|
|
13
13
|
import { deprecate } from "../../prop-types/deprecate.js";
|
|
14
14
|
import { composeEventHandlers } from "../../tools/events.js";
|
|
15
15
|
import classNames from "classnames";
|
|
16
|
-
import
|
|
16
|
+
import { useRef, useState } from "react";
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
|
|
20
19
|
//#region src/components/FileUploader/FileUploaderDropContainer.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -150,6 +149,5 @@ FileUploaderDropContainer.propTypes = {
|
|
|
150
149
|
role: deprecate(PropTypes.number, "The `role` prop for `FileUploaderButton` has been deprecated since it now renders a button element by default, and has an implicit role of button."),
|
|
151
150
|
tabIndex: deprecate(PropTypes.number, "The `tabIndex` prop for `FileUploaderButton` has been deprecated since it now renders a button element by default.")
|
|
152
151
|
};
|
|
153
|
-
|
|
154
152
|
//#endregion
|
|
155
|
-
export { FileUploaderDropContainer as default };
|
|
153
|
+
export { FileUploaderDropContainer as default };
|
|
@@ -15,10 +15,9 @@ import { noopFn } from "../../internal/noopFn.js";
|
|
|
15
15
|
import { Tooltip } from "../Tooltip/Tooltip.js";
|
|
16
16
|
import Filename from "./Filename.js";
|
|
17
17
|
import classNames from "classnames";
|
|
18
|
-
import
|
|
18
|
+
import { useRef, useState } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
|
|
22
21
|
//#region src/components/FileUploader/FileUploaderItem.tsx
|
|
23
22
|
/**
|
|
24
23
|
* Copyright IBM Corp. 2016, 2026
|
|
@@ -144,6 +143,5 @@ FileUploaderItem.propTypes = {
|
|
|
144
143
|
]),
|
|
145
144
|
uuid: PropTypes.string
|
|
146
145
|
};
|
|
147
|
-
|
|
148
146
|
//#endregion
|
|
149
|
-
export { FileUploaderItem as default };
|
|
147
|
+
export { FileUploaderItem as default };
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import { usePrefix } from "../../internal/usePrefix.js";
|
|
9
9
|
import Loading_default from "../Loading/index.js";
|
|
10
|
-
import
|
|
10
|
+
import "react";
|
|
11
11
|
import PropTypes from "prop-types";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { CheckmarkFilled, Close, WarningFilled } from "@carbon/icons-react";
|
|
14
|
-
|
|
15
14
|
//#region src/components/FileUploader/Filename.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -59,6 +58,5 @@ Filename.propTypes = {
|
|
|
59
58
|
]),
|
|
60
59
|
tabIndex: PropTypes.number
|
|
61
60
|
};
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
|
-
export { Filename as default };
|
|
62
|
+
export { Filename 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, jsxs } from "react/jsx-runtime";
|
|
13
|
-
|
|
14
13
|
//#region src/components/FluidComboBox/FluidComboBox.Skeleton.tsx
|
|
15
14
|
/**
|
|
16
15
|
* Copyright IBM Corp. 2016, 2025
|
|
@@ -30,6 +29,5 @@ const FluidComboBoxSkeleton = ({ className, ...rest }) => {
|
|
|
30
29
|
});
|
|
31
30
|
};
|
|
32
31
|
FluidComboBoxSkeleton.propTypes = { className: PropTypes.string };
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
|
-
export { FluidComboBoxSkeleton as default };
|
|
33
|
+
export { FluidComboBoxSkeleton as default };
|
|
@@ -12,7 +12,6 @@ import classNames from "classnames";
|
|
|
12
12
|
import React from "react";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
15
|
//#region src/components/FluidComboBox/FluidComboBox.tsx
|
|
17
16
|
/**
|
|
18
17
|
* Copyright IBM Corp. 2022, 2026
|
|
@@ -60,6 +59,5 @@ FluidComboBox.propTypes = {
|
|
|
60
59
|
warn: PropTypes.bool,
|
|
61
60
|
warnText: PropTypes.node
|
|
62
61
|
};
|
|
63
|
-
|
|
64
62
|
//#endregion
|
|
65
|
-
export { FluidComboBox as default };
|
|
63
|
+
export { FluidComboBox as default };
|