@mui/material 5.5.2 → 5.6.1

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 (556) 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 +7 -5
  11. package/Alert/Alert.js +4 -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 +6 -4
  16. package/AppBar/AppBar.js +3 -1
  17. package/AppBar/appBarClasses.d.ts +28 -28
  18. package/Autocomplete/Autocomplete.d.ts +8 -8
  19. package/Autocomplete/Autocomplete.js +7 -7
  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 +35 -18
  26. package/Backdrop/Backdrop.js +26 -20
  27. package/Backdrop/backdropClasses.d.ts +10 -0
  28. package/Backdrop/backdropClasses.js +6 -0
  29. package/Backdrop/index.d.ts +3 -0
  30. package/Backdrop/index.js +2 -1
  31. package/Badge/Badge.d.ts +27 -12
  32. package/Badge/Badge.js +46 -22
  33. package/Badge/badgeClasses.d.ts +24 -0
  34. package/Badge/badgeClasses.js +8 -0
  35. package/Badge/index.d.ts +3 -0
  36. package/Badge/index.js +2 -1
  37. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  38. package/BottomNavigation/BottomNavigation.js +0 -0
  39. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  40. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  41. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  42. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  43. package/Breadcrumbs/Breadcrumbs.js +1 -1
  44. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  45. package/Button/Button.d.ts +7 -5
  46. package/Button/Button.js +104 -97
  47. package/Button/buttonClasses.d.ts +76 -76
  48. package/ButtonBase/ButtonBase.d.ts +2 -2
  49. package/ButtonBase/ButtonBase.js +7 -7
  50. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  51. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  52. package/ButtonGroup/ButtonGroup.d.ts +5 -3
  53. package/ButtonGroup/ButtonGroup.js +3 -1
  54. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  55. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  56. package/CHANGELOG.md +247 -30
  57. package/Card/Card.d.ts +4 -3
  58. package/Card/cardClasses.d.ts +8 -8
  59. package/CardActionArea/CardActionArea.d.ts +3 -3
  60. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  61. package/CardActions/CardActions.d.ts +2 -2
  62. package/CardActions/cardActionsClasses.d.ts +10 -10
  63. package/CardContent/CardContent.d.ts +2 -2
  64. package/CardContent/cardContentClasses.d.ts +8 -8
  65. package/CardHeader/CardHeader.d.ts +2 -2
  66. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  67. package/CardMedia/CardMedia.d.ts +2 -2
  68. package/CardMedia/cardMediaClasses.d.ts +12 -12
  69. package/Checkbox/Checkbox.d.ts +7 -5
  70. package/Checkbox/Checkbox.js +3 -1
  71. package/Checkbox/checkboxClasses.d.ts +18 -18
  72. package/Chip/Chip.d.ts +5 -3
  73. package/Chip/Chip.js +3 -1
  74. package/Chip/chipClasses.d.ts +80 -80
  75. package/CircularProgress/CircularProgress.d.ts +5 -3
  76. package/CircularProgress/CircularProgress.js +3 -1
  77. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  78. package/ClickAwayListener/index.d.ts +2 -2
  79. package/Collapse/Collapse.d.ts +5 -5
  80. package/Collapse/Collapse.js +1 -1
  81. package/Collapse/collapseClasses.d.ts +18 -18
  82. package/Container/Container.d.ts +2 -2
  83. package/Container/containerClasses.d.ts +22 -22
  84. package/CssBaseline/CssBaseline.d.ts +2 -2
  85. package/Dialog/Dialog.d.ts +5 -5
  86. package/Dialog/Dialog.js +2 -2
  87. package/Dialog/DialogContext.d.ts +6 -6
  88. package/Dialog/dialogClasses.d.ts +36 -36
  89. package/DialogActions/DialogActions.d.ts +2 -2
  90. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  91. package/DialogContent/DialogContent.d.ts +2 -2
  92. package/DialogContent/dialogContentClasses.d.ts +10 -10
  93. package/DialogContentText/DialogContentText.d.ts +3 -3
  94. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  95. package/DialogTitle/DialogTitle.d.ts +2 -2
  96. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  97. package/Divider/Divider.d.ts +3 -3
  98. package/Divider/dividerClasses.d.ts +34 -34
  99. package/Drawer/Drawer.d.ts +6 -6
  100. package/Drawer/Drawer.js +4 -4
  101. package/Drawer/drawerClasses.d.ts +30 -30
  102. package/Fab/Fab.d.ts +6 -4
  103. package/Fab/Fab.js +3 -1
  104. package/Fab/fabClasses.d.ts +26 -26
  105. package/Fade/Fade.d.ts +3 -3
  106. package/Fade/Fade.js +1 -1
  107. package/FilledInput/FilledInput.d.ts +3 -3
  108. package/FilledInput/FilledInput.js +4 -2
  109. package/FilledInput/filledInputClasses.d.ts +40 -40
  110. package/FormControl/FormControl.d.ts +9 -7
  111. package/FormControl/FormControl.js +4 -2
  112. package/FormControl/formControlClasses.d.ts +14 -14
  113. package/FormControlLabel/FormControlLabel.d.ts +5 -5
  114. package/FormControlLabel/FormControlLabel.js +14 -9
  115. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  116. package/FormGroup/FormGroup.d.ts +3 -3
  117. package/FormGroup/formGroupClasses.d.ts +12 -12
  118. package/FormHelperText/FormHelperText.d.ts +2 -2
  119. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  120. package/FormLabel/FormLabel.d.ts +7 -5
  121. package/FormLabel/FormLabel.js +3 -1
  122. package/FormLabel/formLabelClasses.d.ts +22 -22
  123. package/GlobalStyles/GlobalStyles.d.ts +2 -2
  124. package/Grid/Grid.d.ts +2 -2
  125. package/Grid/gridClasses.d.ts +48 -48
  126. package/Grow/Grow.d.ts +5 -5
  127. package/Grow/Grow.js +13 -7
  128. package/Hidden/Hidden.d.ts +2 -2
  129. package/Icon/Icon.d.ts +6 -4
  130. package/Icon/Icon.js +3 -1
  131. package/Icon/iconClasses.d.ts +24 -24
  132. package/IconButton/IconButton.d.ts +7 -5
  133. package/IconButton/IconButton.js +4 -2
  134. package/IconButton/iconButtonClasses.d.ts +26 -26
  135. package/ImageList/ImageList.d.ts +2 -2
  136. package/ImageList/imageListClasses.d.ts +16 -16
  137. package/ImageListItem/ImageListItem.d.ts +2 -2
  138. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  139. package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  140. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  141. package/Input/Input.d.ts +3 -3
  142. package/Input/Input.js +4 -2
  143. package/Input/inputClasses.d.ts +34 -34
  144. package/InputAdornment/InputAdornment.d.ts +2 -2
  145. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  146. package/InputBase/InputBase.d.ts +6 -4
  147. package/InputBase/InputBase.js +4 -2
  148. package/InputBase/inputBaseClasses.d.ts +44 -44
  149. package/InputLabel/InputLabel.d.ts +3 -3
  150. package/InputLabel/InputLabel.js +3 -1
  151. package/InputLabel/inputLabelClasses.d.ts +32 -32
  152. package/LinearProgress/LinearProgress.d.ts +5 -3
  153. package/LinearProgress/LinearProgress.js +3 -1
  154. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  155. package/Link/Link.d.ts +5 -5
  156. package/Link/Link.js +15 -6
  157. package/Link/linkClasses.d.ts +18 -18
  158. package/List/List.d.ts +3 -3
  159. package/List/listClasses.d.ts +14 -14
  160. package/ListItem/ListItem.d.ts +8 -8
  161. package/ListItem/ListItem.js +4 -4
  162. package/ListItem/listItemClasses.d.ts +30 -30
  163. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  164. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  165. package/ListItemButton/ListItemButton.d.ts +3 -3
  166. package/ListItemButton/ListItemButton.js +1 -0
  167. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  168. package/ListItemIcon/ListItemIcon.d.ts +2 -2
  169. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  170. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  171. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  172. package/ListItemText/ListItemText.d.ts +2 -2
  173. package/ListItemText/listItemTextClasses.d.ts +18 -18
  174. package/ListSubheader/ListSubheader.d.ts +2 -2
  175. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  176. package/Menu/Menu.d.ts +6 -6
  177. package/Menu/Menu.js +2 -2
  178. package/Menu/menuClasses.d.ts +12 -12
  179. package/MenuItem/MenuItem.d.ts +3 -3
  180. package/MenuItem/menuItemClasses.d.ts +20 -20
  181. package/MenuList/MenuList.d.ts +4 -4
  182. package/MenuList/MenuList.js +1 -1
  183. package/MobileStepper/MobileStepper.d.ts +3 -3
  184. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  185. package/Modal/Modal.d.ts +8 -8
  186. package/Modal/Modal.js +6 -6
  187. package/NativeSelect/NativeSelect.d.ts +3 -3
  188. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  189. package/OutlinedInput/OutlinedInput.d.ts +3 -3
  190. package/OutlinedInput/OutlinedInput.js +4 -2
  191. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  192. package/Pagination/Pagination.d.ts +5 -3
  193. package/Pagination/Pagination.js +3 -1
  194. package/Pagination/paginationClasses.d.ts +14 -14
  195. package/PaginationItem/PaginationItem.d.ts +4 -2
  196. package/PaginationItem/PaginationItem.js +2 -0
  197. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  198. package/Paper/Paper.d.ts +3 -3
  199. package/Paper/paperClasses.d.ts +39 -39
  200. package/Popover/Popover.d.ts +6 -6
  201. package/Popover/Popover.js +2 -2
  202. package/Popover/popoverClasses.d.ts +10 -10
  203. package/Popper/Popper.d.ts +29 -29
  204. package/Popper/Popper.js +4 -4
  205. package/README.md +7 -7
  206. package/Radio/Radio.d.ts +6 -4
  207. package/Radio/Radio.js +3 -1
  208. package/Radio/radioClasses.d.ts +16 -16
  209. package/RadioGroup/RadioGroup.d.ts +3 -3
  210. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  211. package/RadioGroup/useRadioGroup.d.ts +4 -4
  212. package/Rating/Rating.d.ts +3 -3
  213. package/Rating/Rating.js +1 -1
  214. package/Rating/ratingClasses.d.ts +40 -40
  215. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  216. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  217. package/Select/Select.d.ts +5 -5
  218. package/Select/Select.js +2 -2
  219. package/Select/SelectInput.js +24 -3
  220. package/Select/selectClasses.d.ts +30 -30
  221. package/Skeleton/Skeleton.d.ts +2 -2
  222. package/Skeleton/skeletonClasses.d.ts +24 -24
  223. package/Slide/Slide.d.ts +4 -4
  224. package/Slide/Slide.js +1 -1
  225. package/Slider/Slider.d.ts +6 -4
  226. package/Slider/Slider.js +3 -1
  227. package/Snackbar/Snackbar.d.ts +4 -4
  228. package/Snackbar/Snackbar.js +2 -2
  229. package/Snackbar/snackbarClasses.d.ts +20 -20
  230. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  231. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  232. package/SpeedDial/SpeedDial.d.ts +4 -4
  233. package/SpeedDial/SpeedDial.js +2 -2
  234. package/SpeedDial/speedDialClasses.d.ts +22 -22
  235. package/SpeedDialAction/SpeedDialAction.d.ts +5 -5
  236. package/SpeedDialAction/SpeedDialAction.js +2 -2
  237. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  238. package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  239. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  240. package/Stack/Stack.d.ts +2 -2
  241. package/Step/Step.d.ts +2 -2
  242. package/Step/StepContext.d.ts +20 -20
  243. package/Step/stepClasses.d.ts +16 -16
  244. package/StepButton/StepButton.d.ts +3 -3
  245. package/StepButton/stepButtonClasses.d.ts +14 -14
  246. package/StepConnector/StepConnector.d.ts +2 -2
  247. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  248. package/StepContent/StepContent.d.ts +3 -3
  249. package/StepContent/StepContent.js +1 -1
  250. package/StepContent/stepContentClasses.d.ts +12 -12
  251. package/StepIcon/StepIcon.d.ts +2 -2
  252. package/StepIcon/stepIconClasses.d.ts +16 -16
  253. package/StepLabel/StepLabel.d.ts +4 -4
  254. package/StepLabel/StepLabel.js +2 -2
  255. package/StepLabel/stepLabelClasses.d.ts +28 -28
  256. package/Stepper/Stepper.d.ts +2 -2
  257. package/Stepper/stepperClasses.d.ts +14 -14
  258. package/SvgIcon/SvgIcon.d.ts +6 -4
  259. package/SvgIcon/SvgIcon.js +3 -1
  260. package/SvgIcon/svgIconClasses.d.ts +24 -24
  261. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  262. package/Switch/Switch.d.ts +7 -5
  263. package/Switch/Switch.js +3 -1
  264. package/Switch/switchClasses.d.ts +32 -32
  265. package/Tab/Tab.d.ts +3 -3
  266. package/Tab/tabClasses.d.ts +26 -26
  267. package/TabScrollButton/TabScrollButton.d.ts +2 -2
  268. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  269. package/Table/Table.d.ts +2 -2
  270. package/Table/tableClasses.d.ts +10 -10
  271. package/TableBody/TableBody.d.ts +2 -2
  272. package/TableBody/tableBodyClasses.d.ts +8 -8
  273. package/TableCell/TableCell.d.ts +2 -2
  274. package/TableCell/tableCellClasses.d.ts +32 -32
  275. package/TableContainer/TableContainer.d.ts +2 -2
  276. package/TableContainer/tableContainerClasses.d.ts +8 -8
  277. package/TableFooter/TableFooter.d.ts +2 -2
  278. package/TableFooter/tableFooterClasses.d.ts +8 -8
  279. package/TableHead/TableHead.d.ts +2 -2
  280. package/TableHead/tableHeadClasses.d.ts +8 -8
  281. package/TablePagination/TablePagination.d.ts +9 -9
  282. package/TablePagination/TablePagination.js +6 -6
  283. package/TablePagination/TablePaginationActions.d.ts +1 -1
  284. package/TablePagination/TablePaginationActions.js +3 -3
  285. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  286. package/TableRow/TableRow.d.ts +2 -2
  287. package/TableRow/tableRowClasses.d.ts +16 -16
  288. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  289. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  290. package/Tabs/Tabs.d.ts +3 -3
  291. package/Tabs/Tabs.js +1 -1
  292. package/Tabs/tabsClasses.d.ts +32 -32
  293. package/TextField/TextField.d.ts +23 -22
  294. package/TextField/TextField.js +15 -13
  295. package/TextField/textFieldClasses.d.ts +8 -8
  296. package/ToggleButton/ToggleButton.d.ts +5 -3
  297. package/ToggleButton/ToggleButton.js +2 -0
  298. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  299. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -3
  300. package/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  301. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  302. package/Toolbar/Toolbar.d.ts +2 -2
  303. package/Toolbar/toolbarClasses.d.ts +14 -14
  304. package/Tooltip/Tooltip.d.ts +4 -4
  305. package/Tooltip/Tooltip.js +2 -2
  306. package/Tooltip/tooltipClasses.d.ts +30 -30
  307. package/Typography/Typography.d.ts +3 -3
  308. package/Typography/typographyClasses.d.ts +50 -50
  309. package/Unstable_TrapFocus/index.d.ts +2 -2
  310. package/Unstable_TrapFocus/index.js +1 -1
  311. package/Zoom/Zoom.d.ts +3 -3
  312. package/Zoom/Zoom.js +1 -1
  313. package/className/index.d.ts +8 -8
  314. package/darkScrollbar/index.d.ts +28 -28
  315. package/index.js +1 -1
  316. package/internal/switchBaseClasses.d.ts +12 -12
  317. package/legacy/Accordion/Accordion.js +1 -1
  318. package/legacy/Alert/Alert.js +4 -2
  319. package/legacy/AppBar/AppBar.js +3 -1
  320. package/legacy/Autocomplete/Autocomplete.js +7 -7
  321. package/legacy/Backdrop/Backdrop.js +27 -20
  322. package/legacy/Backdrop/backdropClasses.js +6 -0
  323. package/legacy/Backdrop/index.js +2 -1
  324. package/legacy/Badge/Badge.js +47 -22
  325. package/legacy/Badge/badgeClasses.js +8 -0
  326. package/legacy/Badge/index.js +2 -1
  327. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  328. package/legacy/Breadcrumbs/Breadcrumbs.js +1 -1
  329. package/legacy/Button/Button.js +33 -30
  330. package/legacy/ButtonBase/ButtonBase.js +11 -11
  331. package/legacy/ButtonGroup/ButtonGroup.js +3 -1
  332. package/legacy/Checkbox/Checkbox.js +3 -1
  333. package/legacy/Chip/Chip.js +3 -1
  334. package/legacy/CircularProgress/CircularProgress.js +3 -1
  335. package/legacy/Collapse/Collapse.js +1 -1
  336. package/legacy/Dialog/Dialog.js +2 -2
  337. package/legacy/Drawer/Drawer.js +4 -4
  338. package/legacy/Fab/Fab.js +3 -1
  339. package/legacy/Fade/Fade.js +1 -1
  340. package/legacy/FilledInput/FilledInput.js +4 -2
  341. package/legacy/FormControl/FormControl.js +4 -2
  342. package/legacy/FormControlLabel/FormControlLabel.js +14 -9
  343. package/legacy/FormLabel/FormLabel.js +3 -1
  344. package/legacy/Grow/Grow.js +13 -7
  345. package/legacy/Icon/Icon.js +3 -1
  346. package/legacy/IconButton/IconButton.js +4 -2
  347. package/legacy/Input/Input.js +4 -2
  348. package/legacy/InputBase/InputBase.js +4 -2
  349. package/legacy/InputLabel/InputLabel.js +3 -1
  350. package/legacy/LinearProgress/LinearProgress.js +3 -1
  351. package/legacy/Link/Link.js +16 -5
  352. package/legacy/ListItem/ListItem.js +4 -4
  353. package/legacy/ListItemButton/ListItemButton.js +1 -0
  354. package/legacy/Menu/Menu.js +2 -2
  355. package/legacy/MenuList/MenuList.js +1 -1
  356. package/legacy/Modal/Modal.js +6 -6
  357. package/legacy/OutlinedInput/OutlinedInput.js +4 -2
  358. package/legacy/Pagination/Pagination.js +3 -1
  359. package/legacy/PaginationItem/PaginationItem.js +2 -0
  360. package/legacy/Popover/Popover.js +2 -2
  361. package/legacy/Popper/Popper.js +4 -4
  362. package/legacy/Radio/Radio.js +3 -1
  363. package/legacy/Rating/Rating.js +1 -1
  364. package/legacy/Select/Select.js +2 -2
  365. package/legacy/Select/SelectInput.js +26 -3
  366. package/legacy/Slide/Slide.js +1 -1
  367. package/legacy/Slider/Slider.js +3 -1
  368. package/legacy/Snackbar/Snackbar.js +2 -2
  369. package/legacy/SpeedDial/SpeedDial.js +2 -2
  370. package/legacy/SpeedDialAction/SpeedDialAction.js +2 -2
  371. package/legacy/StepContent/StepContent.js +1 -1
  372. package/legacy/StepLabel/StepLabel.js +2 -2
  373. package/legacy/SvgIcon/SvgIcon.js +3 -1
  374. package/legacy/Switch/Switch.js +3 -1
  375. package/legacy/TablePagination/TablePagination.js +6 -6
  376. package/legacy/TablePagination/TablePaginationActions.js +3 -3
  377. package/legacy/Tabs/Tabs.js +1 -1
  378. package/legacy/TextField/TextField.js +15 -13
  379. package/legacy/ToggleButton/ToggleButton.js +2 -0
  380. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  381. package/legacy/Tooltip/Tooltip.js +2 -2
  382. package/legacy/Unstable_TrapFocus/index.js +1 -1
  383. package/legacy/Zoom/Zoom.js +1 -1
  384. package/legacy/index.js +1 -1
  385. package/legacy/locale/index.js +115 -111
  386. package/legacy/styles/CssVarsProvider.js +31 -0
  387. package/legacy/styles/experimental_extendTheme.js +96 -0
  388. package/legacy/styles/index.js +3 -1
  389. package/locale/index.d.ts +71 -71
  390. package/locale/index.js +6 -3
  391. package/modern/Accordion/Accordion.js +1 -1
  392. package/modern/Alert/Alert.js +4 -2
  393. package/modern/AppBar/AppBar.js +3 -1
  394. package/modern/Autocomplete/Autocomplete.js +7 -7
  395. package/modern/Backdrop/Backdrop.js +25 -19
  396. package/modern/Backdrop/backdropClasses.js +6 -0
  397. package/modern/Backdrop/index.js +2 -1
  398. package/modern/Badge/Badge.js +43 -19
  399. package/modern/Badge/badgeClasses.js +8 -0
  400. package/modern/Badge/index.js +2 -1
  401. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  402. package/modern/Breadcrumbs/Breadcrumbs.js +1 -1
  403. package/modern/Button/Button.js +32 -29
  404. package/modern/ButtonBase/ButtonBase.js +7 -7
  405. package/modern/ButtonGroup/ButtonGroup.js +3 -1
  406. package/modern/Checkbox/Checkbox.js +3 -1
  407. package/modern/Chip/Chip.js +3 -1
  408. package/modern/CircularProgress/CircularProgress.js +3 -1
  409. package/modern/Collapse/Collapse.js +1 -1
  410. package/modern/Dialog/Dialog.js +2 -2
  411. package/modern/Drawer/Drawer.js +4 -4
  412. package/modern/Fab/Fab.js +3 -1
  413. package/modern/Fade/Fade.js +1 -1
  414. package/modern/FilledInput/FilledInput.js +4 -2
  415. package/modern/FormControl/FormControl.js +4 -2
  416. package/modern/FormControlLabel/FormControlLabel.js +14 -9
  417. package/modern/FormLabel/FormLabel.js +3 -1
  418. package/modern/Grow/Grow.js +13 -7
  419. package/modern/Icon/Icon.js +3 -1
  420. package/modern/IconButton/IconButton.js +4 -2
  421. package/modern/Input/Input.js +4 -2
  422. package/modern/InputBase/InputBase.js +4 -2
  423. package/modern/InputLabel/InputLabel.js +3 -1
  424. package/modern/LinearProgress/LinearProgress.js +3 -1
  425. package/modern/Link/Link.js +15 -6
  426. package/modern/ListItem/ListItem.js +4 -4
  427. package/modern/ListItemButton/ListItemButton.js +1 -0
  428. package/modern/Menu/Menu.js +2 -2
  429. package/modern/MenuList/MenuList.js +1 -1
  430. package/modern/Modal/Modal.js +6 -6
  431. package/modern/OutlinedInput/OutlinedInput.js +4 -2
  432. package/modern/Pagination/Pagination.js +3 -1
  433. package/modern/PaginationItem/PaginationItem.js +2 -0
  434. package/modern/Popover/Popover.js +2 -2
  435. package/modern/Popper/Popper.js +4 -4
  436. package/modern/Radio/Radio.js +3 -1
  437. package/modern/Rating/Rating.js +1 -1
  438. package/modern/Select/Select.js +2 -2
  439. package/modern/Select/SelectInput.js +24 -3
  440. package/modern/Slide/Slide.js +1 -1
  441. package/modern/Slider/Slider.js +3 -1
  442. package/modern/Snackbar/Snackbar.js +2 -2
  443. package/modern/SpeedDial/SpeedDial.js +2 -2
  444. package/modern/SpeedDialAction/SpeedDialAction.js +2 -2
  445. package/modern/StepContent/StepContent.js +1 -1
  446. package/modern/StepLabel/StepLabel.js +2 -2
  447. package/modern/SvgIcon/SvgIcon.js +3 -1
  448. package/modern/Switch/Switch.js +3 -1
  449. package/modern/TablePagination/TablePagination.js +6 -6
  450. package/modern/TablePagination/TablePaginationActions.js +3 -3
  451. package/modern/Tabs/Tabs.js +1 -1
  452. package/modern/TextField/TextField.js +15 -13
  453. package/modern/ToggleButton/ToggleButton.js +2 -0
  454. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  455. package/modern/Tooltip/Tooltip.js +2 -2
  456. package/modern/Unstable_TrapFocus/index.js +1 -1
  457. package/modern/Zoom/Zoom.js +1 -1
  458. package/modern/index.js +1 -1
  459. package/modern/locale/index.js +6 -3
  460. package/modern/styles/CssVarsProvider.js +28 -0
  461. package/modern/styles/experimental_extendTheme.js +89 -0
  462. package/modern/styles/index.js +3 -1
  463. package/node/Accordion/Accordion.js +1 -1
  464. package/node/Alert/Alert.js +4 -2
  465. package/node/AppBar/AppBar.js +3 -1
  466. package/node/Autocomplete/Autocomplete.js +7 -7
  467. package/node/Backdrop/Backdrop.js +28 -23
  468. package/node/Backdrop/backdropClasses.js +17 -0
  469. package/node/Backdrop/index.js +17 -5
  470. package/node/Badge/Badge.js +56 -33
  471. package/node/Badge/badgeClasses.js +22 -0
  472. package/node/Badge/index.js +17 -5
  473. package/node/BottomNavigation/BottomNavigation.js +0 -0
  474. package/node/Breadcrumbs/Breadcrumbs.js +1 -1
  475. package/node/Button/Button.js +104 -97
  476. package/node/ButtonBase/ButtonBase.js +7 -7
  477. package/node/ButtonGroup/ButtonGroup.js +3 -1
  478. package/node/Checkbox/Checkbox.js +3 -1
  479. package/node/Chip/Chip.js +3 -1
  480. package/node/CircularProgress/CircularProgress.js +3 -1
  481. package/node/Collapse/Collapse.js +1 -1
  482. package/node/Dialog/Dialog.js +2 -2
  483. package/node/Drawer/Drawer.js +4 -4
  484. package/node/Fab/Fab.js +3 -1
  485. package/node/Fade/Fade.js +1 -1
  486. package/node/FilledInput/FilledInput.js +4 -2
  487. package/node/FormControl/FormControl.js +4 -2
  488. package/node/FormControlLabel/FormControlLabel.js +14 -9
  489. package/node/FormLabel/FormLabel.js +3 -1
  490. package/node/Grow/Grow.js +12 -6
  491. package/node/Icon/Icon.js +3 -1
  492. package/node/IconButton/IconButton.js +4 -2
  493. package/node/Input/Input.js +4 -2
  494. package/node/InputBase/InputBase.js +4 -2
  495. package/node/InputLabel/InputLabel.js +3 -1
  496. package/node/LinearProgress/LinearProgress.js +3 -1
  497. package/node/Link/Link.js +16 -6
  498. package/node/ListItem/ListItem.js +4 -4
  499. package/node/ListItemButton/ListItemButton.js +1 -0
  500. package/node/Menu/Menu.js +2 -2
  501. package/node/MenuList/MenuList.js +1 -1
  502. package/node/Modal/Modal.js +6 -6
  503. package/node/OutlinedInput/OutlinedInput.js +4 -2
  504. package/node/Pagination/Pagination.js +3 -1
  505. package/node/PaginationItem/PaginationItem.js +2 -0
  506. package/node/Popover/Popover.js +2 -2
  507. package/node/Popper/Popper.js +4 -4
  508. package/node/Radio/Radio.js +3 -1
  509. package/node/Rating/Rating.js +1 -1
  510. package/node/Select/Select.js +2 -2
  511. package/node/Select/SelectInput.js +24 -3
  512. package/node/Slide/Slide.js +1 -1
  513. package/node/Slider/Slider.js +3 -1
  514. package/node/Snackbar/Snackbar.js +2 -2
  515. package/node/SpeedDial/SpeedDial.js +2 -2
  516. package/node/SpeedDialAction/SpeedDialAction.js +2 -2
  517. package/node/StepContent/StepContent.js +1 -1
  518. package/node/StepLabel/StepLabel.js +2 -2
  519. package/node/SvgIcon/SvgIcon.js +3 -1
  520. package/node/Switch/Switch.js +3 -1
  521. package/node/TablePagination/TablePagination.js +6 -6
  522. package/node/TablePagination/TablePaginationActions.js +3 -3
  523. package/node/Tabs/Tabs.js +1 -1
  524. package/node/TextField/TextField.js +15 -13
  525. package/node/ToggleButton/ToggleButton.js +2 -0
  526. package/node/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
  527. package/node/Tooltip/Tooltip.js +2 -2
  528. package/node/Unstable_TrapFocus/index.js +2 -2
  529. package/node/Zoom/Zoom.js +1 -1
  530. package/node/index.js +1 -1
  531. package/node/locale/index.js +6 -3
  532. package/node/styles/CssVarsProvider.js +41 -0
  533. package/node/styles/experimental_extendTheme.js +105 -0
  534. package/node/styles/index.js +58 -0
  535. package/package.json +8 -8
  536. package/styles/CssVarsProvider.d.ts +28 -0
  537. package/styles/CssVarsProvider.js +28 -0
  538. package/styles/ThemeProvider.d.ts +1 -1
  539. package/styles/createPalette.d.ts +26 -0
  540. package/styles/createTheme.d.ts +1 -1
  541. package/styles/experimental_extendTheme.d.ts +90 -0
  542. package/styles/experimental_extendTheme.js +91 -0
  543. package/styles/index.d.ts +5 -0
  544. package/styles/index.js +3 -1
  545. package/transitions/index.d.ts +1 -1
  546. package/transitions/transition.d.ts +13 -13
  547. package/transitions/utils.d.ts +23 -23
  548. package/umd/material-ui.development.js +1412 -599
  549. package/umd/material-ui.production.min.js +21 -21
  550. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  551. package/useTouchRipple/index.d.ts +1 -1
  552. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  553. package/utils/getScrollbarSize.d.ts +2 -2
  554. package/utils/ownerDocument.d.ts +2 -2
  555. package/utils/ownerWindow.d.ts +2 -2
  556. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.5.2
