@mui/material 6.0.0-alpha.6 → 6.0.0-alpha.8

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 (462) hide show
  1. package/Accordion/Accordion.js +33 -33
  2. package/AccordionActions/AccordionActions.js +11 -12
  3. package/AccordionDetails/AccordionDetails.js +7 -9
  4. package/AccordionSummary/AccordionSummary.js +14 -16
  5. package/Alert/Alert.js +56 -51
  6. package/AlertTitle/AlertTitle.js +7 -9
  7. package/AppBar/AppBar.js +34 -32
  8. package/Autocomplete/Autocomplete.d.ts +78 -12
  9. package/Autocomplete/Autocomplete.js +251 -162
  10. package/Avatar/Avatar.js +41 -35
  11. package/AvatarGroup/AvatarGroup.js +31 -31
  12. package/Backdrop/Backdrop.js +33 -30
  13. package/Badge/Badge.js +31 -30
  14. package/BottomNavigation/BottomNavigation.js +15 -17
  15. package/BottomNavigationAction/BottomNavigationAction.js +15 -18
  16. package/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  17. package/Breadcrumbs/Breadcrumbs.js +19 -21
  18. package/Button/Button.js +32 -29
  19. package/ButtonBase/ButtonBase.js +43 -42
  20. package/ButtonBase/TouchRipple.js +9 -12
  21. package/ButtonGroup/ButtonGroup.js +23 -25
  22. package/CHANGELOG.md +84 -2
  23. package/Card/Card.js +11 -12
  24. package/CardActionArea/CardActionArea.js +9 -12
  25. package/CardActions/CardActions.js +11 -12
  26. package/CardContent/CardContent.js +11 -12
  27. package/CardHeader/CardHeader.js +30 -31
  28. package/CardMedia/CardMedia.js +19 -20
  29. package/Checkbox/Checkbox.js +29 -26
  30. package/Chip/Chip.js +38 -37
  31. package/CircularProgress/CircularProgress.js +24 -23
  32. package/CircularProgress/circularProgressClasses.d.ts +6 -2
  33. package/Collapse/Collapse.js +44 -42
  34. package/CssBaseline/CssBaseline.js +17 -14
  35. package/Dialog/Dialog.js +41 -42
  36. package/DialogActions/DialogActions.js +11 -12
  37. package/DialogContent/DialogContent.js +11 -12
  38. package/DialogContentText/DialogContentText.js +13 -11
  39. package/DialogTitle/DialogTitle.js +8 -10
  40. package/Divider/Divider.js +19 -21
  41. package/Drawer/Drawer.js +50 -49
  42. package/Fab/Fab.js +26 -23
  43. package/Fade/Fade.js +31 -30
  44. package/FilledInput/FilledInput.js +48 -44
  45. package/FilledInput/filledInputClasses.js +4 -2
  46. package/FormControl/FormControl.js +27 -25
  47. package/FormControlLabel/FormControlLabel.js +32 -26
  48. package/FormGroup/FormGroup.js +11 -12
  49. package/FormHelperText/FormHelperText.js +26 -18
  50. package/FormLabel/FormLabel.js +27 -19
  51. package/GlobalStyles/GlobalStyles.js +3 -3
  52. package/Grid/Grid.js +49 -41
  53. package/Grow/Grow.js +31 -30
  54. package/Hidden/Hidden.js +21 -22
  55. package/Hidden/HiddenCss.js +29 -29
  56. package/Hidden/withWidth.js +19 -19
  57. package/Icon/Icon.js +15 -16
  58. package/IconButton/IconButton.js +18 -20
  59. package/ImageList/ImageList.js +24 -24
  60. package/ImageListItem/ImageListItem.js +19 -20
  61. package/ImageListItemBar/ImageListItemBar.js +15 -17
  62. package/Input/Input.js +21 -20
  63. package/Input/inputClasses.js +4 -2
  64. package/InputAdornment/InputAdornment.js +16 -18
  65. package/InputBase/InputBase.js +90 -73
  66. package/InputLabel/InputLabel.js +20 -16
  67. package/LinearProgress/LinearProgress.js +21 -23
  68. package/Link/Link.js +27 -26
  69. package/List/List.js +15 -17
  70. package/ListItem/ListItem.js +58 -49
  71. package/ListItemAvatar/ListItemAvatar.js +10 -11
  72. package/ListItemButton/ListItemButton.js +23 -22
  73. package/ListItemIcon/ListItemIcon.js +10 -11
  74. package/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  75. package/ListItemText/ListItemText.js +25 -27
  76. package/ListSubheader/ListSubheader.js +15 -16
  77. package/Menu/Menu.js +34 -36
  78. package/MenuItem/MenuItem.js +28 -26
  79. package/MenuList/MenuList.js +17 -20
  80. package/MobileStepper/MobileStepper.js +21 -22
  81. package/Modal/Modal.js +47 -38
  82. package/NativeSelect/NativeSelect.js +26 -22
  83. package/NativeSelect/NativeSelectInput.js +15 -16
  84. package/OutlinedInput/NotchedOutline.js +14 -14
  85. package/OutlinedInput/OutlinedInput.js +46 -42
  86. package/OutlinedInput/outlinedInputClasses.js +4 -2
  87. package/Pagination/Pagination.js +36 -32
  88. package/PaginationItem/PaginationItem.js +31 -30
  89. package/Paper/Paper.js +26 -23
  90. package/Popover/Popover.js +71 -71
  91. package/Popper/Popper.js +25 -27
  92. package/Radio/Radio.js +24 -22
  93. package/Radio/RadioButtonIcon.js +3 -3
  94. package/RadioGroup/RadioGroup.js +15 -18
  95. package/Rating/Rating.js +54 -47
  96. package/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  97. package/Select/Select.js +63 -57
  98. package/Select/SelectInput.js +64 -59
  99. package/Skeleton/Skeleton.js +20 -21
  100. package/Slide/Slide.js +37 -33
  101. package/Slider/Slider.js +155 -106
  102. package/Snackbar/Snackbar.js +52 -45
  103. package/SnackbarContent/SnackbarContent.js +13 -15
  104. package/SpeedDial/SpeedDial.js +59 -60
  105. package/SpeedDialAction/SpeedDialAction.js +34 -33
  106. package/SpeedDialIcon/SpeedDialIcon.js +10 -12
  107. package/Step/Step.js +18 -20
  108. package/StepButton/StepButton.js +16 -17
  109. package/StepConnector/StepConnector.js +10 -12
  110. package/StepContent/StepContent.js +18 -20
  111. package/StepIcon/StepIcon.js +22 -22
  112. package/StepLabel/StepLabel.js +33 -30
  113. package/Stepper/Stepper.js +21 -22
  114. package/SvgIcon/SvgIcon.js +21 -21
  115. package/SwipeableDrawer/SwipeArea.js +15 -16
  116. package/SwipeableDrawer/SwipeableDrawer.js +49 -43
  117. package/Switch/Switch.js +23 -20
  118. package/Tab/Tab.js +32 -33
  119. package/TabScrollButton/TabScrollButton.js +27 -21
  120. package/Table/Table.js +17 -17
  121. package/TableBody/TableBody.js +11 -12
  122. package/TableCell/TableCell.js +19 -19
  123. package/TableContainer/TableContainer.js +11 -12
  124. package/TableFooter/TableFooter.js +11 -12
  125. package/TableHead/TableHead.js +11 -12
  126. package/TablePagination/TablePagination.js +56 -52
  127. package/TablePagination/TablePaginationActions.js +51 -38
  128. package/TableRow/TableRow.js +13 -14
  129. package/TableSortLabel/TableSortLabel.js +15 -17
  130. package/Tabs/ScrollbarSize.js +7 -9
  131. package/Tabs/Tabs.js +52 -49
  132. package/TextField/TextField.d.ts +58 -3
  133. package/TextField/TextField.js +137 -67
  134. package/ToggleButton/ToggleButton.js +30 -32
  135. package/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  136. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -0
  137. package/Toolbar/Toolbar.js +13 -14
  138. package/Tooltip/Tooltip.js +75 -60
  139. package/Typography/Typography.js +37 -35
  140. package/Zoom/Zoom.js +31 -30
  141. package/index.js +1 -1
  142. package/internal/SwitchBase.js +37 -37
  143. package/modern/Accordion/Accordion.js +33 -33
  144. package/modern/AccordionActions/AccordionActions.js +11 -12
  145. package/modern/AccordionDetails/AccordionDetails.js +7 -9
  146. package/modern/AccordionSummary/AccordionSummary.js +14 -16
  147. package/modern/Alert/Alert.js +56 -51
  148. package/modern/AlertTitle/AlertTitle.js +7 -9
  149. package/modern/AppBar/AppBar.js +34 -32
  150. package/modern/Autocomplete/Autocomplete.js +251 -162
  151. package/modern/Avatar/Avatar.js +41 -35
  152. package/modern/AvatarGroup/AvatarGroup.js +31 -31
  153. package/modern/Backdrop/Backdrop.js +33 -30
  154. package/modern/Badge/Badge.js +31 -30
  155. package/modern/BottomNavigation/BottomNavigation.js +15 -17
  156. package/modern/BottomNavigationAction/BottomNavigationAction.js +15 -18
  157. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  158. package/modern/Breadcrumbs/Breadcrumbs.js +19 -21
  159. package/modern/Button/Button.js +32 -29
  160. package/modern/ButtonBase/ButtonBase.js +43 -42
  161. package/modern/ButtonBase/TouchRipple.js +9 -12
  162. package/modern/ButtonGroup/ButtonGroup.js +23 -25
  163. package/modern/Card/Card.js +11 -12
  164. package/modern/CardActionArea/CardActionArea.js +9 -12
  165. package/modern/CardActions/CardActions.js +11 -12
  166. package/modern/CardContent/CardContent.js +11 -12
  167. package/modern/CardHeader/CardHeader.js +30 -31
  168. package/modern/CardMedia/CardMedia.js +19 -20
  169. package/modern/Checkbox/Checkbox.js +29 -26
  170. package/modern/Chip/Chip.js +38 -37
  171. package/modern/CircularProgress/CircularProgress.js +24 -23
  172. package/modern/Collapse/Collapse.js +44 -42
  173. package/modern/CssBaseline/CssBaseline.js +17 -14
  174. package/modern/Dialog/Dialog.js +41 -42
  175. package/modern/DialogActions/DialogActions.js +11 -12
  176. package/modern/DialogContent/DialogContent.js +11 -12
  177. package/modern/DialogContentText/DialogContentText.js +13 -11
  178. package/modern/DialogTitle/DialogTitle.js +8 -10
  179. package/modern/Divider/Divider.js +19 -21
  180. package/modern/Drawer/Drawer.js +50 -49
  181. package/modern/Fab/Fab.js +26 -23
  182. package/modern/Fade/Fade.js +31 -30
  183. package/modern/FilledInput/FilledInput.js +48 -44
  184. package/modern/FilledInput/filledInputClasses.js +4 -2
  185. package/modern/FormControl/FormControl.js +27 -25
  186. package/modern/FormControlLabel/FormControlLabel.js +32 -26
  187. package/modern/FormGroup/FormGroup.js +11 -12
  188. package/modern/FormHelperText/FormHelperText.js +26 -18
  189. package/modern/FormLabel/FormLabel.js +27 -19
  190. package/modern/GlobalStyles/GlobalStyles.js +3 -3
  191. package/modern/Grid/Grid.js +49 -41
  192. package/modern/Grow/Grow.js +31 -30
  193. package/modern/Hidden/Hidden.js +21 -22
  194. package/modern/Hidden/HiddenCss.js +29 -29
  195. package/modern/Hidden/withWidth.js +19 -19
  196. package/modern/Icon/Icon.js +15 -16
  197. package/modern/IconButton/IconButton.js +18 -20
  198. package/modern/ImageList/ImageList.js +24 -24
  199. package/modern/ImageListItem/ImageListItem.js +19 -20
  200. package/modern/ImageListItemBar/ImageListItemBar.js +15 -17
  201. package/modern/Input/Input.js +21 -20
  202. package/modern/Input/inputClasses.js +4 -2
  203. package/modern/InputAdornment/InputAdornment.js +16 -18
  204. package/modern/InputBase/InputBase.js +90 -73
  205. package/modern/InputLabel/InputLabel.js +20 -16
  206. package/modern/LinearProgress/LinearProgress.js +21 -23
  207. package/modern/Link/Link.js +27 -26
  208. package/modern/List/List.js +15 -17
  209. package/modern/ListItem/ListItem.js +58 -49
  210. package/modern/ListItemAvatar/ListItemAvatar.js +10 -11
  211. package/modern/ListItemButton/ListItemButton.js +23 -22
  212. package/modern/ListItemIcon/ListItemIcon.js +10 -11
  213. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  214. package/modern/ListItemText/ListItemText.js +25 -27
  215. package/modern/ListSubheader/ListSubheader.js +15 -16
  216. package/modern/Menu/Menu.js +34 -36
  217. package/modern/MenuItem/MenuItem.js +28 -26
  218. package/modern/MenuList/MenuList.js +17 -20
  219. package/modern/MobileStepper/MobileStepper.js +21 -22
  220. package/modern/Modal/Modal.js +47 -38
  221. package/modern/NativeSelect/NativeSelect.js +26 -22
  222. package/modern/NativeSelect/NativeSelectInput.js +15 -16
  223. package/modern/OutlinedInput/NotchedOutline.js +14 -14
  224. package/modern/OutlinedInput/OutlinedInput.js +46 -42
  225. package/modern/OutlinedInput/outlinedInputClasses.js +4 -2
  226. package/modern/Pagination/Pagination.js +36 -32
  227. package/modern/PaginationItem/PaginationItem.js +31 -30
  228. package/modern/Paper/Paper.js +26 -23
  229. package/modern/Popover/Popover.js +71 -71
  230. package/modern/Popper/Popper.js +25 -27
  231. package/modern/Radio/Radio.js +24 -22
  232. package/modern/Radio/RadioButtonIcon.js +3 -3
  233. package/modern/RadioGroup/RadioGroup.js +15 -18
  234. package/modern/Rating/Rating.js +54 -47
  235. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  236. package/modern/Select/Select.js +63 -57
  237. package/modern/Select/SelectInput.js +64 -59
  238. package/modern/Skeleton/Skeleton.js +20 -21
  239. package/modern/Slide/Slide.js +37 -33
  240. package/modern/Slider/Slider.js +155 -106
  241. package/modern/Snackbar/Snackbar.js +52 -45
  242. package/modern/SnackbarContent/SnackbarContent.js +13 -15
  243. package/modern/SpeedDial/SpeedDial.js +59 -60
  244. package/modern/SpeedDialAction/SpeedDialAction.js +34 -33
  245. package/modern/SpeedDialIcon/SpeedDialIcon.js +10 -12
  246. package/modern/Step/Step.js +18 -20
  247. package/modern/StepButton/StepButton.js +16 -17
  248. package/modern/StepConnector/StepConnector.js +10 -12
  249. package/modern/StepContent/StepContent.js +18 -20
  250. package/modern/StepIcon/StepIcon.js +22 -22
  251. package/modern/StepLabel/StepLabel.js +33 -30
  252. package/modern/Stepper/Stepper.js +21 -22
  253. package/modern/SvgIcon/SvgIcon.js +21 -21
  254. package/modern/SwipeableDrawer/SwipeArea.js +15 -16
  255. package/modern/SwipeableDrawer/SwipeableDrawer.js +49 -43
  256. package/modern/Switch/Switch.js +23 -20
  257. package/modern/Tab/Tab.js +32 -33
  258. package/modern/TabScrollButton/TabScrollButton.js +27 -21
  259. package/modern/Table/Table.js +17 -17
  260. package/modern/TableBody/TableBody.js +11 -12
  261. package/modern/TableCell/TableCell.js +19 -19
  262. package/modern/TableContainer/TableContainer.js +11 -12
  263. package/modern/TableFooter/TableFooter.js +11 -12
  264. package/modern/TableHead/TableHead.js +11 -12
  265. package/modern/TablePagination/TablePagination.js +56 -52
  266. package/modern/TablePagination/TablePaginationActions.js +51 -38
  267. package/modern/TableRow/TableRow.js +13 -14
  268. package/modern/TableSortLabel/TableSortLabel.js +15 -17
  269. package/modern/Tabs/ScrollbarSize.js +7 -9
  270. package/modern/Tabs/Tabs.js +52 -49
  271. package/modern/TextField/TextField.js +137 -67
  272. package/modern/ToggleButton/ToggleButton.js +30 -32
  273. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  274. package/modern/Toolbar/Toolbar.js +13 -14
  275. package/modern/Tooltip/Tooltip.js +75 -60
  276. package/modern/Typography/Typography.js +37 -35
  277. package/modern/Zoom/Zoom.js +31 -30
  278. package/modern/index.js +1 -1
  279. package/modern/internal/SwitchBase.js +37 -37
  280. package/modern/styles/CssVarsProvider.js +3 -3
  281. package/modern/styles/ThemeProvider.js +7 -10
  282. package/modern/styles/adaptV4Theme.js +31 -31
  283. package/modern/styles/createMixins.js +4 -4
  284. package/modern/styles/createPalette.js +16 -13
  285. package/modern/styles/createTheme.js +16 -11
  286. package/modern/styles/createTransitions.js +17 -14
  287. package/modern/styles/createTypography.js +31 -29
  288. package/modern/styles/experimental_extendTheme.js +47 -37
  289. package/modern/styles/responsiveFontSizes.js +17 -11
  290. package/modern/usePagination/usePagination.js +18 -20
  291. package/modern/useScrollTrigger/useScrollTrigger.js +8 -10
  292. package/modern/utils/createSvgIcon.js +4 -5
  293. package/modern/utils/useSlot.js +41 -40
  294. package/node/Accordion/Accordion.js +33 -33
  295. package/node/AccordionActions/AccordionActions.js +11 -12
  296. package/node/AccordionDetails/AccordionDetails.js +7 -9
  297. package/node/AccordionSummary/AccordionSummary.js +14 -16
  298. package/node/Alert/Alert.js +56 -51
  299. package/node/AlertTitle/AlertTitle.js +7 -9
  300. package/node/AppBar/AppBar.js +125 -129
  301. package/node/Autocomplete/Autocomplete.js +252 -164
  302. package/node/Avatar/Avatar.js +41 -35
  303. package/node/AvatarGroup/AvatarGroup.js +31 -31
  304. package/node/Backdrop/Backdrop.js +33 -30
  305. package/node/Badge/Badge.js +179 -184
  306. package/node/BottomNavigation/BottomNavigation.js +15 -17
  307. package/node/BottomNavigationAction/BottomNavigationAction.js +15 -18
  308. package/node/Breadcrumbs/BreadcrumbCollapsed.js +35 -34
  309. package/node/Breadcrumbs/Breadcrumbs.js +19 -21
  310. package/node/Button/Button.js +32 -29
  311. package/node/ButtonBase/ButtonBase.js +43 -42
  312. package/node/ButtonBase/TouchRipple.js +9 -12
  313. package/node/ButtonGroup/ButtonGroup.js +23 -25
  314. package/node/Card/Card.js +11 -12
  315. package/node/CardActionArea/CardActionArea.js +9 -12
  316. package/node/CardActions/CardActions.js +11 -12
  317. package/node/CardContent/CardContent.js +11 -12
  318. package/node/CardHeader/CardHeader.js +30 -31
  319. package/node/CardMedia/CardMedia.js +19 -20
  320. package/node/Checkbox/Checkbox.js +29 -26
  321. package/node/Chip/Chip.js +38 -37
  322. package/node/CircularProgress/CircularProgress.js +24 -23
  323. package/node/Collapse/Collapse.js +44 -42
  324. package/node/CssBaseline/CssBaseline.js +17 -14
  325. package/node/Dialog/Dialog.js +41 -42
  326. package/node/DialogActions/DialogActions.js +11 -12
  327. package/node/DialogContent/DialogContent.js +11 -12
  328. package/node/DialogContentText/DialogContentText.js +13 -11
  329. package/node/DialogTitle/DialogTitle.js +8 -10
  330. package/node/Divider/Divider.js +19 -21
  331. package/node/Drawer/Drawer.js +50 -49
  332. package/node/Fab/Fab.js +27 -24
  333. package/node/Fade/Fade.js +31 -30
  334. package/node/FilledInput/FilledInput.js +48 -44
  335. package/node/FilledInput/filledInputClasses.js +4 -2
  336. package/node/FormControl/FormControl.js +27 -25
  337. package/node/FormControlLabel/FormControlLabel.js +32 -26
  338. package/node/FormGroup/FormGroup.js +11 -12
  339. package/node/FormHelperText/FormHelperText.js +26 -18
  340. package/node/FormLabel/FormLabel.js +27 -19
  341. package/node/GlobalStyles/GlobalStyles.js +3 -3
  342. package/node/Grid/Grid.js +49 -41
  343. package/node/Grow/Grow.js +31 -30
  344. package/node/Hidden/Hidden.js +24 -26
  345. package/node/Hidden/HiddenCss.js +29 -29
  346. package/node/Hidden/withWidth.js +19 -19
  347. package/node/Icon/Icon.js +15 -16
  348. package/node/IconButton/IconButton.js +18 -20
  349. package/node/ImageList/ImageList.js +24 -24
  350. package/node/ImageListItem/ImageListItem.js +19 -20
  351. package/node/ImageListItemBar/ImageListItemBar.js +15 -17
  352. package/node/Input/Input.js +21 -20
  353. package/node/Input/inputClasses.js +4 -2
  354. package/node/InputAdornment/InputAdornment.js +16 -18
  355. package/node/InputBase/InputBase.js +90 -73
  356. package/node/InputLabel/InputLabel.js +20 -16
  357. package/node/LinearProgress/LinearProgress.js +21 -23
  358. package/node/Link/Link.js +27 -26
  359. package/node/List/List.js +15 -17
  360. package/node/ListItem/ListItem.js +58 -49
  361. package/node/ListItemAvatar/ListItemAvatar.js +10 -11
  362. package/node/ListItemButton/ListItemButton.js +23 -22
  363. package/node/ListItemIcon/ListItemIcon.js +10 -11
  364. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +10 -11
  365. package/node/ListItemText/ListItemText.js +25 -27
  366. package/node/ListSubheader/ListSubheader.js +15 -16
  367. package/node/Menu/Menu.js +34 -36
  368. package/node/MenuItem/MenuItem.js +28 -26
  369. package/node/MenuList/MenuList.js +17 -20
  370. package/node/MobileStepper/MobileStepper.js +21 -22
  371. package/node/Modal/Modal.js +47 -38
  372. package/node/NativeSelect/NativeSelect.js +26 -22
  373. package/node/NativeSelect/NativeSelectInput.js +15 -16
  374. package/node/OutlinedInput/NotchedOutline.js +14 -14
  375. package/node/OutlinedInput/OutlinedInput.js +46 -42
  376. package/node/OutlinedInput/outlinedInputClasses.js +4 -2
  377. package/node/Pagination/Pagination.js +36 -32
  378. package/node/PaginationItem/PaginationItem.js +31 -30
  379. package/node/Paper/Paper.js +26 -23
  380. package/node/Popover/Popover.js +71 -71
  381. package/node/Popper/Popper.js +25 -27
  382. package/node/Radio/Radio.js +24 -22
  383. package/node/Radio/RadioButtonIcon.js +3 -3
  384. package/node/RadioGroup/RadioGroup.js +15 -18
  385. package/node/Rating/Rating.js +54 -47
  386. package/node/ScopedCssBaseline/ScopedCssBaseline.js +18 -15
  387. package/node/Select/Select.js +63 -57
  388. package/node/Select/SelectInput.js +64 -59
  389. package/node/Skeleton/Skeleton.js +20 -21
  390. package/node/Slide/Slide.js +39 -34
  391. package/node/Slider/Slider.js +298 -265
  392. package/node/Snackbar/Snackbar.js +52 -45
  393. package/node/SnackbarContent/SnackbarContent.js +13 -15
  394. package/node/SpeedDial/SpeedDial.js +59 -60
  395. package/node/SpeedDialAction/SpeedDialAction.js +34 -33
  396. package/node/SpeedDialIcon/SpeedDialIcon.js +10 -12
  397. package/node/Step/Step.js +18 -20
  398. package/node/StepButton/StepButton.js +16 -17
  399. package/node/StepConnector/StepConnector.js +10 -12
  400. package/node/StepContent/StepContent.js +18 -20
  401. package/node/StepIcon/StepIcon.js +22 -22
  402. package/node/StepLabel/StepLabel.js +33 -30
  403. package/node/Stepper/Stepper.js +21 -22
  404. package/node/SvgIcon/SvgIcon.js +21 -21
  405. package/node/SwipeableDrawer/SwipeArea.js +15 -16
  406. package/node/SwipeableDrawer/SwipeableDrawer.js +51 -44
  407. package/node/Switch/Switch.js +23 -20
  408. package/node/Tab/Tab.js +32 -33
  409. package/node/TabScrollButton/TabScrollButton.js +27 -21
  410. package/node/Table/Table.js +17 -17
  411. package/node/TableBody/TableBody.js +11 -12
  412. package/node/TableCell/TableCell.js +19 -19
  413. package/node/TableContainer/TableContainer.js +11 -12
  414. package/node/TableFooter/TableFooter.js +11 -12
  415. package/node/TableHead/TableHead.js +11 -12
  416. package/node/TablePagination/TablePagination.js +56 -52
  417. package/node/TablePagination/TablePaginationActions.js +54 -42
  418. package/node/TableRow/TableRow.js +13 -14
  419. package/node/TableSortLabel/TableSortLabel.js +15 -17
  420. package/node/Tabs/ScrollbarSize.js +7 -9
  421. package/node/Tabs/Tabs.js +52 -49
  422. package/node/TextField/TextField.js +137 -67
  423. package/node/ToggleButton/ToggleButton.js +30 -32
  424. package/node/ToggleButtonGroup/ToggleButtonGroup.js +19 -21
  425. package/node/Toolbar/Toolbar.js +13 -14
  426. package/node/Tooltip/Tooltip.js +75 -60
  427. package/node/Typography/Typography.js +37 -35
  428. package/node/Zoom/Zoom.js +31 -30
  429. package/node/index.js +1 -1
  430. package/node/internal/SwitchBase.js +37 -37
  431. package/node/styles/CssVarsProvider.js +3 -3
  432. package/node/styles/ThemeProvider.js +7 -10
  433. package/node/styles/adaptV4Theme.js +31 -32
  434. package/node/styles/createMixins.js +4 -5
  435. package/node/styles/createPalette.js +16 -13
  436. package/node/styles/createTheme.js +16 -11
  437. package/node/styles/createTransitions.js +17 -15
  438. package/node/styles/createTypography.js +31 -29
  439. package/node/styles/experimental_extendTheme.js +47 -37
  440. package/node/styles/responsiveFontSizes.js +17 -11
  441. package/node/usePagination/usePagination.js +18 -20
  442. package/node/useScrollTrigger/useScrollTrigger.js +8 -11
  443. package/node/utils/createSvgIcon.js +4 -5
  444. package/node/utils/useSlot.js +41 -40
  445. package/package.json +6 -6
  446. package/styles/CssVarsProvider.js +3 -3
  447. package/styles/ThemeProvider.js +7 -10
  448. package/styles/adaptV4Theme.js +31 -31
  449. package/styles/createMixins.js +4 -4
  450. package/styles/createPalette.js +16 -13
  451. package/styles/createTheme.js +16 -11
  452. package/styles/createTransitions.js +17 -14
  453. package/styles/createTypography.js +31 -29
  454. package/styles/experimental_extendTheme.js +47 -37
  455. package/styles/responsiveFontSizes.js +17 -11
  456. package/usePagination/usePagination.d.ts +1 -1
  457. package/usePagination/usePagination.js +18 -20
  458. package/useScrollTrigger/useScrollTrigger.js +8 -10
  459. package/utils/createSvgIcon.js +4 -5
  460. package/utils/useSlot.js +41 -40
  461. package/umd/material-ui.development.js +0 -54172
  462. package/umd/material-ui.production.min.js +0 -25
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = exports.StyledSelectSelect = exports.StyledSelectIcon = void 0;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -18,7 +16,6 @@ var _nativeSelectClasses = _interopRequireWildcard(require("./nativeSelectClasse
18
16
  var _zeroStyled = require("../zero-styled");
19
17
  var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
20
18
  var _jsxRuntime = require("react/jsx-runtime");
21
- const _excluded = ["className", "disabled", "error", "IconComponent", "inputRef", "variant"];
22
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
21
  const useUtilityClasses = ownerState => {
@@ -168,27 +165,29 @@ const NativeSelectIcon = (0, _zeroStyled.styled)(StyledSelectIcon, {
168
165
  */
169
166
  const NativeSelectInput = /*#__PURE__*/React.forwardRef(function NativeSelectInput(props, ref) {
170
167
  const {
171
- className,
172
- disabled,
173
- error,
174
- IconComponent,
175
- inputRef,
176
- variant = 'standard'
177
- } = props,
178
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
179
- const ownerState = (0, _extends2.default)({}, props, {
168
+ className,
169
+ disabled,
170
+ error,
171
+ IconComponent,
172
+ inputRef,
173
+ variant = 'standard',
174
+ ...other
175
+ } = props;
176
+ const ownerState = {
177
+ ...props,
180
178
  disabled,
181
179
  variant,
182
180
  error
183
- });
181
+ };
184
182
  const classes = useUtilityClasses(ownerState);
185
183
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
186
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectSelect, (0, _extends2.default)({
184
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectSelect, {
187
185
  ownerState: ownerState,
188
186
  className: (0, _clsx.default)(classes.select, className),
189
187
  disabled: disabled,
190
- ref: inputRef || ref
191
- }, other)), props.multiple ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectIcon, {
188
+ ref: inputRef || ref,
189
+ ...other
190
+ }), props.multiple ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeSelectIcon, {
192
191
  as: IconComponent,
193
192
  ownerState: ownerState,
194
193
  className: classes.icon
@@ -6,15 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = NotchedOutline;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
14
12
  var _zeroStyled = require("../zero-styled");
15
13
  var _jsxRuntime = require("react/jsx-runtime");
16
14
  var _span;
17
- const _excluded = ["children", "classes", "className", "label", "notched"];
18
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
17
  const NotchedOutlineRoot = (0, _zeroStyled.styled)('fieldset', {
@@ -105,21 +102,24 @@ const NotchedOutlineLegend = (0, _zeroStyled.styled)('legend', {
105
102
  */
106
103
  function NotchedOutline(props) {
107
104
  const {
108
- className,
109
- label,
110
- notched
111
- } = props,
112
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
105
+ children,
106
+ classes,
107
+ className,
108
+ label,
109
+ notched,
110
+ ...other
111
+ } = props;
113
112
  const withLabel = label != null && label !== '';
114
- const ownerState = (0, _extends2.default)({}, props, {
113
+ const ownerState = {
114
+ ...props,
115
115
  notched,
116
116
  withLabel
117
- });
118
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, (0, _extends2.default)({
117
+ };
118
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, {
119
119
  "aria-hidden": true,
120
120
  className: className,
121
- ownerState: ownerState
122
- }, other, {
121
+ ownerState: ownerState,
122
+ ...other,
123
123
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineLegend, {
124
124
  ownerState: ownerState,
125
125
  children: withLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -130,7 +130,7 @@ function NotchedOutline(props) {
130
130
  children: "\u200B"
131
131
  }))
132
132
  })
133
- }));
133
+ });
134
134
  }
135
135
  process.env.NODE_ENV !== "production" ? NotchedOutline.propTypes /* remove-proptypes */ = {
136
136
  /**
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _refType = _interopRequireDefault(require("@mui/utils/refType"));
@@ -20,7 +18,6 @@ var _zeroStyled = require("../zero-styled");
20
18
  var _outlinedInputClasses = _interopRequireWildcard(require("./outlinedInputClasses"));
21
19
  var _InputBase = _interopRequireWildcard(require("../InputBase/InputBase"));
22
20
  var _jsxRuntime = require("react/jsx-runtime");
23
- const _excluded = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
24
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
25
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
23
  const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiOutlinedInput');
@@ -34,7 +31,11 @@ const useUtilityClasses = ownerState => {
34
31
  input: ['input']
35
32
  };
36
33
  const composedClasses = (0, _composeClasses.default)(slots, _outlinedInputClasses.getOutlinedInputUtilityClass, classes);
37
- return (0, _extends2.default)({}, classes, composedClasses);
34
+ return {
35
+ ...classes,
36
+ // forward classes to the InputBase
37
+ ...composedClasses
38
+ };
38
39
  };
39
40
  const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
40
41
  shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) || prop === 'classes',
@@ -54,7 +55,7 @@ const OutlinedInputRoot = (0, _zeroStyled.styled)(_InputBase.InputBaseRoot, {
54
55
  [`&.${_outlinedInputClasses.default.focused} .${_outlinedInputClasses.default.notchedOutline}`]: {
55
56
  borderWidth: 2
56
57
  },
57
- variants: [...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
58
+ variants: [...Object.entries(theme.palette).filter(([, value]) => value && value.main).map(([color]) => ({
58
59
  props: {
59
60
  color
60
61
  },
@@ -130,27 +131,28 @@ const OutlinedInputInput = (0, _zeroStyled.styled)(_InputBase.InputBaseInput, {
130
131
  overridesResolver: _InputBase.inputOverridesResolver
131
132
  })(({
132
133
  theme
133
- }) => (0, _extends2.default)({
134
- padding: '16.5px 14px'
135
- }, !theme.vars && {
136
- '&:-webkit-autofill': {
137
- WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
138
- WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
139
- caretColor: theme.palette.mode === 'light' ? null : '#fff',
140
- borderRadius: 'inherit'
141
- }
142
- }, theme.vars && {
143
- '&:-webkit-autofill': {
144
- borderRadius: 'inherit'
145
- },
146
- [theme.getColorSchemeSelector('dark')]: {
134
+ }) => ({
135
+ padding: '16.5px 14px',
136
+ ...(!theme.vars && {
137
+ '&:-webkit-autofill': {
138
+ WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
139
+ WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
140
+ caretColor: theme.palette.mode === 'light' ? null : '#fff',
141
+ borderRadius: 'inherit'
142
+ }
143
+ }),
144
+ ...(theme.vars && {
147
145
  '&:-webkit-autofill': {
148
- WebkitBoxShadow: '0 0 0 100px #266798 inset',
149
- WebkitTextFillColor: '#fff',
150
- caretColor: '#fff'
146
+ borderRadius: 'inherit'
147
+ },
148
+ [theme.getColorSchemeSelector('dark')]: {
149
+ '&:-webkit-autofill': {
150
+ WebkitBoxShadow: '0 0 0 100px #266798 inset',
151
+ WebkitTextFillColor: '#fff',
152
+ caretColor: '#fff'
153
+ }
151
154
  }
152
- }
153
- }, {
155
+ }),
154
156
  variants: [{
155
157
  props: {
156
158
  size: 'small'
@@ -188,16 +190,16 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
188
190
  name: 'MuiOutlinedInput'
189
191
  });
190
192
  const {
191
- components = {},
192
- fullWidth = false,
193
- inputComponent = 'input',
194
- label,
195
- multiline = false,
196
- notched,
197
- slots = {},
198
- type = 'text'
199
- } = props,
200
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
193
+ components = {},
194
+ fullWidth = false,
195
+ inputComponent = 'input',
196
+ label,
197
+ multiline = false,
198
+ notched,
199
+ slots = {},
200
+ type = 'text',
201
+ ...other
202
+ } = props;
201
203
  const classes = useUtilityClasses(props);
202
204
  const muiFormControl = (0, _useFormControl.default)();
203
205
  const fcs = (0, _formControlState.default)({
@@ -205,7 +207,8 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
205
207
  muiFormControl,
206
208
  states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']
207
209
  });
208
- const ownerState = (0, _extends2.default)({}, props, {
210
+ const ownerState = {
211
+ ...props,
209
212
  color: fcs.color || 'primary',
210
213
  disabled: fcs.disabled,
211
214
  error: fcs.error,
@@ -216,10 +219,10 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
216
219
  multiline,
217
220
  size: fcs.size,
218
221
  type
219
- });
222
+ };
220
223
  const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : OutlinedInputRoot;
221
224
  const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : OutlinedInputInput;
222
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({
225
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, {
223
226
  slots: {
224
227
  root: RootSlot,
225
228
  input: InputSlot
@@ -236,12 +239,13 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
236
239
  inputComponent: inputComponent,
237
240
  multiline: multiline,
238
241
  ref: ref,
239
- type: type
240
- }, other, {
241
- classes: (0, _extends2.default)({}, classes, {
242
+ type: type,
243
+ ...other,
244
+ classes: {
245
+ ...classes,
242
246
  notchedOutline: null
243
- })
244
- }));
247
+ }
248
+ });
245
249
  });
246
250
  process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-proptypes */ = {
247
251
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
9
  var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
11
10
  var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
12
11
  var _InputBase = require("../InputBase");
13
12
  function getOutlinedInputUtilityClass(slot) {
14
13
  return (0, _generateUtilityClass.default)('MuiOutlinedInput', slot);
15
14
  }
16
- const outlinedInputClasses = (0, _extends2.default)({}, _InputBase.inputBaseClasses, (0, _generateUtilityClasses.default)('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
15
+ const outlinedInputClasses = {
16
+ ..._InputBase.inputBaseClasses,
17
+ ...(0, _generateUtilityClasses.default)('MuiOutlinedInput', ['root', 'notchedOutline', 'input'])
18
+ };
17
19
  var _default = exports.default = outlinedInputClasses;
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -18,7 +16,6 @@ var _usePagination = _interopRequireDefault(require("../usePagination"));
18
16
  var _PaginationItem = _interopRequireDefault(require("../PaginationItem"));
19
17
  var _zeroStyled = require("../zero-styled");
20
18
  var _jsxRuntime = require("react/jsx-runtime");
21
- const _excluded = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"];
22
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
23
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
21
  const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPagination');
@@ -67,30 +64,36 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, re
67
64
  name: 'MuiPagination'
68
65
  });
69
66
  const {
70
- boundaryCount = 1,
71
- className,
72
- color = 'standard',
73
- count = 1,
74
- defaultPage = 1,
75
- disabled = false,
76
- getItemAriaLabel = defaultGetAriaLabel,
77
- hideNextButton = false,
78
- hidePrevButton = false,
79
- renderItem = item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PaginationItem.default, (0, _extends2.default)({}, item)),
80
- shape = 'circular',
81
- showFirstButton = false,
82
- showLastButton = false,
83
- siblingCount = 1,
84
- size = 'medium',
85
- variant = 'text'
86
- } = props,
87
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
67
+ boundaryCount = 1,
68
+ className,
69
+ color = 'standard',
70
+ count = 1,
71
+ defaultPage = 1,
72
+ disabled = false,
73
+ getItemAriaLabel = defaultGetAriaLabel,
74
+ hideNextButton = false,
75
+ hidePrevButton = false,
76
+ onChange,
77
+ page,
78
+ renderItem = item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PaginationItem.default, {
79
+ ...item
80
+ }),
81
+ shape = 'circular',
82
+ showFirstButton = false,
83
+ showLastButton = false,
84
+ siblingCount = 1,
85
+ size = 'medium',
86
+ variant = 'text',
87
+ ...other
88
+ } = props;
88
89
  const {
89
90
  items
90
- } = (0, _usePagination.default)((0, _extends2.default)({}, props, {
91
+ } = (0, _usePagination.default)({
92
+ ...props,
91
93
  componentName: 'Pagination'
92
- }));
93
- const ownerState = (0, _extends2.default)({}, props, {
94
+ });
95
+ const ownerState = {
96
+ ...props,
94
97
  boundaryCount,
95
98
  color,
96
99
  count,
@@ -106,28 +109,29 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, re
106
109
  siblingCount,
107
110
  size,
108
111
  variant
109
- });
112
+ };
110
113
  const classes = useUtilityClasses(ownerState);
111
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationRoot, (0, _extends2.default)({
114
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationRoot, {
112
115
  "aria-label": "pagination navigation",
113
116
  className: (0, _clsx.default)(classes.root, className),
114
117
  ownerState: ownerState,
115
- ref: ref
116
- }, other, {
118
+ ref: ref,
119
+ ...other,
117
120
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationUl, {
118
121
  className: classes.ul,
119
122
  ownerState: ownerState,
120
123
  children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
121
- children: renderItem((0, _extends2.default)({}, item, {
124
+ children: renderItem({
125
+ ...item,
122
126
  color,
123
127
  'aria-label': getItemAriaLabel(item.type, item.page, item.selected),
124
128
  shape,
125
129
  size,
126
130
  variant
127
- }))
131
+ })
128
132
  }, index))
129
133
  })
130
- }));
134
+ });
131
135
  });
