@mui/lab 5.0.0-alpha.95 → 5.0.0-alpha.96

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 (101) 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 +52 -0
  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 +1 -1
  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/TimelineConnector.js +1 -1
  65. package/TimelineConnector/timelineConnectorClasses.d.ts +8 -8
  66. package/TimelineContent/timelineContentClasses.d.ts +14 -14
  67. package/TimelineDot/TimelineDot.js +7 -7
  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/TreeItem.js +7 -7
  73. package/TreeItem/treeItemClasses.d.ts +24 -24
  74. package/TreeView/treeViewClasses.d.ts +8 -8
  75. package/YearPicker/YearPicker.d.ts +14 -14
  76. package/YearPicker/index.d.ts +2 -2
  77. package/index.js +1 -1
  78. package/internal/svg-icons/ArrowDropDown.d.ts +7 -7
  79. package/internal/svg-icons/ArrowLeft.d.ts +7 -7
  80. package/internal/svg-icons/ArrowRight.d.ts +7 -7
  81. package/internal/svg-icons/Calendar.d.ts +7 -7
  82. package/internal/svg-icons/Clock.d.ts +7 -7
  83. package/internal/svg-icons/DateRange.d.ts +7 -7
  84. package/internal/svg-icons/Pen.d.ts +7 -7
  85. package/internal/svg-icons/Time.d.ts +7 -7
  86. package/legacy/LoadingButton/LoadingButton.js +1 -1
  87. package/legacy/TimelineConnector/TimelineConnector.js +1 -1
  88. package/legacy/TimelineDot/TimelineDot.js +7 -7
  89. package/legacy/TreeItem/TreeItem.js +7 -7
  90. package/legacy/index.js +1 -1
  91. package/modern/LoadingButton/LoadingButton.js +1 -1
  92. package/modern/TimelineConnector/TimelineConnector.js +1 -1
  93. package/modern/TimelineDot/TimelineDot.js +7 -7
  94. package/modern/TreeItem/TreeItem.js +7 -7
  95. package/modern/index.js +1 -1
  96. package/node/LoadingButton/LoadingButton.js +1 -1
  97. package/node/TimelineConnector/TimelineConnector.js +1 -1
  98. package/node/TimelineDot/TimelineDot.js +7 -7
  99. package/node/TreeItem/TreeItem.js +7 -7
  100. package/node/index.js +1 -1
  101. package/package.json +3 -3
