@mui/material 5.5.2 → 5.5.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.
Files changed (315) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.d.ts +3 -1
  6. package/Alert/Alert.js +3 -1
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/AppBar.d.ts +3 -1
  10. package/AppBar/AppBar.js +3 -1
  11. package/AppBar/appBarClasses.d.ts +28 -28
  12. package/Autocomplete/Autocomplete.js +1 -1
  13. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  14. package/Avatar/avatarClasses.d.ts +20 -20
  15. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  16. package/Backdrop/Backdrop.d.ts +32 -15
  17. package/Backdrop/Backdrop.js +26 -20
  18. package/Backdrop/backdropClasses.d.ts +10 -0
  19. package/Backdrop/backdropClasses.js +6 -0
  20. package/Backdrop/index.d.ts +3 -0
  21. package/Backdrop/index.js +2 -1
  22. package/Badge/Badge.d.ts +3 -1
  23. package/Badge/Badge.js +3 -1
  24. package/BottomNavigation/BottomNavigation.js +0 -0
  25. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  26. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  27. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  28. package/Button/Button.d.ts +3 -1
  29. package/Button/Button.js +3 -1
  30. package/Button/buttonClasses.d.ts +76 -76
  31. package/ButtonBase/ButtonBase.js +7 -7
  32. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  33. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  34. package/ButtonGroup/ButtonGroup.d.ts +3 -1
  35. package/ButtonGroup/ButtonGroup.js +3 -1
  36. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  37. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  38. package/CHANGELOG.md +98 -0
  39. package/Card/Card.d.ts +1 -0
  40. package/Card/cardClasses.d.ts +8 -8
  41. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  42. package/CardActions/cardActionsClasses.d.ts +10 -10
  43. package/CardContent/cardContentClasses.d.ts +8 -8
  44. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  45. package/CardMedia/cardMediaClasses.d.ts +12 -12
  46. package/Checkbox/Checkbox.d.ts +3 -1
  47. package/Checkbox/Checkbox.js +3 -1
  48. package/Checkbox/checkboxClasses.d.ts +18 -18
  49. package/Chip/Chip.d.ts +3 -1
  50. package/Chip/Chip.js +3 -1
  51. package/Chip/chipClasses.d.ts +80 -80
  52. package/CircularProgress/CircularProgress.d.ts +3 -1
  53. package/CircularProgress/CircularProgress.js +3 -1
  54. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  55. package/ClickAwayListener/index.d.ts +2 -2
  56. package/Collapse/collapseClasses.d.ts +18 -18
  57. package/Container/containerClasses.d.ts +22 -22
  58. package/Dialog/DialogContext.d.ts +6 -6
  59. package/Dialog/dialogClasses.d.ts +36 -36
  60. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  61. package/DialogContent/dialogContentClasses.d.ts +10 -10
  62. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  63. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  64. package/Divider/dividerClasses.d.ts +34 -34
  65. package/Drawer/drawerClasses.d.ts +30 -30
  66. package/Fab/Fab.d.ts +3 -1
  67. package/Fab/Fab.js +3 -1
  68. package/Fab/fabClasses.d.ts +26 -26
  69. package/FilledInput/FilledInput.js +3 -1
  70. package/FilledInput/filledInputClasses.d.ts +40 -40
  71. package/FormControl/FormControl.d.ts +3 -1
  72. package/FormControl/FormControl.js +3 -1
  73. package/FormControl/formControlClasses.d.ts +14 -14
  74. package/FormControlLabel/FormControlLabel.d.ts +1 -1
  75. package/FormControlLabel/FormControlLabel.js +14 -9
  76. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  77. package/FormGroup/formGroupClasses.d.ts +12 -12
  78. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  79. package/FormLabel/FormLabel.d.ts +3 -1
  80. package/FormLabel/FormLabel.js +3 -1
  81. package/FormLabel/formLabelClasses.d.ts +22 -22
  82. package/Grid/gridClasses.d.ts +48 -48
  83. package/Grow/Grow.js +11 -5
  84. package/Icon/Icon.d.ts +3 -1
  85. package/Icon/Icon.js +3 -1
  86. package/Icon/iconClasses.d.ts +24 -24
  87. package/IconButton/IconButton.d.ts +3 -1
  88. package/IconButton/IconButton.js +3 -1
  89. package/IconButton/iconButtonClasses.d.ts +26 -26
  90. package/ImageList/imageListClasses.d.ts +16 -16
  91. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  92. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  93. package/Input/Input.js +3 -1
  94. package/Input/inputClasses.d.ts +34 -34
  95. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  96. package/InputBase/InputBase.d.ts +3 -1
  97. package/InputBase/InputBase.js +3 -1
  98. package/InputBase/inputBaseClasses.d.ts +44 -44
  99. package/InputLabel/InputLabel.js +3 -1
  100. package/InputLabel/inputLabelClasses.d.ts +32 -32
  101. package/LinearProgress/LinearProgress.d.ts +3 -1
  102. package/LinearProgress/LinearProgress.js +3 -1
  103. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  104. package/Link/linkClasses.d.ts +18 -18
  105. package/List/listClasses.d.ts +14 -14
  106. package/ListItem/listItemClasses.d.ts +30 -30
  107. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  108. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  109. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  110. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  111. package/ListItemText/listItemTextClasses.d.ts +18 -18
  112. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  113. package/Menu/menuClasses.d.ts +12 -12
  114. package/MenuItem/menuItemClasses.d.ts +20 -20
  115. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  116. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  117. package/OutlinedInput/OutlinedInput.js +3 -1
  118. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  119. package/Pagination/Pagination.d.ts +2 -0
  120. package/Pagination/Pagination.js +2 -0
  121. package/Pagination/paginationClasses.d.ts +14 -14
  122. package/PaginationItem/PaginationItem.d.ts +2 -0
  123. package/PaginationItem/PaginationItem.js +2 -0
  124. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  125. package/Paper/paperClasses.d.ts +39 -39
  126. package/Popover/popoverClasses.d.ts +10 -10
  127. package/Popper/Popper.d.ts +29 -29
  128. package/Radio/Radio.d.ts +3 -1
  129. package/Radio/Radio.js +3 -1
  130. package/Radio/radioClasses.d.ts +16 -16
  131. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  132. package/RadioGroup/useRadioGroup.d.ts +4 -4
  133. package/Rating/ratingClasses.d.ts +40 -40
  134. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  135. package/Select/selectClasses.d.ts +30 -30
  136. package/Skeleton/skeletonClasses.d.ts +24 -24
  137. package/Slider/Slider.d.ts +3 -1
  138. package/Slider/Slider.js +3 -1
  139. package/Snackbar/snackbarClasses.d.ts +20 -20
  140. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  141. package/SpeedDial/speedDialClasses.d.ts +22 -22
  142. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  143. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  144. package/Step/StepContext.d.ts +20 -20
  145. package/Step/stepClasses.d.ts +16 -16
  146. package/StepButton/stepButtonClasses.d.ts +14 -14
  147. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  148. package/StepContent/stepContentClasses.d.ts +12 -12
  149. package/StepIcon/stepIconClasses.d.ts +16 -16
  150. package/StepLabel/stepLabelClasses.d.ts +28 -28
  151. package/Stepper/stepperClasses.d.ts +14 -14
  152. package/SvgIcon/SvgIcon.d.ts +3 -1
  153. package/SvgIcon/SvgIcon.js +3 -1
  154. package/SvgIcon/svgIconClasses.d.ts +24 -24
  155. package/Switch/Switch.d.ts +3 -1
  156. package/Switch/Switch.js +3 -1
  157. package/Switch/switchClasses.d.ts +32 -32
  158. package/Tab/tabClasses.d.ts +26 -26
  159. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  160. package/Table/tableClasses.d.ts +10 -10
  161. package/TableBody/tableBodyClasses.d.ts +8 -8
  162. package/TableCell/tableCellClasses.d.ts +32 -32
  163. package/TableContainer/tableContainerClasses.d.ts +8 -8
  164. package/TableFooter/tableFooterClasses.d.ts +8 -8
  165. package/TableHead/tableHeadClasses.d.ts +8 -8
  166. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  167. package/TableRow/tableRowClasses.d.ts +16 -16
  168. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  169. package/Tabs/tabsClasses.d.ts +32 -32
  170. package/TextField/TextField.d.ts +3 -1
  171. package/TextField/TextField.js +3 -1
  172. package/TextField/textFieldClasses.d.ts +8 -8
  173. package/ToggleButton/ToggleButton.d.ts +2 -0
  174. package/ToggleButton/ToggleButton.js +2 -0
  175. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  176. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -1
  177. package/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  178. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  179. package/Toolbar/toolbarClasses.d.ts +14 -14
  180. package/Tooltip/tooltipClasses.d.ts +30 -30
  181. package/Typography/typographyClasses.d.ts +50 -50
  182. package/Unstable_TrapFocus/index.d.ts +2 -2
  183. package/Unstable_TrapFocus/index.js +1 -1
  184. package/className/index.d.ts +8 -8
  185. package/darkScrollbar/index.d.ts +28 -28
  186. package/index.js +1 -1
  187. package/internal/switchBaseClasses.d.ts +12 -12
  188. package/legacy/Alert/Alert.js +3 -1
  189. package/legacy/AppBar/AppBar.js +3 -1
  190. package/legacy/Autocomplete/Autocomplete.js +1 -1
  191. package/legacy/Backdrop/Backdrop.js +27 -20
  192. package/legacy/Backdrop/backdropClasses.js +6 -0
  193. package/legacy/Backdrop/index.js +2 -1
  194. package/legacy/Badge/Badge.js +3 -1
  195. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  196. package/legacy/Button/Button.js +3 -1
  197. package/legacy/ButtonBase/ButtonBase.js +11 -11
  198. package/legacy/ButtonGroup/ButtonGroup.js +3 -1
  199. package/legacy/Checkbox/Checkbox.js +3 -1
  200. package/legacy/Chip/Chip.js +3 -1
  201. package/legacy/CircularProgress/CircularProgress.js +3 -1
  202. package/legacy/Fab/Fab.js +3 -1
  203. package/legacy/FilledInput/FilledInput.js +3 -1
  204. package/legacy/FormControl/FormControl.js +3 -1
  205. package/legacy/FormControlLabel/FormControlLabel.js +14 -9
  206. package/legacy/FormLabel/FormLabel.js +3 -1
  207. package/legacy/Grow/Grow.js +11 -5
  208. package/legacy/Icon/Icon.js +3 -1
  209. package/legacy/IconButton/IconButton.js +3 -1
  210. package/legacy/Input/Input.js +3 -1
  211. package/legacy/InputBase/InputBase.js +3 -1
  212. package/legacy/InputLabel/InputLabel.js +3 -1
  213. package/legacy/LinearProgress/LinearProgress.js +3 -1
  214. package/legacy/OutlinedInput/OutlinedInput.js +3 -1
  215. package/legacy/Pagination/Pagination.js +2 -0
  216. package/legacy/PaginationItem/PaginationItem.js +2 -0
  217. package/legacy/Radio/Radio.js +3 -1
  218. package/legacy/Slider/Slider.js +3 -1
  219. package/legacy/SvgIcon/SvgIcon.js +3 -1
  220. package/legacy/Switch/Switch.js +3 -1
  221. package/legacy/TextField/TextField.js +3 -1
  222. package/legacy/ToggleButton/ToggleButton.js +2 -0
  223. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  224. package/legacy/Unstable_TrapFocus/index.js +1 -1
  225. package/legacy/index.js +1 -1
  226. package/locale/index.d.ts +71 -71
  227. package/modern/Alert/Alert.js +3 -1
  228. package/modern/AppBar/AppBar.js +3 -1
  229. package/modern/Autocomplete/Autocomplete.js +1 -1
  230. package/modern/Backdrop/Backdrop.js +25 -19
  231. package/modern/Backdrop/backdropClasses.js +6 -0
  232. package/modern/Backdrop/index.js +2 -1
  233. package/modern/Badge/Badge.js +3 -1
  234. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  235. package/modern/Button/Button.js +3 -1
  236. package/modern/ButtonBase/ButtonBase.js +7 -7
  237. package/modern/ButtonGroup/ButtonGroup.js +3 -1
  238. package/modern/Checkbox/Checkbox.js +3 -1
  239. package/modern/Chip/Chip.js +3 -1
  240. package/modern/CircularProgress/CircularProgress.js +3 -1
  241. package/modern/Fab/Fab.js +3 -1
  242. package/modern/FilledInput/FilledInput.js +3 -1
  243. package/modern/FormControl/FormControl.js +3 -1
  244. package/modern/FormControlLabel/FormControlLabel.js +14 -9
  245. package/modern/FormLabel/FormLabel.js +3 -1
  246. package/modern/Grow/Grow.js +11 -5
  247. package/modern/Icon/Icon.js +3 -1
  248. package/modern/IconButton/IconButton.js +3 -1
  249. package/modern/Input/Input.js +3 -1
  250. package/modern/InputBase/InputBase.js +3 -1
  251. package/modern/InputLabel/InputLabel.js +3 -1
  252. package/modern/LinearProgress/LinearProgress.js +3 -1
  253. package/modern/OutlinedInput/OutlinedInput.js +3 -1
  254. package/modern/Pagination/Pagination.js +2 -0
  255. package/modern/PaginationItem/PaginationItem.js +2 -0
  256. package/modern/Radio/Radio.js +3 -1
  257. package/modern/Slider/Slider.js +3 -1
  258. package/modern/SvgIcon/SvgIcon.js +3 -1
  259. package/modern/Switch/Switch.js +3 -1
  260. package/modern/TextField/TextField.js +3 -1
  261. package/modern/ToggleButton/ToggleButton.js +2 -0
  262. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  263. package/modern/Unstable_TrapFocus/index.js +1 -1
  264. package/modern/index.js +1 -1
  265. package/node/Alert/Alert.js +3 -1
  266. package/node/AppBar/AppBar.js +3 -1
  267. package/node/Autocomplete/Autocomplete.js +1 -1
  268. package/node/Backdrop/Backdrop.js +28 -23
  269. package/node/Backdrop/backdropClasses.js +17 -0
  270. package/node/Backdrop/index.js +17 -5
  271. package/node/Badge/Badge.js +3 -1
  272. package/node/BottomNavigation/BottomNavigation.js +0 -0
  273. package/node/Button/Button.js +3 -1
  274. package/node/ButtonBase/ButtonBase.js +7 -7
  275. package/node/ButtonGroup/ButtonGroup.js +3 -1
  276. package/node/Checkbox/Checkbox.js +3 -1
  277. package/node/Chip/Chip.js +3 -1
  278. package/node/CircularProgress/CircularProgress.js +3 -1
  279. package/node/Fab/Fab.js +3 -1
  280. package/node/FilledInput/FilledInput.js +3 -1
  281. package/node/FormControl/FormControl.js +3 -1
  282. package/node/FormControlLabel/FormControlLabel.js +14 -9
  283. package/node/FormLabel/FormLabel.js +3 -1
  284. package/node/Grow/Grow.js +10 -4
  285. package/node/Icon/Icon.js +3 -1
  286. package/node/IconButton/IconButton.js +3 -1
  287. package/node/Input/Input.js +3 -1
  288. package/node/InputBase/InputBase.js +3 -1
  289. package/node/InputLabel/InputLabel.js +3 -1
  290. package/node/LinearProgress/LinearProgress.js +3 -1
  291. package/node/OutlinedInput/OutlinedInput.js +3 -1
  292. package/node/Pagination/Pagination.js +2 -0
  293. package/node/PaginationItem/PaginationItem.js +2 -0
  294. package/node/Radio/Radio.js +3 -1
  295. package/node/Slider/Slider.js +3 -1
  296. package/node/SvgIcon/SvgIcon.js +3 -1
  297. package/node/Switch/Switch.js +3 -1
  298. package/node/TextField/TextField.js +3 -1
  299. package/node/ToggleButton/ToggleButton.js +2 -0
  300. package/node/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  301. package/node/Unstable_TrapFocus/index.js +2 -2
  302. package/node/index.js +1 -1
  303. package/package.json +4 -4
  304. package/transitions/index.d.ts +1 -1
  305. package/transitions/transition.d.ts +13 -13
  306. package/transitions/utils.d.ts +23 -23
  307. package/umd/material-ui.development.js +261 -288
  308. package/umd/material-ui.production.min.js +20 -20
  309. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  310. package/useTouchRipple/index.d.ts +1 -1
  311. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  312. package/utils/getScrollbarSize.d.ts +2 -2
  313. package/utils/ownerDocument.d.ts +2 -2
  314. package/utils/ownerWindow.d.ts +2 -2
  315. package/utils/setRef.d.ts +2 -2