1
+ /** @license MUI v5.6.1
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",
@@ -6449,7 +6449,7 @@
6449
6449
  styleFunctionSx.filterProps = ['sx'];
6450
6450
  var defaultStyleFunctionSx = styleFunctionSx;
6451
6451
 
6452
- const _excluded$2k = ["sx"];
6452
+ const _excluded$2l = ["sx"];
6453
6453
 
6454
6454
  const splitProps = props => {
6455
6455
  const result = {
@@ -6470,7 +6470,7 @@
6470
6470
  const {
6471
6471
  sx: inSx
6472
6472
  } = props,
6473
- other = _objectWithoutPropertiesLoose(props, _excluded$2k);
6473
+ other = _objectWithoutPropertiesLoose(props, _excluded$2l);
6474
6474
 
6475
6475
  const {
6476
6476
  systemProps,
@@ -6549,7 +6549,7 @@
6549
6549
  return str;
6550
6550
  }
6551
6551
 
6552
- const _excluded$2j = ["values", "unit", "step"];
6552
+ const _excluded$2k = ["values", "unit", "step"];
6553
6553
 
6554
6554
  const sortBreakpointsValues = values => {
6555
6555
  const breakpointsAsArray = Object.keys(values).map(key => ({
@@ -6585,7 +6585,7 @@
6585
6585
  unit = 'px',
6586
6586
  step = 5
6587
6587
  } = breakpoints,
6588
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2j);
6588
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2k);
6589
6589
 
6590
6590
  const sortedValues = sortBreakpointsValues(values);
6591
6591
  const keys = Object.keys(sortedValues);
@@ -6677,16 +6677,16 @@
6677
6677
  return spacing;
6678
6678
  }
6679
6679
 
6680
- const _excluded$2i = ["breakpoints", "palette", "spacing", "shape"];
6680
+ const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6681
6681
 
6682
- function createTheme$1(options = {}, ...args) {
6682
+ function createTheme$2(options = {}, ...args) {
6683
6683
  const {
6684
6684
  breakpoints: breakpointsInput = {},
6685
6685
  palette: paletteInput = {},
6686
6686
  spacing: spacingInput,
6687
6687
  shape: shapeInput = {}
6688
6688
  } = options,
6689
- other = _objectWithoutPropertiesLoose(options, _excluded$2i);
6689
+ other = _objectWithoutPropertiesLoose(options, _excluded$2j);
6690
6690
 
6691
6691
  const breakpoints = createBreakpoints(breakpointsInput);
6692
6692
  const spacing = createSpacing(spacingInput);
@@ -6802,13 +6802,13 @@
6802
6802
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
6803
6803
  }
6804
6804
 
6805
- const systemDefaultTheme$1 = createTheme$1();
6805
+ const systemDefaultTheme$1 = createTheme$2();
6806
6806
 
6807
6807
  function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6808
6808
  return useTheme$2(defaultTheme);
6809
6809
  }
6810
6810
 
6811
- const _excluded$2h = ["className", "component"];
6811
+ const _excluded$2i = ["className", "component"];
6812
6812
  function createBox(options = {}) {
6813
6813
  const {
6814
6814
  defaultTheme,
@@ -6825,7 +6825,7 @@
6825
6825
  className,
6826
6826
  component = 'div'
6827
6827
  } = _extendSxProp,
6828
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2h);
6828
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2i);
6829
6829
 
6830
6830
  return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
6831
6831
  as: component,
@@ -6861,7 +6861,7 @@
6861
6861
  return Box;
6862
6862
  }
6863
6863
 
6864
- const _excluded$2g = ["variant"];
6864
+ const _excluded$2h = ["variant"];
6865
6865
 
6866
6866
  function isEmpty$2(string) {
6867
6867
  return string.length === 0;
@@ -6877,7 +6877,7 @@
6877
6877
  const {
6878
6878
  variant
6879
6879
  } = props,
6880
- other = _objectWithoutPropertiesLoose(props, _excluded$2g);
6880
+ other = _objectWithoutPropertiesLoose(props, _excluded$2h);
6881
6881
 
6882
6882
  let classKey = variant || '';
6883
6883
  Object.keys(other).sort().forEach(key => {
@@ -6890,9 +6890,9 @@
6890
6890
  return classKey;
6891
6891
  }
6892
6892
 
6893
- const _excluded$2f = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6894
- _excluded2$b = ["theme"],
6895
- _excluded3$1 = ["theme"];
6893
+ const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6894
+ _excluded2$d = ["theme"],
6895
+ _excluded3$2 = ["theme"];
6896
6896
 
6897
6897
  function isEmpty$1(obj) {
6898
6898
  return Object.keys(obj).length === 0;
@@ -6952,7 +6952,7 @@
6952
6952
  function shouldForwardProp(prop) {
6953
6953
  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
6954
6954
  }
6955
- const systemDefaultTheme = createTheme$1();
6955
+ const systemDefaultTheme = createTheme$2();
6956
6956
 
6957
6957
  const lowercaseFirstLetter = string => {
6958
6958
  return string.charAt(0).toLowerCase() + string.slice(1);
@@ -6973,7 +6973,7 @@
6973
6973
  skipSx: inputSkipSx,
6974
6974
  overridesResolver
6975
6975
  } = inputOptions,
6976
- options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2f); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6976
+ options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2g); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6977
6977
 
6978
6978
 
6979
6979
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
@@ -7010,7 +7010,7 @@
7010
7010
  let {
7011
7011
  theme: themeInput
7012
7012
  } = _ref,
7013
- other = _objectWithoutPropertiesLoose(_ref, _excluded2$b);
7013
+ other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
7014
7014
 
7015
7015
  return stylesArg(_extends({
7016
7016
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7069,7 +7069,7 @@
7069
7069
  let {
7070
7070
  theme: themeInput
7071
7071
  } = _ref2,
7072
- other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
7072
+ other = _objectWithoutPropertiesLoose(_ref2, _excluded3$2);
7073
7073
 
7074
7074
  return styleArg(_extends({
7075
7075
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7156,7 +7156,7 @@
7156
7156
 
7157
7157
 
7158
7158
  function hexToRgb(color) {
7159
- color = color.substr(1);
7159
+ color = color.slice(1);
7160
7160
  const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');
7161
7161
  let colors = color.match(re);
7162
7162
 
@@ -7208,7 +7208,7 @@ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
7208
7208
  colorSpace = values.shift();
7209
7209
 
7210
7210
  if (values.length === 4 && values[3].charAt(0) === '/') {
7211
- values[3] = values[3].substr(1);
7211
+ values[3] = values[3].slice(1);
7212
7212
  }
7213
7213
 
7214
7214
  if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {
@@ -7226,6 +7226,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7226
7226
  colorSpace
7227
7227
  };
7228
7228
  }
7229
+ /**
7230
+ * Returns a channel created from the input color.
7231
+ *
7232
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
7233
+ * @returns {string} - The channel for the color, that can be used in rgba or hsla colors
7234
+ */
7235
+
7236
+ const colorChannel = color => {
7237
+ const decomposedColor = decomposeColor(color);
7238
+ return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');
7239
+ };
7229
7240
  /**
7230
7241
  * Converts a color object with type and values to a string.
7231
7242
  * @param {object} color - Decomposed color
@@ -7473,8 +7484,720 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7473
7484
  ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) ;
7474
7485
  }
7475
7486
 
7487
+ /**
7488
+ * This function create an object from keys, value and then assign to target
7489
+ *
7490
+ * @param {Object} obj : the target object to be assigned
7491
+ * @param {string[]} keys
7492
+ * @param {string | number} value
7493
+ *
7494
+ * @example
7495
+ * const source = {}
7496
+ * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')
7497
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }
7498
+ *
7499
+ * @example
7500
+ * const source = { palette: { primary: 'var(--palette-primary)' } }
7501
+ * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
7502
+ * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
7503
+ */
7504
+ const assignNestedKeys = (obj, keys, value) => {
7505
+ let temp = obj;
7506
+ keys.forEach((k, index) => {
7507
+ if (index === keys.length - 1) {
7508
+ if (temp && typeof temp === 'object') {
7509
+ temp[k] = value;
7510
+ }
7511
+ } else if (temp && typeof temp === 'object') {
7512
+ if (!temp[k]) {
7513
+ temp[k] = {};
7514
+ }
7515
+
7516
+ temp = temp[k];
7517
+ }
7518
+ });
7519
+ };
7520
+ /**
7521
+ *
7522
+ * @param {Object} obj : source object
7523
+ * @param {Function} callback : a function that will be called when
7524
+ * - the deepest key in source object is reached
7525
+ * - the value of the deepest key is NOT `undefined` | `null`
7526
+ *
7527
+ * @example
7528
+ * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
7529
+ * // ['palette', 'primary', 'main'] '#000000'
7530
+ */
7531
+
7532
+ const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
7533
+ function recurse(object, parentKeys = []) {
7534
+ Object.entries(object).forEach(([key, value]) => {
7535
+ if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
7536
+ if (value !== undefined && value !== null) {
7537
+ if (typeof value === 'object' && Object.keys(value).length > 0) {
7538
+ recurse(value, [...parentKeys, key]);
7539
+ } else {
7540
+ callback([...parentKeys, key], value, object);
7541
+ }
7542
+ }
7543
+ }
7544
+ });
7545
+ }
7546
+
7547
+ recurse(obj);
7548
+ };
7549
+
7550
+ const getCssValue = (keys, value) => {
7551
+ if (typeof value === 'number') {
7552
+ if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {
7553
+ // CSS property that are unitless
7554
+ return value;
7555
+ }
7556
+
7557
+ const lastKey = keys[keys.length - 1];
7558
+
7559
+ if (lastKey.toLowerCase().indexOf('opacity') >= 0) {
7560
+ // opacity values are unitless
7561
+ return value;
7562
+ }
7563
+
7564
+ return `${value}px`;
7565
+ }
7566
+
7567
+ return value;
7568
+ };
7569
+ /**
7570
+ * a function that parse theme and return { css, vars }
7571
+ *
7572
+ * @param {Object} theme
7573
+ * @param {{
7574
+ * prefix?: string,
7575
+ * basePrefix?: string,
7576
+ * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
7577
+ * }} options.
7578
+ * `basePrefix`: defined by design system.
7579
+ * `prefix`: defined by application
7580
+ *
7581
+ * the CSS variable value will be adjusted based on the provided `basePrefix` & `prefix` which can be found in `parsedTheme`.
7582
+ *
7583
+ * @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.
7584
+ *
7585
+ * @example
7586
+ * const { css, vars, parsedTheme } = parser({
7587
+ * fontSize: 12,
7588
+ * lineHeight: 1.2,
7589
+ * palette: { primary: { 500: 'var(--color)' } }
7590
+ * }, { prefix: 'foo' })
7591
+ *
7592
+ * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--foo-color)' }
7593
+ * console.log(vars) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
7594
+ * console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--foo-color)' } } }
7595
+ */
7596
+
7597
+
7598
+ function cssVarsParser(theme, options) {
7599
+ const {
7600
+ prefix,
7601
+ basePrefix = '',
7602
+ shouldSkipGeneratingVar
7603
+ } = options || {};
7604
+ const css = {};
7605
+ const vars = {};
7606
+ const parsedTheme = {};
7607
+ walkObjectDeep(theme, (keys, value) => {
7608
+ if (typeof value === 'string' || typeof value === 'number') {
7609
+ if (typeof value === 'string' && value.match(/var\(\s*--/)) {
7610
+ // for CSS variable, apply prefix or remove basePrefix from the variable
7611
+ if (!basePrefix && prefix) {
7612
+ value = value.replace(/var\(\s*--/g, `var(--${prefix}-`);
7613
+ } else {
7614
+ value = prefix ? value.replace(new RegExp(`var\\(\\s*--${basePrefix}`, 'g'), `var(--${prefix}`) // removing spaces
7615
+ : value.replace(new RegExp(`var\\(\\s*--${basePrefix}-`, 'g'), 'var(--');
7616
+ }
7617
+ }
7618
+
7619
+ if (!shouldSkipGeneratingVar || shouldSkipGeneratingVar && !shouldSkipGeneratingVar(keys, value)) {
7620
+ // only create css & var if `shouldSkipGeneratingVar` return false
7621
+ const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
7622
+ Object.assign(css, {
7623
+ [cssVar]: getCssValue(keys, value)
7624
+ });
7625
+ assignNestedKeys(vars, keys, `var(${cssVar})`);
7626
+ }
7627
+ }
7628
+
7629
+ assignNestedKeys(parsedTheme, keys, value);
7630
+ }, keys => keys[0] === 'vars' // skip 'vars/*' paths
7631
+ );
7632
+ return {
7633
+ css,
7634
+ vars,
7635
+ parsedTheme
7636
+ };
7637
+ }
7638
+
7639
+ const DEFAULT_MODE_STORAGE_KEY = 'mui-mode';
7640
+ const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'mui-color-scheme';
7641
+ const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7642
+ function getInitColorSchemeScript$1(options) {
7643
+ const {
7644
+ enableSystem,
7645
+ defaultLightColorScheme = 'light',
7646
+ defaultDarkColorScheme = 'dark',
7647
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7648
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7649
+ attribute = DEFAULT_ATTRIBUTE
7650
+ } = options || {};
7651
+ return /*#__PURE__*/jsxRuntime_1("script", {
7652
+ // eslint-disable-next-line react/no-danger
7653
+ dangerouslySetInnerHTML: {
7654
+ __html: `(function() { try {
7655
+ var mode = localStorage.getItem('${modeStorageKey}');
7656
+ var colorScheme = '';
7657
+ if (mode === 'system' || (!mode && !!${enableSystem})) {
7658
+ // handle system mode
7659
+ var mql = window.matchMedia('(prefers-color-scheme: dark)');
7660
+ if (mql.matches) {
7661
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7662
+ } else {
7663
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
7664
+ }
7665
+ }
7666
+ if (mode === 'light') {
7667
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
7668
+ }
7669
+ if (mode === 'dark') {
7670
+ colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7671
+ }
7672
+ if (colorScheme) {
7673
+ document.documentElement.setAttribute('${attribute}', colorScheme);
7674
+ }
7675
+ } catch (e) {} })();`
7676
+ }
7677
+ });
7678
+ }
7679
+
7680
+ function getSystemMode(mode) {
7681
+ if (typeof window !== 'undefined' && mode === 'system') {
7682
+ const mql = window.matchMedia('(prefers-color-scheme: dark)');
7683
+
7684
+ if (mql.matches) {
7685
+ return 'dark';
7686
+ }
7687
+
7688
+ return 'light';
7689
+ }
7690
+
7691
+ return undefined;
7692
+ }
7693
+
7694
+ function processState(state, callback) {
7695
+ if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {
7696
+ return callback('light');
7697
+ }
7698
+
7699
+ if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {
7700
+ return callback('dark');
7701
+ }
7702
+
7703
+ return undefined;
7704
+ }
7705
+
7706
+ function getColorScheme(state) {
7707
+ return processState(state, mode => {
7708
+ if (mode === 'light') {
7709
+ return state.lightColorScheme;
7710
+ }
7711
+
7712
+ if (mode === 'dark') {
7713
+ return state.darkColorScheme;
7714
+ }
7715
+
7716
+ return undefined;
7717
+ });
7718
+ }
7719
+
7720
+ function resolveValue(key, defaultValue) {
7721
+ if (typeof window === 'undefined') {
7722
+ return undefined;
7723
+ }
7724
+
7725
+ let value;
7726
+
7727
+ try {
7728
+ value = localStorage.getItem(key) || undefined;
7729
+ } catch (e) {// Unsupported
7730
+ }
7731
+
7732
+ return value || defaultValue;
7733
+ }
7734
+
7735
+ function useCurrentColorScheme(options) {
7736
+ const {
7737
+ defaultMode = 'light',
7738
+ defaultLightColorScheme,
7739
+ defaultDarkColorScheme,
7740
+ supportedColorSchemes = [],
7741
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7742
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY
7743
+ } = options;
7744
+ const joinedColorSchemes = supportedColorSchemes.join(',');
7745
+ const [state, setState] = React__namespace.useState(() => {
7746
+ const initialMode = resolveValue(modeStorageKey, defaultMode);
7747
+ return {
7748
+ mode: initialMode,
7749
+ systemMode: getSystemMode(initialMode),
7750
+ lightColorScheme: resolveValue(`${colorSchemeStorageKey}-light`) || defaultLightColorScheme,
7751
+ darkColorScheme: resolveValue(`${colorSchemeStorageKey}-dark`) || defaultDarkColorScheme
7752
+ };
7753
+ });
7754
+ const colorScheme = getColorScheme(state);
7755
+ const setMode = React__namespace.useCallback(mode => {
7756
+ setState(currentState => {
7757
+ const newMode = !mode ? defaultMode : mode;
7758
+
7759
+ if (typeof localStorage !== 'undefined') {
7760
+ localStorage.setItem(modeStorageKey, newMode);
7761
+ }
7762
+
7763
+ return _extends({}, currentState, {
7764
+ mode: newMode,
7765
+ systemMode: getSystemMode(newMode)
7766
+ });
7767
+ });
7768
+ }, [modeStorageKey, defaultMode]);
7769
+ const setColorScheme = React__namespace.useCallback(value => {
7770
+ if (!value || typeof value === 'string') {
7771
+ if (value && !supportedColorSchemes.includes(value)) {
7772
+ console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7773
+ } else {
7774
+ setState(currentState => {
7775
+ const newState = _extends({}, currentState);
7776
+
7777
+ if (!value) {
7778
+ // reset to default color scheme
7779
+ newState.lightColorScheme = defaultLightColorScheme;
7780
+ newState.darkColorScheme = defaultDarkColorScheme;
7781
+ return newState;
7782
+ }
7783
+
7784
+ processState(currentState, mode => {
7785
+ localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
7786
+
7787
+ if (mode === 'light') {
7788
+ newState.lightColorScheme = value;
7789
+ }
7790
+
7791
+ if (mode === 'dark') {
7792
+ newState.darkColorScheme = value;
7793
+ }
7794
+ });
7795
+ return newState;
7796
+ });
7797
+ }
7798
+ } else if (value.light && !supportedColorSchemes.includes(value.light) || value.dark && !supportedColorSchemes.includes(value.dark)) {
7799
+ console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7800
+ } else {
7801
+ setState(currentState => {
7802
+ const newState = _extends({}, currentState);
7803
+
7804
+ if (value.light || value.light === null) {
7805
+ newState.lightColorScheme = value.light === null ? defaultLightColorScheme : value.light;
7806
+ }
7807
+
7808
+ if (value.dark || value.dark === null) {
7809
+ newState.darkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;
7810
+ }
7811
+
7812
+ return newState;
7813
+ });
7814
+
7815
+ if (value.light) {
7816
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, value.light);
7817
+ }
7818
+
7819
+ if (value.dark) {
7820
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7821
+ }
7822
+ }
7823
+ }, [colorSchemeStorageKey, supportedColorSchemes, defaultLightColorScheme, defaultDarkColorScheme]);
7824
+ const handleMediaQuery = React__namespace.useCallback(e => {
7825
+ if (state.mode === 'system') {
7826
+ setState(currentState => _extends({}, currentState, {
7827
+ systemMode: e.matches ? 'dark' : 'light'
7828
+ }));
7829
+ }
7830
+ }, [state.mode]); // Ref hack to avoid adding handleMediaQuery as a dep
7831
+
7832
+ const mediaListener = React__namespace.useRef(handleMediaQuery);
7833
+ mediaListener.current = handleMediaQuery;
7834
+ React__namespace.useEffect(() => {
7835
+ const handler = (...args) => mediaListener.current(...args); // Always listen to System preference
7836
+
7837
+
7838
+ const media = window.matchMedia('(prefers-color-scheme: dark)'); // Intentionally use deprecated listener methods to support iOS & old browsers
7839
+
7840
+ media.addListener(handler);
7841
+ handler(media);
7842
+ return () => media.removeListener(handler);
7843
+ }, []); // Save mode, lightColorScheme & darkColorScheme to localStorage
7844
+
7845
+ React__namespace.useEffect(() => {
7846
+ if (state.mode) {
7847
+ localStorage.setItem(modeStorageKey, state.mode);
7848
+ }
7849
+
7850
+ processState(state, mode => {
7851
+ if (mode === 'light') {
7852
+ localStorage.setItem(`${colorSchemeStorageKey}-light`, state.lightColorScheme);
7853
+ }
7854
+
7855
+ if (mode === 'dark') {
7856
+ localStorage.setItem(`${colorSchemeStorageKey}-dark`, state.darkColorScheme);
7857
+ }
7858
+ });
7859
+ }, [state, colorSchemeStorageKey, modeStorageKey]); // Handle when localStorage has changed
7860
+
7861
+ React__namespace.useEffect(() => {
7862
+ const handleStorage = event => {
7863
+ const value = event.newValue;
7864
+
7865
+ if (typeof event.key === 'string' && event.key.startsWith(colorSchemeStorageKey) && (!value || joinedColorSchemes.match(value))) {
7866
+ // If the key is deleted, value will be null then reset color scheme to the default one.
7867
+ if (event.key.endsWith('light')) {
7868
+ setColorScheme({
7869
+ light: value
7870
+ });
7871
+ }
7872
+
7873
+ if (event.key.endsWith('dark')) {
7874
+ setColorScheme({
7875
+ dark: value
7876
+ });
7877
+ }
7878
+ }
7879
+
7880
+ if (event.key === modeStorageKey && (!value || ['light', 'dark', 'system'].includes(value))) {
7881
+ setMode(value || defaultMode);
7882
+ }
7883
+ };
7884
+
7885
+ window.addEventListener('storage', handleStorage);
7886
+ return () => window.removeEventListener('storage', handleStorage);
7887
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode]);
7888
+ return _extends({}, state, {
7889
+ colorScheme,
7890
+ setMode,
7891
+ setColorScheme
7892
+ });
7893
+ }
7894
+
7895
+ /**
7896
+ * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
7897
+ * and they does not need to remember the prefix (defined once).
7898
+ */
7899
+ function createGetCssVar(prefix = '') {
7900
+ function appendVar(...vars) {
7901
+ if (!vars.length) {
7902
+ return '';
7903
+ }
7904
+
7905
+ const value = vars[0];
7906
+
7907
+ if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
7908
+ return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
7909
+ }
7910
+
7911
+ return `, ${value}`;
7912
+ } // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
7913
+
7914
+
7915
+ const getCssVar = (field, ...vars) => {
7916
+ return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...vars)})`;
7917
+ };
7918
+
7919
+ return getCssVar;
7920
+ }
7921
+
7922
+ const _excluded$2f = ["colorSchemes"],
7923
+ _excluded2$c = ["colorSchemes"],
7924
+ _excluded3$1 = ["components"];
7925
+ const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
7926
+ function createCssVarsProvider(options) {
7927
+ var _baseTheme$breakpoint;
7928
+
7929
+ const {
7930
+ theme: baseTheme = {},
7931
+ defaultMode: desisgnSystemMode = 'light',
7932
+ defaultColorScheme: designSystemColorScheme,
7933
+ disableTransitionOnChange: designSystemTransitionOnChange = false,
7934
+ enableColorScheme: designSystemEnableColorScheme = true,
7935
+ prefix: designSystemPrefix = '',
7936
+ shouldSkipGeneratingVar,
7937
+ resolveTheme
7938
+ } = options;
7939
+ const systemSpacing = createSpacing(baseTheme.spacing);
7940
+ const systemBreakpoints = createBreakpoints((_baseTheme$breakpoint = baseTheme.breakpoints) != null ? _baseTheme$breakpoint : {});
7941
+
7942
+ 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]) {
7943
+ console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
7944
+ }
7945
+
7946
+ const ColorSchemeContext = /*#__PURE__*/React__namespace.createContext(undefined);
7947
+
7948
+ const useColorScheme = () => {
7949
+ const value = React__namespace.useContext(ColorSchemeContext);
7950
+
7951
+ if (!value) {
7952
+ throw new Error(`MUI: \`useColorScheme\` must be called under <CssVarsProvider />` );
7953
+ }
7954
+
7955
+ return value;
7956
+ };
7957
+
7958
+ function CssVarsProvider({
7959
+ children,
7960
+ theme: themeProp = {},
7961
+ prefix = designSystemPrefix,
7962
+ modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7963
+ attribute = DEFAULT_ATTRIBUTE,
7964
+ defaultMode = desisgnSystemMode,
7965
+ defaultColorScheme = designSystemColorScheme,
7966
+ disableTransitionOnChange = designSystemTransitionOnChange,
7967
+ enableColorScheme = designSystemEnableColorScheme
7968
+ }) {
7969
+ const {
7970
+ colorSchemes: baseColorSchemes = {}
7971
+ } = baseTheme,
7972
+ restBaseTheme = _objectWithoutPropertiesLoose(baseTheme, _excluded$2f);
7973
+
7974
+ const {
7975
+ colorSchemes: colorSchemesProp = {}
7976
+ } = themeProp,
7977
+ restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded2$c);
7978
+
7979
+ const hasMounted = React__namespace.useRef(false); // eslint-disable-next-line prefer-const
7980
+
7981
+ let _deepmerge = deepmerge(restBaseTheme, restThemeProp),
7982
+ {
7983
+ components = {}
7984
+ } = _deepmerge,
7985
+ mergedTheme = _objectWithoutPropertiesLoose(_deepmerge, _excluded3$1);
7986
+
7987
+ const colorSchemes = deepmerge(baseColorSchemes, colorSchemesProp);
7988
+ const allColorSchemes = Object.keys(colorSchemes);
7989
+ const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
7990
+ const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
7991
+ const {
7992
+ mode,
7993
+ setMode,
7994
+ systemMode,
7995
+ lightColorScheme,
7996
+ darkColorScheme,
7997
+ colorScheme,
7998
+ setColorScheme
7999
+ } = useCurrentColorScheme({
8000
+ supportedColorSchemes: allColorSchemes,
8001
+ defaultLightColorScheme,
8002
+ defaultDarkColorScheme,
8003
+ modeStorageKey,
8004
+ defaultMode
8005
+ });
8006
+
8007
+ const resolvedColorScheme = (() => {
8008
+ if (!colorScheme) {
8009
+ // This scope occurs on the server
8010
+ if (defaultMode === 'dark') {
8011
+ return defaultDarkColorScheme;
8012
+ } // use light color scheme, if default mode is 'light' | 'auto'
8013
+
8014
+
8015
+ return defaultLightColorScheme;
8016
+ }
8017
+
8018
+ return colorScheme;
8019
+ })();
8020
+
8021
+ const {
8022
+ css: rootCss,
8023
+ vars: rootVars,
8024
+ parsedTheme
8025
+ } = cssVarsParser(mergedTheme, {
8026
+ prefix,
8027
+ basePrefix: designSystemPrefix,
8028
+ shouldSkipGeneratingVar
8029
+ });
8030
+ mergedTheme = _extends({}, parsedTheme, {
8031
+ components,
8032
+ colorSchemes,
8033
+ prefix,
8034
+ vars: rootVars,
8035
+ spacing: themeProp.spacing ? createSpacing(themeProp.spacing) : systemSpacing,
8036
+ breakpoints: themeProp.breakpoints ? createBreakpoints(themeProp.breakpoints) : systemBreakpoints,
8037
+ getCssVar: createGetCssVar(prefix)
8038
+ });
8039
+ const styleSheet = {};
8040
+ Object.entries(colorSchemes).forEach(([key, scheme]) => {
8041
+ const {
8042
+ css,
8043
+ vars,
8044
+ parsedTheme: parsedScheme
8045
+ } = cssVarsParser(scheme, {
8046
+ prefix,
8047
+ basePrefix: designSystemPrefix,
8048
+ shouldSkipGeneratingVar
8049
+ });
8050
+ mergedTheme.vars = deepmerge(mergedTheme.vars, vars);
8051
+
8052
+ if (key === resolvedColorScheme) {
8053
+ mergedTheme = _extends({}, mergedTheme, parsedScheme);
8054
+ }
8055
+
8056
+ const resolvedDefaultColorScheme = (() => {
8057
+ if (typeof defaultColorScheme === 'string') {
8058
+ return defaultColorScheme;
8059
+ }
8060
+
8061
+ if (defaultMode === 'dark') {
8062
+ return defaultColorScheme.dark;
8063
+ }
8064
+
8065
+ return defaultColorScheme.light;
8066
+ })();
8067
+
8068
+ if (key === resolvedDefaultColorScheme) {
8069
+ styleSheet[':root'] = css;
8070
+ } else {
8071
+ styleSheet[`[${attribute}="${key}"]`] = css;
8072
+ }
8073
+ });
8074
+ React__namespace.useEffect(() => {
8075
+ if (colorScheme) {
8076
+ // attaches attribute to <html> because the css variables are attached to :root (html)
8077
+ document.documentElement.setAttribute(attribute, colorScheme);
8078
+ }
8079
+ }, [colorScheme, attribute]);
8080
+ useEnhancedEffect$1(() => {
8081
+ if (!mode || !enableColorScheme) {
8082
+ return undefined;
8083
+ }
8084
+
8085
+ const priorColorScheme = document.documentElement.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8086
+
8087
+ if (mode === 'system') {
8088
+ document.documentElement.style.setProperty('color-scheme', systemMode);
8089
+ } else {
8090
+ document.documentElement.style.setProperty('color-scheme', mode);
8091
+ }
8092
+
8093
+ return () => {
8094
+ document.documentElement.style.setProperty('color-scheme', priorColorScheme);
8095
+ };
8096
+ }, [mode, systemMode, enableColorScheme]);
8097
+ React__namespace.useEffect(() => {
8098
+ let timer;
8099
+
8100
+ if (disableTransitionOnChange && hasMounted.current) {
8101
+ // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
8102
+ const css = document.createElement('style');
8103
+ css.appendChild(document.createTextNode(DISABLE_CSS_TRANSITION));
8104
+ document.head.appendChild(css); // Force browser repaint
8105
+
8106
+ (() => window.getComputedStyle(document.body))();
8107
+
8108
+ timer = setTimeout(() => {
8109
+ document.head.removeChild(css);
8110
+ }, 1);
8111
+ }
8112
+
8113
+ return () => {
8114
+ clearTimeout(timer);
8115
+ };
8116
+ }, [colorScheme, disableTransitionOnChange]);
8117
+ React__namespace.useEffect(() => {
8118
+ hasMounted.current = true;
8119
+ return () => {
8120
+ hasMounted.current = false;
8121
+ };
8122
+ }, []);
8123
+ return /*#__PURE__*/jsxRuntime_2(ColorSchemeContext.Provider, {
8124
+ value: {
8125
+ mode,
8126
+ setMode,
8127
+ lightColorScheme,
8128
+ darkColorScheme,
8129
+ colorScheme,
8130
+ setColorScheme,
8131
+ allColorSchemes
8132
+ },
8133
+ children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8134
+ styles: {
8135
+ ':root': rootCss
8136
+ }
8137
+ }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8138
+ styles: styleSheet
8139
+ }), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
8140
+ theme: resolveTheme ? resolveTheme(mergedTheme) : mergedTheme,
8141
+ children: children
8142
+ })]
8143
+ });
8144
+ }
8145
+
8146
+ CssVarsProvider.propTypes = {
8147
+ /**
8148
+ * The body attribute name to attach colorScheme.
8149
+ */
8150
+ attribute: PropTypes.string,
8151
+
8152
+ /**
8153
+ * The component tree.
8154
+ */
8155
+ children: PropTypes.node,
8156
+
8157
+ /**
8158
+ * The initial color scheme used.
8159
+ */
8160
+ defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
8161
+
8162
+ /**
8163
+ * The initial mode used.
8164
+ */
8165
+ defaultMode: PropTypes.string,
8166
+
8167
+ /**
8168
+ * Disable CSS transitions when switching between modes or color schemes
8169
+ */
8170
+ disableTransitionOnChange: PropTypes.bool,
8171
+
8172
+ /**
8173
+ * Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
8174
+ */
8175
+ enableColorScheme: PropTypes.bool,
8176
+
8177
+ /**
8178
+ * The key in the local storage used to store current color scheme.
8179
+ */
8180
+ modeStorageKey: PropTypes.string,
8181
+
8182
+ /**
8183
+ * CSS variable prefix.
8184
+ */
8185
+ prefix: PropTypes.string,
8186
+
8187
+ /**
8188
+ * The calculated theme object that will be passed through context.
8189
+ */
8190
+ theme: PropTypes.object
8191
+ } ;
8192
+ return {
8193
+ CssVarsProvider,
8194
+ useColorScheme,
8195
+ getInitColorSchemeScript: getInitColorSchemeScript$1
8196
+ };
8197
+ }
8198
+
7476
8199
  const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