@@ -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;
@@ -64,30 +64,30 @@ const StyledTreeItemContent = styled(TreeItemContent, {
64
64
  cursor: 'pointer',
65
65
  WebkitTapHighlightColor: 'transparent',
66
66
  '&:hover': {
67
- backgroundColor: theme.palette.action.hover,
67
+ backgroundColor: (theme.vars || theme).palette.action.hover,
68
68
  // Reset on touch devices, it doesn't add specificity
69
69
  '@media (hover: none)': {
70
70
  backgroundColor: 'transparent'
71
71
  }
72
72
  },
73
73
  [`&.${treeItemClasses.disabled}`]: {
74
- opacity: theme.palette.action.disabledOpacity,
74
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
75
75
  backgroundColor: 'transparent'
76
76
  },
77
77
  [`&.${treeItemClasses.focused}`]: {
78
- backgroundColor: theme.palette.action.focus
78
+ backgroundColor: (theme.vars || theme).palette.action.focus
79
79
  },
80
80
  [`&.${treeItemClasses.selected}`]: {
81
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
81
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
82
82
  '&:hover': {
83
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
83
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
84
84
  // Reset on touch devices, it doesn't add specificity
85
85
  '@media (hover: none)': {
86
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
86
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
87
87
  }
88
88
  },
89
89
  [`&.${treeItemClasses.focused}`]: {
90
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
90
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
91
91
  }
92
92
  },
93
93
  [`& .${treeItemClasses.iconContainer}`]: {
@@ -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.95
1
+ /** @license MUI v5.0.0-alpha.96
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;
@@ -90,7 +90,7 @@ var LoadingButtonLoadingIndicator = styled('div', {
90
90
  }, ownerState.loadingPosition === 'center' && {
91
91
  left: '50%',
92
92
  transform: 'translate(-50%)',
93
- color: theme.palette.action.disabled
93
+ color: (theme.vars || theme).palette.action.disabled
94
94
  }, ownerState.loadingPosition === 'end' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
95
95
  right: ownerState.size === 'small' ? 10 : 14
96
96
  }, ownerState.loadingPosition === 'end' && ownerState.variant === 'text' && {
@@ -26,7 +26,7 @@ var TimelineConnectorRoot = styled('span', {
26
26
  var theme = _ref.theme;
27
27
  return {
28
28
  width: 2,
29
- backgroundColor: theme.palette.grey[400],
29
+ backgroundColor: (theme.vars || theme).palette.grey[400],
30
30
  flexGrow: 1
31
31
  };
32
32
  });
@@ -36,23 +36,23 @@ var TimelineDotRoot = styled('span', {
36
36
  borderWidth: 2,
37
37
  padding: 4,
38
38
  borderRadius: '50%',
39
- boxShadow: theme.shadows[1],
39
+ boxShadow: (theme.vars || theme).shadows[1],
40
40
  margin: '11.5px 0'
41
41
  }, ownerState.variant === 'filled' && _extends({
42
42
  borderColor: 'transparent'
43
43
  }, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
44
- color: theme.palette.grey[50],
45
- backgroundColor: theme.palette.grey[400]
44
+ color: (theme.vars || theme).palette.grey[50],
45
+ backgroundColor: (theme.vars || theme).palette.grey[400]
46
46
  } : {
47
- color: theme.palette[ownerState.color].contrastText,
48
- backgroundColor: theme.palette[ownerState.color].main
47
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
48
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
49
49
  })), ownerState.variant === 'outlined' && _extends({
50
50
  boxShadow: 'none',
51
51
  backgroundColor: 'transparent'
52
52
  }, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
53
- borderColor: theme.palette.grey[400]
53
+ borderColor: (theme.vars || theme).palette.grey[400]
54
54
  } : {
55
- borderColor: theme.palette[ownerState.color].main
55
+ borderColor: (theme.vars || theme).palette[ownerState.color].main
56
56
  })));
57
57
  });
58
58
  var TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps, ref) {
@@ -62,28 +62,28 @@ var StyledTreeItemContent = styled(TreeItemContent, {
62
62
  cursor: 'pointer',
63
63
  WebkitTapHighlightColor: 'transparent',
64
64
  '&:hover': {
65
- backgroundColor: theme.palette.action.hover,
65
+ backgroundColor: (theme.vars || theme).palette.action.hover,
66
66
  // Reset on touch devices, it doesn't add specificity
67
67
  '@media (hover: none)': {
68
68
  backgroundColor: 'transparent'
69
69
  }
70
70
  }
71
71
  }, _defineProperty(_ref4, "&.".concat(treeItemClasses.disabled), {
72
- opacity: theme.palette.action.disabledOpacity,
72
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
73
73
  backgroundColor: 'transparent'
74
74
  }), _defineProperty(_ref4, "&.".concat(treeItemClasses.focused), {
75
- backgroundColor: theme.palette.action.focus
75
+ backgroundColor: (theme.vars || theme).palette.action.focus
76
76
  }), _defineProperty(_ref4, "&.".concat(treeItemClasses.selected), _defineProperty({
77
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
77
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
78
78
  '&:hover': {
79
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
79
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
80
80
  // Reset on touch devices, it doesn't add specificity
81
81
  '@media (hover: none)': {
82
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
82
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
83
83
  }
84
84
  }
85
85
  }, "&.".concat(treeItemClasses.focused), {
86
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
86
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
87
87
  })), _defineProperty(_ref4, "& .".concat(treeItemClasses.iconContainer), {
88
88
  marginRight: 4,
89
89
  width: 15,
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.95
1
+ /** @license MUI v5.0.0-alpha.96
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.
@@ -100,7 +100,7 @@ const LoadingButtonLoadingIndicator = styled('div', {
100
100
  }, ownerState.loadingPosition === 'center' && {
101
101
  left: '50%',
102
102
  transform: 'translate(-50%)',
103
- color: theme.palette.action.disabled
103
+ color: (theme.vars || theme).palette.action.disabled
104
104
  }, ownerState.loadingPosition === 'end' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
105
105
  right: ownerState.size === 'small' ? 10 : 14
106
106
  }, ownerState.loadingPosition === 'end' && ownerState.variant === 'text' && {
@@ -28,7 +28,7 @@ const TimelineConnectorRoot = styled('span', {
28
28
  }) => {
29
29
  return {
30
30
  width: 2,
31
- backgroundColor: theme.palette.grey[400],
31
+ backgroundColor: (theme.vars || theme).palette.grey[400],
32
32
  flexGrow: 1
33
33
  };
34
34
  });
@@ -41,23 +41,23 @@ const TimelineDotRoot = styled('span', {
41
41
  borderWidth: 2,
42
42
  padding: 4,
43
43
  borderRadius: '50%',
44
- boxShadow: theme.shadows[1],
44
+ boxShadow: (theme.vars || theme).shadows[1],
45
45
  margin: '11.5px 0'
46
46
  }, ownerState.variant === 'filled' && _extends({
47
47
  borderColor: 'transparent'
48
48
  }, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
49
- color: theme.palette.grey[50],
50
- backgroundColor: theme.palette.grey[400]
49
+ color: (theme.vars || theme).palette.grey[50],
50
+ backgroundColor: (theme.vars || theme).palette.grey[400]
51
51
  } : {
52
- color: theme.palette[ownerState.color].contrastText,
53
- backgroundColor: theme.palette[ownerState.color].main
52
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
53
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
54
54
  })), ownerState.variant === 'outlined' && _extends({
55
55
  boxShadow: 'none',
56
56
  backgroundColor: 'transparent'
57
57
  }, ownerState.color !== 'inherit' && _extends({}, ownerState.color === 'grey' ? {
58
- borderColor: theme.palette.grey[400]
58
+ borderColor: (theme.vars || theme).palette.grey[400]
59
59
  } : {
60
- borderColor: theme.palette[ownerState.color].main
60
+ borderColor: (theme.vars || theme).palette[ownerState.color].main
61
61
  }))));
62
62
  const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps, ref) {
63
63
  const props = useThemeProps({
@@ -64,30 +64,30 @@ const StyledTreeItemContent = styled(TreeItemContent, {
64
64
  cursor: 'pointer',
65
65
  WebkitTapHighlightColor: 'transparent',
66
66
  '&:hover': {
67
- backgroundColor: theme.palette.action.hover,
67
+ backgroundColor: (theme.vars || theme).palette.action.hover,
68
68
  // Reset on touch devices, it doesn't add specificity
69
69
  '@media (hover: none)': {
70
70
  backgroundColor: 'transparent'
71
71
  }
72
72
  },
73
73
  [`&.${treeItemClasses.disabled}`]: {
74
- opacity: theme.palette.action.disabledOpacity,
74
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
75
75
  backgroundColor: 'transparent'
76
76
  },
77
77
  [`&.${treeItemClasses.focused}`]: {
78
- backgroundColor: theme.palette.action.focus
78
+ backgroundColor: (theme.vars || theme).palette.action.focus
79
79
  },
80
80
  [`&.${treeItemClasses.selected}`]: {
81
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
81
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
82
82
  '&:hover': {
83
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
83
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
84
84
  // Reset on touch devices, it doesn't add specificity
85
85
  '@media (hover: none)': {
86
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
86
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
87
87
  }
88
88
  },
89
89
  [`&.${treeItemClasses.focused}`]: {
90
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
90
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
91
91
  }
92
92
  },
93
93
  [`& .${treeItemClasses.iconContainer}`]: {
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.95
1
+ /** @license MUI v5.0.0-alpha.96
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.
@@ -124,7 +124,7 @@ const LoadingButtonLoadingIndicator = (0, _styles.styled)('div', {
124
124
  }, ownerState.loadingPosition === 'center' && {
125
125
  left: '50%',
126
126
  transform: 'translate(-50%)',
127
- color: theme.palette.action.disabled
127
+ color: (theme.vars || theme).palette.action.disabled
128
128
  }, ownerState.loadingPosition === 'end' && (ownerState.variant === 'outlined' || ownerState.variant === 'contained') && {
129
129
  right: ownerState.size === 'small' ? 10 : 14
130
130
  }, ownerState.loadingPosition === 'end' && ownerState.variant === 'text' && {
@@ -50,7 +50,7 @@ const TimelineConnectorRoot = (0, _styles.styled)('span', {
50
50
  }) => {
51
51
  return {
52
52
  width: 2,
53
- backgroundColor: theme.palette.grey[400],
53
+ backgroundColor: (theme.vars || theme).palette.grey[400],
54
54
  flexGrow: 1
55
55
  };
56
56
  });
@@ -64,23 +64,23 @@ const TimelineDotRoot = (0, _styles.styled)('span', {
64
64
  borderWidth: 2,
65
65
  padding: 4,
66
66
  borderRadius: '50%',
67
- boxShadow: theme.shadows[1],
67
+ boxShadow: (theme.vars || theme).shadows[1],
68
68
  margin: '11.5px 0'
69
69
  }, ownerState.variant === 'filled' && (0, _extends2.default)({
70
70
  borderColor: 'transparent'
71
71
  }, ownerState.color !== 'inherit' && (0, _extends2.default)({}, ownerState.color === 'grey' ? {
72
- color: theme.palette.grey[50],
73
- backgroundColor: theme.palette.grey[400]
72
+ color: (theme.vars || theme).palette.grey[50],
73
+ backgroundColor: (theme.vars || theme).palette.grey[400]
74
74
  } : {
75
- color: theme.palette[ownerState.color].contrastText,
76
- backgroundColor: theme.palette[ownerState.color].main
75
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
76
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
77
77
  })), ownerState.variant === 'outlined' && (0, _extends2.default)({
78
78
  boxShadow: 'none',
79
79
  backgroundColor: 'transparent'
80
80
  }, ownerState.color !== 'inherit' && (0, _extends2.default)({}, ownerState.color === 'grey' ? {
81
- borderColor: theme.palette.grey[400]
81
+ borderColor: (theme.vars || theme).palette.grey[400]
82
82
  } : {
83
- borderColor: theme.palette[ownerState.color].main
83
+ borderColor: (theme.vars || theme).palette[ownerState.color].main
84
84
  }))));
85
85
  const TimelineDot = /*#__PURE__*/React.forwardRef(function TimelineDot(inProps, ref) {
86
86
  const props = (0, _styles.useThemeProps)({
@@ -91,30 +91,30 @@ const StyledTreeItemContent = (0, _styles.styled)(_TreeItemContent.default, {
91
91
  cursor: 'pointer',
92
92
  WebkitTapHighlightColor: 'transparent',
93
93
  '&:hover': {
94
- backgroundColor: theme.palette.action.hover,
94
+ backgroundColor: (theme.vars || theme).palette.action.hover,
95
95
  // Reset on touch devices, it doesn't add specificity
96
96
  '@media (hover: none)': {
97
97
  backgroundColor: 'transparent'
98
98
  }
99
99
  },
100
100
  [`&.${_treeItemClasses.default.disabled}`]: {
101
- opacity: theme.palette.action.disabledOpacity,
101
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
102
102
  backgroundColor: 'transparent'
103
103
  },
104
104
  [`&.${_treeItemClasses.default.focused}`]: {
105
- backgroundColor: theme.palette.action.focus
105
+ backgroundColor: (theme.vars || theme).palette.action.focus
106
106
  },
107
107
  [`&.${_treeItemClasses.default.selected}`]: {
108
- backgroundColor: (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
108
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
109
109
  '&:hover': {
110
- backgroundColor: (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
110
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
111
111
  // Reset on touch devices, it doesn't add specificity
112
112
  '@media (hover: none)': {
113
- backgroundColor: (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
113
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
114
114
  }
115
115
  },
116
116
  [`&.${_treeItemClasses.default.focused}`]: {
117
- backgroundColor: (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
117
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _styles.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
118
118
  }
119
119
  },
120
120
  [`& .${_treeItemClasses.default.iconContainer}`]: {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.95
1
+ /** @license MUI v5.0.0-alpha.96
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.