@mui/material 5.14.0 → 5.14.1
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/Button/Button.js +1 -1
- package/CHANGELOG.md +94 -3
- package/Card/Card.d.ts +2 -2
- package/CssBaseline/CssBaseline.js +2 -2
- package/Dialog/Dialog.d.ts +1 -1
- package/Drawer/Drawer.d.ts +1 -1
- package/Fab/Fab.js +1 -1
- package/FormControlLabel/FormControlLabel.js +11 -6
- package/Link/Link.d.ts +9 -7
- package/ListItem/ListItem.js +1 -1
- package/ListItemButton/ListItemButton.js +1 -1
- package/MenuItem/MenuItem.js +1 -1
- package/OverridableComponent.d.ts +7 -0
- package/Paper/Paper.d.ts +32 -30
- package/Paper/index.d.ts +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Slider/SliderValueLabel.d.ts +1 -6
- package/SvgIcon/SvgIcon.js +9 -9
- package/Typography/Typography.d.ts +66 -65
- package/index.js +1 -1
- package/legacy/Button/Button.js +1 -1
- package/legacy/CssBaseline/CssBaseline.js +2 -2
- package/legacy/Fab/Fab.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +11 -6
- package/legacy/ListItem/ListItem.js +1 -1
- package/legacy/ListItemButton/ListItemButton.js +1 -1
- package/legacy/MenuItem/MenuItem.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +9 -9
- package/legacy/index.js +1 -1
- package/legacy/useTouchRipple/useTouchRipple.js +2 -2
- package/modern/Button/Button.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +11 -6
- package/modern/ListItem/ListItem.js +1 -1
- package/modern/ListItemButton/ListItemButton.js +1 -1
- package/modern/MenuItem/MenuItem.js +1 -1
- package/modern/index.js +1 -1
- package/node/Button/Button.js +1 -1
- package/node/CssBaseline/CssBaseline.js +2 -2
- package/node/Fab/Fab.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +11 -6
- package/node/ListItem/ListItem.js +1 -1
- package/node/ListItemButton/ListItemButton.js +1 -1
- package/node/MenuItem/MenuItem.js +1 -1
- package/node/SvgIcon/SvgIcon.js +9 -9
- package/node/index.js +1 -1
- package/node/useTouchRipple/useTouchRipple.js +2 -2
- package/package.json +6 -6
- package/styles/components.d.ts +5 -0
- package/styles/overrides.d.ts +2 -0
- package/styles/props.d.ts +1 -1
- package/umd/material-ui.development.js +98 -93
- package/umd/material-ui.production.min.js +13 -13
- package/useTouchRipple/useTouchRipple.js +2 -2
package/legacy/Fab/Fab.js
CHANGED
|
@@ -186,7 +186,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
|
|
|
186
186
|
* The component used for the root node.
|
|
187
187
|
* Either a string to use a HTML element or a component.
|
|
188
188
|
*/
|
|
189
|
-
component: PropTypes
|
|
189
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
190
190
|
/**
|
|
191
191
|
* If `true`, the component is disabled.
|
|
192
192
|
* @default false
|
|
@@ -9,6 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import { refType } from '@mui/utils';
|
|
10
10
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
11
11
|
import { useFormControl } from '../FormControl';
|
|
12
|
+
import Stack from '../Stack';
|
|
12
13
|
import Typography from '../Typography';
|
|
13
14
|
import capitalize from '../utils/capitalize';
|
|
14
15
|
import styled from '../styles/styled';
|
|
@@ -146,12 +147,16 @@ var FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(i
|
|
|
146
147
|
ownerState: ownerState,
|
|
147
148
|
ref: ref
|
|
148
149
|
}, other, {
|
|
149
|
-
children: [/*#__PURE__*/React.cloneElement(control, controlProps),
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
150
|
+
children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(Stack, {
|
|
151
|
+
direction: "row",
|
|
152
|
+
alignItems: "center",
|
|
153
|
+
children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {
|
|
154
|
+
ownerState: ownerState,
|
|
155
|
+
"aria-hidden": true,
|
|
156
|
+
className: classes.asterisk,
|
|
157
|
+
children: ["\u2009", '*']
|
|
158
|
+
})]
|
|
159
|
+
}) : label]
|
|
155
160
|
}));
|
|
156
161
|
});
|
|
157
162
|
process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-proptypes */ = {
|
|
@@ -319,7 +319,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
319
319
|
* The component used for the root node.
|
|
320
320
|
* Either a string to use a HTML element or a component.
|
|
321
321
|
*/
|
|
322
|
-
component: PropTypes
|
|
322
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
323
323
|
/**
|
|
324
324
|
* The components used for each slot inside.
|
|
325
325
|
*
|
|
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes /* remove-propt
|
|
|
195
195
|
* The component used for the root node.
|
|
196
196
|
* Either a string to use a HTML element or a component.
|
|
197
197
|
*/
|
|
198
|
-
component: PropTypes
|
|
198
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
199
199
|
/**
|
|
200
200
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
201
201
|
* The prop defaults to the value inherited from the parent List component.
|
|
@@ -201,7 +201,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
201
201
|
* The component used for the root node.
|
|
202
202
|
* Either a string to use a HTML element or a component.
|
|
203
203
|
*/
|
|
204
|
-
component: PropTypes
|
|
204
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
205
205
|
/**
|
|
206
206
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
207
207
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
@@ -29,7 +29,7 @@ var SvgIconRoot = styled('svg', {
|
|
|
29
29
|
return [styles.root, ownerState.color !== 'inherit' && styles["color".concat(capitalize(ownerState.color))], styles["fontSize".concat(capitalize(ownerState.fontSize))]];
|
|
30
30
|
}
|
|
31
31
|
})(function (_ref) {
|
|
32
|
-
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$
|
|
32
|
+
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
|
|
33
33
|
var theme = _ref.theme,
|
|
34
34
|
ownerState = _ref.ownerState;
|
|
35
35
|
return {
|
|
@@ -41,19 +41,19 @@ var SvgIconRoot = styled('svg', {
|
|
|
41
41
|
// e.g. heroicons uses fill="none" and stroke="currentColor"
|
|
42
42
|
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
43
43
|
flexShrink: 0,
|
|
44
|
-
transition: (_theme$transitions = theme.transitions) == null
|
|
45
|
-
duration: (_theme$transitions2 = theme.transitions) == null
|
|
44
|
+
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
45
|
+
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
|
|
46
46
|
}),
|
|
47
47
|
fontSize: {
|
|
48
48
|
inherit: 'inherit',
|
|
49
|
-
small: ((_theme$typography = theme.typography) == null
|
|
50
|
-
medium: ((_theme$typography2 = theme.typography) == null
|
|
51
|
-
large: ((_theme$typography3 = theme.typography) == null
|
|
49
|
+
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
|
50
|
+
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
|
51
|
+
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
|
52
52
|
}[ownerState.fontSize],
|
|
53
53
|
// TODO v5 deprecate, v6 remove for sx
|
|
54
|
-
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null
|
|
55
|
-
action: (_palette2 = (theme.vars || theme).palette) == null
|
|
56
|
-
disabled: (_palette3 = (theme.vars || theme).palette) == null
|
|
54
|
+
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
|
|
55
|
+
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
|
|
56
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
|
|
57
57
|
inherit: undefined
|
|
58
58
|
}[ownerState.color]
|
|
59
59
|
};
|
package/legacy/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var useTouchRipple = function useTouchRipple(props) {
|
|
|
30
30
|
keydownRef.current = true;
|
|
31
31
|
rippleRef.current.stop(event, function () {
|
|
32
32
|
var _rippleRef$current2;
|
|
33
|
-
rippleRef == null
|
|
33
|
+
rippleRef == null || (_rippleRef$current2 = rippleRef.current) == null ? void 0 : _rippleRef$current2.start(event);
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -41,7 +41,7 @@ var useTouchRipple = function useTouchRipple(props) {
|
|
|
41
41
|
keydownRef.current = false;
|
|
42
42
|
rippleRef.current.stop(event, function () {
|
|
43
43
|
var _rippleRef$current3;
|
|
44
|
-
rippleRef == null
|
|
44
|
+
rippleRef == null || (_rippleRef$current3 = rippleRef.current) == null ? void 0 : _rippleRef$current3.pulsate(event);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
});
|
package/modern/Button/Button.js
CHANGED
|
@@ -306,7 +306,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
|
306
306
|
* The component used for the root node.
|
|
307
307
|
* Either a string to use a HTML element or a component.
|
|
308
308
|
*/
|
|
309
|
-
component: PropTypes
|
|
309
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
310
310
|
/**
|
|
311
311
|
* If `true`, the component is disabled.
|
|
312
312
|
* @default false
|
package/modern/Fab/Fab.js
CHANGED
|
@@ -183,7 +183,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
|
|
|
183
183
|
* The component used for the root node.
|
|
184
184
|
* Either a string to use a HTML element or a component.
|
|
185
185
|
*/
|
|
186
|
-
component: PropTypes
|
|
186
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
187
187
|
/**
|
|
188
188
|
* If `true`, the component is disabled.
|
|
189
189
|
* @default false
|
|
@@ -9,6 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import { refType } from '@mui/utils';
|
|
10
10
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
11
11
|
import { useFormControl } from '../FormControl';
|
|
12
|
+
import Stack from '../Stack';
|
|
12
13
|
import Typography from '../Typography';
|
|
13
14
|
import capitalize from '../utils/capitalize';
|
|
14
15
|
import styled from '../styles/styled';
|
|
@@ -149,12 +150,16 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
149
150
|
ownerState: ownerState,
|
|
150
151
|
ref: ref
|
|
151
152
|
}, other, {
|
|
152
|
-
children: [/*#__PURE__*/React.cloneElement(control, controlProps),
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(Stack, {
|
|
154
|
+
direction: "row",
|
|
155
|
+
alignItems: "center",
|
|
156
|
+
children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {
|
|
157
|
+
ownerState: ownerState,
|
|
158
|
+
"aria-hidden": true,
|
|
159
|
+
className: classes.asterisk,
|
|
160
|
+
children: ["\u2009", '*']
|
|
161
|
+
})]
|
|
162
|
+
}) : label]
|
|
158
163
|
}));
|
|
159
164
|
});
|
|
160
165
|
process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-proptypes */ = {
|
|
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
314
314
|
* The component used for the root node.
|
|
315
315
|
* Either a string to use a HTML element or a component.
|
|
316
316
|
*/
|
|
317
|
-
component: PropTypes
|
|
317
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
318
318
|
/**
|
|
319
319
|
* The components used for each slot inside.
|
|
320
320
|
*
|
|
@@ -193,7 +193,7 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes /* remove-propt
|
|
|
193
193
|
* The component used for the root node.
|
|
194
194
|
* Either a string to use a HTML element or a component.
|
|
195
195
|
*/
|
|
196
|
-
component: PropTypes
|
|
196
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
197
197
|
/**
|
|
198
198
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
199
199
|
* The prop defaults to the value inherited from the parent List component.
|
|
@@ -209,7 +209,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
209
209
|
* The component used for the root node.
|
|
210
210
|
* Either a string to use a HTML element or a component.
|
|
211
211
|
*/
|
|
212
|
-
component: PropTypes
|
|
212
|
+
component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
|
|
213
213
|
/**
|
|
214
214
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
215
215
|
* The prop defaults to the value inherited from the parent Menu component.
|
package/modern/index.js
CHANGED
package/node/Button/Button.js
CHANGED
|
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
|
314
314
|
* The component used for the root node.
|
|
315
315
|
* Either a string to use a HTML element or a component.
|
|
316
316
|
*/
|
|
317
|
-
component: _propTypes.default
|
|
317
|
+
component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
|
|
318
318
|
/**
|
|
319
319
|
* If `true`, the component is disabled.
|
|
320
320
|
* @default false
|
|
@@ -39,7 +39,7 @@ const body = theme => (0, _extends2.default)({
|
|
|
39
39
|
});
|
|
40
40
|
exports.body = body;
|
|
41
41
|
const styles = (theme, enableColorScheme = false) => {
|
|
42
|
-
var _theme$components
|
|
42
|
+
var _theme$components;
|
|
43
43
|
const colorSchemeStyles = {};
|
|
44
44
|
if (enableColorScheme && theme.colorSchemes) {
|
|
45
45
|
Object.entries(theme.colorSchemes).forEach(([key, scheme]) => {
|
|
@@ -67,7 +67,7 @@ const styles = (theme, enableColorScheme = false) => {
|
|
|
67
67
|
}
|
|
68
68
|
})
|
|
69
69
|
}, colorSchemeStyles);
|
|
70
|
-
const themeOverrides = (_theme$components = theme.components) == null
|
|
70
|
+
const themeOverrides = (_theme$components = theme.components) == null || (_theme$components = _theme$components.MuiCssBaseline) == null ? void 0 : _theme$components.styleOverrides;
|
|
71
71
|
if (themeOverrides) {
|
|
72
72
|
defaultStyles = [defaultStyles, themeOverrides];
|
|
73
73
|
}
|
package/node/Fab/Fab.js
CHANGED
|
@@ -194,7 +194,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
|
|
|
194
194
|
* The component used for the root node.
|
|
195
195
|
* Either a string to use a HTML element or a component.
|
|
196
196
|
*/
|
|
197
|
-
component: _propTypes.default
|
|
197
|
+
component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
|
|
198
198
|
/**
|
|
199
199
|
* If `true`, the component is disabled.
|
|
200
200
|
* @default false
|
|
@@ -14,6 +14,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _utils = require("@mui/utils");
|
|
15
15
|
var _base = require("@mui/base");
|
|
16
16
|
var _FormControl = require("../FormControl");
|
|
17
|
+
var _Stack = _interopRequireDefault(require("../Stack"));
|
|
17
18
|
var _Typography = _interopRequireDefault(require("../Typography"));
|
|
18
19
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
19
20
|
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
@@ -158,12 +159,16 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
158
159
|
ownerState: ownerState,
|
|
159
160
|
ref: ref
|
|
160
161
|
}, other, {
|
|
161
|
-
children: [/*#__PURE__*/React.cloneElement(control, controlProps),
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Stack.default, {
|
|
163
|
+
direction: "row",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
children: [label, /*#__PURE__*/(0, _jsxRuntime.jsxs)(AsteriskComponent, {
|
|
166
|
+
ownerState: ownerState,
|
|
167
|
+
"aria-hidden": true,
|
|
168
|
+
className: classes.asterisk,
|
|
169
|
+
children: ["\u2009", '*']
|
|
170
|
+
})]
|
|
171
|
+
}) : label]
|
|
167
172
|
}));
|
|
168
173
|
});
|
|
169
174
|
process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-proptypes */ = {
|
|
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
|
|
|
323
323
|
* The component used for the root node.
|
|
324
324
|
* Either a string to use a HTML element or a component.
|
|
325
325
|
*/
|
|
326
|
-
component: _propTypes.default
|
|
326
|
+
component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
|
|
327
327
|
/**
|
|
328
328
|
* The components used for each slot inside.
|
|
329
329
|
*
|
|
@@ -202,7 +202,7 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes /* remove-propt
|
|
|
202
202
|
* The component used for the root node.
|
|
203
203
|
* Either a string to use a HTML element or a component.
|
|
204
204
|
*/
|
|
205
|
-
component: _propTypes.default
|
|
205
|
+
component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
|
|
206
206
|
/**
|
|
207
207
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
208
208
|
* The prop defaults to the value inherited from the parent List component.
|
|
@@ -218,7 +218,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
|
|
|
218
218
|
* The component used for the root node.
|
|
219
219
|
* Either a string to use a HTML element or a component.
|
|
220
220
|
*/
|
|
221
|
-
component: _propTypes.default
|
|
221
|
+
component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
|
|
222
222
|
/**
|
|
223
223
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
224
224
|
* The prop defaults to the value inherited from the parent Menu component.
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -44,7 +44,7 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
44
44
|
theme,
|
|
45
45
|
ownerState
|
|
46
46
|
}) => {
|
|
47
|
-
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$
|
|
47
|
+
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
|
|
48
48
|
return {
|
|
49
49
|
userSelect: 'none',
|
|
50
50
|
width: '1em',
|
|
@@ -54,19 +54,19 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
54
54
|
// e.g. heroicons uses fill="none" and stroke="currentColor"
|
|
55
55
|
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
56
56
|
flexShrink: 0,
|
|
57
|
-
transition: (_theme$transitions = theme.transitions) == null
|
|
58
|
-
duration: (_theme$transitions2 = theme.transitions) == null
|
|
57
|
+
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
58
|
+
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
|
|
59
59
|
}),
|
|
60
60
|
fontSize: {
|
|
61
61
|
inherit: 'inherit',
|
|
62
|
-
small: ((_theme$typography = theme.typography) == null
|
|
63
|
-
medium: ((_theme$typography2 = theme.typography) == null
|
|
64
|
-
large: ((_theme$typography3 = theme.typography) == null
|
|
62
|
+
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
|
63
|
+
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
|
64
|
+
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
|
65
65
|
}[ownerState.fontSize],
|
|
66
66
|
// TODO v5 deprecate, v6 remove for sx
|
|
67
|
-
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null
|
|
68
|
-
action: (_palette2 = (theme.vars || theme).palette) == null
|
|
69
|
-
disabled: (_palette3 = (theme.vars || theme).palette) == null
|
|
67
|
+
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
|
|
68
|
+
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
|
|
69
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
|
|
70
70
|
inherit: undefined
|
|
71
71
|
}[ownerState.color]
|
|
72
72
|
};
|
package/node/index.js
CHANGED
|
@@ -38,7 +38,7 @@ const useTouchRipple = props => {
|
|
|
38
38
|
keydownRef.current = true;
|
|
39
39
|
rippleRef.current.stop(event, () => {
|
|
40
40
|
var _rippleRef$current2;
|
|
41
|
-
rippleRef == null
|
|
41
|
+
rippleRef == null || (_rippleRef$current2 = rippleRef.current) == null ? void 0 : _rippleRef$current2.start(event);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
});
|
|
@@ -49,7 +49,7 @@ const useTouchRipple = props => {
|
|
|
49
49
|
keydownRef.current = false;
|
|
50
50
|
rippleRef.current.stop(event, () => {
|
|
51
51
|
var _rippleRef$current3;
|
|
52
|
-
rippleRef == null
|
|
52
|
+
rippleRef == null || (_rippleRef$current3 = rippleRef.current) == null ? void 0 : _rippleRef$current3.pulsate(event);
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@babel/runtime": "^7.22.
|
|
49
|
-
"@mui/base": "5.0.0-beta.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.14.
|
|
51
|
-
"@mui/system": "^5.14.
|
|
48
|
+
"@babel/runtime": "^7.22.6",
|
|
49
|
+
"@mui/base": "5.0.0-beta.8",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.14.1",
|
|
51
|
+
"@mui/system": "^5.14.1",
|
|
52
52
|
"@mui/types": "^7.2.4",
|
|
53
|
-
"@mui/utils": "^5.
|
|
53
|
+
"@mui/utils": "^5.14.1",
|
|
54
54
|
"@types/react-transition-group": "^4.4.6",
|
|
55
55
|
"clsx": "^1.2.1",
|
|
56
56
|
"csstype": "^3.1.2",
|
package/styles/components.d.ts
CHANGED
|
@@ -338,6 +338,11 @@ export interface Components<Theme = unknown> {
|
|
|
338
338
|
styleOverrides?: ComponentsOverrides<Theme>['MuiMenuItem'];
|
|
339
339
|
variants?: ComponentsVariants['MuiMenuItem'];
|
|
340
340
|
};
|
|
341
|
+
MuiMenuList?: {
|
|
342
|
+
defaultProps?: ComponentsProps['MuiMenuList'];
|
|
343
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiMenuList'];
|
|
344
|
+
variants?: ComponentsVariants['MuiMenuList'];
|
|
345
|
+
};
|
|
341
346
|
MuiMobileStepper?: {
|
|
342
347
|
defaultProps?: ComponentsProps['MuiMobileStepper'];
|
|
343
348
|
styleOverrides?: ComponentsOverrides<Theme>['MuiMobileStepper'];
|
package/styles/overrides.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ import { ListItemTextClassKey } from '../ListItemText';
|
|
|
66
66
|
import { ListSubheaderClassKey } from '../ListSubheader';
|
|
67
67
|
import { MenuClassKey } from '../Menu';
|
|
68
68
|
import { MenuItemClassKey } from '../MenuItem';
|
|
69
|
+
import { MenuListClassKey } from '../MenuList';
|
|
69
70
|
import { MobileStepperClassKey } from '../MobileStepper';
|
|
70
71
|
import { ModalClassKey } from '../Modal';
|
|
71
72
|
import { NativeSelectClassKey } from '../NativeSelect';
|
|
@@ -204,6 +205,7 @@ export interface ComponentNameToClassKey {
|
|
|
204
205
|
MuiListSubheader: ListSubheaderClassKey;
|
|
205
206
|
MuiMenu: MenuClassKey;
|
|
206
207
|
MuiMenuItem: MenuItemClassKey;
|
|
208
|
+
MuiMenuList: MenuListClassKey;
|
|
207
209
|
MuiMobileStepper: MobileStepperClassKey;
|
|
208
210
|
MuiModal: ModalClassKey;
|
|
209
211
|
MuiNativeSelect: NativeSelectClassKey;
|
package/styles/props.d.ts
CHANGED
|
@@ -179,7 +179,7 @@ export interface ComponentsPropsList {
|
|
|
179
179
|
MuiInputBase: InputBaseProps;
|
|
180
180
|
MuiInputLabel: InputLabelProps;
|
|
181
181
|
MuiLinearProgress: LinearProgressProps;
|
|
182
|
-
MuiLink: LinkProps
|
|
182
|
+
MuiLink: LinkProps<React.ElementType>;
|
|
183
183
|
MuiList: ListProps;
|
|
184
184
|
MuiListItem: ListItemProps;
|
|
185
185
|
MuiListItemButton: ListItemButtonProps;
|