@mui/material 5.14.12 → 5.14.14
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 +5 -2
- package/AppBar/AppBar.js +2 -2
- package/AppBar/appBarClasses.d.ts +8 -0
- package/AppBar/appBarClasses.js +1 -1
- package/AvatarGroup/AvatarGroup.d.ts +6 -0
- package/AvatarGroup/AvatarGroup.js +12 -3
- 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 +139 -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 +4 -7
- package/Pagination/Pagination.js +2 -2
- 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/Tabs/Tabs.js +30 -5
- 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 +2 -2
- package/legacy/AppBar/appBarClasses.js +1 -1
- package/legacy/AvatarGroup/AvatarGroup.js +12 -3
- 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 +2 -2
- 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/Tabs/Tabs.js +30 -5
- 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 +2 -2
- package/modern/AppBar/appBarClasses.js +1 -1
- package/modern/AvatarGroup/AvatarGroup.js +12 -3
- 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 +2 -2
- 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/Tabs/Tabs.js +27 -5
- 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 +2 -2
- package/node/AppBar/appBarClasses.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +11 -3
- 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 +2 -2
- 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/Tabs/Tabs.js +30 -5
- 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 +86 -45
- package/umd/material-ui.production.min.js +4 -4
|
@@ -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/legacy/Input/Input.js
CHANGED
|
@@ -171,7 +171,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
|
|
|
171
171
|
/**
|
|
172
172
|
* The color of the component.
|
|
173
173
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
174
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
174
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
175
175
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
176
176
|
*/
|
|
177
177
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
@@ -509,7 +509,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
|
|
|
509
509
|
/**
|
|
510
510
|
* The color of the component.
|
|
511
511
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
512
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
512
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
513
513
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
514
514
|
*/
|
|
515
515
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -163,7 +163,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
|
|
|
163
163
|
/**
|
|
164
164
|
* The color of the component.
|
|
165
165
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
166
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
166
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
167
167
|
*/
|
|
168
168
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
169
169
|
/**
|
|
@@ -257,7 +257,7 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-propt
|
|
|
257
257
|
/**
|
|
258
258
|
* The color of the component.
|
|
259
259
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
260
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
260
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
261
261
|
* @default 'primary'
|
|
262
262
|
*/
|
|
263
263
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
|
|
@@ -201,7 +201,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
201
201
|
/**
|
|
202
202
|
* The color of the component.
|
|
203
203
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
204
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
204
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
205
205
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
206
206
|
*/
|
|
207
207
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
@@ -160,7 +160,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
160
160
|
/**
|
|
161
161
|
* The active color.
|
|
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 'standard'
|
|
165
165
|
*/
|
|
166
166
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
|
|
@@ -184,7 +184,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
184
184
|
* This is important for screen reader users.
|
|
185
185
|
*
|
|
186
186
|
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
187
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
|
|
187
|
+
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
188
188
|
* @param {number} page The page number to format.
|
|
189
189
|
* @param {bool} selected If true, the current page is selected.
|
|
190
190
|
* @returns {string}
|
|
@@ -109,14 +109,14 @@ var PaginationItemPage = styled(ButtonBase, {
|
|
|
109
109
|
}), _defineProperty(_extends3, "&.".concat(paginationItemClasses.selected), (_$concat = {
|
|
110
110
|
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
111
111
|
'&:hover': {
|
|
112
|
-
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.
|
|
112
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
113
113
|
// Reset on touch devices, it doesn't add specificity
|
|
114
114
|
'@media (hover: none)': {
|
|
115
115
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}, _defineProperty(_$concat, "&.".concat(paginationItemClasses.focusVisible), {
|
|
119
|
-
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.
|
|
119
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
120
120
|
}), _defineProperty(_$concat, "&.".concat(paginationItemClasses.disabled), {
|
|
121
121
|
opacity: 1,
|
|
122
122
|
color: (theme.vars || theme).palette.action.disabled,
|
|
@@ -280,7 +280,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
|
|
|
280
280
|
/**
|
|
281
281
|
* The active color.
|
|
282
282
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
283
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
283
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
284
284
|
* @default 'standard'
|
|
285
285
|
*/
|
|
286
286
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
|
package/legacy/Radio/Radio.js
CHANGED
|
@@ -147,7 +147,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
|
|
|
147
147
|
/**
|
|
148
148
|
* The color of the component.
|
|
149
149
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
150
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
150
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
151
151
|
* @default 'primary'
|
|
152
152
|
*/
|
|
153
153
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -646,10 +646,10 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
|
|
|
646
646
|
/**
|
|
647
647
|
* The color of the component.
|
|
648
648
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
649
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
649
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
650
650
|
* @default 'primary'
|
|
651
651
|
*/
|
|
652
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
652
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
653
653
|
/**
|
|
654
654
|
* The components used for each slot inside.
|
|
655
655
|
*
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getSliderUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiSlider', slot);
|
|
5
5
|
}
|
|
6
|
-
var 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
|
+
var 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/legacy/Switch/Switch.js
CHANGED
|
@@ -239,7 +239,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
|
|
|
239
239
|
/**
|
|
240
240
|
* The color of the component.
|
|
241
241
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
242
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
242
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
243
243
|
* @default 'primary'
|
|
244
244
|
*/
|
|
245
245
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/legacy/Tabs/Tabs.js
CHANGED
|
@@ -511,23 +511,48 @@ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
511
511
|
updateIndicatorState();
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
+
var resizeObserver;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @type {MutationCallback}
|
|
518
|
+
*/
|
|
519
|
+
var handleMutation = function handleMutation(records) {
|
|
520
|
+
records.forEach(function (record) {
|
|
521
|
+
record.removedNodes.forEach(function (item) {
|
|
522
|
+
var _resizeObserver;
|
|
523
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
|
|
524
|
+
});
|
|
525
|
+
record.addedNodes.forEach(function (item) {
|
|
526
|
+
var _resizeObserver2;
|
|
527
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
handleResize();
|
|
531
|
+
updateScrollButtonState();
|
|
532
|
+
};
|
|
514
533
|
var win = ownerWindow(tabsRef.current);
|
|
515
534
|
win.addEventListener('resize', handleResize);
|
|
516
|
-
var
|
|
535
|
+
var mutationObserver;
|
|
517
536
|
if (typeof ResizeObserver !== 'undefined') {
|
|
518
537
|
resizeObserver = new ResizeObserver(handleResize);
|
|
519
538
|
Array.from(tabListRef.current.children).forEach(function (child) {
|
|
520
539
|
resizeObserver.observe(child);
|
|
521
540
|
});
|
|
522
541
|
}
|
|
542
|
+
if (typeof MutationObserver !== 'undefined') {
|
|
543
|
+
mutationObserver = new MutationObserver(handleMutation);
|
|
544
|
+
mutationObserver.observe(tabListRef.current, {
|
|
545
|
+
childList: true
|
|
546
|
+
});
|
|
547
|
+
}
|
|
523
548
|
return function () {
|
|
549
|
+
var _mutationObserver, _resizeObserver3;
|
|
524
550
|
handleResize.clear();
|
|
525
551
|
win.removeEventListener('resize', handleResize);
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
552
|
+
(_mutationObserver = mutationObserver) == null || _mutationObserver.disconnect();
|
|
553
|
+
(_resizeObserver3 = resizeObserver) == null || _resizeObserver3.disconnect();
|
|
529
554
|
};
|
|
530
|
-
}, [updateIndicatorState]);
|
|
555
|
+
}, [updateIndicatorState, updateScrollButtonState]);
|
|
531
556
|
|
|
532
557
|
/**
|
|
533
558
|
* Toggle visibility of start and end scroll buttons
|
|
@@ -236,7 +236,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
236
236
|
/**
|
|
237
237
|
* The color of the component.
|
|
238
238
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
239
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
239
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
240
240
|
* @default 'primary'
|
|
241
241
|
*/
|
|
242
242
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -154,7 +154,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes /* remove-proptyp
|
|
|
154
154
|
/**
|
|
155
155
|
* The color of the button when it is in an active state.
|
|
156
156
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
157
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
157
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
158
158
|
* @default 'standard'
|
|
159
159
|
*/
|
|
160
160
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -168,7 +168,7 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes /* remove-pr
|
|
|
168
168
|
/**
|
|
169
169
|
* The color of the button when it is selected.
|
|
170
170
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
171
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
171
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
172
172
|
* @default 'standard'
|
|
173
173
|
*/
|
|
174
174
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/legacy/index.js
CHANGED
package/modern/Alert/Alert.js
CHANGED
|
@@ -227,7 +227,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
|
|
|
227
227
|
/**
|
|
228
228
|
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
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
|
*/
|
|
232
232
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
233
233
|
/**
|
package/modern/AppBar/AppBar.js
CHANGED
|
@@ -154,10 +154,10 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
|
|
|
154
154
|
/**
|
|
155
155
|
* The color of the component.
|
|
156
156
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
157
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
157
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
158
158
|
* @default 'primary'
|
|
159
159
|
*/
|
|
160
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), PropTypes.string]),
|
|
160
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
161
161
|
/**
|
|
162
162
|
* If true, the `color` prop is applied in dark mode.
|
|
163
163
|
* @default false
|
|
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
|
|
|
3
3
|
export function getAppBarUtilityClass(slot) {
|
|
4
4
|
return generateUtilityClass('MuiAppBar', slot);
|
|
5
5
|
}
|
|
6
|
-
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
|
|
6
|
+
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
|
|
7
7
|
export default appBarClasses;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
const _excluded = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
|
|
5
|
+
const _excluded = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { isFragment } from 'react-is';
|
|
@@ -13,6 +13,7 @@ import styled from '../styles/styled';
|
|
|
13
13
|
import useThemeProps from '../styles/useThemeProps';
|
|
14
14
|
import Avatar, { avatarClasses } from '../Avatar';
|
|
15
15
|
import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
const SPACINGS = {
|
|
18
19
|
small: -16,
|
|
@@ -73,6 +74,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
73
74
|
component = 'div',
|
|
74
75
|
componentsProps = {},
|
|
75
76
|
max = 5,
|
|
77
|
+
renderSurplus,
|
|
76
78
|
slotProps = {},
|
|
77
79
|
spacing = 'medium',
|
|
78
80
|
total,
|
|
@@ -102,6 +104,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
102
104
|
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
|
103
105
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
104
106
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
107
|
+
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
|
105
108
|
const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
|
|
106
109
|
const additionalAvatarSlotProps = slotProps.additionalAvatar ?? componentsProps.additionalAvatar;
|
|
107
110
|
return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
|
|
@@ -110,7 +113,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
110
113
|
className: clsx(classes.root, className),
|
|
111
114
|
ref: ref
|
|
112
115
|
}, other, {
|
|
113
|
-
children: [extraAvatars ? /*#__PURE__*/
|
|
116
|
+
children: [extraAvatars ? /*#__PURE__*/_jsx(AvatarGroupAvatar, _extends({
|
|
114
117
|
ownerState: ownerState,
|
|
115
118
|
variant: variant
|
|
116
119
|
}, additionalAvatarSlotProps, {
|
|
@@ -118,7 +121,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
118
121
|
style: _extends({
|
|
119
122
|
marginLeft
|
|
120
123
|
}, additionalAvatarSlotProps?.style),
|
|
121
|
-
children:
|
|
124
|
+
children: extraAvatarsElement
|
|
122
125
|
})) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
|
|
123
126
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
124
127
|
className: clsx(child.props.className, classes.avatar),
|
|
@@ -176,6 +179,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
|
|
|
176
179
|
}
|
|
177
180
|
return null;
|
|
178
181
|
}),
|
|
182
|
+
/**
|
|
183
|
+
* custom renderer of extraAvatars
|
|
184
|
+
* @param {number} surplus number of extra avatars
|
|
185
|
+
* @returns {React.ReactNode} custom element to display
|
|
186
|
+
*/
|
|
187
|
+
renderSurplus: PropTypes.func,
|
|
179
188
|
/**
|
|
180
189
|
* The extra props for the slot components.
|
|
181
190
|
* You can override the existing props or add new ones.
|
package/modern/Badge/Badge.js
CHANGED
|
@@ -285,7 +285,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
|
|
|
285
285
|
/**
|
|
286
286
|
* The color of the component.
|
|
287
287
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
288
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
288
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
289
289
|
* @default 'default'
|
|
290
290
|
*/
|
|
291
291
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/modern/Button/Button.js
CHANGED
|
@@ -301,7 +301,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
|
301
301
|
/**
|
|
302
302
|
* The color of the component.
|
|
303
303
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
304
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
304
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
305
305
|
* @default 'primary'
|
|
306
306
|
*/
|
|
307
307
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
|
|
@@ -235,7 +235,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -48,7 +48,7 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
48
48
|
color: (theme.vars || theme).palette.text.secondary
|
|
49
49
|
}, !ownerState.disableRipple && {
|
|
50
50
|
'&:hover': {
|
|
51
|
-
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.
|
|
51
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
52
52
|
// Reset on touch devices, it doesn't add specificity
|
|
53
53
|
'@media (hover: none)': {
|
|
54
54
|
backgroundColor: 'transparent'
|
|
@@ -132,7 +132,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
|
|
|
132
132
|
/**
|
|
133
133
|
* The color of the component.
|
|
134
134
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
135
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
135
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
136
136
|
* @default 'primary'
|
|
137
137
|
*/
|
|
138
138
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -262,9 +262,15 @@ const ChipLabel = styled('span', {
|
|
|
262
262
|
paddingLeft: 12,
|
|
263
263
|
paddingRight: 12,
|
|
264
264
|
whiteSpace: 'nowrap'
|
|
265
|
+
}, ownerState.variant === 'outlined' && {
|
|
266
|
+
paddingLeft: 11,
|
|
267
|
+
paddingRight: 11
|
|
265
268
|
}, ownerState.size === 'small' && {
|
|
266
269
|
paddingLeft: 8,
|
|
267
270
|
paddingRight: 8
|
|
271
|
+
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
|
272
|
+
paddingLeft: 7,
|
|
273
|
+
paddingRight: 7
|
|
268
274
|
}));
|
|
269
275
|
function isDeleteKeyboardEvent(keyboardEvent) {
|
|
270
276
|
return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
|
|
@@ -429,7 +435,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
|
|
|
429
435
|
/**
|
|
430
436
|
* The color of the component.
|
|
431
437
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
432
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
438
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
433
439
|
* @default 'default'
|
|
434
440
|
*/
|
|
435
441
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
@@ -196,7 +196,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
|
|
|
196
196
|
/**
|
|
197
197
|
* The color of the component.
|
|
198
198
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
199
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
199
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
200
200
|
* @default 'primary'
|
|
201
201
|
*/
|
|
202
202
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
package/modern/Fab/Fab.js
CHANGED
|
@@ -175,7 +175,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
|
|
|
175
175
|
/**
|
|
176
176
|
* The color of the component.
|
|
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 'default'
|
|
180
180
|
*/
|
|
181
181
|
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
@@ -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]),
|
|
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
|
|
|
169
169
|
* This is important for screen reader users.
|
|
170
170
|
*
|
|
171
171
|
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
172
|
-
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
|
|
172
|
+
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
|
|
173
173
|
* @param {number} page The page number to format.
|
|
174
174
|
* @param {bool} selected If true, the current page is selected.
|
|
175
175
|
* @returns {string}
|