@mui/utils 5.15.1 → 5.15.2
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 +62 -0
- package/capitalize/capitalize.js +1 -1
- package/esm/capitalize/capitalize.js +1 -1
- package/esm/{formatMuiErrorMessage.js → formatMuiErrorMessage/formatMuiErrorMessage.js} +2 -2
- package/esm/formatMuiErrorMessage/index.js +1 -0
- package/{formatMuiErrorMessage.d.ts → formatMuiErrorMessage/formatMuiErrorMessage.d.ts} +1 -1
- package/{formatMuiErrorMessage.js → formatMuiErrorMessage/formatMuiErrorMessage.js} +2 -2
- package/formatMuiErrorMessage/index.d.ts +1 -0
- package/formatMuiErrorMessage/index.js +13 -0
- package/formatMuiErrorMessage/package.json +6 -0
- package/index.js +1 -1
- package/legacy/capitalize/capitalize.js +1 -1
- package/legacy/{formatMuiErrorMessage.js → formatMuiErrorMessage/formatMuiErrorMessage.js} +2 -2
- package/legacy/formatMuiErrorMessage/index.js +1 -0
- package/legacy/index.js +1 -1
- package/modern/capitalize/capitalize.js +1 -1
- package/modern/{formatMuiErrorMessage.js → formatMuiErrorMessage/formatMuiErrorMessage.js} +2 -2
- package/modern/formatMuiErrorMessage/index.js +1 -0
- package/modern/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,67 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.15.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.15.1..master -->
|
|
6
|
+
|
|
7
|
+
_Dec 25, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 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
|
+
- 💫 Published a [blogpost](https://mui.com/blog/2023-material-ui-v6-and-beyond/) for the 2024's plan about Material UI
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.15.1`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 31 -->[Badge] Use the variants API in the styled call (#40213) @mnajdova
|
|
17
|
+
- ​<!-- 04 -->[Paper] Add missing Paper classes descriptions (#40300) @sai6855
|
|
18
|
+
|
|
19
|
+
### `@mui/system@5.15.1`
|
|
20
|
+
|
|
21
|
+
- ​<!-- 03 -->Support props callback in the variant's definition (#40094) @mnajdova
|
|
22
|
+
|
|
23
|
+
### `@mui/base@5.0.0-beta.29`
|
|
24
|
+
|
|
25
|
+
- ​<!-- 29 -->[Popup] Use context-based transition API (#39326) @michaldudak
|
|
26
|
+
- ​<!-- 28 -->[Popup] Popup no longer opens outside viewport (#39827) @adamhylander
|
|
27
|
+
- ​<!-- 27 -->[useSelect] Refactor to use DOM focus management instead of active descendant (#39675) @DiegoAndai
|
|
28
|
+
|
|
29
|
+
### `@mui/material-next@6.0.0-alpha.115`
|
|
30
|
+
|
|
31
|
+
- ​<!-- 15 -->[material-next][Divider]Divider ts support (#40307) @sai6855
|
|
32
|
+
|
|
33
|
+
### Docs
|
|
34
|
+
|
|
35
|
+
- ​<!-- 30 -->[base-ui] Fix form submission Select demo (#40014) @ZeeshanTamboli
|
|
36
|
+
- ​<!-- 24 -->[blog] Add Material UI v6 and beyond blog post (#40242) @mnajdova
|
|
37
|
+
- ​<!-- 10 -->[material-ui] Fix broken links in the All components page (#40303) @muazaqdas
|
|
38
|
+
- ​<!-- 09 -->[material-ui] Fix broken links on the All components page (#40279) @danilo-leal
|
|
39
|
+
- ​<!-- 08 -->[material-ui] Add aria-current for nav tabs demo (#39594) @Kimzify
|
|
40
|
+
- ​<!-- 07 -->[material-ui] Add an "All components" page (#40256) @danilo-leal
|
|
41
|
+
- ​<!-- 06 -->[material-ui][Tooltip] Add demo to show how to change distance between tooltip and its anchor (#40087) @anle9650
|
|
42
|
+
|
|
43
|
+
### Core
|
|
44
|
+
|
|
45
|
+
- ​<!-- 26 -->[blog] Fix 301 redirection @oliviertassinari
|
|
46
|
+
- ​<!-- 25 -->[blog] Reduce max image size @oliviertassinari
|
|
47
|
+
- ​<!-- 23 -->[code-infra] Extract Babel macro from mui-utils (#40262) @michaldudak
|
|
48
|
+
- ​<!-- 22 -->[core] Simplify a bit the release instructions @oliviertassinari
|
|
49
|
+
- ​<!-- 21 -->[core] Push force to deploy is not unexpected @oliviertassinari
|
|
50
|
+
- ​<!-- 20 -->[core] Fix CSS2 vs. CSS3 ::after syntax @oliviertassinari
|
|
51
|
+
- ​<!-- 19 -->[core] Fix CSS2 vs. CSS3 ::before syntax @oliviertassinari
|
|
52
|
+
- ​<!-- 05 -->[core] Use direct import from utils package (#40254) @siriwatknp
|
|
53
|
+
- ​<!-- 18 -->[core] Yaml format match most common convention @oliviertassinari
|
|
54
|
+
- ​<!-- 17 -->[core] Polish docs-feedback issue template @oliviertassinari
|
|
55
|
+
- ​<!-- 16 -->[core] Pin Node version on GitHub Actions to 18.18 (#40187) @michaldudak
|
|
56
|
+
- ​<!-- 14 -->[docs] Fix SEO regression (#40306) @oliviertassinari
|
|
57
|
+
- ​<!-- 13 -->[docs] Fix docs redirections @oliviertassinari
|
|
58
|
+
- ​<!-- 12 -->[docs] Update the Contributing guide to give more guidance on documentation (#40274) @samuelsycamore
|
|
59
|
+
- ​<!-- 11 -->[docs-infra] Add polish to the inline code block (#40260) @danilo-leal
|
|
60
|
+
- ​<!-- 02 -->[website] Update Gold sponsors: add RxDB, standardize formatting (#40273) @samuelsycamore
|
|
61
|
+
- ​<!-- 01 -->[website] Revert change to homepage SEO attributes @oliviertassinari
|
|
62
|
+
|
|
63
|
+
All contributors of this release in alphabetical order: @adamhylander, @anle9650, @danilo-leal, @DiegoAndai, @Kimzify, @michaldudak, @mnajdova, @muazaqdas, @oliviertassinari, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
64
|
+
|
|
3
65
|
## 5.15.1
|
|
4
66
|
|
|
5
67
|
<!-- generated comparing v5.15.0..master -->
|
package/capitalize/capitalize.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = capitalize;
|
|
8
|
-
var _formatMuiErrorMessage2 = _interopRequireDefault(require("
|
|
8
|
+
var _formatMuiErrorMessage2 = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
9
9
|
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
|
10
10
|
//
|
|
11
11
|
// A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _formatMuiErrorMessage from "
|
|
1
|
+
import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
|
|
2
2
|
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
|
3
3
|
//
|
|
4
4
|
// A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/
|
|
3
|
+
* Use `MuiError` from `@mui-internal/babel-macros/MuiError.macro` instead.
|
|
4
4
|
* @param {number} code
|
|
5
5
|
*/
|
|
6
6
|
export default function formatMuiErrorMessage(code) {
|
|
7
7
|
// Apply babel-plugin-transform-template-literals in loose mode
|
|
8
|
-
// loose mode is safe
|
|
8
|
+
// loose mode is safe if we're concatenating primitives
|
|
9
9
|
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
|
|
10
10
|
/* eslint-disable prefer-template */
|
|
11
11
|
let url = 'https://mui.com/production-error/?code=' + code;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './formatMuiErrorMessage';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/
|
|
3
|
+
* Use `MuiError` from `@mui-internal/babel-macros/MuiError.macro` instead.
|
|
4
4
|
* @param {number} code
|
|
5
5
|
*/
|
|
6
6
|
export default function formatMuiErrorMessage(code: number): string;
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = formatMuiErrorMessage;
|
|
7
7
|
/**
|
|
8
8
|
* WARNING: Don't import this directly.
|
|
9
|
-
* Use `MuiError` from `@mui/
|
|
9
|
+
* Use `MuiError` from `@mui-internal/babel-macros/MuiError.macro` instead.
|
|
10
10
|
* @param {number} code
|
|
11
11
|
*/
|
|
12
12
|
function formatMuiErrorMessage(code) {
|
|
13
13
|
// Apply babel-plugin-transform-template-literals in loose mode
|
|
14
|
-
// loose mode is safe
|
|
14
|
+
// loose mode is safe if we're concatenating primitives
|
|
15
15
|
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
|
|
16
16
|
/* eslint-disable prefer-template */
|
|
17
17
|
let url = 'https://mui.com/production-error/?code=' + code;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './formatMuiErrorMessage';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "default", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _formatMuiErrorMessage.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("./formatMuiErrorMessage"));
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _formatMuiErrorMessage from "
|
|
1
|
+
import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
|
|
2
2
|
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
|
3
3
|
//
|
|
4
4
|
// A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/
|
|
3
|
+
* Use `MuiError` from `@mui-internal/babel-macros/MuiError.macro` instead.
|
|
4
4
|
* @param {number} code
|
|
5
5
|
*/
|
|
6
6
|
export default function formatMuiErrorMessage(code) {
|
|
7
7
|
// Apply babel-plugin-transform-template-literals in loose mode
|
|
8
|
-
// loose mode is safe
|
|
8
|
+
// loose mode is safe if we're concatenating primitives
|
|
9
9
|
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
|
|
10
10
|
/* eslint-disable prefer-template */
|
|
11
11
|
var url = 'https://mui.com/production-error/?code=' + code;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './formatMuiErrorMessage';
|
package/legacy/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _formatMuiErrorMessage from "
|
|
1
|
+
import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
|
|
2
2
|
// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
|
|
3
3
|
//
|
|
4
4
|
// A strict capitalization should uppercase the first letter of each word in the sentence.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/
|
|
3
|
+
* Use `MuiError` from `@mui-internal/babel-macros/MuiError.macro` instead.
|
|
4
4
|
* @param {number} code
|
|
5
5
|
*/
|
|
6
6
|
export default function formatMuiErrorMessage(code) {
|
|
7
7
|
// Apply babel-plugin-transform-template-literals in loose mode
|
|
8
|
-
// loose mode is safe
|
|
8
|
+
// loose mode is safe if we're concatenating primitives
|
|
9
9
|
// see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose
|
|
10
10
|
/* eslint-disable prefer-template */
|
|
11
11
|
let url = 'https://mui.com/production-error/?code=' + code;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './formatMuiErrorMessage';
|
package/modern/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/utils",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Utility functions for React components.",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "https://opencollective.com/mui-org"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@babel/runtime": "^7.23.
|
|
29
|
+
"@babel/runtime": "^7.23.6",
|
|
30
30
|
"@types/prop-types": "^15.7.11",
|
|
31
31
|
"prop-types": "^15.8.1",
|
|
32
32
|
"react-is": "^18.2.0"
|