@mui/lab 5.0.0-alpha.142 → 5.0.0-alpha.144
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.d.ts +3 -0
- package/AdapterDateFns/AdapterDateFns.js +3 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -0
- package/AdapterDayjs/AdapterDayjs.js +3 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -0
- package/AdapterLuxon/AdapterLuxon.js +3 -1
- package/AdapterMoment/AdapterMoment.d.ts +3 -0
- package/AdapterMoment/AdapterMoment.js +3 -1
- package/CHANGELOG.md +235 -38
- package/CalendarPicker/CalendarPicker.d.ts +1 -0
- package/CalendarPicker/CalendarPicker.js +1 -0
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +1 -0
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -0
- package/ClockPicker/ClockPicker.d.ts +1 -0
- package/ClockPicker/ClockPicker.js +1 -0
- package/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/DateRangePicker/DateRangePicker.js +1 -0
- package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -0
- package/DateRangePickerDay/DateRangePickerDay.js +1 -0
- package/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/DateTimePicker/DateTimePicker.js +1 -0
- package/DesktopDatePicker/DesktopDatePicker.d.ts +1 -0
- package/DesktopDatePicker/DesktopDatePicker.js +1 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +1 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +1 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
- package/DesktopTimePicker/DesktopTimePicker.d.ts +1 -0
- package/DesktopTimePicker/DesktopTimePicker.js +1 -0
- package/LoadingButton/LoadingButton.d.ts +52 -50
- package/LoadingButton/LoadingButton.js +1 -1
- package/LocalizationProvider/LocalizationProvider.d.ts +1 -0
- package/LocalizationProvider/LocalizationProvider.js +1 -0
- package/Masonry/Masonry.d.ts +46 -41
- package/MobileDatePicker/MobileDatePicker.d.ts +1 -0
- package/MobileDatePicker/MobileDatePicker.js +1 -0
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +1 -0
- package/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +1 -0
- package/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
- package/MobileTimePicker/MobileTimePicker.d.ts +1 -0
- package/MobileTimePicker/MobileTimePicker.js +1 -0
- package/MonthPicker/MonthPicker.d.ts +1 -0
- package/MonthPicker/MonthPicker.js +1 -0
- package/PickersDay/PickersDay.d.ts +1 -0
- package/PickersDay/PickersDay.js +1 -0
- package/README.md +1 -9
- package/StaticDatePicker/StaticDatePicker.d.ts +1 -0
- package/StaticDatePicker/StaticDatePicker.js +1 -0
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +1 -0
- package/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +1 -0
- package/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/StaticTimePicker/StaticTimePicker.d.ts +1 -0
- package/StaticTimePicker/StaticTimePicker.js +1 -0
- package/TabList/TabList.d.ts +14 -12
- package/TimePicker/TimePicker.d.ts +1 -0
- package/TimePicker/TimePicker.js +1 -0
- package/TreeItem/TreeItem.d.ts +5 -85
- package/TreeItem/TreeItem.js +18 -375
- package/TreeItem/index.d.ts +2 -6
- package/TreeItem/index.js +1 -3
- package/TreeView/TreeView.d.ts +5 -141
- package/TreeView/TreeView.js +18 -824
- package/TreeView/index.d.ts +2 -4
- package/TreeView/index.js +1 -2
- package/YearPicker/YearPicker.d.ts +1 -0
- package/YearPicker/YearPicker.js +1 -0
- package/index.js +1 -1
- package/legacy/AdapterDateFns/AdapterDateFns.js +3 -1
- package/legacy/AdapterDayjs/AdapterDayjs.js +3 -1
- package/legacy/AdapterLuxon/AdapterLuxon.js +3 -1
- package/legacy/AdapterMoment/AdapterMoment.js +3 -1
- package/legacy/CalendarPicker/CalendarPicker.js +1 -0
- package/legacy/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -0
- package/legacy/ClockPicker/ClockPicker.js +1 -0
- package/legacy/DateRangePicker/DateRangePicker.js +1 -0
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -0
- package/legacy/DateTimePicker/DateTimePicker.js +1 -0
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +1 -0
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +1 -0
- package/legacy/LoadingButton/LoadingButton.js +1 -1
- package/legacy/LocalizationProvider/LocalizationProvider.js +1 -0
- package/legacy/MobileDatePicker/MobileDatePicker.js +1 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
- package/legacy/MobileTimePicker/MobileTimePicker.js +1 -0
- package/legacy/MonthPicker/MonthPicker.js +1 -0
- package/legacy/PickersDay/PickersDay.js +1 -0
- package/legacy/StaticDatePicker/StaticDatePicker.js +1 -0
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/legacy/StaticTimePicker/StaticTimePicker.js +1 -0
- package/legacy/TimePicker/TimePicker.js +1 -0
- package/legacy/TreeItem/TreeItem.js +18 -372
- package/legacy/TreeItem/index.js +1 -3
- package/legacy/TreeView/TreeView.js +18 -878
- package/legacy/TreeView/index.js +1 -2
- package/legacy/YearPicker/YearPicker.js +1 -0
- package/legacy/index.js +1 -1
- package/modern/AdapterDateFns/AdapterDateFns.js +3 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +3 -1
- package/modern/AdapterLuxon/AdapterLuxon.js +3 -1
- package/modern/AdapterMoment/AdapterMoment.js +3 -1
- package/modern/CalendarPicker/CalendarPicker.js +1 -0
- package/modern/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -0
- package/modern/ClockPicker/ClockPicker.js +1 -0
- package/modern/DateRangePicker/DateRangePicker.js +1 -0
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -0
- package/modern/DateTimePicker/DateTimePicker.js +1 -0
- package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -0
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
- package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -0
- package/modern/LoadingButton/LoadingButton.js +1 -1
- package/modern/LocalizationProvider/LocalizationProvider.js +1 -0
- package/modern/MobileDatePicker/MobileDatePicker.js +1 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
- package/modern/MobileTimePicker/MobileTimePicker.js +1 -0
- package/modern/MonthPicker/MonthPicker.js +1 -0
- package/modern/PickersDay/PickersDay.js +1 -0
- package/modern/StaticDatePicker/StaticDatePicker.js +1 -0
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/modern/StaticTimePicker/StaticTimePicker.js +1 -0
- package/modern/TimePicker/TimePicker.js +1 -0
- package/modern/TreeItem/TreeItem.js +18 -375
- package/modern/TreeItem/index.js +1 -3
- package/modern/TreeView/TreeView.js +18 -824
- package/modern/TreeView/index.js +1 -2
- package/modern/YearPicker/YearPicker.js +1 -0
- package/modern/index.js +1 -1
- package/node/AdapterDateFns/AdapterDateFns.js +3 -1
- package/node/AdapterDayjs/AdapterDayjs.js +3 -1
- package/node/AdapterLuxon/AdapterLuxon.js +3 -1
- package/node/AdapterMoment/AdapterMoment.js +3 -1
- package/node/CalendarPicker/CalendarPicker.js +1 -0
- package/node/CalendarPickerSkeleton/CalendarPickerSkeleton.js +1 -0
- package/node/ClockPicker/ClockPicker.js +1 -0
- package/node/DateRangePicker/DateRangePicker.js +1 -0
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -0
- package/node/DateTimePicker/DateTimePicker.js +1 -0
- package/node/DesktopDatePicker/DesktopDatePicker.js +1 -0
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -0
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +1 -0
- package/node/DesktopTimePicker/DesktopTimePicker.js +1 -0
- package/node/LoadingButton/LoadingButton.js +1 -1
- package/node/LocalizationProvider/LocalizationProvider.js +1 -0
- package/node/MobileDatePicker/MobileDatePicker.js +1 -0
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -0
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
- package/node/MobileTimePicker/MobileTimePicker.js +1 -0
- package/node/MonthPicker/MonthPicker.js +1 -0
- package/node/PickersDay/PickersDay.js +1 -0
- package/node/StaticDatePicker/StaticDatePicker.js +1 -0
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -0
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/node/StaticTimePicker/StaticTimePicker.js +1 -0
- package/node/TimePicker/TimePicker.js +1 -0
- package/node/TreeItem/TreeItem.js +18 -374
- package/node/TreeItem/index.js +9 -21
- package/node/TreeView/TreeView.js +18 -824
- package/node/TreeView/index.js +8 -18
- package/node/YearPicker/YearPicker.js +1 -0
- package/node/index.js +1 -1
- package/package.json +11 -11
- package/TreeItem/TreeItemContent.d.ts +0 -50
- package/TreeItem/TreeItemContent.js +0 -112
- package/TreeItem/treeItemClasses.d.ts +0 -24
- package/TreeItem/treeItemClasses.js +0 -7
- package/TreeItem/useTreeItem.d.ts +0 -11
- package/TreeItem/useTreeItem.js +0 -68
- package/TreeView/TreeViewContext.js +0 -10
- package/TreeView/descendants.js +0 -186
- package/TreeView/treeViewClasses.d.ts +0 -8
- package/TreeView/treeViewClasses.js +0 -7
- package/legacy/TreeItem/TreeItemContent.js +0 -108
- package/legacy/TreeItem/treeItemClasses.js +0 -7
- package/legacy/TreeItem/useTreeItem.js +0 -67
- package/legacy/TreeView/TreeViewContext.js +0 -10
- package/legacy/TreeView/descendants.js +0 -193
- package/legacy/TreeView/treeViewClasses.js +0 -7
- package/modern/TreeItem/TreeItemContent.js +0 -112
- package/modern/TreeItem/treeItemClasses.js +0 -7
- package/modern/TreeItem/useTreeItem.js +0 -68
- package/modern/TreeView/TreeViewContext.js +0 -10
- package/modern/TreeView/descendants.js +0 -186
- package/modern/TreeView/treeViewClasses.js +0 -7
- package/node/TreeItem/TreeItemContent.js +0 -120
- package/node/TreeItem/treeItemClasses.js +0 -16
- package/node/TreeItem/useTreeItem.js +0 -77
- package/node/TreeView/TreeViewContext.js +0 -18
- package/node/TreeView/descendants.js +0 -194
- package/node/TreeView/treeViewClasses.js +0 -16
|
@@ -3,6 +3,7 @@ type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerPro
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The DesktopDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The DesktopDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDateRangePicker() {
|
|
@@ -3,6 +3,7 @@ type DesktopDateTimePickerComponent = (<TDate>(props: DesktopDateTimePickerProps
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The DesktopDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const DesktopDateTimePicker: DesktopDateTimePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The DesktopDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopDateTimePicker() {
|
|
@@ -3,6 +3,7 @@ type DesktopTimePickerComponent = (<TDate>(props: DesktopTimePickerProps<TDate>
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The DesktopTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const DesktopTimePicker: DesktopTimePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The DesktopTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedDesktopTimePicker() {
|
|
@@ -3,55 +3,57 @@ import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
|
3
3
|
import { Theme } from '@mui/material/styles';
|
|
4
4
|
import { SxProps } from '@mui/system';
|
|
5
5
|
|
|
6
|
+
export interface LoadingButtonOwnProps {
|
|
7
|
+
/**
|
|
8
|
+
* Override or extend the styles applied to the component.
|
|
9
|
+
*/
|
|
10
|
+
classes?: Partial<ButtonClasses> & {
|
|
11
|
+
/** Styles applied to the root element. */
|
|
12
|
+
root?: string;
|
|
13
|
+
/** Styles applied to the root element if `loading={true}`. */
|
|
14
|
+
loading?: string;
|
|
15
|
+
/** Styles applied to the loadingIndicator element. */
|
|
16
|
+
loadingIndicator?: string;
|
|
17
|
+
/** Styles applied to the loadingIndicator element if `loadingPosition="center"`. */
|
|
18
|
+
loadingIndicatorCenter?: string;
|
|
19
|
+
/** Styles applied to the loadingIndicator element if `loadingPosition="start"`. */
|
|
20
|
+
loadingIndicatorStart?: string;
|
|
21
|
+
/** Styles applied to the loadingIndicator element if `loadingPosition="end"`. */
|
|
22
|
+
loadingIndicatorEnd?: string;
|
|
23
|
+
/** Styles applied to the endIcon element if `loading={true}` and `loadingPosition="end"`. */
|
|
24
|
+
endIconLoadingEnd?: string;
|
|
25
|
+
/** Styles applied to the startIcon element if `loading={true}` and `loadingPosition="start"`. */
|
|
26
|
+
startIconLoadingStart?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Element placed before the children if the button is in loading state.
|
|
35
|
+
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
36
|
+
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
37
|
+
* @default <CircularProgress color="inherit" size={16} />
|
|
38
|
+
*/
|
|
39
|
+
loadingIndicator?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
42
|
+
* @default 'center'
|
|
43
|
+
*/
|
|
44
|
+
loadingPosition?: 'start' | 'end' | 'center';
|
|
45
|
+
/**
|
|
46
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47
|
+
*/
|
|
48
|
+
sx?: SxProps<Theme>;
|
|
49
|
+
}
|
|
50
|
+
|
|
6
51
|
export type LoadingButtonTypeMap<
|
|
7
|
-
|
|
8
|
-
|
|
52
|
+
AdditionalProps = {},
|
|
53
|
+
RootComponent extends React.ElementType = 'button',
|
|
9
54
|
> = ExtendButtonTypeMap<{
|
|
10
|
-
props:
|
|
11
|
-
|
|
12
|
-
* Override or extend the styles applied to the component.
|
|
13
|
-
*/
|
|
14
|
-
classes?: Partial<ButtonClasses> & {
|
|
15
|
-
/** Styles applied to the root element. */
|
|
16
|
-
root?: string;
|
|
17
|
-
/** Styles applied to the root element if `loading={true}`. */
|
|
18
|
-
loading?: string;
|
|
19
|
-
/** Styles applied to the loadingIndicator element. */
|
|
20
|
-
loadingIndicator?: string;
|
|
21
|
-
/** Styles applied to the loadingIndicator element if `loadingPosition="center"`. */
|
|
22
|
-
loadingIndicatorCenter?: string;
|
|
23
|
-
/** Styles applied to the loadingIndicator element if `loadingPosition="start"`. */
|
|
24
|
-
loadingIndicatorStart?: string;
|
|
25
|
-
/** Styles applied to the loadingIndicator element if `loadingPosition="end"`. */
|
|
26
|
-
loadingIndicatorEnd?: string;
|
|
27
|
-
/** Styles applied to the endIcon element if `loading={true}` and `loadingPosition="end"`. */
|
|
28
|
-
endIconLoadingEnd?: string;
|
|
29
|
-
/** Styles applied to the startIcon element if `loading={true}` and `loadingPosition="start"`. */
|
|
30
|
-
startIconLoadingStart?: string;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* If `true`, the loading indicator is shown and the button becomes disabled.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
loading?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Element placed before the children if the button is in loading state.
|
|
39
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
40
|
-
* By default we render a `CircularProgress` that is labelled by the button itself.
|
|
41
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
42
|
-
*/
|
|
43
|
-
loadingIndicator?: React.ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
46
|
-
* @default 'center'
|
|
47
|
-
*/
|
|
48
|
-
loadingPosition?: 'start' | 'end' | 'center';
|
|
49
|
-
/**
|
|
50
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
51
|
-
*/
|
|
52
|
-
sx?: SxProps<Theme>;
|
|
53
|
-
};
|
|
54
|
-
defaultComponent: D;
|
|
55
|
+
props: AdditionalProps & LoadingButtonOwnProps;
|
|
56
|
+
defaultComponent: RootComponent;
|
|
55
57
|
}>;
|
|
56
58
|
|
|
57
59
|
/**
|
|
@@ -68,8 +70,8 @@ export type LoadingButtonTypeMap<
|
|
|
68
70
|
declare const LoadingButton: ExtendButton<LoadingButtonTypeMap>;
|
|
69
71
|
|
|
70
72
|
export type LoadingButtonProps<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
> = OverrideProps<LoadingButtonTypeMap<
|
|
73
|
+
RootComponent extends React.ElementType = LoadingButtonTypeMap['defaultComponent'],
|
|
74
|
+
AdditionalProps = {},
|
|
75
|
+
> = OverrideProps<LoadingButtonTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
74
76
|
|
|
75
77
|
export default LoadingButton;
|
|
@@ -75,7 +75,7 @@ const LoadingButtonRoot = styled(Button, {
|
|
|
75
75
|
marginLeft: -8
|
|
76
76
|
}
|
|
77
77
|
}));
|
|
78
|
-
const LoadingButtonLoadingIndicator = styled('
|
|
78
|
+
const LoadingButtonLoadingIndicator = styled('span', {
|
|
79
79
|
name: 'MuiLoadingButton',
|
|
80
80
|
slot: 'LoadingIndicator',
|
|
81
81
|
overridesResolver: (props, styles) => {
|
|
@@ -3,6 +3,7 @@ type LocalizationProviderComponent = ((props: LocalizationProviderProps & React.
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The LocalizationProvider component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const LocalizationProvider: LocalizationProviderComponent;
|
|
@@ -7,6 +7,7 @@ const warn = () => {
|
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated The LocalizationProvider component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
10
11
|
* @ignore - do not document.
|
|
11
12
|
*/
|
|
12
13
|
const LocalizationProvider = /*#__PURE__*/React.forwardRef(function DeprecatedLocalizationProvider() {
|
package/Masonry/Masonry.d.ts
CHANGED
|
@@ -3,44 +3,49 @@ import { OverridableComponent, OverrideProps } from '@mui/material/OverridableCo
|
|
|
3
3
|
import { Theme } from '@mui/material/styles';
|
|
4
4
|
import { MasonryClasses } from './masonryClasses';
|
|
5
5
|
|
|
6
|
-
export interface
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
6
|
+
export interface MasonryOwnProps {
|
|
7
|
+
/**
|
|
8
|
+
* The content of the component.
|
|
9
|
+
*/
|
|
10
|
+
children: NonNullable<React.ReactNode>;
|
|
11
|
+
/**
|
|
12
|
+
* Override or extend the styles applied to the component.
|
|
13
|
+
*/
|
|
14
|
+
classes?: Partial<MasonryClasses>;
|
|
15
|
+
/**
|
|
16
|
+
* Number of columns.
|
|
17
|
+
* @default 4
|
|
18
|
+
*/
|
|
19
|
+
columns?: ResponsiveStyleValue<number | string>;
|
|
20
|
+
/**
|
|
21
|
+
* The default number of columns of the component. This is provided for server-side rendering.
|
|
22
|
+
*/
|
|
23
|
+
defaultColumns?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The default height of the component in px. This is provided for server-side rendering.
|
|
26
|
+
*/
|
|
27
|
+
defaultHeight?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The default spacing of the component. Like `spacing`, it is a factor of the theme's spacing. This is provided for server-side rendering.
|
|
30
|
+
*/
|
|
31
|
+
defaultSpacing?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the space between children. It is a factor of the theme's spacing.
|
|
34
|
+
* @default 1
|
|
35
|
+
*/
|
|
36
|
+
spacing?: ResponsiveStyleValue<number | string>;
|
|
37
|
+
/**
|
|
38
|
+
* Allows defining system overrides as well as additional CSS styles.
|
|
39
|
+
*/
|
|
40
|
+
sx?: SxProps<Theme>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface MasonryTypeMap<
|
|
44
|
+
AdditionalProps = {},
|
|
45
|
+
RootComponent extends React.ElementType = 'div',
|
|
46
|
+
> {
|
|
47
|
+
props: AdditionalProps & MasonryOwnProps;
|
|
48
|
+
defaultComponent: RootComponent;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
51
|
*
|
|
@@ -55,8 +60,8 @@ export interface MasonryTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
55
60
|
declare const Masonry: OverridableComponent<MasonryTypeMap>;
|
|
56
61
|
|
|
57
62
|
export type MasonryProps<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
> = OverrideProps<MasonryTypeMap<
|
|
63
|
+
RootComponent extends React.ElementType = MasonryTypeMap['defaultComponent'],
|
|
64
|
+
AdditionalProps = {},
|
|
65
|
+
> = OverrideProps<MasonryTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
61
66
|
|
|
62
67
|
export default Masonry;
|
|
@@ -3,6 +3,7 @@ type MobileDatePickerComponent = (<TDate>(props: MobileDatePickerProps<TDate> &
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileDatePicker: MobileDatePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The MobileDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const MobileDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDatePicker(props, ref) {
|
|
@@ -3,6 +3,7 @@ type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileDateRangePicker: MobileDateRangePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The MobileDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateRangePicker() {
|
|
@@ -3,6 +3,7 @@ type MobileDateTimePickerComponent = (<TDate>(props: MobileDateTimePickerProps<T
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileDateTimePicker: MobileDateTimePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The MobileDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileDateTimePicker() {
|
|
@@ -3,6 +3,7 @@ type MobileTimePickerComponent = (<TDate>(props: MobileTimePickerProps<TDate> &
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MobileTimePicker: MobileTimePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The MobileTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const MobileTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedMobileTimePicker() {
|
|
@@ -3,6 +3,7 @@ type MonthPickerComponent = (<TDate>(props: MonthPickerProps<TDate> & React.RefA
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const MonthPicker: MonthPickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The MonthPicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const MonthPicker = /*#__PURE__*/React.forwardRef(function DeprecatedMonthPicker() {
|
|
@@ -3,6 +3,7 @@ type PickersDayComponent = (<TDate>(props: PickersDayProps<TDate> & React.RefAtt
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The PickersDay component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const PickersDay: PickersDayComponent;
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The PickersDay component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const PickersDay = /*#__PURE__*/React.forwardRef(function DeprecatedPickersDay() {
|
package/README.md
CHANGED
|
@@ -9,11 +9,7 @@ Install the package in your project directory with:
|
|
|
9
9
|
<!-- #default-branch-switch -->
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
// with npm
|
|
13
12
|
npm install @mui/lab
|
|
14
|
-
|
|
15
|
-
// with yarn
|
|
16
|
-
yarn add @mui/lab
|
|
17
13
|
```
|
|
18
14
|
|
|
19
15
|
The lab has peer dependencies on the Material Design components and on the Emotion library.
|
|
@@ -22,15 +18,11 @@ If you are not already using them in your project, you can install with:
|
|
|
22
18
|
<!-- #default-branch-switch -->
|
|
23
19
|
|
|
24
20
|
```bash
|
|
25
|
-
// with npm
|
|
26
21
|
npm install @mui/material @emotion/react @emotion/styled
|
|
27
|
-
|
|
28
|
-
// with yarn
|
|
29
|
-
yarn add @mui/material @emotion/react @emotion/styled
|
|
30
22
|
```
|
|
31
23
|
|
|
32
24
|
## Documentation
|
|
33
25
|
|
|
34
26
|
<!-- #default-branch-switch -->
|
|
35
27
|
|
|
36
|
-
[
|
|
28
|
+
Visit [https://mui.com/material-ui/about-the-lab/](https://mui.com/material-ui/about-the-lab/) to view the full documentation.
|
|
@@ -3,6 +3,7 @@ type StaticDatePickerComponent = (<TDate>(props: StaticDatePickerProps<TDate> &
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const StaticDatePicker: StaticDatePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The StaticDatePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const StaticDatePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDatePicker() {
|
|
@@ -3,6 +3,7 @@ type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The StaticDateRangePicker component was moved from `@mui/lab` to `@mui/x-date-pickers-pro`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateRangePicker() {
|
|
@@ -3,6 +3,7 @@ type StaticDateTimePickerComponent = (<TDate>(props: StaticDateTimePickerProps<T
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const StaticDateTimePicker: StaticDateTimePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The StaticDateTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const StaticDateTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticDateTimePicker() {
|
|
@@ -3,6 +3,7 @@ type StaticTimePickerComponent = (<TDate>(props: StaticTimePickerProps<TDate> &
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const StaticTimePicker: StaticTimePickerComponent;
|
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const StaticTimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedStaticTimePicker() {
|
package/TabList/TabList.d.ts
CHANGED
|
@@ -3,17 +3,19 @@ import { TabsTypeMap } from '@mui/material/Tabs';
|
|
|
3
3
|
import { DistributiveOmit } from '@mui/types';
|
|
4
4
|
import { OverridableComponent, OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
5
|
|
|
6
|
+
interface TabListOwnProps extends DistributiveOmit<TabsTypeMap['props'], 'children' | 'value'> {
|
|
7
|
+
/**
|
|
8
|
+
* A list of `<Tab />` elements.
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
export interface TabListTypeMap<
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
AdditionalProps = {},
|
|
15
|
+
RootComponent extends React.ElementType = TabsTypeMap['defaultComponent'],
|
|
9
16
|
> {
|
|
10
|
-
props:
|
|
11
|
-
|
|
12
|
-
* A list of `<Tab />` elements.
|
|
13
|
-
*/
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
} & DistributiveOmit<TabsTypeMap['props'], 'children' | 'value'>;
|
|
16
|
-
defaultComponent: D;
|
|
17
|
+
props: AdditionalProps & TabListOwnProps;
|
|
18
|
+
defaultComponent: RootComponent;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -32,8 +34,8 @@ declare const TabList: OverridableComponent<TabListTypeMap>;
|
|
|
32
34
|
export type TabListClassKey = keyof NonNullable<TabListTypeMap['props']['classes']>;
|
|
33
35
|
|
|
34
36
|
export type TabListProps<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
> = OverrideProps<TabListTypeMap<
|
|
37
|
+
RootComponent extends React.ElementType = TabListTypeMap['defaultComponent'],
|
|
38
|
+
AdditionalProps = {},
|
|
39
|
+
> = OverrideProps<TabListTypeMap<AdditionalProps, RootComponent>, RootComponent>;
|
|
38
40
|
|
|
39
41
|
export default TabList;
|
|
@@ -3,6 +3,7 @@ type TimePickerComponent = (<TDate>(props: TimePickerProps<TDate> & React.RefAtt
|
|
|
3
3
|
propTypes?: any;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
6
7
|
* @ignore - do not document.
|
|
7
8
|
*/
|
|
8
9
|
declare const TimePicker: TimePickerComponent;
|
package/TimePicker/TimePicker.js
CHANGED
|
@@ -8,6 +8,7 @@ const warn = () => {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated The StaticTimePicker component was moved from `@mui/lab` to `@mui/x-date-pickers`. More information about this migration on our blog: https://mui.com/blog/lab-date-pickers-to-mui-x/.
|
|
11
12
|
* @ignore - do not document.
|
|
12
13
|
*/
|
|
13
14
|
const TimePicker = /*#__PURE__*/React.forwardRef(function DeprecatedTimePicker() {
|