@mui/material 9.0.0-beta.1 → 9.0.1

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 (419) hide show
  1. package/Accordion/Accordion.d.mts +3 -3
  2. package/Accordion/Accordion.d.ts +3 -3
  3. package/AccordionActions/AccordionActions.d.mts +2 -2
  4. package/AccordionActions/AccordionActions.d.ts +2 -2
  5. package/AccordionDetails/AccordionDetails.d.mts +2 -2
  6. package/AccordionDetails/AccordionDetails.d.ts +2 -2
  7. package/AccordionSummary/AccordionSummary.d.mts +3 -3
  8. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  9. package/Alert/Alert.d.mts +3 -3
  10. package/Alert/Alert.d.ts +3 -3
  11. package/AlertTitle/AlertTitle.d.mts +3 -3
  12. package/AlertTitle/AlertTitle.d.ts +3 -3
  13. package/AppBar/AppBar.d.mts +3 -3
  14. package/AppBar/AppBar.d.ts +3 -3
  15. package/Autocomplete/Autocomplete.d.mts +2 -2
  16. package/Autocomplete/Autocomplete.d.ts +2 -2
  17. package/Autocomplete/Autocomplete.js +65 -11
  18. package/Autocomplete/Autocomplete.mjs +65 -11
  19. package/Avatar/Avatar.d.mts +2 -2
  20. package/Avatar/Avatar.d.ts +2 -2
  21. package/Avatar/Avatar.js +4 -0
  22. package/Avatar/Avatar.mjs +4 -0
  23. package/AvatarGroup/AvatarGroup.d.mts +2 -2
  24. package/AvatarGroup/AvatarGroup.d.ts +2 -2
  25. package/Backdrop/Backdrop.d.mts +3 -3
  26. package/Backdrop/Backdrop.d.ts +3 -3
  27. package/Badge/Badge.d.mts +3 -3
  28. package/Badge/Badge.d.ts +3 -3
  29. package/Badge/Badge.js +3 -0
  30. package/Badge/Badge.mjs +3 -0
  31. package/BottomNavigation/BottomNavigation.d.mts +2 -2
  32. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  33. package/BottomNavigationAction/BottomNavigationAction.d.mts +3 -3
  34. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  35. package/Box/Box.d.mts +3 -3
  36. package/Box/Box.d.ts +3 -3
  37. package/Breadcrumbs/Breadcrumbs.d.mts +3 -3
  38. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  39. package/Button/Button.d.mts +6 -6
  40. package/Button/Button.d.ts +6 -6
  41. package/Button/Button.js +19 -2
  42. package/Button/Button.mjs +19 -2
  43. package/ButtonBase/ButtonBase.d.mts +9 -2
  44. package/ButtonBase/ButtonBase.d.ts +9 -2
  45. package/ButtonBase/ButtonBase.js +5 -2
  46. package/ButtonBase/ButtonBase.mjs +5 -2
  47. package/ButtonGroup/ButtonGroup.d.mts +2 -2
  48. package/ButtonGroup/ButtonGroup.d.ts +2 -2
  49. package/CHANGELOG.md +160 -1245
  50. package/Card/Card.d.mts +3 -3
  51. package/Card/Card.d.ts +3 -3
  52. package/CardActionArea/CardActionArea.d.mts +3 -3
  53. package/CardActionArea/CardActionArea.d.ts +3 -3
  54. package/CardActions/CardActions.d.mts +2 -2
  55. package/CardActions/CardActions.d.ts +2 -2
  56. package/CardContent/CardContent.d.mts +2 -2
  57. package/CardContent/CardContent.d.ts +2 -2
  58. package/CardHeader/CardHeader.d.mts +2 -2
  59. package/CardHeader/CardHeader.d.ts +2 -2
  60. package/CardMedia/CardMedia.d.mts +2 -2
  61. package/CardMedia/CardMedia.d.ts +2 -2
  62. package/Checkbox/Checkbox.d.mts +4 -4
  63. package/Checkbox/Checkbox.d.ts +4 -4
  64. package/Checkbox/Checkbox.js +2 -1
  65. package/Checkbox/Checkbox.mjs +2 -1
  66. package/Chip/Chip.d.mts +2 -2
  67. package/Chip/Chip.d.ts +2 -2
  68. package/CircularProgress/CircularProgress.d.mts +14 -4
  69. package/CircularProgress/CircularProgress.d.ts +14 -4
  70. package/CircularProgress/CircularProgress.js +33 -6
  71. package/CircularProgress/CircularProgress.mjs +33 -6
  72. package/ClickAwayListener/ClickAwayListener.d.mts +3 -3
  73. package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
  74. package/ClickAwayListener/ClickAwayListener.js +6 -9
  75. package/ClickAwayListener/ClickAwayListener.mjs +6 -9
  76. package/Collapse/Collapse.d.mts +5 -5
  77. package/Collapse/Collapse.d.ts +5 -5
  78. package/Collapse/Collapse.js +6 -18
  79. package/Collapse/Collapse.mjs +7 -19
  80. package/Container/Container.d.mts +2 -2
  81. package/Container/Container.d.ts +2 -2
  82. package/CssBaseline/CssBaseline.d.mts +2 -2
  83. package/CssBaseline/CssBaseline.d.ts +2 -2
  84. package/Dialog/Dialog.d.mts +3 -3
  85. package/Dialog/Dialog.d.ts +3 -3
  86. package/Dialog/Dialog.js +11 -6
  87. package/Dialog/Dialog.mjs +11 -6
  88. package/DialogActions/DialogActions.d.mts +2 -2
  89. package/DialogActions/DialogActions.d.ts +2 -2
  90. package/DialogContent/DialogContent.d.mts +2 -2
  91. package/DialogContent/DialogContent.d.ts +2 -2
  92. package/DialogContentText/DialogContentText.d.mts +3 -3
  93. package/DialogContentText/DialogContentText.d.ts +3 -3
  94. package/DialogTitle/DialogTitle.d.mts +3 -3
  95. package/DialogTitle/DialogTitle.d.ts +3 -3
  96. package/Divider/Divider.d.mts +4 -4
  97. package/Divider/Divider.d.ts +4 -4
  98. package/Drawer/Drawer.d.mts +3 -3
  99. package/Drawer/Drawer.d.ts +3 -3
  100. package/Drawer/Drawer.js +19 -8
  101. package/Drawer/Drawer.mjs +19 -8
  102. package/Fab/Fab.d.mts +3 -3
  103. package/Fab/Fab.d.ts +3 -3
  104. package/Fab/Fab.js +7 -1
  105. package/Fab/Fab.mjs +7 -1
  106. package/Fade/Fade.d.mts +3 -3
  107. package/Fade/Fade.d.ts +3 -3
  108. package/Fade/Fade.js +28 -32
  109. package/Fade/Fade.mjs +29 -33
  110. package/FilledInput/FilledInput.d.mts +7 -3
  111. package/FilledInput/FilledInput.d.ts +7 -3
  112. package/FilledInput/FilledInput.js +18 -20
  113. package/FilledInput/FilledInput.mjs +18 -20
  114. package/FormControl/FormControl.d.mts +7 -7
  115. package/FormControl/FormControl.d.ts +7 -7
  116. package/FormControl/useFormControl.d.mts +12 -2
  117. package/FormControl/useFormControl.d.ts +12 -2
  118. package/FormControl/useFormControl.js +13 -0
  119. package/FormControl/useFormControl.mjs +12 -0
  120. package/FormControlLabel/FormControlLabel.d.mts +4 -4
  121. package/FormControlLabel/FormControlLabel.d.ts +4 -4
  122. package/FormControlLabel/FormControlLabel.js +5 -8
  123. package/FormControlLabel/FormControlLabel.mjs +5 -8
  124. package/FormGroup/FormGroup.d.mts +3 -3
  125. package/FormGroup/FormGroup.d.ts +3 -3
  126. package/FormGroup/FormGroup.js +2 -5
  127. package/FormGroup/FormGroup.mjs +2 -5
  128. package/FormHelperText/FormHelperText.d.mts +3 -3
  129. package/FormHelperText/FormHelperText.d.ts +3 -3
  130. package/FormHelperText/FormHelperText.js +2 -5
  131. package/FormHelperText/FormHelperText.mjs +2 -5
  132. package/FormLabel/FormLabel.d.mts +5 -5
  133. package/FormLabel/FormLabel.d.ts +5 -5
  134. package/FormLabel/FormLabel.js +2 -5
  135. package/FormLabel/FormLabel.mjs +2 -5
  136. package/GlobalStyles/GlobalStyles.d.mts +2 -2
  137. package/GlobalStyles/GlobalStyles.d.ts +2 -2
  138. package/Grid/Grid.d.mts +2 -2
  139. package/Grid/Grid.d.ts +2 -2
  140. package/Grid/Grid.js +2 -2
  141. package/Grid/Grid.mjs +2 -2
  142. package/Grow/Grow.d.mts +5 -5
  143. package/Grow/Grow.d.ts +5 -5
  144. package/Grow/Grow.js +30 -38
  145. package/Grow/Grow.mjs +31 -39
  146. package/Icon/Icon.d.mts +3 -3
  147. package/Icon/Icon.d.ts +3 -3
  148. package/IconButton/IconButton.d.mts +5 -5
  149. package/IconButton/IconButton.d.ts +5 -5
  150. package/IconButton/IconButton.js +1 -8
  151. package/IconButton/IconButton.mjs +1 -8
  152. package/ImageList/ImageList.d.mts +2 -2
  153. package/ImageList/ImageList.d.ts +2 -2
  154. package/ImageListItem/ImageListItem.d.mts +2 -2
  155. package/ImageListItem/ImageListItem.d.ts +2 -2
  156. package/ImageListItemBar/ImageListItemBar.d.mts +2 -2
  157. package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  158. package/InitColorSchemeScript/InitColorSchemeScript.d.mts +2 -2
  159. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +2 -2
  160. package/InitColorSchemeScript/InitColorSchemeScript.js +2 -2
  161. package/InitColorSchemeScript/InitColorSchemeScript.mjs +2 -2
  162. package/Input/Input.d.mts +7 -3
  163. package/Input/Input.d.ts +7 -3
  164. package/Input/Input.js +6 -0
  165. package/Input/Input.mjs +6 -0
  166. package/InputAdornment/InputAdornment.d.mts +2 -2
  167. package/InputAdornment/InputAdornment.d.ts +2 -2
  168. package/InputBase/InputBase.d.mts +4 -3
  169. package/InputBase/InputBase.d.ts +4 -3
  170. package/InputBase/InputBase.js +50 -15
  171. package/InputBase/InputBase.mjs +50 -15
  172. package/InputLabel/InputLabel.d.mts +4 -4
  173. package/InputLabel/InputLabel.d.ts +4 -4
  174. package/InputLabel/InputLabel.js +5 -8
  175. package/InputLabel/InputLabel.mjs +5 -8
  176. package/LinearProgress/LinearProgress.d.mts +14 -4
  177. package/LinearProgress/LinearProgress.d.ts +14 -4
  178. package/LinearProgress/LinearProgress.js +42 -10
  179. package/LinearProgress/LinearProgress.mjs +42 -10
  180. package/Link/Link.d.mts +4 -4
  181. package/Link/Link.d.ts +4 -4
  182. package/List/List.d.mts +4 -4
  183. package/List/List.d.ts +4 -4
  184. package/List/List.js +2 -1
  185. package/List/List.mjs +2 -1
  186. package/ListItem/ListItem.d.mts +3 -3
  187. package/ListItem/ListItem.d.ts +3 -3
  188. package/ListItem/ListItem.js +1 -2
  189. package/ListItem/ListItem.mjs +1 -2
  190. package/ListItemAvatar/ListItemAvatar.d.mts +2 -2
  191. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  192. package/ListItemButton/ListItemButton.d.mts +4 -4
  193. package/ListItemButton/ListItemButton.d.ts +4 -4
  194. package/ListItemButton/ListItemButton.js +7 -1
  195. package/ListItemButton/ListItemButton.mjs +7 -1
  196. package/ListItemIcon/ListItemIcon.d.mts +3 -3
  197. package/ListItemIcon/ListItemIcon.d.ts +3 -3
  198. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +2 -2
  199. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  200. package/ListItemText/ListItemText.d.mts +3 -3
  201. package/ListItemText/ListItemText.d.ts +3 -3
  202. package/ListSubheader/ListSubheader.d.mts +3 -3
  203. package/ListSubheader/ListSubheader.d.ts +3 -3
  204. package/Menu/Menu.d.mts +4 -4
  205. package/Menu/Menu.d.ts +4 -4
  206. package/MenuItem/MenuItem.d.mts +3 -3
  207. package/MenuItem/MenuItem.d.ts +3 -3
  208. package/MenuItem/MenuItem.js +7 -1
  209. package/MenuItem/MenuItem.mjs +7 -1
  210. package/MenuList/MenuList.d.mts +4 -4
  211. package/MenuList/MenuList.d.ts +4 -4
  212. package/MenuList/MenuList.js +2 -1
  213. package/MenuList/MenuList.mjs +2 -1
  214. package/MobileStepper/MobileStepper.d.mts +3 -3
  215. package/MobileStepper/MobileStepper.d.ts +3 -3
  216. package/Modal/Modal.d.mts +7 -7
  217. package/Modal/Modal.d.ts +7 -7
  218. package/NativeSelect/NativeSelect.d.mts +3 -3
  219. package/NativeSelect/NativeSelect.d.ts +3 -3
  220. package/NativeSelect/NativeSelect.js +2 -5
  221. package/NativeSelect/NativeSelect.mjs +2 -5
  222. package/NoSsr/NoSsr.d.mts +2 -2
  223. package/NoSsr/NoSsr.d.ts +2 -2
  224. package/NoSsr/NoSsr.js +2 -2
  225. package/NoSsr/NoSsr.mjs +2 -2
  226. package/OutlinedInput/OutlinedInput.d.mts +4 -4
  227. package/OutlinedInput/OutlinedInput.d.ts +4 -4
  228. package/OutlinedInput/OutlinedInput.js +13 -23
  229. package/OutlinedInput/OutlinedInput.mjs +13 -23
  230. package/Pagination/Pagination.d.mts +2 -2
  231. package/Pagination/Pagination.d.ts +2 -2
  232. package/PaginationItem/PaginationItem.d.mts +3 -3
  233. package/PaginationItem/PaginationItem.d.ts +3 -3
  234. package/Paper/Paper.d.mts +4 -4
  235. package/Paper/Paper.d.ts +4 -4
  236. package/PigmentContainer/PigmentContainer.d.mts +2 -2
  237. package/PigmentContainer/PigmentContainer.d.ts +2 -2
  238. package/PigmentContainer/PigmentContainer.js +2 -3
  239. package/PigmentContainer/PigmentContainer.mjs +2 -3
  240. package/PigmentGrid/PigmentGrid.d.mts +2 -2
  241. package/PigmentGrid/PigmentGrid.d.ts +2 -2
  242. package/PigmentGrid/PigmentGrid.js +2 -2
  243. package/PigmentGrid/PigmentGrid.mjs +2 -2
  244. package/PigmentStack/PigmentStack.d.mts +2 -2
  245. package/PigmentStack/PigmentStack.d.ts +2 -2
  246. package/PigmentStack/PigmentStack.js +2 -2
  247. package/PigmentStack/PigmentStack.mjs +2 -2
  248. package/Popover/Popover.d.mts +4 -4
  249. package/Popover/Popover.d.ts +4 -4
  250. package/Popper/BasePopper.js +23 -1
  251. package/Popper/BasePopper.mjs +23 -1
  252. package/Popper/Popper.d.mts +4 -4
  253. package/Popper/Popper.d.ts +4 -4
  254. package/Popper/Popper.js +4 -4
  255. package/Popper/Popper.mjs +4 -4
  256. package/Portal/Portal.d.mts +2 -2
  257. package/Portal/Portal.d.ts +2 -2
  258. package/Portal/Portal.js +2 -2
  259. package/Portal/Portal.mjs +2 -2
  260. package/README.md +3 -3
  261. package/Radio/Radio.d.mts +3 -3
  262. package/Radio/Radio.d.ts +3 -3
  263. package/RadioGroup/RadioGroup.d.mts +3 -3
  264. package/RadioGroup/RadioGroup.d.ts +3 -3
  265. package/Rating/Rating.d.mts +2 -2
  266. package/Rating/Rating.d.ts +2 -2
  267. package/ScopedCssBaseline/ScopedCssBaseline.d.mts +2 -2
  268. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  269. package/Select/Select.d.mts +3 -3
  270. package/Select/Select.d.ts +3 -3
  271. package/Select/Select.js +2 -5
  272. package/Select/Select.mjs +2 -5
  273. package/Select/SelectInput.js +164 -2
  274. package/Select/SelectInput.mjs +164 -2
  275. package/Skeleton/Skeleton.d.mts +2 -2
  276. package/Skeleton/Skeleton.d.ts +2 -2
  277. package/Slide/Slide.d.mts +4 -4
  278. package/Slide/Slide.d.ts +4 -4
  279. package/Slide/Slide.js +73 -50
  280. package/Slide/Slide.mjs +74 -52
  281. package/Slider/Slider.d.mts +4 -4
  282. package/Slider/Slider.d.ts +4 -4
  283. package/Slider/Slider.js +11 -2
  284. package/Slider/Slider.mjs +11 -2
  285. package/Slider/useSlider.d.mts +1 -1
  286. package/Slider/useSlider.d.ts +1 -1
  287. package/Slider/useSlider.js +236 -209
  288. package/Slider/useSlider.mjs +236 -209
  289. package/Slider/useSlider.types.d.mts +2 -2
  290. package/Slider/useSlider.types.d.ts +2 -2
  291. package/Snackbar/Snackbar.d.mts +2 -2
  292. package/Snackbar/Snackbar.d.ts +2 -2
  293. package/SnackbarContent/SnackbarContent.d.mts +3 -3
  294. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  295. package/SpeedDial/SpeedDial.d.mts +2 -2
  296. package/SpeedDial/SpeedDial.d.ts +2 -2
  297. package/SpeedDialAction/SpeedDialAction.d.mts +3 -3
  298. package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
  299. package/SpeedDialIcon/SpeedDialIcon.d.mts +2 -2
  300. package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  301. package/Stack/Stack.d.mts +2 -2
  302. package/Stack/Stack.d.ts +2 -2
  303. package/Step/Step.d.mts +2 -2
  304. package/Step/Step.d.ts +2 -2
  305. package/StepButton/StepButton.d.mts +3 -3
  306. package/StepButton/StepButton.d.ts +3 -3
  307. package/StepConnector/StepConnector.d.mts +2 -2
  308. package/StepConnector/StepConnector.d.ts +2 -2
  309. package/StepConnector/StepConnector.js +1 -2
  310. package/StepConnector/StepConnector.mjs +1 -2
  311. package/StepContent/StepContent.d.mts +2 -2
  312. package/StepContent/StepContent.d.ts +2 -2
  313. package/StepIcon/StepIcon.d.mts +3 -3
  314. package/StepIcon/StepIcon.d.ts +3 -3
  315. package/StepLabel/StepLabel.d.mts +2 -2
  316. package/StepLabel/StepLabel.d.ts +2 -2
  317. package/Stepper/Stepper.d.mts +2 -2
  318. package/Stepper/Stepper.d.ts +2 -2
  319. package/SvgIcon/SvgIcon.d.mts +3 -3
  320. package/SvgIcon/SvgIcon.d.ts +3 -3
  321. package/SwipeableDrawer/SwipeableDrawer.d.mts +3 -3
  322. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  323. package/SwipeableDrawer/SwipeableDrawer.js +7 -6
  324. package/SwipeableDrawer/SwipeableDrawer.mjs +7 -6
  325. package/Switch/Switch.d.mts +4 -4
  326. package/Switch/Switch.d.ts +4 -4
  327. package/Switch/Switch.js +9 -4
  328. package/Switch/Switch.mjs +9 -4
  329. package/Tab/Tab.d.mts +3 -3
  330. package/Tab/Tab.d.ts +3 -3
  331. package/TabScrollButton/TabScrollButton.d.mts +2 -2
  332. package/TabScrollButton/TabScrollButton.d.ts +2 -2
  333. package/Table/Table.d.mts +2 -2
  334. package/Table/Table.d.ts +2 -2
  335. package/TableBody/TableBody.d.mts +2 -2
  336. package/TableBody/TableBody.d.ts +2 -2
  337. package/TableCell/TableCell.d.mts +2 -2
  338. package/TableCell/TableCell.d.ts +2 -2
  339. package/TableContainer/TableContainer.d.mts +2 -2
  340. package/TableContainer/TableContainer.d.ts +2 -2
  341. package/TableFooter/TableFooter.d.mts +2 -2
  342. package/TableFooter/TableFooter.d.ts +2 -2
  343. package/TableHead/TableHead.d.mts +2 -2
  344. package/TableHead/TableHead.d.ts +2 -2
  345. package/TablePagination/TablePagination.d.mts +4 -4
  346. package/TablePagination/TablePagination.d.ts +4 -4
  347. package/TablePaginationActions/TablePaginationActions.d.mts +2 -2
  348. package/TablePaginationActions/TablePaginationActions.d.ts +2 -2
  349. package/TableRow/TableRow.d.mts +2 -2
  350. package/TableRow/TableRow.d.ts +2 -2
  351. package/TableSortLabel/TableSortLabel.d.mts +3 -3
  352. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  353. package/TableSortLabel/TableSortLabel.js +1 -2
  354. package/TableSortLabel/TableSortLabel.mjs +1 -2
  355. package/Tabs/ScrollbarSize.js +2 -1
  356. package/Tabs/ScrollbarSize.mjs +2 -1
  357. package/Tabs/Tabs.d.mts +2 -2
  358. package/Tabs/Tabs.d.ts +2 -2
  359. package/Tabs/Tabs.js +2 -1
  360. package/Tabs/Tabs.mjs +2 -1
  361. package/TextField/TextField.d.mts +10 -10
  362. package/TextField/TextField.d.ts +10 -10
  363. package/TextareaAutosize/TextareaAutosize.d.mts +2 -2
  364. package/TextareaAutosize/TextareaAutosize.d.ts +2 -2
  365. package/TextareaAutosize/TextareaAutosize.js +2 -2
  366. package/TextareaAutosize/TextareaAutosize.mjs +2 -2
  367. package/ToggleButton/ToggleButton.d.mts +3 -3
  368. package/ToggleButton/ToggleButton.d.ts +3 -3
  369. package/ToggleButtonGroup/ToggleButtonGroup.d.mts +2 -2
  370. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  371. package/Toolbar/Toolbar.d.mts +2 -2
  372. package/Toolbar/Toolbar.d.ts +2 -2
  373. package/Tooltip/Tooltip.d.mts +2 -2
  374. package/Tooltip/Tooltip.d.ts +2 -2
  375. package/Tooltip/Tooltip.js +26 -108
  376. package/Tooltip/Tooltip.mjs +26 -108
  377. package/Typography/Typography.d.mts +4 -4
  378. package/Typography/Typography.d.ts +4 -4
  379. package/Unstable_TrapFocus/FocusTrap.js +18 -14
  380. package/Unstable_TrapFocus/FocusTrap.mjs +18 -14
  381. package/Zoom/Zoom.d.mts +3 -3
  382. package/Zoom/Zoom.d.ts +3 -3
  383. package/Zoom/Zoom.js +24 -30
  384. package/Zoom/Zoom.mjs +25 -31
  385. package/index.js +1 -1
  386. package/index.mjs +1 -1
  387. package/package.json +7 -7
  388. package/styles/createThemeNoVars.js +1 -1
  389. package/styles/createThemeNoVars.mjs +1 -1
  390. package/styles/responsiveFontSizes.js +19 -8
  391. package/styles/responsiveFontSizes.mjs +19 -8
  392. package/styles/useThemeProps.d.mts +3 -3
  393. package/styles/useThemeProps.d.ts +3 -3
  394. package/transitions/utils.d.mts +24 -0
  395. package/transitions/utils.d.ts +24 -0
  396. package/transitions/utils.js +91 -0
  397. package/transitions/utils.mjs +88 -0
  398. package/useAutocomplete/useAutocomplete.d.mts +4 -5
  399. package/useAutocomplete/useAutocomplete.d.ts +4 -5
  400. package/useAutocomplete/useAutocomplete.js +166 -53
  401. package/useAutocomplete/useAutocomplete.mjs +166 -53
  402. package/utils/contains.d.mts +2 -0
  403. package/utils/contains.d.ts +2 -0
  404. package/utils/contains.js +9 -0
  405. package/utils/contains.mjs +2 -0
  406. package/utils/focusable.d.mts +7 -0
  407. package/utils/focusable.d.ts +7 -0
  408. package/utils/focusable.js +20 -0
  409. package/utils/focusable.mjs +13 -0
  410. package/utils/getEventTarget.d.mts +2 -0
  411. package/utils/getEventTarget.d.ts +2 -0
  412. package/utils/getEventTarget.js +9 -0
  413. package/utils/getEventTarget.mjs +2 -0
  414. package/utils/mergeSlotProps.js +2 -8
  415. package/utils/mergeSlotProps.mjs +1 -8
  416. package/version/index.js +3 -3
  417. package/version/index.mjs +3 -3
  418. package/FormControl/formControlState.js +0 -21
  419. package/FormControl/formControlState.mjs +0 -15