@@ -293,7 +293,9 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
293
293
  classes: _propTypes.default.object,
294
294
 
295
295
  /**
296
- * The color of the component. It supports those theme colors that make sense for this component.
296
+ * The color of the component.
297
+ * It supports both default and custom theme colors, which can be added as shown in the
298
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
297
299
  * @default 'default'
298
300
  */
299
301
  color: _propTypes.default
File without changes
@@ -326,7 +326,9 @@ process.env.NODE_ENV !== "production" ? Button.propTypes
326
326
  className: _propTypes.default.string,
327
327
 
328
328
  /**
329
- * The color of the component. It supports those theme colors that make sense for this component.
329
+ * The color of the component.
330
+ * It supports both default and custom theme colors, which can be added as shown in the
331
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
330
332
  * @default 'primary'
331
333
  */
332
334
  color: _propTypes.default
@@ -170,11 +170,16 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
170
170
  buttonRef.current.focus();
171
171
  }
172
172
  }), []);
173
+ const [mountedState, setMountedState] = React.useState(false);
174
+ React.useEffect(() => {
175
+ setMountedState(true);
176
+ }, []);
177
+ const enableTouchRipple = mountedState && !disableRipple && !disabled;
173
178
  React.useEffect(() => {
174
- if (focusVisible && focusRipple && !disableRipple) {
179
+ if (focusVisible && focusRipple && !disableRipple && mountedState) {
175
180
  rippleRef.current.pulsate();
176
181
  }
177
- }, [disableRipple, focusRipple, focusVisible]);
182
+ }, [disableRipple, focusRipple, focusVisible, mountedState]);
178
183
 
