From 10a0605c6b9dafe34a6e425b58ebbb9ea82e82d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Fri, 19 Apr 2024 19:29:57 +0200 Subject: [PATCH 1/5] [core] Remove 'use client' from index files --- packages/mui-base/src/Badge/index.ts | 1 - packages/mui-base/src/Button/index.ts | 1 - packages/mui-base/src/Checkbox/index.ts | 1 - packages/mui-base/src/Input/index.ts | 1 - packages/mui-base/src/MenuButton/index.ts | 1 - packages/mui-base/src/MenuItem/index.ts | 1 - packages/mui-base/src/MultiSelect/index.ts | 1 - packages/mui-base/src/NoSsr/index.ts | 1 - packages/mui-base/src/NumberField/index.ts | 1 - packages/mui-base/src/Option/index.ts | 1 - packages/mui-base/src/OptionGroup/index.ts | 1 - packages/mui-base/src/Popper/index.ts | 1 - packages/mui-base/src/Portal/index.ts | 1 - packages/mui-base/src/Select/index.ts | 1 - packages/mui-base/src/Slider/index.ts | 1 - packages/mui-base/src/Snackbar/index.ts | 1 - packages/mui-base/src/Switch/index.ts | 1 - packages/mui-base/src/Tab/index.ts | 1 - packages/mui-base/src/TabPanel/index.ts | 1 - packages/mui-base/src/TablePagination/index.ts | 1 - packages/mui-base/src/Tabs/index.ts | 1 - packages/mui-base/src/TabsList/index.ts | 1 - packages/mui-base/src/TextareaAutosize/index.ts | 1 - packages/mui-base/src/Unstable_Popup/index.ts | 1 - packages/mui-base/src/unstable_useModal/index.ts | 1 - packages/mui-base/src/useBadge/index.ts | 1 - packages/mui-base/src/useButton/index.ts | 1 - packages/mui-base/src/useCheckbox/index.ts | 1 - packages/mui-base/src/useCompound/index.ts | 1 - packages/mui-base/src/useDropdown/index.ts | 1 - packages/mui-base/src/useInput/index.ts | 1 - packages/mui-base/src/useList/index.ts | 1 - packages/mui-base/src/useMenu/index.ts | 1 - packages/mui-base/src/useMenuButton/index.ts | 1 - packages/mui-base/src/useMenuItem/index.ts | 1 - packages/mui-base/src/useNumberField/index.ts | 1 - packages/mui-base/src/useOption/index.ts | 1 - packages/mui-base/src/useSelect/index.ts | 1 - packages/mui-base/src/useSlider/index.ts | 1 - packages/mui-base/src/useSnackbar/index.ts | 1 - packages/mui-base/src/useSwitch/index.ts | 1 - packages/mui-base/src/useTab/index.ts | 1 - packages/mui-base/src/useTabPanel/index.ts | 1 - packages/mui-base/src/useTabs/index.ts | 1 - packages/mui-base/src/useTabsList/index.ts | 1 - packages/mui-base/src/utils/index.ts | 1 - 46 files changed, 46 deletions(-) diff --git a/packages/mui-base/src/Badge/index.ts b/packages/mui-base/src/Badge/index.ts index b208878eab..8ffeb88dbb 100644 --- a/packages/mui-base/src/Badge/index.ts +++ b/packages/mui-base/src/Badge/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Badge } from './Badge'; export * from './Badge.types'; export * from './badgeClasses'; diff --git a/packages/mui-base/src/Button/index.ts b/packages/mui-base/src/Button/index.ts index e5bd68604d..d23520e56d 100644 --- a/packages/mui-base/src/Button/index.ts +++ b/packages/mui-base/src/Button/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Button } from './Button'; export * from './buttonClasses'; diff --git a/packages/mui-base/src/Checkbox/index.ts b/packages/mui-base/src/Checkbox/index.ts index e755901da0..05a069f448 100644 --- a/packages/mui-base/src/Checkbox/index.ts +++ b/packages/mui-base/src/Checkbox/index.ts @@ -1,4 +1,3 @@ -'use client'; export { CheckboxRoot as Root } from './CheckboxRoot'; export { CheckboxIndicator as Indicator } from './CheckboxIndicator'; diff --git a/packages/mui-base/src/Input/index.ts b/packages/mui-base/src/Input/index.ts index 01badf4065..a803fa5897 100644 --- a/packages/mui-base/src/Input/index.ts +++ b/packages/mui-base/src/Input/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Input } from './Input'; export * from './Input.types'; diff --git a/packages/mui-base/src/MenuButton/index.ts b/packages/mui-base/src/MenuButton/index.ts index 721bc436d4..fcc2229552 100644 --- a/packages/mui-base/src/MenuButton/index.ts +++ b/packages/mui-base/src/MenuButton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { MenuButton } from './MenuButton'; export * from './MenuButton.types'; diff --git a/packages/mui-base/src/MenuItem/index.ts b/packages/mui-base/src/MenuItem/index.ts index c24ff54e41..0adb1f3669 100644 --- a/packages/mui-base/src/MenuItem/index.ts +++ b/packages/mui-base/src/MenuItem/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './MenuItem'; export * from './MenuItem.types'; export * from './menuItemClasses'; diff --git a/packages/mui-base/src/MultiSelect/index.ts b/packages/mui-base/src/MultiSelect/index.ts index 0cefde7155..7140f36c68 100644 --- a/packages/mui-base/src/MultiSelect/index.ts +++ b/packages/mui-base/src/MultiSelect/index.ts @@ -1,2 +1 @@ -'use client'; export { MultiSelect } from './MultiSelect'; diff --git a/packages/mui-base/src/NoSsr/index.ts b/packages/mui-base/src/NoSsr/index.ts index f13019fe10..546b249ab2 100644 --- a/packages/mui-base/src/NoSsr/index.ts +++ b/packages/mui-base/src/NoSsr/index.ts @@ -1,3 +1,2 @@ -'use client'; export { NoSsr } from './NoSsr'; export * from './NoSsr.types'; diff --git a/packages/mui-base/src/NumberField/index.ts b/packages/mui-base/src/NumberField/index.ts index 3711e14f5c..a90c3b6f19 100644 --- a/packages/mui-base/src/NumberField/index.ts +++ b/packages/mui-base/src/NumberField/index.ts @@ -1,4 +1,3 @@ -'use client'; export { NumberFieldRoot as Root } from './NumberFieldRoot'; export { NumberFieldGroup as Group } from './NumberFieldGroup'; export { NumberFieldInput as Input } from './NumberFieldInput'; diff --git a/packages/mui-base/src/Option/index.ts b/packages/mui-base/src/Option/index.ts index 511389be30..c941281acc 100644 --- a/packages/mui-base/src/Option/index.ts +++ b/packages/mui-base/src/Option/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './Option'; export * from './Option.types'; export * from './optionClasses'; diff --git a/packages/mui-base/src/OptionGroup/index.ts b/packages/mui-base/src/OptionGroup/index.ts index a75ed89f2b..3a0f78ea63 100644 --- a/packages/mui-base/src/OptionGroup/index.ts +++ b/packages/mui-base/src/OptionGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { OptionGroup } from './OptionGroup'; export * from './OptionGroup.types'; diff --git a/packages/mui-base/src/Popper/index.ts b/packages/mui-base/src/Popper/index.ts index 7ebed8baf3..d03b4dee37 100644 --- a/packages/mui-base/src/Popper/index.ts +++ b/packages/mui-base/src/Popper/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Popper } from './Popper'; export type { PopperPlacementType, diff --git a/packages/mui-base/src/Portal/index.ts b/packages/mui-base/src/Portal/index.ts index 96ba019d5a..605321409b 100644 --- a/packages/mui-base/src/Portal/index.ts +++ b/packages/mui-base/src/Portal/index.ts @@ -1,3 +1,2 @@ -'use client'; export { Portal } from './Portal'; export * from './Portal.types'; diff --git a/packages/mui-base/src/Select/index.ts b/packages/mui-base/src/Select/index.ts index c5bdc3eed2..02dc194091 100644 --- a/packages/mui-base/src/Select/index.ts +++ b/packages/mui-base/src/Select/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Select } from './Select'; export * from './selectClasses'; diff --git a/packages/mui-base/src/Slider/index.ts b/packages/mui-base/src/Slider/index.ts index 8471da7534..9f88f0dea7 100644 --- a/packages/mui-base/src/Slider/index.ts +++ b/packages/mui-base/src/Slider/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Slider } from './Slider'; export * from './Slider.types'; export * from './sliderClasses'; diff --git a/packages/mui-base/src/Snackbar/index.ts b/packages/mui-base/src/Snackbar/index.ts index 7f109fda1d..69928fa25e 100644 --- a/packages/mui-base/src/Snackbar/index.ts +++ b/packages/mui-base/src/Snackbar/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Snackbar } from './Snackbar'; export * from './Snackbar.types'; diff --git a/packages/mui-base/src/Switch/index.ts b/packages/mui-base/src/Switch/index.ts index 4f424d807c..c448b1d1bb 100644 --- a/packages/mui-base/src/Switch/index.ts +++ b/packages/mui-base/src/Switch/index.ts @@ -1,4 +1,3 @@ -'use client'; export { SwitchRoot as Root } from './SwitchRoot'; export { SwitchThumb as Thumb } from './SwitchThumb'; diff --git a/packages/mui-base/src/Tab/index.ts b/packages/mui-base/src/Tab/index.ts index 57e49f6c0a..1bcbf62239 100644 --- a/packages/mui-base/src/Tab/index.ts +++ b/packages/mui-base/src/Tab/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Tab } from './Tab'; export * from './Tab.types'; diff --git a/packages/mui-base/src/TabPanel/index.ts b/packages/mui-base/src/TabPanel/index.ts index bb4daa1483..fe6efbb02f 100644 --- a/packages/mui-base/src/TabPanel/index.ts +++ b/packages/mui-base/src/TabPanel/index.ts @@ -1,4 +1,3 @@ -'use client'; export { TabPanel } from './TabPanel'; export * from './TabPanel.types'; diff --git a/packages/mui-base/src/TablePagination/index.ts b/packages/mui-base/src/TablePagination/index.ts index b816f218d6..5df389b39e 100644 --- a/packages/mui-base/src/TablePagination/index.ts +++ b/packages/mui-base/src/TablePagination/index.ts @@ -1,4 +1,3 @@ -'use client'; export { TablePagination } from './TablePagination'; export * from './TablePagination.types'; diff --git a/packages/mui-base/src/Tabs/index.ts b/packages/mui-base/src/Tabs/index.ts index abc967c576..74e3bbc11c 100644 --- a/packages/mui-base/src/Tabs/index.ts +++ b/packages/mui-base/src/Tabs/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Tabs } from './Tabs'; export * from './TabsContext'; export * from './tabsClasses'; diff --git a/packages/mui-base/src/TabsList/index.ts b/packages/mui-base/src/TabsList/index.ts index 2828f9b042..949c40dd68 100644 --- a/packages/mui-base/src/TabsList/index.ts +++ b/packages/mui-base/src/TabsList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { TabsList } from './TabsList'; export * from './TabsList.types'; diff --git a/packages/mui-base/src/TextareaAutosize/index.ts b/packages/mui-base/src/TextareaAutosize/index.ts index 50814f03aa..db9394e5a7 100644 --- a/packages/mui-base/src/TextareaAutosize/index.ts +++ b/packages/mui-base/src/TextareaAutosize/index.ts @@ -1,3 +1,2 @@ -'use client'; export { TextareaAutosize } from './TextareaAutosize'; export * from './TextareaAutosize.types'; diff --git a/packages/mui-base/src/Unstable_Popup/index.ts b/packages/mui-base/src/Unstable_Popup/index.ts index 2a4873a767..2e63e5a4c9 100644 --- a/packages/mui-base/src/Unstable_Popup/index.ts +++ b/packages/mui-base/src/Unstable_Popup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Popup as Unstable_Popup } from './Popup'; export * from './Popup.types'; export * from './popupClasses'; diff --git a/packages/mui-base/src/unstable_useModal/index.ts b/packages/mui-base/src/unstable_useModal/index.ts index cdfed6b550..e73759cf20 100644 --- a/packages/mui-base/src/unstable_useModal/index.ts +++ b/packages/mui-base/src/unstable_useModal/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useModal as unstable_useModal } from './useModal'; export * from './useModal.types'; export * from './ModalManager'; diff --git a/packages/mui-base/src/useBadge/index.ts b/packages/mui-base/src/useBadge/index.ts index 220df311fc..d8376e70c1 100644 --- a/packages/mui-base/src/useBadge/index.ts +++ b/packages/mui-base/src/useBadge/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useBadge } from './useBadge'; export * from './useBadge.types'; diff --git a/packages/mui-base/src/useButton/index.ts b/packages/mui-base/src/useButton/index.ts index 53c84ebfd5..f52872ae10 100644 --- a/packages/mui-base/src/useButton/index.ts +++ b/packages/mui-base/src/useButton/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useButton } from './useButton'; export * from './useButton.types'; diff --git a/packages/mui-base/src/useCheckbox/index.ts b/packages/mui-base/src/useCheckbox/index.ts index 395bcb56cc..8f4ff588fd 100644 --- a/packages/mui-base/src/useCheckbox/index.ts +++ b/packages/mui-base/src/useCheckbox/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useCheckbox } from './useCheckbox'; export * from './useCheckbox.types'; diff --git a/packages/mui-base/src/useCompound/index.ts b/packages/mui-base/src/useCompound/index.ts index f8e6f64b6d..2fea72863a 100644 --- a/packages/mui-base/src/useCompound/index.ts +++ b/packages/mui-base/src/useCompound/index.ts @@ -1,3 +1,2 @@ -'use client'; export * from './useCompoundParent'; export * from './useCompoundItem'; diff --git a/packages/mui-base/src/useDropdown/index.ts b/packages/mui-base/src/useDropdown/index.ts index 79fc0ef7f3..31bf24a2a9 100644 --- a/packages/mui-base/src/useDropdown/index.ts +++ b/packages/mui-base/src/useDropdown/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './useDropdown'; export * from './useDropdown.types'; export * from './DropdownContext'; diff --git a/packages/mui-base/src/useInput/index.ts b/packages/mui-base/src/useInput/index.ts index c37d6a9cd2..34acd62df7 100644 --- a/packages/mui-base/src/useInput/index.ts +++ b/packages/mui-base/src/useInput/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useInput } from './useInput'; export * from './useInput.types'; diff --git a/packages/mui-base/src/useList/index.ts b/packages/mui-base/src/useList/index.ts index 045af1c489..1d6568987e 100644 --- a/packages/mui-base/src/useList/index.ts +++ b/packages/mui-base/src/useList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useList } from './useList'; export * from './useList.types'; diff --git a/packages/mui-base/src/useMenu/index.ts b/packages/mui-base/src/useMenu/index.ts index 0d08ba73cf..dbd252273d 100644 --- a/packages/mui-base/src/useMenu/index.ts +++ b/packages/mui-base/src/useMenu/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useMenu } from './useMenu'; export * from './useMenu.types'; export * from './MenuProvider'; diff --git a/packages/mui-base/src/useMenuButton/index.ts b/packages/mui-base/src/useMenuButton/index.ts index 0f9d874d50..d933dea9d2 100644 --- a/packages/mui-base/src/useMenuButton/index.ts +++ b/packages/mui-base/src/useMenuButton/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useMenuButton } from './useMenuButton'; export * from './useMenuButton.types'; diff --git a/packages/mui-base/src/useMenuItem/index.ts b/packages/mui-base/src/useMenuItem/index.ts index f480bce7a2..6aa1625e34 100644 --- a/packages/mui-base/src/useMenuItem/index.ts +++ b/packages/mui-base/src/useMenuItem/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useMenuItem } from './useMenuItem'; export * from './useMenuItem.types'; export * from './useMenuItemContextStabilizer'; diff --git a/packages/mui-base/src/useNumberField/index.ts b/packages/mui-base/src/useNumberField/index.ts index 449b12cb21..247cf8bb5f 100644 --- a/packages/mui-base/src/useNumberField/index.ts +++ b/packages/mui-base/src/useNumberField/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useNumberField } from './useNumberField'; export * from './useNumberField.types'; diff --git a/packages/mui-base/src/useOption/index.ts b/packages/mui-base/src/useOption/index.ts index 64b8a58876..35601c1b43 100644 --- a/packages/mui-base/src/useOption/index.ts +++ b/packages/mui-base/src/useOption/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useOption } from './useOption'; export * from './useOption.types'; export * from './useOptionContextStabilizer'; diff --git a/packages/mui-base/src/useSelect/index.ts b/packages/mui-base/src/useSelect/index.ts index 7773d46920..014e5d9081 100644 --- a/packages/mui-base/src/useSelect/index.ts +++ b/packages/mui-base/src/useSelect/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useSelect } from './useSelect'; export * from './useSelect.types'; export * from './SelectProvider'; diff --git a/packages/mui-base/src/useSlider/index.ts b/packages/mui-base/src/useSlider/index.ts index f13ff862e3..0e8b89eb00 100644 --- a/packages/mui-base/src/useSlider/index.ts +++ b/packages/mui-base/src/useSlider/index.ts @@ -1,3 +1,2 @@ -'use client'; export * from './useSlider'; export * from './useSlider.types'; diff --git a/packages/mui-base/src/useSnackbar/index.ts b/packages/mui-base/src/useSnackbar/index.ts index 123fce143e..9a595a63e4 100644 --- a/packages/mui-base/src/useSnackbar/index.ts +++ b/packages/mui-base/src/useSnackbar/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useSnackbar } from './useSnackbar'; export * from './useSnackbar.types'; diff --git a/packages/mui-base/src/useSwitch/index.ts b/packages/mui-base/src/useSwitch/index.ts index 2c0e7428f0..0e89a92173 100644 --- a/packages/mui-base/src/useSwitch/index.ts +++ b/packages/mui-base/src/useSwitch/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useSwitch } from './useSwitch'; export * from './useSwitch.types'; diff --git a/packages/mui-base/src/useTab/index.ts b/packages/mui-base/src/useTab/index.ts index a2e4fd0ffb..c455a73bd4 100644 --- a/packages/mui-base/src/useTab/index.ts +++ b/packages/mui-base/src/useTab/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useTab } from './useTab'; export * from './useTab.types'; diff --git a/packages/mui-base/src/useTabPanel/index.ts b/packages/mui-base/src/useTabPanel/index.ts index b50d04d1a8..2e72d19f42 100644 --- a/packages/mui-base/src/useTabPanel/index.ts +++ b/packages/mui-base/src/useTabPanel/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useTabPanel } from './useTabPanel'; export * from './useTabPanel.types'; diff --git a/packages/mui-base/src/useTabs/index.ts b/packages/mui-base/src/useTabs/index.ts index 6638acfe02..c12b85bf86 100644 --- a/packages/mui-base/src/useTabs/index.ts +++ b/packages/mui-base/src/useTabs/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './useTabs'; export * from './useTabs.types'; export * from './TabsProvider'; diff --git a/packages/mui-base/src/useTabsList/index.ts b/packages/mui-base/src/useTabsList/index.ts index 4ba3e5e23c..0241cfc8f8 100644 --- a/packages/mui-base/src/useTabsList/index.ts +++ b/packages/mui-base/src/useTabsList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useTabsList } from './useTabsList'; export * from './useTabsList.types'; export * from './TabsListProvider'; diff --git a/packages/mui-base/src/utils/index.ts b/packages/mui-base/src/utils/index.ts index 6940094b66..173e47c3b5 100644 --- a/packages/mui-base/src/utils/index.ts +++ b/packages/mui-base/src/utils/index.ts @@ -1,4 +1,3 @@ -'use client'; export { appendOwnerState } from './appendOwnerState'; export { areArraysEqual } from './areArraysEqual'; export { ClassNameConfigurator } from './ClassNameConfigurator'; From 694612fe35033ed54ea032288f82b82aca605d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Wed, 29 May 2024 13:55:31 +0200 Subject: [PATCH 2/5] Move the directive from index files to components --- 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/useCheckboxRoot.ts | 1 + packages/mui-base/src/Checkbox/index.barrel.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/NumberField/index.barrel.ts | 1 - packages/mui-base/src/Switch/Root/SwitchContext.ts | 1 + packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx | 1 + packages/mui-base/src/Switch/index.barrel.ts | 1 - 19 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx b/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx index d2af8f8396..d01d77499a 100644 --- a/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx +++ b/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx @@ -1,3 +1,4 @@ +'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 a107e0b924..57cf012462 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts +++ b/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts @@ -1,3 +1,4 @@ +'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 94a9b636ed..000228bbc4 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx +++ b/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx @@ -1,3 +1,4 @@ +'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/useCheckboxRoot.ts b/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts index 349d4e35d2..2bd5849b70 100644 --- a/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts +++ b/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts @@ -1,3 +1,4 @@ +'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/index.barrel.ts b/packages/mui-base/src/Checkbox/index.barrel.ts index 5d3e47f44b..1af60bbc92 100644 --- a/packages/mui-base/src/Checkbox/index.barrel.ts +++ b/packages/mui-base/src/Checkbox/index.barrel.ts @@ -1,4 +1,3 @@ -'use client'; export { CheckboxRoot } from './Root/CheckboxRoot'; export { useCheckboxRoot } from './Root/useCheckboxRoot'; export { CheckboxContext } from './Root/CheckboxContext'; diff --git a/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx b/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx index fd2dc84ef2..2b4e5811a5 100644 --- a/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx +++ b/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx @@ -1,3 +1,4 @@ +'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 d7a366b82f..6c66f75dbc 100644 --- a/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx +++ b/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx @@ -1,3 +1,4 @@ +'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 7c1918d6b6..2f1e7a2623 100644 --- a/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx +++ b/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx @@ -1,3 +1,4 @@ +'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 39625f56f9..2b2711d22c 100644 --- a/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx +++ b/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx @@ -1,3 +1,4 @@ +'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 6434c51ea8..4c6db26508 100644 --- a/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts +++ b/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts @@ -1,3 +1,4 @@ +'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 b51a2d2338..1f33ffa699 100644 --- a/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx +++ b/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx @@ -1,3 +1,4 @@ +'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 b9173a4a9e..92b7788f9f 100644 --- a/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts +++ b/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts @@ -1,3 +1,4 @@ +'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 38e20df427..605d64e017 100644 --- a/packages/mui-base/src/NumberField/Root/useScrub.ts +++ b/packages/mui-base/src/NumberField/Root/useScrub.ts @@ -1,3 +1,4 @@ +'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 94a9b904ee..560f9c019a 100644 --- a/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx +++ b/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx @@ -1,3 +1,4 @@ +'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 16c8062c58..5c55a1c235 100644 --- a/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx +++ b/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx @@ -1,3 +1,4 @@ +'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/NumberField/index.barrel.ts b/packages/mui-base/src/NumberField/index.barrel.ts index 92181f39c1..b062dec49f 100644 --- a/packages/mui-base/src/NumberField/index.barrel.ts +++ b/packages/mui-base/src/NumberField/index.barrel.ts @@ -1,4 +1,3 @@ -'use client'; export { NumberFieldRoot } from './Root/NumberFieldRoot'; export { NumberFieldContext } from './Root/NumberFieldContext'; export { useNumberFieldRoot } from './Root/useNumberFieldRoot'; diff --git a/packages/mui-base/src/Switch/Root/SwitchContext.ts b/packages/mui-base/src/Switch/Root/SwitchContext.ts index 666310f7c9..c2366b6127 100644 --- a/packages/mui-base/src/Switch/Root/SwitchContext.ts +++ b/packages/mui-base/src/Switch/Root/SwitchContext.ts @@ -1,3 +1,4 @@ +'use client'; import * as React from 'react'; import { type SwitchOwnerState } from './SwitchRoot.types'; diff --git a/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx b/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx index fc80eeee88..89624259b6 100644 --- a/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx +++ b/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx @@ -1,3 +1,4 @@ +'use client'; import * as React from 'react'; import PropTypes from 'prop-types'; import { SwitchThumbProps } from './SwitchThumb.types'; diff --git a/packages/mui-base/src/Switch/index.barrel.ts b/packages/mui-base/src/Switch/index.barrel.ts index 52b63f7f29..f4f136cf88 100644 --- a/packages/mui-base/src/Switch/index.barrel.ts +++ b/packages/mui-base/src/Switch/index.barrel.ts @@ -1,4 +1,3 @@ -'use client'; export { SwitchRoot } from './Root/SwitchRoot'; export { useSwitchRoot } from './Root/useSwitchRoot'; export { SwitchContext } from './Root/SwitchContext'; 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 3/5] 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'; From 7f66e691d5d35aacddac62f11a6261ea58bdee32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Wed, 4 Sep 2024 16:38:18 +0200 Subject: [PATCH 4/5] Fix broken merge result --- packages/mui-base/src/Slider/index.ts | 6 ------ packages/mui-base/src/utils/index.ts | 19 +++++++------------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/packages/mui-base/src/Slider/index.ts b/packages/mui-base/src/Slider/index.ts index d575293350..be5d9c2dc2 100644 --- a/packages/mui-base/src/Slider/index.ts +++ b/packages/mui-base/src/Slider/index.ts @@ -1,8 +1,3 @@ -<<<<<<< HEAD -export { Slider } from './Slider'; -export * from './Slider.types'; -export * from './sliderClasses'; -======= export { SliderRoot as Root } from './Root/SliderRoot'; export type { SliderRootOwnerState as SliderOwnerState, @@ -52,4 +47,3 @@ export type { UseSliderIndicatorReturnValue, } from './Indicator/SliderIndicator.types'; export { useSliderIndicator } from './Indicator/useSliderIndicator'; ->>>>>>> upstream/master diff --git a/packages/mui-base/src/utils/index.ts b/packages/mui-base/src/utils/index.ts index 173e47c3b5..579f5c2262 100644 --- a/packages/mui-base/src/utils/index.ts +++ b/packages/mui-base/src/utils/index.ts @@ -1,12 +1,7 @@ -export { appendOwnerState } from './appendOwnerState'; -export { areArraysEqual } from './areArraysEqual'; -export { ClassNameConfigurator } from './ClassNameConfigurator'; -export { extractEventHandlers } from './extractEventHandlers'; -export { isHostComponent } from './isHostComponent'; -export { resolveComponentProps } from './resolveComponentProps'; -export { useRootElementName } from './useRootElementName'; -export { useSlotProps } from './useSlotProps'; -export { mergeSlotProps } from './mergeSlotProps'; -export { prepareForSlot } from './prepareForSlot'; -export * from './PolymorphicComponent'; -export * from './types'; +// Public utils + +export * from './prepareForSlot'; +export * from './MuiCancellableEvent'; +export * from './useScrollLock'; +export * from './useTransitionStatus'; +export * from './visuallyHidden'; From 13197b9f1f37c590861fc5eece8953e2d767e544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudak?= Date: Wed, 18 Sep 2024 10:47:52 +0200 Subject: [PATCH 5/5] Remove blank line --- docs/app/experiments/anchor-positioning.tsx | 1 - docs/app/experiments/collapsible-accordion.tsx | 1 - docs/app/experiments/collapsible-framer.tsx | 1 - docs/app/experiments/collapsible-hidden-until-found.tsx | 1 - docs/app/experiments/collapsible.tsx | 1 - docs/app/experiments/dialog.tsx | 1 - docs/app/experiments/progress.tsx | 1 - docs/app/experiments/slider-change-committed-lag.tsx | 1 - docs/app/experiments/slider-marks.tsx | 1 - docs/app/experiments/slider-template.tsx | 1 - docs/app/experiments/slider-tooltip.tsx | 1 - docs/app/experiments/slider.tsx | 1 - docs/app/experiments/tabs.tsx | 1 - docs/app/experiments/tooltip.tsx | 1 - .../alert-dialog/AlertDialogIntroduction/css-modules/index.js | 1 - .../alert-dialog/AlertDialogIntroduction/css-modules/index.tsx | 1 - .../alert-dialog/AlertDialogIntroduction/system/index.js | 1 - .../alert-dialog/AlertDialogIntroduction/system/index.tsx | 1 - .../alert-dialog/AlertDialogIntroduction/tailwind/index.js | 1 - .../alert-dialog/AlertDialogIntroduction/tailwind/index.tsx | 1 - docs/data/components/alert-dialog/AlertDialogWithTransitions.js | 1 - docs/data/components/alert-dialog/AlertDialogWithTransitions.tsx | 1 - docs/data/components/alert-dialog/NestedAlertDialogs.js | 1 - docs/data/components/alert-dialog/NestedAlertDialogs.tsx | 1 - .../UnstyledCheckboxGroupIntroduction/css/index.js | 1 - .../UnstyledCheckboxGroupIntroduction/css/index.tsx | 1 - .../UnstyledCheckboxGroupIntroduction/system/index.js | 1 - .../UnstyledCheckboxGroupIntroduction/system/index.tsx | 1 - .../UnstyledCheckboxGroupIntroduction/tailwind/index.js | 1 - .../UnstyledCheckboxGroupIntroduction/tailwind/index.tsx | 1 - .../components/checkbox-group/UnstyledCheckboxGroupNested.js | 1 - .../components/checkbox-group/UnstyledCheckboxGroupNested.tsx | 1 - docs/data/components/checkbox/UnstyledCheckboxIndeterminate.js | 1 - docs/data/components/checkbox/UnstyledCheckboxIndeterminate.tsx | 1 - .../components/checkbox/UnstyledCheckboxIndeterminateGroup.js | 1 - .../components/checkbox/UnstyledCheckboxIndeterminateGroup.tsx | 1 - .../checkbox/UnstyledCheckboxIntroduction/css-modules/index.js | 1 - .../checkbox/UnstyledCheckboxIntroduction/css-modules/index.tsx | 1 - .../checkbox/UnstyledCheckboxIntroduction/system/index.js | 1 - .../checkbox/UnstyledCheckboxIntroduction/system/index.tsx | 1 - .../checkbox/UnstyledCheckboxIntroduction/tailwind/index.js | 1 - .../checkbox/UnstyledCheckboxIntroduction/tailwind/index.tsx | 1 - docs/data/components/dialog/DialogWithTransitions.js | 1 - docs/data/components/dialog/DialogWithTransitions.tsx | 1 - docs/data/components/dialog/NestedDialogs.js | 1 - docs/data/components/dialog/NestedDialogs.tsx | 1 - .../dialog/UnstyledDialogIntroduction/css-modules/index.js | 1 - .../dialog/UnstyledDialogIntroduction/css-modules/index.tsx | 1 - .../components/dialog/UnstyledDialogIntroduction/system/index.js | 1 - .../dialog/UnstyledDialogIntroduction/system/index.tsx | 1 - .../dialog/UnstyledDialogIntroduction/tailwind/index.js | 1 - .../dialog/UnstyledDialogIntroduction/tailwind/index.tsx | 1 - docs/data/components/field/UnstyledFieldAsync.js | 1 - docs/data/components/field/UnstyledFieldAsync.tsx | 1 - .../components/field/UnstyledFieldIntroduction/system/index.js | 1 - .../components/field/UnstyledFieldIntroduction/system/index.tsx | 1 - docs/data/components/field/UnstyledFieldPassword.js | 1 - docs/data/components/field/UnstyledFieldPassword.tsx | 1 - docs/data/components/field/UnstyledFieldServerError.js | 1 - docs/data/components/field/UnstyledFieldServerError.tsx | 1 - .../fieldset/UnstyledFieldsetIntroduction/system/index.js | 1 - .../fieldset/UnstyledFieldsetIntroduction/system/index.tsx | 1 - docs/data/components/menu/MenuIntroduction/css-modules/Menu.js | 1 - docs/data/components/menu/MenuIntroduction/css-modules/Menu.tsx | 1 - docs/data/components/menu/MenuIntroduction/css-modules/index.js | 1 - docs/data/components/menu/MenuIntroduction/css-modules/index.tsx | 1 - docs/data/components/menu/MenuIntroduction/system/index.js | 1 - docs/data/components/menu/MenuIntroduction/system/index.tsx | 1 - docs/data/components/menu/MenuIntroduction/tailwind/index.js | 1 - docs/data/components/menu/MenuIntroduction/tailwind/index.tsx | 1 - docs/data/components/menu/NestedMenu.js | 1 - docs/data/components/menu/NestedMenu.tsx | 1 - docs/data/components/no-ssr/FrameDeferring.js | 1 - docs/data/components/no-ssr/FrameDeferring.tsx | 1 - docs/data/components/no-ssr/SimpleNoSsr.js | 1 - docs/data/components/no-ssr/SimpleNoSsr.tsx | 1 - docs/data/components/number-field/UnstyledNumberFieldFormat.js | 1 - docs/data/components/number-field/UnstyledNumberFieldFormat.tsx | 1 - .../UnstyledNumberFieldIntroduction/css-modules/index.js | 1 - .../UnstyledNumberFieldIntroduction/css-modules/index.tsx | 1 - .../number-field/UnstyledNumberFieldIntroduction/system/index.js | 1 - .../UnstyledNumberFieldIntroduction/system/index.tsx | 1 - .../UnstyledNumberFieldIntroduction/tailwind/index.js | 1 - .../UnstyledNumberFieldIntroduction/tailwind/index.tsx | 1 - docs/data/components/number-field/UnstyledNumberFieldScrub.js | 1 - docs/data/components/number-field/UnstyledNumberFieldScrub.tsx | 1 - .../components/number-field/UnstyledNumberFieldWheelScrub.js | 1 - .../components/number-field/UnstyledNumberFieldWheelScrub.tsx | 1 - .../popover/UnstyledPopoverIntroduction/system/index.js | 1 - .../popover/UnstyledPopoverIntroduction/system/index.tsx | 1 - docs/data/components/popover/UnstyledPopoverTransition.js | 1 - docs/data/components/popover/UnstyledPopoverTransition.tsx | 1 - .../preview-card/UnstyledPreviewCardIntroduction/system/index.js | 1 - .../UnstyledPreviewCardIntroduction/system/index.tsx | 1 - .../components/preview-card/UnstyledPreviewCardTransition.js | 1 - .../components/preview-card/UnstyledPreviewCardTransition.tsx | 1 - docs/data/components/progress/IndeterminateProgress.js | 1 - docs/data/components/progress/IndeterminateProgress.tsx | 1 - docs/data/components/progress/RtlProgress.js | 1 - docs/data/components/progress/RtlProgress.tsx | 1 - .../progress/UnstyledProgressIntroduction/css-modules/index.js | 1 - .../progress/UnstyledProgressIntroduction/css-modules/index.tsx | 1 - .../progress/UnstyledProgressIntroduction/system/index.js | 1 - .../progress/UnstyledProgressIntroduction/system/index.tsx | 1 - .../progress/UnstyledProgressIntroduction/tailwind/index.js | 1 - .../progress/UnstyledProgressIntroduction/tailwind/index.tsx | 1 - .../radio-group/UnstyledRadioGroupIntroduction/system/index.js | 1 - .../radio-group/UnstyledRadioGroupIntroduction/system/index.tsx | 1 - docs/data/components/slider/RangeSlider.js | 1 - docs/data/components/slider/RangeSlider.tsx | 1 - docs/data/components/slider/RtlSlider.js | 1 - docs/data/components/slider/RtlSlider.tsx | 1 - .../slider/UnstyledSliderIntroduction/css-modules/index.js | 1 - .../slider/UnstyledSliderIntroduction/css-modules/index.tsx | 1 - .../components/slider/UnstyledSliderIntroduction/system/index.js | 1 - .../slider/UnstyledSliderIntroduction/system/index.tsx | 1 - .../slider/UnstyledSliderIntroduction/tailwind/index.js | 1 - .../slider/UnstyledSliderIntroduction/tailwind/index.tsx | 1 - docs/data/components/slider/VerticalSlider.js | 1 - docs/data/components/slider/VerticalSlider.tsx | 1 - .../switch/UnstyledSwitchIntroduction/css-modules/index.js | 1 - .../switch/UnstyledSwitchIntroduction/css-modules/index.tsx | 1 - .../components/switch/UnstyledSwitchIntroduction/system/index.js | 1 - .../switch/UnstyledSwitchIntroduction/system/index.tsx | 1 - .../switch/UnstyledSwitchIntroduction/tailwind/index.js | 1 - .../switch/UnstyledSwitchIntroduction/tailwind/index.tsx | 1 - docs/data/components/tabs/IndicatorBubble.js | 1 - docs/data/components/tabs/IndicatorBubble.tsx | 1 - docs/data/components/tabs/IndicatorUnderline.js | 1 - docs/data/components/tabs/IndicatorUnderline.tsx | 1 - docs/data/components/tabs/KeyboardNavigation.js | 1 - docs/data/components/tabs/KeyboardNavigation.tsx | 1 - .../tabs/UnstyledTabsIntroduction/css-modules/index.js | 1 - .../tabs/UnstyledTabsIntroduction/css-modules/index.tsx | 1 - .../components/tabs/UnstyledTabsIntroduction/system/index.js | 1 - .../components/tabs/UnstyledTabsIntroduction/system/index.tsx | 1 - .../components/tabs/UnstyledTabsIntroduction/tailwind/index.js | 1 - .../components/tabs/UnstyledTabsIntroduction/tailwind/index.tsx | 1 - docs/data/components/tabs/UnstyledTabsRouting.js | 1 - docs/data/components/tabs/UnstyledTabsRouting.tsx | 1 - docs/data/components/tooltip/UnstyledTooltipDelayGroup.js | 1 - docs/data/components/tooltip/UnstyledTooltipDelayGroup.tsx | 1 - docs/data/components/tooltip/UnstyledTooltipFollowCursor.js | 1 - docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx | 1 - .../tooltip/UnstyledTooltipIntroduction/system/index.js | 1 - .../tooltip/UnstyledTooltipIntroduction/system/index.tsx | 1 - docs/data/components/tooltip/UnstyledTooltipTransition.js | 1 - docs/data/components/tooltip/UnstyledTooltipTransition.tsx | 1 - docs/src/blocks/Demo/DemoContext.ts | 1 - docs/src/blocks/Demo/DemoPlayground.tsx | 1 - docs/src/blocks/Demo/DemoRoot.tsx | 1 - docs/src/blocks/Demo/DemoSourceBrowser.tsx | 1 - docs/src/blocks/Demo/DemoSourceCopy.tsx | 1 - docs/src/blocks/GoogleAnalytics.tsx | 1 - .../blocks/PackageManagerSnippet/PackageManagerSnippetCode.tsx | 1 - .../PackageManagerSnippet/PackageManagerSnippetProvider.tsx | 1 - .../blocks/PackageManagerSnippet/PackageManagerSnippetRoot.tsx | 1 - docs/src/components/DocsVersionSelector.tsx | 1 - docs/src/components/GoogleAnalytics.tsx | 1 - docs/src/components/content/PackageManagerSnippet.tsx | 1 - docs/src/components/demo/CodeSandboxLink.tsx | 1 - docs/src/components/demo/Demo.tsx | 1 - docs/src/components/demo/DemoFileSelector.tsx | 1 - docs/src/components/demo/DemoVariantSelector.tsx | 1 - docs/src/components/demo/DemoVariantSelectorProvider.tsx | 1 - docs/src/components/demo/StackBlitzLink.tsx | 1 - docs/src/design-system/Tooltip.tsx | 1 - .../mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx | 1 - packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx | 1 - .../src/AlertDialog/Description/AlertDialogDescription.tsx | 1 - packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx | 1 - packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx | 1 - packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts | 1 - packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx | 1 - packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx | 1 - 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 | 1 - packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts | 1 - packages/mui-base/src/Checkbox/utils.ts | 1 - .../mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts | 1 - packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx | 1 - .../mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts | 1 - .../mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx | 1 - packages/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 | 1 - packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx | 1 - packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts | 1 - packages/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 | 1 - 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 | 1 - packages/mui-base/src/Composite/Root/useCompositeRoot.ts | 1 - packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx | 1 - packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts | 1 - packages/mui-base/src/Dialog/Close/DialogClose.tsx | 1 - packages/mui-base/src/Dialog/Close/useDialogClose.ts | 1 - packages/mui-base/src/Dialog/Description/DialogDescription.tsx | 1 - packages/mui-base/src/Dialog/Popup/DialogPopup.tsx | 1 - packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx | 1 - packages/mui-base/src/Dialog/Root/DialogRoot.tsx | 1 - packages/mui-base/src/Dialog/Root/DialogRootContext.ts | 1 - packages/mui-base/src/Dialog/Root/useDialogRoot.ts | 1 - packages/mui-base/src/Dialog/Title/DialogTitle.tsx | 1 - packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx | 1 - packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts | 1 - packages/mui-base/src/Field/Control/FieldControl.tsx | 1 - packages/mui-base/src/Field/Control/useFieldControl.ts | 1 - packages/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 | 1 - packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx | 1 - packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts | 1 - packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts | 1 - 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 | 1 - packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts | 1 - packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx | 1 - packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts | 1 - packages/mui-base/src/NoSsr/NoSsr.tsx | 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 - packages/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 | 1 - 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 | 1 - packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx | 1 - packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts | 1 - packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx | 1 - packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts | 1 - packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx | 1 - packages/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 | 1 - 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 | 1 - packages/mui-base/src/Slider/Control/SliderControl.tsx | 1 - packages/mui-base/src/Slider/Control/useSliderControl.ts | 1 - 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 | 1 - 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 | 1 - 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 | 1 - 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 | 1 - packages/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 | 1 - packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts | 1 - packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx | 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 | 1 - 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 - 360 files changed, 360 deletions(-) diff --git a/docs/app/experiments/anchor-positioning.tsx b/docs/app/experiments/anchor-positioning.tsx index 98f510dad9..d5442a32f2 100644 --- a/docs/app/experiments/anchor-positioning.tsx +++ b/docs/app/experiments/anchor-positioning.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as ReactDOM from 'react-dom'; diff --git a/docs/app/experiments/collapsible-accordion.tsx b/docs/app/experiments/collapsible-accordion.tsx index ceec392ed0..fa14e5ac60 100644 --- a/docs/app/experiments/collapsible-accordion.tsx +++ b/docs/app/experiments/collapsible-accordion.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Collapsible from '@base_ui/react/Collapsible'; diff --git a/docs/app/experiments/collapsible-framer.tsx b/docs/app/experiments/collapsible-framer.tsx index 918e4699be..92682ab303 100644 --- a/docs/app/experiments/collapsible-framer.tsx +++ b/docs/app/experiments/collapsible-framer.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Collapsible from '@base_ui/react/Collapsible'; diff --git a/docs/app/experiments/collapsible-hidden-until-found.tsx b/docs/app/experiments/collapsible-hidden-until-found.tsx index 9e2cd7d604..cfa9e0484f 100644 --- a/docs/app/experiments/collapsible-hidden-until-found.tsx +++ b/docs/app/experiments/collapsible-hidden-until-found.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Collapsible from '@base_ui/react/Collapsible'; diff --git a/docs/app/experiments/collapsible.tsx b/docs/app/experiments/collapsible.tsx index a69c9c0d3f..55d3477a41 100644 --- a/docs/app/experiments/collapsible.tsx +++ b/docs/app/experiments/collapsible.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Collapsible from '@base_ui/react/Collapsible'; diff --git a/docs/app/experiments/dialog.tsx b/docs/app/experiments/dialog.tsx index d1dd28b189..79dfd39804 100644 --- a/docs/app/experiments/dialog.tsx +++ b/docs/app/experiments/dialog.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import clsx from 'clsx'; import * as Dialog from '@base_ui/react/Dialog'; diff --git a/docs/app/experiments/progress.tsx b/docs/app/experiments/progress.tsx index eee05f9508..1db6f0dc53 100644 --- a/docs/app/experiments/progress.tsx +++ b/docs/app/experiments/progress.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Progress from '@base_ui/react/Progress'; diff --git a/docs/app/experiments/slider-change-committed-lag.tsx b/docs/app/experiments/slider-change-committed-lag.tsx index 62e06e32a8..8ced35a40a 100644 --- a/docs/app/experiments/slider-change-committed-lag.tsx +++ b/docs/app/experiments/slider-change-committed-lag.tsx @@ -1,5 +1,4 @@ 'use client'; - // https://github.com/mui/material-ui/issues/41739 // to cross check whether this issue would still occur in the new API import * as React from 'react'; diff --git a/docs/app/experiments/slider-marks.tsx b/docs/app/experiments/slider-marks.tsx index d657adf020..2026be9b07 100644 --- a/docs/app/experiments/slider-marks.tsx +++ b/docs/app/experiments/slider-marks.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Slider from '@base_ui/react/Slider'; import { useSliderContext } from '@base_ui/react/Slider'; diff --git a/docs/app/experiments/slider-template.tsx b/docs/app/experiments/slider-template.tsx index 46dc5022b7..33bee84cf1 100644 --- a/docs/app/experiments/slider-template.tsx +++ b/docs/app/experiments/slider-template.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Slider from '@base_ui/react/Slider'; import { Styles } from './slider'; diff --git a/docs/app/experiments/slider-tooltip.tsx b/docs/app/experiments/slider-tooltip.tsx index 977e93b775..d221b5c637 100644 --- a/docs/app/experiments/slider-tooltip.tsx +++ b/docs/app/experiments/slider-tooltip.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Slider from '@base_ui/react/Slider'; diff --git a/docs/app/experiments/slider.tsx b/docs/app/experiments/slider.tsx index 3d789a1a90..449930434d 100644 --- a/docs/app/experiments/slider.tsx +++ b/docs/app/experiments/slider.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Slider from '@base_ui/react/Slider'; diff --git a/docs/app/experiments/tabs.tsx b/docs/app/experiments/tabs.tsx index c52b25bc7b..c787815133 100644 --- a/docs/app/experiments/tabs.tsx +++ b/docs/app/experiments/tabs.tsx @@ -1,5 +1,4 @@ 'use client'; - /* eslint-disable react/no-danger */ import * as React from 'react'; import { css, styled } from '@mui/system'; diff --git a/docs/app/experiments/tooltip.tsx b/docs/app/experiments/tooltip.tsx index 039eb3671e..7a6cf11d4d 100644 --- a/docs/app/experiments/tooltip.tsx +++ b/docs/app/experiments/tooltip.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled, keyframes } from '@mui/system'; diff --git a/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.js b/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.js index 2259dd6762..dfece4502d 100644 --- a/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.js +++ b/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as AlertDialog from '@base_ui/react/AlertDialog'; import classes from './styles.module.css'; diff --git a/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.tsx b/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.tsx index 2259dd6762..dfece4502d 100644 --- a/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.tsx +++ b/docs/data/components/alert-dialog/AlertDialogIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as AlertDialog from '@base_ui/react/AlertDialog'; import classes from './styles.module.css'; diff --git a/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.js b/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.js index f34f4a133b..d61c8a6af0 100644 --- a/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.js +++ b/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as AlertDialog from '@base_ui/react/AlertDialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.tsx b/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.tsx index f34f4a133b..d61c8a6af0 100644 --- a/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.tsx +++ b/docs/data/components/alert-dialog/AlertDialogIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as AlertDialog from '@base_ui/react/AlertDialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.js b/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.js index e4c426cede..282a7bada9 100644 --- a/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.js +++ b/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as AlertDialog from '@base_ui/react/AlertDialog'; diff --git a/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.tsx b/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.tsx index 5086421b2b..5c82c36ad1 100644 --- a/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.tsx +++ b/docs/data/components/alert-dialog/AlertDialogIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as AlertDialog from '@base_ui/react/AlertDialog'; diff --git a/docs/data/components/alert-dialog/AlertDialogWithTransitions.js b/docs/data/components/alert-dialog/AlertDialogWithTransitions.js index 3d5ceafafb..e1a4044c40 100644 --- a/docs/data/components/alert-dialog/AlertDialogWithTransitions.js +++ b/docs/data/components/alert-dialog/AlertDialogWithTransitions.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseAlertDialog from '@base_ui/react/AlertDialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/alert-dialog/AlertDialogWithTransitions.tsx b/docs/data/components/alert-dialog/AlertDialogWithTransitions.tsx index 3d5ceafafb..e1a4044c40 100644 --- a/docs/data/components/alert-dialog/AlertDialogWithTransitions.tsx +++ b/docs/data/components/alert-dialog/AlertDialogWithTransitions.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseAlertDialog from '@base_ui/react/AlertDialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/alert-dialog/NestedAlertDialogs.js b/docs/data/components/alert-dialog/NestedAlertDialogs.js index 5eaea877f8..3e54627ca1 100644 --- a/docs/data/components/alert-dialog/NestedAlertDialogs.js +++ b/docs/data/components/alert-dialog/NestedAlertDialogs.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseAlertDialog from '@base_ui/react/AlertDialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/alert-dialog/NestedAlertDialogs.tsx b/docs/data/components/alert-dialog/NestedAlertDialogs.tsx index 5eaea877f8..3e54627ca1 100644 --- a/docs/data/components/alert-dialog/NestedAlertDialogs.tsx +++ b/docs/data/components/alert-dialog/NestedAlertDialogs.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseAlertDialog from '@base_ui/react/AlertDialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.js b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.js index 31331694ff..9451cc7002 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.js +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Checkbox from '@base_ui/react/Checkbox'; import * as CheckboxGroup from '@base_ui/react/CheckboxGroup'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.tsx b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.tsx index 31331694ff..9451cc7002 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.tsx +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/css/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Checkbox from '@base_ui/react/Checkbox'; import * as CheckboxGroup from '@base_ui/react/CheckboxGroup'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.js b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.js index 26b73c5315..7e3d15a310 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.js +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { css, styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.tsx b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.tsx index 26b73c5315..7e3d15a310 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.tsx +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { css, styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.js b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.js index 41a8de1373..62000e34d6 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.js +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.tsx b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.tsx index e6f2e72b61..4a0dea0124 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.tsx +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.js b/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.js index d7ce96b207..da680a42a4 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.js +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; import * as CheckboxGroup from '@base_ui/react/CheckboxGroup'; diff --git a/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.tsx b/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.tsx index a19cf961c3..d02bf96282 100644 --- a/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.tsx +++ b/docs/data/components/checkbox-group/UnstyledCheckboxGroupNested.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; import * as CheckboxGroup from '@base_ui/react/CheckboxGroup'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.js b/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.js index e8a8fe2acb..df35d422c1 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.js +++ b/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.tsx b/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.tsx index e8a8fe2acb..df35d422c1 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.tsx +++ b/docs/data/components/checkbox/UnstyledCheckboxIndeterminate.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.js b/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.js index 0cd0d808c6..55e00276f8 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.js +++ b/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.tsx b/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.tsx index 0cd0d808c6..55e00276f8 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.tsx +++ b/docs/data/components/checkbox/UnstyledCheckboxIndeterminateGroup.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.js b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.js index 98af321597..bd1a3dc81d 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.js +++ b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Checkbox from '@base_ui/react/Checkbox'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.tsx b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.tsx index 98af321597..bd1a3dc81d 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.tsx +++ b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Checkbox from '@base_ui/react/Checkbox'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.js b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.js index 049b7a0aa5..2aad3c2e19 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.js +++ b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.tsx b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.tsx index 049b7a0aa5..2aad3c2e19 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.tsx +++ b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.js b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.js index d3d174a4b5..bf1eee08b1 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.js +++ b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; diff --git a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.tsx b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.tsx index 25e27a7048..2b4a8d293b 100644 --- a/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.tsx +++ b/docs/data/components/checkbox/UnstyledCheckboxIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseCheckbox from '@base_ui/react/Checkbox'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/dialog/DialogWithTransitions.js b/docs/data/components/dialog/DialogWithTransitions.js index 29bd171575..7b219eb985 100644 --- a/docs/data/components/dialog/DialogWithTransitions.js +++ b/docs/data/components/dialog/DialogWithTransitions.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseDialog from '@base_ui/react/Dialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/dialog/DialogWithTransitions.tsx b/docs/data/components/dialog/DialogWithTransitions.tsx index 29bd171575..7b219eb985 100644 --- a/docs/data/components/dialog/DialogWithTransitions.tsx +++ b/docs/data/components/dialog/DialogWithTransitions.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseDialog from '@base_ui/react/Dialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/dialog/NestedDialogs.js b/docs/data/components/dialog/NestedDialogs.js index 96e44ba29d..1ecbc04465 100644 --- a/docs/data/components/dialog/NestedDialogs.js +++ b/docs/data/components/dialog/NestedDialogs.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseDialog from '@base_ui/react/Dialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/dialog/NestedDialogs.tsx b/docs/data/components/dialog/NestedDialogs.tsx index 96e44ba29d..1ecbc04465 100644 --- a/docs/data/components/dialog/NestedDialogs.tsx +++ b/docs/data/components/dialog/NestedDialogs.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseDialog from '@base_ui/react/Dialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.js b/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.js index 47dcb72da2..9e9eaab474 100644 --- a/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.js +++ b/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Dialog from '@base_ui/react/Dialog'; import classes from './styles.module.css'; diff --git a/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.tsx b/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.tsx index 47dcb72da2..9e9eaab474 100644 --- a/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.tsx +++ b/docs/data/components/dialog/UnstyledDialogIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Dialog from '@base_ui/react/Dialog'; import classes from './styles.module.css'; diff --git a/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.js b/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.js index 42e8924c1b..4129596a8f 100644 --- a/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.js +++ b/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Dialog from '@base_ui/react/Dialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.tsx b/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.tsx index 42e8924c1b..4129596a8f 100644 --- a/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.tsx +++ b/docs/data/components/dialog/UnstyledDialogIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Dialog from '@base_ui/react/Dialog'; import { styled } from '@mui/system'; diff --git a/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.js b/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.js index 6e2afc4733..f4ebdf05b9 100644 --- a/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.js +++ b/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Dialog from '@base_ui/react/Dialog'; diff --git a/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.tsx b/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.tsx index 5ec24deb6c..d94898973c 100644 --- a/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.tsx +++ b/docs/data/components/dialog/UnstyledDialogIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Dialog from '@base_ui/react/Dialog'; diff --git a/docs/data/components/field/UnstyledFieldAsync.js b/docs/data/components/field/UnstyledFieldAsync.js index 5c8529b04a..4a413760c7 100644 --- a/docs/data/components/field/UnstyledFieldAsync.js +++ b/docs/data/components/field/UnstyledFieldAsync.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldAsync.tsx b/docs/data/components/field/UnstyledFieldAsync.tsx index 1b03e56cff..8a1a7448d2 100644 --- a/docs/data/components/field/UnstyledFieldAsync.tsx +++ b/docs/data/components/field/UnstyledFieldAsync.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldIntroduction/system/index.js b/docs/data/components/field/UnstyledFieldIntroduction/system/index.js index 534c9a2e09..75e1492847 100644 --- a/docs/data/components/field/UnstyledFieldIntroduction/system/index.js +++ b/docs/data/components/field/UnstyledFieldIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldIntroduction/system/index.tsx b/docs/data/components/field/UnstyledFieldIntroduction/system/index.tsx index 534c9a2e09..75e1492847 100644 --- a/docs/data/components/field/UnstyledFieldIntroduction/system/index.tsx +++ b/docs/data/components/field/UnstyledFieldIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldPassword.js b/docs/data/components/field/UnstyledFieldPassword.js index 709b3739b8..ccc729cd0c 100644 --- a/docs/data/components/field/UnstyledFieldPassword.js +++ b/docs/data/components/field/UnstyledFieldPassword.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldPassword.tsx b/docs/data/components/field/UnstyledFieldPassword.tsx index ca0339221b..1181ef90e5 100644 --- a/docs/data/components/field/UnstyledFieldPassword.tsx +++ b/docs/data/components/field/UnstyledFieldPassword.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldServerError.js b/docs/data/components/field/UnstyledFieldServerError.js index 59ef168049..79855e6a45 100644 --- a/docs/data/components/field/UnstyledFieldServerError.js +++ b/docs/data/components/field/UnstyledFieldServerError.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/field/UnstyledFieldServerError.tsx b/docs/data/components/field/UnstyledFieldServerError.tsx index 0abc346b77..70405982d5 100644 --- a/docs/data/components/field/UnstyledFieldServerError.tsx +++ b/docs/data/components/field/UnstyledFieldServerError.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import { styled } from '@mui/system'; diff --git a/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.js b/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.js index 9555506e2a..fc0380e070 100644 --- a/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.js +++ b/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import * as Fieldset from '@base_ui/react/Fieldset'; diff --git a/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.tsx b/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.tsx index 9555506e2a..fc0380e070 100644 --- a/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.tsx +++ b/docs/data/components/fieldset/UnstyledFieldsetIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Field from '@base_ui/react/Field'; import * as Fieldset from '@base_ui/react/Fieldset'; diff --git a/docs/data/components/menu/MenuIntroduction/css-modules/Menu.js b/docs/data/components/menu/MenuIntroduction/css-modules/Menu.js index cc7277595e..b7ab6ab1f2 100644 --- a/docs/data/components/menu/MenuIntroduction/css-modules/Menu.js +++ b/docs/data/components/menu/MenuIntroduction/css-modules/Menu.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import * as BaseMenu from '@base_ui/react/Menu'; diff --git a/docs/data/components/menu/MenuIntroduction/css-modules/Menu.tsx b/docs/data/components/menu/MenuIntroduction/css-modules/Menu.tsx index d3044768fb..937f3c13ce 100644 --- a/docs/data/components/menu/MenuIntroduction/css-modules/Menu.tsx +++ b/docs/data/components/menu/MenuIntroduction/css-modules/Menu.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseMenu from '@base_ui/react/Menu'; import classes from './Menu.module.css'; diff --git a/docs/data/components/menu/MenuIntroduction/css-modules/index.js b/docs/data/components/menu/MenuIntroduction/css-modules/index.js index 172271f624..8751242269 100644 --- a/docs/data/components/menu/MenuIntroduction/css-modules/index.js +++ b/docs/data/components/menu/MenuIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { Menu, MenuItems, MenuItem, MenuTrigger } from './Menu'; diff --git a/docs/data/components/menu/MenuIntroduction/css-modules/index.tsx b/docs/data/components/menu/MenuIntroduction/css-modules/index.tsx index 533c546c9f..caa5b8578b 100644 --- a/docs/data/components/menu/MenuIntroduction/css-modules/index.tsx +++ b/docs/data/components/menu/MenuIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { Menu, MenuItems, MenuItem, MenuTrigger } from './Menu'; diff --git a/docs/data/components/menu/MenuIntroduction/system/index.js b/docs/data/components/menu/MenuIntroduction/system/index.js index d57d0d289f..41a358cd04 100644 --- a/docs/data/components/menu/MenuIntroduction/system/index.js +++ b/docs/data/components/menu/MenuIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Menu from '@base_ui/react/Menu'; import { styled } from '@mui/system'; diff --git a/docs/data/components/menu/MenuIntroduction/system/index.tsx b/docs/data/components/menu/MenuIntroduction/system/index.tsx index 1ab204057c..202decc792 100644 --- a/docs/data/components/menu/MenuIntroduction/system/index.tsx +++ b/docs/data/components/menu/MenuIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Menu from '@base_ui/react/Menu'; import { styled } from '@mui/system'; diff --git a/docs/data/components/menu/MenuIntroduction/tailwind/index.js b/docs/data/components/menu/MenuIntroduction/tailwind/index.js index 7761805eff..126f3fb6ab 100644 --- a/docs/data/components/menu/MenuIntroduction/tailwind/index.js +++ b/docs/data/components/menu/MenuIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Menu from '@base_ui/react/Menu'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/menu/MenuIntroduction/tailwind/index.tsx b/docs/data/components/menu/MenuIntroduction/tailwind/index.tsx index 6d25f08e03..920ef21d54 100644 --- a/docs/data/components/menu/MenuIntroduction/tailwind/index.tsx +++ b/docs/data/components/menu/MenuIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Menu from '@base_ui/react/Menu'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/menu/NestedMenu.js b/docs/data/components/menu/NestedMenu.js index cbf23ee2a8..82d31a8227 100644 --- a/docs/data/components/menu/NestedMenu.js +++ b/docs/data/components/menu/NestedMenu.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Menu from '@base_ui/react/Menu'; import { styled } from '@mui/system'; diff --git a/docs/data/components/menu/NestedMenu.tsx b/docs/data/components/menu/NestedMenu.tsx index 1132e1b3e4..9eb43acaf5 100644 --- a/docs/data/components/menu/NestedMenu.tsx +++ b/docs/data/components/menu/NestedMenu.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Menu from '@base_ui/react/Menu'; import { styled } from '@mui/system'; diff --git a/docs/data/components/no-ssr/FrameDeferring.js b/docs/data/components/no-ssr/FrameDeferring.js index 5b4b632f84..4a9b5b5f13 100644 --- a/docs/data/components/no-ssr/FrameDeferring.js +++ b/docs/data/components/no-ssr/FrameDeferring.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { NoSsr } from '@base_ui/react/NoSsr'; import { Box } from '@mui/system'; diff --git a/docs/data/components/no-ssr/FrameDeferring.tsx b/docs/data/components/no-ssr/FrameDeferring.tsx index 6682cee30f..3b1679494c 100644 --- a/docs/data/components/no-ssr/FrameDeferring.tsx +++ b/docs/data/components/no-ssr/FrameDeferring.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { NoSsr } from '@base_ui/react/NoSsr'; import { Box } from '@mui/system'; diff --git a/docs/data/components/no-ssr/SimpleNoSsr.js b/docs/data/components/no-ssr/SimpleNoSsr.js index d7831627cd..4c3fa6b528 100644 --- a/docs/data/components/no-ssr/SimpleNoSsr.js +++ b/docs/data/components/no-ssr/SimpleNoSsr.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { NoSsr } from '@base_ui/react/NoSsr'; import { Box } from '@mui/system'; diff --git a/docs/data/components/no-ssr/SimpleNoSsr.tsx b/docs/data/components/no-ssr/SimpleNoSsr.tsx index d7831627cd..4c3fa6b528 100644 --- a/docs/data/components/no-ssr/SimpleNoSsr.tsx +++ b/docs/data/components/no-ssr/SimpleNoSsr.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { NoSsr } from '@base_ui/react/NoSsr'; import { Box } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldFormat.js b/docs/data/components/number-field/UnstyledNumberFieldFormat.js index 5b4c47333c..6354175c3b 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldFormat.js +++ b/docs/data/components/number-field/UnstyledNumberFieldFormat.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { styled, css } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldFormat.tsx b/docs/data/components/number-field/UnstyledNumberFieldFormat.tsx index 5b4c47333c..6354175c3b 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldFormat.tsx +++ b/docs/data/components/number-field/UnstyledNumberFieldFormat.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { styled, css } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.js b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.js index 8f2abc4ace..f4919cd483 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.js +++ b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as NumberField from '@base_ui/react/NumberField'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.tsx b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.tsx index 8f2abc4ace..f4919cd483 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.tsx +++ b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as NumberField from '@base_ui/react/NumberField'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.js b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.js index a8b2a32896..0ecfce83ea 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.js +++ b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import * as Field from '@base_ui/react/Field'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.tsx b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.tsx index a8b2a32896..0ecfce83ea 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.tsx +++ b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import * as Field from '@base_ui/react/Field'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.js b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.js index e05bc3b091..7fb70bffe1 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.js +++ b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import * as BaseNumberField from '@base_ui/react/NumberField'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.tsx b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.tsx index b4e5550b80..889d039e17 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.tsx +++ b/docs/data/components/number-field/UnstyledNumberFieldIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldScrub.js b/docs/data/components/number-field/UnstyledNumberFieldScrub.js index 0e5dea5dfd..164de5acf1 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldScrub.js +++ b/docs/data/components/number-field/UnstyledNumberFieldScrub.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { styled } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldScrub.tsx b/docs/data/components/number-field/UnstyledNumberFieldScrub.tsx index 0e5dea5dfd..164de5acf1 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldScrub.tsx +++ b/docs/data/components/number-field/UnstyledNumberFieldScrub.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { styled } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.js b/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.js index d47b767b0a..b0ef9a2b74 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.js +++ b/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { styled } from '@mui/system'; diff --git a/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.tsx b/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.tsx index d47b767b0a..b0ef9a2b74 100644 --- a/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.tsx +++ b/docs/data/components/number-field/UnstyledNumberFieldWheelScrub.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseNumberField from '@base_ui/react/NumberField'; import { styled } from '@mui/system'; diff --git a/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.js b/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.js index ce9d793dca..38d2d2de2a 100644 --- a/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.js +++ b/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Popover from '@base_ui/react/Popover'; import { styled } from '@mui/system'; diff --git a/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.tsx b/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.tsx index ce9d793dca..38d2d2de2a 100644 --- a/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.tsx +++ b/docs/data/components/popover/UnstyledPopoverIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Popover from '@base_ui/react/Popover'; import { styled } from '@mui/system'; diff --git a/docs/data/components/popover/UnstyledPopoverTransition.js b/docs/data/components/popover/UnstyledPopoverTransition.js index 1717eeca72..5e50a7e09c 100644 --- a/docs/data/components/popover/UnstyledPopoverTransition.js +++ b/docs/data/components/popover/UnstyledPopoverTransition.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Popover from '@base_ui/react/Popover'; import { styled } from '@mui/system'; diff --git a/docs/data/components/popover/UnstyledPopoverTransition.tsx b/docs/data/components/popover/UnstyledPopoverTransition.tsx index 1717eeca72..5e50a7e09c 100644 --- a/docs/data/components/popover/UnstyledPopoverTransition.tsx +++ b/docs/data/components/popover/UnstyledPopoverTransition.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Popover from '@base_ui/react/Popover'; import { styled } from '@mui/system'; diff --git a/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.js b/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.js index 4204a6ee9a..e7506c5c75 100644 --- a/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.js +++ b/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as PreviewCard from '@base_ui/react/PreviewCard'; import { styled } from '@mui/system'; diff --git a/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.tsx b/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.tsx index 4204a6ee9a..e7506c5c75 100644 --- a/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.tsx +++ b/docs/data/components/preview-card/UnstyledPreviewCardIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as PreviewCard from '@base_ui/react/PreviewCard'; import { styled } from '@mui/system'; diff --git a/docs/data/components/preview-card/UnstyledPreviewCardTransition.js b/docs/data/components/preview-card/UnstyledPreviewCardTransition.js index 0294149384..346ba7917e 100644 --- a/docs/data/components/preview-card/UnstyledPreviewCardTransition.js +++ b/docs/data/components/preview-card/UnstyledPreviewCardTransition.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as PreviewCard from '@base_ui/react/PreviewCard'; import { styled } from '@mui/system'; diff --git a/docs/data/components/preview-card/UnstyledPreviewCardTransition.tsx b/docs/data/components/preview-card/UnstyledPreviewCardTransition.tsx index 0294149384..346ba7917e 100644 --- a/docs/data/components/preview-card/UnstyledPreviewCardTransition.tsx +++ b/docs/data/components/preview-card/UnstyledPreviewCardTransition.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as PreviewCard from '@base_ui/react/PreviewCard'; import { styled } from '@mui/system'; diff --git a/docs/data/components/progress/IndeterminateProgress.js b/docs/data/components/progress/IndeterminateProgress.js index cd566a6393..b3195b7a1f 100644 --- a/docs/data/components/progress/IndeterminateProgress.js +++ b/docs/data/components/progress/IndeterminateProgress.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseProgress from '@base_ui/react/Progress'; import { Box, styled, keyframes, css } from '@mui/system'; diff --git a/docs/data/components/progress/IndeterminateProgress.tsx b/docs/data/components/progress/IndeterminateProgress.tsx index cd566a6393..b3195b7a1f 100644 --- a/docs/data/components/progress/IndeterminateProgress.tsx +++ b/docs/data/components/progress/IndeterminateProgress.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseProgress from '@base_ui/react/Progress'; import { Box, styled, keyframes, css } from '@mui/system'; diff --git a/docs/data/components/progress/RtlProgress.js b/docs/data/components/progress/RtlProgress.js index e9a9d993cf..1c95abdc82 100644 --- a/docs/data/components/progress/RtlProgress.js +++ b/docs/data/components/progress/RtlProgress.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseProgress from '@base_ui/react/Progress'; import { Box, styled } from '@mui/system'; diff --git a/docs/data/components/progress/RtlProgress.tsx b/docs/data/components/progress/RtlProgress.tsx index e9a9d993cf..1c95abdc82 100644 --- a/docs/data/components/progress/RtlProgress.tsx +++ b/docs/data/components/progress/RtlProgress.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseProgress from '@base_ui/react/Progress'; import { Box, styled } from '@mui/system'; diff --git a/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.js b/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.js index ccceb6ba64..bee6da9c00 100644 --- a/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.js +++ b/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Progress from '@base_ui/react/Progress'; diff --git a/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.tsx b/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.tsx index ccceb6ba64..bee6da9c00 100644 --- a/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.tsx +++ b/docs/data/components/progress/UnstyledProgressIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Progress from '@base_ui/react/Progress'; diff --git a/docs/data/components/progress/UnstyledProgressIntroduction/system/index.js b/docs/data/components/progress/UnstyledProgressIntroduction/system/index.js index 948ffaafa3..750a30a67e 100644 --- a/docs/data/components/progress/UnstyledProgressIntroduction/system/index.js +++ b/docs/data/components/progress/UnstyledProgressIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled, useTheme, Box } from '@mui/system'; import * as BaseProgress from '@base_ui/react/Progress'; diff --git a/docs/data/components/progress/UnstyledProgressIntroduction/system/index.tsx b/docs/data/components/progress/UnstyledProgressIntroduction/system/index.tsx index 948ffaafa3..750a30a67e 100644 --- a/docs/data/components/progress/UnstyledProgressIntroduction/system/index.tsx +++ b/docs/data/components/progress/UnstyledProgressIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled, useTheme, Box } from '@mui/system'; import * as BaseProgress from '@base_ui/react/Progress'; diff --git a/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.js b/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.js index 0685db07d0..65cdae0d48 100644 --- a/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.js +++ b/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.tsx b/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.tsx index 83e64b9080..be812666a7 100644 --- a/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.tsx +++ b/docs/data/components/progress/UnstyledProgressIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as BaseProgress from '@base_ui/react/Progress'; diff --git a/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.js b/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.js index 190532eebb..37a96630af 100644 --- a/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.js +++ b/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as RadioGroup from '@base_ui/react/RadioGroup'; import * as Radio from '@base_ui/react/Radio'; diff --git a/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.tsx b/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.tsx index 190532eebb..37a96630af 100644 --- a/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.tsx +++ b/docs/data/components/radio-group/UnstyledRadioGroupIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as RadioGroup from '@base_ui/react/RadioGroup'; import * as Radio from '@base_ui/react/Radio'; diff --git a/docs/data/components/slider/RangeSlider.js b/docs/data/components/slider/RangeSlider.js index f3d01df512..f8b56822b3 100644 --- a/docs/data/components/slider/RangeSlider.js +++ b/docs/data/components/slider/RangeSlider.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled, useTheme, Box } from '@mui/system'; import * as BaseSlider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/RangeSlider.tsx b/docs/data/components/slider/RangeSlider.tsx index 1bca66f5c5..ddb0cdabaa 100644 --- a/docs/data/components/slider/RangeSlider.tsx +++ b/docs/data/components/slider/RangeSlider.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled, useTheme, Box } from '@mui/system'; import * as BaseSlider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/RtlSlider.js b/docs/data/components/slider/RtlSlider.js index 5d1006b386..13c3d16caf 100644 --- a/docs/data/components/slider/RtlSlider.js +++ b/docs/data/components/slider/RtlSlider.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import * as BaseSlider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/RtlSlider.tsx b/docs/data/components/slider/RtlSlider.tsx index f92ce03d01..62f0aea2dd 100644 --- a/docs/data/components/slider/RtlSlider.tsx +++ b/docs/data/components/slider/RtlSlider.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseSlider from '@base_ui/react/Slider'; import { styled, useTheme, Box } from '@mui/system'; diff --git a/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.js b/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.js index f0296cf30b..966ce832a2 100644 --- a/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.js +++ b/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.tsx b/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.tsx index 18d6244e5f..d69cde9cf5 100644 --- a/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.tsx +++ b/docs/data/components/slider/UnstyledSliderIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Slider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/UnstyledSliderIntroduction/system/index.js b/docs/data/components/slider/UnstyledSliderIntroduction/system/index.js index 84fd02d42f..dc0b9eec02 100644 --- a/docs/data/components/slider/UnstyledSliderIntroduction/system/index.js +++ b/docs/data/components/slider/UnstyledSliderIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import { styled, useTheme, Box } from '@mui/system'; diff --git a/docs/data/components/slider/UnstyledSliderIntroduction/system/index.tsx b/docs/data/components/slider/UnstyledSliderIntroduction/system/index.tsx index fefbad683e..4d971a0cd1 100644 --- a/docs/data/components/slider/UnstyledSliderIntroduction/system/index.tsx +++ b/docs/data/components/slider/UnstyledSliderIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled, useTheme, Box } from '@mui/system'; import * as BaseSlider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.js b/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.js index c673b45545..5f1c308619 100644 --- a/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.js +++ b/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.tsx b/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.tsx index b531f287d7..f079c3ad49 100644 --- a/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.tsx +++ b/docs/data/components/slider/UnstyledSliderIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as BaseSlider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/VerticalSlider.js b/docs/data/components/slider/VerticalSlider.js index 3a11e378ab..13c57c833c 100644 --- a/docs/data/components/slider/VerticalSlider.js +++ b/docs/data/components/slider/VerticalSlider.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import * as Slider from '@base_ui/react/Slider'; diff --git a/docs/data/components/slider/VerticalSlider.tsx b/docs/data/components/slider/VerticalSlider.tsx index 468bc993bb..a535eb341c 100644 --- a/docs/data/components/slider/VerticalSlider.tsx +++ b/docs/data/components/slider/VerticalSlider.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Slider from '@base_ui/react/Slider'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.js b/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.js index 74aeff78bf..ca04551ec5 100644 --- a/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.js +++ b/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Switch from '@base_ui/react/Switch'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.tsx b/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.tsx index 74aeff78bf..ca04551ec5 100644 --- a/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.tsx +++ b/docs/data/components/switch/UnstyledSwitchIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Switch from '@base_ui/react/Switch'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.js b/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.js index aa280dc8a1..bac7657604 100644 --- a/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.js +++ b/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseSwitch from '@base_ui/react/Switch'; diff --git a/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.tsx b/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.tsx index aa280dc8a1..bac7657604 100644 --- a/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.tsx +++ b/docs/data/components/switch/UnstyledSwitchIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as BaseSwitch from '@base_ui/react/Switch'; diff --git a/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.js b/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.js index 5de579400b..9343aef64d 100644 --- a/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.js +++ b/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseSwitch from '@base_ui/react/Switch'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.tsx b/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.tsx index 98f1384bf2..f7443c9756 100644 --- a/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.tsx +++ b/docs/data/components/switch/UnstyledSwitchIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseSwitch from '@base_ui/react/Switch'; import { useTheme } from '@mui/system'; diff --git a/docs/data/components/tabs/IndicatorBubble.js b/docs/data/components/tabs/IndicatorBubble.js index 037ae09080..6866800e4e 100644 --- a/docs/data/components/tabs/IndicatorBubble.js +++ b/docs/data/components/tabs/IndicatorBubble.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { css, styled } from '@mui/system'; import * as BaseTabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/IndicatorBubble.tsx b/docs/data/components/tabs/IndicatorBubble.tsx index 037ae09080..6866800e4e 100644 --- a/docs/data/components/tabs/IndicatorBubble.tsx +++ b/docs/data/components/tabs/IndicatorBubble.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { css, styled } from '@mui/system'; import * as BaseTabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/IndicatorUnderline.js b/docs/data/components/tabs/IndicatorUnderline.js index f3fd01da2c..cf78e34dd7 100644 --- a/docs/data/components/tabs/IndicatorUnderline.js +++ b/docs/data/components/tabs/IndicatorUnderline.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { css, styled } from '@mui/system'; import * as BaseTabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/IndicatorUnderline.tsx b/docs/data/components/tabs/IndicatorUnderline.tsx index f3fd01da2c..cf78e34dd7 100644 --- a/docs/data/components/tabs/IndicatorUnderline.tsx +++ b/docs/data/components/tabs/IndicatorUnderline.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { css, styled } from '@mui/system'; import * as BaseTabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/KeyboardNavigation.js b/docs/data/components/tabs/KeyboardNavigation.js index fb082550ca..163f1229c6 100644 --- a/docs/data/components/tabs/KeyboardNavigation.js +++ b/docs/data/components/tabs/KeyboardNavigation.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/KeyboardNavigation.tsx b/docs/data/components/tabs/KeyboardNavigation.tsx index fb082550ca..163f1229c6 100644 --- a/docs/data/components/tabs/KeyboardNavigation.tsx +++ b/docs/data/components/tabs/KeyboardNavigation.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.js b/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.js index 2531db8195..1044ae5137 100644 --- a/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.js +++ b/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.tsx b/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.tsx index 2531db8195..1044ae5137 100644 --- a/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.tsx +++ b/docs/data/components/tabs/UnstyledTabsIntroduction/css-modules/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useTheme } from '@mui/system'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.js b/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.js index dfd7de0cce..aea0b9744c 100644 --- a/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.js +++ b/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.tsx b/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.tsx index dfd7de0cce..aea0b9744c 100644 --- a/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.tsx +++ b/docs/data/components/tabs/UnstyledTabsIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { styled } from '@mui/system'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.js b/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.js index 491e2aa8ed..d8bd50d5bf 100644 --- a/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.js +++ b/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; diff --git a/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.tsx b/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.tsx index 633ad3ac71..4eb2e98f54 100644 --- a/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.tsx +++ b/docs/data/components/tabs/UnstyledTabsIntroduction/tailwind/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import clsx from 'clsx'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsRouting.js b/docs/data/components/tabs/UnstyledTabsRouting.js index dac043a0cf..5bd42b9d89 100644 --- a/docs/data/components/tabs/UnstyledTabsRouting.js +++ b/docs/data/components/tabs/UnstyledTabsRouting.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/data/components/tabs/UnstyledTabsRouting.tsx b/docs/data/components/tabs/UnstyledTabsRouting.tsx index ee7a606b9b..fff226d17d 100644 --- a/docs/data/components/tabs/UnstyledTabsRouting.tsx +++ b/docs/data/components/tabs/UnstyledTabsRouting.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tabs from '@base_ui/react/Tabs'; import { diff --git a/docs/data/components/tooltip/UnstyledTooltipDelayGroup.js b/docs/data/components/tooltip/UnstyledTooltipDelayGroup.js index 69e9d3e1a7..cfe835f234 100644 --- a/docs/data/components/tooltip/UnstyledTooltipDelayGroup.js +++ b/docs/data/components/tooltip/UnstyledTooltipDelayGroup.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipDelayGroup.tsx b/docs/data/components/tooltip/UnstyledTooltipDelayGroup.tsx index 69e9d3e1a7..cfe835f234 100644 --- a/docs/data/components/tooltip/UnstyledTooltipDelayGroup.tsx +++ b/docs/data/components/tooltip/UnstyledTooltipDelayGroup.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js index d4a4ea4b73..957eceae5c 100644 --- a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js +++ b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx index d4a4ea4b73..957eceae5c 100644 --- a/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx +++ b/docs/data/components/tooltip/UnstyledTooltipFollowCursor.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.js b/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.js index e2e0946684..6d2492f1c7 100644 --- a/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.js +++ b/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.tsx b/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.tsx index e2e0946684..6d2492f1c7 100644 --- a/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.tsx +++ b/docs/data/components/tooltip/UnstyledTooltipIntroduction/system/index.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipTransition.js b/docs/data/components/tooltip/UnstyledTooltipTransition.js index ecade84705..1ac008c3da 100644 --- a/docs/data/components/tooltip/UnstyledTooltipTransition.js +++ b/docs/data/components/tooltip/UnstyledTooltipTransition.js @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/data/components/tooltip/UnstyledTooltipTransition.tsx b/docs/data/components/tooltip/UnstyledTooltipTransition.tsx index ecade84705..1ac008c3da 100644 --- a/docs/data/components/tooltip/UnstyledTooltipTransition.tsx +++ b/docs/data/components/tooltip/UnstyledTooltipTransition.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tooltip from '@base_ui/react/Tooltip'; import { styled } from '@mui/system'; diff --git a/docs/src/blocks/Demo/DemoContext.ts b/docs/src/blocks/Demo/DemoContext.ts index 7cd43457a2..a615247452 100644 --- a/docs/src/blocks/Demo/DemoContext.ts +++ b/docs/src/blocks/Demo/DemoContext.ts @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { DemoFile, DemoVariant } from './types'; diff --git a/docs/src/blocks/Demo/DemoPlayground.tsx b/docs/src/blocks/Demo/DemoPlayground.tsx index 79f82a97b9..b525cace55 100644 --- a/docs/src/blocks/Demo/DemoPlayground.tsx +++ b/docs/src/blocks/Demo/DemoPlayground.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { DemoContext } from './DemoContext'; diff --git a/docs/src/blocks/Demo/DemoRoot.tsx b/docs/src/blocks/Demo/DemoRoot.tsx index 98e3217dc2..640763aaa0 100644 --- a/docs/src/blocks/Demo/DemoRoot.tsx +++ b/docs/src/blocks/Demo/DemoRoot.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { DemoVariant, DemoFile } from './types'; import { DemoContext } from './DemoContext'; diff --git a/docs/src/blocks/Demo/DemoSourceBrowser.tsx b/docs/src/blocks/Demo/DemoSourceBrowser.tsx index 496a004ece..438d306d04 100644 --- a/docs/src/blocks/Demo/DemoSourceBrowser.tsx +++ b/docs/src/blocks/Demo/DemoSourceBrowser.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { DemoContext } from './DemoContext'; diff --git a/docs/src/blocks/Demo/DemoSourceCopy.tsx b/docs/src/blocks/Demo/DemoSourceCopy.tsx index 5a4f78083b..92177f5d6f 100644 --- a/docs/src/blocks/Demo/DemoSourceCopy.tsx +++ b/docs/src/blocks/Demo/DemoSourceCopy.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import copy from 'clipboard-copy'; import { useDemoContext } from './DemoContext'; diff --git a/docs/src/blocks/GoogleAnalytics.tsx b/docs/src/blocks/GoogleAnalytics.tsx index 751c809c15..5883fec613 100644 --- a/docs/src/blocks/GoogleAnalytics.tsx +++ b/docs/src/blocks/GoogleAnalytics.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useMediaQuery } from '@base_ui/react/useMediaQuery'; diff --git a/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetCode.tsx b/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetCode.tsx index b5939a36f9..e2d74a1f12 100644 --- a/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetCode.tsx +++ b/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetCode.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tabs from '@base_ui/react/Tabs'; diff --git a/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetProvider.tsx b/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetProvider.tsx index c534809a2b..76990fdb65 100644 --- a/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetProvider.tsx +++ b/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetProvider.tsx @@ -1,5 +1,4 @@ 'use client'; - // eslint-disable-next-line no-restricted-imports import { useEnhancedEffect } from '@base_ui/react/utils/useEnhancedEffect'; import * as React from 'react'; diff --git a/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetRoot.tsx b/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetRoot.tsx index 1e1502eb53..eae7177cd5 100644 --- a/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetRoot.tsx +++ b/docs/src/blocks/PackageManagerSnippet/PackageManagerSnippetRoot.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as Tabs from '@base_ui/react/Tabs'; // eslint-disable-next-line no-restricted-imports diff --git a/docs/src/components/DocsVersionSelector.tsx b/docs/src/components/DocsVersionSelector.tsx index 4bbfd60f59..92be157508 100644 --- a/docs/src/components/DocsVersionSelector.tsx +++ b/docs/src/components/DocsVersionSelector.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { SelectIcon } from 'docs-base/src/icons/Select'; import * as Menu from '@base_ui/react/Menu'; diff --git a/docs/src/components/GoogleAnalytics.tsx b/docs/src/components/GoogleAnalytics.tsx index 14cf8a06b6..fae7cac8ec 100644 --- a/docs/src/components/GoogleAnalytics.tsx +++ b/docs/src/components/GoogleAnalytics.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { usePathname } from 'next/navigation'; import { useDemoVariantSelectorContext } from './demo/DemoVariantSelectorProvider'; diff --git a/docs/src/components/content/PackageManagerSnippet.tsx b/docs/src/components/content/PackageManagerSnippet.tsx index c3e3e795a3..81e0a25a5a 100644 --- a/docs/src/components/content/PackageManagerSnippet.tsx +++ b/docs/src/components/content/PackageManagerSnippet.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BasePackageManagerSnippet from '../../blocks/PackageManagerSnippet'; import classes from './PackageManagerSnippet.module.css'; diff --git a/docs/src/components/demo/CodeSandboxLink.tsx b/docs/src/components/demo/CodeSandboxLink.tsx index d432d3bbb5..403aa051be 100644 --- a/docs/src/components/demo/CodeSandboxLink.tsx +++ b/docs/src/components/demo/CodeSandboxLink.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useDemoContext } from 'docs-base/src/blocks/Demo/DemoContext'; import { createCodeSandbox } from 'docs-base/src/blocks/sandbox/createCodeSandbox'; diff --git a/docs/src/components/demo/Demo.tsx b/docs/src/components/demo/Demo.tsx index bbdaf9b5b6..cfeb7b6a86 100644 --- a/docs/src/components/demo/Demo.tsx +++ b/docs/src/components/demo/Demo.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import clsx from 'clsx'; import * as Collapsible from '@base_ui/react/Collapsible'; diff --git a/docs/src/components/demo/DemoFileSelector.tsx b/docs/src/components/demo/DemoFileSelector.tsx index 183ed14668..c15610dc3b 100644 --- a/docs/src/components/demo/DemoFileSelector.tsx +++ b/docs/src/components/demo/DemoFileSelector.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import clsx from 'clsx'; import { DemoContext } from 'docs-base/src/blocks/Demo'; diff --git a/docs/src/components/demo/DemoVariantSelector.tsx b/docs/src/components/demo/DemoVariantSelector.tsx index 3c27b07f4e..56fda99b5f 100644 --- a/docs/src/components/demo/DemoVariantSelector.tsx +++ b/docs/src/components/demo/DemoVariantSelector.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { type DemoVariant } from 'docs-base/src/blocks/Demo'; import { useDemoContext } from 'docs-base/src/blocks/Demo/DemoContext'; diff --git a/docs/src/components/demo/DemoVariantSelectorProvider.tsx b/docs/src/components/demo/DemoVariantSelectorProvider.tsx index fccf1827ed..7c1e544104 100644 --- a/docs/src/components/demo/DemoVariantSelectorProvider.tsx +++ b/docs/src/components/demo/DemoVariantSelectorProvider.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; // eslint-disable-next-line no-restricted-imports import { useEnhancedEffect } from '@base_ui/react/utils/useEnhancedEffect'; diff --git a/docs/src/components/demo/StackBlitzLink.tsx b/docs/src/components/demo/StackBlitzLink.tsx index ecd7263320..989839d713 100644 --- a/docs/src/components/demo/StackBlitzLink.tsx +++ b/docs/src/components/demo/StackBlitzLink.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useDemoContext } from 'docs-base/src/blocks/Demo/DemoContext'; import { createStackBlitzProject } from 'docs-base/src/blocks/sandbox/createStackBlitzProject'; diff --git a/docs/src/design-system/Tooltip.tsx b/docs/src/design-system/Tooltip.tsx index eea4bbdbef..1d0e04219e 100644 --- a/docs/src/design-system/Tooltip.tsx +++ b/docs/src/design-system/Tooltip.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import * as BaseTooltip from '@base_ui/react/Tooltip'; import classes from './Tooltip.module.css'; diff --git a/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx b/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx index cc5588c5f0..b8df587c4c 100644 --- a/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx +++ b/packages/mui-base/src/AlertDialog/Backdrop/AlertDialogBackdrop.tsx @@ -1,5 +1,4 @@ '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 0df7d3a8de..09abb4c494 100644 --- a/packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx +++ b/packages/mui-base/src/AlertDialog/Close/AlertDialogClose.tsx @@ -1,5 +1,4 @@ '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 37ed65e959..45b9bd5107 100644 --- a/packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.tsx +++ b/packages/mui-base/src/AlertDialog/Description/AlertDialogDescription.tsx @@ -1,5 +1,4 @@ '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 1068713bea..f325ab4e00 100644 --- a/packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx +++ b/packages/mui-base/src/AlertDialog/Popup/AlertDialogPopup.tsx @@ -1,5 +1,4 @@ '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 24aeb86dac..bf09dbd81c 100644 --- a/packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx +++ b/packages/mui-base/src/AlertDialog/Root/AlertDialogRoot.tsx @@ -1,5 +1,4 @@ '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 7e3d53e60a..28f710daab 100644 --- a/packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts +++ b/packages/mui-base/src/AlertDialog/Root/AlertDialogRootContext.ts @@ -1,5 +1,4 @@ '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 83d5d528fa..ffbad4caef 100644 --- a/packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx +++ b/packages/mui-base/src/AlertDialog/Title/AlertDialogTitle.tsx @@ -1,5 +1,4 @@ '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 620578ba39..7f813ad4d4 100644 --- a/packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx +++ b/packages/mui-base/src/AlertDialog/Trigger/AlertDialogTrigger.tsx @@ -1,5 +1,4 @@ '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 f0b6c7bee7..e41dd8a952 100644 --- a/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx +++ b/packages/mui-base/src/Checkbox/Indicator/CheckboxIndicator.tsx @@ -1,5 +1,4 @@ '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 4749a556cd..57cf012462 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts +++ b/packages/mui-base/src/Checkbox/Root/CheckboxContext.ts @@ -1,5 +1,4 @@ '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 eb00eedb72..f1551d21ed 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx +++ b/packages/mui-base/src/Checkbox/Root/CheckboxRoot.tsx @@ -1,5 +1,4 @@ '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 0bb7d6ab01..3b3923608e 100644 --- a/packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts +++ b/packages/mui-base/src/Checkbox/Root/CheckboxRootContext.ts @@ -1,5 +1,4 @@ '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 bd9f4c106b..ab46fd9f6e 100644 --- a/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts +++ b/packages/mui-base/src/Checkbox/Root/useCheckboxRoot.ts @@ -1,5 +1,4 @@ '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 1fa41f0065..788cc4326f 100644 --- a/packages/mui-base/src/Checkbox/utils.ts +++ b/packages/mui-base/src/Checkbox/utils.ts @@ -1,5 +1,4 @@ '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 64c09f3212..c9fc7be4f2 100644 --- a/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts +++ b/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts @@ -1,5 +1,4 @@ '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 78e1adb345..14b3388730 100644 --- a/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx +++ b/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRoot.tsx @@ -1,5 +1,4 @@ '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 c16719e6f7..0c4b461c5f 100644 --- a/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts +++ b/packages/mui-base/src/CheckboxGroup/Root/CheckboxGroupRootContext.ts @@ -1,5 +1,4 @@ '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 7ddb99a230..b5ebb05335 100644 --- a/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx +++ b/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx @@ -1,5 +1,4 @@ '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 785bfa56d9..c258affd84 100644 --- a/packages/mui-base/src/Collapsible/Content/CollapsibleContent.tsx +++ b/packages/mui-base/src/Collapsible/Content/CollapsibleContent.tsx @@ -1,5 +1,4 @@ '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 9156633621..1af0eb3aa0 100644 --- a/packages/mui-base/src/Collapsible/Content/useCollapsibleContent.ts +++ b/packages/mui-base/src/Collapsible/Content/useCollapsibleContent.ts @@ -1,5 +1,4 @@ '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 2bdb77f0ce..befc7670a4 100644 --- a/packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx +++ b/packages/mui-base/src/Collapsible/Root/CollapsibleContext.tsx @@ -1,5 +1,4 @@ '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 21257ae10d..d1395b0c28 100644 --- a/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx +++ b/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.test.tsx @@ -1,5 +1,4 @@ '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 c27ded30df..840e3475c6 100644 --- a/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx +++ b/packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx @@ -1,5 +1,4 @@ '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 5d572fd66f..3467b1e129 100644 --- a/packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts +++ b/packages/mui-base/src/Collapsible/Root/useCollapsibleRoot.ts @@ -1,5 +1,4 @@ '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 d5d29ad085..f8c410a1b4 100644 --- a/packages/mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx +++ b/packages/mui-base/src/Collapsible/Trigger/CollapsibleTrigger.tsx @@ -1,5 +1,4 @@ '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 6b10d93b57..a9db4730ef 100644 --- a/packages/mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts +++ b/packages/mui-base/src/Collapsible/Trigger/useCollapsibleTrigger.ts @@ -1,5 +1,4 @@ '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 984dbb8151..8b87646048 100644 --- a/packages/mui-base/src/Composite/Item/CompositeItem.tsx +++ b/packages/mui-base/src/Composite/Item/CompositeItem.tsx @@ -1,5 +1,4 @@ '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 296f54be11..70ab405323 100644 --- a/packages/mui-base/src/Composite/Item/useCompositeItem.ts +++ b/packages/mui-base/src/Composite/Item/useCompositeItem.ts @@ -1,5 +1,4 @@ '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 ed4f37f82f..09815eb7e6 100644 --- a/packages/mui-base/src/Composite/List/CompositeList.tsx +++ b/packages/mui-base/src/Composite/List/CompositeList.tsx @@ -1,6 +1,5 @@ /* 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 719d1bcc28..07588d903d 100644 --- a/packages/mui-base/src/Composite/List/CompositeListContext.ts +++ b/packages/mui-base/src/Composite/List/CompositeListContext.ts @@ -1,5 +1,4 @@ '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 8797f8930b..7a93d56217 100644 --- a/packages/mui-base/src/Composite/List/useCompositeListItem.ts +++ b/packages/mui-base/src/Composite/List/useCompositeListItem.ts @@ -1,5 +1,4 @@ '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 6a72416e73..9876177ee7 100644 --- a/packages/mui-base/src/Composite/Root/CompositeRoot.tsx +++ b/packages/mui-base/src/Composite/Root/CompositeRoot.tsx @@ -1,5 +1,4 @@ '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 c11f7478eb..69648f910f 100644 --- a/packages/mui-base/src/Composite/Root/CompositeRootContext.ts +++ b/packages/mui-base/src/Composite/Root/CompositeRootContext.ts @@ -1,5 +1,4 @@ '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 530110bd88..3a42f6f8dd 100644 --- a/packages/mui-base/src/Composite/Root/useCompositeRoot.ts +++ b/packages/mui-base/src/Composite/Root/useCompositeRoot.ts @@ -1,5 +1,4 @@ '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 209a11dcd5..da58021bae 100644 --- a/packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx +++ b/packages/mui-base/src/Dialog/Backdrop/DialogBackdrop.tsx @@ -1,5 +1,4 @@ '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 7c06a05f5e..2736a38acc 100644 --- a/packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts +++ b/packages/mui-base/src/Dialog/Backdrop/useDialogBackdrop.ts @@ -1,5 +1,4 @@ '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 de0f2e7492..eadb19c665 100644 --- a/packages/mui-base/src/Dialog/Close/DialogClose.tsx +++ b/packages/mui-base/src/Dialog/Close/DialogClose.tsx @@ -1,5 +1,4 @@ '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 d85767daee..6126fe5d57 100644 --- a/packages/mui-base/src/Dialog/Close/useDialogClose.ts +++ b/packages/mui-base/src/Dialog/Close/useDialogClose.ts @@ -1,5 +1,4 @@ '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 d26eac0ada..f95329ab42 100644 --- a/packages/mui-base/src/Dialog/Description/DialogDescription.tsx +++ b/packages/mui-base/src/Dialog/Description/DialogDescription.tsx @@ -1,5 +1,4 @@ '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 4d9c734d06..0afc599a32 100644 --- a/packages/mui-base/src/Dialog/Popup/DialogPopup.tsx +++ b/packages/mui-base/src/Dialog/Popup/DialogPopup.tsx @@ -1,5 +1,4 @@ '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 f349d37c4a..71274a6d5b 100644 --- a/packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx +++ b/packages/mui-base/src/Dialog/Popup/useDialogPopup.tsx @@ -1,5 +1,4 @@ '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 40ab711db4..0531b0fc43 100644 --- a/packages/mui-base/src/Dialog/Root/DialogRoot.tsx +++ b/packages/mui-base/src/Dialog/Root/DialogRoot.tsx @@ -1,5 +1,4 @@ '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 64855ff3de..09efe1bf8f 100644 --- a/packages/mui-base/src/Dialog/Root/DialogRootContext.ts +++ b/packages/mui-base/src/Dialog/Root/DialogRootContext.ts @@ -1,5 +1,4 @@ '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 d1e1a5b932..9fac5000d3 100644 --- a/packages/mui-base/src/Dialog/Root/useDialogRoot.ts +++ b/packages/mui-base/src/Dialog/Root/useDialogRoot.ts @@ -1,5 +1,4 @@ '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 4c96e6d390..f5e82366a7 100644 --- a/packages/mui-base/src/Dialog/Title/DialogTitle.tsx +++ b/packages/mui-base/src/Dialog/Title/DialogTitle.tsx @@ -1,5 +1,4 @@ '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 eba9903d49..31804a93b4 100644 --- a/packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx +++ b/packages/mui-base/src/Dialog/Trigger/DialogTrigger.tsx @@ -1,5 +1,4 @@ '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 eb3d6f5c9f..e33c881408 100644 --- a/packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts +++ b/packages/mui-base/src/Dialog/Trigger/useDialogTrigger.ts @@ -1,5 +1,4 @@ '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 a8fb1b001b..55e11ff144 100644 --- a/packages/mui-base/src/Field/Control/FieldControl.tsx +++ b/packages/mui-base/src/Field/Control/FieldControl.tsx @@ -1,5 +1,4 @@ '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 888d2f1d98..c4dc323478 100644 --- a/packages/mui-base/src/Field/Control/useFieldControl.ts +++ b/packages/mui-base/src/Field/Control/useFieldControl.ts @@ -1,5 +1,4 @@ '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 111a2866dd..ce26b82ca4 100644 --- a/packages/mui-base/src/Field/Control/useFieldControlValidation.ts +++ b/packages/mui-base/src/Field/Control/useFieldControlValidation.ts @@ -1,5 +1,4 @@ '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 c7b0b1582e..e7c91c84d5 100644 --- a/packages/mui-base/src/Field/Description/FieldDescription.tsx +++ b/packages/mui-base/src/Field/Description/FieldDescription.tsx @@ -1,5 +1,4 @@ '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 5332469214..8a0705d7ec 100644 --- a/packages/mui-base/src/Field/Description/useFieldDescription.ts +++ b/packages/mui-base/src/Field/Description/useFieldDescription.ts @@ -1,5 +1,4 @@ '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 4949eaba20..73ad6371a2 100644 --- a/packages/mui-base/src/Field/Error/FieldError.tsx +++ b/packages/mui-base/src/Field/Error/FieldError.tsx @@ -1,5 +1,4 @@ '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 93afc9a17d..42ab5b2c6e 100644 --- a/packages/mui-base/src/Field/Error/useFieldError.ts +++ b/packages/mui-base/src/Field/Error/useFieldError.ts @@ -1,5 +1,4 @@ '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 8dee0d94eb..e721a74f97 100644 --- a/packages/mui-base/src/Field/Label/FieldLabel.tsx +++ b/packages/mui-base/src/Field/Label/FieldLabel.tsx @@ -1,5 +1,4 @@ '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 f88a5b1d1b..e0d44c4464 100644 --- a/packages/mui-base/src/Field/Label/useFieldLabel.ts +++ b/packages/mui-base/src/Field/Label/useFieldLabel.ts @@ -1,5 +1,4 @@ '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 4841060965..c6a2bb89e3 100644 --- a/packages/mui-base/src/Field/Root/FieldRoot.tsx +++ b/packages/mui-base/src/Field/Root/FieldRoot.tsx @@ -1,5 +1,4 @@ '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 10e3dab2e6..9b4bf87022 100644 --- a/packages/mui-base/src/Field/Root/FieldRootContext.ts +++ b/packages/mui-base/src/Field/Root/FieldRootContext.ts @@ -1,5 +1,4 @@ '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 f5fce0601d..cc7146aad8 100644 --- a/packages/mui-base/src/Field/Validity/FieldValidity.tsx +++ b/packages/mui-base/src/Field/Validity/FieldValidity.tsx @@ -1,5 +1,4 @@ '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 ac74d3f921..3671ee60d1 100644 --- a/packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx +++ b/packages/mui-base/src/Fieldset/Legend/FieldsetLegend.tsx @@ -1,5 +1,4 @@ '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 2972b996e3..37aefaa774 100644 --- a/packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts +++ b/packages/mui-base/src/Fieldset/Legend/useFieldsetLegend.ts @@ -1,5 +1,4 @@ '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 0b440adbab..ba657b9e3a 100644 --- a/packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx +++ b/packages/mui-base/src/Fieldset/Root/FieldsetRoot.tsx @@ -1,5 +1,4 @@ '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 62fce84d6d..9692eae8b5 100644 --- a/packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts +++ b/packages/mui-base/src/Fieldset/Root/FieldsetRootContext.ts @@ -1,5 +1,4 @@ '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 6cee4a1c0e..914fc497a1 100644 --- a/packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts +++ b/packages/mui-base/src/Fieldset/Root/useFieldsetRoot.ts @@ -1,5 +1,4 @@ '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 b9e4d4d897..0baa22e8d7 100644 --- a/packages/mui-base/src/Menu/Arrow/MenuArrow.tsx +++ b/packages/mui-base/src/Menu/Arrow/MenuArrow.tsx @@ -1,5 +1,4 @@ '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 bd03b9ef26..96cb5fef32 100644 --- a/packages/mui-base/src/Menu/Arrow/useMenuArrow.ts +++ b/packages/mui-base/src/Menu/Arrow/useMenuArrow.ts @@ -1,5 +1,4 @@ '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 eb74878bfc..22a7620237 100644 --- a/packages/mui-base/src/Menu/Item/MenuItem.tsx +++ b/packages/mui-base/src/Menu/Item/MenuItem.tsx @@ -1,5 +1,4 @@ '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 b0182bf366..42f77ebdbd 100644 --- a/packages/mui-base/src/Menu/Item/useMenuItem.ts +++ b/packages/mui-base/src/Menu/Item/useMenuItem.ts @@ -1,5 +1,4 @@ '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 a32395d514..e8563436ef 100644 --- a/packages/mui-base/src/Menu/Popup/MenuPopup.tsx +++ b/packages/mui-base/src/Menu/Popup/MenuPopup.tsx @@ -1,5 +1,4 @@ '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 691d3e5371..7a02b912fb 100644 --- a/packages/mui-base/src/Menu/Popup/useMenuPopup.ts +++ b/packages/mui-base/src/Menu/Popup/useMenuPopup.ts @@ -1,5 +1,4 @@ '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 2e13f4d69b..b271067355 100644 --- a/packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx +++ b/packages/mui-base/src/Menu/Positioner/MenuPositioner.tsx @@ -1,5 +1,4 @@ '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 8a62dd7699..8e3ad8a1c2 100644 --- a/packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts +++ b/packages/mui-base/src/Menu/Positioner/MenuPositionerContext.ts @@ -1,5 +1,4 @@ '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 1fdd872729..a8d1337706 100644 --- a/packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts +++ b/packages/mui-base/src/Menu/Positioner/useMenuPositioner.ts @@ -1,5 +1,4 @@ '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 38bd4ff1d1..108e3cef70 100644 --- a/packages/mui-base/src/Menu/Root/MenuRoot.tsx +++ b/packages/mui-base/src/Menu/Root/MenuRoot.tsx @@ -1,5 +1,4 @@ '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 ef207f06fd..a834e3da4e 100644 --- a/packages/mui-base/src/Menu/Root/MenuRootContext.ts +++ b/packages/mui-base/src/Menu/Root/MenuRootContext.ts @@ -1,5 +1,4 @@ '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 bdb768af2b..84dd3ecda4 100644 --- a/packages/mui-base/src/Menu/Root/useMenuRoot.ts +++ b/packages/mui-base/src/Menu/Root/useMenuRoot.ts @@ -1,5 +1,4 @@ '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 d8acab3942..2f83941b8e 100644 --- a/packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx +++ b/packages/mui-base/src/Menu/SubmenuTrigger/SubmenuTrigger.tsx @@ -1,5 +1,4 @@ '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 211864e68c..79b5e2c4e7 100644 --- a/packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts +++ b/packages/mui-base/src/Menu/SubmenuTrigger/useSubmenuTrigger.ts @@ -1,5 +1,4 @@ '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 9c7c1491d5..4e977f9f86 100644 --- a/packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx +++ b/packages/mui-base/src/Menu/Trigger/MenuTrigger.tsx @@ -1,5 +1,4 @@ '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 7fa3701572..4d2e4f9fb9 100644 --- a/packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts +++ b/packages/mui-base/src/Menu/Trigger/useMenuTrigger.ts @@ -1,5 +1,4 @@ '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/NoSsr/NoSsr.tsx b/packages/mui-base/src/NoSsr/NoSsr.tsx index 82980ea4dc..50e936efb3 100644 --- a/packages/mui-base/src/NoSsr/NoSsr.tsx +++ b/packages/mui-base/src/NoSsr/NoSsr.tsx @@ -1,5 +1,4 @@ '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/NumberField/Decrement/NumberFieldDecrement.tsx b/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx index 5d035023c2..7dbc0bcb19 100644 --- a/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx +++ b/packages/mui-base/src/NumberField/Decrement/NumberFieldDecrement.tsx @@ -1,5 +1,4 @@ '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 89a649c12b..0ab1353ef4 100644 --- a/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx +++ b/packages/mui-base/src/NumberField/Group/NumberFieldGroup.tsx @@ -1,5 +1,4 @@ '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 870aa3538e..f5b8c95b83 100644 --- a/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx +++ b/packages/mui-base/src/NumberField/Increment/NumberFieldIncrement.tsx @@ -1,5 +1,4 @@ '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 1c0e323c64..2875cadebf 100644 --- a/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx +++ b/packages/mui-base/src/NumberField/Input/NumberFieldInput.tsx @@ -1,5 +1,4 @@ '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 4a35bc5c40..4c6db26508 100644 --- a/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts +++ b/packages/mui-base/src/NumberField/Root/NumberFieldContext.ts @@ -1,5 +1,4 @@ '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 b1e7e67c37..671fc26718 100644 --- a/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx +++ b/packages/mui-base/src/NumberField/Root/NumberFieldRoot.tsx @@ -1,5 +1,4 @@ '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 8bf4f56759..1c27a76309 100644 --- a/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts +++ b/packages/mui-base/src/NumberField/Root/useNumberFieldRoot.ts @@ -1,5 +1,4 @@ '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 a97c5a3943..605d64e017 100644 --- a/packages/mui-base/src/NumberField/Root/useScrub.ts +++ b/packages/mui-base/src/NumberField/Root/useScrub.ts @@ -1,5 +1,4 @@ '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 47230d1bb2..5ad488704d 100644 --- a/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx +++ b/packages/mui-base/src/NumberField/ScrubArea/NumberFieldScrubArea.tsx @@ -1,5 +1,4 @@ '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 c32b28d5dd..27518451c3 100644 --- a/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx +++ b/packages/mui-base/src/NumberField/ScrubAreaCursor/NumberFieldScrubAreaCursor.tsx @@ -1,5 +1,4 @@ '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 7100a0cb03..1f759fc75f 100644 --- a/packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx +++ b/packages/mui-base/src/Popover/Arrow/PopoverArrow.tsx @@ -1,5 +1,4 @@ '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 929b81c0b6..49c56f2f7d 100644 --- a/packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts +++ b/packages/mui-base/src/Popover/Arrow/usePopoverArrow.ts @@ -1,5 +1,4 @@ '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 5dfc62b076..a1ca2ecfad 100644 --- a/packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx +++ b/packages/mui-base/src/Popover/Backdrop/PopoverBackdrop.tsx @@ -1,5 +1,4 @@ '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 2ee87f6a57..41d0d8f756 100644 --- a/packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts +++ b/packages/mui-base/src/Popover/Backdrop/usePopoverBackdrop.ts @@ -1,5 +1,4 @@ '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 1ac7e5e16c..d3f85f8636 100644 --- a/packages/mui-base/src/Popover/Close/PopoverClose.tsx +++ b/packages/mui-base/src/Popover/Close/PopoverClose.tsx @@ -1,5 +1,4 @@ '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 a374f0f8c6..ffd009017f 100644 --- a/packages/mui-base/src/Popover/Close/usePopoverClose.ts +++ b/packages/mui-base/src/Popover/Close/usePopoverClose.ts @@ -1,5 +1,4 @@ '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 b2ddb10278..2df52e3857 100644 --- a/packages/mui-base/src/Popover/Description/PopoverDescription.tsx +++ b/packages/mui-base/src/Popover/Description/PopoverDescription.tsx @@ -1,5 +1,4 @@ '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 0b4861ea9c..15a911e645 100644 --- a/packages/mui-base/src/Popover/Description/usePopoverDescription.ts +++ b/packages/mui-base/src/Popover/Description/usePopoverDescription.ts @@ -1,5 +1,4 @@ '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 ebf2d73176..29f5d1c044 100644 --- a/packages/mui-base/src/Popover/Popup/PopoverPopup.tsx +++ b/packages/mui-base/src/Popover/Popup/PopoverPopup.tsx @@ -1,5 +1,4 @@ '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 53f93a9834..a100d96830 100644 --- a/packages/mui-base/src/Popover/Popup/usePopoverPopup.ts +++ b/packages/mui-base/src/Popover/Popup/usePopoverPopup.ts @@ -1,5 +1,4 @@ '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 0d2c0ccca8..6f60bfe1a4 100644 --- a/packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx +++ b/packages/mui-base/src/Popover/Positioner/PopoverPositioner.tsx @@ -1,5 +1,4 @@ '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 b249d777b4..59193681b8 100644 --- a/packages/mui-base/src/Popover/Positioner/PopoverPositionerContext.ts +++ b/packages/mui-base/src/Popover/Positioner/PopoverPositionerContext.ts @@ -1,5 +1,4 @@ '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 a64490bb80..8b4ef430f7 100644 --- a/packages/mui-base/src/Popover/Positioner/usePopoverPositioner.tsx +++ b/packages/mui-base/src/Popover/Positioner/usePopoverPositioner.tsx @@ -1,5 +1,4 @@ '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 864c24e86c..fee501a001 100644 --- a/packages/mui-base/src/Popover/Root/PopoverRoot.tsx +++ b/packages/mui-base/src/Popover/Root/PopoverRoot.tsx @@ -1,5 +1,4 @@ '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 52c7529c1a..f69a7ae113 100644 --- a/packages/mui-base/src/Popover/Root/PopoverRootContext.ts +++ b/packages/mui-base/src/Popover/Root/PopoverRootContext.ts @@ -1,5 +1,4 @@ '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 e86732fc38..890f52dbae 100644 --- a/packages/mui-base/src/Popover/Root/usePopoverRoot.ts +++ b/packages/mui-base/src/Popover/Root/usePopoverRoot.ts @@ -1,5 +1,4 @@ '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 f019dbdacd..eb00058e1b 100644 --- a/packages/mui-base/src/Popover/Title/PopoverTitle.tsx +++ b/packages/mui-base/src/Popover/Title/PopoverTitle.tsx @@ -1,5 +1,4 @@ '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 9a0314b0f1..f98af1b00e 100644 --- a/packages/mui-base/src/Popover/Title/usePopoverTitle.ts +++ b/packages/mui-base/src/Popover/Title/usePopoverTitle.ts @@ -1,5 +1,4 @@ '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 6d611a1cd8..eb114c2031 100644 --- a/packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx +++ b/packages/mui-base/src/Popover/Trigger/PopoverTrigger.tsx @@ -1,5 +1,4 @@ '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 5af3fde16a..45f6a52023 100644 --- a/packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx +++ b/packages/mui-base/src/PreviewCard/Arrow/PreviewCardArrow.tsx @@ -1,5 +1,4 @@ '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 1fd6d7f4c4..86412aec5f 100644 --- a/packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts +++ b/packages/mui-base/src/PreviewCard/Arrow/usePreviewCardArrow.ts @@ -1,5 +1,4 @@ '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 cf3a2fa823..a53034d040 100644 --- a/packages/mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx +++ b/packages/mui-base/src/PreviewCard/Backdrop/PreviewCardBackdrop.tsx @@ -1,5 +1,4 @@ '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 c99ab03f75..378dfc52c4 100644 --- a/packages/mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts +++ b/packages/mui-base/src/PreviewCard/Backdrop/usePreviewCardBackdrop.ts @@ -1,5 +1,4 @@ '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 d0a3987067..109203184c 100644 --- a/packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx +++ b/packages/mui-base/src/PreviewCard/Popup/PreviewCardPopup.tsx @@ -1,5 +1,4 @@ '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 d5468d620a..1cb256fbe2 100644 --- a/packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts +++ b/packages/mui-base/src/PreviewCard/Popup/usePreviewCardPopup.ts @@ -1,5 +1,4 @@ '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 3d51ff806e..eebba1e555 100644 --- a/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositioner.tsx +++ b/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositioner.tsx @@ -1,5 +1,4 @@ '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 4df1b9878f..dd8c624ae7 100644 --- a/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositionerContext.ts +++ b/packages/mui-base/src/PreviewCard/Positioner/PreviewCardPositionerContext.ts @@ -1,5 +1,4 @@ '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 ebab09be66..22e551c19a 100644 --- a/packages/mui-base/src/PreviewCard/Positioner/usePreviewCardPositioner.ts +++ b/packages/mui-base/src/PreviewCard/Positioner/usePreviewCardPositioner.ts @@ -1,5 +1,4 @@ '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 5a0e564e99..4cef47ade7 100644 --- a/packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts +++ b/packages/mui-base/src/PreviewCard/Root/PreviewCardContext.ts @@ -1,5 +1,4 @@ '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 e07ddbbc48..93c10e7df1 100644 --- a/packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx +++ b/packages/mui-base/src/PreviewCard/Root/PreviewCardRoot.tsx @@ -1,5 +1,4 @@ '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 0240119bde..f5b8fb1a65 100644 --- a/packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts +++ b/packages/mui-base/src/PreviewCard/Root/usePreviewCardRoot.ts @@ -1,5 +1,4 @@ '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 95c8e0687a..dbbeefe9ab 100644 --- a/packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx +++ b/packages/mui-base/src/PreviewCard/Trigger/PreviewCardTrigger.tsx @@ -1,5 +1,4 @@ '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 5ac8c41e02..bf793694dd 100644 --- a/packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts +++ b/packages/mui-base/src/PreviewCard/utils/useFocusExtended.ts @@ -1,5 +1,4 @@ '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 34c3e324a9..7e13c3022d 100644 --- a/packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx +++ b/packages/mui-base/src/Progress/Indicator/ProgressIndicator.tsx @@ -1,5 +1,4 @@ '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 e9b6ceeb4b..4c2e49333d 100644 --- a/packages/mui-base/src/Progress/Indicator/useProgressIndicator.ts +++ b/packages/mui-base/src/Progress/Indicator/useProgressIndicator.ts @@ -1,5 +1,4 @@ '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 2aa94ab24d..d0a2ebce69 100644 --- a/packages/mui-base/src/Progress/Root/ProgressContext.tsx +++ b/packages/mui-base/src/Progress/Root/ProgressContext.tsx @@ -1,5 +1,4 @@ '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 6668a0e200..1164fd4fa7 100644 --- a/packages/mui-base/src/Progress/Root/ProgressRoot.tsx +++ b/packages/mui-base/src/Progress/Root/ProgressRoot.tsx @@ -1,5 +1,4 @@ '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 847b37584b..9d125ff943 100644 --- a/packages/mui-base/src/Progress/Root/useProgressRoot.ts +++ b/packages/mui-base/src/Progress/Root/useProgressRoot.ts @@ -1,5 +1,4 @@ '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 738edf9b0a..3311400375 100644 --- a/packages/mui-base/src/Progress/Track/ProgressTrack.tsx +++ b/packages/mui-base/src/Progress/Track/ProgressTrack.tsx @@ -1,5 +1,4 @@ '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 5afa7e9a23..30562a691a 100644 --- a/packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx +++ b/packages/mui-base/src/Radio/Indicator/RadioIndicator.tsx @@ -1,5 +1,4 @@ '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 6ff7f8d067..a0369e79be 100644 --- a/packages/mui-base/src/Radio/Root/RadioRoot.tsx +++ b/packages/mui-base/src/Radio/Root/RadioRoot.tsx @@ -1,5 +1,4 @@ '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 cd9e8c5261..512fd2fed0 100644 --- a/packages/mui-base/src/Radio/Root/RadioRootContext.ts +++ b/packages/mui-base/src/Radio/Root/RadioRootContext.ts @@ -1,5 +1,4 @@ '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 8c0f85f958..87dda643b5 100644 --- a/packages/mui-base/src/Radio/Root/useRadioRoot.tsx +++ b/packages/mui-base/src/Radio/Root/useRadioRoot.tsx @@ -1,5 +1,4 @@ '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 896435ce96..be5658b2a9 100644 --- a/packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx +++ b/packages/mui-base/src/RadioGroup/Root/RadioGroupRoot.tsx @@ -1,5 +1,4 @@ '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 193865a69a..2aef2556ed 100644 --- a/packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts +++ b/packages/mui-base/src/RadioGroup/Root/RadioGroupRootContext.ts @@ -1,5 +1,4 @@ '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 726f4db01c..86487fe058 100644 --- a/packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts +++ b/packages/mui-base/src/RadioGroup/Root/useRadioGroupRoot.ts @@ -1,5 +1,4 @@ '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 af0ab6d49d..a2e6cac4d7 100644 --- a/packages/mui-base/src/Slider/Control/SliderControl.tsx +++ b/packages/mui-base/src/Slider/Control/SliderControl.tsx @@ -1,5 +1,4 @@ '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 e2ad468851..6e20b6cdaa 100644 --- a/packages/mui-base/src/Slider/Control/useSliderControl.ts +++ b/packages/mui-base/src/Slider/Control/useSliderControl.ts @@ -1,5 +1,4 @@ '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 a7040da98c..60b85841b8 100644 --- a/packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx +++ b/packages/mui-base/src/Slider/Indicator/SliderIndicator.tsx @@ -1,5 +1,4 @@ '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 69d0ee8889..a7322e43be 100644 --- a/packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts +++ b/packages/mui-base/src/Slider/Indicator/useSliderIndicator.ts @@ -1,5 +1,4 @@ '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 83fe6bb47e..0f69309611 100644 --- a/packages/mui-base/src/Slider/Output/SliderOutput.tsx +++ b/packages/mui-base/src/Slider/Output/SliderOutput.tsx @@ -1,5 +1,4 @@ '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 af1f6e7ced..7ad3534ec9 100644 --- a/packages/mui-base/src/Slider/Output/useSliderOutput.ts +++ b/packages/mui-base/src/Slider/Output/useSliderOutput.ts @@ -1,5 +1,4 @@ '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 e940e59cd7..7e3e158a32 100644 --- a/packages/mui-base/src/Slider/Root/SliderProvider.tsx +++ b/packages/mui-base/src/Slider/Root/SliderProvider.tsx @@ -1,5 +1,4 @@ '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 01894e85e2..da75649129 100644 --- a/packages/mui-base/src/Slider/Root/SliderRoot.tsx +++ b/packages/mui-base/src/Slider/Root/SliderRoot.tsx @@ -1,5 +1,4 @@ '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 a69a3753d5..288c863398 100644 --- a/packages/mui-base/src/Slider/Root/useSliderRoot.ts +++ b/packages/mui-base/src/Slider/Root/useSliderRoot.ts @@ -1,5 +1,4 @@ '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 1b76227f1b..867db5bdd8 100644 --- a/packages/mui-base/src/Slider/Thumb/SliderThumb.tsx +++ b/packages/mui-base/src/Slider/Thumb/SliderThumb.tsx @@ -1,5 +1,4 @@ '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 4548241be2..a14a728403 100644 --- a/packages/mui-base/src/Slider/Thumb/useSliderThumb.ts +++ b/packages/mui-base/src/Slider/Thumb/useSliderThumb.ts @@ -1,5 +1,4 @@ '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 20ca44732d..33726a84a3 100644 --- a/packages/mui-base/src/Slider/Track/SliderTrack.tsx +++ b/packages/mui-base/src/Slider/Track/SliderTrack.tsx @@ -1,5 +1,4 @@ '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 94a4c88b01..c2366b6127 100644 --- a/packages/mui-base/src/Switch/Root/SwitchContext.ts +++ b/packages/mui-base/src/Switch/Root/SwitchContext.ts @@ -1,5 +1,4 @@ '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 017128e72e..f467e55059 100644 --- a/packages/mui-base/src/Switch/Root/SwitchRoot.tsx +++ b/packages/mui-base/src/Switch/Root/SwitchRoot.tsx @@ -1,5 +1,4 @@ '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 cb2b4b0008..4d0a78da01 100644 --- a/packages/mui-base/src/Switch/Root/useSwitchRoot.ts +++ b/packages/mui-base/src/Switch/Root/useSwitchRoot.ts @@ -1,5 +1,4 @@ '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 2e10743004..078b49daee 100644 --- a/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx +++ b/packages/mui-base/src/Switch/Thumb/SwitchThumb.tsx @@ -1,5 +1,4 @@ '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 fb206cbca8..be0e02bc49 100644 --- a/packages/mui-base/src/Tabs/Root/TabsContext.ts +++ b/packages/mui-base/src/Tabs/Root/TabsContext.ts @@ -1,5 +1,4 @@ '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 2c53b552e4..fdef97885f 100644 --- a/packages/mui-base/src/Tabs/Root/TabsProvider.tsx +++ b/packages/mui-base/src/Tabs/Root/TabsProvider.tsx @@ -1,5 +1,4 @@ '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 8369ecaca1..48ac80b66a 100644 --- a/packages/mui-base/src/Tabs/Root/TabsRoot.tsx +++ b/packages/mui-base/src/Tabs/Root/TabsRoot.tsx @@ -1,5 +1,4 @@ '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 6c34e0a3c0..eef11ee315 100644 --- a/packages/mui-base/src/Tabs/Root/useTabsRoot.ts +++ b/packages/mui-base/src/Tabs/Root/useTabsRoot.ts @@ -1,5 +1,4 @@ '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 a1c35fbc02..7cef93ed05 100644 --- a/packages/mui-base/src/Tabs/Tab/Tab.tsx +++ b/packages/mui-base/src/Tabs/Tab/Tab.tsx @@ -1,5 +1,4 @@ '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 f534a27b2b..3a1c1d04fc 100644 --- a/packages/mui-base/src/Tabs/Tab/useTab.ts +++ b/packages/mui-base/src/Tabs/Tab/useTab.ts @@ -1,5 +1,4 @@ '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 04c1f076ac..1ad3466f81 100644 --- a/packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx +++ b/packages/mui-base/src/Tabs/TabIndicator/TabIndicator.tsx @@ -1,5 +1,4 @@ '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 c6d204e96f..6991388e36 100644 --- a/packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts +++ b/packages/mui-base/src/Tabs/TabIndicator/useTabIndicator.ts @@ -1,5 +1,4 @@ '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 0dcdf6ab53..4d26218618 100644 --- a/packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx +++ b/packages/mui-base/src/Tabs/TabPanel/TabPanel.tsx @@ -1,5 +1,4 @@ '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 8c6781a24f..4c6ca3790b 100644 --- a/packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts +++ b/packages/mui-base/src/Tabs/TabPanel/useTabPanel.ts @@ -1,5 +1,4 @@ '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 5fb0ce7d6c..7cc96d2771 100644 --- a/packages/mui-base/src/Tabs/TabsList/TabsList.tsx +++ b/packages/mui-base/src/Tabs/TabsList/TabsList.tsx @@ -1,5 +1,4 @@ '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 3b63d4cb54..cf2b2bcbfe 100644 --- a/packages/mui-base/src/Tabs/TabsList/TabsListContext.ts +++ b/packages/mui-base/src/Tabs/TabsList/TabsListContext.ts @@ -1,5 +1,4 @@ '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 eca9c4fda7..a7e042824f 100644 --- a/packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx +++ b/packages/mui-base/src/Tabs/TabsList/TabsListProvider.tsx @@ -1,5 +1,4 @@ '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 7571159d87..cabec225fc 100644 --- a/packages/mui-base/src/Tabs/TabsList/useTabsList.ts +++ b/packages/mui-base/src/Tabs/TabsList/useTabsList.ts @@ -1,5 +1,4 @@ '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 c5e598ef2e..b70c1e86e4 100644 --- a/packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx +++ b/packages/mui-base/src/Tooltip/Arrow/TooltipArrow.tsx @@ -1,5 +1,4 @@ '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 599e8d31ed..937001b4fc 100644 --- a/packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts +++ b/packages/mui-base/src/Tooltip/Arrow/useTooltipArrow.ts @@ -1,5 +1,4 @@ '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 8e6fc213c1..f3fde617de 100644 --- a/packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx +++ b/packages/mui-base/src/Tooltip/Popup/TooltipPopup.tsx @@ -1,5 +1,4 @@ '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 38f18b5f74..cba55f5864 100644 --- a/packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts +++ b/packages/mui-base/src/Tooltip/Popup/useTooltipPopup.ts @@ -1,5 +1,4 @@ '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 ef4ef7ce30..8da7cd9de9 100644 --- a/packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx +++ b/packages/mui-base/src/Tooltip/Positioner/TooltipPositioner.tsx @@ -1,5 +1,4 @@ '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 3dbdc83d0d..3539fa9b28 100644 --- a/packages/mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts +++ b/packages/mui-base/src/Tooltip/Positioner/TooltipPositionerContext.ts @@ -1,5 +1,4 @@ '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 be77fd5bd8..1834ebd134 100644 --- a/packages/mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts +++ b/packages/mui-base/src/Tooltip/Positioner/useTooltipPositioner.ts @@ -1,5 +1,4 @@ '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 4c94937783..2a52ee32a7 100644 --- a/packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx +++ b/packages/mui-base/src/Tooltip/Provider/TooltipProvider.tsx @@ -1,5 +1,4 @@ '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 f40da5e774..6a886b73db 100644 --- a/packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx +++ b/packages/mui-base/src/Tooltip/Root/TooltipRoot.tsx @@ -1,5 +1,4 @@ '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 4358abb30f..48e5c40f90 100644 --- a/packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts +++ b/packages/mui-base/src/Tooltip/Root/TooltipRootContext.ts @@ -1,5 +1,4 @@ '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 b637fb011a..a3a283dfab 100644 --- a/packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts +++ b/packages/mui-base/src/Tooltip/Root/useTooltipRoot.ts @@ -1,5 +1,4 @@ '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 78396c7ec9..4f549c4d73 100644 --- a/packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx +++ b/packages/mui-base/src/Tooltip/Trigger/TooltipTrigger.tsx @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import PropTypes from 'prop-types'; import { useTooltipRootContext } from '../Root/TooltipRootContext'; diff --git a/packages/mui-base/src/useButton/useButton.ts b/packages/mui-base/src/useButton/useButton.ts index dd57effe9f..f9eab7bb28 100644 --- a/packages/mui-base/src/useButton/useButton.ts +++ b/packages/mui-base/src/useButton/useButton.ts @@ -1,5 +1,4 @@ '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 1a52f12c2c..1c65a8d8da 100644 --- a/packages/mui-base/src/useCompound/useCompoundItem.ts +++ b/packages/mui-base/src/useCompound/useCompoundItem.ts @@ -1,5 +1,4 @@ '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 f9ccbf71e1..8cc2dad24b 100644 --- a/packages/mui-base/src/useCompound/useCompoundParent.ts +++ b/packages/mui-base/src/useCompound/useCompoundParent.ts @@ -1,5 +1,4 @@ '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 9962dc4638..323a10023a 100644 --- a/packages/mui-base/src/useList/ListContext.ts +++ b/packages/mui-base/src/useList/ListContext.ts @@ -1,5 +1,4 @@ '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 43a147a818..92f922e3c0 100644 --- a/packages/mui-base/src/useList/useList.ts +++ b/packages/mui-base/src/useList/useList.ts @@ -1,5 +1,4 @@ '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 29b2dc860c..9999748450 100644 --- a/packages/mui-base/src/useList/useListItem.ts +++ b/packages/mui-base/src/useList/useListItem.ts @@ -1,5 +1,4 @@ '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 f1b5e31309..ee15ef9585 100644 --- a/packages/mui-base/src/utils/useAnchorPositioning.ts +++ b/packages/mui-base/src/utils/useAnchorPositioning.ts @@ -1,5 +1,4 @@ '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 0f6c32daac..df2ade6c03 100644 --- a/packages/mui-base/src/utils/useAnimationsFinished.ts +++ b/packages/mui-base/src/utils/useAnimationsFinished.ts @@ -1,5 +1,4 @@ '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 b50c54f934..544a46e84a 100644 --- a/packages/mui-base/src/utils/useControllableReducer.ts +++ b/packages/mui-base/src/utils/useControllableReducer.ts @@ -1,5 +1,4 @@ '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 ea22db467e..6852cf8182 100644 --- a/packages/mui-base/src/utils/useForcedRerendering.ts +++ b/packages/mui-base/src/utils/useForcedRerendering.ts @@ -1,5 +1,4 @@ '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 3c0ade7cb1..f55403a8e1 100644 --- a/packages/mui-base/src/utils/useLatestRef.ts +++ b/packages/mui-base/src/utils/useLatestRef.ts @@ -1,5 +1,4 @@ '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 2a5efe4c13..607a67fe49 100644 --- a/packages/mui-base/src/utils/useRootElementName.ts +++ b/packages/mui-base/src/utils/useRootElementName.ts @@ -1,5 +1,4 @@ '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 a3f227c143..7ebdeeef9c 100644 --- a/packages/mui-base/src/utils/useTextNavigation.ts +++ b/packages/mui-base/src/utils/useTextNavigation.ts @@ -1,5 +1,4 @@ '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 d31c3475f5..b7fe4e53df 100644 --- a/packages/mui-base/src/utils/useTransitionStatus.ts +++ b/packages/mui-base/src/utils/useTransitionStatus.ts @@ -1,5 +1,4 @@ 'use client'; - import * as React from 'react'; import { useEnhancedEffect } from './useEnhancedEffect';