@mui/material 6.4.7 → 6.4.9

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 (222) hide show
  1. package/Accordion/Accordion.d.ts +20 -5
  2. package/Accordion/Accordion.js +18 -6
  3. package/AccordionActions/AccordionActions.d.ts +2 -2
  4. package/AccordionDetails/AccordionDetails.d.ts +2 -2
  5. package/AccordionSummary/AccordionSummary.d.ts +62 -7
  6. package/AccordionSummary/AccordionSummary.js +67 -16
  7. package/Alert/Alert.d.ts +3 -3
  8. package/AlertTitle/AlertTitle.d.ts +3 -3
  9. package/AppBar/AppBar.d.ts +3 -3
  10. package/Autocomplete/Autocomplete.d.ts +2 -2
  11. package/Autocomplete/Autocomplete.js +1 -1
  12. package/Avatar/Avatar.d.ts +2 -2
  13. package/AvatarGroup/AvatarGroup.d.ts +2 -2
  14. package/Backdrop/Backdrop.d.ts +3 -3
  15. package/Badge/Badge.d.ts +3 -3
  16. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  17. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  18. package/Box/Box.d.ts +2 -2
  19. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  20. package/Button/Button.d.ts +4 -4
  21. package/ButtonBase/ButtonBase.d.ts +2 -2
  22. package/ButtonGroup/ButtonGroup.d.ts +2 -2
  23. package/CHANGELOG.md +78 -4
  24. package/Card/Card.d.ts +3 -3
  25. package/CardActionArea/CardActionArea.d.ts +3 -3
  26. package/CardActions/CardActions.d.ts +2 -2
  27. package/CardContent/CardContent.d.ts +2 -2
  28. package/CardHeader/CardHeader.d.ts +2 -2
  29. package/CardMedia/CardMedia.d.ts +2 -2
  30. package/Checkbox/Checkbox.d.ts +4 -4
  31. package/Chip/Chip.d.ts +2 -2
  32. package/CircularProgress/CircularProgress.d.ts +2 -2
  33. package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
  34. package/ClickAwayListener/ClickAwayListener.js +3 -3
  35. package/Collapse/Collapse.d.ts +5 -5
  36. package/Container/Container.d.ts +2 -2
  37. package/CssBaseline/CssBaseline.d.ts +2 -2
  38. package/Dialog/Dialog.d.ts +3 -3
  39. package/DialogActions/DialogActions.d.ts +2 -2
  40. package/DialogContent/DialogContent.d.ts +2 -2
  41. package/DialogContentText/DialogContentText.d.ts +3 -3
  42. package/DialogTitle/DialogTitle.d.ts +3 -3
  43. package/Divider/Divider.d.ts +3 -3
  44. package/Drawer/Drawer.d.ts +3 -3
  45. package/Fab/Fab.d.ts +3 -3
  46. package/Fade/Fade.d.ts +3 -3
  47. package/FilledInput/FilledInput.d.ts +3 -3
  48. package/FormControl/FormControl.d.ts +6 -6
  49. package/FormControlLabel/FormControlLabel.d.ts +4 -4
  50. package/FormGroup/FormGroup.d.ts +3 -3
  51. package/FormHelperText/FormHelperText.d.ts +2 -2
  52. package/FormLabel/FormLabel.d.ts +4 -4
  53. package/GlobalStyles/GlobalStyles.d.ts +2 -2
  54. package/Grid/Grid.d.ts +2 -2
  55. package/Grid2/Grid2.d.ts +2 -2
  56. package/Grid2/Grid2.js +2 -2
  57. package/Grow/Grow.d.ts +5 -5
  58. package/Hidden/Hidden.d.ts +2 -2
  59. package/Icon/Icon.d.ts +3 -3
  60. package/IconButton/IconButton.d.ts +4 -4
  61. package/ImageList/ImageList.d.ts +2 -2
  62. package/ImageListItem/ImageListItem.d.ts +2 -2
  63. package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  64. package/Input/Input.d.ts +3 -3
  65. package/InputAdornment/InputAdornment.d.ts +2 -2
  66. package/InputBase/InputBase.d.ts +2 -2
  67. package/InputLabel/InputLabel.d.ts +3 -3
  68. package/LinearProgress/LinearProgress.d.ts +2 -2
  69. package/Link/Link.d.ts +4 -4
  70. package/List/List.d.ts +3 -3
  71. package/ListItem/ListItem.d.ts +3 -3
  72. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  73. package/ListItemButton/ListItemButton.d.ts +3 -3
  74. package/ListItemIcon/ListItemIcon.d.ts +2 -2
  75. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  76. package/ListItemText/ListItemText.d.ts +12 -2
  77. package/ListItemText/ListItemText.js +14 -5
  78. package/ListSubheader/ListSubheader.d.ts +2 -2
  79. package/Menu/Menu.d.ts +4 -4
  80. package/MenuItem/MenuItem.d.ts +3 -3
  81. package/MenuList/MenuList.d.ts +4 -4
  82. package/MobileStepper/MobileStepper.d.ts +3 -3
  83. package/Modal/Modal.d.ts +7 -7
  84. package/NativeSelect/NativeSelect.d.ts +3 -3
  85. package/NoSsr/NoSsr.d.ts +2 -2
  86. package/NoSsr/NoSsr.js +2 -2
  87. package/OutlinedInput/OutlinedInput.d.ts +3 -3
  88. package/Pagination/Pagination.d.ts +2 -2
  89. package/PaginationItem/PaginationItem.d.ts +2 -2
  90. package/Paper/Paper.d.ts +3 -3
  91. package/PigmentContainer/PigmentContainer.d.ts +2 -2
  92. package/PigmentContainer/PigmentContainer.js +2 -2
  93. package/PigmentGrid/PigmentGrid.d.ts +2 -2
  94. package/PigmentGrid/PigmentGrid.js +2 -2
  95. package/PigmentHidden/PigmentHidden.d.ts +2 -2
  96. package/PigmentHidden/PigmentHidden.js +2 -2
  97. package/PigmentStack/PigmentStack.d.ts +2 -2
  98. package/PigmentStack/PigmentStack.js +2 -2
  99. package/Popover/Popover.d.ts +4 -4
  100. package/Popper/Popper.d.ts +4 -4
  101. package/Popper/Popper.js +4 -4
  102. package/Portal/Portal.d.ts +2 -2
  103. package/Portal/Portal.js +2 -2
  104. package/README.md +4 -2
  105. package/Radio/Radio.d.ts +3 -3
  106. package/RadioGroup/RadioGroup.d.ts +3 -3
  107. package/Rating/Rating.d.ts +2 -2
  108. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  109. package/Select/Select.d.ts +3 -3
  110. package/Skeleton/Skeleton.d.ts +2 -2
  111. package/Slide/Slide.d.ts +4 -4
  112. package/Slider/Slider.d.ts +2 -2
  113. package/Snackbar/Snackbar.d.ts +2 -2
  114. package/Snackbar/Snackbar.js +7 -1
  115. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  116. package/SpeedDial/SpeedDial.d.ts +12 -2
  117. package/SpeedDial/SpeedDial.js +40 -11
  118. package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
  119. package/SpeedDialAction/SpeedDialAction.js +1 -1
  120. package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  121. package/Stack/Stack.d.ts +2 -2
  122. package/Step/Step.d.ts +2 -2
  123. package/StepButton/StepButton.d.ts +3 -3
  124. package/StepConnector/StepConnector.d.ts +2 -2
  125. package/StepContent/StepContent.d.ts +2 -2
  126. package/StepIcon/StepIcon.d.ts +3 -3
  127. package/StepLabel/StepLabel.d.ts +21 -3
  128. package/StepLabel/StepLabel.js +14 -5
  129. package/Stepper/Stepper.d.ts +2 -2
  130. package/SvgIcon/SvgIcon.d.ts +3 -3
  131. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  132. package/Switch/Switch.d.ts +78 -5
  133. package/Switch/Switch.js +71 -9
  134. package/Tab/Tab.d.ts +3 -3
  135. package/TabScrollButton/TabScrollButton.d.ts +2 -2
  136. package/Table/Table.d.ts +2 -2
  137. package/TableBody/TableBody.d.ts +2 -2
  138. package/TableCell/TableCell.d.ts +2 -2
  139. package/TableContainer/TableContainer.d.ts +2 -2
  140. package/TableFooter/TableFooter.d.ts +2 -2
  141. package/TableHead/TableHead.d.ts +2 -2
  142. package/TablePagination/TablePagination.d.ts +4 -4
  143. package/TableRow/TableRow.d.ts +2 -2
  144. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  145. package/Tabs/Tabs.d.ts +2 -2
  146. package/Tabs/Tabs.js +4 -0
  147. package/TextField/TextField.d.ts +40 -10
  148. package/TextField/TextField.js +22 -11
  149. package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
  150. package/TextareaAutosize/TextareaAutosize.js +28 -17
  151. package/ToggleButton/ToggleButton.d.ts +3 -3
  152. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  153. package/Toolbar/Toolbar.d.ts +2 -2
  154. package/Tooltip/Tooltip.d.ts +3 -15
  155. package/Tooltip/Tooltip.js +1 -1
  156. package/Typography/Typography.d.ts +3 -3
  157. package/Zoom/Zoom.d.ts +3 -3
  158. package/index.js +1 -1
  159. package/modern/Accordion/Accordion.js +18 -6
  160. package/modern/AccordionSummary/AccordionSummary.js +67 -16
  161. package/modern/Autocomplete/Autocomplete.js +1 -1
  162. package/modern/ClickAwayListener/ClickAwayListener.js +3 -3
  163. package/modern/Grid2/Grid2.js +2 -2
  164. package/modern/ListItemText/ListItemText.js +14 -5
  165. package/modern/NoSsr/NoSsr.js +2 -2
  166. package/modern/PigmentContainer/PigmentContainer.js +2 -2
  167. package/modern/PigmentGrid/PigmentGrid.js +2 -2
  168. package/modern/PigmentHidden/PigmentHidden.js +2 -2
  169. package/modern/PigmentStack/PigmentStack.js +2 -2
  170. package/modern/Popper/Popper.js +4 -4
  171. package/modern/Portal/Portal.js +2 -2
  172. package/modern/Snackbar/Snackbar.js +7 -1
  173. package/modern/SpeedDial/SpeedDial.js +40 -11
  174. package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
  175. package/modern/StepLabel/StepLabel.js +14 -5
  176. package/modern/Switch/Switch.js +71 -9
  177. package/modern/Tabs/Tabs.js +4 -0
  178. package/modern/TextField/TextField.js +22 -11
  179. package/modern/TextareaAutosize/TextareaAutosize.js +28 -17
  180. package/modern/Tooltip/Tooltip.js +1 -1
  181. package/modern/index.js +1 -1
  182. package/modern/styles/ThemeProvider.js +11 -0
  183. package/modern/styles/createThemeNoVars.js +1 -3
  184. package/modern/useAutocomplete/useAutocomplete.js +3 -3
  185. package/modern/useScrollTrigger/useScrollTrigger.js +3 -0
  186. package/modern/version/index.js +2 -2
  187. package/node/Accordion/Accordion.js +18 -6
  188. package/node/AccordionSummary/AccordionSummary.js +67 -16
  189. package/node/Autocomplete/Autocomplete.js +1 -1
  190. package/node/ClickAwayListener/ClickAwayListener.js +3 -3
  191. package/node/Grid2/Grid2.js +2 -2
  192. package/node/ListItemText/ListItemText.js +14 -5
  193. package/node/NoSsr/NoSsr.js +2 -2
  194. package/node/PigmentContainer/PigmentContainer.js +2 -2
  195. package/node/PigmentGrid/PigmentGrid.js +2 -2
  196. package/node/PigmentHidden/PigmentHidden.js +2 -2
  197. package/node/PigmentStack/PigmentStack.js +2 -2
  198. package/node/Popper/Popper.js +4 -4
  199. package/node/Portal/Portal.js +2 -2
  200. package/node/Snackbar/Snackbar.js +7 -1
  201. package/node/SpeedDial/SpeedDial.js +40 -11
  202. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  203. package/node/StepLabel/StepLabel.js +14 -5
  204. package/node/Switch/Switch.js +71 -9
  205. package/node/Tabs/Tabs.js +4 -0
  206. package/node/TextField/TextField.js +22 -11
  207. package/node/TextareaAutosize/TextareaAutosize.js +27 -16
  208. package/node/Tooltip/Tooltip.js +1 -1
  209. package/node/index.js +1 -1
  210. package/node/styles/ThemeProvider.js +11 -0
  211. package/node/styles/createThemeNoVars.js +1 -3
  212. package/node/useAutocomplete/useAutocomplete.js +3 -3
  213. package/node/useScrollTrigger/useScrollTrigger.js +3 -0
  214. package/node/version/index.js +2 -2
  215. package/package.json +6 -6
  216. package/styles/ThemeProvider.js +11 -0
  217. package/styles/createThemeNoVars.js +1 -3
  218. package/useAutocomplete/useAutocomplete.d.ts +2 -2
  219. package/useAutocomplete/useAutocomplete.js +3 -3
  220. package/useScrollTrigger/useScrollTrigger.d.ts +1 -1
  221. package/useScrollTrigger/useScrollTrigger.js +3 -0
  222. package/version/index.js +2 -2
