@mui/material 5.14.2 → 5.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (709) hide show
  1. package/Accordion/Accordion.d.ts +11 -6
  2. package/Accordion/Accordion.js +1 -1
  3. package/Accordion/accordionClasses.d.ts +18 -18
  4. package/AccordionActions/AccordionActions.js +1 -1
  5. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  6. package/AccordionDetails/AccordionDetails.js +1 -1
  7. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  8. package/AccordionSummary/AccordionSummary.d.ts +9 -7
  9. package/AccordionSummary/AccordionSummary.js +1 -1
  10. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  11. package/Alert/Alert.js +1 -1
  12. package/Alert/alertClasses.d.ts +44 -44
  13. package/AlertTitle/AlertTitle.js +1 -1
  14. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  15. package/AppBar/AppBar.d.ts +11 -6
  16. package/AppBar/AppBar.js +1 -1
  17. package/AppBar/appBarClasses.d.ts +28 -28
  18. package/Autocomplete/Autocomplete.d.ts +20 -16
  19. package/Autocomplete/Autocomplete.js +19 -15
  20. package/Autocomplete/autocompleteClasses.d.ts +58 -58
  21. package/Avatar/Avatar.d.ts +11 -6
  22. package/Avatar/Avatar.js +1 -1
  23. package/Avatar/avatarClasses.d.ts +20 -20
  24. package/AvatarGroup/AvatarGroup.d.ts +1 -1
  25. package/AvatarGroup/AvatarGroup.js +1 -1
  26. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  27. package/Backdrop/Backdrop.d.ts +11 -6
  28. package/Backdrop/Backdrop.js +1 -1
  29. package/Backdrop/backdropClasses.d.ts +10 -10
  30. package/Badge/Badge.d.ts +11 -6
  31. package/Badge/Badge.js +2 -2
  32. package/Badge/badgeClasses.d.ts +56 -56
  33. package/BottomNavigation/BottomNavigation.d.ts +11 -6
  34. package/BottomNavigation/BottomNavigation.js +1 -1
  35. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  36. package/BottomNavigationAction/BottomNavigationAction.d.ts +9 -7
  37. package/BottomNavigationAction/BottomNavigationAction.js +1 -1
  38. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  39. package/Box/Box.d.ts +3 -3
  40. package/Breadcrumbs/Breadcrumbs.d.ts +11 -6
  41. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  42. package/Button/Button.d.ts +16 -14
  43. package/Button/Button.js +1 -1
  44. package/Button/buttonClasses.d.ts +100 -100
  45. package/ButtonBase/ButtonBase.d.ts +17 -12
  46. package/ButtonBase/ButtonBase.js +1 -1
  47. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  48. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  49. package/ButtonGroup/ButtonGroup.d.ts +11 -6
  50. package/ButtonGroup/ButtonGroup.js +1 -1
  51. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  52. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  53. package/CHANGELOG.md +193 -5
  54. package/Card/Card.d.ts +13 -8
  55. package/Card/Card.js +1 -1
  56. package/Card/cardClasses.d.ts +8 -8
  57. package/CardActionArea/CardActionArea.d.ts +11 -6
  58. package/CardActionArea/CardActionArea.js +1 -1
  59. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  60. package/CardActions/CardActions.js +1 -1
  61. package/CardActions/cardActionsClasses.d.ts +10 -10
  62. package/CardContent/CardContent.d.ts +11 -6
  63. package/CardContent/CardContent.js +1 -1
  64. package/CardContent/cardContentClasses.d.ts +8 -8
  65. package/CardHeader/CardHeader.js +1 -1
  66. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  67. package/CardMedia/CardMedia.d.ts +9 -7
  68. package/CardMedia/CardMedia.js +1 -1
  69. package/CardMedia/cardMediaClasses.d.ts +12 -12
  70. package/Checkbox/Checkbox.js +4 -3
  71. package/Checkbox/checkboxClasses.d.ts +22 -18
  72. package/Checkbox/checkboxClasses.js +1 -1
  73. package/Chip/Chip.d.ts +11 -6
  74. package/Chip/Chip.js +1 -1
  75. package/Chip/chipClasses.d.ts +96 -96
  76. package/CircularProgress/CircularProgress.js +1 -1
  77. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  78. package/ClickAwayListener/index.d.ts +1 -2
  79. package/ClickAwayListener/index.js +1 -2
  80. package/Collapse/Collapse.js +1 -1
  81. package/Collapse/collapseClasses.d.ts +18 -18
  82. package/Container/Container.d.ts +11 -6
  83. package/Container/containerClasses.d.ts +6 -6
  84. package/Dialog/Dialog.d.ts +1 -1
  85. package/Dialog/Dialog.js +1 -1
  86. package/Dialog/DialogContext.d.ts +6 -6
  87. package/Dialog/dialogClasses.d.ts +36 -36
  88. package/DialogActions/DialogActions.js +1 -1
  89. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  90. package/DialogContent/DialogContent.js +1 -1
  91. package/DialogContent/dialogContentClasses.d.ts +10 -10
  92. package/DialogContentText/DialogContentText.d.ts +9 -7
  93. package/DialogContentText/DialogContentText.js +1 -1
  94. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  95. package/DialogTitle/DialogTitle.d.ts +9 -7
  96. package/DialogTitle/DialogTitle.js +1 -1
  97. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  98. package/Divider/Divider.d.ts +11 -6
  99. package/Divider/Divider.js +7 -1
  100. package/Divider/dividerClasses.d.ts +34 -34
  101. package/Drawer/Drawer.d.ts +1 -1
  102. package/Drawer/Drawer.js +1 -1
  103. package/Drawer/drawerClasses.d.ts +30 -30
  104. package/Fab/Fab.d.ts +11 -6
  105. package/Fab/Fab.js +1 -1
  106. package/Fab/fabClasses.d.ts +26 -26
  107. package/FilledInput/FilledInput.js +1 -1
  108. package/FilledInput/filledInputClasses.d.ts +42 -42
  109. package/FormControl/FormControl.d.ts +11 -6
  110. package/FormControl/FormControl.js +1 -1
  111. package/FormControl/FormControlContext.d.ts +17 -17
  112. package/FormControl/formControlClasses.d.ts +14 -14
  113. package/FormControl/useFormControl.d.ts +2 -2
  114. package/FormControlLabel/FormControlLabel.js +1 -1
  115. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  116. package/FormGroup/FormGroup.js +1 -1
  117. package/FormGroup/formGroupClasses.d.ts +12 -12
  118. package/FormHelperText/FormHelperText.d.ts +11 -6
  119. package/FormHelperText/FormHelperText.js +1 -1
  120. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  121. package/FormLabel/FormLabel.d.ts +14 -9
  122. package/FormLabel/FormLabel.js +1 -1
  123. package/FormLabel/formLabelClasses.d.ts +22 -22
  124. package/Grid/Grid.d.ts +11 -6
  125. package/Grid/Grid.js +1 -1
  126. package/Grid/gridClasses.d.ts +48 -48
  127. package/Hidden/HiddenCss.js +1 -1
  128. package/Icon/Icon.d.ts +11 -6
  129. package/Icon/Icon.js +1 -1
  130. package/Icon/iconClasses.d.ts +24 -24
  131. package/IconButton/IconButton.d.ts +9 -7
  132. package/IconButton/IconButton.js +1 -1
  133. package/IconButton/iconButtonClasses.d.ts +34 -34
  134. package/ImageList/ImageList.d.ts +11 -6
  135. package/ImageList/ImageList.js +1 -1
  136. package/ImageList/imageListClasses.d.ts +16 -16
  137. package/ImageListItem/ImageListItem.d.ts +11 -6
  138. package/ImageListItem/ImageListItem.js +1 -1
  139. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  140. package/ImageListItemBar/ImageListItemBar.js +1 -1
  141. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  142. package/Input/Input.js +1 -1
  143. package/Input/inputClasses.d.ts +38 -38
  144. package/InputAdornment/InputAdornment.d.ts +11 -6
  145. package/InputAdornment/InputAdornment.js +1 -1
  146. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  147. package/InputBase/inputBaseClasses.d.ts +46 -46
  148. package/InputLabel/InputLabel.d.ts +9 -7
  149. package/InputLabel/InputLabel.js +1 -1
  150. package/InputLabel/inputLabelClasses.d.ts +32 -32
  151. package/LinearProgress/LinearProgress.js +1 -1
  152. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  153. package/Link/Link.d.ts +20 -13
  154. package/Link/Link.js +1 -1
  155. package/Link/getTextDecoration.d.ts +15 -15
  156. package/Link/linkClasses.d.ts +18 -18
  157. package/List/List.d.ts +17 -10
  158. package/List/List.js +1 -1
  159. package/List/listClasses.d.ts +14 -14
  160. package/ListItem/ListItem.d.ts +9 -7
  161. package/ListItem/listItemClasses.d.ts +30 -30
  162. package/ListItemAvatar/ListItemAvatar.js +1 -1
  163. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  164. package/ListItemButton/ListItemButton.d.ts +9 -7
  165. package/ListItemButton/ListItemButton.js +1 -1
  166. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  167. package/ListItemIcon/ListItemIcon.js +1 -1
  168. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  169. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  170. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  171. package/ListItemText/ListItemText.js +1 -1
  172. package/ListItemText/listItemTextClasses.d.ts +18 -18
  173. package/ListSubheader/ListSubheader.d.ts +11 -6
  174. package/ListSubheader/ListSubheader.js +1 -1
  175. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  176. package/Menu/Menu.d.ts +23 -2
  177. package/Menu/Menu.js +49 -10
  178. package/Menu/menuClasses.d.ts +12 -12
  179. package/MenuItem/MenuItem.d.ts +11 -6
  180. package/MenuItem/MenuItem.js +1 -1
  181. package/MenuItem/menuItemClasses.d.ts +20 -20
  182. package/MenuList/MenuList.d.ts +11 -6
  183. package/MobileStepper/MobileStepper.js +1 -1
  184. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  185. package/Modal/Modal.d.ts +11 -6
  186. package/Modal/Modal.js +1 -1
  187. package/NativeSelect/NativeSelect.js +1 -1
  188. package/NativeSelect/NativeSelectInput.js +1 -1
  189. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  190. package/NoSsr/index.d.ts +1 -1
  191. package/NoSsr/index.js +1 -1
  192. package/OutlinedInput/OutlinedInput.js +1 -1
  193. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  194. package/OverridableComponent.d.ts +14 -14
  195. package/Pagination/Pagination.js +1 -1
  196. package/Pagination/paginationClasses.d.ts +14 -14
  197. package/PaginationItem/PaginationItem.d.ts +12 -7
  198. package/PaginationItem/PaginationItem.js +1 -1
  199. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  200. package/Paper/Paper.d.ts +45 -38
  201. package/Paper/Paper.js +1 -1
  202. package/Paper/index.d.ts +1 -1
  203. package/Paper/paperClasses.d.ts +39 -39
  204. package/Popover/Popover.d.ts +1 -1
  205. package/Popover/popoverClasses.d.ts +10 -10
  206. package/Popper/Popper.d.ts +65 -65
  207. package/Popper/Popper.js +1 -1
  208. package/Portal/index.d.ts +1 -1
  209. package/Portal/index.js +1 -1
  210. package/README.md +2 -2
  211. package/Radio/Radio.js +1 -1
  212. package/Radio/radioClasses.d.ts +16 -16
  213. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  214. package/RadioGroup/useRadioGroup.d.ts +4 -4
  215. package/Rating/Rating.js +1 -1
  216. package/Rating/ratingClasses.d.ts +40 -40
  217. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +11 -6
  218. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  219. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  220. package/Select/Select.d.ts +8 -8
  221. package/Select/Select.js +1 -1
  222. package/Select/SelectInput.d.ts +7 -7
  223. package/Select/SelectInput.js +1 -1
  224. package/Select/selectClasses.d.ts +32 -32
  225. package/Skeleton/Skeleton.d.ts +11 -6
  226. package/Skeleton/Skeleton.js +1 -1
  227. package/Skeleton/skeletonClasses.d.ts +26 -26
  228. package/Slider/Slider.d.ts +11 -6
  229. package/Slider/Slider.js +1 -1
  230. package/Slider/SliderValueLabel.d.ts +10 -10
  231. package/Slider/SliderValueLabel.types.d.ts +24 -24
  232. package/Slider/sliderClasses.d.ts +58 -58
  233. package/Snackbar/Snackbar.js +2 -2
  234. package/Snackbar/snackbarClasses.d.ts +20 -20
  235. package/SnackbarContent/SnackbarContent.js +1 -1
  236. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  237. package/SpeedDial/SpeedDial.js +1 -1
  238. package/SpeedDial/speedDialClasses.d.ts +22 -22
  239. package/SpeedDialAction/SpeedDialAction.js +1 -1
  240. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  241. package/SpeedDialIcon/SpeedDialIcon.js +1 -1
  242. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  243. package/Stack/Stack.d.ts +11 -6
  244. package/Stack/stackClasses.d.ts +6 -6
  245. package/Step/Step.d.ts +11 -6
  246. package/Step/Step.js +1 -1
  247. package/Step/StepContext.d.ts +20 -20
  248. package/Step/stepClasses.d.ts +16 -16
  249. package/StepButton/StepButton.d.ts +11 -6
  250. package/StepButton/StepButton.js +1 -1
  251. package/StepButton/stepButtonClasses.d.ts +14 -14
  252. package/StepConnector/StepConnector.js +1 -1
  253. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  254. package/StepContent/StepContent.js +1 -1
  255. package/StepContent/stepContentClasses.d.ts +12 -12
  256. package/StepIcon/StepIcon.js +1 -1
  257. package/StepIcon/stepIconClasses.d.ts +16 -16
  258. package/StepLabel/StepLabel.js +1 -1
  259. package/StepLabel/stepLabelClasses.d.ts +28 -28
  260. package/Stepper/Stepper.d.ts +11 -6
  261. package/Stepper/Stepper.js +1 -1
  262. package/Stepper/StepperContext.d.ts +18 -18
  263. package/Stepper/stepperClasses.d.ts +14 -14
  264. package/SvgIcon/SvgIcon.d.ts +11 -6
  265. package/SvgIcon/SvgIcon.js +1 -1
  266. package/SvgIcon/svgIconClasses.d.ts +26 -26
  267. package/Switch/Switch.js +1 -1
  268. package/Switch/switchClasses.d.ts +32 -32
  269. package/Tab/Tab.d.ts +11 -6
  270. package/Tab/Tab.js +1 -1
  271. package/Tab/tabClasses.d.ts +26 -26
  272. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  273. package/Table/Table.d.ts +11 -6
  274. package/Table/Table.js +1 -1
  275. package/Table/tableClasses.d.ts +10 -10
  276. package/TableBody/TableBody.d.ts +11 -6
  277. package/TableBody/TableBody.js +1 -1
  278. package/TableBody/tableBodyClasses.d.ts +8 -8
  279. package/TableCell/TableCell.js +1 -1
  280. package/TableCell/tableCellClasses.d.ts +32 -32
  281. package/TableContainer/TableContainer.d.ts +11 -6
  282. package/TableContainer/TableContainer.js +1 -1
  283. package/TableContainer/tableContainerClasses.d.ts +8 -8
  284. package/TableFooter/TableFooter.d.ts +11 -6
  285. package/TableFooter/TableFooter.js +1 -1
  286. package/TableFooter/tableFooterClasses.d.ts +8 -8
  287. package/TableHead/TableHead.d.ts +11 -6
  288. package/TableHead/TableHead.js +1 -1
  289. package/TableHead/tableHeadClasses.d.ts +8 -8
  290. package/TablePagination/TablePagination.d.ts +11 -6
  291. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  292. package/TableRow/TableRow.d.ts +11 -6
  293. package/TableRow/TableRow.js +1 -1
  294. package/TableRow/tableRowClasses.d.ts +16 -16
  295. package/TableSortLabel/TableSortLabel.d.ts +9 -7
  296. package/TableSortLabel/TableSortLabel.js +1 -1
  297. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  298. package/Tabs/Tabs.d.ts +11 -6
  299. package/Tabs/tabsClasses.d.ts +32 -32
  300. package/TextField/TextField.js +1 -1
  301. package/TextField/textFieldClasses.d.ts +8 -8
  302. package/TextareaAutosize/index.d.ts +1 -1
  303. package/TextareaAutosize/index.js +1 -1
  304. package/ToggleButton/ToggleButton.d.ts +9 -7
  305. package/ToggleButton/ToggleButton.js +1 -1
  306. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  307. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  308. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  309. package/Toolbar/Toolbar.d.ts +11 -6
  310. package/Toolbar/Toolbar.js +1 -1
  311. package/Toolbar/toolbarClasses.d.ts +14 -14
  312. package/Tooltip/tooltipClasses.d.ts +30 -30
  313. package/Typography/Typography.d.ts +76 -70
  314. package/Typography/Typography.js +5 -2
  315. package/Typography/typographyClasses.d.ts +50 -50
  316. package/Unstable_Grid2/Grid2.d.ts +4 -4
  317. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  318. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  319. package/Unstable_Grid2/index.d.ts +4 -4
  320. package/Unstable_TrapFocus/index.d.ts +1 -1
  321. package/Unstable_TrapFocus/index.js +1 -1
  322. package/className/index.d.ts +1 -1
  323. package/darkScrollbar/index.d.ts +28 -28
  324. package/generateUtilityClass/index.d.ts +2 -2
  325. package/generateUtilityClasses/index.d.ts +1 -1
  326. package/index.d.ts +10 -10
  327. package/index.js +2 -2
  328. package/internal/SwitchBase.js +1 -1
  329. package/internal/switchBaseClasses.d.ts +12 -12
  330. package/legacy/Accordion/Accordion.js +1 -1
  331. package/legacy/AccordionActions/AccordionActions.js +1 -1
  332. package/legacy/AccordionDetails/AccordionDetails.js +1 -1
  333. package/legacy/AccordionSummary/AccordionSummary.js +1 -1
  334. package/legacy/Alert/Alert.js +1 -1
  335. package/legacy/AlertTitle/AlertTitle.js +1 -1
  336. package/legacy/AppBar/AppBar.js +1 -1
  337. package/legacy/Autocomplete/Autocomplete.js +19 -16
  338. package/legacy/Avatar/Avatar.js +1 -1
  339. package/legacy/AvatarGroup/AvatarGroup.js +1 -1
  340. package/legacy/Backdrop/Backdrop.js +1 -1
  341. package/legacy/Badge/Badge.js +2 -2
  342. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  343. package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
  344. package/legacy/Button/Button.js +1 -1
  345. package/legacy/ButtonBase/ButtonBase.js +1 -1
  346. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  347. package/legacy/Card/Card.js +1 -1
  348. package/legacy/CardActionArea/CardActionArea.js +1 -1
  349. package/legacy/CardActions/CardActions.js +1 -1
  350. package/legacy/CardContent/CardContent.js +1 -1
  351. package/legacy/CardHeader/CardHeader.js +1 -1
  352. package/legacy/CardMedia/CardMedia.js +1 -1
  353. package/legacy/Checkbox/Checkbox.js +4 -3
  354. package/legacy/Checkbox/checkboxClasses.js +1 -1
  355. package/legacy/Chip/Chip.js +1 -1
  356. package/legacy/CircularProgress/CircularProgress.js +1 -1
  357. package/legacy/ClickAwayListener/index.js +1 -2
  358. package/legacy/Collapse/Collapse.js +1 -1
  359. package/legacy/Dialog/Dialog.js +1 -1
  360. package/legacy/DialogActions/DialogActions.js +1 -1
  361. package/legacy/DialogContent/DialogContent.js +1 -1
  362. package/legacy/DialogContentText/DialogContentText.js +1 -1
  363. package/legacy/DialogTitle/DialogTitle.js +1 -1
  364. package/legacy/Divider/Divider.js +7 -1
  365. package/legacy/Drawer/Drawer.js +1 -1
  366. package/legacy/Fab/Fab.js +1 -1
  367. package/legacy/FilledInput/FilledInput.js +1 -1
  368. package/legacy/FormControl/FormControl.js +1 -1
  369. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  370. package/legacy/FormGroup/FormGroup.js +1 -1
  371. package/legacy/FormHelperText/FormHelperText.js +1 -1
  372. package/legacy/FormLabel/FormLabel.js +1 -1
  373. package/legacy/Grid/Grid.js +1 -1
  374. package/legacy/Hidden/HiddenCss.js +1 -1
  375. package/legacy/Icon/Icon.js +1 -1
  376. package/legacy/IconButton/IconButton.js +1 -1
  377. package/legacy/ImageList/ImageList.js +1 -1
  378. package/legacy/ImageListItem/ImageListItem.js +1 -1
  379. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  380. package/legacy/Input/Input.js +1 -1
  381. package/legacy/InputAdornment/InputAdornment.js +1 -1
  382. package/legacy/InputLabel/InputLabel.js +1 -1
  383. package/legacy/LinearProgress/LinearProgress.js +1 -1
  384. package/legacy/Link/Link.js +1 -1
  385. package/legacy/List/List.js +1 -1
  386. package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
  387. package/legacy/ListItemButton/ListItemButton.js +1 -1
  388. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  389. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  390. package/legacy/ListItemText/ListItemText.js +1 -1
  391. package/legacy/ListSubheader/ListSubheader.js +1 -1
  392. package/legacy/Menu/Menu.js +50 -9
  393. package/legacy/MenuItem/MenuItem.js +1 -1
  394. package/legacy/MobileStepper/MobileStepper.js +1 -1
  395. package/legacy/Modal/Modal.js +1 -1
  396. package/legacy/NativeSelect/NativeSelect.js +1 -1
  397. package/legacy/NativeSelect/NativeSelectInput.js +1 -1
  398. package/legacy/NoSsr/index.js +1 -1
  399. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  400. package/legacy/Pagination/Pagination.js +1 -1
  401. package/legacy/PaginationItem/PaginationItem.js +1 -1
  402. package/legacy/Paper/Paper.js +1 -1
  403. package/legacy/Popper/Popper.js +1 -1
  404. package/legacy/Portal/index.js +1 -1
  405. package/legacy/Radio/Radio.js +1 -1
  406. package/legacy/Rating/Rating.js +1 -1
  407. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  408. package/legacy/Select/Select.js +1 -1
  409. package/legacy/Select/SelectInput.js +1 -1
  410. package/legacy/Skeleton/Skeleton.js +1 -1
  411. package/legacy/Slider/Slider.js +1 -1
  412. package/legacy/Snackbar/Snackbar.js +2 -2
  413. package/legacy/SnackbarContent/SnackbarContent.js +1 -1
  414. package/legacy/SpeedDial/SpeedDial.js +1 -1
  415. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -1
  416. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
  417. package/legacy/Step/Step.js +1 -1
  418. package/legacy/StepButton/StepButton.js +1 -1
  419. package/legacy/StepConnector/StepConnector.js +1 -1
  420. package/legacy/StepContent/StepContent.js +1 -1
  421. package/legacy/StepIcon/StepIcon.js +1 -1
  422. package/legacy/StepLabel/StepLabel.js +1 -1
  423. package/legacy/Stepper/Stepper.js +1 -1
  424. package/legacy/SvgIcon/SvgIcon.js +1 -1
  425. package/legacy/Switch/Switch.js +1 -1
  426. package/legacy/Tab/Tab.js +1 -1
  427. package/legacy/Table/Table.js +1 -1
  428. package/legacy/TableBody/TableBody.js +1 -1
  429. package/legacy/TableCell/TableCell.js +1 -1
  430. package/legacy/TableContainer/TableContainer.js +1 -1
  431. package/legacy/TableFooter/TableFooter.js +1 -1
  432. package/legacy/TableHead/TableHead.js +1 -1
  433. package/legacy/TableRow/TableRow.js +1 -1
  434. package/legacy/TableSortLabel/TableSortLabel.js +1 -1
  435. package/legacy/TextField/TextField.js +1 -1
  436. package/legacy/TextareaAutosize/index.js +1 -1
  437. package/legacy/ToggleButton/ToggleButton.js +1 -1
  438. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  439. package/legacy/Toolbar/Toolbar.js +1 -1
  440. package/legacy/Typography/Typography.js +5 -2
  441. package/legacy/Unstable_TrapFocus/index.js +1 -1
  442. package/legacy/index.js +2 -2
  443. package/legacy/internal/SwitchBase.js +1 -1
  444. package/legacy/styles/createTypography.js +1 -0
  445. package/legacy/useAutocomplete/useAutocomplete.js +1 -1
  446. package/legacy/utils/index.js +1 -1
  447. package/locale/index.d.ts +80 -80
  448. package/modern/Accordion/Accordion.js +1 -1
  449. package/modern/AccordionActions/AccordionActions.js +1 -1
  450. package/modern/AccordionDetails/AccordionDetails.js +1 -1
  451. package/modern/AccordionSummary/AccordionSummary.js +1 -1
  452. package/modern/Alert/Alert.js +1 -1
  453. package/modern/AlertTitle/AlertTitle.js +1 -1
  454. package/modern/AppBar/AppBar.js +1 -1
  455. package/modern/Autocomplete/Autocomplete.js +16 -12
  456. package/modern/Avatar/Avatar.js +1 -1
  457. package/modern/AvatarGroup/AvatarGroup.js +1 -1
  458. package/modern/Backdrop/Backdrop.js +1 -1
  459. package/modern/Badge/Badge.js +2 -2
  460. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  461. package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
  462. package/modern/Button/Button.js +1 -1
  463. package/modern/ButtonBase/ButtonBase.js +1 -1
  464. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  465. package/modern/Card/Card.js +1 -1
  466. package/modern/CardActionArea/CardActionArea.js +1 -1
  467. package/modern/CardActions/CardActions.js +1 -1
  468. package/modern/CardContent/CardContent.js +1 -1
  469. package/modern/CardHeader/CardHeader.js +1 -1
  470. package/modern/CardMedia/CardMedia.js +1 -1
  471. package/modern/Checkbox/Checkbox.js +4 -3
  472. package/modern/Checkbox/checkboxClasses.js +1 -1
  473. package/modern/Chip/Chip.js +1 -1
  474. package/modern/CircularProgress/CircularProgress.js +1 -1
  475. package/modern/ClickAwayListener/index.js +1 -2
  476. package/modern/Collapse/Collapse.js +1 -1
  477. package/modern/Dialog/Dialog.js +1 -1
  478. package/modern/DialogActions/DialogActions.js +1 -1
  479. package/modern/DialogContent/DialogContent.js +1 -1
  480. package/modern/DialogContentText/DialogContentText.js +1 -1
  481. package/modern/DialogTitle/DialogTitle.js +1 -1
  482. package/modern/Divider/Divider.js +7 -1
  483. package/modern/Drawer/Drawer.js +1 -1
  484. package/modern/Fab/Fab.js +1 -1
  485. package/modern/FilledInput/FilledInput.js +1 -1
  486. package/modern/FormControl/FormControl.js +1 -1
  487. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  488. package/modern/FormGroup/FormGroup.js +1 -1
  489. package/modern/FormHelperText/FormHelperText.js +1 -1
  490. package/modern/FormLabel/FormLabel.js +1 -1
  491. package/modern/Grid/Grid.js +1 -1
  492. package/modern/Hidden/HiddenCss.js +1 -1
  493. package/modern/Icon/Icon.js +1 -1
  494. package/modern/IconButton/IconButton.js +1 -1
  495. package/modern/ImageList/ImageList.js +1 -1
  496. package/modern/ImageListItem/ImageListItem.js +1 -1
  497. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  498. package/modern/Input/Input.js +1 -1
  499. package/modern/InputAdornment/InputAdornment.js +1 -1
  500. package/modern/InputLabel/InputLabel.js +1 -1
  501. package/modern/LinearProgress/LinearProgress.js +1 -1
  502. package/modern/Link/Link.js +1 -1
  503. package/modern/List/List.js +1 -1
  504. package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
  505. package/modern/ListItemButton/ListItemButton.js +1 -1
  506. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  507. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  508. package/modern/ListItemText/ListItemText.js +1 -1
  509. package/modern/ListSubheader/ListSubheader.js +1 -1
  510. package/modern/Menu/Menu.js +48 -10
  511. package/modern/MenuItem/MenuItem.js +1 -1
  512. package/modern/MobileStepper/MobileStepper.js +1 -1
  513. package/modern/Modal/Modal.js +1 -1
  514. package/modern/NativeSelect/NativeSelect.js +1 -1
  515. package/modern/NativeSelect/NativeSelectInput.js +1 -1
  516. package/modern/NoSsr/index.js +1 -1
  517. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  518. package/modern/Pagination/Pagination.js +1 -1
  519. package/modern/PaginationItem/PaginationItem.js +1 -1
  520. package/modern/Paper/Paper.js +1 -1
  521. package/modern/Popper/Popper.js +1 -1
  522. package/modern/Portal/index.js +1 -1
  523. package/modern/Radio/Radio.js +1 -1
  524. package/modern/Rating/Rating.js +1 -1
  525. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  526. package/modern/Select/Select.js +1 -1
  527. package/modern/Select/SelectInput.js +1 -1
  528. package/modern/Skeleton/Skeleton.js +1 -1
  529. package/modern/Slider/Slider.js +1 -1
  530. package/modern/Snackbar/Snackbar.js +2 -2
  531. package/modern/SnackbarContent/SnackbarContent.js +1 -1
  532. package/modern/SpeedDial/SpeedDial.js +1 -1
  533. package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
  534. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
  535. package/modern/Step/Step.js +1 -1
  536. package/modern/StepButton/StepButton.js +1 -1
  537. package/modern/StepConnector/StepConnector.js +1 -1
  538. package/modern/StepContent/StepContent.js +1 -1
  539. package/modern/StepIcon/StepIcon.js +1 -1
  540. package/modern/StepLabel/StepLabel.js +1 -1
  541. package/modern/Stepper/Stepper.js +1 -1
  542. package/modern/SvgIcon/SvgIcon.js +1 -1
  543. package/modern/Switch/Switch.js +1 -1
  544. package/modern/Tab/Tab.js +1 -1
  545. package/modern/Table/Table.js +1 -1
  546. package/modern/TableBody/TableBody.js +1 -1
  547. package/modern/TableCell/TableCell.js +1 -1
  548. package/modern/TableContainer/TableContainer.js +1 -1
  549. package/modern/TableFooter/TableFooter.js +1 -1
  550. package/modern/TableHead/TableHead.js +1 -1
  551. package/modern/TableRow/TableRow.js +1 -1
  552. package/modern/TableSortLabel/TableSortLabel.js +1 -1
  553. package/modern/TextField/TextField.js +1 -1
  554. package/modern/TextareaAutosize/index.js +1 -1
  555. package/modern/ToggleButton/ToggleButton.js +1 -1
  556. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  557. package/modern/Toolbar/Toolbar.js +1 -1
  558. package/modern/Typography/Typography.js +5 -2
  559. package/modern/Unstable_TrapFocus/index.js +1 -1
  560. package/modern/index.js +2 -2
  561. package/modern/internal/SwitchBase.js +1 -1
  562. package/modern/styles/createTypography.js +1 -0
  563. package/modern/useAutocomplete/useAutocomplete.js +1 -1
  564. package/modern/utils/index.js +1 -1
  565. package/node/Accordion/Accordion.js +2 -2
  566. package/node/AccordionActions/AccordionActions.js +2 -2
  567. package/node/AccordionDetails/AccordionDetails.js +2 -2
  568. package/node/AccordionSummary/AccordionSummary.js +2 -2
  569. package/node/Alert/Alert.js +2 -2
  570. package/node/AlertTitle/AlertTitle.js +2 -2
  571. package/node/AppBar/AppBar.js +2 -2
  572. package/node/Autocomplete/Autocomplete.js +19 -15
  573. package/node/Avatar/Avatar.js +2 -2
  574. package/node/AvatarGroup/AvatarGroup.js +2 -2
  575. package/node/Backdrop/Backdrop.js +2 -2
  576. package/node/Badge/Badge.js +4 -4
  577. package/node/BottomNavigation/BottomNavigation.js +2 -2
  578. package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
  579. package/node/Button/Button.js +2 -2
  580. package/node/ButtonBase/ButtonBase.js +2 -2
  581. package/node/ButtonGroup/ButtonGroup.js +2 -2
  582. package/node/Card/Card.js +2 -2
  583. package/node/CardActionArea/CardActionArea.js +2 -2
  584. package/node/CardActions/CardActions.js +2 -2
  585. package/node/CardContent/CardContent.js +2 -2
  586. package/node/CardHeader/CardHeader.js +2 -2
  587. package/node/CardMedia/CardMedia.js +2 -2
  588. package/node/Checkbox/Checkbox.js +5 -4
  589. package/node/Checkbox/checkboxClasses.js +1 -1
  590. package/node/Chip/Chip.js +2 -2
  591. package/node/CircularProgress/CircularProgress.js +2 -2
  592. package/node/ClickAwayListener/index.js +2 -16
  593. package/node/Collapse/Collapse.js +2 -2
  594. package/node/Dialog/Dialog.js +2 -2
  595. package/node/DialogActions/DialogActions.js +2 -2
  596. package/node/DialogContent/DialogContent.js +2 -2
  597. package/node/DialogContentText/DialogContentText.js +2 -2
  598. package/node/DialogTitle/DialogTitle.js +2 -2
  599. package/node/Divider/Divider.js +8 -2
  600. package/node/Drawer/Drawer.js +2 -2
  601. package/node/Fab/Fab.js +2 -2
  602. package/node/FilledInput/FilledInput.js +2 -2
  603. package/node/FormControl/FormControl.js +2 -2
  604. package/node/FormControlLabel/FormControlLabel.js +2 -2
  605. package/node/FormGroup/FormGroup.js +2 -2
  606. package/node/FormHelperText/FormHelperText.js +2 -2
  607. package/node/FormLabel/FormLabel.js +2 -2
  608. package/node/Grid/Grid.js +2 -2
  609. package/node/Hidden/HiddenCss.js +2 -2
  610. package/node/Icon/Icon.js +2 -2
  611. package/node/IconButton/IconButton.js +2 -2
  612. package/node/ImageList/ImageList.js +2 -2
  613. package/node/ImageListItem/ImageListItem.js +2 -2
  614. package/node/ImageListItemBar/ImageListItemBar.js +2 -2
  615. package/node/Input/Input.js +2 -2
  616. package/node/InputAdornment/InputAdornment.js +2 -2
  617. package/node/InputLabel/InputLabel.js +2 -2
  618. package/node/LinearProgress/LinearProgress.js +2 -2
  619. package/node/Link/Link.js +2 -2
  620. package/node/List/List.js +2 -2
  621. package/node/ListItemAvatar/ListItemAvatar.js +2 -2
  622. package/node/ListItemButton/ListItemButton.js +2 -2
  623. package/node/ListItemIcon/ListItemIcon.js +2 -2
  624. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  625. package/node/ListItemText/ListItemText.js +2 -2
  626. package/node/ListSubheader/ListSubheader.js +2 -2
  627. package/node/Menu/Menu.js +52 -13
  628. package/node/MenuItem/MenuItem.js +2 -2
  629. package/node/MobileStepper/MobileStepper.js +2 -2
  630. package/node/Modal/Modal.js +2 -2
  631. package/node/NativeSelect/NativeSelect.js +2 -2
  632. package/node/NativeSelect/NativeSelectInput.js +2 -2
  633. package/node/NoSsr/index.js +2 -3
  634. package/node/OutlinedInput/OutlinedInput.js +2 -2
  635. package/node/Pagination/Pagination.js +2 -2
  636. package/node/PaginationItem/PaginationItem.js +2 -2
  637. package/node/Paper/Paper.js +2 -2
  638. package/node/Popper/Popper.js +2 -2
  639. package/node/Portal/index.js +2 -3
  640. package/node/Radio/Radio.js +2 -2
  641. package/node/Rating/Rating.js +2 -2
  642. package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
  643. package/node/Select/Select.js +1 -1
  644. package/node/Select/SelectInput.js +2 -2
  645. package/node/Skeleton/Skeleton.js +2 -2
  646. package/node/Slider/Slider.js +2 -2
  647. package/node/Snackbar/Snackbar.js +4 -4
  648. package/node/SnackbarContent/SnackbarContent.js +2 -2
  649. package/node/SpeedDial/SpeedDial.js +2 -2
  650. package/node/SpeedDialAction/SpeedDialAction.js +2 -2
  651. package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
  652. package/node/Step/Step.js +2 -2
  653. package/node/StepButton/StepButton.js +2 -2
  654. package/node/StepConnector/StepConnector.js +2 -2
  655. package/node/StepContent/StepContent.js +2 -2
  656. package/node/StepIcon/StepIcon.js +2 -2
  657. package/node/StepLabel/StepLabel.js +2 -2
  658. package/node/Stepper/Stepper.js +2 -2
  659. package/node/SvgIcon/SvgIcon.js +2 -2
  660. package/node/Switch/Switch.js +2 -2
  661. package/node/Tab/Tab.js +2 -2
  662. package/node/Table/Table.js +2 -2
  663. package/node/TableBody/TableBody.js +2 -2
  664. package/node/TableCell/TableCell.js +2 -2
  665. package/node/TableContainer/TableContainer.js +2 -2
  666. package/node/TableFooter/TableFooter.js +2 -2
  667. package/node/TableHead/TableHead.js +2 -2
  668. package/node/TableRow/TableRow.js +2 -2
  669. package/node/TableSortLabel/TableSortLabel.js +2 -2
  670. package/node/TextField/TextField.js +2 -2
  671. package/node/TextareaAutosize/index.js +2 -3
  672. package/node/ToggleButton/ToggleButton.js +2 -2
  673. package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
  674. package/node/Toolbar/Toolbar.js +2 -2
  675. package/node/Typography/Typography.js +6 -3
  676. package/node/Unstable_TrapFocus/index.js +2 -3
  677. package/node/index.js +3 -3
  678. package/node/internal/SwitchBase.js +2 -2
  679. package/node/styles/createTypography.js +1 -0
  680. package/node/useAutocomplete/useAutocomplete.js +3 -5
  681. package/node/utils/index.js +2 -2
  682. package/package.json +6 -6
  683. package/styles/CssVarsProvider.d.ts +20 -20
  684. package/styles/ThemeProvider.d.ts +3 -3
  685. package/styles/components.d.ts +1 -0
  686. package/styles/createTypography.d.ts +9 -10
  687. package/styles/createTypography.js +1 -0
  688. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  689. package/styles/getOverlayAlpha.d.ts +2 -2
  690. package/styles/identifier.d.ts +2 -2
  691. package/styles/overrides.d.ts +2 -0
  692. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  693. package/transitions/index.d.ts +1 -1
  694. package/transitions/transition.d.ts +13 -13
  695. package/transitions/utils.d.ts +23 -23
  696. package/types/OverridableComponentAugmentation.d.ts +31 -31
  697. package/umd/material-ui.development.js +9213 -9149
  698. package/umd/material-ui.production.min.js +21 -21
  699. package/useAutocomplete/useAutocomplete.d.ts +1 -1
  700. package/useAutocomplete/useAutocomplete.js +1 -1
  701. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  702. package/useTouchRipple/index.d.ts +1 -1
  703. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  704. package/utils/getScrollbarSize.d.ts +2 -2
  705. package/utils/index.d.ts +1 -1
  706. package/utils/index.js +1 -1
  707. package/utils/ownerDocument.d.ts +2 -2
  708. package/utils/ownerWindow.d.ts +2 -2
  709. package/utils/setRef.d.ts +2 -2
