@mui/material 5.14.12 → 5.14.13
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/Alert/Alert.d.ts +1 -1
- package/Alert/Alert.js +1 -1
- package/AppBar/AppBar.d.ts +1 -1
- package/AppBar/AppBar.js +1 -1
- package/Badge/Badge.d.ts +1 -1
- package/Badge/Badge.js +1 -1
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +1 -1
- package/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/ButtonGroup/ButtonGroup.js +1 -1
- package/CHANGELOG.md +66 -0
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.js +2 -2
- package/Chip/Chip.d.ts +1 -1
- package/Chip/Chip.js +7 -1
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Fab/Fab.d.ts +1 -1
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.js +1 -1
- package/FormControl/FormControl.d.ts +1 -1
- package/FormControl/FormControl.js +1 -1
- package/FormLabel/FormLabel.d.ts +1 -1
- package/FormLabel/FormLabel.js +1 -1
- package/Icon/Icon.d.ts +1 -1
- package/Icon/Icon.js +1 -1
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/IconButton.js +1 -1
- package/Input/Input.js +1 -1
- package/InputBase/InputBase.d.ts +1 -1
- package/InputBase/InputBase.js +1 -1
- package/InputLabel/InputLabel.js +1 -1
- package/LinearProgress/LinearProgress.d.ts +1 -1
- package/LinearProgress/LinearProgress.js +1 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/Pagination/Pagination.d.ts +1 -1
- package/Pagination/Pagination.js +1 -1
- package/PaginationItem/PaginationItem.d.ts +1 -1
- package/PaginationItem/PaginationItem.js +3 -3
- package/Radio/Radio.d.ts +1 -1
- package/Radio/Radio.js +1 -1
- package/Slider/Slider.d.ts +5 -2
- package/Slider/Slider.js +2 -2
- package/Slider/sliderClasses.d.ts +16 -0
- package/Slider/sliderClasses.js +1 -1
- package/SvgIcon/SvgIcon.d.ts +1 -1
- package/SvgIcon/SvgIcon.js +1 -1
- package/Switch/Switch.d.ts +1 -1
- package/Switch/Switch.js +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/TextField/TextField.js +1 -1
- package/ToggleButton/ToggleButton.d.ts +1 -1
- package/ToggleButton/ToggleButton.js +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/index.js +1 -1
- package/legacy/Alert/Alert.js +1 -1
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/Button/Button.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +1 -1
- package/legacy/Checkbox/Checkbox.js +2 -2
- package/legacy/Chip/Chip.js +7 -1
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/Fab/Fab.js +1 -1
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/FormControl/FormControl.js +1 -1
- package/legacy/FormLabel/FormLabel.js +1 -1
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/IconButton/IconButton.js +1 -1
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/InputLabel/InputLabel.js +1 -1
- package/legacy/LinearProgress/LinearProgress.js +1 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Pagination/Pagination.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +3 -3
- package/legacy/Radio/Radio.js +1 -1
- package/legacy/Slider/Slider.js +2 -2
- package/legacy/Slider/sliderClasses.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -1
- package/legacy/Switch/Switch.js +1 -1
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +1 -1
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/Alert/Alert.js +1 -1
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Badge/Badge.js +1 -1
- package/modern/Button/Button.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +1 -1
- package/modern/Checkbox/Checkbox.js +2 -2
- package/modern/Chip/Chip.js +7 -1
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControl/FormControl.js +1 -1
- package/modern/FormLabel/FormLabel.js +1 -1
- package/modern/Icon/Icon.js +1 -1
- package/modern/IconButton/IconButton.js +1 -1
- package/modern/Input/Input.js +1 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/InputLabel/InputLabel.js +1 -1
- package/modern/LinearProgress/LinearProgress.js +1 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Pagination/Pagination.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +3 -3
- package/modern/Radio/Radio.js +1 -1
- package/modern/Slider/Slider.js +2 -2
- package/modern/Slider/sliderClasses.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -1
- package/modern/Switch/Switch.js +1 -1
- package/modern/TextField/TextField.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +1 -1
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/index.js +1 -1
- package/node/Alert/Alert.js +1 -1
- package/node/AppBar/AppBar.js +1 -1
- package/node/Badge/Badge.js +1 -1
- package/node/Button/Button.js +1 -1
- package/node/ButtonGroup/ButtonGroup.js +1 -1
- package/node/Checkbox/Checkbox.js +2 -2
- package/node/Chip/Chip.js +7 -1
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/Fab/Fab.js +1 -1
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/FormControl/FormControl.js +1 -1
- package/node/FormLabel/FormLabel.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/IconButton/IconButton.js +1 -1
- package/node/Input/Input.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/InputLabel/InputLabel.js +1 -1
- package/node/LinearProgress/LinearProgress.js +1 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Pagination/Pagination.js +1 -1
- package/node/PaginationItem/PaginationItem.js +3 -3
- package/node/Radio/Radio.js +1 -1
- package/node/Slider/Slider.js +2 -2
- package/node/Slider/sliderClasses.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/Switch/Switch.js +1 -1
- package/node/TextField/TextField.js +1 -1
- package/node/ToggleButton/ToggleButton.js +1 -1
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/index.js +1 -1
- package/package.json +7 -7
- package/styles/components.d.ts +1 -0
- package/styles/overrides.d.ts +2 -0
- package/umd/material-ui.development.js +47 -34
- package/umd/material-ui.production.min.js +4 -4
|
@@ -250,7 +250,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
250
250
|
/**
|
|
251
251
|
* The color of the component.
|
|
252
252
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
253
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
253
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
254
254
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
255
255
|
*/
|
|
256
256
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
@@ -227,7 +227,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes /* remove-proptype
|
|
|
227
227
|
/**
|
|
228
228
|
* The color of the component.
|
|
229
229
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
230
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
230
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
231
231
|
* @default 'primary'
|
|
232
232
|
*/
|
|
233
233
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -129,7 +129,7 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes /* remove-proptypes
|
|
|
129
129
|
/**
|
|
130
130
|
* The color of the component.
|
|
131
131
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
132
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
132
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
133
133
|
*/
|
|
134
134
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
135
135
|
/**
|
package/modern/Icon/Icon.js
CHANGED
|
@@ -123,7 +123,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
|
|
|
123
123
|
/**
|
|
124
124
|
* The color of the component.
|
|
125
125
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
126
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
126
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
127
127
|
* @default 'inherit'
|
|
128
128
|
*/
|
|
129
129
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -160,7 +160,7 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
|
|
|
160
160
|
/**
|
|
161
161
|
* The color of the component.
|
|
162
162
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
163
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
163
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
164
164
|
* @default 'default'
|
|
165
165
|
*/
|
|
166
166
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/modern/Input/Input.js
CHANGED
|
@@ -174,7 +174,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
174
174
|
/**
|
|
175
175
|
* The color of the component.
|
|
176
176
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
177
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
177
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
178
178
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
179
179
|
*/
|
|
180
180
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
@@ -505,7 +505,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
|
505
505
|
/**
|
|
506
506
|
* The color of the component.
|
|
507
507
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
508
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
508
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
509
509
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
510
510
|
*/
|
|
511
511
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -165,7 +165,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
|
|
|
165
165
|
/**
|
|
166
166
|
* The color of the component.
|
|
167
167
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
168
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
168
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
169
169
|
*/
|
|
170
170
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
171
171
|
/**
|
|
@@ -315,7 +315,7 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-propt
|
|
|
315
315
|
/**
|
|
316
316
|
* The color of the component.
|
|
317
317
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
318
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
318
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
319
319
|
* @default 'primary'
|
|
320
320
|
*/
|
|
321
321
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
|
|
@@ -202,7 +202,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
202
202
|
/**
|
|
203
203
|
* The color of the component.
|
|
204
204
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
205
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
205
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
206
206
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
207
207
|
*/
|
|
208
208
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
@@ -145,7 +145,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
145
145
|
/**
|
|
146
146
|
* The active color.
|
|
147
147
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
148
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
148
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
149
149
|
* @default 'standard'
|
|
150
150
|
*/
|
|
151
151
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
|
|
@@ -116,14 +116,14 @@ const PaginationItemPage = styled(ButtonBase, {
|
|
|
116
116
|
[`&.${paginationItemClasses.selected}`]: {
|
|
117
117
|
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
118
118
|
'&:hover': {
|
|
119
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.
|
|
119
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
120
120
|
// Reset on touch devices, it doesn't add specificity
|
|
121
121
|
'@media (hover: none)': {
|
|
122
122
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
[`&.${paginationItemClasses.focusVisible}`]: {
|
|
126
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.
|
|
126
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
127
127
|
},
|
|
128
128
|
[`&.${paginationItemClasses.disabled}`]: {
|
|
129
129
|
opacity: 1,
|
|
@@ -287,7 +287,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
|
|
|
287
287
|
/**
|
|
288
288
|
* The active color.
|
|
289
289
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
290
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
290
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
291
291
|
* @default 'standard'
|
|
292
292
|
*/
|
|
293
293
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
|
package/modern/Radio/Radio.js
CHANGED
|
@@ -148,7 +148,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
148
148
|
/**
|
|
149
149
|
* The color of the component.
|
|
150
150
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
151
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
151
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
152
152
|
* @default 'primary'
|
|
153
153
|
*/
|
|
154
154
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -622,10 +622,10 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
622
622
|
/**
|
|
623
623
|
* The color of the component.
|
|
624
624
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
625
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
625
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
626
626
|
* @default 'primary'
|
|
627
627
|
*/
|
|
628
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
628
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
629
629
|
/**
|
|
630
630
|
* The components used for each slot inside.
|
|
631
631
|
*
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getSliderUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiSlider', slot);
|
|
5
5
|
}
|
|
6
|
-
const sliderClasses = generateUtilityClasses('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
|
|
6
|
+
const sliderClasses = generateUtilityClasses('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'thumbColorError', 'thumbColorSuccess', 'thumbColorInfo', 'thumbColorWarning', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
|
|
7
7
|
export default sliderClasses;
|
|
@@ -128,7 +128,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
|
128
128
|
/**
|
|
129
129
|
* The color of the component.
|
|
130
130
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
131
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
131
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
132
132
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
133
133
|
* @default 'inherit'
|
|
134
134
|
*/
|
package/modern/Switch/Switch.js
CHANGED
|
@@ -246,7 +246,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
246
246
|
/**
|
|
247
247
|
* The color of the component.
|
|
248
248
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
249
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
249
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
250
250
|
* @default 'primary'
|
|
251
251
|
*/
|
|
252
252
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
230
230
|
/**
|
|
231
231
|
* The color of the component.
|
|
232
232
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
233
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
233
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
234
234
|
* @default 'primary'
|
|
235
235
|
*/
|
|
236
236
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -159,7 +159,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes /* remove-proptyp
|
|
|
159
159
|
/**
|
|
160
160
|
* The color of the button when it is in an active state.
|
|
161
161
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
162
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
162
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
163
163
|
* @default 'standard'
|
|
164
164
|
*/
|
|
165
165
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -175,7 +175,7 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes /* remove-pr
|
|
|
175
175
|
/**
|
|
176
176
|
* The color of the button when it is selected.
|
|
177
177
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
178
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
178
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
179
179
|
* @default 'standard'
|
|
180
180
|
*/
|
|
181
181
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/modern/index.js
CHANGED
package/node/Alert/Alert.js
CHANGED
|
@@ -235,7 +235,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
|
|
|
235
235
|
/**
|
|
236
236
|
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
237
237
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
238
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
238
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
239
239
|
*/
|
|
240
240
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
241
241
|
/**
|
package/node/AppBar/AppBar.js
CHANGED
|
@@ -162,7 +162,7 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
|
|
|
162
162
|
/**
|
|
163
163
|
* The color of the component.
|
|
164
164
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
165
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
165
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
166
166
|
* @default 'primary'
|
|
167
167
|
*/
|
|
168
168
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), _propTypes.default.string]),
|
package/node/Badge/Badge.js
CHANGED
|
@@ -293,7 +293,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
293
293
|
/**
|
|
294
294
|
* The color of the component.
|
|
295
295
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
296
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
296
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
297
297
|
* @default 'default'
|
|
298
298
|
*/
|
|
299
299
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
package/node/Button/Button.js
CHANGED
|
@@ -309,7 +309,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
|
309
309
|
/**
|
|
310
310
|
* The color of the component.
|
|
311
311
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
312
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
312
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
313
313
|
* @default 'primary'
|
|
314
314
|
*/
|
|
315
315
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), _propTypes.default.string]),
|
|
@@ -243,7 +243,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes /* remove-proptype
|
|
|
243
243
|
/**
|
|
244
244
|
* The color of the component.
|
|
245
245
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
246
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
246
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
247
247
|
* @default 'primary'
|
|
248
248
|
*/
|
|
249
249
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -56,7 +56,7 @@ const CheckboxRoot = (0, _styled.default)(_SwitchBase.default, {
|
|
|
56
56
|
color: (theme.vars || theme).palette.text.secondary
|
|
57
57
|
}, !ownerState.disableRipple && {
|
|
58
58
|
'&:hover': {
|
|
59
|
-
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.
|
|
59
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
60
60
|
// Reset on touch devices, it doesn't add specificity
|
|
61
61
|
'@media (hover: none)': {
|
|
62
62
|
backgroundColor: 'transparent'
|
|
@@ -141,7 +141,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
141
141
|
/**
|
|
142
142
|
* The color of the component.
|
|
143
143
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
144
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
144
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
145
145
|
* @default 'primary'
|
|
146
146
|
*/
|
|
147
147
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
package/node/Chip/Chip.js
CHANGED
|
@@ -269,9 +269,15 @@ const ChipLabel = (0, _styled.default)('span', {
|
|
|
269
269
|
paddingLeft: 12,
|
|
270
270
|
paddingRight: 12,
|
|
271
271
|
whiteSpace: 'nowrap'
|
|
272
|
+
}, ownerState.variant === 'outlined' && {
|
|
273
|
+
paddingLeft: 11,
|
|
274
|
+
paddingRight: 11
|
|
272
275
|
}, ownerState.size === 'small' && {
|
|
273
276
|
paddingLeft: 8,
|
|
274
277
|
paddingRight: 8
|
|
278
|
+
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
|
279
|
+
paddingLeft: 7,
|
|
280
|
+
paddingRight: 7
|
|
275
281
|
}));
|
|
276
282
|
function isDeleteKeyboardEvent(keyboardEvent) {
|
|
277
283
|
return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
|
|
@@ -436,7 +442,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
|
|
|
436
442
|
/**
|
|
437
443
|
* The color of the component.
|
|
438
444
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
439
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
445
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
440
446
|
* @default 'default'
|
|
441
447
|
*/
|
|
442
448
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -204,7 +204,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
204
204
|
/**
|
|
205
205
|
* The color of the component.
|
|
206
206
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
207
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
207
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
208
208
|
* @default 'primary'
|
|
209
209
|
*/
|
|
210
210
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
package/node/Fab/Fab.js
CHANGED
|
@@ -186,7 +186,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
|
|
|
186
186
|
/**
|
|
187
187
|
* The color of the component.
|
|
188
188
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
189
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
189
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
190
190
|
* @default 'default'
|
|
191
191
|
*/
|
|
192
192
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -260,7 +260,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
260
260
|
/**
|
|
261
261
|
* The color of the component.
|
|
262
262
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
263
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
263
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
264
264
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
265
265
|
*/
|
|
266
266
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
@@ -235,7 +235,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes /* remove-proptype
|
|
|
235
235
|
/**
|
|
236
236
|
* The color of the component.
|
|
237
237
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
238
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
238
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
239
239
|
* @default 'primary'
|
|
240
240
|
*/
|
|
241
241
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -137,7 +137,7 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes /* remove-proptypes
|
|
|
137
137
|
/**
|
|
138
138
|
* The color of the component.
|
|
139
139
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
140
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
140
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
141
141
|
*/
|
|
142
142
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
|
|
143
143
|
/**
|
package/node/Icon/Icon.js
CHANGED
|
@@ -131,7 +131,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
|
|
|
131
131
|
/**
|
|
132
132
|
* The color of the component.
|
|
133
133
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
134
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
134
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
135
135
|
* @default 'inherit'
|
|
136
136
|
*/
|
|
137
137
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
|
|
|
169
169
|
/**
|
|
170
170
|
* The color of the component.
|
|
171
171
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
172
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
172
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
173
173
|
* @default 'default'
|
|
174
174
|
*/
|
|
175
175
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
package/node/Input/Input.js
CHANGED
|
@@ -183,7 +183,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
183
183
|
/**
|
|
184
184
|
* The color of the component.
|
|
185
185
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
186
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
186
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
187
187
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
188
188
|
*/
|
|
189
189
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
@@ -514,7 +514,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
|
514
514
|
/**
|
|
515
515
|
* The color of the component.
|
|
516
516
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
517
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
517
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
518
518
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
519
519
|
*/
|
|
520
520
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -173,7 +173,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
|
|
|
173
173
|
/**
|
|
174
174
|
* The color of the component.
|
|
175
175
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
176
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
176
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
177
177
|
*/
|
|
178
178
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
|
|
179
179
|
/**
|
|
@@ -322,7 +322,7 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-propt
|
|
|
322
322
|
/**
|
|
323
323
|
* The color of the component.
|
|
324
324
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
325
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
325
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
326
326
|
* @default 'primary'
|
|
327
327
|
*/
|
|
328
328
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary']), _propTypes.default.string]),
|
|
@@ -209,7 +209,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
209
209
|
/**
|
|
210
210
|
* The color of the component.
|
|
211
211
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
212
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
212
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
213
213
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
214
214
|
*/
|
|
215
215
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
@@ -153,7 +153,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
153
153
|
/**
|
|
154
154
|
* The active color.
|
|
155
155
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
156
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
156
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
157
157
|
* @default 'standard'
|
|
158
158
|
*/
|
|
159
159
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'standard']), _propTypes.default.string]),
|
|
@@ -123,14 +123,14 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
|
|
|
123
123
|
[`&.${_paginationItemClasses.default.selected}`]: {
|
|
124
124
|
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
125
125
|
'&:hover': {
|
|
126
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.
|
|
126
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
127
127
|
// Reset on touch devices, it doesn't add specificity
|
|
128
128
|
'@media (hover: none)': {
|
|
129
129
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
[`&.${_paginationItemClasses.default.focusVisible}`]: {
|
|
133
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.
|
|
133
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
134
134
|
},
|
|
135
135
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
136
136
|
opacity: 1,
|
|
@@ -294,7 +294,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
|
|
|
294
294
|
/**
|
|
295
295
|
* The active color.
|
|
296
296
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
297
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
297
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
298
298
|
* @default 'standard'
|
|
299
299
|
*/
|
|
300
300
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'standard']), _propTypes.default.string]),
|
package/node/Radio/Radio.js
CHANGED
|
@@ -157,7 +157,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
157
157
|
/**
|
|
158
158
|
* The color of the component.
|
|
159
159
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
160
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
160
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
161
161
|
* @default 'primary'
|
|
162
162
|
*/
|
|
163
163
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
package/node/Slider/Slider.js
CHANGED
|
@@ -630,10 +630,10 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
630
630
|
/**
|
|
631
631
|
* The color of the component.
|
|
632
632
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
633
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
633
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
634
634
|
* @default 'primary'
|
|
635
635
|
*/
|
|
636
|
-
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
636
|
+
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
637
637
|
/**
|
|
638
638
|
* The components used for each slot inside.
|
|
639
639
|
*
|
|
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("../generateUtilityCl
|
|
|
11
11
|
function getSliderUtilityClass(slot) {
|
|
12
12
|
return (0, _generateUtilityClass.default)('MuiSlider', slot);
|
|
13
13
|
}
|
|
14
|
-
const sliderClasses = (0, _utils.unstable_generateUtilityClasses)('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
|
|
14
|
+
const sliderClasses = (0, _utils.unstable_generateUtilityClasses)('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'thumbColorError', 'thumbColorSuccess', 'thumbColorInfo', 'thumbColorWarning', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
|
|
15
15
|
var _default = exports.default = sliderClasses;
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -138,7 +138,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
|
|
|
138
138
|
/**
|
|
139
139
|
* The color of the component.
|
|
140
140
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
141
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
141
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
142
142
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
143
143
|
* @default 'inherit'
|
|
144
144
|
*/
|
package/node/Switch/Switch.js
CHANGED
|
@@ -253,7 +253,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
253
253
|
/**
|
|
254
254
|
* The color of the component.
|
|
255
255
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
256
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
256
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
257
257
|
* @default 'primary'
|
|
258
258
|
*/
|
|
259
259
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -237,7 +237,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
237
237
|
/**
|
|
238
238
|
* The color of the component.
|
|
239
239
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
240
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
240
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
241
241
|
* @default 'primary'
|
|
242
242
|
*/
|
|
243
243
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
|
@@ -167,7 +167,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes /* remove-proptyp
|
|
|
167
167
|
/**
|
|
168
168
|
* The color of the button when it is in an active state.
|
|
169
169
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
170
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
170
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
171
171
|
* @default 'standard'
|
|
172
172
|
*/
|
|
173
173
|
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|