@mui/material 5.17.1 → 5.18.0
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/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/CHANGELOG.md +26 -0
- package/OutlinedInput/NotchedOutline.js +2 -0
- package/Radio/RadioButtonIcon.js +7 -2
- package/SwipeableDrawer/SwipeArea.js +1 -0
- package/index.js +1 -1
- package/internal/SwitchBase.js +4 -1
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/legacy/OutlinedInput/NotchedOutline.js +2 -0
- package/legacy/Radio/RadioButtonIcon.js +7 -2
- package/legacy/SwipeableDrawer/SwipeArea.js +1 -0
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +4 -1
- package/legacy/styles/shouldSkipGeneratingVar.js +1 -1
- package/legacy/version/index.js +3 -3
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/modern/OutlinedInput/NotchedOutline.js +2 -0
- package/modern/Radio/RadioButtonIcon.js +7 -2
- package/modern/SwipeableDrawer/SwipeArea.js +1 -0
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +4 -1
- package/modern/styles/shouldSkipGeneratingVar.js +1 -1
- package/modern/version/index.js +3 -3
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/node/OutlinedInput/NotchedOutline.js +2 -0
- package/node/Radio/RadioButtonIcon.js +7 -2
- package/node/SwipeableDrawer/SwipeArea.js +1 -0
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +4 -1
- package/node/styles/shouldSkipGeneratingVar.js +1 -1
- package/node/version/index.js +3 -3
- package/package.json +4 -4
- package/styles/createTheme.d.ts +1 -0
- package/styles/experimental_extendTheme.d.ts +5 -0
- package/styles/shouldSkipGeneratingVar.js +1 -1
- package/umd/material-ui.development.js +172 -33
- package/umd/material-ui.production.min.js +2 -2
- package/version/index.js +3 -3
|
@@ -10,7 +10,9 @@ import styled from '../styles/styled';
|
|
|
10
10
|
import MoreHorizIcon from '../internal/svg-icons/MoreHoriz';
|
|
11
11
|
import ButtonBase from '../ButtonBase';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const BreadcrumbCollapsedButton = styled(ButtonBase
|
|
13
|
+
const BreadcrumbCollapsedButton = styled(ButtonBase, {
|
|
14
|
+
name: 'MuiBreadcrumbCollapsed'
|
|
15
|
+
})(({
|
|
14
16
|
theme
|
|
15
17
|
}) => _extends({
|
|
16
18
|
display: 'flex',
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.18.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.17.1..v5.x -->
|
|
6
|
+
|
|
7
|
+
_Jun 26, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 2 contributors who made this release possible.
|
|
10
|
+
|
|
11
|
+
CSS layers make it easier to override styles by splitting a single style sheet into multiple layers.
|
|
12
|
+
To learn more, check out the [CSS layers documentation](https://v5.mui.com/material-ui/customization/css-layers/).
|
|
13
|
+
|
|
14
|
+
### `@mui/system@5.18.0`
|
|
15
|
+
|
|
16
|
+
- Backport CSS layers from v7 (#46320) @siriwatknp
|
|
17
|
+
|
|
18
|
+
### `@mui/material-nextjs@5.18.0`
|
|
19
|
+
|
|
20
|
+
- Backport CSS layers from v7 (#46320) @siriwatknp
|
|
21
|
+
|
|
22
|
+
### Docs
|
|
23
|
+
|
|
24
|
+
- Ease migration to v5 (#45991) @oliviertassinari
|
|
25
|
+
- Add AccordionSummary to the breaking change migration (@siriwatknp) (#45972) @siriwatknp
|
|
26
|
+
|
|
27
|
+
All contributors of this release in alphabetical order: @oliviertassinari, @siriwatknp
|
|
28
|
+
|
|
3
29
|
## v5.17.1
|
|
4
30
|
|
|
5
31
|
<!-- generated comparing v5.17.0..v5.x -->
|
|
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const NotchedOutlineRoot = styled('fieldset', {
|
|
12
|
+
name: 'MuiNotchedOutlined',
|
|
12
13
|
shouldForwardProp: rootShouldForwardProp
|
|
13
14
|
})({
|
|
14
15
|
textAlign: 'left',
|
|
@@ -27,6 +28,7 @@ const NotchedOutlineRoot = styled('fieldset', {
|
|
|
27
28
|
minWidth: '0%'
|
|
28
29
|
});
|
|
29
30
|
const NotchedOutlineLegend = styled('legend', {
|
|
31
|
+
name: 'MuiNotchedOutlined',
|
|
30
32
|
shouldForwardProp: rootShouldForwardProp
|
|
31
33
|
})(({
|
|
32
34
|
ownerState,
|
package/Radio/RadioButtonIcon.js
CHANGED
|
@@ -9,16 +9,21 @@ import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const RadioButtonIconRoot = styled('span', {
|
|
12
|
+
name: 'MuiRadioButtonIcon',
|
|
12
13
|
shouldForwardProp: rootShouldForwardProp
|
|
13
14
|
})({
|
|
14
15
|
position: 'relative',
|
|
15
16
|
display: 'flex'
|
|
16
17
|
});
|
|
17
|
-
const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon
|
|
18
|
+
const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {
|
|
19
|
+
name: 'MuiRadioButtonIcon'
|
|
20
|
+
})({
|
|
18
21
|
// Scale applied to prevent dot misalignment in Safari
|
|
19
22
|
transform: 'scale(1)'
|
|
20
23
|
});
|
|
21
|
-
const RadioButtonIconDot = styled(RadioButtonCheckedIcon
|
|
24
|
+
const RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
|
|
25
|
+
name: 'MuiRadioButtonIcon'
|
|
26
|
+
})(({
|
|
22
27
|
theme,
|
|
23
28
|
ownerState
|
|
24
29
|
}) => _extends({
|
|
@@ -11,6 +11,7 @@ import capitalize from '../utils/capitalize';
|
|
|
11
11
|
import { isHorizontal } from '../Drawer/Drawer';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const SwipeAreaRoot = styled('div', {
|
|
14
|
+
name: 'MuiSwipeArea',
|
|
14
15
|
shouldForwardProp: rootShouldForwardProp
|
|
15
16
|
})(({
|
|
16
17
|
theme,
|
package/index.js
CHANGED
package/internal/SwitchBase.js
CHANGED
|
@@ -29,7 +29,9 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
return composeClasses(slots, getSwitchBaseUtilityClass, classes);
|
|
31
31
|
};
|
|
32
|
-
const SwitchBaseRoot = styled(ButtonBase
|
|
32
|
+
const SwitchBaseRoot = styled(ButtonBase, {
|
|
33
|
+
name: 'MuiSwitchBase'
|
|
34
|
+
})(({
|
|
33
35
|
ownerState
|
|
34
36
|
}) => _extends({
|
|
35
37
|
padding: 9,
|
|
@@ -40,6 +42,7 @@ const SwitchBaseRoot = styled(ButtonBase)(({
|
|
|
40
42
|
marginRight: ownerState.size === 'small' ? -3 : -12
|
|
41
43
|
}));
|
|
42
44
|
const SwitchBaseInput = styled('input', {
|
|
45
|
+
name: 'MuiSwitchBase',
|
|
43
46
|
shouldForwardProp: rootShouldForwardProp
|
|
44
47
|
})({
|
|
45
48
|
cursor: 'inherit',
|
|
@@ -9,7 +9,9 @@ import styled from '../styles/styled';
|
|
|
9
9
|
import MoreHorizIcon from '../internal/svg-icons/MoreHoriz';
|
|
10
10
|
import ButtonBase from '../ButtonBase';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
var BreadcrumbCollapsedButton = styled(ButtonBase
|
|
12
|
+
var BreadcrumbCollapsedButton = styled(ButtonBase, {
|
|
13
|
+
name: 'MuiBreadcrumbCollapsed'
|
|
14
|
+
})(function (_ref) {
|
|
13
15
|
var theme = _ref.theme;
|
|
14
16
|
return _extends({
|
|
15
17
|
display: 'flex',
|
|
@@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
var NotchedOutlineRoot = styled('fieldset', {
|
|
11
|
+
name: 'MuiNotchedOutlined',
|
|
11
12
|
shouldForwardProp: rootShouldForwardProp
|
|
12
13
|
})({
|
|
13
14
|
textAlign: 'left',
|
|
@@ -26,6 +27,7 @@ var NotchedOutlineRoot = styled('fieldset', {
|
|
|
26
27
|
minWidth: '0%'
|
|
27
28
|
});
|
|
28
29
|
var NotchedOutlineLegend = styled('legend', {
|
|
30
|
+
name: 'MuiNotchedOutlined',
|
|
29
31
|
shouldForwardProp: rootShouldForwardProp
|
|
30
32
|
})(function (_ref) {
|
|
31
33
|
var ownerState = _ref.ownerState,
|
|
@@ -9,16 +9,21 @@ import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
var RadioButtonIconRoot = styled('span', {
|
|
12
|
+
name: 'MuiRadioButtonIcon',
|
|
12
13
|
shouldForwardProp: rootShouldForwardProp
|
|
13
14
|
})({
|
|
14
15
|
position: 'relative',
|
|
15
16
|
display: 'flex'
|
|
16
17
|
});
|
|
17
|
-
var RadioButtonIconBackground = styled(RadioButtonUncheckedIcon
|
|
18
|
+
var RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {
|
|
19
|
+
name: 'MuiRadioButtonIcon'
|
|
20
|
+
})({
|
|
18
21
|
// Scale applied to prevent dot misalignment in Safari
|
|
19
22
|
transform: 'scale(1)'
|
|
20
23
|
});
|
|
21
|
-
var RadioButtonIconDot = styled(RadioButtonCheckedIcon
|
|
24
|
+
var RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
|
|
25
|
+
name: 'MuiRadioButtonIcon'
|
|
26
|
+
})(function (_ref) {
|
|
22
27
|
var theme = _ref.theme,
|
|
23
28
|
ownerState = _ref.ownerState;
|
|
24
29
|
return _extends({
|
|
@@ -11,6 +11,7 @@ import capitalize from '../utils/capitalize';
|
|
|
11
11
|
import { isHorizontal } from '../Drawer/Drawer';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
var SwipeAreaRoot = styled('div', {
|
|
14
|
+
name: 'MuiSwipeArea',
|
|
14
15
|
shouldForwardProp: rootShouldForwardProp
|
|
15
16
|
})(function (_ref) {
|
|
16
17
|
var theme = _ref.theme,
|
package/legacy/index.js
CHANGED
|
@@ -27,7 +27,9 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
27
27
|
};
|
|
28
28
|
return composeClasses(slots, getSwitchBaseUtilityClass, classes);
|
|
29
29
|
};
|
|
30
|
-
var SwitchBaseRoot = styled(ButtonBase
|
|
30
|
+
var SwitchBaseRoot = styled(ButtonBase, {
|
|
31
|
+
name: 'MuiSwitchBase'
|
|
32
|
+
})(function (_ref) {
|
|
31
33
|
var ownerState = _ref.ownerState;
|
|
32
34
|
return _extends({
|
|
33
35
|
padding: 9,
|
|
@@ -39,6 +41,7 @@ var SwitchBaseRoot = styled(ButtonBase)(function (_ref) {
|
|
|
39
41
|
});
|
|
40
42
|
});
|
|
41
43
|
var SwitchBaseInput = styled('input', {
|
|
44
|
+
name: 'MuiSwitchBase',
|
|
42
45
|
shouldForwardProp: rootShouldForwardProp
|
|
43
46
|
})({
|
|
44
47
|
cursor: 'inherit',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default function shouldSkipGeneratingVar(keys) {
|
|
2
2
|
var _keys$;
|
|
3
|
-
return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
3
|
+
return !!keys[0].match(/(cssVarPrefix|modularCssLayers|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
4
4
|
// ends with sxConfig
|
|
5
5
|
keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
6
6
|
}
|
package/legacy/version/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export var version = "5.
|
|
1
|
+
export var version = "5.18.0";
|
|
2
2
|
export var major = Number("5");
|
|
3
|
-
export var minor = Number("
|
|
4
|
-
export var patch = Number("
|
|
3
|
+
export var minor = Number("18");
|
|
4
|
+
export var patch = Number("0");
|
|
5
5
|
export var preReleaseLabel = undefined || null;
|
|
6
6
|
export var preReleaseNumber = Number(undefined) || null;
|
|
7
7
|
export default version;
|
|
@@ -10,7 +10,9 @@ import styled from '../styles/styled';
|
|
|
10
10
|
import MoreHorizIcon from '../internal/svg-icons/MoreHoriz';
|
|
11
11
|
import ButtonBase from '../ButtonBase';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
const BreadcrumbCollapsedButton = styled(ButtonBase
|
|
13
|
+
const BreadcrumbCollapsedButton = styled(ButtonBase, {
|
|
14
|
+
name: 'MuiBreadcrumbCollapsed'
|
|
15
|
+
})(({
|
|
14
16
|
theme
|
|
15
17
|
}) => _extends({
|
|
16
18
|
display: 'flex',
|
|
@@ -9,6 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
const NotchedOutlineRoot = styled('fieldset', {
|
|
12
|
+
name: 'MuiNotchedOutlined',
|
|
12
13
|
shouldForwardProp: rootShouldForwardProp
|
|
13
14
|
})({
|
|
14
15
|
textAlign: 'left',
|
|
@@ -27,6 +28,7 @@ const NotchedOutlineRoot = styled('fieldset', {
|
|
|
27
28
|
minWidth: '0%'
|
|
28
29
|
});
|
|
29
30
|
const NotchedOutlineLegend = styled('legend', {
|
|
31
|
+
name: 'MuiNotchedOutlined',
|
|
30
32
|
shouldForwardProp: rootShouldForwardProp
|
|
31
33
|
})(({
|
|
32
34
|
ownerState,
|
|
@@ -9,16 +9,21 @@ import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const RadioButtonIconRoot = styled('span', {
|
|
12
|
+
name: 'MuiRadioButtonIcon',
|
|
12
13
|
shouldForwardProp: rootShouldForwardProp
|
|
13
14
|
})({
|
|
14
15
|
position: 'relative',
|
|
15
16
|
display: 'flex'
|
|
16
17
|
});
|
|
17
|
-
const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon
|
|
18
|
+
const RadioButtonIconBackground = styled(RadioButtonUncheckedIcon, {
|
|
19
|
+
name: 'MuiRadioButtonIcon'
|
|
20
|
+
})({
|
|
18
21
|
// Scale applied to prevent dot misalignment in Safari
|
|
19
22
|
transform: 'scale(1)'
|
|
20
23
|
});
|
|
21
|
-
const RadioButtonIconDot = styled(RadioButtonCheckedIcon
|
|
24
|
+
const RadioButtonIconDot = styled(RadioButtonCheckedIcon, {
|
|
25
|
+
name: 'MuiRadioButtonIcon'
|
|
26
|
+
})(({
|
|
22
27
|
theme,
|
|
23
28
|
ownerState
|
|
24
29
|
}) => _extends({
|
|
@@ -11,6 +11,7 @@ import capitalize from '../utils/capitalize';
|
|
|
11
11
|
import { isHorizontal } from '../Drawer/Drawer';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const SwipeAreaRoot = styled('div', {
|
|
14
|
+
name: 'MuiSwipeArea',
|
|
14
15
|
shouldForwardProp: rootShouldForwardProp
|
|
15
16
|
})(({
|
|
16
17
|
theme,
|
package/modern/index.js
CHANGED
|
@@ -29,7 +29,9 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
return composeClasses(slots, getSwitchBaseUtilityClass, classes);
|
|
31
31
|
};
|
|
32
|
-
const SwitchBaseRoot = styled(ButtonBase
|
|
32
|
+
const SwitchBaseRoot = styled(ButtonBase, {
|
|
33
|
+
name: 'MuiSwitchBase'
|
|
34
|
+
})(({
|
|
33
35
|
ownerState
|
|
34
36
|
}) => _extends({
|
|
35
37
|
padding: 9,
|
|
@@ -40,6 +42,7 @@ const SwitchBaseRoot = styled(ButtonBase)(({
|
|
|
40
42
|
marginRight: ownerState.size === 'small' ? -3 : -12
|
|
41
43
|
}));
|
|
42
44
|
const SwitchBaseInput = styled('input', {
|
|
45
|
+
name: 'MuiSwitchBase',
|
|
43
46
|
shouldForwardProp: rootShouldForwardProp
|
|
44
47
|
})({
|
|
45
48
|
cursor: 'inherit',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default function shouldSkipGeneratingVar(keys) {
|
|
2
|
-
return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
2
|
+
return !!keys[0].match(/(cssVarPrefix|modularCssLayers|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
3
3
|
// ends with sxConfig
|
|
4
4
|
keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
5
5
|
}
|
package/modern/version/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const version = "5.
|
|
1
|
+
export const version = "5.18.0";
|
|
2
2
|
export const major = Number("5");
|
|
3
|
-
export const minor = Number("
|
|
4
|
-
export const patch = Number("
|
|
3
|
+
export const minor = Number("18");
|
|
4
|
+
export const patch = Number("0");
|
|
5
5
|
export const preReleaseLabel = undefined || null;
|
|
6
6
|
export const preReleaseNumber = Number(undefined) || null;
|
|
7
7
|
export default version;
|
|
@@ -18,7 +18,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
18
|
const _excluded = ["slots", "slotProps"];
|
|
19
19
|
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); }
|
|
20
20
|
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; }
|
|
21
|
-
const BreadcrumbCollapsedButton = (0, _styled.default)(_ButtonBase.default
|
|
21
|
+
const BreadcrumbCollapsedButton = (0, _styled.default)(_ButtonBase.default, {
|
|
22
|
+
name: 'MuiBreadcrumbCollapsed'
|
|
23
|
+
})(({
|
|
22
24
|
theme
|
|
23
25
|
}) => (0, _extends2.default)({
|
|
24
26
|
display: 'flex',
|
|
@@ -17,6 +17,7 @@ const _excluded = ["children", "classes", "className", "label", "notched"];
|
|
|
17
17
|
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); }
|
|
18
18
|
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; }
|
|
19
19
|
const NotchedOutlineRoot = (0, _styled.default)('fieldset', {
|
|
20
|
+
name: 'MuiNotchedOutlined',
|
|
20
21
|
shouldForwardProp: _styled.rootShouldForwardProp
|
|
21
22
|
})({
|
|
22
23
|
textAlign: 'left',
|
|
@@ -35,6 +36,7 @@ const NotchedOutlineRoot = (0, _styled.default)('fieldset', {
|
|
|
35
36
|
minWidth: '0%'
|
|
36
37
|
});
|
|
37
38
|
const NotchedOutlineLegend = (0, _styled.default)('legend', {
|
|
39
|
+
name: 'MuiNotchedOutlined',
|
|
38
40
|
shouldForwardProp: _styled.rootShouldForwardProp
|
|
39
41
|
})(({
|
|
40
42
|
ownerState,
|
|
@@ -16,16 +16,21 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
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); }
|
|
17
17
|
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; }
|
|
18
18
|
const RadioButtonIconRoot = (0, _styled.default)('span', {
|
|
19
|
+
name: 'MuiRadioButtonIcon',
|
|
19
20
|
shouldForwardProp: _styled.rootShouldForwardProp
|
|
20
21
|
})({
|
|
21
22
|
position: 'relative',
|
|
22
23
|
display: 'flex'
|
|
23
24
|
});
|
|
24
|
-
const RadioButtonIconBackground = (0, _styled.default)(_RadioButtonUnchecked.default
|
|
25
|
+
const RadioButtonIconBackground = (0, _styled.default)(_RadioButtonUnchecked.default, {
|
|
26
|
+
name: 'MuiRadioButtonIcon'
|
|
27
|
+
})({
|
|
25
28
|
// Scale applied to prevent dot misalignment in Safari
|
|
26
29
|
transform: 'scale(1)'
|
|
27
30
|
});
|
|
28
|
-
const RadioButtonIconDot = (0, _styled.default)(_RadioButtonChecked.default
|
|
31
|
+
const RadioButtonIconDot = (0, _styled.default)(_RadioButtonChecked.default, {
|
|
32
|
+
name: 'MuiRadioButtonIcon'
|
|
33
|
+
})(({
|
|
29
34
|
theme,
|
|
30
35
|
ownerState
|
|
31
36
|
}) => (0, _extends2.default)({
|
|
@@ -19,6 +19,7 @@ const _excluded = ["anchor", "classes", "className", "width", "style"];
|
|
|
19
19
|
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); }
|
|
20
20
|
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; }
|
|
21
21
|
const SwipeAreaRoot = (0, _styled.default)('div', {
|
|
22
|
+
name: 'MuiSwipeArea',
|
|
22
23
|
shouldForwardProp: _styled.rootShouldForwardProp
|
|
23
24
|
})(({
|
|
24
25
|
theme,
|
package/node/index.js
CHANGED
|
@@ -36,7 +36,9 @@ const useUtilityClasses = ownerState => {
|
|
|
36
36
|
};
|
|
37
37
|
return (0, _composeClasses.default)(slots, _switchBaseClasses.getSwitchBaseUtilityClass, classes);
|
|
38
38
|
};
|
|
39
|
-
const SwitchBaseRoot = (0, _styled.default)(_ButtonBase.default
|
|
39
|
+
const SwitchBaseRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
40
|
+
name: 'MuiSwitchBase'
|
|
41
|
+
})(({
|
|
40
42
|
ownerState
|
|
41
43
|
}) => (0, _extends2.default)({
|
|
42
44
|
padding: 9,
|
|
@@ -47,6 +49,7 @@ const SwitchBaseRoot = (0, _styled.default)(_ButtonBase.default)(({
|
|
|
47
49
|
marginRight: ownerState.size === 'small' ? -3 : -12
|
|
48
50
|
}));
|
|
49
51
|
const SwitchBaseInput = (0, _styled.default)('input', {
|
|
52
|
+
name: 'MuiSwitchBase',
|
|
50
53
|
shouldForwardProp: _styled.rootShouldForwardProp
|
|
51
54
|
})({
|
|
52
55
|
cursor: 'inherit',
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = shouldSkipGeneratingVar;
|
|
7
7
|
function shouldSkipGeneratingVar(keys) {
|
|
8
8
|
var _keys$;
|
|
9
|
-
return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
9
|
+
return !!keys[0].match(/(cssVarPrefix|modularCssLayers|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
10
10
|
// ends with sxConfig
|
|
11
11
|
keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
12
12
|
}
|
package/node/version/index.js
CHANGED
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.preReleaseNumber = exports.preReleaseLabel = exports.patch = exports.minor = exports.major = exports.default = void 0;
|
|
7
|
-
const version = exports.version = "5.
|
|
7
|
+
const version = exports.version = "5.18.0";
|
|
8
8
|
const major = exports.major = Number("5");
|
|
9
|
-
const minor = exports.minor = Number("
|
|
10
|
-
const patch = exports.patch = Number("
|
|
9
|
+
const minor = exports.minor = Number("18");
|
|
10
|
+
const patch = exports.patch = Number("0");
|
|
11
11
|
const preReleaseLabel = exports.preReleaseLabel = undefined || null;
|
|
12
12
|
const preReleaseNumber = exports.preReleaseNumber = Number(undefined) || null;
|
|
13
13
|
var _default = exports.default = version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.0",
|
|
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.",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"prop-types": "^15.8.1",
|
|
36
36
|
"react-is": "^19.0.0",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/
|
|
39
|
-
"@mui/system": "^5.17.1",
|
|
38
|
+
"@mui/system": "^5.18.0",
|
|
40
39
|
"@mui/types": "~7.2.15",
|
|
41
|
-
"@mui/utils": "^5.17.1"
|
|
40
|
+
"@mui/utils": "^5.17.1",
|
|
41
|
+
"@mui/core-downloads-tracker": "^5.18.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.5.0",
|
package/styles/createTheme.d.ts
CHANGED
|
@@ -297,6 +297,11 @@ export interface CssVarsThemeOptions extends Omit<ThemeOptions, 'palette' | 'com
|
|
|
297
297
|
* value = 'var(--test)'
|
|
298
298
|
*/
|
|
299
299
|
shouldSkipGeneratingVar?: (keys: string[], value: string | number) => boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Whether to use modular CSS layers.
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
modularCssLayers?: boolean | string;
|
|
300
305
|
}
|
|
301
306
|
|
|
302
307
|
// should not include keys defined in `shouldSkipGeneratingVar` and have value typeof function
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default function shouldSkipGeneratingVar(keys) {
|
|
2
2
|
var _keys$;
|
|
3
|
-
return !!keys[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
3
|
+
return !!keys[0].match(/(cssVarPrefix|modularCssLayers|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
|
|
4
4
|
// ends with sxConfig
|
|
5
5
|
keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
6
6
|
}
|