@mui/system 5.11.13 → 5.11.14
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 +71 -3
- package/esm/styleFunctionSx/defaultSxConfig.js +13 -5
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styleFunctionSx/defaultSxConfig.js +14 -5
- package/modern/index.js +1 -1
- package/modern/styleFunctionSx/defaultSxConfig.js +10 -3
- package/package.json +1 -1
- package/styleFunctionSx/defaultSxConfig.js +13 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.14
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.13..master -->
|
|
6
|
+
|
|
7
|
+
_Mar 21, 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.11.14`
|
|
13
|
+
|
|
14
|
+
- [Breadcrumbs] Add ability to change icon used in `BreadcrumbCollapsed` through slots (#33812) @pratikkarad
|
|
15
|
+
- [Stepper] Add aria-current to active StepButton (#36526) @michalak111
|
|
16
|
+
- [TabScrollButton] Add ability to change left and right icons (#33863) @pratikkarad
|
|
17
|
+
- [ListItemButton] Respect LinkComponent (#34159) @zaverden
|
|
18
|
+
- [l10n] Add Central Kurdish (ku-CKB) locale (#36592) @HediMuhamad
|
|
19
|
+
|
|
20
|
+
### `@mui/system@5.11.14`
|
|
21
|
+
|
|
22
|
+
- [system] Fix sx prop regression for fontWeight values (#36543) @mnajdova
|
|
23
|
+
|
|
24
|
+
### `@mui/base@5.0.0-alpha.121`
|
|
25
|
+
|
|
26
|
+
- [docs][base] Improve the Slots Table in API docs (#36330) @hbjORbj
|
|
27
|
+
|
|
28
|
+
### `@mui/joy@5.0.0-alpha.72`
|
|
29
|
+
|
|
30
|
+
- [Joy] Ensure new CSS variable naming is everywhere (#36460) @hbjORbj
|
|
31
|
+
- [Menu][joy] Classname listbox is missing (#36520) @hbjORbj
|
|
32
|
+
- [Joy] Fix `--List-decorator*` vars (#36595) @siriwatknp
|
|
33
|
+
|
|
34
|
+
### `@mui/lab@5.0.0-alpha.124`
|
|
35
|
+
|
|
36
|
+
- [Masonry] Include Masonry in theme augmentation interface (#36533) @hbjORbj
|
|
37
|
+
|
|
38
|
+
### Docs
|
|
39
|
+
|
|
40
|
+
- [blog] Post blog about Chamonix retreat to the website (#36517) @mikailaread
|
|
41
|
+
- [blog] Fix image layout shift (#36522) @oliviertassinari
|
|
42
|
+
- [docs] Use `theme.applyDarkStyles` for the rest of the docs (#36161) @siriwatknp
|
|
43
|
+
- [docs] Fix 301 and 404 links (#36555) @oliviertassinari
|
|
44
|
+
- [docs] Keep slot code order in API docs (#36499) @oliviertassinari
|
|
45
|
+
- [docs] Missing className on Migrating from JSS example (#36536) @gabrielnafuzi
|
|
46
|
+
- [docs] Fix function name for Joy templates (#36512) @hbjORbj
|
|
47
|
+
- [docs] Add multiline Chip example (#36437) @dav1app
|
|
48
|
+
- [docs] Add a new gold sponsor (#36518) @hbjORbj
|
|
49
|
+
- [docs][joy] Improve the Slots Table in API docs (#36328) @hbjORbj
|
|
50
|
+
- [docs] Fix virtualElement demo for Popper (#36320) @sai6855
|
|
51
|
+
- [docs] Fix typo in API docs (#36388) @RomanHotsiy
|
|
52
|
+
- [docs] Ensure classname displayed under Slots section in API docs exists (#36539) @hbjORbj
|
|
53
|
+
- [docs][joy] Build TS versions for Modal component demos (#36385) @varunmulay22
|
|
54
|
+
- [docs][joy] Build TS versions for Menu component demos (#36383) @varunmulay22
|
|
55
|
+
- [docs][joy] Build TS versions for Switch component demos (#36379) @varunmulay22
|
|
56
|
+
- [docs] Remove `shouldSkipGeneratingVar` usage (#36581) @siriwatknp
|
|
57
|
+
- [docs][material] Update Table's demo to show pointer cursor on clickable rows (#36546) @varunmulay22
|
|
58
|
+
- [website] Designer role changes (#36528) @danilo-leal
|
|
59
|
+
- [website] No association between showcase and MUI @oliviertassinari
|
|
60
|
+
- [website] Open Head of Operations role (#36501) @oliviertassinari
|
|
61
|
+
- [website] Limit sponsors description to two rows @oliviertassinari
|
|
62
|
+
|
|
63
|
+
### Core
|
|
64
|
+
|
|
65
|
+
- [core] Fix CI @oliviertassinari
|
|
66
|
+
- [core] Fix blank line @oliviertassinari
|
|
67
|
+
- [website] Simplify internal ops @oliviertassinari
|
|
68
|
+
|
|
69
|
+
All contributors of this release in alphabetical order: @danilo-leal, @dav1app, @gabrielnafuzi, @hbjORbj, @HediMuhamad, @michalak111, @mikailaread, @mnajdova, @oliviertassinari, @pratikkarad, @RomanHotsiy, @sai6855, @siriwatknp, @varunmulay22, @zaverden
|
|
70
|
+
|
|
3
71
|
## 5.11.13
|
|
4
72
|
|
|
5
73
|
<!-- generated comparing v5.11.12..master -->
|
|
@@ -9076,7 +9144,7 @@ _Nov 4, 2020_
|
|
|
9076
9144
|
A big thanks to the 20 contributors who made this release possible. Here are some highlights ✨:
|
|
9077
9145
|
|
|
9078
9146
|
- ⚛️ Add support for React 17 (#23311) @eps1lon.
|
|
9079
|
-
React 17 release is unusual because it doesn't add any new developer-facing features. It was released a couple of days ago. You can learn more about it in the [introduction post](https://reactjs.org/blog/2020/10/20/react-v17.html). Material UI now supports `^16.8.0 || ^17.0.0`.
|
|
9147
|
+
React 17 release is unusual because it doesn't add any new developer-facing features. It was released a couple of days ago. You can learn more about it in the [introduction post](https://legacy.reactjs.org/blog/2020/10/20/react-v17.html). Material UI now supports `^16.8.0 || ^17.0.0`.
|
|
9080
9148
|
- 🛠 Introduce a new `@material-ui/unstyled` package (#23270) @mnajdova.
|
|
9081
9149
|
This package will host the unstyled version of the components. In this first iteration, only the Slider is available. You can find it documented under the [same page](https://mui.com/components/slider-styled/#unstyled-slider) as the styled version.
|
|
9082
9150
|
|
|
@@ -10085,7 +10153,7 @@ Here are some highlights ✨:
|
|
|
10085
10153
|
#### Breaking changes
|
|
10086
10154
|
|
|
10087
10155
|
- [Modal] Remove `onRendered` prop from Modal and Portal (#22464) @eps1lon
|
|
10088
|
-
Depending on your use case either use a [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) on the child element or an effect hook in the child component.
|
|
10156
|
+
Depending on your use case either use a [callback ref](https://legacy.reactjs.org/docs/refs-and-the-dom.html#callback-refs) on the child element or an effect hook in the child component.
|
|
10089
10157
|
|
|
10090
10158
|
#### Changes
|
|
10091
10159
|
|
|
@@ -10548,7 +10616,7 @@ Here are some highlights ✨:
|
|
|
10548
10616
|
|
|
10549
10617
|
- [RootRef] Remove component (#21974) @eps1lon
|
|
10550
10618
|
This component was removed. You can get a reference to the underlying DOM node of our components via `ref` prop.
|
|
10551
|
-
The component relied on [`ReactDOM.findDOMNode`](https://reactjs.org/docs/react-dom.html#finddomnode) which is [deprecated in `React.StrictMode`](https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage).
|
|
10619
|
+
The component relied on [`ReactDOM.findDOMNode`](https://legacy.reactjs.org/docs/react-dom.html#finddomnode) which is [deprecated in `React.StrictMode`](https://legacy.reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage).
|
|
10552
10620
|
|
|
10553
10621
|
```diff
|
|
10554
10622
|
-<RootRef rootRef={ref}>
|
|
@@ -9,14 +9,22 @@ const createFontStyleFunction = prop => {
|
|
|
9
9
|
return props => {
|
|
10
10
|
if (props[prop] !== undefined && props[prop] !== null) {
|
|
11
11
|
const styleFromPropValue = propValue => {
|
|
12
|
-
var _props$theme$typograp
|
|
13
|
-
|
|
12
|
+
var _props$theme$typograp;
|
|
13
|
+
// fetch the value directly defined in the theme, like fontWeightLight
|
|
14
|
+
let value = (_props$theme$typograp = props.theme.typography) == null ? void 0 : _props$theme$typograp[propValue];
|
|
15
|
+
if (typeof value === 'object') {
|
|
16
|
+
// typography variant was pulled, but these props can't be an object
|
|
17
|
+
value = null;
|
|
18
|
+
}
|
|
14
19
|
if (!value) {
|
|
15
|
-
var _props$theme$typograp2, _props$
|
|
16
|
-
|
|
20
|
+
var _props$theme$typograp2, _props$prop;
|
|
21
|
+
// fetch fontWeightLight when the value is 'light'
|
|
22
|
+
value = (_props$theme$typograp2 = props.theme.typography) == null ? void 0 : _props$theme$typograp2[`${prop}${props[prop] === 'default' || props[prop] === prop ? '' : capitalize((_props$prop = props[prop]) == null ? void 0 : _props$prop.toString())}`];
|
|
17
23
|
}
|
|
18
24
|
if (!value) {
|
|
19
|
-
|
|
25
|
+
var _props$theme$typograp3, _props$theme$typograp4, _props$theme$typograp5;
|
|
26
|
+
// fetch the value from the typography variant or default to the propValue
|
|
27
|
+
value = (_props$theme$typograp3 = (_props$theme$typograp4 = props.theme.typography) == null ? void 0 : (_props$theme$typograp5 = _props$theme$typograp4[propValue]) == null ? void 0 : _props$theme$typograp5[prop]) != null ? _props$theme$typograp3 : propValue;
|
|
20
28
|
}
|
|
21
29
|
return {
|
|
22
30
|
[prop]: value
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
3
|
import { unstable_capitalize as capitalize } from '@mui/utils';
|
|
3
4
|
import { padding, margin } from '../spacing';
|
|
4
5
|
import { handleBreakpoints } from '../breakpoints';
|
|
@@ -10,14 +11,22 @@ var createFontStyleFunction = function createFontStyleFunction(prop) {
|
|
|
10
11
|
return function (props) {
|
|
11
12
|
if (props[prop] !== undefined && props[prop] !== null) {
|
|
12
13
|
var styleFromPropValue = function styleFromPropValue(propValue) {
|
|
13
|
-
var _props$theme$typograp
|
|
14
|
-
|
|
14
|
+
var _props$theme$typograp;
|
|
15
|
+
// fetch the value directly defined in the theme, like fontWeightLight
|
|
16
|
+
var value = (_props$theme$typograp = props.theme.typography) == null ? void 0 : _props$theme$typograp[propValue];
|
|
17
|
+
if (_typeof(value) === 'object') {
|
|
18
|
+
// typography variant was pulled, but these props can't be an object
|
|
19
|
+
value = null;
|
|
20
|
+
}
|
|
15
21
|
if (!value) {
|
|
16
|
-
var _props$theme$typograp2, _props$
|
|
17
|
-
|
|
22
|
+
var _props$theme$typograp2, _props$prop;
|
|
23
|
+
// fetch fontWeightLight when the value is 'light'
|
|
24
|
+
value = (_props$theme$typograp2 = props.theme.typography) == null ? void 0 : _props$theme$typograp2["".concat(prop).concat(props[prop] === 'default' || props[prop] === prop ? '' : capitalize((_props$prop = props[prop]) == null ? void 0 : _props$prop.toString()))];
|
|
18
25
|
}
|
|
19
26
|
if (!value) {
|
|
20
|
-
|
|
27
|
+
var _props$theme$typograp3, _props$theme$typograp4, _props$theme$typograp5;
|
|
28
|
+
// fetch the value from the typography variant or default to the propValue
|
|
29
|
+
value = (_props$theme$typograp3 = (_props$theme$typograp4 = props.theme.typography) == null ? void 0 : (_props$theme$typograp5 = _props$theme$typograp4[propValue]) == null ? void 0 : _props$theme$typograp5[prop]) != null ? _props$theme$typograp3 : propValue;
|
|
21
30
|
}
|
|
22
31
|
return _defineProperty({}, prop, value);
|
|
23
32
|
};
|
package/modern/index.js
CHANGED
|
@@ -9,12 +9,19 @@ const createFontStyleFunction = prop => {
|
|
|
9
9
|
return props => {
|
|
10
10
|
if (props[prop] !== undefined && props[prop] !== null) {
|
|
11
11
|
const styleFromPropValue = propValue => {
|
|
12
|
-
|
|
12
|
+
// fetch the value directly defined in the theme, like fontWeightLight
|
|
13
|
+
let value = props.theme.typography?.[propValue];
|
|
14
|
+
if (typeof value === 'object') {
|
|
15
|
+
// typography variant was pulled, but these props can't be an object
|
|
16
|
+
value = null;
|
|
17
|
+
}
|
|
13
18
|
if (!value) {
|
|
14
|
-
value
|
|
19
|
+
// fetch fontWeightLight when the value is 'light'
|
|
20
|
+
value = props.theme.typography?.[`${prop}${props[prop] === 'default' || props[prop] === prop ? '' : capitalize(props[prop]?.toString())}`];
|
|
15
21
|
}
|
|
16
22
|
if (!value) {
|
|
17
|
-
value
|
|
23
|
+
// fetch the value from the typography variant or default to the propValue
|
|
24
|
+
value = props.theme.typography?.[propValue]?.[prop] ?? propValue;
|
|
18
25
|
}
|
|
19
26
|
return {
|
|
20
27
|
[prop]: value
|
package/package.json
CHANGED
|
@@ -15,14 +15,22 @@ const createFontStyleFunction = prop => {
|
|
|
15
15
|
return props => {
|
|
16
16
|
if (props[prop] !== undefined && props[prop] !== null) {
|
|
17
17
|
const styleFromPropValue = propValue => {
|
|
18
|
-
var _props$theme$typograp
|
|
19
|
-
|
|
18
|
+
var _props$theme$typograp;
|
|
19
|
+
// fetch the value directly defined in the theme, like fontWeightLight
|
|
20
|
+
let value = (_props$theme$typograp = props.theme.typography) == null ? void 0 : _props$theme$typograp[propValue];
|
|
21
|
+
if (typeof value === 'object') {
|
|
22
|
+
// typography variant was pulled, but these props can't be an object
|
|
23
|
+
value = null;
|
|
24
|
+
}
|
|
20
25
|
if (!value) {
|
|
21
|
-
var _props$theme$typograp2, _props$
|
|
22
|
-
|
|
26
|
+
var _props$theme$typograp2, _props$prop;
|
|
27
|
+
// fetch fontWeightLight when the value is 'light'
|
|
28
|
+
value = (_props$theme$typograp2 = props.theme.typography) == null ? void 0 : _props$theme$typograp2[`${prop}${props[prop] === 'default' || props[prop] === prop ? '' : (0, _utils.unstable_capitalize)((_props$prop = props[prop]) == null ? void 0 : _props$prop.toString())}`];
|
|
23
29
|
}
|
|
24
30
|
if (!value) {
|
|
25
|
-
|
|
31
|
+
var _props$theme$typograp3, _props$theme$typograp4, _props$theme$typograp5;
|
|
32
|
+
// fetch the value from the typography variant or default to the propValue
|
|
33
|
+
value = (_props$theme$typograp3 = (_props$theme$typograp4 = props.theme.typography) == null ? void 0 : (_props$theme$typograp5 = _props$theme$typograp4[propValue]) == null ? void 0 : _props$theme$typograp5[prop]) != null ? _props$theme$typograp3 : propValue;
|
|
26
34
|
}
|
|
27
35
|
return {
|
|
28
36
|
[prop]: value
|