@mui/system 5.14.20 → 5.15.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/CHANGELOG.md CHANGED
@@ -1,5 +1,105 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.15.1
4
+
5
+ <!-- generated comparing v5.15.0..master -->
6
+
7
+ _Dec 19, 2023_
8
+
9
+ A big thanks to the 15 contributors who made this release possible.
10
+ This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
11
+
12
+ ### `@mui/material@5.15.1`
13
+
14
+ - &#8203;<!-- 13 -->[CardActions][DialogActions] Apply margin for all children except for 1st child (#40168) @sai6855
15
+ - &#8203;<!-- 03 -->[TablePagination] Add ability to change icons in TablePaginationActions using `slots` and `slotProps` (#33797) @pratikkarad
16
+ - &#8203;<!-- 13 -->[CssVarsProvider] Fix HSL breaking button styles (#39869) @gitstart
17
+
18
+ ### `@mui/joy@5.0.0-beta.19`
19
+
20
+ - &#8203;<!-- 05 -->[FormControl] Fix issue with the conditional setting of `htmlFor` and `id` attributes not functioning properly for form labels (#40180) @ReaZzy
21
+ - &#8203;<!-- 04 -->[typescript] Address TypeScript issue with custom zIndex not functioning (#40133) @qiweiii
22
+
23
+ ### `@mui/styled-engine-sc@6.0.0-alpha.9`
24
+
25
+ - &#8203;<!-- 02 -->[typescript] Fix `theme` being of type any (#40200) @mnajdova
26
+
27
+ ### Docs
28
+
29
+ - &#8203;<!-- 09 -->[joy-ui] Fix typo in the CSS baseline page (#40222) @possibilities
30
+ - &#8203;<!-- 08 -->[joy-ui] Document missing Autocomplete props (#39979) @ZeeshanTamboli
31
+ - &#8203;<!-- 10 -->[joy-ui] Fix typo about Typography levels (#40230) @zanivan
32
+ - &#8203;<!-- 07 -->[material-ui] Update the related projects page to list `mui-tiptap` for rich text (#40216) @sjdemartini
33
+ - &#8203;<!-- 06 -->[material-ui] Fix typo in the Next.js integration page (#40209) @s8990
34
+
35
+ ### Core
36
+
37
+ - &#8203;<!-- 14 -->[blog] Fix access to Notion without an account @oliviertassinari
38
+ - &#8203;<!-- 12 -->[core] Update workflows and issue templates to reflect the updated label (#40197) @MBilalShafi
39
+ - &#8203;<!-- 11 -->[docs] Replace Twitter with X (#40193) @mbrookes
40
+ - &#8203;<!-- 10 -->[docs-infra] Uplift the Algolia search modal design (#40186) @danilo-leal
41
+ - &#8203;<!-- 01 -->[website] Update product descriptions and social preview images (#32181) @danilo-leal
42
+
43
+ All contributors of this release in alphabetical order: @danilo-leal, @gitstart, @MBilalShafi, @mbrookes, @mnajdova, @oliviertassinari, @possibilities, @pratikkarad, @qiweiii, @ReaZzy, @s8990, @sai6855, @sjdemartini, @zanivan, @ZeeshanTamboli
44
+
45
+ ## 5.15.0
46
+
47
+ <!-- generated comparing v5.14.20..master -->
48
+
49
+ _Dec 11, 2023_
50
+
51
+ A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
52
+
53
+ - 🚀 Added [a new package for a better Material UI integration with Next.js](https://mui.com/material-ui/guides/nextjs) (#39947) @siriwatknp
54
+
55
+ ### `@mui/material@5.15.0`
56
+
57
+ - &#8203;<!-- 12 -->Revert "[Select][material-ui] Add name to hidden input element" (#40174) @mj12albert
58
+ - &#8203;<!-- 02 -->[material-ui] Refactor ComponentsVariants type into a generic (#39623) @blakenetz
59
+
60
+ ### `@mui/material-nextjs@5.15.0`
61
+
62
+ - &#8203;<!-- 01 -->[material-ui] Add new Next.js integration package (#39947) @siriwatknp
63
+
64
+ ### `@mui/material-next@6.0.0-alpha.113`
65
+
66
+ - &#8203;<!-- 11 -->[Badge][material-next] Apply new OwnerState type to Badge (#40119) @lhilgert9
67
+ - &#8203;<!-- 06 -->[material-next][ButtonGroup] Change `ButtonGroup` files to ts (#39794) @lhilgert9
68
+
69
+ ### `@mui/icons-material@5.15.0`
70
+
71
+ - &#8203;<!-- 05 -->[icons] Add X logo (#38811) @abreel
72
+
73
+ ### `@mui/base@5.0.0-beta.27`
74
+
75
+ - &#8203;<!-- 10 -->[base-ui] useControllableReducer warns when controlled props become uncontrolled (and vice versa) (#39096) @mj12albert
76
+
77
+ ### `@mui/joy@5.0.0-beta.18`
78
+
79
+ - &#8203;<!-- 04 -->[joy-ui][Radio][Input] Fix inheritance of disabled prop (#39934) @sai6855
80
+
81
+ ### `@mui/lab@5.0.0-alpha.156`
82
+
83
+ - &#8203;<!-- 03 -->[lab][LoadingButton] LoadingButton now inherits props from ButtonGroup (#39679) @lhilgert9
84
+
85
+ ### Docs
86
+
87
+ - &#8203;<!-- 09 -->[docs] Fix reference to non-existent checkmark in supported-components.md (#40056) @mbrookes
88
+ - &#8203;<!-- 09 -->[docs][base-ui] Add copy button & primary color picker to the component gallery page (#39884) @mnajdova
89
+ - &#8203;<!-- 08 -->[docs-infra] Update CodeSandbox links (#39992) @anle9650
90
+ - &#8203;<!-- 04 -->[material-ui][docs] Fix wrong root element for emotion styles in shadow DOM (#35326) @EloB
91
+ - &#8203;<!-- 03 -->[material-ui][docs] Move the responsive font charts from recharts to MUI X (#40097) @alexfauquette
92
+ - &#8203;<!-- 02 -->[joy-ui][templates] Remove outdated code (#40095) @zanivan
93
+ - &#8203;<!-- 05 -->[material-ui][docs][Popper] Update Positioned Popper demo styles (#40170) @sai6855
94
+
95
+ ### Core
96
+
97
+ - &#8203;<!-- 08 -->[blog] Add a Phuket retreat blog post (#40055) @mikailaread
98
+ - &#8203;<!-- 07 -->[blog] Adjust the latest MUI X blog post (#40046) @danilo-leal
99
+ - &#8203;<!-- 05 -->[core] Migrate from tslint to eslint (#40020) @ZeeshanTamboli
100
+
101
+ All contributors of this release in alphabetical order: @abreel, @alexfauquette, @anle9650, @blakenetz, @danilo-leal, @EloB, @lhilgert9, @mbrookes, @mikailaread, @mj12albert, @mnajdova, @sai6855, @siriwatknp, @zanivan, @ZeeshanTamboli
102
+
3
103
  ## 5.14.20
4
104
 
5
105
  <!-- generated comparing v5.14.19..master -->
@@ -11056,7 +11156,7 @@ A big thanks to the 13 contributors who made this release possible. Here are som
11056
11156
  <Typography variant="poster">poster</Typography>;
11057
11157
  ```
11058
11158
 
11059
- [A full demo](https://codesandbox.io/s/fontsizetheme-material-demo-forked-l9u05?file=/demo.tsx:725-773)
11159
+ [A full demo](https://codesandbox.io/p/sandbox/fontsizetheme-material-demo-forked-l9u05?file=/demo.tsx:725-773)
11060
11160
 
11061
11161
  - 📚 Add a shortcut to open the Algolia search (#23959) @hmaddisb.
11062
11162
  - And many more 🐛 bug fixes and 📚 improvements.
@@ -12250,7 +12350,7 @@ Here are some highlights ✨:
12250
12350
 
12251
12351
  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
12352
 
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.
12353
+ 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
12354
 
12255
12355
  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
12356
 
@@ -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.1
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.1
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.1
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.1",
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.1",
31
+ "@mui/styled-engine": "^5.15.1",
32
+ "@mui/types": "^7.2.11",
33
+ "@mui/utils": "^5.15.1",
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
  /*