132
136
 
133
137
  // @default tags synced with default values from usePagination
@@ -201,7 +205,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
201
205
  */
202
206
  onChange: _propTypes.default.func,
203
207
  /**
204
- * The current page.
208
+ * The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
205
209
  */
206
210
  page: _integerPropType.default,
207
211
  /**
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -24,7 +22,6 @@ var _NavigateNext = _interopRequireDefault(require("../internal/svg-icons/Naviga
24
22
  var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
25
23
  var _zeroStyled = require("../zero-styled");
26
24
  var _jsxRuntime = require("react/jsx-runtime");
27
- const _excluded = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "slotProps", "type", "variant"];
28
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
29
26
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
27
  const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPaginationItem');
@@ -65,7 +62,8 @@ const PaginationItemEllipsis = (0, _zeroStyled.styled)('div', {
65
62
  overridesResolver
66
63
  })(({
67
64
  theme
68
- }) => (0, _extends2.default)({}, theme.typography.body2, {
65
+ }) => ({
66
+ ...theme.typography.body2,
69
67
  borderRadius: 32 / 2,
70
68
  textAlign: 'center',
71
69
  boxSizing: 'border-box',
@@ -105,7 +103,8 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
105
103
  overridesResolver
106
104
  })(({
107
105
  theme
108
- }) => (0, _extends2.default)({}, theme.typography.body2, {
106
+ }) => ({
107
+ ...theme.typography.body2,
109
108
  borderRadius: 32 / 2,
110
109
  textAlign: 'center',
111
110
  boxSizing: 'border-box',
@@ -201,7 +200,7 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
201
200
  }
202
201
  }
203
202
  }
204
- }, ...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark && value.contrastText).map(([color]) => ({
203
+ }, ...Object.entries(theme.palette).filter(([, value]) => value && value.main && value.dark && value.contrastText).map(([color]) => ({
205
204
  props: {
206
205
  variant: 'text',
207
206
  color
@@ -225,7 +224,7 @@ const PaginationItemPage = (0, _zeroStyled.styled)(_ButtonBase.default, {
225
224
  }
226
225
  }
227
226
  }
228
- })), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
227
+ })), ...Object.entries(theme.palette).filter(([, value]) => value && value.main && value.light).map(([color]) => ({
229
228
  props: {
230
229
  variant: 'outlined',
231
230
  color
@@ -281,22 +280,23 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
281
280
  name: 'MuiPaginationItem'
282
281
  });
283
282
  const {
284
- className,
285
- color = 'standard',
286
- component,
287
- components = {},
288
- disabled = false,
289
- page,
290
- selected = false,
291
- shape = 'circular',
292
- size = 'medium',
293
- slots = {},
294
- slotProps = {},
295
- type = 'page',
296
- variant = 'text'
297
- } = props,
298
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
299
- const ownerState = (0, _extends2.default)({}, props, {
283
+ className,
284
+ color = 'standard',
285
+ component,
286
+ components = {},
287
+ disabled = false,
288
+ page,
289
+ selected = false,
290
+ shape = 'circular',
291
+ size = 'medium',
292
+ slots = {},
293
+ slotProps = {},
294
+ type = 'page',
295
+ variant = 'text',
296
+ ...other
297
+ } = props;
298
+ const ownerState = {
299
+ ...props,
300
300
  color,
301
301
  disabled,
302
302
  selected,
@@ -304,7 +304,7 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
304
304
  size,
305
305
  type,
306
306
  variant
307
- });
307
+ };
308
308
  const isRtl = (0, _RtlProvider.useRtl)();
309
309
  const classes = useUtilityClasses(ownerState);
310
310
  const externalForwardedProps = {
@@ -359,18 +359,19 @@ const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inP
359
359
  ownerState: ownerState,
360
360
  className: (0, _clsx.default)(classes.root, className),
361
361
  children: "\u2026"
362
- }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(PaginationItemPage, (0, _extends2.default)({
362
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(PaginationItemPage, {
363
363
  ref: ref,
364
364
  ownerState: ownerState,
365
365
  component: component,
366
366
  disabled: disabled,
367
- className: (0, _clsx.default)(classes.root, className)
368
- }, other, {
369
- children: [type === 'page' && page, IconSlot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItemPageIcon, (0, _extends2.default)({}, iconSlotProps, {
367
+ className: (0, _clsx.default)(classes.root, className),
368
+ ...other,
369
+ children: [type === 'page' && page, IconSlot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(PaginationItemPageIcon, {
370
+ ...iconSlotProps,
370
371
  className: classes.icon,
371
372
  as: IconSlot
372
- })) : null]
373
- }));
373
+ }) : null]
374
+ });
374
375
  });
375
376
  process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-proptypes */ = {
376
377
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
11
  var _clsx = _interopRequireDefault(require("clsx"));
@@ -20,7 +18,6 @@ var _getOverlayAlpha = _interopRequireDefault(require("../styles/getOverlayAlpha
20
18
  var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
21
19
  var _paperClasses = require("./paperClasses");
22
20
  var _jsxRuntime = require("react/jsx-runtime");
23
- const _excluded = ["className", "component", "elevation", "square", "variant"];
24
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
25
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
23
  const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiPaper');
@@ -83,39 +80,45 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
83
80
  });
84
81
  const theme = (0, _useTheme.default)();
85
82
  const {
86
- className,
87
- component = 'div',
88
- elevation = 1,
89
- square = false,
90
- variant = 'elevation'
91
- } = props,
92
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
93
- const ownerState = (0, _extends2.default)({}, props, {
83
+ className,
84
+ component = 'div',
85
+ elevation = 1,
86
+ square = false,
87
+ variant = 'elevation',
88
+ ...other
89
+ } = props;
90
+ const ownerState = {
91
+ ...props,
94
92
  component,
95
93
  elevation,
96
94
  square,
97
95
  variant
98
- });
96
+ };
99
97
  const classes = useUtilityClasses(ownerState);
