From 23cbbdb81e5c63d41ec0423810fc97479368c53d Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 6 Sep 2023 19:29:44 +0200 Subject: [PATCH] [lab] Add TypeScript deprecations (#38833) --- docs/pages/blog/lab-tree-view-to-mui-x.md | 6 ++++++ packages/mui-lab/src/AdapterDateFns/AdapterDateFns.ts | 4 +++- packages/mui-lab/src/AdapterDayjs/AdapterDayjs.ts | 4 +++- packages/mui-lab/src/AdapterLuxon/AdapterLuxon.ts | 4 +++- packages/mui-lab/src/AdapterMoment/AdapterMoment.ts | 4 +++- packages/mui-lab/src/CalendarPicker/CalendarPicker.tsx | 1 + .../src/CalendarPickerSkeleton/CalendarPickerSkeleton.tsx | 1 + packages/mui-lab/src/ClockPicker/ClockPicker.tsx | 1 + packages/mui-lab/src/DateRangePicker/DateRangePicker.ts | 1 + .../mui-lab/src/DateRangePickerDay/DateRangePickerDay.ts | 1 + packages/mui-lab/src/DateTimePicker/DateTimePicker.tsx | 1 + .../mui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx | 1 + .../src/DesktopDateRangePicker/DesktopDateRangePicker.ts | 1 + .../src/DesktopDateTimePicker/DesktopDateTimePicker.tsx | 1 + .../mui-lab/src/DesktopTimePicker/DesktopTimePicker.tsx | 1 + .../src/LocalizationProvider/LocalizationProvider.tsx | 1 + packages/mui-lab/src/MobileDatePicker/MobileDatePicker.tsx | 1 + .../src/MobileDateRangePicker/MobileDateRangePicker.ts | 1 + .../src/MobileDateTimePicker/MobileDateTimePicker.tsx | 1 + packages/mui-lab/src/MobileTimePicker/MobileTimePicker.tsx | 1 + packages/mui-lab/src/MonthPicker/MonthPicker.tsx | 1 + packages/mui-lab/src/PickersDay/PickersDay.tsx | 1 + packages/mui-lab/src/StaticDatePicker/StaticDatePicker.tsx | 1 + .../src/StaticDateRangePicker/StaticDateRangePicker.ts | 1 + .../src/StaticDateTimePicker/StaticDateTimePicker.tsx | 1 + packages/mui-lab/src/StaticTimePicker/StaticTimePicker.tsx | 1 + packages/mui-lab/src/TimePicker/TimePicker.tsx | 1 + packages/mui-lab/src/TreeItem/TreeItem.tsx | 1 + packages/mui-lab/src/TreeView/TreeView.tsx | 1 + packages/mui-lab/src/YearPicker/YearPicker.tsx | 1 + 30 files changed, 43 insertions(+), 4 deletions(-) diff --git a/docs/pages/blog/lab-tree-view-to-mui-x.md b/docs/pages/blog/lab-tree-view-to-mui-x.md index 102e33ec651261..d7a83cd477f2a9 100644 --- a/docs/pages/blog/lab-tree-view-to-mui-x.md +++ b/docs/pages/blog/lab-tree-view-to-mui-x.md @@ -56,8 +56,14 @@ Follow the [migration steps](/x/migration/migration-tree-view-lab/) by updating ```diff -import TreeView from '@mui/lab/TreeView'; +-import TreeItem from '@mui/lab/TreeItem'; +import { TreeView } from '@mui/x-tree-view/TreeView'; ++import { TreeItem } from '@mui/x-tree-view/TreeItem'; +``` + +or +```diff -import { TreeView, TreeItem } from '@mui/lab'; +import { TreeView, TreeItem } from '@mui/x-tree-view'; ``` diff --git a/packages/mui-lab/src/AdapterDateFns/AdapterDateFns.ts b/packages/mui-lab/src/AdapterDateFns/AdapterDateFns.ts index efbf0968906120..4a9ecc0d63af9c 100644 --- a/packages/mui-lab/src/AdapterDateFns/AdapterDateFns.ts +++ b/packages/mui-lab/src/AdapterDateFns/AdapterDateFns.ts @@ -16,7 +16,9 @@ const warn = () => { } }; -// tslint:disable-next-line:no-unnecessary-class +/** + * @deprecated The AdapterDateFns class was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. + */ export default class AdapterDateFns { constructor() { warn(); diff --git a/packages/mui-lab/src/AdapterDayjs/AdapterDayjs.ts b/packages/mui-lab/src/AdapterDayjs/AdapterDayjs.ts index 82f48c33ebe08a..084d3b419c7737 100644 --- a/packages/mui-lab/src/AdapterDayjs/AdapterDayjs.ts +++ b/packages/mui-lab/src/AdapterDayjs/AdapterDayjs.ts @@ -16,7 +16,9 @@ const warn = () => { } }; -// tslint:disable-next-line:no-unnecessary-class +/** + * @deprecated The AdapterDayjs class was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. + */ export default class AdapterDayjs { constructor() { warn(); diff --git a/packages/mui-lab/src/AdapterLuxon/AdapterLuxon.ts b/packages/mui-lab/src/AdapterLuxon/AdapterLuxon.ts index 10c5227c7ec016..598d911a75ba57 100644 --- a/packages/mui-lab/src/AdapterLuxon/AdapterLuxon.ts +++ b/packages/mui-lab/src/AdapterLuxon/AdapterLuxon.ts @@ -16,7 +16,9 @@ const warn = () => { } }; -// tslint:disable-next-line:no-unnecessary-class +/** + * @deprecated The AdapterLuxon class was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. + */ export default class AdapterLuxon { constructor() { warn(); diff --git a/packages/mui-lab/src/AdapterMoment/AdapterMoment.ts b/packages/mui-lab/src/AdapterMoment/AdapterMoment.ts index 20f9e001eb78d4..09838506f78799 100644 --- a/packages/mui-lab/src/AdapterMoment/AdapterMoment.ts +++ b/packages/mui-lab/src/AdapterMoment/AdapterMoment.ts @@ -16,7 +16,9 @@ const warn = () => { } }; -// tslint:disable-next-line:no-unnecessary-class +/** + * @deprecated The AdapterMoment class was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. + */ export default class AdapterMoment { constructor() { warn(); diff --git a/packages/mui-lab/src/CalendarPicker/CalendarPicker.tsx b/packages/mui-lab/src/CalendarPicker/CalendarPicker.tsx index b33a2734a4d9e0..a48bcf74f0a9bf 100644 --- a/packages/mui-lab/src/CalendarPicker/CalendarPicker.tsx +++ b/packages/mui-lab/src/CalendarPicker/CalendarPicker.tsx @@ -25,6 +25,7 @@ type CalendarPickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The CalendarPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const CalendarPicker = React.forwardRef(function DeprecatedCalendarPicker() { diff --git a/packages/mui-lab/src/CalendarPickerSkeleton/CalendarPickerSkeleton.tsx b/packages/mui-lab/src/CalendarPickerSkeleton/CalendarPickerSkeleton.tsx index afd2a96a55686b..ea35825a54a654 100644 --- a/packages/mui-lab/src/CalendarPickerSkeleton/CalendarPickerSkeleton.tsx +++ b/packages/mui-lab/src/CalendarPickerSkeleton/CalendarPickerSkeleton.tsx @@ -25,6 +25,7 @@ type CalendarPickerSkeletonComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The CalendarPickerSkeleton component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const CalendarPickerSkeleton = React.forwardRef(function DeprecatedCalendarPickerSkeleton() { diff --git a/packages/mui-lab/src/ClockPicker/ClockPicker.tsx b/packages/mui-lab/src/ClockPicker/ClockPicker.tsx index 3a7ff297cce72e..6aec81ba9ba4c1 100644 --- a/packages/mui-lab/src/ClockPicker/ClockPicker.tsx +++ b/packages/mui-lab/src/ClockPicker/ClockPicker.tsx @@ -25,6 +25,7 @@ type ClockPickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The ClockPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const ClockPicker = React.forwardRef(function DeprecatedClockPicker() { diff --git a/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts b/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts index 71d4150d30a1bb..a0e08d393c6d44 100644 --- a/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts +++ b/packages/mui-lab/src/DateRangePicker/DateRangePicker.ts @@ -26,6 +26,7 @@ type DateRangePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DateRangePicker = React.forwardRef(function DeprecatedDateRangePicker() { diff --git a/packages/mui-lab/src/DateRangePickerDay/DateRangePickerDay.ts b/packages/mui-lab/src/DateRangePickerDay/DateRangePickerDay.ts index 96ef5c45913c5b..2b2c3db7ed6912 100644 --- a/packages/mui-lab/src/DateRangePickerDay/DateRangePickerDay.ts +++ b/packages/mui-lab/src/DateRangePickerDay/DateRangePickerDay.ts @@ -25,6 +25,7 @@ type DateRangePickerDayComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DateRangePickerDay component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DateRangePickerDay = React.forwardRef(function DeprecatedDateRangePickerDay() { diff --git a/packages/mui-lab/src/DateTimePicker/DateTimePicker.tsx b/packages/mui-lab/src/DateTimePicker/DateTimePicker.tsx index 81b3ba04c41a52..f6f8ce2f12ac61 100644 --- a/packages/mui-lab/src/DateTimePicker/DateTimePicker.tsx +++ b/packages/mui-lab/src/DateTimePicker/DateTimePicker.tsx @@ -25,6 +25,7 @@ type DateTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DateTimePicker = React.forwardRef(function DeprecatedDateTimePicker() { diff --git a/packages/mui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx b/packages/mui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx index 9e4b0cc6f5eeb8..c1303a7831c480 100644 --- a/packages/mui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx +++ b/packages/mui-lab/src/DesktopDatePicker/DesktopDatePicker.tsx @@ -25,6 +25,7 @@ type DesktopDatePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DesktopDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DesktopDatePicker = React.forwardRef(function DeprecatedDesktopDatePicker() { diff --git a/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts b/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts index 8ee65a6987819c..bc5697f3f97cdd 100644 --- a/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts +++ b/packages/mui-lab/src/DesktopDateRangePicker/DesktopDateRangePicker.ts @@ -26,6 +26,7 @@ type DesktopDateRangePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DesktopDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DesktopDateRangePicker = React.forwardRef(function DeprecatedDesktopDateRangePicker() { diff --git a/packages/mui-lab/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx b/packages/mui-lab/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx index 3f653a16979000..180ba02fa601d0 100644 --- a/packages/mui-lab/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx +++ b/packages/mui-lab/src/DesktopDateTimePicker/DesktopDateTimePicker.tsx @@ -25,6 +25,7 @@ type DesktopDateTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DesktopDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DesktopDateTimePicker = React.forwardRef(function DeprecatedDesktopDateTimePicker() { diff --git a/packages/mui-lab/src/DesktopTimePicker/DesktopTimePicker.tsx b/packages/mui-lab/src/DesktopTimePicker/DesktopTimePicker.tsx index 527063e6298dd4..4b0306748991c2 100644 --- a/packages/mui-lab/src/DesktopTimePicker/DesktopTimePicker.tsx +++ b/packages/mui-lab/src/DesktopTimePicker/DesktopTimePicker.tsx @@ -25,6 +25,7 @@ type DesktopTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The DesktopTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const DesktopTimePicker = React.forwardRef(function DeprecatedDesktopTimePicker() { diff --git a/packages/mui-lab/src/LocalizationProvider/LocalizationProvider.tsx b/packages/mui-lab/src/LocalizationProvider/LocalizationProvider.tsx index 08060259087200..683030386b6de4 100644 --- a/packages/mui-lab/src/LocalizationProvider/LocalizationProvider.tsx +++ b/packages/mui-lab/src/LocalizationProvider/LocalizationProvider.tsx @@ -24,6 +24,7 @@ type LocalizationProviderComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The LocalizationProvider component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const LocalizationProvider = React.forwardRef(function DeprecatedLocalizationProvider() { diff --git a/packages/mui-lab/src/MobileDatePicker/MobileDatePicker.tsx b/packages/mui-lab/src/MobileDatePicker/MobileDatePicker.tsx index 8a13eb1d296ca9..872f495b462a3a 100644 --- a/packages/mui-lab/src/MobileDatePicker/MobileDatePicker.tsx +++ b/packages/mui-lab/src/MobileDatePicker/MobileDatePicker.tsx @@ -25,6 +25,7 @@ type MobileDatePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const MobileDatePicker = React.forwardRef(function DeprecatedMobileDatePicker( diff --git a/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts b/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts index b2eba7d6e7cf02..a5a9768e1e57aa 100644 --- a/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts +++ b/packages/mui-lab/src/MobileDateRangePicker/MobileDateRangePicker.ts @@ -26,6 +26,7 @@ type MobileDateRangePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const MobileDateRangePicker = React.forwardRef(function DeprecatedMobileDateRangePicker() { diff --git a/packages/mui-lab/src/MobileDateTimePicker/MobileDateTimePicker.tsx b/packages/mui-lab/src/MobileDateTimePicker/MobileDateTimePicker.tsx index 76ff20ba78506c..44ae89292cb83a 100644 --- a/packages/mui-lab/src/MobileDateTimePicker/MobileDateTimePicker.tsx +++ b/packages/mui-lab/src/MobileDateTimePicker/MobileDateTimePicker.tsx @@ -25,6 +25,7 @@ type MobileDateTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const MobileDateTimePicker = React.forwardRef(function DeprecatedMobileDateTimePicker() { diff --git a/packages/mui-lab/src/MobileTimePicker/MobileTimePicker.tsx b/packages/mui-lab/src/MobileTimePicker/MobileTimePicker.tsx index 8b445265d2a167..7564ab4a52634e 100644 --- a/packages/mui-lab/src/MobileTimePicker/MobileTimePicker.tsx +++ b/packages/mui-lab/src/MobileTimePicker/MobileTimePicker.tsx @@ -25,6 +25,7 @@ type MobileTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const MobileTimePicker = React.forwardRef(function DeprecatedMobileTimePicker() { diff --git a/packages/mui-lab/src/MonthPicker/MonthPicker.tsx b/packages/mui-lab/src/MonthPicker/MonthPicker.tsx index 6600c52d508041..fc67166a17a2a3 100644 --- a/packages/mui-lab/src/MonthPicker/MonthPicker.tsx +++ b/packages/mui-lab/src/MonthPicker/MonthPicker.tsx @@ -25,6 +25,7 @@ type MonthPickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const MonthPicker = React.forwardRef(function DeprecatedMonthPicker() { diff --git a/packages/mui-lab/src/PickersDay/PickersDay.tsx b/packages/mui-lab/src/PickersDay/PickersDay.tsx index ddcab7b30a9008..663efd6d92aace 100644 --- a/packages/mui-lab/src/PickersDay/PickersDay.tsx +++ b/packages/mui-lab/src/PickersDay/PickersDay.tsx @@ -25,6 +25,7 @@ type PickersDayComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The PickersDay component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const PickersDay = React.forwardRef(function DeprecatedPickersDay() { diff --git a/packages/mui-lab/src/StaticDatePicker/StaticDatePicker.tsx b/packages/mui-lab/src/StaticDatePicker/StaticDatePicker.tsx index 4c14c98fe5d045..cc93623efafca2 100644 --- a/packages/mui-lab/src/StaticDatePicker/StaticDatePicker.tsx +++ b/packages/mui-lab/src/StaticDatePicker/StaticDatePicker.tsx @@ -25,6 +25,7 @@ type StaticDatePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const StaticDatePicker = React.forwardRef(function DeprecatedStaticDatePicker() { diff --git a/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts b/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts index 368696abc4a9d3..ab9e86fe8bcfa0 100644 --- a/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts +++ b/packages/mui-lab/src/StaticDateRangePicker/StaticDateRangePicker.ts @@ -26,6 +26,7 @@ type StaticDateRangePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const StaticDateRangePicker = React.forwardRef(function DeprecatedStaticDateRangePicker() { diff --git a/packages/mui-lab/src/StaticDateTimePicker/StaticDateTimePicker.tsx b/packages/mui-lab/src/StaticDateTimePicker/StaticDateTimePicker.tsx index f2a881ea36b8f9..2f234d6eee87d2 100644 --- a/packages/mui-lab/src/StaticDateTimePicker/StaticDateTimePicker.tsx +++ b/packages/mui-lab/src/StaticDateTimePicker/StaticDateTimePicker.tsx @@ -25,6 +25,7 @@ type StaticDateTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const StaticDateTimePicker = React.forwardRef(function DeprecatedStaticDateTimePicker() { diff --git a/packages/mui-lab/src/StaticTimePicker/StaticTimePicker.tsx b/packages/mui-lab/src/StaticTimePicker/StaticTimePicker.tsx index 4569a9d0223910..1a7dca9a3e9bdf 100644 --- a/packages/mui-lab/src/StaticTimePicker/StaticTimePicker.tsx +++ b/packages/mui-lab/src/StaticTimePicker/StaticTimePicker.tsx @@ -25,6 +25,7 @@ type StaticTimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const StaticTimePicker = React.forwardRef(function DeprecatedStaticTimePicker() { diff --git a/packages/mui-lab/src/TimePicker/TimePicker.tsx b/packages/mui-lab/src/TimePicker/TimePicker.tsx index bf7c00702bf0d7..8f44f244558cdc 100644 --- a/packages/mui-lab/src/TimePicker/TimePicker.tsx +++ b/packages/mui-lab/src/TimePicker/TimePicker.tsx @@ -25,6 +25,7 @@ type TimePickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const TimePicker = React.forwardRef(function DeprecatedTimePicker() { diff --git a/packages/mui-lab/src/TreeItem/TreeItem.tsx b/packages/mui-lab/src/TreeItem/TreeItem.tsx index bc1473aa839931..99a7f7b758c315 100644 --- a/packages/mui-lab/src/TreeItem/TreeItem.tsx +++ b/packages/mui-lab/src/TreeItem/TreeItem.tsx @@ -23,6 +23,7 @@ const warn = () => { }; /** + * @deprecated The TreeItem component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/. * @ignore - do not document. */ const TreeItem = React.forwardRef(function DeprecatedTreeItem( diff --git a/packages/mui-lab/src/TreeView/TreeView.tsx b/packages/mui-lab/src/TreeView/TreeView.tsx index d4a816b2ee3b27..4f1b237244b9f6 100644 --- a/packages/mui-lab/src/TreeView/TreeView.tsx +++ b/packages/mui-lab/src/TreeView/TreeView.tsx @@ -23,6 +23,7 @@ const warn = () => { }; /** + * @deprecated The TreeItem component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-tree-view-to-mui-x/. * @ignore - do not document. */ const TreeView = React.forwardRef(function DeprecatedTreeView( diff --git a/packages/mui-lab/src/YearPicker/YearPicker.tsx b/packages/mui-lab/src/YearPicker/YearPicker.tsx index 3fafa93355ea19..01bbf805e6d3c9 100644 --- a/packages/mui-lab/src/YearPicker/YearPicker.tsx +++ b/packages/mui-lab/src/YearPicker/YearPicker.tsx @@ -25,6 +25,7 @@ type YearPickerComponent = (( ) => JSX.Element) & { propTypes?: any }; /** + * @deprecated The YearPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/. * @ignore - do not document. */ const YearPicker = function DeprecatedYearPicker() {