@mui/material 5.8.3 → 5.8.6

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 (158) hide show
  1. package/Alert/Alert.js +19 -11
  2. package/AppBar/AppBar.js +22 -5
  3. package/Autocomplete/autocompleteClasses.d.ts +1 -1
  4. package/Avatar/Avatar.js +7 -4
  5. package/Badge/Badge.js +2 -2
  6. package/Button/buttonClasses.d.ts +24 -0
  7. package/Button/buttonClasses.js +1 -1
  8. package/CHANGELOG.md +224 -14
  9. package/Chip/Chip.js +31 -30
  10. package/Dialog/Dialog.js +11 -6
  11. package/FilledInput/FilledInput.js +28 -13
  12. package/Grid/Grid.d.ts +73 -52
  13. package/Grid/Grid.js +94 -40
  14. package/Grow/Grow.js +1 -2
  15. package/Hidden/withWidth.js +0 -2
  16. package/Input/Input.js +1 -1
  17. package/InputBase/InputBase.js +2 -2
  18. package/LinearProgress/LinearProgress.js +6 -2
  19. package/Link/Link.js +10 -17
  20. package/Link/getTextDecoration.d.ts +15 -0
  21. package/Link/getTextDecoration.js +29 -0
  22. package/Modal/Modal.d.ts +2 -0
  23. package/Modal/Modal.js +25 -8
  24. package/OutlinedInput/OutlinedInput.js +40 -10
  25. package/Popover/Popover.d.ts +7 -0
  26. package/Popover/index.js +1 -0
  27. package/README.md +6 -9
  28. package/Skeleton/Skeleton.js +8 -3
  29. package/Slider/Slider.d.ts +3 -1
  30. package/Slider/Slider.js +24 -22
  31. package/Snackbar/Snackbar.js +6 -20
  32. package/SnackbarContent/SnackbarContent.js +3 -3
  33. package/SpeedDialAction/SpeedDialAction.js +7 -7
  34. package/Stack/Stack.js +1 -1
  35. package/StepConnector/StepConnector.js +14 -11
  36. package/StepContent/StepContent.js +1 -1
  37. package/StepIcon/StepIcon.js +2 -1
  38. package/Switch/Switch.js +11 -11
  39. package/Tab/Tab.d.ts +0 -1
  40. package/TableCell/TableCell.js +5 -5
  41. package/Tabs/Tabs.js +16 -2
  42. package/Tooltip/Tooltip.js +1 -1
  43. package/index.js +1 -1
  44. package/legacy/Alert/Alert.js +19 -11
  45. package/legacy/AppBar/AppBar.js +23 -4
  46. package/legacy/Avatar/Avatar.js +7 -4
  47. package/legacy/Badge/Badge.js +2 -2
  48. package/legacy/Button/buttonClasses.js +1 -1
  49. package/legacy/Chip/Chip.js +31 -30
  50. package/legacy/Dialog/Dialog.js +11 -6
  51. package/legacy/FilledInput/FilledInput.js +28 -14
  52. package/legacy/Grid/Grid.js +97 -48
  53. package/legacy/Grow/Grow.js +1 -2
  54. package/legacy/Hidden/withWidth.js +0 -2
  55. package/legacy/Input/Input.js +1 -1
  56. package/legacy/InputBase/InputBase.js +2 -2
  57. package/legacy/LinearProgress/LinearProgress.js +6 -2
  58. package/legacy/Link/Link.js +10 -17
  59. package/legacy/Link/getTextDecoration.js +28 -0
  60. package/legacy/Modal/Modal.js +23 -7
  61. package/legacy/OutlinedInput/OutlinedInput.js +36 -9
  62. package/legacy/Popover/index.js +1 -0
  63. package/legacy/Skeleton/Skeleton.js +2 -2
  64. package/legacy/Slider/Slider.js +24 -22
  65. package/legacy/Snackbar/Snackbar.js +6 -21
  66. package/legacy/SnackbarContent/SnackbarContent.js +3 -3
  67. package/legacy/SpeedDialAction/SpeedDialAction.js +7 -7
  68. package/legacy/Stack/Stack.js +2 -1
  69. package/legacy/StepConnector/StepConnector.js +2 -1
  70. package/legacy/StepContent/StepContent.js +1 -1
  71. package/legacy/StepIcon/StepIcon.js +2 -1
  72. package/legacy/Switch/Switch.js +11 -11
  73. package/legacy/TableCell/TableCell.js +5 -5
  74. package/legacy/Tabs/Tabs.js +16 -2
  75. package/legacy/Tooltip/Tooltip.js +1 -1
  76. package/legacy/index.js +1 -1
  77. package/legacy/styles/CssVarsProvider.js +4 -2
  78. package/legacy/styles/experimental_extendTheme.js +153 -18
  79. package/modern/Alert/Alert.js +19 -11
  80. package/modern/AppBar/AppBar.js +22 -5
  81. package/modern/Avatar/Avatar.js +7 -4
  82. package/modern/Badge/Badge.js +2 -2
  83. package/modern/Button/buttonClasses.js +1 -1
  84. package/modern/Chip/Chip.js +31 -30
  85. package/modern/Dialog/Dialog.js +11 -6
  86. package/modern/FilledInput/FilledInput.js +27 -12
  87. package/modern/Grid/Grid.js +94 -40
  88. package/modern/Grow/Grow.js +1 -2
  89. package/modern/Hidden/withWidth.js +0 -2
  90. package/modern/Input/Input.js +1 -1
  91. package/modern/InputBase/InputBase.js +2 -2
  92. package/modern/LinearProgress/LinearProgress.js +6 -2
  93. package/modern/Link/Link.js +10 -17
  94. package/modern/Link/getTextDecoration.js +29 -0
  95. package/modern/Modal/Modal.js +24 -7
  96. package/modern/OutlinedInput/OutlinedInput.js +40 -10
  97. package/modern/Popover/index.js +1 -0
  98. package/modern/Skeleton/Skeleton.js +7 -2
  99. package/modern/Slider/Slider.js +24 -22
  100. package/modern/Snackbar/Snackbar.js +6 -20
  101. package/modern/SnackbarContent/SnackbarContent.js +3 -3
  102. package/modern/SpeedDialAction/SpeedDialAction.js +7 -7
  103. package/modern/Stack/Stack.js +1 -1
  104. package/modern/StepConnector/StepConnector.js +14 -11
  105. package/modern/StepContent/StepContent.js +1 -1
  106. package/modern/StepIcon/StepIcon.js +2 -1
  107. package/modern/Switch/Switch.js +11 -11
  108. package/modern/TableCell/TableCell.js +5 -5
  109. package/modern/Tabs/Tabs.js +16 -2
  110. package/modern/Tooltip/Tooltip.js +1 -1
  111. package/modern/index.js +1 -1
  112. package/modern/styles/CssVarsProvider.js +2 -2
  113. package/modern/styles/experimental_extendTheme.js +154 -18
  114. package/node/Alert/Alert.js +19 -11
  115. package/node/AppBar/AppBar.js +22 -5
  116. package/node/Avatar/Avatar.js +7 -4
  117. package/node/Badge/Badge.js +2 -2
  118. package/node/Button/buttonClasses.js +1 -1
  119. package/node/Chip/Chip.js +31 -30
  120. package/node/Dialog/Dialog.js +11 -6
  121. package/node/FilledInput/FilledInput.js +28 -13
  122. package/node/Grid/Grid.js +95 -40
  123. package/node/Grow/Grow.js +1 -2
  124. package/node/Hidden/withWidth.js +0 -3
  125. package/node/Input/Input.js +1 -1
  126. package/node/InputBase/InputBase.js +2 -2
  127. package/node/LinearProgress/LinearProgress.js +6 -2
  128. package/node/Link/Link.js +12 -20
  129. package/node/Link/getTextDecoration.js +39 -0
  130. package/node/Modal/Modal.js +25 -8
  131. package/node/OutlinedInput/OutlinedInput.js +38 -10
  132. package/node/Popover/index.js +13 -3
  133. package/node/Skeleton/Skeleton.js +7 -2
  134. package/node/Slider/Slider.js +24 -22
  135. package/node/Snackbar/Snackbar.js +6 -18
  136. package/node/SnackbarContent/SnackbarContent.js +3 -3
  137. package/node/SpeedDialAction/SpeedDialAction.js +7 -7
  138. package/node/Stack/Stack.js +1 -1
  139. package/node/StepConnector/StepConnector.js +14 -11
  140. package/node/StepContent/StepContent.js +1 -1
  141. package/node/StepIcon/StepIcon.js +2 -1
  142. package/node/Switch/Switch.js +11 -11
  143. package/node/TableCell/TableCell.js +5 -5
  144. package/node/Tabs/Tabs.js +16 -2
  145. package/node/Tooltip/Tooltip.js +1 -1
  146. package/node/index.js +1 -1
  147. package/node/styles/CssVarsProvider.js +6 -2
  148. package/node/styles/experimental_extendTheme.js +152 -17
  149. package/package.json +6 -7
  150. package/styles/CssVarsProvider.d.ts +10 -28
  151. package/styles/CssVarsProvider.js +6 -2
  152. package/styles/createPalette.d.ts +0 -26
  153. package/styles/experimental_extendTheme.d.ts +225 -37
  154. package/styles/experimental_extendTheme.js +154 -18
  155. package/styles/index.d.ts +24 -1
  156. package/themeCssVarsAugmentation/index.d.ts +61 -0
  157. package/umd/material-ui.development.js +1048 -541
  158. package/umd/material-ui.production.min.js +27 -22