@@ -1,24 +1,24 @@
1
- export interface InputAdornmentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="filled"`. */
5
- filled: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="standard"`. */
9
- standard: string;
10
- /** Styles applied to the root element if `position="start"`. */
11
- positionStart: string;
12
- /** Styles applied to the root element if `position="end"`. */
13
- positionEnd: string;
14
- /** Styles applied to the root element if `disablePointerEvents={true}`. */
15
- disablePointerEvents: string;
16
- /** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
17
- hiddenLabel: string;
18
- /** Styles applied if the adornment is used inside <FormControl size="small" />. */
19
- sizeSmall: string;
20
- }
21
- export type InputAdornmentClassKey = keyof InputAdornmentClasses;
22
- export declare function getInputAdornmentUtilityClass(slot: string): string;
23
- declare const inputAdornmentClasses: InputAdornmentClasses;
24
- export default inputAdornmentClasses;
1
+ export interface InputAdornmentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="filled"`. */
5
+ filled: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="standard"`. */
9
+ standard: string;
10
+ /** Styles applied to the root element if `position="start"`. */
11
+ positionStart: string;
12
+ /** Styles applied to the root element if `position="end"`. */
13
+ positionEnd: string;
14
+ /** Styles applied to the root element if `disablePointerEvents={true}`. */
15
+ disablePointerEvents: string;
16
+ /** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
17
+ hiddenLabel: string;
18
+ /** Styles applied if the adornment is used inside <FormControl size="small" />. */
19
+ sizeSmall: string;
20
+ }
21
+ export type InputAdornmentClassKey = keyof InputAdornmentClasses;
22
+ export declare function getInputAdornmentUtilityClass(slot: string): string;
23
+ declare const inputAdornmentClasses: InputAdornmentClasses;
24
+ export default inputAdornmentClasses;
@@ -1,46 +1,46 @@
1
- export interface InputBaseClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
- formControl: string;
6
- /** Styles applied to the root element if the component is focused. */
7
- focused: string;
8
- /** Styles applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if `startAdornment` is provided. */
11
- adornedStart: string;
12
- /** Styles applied to the root element if `endAdornment` is provided. */
13
- adornedEnd: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- /** Styles applied to the input element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the root element if `multiline={true}`. */
19
- multiline: string;
20
- /** Styles applied to the root element if the color is secondary. */
21
- colorSecondary: string;
22
- /** Styles applied to the root element if `fullWidth={true}`. */
23
- fullWidth: string;
24
- /** Styles applied to the root element if `hiddenLabel={true}`. */
25
- hiddenLabel: string;
26
- /** State class applied to the root element if `readOnly={true}`. */
27
- readOnly: string;
28
- /** Styles applied to the input element. */
29
- input: string;
30
- /** Styles applied to the input element if `size="small"`. */
31
- inputSizeSmall: string;
32
- /** Styles applied to the input element if `multiline={true}`. */
33
- inputMultiline: string;
34
- /** Styles applied to the input element if `type="search"`. */
35
- inputTypeSearch: string;
36
- /** Styles applied to the input element if `startAdornment` is provided. */
37
- inputAdornedStart: string;
38
- /** Styles applied to the input element if `endAdornment` is provided. */
39
- inputAdornedEnd: string;
40
- /** Styles applied to the input element if `hiddenLabel={true}`. */
41
- inputHiddenLabel: string;
42
- }
43
- export type InputBaseClassKey = keyof InputBaseClasses;
44
- export declare function getInputBaseUtilityClass(slot: string): string;
45
- declare const inputBaseClasses: InputBaseClasses;
46
- export default inputBaseClasses;
1
+ export interface InputBaseClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
+ formControl: string;
6
+ /** Styles applied to the root element if the component is focused. */
7
+ focused: string;
8
+ /** Styles applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if `startAdornment` is provided. */
11
+ adornedStart: string;
12
+ /** Styles applied to the root element if `endAdornment` is provided. */
13
+ adornedEnd: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ /** Styles applied to the input element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the root element if `multiline={true}`. */
19
+ multiline: string;
20
+ /** Styles applied to the root element if the color is secondary. */
21
+ colorSecondary: string;
22
+ /** Styles applied to the root element if `fullWidth={true}`. */
23
+ fullWidth: string;
24
+ /** Styles applied to the root element if `hiddenLabel={true}`. */
25
+ hiddenLabel: string;
26
+ /** State class applied to the root element if `readOnly={true}`. */
27
+ readOnly: string;
28
+ /** Styles applied to the input element. */
29
+ input: string;
30
+ /** Styles applied to the input element if `size="small"`. */
31
+ inputSizeSmall: string;
32
+ /** Styles applied to the input element if `multiline={true}`. */
33
+ inputMultiline: string;
34
+ /** Styles applied to the input element if `type="search"`. */
35
+ inputTypeSearch: string;
36
+ /** Styles applied to the input element if `startAdornment` is provided. */
37
+ inputAdornedStart: string;
38
+ /** Styles applied to the input element if `endAdornment` is provided. */
39
+ inputAdornedEnd: string;
40
+ /** Styles applied to the input element if `hiddenLabel={true}`. */
41
+ inputHiddenLabel: string;
42
+ }
43
+ export type InputBaseClassKey = keyof InputBaseClasses;
44
+ export declare function getInputBaseUtilityClass(slot: string): string;
45
+ declare const inputBaseClasses: InputBaseClasses;
46
+ export default inputBaseClasses;
@@ -9,10 +9,10 @@ import { OverridableComponent, OverrideProps } from '../OverridableComponent';
9
9
  export interface InputLabelPropsSizeOverrides {}
