@mui/material 5.16.0 → 5.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AppBar/AppBar.js CHANGED
@@ -98,8 +98,9 @@ const AppBarRoot = styled(Paper, {
98
98
  }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
99
99
  '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
100
100
  '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
101
+ }, !['inherit', 'transparent'].includes(ownerState.color) && {
102
+ backgroundColor: 'var(--AppBar-background)'
101
103
  }, {
102
- backgroundColor: 'var(--AppBar-background)',
103
104
  color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
104
105
  }, ownerState.color === 'transparent' && {
105
106
  backgroundImage: 'none',
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v5.16.1
4
+
5
+ _Jul 11, 2024_
6
+
7
+ A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - ⚛️ All packages, including Material UI, are now compatible with React 18.3.1
10
+
11
+ ### `@mui/material@5.16.1`
12
+
13
+ - [AppBar] Fix inherit color is inconsistent between ThemeProvider and CssVarsProvider (#42713) @ZeeshanTamboli
14
+
15
+ ### `@mui/joy@5.0.0-beta.48`
16
+
17
+ - [Autocomplete] Fix React spread key warning (#42856) @aarongarciah
18
+
19
+ ### Docs
20
+
21
+ - [material-ui] Fix React 18.3 key spread warnings in Autocomplete demos (#42854) @aarongarciah
22
+ - [material-ui] Fix type error in virtualized table demo (#42852) @aarongarciah
23
+ - Fix typos (@omahs) (#42888) @omahs
24
+ - Fix 301 @oliviertassinari
25
+
26
+ ### Core
27
+
28
+ - [core] Bump React to 18.3.1 (#42846) @aarongarciah
29
+ - [core] Remove react-test-renderer (#42853) @aarongarciah
30
+ - [core] Replace enzyme in describeConformance (#42847) @aarongarciah
31
+ - [test] Remove enzyme (#42850) @aarongarciah
32
+ - [test] Remove createMount test util (#42849) @aarongarciah
33
+ - [base-ui] Fix React spread key warning in test (#42855) @aarongarciah
34
+ - [styles][withStyles] Expect React defaultProps warning in test (#42752) (#42851) @aarongarciah
35
+
36
+ All contributors of this release in alphabetical order: @aarongarciah, @oliviertassinari, @omahs, @ZeeshanTamboli
37
+
3
38
  ## v5.16.0
4
39
 
5
40
  <!-- generated comparing v5.15.21..master -->
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.16.0
2
+ * @mui/material v5.16.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -94,8 +94,9 @@ var AppBarRoot = styled(Paper, {
94
94
  }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
95
95
  '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
96
96
  '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
97
+ }, !['inherit', 'transparent'].includes(ownerState.color) && {
98
+ backgroundColor: 'var(--AppBar-background)'
97
99
  }, {
98
- backgroundColor: 'var(--AppBar-background)',
99
100
  color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
100
101
  }, ownerState.color === 'transparent' && {
101
102
  backgroundImage: 'none',
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.16.0
2
+ * @mui/material v5.16.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -98,8 +98,9 @@ const AppBarRoot = styled(Paper, {
98
98
  }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
99
99
  '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
100
100
  '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
101
+ }, !['inherit', 'transparent'].includes(ownerState.color) && {
102
+ backgroundColor: 'var(--AppBar-background)'
101
103
  }, {
102
- backgroundColor: 'var(--AppBar-background)',
103
104
  color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
104
105
  }, ownerState.color === 'transparent' && {
105
106
  backgroundImage: 'none',
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.16.0
2
+ * @mui/material v5.16.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -106,8 +106,9 @@ const AppBarRoot = (0, _styled.default)(_Paper.default, {
106
106
  }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
107
107
  '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
108
108
  '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
109
+ }, !['inherit', 'transparent'].includes(ownerState.color) && {
110
+ backgroundColor: 'var(--AppBar-background)'
109
111
  }, {
110
- backgroundColor: 'var(--AppBar-background)',
111
112
  color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
112
113
  }, ownerState.color === 'transparent' && {
113
114
  backgroundImage: 'none',
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.16.0
2
+ * @mui/material v5.16.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.16.0",
3
+ "version": "5.16.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.",
@@ -32,13 +32,13 @@
32
32
  "clsx": "^2.1.0",
33
33
  "csstype": "^3.1.3",
34
34
  "prop-types": "^15.8.1",
35
- "react-is": "^18.2.0",
35
+ "react-is": "^18.3.1",
36
36
  "react-transition-group": "^4.4.5",
37
37
  "@mui/base": "5.0.0-beta.40",
38
- "@mui/core-downloads-tracker": "^5.16.0",
39
- "@mui/system": "^5.16.0",
40
- "@mui/utils": "^5.16.0",
41
- "@mui/types": "^7.2.14"
38
+ "@mui/core-downloads-tracker": "^5.16.1",
39
+ "@mui/types": "^7.2.15",
40
+ "@mui/system": "^5.16.1",
41
+ "@mui/utils": "^5.16.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.5.0",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.16.0
2
+ * @mui/material v5.16.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -4846,6 +4846,7 @@
4846
4846
  }
4847
4847
  }
4848
4848
 
4849
+ var didWarnAboutKeySpread = {};
4849
4850
  function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
4850
4851
  {
4851
4852
  var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
@@ -4916,6 +4917,24 @@
4916
4917
  }
4917
4918
  }
4918
4919
 
4920
+ {
4921
+ if (hasOwnProperty.call(props, 'key')) {
4922
+ var componentName = getComponentNameFromType(type);
4923
+ var keys = Object.keys(props).filter(function (k) {
4924
+ return k !== 'key';
4925
+ });
4926
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
4927
+
4928
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
4929
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
4930
+
4931
+ error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
4932
+
4933
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
4934
+ }
4935
+ }
4936
+ }
4937
+
4919
4938
  if (type === REACT_FRAGMENT_TYPE) {
4920
4939
  validateFragmentProps(element);
4921
4940
  } else {
@@ -16009,8 +16028,9 @@
16009
16028
  }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
16010
16029
  '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
16011
16030
  '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
16031
+ }, !['inherit', 'transparent'].includes(ownerState.color) && {
16032
+ backgroundColor: 'var(--AppBar-background)'
16012
16033
  }, {
16013
- backgroundColor: 'var(--AppBar-background)',
16014
16034
  color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
16015
16035
  }, ownerState.color === 'transparent' && {
16016
16036
  backgroundImage: 'none',