@mui/material 6.4.12 → 6.5.0

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.
@@ -8,7 +8,9 @@ import memoTheme from "../utils/memoTheme.js";
8
8
  import MoreHorizIcon from "../internal/svg-icons/MoreHoriz.js";
9
9
  import ButtonBase from "../ButtonBase/index.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
- const BreadcrumbCollapsedButton = styled(ButtonBase)(memoTheme(({
11
+ const BreadcrumbCollapsedButton = styled(ButtonBase, {
12
+ name: 'MuiBreadcrumbCollapsed'
13
+ })(memoTheme(({
12
14
  theme
13
15
  }) => ({
14
16
  display: 'flex',
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.5.0
4
+
5
+ <!-- generated comparing v6.4.12..v6.x -->
6
+
7
+ _Jul 2, 2025_
8
+
9
+ A big thanks to the 2 contributors who made this release possible.
10
+
11
+ CSS layers make it easier to override styles by splitting a single style sheet into multiple layers.
12
+ To learn more, check out the [CSS layers documentation](https://v6.mui.com/material-ui/customization/css-layers/).
13
+
14
+ ### `@mui/material@6.5.0`
15
+
16
+ - [Dialog] Add codemod for deprecated props (#46335) @sai6855
17
+
18
+ ### `@mui/system@6.5.0`
19
+
20
+ - Backport CSS layers feature from v7 (#46283) @siriwatknp
21
+
22
+ ### `@mui/material-nextjs@6.5.0`
23
+
24
+ - Backport CSS layers feature from v7 (#46283) @siriwatknp
25
+
26
+ ### Docs
27
+
28
+ - Add ListItemButton to make the deprecation clear (#46357) @sai6855
29
+
30
+ All contributors of this release in alphabetical order: @sai6855, @siriwatknp
31
+
3
32
  ## 6.4.12
4
33
 
5
34
  <!-- generated comparing v6.4.11..v6.x -->
@@ -25,7 +25,9 @@ const useUtilityClasses = ownerState => {
25
25
  };
26
26
  return composeClasses(slots, getNativeSelectUtilityClasses, classes);
27
27
  };
28
- export const StyledSelectSelect = styled('select')(({
28
+ export const StyledSelectSelect = styled('select', {
29
+ name: 'MuiNativeSelect'
30
+ })(({
29
31
  theme
30
32
  }) => ({
31
33
  // Reset
@@ -99,7 +101,9 @@ const NativeSelectSelect = styled(StyledSelectSelect, {
99
101
  }];
100
102
  }
101
103
  })({});
102
- export const StyledSelectIcon = styled('svg')(({
104
+ export const StyledSelectIcon = styled('svg', {
105
+ name: 'MuiNativeSelect'
106
+ })(({
103
107
  theme
104
108
  }) => ({
105
109
  // We use a position absolute over a flexbox in order to forward the pointer events
@@ -8,6 +8,7 @@ import { styled } from "../zero-styled/index.js";
8
8
  import memoTheme from "../utils/memoTheme.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  const NotchedOutlineRoot = styled('fieldset', {
11
+ name: 'MuiNotchedOutlined',
11
12
  shouldForwardProp: rootShouldForwardProp
12
13
  })({
13
14
  textAlign: 'left',
@@ -26,6 +27,7 @@ const NotchedOutlineRoot = styled('fieldset', {
26
27
  minWidth: '0%'
27
28
  });
28
29
  const NotchedOutlineLegend = styled('legend', {
30
+ name: 'MuiNotchedOutlined',
29
31
  shouldForwardProp: rootShouldForwardProp
30
32
  })(memoTheme(({
31
33
  theme
@@ -9,16 +9,21 @@ import { styled } from "../zero-styled/index.js";
9
9
  import memoTheme from "../utils/memoTheme.js";
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  const RadioButtonIconRoot = styled('span', {
12
+ name: 'MuiRadioButtonIcon',
12
13
  shouldForwardProp: rootShouldForwardProp
13
14
  })({
14
15
  position: 'relative',
15
16
  display: 'flex'
16
17
  });
17
- const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon)({
18
+ const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {
19
+ name: 'MuiRadioButtonIcon'
20
+ })({
18
21
  // Scale applied to prevent dot misalignment in Safari
19
22
  transform: 'scale(1)'
20
23
  });
21
- const RadioButtonIconDot = styled(RadioButtonCheckedIcon)(memoTheme(({
24
+ const RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
25
+ name: 'MuiRadioButtonIcon'
26
+ })(memoTheme(({
22
27
  theme
23
28
  }) => ({
24
29
  left: 0,
@@ -10,6 +10,7 @@ import capitalize from "../utils/capitalize.js";
10
10
  import { isHorizontal } from "../Drawer/Drawer.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const SwipeAreaRoot = styled('div', {
13
+ name: 'MuiSwipeArea',
13
14
  shouldForwardProp: rootShouldForwardProp
14
15
  })(memoTheme(({
15
16
  theme
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.4.12
2
+ * @mui/material v6.5.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -26,7 +26,9 @@ const useUtilityClasses = ownerState => {
26
26
  };
27
27
  return composeClasses(slots, getSwitchBaseUtilityClass, classes);
28
28
  };
29
- const SwitchBaseRoot = styled(ButtonBase)({
29
+ const SwitchBaseRoot = styled(ButtonBase, {
30
+ name: 'MuiSwitchBase'
31
+ })({
30
32
  padding: 9,
31
33
  borderRadius: '50%',
32
34
  variants: [{
@@ -64,6 +66,7 @@ const SwitchBaseRoot = styled(ButtonBase)({
64
66
  }]
65
67
  });
66
68
  const SwitchBaseInput = styled('input', {
69
+ name: 'MuiSwitchBase',
67
70
  shouldForwardProp: rootShouldForwardProp
68
71
  })({
69
72
  cursor: 'inherit',
@@ -8,7 +8,9 @@ import memoTheme from "../utils/memoTheme.js";
8
8
  import MoreHorizIcon from "../internal/svg-icons/MoreHoriz.js";
9
9
  import ButtonBase from "../ButtonBase/index.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
- const BreadcrumbCollapsedButton = styled(ButtonBase)(memoTheme(({
11
+ const BreadcrumbCollapsedButton = styled(ButtonBase, {
12
+ name: 'MuiBreadcrumbCollapsed'
13
+ })(memoTheme(({
12
14
  theme
13
15
  }) => ({
14
16
  display: 'flex',
@@ -25,7 +25,9 @@ const useUtilityClasses = ownerState => {
25
25
  };
26
26
  return composeClasses(slots, getNativeSelectUtilityClasses, classes);
27
27
  };
28
- export const StyledSelectSelect = styled('select')(({
28
+ export const StyledSelectSelect = styled('select', {
29
+ name: 'MuiNativeSelect'
30
+ })(({
29
31
  theme
30
32
  }) => ({
31
33
  // Reset
@@ -99,7 +101,9 @@ const NativeSelectSelect = styled(StyledSelectSelect, {
99
101
  }];
100
102
  }
101
103
  })({});
102
- export const StyledSelectIcon = styled('svg')(({
104
+ export const StyledSelectIcon = styled('svg', {
105
+ name: 'MuiNativeSelect'
106
+ })(({
103
107
  theme
104
108
  }) => ({
105
109
  // We use a position absolute over a flexbox in order to forward the pointer events
@@ -8,6 +8,7 @@ import { styled } from "../zero-styled/index.js";
8
8
  import memoTheme from "../utils/memoTheme.js";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  const NotchedOutlineRoot = styled('fieldset', {
11
+ name: 'MuiNotchedOutlined',
11
12
  shouldForwardProp: rootShouldForwardProp
12
13
  })({
13
14
  textAlign: 'left',
@@ -26,6 +27,7 @@ const NotchedOutlineRoot = styled('fieldset', {
26
27
  minWidth: '0%'
27
28
  });
28
29
  const NotchedOutlineLegend = styled('legend', {
30
+ name: 'MuiNotchedOutlined',
29
31
  shouldForwardProp: rootShouldForwardProp
30
32
  })(memoTheme(({
31
33
  theme
@@ -9,16 +9,21 @@ import { styled } from "../zero-styled/index.js";
9
9
  import memoTheme from "../utils/memoTheme.js";
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  const RadioButtonIconRoot = styled('span', {
12
+ name: 'MuiRadioButtonIcon',
12
13
  shouldForwardProp: rootShouldForwardProp
13
14
  })({
14
15
  position: 'relative',
15
16
  display: 'flex'
16
17
  });
17
- const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon)({
18
+ const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {
19
+ name: 'MuiRadioButtonIcon'
20
+ })({
18
21
  // Scale applied to prevent dot misalignment in Safari
19
22
  transform: 'scale(1)'
20
23
  });
21
- const RadioButtonIconDot = styled(RadioButtonCheckedIcon)(memoTheme(({
24
+ const RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
25
+ name: 'MuiRadioButtonIcon'
26
+ })(memoTheme(({
22
27
  theme
23
28
  }) => ({
24
29
  left: 0,
@@ -10,6 +10,7 @@ import capitalize from "../utils/capitalize.js";
10
10
  import { isHorizontal } from "../Drawer/Drawer.js";
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const SwipeAreaRoot = styled('div', {
13
+ name: 'MuiSwipeArea',
13
14
  shouldForwardProp: rootShouldForwardProp
14
15
  })(memoTheme(({
15
16
  theme
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.4.12
2
+ * @mui/material v6.5.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -26,7 +26,9 @@ const useUtilityClasses = ownerState => {
26
26
  };
27
27
  return composeClasses(slots, getSwitchBaseUtilityClass, classes);
28
28
  };
29
- const SwitchBaseRoot = styled(ButtonBase)({
29
+ const SwitchBaseRoot = styled(ButtonBase, {
30
+ name: 'MuiSwitchBase'
31
+ })({
30
32
  padding: 9,
31
33
  borderRadius: '50%',
32
34
  variants: [{
@@ -64,6 +66,7 @@ const SwitchBaseRoot = styled(ButtonBase)({
64
66
  }]
65
67
  });
66
68
  const SwitchBaseInput = styled('input', {
69
+ name: 'MuiSwitchBase',
67
70
  shouldForwardProp: rootShouldForwardProp
68
71
  })({
69
72
  cursor: 'inherit',
@@ -1,5 +1,5 @@
1
1
  export default function shouldSkipGeneratingVar(keys) {
2
- return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
2
+ return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
3
3
  // ends with sxConfig
4
4
  keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
5
5
  }
@@ -1,6 +1,6 @@
1
- export const version = "6.4.12";
1
+ export const version = "6.5.0";
2
2
  export const major = Number("6");
3
- export const minor = Number("4");
4
- export const patch = Number("12");
3
+ export const minor = Number("5");
4
+ export const patch = Number("0");
5
5
  export const prerelease = undefined;
6
6
  export default version;
@@ -15,7 +15,9 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
15
15
  var _MoreHoriz = _interopRequireDefault(require("../internal/svg-icons/MoreHoriz"));
16
16
  var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
- const BreadcrumbCollapsedButton = (0, _zeroStyled.styled)(_ButtonBase.default)((0, _memoTheme.default)(({
18
+ const BreadcrumbCollapsedButton = (0, _zeroStyled.styled)(_ButtonBase.default, {
19
+ name: 'MuiBreadcrumbCollapsed'
20
+ })((0, _memoTheme.default)(({
19
21
  theme
20
22
  }) => ({
21
23
  display: 'flex',
@@ -32,7 +32,9 @@ const useUtilityClasses = ownerState => {
32
32
  };
33
33
  return (0, _composeClasses.default)(slots, _nativeSelectClasses.getNativeSelectUtilityClasses, classes);
34
34
  };
35
- const StyledSelectSelect = exports.StyledSelectSelect = (0, _zeroStyled.styled)('select')(({
35
+ const StyledSelectSelect = exports.StyledSelectSelect = (0, _zeroStyled.styled)('select', {
36
+ name: 'MuiNativeSelect'
37
+ })(({
36
38
  theme
37
39
  }) => ({
38
40
  // Reset
@@ -106,7 +108,9 @@ const NativeSelectSelect = (0, _zeroStyled.styled)(StyledSelectSelect, {
106
108
  }];
107
109
  }
108
110
  })({});
109
- const StyledSelectIcon = exports.StyledSelectIcon = (0, _zeroStyled.styled)('svg')(({
111
+ const StyledSelectIcon = exports.StyledSelectIcon = (0, _zeroStyled.styled)('svg', {
112
+ name: 'MuiNativeSelect'
113
+ })(({
110
114
  theme
111
115
  }) => ({
112
116
  // We use a position absolute over a flexbox in order to forward the pointer events
@@ -15,6 +15,7 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  var _span;
17
17
  const NotchedOutlineRoot = (0, _zeroStyled.styled)('fieldset', {
18
+ name: 'MuiNotchedOutlined',
18
19
  shouldForwardProp: _rootShouldForwardProp.default
19
20
  })({
20
21
  textAlign: 'left',
@@ -33,6 +34,7 @@ const NotchedOutlineRoot = (0, _zeroStyled.styled)('fieldset', {
33
34
  minWidth: '0%'
34
35
  });
35
36
  const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
37
+ name: 'MuiNotchedOutlined',
36
38
  shouldForwardProp: _rootShouldForwardProp.default
37
39
  })((0, _memoTheme.default)(({
38
40
  theme
@@ -16,16 +16,21 @@ var _zeroStyled = require("../zero-styled");
16
16
  var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
17
17
  var _jsxRuntime = require("react/jsx-runtime");
18
18
  const RadioButtonIconRoot = (0, _zeroStyled.styled)('span', {
19
+ name: 'MuiRadioButtonIcon',
19
20
  shouldForwardProp: _rootShouldForwardProp.default
20
21
  })({
21
22
  position: 'relative',
22
23
  display: 'flex'
23
24
  });
24
- const RadioButtonIconBackground = (0, _zeroStyled.styled)(_RadioButtonUnchecked.default)({
25
+ const RadioButtonIconBackground = (0, _zeroStyled.styled)(_RadioButtonUnchecked.default, {
26
+ name: 'MuiRadioButtonIcon'
27
+ })({
25
28
  // Scale applied to prevent dot misalignment in Safari
26
29
  transform: 'scale(1)'
27
30
  });
28
- const RadioButtonIconDot = (0, _zeroStyled.styled)(_RadioButtonChecked.default)((0, _memoTheme.default)(({
31
+ const RadioButtonIconDot = (0, _zeroStyled.styled)(_RadioButtonChecked.default, {
32
+ name: 'MuiRadioButtonIcon'
33
+ })((0, _memoTheme.default)(({
29
34
  theme
30
35
  }) => ({
31
36
  left: 0,
@@ -17,6 +17,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
17
17
  var _Drawer = require("../Drawer/Drawer");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  const SwipeAreaRoot = (0, _zeroStyled.styled)('div', {
20
+ name: 'MuiSwipeArea',
20
21
  shouldForwardProp: _rootShouldForwardProp.default
21
22
  })((0, _memoTheme.default)(({
22
23
  theme
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.4.12
2
+ * @mui/material v6.5.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -33,7 +33,9 @@ const useUtilityClasses = ownerState => {
33
33
  };
34
34
  return (0, _composeClasses.default)(slots, _switchBaseClasses.getSwitchBaseUtilityClass, classes);
35
35
  };
36
- const SwitchBaseRoot = (0, _zeroStyled.styled)(_ButtonBase.default)({
36
+ const SwitchBaseRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
37
+ name: 'MuiSwitchBase'
38
+ })({
37
39
  padding: 9,
38
40
  borderRadius: '50%',
39
41
  variants: [{
@@ -71,6 +73,7 @@ const SwitchBaseRoot = (0, _zeroStyled.styled)(_ButtonBase.default)({
71
73
  }]
72
74
  });
73
75
  const SwitchBaseInput = (0, _zeroStyled.styled)('input', {
76
+ name: 'MuiSwitchBase',
74
77
  shouldForwardProp: _rootShouldForwardProp.default
75
78
  })({
76
79
  cursor: 'inherit',
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = shouldSkipGeneratingVar;
7
7
  function shouldSkipGeneratingVar(keys) {
8
- return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
8
+ return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
9
9
  // ends with sxConfig
10
10
  keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
11
11
  }
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
7
- const version = exports.version = "6.4.12";
7
+ const version = exports.version = "6.5.0";
8
8
  const major = exports.major = Number("6");
9
- const minor = exports.minor = Number("4");
10
- const patch = exports.patch = Number("12");
9
+ const minor = exports.minor = Number("5");
10
+ const patch = exports.patch = Number("0");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "6.4.12",
3
+ "version": "6.5.0",
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.",
@@ -35,10 +35,10 @@
35
35
  "prop-types": "^15.8.1",
36
36
  "react-is": "^19.0.0",
37
37
  "react-transition-group": "^4.4.5",
38
- "@mui/system": "^6.4.12",
39
- "@mui/core-downloads-tracker": "^6.4.12",
40
- "@mui/types": "~7.2.24",
41
- "@mui/utils": "^6.4.9"
38
+ "@mui/core-downloads-tracker": "^6.5.0",
39
+ "@mui/utils": "^6.4.9",
40
+ "@mui/system": "^6.5.0",
41
+ "@mui/types": "~7.2.24"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.5.0",
@@ -46,7 +46,7 @@
46
46
  "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
47
47
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
48
48
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
49
- "@mui/material-pigment-css": "^6.4.12"
49
+ "@mui/material-pigment-css": "^6.5.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "@types/react": {
@@ -42,6 +42,7 @@ export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'>, CssVar
42
42
  zIndex?: ZIndexOptions;
43
43
  unstable_strictMode?: boolean;
44
44
  unstable_sxConfig?: SxConfig;
45
+ modularCssLayers?: boolean | string;
45
46
  }
46
47
 
47
48
  export interface BaseTheme extends SystemTheme {
@@ -1,5 +1,5 @@
1
1
  export default function shouldSkipGeneratingVar(keys) {
2
- return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
2
+ return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
3
3
  // ends with sxConfig
4
4
  keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
5
5
  }
package/version/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export const version = "6.4.12";
1
+ export const version = "6.5.0";
2
2
  export const major = Number("6");
3
- export const minor = Number("4");
4
- export const patch = Number("12");
3
+ export const minor = Number("5");
4
+ export const patch = Number("0");
5
5
  export const prerelease = undefined;
6
6
  export default version;