@mui/system 7.0.0-beta.4 → 7.0.0-rc.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 7.0.0-rc.0
4
+
5
+ <!-- generated comparing v7.0.0-beta.4..master -->
6
+
7
+ _Mar 18, 2025_
8
+
9
+ A big thanks to the 4 contributors who made this release possible.
10
+
11
+ ### `@mui/material@7.0.0-rc.0`
12
+
13
+ - [StepLabel] Add missing root slot (#45603) @sai6855
14
+ - [Switch] Add slots and slotProps (#45595) @siriwatknp
15
+ - [utils] Add merging function to `mergeSlotProps` utility (#45543) @siriwatknp
16
+
17
+ ### Core
18
+
19
+ - [blog] Clarify the difference between the two Pro plans (#45266) @oliviertassinari
20
+ - [code-infra] Allow specifying a custom error formatter module for error minifcation (#45291) @Janpot
21
+ - [code-infra] Make `getVersionEnvVariables` reusable for other repos (#45562) @Janpot
22
+ - [code-infra] Update peer dependency of `@mui/utils` in `@mui/docs` (#45561) @Janpot
23
+ - Add StackBlitz template to issue template (#45504) @Janpot
24
+
25
+ All contributors of this release in alphabetical order: @Janpot, @oliviertassinari, @sai6855, @siriwatknp
26
+
3
27
  ## 7.0.0-beta.4
4
28
 
5
29
  <!-- generated comparing v7.0.0-beta.3..master -->
@@ -22,7 +22,7 @@ exports.private_safeEmphasize = private_safeEmphasize;
22
22
  exports.private_safeLighten = private_safeLighten;
23
23
  exports.recomposeColor = recomposeColor;
24
24
  exports.rgbToHex = rgbToHex;
25
- var _formatMuiErrorMessage2 = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
25
+ var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
26
26
  var _clamp = _interopRequireDefault(require("@mui/utils/clamp"));
27
27
  /* eslint-disable @typescript-eslint/naming-convention */
28
28
 
@@ -86,7 +86,7 @@ function decomposeColor(color) {
86
86
  const marker = color.indexOf('(');
87
87
  const type = color.substring(0, marker);
88
88
  if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {
89
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : (0, _formatMuiErrorMessage2.default)(9, color));
89
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : (0, _formatMuiErrorMessage.default)(9, color));
90
90
  }
91
91
  let values = color.substring(marker + 1, color.length - 1);
92
92
  let colorSpace;
@@ -97,7 +97,7 @@ function decomposeColor(color) {
97
97
  values[3] = values[3].slice(1);
98
98
  }
99
99
  if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {
100
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : (0, _formatMuiErrorMessage2.default)(10, colorSpace));
100
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : (0, _formatMuiErrorMessage.default)(10, colorSpace));
101
101
  }
102
102
  } else {
103
103
  values = values.split(',');
@@ -8,7 +8,7 @@ exports.default = cssContainerQueries;
8
8
  exports.getContainerQuery = getContainerQuery;
9
9
  exports.isCqShorthand = isCqShorthand;
10
10
  exports.sortContainerQueries = sortContainerQueries;
11
- var _formatMuiErrorMessage2 = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
11
+ var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
12
12
  /**
13
13
  * For using in `sx` prop to sort the breakpoint from low to high.
14
14
  * Note: this function does not work and will not support multiple units.
@@ -42,7 +42,7 @@ function getContainerQuery(theme, shorthand) {
42
42
  const matches = shorthand.match(/^@([^/]+)?\/?(.+)?$/);
43
43
  if (!matches) {
44
44
  if (process.env.NODE_ENV !== 'production') {
45
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : (0, _formatMuiErrorMessage2.default)(18, `(${shorthand})`));
45
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : (0, _formatMuiErrorMessage.default)(18, `(${shorthand})`));
46
46
  }
47
47
  return null;
48
48
  }
@@ -1,4 +1,4 @@
1
- import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
1
+ import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
2
2
  /* eslint-disable @typescript-eslint/naming-convention */
3
3
  import clamp from '@mui/utils/clamp';
4
4
 
@@ -62,7 +62,7 @@ export function decomposeColor(color) {
62
62
  const marker = color.indexOf('(');
63
63
  const type = color.substring(0, marker);
64
64
  if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {
65
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatMuiErrorMessage(9, color));
65
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(9, color));
66
66
  }
67
67
  let values = color.substring(marker + 1, color.length - 1);
68
68
  let colorSpace;
@@ -73,7 +73,7 @@ export function decomposeColor(color) {
73
73
  values[3] = values[3].slice(1);
74
74
  }
75
75
  if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {
76
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatMuiErrorMessage(10, colorSpace));
76
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(10, colorSpace));
77
77
  }
78
78
  } else {
79
79
  values = values.split(',');
@@ -1,4 +1,4 @@
1
- import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
1
+ import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
2
2
  /**
3
3
  * For using in `sx` prop to sort the breakpoint from low to high.
4
4
  * Note: this function does not work and will not support multiple units.
@@ -32,7 +32,7 @@ export function getContainerQuery(theme, shorthand) {
32
32
  const matches = shorthand.match(/^@([^/]+)?\/?(.+)?$/);
33
33
  if (!matches) {
34
34
  if (process.env.NODE_ENV !== 'production') {
35
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatMuiErrorMessage(18, `(${shorthand})`));
35
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatErrorMessage(18, `(${shorthand})`));
36
36
  }
37
37
  return null;
38
38
  }
package/esm/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @mui/system v7.0.0-beta.4
2
+ * @mui/system v7.0.0-rc.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
8
+ import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
9
9
  export { css, keyframes, StyledEngineProvider } from '@mui/styled-engine';
10
10
  export { default as GlobalStyles } from "./GlobalStyles/index.js";
11
11
  export { default as borders } from "./borders/index.js";
@@ -35,7 +35,7 @@ export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, ex
35
35
  // TODO: Remove this function in v6
36
36
  // eslint-disable-next-line @typescript-eslint/naming-convention
37
37
  export function experimental_sx() {
38
- throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : _formatMuiErrorMessage(19));
38
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : _formatErrorMessage(19));
39
39
  }
40
40
  export { default as unstable_getThemeValue } from "./getThemeValue/index.js";
41
41
  export { default as Box } from "./Box/index.js";
@@ -1,6 +1,6 @@
1
- export const version = "7.0.0-beta.4";
1
+ export const version = "7.0.0-rc.0";
2
2
  export const major = Number("7");
3
3
  export const minor = Number("0");
4
4
  export const patch = Number("0");
5
- export const prerelease = "beta.4";
5
+ export const prerelease = "rc.0";
6
6
  export default version;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v7.0.0-beta.4
2
+ * @mui/system v7.0.0-rc.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -394,7 +394,7 @@ Object.defineProperty(exports, "useThemeWithoutDefault", {
394
394
  return _useThemeWithoutDefault.default;
395
395
  }
396
396
  });
397
- var _formatMuiErrorMessage2 = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
397
+ var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
398
398
  var _styledEngine = require("@mui/styled-engine");
399
399
  var _GlobalStyles = _interopRequireDefault(require("./GlobalStyles"));
400
400
  var _borders = _interopRequireWildcard(require("./borders"));
@@ -610,7 +610,7 @@ Object.keys(_Stack2).forEach(function (key) {
610
610
  // TODO: Remove this function in v6
611
611
  // eslint-disable-next-line @typescript-eslint/naming-convention
612
612
  function experimental_sx() {
613
- throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : (0, _formatMuiErrorMessage2.default)(19));
613
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : (0, _formatMuiErrorMessage.default)(19));
614
614
  }
615
615
 
616
616
  /** ----------------- */
@@ -1,4 +1,4 @@
1
- import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
1
+ import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
2
2
  /* eslint-disable @typescript-eslint/naming-convention */
3
3
  import clamp from '@mui/utils/clamp';
4
4
 
@@ -62,7 +62,7 @@ export function decomposeColor(color) {
62
62
  const marker = color.indexOf('(');
63
63
  const type = color.substring(0, marker);
64
64
  if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {
65
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatMuiErrorMessage(9, color));
65
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${color}\` color.\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(9, color));
66
66
  }
67
67
  let values = color.substring(marker + 1, color.length - 1);
68
68
  let colorSpace;
@@ -73,7 +73,7 @@ export function decomposeColor(color) {
73
73
  values[3] = values[3].slice(1);
74
74
  }
75
75
  if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {
76
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatMuiErrorMessage(10, colorSpace));
76
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${colorSpace}\` color space.\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(10, colorSpace));
77
77
  }
78
78
  } else {
79
79
  values = values.split(',');
@@ -1,4 +1,4 @@
1
- import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
1
+ import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
2
2
  /**
3
3
  * For using in `sx` prop to sort the breakpoint from low to high.
4
4
  * Note: this function does not work and will not support multiple units.
@@ -32,7 +32,7 @@ export function getContainerQuery(theme, shorthand) {
32
32
  const matches = shorthand.match(/^@([^/]+)?\/?(.+)?$/);
33
33
  if (!matches) {
34
34
  if (process.env.NODE_ENV !== 'production') {
35
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatMuiErrorMessage(18, `(${shorthand})`));
35
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.' : _formatErrorMessage(18, `(${shorthand})`));
36
36
  }
37
37
  return null;
38
38
  }
package/modern/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @mui/system v7.0.0-beta.4
2
+ * @mui/system v7.0.0-rc.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
8
+ import _formatErrorMessage from "@mui/utils/formatMuiErrorMessage";
9
9
  export { css, keyframes, StyledEngineProvider } from '@mui/styled-engine';
10
10
  export { default as GlobalStyles } from "./GlobalStyles/index.js";
11
11
  export { default as borders } from "./borders/index.js";
@@ -35,7 +35,7 @@ export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, ex
35
35
  // TODO: Remove this function in v6
36
36
  // eslint-disable-next-line @typescript-eslint/naming-convention
37
37
  export function experimental_sx() {
38
- throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : _formatMuiErrorMessage(19));
38
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : _formatErrorMessage(19));
39
39
  }
40
40
  export { default as unstable_getThemeValue } from "./getThemeValue/index.js";
41
41
  export { default as Box } from "./Box/index.js";
@@ -1,6 +1,6 @@
1
- export const version = "7.0.0-beta.4";
1
+ export const version = "7.0.0-rc.0";
2
2
  export const major = Number("7");
3
3
  export const minor = Number("0");
4
4
  export const patch = Number("0");
5
- export const prerelease = "beta.4";
5
+ export const prerelease = "rc.0";
6
6
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "7.0.0-beta.4",
3
+ "version": "7.0.0-rc.0",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.",
@@ -26,14 +26,14 @@
26
26
  "url": "https://opencollective.com/mui-org"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.26.9",
29
+ "@babel/runtime": "^7.26.10",
30
30
  "clsx": "^2.1.1",
31
31
  "csstype": "^3.1.3",
32
32
  "prop-types": "^15.8.1",
33
- "@mui/private-theming": "7.0.0-beta.4",
34
- "@mui/types": "^7.3.0",
35
- "@mui/styled-engine": "7.0.0-beta.4",
36
- "@mui/utils": "7.0.0-beta.4"
33
+ "@mui/styled-engine": "7.0.0-rc.0",
34
+ "@mui/private-theming": "7.0.0-rc.0",
35
+ "@mui/types": "^7.3.1",
36
+ "@mui/utils": "7.0.0-rc.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@emotion/react": "^11.5.0",
package/version/index.js CHANGED
@@ -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 = "7.0.0-beta.4";
7
+ const version = exports.version = "7.0.0-rc.0";
8
8
  const major = exports.major = Number("7");
9
9
  const minor = exports.minor = Number("0");
10
10
  const patch = exports.patch = Number("0");
11
- const prerelease = exports.prerelease = "beta.4";
11
+ const prerelease = exports.prerelease = "rc.0";
12
12
  var _default = exports.default = version;