179
184
  function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
180
185
  return (0, _useEventCallback.default)(event => {
@@ -318,11 +323,6 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
318
323
 
319
324
  const handleOwnRef = (0, _useForkRef.default)(focusVisibleRef, buttonRef);
320
325
  const handleRef = (0, _useForkRef.default)(ref, handleOwnRef);
321
- const [mountedState, setMountedState] = React.useState(false);
322
- React.useEffect(() => {
323
- setMountedState(true);
324
- }, []);
325
- const enableTouchRipple = mountedState && !disableRipple && !disabled;
326
326
 
327
327
  if (process.env.NODE_ENV !== 'production') {
328
328
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -228,7 +228,9 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes
228
228
  className: _propTypes.default.string,
229
229
 
230
230
  /**
231
- * The color of the component. It supports those theme colors that make sense for this component.
231
+ * The color of the component.
232
+ * It supports both default and custom theme colors, which can be added as shown in the
233
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
232
234
  * @default 'primary'
233
235
  */
234
236
  color: _propTypes.default
@@ -159,7 +159,9 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes
159
159
  classes: _propTypes.default.object,
160
160
 
161
161
  /**
162
- * The color of the component. It supports those theme colors that make sense for this component.
162
+ * The color of the component.
163
+ * It supports both default and custom theme colors, which can be added as shown in the
164
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
163
165
  * @default 'primary'
164
166
  */
165
167
  color: _propTypes.default
package/node/Chip/Chip.js CHANGED
@@ -474,7 +474,9 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes
474
474
  clickable: _propTypes.default.bool,
475
475
 
476
476
  /**
477
- * The color of the component. It supports those theme colors that make sense for this component.
477
+ * The color of the component.
478
+ * It supports both default and custom theme colors, which can be added as shown in the
479
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
478
480
  * @default 'default'
479
481
  */
480
482
  color: _propTypes.default
@@ -229,7 +229,9 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes
229
229
  className: _propTypes.default.string,
230
230
 
231
231
  /**
232
- * The color of the component. It supports those theme colors that make sense for this component.
232
+ * The color of the component.
233
+ * It supports both default and custom theme colors, which can be added as shown in the
234
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
233
235
  * @default 'primary'
234
236
  */
235
237
  color: _propTypes.default
package/node/Fab/Fab.js CHANGED
@@ -198,7 +198,9 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
198
198
  className: _propTypes.default.string,
199
199
 
200
200
  /**
201
- * The color of the component. It supports those theme colors that make sense for this component.
201
+ * The color of the component.
202
+ * It supports both default and custom theme colors, which can be added as shown in the
203
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
202
204
  * @default 'default'
203
205
  */
204
206
  color: _propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
@@ -258,7 +258,9 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
258
258
  classes: _propTypes.default.object,
259
259
 
260
260
  /**
261
- * The color of the component. It supports those theme colors that make sense for this component.
261
+ * The color of the component.
262
+ * It supports both default and custom theme colors, which can be added as shown in the
263
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
262
264
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
263
265
  */
264
266
  color: _propTypes.default
@@ -271,7 +271,9 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes
271
271
  className: _propTypes.default.string,
272
272
 
273
273
  /**
274
- * The color of the component. It supports those theme colors that make sense for this component.
274
+ * The color of the component.
275
+ * It supports both default and custom theme colors, which can be added as shown in the
276
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
275
277
  * @default 'primary'
276
278
  */
277
279
  color: _propTypes.default
@@ -119,7 +119,7 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
119
119
  control,
120
120
  disabled: disabledProp,
121
121
  disableTypography,
122
- label,
122
+ label: labelProp,
123
123
  labelPlacement = 'end'
124
124
  } = props,
125
125
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
@@ -149,22 +149,27 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
149
149
  });
