@mui/lab 5.0.0-alpha.91 → 5.0.0-alpha.92
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 -3
- package/AdapterDateFns/index.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
- package/AdapterDayjs/index.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
- package/AdapterLuxon/index.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.ts +3 -3
- package/AdapterMoment/index.d.ts +1 -1
- package/CHANGELOG.md +66 -4
- package/CalendarPicker/CalendarPicker.d.ts +14 -14
- package/CalendarPicker/index.d.ts +2 -2
- package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
- package/CalendarPickerSkeleton/index.d.ts +2 -2
- package/ClockPicker/ClockPicker.d.ts +14 -14
- package/ClockPicker/index.d.ts +2 -2
- package/DatePicker/DatePicker.d.ts +10 -10
- package/DatePicker/index.d.ts +2 -2
- package/DateRangePicker/DateRangePicker.d.ts +11 -11
- package/DateRangePicker/index.d.ts +2 -2
- package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
- package/DateRangePickerDay/index.d.ts +2 -2
- package/DateTimePicker/DateTimePicker.d.ts +10 -10
- package/DateTimePicker/index.d.ts +2 -2
- package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
- package/DesktopDatePicker/index.d.ts +2 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
- package/DesktopDateRangePicker/index.d.ts +2 -2
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
- package/DesktopDateTimePicker/index.d.ts +2 -2
- package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
- package/DesktopTimePicker/index.d.ts +2 -2
- package/LoadingButton/LoadingButton.js +7 -14
- package/LoadingButton/loadingButtonClasses.d.ts +22 -22
- package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
- package/LocalizationProvider/index.d.ts +2 -2
- package/Masonry/masonryClasses.d.ts +8 -8
- package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
- package/MobileDatePicker/index.d.ts +2 -2
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
- package/MobileDateRangePicker/index.d.ts +2 -2
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
- package/MobileDateTimePicker/index.d.ts +2 -2
- package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
- package/MobileTimePicker/index.d.ts +2 -2
- package/MonthPicker/MonthPicker.d.ts +13 -13
- package/MonthPicker/index.d.ts +2 -2
- package/PickersDay/PickersDay.d.ts +13 -13
- package/PickersDay/index.d.ts +2 -2
- package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
- package/StaticDatePicker/index.d.ts +2 -2
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
- package/StaticDateRangePicker/index.d.ts +2 -2
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
- package/StaticDateTimePicker/index.d.ts +2 -2
- package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
- package/StaticTimePicker/index.d.ts +2 -2
- package/TabPanel/tabPanelClasses.d.ts +8 -8
- package/TimePicker/TimePicker.d.ts +10 -10
- package/TimePicker/index.d.ts +2 -2
- package/Timeline/Timeline.d.ts +59 -59
- package/Timeline/TimelineContext.d.ts +6 -6
- package/Timeline/index.d.ts +5 -5
- package/Timeline/timelineClasses.d.ts +3 -3
- package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
- package/TimelineContent/timelineContentClasses.d.ts +14 -14
- package/TimelineDot/timelineDotClasses.d.ts +24 -24
- package/TimelineItem/timelineItemClasses.d.ts +16 -16
- package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
- package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
- package/TreeItem/treeItemClasses.d.ts +24 -24
- package/TreeView/treeViewClasses.d.ts +8 -8
- package/YearPicker/YearPicker.d.ts +14 -14
- package/YearPicker/index.d.ts +2 -2
- package/index.js +1 -1
- package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
- package/internal/svg-icons/ArrowLeft.d.ts +7 -7
- package/internal/svg-icons/ArrowRight.d.ts +7 -7
- package/internal/svg-icons/Calendar.d.ts +7 -7
- package/internal/svg-icons/Clock.d.ts +7 -7
- package/internal/svg-icons/DateRange.d.ts +7 -7
- package/internal/svg-icons/Pen.d.ts +7 -7
- package/internal/svg-icons/Time.d.ts +7 -7
- package/legacy/LoadingButton/LoadingButton.js +7 -14
- package/legacy/index.js +1 -1
- package/modern/LoadingButton/LoadingButton.js +7 -14
- package/modern/index.js +1 -1
- package/node/LoadingButton/LoadingButton.js +7 -14
- package/node/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TimelineItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
5
|
-
positionLeft: string;
|
|
6
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
7
|
-
positionRight: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
/** Styles applied to the root element if TimelineOppositeContent isn't provided. */
|
|
11
|
-
missingOppositeContent: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type TimelineItemClassKey = keyof TimelineItemClasses;
|
|
14
|
-
export declare function getTimelineItemUtilityClass(slot: string): string;
|
|
15
|
-
declare const timelineItemClasses: TimelineItemClasses;
|
|
16
|
-
export default timelineItemClasses;
|
|
1
|
+
export interface TimelineItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
5
|
+
positionLeft: string;
|
|
6
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
7
|
+
positionRight: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
/** Styles applied to the root element if TimelineOppositeContent isn't provided. */
|
|
11
|
+
missingOppositeContent: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type TimelineItemClassKey = keyof TimelineItemClasses;
|
|
14
|
+
export declare function getTimelineItemUtilityClass(slot: string): string;
|
|
15
|
+
declare const timelineItemClasses: TimelineItemClasses;
|
|
16
|
+
export default timelineItemClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface TimelineOppositeContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
-
positionRight: string;
|
|
6
|
-
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
-
positionLeft: string;
|
|
8
|
-
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
-
positionAlternate: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
|
|
12
|
-
export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
|
|
13
|
-
declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
|
|
14
|
-
export default timelineOppositeContentClasses;
|
|
1
|
+
export interface TimelineOppositeContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="right"`. */
|
|
5
|
+
positionRight: string;
|
|
6
|
+
/** Styles applied to the root element if `position="left"`. */
|
|
7
|
+
positionLeft: string;
|
|
8
|
+
/** Styles applied to the root element if `position="alternate"`. */
|
|
9
|
+
positionAlternate: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type TimelineOppositeContentClassKey = keyof TimelineOppositeContentClasses;
|
|
12
|
+
export declare function getTimelineOppositeContentUtilityClass(slot: string): string;
|
|
13
|
+
declare const timelineOppositeContentClasses: TimelineOppositeContentClasses;
|
|
14
|
+
export default timelineOppositeContentClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TimelineSeparatorClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
|
|
6
|
-
export declare function getTimelineSeparatorUtilityClass(slot: string): string;
|
|
7
|
-
declare const timelineSeparatorClasses: TimelineSeparatorClasses;
|
|
8
|
-
export default timelineSeparatorClasses;
|
|
1
|
+
export interface TimelineSeparatorClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TimelineSeparatorClassKey = keyof TimelineSeparatorClasses;
|
|
6
|
+
export declare function getTimelineSeparatorUtilityClass(slot: string): string;
|
|
7
|
+
declare const timelineSeparatorClasses: TimelineSeparatorClasses;
|
|
8
|
+
export default timelineSeparatorClasses;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface TreeItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the transition component. */
|
|
5
|
-
group: string;
|
|
6
|
-
/** Styles applied to the content element. */
|
|
7
|
-
content: string;
|
|
8
|
-
/** State class applied to the content element when expanded. */
|
|
9
|
-
expanded: string;
|
|
10
|
-
/** State class applied to the content element when selected. */
|
|
11
|
-
selected: string;
|
|
12
|
-
/** State class applied to the content element when focused. */
|
|
13
|
-
focused: string;
|
|
14
|
-
/** State class applied to the element when disabled. */
|
|
15
|
-
disabled: string;
|
|
16
|
-
/** Styles applied to the tree node icon. */
|
|
17
|
-
iconContainer: string;
|
|
18
|
-
/** Styles applied to the label element. */
|
|
19
|
-
label: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type TreeItemClassKey = keyof TreeItemClasses;
|
|
22
|
-
export declare function getTreeItemUtilityClass(slot: string): string;
|
|
23
|
-
declare const treeItemClasses: TreeItemClasses;
|
|
24
|
-
export default treeItemClasses;
|
|
1
|
+
export interface TreeItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the transition component. */
|
|
5
|
+
group: string;
|
|
6
|
+
/** Styles applied to the content element. */
|
|
7
|
+
content: string;
|
|
8
|
+
/** State class applied to the content element when expanded. */
|
|
9
|
+
expanded: string;
|
|
10
|
+
/** State class applied to the content element when selected. */
|
|
11
|
+
selected: string;
|
|
12
|
+
/** State class applied to the content element when focused. */
|
|
13
|
+
focused: string;
|
|
14
|
+
/** State class applied to the element when disabled. */
|
|
15
|
+
disabled: string;
|
|
16
|
+
/** Styles applied to the tree node icon. */
|
|
17
|
+
iconContainer: string;
|
|
18
|
+
/** Styles applied to the label element. */
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type TreeItemClassKey = keyof TreeItemClasses;
|
|
22
|
+
export declare function getTreeItemUtilityClass(slot: string): string;
|
|
23
|
+
declare const treeItemClasses: TreeItemClasses;
|
|
24
|
+
export default treeItemClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TreeViewClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TreeViewClassKey = keyof TreeViewClasses;
|
|
6
|
-
export declare function getTreeViewUtilityClass(slot: string): string;
|
|
7
|
-
declare const treeViewClasses: TreeViewClasses;
|
|
8
|
-
export default treeViewClasses;
|
|
1
|
+
export interface TreeViewClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TreeViewClassKey = keyof TreeViewClasses;
|
|
6
|
+
export declare function getTreeViewUtilityClass(slot: string): string;
|
|
7
|
+
declare const treeViewClasses: TreeViewClasses;
|
|
8
|
+
export default treeViewClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
-
propTypes?: any;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
declare const YearPicker: YearPickerComponent;
|
|
9
|
-
export default YearPicker;
|
|
10
|
-
export declare const yearPickerClasses: {};
|
|
11
|
-
export declare const getYearPickerUtilityClass: (slot: string) => string;
|
|
12
|
-
export declare type YearPickerClasses = any;
|
|
13
|
-
export declare type YearPickerClassKey = any;
|
|
14
|
-
export declare type YearPickerProps<TDate> = Record<any, any>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type YearPickerComponent = (<TDate>(props: YearPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
3
|
+
propTypes?: any;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* @ignore - do not document.
|
|
7
|
+
*/
|
|
8
|
+
declare const YearPicker: YearPickerComponent;
|
|
9
|
+
export default YearPicker;
|
|
10
|
+
export declare const yearPickerClasses: {};
|
|
11
|
+
export declare const getYearPickerUtilityClass: (slot: string) => string;
|
|
12
|
+
export declare type YearPickerClasses = any;
|
|
13
|
+
export declare type YearPickerClassKey = any;
|
|
14
|
+
export declare type YearPickerProps<TDate> = Record<any, any>;
|
package/YearPicker/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './YearPicker';
|
|
2
|
-
export * from './YearPicker';
|
|
1
|
+
export { default } from './YearPicker';
|
|
2
|
+
export * from './YearPicker';
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
-
muiName: string;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* @ignore - internal component.
|
|
6
|
-
*/
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
2
|
+
muiName: string;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @ignore - internal component.
|
|
6
|
+
*/
|
|
7
|
+
export default _default;
|
|
@@ -138,7 +138,12 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
var classes = useUtilityClasses(ownerState);
|
|
141
|
-
|
|
141
|
+
var loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
142
|
+
className: classes.loadingIndicator,
|
|
143
|
+
ownerState: ownerState,
|
|
144
|
+
children: loadingIndicator
|
|
145
|
+
}) : null;
|
|
146
|
+
return /*#__PURE__*/_jsxs(LoadingButtonRoot, _extends({
|
|
142
147
|
disabled: disabled || loading,
|
|
143
148
|
id: id,
|
|
144
149
|
ref: ref
|
|
@@ -146,19 +151,7 @@ var LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inProps
|
|
|
146
151
|
variant: variant,
|
|
147
152
|
classes: classes,
|
|
148
153
|
ownerState: ownerState,
|
|
149
|
-
children: ownerState.loadingPosition === 'end' ?
|
|
150
|
-
children: [children, loading && /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
151
|
-
className: classes.loadingIndicator,
|
|
152
|
-
ownerState: ownerState,
|
|
153
|
-
children: loadingIndicator
|
|
154
|
-
})]
|
|
155
|
-
}) : /*#__PURE__*/_jsxs(React.Fragment, {
|
|
156
|
-
children: [loading && /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
157
|
-
className: classes.loadingIndicator,
|
|
158
|
-
ownerState: ownerState,
|
|
159
|
-
children: loadingIndicator
|
|
160
|
-
}), children]
|
|
161
|
-
})
|
|
154
|
+
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
162
155
|
}));
|
|
163
156
|
});
|
|
164
157
|
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
package/legacy/index.js
CHANGED
|
@@ -146,7 +146,12 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
146
146
|
});
|
|
147
147
|
|
|
148
148
|
const classes = useUtilityClasses(ownerState);
|
|
149
|
-
|
|
149
|
+
const loadingButtonLoadingIndicator = loading ? /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
150
|
+
className: classes.loadingIndicator,
|
|
151
|
+
ownerState: ownerState,
|
|
152
|
+
children: loadingIndicator
|
|
153
|
+
}) : null;
|
|
154
|
+
return /*#__PURE__*/_jsxs(LoadingButtonRoot, _extends({
|
|
150
155
|
disabled: disabled || loading,
|
|
151
156
|
id: id,
|
|
152
157
|
ref: ref
|
|
@@ -154,19 +159,7 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
154
159
|
variant: variant,
|
|
155
160
|
classes: classes,
|
|
156
161
|
ownerState: ownerState,
|
|
157
|
-
children: ownerState.loadingPosition === 'end' ?
|
|
158
|
-
children: [children, loading && /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
159
|
-
className: classes.loadingIndicator,
|
|
160
|
-
ownerState: ownerState,
|
|
161
|
-
children: loadingIndicator
|
|
162
|
-
})]
|
|
163
|
-
}) : /*#__PURE__*/_jsxs(React.Fragment, {
|
|
164
|
-
children: [loading && /*#__PURE__*/_jsx(LoadingButtonLoadingIndicator, {
|
|
165
|
-
className: classes.loadingIndicator,
|
|
166
|
-
ownerState: ownerState,
|
|
167
|
-
children: loadingIndicator
|
|
168
|
-
}), children]
|
|
169
|
-
})
|
|
162
|
+
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
170
163
|
}));
|
|
171
164
|
});
|
|
172
165
|
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
package/modern/index.js
CHANGED
|
@@ -165,7 +165,12 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
165
165
|
variant
|
|
166
166
|
});
|
|
167
167
|
const classes = useUtilityClasses(ownerState);
|
|
168
|
-
|
|
168
|
+
const loadingButtonLoadingIndicator = loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LoadingButtonLoadingIndicator, {
|
|
169
|
+
className: classes.loadingIndicator,
|
|
170
|
+
ownerState: ownerState,
|
|
171
|
+
children: loadingIndicator
|
|
172
|
+
}) : null;
|
|
173
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(LoadingButtonRoot, (0, _extends2.default)({
|
|
169
174
|
disabled: disabled || loading,
|
|
170
175
|
id: id,
|
|
171
176
|
ref: ref
|
|
@@ -173,19 +178,7 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
|
|
|
173
178
|
variant: variant,
|
|
174
179
|
classes: classes,
|
|
175
180
|
ownerState: ownerState,
|
|
176
|
-
children: ownerState.loadingPosition === 'end' ?
|
|
177
|
-
children: [children, loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(LoadingButtonLoadingIndicator, {
|
|
178
|
-
className: classes.loadingIndicator,
|
|
179
|
-
ownerState: ownerState,
|
|
180
|
-
children: loadingIndicator
|
|
181
|
-
})]
|
|
182
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
183
|
-
children: [loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(LoadingButtonLoadingIndicator, {
|
|
184
|
-
className: classes.loadingIndicator,
|
|
185
|
-
ownerState: ownerState,
|
|
186
|
-
children: loadingIndicator
|
|
187
|
-
}), children]
|
|
188
|
-
})
|
|
181
|
+
children: [ownerState.loadingPosition === 'end' ? children : loadingButtonLoadingIndicator, ownerState.loadingPosition === 'end' ? loadingButtonLoadingIndicator : children]
|
|
189
182
|
}));
|
|
190
183
|
});
|
|
191
184
|
process.env.NODE_ENV !== "production" ? LoadingButton.propTypes
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/lab",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.92",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Laboratory for new MUI modules.",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/runtime": "^7.17.2",
|
|
51
|
-
"@mui/base": "5.0.0-alpha.
|
|
52
|
-
"@mui/system": "^5.9.
|
|
51
|
+
"@mui/base": "5.0.0-alpha.91",
|
|
52
|
+
"@mui/system": "^5.9.2",
|
|
53
53
|
"@mui/utils": "^5.9.1",
|
|
54
54
|
"clsx": "^1.2.1",
|
|
55
55
|
"prop-types": "^15.8.1",
|