diff --git a/docs/pages/experiments/website/dashboard-template-theme.tsx b/docs/pages/experiments/website/dashboard-template-theme.tsx index 470f7cbc87d799..76738b27edd676 100644 --- a/docs/pages/experiments/website/dashboard-template-theme.tsx +++ b/docs/pages/experiments/website/dashboard-template-theme.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; diff --git a/docs/src/modules/components/ApiPage.tsx b/docs/src/modules/components/ApiPage.tsx index 19ec201baa713d..dacd87aed9e3ee 100644 --- a/docs/src/modules/components/ApiPage.tsx +++ b/docs/src/modules/components/ApiPage.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/no-danger */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { ComponentApiContent, PropsTranslations } from '@mui-internal/api-docs-builder'; import exactProp from '@mui/utils/exactProp'; import Typography from '@mui/material/Typography'; diff --git a/docs/src/modules/components/ComponentsApiContent.tsx b/docs/src/modules/components/ComponentsApiContent.tsx index 24610915c556a0..ece24b58762d96 100644 --- a/docs/src/modules/components/ComponentsApiContent.tsx +++ b/docs/src/modules/components/ComponentsApiContent.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/no-danger */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import kebabCase from 'lodash/kebabCase'; import { useRouter } from 'next/router'; import exactProp from '@mui/utils/exactProp'; diff --git a/docs/src/modules/components/HooksApiContent.tsx b/docs/src/modules/components/HooksApiContent.tsx index ba319feaab2186..10a5aa718091bd 100644 --- a/docs/src/modules/components/HooksApiContent.tsx +++ b/docs/src/modules/components/HooksApiContent.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/no-danger */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import kebabCase from 'lodash/kebabCase'; import exactProp from '@mui/utils/exactProp'; import { Translate, useTranslate, useUserLanguage } from '@mui/docs/i18n'; diff --git a/packages-internal/scripts/typescript-to-proptypes/test/propTypes-casting/input.tsx b/packages-internal/scripts/typescript-to-proptypes/test/propTypes-casting/input.tsx index 89dccc3a6f106d..496fedc68128c5 100644 --- a/packages-internal/scripts/typescript-to-proptypes/test/propTypes-casting/input.tsx +++ b/packages-internal/scripts/typescript-to-proptypes/test/propTypes-casting/input.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; // empty props are likely a mistake. // We want to make sure we catch this instead of keeping .propTypes diff --git a/packages-internal/test-utils/src/components.tsx b/packages-internal/test-utils/src/components.tsx index caca10ff55f04f..6daf313db755a0 100644 --- a/packages-internal/test-utils/src/components.tsx +++ b/packages-internal/test-utils/src/components.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; /** * A basic error boundary that can be used to assert thrown errors in render. diff --git a/packages/api-docs-builder/utils/generatePropTypeDescription.ts b/packages/api-docs-builder/utils/generatePropTypeDescription.ts index 66fdf8335e078a..0caddc1907544d 100644 --- a/packages/api-docs-builder/utils/generatePropTypeDescription.ts +++ b/packages/api-docs-builder/utils/generatePropTypeDescription.ts @@ -26,7 +26,7 @@ export function getChained(type: PropTypeDescriptor) { if (indexStart !== -1) { const parsed = docgenParse( ` - import PropTypes from 'prop-types'; + import * as PropTypes from 'prop-types'; const Foo = () =>
Foo.propTypes = { bar: ${recast.print(recast.parse(type.raw).program.body[0].expression.arguments[0]).code} diff --git a/packages/mui-base/src/Badge/Badge.tsx b/packages/mui-base/src/Badge/Badge.tsx index 92b7863b79a0a8..3ed6e68b13ef00 100644 --- a/packages/mui-base/src/Badge/Badge.tsx +++ b/packages/mui-base/src/Badge/Badge.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { useBadge } from '../useBadge'; diff --git a/packages/mui-base/src/Button/Button.tsx b/packages/mui-base/src/Button/Button.tsx index ce9dd0ce7fa9cb..323248b57d7b5e 100644 --- a/packages/mui-base/src/Button/Button.tsx +++ b/packages/mui-base/src/Button/Button.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { getButtonUtilityClass } from './buttonClasses'; diff --git a/packages/mui-base/src/ClickAwayListener/ClickAwayListener.tsx b/packages/mui-base/src/ClickAwayListener/ClickAwayListener.tsx index a7c7c49148d2d5..d44457978e7441 100644 --- a/packages/mui-base/src/ClickAwayListener/ClickAwayListener.tsx +++ b/packages/mui-base/src/ClickAwayListener/ClickAwayListener.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { elementAcceptingRef, exactProp, diff --git a/packages/mui-base/src/Dropdown/Dropdown.tsx b/packages/mui-base/src/Dropdown/Dropdown.tsx index 0419a72ce3134a..862408e0d01741 100644 --- a/packages/mui-base/src/Dropdown/Dropdown.tsx +++ b/packages/mui-base/src/Dropdown/Dropdown.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { exactProp } from '@mui/utils'; import { DropdownProps } from './Dropdown.types'; import { DropdownContext } from '../useDropdown/DropdownContext'; diff --git a/packages/mui-base/src/FocusTrap/FocusTrap.tsx b/packages/mui-base/src/FocusTrap/FocusTrap.tsx index d17c562746eeed..c0a73798c949cc 100644 --- a/packages/mui-base/src/FocusTrap/FocusTrap.tsx +++ b/packages/mui-base/src/FocusTrap/FocusTrap.tsx @@ -1,7 +1,7 @@ 'use client'; /* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { exactProp, elementAcceptingRef, diff --git a/packages/mui-base/src/FormControl/FormControl.tsx b/packages/mui-base/src/FormControl/FormControl.tsx index 43be5bfcf4f57d..7a592b5e0086e7 100644 --- a/packages/mui-base/src/FormControl/FormControl.tsx +++ b/packages/mui-base/src/FormControl/FormControl.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import useControlled from '@mui/utils/useControlled'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { FormControlContext } from './FormControlContext'; diff --git a/packages/mui-base/src/Input/Input.test.tsx b/packages/mui-base/src/Input/Input.test.tsx index bf1c61209f31ff..7d0c401f1fcbae 100644 --- a/packages/mui-base/src/Input/Input.test.tsx +++ b/packages/mui-base/src/Input/Input.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { createRenderer, fireEvent, screen, act } from '@mui/internal-test-utils'; import { expect } from 'chai'; import { spy } from 'sinon'; diff --git a/packages/mui-base/src/Input/Input.tsx b/packages/mui-base/src/Input/Input.tsx index b2c6a9023f0d72..28002b69f3a0a9 100644 --- a/packages/mui-base/src/Input/Input.tsx +++ b/packages/mui-base/src/Input/Input.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { isHostComponent } from '../utils/isHostComponent'; import { getInputUtilityClass } from './inputClasses'; diff --git a/packages/mui-base/src/Menu/Menu.tsx b/packages/mui-base/src/Menu/Menu.tsx index c7cc1a917ceb7a..9db35dd2cd4f0a 100644 --- a/packages/mui-base/src/Menu/Menu.tsx +++ b/packages/mui-base/src/Menu/Menu.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { HTMLElementType, refType } from '@mui/utils'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { MenuOwnerState, MenuProps, MenuRootSlotProps, MenuTypeMap } from './Menu.types'; diff --git a/packages/mui-base/src/MenuButton/MenuButton.tsx b/packages/mui-base/src/MenuButton/MenuButton.tsx index d7893fface2032..2c8a3bda720940 100644 --- a/packages/mui-base/src/MenuButton/MenuButton.tsx +++ b/packages/mui-base/src/MenuButton/MenuButton.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { MenuButtonOwnerState, MenuButtonProps } from './MenuButton.types'; import { useSlotProps } from '../utils'; import { useMenuButton } from '../useMenuButton'; diff --git a/packages/mui-base/src/MenuItem/MenuItem.tsx b/packages/mui-base/src/MenuItem/MenuItem.tsx index 8417b142030bc4..37564a76d42941 100644 --- a/packages/mui-base/src/MenuItem/MenuItem.tsx +++ b/packages/mui-base/src/MenuItem/MenuItem.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { MenuItemOwnerState, diff --git a/packages/mui-base/src/Modal/Modal.tsx b/packages/mui-base/src/Modal/Modal.tsx index 980d90b81b459e..7a042a55f117bb 100644 --- a/packages/mui-base/src/Modal/Modal.tsx +++ b/packages/mui-base/src/Modal/Modal.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { elementAcceptingRef, HTMLElementType } from '@mui/utils'; import { EventHandlers, useSlotProps } from '../utils'; import { useClassNamesOverride } from '../utils/ClassNameConfigurator'; diff --git a/packages/mui-base/src/NoSsr/NoSsr.tsx b/packages/mui-base/src/NoSsr/NoSsr.tsx index c637df94e70b61..f785372bd47559 100644 --- a/packages/mui-base/src/NoSsr/NoSsr.tsx +++ b/packages/mui-base/src/NoSsr/NoSsr.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { exactProp, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; import { NoSsrProps } from './NoSsr.types'; diff --git a/packages/mui-base/src/Option/Option.tsx b/packages/mui-base/src/Option/Option.tsx index 07d1dfafef2333..76212d55fa7312 100644 --- a/packages/mui-base/src/Option/Option.tsx +++ b/packages/mui-base/src/Option/Option.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { OptionProps, OptionOwnerState, OptionType, OptionRootSlotProps } from './Option.types'; diff --git a/packages/mui-base/src/OptionGroup/OptionGroup.tsx b/packages/mui-base/src/OptionGroup/OptionGroup.tsx index 3fb5814de498a6..79e470f6a35bb3 100644 --- a/packages/mui-base/src/OptionGroup/OptionGroup.tsx +++ b/packages/mui-base/src/OptionGroup/OptionGroup.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { getOptionGroupUtilityClass } from './optionGroupClasses'; diff --git a/packages/mui-base/src/Popper/Popper.tsx b/packages/mui-base/src/Popper/Popper.tsx index b42dfcb37e1266..4a98c2c03174d9 100644 --- a/packages/mui-base/src/Popper/Popper.tsx +++ b/packages/mui-base/src/Popper/Popper.tsx @@ -9,7 +9,7 @@ import { unstable_useForkRef as useForkRef, } from '@mui/utils'; import { createPopper, Instance, Modifier, Placement, State, VirtualElement } from '@popperjs/core'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { Portal } from '../Portal'; import { getPopperUtilityClass } from './popperClasses'; diff --git a/packages/mui-base/src/Portal/Portal.tsx b/packages/mui-base/src/Portal/Portal.tsx index 89588fa288ce7d..1b80c26ec12c8d 100644 --- a/packages/mui-base/src/Portal/Portal.tsx +++ b/packages/mui-base/src/Portal/Portal.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import getReactNodeRef from '@mui/utils/getReactNodeRef'; import { exactProp, diff --git a/packages/mui-base/src/Select/Select.tsx b/packages/mui-base/src/Select/Select.tsx index 6d1828324bf65f..a3ab113e413f50 100644 --- a/packages/mui-base/src/Select/Select.tsx +++ b/packages/mui-base/src/Select/Select.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { SelectListboxSlotProps, diff --git a/packages/mui-base/src/Slider/Slider.tsx b/packages/mui-base/src/Slider/Slider.tsx index 3ae33136e6c711..79f3a933cd3346 100644 --- a/packages/mui-base/src/Slider/Slider.tsx +++ b/packages/mui-base/src/Slider/Slider.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { chainPropTypes } from '@mui/utils'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; diff --git a/packages/mui-base/src/Snackbar/Snackbar.tsx b/packages/mui-base/src/Snackbar/Snackbar.tsx index 8a470e76019c75..bb891b099539d0 100644 --- a/packages/mui-base/src/Snackbar/Snackbar.tsx +++ b/packages/mui-base/src/Snackbar/Snackbar.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { ClickAwayListener } from '../ClickAwayListener'; import { SnackbarOwnerState, diff --git a/packages/mui-base/src/Switch/Switch.tsx b/packages/mui-base/src/Switch/Switch.tsx index 1541e22840d5f4..38461e19b3365e 100644 --- a/packages/mui-base/src/Switch/Switch.tsx +++ b/packages/mui-base/src/Switch/Switch.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent } from '../utils/PolymorphicComponent'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { useSwitch } from '../useSwitch'; diff --git a/packages/mui-base/src/Tab/Tab.tsx b/packages/mui-base/src/Tab/Tab.tsx index 6147ba91e90ed3..f34ac4afd043a0 100644 --- a/packages/mui-base/src/Tab/Tab.tsx +++ b/packages/mui-base/src/Tab/Tab.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { getTabUtilityClass } from './tabClasses'; diff --git a/packages/mui-base/src/TabPanel/TabPanel.tsx b/packages/mui-base/src/TabPanel/TabPanel.tsx index 291b712291fbcb..19b2107d6e3b69 100644 --- a/packages/mui-base/src/TabPanel/TabPanel.tsx +++ b/packages/mui-base/src/TabPanel/TabPanel.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent, useSlotProps, WithOptionalOwnerState } from '../utils'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { getTabPanelUtilityClass } from './tabPanelClasses'; diff --git a/packages/mui-base/src/TablePagination/TablePagination.test.tsx b/packages/mui-base/src/TablePagination/TablePagination.test.tsx index b8be82fdbf7fa4..b43c9688e8376f 100644 --- a/packages/mui-base/src/TablePagination/TablePagination.test.tsx +++ b/packages/mui-base/src/TablePagination/TablePagination.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { fireEvent, createRenderer } from '@mui/internal-test-utils'; import { TablePagination, diff --git a/packages/mui-base/src/TablePagination/TablePagination.tsx b/packages/mui-base/src/TablePagination/TablePagination.tsx index 2ad936f2fa7e52..f29512d290668a 100644 --- a/packages/mui-base/src/TablePagination/TablePagination.tsx +++ b/packages/mui-base/src/TablePagination/TablePagination.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_useId as useId, chainPropTypes, integerPropType } from '@mui/utils'; import { PolymorphicComponent, useSlotProps, WithOptionalOwnerState } from '../utils'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; diff --git a/packages/mui-base/src/Tabs/Tabs.tsx b/packages/mui-base/src/Tabs/Tabs.tsx index afd466b8e5bb7e..a4d948cfe069e5 100644 --- a/packages/mui-base/src/Tabs/Tabs.tsx +++ b/packages/mui-base/src/Tabs/Tabs.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { PolymorphicComponent, useSlotProps, WithOptionalOwnerState } from '../utils'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { getTabsUtilityClass } from './tabsClasses'; diff --git a/packages/mui-base/src/TabsList/TabsList.tsx b/packages/mui-base/src/TabsList/TabsList.tsx index fa0d118174fe8a..9dbd8845c143f3 100644 --- a/packages/mui-base/src/TabsList/TabsList.tsx +++ b/packages/mui-base/src/TabsList/TabsList.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '../composeClasses'; import { PolymorphicComponent, useSlotProps, WithOptionalOwnerState } from '../utils'; import { getTabsListUtilityClass } from './tabsListClasses'; diff --git a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.tsx b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.tsx index 23799d01516409..8b6340615356c8 100644 --- a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.tsx +++ b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_debounce as debounce, unstable_useForkRef as useForkRef, diff --git a/packages/mui-base/src/Transitions/CssAnimation.tsx b/packages/mui-base/src/Transitions/CssAnimation.tsx index 89ac171d31efb4..6e5fa814917143 100644 --- a/packages/mui-base/src/Transitions/CssAnimation.tsx +++ b/packages/mui-base/src/Transitions/CssAnimation.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { useTransitionStateManager } from '../useTransition'; diff --git a/packages/mui-base/src/Transitions/CssTransition.tsx b/packages/mui-base/src/Transitions/CssTransition.tsx index 7c668323fb2cc5..7bb28b5c256b3f 100644 --- a/packages/mui-base/src/Transitions/CssTransition.tsx +++ b/packages/mui-base/src/Transitions/CssTransition.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { useTransitionStateManager } from '../useTransition'; diff --git a/packages/mui-base/src/Unstable_NumberInput/NumberInput.tsx b/packages/mui-base/src/Unstable_NumberInput/NumberInput.tsx index 63ccebb9f0bf19..f05885faf3c564 100644 --- a/packages/mui-base/src/Unstable_NumberInput/NumberInput.tsx +++ b/packages/mui-base/src/Unstable_NumberInput/NumberInput.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { getNumberInputUtilityClass } from './numberInputClasses'; import { unstable_useNumberInput as useNumberInput } from '../unstable_useNumberInput'; diff --git a/packages/mui-base/src/Unstable_Popup/Popup.tsx b/packages/mui-base/src/Unstable_Popup/Popup.tsx index 4281b239ebbb6b..5191393c7c1d75 100644 --- a/packages/mui-base/src/Unstable_Popup/Popup.tsx +++ b/packages/mui-base/src/Unstable_Popup/Popup.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { autoUpdate, flip, diff --git a/packages/mui-docs/src/i18n/i18n.tsx b/packages/mui-docs/src/i18n/i18n.tsx index f027a71ebddfce..e6924b24284c15 100644 --- a/packages/mui-docs/src/i18n/i18n.tsx +++ b/packages/mui-docs/src/i18n/i18n.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { deepmerge } from '@mui/utils'; import defaultTranslations from '../translations'; diff --git a/packages/mui-joy/src/Accordion/Accordion.tsx b/packages/mui-joy/src/Accordion/Accordion.tsx index 4020de0d6cc3cb..f1b10753600d5b 100644 --- a/packages/mui-joy/src/Accordion/Accordion.tsx +++ b/packages/mui-joy/src/Accordion/Accordion.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { diff --git a/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx b/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx index 8c15fb5db3e9ec..7fe327116831b4 100644 --- a/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx +++ b/packages/mui-joy/src/AccordionDetails/AccordionDetails.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx b/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx index 7c1da88f15ecd1..d781656555be62 100644 --- a/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx +++ b/packages/mui-joy/src/AccordionGroup/AccordionGroup.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx b/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx index 626802981a2bf8..72f9326a09b176 100644 --- a/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx +++ b/packages/mui-joy/src/AccordionSummary/AccordionSummary.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/Alert/Alert.tsx b/packages/mui-joy/src/Alert/Alert.tsx index 739c782b2f6f6c..505a8f4c5a3dee 100644 --- a/packages/mui-joy/src/Alert/Alert.tsx +++ b/packages/mui-joy/src/Alert/Alert.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/AspectRatio/AspectRatio.tsx b/packages/mui-joy/src/AspectRatio/AspectRatio.tsx index bc40a9edd1b9ab..51bc903ae627f3 100644 --- a/packages/mui-joy/src/AspectRatio/AspectRatio.tsx +++ b/packages/mui-joy/src/AspectRatio/AspectRatio.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx index 3a080d07f1df77..d938a9074ee787 100644 --- a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx +++ b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { expect } from 'chai'; import { spy } from 'sinon'; import { diff --git a/packages/mui-joy/src/Autocomplete/Autocomplete.tsx b/packages/mui-joy/src/Autocomplete/Autocomplete.tsx index be41341e35b82c..29eeea9e96ca77 100644 --- a/packages/mui-joy/src/Autocomplete/Autocomplete.tsx +++ b/packages/mui-joy/src/Autocomplete/Autocomplete.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { chainPropTypes, diff --git a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx index 61876b051e8bc8..ee77b64627f8ac 100644 --- a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx +++ b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx index 3459caced27e6c..fb1bfa139d9191 100644 --- a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx +++ b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/Avatar/Avatar.tsx b/packages/mui-joy/src/Avatar/Avatar.tsx index 5f8379b0b0915e..04558b9392d96f 100644 --- a/packages/mui-joy/src/Avatar/Avatar.tsx +++ b/packages/mui-joy/src/Avatar/Avatar.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx b/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx index b3b8138b8b331d..707d70996d2b66 100644 --- a/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx +++ b/packages/mui-joy/src/AvatarGroup/AvatarGroup.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/Badge/Badge.tsx b/packages/mui-joy/src/Badge/Badge.tsx index f8ac2e32a4ca14..bfac40868313c4 100644 --- a/packages/mui-joy/src/Badge/Badge.tsx +++ b/packages/mui-joy/src/Badge/Badge.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize, usePreviousProps } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; diff --git a/packages/mui-joy/src/Box/Box.tsx b/packages/mui-joy/src/Box/Box.tsx index 98dab4534d168f..140a8202c915e4 100644 --- a/packages/mui-joy/src/Box/Box.tsx +++ b/packages/mui-joy/src/Box/Box.tsx @@ -1,6 +1,6 @@ 'use client'; import { createBox } from '@mui/system'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className'; import { Theme } from '../styles/types'; import defaultTheme from '../styles/defaultTheme'; diff --git a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx index 10a278263f5500..3d0028fdd7ff1c 100644 --- a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx +++ b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize, diff --git a/packages/mui-joy/src/Button/Button.tsx b/packages/mui-joy/src/Button/Button.tsx index 1592a14a175608..62a1b3f05c2b86 100644 --- a/packages/mui-joy/src/Button/Button.tsx +++ b/packages/mui-joy/src/Button/Button.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { useButton } from '@mui/base/useButton'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; import { Interpolation } from '@mui/system'; diff --git a/packages/mui-joy/src/ButtonGroup/ButtonGroup.tsx b/packages/mui-joy/src/ButtonGroup/ButtonGroup.tsx index a9af27749a00b1..7f4b3928e96b36 100644 --- a/packages/mui-joy/src/ButtonGroup/ButtonGroup.tsx +++ b/packages/mui-joy/src/ButtonGroup/ButtonGroup.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { unstable_traverseBreakpoints as traverseBreakpoints } from '@mui/system/Grid'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Card/Card.tsx b/packages/mui-joy/src/Card/Card.tsx index 7ee7eda5de52d1..8bfb8e2ff5233f 100644 --- a/packages/mui-joy/src/Card/Card.tsx +++ b/packages/mui-joy/src/Card/Card.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { diff --git a/packages/mui-joy/src/CardActions/CardActions.tsx b/packages/mui-joy/src/CardActions/CardActions.tsx index 551992bc000f3a..b3c3244b8b7a80 100644 --- a/packages/mui-joy/src/CardActions/CardActions.tsx +++ b/packages/mui-joy/src/CardActions/CardActions.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/CardContent/CardContent.tsx b/packages/mui-joy/src/CardContent/CardContent.tsx index 2b1f4fc49cb2b7..c662e32e7a7876 100644 --- a/packages/mui-joy/src/CardContent/CardContent.tsx +++ b/packages/mui-joy/src/CardContent/CardContent.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/CardCover/CardCover.tsx b/packages/mui-joy/src/CardCover/CardCover.tsx index 0a9d771b8016fe..2a763302377594 100644 --- a/packages/mui-joy/src/CardCover/CardCover.tsx +++ b/packages/mui-joy/src/CardCover/CardCover.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/CardOverflow/CardOverflow.tsx b/packages/mui-joy/src/CardOverflow/CardOverflow.tsx index dc15b229600d79..e9a363e0baedf2 100644 --- a/packages/mui-joy/src/CardOverflow/CardOverflow.tsx +++ b/packages/mui-joy/src/CardOverflow/CardOverflow.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/Checkbox/Checkbox.tsx b/packages/mui-joy/src/Checkbox/Checkbox.tsx index c479ae8e29a8b6..18b1ec01f12eef 100644 --- a/packages/mui-joy/src/Checkbox/Checkbox.tsx +++ b/packages/mui-joy/src/Checkbox/Checkbox.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_useId as useId, unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; diff --git a/packages/mui-joy/src/Chip/Chip.tsx b/packages/mui-joy/src/Chip/Chip.tsx index 2c1ad24b5447e4..f8fc9bed2b8baa 100644 --- a/packages/mui-joy/src/Chip/Chip.tsx +++ b/packages/mui-joy/src/Chip/Chip.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; import { useButton } from '@mui/base/useButton'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/ChipDelete/ChipDelete.tsx b/packages/mui-joy/src/ChipDelete/ChipDelete.tsx index d92bf1eff7b71e..01538f10b6a7c9 100644 --- a/packages/mui-joy/src/ChipDelete/ChipDelete.tsx +++ b/packages/mui-joy/src/ChipDelete/ChipDelete.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/CircularProgress/CircularProgress.tsx b/packages/mui-joy/src/CircularProgress/CircularProgress.tsx index 29ad52e8997193..b8097a448acd59 100644 --- a/packages/mui-joy/src/CircularProgress/CircularProgress.tsx +++ b/packages/mui-joy/src/CircularProgress/CircularProgress.tsx @@ -1,5 +1,5 @@ 'use client'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import * as React from 'react'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Container/Container.tsx b/packages/mui-joy/src/Container/Container.tsx index 5364919b70a297..8debe6735716dd 100644 --- a/packages/mui-joy/src/Container/Container.tsx +++ b/packages/mui-joy/src/Container/Container.tsx @@ -1,6 +1,6 @@ 'use client'; import { createContainer } from '@mui/system'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { Theme } from '../styles/types/theme'; import styled from '../styles/styled'; diff --git a/packages/mui-joy/src/CssBaseline/CssBaseline.tsx b/packages/mui-joy/src/CssBaseline/CssBaseline.tsx index df8d201b67f4e5..a9567dff575503 100644 --- a/packages/mui-joy/src/CssBaseline/CssBaseline.tsx +++ b/packages/mui-joy/src/CssBaseline/CssBaseline.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import GlobalStyles from '../GlobalStyles'; import defaultTheme from '../styles/defaultTheme'; import { Theme, DefaultColorScheme, ColorSystem } from '../styles/types'; diff --git a/packages/mui-joy/src/DialogActions/DialogActions.tsx b/packages/mui-joy/src/DialogActions/DialogActions.tsx index cc804bc151d1f7..d1194005c5fa90 100644 --- a/packages/mui-joy/src/DialogActions/DialogActions.tsx +++ b/packages/mui-joy/src/DialogActions/DialogActions.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/DialogContent/DialogContent.tsx b/packages/mui-joy/src/DialogContent/DialogContent.tsx index aeef5661f37fd0..755d8ac7446cb6 100644 --- a/packages/mui-joy/src/DialogContent/DialogContent.tsx +++ b/packages/mui-joy/src/DialogContent/DialogContent.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/DialogTitle/DialogTitle.tsx b/packages/mui-joy/src/DialogTitle/DialogTitle.tsx index 5f5f835038c0d0..9ca015b41c4891 100644 --- a/packages/mui-joy/src/DialogTitle/DialogTitle.tsx +++ b/packages/mui-joy/src/DialogTitle/DialogTitle.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Divider/Divider.tsx b/packages/mui-joy/src/Divider/Divider.tsx index f79be2e1452b62..c806067b9f91b7 100644 --- a/packages/mui-joy/src/Divider/Divider.tsx +++ b/packages/mui-joy/src/Divider/Divider.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Drawer/Drawer.tsx b/packages/mui-joy/src/Drawer/Drawer.tsx index 9c49525f6cc86b..fef4c9ab6e719f 100644 --- a/packages/mui-joy/src/Drawer/Drawer.tsx +++ b/packages/mui-joy/src/Drawer/Drawer.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { HTMLElementType, unstable_capitalize as capitalize, diff --git a/packages/mui-joy/src/FormControl/FormControl.tsx b/packages/mui-joy/src/FormControl/FormControl.tsx index 8155e98761b67f..3ba61a013a9d13 100644 --- a/packages/mui-joy/src/FormControl/FormControl.tsx +++ b/packages/mui-joy/src/FormControl/FormControl.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { unstable_useId as useId, unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/FormHelperText/FormHelperText.tsx b/packages/mui-joy/src/FormHelperText/FormHelperText.tsx index c0b47e67da6f62..345fec4dcb0611 100644 --- a/packages/mui-joy/src/FormHelperText/FormHelperText.tsx +++ b/packages/mui-joy/src/FormHelperText/FormHelperText.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/FormLabel/FormLabel.tsx b/packages/mui-joy/src/FormLabel/FormLabel.tsx index dbeae96d5a46e2..fa4efd6458e648 100644 --- a/packages/mui-joy/src/FormLabel/FormLabel.tsx +++ b/packages/mui-joy/src/FormLabel/FormLabel.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; import { styled, useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/Grid/Grid.tsx b/packages/mui-joy/src/Grid/Grid.tsx index e753f0cf25dd8f..63d901d6d19981 100644 --- a/packages/mui-joy/src/Grid/Grid.tsx +++ b/packages/mui-joy/src/Grid/Grid.tsx @@ -1,5 +1,5 @@ 'use client'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { createGrid } from '@mui/system/Grid'; import { OverridableComponent } from '@mui/types'; import { styled, useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/IconButton/IconButton.tsx b/packages/mui-joy/src/IconButton/IconButton.tsx index 2420ca1cc05760..8abbf8f17bd2b0 100644 --- a/packages/mui-joy/src/IconButton/IconButton.tsx +++ b/packages/mui-joy/src/IconButton/IconButton.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils'; import { useButton } from '@mui/base/useButton'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/Input/Input.tsx b/packages/mui-joy/src/Input/Input.tsx index a02823c6b2174d..63f90e3bf90480 100644 --- a/packages/mui-joy/src/Input/Input.tsx +++ b/packages/mui-joy/src/Input/Input.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/LinearProgress/LinearProgress.tsx b/packages/mui-joy/src/LinearProgress/LinearProgress.tsx index 21d1247b5f06c5..27be4bb9f81230 100644 --- a/packages/mui-joy/src/LinearProgress/LinearProgress.tsx +++ b/packages/mui-joy/src/LinearProgress/LinearProgress.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/Link/Link.tsx b/packages/mui-joy/src/Link/Link.tsx index afe985b6128d6c..1acacbfbdc93e3 100644 --- a/packages/mui-joy/src/Link/Link.tsx +++ b/packages/mui-joy/src/Link/Link.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { diff --git a/packages/mui-joy/src/List/List.tsx b/packages/mui-joy/src/List/List.tsx index 8e640c8502e1c7..f91101df29d287 100644 --- a/packages/mui-joy/src/List/List.tsx +++ b/packages/mui-joy/src/List/List.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/ListDivider/ListDivider.tsx b/packages/mui-joy/src/ListDivider/ListDivider.tsx index 5b31ea9e9d9312..962595482a0980 100644 --- a/packages/mui-joy/src/ListDivider/ListDivider.tsx +++ b/packages/mui-joy/src/ListDivider/ListDivider.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/ListItem/ListItem.tsx b/packages/mui-joy/src/ListItem/ListItem.tsx index 00c73d6a801214..8b28b8c9982f23 100644 --- a/packages/mui-joy/src/ListItem/ListItem.tsx +++ b/packages/mui-joy/src/ListItem/ListItem.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_capitalize as capitalize, diff --git a/packages/mui-joy/src/ListItemButton/ListItemButton.tsx b/packages/mui-joy/src/ListItemButton/ListItemButton.tsx index 799b66bf814f11..69b24ec499f236 100644 --- a/packages/mui-joy/src/ListItemButton/ListItemButton.tsx +++ b/packages/mui-joy/src/ListItemButton/ListItemButton.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/ListItemContent/ListItemContent.tsx b/packages/mui-joy/src/ListItemContent/ListItemContent.tsx index 4641539d10e970..137c00633bfd89 100644 --- a/packages/mui-joy/src/ListItemContent/ListItemContent.tsx +++ b/packages/mui-joy/src/ListItemContent/ListItemContent.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx index 642810b81f3919..32170b395e8750 100644 --- a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx +++ b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/ListSubheader/ListSubheader.tsx b/packages/mui-joy/src/ListSubheader/ListSubheader.tsx index a46ce4f14067cc..0d319d6418602c 100644 --- a/packages/mui-joy/src/ListSubheader/ListSubheader.tsx +++ b/packages/mui-joy/src/ListSubheader/ListSubheader.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { unstable_useId as useId, unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/Menu/Menu.tsx b/packages/mui-joy/src/Menu/Menu.tsx index df041f440ec211..1169af0ff0983e 100644 --- a/packages/mui-joy/src/Menu/Menu.tsx +++ b/packages/mui-joy/src/Menu/Menu.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize, refType } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/MenuButton/MenuButton.tsx b/packages/mui-joy/src/MenuButton/MenuButton.tsx index e487c2e9bead51..15ea5834298b68 100644 --- a/packages/mui-joy/src/MenuButton/MenuButton.tsx +++ b/packages/mui-joy/src/MenuButton/MenuButton.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { useMenuButton } from '@mui/base/useMenuButton'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/MenuItem/MenuItem.tsx b/packages/mui-joy/src/MenuItem/MenuItem.tsx index bf0c3da192b9e4..8e5c0677100f60 100644 --- a/packages/mui-joy/src/MenuItem/MenuItem.tsx +++ b/packages/mui-joy/src/MenuItem/MenuItem.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; import { useMenuItem, useMenuItemContextStabilizer } from '@mui/base/useMenuItem'; diff --git a/packages/mui-joy/src/MenuList/MenuList.tsx b/packages/mui-joy/src/MenuList/MenuList.tsx index e36e8a5def1679..03e7379b15ace9 100644 --- a/packages/mui-joy/src/MenuList/MenuList.tsx +++ b/packages/mui-joy/src/MenuList/MenuList.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize, refType } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/Modal/Modal.tsx b/packages/mui-joy/src/Modal/Modal.tsx index bdcce97f6f58ac..8c6fa9f9bf4178 100644 --- a/packages/mui-joy/src/Modal/Modal.tsx +++ b/packages/mui-joy/src/Modal/Modal.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { elementAcceptingRef, HTMLElementType } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/ModalClose/ModalClose.tsx b/packages/mui-joy/src/ModalClose/ModalClose.tsx index 47371254b23d2d..b262f3a489b02b 100644 --- a/packages/mui-joy/src/ModalClose/ModalClose.tsx +++ b/packages/mui-joy/src/ModalClose/ModalClose.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/ModalDialog/ModalDialog.tsx b/packages/mui-joy/src/ModalDialog/ModalDialog.tsx index 633ee0ee3b2d2f..9ffc1d08b9cc31 100644 --- a/packages/mui-joy/src/ModalDialog/ModalDialog.tsx +++ b/packages/mui-joy/src/ModalDialog/ModalDialog.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/ModalOverflow/ModalOverflow.tsx b/packages/mui-joy/src/ModalOverflow/ModalOverflow.tsx index 9582ba449480e4..2eeb1f75299f5d 100644 --- a/packages/mui-joy/src/ModalOverflow/ModalOverflow.tsx +++ b/packages/mui-joy/src/ModalOverflow/ModalOverflow.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps, styled } from '../styles'; diff --git a/packages/mui-joy/src/Option/Option.tsx b/packages/mui-joy/src/Option/Option.tsx index 4a1a095ef20d0e..2723ce6b52d812 100644 --- a/packages/mui-joy/src/Option/Option.tsx +++ b/packages/mui-joy/src/Option/Option.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; import { useOption, useOptionContextStabilizer } from '@mui/base/useOption'; import { unstable_useForkRef as useForkRef } from '@mui/utils'; diff --git a/packages/mui-joy/src/Radio/Radio.tsx b/packages/mui-joy/src/Radio/Radio.tsx index 18ad3e2d87b68a..5f874bac16fb99 100644 --- a/packages/mui-joy/src/Radio/Radio.tsx +++ b/packages/mui-joy/src/Radio/Radio.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize, unstable_useId as useId } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx index 8665f6bd97ad82..7110638a50c182 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx +++ b/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { expect } from 'chai'; import { spy } from 'sinon'; import { act, createRenderer, fireEvent, screen } from '@mui/internal-test-utils'; diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx index 86b2d6eca50067..d6c1c8152e0326 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroup.tsx +++ b/packages/mui-joy/src/RadioGroup/RadioGroup.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { diff --git a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx index f4567cc22036a7..e5af24ec684fd8 100644 --- a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx +++ b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; diff --git a/packages/mui-joy/src/Select/Select.tsx b/packages/mui-joy/src/Select/Select.tsx index 4f8b17c7199a79..ffd5955f855a52 100644 --- a/packages/mui-joy/src/Select/Select.tsx +++ b/packages/mui-joy/src/Select/Select.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverrideProps, DefaultComponentProps } from '@mui/types'; import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils'; diff --git a/packages/mui-joy/src/Sheet/Sheet.tsx b/packages/mui-joy/src/Sheet/Sheet.tsx index f57b00d7cdc080..e9aff0e4e76569 100644 --- a/packages/mui-joy/src/Sheet/Sheet.tsx +++ b/packages/mui-joy/src/Sheet/Sheet.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Skeleton/Skeleton.tsx b/packages/mui-joy/src/Skeleton/Skeleton.tsx index c5a34ccb357e39..6f7ca121410a7b 100644 --- a/packages/mui-joy/src/Skeleton/Skeleton.tsx +++ b/packages/mui-joy/src/Skeleton/Skeleton.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { keyframes, css } from '@mui/system'; import { unstable_composeClasses as composeClasses } from '@mui/base'; diff --git a/packages/mui-joy/src/Slider/Slider.tsx b/packages/mui-joy/src/Slider/Slider.tsx index 692c375f2ef334..d4585d99bcdf83 100644 --- a/packages/mui-joy/src/Slider/Slider.tsx +++ b/packages/mui-joy/src/Slider/Slider.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses, diff --git a/packages/mui-joy/src/Snackbar/Snackbar.tsx b/packages/mui-joy/src/Snackbar/Snackbar.tsx index cd20c59211fa96..f78813d6b2d28d 100644 --- a/packages/mui-joy/src/Snackbar/Snackbar.tsx +++ b/packages/mui-joy/src/Snackbar/Snackbar.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { ClickAwayListener } from '@mui/base/ClickAwayListener'; diff --git a/packages/mui-joy/src/Stack/Stack.tsx b/packages/mui-joy/src/Stack/Stack.tsx index 42ac9875d8b495..fba7c7f49f1030 100644 --- a/packages/mui-joy/src/Stack/Stack.tsx +++ b/packages/mui-joy/src/Stack/Stack.tsx @@ -1,6 +1,6 @@ 'use client'; import { createStack } from '@mui/system'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import styled from '../styles/styled'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/Step/Step.tsx b/packages/mui-joy/src/Step/Step.tsx index 9fc9499e14926d..6cc032323236bb 100644 --- a/packages/mui-joy/src/Step/Step.tsx +++ b/packages/mui-joy/src/Step/Step.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; diff --git a/packages/mui-joy/src/StepButton/StepButton.tsx b/packages/mui-joy/src/StepButton/StepButton.tsx index 158c15cbfd756d..cecc8955eaea83 100644 --- a/packages/mui-joy/src/StepButton/StepButton.tsx +++ b/packages/mui-joy/src/StepButton/StepButton.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { useThemeProps } from '../styles'; import styled from '../styles/styled'; diff --git a/packages/mui-joy/src/StepIndicator/StepIndicator.tsx b/packages/mui-joy/src/StepIndicator/StepIndicator.tsx index bad8bb35c77cdd..1cdf62bc9b494d 100644 --- a/packages/mui-joy/src/StepIndicator/StepIndicator.tsx +++ b/packages/mui-joy/src/StepIndicator/StepIndicator.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/Stepper/Stepper.tsx b/packages/mui-joy/src/Stepper/Stepper.tsx index e23f92da352911..b0f1f08bbbbff7 100644 --- a/packages/mui-joy/src/Stepper/Stepper.tsx +++ b/packages/mui-joy/src/Stepper/Stepper.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; diff --git a/packages/mui-joy/src/SvgIcon/SvgIcon.tsx b/packages/mui-joy/src/SvgIcon/SvgIcon.tsx index 80f09aef4b91d9..f2d8d5504d5369 100644 --- a/packages/mui-joy/src/SvgIcon/SvgIcon.tsx +++ b/packages/mui-joy/src/SvgIcon/SvgIcon.tsx @@ -3,7 +3,7 @@ import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import * as React from 'react'; import styled from '../styles/styled'; import useThemeProps from '../styles/useThemeProps'; diff --git a/packages/mui-joy/src/Switch/Switch.tsx b/packages/mui-joy/src/Switch/Switch.tsx index 98f74a281f5471..1dd975277ac954 100644 --- a/packages/mui-joy/src/Switch/Switch.tsx +++ b/packages/mui-joy/src/Switch/Switch.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/Tab/Tab.tsx b/packages/mui-joy/src/Tab/Tab.tsx index b8b84b45e3c5dc..31323ad4b5be39 100644 --- a/packages/mui-joy/src/Tab/Tab.tsx +++ b/packages/mui-joy/src/Tab/Tab.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize, unstable_useForkRef as useForkRef } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; diff --git a/packages/mui-joy/src/TabList/TabList.tsx b/packages/mui-joy/src/TabList/TabList.tsx index 6438d0ed22369c..f85ce845175ff9 100644 --- a/packages/mui-joy/src/TabList/TabList.tsx +++ b/packages/mui-joy/src/TabList/TabList.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/TabPanel/TabPanel.tsx b/packages/mui-joy/src/TabPanel/TabPanel.tsx index 65041da1cbdbe6..fcb28b9e058a73 100644 --- a/packages/mui-joy/src/TabPanel/TabPanel.tsx +++ b/packages/mui-joy/src/TabPanel/TabPanel.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Table/Table.tsx b/packages/mui-joy/src/Table/Table.tsx index 37a50b558621af..1efd2fa44383b3 100644 --- a/packages/mui-joy/src/Table/Table.tsx +++ b/packages/mui-joy/src/Table/Table.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Tabs/Tabs.tsx b/packages/mui-joy/src/Tabs/Tabs.tsx index ec7d1a31e6e6a5..a852f9a05e46f3 100644 --- a/packages/mui-joy/src/Tabs/Tabs.tsx +++ b/packages/mui-joy/src/Tabs/Tabs.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-joy/src/Textarea/Textarea.tsx b/packages/mui-joy/src/Textarea/Textarea.tsx index e7771780c27e72..1c982766cd8ee7 100644 --- a/packages/mui-joy/src/Textarea/Textarea.tsx +++ b/packages/mui-joy/src/Textarea/Textarea.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { OverridableComponent } from '@mui/types'; import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses'; diff --git a/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.tsx b/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.tsx index 82b747a653e911..2a55dcc6da2ad7 100644 --- a/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.tsx +++ b/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_capitalize as capitalize, unstable_isMuiElement as isMuiElement, diff --git a/packages/mui-joy/src/Tooltip/Tooltip.tsx b/packages/mui-joy/src/Tooltip/Tooltip.tsx index 50b77460533588..d82bb4700b7c1c 100644 --- a/packages/mui-joy/src/Tooltip/Tooltip.tsx +++ b/packages/mui-joy/src/Tooltip/Tooltip.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_capitalize as capitalize, diff --git a/packages/mui-joy/src/Typography/Typography.tsx b/packages/mui-joy/src/Typography/Typography.tsx index 9a6fcb530fad33..a226ec705cab64 100644 --- a/packages/mui-joy/src/Typography/Typography.tsx +++ b/packages/mui-joy/src/Typography/Typography.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent } from '@mui/types'; import { unstable_capitalize as capitalize, diff --git a/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts b/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts index 24c4bfc4352984..54229b595f05b9 100644 --- a/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts +++ b/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; let warnedOnce = false; diff --git a/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts b/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts index b9343203786669..3789251745004b 100644 --- a/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts +++ b/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; let warnedOnce = false; diff --git a/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts b/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts index d8609f6a180f4e..75dd7bce1b9a3a 100644 --- a/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts +++ b/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; let warnedOnce = false; diff --git a/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts b/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts index 51954ef4cabaa1..00a686e91dcbb3 100644 --- a/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts +++ b/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; let warnedOnce = false; diff --git a/packages/mui-lab/src/Timeline/Timeline.tsx b/packages/mui-lab/src/Timeline/Timeline.tsx index f388d198b084d3..d936ad4cea206b 100644 --- a/packages/mui-lab/src/Timeline/Timeline.tsx +++ b/packages/mui-lab/src/Timeline/Timeline.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@mui/base'; import { styled, useThemeProps } from '@mui/material/styles'; diff --git a/packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx b/packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx index 57d83c6b9d053a..9a566ab2463e08 100644 --- a/packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx +++ b/packages/mui-material/src/ClickAwayListener/ClickAwayListener.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { elementAcceptingRef, exactProp, diff --git a/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx b/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx index ecfd3b1c56df14..c4c5af496295d7 100644 --- a/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx +++ b/packages/mui-material/src/DefaultPropsProvider/DefaultPropsProvider.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps, } from '@mui/system/DefaultPropsProvider'; diff --git a/packages/mui-material/src/Grid2/Grid2.tsx b/packages/mui-material/src/Grid2/Grid2.tsx index 3aeb961de5ff97..0c74f7095e9570 100644 --- a/packages/mui-material/src/Grid2/Grid2.tsx +++ b/packages/mui-material/src/Grid2/Grid2.tsx @@ -1,5 +1,5 @@ 'use client'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { createGrid as createGrid2 } from '@mui/system/Grid'; import { SxProps, SystemProps } from '@mui/system'; import { OverridableComponent, OverrideProps } from '@mui/types'; diff --git a/packages/mui-material/src/NoSsr/NoSsr.tsx b/packages/mui-material/src/NoSsr/NoSsr.tsx index c7e2dfbc191a6e..492f27fecfdc66 100644 --- a/packages/mui-material/src/NoSsr/NoSsr.tsx +++ b/packages/mui-material/src/NoSsr/NoSsr.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { exactProp, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils'; import { NoSsrProps } from './NoSsr.types'; diff --git a/packages/mui-material/src/PigmentContainer/PigmentContainer.tsx b/packages/mui-material/src/PigmentContainer/PigmentContainer.tsx index 9ea90947bfe742..b20408b54aeb0f 100644 --- a/packages/mui-material/src/PigmentContainer/PigmentContainer.tsx +++ b/packages/mui-material/src/PigmentContainer/PigmentContainer.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent, OverrideProps } from '@mui/types'; // @ts-ignore diff --git a/packages/mui-material/src/PigmentGrid/PigmentGrid.tsx b/packages/mui-material/src/PigmentGrid/PigmentGrid.tsx index 9518069c45bf1f..d802ca1f9da292 100644 --- a/packages/mui-material/src/PigmentGrid/PigmentGrid.tsx +++ b/packages/mui-material/src/PigmentGrid/PigmentGrid.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import clsx from 'clsx'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { OverridableComponent, OverrideProps } from '@mui/types'; import { SxProps } from '@mui/system'; // @ts-ignore diff --git a/packages/mui-material/src/PigmentHidden/PigmentHidden.tsx b/packages/mui-material/src/PigmentHidden/PigmentHidden.tsx index c4abce51b2f243..b153459a16e357 100644 --- a/packages/mui-material/src/PigmentHidden/PigmentHidden.tsx +++ b/packages/mui-material/src/PigmentHidden/PigmentHidden.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { Breakpoint } from '@mui/system'; // @ts-ignore diff --git a/packages/mui-material/src/PigmentStack/PigmentStack.tsx b/packages/mui-material/src/PigmentStack/PigmentStack.tsx index 4b0e34d9abbe2f..bf788bb666219d 100644 --- a/packages/mui-material/src/PigmentStack/PigmentStack.tsx +++ b/packages/mui-material/src/PigmentStack/PigmentStack.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { OverridableComponent, OverrideProps } from '@mui/types'; // @ts-ignore diff --git a/packages/mui-material/src/Popper/BasePopper.tsx b/packages/mui-material/src/Popper/BasePopper.tsx index 235874aab7a8e9..75aa74a338b0f8 100644 --- a/packages/mui-material/src/Popper/BasePopper.tsx +++ b/packages/mui-material/src/Popper/BasePopper.tsx @@ -9,7 +9,7 @@ import { unstable_useForkRef as useForkRef, } from '@mui/utils'; import { createPopper, Instance, Modifier, Placement, State, VirtualElement } from '@popperjs/core'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import composeClasses from '@mui/utils/composeClasses'; import useSlotProps from '@mui/utils/useSlotProps'; import Portal from '../Portal'; diff --git a/packages/mui-material/src/Popper/Popper.tsx b/packages/mui-material/src/Popper/Popper.tsx index b329b808ae044d..b0d61ffb43c5b0 100644 --- a/packages/mui-material/src/Popper/Popper.tsx +++ b/packages/mui-material/src/Popper/Popper.tsx @@ -3,7 +3,7 @@ import { SxProps } from '@mui/system'; import { useRtl } from '@mui/system/RtlProvider'; import refType from '@mui/utils/refType'; import HTMLElementType from '@mui/utils/HTMLElementType'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import * as React from 'react'; import BasePopper from './BasePopper'; import { PopperProps as BasePopperProps } from './BasePopper.types'; diff --git a/packages/mui-material/src/Portal/Portal.tsx b/packages/mui-material/src/Portal/Portal.tsx index b6aff42416c348..e4dcdd9d684202 100644 --- a/packages/mui-material/src/Portal/Portal.tsx +++ b/packages/mui-material/src/Portal/Portal.tsx @@ -1,7 +1,7 @@ 'use client'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { exactProp, HTMLElementType, diff --git a/packages/mui-material/src/Slider/SliderValueLabel.tsx b/packages/mui-material/src/Slider/SliderValueLabel.tsx index 7db96d9ea2ade4..a4cae3a2d80c40 100644 --- a/packages/mui-material/src/Slider/SliderValueLabel.tsx +++ b/packages/mui-material/src/Slider/SliderValueLabel.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { SliderValueLabelProps } from './SliderValueLabel.types'; import sliderClasses from './sliderClasses'; diff --git a/packages/mui-material/src/TextareaAutosize/TextareaAutosize.tsx b/packages/mui-material/src/TextareaAutosize/TextareaAutosize.tsx index 37529fa37873c5..025d31ab7966cc 100644 --- a/packages/mui-material/src/TextareaAutosize/TextareaAutosize.tsx +++ b/packages/mui-material/src/TextareaAutosize/TextareaAutosize.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { unstable_debounce as debounce, unstable_useForkRef as useForkRef, diff --git a/packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx b/packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx index 7a404740af6b68..22a3e81a6aff2b 100644 --- a/packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx +++ b/packages/mui-material/src/Unstable_TrapFocus/FocusTrap.tsx @@ -1,7 +1,7 @@ 'use client'; /* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import { exactProp, elementAcceptingRef, diff --git a/packages/mui-system/src/Container/Container.tsx b/packages/mui-system/src/Container/Container.tsx index a0d094306ce7fa..d6d3d13b3f15b0 100644 --- a/packages/mui-system/src/Container/Container.tsx +++ b/packages/mui-system/src/Container/Container.tsx @@ -1,5 +1,5 @@ 'use client'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import createContainer from './createContainer'; /** diff --git a/packages/mui-system/src/Container/createContainer.tsx b/packages/mui-system/src/Container/createContainer.tsx index 9516b8240923d6..5440b731464e84 100644 --- a/packages/mui-system/src/Container/createContainer.tsx +++ b/packages/mui-system/src/Container/createContainer.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import clsx from 'clsx'; import { Interpolation, MUIStyledComponent as StyledComponent } from '@mui/styled-engine'; import { OverridableComponent } from '@mui/types'; diff --git a/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx b/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx index 0c6435addd90c6..a87ba8c262583e 100644 --- a/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx +++ b/packages/mui-system/src/DefaultPropsProvider/DefaultPropsProvider.tsx @@ -1,6 +1,6 @@ 'use client'; import * as React from 'react'; -import PropTypes from 'prop-types'; +import * as PropTypes from 'prop-types'; import resolveProps from '@mui/utils/resolveProps'; const PropsContext = React.createContext