150
150
  const ownerState = (0, _extends2.default)({}, props, {
151
151
  disabled,
152
- label,
153
152
  labelPlacement,
154
153
  error: fcs.error
155
154
  });
156
155
  const classes = useUtilityClasses(ownerState);
156
+ let label = labelProp;
157
+
158
+ if (label != null && label.type !== _Typography.default && !disableTypography) {
159
+ label = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, (0, _extends2.default)({
160
+ component: "span",
161
+ className: classes.label
162
+ }, componentsProps.typography, {
163
+ children: label
164
+ }));
165
+ }
166
+
157
167
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(FormControlLabelRoot, (0, _extends2.default)({
158
168
  className: (0, _clsx.default)(classes.root, className),
159
169
  ownerState: ownerState,
160
170
  ref: ref
161
171
  }, other, {
162
- children: [/*#__PURE__*/React.cloneElement(control, controlProps), label.type === _Typography.default || disableTypography ? label : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, (0, _extends2.default)({
163
- component: "span",
164
- className: classes.label
165
- }, componentsProps.typography, {
166
- children: label
167
- }))]
172
+ children: [/*#__PURE__*/React.cloneElement(control, controlProps), label]
168
173
  }));
169
174
  });
170
175
  process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
@@ -221,7 +226,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
221
226
  /**
222
227
  * A text or an element to be used in an enclosing label element.
223
228
  */
