@mui/material 5.5.3 → 5.6.2

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 (530) hide show
  1. package/Accordion/Accordion.d.ts +4 -4
  2. package/Accordion/Accordion.js +1 -1
  3. package/Accordion/accordionClasses.d.ts +18 -18
  4. package/AccordionActions/AccordionActions.d.ts +2 -2
  5. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  6. package/AccordionDetails/AccordionDetails.d.ts +2 -2
  7. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  8. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  9. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  10. package/Alert/Alert.d.ts +5 -5
  11. package/Alert/Alert.js +2 -2
  12. package/Alert/alertClasses.d.ts +44 -44
  13. package/AlertTitle/AlertTitle.d.ts +2 -2
  14. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  15. package/AppBar/AppBar.d.ts +4 -4
  16. package/AppBar/AppBar.js +1 -1
  17. package/AppBar/appBarClasses.d.ts +28 -28
  18. package/Autocomplete/Autocomplete.d.ts +8 -8
  19. package/Autocomplete/Autocomplete.js +8 -6
  20. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  21. package/Avatar/Avatar.d.ts +2 -2
  22. package/Avatar/avatarClasses.d.ts +20 -20
  23. package/AvatarGroup/AvatarGroup.d.ts +2 -2
  24. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  25. package/Backdrop/Backdrop.d.ts +3 -3
  26. package/Backdrop/backdropClasses.d.ts +10 -10
  27. package/Badge/Badge.d.ts +25 -12
  28. package/Badge/Badge.js +48 -24
  29. package/Badge/badgeClasses.d.ts +24 -0
  30. package/Badge/badgeClasses.js +8 -0
  31. package/Badge/index.d.ts +3 -0
  32. package/Badge/index.js +2 -1
  33. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  34. package/BottomNavigation/BottomNavigation.js +0 -0
  35. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  36. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  37. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  38. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  39. package/Breadcrumbs/Breadcrumbs.js +1 -1
  40. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  41. package/Button/Button.d.ts +5 -5
  42. package/Button/Button.js +102 -97
  43. package/Button/buttonClasses.d.ts +76 -76
  44. package/ButtonBase/ButtonBase.d.ts +2 -2
  45. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  46. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  47. package/ButtonGroup/ButtonGroup.d.ts +3 -3
  48. package/ButtonGroup/ButtonGroup.js +1 -1
  49. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  50. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  51. package/CHANGELOG.md +210 -32
  52. package/Card/Card.d.ts +3 -3
  53. package/Card/cardClasses.d.ts +8 -8
  54. package/CardActionArea/CardActionArea.d.ts +3 -3
  55. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  56. package/CardActions/CardActions.d.ts +2 -2
  57. package/CardActions/cardActionsClasses.d.ts +10 -10
  58. package/CardContent/CardContent.d.ts +2 -2
  59. package/CardContent/cardContentClasses.d.ts +8 -8
  60. package/CardHeader/CardHeader.d.ts +2 -2
  61. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  62. package/CardMedia/CardMedia.d.ts +2 -2
  63. package/CardMedia/cardMediaClasses.d.ts +12 -12
  64. package/Checkbox/Checkbox.d.ts +5 -5
  65. package/Checkbox/Checkbox.js +1 -1
  66. package/Checkbox/checkboxClasses.d.ts +18 -18
  67. package/Chip/Chip.d.ts +3 -3
  68. package/Chip/Chip.js +1 -1
  69. package/Chip/chipClasses.d.ts +80 -80
  70. package/CircularProgress/CircularProgress.d.ts +3 -3
  71. package/CircularProgress/CircularProgress.js +1 -1
  72. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  73. package/ClickAwayListener/index.d.ts +2 -2
  74. package/Collapse/Collapse.d.ts +5 -5
  75. package/Collapse/Collapse.js +1 -1
  76. package/Collapse/collapseClasses.d.ts +18 -18
  77. package/Container/Container.d.ts +2 -2
  78. package/Container/containerClasses.d.ts +22 -22
  79. package/CssBaseline/CssBaseline.d.ts +2 -2
  80. package/Dialog/Dialog.d.ts +6 -5
  81. package/Dialog/Dialog.js +3 -2
  82. package/Dialog/DialogContext.d.ts +6 -6
  83. package/Dialog/dialogClasses.d.ts +36 -36
  84. package/DialogActions/DialogActions.d.ts +2 -2
  85. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  86. package/DialogContent/DialogContent.d.ts +2 -2
  87. package/DialogContent/dialogContentClasses.d.ts +10 -10
  88. package/DialogContentText/DialogContentText.d.ts +3 -3
  89. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  90. package/DialogTitle/DialogTitle.d.ts +2 -2
  91. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  92. package/Divider/Divider.d.ts +3 -3
  93. package/Divider/dividerClasses.d.ts +34 -34
  94. package/Drawer/Drawer.d.ts +6 -6
  95. package/Drawer/Drawer.js +4 -4
  96. package/Drawer/drawerClasses.d.ts +30 -30
  97. package/Fab/Fab.d.ts +4 -4
  98. package/Fab/Fab.js +1 -1
  99. package/Fab/fabClasses.d.ts +26 -26
  100. package/Fade/Fade.d.ts +3 -3
  101. package/Fade/Fade.js +1 -1
  102. package/FilledInput/FilledInput.d.ts +3 -3
  103. package/FilledInput/FilledInput.js +5 -3
  104. package/FilledInput/filledInputClasses.d.ts +40 -40
  105. package/FormControl/FormControl.d.ts +7 -7
  106. package/FormControl/FormControl.js +2 -2
  107. package/FormControl/formControlClasses.d.ts +14 -14
  108. package/FormControlLabel/FormControlLabel.d.ts +4 -4
  109. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  110. package/FormGroup/FormGroup.d.ts +3 -3
  111. package/FormGroup/formGroupClasses.d.ts +12 -12
  112. package/FormHelperText/FormHelperText.d.ts +2 -2
  113. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  114. package/FormLabel/FormLabel.d.ts +5 -5
  115. package/FormLabel/FormLabel.js +1 -1
  116. package/FormLabel/formLabelClasses.d.ts +22 -22
  117. package/GlobalStyles/GlobalStyles.d.ts +2 -2
  118. package/Grid/Grid.d.ts +2 -2
  119. package/Grid/gridClasses.d.ts +48 -48
  120. package/Grow/Grow.d.ts +5 -5
  121. package/Grow/Grow.js +8 -8
  122. package/Hidden/Hidden.d.ts +2 -2
  123. package/Icon/Icon.d.ts +4 -4
  124. package/Icon/Icon.js +1 -1
  125. package/Icon/iconClasses.d.ts +24 -24
  126. package/IconButton/IconButton.d.ts +5 -5
  127. package/IconButton/IconButton.js +2 -2
  128. package/IconButton/iconButtonClasses.d.ts +26 -26
  129. package/ImageList/ImageList.d.ts +2 -2
  130. package/ImageList/imageListClasses.d.ts +16 -16
  131. package/ImageListItem/ImageListItem.d.ts +2 -2
  132. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  133. package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  134. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  135. package/Input/Input.d.ts +3 -3
  136. package/Input/Input.js +5 -3
  137. package/Input/inputClasses.d.ts +34 -34
  138. package/InputAdornment/InputAdornment.d.ts +2 -2
  139. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  140. package/InputBase/InputBase.d.ts +4 -4
  141. package/InputBase/InputBase.js +2 -2
  142. package/InputBase/inputBaseClasses.d.ts +44 -44
  143. package/InputLabel/InputLabel.d.ts +3 -3
  144. package/InputLabel/InputLabel.js +1 -1
  145. package/InputLabel/inputLabelClasses.d.ts +32 -32
  146. package/LinearProgress/LinearProgress.d.ts +3 -3
  147. package/LinearProgress/LinearProgress.js +1 -1
  148. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  149. package/Link/Link.d.ts +5 -5
  150. package/Link/Link.js +15 -6
  151. package/Link/linkClasses.d.ts +18 -18
  152. package/List/List.d.ts +3 -3
  153. package/List/listClasses.d.ts +14 -14
  154. package/ListItem/ListItem.d.ts +8 -8
  155. package/ListItem/ListItem.js +4 -4
  156. package/ListItem/listItemClasses.d.ts +30 -30
  157. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  158. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  159. package/ListItemButton/ListItemButton.d.ts +3 -3
  160. package/ListItemButton/ListItemButton.js +1 -0
  161. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  162. package/ListItemIcon/ListItemIcon.d.ts +2 -2
  163. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  164. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  165. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  166. package/ListItemText/ListItemText.d.ts +2 -2
  167. package/ListItemText/listItemTextClasses.d.ts +18 -18
  168. package/ListSubheader/ListSubheader.d.ts +2 -2
  169. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  170. package/Menu/Menu.d.ts +6 -6
  171. package/Menu/Menu.js +2 -2
  172. package/Menu/menuClasses.d.ts +12 -12
  173. package/MenuItem/MenuItem.d.ts +3 -3
  174. package/MenuItem/menuItemClasses.d.ts +20 -20
  175. package/MenuList/MenuList.d.ts +4 -4
  176. package/MenuList/MenuList.js +1 -1
  177. package/MobileStepper/MobileStepper.d.ts +3 -3
  178. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  179. package/Modal/Modal.d.ts +8 -8
  180. package/Modal/Modal.js +7 -6
  181. package/NativeSelect/NativeSelect.d.ts +3 -3
  182. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  183. package/OutlinedInput/OutlinedInput.d.ts +3 -3
  184. package/OutlinedInput/OutlinedInput.js +2 -2
  185. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  186. package/Pagination/Pagination.d.ts +4 -4
  187. package/Pagination/Pagination.js +2 -2
  188. package/Pagination/paginationClasses.d.ts +14 -14
  189. package/PaginationItem/PaginationItem.d.ts +3 -3
  190. package/PaginationItem/PaginationItem.js +1 -1
  191. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  192. package/Paper/Paper.d.ts +3 -3
  193. package/Paper/paperClasses.d.ts +39 -39
  194. package/Popover/Popover.d.ts +6 -6
  195. package/Popover/Popover.js +2 -2
  196. package/Popover/popoverClasses.d.ts +10 -10
  197. package/Popper/Popper.d.ts +29 -29
  198. package/Popper/Popper.js +4 -4
  199. package/README.md +7 -8
  200. package/Radio/Radio.d.ts +4 -4
  201. package/Radio/Radio.js +1 -1
  202. package/Radio/radioClasses.d.ts +16 -16
  203. package/RadioGroup/RadioGroup.d.ts +3 -3
  204. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  205. package/RadioGroup/useRadioGroup.d.ts +4 -4
  206. package/Rating/Rating.d.ts +3 -3
  207. package/Rating/Rating.js +1 -1
  208. package/Rating/ratingClasses.d.ts +40 -40
  209. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  210. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  211. package/Select/Select.d.ts +5 -5
  212. package/Select/Select.js +2 -2
  213. package/Select/SelectInput.js +24 -3
  214. package/Select/selectClasses.d.ts +30 -30
  215. package/Skeleton/Skeleton.d.ts +2 -2
  216. package/Skeleton/skeletonClasses.d.ts +24 -24
  217. package/Slide/Slide.d.ts +4 -4
  218. package/Slide/Slide.js +1 -1
  219. package/Slider/Slider.d.ts +4 -4
  220. package/Slider/Slider.js +1 -1
  221. package/Snackbar/Snackbar.d.ts +4 -4
  222. package/Snackbar/Snackbar.js +2 -2
  223. package/Snackbar/snackbarClasses.d.ts +20 -20
  224. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  225. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  226. package/SpeedDial/SpeedDial.d.ts +4 -4
  227. package/SpeedDial/SpeedDial.js +2 -2
  228. package/SpeedDial/speedDialClasses.d.ts +22 -22
  229. package/SpeedDialAction/SpeedDialAction.d.ts +5 -5
  230. package/SpeedDialAction/SpeedDialAction.js +2 -2
  231. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  232. package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  233. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  234. package/Stack/Stack.d.ts +2 -2
  235. package/Step/Step.d.ts +2 -2
  236. package/Step/StepContext.d.ts +20 -20
  237. package/Step/stepClasses.d.ts +16 -16
  238. package/StepButton/StepButton.d.ts +3 -3
  239. package/StepButton/stepButtonClasses.d.ts +14 -14
  240. package/StepConnector/StepConnector.d.ts +2 -2
  241. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  242. package/StepContent/StepContent.d.ts +3 -3
  243. package/StepContent/StepContent.js +1 -1
  244. package/StepContent/stepContentClasses.d.ts +12 -12
  245. package/StepIcon/StepIcon.d.ts +2 -2
  246. package/StepIcon/stepIconClasses.d.ts +16 -16
  247. package/StepLabel/StepLabel.d.ts +4 -4
  248. package/StepLabel/StepLabel.js +2 -2
  249. package/StepLabel/stepLabelClasses.d.ts +28 -28
  250. package/Stepper/Stepper.d.ts +2 -2
  251. package/Stepper/stepperClasses.d.ts +14 -14
  252. package/SvgIcon/SvgIcon.d.ts +4 -4
  253. package/SvgIcon/SvgIcon.js +1 -1
  254. package/SvgIcon/svgIconClasses.d.ts +24 -24
  255. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  256. package/Switch/Switch.d.ts +5 -5
  257. package/Switch/Switch.js +1 -1
  258. package/Switch/switchClasses.d.ts +32 -32
  259. package/Tab/Tab.d.ts +3 -3
  260. package/Tab/tabClasses.d.ts +26 -26
  261. package/TabScrollButton/TabScrollButton.d.ts +2 -2
  262. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  263. package/Table/Table.d.ts +2 -2
  264. package/Table/tableClasses.d.ts +10 -10
  265. package/TableBody/TableBody.d.ts +2 -2
  266. package/TableBody/tableBodyClasses.d.ts +8 -8
  267. package/TableCell/TableCell.d.ts +2 -2
  268. package/TableCell/tableCellClasses.d.ts +32 -32
  269. package/TableContainer/TableContainer.d.ts +2 -2
  270. package/TableContainer/tableContainerClasses.d.ts +8 -8
  271. package/TableFooter/TableFooter.d.ts +2 -2
  272. package/TableFooter/tableFooterClasses.d.ts +8 -8
  273. package/TableHead/TableHead.d.ts +2 -2
  274. package/TableHead/tableHeadClasses.d.ts +8 -8
  275. package/TablePagination/TablePagination.d.ts +9 -9
  276. package/TablePagination/TablePagination.js +6 -6
  277. package/TablePagination/TablePaginationActions.d.ts +1 -1
  278. package/TablePagination/TablePaginationActions.js +3 -3
  279. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  280. package/TableRow/TableRow.d.ts +2 -2
  281. package/TableRow/tableRowClasses.d.ts +16 -16
  282. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  283. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  284. package/Tabs/Tabs.d.ts +3 -3
  285. package/Tabs/Tabs.js +1 -1
  286. package/Tabs/tabsClasses.d.ts +32 -32
  287. package/TextField/TextField.d.ts +21 -22
  288. package/TextField/TextField.js +13 -13
  289. package/TextField/textFieldClasses.d.ts +8 -8
  290. package/ToggleButton/ToggleButton.d.ts +4 -4
  291. package/ToggleButton/ToggleButton.js +1 -1
  292. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  293. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -3
  294. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  295. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  296. package/Toolbar/Toolbar.d.ts +2 -2
  297. package/Toolbar/toolbarClasses.d.ts +14 -14
  298. package/Tooltip/Tooltip.d.ts +4 -4
  299. package/Tooltip/Tooltip.js +2 -2
  300. package/Tooltip/tooltipClasses.d.ts +30 -30
  301. package/Typography/Typography.d.ts +3 -3
  302. package/Typography/typographyClasses.d.ts +50 -50
  303. package/Zoom/Zoom.d.ts +3 -3
  304. package/Zoom/Zoom.js +1 -1
  305. package/className/index.d.ts +8 -8
  306. package/darkScrollbar/index.d.ts +28 -28
  307. package/index.js +1 -1
  308. package/internal/switchBaseClasses.d.ts +12 -12
  309. package/legacy/Accordion/Accordion.js +1 -1
  310. package/legacy/Alert/Alert.js +2 -2
  311. package/legacy/AppBar/AppBar.js +1 -1
  312. package/legacy/Autocomplete/Autocomplete.js +8 -6
  313. package/legacy/Badge/Badge.js +49 -24
  314. package/legacy/Badge/badgeClasses.js +8 -0
  315. package/legacy/Badge/index.js +2 -1
  316. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  317. package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
  318. package/legacy/Button/Button.js +31 -30
  319. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  320. package/legacy/Checkbox/Checkbox.js +1 -1
  321. package/legacy/Chip/Chip.js +1 -1
  322. package/legacy/CircularProgress/CircularProgress.js +1 -1
  323. package/legacy/Collapse/Collapse.js +1 -1
  324. package/legacy/Dialog/Dialog.js +3 -2
  325. package/legacy/Drawer/Drawer.js +4 -4
  326. package/legacy/Fab/Fab.js +1 -1
  327. package/legacy/Fade/Fade.js +1 -1
  328. package/legacy/FilledInput/FilledInput.js +5 -3
  329. package/legacy/FormControl/FormControl.js +2 -2
  330. package/legacy/FormLabel/FormLabel.js +1 -1
  331. package/legacy/Grow/Grow.js +8 -8
  332. package/legacy/Icon/Icon.js +1 -1
  333. package/legacy/IconButton/IconButton.js +2 -2
  334. package/legacy/Input/Input.js +5 -3
  335. package/legacy/InputBase/InputBase.js +2 -2
  336. package/legacy/InputLabel/InputLabel.js +1 -1
  337. package/legacy/LinearProgress/LinearProgress.js +1 -1
  338. package/legacy/Link/Link.js +16 -5
  339. package/legacy/ListItem/ListItem.js +4 -4
  340. package/legacy/ListItemButton/ListItemButton.js +1 -0
  341. package/legacy/Menu/Menu.js +2 -2
  342. package/legacy/MenuList/MenuList.js +1 -1
  343. package/legacy/Modal/Modal.js +7 -6
  344. package/legacy/OutlinedInput/OutlinedInput.js +2 -2
  345. package/legacy/Pagination/Pagination.js +2 -2
  346. package/legacy/PaginationItem/PaginationItem.js +1 -1
  347. package/legacy/Popover/Popover.js +2 -2
  348. package/legacy/Popper/Popper.js +4 -4
  349. package/legacy/Radio/Radio.js +1 -1
  350. package/legacy/Rating/Rating.js +1 -1
  351. package/legacy/Select/Select.js +2 -2
  352. package/legacy/Select/SelectInput.js +26 -3
  353. package/legacy/Slide/Slide.js +1 -1
  354. package/legacy/Slider/Slider.js +1 -1
  355. package/legacy/Snackbar/Snackbar.js +2 -2
  356. package/legacy/SpeedDial/SpeedDial.js +2 -2
  357. package/legacy/SpeedDialAction/SpeedDialAction.js +2 -2
  358. package/legacy/StepContent/StepContent.js +1 -1
  359. package/legacy/StepLabel/StepLabel.js +2 -2
  360. package/legacy/SvgIcon/SvgIcon.js +1 -1
  361. package/legacy/Switch/Switch.js +1 -1
  362. package/legacy/TablePagination/TablePagination.js +6 -6
  363. package/legacy/TablePagination/TablePaginationActions.js +3 -3
  364. package/legacy/Tabs/Tabs.js +1 -1
  365. package/legacy/TextField/TextField.js +13 -13
  366. package/legacy/ToggleButton/ToggleButton.js +1 -1
  367. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  368. package/legacy/Tooltip/Tooltip.js +2 -2
  369. package/legacy/Zoom/Zoom.js +1 -1
  370. package/legacy/index.js +1 -1
  371. package/legacy/locale/index.js +115 -111
  372. package/legacy/styles/CssVarsProvider.js +31 -0
  373. package/legacy/styles/experimental_extendTheme.js +96 -0
  374. package/legacy/styles/index.js +3 -1
  375. package/locale/index.d.ts +71 -71
  376. package/locale/index.js +6 -3
  377. package/modern/Accordion/Accordion.js +1 -1
  378. package/modern/Alert/Alert.js +2 -2
  379. package/modern/AppBar/AppBar.js +1 -1
  380. package/modern/Autocomplete/Autocomplete.js +8 -6
  381. package/modern/Badge/Badge.js +45 -21
  382. package/modern/Badge/badgeClasses.js +8 -0
  383. package/modern/Badge/index.js +2 -1
  384. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  385. package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
  386. package/modern/Button/Button.js +30 -29
  387. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  388. package/modern/Checkbox/Checkbox.js +1 -1
  389. package/modern/Chip/Chip.js +1 -1
  390. package/modern/CircularProgress/CircularProgress.js +1 -1
  391. package/modern/Collapse/Collapse.js +1 -1
  392. package/modern/Dialog/Dialog.js +3 -2
  393. package/modern/Drawer/Drawer.js +4 -4
  394. package/modern/Fab/Fab.js +1 -1
  395. package/modern/Fade/Fade.js +1 -1
  396. package/modern/FilledInput/FilledInput.js +5 -3
  397. package/modern/FormControl/FormControl.js +2 -2
  398. package/modern/FormLabel/FormLabel.js +1 -1
  399. package/modern/Grow/Grow.js +8 -8
  400. package/modern/Icon/Icon.js +1 -1
  401. package/modern/IconButton/IconButton.js +2 -2
  402. package/modern/Input/Input.js +5 -3
  403. package/modern/InputBase/InputBase.js +2 -2
  404. package/modern/InputLabel/InputLabel.js +1 -1
  405. package/modern/LinearProgress/LinearProgress.js +1 -1
  406. package/modern/Link/Link.js +15 -6
  407. package/modern/ListItem/ListItem.js +4 -4
  408. package/modern/ListItemButton/ListItemButton.js +1 -0
  409. package/modern/Menu/Menu.js +2 -2
  410. package/modern/MenuList/MenuList.js +1 -1
  411. package/modern/Modal/Modal.js +7 -6
  412. package/modern/OutlinedInput/OutlinedInput.js +2 -2
  413. package/modern/Pagination/Pagination.js +2 -2
  414. package/modern/PaginationItem/PaginationItem.js +1 -1
  415. package/modern/Popover/Popover.js +2 -2
  416. package/modern/Popper/Popper.js +4 -4
  417. package/modern/Radio/Radio.js +1 -1
  418. package/modern/Rating/Rating.js +1 -1
  419. package/modern/Select/Select.js +2 -2
  420. package/modern/Select/SelectInput.js +24 -3
  421. package/modern/Slide/Slide.js +1 -1
  422. package/modern/Slider/Slider.js +1 -1
  423. package/modern/Snackbar/Snackbar.js +2 -2
  424. package/modern/SpeedDial/SpeedDial.js +2 -2
  425. package/modern/SpeedDialAction/SpeedDialAction.js +2 -2
  426. package/modern/StepContent/StepContent.js +1 -1
  427. package/modern/StepLabel/StepLabel.js +2 -2
  428. package/modern/SvgIcon/SvgIcon.js +1 -1
  429. package/modern/Switch/Switch.js +1 -1
  430. package/modern/TablePagination/TablePagination.js +6 -6
  431. package/modern/TablePagination/TablePaginationActions.js +3 -3
  432. package/modern/Tabs/Tabs.js +1 -1
  433. package/modern/TextField/TextField.js +13 -13
  434. package/modern/ToggleButton/ToggleButton.js +1 -1
  435. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  436. package/modern/Tooltip/Tooltip.js +2 -2
  437. package/modern/Zoom/Zoom.js +1 -1
  438. package/modern/index.js +1 -1
  439. package/modern/locale/index.js +6 -3
  440. package/modern/styles/CssVarsProvider.js +28 -0
  441. package/modern/styles/experimental_extendTheme.js +89 -0
  442. package/modern/styles/index.js +3 -1
  443. package/node/Accordion/Accordion.js +1 -1
  444. package/node/Alert/Alert.js +2 -2
  445. package/node/AppBar/AppBar.js +1 -1
  446. package/node/Autocomplete/Autocomplete.js +8 -6
  447. package/node/Badge/Badge.js +58 -34
  448. package/node/Badge/badgeClasses.js +22 -0
  449. package/node/Badge/index.js +17 -5
  450. package/node/BottomNavigation/BottomNavigation.js +0 -0
  451. package/node/Breadcrumbs/Breadcrumbs.js +1 -1
  452. package/node/Button/Button.js +102 -97
  453. package/node/ButtonGroup/ButtonGroup.js +1 -1
  454. package/node/Checkbox/Checkbox.js +1 -1
  455. package/node/Chip/Chip.js +1 -1
  456. package/node/CircularProgress/CircularProgress.js +1 -1
  457. package/node/Collapse/Collapse.js +1 -1
  458. package/node/Dialog/Dialog.js +3 -2
  459. package/node/Drawer/Drawer.js +4 -4
  460. package/node/Fab/Fab.js +1 -1
  461. package/node/Fade/Fade.js +1 -1
  462. package/node/FilledInput/FilledInput.js +5 -3
  463. package/node/FormControl/FormControl.js +2 -2
  464. package/node/FormLabel/FormLabel.js +1 -1
  465. package/node/Grow/Grow.js +8 -8
  466. package/node/Icon/Icon.js +1 -1
  467. package/node/IconButton/IconButton.js +2 -2
  468. package/node/Input/Input.js +5 -3
  469. package/node/InputBase/InputBase.js +2 -2
  470. package/node/InputLabel/InputLabel.js +1 -1
  471. package/node/LinearProgress/LinearProgress.js +1 -1
  472. package/node/Link/Link.js +16 -6
  473. package/node/ListItem/ListItem.js +4 -4
  474. package/node/ListItemButton/ListItemButton.js +1 -0
  475. package/node/Menu/Menu.js +2 -2
  476. package/node/MenuList/MenuList.js +1 -1
  477. package/node/Modal/Modal.js +7 -6
  478. package/node/OutlinedInput/OutlinedInput.js +2 -2
  479. package/node/Pagination/Pagination.js +2 -2
  480. package/node/PaginationItem/PaginationItem.js +1 -1
  481. package/node/Popover/Popover.js +2 -2
  482. package/node/Popper/Popper.js +4 -4
  483. package/node/Radio/Radio.js +1 -1
  484. package/node/Rating/Rating.js +1 -1
  485. package/node/Select/Select.js +2 -2
  486. package/node/Select/SelectInput.js +24 -3
  487. package/node/Slide/Slide.js +1 -1
  488. package/node/Slider/Slider.js +1 -1
  489. package/node/Snackbar/Snackbar.js +2 -2
  490. package/node/SpeedDial/SpeedDial.js +2 -2
  491. package/node/SpeedDialAction/SpeedDialAction.js +2 -2
  492. package/node/StepContent/StepContent.js +1 -1
  493. package/node/StepLabel/StepLabel.js +2 -2
  494. package/node/SvgIcon/SvgIcon.js +1 -1
  495. package/node/Switch/Switch.js +1 -1
  496. package/node/TablePagination/TablePagination.js +6 -6
  497. package/node/TablePagination/TablePaginationActions.js +3 -3
  498. package/node/Tabs/Tabs.js +1 -1
  499. package/node/TextField/TextField.js +13 -13
  500. package/node/ToggleButton/ToggleButton.js +1 -1
  501. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  502. package/node/Tooltip/Tooltip.js +2 -2
  503. package/node/Zoom/Zoom.js +1 -1
  504. package/node/index.js +1 -1
  505. package/node/locale/index.js +6 -3
  506. package/node/styles/CssVarsProvider.js +41 -0
  507. package/node/styles/experimental_extendTheme.js +105 -0
  508. package/node/styles/index.js +58 -0
  509. package/package.json +9 -9
  510. package/styles/CssVarsProvider.d.ts +28 -0
  511. package/styles/CssVarsProvider.js +28 -0
  512. package/styles/ThemeProvider.d.ts +1 -1
  513. package/styles/createPalette.d.ts +26 -0
  514. package/styles/createTheme.d.ts +1 -1
  515. package/styles/experimental_extendTheme.d.ts +90 -0
  516. package/styles/experimental_extendTheme.js +91 -0
  517. package/styles/index.d.ts +5 -0
  518. package/styles/index.js +3 -1
  519. package/transitions/index.d.ts +1 -1
  520. package/transitions/transition.d.ts +13 -13
  521. package/transitions/utils.d.ts +23 -23
  522. package/umd/material-ui.development.js +1297 -438
  523. package/umd/material-ui.production.min.js +21 -21
  524. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  525. package/useTouchRipple/index.d.ts +1 -1
  526. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  527. package/utils/getScrollbarSize.d.ts +2 -2
  528. package/utils/ownerDocument.d.ts +2 -2
  529. package/utils/ownerWindow.d.ts +2 -2
  530. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.3
