@mui/lab 5.0.0-alpha.90 → 5.0.0-alpha.93

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 (94) 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 +196 -6
  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/TimelineDot.d.ts +6 -1
  67. package/TimelineDot/TimelineDot.js +3 -1
  68. package/TimelineDot/timelineDotClasses.d.ts +24 -24
  69. package/TimelineItem/timelineItemClasses.d.ts +16 -16
  70. package/TimelineOppositeContent/timelineOppositeContentClasses.d.ts +14 -14
  71. package/TimelineSeparator/timelineSeparatorClasses.d.ts +8 -8
  72. package/TreeItem/treeItemClasses.d.ts +24 -24
  73. package/TreeView/treeViewClasses.d.ts +8 -8
  74. package/YearPicker/YearPicker.d.ts +14 -14
  75. package/YearPicker/index.d.ts +2 -2
  76. package/index.js +1 -1
  77. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  78. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  79. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  80. package/internal/svg-icons/Calendar.d.ts +7 -7
  81. package/internal/svg-icons/Clock.d.ts +7 -7
  82. package/internal/svg-icons/DateRange.d.ts +7 -7
  83. package/internal/svg-icons/Pen.d.ts +7 -7
  84. package/internal/svg-icons/Time.d.ts +7 -7
  85. package/legacy/LoadingButton/LoadingButton.js +7 -14
  86. package/legacy/TimelineDot/TimelineDot.js +3 -1
  87. package/legacy/index.js +1 -1
  88. package/modern/LoadingButton/LoadingButton.js +7 -14
  89. package/modern/TimelineDot/TimelineDot.js +3 -1
  90. package/modern/index.js +1 -1
  91. package/node/LoadingButton/LoadingButton.js +7 -14
  92. package/node/TimelineDot/TimelineDot.js +3 -1
  93. package/node/index.js +1 -1
  94. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- /**
3
- * @ignore - internal component.
4
- */
5
- declare const TimelineContext: React.Context<{}>;
6
- export default TimelineContext;
1
+ import * as React from 'react';
2
+ /**
3
+ * @ignore - internal component.
4
+ */
5
+ declare const TimelineContext: React.Context<{}>;
6
+ export default TimelineContext;
@@ -1,5 +1,5 @@
1
- export { default } from './Timeline';
2
- export declare type TimelineClassKey = import('./Timeline').TimelineClassKey;
3
- export declare type TimelineProps = import('./Timeline').TimelineProps;
4
- export { default as timelineClasses } from './timelineClasses';
5
- export * from './timelineClasses';
1
+ export { default } from './Timeline';
2
+ export declare type TimelineClassKey = import('./Timeline').TimelineClassKey;
3
+ export declare type TimelineProps = import('./Timeline').TimelineProps;
4
+ export { default as timelineClasses } from './timelineClasses';
5
+ export * from './timelineClasses';
@@ -1,3 +1,3 @@
1
- export declare function getTimelineUtilityClass(slot: string): string;
2
- declare const timelineClasses: Record<"root" | "positionLeft" | "positionRight" | "positionAlternate", string>;
3
- export default timelineClasses;
1
+ export declare function getTimelineUtilityClass(slot: string): string;
2
+ declare const timelineClasses: Record<"root" | "positionLeft" | "positionRight" | "positionAlternate", string>;
3
+ export default timelineClasses;
@@ -1,8 +1,8 @@
1
- export interface TimelineConnectorClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
6
- export declare function getTimelineConnectorUtilityClass(slot: string): string;
7
- declare const timelineConnectorClasses: TimelineConnectorClasses;
8
- export default timelineConnectorClasses;
1
+ export interface TimelineConnectorClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TimelineConnectorClassKey = keyof TimelineConnectorClasses;
6
+ export declare function getTimelineConnectorUtilityClass(slot: string): string;
7
+ declare const timelineConnectorClasses: TimelineConnectorClasses;
8
+ export default timelineConnectorClasses;
@@ -1,14 +1,14 @@
1
- export interface TimelineContentClasses {
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 TimelineContentClassKey = keyof TimelineContentClasses;
12
- export declare function getTimelineContentUtilityClass(slot: string): string;
13
- declare const timelineContentClasses: TimelineContentClasses;
14
- export default timelineContentClasses;
1
+ export interface TimelineContentClasses {
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 TimelineContentClassKey = keyof TimelineContentClasses;
12
+ export declare function getTimelineContentUtilityClass(slot: string): string;
13
+ declare const timelineContentClasses: TimelineContentClasses;
14
+ export default timelineContentClasses;
@@ -7,6 +7,8 @@ import { TimelineDotClasses } from './timelineDotClasses';
7
7
 
8
8
  export interface TimelineDotPropsVariantOverrides {}
9
9
 
10
+ export interface TimelineDotPropsColorOverrides {}
11
+
10
12
  export interface TimelineDotProps extends StandardProps<React.HTMLAttributes<HTMLSpanElement>> {
11
13
  /**
12
14
  * The content of the component.
@@ -20,7 +22,10 @@ export interface TimelineDotProps extends StandardProps<React.HTMLAttributes<HTM
20
22
  * The dot can have a different colors.
21
23
  * @default 'grey'
22
24
  */
23
- color?: 'inherit' | 'grey' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
25
+ color?: OverridableStringUnion<
26
+ 'inherit' | 'grey' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
27
+ TimelineDotPropsColorOverrides
28
+ >;
24
29
  /**
25
30
  * The system prop that allows defining system overrides as well as additional CSS styles.
26
31
  */
@@ -111,7 +111,9 @@ process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
111
111
  * The dot can have a different colors.
112
112
  * @default 'grey'
113
113
  */
114
- color: PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
114
+ color: PropTypes
115
+ /* @typescript-to-proptypes-ignore */
116
+ .oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
115
117
 
116
118
  /**
117
119
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -1,24 +1,24 @@
1
- export interface TimelineDotClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="filled"`. */
5
- filled: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
9
- filledGrey: string;
10
- /** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
11
- outlinedGrey: string;
12
- /** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
13
- filledPrimary: string;
14
- /** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
15
- outlinedPrimary: string;
16
- /** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
17
- filledSecondary: string;
18
- /** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
19
- outlinedSecondary: string;
20
- }
21
- export declare type TimelineDotClassKey = keyof TimelineDotClasses;
22
- export declare function getTimelineDotUtilityClass(slot: string): string;
23
- declare const timelineDotClasses: TimelineDotClasses;
24
- export default timelineDotClasses;
1
+ export interface TimelineDotClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="filled"`. */
5
+ filled: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `color="grey"` and `variant="filled"`. */
9
+ filledGrey: string;
10
+ /** Styles applied to the root element if `color="grey"` and `variant="outlined"`. */
11
+ outlinedGrey: string;
12
+ /** Styles applied to the root element if `color="primary"` and `variant="filled"`. */
13
+ filledPrimary: string;
14
+ /** Styles applied to the root element if `color="primary"` and `variant="outlined"`. */
15
+ outlinedPrimary: string;
16
+ /** Styles applied to the root element if `color="secondary"` and `variant="filled"`. */
17
+ filledSecondary: string;
18
+ /** Styles applied to the root element if `color="secondary"` and `variant="outlined"`. */
19
+ outlinedSecondary: string;
20
+ }
21
+ export declare type TimelineDotClassKey = keyof TimelineDotClasses;
22
+ export declare function getTimelineDotUtilityClass(slot: string): string;
23
+ declare const timelineDotClasses: TimelineDotClasses;
24
+ export default timelineDotClasses;
@@ -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.90
1
+ /** @license MUI v5.0.0-alpha.93
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
@@ -107,7 +107,9 @@ process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
107
107
  * The dot can have a different colors.
108
108
  * @default 'grey'
109
109
  */
110
- color: PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
110
+ color: PropTypes
111
+ /* @typescript-to-proptypes-ignore */
112
+ .oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
111
113
 
112
114
  /**
113
115
  * The system prop that allows defining system overrides as well as additional CSS styles.
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.90
1
+ /** @license MUI v5.0.0-alpha.93
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
@@ -111,7 +111,9 @@ process.env.NODE_ENV !== "production" ? TimelineDot.propTypes
111
111
  * The dot can have a different colors.
112
112
  * @default 'grey'
113
113
  */
114
- color: PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
114
+ color: PropTypes
115
+ /* @typescript-to-proptypes-ignore */
116
+ .oneOfType([PropTypes.oneOf(['error', 'grey', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
115
117
 
116
118
  /**
117
119
  * The system prop that allows defining system overrides as well as additional CSS styles.
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.90
1
+ /** @license MUI v5.0.0-alpha.93
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