7477
- _excluded2$a = ["type", "mode"];
8200
+ _excluded2$b = ["type", "mode"];
7478
8201
  function adaptV4Theme(inputTheme) {
7479
8202
  {
7480
8203
  console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
@@ -7539,7 +8262,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7539
8262
  type: typeInput,
7540
8263
  mode: modeInput
7541
8264
  } = palette,
7542
- paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$a);
8265
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$b);
7543
8266
 
7544
8267
  const finalMode = modeInput || typeInput || 'light';
7545
8268
  theme.palette = _extends({
@@ -8633,6 +9356,36 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8633
9356
  return output;
8634
9357
  }
8635
9358
 
9359
+ function useBadge(props) {
9360
+ const {
9361
+ badgeContent: badgeContentProp,
9362
+ invisible: invisibleProp = false,
9363
+ max: maxProp = 99,
9364
+ showZero = false
9365
+ } = props;
9366
+ const prevProps = usePreviousProps$1({
9367
+ badgeContent: badgeContentProp,
9368
+ max: maxProp
9369
+ });
9370
+ let invisible = invisibleProp;
9371
+
9372
+ if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
9373
+ invisible = true;
9374
+ }
9375
+
9376
+ const {
9377
+ badgeContent,
9378
+ max = maxProp
9379
+ } = invisible ? prevProps : props;
9380
+ const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9381
+ return {
9382
+ badgeContent,
9383
+ invisible,
9384
+ max,
9385
+ displayValue
9386
+ };
9387
+ }
9388
+
8636
9389
  const defaultGenerator = componentName => componentName;
8637
9390
 
8638
9391
  const createClassNameGenerator = () => {
@@ -8681,224 +9434,53 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8681
9434
  return result;
8682
9435
  }
8683
9436
 
