@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
|
@@ -12,11 +12,10 @@ 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
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
17
16
|
var loading = ownerState.loading,
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
loadingPosition = ownerState.loadingPosition,
|
|
18
|
+
classes = ownerState.classes;
|
|
20
19
|
var slots = {
|
|
21
20
|
root: ['root', loading && 'loading'],
|
|
22
21
|
startIcon: [loading && "startIconLoading".concat(capitalize(loadingPosition))],
|
|
@@ -25,13 +24,12 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
25
24
|
};
|
|
26
25
|
var composedClasses = composeClasses(slots, getLoadingButtonUtilityClass, classes);
|
|
27
26
|
return _extends({}, classes, composedClasses);
|
|
28
|
-
};
|
|
29
|
-
|
|
27
|
+
};
|
|
30
28
|
|
|
29
|
+
// TODO use `import { rootShouldForwardProp } from '../styles/styled';` once move to core
|
|
31
30
|
var rootShouldForwardProp = function rootShouldForwardProp(prop) {
|
|
32
31
|
return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as' && prop !== 'classes';
|
|
33
32
|
};
|
|
34
|
-
|
|
35
33
|
var LoadingButtonRoot = styled(Button, {
|
|
36
34
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
37
35
|
return rootShouldForwardProp(prop) || prop === 'classes';
|
|
@@ -43,7 +41,7 @@ var LoadingButtonRoot = styled(Button, {
|
|
|
43
41
|
}
|
|
44
42
|
})(function (_ref3) {
|
|
45
43
|
var ownerState = _ref3.ownerState,
|
|
46
|
-
|
|
44
|
+
theme = _ref3.theme;
|
|
47
45
|
return _extends(_defineProperty({}, "& .".concat(loadingButtonClasses.startIconLoadingStart, ", & .").concat(loadingButtonClasses.endIconLoadingEnd), {
|
|
48
46
|
transition: theme.transitions.create(['opacity'], {
|
|
49
47
|
duration: theme.transitions.duration.short
|
|
@@ -78,7 +76,7 @@ var LoadingButtonLoadingIndicator = styled('div', {
|
|
|
78
76
|
}
|
|
79
77
|
})(function (_ref7) {
|
|
80
78
|
var theme = _ref7.theme,
|
|
81
|
-
|
|
79
|
+
ownerState = _ref7.ownerState;
|
|
82
80
|
return _extends({
|
|
83
81
|
position: 'absolute',
|
|
84
82
|
visibility: 'visible',
|
|
@@ -108,27 +106,24 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
108
106
|
props: inProps,
|
|
109
107
|
name: 'MuiLoadingButton'
|
|
110
108
|
});
|
|
111
|
-
|
|
112
109
|
var children = props.children,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
110
|
+
_props$disabled = props.disabled,
|
|
111
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
112
|
+
idProp = props.id,
|
|
113
|
+
_props$loading = props.loading,
|
|
114
|
+
loading = _props$loading === void 0 ? false : _props$loading,
|
|
115
|
+
loadingIndicatorProp = props.loadingIndicator,
|
|
116
|
+
_props$loadingPositio = props.loadingPosition,
|
|
117
|
+
loadingPosition = _props$loadingPositio === void 0 ? 'center' : _props$loadingPositio,
|
|
118
|
+
_props$variant = props.variant,
|
|
119
|
+
variant = _props$variant === void 0 ? 'text' : _props$variant,
|
|
120
|
+
other = _objectWithoutProperties(props, ["children", "disabled", "id", "loading", "loadingIndicator", "loadingPosition", "variant"]);
|
|
125
121
|
var id = useId(idProp);
|
|
126
122
|
var loadingIndicator = loadingIndicatorProp != null ? loadingIndicatorProp : /*#__PURE__*/_jsx(CircularProgress, {
|
|
127
123
|
"aria-labelledby": id,
|
|
128
124
|
color: "inherit",
|
|
129
125
|
size: 16
|
|
130
126
|
});
|
|
131
|
-
|
|
132
127
|
var ownerState = _extends({}, props, {
|
|
133
128
|
disabled: disabled,
|
|
134
129
|
loading: loading,
|
|
@@ -136,7 +131,6 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
136
131
|
loadingPosition: loadingPosition,
|
|
137
132
|
variant: variant
|
|
138
133
|
});
|
|
139
|
-
|
|
140
134
|
var classes = useUtilityClasses(ownerState);
|
|
141
135
|
var loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
142
136
|
className: classes.loadingIndicator,
|
|
@@ -154,41 +148,33 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
154
148
|
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
155
149
|
}));
|
|
156
150
|
});
|
|
157
|
-
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
158
|
-
/* remove-proptypes */
|
|
159
|
-
= {
|
|
151
|
+
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes /* remove-proptypes */ = {
|
|
160
152
|
// ----------------------------- Warning --------------------------------
|
|
161
153
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
162
154
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
163
155
|
// ----------------------------------------------------------------------
|
|
164
|
-
|
|
165
156
|
/**
|
|
166
157
|
* The content of the component.
|
|
167
158
|
*/
|
|
168
159
|
children: PropTypes.node,
|
|
169
|
-
|
|
170
160
|
/**
|
|
171
161
|
* Override or extend the styles applied to the component.
|
|
172
162
|
*/
|
|
173
163
|
classes: PropTypes.object,
|
|
174
|
-
|
|
175
164
|
/**
|
|
176
165
|
* If `true`, the component is disabled.
|
|
177
166
|
* @default false
|
|
178
167
|
*/
|
|
179
168
|
disabled: PropTypes.bool,
|
|
180
|
-
|
|
181
169
|
/**
|
|
182
170
|
* @ignore
|
|
183
171
|
*/
|
|
184
172
|
id: PropTypes.string,
|
|
185
|
-
|
|
186
173
|
/**
|
|
187
174
|
* If `true`, the loading indicator is shown.
|
|
188
175
|
* @default false
|
|
189
176
|
*/
|
|
190
177
|
loading: PropTypes.bool,
|
|
191
|
-
|
|
192
178
|
/**
|
|
193
179
|
* Element placed before the children if the button is in loading state.
|
|
194
180
|
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
@@ -196,7 +182,6 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
196
182
|
* @default <CircularProgress color="inherit" size={16} />
|
|
197
183
|
*/
|
|
198
184
|
loadingIndicator: PropTypes.node,
|
|
199
|
-
|
|
200
185
|
/**
|
|
201
186
|
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
202
187
|
* @default 'center'
|
|
@@ -205,25 +190,19 @@ process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
|
|
205
190
|
if (props.loadingPosition === 'start' && !props.startIcon) {
|
|
206
191
|
return new Error("MUI: The loadingPosition=\"start\" should be used in combination with startIcon.");
|
|
207
192
|
}
|
|
208
|
-
|
|
209
193
|
if (props.loadingPosition === 'end' && !props.endIcon) {
|
|
210
194
|
return new Error("MUI: The loadingPosition=\"end\" should be used in combination with endIcon.");
|
|
211
195
|
}
|
|
212
|
-
|
|
213
196
|
return null;
|
|
214
197
|
}),
|
|
215
|
-
|
|
216
198
|
/**
|
|
217
199
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
218
200
|
*/
|
|
219
201
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
220
|
-
|
|
221
202
|
/**
|
|
222
203
|
* The variant to use.
|
|
223
204
|
* @default 'text'
|
|
224
205
|
*/
|
|
225
|
-
variant: PropTypes
|
|
226
|
-
/* @typescript-to-proptypes-ignore */
|
|
227
|
-
.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
206
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
|
228
207
|
} : void 0;
|
|
229
208
|
export default LoadingButton;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
var warnedOnce = false;
|
|
3
|
-
|
|
4
3
|
var warn = function 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
|
*/
|
|
@@ -22,7 +22,6 @@ var lineBreakStyle = {
|
|
|
22
22
|
margin: 0,
|
|
23
23
|
padding: 0
|
|
24
24
|
};
|
|
25
|
-
|
|
26
25
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
27
26
|
var classes = ownerState.classes;
|
|
28
27
|
var slots = {
|
|
@@ -30,10 +29,9 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
30
29
|
};
|
|
31
30
|
return composeClasses(slots, getMasonryUtilityClass, classes);
|
|
32
31
|
};
|
|
33
|
-
|
|
34
32
|
export var getStyle = function getStyle(_ref) {
|
|
35
33
|
var ownerState = _ref.ownerState,
|
|
36
|
-
|
|
34
|
+
theme = _ref.theme;
|
|
37
35
|
var styles = {
|
|
38
36
|
width: '100%',
|
|
39
37
|
display: 'flex',
|
|
@@ -44,18 +42,16 @@ export var getStyle = function getStyle(_ref) {
|
|
|
44
42
|
boxSizing: 'border-box'
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
|
-
var stylesSSR = {};
|
|
48
|
-
|
|
45
|
+
var stylesSSR = {};
|
|
46
|
+
// Only applicable for Server-Side Rendering
|
|
49
47
|
if (ownerState.isSSR) {
|
|
50
48
|
var orderStyleSSR = {};
|
|
51
49
|
var defaultSpacing = parseToNumber(theme.spacing(ownerState.defaultSpacing));
|
|
52
|
-
|
|
53
50
|
for (var i = 1; i <= ownerState.defaultColumns; i += 1) {
|
|
54
51
|
orderStyleSSR["&:nth-of-type(".concat(ownerState.defaultColumns, "n+").concat(i % ownerState.defaultColumns, ")")] = {
|
|
55
52
|
order: i
|
|
56
53
|
};
|
|
57
54
|
}
|
|
58
|
-
|
|
59
55
|
stylesSSR.height = ownerState.defaultHeight;
|
|
60
56
|
stylesSSR.margin = -(defaultSpacing / 2);
|
|
61
57
|
stylesSSR['& > *'] = _extends({}, styles['& > *'], orderStyleSSR, {
|
|
@@ -64,23 +60,20 @@ export var getStyle = function getStyle(_ref) {
|
|
|
64
60
|
});
|
|
65
61
|
return _extends({}, styles, stylesSSR);
|
|
66
62
|
}
|
|
67
|
-
|
|
68
63
|
var spacingValues = resolveBreakpointValues({
|
|
69
64
|
values: ownerState.spacing,
|
|
70
65
|
breakpoints: theme.breakpoints.values
|
|
71
66
|
});
|
|
72
67
|
var transformer = createUnarySpacing(theme);
|
|
73
|
-
|
|
74
68
|
var spacingStyleFromPropValue = function spacingStyleFromPropValue(propValue) {
|
|
75
|
-
var spacing;
|
|
76
|
-
|
|
69
|
+
var spacing;
|
|
70
|
+
// in case of string/number value
|
|
77
71
|
if (typeof propValue === 'string' && !Number.isNaN(Number(propValue)) || typeof propValue === 'number') {
|
|
78
72
|
var themeSpacingValue = Number(propValue);
|
|
79
73
|
spacing = getValue(transformer, themeSpacingValue);
|
|
80
74
|
} else {
|
|
81
75
|
spacing = propValue;
|
|
82
76
|
}
|
|
83
|
-
|
|
84
77
|
return _extends({
|
|
85
78
|
margin: "calc(0px - (".concat(spacing, " / 2))"),
|
|
86
79
|
'& > *': {
|
|
@@ -90,7 +83,6 @@ export var getStyle = function getStyle(_ref) {
|
|
|
90
83
|
height: typeof spacing === 'number' ? Math.ceil(ownerState.maxColumnHeight + parseToNumber(spacing)) : "calc(".concat(ownerState.maxColumnHeight, "px + ").concat(spacing, ")")
|
|
91
84
|
});
|
|
92
85
|
};
|
|
93
|
-
|
|
94
86
|
styles = deepmerge(styles, handleBreakpoints({
|
|
95
87
|
theme: theme
|
|
96
88
|
}, spacingValues, spacingStyleFromPropValue));
|
|
@@ -98,7 +90,6 @@ export var getStyle = function getStyle(_ref) {
|
|
|
98
90
|
values: ownerState.columns,
|
|
99
91
|
breakpoints: theme.breakpoints.values
|
|
100
92
|
});
|
|
101
|
-
|
|
102
93
|
var columnStyleFromPropValue = function columnStyleFromPropValue(propValue) {
|
|
103
94
|
var columnValue = Number(propValue);
|
|
104
95
|
var width = "".concat((100 / columnValue).toFixed(2), "%");
|
|
@@ -109,11 +100,11 @@ export var getStyle = function getStyle(_ref) {
|
|
|
109
100
|
}
|
|
110
101
|
};
|
|
111
102
|
};
|
|
112
|
-
|
|
113
103
|
styles = deepmerge(styles, handleBreakpoints({
|
|
114
104
|
theme: theme
|
|
115
|
-
}, columnValues, columnStyleFromPropValue));
|
|
105
|
+
}, columnValues, columnStyleFromPropValue));
|
|
116
106
|
|
|
107
|
+
// configure width for responsive spacing values
|
|
117
108
|
if (_typeof(spacingValues) === 'object') {
|
|
118
109
|
styles = deepmerge(styles, handleBreakpoints({
|
|
119
110
|
theme: theme
|
|
@@ -130,11 +121,9 @@ export var getStyle = function getStyle(_ref) {
|
|
|
130
121
|
}
|
|
131
122
|
};
|
|
132
123
|
}
|
|
133
|
-
|
|
134
124
|
return null;
|
|
135
125
|
}));
|
|
136
126
|
}
|
|
137
|
-
|
|
138
127
|
return styles;
|
|
139
128
|
};
|
|
140
129
|
var MasonryRoot = styled('div', {
|
|
@@ -149,32 +138,26 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
149
138
|
props: inProps,
|
|
150
139
|
name: 'MuiMasonry'
|
|
151
140
|
});
|
|
152
|
-
|
|
153
141
|
var children = props.children,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
142
|
+
className = props.className,
|
|
143
|
+
_props$component = props.component,
|
|
144
|
+
component = _props$component === void 0 ? 'div' : _props$component,
|
|
145
|
+
_props$columns = props.columns,
|
|
146
|
+
columns = _props$columns === void 0 ? 4 : _props$columns,
|
|
147
|
+
_props$spacing = props.spacing,
|
|
148
|
+
spacing = _props$spacing === void 0 ? 1 : _props$spacing,
|
|
149
|
+
defaultColumns = props.defaultColumns,
|
|
150
|
+
defaultHeight = props.defaultHeight,
|
|
151
|
+
defaultSpacing = props.defaultSpacing,
|
|
152
|
+
other = _objectWithoutProperties(props, ["children", "className", "component", "columns", "spacing", "defaultColumns", "defaultHeight", "defaultSpacing"]);
|
|
166
153
|
var masonryRef = React.useRef();
|
|
167
|
-
|
|
168
154
|
var _React$useState = React.useState(),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
155
|
+
maxColumnHeight = _React$useState[0],
|
|
156
|
+
setMaxColumnHeight = _React$useState[1];
|
|
172
157
|
var isSSR = !maxColumnHeight && defaultHeight && defaultColumns !== undefined && defaultSpacing !== undefined;
|
|
173
|
-
|
|
174
158
|
var _React$useState2 = React.useState(isSSR ? defaultColumns - 1 : 0),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
159
|
+
numberOfLineBreaks = _React$useState2[0],
|
|
160
|
+
setNumberOfLineBreaks = _React$useState2[1];
|
|
178
161
|
var ownerState = _extends({}, props, {
|
|
179
162
|
spacing: spacing,
|
|
180
163
|
columns: columns,
|
|
@@ -184,23 +167,18 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
184
167
|
defaultSpacing: defaultSpacing,
|
|
185
168
|
isSSR: isSSR
|
|
186
169
|
});
|
|
187
|
-
|
|
188
170
|
var classes = useUtilityClasses(ownerState);
|
|
189
|
-
|
|
190
171
|
var handleResize = function handleResize(masonryChildren) {
|
|
191
172
|
if (!masonryRef.current || !masonryChildren || masonryChildren.length === 0) {
|
|
192
173
|
return;
|
|
193
174
|
}
|
|
194
|
-
|
|
195
175
|
var masonry = masonryRef.current;
|
|
196
176
|
var masonryFirstChild = masonryRef.current.firstChild;
|
|
197
177
|
var parentWidth = masonry.clientWidth;
|
|
198
178
|
var firstChildWidth = masonryFirstChild.clientWidth;
|
|
199
|
-
|
|
200
179
|
if (parentWidth === 0 || firstChildWidth === 0) {
|
|
201
180
|
return;
|
|
202
181
|
}
|
|
203
|
-
|
|
204
182
|
var firstChildComputedStyle = window.getComputedStyle(masonryFirstChild);
|
|
205
183
|
var firstChildMarginLeft = parseToNumber(firstChildComputedStyle.marginLeft);
|
|
206
184
|
var firstChildMarginRight = parseToNumber(firstChildComputedStyle.marginRight);
|
|
@@ -211,28 +189,23 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
211
189
|
if (child.nodeType !== Node.ELEMENT_NODE || child.dataset.class === 'line-break' || skip) {
|
|
212
190
|
return;
|
|
213
191
|
}
|
|
214
|
-
|
|
215
192
|
var childComputedStyle = window.getComputedStyle(child);
|
|
216
193
|
var childMarginTop = parseToNumber(childComputedStyle.marginTop);
|
|
217
|
-
var childMarginBottom = parseToNumber(childComputedStyle.marginBottom);
|
|
218
|
-
|
|
194
|
+
var childMarginBottom = parseToNumber(childComputedStyle.marginBottom);
|
|
195
|
+
// if any one of children isn't rendered yet, masonry's height shouldn't be computed yet
|
|
219
196
|
var childHeight = parseToNumber(childComputedStyle.height) ? Math.ceil(parseToNumber(childComputedStyle.height)) + childMarginTop + childMarginBottom : 0;
|
|
220
|
-
|
|
221
197
|
if (childHeight === 0) {
|
|
222
198
|
skip = true;
|
|
223
199
|
return;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
|
|
200
|
+
}
|
|
201
|
+
// if there is a nested image that isn't rendered yet, masonry's height shouldn't be computed yet
|
|
227
202
|
for (var i = 0; i < child.childNodes.length; i += 1) {
|
|
228
203
|
var nestedChild = child.childNodes[i];
|
|
229
|
-
|
|
230
204
|
if (nestedChild.tagName === 'IMG' && nestedChild.clientHeight === 0) {
|
|
231
205
|
skip = true;
|
|
232
206
|
break;
|
|
233
207
|
}
|
|
234
208
|
}
|
|
235
|
-
|
|
236
209
|
if (!skip) {
|
|
237
210
|
// find the current shortest column (where the current item will be placed)
|
|
238
211
|
var currentMinColumnIndex = columnHeights.indexOf(Math.min.apply(Math, _toConsumableArray(columnHeights)));
|
|
@@ -241,7 +214,6 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
241
214
|
child.style.order = order;
|
|
242
215
|
}
|
|
243
216
|
});
|
|
244
|
-
|
|
245
217
|
if (!skip) {
|
|
246
218
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
247
219
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
@@ -252,28 +224,26 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
252
224
|
});
|
|
253
225
|
}
|
|
254
226
|
};
|
|
255
|
-
|
|
256
227
|
var observer = React.useRef(typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(handleResize));
|
|
257
228
|
React.useEffect(function () {
|
|
258
|
-
var resizeObserver = observer.current;
|
|
259
|
-
|
|
229
|
+
var resizeObserver = observer.current;
|
|
230
|
+
// IE and old browsers are not supported
|
|
260
231
|
if (resizeObserver === undefined) {
|
|
261
232
|
return undefined;
|
|
262
233
|
}
|
|
263
|
-
|
|
264
234
|
if (masonryRef.current) {
|
|
265
235
|
masonryRef.current.childNodes.forEach(function (childNode) {
|
|
266
236
|
resizeObserver.observe(childNode);
|
|
267
237
|
});
|
|
268
238
|
}
|
|
269
|
-
|
|
270
239
|
return function () {
|
|
271
240
|
return resizeObserver ? resizeObserver.disconnect() : {};
|
|
272
241
|
};
|
|
273
242
|
}, [columns, spacing, children]);
|
|
274
|
-
var handleRef = useForkRef(ref, masonryRef);
|
|
275
|
-
// a line break at the end of each column prevents columns from merging
|
|
243
|
+
var handleRef = useForkRef(ref, masonryRef);
|
|
276
244
|
|
|
245
|
+
// columns are likely to have different heights and hence can start to merge;
|
|
246
|
+
// a line break at the end of each column prevents columns from merging
|
|
277
247
|
var lineBreaks = new Array(numberOfLineBreaks).fill('').map(function (_, index) {
|
|
278
248
|
return /*#__PURE__*/_jsx("span", {
|
|
279
249
|
"data-class": "line-break",
|
|
@@ -291,64 +261,50 @@ var Masonry = /*#__PURE__*/React.forwardRef(function Masonry(inProps, ref) {
|
|
|
291
261
|
children: [children, lineBreaks]
|
|
292
262
|
}));
|
|
293
263
|
});
|
|
294
|
-
process.env.NODE_ENV !== "production" ? Masonry.propTypes
|
|
295
|
-
/* remove-proptypes */
|
|
296
|
-
= {
|
|
264
|
+
process.env.NODE_ENV !== "production" ? Masonry.propTypes /* remove-proptypes */ = {
|
|
297
265
|
// ----------------------------- Warning --------------------------------
|
|
298
266
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
299
267
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
300
268
|
// ----------------------------------------------------------------------
|
|
301
|
-
|
|
302
269
|
/**
|
|
303
270
|
* The content of the component.
|
|
304
271
|
*/
|
|
305
|
-
children: PropTypes
|
|
306
|
-
/* @typescript-to-proptypes-ignore */
|
|
307
|
-
.node.isRequired,
|
|
308
|
-
|
|
272
|
+
children: PropTypes /* @typescript-to-proptypes-ignore */.node.isRequired,
|
|
309
273
|
/**
|
|
310
274
|
* Override or extend the styles applied to the component.
|
|
311
275
|
*/
|
|
312
276
|
classes: PropTypes.object,
|
|
313
|
-
|
|
314
277
|
/**
|
|
315
278
|
* @ignore
|
|
316
279
|
*/
|
|
317
280
|
className: PropTypes.string,
|
|
318
|
-
|
|
319
281
|
/**
|
|
320
282
|
* Number of columns.
|
|
321
283
|
* @default 4
|
|
322
284
|
*/
|
|
323
285
|
columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
324
|
-
|
|
325
286
|
/**
|
|
326
287
|
* The component used for the root node.
|
|
327
288
|
* Either a string to use a HTML element or a component.
|
|
328
289
|
*/
|
|
329
290
|
component: PropTypes.elementType,
|
|
330
|
-
|
|
331
291
|
/**
|
|
332
292
|
* The default number of columns of the component. This is provided for server-side rendering.
|
|
333
293
|
*/
|
|
334
294
|
defaultColumns: PropTypes.number,
|
|
335
|
-
|
|
336
295
|
/**
|
|
337
296
|
* The default height of the component in px. This is provided for server-side rendering.
|
|
338
297
|
*/
|
|
339
298
|
defaultHeight: PropTypes.number,
|
|
340
|
-
|
|
341
299
|
/**
|
|
342
300
|
* The default spacing of the component. Like `spacing`, it is a factor of the theme's spacing. This is provided for server-side rendering.
|
|
343
301
|
*/
|
|
344
302
|
defaultSpacing: PropTypes.number,
|
|
345
|
-
|
|
346
303
|
/**
|
|
347
304
|
* Defines the space between children. It is a factor of the theme's spacing.
|
|
348
305
|
* @default 1
|
|
349
306
|
*/
|
|
350
307
|
spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),
|
|
351
|
-
|
|
352
308
|
/**
|
|
353
309
|
* Allows defining system overrides as well as additional CSS styles.
|
|
354
310
|
*/
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
console.warn(['MUI: The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`.', '', "You should use `import { MobileDatePicker } from '@mui/x-date-pickers'`", "or `import { MobileDatePicker } from '@mui/x-date-pickers/MobileDatePicker'`", '', '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
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
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'));
|
|
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
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
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'));
|
|
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
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
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'));
|
|
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
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
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'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import Pagination from '@mui/material/Pagination';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedPagination(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(Pagination, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import PaginationItem from '@mui/material/PaginationItem';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedPaginationItem(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(PaginationItem, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
var warnedOnce = false;
|
|
4
|
-
|
|
5
4
|
var warn = function warn() {
|
|
6
5
|
if (!warnedOnce) {
|
|
7
6
|
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'));
|
|
8
7
|
warnedOnce = true;
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* @ignore - do not document.
|
|
14
12
|
*/
|
package/legacy/Rating/Rating.js
CHANGED
|
@@ -3,16 +3,15 @@ import * as React from 'react';
|
|
|
3
3
|
import Rating from '@mui/material/Rating';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
var warnedOnce = false;
|
|
6
|
+
|
|
6
7
|
/**
|
|
7
8
|
* @ignore - do not document.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default /*#__PURE__*/React.forwardRef(function DeprecatedRating(props, ref) {
|
|
11
11
|
if (!warnedOnce) {
|
|
12
12
|
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'));
|
|
13
13
|
warnedOnce = true;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
return /*#__PURE__*/_jsx(Rating, _extends({
|
|
17
16
|
ref: ref
|
|
18
17
|
}, props));
|