@mui/lab 7.0.0-beta.10 → 7.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +157 -0
- package/Masonry/Masonry.js +9 -10
- package/TabPanel/TabPanel.js +1 -2
- package/TimelineConnector/TimelineConnector.js +1 -2
- package/TimelineSeparator/TimelineSeparator.js +1 -2
- package/esm/Masonry/Masonry.js +4 -5
- package/esm/TabPanel/TabPanel.js +1 -2
- package/esm/TimelineConnector/TimelineConnector.js +1 -2
- package/esm/TimelineSeparator/TimelineSeparator.js +1 -2
- package/esm/index.js +1 -1
- package/index.js +1 -1
- package/package.json +9 -17
- package/modern/AdapterDateFns/AdapterDateFns.d.ts +0 -6
- package/modern/AdapterDateFns/AdapterDateFns.js +0 -16
- package/modern/AdapterDateFns/index.d.ts +0 -1
- package/modern/AdapterDateFns/index.js +0 -1
- package/modern/AdapterDayjs/AdapterDayjs.d.ts +0 -6
- package/modern/AdapterDayjs/AdapterDayjs.js +0 -16
- package/modern/AdapterDayjs/index.d.ts +0 -1
- package/modern/AdapterDayjs/index.js +0 -1
- package/modern/AdapterLuxon/AdapterLuxon.d.ts +0 -6
- package/modern/AdapterLuxon/AdapterLuxon.js +0 -16
- package/modern/AdapterLuxon/index.d.ts +0 -1
- package/modern/AdapterLuxon/index.js +0 -1
- package/modern/AdapterMoment/AdapterMoment.d.ts +0 -6
- package/modern/AdapterMoment/AdapterMoment.js +0 -16
- package/modern/AdapterMoment/index.d.ts +0 -1
- package/modern/AdapterMoment/index.js +0 -1
- package/modern/CalendarPicker/CalendarPicker.d.ts +0 -15
- package/modern/CalendarPicker/CalendarPicker.js +0 -21
- package/modern/CalendarPicker/index.d.ts +0 -2
- package/modern/CalendarPicker/index.js +0 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +0 -14
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -25
- package/modern/CalendarPickerSkeleton/index.d.ts +0 -2
- package/modern/CalendarPickerSkeleton/index.js +0 -2
- package/modern/ClockPicker/ClockPicker.d.ts +0 -15
- package/modern/ClockPicker/ClockPicker.js +0 -21
- package/modern/ClockPicker/index.d.ts +0 -2
- package/modern/ClockPicker/index.js +0 -2
- package/modern/DatePicker/DatePicker.d.ts +0 -10
- package/modern/DatePicker/DatePicker.js +0 -19
- package/modern/DatePicker/index.d.ts +0 -2
- package/modern/DatePicker/index.js +0 -2
- package/modern/DateRangePicker/DateRangePicker.d.ts +0 -12
- package/modern/DateRangePicker/DateRangePicker.js +0 -18
- package/modern/DateRangePicker/index.d.ts +0 -2
- package/modern/DateRangePicker/index.js +0 -2
- package/modern/DateRangePickerDay/DateRangePickerDay.d.ts +0 -14
- package/modern/DateRangePickerDay/DateRangePickerDay.js +0 -22
- package/modern/DateRangePickerDay/index.d.ts +0 -2
- package/modern/DateRangePickerDay/index.js +0 -2
- package/modern/DateTimePicker/DateTimePicker.d.ts +0 -11
- package/modern/DateTimePicker/DateTimePicker.js +0 -20
- package/modern/DateTimePicker/index.d.ts +0 -2
- package/modern/DateTimePicker/index.js +0 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.d.ts +0 -11
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -20
- package/modern/DesktopDatePicker/index.d.ts +0 -2
- package/modern/DesktopDatePicker/index.js +0 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +0 -11
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -18
- package/modern/DesktopDateRangePicker/index.d.ts +0 -2
- package/modern/DesktopDateRangePicker/index.js +0 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -11
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -20
- package/modern/DesktopDateTimePicker/index.d.ts +0 -2
- package/modern/DesktopDateTimePicker/index.js +0 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.d.ts +0 -11
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -20
- package/modern/DesktopTimePicker/index.d.ts +0 -2
- package/modern/DesktopTimePicker/index.js +0 -2
- package/modern/LoadingButton/LoadingButton.d.ts +0 -3
- package/modern/LoadingButton/LoadingButton.js +0 -23
- package/modern/LoadingButton/index.d.ts +0 -2
- package/modern/LoadingButton/index.js +0 -1
- package/modern/LocalizationProvider/LocalizationProvider.d.ts +0 -11
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -19
- package/modern/LocalizationProvider/index.d.ts +0 -2
- package/modern/LocalizationProvider/index.js +0 -2
- package/modern/Masonry/Masonry.d.ts +0 -62
- package/modern/Masonry/Masonry.js +0 -338
- package/modern/Masonry/index.d.ts +0 -4
- package/modern/Masonry/index.js +0 -3
- package/modern/Masonry/masonryClasses.d.ts +0 -8
- package/modern/Masonry/masonryClasses.js +0 -7
- package/modern/MobileDatePicker/MobileDatePicker.d.ts +0 -11
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -20
- package/modern/MobileDatePicker/index.d.ts +0 -2
- package/modern/MobileDatePicker/index.js +0 -2
- package/modern/MobileDateRangePicker/MobileDateRangePicker.d.ts +0 -11
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -18
- package/modern/MobileDateRangePicker/index.d.ts +0 -2
- package/modern/MobileDateRangePicker/index.js +0 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.d.ts +0 -11
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -20
- package/modern/MobileDateTimePicker/index.d.ts +0 -2
- package/modern/MobileDateTimePicker/index.js +0 -2
- package/modern/MobileTimePicker/MobileTimePicker.d.ts +0 -11
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -20
- package/modern/MobileTimePicker/index.d.ts +0 -2
- package/modern/MobileTimePicker/index.js +0 -2
- package/modern/MonthPicker/MonthPicker.d.ts +0 -14
- package/modern/MonthPicker/MonthPicker.js +0 -25
- package/modern/MonthPicker/index.d.ts +0 -2
- package/modern/MonthPicker/index.js +0 -2
- package/modern/PickersDay/PickersDay.d.ts +0 -14
- package/modern/PickersDay/PickersDay.js +0 -25
- package/modern/PickersDay/index.d.ts +0 -2
- package/modern/PickersDay/index.js +0 -2
- package/modern/StaticDatePicker/StaticDatePicker.d.ts +0 -11
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -20
- package/modern/StaticDatePicker/index.d.ts +0 -2
- package/modern/StaticDatePicker/index.js +0 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.d.ts +0 -11
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -18
- package/modern/StaticDateRangePicker/index.d.ts +0 -2
- package/modern/StaticDateRangePicker/index.js +0 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.d.ts +0 -11
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -20
- package/modern/StaticDateTimePicker/index.d.ts +0 -2
- package/modern/StaticDateTimePicker/index.js +0 -2
- package/modern/StaticTimePicker/StaticTimePicker.d.ts +0 -11
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -20
- package/modern/StaticTimePicker/index.d.ts +0 -2
- package/modern/StaticTimePicker/index.js +0 -2
- package/modern/TabContext/TabContext.d.ts +0 -29
- package/modern/TabContext/TabContext.js +0 -76
- package/modern/TabContext/index.d.ts +0 -2
- package/modern/TabContext/index.js +0 -2
- package/modern/TabList/TabList.d.ts +0 -30
- package/modern/TabList/TabList.js +0 -44
- package/modern/TabList/index.d.ts +0 -2
- package/modern/TabList/index.js +0 -1
- package/modern/TabPanel/TabPanel.d.ts +0 -41
- package/modern/TabPanel/TabPanel.js +0 -96
- package/modern/TabPanel/index.d.ts +0 -4
- package/modern/TabPanel/index.js +0 -3
- package/modern/TabPanel/tabPanelClasses.d.ts +0 -10
- package/modern/TabPanel/tabPanelClasses.js +0 -7
- package/modern/TimePicker/TimePicker.d.ts +0 -11
- package/modern/TimePicker/TimePicker.js +0 -20
- package/modern/TimePicker/index.d.ts +0 -2
- package/modern/TimePicker/index.js +0 -2
- package/modern/Timeline/Timeline.d.ts +0 -24
- package/modern/Timeline/Timeline.js +0 -114
- package/modern/Timeline/Timeline.types.d.ts +0 -27
- package/modern/Timeline/Timeline.types.js +0 -1
- package/modern/Timeline/TimelineContext.d.ts +0 -6
- package/modern/Timeline/TimelineContext.js +0 -12
- package/modern/Timeline/index.d.ts +0 -4
- package/modern/Timeline/index.js +0 -4
- package/modern/Timeline/timelineClasses.d.ts +0 -16
- package/modern/Timeline/timelineClasses.js +0 -7
- package/modern/TimelineConnector/TimelineConnector.d.ts +0 -31
- package/modern/TimelineConnector/TimelineConnector.js +0 -72
- package/modern/TimelineConnector/index.d.ts +0 -4
- package/modern/TimelineConnector/index.js +0 -3
- package/modern/TimelineConnector/timelineConnectorClasses.d.ts +0 -8
- package/modern/TimelineConnector/timelineConnectorClasses.js +0 -7
- package/modern/TimelineContent/TimelineContent.d.ts +0 -32
- package/modern/TimelineContent/TimelineContent.js +0 -89
- package/modern/TimelineContent/index.d.ts +0 -4
- package/modern/TimelineContent/index.js +0 -3
- package/modern/TimelineContent/timelineContentClasses.d.ts +0 -16
- package/modern/TimelineContent/timelineContentClasses.js +0 -7
- package/modern/TimelineDot/TimelineDot.d.ts +0 -44
- package/modern/TimelineDot/TimelineDot.js +0 -123
- package/modern/TimelineDot/index.d.ts +0 -4
- package/modern/TimelineDot/index.js +0 -3
- package/modern/TimelineDot/timelineDotClasses.d.ts +0 -24
- package/modern/TimelineDot/timelineDotClasses.js +0 -7
- package/modern/TimelineItem/TimelineItem.d.ts +0 -35
- package/modern/TimelineItem/TimelineItem.js +0 -128
- package/modern/TimelineItem/index.d.ts +0 -4
- package/modern/TimelineItem/index.js +0 -3
- package/modern/TimelineItem/timelineItemClasses.d.ts +0 -18
- package/modern/TimelineItem/timelineItemClasses.js +0 -7
- package/modern/TimelineOppositeContent/TimelineOppositeContent.d.ts +0 -35
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +0 -91
- package/modern/TimelineOppositeContent/index.d.ts +0 -4
- package/modern/TimelineOppositeContent/index.js +0 -3
- package/modern/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +0 -16
- package/modern/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -7
- package/modern/TimelineSeparator/TimelineSeparator.d.ts +0 -31
- package/modern/TimelineSeparator/TimelineSeparator.js +0 -69
- package/modern/TimelineSeparator/index.d.ts +0 -4
- package/modern/TimelineSeparator/index.js +0 -3
- package/modern/TimelineSeparator/timelineSeparatorClasses.d.ts +0 -8
- package/modern/TimelineSeparator/timelineSeparatorClasses.js +0 -7
- package/modern/TreeItem/TreeItem.d.ts +0 -11
- package/modern/TreeItem/TreeItem.js +0 -19
- package/modern/TreeItem/index.d.ts +0 -2
- package/modern/TreeItem/index.js +0 -2
- package/modern/TreeView/TreeView.d.ts +0 -11
- package/modern/TreeView/TreeView.js +0 -20
- package/modern/TreeView/index.d.ts +0 -2
- package/modern/TreeView/index.js +0 -2
- package/modern/YearPicker/YearPicker.d.ts +0 -15
- package/modern/YearPicker/YearPicker.js +0 -24
- package/modern/YearPicker/index.d.ts +0 -2
- package/modern/YearPicker/index.js +0 -2
- package/modern/index.d.ts +0 -78
- package/modern/index.js +0 -88
- package/modern/internal/convertTimelinePositionToClass.d.ts +0 -1
- package/modern/internal/convertTimelinePositionToClass.js +0 -4
- package/modern/internal/svg-icons/ArrowDropDown.d.ts +0 -7
- package/modern/internal/svg-icons/ArrowDropDown.js +0 -12
- package/modern/internal/svg-icons/ArrowLeft.d.ts +0 -7
- package/modern/internal/svg-icons/ArrowLeft.js +0 -12
- package/modern/internal/svg-icons/ArrowRight.d.ts +0 -7
- package/modern/internal/svg-icons/ArrowRight.js +0 -12
- package/modern/internal/svg-icons/Calendar.d.ts +0 -7
- package/modern/internal/svg-icons/Calendar.js +0 -12
- package/modern/internal/svg-icons/Clock.d.ts +0 -7
- package/modern/internal/svg-icons/Clock.js +0 -16
- package/modern/internal/svg-icons/DateRange.d.ts +0 -7
- package/modern/internal/svg-icons/DateRange.js +0 -12
- package/modern/internal/svg-icons/Pen.d.ts +0 -7
- package/modern/internal/svg-icons/Pen.js +0 -12
- package/modern/internal/svg-icons/Time.d.ts +0 -7
- package/modern/internal/svg-icons/Time.js +0 -16
- package/modern/package.json +0 -1
- package/modern/themeAugmentation/components.d.ts +0 -63
- package/modern/themeAugmentation/components.js +0 -2
- package/modern/themeAugmentation/index.d.ts +0 -3
- package/modern/themeAugmentation/index.js +0 -1
- package/modern/themeAugmentation/overrides.d.ts +0 -28
- package/modern/themeAugmentation/overrides.js +0 -4
- package/modern/themeAugmentation/props.d.ts +0 -28
- package/modern/themeAugmentation/props.js +0 -2
- package/modern/useAutocomplete/index.d.ts +0 -1
- package/modern/useAutocomplete/index.js +0 -1
- package/modern/zero-styled/index.d.ts +0 -1
- package/modern/zero-styled/index.js +0 -2
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
let warnedOnce = false;
|
|
6
|
-
const warn = () => {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDatePicker } from '@mui/x-date-pickers'`", "or `import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
9
|
-
warnedOnce = true;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
const StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default StaticDatePicker;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @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/.
|
|
7
|
-
* @ignore - do not document.
|
|
8
|
-
*/
|
|
9
|
-
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
10
|
-
export default StaticDateRangePicker;
|
|
11
|
-
export type StaticDateRangePickerProps = Record<any, any>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
let warnedOnce = false;
|
|
4
|
-
const warn = () => {
|
|
5
|
-
if (!warnedOnce) {
|
|
6
|
-
console.warn(['MUI: The StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { StaticDateRangePicker } from '@mui/x-date-pickers-pro/StaticDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
7
|
-
warnedOnce = true;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @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/.
|
|
12
|
-
* @ignore - do not document.
|
|
13
|
-
*/
|
|
14
|
-
const StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateRangePicker() {
|
|
15
|
-
warn();
|
|
16
|
-
return null;
|
|
17
|
-
});
|
|
18
|
-
export default StaticDateRangePicker;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @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/.
|
|
7
|
-
* @ignore - do not document.
|
|
8
|
-
*/
|
|
9
|
-
declare const StaticDateTimePicker: StaticDateTimePickerComponent;
|
|
10
|
-
export default StaticDateTimePicker;
|
|
11
|
-
export type StaticDateTimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
let warnedOnce = false;
|
|
6
|
-
const warn = () => {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticDateTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticDateTimePicker } from '@mui/x-date-pickers/StaticDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
9
|
-
warnedOnce = true;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default StaticDateTimePicker;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @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/.
|
|
7
|
-
* @ignore - do not document.
|
|
8
|
-
*/
|
|
9
|
-
declare const StaticTimePicker: StaticTimePickerComponent;
|
|
10
|
-
export default StaticTimePicker;
|
|
11
|
-
export type StaticTimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
let warnedOnce = false;
|
|
6
|
-
const warn = () => {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { StaticTimePicker } from '@mui/x-date-pickers'`", "or `import { StaticTimePicker } from '@mui/x-date-pickers/StaticTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
9
|
-
warnedOnce = true;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
const StaticTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default StaticTimePicker;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface TabContextValue {
|
|
3
|
-
idPrefix: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
export interface TabContextProps {
|
|
7
|
-
/**
|
|
8
|
-
* The content of the component.
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* The value of the currently selected `Tab`.
|
|
13
|
-
*/
|
|
14
|
-
value: string | number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* Demos:
|
|
19
|
-
*
|
|
20
|
-
* - [Tabs](https://mui.com/material-ui/react-tabs/)
|
|
21
|
-
*
|
|
22
|
-
* API:
|
|
23
|
-
*
|
|
24
|
-
* - [TabContext API](https://mui.com/material-ui/api/tab-context/)
|
|
25
|
-
*/
|
|
26
|
-
export default function TabContext(props: TabContextProps): React.JSX.Element;
|
|
27
|
-
export function useTabContext(): TabContextValue | null;
|
|
28
|
-
export function getPanelId(context: TabContextValue, tabValue: string): string;
|
|
29
|
-
export function getTabId(context: TabContextValue, tabValue: string): string;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @type {React.Context<{ idPrefix: string; value: string } | null>}
|
|
8
|
-
*/
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const Context = /*#__PURE__*/React.createContext(null);
|
|
11
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
12
|
-
Context.displayName = 'TabContext';
|
|
13
|
-
}
|
|
14
|
-
function useUniquePrefix() {
|
|
15
|
-
const [id, setId] = React.useState(null);
|
|
16
|
-
React.useEffect(() => {
|
|
17
|
-
setId(`mui-p-${Math.round(Math.random() * 1e5)}`);
|
|
18
|
-
}, []);
|
|
19
|
-
return id;
|
|
20
|
-
}
|
|
21
|
-
export default function TabContext(props) {
|
|
22
|
-
const {
|
|
23
|
-
children,
|
|
24
|
-
value
|
|
25
|
-
} = props;
|
|
26
|
-
const idPrefix = useUniquePrefix();
|
|
27
|
-
const context = React.useMemo(() => {
|
|
28
|
-
return {
|
|
29
|
-
idPrefix,
|
|
30
|
-
value
|
|
31
|
-
};
|
|
32
|
-
}, [idPrefix, value]);
|
|
33
|
-
return /*#__PURE__*/_jsx(Context.Provider, {
|
|
34
|
-
value: context,
|
|
35
|
-
children: children
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
process.env.NODE_ENV !== "production" ? TabContext.propTypes /* remove-proptypes */ = {
|
|
39
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
40
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
41
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
42
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
43
|
-
/**
|
|
44
|
-
* The content of the component.
|
|
45
|
-
*/
|
|
46
|
-
children: PropTypes.node,
|
|
47
|
-
/**
|
|
48
|
-
* The value of the currently selected `Tab`.
|
|
49
|
-
*/
|
|
50
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
51
|
-
} : void 0;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @returns {unknown}
|
|
55
|
-
*/
|
|
56
|
-
export function useTabContext() {
|
|
57
|
-
return React.useContext(Context);
|
|
58
|
-
}
|
|
59
|
-
export function getPanelId(context, value) {
|
|
60
|
-
const {
|
|
61
|
-
idPrefix
|
|
62
|
-
} = context;
|
|
63
|
-
if (idPrefix === null) {
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
return `${context.idPrefix}-P-${value}`;
|
|
67
|
-
}
|
|
68
|
-
export function getTabId(context, value) {
|
|
69
|
-
const {
|
|
70
|
-
idPrefix
|
|
71
|
-
} = context;
|
|
72
|
-
if (idPrefix === null) {
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
return `${context.idPrefix}-T-${value}`;
|
|
76
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TabsTypeMap } from '@mui/material/Tabs';
|
|
3
|
-
import { DistributiveOmit } from '@mui/types';
|
|
4
|
-
import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
|
-
interface TabListOwnProps extends DistributiveOmit<TabsTypeMap['props'], 'children' | 'value'> {
|
|
6
|
-
/**
|
|
7
|
-
* A list of `<Tab />` elements.
|
|
8
|
-
*/
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export interface TabListTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = TabsTypeMap['defaultComponent']> {
|
|
12
|
-
props: AdditionalProps & TabListOwnProps;
|
|
13
|
-
defaultComponent: RootComponent;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* Demos:
|
|
19
|
-
*
|
|
20
|
-
* - [Tabs](https://mui.com/material-ui/react-tabs/)
|
|
21
|
-
*
|
|
22
|
-
* API:
|
|
23
|
-
*
|
|
24
|
-
* - [TabList API](https://mui.com/material-ui/api/tab-list/)
|
|
25
|
-
* - inherits [Tabs API](https://mui.com/material-ui/api/tabs/)
|
|
26
|
-
*/
|
|
27
|
-
declare const TabList: OverridableComponent<TabListTypeMap>;
|
|
28
|
-
export type TabListClassKey = keyof NonNullable<TabListTypeMap['props']['classes']>;
|
|
29
|
-
export type TabListProps<RootComponent extends React.ElementType = TabListTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<TabListTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
30
|
-
export default TabList;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import Tabs from '@mui/material/Tabs';
|
|
6
|
-
import { useTabContext, getTabId, getPanelId } from "../TabContext/index.js";
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
9
|
-
const {
|
|
10
|
-
children: childrenProp,
|
|
11
|
-
...other
|
|
12
|
-
} = props;
|
|
13
|
-
const context = useTabContext();
|
|
14
|
-
if (context === null) {
|
|
15
|
-
throw new TypeError('No TabContext provided');
|
|
16
|
-
}
|
|
17
|
-
const children = React.Children.map(childrenProp, child => {
|
|
18
|
-
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
22
|
-
// SOMEDAY: `Tabs` will set those themselves
|
|
23
|
-
'aria-controls': getPanelId(context, child.props.value),
|
|
24
|
-
id: getTabId(context, child.props.value)
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
return /*#__PURE__*/_jsx(Tabs, {
|
|
28
|
-
...other,
|
|
29
|
-
ref: ref,
|
|
30
|
-
value: context.value,
|
|
31
|
-
children: children
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
35
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
36
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
37
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
38
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
39
|
-
/**
|
|
40
|
-
* A list of `<Tab />` elements.
|
|
41
|
-
*/
|
|
42
|
-
children: PropTypes.node
|
|
43
|
-
} : void 0;
|
|
44
|
-
export default TabList;
|
package/modern/TabList/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./TabList.js";
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { InternalStandardProps as StandardProps } from '@mui/material';
|
|
3
|
-
import { Theme } from '@mui/material/styles';
|
|
4
|
-
import { SxProps } from '@mui/system';
|
|
5
|
-
import { TabPanelClasses } from "./tabPanelClasses.js";
|
|
6
|
-
export interface TabPanelProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
|
|
7
|
-
/**
|
|
8
|
-
* The content of the component.
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* Override or extend the styles applied to the component.
|
|
13
|
-
*/
|
|
14
|
-
classes?: Partial<TabPanelClasses>;
|
|
15
|
-
/**
|
|
16
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
17
|
-
*/
|
|
18
|
-
sx?: SxProps<Theme>;
|
|
19
|
-
/**
|
|
20
|
-
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
21
|
-
* no `value` was passed to `Tab`.
|
|
22
|
-
*/
|
|
23
|
-
value: string | number;
|
|
24
|
-
/**
|
|
25
|
-
* Always keep the children in the DOM.
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
keepMounted?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* Demos:
|
|
34
|
-
*
|
|
35
|
-
* - [Tabs](https://mui.com/material-ui/react-tabs/)
|
|
36
|
-
*
|
|
37
|
-
* API:
|
|
38
|
-
*
|
|
39
|
-
* - [TabPanel API](https://mui.com/material-ui/api/tab-panel/)
|
|
40
|
-
*/
|
|
41
|
-
export default function TabPanel(props: TabPanelProps): React.JSX.Element;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
|
-
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { getTabPanelUtilityClass } from "./tabPanelClasses.js";
|
|
9
|
-
import { getPanelId, getTabId, useTabContext } from "../TabContext/index.js";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const useUtilityClasses = ownerState => {
|
|
12
|
-
const {
|
|
13
|
-
classes,
|
|
14
|
-
hidden
|
|
15
|
-
} = ownerState;
|
|
16
|
-
const slots = {
|
|
17
|
-
root: ['root', hidden && 'hidden']
|
|
18
|
-
};
|
|
19
|
-
return composeClasses(slots, getTabPanelUtilityClass, classes);
|
|
20
|
-
};
|
|
21
|
-
const TabPanelRoot = styled('div', {
|
|
22
|
-
name: 'MuiTabPanel',
|
|
23
|
-
slot: 'Root',
|
|
24
|
-
overridesResolver: (props, styles) => styles.root
|
|
25
|
-
})(({
|
|
26
|
-
theme
|
|
27
|
-
}) => ({
|
|
28
|
-
padding: theme.spacing(3)
|
|
29
|
-
}));
|
|
30
|
-
const TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
31
|
-
const props = useThemeProps({
|
|
32
|
-
props: inProps,
|
|
33
|
-
name: 'MuiTabPanel'
|
|
34
|
-
});
|
|
35
|
-
const {
|
|
36
|
-
children,
|
|
37
|
-
className,
|
|
38
|
-
value,
|
|
39
|
-
keepMounted = false,
|
|
40
|
-
...other
|
|
41
|
-
} = props;
|
|
42
|
-
const ownerState = {
|
|
43
|
-
...props
|
|
44
|
-
};
|
|
45
|
-
const classes = useUtilityClasses(ownerState);
|
|
46
|
-
const context = useTabContext();
|
|
47
|
-
if (context === null) {
|
|
48
|
-
throw new TypeError('No TabContext provided');
|
|
49
|
-
}
|
|
50
|
-
const id = getPanelId(context, value);
|
|
51
|
-
const tabId = getTabId(context, value);
|
|
52
|
-
return /*#__PURE__*/_jsx(TabPanelRoot, {
|
|
53
|
-
"aria-labelledby": tabId,
|
|
54
|
-
className: clsx(classes.root, className),
|
|
55
|
-
hidden: value !== context.value,
|
|
56
|
-
id: id,
|
|
57
|
-
ref: ref,
|
|
58
|
-
role: "tabpanel",
|
|
59
|
-
ownerState: ownerState,
|
|
60
|
-
...other,
|
|
61
|
-
children: (keepMounted || value === context.value) && children
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
process.env.NODE_ENV !== "production" ? TabPanel.propTypes /* remove-proptypes */ = {
|
|
65
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
66
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
67
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
68
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
69
|
-
/**
|
|
70
|
-
* The content of the component.
|
|
71
|
-
*/
|
|
72
|
-
children: PropTypes.node,
|
|
73
|
-
/**
|
|
74
|
-
* Override or extend the styles applied to the component.
|
|
75
|
-
*/
|
|
76
|
-
classes: PropTypes.object,
|
|
77
|
-
/**
|
|
78
|
-
* @ignore
|
|
79
|
-
*/
|
|
80
|
-
className: PropTypes.string,
|
|
81
|
-
/**
|
|
82
|
-
* Always keep the children in the DOM.
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
keepMounted: PropTypes.bool,
|
|
86
|
-
/**
|
|
87
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
88
|
-
*/
|
|
89
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
90
|
-
/**
|
|
91
|
-
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
|
|
92
|
-
* no `value` was passed to `Tab`.
|
|
93
|
-
*/
|
|
94
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
95
|
-
} : void 0;
|
|
96
|
-
export default TabPanel;
|
package/modern/TabPanel/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface TabPanelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root `div` element if `hidden={true}`. */
|
|
5
|
-
hidden: string;
|
|
6
|
-
}
|
|
7
|
-
export type TabPanelClassKey = keyof TabPanelClasses;
|
|
8
|
-
export declare function getTabPanelUtilityClass(slot: string): string;
|
|
9
|
-
declare const tabPanelClasses: TabPanelClasses;
|
|
10
|
-
export default tabPanelClasses;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
3
|
-
export function getTabPanelUtilityClass(slot) {
|
|
4
|
-
return generateUtilityClass('MuiTabPanel', slot);
|
|
5
|
-
}
|
|
6
|
-
const tabPanelClasses = generateUtilityClasses('MuiTabPanel', ['root', 'hidden']);
|
|
7
|
-
export default tabPanelClasses;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @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/.
|
|
7
|
-
* @ignore - do not document.
|
|
8
|
-
*/
|
|
9
|
-
declare const TimePicker: TimePickerComponent;
|
|
10
|
-
export default TimePicker;
|
|
11
|
-
export type TimePickerProps<TDate> = Record<any, any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
let warnedOnce = false;
|
|
6
|
-
const warn = () => {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The TimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { TimePicker } from '@mui/x-date-pickers'`", "or `import { TimePicker } from '@mui/x-date-pickers/TimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
9
|
-
warnedOnce = true;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* @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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
const TimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default TimePicker;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TimelineProps } from "./Timeline.types.js";
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* Demos:
|
|
6
|
-
*
|
|
7
|
-
* - [Timeline](https://mui.com/material-ui/react-timeline/)
|
|
8
|
-
*
|
|
9
|
-
* API:
|
|
10
|
-
*
|
|
11
|
-
* - [Timeline API](https://mui.com/material-ui/api/timeline/)
|
|
12
|
-
*/
|
|
13
|
-
declare const Timeline: React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLUListElement>>;
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* Demos:
|
|
17
|
-
*
|
|
18
|
-
* - [Timeline](https://mui.com/components/timeline/)
|
|
19
|
-
*
|
|
20
|
-
* API:
|
|
21
|
-
*
|
|
22
|
-
* - [Timeline API](https://mui.com/api/timeline/)
|
|
23
|
-
*/
|
|
24
|
-
export default Timeline;
|