@mui/system 6.4.3 → 6.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,98 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 6.4.6
4
+
5
+ <!-- generated comparing v6.4.5..v6.x -->
6
+
7
+ _Feb 26, 2025_
8
+
9
+ A big thanks to the 4 contributors who made this release possible.
10
+
11
+ ### `@mui/material@6.4.6`
12
+
13
+ - [Checkbox] Add slots and slotProps (#45361) @siriwatknp
14
+ - [Drawer] Deprecate *Props and complete `slots`, `slotProps` (#45377) @siriwatknp
15
+ - [Grid] Improve Grid2 upgrade experience (#45372) @DiegoAndai
16
+ - [InputBase] Deprecate composed classes (#45366) @siriwatknp
17
+ - Fix `slotProps.transition` types (#45367) @siriwatknp
18
+ - Allow nested theme creation with `vars` (#45368) @siriwatknp
19
+ - Fix wrong slotProps of DetailsHTMLAttributes types (#45356) @siriwatknp
20
+ - [Popover] Deprecate *Props and complete `slots`, `slotProps` (#45337) @siriwatknp
21
+ - [Radio] Add slots and slotProps (#45364) @siriwatknp
22
+ - [Slider] Fix css class selector in migration guide (#45409) @sai6855
23
+ - [Slider] Fix spacings in .md files (#45393) @sai6855
24
+ - [Snackbar] Add Slots and SlotProps (#45103) (#45352) @siriwatknp
25
+ - [SpeedDialAction] Add slots and slotProps (#45365) @siriwatknp
26
+ - [SwitchBase] Deprecate `inputProps` and complete slots, slotProps (#45338) @siriwatknp
27
+ - [Tabs] Deprecate *Props and complete slots, slotProps (#45012) (#45355) @siriwatknp
28
+ - [Menu] Deprecate *Props and complete `slots`, `slotProps` (#45369) @siriwatknp
29
+
30
+ ### Docs
31
+
32
+ - [Autocomplete] Remove unnecessary renderTags prop from Sizes demo (#45403) @ZeeshanTamboli
33
+ - Fix typo in slider docs (#45392) @sai6855
34
+
35
+ ### Core
36
+
37
+ - [test] Remove unused renderTags prop and fix key warning in Autocomplete regression test (#45412) @ZeeshanTamboli
38
+
39
+ All contributors of this release in alphabetical order: @DiegoAndai, @sai6855, @siriwatknp, @ZeeshanTamboli
40
+
41
+ ## 6.4.5
42
+
43
+ <!-- generated comparing v6.4.4..v6.x -->
44
+
45
+ _Feb 18, 2025_
46
+
47
+ A big thanks to the 5 contributors who made this release possible.
48
+
49
+ ### `@mui/material@6.4.5`
50
+
51
+ - [Autocomplete] Remove legacy `aria-owns` attribute for combobox (#45303) @ZeeshanTamboli
52
+ - [Button] Apply id only if loading indicator is present (#45339) @aarongarciah
53
+
54
+ ### Docs
55
+
56
+ - [icons] Fix typo in material-icons.md (#45336) @a-s-russo
57
+ - [Menu] Add Grouped Menu demo (#45292) @noobDev31
58
+
59
+ ### Core
60
+
61
+ - [blog] Consistent Base UI terminology (#45342) @aarongarciah
62
+ - Fix double redirection to Base UI (#45146) @oliviertassinari
63
+
64
+ All contributors of this release in alphabetical order: @a-s-russo, @aarongarciah, @noobDev31, @oliviertassinari, @ZeeshanTamboli
65
+
66
+ ## 6.4.4
67
+
68
+ <!-- generated comparing v6.4.3..v6.x -->
69
+
70
+ _Feb 11, 2025_
71
+
72
+ A big thanks to the 3 contributors who made this release possible.
73
+
74
+ ### `@mui/material@6.4.4`
75
+
76
+ - [MobileStepper] deprecate `LinearProgressProps` and complete `slots`, `slotProps` (@siriwatknp) (#45242) @siriwatknp
77
+ - [Slider] Deprecate composed classes (@sai6855) (#45223) @sai6855
78
+ - [utils] Merge `sx` instead of override when using `mergeSlotProps` (#45129) @siriwatknp
79
+
80
+ ### Docs
81
+
82
+ - [Autocomplete] Improve Google Maps search example (#44708) @oliviertassinari
83
+ - [Dialog] Removes deprecated PaperProps from docs (#45217) @sai6855
84
+ - A quick first step to update docs for Tailwind v4 (#45221) @oliviertassinari
85
+
86
+ ### Core
87
+
88
+ - Fix missing store contributor renaming (527222d) @oliviertassinari
89
+ - Fix MUI Base vale rule (#45140) @oliviertassinari
90
+ - Fix 404 errors (#45137) @oliviertassinari
91
+ - [docs] Sync active sponsors (#45204) @oliviertassinari
92
+ - [docs-infra] Move Ukraine banner to the bottom (#45135) @oliviertassinari
93
+
94
+ All contributors of this release in alphabetical order: @oliviertassinari, @sai6855, @siriwatknp
95
+
3
96
  ## 6.4.3
4
97
 
5
98
  <!-- generated comparing v6.4.2..v6.x -->
@@ -18,6 +18,7 @@ var _useTheme = _interopRequireDefault(require("../useTheme"));
18
18
  var _styleFunctionSx = require("../styleFunctionSx");
19
19
  var _createTheme = _interopRequireDefault(require("../createTheme"));
20
20
  var _gridGenerator = require("./gridGenerator");
21
+ var _deleteLegacyGridProps = _interopRequireDefault(require("./deleteLegacyGridProps"));
21
22
  var _jsxRuntime = require("react/jsx-runtime");
22
23
  const defaultTheme = (0, _createTheme.default)();
23
24
 
@@ -83,6 +84,9 @@ function createGrid(options = {}) {
83
84
  const theme = useTheme();
84
85
  const themeProps = useThemeProps(inProps);
85
86
  const props = (0, _styleFunctionSx.extendSxProp)(themeProps); // `color` type conflicts with html color attribute.
87
+
88
+ // TODO v8: Remove when removing the legacy Grid component
89
+ (0, _deleteLegacyGridProps.default)(props, theme.breakpoints);
86
90
  const {
87
91
  className,
88
92
  children,
@@ -0,0 +1,11 @@
1
+ import { Breakpoint, Breakpoints } from '../createTheme';
2
+ /**
3
+ * Deletes the legacy Grid component props from the `props` object and warns once about them if found.
4
+ *
5
+ * @param {object} props The props object to remove the legacy Grid props from.
6
+ * @param {Breakpoints} breakpoints The breakpoints object.
7
+ */
8
+ export default function deleteLegacyGridProps(props: {
9
+ item?: boolean;
10
+ zeroMinWidth?: boolean;
11
+ } & Partial<Record<Breakpoint, 'auto' | number | boolean>> & Record<string, any>, breakpoints: Breakpoints): void;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = deleteLegacyGridProps;
7
+ const getLegacyGridWarning = propName => {
8
+ if (['item', 'zeroMinWidth'].includes(propName)) {
9
+ return `The \`${propName}\` prop has been removed and is no longer necessary. You can safely remove it.`;
10
+ }
11
+
12
+ // #host-reference
13
+ return `The \`${propName}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;
14
+ };
15
+ const warnedAboutProps = [];
16
+
17
+ /**
18
+ * Deletes the legacy Grid component props from the `props` object and warns once about them if found.
19
+ *
20
+ * @param {object} props The props object to remove the legacy Grid props from.
21
+ * @param {Breakpoints} breakpoints The breakpoints object.
22
+ */
23
+ function deleteLegacyGridProps(props, breakpoints) {
24
+ const propsToWarn = [];
25
+ if (props.item !== undefined) {
26
+ delete props.item;
27
+ propsToWarn.push('item');
28
+ }
29
+ if (props.zeroMinWidth !== undefined) {
30
+ delete props.zeroMinWidth;
31
+ propsToWarn.push('zeroMinWidth');
32
+ }
33
+ breakpoints.keys.forEach(breakpoint => {
34
+ if (props[breakpoint] !== undefined) {
35
+ propsToWarn.push(breakpoint);
36
+ delete props[breakpoint];
37
+ }
38
+ });
39
+ if (process.env.NODE_ENV !== 'production') {
40
+ propsToWarn.forEach(prop => {
41
+ if (!warnedAboutProps.includes(prop)) {
42
+ warnedAboutProps.push(prop);
43
+ console.warn(`MUI Grid2: ${getLegacyGridWarning(prop)}\n`);
44
+ }
45
+ });
46
+ }
47
+ }
@@ -10,6 +10,7 @@ import useThemeSystem from "../useTheme/index.js";
10
10
  import { extendSxProp } from "../styleFunctionSx/index.js";
11
11
  import createTheme from "../createTheme/index.js";
12
12
  import { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from "./gridGenerator.js";
13
+ import deleteLegacyGridProps from "./deleteLegacyGridProps.js";
13
14
  import { jsx as _jsx } from "react/jsx-runtime";
14
15
  const defaultTheme = createTheme();
15
16
 
@@ -75,6 +76,9 @@ export default function createGrid(options = {}) {
75
76
  const theme = useTheme();
76
77
  const themeProps = useThemeProps(inProps);
77
78
  const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
79
+
80
+ // TODO v8: Remove when removing the legacy Grid component
81
+ deleteLegacyGridProps(props, theme.breakpoints);
78
82
  const {
79
83
  className,
80
84
  children,
@@ -0,0 +1,41 @@
1
+ const getLegacyGridWarning = propName => {
2
+ if (['item', 'zeroMinWidth'].includes(propName)) {
3
+ return `The \`${propName}\` prop has been removed and is no longer necessary. You can safely remove it.`;
4
+ }
5
+
6
+ // #host-reference
7
+ return `The \`${propName}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;
8
+ };
9
+ const warnedAboutProps = [];
10
+
11
+ /**
12
+ * Deletes the legacy Grid component props from the `props` object and warns once about them if found.
13
+ *
14
+ * @param {object} props The props object to remove the legacy Grid props from.
15
+ * @param {Breakpoints} breakpoints The breakpoints object.
16
+ */
17
+ export default function deleteLegacyGridProps(props, breakpoints) {
18
+ const propsToWarn = [];
19
+ if (props.item !== undefined) {
20
+ delete props.item;
21
+ propsToWarn.push('item');
22
+ }
23
+ if (props.zeroMinWidth !== undefined) {
24
+ delete props.zeroMinWidth;
25
+ propsToWarn.push('zeroMinWidth');
26
+ }
27
+ breakpoints.keys.forEach(breakpoint => {
28
+ if (props[breakpoint] !== undefined) {
29
+ propsToWarn.push(breakpoint);
30
+ delete props[breakpoint];
31
+ }
32
+ });
33
+ if (process.env.NODE_ENV !== 'production') {
34
+ propsToWarn.forEach(prop => {
35
+ if (!warnedAboutProps.includes(prop)) {
36
+ warnedAboutProps.push(prop);
37
+ console.warn(`MUI Grid2: ${getLegacyGridWarning(prop)}\n`);
38
+ }
39
+ });
40
+ }
41
+ }
@@ -1,6 +1,6 @@
1
- export const version = "6.4.3";
1
+ export const version = "6.4.6";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("4");
4
- export const patch = Number("3");
4
+ export const patch = Number("6");
5
5
  export const prerelease = undefined;
6
6
  export default version;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v6.4.3
2
+ * @mui/system v6.4.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -10,6 +10,7 @@ import useThemeSystem from "../useTheme/index.js";
10
10
  import { extendSxProp } from "../styleFunctionSx/index.js";
11
11
  import createTheme from "../createTheme/index.js";
12
12
  import { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from "./gridGenerator.js";
13
+ import deleteLegacyGridProps from "./deleteLegacyGridProps.js";
13
14
  import { jsx as _jsx } from "react/jsx-runtime";
14
15
  const defaultTheme = createTheme();
15
16
 
@@ -75,6 +76,9 @@ export default function createGrid(options = {}) {
75
76
  const theme = useTheme();
76
77
  const themeProps = useThemeProps(inProps);
77
78
  const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
79
+
80
+ // TODO v8: Remove when removing the legacy Grid component
81
+ deleteLegacyGridProps(props, theme.breakpoints);
78
82
  const {
79
83
  className,
80
84
  children,
@@ -0,0 +1,41 @@
1
+ const getLegacyGridWarning = propName => {
2
+ if (['item', 'zeroMinWidth'].includes(propName)) {
3
+ return `The \`${propName}\` prop has been removed and is no longer necessary. You can safely remove it.`;
4
+ }
5
+
6
+ // #host-reference
7
+ return `The \`${propName}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;
8
+ };
9
+ const warnedAboutProps = [];
10
+
11
+ /**
12
+ * Deletes the legacy Grid component props from the `props` object and warns once about them if found.
13
+ *
14
+ * @param {object} props The props object to remove the legacy Grid props from.
15
+ * @param {Breakpoints} breakpoints The breakpoints object.
16
+ */
17
+ export default function deleteLegacyGridProps(props, breakpoints) {
18
+ const propsToWarn = [];
19
+ if (props.item !== undefined) {
20
+ delete props.item;
21
+ propsToWarn.push('item');
22
+ }
23
+ if (props.zeroMinWidth !== undefined) {
24
+ delete props.zeroMinWidth;
25
+ propsToWarn.push('zeroMinWidth');
26
+ }
27
+ breakpoints.keys.forEach(breakpoint => {
28
+ if (props[breakpoint] !== undefined) {
29
+ propsToWarn.push(breakpoint);
30
+ delete props[breakpoint];
31
+ }
32
+ });
33
+ if (process.env.NODE_ENV !== 'production') {
34
+ propsToWarn.forEach(prop => {
35
+ if (!warnedAboutProps.includes(prop)) {
36
+ warnedAboutProps.push(prop);
37
+ console.warn(`MUI Grid2: ${getLegacyGridWarning(prop)}\n`);
38
+ }
39
+ });
40
+ }
41
+ }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v6.4.3
2
+ * @mui/system v6.4.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,6 +1,6 @@
1
- export const version = "6.4.3";
1
+ export const version = "6.4.6";
2
2
  export const major = Number("6");
3
3
  export const minor = Number("4");
4
- export const patch = Number("3");
4
+ export const patch = Number("6");
5
5
  export const prerelease = undefined;
6
6
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "6.4.3",
3
+ "version": "6.4.6",
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.",
@@ -30,10 +30,10 @@
30
30
  "clsx": "^2.1.1",
31
31
  "csstype": "^3.1.3",
32
32
  "prop-types": "^15.8.1",
33
- "@mui/styled-engine": "^6.4.3",
34
- "@mui/private-theming": "^6.4.3",
35
- "@mui/utils": "^6.4.3",
36
- "@mui/types": "^7.2.21"
33
+ "@mui/private-theming": "^6.4.6",
34
+ "@mui/styled-engine": "^6.4.6",
35
+ "@mui/types": "^7.2.21",
36
+ "@mui/utils": "^6.4.6"
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 = "6.4.3";
7
+ const version = exports.version = "6.4.6";
8
8
  const major = exports.major = Number("6");
9
9
  const minor = exports.minor = Number("4");
10
- const patch = exports.patch = Number("3");
10
+ const patch = exports.patch = Number("6");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;