8684
- function getBackdropUtilityClass(slot) {
8685
- return generateUtilityClass('MuiBackdrop', slot);
9437
+ function getBadgeUtilityClass$1(slot) {
9438
+ return generateUtilityClass('BaseBadge', slot);
8686
9439
  }
8687
- const backdropUnstyledClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
8688
- var backdropUnstyledClasses$1 = backdropUnstyledClasses;
9440
+ generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
8689
9441
 
8690
- const _excluded$2d = ["classes", "className", "invisible", "component", "components", "componentsProps", "theme"];
9442
+ const _excluded$2d = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
8691
9443
 
8692
9444
  const useUtilityClasses$1O = ownerState => {
8693
9445
  const {
8694
- classes,
8695
- invisible
8696
- } = ownerState;
8697
- const slots = {
8698
- root: ['root', invisible && 'invisible']
8699
- };
8700
- return composeClasses(slots, getBackdropUtilityClass, classes);
8701
- };
8702
-
8703
- const BackdropUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BackdropUnstyled(props, ref) {
8704
- const {
8705
- classes: classesProp,
8706
- className,
8707
- invisible = false,
8708
- component = 'div',
8709
- components = {},
8710
- componentsProps = {},
8711
-
8712
- /* eslint-disable react/prop-types */
8713
- theme
8714
- } = props,
8715
- other = _objectWithoutPropertiesLoose(props, _excluded$2d);
8716
-
8717
- const ownerState = _extends({}, props, {
8718
- classes: classesProp,
8719
9446
  invisible
8720
- });
8721
-
8722
- const classes = useUtilityClasses$1O(ownerState);
8723
- const Root = components.Root || component;
8724
- const rootProps = componentsProps.root || {};
8725
- return /*#__PURE__*/jsxRuntime_1(Root, _extends({
8726
- "aria-hidden": true
8727
- }, rootProps, !isHostComponent(Root) && {
8728
- as: component,
8729
- ownerState: _extends({}, ownerState, rootProps.ownerState),
8730
- theme
8731
- }, {
8732
- ref: ref
8733
- }, other, {
8734
- className: clsx(classes.root, rootProps.className, className)
8735
- }));
8736
- });
8737
- BackdropUnstyled.propTypes
8738
- /* remove-proptypes */
8739
- = {
8740
- // ----------------------------- Warning --------------------------------
8741
- // | These PropTypes are generated from the TypeScript type definitions |
8742
- // | To update them edit the d.ts file and run "yarn proptypes" |
8743
- // ----------------------------------------------------------------------
8744
-
8745
- /**
8746
- * The content of the component.
8747
- */
8748
- children: PropTypes.node,
8749
-
8750
- /**
8751
- * Override or extend the styles applied to the component.
8752
- */
8753
- classes: PropTypes.object,
8754
-
8755
- /**
8756
- * @ignore
8757
- */
8758
- className: PropTypes.string,
8759
-
8760
- /**
8761
- * The component used for the root node.
8762
- * Either a string to use a HTML element or a component.
8763
- */
8764
- component: PropTypes.elementType,
8765
-
8766
- /**
8767
- * The components used for each slot inside the Backdrop.
8768
- * Either a string to use a HTML element or a component.
8769
- * @default {}
8770
- */
8771
- components: PropTypes.shape({
8772
- Root: PropTypes.elementType
8773
- }),
8774
-
8775
- /**
8776
- * The props used for each slot inside the Backdrop.
8777
- * @default {}
8778
- */
8779
- componentsProps: PropTypes.shape({
8780
- root: PropTypes.object
8781
- }),
8782
-
8783
- /**
8784
- * If `true`, the backdrop is invisible.
8785
- * It can be used when rendering a popover or a custom select component.
8786
- * @default false
8787
- */
8788
- invisible: PropTypes.bool
8789
- } ;
8790
- var BackdropUnstyled$1 = BackdropUnstyled;
8791
-
8792
- function useBadge(props) {
8793
- const {
8794
- anchorOrigin: anchorOriginProp = {
8795
- vertical: 'top',
8796
- horizontal: 'right'
8797
- },
8798
- badgeContent: badgeContentProp,
8799
- invisible: invisibleProp = false,
8800
- max: maxProp = 99,
8801
- showZero = false,
8802
- variant: variantProp = 'standard'
8803
- } = props;
8804
- const prevProps = usePreviousProps$1({
8805
- anchorOrigin: anchorOriginProp,
8806
- badgeContent: badgeContentProp,
8807
- max: maxProp,
8808
- variant: variantProp
8809
- });
8810
- let invisible = invisibleProp;
8811
-
8812
- if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
8813
- invisible = true;
8814
- }
8815
-
8816
- const {
8817
- anchorOrigin = anchorOriginProp,
8818
- badgeContent,
8819
- max = maxProp,
8820
- variant = variantProp
8821
- } = invisible ? prevProps : props;
8822
- let displayValue = '';
8823
-
8824
- if (variant !== 'dot') {
8825
- displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
8826
- }
8827
-
8828
- return {
8829
- anchorOrigin,
8830
- badgeContent,
8831
- invisible,
8832
- max,
8833
- variant,
8834
- displayValue
8835
- };
8836
- }
8837
-
8838
- function getBadgeUtilityClass(slot) {
8839
- return generateUtilityClass('MuiBadge', slot);
8840
- }
8841
- const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeft', 'anchorOriginTopRight', 'anchorOriginBottomLeft', 'anchorOriginBottomRight', 'invisible']);
8842
- var badgeUnstyledClasses$1 = badgeUnstyledClasses;
8843
-
8844
- const _excluded$2c = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero", "variant"];
8845
-
8846
- const useUtilityClasses$1N = ownerState => {
8847
- const {
8848
- variant,
8849
- anchorOrigin,
8850
- invisible,
8851
- classes
8852
9447
  } = ownerState;
8853
9448
  const slots = {
8854
9449
  root: ['root'],
8855
- badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, invisible && 'invisible']
9450
+ badge: ['badge', invisible && 'invisible']
8856
9451
  };
8857
- return composeClasses(slots, getBadgeUtilityClass, classes);
9452
+ return composeClasses(slots, getBadgeUtilityClass$1, undefined);
8858
9453
  };
8859
9454
 
8860
9455
  const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
8861
9456
  const {
8862
- anchorOrigin: anchorOriginProp = {
8863
- vertical: 'top',
8864
- horizontal: 'right'
8865
- },
8866
- classes: classesProp,
8867
9457
  component,
8868
9458
  children,
8869
9459
  className,
8870
9460
  components = {},
8871
9461
  componentsProps = {},
8872
9462
  max: maxProp = 99,
8873
- showZero = false,
8874
- variant: variantProp = 'standard'
9463
+ showZero = false
8875
9464
  } = props,
8876
- other = _objectWithoutPropertiesLoose(props, _excluded$2c);
9465
+ other = _objectWithoutPropertiesLoose(props, _excluded$2d);
8877
9466
 
8878
9467
  const {
8879
- anchorOrigin,
8880
9468
  badgeContent,
8881
9469
  max,
8882
- variant,
8883
9470
  displayValue,
8884
9471
  invisible
8885
9472
  } = useBadge(_extends({}, props, {
8886
- anchorOrigin: anchorOriginProp,
8887
- max: maxProp,
8888
- variant: variantProp
9473
+ max: maxProp
8889
9474
  }));
8890
9475
 
8891
9476
  const ownerState = _extends({}, props, {
8892
- anchorOrigin,
8893
9477
  badgeContent,
8894
- classes: classesProp,
8895
9478
  invisible,
8896
9479
  max,
8897
- variant,
8898
9480
  showZero
8899
9481
  });
8900
9482
 
8901
- const classes = useUtilityClasses$1N(ownerState);
9483
+ const classes = useUtilityClasses$1O(ownerState);
8902
9484
  const Root = component || components.Root || 'span';
8903
9485
  const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
8904
9486
  const Badge = components.Badge || 'span';
@@ -8921,18 +9503,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8921
9503
  // | To update them edit the d.ts file and run "yarn proptypes" |
8922
9504
  // ----------------------------------------------------------------------
8923
9505
 
8924
- /**
8925
- * The anchor of the badge.
8926
- * @default {
8927
- * vertical: 'top',
8928
- * horizontal: 'right',
8929
- * }
8930
- */
8931
- anchorOrigin: PropTypes.shape({
8932
- horizontal: PropTypes.oneOf(['left', 'right']).isRequired,
8933
- vertical: PropTypes.oneOf(['bottom', 'top']).isRequired
8934
- }),
8935
-
8936
9506
  /**
8937
9507
  * The content rendered within the badge.
8938
9508
  */
@@ -8943,11 +9513,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8943
9513
  */
8944
9514
  children: PropTypes.node,
8945
9515
 
8946
- /**
8947
- * Override or extend the styles applied to the component.
8948
- */
8949
- classes: PropTypes.object,
8950
-
8951
9516
  /**
8952
9517
  * @ignore
8953
9518
  */
@@ -8994,13 +9559,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8994
9559
  * Controls whether the badge is hidden when `badgeContent` is zero.
8995
9560
  * @default false
8996
9561
  */
8997
- showZero: PropTypes.bool,
8998
-
8999
- /**
9000
- * The variant to use.
9001
- * @default 'standard'
9002
- */
9003
- variant: PropTypes.string
9562
+ showZero: PropTypes.bool
9004
9563
  } ;
9005
9564
  var BadgeUnstyled$1 = BadgeUnstyled;
9006
9565
 
@@ -9018,12 +9577,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9018
9577
  *
9019
9578
  * Demos:
9020
9579
  *
