@mui/system 5.11.0 → 5.11.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 +127 -0
- package/esm/index.js +6 -0
- package/index.d.ts +4 -0
- package/index.js +10 -2
- package/legacy/index.js +7 -1
- package/modern/index.js +7 -1
- package/package.json +4 -4
- package/spacing.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,132 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.2
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.1..master -->
|
|
6
|
+
|
|
7
|
+
_Dec 26, 2022_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- ⚙️ Several MUI Base components were converted to TypeScript by @trizotti, @leventdeniz and @danhuynhdev (#35005, #34793, #34771)
|
|
12
|
+
- Many other 🐛 bug fixes abd 📚 documentation improvements.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.11.2`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 10 -->[l10n] Add displayed rows label to `faIR` locale (#35587) @hootan-rocky
|
|
17
|
+
- ​<!-- 09 -->[l10n] Add Kurdish (Kurmanji) locale (#32508) @JagarYousef
|
|
18
|
+
- ​<!-- 06 -->[Select] Accept non-component children (#33530) @boutahlilsoufiane
|
|
19
|
+
- ​<!-- 05 -->[SelectInput] Update menu to use select wrapper as anchor (#34229) @EduardoSCosta
|
|
20
|
+
- ​<!-- 03 -->[TableCell] Fix `scope` prop to be not set when a data cell is rendered within a table head (#35559) @sai6855
|
|
21
|
+
|
|
22
|
+
### `@mui/utils@5.11.2`
|
|
23
|
+
|
|
24
|
+
- ​<!-- 02 -->[utils] `mergedeep` deeply clones source key if it's an object (#35364) @sldk-yuri
|
|
25
|
+
|
|
26
|
+
### `@mui/base@5.0.0-alpha.112`
|
|
27
|
+
|
|
28
|
+
- ​<!-- 16 -->[FocusTrap][base] Convert code to TypeScript (#35005) @trizotti
|
|
29
|
+
- ​<!-- 08 -->[Modal][base] Convert code to TypeScript (#34793) @leventdeniz
|
|
30
|
+
- ​<!-- 07 -->[Popper][base] Convert code to TypeScript (#34771) @danhuynhdev
|
|
31
|
+
- ​<!-- 04 -->[Slider] Exclude `isRtl` from Material UI's Slider props (#35564) @michaldudak
|
|
32
|
+
|
|
33
|
+
### `@mui/joy@5.0.0-alpha.60`
|
|
34
|
+
|
|
35
|
+
- ​<!-- 15 -->[Joy] Fix radius adjustment (#35629) @siriwatknp
|
|
36
|
+
- ​<!-- 14 -->[Joy] Apply color inversion to components (#34602) @siriwatknp
|
|
37
|
+
- ​<!-- 13 -->[Joy] Improve cursor pointer and add fallback for outlined variant (#35573) @siriwatknp
|
|
38
|
+
- ​<!-- 12 -->[Joy] Miscellaneous fixes (#35552) @siriwatknp
|
|
39
|
+
- ​<!-- 11 -->[Radio][joy] Use precise dimensions for radio icon (#35548) @hbjORbj
|
|
40
|
+
|
|
41
|
+
### `@mui/material-next@6.0.0-alpha.68`
|
|
42
|
+
|
|
43
|
+
- ​<!-- 36 -->[Material You] Update Button test & add active class name (#35497) @mnajdova
|
|
44
|
+
|
|
45
|
+
### Docs
|
|
46
|
+
|
|
47
|
+
- ​<!-- 35 -->[docs] Fix GoogleMaps demo (#35545) @hbjORbj
|
|
48
|
+
- ​<!-- 25 -->[docs] Remove flow, its legacy (#35624) @oliviertassinari
|
|
49
|
+
- ​<!-- 24 -->[docs] Add a guide on using icon libraries with Joy UI (#35377) @siriwatknp
|
|
50
|
+
- ​<!-- 23 -->[docs] Clarify comment about `sortStability()` use case (#35570) @frontendlane
|
|
51
|
+
- ​<!-- 22 -->[docs] Improve the experimental API demos on the button page (#35560) @mnajdova
|
|
52
|
+
- ​<!-- 21 -->[docs] Force `light` theme mode when `activePage` is null (#35575) @LukasTy
|
|
53
|
+
- ​<!-- 20 -->[docs] Fix ListItem button deprecated use (#33970) @MickaelAustoni
|
|
54
|
+
- ​<!-- 19 -->[docs] Fix typo in `Progress` docs (#35553) @jasonsturges
|
|
55
|
+
- ​<!-- 18 -->[docs] Remove empty tags on the TransferList demos (#33127) @ekusiadadus
|
|
56
|
+
- ​<!-- 17 -->[docs][joy] Add documentation for `Stack` component (#35373) @hbjORbj
|
|
57
|
+
- ​<!-- 35 -->[docs][joy] Add documentation for `Grid` component (#35374) @hbjORbj
|
|
58
|
+
- ​<!-- 01 -->[website] Update sponsor grid (#35452) @danilo-leal
|
|
59
|
+
|
|
60
|
+
### Core
|
|
61
|
+
|
|
62
|
+
- ​<!-- 34 -->[core] Shorthand notation to remove outline (#35623) @oliviertassinari
|
|
63
|
+
- ​<!-- 33 -->[core] Fix header link layout shift and clash (#35626) @oliviertassinari
|
|
64
|
+
- ​<!-- 32 -->[core] Hide keyboard shortcut if no hover feature (#35625) @oliviertassinari
|
|
65
|
+
- ​<!-- 31 -->[core] Fix confusing duplicated name in the log @oliviertassinari
|
|
66
|
+
- ​<!-- 30 -->[core] Fix API demos callout spacing (#35579) @oliviertassinari
|
|
67
|
+
- ​<!-- 29 -->[core] Fix a few title case (#35547) @oliviertassinari
|
|
68
|
+
- ​<!-- 28 -->[core] Cleanup mention of test-utils (#35577) @oliviertassinari
|
|
69
|
+
- ​<!-- 27 -->[core] Remove oudated pickers prop-type logic (#35571) @oliviertassinari
|
|
70
|
+
- ​<!-- 26 -->[core] Exclude documentation of Base props not used in styled libraries (#35562) @michaldudak
|
|
71
|
+
|
|
72
|
+
All contributors of this release in alphabetical order: @boutahlilsoufiane, @danhuynhdev, @danilo-leal, @EduardoSCosta, @ekusiadadus, @frontendlane, @hbjORbj, @hootan-rocky, @JagarYousef, @jasonsturges, @leventdeniz, @LukasTy, @michaldudak, @MickaelAustoni, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @sldk-yuri, @trizotti
|
|
73
|
+
|
|
74
|
+
## 5.11.1
|
|
75
|
+
|
|
76
|
+
<!-- generated comparing v5.11.0..master -->
|
|
77
|
+
|
|
78
|
+
_Dec 20, 2022_
|
|
79
|
+
|
|
80
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
81
|
+
|
|
82
|
+
- 💅 @mnajdova added motion and shape design tokens to Material You package (#35384 and #35393).
|
|
83
|
+
- Many other 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
84
|
+
|
|
85
|
+
### `@mui/material@5.11.1`
|
|
86
|
+
|
|
87
|
+
- [Chip] Fix hover and focus style with CSS Variables (#35502) @DimaAbr
|
|
88
|
+
- [InputLabel] Enable `size` prop overrides via TypeScript module augmentation (#35460) @MickaelAustoni
|
|
89
|
+
- [l10n] Change Kazakh locale name to match ISO-639-1 codes (#34664) @talgautb
|
|
90
|
+
- [TextField] Fix error focus style (#35167) @42tte
|
|
91
|
+
- [core] Bring `experimental_sx` back with error code (#35528) @siriwatknp
|
|
92
|
+
|
|
93
|
+
### `@mui/utils@5.11.1`
|
|
94
|
+
|
|
95
|
+
- [Theme] Merge components and slots props (#35477) @siriwatknp
|
|
96
|
+
|
|
97
|
+
### `@mui/material-next@6.0.0-alpha.67`
|
|
98
|
+
|
|
99
|
+
- [Material You] Add motion design tokens (#35384) @mnajdova
|
|
100
|
+
- [Material You] Add shape design tokens (#35393) @mnajdova
|
|
101
|
+
|
|
102
|
+
### `@mui/joy@5.0.0-alpha.59`
|
|
103
|
+
|
|
104
|
+
- [Tooltip] Fix arrow does not appear (#35473) @siriwatknp
|
|
105
|
+
- [Input] Fix autofill styles (#35056) @siriwatknp
|
|
106
|
+
- [ChipDelete] Add onDelete prop to ChipDelete (#35412) @sai6855
|
|
107
|
+
|
|
108
|
+
### `@mui/base@5.0.0-alpha.111`
|
|
109
|
+
|
|
110
|
+
- [Button][base] Set active class when a subcomponent is clicked (#35410) @michaldudak
|
|
111
|
+
- [Popper][base] Fix Tooltip Anchor Element Setter (#35469) @sydneyjodon-wk
|
|
112
|
+
|
|
113
|
+
### Docs
|
|
114
|
+
|
|
115
|
+
- [docs] Fixed the `Select` component `onChange` event type in the migration guide (#35509) @tzynwang
|
|
116
|
+
- [docs] Add missing comma to `Providing the colors directly` section (#35507) @cassidoo
|
|
117
|
+
- [docs] Add `CardMedia` example without `component="img"` prop (#35470) @lucasmfredmark
|
|
118
|
+
- [docs] Fix `unstable_sxConfig` typo (#35478) @siriwatknp
|
|
119
|
+
- [docs] List component introduction example default code is missing ListItemContent component (#35492) @Miigaarino
|
|
120
|
+
- [website] Close our first people role @oliviertassinari
|
|
121
|
+
- [website] Update product icons (#35413) @danilo-leal
|
|
122
|
+
|
|
123
|
+
### Core
|
|
124
|
+
|
|
125
|
+
- [test] Terminate BrowserStack after 5 minutes (#35454) @oliviertassinari
|
|
126
|
+
- [test] Fix broken master branch (#35446) @oliviertassinari
|
|
127
|
+
|
|
128
|
+
All contributors of this release in alphabetical order: @42tte, @cassidoo, @danilo-leal, @DimaAbr, @lucasmfredmark, @michaldudak, @MickaelAustoni, @Miigaarino, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @sydneyjodon-wk, @talgautb, @tzynwang
|
|
129
|
+
|
|
3
130
|
## 5.11.0
|
|
4
131
|
|
|
5
132
|
<!-- generated comparing v5.10.17..master -->
|
package/esm/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
1
2
|
export { css, keyframes, GlobalStyles, StyledEngineProvider } from '@mui/styled-engine';
|
|
2
3
|
export { default as borders } from './borders';
|
|
3
4
|
export * from './borders';
|
|
@@ -22,6 +23,11 @@ export { default as style, getPath, getStyleValue } from './style';
|
|
|
22
23
|
export { default as typography } from './typography';
|
|
23
24
|
export * from './typography';
|
|
24
25
|
export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from './styleFunctionSx';
|
|
26
|
+
// TODO: Remove this function in v6
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
28
|
+
export function experimental_sx() {
|
|
29
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`experimental_sx\` has been moved to \`theme.unstable_sx\`.For more details, see https://github.com/mui/material-ui/pull/35150.` : _formatMuiErrorMessage(20));
|
|
30
|
+
}
|
|
25
31
|
export { default as unstable_getThemeValue } from './getThemeValue';
|
|
26
32
|
export { default as Box } from './Box';
|
|
27
33
|
export { default as createBox } from './createBox';
|
package/index.d.ts
CHANGED
|
@@ -123,6 +123,10 @@ export {
|
|
|
123
123
|
} from './styleFunctionSx';
|
|
124
124
|
export * from './styleFunctionSx';
|
|
125
125
|
|
|
126
|
+
// TODO: Remove this function in v6.
|
|
127
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
128
|
+
export function experimental_sx(): any;
|
|
129
|
+
|
|
126
130
|
export { default as Box } from './Box';
|
|
127
131
|
export * from './Box';
|
|
128
132
|
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.11.
|
|
1
|
+
/** @license MUI v5.11.2
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
12
|
var _exportNames = {
|
|
13
|
+
experimental_sx: true,
|
|
13
14
|
css: true,
|
|
14
15
|
keyframes: true,
|
|
15
16
|
GlobalStyles: true,
|
|
@@ -166,6 +167,7 @@ Object.defineProperty(exports, "display", {
|
|
|
166
167
|
return _display.default;
|
|
167
168
|
}
|
|
168
169
|
});
|
|
170
|
+
exports.experimental_sx = experimental_sx;
|
|
169
171
|
Object.defineProperty(exports, "flexbox", {
|
|
170
172
|
enumerable: true,
|
|
171
173
|
get: function () {
|
|
@@ -340,6 +342,7 @@ Object.defineProperty(exports, "useThemeWithoutDefault", {
|
|
|
340
342
|
return _useThemeWithoutDefault.default;
|
|
341
343
|
}
|
|
342
344
|
});
|
|
345
|
+
var _utils = require("@mui/utils");
|
|
343
346
|
var _styledEngine = require("@mui/styled-engine");
|
|
344
347
|
var _borders = _interopRequireWildcard(require("./borders"));
|
|
345
348
|
Object.keys(_borders).forEach(function (key) {
|
|
@@ -522,4 +525,9 @@ Object.keys(_Stack2).forEach(function (key) {
|
|
|
522
525
|
});
|
|
523
526
|
});
|
|
524
527
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
525
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
528
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
529
|
+
// TODO: Remove this function in v6
|
|
530
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
531
|
+
function experimental_sx() {
|
|
532
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`experimental_sx\` has been moved to \`theme.unstable_sx\`.For more details, see https://github.com/mui/material-ui/pull/35150.` : (0, _utils.formatMuiErrorMessage)(20));
|
|
533
|
+
}
|
package/legacy/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/** @license MUI v5.11.
|
|
1
|
+
/** @license MUI v5.11.2
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
5
5
|
*/
|
|
6
|
+
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
6
7
|
export { css, keyframes, GlobalStyles, StyledEngineProvider } from '@mui/styled-engine';
|
|
7
8
|
export { default as borders } from './borders';
|
|
8
9
|
export * from './borders';
|
|
@@ -27,6 +28,11 @@ export { default as style, getPath, getStyleValue } from './style';
|
|
|
27
28
|
export { default as typography } from './typography';
|
|
28
29
|
export * from './typography';
|
|
29
30
|
export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from './styleFunctionSx';
|
|
31
|
+
// TODO: Remove this function in v6
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
33
|
+
export function experimental_sx() {
|
|
34
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.For more details, see https://github.com/mui/material-ui/pull/35150." : _formatMuiErrorMessage(20));
|
|
35
|
+
}
|
|
30
36
|
export { default as unstable_getThemeValue } from './getThemeValue';
|
|
31
37
|
export { default as Box } from './Box';
|
|
32
38
|
export { default as createBox } from './createBox';
|
package/modern/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/** @license MUI v5.11.
|
|
1
|
+
/** @license MUI v5.11.2
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
5
5
|
*/
|
|
6
|
+
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
6
7
|
export { css, keyframes, GlobalStyles, StyledEngineProvider } from '@mui/styled-engine';
|
|
7
8
|
export { default as borders } from './borders';
|
|
8
9
|
export * from './borders';
|
|
@@ -27,6 +28,11 @@ export { default as style, getPath, getStyleValue } from './style';
|
|
|
27
28
|
export { default as typography } from './typography';
|
|
28
29
|
export * from './typography';
|
|
29
30
|
export { default as unstable_styleFunctionSx, unstable_createStyleFunctionSx, extendSxProp as unstable_extendSxProp, unstable_defaultSxConfig } from './styleFunctionSx';
|
|
31
|
+
// TODO: Remove this function in v6
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
33
|
+
export function experimental_sx() {
|
|
34
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`experimental_sx\` has been moved to \`theme.unstable_sx\`.For more details, see https://github.com/mui/material-ui/pull/35150.` : _formatMuiErrorMessage(20));
|
|
35
|
+
}
|
|
30
36
|
export { default as unstable_getThemeValue } from './getThemeValue';
|
|
31
37
|
export { default as Box } from './Box';
|
|
32
38
|
export { default as createBox } from './createBox';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "CSS utilities for rapidly laying out custom designs.",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@babel/runtime": "^7.20.
|
|
47
|
-
"@mui/private-theming": "^5.11.
|
|
46
|
+
"@babel/runtime": "^7.20.7",
|
|
47
|
+
"@mui/private-theming": "^5.11.2",
|
|
48
48
|
"@mui/styled-engine": "^5.11.0",
|
|
49
49
|
"@mui/types": "^7.2.3",
|
|
50
|
-
"@mui/utils": "^5.11.
|
|
50
|
+
"@mui/utils": "^5.11.2",
|
|
51
51
|
"clsx": "^1.2.1",
|
|
52
52
|
"csstype": "^3.1.1",
|
|
53
53
|
"prop-types": "^15.8.1"
|
package/spacing.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SimpleStyleFunction, spacing, PropsFor } from './Box';
|
|
2
2
|
|
|
3
|
+
export type SpacingValueType = string | number | null | undefined;
|
|
3
4
|
export type SpacingProps = PropsFor<typeof spacing>;
|
|
4
5
|
export function createUnarySpacing<Spacing>(theme: { spacing: Spacing }): Spacing extends number
|
|
5
6
|
? (abs: number | string) => number | number
|
|
@@ -16,7 +17,7 @@ export function createUnaryUnit<Spacing>(
|
|
|
16
17
|
defaultValue: Spacing,
|
|
17
18
|
propName: string,
|
|
18
19
|
): Spacing extends number
|
|
19
|
-
? (abs:
|
|
20
|
+
? (abs: SpacingValueType) => number | number
|
|
20
21
|
: Spacing extends any[]
|
|
21
22
|
? <Index extends number>(abs: Index | string) => Spacing[Index] | string
|
|
22
23
|
: Spacing extends (...args: unknown[]) => unknown
|
|
@@ -72,7 +73,6 @@ export const padding: SimpleStyleFunction<
|
|
|
72
73
|
| 'paddingBlockEnd'
|
|
73
74
|
>;
|
|
74
75
|
|
|
75
|
-
export type SpacingValueType = string | number | null | undefined;
|
|
76
76
|
export function getValue(
|
|
77
77
|
transformer: (prop: SpacingValueType) => SpacingValueType,
|
|
78
78
|
propValue: SpacingValueType,
|