@mui/material 7.3.7 → 7.3.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 (418) hide show
  1. package/Accordion/Accordion.d.ts +11 -11
  2. package/AccordionActions/AccordionActions.d.ts +3 -3
  3. package/AccordionDetails/AccordionDetails.d.ts +2 -2
  4. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  5. package/Alert/Alert.d.ts +15 -15
  6. package/Alert/Alert.js +1 -1
  7. package/AlertTitle/AlertTitle.d.ts +2 -2
  8. package/AppBar/AppBar.d.ts +8 -8
  9. package/AppBar/AppBar.js +1 -1
  10. package/Autocomplete/Autocomplete.d.ts +39 -39
  11. package/Autocomplete/Autocomplete.js +1 -1
  12. package/Avatar/Avatar.d.ts +11 -11
  13. package/AvatarGroup/AvatarGroup.d.ts +11 -11
  14. package/Backdrop/Backdrop.d.ts +10 -10
  15. package/Badge/Badge.d.ts +17 -17
  16. package/Badge/Badge.js +23 -104
  17. package/Badge/useBadge.types.d.ts +3 -3
  18. package/BottomNavigation/BottomNavigation.d.ts +5 -5
  19. package/BottomNavigationAction/BottomNavigationAction.d.ts +4 -4
  20. package/Box/Box.d.ts +1 -1
  21. package/Breadcrumbs/Breadcrumbs.d.ts +11 -11
  22. package/Button/Button.d.ts +14 -14
  23. package/ButtonBase/ButtonBase.d.ts +15 -15
  24. package/ButtonBase/TouchRipple.d.ts +4 -4
  25. package/ButtonGroup/ButtonGroup.d.ts +12 -12
  26. package/ButtonGroup/ButtonGroupContext.d.ts +9 -9
  27. package/CHANGELOG.md +101 -0
  28. package/Card/Card.d.ts +4 -4
  29. package/CardActionArea/CardActionArea.d.ts +4 -4
  30. package/CardActions/CardActions.d.ts +3 -3
  31. package/CardContent/CardContent.d.ts +3 -3
  32. package/CardHeader/CardHeader.d.ts +8 -8
  33. package/CardHeader/CardHeader.js +1 -4
  34. package/CardMedia/CardMedia.d.ts +5 -5
  35. package/Checkbox/Checkbox.d.ts +12 -12
  36. package/Chip/Chip.d.ts +15 -15
  37. package/Chip/Chip.js +1 -3
  38. package/CircularProgress/CircularProgress.d.ts +9 -9
  39. package/ClickAwayListener/ClickAwayListener.d.ts +3 -3
  40. package/Collapse/Collapse.d.ts +12 -12
  41. package/Collapse/Collapse.js +3 -3
  42. package/Container/Container.d.ts +6 -6
  43. package/CssBaseline/CssBaseline.d.ts +1 -1
  44. package/Dialog/Dialog.d.ts +21 -21
  45. package/Dialog/DialogContext.d.ts +1 -1
  46. package/DialogActions/DialogActions.d.ts +3 -3
  47. package/DialogContent/DialogContent.d.ts +3 -3
  48. package/DialogContentText/DialogContentText.d.ts +3 -3
  49. package/DialogTitle/DialogTitle.d.ts +4 -4
  50. package/Divider/Divider.d.ts +9 -9
  51. package/Drawer/Drawer.d.ts +11 -11
  52. package/Drawer/Drawer.js +1 -1
  53. package/Fab/Fab.d.ts +10 -10
  54. package/Fade/Fade.d.ts +5 -5
  55. package/FilledInput/FilledInput.d.ts +4 -4
  56. package/FormControl/FormControl.d.ts +14 -14
  57. package/FormControlLabel/FormControlLabel.d.ts +12 -12
  58. package/FormGroup/FormGroup.d.ts +3 -3
  59. package/FormHelperText/FormHelperText.d.ts +10 -10
  60. package/FormLabel/FormLabel.d.ts +10 -10
  61. package/Grid/Grid.d.ts +11 -11
  62. package/GridLegacy/GridLegacy.d.ts +17 -17
  63. package/GridLegacy/GridLegacy.js +1 -1
  64. package/Grow/Grow.d.ts +5 -5
  65. package/Icon/Icon.d.ts +6 -6
  66. package/IconButton/IconButton.d.ts +9 -9
  67. package/ImageList/ImageList.d.ts +7 -7
  68. package/ImageListItem/ImageListItem.d.ts +5 -5
  69. package/ImageListItemBar/ImageListItemBar.d.ts +4 -4
  70. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
  71. package/Input/Input.d.ts +3 -3
  72. package/InputAdornment/InputAdornment.d.ts +6 -6
  73. package/InputBase/InputBase.d.ts +55 -55
  74. package/InputLabel/InputLabel.d.ts +13 -13
  75. package/LinearProgress/LinearProgress.d.ts +6 -6
  76. package/Link/Link.d.ts +7 -7
  77. package/List/List.d.ts +5 -5
  78. package/List/ListContext.d.ts +1 -1
  79. package/ListItem/ListItem.d.ts +20 -20
  80. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  81. package/ListItemButton/ListItemButton.d.ts +10 -10
  82. package/ListItemIcon/ListItemIcon.d.ts +2 -2
  83. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  84. package/ListItemText/ListItemText.d.ts +11 -11
  85. package/ListItemText/ListItemText.js +1 -4
  86. package/ListSubheader/ListSubheader.d.ts +7 -7
  87. package/Menu/Menu.d.ts +11 -11
  88. package/MenuItem/MenuItem.d.ts +9 -9
  89. package/MenuList/MenuList.d.ts +6 -6
  90. package/MobileStepper/MobileStepper.d.ts +6 -6
  91. package/Modal/Modal.d.ts +31 -31
  92. package/Modal/ModalManager.d.ts +1 -1
  93. package/Modal/useModal.types.d.ts +13 -13
  94. package/NativeSelect/NativeSelect.d.ts +7 -7
  95. package/NativeSelect/NativeSelectInput.d.ts +5 -5
  96. package/NoSsr/NoSsr.types.d.ts +1 -1
  97. package/OutlinedInput/NotchedOutline.d.ts +3 -3
  98. package/OutlinedInput/OutlinedInput.d.ts +5 -5
  99. package/OverridableComponent/index.d.ts +2 -2
  100. package/Pagination/Pagination.d.ts +8 -8
  101. package/PaginationItem/PaginationItem.d.ts +15 -15
  102. package/Paper/Paper.d.ts +6 -6
  103. package/PigmentContainer/PigmentContainer.d.ts +6 -6
  104. package/PigmentContainer/PigmentContainer.js +1 -0
  105. package/PigmentGrid/PigmentGrid.d.ts +8 -8
  106. package/PigmentGrid/PigmentGrid.js +1 -0
  107. package/PigmentStack/PigmentStack.d.ts +4 -4
  108. package/PigmentStack/PigmentStack.js +1 -0
  109. package/Popover/Popover.d.ts +18 -18
  110. package/Popover/Popover.js +6 -3
  111. package/Popper/BasePopper.js +6 -3
  112. package/Popper/BasePopper.types.d.ts +17 -17
  113. package/Popper/Popper.d.ts +5 -5
  114. package/Portal/Portal.types.d.ts +2 -2
  115. package/Radio/Radio.d.ts +5 -5
  116. package/RadioGroup/RadioGroup.d.ts +2 -2
  117. package/Rating/Rating.d.ts +16 -16
  118. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +4 -4
  119. package/Select/Select.d.ts +23 -23
  120. package/Select/SelectInput.d.ts +24 -24
  121. package/Skeleton/Skeleton.d.ts +7 -7
  122. package/Slide/Slide.d.ts +7 -7
  123. package/Slide/Slide.js +5 -2
  124. package/Slider/Slider.d.ts +65 -65
  125. package/Slider/SliderValueLabel.d.ts +1 -1
  126. package/Slider/SliderValueLabel.types.d.ts +5 -5
  127. package/Slider/useSlider.types.d.ts +26 -26
  128. package/Snackbar/Snackbar.d.ts +16 -16
  129. package/Snackbar/useSnackbar.types.d.ts +6 -6
  130. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  131. package/SpeedDial/SpeedDial.d.ts +11 -11
  132. package/SpeedDialAction/SpeedDialAction.d.ts +11 -11
  133. package/SpeedDialIcon/SpeedDialIcon.d.ts +3 -3
  134. package/SpeedDialIcon/SpeedDialIcon.js +4 -10
  135. package/Stack/Stack.d.ts +5 -5
  136. package/Step/Step.d.ts +10 -10
  137. package/StepButton/StepButton.d.ts +3 -3
  138. package/StepConnector/StepConnector.d.ts +2 -2
  139. package/StepContent/StepContent.d.ts +7 -7
  140. package/StepIcon/StepIcon.d.ts +5 -5
  141. package/StepIcon/StepIcon.js +1 -4
  142. package/StepLabel/StepLabel.d.ts +7 -7
  143. package/StepLabel/StepLabel.js +1 -5
  144. package/Stepper/Stepper.d.ts +9 -9
  145. package/SvgIcon/SvgIcon.d.ts +10 -10
  146. package/SwipeableDrawer/SwipeableDrawer.d.ts +10 -10
  147. package/Switch/Switch.d.ts +5 -5
  148. package/Tab/Tab.d.ts +9 -9
  149. package/TabScrollButton/TabScrollButton.d.ts +9 -9
  150. package/Table/Table.d.ts +6 -6
  151. package/TableBody/TableBody.d.ts +3 -3
  152. package/TableCell/TableCell.d.ts +9 -9
  153. package/TableContainer/TableContainer.d.ts +3 -3
  154. package/TableFooter/TableFooter.d.ts +3 -3
  155. package/TableHead/TableHead.d.ts +3 -3
  156. package/TablePagination/TablePagination.d.ts +14 -14
  157. package/TablePaginationActions/TablePaginationActions.d.ts +23 -23
  158. package/TableRow/TableRow.d.ts +5 -5
  159. package/TableSortLabel/TableSortLabel.d.ts +9 -9
  160. package/Tabs/Tabs.d.ts +26 -25
  161. package/Tabs/Tabs.js +2 -1
  162. package/TextField/TextField.d.ts +35 -35
  163. package/TextareaAutosize/TextareaAutosize.types.d.ts +3 -3
  164. package/ToggleButton/ToggleButton.d.ts +11 -11
  165. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -9
  166. package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +7 -7
  167. package/Toolbar/Toolbar.d.ts +5 -5
  168. package/Tooltip/Tooltip.d.ts +33 -33
  169. package/Tooltip/Tooltip.js +19 -2
  170. package/Typography/Typography.d.ts +10 -10
  171. package/Unstable_TrapFocus/FocusTrap.types.d.ts +7 -7
  172. package/Zoom/Zoom.d.ts +5 -5
  173. package/esm/Accordion/Accordion.d.ts +11 -11
  174. package/esm/AccordionActions/AccordionActions.d.ts +3 -3
  175. package/esm/AccordionDetails/AccordionDetails.d.ts +2 -2
  176. package/esm/AccordionSummary/AccordionSummary.d.ts +3 -3
  177. package/esm/Alert/Alert.d.ts +15 -15
  178. package/esm/Alert/Alert.js +1 -1
  179. package/esm/AlertTitle/AlertTitle.d.ts +2 -2
  180. package/esm/AppBar/AppBar.d.ts +8 -8
  181. package/esm/AppBar/AppBar.js +1 -1
  182. package/esm/Autocomplete/Autocomplete.d.ts +39 -39
  183. package/esm/Autocomplete/Autocomplete.js +1 -1
  184. package/esm/Avatar/Avatar.d.ts +11 -11
  185. package/esm/AvatarGroup/AvatarGroup.d.ts +11 -11
  186. package/esm/Backdrop/Backdrop.d.ts +10 -10
  187. package/esm/Badge/Badge.d.ts +17 -17
  188. package/esm/Badge/Badge.js +23 -104
  189. package/esm/Badge/useBadge.types.d.ts +3 -3
  190. package/esm/BottomNavigation/BottomNavigation.d.ts +5 -5
  191. package/esm/BottomNavigationAction/BottomNavigationAction.d.ts +4 -4
  192. package/esm/Box/Box.d.ts +1 -1
  193. package/esm/Breadcrumbs/Breadcrumbs.d.ts +11 -11
  194. package/esm/Button/Button.d.ts +14 -14
  195. package/esm/ButtonBase/ButtonBase.d.ts +15 -15
  196. package/esm/ButtonBase/TouchRipple.d.ts +4 -4
  197. package/esm/ButtonGroup/ButtonGroup.d.ts +12 -12
  198. package/esm/ButtonGroup/ButtonGroupContext.d.ts +9 -9
  199. package/esm/Card/Card.d.ts +4 -4
  200. package/esm/CardActionArea/CardActionArea.d.ts +4 -4
  201. package/esm/CardActions/CardActions.d.ts +3 -3
  202. package/esm/CardContent/CardContent.d.ts +3 -3
  203. package/esm/CardHeader/CardHeader.d.ts +8 -8
  204. package/esm/CardHeader/CardHeader.js +1 -4
  205. package/esm/CardMedia/CardMedia.d.ts +5 -5
  206. package/esm/Checkbox/Checkbox.d.ts +12 -12
  207. package/esm/Chip/Chip.d.ts +15 -15
  208. package/esm/Chip/Chip.js +1 -3
  209. package/esm/CircularProgress/CircularProgress.d.ts +9 -9
  210. package/esm/ClickAwayListener/ClickAwayListener.d.ts +3 -3
  211. package/esm/Collapse/Collapse.d.ts +12 -12
  212. package/esm/Collapse/Collapse.js +3 -3
  213. package/esm/Container/Container.d.ts +6 -6
  214. package/esm/CssBaseline/CssBaseline.d.ts +1 -1
  215. package/esm/Dialog/Dialog.d.ts +21 -21
  216. package/esm/Dialog/DialogContext.d.ts +1 -1
  217. package/esm/DialogActions/DialogActions.d.ts +3 -3
  218. package/esm/DialogContent/DialogContent.d.ts +3 -3
  219. package/esm/DialogContentText/DialogContentText.d.ts +3 -3
  220. package/esm/DialogTitle/DialogTitle.d.ts +4 -4
  221. package/esm/Divider/Divider.d.ts +9 -9
  222. package/esm/Drawer/Drawer.d.ts +11 -11
  223. package/esm/Drawer/Drawer.js +1 -1
  224. package/esm/Fab/Fab.d.ts +10 -10
  225. package/esm/Fade/Fade.d.ts +5 -5
  226. package/esm/FilledInput/FilledInput.d.ts +4 -4
  227. package/esm/FormControl/FormControl.d.ts +14 -14
  228. package/esm/FormControlLabel/FormControlLabel.d.ts +12 -12
  229. package/esm/FormGroup/FormGroup.d.ts +3 -3
  230. package/esm/FormHelperText/FormHelperText.d.ts +10 -10
  231. package/esm/FormLabel/FormLabel.d.ts +10 -10
  232. package/esm/Grid/Grid.d.ts +11 -11
  233. package/esm/GridLegacy/GridLegacy.d.ts +17 -17
  234. package/esm/GridLegacy/GridLegacy.js +1 -1
  235. package/esm/Grow/Grow.d.ts +5 -5
  236. package/esm/Icon/Icon.d.ts +6 -6
  237. package/esm/IconButton/IconButton.d.ts +9 -9
  238. package/esm/ImageList/ImageList.d.ts +7 -7
  239. package/esm/ImageListItem/ImageListItem.d.ts +5 -5
  240. package/esm/ImageListItemBar/ImageListItemBar.d.ts +4 -4
  241. package/esm/InitColorSchemeScript/InitColorSchemeScript.d.ts +7 -7
  242. package/esm/Input/Input.d.ts +3 -3
  243. package/esm/InputAdornment/InputAdornment.d.ts +6 -6
  244. package/esm/InputBase/InputBase.d.ts +55 -55
  245. package/esm/InputLabel/InputLabel.d.ts +13 -13
  246. package/esm/LinearProgress/LinearProgress.d.ts +6 -6
  247. package/esm/Link/Link.d.ts +7 -7
  248. package/esm/List/List.d.ts +5 -5
  249. package/esm/List/ListContext.d.ts +1 -1
  250. package/esm/ListItem/ListItem.d.ts +20 -20
  251. package/esm/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  252. package/esm/ListItemButton/ListItemButton.d.ts +10 -10
  253. package/esm/ListItemIcon/ListItemIcon.d.ts +2 -2
  254. package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  255. package/esm/ListItemText/ListItemText.d.ts +11 -11
  256. package/esm/ListItemText/ListItemText.js +1 -4
  257. package/esm/ListSubheader/ListSubheader.d.ts +7 -7
  258. package/esm/Menu/Menu.d.ts +11 -11
  259. package/esm/MenuItem/MenuItem.d.ts +9 -9
  260. package/esm/MenuList/MenuList.d.ts +6 -6
  261. package/esm/MobileStepper/MobileStepper.d.ts +6 -6
  262. package/esm/Modal/Modal.d.ts +31 -31
  263. package/esm/Modal/ModalManager.d.ts +1 -1
  264. package/esm/Modal/useModal.types.d.ts +13 -13
  265. package/esm/NativeSelect/NativeSelect.d.ts +7 -7
  266. package/esm/NativeSelect/NativeSelectInput.d.ts +5 -5
  267. package/esm/NoSsr/NoSsr.types.d.ts +1 -1
  268. package/esm/OutlinedInput/NotchedOutline.d.ts +3 -3
  269. package/esm/OutlinedInput/OutlinedInput.d.ts +5 -5
  270. package/esm/OverridableComponent/index.d.ts +2 -2
  271. package/esm/Pagination/Pagination.d.ts +8 -8
  272. package/esm/PaginationItem/PaginationItem.d.ts +15 -15
  273. package/esm/Paper/Paper.d.ts +6 -6
  274. package/esm/PigmentContainer/PigmentContainer.d.ts +6 -6
  275. package/esm/PigmentContainer/PigmentContainer.js +2 -0
  276. package/esm/PigmentGrid/PigmentGrid.d.ts +8 -8
  277. package/esm/PigmentGrid/PigmentGrid.js +2 -0
  278. package/esm/PigmentStack/PigmentStack.d.ts +4 -4
  279. package/esm/PigmentStack/PigmentStack.js +2 -0
  280. package/esm/Popover/Popover.d.ts +18 -18
  281. package/esm/Popover/Popover.js +6 -3
  282. package/esm/Popper/BasePopper.js +6 -3
  283. package/esm/Popper/BasePopper.types.d.ts +17 -17
  284. package/esm/Popper/Popper.d.ts +5 -5
  285. package/esm/Portal/Portal.types.d.ts +2 -2
  286. package/esm/Radio/Radio.d.ts +5 -5
  287. package/esm/RadioGroup/RadioGroup.d.ts +2 -2
  288. package/esm/Rating/Rating.d.ts +16 -16
  289. package/esm/ScopedCssBaseline/ScopedCssBaseline.d.ts +4 -4
  290. package/esm/Select/Select.d.ts +23 -23
  291. package/esm/Select/SelectInput.d.ts +24 -24
  292. package/esm/Skeleton/Skeleton.d.ts +7 -7
  293. package/esm/Slide/Slide.d.ts +7 -7
  294. package/esm/Slide/Slide.js +5 -2
  295. package/esm/Slider/Slider.d.ts +65 -65
  296. package/esm/Slider/SliderValueLabel.d.ts +1 -1
  297. package/esm/Slider/SliderValueLabel.types.d.ts +5 -5
  298. package/esm/Slider/useSlider.types.d.ts +26 -26
  299. package/esm/Snackbar/Snackbar.d.ts +16 -16
  300. package/esm/Snackbar/useSnackbar.types.d.ts +6 -6
  301. package/esm/SnackbarContent/SnackbarContent.d.ts +3 -3
  302. package/esm/SpeedDial/SpeedDial.d.ts +11 -11
  303. package/esm/SpeedDialAction/SpeedDialAction.d.ts +11 -11
  304. package/esm/SpeedDialIcon/SpeedDialIcon.d.ts +3 -3
  305. package/esm/SpeedDialIcon/SpeedDialIcon.js +4 -10
  306. package/esm/Stack/Stack.d.ts +5 -5
  307. package/esm/Step/Step.d.ts +10 -10
  308. package/esm/StepButton/StepButton.d.ts +3 -3
  309. package/esm/StepConnector/StepConnector.d.ts +2 -2
  310. package/esm/StepContent/StepContent.d.ts +7 -7
  311. package/esm/StepIcon/StepIcon.d.ts +5 -5
  312. package/esm/StepIcon/StepIcon.js +1 -4
  313. package/esm/StepLabel/StepLabel.d.ts +7 -7
  314. package/esm/StepLabel/StepLabel.js +1 -5
  315. package/esm/Stepper/Stepper.d.ts +9 -9
  316. package/esm/SvgIcon/SvgIcon.d.ts +10 -10
  317. package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +10 -10
  318. package/esm/Switch/Switch.d.ts +5 -5
  319. package/esm/Tab/Tab.d.ts +9 -9
  320. package/esm/TabScrollButton/TabScrollButton.d.ts +9 -9
  321. package/esm/Table/Table.d.ts +6 -6
  322. package/esm/TableBody/TableBody.d.ts +3 -3
  323. package/esm/TableCell/TableCell.d.ts +9 -9
  324. package/esm/TableContainer/TableContainer.d.ts +3 -3
  325. package/esm/TableFooter/TableFooter.d.ts +3 -3
  326. package/esm/TableHead/TableHead.d.ts +3 -3
  327. package/esm/TablePagination/TablePagination.d.ts +14 -14
  328. package/esm/TablePaginationActions/TablePaginationActions.d.ts +23 -23
  329. package/esm/TableRow/TableRow.d.ts +5 -5
  330. package/esm/TableSortLabel/TableSortLabel.d.ts +9 -9
  331. package/esm/Tabs/Tabs.d.ts +26 -25
  332. package/esm/Tabs/Tabs.js +2 -1
  333. package/esm/TextField/TextField.d.ts +35 -35
  334. package/esm/TextareaAutosize/TextareaAutosize.types.d.ts +3 -3
  335. package/esm/ToggleButton/ToggleButton.d.ts +11 -11
  336. package/esm/ToggleButtonGroup/ToggleButtonGroup.d.ts +9 -9
  337. package/esm/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +7 -7
  338. package/esm/Toolbar/Toolbar.d.ts +5 -5
  339. package/esm/Tooltip/Tooltip.d.ts +33 -33
  340. package/esm/Tooltip/Tooltip.js +19 -2
  341. package/esm/Typography/Typography.d.ts +10 -10
  342. package/esm/Unstable_TrapFocus/FocusTrap.types.d.ts +7 -7
  343. package/esm/Zoom/Zoom.d.ts +5 -5
  344. package/esm/index.js +1 -1
  345. package/esm/internal/SwitchBase.d.ts +17 -17
  346. package/esm/internal/SwitchBase.js +0 -1
  347. package/esm/internal/index.d.ts +5 -5
  348. package/esm/locale/utils/LocaleTextApi.d.ts +7 -7
  349. package/esm/styles/ThemeProvider.d.ts +12 -12
  350. package/esm/styles/ThemeProviderWithVars.d.ts +13 -13
  351. package/esm/styles/adaptV4Theme.d.ts +14 -14
  352. package/esm/styles/components.d.ts +476 -476
  353. package/esm/styles/createColorScheme.d.ts +1 -1
  354. package/esm/styles/createGetSelector.d.ts +5 -5
  355. package/esm/styles/createMixins.d.ts +2 -2
  356. package/esm/styles/createPalette.d.ts +23 -23
  357. package/esm/styles/createTheme.d.ts +2 -2
  358. package/esm/styles/createThemeFoundation.d.ts +30 -30
  359. package/esm/styles/createThemeNoVars.d.ts +14 -14
  360. package/esm/styles/createThemeWithVars.d.ts +9 -9
  361. package/esm/styles/createThemeWithVars.js +60 -60
  362. package/esm/styles/createTransitions.d.ts +5 -5
  363. package/esm/styles/createTypography.d.ts +1 -1
  364. package/esm/styles/cssUtils.d.ts +3 -3
  365. package/esm/styles/index.d.ts +6 -6
  366. package/esm/styles/overrides.d.ts +1 -1
  367. package/esm/styles/responsiveFontSizes.d.ts +4 -4
  368. package/esm/styles/useThemeProps.d.ts +1 -1
  369. package/esm/transitions/transition.d.ts +2 -2
  370. package/esm/transitions/utils.d.ts +4 -4
  371. package/esm/types/OverridableComponentAugmentation.d.ts +2 -2
  372. package/esm/useAutocomplete/useAutocomplete.d.ts +46 -46
  373. package/esm/useAutocomplete/useAutocomplete.js +3 -2
  374. package/esm/usePagination/usePagination.d.ts +12 -12
  375. package/esm/useScrollTrigger/useScrollTrigger.d.ts +3 -3
  376. package/esm/utils/isLayoutSupported.d.ts +1 -0
  377. package/esm/utils/isLayoutSupported.js +6 -0
  378. package/esm/utils/types.d.ts +4 -4
  379. package/esm/utils/useSlot.d.ts +12 -12
  380. package/esm/version/index.js +2 -2
  381. package/index.js +1 -1
  382. package/internal/SwitchBase.d.ts +17 -17
  383. package/internal/SwitchBase.js +0 -1
  384. package/internal/index.d.ts +5 -5
  385. package/locale/utils/LocaleTextApi.d.ts +7 -7
  386. package/package.json +7 -7
  387. package/styles/ThemeProvider.d.ts +12 -12
  388. package/styles/ThemeProviderWithVars.d.ts +13 -13
  389. package/styles/adaptV4Theme.d.ts +14 -14
  390. package/styles/components.d.ts +476 -476
  391. package/styles/createColorScheme.d.ts +1 -1
  392. package/styles/createGetSelector.d.ts +5 -5
  393. package/styles/createMixins.d.ts +2 -2
  394. package/styles/createPalette.d.ts +23 -23
  395. package/styles/createTheme.d.ts +2 -2
  396. package/styles/createThemeFoundation.d.ts +30 -30
  397. package/styles/createThemeNoVars.d.ts +14 -14
  398. package/styles/createThemeWithVars.d.ts +9 -9
  399. package/styles/createThemeWithVars.js +60 -60
  400. package/styles/createTransitions.d.ts +5 -5
  401. package/styles/createTypography.d.ts +1 -1
  402. package/styles/cssUtils.d.ts +3 -3
  403. package/styles/index.d.ts +6 -6
  404. package/styles/overrides.d.ts +1 -1
  405. package/styles/responsiveFontSizes.d.ts +4 -4
  406. package/styles/useThemeProps.d.ts +1 -1
  407. package/transitions/transition.d.ts +2 -2
  408. package/transitions/utils.d.ts +4 -4
  409. package/types/OverridableComponentAugmentation.d.ts +2 -2
  410. package/useAutocomplete/useAutocomplete.d.ts +46 -46
  411. package/useAutocomplete/useAutocomplete.js +3 -2
  412. package/usePagination/usePagination.d.ts +12 -12
  413. package/useScrollTrigger/useScrollTrigger.d.ts +3 -3
  414. package/utils/isLayoutSupported.d.ts +1 -0
  415. package/utils/isLayoutSupported.js +12 -0
  416. package/utils/types.d.ts +4 -4
  417. package/utils/useSlot.d.ts +12 -12
  418. package/version/index.js +2 -2
