@mui/lab 5.0.0-alpha.107 → 5.0.0-alpha.109
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/AdapterDateFns/AdapterDateFns.js +2 -4
- package/AdapterDayjs/AdapterDayjs.js +2 -4
- package/AdapterLuxon/AdapterLuxon.js +2 -4
- package/AdapterMoment/AdapterMoment.js +2 -4
- package/Alert/Alert.js +1 -2
- package/AlertTitle/AlertTitle.js +1 -2
- package/Autocomplete/Autocomplete.js +1 -2
- package/AvatarGroup/AvatarGroup.js +1 -2
- package/CHANGELOG.md +132 -2
- package/CalendarPicker/CalendarPicker.js +0 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/ClockPicker/ClockPicker.js +0 -2
- package/DatePicker/DatePicker.js +0 -2
- package/DateRangePicker/DateRangePicker.js +0 -2
- package/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/DateTimePicker/DateTimePicker.js +0 -2
- package/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/LoadingButton/LoadingButton.js +13 -34
- package/LocalizationProvider/LocalizationProvider.js +0 -2
- package/Masonry/Masonry.js +27 -68
- package/MobileDatePicker/MobileDatePicker.js +0 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/MobileTimePicker/MobileTimePicker.js +0 -2
- package/MonthPicker/MonthPicker.js +0 -2
- package/Pagination/Pagination.js +1 -2
- package/PaginationItem/PaginationItem.js +1 -2
- package/PickersDay/PickersDay.js +0 -2
- package/Rating/Rating.js +1 -2
- package/Skeleton/Skeleton.js +1 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.js +1 -2
- package/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/StaticDatePicker/StaticDatePicker.js +0 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/StaticTimePicker/StaticTimePicker.js +0 -2
- package/TabContext/TabContext.js +3 -14
- package/TabList/TabList.js +4 -11
- package/TabPanel/TabPanel.js +6 -20
- package/TimePicker/TimePicker.js +0 -2
- package/Timeline/Timeline.js +9 -20
- package/Timeline/TimelineContext.js +1 -3
- package/TimelineConnector/TimelineConnector.js +4 -14
- package/TimelineContent/TimelineContent.js +4 -16
- package/TimelineDot/TimelineDot.js +8 -25
- package/TimelineItem/TimelineItem.js +5 -18
- package/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/TimelineSeparator/TimelineSeparator.js +4 -14
- package/ToggleButton/ToggleButton.js +1 -2
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/TreeItem/TreeItem.js +19 -58
- package/TreeItem/TreeItemContent.js +12 -28
- package/TreeItem/useTreeItem.js +2 -8
- package/TreeView/TreeView.js +53 -197
- package/TreeView/TreeViewContext.js +1 -3
- package/TreeView/descendants.js +19 -31
- package/YearPicker/YearPicker.js +1 -3
- package/index.js +3 -2
- package/internal/svg-icons/ArrowDropDown.js +1 -1
- package/internal/svg-icons/ArrowLeft.js +1 -1
- package/internal/svg-icons/ArrowRight.js +1 -1
- package/internal/svg-icons/Calendar.js +1 -1
- package/internal/svg-icons/Clock.js +1 -1
- package/internal/svg-icons/DateRange.js +1 -1
- package/internal/svg-icons/Pen.js +1 -1
- package/internal/svg-icons/Time.js +1 -1
- package/legacy/AdapterDateFns/AdapterDateFns.js +2 -5
- package/legacy/AdapterDayjs/AdapterDayjs.js +2 -5
- package/legacy/AdapterLuxon/AdapterLuxon.js +2 -5
- package/legacy/AdapterMoment/AdapterMoment.js +2 -5
- package/legacy/Alert/Alert.js +1 -2
- package/legacy/AlertTitle/AlertTitle.js +1 -2
- package/legacy/Autocomplete/Autocomplete.js +1 -2
- package/legacy/AvatarGroup/AvatarGroup.js +1 -2
- package/legacy/CalendarPicker/CalendarPicker.js +0 -2
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/legacy/ClockPicker/ClockPicker.js +0 -2
- package/legacy/DatePicker/DatePicker.js +0 -2
- package/legacy/DateRangePicker/DateRangePicker.js +0 -2
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/legacy/DateTimePicker/DateTimePicker.js +0 -2
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/legacy/LoadingButton/LoadingButton.js +19 -40
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -2
- package/legacy/Masonry/Masonry.js +33 -77
- package/legacy/MobileDatePicker/MobileDatePicker.js +0 -2
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/legacy/MobileTimePicker/MobileTimePicker.js +0 -2
- package/legacy/MonthPicker/MonthPicker.js +0 -2
- package/legacy/Pagination/Pagination.js +1 -2
- package/legacy/PaginationItem/PaginationItem.js +1 -2
- package/legacy/PickersDay/PickersDay.js +0 -2
- package/legacy/Rating/Rating.js +1 -2
- package/legacy/Skeleton/Skeleton.js +1 -2
- package/legacy/SpeedDial/SpeedDial.js +1 -2
- package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/legacy/StaticDatePicker/StaticDatePicker.js +0 -2
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/legacy/StaticTimePicker/StaticTimePicker.js +0 -2
- package/legacy/TabContext/TabContext.js +6 -18
- package/legacy/TabList/TabList.js +2 -9
- package/legacy/TabPanel/TabPanel.js +4 -18
- package/legacy/TimePicker/TimePicker.js +0 -2
- package/legacy/Timeline/Timeline.js +9 -20
- package/legacy/Timeline/TimelineContext.js +1 -3
- package/legacy/TimelineConnector/TimelineConnector.js +2 -12
- package/legacy/TimelineContent/TimelineContent.js +4 -16
- package/legacy/TimelineDot/TimelineDot.js +11 -28
- package/legacy/TimelineItem/TimelineItem.js +6 -21
- package/legacy/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/legacy/TimelineSeparator/TimelineSeparator.js +2 -12
- package/legacy/ToggleButton/ToggleButton.js +1 -2
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/legacy/TreeItem/TreeItem.js +37 -81
- package/legacy/TreeItem/TreeItemContent.js +17 -34
- package/legacy/TreeItem/useTreeItem.js +12 -19
- package/legacy/TreeView/TreeView.js +85 -238
- package/legacy/TreeView/TreeViewContext.js +1 -3
- package/legacy/TreeView/descendants.js +26 -44
- package/legacy/YearPicker/YearPicker.js +1 -3
- package/legacy/index.js +3 -2
- package/legacy/internal/svg-icons/ArrowDropDown.js +1 -1
- package/legacy/internal/svg-icons/ArrowLeft.js +1 -1
- package/legacy/internal/svg-icons/ArrowRight.js +1 -1
- package/legacy/internal/svg-icons/Calendar.js +1 -1
- package/legacy/internal/svg-icons/Clock.js +1 -1
- package/legacy/internal/svg-icons/DateRange.js +1 -1
- package/legacy/internal/svg-icons/Pen.js +1 -1
- package/legacy/internal/svg-icons/Time.js +1 -1
- package/modern/AdapterDateFns/AdapterDateFns.js +2 -4
- package/modern/AdapterDayjs/AdapterDayjs.js +2 -4
- package/modern/AdapterLuxon/AdapterLuxon.js +2 -4
- package/modern/AdapterMoment/AdapterMoment.js +2 -4
- package/modern/Alert/Alert.js +1 -2
- package/modern/AlertTitle/AlertTitle.js +1 -2
- package/modern/Autocomplete/Autocomplete.js +1 -2
- package/modern/AvatarGroup/AvatarGroup.js +1 -2
- package/modern/CalendarPicker/CalendarPicker.js +0 -2
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +0 -2
- package/modern/ClockPicker/ClockPicker.js +0 -2
- package/modern/DatePicker/DatePicker.js +0 -2
- package/modern/DateRangePicker/DateRangePicker.js +0 -2
- package/modern/DateRangePickerDay/DateRangePickerDay.js +0 -2
- package/modern/DateTimePicker/DateTimePicker.js +0 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +0 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +0 -2
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +0 -2
- package/modern/LoadingButton/LoadingButton.js +13 -35
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -2
- package/modern/Masonry/Masonry.js +27 -68
- package/modern/MobileDatePicker/MobileDatePicker.js +0 -2
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +0 -2
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +0 -2
- package/modern/MobileTimePicker/MobileTimePicker.js +0 -2
- package/modern/MonthPicker/MonthPicker.js +0 -2
- package/modern/Pagination/Pagination.js +1 -2
- package/modern/PaginationItem/PaginationItem.js +1 -2
- package/modern/PickersDay/PickersDay.js +0 -2
- package/modern/Rating/Rating.js +1 -2
- package/modern/Skeleton/Skeleton.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
- package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +0 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +0 -2
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +0 -2
- package/modern/StaticTimePicker/StaticTimePicker.js +0 -2
- package/modern/TabContext/TabContext.js +3 -14
- package/modern/TabList/TabList.js +4 -11
- package/modern/TabPanel/TabPanel.js +6 -20
- package/modern/TimePicker/TimePicker.js +0 -2
- package/modern/Timeline/Timeline.js +9 -20
- package/modern/Timeline/TimelineContext.js +1 -3
- package/modern/TimelineConnector/TimelineConnector.js +4 -14
- package/modern/TimelineContent/TimelineContent.js +4 -16
- package/modern/TimelineDot/TimelineDot.js +8 -25
- package/modern/TimelineItem/TimelineItem.js +5 -18
- package/modern/TimelineOppositeContent/TimelineOppositeContent.js +4 -16
- package/modern/TimelineSeparator/TimelineSeparator.js +4 -14
- package/modern/ToggleButton/ToggleButton.js +1 -2
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -2
- package/modern/TreeItem/TreeItem.js +19 -58
- package/modern/TreeItem/TreeItemContent.js +12 -28
- package/modern/TreeItem/useTreeItem.js +2 -8
- package/modern/TreeView/TreeView.js +53 -197
- package/modern/TreeView/TreeViewContext.js +1 -3
- package/modern/TreeView/descendants.js +19 -31
- package/modern/YearPicker/YearPicker.js +1 -3
- package/modern/index.js +3 -2
- package/modern/internal/svg-icons/ArrowDropDown.js +1 -1
- package/modern/internal/svg-icons/ArrowLeft.js +1 -1
- package/modern/internal/svg-icons/ArrowRight.js +1 -1
- package/modern/internal/svg-icons/Calendar.js +1 -1
- package/modern/internal/svg-icons/Clock.js +1 -1
- package/modern/internal/svg-icons/DateRange.js +1 -1
- package/modern/internal/svg-icons/Pen.js +1 -1
- package/modern/internal/svg-icons/Time.js +1 -1
- package/node/AdapterDateFns/AdapterDateFns.js +2 -5
- package/node/AdapterDateFns/index.js +0 -2
- package/node/AdapterDayjs/AdapterDayjs.js +2 -5
- package/node/AdapterDayjs/index.js +0 -2
- package/node/AdapterLuxon/AdapterLuxon.js +2 -5
- package/node/AdapterLuxon/index.js +0 -2
- package/node/AdapterMoment/AdapterMoment.js +2 -5
- package/node/AdapterMoment/index.js +0 -2
- package/node/Alert/Alert.js +1 -11
- package/node/Alert/index.js +0 -2
- package/node/AlertTitle/AlertTitle.js +1 -11
- package/node/AlertTitle/index.js +0 -2
- package/node/Autocomplete/Autocomplete.js +1 -11
- package/node/Autocomplete/index.js +0 -2
- package/node/AvatarGroup/AvatarGroup.js +1 -11
- package/node/AvatarGroup/index.js +0 -2
- package/node/CalendarPicker/CalendarPicker.js +1 -6
- package/node/CalendarPicker/index.js +0 -4
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -8
- package/node/CalendarPickerSkeleton/index.js +0 -4
- package/node/ClockPicker/ClockPicker.js +1 -6
- package/node/ClockPicker/index.js +0 -4
- package/node/DatePicker/DatePicker.js +1 -6
- package/node/DatePicker/index.js +0 -4
- package/node/DateRangePicker/DateRangePicker.js +1 -6
- package/node/DateRangePicker/index.js +0 -4
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -8
- package/node/DateRangePickerDay/index.js +0 -4
- package/node/DateTimePicker/DateTimePicker.js +1 -6
- package/node/DateTimePicker/index.js +0 -4
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -6
- package/node/DesktopDatePicker/index.js +0 -4
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -6
- package/node/DesktopDateRangePicker/index.js +0 -4
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -6
- package/node/DesktopDateTimePicker/index.js +0 -4
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -6
- package/node/DesktopTimePicker/index.js +0 -4
- package/node/LoadingButton/LoadingButton.js +13 -46
- package/node/LoadingButton/index.js +0 -6
- package/node/LoadingButton/loadingButtonClasses.js +0 -5
- package/node/LocalizationProvider/LocalizationProvider.js +0 -6
- package/node/LocalizationProvider/index.js +0 -4
- package/node/Masonry/Masonry.js +27 -83
- package/node/Masonry/index.js +0 -6
- package/node/Masonry/masonryClasses.js +0 -5
- package/node/MobileDatePicker/MobileDatePicker.js +1 -6
- package/node/MobileDatePicker/index.js +0 -4
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -6
- package/node/MobileDateRangePicker/index.js +0 -4
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -6
- package/node/MobileDateTimePicker/index.js +0 -4
- package/node/MobileTimePicker/MobileTimePicker.js +1 -6
- package/node/MobileTimePicker/index.js +0 -4
- package/node/MonthPicker/MonthPicker.js +1 -8
- package/node/MonthPicker/index.js +0 -4
- package/node/Pagination/Pagination.js +1 -11
- package/node/Pagination/index.js +0 -3
- package/node/Pagination/usePagination.js +0 -2
- package/node/PaginationItem/PaginationItem.js +1 -11
- package/node/PaginationItem/index.js +0 -2
- package/node/PickersDay/PickersDay.js +1 -8
- package/node/PickersDay/index.js +0 -4
- package/node/Rating/Rating.js +1 -11
- package/node/Rating/index.js +0 -2
- package/node/Skeleton/Skeleton.js +1 -11
- package/node/Skeleton/index.js +0 -2
- package/node/SpeedDial/SpeedDial.js +1 -11
- package/node/SpeedDial/index.js +0 -2
- package/node/SpeedDialAction/SpeedDialAction.js +1 -11
- package/node/SpeedDialAction/index.js +0 -2
- package/node/SpeedDialIcon/SpeedDialIcon.js +1 -11
- package/node/SpeedDialIcon/index.js +0 -2
- package/node/StaticDatePicker/StaticDatePicker.js +1 -6
- package/node/StaticDatePicker/index.js +0 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -6
- package/node/StaticDateRangePicker/index.js +0 -4
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -6
- package/node/StaticDateTimePicker/index.js +0 -4
- package/node/StaticTimePicker/StaticTimePicker.js +1 -6
- package/node/StaticTimePicker/index.js +0 -4
- package/node/TabContext/TabContext.js +2 -23
- package/node/TabContext/index.js +0 -4
- package/node/TabList/TabList.js +4 -22
- package/node/TabList/index.js +0 -2
- package/node/TabPanel/TabPanel.js +6 -31
- package/node/TabPanel/index.js +0 -6
- package/node/TabPanel/tabPanelClasses.js +0 -5
- package/node/TimePicker/TimePicker.js +1 -6
- package/node/TimePicker/index.js +0 -4
- package/node/Timeline/Timeline.js +9 -32
- package/node/Timeline/TimelineContext.js +0 -6
- package/node/Timeline/index.js +0 -6
- package/node/Timeline/timelineClasses.js +0 -5
- package/node/TimelineConnector/TimelineConnector.js +4 -25
- package/node/TimelineConnector/index.js +0 -6
- package/node/TimelineConnector/timelineConnectorClasses.js +0 -5
- package/node/TimelineContent/TimelineContent.js +4 -28
- package/node/TimelineContent/index.js +0 -6
- package/node/TimelineContent/timelineContentClasses.js +0 -5
- package/node/TimelineDot/TimelineDot.js +8 -36
- package/node/TimelineDot/index.js +0 -6
- package/node/TimelineDot/timelineDotClasses.js +0 -5
- package/node/TimelineItem/TimelineItem.js +5 -31
- package/node/TimelineItem/index.js +0 -6
- package/node/TimelineItem/timelineItemClasses.js +0 -5
- package/node/TimelineOppositeContent/TimelineOppositeContent.js +4 -28
- package/node/TimelineOppositeContent/index.js +0 -6
- package/node/TimelineOppositeContent/timelineOppositeContentClasses.js +0 -5
- package/node/TimelineSeparator/TimelineSeparator.js +4 -25
- package/node/TimelineSeparator/index.js +0 -6
- package/node/TimelineSeparator/timelineSeparatorClasses.js +0 -5
- package/node/ToggleButton/ToggleButton.js +1 -11
- package/node/ToggleButton/index.js +0 -2
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -11
- package/node/ToggleButtonGroup/index.js +0 -2
- package/node/TreeItem/TreeItem.js +19 -73
- package/node/TreeItem/TreeItemContent.js +11 -38
- package/node/TreeItem/index.js +0 -7
- package/node/TreeItem/treeItemClasses.js +0 -5
- package/node/TreeItem/useTreeItem.js +2 -14
- package/node/TreeView/TreeView.js +53 -207
- package/node/TreeView/TreeViewContext.js +0 -6
- package/node/TreeView/descendants.js +18 -40
- package/node/TreeView/index.js +0 -6
- package/node/TreeView/treeViewClasses.js +0 -5
- package/node/YearPicker/YearPicker.js +1 -6
- package/node/YearPicker/index.js +0 -4
- package/node/index.js +1 -107
- package/node/internal/svg-icons/ArrowDropDown.js +0 -7
- package/node/internal/svg-icons/ArrowLeft.js +0 -7
- package/node/internal/svg-icons/ArrowRight.js +0 -7
- package/node/internal/svg-icons/Calendar.js +0 -7
- package/node/internal/svg-icons/Clock.js +0 -7
- package/node/internal/svg-icons/DateRange.js +0 -7
- package/node/internal/svg-icons/Pen.js +0 -7
- package/node/internal/svg-icons/Time.js +0 -7
- package/node/useAutocomplete/index.js +0 -1
- package/package.json +6 -6
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
let warnedOnce = false;
|
|
2
|
-
|
|
3
2
|
const warn = () => {
|
|
4
3
|
if (!warnedOnce) {
|
|
5
4
|
console.warn(['MUI: The AdapterDateFns class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
6
5
|
warnedOnce = true;
|
|
7
6
|
}
|
|
8
|
-
};
|
|
9
|
-
|
|
7
|
+
};
|
|
10
8
|
|
|
9
|
+
// tslint:disable-next-line:no-unnecessary-class
|
|
11
10
|
export default class AdapterDateFns {
|
|
12
11
|
constructor() {
|
|
13
12
|
warn();
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
let warnedOnce = false;
|
|
2
|
-
|
|
3
2
|
const warn = () => {
|
|
4
3
|
if (!warnedOnce) {
|
|
5
4
|
console.warn(['MUI: The AdapterDayjs class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
6
5
|
warnedOnce = true;
|
|
7
6
|
}
|
|
8
|
-
};
|
|
9
|
-
|
|
7
|
+
};
|
|
10
8
|
|
|
9
|
+
// tslint:disable-next-line:no-unnecessary-class
|
|
11
10
|
export default class AdapterDayjs {
|
|
12
11
|
constructor() {
|
|
13
12
|
warn();
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
let warnedOnce = false;
|
|
2
|
-
|
|
3
2
|
const warn = () => {
|
|
4
3
|
if (!warnedOnce) {
|
|
5
4
|
console.warn(['MUI: The AdapterLuxon class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterLuxon } from '@mui/x-date-pickers/AdapterLuxon'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
6
5
|
warnedOnce = true;
|
|
7
6
|
}
|
|
8
|
-
};
|
|
9
|
-
|
|
7
|
+
};
|
|
10
8
|
|
|
9
|
+
// tslint:disable-next-line:no-unnecessary-class
|
|
11
10
|
export default class AdapterLuxon {
|
|
12
11
|
constructor() {
|
|
13
12
|
warn();
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
let warnedOnce = false;
|
|
2
|
-
|
|
3
2
|
const warn = () => {
|
|
4
3
|
if (!warnedOnce) {
|
|
5
4
|
console.warn(['MUI: The AdapterMoment class was moved from `@mui/lab` to `@mui/x-date-pickers`', '', "You should use `import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
6
5
|
warnedOnce = true;
|
|
7
6
|
}
|
|
8
|
-
};
|
|
9
|
-
|
|
7
|
+
};
|
|
10
8
|
|
|
9
|
+
// tslint:disable-next-line:no-unnecessary-class
|
|
11
10
|
export default class AdapterMoment {
|
|
12
11
|
constructor() {
|
|
13
12
|
warn();
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
}
|
package/Alert/Alert.js
CHANGED
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import Alert from '@mui/material/Alert';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAlert(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The Alert component was moved from the lab to the core.', '', "You should use `import { Alert } from '@mui/material'`", "or `import Alert from '@mui/material/Alert'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(Alert, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
package/AlertTitle/AlertTitle.js
CHANGED
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import AlertTitle from '@mui/material/AlertTitle';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAlertTitle(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The AlertTitle component was moved from the lab to the core.', '', "You should use `import { AlertTitle } from '@mui/material'`", "or `import AlertTitle from '@mui/material/AlertTitle'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(AlertTitle, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import Autocomplete from '@mui/material/Autocomplete';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAutocomplete(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The Autocomplete component was moved from the lab to the core.', '', "You should use `import { Autocomplete } from '@mui/material'`", "or `import Autocomplete from '@mui/material/Autocomplete'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(Autocomplete, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import AvatarGroup from '@mui/material/AvatarGroup';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
let warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedAvatarGroup(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
console.warn(['MUI: The AvatarGroup component was moved from the lab to the core.', '', "You should use `import { AvatarGroup } from '@mui/material'`", "or `import AvatarGroup from '@mui/material/AvatarGroup'`"].join('\n'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(AvatarGroup, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,135 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.10.15
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.10.14..master -->
|
|
6
|
+
|
|
7
|
+
_Nov 21, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 @mnajdova added the button as the first component that implements [Material You](https://m3.material.io/) design (MD3)
|
|
12
|
+
- 🌐 @MBilalShafi added Urdu (Pakistan) localization
|
|
13
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements
|
|
14
|
+
|
|
15
|
+
### `@mui/material@5.10.15`
|
|
16
|
+
|
|
17
|
+
- [Autocomplete] Fix keyboard navigation when using custom popover (#35160) @sai6855
|
|
18
|
+
- [typescript] Add `background.defaultChannel` to `CssVarsPalette` (#35174) @alexfauquette
|
|
19
|
+
- [l10n] Add Urdu (ur-PK) locale (#35154) @MBilalShafi
|
|
20
|
+
|
|
21
|
+
### `@mui/icons-material@5.10.15`
|
|
22
|
+
|
|
23
|
+
- [icons] Update the Material Design icons (#35194) @michaldudak
|
|
24
|
+
|
|
25
|
+
### `@mui/material-next@6.0.0-alpha.63`
|
|
26
|
+
|
|
27
|
+
- [Material You] Add theme structure & Button component (#34650) @mnajdova
|
|
28
|
+
|
|
29
|
+
### `@mui/base@5.0.0-alpha.106`
|
|
30
|
+
|
|
31
|
+
- [Select] Add attributes to conform with ARIA 1.2 (#35182) @michaldudak
|
|
32
|
+
|
|
33
|
+
### Docs
|
|
34
|
+
|
|
35
|
+
- [docs] Fix a couple documentation errors (#35217) @danilo-leal
|
|
36
|
+
- [docs] Change MUI -> Material UI in icons-material's readme (#35220) @michaldudak
|
|
37
|
+
- [docs] the pages have no <link rel=canonical so we need to tell Google to not index the staging envs @oliviertassinari
|
|
38
|
+
- [docs] Fix confusion in TOCs when reaching scroll bottom (#35214) @oliviertassinari
|
|
39
|
+
- [docs] Fix typos in section titles (#35025) @iamxukai
|
|
40
|
+
- [docs] Fix typo in legacy date picker migration guide @oliviertassinari
|
|
41
|
+
- [docs] Iterating on recent Joy UI Component page updates (#35162) @samuelsycamore
|
|
42
|
+
- [docs] Inform that pickers are in X repository (#35189) @alexfauquette
|
|
43
|
+
- [docs] Explain how the `error` prop works in the Unstyled Input (#35171) @michaldudak
|
|
44
|
+
- [docs] Hotfix missing styles in dark mode (#35179) @siriwatknp
|
|
45
|
+
- [docs] Add Joy UI theme typography page (#34811) @siriwatknp
|
|
46
|
+
- [docs] Fix undo/redo in live editor (#35163) @oliviertassinari
|
|
47
|
+
- [docs] Revise the Joy UI "Avatar" component page (#35152) @samuelsycamore
|
|
48
|
+
- [docs] Make navbar backdrop filter consistent with website (#35157) @danilo-leal
|
|
49
|
+
- [docs] Host CodeSandbox on MUI org (#35110) @oliviertassinari
|
|
50
|
+
- [docs] Uplift introduction demos & make consistent with Base (#34316) @danilo-leal
|
|
51
|
+
- [website] Add Security questionnaire in pricing (#35172) @oliviertassinari
|
|
52
|
+
- [website] Fix theme mode toggle state (#35216) @siriwatknp
|
|
53
|
+
- [website] Exclude experiment pages in production (#35180) @siriwatknp
|
|
54
|
+
- [website] Disable SEO for performance pages (#35173) @oliviertassinari
|
|
55
|
+
|
|
56
|
+
### Core
|
|
57
|
+
|
|
58
|
+
- [core] Convert icons scripts to ESM (#35101) @Janpot
|
|
59
|
+
- [core] Group renovate GitHub Action dependency updates @oliviertassinari
|
|
60
|
+
- [core] Upgrade eslint-config-airbnb-typescript (#34642) @Janpot
|
|
61
|
+
- [core] Ensure that prettier CI step fails when code is badly formatted (#35170) @michaldudak
|
|
62
|
+
|
|
63
|
+
All contributors of this release in alphabetical order: @alexfauquette, @danilo-leal, @iamxukai, @Janpot, @MBilalShafi, @michaldudak, @oliviertassinari, @samuelsycamore, @siriwatknp
|
|
64
|
+
|
|
65
|
+
## v5.10.14
|
|
66
|
+
|
|
67
|
+
<!-- generated comparing v5.10.13..master -->
|
|
68
|
+
|
|
69
|
+
_Nov 14, 2022_
|
|
70
|
+
|
|
71
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
72
|
+
|
|
73
|
+
- 🚀 @siriwatknp added the Autocomplete component to the Joy UI (#34315)
|
|
74
|
+
- ♿ @sfavello improved the accessibility of the Material UI's Autocomplete by adding support for the Delete key (#33822)
|
|
75
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
76
|
+
|
|
77
|
+
### `@mui/material@5.10.14`
|
|
78
|
+
|
|
79
|
+
- [Material UI] Add `palette.background.defaultChannel` token (#35061) @siriwatknp
|
|
80
|
+
- [Autocomplete] Remove tags with the Delete key (#33822) @sfavello
|
|
81
|
+
- [IconButton] custom color causes type error (#34521) @kushagra010
|
|
82
|
+
|
|
83
|
+
### `@mui/system@5.10.14`
|
|
84
|
+
|
|
85
|
+
- [Unstable_Gridv2] sorted responsize keys based on breakpoint value (#34987) @sai6855
|
|
86
|
+
|
|
87
|
+
### `@mui/joy@5.0.0-alpha.54`
|
|
88
|
+
|
|
89
|
+
- [Joy] Export `FormControl`, `LinearProgress` and `ListSubheader` components from `@mui/joy` (#35003) @Studio384
|
|
90
|
+
- [Joy] Miscellaneous fixes (#35044) @siriwatknp
|
|
91
|
+
- [Joy] Add `Autocomplete` component (#34315) @siriwatknp
|
|
92
|
+
- [Joy] Saturate a bit the gray palette (#35148) @danilo-leal
|
|
93
|
+
- [Autocomplete][joy] Fix types (#35153) @siriwatknp
|
|
94
|
+
|
|
95
|
+
### Docs
|
|
96
|
+
|
|
97
|
+
- [blog] Fix font size of code blocks on iOS @oliviertassinari
|
|
98
|
+
- [docs] Accessibility - increase default contrastThreshold for WCAG AA compliance (#34901) @kennethbigler
|
|
99
|
+
- [docs] Correct the keepMounted section on the Drawer page (#35076) @michaldudak
|
|
100
|
+
- [docs] Fix code editor styles mismatches (#35108) @oliviertassinari
|
|
101
|
+
- [docs] Allows to access the next MUI-X (#34798) @alexfauquette
|
|
102
|
+
- [docs] Fix bugs with live edit demos (#35106) @oliviertassinari
|
|
103
|
+
- [docs] Fix `MarkdownElement` regression from adding CSS variables (#35096) @siriwatknp
|
|
104
|
+
- [docs] Add a new gold sponsor (#35089) @hbjORbj
|
|
105
|
+
- [docs] Fix scroll issue on expanded live demos (#35064) @bharatkashyap
|
|
106
|
+
- [docs] Improve alignment of the sponsors @oliviertassinari
|
|
107
|
+
- [docs] Improve code font family v2 (#35053) @oliviertassinari
|
|
108
|
+
- [docs] Upgrade to Next.js 13 (#35001) @mnajdova
|
|
109
|
+
- [docs] Fix typo in changelog @oliviertassinari
|
|
110
|
+
- [docs] Update Joy UI templates to use latest components (#35058) @siriwatknp
|
|
111
|
+
- [website] Fix design kits showcase throwing an error (#35093) @cherniavskii
|
|
112
|
+
- [website] Fix margin bug on CTA @oliviertassinari
|
|
113
|
+
- [website] Link respective repositories in product pages (#35046) @sidtohan
|
|
114
|
+
- [website] Migrate blog pages to use CSS theme variables (#34976) @siriwatknp
|
|
115
|
+
- [website] Update DoiT International logo and links with new brand (#35030) @ofir5300
|
|
116
|
+
- [website] Improve visual design app bar (#35111) @oliviertassinari
|
|
117
|
+
|
|
118
|
+
### Core
|
|
119
|
+
|
|
120
|
+
- [core] Convert scripts to ES modules (#35036) @michaldudak
|
|
121
|
+
- [core] Show the whole version to make blame easier @oliviertassinari
|
|
122
|
+
- [core] Polish GitHub Action version @oliviertassinari
|
|
123
|
+
- [core] Ignore icons to speed up CodeQL @oliviertassinari
|
|
124
|
+
- [core] Feedback on branch protection @oliviertassinari
|
|
125
|
+
- [core] Revert CI (#35098) @siriwatknp
|
|
126
|
+
- [core] Fix job name to match the CI (#35097) @siriwatknp
|
|
127
|
+
- [core] ESLint fixes for tests (#34924) @Janpot
|
|
128
|
+
- [core] Ignore unrelated folders from github actions (#35028) @siriwatknp
|
|
129
|
+
- [core] Use pretty-quick instead of custom script (#34062) @Janpot
|
|
130
|
+
|
|
131
|
+
All contributors of this release in alphabetical order: @alexfauquette, @bharatkashyap, @cherniavskii, @danilo-leal, @hbjORbj, @Janpot, @kennethbigler, @kushagra010, @michaldudak, @mnajdova, @ofir5300, @oliviertassinari, @sai6855, @sfavello, @sidtohan, @siriwatknp, @Studio384
|
|
132
|
+
|
|
3
133
|
## v5.10.13
|
|
4
134
|
|
|
5
135
|
<!-- generated comparing v5.10.12..master -->
|
|
@@ -9,7 +139,7 @@ _Nov 7, 2022_
|
|
|
9
139
|
A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
10
140
|
|
|
11
141
|
- 🚀 The slots API has been introduced to the Material UI package by @michaldudak (#34873).
|
|
12
|
-
- 🔥 Live
|
|
142
|
+
- 🔥 Live editing of demos is stabilized by @oliviertassinari (#34870).
|
|
13
143
|
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
14
144
|
|
|
15
145
|
### `@mui/material@5.10.13`
|
|
@@ -8875,7 +9005,7 @@ _Sep 6, 2020_
|
|
|
8875
9005
|
A big thanks to the 14 contributors who made this release possible.
|
|
8876
9006
|
Here are some highlights ✨:
|
|
8877
9007
|
|
|
8878
|
-
- 💎 A new diamond sponsor: [DoiT](https://www.doit
|
|
9008
|
+
- 💎 A new diamond sponsor: [DoiT](https://www.doit.com/), thank you!
|
|
8879
9009
|
- 📚 Include the default value of the props in IntelliSense (#22447) @eps1lon
|
|
8880
9010
|
- ⚛️ More source migrated to TypeScript and testing-library (#22441) @baterson
|
|
8881
9011
|
- And many more 🐛 bug fixes and 📚 improvements.
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The CalendarPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { CalendarPicker } from '@mui/x-date-pickers'`", "or `import { CalendarPicker } from '@mui/x-date-pickers/CalendarPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The CalendarPickerSkeleton component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { CalendarPickerSkeleton } from '@mui/x-date-pickers'`", "or `import { CalendarPickerSkeleton } from '@mui/x-date-pickers/CalendarPickerSkeleton'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The ClockPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { ClockPicker } from '@mui/x-date-pickers'`", "or `import { ClockPicker } from '@mui/x-date-pickers/ClockPicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DatePicker } from '@mui/x-date-pickers'`", "or `import { DatePicker } from '@mui/x-date-pickers/DatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { DateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DateRangePickerDay component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { DateRangePickerDay } from '@mui/x-date-pickers-pro'`", "or `import { DateRangePickerDay } from '@mui/x-date-pickers-pro/DateRangePickerDay'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DateTimePicker } from '@mui/x-date-pickers'`", "or `import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DesktopDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DesktopDatePicker } from '@mui/x-date-pickers'`", "or `import { DesktopDatePicker } from '@mui/x-date-pickers/DesktopDatePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DesktopDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`', '', "You should use `import { DesktopDateRangePicker } from '@mui/x-date-pickers-pro'`", "or `import { DesktopDateRangePicker } from '@mui/x-date-pickers-pro/DesktopDateRangePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DesktopDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DesktopDateTimePicker } from '@mui/x-date-pickers'`", "or `import { DesktopDateTimePicker } from '@mui/x-date-pickers/DesktopDateTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
let warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
const warn = () => {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The DesktopTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { DesktopTimePicker } from '@mui/x-date-pickers'`", "or `import { DesktopTimePicker } from '@mui/x-date-pickers/DesktopTimePicker'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -12,7 +12,6 @@ import CircularProgress from '@mui/material/CircularProgress';
|
|
|
12
12
|
import loadingButtonClasses, { getLoadingButtonUtilityClass } from './loadingButtonClasses';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
15
|
const useUtilityClasses = ownerState => {
|
|
17
16
|
const {
|
|
18
17
|
loading,
|
|
@@ -27,11 +26,10 @@ const useUtilityClasses = ownerState => {
|
|
|
27
26
|
};
|
|
28
27
|
const composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
|
|
29
28
|
return _extends({}, classes, composedClasses);
|
|
30
|
-
};
|
|
31
|
-
|
|
29
|
+
};
|
|
32
30
|
|
|
31
|
+
// TODO use `import { rootShouldForwardProp } from '../styles/styled';` once move to core
|
|
33
32
|
const rootShouldForwardProp = prop => prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as' && prop !== 'classes';
|
|
34
|
-
|
|
35
33
|
const LoadingButtonRoot = styled(Button, {
|
|
36
34
|
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
37
35
|
name: 'MuiLoadingButton',
|
|
@@ -117,25 +115,22 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
117
115
|
props: inProps,
|
|
118
116
|
name: 'MuiLoadingButton'
|
|
119
117
|
});
|
|
120
|
-
|
|
121
118
|
const {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
119
|
+
children,
|
|
120
|
+
disabled = false,
|
|
121
|
+
id: idProp,
|
|
122
|
+
loading = false,
|
|
123
|
+
loadingIndicator: loadingIndicatorProp,
|
|
124
|
+
loadingPosition = 'center',
|
|
125
|
+
variant = 'text'
|
|
126
|
+
} = props,
|
|
127
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
132
128
|
const id = useId(idProp);
|
|
133
129
|
const loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /*#__PURE__*/_jsx(CircularProgress, {
|
|
134
130
|
"aria-labelledby": id,
|
|
135
131
|
color: "inherit",
|
|
136
132
|
size: 16
|
|
137
133
|
});
|
|
138
|
-
|
|
139
134
|
const ownerState = _extends({}, props, {
|
|
140
135
|
disabled,
|
|
141
136
|
loading,
|
|
@@ -143,7 +138,6 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
143
138
|
loadingPosition,
|
|
144
139
|
variant
|
|
145
140
|
});
|
|
146
|
-
|
|
147
141
|
const classes = useUtilityClasses(ownerState);
|
|
148
142
|
const loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
149
143
|
className: classes.loadingIndicator,
|
|
@@ -161,41 +155,33 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
161
155
|
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
162
156
|
}));
|
|
163
157
|
});
|
|
164
|
-
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
165
|
-
/* remove-proptypes */
|
|
166
|
-
= {
|
|
158
|
+
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
|
|
167
159
|
// ----------------------------- Warning --------------------------------
|
|
168
160
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
169
161
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
170
162
|
// ----------------------------------------------------------------------
|
|
171
|
-
|
|
172
163
|
/**
|
|
173
164
|
* The content of the component.
|
|
174
165
|
*/
|
|
175
166
|
children: PropTypes.node,
|
|
176
|
-
|
|
177
167
|
/**
|
|
178
168
|
* Override or extend the styles applied to the component.
|
|
179
169
|
*/
|
|
180
170
|
classes: PropTypes.object,
|
|
181
|
-
|
|
182
171
|
/**
|
|
183
172
|
* If `true`, the component is disabled.
|
|
184
173
|
* @default false
|
|
185
174
|
*/
|
|
186
175
|
disabled: PropTypes.bool,
|
|
187
|
-
|
|
188
176
|
/**
|
|
189
177
|
* @ignore
|
|
190
178
|
*/
|
|
191
179
|
id: PropTypes.string,
|
|
192
|
-
|
|
193
180
|
/**
|
|
194
181
|
* If `true`, the loading indicator is shown.
|
|
195
182
|
* @default false
|
|
196
183
|
*/
|
|
197
184
|
loading: PropTypes.bool,
|
|
198
|
-
|
|
199
185
|
/**
|
|
200
186
|
* Element placed before the children if the button is in loading state.
|
|
201
187
|
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
@@ -203,7 +189,6 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
203
189
|
* @default <CircularProgress color="inherit" size={16} />
|
|
204
190
|
*/
|
|
205
191
|
loadingIndicator: PropTypes.node,
|
|
206
|
-
|
|
207
192
|
/**
|
|
208
193
|
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
209
194
|
* @default 'center'
|
|
@@ -212,25 +197,19 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
212
197
|
if (props.loadingPosition === 'start' && !props.startIcon) {
|
|
213
198
|
return new Error(`MUI: The loadingPosition="start" should be used in combination with startIcon.`);
|
|
214
199
|
}
|
|
215
|
-
|
|
216
200
|
if (props.loadingPosition === 'end' && !props.endIcon) {
|
|
217
201
|
return new Error(`MUI: The loadingPosition="end" should be used in combination with endIcon.`);
|
|
218
202
|
}
|
|
219
|
-
|
|
220
203
|
return null;
|
|
221
204
|
}),
|
|
222
|
-
|
|
223
205
|
/**
|
|
224
206
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
225
207
|
*/
|
|
226
208
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
227
|
-
|
|
228
209
|
/**
|
|
229
210
|
* The variant to use.
|
|
230
211
|
* @default 'text'
|
|
231
212
|
*/
|
|
232
|
-
variant: PropTypes
|
|
233
|
-
/* @typescript-to-proptypes-ignore */
|
|
234
|
-
.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
213
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
235
214
|
} : void 0;
|
|
236
215
|
export default LoadingButton;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
let warnedOnce = false;
|
|
3
|
-
|
|
4
3
|
const warn = () => {
|
|
5
4
|
if (!warnedOnce) {
|
|
6
5
|
console.warn(['MUI: The LocalizationProvider component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { LocalizationProvider } from '@mui/x-date-pickers'`", "or `import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'`", '', 'More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.'].join('\n'));
|
|
7
6
|
warnedOnce = true;
|
|
8
7
|
}
|
|
9
8
|
};
|
|
10
|
-
|
|
11
9
|
/**
|
|
12
10
|
* @ignore - do not document.
|
|
13
11
|
*/
|