@@ -84,18 +84,18 @@ export interface CollapseOwnerState extends CollapseProps {
84
84
 
85
85
  /**
86
86
  * The Collapse transition is used by the
87
- * [Vertical Stepper](https://next.mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
87
+ * [Vertical Stepper](https://mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
88
88
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
89
89
  *
90
90
  * Demos:
91
91
  *
92
- * - [Card](https://next.mui.com/material-ui/react-card/)
93
- * - [Lists](https://next.mui.com/material-ui/react-list/)
94
- * - [Transitions](https://next.mui.com/material-ui/transitions/)
92
+ * - [Card](https://mui.com/material-ui/react-card/)
93
+ * - [Lists](https://mui.com/material-ui/react-list/)
94
+ * - [Transitions](https://mui.com/material-ui/transitions/)
95
95
  *
96
96
  * API:
97
97
  *
98
- * - [Collapse API](https://next.mui.com/material-ui/api/collapse/)
98
+ * - [Collapse API](https://mui.com/material-ui/api/collapse/)
99
99
  * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
100
100
  */
101
101
 
@@ -84,18 +84,18 @@ export interface CollapseOwnerState extends CollapseProps {
84
84
 
85
85
  /**
86
86
  * The Collapse transition is used by the
87
- * [Vertical Stepper](https://next.mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
87
+ * [Vertical Stepper](https://mui.com/material-ui/react-stepper/#vertical-stepper) StepContent component.
88
88
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
89
89
  *
90
90
  * Demos:
91
91
  *
92
- * - [Card](https://next.mui.com/material-ui/react-card/)
93
- * - [Lists](https://next.mui.com/material-ui/react-list/)
94
- * - [Transitions](https://next.mui.com/material-ui/transitions/)
92
+ * - [Card](https://mui.com/material-ui/react-card/)
93
+ * - [Lists](https://mui.com/material-ui/react-list/)
94
+ * - [Transitions](https://mui.com/material-ui/transitions/)
95
95
  *
96
96
  * API:
97
97
  *
98
- * - [Collapse API](https://next.mui.com/material-ui/api/collapse/)
98
+ * - [Collapse API](https://mui.com/material-ui/api/collapse/)
99
99
  * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
100
100
  */
101
101
 
@@ -167,20 +167,8 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
167
167
  const size = isHorizontal ? 'width' : 'height';
168
168
  const nodeRef = React.useRef(null);
169
169
  const handleRef = (0, _utils2.useForkRef)(ref, nodeRef);
170
- const normalizedTransitionCallback = callback => maybeIsAppearing => {
171
- if (callback) {
172
- const node = nodeRef.current;
173
-
174
- // onEnterXxx and onExitXxx callbacks have a different arguments.length value.
175
- if (maybeIsAppearing === undefined) {
176
- callback(node);
177
- } else {
178
- callback(node, maybeIsAppearing);
179
- }
180
- }
181
- };
182
170
  const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;
183
- const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
171
+ const handleEnter = (0, _utils.normalizedTransitionCallback)(nodeRef, (node, isAppearing) => {
184
172
  if (wrapperRef.current && isHorizontal) {
185
173
  // Set absolute position to get the size of collapsed content
186
174
  wrapperRef.current.style.position = 'absolute';
@@ -190,7 +178,7 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
190
178
  onEnter(node, isAppearing);
191
179
  }
192
180
  });
193
- const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
181
+ const handleEntering = (0, _utils.normalizedTransitionCallback)(nodeRef, (node, isAppearing) => {
194
182
  const wrapperSize = getWrapperSize();
195
183
  if (wrapperRef.current && isHorizontal) {
196
184
  // After the size is read reset the position back to default
@@ -219,20 +207,20 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
219
207
  onEntering(node, isAppearing);
220
208
  }
221
209
  });
222
- const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
210
+ const handleEntered = (0, _utils.normalizedTransitionCallback)(nodeRef, (node, isAppearing) => {
223
211
  node.style[size] = 'auto';
224
212
  if (onEntered) {
225
213
  onEntered(node, isAppearing);
226
214
  }
227
215
  });
228
- const handleExit = normalizedTransitionCallback(node => {
216
+ const handleExit = (0, _utils.normalizedTransitionCallback)(nodeRef, node => {
229
217
  node.style[size] = `${getWrapperSize()}px`;
230
218
  if (onExit) {
231
219
  onExit(node);
232
220
  }
233
221
  });
234
- const handleExited = normalizedTransitionCallback(onExited);
235
- const handleExiting = normalizedTransitionCallback(node => {
222
+ const handleExited = (0, _utils.normalizedTransitionCallback)(nodeRef, onExited);
223
+ const handleExiting = (0, _utils.normalizedTransitionCallback)(nodeRef, node => {
236
224
  const wrapperSize = getWrapperSize();
237
225
  const {
238
226
  duration: transitionDuration,
@@ -11,7 +11,7 @@ import { styled, useTheme } from "../zero-styled/index.mjs";
11
11
  import memoTheme from "../utils/memoTheme.mjs";
12
12
  import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
13
13
  import { duration } from "../styles/createTransitions.mjs";
14
- import { getTransitionProps } from "../transitions/utils.mjs";
14
+ import { normalizedTransitionCallback, getTransitionProps } from "../transitions/utils.mjs";
15
15
  import { useForkRef } from "../utils/index.mjs";
16
16
  import useSlot from "../utils/useSlot.mjs";
17
17
  import { getCollapseUtilityClass } from "./collapseClasses.mjs";
@@ -160,20 +160,8 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
160
160
  const size = isHorizontal ? 'width' : 'height';
161
161
  const nodeRef = React.useRef(null);
162
162
  const handleRef = useForkRef(ref, nodeRef);
163
- const normalizedTransitionCallback = callback => maybeIsAppearing => {
164
- if (callback) {
165
- const node = nodeRef.current;
166
-
167
- // onEnterXxx and onExitXxx callbacks have a different arguments.length value.
168
- if (maybeIsAppearing === undefined) {
169
- callback(node);
170
- } else {
171
- callback(node, maybeIsAppearing);
172
- }
173
- }
174
- };
175
163
  const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;
176
- const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
164
+ const handleEnter = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
177
165
  if (wrapperRef.current && isHorizontal) {
178
166
  // Set absolute position to get the size of collapsed content
179
167
  wrapperRef.current.style.position = 'absolute';
@@ -183,7 +171,7 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
183
171
  onEnter(node, isAppearing);
184
172
  }
185
173
  });
186
- const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
174
+ const handleEntering = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
187
175
  const wrapperSize = getWrapperSize();
188
176
  if (wrapperRef.current && isHorizontal) {
189
177
  // After the size is read reset the position back to default
@@ -212,20 +200,20 @@ const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
212
200
  onEntering(node, isAppearing);
213
201
  }
214
202
  });
215
- const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
203
+ const handleEntered = normalizedTransitionCallback(nodeRef, (node, isAppearing) => {
216
204
  node.style[size] = 'auto';
217
205
  if (onEntered) {
218
206
  onEntered(node, isAppearing);
219
207
  }
220
208
  });
221
- const handleExit = normalizedTransitionCallback(node => {
209
+ const handleExit = normalizedTransitionCallback(nodeRef, node => {
222
210
  node.style[size] = `${getWrapperSize()}px`;
223
211
  if (onExit) {
224
212
  onExit(node);
225
213
  }
226
214
  });
227
- const handleExited = normalizedTransitionCallback(onExited);
228
- const handleExiting = normalizedTransitionCallback(node => {
215
+ const handleExited = normalizedTransitionCallback(nodeRef, onExited);
216
+ const handleExiting = normalizedTransitionCallback(nodeRef, node => {
229
217
  const wrapperSize = getWrapperSize();
230
218
  const {
231
219
  duration: transitionDuration,
@@ -42,11 +42,11 @@ export interface ContainerTypeMap<AdditionalProps = {}, RootComponent extends Re
42
42
  *
43
43
  * Demos:
44
44
  *
45
- * - [Container](https://next.mui.com/material-ui/react-container/)
45
+ * - [Container](https://mui.com/material-ui/react-container/)
46
46
  *
47
47
  * API:
48
48
  *
49
- * - [Container API](https://next.mui.com/material-ui/api/container/)
49
+ * - [Container API](https://mui.com/material-ui/api/container/)
50
50
  */
51
51
  declare const Container: OverridableComponent<ContainerTypeMap>;
52
52
  export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
@@ -42,11 +42,11 @@ export interface ContainerTypeMap<AdditionalProps = {}, RootComponent extends Re
42
42
  *
43
43
  * Demos:
44
44
  *
45
- * - [Container](https://next.mui.com/material-ui/react-container/)
45
+ * - [Container](https://mui.com/material-ui/react-container/)
46
46
  *
47
47
  * API:
48
48
  *
49
- * - [Container API](https://next.mui.com/material-ui/api/container/)
49
+ * - [Container API](https://mui.com/material-ui/api/container/)
50
50
  */
51
51
  declare const Container: OverridableComponent<ContainerTypeMap>;
52
52
  export type ContainerProps<RootComponent extends React.ElementType = ContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<ContainerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
@@ -19,10 +19,10 @@ export interface CssBaselineProps extends StyledComponentProps<never> {
19
19
  *
20
20
  * Demos:
21
21
  *
22
- * - [CSS Baseline](https://next.mui.com/material-ui/react-css-baseline/)
22
+ * - [CSS Baseline](https://mui.com/material-ui/react-css-baseline/)
23
23
  *
24
24
  * API:
25
25
  *
26
- * - [CssBaseline API](https://next.mui.com/material-ui/api/css-baseline/)
26
+ * - [CssBaseline API](https://mui.com/material-ui/api/css-baseline/)
27
27
  */
28
28
  export default function CssBaseline(props: CssBaselineProps): React.JSX.Element;
@@ -19,10 +19,10 @@ export interface CssBaselineProps extends StyledComponentProps<never> {
19
19
  *
20
20
  * Demos:
21
21
  *
22
- * - [CSS Baseline](https://next.mui.com/material-ui/react-css-baseline/)
22
+ * - [CSS Baseline](https://mui.com/material-ui/react-css-baseline/)
23
23
  *
24
24
  * API:
25
25
  *
26
- * - [CssBaseline API](https://next.mui.com/material-ui/api/css-baseline/)
26
+ * - [CssBaseline API](https://mui.com/material-ui/api/css-baseline/)
27
27
  */
28
28
  export default function CssBaseline(props: CssBaselineProps): React.JSX.Element;
@@ -155,12 +155,12 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
155
155
  *
156
156
  * Demos:
157
157
  *
158
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
158
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
159
159
  *
160
160
  * API:
161
161
  *
162
- * - [Dialog API](https://next.mui.com/material-ui/api/dialog/)
163
- * - inherits [Modal API](https://next.mui.com/material-ui/api/modal/)
162
+ * - [Dialog API](https://mui.com/material-ui/api/dialog/)
163
+ * - inherits [Modal API](https://mui.com/material-ui/api/modal/)
164
164
  */
165
165
  export default function Dialog(props: DialogProps): React.JSX.Element;
166
166
  export interface DialogOwnerState extends Omit<DialogProps, 'slots' | 'slotProps'> {}
@@ -155,12 +155,12 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
155
155
  *
156
156
  * Demos:
157
157
  *
158
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
158
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
159
159
  *
160
160
  * API:
161
161
  *
162
- * - [Dialog API](https://next.mui.com/material-ui/api/dialog/)
163
- * - inherits [Modal API](https://next.mui.com/material-ui/api/modal/)
162
+ * - [Dialog API](https://mui.com/material-ui/api/dialog/)
163
+ * - inherits [Modal API](https://mui.com/material-ui/api/modal/)
164
164
  */
165
165
  export default function Dialog(props: DialogProps): React.JSX.Element;
166
166
  export interface DialogOwnerState extends Omit<DialogProps, 'slots' | 'slotProps'> {}
package/Dialog/Dialog.js CHANGED
@@ -23,6 +23,7 @@ var _zeroStyled = require("../zero-styled");
23
23
  var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
24
24
  var _DefaultPropsProvider = require("../DefaultPropsProvider");
25
25
  var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
26
+ var _focusable = require("../utils/focusable");
26
27
  var _jsxRuntime = require("react/jsx-runtime");
27
28
  const DialogBackdrop = (0, _zeroStyled.styled)(_Backdrop.default, {
28
29
  name: 'MuiDialog',
@@ -298,7 +299,16 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
298
299
  shouldForwardComponentProp: true,
299
300
  externalForwardedProps,
300
301
  ownerState,
301
- className: classes.paper
302
+ className: classes.paper,
303
+ additionalProps: {
304
+ elevation: 24,
305
+ role,
306
+ 'aria-describedby': ariaDescribedby,
307
+ 'aria-labelledby': ariaLabelledby,
308
+ 'aria-modal': ariaModal,
309
+ tabIndex: -1,
310
+ [_focusable.FOCUSABLE_ATTRIBUTE]: ''
311
+ }
302
312
  });
303
313
  const [ContainerSlot, containerSlotProps] = (0, _useSlot.default)('container', {
304
314
  elementType: DialogContainer,
@@ -340,11 +350,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
340
350
  ...containerSlotProps,
341
351
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperSlot, {
342
352
  as: PaperComponent,
343
- elevation: 24,
344
- role: role,
345
- "aria-describedby": ariaDescribedby,
346
- "aria-labelledby": ariaLabelledby,
347
- "aria-modal": ariaModal,
348
353
  ...paperSlotProps,
349
354
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DialogContext.default.Provider, {
350
355
  value: dialogContextValue,
package/Dialog/Dialog.mjs CHANGED
@@ -16,6 +16,7 @@ import { styled, useTheme } from "../zero-styled/index.mjs";
16
16
  import memoTheme from "../utils/memoTheme.mjs";
17
17
  import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
18
18
  import useSlot from "../utils/useSlot.mjs";
19
+ import { FOCUSABLE_ATTRIBUTE } from "../utils/focusable.mjs";
19
20
  import { jsx as _jsx } from "react/jsx-runtime";
20
21
  const DialogBackdrop = styled(Backdrop, {
21
22
  name: 'MuiDialog',
@@ -291,7 +292,16 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
291
292
  shouldForwardComponentProp: true,
292
293
  externalForwardedProps,
293
294
  ownerState,
294
- className: classes.paper
295
+ className: classes.paper,
296
+ additionalProps: {
297
+ elevation: 24,
298
+ role,
299
+ 'aria-describedby': ariaDescribedby,
300
+ 'aria-labelledby': ariaLabelledby,
301
+ 'aria-modal': ariaModal,
302
+ tabIndex: -1,
303
+ [FOCUSABLE_ATTRIBUTE]: ''
304
+ }
295
305
  });
296
306
  const [ContainerSlot, containerSlotProps] = useSlot('container', {
297
307
  elementType: DialogContainer,
@@ -333,11 +343,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
333
343
  ...containerSlotProps,
334
344
  children: /*#__PURE__*/_jsx(PaperSlot, {
335
345
  as: PaperComponent,
336
- elevation: 24,
337
- role: role,
338
- "aria-describedby": ariaDescribedby,
339
- "aria-labelledby": ariaLabelledby,
340
- "aria-modal": ariaModal,
341
346
  ...paperSlotProps,
342
347
  children: /*#__PURE__*/_jsx(DialogContext.Provider, {
343
348
  value: dialogContextValue,
@@ -27,10 +27,10 @@ export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<H
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
30
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [DialogActions API](https://next.mui.com/material-ui/api/dialog-actions/)
34
+ * - [DialogActions API](https://mui.com/material-ui/api/dialog-actions/)
35
35
  */
36
36
  export default function DialogActions(props: DialogActionsProps): React.JSX.Element;
@@ -27,10 +27,10 @@ export interface DialogActionsProps extends StandardProps<React.HTMLAttributes<H
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
30
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [DialogActions API](https://next.mui.com/material-ui/api/dialog-actions/)
34
+ * - [DialogActions API](https://mui.com/material-ui/api/dialog-actions/)
35
35
  */
36
36
  export default function DialogActions(props: DialogActionsProps): React.JSX.Element;
@@ -27,10 +27,10 @@ export interface DialogContentProps extends StandardProps<React.HTMLAttributes<H
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
30
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [DialogContent API](https://next.mui.com/material-ui/api/dialog-content/)
34
+ * - [DialogContent API](https://mui.com/material-ui/api/dialog-content/)
35
35
  */
36
36
  export default function DialogContent(props: DialogContentProps): React.JSX.Element;
@@ -27,10 +27,10 @@ export interface DialogContentProps extends StandardProps<React.HTMLAttributes<H
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
30
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [DialogContent API](https://next.mui.com/material-ui/api/dialog-content/)
34
+ * - [DialogContent API](https://mui.com/material-ui/api/dialog-content/)
35
35
  */
36
36
  export default function DialogContent(props: DialogContentProps): React.JSX.Element;
@@ -23,12 +23,12 @@ export interface DialogContentTextTypeMap<AdditionalProps = {}, RootComponent ex
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
26
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [DialogContentText API](https://next.mui.com/material-ui/api/dialog-content-text/)
31
- * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
30
+ * - [DialogContentText API](https://mui.com/material-ui/api/dialog-content-text/)
31
+ * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
32
32
  */
33
33
  declare const DialogContentText: OverridableComponent<DialogContentTextTypeMap>;
34
34
  export type DialogContentTextProps<RootComponent extends React.ElementType = DialogContentTextTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DialogContentTextTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
@@ -23,12 +23,12 @@ export interface DialogContentTextTypeMap<AdditionalProps = {}, RootComponent ex
23
23
  *
24
24
  * Demos:
25
25
  *
26
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
26
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
27
27
  *
28
28
  * API:
29
29
  *
30
- * - [DialogContentText API](https://next.mui.com/material-ui/api/dialog-content-text/)
31
- * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
30
+ * - [DialogContentText API](https://mui.com/material-ui/api/dialog-content-text/)
31
+ * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
32
32
  */
33
33
  declare const DialogContentText: OverridableComponent<DialogContentTextTypeMap>;
34
34
  export type DialogContentTextProps<RootComponent extends React.ElementType = DialogContentTextTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DialogContentTextTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
@@ -27,12 +27,12 @@ export interface DialogTitleTypeMap<AdditionalProps = {}, RootComponent extends
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
30
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [DialogTitle API](https://next.mui.com/material-ui/api/dialog-title/)
35
- * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
34
+ * - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
35
+ * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
36
36
  */
37
37
  declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
38
38
  export type DialogTitleProps<RootComponent extends React.ElementType = DialogTitleTypeMap['defaultComponent'], AdditionalProps = {
@@ -27,12 +27,12 @@ export interface DialogTitleTypeMap<AdditionalProps = {}, RootComponent extends
27
27
  *
28
28
  * Demos:
29
29
  *
30
- * - [Dialog](https://next.mui.com/material-ui/react-dialog/)
30
+ * - [Dialog](https://mui.com/material-ui/react-dialog/)
31
31
  *
32
32
  * API:
33
33
  *
34
- * - [DialogTitle API](https://next.mui.com/material-ui/api/dialog-title/)
35
- * - inherits [Typography API](https://next.mui.com/material-ui/api/typography/)
34
+ * - [DialogTitle API](https://mui.com/material-ui/api/dialog-title/)
35
+ * - inherits [Typography API](https://mui.com/material-ui/api/typography/)
36
36
  */
37
37
  declare const DialogTitle: OverridableComponent<DialogTitleTypeMap>;
38
38
  export type DialogTitleProps<RootComponent extends React.ElementType = DialogTitleTypeMap['defaultComponent'], AdditionalProps = {
@@ -54,13 +54,13 @@ export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends Reac
54
54
  *
55
55
  * Demos:
56
56
  *
57
- * - [Divider](https://next.mui.com/material-ui/react-divider/)
58
- * - [Lists](https://next.mui.com/material-ui/react-list/)
59
- * - [Menubar](https://next.mui.com/material-ui/react-menubar/)
57
+ * - [Divider](https://mui.com/material-ui/react-divider/)
58
+ * - [Lists](https://mui.com/material-ui/react-list/)
59
+ * - [Menubar](https://mui.com/material-ui/react-menubar/)
60
60
  *
61
61
  * API:
62
62
  *
63
- * - [Divider API](https://next.mui.com/material-ui/api/divider/)
63
+ * - [Divider API](https://mui.com/material-ui/api/divider/)
64
64
  */
65
65
  declare const Divider: OverridableComponent<DividerTypeMap>;
66
66
  export type DividerProps<RootComponent extends React.ElementType = DividerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DividerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
@@ -54,13 +54,13 @@ export interface DividerTypeMap<AdditionalProps = {}, RootComponent extends Reac
54
54
  *
55
55
  * Demos:
56
56
  *
57
- * - [Divider](https://next.mui.com/material-ui/react-divider/)
58
- * - [Lists](https://next.mui.com/material-ui/react-list/)
59
- * - [Menubar](https://next.mui.com/material-ui/react-menubar/)
57
+ * - [Divider](https://mui.com/material-ui/react-divider/)
58
+ * - [Lists](https://mui.com/material-ui/react-list/)
59
+ * - [Menubar](https://mui.com/material-ui/react-menubar/)
60
60
  *
61
61
  * API:
62
62
  *
63
- * - [Divider API](https://next.mui.com/material-ui/api/divider/)
63
+ * - [Divider API](https://mui.com/material-ui/api/divider/)
64
64
  */
65
65
  declare const Divider: OverridableComponent<DividerTypeMap>;
66
66
  export type DividerProps<RootComponent extends React.ElementType = DividerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<DividerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
@@ -129,15 +129,15 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
129
129
  export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
130
130
 
131
131
  /**
132
- * The props of the [Modal](https://next.mui.com/material-ui/api/modal/) component are available
132
+ * The props of the [Modal](https://mui.com/material-ui/api/modal/) component are available
133
133
  * when `variant="temporary"` is set.
134
134
  *
135
135
  * Demos:
136
136
  *
137
- * - [Drawer](https://next.mui.com/material-ui/react-drawer/)
137
+ * - [Drawer](https://mui.com/material-ui/react-drawer/)
138
138
  *
139
139
  * API:
140
140
  *
141
- * - [Drawer API](https://next.mui.com/material-ui/api/drawer/)
141
+ * - [Drawer API](https://mui.com/material-ui/api/drawer/)
142
142
  */
143
143
  export default function Drawer(props: DrawerProps): React.JSX.Element;
@@ -129,15 +129,15 @@ export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'childre
129
129
  export interface DrawerOwnerState extends Omit<DrawerProps, 'slots' | 'slotProps'> {}
130
130
 
131
131
  /**
132
- * The props of the [Modal](https://next.mui.com/material-ui/api/modal/) component are available
132
+ * The props of the [Modal](https://mui.com/material-ui/api/modal/) component are available
133
133
  * when `variant="temporary"` is set.
134
134
  *
135
135
  * Demos:
136
136
  *
137
- * - [Drawer](https://next.mui.com/material-ui/react-drawer/)
137
+ * - [Drawer](https://mui.com/material-ui/react-drawer/)
138
138
  *
139
139
  * API:
140
140
  *
141
- * - [Drawer API](https://next.mui.com/material-ui/api/drawer/)
141
+ * - [Drawer API](https://mui.com/material-ui/api/drawer/)
142
142
  */
143
143
  export default function Drawer(props: DrawerProps): React.JSX.Element;
package/Drawer/Drawer.js CHANGED
@@ -23,8 +23,10 @@ var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShoul
23
23
  var _zeroStyled = require("../zero-styled");
24
24
  var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
25
25
  var _DefaultPropsProvider = require("../DefaultPropsProvider");
26
+ var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
26
27
  var _drawerClasses = require("./drawerClasses");
27
28
  var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
29
+ var _focusable = require("../utils/focusable");
28
30
  var _utils = require("../utils");
29
31
  var _jsxRuntime = require("react/jsx-runtime");
30
32
  const overridesResolver = (props, styles) => {
@@ -67,10 +69,7 @@ const DrawerDockedRoot = (0, _zeroStyled.styled)('div', {
67
69
  });
68
70
  const DrawerPaper = (0, _zeroStyled.styled)(_Paper.default, {
69
71
  name: 'MuiDrawer',
70
- slot: 'Paper',
71
- overridesResolver: (props, styles) => {
72
- return [styles.paper];
73
- }
72
+ slot: 'Paper'
74
73
  })((0, _memoTheme.default)(({
75
74
  theme
76
75
  }) => ({
@@ -206,9 +205,15 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
206
205
  // We use this state is order to skip the appear transition during the
207
206
  // initial mount of the component.
208
207
  const mounted = React.useRef(false);
208
+ const rootRef = React.useRef(null);
209
+ const handleRef = (0, _useForkRef.default)(ref, rootRef);
209
210
  React.useEffect(() => {
210
211
  mounted.current = true;
211
212
  }, []);
213
+
214
+ // Resolve the container lazily so Slide reads the mounted modal root
215
+ // after refs are assigned, rather than the initial null ref during render.
216
+ const resolveSlideContainer = React.useCallback(() => rootRef.current, []);
212
217
  const anchorInvariant = getAnchor({
213
218
  direction: isRtl ? 'rtl' : 'ltr'
214
219
  }, anchorProp);
@@ -232,7 +237,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
232
237
  }
233
238
  };
234
239
  const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
235
- ref,
240
+ ref: handleRef,
236
241
  elementType: DrawerRoot,
237
242
  className: (0, _clsx.default)(classes.root, classes.modal, className),
238
243
  shouldForwardComponentProp: true,
@@ -243,6 +248,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
243
248
  ...ModalProps
244
249
  },
245
250
  additionalProps: {
251
+ closeAfterTransition: true,
246
252
  open,
247
253
  onClose,
248
254
  hideBackdrop,
@@ -265,13 +271,15 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
265
271
  square: true,
266
272
  ...(variant === 'temporary' && {
267
273
  role: 'dialog',
268
- 'aria-modal': 'true'
274
+ 'aria-modal': 'true',
275
+ [_focusable.FOCUSABLE_ATTRIBUTE]: '',
276
+ tabIndex: -1
269
277
  })
270
278
  }
271
279
  });
272
280
  const [DockedSlot, dockedSlotProps] = (0, _useSlot.default)('docked', {
273
281
  elementType: DrawerDockedRoot,
274
- ref,
282
+ ref: handleRef,
275
283
  className: (0, _clsx.default)(classes.root, classes.docked, className),
276
284
  ownerState,
277
285
  externalForwardedProps,
@@ -285,7 +293,10 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
285
293
  in: open,
286
294
  direction: oppositeDirection[anchorInvariant],
287
295
  timeout: transitionDuration,
288
- appear: mounted.current
296
+ appear: mounted.current,
297
+ ...(variant === 'temporary' && (slots.transition == null || slots.transition === _Slide.default) && {
298
+ container: resolveSlideContainer
299
+ })
289
300
  }
290
301
  });
291
302
  const drawer = /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperSlot, {