@mui/material 5.10.6 → 5.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.js +3 -10
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +78 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/Checkbox.js +12 -3
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -88
- package/Chip/chipClasses.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/DialogContentText.js +14 -3
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/InputLabel.js +12 -3
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +10 -3
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +10 -3
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +24 -24
- package/Radio/Radio.js +12 -3
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +5 -3
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +2 -2
- package/SvgIcon/svgIconClasses.d.ts +26 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/Tooltip.js +3 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/Unstable_TrapFocus/index.d.ts +2 -2
- package/Unstable_TrapFocus/index.js +2 -2
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/Button/Button.js +3 -8
- package/esm/Checkbox/Checkbox.js +11 -3
- package/esm/Chip/chipClasses.js +1 -1
- package/esm/DialogContentText/DialogContentText.js +13 -3
- package/esm/InputLabel/InputLabel.js +11 -3
- package/esm/ListItemButton/ListItemButton.js +10 -3
- package/esm/MenuItem/MenuItem.js +10 -3
- package/esm/Radio/Radio.js +11 -3
- package/esm/StepLabel/StepLabel.js +5 -3
- package/esm/SvgIcon/SvgIcon.js +2 -2
- package/esm/Tooltip/Tooltip.js +3 -5
- package/esm/Unstable_TrapFocus/index.js +1 -1
- package/esm/styles/CssVarsProvider.js +3 -1
- package/esm/styles/excludeVariablesFromRoot.js +6 -0
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Button/Button.js +2 -4
- package/legacy/Checkbox/Checkbox.js +10 -2
- package/legacy/Chip/chipClasses.js +1 -1
- package/legacy/DialogContentText/DialogContentText.js +10 -2
- package/legacy/InputLabel/InputLabel.js +10 -2
- package/legacy/ListItemButton/ListItemButton.js +9 -2
- package/legacy/MenuItem/MenuItem.js +9 -2
- package/legacy/Radio/Radio.js +10 -2
- package/legacy/StepLabel/StepLabel.js +5 -4
- package/legacy/SvgIcon/SvgIcon.js +2 -2
- package/legacy/Tooltip/Tooltip.js +3 -5
- package/legacy/Unstable_TrapFocus/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -1
- package/legacy/styles/excludeVariablesFromRoot.js +12 -0
- package/locale/index.d.ts +71 -71
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Button/Button.js +3 -8
- package/modern/Checkbox/Checkbox.js +11 -3
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/DialogContentText/DialogContentText.js +13 -3
- package/modern/InputLabel/InputLabel.js +11 -3
- package/modern/ListItemButton/ListItemButton.js +10 -3
- package/modern/MenuItem/MenuItem.js +10 -3
- package/modern/Radio/Radio.js +11 -3
- package/modern/StepLabel/StepLabel.js +5 -3
- package/modern/SvgIcon/SvgIcon.js +2 -2
- package/modern/Tooltip/Tooltip.js +3 -5
- package/modern/Unstable_TrapFocus/index.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -1
- package/modern/styles/excludeVariablesFromRoot.js +6 -0
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/CssVarsProvider.js +4 -1
- package/styles/excludeVariablesFromRoot.d.ts +5 -0
- package/styles/excludeVariablesFromRoot.js +14 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +478 -428
- package/umd/material-ui.production.min.js +9 -9
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -118,7 +118,8 @@ var ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inPro
|
|
|
118
118
|
focusVisibleClassName = props.focusVisibleClassName,
|
|
119
119
|
_props$selected = props.selected,
|
|
120
120
|
selected = _props$selected === void 0 ? false : _props$selected,
|
|
121
|
-
|
|
121
|
+
className = props.className,
|
|
122
|
+
other = _objectWithoutProperties(props, ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"]);
|
|
122
123
|
|
|
123
124
|
var context = React.useContext(ListContext);
|
|
124
125
|
var childContext = {
|
|
@@ -154,7 +155,8 @@ var ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inPro
|
|
|
154
155
|
href: other.href || other.to,
|
|
155
156
|
component: (other.href || other.to) && component === 'div' ? 'a' : component,
|
|
156
157
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
157
|
-
ownerState: ownerState
|
|
158
|
+
ownerState: ownerState,
|
|
159
|
+
className: clsx(classes.root, className)
|
|
158
160
|
}, other, {
|
|
159
161
|
classes: classes,
|
|
160
162
|
children: children
|
|
@@ -193,6 +195,11 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
|
|
|
193
195
|
*/
|
|
194
196
|
classes: PropTypes.object,
|
|
195
197
|
|
|
198
|
+
/**
|
|
199
|
+
* @ignore
|
|
200
|
+
*/
|
|
201
|
+
className: PropTypes.string,
|
|
202
|
+
|
|
196
203
|
/**
|
|
197
204
|
* The component used for the root node.
|
|
198
205
|
* Either a string to use a HTML element or a component.
|
|
@@ -131,7 +131,8 @@ var MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
131
131
|
_props$role = props.role,
|
|
132
132
|
role = _props$role === void 0 ? 'menuitem' : _props$role,
|
|
133
133
|
tabIndexProp = props.tabIndex,
|
|
134
|
-
|
|
134
|
+
className = props.className,
|
|
135
|
+
other = _objectWithoutProperties(props, ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"]);
|
|
135
136
|
|
|
136
137
|
var context = React.useContext(ListContext);
|
|
137
138
|
var childContext = {
|
|
@@ -170,7 +171,8 @@ var MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
170
171
|
role: role,
|
|
171
172
|
tabIndex: tabIndex,
|
|
172
173
|
component: component,
|
|
173
|
-
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName)
|
|
174
|
+
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
175
|
+
className: clsx(classes.root, className)
|
|
174
176
|
}, other, {
|
|
175
177
|
ownerState: ownerState,
|
|
176
178
|
classes: classes
|
|
@@ -202,6 +204,11 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes
|
|
|
202
204
|
*/
|
|
203
205
|
classes: PropTypes.object,
|
|
204
206
|
|
|
207
|
+
/**
|
|
208
|
+
* @ignore
|
|
209
|
+
*/
|
|
210
|
+
className: PropTypes.string,
|
|
211
|
+
|
|
205
212
|
/**
|
|
206
213
|
* The component used for the root node.
|
|
207
214
|
* Either a string to use a HTML element or a component.
|
package/legacy/Radio/Radio.js
CHANGED
|
@@ -4,6 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import clsx from 'clsx';
|
|
7
8
|
import { refType } from '@mui/utils';
|
|
8
9
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
10
|
import { alpha } from '@mui/system';
|
|
@@ -89,7 +90,8 @@ var Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
89
90
|
onChangeProp = props.onChange,
|
|
90
91
|
_props$size = props.size,
|
|
91
92
|
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
92
|
-
|
|
93
|
+
className = props.className,
|
|
94
|
+
other = _objectWithoutProperties(props, ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"]);
|
|
93
95
|
|
|
94
96
|
var ownerState = _extends({}, props, {
|
|
95
97
|
color: color,
|
|
@@ -125,7 +127,8 @@ var Radio = /*#__PURE__*/React.forwardRef(function Radio(inProps, ref) {
|
|
|
125
127
|
name: name,
|
|
126
128
|
checked: checked,
|
|
127
129
|
onChange: onChange,
|
|
128
|
-
ref: ref
|
|
130
|
+
ref: ref,
|
|
131
|
+
className: clsx(classes.root, className)
|
|
129
132
|
}, other));
|
|
130
133
|
});
|
|
131
134
|
process.env.NODE_ENV !== "production" ? Radio.propTypes
|
|
@@ -152,6 +155,11 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes
|
|
|
152
155
|
*/
|
|
153
156
|
classes: PropTypes.object,
|
|
154
157
|
|
|
158
|
+
/**
|
|
159
|
+
* @ignore
|
|
160
|
+
*/
|
|
161
|
+
className: PropTypes.string,
|
|
162
|
+
|
|
155
163
|
/**
|
|
156
164
|
* The color of the component.
|
|
157
165
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
@@ -26,7 +26,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
26
26
|
root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
27
27
|
label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
28
28
|
iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
29
|
-
labelContainer: ['labelContainer']
|
|
29
|
+
labelContainer: ['labelContainer', alternativeLabel && 'alternativeLabel']
|
|
30
30
|
};
|
|
31
31
|
return composeClasses(slots, getStepLabelUtilityClass, classes);
|
|
32
32
|
};
|
|
@@ -76,7 +76,6 @@ var StepLabelLabel = styled('span', {
|
|
|
76
76
|
color: (theme.vars || theme).palette.text.primary,
|
|
77
77
|
fontWeight: 500
|
|
78
78
|
}), _defineProperty(_extends3, "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
79
|
-
textAlign: 'center',
|
|
80
79
|
marginTop: 16
|
|
81
80
|
}), _defineProperty(_extends3, "&.".concat(stepLabelClasses.error), {
|
|
82
81
|
color: (theme.vars || theme).palette.error.main
|
|
@@ -106,10 +105,12 @@ var StepLabelLabelContainer = styled('span', {
|
|
|
106
105
|
}
|
|
107
106
|
})(function (_ref4) {
|
|
108
107
|
var theme = _ref4.theme;
|
|
109
|
-
return {
|
|
108
|
+
return _defineProperty({
|
|
110
109
|
width: '100%',
|
|
111
110
|
color: (theme.vars || theme).palette.text.secondary
|
|
112
|
-
}
|
|
111
|
+
}, "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
112
|
+
textAlign: 'center'
|
|
113
|
+
});
|
|
113
114
|
});
|
|
114
115
|
var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
115
116
|
var props = useThemeProps({
|
|
@@ -47,7 +47,7 @@ var SvgIconRoot = styled('svg', {
|
|
|
47
47
|
inherit: 'inherit',
|
|
48
48
|
small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
|
49
49
|
medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
|
50
|
-
large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.
|
|
50
|
+
large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
|
51
51
|
}[ownerState.fontSize],
|
|
52
52
|
// TODO v5 deprecate, v6 remove for sx
|
|
53
53
|
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
|
|
@@ -98,13 +98,13 @@ var SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
98
98
|
return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({
|
|
99
99
|
as: component,
|
|
100
100
|
className: clsx(classes.root, className),
|
|
101
|
-
ownerState: ownerState,
|
|
102
101
|
focusable: "false",
|
|
103
102
|
color: htmlColor,
|
|
104
103
|
"aria-hidden": titleAccess ? undefined : true,
|
|
105
104
|
role: titleAccess ? 'img' : undefined,
|
|
106
105
|
ref: ref
|
|
107
106
|
}, more, other, {
|
|
107
|
+
ownerState: ownerState,
|
|
108
108
|
children: [children, titleAccess ? /*#__PURE__*/_jsx("title", {
|
|
109
109
|
children: titleAccess
|
|
110
110
|
}) : null]
|
|
@@ -488,7 +488,7 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
488
488
|
var handleFocusRef = useForkRef(focusVisibleRef, handleUseRef);
|
|
489
489
|
var handleRef = useForkRef(children.ref, handleFocusRef); // There is no point in displaying an empty tooltip.
|
|
490
490
|
|
|
491
|
-
if (title
|
|
491
|
+
if (typeof title !== 'number' && !title) {
|
|
492
492
|
open = false;
|
|
493
493
|
}
|
|
494
494
|
|
|
@@ -831,11 +831,9 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
|
|
|
831
831
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
832
832
|
|
|
833
833
|
/**
|
|
834
|
-
* Tooltip title. Zero-length titles string are never displayed.
|
|
834
|
+
* Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
|
|
835
835
|
*/
|
|
836
|
-
title: PropTypes
|
|
837
|
-
/* @typescript-to-proptypes-ignore */
|
|
838
|
-
.node.isRequired,
|
|
836
|
+
title: PropTypes.node,
|
|
839
837
|
|
|
840
838
|
/**
|
|
841
839
|
* The component used for the transition.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '@mui/base/
|
|
1
|
+
export { default } from '@mui/base/FocusTrap';
|
package/legacy/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';
|
|
3
3
|
import experimental_extendTheme from './experimental_extendTheme';
|
|
4
4
|
import createTypography from './createTypography';
|
|
5
|
+
import excludeVariablesFromRoot from './excludeVariablesFromRoot';
|
|
5
6
|
|
|
6
7
|
var shouldSkipGeneratingVar = function shouldSkipGeneratingVar(keys) {
|
|
7
8
|
var _keys$;
|
|
@@ -27,7 +28,8 @@ var _createCssVarsProvide = createCssVarsProvider({
|
|
|
27
28
|
|
|
28
29
|
return newTheme;
|
|
29
30
|
},
|
|
30
|
-
shouldSkipGeneratingVar: shouldSkipGeneratingVar
|
|
31
|
+
shouldSkipGeneratingVar: shouldSkipGeneratingVar,
|
|
32
|
+
excludeVariablesFromRoot: excludeVariablesFromRoot
|
|
31
33
|
}),
|
|
32
34
|
CssVarsProvider = _createCssVarsProvide.CssVarsProvider,
|
|
33
35
|
useColorScheme = _createCssVarsProvide.useColorScheme,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
5
|
+
*/
|
|
6
|
+
var excludeVariablesFromRoot = function excludeVariablesFromRoot(cssVarPrefix) {
|
|
7
|
+
return [].concat(_toConsumableArray(_toConsumableArray(Array(24)).map(function (_, index) {
|
|
8
|
+
return "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "overlays-").concat(index + 1);
|
|
9
|
+
})), ["--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkBg"), "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkColor")]);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default excludeVariablesFromRoot;
|
package/locale/index.d.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSD: Localization;
|
|
27
|
-
export declare const azAZ: Localization;
|
|
28
|
-
export declare const bnBD: Localization;
|
|
29
|
-
export declare const bgBG: Localization;
|
|
30
|
-
export declare const caES: Localization;
|
|
31
|
-
export declare const csCZ: Localization;
|
|
32
|
-
export declare const daDK: Localization;
|
|
33
|
-
export declare const deDE: Localization;
|
|
34
|
-
export declare const elGR: Localization;
|
|
35
|
-
export declare const enUS: Localization;
|
|
36
|
-
export declare const esES: Localization;
|
|
37
|
-
export declare const etEE: Localization;
|
|
38
|
-
export declare const faIR: Localization;
|
|
39
|
-
export declare const fiFI: Localization;
|
|
40
|
-
export declare const frFR: Localization;
|
|
41
|
-
export declare const heIL: Localization;
|
|
42
|
-
export declare const hiIN: Localization;
|
|
43
|
-
export declare const hrHR: Localization;
|
|
44
|
-
export declare const huHU: Localization;
|
|
45
|
-
export declare const hyAM: Localization;
|
|
46
|
-
export declare const idID: Localization;
|
|
47
|
-
export declare const isIS: Localization;
|
|
48
|
-
export declare const itIT: Localization;
|
|
49
|
-
export declare const jaJP: Localization;
|
|
50
|
-
export declare const khKH: Localization;
|
|
51
|
-
export declare const koKR: Localization;
|
|
52
|
-
export declare const kzKZ: Localization;
|
|
53
|
-
export declare const mkMK: Localization;
|
|
54
|
-
export declare const nbNO: Localization;
|
|
55
|
-
export declare const nlNL: Localization;
|
|
56
|
-
export declare const plPL: Localization;
|
|
57
|
-
export declare const ptBR: Localization;
|
|
58
|
-
export declare const ptPT: Localization;
|
|
59
|
-
export declare const roRO: Localization;
|
|
60
|
-
export declare const srRS: Localization;
|
|
61
|
-
export declare const ruRU: Localization;
|
|
62
|
-
export declare const siLK: Localization;
|
|
63
|
-
export declare const skSK: Localization;
|
|
64
|
-
export declare const svSE: Localization;
|
|
65
|
-
export declare const thTH: Localization;
|
|
66
|
-
export declare const trTR: Localization;
|
|
67
|
-
export declare const ukUA: Localization;
|
|
68
|
-
export declare const viVN: Localization;
|
|
69
|
-
export declare const zhCN: Localization;
|
|
70
|
-
export declare const zhHK: Localization;
|
|
71
|
-
export declare const zhTW: Localization;
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSD: Localization;
|
|
27
|
+
export declare const azAZ: Localization;
|
|
28
|
+
export declare const bnBD: Localization;
|
|
29
|
+
export declare const bgBG: Localization;
|
|
30
|
+
export declare const caES: Localization;
|
|
31
|
+
export declare const csCZ: Localization;
|
|
32
|
+
export declare const daDK: Localization;
|
|
33
|
+
export declare const deDE: Localization;
|
|
34
|
+
export declare const elGR: Localization;
|
|
35
|
+
export declare const enUS: Localization;
|
|
36
|
+
export declare const esES: Localization;
|
|
37
|
+
export declare const etEE: Localization;
|
|
38
|
+
export declare const faIR: Localization;
|
|
39
|
+
export declare const fiFI: Localization;
|
|
40
|
+
export declare const frFR: Localization;
|
|
41
|
+
export declare const heIL: Localization;
|
|
42
|
+
export declare const hiIN: Localization;
|
|
43
|
+
export declare const hrHR: Localization;
|
|
44
|
+
export declare const huHU: Localization;
|
|
45
|
+
export declare const hyAM: Localization;
|
|
46
|
+
export declare const idID: Localization;
|
|
47
|
+
export declare const isIS: Localization;
|
|
48
|
+
export declare const itIT: Localization;
|
|
49
|
+
export declare const jaJP: Localization;
|
|
50
|
+
export declare const khKH: Localization;
|
|
51
|
+
export declare const koKR: Localization;
|
|
52
|
+
export declare const kzKZ: Localization;
|
|
53
|
+
export declare const mkMK: Localization;
|
|
54
|
+
export declare const nbNO: Localization;
|
|
55
|
+
export declare const nlNL: Localization;
|
|
56
|
+
export declare const plPL: Localization;
|
|
57
|
+
export declare const ptBR: Localization;
|
|
58
|
+
export declare const ptPT: Localization;
|
|
59
|
+
export declare const roRO: Localization;
|
|
60
|
+
export declare const srRS: Localization;
|
|
61
|
+
export declare const ruRU: Localization;
|
|
62
|
+
export declare const siLK: Localization;
|
|
63
|
+
export declare const skSK: Localization;
|
|
64
|
+
export declare const svSE: Localization;
|
|
65
|
+
export declare const thTH: Localization;
|
|
66
|
+
export declare const trTR: Localization;
|
|
67
|
+
export declare const ukUA: Localization;
|
|
68
|
+
export declare const viVN: Localization;
|
|
69
|
+
export declare const zhCN: Localization;
|
|
70
|
+
export declare const zhHK: Localization;
|
|
71
|
+
export declare const zhTW: Localization;
|
|
File without changes
|
package/modern/Button/Button.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]
|
|
4
|
-
_excluded2 = ["root"];
|
|
3
|
+
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
5
4
|
import * as React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
6
|
import clsx from 'clsx';
|
|
@@ -255,11 +254,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
255
254
|
variant
|
|
256
255
|
});
|
|
257
256
|
|
|
258
|
-
const
|
|
259
|
-
{
|
|
260
|
-
root: classesRoot
|
|
261
|
-
} = _useUtilityClasses,
|
|
262
|
-
classes = _objectWithoutPropertiesLoose(_useUtilityClasses, _excluded2);
|
|
257
|
+
const classes = useUtilityClasses(ownerState);
|
|
263
258
|
|
|
264
259
|
const startIcon = startIconProp && /*#__PURE__*/_jsx(ButtonStartIcon, {
|
|
265
260
|
className: classes.startIcon,
|
|
@@ -275,7 +270,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
275
270
|
|
|
276
271
|
return /*#__PURE__*/_jsxs(ButtonRoot, _extends({
|
|
277
272
|
ownerState: ownerState,
|
|
278
|
-
className: clsx(contextProps.className,
|
|
273
|
+
className: clsx(contextProps.className, classes.root, className),
|
|
279
274
|
component: component,
|
|
280
275
|
disabled: disabled,
|
|
281
276
|
focusRipple: !disableFocusRipple,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"];
|
|
3
|
+
const _excluded = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
+
import clsx from 'clsx';
|
|
6
7
|
import { refType } from '@mui/utils';
|
|
7
8
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
8
9
|
import { alpha } from '@mui/system';
|
|
@@ -80,7 +81,8 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
|
|
80
81
|
indeterminate = false,
|
|
81
82
|
indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
|
|
82
83
|
inputProps,
|
|
83
|
-
size = 'medium'
|
|
84
|
+
size = 'medium',
|
|
85
|
+
className
|
|
84
86
|
} = props,
|
|
85
87
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
86
88
|
|
|
@@ -106,7 +108,8 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
|
|
106
108
|
fontSize: indeterminateIcon.props.fontSize ?? size
|
|
107
109
|
}),
|
|
108
110
|
ownerState: ownerState,
|
|
109
|
-
ref: ref
|
|
111
|
+
ref: ref,
|
|
112
|
+
className: clsx(classes.root, className)
|
|
110
113
|
}, other, {
|
|
111
114
|
classes: classes
|
|
112
115
|
}));
|
|
@@ -135,6 +138,11 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
|
|
|
135
138
|
*/
|
|
136
139
|
classes: PropTypes.object,
|
|
137
140
|
|
|
141
|
+
/**
|
|
142
|
+
* @ignore
|
|
143
|
+
*/
|
|
144
|
+
className: PropTypes.string,
|
|
145
|
+
|
|
138
146
|
/**
|
|
139
147
|
* The color of the component.
|
|
140
148
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
@@ -2,5 +2,5 @@ import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
|
|
|
2
2
|
export function getChipUtilityClass(slot) {
|
|
3
3
|
return generateUtilityClass('MuiChip', slot);
|
|
4
4
|
}
|
|
5
|
-
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
5
|
+
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
6
6
|
export default chipClasses;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["children"];
|
|
3
|
+
const _excluded = ["children", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
+
import clsx from 'clsx';
|
|
6
7
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
7
8
|
import styled, { rootShouldForwardProp } from '../styles/styled';
|
|
8
9
|
import useThemeProps from '../styles/useThemeProps';
|
|
@@ -33,7 +34,10 @@ const DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentTe
|
|
|
33
34
|
name: 'MuiDialogContentText'
|
|
34
35
|
});
|
|
35
36
|
|
|
36
|
-
const
|
|
37
|
+
const {
|
|
38
|
+
className
|
|
39
|
+
} = props,
|
|
40
|
+
ownerState = _objectWithoutPropertiesLoose(props, _excluded);
|
|
37
41
|
|
|
38
42
|
const classes = useUtilityClasses(ownerState);
|
|
39
43
|
return /*#__PURE__*/_jsx(DialogContentTextRoot, _extends({
|
|
@@ -41,7 +45,8 @@ const DialogContentText = /*#__PURE__*/React.forwardRef(function DialogContentTe
|
|
|
41
45
|
variant: "body1",
|
|
42
46
|
color: "text.secondary",
|
|
43
47
|
ref: ref,
|
|
44
|
-
ownerState: ownerState
|
|
48
|
+
ownerState: ownerState,
|
|
49
|
+
className: clsx(classes.root, className)
|
|
45
50
|
}, props, {
|
|
46
51
|
classes: classes
|
|
47
52
|
}));
|
|
@@ -64,6 +69,11 @@ process.env.NODE_ENV !== "production" ? DialogContentText.propTypes
|
|
|
64
69
|
*/
|
|
65
70
|
classes: PropTypes.object,
|
|
66
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @ignore
|
|
74
|
+
*/
|
|
75
|
+
className: PropTypes.string,
|
|
76
|
+
|
|
67
77
|
/**
|
|
68
78
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
69
79
|
*/
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["disableAnimation", "margin", "shrink", "variant"];
|
|
3
|
+
const _excluded = ["disableAnimation", "margin", "shrink", "variant", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
7
|
+
import clsx from 'clsx';
|
|
7
8
|
import formControlState from '../FormControl/formControlState';
|
|
8
9
|
import useFormControl from '../FormControl/useFormControl';
|
|
9
10
|
import FormLabel, { formLabelClasses } from '../FormLabel';
|
|
@@ -110,7 +111,8 @@ const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, re
|
|
|
110
111
|
|
|
111
112
|
const {
|
|
112
113
|
disableAnimation = false,
|
|
113
|
-
shrink: shrinkProp
|
|
114
|
+
shrink: shrinkProp,
|
|
115
|
+
className
|
|
114
116
|
} = props,
|
|
115
117
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
116
118
|
|
|
@@ -140,7 +142,8 @@ const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, re
|
|
|
140
142
|
return /*#__PURE__*/_jsx(InputLabelRoot, _extends({
|
|
141
143
|
"data-shrink": shrink,
|
|
142
144
|
ownerState: ownerState,
|
|
143
|
-
ref: ref
|
|
145
|
+
ref: ref,
|
|
146
|
+
className: clsx(classes.root, className)
|
|
144
147
|
}, other, {
|
|
145
148
|
classes: classes
|
|
146
149
|
}));
|
|
@@ -163,6 +166,11 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes
|
|
|
163
166
|
*/
|
|
164
167
|
classes: PropTypes.object,
|
|
165
168
|
|
|
169
|
+
/**
|
|
170
|
+
* @ignore
|
|
171
|
+
*/
|
|
172
|
+
className: PropTypes.string,
|
|
173
|
+
|
|
166
174
|
/**
|
|
167
175
|
* The color of the component.
|
|
168
176
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected"];
|
|
3
|
+
const _excluded = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -115,7 +115,8 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
115
115
|
disableGutters = false,
|
|
116
116
|
divider = false,
|
|
117
117
|
focusVisibleClassName,
|
|
118
|
-
selected = false
|
|
118
|
+
selected = false,
|
|
119
|
+
className
|
|
119
120
|
} = props,
|
|
120
121
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
121
122
|
|
|
@@ -153,7 +154,8 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
153
154
|
href: other.href || other.to,
|
|
154
155
|
component: (other.href || other.to) && component === 'div' ? 'a' : component,
|
|
155
156
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
156
|
-
ownerState: ownerState
|
|
157
|
+
ownerState: ownerState,
|
|
158
|
+
className: clsx(classes.root, className)
|
|
157
159
|
}, other, {
|
|
158
160
|
classes: classes,
|
|
159
161
|
children: children
|
|
@@ -192,6 +194,11 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
|
|
|
192
194
|
*/
|
|
193
195
|
classes: PropTypes.object,
|
|
194
196
|
|
|
197
|
+
/**
|
|
198
|
+
* @ignore
|
|
199
|
+
*/
|
|
200
|
+
className: PropTypes.string,
|
|
201
|
+
|
|
195
202
|
/**
|
|
196
203
|
* The component used for the root node.
|
|
197
204
|
* Either a string to use a HTML element or a component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex"];
|
|
3
|
+
const _excluded = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
@@ -138,7 +138,8 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
138
138
|
disableGutters = false,
|
|
139
139
|
focusVisibleClassName,
|
|
140
140
|
role = 'menuitem',
|
|
141
|
-
tabIndex: tabIndexProp
|
|
141
|
+
tabIndex: tabIndexProp,
|
|
142
|
+
className
|
|
142
143
|
} = props,
|
|
143
144
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
144
145
|
|
|
@@ -179,7 +180,8 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
179
180
|
role: role,
|
|
180
181
|
tabIndex: tabIndex,
|
|
181
182
|
component: component,
|
|
182
|
-
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName)
|
|
183
|
+
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
184
|
+
className: clsx(classes.root, className)
|
|
183
185
|
}, other, {
|
|
184
186
|
ownerState: ownerState,
|
|
185
187
|
classes: classes
|
|
@@ -211,6 +213,11 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes
|
|
|
211
213
|
*/
|
|
212
214
|
classes: PropTypes.object,
|
|
213
215
|
|
|
216
|
+
/**
|
|
217
|
+
* @ignore
|
|
218
|
+
*/
|
|
219
|
+
className: PropTypes.string,
|
|
220
|
+
|
|
214
221
|
/**
|
|
215
222
|
* The component used for the root node.
|
|
216
223
|
* Either a string to use a HTML element or a component.
|