@mui/material 5.9.0 → 5.9.3
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/Badge.js +1 -1
- 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 +8 -3
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/TouchRipple.js +2 -2
- 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 +196 -6
- 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/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +5 -7
- package/Chip/chipClasses.d.ts +88 -80
- 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/Dialog.js +2 -1
- 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/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/FormHelperText.d.ts +7 -1
- package/FormHelperText/FormHelperText.js +3 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.js +67 -4
- 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/ImageListItem.js +4 -4
- 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/InputBase.js +3 -2
- package/InputBase/inputBaseClasses.d.ts +46 -44
- package/InputBase/inputBaseClasses.js +1 -1
- 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/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/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +2 -1
- package/Modal/Modal.js +2 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponent.d.ts +4 -0
- 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/Popper/Popper.js +24 -0
- package/README.md +5 -8
- 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/SelectInput.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +3 -2
- 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/Stack/Stack.js +15 -2
- 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/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +24 -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/Tabs.d.ts +7 -1
- package/Tabs/Tabs.js +3 -1
- 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.js +5 -6
- 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/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Button/Button.js +4 -2
- package/legacy/ButtonBase/TouchRipple.js +2 -2
- package/legacy/Chip/Chip.js +4 -6
- package/legacy/Chip/chipClasses.js +1 -1
- package/legacy/Dialog/Dialog.js +2 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -1
- package/legacy/Grid/Grid.js +72 -12
- package/legacy/ImageListItem/ImageListItem.js +4 -4
- package/legacy/InputBase/InputBase.js +3 -2
- package/legacy/InputBase/inputBaseClasses.js +1 -1
- package/legacy/Modal/Modal.js +2 -1
- package/legacy/Popper/Popper.js +24 -0
- package/legacy/Select/SelectInput.js +1 -1
- package/legacy/Slider/Slider.js +3 -2
- package/legacy/Stack/Stack.js +15 -2
- package/legacy/Tabs/Tabs.js +3 -1
- package/legacy/Tooltip/Tooltip.js +5 -6
- package/legacy/index.js +1 -1
- package/legacy/styles/createTheme.js +5 -0
- package/locale/index.d.ts +71 -71
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Button/Button.js +8 -3
- package/modern/ButtonBase/TouchRipple.js +2 -2
- package/modern/Chip/Chip.js +5 -7
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Dialog/Dialog.js +2 -1
- package/modern/FormHelperText/FormHelperText.js +3 -1
- package/modern/Grid/Grid.js +67 -4
- package/modern/ImageListItem/ImageListItem.js +4 -4
- package/modern/InputBase/InputBase.js +3 -2
- package/modern/InputBase/inputBaseClasses.js +1 -1
- package/modern/Modal/Modal.js +2 -1
- package/modern/Popper/Popper.js +24 -0
- package/modern/Select/SelectInput.js +1 -1
- package/modern/Slider/Slider.js +3 -2
- package/modern/Stack/Stack.js +15 -2
- package/modern/Tabs/Tabs.js +3 -1
- package/modern/Tooltip/Tooltip.js +5 -6
- package/modern/index.js +1 -1
- package/modern/styles/createTheme.js +6 -0
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Button/Button.js +10 -3
- package/node/ButtonBase/TouchRipple.js +2 -2
- package/node/Chip/Chip.js +5 -7
- package/node/Chip/chipClasses.js +1 -1
- package/node/Dialog/Dialog.js +2 -1
- package/node/FormHelperText/FormHelperText.js +3 -1
- package/node/Grid/Grid.js +67 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/InputBase/InputBase.js +3 -2
- package/node/InputBase/inputBaseClasses.js +1 -1
- package/node/Modal/Modal.js +2 -1
- package/node/Popper/Popper.js +24 -0
- package/node/Select/SelectInput.js +1 -1
- package/node/Slider/Slider.js +3 -2
- package/node/Stack/Stack.js +14 -1
- package/node/Tabs/Tabs.js +3 -1
- package/node/Tooltip/Tooltip.js +5 -6
- package/node/index.js +1 -1
- package/node/styles/createTheme.js +6 -0
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/createTheme.js +6 -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 +279 -71
- package/umd/material-ui.production.min.js +20 -20
- 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
|
@@ -81,13 +81,14 @@ const useUtilityClasses = ownerState => {
|
|
|
81
81
|
fullWidth,
|
|
82
82
|
hiddenLabel,
|
|
83
83
|
multiline,
|
|
84
|
+
readOnly,
|
|
84
85
|
size,
|
|
85
86
|
startAdornment,
|
|
86
87
|
type
|
|
87
88
|
} = ownerState;
|
|
88
89
|
const slots = {
|
|
89
|
-
root: ['root', `color${(0, _capitalize.default)(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel'],
|
|
90
|
-
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd']
|
|
90
|
+
root: ['root', `color${(0, _capitalize.default)(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
91
|
+
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
91
92
|
};
|
|
92
93
|
return (0, _base.unstable_composeClasses)(slots, _inputBaseClasses.getInputBaseUtilityClass, classes);
|
|
93
94
|
};
|
|
@@ -12,6 +12,6 @@ function getInputBaseUtilityClass(slot) {
|
|
|
12
12
|
return (0, _base.generateUtilityClass)('MuiInputBase', slot);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const inputBaseClasses = (0, _base.generateUtilityClasses)('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
15
|
+
const inputBaseClasses = (0, _base.generateUtilityClasses)('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
16
16
|
var _default = inputBaseClasses;
|
|
17
17
|
exports.default = _default;
|
package/node/Modal/Modal.js
CHANGED
|
@@ -162,7 +162,8 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
165
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
165
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
166
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
166
167
|
* @default styled(Backdrop, {
|
|
167
168
|
* name: 'MuiModal',
|
|
168
169
|
* slot: 'Backdrop',
|
package/node/Popper/Popper.js
CHANGED
|
@@ -82,6 +82,30 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
82
82
|
/* @typescript-to-proptypes-ignore */
|
|
83
83
|
.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* @ignore
|
|
87
|
+
*/
|
|
88
|
+
component: _propTypes.default
|
|
89
|
+
/* @typescript-to-proptypes-ignore */
|
|
90
|
+
.elementType,
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The components used for each slot inside the Popper.
|
|
94
|
+
* Either a string to use a HTML element or a component.
|
|
95
|
+
* @default {}
|
|
96
|
+
*/
|
|
97
|
+
components: _propTypes.default.shape({
|
|
98
|
+
Root: _propTypes.default.elementType
|
|
99
|
+
}),
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* The props used for each slot inside the Popper.
|
|
103
|
+
* @default {}
|
|
104
|
+
*/
|
|
105
|
+
componentsProps: _propTypes.default.shape({
|
|
106
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
|
107
|
+
}),
|
|
108
|
+
|
|
85
109
|
/**
|
|
86
110
|
* An HTML element or function that returns one.
|
|
87
111
|
* The `container` will have the portal children appended to it.
|
|
@@ -533,7 +533,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
533
533
|
onFocus: onFocus
|
|
534
534
|
}, SelectDisplayProps, {
|
|
535
535
|
ownerState: ownerState,
|
|
536
|
-
className: (0, _clsx.default)(classes.select, className
|
|
536
|
+
className: (0, _clsx.default)(SelectDisplayProps.className, classes.select, className) // The id is required for proper a11y
|
|
537
537
|
,
|
|
538
538
|
id: buttonId,
|
|
539
539
|
children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
|
package/node/Slider/Slider.js
CHANGED
|
@@ -314,7 +314,6 @@ const SliderValueLabel = (0, _styled.default)(_SliderUnstyled.SliderValueLabelUn
|
|
|
314
314
|
transition: theme.transitions.create(['transform'], {
|
|
315
315
|
duration: theme.transitions.duration.shortest
|
|
316
316
|
}),
|
|
317
|
-
transformOrigin: 'bottom center',
|
|
318
317
|
transform: 'translateY(-100%) scale(0)',
|
|
319
318
|
position: 'absolute',
|
|
320
319
|
backgroundColor: (theme.vars || theme).palette.grey[600],
|
|
@@ -326,6 +325,7 @@ const SliderValueLabel = (0, _styled.default)(_SliderUnstyled.SliderValueLabelUn
|
|
|
326
325
|
padding: '0.25rem 0.75rem'
|
|
327
326
|
}, ownerState.orientation === 'horizontal' && {
|
|
328
327
|
top: '-10px',
|
|
328
|
+
transformOrigin: 'bottom center',
|
|
329
329
|
'&:before': {
|
|
330
330
|
position: 'absolute',
|
|
331
331
|
content: '""',
|
|
@@ -338,7 +338,8 @@ const SliderValueLabel = (0, _styled.default)(_SliderUnstyled.SliderValueLabelUn
|
|
|
338
338
|
}
|
|
339
339
|
}, ownerState.orientation === 'vertical' && {
|
|
340
340
|
right: '30px',
|
|
341
|
-
top: '
|
|
341
|
+
top: '24px',
|
|
342
|
+
transformOrigin: 'right center',
|
|
342
343
|
'&:before': {
|
|
343
344
|
position: 'absolute',
|
|
344
345
|
content: '""',
|
package/node/Stack/Stack.js
CHANGED
|
@@ -67,7 +67,8 @@ const style = ({
|
|
|
67
67
|
theme
|
|
68
68
|
}) => {
|
|
69
69
|
let styles = (0, _extends2.default)({
|
|
70
|
-
display: 'flex'
|
|
70
|
+
display: 'flex',
|
|
71
|
+
flexDirection: 'column'
|
|
71
72
|
}, (0, _system.handleBreakpoints)({
|
|
72
73
|
theme
|
|
73
74
|
}, (0, _system.unstable_resolveBreakpointValues)({
|
|
@@ -95,6 +96,17 @@ const style = ({
|
|
|
95
96
|
base
|
|
96
97
|
});
|
|
97
98
|
|
|
99
|
+
if (typeof directionValues === 'object') {
|
|
100
|
+
Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {
|
|
101
|
+
const directionValue = directionValues[breakpoint];
|
|
102
|
+
|
|
103
|
+
if (!directionValue) {
|
|
104
|
+
const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';
|
|
105
|
+
directionValues[breakpoint] = previousDirectionValue;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
98
110
|
const styleFromPropValue = (propValue, breakpoint) => {
|
|
99
111
|
return {
|
|
100
112
|
'& > :not(style) + :not(style)': {
|
|
@@ -109,6 +121,7 @@ const style = ({
|
|
|
109
121
|
}, spacingValues, styleFromPropValue));
|
|
110
122
|
}
|
|
111
123
|
|
|
124
|
+
styles = (0, _system.mergeBreakpointsInOrder)(theme.breakpoints, styles);
|
|
112
125
|
return styles;
|
|
113
126
|
};
|
|
114
127
|
|
package/node/Tabs/Tabs.js
CHANGED
|
@@ -802,7 +802,9 @@ process.env.NODE_ENV !== "production" ? Tabs.propTypes
|
|
|
802
802
|
* Determines the color of the indicator.
|
|
803
803
|
* @default 'primary'
|
|
804
804
|
*/
|
|
805
|
-
indicatorColor: _propTypes.default
|
|
805
|
+
indicatorColor: _propTypes.default
|
|
806
|
+
/* @typescript-to-proptypes-ignore */
|
|
807
|
+
.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
|
|
806
808
|
|
|
807
809
|
/**
|
|
808
810
|
* Callback fired when the value changes.
|
package/node/Tooltip/Tooltip.js
CHANGED
|
@@ -371,15 +371,12 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
371
371
|
const handleEnter = event => {
|
|
372
372
|
if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {
|
|
373
373
|
return;
|
|
374
|
-
} // Workaround for https://github.com/facebook/react/issues/7769
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
if (!childNode) {
|
|
378
|
-
setChildNode(event.currentTarget);
|
|
379
374
|
} // Remove the title ahead of time.
|
|
380
375
|
// We don't want to wait for the next render commit.
|
|
381
376
|
// We would risk displaying two tooltips at the same time (native + this one).
|
|
382
|
-
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
if (childNode) {
|
|
383
380
|
childNode.removeAttribute('title');
|
|
384
381
|
}
|
|
385
382
|
|
|
@@ -424,6 +421,8 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
|
|
|
424
421
|
|
|
425
422
|
const handleFocus = event => {
|
|
426
423
|
// Workaround for https://github.com/facebook/react/issues/7769
|
|
424
|
+
// The autoFocus of React might trigger the event before the componentDidMount.
|
|
425
|
+
// We need to account for this eventuality.
|
|
427
426
|
if (!childNode) {
|
|
428
427
|
setChildNode(event.currentTarget);
|
|
429
428
|
}
|
package/node/index.js
CHANGED
|
@@ -40,6 +40,12 @@ function createTheme(options = {}, ...args) {
|
|
|
40
40
|
typography: typographyInput = {}
|
|
41
41
|
} = options,
|
|
42
42
|
other = (0, _objectWithoutPropertiesLoose2.default)(options, _excluded);
|
|
43
|
+
|
|
44
|
+
if (options.vars) {
|
|
45
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
46
|
+
Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
const palette = (0, _createPalette.default)(paletteInput);
|
|
44
50
|
const systemTheme = (0, _system.createTheme)(options);
|
|
45
51
|
let muiTheme = (0, _utils.deepmerge)(systemTheme, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -46,16 +46,16 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.17.2",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/system": "^5.9.
|
|
51
|
-
"@mui/types": "^7.1.
|
|
52
|
-
"@mui/utils": "^5.9.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.92",
|
|
50
|
+
"@mui/system": "^5.9.3",
|
|
51
|
+
"@mui/types": "^7.1.5",
|
|
52
|
+
"@mui/utils": "^5.9.3",
|
|
53
53
|
"@types/react-transition-group": "^4.4.5",
|
|
54
54
|
"clsx": "^1.2.1",
|
|
55
55
|
"csstype": "^3.1.0",
|
|
56
56
|
"prop-types": "^15.8.1",
|
|
57
57
|
"react-is": "^18.2.0",
|
|
58
|
-
"react-transition-group": "^4.4.
|
|
58
|
+
"react-transition-group": "^4.4.5"
|
|
59
59
|
},
|
|
60
60
|
"sideEffects": false,
|
|
61
61
|
"publishConfig": {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
-
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
-
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
-
theme?: {
|
|
6
|
-
cssVarPrefix?: string | undefined;
|
|
7
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
-
} | undefined;
|
|
9
|
-
documentNode?: Document | null | undefined;
|
|
10
|
-
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
-
colorSchemeSelector?: string | undefined;
|
|
12
|
-
storageWindow?: Window | null | undefined;
|
|
13
|
-
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
-
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
+
declare const shouldSkipGeneratingVar: (keys: string[]) => boolean;
|
|
4
|
+
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
5
|
+
theme?: {
|
|
6
|
+
cssVarPrefix?: string | undefined;
|
|
7
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
8
|
+
} | undefined;
|
|
9
|
+
documentNode?: Document | null | undefined;
|
|
10
|
+
colorSchemeNode?: Document | HTMLElement | null | undefined;
|
|
11
|
+
colorSchemeSelector?: string | undefined;
|
|
12
|
+
storageWindow?: Window | null | undefined;
|
|
13
|
+
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
14
|
+
export { useColorScheme, getInitColorSchemeScript, shouldSkipGeneratingVar, CssVarsProvider as Experimental_CssVarsProvider, };
|
package/styles/createTheme.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@mui/utils";
|
|
3
4
|
const _excluded = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
4
5
|
import { deepmerge } from '@mui/utils';
|
|
5
6
|
import { generateUtilityClass } from '@mui/base';
|
|
@@ -20,6 +21,11 @@ function createTheme(options = {}, ...args) {
|
|
|
20
21
|
} = options,
|
|
21
22
|
other = _objectWithoutPropertiesLoose(options, _excluded);
|
|
22
23
|
|
|
24
|
+
if (options.vars) {
|
|
25
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
26
|
+
Please use another name.` : _formatMuiErrorMessage(18));
|
|
27
|
+
}
|
|
28
|
+
|
|
23
29
|
const palette = createPalette(paletteInput);
|
|
24
30
|
const systemTheme = systemCreateTheme(options);
|
|
25
31
|
let muiTheme = deepmerge(systemTheme, {
|
package/transitions/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './transition';
|
|
1
|
+
export * from './transition';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
-
export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
-
export interface EasingProps {
|
|
6
|
-
easing: string | {
|
|
7
|
-
enter?: string;
|
|
8
|
-
exit?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
-
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
-
}
|
|
1
|
+
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
+
export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
+
export interface EasingProps {
|
|
6
|
+
easing: string | {
|
|
7
|
+
enter?: string;
|
|
8
|
+
exit?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|