@@ -118,11 +118,11 @@ export interface PaginationItemTypeMap<
118
118
  *
119
119
  * Demos:
120
120
  *
121
- * - [Pagination](https://mui.com/material-ui/react-pagination/)
121
+ * - [Pagination](https://v6.mui.com/material-ui/react-pagination/)
122
122
  *
123
123
  * API:
124
124
  *
125
- * - [PaginationItem API](https://mui.com/material-ui/api/pagination-item/)
125
+ * - [PaginationItem API](https://v6.mui.com/material-ui/api/pagination-item/)
126
126
  */
127
127
  declare const PaginationItem: OverridableComponent<PaginationItemTypeMap>;
128
128
 
package/Paper/Paper.d.ts CHANGED
@@ -50,12 +50,12 @@ export interface PaperTypeMap<
50
50
  *
51
51
  * Demos:
52
52
  *
53
- * - [Card](https://mui.com/material-ui/react-card/)
54
- * - [Paper](https://mui.com/material-ui/react-paper/)
53
+ * - [Card](https://v6.mui.com/material-ui/react-card/)
54
+ * - [Paper](https://v6.mui.com/material-ui/react-paper/)
55
55
  *
56
56
  * API:
57
57
  *
58
- * - [Paper API](https://mui.com/material-ui/api/paper/)
58
+ * - [Paper API](https://v6.mui.com/material-ui/api/paper/)
59
59
  */
60
60
  declare const Paper: OverridableComponent<PaperTypeMap>;
61
61
 
@@ -45,11 +45,11 @@ export type PigmentContainerProps<RootComponent extends React.ElementType = Pigm
45
45
  *
46
46
  * Demos:
47
47
  *
48
- * - [Container](https://mui.com/material-ui/react-container/)
48
+ * - [Container](https://v6.mui.com/material-ui/react-container/)
49
49
  *
50
50
  * API:
51
51
  *
52
- * - [PigmentContainer API](https://mui.com/material-ui/api/pigment-container/)
52
+ * - [PigmentContainer API](https://v6.mui.com/material-ui/api/pigment-container/)
53
53
  */
54
54
  declare const PigmentContainer: OverridableComponent<PigmentContainerTypeMap>;
55
55
  export default PigmentContainer;
@@ -23,11 +23,11 @@ const useUtilityClasses = ownerState => {
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Container](https://mui.com/material-ui/react-container/)
26
+ * - [Container](https://v6.mui.com/material-ui/react-container/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [PigmentContainer API](https://mui.com/material-ui/api/pigment-container/)
30
+ * - [PigmentContainer API](https://v6.mui.com/material-ui/api/pigment-container/)
31
31
  */
32
32
  const PigmentContainer = /*#__PURE__*/React.forwardRef(function PigmentContainer({
33
33
  className,
@@ -75,11 +75,11 @@ export type GridProps<RootComponent extends React.ElementType = GridTypeMap['def
75
75
  *
76
76
  * Demos:
77
77
  *
78
- * - [Grid version 2](https://mui.com/material-ui/react-grid2/)
78
+ * - [Grid version 2](https://v6.mui.com/material-ui/react-grid2/)
79
79
  *
80
80
  * API:
81
81
  *
82
- * - [PigmentGrid API](https://mui.com/material-ui/api/pigment-grid/)
82
+ * - [PigmentGrid API](https://v6.mui.com/material-ui/api/pigment-grid/)
83
83
  */
84
84
  declare const PigmentGrid: OverridableComponent<GridTypeMap>;
85
85
  export default PigmentGrid;
@@ -37,11 +37,11 @@ const useUtilityClasses = ownerState => {
37
37
  *
38
38
  * Demos:
39
39
  *
40
- * - [Grid version 2](https://mui.com/material-ui/react-grid2/)
40
+ * - [Grid version 2](https://v6.mui.com/material-ui/react-grid2/)
41
41
  *
42
42
  * API:
43
43
  *
44
- * - [PigmentGrid API](https://mui.com/material-ui/api/pigment-grid/)
44
+ * - [PigmentGrid API](https://v6.mui.com/material-ui/api/pigment-grid/)
45
45
  */
46
46
  const PigmentGrid = /*#__PURE__*/React.forwardRef(function PigmentGrid(props, ref) {
47
47
  const {
@@ -82,11 +82,11 @@ export interface HiddenProps {
82
82
  *
83
83
  * Demos:
84
84
  *
85
- * - [Hidden](https://mui.com/material-ui/react-hidden/)
85
+ * - [Hidden](https://v6.mui.com/material-ui/react-hidden/)
86
86
  *
87
87
  * API:
88
88
  *
89
- * - [PigmentHidden API](https://mui.com/material-ui/api/pigment-hidden/)
89
+ * - [PigmentHidden API](https://v6.mui.com/material-ui/api/pigment-hidden/)
90
90
  */
91
91
  declare function PigmentHidden({ implementation, ...props }: HiddenProps & {
92
92
  className?: string;
@@ -171,11 +171,11 @@ process.env.NODE_ENV !== "production" ? HiddenCss.propTypes /* remove-proptypes
171
171
  *
172
172
  * Demos:
173
173
  *
174
- * - [Hidden](https://mui.com/material-ui/react-hidden/)
174
+ * - [Hidden](https://v6.mui.com/material-ui/react-hidden/)
175
175
  *
176
176
  * API:
177
177
  *
178
- * - [PigmentHidden API](https://mui.com/material-ui/api/pigment-hidden/)
178
+ * - [PigmentHidden API](https://v6.mui.com/material-ui/api/pigment-hidden/)
179
179
  */
180
180
  function PigmentHidden({
181
181
  implementation = 'js',
@@ -41,11 +41,11 @@ export type PigmentStackProps<RootComponent extends React.ElementType = PigmentS
41
41
  *
42
42
  * Demos:
43
43
  *
44
- * - [Stack](https://mui.com/material-ui/react-stack/)
44
+ * - [Stack](https://v6.mui.com/material-ui/react-stack/)
45
45
  *
46
46
  * API:
47
47
  *
48
- * - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/)
48
+ * - [PigmentStack API](https://v6.mui.com/material-ui/api/pigment-stack/)
49
49
  */
50
50
  declare const PigmentStack: OverridableComponent<PigmentStackTypeMap>;
51
51
  export default PigmentStack;
@@ -16,11 +16,11 @@ const useUtilityClasses = () => {
16
16
  *
17
17
  * Demos:
18
18
  *
19
- * - [Stack](https://mui.com/material-ui/react-stack/)
19
+ * - [Stack](https://v6.mui.com/material-ui/react-stack/)
20
20
  *
21
21
  * API:
22
22
  *
23
- * - [PigmentStack API](https://mui.com/material-ui/api/pigment-stack/)
23
+ * - [PigmentStack API](https://v6.mui.com/material-ui/api/pigment-stack/)
24
24
  */
25
25
  const PigmentStack = /*#__PURE__*/React.forwardRef(function PigmentStack({
26
26
  className,
@@ -259,12 +259,12 @@ export declare const PopoverPaper: React.FC<PopoverPaperProps>;
259
259
  *
260
260
  * Demos:
261
261
  *
262
- * - [Menu](https://mui.com/material-ui/react-menu/)
263
- * - [Popover](https://mui.com/material-ui/react-popover/)
262
+ * - [Menu](https://v6.mui.com/material-ui/react-menu/)
263
+ * - [Popover](https://v6.mui.com/material-ui/react-popover/)
264
264
  *
265
265
  * API:
266
266
  *
267
- * - [Popover API](https://mui.com/material-ui/api/popover/)
268
- * - inherits [Modal API](https://mui.com/material-ui/api/modal/)
267
+ * - [Popover API](https://v6.mui.com/material-ui/api/popover/)
268
+ * - inherits [Modal API](https://v6.mui.com/material-ui/api/modal/)
269
269
  */
270
270
  export default function Popover(props: PopoverProps): React.JSX.Element;
@@ -34,13 +34,13 @@ export interface PopperProps extends Omit<BasePopperProps, 'direction'> {
34
34
  *
35
35
  * Demos:
36
36
  *
37
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
38
- * - [Menu](https://mui.com/material-ui/react-menu/)
39
- * - [Popper](https://mui.com/material-ui/react-popper/)
37
+ * - [Autocomplete](https://v6.mui.com/material-ui/react-autocomplete/)
38
+ * - [Menu](https://v6.mui.com/material-ui/react-menu/)
39
+ * - [Popper](https://v6.mui.com/material-ui/react-popper/)
40
40
  *
41
41
  * API:
42
42
  *
43
- * - [Popper API](https://mui.com/material-ui/api/popper/)
43
+ * - [Popper API](https://v6.mui.com/material-ui/api/popper/)
44
44
  */
45
45
  declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
46
46
  export default Popper;
package/Popper/Popper.js CHANGED
@@ -19,13 +19,13 @@ const PopperRoot = styled(BasePopper, {
19
19
  *
20
20
  * Demos:
21
21
  *
22
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
23
- * - [Menu](https://mui.com/material-ui/react-menu/)
24
- * - [Popper](https://mui.com/material-ui/react-popper/)
22
+ * - [Autocomplete](https://v6.mui.com/material-ui/react-autocomplete/)
23
+ * - [Menu](https://v6.mui.com/material-ui/react-menu/)
24
+ * - [Popper](https://v6.mui.com/material-ui/react-popper/)
25
25
  *
26
26
  * API:
27
27
  *
28
- * - [Popper API](https://mui.com/material-ui/api/popper/)
28
+ * - [Popper API](https://v6.mui.com/material-ui/api/popper/)
29
29
  */
30
30
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
31
31
  const isRtl = useRtl();
@@ -6,11 +6,11 @@ import { PortalProps } from './Portal.types';
6
6
  *
7
7
  * Demos:
8
8
  *
9
- * - [Portal](https://mui.com/material-ui/react-portal/)
9
+ * - [Portal](https://v6.mui.com/material-ui/react-portal/)
10
10
  *
11
11
  * API:
12
12
  *
13
- * - [Portal API](https://mui.com/material-ui/api/portal/)
13
+ * - [Portal API](https://v6.mui.com/material-ui/api/portal/)
14
14
  */
15
15
  declare const Portal: React.ForwardRefExoticComponent<PortalProps & React.RefAttributes<Element>>;
16
16
  export default Portal;
package/Portal/Portal.js CHANGED
@@ -14,11 +14,11 @@ function getContainer(container) {
14
14
  *
15
15
  * Demos:
16
16
  *
17
- * - [Portal](https://mui.com/material-ui/react-portal/)
17
+ * - [Portal](https://v6.mui.com/material-ui/react-portal/)
18
18
  *
19
19
  * API:
20
20
  *
21
- * - [Portal API](https://mui.com/material-ui/api/portal/)
21
+ * - [Portal API](https://v6.mui.com/material-ui/api/portal/)
22
22
  */
23
23
  const Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {
24
24
  const {
package/README.md CHANGED
@@ -11,12 +11,14 @@ Material UI is an open-source React component library that implements Google's
11
11
 
12
12
  Install the package in your project directory with:
13
13
 
14
- <!-- #default-branch-switch -->
14
+ <!-- #npm-tag-reference -->
15
15
 
16
16
  ```bash
17
- npm install @mui/material @emotion/react @emotion/styled
17
+ npm install @mui/material@^6.0.0 @emotion/react @emotion/styled
18
18
  ```
19
19
 
20
+ If you wish to use the latest version, remove the `@^6.0.0` suffix.
21
+
20
22
  ## Documentation
21
23
 
22
24
  Visit [https://mui.com/material-ui/](https://mui.com/material-ui/) to view the full documentation.
package/Radio/Radio.d.ts CHANGED
@@ -99,11 +99,11 @@ export interface RadioOwnerState extends Omit<RadioProps, 'slots' | 'slotProps'>
99
99
  *
100
100
  * Demos:
101
101
  *
102
- * - [Radio Group](https://mui.com/material-ui/react-radio-button/)
102
+ * - [Radio Group](https://v6.mui.com/material-ui/react-radio-button/)
103
103
  *
104
104
  * API:
105
105
  *
106
- * - [Radio API](https://mui.com/material-ui/api/radio/)
107
- * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
106
+ * - [Radio API](https://v6.mui.com/material-ui/api/radio/)
107
+ * - inherits [ButtonBase API](https://v6.mui.com/material-ui/api/button-base/)
108
108
  */
109
109
  export default function Radio(props: RadioProps): React.JSX.Element;
@@ -29,11 +29,11 @@ export interface RadioGroupProps extends Omit<FormGroupProps, 'onChange'> {
29
29
  *
30
30
  * Demos:
31
31
  *
32
- * - [Radio Group](https://mui.com/material-ui/react-radio-button/)
32
+ * - [Radio Group](https://v6.mui.com/material-ui/react-radio-button/)
33
33
  *
34
34
  * API:
35
35
  *
36
- * - [RadioGroup API](https://mui.com/material-ui/api/radio-group/)
37
- * - inherits [FormGroup API](https://mui.com/material-ui/api/form-group/)
36
+ * - [RadioGroup API](https://v6.mui.com/material-ui/api/radio-group/)
37
+ * - inherits [FormGroup API](https://v6.mui.com/material-ui/api/form-group/)
38
38
  */
39
39
  export default function RadioGroup(props: RadioGroupProps): React.JSX.Element;
@@ -184,11 +184,11 @@ export type RatingTypeMap<
184
184
  *
185
185
  * Demos:
186
186
  *
187
- * - [Rating](https://mui.com/material-ui/react-rating/)
187
+ * - [Rating](https://v6.mui.com/material-ui/react-rating/)
188
188
  *
189
189
  * API:
190
190
  *
191
- * - [Rating API](https://mui.com/material-ui/api/rating/)
191
+ * - [Rating API](https://v6.mui.com/material-ui/api/rating/)
192
192
  */
193
193
  declare const Rating: OverridableComponent<RatingTypeMap>;
194
194
 
@@ -36,11 +36,11 @@ export interface ScopedCssBaselineTypeMap<
36
36
  *
37
37
  * Demos:
38
38
  *
39
- * - [CSS Baseline](https://mui.com/material-ui/react-css-baseline/)
39
+ * - [CSS Baseline](https://v6.mui.com/material-ui/react-css-baseline/)
40
40
  *
41
41
  * API:
42
42
  *
43
- * - [ScopedCssBaseline API](https://mui.com/material-ui/api/scoped-css-baseline/)
43
+ * - [ScopedCssBaseline API](https://v6.mui.com/material-ui/api/scoped-css-baseline/)
44
44
  */
45
45
  declare const ScopedCssBaseline: OverridableComponent<ScopedCssBaselineTypeMap>;
46
46
 
@@ -195,12 +195,12 @@ export type SelectProps<Value = unknown> =
195
195
  *
196
196
  * Demos:
197
197
  *
198
- * - [Select](https://mui.com/material-ui/react-select/)
198
+ * - [Select](https://v6.mui.com/material-ui/react-select/)
199
199
  *
200
200
  * API:
201
201
  *
202
- * - [Select API](https://mui.com/material-ui/api/select/)
203
- * - inherits [OutlinedInput API](https://mui.com/material-ui/api/outlined-input/)
202
+ * - [Select API](https://v6.mui.com/material-ui/api/select/)
203
+ * - inherits [OutlinedInput API](https://v6.mui.com/material-ui/api/outlined-input/)
204
204
  */
205
205
  declare const Select: (<Value = unknown>(props: SelectProps<Value>) => React.JSX.Element) & {
206
206
  muiName: string;
@@ -58,11 +58,11 @@ export interface SkeletonTypeMap<
58
58
  *
59
59
  * Demos:
60
60
  *
61
- * - [Skeleton](https://mui.com/material-ui/react-skeleton/)
61
+ * - [Skeleton](https://v6.mui.com/material-ui/react-skeleton/)
62
62
  *
63
63
  * API:
64
64
  *
65
- * - [Skeleton API](https://mui.com/material-ui/api/skeleton/)
65
+ * - [Skeleton API](https://v6.mui.com/material-ui/api/skeleton/)
66
66
  */
67
67
  declare const Skeleton: OverridableComponent<SkeletonTypeMap>;
68
68
 
package/Slide/Slide.d.ts CHANGED
@@ -48,17 +48,17 @@ export interface SlideProps extends TransitionProps {
48
48
  }
49
49
 
50
50
  /**
51
- * The Slide transition is used by the [Drawer](https://mui.com/material-ui/react-drawer/) component.
51
+ * The Slide transition is used by the [Drawer](https://v6.mui.com/material-ui/react-drawer/) component.
52
52
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
53
53
  *
54
54
  * Demos:
55
55
  *
56
- * - [Dialog](https://mui.com/material-ui/react-dialog/)
57
- * - [Transitions](https://mui.com/material-ui/transitions/)
56
+ * - [Dialog](https://v6.mui.com/material-ui/react-dialog/)
57
+ * - [Transitions](https://v6.mui.com/material-ui/transitions/)
58
58
  *
59
59
  * API:
60
60
  *
61
- * - [Slide API](https://mui.com/material-ui/api/slide/)
61
+ * - [Slide API](https://v6.mui.com/material-ui/api/slide/)
62
62
  * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
63
63
  */
64
64
  export default function Slide(props: SlideProps): React.JSX.Element;
@@ -306,11 +306,11 @@ export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
306
306
  *
307
307
  * Demos:
308
308
  *
309
- * - [Slider](https://mui.com/material-ui/react-slider/)
309
+ * - [Slider](https://v6.mui.com/material-ui/react-slider/)
310
310
  *
311
311
  * API:
312
312
  *
313
- * - [Slider API](https://mui.com/material-ui/api/slider/)
313
+ * - [Slider API](https://v6.mui.com/material-ui/api/slider/)
314
314
  */
315
315
  declare const Slider: OverridableComponent<SliderTypeMap>;
316
316
 
@@ -196,11 +196,11 @@ export interface SnackbarProps
196
196
  *
197
197
  * Demos:
198
198
  *
199
- * - [Snackbar](https://mui.com/material-ui/react-snackbar/)
199
+ * - [Snackbar](https://v6.mui.com/material-ui/react-snackbar/)
200
200
  *
201
201
  * API:
202
202
  *
203
- * - [Snackbar API](https://mui.com/material-ui/api/snackbar/)
203
+ * - [Snackbar API](https://v6.mui.com/material-ui/api/snackbar/)
204
204
  */
205
205
  export default function Snackbar(props: SnackbarProps): React.JSX.Element;
206
206
 
@@ -196,7 +196,10 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
196
196
  },
197
197
  ownerState
198
198
  });
199
- const [ClickAwaySlot, clickAwayListenerProps] = useSlot('clickAwayListener', {
199
+ const [ClickAwaySlot, {
200
+ ownerState: clickAwayOwnerStateProp,
201
+ ...clickAwayListenerProps
202
+ }] = useSlot('clickAwayListener', {
200
203
  elementType: ClickAwayListener,
201
204
  externalForwardedProps,
202
205
  getSlotProps: handlers => ({
@@ -245,6 +248,9 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
245
248
  }
246
249
  return /*#__PURE__*/_jsx(ClickAwaySlot, {
247
250
  ...clickAwayListenerProps,
251
+ ...(slots.clickAwayListener && {
252
+ ownerState: clickAwayOwnerStateProp
253
+ }),
248
254
  children: /*#__PURE__*/_jsx(Root, {
249
255
  ...rootProps,
250
256
  children: /*#__PURE__*/_jsx(TransitionSlot, {
@@ -33,11 +33,11 @@ export interface SnackbarContentProps extends StandardProps<PaperProps, 'childre
33
33
  *
34
34
  * Demos:
35
35
  *
36
- * - [Snackbar](https://mui.com/material-ui/react-snackbar/)
36
+ * - [Snackbar](https://v6.mui.com/material-ui/react-snackbar/)
37
37
  *
38
38
  * API:
39
39
  *
40
- * - [SnackbarContent API](https://mui.com/material-ui/api/snackbar-content/)
41
- * - inherits [Paper API](https://mui.com/material-ui/api/paper/)
40
+ * - [SnackbarContent API](https://v6.mui.com/material-ui/api/snackbar-content/)
41
+ * - inherits [Paper API](https://v6.mui.com/material-ui/api/paper/)
42
42
  */
43
43
  export default function SnackbarContent(props: SnackbarContentProps): React.JSX.Element;
@@ -11,6 +11,11 @@ export type CloseReason = 'toggle' | 'blur' | 'mouseLeave' | 'escapeKeyDown';
11
11
  export type OpenReason = 'toggle' | 'focus' | 'mouseEnter';
12
12
 
13
13
  export interface SpeedDialSlots {
14
+ /**
15
+ * The component that renders the root slot.
16
+ * @default 'div'
17
+ */
18
+ root: React.ElementType;
14
19
  /**
15
20
  * The component that renders the transition.
16
21
  * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
@@ -22,6 +27,11 @@ export interface SpeedDialSlots {
22
27
  export type SpeedDialSlotsAndSlotProps = CreateSlotsAndSlotProps<
23
28
  SpeedDialSlots,
24
29
  {
30
+ /**
31
+ * Props forwarded to the root slot.
32
+ * By default, the avaible props are based on div element.
33
+ */
34
+ root: SlotComponentProps<'div', React.HTMLAttributes<HTMLDivElement>, SpeedDialOwnerState>;
25
35
  /**
26
36
  * Props forwarded to the transition slot.
27
37
  * By default, the avaible props are based on the [Zoom](https://mui.com/material-ui/api/zoom/#props) component.
@@ -125,10 +135,10 @@ export interface SpeedDialOwnerState extends SpeedDialProps {}
125
135
  *
126
136
  * Demos:
127
137
  *
128
- * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
138
+ * - [Speed Dial](https://v6.mui.com/material-ui/react-speed-dial/)
129
139
  *
130
140
  * API:
131
141
  *
132
- * - [SpeedDial API](https://mui.com/material-ui/api/speed-dial/)
142
+ * - [SpeedDial API](https://v6.mui.com/material-ui/api/speed-dial/)
133
143
  */
134
144
  export default function SpeedDial(props: SpeedDialProps): React.JSX.Element;
@@ -372,22 +372,49 @@ const SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref)
372
372
  slots: backwardCompatibleSlots,
373
373
  slotProps: backwardCompatibleSlotProps
374
374
  };
375
+ const [RootSlot, rootSlotProps] = useSlot('root', {
376
+ elementType: SpeedDialRoot,
377
+ externalForwardedProps: {
378
+ ...externalForwardedProps,
379
+ ...other
380
+ },
381
+ ownerState,
382
+ ref,
383
+ className: clsx(classes.root, className),
384
+ additionalProps: {
385
+ role: 'presentation'
386
+ },
387
+ getSlotProps: handlers => ({
388
+ ...handlers,
389
+ onKeyDown: event => {
390
+ handlers.onKeyDown?.(event);
391
+ handleKeyDown(event);
392
+ },
393
+ onBlur: event => {
394
+ handlers.onBlur?.(event);
395
+ handleClose(event);
396
+ },
397
+ onFocus: event => {
398
+ handlers.onFocus?.(event);
399
+ handleOpen(event);
400
+ },
401
+ onMouseEnter: event => {
402
+ handlers.onMouseEnter?.(event);
403
+ handleOpen(event);
404
+ },
405
+ onMouseLeave: event => {
406
+ handlers.onMouseLeave?.(event);
407
+ handleClose(event);
408
+ }
409
+ })
410
+ });
375
411
  const [TransitionSlot, transitionProps] = useSlot('transition', {
376
412
  elementType: Zoom,
377
413
  externalForwardedProps,
378
414
  ownerState
379
415
  });
380
- return /*#__PURE__*/_jsxs(SpeedDialRoot, {
381
- className: clsx(classes.root, className),
382
- ref: ref,
383
- role: "presentation",
384
- onKeyDown: handleKeyDown,
385
- onBlur: handleClose,
386
- onFocus: handleOpen,
387
- onMouseEnter: handleOpen,
388
- onMouseLeave: handleClose,
389
- ownerState: ownerState,
390
- ...other,
416
+ return /*#__PURE__*/_jsxs(RootSlot, {
417
+ ...rootSlotProps,
391
418
  children: [/*#__PURE__*/_jsx(TransitionSlot, {
392
419
  in: !hidden,
393
420
  timeout: transitionDuration,
@@ -507,6 +534,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
507
534
  * @default {}
508
535
  */
509
536
  slotProps: PropTypes.shape({
537
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
510
538
  transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
511
539
  }),
512
540
  /**
@@ -514,6 +542,7 @@ process.env.NODE_ENV !== "production" ? SpeedDial.propTypes /* remove-proptypes
514
542
  * @default {}
515
543
  */
516
544
  slots: PropTypes.shape({
545
+ root: PropTypes.elementType,
517
546
  transition: PropTypes.elementType
518
547
  }),
519
548
  /**
@@ -131,12 +131,12 @@ export interface SpeedDialActionProps
131
131
  *
132
132
  * Demos:
133
133
  *
134
- * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
134
+ * - [Speed Dial](https://v6.mui.com/material-ui/react-speed-dial/)
135
135
  *
136
136
  * API:
137
137
  *
138
- * - [SpeedDialAction API](https://mui.com/material-ui/api/speed-dial-action/)
139
- * - inherits [Tooltip API](https://mui.com/material-ui/api/tooltip/)
138
+ * - [SpeedDialAction API](https://v6.mui.com/material-ui/api/speed-dial-action/)
139
+ * - inherits [Tooltip API](https://v6.mui.com/material-ui/api/tooltip/)
140
140
  */
141
141
  export default function SpeedDialAction(props: SpeedDialActionProps): React.JSX.Element;
142
142
 
@@ -341,7 +341,7 @@ process.env.NODE_ENV !== "production" ? SpeedDialAction.propTypes /* remove-prop
341
341
  * @default 'left'
342
342
  * @deprecated Use `slotProps.tooltip.placement` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
343
343
  */
344
- tooltipPlacement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
344
+ tooltipPlacement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
345
345
  /**
346
346
  * Label to display in the tooltip.
347
347
  * @deprecated Use `slotProps.tooltip.title` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
@@ -33,11 +33,11 @@ export interface SpeedDialIconProps
33
33
  *
34
34
  * Demos:
35
35
  *
36
- * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/)
36
+ * - [Speed Dial](https://v6.mui.com/material-ui/react-speed-dial/)
37
37
  *
38
38
  * API:
39
39
  *
40
- * - [SpeedDialIcon API](https://mui.com/material-ui/api/speed-dial-icon/)
40
+ * - [SpeedDialIcon API](https://v6.mui.com/material-ui/api/speed-dial-icon/)
41
41
  */
42
42
  declare const SpeedDialIcon: ((props: SpeedDialIconProps) => React.JSX.Element) & {
43
43
  muiName: string;
package/Stack/Stack.d.ts CHANGED
@@ -50,11 +50,11 @@ export interface StackTypeMap<
50
50
  *
51
51
  * Demos:
52
52
  *
53
- * - [Stack](https://mui.com/material-ui/react-stack/)
53
+ * - [Stack](https://v6.mui.com/material-ui/react-stack/)
54
54
  *
55
55
  * API:
56
56
  *
57
- * - [Stack API](https://mui.com/material-ui/api/stack/)
57
+ * - [Stack API](https://v6.mui.com/material-ui/api/stack/)
58
58
  */
59
59
  declare const Stack: OverridableComponent<StackTypeMap>;
60
60
 
package/Step/Step.d.ts CHANGED
@@ -68,11 +68,11 @@ export type StepClasskey = keyof NonNullable<StepProps['classes']>;
68
68
  *
69
69
  * Demos:
70
70
  *
71
- * - [Stepper](https://mui.com/material-ui/react-stepper/)
71
+ * - [Stepper](https://v6.mui.com/material-ui/react-stepper/)
72
72
  *
73
73
  * API:
74
74
  *
75
- * - [Step API](https://mui.com/material-ui/api/step/)
75
+ * - [Step API](https://v6.mui.com/material-ui/api/step/)
76
76
  */
77
77
  declare const Step: OverridableComponent<StepTypeMap>;
78
78