@@ -2,13 +2,13 @@ import * as React from 'react';
2
2
  export declare const reflow: (node: Element) => number;
3
3
  interface ComponentProps {
4
4
  easing: string | {
5
- enter?: string;
6
- exit?: string;
5
+ enter?: string | undefined;
6
+ exit?: string | undefined;
7
7
  } | undefined;
8
8
  style: React.CSSProperties | undefined;
9
9
  timeout: number | {
10
- enter?: number;
11
- exit?: number;
10
+ enter?: number | undefined;
11
+ exit?: number | undefined;
12
12
  };
13
13
  }
14
14
  interface Options {
@@ -20,12 +20,12 @@ declare module '@mui/material/OverridableComponent' {
20
20
  * Props of the component if `component={Component}` is used.
21
21
  */
22
22
  type OverridePropsVer2<TypeMap extends OverridableTypeMap, RootComponent extends React.ElementType> = (BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<RootComponent>, keyof BaseProps<TypeMap>> & {
23
- ref?: React.Ref<Element>;
23
+ ref?: (React.Ref<Element>) | undefined;
24
24
  });
25
25
  /**
26
26
  * Props if `component={Component}` is NOT used.
27
27
  */
28
28
  type DefaultComponentPropsVer2<TypeMap extends OverridableTypeMap> = BaseProps<TypeMap> & DistributiveOmit<React.ComponentPropsWithoutRef<TypeMap['defaultComponent']>, keyof BaseProps<TypeMap>> & {
29
- ref?: React.Ref<Element>;
29
+ ref?: (React.Ref<Element>) | undefined;
30
30
  };
31
31
  }
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { PartiallyRequired } from '@mui/types';
3
3
  export interface CreateFilterOptionsConfig<Value> {
4
- ignoreAccents?: boolean;
5
- ignoreCase?: boolean;
6
- limit?: number;
7
- matchFrom?: 'any' | 'start';
8
- stringify?: (option: Value) => string;
9
- trim?: boolean;
4
+ ignoreAccents?: boolean | undefined;
5
+ ignoreCase?: boolean | undefined;
6
+ limit?: number | undefined;
7
+ matchFrom?: 'any' | 'start' | undefined;
8
+ stringify?: ((option: Value) => string) | undefined;
9
+ trim?: boolean | undefined;
10
10
  }
11
11
  export interface FilterOptionsState<Value> {
12
12
  inputValue: string;
@@ -26,25 +26,25 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
26
26
  * @internal The prefix of the state class name, temporary for Joy UI
27
27
  * @default 'Mui'
28
28
  */
29
- unstable_classNamePrefix?: string;
29
+ unstable_classNamePrefix?: string | undefined;
30
30
  /**
31
31
  * @internal
32
32
  * Temporary for Joy UI because the parent listbox is the document object
33
33
  * TODO v6: Normalize the logic and remove this param.
34
34
  */
35
- unstable_isActiveElementInListbox?: (listbox: React.RefObject<HTMLElement | null>) => boolean;
35
+ unstable_isActiveElementInListbox?: ((listbox: React.RefObject<HTMLElement | null>) => boolean) | undefined;
36
36
  /**
37
37
  * If `true`, the portion of the selected suggestion that the user hasn't typed,
38
38
  * known as the completion string, appears inline after the input cursor in the textbox.
39
39
  * The inline completion string is visually highlighted and has a selected state.
40
40
  * @default false
41
41
  */
42
- autoComplete?: boolean;
42
+ autoComplete?: boolean | undefined;
43
43
  /**
44
44
  * If `true`, the first option is automatically highlighted.
45
45
  * @default false
46
46
  */
47
- autoHighlight?: boolean;
47
+ autoHighlight?: boolean | undefined;
48
48
  /**
49
49
  * If `true`, the selected option becomes the value of the input
50
50
  * when the Autocomplete loses focus unless the user chooses
@@ -54,7 +54,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
54
54
  * if the Autocomplete loses focus without highlighting an option.
55
55
  * @default false
56
56
  */
57
- autoSelect?: boolean;
57
+ autoSelect?: boolean | undefined;
58
58
  /**
59
59
  * Control if the input should be blurred when an option is selected:
60
60
  *
@@ -64,7 +64,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
64
64
  * - `mouse` the input is blurred after a mouse event.
65
65
  * @default false
66
66
  */
67
- blurOnSelect?: 'touch' | 'mouse' | true | false;
67
+ blurOnSelect?: 'touch' | 'mouse' | true | false | undefined;
68
68
  /**
69
69
  * If `true`, the input's text is cleared on blur if no value is selected.
70
70
  *
@@ -72,46 +72,46 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
72
72
  * Set it to `false` if you want to help the user resume their search.
73
73
  * @default !props.freeSolo
74
74
  */
75
- clearOnBlur?: boolean;
75
+ clearOnBlur?: boolean | undefined;
76
76
  /**
77
77
  * If `true`, clear all values when the user presses escape and the popup is closed.
78
78
  * @default false
79
79
  */
80
- clearOnEscape?: boolean;
80
+ clearOnEscape?: boolean | undefined;
81
81
  /**
82
82
  * The component name that is using this hook. Used for warnings.
83
83
  */
84
- componentName?: string;
84
+ componentName?: string | undefined;
85
85
  /**
86
86
  * The default value. Use when the component is not controlled.
87
87
  * @default props.multiple ? [] : null
88
88
  */
89
- defaultValue?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo>;
89
+ defaultValue?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo> | undefined;
90
90
  /**
91
91
  * If `true`, the input can't be cleared.
92
92
  * @default false
93
93
  */
94
- disableClearable?: DisableClearable;
94
+ disableClearable?: DisableClearable | undefined;
95
95
  /**
96
96
  * If `true`, the popup won't close when a value is selected.
97
97
  * @default false
98
98
  */
99
- disableCloseOnSelect?: boolean;
99
+ disableCloseOnSelect?: boolean | undefined;
100
100
  /**
101
101
  * If `true`, the component is disabled.
102
102
  * @default false
103
103
  */
104
- disabled?: boolean;
104
+ disabled?: boolean | undefined;
105
105
  /**
106
106
  * If `true`, will allow focus on disabled items.
107
107
  * @default false
108
108
  */
109
- disabledItemsFocusable?: boolean;
109
+ disabledItemsFocusable?: boolean | undefined;
110
110
  /**
111
111
  * If `true`, the list box in the popup will not wrap focus.
112
112
  * @default false
113
113
  */
114
- disableListWrap?: boolean;
114
+ disableListWrap?: boolean | undefined;
115
115
  /**
116
116
  * A function that determines the filtered options to be rendered on search.
117
117
  *
@@ -120,17 +120,17 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
120
120
  * @param {object} state The state of the component.
121
121
  * @returns {Value[]}
122
122
  */
123
- filterOptions?: (options: Value[], state: FilterOptionsState<Value>) => Value[];
123
+ filterOptions?: ((options: Value[], state: FilterOptionsState<Value>) => Value[]) | undefined;
124
124
  /**
125
125
  * If `true`, hide the selected options from the list box.
126
126
  * @default false
127
127
  */
128
- filterSelectedOptions?: boolean;
128
+ filterSelectedOptions?: boolean | undefined;
129
129
  /**
130
130
  * If `true`, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
131
131
  * @default false
132
132
  */
133
- freeSolo?: FreeSolo;
133
+ freeSolo?: FreeSolo | undefined;
134
134
  /**
135
135
  * Used to determine the disabled state for a given option.
136
136
  *
@@ -138,7 +138,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
138
138
  * @template Value The option shape. Will be the same shape as an item of the options.
139
139
  * @returns {boolean}
140
140
  */
141
- getOptionDisabled?: (option: Value) => boolean;
141
+ getOptionDisabled?: ((option: Value) => boolean) | undefined;
142
142
  /**
143
143
  * Used to determine the key for a given option.
144
144
  * This can be useful when the labels of options are not unique (since labels are used as keys by default).
@@ -146,7 +146,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
146
146
  * @param {Value} option The option to get the key for.
147
147
  * @returns {string | number}
148
148
  */
149
- getOptionKey?: (option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string | number;
149
+ getOptionKey?: ((option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string | number) | undefined;
150
150
  /**
151
151
  * Used to determine the string value for a given option.
152
152
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
@@ -157,7 +157,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
157
157
  * @returns {string}
158
158
  * @default (option) => option.label ?? option
159
159
  */
160
- getOptionLabel?: (option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string;
160
+ getOptionLabel?: ((option: Value | AutocompleteFreeSoloValueMapping<FreeSolo>) => string) | undefined;
161
161
  /**
162
162
  * If provided, the options will be grouped under the returned string.
163
163
  * The groupBy value is also used as the text for group headings when `renderGroup` is not provided.
@@ -165,28 +165,28 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
165
165
  * @param {Value} option The Autocomplete option.
166
166
  * @returns {string}
167
167
  */
168
- groupBy?: (option: Value) => string;
168
+ groupBy?: ((option: Value) => string) | undefined;
169
169
 
170
170
  /**
171
171
  * If `true`, the component handles the "Home" and "End" keys when the popup is open.
172
172
  * It should move focus to the first option and last option, respectively.
173
173
  * @default !props.freeSolo
174
174
  */
175
- handleHomeEndKeys?: boolean;
175
+ handleHomeEndKeys?: boolean | undefined;
176
176
  /**
177
177
  * This prop is used to help implement the accessibility logic.
178
178
  * If you don't provide an id it will fall back to a randomly generated one.
179
179
  */
180
- id?: string;
180
+ id?: string | undefined;
181
181
  /**
182
182
  * If `true`, the highlight can move to the input.
183
183
  * @default false
184
184
  */
185
- includeInputInList?: boolean;
185
+ includeInputInList?: boolean | undefined;
186
186
  /**
187
187
  * The input value.
188
188
  */
189
- inputValue?: string;
189
+ inputValue?: string | undefined;
190
190
  /**
191
191
  * Used to determine if the option represents the given value.
192
192
  * Uses strict equality by default.
@@ -196,12 +196,12 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
196
196
  * @param {Value} value The value to test against.
197
197
  * @returns {boolean}
198
198
  */
199
- isOptionEqualToValue?: (option: Value, value: Value) => boolean;
199
+ isOptionEqualToValue?: ((option: Value, value: Value) => boolean) | undefined;
200
200
  /**
201
201
  * If `true`, `value` must be an array and the menu will support multiple selections.
202
202
  * @default false
203
203
  */
204
- multiple?: Multiple;
204
+ multiple?: Multiple | undefined;
205
205
  /**
206
206
  * Callback fired when the value changes.
207
207
  *
@@ -210,7 +210,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
210
210
  * @param {string} reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
211
211
  * @param {string} [details]
212
212
  */
213
- onChange?: (event: React.SyntheticEvent, value: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails<Value>) => void;
213
+ onChange?: ((event: React.SyntheticEvent, value: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo>, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails<Value>) => void) | undefined;
214
214
  /**
215
215
  * Callback fired when the popup requests to be closed.
216
216
  * Use in controlled mode (see open).
@@ -218,7 +218,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
218
218
  * @param {React.SyntheticEvent} event The event source of the callback.
219
219
  * @param {string} reason Can be: `"toggleInput"`, `"escape"`, `"selectOption"`, `"removeOption"`, `"blur"`.
220
220
  */
221
- onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
221
+ onClose?: ((event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void) | undefined;
222
222
  /**
223
223
  * Callback fired when the highlight option changes.
224
224
  *
@@ -226,7 +226,7 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
226
226
  * @param {Value} option The highlighted option.
227
227
  * @param {string} reason Can be: `"keyboard"`, `"mouse"`, `"touch"`.
228
228
  */
229
- onHighlightChange?: (event: React.SyntheticEvent, option: Value | null, reason: AutocompleteHighlightChangeReason) => void;
229
+ onHighlightChange?: ((event: React.SyntheticEvent, option: Value | null, reason: AutocompleteHighlightChangeReason) => void) | undefined;
230
230
  /**
231
231
  * Callback fired when the input value changes.
232
232
  *
@@ -234,23 +234,23 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
234
234
  * @param {string} value The new value of the text input.
235
235
  * @param {string} reason Can be: `"input"` (user input), `"reset"` (programmatic change), `"clear"`, `"blur"`, `"selectOption"`, `"removeOption"`
236
236
  */
237
- onInputChange?: (event: React.SyntheticEvent, value: string, reason: AutocompleteInputChangeReason) => void;
237
+ onInputChange?: ((event: React.SyntheticEvent, value: string, reason: AutocompleteInputChangeReason) => void) | undefined;
238
238
  /**
239
239
  * Callback fired when the popup requests to be opened.
240
240
  * Use in controlled mode (see open).
241
241
  *
242
242
  * @param {React.SyntheticEvent} event The event source of the callback.
243
243
  */
244
- onOpen?: (event: React.SyntheticEvent) => void;
244
+ onOpen?: ((event: React.SyntheticEvent) => void) | undefined;
245
245
  /**
246
246
  * If `true`, the component is shown.
247
247
  */
248
- open?: boolean;
248
+ open?: boolean | undefined;
249
249
  /**
250
250
  * If `true`, the popup will open on input focus.
251
251
  * @default false
252
252
  */
253
- openOnFocus?: boolean;
253
+ openOnFocus?: boolean | undefined;
254
254
  /**
255
255
  * A list of options that will be shown in the Autocomplete.
256
256
  */
@@ -259,20 +259,20 @@ export interface UseAutocompleteProps<Value, Multiple extends boolean | undefine
259
259
  * If `true`, the component becomes readonly. It is also supported for multiple tags where the tag cannot be deleted.
260
260
  * @default false
261
261
  */
262
- readOnly?: boolean;
262
+ readOnly?: boolean | undefined;
263
263
  /**
264
264
  * If `true`, the input's text is selected on focus.
265
265
  * It helps the user clear the selected value.
266
266
  * @default !props.freeSolo
267
267
  */
268
- selectOnFocus?: boolean;
268
+ selectOnFocus?: boolean | undefined;
269
269
  /**
270
270
  * The value of the autocomplete.
271
271
  *
272
272
  * The value must have reference equality with the option in order to be selected.
273
273
  * You can customize the equality behavior with the `isOptionEqualToValue` prop.
274
274
  */
275
- value?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo>;
275
+ value?: AutocompleteValue<Value, Multiple, DisableClearable, FreeSolo> | undefined;
276
276
  }
277
277
  export interface UseAutocompleteParameters<Value, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends UseAutocompleteProps<Value, Multiple, DisableClearable, FreeSolo> {}
278
278
  export type AutocompleteHighlightChangeReason = 'keyboard' | 'mouse' | 'touch';
@@ -290,7 +290,7 @@ export type AutocompleteGetItemProps<Multiple extends boolean | undefined> = Mul
290
290
  tabIndex: -1;
291
291
  onDelete: (event: any) => void;
292
292
  } : (args?: {
293
- index?: number;
293
+ index?: number | undefined;
294
294
  }) => {
295
295
  'data-item-index': number;
296
296
  tabIndex: -1;
@@ -362,7 +362,7 @@ export interface UseAutocompleteReturnValue<Value, Multiple extends boolean | un
362
362
  * @returns props that should be spread on the li element
363
363
  */
364
364
  getOptionProps: (renderedOption: UseAutocompleteRenderedOption<Value>) => React.HTMLAttributes<HTMLLIElement> & {
365
- key: any;
365
+ key: React.Key;
366
366
  };
367
367
  /**
368
368
  * Id for the Autocomplete.
@@ -494,10 +494,10 @@ function useAutocomplete(props) {
494
494
  }, [componentName]);
495
495
  }
496
496
  React.useEffect(() => {
497
- if (filteredOptionsChanged || popupOpen) {
497
+ if (filteredOptionsChanged || popupOpen && !disableCloseOnSelect) {
498
498
  syncHighlightedIndex();
499
499
  }
500
- }, [syncHighlightedIndex, filteredOptionsChanged, popupOpen]);
500
+ }, [syncHighlightedIndex, filteredOptionsChanged, popupOpen, disableCloseOnSelect]);
501
501
  const handleOpen = event => {
502
502
  if (open) {
503
503
  return;
@@ -1051,6 +1051,7 @@ function useAutocomplete(props) {
1051
1051
  role: 'listbox',
1052
1052
  id: `${id}-listbox`,
1053
1053
  'aria-labelledby': `${id}-label`,
1054
+ 'aria-multiselectable': multiple || undefined,
1054
1055
  ref: handleListboxRef,
1055
1056
  onMouseDown: event => {
1056
1057
  // Prevent blur
@@ -4,62 +4,62 @@ export interface UsePaginationProps {
4
4
  * Number of always visible pages at the beginning and end.
5
5
  * @default 1
6
6
  */
7
- boundaryCount?: number;
7
+ boundaryCount?: number | undefined;
8
8
  /**
9
9
  * The name of the component where this hook is used.
10
10
  */
11
- componentName?: string;
11
+ componentName?: string | undefined;
12
12
  /**
13
13
  * The total number of pages.
14
14
  * @default 1
15
15
  */
16
- count?: number;
16
+ count?: number | undefined;
17
17
  /**
18
18
  * The page selected by default when the component is uncontrolled.
19
19
  * @default 1
20
20
  */
21
- defaultPage?: number;
21
+ defaultPage?: number | undefined;
22
22
  /**
23
23
  * If `true`, the component is disabled.
24
24
  * @default false
25
25
  */
26
- disabled?: boolean;
26
+ disabled?: boolean | undefined;
27
27
  /**
28
28
  * If `true`, hide the next-page button.
29
29
  * @default false
30
30
  */
31
- hideNextButton?: boolean;
31
+ hideNextButton?: boolean | undefined;
32
32
  /**
33
33
  * If `true`, hide the previous-page button.
34
34
  * @default false
35
35
  */
36
- hidePrevButton?: boolean;
36
+ hidePrevButton?: boolean | undefined;
37
37
  /**
38
38
  * Callback fired when the page is changed.
39
39
  *
40
40
  * @param {React.ChangeEvent<unknown>} event The event source of the callback.
41
41
  * @param {number} page The page selected.
42
42
  */
43
- onChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
43
+ onChange?: ((event: React.ChangeEvent<unknown>, page: number) => void) | undefined;
44
44
  /**
45
45
  * The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
46
46
  */
47
- page?: number;
47
+ page?: number | undefined;
48
48
  /**
49
49
  * If `true`, show the first-page button.
50
50
  * @default false
51
51
  */
52
- showFirstButton?: boolean;
52
+ showFirstButton?: boolean | undefined;
53
53
  /**
54
54
  * If `true`, show the last-page button.
55
55
  * @default false
56
56
  */
57
- showLastButton?: boolean;
57
+ showLastButton?: boolean | undefined;
58
58
  /**
59
59
  * Number of always visible pages before and after the current page.
60
60
  * @default 1
61
61
  */
62
- siblingCount?: number;
62
+ siblingCount?: number | undefined;
63
63
  }
64
64
  export interface UsePaginationItem {
65
65
  onClick: React.ReactEventHandler;
@@ -1,6 +1,6 @@
1
1
  export interface UseScrollTriggerOptions {
2
- disableHysteresis?: boolean;
3
- target?: Node | Window | null;
4
- threshold?: number;
2
+ disableHysteresis?: boolean | undefined;
3
+ target?: Node | Window | null | undefined;
4
+ threshold?: number | undefined;
5
5
  }
6
6
  export default function useScrollTrigger(options?: UseScrollTriggerOptions): boolean;
@@ -0,0 +1 @@
1
+ export default function isLayoutSupported(): boolean;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = isLayoutSupported;
7
+ function isLayoutSupported() {
8
+ return !(/jsdom|HappyDOM/.test(window.navigator.userAgent) ||
9
+ // TODO(v9): Remove the test environment check
10
+ // eslint-disable-next-line mui/consistent-production-guard
11
+ process.env.NODE_ENV === 'test');
12
+ }
package/utils/types.d.ts CHANGED
@@ -3,8 +3,8 @@ import { SlotComponentProps } from '@mui/utils/types';
3
3
  import { Theme } from "../styles/index.js";
4
4
  export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState } from '@mui/utils/types';
5
5
  export type SlotCommonProps = {
6
- component?: React.ElementType;
7
- sx?: SxProps<Theme>;
6
+ component?: React.ElementType | undefined;
7
+ sx?: SxProps<Theme> | undefined;
8
8
  };
9
9
  export type SlotProps<TSlotComponent extends React.ElementType, TOverrides, TOwnerState> = SlotComponentProps<TSlotComponent, SlotCommonProps & TOverrides, TOwnerState>;
10
10
  /**
@@ -17,10 +17,10 @@ export type CreateSlotsAndSlotProps<Slots, K extends Record<keyof Slots, any>> =
17
17
  * The components used for each slot inside.
18
18
  * @default {}
19
19
  */
20
- slots?: Partial<Slots>;
20
+ slots?: Partial<Slots> | undefined;
21
21
  /**
22
22
  * The props used for each slot inside.
23
23
  * @default {}
24
24
  */
25
- slotProps?: { [P in keyof K]?: K[P] };
25
+ slotProps?: { [P in keyof K]?: K[P] } | undefined;
26
26
  };
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { ClassValue } from 'clsx';
3
3
  export type WithCommonProps<T> = T & {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- ref?: React.Ref<any>;
4
+ className?: string | undefined;
5
+ style?: React.CSSProperties | undefined;
6
+ ref?: React.Ref<any> | undefined;
7
7
  };
8
8
  type EventHandlers = Record<string, React.EventHandler<any>>;
9
9
  type ExtractComponentProps<P> = P extends infer T | ((ownerState: any) => infer T) ? T : never;
@@ -22,12 +22,12 @@ type ExtractComponentProps<P> = P extends infer T | ((ownerState: any) => infer
22
22
  * - might contain `as` prop.
23
23
  */
24
24
  export default function useSlot<T extends string, ElementType extends React.ElementType, SlotProps, OwnerState extends {}, ExternalSlotProps extends {
25
- component?: React.ElementType;
26
- ref?: React.Ref<any>;
25
+ component?: React.ElementType | undefined;
26
+ ref?: React.Ref<any> | undefined;
27
27
  }, ExternalForwardedProps extends {
28
- component?: React.ElementType;
29
- slots?: { [k in T]?: React.ElementType };
30
- slotProps?: { [k in T]?: ExternalSlotProps | ((ownerState: OwnerState) => ExternalSlotProps) };
28
+ component?: React.ElementType | undefined;
29
+ slots?: { [k in T]?: React.ElementType } | undefined;
30
+ slotProps?: { [k in T]?: ExternalSlotProps | ((ownerState: OwnerState) => ExternalSlotProps) } | undefined;
31
31
  }, AdditionalProps, SlotOwnerState extends {}>(
32
32
  /**
33
33
  * The slot's name. All Material UI components should have `root` slot.
@@ -38,7 +38,7 @@ export default function useSlot<T extends string, ElementType extends React.Elem
38
38
  name: T, parameters: (T extends 'root' ? {
39
39
  ref: React.ForwardedRef<any>;
40
40
  } : {
41
- ref?: React.ForwardedRef<any>;
41
+ ref?: React.ForwardedRef<any> | undefined;
42
42
  }) & {
43
43
  /**
44
44
  * The slot's className
@@ -59,8 +59,8 @@ name: T, parameters: (T extends 'root' ? {
59
59
  * If the slot is not `root`, the rest of the `externalForwardedProps` are neglected.
60
60
  */
61
61
  externalForwardedProps: ExternalForwardedProps;
62
- getSlotProps?: (other: EventHandlers) => WithCommonProps<SlotProps>;
63
- additionalProps?: WithCommonProps<AdditionalProps>;
62
+ getSlotProps?: ((other: EventHandlers) => WithCommonProps<SlotProps>) | undefined;
63
+ additionalProps?: WithCommonProps<AdditionalProps> | undefined;
64
64
  /**
65
65
  * props forward to `T` only if the `slotProps.*.component` is not provided.
66
66
  * e.g. Autocomplete's listbox uses Popper + StyledComponent
@@ -73,7 +73,7 @@ name: T, parameters: (T extends 'root' ? {
73
73
  * This flag is used to forward the `component` and `slotProps.root.component` to the Paper component.
74
74
  * Otherwise, the `component` prop will be converted to `as` prop which replaces the Paper component (the paper styles are gone).
75
75
  */
76
- shouldForwardComponentProp?: boolean;
76
+ shouldForwardComponentProp?: boolean | undefined;
77
77
  }): [ElementType, {
78
78
  className: string;
79
79
  ownerState: OwnerState & SlotOwnerState;
package/version/index.js CHANGED
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = exports.prerelease = exports.patch = exports.minor = exports.major = exports.default = void 0;
7
- const version = exports.version = "7.3.7";
7
+ const version = exports.version = "7.3.9";
8
8
  const major = exports.major = Number("7");
9
9
  const minor = exports.minor = Number("3");
10
- const patch = exports.patch = Number("7");
10
+ const patch = exports.patch = Number("9");
11
11
  const prerelease = exports.prerelease = undefined;
12
12
  var _default = exports.default = version;