10
10
 
11
11
  export type InputLabelTypeMap<
12
- P = {},
13
- D extends React.ElementType = 'label',
12
+ AdditionalProps = {},
13
+ DefaultComponent extends React.ElementType = 'label',
14
14
  > = ExtendFormLabelTypeMap<{
15
- props: P & {
15
+ props: AdditionalProps & {
16
16
  /**
17
17
  * The content of the component.
18
18
  */
@@ -66,7 +66,7 @@ export type InputLabelTypeMap<
66
66
  */
67
67
  variant?: 'standard' | 'outlined' | 'filled';
68
68
  };
69
- defaultComponent: D;
69
+ defaultComponent: DefaultComponent;
70
70
  }>;
71
71
 
72
72
  /**
@@ -83,8 +83,10 @@ export type InputLabelTypeMap<
83
83
  declare const InputLabel: OverridableComponent<InputLabelTypeMap>;
84
84
 
85
85
  export type InputLabelProps<
86
- D extends React.ElementType = InputLabelTypeMap['defaultComponent'],
87
- P = {},
88
- > = OverrideProps<InputLabelTypeMap<P, D>, D>;
86
+ RootComponent extends React.ElementType = InputLabelTypeMap['defaultComponent'],
87
+ AdditionalProps = {},
88
+ > = OverrideProps<InputLabelTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
89
+ component?: React.ElementType;
90
+ };
89
91
 
90
92
  export default InputLabel;
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  const _excluded = ["disableAnimation", "margin", "shrink", "variant", "className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { unstable_composeClasses as composeClasses } from '@mui/base';
8
+ import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
9
  import clsx from 'clsx';
10
10
  import formControlState from '../FormControl/formControlState';
11
11
  import useFormControl from '../FormControl/useFormControl';
@@ -1,32 +1,32 @@
1
- export interface InputLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `focused={true}`. */
5
- focused: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** State class applied to the root element if `error={true}`. */
9
- error: string;
10
- /** State class applied to the root element if `required={true}`. */
11
- required: string;
12
- /** State class applied to the asterisk element. */
13
- asterisk: string;
14
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
15
- formControl: string;
16
- /** Styles applied to the root element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the input element if `shrink={true}`. */
19
- shrink: string;
20
- /** Styles applied to the input element unless `disableAnimation={true}`. */
21
- animated: string;
22
- /** Styles applied to the root element if `variant="filled"`. */
23
- filled: string;
24
- /** Styles applied to the root element if `variant="outlined"`. */
25
- outlined: string;
26
- /** Styles applied to the root element if `variant="standard"`. */
27
- standard: string;
28
- }
29
- export type InputLabelClassKey = keyof InputLabelClasses;
30
- export declare function getInputLabelUtilityClasses(slot: string): string;
31
- declare const inputLabelClasses: InputLabelClasses;
32
- export default inputLabelClasses;
1
+ export interface InputLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `focused={true}`. */
5
+ focused: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** State class applied to the root element if `error={true}`. */
9
+ error: string;
10
+ /** State class applied to the root element if `required={true}`. */
11
+ required: string;
12
+ /** State class applied to the asterisk element. */
13
+ asterisk: string;
14
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
15
+ formControl: string;
16
+ /** Styles applied to the root element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the input element if `shrink={true}`. */
19
+ shrink: string;
20
+ /** Styles applied to the input element unless `disableAnimation={true}`. */
21
+ animated: string;
22
+ /** Styles applied to the root element if `variant="filled"`. */
23
+ filled: string;
24
+ /** Styles applied to the root element if `variant="outlined"`. */
25
+ outlined: string;
26
+ /** Styles applied to the root element if `variant="standard"`. */
27
+ standard: string;
28
+ }
29
+ export type InputLabelClassKey = keyof InputLabelClasses;
30
+ export declare function getInputLabelUtilityClasses(slot: string): string;
31
+ declare const inputLabelClasses: InputLabelClasses;
32
+ export default inputLabelClasses;
@@ -13,7 +13,7 @@ let _ = t => t,
13
13
  import * as React from 'react';