package/Alert/Alert.js CHANGED
@@ -60,22 +60,30 @@ const AlertRoot = styled(Paper, {
60
60
  display: 'flex',
61
61
  padding: '6px 16px'
62
62
  }, color && ownerState.variant === 'standard' && {
63
- color: getColor(theme.palette[color].light, 0.6),
64
- backgroundColor: getBackgroundColor(theme.palette[color].light, 0.9),
65
- [`& .${alertClasses.icon}`]: {
63
+ color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
64
+ backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),
65
+ [`& .${alertClasses.icon}`]: theme.vars ? {
66
+ color: theme.vars.palette.Alert[`${color}IconColor`]
67
+ } : {
66
68
  color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
67
69
  }
68
70
  }, color && ownerState.variant === 'outlined' && {
69
- color: getColor(theme.palette[color].light, 0.6),
70
- border: `1px solid ${theme.palette[color].light}`,
71
- [`& .${alertClasses.icon}`]: {
71
+ color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
72
+ border: `1px solid ${(theme.vars || theme).palette[color].light}`,
73
+ [`& .${alertClasses.icon}`]: theme.vars ? {
74
+ color: theme.vars.palette.Alert[`${color}IconColor`]
75
+ } : {
72
76
  color: theme.palette.mode === 'dark' ? theme.palette[color].main : theme.palette[color].light
73
77
  }
74
- }, color && ownerState.variant === 'filled' && {
75
- color: '#fff',
76
- fontWeight: theme.typography.fontWeightMedium,
77
- backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main
78
- });
78
+ }, color && ownerState.variant === 'filled' && _extends({
79
+ fontWeight: theme.typography.fontWeightMedium
80
+ }, theme.vars ? {
81
+ color: theme.vars.palette.Alert[`${color}FilledColor`],
82
+ backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
83
+ } : {
84
+ backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
85
+ color: theme.palette.getContrastText(theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main)
86
+ }));
79
87
  });
