@mui/material 7.1.2 → 7.3.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/Accordion/Accordion.d.ts +11 -0
- package/Accordion/Accordion.js +19 -5
- package/Alert/Alert.js +2 -3
- package/Autocomplete/Autocomplete.js +4 -4
- package/Backdrop/Backdrop.js +1 -0
- package/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/Button/Button.js +5 -6
- package/ButtonGroup/ButtonGroup.js +3 -4
- package/CHANGELOG.md +141 -0
- package/Checkbox/Checkbox.js +2 -3
- package/Chip/Chip.js +11 -11
- package/Divider/Divider.js +1 -2
- package/FilledInput/FilledInput.js +1 -1
- package/IconButton/IconButton.js +2 -3
- package/Input/Input.js +1 -1
- package/Input/inputClasses.d.ts +12 -4
- package/LinearProgress/LinearProgress.js +1 -2
- package/Link/Link.js +11 -4
- package/Link/getTextDecoration.js +5 -0
- package/ListItemButton/ListItemButton.js +4 -5
- package/MenuItem/MenuItem.js +4 -5
- package/NativeSelect/NativeSelectInput.js +6 -2
- package/OutlinedInput/NotchedOutline.js +2 -0
- package/OutlinedInput/OutlinedInput.js +2 -2
- package/OutlinedInput/outlinedInputClasses.d.ts +12 -4
- package/PaginationItem/PaginationItem.js +7 -8
- package/Radio/Radio.js +2 -3
- package/Radio/RadioButtonIcon.js +7 -2
- package/Select/SelectInput.js +69 -20
- package/Skeleton/Skeleton.js +1 -1
- package/Slider/Slider.js +6 -15
- package/Snackbar/Snackbar.js +2 -8
- package/SpeedDial/SpeedDial.js +20 -6
- package/SwipeableDrawer/SwipeArea.js +1 -0
- package/Switch/Switch.js +6 -4
- package/TableCell/TableCell.js +1 -2
- package/TableRow/TableRow.js +2 -3
- package/ToggleButton/ToggleButton.js +7 -8
- package/Tooltip/Tooltip.js +2 -3
- package/esm/Accordion/Accordion.d.ts +11 -0
- package/esm/Accordion/Accordion.js +19 -5
- package/esm/Alert/Alert.js +2 -3
- package/esm/Autocomplete/Autocomplete.js +4 -4
- package/esm/Backdrop/Backdrop.js +1 -0
- package/esm/Breadcrumbs/BreadcrumbCollapsed.js +3 -1
- package/esm/Button/Button.js +5 -6
- package/esm/ButtonGroup/ButtonGroup.js +3 -4
- package/esm/Checkbox/Checkbox.js +2 -3
- package/esm/Chip/Chip.js +11 -11
- package/esm/Divider/Divider.js +1 -2
- package/esm/FilledInput/FilledInput.js +1 -1
- package/esm/IconButton/IconButton.js +2 -3
- package/esm/Input/Input.js +1 -1
- package/esm/Input/inputClasses.d.ts +12 -4
- package/esm/LinearProgress/LinearProgress.js +1 -2
- package/esm/Link/Link.js +11 -4
- package/esm/Link/getTextDecoration.js +5 -0
- package/esm/ListItemButton/ListItemButton.js +4 -5
- package/esm/MenuItem/MenuItem.js +4 -5
- package/esm/NativeSelect/NativeSelectInput.js +6 -2
- package/esm/OutlinedInput/NotchedOutline.js +2 -0
- package/esm/OutlinedInput/OutlinedInput.js +2 -2
- package/esm/OutlinedInput/outlinedInputClasses.d.ts +12 -4
- package/esm/PaginationItem/PaginationItem.js +7 -8
- package/esm/Radio/Radio.js +2 -3
- package/esm/Radio/RadioButtonIcon.js +7 -2
- package/esm/Select/SelectInput.js +69 -20
- package/esm/Skeleton/Skeleton.js +2 -2
- package/esm/Slider/Slider.js +6 -15
- package/esm/Snackbar/Snackbar.js +2 -8
- package/esm/SpeedDial/SpeedDial.js +20 -6
- package/esm/SwipeableDrawer/SwipeArea.js +1 -0
- package/esm/Switch/Switch.js +6 -4
- package/esm/TableCell/TableCell.js +1 -2
- package/esm/TableRow/TableRow.js +2 -3
- package/esm/ToggleButton/ToggleButton.js +7 -8
- package/esm/Tooltip/Tooltip.js +2 -3
- package/esm/index.js +1 -1
- package/esm/internal/SwitchBase.js +4 -1
- package/esm/locale/index.js +6 -3
- package/esm/styles/components.d.ts +5 -0
- package/esm/styles/createColorScheme.d.ts +3 -1
- package/esm/styles/createColorScheme.js +6 -1
- package/esm/styles/createPalette.js +29 -2
- package/esm/styles/createTheme.d.ts +1 -1
- package/esm/styles/createThemeNoVars.d.ts +4 -0
- package/esm/styles/createThemeNoVars.js +59 -1
- package/esm/styles/createThemeWithVars.d.ts +4 -0
- package/esm/styles/createThemeWithVars.js +98 -69
- package/esm/styles/shouldSkipGeneratingVar.js +1 -1
- package/esm/useAutocomplete/useAutocomplete.d.ts +1 -0
- package/esm/useAutocomplete/useAutocomplete.js +21 -3
- package/esm/version/index.js +3 -3
- package/index.js +1 -1
- package/internal/SwitchBase.js +4 -1
- package/locale/index.js +6 -3
- package/package.json +9 -11
- package/styles/components.d.ts +5 -0
- package/styles/createColorScheme.d.ts +3 -1
- package/styles/createColorScheme.js +6 -1
- package/styles/createPalette.js +30 -2
- package/styles/createTheme.d.ts +1 -1
- package/styles/createThemeNoVars.d.ts +4 -0
- package/styles/createThemeNoVars.js +59 -1
- package/styles/createThemeWithVars.d.ts +4 -0
- package/styles/createThemeWithVars.js +98 -69
- package/styles/shouldSkipGeneratingVar.js +1 -1
- package/useAutocomplete/useAutocomplete.d.ts +1 -0
- package/useAutocomplete/useAutocomplete.js +22 -3
- package/version/index.js +3 -3
package/Accordion/Accordion.d.ts
CHANGED
|
@@ -23,10 +23,16 @@ export interface AccordionSlots {
|
|
|
23
23
|
* @default Collapse
|
|
24
24
|
*/
|
|
25
25
|
transition: React.ElementType;
|
|
26
|
+
/**
|
|
27
|
+
* The component that renders the region.
|
|
28
|
+
* @default 'div'
|
|
29
|
+
*/
|
|
30
|
+
region: React.ElementType;
|
|
26
31
|
}
|
|
27
32
|
export interface AccordionRootSlotPropsOverrides {}
|
|
28
33
|
export interface AccordionHeadingSlotPropsOverrides {}
|
|
29
34
|
export interface AccordionTransitionSlotPropsOverrides {}
|
|
35
|
+
export interface AccordionRegionSlotPropsOverrides {}
|
|
30
36
|
export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSlots, {
|
|
31
37
|
/**
|
|
32
38
|
* Props forwarded to the root slot.
|
|
@@ -43,6 +49,11 @@ export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<AccordionSlots,
|
|
|
43
49
|
* By default, the avaible props are based on the [Collapse](https://mui.com/material-ui/api/collapse/#props) component.
|
|
44
50
|
*/
|
|
45
51
|
transition: SlotComponentProps<React.ElementType, TransitionProps & AccordionTransitionSlotPropsOverrides, AccordionOwnerState>;
|
|
52
|
+
/**
|
|
53
|
+
* Props forwarded to the region slot.
|
|
54
|
+
* By default, the available props are based on the div element.
|
|
55
|
+
*/
|
|
56
|
+
region: SlotProps<'div', AccordionRegionSlotPropsOverrides, AccordionOwnerState>;
|
|
46
57
|
}>;
|
|
47
58
|
export type AccordionTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> = ExtendPaperTypeMap<{
|
|
48
59
|
props: AdditionalProps & {
|
package/Accordion/Accordion.js
CHANGED
|
@@ -132,6 +132,10 @@ const AccordionHeading = (0, _zeroStyled.styled)('h3', {
|
|
|
132
132
|
})({
|
|
133
133
|
all: 'unset'
|
|
134
134
|
});
|
|
135
|
+
const AccordionRegion = (0, _zeroStyled.styled)('div', {
|
|
136
|
+
name: 'MuiAccordion',
|
|
137
|
+
slot: 'Region'
|
|
138
|
+
})({});
|
|
135
139
|
const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
|
|
136
140
|
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
|
137
141
|
props: inProps,
|
|
@@ -216,6 +220,17 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
216
220
|
externalForwardedProps,
|
|
217
221
|
ownerState
|
|
218
222
|
});
|
|
223
|
+
const [AccordionRegionSlot, accordionRegionProps] = (0, _useSlot.default)('region', {
|
|
224
|
+
elementType: AccordionRegion,
|
|
225
|
+
externalForwardedProps,
|
|
226
|
+
ownerState,
|
|
227
|
+
className: classes.region,
|
|
228
|
+
additionalProps: {
|
|
229
|
+
'aria-labelledby': summary.props.id,
|
|
230
|
+
id: summary.props['aria-controls'],
|
|
231
|
+
role: 'region'
|
|
232
|
+
}
|
|
233
|
+
});
|
|
219
234
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
|
220
235
|
...rootProps,
|
|
221
236
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionHeadingSlot, {
|
|
@@ -228,11 +243,8 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
228
243
|
in: expanded,
|
|
229
244
|
timeout: "auto",
|
|
230
245
|
...transitionProps,
|
|
231
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
232
|
-
|
|
233
|
-
id: summary.props['aria-controls'],
|
|
234
|
-
role: "region",
|
|
235
|
-
className: classes.region,
|
|
246
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionRegionSlot, {
|
|
247
|
+
...accordionRegionProps,
|
|
236
248
|
children: children
|
|
237
249
|
})
|
|
238
250
|
})]
|
|
@@ -297,6 +309,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
297
309
|
*/
|
|
298
310
|
slotProps: _propTypes.default.shape({
|
|
299
311
|
heading: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
312
|
+
region: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
300
313
|
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
301
314
|
transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
302
315
|
}),
|
|
@@ -306,6 +319,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
306
319
|
*/
|
|
307
320
|
slots: _propTypes.default.shape({
|
|
308
321
|
heading: _propTypes.default.elementType,
|
|
322
|
+
region: _propTypes.default.elementType,
|
|
309
323
|
root: _propTypes.default.elementType,
|
|
310
324
|
transition: _propTypes.default.elementType
|
|
311
325
|
}),
|
package/Alert/Alert.js
CHANGED
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
15
14
|
var _zeroStyled = require("../zero-styled");
|
|
16
15
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
17
16
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
@@ -54,8 +53,8 @@ const AlertRoot = (0, _zeroStyled.styled)(_Paper.default, {
|
|
|
54
53
|
})((0, _memoTheme.default)(({
|
|
55
54
|
theme
|
|
56
55
|
}) => {
|
|
57
|
-
const getColor = theme.palette.mode === 'light' ?
|
|
58
|
-
const getBackgroundColor = theme.palette.mode === 'light' ?
|
|
56
|
+
const getColor = theme.palette.mode === 'light' ? theme.darken : theme.lighten;
|
|
57
|
+
const getBackgroundColor = theme.palette.mode === 'light' ? theme.lighten : theme.darken;
|
|
59
58
|
return {
|
|
60
59
|
...theme.typography.body2,
|
|
61
60
|
backgroundColor: 'transparent',
|
|
@@ -19,7 +19,6 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
19
19
|
var _integerPropType = _interopRequireDefault(require("@mui/utils/integerPropType"));
|
|
20
20
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
21
21
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
22
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
23
22
|
var _useAutocomplete = _interopRequireWildcard(require("../useAutocomplete"));
|
|
24
23
|
var _Popper = _interopRequireDefault(require("../Popper"));
|
|
25
24
|
var _ListSubheader = _interopRequireDefault(require("../ListSubheader"));
|
|
@@ -375,16 +374,16 @@ const AutocompleteListbox = (0, _zeroStyled.styled)('ul', {
|
|
|
375
374
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
376
375
|
},
|
|
377
376
|
'&[aria-selected="true"]': {
|
|
378
|
-
backgroundColor: theme.
|
|
377
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),
|
|
379
378
|
[`&.${_autocompleteClasses.default.focused}`]: {
|
|
380
|
-
backgroundColor: theme.vars
|
|
379
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),
|
|
381
380
|
// Reset on touch devices, it doesn't add specificity
|
|
382
381
|
'@media (hover: none)': {
|
|
383
382
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
384
383
|
}
|
|
385
384
|
},
|
|
386
385
|
[`&.${_autocompleteClasses.default.focusVisible}`]: {
|
|
387
|
-
backgroundColor: theme.vars
|
|
386
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
388
387
|
}
|
|
389
388
|
}
|
|
390
389
|
}
|
|
@@ -924,6 +923,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
924
923
|
* Used to determine the disabled state for a given option.
|
|
925
924
|
*
|
|
926
925
|
* @param {Value} option The option to test.
|
|
926
|
+
* @template Value The option shape. Will be the same shape as an item of the options.
|
|
927
927
|
* @returns {boolean}
|
|
928
928
|
*/
|
|
929
929
|
getOptionDisabled: _propTypes.default.func,
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -15,7 +15,9 @@ var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
|
15
15
|
var _MoreHoriz = _interopRequireDefault(require("../internal/svg-icons/MoreHoriz"));
|
|
16
16
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
const BreadcrumbCollapsedButton = (0, _zeroStyled.styled)(_ButtonBase.default
|
|
18
|
+
const BreadcrumbCollapsedButton = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
19
|
+
name: 'MuiBreadcrumbCollapsed'
|
|
20
|
+
})((0, _memoTheme.default)(({
|
|
19
21
|
theme
|
|
20
22
|
}) => ({
|
|
21
23
|
display: 'flex',
|
package/Button/Button.js
CHANGED
|
@@ -12,7 +12,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
16
15
|
var _utils = require("../utils");
|
|
17
16
|
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
18
17
|
var _zeroStyled = require("../zero-styled");
|
|
@@ -166,15 +165,15 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
166
165
|
style: {
|
|
167
166
|
'--variant-textColor': (theme.vars || theme).palette[color].main,
|
|
168
167
|
'--variant-outlinedColor': (theme.vars || theme).palette[color].main,
|
|
169
|
-
'--variant-outlinedBorder': theme.
|
|
168
|
+
'--variant-outlinedBorder': theme.alpha((theme.vars || theme).palette[color].main, 0.5),
|
|
170
169
|
'--variant-containedColor': (theme.vars || theme).palette[color].contrastText,
|
|
171
170
|
'--variant-containedBg': (theme.vars || theme).palette[color].main,
|
|
172
171
|
'@media (hover: hover)': {
|
|
173
172
|
'&:hover': {
|
|
174
173
|
'--variant-containedBg': (theme.vars || theme).palette[color].dark,
|
|
175
|
-
'--variant-textBg': theme.
|
|
174
|
+
'--variant-textBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),
|
|
176
175
|
'--variant-outlinedBorder': (theme.vars || theme).palette[color].main,
|
|
177
|
-
'--variant-outlinedBg': theme.
|
|
176
|
+
'--variant-outlinedBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
179
|
}
|
|
@@ -189,8 +188,8 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
189
188
|
'@media (hover: hover)': {
|
|
190
189
|
'&:hover': {
|
|
191
190
|
'--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
192
|
-
'--variant-textBg': theme.
|
|
193
|
-
'--variant-outlinedBg': theme.
|
|
191
|
+
'--variant-textBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),
|
|
192
|
+
'--variant-outlinedBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
195
|
}
|
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
15
14
|
var _getValidReactChildren = _interopRequireDefault(require("@mui/utils/getValidReactChildren"));
|
|
16
15
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
17
16
|
var _zeroStyled = require("../zero-styled");
|
|
@@ -129,7 +128,7 @@ const ButtonGroupRoot = (0, _zeroStyled.styled)('div', {
|
|
|
129
128
|
},
|
|
130
129
|
style: {
|
|
131
130
|
[`& .${_buttonGroupClasses.default.firstButton},& .${_buttonGroupClasses.default.middleButton}`]: {
|
|
132
|
-
borderRight: theme.vars ? `1px solid
|
|
131
|
+
borderRight: theme.vars ? `1px solid ${theme.alpha(theme.vars.palette.common.onBackground, 0.23)}` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
133
132
|
[`&.${_buttonGroupClasses.default.disabled}`]: {
|
|
134
133
|
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
135
134
|
}
|
|
@@ -142,7 +141,7 @@ const ButtonGroupRoot = (0, _zeroStyled.styled)('div', {
|
|
|
142
141
|
},
|
|
143
142
|
style: {
|
|
144
143
|
[`& .${_buttonGroupClasses.default.firstButton},& .${_buttonGroupClasses.default.middleButton}`]: {
|
|
145
|
-
borderBottom: theme.vars ? `1px solid
|
|
144
|
+
borderBottom: theme.vars ? `1px solid ${theme.alpha(theme.vars.palette.common.onBackground, 0.23)}` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
146
145
|
[`&.${_buttonGroupClasses.default.disabled}`]: {
|
|
147
146
|
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
148
147
|
}
|
|
@@ -155,7 +154,7 @@ const ButtonGroupRoot = (0, _zeroStyled.styled)('div', {
|
|
|
155
154
|
},
|
|
156
155
|
style: {
|
|
157
156
|
[`& .${_buttonGroupClasses.default.firstButton},& .${_buttonGroupClasses.default.middleButton}`]: {
|
|
158
|
-
borderColor: theme.
|
|
157
|
+
borderColor: theme.alpha((theme.vars || theme).palette[color].main, 0.5)
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
160
|
}]), {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,146 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 7.3.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v7.2.0..master -->
|
|
6
|
+
|
|
7
|
+
_Aug 5, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 Shipped `nativeColor` feature that eliminates JS color manipulation and unlocks support for all modern color spaces (#43942) @siriwatknp!
|
|
12
|
+
|
|
13
|
+
To learn more, check out the [Native Color](https://mui.com/material-ui/customization/css-theme-variables/native-color/) guide.
|
|
14
|
+
|
|
15
|
+
### `@mui/material@7.3.0`
|
|
16
|
+
|
|
17
|
+
- Support native color without JS manipulation (#43942) @siriwatknp
|
|
18
|
+
- [Accordion] Add `region` slot (#46659) @sai6855
|
|
19
|
+
- [SpeedDial] Fix navigation with arrow keys when slotProps.fab is defined (#46508) @sai6855
|
|
20
|
+
- [Select] Improve `MenuProps.slotProps` implementation (#46612) @ZeeshanTamboli
|
|
21
|
+
- [Select] Implement pointer cancellation (#45789) @Kartik-Murthy
|
|
22
|
+
- [Switch] Add role="switch" (#46482) @ZeeshanTamboli
|
|
23
|
+
- [Autocomplete] Fix auto highlight when options change but not the length (#46489) @yafeng-c
|
|
24
|
+
|
|
25
|
+
### `@mui/codemod@7.3.0`
|
|
26
|
+
|
|
27
|
+
- Fix `v5.0.0/top-level-imports` codemod changing color imports (#46405) @AidanLDev
|
|
28
|
+
|
|
29
|
+
### Docs
|
|
30
|
+
|
|
31
|
+
- Add JetBrains IDEs MCP configuration (#46470) @bernardobelchior
|
|
32
|
+
- Add warning to array spacing section (#46542) @cherniavskii
|
|
33
|
+
- Add MCP server installation details for Claude Code (#46621) @saschabratton
|
|
34
|
+
- Fix incorrect command for MCP Inspector in mcp.md (#46630) @EndiM
|
|
35
|
+
- Fix incorrect Typography override example for responsive styles (#46558) @aditi291soni
|
|
36
|
+
- Improve MCP docs (#46557) @siriwatknp
|
|
37
|
+
- Fix displaying of components in dark mode (#46544) @sai6855
|
|
38
|
+
- Generate `template` entries about documented generics (#46540) @LukasTy
|
|
39
|
+
- Use fixed dates for stable CRUD dashboard screenshots (#46546) @apedroferreira
|
|
40
|
+
- Add "Edit in Mui Chat" button on demos (#46480) @siriwatknp
|
|
41
|
+
- Fix Menu customization demo (#46535) @siriwatknp
|
|
42
|
+
- Add dashboard with CRUD template based on Toolpad Core (#46376) @apedroferreira
|
|
43
|
+
- Clarify `createTheme` warning for future compatibility (#46476) @satendra03
|
|
44
|
+
- Remove typo in `_redirects` (#46463) @bharatkashyap
|
|
45
|
+
- Change API docs to stay inside Material UI (#46414) @bharatkashyap
|
|
46
|
+
- [Dialog] Fix Form dialog demo's actions button padding (#46506) @frontman-git
|
|
47
|
+
- [SpeedDial] Remove deprecated props from demos (#46485) @sai6855
|
|
48
|
+
- [Switch] Use `slotProps.input` instead of deprecated `inputProps` for accessible controlled switch (#46625) @adiitxa
|
|
49
|
+
|
|
50
|
+
### Core
|
|
51
|
+
|
|
52
|
+
- Fix ESLint reference name (80d32a2) @oliviertassinari
|
|
53
|
+
- Fix ESLint reference name (5fc166e) @oliviertassinari
|
|
54
|
+
- Add `@base-ui-components/*` to env info (#46539) @Janpot
|
|
55
|
+
- Remove dead property from routes (#46534) @oliviertassinari
|
|
56
|
+
- Fix unpinned version regression (#46438) @oliviertassinari
|
|
57
|
+
- [code-infra] Accomodate build requirements from mui-x (#46551) @brijeshb42
|
|
58
|
+
- [code-infra] Extend renovate preset from infra repo (#46483) @brijeshb42
|
|
59
|
+
- [code-infra] Use flat eslint config (#46258) @brijeshb42
|
|
60
|
+
- [docs-infra] Remove comment saving in G-sheet option (#46617) @alexfauquette
|
|
61
|
+
- [docs-infra] Move `Open in MUI Chat` to Demo toolbar and adjust styles (#46579) @siriwatknp
|
|
62
|
+
- [docs-infra] Fix codeblock issues (#46323) @atharva3333
|
|
63
|
+
- [docs-infra] Handle white spaces and generate either TS or JS demo for llms files (#46494) @siriwatknp
|
|
64
|
+
- [examples] Rename PopOverMenu.tsx file to match its usage (#46532) @rjray
|
|
65
|
+
- [infra] Fix `test_types_next`, `test_react_18`, `test_react_next` jobs (#46182) @Janpot
|
|
66
|
+
- [infra] Remove package.json `module` field (#46620) @Janpot
|
|
67
|
+
- [infra] Upgrade form-data to >4.0.4 (#46618) @Janpot
|
|
68
|
+
- [infra] Use cpu option only in CI (#46588) @Janpot
|
|
69
|
+
- [infra] Update scripts to delete publishConfig.directory (#46563) @brijeshb42
|
|
70
|
+
- [infra] Remove `transform-runtime` from `next/babel` (#46552) @Janpot
|
|
71
|
+
- [infra] Revert nx update (#46538) @Janpot
|
|
72
|
+
- [infra] Replace Argos script with code-infra CLI and update deps (#46475) @Janpot
|
|
73
|
+
- [infra] Update node group in renovate config (#46474) @Janpot
|
|
74
|
+
- [infra] Move @playwright/test to peer deps in @mui/internal-test-utils (#46459) @Janpot
|
|
75
|
+
- [infra] Add instructions for patch release (#46382) @mnajdova
|
|
76
|
+
|
|
77
|
+
All contributors of this release in alphabetical order: @adiitxa, @aditi291soni, @AidanLDev, @alexfauquette, @apedroferreira, @atharva3333, @bernardobelchior, @bharatkashyap, @brijeshb42, @cherniavskii, @EndiM, @frontman-git, @Janpot, @Kartik-Murthy, @LukasTy, @mnajdova, @oliviertassinari, @rjray, @sai6855, @saschabratton, @satendra03, @siriwatknp, @yafeng-c, @ZeeshanTamboli
|
|
78
|
+
|
|
79
|
+
## 7.2.0
|
|
80
|
+
|
|
81
|
+
<!-- generated comparing v7.1.1..master -->
|
|
82
|
+
|
|
83
|
+
_Jun 26, 2025_
|
|
84
|
+
|
|
85
|
+
A big thanks to the 17 contributors who made this release possible. Here are the highlights ✨:
|
|
86
|
+
|
|
87
|
+
- ⚡️ Added `modularCssLayers` theme option for splitting styles into multiple CSS layers (#46001) @siriwatknp.
|
|
88
|
+
- 📖 Added example for using Material UI with React Router v7 (#46406) @siriwatknp.
|
|
89
|
+
|
|
90
|
+
### `@mui/material@7.2.0`
|
|
91
|
+
|
|
92
|
+
- [Backdrop] Fix handling of `component` prop (#46269) @sai6855
|
|
93
|
+
- [Chip] Explicitly define line-height (#46260) @DiegoAndai
|
|
94
|
+
- [Chip] Fix handling on event handlers (#46263) @sai6855
|
|
95
|
+
- [OutlinedInput][Input] Deprecate composed classes (#46316) @sai6855
|
|
96
|
+
- [Select] Pass MenuProps.slotProps.list alongside MenuListProps (#46274) @scousino
|
|
97
|
+
- [l10] Enable `labelDisplayedRows` translation for Romanian (#46377) @dhu-redwoodtech
|
|
98
|
+
- Skip generating `modularCssLayers` CSS var (#46329) @siriwatknp
|
|
99
|
+
|
|
100
|
+
### `@mui/system@7.2.0`
|
|
101
|
+
|
|
102
|
+
- Add `modularCssLayers` theme flag to split styles into multiple CSS layers (#46001) @siriwatknp
|
|
103
|
+
|
|
104
|
+
### `@mui/styled-engine@7.2.0`
|
|
105
|
+
|
|
106
|
+
- Do not reuse the emotion cache across SSR requests (#46276) @robbtraister
|
|
107
|
+
|
|
108
|
+
### `@mui/codemod@7.2.0`
|
|
109
|
+
|
|
110
|
+
- [Dialog] Add codemod for deprecated props (#46328) @sai6855
|
|
111
|
+
|
|
112
|
+
### Docs
|
|
113
|
+
|
|
114
|
+
- Don't forward `hasAiSuggestion` (#46415) @bharatkashyap
|
|
115
|
+
- Add introduction to MCP (#46224) @bharatkashyap
|
|
116
|
+
- Fallback for searchbar during SSR (#46364) @Janpot
|
|
117
|
+
- Update InitColorSchemeScript options to match colorSchemeSelector (#46302) @humble-barnacle001
|
|
118
|
+
- Add `ListItemButton` to make the deprecation clear (#46356) @siriwatknp
|
|
119
|
+
- Remove "Unstyled" section from component docs (#46272) @mapache-salvaje
|
|
120
|
+
- Add Testing section to Rating component doc (#46268) @0210shivam
|
|
121
|
+
- Fix fade modal demo (#46271) @brijeshb42
|
|
122
|
+
- [ai] Add suggestions to edit with MUI Chat (#46309) @bharatkashyap
|
|
123
|
+
- [Dialog] Fix form dialog uses ARIA roles on incompatible elements (#46307) @ZeeshanTamboli
|
|
124
|
+
- [Menu] Fix dark mode styling of grouped header demo (#46317) @sai6855
|
|
125
|
+
- [TextField] Removed type="number" demos (#46314) @KirankumarAmbati
|
|
126
|
+
- [examples] Add `material-ui-react-router-ts` example (#46406) @siriwatknp
|
|
127
|
+
|
|
128
|
+
### Core
|
|
129
|
+
|
|
130
|
+
- pnpm docs:sync-team (3641a0b) @oliviertassinari
|
|
131
|
+
- Add cross-env to eslint script (#46358) @ZeeshanTamboli
|
|
132
|
+
- Support merging of className and style from theme (#45975) @sai6855
|
|
133
|
+
- [code-infra] Create bundle size package (#45911) @Janpot
|
|
134
|
+
- [docs-infra] Add a script to generate Material UI `llms.txt` and docs markdown. (#46308) @siriwatknp
|
|
135
|
+
- [docs-infra] Fix stackblitz for js projects (#46220) @Janpot
|
|
136
|
+
- [infra] Add emotion as external for bundle monitor (#46372) @Janpot
|
|
137
|
+
- [infra] Create update PR on every canary publish for internal packages (#46367) @Janpot
|
|
138
|
+
- [infra] Remove deprecated esmExternals (#46365) @Janpot
|
|
139
|
+
- [infra] Support project-specific changelog in build scripts (#46425) @michaldudak
|
|
140
|
+
- [toolpad][website] Remove references to Toolpad (#46311) @prakhargupta1
|
|
141
|
+
|
|
142
|
+
All contributors of this release in alphabetical order: @0210shivam, @bharatkashyap, @brijeshb42, @dhu-redwoodtech, @DiegoAndai, @humble-barnacle001, @Janpot, @KirankumarAmbati, @mapache-salvaje, @michaldudak, @oliviertassinari, @prakhargupta1, @robbtraister, @sai6855, @scousino, @siriwatknp, @ZeeshanTamboli
|
|
143
|
+
|
|
3
144
|
## 7.1.2
|
|
4
145
|
|
|
5
146
|
_Jun 18, 2025_
|
package/Checkbox/Checkbox.js
CHANGED
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
15
14
|
var _SwitchBase = _interopRequireDefault(require("../internal/SwitchBase"));
|
|
16
15
|
var _CheckBoxOutlineBlank = _interopRequireDefault(require("../internal/svg-icons/CheckBoxOutlineBlank"));
|
|
17
16
|
var _CheckBox = _interopRequireDefault(require("../internal/svg-icons/CheckBox"));
|
|
@@ -64,7 +63,7 @@ const CheckboxRoot = (0, _zeroStyled.styled)(_SwitchBase.default, {
|
|
|
64
63
|
},
|
|
65
64
|
style: {
|
|
66
65
|
'&:hover': {
|
|
67
|
-
backgroundColor: theme.
|
|
66
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity)
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
}, ...Object.entries(theme.palette).filter((0, _createSimplePaletteValueFilter.default)()).map(([color]) => ({
|
|
@@ -74,7 +73,7 @@ const CheckboxRoot = (0, _zeroStyled.styled)(_SwitchBase.default, {
|
|
|
74
73
|
},
|
|
75
74
|
style: {
|
|
76
75
|
'&:hover': {
|
|
77
|
-
backgroundColor: theme.
|
|
76
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
})), ...Object.entries(theme.palette).filter((0, _createSimplePaletteValueFilter.default)()).map(([color]) => ({
|
package/Chip/Chip.js
CHANGED
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
15
14
|
var _Cancel = _interopRequireDefault(require("../internal/svg-icons/Cancel"));
|
|
16
15
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
17
16
|
var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
|
|
@@ -93,6 +92,7 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
93
92
|
alignItems: 'center',
|
|
94
93
|
justifyContent: 'center',
|
|
95
94
|
height: 32,
|
|
95
|
+
lineHeight: 1.5,
|
|
96
96
|
color: (theme.vars || theme).palette.text.primary,
|
|
97
97
|
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
98
98
|
borderRadius: 32 / 2,
|
|
@@ -142,12 +142,12 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
142
142
|
},
|
|
143
143
|
[`& .${_chipClasses.default.deleteIcon}`]: {
|
|
144
144
|
WebkitTapHighlightColor: 'transparent',
|
|
145
|
-
color: theme.
|
|
145
|
+
color: theme.alpha((theme.vars || theme).palette.text.primary, 0.26),
|
|
146
146
|
fontSize: 22,
|
|
147
147
|
cursor: 'pointer',
|
|
148
148
|
margin: '0 5px 0 -6px',
|
|
149
149
|
'&:hover': {
|
|
150
|
-
color: theme.
|
|
150
|
+
color: theme.alpha((theme.vars || theme).palette.text.primary, 0.4)
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
variants: [{
|
|
@@ -176,7 +176,7 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
176
176
|
backgroundColor: (theme.vars || theme).palette[color].main,
|
|
177
177
|
color: (theme.vars || theme).palette[color].contrastText,
|
|
178
178
|
[`& .${_chipClasses.default.deleteIcon}`]: {
|
|
179
|
-
color: theme.
|
|
179
|
+
color: theme.alpha((theme.vars || theme).palette[color].contrastText, 0.7),
|
|
180
180
|
'&:hover, &:active': {
|
|
181
181
|
color: (theme.vars || theme).palette[color].contrastText
|
|
182
182
|
}
|
|
@@ -203,7 +203,7 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
203
203
|
},
|
|
204
204
|
style: {
|
|
205
205
|
[`&.${_chipClasses.default.focusVisible}`]: {
|
|
206
|
-
backgroundColor: theme.vars
|
|
206
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
}, ...Object.entries(theme.palette).filter((0, _createSimplePaletteValueFilter.default)(['dark'])).map(([color]) => {
|
|
@@ -227,10 +227,10 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
227
227
|
WebkitTapHighlightColor: 'transparent',
|
|
228
228
|
cursor: 'pointer',
|
|
229
229
|
'&:hover': {
|
|
230
|
-
backgroundColor: theme.vars
|
|
230
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`)
|
|
231
231
|
},
|
|
232
232
|
[`&.${_chipClasses.default.focusVisible}`]: {
|
|
233
|
-
backgroundColor: theme.vars
|
|
233
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
234
234
|
},
|
|
235
235
|
'&:active': {
|
|
236
236
|
boxShadow: (theme.vars || theme).shadows[1]
|
|
@@ -286,15 +286,15 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
286
286
|
},
|
|
287
287
|
style: {
|
|
288
288
|
color: (theme.vars || theme).palette[color].main,
|
|
289
|
-
border: `1px solid ${theme.
|
|
289
|
+
border: `1px solid ${theme.alpha((theme.vars || theme).palette[color].main, 0.7)}`,
|
|
290
290
|
[`&.${_chipClasses.default.clickable}:hover`]: {
|
|
291
|
-
backgroundColor: theme.
|
|
291
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
292
292
|
},
|
|
293
293
|
[`&.${_chipClasses.default.focusVisible}`]: {
|
|
294
|
-
backgroundColor: theme.
|
|
294
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.focusOpacity)
|
|
295
295
|
},
|
|
296
296
|
[`& .${_chipClasses.default.deleteIcon}`]: {
|
|
297
|
-
color: theme.
|
|
297
|
+
color: theme.alpha((theme.vars || theme).palette[color].main, 0.7),
|
|
298
298
|
'&:hover, &:active': {
|
|
299
299
|
color: (theme.vars || theme).palette[color].main
|
|
300
300
|
}
|
package/Divider/Divider.js
CHANGED
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
15
14
|
var _zeroStyled = require("../zero-styled");
|
|
16
15
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
17
16
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
@@ -68,7 +67,7 @@ const DividerRoot = (0, _zeroStyled.styled)('div', {
|
|
|
68
67
|
light: true
|
|
69
68
|
},
|
|
70
69
|
style: {
|
|
71
|
-
borderColor: theme.
|
|
70
|
+
borderColor: theme.alpha((theme.vars || theme).palette.divider, 0.08)
|
|
72
71
|
}
|
|
73
72
|
}, {
|
|
74
73
|
props: {
|
|
@@ -112,7 +112,7 @@ const FilledInputRoot = (0, _zeroStyled.styled)(_InputBase2.InputBaseRoot, {
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
'&::before': {
|
|
115
|
-
borderBottom: `1px solid ${theme.vars ?
|
|
115
|
+
borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
|
|
116
116
|
left: 0,
|
|
117
117
|
bottom: 0,
|
|
118
118
|
content: '"\\00a0"',
|
package/IconButton/IconButton.js
CHANGED
|
@@ -12,7 +12,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _chainPropTypes = _interopRequireDefault(require("@mui/utils/chainPropTypes"));
|
|
14
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
16
15
|
var _utils = require("../utils");
|
|
17
16
|
var _zeroStyled = require("../zero-styled");
|
|
18
17
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
@@ -63,7 +62,7 @@ const IconButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
63
62
|
variants: [{
|
|
64
63
|
props: props => !props.disableRipple,
|
|
65
64
|
style: {
|
|
66
|
-
'--IconButton-hoverBg': theme.
|
|
65
|
+
'--IconButton-hoverBg': theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),
|
|
67
66
|
'&:hover': {
|
|
68
67
|
backgroundColor: 'var(--IconButton-hoverBg)',
|
|
69
68
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -127,7 +126,7 @@ const IconButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
127
126
|
color
|
|
128
127
|
},
|
|
129
128
|
style: {
|
|
130
|
-
'--IconButton-hoverBg': theme.
|
|
129
|
+
'--IconButton-hoverBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
131
130
|
}
|
|
132
131
|
})), {
|
|
133
132
|
props: {
|
package/Input/Input.js
CHANGED
|
@@ -53,7 +53,7 @@ const InputRoot = (0, _zeroStyled.styled)(_InputBase2.InputBaseRoot, {
|
|
|
53
53
|
const light = theme.palette.mode === 'light';
|
|
54
54
|
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
55
55
|
if (theme.vars) {
|
|
56
|
-
bottomLineColor =
|
|
56
|
+
bottomLineColor = theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline);
|
|
57
57
|
}
|
|
58
58
|
return {
|
|
59
59
|
position: 'relative',
|
package/Input/inputClasses.d.ts
CHANGED
|
@@ -21,13 +21,21 @@ export interface InputClasses {
|
|
|
21
21
|
fullWidth: string;
|
|
22
22
|
/** Styles applied to the input element. */
|
|
23
23
|
input: string;
|
|
24
|
-
/** Styles applied to the input element if `size="small"`.
|
|
24
|
+
/** Styles applied to the input element if `size="small"`.
|
|
25
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-sizeSmall](/material-ui/api/input-base/#inputbase-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
26
|
+
*/
|
|
25
27
|
inputSizeSmall: string;
|
|
26
|
-
/** Styles applied to the input element if `multiline={true}`.
|
|
28
|
+
/** Styles applied to the input element if `multiline={true}`.
|
|
29
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-multiline](/material-ui/api/input-base/#inputbase-classes-multiline) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
30
|
+
*/
|
|
27
31
|
inputMultiline: string;
|
|
28
|
-
/** Styles applied to the input element if `startAdornment` is provided.
|
|
32
|
+
/** Styles applied to the input element if `startAdornment` is provided.
|
|
33
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-adornedStart](/material-ui/api/input-base/#inputbase-classes-adornedStart) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
34
|
+
*/
|
|
29
35
|
inputAdornedStart: string;
|
|
30
|
-
/** Styles applied to the input element if `endAdornment` is provided.
|
|
36
|
+
/** Styles applied to the input element if `endAdornment` is provided.
|
|
37
|
+
* @deprecated Combine the [.MuiInputBase-input](/material-ui/api/input-base/#inputbase-classes-input) and [.MuiInputBase-adornedEnd](/material-ui/api/input-base/#inputbase-classes-adornedEnd) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
|
+
*/
|
|
31
39
|
inputAdornedEnd: string;
|
|
32
40
|
/** Styles applied to the input element if `type="search"`. */
|
|
33
41
|
inputTypeSearch: string;
|
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
15
14
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
16
15
|
var _zeroStyled = require("../zero-styled");
|
|
17
16
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
@@ -100,7 +99,7 @@ const getColorShade = (theme, color) => {
|
|
|
100
99
|
if (theme.vars) {
|
|
101
100
|
return theme.vars.palette.LinearProgress[`${color}Bg`];
|
|
102
101
|
}
|
|
103
|
-
return theme.palette.mode === 'light' ?
|
|
102
|
+
return theme.palette.mode === 'light' ? theme.lighten(theme.palette[color].main, 0.62) : theme.darken(theme.palette[color].main, 0.5);
|
|
104
103
|
};
|
|
105
104
|
const LinearProgressRoot = (0, _zeroStyled.styled)('span', {
|
|
106
105
|
name: 'MuiLinearProgress',
|