14
14
  import PropTypes from 'prop-types';
15
15
  import clsx from 'clsx';
16
- import { unstable_composeClasses as composeClasses } from '@mui/base';
16
+ import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
17
17
  import { keyframes, css, darken, lighten } from '@mui/system';
18
18
  import capitalize from '../utils/capitalize';
19
19
  import useTheme from '../styles/useTheme';
@@ -1,42 +1,42 @@
1
- export interface LinearProgressClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
5
- colorPrimary: string;
6
- /** Styles applied to the root and bar2 elements if `color="secondary"`; bar2 if `variant="buffer"`. */
7
- colorSecondary: string;
8
- /** Styles applied to the root element if `variant="determinate"`. */
9
- determinate: string;
10
- /** Styles applied to the root element if `variant="indeterminate"`. */
11
- indeterminate: string;
12
- /** Styles applied to the root element if `variant="buffer"`. */
13
- buffer: string;
14
- /** Styles applied to the root element if `variant="query"`. */
15
- query: string;
16
- /** Styles applied to the additional bar element if `variant="buffer"`. */
17
- dashed: string;
18
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
19
- dashedColorPrimary: string;
20
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
21
- dashedColorSecondary: string;
22
- /** Styles applied to the layered bar1 and bar2 elements. */
23
- bar: string;
24
- /** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
25
- barColorPrimary: string;
26
- /** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
27
- barColorSecondary: string;
28
- /** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
29
- bar1Indeterminate: string;
30
- /** Styles applied to the bar1 element if `variant="determinate"`. */
31
- bar1Determinate: string;
32
- /** Styles applied to the bar1 element if `variant="buffer"`. */
33
- bar1Buffer: string;
34
- /** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
35
- bar2Indeterminate: string;
36
- /** Styles applied to the bar2 element if `variant="buffer"`. */
37
- bar2Buffer: string;
38
- }
39
- export type LinearProgressClassKey = keyof LinearProgressClasses;
40
- export declare function getLinearProgressUtilityClass(slot: string): string;
41
- declare const linearProgressClasses: LinearProgressClasses;
42
- export default linearProgressClasses;
1
+ export interface LinearProgressClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
5
+ colorPrimary: string;
6
+ /** Styles applied to the root and bar2 elements if `color="secondary"`; bar2 if `variant="buffer"`. */
7
+ colorSecondary: string;
8
+ /** Styles applied to the root element if `variant="determinate"`. */
9
+ determinate: string;
10
+ /** Styles applied to the root element if `variant="indeterminate"`. */
11
+ indeterminate: string;
12
+ /** Styles applied to the root element if `variant="buffer"`. */
13
+ buffer: string;
14
+ /** Styles applied to the root element if `variant="query"`. */
15
+ query: string;
16
+ /** Styles applied to the additional bar element if `variant="buffer"`. */
17
+ dashed: string;
18
+ /** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
19
+ dashedColorPrimary: string;
20
+ /** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
21
+ dashedColorSecondary: string;
22
+ /** Styles applied to the layered bar1 and bar2 elements. */
23
+ bar: string;
24
+ /** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
25
+ barColorPrimary: string;
26
+ /** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
27
+ barColorSecondary: string;
28
+ /** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
29
+ bar1Indeterminate: string;
30
+ /** Styles applied to the bar1 element if `variant="determinate"`. */
31
+ bar1Determinate: string;
32
+ /** Styles applied to the bar1 element if `variant="buffer"`. */
33
+ bar1Buffer: string;
34
+ /** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
35
+ bar2Indeterminate: string;
36
+ /** Styles applied to the bar2 element if `variant="buffer"`. */
37
+ bar2Buffer: string;
38
+ }
39
+ export type LinearProgressClassKey = keyof LinearProgressClasses;
40
+ export declare function getLinearProgressUtilityClass(slot: string): string;
41
+ declare const linearProgressClasses: LinearProgressClasses;
42
+ export default linearProgressClasses;
package/Link/Link.d.ts CHANGED
@@ -3,12 +3,15 @@ import { DistributiveOmit } from '@mui/types';
3
3
  import { SxProps } from '@mui/system';
