From fe8662f7b97f829d732c927ac4f76e6dd8e6d3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Wed, 4 Sep 2024 16:35:57 +0200 Subject: [PATCH] Add missing 'use client' and make styling consistent --- .../mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx | 2 ++ packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx | 2 ++ .../src/AlertDialog/Description/AlertDialogDescription.tsx | 2 ++ packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx | 2 ++ packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx | 2 ++ .../mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts | 2 ++ packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx | 2 ++ .../mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx | 2 ++ packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx | 1 + packages/mui-base/src/Checkbox/Root/CheckboxContext.ts | 1 + packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx | 1 + packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts | 2 ++ packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts | 1 + packages/mui-base/src/Checkbox/utils.ts | 2 ++ .../mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts | 2 ++ packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx | 1 + .../mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts | 2 ++ .../mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx | 1 + .../mui-base/src/Collapsible/Content/CollapsibleContent.tsx | 1 + .../mui-base/src/Collapsible/Content/useCollapsibleContent.ts | 1 + packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx | 1 + packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx | 2 ++ packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx | 1 + packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts | 1 + .../mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx | 1 + .../mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts | 1 + packages/mui-base/src/Composite/Item/CompositeItem.tsx | 1 + packages/mui-base/src/Composite/Item/useCompositeItem.ts | 1 + packages/mui-base/src/Composite/List/CompositeList.tsx | 1 + packages/mui-base/src/Composite/List/CompositeListContext.ts | 2 ++ packages/mui-base/src/Composite/List/useCompositeListItem.ts | 1 + packages/mui-base/src/Composite/Root/CompositeRoot.tsx | 1 + packages/mui-base/src/Composite/Root/CompositeRootContext.ts | 2 ++ packages/mui-base/src/Composite/Root/useCompositeRoot.ts | 1 + packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx | 2 ++ packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts | 2 ++ packages/mui-base/src/Dialog/Close/DialogClose.tsx | 2 ++ packages/mui-base/src/Dialog/Close/useDialogClose.ts | 2 ++ packages/mui-base/src/Dialog/Description/DialogDescription.tsx | 2 ++ packages/mui-base/src/Dialog/Popup/DialogPopup.tsx | 2 ++ packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx | 2 ++ packages/mui-base/src/Dialog/Root/DialogRoot.tsx | 2 ++ packages/mui-base/src/Dialog/Root/DialogRootContext.ts | 2 ++ packages/mui-base/src/Dialog/Root/useDialogRoot.ts | 2 ++ packages/mui-base/src/Dialog/Title/DialogTitle.tsx | 2 ++ packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx | 2 ++ packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts | 2 ++ packages/mui-base/src/Field/Control/FieldControl.tsx | 1 + packages/mui-base/src/Field/Control/useFieldControl.ts | 1 + .../mui-base/src/Field/Control/useFieldControlValidation.ts | 1 + packages/mui-base/src/Field/Description/FieldDescription.tsx | 1 + packages/mui-base/src/Field/Description/useFieldDescription.ts | 1 + packages/mui-base/src/Field/Error/FieldError.tsx | 1 + packages/mui-base/src/Field/Error/useFieldError.ts | 1 + packages/mui-base/src/Field/Label/FieldLabel.tsx | 1 + packages/mui-base/src/Field/Label/useFieldLabel.ts | 1 + packages/mui-base/src/Field/Root/FieldRoot.tsx | 1 + packages/mui-base/src/Field/Root/FieldRootContext.ts | 1 + packages/mui-base/src/Field/Validity/FieldValidity.tsx | 1 + packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx | 1 + packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts | 2 ++ packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx | 1 + packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts | 2 ++ packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts | 2 ++ packages/mui-base/src/Menu/Arrow/MenuArrow.tsx | 1 + packages/mui-base/src/Menu/Arrow/useMenuArrow.ts | 1 + packages/mui-base/src/Menu/Item/MenuItem.tsx | 1 + packages/mui-base/src/Menu/Item/useMenuItem.ts | 1 + packages/mui-base/src/Menu/Popup/MenuPopup.tsx | 1 + packages/mui-base/src/Menu/Popup/useMenuPopup.ts | 1 + packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx | 1 + packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts | 1 + packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts | 1 + packages/mui-base/src/Menu/Root/MenuRoot.tsx | 1 + packages/mui-base/src/Menu/Root/MenuRootContext.ts | 1 + packages/mui-base/src/Menu/Root/useMenuRoot.ts | 1 + packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx | 2 ++ packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts | 2 ++ packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx | 1 + packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts | 1 + .../mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx | 1 + packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx | 1 + .../mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx | 1 + packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx | 1 + packages/mui-base/src/NumberField/Root/NumberFieldContext.ts | 1 + packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx | 1 + packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts | 1 + packages/mui-base/src/NumberField/Root/useScrub.ts | 1 + .../mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx | 1 + .../NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx | 1 + packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx | 1 + packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts | 1 + packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx | 1 + packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts | 1 + packages/mui-base/src/Popover/Close/PopoverClose.tsx | 1 + packages/mui-base/src/Popover/Close/usePopoverClose.ts | 1 + .../mui-base/src/Popover/Description/PopoverDescription.tsx | 1 + .../mui-base/src/Popover/Description/usePopoverDescription.ts | 1 + packages/mui-base/src/Popover/Popup/PopoverPopup.tsx | 1 + packages/mui-base/src/Popover/Popup/usePopoverPopup.ts | 1 + packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx | 1 + .../mui-base/src/Popover/Positioner/PopoverPositionerContext.ts | 1 + .../mui-base/src/Popover/Positioner/usePopoverPositioner.tsx | 1 + packages/mui-base/src/Popover/Root/PopoverRoot.tsx | 1 + packages/mui-base/src/Popover/Root/PopoverRootContext.ts | 2 ++ packages/mui-base/src/Popover/Root/usePopoverRoot.ts | 1 + packages/mui-base/src/Popover/Title/PopoverTitle.tsx | 1 + packages/mui-base/src/Popover/Title/usePopoverTitle.ts | 1 + packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx | 1 + packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx | 1 + packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts | 1 + .../mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx | 1 + .../mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts | 1 + packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx | 1 + packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts | 1 + .../src/PreviewCard/Positioner/PreviewCardPositioner.tsx | 1 + .../src/PreviewCard/Positioner/PreviewCardPositionerContext.ts | 1 + .../src/PreviewCard/Positioner/usePreviewCardPositioner.ts | 1 + packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts | 2 ++ packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx | 1 + packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts | 1 + .../mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx | 1 + packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts | 2 ++ packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx | 1 + .../mui-base/src/Progress/Indicator/useProgressIndicator.ts | 1 + packages/mui-base/src/Progress/Root/ProgressContext.tsx | 1 + packages/mui-base/src/Progress/Root/ProgressRoot.tsx | 1 + packages/mui-base/src/Progress/Root/useProgressRoot.ts | 1 + packages/mui-base/src/Progress/Track/ProgressTrack.tsx | 1 + packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx | 1 + packages/mui-base/src/Radio/Root/RadioRoot.tsx | 1 + packages/mui-base/src/Radio/Root/RadioRootContext.ts | 2 ++ packages/mui-base/src/Radio/Root/useRadioRoot.tsx | 1 + packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx | 1 + packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts | 1 + packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts | 2 ++ packages/mui-base/src/Slider/Control/SliderControl.tsx | 1 + packages/mui-base/src/Slider/Control/useSliderControl.ts | 2 ++ packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx | 1 + packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts | 1 + packages/mui-base/src/Slider/Output/SliderOutput.tsx | 1 + packages/mui-base/src/Slider/Output/useSliderOutput.ts | 1 + packages/mui-base/src/Slider/Root/SliderProvider.tsx | 1 + packages/mui-base/src/Slider/Root/SliderRoot.tsx | 1 + packages/mui-base/src/Slider/Root/useSliderRoot.ts | 1 + packages/mui-base/src/Slider/Thumb/SliderThumb.tsx | 1 + packages/mui-base/src/Slider/Thumb/useSliderThumb.ts | 2 ++ packages/mui-base/src/Slider/Track/SliderTrack.tsx | 1 + packages/mui-base/src/Switch/Root/SwitchContext.ts | 1 + packages/mui-base/src/Switch/Root/SwitchRoot.tsx | 1 + packages/mui-base/src/Switch/Root/useSwitchRoot.ts | 1 + packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx | 1 + packages/mui-base/src/Tabs/Root/TabsContext.ts | 2 ++ packages/mui-base/src/Tabs/Root/TabsProvider.tsx | 1 + packages/mui-base/src/Tabs/Root/TabsRoot.tsx | 1 + packages/mui-base/src/Tabs/Root/useTabsRoot.ts | 1 + packages/mui-base/src/Tabs/Tab/Tab.tsx | 1 + packages/mui-base/src/Tabs/Tab/useTab.ts | 1 + packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx | 1 + packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts | 1 + packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx | 1 + packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts | 1 + packages/mui-base/src/Tabs/TabsList/TabsList.tsx | 1 + packages/mui-base/src/Tabs/TabsList/TabsListContext.ts | 2 ++ packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx | 1 + packages/mui-base/src/Tabs/TabsList/useTabsList.ts | 1 + packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx | 1 + packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts | 1 + packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx | 1 + packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts | 1 + packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx | 1 + .../mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts | 2 ++ .../mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts | 1 + packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx | 1 + packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx | 1 + packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts | 2 ++ packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts | 1 + packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx | 1 + .../mui-base/src/legacy/ClickAwayListener/ClickAwayListener.tsx | 1 + packages/mui-base/src/legacy/FocusTrap/FocusTrap.tsx | 1 + packages/mui-base/src/legacy/FormControl/FormControl.tsx | 1 + .../mui-base/src/legacy/FormControl/useFormControlContext.ts | 1 + packages/mui-base/src/legacy/MultiSelect/MultiSelect.tsx | 1 + packages/mui-base/src/legacy/NoSsr/NoSsr.tsx | 1 + packages/mui-base/src/legacy/Option/Option.tsx | 1 + packages/mui-base/src/legacy/OptionGroup/OptionGroup.tsx | 1 + packages/mui-base/src/legacy/Portal/Portal.tsx | 1 + packages/mui-base/src/legacy/Select/Select.tsx | 1 + packages/mui-base/src/legacy/Snackbar/Snackbar.tsx | 1 + .../mui-base/src/legacy/TablePagination/TablePagination.tsx | 1 + .../src/legacy/TablePagination/TablePaginationActions.tsx | 1 + .../mui-base/src/legacy/TextareaAutosize/TextareaAutosize.tsx | 1 + packages/mui-base/src/legacy/Unstable_Popup/Popup.tsx | 1 + packages/mui-base/src/legacy/useAutocomplete/useAutocomplete.ts | 1 + packages/mui-base/src/legacy/useOption/useOption.ts | 1 + .../mui-base/src/legacy/useOption/useOptionContextStabilizer.ts | 1 + packages/mui-base/src/legacy/useSelect/SelectProvider.tsx | 1 + packages/mui-base/src/legacy/useSelect/useSelect.ts | 1 + packages/mui-base/src/legacy/useSnackbar/useSnackbar.ts | 1 + .../src/legacy/useTransition/useTransitionStateManager.ts | 1 + .../mui-base/src/legacy/useTransition/useTransitionTrigger.ts | 1 + packages/mui-base/src/legacy/utils/ClassNameConfigurator.tsx | 1 + packages/mui-base/src/legacy/utils/useSlotProps.ts | 1 + packages/mui-base/src/useButton/useButton.ts | 1 + packages/mui-base/src/useCompound/useCompoundItem.ts | 1 + packages/mui-base/src/useCompound/useCompoundParent.ts | 1 + packages/mui-base/src/useList/ListContext.ts | 2 ++ packages/mui-base/src/useList/useList.ts | 1 + packages/mui-base/src/useList/useListItem.ts | 1 + packages/mui-base/src/utils/useAnchorPositioning.ts | 1 + packages/mui-base/src/utils/useAnimationsFinished.ts | 1 + packages/mui-base/src/utils/useControllableReducer.ts | 1 + packages/mui-base/src/utils/useForcedRerendering.ts | 1 + packages/mui-base/src/utils/useLatestRef.ts | 1 + packages/mui-base/src/utils/useRootElementName.ts | 1 + packages/mui-base/src/utils/useTextNavigation.ts | 1 + packages/mui-base/src/utils/useTransitionStatus.ts | 1 + 217 files changed, 262 insertions(+) diff --git a/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx b/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx index ac29d6428c..fc7484ba89 100644 --- a/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx +++ b/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx b/packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx index ef72b256aa..ce1a2f563a 100644 --- a/packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx +++ b/packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { AlertDialogCloseOwnerState, AlertDialogCloseProps } from './AlertDialogClose.types'; diff --git a/packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.tsx b/packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.tsx index 8c97ef167e..55a9777429 100644 --- a/packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.tsx +++ b/packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { diff --git a/packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx b/packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx index a68aa4f8d9..11598cbb12 100644 --- a/packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx +++ b/packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx b/packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx index 4e0fffc9d9..4f18029281 100644 --- a/packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx +++ b/packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { AlertDialogRootProps } from './AlertDialogRoot.types'; diff --git a/packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts b/packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts index 19423d2d48..7e3d53e60a 100644 --- a/packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts +++ b/packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { AlertDialogRootContextValue } from './AlertDialogRoot.types'; diff --git a/packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx b/packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx index e5301b06c1..4d64665df2 100644 --- a/packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx +++ b/packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { AlertDialogTitleOwnerState, AlertDialogTitleProps } from './AlertDialogTitle.types'; diff --git a/packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx b/packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx index 80b76094b6..aab0fea475 100644 --- a/packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx +++ b/packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useDialogTrigger } from '../../Dialog/Trigger/useDialogTrigger'; diff --git a/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx b/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx index 54db3021b8..6047a7808b 100644 --- a/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx +++ b/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { CheckboxIndicatorProps } from './CheckboxIndicator.types'; diff --git a/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts b/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts index 57cf012462..4749a556cd 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts +++ b/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { CheckboxContextValue } from './CheckboxRoot.types'; diff --git a/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx b/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx index 11ce36fc08..24fa62f6fb 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx +++ b/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { CheckboxContext } from './CheckboxContext'; diff --git a/packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts b/packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts index fa36221dcd..0bb7d6ab01 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts +++ b/packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { CheckboxContextValue } from './CheckboxRoot.types'; diff --git a/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts b/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts index d59c77e2c5..1e889473ea 100644 --- a/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts +++ b/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { UseCheckboxRootParameters, UseCheckboxRootReturnValue } from './CheckboxRoot.types'; import { useControlled } from '../../utils/useControlled'; diff --git a/packages/mui-base/src/Checkbox/utils.ts b/packages/mui-base/src/Checkbox/utils.ts index 9494b80381..1fa41f0065 100644 --- a/packages/mui-base/src/Checkbox/utils.ts +++ b/packages/mui-base/src/Checkbox/utils.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { CheckboxRootOwnerState } from './Root/CheckboxRoot.types'; import { getStyleHookProps } from '../utils/getStyleHookProps'; diff --git a/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts b/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts index ba82b81f7e..64c09f3212 100644 --- a/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts +++ b/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { useId } from '../../utils/useId'; import { useEventCallback } from '../../utils/useEventCallback'; diff --git a/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx b/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx index b2c6b6f7c6..7c30770c13 100644 --- a/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx +++ b/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts b/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts index 412faa8769..c16719e6f7 100644 --- a/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts +++ b/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { UseCheckboxGroupParent } from '../Parent/useCheckboxGroupParent'; diff --git a/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx b/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx index b5ebb05335..7ddb99a230 100644 --- a/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx +++ b/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useControlled } from '../../utils/useControlled'; diff --git a/packages/mui-base/src/Collapsible/Content/CollapsibleContent.tsx b/packages/mui-base/src/Collapsible/Content/CollapsibleContent.tsx index a6006f8178..576661630a 100644 --- a/packages/mui-base/src/Collapsible/Content/CollapsibleContent.tsx +++ b/packages/mui-base/src/Collapsible/Content/CollapsibleContent.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { BaseUIComponentProps } from '../../utils/types'; diff --git a/packages/mui-base/src/Collapsible/Content/useCollapsibleContent.ts b/packages/mui-base/src/Collapsible/Content/useCollapsibleContent.ts index 5a6312d38b..a5ae6c862d 100644 --- a/packages/mui-base/src/Collapsible/Content/useCollapsibleContent.ts +++ b/packages/mui-base/src/Collapsible/Content/useCollapsibleContent.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { mergeReactProps } from '../../utils/mergeReactProps'; diff --git a/packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx b/packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx index befc7670a4..2bdb77f0ce 100644 --- a/packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx +++ b/packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { CollapsibleRoot } from './CollapsibleRoot'; diff --git a/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx b/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx index d14d5365e8..21257ae10d 100644 --- a/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx +++ b/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; diff --git a/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx b/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx index 5ab8e07a40..95f59e4fbd 100644 --- a/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx +++ b/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { BaseUIComponentProps } from '../../utils/types'; diff --git a/packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts b/packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts index 8328232af4..757a211945 100644 --- a/packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts +++ b/packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useControlled } from '../../utils/useControlled'; import { useEventCallback } from '../../utils/useEventCallback'; diff --git a/packages/mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx b/packages/mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx index a8c4880ad8..f06f0786f5 100644 --- a/packages/mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx +++ b/packages/mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts b/packages/mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts index 112c48cdc4..4dda0d968a 100644 --- a/packages/mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts +++ b/packages/mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; /** diff --git a/packages/mui-base/src/Composite/Item/CompositeItem.tsx b/packages/mui-base/src/Composite/Item/CompositeItem.tsx index 8b87646048..984dbb8151 100644 --- a/packages/mui-base/src/Composite/Item/CompositeItem.tsx +++ b/packages/mui-base/src/Composite/Item/CompositeItem.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Composite/Item/useCompositeItem.ts b/packages/mui-base/src/Composite/Item/useCompositeItem.ts index 70ab405323..296f54be11 100644 --- a/packages/mui-base/src/Composite/Item/useCompositeItem.ts +++ b/packages/mui-base/src/Composite/Item/useCompositeItem.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useCompositeRootContext } from '../Root/CompositeRootContext'; import { useCompositeListItem } from '../List/useCompositeListItem'; diff --git a/packages/mui-base/src/Composite/List/CompositeList.tsx b/packages/mui-base/src/Composite/List/CompositeList.tsx index 09815eb7e6..ed4f37f82f 100644 --- a/packages/mui-base/src/Composite/List/CompositeList.tsx +++ b/packages/mui-base/src/Composite/List/CompositeList.tsx @@ -1,5 +1,6 @@ /* eslint-disable no-bitwise */ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useEnhancedEffect } from '../../utils/useEnhancedEffect'; diff --git a/packages/mui-base/src/Composite/List/CompositeListContext.ts b/packages/mui-base/src/Composite/List/CompositeListContext.ts index 0d8cd305c2..719d1bcc28 100644 --- a/packages/mui-base/src/Composite/List/CompositeListContext.ts +++ b/packages/mui-base/src/Composite/List/CompositeListContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; export interface CompositeListContextValue { diff --git a/packages/mui-base/src/Composite/List/useCompositeListItem.ts b/packages/mui-base/src/Composite/List/useCompositeListItem.ts index 7a93d56217..8797f8930b 100644 --- a/packages/mui-base/src/Composite/List/useCompositeListItem.ts +++ b/packages/mui-base/src/Composite/List/useCompositeListItem.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useEnhancedEffect } from '../../utils/useEnhancedEffect'; import { useCompositeListContext } from './CompositeListContext'; diff --git a/packages/mui-base/src/Composite/Root/CompositeRoot.tsx b/packages/mui-base/src/Composite/Root/CompositeRoot.tsx index 9876177ee7..6a72416e73 100644 --- a/packages/mui-base/src/Composite/Root/CompositeRoot.tsx +++ b/packages/mui-base/src/Composite/Root/CompositeRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Composite/Root/CompositeRootContext.ts b/packages/mui-base/src/Composite/Root/CompositeRootContext.ts index f8b119b05c..c11f7478eb 100644 --- a/packages/mui-base/src/Composite/Root/CompositeRootContext.ts +++ b/packages/mui-base/src/Composite/Root/CompositeRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; export const CompositeRootContext = React.createContext(null); diff --git a/packages/mui-base/src/Composite/Root/useCompositeRoot.ts b/packages/mui-base/src/Composite/Root/useCompositeRoot.ts index 3a42f6f8dd..530110bd88 100644 --- a/packages/mui-base/src/Composite/Root/useCompositeRoot.ts +++ b/packages/mui-base/src/Composite/Root/useCompositeRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useEventCallback } from '../../utils/useEventCallback'; import { mergeReactProps } from '../../utils/mergeReactProps'; diff --git a/packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx b/packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx index f9689a7605..2ebc4f6679 100644 --- a/packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx +++ b/packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts b/packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts index 36fe16375d..f636729bd2 100644 --- a/packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts +++ b/packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { UseDialogBackdropParams, UseDialogBackdropReturnValue } from './DialogBackdrop.types'; import { mergeReactProps } from '../../utils/mergeReactProps'; diff --git a/packages/mui-base/src/Dialog/Close/DialogClose.tsx b/packages/mui-base/src/Dialog/Close/DialogClose.tsx index 19cae98dca..cb894620c2 100644 --- a/packages/mui-base/src/Dialog/Close/DialogClose.tsx +++ b/packages/mui-base/src/Dialog/Close/DialogClose.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { DialogCloseProps } from './DialogClose.types'; diff --git a/packages/mui-base/src/Dialog/Close/useDialogClose.ts b/packages/mui-base/src/Dialog/Close/useDialogClose.ts index 589b4700a6..17bf63a86d 100644 --- a/packages/mui-base/src/Dialog/Close/useDialogClose.ts +++ b/packages/mui-base/src/Dialog/Close/useDialogClose.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { UseDialogCloseParameters, UseDialogCloseReturnValue } from './DialogClose.types'; diff --git a/packages/mui-base/src/Dialog/Description/DialogDescription.tsx b/packages/mui-base/src/Dialog/Description/DialogDescription.tsx index e556681f69..7a4db55adf 100644 --- a/packages/mui-base/src/Dialog/Description/DialogDescription.tsx +++ b/packages/mui-base/src/Dialog/Description/DialogDescription.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { DialogDescriptionProps } from './DialogDescription.types'; diff --git a/packages/mui-base/src/Dialog/Popup/DialogPopup.tsx b/packages/mui-base/src/Dialog/Popup/DialogPopup.tsx index da4212a7af..e503a04616 100644 --- a/packages/mui-base/src/Dialog/Popup/DialogPopup.tsx +++ b/packages/mui-base/src/Dialog/Popup/DialogPopup.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx b/packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx index e629a38615..81c73d0b7a 100644 --- a/packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx +++ b/packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { useFloating, useInteractions, useDismiss } from '@floating-ui/react'; import { UseDialogPopupParameters, UseDialogPopupReturnValue } from './DialogPopup.types'; diff --git a/packages/mui-base/src/Dialog/Root/DialogRoot.tsx b/packages/mui-base/src/Dialog/Root/DialogRoot.tsx index 9798f86c41..a47e81a5c9 100644 --- a/packages/mui-base/src/Dialog/Root/DialogRoot.tsx +++ b/packages/mui-base/src/Dialog/Root/DialogRoot.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { DialogRootProps } from './DialogRoot.types'; diff --git a/packages/mui-base/src/Dialog/Root/DialogRootContext.ts b/packages/mui-base/src/Dialog/Root/DialogRootContext.ts index 7b24b62107..64855ff3de 100644 --- a/packages/mui-base/src/Dialog/Root/DialogRootContext.ts +++ b/packages/mui-base/src/Dialog/Root/DialogRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { DialogRootContextValue } from './DialogRoot.types'; diff --git a/packages/mui-base/src/Dialog/Root/useDialogRoot.ts b/packages/mui-base/src/Dialog/Root/useDialogRoot.ts index ce8c094932..fc4e0133dd 100644 --- a/packages/mui-base/src/Dialog/Root/useDialogRoot.ts +++ b/packages/mui-base/src/Dialog/Root/useDialogRoot.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { UseDialogRootParameters, UseDialogRootReturnValue } from './DialogRoot.types'; import { useControlled } from '../../utils/useControlled'; diff --git a/packages/mui-base/src/Dialog/Title/DialogTitle.tsx b/packages/mui-base/src/Dialog/Title/DialogTitle.tsx index c6714698bc..830f5de33a 100644 --- a/packages/mui-base/src/Dialog/Title/DialogTitle.tsx +++ b/packages/mui-base/src/Dialog/Title/DialogTitle.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { DialogTitleProps } from './DialogTitle.types'; diff --git a/packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx b/packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx index d91c6364a1..c94e1f6ef4 100644 --- a/packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx +++ b/packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useDialogTrigger } from './useDialogTrigger'; diff --git a/packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts b/packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts index e20ebc9e61..6705a164ff 100644 --- a/packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts +++ b/packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/Field/Control/FieldControl.tsx b/packages/mui-base/src/Field/Control/FieldControl.tsx index 288b7b049a..33af6bc38f 100644 --- a/packages/mui-base/src/Field/Control/FieldControl.tsx +++ b/packages/mui-base/src/Field/Control/FieldControl.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Field/Control/useFieldControl.ts b/packages/mui-base/src/Field/Control/useFieldControl.ts index 3d842b4229..44f166e35b 100644 --- a/packages/mui-base/src/Field/Control/useFieldControl.ts +++ b/packages/mui-base/src/Field/Control/useFieldControl.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useEnhancedEffect } from '../../utils/useEnhancedEffect'; diff --git a/packages/mui-base/src/Field/Control/useFieldControlValidation.ts b/packages/mui-base/src/Field/Control/useFieldControlValidation.ts index 18ddc1503d..91e4f54c5b 100644 --- a/packages/mui-base/src/Field/Control/useFieldControlValidation.ts +++ b/packages/mui-base/src/Field/Control/useFieldControlValidation.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useEventCallback } from '../../utils/useEventCallback'; import { useFieldRootContext } from '../Root/FieldRootContext'; diff --git a/packages/mui-base/src/Field/Description/FieldDescription.tsx b/packages/mui-base/src/Field/Description/FieldDescription.tsx index 75b81f62cb..c970835b17 100644 --- a/packages/mui-base/src/Field/Description/FieldDescription.tsx +++ b/packages/mui-base/src/Field/Description/FieldDescription.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Field/Description/useFieldDescription.ts b/packages/mui-base/src/Field/Description/useFieldDescription.ts index aef1e5c1d5..78e0a16804 100644 --- a/packages/mui-base/src/Field/Description/useFieldDescription.ts +++ b/packages/mui-base/src/Field/Description/useFieldDescription.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useId } from '../../utils/useId'; diff --git a/packages/mui-base/src/Field/Error/FieldError.tsx b/packages/mui-base/src/Field/Error/FieldError.tsx index d2912e204d..4064b943f7 100644 --- a/packages/mui-base/src/Field/Error/FieldError.tsx +++ b/packages/mui-base/src/Field/Error/FieldError.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Field/Error/useFieldError.ts b/packages/mui-base/src/Field/Error/useFieldError.ts index 48023d2f6b..3a575e27b4 100644 --- a/packages/mui-base/src/Field/Error/useFieldError.ts +++ b/packages/mui-base/src/Field/Error/useFieldError.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useId } from '../../utils/useId'; diff --git a/packages/mui-base/src/Field/Label/FieldLabel.tsx b/packages/mui-base/src/Field/Label/FieldLabel.tsx index b2dbcafed3..9416691531 100644 --- a/packages/mui-base/src/Field/Label/FieldLabel.tsx +++ b/packages/mui-base/src/Field/Label/FieldLabel.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Field/Label/useFieldLabel.ts b/packages/mui-base/src/Field/Label/useFieldLabel.ts index e334073f0f..6b40441a15 100644 --- a/packages/mui-base/src/Field/Label/useFieldLabel.ts +++ b/packages/mui-base/src/Field/Label/useFieldLabel.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useFieldRootContext } from '../Root/FieldRootContext'; diff --git a/packages/mui-base/src/Field/Root/FieldRoot.tsx b/packages/mui-base/src/Field/Root/FieldRoot.tsx index f51759bad1..38aa860f77 100644 --- a/packages/mui-base/src/Field/Root/FieldRoot.tsx +++ b/packages/mui-base/src/Field/Root/FieldRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Field/Root/FieldRootContext.ts b/packages/mui-base/src/Field/Root/FieldRootContext.ts index 9b4bf87022..10e3dab2e6 100644 --- a/packages/mui-base/src/Field/Root/FieldRootContext.ts +++ b/packages/mui-base/src/Field/Root/FieldRootContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { DEFAULT_VALIDITY_STATE } from '../utils/constants'; import type { FieldRootOwnerState, FieldValidityData } from './FieldRoot.types'; diff --git a/packages/mui-base/src/Field/Validity/FieldValidity.tsx b/packages/mui-base/src/Field/Validity/FieldValidity.tsx index 4532c9ebaa..a22538d4a5 100644 --- a/packages/mui-base/src/Field/Validity/FieldValidity.tsx +++ b/packages/mui-base/src/Field/Validity/FieldValidity.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useFieldRootContext } from '../Root/FieldRootContext'; diff --git a/packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx b/packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx index ebe296fa63..f6297906d5 100644 --- a/packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx +++ b/packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { FieldsetLegendOwnerState, FieldsetLegendProps } from './FieldsetLegend.types'; diff --git a/packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts b/packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts index 6df86442ac..38408aad50 100644 --- a/packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts +++ b/packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useId } from '../../utils/useId'; diff --git a/packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx b/packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx index 37ca49489a..983e0ea4e0 100644 --- a/packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx +++ b/packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { FieldsetRootOwnerState, FieldsetRootProps } from './FieldsetRoot.types'; diff --git a/packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts b/packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts index 6b5b0cd96a..62fce84d6d 100644 --- a/packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts +++ b/packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; export interface FieldsetRootContextValue { diff --git a/packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts b/packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts index e06bf08103..a3763bae7f 100644 --- a/packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts +++ b/packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; /** diff --git a/packages/mui-base/src/Menu/Arrow/MenuArrow.tsx b/packages/mui-base/src/Menu/Arrow/MenuArrow.tsx index dcf8bb5719..c0522e7852 100644 --- a/packages/mui-base/src/Menu/Arrow/MenuArrow.tsx +++ b/packages/mui-base/src/Menu/Arrow/MenuArrow.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useMenuArrow } from './useMenuArrow'; diff --git a/packages/mui-base/src/Menu/Arrow/useMenuArrow.ts b/packages/mui-base/src/Menu/Arrow/useMenuArrow.ts index becddbf0ba..71c29f42b7 100644 --- a/packages/mui-base/src/Menu/Arrow/useMenuArrow.ts +++ b/packages/mui-base/src/Menu/Arrow/useMenuArrow.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { GenericHTMLProps } from '../../utils/types'; diff --git a/packages/mui-base/src/Menu/Item/MenuItem.tsx b/packages/mui-base/src/Menu/Item/MenuItem.tsx index 8e199a0fb0..3c893bd4cc 100644 --- a/packages/mui-base/src/Menu/Item/MenuItem.tsx +++ b/packages/mui-base/src/Menu/Item/MenuItem.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingEvents, useFloatingTree, useListItem } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/Item/useMenuItem.ts b/packages/mui-base/src/Menu/Item/useMenuItem.ts index 51bbd74b58..3e4aebe83e 100644 --- a/packages/mui-base/src/Menu/Item/useMenuItem.ts +++ b/packages/mui-base/src/Menu/Item/useMenuItem.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { FloatingEvents } from '@floating-ui/react'; import { useButton } from '../../useButton'; diff --git a/packages/mui-base/src/Menu/Popup/MenuPopup.tsx b/packages/mui-base/src/Menu/Popup/MenuPopup.tsx index ad77be5a40..8449b4407f 100644 --- a/packages/mui-base/src/Menu/Popup/MenuPopup.tsx +++ b/packages/mui-base/src/Menu/Popup/MenuPopup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { Side, useFloatingTree } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/Popup/useMenuPopup.ts b/packages/mui-base/src/Menu/Popup/useMenuPopup.ts index a7e200919a..5161bcad56 100644 --- a/packages/mui-base/src/Menu/Popup/useMenuPopup.ts +++ b/packages/mui-base/src/Menu/Popup/useMenuPopup.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { FloatingEvents } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx b/packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx index 48baa4ce14..d0b5115100 100644 --- a/packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx +++ b/packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { diff --git a/packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts b/packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts index 8e3ad8a1c2..8a62dd7699 100644 --- a/packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts +++ b/packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { Side } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts b/packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts index 781b27c83f..40d4a35fe6 100644 --- a/packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts +++ b/packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { Boundary, diff --git a/packages/mui-base/src/Menu/Root/MenuRoot.tsx b/packages/mui-base/src/Menu/Root/MenuRoot.tsx index 9de8d8957d..a528536de6 100644 --- a/packages/mui-base/src/Menu/Root/MenuRoot.tsx +++ b/packages/mui-base/src/Menu/Root/MenuRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingTree } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/Root/MenuRootContext.ts b/packages/mui-base/src/Menu/Root/MenuRootContext.ts index a834e3da4e..ef207f06fd 100644 --- a/packages/mui-base/src/Menu/Root/MenuRootContext.ts +++ b/packages/mui-base/src/Menu/Root/MenuRootContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { useMenuRoot } from './useMenuRoot'; diff --git a/packages/mui-base/src/Menu/Root/useMenuRoot.ts b/packages/mui-base/src/Menu/Root/useMenuRoot.ts index 1ae9ffada3..1f6918a47b 100644 --- a/packages/mui-base/src/Menu/Root/useMenuRoot.ts +++ b/packages/mui-base/src/Menu/Root/useMenuRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { safePolygon, diff --git a/packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx b/packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx index 18199835b6..fa0f66170c 100644 --- a/packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx +++ b/packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useFloatingTree, useListItem } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts b/packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts index a32b2960d4..3e17ec6e26 100644 --- a/packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts +++ b/packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { FloatingEvents } from '@floating-ui/react'; import { useMenuItem } from '../Item/useMenuItem'; diff --git a/packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx b/packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx index a73a95d25c..690b291778 100644 --- a/packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx +++ b/packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useFloatingTree } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts b/packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts index 90c3045892..4727412d47 100644 --- a/packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts +++ b/packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { FloatingEvents } from '@floating-ui/react'; diff --git a/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx b/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx index 2b4e5811a5..16ce4eaca4 100644 --- a/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx +++ b/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { NumberFieldDecrementProps } from './NumberFieldDecrement.types'; diff --git a/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx b/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx index 6c66f75dbc..3b5d74d94f 100644 --- a/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx +++ b/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { NumberFieldGroupProps } from './NumberFieldGroup.types'; diff --git a/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx b/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx index 2f1e7a2623..f98115081e 100644 --- a/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx +++ b/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { NumberFieldIncrementProps } from './NumberFieldIncrement.types'; diff --git a/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx b/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx index 626e5ac219..17886b4b01 100644 --- a/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx +++ b/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { NumberFieldInputProps } from './NumberFieldInput.types'; diff --git a/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts b/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts index 4c6db26508..4a35bc5c40 100644 --- a/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts +++ b/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { NumberFieldContextValue } from './NumberFieldRoot.types'; diff --git a/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx b/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx index b11a45f703..abda916cf4 100644 --- a/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx +++ b/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { NumberFieldContext } from './NumberFieldContext'; diff --git a/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts b/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts index 93679f96d2..f453c66834 100644 --- a/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts +++ b/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { UseNumberFieldRootParameters, diff --git a/packages/mui-base/src/NumberField/Root/useScrub.ts b/packages/mui-base/src/NumberField/Root/useScrub.ts index 605d64e017..a97c5a3943 100644 --- a/packages/mui-base/src/NumberField/Root/useScrub.ts +++ b/packages/mui-base/src/NumberField/Root/useScrub.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { ScrubHandle, ScrubParams } from './useScrub.types'; diff --git a/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx b/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx index 560f9c019a..285c4f8409 100644 --- a/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx +++ b/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { NumberFieldScrubAreaProps } from './NumberFieldScrubArea.types'; diff --git a/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx b/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx index 5c55a1c235..509ba6b73d 100644 --- a/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx +++ b/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; diff --git a/packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx b/packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx index 6079e7b378..80ac906774 100644 --- a/packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx +++ b/packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { PopoverArrowOwnerState, PopoverArrowProps } from './PopoverArrow.types'; diff --git a/packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts b/packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts index 1cf40918c9..7e294e5252 100644 --- a/packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts +++ b/packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx b/packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx index 5f503ac52f..25e4f7d1a0 100644 --- a/packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx +++ b/packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts b/packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts index 655d89032f..1f7eb3d467 100644 --- a/packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts +++ b/packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { UsePopoverBackdropReturnValue } from './usePopoverBackdrop.types'; diff --git a/packages/mui-base/src/Popover/Close/PopoverClose.tsx b/packages/mui-base/src/Popover/Close/PopoverClose.tsx index 35d494c6bc..573162cafd 100644 --- a/packages/mui-base/src/Popover/Close/PopoverClose.tsx +++ b/packages/mui-base/src/Popover/Close/PopoverClose.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Popover/Close/usePopoverClose.ts b/packages/mui-base/src/Popover/Close/usePopoverClose.ts index b345aff8ac..99fc7a699b 100644 --- a/packages/mui-base/src/Popover/Close/usePopoverClose.ts +++ b/packages/mui-base/src/Popover/Close/usePopoverClose.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/Popover/Description/PopoverDescription.tsx b/packages/mui-base/src/Popover/Description/PopoverDescription.tsx index 3b3b6a2bd4..25bc163d5b 100644 --- a/packages/mui-base/src/Popover/Description/PopoverDescription.tsx +++ b/packages/mui-base/src/Popover/Description/PopoverDescription.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Popover/Description/usePopoverDescription.ts b/packages/mui-base/src/Popover/Description/usePopoverDescription.ts index f9c274f6de..2d1c0d1e9b 100644 --- a/packages/mui-base/src/Popover/Description/usePopoverDescription.ts +++ b/packages/mui-base/src/Popover/Description/usePopoverDescription.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useEnhancedEffect } from '../../utils/useEnhancedEffect'; diff --git a/packages/mui-base/src/Popover/Popup/PopoverPopup.tsx b/packages/mui-base/src/Popover/Popup/PopoverPopup.tsx index 114c04b000..93d7bdce51 100644 --- a/packages/mui-base/src/Popover/Popup/PopoverPopup.tsx +++ b/packages/mui-base/src/Popover/Popup/PopoverPopup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { usePopoverRootContext } from '../Root/PopoverRootContext'; diff --git a/packages/mui-base/src/Popover/Popup/usePopoverPopup.ts b/packages/mui-base/src/Popover/Popup/usePopoverPopup.ts index 108c2c11a7..db7cb82caa 100644 --- a/packages/mui-base/src/Popover/Popup/usePopoverPopup.ts +++ b/packages/mui-base/src/Popover/Popup/usePopoverPopup.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx b/packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx index 076499bf85..0659b155b3 100644 --- a/packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx +++ b/packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Popover/Positioner/PopoverPositionerContext.ts b/packages/mui-base/src/Popover/Positioner/PopoverPositionerContext.ts index 59193681b8..b249d777b4 100644 --- a/packages/mui-base/src/Popover/Positioner/PopoverPositionerContext.ts +++ b/packages/mui-base/src/Popover/Positioner/PopoverPositionerContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { PopoverPositionerContextValue } from './PopoverPositioner.types'; diff --git a/packages/mui-base/src/Popover/Positioner/usePopoverPositioner.tsx b/packages/mui-base/src/Popover/Positioner/usePopoverPositioner.tsx index 74eec88dfe..2102190b4c 100644 --- a/packages/mui-base/src/Popover/Positioner/usePopoverPositioner.tsx +++ b/packages/mui-base/src/Popover/Positioner/usePopoverPositioner.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { UsePopoverPositionerParameters, diff --git a/packages/mui-base/src/Popover/Root/PopoverRoot.tsx b/packages/mui-base/src/Popover/Root/PopoverRoot.tsx index 9f5fda3e11..db4994a629 100644 --- a/packages/mui-base/src/Popover/Root/PopoverRoot.tsx +++ b/packages/mui-base/src/Popover/Root/PopoverRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { PopoverRootProps, PopoverRootContextValue } from './PopoverRoot.types'; diff --git a/packages/mui-base/src/Popover/Root/PopoverRootContext.ts b/packages/mui-base/src/Popover/Root/PopoverRootContext.ts index 145e157e68..52c7529c1a 100644 --- a/packages/mui-base/src/Popover/Root/PopoverRootContext.ts +++ b/packages/mui-base/src/Popover/Root/PopoverRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { PopoverRootContextValue } from './PopoverRoot.types'; diff --git a/packages/mui-base/src/Popover/Root/usePopoverRoot.ts b/packages/mui-base/src/Popover/Root/usePopoverRoot.ts index 0cc2ceb93b..8104303cf2 100644 --- a/packages/mui-base/src/Popover/Root/usePopoverRoot.ts +++ b/packages/mui-base/src/Popover/Root/usePopoverRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { diff --git a/packages/mui-base/src/Popover/Title/PopoverTitle.tsx b/packages/mui-base/src/Popover/Title/PopoverTitle.tsx index 697d5ca69c..c14edc7631 100644 --- a/packages/mui-base/src/Popover/Title/PopoverTitle.tsx +++ b/packages/mui-base/src/Popover/Title/PopoverTitle.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Popover/Title/usePopoverTitle.ts b/packages/mui-base/src/Popover/Title/usePopoverTitle.ts index 58a1fea77f..3a6d882565 100644 --- a/packages/mui-base/src/Popover/Title/usePopoverTitle.ts +++ b/packages/mui-base/src/Popover/Title/usePopoverTitle.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useEnhancedEffect } from '../../utils/useEnhancedEffect'; diff --git a/packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx b/packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx index 72df5dfe32..1a891e98fa 100644 --- a/packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx +++ b/packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { PopoverTriggerOwnerState, PopoverTriggerProps } from './PopoverTrigger.types'; diff --git a/packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx b/packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx index 49d7bb82cf..d5e604f7a9 100644 --- a/packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx +++ b/packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts b/packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts index 9fa7b18b43..4f53fda785 100644 --- a/packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts +++ b/packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx b/packages/mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx index 88cb4217c4..a1861dff9f 100644 --- a/packages/mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx +++ b/packages/mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts b/packages/mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts index cdb0850d7e..7c029442a1 100644 --- a/packages/mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts +++ b/packages/mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { UsePreviewCardBackdropReturnValue } from './usePreviewCardBackdrop.types'; diff --git a/packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx b/packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx index 586fa1321f..98de491ba8 100644 --- a/packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx +++ b/packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts b/packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts index 4aeeccd7a0..df07e686af 100644 --- a/packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts +++ b/packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositioner.tsx b/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositioner.tsx index c52116ed55..22c8545d00 100644 --- a/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositioner.tsx +++ b/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositioner.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositionerContext.ts b/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositionerContext.ts index dd8c624ae7..4df1b9878f 100644 --- a/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositionerContext.ts +++ b/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositionerContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { PreviewCardPositionerContextValue } from './PreviewCardPositioner.types'; diff --git a/packages/mui-base/src/PreviewCard/Positioner/usePreviewCardPositioner.ts b/packages/mui-base/src/PreviewCard/Positioner/usePreviewCardPositioner.ts index b1a71fda4d..53e66f18b5 100644 --- a/packages/mui-base/src/PreviewCard/Positioner/usePreviewCardPositioner.ts +++ b/packages/mui-base/src/PreviewCard/Positioner/usePreviewCardPositioner.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { UsePreviewCardPositionerParameters, diff --git a/packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts b/packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts index 9ed6240757..5a0e564e99 100644 --- a/packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts +++ b/packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { PreviewCardRootContextValue } from './PreviewCardRoot.types'; diff --git a/packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx b/packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx index c0b9101ce1..16181ac944 100644 --- a/packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx +++ b/packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { PreviewCardRootProps } from './PreviewCardRoot.types'; diff --git a/packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts b/packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts index 0453d9ba46..d5194aa4d0 100644 --- a/packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts +++ b/packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { diff --git a/packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx b/packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx index 33ccbdbafb..08a5457863 100644 --- a/packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx +++ b/packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts b/packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts index 2e79aae684..5ac8c41e02 100644 --- a/packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts +++ b/packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { getWindow, isHTMLElement } from '@floating-ui/utils/dom'; import type { FloatingRootContext, ElementProps } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx b/packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx index 180072c34c..809ab7b3f5 100644 --- a/packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx +++ b/packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Progress/Indicator/useProgressIndicator.ts b/packages/mui-base/src/Progress/Indicator/useProgressIndicator.ts index 883501567a..d42b48bd31 100644 --- a/packages/mui-base/src/Progress/Indicator/useProgressIndicator.ts +++ b/packages/mui-base/src/Progress/Indicator/useProgressIndicator.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { diff --git a/packages/mui-base/src/Progress/Root/ProgressContext.tsx b/packages/mui-base/src/Progress/Root/ProgressContext.tsx index d0a2ebce69..2aa94ab24d 100644 --- a/packages/mui-base/src/Progress/Root/ProgressContext.tsx +++ b/packages/mui-base/src/Progress/Root/ProgressContext.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { ProgressContextValue } from './ProgressRoot.types'; diff --git a/packages/mui-base/src/Progress/Root/ProgressRoot.tsx b/packages/mui-base/src/Progress/Root/ProgressRoot.tsx index 6e3787d3ba..db11a60e74 100644 --- a/packages/mui-base/src/Progress/Root/ProgressRoot.tsx +++ b/packages/mui-base/src/Progress/Root/ProgressRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Progress/Root/useProgressRoot.ts b/packages/mui-base/src/Progress/Root/useProgressRoot.ts index 6019ad2a2f..2d90523f12 100644 --- a/packages/mui-base/src/Progress/Root/useProgressRoot.ts +++ b/packages/mui-base/src/Progress/Root/useProgressRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { diff --git a/packages/mui-base/src/Progress/Track/ProgressTrack.tsx b/packages/mui-base/src/Progress/Track/ProgressTrack.tsx index c18036eae8..5623ce37fa 100644 --- a/packages/mui-base/src/Progress/Track/ProgressTrack.tsx +++ b/packages/mui-base/src/Progress/Track/ProgressTrack.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx b/packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx index 5a1e3190ff..fe666535aa 100644 --- a/packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx +++ b/packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { BaseUIComponentProps } from '../../utils/types'; diff --git a/packages/mui-base/src/Radio/Root/RadioRoot.tsx b/packages/mui-base/src/Radio/Root/RadioRoot.tsx index 0cabffef11..11f3814b03 100644 --- a/packages/mui-base/src/Radio/Root/RadioRoot.tsx +++ b/packages/mui-base/src/Radio/Root/RadioRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { BaseUIComponentProps } from '../../utils/types'; diff --git a/packages/mui-base/src/Radio/Root/RadioRootContext.ts b/packages/mui-base/src/Radio/Root/RadioRootContext.ts index 660bbc371a..cd9e8c5261 100644 --- a/packages/mui-base/src/Radio/Root/RadioRootContext.ts +++ b/packages/mui-base/src/Radio/Root/RadioRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; export interface RadioRootContext { diff --git a/packages/mui-base/src/Radio/Root/useRadioRoot.tsx b/packages/mui-base/src/Radio/Root/useRadioRoot.tsx index 87dda643b5..8c0f85f958 100644 --- a/packages/mui-base/src/Radio/Root/useRadioRoot.tsx +++ b/packages/mui-base/src/Radio/Root/useRadioRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { visuallyHidden } from '../../utils/visuallyHidden'; diff --git a/packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx b/packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx index 2fc5100a3d..9999c0bca2 100644 --- a/packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx +++ b/packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { BaseUIComponentProps } from '../../utils/types'; diff --git a/packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts b/packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts index 2aef2556ed..193865a69a 100644 --- a/packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts +++ b/packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { NOOP } from '../../utils/noop'; diff --git a/packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts b/packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts index 667da5542c..726f4db01c 100644 --- a/packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts +++ b/packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { contains } from '@floating-ui/react/utils'; import { mergeReactProps } from '../../utils/mergeReactProps'; diff --git a/packages/mui-base/src/Slider/Control/SliderControl.tsx b/packages/mui-base/src/Slider/Control/SliderControl.tsx index b16b8bca60..8d5b509b6b 100644 --- a/packages/mui-base/src/Slider/Control/SliderControl.tsx +++ b/packages/mui-base/src/Slider/Control/SliderControl.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Slider/Control/useSliderControl.ts b/packages/mui-base/src/Slider/Control/useSliderControl.ts index 5937fbbed4..e8f11ba073 100644 --- a/packages/mui-base/src/Slider/Control/useSliderControl.ts +++ b/packages/mui-base/src/Slider/Control/useSliderControl.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { ownerDocument } from '../../utils/owner'; diff --git a/packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx b/packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx index ee5e59e736..f255963a6c 100644 --- a/packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx +++ b/packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts b/packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts index 7909c9f0b6..1502366018 100644 --- a/packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts +++ b/packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { diff --git a/packages/mui-base/src/Slider/Output/SliderOutput.tsx b/packages/mui-base/src/Slider/Output/SliderOutput.tsx index 3919e035df..754b3d0191 100644 --- a/packages/mui-base/src/Slider/Output/SliderOutput.tsx +++ b/packages/mui-base/src/Slider/Output/SliderOutput.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Slider/Output/useSliderOutput.ts b/packages/mui-base/src/Slider/Output/useSliderOutput.ts index 111b7e0473..5ab94e37a3 100644 --- a/packages/mui-base/src/Slider/Output/useSliderOutput.ts +++ b/packages/mui-base/src/Slider/Output/useSliderOutput.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { UseSliderOutputParameters, UseSliderOutputReturnValue } from './SliderOutput.types'; diff --git a/packages/mui-base/src/Slider/Root/SliderProvider.tsx b/packages/mui-base/src/Slider/Root/SliderProvider.tsx index 7e3e158a32..e940e59cd7 100644 --- a/packages/mui-base/src/Slider/Root/SliderProvider.tsx +++ b/packages/mui-base/src/Slider/Root/SliderProvider.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { CompoundComponentContext } from '../../useCompound'; diff --git a/packages/mui-base/src/Slider/Root/SliderRoot.tsx b/packages/mui-base/src/Slider/Root/SliderRoot.tsx index eece890d48..d49c15589d 100644 --- a/packages/mui-base/src/Slider/Root/SliderRoot.tsx +++ b/packages/mui-base/src/Slider/Root/SliderRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Slider/Root/useSliderRoot.ts b/packages/mui-base/src/Slider/Root/useSliderRoot.ts index d295ce8040..8aa0ffb9f2 100644 --- a/packages/mui-base/src/Slider/Root/useSliderRoot.ts +++ b/packages/mui-base/src/Slider/Root/useSliderRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { areArraysEqual } from '../../utils/areArraysEqual'; import { clamp } from '../../utils/clamp'; diff --git a/packages/mui-base/src/Slider/Thumb/SliderThumb.tsx b/packages/mui-base/src/Slider/Thumb/SliderThumb.tsx index 76e1381878..cda532942d 100644 --- a/packages/mui-base/src/Slider/Thumb/SliderThumb.tsx +++ b/packages/mui-base/src/Slider/Thumb/SliderThumb.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { getStyleHookProps } from '../../utils/getStyleHookProps'; diff --git a/packages/mui-base/src/Slider/Thumb/useSliderThumb.ts b/packages/mui-base/src/Slider/Thumb/useSliderThumb.ts index b386f753e3..48d8f3046c 100644 --- a/packages/mui-base/src/Slider/Thumb/useSliderThumb.ts +++ b/packages/mui-base/src/Slider/Thumb/useSliderThumb.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import { useForkRef } from '../../utils/useForkRef'; diff --git a/packages/mui-base/src/Slider/Track/SliderTrack.tsx b/packages/mui-base/src/Slider/Track/SliderTrack.tsx index 969adfee2e..54c5d6b36e 100644 --- a/packages/mui-base/src/Slider/Track/SliderTrack.tsx +++ b/packages/mui-base/src/Slider/Track/SliderTrack.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useComponentRenderer } from '../../utils/useComponentRenderer'; diff --git a/packages/mui-base/src/Switch/Root/SwitchContext.ts b/packages/mui-base/src/Switch/Root/SwitchContext.ts index c2366b6127..94a4c88b01 100644 --- a/packages/mui-base/src/Switch/Root/SwitchContext.ts +++ b/packages/mui-base/src/Switch/Root/SwitchContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { type SwitchOwnerState } from './SwitchRoot.types'; diff --git a/packages/mui-base/src/Switch/Root/SwitchRoot.tsx b/packages/mui-base/src/Switch/Root/SwitchRoot.tsx index 14fc96f096..ca3afd8c7f 100644 --- a/packages/mui-base/src/Switch/Root/SwitchRoot.tsx +++ b/packages/mui-base/src/Switch/Root/SwitchRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import refType from '@mui/utils/refType'; diff --git a/packages/mui-base/src/Switch/Root/useSwitchRoot.ts b/packages/mui-base/src/Switch/Root/useSwitchRoot.ts index 60ecf82407..11f311b634 100644 --- a/packages/mui-base/src/Switch/Root/useSwitchRoot.ts +++ b/packages/mui-base/src/Switch/Root/useSwitchRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { UseSwitchRootParameters, UseSwitchRootReturnValue } from './SwitchRoot.types'; import { useControlled } from '../../utils/useControlled'; diff --git a/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx b/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx index 5ecb02c140..22063fcbdf 100644 --- a/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx +++ b/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { SwitchThumbProps } from './SwitchThumb.types'; diff --git a/packages/mui-base/src/Tabs/Root/TabsContext.ts b/packages/mui-base/src/Tabs/Root/TabsContext.ts index 63c238fa4d..fb206cbca8 100644 --- a/packages/mui-base/src/Tabs/Root/TabsContext.ts +++ b/packages/mui-base/src/Tabs/Root/TabsContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { type TabActivationDirection } from './TabsRoot.types'; diff --git a/packages/mui-base/src/Tabs/Root/TabsProvider.tsx b/packages/mui-base/src/Tabs/Root/TabsProvider.tsx index fdef97885f..2c53b552e4 100644 --- a/packages/mui-base/src/Tabs/Root/TabsProvider.tsx +++ b/packages/mui-base/src/Tabs/Root/TabsProvider.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { TabsContext, TabsContextValue } from './TabsContext'; diff --git a/packages/mui-base/src/Tabs/Root/TabsRoot.tsx b/packages/mui-base/src/Tabs/Root/TabsRoot.tsx index 82473bc322..220bf7a8ba 100644 --- a/packages/mui-base/src/Tabs/Root/TabsRoot.tsx +++ b/packages/mui-base/src/Tabs/Root/TabsRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { TabsRootOwnerState, TabsRootProps } from './TabsRoot.types'; diff --git a/packages/mui-base/src/Tabs/Root/useTabsRoot.ts b/packages/mui-base/src/Tabs/Root/useTabsRoot.ts index fb1e39a8a5..c8d9e44f8b 100644 --- a/packages/mui-base/src/Tabs/Root/useTabsRoot.ts +++ b/packages/mui-base/src/Tabs/Root/useTabsRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { TabActivationDirection, diff --git a/packages/mui-base/src/Tabs/Tab/Tab.tsx b/packages/mui-base/src/Tabs/Tab/Tab.tsx index 06d1a31aae..3e912237c6 100644 --- a/packages/mui-base/src/Tabs/Tab/Tab.tsx +++ b/packages/mui-base/src/Tabs/Tab/Tab.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { TabProps, TabOwnerState } from './Tab.types'; diff --git a/packages/mui-base/src/Tabs/Tab/useTab.ts b/packages/mui-base/src/Tabs/Tab/useTab.ts index e86fa82e48..94da501624 100644 --- a/packages/mui-base/src/Tabs/Tab/useTab.ts +++ b/packages/mui-base/src/Tabs/Tab/useTab.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { UseTabParameters, UseTabReturnValue } from './Tab.types'; import { useTabsContext } from '../Root/TabsContext'; diff --git a/packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx b/packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx index d22e30a8ae..0acf52d993 100644 --- a/packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx +++ b/packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useTabIndicator } from './useTabIndicator'; diff --git a/packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts b/packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts index faae74df1e..31aa9c52fa 100644 --- a/packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts +++ b/packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { UseTabIndicatorReturnValue } from './TabIndicator.types'; import { useTabsListContext } from '../TabsList/TabsListContext'; diff --git a/packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx b/packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx index b2516b945e..18c78fecf5 100644 --- a/packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx +++ b/packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useTabPanel } from './useTabPanel'; diff --git a/packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts b/packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts index ee111a13bd..88c4104163 100644 --- a/packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts +++ b/packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { UseTabPanelParameters, UseTabPanelReturnValue } from './TabPanel.types'; import { useTabsContext } from '../Root/TabsContext'; diff --git a/packages/mui-base/src/Tabs/TabsList/TabsList.tsx b/packages/mui-base/src/Tabs/TabsList/TabsList.tsx index 8fdd47649d..801f7a95da 100644 --- a/packages/mui-base/src/Tabs/TabsList/TabsList.tsx +++ b/packages/mui-base/src/Tabs/TabsList/TabsList.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { TabsListOwnerState, TabsListProps } from './TabsList.types'; diff --git a/packages/mui-base/src/Tabs/TabsList/TabsListContext.ts b/packages/mui-base/src/Tabs/TabsList/TabsListContext.ts index b23b4f726a..3b63d4cb54 100644 --- a/packages/mui-base/src/Tabs/TabsList/TabsListContext.ts +++ b/packages/mui-base/src/Tabs/TabsList/TabsListContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; export type TabsListContextValue = { diff --git a/packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx b/packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx index a7e042824f..eca9c4fda7 100644 --- a/packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx +++ b/packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { TabsListContext, TabsListContextValue } from './TabsListContext'; diff --git a/packages/mui-base/src/Tabs/TabsList/useTabsList.ts b/packages/mui-base/src/Tabs/TabsList/useTabsList.ts index 504733363f..39c1d21915 100644 --- a/packages/mui-base/src/Tabs/TabsList/useTabsList.ts +++ b/packages/mui-base/src/Tabs/TabsList/useTabsList.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { TabsListActionTypes, diff --git a/packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx b/packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx index 6e5dba8305..d4b735ba14 100644 --- a/packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx +++ b/packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { TooltipArrowOwnerState, TooltipArrowProps } from './TooltipArrow.types'; diff --git a/packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts b/packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts index ca2462409b..d65ce2e7cb 100644 --- a/packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts +++ b/packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx b/packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx index f3bc1e440e..951cf492ec 100644 --- a/packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx +++ b/packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { TooltipPopupOwnerState, TooltipPopupProps } from './TooltipPopup.types'; diff --git a/packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts b/packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts index 42606a18f7..6aa1b0acee 100644 --- a/packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts +++ b/packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { mergeReactProps } from '../../utils/mergeReactProps'; import type { diff --git a/packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx b/packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx index 359b61a1df..fa85b39d85 100644 --- a/packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx +++ b/packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingPortal } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts b/packages/mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts index 4439c3aa5d..3dbdc83d0d 100644 --- a/packages/mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts +++ b/packages/mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { TooltipPositionerContextValue } from './TooltipPositioner.types'; diff --git a/packages/mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts b/packages/mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts index 0ba700b14b..0f44c06a37 100644 --- a/packages/mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts +++ b/packages/mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import type { UseTooltipPositionerParameters, diff --git a/packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx b/packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx index 4a94d89c93..1f8602ea68 100644 --- a/packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx +++ b/packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { FloatingDelayGroup } from '@floating-ui/react'; diff --git a/packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx b/packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx index 7097f08448..0dc1e6dd12 100644 --- a/packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx +++ b/packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import type { TooltipRootProps } from './TooltipRoot.types'; diff --git a/packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts b/packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts index 7cdab58e5c..4358abb30f 100644 --- a/packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts +++ b/packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import type { TooltipRootContextValue } from './TooltipRoot.types'; diff --git a/packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts b/packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts index 27b70dd7ce..63ca88344d 100644 --- a/packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts +++ b/packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { diff --git a/packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx b/packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx index bbc43f72fe..ca930591e2 100644 --- a/packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx +++ b/packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { useTooltipRootContext } from '../Root/TooltipRootContext'; diff --git a/packages/mui-base/src/legacy/ClickAwayListener/ClickAwayListener.tsx b/packages/mui-base/src/legacy/ClickAwayListener/ClickAwayListener.tsx index dbdfcee7f0..ea7b2eb0ca 100644 --- a/packages/mui-base/src/legacy/ClickAwayListener/ClickAwayListener.tsx +++ b/packages/mui-base/src/legacy/ClickAwayListener/ClickAwayListener.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { diff --git a/packages/mui-base/src/legacy/FocusTrap/FocusTrap.tsx b/packages/mui-base/src/legacy/FocusTrap/FocusTrap.tsx index bd52658ac9..e4f2a12246 100644 --- a/packages/mui-base/src/legacy/FocusTrap/FocusTrap.tsx +++ b/packages/mui-base/src/legacy/FocusTrap/FocusTrap.tsx @@ -1,4 +1,5 @@ 'use client'; + /* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */ import * as React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/mui-base/src/legacy/FormControl/FormControl.tsx b/packages/mui-base/src/legacy/FormControl/FormControl.tsx index 54dd993c7c..d8fb310752 100644 --- a/packages/mui-base/src/legacy/FormControl/FormControl.tsx +++ b/packages/mui-base/src/legacy/FormControl/FormControl.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import useControlled from '@mui/utils/useControlled'; diff --git a/packages/mui-base/src/legacy/FormControl/useFormControlContext.ts b/packages/mui-base/src/legacy/FormControl/useFormControlContext.ts index 19457e8168..1e9b4c2bf1 100644 --- a/packages/mui-base/src/legacy/FormControl/useFormControlContext.ts +++ b/packages/mui-base/src/legacy/FormControl/useFormControlContext.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { UseFormControlContextReturnValue } from './FormControl.types'; import { FormControlContext } from './FormControlContext'; diff --git a/packages/mui-base/src/legacy/MultiSelect/MultiSelect.tsx b/packages/mui-base/src/legacy/MultiSelect/MultiSelect.tsx index 1f2f842fc8..17f1c0ea05 100644 --- a/packages/mui-base/src/legacy/MultiSelect/MultiSelect.tsx +++ b/packages/mui-base/src/legacy/MultiSelect/MultiSelect.tsx @@ -1,4 +1,5 @@ 'use client'; + let warnedOnce = false; const warn = () => { diff --git a/packages/mui-base/src/legacy/NoSsr/NoSsr.tsx b/packages/mui-base/src/legacy/NoSsr/NoSsr.tsx index e2abe25adf..486b0d7e82 100644 --- a/packages/mui-base/src/legacy/NoSsr/NoSsr.tsx +++ b/packages/mui-base/src/legacy/NoSsr/NoSsr.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { exactProp, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; diff --git a/packages/mui-base/src/legacy/Option/Option.tsx b/packages/mui-base/src/legacy/Option/Option.tsx index 57c9ce7a8f..ac14595cd9 100644 --- a/packages/mui-base/src/legacy/Option/Option.tsx +++ b/packages/mui-base/src/legacy/Option/Option.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; diff --git a/packages/mui-base/src/legacy/OptionGroup/OptionGroup.tsx b/packages/mui-base/src/legacy/OptionGroup/OptionGroup.tsx index 17a5b58445..a9a6e4a4a5 100644 --- a/packages/mui-base/src/legacy/OptionGroup/OptionGroup.tsx +++ b/packages/mui-base/src/legacy/OptionGroup/OptionGroup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; diff --git a/packages/mui-base/src/legacy/Portal/Portal.tsx b/packages/mui-base/src/legacy/Portal/Portal.tsx index c7b5c403de..ba3c0a7cde 100644 --- a/packages/mui-base/src/legacy/Portal/Portal.tsx +++ b/packages/mui-base/src/legacy/Portal/Portal.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import * as ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; diff --git a/packages/mui-base/src/legacy/Select/Select.tsx b/packages/mui-base/src/legacy/Select/Select.tsx index 12f292fce7..7490a84ba6 100644 --- a/packages/mui-base/src/legacy/Select/Select.tsx +++ b/packages/mui-base/src/legacy/Select/Select.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; diff --git a/packages/mui-base/src/legacy/Snackbar/Snackbar.tsx b/packages/mui-base/src/legacy/Snackbar/Snackbar.tsx index ae1457dd51..36aa994d6b 100644 --- a/packages/mui-base/src/legacy/Snackbar/Snackbar.tsx +++ b/packages/mui-base/src/legacy/Snackbar/Snackbar.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { ClickAwayListener } from '../ClickAwayListener'; diff --git a/packages/mui-base/src/legacy/TablePagination/TablePagination.tsx b/packages/mui-base/src/legacy/TablePagination/TablePagination.tsx index 11671bafa6..258d8b410c 100644 --- a/packages/mui-base/src/legacy/TablePagination/TablePagination.tsx +++ b/packages/mui-base/src/legacy/TablePagination/TablePagination.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { unstable_useId as useId, chainPropTypes, integerPropType } from '@mui/utils'; diff --git a/packages/mui-base/src/legacy/TablePagination/TablePaginationActions.tsx b/packages/mui-base/src/legacy/TablePagination/TablePaginationActions.tsx index dba1aa837b..d7423a1c67 100644 --- a/packages/mui-base/src/legacy/TablePagination/TablePaginationActions.tsx +++ b/packages/mui-base/src/legacy/TablePagination/TablePaginationActions.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; diff --git a/packages/mui-base/src/legacy/TextareaAutosize/TextareaAutosize.tsx b/packages/mui-base/src/legacy/TextareaAutosize/TextareaAutosize.tsx index 7bc5aaae99..7c7f1e5594 100644 --- a/packages/mui-base/src/legacy/TextareaAutosize/TextareaAutosize.tsx +++ b/packages/mui-base/src/legacy/TextareaAutosize/TextareaAutosize.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { diff --git a/packages/mui-base/src/legacy/Unstable_Popup/Popup.tsx b/packages/mui-base/src/legacy/Unstable_Popup/Popup.tsx index 138c151178..812c92d253 100644 --- a/packages/mui-base/src/legacy/Unstable_Popup/Popup.tsx +++ b/packages/mui-base/src/legacy/Unstable_Popup/Popup.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import PropTypes from 'prop-types'; import { diff --git a/packages/mui-base/src/legacy/useAutocomplete/useAutocomplete.ts b/packages/mui-base/src/legacy/useAutocomplete/useAutocomplete.ts index d6cb9cc157..0e3fa7dbff 100644 --- a/packages/mui-base/src/legacy/useAutocomplete/useAutocomplete.ts +++ b/packages/mui-base/src/legacy/useAutocomplete/useAutocomplete.ts @@ -1,6 +1,7 @@ // @ts-nocheck TODO: remove when all types are annotated and errors fixed. /* eslint-disable no-constant-condition */ 'use client'; + import * as React from 'react'; import { unstable_setRef as setRef, diff --git a/packages/mui-base/src/legacy/useOption/useOption.ts b/packages/mui-base/src/legacy/useOption/useOption.ts index 999cb79ee5..92547917cf 100644 --- a/packages/mui-base/src/legacy/useOption/useOption.ts +++ b/packages/mui-base/src/legacy/useOption/useOption.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useForkRef as useForkRef, unstable_useId as useId } from '@mui/utils'; import { SelectOption, UseOptionParameters, UseOptionReturnValue } from './useOption.types'; diff --git a/packages/mui-base/src/legacy/useOption/useOptionContextStabilizer.ts b/packages/mui-base/src/legacy/useOption/useOptionContextStabilizer.ts index f607ea9349..889e26a4ae 100644 --- a/packages/mui-base/src/legacy/useOption/useOptionContextStabilizer.ts +++ b/packages/mui-base/src/legacy/useOption/useOptionContextStabilizer.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { ListContext, ListContextValue } from '../../useList'; diff --git a/packages/mui-base/src/legacy/useSelect/SelectProvider.tsx b/packages/mui-base/src/legacy/useSelect/SelectProvider.tsx index 9ae9d12f9b..2691790127 100644 --- a/packages/mui-base/src/legacy/useSelect/SelectProvider.tsx +++ b/packages/mui-base/src/legacy/useSelect/SelectProvider.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { ListContext, ListContextValue } from '../../useList/ListContext'; import { SelectOption } from '../useOption'; diff --git a/packages/mui-base/src/legacy/useSelect/useSelect.ts b/packages/mui-base/src/legacy/useSelect/useSelect.ts index 89e072e06e..99ea36338c 100644 --- a/packages/mui-base/src/legacy/useSelect/useSelect.ts +++ b/packages/mui-base/src/legacy/useSelect/useSelect.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useForkRef as useForkRef, diff --git a/packages/mui-base/src/legacy/useSnackbar/useSnackbar.ts b/packages/mui-base/src/legacy/useSnackbar/useSnackbar.ts index 14f97623da..d627d0fe48 100644 --- a/packages/mui-base/src/legacy/useSnackbar/useSnackbar.ts +++ b/packages/mui-base/src/legacy/useSnackbar/useSnackbar.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useEventCallback as useEventCallback, diff --git a/packages/mui-base/src/legacy/useTransition/useTransitionStateManager.ts b/packages/mui-base/src/legacy/useTransition/useTransitionStateManager.ts index 55d701cbd7..f41953ab09 100644 --- a/packages/mui-base/src/legacy/useTransition/useTransitionStateManager.ts +++ b/packages/mui-base/src/legacy/useTransition/useTransitionStateManager.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { TransitionContext } from './TransitionContext'; diff --git a/packages/mui-base/src/legacy/useTransition/useTransitionTrigger.ts b/packages/mui-base/src/legacy/useTransition/useTransitionTrigger.ts index f3e925b371..a2aa14bebc 100644 --- a/packages/mui-base/src/legacy/useTransition/useTransitionTrigger.ts +++ b/packages/mui-base/src/legacy/useTransition/useTransitionTrigger.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { TransitionContextValue } from './TransitionContext'; diff --git a/packages/mui-base/src/legacy/utils/ClassNameConfigurator.tsx b/packages/mui-base/src/legacy/utils/ClassNameConfigurator.tsx index 7c05240b84..3ccd2e2e89 100644 --- a/packages/mui-base/src/legacy/utils/ClassNameConfigurator.tsx +++ b/packages/mui-base/src/legacy/utils/ClassNameConfigurator.tsx @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; type ClassNameConfiguration = { diff --git a/packages/mui-base/src/legacy/utils/useSlotProps.ts b/packages/mui-base/src/legacy/utils/useSlotProps.ts index 29f4052a45..5b13d094af 100644 --- a/packages/mui-base/src/legacy/utils/useSlotProps.ts +++ b/packages/mui-base/src/legacy/utils/useSlotProps.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useForkRef } from '../../utils/useForkRef'; import { appendOwnerState, AppendOwnerStateReturnType } from './appendOwnerState'; diff --git a/packages/mui-base/src/useButton/useButton.ts b/packages/mui-base/src/useButton/useButton.ts index f9eab7bb28..dd57effe9f 100644 --- a/packages/mui-base/src/useButton/useButton.ts +++ b/packages/mui-base/src/useButton/useButton.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useForkRef as useForkRef, diff --git a/packages/mui-base/src/useCompound/useCompoundItem.ts b/packages/mui-base/src/useCompound/useCompoundItem.ts index 1c65a8d8da..1a52f12c2c 100644 --- a/packages/mui-base/src/useCompound/useCompoundItem.ts +++ b/packages/mui-base/src/useCompound/useCompoundItem.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; import { diff --git a/packages/mui-base/src/useCompound/useCompoundParent.ts b/packages/mui-base/src/useCompound/useCompoundParent.ts index 8cc2dad24b..f9ccbf71e1 100644 --- a/packages/mui-base/src/useCompound/useCompoundParent.ts +++ b/packages/mui-base/src/useCompound/useCompoundParent.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; interface RegisterItemReturnValue { diff --git a/packages/mui-base/src/useList/ListContext.ts b/packages/mui-base/src/useList/ListContext.ts index b1f8aea95d..9962dc4638 100644 --- a/packages/mui-base/src/useList/ListContext.ts +++ b/packages/mui-base/src/useList/ListContext.ts @@ -1,3 +1,5 @@ +'use client'; + import * as React from 'react'; import { ListAction } from './listActions.types'; import { ListItemState } from './useList.types'; diff --git a/packages/mui-base/src/useList/useList.ts b/packages/mui-base/src/useList/useList.ts index 92f922e3c0..43a147a818 100644 --- a/packages/mui-base/src/useList/useList.ts +++ b/packages/mui-base/src/useList/useList.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { diff --git a/packages/mui-base/src/useList/useListItem.ts b/packages/mui-base/src/useList/useListItem.ts index 9999748450..29b2dc860c 100644 --- a/packages/mui-base/src/useList/useListItem.ts +++ b/packages/mui-base/src/useList/useListItem.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { extractEventHandlers } from '../utils/extractEventHandlers'; import { EventHandlers } from '../utils/types'; diff --git a/packages/mui-base/src/utils/useAnchorPositioning.ts b/packages/mui-base/src/utils/useAnchorPositioning.ts index ee15ef9585..f1b5e31309 100644 --- a/packages/mui-base/src/utils/useAnchorPositioning.ts +++ b/packages/mui-base/src/utils/useAnchorPositioning.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { autoUpdate, diff --git a/packages/mui-base/src/utils/useAnimationsFinished.ts b/packages/mui-base/src/utils/useAnimationsFinished.ts index df2ade6c03..0f6c32daac 100644 --- a/packages/mui-base/src/utils/useAnimationsFinished.ts +++ b/packages/mui-base/src/utils/useAnimationsFinished.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useEventCallback } from './useEventCallback'; diff --git a/packages/mui-base/src/utils/useControllableReducer.ts b/packages/mui-base/src/utils/useControllableReducer.ts index 544a46e84a..b50c54f934 100644 --- a/packages/mui-base/src/utils/useControllableReducer.ts +++ b/packages/mui-base/src/utils/useControllableReducer.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { ActionWithContext, diff --git a/packages/mui-base/src/utils/useForcedRerendering.ts b/packages/mui-base/src/utils/useForcedRerendering.ts index 6852cf8182..ea22db467e 100644 --- a/packages/mui-base/src/utils/useForcedRerendering.ts +++ b/packages/mui-base/src/utils/useForcedRerendering.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; /** diff --git a/packages/mui-base/src/utils/useLatestRef.ts b/packages/mui-base/src/utils/useLatestRef.ts index f55403a8e1..3c0ade7cb1 100644 --- a/packages/mui-base/src/utils/useLatestRef.ts +++ b/packages/mui-base/src/utils/useLatestRef.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useEnhancedEffect } from './useEnhancedEffect'; diff --git a/packages/mui-base/src/utils/useRootElementName.ts b/packages/mui-base/src/utils/useRootElementName.ts index 607a67fe49..2a5efe4c13 100644 --- a/packages/mui-base/src/utils/useRootElementName.ts +++ b/packages/mui-base/src/utils/useRootElementName.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; type UseRootElementNameParameters = { diff --git a/packages/mui-base/src/utils/useTextNavigation.ts b/packages/mui-base/src/utils/useTextNavigation.ts index 7ebdeeef9c..a3f227c143 100644 --- a/packages/mui-base/src/utils/useTextNavigation.ts +++ b/packages/mui-base/src/utils/useTextNavigation.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; const TEXT_NAVIGATION_RESET_TIMEOUT = 500; // milliseconds diff --git a/packages/mui-base/src/utils/useTransitionStatus.ts b/packages/mui-base/src/utils/useTransitionStatus.ts index b7fe4e53df..d31c3475f5 100644 --- a/packages/mui-base/src/utils/useTransitionStatus.ts +++ b/packages/mui-base/src/utils/useTransitionStatus.ts @@ -1,4 +1,5 @@ 'use client'; + import * as React from 'react'; import { useEnhancedEffect } from './useEnhancedEffect';