@mui/material 6.0.0-alpha.8 → 6.0.0-beta.0

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 (629) hide show
  1. package/Accordion/Accordion.d.ts +3 -5
  2. package/Accordion/Accordion.js +3 -5
  3. package/AccordionActions/AccordionActions.d.ts +3 -3
  4. package/AccordionActions/AccordionActions.js +3 -3
  5. package/AccordionDetails/AccordionDetails.d.ts +3 -3
  6. package/AccordionDetails/AccordionDetails.js +3 -3
  7. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  8. package/AccordionSummary/AccordionSummary.js +3 -3
  9. package/Alert/Alert.d.ts +16 -7
  10. package/Alert/Alert.js +3 -3
  11. package/AlertTitle/AlertTitle.d.ts +6 -6
  12. package/AlertTitle/AlertTitle.js +3 -3
  13. package/AppBar/AppBar.d.ts +3 -3
  14. package/AppBar/AppBar.js +5 -9
  15. package/Autocomplete/Autocomplete.d.ts +4 -9
  16. package/Autocomplete/Autocomplete.js +13 -26
  17. package/Avatar/Avatar.d.ts +2 -3
  18. package/Avatar/Avatar.js +6 -5
  19. package/AvatarGroup/AvatarGroup.d.ts +53 -20
  20. package/AvatarGroup/AvatarGroup.js +40 -21
  21. package/Backdrop/Backdrop.d.ts +5 -8
  22. package/Backdrop/Backdrop.js +5 -8
  23. package/Badge/Badge.d.ts +3 -3
  24. package/Badge/Badge.js +3 -3
  25. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  26. package/BottomNavigation/BottomNavigation.js +3 -3
  27. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  28. package/BottomNavigationAction/BottomNavigationAction.js +3 -3
  29. package/Box/Box.d.ts +2 -2
  30. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  31. package/Breadcrumbs/Breadcrumbs.js +3 -3
  32. package/Button/Button.d.ts +5 -5
  33. package/Button/Button.js +3 -3
  34. package/ButtonBase/ButtonBase.d.ts +3 -3
  35. package/ButtonBase/ButtonBase.js +23 -52
  36. package/ButtonBase/TouchRipple.js +3 -3
  37. package/ButtonGroup/ButtonGroup.d.ts +2 -2
  38. package/ButtonGroup/ButtonGroup.js +3 -3
  39. package/CHANGELOG.md +407 -3
  40. package/Card/Card.d.ts +3 -3
  41. package/Card/Card.js +3 -3
  42. package/CardActionArea/CardActionArea.d.ts +3 -3
  43. package/CardActionArea/CardActionArea.js +3 -3
  44. package/CardActions/CardActions.d.ts +3 -3
  45. package/CardActions/CardActions.js +3 -3
  46. package/CardContent/CardContent.d.ts +2 -2
  47. package/CardContent/CardContent.js +3 -3
  48. package/CardHeader/CardHeader.d.ts +3 -3
  49. package/CardHeader/CardHeader.js +3 -3
  50. package/CardMedia/CardMedia.d.ts +2 -2
  51. package/CardMedia/CardMedia.js +3 -3
  52. package/Checkbox/Checkbox.d.ts +5 -5
  53. package/Checkbox/Checkbox.js +3 -3
  54. package/Chip/Chip.d.ts +5 -5
  55. package/Chip/Chip.js +3 -5
  56. package/CircularProgress/CircularProgress.d.ts +3 -3
  57. package/CircularProgress/CircularProgress.js +3 -3
  58. package/Collapse/Collapse.d.ts +6 -6
  59. package/Collapse/Collapse.js +3 -4
  60. package/Container/Container.d.ts +2 -2
  61. package/CssBaseline/CssBaseline.d.ts +3 -3
  62. package/CssBaseline/CssBaseline.js +66 -8
  63. package/DefaultPropsProvider/DefaultPropsProvider.d.ts +15 -0
  64. package/DefaultPropsProvider/DefaultPropsProvider.js +29 -0
  65. package/DefaultPropsProvider/index.d.ts +1 -0
  66. package/DefaultPropsProvider/index.js +1 -0
  67. package/DefaultPropsProvider/package.json +6 -0
  68. package/Dialog/Dialog.d.ts +4 -4
  69. package/Dialog/Dialog.js +4 -7
  70. package/DialogActions/DialogActions.d.ts +3 -3
  71. package/DialogActions/DialogActions.js +3 -3
  72. package/DialogContent/DialogContent.d.ts +3 -3
  73. package/DialogContent/DialogContent.js +3 -3
  74. package/DialogContentText/DialogContentText.d.ts +3 -3
  75. package/DialogContentText/DialogContentText.js +3 -3
  76. package/DialogTitle/DialogTitle.d.ts +3 -3
  77. package/DialogTitle/DialogTitle.js +3 -3
  78. package/Divider/Divider.d.ts +3 -3
  79. package/Divider/Divider.js +3 -3
  80. package/Drawer/Drawer.d.ts +4 -4
  81. package/Drawer/Drawer.js +3 -4
  82. package/Fab/Fab.d.ts +3 -3
  83. package/Fab/Fab.js +3 -3
  84. package/Fade/Fade.d.ts +4 -4
  85. package/Fade/Fade.js +1 -1
  86. package/FilledInput/FilledInput.d.ts +4 -4
  87. package/FilledInput/FilledInput.js +13 -11
  88. package/FilledInput/filledInputClasses.d.ts +1 -13
  89. package/FilledInput/filledInputClasses.js +1 -1
  90. package/FormControl/FormControl.d.ts +6 -6
  91. package/FormControl/FormControl.js +3 -3
  92. package/FormControlLabel/FormControlLabel.d.ts +5 -5
  93. package/FormControlLabel/FormControlLabel.js +3 -3
  94. package/FormGroup/FormGroup.d.ts +4 -4
  95. package/FormGroup/FormGroup.js +3 -3
  96. package/FormHelperText/FormHelperText.d.ts +2 -2
  97. package/FormHelperText/FormHelperText.js +3 -3
  98. package/FormLabel/FormLabel.d.ts +4 -4
  99. package/FormLabel/FormLabel.js +3 -3
  100. package/GlobalStyles/GlobalStyles.d.ts +3 -3
  101. package/Grid/Grid.d.ts +3 -2
  102. package/Grid/Grid.js +8 -13
  103. package/Grow/Grow.d.ts +6 -6
  104. package/Grow/Grow.js +1 -1
  105. package/Hidden/Hidden.d.ts +4 -2
  106. package/Hidden/Hidden.js +2 -0
  107. package/Hidden/hiddenCssClasses.d.ts +3 -0
  108. package/Icon/Icon.d.ts +3 -3
  109. package/Icon/Icon.js +3 -3
  110. package/IconButton/IconButton.d.ts +4 -4
  111. package/IconButton/IconButton.js +3 -5
  112. package/ImageList/ImageList.d.ts +2 -2
  113. package/ImageList/ImageList.js +3 -11
  114. package/ImageListItem/ImageListItem.d.ts +2 -2
  115. package/ImageListItem/ImageListItem.js +3 -3
  116. package/ImageListItemBar/ImageListItemBar.d.ts +3 -3
  117. package/ImageListItemBar/ImageListItemBar.js +3 -3
  118. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +10 -0
  119. package/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
  120. package/InitColorSchemeScript/index.d.ts +1 -0
  121. package/InitColorSchemeScript/index.js +1 -0
  122. package/InitColorSchemeScript/package.json +6 -0
  123. package/Input/Input.d.ts +4 -4
  124. package/Input/Input.js +5 -9
  125. package/InputAdornment/InputAdornment.d.ts +2 -2
  126. package/InputAdornment/InputAdornment.js +3 -5
  127. package/InputBase/InputBase.d.ts +5 -7
  128. package/InputBase/InputBase.js +31 -40
  129. package/InputLabel/InputLabel.d.ts +3 -3
  130. package/InputLabel/InputLabel.js +3 -3
  131. package/LinearProgress/LinearProgress.d.ts +3 -3
  132. package/LinearProgress/LinearProgress.js +3 -3
  133. package/Link/Link.d.ts +4 -4
  134. package/Link/Link.js +7 -18
  135. package/List/List.d.ts +3 -3
  136. package/List/List.js +3 -3
  137. package/ListItem/ListItem.d.ts +7 -15
  138. package/ListItem/ListItem.js +9 -17
  139. package/ListItemAvatar/ListItemAvatar.d.ts +3 -3
  140. package/ListItemAvatar/ListItemAvatar.js +3 -3
  141. package/ListItemButton/ListItemButton.d.ts +3 -3
  142. package/ListItemButton/ListItemButton.js +3 -3
  143. package/ListItemIcon/ListItemIcon.d.ts +3 -3
  144. package/ListItemIcon/ListItemIcon.js +3 -3
  145. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +7 -3
  146. package/ListItemSecondaryAction/ListItemSecondaryAction.js +5 -3
  147. package/ListItemText/ListItemText.d.ts +5 -3
  148. package/ListItemText/ListItemText.js +3 -3
  149. package/ListSubheader/ListSubheader.d.ts +2 -2
  150. package/ListSubheader/ListSubheader.js +3 -3
  151. package/Menu/Menu.d.ts +5 -5
  152. package/Menu/Menu.js +4 -7
  153. package/MenuItem/MenuItem.d.ts +3 -3
  154. package/MenuItem/MenuItem.js +3 -3
  155. package/MenuList/MenuList.d.ts +4 -4
  156. package/MobileStepper/MobileStepper.d.ts +4 -4
  157. package/MobileStepper/MobileStepper.js +3 -3
  158. package/Modal/Modal.d.ts +10 -12
  159. package/Modal/Modal.js +32 -24
  160. package/NativeSelect/NativeSelect.d.ts +4 -4
  161. package/NativeSelect/NativeSelectInput.js +0 -4
  162. package/OutlinedInput/OutlinedInput.d.ts +6 -4
  163. package/OutlinedInput/OutlinedInput.js +4 -5
  164. package/OverridableComponent.d.ts +2 -2
  165. package/Pagination/Pagination.d.ts +3 -3
  166. package/Pagination/Pagination.js +3 -3
  167. package/PaginationItem/PaginationItem.d.ts +2 -2
  168. package/PaginationItem/PaginationItem.js +3 -3
  169. package/Paper/Paper.d.ts +3 -3
  170. package/Paper/Paper.js +3 -4
  171. package/PigmentContainer/PigmentContainer.d.ts +55 -0
  172. package/PigmentContainer/PigmentContainer.js +98 -0
  173. package/PigmentContainer/index.d.ts +3 -0
  174. package/PigmentContainer/index.js +3 -0
  175. package/PigmentContainer/package.json +6 -0
  176. package/PigmentGrid/PigmentGrid.d.ts +108 -0
  177. package/PigmentGrid/PigmentGrid.js +149 -0
  178. package/PigmentGrid/index.d.ts +3 -0
  179. package/PigmentGrid/index.js +3 -0
  180. package/{useTouchRipple → PigmentGrid}/package.json +1 -1
  181. package/PigmentHidden/PigmentHidden.d.ts +97 -0
  182. package/PigmentHidden/PigmentHidden.js +278 -0
  183. package/PigmentHidden/index.d.ts +2 -0
  184. package/PigmentHidden/index.js +2 -0
  185. package/PigmentHidden/package.json +6 -0
  186. package/PigmentStack/PigmentStack.d.ts +51 -0
  187. package/PigmentStack/PigmentStack.js +81 -0
  188. package/PigmentStack/index.d.ts +3 -0
  189. package/PigmentStack/index.js +3 -0
  190. package/PigmentStack/package.json +6 -0
  191. package/Popover/Popover.d.ts +21 -26
  192. package/Popover/Popover.js +30 -29
  193. package/Popper/Popper.d.ts +8 -4
  194. package/Popper/Popper.js +14 -9
  195. package/Radio/Radio.d.ts +4 -4
  196. package/Radio/Radio.js +3 -3
  197. package/RadioGroup/RadioGroup.d.ts +4 -4
  198. package/Rating/Rating.d.ts +3 -3
  199. package/Rating/Rating.js +8 -15
  200. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  201. package/ScopedCssBaseline/ScopedCssBaseline.js +24 -11
  202. package/Select/Select.d.ts +4 -4
  203. package/Skeleton/Skeleton.d.ts +2 -2
  204. package/Skeleton/Skeleton.js +3 -3
  205. package/Slide/Slide.d.ts +5 -5
  206. package/Slide/Slide.js +1 -1
  207. package/Slider/Slider.d.ts +3 -3
  208. package/Slider/Slider.js +4 -4
  209. package/Slider/SliderValueLabel.types.d.ts +1 -1
  210. package/Snackbar/Snackbar.d.ts +3 -3
  211. package/Snackbar/Snackbar.js +3 -4
  212. package/SnackbarContent/SnackbarContent.d.ts +4 -4
  213. package/SnackbarContent/SnackbarContent.js +3 -3
  214. package/SpeedDial/SpeedDial.d.ts +3 -5
  215. package/SpeedDial/SpeedDial.js +3 -6
  216. package/SpeedDialAction/SpeedDialAction.d.ts +4 -4
  217. package/SpeedDialAction/SpeedDialAction.js +3 -3
  218. package/SpeedDialIcon/SpeedDialIcon.d.ts +5 -3
  219. package/SpeedDialIcon/SpeedDialIcon.js +3 -3
  220. package/Stack/Stack.d.ts +2 -2
  221. package/Step/Step.d.ts +2 -2
  222. package/Step/Step.js +3 -3
  223. package/StepButton/StepButton.d.ts +3 -3
  224. package/StepButton/StepButton.js +3 -3
  225. package/StepConnector/StepConnector.d.ts +4 -4
  226. package/StepConnector/StepConnector.js +3 -3
  227. package/StepContent/StepContent.d.ts +3 -3
  228. package/StepContent/StepContent.js +3 -3
  229. package/StepIcon/StepIcon.d.ts +3 -3
  230. package/StepIcon/StepIcon.js +3 -3
  231. package/StepLabel/StepLabel.d.ts +3 -5
  232. package/StepLabel/StepLabel.js +3 -7
  233. package/Stepper/Stepper.d.ts +2 -2
  234. package/Stepper/Stepper.js +7 -5
  235. package/Stepper/stepperClasses.d.ts +2 -0
  236. package/Stepper/stepperClasses.js +1 -1
  237. package/SvgIcon/SvgIcon.d.ts +3 -3
  238. package/SvgIcon/SvgIcon.js +3 -3
  239. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  240. package/SwipeableDrawer/SwipeableDrawer.js +3 -3
  241. package/Switch/Switch.d.ts +5 -5
  242. package/Switch/Switch.js +3 -3
  243. package/Tab/Tab.d.ts +4 -4
  244. package/Tab/Tab.js +14 -10
  245. package/Tab/tabClasses.d.ts +5 -1
  246. package/Tab/tabClasses.js +1 -1
  247. package/TabScrollButton/TabScrollButton.d.ts +3 -3
  248. package/TabScrollButton/TabScrollButton.js +3 -3
  249. package/Table/Table.d.ts +2 -2
  250. package/Table/Table.js +3 -3
  251. package/TableBody/TableBody.d.ts +2 -2
  252. package/TableBody/TableBody.js +3 -3
  253. package/TableCell/TableCell.d.ts +3 -3
  254. package/TableCell/TableCell.js +3 -3
  255. package/TableContainer/TableContainer.d.ts +2 -2
  256. package/TableContainer/TableContainer.js +3 -3
  257. package/TableFooter/TableFooter.d.ts +2 -2
  258. package/TableFooter/TableFooter.js +3 -3
  259. package/TableHead/TableHead.d.ts +2 -2
  260. package/TableHead/TableHead.js +3 -3
  261. package/TablePagination/TablePagination.d.ts +4 -4
  262. package/TablePagination/TablePagination.js +3 -3
  263. package/TableRow/TableRow.d.ts +2 -2
  264. package/TableRow/TableRow.js +3 -3
  265. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  266. package/TableSortLabel/TableSortLabel.js +4 -4
  267. package/TableSortLabel/tableSortLabelClasses.d.ts +10 -2
  268. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  269. package/Tabs/Tabs.d.ts +2 -2
  270. package/Tabs/Tabs.js +5 -14
  271. package/TextField/TextField.d.ts +11 -11
  272. package/TextField/TextField.js +3 -3
  273. package/ToggleButton/ToggleButton.d.ts +3 -3
  274. package/ToggleButton/ToggleButton.js +3 -3
  275. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -3
  276. package/ToggleButtonGroup/ToggleButtonGroup.js +3 -3
  277. package/Toolbar/Toolbar.d.ts +2 -2
  278. package/Toolbar/Toolbar.js +3 -3
  279. package/Tooltip/Tooltip.d.ts +5 -7
  280. package/Tooltip/Tooltip.js +9 -22
  281. package/Typography/Typography.d.ts +3 -3
  282. package/Typography/Typography.js +4 -4
  283. package/Zoom/Zoom.d.ts +4 -4
  284. package/Zoom/Zoom.js +1 -1
  285. package/index.js +1 -1
  286. package/locale/index.d.ts +1 -0
  287. package/locale/index.js +74 -1
  288. package/modern/Accordion/Accordion.js +3 -5
  289. package/modern/AccordionActions/AccordionActions.js +3 -3
  290. package/modern/AccordionDetails/AccordionDetails.js +3 -3
  291. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  292. package/modern/Alert/Alert.js +3 -3
  293. package/modern/AlertTitle/AlertTitle.js +3 -3
  294. package/modern/AppBar/AppBar.js +5 -9
  295. package/modern/Autocomplete/Autocomplete.js +13 -26
  296. package/modern/Avatar/Avatar.js +6 -5
  297. package/modern/AvatarGroup/AvatarGroup.js +40 -21
  298. package/modern/Backdrop/Backdrop.js +5 -8
  299. package/modern/Badge/Badge.js +3 -3
  300. package/modern/BottomNavigation/BottomNavigation.js +3 -3
  301. package/modern/BottomNavigationAction/BottomNavigationAction.js +3 -3
  302. package/modern/Breadcrumbs/Breadcrumbs.js +3 -3
  303. package/modern/Button/Button.js +3 -3
  304. package/modern/ButtonBase/ButtonBase.js +23 -52
  305. package/modern/ButtonBase/TouchRipple.js +3 -3
  306. package/modern/ButtonGroup/ButtonGroup.js +3 -3
  307. package/modern/Card/Card.js +3 -3
  308. package/modern/CardActionArea/CardActionArea.js +3 -3
  309. package/modern/CardActions/CardActions.js +3 -3
  310. package/modern/CardContent/CardContent.js +3 -3
  311. package/modern/CardHeader/CardHeader.js +3 -3
  312. package/modern/CardMedia/CardMedia.js +3 -3
  313. package/modern/Checkbox/Checkbox.js +3 -3
  314. package/modern/Chip/Chip.js +3 -5
  315. package/modern/CircularProgress/CircularProgress.js +3 -3
  316. package/modern/Collapse/Collapse.js +3 -4
  317. package/modern/CssBaseline/CssBaseline.js +66 -8
  318. package/modern/DefaultPropsProvider/DefaultPropsProvider.js +29 -0
  319. package/modern/DefaultPropsProvider/index.js +1 -0
  320. package/modern/Dialog/Dialog.js +4 -7
  321. package/modern/DialogActions/DialogActions.js +3 -3
  322. package/modern/DialogContent/DialogContent.js +3 -3
  323. package/modern/DialogContentText/DialogContentText.js +3 -3
  324. package/modern/DialogTitle/DialogTitle.js +3 -3
  325. package/modern/Divider/Divider.js +3 -3
  326. package/modern/Drawer/Drawer.js +3 -4
  327. package/modern/Fab/Fab.js +3 -3
  328. package/modern/Fade/Fade.js +1 -1
  329. package/modern/FilledInput/FilledInput.js +13 -11
  330. package/modern/FilledInput/filledInputClasses.js +1 -1
  331. package/modern/FormControl/FormControl.js +3 -3
  332. package/modern/FormControlLabel/FormControlLabel.js +3 -3
  333. package/modern/FormGroup/FormGroup.js +3 -3
  334. package/modern/FormHelperText/FormHelperText.js +3 -3
  335. package/modern/FormLabel/FormLabel.js +3 -3
  336. package/modern/Grid/Grid.js +8 -13
  337. package/modern/Grow/Grow.js +1 -1
  338. package/modern/Hidden/Hidden.js +2 -0
  339. package/modern/Icon/Icon.js +3 -3
  340. package/modern/IconButton/IconButton.js +3 -5
  341. package/modern/ImageList/ImageList.js +3 -11
  342. package/modern/ImageListItem/ImageListItem.js +3 -3
  343. package/modern/ImageListItemBar/ImageListItemBar.js +3 -3
  344. package/modern/InitColorSchemeScript/InitColorSchemeScript.js +16 -0
  345. package/modern/InitColorSchemeScript/index.js +1 -0
  346. package/modern/Input/Input.js +5 -9
  347. package/modern/InputAdornment/InputAdornment.js +3 -5
  348. package/modern/InputBase/InputBase.js +31 -40
  349. package/modern/InputLabel/InputLabel.js +3 -3
  350. package/modern/LinearProgress/LinearProgress.js +3 -3
  351. package/modern/Link/Link.js +7 -18
  352. package/modern/List/List.js +3 -3
  353. package/modern/ListItem/ListItem.js +9 -17
  354. package/modern/ListItemAvatar/ListItemAvatar.js +3 -3
  355. package/modern/ListItemButton/ListItemButton.js +3 -3
  356. package/modern/ListItemIcon/ListItemIcon.js +3 -3
  357. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +5 -3
  358. package/modern/ListItemText/ListItemText.js +3 -3
  359. package/modern/ListSubheader/ListSubheader.js +3 -3
  360. package/modern/Menu/Menu.js +4 -7
  361. package/modern/MenuItem/MenuItem.js +3 -3
  362. package/modern/MobileStepper/MobileStepper.js +3 -3
  363. package/modern/Modal/Modal.js +32 -24
  364. package/modern/NativeSelect/NativeSelectInput.js +0 -4
  365. package/modern/OutlinedInput/OutlinedInput.js +4 -5
  366. package/modern/Pagination/Pagination.js +3 -3
  367. package/modern/PaginationItem/PaginationItem.js +3 -3
  368. package/modern/Paper/Paper.js +3 -4
  369. package/modern/PigmentContainer/PigmentContainer.js +98 -0
  370. package/modern/PigmentContainer/index.js +3 -0
  371. package/modern/PigmentGrid/PigmentGrid.js +149 -0
  372. package/modern/PigmentGrid/index.js +3 -0
  373. package/modern/PigmentHidden/PigmentHidden.js +278 -0
  374. package/modern/PigmentHidden/index.js +2 -0
  375. package/modern/PigmentStack/PigmentStack.js +81 -0
  376. package/modern/PigmentStack/index.js +3 -0
  377. package/modern/Popover/Popover.js +30 -29
  378. package/modern/Popper/Popper.js +14 -9
  379. package/modern/Radio/Radio.js +3 -3
  380. package/modern/Rating/Rating.js +8 -15
  381. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +24 -11
  382. package/modern/Skeleton/Skeleton.js +3 -3
  383. package/modern/Slide/Slide.js +1 -1
  384. package/modern/Slider/Slider.js +4 -4
  385. package/modern/Snackbar/Snackbar.js +3 -4
  386. package/modern/SnackbarContent/SnackbarContent.js +3 -3
  387. package/modern/SpeedDial/SpeedDial.js +3 -6
  388. package/modern/SpeedDialAction/SpeedDialAction.js +3 -3
  389. package/modern/SpeedDialIcon/SpeedDialIcon.js +3 -3
  390. package/modern/Step/Step.js +3 -3
  391. package/modern/StepButton/StepButton.js +3 -3
  392. package/modern/StepConnector/StepConnector.js +3 -3
  393. package/modern/StepContent/StepContent.js +3 -3
  394. package/modern/StepIcon/StepIcon.js +3 -3
  395. package/modern/StepLabel/StepLabel.js +3 -7
  396. package/modern/Stepper/Stepper.js +7 -5
  397. package/modern/Stepper/stepperClasses.js +1 -1
  398. package/modern/SvgIcon/SvgIcon.js +3 -3
  399. package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
  400. package/modern/Switch/Switch.js +3 -3
  401. package/modern/Tab/Tab.js +14 -10
  402. package/modern/Tab/tabClasses.js +1 -1
  403. package/modern/TabScrollButton/TabScrollButton.js +3 -3
  404. package/modern/Table/Table.js +3 -3
  405. package/modern/TableBody/TableBody.js +3 -3
  406. package/modern/TableCell/TableCell.js +3 -3
  407. package/modern/TableContainer/TableContainer.js +3 -3
  408. package/modern/TableFooter/TableFooter.js +3 -3
  409. package/modern/TableHead/TableHead.js +3 -3
  410. package/modern/TablePagination/TablePagination.js +3 -3
  411. package/modern/TableRow/TableRow.js +3 -3
  412. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  413. package/modern/TableSortLabel/tableSortLabelClasses.js +1 -1
  414. package/modern/Tabs/Tabs.js +5 -14
  415. package/modern/TextField/TextField.js +3 -3
  416. package/modern/ToggleButton/ToggleButton.js +3 -3
  417. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -3
  418. package/modern/Toolbar/Toolbar.js +3 -3
  419. package/modern/Tooltip/Tooltip.js +9 -22
  420. package/modern/Typography/Typography.js +4 -4
  421. package/modern/Zoom/Zoom.js +1 -1
  422. package/modern/index.js +1 -1
  423. package/modern/locale/index.js +74 -1
  424. package/modern/styles/CssVarsProvider.js +35 -12
  425. package/modern/styles/createTheme.js +1 -1
  426. package/modern/styles/createTransitions.js +2 -2
  427. package/modern/styles/experimental_extendTheme.js +8 -354
  428. package/modern/styles/extendTheme.js +358 -0
  429. package/modern/styles/index.js +3 -2
  430. package/modern/styles/responsiveFontSizes.js +3 -0
  431. package/modern/styles/stringifyTheme.js +55 -0
  432. package/modern/useLazyRipple/index.js +3 -0
  433. package/modern/useLazyRipple/useLazyRipple.js +85 -0
  434. package/modern/usePagination/usePagination.js +1 -1
  435. package/modern/utils/index.js +0 -1
  436. package/modern/zero-styled/index.js +24 -5
  437. package/node/Accordion/Accordion.js +2 -4
  438. package/node/AccordionActions/AccordionActions.js +2 -2
  439. package/node/AccordionDetails/AccordionDetails.js +2 -2
  440. package/node/AccordionSummary/AccordionSummary.js +2 -2
  441. package/node/Alert/Alert.js +2 -2
  442. package/node/AlertTitle/AlertTitle.js +2 -2
  443. package/node/AppBar/AppBar.js +4 -8
  444. package/node/Autocomplete/Autocomplete.js +12 -25
  445. package/node/Avatar/Avatar.js +5 -4
  446. package/node/AvatarGroup/AvatarGroup.js +39 -20
  447. package/node/Backdrop/Backdrop.js +4 -7
  448. package/node/Badge/Badge.js +2 -2
  449. package/node/BottomNavigation/BottomNavigation.js +2 -2
  450. package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
  451. package/node/Breadcrumbs/Breadcrumbs.js +2 -2
  452. package/node/Button/Button.js +2 -2
  453. package/node/ButtonBase/ButtonBase.js +22 -51
  454. package/node/ButtonBase/TouchRipple.js +2 -2
  455. package/node/ButtonGroup/ButtonGroup.js +2 -2
  456. package/node/Card/Card.js +2 -2
  457. package/node/CardActionArea/CardActionArea.js +2 -2
  458. package/node/CardActions/CardActions.js +2 -2
  459. package/node/CardContent/CardContent.js +2 -2
  460. package/node/CardHeader/CardHeader.js +2 -2
  461. package/node/CardMedia/CardMedia.js +2 -2
  462. package/node/Checkbox/Checkbox.js +2 -2
  463. package/node/Chip/Chip.js +2 -4
  464. package/node/CircularProgress/CircularProgress.js +2 -2
  465. package/node/Collapse/Collapse.js +3 -4
  466. package/node/CssBaseline/CssBaseline.js +70 -10
  467. package/node/DefaultPropsProvider/DefaultPropsProvider.js +38 -0
  468. package/node/DefaultPropsProvider/index.js +20 -0
  469. package/node/Dialog/Dialog.js +4 -7
  470. package/node/DialogActions/DialogActions.js +2 -2
  471. package/node/DialogContent/DialogContent.js +2 -2
  472. package/node/DialogContentText/DialogContentText.js +2 -2
  473. package/node/DialogTitle/DialogTitle.js +2 -2
  474. package/node/Divider/Divider.js +2 -2
  475. package/node/Drawer/Drawer.js +3 -4
  476. package/node/Fab/Fab.js +2 -2
  477. package/node/Fade/Fade.js +2 -2
  478. package/node/FilledInput/FilledInput.js +12 -10
  479. package/node/FilledInput/filledInputClasses.js +1 -1
  480. package/node/FormControl/FormControl.js +2 -2
  481. package/node/FormControlLabel/FormControlLabel.js +2 -2
  482. package/node/FormGroup/FormGroup.js +2 -2
  483. package/node/FormHelperText/FormHelperText.js +2 -2
  484. package/node/FormLabel/FormLabel.js +2 -2
  485. package/node/Grid/Grid.js +8 -13
  486. package/node/Grow/Grow.js +2 -2
  487. package/node/Hidden/Hidden.js +2 -0
  488. package/node/Icon/Icon.js +2 -2
  489. package/node/IconButton/IconButton.js +2 -4
  490. package/node/ImageList/ImageList.js +2 -10
  491. package/node/ImageListItem/ImageListItem.js +2 -2
  492. package/node/ImageListItemBar/ImageListItemBar.js +2 -2
  493. package/node/InitColorSchemeScript/InitColorSchemeScript.js +25 -0
  494. package/node/InitColorSchemeScript/index.js +13 -0
  495. package/node/Input/Input.js +4 -8
  496. package/node/InputAdornment/InputAdornment.js +2 -4
  497. package/node/InputBase/InputBase.js +30 -39
  498. package/node/InputLabel/InputLabel.js +2 -2
  499. package/node/LinearProgress/LinearProgress.js +2 -2
  500. package/node/Link/Link.js +7 -18
  501. package/node/List/List.js +2 -2
  502. package/node/ListItem/ListItem.js +8 -16
  503. package/node/ListItemAvatar/ListItemAvatar.js +2 -2
  504. package/node/ListItemButton/ListItemButton.js +2 -2
  505. package/node/ListItemIcon/ListItemIcon.js +2 -2
  506. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -2
  507. package/node/ListItemText/ListItemText.js +2 -2
  508. package/node/ListSubheader/ListSubheader.js +2 -2
  509. package/node/Menu/Menu.js +3 -6
  510. package/node/MenuItem/MenuItem.js +2 -2
  511. package/node/MobileStepper/MobileStepper.js +2 -2
  512. package/node/Modal/Modal.js +31 -24
  513. package/node/NativeSelect/NativeSelectInput.js +0 -4
  514. package/node/OutlinedInput/OutlinedInput.js +3 -4
  515. package/node/Pagination/Pagination.js +2 -2
  516. package/node/PaginationItem/PaginationItem.js +2 -2
  517. package/node/Paper/Paper.js +3 -4
  518. package/node/PigmentContainer/PigmentContainer.js +108 -0
  519. package/node/PigmentContainer/index.js +36 -0
  520. package/node/PigmentGrid/PigmentGrid.js +159 -0
  521. package/node/PigmentGrid/index.js +36 -0
  522. package/node/PigmentHidden/PigmentHidden.js +287 -0
  523. package/node/PigmentHidden/index.js +26 -0
  524. package/node/PigmentStack/PigmentStack.js +91 -0
  525. package/node/PigmentStack/index.js +36 -0
  526. package/node/Popover/Popover.js +29 -28
  527. package/node/Popper/Popper.js +15 -10
  528. package/node/Radio/Radio.js +2 -2
  529. package/node/Rating/Rating.js +6 -13
  530. package/node/ScopedCssBaseline/ScopedCssBaseline.js +27 -13
  531. package/node/Skeleton/Skeleton.js +2 -2
  532. package/node/Slide/Slide.js +2 -2
  533. package/node/Slider/Slider.js +3 -3
  534. package/node/Snackbar/Snackbar.js +3 -4
  535. package/node/SnackbarContent/SnackbarContent.js +2 -2
  536. package/node/SpeedDial/SpeedDial.js +3 -6
  537. package/node/SpeedDialAction/SpeedDialAction.js +2 -2
  538. package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
  539. package/node/Step/Step.js +2 -2
  540. package/node/StepButton/StepButton.js +2 -2
  541. package/node/StepConnector/StepConnector.js +2 -2
  542. package/node/StepContent/StepContent.js +2 -2
  543. package/node/StepIcon/StepIcon.js +2 -2
  544. package/node/StepLabel/StepLabel.js +2 -6
  545. package/node/Stepper/Stepper.js +6 -4
  546. package/node/Stepper/stepperClasses.js +1 -1
  547. package/node/SvgIcon/SvgIcon.js +2 -2
  548. package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
  549. package/node/Switch/Switch.js +2 -2
  550. package/node/Tab/Tab.js +13 -9
  551. package/node/Tab/tabClasses.js +1 -1
  552. package/node/TabScrollButton/TabScrollButton.js +2 -2
  553. package/node/Table/Table.js +2 -2
  554. package/node/TableBody/TableBody.js +2 -2
  555. package/node/TableCell/TableCell.js +2 -2
  556. package/node/TableContainer/TableContainer.js +2 -2
  557. package/node/TableFooter/TableFooter.js +2 -2
  558. package/node/TableHead/TableHead.js +2 -2
  559. package/node/TablePagination/TablePagination.js +2 -2
  560. package/node/TableRow/TableRow.js +2 -2
  561. package/node/TableSortLabel/TableSortLabel.js +3 -3
  562. package/node/TableSortLabel/tableSortLabelClasses.js +1 -1
  563. package/node/Tabs/Tabs.js +5 -14
  564. package/node/TextField/TextField.js +2 -2
  565. package/node/ToggleButton/ToggleButton.js +2 -2
  566. package/node/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
  567. package/node/Toolbar/Toolbar.js +2 -2
  568. package/node/Tooltip/Tooltip.js +9 -22
  569. package/node/Typography/Typography.js +4 -4
  570. package/node/Zoom/Zoom.js +2 -2
  571. package/node/index.js +1 -1
  572. package/node/locale/index.js +75 -2
  573. package/node/styles/CssVarsProvider.js +41 -14
  574. package/node/styles/createTheme.js +1 -1
  575. package/node/styles/createTransitions.js +2 -2
  576. package/node/styles/experimental_extendTheme.js +9 -360
  577. package/node/styles/extendTheme.js +370 -0
  578. package/node/styles/index.js +18 -1
  579. package/node/styles/responsiveFontSizes.js +3 -0
  580. package/node/styles/stringifyTheme.js +62 -0
  581. package/node/{useTouchRipple → useLazyRipple}/index.js +2 -2
  582. package/node/useLazyRipple/useLazyRipple.js +104 -0
  583. package/node/usePagination/usePagination.js +1 -1
  584. package/node/utils/index.js +0 -7
  585. package/node/zero-styled/index.js +33 -5
  586. package/package.json +24 -8
  587. package/styles/CssVarsProvider.d.ts +5 -3
  588. package/styles/CssVarsProvider.js +35 -12
  589. package/styles/createTheme.js +1 -1
  590. package/styles/createTransitions.js +2 -2
  591. package/styles/experimental_extendTheme.js +8 -354
  592. package/styles/{experimental_extendTheme.d.ts → extendTheme.d.ts} +1 -2
  593. package/styles/extendTheme.js +358 -0
  594. package/styles/index.d.ts +3 -2
  595. package/styles/index.js +3 -2
  596. package/styles/responsiveFontSizes.d.ts +3 -4
  597. package/styles/responsiveFontSizes.js +3 -0
  598. package/styles/stringifyTheme.d.ts +20 -0
  599. package/styles/stringifyTheme.js +55 -0
  600. package/themeCssVarsAugmentation/index.d.ts +1 -1
  601. package/types/OverridableComponentAugmentation.d.ts +2 -2
  602. package/useLazyRipple/index.d.ts +1 -0
  603. package/useLazyRipple/index.js +3 -0
  604. package/useLazyRipple/package.json +6 -0
  605. package/useLazyRipple/useLazyRipple.d.ts +32 -0
  606. package/useLazyRipple/useLazyRipple.js +85 -0
  607. package/usePagination/usePagination.js +1 -1
  608. package/utils/index.d.ts +0 -1
  609. package/utils/index.js +0 -1
  610. package/zero-styled/index.d.ts +10 -2
  611. package/zero-styled/index.js +24 -5
  612. package/modern/useMediaQuery/useMediaQueryTheme.js +0 -8
  613. package/modern/useTouchRipple/index.js +0 -3
  614. package/modern/useTouchRipple/useTouchRipple.js +0 -94
  615. package/modern/utils/scrollLeft.js +0 -1
  616. package/modern/utils/useIsFocusVisible.js +0 -4
  617. package/node/useMediaQuery/useMediaQueryTheme.js +0 -13
  618. package/node/useTouchRipple/useTouchRipple.js +0 -105
  619. package/node/utils/scrollLeft.js +0 -18
  620. package/node/utils/useIsFocusVisible.js +0 -10
  621. package/useMediaQuery/useMediaQueryTheme.d.ts +0 -3
  622. package/useMediaQuery/useMediaQueryTheme.js +0 -8
  623. package/useTouchRipple/index.d.ts +0 -1
  624. package/useTouchRipple/index.js +0 -3
  625. package/useTouchRipple/useTouchRipple.d.ts +0 -28
  626. package/useTouchRipple/useTouchRipple.js +0 -94
  627. package/utils/scrollLeft.js +0 -1
  628. package/utils/useIsFocusVisible.d.ts +0 -3
  629. package/utils/useIsFocusVisible.js +0 -4