4
4
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
5
5
  import { Theme } from '../styles';
6
- import { TypographyProps } from '../Typography';
6
+ import { TypographyOwnProps } from '../Typography';
7
7
  import { LinkClasses } from './linkClasses';
8
8
 
9
- export interface LinkTypeMap<P = {}, D extends React.ElementType = 'a'> {
10
- props: P &
11
- DistributiveOmit<LinkBaseProps, 'classes'> & {
9
+ export interface LinkTypeMap<
10
+ AdditionalProps = {},
11
+ DefaultComponent extends React.ElementType = 'a',
12
+ > {
13
+ props: AdditionalProps &
14
+ LinkBaseProps & {
12
15
  /**
13
16
  * The content of the component.
14
17
  */
@@ -21,7 +24,7 @@ export interface LinkTypeMap<P = {}, D extends React.ElementType = 'a'> {
21
24
  * The color of the link.
22
25
  * @default 'primary'
23
26
  */
24
- color?: TypographyProps['color'];
27
+ color?: TypographyOwnProps['color'];
25
28
  /**
26
29
  * The system prop that allows defining system overrides as well as additional CSS styles.
27
30
  */
@@ -29,7 +32,7 @@ export interface LinkTypeMap<P = {}, D extends React.ElementType = 'a'> {
29
32
  /**
30
33
  * `classes` prop applied to the [`Typography`](/material-ui/api/typography/) element.
31
34
  */
32
- TypographyClasses?: TypographyProps['classes'];
35
+ TypographyClasses?: TypographyOwnProps['classes'];
33
36
  /**
34
37
  * Controls when the link should have an underline.
35
38
  * @default 'always'
@@ -39,9 +42,9 @@ export interface LinkTypeMap<P = {}, D extends React.ElementType = 'a'> {
39
42
  * Applies the theme typography styles.
40
43
  * @default 'inherit'
41
44
  */
42
- variant?: TypographyProps['variant'];
45
+ variant?: TypographyOwnProps['variant'];
43
46
  };
44
- defaultComponent: D;
47
+ defaultComponent: DefaultComponent;
45
48
  }
46
49
 
47
50
  /**
@@ -58,12 +61,16 @@ export interface LinkTypeMap<P = {}, D extends React.ElementType = 'a'> {
58
61
  */
59
62
  declare const Link: OverridableComponent<LinkTypeMap>;
60
63
 
61
- export type LinkBaseProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> &
62
- DistributiveOmit<TypographyProps, 'children' | 'component' | 'color' | 'ref' | 'variant'>;
64
+ export type LinkBaseProps = DistributiveOmit<
65
+ TypographyOwnProps,
66
+ 'children' | 'color' | 'variant' | 'classes'
67
+ >;
63
68
 
64
69
  export type LinkProps<
65
- D extends React.ElementType = LinkTypeMap['defaultComponent'],
66
- P = {},
67
- > = OverrideProps<LinkTypeMap<P, D>, D>;
70
+ RootComponent extends React.ElementType = LinkTypeMap['defaultComponent'],
71
+ AdditionalProps = {},
72
+ > = OverrideProps<LinkTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
73
+ component?: React.ElementType;
74
+ };
68
75
 
69
76
  export default Link;
package/Link/Link.js CHANGED
@@ -7,7 +7,7 @@ import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import { elementTypeAcceptingRef } from '@mui/utils';
10
- import { unstable_composeClasses as composeClasses } from '@mui/base';
10
+ import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
11
11
  import capitalize from '../utils/capitalize';
12
12
  import styled from '../styles/styled';
13
13
  import useThemeProps from '../styles/useThemeProps';
@@ -1,15 +1,15 @@
1
- import type { Theme } from '../styles';
2
- export declare const colorTransformations: {
3
- primary: string;
4
- textPrimary: string;
5
- secondary: string;
6
- textSecondary: string;
7
- error: string;
8
- };
9
- declare const getTextDecoration: <T extends Theme>({ theme, ownerState, }: {
10
- theme: T;
11
- ownerState: {
12
- color: string;
13
- };
14
- }) => string;
15
- export default getTextDecoration;
1
+ import type { Theme } from '../styles';
2
+ export declare const colorTransformations: {
3
+ primary: string;
4
+ textPrimary: string;
5
+ secondary: string;
6
+ textSecondary: string;
7
+ error: string;
8
+ };
9
+ declare const getTextDecoration: <T extends Theme>({ theme, ownerState, }: {
10
+ theme: T;
11
+ ownerState: {
12
+ color: string;
13
+ };
14
+ }) => string;
15
+ export default getTextDecoration;
@@ -1,18 +1,18 @@
1
- export interface LinkClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `underline="none"`. */
5
- underlineNone: string;
6
- /** Styles applied to the root element if `underline="hover"`. */
7
- underlineHover: string;
8
- /** Styles applied to the root element if `underline="always"`. */
9
- underlineAlways: string;
10
- /** Styles applied to the root element if `component="button"`. */
11
- button: string;
12
- /** State class applied to the root element if the link is keyboard focused. */
13
- focusVisible: string;
14
- }
15
- export type LinkClassKey = keyof LinkClasses;
16
- export declare function getLinkUtilityClass(slot: string): string;
17
- declare const linkClasses: LinkClasses;
18
- export default linkClasses;
1
+ export interface LinkClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `underline="none"`. */
5
+ underlineNone: string;
6
+ /** Styles applied to the root element if `underline="hover"`. */
7
+ underlineHover: string;
8
+ /** Styles applied to the root element if `underline="always"`. */
9
+ underlineAlways: string;
10
+ /** Styles applied to the root element if `component="button"`. */
11
+ button: string;
12
+ /** State class applied to the root element if the link is keyboard focused. */
13
+ focusVisible: string;
14
+ }
15
+ export type LinkClassKey = keyof LinkClasses;
16
+ export declare function getLinkUtilityClass(slot: string): string;
17
+ declare const linkClasses: LinkClasses;
18
+ export default linkClasses;
package/List/List.d.ts CHANGED
@@ -4,8 +4,11 @@ import { Theme } from '..';
4
4
  import { OverridableComponent, OverridableTypeMap, OverrideProps } from '../OverridableComponent';
5
5
  import { ListClasses } from './listClasses';
6
6
 
7
- export interface ListTypeMap<P = {}, D extends React.ElementType = 'ul'> {
8
- props: P & {
7
+ export interface ListTypeMap<
8
+ AdditionalProps = {},
9
+ DefaultComponent extends React.ElementType = 'ul',
10
+ > {
11
+ props: AdditionalProps & {
9
12
  /**
10
13
  * The content of the component.
11
14
  */
@@ -35,18 +38,20 @@ export interface ListTypeMap<P = {}, D extends React.ElementType = 'ul'> {
35
38
  */
36
39
  sx?: SxProps<Theme>;
37
40
  };
38
- defaultComponent: D;
41
+ defaultComponent: DefaultComponent;
39
42
  }
40
43
 
41
44
  /**
42
45
  * utility to create component types that inherit props from List.
43
46
  */
44
- export interface ExtendListTypeMap<M extends OverridableTypeMap> {
45
- props: M['props'] & ListTypeMap['props'];
46
- defaultComponent: M['defaultComponent'];
47
+ export interface ExtendListTypeMap<TypeMap extends OverridableTypeMap> {
48
+ props: TypeMap['props'] & ListTypeMap['props'];
49
+ defaultComponent: TypeMap['defaultComponent'];
47
50
  }
48
51
 
49
- export type ExtendList<M extends OverridableTypeMap> = OverridableComponent<ExtendListTypeMap<M>>;
52
+ export type ExtendList<TypeMap extends OverridableTypeMap> = OverridableComponent<
53
+ ExtendListTypeMap<TypeMap>
54
+ >;
50
55
 
51
56
  /**
52
57
  *
@@ -62,8 +67,10 @@ export type ExtendList<M extends OverridableTypeMap> = OverridableComponent<Exte
62
67
  declare const List: ExtendList<ListTypeMap>;
63
68
 
64
69
  export type ListProps<
65
- D extends React.ElementType = ListTypeMap['defaultComponent'],
66
- P = {},
67
- > = OverrideProps<ListTypeMap<P, D>, D>;
70
+ RootComponent extends React.ElementType = ListTypeMap['defaultComponent'],
71
+ AdditionalProps = {},
72
+ > = OverrideProps<ListTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
73
+ component?: React.ElementType;
74
+ };
68
75
 
69
76
  export default List;
package/List/List.js CHANGED
@@ -6,7 +6,7 @@ const _excluded = ["children", "className", "component", "dense", "disablePaddin
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base';
9
+ import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import ListContext from './ListContext';
@@ -1,14 +1,14 @@
1
- export interface ListClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `disablePadding={true}`. */
5
- padding: string;
6
- /** Styles applied to the root element if dense. */
7
- dense: string;
8
- /** Styles applied to the root element if a `subheader` is provided. */
9
- subheader: string;
10
- }
11
- export type ListClassKey = keyof ListClasses;
12
- export declare function getListUtilityClass(slot: string): string;
13
- declare const listClasses: ListClasses;
14
- export default listClasses;
1
+ export interface ListClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `disablePadding={true}`. */
5
+ padding: string;
6
+ /** Styles applied to the root element if dense. */
7
+ dense: string;
8
+ /** Styles applied to the root element if a `subheader` is provided. */
9
+ subheader: string;
10
+ }
11
+ export type ListClassKey = keyof ListClasses;
12
+ export declare function getListUtilityClass(slot: string): string;
13
+ declare const listClasses: ListClasses;
14
+ export default listClasses;
@@ -84,8 +84,8 @@ export interface ListItemBaseProps {
84
84
  sx?: SxProps<Theme>;
85
85
  }
86
86
 
87
- export interface ListItemTypeMap<P, D extends React.ElementType> {
88
- props: P &
87
+ export interface ListItemTypeMap<AdditionalProps, DefaultComponent extends React.ElementType> {
88
+ props: AdditionalProps &
89
89
  ListItemBaseProps & {
90
90
  /**
91
91
  * The components used for each slot inside.
@@ -132,7 +132,7 @@ export interface ListItemTypeMap<P, D extends React.ElementType> {
132
132
  root?: React.ElementType;
133
133
  };
134
134
  };
135
- defaultComponent: D;
135
+ defaultComponent: DefaultComponent;
136
136
  }
137
137
 
138
138
  /**
@@ -177,9 +177,11 @@ declare const ListItem: ExtendButtonBase<
177
177
  >
178
178
  >;
179
179
 
180
- export type ListItemProps<D extends React.ElementType = 'li', P = {}> = OverrideProps<
181
- ListItemTypeMap<P, D>,
182
- D
183
- >;
180
+ export type ListItemProps<
181
+ RootComponent extends React.ElementType = 'li',
182
+ AdditionalProps = {},
183
+ > = OverrideProps<ListItemTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
184
+ component?: React.ElementType;
185
+ };
184
186
 
185
187
  export default ListItem;