224
- label: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.number, _propTypes.default.string]).isRequired,
229
+ label: _propTypes.default.node,
225
230
 
226
231
  /**
227
232
  * The position of the label.
@@ -160,7 +160,9 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes
160
160
  className: _propTypes.default.string,
161
161
 
162
162
  /**
163
- * The color of the component. It supports those theme colors that make sense for this component.
163
+ * The color of the component.
164
+ * It supports both default and custom theme colors, which can be added as shown in the
165
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
164
166
  */
165
167
  color: _propTypes.default
166
168
  /* @typescript-to-proptypes-ignore */
package/node/Grow/Grow.js CHANGED
@@ -47,6 +47,12 @@ const styles = {
47
47
  transform: 'none'
48
48
  }
49
49
  };
50
+ /**
51
+ * Conditionally apply a workaround for the CSS transition bug in Safari 15.4.
52
+ * Remove this workaround once the Safari bug is fixed.
53
+ */
54
+
55
+ const isSafari154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && /version\/15\.[4-9]/i.test(navigator.userAgent);
50
56
  /**
51
57
  * The Grow transition is used by the [Tooltip](/components/tooltips/) and
52
58
  * [Popover](/components/popover/) components.
@@ -119,7 +125,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
119
125
  duration,
120
126
  delay
121
127
  }), theme.transitions.create('transform', {
122
- duration: duration * 0.666,
128
+ duration: isSafari154 ? duration : duration * 0.666,
123
129
  delay,
124
130
  easing: transitionTimingFunction
125
131
  })].join(',');
@@ -155,11 +161,11 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
155
161
  duration,
156
162
  delay
157
163
  }), theme.transitions.create('transform', {
158
- duration: duration * 0.666,
159
- delay: delay || duration * 0.333,
164
+ duration: isSafari154 ? duration : duration * 0.666,
165
+ delay: isSafari154 ? delay : delay || duration * 0.333,
160
166
  easing: transitionTimingFunction
161
167
  })].join(',');
162
- node.style.opacity = '0';
168
+ node.style.opacity = 0;
163
169
  node.style.transform = getScale(0.75);
164
170
 
165
171
  if (onExit) {
package/node/Icon/Icon.js CHANGED
@@ -151,7 +151,9 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes
151
151
  className: _propTypes.default.string,
152
152
 
153
153
  /**
154
- * The color of the component. It supports those theme colors that make sense for this component.
154
+ * The color of the component.
155
+ * It supports both default and custom theme colors, which can be added as shown in the
156
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
155
157
  * @default 'inherit'
156
158
  */