1
+ /** @license MUI v5.6.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1628,7 +1628,7 @@
1628
1628
  };
1629
1629
 
1630
1630
  {
1631
- var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1631
+ var contentValuePattern = /(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1632
1632
  var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
1633
1633
  var oldProcessStyleValue = processStyleValue;
1634
1634
  var msPattern = /^-ms-/;
@@ -2042,7 +2042,7 @@
2042
2042
 
2043
2043
  var pkg = {
2044
2044
  name: "@emotion/react",
2045
- version: "11.8.2",
2045
+ version: "11.9.0",
2046
2046
  main: "dist/emotion-react.cjs.js",
2047
2047
  module: "dist/emotion-react.esm.js",
2048
2048
  browser: {
@@ -2071,7 +2071,7 @@
2071
2071
  "@babel/runtime": "^7.13.10",
2072
2072
  "@emotion/babel-plugin": "^11.7.1",
2073
2073
  "@emotion/cache": "^11.7.1",
2074
- "@emotion/serialize": "^1.0.2",
2074
+ "@emotion/serialize": "^1.0.3",
2075
2075
  "@emotion/utils": "^1.1.0",
2076
2076
  "@emotion/weak-memoize": "^0.2.5",
2077
2077
  "hoist-non-react-statics": "^3.3.1"
@@ -2090,7 +2090,7 @@
2090
2090
  },
2091
2091
  devDependencies: {
2092
2092
  "@babel/core": "^7.13.10",
2093
- "@emotion/css": "11.7.1",
2093
+ "@emotion/css": "11.9.0",
2094
2094
  "@emotion/css-prettifier": "1.0.1",
2095
2095
  "@emotion/server": "11.4.0",
2096
2096
  "@emotion/styled": "11.8.1",
@@ -5706,6 +5706,15 @@
5706
5706
  function getPath(obj, path) {
5707
5707
  if (!path || typeof path !== 'string') {
5708
5708
  return null;
5709
+ } // Check if CSS variables are used
5710
+
5711
+
5712
+ if (obj && obj.vars) {
5713
+ const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5714
+
5715
+ if (val != null) {
5716
+ return val;
5717
+ }
5709
5718
  }
5710
5719
 
5711
5720
  return path.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
@@ -6449,7 +6458,7 @@
6449
6458
  styleFunctionSx.filterProps = ['sx'];
6450
6459
  var defaultStyleFunctionSx = styleFunctionSx;
6451
6460
 
6452
- const _excluded$2j = ["sx"];
6461
+ const _excluded$2l = ["sx"];
6453
6462
 
6454
6463
  const splitProps = props => {
6455
6464
  const result = {
@@ -6470,7 +6479,7 @@
6470
6479
  const {
6471
6480
  sx: inSx
6472
6481
  } = props,
6473
- other = _objectWithoutPropertiesLoose(props, _excluded$2j);
6482
+ other = _objectWithoutPropertiesLoose(props, _excluded$2l);
6474
6483
 
6475
6484
  const {
6476
6485
  systemProps,
@@ -6549,7 +6558,7 @@
6549
6558
  return str;
6550
6559
  }
6551
6560
 
6552
- const _excluded$2i = ["values", "unit", "step"];
6561
+ const _excluded$2k = ["values", "unit", "step"];
6553
6562
 
6554
6563
  const sortBreakpointsValues = values => {
6555
6564
  const breakpointsAsArray = Object.keys(values).map(key => ({
@@ -6585,7 +6594,7 @@
6585
6594
  unit = 'px',
6586
6595
  step = 5
6587
6596
  } = breakpoints,
6588
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2i);
6597
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2k);
6589
6598
 
6590
6599
  const sortedValues = sortBreakpointsValues(values);
6591
6600
  const keys = Object.keys(sortedValues);
@@ -6677,16 +6686,16 @@
6677
6686
  return spacing;
6678
6687
  }
6679
6688
 
6680
- const _excluded$2h = ["breakpoints", "palette", "spacing", "shape"];
6689
+ const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6681
6690
 
6682
- function createTheme$1(options = {}, ...args) {
6691
+ function createTheme$2(options = {}, ...args) {
6683
6692
  const {
6684
6693
  breakpoints: breakpointsInput = {},
6685
6694
  palette: paletteInput = {},
6686
6695
  spacing: spacingInput,
6687
6696
  shape: shapeInput = {}
6688
6697
  } = options,
6689
- other = _objectWithoutPropertiesLoose(options, _excluded$2h);
6698
+ other = _objectWithoutPropertiesLoose(options, _excluded$2j);
6690
6699
 
6691
6700
  const breakpoints = createBreakpoints(breakpointsInput);
6692
6701
  const spacing = createSpacing(spacingInput);
@@ -6802,13 +6811,13 @@
6802
6811
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
6803
6812
  }
6804
6813
 
6805
- const systemDefaultTheme$1 = createTheme$1();
6814
+ const systemDefaultTheme$1 = createTheme$2();
6806
6815
 
6807
6816
  function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6808
6817
  return useTheme$2(defaultTheme);
6809
6818
  }
6810
6819
 
6811
- const _excluded$2g = ["className", "component"];
6820
+ const _excluded$2i = ["className", "component"];
6812
6821
  function createBox(options = {}) {
6813
6822
  const {
6814
6823
  defaultTheme,
@@ -6825,7 +6834,7 @@
6825
6834
  className,
6826
6835
  component = 'div'
6827
6836
  } = _extendSxProp,
6828
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2g);
6837
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2i);
6829
6838
 
6830
6839
  return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
6831
6840
  as: component,
@@ -6861,7 +6870,7 @@
6861
6870
  return Box;
6862
6871
  }
6863
6872
 
6864
- const _excluded$2f = ["variant"];
6873
+ const _excluded$2h = ["variant"];
6865
6874
 
6866
6875
  function isEmpty$2(string) {
6867
6876
  return string.length === 0;
@@ -6877,7 +6886,7 @@
6877
6886
  const {
6878
6887
  variant
6879
6888
  } = props,
6880
- other = _objectWithoutPropertiesLoose(props, _excluded$2f);
6889
+ other = _objectWithoutPropertiesLoose(props, _excluded$2h);
6881
6890
 
6882
6891
  let classKey = variant || '';
6883
6892
  Object.keys(other).sort().forEach(key => {
@@ -6890,9 +6899,9 @@
6890
6899
  return classKey;
6891
6900
  }
6892
6901
 
6893
- const _excluded$2e = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6894
- _excluded2$b = ["theme"],
6895
- _excluded3$1 = ["theme"];
6902
+ const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6903
+ _excluded2$d = ["theme"],
6904
+ _excluded3$2 = ["theme"];
6896
6905
 
6897
6906
  function isEmpty$1(obj) {
6898
6907
  return Object.keys(obj).length === 0;
@@ -6952,7 +6961,7 @@
6952
6961
  function shouldForwardProp(prop) {
6953
6962
  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
6954
6963
  }
6955
- const systemDefaultTheme = createTheme$1();
6964
+ const systemDefaultTheme = createTheme$2();
6956
6965
 
6957
6966
  const lowercaseFirstLetter = string => {
6958
6967
  return string.charAt(0).toLowerCase() + string.slice(1);
@@ -6973,7 +6982,7 @@
6973
6982
  skipSx: inputSkipSx,
6974
6983
  overridesResolver
6975
6984
  } = inputOptions,
6976
- options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2e); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6985
+ options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2g); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6977
6986
 
6978
6987
 
6979
6988
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
@@ -7010,7 +7019,7 @@
7010
7019
  let {
7011
7020
  theme: themeInput
7012
7021
  } = _ref,
7013
- other = _objectWithoutPropertiesLoose(_ref, _excluded2$b);
7022
+ other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
7014
7023
 
7015
7024
  return stylesArg(_extends({
7016
7025
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7069,7 +7078,7 @@
7069
7078
  let {
7070
7079
  theme: themeInput
7071
7080
  } = _ref2,
7072
- other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
7081
+ other = _objectWithoutPropertiesLoose(_ref2, _excluded3$2);
7073
7082
 
7074
7083
  return styleArg(_extends({
7075
7084
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7226,6 +7235,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7226
7235
  colorSpace
7227
7236
  };
7228
7237
  }
7238
+ /**
7239
+ * Returns a channel created from the input color.
7240
+ *
7241
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
7242
+ * @returns {string} - The channel for the color, that can be used in rgba or hsla colors
7243
+ */
7244
+
7245
+ const colorChannel = color => {
7246
+ const decomposedColor = decomposeColor(color);
7247
+ return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');
7248
+ };
7229
7249
  /**
7230
7250
  * Converts a color object with type and values to a string.
7231
7251
  * @param {object} color - Decomposed color
@@ -7473,8 +7493,720 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7473
7493
  ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) ;
7474
7494
  }
7475
7495
 
7476
- const _excluded$2d = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
7477
- _excluded2$a = ["type", "mode"];
7496
+ /**
7497
+ * This function create an object from keys, value and then assign to target
7498
+ *
7499
+ * @param {Object} obj : the target object to be assigned
7500
+ * @param {string[]} keys
7501
+ * @param {string | number} value
7502
+ *
7503
+ * @example
7504
+ * const source = {}
7505
+ * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')
7506
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }
7507
+ *
7508
+ * @example
7509
+ * const source = { palette: { primary: 'var(--palette-primary)' } }
7510
+ * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
7511
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
7512
+ */
7513
+ const assignNestedKeys = (obj, keys, value) => {
7514
+ let temp = obj;
7515
+ keys.forEach((k, index) => {
7516
+ if (index === keys.length - 1) {
7517
+ if (temp && typeof temp === 'object') {
7518
+ temp[k] = value;
7519
+ }
7520
+ } else if (temp && typeof temp === 'object') {
7521
+ if (!temp[k]) {
7522
+ temp[k] = {};
7523
+ }
7524
+
7525
+ temp = temp[k];
7526
+ }
7527
+ });
7528
+ };
7529
+ /**
7530
+ *
7531
+ * @param {Object} obj : source object
7532
+ * @param {Function} callback : a function that will be called when
7533
+ * - the deepest key in source object is reached
7534
+ * - the value of the deepest key is NOT `undefined` | `null`
7535
+ *
7536
+ * @example
7537
+ * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
7538
+ * // ['palette', 'primary', 'main'] '#000000'
7539
+ */
7540
+
7541
+ const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
7542
+ function recurse(object, parentKeys = []) {
7543
+ Object.entries(object).forEach(([key, value]) => {
7544
+ if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
7545
+ if (value !== undefined && value !== null) {
7546
+ if (typeof value === 'object' && Object.keys(value).length > 0) {
7547
+ recurse(value, [...parentKeys, key]);
7548
+ } else {
7549
+ callback([...parentKeys, key], value, object);
7550
+ }
7551
+ }
7552
+ }
7553
+ });
7554
+ }
7555
+
7556
+ recurse(obj);
7557
+ };
7558
+
7559
+ const getCssValue = (keys, value) => {
7560
+ if (typeof value === 'number') {
7561
+ if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {
7562
+ // CSS property that are unitless
7563
+ return value;
7564
+ }
7565
+
7566
+ const lastKey = keys[keys.length - 1];
7567
+
7568
+ if (lastKey.toLowerCase().indexOf('opacity') >= 0) {
7569
+ // opacity values are unitless
7570
+ return value;
7571
+ }
7572
+
7573
+ return `${value}px`;
7574
+ }
7575
+
7576
+ return value;
7577
+ };
7578
+ /**
7579
+ * a function that parse theme and return { css, vars }
7580
+ *
7581
+ * @param {Object} theme
7582
+ * @param {{
7583
+ * prefix?: string,
7584
+ * basePrefix?: string,
7585
+ * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
7586
+ * }} options.
7587
+ * `basePrefix`: defined by design system.
7588
+ * `prefix`: defined by application
7589
+ *
7590
+ * the CSS variable value will be adjusted based on the provided `basePrefix` & `prefix` which can be found in `parsedTheme`.
7591
+ *
7592
+ * @returns {{ css: Object, vars: Object, parsedTheme: typeof theme }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme), and `parsedTheme` is the cloned version of theme.
7593
+ *
7594
+ * @example
7595
+ * const { css, vars, parsedTheme } = parser({
7596
+ * fontSize: 12,
7597
+ * lineHeight: 1.2,
7598
+ * palette: { primary: { 500: 'var(--color)' } }
7599
+ * }, { prefix: 'foo' })
7600
+ *
7601
+ * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--foo-color)' }
7602
+ * console.log(vars) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
7603
+ * console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--foo-color)' } } }
7604
+ */
7605
+
7606
+
7607
+ function cssVarsParser(theme, options) {
7608
+ const {
7609
+ prefix,
7610
+ basePrefix = '',
7611
+ shouldSkipGeneratingVar
7612
+ } = options || {};
7613
+ const css = {};
7614
+ const vars = {};
7615
+ const parsedTheme = {};
7616
+ walkObjectDeep(theme, (keys, value) => {
7617
+ if (typeof value === 'string' || typeof value === 'number') {
7618
+ if (typeof value === 'string' && value.match(/var\(\s*--/)) {
7619
+ // for CSS variable, apply prefix or remove basePrefix from the variable
7620
+ if (!basePrefix && prefix) {
7621
+ value = value.replace(/var\(\s*--/g, `var(--${prefix}-`);
7622
+ } else {
7623
+ value = prefix ? value.replace(new RegExp(`var\\(\\s*--${basePrefix}`, 'g'), `var(--${prefix}`) // removing spaces
7624
+ : value.replace(new RegExp(`var\\(\\s*--${basePrefix}-`, 'g'), 'var(--');
7625
+ }
7626
+ }
7627
+
7628
+ if (!shouldSkipGeneratingVar || shouldSkipGeneratingVar && !shouldSkipGeneratingVar(keys, value)) {
7629
+ // only create css & var if `shouldSkipGeneratingVar` return false
7630
+ const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
7631
+ Object.assign(css, {
7632
+ [cssVar]: getCssValue(keys, value)
7633
+ });
7634
+ assignNestedKeys(vars, keys, `var(${cssVar})`);
7635
+ }
7636
+ }
7637
+
7638
+ assignNestedKeys(parsedTheme, keys, value);
7639
+ }, keys => keys[0] === 'vars' // skip 'vars/*' paths
7640
+ );
7641
+ return {
7642
+ css,
7643
+ vars,
7644
+ parsedTheme
7645
+ };
7646
+ }
7647
+
7648
+ const DEFAULT_MODE_STORAGE_KEY = 'mui-mode';
7649
+ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'mui-color-scheme';
7650
+ const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7651
+ function getInitColorSchemeScript$1(options) {
7652
+ const {
7653
+ enableSystem,
7654
+ defaultLightColorScheme = 'light',
7655
+ defaultDarkColorScheme = 'dark',
7656
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7657
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7658
+ attribute = DEFAULT_ATTRIBUTE
7659
+ } = options || {};
7660
+ return /*#__PURE__*/jsxRuntime_1("script", {
7661
+ // eslint-disable-next-line react/no-danger
7662
+ dangerouslySetInnerHTML: {
7663
+ __html: `(function() { try {
7664
+ var mode = localStorage.getItem('${modeStorageKey}');
7665
+ var colorScheme = '';
7666
+ if (mode === 'system' || (!mode && !!${enableSystem})) {
7667
+ // handle system mode
7668
+ var mql = window.matchMedia('(prefers-color-scheme: dark)');
7669
+ if (mql.matches) {
7670
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7671
+ } else {
7672
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
7673
+ }
7674
+ }
7675
+ if (mode === 'light') {
7676
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
7677
+ }
7678
+ if (mode === 'dark') {
7679
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7680
+ }
7681
+ if (colorScheme) {
7682
+ document.documentElement.setAttribute('${attribute}', colorScheme);
7683
+ }
7684
+ } catch (e) {} })();`
7685
+ }
7686
+ });
7687
+ }
7688
+
7689
+ function getSystemMode(mode) {
7690
+ if (typeof window !== 'undefined' && mode === 'system') {
7691
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
7692
+
7693
+ if (mql.matches) {
7694
+ return 'dark';
7695
+ }
7696
+
7697
+ return 'light';
7698
+ }
7699
+
7700
+ return undefined;
7701
+ }
7702
+
7703
+ function processState(state, callback) {
7704
+ if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {
7705
+ return callback('light');
7706
+ }
7707
+
7708
+ if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {
7709
+ return callback('dark');
7710
+ }
7711
+
7712
+ return undefined;
7713
+ }
7714
+
7715
+ function getColorScheme(state) {
7716
+ return processState(state, mode => {
7717
+ if (mode === 'light') {
7718
+ return state.lightColorScheme;
7719
+ }
7720
+
7721
+ if (mode === 'dark') {
7722
+ return state.darkColorScheme;
7723
+ }
7724
+
7725
+ return undefined;
7726
+ });
7727
+ }
7728
+
7729
+ function resolveValue(key, defaultValue) {
7730
+ if (typeof window === 'undefined') {
7731
+ return undefined;
7732
+ }
7733
+
7734
+ let value;
7735
+
7736
+ try {
7737
+ value = localStorage.getItem(key) || undefined;
7738
+ } catch (e) {// Unsupported
7739
+ }
7740
+
7741
+ return value || defaultValue;
7742
+ }
7743
+
7744
+ function useCurrentColorScheme(options) {
7745
+ const {
7746
+ defaultMode = 'light',
7747
+ defaultLightColorScheme,
7748
+ defaultDarkColorScheme,
7749
+ supportedColorSchemes = [],
7750
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7751
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY
7752
+ } = options;
7753
+ const joinedColorSchemes = supportedColorSchemes.join(',');
7754
+ const [state, setState] = React__namespace.useState(() => {
7755
+ const initialMode = resolveValue(modeStorageKey, defaultMode);
7756
+ return {
7757
+ mode: initialMode,
7758
+ systemMode: getSystemMode(initialMode),
7759
+ lightColorScheme: resolveValue(`${colorSchemeStorageKey}-light`) || defaultLightColorScheme,
7760
+ darkColorScheme: resolveValue(`${colorSchemeStorageKey}-dark`) || defaultDarkColorScheme
7761
+ };
7762
+ });
7763
+ const colorScheme = getColorScheme(state);
7764
+ const setMode = React__namespace.useCallback(mode => {
7765
+ setState(currentState => {
7766
+ const newMode = !mode ? defaultMode : mode;
7767
+
7768
+ if (typeof localStorage !== 'undefined') {
7769
+ localStorage.setItem(modeStorageKey, newMode);
7770
+ }
7771
+
7772
+ return _extends({}, currentState, {
7773
+ mode: newMode,
7774
+ systemMode: getSystemMode(newMode)
7775
+ });
7776
+ });
7777
+ }, [modeStorageKey, defaultMode]);
7778
+ const setColorScheme = React__namespace.useCallback(value => {
7779
+ if (!value || typeof value === 'string') {
7780
+ if (value && !supportedColorSchemes.includes(value)) {
7781
+ console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7782
+ } else {
7783
+ setState(currentState => {
7784
+ const newState = _extends({}, currentState);
7785
+
7786
+ if (!value) {
7787
+ // reset to default color scheme
7788
+ newState.lightColorScheme = defaultLightColorScheme;
7789
+ newState.darkColorScheme = defaultDarkColorScheme;
7790
+ return newState;
7791
+ }
7792
+
7793
+ processState(currentState, mode => {
7794
+ localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
7795
+
7796
+ if (mode === 'light') {
7797
+ newState.lightColorScheme = value;
7798
+ }
7799
+
7800
+ if (mode === 'dark') {
7801
+ newState.darkColorScheme = value;
7802
+ }
7803
+ });
7804
+ return newState;
7805
+ });
7806
+ }
7807
+ } else if (value.light && !supportedColorSchemes.includes(value.light) || value.dark && !supportedColorSchemes.includes(value.dark)) {
7808
+ console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7809
+ } else {
7810
+ setState(currentState => {
7811
+ const newState = _extends({}, currentState);
7812
+
7813
+ if (value.light || value.light === null) {
7814
+ newState.lightColorScheme = value.light === null ? defaultLightColorScheme : value.light;
7815
+ }
7816
+
7817
+ if (value.dark || value.dark === null) {
7818
+ newState.darkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;
7819
+ }
7820
+
7821
+ return newState;
7822
+ });
7823
+
7824
+ if (value.light) {
7825
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, value.light);
7826
+ }
7827
+
7828
+ if (value.dark) {
7829
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7830
+ }
7831
+ }
7832
+ }, [colorSchemeStorageKey, supportedColorSchemes, defaultLightColorScheme, defaultDarkColorScheme]);
7833
+ const handleMediaQuery = React__namespace.useCallback(e => {
7834
+ if (state.mode === 'system') {
7835
+ setState(currentState => _extends({}, currentState, {
7836
+ systemMode: e.matches ? 'dark' : 'light'
7837
+ }));
7838
+ }
7839
+ }, [state.mode]); // Ref hack to avoid adding handleMediaQuery as a dep
7840
+
7841
+ const mediaListener = React__namespace.useRef(handleMediaQuery);
7842
+ mediaListener.current = handleMediaQuery;
7843
+ React__namespace.useEffect(() => {
7844
+ const handler = (...args) => mediaListener.current(...args); // Always listen to System preference
7845
+
7846
+
7847
+ const media = window.matchMedia('(prefers-color-scheme: dark)'); // Intentionally use deprecated listener methods to support iOS & old browsers
7848
+
7849
+ media.addListener(handler);
7850
+ handler(media);
7851
+ return () => media.removeListener(handler);
7852
+ }, []); // Save mode, lightColorScheme & darkColorScheme to localStorage
7853
+
7854
+ React__namespace.useEffect(() => {
7855
+ if (state.mode) {
7856
+ localStorage.setItem(modeStorageKey, state.mode);
7857
+ }
7858
+
7859
+ processState(state, mode => {
7860
+ if (mode === 'light') {
7861
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, state.lightColorScheme);
7862
+ }
7863
+
7864
+ if (mode === 'dark') {
7865
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, state.darkColorScheme);
7866
+ }
7867
+ });
7868
+ }, [state, colorSchemeStorageKey, modeStorageKey]); // Handle when localStorage has changed
7869
+
7870
+ React__namespace.useEffect(() => {
7871
+ const handleStorage = event => {
7872
+ const value = event.newValue;
7873
+
7874
+ if (typeof event.key === 'string' && event.key.startsWith(colorSchemeStorageKey) && (!value || joinedColorSchemes.match(value))) {
7875
+ // If the key is deleted, value will be null then reset color scheme to the default one.
7876
+ if (event.key.endsWith('light')) {
7877
+ setColorScheme({
7878
+ light: value
7879
+ });
7880
+ }
7881
+
7882
+ if (event.key.endsWith('dark')) {
7883
+ setColorScheme({
7884
+ dark: value
7885
+ });
7886
+ }
7887
+ }
7888
+
7889
+ if (event.key === modeStorageKey && (!value || ['light', 'dark', 'system'].includes(value))) {
7890
+ setMode(value || defaultMode);
7891
+ }
7892
+ };
7893
+
7894
+ window.addEventListener('storage', handleStorage);
7895
+ return () => window.removeEventListener('storage', handleStorage);
7896
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode]);
7897
+ return _extends({}, state, {
7898
+ colorScheme,
7899
+ setMode,
7900
+ setColorScheme
7901
+ });
7902
+ }
7903
+
7904
+ /**
7905
+ * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
7906
+ * and they does not need to remember the prefix (defined once).
7907
+ */
7908
+ function createGetCssVar(prefix = '') {
7909
+ function appendVar(...vars) {
7910
+ if (!vars.length) {
7911
+ return '';
7912
+ }
7913
+
7914
+ const value = vars[0];
7915
+
7916
+ if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
7917
+ return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
7918
+ }
7919
+
7920
+ return `, ${value}`;
7921
+ } // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
7922
+
7923
+
7924
+ const getCssVar = (field, ...vars) => {
7925
+ return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...vars)})`;
7926
+ };
7927
+
7928
+ return getCssVar;
7929
+ }
7930
+
7931
+ const _excluded$2f = ["colorSchemes"],
7932
+ _excluded2$c = ["colorSchemes"],
7933
+ _excluded3$1 = ["components"];
7934
+ const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
7935
+ function createCssVarsProvider(options) {
7936
+ var _baseTheme$breakpoint;
7937
+
7938
+ const {
7939
+ theme: baseTheme = {},
7940
+ defaultMode: desisgnSystemMode = 'light',
7941
+ defaultColorScheme: designSystemColorScheme,
7942
+ disableTransitionOnChange: designSystemTransitionOnChange = false,
7943
+ enableColorScheme: designSystemEnableColorScheme = true,
7944
+ prefix: designSystemPrefix = '',
7945
+ shouldSkipGeneratingVar,
7946
+ resolveTheme
7947
+ } = options;
7948
+ const systemSpacing = createSpacing(baseTheme.spacing);
7949
+ const systemBreakpoints = createBreakpoints((_baseTheme$breakpoint = baseTheme.breakpoints) != null ? _baseTheme$breakpoint : {});
7950
+
7951
+ if (!baseTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !baseTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
7952
+ console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
7953
+ }
7954
+
7955
+ const ColorSchemeContext = /*#__PURE__*/React__namespace.createContext(undefined);
7956
+
7957
+ const useColorScheme = () => {
7958
+ const value = React__namespace.useContext(ColorSchemeContext);
7959
+
7960
+ if (!value) {
7961
+ throw new Error(`MUI: \`useColorScheme\` must be called under <CssVarsProvider />` );
7962
+ }
7963
+
7964
+ return value;
7965
+ };
7966
+
7967
+ function CssVarsProvider({
7968
+ children,
7969
+ theme: themeProp = {},
7970
+ prefix = designSystemPrefix,
7971
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7972
+ attribute = DEFAULT_ATTRIBUTE,
7973
+ defaultMode = desisgnSystemMode,
7974
+ defaultColorScheme = designSystemColorScheme,
7975
+ disableTransitionOnChange = designSystemTransitionOnChange,
7976
+ enableColorScheme = designSystemEnableColorScheme
7977
+ }) {
7978
+ const {
7979
+ colorSchemes: baseColorSchemes = {}
7980
+ } = baseTheme,
7981
+ restBaseTheme = _objectWithoutPropertiesLoose(baseTheme, _excluded$2f);
7982
+
7983
+ const {
7984
+ colorSchemes: colorSchemesProp = {}
7985
+ } = themeProp,
7986
+ restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded2$c);
7987
+
7988
+ const hasMounted = React__namespace.useRef(false); // eslint-disable-next-line prefer-const
7989
+
7990
+ let _deepmerge = deepmerge(restBaseTheme, restThemeProp),
7991
+ {
7992
+ components = {}
7993
+ } = _deepmerge,
7994
+ mergedTheme = _objectWithoutPropertiesLoose(_deepmerge, _excluded3$1);
7995
+
7996
+ const colorSchemes = deepmerge(baseColorSchemes, colorSchemesProp);
7997
+ const allColorSchemes = Object.keys(colorSchemes);
7998
+ const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
7999
+ const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
8000
+ const {
8001
+ mode,
8002
+ setMode,
8003
+ systemMode,
8004
+ lightColorScheme,
8005
+ darkColorScheme,
8006
+ colorScheme,
8007
+ setColorScheme
8008
+ } = useCurrentColorScheme({
8009
+ supportedColorSchemes: allColorSchemes,
8010
+ defaultLightColorScheme,
8011
+ defaultDarkColorScheme,
8012
+ modeStorageKey,
8013
+ defaultMode
8014
+ });
8015
+
8016
+ const resolvedColorScheme = (() => {
8017
+ if (!colorScheme) {
8018
+ // This scope occurs on the server
8019
+ if (defaultMode === 'dark') {
8020
+ return defaultDarkColorScheme;
8021
+ } // use light color scheme, if default mode is 'light' | 'auto'
8022
+
8023
+
8024
+ return defaultLightColorScheme;
8025
+ }
8026
+
8027
+ return colorScheme;
8028
+ })();
8029
+
8030
+ const {
8031
+ css: rootCss,
8032
+ vars: rootVars,
8033
+ parsedTheme
8034
+ } = cssVarsParser(mergedTheme, {
8035
+ prefix,
8036
+ basePrefix: designSystemPrefix,
8037
+ shouldSkipGeneratingVar
8038
+ });
8039
+ mergedTheme = _extends({}, parsedTheme, {
8040
+ components,
8041
+ colorSchemes,
8042
+ prefix,
8043
+ vars: rootVars,
8044
+ spacing: themeProp.spacing ? createSpacing(themeProp.spacing) : systemSpacing,
8045
+ breakpoints: themeProp.breakpoints ? createBreakpoints(themeProp.breakpoints) : systemBreakpoints,
8046
+ getCssVar: createGetCssVar(prefix)
8047
+ });
8048
+ const styleSheet = {};
8049
+ Object.entries(colorSchemes).forEach(([key, scheme]) => {
8050
+ const {
8051
+ css,
8052
+ vars,
8053
+ parsedTheme: parsedScheme
8054
+ } = cssVarsParser(scheme, {
8055
+ prefix,
8056
+ basePrefix: designSystemPrefix,
8057
+ shouldSkipGeneratingVar
8058
+ });
8059
+ mergedTheme.vars = deepmerge(mergedTheme.vars, vars);
8060
+
8061
+ if (key === resolvedColorScheme) {
8062
+ mergedTheme = _extends({}, mergedTheme, parsedScheme);
8063
+ }
8064
+
8065
+ const resolvedDefaultColorScheme = (() => {
8066
+ if (typeof defaultColorScheme === 'string') {
8067
+ return defaultColorScheme;
8068
+ }
8069
+
8070
+ if (defaultMode === 'dark') {
8071
+ return defaultColorScheme.dark;
8072
+ }
8073
+
8074
+ return defaultColorScheme.light;
8075
+ })();
8076
+
8077
+ if (key === resolvedDefaultColorScheme) {
8078
+ styleSheet[':root'] = css;
8079
+ } else {
8080
+ styleSheet[`[${attribute}="${key}"]`] = css;
8081
+ }
8082
+ });
8083
+ React__namespace.useEffect(() => {
8084
+ if (colorScheme) {
8085
+ // attaches attribute to <html> because the css variables are attached to :root (html)
8086
+ document.documentElement.setAttribute(attribute, colorScheme);
8087
+ }
8088
+ }, [colorScheme, attribute]);
8089
+ useEnhancedEffect$1(() => {
8090
+ if (!mode || !enableColorScheme) {
8091
+ return undefined;
8092
+ }
8093
+
8094
+ const priorColorScheme = document.documentElement.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8095
+
8096
+ if (mode === 'system') {
8097
+ document.documentElement.style.setProperty('color-scheme', systemMode);
8098
+ } else {
8099
+ document.documentElement.style.setProperty('color-scheme', mode);
8100
+ }
8101
+
8102
+ return () => {
8103
+ document.documentElement.style.setProperty('color-scheme', priorColorScheme);
8104
+ };
8105
+ }, [mode, systemMode, enableColorScheme]);
8106
+ React__namespace.useEffect(() => {
8107
+ let timer;
8108
+
8109
+ if (disableTransitionOnChange && hasMounted.current) {
8110
+ // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
8111
+ const css = document.createElement('style');
8112
+ css.appendChild(document.createTextNode(DISABLE_CSS_TRANSITION));
8113
+ document.head.appendChild(css); // Force browser repaint
8114
+
8115
+ (() => window.getComputedStyle(document.body))();
8116
+
8117
+ timer = setTimeout(() => {
8118
+ document.head.removeChild(css);
8119
+ }, 1);
8120
+ }
8121
+
8122
+ return () => {
8123
+ clearTimeout(timer);
8124
+ };
8125
+ }, [colorScheme, disableTransitionOnChange]);
8126
+ React__namespace.useEffect(() => {
8127
+ hasMounted.current = true;
8128
+ return () => {
8129
+ hasMounted.current = false;
8130
+ };
8131
+ }, []);
8132
+ return /*#__PURE__*/jsxRuntime_2(ColorSchemeContext.Provider, {
8133
+ value: {
8134
+ mode,
8135
+ setMode,
8136
+ lightColorScheme,
8137
+ darkColorScheme,
8138
+ colorScheme,
8139
+ setColorScheme,
8140
+ allColorSchemes
8141
+ },
8142
+ children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8143
+ styles: {
8144
+ ':root': rootCss
8145
+ }
8146
+ }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8147
+ styles: styleSheet
8148
+ }), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
8149
+ theme: resolveTheme ? resolveTheme(mergedTheme) : mergedTheme,
8150
+ children: children
8151
+ })]
8152
+ });
8153
+ }
8154
+
8155
+ CssVarsProvider.propTypes = {
8156
+ /**
8157
+ * The body attribute name to attach colorScheme.
8158
+ */
8159
+ attribute: PropTypes.string,
8160
+
8161
+ /**
8162
+ * The component tree.
8163
+ */
8164
+ children: PropTypes.node,
8165
+
8166
+ /**
8167
+ * The initial color scheme used.
8168
+ */
8169
+ defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
8170
+
8171
+ /**
8172
+ * The initial mode used.
8173
+ */
8174
+ defaultMode: PropTypes.string,
8175
+
8176
+ /**
8177
+ * Disable CSS transitions when switching between modes or color schemes
8178
+ */
8179
+ disableTransitionOnChange: PropTypes.bool,
8180
+
8181
+ /**
8182
+ * Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
8183
+ */
8184
+ enableColorScheme: PropTypes.bool,
8185
+
8186
+ /**
8187
+ * The key in the local storage used to store current color scheme.
8188
+ */
8189
+ modeStorageKey: PropTypes.string,
8190
+
8191
+ /**
8192
+ * CSS variable prefix.
8193
+ */
8194
+ prefix: PropTypes.string,
8195
+
8196
+ /**
8197
+ * The calculated theme object that will be passed through context.
8198
+ */
8199
+ theme: PropTypes.object
8200
+ } ;
8201
+ return {
8202
+ CssVarsProvider,
8203
+ useColorScheme,
8204
+ getInitColorSchemeScript: getInitColorSchemeScript$1
8205
+ };
8206
+ }
8207
+
8208
+ const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8209
+ _excluded2$b = ["type", "mode"];
7478
8210
  function adaptV4Theme(inputTheme) {
7479
8211
  {
7480
8212
  console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
@@ -7488,7 +8220,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7488
8220
  props = {},
7489
8221
  styleOverrides = {}
7490
8222
  } = inputTheme,
7491
- other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2d);
8223
+ other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2e);
7492
8224
 