100
98
  if (process.env.NODE_ENV !== 'production') {
101
99
  if (theme.shadows[elevation] === undefined) {
102
100
  console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
103
101
  }
104
102
  }
105
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperRoot, (0, _extends2.default)({
103
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperRoot, {
106
104
  as: component,
107
105
  ownerState: ownerState,
108
106
  className: (0, _clsx.default)(classes.root, className),
109
- ref: ref
110
- }, other, {
111
- style: (0, _extends2.default)({}, variant === 'elevation' && (0, _extends2.default)({
112
- '--Paper-shadow': (theme.vars || theme).shadows[elevation]
113
- }, theme.vars && {
114
- '--Paper-overlay': (_theme$overlays = theme.overlays) == null ? void 0 : _theme$overlays[elevation]
115
- }, !theme.vars && theme.palette.mode === 'dark' && {
116
- '--Paper-overlay': `linear-gradient(${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))}, ${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))})`
117
- }), other.style)
118
- }));
107
+ ref: ref,
108
+ ...other,
109
+ style: {
110
+ ...(variant === 'elevation' && {
111
+ '--Paper-shadow': (theme.vars || theme).shadows[elevation],
112
+ ...(theme.vars && {
113
+ '--Paper-overlay': (_theme$overlays = theme.overlays) == null ? void 0 : _theme$overlays[elevation]
114
+ }),
115
+ ...(!theme.vars && theme.palette.mode === 'dark' && {
116
+ '--Paper-overlay': `linear-gradient(${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))}, ${(0, _colorManipulator.alpha)('#fff', (0, _getOverlayAlpha.default)(elevation))})`
117
+ })
118
+ }),
119
+ ...other.style
120
+ }
121
+ });
119
122
  });
120
123
  process.env.NODE_ENV !== "production" ? Paper.propTypes /* remove-proptypes */ = {
121
124
  // ┌────────────────────────────── Warning ──────────────────────────────┐