@mui/material 5.15.2 → 5.15.3
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 +75 -5
- package/Popper/Popper.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/index.js +1 -0
- package/modern/index.js +1 -1
- package/modern/styles/index.js +1 -0
- package/node/index.js +1 -1
- package/node/styles/index.js +8 -0
- package/package.json +6 -6
- package/styles/index.js +1 -0
- package/umd/material-ui.development.js +12 -8
- package/umd/material-ui.production.min.js +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.15.3
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.15.2..master -->
|
|
6
|
+
|
|
7
|
+
_Jan 3, 2024_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 11 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material-nextjs@5.15.3`
|
|
13
|
+
|
|
14
|
+
- ​<!-- 06 -->[material-nextjs] Fix order of emotion server (#40409) @siriwatknp
|
|
15
|
+
|
|
16
|
+
### `@mui/base@5.0.0-beta.30`
|
|
17
|
+
|
|
18
|
+
- ​<!-- 40 -->[useSlider] Rearrange passive option in eventlisteners (#40235) @Kamino0
|
|
19
|
+
|
|
20
|
+
### `@mui/lab@5.0.0-alpha.159`
|
|
21
|
+
|
|
22
|
+
- ​<!-- 14 -->Add use client directive (#40358) @DiegoAndai
|
|
23
|
+
|
|
24
|
+
### `@mui/material-next@6.0.0-alpha.116`
|
|
25
|
+
|
|
26
|
+
- ​<!-- 13 -->[List] Copy all List\* components to material-next package (#40367) @sai6855
|
|
27
|
+
- ​<!-- 12 -->Update CONTRIBUTING guide given v6/v7 rescheduling (#40363) @DiegoAndai
|
|
28
|
+
- ​<!-- 11 -->[MenuItem] Fix spec import (#40271) @DiegoAndai
|
|
29
|
+
- ​<!-- 10 -->[Option] Add Option component (#40270) @DiegoAndai
|
|
30
|
+
- ​<!-- 09 -->[Slider] Replace lodash with internal utils (#40261) @DiegoAndai
|
|
31
|
+
- ​<!-- 08 -->[Switch] Change files to TypeScript (#39894) @lhilgert9
|
|
32
|
+
- ​<!-- 07 -->[theme] Move ref palette out of color schemes (#40341) @DiegoAndai
|
|
33
|
+
|
|
34
|
+
### Docs
|
|
35
|
+
|
|
36
|
+
- ​<!-- 41 -->[base-ui] Polish the Table Pagination demos (#40281) @danilo-leal
|
|
37
|
+
- ​<!-- 22 -->[joy-ui] Fix dashboard template console errors (#40316) @oliviertassinari
|
|
38
|
+
- ​<!-- 21 -->[joy-ui] Fix image size on the Files template (#40315) @oliviertassinari
|
|
39
|
+
- ​<!-- 20 -->[material-ui] Revise the Divider page (#40356) @danilo-leal
|
|
40
|
+
- ​<!-- 19 -->[material-ui] Polish the Next.js integration page (#40317) @oliviertassinari
|
|
41
|
+
- ​<!-- 18 -->[material-ui] Adding autoFocus on Virtual Popover (#40239) @aacevski
|
|
42
|
+
- ​<!-- 17 -->[material-ui] Revise the Roadmap page (#40054) @danilo-leal
|
|
43
|
+
- ​<!-- 16 -->[material-ui] Update the "showing and hiding" section on the Tooltip page (#40283) @anle9650
|
|
44
|
+
- ​<!-- 05 -->[material-ui] Fix Slider's customized iOS demo to use updated official colors (#39813) @Super-Kenil
|
|
45
|
+
- ​<!-- 15 -->[examples] Simplify Next.js example (#40318) @oliviertassinari
|
|
46
|
+
|
|
47
|
+
### Core
|
|
48
|
+
|
|
49
|
+
- ​<!-- 39 -->[blog] Update open-graph cards for all posts (#40328) @danilo-leal
|
|
50
|
+
- ​<!-- 38 -->[blog] Correct git diff @oliviertassinari
|
|
51
|
+
- ​<!-- 37 -->[code-infra] Update lerna and unpin its version (#40399) @michaldudak
|
|
52
|
+
- ​<!-- 36 -->[code-infra] Break package dependency cycle between @mui/material and @mui/icons-material (#40400) @michaldudak
|
|
53
|
+
- ​<!-- 35 -->[code-infra] Break package dependency cycles (#40398) @michaldudak
|
|
54
|
+
- ​<!-- 34 -->[code-infra] Sync bug issue template (#40305) @oliviertassinari
|
|
55
|
+
- ​<!-- 33 -->[docs] Fix 301 link to Base UI (#40396) @oliviertassinari
|
|
56
|
+
- ​<!-- 32 -->[docs] Link new MUI X components in sidnav (#40345) @oliviertassinari
|
|
57
|
+
- ​<!-- 31 -->[docs] Fix 301 links to Toolpad @oliviertassinari
|
|
58
|
+
- ​<!-- 30 -->[docs] Remove old notifications @oliviertassinari
|
|
59
|
+
- ​<!-- 29 -->[docs] Always mention the npm tag with npx (#40335) @oliviertassinari
|
|
60
|
+
- ​<!-- 28 -->[docs] Reduce network use on the All Components pages (#40313) @oliviertassinari
|
|
61
|
+
- ​<!-- 27 -->[docs-infra] Fix missing button aria-label (#40394) @oliviertassinari
|
|
62
|
+
- ​<!-- 26 -->[docs-infra] Fix a11y violation rule (#40393) @oliviertassinari
|
|
63
|
+
- ​<!-- 25 -->[docs-infra] Prefetch pages on hover (#40314) @oliviertassinari
|
|
64
|
+
- ​<!-- 24 -->[docs-infra] Fix footer links to link to the main domain (#40373) @oliviertassinari
|
|
65
|
+
- ​<!-- 23 -->[docs-infra] Add stray design adjustments (#40347) @danilo-leal
|
|
66
|
+
- ​<!-- 04 -->[website] Fix Base UI page's component section imports & styles (#40231) @danilo-leal
|
|
67
|
+
- ​<!-- 03 -->[website] Fix outdated Nhost image link @oliviertassinari
|
|
68
|
+
- ​<!-- 02 -->[website] Shorten Joy UI description, 7 chars too long @oliviertassinari
|
|
69
|
+
- ​<!-- 01 -->[website] Update some social preview images (#40282) @danilo-leal
|
|
70
|
+
|
|
71
|
+
All contributors of this release in alphabetical order: @aacevski, @anle9650, @danilo-leal, @DiegoAndai, @Kamino0, @lhilgert9, @michaldudak, @oliviertassinari, @sai6855, @siriwatknp, @Super-Kenil
|
|
72
|
+
|
|
3
73
|
## 5.15.2
|
|
4
74
|
|
|
5
75
|
<!-- generated comparing v5.15.1..master -->
|
|
@@ -11,12 +81,12 @@ A big thanks to the 13 contributors who made this release possible. Here are som
|
|
|
11
81
|
- 🚀 Added support for callbacks in the [variant's props definition](https://mui.com/material-ui/customization/theme-components/#creating-new-component-variants) (#40094) @mnajdova
|
|
12
82
|
- 💫 Published a [blogpost](https://mui.com/blog/2023-material-ui-v6-and-beyond/) for the 2024's plan about Material UI
|
|
13
83
|
|
|
14
|
-
### `@mui/material@5.15.
|
|
84
|
+
### `@mui/material@5.15.2`
|
|
15
85
|
|
|
16
86
|
- ​<!-- 31 -->[Badge] Use the variants API in the styled call (#40213) @mnajdova
|
|
17
87
|
- ​<!-- 04 -->[Paper] Add missing Paper classes descriptions (#40300) @sai6855
|
|
18
88
|
|
|
19
|
-
### `@mui/system@5.15.
|
|
89
|
+
### `@mui/system@5.15.2`
|
|
20
90
|
|
|
21
91
|
- ​<!-- 03 -->Support props callback in the variant's definition (#40094) @mnajdova
|
|
22
92
|
|
|
@@ -1369,7 +1439,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
1369
1439
|
A codemod is provided to help with the migration:
|
|
1370
1440
|
|
|
1371
1441
|
```bash
|
|
1372
|
-
npx @mui/codemod v5.0.0/base-use-named-exports <path>
|
|
1442
|
+
npx @mui/codemod@latest v5.0.0/base-use-named-exports <path>
|
|
1373
1443
|
```
|
|
1374
1444
|
|
|
1375
1445
|
#### Changes
|
|
@@ -2251,7 +2321,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
2251
2321
|
There is codemod that you can run in your project to do the transformation:
|
|
2252
2322
|
|
|
2253
2323
|
```bash
|
|
2254
|
-
npx @mui/codemod v5.0.0/base-remove-component-prop <path>
|
|
2324
|
+
npx @mui/codemod@latest v5.0.0/base-remove-component-prop <path>
|
|
2255
2325
|
```
|
|
2256
2326
|
|
|
2257
2327
|
The full documentation about the codemod can be found [here](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#base-remove-component-prop).
|
|
@@ -2350,7 +2420,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
|
|
|
2350
2420
|
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/src/v5.0.0/base-remove-unstyled-suffix.js) to help with the migration:
|
|
2351
2421
|
|
|
2352
2422
|
```bash
|
|
2353
|
-
npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
|
|
2423
|
+
npx @mui/codemod@latest v5.0.0/base-remove-unstyled-suffix <path>
|
|
2354
2424
|
```
|
|
2355
2425
|
|
|
2356
2426
|
#### Changes
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -43,14 +43,14 @@ declare const Popper: React.ForwardRefExoticComponent<Omit<BasePopperProps, "dir
|
|
|
43
43
|
* The component used for the root node.
|
|
44
44
|
* Either a string to use a HTML element or a component.
|
|
45
45
|
*/
|
|
46
|
-
component?: React.ElementType<any> | undefined;
|
|
46
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* The components used for each slot inside the Popper.
|
|
49
49
|
* Either a string to use a HTML element or a component.
|
|
50
50
|
* @default {}
|
|
51
51
|
*/
|
|
52
52
|
components?: {
|
|
53
|
-
Root?: React.ElementType<any> | undefined;
|
|
53
|
+
Root?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
54
54
|
} | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* The props used for each slot inside the Popper.
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
package/legacy/styles/index.js
CHANGED
|
@@ -33,4 +33,5 @@ export { default as shouldSkipGeneratingVar } from './shouldSkipGeneratingVar';
|
|
|
33
33
|
|
|
34
34
|
// Private methods for creating parts of the theme
|
|
35
35
|
export { default as private_createTypography } from './createTypography';
|
|
36
|
+
export { default as private_createMixins } from './createMixins';
|
|
36
37
|
export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
|
package/modern/index.js
CHANGED
package/modern/styles/index.js
CHANGED
|
@@ -33,4 +33,5 @@ export { default as shouldSkipGeneratingVar } from './shouldSkipGeneratingVar';
|
|
|
33
33
|
|
|
34
34
|
// Private methods for creating parts of the theme
|
|
35
35
|
export { default as private_createTypography } from './createTypography';
|
|
36
|
+
export { default as private_createMixins } from './createMixins';
|
|
36
37
|
export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
|
package/node/index.js
CHANGED
package/node/styles/index.js
CHANGED
|
@@ -44,6 +44,7 @@ var _exportNames = {
|
|
|
44
44
|
getOverlayAlpha: true,
|
|
45
45
|
shouldSkipGeneratingVar: true,
|
|
46
46
|
private_createTypography: true,
|
|
47
|
+
private_createMixins: true,
|
|
47
48
|
private_excludeVariablesFromRoot: true
|
|
48
49
|
};
|
|
49
50
|
Object.defineProperty(exports, "StyledEngineProvider", {
|
|
@@ -191,6 +192,12 @@ Object.defineProperty(exports, "makeStyles", {
|
|
|
191
192
|
return _makeStyles.default;
|
|
192
193
|
}
|
|
193
194
|
});
|
|
195
|
+
Object.defineProperty(exports, "private_createMixins", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () {
|
|
198
|
+
return _createMixins.default;
|
|
199
|
+
}
|
|
200
|
+
});
|
|
194
201
|
Object.defineProperty(exports, "private_createTypography", {
|
|
195
202
|
enumerable: true,
|
|
196
203
|
get: function () {
|
|
@@ -308,6 +315,7 @@ var _experimental_extendTheme = _interopRequireDefault(require("./experimental_e
|
|
|
308
315
|
var _getOverlayAlpha = _interopRequireDefault(require("./getOverlayAlpha"));
|
|
309
316
|
var _shouldSkipGeneratingVar = _interopRequireDefault(require("./shouldSkipGeneratingVar"));
|
|
310
317
|
var _createTypography = _interopRequireDefault(require("./createTypography"));
|
|
318
|
+
var _createMixins = _interopRequireDefault(require("./createMixins"));
|
|
311
319
|
var _excludeVariablesFromRoot = _interopRequireDefault(require("./excludeVariablesFromRoot"));
|
|
312
320
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
313
321
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.3",
|
|
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.",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.23.6",
|
|
31
|
-
"@mui/base": "5.0.0-beta.
|
|
32
|
-
"@mui/core-downloads-tracker": "^5.15.
|
|
33
|
-
"@mui/system": "^5.15.
|
|
34
|
-
"@mui/types": "^7.2.
|
|
35
|
-
"@mui/utils": "^5.15.
|
|
31
|
+
"@mui/base": "5.0.0-beta.30",
|
|
32
|
+
"@mui/core-downloads-tracker": "^5.15.3",
|
|
33
|
+
"@mui/system": "^5.15.3",
|
|
34
|
+
"@mui/types": "^7.2.12",
|
|
35
|
+
"@mui/utils": "^5.15.3",
|
|
36
36
|
"@types/react-transition-group": "^4.4.10",
|
|
37
37
|
"clsx": "^2.0.0",
|
|
38
38
|
"csstype": "^3.1.2",
|
package/styles/index.js
CHANGED
|
@@ -33,4 +33,5 @@ export { default as shouldSkipGeneratingVar } from './shouldSkipGeneratingVar';
|
|
|
33
33
|
|
|
34
34
|
// Private methods for creating parts of the theme
|
|
35
35
|
export { default as private_createTypography } from './createTypography';
|
|
36
|
+
export { default as private_createMixins } from './createMixins';
|
|
36
37
|
export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.15.
|
|
2
|
+
* @mui/material v5.15.3
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -19280,8 +19280,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19280
19280
|
}
|
|
19281
19281
|
moveCount.current = 0;
|
|
19282
19282
|
const doc = ownerDocument(sliderRef.current);
|
|
19283
|
-
doc.addEventListener('touchmove', handleTouchMove
|
|
19284
|
-
|
|
19283
|
+
doc.addEventListener('touchmove', handleTouchMove, {
|
|
19284
|
+
passive: true
|
|
19285
|
+
});
|
|
19286
|
+
doc.addEventListener('touchend', handleTouchEnd, {
|
|
19287
|
+
passive: true
|
|
19288
|
+
});
|
|
19285
19289
|
});
|
|
19286
19290
|
const stopListening = React__namespace.useCallback(() => {
|
|
19287
19291
|
const doc = ownerDocument(sliderRef.current);
|
|
@@ -19298,10 +19302,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19298
19302
|
passive: doesSupportTouchActionNone()
|
|
19299
19303
|
});
|
|
19300
19304
|
return () => {
|
|
19301
|
-
|
|
19302
|
-
slider.removeEventListener('touchstart', handleTouchStart, {
|
|
19303
|
-
passive: doesSupportTouchActionNone()
|
|
19304
|
-
});
|
|
19305
|
+
slider.removeEventListener('touchstart', handleTouchStart);
|
|
19305
19306
|
stopListening();
|
|
19306
19307
|
};
|
|
19307
19308
|
}, [stopListening, handleTouchStart]);
|
|
@@ -19347,7 +19348,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19347
19348
|
}
|
|
19348
19349
|
moveCount.current = 0;
|
|
19349
19350
|
const doc = ownerDocument(sliderRef.current);
|
|
19350
|
-
doc.addEventListener('mousemove', handleTouchMove
|
|
19351
|
+
doc.addEventListener('mousemove', handleTouchMove, {
|
|
19352
|
+
passive: true
|
|
19353
|
+
});
|
|
19351
19354
|
doc.addEventListener('mouseup', handleTouchEnd);
|
|
19352
19355
|
};
|
|
19353
19356
|
const trackOffset = valueToPercent(range ? values[0] : min, min, max);
|
|
@@ -50495,6 +50498,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50495
50498
|
exports.paginationItemClasses = paginationItemClasses$1;
|
|
50496
50499
|
exports.paperClasses = paperClasses$1;
|
|
50497
50500
|
exports.popoverClasses = popoverClasses$1;
|
|
50501
|
+
exports.private_createMixins = createMixins;
|
|
50498
50502
|
exports.private_createTypography = createTypography;
|
|
50499
50503
|
exports.private_excludeVariablesFromRoot = excludeVariablesFromRoot$1;
|
|
50500
50504
|
exports.radioClasses = radioClasses$1;
|