7493
8225
  const theme = _extends({}, other, {
7494
8226
  components: {}
@@ -7539,7 +8271,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7539
8271
  type: typeInput,
7540
8272
  mode: modeInput
7541
8273
  } = palette,
7542
- paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$a);
8274
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$b);
7543
8275
 
7544
8276
  const finalMode = modeInput || typeInput || 'light';
7545
8277
  theme.palette = _extends({
@@ -8635,46 +9367,30 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8635
9367
 
8636
9368
  function useBadge(props) {
8637
9369
  const {
8638
- anchorOrigin: anchorOriginProp = {
8639
- vertical: 'top',
8640
- horizontal: 'right'
8641
- },
8642
9370
  badgeContent: badgeContentProp,
8643
9371
  invisible: invisibleProp = false,
8644
9372
  max: maxProp = 99,
8645
- showZero = false,
8646
- variant: variantProp = 'standard'
9373
+ showZero = false
8647
9374
  } = props;
8648
9375
  const prevProps = usePreviousProps$1({
8649
- anchorOrigin: anchorOriginProp,
8650
9376
  badgeContent: badgeContentProp,
8651
- max: maxProp,
8652
- variant: variantProp
9377
+ max: maxProp
8653
9378
  });
8654
9379
  let invisible = invisibleProp;
8655
9380
 
8656
- if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
9381
+ if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
8657
9382
  invisible = true;
8658
9383
  }
8659
9384
 
8660
9385
  const {
8661
- anchorOrigin = anchorOriginProp,
8662
9386
  badgeContent,
8663
- max = maxProp,
8664
- variant = variantProp
9387
+ max = maxProp
8665
9388
  } = invisible ? prevProps : props;
8666
- let displayValue = '';
8667
-
8668
- if (variant !== 'dot') {
8669
- displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
8670
- }
8671
-
9389
+ const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
8672
9390
  return {
8673
- anchorOrigin,
8674
9391
  badgeContent,
8675
9392
  invisible,
8676
9393
  max,
8677
- variant,
8678
9394
  displayValue
8679
9395
  };
8680
9396
  }
@@ -8727,70 +9443,53 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8727
9443
  return result;
8728
9444
  }
