@mui/lab 6.0.0-alpha.1 → 6.0.0-alpha.3
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 +114 -2
- package/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/legacy/AdapterDateFns/AdapterDateFns.js +0 -18
- package/legacy/AdapterDateFns/index.js +0 -1
- package/legacy/AdapterDayjs/AdapterDayjs.js +0 -18
- package/legacy/AdapterDayjs/index.js +0 -1
- package/legacy/AdapterLuxon/AdapterLuxon.js +0 -18
- package/legacy/AdapterLuxon/index.js +0 -1
- package/legacy/AdapterMoment/AdapterMoment.js +0 -18
- package/legacy/AdapterMoment/index.js +0 -1
- package/legacy/Alert/Alert.js +0 -20
- package/legacy/Alert/index.js +0 -1
- package/legacy/AlertTitle/AlertTitle.js +0 -20
- package/legacy/AlertTitle/index.js +0 -1
- package/legacy/Autocomplete/Autocomplete.js +0 -20
- package/legacy/Autocomplete/index.js +0 -1
- package/legacy/AvatarGroup/AvatarGroup.js +0 -20
- package/legacy/AvatarGroup/index.js +0 -1
- package/legacy/CalendarPicker/CalendarPicker.js +0 -21
- package/legacy/CalendarPicker/index.js +0 -2
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -25
- package/legacy/CalendarPickerSkeleton/index.js +0 -2
- package/legacy/ClockPicker/ClockPicker.js +0 -21
- package/legacy/ClockPicker/index.js +0 -2
- package/legacy/DatePicker/DatePicker.js +0 -19
- package/legacy/DatePicker/index.js +0 -2
- package/legacy/DateRangePicker/DateRangePicker.js +0 -18
- package/legacy/DateRangePicker/index.js +0 -2
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -22
- package/legacy/DateRangePickerDay/index.js +0 -2
- package/legacy/DateTimePicker/DateTimePicker.js +0 -20
- package/legacy/DateTimePicker/index.js +0 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -20
- package/legacy/DesktopDatePicker/index.js +0 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -18
- package/legacy/DesktopDateRangePicker/index.js +0 -2
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -20
- package/legacy/DesktopDateTimePicker/index.js +0 -2
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -20
- package/legacy/DesktopTimePicker/index.js +0 -2
- package/legacy/LoadingButton/LoadingButton.js +0 -213
- package/legacy/LoadingButton/index.js +0 -3
- package/legacy/LoadingButton/loadingButtonClasses.js +0 -7
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -19
- package/legacy/LocalizationProvider/index.js +0 -2
- package/legacy/Masonry/Masonry.js +0 -339
- package/legacy/Masonry/index.js +0 -3
- package/legacy/Masonry/masonryClasses.js +0 -7
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -20
- package/legacy/MobileDatePicker/index.js +0 -2
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -18
- package/legacy/MobileDateRangePicker/index.js +0 -2
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -20
- package/legacy/MobileDateTimePicker/index.js +0 -2
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -20
- package/legacy/MobileTimePicker/index.js +0 -2
- package/legacy/MonthPicker/MonthPicker.js +0 -25
- package/legacy/MonthPicker/index.js +0 -2
- package/legacy/Pagination/Pagination.js +0 -20
- package/legacy/Pagination/index.js +0 -2
- package/legacy/Pagination/usePagination.js +0 -3
- package/legacy/PaginationItem/PaginationItem.js +0 -20
- package/legacy/PaginationItem/index.js +0 -1
- package/legacy/PickersDay/PickersDay.js +0 -25
- package/legacy/PickersDay/index.js +0 -2
- package/legacy/Rating/Rating.js +0 -20
- package/legacy/Rating/index.js +0 -1
- package/legacy/Skeleton/Skeleton.js +0 -20
- package/legacy/Skeleton/index.js +0 -1
- package/legacy/SpeedDial/SpeedDial.js +0 -20
- package/legacy/SpeedDial/index.js +0 -1
- package/legacy/SpeedDialAction/SpeedDialAction.js +0 -20
- package/legacy/SpeedDialAction/index.js +0 -1
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +0 -20
- package/legacy/SpeedDialIcon/index.js +0 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -20
- package/legacy/StaticDatePicker/index.js +0 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -18
- package/legacy/StaticDateRangePicker/index.js +0 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -20
- package/legacy/StaticDateTimePicker/index.js +0 -2
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -20
- package/legacy/StaticTimePicker/index.js +0 -2
- package/legacy/TabContext/TabContext.js +0 -72
- package/legacy/TabContext/index.js +0 -2
- package/legacy/TabList/TabList.js +0 -43
- package/legacy/TabList/index.js +0 -1
- package/legacy/TabPanel/TabPanel.js +0 -96
- package/legacy/TabPanel/index.js +0 -3
- package/legacy/TabPanel/tabPanelClasses.js +0 -7
- package/legacy/TimePicker/TimePicker.js +0 -20
- package/legacy/TimePicker/index.js +0 -2
- package/legacy/Timeline/Timeline.js +0 -113
- package/legacy/Timeline/Timeline.types.js +0 -1
- package/legacy/Timeline/TimelineContext.js +0 -10
- package/legacy/Timeline/index.js +0 -4
- package/legacy/Timeline/timelineClasses.js +0 -7
- package/legacy/TimelineConnector/TimelineConnector.js +0 -70
- package/legacy/TimelineConnector/index.js +0 -3
- package/legacy/TimelineConnector/timelineConnectorClasses.js +0 -7
- package/legacy/TimelineContent/TimelineContent.js +0 -82
- package/legacy/TimelineContent/index.js +0 -3
- package/legacy/TimelineContent/timelineContentClasses.js +0 -7
- package/legacy/TimelineDot/TimelineDot.js +0 -112
- package/legacy/TimelineDot/index.js +0 -3
- package/legacy/TimelineDot/timelineDotClasses.js +0 -7
- package/legacy/TimelineItem/TimelineItem.js +0 -118
- package/legacy/TimelineItem/index.js +0 -3
- package/legacy/TimelineItem/timelineItemClasses.js +0 -7
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +0 -84
- package/legacy/TimelineOppositeContent/index.js +0 -3
- package/legacy/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -7
- package/legacy/TimelineSeparator/TimelineSeparator.js +0 -68
- package/legacy/TimelineSeparator/index.js +0 -3
- package/legacy/TimelineSeparator/timelineSeparatorClasses.js +0 -7
- package/legacy/ToggleButton/ToggleButton.js +0 -20
- package/legacy/ToggleButton/index.js +0 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +0 -20
- package/legacy/ToggleButtonGroup/index.js +0 -1
- package/legacy/TreeItem/TreeItem.js +0 -19
- package/legacy/TreeItem/index.js +0 -2
- package/legacy/TreeView/TreeView.js +0 -20
- package/legacy/TreeView/index.js +0 -2
- package/legacy/YearPicker/YearPicker.js +0 -24
- package/legacy/YearPicker/index.js +0 -2
- package/legacy/index.js +0 -113
- package/legacy/internal/convertTimelinePositionToClass.js +0 -4
- package/legacy/internal/svg-icons/ArrowDropDown.js +0 -12
- package/legacy/internal/svg-icons/ArrowLeft.js +0 -12
- package/legacy/internal/svg-icons/ArrowRight.js +0 -12
- package/legacy/internal/svg-icons/Calendar.js +0 -12
- package/legacy/internal/svg-icons/Clock.js +0 -16
- package/legacy/internal/svg-icons/DateRange.js +0 -12
- package/legacy/internal/svg-icons/Pen.js +0 -12
- package/legacy/internal/svg-icons/Time.js +0 -16
- package/legacy/themeAugmentation/index.js +0 -1
- package/legacy/useAutocomplete/index.js +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
var warnedOnce = false;
|
|
4
|
-
var warn = function warn() {
|
|
5
|
-
if (!warnedOnce) {
|
|
6
|
-
console.warn(['MUI: The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker'`", '', '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 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/.
|
|
12
|
-
* @ignore - do not document.
|
|
13
|
-
*/
|
|
14
|
-
var MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateRangePicker() {
|
|
15
|
-
warn();
|
|
16
|
-
return null;
|
|
17
|
-
});
|
|
18
|
-
export default MobileDateRangePicker;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function warn() {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileDateTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileDateTimePicker } from '@mui/x-date-pickers/MobileDateTimePicker'`", '', '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 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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
var MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default MobileDateTimePicker;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function warn() {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileTimePicker } from '@mui/x-date-pickers'`", "or `import { MobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker'`", '', '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 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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
var MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default MobileTimePicker;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function warn() {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MonthPicker } from '@mui/x-date-pickers'`", "or `import { MonthPicker } from '@mui/x-date-pickers/MonthPicker'`", '', '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 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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
var MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default MonthPicker;
|
|
21
|
-
export var monthPickerClasses = {};
|
|
22
|
-
export var getMonthPickerUtilityClass = function getMonthPickerUtilityClass(slot) {
|
|
23
|
-
warn();
|
|
24
|
-
return '';
|
|
25
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import Pagination from '@mui/material/Pagination';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The Pagination component was moved from the lab to the core.', '', "You should use `import { Pagination } from '@mui/material'`", "or `import Pagination from '@mui/material/Pagination'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Pagination, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import PaginationItem from '@mui/material/PaginationItem';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The PaginationItem component was moved from the lab to the core.', '', "You should use `import { PaginationItem } from '@mui/material'`", "or `import PaginationItem from '@mui/material/PaginationItem'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(PaginationItem, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './PaginationItem';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function warn() {
|
|
7
|
-
if (!warnedOnce) {
|
|
8
|
-
console.warn(['MUI: The PickersDay component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { PickersDay } from '@mui/x-date-pickers'`", "or `import { PickersDay } from '@mui/x-date-pickers/PickersDay'`", '', '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 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/.
|
|
14
|
-
* @ignore - do not document.
|
|
15
|
-
*/
|
|
16
|
-
var PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default PickersDay;
|
|
21
|
-
export var pickersDayClasses = {};
|
|
22
|
-
export var getPickersDayUtilityClass = function getPickersDayUtilityClass(slot) {
|
|
23
|
-
warn();
|
|
24
|
-
return '';
|
|
25
|
-
};
|
package/legacy/Rating/Rating.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import Rating from '@mui/material/Rating';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The Rating component was moved from the lab to the core.', '', "You should use `import { Rating } from '@mui/material'`", "or `import Rating from '@mui/material/Rating'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Rating, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
package/legacy/Rating/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Rating';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import Skeleton from '@mui/material/Skeleton';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedSkeleton(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The Skeleton component was moved from the lab to the core.', '', "You should use `import { Skeleton } from '@mui/material'`", "or `import Skeleton from '@mui/material/Skeleton'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(Skeleton, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
package/legacy/Skeleton/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Skeleton';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import SpeedDial from '@mui/material/SpeedDial';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDial(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The SpeedDial component was moved from the lab to the core.', '', "You should use `import { SpeedDial } from '@mui/material'`", "or `import SpeedDial from '@mui/material/SpeedDial'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDial, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SpeedDial';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import SpeedDialAction from '@mui/material/SpeedDialAction';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialAction(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The SpeedDialAction component was moved from the lab to the core.', '', "You should use `import { SpeedDialAction } from '@mui/material'`", "or `import SpeedDialAction from '@mui/material/SpeedDialAction'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialAction, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SpeedDialAction';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import SpeedDialIcon from '@mui/material/SpeedDialIcon';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
var warnedOnce = false;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @ignore - do not document.
|
|
11
|
-
*/
|
|
12
|
-
export default /*#__PURE__*/React.forwardRef(function DeprecatedSpeedDialIcon(props, ref) {
|
|
13
|
-
if (!warnedOnce) {
|
|
14
|
-
console.warn(['MUI: The SpeedDialIcon component was moved from the lab to the core.', '', "You should use `import { SpeedDialIcon } from '@mui/material'`", "or `import SpeedDialIcon from '@mui/material/SpeedDialIcon'`"].join('\n'));
|
|
15
|
-
warnedOnce = true;
|
|
16
|
-
}
|
|
17
|
-
return /*#__PURE__*/_jsx(SpeedDialIcon, _extends({
|
|
18
|
-
ref: ref
|
|
19
|
-
}, props));
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SpeedDialIcon';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function 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
|
-
var StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default StaticDatePicker;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
var warnedOnce = false;
|
|
4
|
-
var warn = function 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
|
-
var StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateRangePicker() {
|
|
15
|
-
warn();
|
|
16
|
-
return null;
|
|
17
|
-
});
|
|
18
|
-
export default StaticDateRangePicker;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function 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
|
-
var StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default StaticDateTimePicker;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
var warnedOnce = false;
|
|
6
|
-
var warn = function 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
|
-
var StaticTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticTimePicker() {
|
|
17
|
-
warn();
|
|
18
|
-
return null;
|
|
19
|
-
});
|
|
20
|
-
export default StaticTimePicker;
|
|
@@ -1,72 +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
|
-
var Context = /*#__PURE__*/React.createContext(null);
|
|
11
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
12
|
-
Context.displayName = 'TabContext';
|
|
13
|
-
}
|
|
14
|
-
function useUniquePrefix() {
|
|
15
|
-
var _React$useState = React.useState(null),
|
|
16
|
-
id = _React$useState[0],
|
|
17
|
-
setId = _React$useState[1];
|
|
18
|
-
React.useEffect(function () {
|
|
19
|
-
setId("mui-p-".concat(Math.round(Math.random() * 1e5)));
|
|
20
|
-
}, []);
|
|
21
|
-
return id;
|
|
22
|
-
}
|
|
23
|
-
export default function TabContext(props) {
|
|
24
|
-
var children = props.children,
|
|
25
|
-
value = props.value;
|
|
26
|
-
var idPrefix = useUniquePrefix();
|
|
27
|
-
var context = React.useMemo(function () {
|
|
28
|
-
return {
|
|
29
|
-
idPrefix: idPrefix,
|
|
30
|
-
value: 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
|
-
var idPrefix = context.idPrefix;
|
|
61
|
-
if (idPrefix === null) {
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
return "".concat(context.idPrefix, "-P-").concat(value);
|
|
65
|
-
}
|
|
66
|
-
export function getTabId(context, value) {
|
|
67
|
-
var idPrefix = context.idPrefix;
|
|
68
|
-
if (idPrefix === null) {
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
return "".concat(context.idPrefix, "-T-").concat(value);
|
|
72
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import Tabs from '@mui/material/Tabs';
|
|
8
|
-
import { useTabContext, getTabId, getPanelId } from '../TabContext';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
var TabList = /*#__PURE__*/React.forwardRef(function TabList(props, ref) {
|
|
11
|
-
var childrenProp = props.children,
|
|
12
|
-
other = _objectWithoutProperties(props, ["children"]);
|
|
13
|
-
var context = useTabContext();
|
|
14
|
-
if (context === null) {
|
|
15
|
-
throw new TypeError('No TabContext provided');
|
|
16
|
-
}
|
|
17
|
-
var children = React.Children.map(childrenProp, function (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, _extends({}, other, {
|
|
28
|
-
ref: ref,
|
|
29
|
-
value: context.value,
|
|
30
|
-
children: children
|
|
31
|
-
}));
|
|
32
|
-
});
|
|
33
|
-
process.env.NODE_ENV !== "production" ? TabList.propTypes /* remove-proptypes */ = {
|
|
34
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
35
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
36
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
37
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
38
|
-
/**
|
|
39
|
-
* A list of `<Tab />` elements.
|
|
40
|
-
*/
|
|
41
|
-
children: PropTypes.node
|
|
42
|
-
} : void 0;
|
|
43
|
-
export default TabList;
|
package/legacy/TabList/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TabList';
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
import clsx from 'clsx';
|
|
8
|
-
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
10
|
-
import { getTabPanelUtilityClass } from './tabPanelClasses';
|
|
11
|
-
import { getPanelId, getTabId, useTabContext } from '../TabContext';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
14
|
-
var classes = ownerState.classes,
|
|
15
|
-
hidden = ownerState.hidden;
|
|
16
|
-
var slots = {
|
|
17
|
-
root: ['root', hidden && 'hidden']
|
|
18
|
-
};
|
|
19
|
-
return composeClasses(slots, getTabPanelUtilityClass, classes);
|
|
20
|
-
};
|
|
21
|
-
var TabPanelRoot = styled('div', {
|
|
22
|
-
name: 'MuiTabPanel',
|
|
23
|
-
slot: 'Root',
|
|
24
|
-
overridesResolver: function overridesResolver(props, styles) {
|
|
25
|
-
return styles.root;
|
|
26
|
-
}
|
|
27
|
-
})(function (_ref) {
|
|
28
|
-
var theme = _ref.theme;
|
|
29
|
-
return {
|
|
30
|
-
padding: theme.spacing(3)
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
var TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(inProps, ref) {
|
|
34
|
-
var props = useThemeProps({
|
|
35
|
-
props: inProps,
|
|
36
|
-
name: 'MuiTabPanel'
|
|
37
|
-
});
|
|
38
|
-
var children = props.children,
|
|
39
|
-
className = props.className,
|
|
40
|
-
value = props.value,
|
|
41
|
-
_props$keepMounted = props.keepMounted,
|
|
42
|
-
keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted,
|
|
43
|
-
other = _objectWithoutProperties(props, ["children", "className", "value", "keepMounted"]);
|
|
44
|
-
var ownerState = _extends({}, props);
|
|
45
|
-
var classes = useUtilityClasses(ownerState);
|
|
46
|
-
var context = useTabContext();
|
|
47
|
-
if (context === null) {
|
|
48
|
-
throw new TypeError('No TabContext provided');
|
|
49
|
-
}
|
|
50
|
-
var id = getPanelId(context, value);
|
|
51
|
-
var tabId = getTabId(context, value);
|
|
52
|
-
return /*#__PURE__*/_jsx(TabPanelRoot, _extends({
|
|
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.string.isRequired
|
|
95
|
-
} : void 0;
|
|
96
|
-
export default TabPanel;
|
package/legacy/TabPanel/index.js
DELETED