@mui/material 5.6.1 → 5.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +6 -6
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/AppBar.d.ts +1 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +2 -0
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +9 -7
- package/Badge/badgeClasses.d.ts +24 -24
- package/BottomNavigation/BottomNavigation.d.ts +1 -1
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.d.ts +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.d.ts +9 -28
- package/Box/Box.js +25 -4
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.d.ts +1 -1
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +185 -2
- 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.d.ts +1 -1
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/CircularProgress.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 +22 -22
- package/CssBaseline/CssBaseline.d.ts +1 -1
- package/Dialog/Dialog.d.ts +1 -0
- package/Dialog/Dialog.js +1 -0
- 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/DialogTitle.d.ts +30 -15
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.d.ts +1 -1
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.d.ts +1 -1
- package/FilledInput/FilledInput.js +6 -2
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.d.ts +2 -2
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.d.ts +1 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.d.ts +1 -1
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/GlobalStyles/GlobalStyles.d.ts +1 -1
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.d.ts +1 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/ImageList.d.ts +1 -1
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/ImageListItem.d.ts +1 -1
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.d.ts +1 -1
- package/Input/Input.js +3 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.d.ts +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +1 -1
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/InputLabel.d.ts +1 -1
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/List.d.ts +1 -1
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.d.ts +1 -1
- 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/Menu.d.ts +1 -1
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -0
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/OutlinedInput.d.ts +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- 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 +29 -29
- package/README.md +79 -33
- package/Radio/Radio.d.ts +1 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroup.d.ts +1 -1
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
- 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/StepContent.d.ts +3 -1
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.d.ts +1 -1
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/Switch.d.ts +1 -1
- 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 +1 -1
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.d.ts +1 -1
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.d.ts +1 -1
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/Toolbar.d.ts +1 -1
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +8 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +6 -6
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Autocomplete/Autocomplete.js +2 -0
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Badge/Badge.js +9 -7
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/legacy/Box/Box.js +25 -4
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/Dialog/Dialog.js +1 -0
- package/legacy/FilledInput/FilledInput.js +5 -3
- package/legacy/Input/Input.js +3 -1
- package/legacy/Modal/Modal.js +1 -0
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +1 -1
- package/locale/index.d.ts +71 -71
- package/locale/index.js +1 -1
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +2 -0
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Badge/Badge.js +9 -7
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/modern/Box/Box.js +25 -4
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/Dialog/Dialog.js +1 -0
- package/modern/FilledInput/FilledInput.js +4 -2
- package/modern/Input/Input.js +3 -1
- package/modern/Modal/Modal.js +1 -0
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/node/Accordion/Accordion.js +6 -6
- package/node/AccordionSummary/AccordionSummary.js +3 -3
- package/node/Autocomplete/Autocomplete.js +2 -0
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Badge/Badge.js +10 -7
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/node/Box/Box.js +28 -4
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/Dialog/Dialog.js +1 -0
- package/node/FilledInput/FilledInput.js +6 -2
- package/node/Input/Input.js +3 -1
- package/node/Modal/Modal.js +1 -0
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/package.json +4 -4
- 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 +181 -156
- 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
|
@@ -42,18 +42,19 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
|
|
|
42
42
|
transition: theme.transitions.create(['color', 'padding-top'], {
|
|
43
43
|
duration: theme.transitions.duration.short
|
|
44
44
|
}),
|
|
45
|
-
padding: '
|
|
45
|
+
padding: '0px 12px',
|
|
46
46
|
minWidth: 80,
|
|
47
47
|
maxWidth: 168,
|
|
48
|
-
color: theme.palette.text.secondary,
|
|
48
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
49
49
|
flexDirection: 'column',
|
|
50
50
|
flex: '1'
|
|
51
51
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
52
|
-
paddingTop:
|
|
52
|
+
paddingTop: 14
|
|
53
|
+
}, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
|
|
54
|
+
paddingTop: 0
|
|
53
55
|
}, {
|
|
54
56
|
[`&.${bottomNavigationActionClasses.selected}`]: {
|
|
55
|
-
|
|
56
|
-
color: theme.palette.primary.main
|
|
57
|
+
color: (theme.vars || theme).palette.primary.main
|
|
57
58
|
}
|
|
58
59
|
}));
|
|
59
60
|
const BottomNavigationActionLabel = styled('span', {
|
package/modern/Box/Box.js
CHANGED
|
@@ -1,14 +1,35 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
1
2
|
import { createBox } from '@mui/system';
|
|
2
3
|
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
|
3
4
|
import { createTheme } from '../styles';
|
|
4
5
|
const defaultTheme = createTheme();
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
6
|
const Box = createBox({
|
|
10
7
|
defaultTheme,
|
|
11
8
|
defaultClassName: 'MuiBox-root',
|
|
12
9
|
generateClassName: ClassNameGenerator.generate
|
|
13
10
|
});
|
|
11
|
+
process.env.NODE_ENV !== "production" ? Box.propTypes
|
|
12
|
+
/* remove-proptypes */
|
|
13
|
+
= {
|
|
14
|
+
// ----------------------------- Warning --------------------------------
|
|
15
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
16
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
17
|
+
// ----------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @ignore
|
|
21
|
+
*/
|
|
22
|
+
children: PropTypes.node,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The component used for the root node.
|
|
26
|
+
* Either a string to use a HTML element or a component.
|
|
27
|
+
*/
|
|
28
|
+
component: PropTypes.elementType,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
32
|
+
*/
|
|
33
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
34
|
+
} : void 0;
|
|
14
35
|
export default Box;
|
|
@@ -71,7 +71,7 @@ const CircularProgressRoot = styled('span', {
|
|
|
71
71
|
}, ownerState.variant === 'determinate' && {
|
|
72
72
|
transition: theme.transitions.create('transform')
|
|
73
73
|
}, ownerState.color !== 'inherit' && {
|
|
74
|
-
color: theme.palette[ownerState.color].main
|
|
74
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
75
75
|
}), ({
|
|
76
76
|
ownerState
|
|
77
77
|
}) => ownerState.variant === 'indeterminate' && css`
|
package/modern/Dialog/Dialog.js
CHANGED
|
@@ -351,6 +351,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
351
351
|
|
|
352
352
|
/**
|
|
353
353
|
* Callback fired when the backdrop is clicked.
|
|
354
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
354
355
|
*/
|
|
355
356
|
onBackdropClick: PropTypes.func,
|
|
356
357
|
|
|
@@ -66,7 +66,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
66
66
|
}
|
|
67
67
|
}, !ownerState.disableUnderline && {
|
|
68
68
|
'&:after': {
|
|
69
|
-
borderBottom: `2px solid ${theme.palette[ownerState.color]
|
|
69
|
+
borderBottom: `2px solid ${theme.palette[ownerState.color || 'primary']?.main}`,
|
|
70
70
|
left: 0,
|
|
71
71
|
bottom: 0,
|
|
72
72
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -82,7 +82,9 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
82
82
|
|
|
83
83
|
},
|
|
84
84
|
[`&.${filledInputClasses.focused}:after`]: {
|
|
85
|
-
|
|
85
|
+
// translateX(0) is a workaround for Safari transform scale bug
|
|
86
|
+
// See https://github.com/mui/material-ui/issues/31766
|
|
87
|
+
transform: 'scaleX(1) translateX(0)'
|
|
86
88
|
},
|
|
87
89
|
[`&.${filledInputClasses.error}:after`]: {
|
|
88
90
|
borderBottomColor: theme.palette.error.main,
|
package/modern/Input/Input.js
CHANGED
|
@@ -65,7 +65,9 @@ const InputRoot = styled(InputBaseRoot, {
|
|
|
65
65
|
|
|
66
66
|
},
|
|
67
67
|
[`&.${inputClasses.focused}:after`]: {
|
|
68
|
-
|
|
68
|
+
// translateX(0) is a workaround for Safari transform scale bug
|
|
69
|
+
// See https://github.com/mui/material-ui/issues/31766
|
|
70
|
+
transform: 'scaleX(1) translateX(0)'
|
|
69
71
|
},
|
|
70
72
|
[`&.${inputClasses.error}:after`]: {
|
|
71
73
|
borderBottomColor: theme.palette.error.main,
|
package/modern/Modal/Modal.js
CHANGED
|
@@ -253,6 +253,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
255
|
* Callback fired when the backdrop is clicked.
|
|
256
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
256
257
|
*/
|
|
257
258
|
onBackdropClick: PropTypes.func,
|
|
258
259
|
|
package/modern/index.js
CHANGED
package/modern/locale/index.js
CHANGED
|
@@ -619,7 +619,7 @@ export const csCZ = {
|
|
|
619
619
|
'aria-label': 'Navigace stránkováním',
|
|
620
620
|
getItemAriaLabel: (type, page, selected) => {
|
|
621
621
|
if (type === 'page') {
|
|
622
|
-
return `${selected ? '' : 'Jít na '}${page} stránku`;
|
|
622
|
+
return `${selected ? '' : 'Jít na '}${page}. stránku`;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
if (type === 'first') {
|
|
@@ -90,7 +90,7 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
|
|
|
90
90
|
height: 1,
|
|
91
91
|
content: '""',
|
|
92
92
|
opacity: 1,
|
|
93
|
-
backgroundColor: theme.palette.divider,
|
|
93
|
+
backgroundColor: (theme.vars || theme).palette.divider,
|
|
94
94
|
transition: theme.transitions.create(['opacity', 'background-color'], transition)
|
|
95
95
|
},
|
|
96
96
|
'&:first-of-type': {
|
|
@@ -115,7 +115,7 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
[`&.${_accordionClasses.default.disabled}`]: {
|
|
118
|
-
backgroundColor: theme.palette.action.disabledBackground
|
|
118
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
}, ({
|
|
@@ -124,12 +124,12 @@ const AccordionRoot = (0, _styled.default)(_Paper.default, {
|
|
|
124
124
|
}) => (0, _extends2.default)({}, !ownerState.square && {
|
|
125
125
|
borderRadius: 0,
|
|
126
126
|
'&:first-of-type': {
|
|
127
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
128
|
-
borderTopRightRadius: theme.shape.borderRadius
|
|
127
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
128
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius
|
|
129
129
|
},
|
|
130
130
|
'&:last-of-type': {
|
|
131
|
-
borderBottomLeftRadius: theme.shape.borderRadius,
|
|
132
|
-
borderBottomRightRadius: theme.shape.borderRadius,
|
|
131
|
+
borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
132
|
+
borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
133
133
|
// Fix a rendering issue on Edge
|
|
134
134
|
'@supports (-ms-ime-align: auto)': {
|
|
135
135
|
borderBottomLeftRadius: 0,
|
|
@@ -70,10 +70,10 @@ const AccordionSummaryRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
70
70
|
padding: theme.spacing(0, 2),
|
|
71
71
|
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
|
72
72
|
[`&.${_accordionSummaryClasses.default.focusVisible}`]: {
|
|
73
|
-
backgroundColor: theme.palette.action.focus
|
|
73
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
74
74
|
},
|
|
75
75
|
[`&.${_accordionSummaryClasses.default.disabled}`]: {
|
|
76
|
-
opacity: theme.palette.action.disabledOpacity
|
|
76
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
77
77
|
},
|
|
78
78
|
[`&:hover:not(.${_accordionSummaryClasses.default.disabled})`]: {
|
|
79
79
|
cursor: 'pointer'
|
|
@@ -111,7 +111,7 @@ const AccordionSummaryExpandIconWrapper = (0, _styled.default)('div', {
|
|
|
111
111
|
theme
|
|
112
112
|
}) => ({
|
|
113
113
|
display: 'flex',
|
|
114
|
-
color: theme.palette.action.active,
|
|
114
|
+
color: (theme.vars || theme).palette.action.active,
|
|
115
115
|
transform: 'rotate(0deg)',
|
|
116
116
|
transition: theme.transitions.create('transform', {
|
|
117
117
|
duration: theme.transitions.duration.shortest
|
|
@@ -852,6 +852,8 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
852
852
|
* Used to determine the string value for a given option.
|
|
853
853
|
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|
|
854
854
|
*
|
|
855
|
+
* If used in free solo mode, it must accept both the type of the options and a string.
|
|
856
|
+
*
|
|
855
857
|
* @param {T} option
|
|
856
858
|
* @returns {string}
|
|
857
859
|
* @default (option) => option.label ?? option
|
|
@@ -65,7 +65,7 @@ const AvatarGroupRoot = (0, _styled.default)('div', {
|
|
|
65
65
|
theme
|
|
66
66
|
}) => ({
|
|
67
67
|
[`& .${_Avatar.avatarClasses.root}`]: {
|
|
68
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
68
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
69
69
|
boxSizing: 'content-box',
|
|
70
70
|
marginLeft: -8,
|
|
71
71
|
'&:last-child': {
|
|
@@ -82,7 +82,7 @@ const AvatarGroupAvatar = (0, _styled.default)(_Avatar.default, {
|
|
|
82
82
|
})(({
|
|
83
83
|
theme
|
|
84
84
|
}) => ({
|
|
85
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
85
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
86
86
|
boxSizing: 'content-box',
|
|
87
87
|
marginLeft: -8,
|
|
88
88
|
'&:last-child': {
|
package/node/Badge/Badge.js
CHANGED
|
@@ -19,6 +19,8 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
19
19
|
|
|
20
20
|
var _utils = require("@mui/utils");
|
|
21
21
|
|
|
22
|
+
var _composeClasses = _interopRequireDefault(require("@mui/base/composeClasses"));
|
|
23
|
+
|
|
22
24
|
var _BadgeUnstyled = _interopRequireDefault(require("@mui/base/BadgeUnstyled"));
|
|
23
25
|
|
|
24
26
|
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
@@ -42,7 +44,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
42
44
|
const RADIUS_STANDARD = 10;
|
|
43
45
|
const RADIUS_DOT = 4;
|
|
44
46
|
|
|
45
|
-
const
|
|
47
|
+
const useUtilityClasses = ownerState => {
|
|
46
48
|
const {
|
|
47
49
|
color,
|
|
48
50
|
anchorOrigin,
|
|
@@ -51,10 +53,11 @@ const extendUtilityClasses = ownerState => {
|
|
|
51
53
|
variant,
|
|
52
54
|
classes = {}
|
|
53
55
|
} = ownerState;
|
|
54
|
-
|
|
55
|
-
root:
|
|
56
|
-
badge:
|
|
56
|
+
const slots = {
|
|
57
|
+
root: ['root'],
|
|
58
|
+
badge: ['badge', variant, invisible && 'invisible', `anchorOrigin${(0, _capitalize.default)(anchorOrigin.vertical)}${(0, _capitalize.default)(anchorOrigin.horizontal)}`, `anchorOrigin${(0, _capitalize.default)(anchorOrigin.vertical)}${(0, _capitalize.default)(anchorOrigin.horizontal)}${(0, _capitalize.default)(overlap)}`, `overlap${(0, _capitalize.default)(overlap)}`, color !== 'default' && `color${(0, _capitalize.default)(color)}`]
|
|
57
59
|
};
|
|
60
|
+
return (0, _composeClasses.default)(slots, _badgeClasses.getBadgeUtilityClass, classes);
|
|
58
61
|
};
|
|
59
62
|
|
|
60
63
|
const BadgeRoot = (0, _styled.default)('span', {
|
|
@@ -104,8 +107,8 @@ const BadgeBadge = (0, _styled.default)('span', {
|
|
|
104
107
|
duration: theme.transitions.duration.enteringScreen
|
|
105
108
|
})
|
|
106
109
|
}, ownerState.color !== 'default' && {
|
|
107
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
108
|
-
color: theme.palette[ownerState.color].contrastText
|
|
110
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
111
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
109
112
|
}, ownerState.variant === 'dot' && {
|
|
110
113
|
borderRadius: RADIUS_DOT,
|
|
111
114
|
height: RADIUS_DOT * 2,
|
|
@@ -231,7 +234,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
231
234
|
overlap,
|
|
232
235
|
variant
|
|
233
236
|
});
|
|
234
|
-
const classes =
|
|
237
|
+
const classes = useUtilityClasses(ownerState);
|
|
235
238
|
let displayValue;
|
|
236
239
|
|
|
237
240
|
if (variant !== 'dot') {
|
|
@@ -55,7 +55,7 @@ const BottomNavigationRoot = (0, _styled.default)('div', {
|
|
|
55
55
|
display: 'flex',
|
|
56
56
|
justifyContent: 'center',
|
|
57
57
|
height: 56,
|
|
58
|
-
backgroundColor: theme.palette.background.paper
|
|
58
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
59
59
|
}));
|
|
60
60
|
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
|
61
61
|
const props = (0, _useThemeProps.default)({
|
|
@@ -66,18 +66,19 @@ const BottomNavigationActionRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
66
66
|
transition: theme.transitions.create(['color', 'padding-top'], {
|
|
67
67
|
duration: theme.transitions.duration.short
|
|
68
68
|
}),
|
|
69
|
-
padding: '
|
|
69
|
+
padding: '0px 12px',
|
|
70
70
|
minWidth: 80,
|
|
71
71
|
maxWidth: 168,
|
|
72
|
-
color: theme.palette.text.secondary,
|
|
72
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
73
73
|
flexDirection: 'column',
|
|
74
74
|
flex: '1'
|
|
75
75
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
76
|
-
paddingTop:
|
|
76
|
+
paddingTop: 14
|
|
77
|
+
}, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
|
|
78
|
+
paddingTop: 0
|
|
77
79
|
}, {
|
|
78
80
|
[`&.${_bottomNavigationActionClasses.default.selected}`]: {
|
|
79
|
-
|
|
80
|
-
color: theme.palette.primary.main
|
|
81
|
+
color: (theme.vars || theme).palette.primary.main
|
|
81
82
|
}
|
|
82
83
|
}));
|
|
83
84
|
const BottomNavigationActionLabel = (0, _styled.default)('span', {
|
package/node/Box/Box.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
9
|
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
8
12
|
var _system = require("@mui/system");
|
|
9
13
|
|
|
10
14
|
var _className = require("../className");
|
|
@@ -12,14 +16,34 @@ var _className = require("../className");
|
|
|
12
16
|
var _styles = require("../styles");
|
|
13
17
|
|
|
14
18
|
const defaultTheme = (0, _styles.createTheme)();
|
|
15
|
-
/**
|
|
16
|
-
* @ignore - do not document.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
19
|
const Box = (0, _system.createBox)({
|
|
20
20
|
defaultTheme,
|
|
21
21
|
defaultClassName: 'MuiBox-root',
|
|
22
22
|
generateClassName: _className.unstable_ClassNameGenerator.generate
|
|
23
23
|
});
|
|
24
|
+
process.env.NODE_ENV !== "production" ? Box.propTypes
|
|
25
|
+
/* remove-proptypes */
|
|
26
|
+
= {
|
|
27
|
+
// ----------------------------- Warning --------------------------------
|
|
28
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
29
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
30
|
+
// ----------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @ignore
|
|
34
|
+
*/
|
|
35
|
+
children: _propTypes.default.node,
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The component used for the root node.
|
|
39
|
+
* Either a string to use a HTML element or a component.
|
|
40
|
+
*/
|
|
41
|
+
component: _propTypes.default.elementType,
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45
|
+
*/
|
|
46
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
|
47
|
+
} : void 0;
|
|
24
48
|
var _default = Box;
|
|
25
49
|
exports.default = _default;
|
|
@@ -98,7 +98,7 @@ const CircularProgressRoot = (0, _styled.default)('span', {
|
|
|
98
98
|
}, ownerState.variant === 'determinate' && {
|
|
99
99
|
transition: theme.transitions.create('transform')
|
|
100
100
|
}, ownerState.color !== 'inherit' && {
|
|
101
|
-
color: theme.palette[ownerState.color].main
|
|
101
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
102
102
|
}), ({
|
|
103
103
|
ownerState
|
|
104
104
|
}) => ownerState.variant === 'indeterminate' && (0, _system.css)`
|
package/node/Dialog/Dialog.js
CHANGED
|
@@ -380,6 +380,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
380
380
|
|
|
381
381
|
/**
|
|
382
382
|
* Callback fired when the backdrop is clicked.
|
|
383
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
383
384
|
*/
|
|
384
385
|
onBackdropClick: _propTypes.default.func,
|
|
385
386
|
|
|
@@ -64,6 +64,8 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
64
64
|
theme,
|
|
65
65
|
ownerState
|
|
66
66
|
}) => {
|
|
67
|
+
var _theme$palette;
|
|
68
|
+
|
|
67
69
|
const light = theme.palette.mode === 'light';
|
|
68
70
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
69
71
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
@@ -91,7 +93,7 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
91
93
|
}
|
|
92
94
|
}, !ownerState.disableUnderline && {
|
|
93
95
|
'&:after': {
|
|
94
|
-
borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
|
|
96
|
+
borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
|
|
95
97
|
left: 0,
|
|
96
98
|
bottom: 0,
|
|
97
99
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -107,7 +109,9 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
107
109
|
|
|
108
110
|
},
|
|
109
111
|
[`&.${_filledInputClasses.default.focused}:after`]: {
|
|
110
|
-
|
|
112
|
+
// translateX(0) is a workaround for Safari transform scale bug
|
|
113
|
+
// See https://github.com/mui/material-ui/issues/31766
|
|
114
|
+
transform: 'scaleX(1) translateX(0)'
|
|
111
115
|
},
|
|
112
116
|
[`&.${_filledInputClasses.default.error}:after`]: {
|
|
113
117
|
borderBottomColor: theme.palette.error.main,
|
package/node/Input/Input.js
CHANGED
|
@@ -90,7 +90,9 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
90
90
|
|
|
91
91
|
},
|
|
92
92
|
[`&.${_inputClasses.default.focused}:after`]: {
|
|
93
|
-
|
|
93
|
+
// translateX(0) is a workaround for Safari transform scale bug
|
|
94
|
+
// See https://github.com/mui/material-ui/issues/31766
|
|
95
|
+
transform: 'scaleX(1) translateX(0)'
|
|
94
96
|
},
|
|
95
97
|
[`&.${_inputClasses.default.error}:after`]: {
|
|
96
98
|
borderBottomColor: theme.palette.error.main,
|
package/node/Modal/Modal.js
CHANGED
|
@@ -277,6 +277,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
279
|
* Callback fired when the backdrop is clicked.
|
|
280
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
280
281
|
*/
|
|
281
282
|
onBackdropClick: _propTypes.default.func,
|
|
282
283
|
|
package/node/index.js
CHANGED
package/node/locale/index.js
CHANGED
|
@@ -632,7 +632,7 @@ const csCZ = {
|
|
|
632
632
|
'aria-label': 'Navigace stránkováním',
|
|
633
633
|
getItemAriaLabel: (type, page, selected) => {
|
|
634
634
|
if (type === 'page') {
|
|
635
|
-
return `${selected ? '' : 'Jít na '}${page} stránku`;
|
|
635
|
+
return `${selected ? '' : 'Jít na '}${page}. stránku`;
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
if (type === 'first') {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "React components that implement Google's Material Design.",
|
|
7
7
|
"main": "./node/index.js",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.17.2",
|
|
49
|
-
"@mui/base": "5.0.0-alpha.
|
|
50
|
-
"@mui/system": "^5.6.
|
|
49
|
+
"@mui/base": "5.0.0-alpha.79",
|
|
50
|
+
"@mui/system": "^5.6.4",
|
|
51
51
|
"@mui/types": "^7.1.3",
|
|
52
52
|
"@mui/utils": "^5.6.1",
|
|
53
53
|
"@types/react-transition-group": "^4.4.4",
|
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 {};
|