8729
9445
 
8730
- function getBadgeUtilityClass(slot) {
8731
- return generateUtilityClass('MuiBadge', slot);
9446
+ function getBadgeUnstyledUtilityClass(slot) {
9447
+ return generateUtilityClass('BaseBadge', slot);
8732
9448
  }
8733
- const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeft', 'anchorOriginTopRight', 'anchorOriginBottomLeft', 'anchorOriginBottomRight', 'invisible']);
8734
- var badgeUnstyledClasses$1 = badgeUnstyledClasses;
9449
+ generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
8735
9450
 
8736
- const _excluded$2c = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero", "variant"];
9451
+ const _excluded$2d = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
8737
9452
 
8738
- const useUtilityClasses$1O = ownerState => {
9453
+ const useUtilityClasses$1P = ownerState => {
8739
9454
  const {
8740
- variant,
8741
- anchorOrigin,
8742
- invisible,
8743
- classes
9455
+ invisible
8744
9456
  } = ownerState;
8745
9457
  const slots = {
8746
9458
  root: ['root'],
8747
- badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, invisible && 'invisible']
9459
+ badge: ['badge', invisible && 'invisible']
8748
9460
  };
8749
- return composeClasses(slots, getBadgeUtilityClass, classes);
9461
+ return composeClasses(slots, getBadgeUnstyledUtilityClass, undefined);
8750
9462
  };
8751
9463
 
8752
9464
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
8753
9465
  const {
8754
- anchorOrigin: anchorOriginProp = {
8755
- vertical: 'top',
8756
- horizontal: 'right'
8757
- },
8758
- classes: classesProp,
8759
9466
  component,
8760
9467
  children,
8761
9468
  className,
8762
9469
  components = {},
8763
9470
  componentsProps = {},
8764
9471
  max: maxProp = 99,
8765
- showZero = false,
8766
- variant: variantProp = 'standard'
9472
+ showZero = false
8767
9473
  } = props,
8768
- other = _objectWithoutPropertiesLoose(props, _excluded$2c);
9474
+ other = _objectWithoutPropertiesLoose(props, _excluded$2d);
8769
9475
 
8770
9476
  const {
8771
- anchorOrigin,
8772
9477
  badgeContent,
8773
9478
  max,
8774
- variant,
8775
9479
  displayValue,
8776
9480
  invisible
8777
9481
  } = useBadge(_extends({}, props, {
8778
- anchorOrigin: anchorOriginProp,
8779
- max: maxProp,
8780
- variant: variantProp
9482
+ max: maxProp
8781
9483
  }));
8782
9484
 
8783
9485
  const ownerState = _extends({}, props, {
8784
- anchorOrigin,
8785
9486
  badgeContent,
8786
- classes: classesProp,
8787
9487
  invisible,
8788
9488
  max,
8789
- variant,
8790
9489
  showZero
8791
9490
  });
8792
9491
 
8793
- const classes = useUtilityClasses$1O(ownerState);
9492
+ const classes = useUtilityClasses$1P(ownerState);
8794
9493
  const Root = component || components.Root || 'span';
8795
9494
  const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
8796
9495
  const Badge = components.Badge || 'span';
@@ -8813,18 +9512,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8813
9512
  // | To update them edit the d.ts file and run "yarn proptypes" |
8814
9513
  // ----------------------------------------------------------------------
8815
9514
 
8816
- /**
8817
- * The anchor of the badge.
8818
- * @default {
8819
- * vertical: 'top',
8820
- * horizontal: 'right',
8821
- * }
8822
- */
8823
- anchorOrigin: PropTypes.shape({
8824
- horizontal: PropTypes.oneOf(['left', 'right']).isRequired,
8825
- vertical: PropTypes.oneOf(['bottom', 'top']).isRequired
8826
- }),
8827
-
8828
9515
  /**
8829
9516
  * The content rendered within the badge.
8830
9517
  */
@@ -8835,11 +9522,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8835
9522
  */
8836
9523
  children: PropTypes.node,
8837
9524
 
8838
- /**
8839
- * Override or extend the styles applied to the component.
8840
- */
8841
- classes: PropTypes.object,
8842
-
8843
9525
  /**
8844
9526
  * @ignore
8845
9527
  */
@@ -8886,13 +9568,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8886
9568
  * Controls whether the badge is hidden when `badgeContent` is zero.
8887
9569
  * @default false
8888
9570
  */
8889
- showZero: PropTypes.bool,
8890
-
8891
- /**
8892
- * The variant to use.
8893
- * @default 'standard'
8894
- */
8895
- variant: PropTypes.string
9571
+ showZero: PropTypes.bool
8896
9572
  } ;
8897
9573
  var BadgeUnstyled$1 = BadgeUnstyled;
8898
9574
 
@@ -8910,9 +9586,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8910
9586
  *
8911
9587
  * Demos:
8912
9588
  *
