@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/Switch/Switch.js
CHANGED
|
@@ -13,7 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _refType = _interopRequireDefault(require("@mui/utils/refType"));
|
|
15
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
17
16
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
18
17
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
19
18
|
var _SwitchBase = _interopRequireDefault(require("../internal/SwitchBase"));
|
|
@@ -149,7 +148,7 @@ const SwitchSwitchBase = (0, _zeroStyled.styled)(_SwitchBase.default, {
|
|
|
149
148
|
theme
|
|
150
149
|
}) => ({
|
|
151
150
|
'&:hover': {
|
|
152
|
-
backgroundColor: theme.
|
|
151
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),
|
|
153
152
|
// Reset on touch devices, it doesn't add specificity
|
|
154
153
|
'@media (hover: none)': {
|
|
155
154
|
backgroundColor: 'transparent'
|
|
@@ -164,13 +163,13 @@ const SwitchSwitchBase = (0, _zeroStyled.styled)(_SwitchBase.default, {
|
|
|
164
163
|
[`&.${_switchClasses.default.checked}`]: {
|
|
165
164
|
color: (theme.vars || theme).palette[color].main,
|
|
166
165
|
'&:hover': {
|
|
167
|
-
backgroundColor: theme.
|
|
166
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),
|
|
168
167
|
'@media (hover: none)': {
|
|
169
168
|
backgroundColor: 'transparent'
|
|
170
169
|
}
|
|
171
170
|
},
|
|
172
171
|
[`&.${_switchClasses.default.disabled}`]: {
|
|
173
|
-
color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ?
|
|
172
|
+
color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? theme.lighten(theme.palette[color].main, 0.62) : theme.darken(theme.palette[color].main, 0.55)}`
|
|
174
173
|
}
|
|
175
174
|
},
|
|
176
175
|
[`&.${_switchClasses.default.checked} + .${_switchClasses.default.track}`]: {
|
|
@@ -282,6 +281,9 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {
|
|
|
282
281
|
...(slotProps.switchBase && {
|
|
283
282
|
root: typeof slotProps.switchBase === 'function' ? slotProps.switchBase(ownerState) : slotProps.switchBase
|
|
284
283
|
}),
|
|
284
|
+
input: {
|
|
285
|
+
role: 'switch'
|
|
286
|
+
},
|
|
285
287
|
...(slotProps.input && {
|
|
286
288
|
input: typeof slotProps.input === 'function' ? slotProps.input(ownerState) : slotProps.input
|
|
287
289
|
})
|
package/TableCell/TableCell.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 _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
16
15
|
var _TableContext = _interopRequireDefault(require("../Table/TableContext"));
|
|
17
16
|
var _Tablelvl2Context = _interopRequireDefault(require("../Table/Tablelvl2Context"));
|
|
@@ -52,7 +51,7 @@ const TableCellRoot = (0, _zeroStyled.styled)('td', {
|
|
|
52
51
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
|
53
52
|
// Removes the alpha (sets it to 1), and lightens or darkens the theme color.
|
|
54
53
|
borderBottom: theme.vars ? `1px solid ${theme.vars.palette.TableCell.border}` : `1px solid
|
|
55
|
-
${theme.palette.mode === 'light' ?
|
|
54
|
+
${theme.palette.mode === 'light' ? theme.lighten(theme.alpha(theme.palette.divider, 1), 0.88) : theme.darken(theme.alpha(theme.palette.divider, 1), 0.68)}`,
|
|
56
55
|
textAlign: 'left',
|
|
57
56
|
padding: 16,
|
|
58
57
|
variants: [{
|
package/TableRow/TableRow.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 _Tablelvl2Context = _interopRequireDefault(require("../Table/Tablelvl2Context"));
|
|
16
15
|
var _zeroStyled = require("../zero-styled");
|
|
17
16
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
@@ -52,9 +51,9 @@ const TableRowRoot = (0, _zeroStyled.styled)('tr', {
|
|
|
52
51
|
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
53
52
|
},
|
|
54
53
|
[`&.${_tableRowClasses.default.selected}`]: {
|
|
55
|
-
backgroundColor: theme.
|
|
54
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),
|
|
56
55
|
'&:hover': {
|
|
57
|
-
backgroundColor: theme.vars
|
|
56
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`)
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
})));
|
|
@@ -13,7 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _resolveProps = _interopRequireDefault(require("@mui/utils/resolveProps"));
|
|
15
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
16
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
17
16
|
var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
|
18
17
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
19
18
|
var _zeroStyled = require("../zero-styled");
|
|
@@ -63,7 +62,7 @@ const ToggleButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
63
62
|
'&:hover': {
|
|
64
63
|
textDecoration: 'none',
|
|
65
64
|
// Reset on mouse devices
|
|
66
|
-
backgroundColor: theme.
|
|
65
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),
|
|
67
66
|
'@media (hover: none)': {
|
|
68
67
|
backgroundColor: 'transparent'
|
|
69
68
|
}
|
|
@@ -75,12 +74,12 @@ const ToggleButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
75
74
|
style: {
|
|
76
75
|
[`&.${_toggleButtonClasses.default.selected}`]: {
|
|
77
76
|
color: (theme.vars || theme).palette.text.primary,
|
|
78
|
-
backgroundColor: theme.
|
|
77
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.selectedOpacity),
|
|
79
78
|
'&:hover': {
|
|
80
|
-
backgroundColor: theme.vars
|
|
79
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.text.primary, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),
|
|
81
80
|
// Reset on touch devices, it doesn't add specificity
|
|
82
81
|
'@media (hover: none)': {
|
|
83
|
-
backgroundColor: theme.
|
|
82
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.selectedOpacity)
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
}
|
|
@@ -92,12 +91,12 @@ const ToggleButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
|
|
92
91
|
style: {
|
|
93
92
|
[`&.${_toggleButtonClasses.default.selected}`]: {
|
|
94
93
|
color: (theme.vars || theme).palette[color].main,
|
|
95
|
-
backgroundColor: theme.
|
|
94
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.selectedOpacity),
|
|
96
95
|
'&:hover': {
|
|
97
|
-
backgroundColor: theme.vars
|
|
96
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),
|
|
98
97
|
// Reset on touch devices, it doesn't add specificity
|
|
99
98
|
'@media (hover: none)': {
|
|
100
|
-
backgroundColor: theme.
|
|
99
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.selectedOpacity)
|
|
101
100
|
}
|
|
102
101
|
}
|
|
103
102
|
}
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -14,7 +14,6 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
14
14
|
var _useTimeout = _interopRequireWildcard(require("@mui/utils/useTimeout"));
|
|
15
15
|
var _elementAcceptingRef = _interopRequireDefault(require("@mui/utils/elementAcceptingRef"));
|
|
16
16
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
17
|
-
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
18
17
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
19
18
|
var _isFocusVisible = _interopRequireDefault(require("@mui/utils/isFocusVisible"));
|
|
20
19
|
var _getReactElementRef = _interopRequireDefault(require("@mui/utils/getReactElementRef"));
|
|
@@ -165,7 +164,7 @@ const TooltipTooltip = (0, _zeroStyled.styled)('div', {
|
|
|
165
164
|
})((0, _memoTheme.default)(({
|
|
166
165
|
theme
|
|
167
166
|
}) => ({
|
|
168
|
-
backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg :
|
|
167
|
+
backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : theme.alpha(theme.palette.grey[700], 0.92),
|
|
169
168
|
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
170
169
|
color: (theme.vars || theme).palette.common.white,
|
|
171
170
|
fontFamily: theme.typography.fontFamily,
|
|
@@ -286,7 +285,7 @@ const TooltipArrow = (0, _zeroStyled.styled)('span', {
|
|
|
286
285
|
width: '1em',
|
|
287
286
|
height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,
|
|
288
287
|
boxSizing: 'border-box',
|
|
289
|
-
color: theme.vars ? theme.vars.palette.Tooltip.bg :
|
|
288
|
+
color: theme.vars ? theme.vars.palette.Tooltip.bg : theme.alpha(theme.palette.grey[700], 0.9),
|
|
290
289
|
'&::before': {
|
|
291
290
|
content: '""',
|
|
292
291
|
margin: 'auto',
|
|
@@ -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 & {
|
|
@@ -125,6 +125,10 @@ const AccordionHeading = styled('h3', {
|
|
|
125
125
|
})({
|
|
126
126
|
all: 'unset'
|
|
127
127
|
});
|
|
128
|
+
const AccordionRegion = styled('div', {
|
|
129
|
+
name: 'MuiAccordion',
|
|
130
|
+
slot: 'Region'
|
|
131
|
+
})({});
|
|
128
132
|
const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
|
|
129
133
|
const props = useDefaultProps({
|
|
130
134
|
props: inProps,
|
|
@@ -209,6 +213,17 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
209
213
|
externalForwardedProps,
|
|
210
214
|
ownerState
|
|
211
215
|
});
|
|
216
|
+
const [AccordionRegionSlot, accordionRegionProps] = useSlot('region', {
|
|
217
|
+
elementType: AccordionRegion,
|
|
218
|
+
externalForwardedProps,
|
|
219
|
+
ownerState,
|
|
220
|
+
className: classes.region,
|
|
221
|
+
additionalProps: {
|
|
222
|
+
'aria-labelledby': summary.props.id,
|
|
223
|
+
id: summary.props['aria-controls'],
|
|
224
|
+
role: 'region'
|
|
225
|
+
}
|
|
226
|
+
});
|
|
212
227
|
return /*#__PURE__*/_jsxs(RootSlot, {
|
|
213
228
|
...rootProps,
|
|
214
229
|
children: [/*#__PURE__*/_jsx(AccordionHeadingSlot, {
|
|
@@ -221,11 +236,8 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
|
|
|
221
236
|
in: expanded,
|
|
222
237
|
timeout: "auto",
|
|
223
238
|
...transitionProps,
|
|
224
|
-
children: /*#__PURE__*/_jsx(
|
|
225
|
-
|
|
226
|
-
id: summary.props['aria-controls'],
|
|
227
|
-
role: "region",
|
|
228
|
-
className: classes.region,
|
|
239
|
+
children: /*#__PURE__*/_jsx(AccordionRegionSlot, {
|
|
240
|
+
...accordionRegionProps,
|
|
229
241
|
children: children
|
|
230
242
|
})
|
|
231
243
|
})]
|
|
@@ -290,6 +302,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
290
302
|
*/
|
|
291
303
|
slotProps: PropTypes.shape({
|
|
292
304
|
heading: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
305
|
+
region: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
293
306
|
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
294
307
|
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
295
308
|
}),
|
|
@@ -299,6 +312,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
299
312
|
*/
|
|
300
313
|
slots: PropTypes.shape({
|
|
301
314
|
heading: PropTypes.elementType,
|
|
315
|
+
region: PropTypes.elementType,
|
|
302
316
|
root: PropTypes.elementType,
|
|
303
317
|
transition: PropTypes.elementType
|
|
304
318
|
}),
|
package/esm/Alert/Alert.js
CHANGED
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { darken, lighten } from '@mui/system/colorManipulator';
|
|
8
7
|
import { styled } from "../zero-styled/index.js";
|
|
9
8
|
import memoTheme from "../utils/memoTheme.js";
|
|
10
9
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
@@ -47,8 +46,8 @@ const AlertRoot = styled(Paper, {
|
|
|
47
46
|
})(memoTheme(({
|
|
48
47
|
theme
|
|
49
48
|
}) => {
|
|
50
|
-
const getColor = theme.palette.mode === 'light' ? darken : lighten;
|
|
51
|
-
const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;
|
|
49
|
+
const getColor = theme.palette.mode === 'light' ? theme.darken : theme.lighten;
|
|
50
|
+
const getBackgroundColor = theme.palette.mode === 'light' ? theme.lighten : theme.darken;
|
|
52
51
|
return {
|
|
53
52
|
...theme.typography.body2,
|
|
54
53
|
backgroundColor: 'transparent',
|
|
@@ -7,7 +7,6 @@ import clsx from 'clsx';
|
|
|
7
7
|
import integerPropType from '@mui/utils/integerPropType';
|
|
8
8
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
11
10
|
import useAutocomplete, { createFilterOptions } from "../useAutocomplete/index.js";
|
|
12
11
|
import Popper from "../Popper/index.js";
|
|
13
12
|
import ListSubheader from "../ListSubheader/index.js";
|
|
@@ -362,16 +361,16 @@ const AutocompleteListbox = styled('ul', {
|
|
|
362
361
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
363
362
|
},
|
|
364
363
|
'&[aria-selected="true"]': {
|
|
365
|
-
backgroundColor: theme.
|
|
364
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),
|
|
366
365
|
[`&.${autocompleteClasses.focused}`]: {
|
|
367
|
-
backgroundColor: theme.vars
|
|
366
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),
|
|
368
367
|
// Reset on touch devices, it doesn't add specificity
|
|
369
368
|
'@media (hover: none)': {
|
|
370
369
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
371
370
|
}
|
|
372
371
|
},
|
|
373
372
|
[`&.${autocompleteClasses.focusVisible}`]: {
|
|
374
|
-
backgroundColor: theme.vars
|
|
373
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
375
374
|
}
|
|
376
375
|
}
|
|
377
376
|
}
|
|
@@ -912,6 +911,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
912
911
|
* Used to determine the disabled state for a given option.
|
|
913
912
|
*
|
|
914
913
|
* @param {Value} option The option to test.
|
|
914
|
+
* @template Value The option shape. Will be the same shape as an item of the options.
|
|
915
915
|
* @returns {boolean}
|
|
916
916
|
*/
|
|
917
917
|
getOptionDisabled: PropTypes.func,
|
package/esm/Backdrop/Backdrop.js
CHANGED
|
@@ -8,7 +8,9 @@ import memoTheme from "../utils/memoTheme.js";
|
|
|
8
8
|
import MoreHorizIcon from "../internal/svg-icons/MoreHoriz.js";
|
|
9
9
|
import ButtonBase from "../ButtonBase/index.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const BreadcrumbCollapsedButton = styled(ButtonBase
|
|
11
|
+
const BreadcrumbCollapsedButton = styled(ButtonBase, {
|
|
12
|
+
name: 'MuiBreadcrumbCollapsed'
|
|
13
|
+
})(memoTheme(({
|
|
12
14
|
theme
|
|
13
15
|
}) => ({
|
|
14
16
|
display: 'flex',
|
package/esm/Button/Button.js
CHANGED
|
@@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import resolveProps from '@mui/utils/resolveProps';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
9
8
|
import { unstable_useId as useId } from "../utils/index.js";
|
|
10
9
|
import rootShouldForwardProp from "../styles/rootShouldForwardProp.js";
|
|
11
10
|
import { styled } from "../zero-styled/index.js";
|
|
@@ -159,15 +158,15 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
159
158
|
style: {
|
|
160
159
|
'--variant-textColor': (theme.vars || theme).palette[color].main,
|
|
161
160
|
'--variant-outlinedColor': (theme.vars || theme).palette[color].main,
|
|
162
|
-
'--variant-outlinedBorder': theme.
|
|
161
|
+
'--variant-outlinedBorder': theme.alpha((theme.vars || theme).palette[color].main, 0.5),
|
|
163
162
|
'--variant-containedColor': (theme.vars || theme).palette[color].contrastText,
|
|
164
163
|
'--variant-containedBg': (theme.vars || theme).palette[color].main,
|
|
165
164
|
'@media (hover: hover)': {
|
|
166
165
|
'&:hover': {
|
|
167
166
|
'--variant-containedBg': (theme.vars || theme).palette[color].dark,
|
|
168
|
-
'--variant-textBg': theme.
|
|
167
|
+
'--variant-textBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),
|
|
169
168
|
'--variant-outlinedBorder': (theme.vars || theme).palette[color].main,
|
|
170
|
-
'--variant-outlinedBg': theme.
|
|
169
|
+
'--variant-outlinedBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
}
|
|
@@ -182,8 +181,8 @@ const ButtonRoot = styled(ButtonBase, {
|
|
|
182
181
|
'@media (hover: hover)': {
|
|
183
182
|
'&:hover': {
|
|
184
183
|
'--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
|
185
|
-
'--variant-textBg': theme.
|
|
186
|
-
'--variant-outlinedBg': theme.
|
|
184
|
+
'--variant-textBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),
|
|
185
|
+
'--variant-outlinedBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
188
|
}
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
8
7
|
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
|
9
8
|
import capitalize from "../utils/capitalize.js";
|
|
10
9
|
import { styled } from "../zero-styled/index.js";
|
|
@@ -122,7 +121,7 @@ const ButtonGroupRoot = styled('div', {
|
|
|
122
121
|
},
|
|
123
122
|
style: {
|
|
124
123
|
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
125
|
-
borderRight: theme.vars ? `1px solid
|
|
124
|
+
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)'}`,
|
|
126
125
|
[`&.${buttonGroupClasses.disabled}`]: {
|
|
127
126
|
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
128
127
|
}
|
|
@@ -135,7 +134,7 @@ const ButtonGroupRoot = styled('div', {
|
|
|
135
134
|
},
|
|
136
135
|
style: {
|
|
137
136
|
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
138
|
-
borderBottom: theme.vars ? `1px solid
|
|
137
|
+
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)'}`,
|
|
139
138
|
[`&.${buttonGroupClasses.disabled}`]: {
|
|
140
139
|
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
141
140
|
}
|
|
@@ -148,7 +147,7 @@ const ButtonGroupRoot = styled('div', {
|
|
|
148
147
|
},
|
|
149
148
|
style: {
|
|
150
149
|
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: {
|
|
151
|
-
borderColor: theme.
|
|
150
|
+
borderColor: theme.alpha((theme.vars || theme).palette[color].main, 0.5)
|
|
152
151
|
}
|
|
153
152
|
}
|
|
154
153
|
}]), {
|
package/esm/Checkbox/Checkbox.js
CHANGED
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
8
7
|
import SwitchBase from "../internal/SwitchBase.js";
|
|
9
8
|
import CheckBoxOutlineBlankIcon from "../internal/svg-icons/CheckBoxOutlineBlank.js";
|
|
10
9
|
import CheckBoxIcon from "../internal/svg-icons/CheckBox.js";
|
|
@@ -57,7 +56,7 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
57
56
|
},
|
|
58
57
|
style: {
|
|
59
58
|
'&:hover': {
|
|
60
|
-
backgroundColor: theme.
|
|
59
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity)
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
|
@@ -67,7 +66,7 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
67
66
|
},
|
|
68
67
|
style: {
|
|
69
68
|
'&:hover': {
|
|
70
|
-
backgroundColor: theme.
|
|
69
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({
|
package/esm/Chip/Chip.js
CHANGED
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
8
7
|
import CancelIcon from "../internal/svg-icons/Cancel.js";
|
|
9
8
|
import useForkRef from "../utils/useForkRef.js";
|
|
10
9
|
import unsupportedProp from "../utils/unsupportedProp.js";
|
|
@@ -86,6 +85,7 @@ const ChipRoot = styled('div', {
|
|
|
86
85
|
alignItems: 'center',
|
|
87
86
|
justifyContent: 'center',
|
|
88
87
|
height: 32,
|
|
88
|
+
lineHeight: 1.5,
|
|
89
89
|
color: (theme.vars || theme).palette.text.primary,
|
|
90
90
|
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
91
91
|
borderRadius: 32 / 2,
|
|
@@ -135,12 +135,12 @@ const ChipRoot = styled('div', {
|
|
|
135
135
|
},
|
|
136
136
|
[`& .${chipClasses.deleteIcon}`]: {
|
|
137
137
|
WebkitTapHighlightColor: 'transparent',
|
|
138
|
-
color: theme.
|
|
138
|
+
color: theme.alpha((theme.vars || theme).palette.text.primary, 0.26),
|
|
139
139
|
fontSize: 22,
|
|
140
140
|
cursor: 'pointer',
|
|
141
141
|
margin: '0 5px 0 -6px',
|
|
142
142
|
'&:hover': {
|
|
143
|
-
color: theme.
|
|
143
|
+
color: theme.alpha((theme.vars || theme).palette.text.primary, 0.4)
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
variants: [{
|
|
@@ -169,7 +169,7 @@ const ChipRoot = styled('div', {
|
|
|
169
169
|
backgroundColor: (theme.vars || theme).palette[color].main,
|
|
170
170
|
color: (theme.vars || theme).palette[color].contrastText,
|
|
171
171
|
[`& .${chipClasses.deleteIcon}`]: {
|
|
172
|
-
color: theme.
|
|
172
|
+
color: theme.alpha((theme.vars || theme).palette[color].contrastText, 0.7),
|
|
173
173
|
'&:hover, &:active': {
|
|
174
174
|
color: (theme.vars || theme).palette[color].contrastText
|
|
175
175
|
}
|
|
@@ -196,7 +196,7 @@ const ChipRoot = styled('div', {
|
|
|
196
196
|
},
|
|
197
197
|
style: {
|
|
198
198
|
[`&.${chipClasses.focusVisible}`]: {
|
|
199
|
-
backgroundColor: theme.vars
|
|
199
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['dark'])).map(([color]) => {
|
|
@@ -220,10 +220,10 @@ const ChipRoot = styled('div', {
|
|
|
220
220
|
WebkitTapHighlightColor: 'transparent',
|
|
221
221
|
cursor: 'pointer',
|
|
222
222
|
'&:hover': {
|
|
223
|
-
backgroundColor: theme.vars
|
|
223
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`)
|
|
224
224
|
},
|
|
225
225
|
[`&.${chipClasses.focusVisible}`]: {
|
|
226
|
-
backgroundColor: theme.vars
|
|
226
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette.action.selected, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)
|
|
227
227
|
},
|
|
228
228
|
'&:active': {
|
|
229
229
|
boxShadow: (theme.vars || theme).shadows[1]
|
|
@@ -279,15 +279,15 @@ const ChipRoot = styled('div', {
|
|
|
279
279
|
},
|
|
280
280
|
style: {
|
|
281
281
|
color: (theme.vars || theme).palette[color].main,
|
|
282
|
-
border: `1px solid ${theme.
|
|
282
|
+
border: `1px solid ${theme.alpha((theme.vars || theme).palette[color].main, 0.7)}`,
|
|
283
283
|
[`&.${chipClasses.clickable}:hover`]: {
|
|
284
|
-
backgroundColor: theme.
|
|
284
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
285
285
|
},
|
|
286
286
|
[`&.${chipClasses.focusVisible}`]: {
|
|
287
|
-
backgroundColor: theme.
|
|
287
|
+
backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.focusOpacity)
|
|
288
288
|
},
|
|
289
289
|
[`& .${chipClasses.deleteIcon}`]: {
|
|
290
|
-
color: theme.
|
|
290
|
+
color: theme.alpha((theme.vars || theme).palette[color].main, 0.7),
|
|
291
291
|
'&:hover, &:active': {
|
|
292
292
|
color: (theme.vars || theme).palette[color].main
|
|
293
293
|
}
|
package/esm/Divider/Divider.js
CHANGED
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
8
7
|
import { styled } from "../zero-styled/index.js";
|
|
9
8
|
import memoTheme from "../utils/memoTheme.js";
|
|
10
9
|
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
|
@@ -61,7 +60,7 @@ const DividerRoot = styled('div', {
|
|
|
61
60
|
light: true
|
|
62
61
|
},
|
|
63
62
|
style: {
|
|
64
|
-
borderColor: theme.
|
|
63
|
+
borderColor: theme.alpha((theme.vars || theme).palette.divider, 0.08)
|
|
65
64
|
}
|
|
66
65
|
}, {
|
|
67
66
|
props: {
|
|
@@ -105,7 +105,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
'&::before': {
|
|
108
|
-
borderBottom: `1px solid ${theme.vars ?
|
|
108
|
+
borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
|
|
109
109
|
left: 0,
|
|
110
110
|
bottom: 0,
|
|
111
111
|
content: '"\\00a0"',
|
|
@@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import chainPropTypes from '@mui/utils/chainPropTypes';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
|
-
import { alpha } from '@mui/system/colorManipulator';
|
|
9
8
|
import { unstable_useId as useId } from "../utils/index.js";
|
|
10
9
|
import { styled } from "../zero-styled/index.js";
|
|
11
10
|
import memoTheme from "../utils/memoTheme.js";
|
|
@@ -56,7 +55,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
56
55
|
variants: [{
|
|
57
56
|
props: props => !props.disableRipple,
|
|
58
57
|
style: {
|
|
59
|
-
'--IconButton-hoverBg': theme.
|
|
58
|
+
'--IconButton-hoverBg': theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),
|
|
60
59
|
'&:hover': {
|
|
61
60
|
backgroundColor: 'var(--IconButton-hoverBg)',
|
|
62
61
|
// Reset on touch devices, it doesn't add specificity
|
|
@@ -120,7 +119,7 @@ const IconButtonRoot = styled(ButtonBase, {
|
|
|
120
119
|
color
|
|
121
120
|
},
|
|
122
121
|
style: {
|
|
123
|
-
'--IconButton-hoverBg': theme.
|
|
122
|
+
'--IconButton-hoverBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)
|
|
124
123
|
}
|
|
125
124
|
})), {
|
|
126
125
|
props: {
|
package/esm/Input/Input.js
CHANGED
|
@@ -46,7 +46,7 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
46
46
|
const light = theme.palette.mode === 'light';
|
|
47
47
|
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
48
48
|
if (theme.vars) {
|
|
49
|
-
bottomLineColor =
|
|
49
|
+
bottomLineColor = theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline);
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
position: 'relative',
|
|
@@ -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;
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
7
|
-
import { darken, lighten } from '@mui/system/colorManipulator';
|
|
8
7
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
9
8
|
import { keyframes, css, styled } from "../zero-styled/index.js";
|
|
10
9
|
import memoTheme from "../utils/memoTheme.js";
|
|
@@ -93,7 +92,7 @@ const getColorShade = (theme, color) => {
|
|
|
93
92
|
if (theme.vars) {
|
|
94
93
|
return theme.vars.palette.LinearProgress[`${color}Bg`];
|
|
95
94
|
}
|
|
96
|
-
return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
|
|
95
|
+
return theme.palette.mode === 'light' ? theme.lighten(theme.palette[color].main, 0.62) : theme.darken(theme.palette[color].main, 0.5);
|
|
97
96
|
};
|
|
98
97
|
const LinearProgressRoot = styled('span', {
|
|
99
98
|
name: 'MuiLinearProgress',
|