157
159
  color: _propTypes.default
@@ -189,7 +189,9 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes
189
189
  className: _propTypes.default.string,
190
190
 
191
191
  /**
192
- * The color of the component. It supports those theme colors that make sense for this component.
192
+ * The color of the component.
193
+ * It supports both default and custom theme colors, which can be added as shown in the
194
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
193
195
  * @default 'default'
194
196
  */
195
197
  color: _propTypes.default
@@ -194,7 +194,9 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
194
194
  classes: _propTypes.default.object,
195
195
 
196
196
  /**
197
- * The color of the component. It supports those theme colors that make sense for this component.
197
+ * The color of the component.
198
+ * It supports both default and custom theme colors, which can be added as shown in the
199
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
198
200
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
199
201
  */
200
202
  color: _propTypes.default
@@ -563,7 +563,9 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
563
563
  className: _propTypes.default.string,
564
564
 
565
565
  /**
566
- * The color of the component. It supports those theme colors that make sense for this component.
566
+ * The color of the component.
567
+ * It supports both default and custom theme colors, which can be added as shown in the
568
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
567
569
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
568
570
  */
569
571
  color: _propTypes.default
@@ -185,7 +185,9 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes
185
185
  classes: _propTypes.default.object,
186
186
 
187
187
  /**
188
- * The color of the component. It supports those theme colors that make sense for this component.
188
+ * The color of the component.
189
+ * It supports both default and custom theme colors, which can be added as shown in the
190
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
189
191
  */
