@mui/system 5.14.20 → 5.15.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,63 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.15.0
4
+
5
+ <!-- generated comparing v5.14.20..master -->
6
+
7
+ _Dec 11, 2023_
8
+
9
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🚀 Added [a new package for a better Material UI integration with Next.js](https://mui.com/material-ui/guides/nextjs) (#39947) @siriwatknp
12
+
13
+ ### `@mui/material@5.15.0`
14
+
15
+ - &#8203;<!-- 12 -->Revert "[Select][material-ui] Add name to hidden input element" (#40174) @mj12albert
16
+ - &#8203;<!-- 02 -->[material-ui] Refactor ComponentsVariants type into a generic (#39623) @blakenetz
17
+
18
+ ### `@mui/material-nextjs@5.15.0`
19
+
20
+ - &#8203;<!-- 01 -->[material-ui] Add new Next.js integration package (#39947) @siriwatknp
21
+
22
+ ### `@mui/material-next@6.0.0-alpha.113`
23
+
24
+ - &#8203;<!-- 11 -->[Badge][material-next] Apply new OwnerState type to Badge (#40119) @lhilgert9
25
+ - &#8203;<!-- 06 -->[material-next][ButtonGroup] Change `ButtonGroup` files to ts (#39794) @lhilgert9
26
+
27
+ ### `@mui/icons-material@5.15.0`
28
+
29
+ - &#8203;<!-- 05 -->[icons] Add X logo (#38811) @abreel
30
+
31
+ ### `@mui/base@5.0.0-beta.27`
32
+
33
+ - &#8203;<!-- 10 -->[base-ui] useControllableReducer warns when controlled props become uncontrolled (and vice versa) (#39096) @mj12albert
34
+
35
+ ### `@mui/joy@5.0.0-beta.18`
36
+
37
+ - &#8203;<!-- 04 -->[joy-ui][Radio][Input] Fix inheritance of disabled prop (#39934) @sai6855
38
+
39
+ ### `@mui/lab@5.0.0-alpha.156`
40
+
41
+ - &#8203;<!-- 03 -->[lab][LoadingButton] LoadingButton now inherits props from ButtonGroup (#39679) @lhilgert9
42
+
43
+ ### Docs
44
+
45
+ - &#8203;<!-- 09 -->[docs] Fix reference to non-existent checkmark in supported-components.md (#40056) @mbrookes
46
+ - &#8203;<!-- 09 -->[docs][base-ui] Add copy button & primary color picker to the component gallery page (#39884) @mnajdova
47
+ - &#8203;<!-- 08 -->[docs-infra] Update CodeSandbox links (#39992) @anle9650
48
+ - &#8203;<!-- 04 -->[material-ui][docs] Fix wrong root element for emotion styles in shadow DOM (#35326) @EloB
49
+ - &#8203;<!-- 03 -->[material-ui][docs] Move the responsive font charts from recharts to MUI X (#40097) @alexfauquette
50
+ - &#8203;<!-- 02 -->[joy-ui][templates] Remove outdated code (#40095) @zanivan
51
+ - &#8203;<!-- 05 -->[material-ui][docs][Popper] Update Positioned Popper demo styles (#40170) @sai6855
52
+
53
+ ### Core
54
+
55
+ - &#8203;<!-- 08 -->[blog] Add a Phuket retreat blog post (#40055) @mikailaread
56
+ - &#8203;<!-- 07 -->[blog] Adjust the latest MUI X blog post (#40046) @danilo-leal
57
+ - &#8203;<!-- 05 -->[core] Migrate from tslint to eslint (#40020) @ZeeshanTamboli
58
+
59
+ All contributors of this release in alphabetical order: @abreel, @alexfauquette, @anle9650, @blakenetz, @danilo-leal, @EloB, @lhilgert9, @mbrookes, @mikailaread, @mj12albert, @mnajdova, @sai6855, @siriwatknp, @zanivan, @ZeeshanTamboli
60
+
3
61
  ## 5.14.20
4
62
 
5
63
  <!-- generated comparing v5.14.19..master -->
@@ -11056,7 +11114,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
11056
11114
  <Typography variant="poster">poster</Typography>;
11057
11115
  ```
11058
11116
 
11059
- [A full demo](https://codesandbox.io/s/fontsizetheme-material-demo-forked-l9u05?file=/demo.tsx:725-773)
11117
+ [A full demo](https://codesandbox.io/p/sandbox/fontsizetheme-material-demo-forked-l9u05?file=/demo.tsx:725-773)
11060
11118
 
11061
11119
  - 📚 Add a shortcut to open the Algolia search (#23959) @hmaddisb.
11062
11120
  - And many more 🐛 bug fixes and 📚 improvements.
@@ -12250,7 +12308,7 @@ Here are some highlights ✨:
12250
12308
 
12251
12309
  You can find a [new version](https://mui.com/components/slider-styled/) of the slider in the lab powered by [emotion](https://emotion.sh/).
12252
12310
 
12253
- In the event that you are already using styled-components in your application, you can swap emotion for styled-components 💅. Check [this CodeSandbox](https://codesandbox.io/s/sliderstyled-with-styled-components-forked-olc27?file=/package.json) for a demo. It relies on aliases to prevent any bundle size overhead.
12311
+ In the event that you are already using styled-components in your application, you can swap emotion for styled-components 💅. Check [this CodeSandbox](https://codesandbox.io/p/sandbox/sliderstyled-with-styled-components-forked-olc27?file=/package.json) for a demo. It relies on aliases to prevent any bundle size overhead.
12254
12312
 
12255
12313
  The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
12256
12314
 
@@ -116,7 +116,6 @@ function createGrid(options = {}) {
116
116
  // use context value if exists.
117
117
  parentDisableEqualOverflow: overflow // for nested grid
118
118
  });
119
-
120
119
  const classes = useUtilityClasses(ownerState, theme);
121
120
  let result = /*#__PURE__*/(0, _jsxRuntime.jsx)(GridRoot, (0, _extends2.default)({
122
121
  ref: ref,
package/breakpoints.js CHANGED
@@ -29,7 +29,6 @@ const values = exports.values = {
29
29
  // desktop
30
30
  xl: 1536 // large screen
31
31
  };
32
-
33
32
  const defaultBreakpoints = {
34
33
  // Sorted ASC by size. That's important.
35
34
  // It can't be configured as it's used statically for propTypes.
@@ -214,7 +214,6 @@ function getLuminance(color) {
214
214
  if (color.type !== 'color') {
215
215
  val /= 255; // normalized
216
216
  }
217
-
218
217
  return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
219
218
  });
220
219
 
@@ -42,7 +42,6 @@ function createBreakpoints(breakpoints) {
42
42
  // desktop
43
43
  xl: 1536 // large screen
44
44
  },
45
-
46
45
  unit = 'px',
47
46
  step = 5
48
47
  } = breakpoints,
@@ -7,8 +7,7 @@ exports.default = createSpacing;
7
7
  var _spacing = require("../spacing");
8
8
  // The different signatures imply different meaning for their arguments that can't be expressed structurally.
9
9
  // We express the difference with variable names.
10
- /* tslint:disable:unified-signatures */
11
- /* tslint:enable:unified-signatures */
10
+
12
11
  function createSpacing(spacingInput = 8) {
13
12
  // Already transformed.
14
13
  if (spacingInput.mui) {
@@ -130,7 +130,6 @@ function cssVarsParser(theme, options) {
130
130
  }
131
131
  }, keys => keys[0] === 'vars' // skip 'vars/*' paths
132
132
  );
133
-
134
133
  return {
135
134
  css,
136
135
  vars,
@@ -107,7 +107,6 @@ export default function createGrid(options = {}) {
107
107
  // use context value if exists.
108
108
  parentDisableEqualOverflow: overflow // for nested grid
109
109
  });
110
-
111
110
  const classes = useUtilityClasses(ownerState, theme);
112
111
  let result = /*#__PURE__*/_jsx(GridRoot, _extends({
113
112
  ref: ref,
@@ -16,7 +16,6 @@ export const values = {
16
16
  // desktop
17
17
  xl: 1536 // large screen
18
18
  };
19
-
20
19
  const defaultBreakpoints = {
21
20
  // Sorted ASC by size. That's important.
22
21
  // It can't be configured as it's used statically for propTypes.
@@ -189,7 +189,6 @@ export function getLuminance(color) {
189
189
  if (color.type !== 'color') {
190
190
  val /= 255; // normalized
191
191
  }
192
-
193
192
  return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
194
193
  });
195
194
 
@@ -34,7 +34,6 @@ export default function createBreakpoints(breakpoints) {
34
34
  // desktop
35
35
  xl: 1536 // large screen
36
36
  },
37
-
38
37
  unit = 'px',
39
38
  step = 5
40
39
  } = breakpoints,
@@ -2,8 +2,6 @@ import { createUnarySpacing } from '../spacing';
2
2
 
3
3
  // The different signatures imply different meaning for their arguments that can't be expressed structurally.
4
4
  // We express the difference with variable names.
5
- /* tslint:disable:unified-signatures */
6
- /* tslint:enable:unified-signatures */
7
5
 
8
6
  export default function createSpacing(spacingInput = 8) {
9
7
  // Already transformed.
@@ -120,7 +120,6 @@ export default function cssVarsParser(theme, options) {
120
120
  }
121
121
  }, keys => keys[0] === 'vars' // skip 'vars/*' paths
122
122
  );
123
-
124
123
  return {
125
124
  css,
126
125
  vars,
package/esm/merge.js CHANGED
@@ -7,5 +7,4 @@ function merge(acc, item) {
7
7
  clone: false // No need to clone deep, it's way faster.
8
8
  });
9
9
  }
10
-
11
10
  export default merge;
@@ -69,7 +69,6 @@ export function unstable_createStyleFunctionSx() {
69
69
  if (!sx) {
70
70
  return null; // Emotion & styled-components will neglect null
71
71
  }
72
-
73
72
  const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;
74
73
 
75
74
  /*
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v5.14.20
2
+ * @mui/system v5.15.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -120,7 +120,6 @@ export default function createGrid() {
120
120
  // use context value if exists.
121
121
  parentDisableEqualOverflow: overflow // for nested grid
122
122
  });
123
-
124
123
  var classes = useUtilityClasses(ownerState, theme);
125
124
  var result = /*#__PURE__*/_jsx(GridRoot, _extends({
126
125
  ref: ref,
@@ -18,7 +18,6 @@ export var values = {
18
18
  // desktop
19
19
  xl: 1536 // large screen
20
20
  };
21
-
22
21
  var defaultBreakpoints = {
23
22
  // Sorted ASC by size. That's important.
24
23
  // It can't be configured as it's used statically for propTypes.
@@ -196,7 +196,6 @@ export function getLuminance(color) {
196
196
  if (color.type !== 'color') {
197
197
  val /= 255; // normalized
198
198
  }
199
-
200
199
  return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
201
200
  });
202
201
 
@@ -2,8 +2,6 @@ import { createUnarySpacing } from '../spacing';
2
2
 
3
3
  // The different signatures imply different meaning for their arguments that can't be expressed structurally.
4
4
  // We express the difference with variable names.
5
- /* tslint:disable:unified-signatures */
6
- /* tslint:enable:unified-signatures */
7
5
 
8
6
  export default function createSpacing() {
9
7
  var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;
@@ -132,7 +132,6 @@ export default function cssVarsParser(theme, options) {
132
132
  return keys[0] === 'vars';
133
133
  } // skip 'vars/*' paths
134
134
  );
135
-
136
135
  return {
137
136
  css: css,
138
137
  vars: vars,
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v5.14.20
2
+ * @mui/system v5.15.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/legacy/merge.js CHANGED
@@ -7,5 +7,4 @@ function merge(acc, item) {
7
7
  clone: false // No need to clone deep, it's way faster.
8
8
  });
9
9
  }
10
-
11
10
  export default merge;
@@ -68,7 +68,6 @@ export function unstable_createStyleFunctionSx() {
68
68
  if (!sx) {
69
69
  return null; // Emotion & styled-components will neglect null
70
70
  }
71
-
72
71
  var config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;
73
72
 
74
73
  /*
@@ -106,7 +106,6 @@ export default function createGrid(options = {}) {
106
106
  // use context value if exists.
107
107
  parentDisableEqualOverflow: overflow // for nested grid
108
108
  });
109
-
110
109
  const classes = useUtilityClasses(ownerState, theme);
111
110
  let result = /*#__PURE__*/_jsx(GridRoot, _extends({
112
111
  ref: ref,
@@ -16,7 +16,6 @@ export const values = {
16
16
  // desktop
17
17
  xl: 1536 // large screen
18
18
  };
19
-
20
19
  const defaultBreakpoints = {
21
20
  // Sorted ASC by size. That's important.
22
21
  // It can't be configured as it's used statically for propTypes.
@@ -189,7 +189,6 @@ export function getLuminance(color) {
189
189
  if (color.type !== 'color') {
190
190
  val /= 255; // normalized
191
191
  }
192
-
193
192
  return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;
194
193
  });
195
194
 
@@ -34,7 +34,6 @@ export default function createBreakpoints(breakpoints) {
34
34
  // desktop
35
35
  xl: 1536 // large screen
36
36
  },
37
-
38
37
  unit = 'px',
39
38
  step = 5
40
39
  } = breakpoints,
@@ -2,8 +2,6 @@ import { createUnarySpacing } from '../spacing';
2
2
 
3
3
  // The different signatures imply different meaning for their arguments that can't be expressed structurally.
4
4
  // We express the difference with variable names.
5
- /* tslint:disable:unified-signatures */
6
- /* tslint:enable:unified-signatures */
7
5
 
8
6
  export default function createSpacing(spacingInput = 8) {
9
7
  // Already transformed.
@@ -120,7 +120,6 @@ export default function cssVarsParser(theme, options) {
120
120
  }
121
121
  }, keys => keys[0] === 'vars' // skip 'vars/*' paths
122
122
  );
123
-
124
123
  return {
125
124
  css,
126
125
  vars,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/system v5.14.20
2
+ * @mui/system v5.15.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/merge.js CHANGED
@@ -7,5 +7,4 @@ function merge(acc, item) {
7
7
  clone: false // No need to clone deep, it's way faster.
8
8
  });
9
9
  }
10
-
11
10
  export default merge;
@@ -68,7 +68,6 @@ export function unstable_createStyleFunctionSx() {
68
68
  if (!sx) {
69
69
  return null; // Emotion & styled-components will neglect null
70
70
  }
71
-
72
71
  const config = theme.unstable_sxConfig ?? defaultSxConfig;
73
72
 
74
73
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/system",
3
- "version": "5.14.20",
3
+ "version": "5.15.0",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "CSS utilities for rapidly laying out custom designs.",
@@ -26,11 +26,11 @@
26
26
  "url": "https://opencollective.com/mui-org"
27
27
  },
28
28
  "dependencies": {
29
- "@babel/runtime": "^7.23.4",
30
- "@mui/private-theming": "^5.14.20",
31
- "@mui/styled-engine": "^5.14.19",
32
- "@mui/types": "^7.2.10",
33
- "@mui/utils": "^5.14.20",
29
+ "@babel/runtime": "^7.23.5",
30
+ "@mui/private-theming": "^5.15.0",
31
+ "@mui/styled-engine": "^5.15.0",
32
+ "@mui/types": "^7.2.11",
33
+ "@mui/utils": "^5.15.0",
34
34
  "clsx": "^2.0.0",
35
35
  "csstype": "^3.1.2",
36
36
  "prop-types": "^15.8.1"
@@ -77,7 +77,6 @@ function unstable_createStyleFunctionSx() {
77
77
  if (!sx) {
78
78
  return null; // Emotion & styled-components will neglect null
79
79
  }
80
-
81
80
  const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : _defaultSxConfig.default;
82
81
 
83
82
  /*