@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.
Files changed (239) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/AppBar.d.ts +1 -1
  10. package/AppBar/appBarClasses.d.ts +28 -28
  11. package/Autocomplete/Autocomplete.js +2 -0
  12. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  13. package/Avatar/avatarClasses.d.ts +20 -20
  14. package/AvatarGroup/AvatarGroup.js +2 -2
  15. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  16. package/Backdrop/backdropClasses.d.ts +10 -10
  17. package/Badge/Badge.js +9 -7
  18. package/Badge/badgeClasses.d.ts +24 -24
  19. package/BottomNavigation/BottomNavigation.d.ts +1 -1
  20. package/BottomNavigation/BottomNavigation.js +1 -1
  21. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  22. package/BottomNavigationAction/BottomNavigationAction.d.ts +1 -1
  23. package/BottomNavigationAction/BottomNavigationAction.js +6 -5
  24. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  25. package/Box/Box.d.ts +9 -28
  26. package/Box/Box.js +25 -4
  27. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  28. package/Button/Button.d.ts +1 -1
  29. package/Button/buttonClasses.d.ts +76 -76
  30. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  31. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  32. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  33. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  34. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  35. package/CHANGELOG.md +185 -2
  36. package/Card/cardClasses.d.ts +8 -8
  37. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  38. package/CardActions/cardActionsClasses.d.ts +10 -10
  39. package/CardContent/cardContentClasses.d.ts +8 -8
  40. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  41. package/CardMedia/cardMediaClasses.d.ts +12 -12
  42. package/Checkbox/Checkbox.d.ts +1 -1
  43. package/Checkbox/checkboxClasses.d.ts +18 -18
  44. package/Chip/chipClasses.d.ts +80 -80
  45. package/CircularProgress/CircularProgress.js +1 -1
  46. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  47. package/ClickAwayListener/index.d.ts +2 -2
  48. package/Collapse/collapseClasses.d.ts +18 -18
  49. package/Container/containerClasses.d.ts +22 -22
  50. package/CssBaseline/CssBaseline.d.ts +1 -1
  51. package/Dialog/Dialog.d.ts +1 -0
  52. package/Dialog/Dialog.js +1 -0
  53. package/Dialog/DialogContext.d.ts +6 -6
  54. package/Dialog/dialogClasses.d.ts +36 -36
  55. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  56. package/DialogContent/dialogContentClasses.d.ts +10 -10
  57. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  58. package/DialogTitle/DialogTitle.d.ts +30 -15
  59. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  60. package/Divider/dividerClasses.d.ts +34 -34
  61. package/Drawer/drawerClasses.d.ts +30 -30
  62. package/Fab/Fab.d.ts +1 -1
  63. package/Fab/fabClasses.d.ts +26 -26
  64. package/FilledInput/FilledInput.d.ts +1 -1
  65. package/FilledInput/FilledInput.js +6 -2
  66. package/FilledInput/filledInputClasses.d.ts +40 -40
  67. package/FormControl/FormControl.d.ts +2 -2
  68. package/FormControl/formControlClasses.d.ts +14 -14
  69. package/FormControlLabel/FormControlLabel.d.ts +1 -1
  70. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  71. package/FormGroup/formGroupClasses.d.ts +12 -12
  72. package/FormHelperText/FormHelperText.d.ts +1 -1
  73. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  74. package/FormLabel/FormLabel.d.ts +1 -1
  75. package/FormLabel/formLabelClasses.d.ts +22 -22
  76. package/GlobalStyles/GlobalStyles.d.ts +1 -1
  77. package/Grid/gridClasses.d.ts +48 -48
  78. package/Icon/Icon.d.ts +1 -1
  79. package/Icon/iconClasses.d.ts +24 -24
  80. package/IconButton/iconButtonClasses.d.ts +26 -26
  81. package/ImageList/ImageList.d.ts +1 -1
  82. package/ImageList/imageListClasses.d.ts +16 -16
  83. package/ImageListItem/ImageListItem.d.ts +1 -1
  84. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  85. package/ImageListItemBar/ImageListItemBar.d.ts +1 -1
  86. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  87. package/Input/Input.d.ts +1 -1
  88. package/Input/Input.js +3 -1
  89. package/Input/inputClasses.d.ts +34 -34
  90. package/InputAdornment/InputAdornment.d.ts +1 -1
  91. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  92. package/InputBase/InputBase.d.ts +1 -1
  93. package/InputBase/inputBaseClasses.d.ts +44 -44
  94. package/InputLabel/InputLabel.d.ts +1 -1
  95. package/InputLabel/inputLabelClasses.d.ts +32 -32
  96. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  97. package/Link/linkClasses.d.ts +18 -18
  98. package/List/List.d.ts +1 -1
  99. package/List/listClasses.d.ts +14 -14
  100. package/ListItem/ListItem.d.ts +1 -1
  101. package/ListItem/listItemClasses.d.ts +30 -30
  102. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  103. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  104. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  105. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  106. package/ListItemText/listItemTextClasses.d.ts +18 -18
  107. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  108. package/Menu/Menu.d.ts +1 -1
  109. package/Menu/menuClasses.d.ts +12 -12
  110. package/MenuItem/menuItemClasses.d.ts +20 -20
  111. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  112. package/Modal/Modal.js +1 -0
  113. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  114. package/OutlinedInput/OutlinedInput.d.ts +1 -1
  115. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  116. package/Pagination/paginationClasses.d.ts +14 -14
  117. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  118. package/Paper/paperClasses.d.ts +39 -39
  119. package/Popover/popoverClasses.d.ts +10 -10
  120. package/Popper/Popper.d.ts +29 -29
  121. package/README.md +79 -33
  122. package/Radio/Radio.d.ts +1 -1
  123. package/Radio/radioClasses.d.ts +16 -16
  124. package/RadioGroup/RadioGroup.d.ts +1 -1
  125. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  126. package/RadioGroup/useRadioGroup.d.ts +4 -4
  127. package/Rating/ratingClasses.d.ts +40 -40
  128. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +1 -1
  129. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  130. package/Select/selectClasses.d.ts +30 -30
  131. package/Skeleton/skeletonClasses.d.ts +24 -24
  132. package/Snackbar/snackbarClasses.d.ts +20 -20
  133. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  134. package/SpeedDial/SpeedDial.d.ts +1 -1
  135. package/SpeedDial/speedDialClasses.d.ts +22 -22
  136. package/SpeedDialAction/SpeedDialAction.d.ts +1 -1
  137. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  138. package/SpeedDialIcon/SpeedDialIcon.d.ts +1 -1
  139. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  140. package/Step/StepContext.d.ts +20 -20
  141. package/Step/stepClasses.d.ts +16 -16
  142. package/StepButton/stepButtonClasses.d.ts +14 -14
  143. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  144. package/StepContent/StepContent.d.ts +3 -1
  145. package/StepContent/stepContentClasses.d.ts +12 -12
  146. package/StepIcon/stepIconClasses.d.ts +16 -16
  147. package/StepLabel/stepLabelClasses.d.ts +28 -28
  148. package/Stepper/stepperClasses.d.ts +14 -14
  149. package/SvgIcon/SvgIcon.d.ts +1 -1
  150. package/SvgIcon/svgIconClasses.d.ts +24 -24
  151. package/Switch/Switch.d.ts +1 -1
  152. package/Switch/switchClasses.d.ts +32 -32
  153. package/Tab/tabClasses.d.ts +26 -26
  154. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  155. package/Table/tableClasses.d.ts +10 -10
  156. package/TableBody/tableBodyClasses.d.ts +8 -8
  157. package/TableCell/tableCellClasses.d.ts +32 -32
  158. package/TableContainer/tableContainerClasses.d.ts +8 -8
  159. package/TableFooter/tableFooterClasses.d.ts +8 -8
  160. package/TableHead/tableHeadClasses.d.ts +8 -8
  161. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  162. package/TableRow/tableRowClasses.d.ts +16 -16
  163. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  164. package/Tabs/Tabs.d.ts +1 -1
  165. package/Tabs/tabsClasses.d.ts +32 -32
  166. package/TextField/TextField.d.ts +1 -1
  167. package/TextField/textFieldClasses.d.ts +8 -8
  168. package/ToggleButton/ToggleButton.d.ts +1 -1
  169. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  170. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  171. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  172. package/Toolbar/Toolbar.d.ts +1 -1
  173. package/Toolbar/toolbarClasses.d.ts +14 -14
  174. package/Tooltip/tooltipClasses.d.ts +30 -30
  175. package/Typography/typographyClasses.d.ts +50 -50
  176. package/className/index.d.ts +8 -8
  177. package/darkScrollbar/index.d.ts +28 -28
  178. package/index.js +1 -1
  179. package/internal/switchBaseClasses.d.ts +12 -12
  180. package/legacy/Accordion/Accordion.js +6 -6
  181. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  182. package/legacy/Autocomplete/Autocomplete.js +2 -0
  183. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  184. package/legacy/Badge/Badge.js +9 -7
  185. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  186. package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
  187. package/legacy/Box/Box.js +25 -4
  188. package/legacy/CircularProgress/CircularProgress.js +1 -1
  189. package/legacy/Dialog/Dialog.js +1 -0
  190. package/legacy/FilledInput/FilledInput.js +5 -3
  191. package/legacy/Input/Input.js +3 -1
  192. package/legacy/Modal/Modal.js +1 -0
  193. package/legacy/index.js +1 -1
  194. package/legacy/locale/index.js +1 -1
  195. package/locale/index.d.ts +71 -71
  196. package/locale/index.js +1 -1
  197. package/modern/Accordion/Accordion.js +6 -6
  198. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  199. package/modern/Autocomplete/Autocomplete.js +2 -0
  200. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  201. package/modern/Badge/Badge.js +9 -7
  202. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  203. package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
  204. package/modern/Box/Box.js +25 -4
  205. package/modern/CircularProgress/CircularProgress.js +1 -1
  206. package/modern/Dialog/Dialog.js +1 -0
  207. package/modern/FilledInput/FilledInput.js +4 -2
  208. package/modern/Input/Input.js +3 -1
  209. package/modern/Modal/Modal.js +1 -0
  210. package/modern/index.js +1 -1
  211. package/modern/locale/index.js +1 -1
  212. package/node/Accordion/Accordion.js +6 -6
  213. package/node/AccordionSummary/AccordionSummary.js +3 -3
  214. package/node/Autocomplete/Autocomplete.js +2 -0
  215. package/node/AvatarGroup/AvatarGroup.js +2 -2
  216. package/node/Badge/Badge.js +10 -7
  217. package/node/BottomNavigation/BottomNavigation.js +1 -1
  218. package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
  219. package/node/Box/Box.js +28 -4
  220. package/node/CircularProgress/CircularProgress.js +1 -1
  221. package/node/Dialog/Dialog.js +1 -0
  222. package/node/FilledInput/FilledInput.js +6 -2
  223. package/node/Input/Input.js +3 -1
  224. package/node/Modal/Modal.js +1 -0
  225. package/node/index.js +1 -1
  226. package/node/locale/index.js +1 -1
  227. package/package.json +4 -4
  228. package/transitions/index.d.ts +1 -1
  229. package/transitions/transition.d.ts +13 -13
  230. package/transitions/utils.d.ts +23 -23
  231. package/umd/material-ui.development.js +181 -156
  232. package/umd/material-ui.production.min.js +20 -20
  233. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  234. package/useTouchRipple/index.d.ts +1 -1
  235. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  236. package/utils/getScrollbarSize.d.ts +2 -2
  237. package/utils/ownerDocument.d.ts +2 -2
  238. package/utils/ownerWindow.d.ts +2 -2
  239. 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: '6px 12px 8px',
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: 16
52
+ paddingTop: 14
53
+ }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
54
+ paddingTop: 0
53
55
  }, {
54
56
  [`&.${bottomNavigationActionClasses.selected}`]: {
55
- paddingTop: 6,
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`
@@ -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].main}`,
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
- transform: 'scaleX(1)'
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,
@@ -65,7 +65,9 @@ const InputRoot = styled(InputBaseRoot, {
65
65
 
66
66
  },
67
67
  [`&.${inputClasses.focused}:after`]: {
68
- transform: 'scaleX(1)'
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,
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.1
1
+ /** @license MUI v5.6.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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': {
@@ -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 extendUtilityClasses = ownerState => {
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
- return {
55
- root: (0, _clsx.default)(classes.root, 'root'),
56
- badge: (0, _clsx.default)(classes.badge, (0, _badgeClasses.getBadgeUtilityClass)('badge'), (0, _badgeClasses.getBadgeUtilityClass)(variant), `anchorOrigin${(0, _capitalize.default)(anchorOrigin.vertical)}${(0, _capitalize.default)(anchorOrigin.horizontal)}`, (0, _badgeClasses.getBadgeUtilityClass)(`anchorOrigin${(0, _capitalize.default)(anchorOrigin.vertical)}${(0, _capitalize.default)(anchorOrigin.horizontal)}${(0, _capitalize.default)(overlap)}`), (0, _badgeClasses.getBadgeUtilityClass)(`overlap${(0, _capitalize.default)(overlap)}`), color !== 'default' && [(0, _badgeClasses.getBadgeUtilityClass)(`color${(0, _capitalize.default)(color)}`), classes[`color${(0, _capitalize.default)(color)}`]], invisible && (0, _badgeClasses.getBadgeUtilityClass)('invisible'))
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 = extendUtilityClasses(ownerState);
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: '6px 12px 8px',
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: 16
76
+ paddingTop: 14
77
+ }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
78
+ paddingTop: 0
77
79
  }, {
78
80
  [`&.${_bottomNavigationActionClasses.default.selected}`]: {
79
- paddingTop: 6,
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)`
@@ -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
- transform: 'scaleX(1)'
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,
@@ -90,7 +90,9 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
90
90
 
91
91
  },
92
92
  [`&.${_inputClasses.default.focused}:after`]: {
93
- transform: 'scaleX(1)'
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,
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.1
1
+ /** @license MUI v5.6.4
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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.1",
3
+ "version": "5.6.4",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
- "description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.",
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.76",
50
- "@mui/system": "^5.6.1",
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",
@@ -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
+ }
@@ -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 {};