190
192
  color: _propTypes.default
191
193
  /* @typescript-to-proptypes-ignore */
@@ -351,7 +351,9 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes
351
351
  className: _propTypes.default.string,
352
352
 
353
353
  /**
354
- * The color of the component. It supports those theme colors that make sense for this component.
354
+ * The color of the component.
355
+ * It supports both default and custom theme colors, which can be added as shown in the
356
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
355
357
  * @default 'primary'
356
358
  */
357
359
  color: _propTypes.default
@@ -202,7 +202,9 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes
202
202
  classes: _propTypes.default.object,
203
203
 
204
204
  /**
205
- * The color of the component. It supports those theme colors that make sense for this component.
205
+ * The color of the component.
206
+ * It supports both default and custom theme colors, which can be added as shown in the
207
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
206
208
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
207
209
  */
208
210
  color: _propTypes.default
@@ -177,6 +177,8 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes
177
177
 
178
178
  /**
179
179
  * The active color.
180
+ * It supports both default and custom theme colors, which can be added as shown in the
181
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
180
182
  * @default 'standard'
181
183
  */
182
184
  color: _propTypes.default
@@ -327,6 +327,8 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes
327
327
 
328
328
  /**
329
329
  * The active color.
330
+ * It supports both default and custom theme colors, which can be added as shown in the
331
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
330
332
  * @default 'standard'
331
333
  */