@@ -20,8 +20,8 @@ export interface OverridableComponent<TypeMap extends OverridableTypeMap> {
20
20
  */
21
21
  component: RootComponent;
22
22
  } & OverrideProps<TypeMap, RootComponent>,
23
- ): JSX.Element | null;
24
- (props: DefaultComponentProps<TypeMap>): JSX.Element | null;
23
+ ): React.JSX.Element | null;
24
+ (props: DefaultComponentProps<TypeMap>): React.JSX.Element | null;
25
25
  }
26
26
 
27
27
  /**
@@ -80,10 +80,10 @@ export interface PaginationProps
80
80
  *
81
81
  * Demos:
82
82
  *
83
- * - [Pagination](https://mui.com/material-ui/react-pagination/)
83
+ * - [Pagination](https://next.mui.com/material-ui/react-pagination/)
84
84
  *
85
85
  * API:
86
86
  *
87
- * - [Pagination API](https://mui.com/material-ui/api/pagination/)
87
+ * - [Pagination API](https://next.mui.com/material-ui/api/pagination/)
88
88
  */
89
- export default function Pagination(props: PaginationProps): JSX.Element;
89
+ export default function Pagination(props: PaginationProps): React.JSX.Element;
@@ -8,9 +8,9 @@ import integerPropType from '@mui/utils/integerPropType';
8
8
  import { getPaginationUtilityClass } from './paginationClasses';
