@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.
Files changed (89) hide show
  1. package/AdapterDateFns/AdapterDateFns.d.ts +3 -3
  2. package/AdapterDateFns/index.d.ts +1 -1
  3. package/AdapterDayjs/AdapterDayjs.d.ts +3 -3
  4. package/AdapterDayjs/index.d.ts +1 -1
  5. package/AdapterLuxon/AdapterLuxon.d.ts +3 -3
  6. package/AdapterLuxon/index.d.ts +1 -1
  7. package/AdapterMoment/AdapterMoment.d.ts +3 -3
  8. package/AdapterMoment/index.d.ts +1 -1
  9. package/CHANGELOG.md +66 -4
  10. package/CalendarPicker/CalendarPicker.d.ts +14 -14
  11. package/CalendarPicker/index.d.ts +2 -2
  12. package/CalendarPickerSkeleton/CalendarPickerSkeleton.d.ts +13 -13
  13. package/CalendarPickerSkeleton/index.d.ts +2 -2
  14. package/ClockPicker/ClockPicker.d.ts +14 -14
  15. package/ClockPicker/index.d.ts +2 -2
  16. package/DatePicker/DatePicker.d.ts +10 -10
  17. package/DatePicker/index.d.ts +2 -2
  18. package/DateRangePicker/DateRangePicker.d.ts +11 -11
  19. package/DateRangePicker/index.d.ts +2 -2
  20. package/DateRangePickerDay/DateRangePickerDay.d.ts +13 -13
  21. package/DateRangePickerDay/index.d.ts +2 -2
  22. package/DateTimePicker/DateTimePicker.d.ts +10 -10
  23. package/DateTimePicker/index.d.ts +2 -2
  24. package/DesktopDatePicker/DesktopDatePicker.d.ts +10 -10
  25. package/DesktopDatePicker/index.d.ts +2 -2
  26. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -10
  27. package/DesktopDateRangePicker/index.d.ts +2 -2
  28. package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +10 -10
  29. package/DesktopDateTimePicker/index.d.ts +2 -2
  30. package/DesktopTimePicker/DesktopTimePicker.d.ts +10 -10
  31. package/DesktopTimePicker/index.d.ts +2 -2
  32. package/LoadingButton/LoadingButton.js +7 -14
  33. package/LoadingButton/loadingButtonClasses.d.ts +22 -22
  34. package/LocalizationProvider/LocalizationProvider.d.ts +10 -10
  35. package/LocalizationProvider/index.d.ts +2 -2
  36. package/Masonry/masonryClasses.d.ts +8 -8
  37. package/MobileDatePicker/MobileDatePicker.d.ts +10 -10
  38. package/MobileDatePicker/index.d.ts +2 -2
  39. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -10
  40. package/MobileDateRangePicker/index.d.ts +2 -2
  41. package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -10
  42. package/MobileDateTimePicker/index.d.ts +2 -2
  43. package/MobileTimePicker/MobileTimePicker.d.ts +10 -10
  44. package/MobileTimePicker/index.d.ts +2 -2
  45. package/MonthPicker/MonthPicker.d.ts +13 -13
  46. package/MonthPicker/index.d.ts +2 -2
  47. package/PickersDay/PickersDay.d.ts +13 -13
  48. package/PickersDay/index.d.ts +2 -2
  49. package/StaticDatePicker/StaticDatePicker.d.ts +10 -10
  50. package/StaticDatePicker/index.d.ts +2 -2
  51. package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -10
  52. package/StaticDateRangePicker/index.d.ts +2 -2
  53. package/StaticDateTimePicker/StaticDateTimePicker.d.ts +10 -10
  54. package/StaticDateTimePicker/index.d.ts +2 -2
  55. package/StaticTimePicker/StaticTimePicker.d.ts +10 -10
  56. package/StaticTimePicker/index.d.ts +2 -2
  57. package/TabPanel/tabPanelClasses.d.ts +8 -8
  58. package/TimePicker/TimePicker.d.ts +10 -10
  59. package/TimePicker/index.d.ts +2 -2
  60. package/Timeline/Timeline.d.ts +59 -59
  61. package/Timeline/TimelineContext.d.ts +6 -6
  62. package/Timeline/index.d.ts +5 -5
  63. package/Timeline/timelineClasses.d.ts +3 -3
  64. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  65. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  66. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  67. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  68. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  69. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  70. package/TreeItem/treeItemClasses.d.ts +24 -24
  71. package/TreeView/treeViewClasses.d.ts +8 -8
  72. package/YearPicker/YearPicker.d.ts +14 -14
  73. package/YearPicker/index.d.ts +2 -2
  74. package/index.js +1 -1
  75. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  76. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  77. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  78. package/internal/svg-icons/Calendar.d.ts +7 -7
  79. package/internal/svg-icons/Clock.d.ts +7 -7
  80. package/internal/svg-icons/DateRange.d.ts +7 -7
  81. package/internal/svg-icons/Pen.d.ts +7 -7
  82. package/internal/svg-icons/Time.d.ts +7 -7
  83. package/legacy/LoadingButton/LoadingButton.js +7 -14
  84. package/legacy/index.js +1 -1
  85. package/modern/LoadingButton/LoadingButton.js +7 -14
  86. package/modern/index.js +1 -1
  87. package/node/LoadingButton/LoadingButton.js +7 -14
  88. package/node/index.js +1 -1
  89. 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>;
@@ -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,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.91
1
+ /** @license MUI v5.0.0-alpha.92
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
- return /*#__PURE__*/_jsx(LoadingButtonRoot, _extends({
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' ? /*#__PURE__*/_jsxs(React.Fragment, {
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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.91
1
+ /** @license MUI v5.0.0-alpha.92
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -146,7 +146,12 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
146
146
  });
147
147
 
148
148
  const classes = useUtilityClasses(ownerState);
149
- return /*#__PURE__*/_jsx(LoadingButtonRoot, _extends({
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' ? /*#__PURE__*/_jsxs(React.Fragment, {
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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.91
1
+ /** @license MUI v5.0.0-alpha.92
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -165,7 +165,12 @@ const LoadingButton = /*#__PURE__*/React.forwardRef(function LoadingButton(inPro
165
165
  variant
166
166
  });
167
167
  const classes = useUtilityClasses(ownerState);
168
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(LoadingButtonRoot, (0, _extends2.default)({
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' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.91
1
+ /** @license MUI v5.0.0-alpha.92
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/lab",
3
- "version": "5.0.0-alpha.91",
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.90",
52
- "@mui/system": "^5.9.1",
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",