332
334
  color: _propTypes.default
@@ -179,7 +179,9 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes
179
179
  classes: _propTypes.default.object,
180
180
 
181
181
  /**
182
- * The color of the component. It supports those theme colors that make sense for this component.
182
+ * The color of the component.
183
+ * It supports both default and custom theme colors, which can be added as shown in the
184
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
183
185
  * @default 'primary'
184
186
  */
185
187
  color: _propTypes.default
@@ -567,7 +567,9 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
567
567
  classes: _propTypes.default.object,
568
568
 
569
569
  /**
570
- * The color of the component. It supports those theme colors that make sense for this component.
570
+ * The color of the component.
571
+ * It supports both default and custom theme colors, which can be added as shown in the
572
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
571
573
  * @default 'primary'
572
574
  */
573
575
  color: _propTypes.default
@@ -157,7 +157,9 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes
157
157
  className: _propTypes.default.string,
158
158
 
159
159
  /**
160
- * The color of the component. It supports those theme colors that make sense for this component.
160
+ * The color of the component.
161
+ * It supports both default and custom theme colors, which can be added as shown in the
162
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
161
163
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
162
164
  * @default 'inherit'
163
165
  */
@@ -276,7 +276,9 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes
276
276
  className: _propTypes.default.string,
277
277
 
278
278
  /**
279
- * The color of the component. It supports those theme colors that make sense for this component.
279
+ * The color of the component.
280
+ * It supports both default and custom theme colors, which can be added as shown in the
281
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
280
282
  * @default 'primary'
281
283
  */
282
284
  color: _propTypes.default
@@ -274,7 +274,9 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
274
274
  className: _propTypes.default.string,
275
275
 
276
276
  /**
277
- * The color of the component. It supports those theme colors that make sense for this component.
277
+ * The color of the component.
278
+ * It supports both default and custom theme colors, which can be added as shown in the
279
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
278
280
  * @default 'primary'
279
281
  */
280
282
  color: _propTypes.default
@@ -188,6 +188,8 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes
188
188
 
189
189
  /**
190
190
  * The color of the button when it is in an active state.
191
+ * It supports both default and custom theme colors, which can be added as shown in the
192
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
191
193
  * @default 'standard'
192
194
  */
193
195
  color: _propTypes.default
@@ -214,7 +214,9 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes
214
214
  className: _propTypes.default.string,
215
215
 
216
216
  /**
217
- * The color of a button when it is selected.
217
+ * The color of the button when it is selected.
218
+ * It supports both default and custom theme colors, which can be added as shown in the
219
+ * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
218
220
  * @default 'standard'
219
221
  */
220
222
  color: _propTypes.default
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "__esModule", {
8
8
  Object.defineProperty(exports, "default", {
9
9
  enumerable: true,
10
10
  get: function () {
11
- return _Unstable_TrapFocus.default;
11
+ return _TrapFocus.default;
12
12
  }
13
13
  });
14
14
 
15
- var _Unstable_TrapFocus = _interopRequireDefault(require("@mui/base/Unstable_TrapFocus"));
15
+ var _TrapFocus = _interopRequireDefault(require("@mui/base/TrapFocus"));
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.2
1
+ /** @license MUI v5.5.3
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.5.2",
3
+ "version": "5.5.3",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
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.",
@@ -46,10 +46,10 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.17.2",
49
- "@mui/base": "5.0.0-alpha.73",
50
- "@mui/system": "^5.5.2",
49
+ "@mui/base": "5.0.0-alpha.74",
50
+ "@mui/system": "^5.5.3",
51
51
  "@mui/types": "^7.1.3",
52
- "@mui/utils": "^5.4.4",
52
+ "@mui/utils": "^5.5.3",
53
53
  "@types/react-transition-group": "^4.4.4",
54
54
  "clsx": "^1.1.1",
55
55
  "csstype": "^3.0.11",
@@ -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 {};