9
9
  import usePagination from '../usePagination';
10
10
  import PaginationItem from '../PaginationItem';
11
- import { styled, createUseThemeProps } from '../zero-styled';
11
+ import { styled } from '../zero-styled';
12
+ import { useDefaultProps } from '../DefaultPropsProvider';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
- const useThemeProps = createUseThemeProps('MuiPagination');
14
14
  const useUtilityClasses = ownerState => {
15
15
  const {
16
16
  classes,
@@ -51,7 +51,7 @@ function defaultGetAriaLabel(type, page, selected) {
51
51
  return `Go to ${type} page`;
52
52
  }
53
53
  const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(inProps, ref) {
54
- const props = useThemeProps({
54
+ const props = useDefaultProps({
55
55
  props: inProps,
56
56
  name: 'MuiPagination'
57
57
  });
@@ -118,11 +118,11 @@ export interface PaginationItemTypeMap<
118
118
  *
119
119
  * Demos:
120
120
  *
121
- * - [Pagination](https://mui.com/material-ui/react-pagination/)
121
+ * - [Pagination](https://next.mui.com/material-ui/react-pagination/)
122
122
  *
123
123
  * API:
124
124
  *
125
- * - [PaginationItem API](https://mui.com/material-ui/api/pagination-item/)
125
+ * - [PaginationItem API](https://next.mui.com/material-ui/api/pagination-item/)
126
126
  */
127
127
  declare const PaginationItem: OverridableComponent<PaginationItemTypeMap>;
128
128
 
@@ -14,9 +14,9 @@ import LastPageIcon from '../internal/svg-icons/LastPage';
14
14
  import NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore';
15
15
  import NavigateNextIcon from '../internal/svg-icons/NavigateNext';
16
16
  import useSlot from '../utils/useSlot';
17
- import { styled, createUseThemeProps } from '../zero-styled';
17
+ import { styled } from '../zero-styled';
18
+ import { useDefaultProps } from '../DefaultPropsProvider';
18
19
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
- const useThemeProps = createUseThemeProps('MuiPaginationItem');
20
20
  const overridesResolver = (props, styles) => {
21
21
  const {
22
22
  ownerState
@@ -266,7 +266,7 @@ const PaginationItemPageIcon = styled('div', {
266
266
  }]
267
267
  }));
268
268
  const PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(inProps, ref) {
269
- const props = useThemeProps({
269
+ const props = useDefaultProps({
270
270
  props: inProps,
271
271
  name: 'MuiPaginationItem'
272
272
  });
package/Paper/Paper.d.ts CHANGED
@@ -50,12 +50,12 @@ export interface PaperTypeMap<
50
50
  *
51
51
  * Demos:
52
52
  *
53
- * - [Card](https://mui.com/material-ui/react-card/)
54
- * - [Paper](https://mui.com/material-ui/react-paper/)
53
+ * - [Card](https://next.mui.com/material-ui/react-card/)
54
+ * - [Paper](https://next.mui.com/material-ui/react-paper/)
55
55
  *
56
56
  * API:
57
57
  *
58
- * - [Paper API](https://mui.com/material-ui/api/paper/)
58
+ * - [Paper API](https://next.mui.com/material-ui/api/paper/)
59
59
  */
60
60
  declare const Paper: OverridableComponent<PaperTypeMap>;
61
61
 
package/Paper/Paper.js CHANGED
@@ -7,12 +7,11 @@ import integerPropType from '@mui/utils/integerPropType';
7
7
  import chainPropTypes from '@mui/utils/chainPropTypes';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
9
  import { alpha } from '@mui/system/colorManipulator';
10
- import { styled, createUseThemeProps } from '../zero-styled';
10
+ import { styled, useTheme } from '../zero-styled';
11
+ import { useDefaultProps } from '../DefaultPropsProvider';
11
12
  import getOverlayAlpha from '../styles/getOverlayAlpha';
12
- import useTheme from '../styles/useTheme';
13
13
  import { getPaperUtilityClass } from './paperClasses';
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
- const useThemeProps = createUseThemeProps('MuiPaper');
16
15
  const useUtilityClasses = ownerState => {
17
16
  const {
18
17
  square,
@@ -65,7 +64,7 @@ const PaperRoot = styled('div', {
65
64
  }]
66
65
  }));
67
66
  const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
68
- const props = useThemeProps({
67
+ const props = useDefaultProps({
69
68
  props: inProps,
70
69
  name: 'MuiPaper'
71
70
  });
@@ -0,0 +1,55 @@
1
+ import * as React from 'react';
2
+ import { OverridableComponent, OverrideProps } from '@mui/types';
3
+ import { SxProps, Breakpoint } from '@mui/system';
4
+ import { Theme } from '../styles';
5
+ import { ContainerClasses } from '../Container/containerClasses';
6
+ export interface PigmentContainerOwnProps {
7
+ children?: React.ReactNode;
8
+ /**
9
+ * Override or extend the styles applied to the component.
10
+ */
11
+ classes?: Partial<ContainerClasses>;
12
+ /**
13
+ * If `true`, the left and right padding is removed.
14
+ * @default false
15
+ */
16
+ disableGutters?: boolean;
17
+ /**
18
+ * Set the max-width to match the min-width of the current breakpoint.
19
+ * This is useful if you'd prefer to design for a fixed set of sizes
20
+ * instead of trying to accommodate a fully fluid viewport.
21
+ * It's fluid by default.
22
+ * @default false
23
+ */
24
+ fixed?: boolean;
25
+ /**
26
+ * Determine the max-width of the container.
27
+ * The container width grows with the size of the screen.
28
+ * Set to `false` to disable `maxWidth`.
29
+ * @default 'lg'
30
+ */
31
+ maxWidth?: Breakpoint | false;
32
+ /**
33
+ * The system prop that allows defining system overrides as well as additional CSS styles.
34
+ */
35
+ sx?: SxProps<Theme>;
36
+ }
37
+ export interface PigmentContainerTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
38
+ props: AdditionalProps & PigmentContainerOwnProps;
39
+ defaultComponent: RootComponent;
40
+ }
41
+ export type PigmentContainerProps<RootComponent extends React.ElementType = PigmentContainerTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<PigmentContainerTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
42
+ component?: React.ElementType;
43
+ };
44
+ /**
45
+ *
46
+ * Demos:
47
+ *
48
+ * - [Container](https://next.mui.com/material-ui/react-container/)
49
+ *
50
+ * API:
51
+ *
52
+ * - [PigmentContainer API](https://next.mui.com/material-ui/api/pigment-container/)
53
+ */
54
+ declare const PigmentContainer: OverridableComponent<PigmentContainerTypeMap<{}, "div">>;
55
+ export default PigmentContainer;
@@ -0,0 +1,98 @@
1
+ import * as React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import clsx from 'clsx';
4
+ // @ts-ignore
5
+ import Container from '@mui/material-pigment-css/Container';
6
+ import capitalize from '@mui/utils/capitalize';
7
+ import composeClasses from '@mui/utils/composeClasses';
8
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const useUtilityClasses = ownerState => {
11
+ const {
12
+ classes,
13
+ fixed,
14
+ disableGutters,
15
+ maxWidth
16
+ } = ownerState;
17
+ const slots = {
18
+ root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
19
+ };
20
+ return composeClasses(slots, slot => generateUtilityClass('MuiContainer', slot), classes);
21
+ };
22
+ /**
23
+ *
24
+ * Demos:
25
+ *
26
+ * - [Container](https://next.mui.com/material-ui/react-container/)
27
+ *
28
+ * API:
29
+ *
30
+ * - [PigmentContainer API](https://next.mui.com/material-ui/api/pigment-container/)
31
+ */
32
+ const PigmentContainer = /*#__PURE__*/React.forwardRef(function PigmentContainer({
33
+ className,
34
+ disableGutters = false,
35
+ fixed = false,
36
+ maxWidth = 'lg',
37
+ ...props
38
+ }, ref) {
39
+ const ownerState = {
40
+ ...props,
41
+ disableGutters,
42
+ fixed,
43
+ maxWidth
44
+ };
45
+ const classes = useUtilityClasses(ownerState);
46
+ return /*#__PURE__*/_jsx(Container, {
47
+ className: clsx(classes.root, className),
48
+ disableGutters: disableGutters,
49
+ fixed: fixed,
50
+ maxWidth: maxWidth,
51
+ ...props,
52
+ // @ts-ignore
53
+ ref: ref
54
+ });
55
+ });
56
+ process.env.NODE_ENV !== "production" ? PigmentContainer.propTypes /* remove-proptypes */ = {
57
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
58
+ // │ These PropTypes are generated from the TypeScript type definitions. │
59
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
60
+ // └─────────────────────────────────────────────────────────────────────┘
61
+ /**
62
+ * @ignore
63
+ */
64
+ children: PropTypes.node,
65
+ /**
66
+ * Override or extend the styles applied to the component.
67
+ */
68
+ classes: PropTypes.object,
69
+ /**
70
+ * @ignore
71
+ */
72
+ className: PropTypes.string,
73
+ /**
74
+ * If `true`, the left and right padding is removed.
75
+ * @default false
76
+ */
77
+ disableGutters: PropTypes.bool,
78
+ /**
79
+ * Set the max-width to match the min-width of the current breakpoint.
80
+ * This is useful if you'd prefer to design for a fixed set of sizes
81
+ * instead of trying to accommodate a fully fluid viewport.
82
+ * It's fluid by default.
83
+ * @default false
84
+ */
85
+ fixed: PropTypes.bool,
86
+ /**
87
+ * Determine the max-width of the container.
88
+ * The container width grows with the size of the screen.
89
+ * Set to `false` to disable `maxWidth`.
90
+ * @default 'lg'
91
+ */
92
+ maxWidth: PropTypes.oneOf(['lg', 'md', 'sm', 'xl', 'xs', false]),
93
+ /**
94
+ * The system prop that allows defining system overrides as well as additional CSS styles.
95
+ */
96
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
97
+ } : void 0;
98
+ export default PigmentContainer;
@@ -0,0 +1,3 @@
1
+ export { default } from './PigmentContainer';
2
+ export * from './PigmentContainer';
3
+ export { default as containerClasses } from '../Container/containerClasses';
@@ -0,0 +1,3 @@
1
+ export { default } from './PigmentContainer';
2
+ export * from './PigmentContainer';
3
+ export { default as containerClasses } from '../Container/containerClasses';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/PigmentContainer/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,108 @@
1
+ import * as React from 'react';
2
+ import { OverridableComponent, OverrideProps } from '@mui/types';
3
+ import { SxProps } from '@mui/system';
4
+ import { Breakpoint, Theme } from '../styles';
5
+ type ResponsiveStyleValue<T> = T | Array<T | null> | {
6
+ [key in Breakpoint]?: T | null;
7
+ };
8
+ export type GridDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
9
+ export type GridSpacing = number | string;
10
+ export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
11
+ export type GridSize = 'auto' | 'grow' | number;
12
+ export interface GridBaseProps {
13
+ /**
14
+ * The content of the component.
15
+ */
16
+ children?: React.ReactNode;
17
+ /**
18
+ * The number of columns.
19
+ * @default 12
20
+ */
21
+ columns?: ResponsiveStyleValue<number>;
22
+ /**
23
+ * Defines the horizontal space between the type `item` components.
24
+ * It overrides the value of the `spacing` prop.
25
+ */
26
+ columnSpacing?: ResponsiveStyleValue<GridSpacing>;
27
+ /**
28
+ * If `true`, the component will have the flex *container* behavior.
29
+ * You should be wrapping *items* with a *container*.
30
+ * @default false
31
+ */
32
+ container?: boolean;
33
+ /**
34
+ * Defines the `flex-direction` style property.
35
+ * It is applied for all screen sizes.
36
+ * @default 'row'
37
+ */
38
+ direction?: ResponsiveStyleValue<GridDirection>;
39
+ /**
40
+ * Defines the offset of the grid.
41
+ */
42
+ offset?: ResponsiveStyleValue<number> | undefined;
43
+ /**
44
+ * @internal
45
+ * The level of the grid starts from `0`
46
+ * and increases when the grid nests inside another grid regardless of container or item.
47
+ *
48
+ * ```js
49
+ * <Grid> // level 0
50
+ * <Grid> // level 1
51
+ * <Grid> // level 2
52
+ * <Grid> // level 1
53
+ * ```
54
+ *
55
+ * Only consecutive grid is considered nesting.
56
+ * A grid container will start at `0` if there are non-Grid element above it.
57
+ *
58
+ * ```js
59
+ * <Grid> // level 0
60
+ * <div>
61
+ * <Grid> // level 0
62
+ * <Grid> // level 1
63
+ * ```
64
+ */
65
+ unstable_level?: number;
66
+ /**
67
+ * Defines the vertical space between the type `item` components.
68
+ * It overrides the value of the `spacing` prop.
69
+ */
70
+ rowSpacing?: ResponsiveStyleValue<GridSpacing>;
71
+ /**
72
+ * Defines the space between the type `item` components.
73
+ * It can only be used on a type `container` component.
74
+ * @default 0
75
+ */
76
+ spacing?: ResponsiveStyleValue<GridSpacing> | undefined;
77
+ /**
78
+ * Defines the column size of the grid.
79
+ */
80
+ size?: ResponsiveStyleValue<GridSize> | undefined;
81
+ /**
82
+ * Defines the `flex-wrap` style property.
83
+ * It's applied for all screen sizes.
84
+ * @default 'wrap'
85
+ */
86
+ wrap?: GridWrap;
87
+ }
88
+ export interface GridTypeMap<AdditionalProps = {}, DefaultComponent extends React.ElementType = 'div'> {
89
+ props: AdditionalProps & GridBaseProps & {
90
+ sx?: SxProps<Theme>;
91
+ };
92
+ defaultComponent: DefaultComponent;
93
+ }
94
+ export type GridProps<RootComponent extends React.ElementType = GridTypeMap['defaultComponent'], AdditionalProps = {
95
+ component?: React.ElementType;
96
+ }> = OverrideProps<GridTypeMap<AdditionalProps, RootComponent>, RootComponent>;
97
+ /**
98
+ *
99
+ * Demos:
100
+ *
101
+ * - [Grid version 2](https://next.mui.com/material-ui/react-grid2/)
102
+ *
103
+ * API:
104
+ *
105
+ * - [PigmentGrid API](https://next.mui.com/material-ui/api/pigment-grid/)
106
+ */
107
+ declare const PigmentGrid: OverridableComponent<GridTypeMap<{}, "div">>;
108
+ export default PigmentGrid;
@@ -0,0 +1,149 @@
1
+ import * as React from 'react';
2
+ import clsx from 'clsx';
3
+ import PropTypes from 'prop-types';
4
+ // @ts-ignore
5
+ import Grid from '@mui/material-pigment-css/Grid';
6
+ import composeClasses from '@mui/utils/composeClasses';
7
+ import generateUtilityClass from '@mui/utils/generateUtilityClass';
8
+ import { generateDirectionClasses, generateSizeClassNames, generateSpacingClassNames } from '@mui/system/Unstable_Grid/gridGenerator';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ const useUtilityClasses = ownerState => {
11
+ const {
12
+ container,
13
+ direction,
14
+ size,
15
+ spacing
16
+ } = ownerState;
17
+ let gridSize = {};
18
+ if (size) {
19
+ if (Array.isArray(size)) {
20
+ size.forEach((value, index) => {
21
+ gridSize = {
22
+ ...gridSize,
23
+ [index]: value
24
+ };
25
+ });
26
+ }
27
+ if (typeof size === 'object') {
28
+ gridSize = size;
29
+ }
30
+ }
31
+ const slots = {
32
+ root: ['root', container && 'container', ...generateDirectionClasses(direction), ...generateSizeClassNames(gridSize), ...(container ? generateSpacingClassNames(spacing) : [])]
33
+ };
34
+ return composeClasses(slots, slot => generateUtilityClass('MuiGrid2', slot), {});
35
+ };
36
+ /**
37
+ *
38
+ * Demos:
39
+ *
40
+ * - [Grid version 2](https://next.mui.com/material-ui/react-grid2/)
41
+ *
42
+ * API:
43
+ *
44
+ * - [PigmentGrid API](https://next.mui.com/material-ui/api/pigment-grid/)
45
+ */
46
+ const PigmentGrid = /*#__PURE__*/React.forwardRef(function PigmentGrid(props, ref) {
47
+ const {
48
+ className,
49
+ ...other
50
+ } = props;
51
+ const classes = useUtilityClasses(props);
52
+ return /*#__PURE__*/_jsx(Grid, {
53
+ ref: ref,
54
+ className: clsx(classes.root, className),
55
+ ...other
56
+ });
57
+ });
58
+ process.env.NODE_ENV !== "production" ? PigmentGrid.propTypes /* remove-proptypes */ = {
59
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
60
+ // │ These PropTypes are generated from the TypeScript type definitions. │
61
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
62
+ // └─────────────────────────────────────────────────────────────────────┘
63
+ /**
64
+ * The content of the component.
65
+ */
66
+ children: PropTypes.node,
67
+ /**
68
+ * @ignore
69
+ */
70
+ className: PropTypes.string,
71
+ /**
72
+ * The number of columns.
73
+ * @default 12
74
+ */
75
+ columns: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
76
+ /**
77
+ * Defines the horizontal space between the type `item` components.
78
+ * It overrides the value of the `spacing` prop.
79
+ */
80
+ columnSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.object, PropTypes.string]),
81
+ /**
82
+ * If `true`, the component will have the flex *container* behavior.
83
+ * You should be wrapping *items* with a *container*.
84
+ * @default false
85
+ */
86
+ container: PropTypes.bool,
87
+ /**
88
+ * Defines the `flex-direction` style property.
89
+ * It is applied for all screen sizes.
90
+ * @default 'row'
91
+ */
92
+ direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['column', 'column-reverse', 'row', 'row-reverse']), PropTypes.arrayOf(PropTypes.oneOf(['column', 'column-reverse', 'row', 'row-reverse'])), PropTypes.object]),
93
+ /**
94
+ * Defines the offset of the grid.
95
+ */
96
+ offset: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
97
+ /**
98
+ * Defines the vertical space between the type `item` components.
99
+ * It overrides the value of the `spacing` prop.
100
+ */
101
+ rowSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.object, PropTypes.string]),
102
+ /**
103
+ * Defines the column size of the grid.
104
+ */
105
+ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),
106
+ /**
107
+ * Defines the space between the type `item` components.
108
+ * It can only be used on a type `container` component.
109
+ * @default 0
110
+ */
111
+ spacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.object, PropTypes.string]),
112
+ /**
113
+ * @ignore
114
+ */
115
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
116
+ /**
117
+ * @internal
118
+ * The level of the grid starts from `0`
119
+ * and increases when the grid nests inside another grid regardless of container or item.
120
+ *
121
+ * ```js
122
+ * <Grid> // level 0
123
+ * <Grid> // level 1
124
+ * <Grid> // level 2
125
+ * <Grid> // level 1
126
+ * ```
127
+ *
128
+ * Only consecutive grid is considered nesting.
129
+ * A grid container will start at `0` if there are non-Grid element above it.
130
+ *
131
+ * ```js
132
+ * <Grid> // level 0
133
+ * <div>
134
+ * <Grid> // level 0
135
+ * <Grid> // level 1
136
+ * ```
137
+ */
138
+ unstable_level: PropTypes.number,
139
+ /**
140
+ * Defines the `flex-wrap` style property.
141
+ * It's applied for all screen sizes.
142
+ * @default 'wrap'
143
+ */
144
+ wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])
145
+ } : void 0;
146
+
147
+ // @ts-ignore internal logic for nested grid
148
+ PigmentGrid.muiName = 'Grid';
149
+ export default PigmentGrid;
@@ -0,0 +1,3 @@
1
+ export { default } from './PigmentGrid';
2
+ export * from './PigmentGrid';
3
+ export { default as grid2Classes } from '../Unstable_Grid2/grid2Classes';
@@ -0,0 +1,3 @@
1
+ export { default } from './PigmentGrid';
2
+ export * from './PigmentGrid';
3
+ export { default as grid2Classes } from '../Unstable_Grid2/grid2Classes';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "module": "./index.js",
4
- "main": "../node/useTouchRipple/index.js",
4
+ "main": "../node/PigmentGrid/index.js",
5
5
  "types": "./index.d.ts"
6
6
  }
@@ -0,0 +1,97 @@
1
+ import * as React from 'react';
2
+ import { Breakpoint } from '@mui/system';
3
+ export interface HiddenProps {
4
+ /**
5
+ * The content of the component.
6
+ */
7
+ children?: React.ReactNode;
8
+ /**
9
+ * Specify which implementation to use. 'js' is the default, 'css' works better for
10
+ * server-side rendering.
11
+ * @default 'js'
12
+ */
13
+ implementation?: 'js' | 'css';
14
+ /**
15
+ * You can use this prop when choosing the `js` implementation with server-side rendering.
16
+ *
17
+ * As `window.innerWidth` is unavailable on the server,
18
+ * we default to rendering an empty component during the first mount.
19
+ * You might want to use a heuristic to approximate
20
+ * the screen width of the client browser screen width.
21
+ *
22
+ * For instance, you could be using the user-agent or the client-hints.
23
+ * https://caniuse.com/#search=client%20hint
24
+ */
25
+ initialWidth?: Breakpoint;
26
+ /**
27
+ * If `true`, component is hidden on screens below (but not including) this size.
28
+ * @default false
29
+ */
30
+ lgDown?: boolean;
31
+ /**
32
+ * If `true`, component is hidden on screens this size and above.
33
+ * @default false
34
+ */
35
+ lgUp?: boolean;
36
+ /**
37
+ * If `true`, component is hidden on screens below (but not including) this size.
38
+ * @default false
39
+ */
40
+ mdDown?: boolean;
41
+ /**
42
+ * If `true`, component is hidden on screens this size and above.
43
+ * @default false
44
+ */
45
+ mdUp?: boolean;
46
+ /**
47
+ * Hide the given breakpoint(s).
48
+ */
49
+ only?: Breakpoint | Breakpoint[];
50
+ /**
51
+ * If `true`, component is hidden on screens below (but not including) this size.
52
+ * @default false
53
+ */
54
+ smDown?: boolean;
55
+ /**
56
+ * If `true`, component is hidden on screens this size and above.
57
+ * @default false
58
+ */
59
+ smUp?: boolean;
60
+ /**
61
+ * If `true`, component is hidden on screens below (but not including) this size.
62
+ * @default false
63
+ */
64
+ xlDown?: boolean;
65
+ /**
66
+ * If `true`, component is hidden on screens this size and above.
67
+ * @default false
68
+ */
69
+ xlUp?: boolean;
70
+ /**
71
+ * If `true`, component is hidden on screens below (but not including) this size.
72
+ * @default false
73
+ */
74
+ xsDown?: boolean;
75
+ /**
76
+ * If `true`, component is hidden on screens this size and above.
77
+ * @default false
78
+ */
79
+ xsUp?: boolean;
80
+ }
81
+ /**
82
+ *
83
+ * Demos:
84
+ *
85
+ * - [Hidden](https://next.mui.com/material-ui/react-hidden/)
86
+ *
87
+ * API:
88
+ *
89
+ * - [PigmentHidden API](https://next.mui.com/material-ui/api/pigment-hidden/)
90
+ */
91
+ declare function PigmentHidden({ implementation, ...props }: HiddenProps & {
92
+ className?: string;
93
+ }): React.JSX.Element;
94
+ declare namespace PigmentHidden {
95
+ var propTypes: any;
96
+ }
97
+ export default PigmentHidden;