80
88
  const AlertIcon = styled('div', {
81
89
  name: 'MuiAlert',
package/AppBar/AppBar.js CHANGED
@@ -22,7 +22,11 @@ const useUtilityClasses = ownerState => {
22
22
  root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]
23
23
  };
24
24
  return composeClasses(slots, getAppBarUtilityClass, classes);
25
- };
25
+ }; // var2 is the fallback.
26
+ // Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
27
+
28
+
29
+ const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
26
30
 
27
31
  const AppBarRoot = styled(Paper, {
28
32
  name: 'MuiAppBar',
@@ -47,7 +51,7 @@ const AppBarRoot = styled(Paper, {
47
51
  flexShrink: 0
48
52
  }, ownerState.position === 'fixed' && {
49
53
  position: 'fixed',
50
- zIndex: theme.zIndex.appBar,
54
+ zIndex: (theme.vars || theme).zIndex.appBar,
51
55
  top: 0,
52
56
  left: 'auto',
53
57
  right: 0,
@@ -57,14 +61,14 @@ const AppBarRoot = styled(Paper, {
57
61
  }
58
62
  }, ownerState.position === 'absolute' && {
59
63
  position: 'absolute',
60
- zIndex: theme.zIndex.appBar,
64
+ zIndex: (theme.vars || theme).zIndex.appBar,
61
65
  top: 0,
62
66
  left: 'auto',
63
67
  right: 0
64
68
  }, ownerState.position === 'sticky' && {
65
69
  // ⚠️ sticky is not supported by IE11.
66
70
  position: 'sticky',
67
- zIndex: theme.zIndex.appBar,
71
+ zIndex: (theme.vars || theme).zIndex.appBar,
68
72
  top: 0,
69
73
  left: 'auto',
70
74
  right: 0
@@ -72,7 +76,7 @@ const AppBarRoot = styled(Paper, {
72
76
  position: 'static'
73
77
  }, ownerState.position === 'relative' && {
74
78
  position: 'relative'
75
- }, ownerState.color === 'default' && {
79
+ }, !theme.vars && _extends({}, ownerState.color === 'default' && {
76
80
  backgroundColor: backgroundColorDefault,
77
81
  color: theme.palette.getContrastText(backgroundColorDefault)
78
82
  }, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
@@ -88,6 +92,19 @@ const AppBarRoot = styled(Paper, {
88
92
  color: 'inherit'
89
93
  }, theme.palette.mode === 'dark' && {
90
94
  backgroundImage: 'none'
95
+ })), theme.vars && _extends({}, ownerState.color === 'default' && {
96
+ '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette.AppBar.defaultBg : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette.AppBar.defaultBg),
97
+ '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette.text.primary : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette.text.primary)
98
+ }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
99
+ '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
100
+ '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
101
+ }, {
102
+ backgroundColor: 'var(--AppBar-background)',
103
+ color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
104
+ }, ownerState.color === 'transparent' && {
105
+ backgroundImage: 'none',
106
+ backgroundColor: 'transparent',
107
+ color: 'inherit'
91
108
  }));
92
109
  });
93
110
  const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
@@ -19,7 +19,7 @@ export interface AutocompleteClasses {
19
19
  inputRoot: string;
20
20
  /** Styles applied to the input element. */
21
21
  input: string;
22
- /** Styles applied to the input element if tag focused. */
22
+ /** Styles applied to the input element if the input is focused. */
23
23
  inputFocused: string;
24
24
  /** Styles applied to the endAdornment element. */
25
25
  endAdornment: string;
package/Avatar/Avatar.js CHANGED
@@ -52,13 +52,16 @@ const AvatarRoot = styled('div', {
52
52
  overflow: 'hidden',
53
53
  userSelect: 'none'
54
54
  }, ownerState.variant === 'rounded' && {
55
- borderRadius: theme.shape.borderRadius
55
+ borderRadius: (theme.vars || theme).shape.borderRadius
56
56
  }, ownerState.variant === 'square' && {
57
57
  borderRadius: 0
58
- }, ownerState.colorDefault && {
59
- color: theme.palette.background.default,
58
+ }, ownerState.colorDefault && _extends({
59
+ color: (theme.vars || theme).palette.background.default
60
+ }, theme.vars ? {
61
+ backgroundColor: theme.vars.palette.Avatar.defaultBg
62
+ } : {
60
63
  backgroundColor: theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]
61
- }));
64
+ })));
62
65
  const AvatarImg = styled('img', {
63
66
  name: 'MuiAvatar',
64
67
  slot: 'Img',
package/Badge/Badge.js CHANGED
@@ -323,8 +323,8 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
323
323
  * @default {}
324
324
  */
325
325
  componentsProps: PropTypes.shape({
326
- badge: PropTypes.object,
327
- root: PropTypes.object
326
+ badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
327
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
328
328
  }),
329
329
 
330
330
  /**
@@ -9,6 +9,14 @@ export interface ButtonClasses {
9
9
  textPrimary: string;
10
10
  /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
11
11
  textSecondary: string;
12
+ /** Styles applied to the root element if `variant="text"` and `color="success"`. */
13
+ textSuccess: string;
14
+ /** Styles applied to the root element if `variant="text"` and `color="error"`. */
15
+ textError: string;
16
+ /** Styles applied to the root element if `variant="text"` and `color="info"`. */
17
+ textInfo: string;
18
+ /** Styles applied to the root element if `variant="text"` and `color="warning"`. */
19
+ textWarning: string;
12
20
  /** Styles applied to the root element if `variant="outlined"`. */
13
21
  outlined: string;
14
22
  /** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
@@ -17,6 +25,14 @@ export interface ButtonClasses {
17
25
  outlinedPrimary: string;
18
26
  /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
19
27
  outlinedSecondary: string;
28
+ /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
29
+ outlinedSuccess: string;
30
+ /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
31
+ outlinedError: string;
32
+ /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
33
+ outlinedInfo: string;
34
+ /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
35
+ outlinedWarning: string;
20
36
  /** Styles applied to the root element if `variant="contained"`. */
21
37
  contained: string;
22
38
  /** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
@@ -25,6 +41,14 @@ export interface ButtonClasses {
25
41
  containedPrimary: string;
26
42
  /** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
27
43
  containedSecondary: string;
44
+ /** Styles applied to the root element if `variant="contained"` and `color="success"`. */
45
+ containedSuccess: string;
46
+ /** Styles applied to the root element if `variant="contained"` and `color="info"`. */
47
+ containedInfo: string;
48
+ /** Styles applied to the root element if `variant="contained"` and `color="error"`. */
49
+ containedError: string;
50
+ /** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
51
+ containedWarning: string;
28
52
  /** Styles applied to the root element if `disableElevation={true}`. */
29
53
  disableElevation: string;
30
54
  /** State class applied to the ButtonBase root element if the button is keyboard focused. */
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
2
2
  export function getButtonUtilityClass(slot) {
3
3
  return generateUtilityClass('MuiButton', slot);
4
4
  }
5
- const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
5
+ const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
6
6
  export default buttonClasses;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,215 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.8.6
4
+
5
+ <!-- generated comparing v5.8.5..master -->
6
+
7
+ _Jun 27, 2022_
8
+
9
+ A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - ⚒️ Fixed React 18 issues in few components
12
+ - 🚀 Improved the TypeScript augmentation when using CSS variables with `@mui/material`
13
+ - many other 🐛 bug fixes and 📚 documentation improvements
14
+
15
+ ### `@mui/material@5.8.6`
16
+
17
+ - &#8203;<!-- 27 -->[Alert] Add support for CSS vars (#32624) @haneenmahd
18
+ - &#8203;<!-- 26 -->[Alert] Use `getContrastText` for filled variant font color (#29813) @SamoraMabuya
19
+
20
+ Note: The color of the text in the warning contained `Alert` in dark mode was changed to black in order to improve the color contrast ratio
21
+
22
+ - &#8203;<!-- 11 -->[OutlinedInput] Fix `ownerState` undefined in theme style overrides (#33241) @siriwatknp
23
+ - &#8203;<!-- 08 -->[Tabs] Fix crash when used with React 18 & Suspense (#33277) @mnajdova
24
+ - &#8203;<!-- 05 -->[TypeScript] Add CSS vars type augmentation for Material UI (#33211) @siriwatknp
25
+
26
+ ### `@mui/system@5.8.6`
27
+
28
+ - &#8203;<!-- 09 -->[system] Add enableColorScheme option to getInitColorSchemeScript (#33261) @siriwatknp
29
+
30
+ ### `@mui/utils@5.8.6`
31
+
32
+ - &#8203;<!-- 04 -->[utils] Allow state prefix to be configurable (#32972) @siriwatknp
33
+
34
+ ### `@mui/base@5.0.0-alpha.87`
35
+
36
+ - &#8203;<!-- 25 -->[base] Improve the return type of useSlotProps (#33279) @michaldudak
37
+ - &#8203;<!-- 24 -->[base] Improve some types (#33270) @mnajdova
38
+ - &#8203;<!-- 13 -->[MenuUnstyled] Fix keyboard accessibility of menu items (#33145) @michaldudak
39
+ - &#8203;<!-- 12 -->[ModalManager] Lock body scroll when container is inside shadow DOM (#33168) @jacobweberbowery
40
+ - &#8203;<!-- 10 -->[SliderUnstyled] Use useSlotProps (#33132) @michaldudak
41
+ - &#8203;<!-- 07 -->[TextareaAutosize] Fix crash when used with React 18 & Suspense (#33238) @howlettt
42
+ - &#8203;<!-- 06 -->[TextareaAutosize] Fix warnings for too many renders in React 18 (#33253) @mnajdova
43
+
44
+ ### `@mui/joy@5.0.0-alpha.34`
45
+
46
+ - &#8203;<!-- 14 -->[Joy] Add `Sheet` doc (#32820) @hbjORbj
47
+
48
+ ### Docs
49
+
50
+ - &#8203;<!-- 23 -->[blog] Polish Why you should migrate to Material UI v5 today (#33244) @oliviertassinari
51
+ - &#8203;<!-- 21 -->[docs] Add note in docs about `componentsProps.root` taking precedence (#33097) @ZeeshanTamboli
52
+ - &#8203;<!-- 20 -->[docs] Remove a note about Base components being reexported from Material UI (#33265) @michaldudak
53
+ - &#8203;<!-- 19 -->[docs] Update code snippet in docs for custom color palette (#32946) @ZeeshanTamboli
54
+ - &#8203;<!-- 18 -->[docs] Fix the docs for production class generation (#31933) @Fafruch
55
+ - &#8203;<!-- 17 -->[docs] Fix internal link in Box page (#33149) @davidgarciab
56
+ - &#8203;<!-- 16 -->[docs] Badge component link in Base docs should be under Data Display section (#33249) @ZeeshanTamboli
57
+ - &#8203;<!-- 15 -->[examples] Fix comment typo (#33256) @WinmezzZ
58
+
59
+ ### Core
60
+
61
+ - &#8203;<!-- 22 -->[core] Remove dead code (#33243) @oliviertassinari
62
+ - &#8203;<!-- 03 -->[website] Fix the scroll-top for all the website (#33215) @oliviertassinari
63
+ - &#8203;<!-- 02 -->[website] List new core role @oliviertassinari
64
+ - &#8203;<!-- 01 -->[website] Fix navigation menu close behavior (#33203) @oliviertassinari
65
+
66
+ All contributors of this release in alphabetical order: @davidgarciab, @Fafruch, @haneenmahd, @hbjORbj, @howlettt, @jacobweberbowery, @michaldudak, @mnajdova, @oliviertassinari, @SamoraMabuya, @siriwatknp, @WinmezzZ, @ZeeshanTamboli
67
+
68
+ ## 5.8.5
69
+
70
+ <!-- generated comparing v5.8.4..master -->
71
+
72
+ _Jun 20, 2022_
73
+
74
+ A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
75
+
76
+ - 🚀 Added support for CSS variables in the `Avatar` component and the `SpeedDialAction` component respectively by @vicasas and @gin1314
77
+ - many other 🐛 bug fixes and 📚 documentation improvements
78
+
79
+ ### `@mui/material@5.8.5`
80
+
81
+ - &#8203;<!-- 30 -->[Avatar] Add support for CSS variables (#32499) @vicasas
82
+ - &#8203;<!-- 19 -->[Dialog] Fix broken styles if `maxWidth` is set to `false` (#32987) @kmurgic
83
+ - &#8203;<!-- 04 -->[SpeedDialAction] Add support for CSS variables (#32608) @gin1314
84
+ - &#8203;<!-- 02 -->[Tabs] Increment scroll of the minimum amount possible (#33103) @oliviertassinari
85
+
86
+ ### `@mui/codemod@5.8.5`
87
+
88
+ - &#8203;<!-- 24 -->[codemod] Preserve comments within jss-to-tss-react (#33170) @ryancogswell
89
+
90
+ ### `@mui/lab@5.0.0-alpha.87`
91
+
92
+ - &#8203;<!-- 06 -->[Masonry] Fix flickering when used with React 18 (#33163) @mnajdova
93
+
94
+ ### `@mui/base@5.0.0-alpha.86`
95
+
96
+ - &#8203;<!-- 29 -->[BadgeUnstyled] Accept callbacks in componentsProps (#33176) @michaldudak
97
+ - &#8203;<!-- 25 -->[ButtonUnstyled] Use useSlotProps (#33096) @michaldudak
98
+ - &#8203;<!-- 11 -->[FormControlUnstyled] Accept callbacks in componentsProps (#33180) @michaldudak
99
+ - &#8203;<!-- 10 -->[InputUnstyled] Use useSlotProps (#33094) @michaldudak
100
+ - &#8203;<!-- 05 -->[ModalUnstyled] Define ownerState and slot props' types (#32901) @michaldudak
101
+ - &#8203;<!-- 03 -->[SwitchUnstyled] Use useSlotProps (#33174) @michaldudak
102
+
103
+ ### `@mui/joy@5.0.0-alpha.33`
104
+
105
+ - &#8203;<!-- 09 -->[Joy] Add Checkbox documentation (#33171) @siriwatknp
106
+ - &#8203;<!-- 08 -->[Joy] Add List documentation (#33120) @siriwatknp
107
+ - &#8203;<!-- 07 -->[Joy] Make slider displays Joy classname (#33051) @siriwatknp
108
+
109
+ ### Docs
110
+
111
+ - &#8203;<!-- 28 -->[blog] Update Blogpost to clear confusion on "no impact" disclaimer. (#33131) @joserodolfofreitas
112
+ - &#8203;<!-- 27 -->[blog] Add post about v5 Migration guide update (#33063) @samuelsycamore
113
+ - &#8203;<!-- 26 -->[blog] Fix display on Safari (#33102) @oliviertassinari
114
+ - &#8203;<!-- 18 -->[docs] Add guide on how to use MUI Base with Tailwind CSS (#33100) @mnajdova
115
+ - &#8203;<!-- 17 -->[docs] Improve Joy template UX (#33159) @siriwatknp
116
+ - &#8203;<!-- 16 -->[docs] Update Shadow DOM guide (#33160) @cherniavskii
117
+ - &#8203;<!-- 15 -->[docs] Fix SEO regressions (#33106) @oliviertassinari
118
+ - &#8203;<!-- 14 -->[docs] Add job ad in table of content (#33143) @mnajdova
119
+ - &#8203;<!-- 13 -->[docs] Add customization as a value proposition (#33014) @oliviertassinari
120
+ - &#8203;<!-- 12 -->[examples] Add example using nextjs & @mui/styles as a starter for the migration to v5 (#33005) @mnajdova
121
+ - &#8203;<!-- 01 -->[website] Replace Airtable with Ashby links for applying to a opened position (#33193) @DanailH
122
+
123
+ ### Core
124
+
125
+ - &#8203;<!-- 31 -->[core] Add CSS variables support for Material UI components (#32835) @siriwatknp
126
+ - &#8203;<!-- 23 -->[core] Add name to workspace root package.json (#33226) @Janpot
127
+ - &#8203;<!-- 22 -->[core] Update bug template with generic instruction (#33153) @joserodolfofreitas
128
+ - &#8203;<!-- 21 -->[core] Remove dead and redundant code (#33125) @oliviertassinari
129
+ - &#8203;<!-- 20 -->[core] Improve inline code rendering within the details tag (#33086) @Harmouch101
130
+
131
+ All contributors of this release in alphabetical order: @cherniavskii, @DanailH, @gin1314, @Harmouch101, @Janpot, @joserodolfofreitas, @kmurgic, @michaldudak, @mnajdova, @oliviertassinari, @ryancogswell, @samuelsycamore, @siriwatknp, @vicasas
132
+
133
+ ## 5.8.4
134
+
135
+ <!-- generated comparing v5.8.3..master -->
136
+
137
+ _Jun 14, 2022_
138
+
139
+ A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
140
+
141
+ - 🚀 Added support for custom breakpoints in the `Grid` component by @boutahlilsoufiane
142
+ - 📚 Added guide on how to use Material UI with Shadow DOM by @cherniavskii
143
+ - many other 🐛 bug fixes and 📚 documentation improvements
144
+
145
+ ### `@mui/material@5.8.4`
146
+
147
+ - &#8203;<!-- 36 -->[Button] Add missing classes in `ButtonClasses` type (#33040) @ZeeshanTamboli
148
+ - &#8203;<!-- 20 -->[Grid] Fix prop-type key regression (#33123) @oliviertassinari
149
+ - &#8203;<!-- 19 -->[Grid] Support custom breakpoints (#31998) @boutahlilsoufiane
150
+ - &#8203;<!-- 18 -->[Grow] Limit CSS transition bug workaround to Safari 15.4 only (#32996) @igordanchenko
151
+ - &#8203;<!-- 17 -->[Hidden] Remove dependency on hoist-non-react-statics (#33015) @oliviertassinari
152
+ - &#8203;<!-- 12 -->[Link] Add support for CSS variables (#33036) @winderica
153
+ - &#8203;<!-- 07 -->[Popover] Export `getOffsetTop` & `getOffsetLeft` from Popover's index and add typings (#32959) @rart
154
+ - &#8203;<!-- 06 -->[Slider] Fix SliderValueLabelProps type (#32895) @oliviertassinari
155
+ - &#8203;<!-- 05 -->[Snackbar] Remove `RTL` direction specific logic (#32808) @aaarichter
156
+ - &#8203;<!-- 04 -->[StepIcon] Fix text centering when changing browser font size (#32706) @alansouzati
157
+ - &#8203;<!-- 02 -->[Tabs] Scroll by width of the first visible tab if only one tab is partially visible (#32778) @frankkluijtmans
158
+
159
+ ### `@mui/system@5.8.4`
160
+
161
+ - &#8203;<!-- 38 -->[Stack, system] Apply correct responsive styles if any custom breakpoints are provided (#32913) @ZeeshanTamboli
162
+ - &#8203;<!-- 03 -->[system] Fix missing typings for ColorFormat (#32417) @l-zoy
163
+
164
+ ### `@mui/codemod@5.8.4`
165
+
166
+ - &#8203;<!-- 35 -->[codemod] Add support for `@mui/styles/makeStyles` imports (#32962) @joshkel
167
+
168
+ ### `@mui/lab@5.0.0-alpha.86`
169
+
170
+ - &#8203;<!-- 08 -->[pickers] Fix broken ref forwarding (#33107) @oliviertassinari
171
+ - &#8203;<!-- 13 -->[lab] Fix React's `forwardRef` warning when importing from the index (#33134) @mnajdova
172
+
173
+ ### `@mui/base@5.0.0-alpha.85`
174
+
175
+ - &#8203;<!-- 11 -->[MenuUnstyled] Accept callbacks in componentsProps (#32997) @michaldudak
176
+ - &#8203;<!-- 10 -->[ModalUnstyled] Fix errors from the W3C validator about incorrect aria-hidden attribute on some elements (#30920) @mkrtchian
177
+ - &#8203;<!-- 09 -->[ModalUnstyled] Fix behavior of not respecting props ariaHidden value (#32055) @tech-meppem
178
+
179
+ ### `@mui/joy@5.0.0-alpha.32`
180
+
181
+ - &#8203;<!-- 16 -->[Joy] Miscellaneous card fixes (#33129) @siriwatknp
182
+ - &#8203;<!-- 15 -->[Joy] Miscellaneous fixes (#33073) @siriwatknp
183
+ - &#8203;<!-- 14 -->[Joy] Add typography and link docs (#33047) @siriwatknp
184
+
185
+ ### Docs
186
+
187
+ - &#8203;<!-- 40 -->[Contributing.md] Local install instructions (#32975) @Moizsohail
188
+ - &#8203;<!-- 32 -->[docs] Add responsive AppBar with drawer (#32769) @dvlprAlamin
189
+ - &#8203;<!-- 31 -->[docs] Move codesandbox to MUI org (#33122) @oliviertassinari
190
+ - &#8203;<!-- 30 -->[docs] Add Shadow DOM guide (#33007) @cherniavskii
191
+ - &#8203;<!-- 29 -->[docs] Fix typo in Material UI overview page (#33087) @oliviertassinari
192
+ - &#8203;<!-- 28 -->[docs] Miscellaneous fixes in `MUI Base` docs (#33091) @ZeeshanTamboli
193
+ - &#8203;<!-- 27 -->[docs] Fix GitHub capitalization (#33071) @oliviertassinari
194
+ - &#8203;<!-- 26 -->[docs] Fix a typo in `InputUnstyled` docs (#33077) @ZeeshanTamboli
195
+ - &#8203;<!-- 25 -->[docs] Add notification for Joy blog post (#33059) @siriwatknp
196
+ - &#8203;<!-- 24 -->[docs] Improve aspect ratio docs and integration (#33065) @siriwatknp
197
+ - &#8203;<!-- 34 -->[docs] Update code block copy label (#33128) @siriwatknp
198
+ - &#8203;<!-- 23 -->[docs] Fix typo in Autocomplete CSS API (#32838) @KeaghanKennedy
199
+ - &#8203;<!-- 22 -->[docs] Improvements for Radio Group Rating Docs (#32843) @Kai-W
200
+ - &#8203;<!-- 21 -->[docs] Enable Joy pages (#33064) @siriwatknp
201
+ - &#8203;<!-- 02 -->[website] Add Joy UI to the pricing page (#33099) @danilo-leal
202
+ - &#8203;<!-- 01 -->[website] Clarify the pricing a bit (#33069) @oliviertassinari
203
+
204
+ ### Core
205
+
206
+ - &#8203;<!-- 39 -->yarn proptypes @oliviertassinari
207
+ - &#8203;<!-- 34 -->[core] Update dependencies to fix security vulnerabilities (#33095) @michaldudak
208
+ - &#8203;<!-- 33 -->[core] Import new line convention (#33068) @oliviertassinari
209
+ - &#8203;<!-- 37 -->[core] Make repository configurable in changelog script (#33130) @Janpot
210
+
211
+ All contributors of this release in alphabetical order: @aaarichter, @alansouzati, @boutahlilsoufiane, @cherniavskii, @danilo-leal, @dvlprAlamin, @frankkluijtmans, @igordanchenko, @Janpot, @joshkel, @Kai-W, @KeaghanKennedy, @l-zoy, @michaldudak, @mkrtchian, @mnajdova, @Moizsohail, @oliviertassinari, @pushys, @rart, @siriwatknp, @tech-meppem, @winderica, @ZeeshanTamboli
212
+
3
213
  ## 5.8.3
4
214
 
5
215
  <!-- generated comparing v5.8.2..master -->
@@ -9,25 +219,25 @@ _Jun 7, 2022_
9
219
  A big thanks to the 15 contributors who made this release possible.
10
220
  This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
11
221
 
12
- ## `@mui/material@5.8.3`
222
+ ### `@mui/material@5.8.3`
13
223
 
14
224
  - [Alert] Constrain message width and allow overflow (#32747) @Janpot
15
225
  - [Checkbox] Add support for CSS variables (#32579) @haneenmahd
16
226
  - [Slider] Fix positioning of tooltips on vertical slider (#32919) @abhinav-22-tech
17
227
 
18
- ## `@mui/system@5.8.3`
228
+ ### `@mui/system@5.8.3`
19
229
 
20
230
  - [system] Configurable attributes for libraries (#32971) @siriwatknp
21
231
 
22
- ## `@mui/codemod@5.8.3
232
+ ### `@mui/codemod@5.8.3`
23
233
 
24
234
  - [codemod] Fix infinite loop in jss-to-tss-react and add TODO (#33048) @ryancogswell
25
235
 
26
- ## `@mui/lab@5.0.0-alpha.85`
236
+ ### `@mui/lab@5.0.0-alpha.85`
27
237
 
28
238
  - [pickers] Add deprecations when importing pickers from the lab (#32950) @flaviendelangle
29
239
 
30
- ## `@mui/joy@5.0.0-alpha.31`
240
+ ### `@mui/joy@5.0.0-alpha.31`
31
241
 
32
242
  - [Joy] Add `Slider` component and demos (#32694) @hbjORbj
33
243
  - [Joy] Add articles about customization approaches (#32887) @siriwatknp
@@ -35,7 +245,7 @@ This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
35
245
  - [Joy] Add docs about dark mode (#33002) @siriwatknp
36
246
  - [Joy] Add template UIs & first look blog post (#32791) @danilo-leal
37
247
 
38
- ## `@mui/base@5.0.0-alpha.84`
248
+ ### `@mui/base@5.0.0-alpha.84`
39
249
 
40
250
  - [base] Remove @mui/system in tests (#32945) @kevinji
41
251
  - [ButtonUnstyled] Accept callbacks in componentsProps (#32991) @michaldudak
@@ -44,7 +254,7 @@ This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
44
254
  - [TabPanelUnstyled] Define ownerState and slot props' types (#32928) @michaldudak
45
255
  - [TabsListUnstyled] Define ownerState and slot props' types (#32925) @michaldudak
46
256
 
47
- ## Docs
257
+ ### Docs
48
258
 
49
259
  - [blog] Fix anchor link scroll (#32994) @oliviertassinari
50
260
  - [docs] Add "Migration" section to sidebar and revise v4-v5 content (#32740) @samuelsycamore
@@ -62,7 +272,7 @@ This release is mostly about 🐛 bug fixes and 📚 documentation improvements.
62
272
  - [website] Polish the pricing page (#32811) @oliviertassinari
63
273
  - [website] Remove unnecessary `address` dependency (#32957) @michaldudak
64
274
 
65
- ## Core
275
+ ### Core
66
276
 
67
277
  - [core] Improve icon synonyms (#32742) @oliviertassinari
68
278
  - [core] Prepare Next.js config for React 18 (#32963) @michaldudak
@@ -1021,7 +1231,7 @@ A big thanks to the 17 contributors who made this release possible. Here are som
1021
1231
  - &#8203;<!-- 25 -->[core] Update playwright docker to match the specified version (#31236) @siriwatknp
1022
1232
  - &#8203;<!-- 24 -->[core] Remove parallel on buildTypes (#31189) @siriwatknp
1023
1233
  - &#8203;<!-- 23 -->[core] Fix propTypes generation for optional any props (#31141) @m4theushw
1024
- - &#8203;<!-- 04 -->[Typescript] Remove variants deprecation (#31239) @siriwatknp
1234
+ - &#8203;<!-- 04 -->[typescript] Remove variants deprecation (#31239) @siriwatknp
1025
1235
 
1026
1236
  All contributors of this release in alphabetical order: @adriancampos, @Andarist, @bonellia, @davwheat, @greengiraffe, @hbjORbj, @iclaude3, @m4theushw, @michaldudak, @mnajdova, @oliviertassinari, @PunitSoniME, @RedHeadphone, @robertwt7, @samuelsycamore, @siriwatknp, @sviande
1027
1237
 
@@ -1086,7 +1296,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
1086
1296
  - [Select] Allow customizing Select based on its variant (#30788) @michaldudak
1087
1297
  - [Portal] Re-export 'Portal' in material (#31003) @liradb2000
1088
1298
  - [ToggleButton] Add prop types for `onClick` and `onChange` (#30883) @sydneyjodon-wk
1089
- - [Typescript] Added TypeText declaration to the exports file (#30890) @agauravdev
1299
+ - [typescript] Added TypeText declaration to the exports file (#30890) @agauravdev
1090
1300
 
1091
1301
  ### `@mui/system@5.4.2`
1092
1302
 
@@ -2000,7 +2210,7 @@ A big thanks to the 15 contributors who made this release possible. Here are som
2000
2210
  - &#8203;<!-- 33 -->[core] Add `experiments` index page (#29582) @siriwatknp
2001
2211
  - &#8203;<!-- 32 -->[core] Move s3 bucket ownership to mui-org (#29609) @eps1lon
2002
2212
  - &#8203;<!-- 31 -->[core] Improve support request message (#29614) @mnajdova
2003
- - &#8203;<!-- 30 -->[core] Use support request Github Action (#29594) @mnajdova
2213
+ - &#8203;<!-- 30 -->[core] Use support request GitHub Action (#29594) @mnajdova
2004
2214
  - &#8203;<!-- 29 -->[core] Remove unused `getJsxPreview` util (#29586) @ZeeshanTamboli
2005
2215
  - &#8203;<!-- 28 -->[core] Use GitHub issue forms (#28038) @oliviertassinari
2006
2216
  - &#8203;<!-- 26 -->[core] Add playground (#29423) @oliviertassinari
@@ -4524,8 +4734,8 @@ A big thanks to the 15 contributors who made this release possible. Here are som
4524
4734
  - &#8203;<!-- 29 -->[Button] Rename `pending` prop to `loading` in LoadingButton (#25874) @m4theushw
4525
4735
 
4526
4736
  ```diff
4527
- -<LoadingButton pending pendingIndicator="Pending..." pendingPosition="end" />
4528
- +<LoadingButton loading loadingIndicator="Pending..." loadingPosition="end" />
4737
+ -<LoadingButton pending pendingIndicator="Pending" pendingPosition="end" />
4738
+ +<LoadingButton loading loadingIndicator="Pending" loadingPosition="end" />
4529
4739
  ```
4530
4740
 
4531
4741
  - &#8203;<!-- 25 -->[ButtonBase] Remove buttonRef prop (#25896) @m4theushw
@@ -6055,7 +6265,7 @@ A big thanks to the 24 contributors who made this release possible. Here are som
6055
6265
  - [docs] Fix duplicated styles generated from emotion (#23809) @mnajdova
6056
6266
  - [docs] Fix icon alignment in /components/breadcrumbs (#23818) @eps1lon
6057
6267
  - [docs] Fix production deploy (#23963) @eps1lon
6058
- - [docs] Fix source on Github links (#23821) @praveenkumar-kalidass
6268
+ - [docs] Fix source on GitHub links (#23821) @praveenkumar-kalidass
6059
6269
  - [docs] Fix StickyHeaderTable round borders (#23882) @antoniopacheco
6060
6270
  - [docs] Fix typo in date picker dayjs adapter name (#23935) @andresmrm
6061
6271
  - [docs] Improve system properties page (#23961) @mnajdova