8913
- * - [Click Away Listener](https://mui.com/base/components/click-away-listener/)
8914
- * - [Click Away Listener](https://mui.com/material-ui/react-click-away-listener/)
8915
- * - [Menus](https://mui.com/material-ui/react-menu/)
9589
+ * - [Click away listener](https://mui.com/base/react-click-away-listener/)
8916
9590
  *
8917
9591
  * API:
8918
9592
  *
@@ -11129,8 +11803,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11129
11803
 
11130
11804
  var Portal$1 = Portal;
11131
11805
 
11132
- const _excluded$2b = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
11133
- _excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
11806
+ const _excluded$2c = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
11807
+ _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
11134
11808
 
11135
11809
  function flipPlacement(placement, direction) {
11136
11810
  if (direction === 'ltr') {
@@ -11175,7 +11849,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11175
11849
  popperRef: popperRefProp,
11176
11850
  TransitionProps
11177
11851
  } = props,
11178
- other = _objectWithoutPropertiesLoose(props, _excluded$2b);
11852
+ other = _objectWithoutPropertiesLoose(props, _excluded$2c);
11179
11853
 
11180
11854
  const tooltipRef = React__namespace.useRef(null);
11181
11855
  const ownRef = useForkRef(tooltipRef, ref);
@@ -11296,7 +11970,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11296
11970
  style,
11297
11971
  transition = false
11298
11972
  } = props,
11299
- other = _objectWithoutPropertiesLoose(props, _excluded2$9);
11973
+ other = _objectWithoutPropertiesLoose(props, _excluded2$a);
11300
11974
 
11301
11975
  const [exited, setExited] = React__namespace.useState(true);
11302
11976
 
@@ -12065,9 +12739,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12065
12739
  const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
12066
12740
  var modalUnstyledClasses$1 = modalUnstyledClasses;
12067
12741
 
12068
- const _excluded$2a = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
12742
+ const _excluded$2b = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
12069
12743
 
12070
- const useUtilityClasses$1N = ownerState => {
12744
+ const useUtilityClasses$1O = ownerState => {
12071
12745
  const {
12072
12746
  open,
12073
12747
  exited,
@@ -12093,12 +12767,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12093
12767
  /**
12094
12768
  * Modal is a lower-level construct that is leveraged by the following components:
12095
12769
  *
12096
- * - [Dialog](/api/dialog/)
12097
- * - [Drawer](/api/drawer/)
12098
- * - [Menu](/api/menu/)
12099
- * - [Popover](/api/popover/)
12770
+ * - [Dialog](/material-ui/api/dialog/)
12771
+ * - [Drawer](/material-ui/api/drawer/)
12772
+ * - [Menu](/material-ui/api/menu/)
12773
+ * - [Popover](/material-ui/api/popover/)
12100
12774
  *
12101
- * If you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component
12775
+ * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component
12102
12776
  * rather than directly using Modal.
12103
12777
  *
12104
12778
  * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
@@ -12137,7 +12811,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12137
12811
  onTransitionEnter,
12138
12812
  onTransitionExited
12139
12813
  } = props,
12140
- other = _objectWithoutPropertiesLoose(props, _excluded$2a);
12814
+ other = _objectWithoutPropertiesLoose(props, _excluded$2b);
12141
12815
 
12142
12816
  const [exited, setExited] = React__namespace.useState(true);
12143
12817
  const modal = React__namespace.useRef({});
@@ -12214,7 +12888,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12214
12888
  keepMounted
12215
12889
  });
12216
12890
 
12217
- const classes = useUtilityClasses$1N(ownerState);
12891
+ const classes = useUtilityClasses$1O(ownerState);
12218
12892
 
12219
12893
  if (!keepMounted && !open && (!hasTransition || exited)) {
12220
12894
  return null;
@@ -12456,6 +13130,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12456
13130
 
12457
13131
  /**
12458
13132
  * Callback fired when the backdrop is clicked.
13133
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
12459
13134
  */
12460
13135
  onBackdropClick: PropTypes.func,
12461
13136
 
@@ -13285,11 +13960,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13285
13960
  };
13286
13961
  }
13287
13962
 
13288
- const _excluded$29 = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
13963
+ const _excluded$2a = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
13289
13964
 
13290
13965
  const Identity = x => x;
13291
13966
 
13292
- const useUtilityClasses$1M = ownerState => {
13967
+ const useUtilityClasses$1N = ownerState => {
13293
13968
  const {
13294
13969
  disabled,
13295
13970
  dragging,
@@ -13346,7 +14021,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13346
14021
  components = {},
13347
14022
  componentsProps = {}
13348
14023
  } = props,
13349
- other = _objectWithoutPropertiesLoose(props, _excluded$29); // all props with defaults
14024
+ other = _objectWithoutPropertiesLoose(props, _excluded$2a); // all props with defaults
13350
14025
  // consider extracting to hook an reusing the lint rule for the varints
13351
14026
 
13352
14027
 
@@ -13405,7 +14080,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13405
14080
  const Input = components.Input || 'input';
13406
14081
  const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
13407
14082
  const hiddenInputProps = getHiddenInputProps();
13408
- const classes = useUtilityClasses$1M(ownerState);
14083
+ const classes = useUtilityClasses$1N(ownerState);
13409
14084
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
13410
14085
  onMouseDown
13411
14086
  }), {
@@ -13745,7 +14420,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13745
14420
  } ;
13746
14421
  var SliderUnstyled$1 = SliderUnstyled;
13747
14422
 
13748
- const _excluded$28 = ["onChange", "maxRows", "minRows", "style", "value"];
14423
+ const _excluded$29 = ["onChange", "maxRows", "minRows", "style", "value"];
13749
14424
 
13750
14425
  function getStyleValue(computedStyle, property) {
13751
14426
  return parseInt(computedStyle[property], 10) || 0;
@@ -13774,7 +14449,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13774
14449
  style,
13775
14450
  value
13776
14451
  } = props,
13777
- other = _objectWithoutPropertiesLoose(props, _excluded$28);
14452
+ other = _objectWithoutPropertiesLoose(props, _excluded$29);
13778
14453
 
13779
14454
  const {
13780
14455
  current: isControlled
@@ -13974,7 +14649,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13974
14649
  }, mixins);
13975
14650
  }
13976
14651
 
13977
- const _excluded$27 = ["mode", "contrastThreshold", "tonalOffset"];
14652
+ const _excluded$28 = ["mode", "contrastThreshold", "tonalOffset"];
13978
14653
  const light = {
13979
14654
  // The colors used to style the text.
13980
14655
  text: {
@@ -14158,7 +14833,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14158
14833
  contrastThreshold = 3,
14159
14834
  tonalOffset = 0.2
14160
14835
  } = palette,
14161
- other = _objectWithoutPropertiesLoose(palette, _excluded$27);
14836
+ other = _objectWithoutPropertiesLoose(palette, _excluded$28);
14162
14837
 
14163
14838
  const primary = palette.primary || getDefaultPrimary(mode);
14164
14839
  const secondary = palette.secondary || getDefaultSecondary(mode);
@@ -14294,7 +14969,7 @@ const theme2 = createTheme({ palette: {
14294
14969
  return paletteOutput;
14295
14970
  }
14296
14971
 
14297
- const _excluded$26 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
14972
+ const _excluded$27 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
14298
14973
 
14299
14974
  function round$1(value) {
14300
14975
  return Math.round(value * 1e5) / 1e5;
@@ -14327,7 +15002,7 @@ const theme2 = createTheme({ palette: {
14327
15002
  allVariants,
14328
15003
  pxToRem: pxToRem2
14329
15004
  } = _ref,
14330
- other = _objectWithoutPropertiesLoose(_ref, _excluded$26);
15005
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$27);
14331
15006
 
14332
15007
  {
14333
15008
  if (typeof fontSize !== 'number') {
@@ -14395,7 +15070,7 @@ const theme2 = createTheme({ palette: {
14395
15070
  const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
14396
15071
  var shadows$1 = shadows;
14397
15072
 
14398
- const _excluded$25 = ["duration", "easing", "delay"];
15073
+ const _excluded$26 = ["duration", "easing", "delay"];
14399
15074
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
14400
15075
  // to learn the context in which each easing should be used.
14401
15076
  const easing = {
@@ -14450,7 +15125,7 @@ const theme2 = createTheme({ palette: {
14450
15125
  easing: easingOption = mergedEasing.easeInOut,
14451
15126
  delay = 0
14452
15127
  } = options,
14453
- other = _objectWithoutPropertiesLoose(options, _excluded$25);
15128
+ other = _objectWithoutPropertiesLoose(options, _excluded$26);
14454
15129
 
14455
15130
  {
14456
15131
  const isString = value => typeof value === 'string'; // IE11 support, replace with Number.isNaN
@@ -14506,19 +15181,19 @@ const theme2 = createTheme({ palette: {
14506
15181
  };
14507
15182
  var zIndex$1 = zIndex;
14508
15183
 
14509
- const _excluded$24 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
15184
+ const _excluded$25 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
14510
15185
 
14511
- function createTheme(options = {}, ...args) {
15186
+ function createTheme$1(options = {}, ...args) {
14512
15187
  const {
14513
15188
  mixins: mixinsInput = {},
14514
15189
  palette: paletteInput = {},
14515
15190
  transitions: transitionsInput = {},
14516
15191
  typography: typographyInput = {}
14517
15192
  } = options,
14518
- other = _objectWithoutPropertiesLoose(options, _excluded$24);
15193
+ other = _objectWithoutPropertiesLoose(options, _excluded$25);
14519
15194
 
14520
15195
  const palette = createPalette(paletteInput);
14521
- const systemTheme = createTheme$1(options);
15196
+ const systemTheme = createTheme$2(options);
14522
15197
  let muiTheme = deepmerge(systemTheme, {
14523
15198
  mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
14524
15199
  palette,
@@ -14577,11 +15252,11 @@ const theme2 = createTheme({ palette: {
14577
15252
  }
14578
15253
  }
14579
15254
 
14580
- return createTheme(...args);
15255
+ return createTheme$1(...args);
14581
15256
  }
14582
15257
 
14583
15258
  function createMuiStrictModeTheme(options, ...args) {
14584
- return createTheme(deepmerge({
15259
+ return createTheme$1(deepmerge({
14585
15260
  unstable_strictMode: true
14586
15261
  }, options), ...args);
14587
15262
  }
@@ -14788,11 +15463,11 @@ Use unitless line heights instead.` );
14788
15463
  return theme;
14789
15464
  }
14790
15465
 
14791
- const defaultTheme$1 = createTheme();
14792
- var defaultTheme$2 = defaultTheme$1;
15466
+ const defaultTheme$2 = createTheme$1();
15467
+ var defaultTheme$3 = defaultTheme$2;
14793
15468
 
14794
15469
  function useTheme() {
14795
- const theme = useTheme$1(defaultTheme$2);
15470
+ const theme = useTheme$1(defaultTheme$3);
14796
15471
 
14797
15472
  {
14798
15473
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -14809,14 +15484,14 @@ Use unitless line heights instead.` );
14809
15484
  return useThemeProps$1({
14810
15485
  props,
14811
15486
  name,
14812
- defaultTheme: defaultTheme$2
15487
+ defaultTheme: defaultTheme$3
14813
15488
  });
14814
15489
  }
14815
15490
 
14816
15491
  const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
14817
15492
  const slotShouldForwardProp = shouldForwardProp;
14818
15493
  const styled = createStyled({
14819
- defaultTheme: defaultTheme$2,
15494
+ defaultTheme: defaultTheme$3,
14820
15495
  rootShouldForwardProp
14821
15496
  });
14822
15497
  var styled$1 = styled;
@@ -14839,6 +15514,112 @@ You have to import it from @mui/styles.
14839
15514
  See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14840
15515
  }
14841
15516
 
15517
+ const _excluded$24 = ["colorSchemes", "opacity"],
15518
+ _excluded2$9 = ["palette"];
15519
+ const defaultOpacity = {
15520
+ active: 0.54,
15521
+ hover: 0.04,
15522
+ selected: 0.08,
15523
+ disabled: 0.26,
15524
+ focus: 0.12
15525
+ };
15526
+
15527
+ function createTheme(options = {}, ...args) {
15528
+ var _colorSchemesInput$li, _colorSchemesInput$da;
15529
+
15530
+ const {
15531
+ colorSchemes: colorSchemesInput = {},
15532
+ opacity: opacityInput = {}
15533
+ } = options,
15534
+ input = _objectWithoutPropertiesLoose(options, _excluded$24); // eslint-disable-next-line prefer-const
15535
+
15536
+
15537
+ let _createThemeWithoutVa = createTheme$1(_extends({}, input, colorSchemesInput.light && {
15538
+ palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
15539
+ })),
15540
+ {
15541
+ palette: lightPalette
15542
+ } = _createThemeWithoutVa,
15543
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15544
+
15545
+ const {
15546
+ palette: darkPalette
15547
+ } = createTheme$1({
15548
+ palette: _extends({
15549
+ mode: 'dark'
15550
+ }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
15551
+ });
15552
+ colorSchemesInput.light = {
15553
+ palette: lightPalette
15554
+ };
15555
+ colorSchemesInput.dark = {
15556
+ palette: darkPalette
15557
+ };
15558
+ const colorSchemes = {};
15559
+ Object.keys(colorSchemesInput).forEach(key => {
15560
+ const palette = createPalette(colorSchemesInput[key].palette);
15561
+ Object.keys(palette).forEach(color => {
15562
+ const colors = palette[color];
15563
+
15564
+ if (colors.main) {
15565
+ palette[color].mainChannel = colorChannel(colors.main);
15566
+ }
15567
+
15568
+ if (colors.light) {
15569
+ palette[color].lightChannel = colorChannel(colors.light);
15570
+ }
15571
+
15572
+ if (colors.dark) {
15573
+ palette[color].darkChannel = colorChannel(colors.dark);
15574
+ }
15575
+
15576
+ if (colors.primary) {
15577
+ palette[color].primaryChannel = colorChannel(colors.primary);
15578
+ }
15579
+
15580
+ if (colors.secondary) {
15581
+ palette[color].secondaryChannel = colorChannel(colors.secondary);
15582
+ }
15583
+
15584
+ if (colors.disabled) {
15585
+ palette[color].disabledChannel = colorChannel(colors.disabled);
15586
+ }
15587
+ });
15588
+ colorSchemes[key] = {
15589
+ palette
15590
+ };
15591
+ });
15592
+
15593
+ const opacity = _extends({}, defaultOpacity, opacityInput);
15594
+
15595
+ muiTheme.colorSchemes = colorSchemes;
15596
+ muiTheme.opacity = opacity;
15597
+ muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
15598
+ return muiTheme;
15599
+ }
15600
+
15601
+ const defaultTheme$1 = createTheme();
15602
+ const {
15603
+ CssVarsProvider: Experimental_CssVarsProvider,
15604
+ useColorScheme,
15605
+ getInitColorSchemeScript
15606
+ } = createCssVarsProvider({
15607
+ theme: defaultTheme$1,
15608
+ defaultColorScheme: {
15609
+ light: 'light',
15610
+ dark: 'dark'
15611
+ },
15612
+ prefix: 'md',
15613
+ resolveTheme: theme => {
15614
+ const newTheme = _extends({}, theme, {
15615
+ typography: createTypography(theme.palette, theme.typography)
15616
+ });
15617
+
15618
+ return newTheme;
15619
+ },
15620
+ shouldSkipGeneratingVar: keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/)
15621
+ });
15622
+
14842
15623
  function getSvgIconUtilityClass(slot) {
14843
15624
  return generateUtilityClass('MuiSvgIcon', slot);
14844
15625
  }
@@ -14847,7 +15628,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14847
15628
 
14848
15629
  const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
14849
15630
 
14850
- const useUtilityClasses$1L = ownerState => {
15631
+ const useUtilityClasses$1M = ownerState => {
14851
15632
  const {
14852
15633
  color,
14853
15634
  fontSize,
@@ -14932,7 +15713,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14932
15713
  more.viewBox = viewBox;
14933
15714
  }
14934
15715
 
14935
- const classes = useUtilityClasses$1L(ownerState);
15716
+ const classes = useUtilityClasses$1M(ownerState);
14936
15717
  return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
14937
15718
  as: component,
14938
15719
  className: clsx(classes.root, className),
@@ -14974,7 +15755,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14974
15755
  /**
14975
15756
  * The color of the component.
14976
15757
  * It supports both default and custom theme colors, which can be added as shown in the
14977
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
15758
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
14978
15759
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
14979
15760
  * @default 'inherit'
14980
15761
  */
@@ -16069,7 +16850,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16069
16850
 
16070
16851
  const _excluded$22 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
16071
16852
 
16072
- const useUtilityClasses$1K = ownerState => {
16853
+ const useUtilityClasses$1L = ownerState => {
16073
16854
  const {
16074
16855
  orientation,
16075
16856
  classes
@@ -16140,7 +16921,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16140
16921
  }));
16141
16922
  /**
16142
16923
  * The Collapse transition is used by the
16143
- * [Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.
16924
+ * [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.
16144
16925
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
16145
16926
  */
16146
16927
 
@@ -16177,7 +16958,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16177
16958
  collapsedSize: collapsedSizeProp
16178
16959
  });
16179
16960
 
16180
- const classes = useUtilityClasses$1K(ownerState);
16961
+ const classes = useUtilityClasses$1L(ownerState);
16181
16962
  const theme = useTheme();
16182
16963
  const timer = React__namespace.useRef();
16183
16964
  const wrapperRef = React__namespace.useRef(null);
@@ -16491,7 +17272,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16491
17272
  return (alphaValue / 100).toFixed(2);
16492
17273
  };
16493
17274
 
16494
- const useUtilityClasses$1J = ownerState => {
17275
+ const useUtilityClasses$1K = ownerState => {
16495
17276
  const {
16496
17277
  square,
16497
17278
  elevation,
@@ -16551,7 +17332,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16551
17332
  variant
16552
17333
  });
16553
17334
 
16554
- const classes = useUtilityClasses$1J(ownerState);
17335
+ const classes = useUtilityClasses$1K(ownerState);
16555
17336
 
16556
17337
  {
16557
17338
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -16658,7 +17439,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16658
17439
 
16659
17440
  const _excluded$20 = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
16660
17441
 
16661
- const useUtilityClasses$1I = ownerState => {
17442
+ const useUtilityClasses$1J = ownerState => {
16662
17443
  const {
16663
17444
  classes,
16664
17445
  square,
@@ -16802,7 +17583,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16802
17583
  expanded
16803
17584
  });
16804
17585
 
16805
- const classes = useUtilityClasses$1I(ownerState);
17586
+ const classes = useUtilityClasses$1J(ownerState);
16806
17587
  return /*#__PURE__*/jsxRuntime_2(AccordionRoot, _extends({
16807
17588
  className: clsx(classes.root, className),
16808
17589
  ref: ref,
@@ -16906,7 +17687,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16906
17687
 
16907
17688
  /**
16908
17689
  * The component used for the transition.
16909
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
17690
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
16910
17691
  * @default Collapse
16911
17692
  */
16912
17693
  TransitionComponent: PropTypes.elementType,
@@ -16927,7 +17708,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16927
17708
 
16928
17709
  const _excluded$1$ = ["className", "disableSpacing"];
16929
17710
 
16930
- const useUtilityClasses$1H = ownerState => {
17711
+ const useUtilityClasses$1I = ownerState => {
16931
17712
  const {
16932
17713
  classes,
16933
17714
  disableSpacing
@@ -16975,7 +17756,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16975
17756
  disableSpacing
16976
17757
  });
16977
17758
 
16978
- const classes = useUtilityClasses$1H(ownerState);
17759
+ const classes = useUtilityClasses$1I(ownerState);
16979
17760
  return /*#__PURE__*/jsxRuntime_1(AccordionActionsRoot, _extends({
16980
17761
  className: clsx(classes.root, className),
16981
17762
  ref: ref,
@@ -17026,7 +17807,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17026
17807
 
17027
17808
  const _excluded$1_ = ["className"];
17028
17809
 
17029
- const useUtilityClasses$1G = ownerState => {
17810
+ const useUtilityClasses$1H = ownerState => {
17030
17811
  const {
17031
17812
  classes
17032
17813
  } = ownerState;
@@ -17057,7 +17838,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17057
17838
  other = _objectWithoutPropertiesLoose(props, _excluded$1_);
17058
17839
 
17059
17840
  const ownerState = props;
17060
- const classes = useUtilityClasses$1G(ownerState);
17841
+ const classes = useUtilityClasses$1H(ownerState);
17061
17842
  return /*#__PURE__*/jsxRuntime_1(AccordionDetailsRoot, _extends({
17062
17843
  className: clsx(classes.root, className),
17063
17844
  ref: ref,
@@ -17530,7 +18311,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17530
18311
 
17531
18312
  const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
17532
18313
 
17533
- const useUtilityClasses$1F = ownerState => {
18314
+ const useUtilityClasses$1G = ownerState => {
17534
18315
  const {
17535
18316
  disabled,
17536
18317
  focusVisible,
@@ -17832,7 +18613,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17832
18613
  focusVisible
17833
18614
  });
17834
18615
 
17835
- const classes = useUtilityClasses$1F(ownerState);
18616
+ const classes = useUtilityClasses$1G(ownerState);
17836
18617
  return /*#__PURE__*/jsxRuntime_2(ButtonBaseRoot, _extends({
17837
18618
  as: ComponentProp,
17838
18619
  className: clsx(classes.root, className),
@@ -18068,7 +18849,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18068
18849
 
18069
18850
  const _excluded$1X = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
18070
18851
 
18071
- const useUtilityClasses$1E = ownerState => {
18852
+ const useUtilityClasses$1F = ownerState => {
18072
18853
  const {
18073
18854
  classes,
18074
18855
  expanded,
@@ -18189,7 +18970,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18189
18970
  disableGutters
18190
18971
  });
18191
18972
 
18192
- const classes = useUtilityClasses$1E(ownerState);
18973
+ const classes = useUtilityClasses$1F(ownerState);
18193
18974
  return /*#__PURE__*/jsxRuntime_2(AccordionSummaryRoot, _extends({
18194
18975
  focusRipple: false,
18195
18976
  disableRipple: true,
@@ -18277,7 +19058,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18277
19058
 
18278
19059
  const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
18279
19060
 
18280
- const useUtilityClasses$1D = ownerState => {
19061
+ const useUtilityClasses$1E = ownerState => {
18281
19062
  const {
18282
19063
  classes,
18283
19064
  disabled,
@@ -18355,7 +19136,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18355
19136
  }
18356
19137
  }));
18357
19138
  /**
18358
- * Refer to the [Icons](/components/icons/) section of the documentation
19139
+ * Refer to the [Icons](/material-ui/icons/) section of the documentation
18359
19140
  * regarding the available icon options.
18360
19141
  */
18361
19142
 
@@ -18384,7 +19165,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18384
19165
  size
18385
19166
  });
18386
19167
 
18387
- const classes = useUtilityClasses$1D(ownerState);
19168
+ const classes = useUtilityClasses$1E(ownerState);
18388
19169
  return /*#__PURE__*/jsxRuntime_1(IconButtonRoot, _extends({
18389
19170
  className: clsx(classes.root, className),
18390
19171
  centerRipple: true,
@@ -18430,7 +19211,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18430
19211
  /**
18431
19212
  * The color of the component.
18432
19213
  * It supports both default and custom theme colors, which can be added as shown in the
18433
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
19214
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
18434
19215
  * @default 'default'
18435
19216
  */
18436
19217
  color: PropTypes
@@ -18507,7 +19288,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18507
19288
 
18508
19289
  const _excluded$1V = ["action", "children", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
18509
19290
 
18510
- const useUtilityClasses$1C = ownerState => {
19291
+ const useUtilityClasses$1D = ownerState => {
18511
19292
  const {
18512
19293
  variant,
18513
19294
  color,
@@ -18631,7 +19412,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18631
19412
  variant
18632
19413
  });
18633
19414
 
18634
- const classes = useUtilityClasses$1C(ownerState);
19415
+ const classes = useUtilityClasses$1D(ownerState);
18635
19416
  return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
18636
19417
  role: role,
18637
19418
  elevation: 0,
@@ -18697,7 +19478,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18697
19478
  /**
18698
19479
  * Override the default label for the *close popup* icon button.
18699
19480
  *
18700
- * For localization purposes, you can use the provided [translations](/guides/localization/).
19481
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
18701
19482
  * @default 'Close'
18702
19483
  */
18703
19484
  closeText: PropTypes.string,
@@ -18705,7 +19486,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18705
19486
  /**
18706
19487
  * The color of the component. Unless provided, the value is taken from the `severity` prop.
18707
19488
  * It supports both default and custom theme colors, which can be added as shown in the
18708
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
19489
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
18709
19490
  */
18710
19491
  color: PropTypes
18711
19492
  /* @typescript-to-proptypes-ignore */
@@ -18773,7 +19554,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18773
19554
 
18774
19555
  const _excluded$1U = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
18775
19556
 
18776
- const useUtilityClasses$1B = ownerState => {
19557
+ const useUtilityClasses$1C = ownerState => {
18777
19558
  const {
18778
19559
  align,
18779
19560
  gutterBottom,
@@ -18874,7 +19655,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18874
19655
  });
18875
19656
 
18876
19657
  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
18877
- const classes = useUtilityClasses$1B(ownerState);
19658
+ const classes = useUtilityClasses$1C(ownerState);
18878
19659
  return /*#__PURE__*/jsxRuntime_1(TypographyRoot, _extends({
18879
19660
  as: Component,
18880
19661
  ref: ref,
@@ -18984,7 +19765,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18984
19765
 
18985
19766
  const _excluded$1T = ["className"];
18986
19767
 
18987
- const useUtilityClasses$1A = ownerState => {
19768
+ const useUtilityClasses$1B = ownerState => {
18988
19769
  const {
18989
19770
  classes
18990
19771
  } = ownerState;
@@ -19018,7 +19799,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19018
19799
  other = _objectWithoutPropertiesLoose(props, _excluded$1T);
19019
19800
 
19020
19801
  const ownerState = props;
19021
- const classes = useUtilityClasses$1A(ownerState);
19802
+ const classes = useUtilityClasses$1B(ownerState);
19022
19803
  return /*#__PURE__*/jsxRuntime_1(AlertTitleRoot, _extends({
19023
19804
  gutterBottom: true,
19024
19805
  component: "div",
@@ -19065,7 +19846,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19065
19846
 
19066
19847
  const _excluded$1S = ["className", "color", "enableColorOnDark", "position"];
19067
19848
 
19068
- const useUtilityClasses$1z = ownerState => {
19849
+ const useUtilityClasses$1A = ownerState => {
19069
19850
  const {
19070
19851
  color,
19071
19852
  position,
@@ -19163,7 +19944,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19163
19944
  enableColorOnDark
19164
19945
  });
19165
19946
 
19166
- const classes = useUtilityClasses$1z(ownerState);
19947
+ const classes = useUtilityClasses$1A(ownerState);
19167
19948
  return /*#__PURE__*/jsxRuntime_1(AppBarRoot, _extends({
19168
19949
  square: true,
19169
19950
  component: "header",
@@ -19199,7 +19980,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19199
19980
  /**
19200
19981
  * The color of the component.
19201
19982
  * It supports both default and custom theme colors, which can be added as shown in the
19202
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
19983
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
19203
19984
  * @default 'primary'
19204
19985
  */
19205
19986
  color: PropTypes
@@ -19236,13 +20017,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19236
20017
  *
19237
20018
  * Demos:
19238
20019
  *
19239
- * - [Autocomplete](https://mui.com/components/autocomplete/)
19240
- * - [Menus](https://mui.com/components/menus/)
19241
- * - [Popper](https://mui.com/components/popper/)
20020
+ * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
20021
+ * - [Menus](https://mui.com/material-ui/react-menu/)
20022
+ * - [Popper](https://mui.com/material-ui/react-popper/)
19242
20023
  *
19243
20024
  * API:
19244
20025
  *
19245
- * - [Popper API](https://mui.com/api/popper/)
20026
+ * - [Popper API](https://mui.com/material-ui/api/popper/)
19246
20027
  */
19247
20028
 
19248
20029
  const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
@@ -19376,7 +20157,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19376
20157
 
19377
20158
  const _excluded$1R = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
19378
20159
 
19379
- const useUtilityClasses$1y = ownerState => {
20160
+ const useUtilityClasses$1z = ownerState => {
19380
20161
  const {
19381
20162
  classes,
19382
20163
  color,
@@ -19449,7 +20230,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19449
20230
  inset
19450
20231
  });
19451
20232
 
19452
- const classes = useUtilityClasses$1y(ownerState);
20233
+ const classes = useUtilityClasses$1z(ownerState);
19453
20234
  return /*#__PURE__*/jsxRuntime_1(ListSubheaderRoot, _extends({
19454
20235
  as: component,
19455
20236
  className: clsx(classes.root, className),
@@ -19529,7 +20310,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19529
20310
 
19530
20311
  const _excluded$1Q = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
19531
20312
 
19532
- const useUtilityClasses$1x = ownerState => {
20313
+ const useUtilityClasses$1y = ownerState => {
19533
20314
  const {
19534
20315
  classes,
19535
20316
  disabled,
@@ -19863,7 +20644,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19863
20644
  variant
19864
20645
  });
19865
20646
 
19866
- const classes = useUtilityClasses$1x(ownerState);
20647
+ const classes = useUtilityClasses$1y(ownerState);
19867
20648
  const moreProps = component === ButtonBase$1 ? _extends({
19868
20649
  component: ComponentProp || 'div',
19869
20650
  focusVisibleClassName: classes.focusVisible
@@ -19964,7 +20745,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19964
20745
  /**
19965
20746
  * The color of the component.
19966
20747
  * It supports both default and custom theme colors, which can be added as shown in the
19967
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
20748
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
19968
20749
  * @default 'default'
19969
20750
  */
19970
20751
  color: PropTypes
@@ -20078,7 +20859,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20078
20859
 
20079
20860
  function GlobalStyles(props) {
20080
20861
  return /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, _extends({}, props, {
20081
- defaultTheme: defaultTheme$2
20862
+ defaultTheme: defaultTheme$3
20082
20863
  }));
20083
20864
  }
20084
20865
 
@@ -20147,7 +20928,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20147
20928
  return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];
20148
20929
  };
20149
20930
 
20150
- const useUtilityClasses$1w = ownerState => {
20931
+ const useUtilityClasses$1x = ownerState => {
20151
20932
  const {
20152
20933
  classes,
20153
20934
  color,
@@ -20559,7 +21340,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20559
21340
  type
20560
21341
  });
20561
21342
 
20562
- const classes = useUtilityClasses$1w(ownerState);
21343
+ const classes = useUtilityClasses$1x(ownerState);
20563
21344
  const Root = components.Root || InputBaseRoot;
20564
21345
  const rootProps = componentsProps.root || {};
20565
21346
  const Input = components.Input || InputBaseComponent;
@@ -20647,7 +21428,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20647
21428
  /**
20648
21429
  * The color of the component.
20649
21430
  * It supports both default and custom theme colors, which can be added as shown in the
20650
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
21431
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
20651
21432
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
20652
21433
  */
20653
21434
  color: PropTypes
@@ -20749,7 +21530,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20749
21530
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
20750
21531
 
20751
21532
  /**
20752
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
21533
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
20753
21534
  * @default false
20754
21535
  */
20755
21536
  multiline: PropTypes.bool,
@@ -20889,7 +21670,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20889
21670
 
20890
21671
  const _excluded$1O = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
20891
21672
 
20892
- const useUtilityClasses$1v = ownerState => {
21673
+ const useUtilityClasses$1w = ownerState => {
20893
21674
  const {
20894
21675
  classes,
20895
21676
  disablePortal,
@@ -21312,7 +22093,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21312
22093
  size
21313
22094
  });
21314
22095
 
21315
- const classes = useUtilityClasses$1v(ownerState);
22096
+ const classes = useUtilityClasses$1w(ownerState);
21316
22097
  let startAdornment;
21317
22098
 
21318
22099
  if (multiple && value.length > 0) {
@@ -21513,7 +22294,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21513
22294
  blurOnSelect: PropTypes.oneOfType([PropTypes.oneOf(['mouse', 'touch']), PropTypes.bool]),
21514
22295
 
21515
22296
  /**
21516
- * Props applied to the [`Chip`](/api/chip/) element.
22297
+ * Props applied to the [`Chip`](/material-ui/api/chip/) element.
21517
22298
  */
21518
22299
  ChipProps: PropTypes.object,
21519
22300
 
@@ -21551,7 +22332,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21551
22332
  /**
21552
22333
  * Override the default text for the *clear* icon button.
21553
22334
  *
21554
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22335
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21555
22336
  * @default 'Clear'
21556
22337
  */
21557
22338
  clearText: PropTypes.string,
@@ -21559,7 +22340,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21559
22340
  /**
21560
22341
  * Override the default text for the *close popup* icon button.
21561
22342
  *
21562
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22343
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21563
22344
  * @default 'Close'
21564
22345
  */
21565
22346
  closeText: PropTypes.string,
@@ -21675,6 +22456,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21675
22456
  * Used to determine the string value for a given option.
21676
22457
  * It's used to fill the input (and the list box options if `renderOption` is not provided).
21677
22458
  *
22459
+ * If used in free solo mode, it must accept both the type of the options and a string.
22460
+ *
21678
22461
  * @param {T} option
21679
22462
  * @returns {string}
21680
22463
  * @default (option) => option.label ?? option
@@ -21753,7 +22536,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21753
22536
  /**
21754
22537
  * Text to display when in a loading state.
21755
22538
  *
21756
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22539
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21757
22540
  * @default 'Loading…'
21758
22541
  */
21759
22542
  loadingText: PropTypes.node,
@@ -21767,7 +22550,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21767
22550
  /**
21768
22551
  * Text to display when there are no options.
21769
22552
  *
21770
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22553
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21771
22554
  * @default 'No options'
21772
22555
  */
21773
22556
  noOptionsText: PropTypes.node,
@@ -21831,7 +22614,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21831
22614
  /**
21832
22615
  * Override the default text for the *open popup* icon button.
21833
22616
  *
21834
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22617
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21835
22618
  * @default 'Open'
21836
22619
  */
21837
22620
  openText: PropTypes.string,
@@ -21948,7 +22731,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21948
22731
 
21949
22732
  const _excluded$1N = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
21950
22733
 
21951
- const useUtilityClasses$1u = ownerState => {
22734
+ const useUtilityClasses$1v = ownerState => {
21952
22735
  const {
21953
22736
  classes,
21954
22737
  variant,
@@ -22101,7 +22884,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22101
22884
  variant
22102
22885
  });
22103
22886
 
22104
- const classes = useUtilityClasses$1u(ownerState);
22887
+ const classes = useUtilityClasses$1v(ownerState);
22105
22888
 
22106
22889
  if (hasImgNotFailing) {
22107
22890
  children = /*#__PURE__*/jsxRuntime_1(AvatarImg, _extends({
@@ -22216,7 +22999,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22216
22999
  medium: null
22217
23000
  };
22218
23001
 
22219
- const useUtilityClasses$1t = ownerState => {
23002
+ const useUtilityClasses$1u = ownerState => {
22220
23003
  const {
22221
23004
  classes
22222
23005
  } = ownerState;
@@ -22288,7 +23071,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22288
23071
  variant
22289
23072
  });
22290
23073
 
22291
- const classes = useUtilityClasses$1t(ownerState);
23074
+ const classes = useUtilityClasses$1u(ownerState);
22292
23075
  const children = React__namespace.Children.toArray(childrenProp).filter(child => {
22293
23076
  {
22294
23077
  if (reactIs_2(child)) {
@@ -22415,7 +23198,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22415
23198
  }
22416
23199
  };
22417
23200
  /**
22418
- * The Fade transition is used by the [Modal](/components/modal/) component.
23201
+ * The Fade transition is used by the [Modal](/material-ui/react-modal/) component.
22419
23202
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
22420
23203
  */
22421
23204
 
@@ -22628,7 +23411,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22628
23411
 
22629
23412
  const _excluded$1K = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
22630
23413
 
22631
- const useUtilityClasses$1s = ownerState => {
23414
+ const useUtilityClasses$1t = ownerState => {
22632
23415
  const {
22633
23416
  classes,
22634
23417
  invisible
@@ -22691,7 +23474,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22691
23474
  invisible
22692
23475
  });
22693
23476
 
22694
- const classes = useUtilityClasses$1s(ownerState);
23477
+ const classes = useUtilityClasses$1t(ownerState);
22695
23478
  return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
22696
23479
  in: open,
22697
23480
  timeout: transitionDuration
@@ -22788,22 +23571,31 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22788
23571
 
22789
23572
  var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
22790
23573
 
22791
- const _excluded$1J = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
22792
- const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
22793
- 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
23574
+ function getBadgeUtilityClass(slot) {
23575
+ return generateUtilityClass('MuiBadge', slot);
23576
+ }
23577
+ const badgeClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft', 'invisible', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
23578
+ 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
23579
+ var badgeClasses$1 = badgeClasses;
23580
+
23581
+ const _excluded$1J = ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "showZero", "variant"];
22794
23582
  const RADIUS_STANDARD = 10;
22795
23583
  const RADIUS_DOT = 4;
22796
23584
 
22797
- const extendUtilityClasses$2 = ownerState => {
23585
+ const useUtilityClasses$1s = ownerState => {
22798
23586
  const {
22799
23587
  color,
22800
23588
  anchorOrigin,
23589
+ invisible,
22801
23590
  overlap,
23591
+ variant,
22802
23592
  classes = {}
22803
23593
  } = ownerState;
22804
- return _extends({}, classes, {
22805
- badge: clsx(classes.badge, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
22806
- });
23594
+ const slots = {
23595
+ root: ['root'],
23596
+ badge: ['badge', variant, invisible && 'invisible', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`, `overlap${capitalize(overlap)}`, color !== 'default' && `color${capitalize(color)}`]
23597
+ };
23598
+ return composeClasses(slots, getBadgeUtilityClass, classes);
22807
23599
  };
22808
23600
 
22809
23601
  const BadgeRoot = styled$1('span', {
@@ -22865,7 +23657,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22865
23657
  right: 0,
22866
23658
  transform: 'scale(1) translate(50%, -50%)',
22867
23659
  transformOrigin: '100% 0%',
22868
- [`&.${badgeClasses.invisible}`]: {
23660
+ [`&.${badgeClasses$1.invisible}`]: {
22869
23661
  transform: 'scale(0) translate(50%, -50%)'
22870
23662
  }
22871
23663
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular' && {
@@ -22873,7 +23665,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22873
23665
  right: 0,
22874
23666
  transform: 'scale(1) translate(50%, 50%)',
22875
23667
  transformOrigin: '100% 100%',
22876
- [`&.${badgeClasses.invisible}`]: {
23668
+ [`&.${badgeClasses$1.invisible}`]: {
22877
23669
  transform: 'scale(0) translate(50%, 50%)'
22878
23670
  }
22879
23671
  }, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && {
@@ -22881,7 +23673,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22881
23673
  left: 0,
22882
23674
  transform: 'scale(1) translate(-50%, -50%)',
22883
23675
  transformOrigin: '0% 0%',
22884
- [`&.${badgeClasses.invisible}`]: {
23676
+ [`&.${badgeClasses$1.invisible}`]: {
22885
23677
  transform: 'scale(0) translate(-50%, -50%)'
22886
23678
  }
22887
23679
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && {
@@ -22889,7 +23681,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22889
23681
  left: 0,
22890
23682
  transform: 'scale(1) translate(-50%, 50%)',
22891
23683
  transformOrigin: '0% 100%',
22892
- [`&.${badgeClasses.invisible}`]: {
23684
+ [`&.${badgeClasses$1.invisible}`]: {
22893
23685
  transform: 'scale(0) translate(-50%, 50%)'
22894
23686
  }
22895
23687
  }, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && {
@@ -22897,7 +23689,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22897
23689
  right: '14%',
22898
23690
  transform: 'scale(1) translate(50%, -50%)',
22899
23691
  transformOrigin: '100% 0%',
22900
- [`&.${badgeClasses.invisible}`]: {
23692
+ [`&.${badgeClasses$1.invisible}`]: {
22901
23693
  transform: 'scale(0) translate(50%, -50%)'
22902
23694
  }
22903
23695
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && {
@@ -22905,7 +23697,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22905
23697
  right: '14%',
22906
23698
  transform: 'scale(1) translate(50%, 50%)',
22907
23699
  transformOrigin: '100% 100%',
22908
- [`&.${badgeClasses.invisible}`]: {
23700
+ [`&.${badgeClasses$1.invisible}`]: {
22909
23701
  transform: 'scale(0) translate(50%, 50%)'
22910
23702
  }
22911
23703
  }, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && {
@@ -22913,7 +23705,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22913
23705
  left: '14%',
22914
23706
  transform: 'scale(1) translate(-50%, -50%)',
22915
23707
  transformOrigin: '0% 0%',
22916
- [`&.${badgeClasses.invisible}`]: {
23708
+ [`&.${badgeClasses$1.invisible}`]: {
22917
23709
  transform: 'scale(0) translate(-50%, -50%)'
22918
23710
  }
22919
23711
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && {
@@ -22921,7 +23713,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22921
23713
  left: '14%',
22922
23714
  transform: 'scale(1) translate(-50%, 50%)',
22923
23715
  transformOrigin: '0% 100%',
22924
- [`&.${badgeClasses.invisible}`]: {
23716
+ [`&.${badgeClasses$1.invisible}`]: {
22925
23717
  transform: 'scale(0) translate(-50%, 50%)'
22926
23718
  }
22927
23719
  }, ownerState.invisible && {
@@ -22931,7 +23723,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22931
23723
  })
22932
23724
  }));
22933
23725
  const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
22934
- var _componentsProps$root, _componentsProps$badg;
23726
+ var _componentsProps$root, _componentsProps$root2, _componentsProps$badg, _componentsProps$badg2;
22935
23727
 
22936
23728
  const props = useThemeProps({
22937
23729
  props: inProps,
@@ -22943,12 +23735,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22943
23735
  vertical: 'top',
22944
23736
  horizontal: 'right'
22945
23737
  },
23738
+ className,
22946
23739
  component = 'span',
22947
23740
  components = {},
22948
23741
  componentsProps = {},
22949
23742
  overlap: overlapProp = 'rectangular',
22950
23743
  color: colorProp = 'default',
22951
23744
  invisible: invisibleProp = false,
23745
+ max,
22952
23746
  badgeContent: badgeContentProp,
22953
23747
  showZero = false,
22954
23748
  variant: variantProp = 'standard'
@@ -22958,7 +23752,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22958
23752
  const prevProps = usePreviousProps$1({
22959
23753
  anchorOrigin: anchorOriginProp,
22960
23754
  color: colorProp,
22961
- overlap: overlapProp
23755
+ overlap: overlapProp,
23756
+ variant: variantProp
22962
23757
  });
22963
23758
  let invisible = invisibleProp;
22964
23759
 
@@ -22969,44 +23764,57 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22969
23764
  const {
22970
23765
  color = colorProp,
22971
23766
  overlap = overlapProp,
22972
- anchorOrigin = anchorOriginProp
23767
+ anchorOrigin = anchorOriginProp,
23768
+ variant = variantProp
22973
23769
  } = invisible ? prevProps : props;
22974
23770
 
22975
23771
  const ownerState = _extends({}, props, {
22976
23772
  anchorOrigin,
22977
23773
  invisible,
22978
23774
  color,
22979
- overlap
23775
+ overlap,
23776
+ variant
22980
23777
  });
22981
23778
 
22982
- const classes = extendUtilityClasses$2(ownerState);
23779
+ const classes = useUtilityClasses$1s(ownerState);
23780
+ let displayValue;
23781
+
23782
+ if (variant !== 'dot') {
23783
+ displayValue = badgeContentProp && Number(badgeContentProp) > max ? `${max}+` : badgeContentProp;
23784
+ }
23785
+
22983
23786
  return /*#__PURE__*/jsxRuntime_1(BadgeUnstyled$1, _extends({
22984
- anchorOrigin: anchorOrigin,
22985
23787
  invisible: invisibleProp,
22986
- badgeContent: badgeContentProp,
23788
+ badgeContent: displayValue,
22987
23789
  showZero: showZero,
22988
- variant: variantProp
23790
+ max: max
22989
23791
  }, other, {
22990
23792
  components: _extends({
22991
23793
  Root: BadgeRoot,
22992
23794
  Badge: BadgeBadge
22993
23795
  }, components),
23796
+ className: clsx(className, classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className),
22994
23797
  componentsProps: {
22995
23798
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
22996
23799
  as: component,
22997
- ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
23800
+ ownerState: _extends({}, (_componentsProps$root2 = componentsProps.root) == null ? void 0 : _componentsProps$root2.ownerState, {
23801
+ anchorOrigin,
22998
23802
  color,
22999
- overlap
23803
+ overlap,
23804
+ variant
23000
23805
  })
23001
23806
  }),
23002
- badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps$1(components.Badge) && {
23003
- ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
23807
+ badge: _extends({}, componentsProps.badge, {
23808
+ className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
23809
+ }, shouldSpreadAdditionalProps$1(components.Badge) && {
23810
+ ownerState: _extends({}, (_componentsProps$badg2 = componentsProps.badge) == null ? void 0 : _componentsProps$badg2.ownerState, {
23811
+ anchorOrigin,
23004
23812
  color,
23005
- overlap
23813
+ overlap,
23814
+ variant
23006
23815
  })
23007
23816
  })
23008
23817
  },
23009
- classes: classes,
23010
23818
  ref: ref
23011
23819
  }));
23012
23820
  });
@@ -23045,10 +23853,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23045
23853
  */
23046
23854
  classes: PropTypes.object,
23047
23855
 
23856
+ /**
23857
+ * @ignore
23858
+ */
23859
+ className: PropTypes.string,
23860
+
23048
23861
  /**
23049
23862
  * The color of the component.
23050
23863
  * It supports both default and custom theme colors, which can be added as shown in the
23051
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
23864
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
23052
23865
  * @default 'default'
23053
23866
  */
23054
23867
  color: PropTypes
@@ -23434,7 +24247,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23434
24247
  } ;
23435
24248
  var BottomNavigationAction$1 = BottomNavigationAction;
23436
24249
 
23437
- const defaultTheme = createTheme();
24250
+ const defaultTheme = createTheme$1();
23438
24251
  /**
23439
24252
  * @ignore - do not document.
23440
24253
  */
@@ -23698,7 +24511,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23698
24511
  /**
23699
24512
  * Override the default label for the expand button.
23700
24513
  *
23701
- * For localization purposes, you can use the provided [translations](/guides/localization/).
24514
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
23702
24515
  * @default 'Show path'
23703
24516
  */
23704
24517
  expandText: PropTypes.string,
@@ -23801,106 +24614,111 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23801
24614
  })(({
23802
24615
  theme,
23803
24616
  ownerState
23804
- }) => _extends({}, theme.typography.button, {
23805
- minWidth: 64,
23806
- padding: '6px 16px',
23807
- borderRadius: theme.shape.borderRadius,
23808
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
23809
- duration: theme.transitions.duration.short
23810
- }),
23811
- '&:hover': _extends({
23812
- textDecoration: 'none',
23813
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
23814
- // Reset on touch devices, it doesn't add specificity
23815
- '@media (hover: none)': {
23816
- backgroundColor: 'transparent'
23817
- }
24617
+ }) => {
24618
+ var _theme$palette$getCon, _theme$palette;
24619
+
24620
+ return _extends({}, theme.typography.button, {
24621
+ minWidth: 64,
24622
+ padding: '6px 16px',
24623
+ borderRadius: (theme.vars || theme).shape.borderRadius,
24624
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
24625
+ duration: theme.transitions.duration.short
24626
+ }),
24627
+ '&:hover': _extends({
24628
+ textDecoration: 'none',
24629
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
24630
+ // Reset on touch devices, it doesn't add specificity
24631
+ '@media (hover: none)': {
24632
+ backgroundColor: 'transparent'
24633
+ }
24634
+ }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
24635
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
24636
+ // Reset on touch devices, it doesn't add specificity
24637
+ '@media (hover: none)': {
24638
+ backgroundColor: 'transparent'
24639
+ }
24640
+ }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
24641
+ border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
24642
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
24643
+ // Reset on touch devices, it doesn't add specificity
24644
+ '@media (hover: none)': {
24645
+ backgroundColor: 'transparent'
24646
+ }
24647
+ }, ownerState.variant === 'contained' && {
24648
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
24649
+ boxShadow: (theme.vars || theme).shadows[4],
24650
+ // Reset on touch devices, it doesn't add specificity
24651
+ '@media (hover: none)': {
24652
+ boxShadow: (theme.vars || theme).shadows[2],
24653
+ backgroundColor: (theme.vars || theme).palette.grey[300]
24654
+ }
24655
+ }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
24656
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
24657
+ // Reset on touch devices, it doesn't add specificity
24658
+ '@media (hover: none)': {
24659
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
24660
+ }
24661
+ }),
24662
+ '&:active': _extends({}, ownerState.variant === 'contained' && {
24663
+ boxShadow: (theme.vars || theme).shadows[8]
24664
+ }),
24665
+ [`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
24666
+ boxShadow: (theme.vars || theme).shadows[6]
24667
+ }),
24668
+ [`&.${buttonClasses$1.disabled}`]: _extends({
24669
+ color: (theme.vars || theme).palette.action.disabled
24670
+ }, ownerState.variant === 'outlined' && {
24671
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
24672
+ }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
24673
+ border: `1px solid ${(theme.vars || theme).palette.action.disabled}`
24674
+ }, ownerState.variant === 'contained' && {
24675
+ color: (theme.vars || theme).palette.action.disabled,
24676
+ boxShadow: (theme.vars || theme).shadows[0],
24677
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
24678
+ })
24679
+ }, ownerState.variant === 'text' && {
24680
+ padding: '6px 8px'
23818
24681
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
23819
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
23820
- // Reset on touch devices, it doesn't add specificity
23821
- '@media (hover: none)': {
23822
- backgroundColor: 'transparent'
23823
- }
24682
+ color: (theme.vars || theme).palette[ownerState.color].main
24683
+ }, ownerState.variant === 'outlined' && {
24684
+ padding: '5px 15px',
24685
+ border: '1px solid currentColor'
23824
24686
  }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
23825
- border: `1px solid ${theme.palette[ownerState.color].main}`,
23826
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
23827
- // Reset on touch devices, it doesn't add specificity
23828
- '@media (hover: none)': {
23829
- backgroundColor: 'transparent'
23830
- }
24687
+ color: (theme.vars || theme).palette[ownerState.color].main,
24688
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
23831
24689
  }, ownerState.variant === 'contained' && {
23832
- backgroundColor: theme.palette.grey.A100,
23833
- boxShadow: theme.shadows[4],
23834
- // Reset on touch devices, it doesn't add specificity
23835
- '@media (hover: none)': {
23836
- boxShadow: theme.shadows[2],
23837
- backgroundColor: theme.palette.grey[300]
23838
- }
24690
+ color: theme.vars ? // this is safe because grey does not change between default light/dark mode
24691
+ theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
24692
+ backgroundColor: (theme.vars || theme).palette.grey[300],
24693
+ boxShadow: (theme.vars || theme).shadows[2]
23839
24694
  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
23840
- backgroundColor: theme.palette[ownerState.color].dark,
23841
- // Reset on touch devices, it doesn't add specificity
23842
- '@media (hover: none)': {
23843
- backgroundColor: theme.palette[ownerState.color].main
23844
- }
23845
- }),
23846
- '&:active': _extends({}, ownerState.variant === 'contained' && {
23847
- boxShadow: theme.shadows[8]
23848
- }),
23849
- [`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
23850
- boxShadow: theme.shadows[6]
23851
- }),
23852
- [`&.${buttonClasses$1.disabled}`]: _extends({
23853
- color: theme.palette.action.disabled
23854
- }, ownerState.variant === 'outlined' && {
23855
- border: `1px solid ${theme.palette.action.disabledBackground}`
23856
- }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
23857
- border: `1px solid ${theme.palette.action.disabled}`
23858
- }, ownerState.variant === 'contained' && {
23859
- color: theme.palette.action.disabled,
23860
- boxShadow: theme.shadows[0],
23861
- backgroundColor: theme.palette.action.disabledBackground
23862
- })
23863
- }, ownerState.variant === 'text' && {
23864
- padding: '6px 8px'
23865
- }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
23866
- color: theme.palette[ownerState.color].main
23867
- }, ownerState.variant === 'outlined' && {
23868
- padding: '5px 15px',
23869
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
23870
- }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
23871
- color: theme.palette[ownerState.color].main,
23872
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
23873
- }, ownerState.variant === 'contained' && {
23874
- color: theme.palette.getContrastText(theme.palette.grey[300]),
23875
- backgroundColor: theme.palette.grey[300],
23876
- boxShadow: theme.shadows[2]
23877
- }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
23878
- color: theme.palette[ownerState.color].contrastText,
23879
- backgroundColor: theme.palette[ownerState.color].main
23880
- }, ownerState.color === 'inherit' && {
23881
- color: 'inherit',
23882
- borderColor: 'currentColor'
23883
- }, ownerState.size === 'small' && ownerState.variant === 'text' && {
23884
- padding: '4px 5px',
23885
- fontSize: theme.typography.pxToRem(13)
23886
- }, ownerState.size === 'large' && ownerState.variant === 'text' && {
23887
- padding: '8px 11px',
23888
- fontSize: theme.typography.pxToRem(15)
23889
- }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
23890
- padding: '3px 9px',
23891
- fontSize: theme.typography.pxToRem(13)
23892
- }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
23893
- padding: '7px 21px',
23894
- fontSize: theme.typography.pxToRem(15)
23895
- }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
23896
- padding: '4px 10px',
23897
- fontSize: theme.typography.pxToRem(13)
23898
- }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
23899
- padding: '8px 22px',
23900
- fontSize: theme.typography.pxToRem(15)
23901
- }, ownerState.fullWidth && {
23902
- width: '100%'
23903
- }), ({
24695
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
24696
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
24697
+ }, ownerState.color === 'inherit' && {
24698
+ color: 'inherit',
24699
+ borderColor: 'currentColor'
24700
+ }, ownerState.size === 'small' && ownerState.variant === 'text' && {
24701
+ padding: '4px 5px',
24702
+ fontSize: theme.typography.pxToRem(13)
24703
+ }, ownerState.size === 'large' && ownerState.variant === 'text' && {
24704
+ padding: '8px 11px',
24705
+ fontSize: theme.typography.pxToRem(15)
24706
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
24707
+ padding: '3px 9px',
24708
+ fontSize: theme.typography.pxToRem(13)
24709
+ }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
24710
+ padding: '7px 21px',
24711
+ fontSize: theme.typography.pxToRem(15)
24712
+ }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
24713
+ padding: '4px 10px',
24714
+ fontSize: theme.typography.pxToRem(13)
24715
+ }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
24716
+ padding: '8px 22px',
24717
+ fontSize: theme.typography.pxToRem(15)
24718
+ }, ownerState.fullWidth && {
24719
+ width: '100%'
24720
+ });
24721
+ }, ({
23904
24722
  ownerState
23905
24723
  }) => ownerState.disableElevation && {
23906
24724
  boxShadow: 'none',
@@ -24046,7 +24864,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24046
24864
  /**
24047
24865
  * The color of the component.
24048
24866
  * It supports both default and custom theme colors, which can be added as shown in the
24049
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
24867
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
24050
24868
  * @default 'primary'
24051
24869
  */
24052
24870
  color: PropTypes
@@ -24344,7 +25162,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24344
25162
  /**
24345
25163
  * The color of the component.
24346
25164
  * It supports both default and custom theme colors, which can be added as shown in the
24347
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
25165
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
24348
25166
  * @default 'primary'
24349
25167
  */
24350
25168
  color: PropTypes
@@ -25624,7 +26442,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25624
26442
  /**
25625
26443
  * The color of the component.
25626
26444
  * It supports both default and custom theme colors, which can be added as shown in the
25627
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
26445
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25628
26446
  * @default 'primary'
25629
26447
  */
25630
26448
  color: PropTypes
@@ -25925,7 +26743,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25925
26743
  /**
25926
26744
  * The color of the component.
25927
26745
  * It supports both default and custom theme colors, which can be added as shown in the
25928
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
26746
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25929
26747
  * @default 'primary'
25930
26748
  */
25931
26749
  color: PropTypes
@@ -26314,12 +27132,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26314
27132
  /**
26315
27133
  * Modal is a lower-level construct that is leveraged by the following components:
26316
27134
  *
26317
- * - [Dialog](/api/dialog/)
26318
- * - [Drawer](/api/drawer/)
26319
- * - [Menu](/api/menu/)
26320
- * - [Popover](/api/popover/)
27135
+ * - [Dialog](/material-ui/api/dialog/)
27136
+ * - [Drawer](/material-ui/api/drawer/)
27137
+ * - [Menu](/material-ui/api/menu/)
27138
+ * - [Popover](/material-ui/api/popover/)
26321
27139
  *
26322
- * If you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component
27140
+ * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component
26323
27141
  * rather than directly using Modal.
26324
27142
  *
26325
27143
  * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
@@ -26410,7 +27228,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26410
27228
  BackdropComponent: PropTypes.elementType,
26411
27229
 
26412
27230
  /**
26413
- * Props applied to the [`Backdrop`](/api/backdrop/) element.
27231
+ * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
26414
27232
  */
26415
27233
  BackdropProps: PropTypes.object,
26416
27234
 
@@ -26519,6 +27337,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26519
27337
 
26520
27338
  /**
26521
27339
  * Callback fired when the backdrop is clicked.
27340
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
26522
27341
  */
26523
27342
  onBackdropClick: PropTypes.func,
26524
27343
 
@@ -26892,6 +27711,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26892
27711
 
26893
27712
  /**
26894
27713
  * Callback fired when the backdrop is clicked.
27714
+ * @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
26895
27715
  */
26896
27716
  onBackdropClick: PropTypes.func,
26897
27717
 
@@ -26915,7 +27735,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26915
27735
  PaperComponent: PropTypes.elementType,
26916
27736
 
26917
27737
  /**
26918
- * Props applied to the [`Paper`](/api/paper/) element.
27738
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
26919
27739
  * @default {}
26920
27740
  */
26921
27741
  PaperProps: PropTypes.object,
@@ -26933,7 +27753,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26933
27753
 
26934
27754
  /**
26935
27755
  * The component used for the transition.
26936
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
27756
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
26937
27757
  * @default Fade
26938
27758
  */
26939
27759
  TransitionComponent: PropTypes.elementType,
@@ -27653,7 +28473,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27653
28473
  }
27654
28474
  }
27655
28475
  /**
27656
- * The Slide transition is used by the [Drawer](/components/drawers/) component.
28476
+ * The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.
27657
28477
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
27658
28478
  */
27659
28479
 
@@ -28057,7 +28877,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28057
28877
  return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
28058
28878
  }
28059
28879
  /**
28060
- * The props of the [Modal](/api/modal/) component are available
28880
+ * The props of the [Modal](/material-ui/api/modal/) component are available
28061
28881
  * when `variant="temporary"` is set.
28062
28882
  */
28063
28883
 
@@ -28213,7 +29033,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28213
29033
  hideBackdrop: PropTypes.bool,
28214
29034
 
28215
29035
  /**
28216
- * Props applied to the [`Modal`](/api/modal/) element.
29036
+ * Props applied to the [`Modal`](/material-ui/api/modal/) element.
28217
29037
  * @default {}
28218
29038
  */
28219
29039
  ModalProps: PropTypes.object,
@@ -28232,13 +29052,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28232
29052
  open: PropTypes.bool,
28233
29053
 
28234
29054
  /**
28235
- * Props applied to the [`Paper`](/api/paper/) element.
29055
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
28236
29056
  * @default {}
28237
29057
  */
28238
29058
  PaperProps: PropTypes.object,
28239
29059
 
28240
29060
  /**
28241
- * Props applied to the [`Slide`](/api/slide/) element.
29061
+ * Props applied to the [`Slide`](/material-ui/api/slide/) element.
28242
29062
  */
28243
29063
  SlideProps: PropTypes.object,
28244
29064
 
@@ -28443,7 +29263,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28443
29263
  /**
28444
29264
  * The color of the component.
28445
29265
  * It supports both default and custom theme colors, which can be added as shown in the
28446
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
29266
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
28447
29267
  * @default 'default'
28448
29268
  */
28449
29269
  color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
@@ -28578,7 +29398,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28578
29398
 
28579
29399
  },
28580
29400
  [`&.${filledInputClasses$1.focused}:after`]: {
28581
- transform: 'scaleX(1)'
29401
+ // translateX(0) is a workaround for Safari transform scale bug
29402
+ // See https://github.com/mui/material-ui/issues/31766
29403
+ transform: 'scaleX(1) translateX(0)'
28582
29404
  },
28583
29405
  [`&.${filledInputClasses$1.error}:after`]: {
28584
29406
  borderBottomColor: theme.palette.error.main,
@@ -28734,7 +29556,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28734
29556
  /**
28735
29557
  * The color of the component.
28736
29558
  * It supports both default and custom theme colors, which can be added as shown in the
28737
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
29559
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
28738
29560
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
28739
29561
  */
28740
29562
  color: PropTypes
@@ -28842,7 +29664,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28842
29664
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
28843
29665
 
28844
29666
  /**
28845
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
29667
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
28846
29668
  * @default false
28847
29669
  */
28848
29670
  multiline: PropTypes.bool,
@@ -28966,7 +29788,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28966
29788
  * - Input
28967
29789
  * - InputLabel
28968
29790
  *
28969
- * You can find one composition example below and more going to [the demos](/components/text-fields/#components).
29791
+ * You can find one composition example below and more going to [the demos](/material-ui/react-text-field/#components).
28970
29792
  *
28971
29793
  * ```jsx
28972
29794
  * <FormControl>
@@ -29149,7 +29971,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29149
29971
  /**
29150
29972
  * The color of the component.
29151
29973
  * It supports both default and custom theme colors, which can be added as shown in the
29152
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
29974
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29153
29975
  * @default 'primary'
29154
29976
  */
29155
29977
  color: PropTypes
@@ -29877,7 +30699,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29877
30699
  /**
29878
30700
  * The color of the component.
29879
30701
  * It supports both default and custom theme colors, which can be added as shown in the
29880
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
30702
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29881
30703
  */
29882
30704
  color: PropTypes
29883
30705
  /* @typescript-to-proptypes-ignore */
@@ -30455,14 +31277,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30455
31277
  }
30456
31278
  };
30457
31279
  /**
30458
- * Conditionally apply a workaround for the CSS transition bug in Safari 15.4.
30459
- * Remove this workaround once the Safari bug is fixed.
31280
+ * Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31281
+ * Remove this workaround once the WebKit bug fix is released.
30460
31282
  */
30461
31283
 
30462
- const isSafari154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && /version\/15\.[4-9]/i.test(navigator.userAgent);
31284
+ const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
30463
31285
  /**
30464
- * The Grow transition is used by the [Tooltip](/components/tooltips/) and
30465
- * [Popover](/components/popover/) components.
31286
+ * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and
31287
+ * [Popover](/material-ui/react-popover/) components.
30466
31288
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
30467
31289
  */
30468
31290
 
@@ -30533,7 +31355,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30533
31355
  duration,
30534
31356
  delay
30535
31357
  }), theme.transitions.create('transform', {
30536
- duration: isSafari154 ? duration : duration * 0.666,
31358
+ duration: isWebKit154 ? duration : duration * 0.666,
30537
31359
  delay,
30538
31360
  easing: transitionTimingFunction
30539
31361
  })].join(',');
@@ -30569,8 +31391,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30569
31391
  duration,
30570
31392
  delay
30571
31393
  }), theme.transitions.create('transform', {
30572
- duration: isSafari154 ? duration : duration * 0.666,
30573
- delay: isSafari154 ? delay : delay || duration * 0.333,
31394
+ duration: isWebKit154 ? duration : duration * 0.666,
31395
+ delay: isWebKit154 ? delay : delay || duration * 0.333,
30574
31396
  easing: transitionTimingFunction
30575
31397
  })].join(',');
30576
31398
  node.style.opacity = 0;
@@ -31569,7 +32391,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31569
32391
  /**
31570
32392
  * The color of the component.
31571
32393
  * It supports both default and custom theme colors, which can be added as shown in the
31572
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
32394
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
31573
32395
  * @default 'inherit'
31574
32396
  */
31575
32397
  color: PropTypes
@@ -32250,7 +33072,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32250
33072
 
32251
33073
  },
32252
33074
  [`&.${inputClasses$1.focused}:after`]: {
32253
- transform: 'scaleX(1)'
33075
+ // translateX(0) is a workaround for Safari transform scale bug
33076
+ // See https://github.com/mui/material-ui/issues/31766
33077
+ transform: 'scaleX(1) translateX(0)'
32254
33078
  },
32255
33079
  [`&.${inputClasses$1.error}:after`]: {
32256
33080
  borderBottomColor: theme.palette.error.main,
@@ -32358,7 +33182,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32358
33182
  /**
32359
33183
  * The color of the component.
32360
33184
  * It supports both default and custom theme colors, which can be added as shown in the
32361
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
33185
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
32362
33186
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
32363
33187
  */
32364
33188
  color: PropTypes
@@ -32458,7 +33282,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32458
33282
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
32459
33283
 
32460
33284
  /**
32461
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
33285
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
32462
33286
  * @default false
32463
33287
  */
32464
33288
  multiline: PropTypes.bool,
@@ -32870,7 +33694,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32870
33694
  /**
32871
33695
  * The color of the component.
32872
33696
  * It supports both default and custom theme colors, which can be added as shown in the
32873
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
33697
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
32874
33698
  */
32875
33699
  color: PropTypes
32876
33700
  /* @typescript-to-proptypes-ignore */
@@ -33257,7 +34081,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33257
34081
  /**
33258
34082
  * The color of the component.
33259
34083
  * It supports both default and custom theme colors, which can be added as shown in the
33260
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
34084
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
33261
34085
  * @default 'primary'
33262
34086
  */
33263
34087
  color: PropTypes
@@ -33296,7 +34120,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33296
34120
  const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
33297
34121
  var linkClasses$1 = linkClasses;
33298
34122
 
33299
- const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant"];
34123
+ const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
33300
34124
  const colorTransformations = {
33301
34125
  primary: 'primary.main',
33302
34126
  textPrimary: 'text.primary',
@@ -33379,6 +34203,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33379
34203
  });
33380
34204
  });
33381
34205
  const Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34206
+ const theme = useTheme();
33382
34207
  const props = useThemeProps({
33383
34208
  props: inProps,
33384
34209
  name: 'MuiLink'
@@ -33392,10 +34217,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33392
34217
  onFocus,
33393
34218
  TypographyClasses,
33394
34219
  underline = 'always',
33395
- variant = 'inherit'
34220
+ variant = 'inherit',
34221
+ sx
33396
34222
  } = props,
33397
34223
  other = _objectWithoutPropertiesLoose(props, _excluded$10);
33398
34224
 
34225
+ const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
33399
34226
  const {
33400
34227
  isFocusVisibleRef,
33401
34228
  onBlur: handleBlurVisible,
@@ -33430,7 +34257,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33430
34257
  };
33431
34258
 
33432
34259
  const ownerState = _extends({}, props, {
33433
- color,
34260
+ // It is too complex to support any types of `sx`.
34261
+ // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
34262
+ color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
33434
34263
  component,
33435
34264
  focusVisible,
33436
34265
  underline,
@@ -33439,15 +34268,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33439
34268
 
33440
34269
  const classes = useUtilityClasses$Q(ownerState);
33441
34270
  return /*#__PURE__*/jsxRuntime_1(LinkRoot, _extends({
34271
+ color: color,
33442
34272
  className: clsx(classes.root, className),
33443
34273
  classes: TypographyClasses,
33444
- color: color,
33445
34274
  component: component,
33446
34275
  onBlur: handleBlur,
33447
34276
  onFocus: handleFocus,
33448
34277
  ref: handlerRef,
33449
34278
  ownerState: ownerState,
33450
- variant: variant
34279
+ variant: variant,
34280
+ sx: [...(inProps.color ? [{
34281
+ color: colorTransformations[color] || color
34282
+ }] : []), ...(Array.isArray(sx) ? sx : [sx])]
33451
34283
  }, other));
33452
34284
  });
33453
34285
  Link.propTypes
@@ -33503,7 +34335,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33503
34335
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
33504
34336
 
33505
34337
  /**
33506
- * `classes` prop applied to the [`Typography`](/api/typography/) element.
34338
+ * `classes` prop applied to the [`Typography`](/material-ui/api/typography/) element.
33507
34339
  */
33508
34340
  TypographyClasses: PropTypes.object,
33509
34341
 
@@ -33724,6 +34556,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33724
34556
  alignItems: 'center',
33725
34557
  position: 'relative',
33726
34558
  textDecoration: 'none',
34559
+ minWidth: 0,
33727
34560
  boxSizing: 'border-box',
33728
34561
  textAlign: 'left',
33729
34562
  paddingTop: 8,
@@ -34273,7 +35106,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34273
35106
  * If `true`, the list item is focused during the first mount.
34274
35107
  * Focus will also be triggered if the value changes from false to true.
34275
35108
  * @default false
34276
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35109
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34277
35110
  */
34278
35111
  autoFocus: PropTypes.bool,
34279
35112
 
@@ -34281,7 +35114,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34281
35114
  * If `true`, the list item is a button (using `ButtonBase`). Props intended
34282
35115
  * for `ButtonBase` can then be applied to `ListItem`.
34283
35116
  * @default false
34284
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35117
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34285
35118
  */
34286
35119
  button: PropTypes.bool,
34287
35120
 
@@ -34368,7 +35201,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34368
35201
  /**
34369
35202
  * If `true`, the component is disabled.
34370
35203
  * @default false
34371
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35204
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34372
35205
  */
34373
35206
  disabled: PropTypes.bool,
34374
35207
 
@@ -34403,7 +35236,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34403
35236
  /**
34404
35237
  * Use to apply selected styling.
34405
35238
  * @default false
34406
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35239
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34407
35240
  */
34408
35241
  selected: PropTypes.bool,
34409
35242
 
@@ -34869,7 +35702,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34869
35702
  }
34870
35703
  /**
34871
35704
  * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
34872
- * It's exposed to help customization of the [`Menu`](/api/menu/) component if you
35705
+ * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
34873
35706
  * use it separately you need to move focus into the component manually. Once
34874
35707
  * the focus is placed inside the component it is fully keyboard accessible.
34875
35708
  */
@@ -35526,7 +36359,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35526
36359
  open: PropTypes.bool.isRequired,
35527
36360
 
35528
36361
  /**
35529
- * Props applied to the [`Paper`](/api/paper/) element.
36362
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
35530
36363
  * @default {}
35531
36364
  */
35532
36365
  PaperProps: PropTypes
@@ -35559,7 +36392,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35559
36392
 
35560
36393
  /**
35561
36394
  * The component used for the transition.
35562
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
36395
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
35563
36396
  * @default Grow
35564
36397
  */
35565
36398
  TransitionComponent: PropTypes.elementType,
@@ -35810,7 +36643,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35810
36643
  disableAutoFocusItem: PropTypes.bool,
35811
36644
 
35812
36645
  /**
35813
- * Props applied to the [`MenuList`](/api/menu-list/) element.
36646
+ * Props applied to the [`MenuList`](/material-ui/api/menu-list/) element.
35814
36647
  * @default {}
35815
36648
  */
35816
36649
  MenuListProps: PropTypes.object,
@@ -35834,7 +36667,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35834
36667
  PaperProps: PropTypes.object,
35835
36668
 
35836
36669
  /**
35837
- * `classes` prop applied to the [`Popover`](/api/popover/) element.
36670
+ * `classes` prop applied to the [`Popover`](/material-ui/api/popover/) element.
35838
36671
  */
35839
36672
  PopoverClasses: PropTypes.object,
35840
36673
 
@@ -37001,7 +37834,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37001
37834
  /**
37002
37835
  * The color of the component.
37003
37836
  * It supports both default and custom theme colors, which can be added as shown in the
37004
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
37837
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37005
37838
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
37006
37839
  */
37007
37840
  color: PropTypes
@@ -37093,7 +37926,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37093
37926
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
37094
37927
 
37095
37928
  /**
37096
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
37929
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
37097
37930
  * @default false
37098
37931
  */
37099
37932
  multiline: PropTypes.bool,
@@ -37582,7 +38415,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37582
38415
  /**
37583
38416
  * The active color.
37584
38417
  * It supports both default and custom theme colors, which can be added as shown in the
37585
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
38418
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37586
38419
  * @default 'standard'
37587
38420
  */
37588
38421
  color: PropTypes
@@ -37808,7 +38641,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37808
38641
  /**
37809
38642
  * The active color.
37810
38643
  * It supports both default and custom theme colors, which can be added as shown in the
37811
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
38644
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37812
38645
  * @default 'standard'
37813
38646
  */
37814
38647
  color: PropTypes
@@ -37837,7 +38670,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37837
38670
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
37838
38671
  * This is important for screen reader users.
37839
38672
  *
37840
- * For localization purposes, you can use the provided [translations](/guides/localization/).
38673
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
37841
38674
  * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
37842
38675
  * @param {number} page The page number to format.
37843
38676
  * @param {bool} selected If true, the current page is selected.
@@ -38172,7 +39005,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38172
39005
  /**
38173
39006
  * The color of the component.
38174
39007
  * It supports both default and custom theme colors, which can be added as shown in the
38175
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
39008
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
38176
39009
  * @default 'primary'
38177
39010
  */
38178
39011
  color: PropTypes
@@ -38962,7 +39795,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38962
39795
  * Accepts a function which returns a string value that provides a user-friendly name for the current value of the rating.
38963
39796
  * This is important for screen reader users.
38964
39797
  *
38965
- * For localization purposes, you can use the provided [translations](/guides/localization/).
39798
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
38966
39799
  * @param {number} value The rating label's value to format.
38967
39800
  * @returns {string}
38968
39801
  * @default function defaultLabelText(value) {
@@ -39507,7 +40340,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39507
40340
  }
39508
40341
  }
39509
40342
 
39510
- const items = childrenArray.map(child => {
40343
+ const items = childrenArray.map((child, index, arr) => {
39511
40344
  if (! /*#__PURE__*/React__namespace.isValidElement(child)) {
39512
40345
  return null;
39513
40346
  }
@@ -39542,6 +40375,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39542
40375
  foundMatch = true;
39543
40376
  }
39544
40377
 
40378
+ if (child.props.value === undefined) {
40379
+ return /*#__PURE__*/React__namespace.cloneElement(child, {
40380
+ 'aria-readonly': true,
40381
+ role: 'option'
40382
+ });
40383
+ }
40384
+
40385
+ const isFirstSelectableElement = () => {
40386
+ if (value) {
40387
+ return selected;
40388
+ }
40389
+
40390
+ const firstSelectableElement = arr.find(item => item.props.value !== undefined && item.props.disabled !== true);
40391
+
40392
+ if (child === firstSelectableElement) {
40393
+ return true;
40394
+ }
40395
+
40396
+ return selected;
40397
+ };
40398
+
39545
40399
  return /*#__PURE__*/React__namespace.cloneElement(child, {
39546
40400
  'aria-selected': selected ? 'true' : 'false',
39547
40401
  onClick: handleItemClick(child),
@@ -39558,7 +40412,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39558
40412
  }
39559
40413
  },
39560
40414
  role: 'option',
39561
- selected,
40415
+ selected: arr[0].props.value === undefined || arr[0].props.disabled === true ? isFirstSelectableElement() : selected,
39562
40416
  value: undefined,
39563
40417
  // The value is most likely not a valid HTML attribute.
39564
40418
  'data-value': child.props.value // Instead, we provide it as a data attribute.
@@ -39766,7 +40620,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39766
40620
  labelId: PropTypes.string,
39767
40621
 
39768
40622
  /**
39769
- * Props applied to the [`Menu`](/api/menu/) element.
40623
+ * Props applied to the [`Menu`](/material-ui/api/menu/) element.
39770
40624
  */
39771
40625
  MenuProps: PropTypes.object,
39772
40626
 
@@ -40052,7 +40906,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40052
40906
  inputProps: PropTypes.object,
40053
40907
 
40054
40908
  /**
40055
- * See [OutlinedInput#label](/api/outlined-input/#props)
40909
+ * See [OutlinedInput#label](/material-ui/api/outlined-input/#props)
40056
40910
  */
40057
40911
  label: PropTypes.node,
40058
40912
 
@@ -40063,7 +40917,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40063
40917
  labelId: PropTypes.string,
40064
40918
 
40065
40919
  /**
40066
- * Props applied to the [`Menu`](/api/menu/) element.
40920
+ * Props applied to the [`Menu`](/material-ui/api/menu/) element.
40067
40921
  */
40068
40922
  MenuProps: PropTypes.object,
40069
40923
 
@@ -40898,7 +41752,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40898
41752
  /**
40899
41753
  * The color of the component.
40900
41754
  * It supports both default and custom theme colors, which can be added as shown in the
40901
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
41755
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
40902
41756
  * @default 'primary'
40903
41757
  */
40904
41758
  color: PropTypes
@@ -41609,7 +42463,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41609
42463
  ClickAwayListenerProps: PropTypes.object,
41610
42464
 
41611
42465
  /**
41612
- * Props applied to the [`SnackbarContent`](/api/snackbar-content/) element.
42466
+ * Props applied to the [`SnackbarContent`](/material-ui/api/snackbar-content/) element.
41613
42467
  */
41614
42468
  ContentProps: PropTypes.object,
41615
42469
 
@@ -41684,7 +42538,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41684
42538
 
41685
42539
  /**
41686
42540
  * The component used for the transition.
41687
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
42541
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
41688
42542
  * @default Grow
41689
42543
  */
41690
42544
  TransitionComponent: PropTypes.elementType,
@@ -41723,7 +42577,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41723
42577
  };
41724
42578
  /**
41725
42579
  * The Zoom transition can be used for the floating variant of the
41726
- * [Button](/components/buttons/#floating-action-buttons) component.
42580
+ * [Button](/material-ui/react-button/#floating-action-buttons) component.
41727
42581
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
41728
42582
  */
41729
42583
 
@@ -42378,7 +43232,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42378
43232
  direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),
42379
43233
 
42380
43234
  /**
42381
- * Props applied to the [`Fab`](/api/fab/) element.
43235
+ * Props applied to the [`Fab`](/material-ui/api/fab/) element.
42382
43236
  * @default {}
42383
43237
  */
42384
43238
  FabProps: PropTypes.object,
@@ -42453,7 +43307,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42453
43307
 
42454
43308
  /**
42455
43309
  * The component used for the transition.
42456
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
43310
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
42457
43311
  * @default Zoom
42458
43312
  */
42459
43313
  TransitionComponent: PropTypes.elementType,
@@ -43258,7 +44112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43258
44112
  PopperComponent: PropTypes.elementType,
43259
44113
 
43260
44114
  /**
43261
- * Props applied to the [`Popper`](/api/popper/) element.
44115
+ * Props applied to the [`Popper`](/material-ui/api/popper/) element.
43262
44116
  * @default {}
43263
44117
  */
43264
44118
  PopperProps: PropTypes.object,
@@ -43277,7 +44131,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43277
44131
 
43278
44132
  /**
43279
44133
  * The component used for the transition.
43280
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
44134
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
43281
44135
  * @default Grow
43282
44136
  */
43283
44137
  TransitionComponent: PropTypes.elementType,
@@ -43501,7 +44355,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43501
44355
  delay: PropTypes.number,
43502
44356
 
43503
44357
  /**
43504
- * Props applied to the [`Fab`](/api/fab/) component.
44358
+ * Props applied to the [`Fab`](/material-ui/api/fab/) component.
43505
44359
  * @default {}
43506
44360
  */
43507
44361
  FabProps: PropTypes.object,
@@ -43528,7 +44382,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43528
44382
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
43529
44383
 
43530
44384
  /**
43531
- * `classes` prop applied to the [`Tooltip`](/api/tooltip/) element.
44385
+ * `classes` prop applied to the [`Tooltip`](/material-ui/api/tooltip/) element.
43532
44386
  */
43533
44387
  TooltipClasses: PropTypes.object,
43534
44388
 
@@ -44458,12 +45312,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44458
45312
  optional: PropTypes.node,
44459
45313
 
44460
45314
  /**
44461
- * The component to render in place of the [`StepIcon`](/api/step-icon/).
45315
+ * The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
44462
45316
  */
44463
45317
  StepIconComponent: PropTypes.elementType,
44464
45318
 
44465
45319
  /**
44466
- * Props applied to the [`StepIcon`](/api/step-icon/) element.
45320
+ * Props applied to the [`StepIcon`](/material-ui/api/step-icon/) element.
44467
45321
  */
44468
45322
  StepIconProps: PropTypes.object,
44469
45323
 
@@ -44879,7 +45733,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44879
45733
 
44880
45734
  /**
44881
45735
  * The component used for the transition.
44882
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
45736
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
44883
45737
  * @default Collapse
44884
45738
  */
44885
45739
  TransitionComponent: PropTypes.elementType,
@@ -45992,7 +46846,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45992
46846
  /**
45993
46847
  * The color of the component.
45994
46848
  * It supports both default and custom theme colors, which can be added as shown in the
45995
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
46849
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
45996
46850
  * @default 'primary'
45997
46851
  */
45998
46852
  color: PropTypes
@@ -47325,7 +48179,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47325
48179
  });
47326
48180
  TablePaginationActions.propTypes = {
47327
48181
  /**
47328
- * Props applied to the back arrow [`IconButton`](/api/icon-button/) element.
48182
+ * Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) element.
47329
48183
  */
47330
48184
  backIconButtonProps: PropTypes.object,
47331
48185
 
@@ -47337,7 +48191,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47337
48191
  /**
47338
48192
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
47339
48193
  *
47340
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48194
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47341
48195
  *
47342
48196
  * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
47343
48197
  * @param {number} page The page number to format.
@@ -47346,7 +48200,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47346
48200
  getItemAriaLabel: PropTypes.func.isRequired,
47347
48201
 
47348
48202
  /**
47349
- * Props applied to the next arrow [`IconButton`](/api/icon-button/) element.
48203
+ * Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.
47350
48204
  */
47351
48205
  nextIconButtonProps: PropTypes.object,
47352
48206
 
@@ -47638,7 +48492,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47638
48492
  ActionsComponent: PropTypes.elementType,
47639
48493
 
47640
48494
  /**
47641
- * Props applied to the back arrow [`IconButton`](/api/icon-button/) component.
48495
+ * Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) component.
47642
48496
  */
47643
48497
  backIconButtonProps: PropTypes.object,
47644
48498
 
@@ -47674,7 +48528,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47674
48528
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
47675
48529
  * This is important for screen reader users.
47676
48530
  *
47677
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48531
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47678
48532
  * @param {string} type The link or button type to format ('first' | 'last' | 'next' | 'previous').
47679
48533
  * @returns {string}
47680
48534
  * @default function defaultGetAriaLabel(type) {
@@ -47687,7 +48541,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47687
48541
  * Customize the displayed rows label. Invoked with a `{ from, to, count, page }`
47688
48542
  * object.
47689
48543
  *
47690
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48544
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47691
48545
  * @default function defaultLabelDisplayedRows({ from, to, count }) {
47692
48546
  * return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
47693
48547
  * }
@@ -47697,13 +48551,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47697
48551
  /**
47698
48552
  * Customize the rows per page label.
47699
48553
  *
47700
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48554
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47701
48555
  * @default 'Rows per page:'
47702
48556
  */
47703
48557
  labelRowsPerPage: PropTypes.node,
47704
48558
 
47705
48559
  /**
47706
- * Props applied to the next arrow [`IconButton`](/api/icon-button/) element.
48560
+ * Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.
47707
48561
  */
47708
48562
  nextIconButtonProps: PropTypes.object,
47709
48563
 
@@ -47764,7 +48618,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47764
48618
  })]).isRequired),
47765
48619
 
47766
48620
  /**
47767
- * Props applied to the rows per page [`Select`](/api/select/) element.
48621
+ * Props applied to the rows per page [`Select`](/material-ui/api/select/) element.
47768
48622
  * @default {}
47769
48623
  */
47770
48624
  SelectProps: PropTypes.object,
@@ -49137,7 +49991,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49137
49991
  TabIndicatorProps: PropTypes.object,
49138
49992
 
49139
49993
  /**
49140
- * Props applied to the [`TabScrollButton`](/api/tab-scroll-button/) element.
49994
+ * Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
49141
49995
  * @default {}
49142
49996
  */
49143
49997
  TabScrollButtonProps: PropTypes.object,
@@ -49212,12 +50066,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49212
50066
  * It's important to understand that the text field is a simple abstraction
49213
50067
  * on top of the following components:
49214
50068
  *
49215
- * - [FormControl](/api/form-control/)
49216
- * - [InputLabel](/api/input-label/)
49217
- * - [FilledInput](/api/filled-input/)
49218
- * - [OutlinedInput](/api/outlined-input/)
49219
- * - [Input](/api/input/)
49220
- * - [FormHelperText](/api/form-helper-text/)
50069
+ * - [FormControl](/material-ui/api/form-control/)
50070
+ * - [InputLabel](/material-ui/api/input-label/)
50071
+ * - [FilledInput](/material-ui/api/filled-input/)
50072
+ * - [OutlinedInput](/material-ui/api/outlined-input/)
50073
+ * - [Input](/material-ui/api/input/)
50074
+ * - [FormHelperText](/material-ui/api/form-helper-text/)
49221
50075
  *
49222
50076
  * If you wish to alter the props applied to the `input` element, you can do so as follows:
49223
50077
  *
@@ -49414,7 +50268,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49414
50268
  /**
49415
50269
  * The color of the component.
49416
50270
  * It supports both default and custom theme colors, which can be added as shown in the
49417
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
50271
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49418
50272
  * @default 'primary'
49419
50273
  */
49420
50274
  color: PropTypes
@@ -49439,7 +50293,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49439
50293
  error: PropTypes.bool,
49440
50294
 
49441
50295
  /**
49442
- * Props applied to the [`FormHelperText`](/api/form-helper-text/) element.
50296
+ * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
49443
50297
  */
49444
50298
  FormHelperTextProps: PropTypes.object,
49445
50299
 
@@ -49461,7 +50315,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49461
50315
  id: PropTypes.string,
49462
50316
 
49463
50317
  /**
49464
- * Props applied to the [`InputLabel`](/api/input-label/) element.
50318
+ * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
49465
50319
  * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
49466
50320
  */
49467
50321
  InputLabelProps: PropTypes.object,
@@ -49473,8 +50327,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49473
50327
 
49474
50328
  /**
49475
50329
  * Props applied to the Input element.
49476
- * It will be a [`FilledInput`](/api/filled-input/),
49477
- * [`OutlinedInput`](/api/outlined-input/) or [`Input`](/api/input/)
50330
+ * It will be a [`FilledInput`](/material-ui/api/filled-input/),
50331
+ * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
49478
50332
  * component depending on the `variant` prop value.
49479
50333
  */
49480
50334
  InputProps: PropTypes.object,
@@ -49551,14 +50405,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49551
50405
  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
49552
50406
 
49553
50407
  /**
49554
- * Render a [`Select`](/api/select/) element while passing the Input element to `Select` as `input` parameter.
50408
+ * Render a [`Select`](/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.
49555
50409
  * If this option is set you must pass the options of the select as children.
49556
50410
  * @default false
49557
50411
  */
49558
50412
  select: PropTypes.bool,
49559
50413
 
49560
50414
  /**
49561
- * Props applied to the [`Select`](/api/select/) element.
50415
+ * Props applied to the [`Select`](/material-ui/api/select/) element.
49562
50416
  */
49563
50417
  SelectProps: PropTypes.object,
49564
50418
 
@@ -49755,7 +50609,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49755
50609
  /**
49756
50610
  * The color of the button when it is in an active state.
49757
50611
  * It supports both default and custom theme colors, which can be added as shown in the
49758
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
50612
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49759
50613
  * @default 'standard'
49760
50614
  */
49761
50615
  color: PropTypes
@@ -50034,7 +50888,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50034
50888
  /**
50035
50889
  * The color of the button when it is selected.
50036
50890
  * It supports both default and custom theme colors, which can be added as shown in the
50037
- * [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
50891
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
50038
50892
  * @default 'standard'
50039
50893
  */
50040
50894
  color: PropTypes
@@ -50189,6 +51043,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50189
51043
  exports.DialogTitle = DialogTitle$1;
50190
51044
  exports.Divider = Divider$1;
50191
51045
  exports.Drawer = Drawer$1;
51046
+ exports.Experimental_CssVarsProvider = Experimental_CssVarsProvider;
50192
51047
  exports.Fab = Fab$1;
50193
51048
  exports.Fade = Fade$1;
50194
51049
  exports.FilledInput = FilledInput$1;
@@ -50303,7 +51158,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50303
51158
  exports.avatarClasses = avatarClasses$1;
50304
51159
  exports.avatarGroupClasses = avatarGroupClasses$1;
50305
51160
  exports.backdropClasses = backdropClasses$1;
50306
- exports.badgeClasses = badgeClasses;
51161
+ exports.badgeClasses = badgeClasses$1;
50307
51162
  exports.bottomNavigationActionClasses = bottomNavigationActionClasses$1;
50308
51163
  exports.bottomNavigationClasses = bottomNavigationClasses$1;
50309
51164
  exports.breadcrumbsClasses = breadcrumbsClasses$1;
@@ -50328,7 +51183,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50328
51183
  exports.createMuiTheme = createMuiTheme;
50329
51184
  exports.createStyles = createStyles;
50330
51185
  exports.createSvgIcon = createSvgIcon;
50331
- exports.createTheme = createTheme;
51186
+ exports.createTheme = createTheme$1;
50332
51187
  exports.css = css;
50333
51188
  exports.darkScrollbar = darkScrollbar;
50334
51189
  exports.darken = darken;
@@ -50346,6 +51201,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50346
51201
  exports.easing = easing;
50347
51202
  exports.emphasize = emphasize;
50348
51203
  exports.experimentalStyled = styled$1;
51204
+ exports.experimental_extendTheme = createTheme;
50349
51205
  exports.experimental_sx = sx;
50350
51206
  exports.fabClasses = fabClasses$1;
50351
51207
  exports.filledInputClasses = filledInputClasses$1;
@@ -50367,6 +51223,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50367
51223
  exports.getAvatarGroupUtilityClass = getAvatarGroupUtilityClass;
50368
51224
  exports.getAvatarUtilityClass = getAvatarUtilityClass;
50369
51225
  exports.getBackdropUtilityClass = getBackdropUtilityClass;
51226
+ exports.getBadgeUtilityClass = getBadgeUtilityClass;
50370
51227
  exports.getBottomNavigationActionUtilityClass = getBottomNavigationActionUtilityClass;
50371
51228
  exports.getBottomNavigationUtilityClass = getBottomNavigationUtilityClass;
50372
51229
  exports.getBreadcrumbsUtilityClass = getBreadcrumbsUtilityClass;
@@ -50405,6 +51262,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50405
51262
  exports.getImageListItemBarUtilityClass = getImageListItemBarUtilityClass;
50406
51263
  exports.getImageListItemUtilityClass = getImageListItemUtilityClass;
50407
51264
  exports.getImageListUtilityClass = getImageListUtilityClass;
51265
+ exports.getInitColorSchemeScript = getInitColorSchemeScript;
50408
51266
  exports.getInputAdornmentUtilityClass = getInputAdornmentUtilityClass;
50409
51267
  exports.getInputBaseUtilityClass = getInputBaseUtilityClass;
50410
51268
  exports.getInputLabelUtilityClasses = getInputLabelUtilityClasses;
@@ -50561,6 +51419,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50561
51419
  exports.unstable_useId = useId;
50562
51420
  exports.unsupportedProp = unsupportedProp;
50563
51421
  exports.useAutocomplete = useAutocomplete;
51422
+ exports.useColorScheme = useColorScheme;
50564
51423
  exports.useControlled = useControlled;
50565
51424
  exports.useEventCallback = useEventCallback;
50566
51425
  exports.useForkRef = useForkRef;