9021
- * - [Click Away Listener](https://mui.com/components/click-away-listener/)
9022
- * - [Menus](https://mui.com/components/menus/)
9580
+ * - [Click Away Listener](https://mui.com/base/react-click-away-listener/)
9023
9581
  *
9024
9582
  * API:
9025
9583
  *
9026
- * - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
9584
+ * - [ClickAwayListener API](https://mui.com/base/api/click-away-listener/)
9027
9585
  */
9028
9586
  function ClickAwayListener(props) {
9029
9587
  const {
@@ -11236,8 +11794,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11236
11794
 
11237
11795
  var Portal$1 = Portal;
11238
11796
 
11239
- const _excluded$2b = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
11240
- _excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
11797
+ const _excluded$2c = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
11798
+ _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
11241
11799
 
11242
11800
  function flipPlacement(placement, direction) {
11243
11801
  if (direction === 'ltr') {
@@ -11282,7 +11840,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11282
11840
  popperRef: popperRefProp,
11283
11841
  TransitionProps
11284
11842
  } = props,
11285
- other = _objectWithoutPropertiesLoose(props, _excluded$2b);
11843
+ other = _objectWithoutPropertiesLoose(props, _excluded$2c);
11286
11844
 
11287
11845
  const tooltipRef = React__namespace.useRef(null);
11288
11846
  const ownRef = useForkRef(tooltipRef, ref);
@@ -11403,7 +11961,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11403
11961
  style,
11404
11962
  transition = false
11405
11963
  } = props,
11406
- other = _objectWithoutPropertiesLoose(props, _excluded2$9);
11964
+ other = _objectWithoutPropertiesLoose(props, _excluded2$a);
11407
11965
 
11408
11966
  const [exited, setExited] = React__namespace.useState(true);
11409
11967
 
@@ -11892,7 +12450,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11892
12450
  */
11893
12451
 
11894
12452
 
11895
- function Unstable_TrapFocus(props) {
12453
+ function TrapFocus(props) {
11896
12454
  const {
11897
12455
  children,
11898
12456
  disableAutoFocus = false,
@@ -12097,7 +12655,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12097
12655
  });
12098
12656
  }
12099
12657
 
12100
- Unstable_TrapFocus.propTypes
12658
+ TrapFocus.propTypes
12101
12659
  /* remove-proptypes */
12102
12660
  = {
12103
12661
  // ----------------------------- Warning --------------------------------
@@ -12163,7 +12721,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12163
12721
 
12164
12722
  {
12165
12723
  // eslint-disable-next-line
12166
- Unstable_TrapFocus['propTypes' + ''] = exactProp(Unstable_TrapFocus.propTypes);
12724
+ TrapFocus['propTypes' + ''] = exactProp(TrapFocus.propTypes);
12167
12725
  }
12168
12726
 
12169
12727
  function getModalUtilityClass(slot) {
@@ -12172,9 +12730,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12172
12730
  const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
12173
12731
  var modalUnstyledClasses$1 = modalUnstyledClasses;
12174
12732
 
12175
- 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"];
12733
+ 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"];
12176
12734
 
12177
- const useUtilityClasses$1M = ownerState => {
12735
+ const useUtilityClasses$1N = ownerState => {
12178
12736
  const {
12179
12737
  open,
12180
12738
  exited,
@@ -12200,12 +12758,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12200
12758
  /**
12201
12759
  * Modal is a lower-level construct that is leveraged by the following components:
12202
12760
  *
12203
- * - [Dialog](/api/dialog/)
12204
- * - [Drawer](/api/drawer/)
12205
- * - [Menu](/api/menu/)
12206
- * - [Popover](/api/popover/)
12761
+ * - [Dialog](/material-ui/api/dialog/)
12762
+ * - [Drawer](/material-ui/api/drawer/)
12763
+ * - [Menu](/material-ui/api/menu/)
12764
+ * - [Popover](/material-ui/api/popover/)
12207
12765
  *
12208
- * If you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component
12766
+ * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component
12209
12767
  * rather than directly using Modal.
12210
12768
  *
12211
12769
  * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
@@ -12244,7 +12802,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12244
12802
  onTransitionEnter,
12245
12803
  onTransitionExited
12246
12804
  } = props,
12247
- other = _objectWithoutPropertiesLoose(props, _excluded$2a);
12805
+ other = _objectWithoutPropertiesLoose(props, _excluded$2b);
12248
12806
 
12249
12807
  const [exited, setExited] = React__namespace.useState(true);
12250
12808
  const modal = React__namespace.useRef({});
@@ -12321,7 +12879,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12321
12879
  keepMounted
12322
12880
  });
12323
12881
 
12324
- const classes = useUtilityClasses$1M(ownerState);
12882
+ const classes = useUtilityClasses$1N(ownerState);
12325
12883
 
12326
12884
  if (!keepMounted && !open && (!hasTransition || exited)) {
12327
12885
  return null;
@@ -12415,9 +12973,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12415
12973
  onKeyDown: handleKeyDown,
12416
12974
  className: clsx(classes.root, rootProps.className, className),
12417
12975
  children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({
12976
+ "aria-hidden": true,
12418
12977
  open: open,
12419
12978
  onClick: handleBackdropClick
12420
- }, BackdropProps)) : null, /*#__PURE__*/jsxRuntime_1(Unstable_TrapFocus, {
12979
+ }, BackdropProps)) : null, /*#__PURE__*/jsxRuntime_1(TrapFocus, {
12421
12980
  disableEnforceFocus: disableEnforceFocus,
12422
12981
  disableAutoFocus: disableAutoFocus,
12423
12982
  disableRestoreFocus: disableRestoreFocus,
@@ -12442,7 +13001,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12442
13001
  BackdropComponent: PropTypes.elementType,
12443
13002
 
12444
13003
  /**
12445
- * Props applied to the [`BackdropUnstyled`](/api/backdrop-unstyled/) element.
13004
+ * Props applied to the backdrop element.
12446
13005
  */
12447
13006
  BackdropProps: PropTypes.object,
12448
13007
 
@@ -13391,11 +13950,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13391
13950
  };
13392
13951
  }
13393
13952
 
13394
- 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"];
13953
+ 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"];
13395
13954
 
13396
13955
  const Identity = x => x;
13397
13956
 
13398
- const useUtilityClasses$1L = ownerState => {
13957
+ const useUtilityClasses$1M = ownerState => {
13399
13958
  const {
13400
13959
  disabled,
13401
13960
  dragging,
@@ -13452,7 +14011,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13452
14011
  components = {},
13453
14012
  componentsProps = {}
13454
14013
  } = props,
13455
- other = _objectWithoutPropertiesLoose(props, _excluded$29); // all props with defaults
14014
+ other = _objectWithoutPropertiesLoose(props, _excluded$2a); // all props with defaults
13456
14015
  // consider extracting to hook an reusing the lint rule for the varints
13457
14016
 
13458
14017
 
@@ -13511,7 +14070,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13511
14070
  const Input = components.Input || 'input';
13512
14071
  const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
13513
14072
  const hiddenInputProps = getHiddenInputProps();
13514
- const classes = useUtilityClasses$1L(ownerState);
14073
+ const classes = useUtilityClasses$1M(ownerState);
13515
14074
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
13516
14075
  onMouseDown
13517
14076
  }), {
@@ -13851,7 +14410,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13851
14410
  } ;
13852
14411
  var SliderUnstyled$1 = SliderUnstyled;
13853
14412
 
13854
- const _excluded$28 = ["onChange", "maxRows", "minRows", "style", "value"];
14413
+ const _excluded$29 = ["onChange", "maxRows", "minRows", "style", "value"];
13855
14414
 
13856
14415
  function getStyleValue(computedStyle, property) {
13857
14416
  return parseInt(computedStyle[property], 10) || 0;
@@ -13880,7 +14439,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13880
14439
  style,
13881
14440
  value
13882
14441
  } = props,
13883
- other = _objectWithoutPropertiesLoose(props, _excluded$28);
14442
+ other = _objectWithoutPropertiesLoose(props, _excluded$29);
13884
14443
 
13885
14444
  const {
13886
14445
  current: isControlled
@@ -14080,7 +14639,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14080
14639
  }, mixins);
14081
14640
  }
14082
14641
 
14083
- const _excluded$27 = ["mode", "contrastThreshold", "tonalOffset"];
14642
+ const _excluded$28 = ["mode", "contrastThreshold", "tonalOffset"];
14084
14643
  const light = {
14085
14644
  // The colors used to style the text.
14086
14645
  text: {
@@ -14264,7 +14823,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14264
14823
  contrastThreshold = 3,
14265
14824
  tonalOffset = 0.2
14266
14825
  } = palette,
14267
- other = _objectWithoutPropertiesLoose(palette, _excluded$27);
14826
+ other = _objectWithoutPropertiesLoose(palette, _excluded$28);
14268
14827
 
14269
14828
  const primary = palette.primary || getDefaultPrimary(mode);
14270
14829
  const secondary = palette.secondary || getDefaultSecondary(mode);
@@ -14400,7 +14959,7 @@ const theme2 = createTheme({ palette: {
14400
14959
  return paletteOutput;
14401
14960
  }
14402
14961
 
14403
- const _excluded$26 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
14962
+ const _excluded$27 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
14404
14963
 
14405
14964
  function round$1(value) {
14406
14965
  return Math.round(value * 1e5) / 1e5;
@@ -14433,7 +14992,7 @@ const theme2 = createTheme({ palette: {
14433
14992
  allVariants,
14434
14993
  pxToRem: pxToRem2
14435
14994
  } = _ref,
14436
- other = _objectWithoutPropertiesLoose(_ref, _excluded$26);
14995
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$27);
14437
14996
 
14438
14997
  {
14439
14998
  if (typeof fontSize !== 'number') {
@@ -14501,7 +15060,7 @@ const theme2 = createTheme({ palette: {
14501
15060
  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)];
14502
15061
  var shadows$1 = shadows;
14503
15062
 
14504
- const _excluded$25 = ["duration", "easing", "delay"];
15063
+ const _excluded$26 = ["duration", "easing", "delay"];
14505
15064
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
14506
15065
  // to learn the context in which each easing should be used.
14507
15066
  const easing = {
@@ -14556,7 +15115,7 @@ const theme2 = createTheme({ palette: {
14556
15115
  easing: easingOption = mergedEasing.easeInOut,
14557
15116
  delay = 0
14558
15117
  } = options,
14559
- other = _objectWithoutPropertiesLoose(options, _excluded$25);
15118
+ other = _objectWithoutPropertiesLoose(options, _excluded$26);
14560
15119
 
14561
15120
  {
14562
15121
  const isString = value => typeof value === 'string'; // IE11 support, replace with Number.isNaN
@@ -14612,19 +15171,19 @@ const theme2 = createTheme({ palette: {
14612
15171
  };
14613
15172
  var zIndex$1 = zIndex;
14614
15173
 
14615
- const _excluded$24 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
15174
+ const _excluded$25 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
14616
15175
 
14617
- function createTheme(options = {}, ...args) {
15176
+ function createTheme$1(options = {}, ...args) {
14618
15177
  const {
14619
15178
  mixins: mixinsInput = {},
14620
15179
  palette: paletteInput = {},
14621
15180
  transitions: transitionsInput = {},
14622
15181
  typography: typographyInput = {}
14623
15182
  } = options,
14624
- other = _objectWithoutPropertiesLoose(options, _excluded$24);
15183
+ other = _objectWithoutPropertiesLoose(options, _excluded$25);
14625
15184
 
14626
15185
  const palette = createPalette(paletteInput);
14627
- const systemTheme = createTheme$1(options);
15186
+ const systemTheme = createTheme$2(options);
14628
15187
  let muiTheme = deepmerge(systemTheme, {
14629
15188
  mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
14630
15189
  palette,
@@ -14683,11 +15242,11 @@ const theme2 = createTheme({ palette: {
14683
15242
  }
14684
15243
  }
14685
15244
 
14686
- return createTheme(...args);
15245
+ return createTheme$1(...args);
14687
15246
  }
14688
15247
 
14689
15248
  function createMuiStrictModeTheme(options, ...args) {
14690
- return createTheme(deepmerge({
15249
+ return createTheme$1(deepmerge({
14691
15250
  unstable_strictMode: true
14692
15251
  }, options), ...args);
14693
15252
  }
@@ -14894,11 +15453,11 @@ Use unitless line heights instead.` );
14894
15453
  return theme;
14895
15454
  }
14896
15455
 
14897
- const defaultTheme$1 = createTheme();
14898
- var defaultTheme$2 = defaultTheme$1;
15456
+ const defaultTheme$2 = createTheme$1();
15457
+ var defaultTheme$3 = defaultTheme$2;
14899
15458
 
14900
15459
  function useTheme() {
14901
- const theme = useTheme$1(defaultTheme$2);
15460
+ const theme = useTheme$1(defaultTheme$3);
14902
15461
 
14903
15462
  {
14904
15463
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -14915,14 +15474,14 @@ Use unitless line heights instead.` );
14915
15474
  return useThemeProps$1({
14916
15475
  props,
14917
15476
  name,
14918
- defaultTheme: defaultTheme$2
15477
+ defaultTheme: defaultTheme$3
14919
15478
  });
14920
15479
  }
14921
15480
 
14922
15481
  const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
14923
15482
  const slotShouldForwardProp = shouldForwardProp;
14924
15483
  const styled = createStyled({
14925
- defaultTheme: defaultTheme$2,
15484
+ defaultTheme: defaultTheme$3,
14926
15485
  rootShouldForwardProp
14927
15486
  });
14928
15487
  var styled$1 = styled;
@@ -14945,6 +15504,112 @@ You have to import it from @mui/styles.
14945
15504
  See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14946
15505
  }
14947
15506
 
15507
+ const _excluded$24 = ["colorSchemes", "opacity"],
15508
+ _excluded2$9 = ["palette"];
15509
+ const defaultOpacity = {
15510
+ active: 0.54,
15511
+ hover: 0.04,
15512
+ selected: 0.08,
15513
+ disabled: 0.26,
15514
+ focus: 0.12
15515
+ };
15516
+
15517
+ function createTheme(options = {}, ...args) {
15518
+ var _colorSchemesInput$li, _colorSchemesInput$da;
15519
+
15520
+ const {
15521
+ colorSchemes: colorSchemesInput = {},
15522
+ opacity: opacityInput = {}
15523
+ } = options,
15524
+ input = _objectWithoutPropertiesLoose(options, _excluded$24); // eslint-disable-next-line prefer-const
15525
+
15526
+
15527
+ let _createThemeWithoutVa = createTheme$1(_extends({}, input, colorSchemesInput.light && {
15528
+ palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
15529
+ })),
15530
+ {
15531
+ palette: lightPalette
15532
+ } = _createThemeWithoutVa,
15533
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15534
+
15535
+ const {
15536
+ palette: darkPalette
15537
+ } = createTheme$1({
15538
+ palette: _extends({
15539
+ mode: 'dark'
15540
+ }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
15541
+ });
15542
+ colorSchemesInput.light = {
15543
+ palette: lightPalette
15544
+ };
15545
+ colorSchemesInput.dark = {
15546
+ palette: darkPalette
15547
+ };
15548
+ const colorSchemes = {};
15549
+ Object.keys(colorSchemesInput).forEach(key => {
15550
+ const palette = createPalette(colorSchemesInput[key].palette);
15551
+ Object.keys(palette).forEach(color => {
15552
+ const colors = palette[color];
15553
+
15554
+ if (colors.main) {
15555
+ palette[color].mainChannel = colorChannel(colors.main);
15556
+ }
15557
+
15558
+ if (colors.light) {
15559
+ palette[color].lightChannel = colorChannel(colors.light);
15560
+ }
15561
+
15562
+ if (colors.dark) {
15563
+ palette[color].darkChannel = colorChannel(colors.dark);
15564
+ }
15565
+
15566
+ if (colors.primary) {
15567
+ palette[color].primaryChannel = colorChannel(colors.primary);
15568
+ }
15569
+
15570
+ if (colors.secondary) {
15571
+ palette[color].secondaryChannel = colorChannel(colors.secondary);
15572
+ }
15573
+
15574
+ if (colors.disabled) {
15575
+ palette[color].disabledChannel = colorChannel(colors.disabled);
15576
+ }
15577
+ });
15578
+ colorSchemes[key] = {
15579
+ palette
15580
+ };
15581
+ });
15582
+
15583
+ const opacity = _extends({}, defaultOpacity, opacityInput);
15584
+
15585
+ muiTheme.colorSchemes = colorSchemes;
15586
+ muiTheme.opacity = opacity;
15587
+ muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
15588
+ return muiTheme;
15589
+ }
15590
+
15591
+ const defaultTheme$1 = createTheme();
15592
+ const {
15593
+ CssVarsProvider: Experimental_CssVarsProvider,
15594
+ useColorScheme,
15595
+ getInitColorSchemeScript
15596
+ } = createCssVarsProvider({
15597
+ theme: defaultTheme$1,
15598
+ defaultColorScheme: {
15599
+ light: 'light',
15600
+ dark: 'dark'
15601
+ },
15602
+ prefix: 'md',
15603
+ resolveTheme: theme => {
15604
+ const newTheme = _extends({}, theme, {
15605
+ typography: createTypography(theme.palette, theme.typography)
15606
+ });
15607
+
15608
+ return newTheme;
15609
+ },
15610
+ shouldSkipGeneratingVar: keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/)
15611
+ });
15612
+
14948
15613
  function getSvgIconUtilityClass(slot) {
14949
15614
  return generateUtilityClass('MuiSvgIcon', slot);
14950
15615
  }
@@ -14953,7 +15618,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14953
15618
 
14954
15619
  const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
14955
15620
 
14956
- const useUtilityClasses$1K = ownerState => {
15621
+ const useUtilityClasses$1L = ownerState => {
14957
15622
  const {
14958
15623
  color,
14959
15624
  fontSize,
@@ -15038,7 +15703,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15038
15703
  more.viewBox = viewBox;
15039
15704
  }
15040
15705
 
15041
- const classes = useUtilityClasses$1K(ownerState);
15706
+ const classes = useUtilityClasses$1L(ownerState);
15042
15707
  return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
15043
15708
  as: component,
15044
15709
  className: clsx(classes.root, className),
@@ -15078,7 +15743,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15078
15743
  className: PropTypes.string,
15079
15744
 
15080
15745
  /**
15081
- * The color of the component. It supports those theme colors that make sense for this component.
15746
+ * The color of the component.
15747
+ * It supports both default and custom theme colors, which can be added as shown in the
15748
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
15082
15749
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
15083
15750
  * @default 'inherit'
15084
15751
  */
@@ -16173,7 +16840,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16173
16840
 
16174
16841
  const _excluded$22 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
16175
16842
 
16176
- const useUtilityClasses$1J = ownerState => {
16843
+ const useUtilityClasses$1K = ownerState => {
16177
16844
  const {
16178
16845
  orientation,
16179
16846
  classes
@@ -16244,7 +16911,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16244
16911
  }));
16245
16912
  /**
16246
16913
  * The Collapse transition is used by the
16247
- * [Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.
16914
+ * [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.
16248
16915
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
16249
16916
  */
16250
16917
 
@@ -16281,7 +16948,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16281
16948
  collapsedSize: collapsedSizeProp
16282
16949
  });
16283
16950
 
16284
- const classes = useUtilityClasses$1J(ownerState);
16951
+ const classes = useUtilityClasses$1K(ownerState);
16285
16952
  const theme = useTheme();
16286
16953
  const timer = React__namespace.useRef();
16287
16954
  const wrapperRef = React__namespace.useRef(null);
@@ -16595,7 +17262,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16595
17262
  return (alphaValue / 100).toFixed(2);
16596
17263
  };
16597
17264
 
16598
- const useUtilityClasses$1I = ownerState => {
17265
+ const useUtilityClasses$1J = ownerState => {
16599
17266
  const {
16600
17267
  square,
16601
17268
  elevation,
@@ -16655,7 +17322,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16655
17322
  variant
16656
17323
  });
16657
17324
 
16658
- const classes = useUtilityClasses$1I(ownerState);
17325
+ const classes = useUtilityClasses$1J(ownerState);
16659
17326
 
16660
17327
  {
16661
17328
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -16762,7 +17429,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16762
17429
 
16763
17430
  const _excluded$20 = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
16764
17431
 
16765
- const useUtilityClasses$1H = ownerState => {
17432
+ const useUtilityClasses$1I = ownerState => {
16766
17433
  const {
16767
17434
  classes,
16768
17435
  square,
@@ -16906,7 +17573,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16906
17573
  expanded
16907
17574
  });
16908
17575
 
16909
- const classes = useUtilityClasses$1H(ownerState);
17576
+ const classes = useUtilityClasses$1I(ownerState);
16910
17577
  return /*#__PURE__*/jsxRuntime_2(AccordionRoot, _extends({
16911
17578
  className: clsx(classes.root, className),
16912
17579
  ref: ref,
@@ -17010,7 +17677,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17010
17677
 
17011
17678
  /**
17012
17679
  * The component used for the transition.
17013
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
17680
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
17014
17681
  * @default Collapse
17015
17682
  */
17016
17683
  TransitionComponent: PropTypes.elementType,
@@ -17031,7 +17698,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17031
17698
 
17032
17699
  const _excluded$1$ = ["className", "disableSpacing"];
17033
17700
 
17034
- const useUtilityClasses$1G = ownerState => {
17701
+ const useUtilityClasses$1H = ownerState => {
17035
17702
  const {
17036
17703
  classes,
17037
17704
  disableSpacing
@@ -17079,7 +17746,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17079
17746
  disableSpacing
17080
17747
  });
17081
17748
 
17082
- const classes = useUtilityClasses$1G(ownerState);
17749
+ const classes = useUtilityClasses$1H(ownerState);
17083
17750
  return /*#__PURE__*/jsxRuntime_1(AccordionActionsRoot, _extends({
17084
17751
  className: clsx(classes.root, className),
17085
17752
  ref: ref,
@@ -17130,7 +17797,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17130
17797
 
17131
17798
  const _excluded$1_ = ["className"];
17132
17799
 
17133
- const useUtilityClasses$1F = ownerState => {
17800
+ const useUtilityClasses$1G = ownerState => {
17134
17801
  const {
17135
17802
  classes
17136
17803
  } = ownerState;
@@ -17161,7 +17828,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17161
17828
  other = _objectWithoutPropertiesLoose(props, _excluded$1_);
17162
17829
 
17163
17830
  const ownerState = props;
17164
- const classes = useUtilityClasses$1F(ownerState);
17831
+ const classes = useUtilityClasses$1G(ownerState);
17165
17832
  return /*#__PURE__*/jsxRuntime_1(AccordionDetailsRoot, _extends({
17166
17833
  className: clsx(classes.root, className),
17167
17834
  ref: ref,
@@ -17634,7 +18301,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17634
18301
 
17635
18302
  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"];
17636
18303
 
17637
- const useUtilityClasses$1E = ownerState => {
18304
+ const useUtilityClasses$1F = ownerState => {
17638
18305
  const {
17639
18306
  disabled,
17640
18307
  focusVisible,
@@ -17762,11 +18429,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17762
18429
  buttonRef.current.focus();
17763
18430
  }
17764
18431
  }), []);
18432
+ const [mountedState, setMountedState] = React__namespace.useState(false);
18433
+ React__namespace.useEffect(() => {
18434
+ setMountedState(true);
18435
+ }, []);
18436
+ const enableTouchRipple = mountedState && !disableRipple && !disabled;
17765
18437
  React__namespace.useEffect(() => {
17766
- if (focusVisible && focusRipple && !disableRipple) {
18438
+ if (focusVisible && focusRipple && !disableRipple && mountedState) {
17767
18439
  rippleRef.current.pulsate();
17768
18440
  }
17769
- }, [disableRipple, focusRipple, focusVisible]);
18441
+ }, [disableRipple, focusRipple, focusVisible, mountedState]);
17770
18442
 
17771
18443
  function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
17772
18444
  return useEventCallback(event => {
@@ -17910,11 +18582,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17910
18582
 
17911
18583
  const handleOwnRef = useForkRef(focusVisibleRef, buttonRef);
17912
18584
  const handleRef = useForkRef(ref, handleOwnRef);
17913
- const [mountedState, setMountedState] = React__namespace.useState(false);
17914
- React__namespace.useEffect(() => {
17915
- setMountedState(true);
17916
- }, []);
17917
- const enableTouchRipple = mountedState && !disableRipple && !disabled;
17918
18585
 
17919
18586
  {
17920
18587
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -17936,7 +18603,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17936
18603
  focusVisible
17937
18604
  });
17938
18605
 
17939
- const classes = useUtilityClasses$1E(ownerState);
18606
+ const classes = useUtilityClasses$1F(ownerState);
17940
18607
  return /*#__PURE__*/jsxRuntime_2(ButtonBaseRoot, _extends({
17941
18608
  as: ComponentProp,
17942
18609
  className: clsx(classes.root, className),
@@ -18172,7 +18839,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18172
18839
 
18173
18840
  const _excluded$1X = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
18174
18841
 
18175
- const useUtilityClasses$1D = ownerState => {
18842
+ const useUtilityClasses$1E = ownerState => {
18176
18843
  const {
18177
18844
  classes,
18178
18845
  expanded,
@@ -18293,7 +18960,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18293
18960
  disableGutters
18294
18961
  });
18295
18962
 
18296
- const classes = useUtilityClasses$1D(ownerState);
18963
+ const classes = useUtilityClasses$1E(ownerState);
18297
18964
  return /*#__PURE__*/jsxRuntime_2(AccordionSummaryRoot, _extends({
18298
18965
  focusRipple: false,
18299
18966
  disableRipple: true,
@@ -18381,7 +19048,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18381
19048
 
18382
19049
  const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
18383
19050
 
18384
- const useUtilityClasses$1C = ownerState => {
19051
+ const useUtilityClasses$1D = ownerState => {
18385
19052
  const {
18386
19053
  classes,
18387
19054
  disabled,
@@ -18459,7 +19126,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18459
19126
  }
18460
19127
  }));
18461
19128
  /**
18462
- * Refer to the [Icons](/components/icons/) section of the documentation
19129
+ * Refer to the [Icons](/material-ui/icons/) section of the documentation
18463
19130
  * regarding the available icon options.
18464
19131
  */
18465
19132
 
@@ -18488,7 +19155,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18488
19155
  size
18489
19156
  });
18490
19157
 
18491
- const classes = useUtilityClasses$1C(ownerState);
19158
+ const classes = useUtilityClasses$1D(ownerState);
18492
19159
  return /*#__PURE__*/jsxRuntime_1(IconButtonRoot, _extends({
18493
19160
  className: clsx(classes.root, className),
18494
19161
  centerRipple: true,
@@ -18532,7 +19199,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18532
19199
  className: PropTypes.string,
18533
19200
 
18534
19201
  /**
18535
- * The color of the component. It supports those theme colors that make sense for this component.
19202
+ * The color of the component.
19203
+ * It supports both default and custom theme colors, which can be added as shown in the
19204
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
18536
19205
  * @default 'default'
18537
19206
  */
18538
19207
  color: PropTypes
@@ -18609,7 +19278,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18609
19278
 
18610
19279
  const _excluded$1V = ["action", "children", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
18611
19280
 
18612
- const useUtilityClasses$1B = ownerState => {
19281
+ const useUtilityClasses$1C = ownerState => {
18613
19282
  const {
18614
19283
  variant,
18615
19284
  color,
@@ -18733,7 +19402,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18733
19402
  variant
18734
19403
  });
18735
19404
 
18736
- const classes = useUtilityClasses$1B(ownerState);
19405
+ const classes = useUtilityClasses$1C(ownerState);
18737
19406
  return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
18738
19407
  role: role,
18739
19408
  elevation: 0,
@@ -18799,13 +19468,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18799
19468
  /**
18800
19469
  * Override the default label for the *close popup* icon button.
18801
19470
  *
18802
- * For localization purposes, you can use the provided [translations](/guides/localization/).
19471
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
18803
19472
  * @default 'Close'
18804
19473
  */
18805
19474
  closeText: PropTypes.string,
18806
19475
 
18807
19476
  /**
18808
- * The main color for the alert. Unless provided, the value is taken from the `severity` prop.
19477
+ * The color of the component. Unless provided, the value is taken from the `severity` prop.
19478
+ * It supports both default and custom theme colors, which can be added as shown in the
19479
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
18809
19480
  */
18810
19481
  color: PropTypes
18811
19482
  /* @typescript-to-proptypes-ignore */
@@ -18873,7 +19544,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18873
19544
 
18874
19545
  const _excluded$1U = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
18875
19546
 
18876
- const useUtilityClasses$1A = ownerState => {
19547
+ const useUtilityClasses$1B = ownerState => {
18877
19548
  const {
18878
19549
  align,
18879
19550
  gutterBottom,
@@ -18974,7 +19645,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18974
19645
  });
18975
19646
 
18976
19647
  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
18977
- const classes = useUtilityClasses$1A(ownerState);
19648
+ const classes = useUtilityClasses$1B(ownerState);
18978
19649
  return /*#__PURE__*/jsxRuntime_1(TypographyRoot, _extends({
18979
19650
  as: Component,
18980
19651
  ref: ref,
@@ -19084,7 +19755,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19084
19755
 
19085
19756
  const _excluded$1T = ["className"];
19086
19757
 
19087
- const useUtilityClasses$1z = ownerState => {
19758
+ const useUtilityClasses$1A = ownerState => {
19088
19759
  const {
19089
19760
  classes
19090
19761
  } = ownerState;
@@ -19118,7 +19789,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19118
19789
  other = _objectWithoutPropertiesLoose(props, _excluded$1T);
19119
19790
 
19120
19791
  const ownerState = props;
19121
- const classes = useUtilityClasses$1z(ownerState);
19792
+ const classes = useUtilityClasses$1A(ownerState);
19122
19793
  return /*#__PURE__*/jsxRuntime_1(AlertTitleRoot, _extends({
19123
19794
  gutterBottom: true,
19124
19795
  component: "div",
@@ -19165,7 +19836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19165
19836
 
19166
19837
  const _excluded$1S = ["className", "color", "enableColorOnDark", "position"];
19167
19838
 
19168
- const useUtilityClasses$1y = ownerState => {
19839
+ const useUtilityClasses$1z = ownerState => {
19169
19840
  const {
19170
19841
  color,
19171
19842
  position,
@@ -19263,7 +19934,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19263
19934
  enableColorOnDark
19264
19935
  });
19265
19936
 
19266
- const classes = useUtilityClasses$1y(ownerState);
19937
+ const classes = useUtilityClasses$1z(ownerState);
19267
19938
  return /*#__PURE__*/jsxRuntime_1(AppBarRoot, _extends({
19268
19939
  square: true,
19269
19940
  component: "header",
@@ -19297,7 +19968,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19297
19968
  className: PropTypes.string,
19298
19969
 
19299
19970
  /**
19300
- * The color of the component. It supports those theme colors that make sense for this component.
19971
+ * The color of the component.
19972
+ * It supports both default and custom theme colors, which can be added as shown in the
19973
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
19301
19974
  * @default 'primary'
19302
19975
  */
19303
19976
  color: PropTypes
@@ -19334,13 +20007,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19334
20007
  *
19335
20008
  * Demos:
19336
20009
  *
19337
- * - [Autocomplete](https://mui.com/components/autocomplete/)
19338
- * - [Menus](https://mui.com/components/menus/)
19339
- * - [Popper](https://mui.com/components/popper/)
20010
+ * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
20011
+ * - [Menus](https://mui.com/material-ui/react-menu/)
20012
+ * - [Popper](https://mui.com/material-ui/react-popper/)
19340
20013
  *
19341
20014
  * API:
19342
20015
  *
19343
- * - [Popper API](https://mui.com/api/popper/)
20016
+ * - [Popper API](https://mui.com/material-ui/api/popper/)
19344
20017
  */
19345
20018
 
19346
20019
  const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
@@ -19474,7 +20147,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19474
20147
 
19475
20148
  const _excluded$1R = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
19476
20149
 
19477
- const useUtilityClasses$1x = ownerState => {
20150
+ const useUtilityClasses$1y = ownerState => {
19478
20151
  const {
19479
20152
  classes,
19480
20153
  color,
@@ -19547,7 +20220,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19547
20220
  inset
19548
20221
  });
19549
20222
 
19550
- const classes = useUtilityClasses$1x(ownerState);
20223
+ const classes = useUtilityClasses$1y(ownerState);
19551
20224
  return /*#__PURE__*/jsxRuntime_1(ListSubheaderRoot, _extends({
19552
20225
  as: component,
19553
20226
  className: clsx(classes.root, className),
@@ -19627,7 +20300,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19627
20300
 
19628
20301
  const _excluded$1Q = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
19629
20302
 
19630
- const useUtilityClasses$1w = ownerState => {
20303
+ const useUtilityClasses$1x = ownerState => {
19631
20304
  const {
19632
20305
  classes,
19633
20306
  disabled,
@@ -19961,7 +20634,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19961
20634
  variant
19962
20635
  });
19963
20636
 
19964
- const classes = useUtilityClasses$1w(ownerState);
20637
+ const classes = useUtilityClasses$1x(ownerState);
19965
20638
  const moreProps = component === ButtonBase$1 ? _extends({
19966
20639
  component: ComponentProp || 'div',
19967
20640
  focusVisibleClassName: classes.focusVisible
@@ -20060,7 +20733,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20060
20733
  clickable: PropTypes.bool,
20061
20734
 
20062
20735
  /**
20063
- * The color of the component. It supports those theme colors that make sense for this component.
20736
+ * The color of the component.
20737
+ * It supports both default and custom theme colors, which can be added as shown in the
20738
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
20064
20739
  * @default 'default'
20065
20740
  */
20066
20741
  color: PropTypes
@@ -20174,7 +20849,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20174
20849
 
20175
20850
  function GlobalStyles(props) {
20176
20851
  return /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, _extends({}, props, {
20177
- defaultTheme: defaultTheme$2
20852
+ defaultTheme: defaultTheme$3
20178
20853
  }));
20179
20854
  }
20180
20855
 
@@ -20243,7 +20918,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20243
20918
  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];
20244
20919
  };
20245
20920
 
20246
- const useUtilityClasses$1v = ownerState => {
20921
+ const useUtilityClasses$1w = ownerState => {
20247
20922
  const {
20248
20923
  classes,
20249
20924
  color,
@@ -20655,7 +21330,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20655
21330
  type
20656
21331
  });
20657
21332
 
20658
- const classes = useUtilityClasses$1v(ownerState);
21333
+ const classes = useUtilityClasses$1w(ownerState);
20659
21334
  const Root = components.Root || InputBaseRoot;
20660
21335
  const rootProps = componentsProps.root || {};
20661
21336
  const Input = components.Input || InputBaseComponent;
@@ -20741,7 +21416,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20741
21416
  className: PropTypes.string,
20742
21417
 
20743
21418
  /**
20744
- * The color of the component. It supports those theme colors that make sense for this component.
21419
+ * The color of the component.
21420
+ * It supports both default and custom theme colors, which can be added as shown in the
21421
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
20745
21422
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
20746
21423
  */
20747
21424
  color: PropTypes
@@ -20843,7 +21520,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20843
21520
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
20844
21521
 
20845
21522
  /**
20846
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
21523
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
20847
21524
  * @default false
20848
21525
  */
20849
21526
  multiline: PropTypes.bool,
@@ -20983,7 +21660,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20983
21660
 
20984
21661
  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"];
20985
21662
 
20986
- const useUtilityClasses$1u = ownerState => {
21663
+ const useUtilityClasses$1v = ownerState => {
20987
21664
  const {
20988
21665
  classes,
20989
21666
  disablePortal,
@@ -21406,7 +22083,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21406
22083
  size
21407
22084
  });
21408
22085
 
21409
- const classes = useUtilityClasses$1u(ownerState);
22086
+ const classes = useUtilityClasses$1v(ownerState);
21410
22087
  let startAdornment;
21411
22088
 
21412
22089
  if (multiple && value.length > 0) {
@@ -21607,7 +22284,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21607
22284
  blurOnSelect: PropTypes.oneOfType([PropTypes.oneOf(['mouse', 'touch']), PropTypes.bool]),
21608
22285
 
21609
22286
  /**
21610
- * Props applied to the [`Chip`](/api/chip/) element.
22287
+ * Props applied to the [`Chip`](/material-ui/api/chip/) element.
21611
22288
  */
21612
22289
  ChipProps: PropTypes.object,
21613
22290
 
@@ -21645,7 +22322,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21645
22322
  /**
21646
22323
  * Override the default text for the *clear* icon button.
21647
22324
  *
21648
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22325
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21649
22326
  * @default 'Clear'
21650
22327
  */
21651
22328
  clearText: PropTypes.string,
@@ -21653,7 +22330,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21653
22330
  /**
21654
22331
  * Override the default text for the *close popup* icon button.
21655
22332
  *
21656
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22333
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21657
22334
  * @default 'Close'
21658
22335
  */
21659
22336
  closeText: PropTypes.string,
@@ -21716,7 +22393,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21716
22393
  disablePortal: PropTypes.bool,
21717
22394
 
21718
22395
  /**
21719
- * A filter function that determines the options that are eligible.
22396
+ * A function that determines the filtered options to be rendered on search.
21720
22397
  *
21721
22398
  * @param {T[]} options The options to render.
21722
22399
  * @param {object} state The state of the component.
@@ -21847,7 +22524,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21847
22524
  /**
21848
22525
  * Text to display when in a loading state.
21849
22526
  *
21850
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22527
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21851
22528
  * @default 'Loading…'
21852
22529
  */
21853
22530
  loadingText: PropTypes.node,
@@ -21861,7 +22538,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21861
22538
  /**
21862
22539
  * Text to display when there are no options.
21863
22540
  *
21864
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22541
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21865
22542
  * @default 'No options'
21866
22543
  */
21867
22544
  noOptionsText: PropTypes.node,
@@ -21925,7 +22602,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21925
22602
  /**
21926
22603
  * Override the default text for the *open popup* icon button.
21927
22604
  *
21928
- * For localization purposes, you can use the provided [translations](/guides/localization/).
22605
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
21929
22606
  * @default 'Open'
21930
22607
  */
21931
22608
  openText: PropTypes.string,
@@ -22042,7 +22719,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22042
22719
 
22043
22720
  const _excluded$1N = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
22044
22721
 
22045
- const useUtilityClasses$1t = ownerState => {
22722
+ const useUtilityClasses$1u = ownerState => {
22046
22723
  const {
22047
22724
  classes,
22048
22725
  variant,
@@ -22195,7 +22872,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22195
22872
  variant
22196
22873
  });
22197
22874
 
22198
- const classes = useUtilityClasses$1t(ownerState);
22875
+ const classes = useUtilityClasses$1u(ownerState);
22199
22876
 
22200
22877
  if (hasImgNotFailing) {
22201
22878
  children = /*#__PURE__*/jsxRuntime_1(AvatarImg, _extends({
@@ -22310,7 +22987,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22310
22987
  medium: null
22311
22988
  };
22312
22989
 
22313
- const useUtilityClasses$1s = ownerState => {
22990
+ const useUtilityClasses$1t = ownerState => {
22314
22991
  const {
22315
22992
  classes
22316
22993
  } = ownerState;
@@ -22382,7 +23059,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22382
23059
  variant
22383
23060
  });
22384
23061
 
22385
- const classes = useUtilityClasses$1s(ownerState);
23062
+ const classes = useUtilityClasses$1t(ownerState);
22386
23063
  const children = React__namespace.Children.toArray(childrenProp).filter(child => {
22387
23064
  {
22388
23065
  if (reactIs_2(child)) {
@@ -22509,7 +23186,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22509
23186
  }
22510
23187
  };
22511
23188
  /**
22512
- * The Fade transition is used by the [Modal](/components/modal/) component.
23189
+ * The Fade transition is used by the [Modal](/material-ui/react-modal/) component.
22513
23190
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
22514
23191
  */
22515
23192
 
@@ -22714,14 +23391,23 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22714
23391
  } ;
22715
23392
  var Fade$1 = Fade;
22716
23393
 
22717
- const _excluded$1K = ["children", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
22718
- const backdropClasses = backdropUnstyledClasses$1;
23394
+ function getBackdropUtilityClass(slot) {
23395
+ return generateUtilityClass('MuiBackdrop', slot);
23396
+ }
23397
+ const backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
23398
+ var backdropClasses$1 = backdropClasses;
23399
+
23400
+ const _excluded$1K = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
22719
23401
 
22720
- const extendUtilityClasses$3 = ownerState => {
23402
+ const useUtilityClasses$1s = ownerState => {
22721
23403
  const {
22722
- classes
23404
+ classes,
23405
+ invisible
22723
23406
  } = ownerState;
22724
- return classes;
23407
+ const slots = {
23408
+ root: ['root', invisible && 'invisible']
23409
+ };
23410
+ return composeClasses(slots, getBackdropUtilityClass, classes);
22725
23411
  };
22726
23412
 
22727
23413
  const BackdropRoot = styled$1('div', {
@@ -22750,7 +23436,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22750
23436
  backgroundColor: 'transparent'
22751
23437
  }));
22752
23438
  const Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inProps, ref) {
22753
- var _componentsProps$root;
23439
+ var _components$Root, _componentsProps$root;
22754
23440
 
22755
23441
  const props = useThemeProps({
22756
23442
  props: inProps,
@@ -22759,6 +23445,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22759
23445
 
22760
23446
  const {
22761
23447
  children,
23448
+ component = 'div',
22762
23449
  components = {},
22763
23450
  componentsProps = {},
22764
23451
  className,
@@ -22771,25 +23458,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22771
23458
  other = _objectWithoutPropertiesLoose(props, _excluded$1K);
22772
23459
 
22773
23460
  const ownerState = _extends({}, props, {
23461
+ component,
22774
23462
  invisible
22775
23463
  });
22776
23464
 
22777
- const classes = extendUtilityClasses$3(ownerState);
23465
+ const classes = useUtilityClasses$1s(ownerState);
22778
23466
  return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
22779
23467
  in: open,
22780
23468
  timeout: transitionDuration
22781
23469
  }, other, {
22782
- children: /*#__PURE__*/jsxRuntime_1(BackdropUnstyled$1, {
22783
- className: className,
22784
- invisible: invisible,
22785
- components: _extends({
22786
- Root: BackdropRoot
22787
- }, components),
22788
- componentsProps: {
22789
- root: _extends({}, componentsProps.root, (!components.Root || !isHostComponent(components.Root)) && {
22790
- ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState)
22791
- })
22792
- },
23470
+ children: /*#__PURE__*/jsxRuntime_1(BackdropRoot, {
23471
+ "aria-hidden": true,
23472
+ as: (_components$Root = components.Root) != null ? _components$Root : component,
23473
+ className: clsx(classes.root, className),
23474
+ ownerState: _extends({}, ownerState, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState),
22793
23475
  classes: classes,
22794
23476
  ref: ref,
22795
23477
  children: children
@@ -22819,6 +23501,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22819
23501
  */
22820
23502
  className: PropTypes.string,
22821
23503
 
23504
+ /**
23505
+ * The component used for the root node.
23506
+ * Either a string to use a HTML element or a component.
23507
+ */
23508
+ component: PropTypes.elementType,
23509
+
22822
23510
  /**
22823
23511
  * The components used for each slot inside the Backdrop.
22824
23512
  * Either a string to use a HTML element or a component.
@@ -22871,9 +23559,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22871
23559
 
22872
23560
  var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
22873
23561
 
22874
- const _excluded$1J = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
22875
- 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
22876
- 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
23562
+ function getBadgeUtilityClass(slot) {
23563
+ return generateUtilityClass('MuiBadge', slot);
23564
+ }
23565
+ 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
23566
+ 'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
23567
+ var badgeClasses$1 = badgeClasses;
23568
+
23569
+ const _excluded$1J = ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "showZero", "variant"];
22877
23570
  const RADIUS_STANDARD = 10;
22878
23571
  const RADIUS_DOT = 4;
22879
23572
 
@@ -22881,12 +23574,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22881
23574
  const {
22882
23575
  color,
22883
23576
  anchorOrigin,
23577
+ invisible,
22884
23578
  overlap,
23579
+ variant,
22885
23580
  classes = {}
22886
23581
  } = ownerState;
22887
- return _extends({}, classes, {
22888
- 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)}`]])
22889
- });
23582
+ return {
23583
+ root: clsx(classes.root, 'root'),
23584
+ badge: clsx(classes.badge, getBadgeUtilityClass('badge'), getBadgeUtilityClass(variant), `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]], invisible && getBadgeUtilityClass('invisible'))
23585
+ };
22890
23586
  };
22891
23587
 
22892
23588
  const BadgeRoot = styled$1('span', {
@@ -22948,7 +23644,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22948
23644
  right: 0,
22949
23645
  transform: 'scale(1) translate(50%, -50%)',
22950
23646
  transformOrigin: '100% 0%',
22951
- [`&.${badgeClasses.invisible}`]: {
23647
+ [`&.${badgeClasses$1.invisible}`]: {
22952
23648
  transform: 'scale(0) translate(50%, -50%)'
22953
23649
  }
22954
23650
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular' && {
@@ -22956,7 +23652,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22956
23652
  right: 0,
22957
23653
  transform: 'scale(1) translate(50%, 50%)',
22958
23654
  transformOrigin: '100% 100%',
22959
- [`&.${badgeClasses.invisible}`]: {
23655
+ [`&.${badgeClasses$1.invisible}`]: {
22960
23656
  transform: 'scale(0) translate(50%, 50%)'
22961
23657
  }
22962
23658
  }, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && {
@@ -22964,7 +23660,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22964
23660
  left: 0,
22965
23661
  transform: 'scale(1) translate(-50%, -50%)',
22966
23662
  transformOrigin: '0% 0%',
22967
- [`&.${badgeClasses.invisible}`]: {
23663
+ [`&.${badgeClasses$1.invisible}`]: {
22968
23664
  transform: 'scale(0) translate(-50%, -50%)'
22969
23665
  }
22970
23666
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && {
@@ -22972,7 +23668,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22972
23668
  left: 0,
22973
23669
  transform: 'scale(1) translate(-50%, 50%)',
22974
23670
  transformOrigin: '0% 100%',
22975
- [`&.${badgeClasses.invisible}`]: {
23671
+ [`&.${badgeClasses$1.invisible}`]: {
22976
23672
  transform: 'scale(0) translate(-50%, 50%)'
22977
23673
  }
22978
23674
  }, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && {
@@ -22980,7 +23676,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22980
23676
  right: '14%',
22981
23677
  transform: 'scale(1) translate(50%, -50%)',
22982
23678
  transformOrigin: '100% 0%',
22983
- [`&.${badgeClasses.invisible}`]: {
23679
+ [`&.${badgeClasses$1.invisible}`]: {
22984
23680
  transform: 'scale(0) translate(50%, -50%)'
22985
23681
  }
22986
23682
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && {
@@ -22988,7 +23684,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22988
23684
  right: '14%',
22989
23685
  transform: 'scale(1) translate(50%, 50%)',
22990
23686
  transformOrigin: '100% 100%',
22991
- [`&.${badgeClasses.invisible}`]: {
23687
+ [`&.${badgeClasses$1.invisible}`]: {
22992
23688
  transform: 'scale(0) translate(50%, 50%)'
22993
23689
  }
22994
23690
  }, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && {
@@ -22996,7 +23692,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22996
23692
  left: '14%',
22997
23693
  transform: 'scale(1) translate(-50%, -50%)',
22998
23694
  transformOrigin: '0% 0%',
22999
- [`&.${badgeClasses.invisible}`]: {
23695
+ [`&.${badgeClasses$1.invisible}`]: {
23000
23696
  transform: 'scale(0) translate(-50%, -50%)'
23001
23697
  }
23002
23698
  }, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && {
@@ -23004,7 +23700,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23004
23700
  left: '14%',
23005
23701
  transform: 'scale(1) translate(-50%, 50%)',
23006
23702
  transformOrigin: '0% 100%',
23007
- [`&.${badgeClasses.invisible}`]: {
23703
+ [`&.${badgeClasses$1.invisible}`]: {
23008
23704
  transform: 'scale(0) translate(-50%, 50%)'
23009
23705
  }
23010
23706
  }, ownerState.invisible && {
@@ -23014,7 +23710,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23014
23710
  })
23015
23711
  }));
23016
23712
  const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
23017
- var _componentsProps$root, _componentsProps$badg;
23713
+ var _componentsProps$root, _componentsProps$root2, _componentsProps$badg, _componentsProps$badg2;
23018
23714
 
23019
23715
  const props = useThemeProps({
23020
23716
  props: inProps,
@@ -23026,12 +23722,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23026
23722
  vertical: 'top',
23027
23723
  horizontal: 'right'
23028
23724
  },
23725
+ className,
23029
23726
  component = 'span',
23030
23727
  components = {},
23031
23728
  componentsProps = {},
23032
23729
  overlap: overlapProp = 'rectangular',
23033
23730
  color: colorProp = 'default',
23034
23731
  invisible: invisibleProp = false,
23732
+ max,
23035
23733
  badgeContent: badgeContentProp,
23036
23734
  showZero = false,
23037
23735
  variant: variantProp = 'standard'
@@ -23041,7 +23739,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23041
23739
  const prevProps = usePreviousProps$1({
23042
23740
  anchorOrigin: anchorOriginProp,
23043
23741
  color: colorProp,
23044
- overlap: overlapProp
23742
+ overlap: overlapProp,
23743
+ variant: variantProp
23045
23744
  });
23046
23745
  let invisible = invisibleProp;
23047
23746
 
@@ -23052,44 +23751,57 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23052
23751
  const {
23053
23752
  color = colorProp,
23054
23753
  overlap = overlapProp,
23055
- anchorOrigin = anchorOriginProp
23754
+ anchorOrigin = anchorOriginProp,
23755
+ variant = variantProp
23056
23756
  } = invisible ? prevProps : props;
23057
23757
 
23058
23758
  const ownerState = _extends({}, props, {
23059
23759
  anchorOrigin,
23060
23760
  invisible,
23061
23761
  color,
23062
- overlap
23762
+ overlap,
23763
+ variant
23063
23764
  });
23064
23765
 
23065
23766
  const classes = extendUtilityClasses$2(ownerState);
23767
+ let displayValue;
23768
+
23769
+ if (variant !== 'dot') {
23770
+ displayValue = badgeContentProp && Number(badgeContentProp) > max ? `${max}+` : badgeContentProp;
23771
+ }
23772
+
23066
23773
  return /*#__PURE__*/jsxRuntime_1(BadgeUnstyled$1, _extends({
23067
- anchorOrigin: anchorOrigin,
23068
23774
  invisible: invisibleProp,
23069
- badgeContent: badgeContentProp,
23775
+ badgeContent: displayValue,
23070
23776
  showZero: showZero,
23071
- variant: variantProp
23777
+ max: max
23072
23778
  }, other, {
23073
23779
  components: _extends({
23074
23780
  Root: BadgeRoot,
23075
23781
  Badge: BadgeBadge
23076
23782
  }, components),
23783
+ className: clsx(className, classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className),
23077
23784
  componentsProps: {
23078
23785
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
23079
23786
  as: component,
23080
- ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
23787
+ ownerState: _extends({}, (_componentsProps$root2 = componentsProps.root) == null ? void 0 : _componentsProps$root2.ownerState, {
23788
+ anchorOrigin,
23081
23789
  color,
23082
- overlap
23790
+ overlap,
23791
+ variant
23083
23792
  })
23084
23793
  }),
23085
- badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps$1(components.Badge) && {
23086
- ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
23794
+ badge: _extends({}, componentsProps.badge, {
23795
+ className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
23796
+ }, shouldSpreadAdditionalProps$1(components.Badge) && {
23797
+ ownerState: _extends({}, (_componentsProps$badg2 = componentsProps.badge) == null ? void 0 : _componentsProps$badg2.ownerState, {
23798
+ anchorOrigin,
23087
23799
  color,
23088
- overlap
23800
+ overlap,
23801
+ variant
23089
23802
  })
23090
23803
  })
23091
23804
  },
23092
- classes: classes,
23093
23805
  ref: ref
23094
23806
  }));
23095
23807
  });
@@ -23129,7 +23841,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23129
23841
  classes: PropTypes.object,
23130
23842
 
23131
23843
  /**
23132
- * The color of the component. It supports those theme colors that make sense for this component.
23844
+ * @ignore
23845
+ */
23846
+ className: PropTypes.string,
23847
+
23848
+ /**
23849
+ * The color of the component.
23850
+ * It supports both default and custom theme colors, which can be added as shown in the
23851
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
23133
23852
  * @default 'default'
23134
23853
  */
23135
23854
  color: PropTypes
@@ -23515,7 +24234,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23515
24234
  } ;
23516
24235
  var BottomNavigationAction$1 = BottomNavigationAction;
23517
24236
 
23518
- const defaultTheme = createTheme();
24237
+ const defaultTheme = createTheme$1();
23519
24238
  /**
23520
24239
  * @ignore - do not document.
23521
24240
  */
@@ -23779,7 +24498,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23779
24498
  /**
23780
24499
  * Override the default label for the expand button.
23781
24500
  *
23782
- * For localization purposes, you can use the provided [translations](/guides/localization/).
24501
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
23783
24502
  * @default 'Show path'
23784
24503
  */
23785
24504
  expandText: PropTypes.string,
@@ -23882,106 +24601,111 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23882
24601
  })(({
23883
24602
  theme,
23884
24603
  ownerState
23885
- }) => _extends({}, theme.typography.button, {
23886
- minWidth: 64,
23887
- padding: '6px 16px',
23888
- borderRadius: theme.shape.borderRadius,
23889
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
23890
- duration: theme.transitions.duration.short
23891
- }),
23892
- '&:hover': _extends({
23893
- textDecoration: 'none',
23894
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
23895
- // Reset on touch devices, it doesn't add specificity
23896
- '@media (hover: none)': {
23897
- backgroundColor: 'transparent'
23898
- }
24604
+ }) => {
24605
+ var _theme$palette$getCon, _theme$palette;
24606
+
24607
+ return _extends({}, theme.typography.button, {
24608
+ minWidth: 64,
24609
+ padding: '6px 16px',
24610
+ borderRadius: (theme.vars || theme).shape.borderRadius,
24611
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
24612
+ duration: theme.transitions.duration.short
24613
+ }),
24614
+ '&:hover': _extends({
24615
+ textDecoration: 'none',
24616
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
24617
+ // Reset on touch devices, it doesn't add specificity
24618
+ '@media (hover: none)': {
24619
+ backgroundColor: 'transparent'
24620
+ }
24621
+ }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
24622
+ 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),
24623
+ // Reset on touch devices, it doesn't add specificity
24624
+ '@media (hover: none)': {
24625
+ backgroundColor: 'transparent'
24626
+ }
24627
+ }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
24628
+ border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
24629
+ 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),
24630
+ // Reset on touch devices, it doesn't add specificity
24631
+ '@media (hover: none)': {
24632
+ backgroundColor: 'transparent'
24633
+ }
24634
+ }, ownerState.variant === 'contained' && {
24635
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
24636
+ boxShadow: (theme.vars || theme).shadows[4],
24637
+ // Reset on touch devices, it doesn't add specificity
24638
+ '@media (hover: none)': {
24639
+ boxShadow: (theme.vars || theme).shadows[2],
24640
+ backgroundColor: (theme.vars || theme).palette.grey[300]
24641
+ }
24642
+ }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
24643
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
24644
+ // Reset on touch devices, it doesn't add specificity
24645
+ '@media (hover: none)': {
24646
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
24647
+ }
24648
+ }),
24649
+ '&:active': _extends({}, ownerState.variant === 'contained' && {
24650
+ boxShadow: (theme.vars || theme).shadows[8]
24651
+ }),
24652
+ [`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
24653
+ boxShadow: (theme.vars || theme).shadows[6]
24654
+ }),
24655
+ [`&.${buttonClasses$1.disabled}`]: _extends({
24656
+ color: (theme.vars || theme).palette.action.disabled
24657
+ }, ownerState.variant === 'outlined' && {
24658
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
24659
+ }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
24660
+ border: `1px solid ${(theme.vars || theme).palette.action.disabled}`
24661
+ }, ownerState.variant === 'contained' && {
24662
+ color: (theme.vars || theme).palette.action.disabled,
24663
+ boxShadow: (theme.vars || theme).shadows[0],
24664
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
24665
+ })
24666
+ }, ownerState.variant === 'text' && {
24667
+ padding: '6px 8px'
23899
24668
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
23900
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
23901
- // Reset on touch devices, it doesn't add specificity
23902
- '@media (hover: none)': {
23903
- backgroundColor: 'transparent'
23904
- }
24669
+ color: (theme.vars || theme).palette[ownerState.color].main
24670
+ }, ownerState.variant === 'outlined' && {
24671
+ padding: '5px 15px',
24672
+ border: '1px solid currentColor'
23905
24673
  }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
23906
- border: `1px solid ${theme.palette[ownerState.color].main}`,
23907
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
23908
- // Reset on touch devices, it doesn't add specificity
23909
- '@media (hover: none)': {
23910
- backgroundColor: 'transparent'
23911
- }
24674
+ color: (theme.vars || theme).palette[ownerState.color].main,
24675
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
23912
24676
  }, ownerState.variant === 'contained' && {
23913
- backgroundColor: theme.palette.grey.A100,
23914
- boxShadow: theme.shadows[4],
23915
- // Reset on touch devices, it doesn't add specificity
23916
- '@media (hover: none)': {
23917
- boxShadow: theme.shadows[2],
23918
- backgroundColor: theme.palette.grey[300]
23919
- }
24677
+ color: theme.vars ? // this is safe because grey does not change between default light/dark mode
24678
+ 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]),
24679
+ backgroundColor: (theme.vars || theme).palette.grey[300],
24680
+ boxShadow: (theme.vars || theme).shadows[2]
23920
24681
  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
23921
- backgroundColor: theme.palette[ownerState.color].dark,
23922
- // Reset on touch devices, it doesn't add specificity
23923
- '@media (hover: none)': {
23924
- backgroundColor: theme.palette[ownerState.color].main
23925
- }
23926
- }),
23927
- '&:active': _extends({}, ownerState.variant === 'contained' && {
23928
- boxShadow: theme.shadows[8]
23929
- }),
23930
- [`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
23931
- boxShadow: theme.shadows[6]
23932
- }),
23933
- [`&.${buttonClasses$1.disabled}`]: _extends({
23934
- color: theme.palette.action.disabled
23935
- }, ownerState.variant === 'outlined' && {
23936
- border: `1px solid ${theme.palette.action.disabledBackground}`
23937
- }, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
23938
- border: `1px solid ${theme.palette.action.disabled}`
23939
- }, ownerState.variant === 'contained' && {
23940
- color: theme.palette.action.disabled,
23941
- boxShadow: theme.shadows[0],
23942
- backgroundColor: theme.palette.action.disabledBackground
23943
- })
23944
- }, ownerState.variant === 'text' && {
23945
- padding: '6px 8px'
23946
- }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
23947
- color: theme.palette[ownerState.color].main
23948
- }, ownerState.variant === 'outlined' && {
23949
- padding: '5px 15px',
23950
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
23951
- }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
23952
- color: theme.palette[ownerState.color].main,
23953
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
23954
- }, ownerState.variant === 'contained' && {
23955
- color: theme.palette.getContrastText(theme.palette.grey[300]),
23956
- backgroundColor: theme.palette.grey[300],
23957
- boxShadow: theme.shadows[2]
23958
- }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
23959
- color: theme.palette[ownerState.color].contrastText,
23960
- backgroundColor: theme.palette[ownerState.color].main
23961
- }, ownerState.color === 'inherit' && {
23962
- color: 'inherit',
23963
- borderColor: 'currentColor'
23964
- }, ownerState.size === 'small' && ownerState.variant === 'text' && {
23965
- padding: '4px 5px',
23966
- fontSize: theme.typography.pxToRem(13)
23967
- }, ownerState.size === 'large' && ownerState.variant === 'text' && {
23968
- padding: '8px 11px',
23969
- fontSize: theme.typography.pxToRem(15)
23970
- }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
23971
- padding: '3px 9px',
23972
- fontSize: theme.typography.pxToRem(13)
23973
- }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
23974
- padding: '7px 21px',
23975
- fontSize: theme.typography.pxToRem(15)
23976
- }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
23977
- padding: '4px 10px',
23978
- fontSize: theme.typography.pxToRem(13)
23979
- }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
23980
- padding: '8px 22px',
23981
- fontSize: theme.typography.pxToRem(15)
23982
- }, ownerState.fullWidth && {
23983
- width: '100%'
23984
- }), ({
24682
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
24683
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
24684
+ }, ownerState.color === 'inherit' && {
24685
+ color: 'inherit',
24686
+ borderColor: 'currentColor'
24687
+ }, ownerState.size === 'small' && ownerState.variant === 'text' && {
24688
+ padding: '4px 5px',
24689
+ fontSize: theme.typography.pxToRem(13)
24690
+ }, ownerState.size === 'large' && ownerState.variant === 'text' && {
24691
+ padding: '8px 11px',
24692
+ fontSize: theme.typography.pxToRem(15)
24693
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
24694
+ padding: '3px 9px',
24695
+ fontSize: theme.typography.pxToRem(13)
24696
+ }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
24697
+ padding: '7px 21px',
24698
+ fontSize: theme.typography.pxToRem(15)
24699
+ }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
24700
+ padding: '4px 10px',
24701
+ fontSize: theme.typography.pxToRem(13)
24702
+ }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
24703
+ padding: '8px 22px',
24704
+ fontSize: theme.typography.pxToRem(15)
24705
+ }, ownerState.fullWidth && {
24706
+ width: '100%'
24707
+ });
24708
+ }, ({
23985
24709
  ownerState
23986
24710
  }) => ownerState.disableElevation && {
23987
24711
  boxShadow: 'none',
@@ -24125,7 +24849,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24125
24849
  className: PropTypes.string,
24126
24850
 
24127
24851
  /**
24128
- * The color of the component. It supports those theme colors that make sense for this component.
24852
+ * The color of the component.
24853
+ * It supports both default and custom theme colors, which can be added as shown in the
24854
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
24129
24855
  * @default 'primary'
24130
24856
  */
24131
24857
  color: PropTypes
@@ -24421,7 +25147,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24421
25147
  className: PropTypes.string,
24422
25148
 
24423
25149
  /**
24424
- * The color of the component. It supports those theme colors that make sense for this component.
25150
+ * The color of the component.
25151
+ * It supports both default and custom theme colors, which can be added as shown in the
25152
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
24425
25153
  * @default 'primary'
24426
25154
  */
24427
25155
  color: PropTypes
@@ -25699,7 +26427,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25699
26427
  classes: PropTypes.object,
25700
26428
 
25701
26429
  /**
25702
- * The color of the component. It supports those theme colors that make sense for this component.
26430
+ * The color of the component.
26431
+ * It supports both default and custom theme colors, which can be added as shown in the
26432
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25703
26433
  * @default 'primary'
25704
26434
  */
25705
26435
  color: PropTypes
@@ -25998,7 +26728,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25998
26728
  className: PropTypes.string,
25999
26729
 
26000
26730
  /**
26001
- * The color of the component. It supports those theme colors that make sense for this component.
26731
+ * The color of the component.
26732
+ * It supports both default and custom theme colors, which can be added as shown in the
26733
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
26002
26734
  * @default 'primary'
26003
26735
  */
26004
26736
  color: PropTypes
@@ -26387,12 +27119,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26387
27119
  /**
26388
27120
  * Modal is a lower-level construct that is leveraged by the following components:
26389
27121
  *
26390
- * - [Dialog](/api/dialog/)
26391
- * - [Drawer](/api/drawer/)
26392
- * - [Menu](/api/menu/)
26393
- * - [Popover](/api/popover/)
27122
+ * - [Dialog](/material-ui/api/dialog/)
27123
+ * - [Drawer](/material-ui/api/drawer/)
27124
+ * - [Menu](/material-ui/api/menu/)
27125
+ * - [Popover](/material-ui/api/popover/)
26394
27126
  *
26395
- * If you are creating a modal dialog, you probably want to use the [Dialog](/api/dialog/) component
27127
+ * If you are creating a modal dialog, you probably want to use the [Dialog](/material-ui/api/dialog/) component
26396
27128
  * rather than directly using Modal.
26397
27129
  *
26398
27130
  * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
@@ -26483,7 +27215,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26483
27215
  BackdropComponent: PropTypes.elementType,
26484
27216
 
26485
27217
  /**
26486
- * Props applied to the [`Backdrop`](/api/backdrop/) element.
27218
+ * Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
26487
27219
  */
26488
27220
  BackdropProps: PropTypes.object,
26489
27221
 
@@ -26988,7 +27720,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26988
27720
  PaperComponent: PropTypes.elementType,
26989
27721
 
26990
27722
  /**
26991
- * Props applied to the [`Paper`](/api/paper/) element.
27723
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
26992
27724
  * @default {}
26993
27725
  */
26994
27726
  PaperProps: PropTypes.object,
@@ -27006,7 +27738,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27006
27738
 
27007
27739
  /**
27008
27740
  * The component used for the transition.
27009
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
27741
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
27010
27742
  * @default Fade
27011
27743
  */
27012
27744
  TransitionComponent: PropTypes.elementType,
@@ -27726,7 +28458,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27726
28458
  }
27727
28459
  }
27728
28460
  /**
27729
- * The Slide transition is used by the [Drawer](/components/drawers/) component.
28461
+ * The Slide transition is used by the [Drawer](/material-ui/react-drawer/) component.
27730
28462
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
27731
28463
  */
27732
28464
 
@@ -28130,7 +28862,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28130
28862
  return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
28131
28863
  }
28132
28864
  /**
28133
- * The props of the [Modal](/api/modal/) component are available
28865
+ * The props of the [Modal](/material-ui/api/modal/) component are available
28134
28866
  * when `variant="temporary"` is set.
28135
28867
  */
28136
28868
 
@@ -28286,7 +29018,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28286
29018
  hideBackdrop: PropTypes.bool,
28287
29019
 
28288
29020
  /**
28289
- * Props applied to the [`Modal`](/api/modal/) element.
29021
+ * Props applied to the [`Modal`](/material-ui/api/modal/) element.
28290
29022
  * @default {}
28291
29023
  */
28292
29024
  ModalProps: PropTypes.object,
@@ -28305,13 +29037,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28305
29037
  open: PropTypes.bool,
28306
29038
 
28307
29039
  /**
28308
- * Props applied to the [`Paper`](/api/paper/) element.
29040
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
28309
29041
  * @default {}
28310
29042
  */
28311
29043
  PaperProps: PropTypes.object,
28312
29044
 
28313
29045
  /**
28314
- * Props applied to the [`Slide`](/api/slide/) element.
29046
+ * Props applied to the [`Slide`](/material-ui/api/slide/) element.
28315
29047
  */
28316
29048
  SlideProps: PropTypes.object,
28317
29049
 
@@ -28514,7 +29246,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28514
29246
  className: PropTypes.string,
28515
29247
 
28516
29248
  /**
28517
- * The color of the component. It supports those theme colors that make sense for this component.
29249
+ * The color of the component.
29250
+ * It supports both default and custom theme colors, which can be added as shown in the
29251
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
28518
29252
  * @default 'default'
28519
29253
  */
28520
29254
  color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
@@ -28803,7 +29537,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28803
29537
  classes: PropTypes.object,
28804
29538
 
28805
29539
  /**
28806
- * The color of the component. It supports those theme colors that make sense for this component.
29540
+ * The color of the component.
29541
+ * It supports both default and custom theme colors, which can be added as shown in the
29542
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
28807
29543
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
28808
29544
  */
28809
29545
  color: PropTypes
@@ -28911,7 +29647,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28911
29647
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
28912
29648
 
28913
29649
  /**
28914
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
29650
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
28915
29651
  * @default false
28916
29652
  */
28917
29653
  multiline: PropTypes.bool,
@@ -29035,7 +29771,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29035
29771
  * - Input
29036
29772
  * - InputLabel
29037
29773
  *
29038
- * You can find one composition example below and more going to [the demos](/components/text-fields/#components).
29774
+ * You can find one composition example below and more going to [the demos](/material-ui/react-text-field/#components).
29039
29775
  *
29040
29776
  * ```jsx
29041
29777
  * <FormControl>
@@ -29216,7 +29952,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29216
29952
  className: PropTypes.string,
29217
29953
 
29218
29954
  /**
29219
- * The color of the component. It supports those theme colors that make sense for this component.
29955
+ * The color of the component.
29956
+ * It supports both default and custom theme colors, which can be added as shown in the
29957
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29220
29958
  * @default 'primary'
29221
29959
  */
29222
29960
  color: PropTypes
@@ -29377,7 +30115,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29377
30115
  control,
29378
30116
  disabled: disabledProp,
29379
30117
  disableTypography,
29380
- label,
30118
+ label: labelProp,
29381
30119
  labelPlacement = 'end'
29382
30120
  } = props,
29383
30121
  other = _objectWithoutPropertiesLoose(props, _excluded$1h);
@@ -29409,23 +30147,28 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29409
30147
 
29410
30148
  const ownerState = _extends({}, props, {
29411
30149
  disabled,
29412
- label,
29413
30150
  labelPlacement,
29414
30151
  error: fcs.error
29415
30152
  });
29416
30153
 
29417
30154
  const classes = useUtilityClasses$12(ownerState);
30155
+ let label = labelProp;
30156
+
30157
+ if (label != null && label.type !== Typography$1 && !disableTypography) {
30158
+ label = /*#__PURE__*/jsxRuntime_1(Typography$1, _extends({
30159
+ component: "span",
30160
+ className: classes.label
30161
+ }, componentsProps.typography, {
30162
+ children: label
30163
+ }));
30164
+ }
30165
+
29418
30166
  return /*#__PURE__*/jsxRuntime_2(FormControlLabelRoot, _extends({
29419
30167
  className: clsx(classes.root, className),
29420
30168
  ownerState: ownerState,
29421
30169
  ref: ref
29422
30170
  }, other, {
29423
- children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label.type === Typography$1 || disableTypography ? label : /*#__PURE__*/jsxRuntime_1(Typography$1, _extends({
29424
- component: "span",
29425
- className: classes.label
29426
- }, componentsProps.typography, {
29427
- children: label
29428
- }))]
30171
+ children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label]
29429
30172
  }));
29430
30173
  });
29431
30174
  FormControlLabel.propTypes
@@ -29482,7 +30225,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29482
30225
  /**
29483
30226
  * A text or an element to be used in an enclosing label element.
29484
30227
  */
29485
- label: PropTypes.oneOfType([PropTypes.element, PropTypes.number, PropTypes.string]).isRequired,
30228
+ label: PropTypes.node,
29486
30229
 
29487
30230
  /**
29488
30231
  * The position of the label.
@@ -29937,7 +30680,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29937
30680
  className: PropTypes.string,
29938
30681
 
29939
30682
  /**
29940
- * The color of the component. It supports those theme colors that make sense for this component.
30683
+ * The color of the component.
30684
+ * It supports both default and custom theme colors, which can be added as shown in the
30685
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29941
30686
  */
29942
30687
  color: PropTypes
29943
30688
  /* @typescript-to-proptypes-ignore */
@@ -30515,8 +31260,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30515
31260
  }
30516
31261
  };
30517
31262
  /**
30518
- * The Grow transition is used by the [Tooltip](/components/tooltips/) and
30519
- * [Popover](/components/popover/) components.
31263
+ * Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.
31264
+ * Remove this workaround once the WebKit bug fix is released.
31265
+ */
31266
+
31267
+ const isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)[4-9]/i.test(navigator.userAgent);
31268
+ /**
31269
+ * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and
31270
+ * [Popover](/material-ui/react-popover/) components.
30520
31271
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
30521
31272
  */
30522
31273
 
@@ -30587,7 +31338,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30587
31338
  duration,
30588
31339
  delay
30589
31340
  }), theme.transitions.create('transform', {
30590
- duration: duration * 0.666,
31341
+ duration: isWebKit154 ? duration : duration * 0.666,
30591
31342
  delay,
30592
31343
  easing: transitionTimingFunction
30593
31344
  })].join(',');
@@ -30623,11 +31374,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30623
31374
  duration,
30624
31375
  delay
30625
31376
  }), theme.transitions.create('transform', {
30626
- duration: duration * 0.666,
30627
- delay: delay || duration * 0.333,
31377
+ duration: isWebKit154 ? duration : duration * 0.666,
31378
+ delay: isWebKit154 ? delay : delay || duration * 0.333,
30628
31379
  easing: transitionTimingFunction
30629
31380
  })].join(',');
30630
- node.style.opacity = '0';
31381
+ node.style.opacity = 0;
30631
31382
  node.style.transform = getScale(0.75);
30632
31383
 
30633
31384
  if (onExit) {
@@ -31621,7 +32372,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31621
32372
  className: PropTypes.string,
31622
32373
 
31623
32374
  /**
31624
- * The color of the component. It supports those theme colors that make sense for this component.
32375
+ * The color of the component.
32376
+ * It supports both default and custom theme colors, which can be added as shown in the
32377
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
31625
32378
  * @default 'inherit'
31626
32379
  */
31627
32380
  color: PropTypes
@@ -32408,7 +33161,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32408
33161
  classes: PropTypes.object,
32409
33162
 
32410
33163
  /**
32411
- * The color of the component. It supports those theme colors that make sense for this component.
33164
+ * The color of the component.
33165
+ * It supports both default and custom theme colors, which can be added as shown in the
33166
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
32412
33167
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
32413
33168
  */
32414
33169
  color: PropTypes
@@ -32508,7 +33263,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32508
33263
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
32509
33264
 
32510
33265
  /**
32511
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
33266
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
32512
33267
  * @default false
32513
33268
  */
32514
33269
  multiline: PropTypes.bool,
@@ -32918,7 +33673,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32918
33673
  classes: PropTypes.object,
32919
33674
 
32920
33675
  /**
32921
- * The color of the component. It supports those theme colors that make sense for this component.
33676
+ * The color of the component.
33677
+ * It supports both default and custom theme colors, which can be added as shown in the
33678
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
32922
33679
  */
32923
33680
  color: PropTypes
32924
33681
  /* @typescript-to-proptypes-ignore */
@@ -33303,7 +34060,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33303
34060
  className: PropTypes.string,
33304
34061
 
33305
34062
  /**
33306
- * The color of the component. It supports those theme colors that make sense for this component.
34063
+ * The color of the component.
34064
+ * It supports both default and custom theme colors, which can be added as shown in the
34065
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
33307
34066
  * @default 'primary'
33308
34067
  */
33309
34068
  color: PropTypes
@@ -33342,7 +34101,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33342
34101
  const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
33343
34102
  var linkClasses$1 = linkClasses;
33344
34103
 
33345
- const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant"];
34104
+ const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
33346
34105
  const colorTransformations = {
33347
34106
  primary: 'primary.main',
33348
34107
  textPrimary: 'text.primary',
@@ -33425,6 +34184,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33425
34184
  });
33426
34185
  });
33427
34186
  const Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34187
+ const theme = useTheme();
33428
34188
  const props = useThemeProps({
33429
34189
  props: inProps,
33430
34190
  name: 'MuiLink'
@@ -33438,10 +34198,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33438
34198
  onFocus,
33439
34199
  TypographyClasses,
33440
34200
  underline = 'always',
33441
- variant = 'inherit'
34201
+ variant = 'inherit',
34202
+ sx
33442
34203
  } = props,
33443
34204
  other = _objectWithoutPropertiesLoose(props, _excluded$10);
33444
34205
 
34206
+ const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
33445
34207
  const {
33446
34208
  isFocusVisibleRef,
33447
34209
  onBlur: handleBlurVisible,
@@ -33476,7 +34238,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33476
34238
  };
33477
34239
 
33478
34240
  const ownerState = _extends({}, props, {
33479
- color,
34241
+ // It is too complex to support any types of `sx`.
34242
+ // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
34243
+ color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
33480
34244
  component,
33481
34245
  focusVisible,
33482
34246
  underline,
@@ -33485,15 +34249,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33485
34249
 
33486
34250
  const classes = useUtilityClasses$Q(ownerState);
33487
34251
  return /*#__PURE__*/jsxRuntime_1(LinkRoot, _extends({
34252
+ color: color,
33488
34253
  className: clsx(classes.root, className),
33489
34254
  classes: TypographyClasses,
33490
- color: color,
33491
34255
  component: component,
33492
34256
  onBlur: handleBlur,
33493
34257
  onFocus: handleFocus,
33494
34258
  ref: handlerRef,
33495
34259
  ownerState: ownerState,
33496
- variant: variant
34260
+ variant: variant,
34261
+ sx: [...(inProps.color ? [{
34262
+ color: colorTransformations[color] || color
34263
+ }] : []), ...(Array.isArray(sx) ? sx : [sx])]
33497
34264
  }, other));
33498
34265
  });
33499
34266
  Link.propTypes
@@ -33549,7 +34316,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33549
34316
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
33550
34317
 
33551
34318
  /**
33552
- * `classes` prop applied to the [`Typography`](/api/typography/) element.
34319
+ * `classes` prop applied to the [`Typography`](/material-ui/api/typography/) element.
33553
34320
  */
33554
34321
  TypographyClasses: PropTypes.object,
33555
34322
 
@@ -33770,6 +34537,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33770
34537
  alignItems: 'center',
33771
34538
  position: 'relative',
33772
34539
  textDecoration: 'none',
34540
+ minWidth: 0,
33773
34541
  boxSizing: 'border-box',
33774
34542
  textAlign: 'left',
33775
34543
  paddingTop: 8,
@@ -34319,7 +35087,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34319
35087
  * If `true`, the list item is focused during the first mount.
34320
35088
  * Focus will also be triggered if the value changes from false to true.
34321
35089
  * @default false
34322
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35090
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34323
35091
  */
34324
35092
  autoFocus: PropTypes.bool,
34325
35093
 
@@ -34327,7 +35095,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34327
35095
  * If `true`, the list item is a button (using `ButtonBase`). Props intended
34328
35096
  * for `ButtonBase` can then be applied to `ListItem`.
34329
35097
  * @default false
34330
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35098
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34331
35099
  */
34332
35100
  button: PropTypes.bool,
34333
35101
 
@@ -34414,7 +35182,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34414
35182
  /**
34415
35183
  * If `true`, the component is disabled.
34416
35184
  * @default false
34417
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35185
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34418
35186
  */
34419
35187
  disabled: PropTypes.bool,
34420
35188
 
@@ -34449,7 +35217,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34449
35217
  /**
34450
35218
  * Use to apply selected styling.
34451
35219
  * @default false
34452
- * @deprecated checkout [ListItemButton](/api/list-item-button/) instead
35220
+ * @deprecated checkout [ListItemButton](/material-ui/api/list-item-button/) instead
34453
35221
  */
34454
35222
  selected: PropTypes.bool,
34455
35223
 
@@ -34915,7 +35683,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34915
35683
  }
34916
35684
  /**
34917
35685
  * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
34918
- * It's exposed to help customization of the [`Menu`](/api/menu/) component if you
35686
+ * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
34919
35687
  * use it separately you need to move focus into the component manually. Once
34920
35688
  * the focus is placed inside the component it is fully keyboard accessible.
34921
35689
  */
@@ -35572,7 +36340,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35572
36340
  open: PropTypes.bool.isRequired,
35573
36341
 
35574
36342
  /**
35575
- * Props applied to the [`Paper`](/api/paper/) element.
36343
+ * Props applied to the [`Paper`](/material-ui/api/paper/) element.
35576
36344
  * @default {}
35577
36345
  */
35578
36346
  PaperProps: PropTypes
@@ -35605,7 +36373,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35605
36373
 
35606
36374
  /**
35607
36375
  * The component used for the transition.
35608
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
36376
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
35609
36377
  * @default Grow
35610
36378
  */
35611
36379
  TransitionComponent: PropTypes.elementType,
@@ -35856,7 +36624,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35856
36624
  disableAutoFocusItem: PropTypes.bool,
35857
36625
 
35858
36626
  /**
35859
- * Props applied to the [`MenuList`](/api/menu-list/) element.
36627
+ * Props applied to the [`MenuList`](/material-ui/api/menu-list/) element.
35860
36628
  * @default {}
35861
36629
  */
35862
36630
  MenuListProps: PropTypes.object,
@@ -35880,7 +36648,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35880
36648
  PaperProps: PropTypes.object,
35881
36649
 
35882
36650
  /**
35883
- * `classes` prop applied to the [`Popover`](/api/popover/) element.
36651
+ * `classes` prop applied to the [`Popover`](/material-ui/api/popover/) element.
35884
36652
  */
35885
36653
  PopoverClasses: PropTypes.object,
35886
36654
 
@@ -37045,7 +37813,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37045
37813
  classes: PropTypes.object,
37046
37814
 
37047
37815
  /**
37048
- * The color of the component. It supports those theme colors that make sense for this component.
37816
+ * The color of the component.
37817
+ * It supports both default and custom theme colors, which can be added as shown in the
37818
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37049
37819
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
37050
37820
  */
37051
37821
  color: PropTypes
@@ -37137,7 +37907,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37137
37907
  minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
37138
37908
 
37139
37909
  /**
37140
- * If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
37910
+ * If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
37141
37911
  * @default false
37142
37912
  */
37143
37913
  multiline: PropTypes.bool,
@@ -37625,6 +38395,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37625
38395
 
37626
38396
  /**
37627
38397
  * The active color.
38398
+ * It supports both default and custom theme colors, which can be added as shown in the
38399
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37628
38400
  * @default 'standard'
37629
38401
  */
37630
38402
  color: PropTypes
@@ -37849,6 +38621,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37849
38621
 
37850
38622
  /**
37851
38623
  * The active color.
38624
+ * It supports both default and custom theme colors, which can be added as shown in the
38625
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
37852
38626
  * @default 'standard'
37853
38627
  */
37854
38628
  color: PropTypes
@@ -37877,7 +38651,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37877
38651
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
37878
38652
  * This is important for screen reader users.
37879
38653
  *
37880
- * For localization purposes, you can use the provided [translations](/guides/localization/).
38654
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
37881
38655
  * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
37882
38656
  * @param {number} page The page number to format.
37883
38657
  * @param {bool} selected If true, the current page is selected.
@@ -38210,7 +38984,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38210
38984
  classes: PropTypes.object,
38211
38985
 
38212
38986
  /**
38213
- * The color of the component. It supports those theme colors that make sense for this component.
38987
+ * The color of the component.
38988
+ * It supports both default and custom theme colors, which can be added as shown in the
38989
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
38214
38990
  * @default 'primary'
38215
38991
  */
38216
38992
  color: PropTypes
@@ -39000,7 +39776,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39000
39776
  * Accepts a function which returns a string value that provides a user-friendly name for the current value of the rating.
39001
39777
  * This is important for screen reader users.
39002
39778
  *
39003
- * For localization purposes, you can use the provided [translations](/guides/localization/).
39779
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
39004
39780
  * @param {number} value The rating label's value to format.
39005
39781
  * @returns {string}
39006
39782
  * @default function defaultLabelText(value) {
@@ -39545,7 +40321,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39545
40321
  }
39546
40322
  }
39547
40323
 
39548
- const items = childrenArray.map(child => {
40324
+ const items = childrenArray.map((child, index, arr) => {
39549
40325
  if (! /*#__PURE__*/React__namespace.isValidElement(child)) {
39550
40326
  return null;
39551
40327
  }
@@ -39580,6 +40356,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39580
40356
  foundMatch = true;
39581
40357
  }
39582
40358
 
40359
+ if (child.props.value === undefined) {
40360
+ return /*#__PURE__*/React__namespace.cloneElement(child, {
40361
+ 'aria-readonly': true,
40362
+ role: 'option'
40363
+ });
40364
+ }
40365
+
40366
+ const isFirstSelectableElement = () => {
40367
+ if (value) {
40368
+ return selected;
40369
+ }
40370
+
40371
+ const firstSelectableElement = arr.find(item => item.props.value !== undefined && item.props.disabled !== true);
40372
+
40373
+ if (child === firstSelectableElement) {
40374
+ return true;
40375
+ }
40376
+
40377
+ return selected;
40378
+ };
40379
+
39583
40380
  return /*#__PURE__*/React__namespace.cloneElement(child, {
39584
40381
  'aria-selected': selected ? 'true' : 'false',
39585
40382
  onClick: handleItemClick(child),
@@ -39596,7 +40393,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39596
40393
  }
39597
40394
  },
39598
40395
  role: 'option',
39599
- selected,
40396
+ selected: arr[0].props.value === undefined || arr[0].props.disabled === true ? isFirstSelectableElement() : selected,
39600
40397
  value: undefined,
39601
40398
  // The value is most likely not a valid HTML attribute.
39602
40399
  'data-value': child.props.value // Instead, we provide it as a data attribute.
@@ -39804,7 +40601,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39804
40601
  labelId: PropTypes.string,
39805
40602
 
39806
40603
  /**
39807
- * Props applied to the [`Menu`](/api/menu/) element.
40604
+ * Props applied to the [`Menu`](/material-ui/api/menu/) element.
39808
40605
  */
39809
40606
  MenuProps: PropTypes.object,
39810
40607
 
@@ -40090,7 +40887,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40090
40887
  inputProps: PropTypes.object,
40091
40888
 
40092
40889
  /**
40093
- * See [OutlinedInput#label](/api/outlined-input/#props)
40890
+ * See [OutlinedInput#label](/material-ui/api/outlined-input/#props)
40094
40891
  */
40095
40892
  label: PropTypes.node,
40096
40893
 
@@ -40101,7 +40898,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40101
40898
  labelId: PropTypes.string,
40102
40899
 
40103
40900
  /**
40104
- * Props applied to the [`Menu`](/api/menu/) element.
40901
+ * Props applied to the [`Menu`](/material-ui/api/menu/) element.
40105
40902
  */
40106
40903
  MenuProps: PropTypes.object,
40107
40904
 
@@ -40934,7 +41731,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40934
41731
  classes: PropTypes.object,
40935
41732
 
40936
41733
  /**
40937
- * The color of the component. It supports those theme colors that make sense for this component.
41734
+ * The color of the component.
41735
+ * It supports both default and custom theme colors, which can be added as shown in the
41736
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
40938
41737
  * @default 'primary'
40939
41738
  */
40940
41739
  color: PropTypes
@@ -41645,7 +42444,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41645
42444
  ClickAwayListenerProps: PropTypes.object,
41646
42445
 
41647
42446
  /**
41648
- * Props applied to the [`SnackbarContent`](/api/snackbar-content/) element.
42447
+ * Props applied to the [`SnackbarContent`](/material-ui/api/snackbar-content/) element.
41649
42448
  */
41650
42449
  ContentProps: PropTypes.object,
41651
42450
 
@@ -41720,7 +42519,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41720
42519
 
41721
42520
  /**
41722
42521
  * The component used for the transition.
41723
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
42522
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
41724
42523
  * @default Grow
41725
42524
  */
41726
42525
  TransitionComponent: PropTypes.elementType,
@@ -41759,7 +42558,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41759
42558
  };
41760
42559
  /**
41761
42560
  * The Zoom transition can be used for the floating variant of the
41762
- * [Button](/components/buttons/#floating-action-buttons) component.
42561
+ * [Button](/material-ui/react-button/#floating-action-buttons) component.
41763
42562
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
41764
42563
  */
41765
42564
 
@@ -42414,7 +43213,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42414
43213
  direction: PropTypes.oneOf(['down', 'left', 'right', 'up']),
42415
43214
 
42416
43215
  /**
42417
- * Props applied to the [`Fab`](/api/fab/) element.
43216
+ * Props applied to the [`Fab`](/material-ui/api/fab/) element.
42418
43217
  * @default {}
42419
43218
  */
42420
43219
  FabProps: PropTypes.object,
@@ -42489,7 +43288,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42489
43288
 
42490
43289
  /**
42491
43290
  * The component used for the transition.
42492
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
43291
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
42493
43292
  * @default Zoom
42494
43293
  */
42495
43294
  TransitionComponent: PropTypes.elementType,
@@ -43294,7 +44093,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43294
44093
  PopperComponent: PropTypes.elementType,
43295
44094
 
43296
44095
  /**
43297
- * Props applied to the [`Popper`](/api/popper/) element.
44096
+ * Props applied to the [`Popper`](/material-ui/api/popper/) element.
43298
44097
  * @default {}
43299
44098
  */
43300
44099
  PopperProps: PropTypes.object,
@@ -43313,7 +44112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43313
44112
 
43314
44113
  /**
43315
44114
  * The component used for the transition.
43316
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
44115
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
43317
44116
  * @default Grow
43318
44117
  */
43319
44118
  TransitionComponent: PropTypes.elementType,
@@ -43537,7 +44336,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43537
44336
  delay: PropTypes.number,
43538
44337
 
43539
44338
  /**
43540
- * Props applied to the [`Fab`](/api/fab/) component.
44339
+ * Props applied to the [`Fab`](/material-ui/api/fab/) component.
43541
44340
  * @default {}
43542
44341
  */
43543
44342
  FabProps: PropTypes.object,
@@ -43564,7 +44363,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43564
44363
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
43565
44364
 
43566
44365
  /**
43567
- * `classes` prop applied to the [`Tooltip`](/api/tooltip/) element.
44366
+ * `classes` prop applied to the [`Tooltip`](/material-ui/api/tooltip/) element.
43568
44367
  */
43569
44368
  TooltipClasses: PropTypes.object,
43570
44369
 
@@ -44494,12 +45293,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44494
45293
  optional: PropTypes.node,
44495
45294
 
44496
45295
  /**
44497
- * The component to render in place of the [`StepIcon`](/api/step-icon/).
45296
+ * The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
44498
45297
  */
44499
45298
  StepIconComponent: PropTypes.elementType,
44500
45299
 
44501
45300
  /**
44502
- * Props applied to the [`StepIcon`](/api/step-icon/) element.
45301
+ * Props applied to the [`StepIcon`](/material-ui/api/step-icon/) element.
44503
45302
  */
44504
45303
  StepIconProps: PropTypes.object,
44505
45304
 
@@ -44915,7 +45714,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44915
45714
 
44916
45715
  /**
44917
45716
  * The component used for the transition.
44918
- * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
45717
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
44919
45718
  * @default Collapse
44920
45719
  */
44921
45720
  TransitionComponent: PropTypes.elementType,
@@ -46026,7 +46825,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46026
46825
  className: PropTypes.string,
46027
46826
 
46028
46827
  /**
46029
- * The color of the component. It supports those theme colors that make sense for this component.
46828
+ * The color of the component.
46829
+ * It supports both default and custom theme colors, which can be added as shown in the
46830
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
46030
46831
  * @default 'primary'
46031
46832
  */
46032
46833
  color: PropTypes
@@ -47359,7 +48160,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47359
48160
  });
47360
48161
  TablePaginationActions.propTypes = {
47361
48162
  /**
47362
- * Props applied to the back arrow [`IconButton`](/api/icon-button/) element.
48163
+ * Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) element.
47363
48164
  */
47364
48165
  backIconButtonProps: PropTypes.object,
47365
48166
 
@@ -47371,7 +48172,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47371
48172
  /**
47372
48173
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
47373
48174
  *
47374
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48175
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47375
48176
  *
47376
48177
  * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
47377
48178
  * @param {number} page The page number to format.
@@ -47380,7 +48181,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47380
48181
  getItemAriaLabel: PropTypes.func.isRequired,
47381
48182
 
47382
48183
  /**
47383
- * Props applied to the next arrow [`IconButton`](/api/icon-button/) element.
48184
+ * Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.
47384
48185
  */
47385
48186
  nextIconButtonProps: PropTypes.object,
47386
48187
 
@@ -47672,7 +48473,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47672
48473
  ActionsComponent: PropTypes.elementType,
47673
48474
 
47674
48475
  /**
47675
- * Props applied to the back arrow [`IconButton`](/api/icon-button/) component.
48476
+ * Props applied to the back arrow [`IconButton`](/material-ui/api/icon-button/) component.
47676
48477
  */
47677
48478
  backIconButtonProps: PropTypes.object,
47678
48479
 
@@ -47708,7 +48509,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47708
48509
  * Accepts a function which returns a string value that provides a user-friendly name for the current page.
47709
48510
  * This is important for screen reader users.
47710
48511
  *
47711
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48512
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47712
48513
  * @param {string} type The link or button type to format ('first' | 'last' | 'next' | 'previous').
47713
48514
  * @returns {string}
47714
48515
  * @default function defaultGetAriaLabel(type) {
@@ -47721,7 +48522,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47721
48522
  * Customize the displayed rows label. Invoked with a `{ from, to, count, page }`
47722
48523
  * object.
47723
48524
  *
47724
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48525
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47725
48526
  * @default function defaultLabelDisplayedRows({ from, to, count }) {
47726
48527
  * return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
47727
48528
  * }
@@ -47731,13 +48532,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47731
48532
  /**
47732
48533
  * Customize the rows per page label.
47733
48534
  *
47734
- * For localization purposes, you can use the provided [translations](/guides/localization/).
48535
+ * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
47735
48536
  * @default 'Rows per page:'
47736
48537
  */
47737
48538
  labelRowsPerPage: PropTypes.node,
47738
48539
 
47739
48540
  /**
47740
- * Props applied to the next arrow [`IconButton`](/api/icon-button/) element.
48541
+ * Props applied to the next arrow [`IconButton`](/material-ui/api/icon-button/) element.
47741
48542
  */
47742
48543
  nextIconButtonProps: PropTypes.object,
47743
48544
 
@@ -47798,7 +48599,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47798
48599
  })]).isRequired),
47799
48600
 
47800
48601
  /**
47801
- * Props applied to the rows per page [`Select`](/api/select/) element.
48602
+ * Props applied to the rows per page [`Select`](/material-ui/api/select/) element.
47802
48603
  * @default {}
47803
48604
  */
47804
48605
  SelectProps: PropTypes.object,
@@ -49171,7 +49972,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49171
49972
  TabIndicatorProps: PropTypes.object,
49172
49973
 
49173
49974
  /**
49174
- * Props applied to the [`TabScrollButton`](/api/tab-scroll-button/) element.
49975
+ * Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
49175
49976
  * @default {}
49176
49977
  */
49177
49978
  TabScrollButtonProps: PropTypes.object,
@@ -49246,12 +50047,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49246
50047
  * It's important to understand that the text field is a simple abstraction
49247
50048
  * on top of the following components:
49248
50049
  *
49249
- * - [FormControl](/api/form-control/)
49250
- * - [InputLabel](/api/input-label/)
49251
- * - [FilledInput](/api/filled-input/)
49252
- * - [OutlinedInput](/api/outlined-input/)
49253
- * - [Input](/api/input/)
49254
- * - [FormHelperText](/api/form-helper-text/)
50050
+ * - [FormControl](/material-ui/api/form-control/)
50051
+ * - [InputLabel](/material-ui/api/input-label/)
50052
+ * - [FilledInput](/material-ui/api/filled-input/)
50053
+ * - [OutlinedInput](/material-ui/api/outlined-input/)
50054
+ * - [Input](/material-ui/api/input/)
50055
+ * - [FormHelperText](/material-ui/api/form-helper-text/)
49255
50056
  *
49256
50057
  * If you wish to alter the props applied to the `input` element, you can do so as follows:
49257
50058
  *
@@ -49446,7 +50247,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49446
50247
  className: PropTypes.string,
49447
50248
 
49448
50249
  /**
49449
- * The color of the component. It supports those theme colors that make sense for this component.
50250
+ * The color of the component.
50251
+ * It supports both default and custom theme colors, which can be added as shown in the
50252
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49450
50253
  * @default 'primary'
49451
50254
  */
49452
50255
  color: PropTypes
@@ -49471,7 +50274,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49471
50274
  error: PropTypes.bool,
49472
50275
 
49473
50276
  /**
49474
- * Props applied to the [`FormHelperText`](/api/form-helper-text/) element.
50277
+ * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
49475
50278
  */
49476
50279
  FormHelperTextProps: PropTypes.object,
49477
50280
 
@@ -49493,7 +50296,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49493
50296
  id: PropTypes.string,
49494
50297
 
49495
50298
  /**
49496
- * Props applied to the [`InputLabel`](/api/input-label/) element.
50299
+ * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
49497
50300
  * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
49498
50301
  */
49499
50302
  InputLabelProps: PropTypes.object,
@@ -49505,8 +50308,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49505
50308
 
49506
50309
  /**
49507
50310
  * Props applied to the Input element.
49508
- * It will be a [`FilledInput`](/api/filled-input/),
49509
- * [`OutlinedInput`](/api/outlined-input/) or [`Input`](/api/input/)
50311
+ * It will be a [`FilledInput`](/material-ui/api/filled-input/),
50312
+ * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
49510
50313
  * component depending on the `variant` prop value.
49511
50314
  */
49512
50315
  InputProps: PropTypes.object,
@@ -49583,14 +50386,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49583
50386
  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
49584
50387
 
49585
50388
  /**
49586
- * Render a [`Select`](/api/select/) element while passing the Input element to `Select` as `input` parameter.
50389
+ * Render a [`Select`](/material-ui/api/select/) element while passing the Input element to `Select` as `input` parameter.
49587
50390
  * If this option is set you must pass the options of the select as children.
49588
50391
  * @default false
49589
50392
  */
49590
50393
  select: PropTypes.bool,
49591
50394
 
49592
50395
  /**
49593
- * Props applied to the [`Select`](/api/select/) element.
50396
+ * Props applied to the [`Select`](/material-ui/api/select/) element.
49594
50397
  */
49595
50398
  SelectProps: PropTypes.object,
49596
50399
 
@@ -49786,6 +50589,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49786
50589
 
49787
50590
  /**
49788
50591
  * The color of the button when it is in an active state.
50592
+ * It supports both default and custom theme colors, which can be added as shown in the
50593
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
49789
50594
  * @default 'standard'
49790
50595
  */
49791
50596
  color: PropTypes
@@ -50062,7 +50867,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50062
50867
  className: PropTypes.string,
50063
50868
 
50064
50869
  /**
50065
- * The color of a button when it is selected.
50870
+ * The color of the button when it is selected.
50871
+ * It supports both default and custom theme colors, which can be added as shown in the
50872
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
50066
50873
  * @default 'standard'
50067
50874
  */
50068
50875
  color: PropTypes
@@ -50217,6 +51024,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50217
51024
  exports.DialogTitle = DialogTitle$1;
50218
51025
  exports.Divider = Divider$1;
50219
51026
  exports.Drawer = Drawer$1;
51027
+ exports.Experimental_CssVarsProvider = Experimental_CssVarsProvider;
50220
51028
  exports.Fab = Fab$1;
50221
51029
  exports.Fade = Fade$1;
50222
51030
  exports.FilledInput = FilledInput$1;
@@ -50330,8 +51138,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50330
51138
  exports.autocompleteClasses = autocompleteClasses$1;
50331
51139
  exports.avatarClasses = avatarClasses$1;
50332
51140
  exports.avatarGroupClasses = avatarGroupClasses$1;
50333
- exports.backdropClasses = backdropClasses;
50334
- exports.badgeClasses = badgeClasses;
51141
+ exports.backdropClasses = backdropClasses$1;
51142
+ exports.badgeClasses = badgeClasses$1;
50335
51143
  exports.bottomNavigationActionClasses = bottomNavigationActionClasses$1;
50336
51144
  exports.bottomNavigationClasses = bottomNavigationClasses$1;
50337
51145
  exports.breadcrumbsClasses = breadcrumbsClasses$1;
@@ -50356,7 +51164,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50356
51164
  exports.createMuiTheme = createMuiTheme;
50357
51165
  exports.createStyles = createStyles;
50358
51166
  exports.createSvgIcon = createSvgIcon;
50359
- exports.createTheme = createTheme;
51167
+ exports.createTheme = createTheme$1;
50360
51168
  exports.css = css;
50361
51169
  exports.darkScrollbar = darkScrollbar;
50362
51170
  exports.darken = darken;
@@ -50374,6 +51182,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50374
51182
  exports.easing = easing;
50375
51183
  exports.emphasize = emphasize;
50376
51184
  exports.experimentalStyled = styled$1;
51185
+ exports.experimental_extendTheme = createTheme;
50377
51186
  exports.experimental_sx = sx;
50378
51187
  exports.fabClasses = fabClasses$1;
50379
51188
  exports.filledInputClasses = filledInputClasses$1;
@@ -50394,6 +51203,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50394
51203
  exports.getAutocompleteUtilityClass = getAutocompleteUtilityClass;
50395
51204
  exports.getAvatarGroupUtilityClass = getAvatarGroupUtilityClass;
50396
51205
  exports.getAvatarUtilityClass = getAvatarUtilityClass;
51206
+ exports.getBackdropUtilityClass = getBackdropUtilityClass;
51207
+ exports.getBadgeUtilityClass = getBadgeUtilityClass;
50397
51208
  exports.getBottomNavigationActionUtilityClass = getBottomNavigationActionUtilityClass;
50398
51209
  exports.getBottomNavigationUtilityClass = getBottomNavigationUtilityClass;
50399
51210
  exports.getBreadcrumbsUtilityClass = getBreadcrumbsUtilityClass;
@@ -50432,6 +51243,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50432
51243
  exports.getImageListItemBarUtilityClass = getImageListItemBarUtilityClass;
50433
51244
  exports.getImageListItemUtilityClass = getImageListItemUtilityClass;
50434
51245
  exports.getImageListUtilityClass = getImageListUtilityClass;
51246
+ exports.getInitColorSchemeScript = getInitColorSchemeScript;
50435
51247
  exports.getInputAdornmentUtilityClass = getInputAdornmentUtilityClass;
50436
51248
  exports.getInputBaseUtilityClass = getInputBaseUtilityClass;
50437
51249
  exports.getInputLabelUtilityClasses = getInputLabelUtilityClasses;
@@ -50588,6 +51400,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50588
51400
  exports.unstable_useId = useId;
50589
51401
  exports.unsupportedProp = unsupportedProp;
50590
51402
  exports.useAutocomplete = useAutocomplete;
51403
+ exports.useColorScheme = useColorScheme;
50591
51404
  exports.useControlled = useControlled;
50592
51405
  exports.useEventCallback = useEventCallback;
50593
51406
  exports.useForkRef = useForkRef;