@mui/material 5.6.2 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/appBarClasses.d.ts +28 -28
  10. package/Autocomplete/Autocomplete.js +15 -14
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/AvatarGroup.js +2 -2
  14. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  15. package/Backdrop/backdropClasses.d.ts +10 -10
  16. package/Badge/Badge.js +2 -2
  17. package/Badge/badgeClasses.d.ts +24 -24
  18. package/BottomNavigation/BottomNavigation.js +1 -1
  19. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  20. package/BottomNavigationAction/BottomNavigationAction.js +6 -5
  21. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  22. package/Box/Box.d.ts +9 -28
  23. package/Box/Box.js +25 -4
  24. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  25. package/Button/buttonClasses.d.ts +76 -76
  26. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  27. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  28. package/ButtonGroup/ButtonGroup.js +10 -10
  29. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  30. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  31. package/CHANGELOG.md +225 -0
  32. package/Card/cardClasses.d.ts +8 -8
  33. package/CardActionArea/CardActionArea.js +2 -2
  34. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  35. package/CardActions/cardActionsClasses.d.ts +10 -10
  36. package/CardContent/cardContentClasses.d.ts +8 -8
  37. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  38. package/CardMedia/cardMediaClasses.d.ts +12 -12
  39. package/Checkbox/checkboxClasses.d.ts +18 -18
  40. package/Chip/chipClasses.d.ts +80 -80
  41. package/CircularProgress/CircularProgress.js +1 -1
  42. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  43. package/ClickAwayListener/index.d.ts +2 -2
  44. package/Collapse/collapseClasses.d.ts +18 -18
  45. package/Container/containerClasses.d.ts +22 -22
  46. package/CssBaseline/CssBaseline.js +4 -4
  47. package/Dialog/DialogContext.d.ts +6 -6
  48. package/Dialog/dialogClasses.d.ts +36 -36
  49. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  50. package/DialogContent/DialogContent.js +2 -2
  51. package/DialogContent/dialogContentClasses.d.ts +10 -10
  52. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  53. package/DialogTitle/DialogTitle.d.ts +30 -15
  54. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  55. package/Divider/Divider.js +4 -4
  56. package/Divider/dividerClasses.d.ts +34 -34
  57. package/Drawer/Drawer.js +6 -6
  58. package/Drawer/drawerClasses.d.ts +30 -30
  59. package/Fab/Fab.js +69 -65
  60. package/Fab/fabClasses.d.ts +26 -26
  61. package/FilledInput/FilledInput.js +3 -1
  62. package/FilledInput/filledInputClasses.d.ts +40 -40
  63. package/FormControl/formControlClasses.d.ts +14 -14
  64. package/FormControlLabel/FormControlLabel.js +1 -1
  65. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  66. package/FormGroup/formGroupClasses.d.ts +12 -12
  67. package/FormHelperText/FormHelperText.js +3 -3
  68. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  69. package/FormLabel/FormLabel.js +5 -5
  70. package/FormLabel/formLabelClasses.d.ts +22 -22
  71. package/Grid/gridClasses.d.ts +48 -48
  72. package/Icon/Icon.js +8 -8
  73. package/Icon/iconClasses.d.ts +24 -24
  74. package/IconButton/IconButton.js +5 -5
  75. package/IconButton/iconButtonClasses.d.ts +26 -26
  76. package/ImageList/imageListClasses.d.ts +16 -16
  77. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  78. package/ImageListItemBar/ImageListItemBar.js +1 -1
  79. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  80. package/Input/Input.js +9 -4
  81. package/Input/inputClasses.d.ts +34 -34
  82. package/InputAdornment/InputAdornment.js +1 -1
  83. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  84. package/InputBase/InputBase.js +16 -8
  85. package/InputBase/inputBaseClasses.d.ts +44 -44
  86. package/InputLabel/inputLabelClasses.d.ts +32 -32
  87. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  88. package/Link/Link.js +3 -8
  89. package/Link/linkClasses.d.ts +18 -18
  90. package/List/listClasses.d.ts +14 -14
  91. package/ListItem/ListItem.js +8 -8
  92. package/ListItem/listItemClasses.d.ts +30 -30
  93. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  94. package/ListItemButton/ListItemButton.js +8 -8
  95. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  96. package/ListItemIcon/ListItemIcon.js +1 -1
  97. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  98. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  99. package/ListItemText/listItemTextClasses.d.ts +18 -18
  100. package/ListSubheader/ListSubheader.js +3 -3
  101. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  102. package/Menu/menuClasses.d.ts +12 -12
  103. package/MenuItem/MenuItem.js +8 -8
  104. package/MenuItem/menuItemClasses.d.ts +20 -20
  105. package/MobileStepper/MobileStepper.js +5 -5
  106. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  107. package/Modal/Modal.js +1 -1
  108. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  109. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  110. package/Pagination/paginationClasses.d.ts +14 -14
  111. package/PaginationItem/PaginationItem.js +27 -27
  112. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  113. package/Paper/paperClasses.d.ts +39 -39
  114. package/Popover/popoverClasses.d.ts +10 -10
  115. package/Popper/Popper.d.ts +29 -29
  116. package/README.md +79 -32
  117. package/Radio/radioClasses.d.ts +16 -16
  118. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  119. package/RadioGroup/useRadioGroup.d.ts +4 -4
  120. package/Rating/Rating.js +2 -2
  121. package/Rating/ratingClasses.d.ts +40 -40
  122. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  123. package/Select/selectClasses.d.ts +30 -30
  124. package/Skeleton/skeletonClasses.d.ts +24 -24
  125. package/Snackbar/Snackbar.js +1 -1
  126. package/Snackbar/snackbarClasses.d.ts +20 -20
  127. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  128. package/SpeedDial/SpeedDial.js +1 -1
  129. package/SpeedDial/speedDialClasses.d.ts +22 -22
  130. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  131. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  132. package/Step/StepContext.d.ts +20 -20
  133. package/Step/stepClasses.d.ts +16 -16
  134. package/StepButton/stepButtonClasses.d.ts +14 -14
  135. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  136. package/StepContent/StepContent.d.ts +3 -1
  137. package/StepContent/stepContentClasses.d.ts +12 -12
  138. package/StepIcon/StepIcon.js +5 -5
  139. package/StepIcon/stepIconClasses.d.ts +16 -16
  140. package/StepLabel/StepLabel.js +4 -4
  141. package/StepLabel/stepLabelClasses.d.ts +28 -28
  142. package/Stepper/StepperContext.d.ts +18 -0
  143. package/Stepper/StepperContext.js +10 -2
  144. package/Stepper/index.d.ts +3 -0
  145. package/Stepper/index.js +3 -1
  146. package/Stepper/stepperClasses.d.ts +14 -14
  147. package/SvgIcon/SvgIcon.js +4 -4
  148. package/SvgIcon/svgIconClasses.d.ts +24 -24
  149. package/Switch/switchClasses.d.ts +32 -32
  150. package/Tab/Tab.js +7 -7
  151. package/Tab/tabClasses.d.ts +26 -26
  152. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  153. package/Table/Table.js +1 -1
  154. package/Table/tableClasses.d.ts +10 -10
  155. package/TableBody/tableBodyClasses.d.ts +8 -8
  156. package/TableCell/tableCellClasses.d.ts +32 -32
  157. package/TableContainer/tableContainerClasses.d.ts +8 -8
  158. package/TableFooter/tableFooterClasses.d.ts +8 -8
  159. package/TableHead/tableHeadClasses.d.ts +8 -8
  160. package/TablePagination/TablePagination.js +1 -1
  161. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  162. package/TableRow/TableRow.js +3 -3
  163. package/TableRow/tableRowClasses.d.ts +16 -16
  164. package/TableSortLabel/TableSortLabel.js +4 -4
  165. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  166. package/Tabs/Tabs.d.ts +1 -1
  167. package/Tabs/Tabs.js +2 -2
  168. package/Tabs/tabsClasses.d.ts +32 -32
  169. package/TextField/textFieldClasses.d.ts +8 -8
  170. package/ToggleButton/ToggleButton.js +17 -10
  171. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  172. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  173. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  174. package/Toolbar/toolbarClasses.d.ts +14 -14
  175. package/Tooltip/Tooltip.js +5 -5
  176. package/Tooltip/tooltipClasses.d.ts +30 -30
  177. package/Typography/typographyClasses.d.ts +50 -50
  178. package/className/index.d.ts +1 -8
  179. package/className/index.js +1 -8
  180. package/darkScrollbar/index.d.ts +28 -28
  181. package/index.js +1 -1
  182. package/internal/switchBaseClasses.d.ts +12 -12
  183. package/legacy/Accordion/Accordion.js +6 -6
  184. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  185. package/legacy/Autocomplete/Autocomplete.js +15 -14
  186. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  187. package/legacy/Badge/Badge.js +2 -2
  188. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  189. package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
  190. package/legacy/Box/Box.js +25 -4
  191. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  192. package/legacy/CardActionArea/CardActionArea.js +2 -2
  193. package/legacy/CircularProgress/CircularProgress.js +1 -1
  194. package/legacy/CssBaseline/CssBaseline.js +4 -4
  195. package/legacy/DialogContent/DialogContent.js +2 -2
  196. package/legacy/Divider/Divider.js +4 -4
  197. package/legacy/Drawer/Drawer.js +6 -6
  198. package/legacy/Fab/Fab.js +17 -17
  199. package/legacy/FilledInput/FilledInput.js +2 -2
  200. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  201. package/legacy/FormHelperText/FormHelperText.js +3 -3
  202. package/legacy/FormLabel/FormLabel.js +5 -5
  203. package/legacy/Icon/Icon.js +8 -8
  204. package/legacy/IconButton/IconButton.js +5 -5
  205. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  206. package/legacy/Input/Input.js +8 -3
  207. package/legacy/InputAdornment/InputAdornment.js +1 -1
  208. package/legacy/InputBase/InputBase.js +16 -8
  209. package/legacy/Link/Link.js +3 -9
  210. package/legacy/ListItem/ListItem.js +8 -8
  211. package/legacy/ListItemButton/ListItemButton.js +8 -8
  212. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  213. package/legacy/ListSubheader/ListSubheader.js +3 -3
  214. package/legacy/MenuItem/MenuItem.js +8 -8
  215. package/legacy/MobileStepper/MobileStepper.js +5 -5
  216. package/legacy/Modal/Modal.js +1 -1
  217. package/legacy/PaginationItem/PaginationItem.js +27 -27
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Snackbar/Snackbar.js +1 -1
  220. package/legacy/SpeedDial/SpeedDial.js +1 -1
  221. package/legacy/StepIcon/StepIcon.js +5 -5
  222. package/legacy/StepLabel/StepLabel.js +4 -4
  223. package/legacy/Stepper/StepperContext.js +10 -2
  224. package/legacy/Stepper/index.js +3 -1
  225. package/legacy/SvgIcon/SvgIcon.js +4 -4
  226. package/legacy/Tab/Tab.js +7 -7
  227. package/legacy/Table/Table.js +1 -1
  228. package/legacy/TablePagination/TablePagination.js +1 -1
  229. package/legacy/TableRow/TableRow.js +3 -3
  230. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  231. package/legacy/Tabs/Tabs.js +2 -2
  232. package/legacy/ToggleButton/ToggleButton.js +16 -9
  233. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  234. package/legacy/Tooltip/Tooltip.js +5 -5
  235. package/legacy/className/index.js +1 -8
  236. package/legacy/index.js +1 -1
  237. package/legacy/locale/index.js +1 -1
  238. package/legacy/styles/createPalette.js +2 -1
  239. package/legacy/styles/experimental_extendTheme.js +52 -43
  240. package/locale/index.d.ts +71 -71
  241. package/locale/index.js +1 -1
  242. package/modern/Accordion/Accordion.js +6 -6
  243. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  244. package/modern/Autocomplete/Autocomplete.js +15 -14
  245. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  246. package/modern/Badge/Badge.js +2 -2
  247. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  248. package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
  249. package/modern/Box/Box.js +25 -4
  250. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  251. package/modern/CardActionArea/CardActionArea.js +2 -2
  252. package/modern/CircularProgress/CircularProgress.js +1 -1
  253. package/modern/CssBaseline/CssBaseline.js +4 -4
  254. package/modern/DialogContent/DialogContent.js +2 -2
  255. package/modern/Divider/Divider.js +4 -4
  256. package/modern/Drawer/Drawer.js +6 -6
  257. package/modern/Fab/Fab.js +16 -16
  258. package/modern/FilledInput/FilledInput.js +1 -1
  259. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  260. package/modern/FormHelperText/FormHelperText.js +3 -3
  261. package/modern/FormLabel/FormLabel.js +5 -5
  262. package/modern/Icon/Icon.js +8 -8
  263. package/modern/IconButton/IconButton.js +5 -5
  264. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  265. package/modern/Input/Input.js +9 -4
  266. package/modern/InputAdornment/InputAdornment.js +1 -1
  267. package/modern/InputBase/InputBase.js +16 -8
  268. package/modern/Link/Link.js +3 -8
  269. package/modern/ListItem/ListItem.js +8 -8
  270. package/modern/ListItemButton/ListItemButton.js +8 -8
  271. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  272. package/modern/ListSubheader/ListSubheader.js +3 -3
  273. package/modern/MenuItem/MenuItem.js +8 -8
  274. package/modern/MobileStepper/MobileStepper.js +5 -5
  275. package/modern/Modal/Modal.js +1 -1
  276. package/modern/PaginationItem/PaginationItem.js +27 -27
  277. package/modern/Rating/Rating.js +2 -2
  278. package/modern/Snackbar/Snackbar.js +1 -1
  279. package/modern/SpeedDial/SpeedDial.js +1 -1
  280. package/modern/StepIcon/StepIcon.js +5 -5
  281. package/modern/StepLabel/StepLabel.js +4 -4
  282. package/modern/Stepper/StepperContext.js +10 -2
  283. package/modern/Stepper/index.js +3 -1
  284. package/modern/SvgIcon/SvgIcon.js +3 -3
  285. package/modern/Tab/Tab.js +7 -7
  286. package/modern/Table/Table.js +1 -1
  287. package/modern/TablePagination/TablePagination.js +1 -1
  288. package/modern/TableRow/TableRow.js +3 -3
  289. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  290. package/modern/Tabs/Tabs.js +2 -2
  291. package/modern/ToggleButton/ToggleButton.js +17 -10
  292. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  293. package/modern/Tooltip/Tooltip.js +5 -5
  294. package/modern/className/index.js +1 -8
  295. package/modern/index.js +1 -1
  296. package/modern/locale/index.js +1 -1
  297. package/modern/styles/createPalette.js +2 -1
  298. package/modern/styles/experimental_extendTheme.js +56 -45
  299. package/node/Accordion/Accordion.js +6 -6
  300. package/node/AccordionSummary/AccordionSummary.js +3 -3
  301. package/node/Autocomplete/Autocomplete.js +15 -14
  302. package/node/AvatarGroup/AvatarGroup.js +2 -2
  303. package/node/Badge/Badge.js +2 -2
  304. package/node/BottomNavigation/BottomNavigation.js +1 -1
  305. package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
  306. package/node/Box/Box.js +28 -4
  307. package/node/ButtonGroup/ButtonGroup.js +10 -10
  308. package/node/CardActionArea/CardActionArea.js +2 -2
  309. package/node/CircularProgress/CircularProgress.js +1 -1
  310. package/node/CssBaseline/CssBaseline.js +4 -4
  311. package/node/DialogContent/DialogContent.js +2 -2
  312. package/node/Divider/Divider.js +4 -4
  313. package/node/Drawer/Drawer.js +6 -6
  314. package/node/Fab/Fab.js +69 -65
  315. package/node/FilledInput/FilledInput.js +3 -1
  316. package/node/FormControlLabel/FormControlLabel.js +1 -1
  317. package/node/FormHelperText/FormHelperText.js +3 -3
  318. package/node/FormLabel/FormLabel.js +5 -5
  319. package/node/Icon/Icon.js +8 -8
  320. package/node/IconButton/IconButton.js +5 -5
  321. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  322. package/node/Input/Input.js +9 -4
  323. package/node/InputAdornment/InputAdornment.js +1 -1
  324. package/node/InputBase/InputBase.js +14 -8
  325. package/node/Link/Link.js +3 -9
  326. package/node/ListItem/ListItem.js +8 -8
  327. package/node/ListItemButton/ListItemButton.js +8 -8
  328. package/node/ListItemIcon/ListItemIcon.js +1 -1
  329. package/node/ListSubheader/ListSubheader.js +3 -3
  330. package/node/MenuItem/MenuItem.js +8 -8
  331. package/node/MobileStepper/MobileStepper.js +5 -5
  332. package/node/Modal/Modal.js +1 -1
  333. package/node/PaginationItem/PaginationItem.js +27 -27
  334. package/node/Rating/Rating.js +2 -2
  335. package/node/Snackbar/Snackbar.js +1 -1
  336. package/node/SpeedDial/SpeedDial.js +1 -1
  337. package/node/StepIcon/StepIcon.js +5 -5
  338. package/node/StepLabel/StepLabel.js +4 -4
  339. package/node/Stepper/StepperContext.js +11 -1
  340. package/node/Stepper/index.js +22 -1
  341. package/node/SvgIcon/SvgIcon.js +4 -4
  342. package/node/Tab/Tab.js +7 -7
  343. package/node/Table/Table.js +1 -1
  344. package/node/TablePagination/TablePagination.js +1 -1
  345. package/node/TableRow/TableRow.js +3 -3
  346. package/node/TableSortLabel/TableSortLabel.js +4 -4
  347. package/node/Tabs/Tabs.js +2 -2
  348. package/node/ToggleButton/ToggleButton.js +17 -10
  349. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  350. package/node/Tooltip/Tooltip.js +5 -5
  351. package/node/className/index.js +2 -2
  352. package/node/index.js +1 -1
  353. package/node/locale/index.js +1 -1
  354. package/node/styles/createPalette.js +2 -1
  355. package/node/styles/experimental_extendTheme.js +57 -47
  356. package/package.json +6 -5
  357. package/styles/ThemeProvider.d.ts +1 -1
  358. package/styles/createPalette.d.ts +9 -2
  359. package/styles/createPalette.js +2 -1
  360. package/styles/experimental_extendTheme.d.ts +13 -16
  361. package/styles/experimental_extendTheme.js +57 -46
  362. package/transitions/index.d.ts +1 -1
  363. package/transitions/transition.d.ts +13 -13
  364. package/transitions/utils.d.ts +23 -23
  365. package/umd/material-ui.development.js +582 -484
  366. package/umd/material-ui.production.min.js +21 -21
  367. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  368. package/useTouchRipple/index.d.ts +1 -1
  369. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  370. package/utils/getScrollbarSize.d.ts +2 -2
  371. package/utils/ownerDocument.d.ts +2 -2
  372. package/utils/ownerWindow.d.ts +2 -2
  373. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.2
1
+ /** @license MUI v5.7.0
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.
@@ -5717,7 +5717,13 @@
5717
5717
  }
5718
5718
  }
5719
5719
 
5720
- return path.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5720
+ return path.split('.').reduce((acc, item) => {
5721
+ if (acc && acc[item] != null) {
5722
+ return acc[item];
5723
+ }
5724
+
5725
+ return null;
5726
+ }, obj);
5721
5727
  }
5722
5728
 
5723
5729
  function getValue$1(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
@@ -5856,7 +5862,9 @@
5856
5862
  const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
5857
5863
  const spacingKeys = [...marginKeys, ...paddingKeys];
5858
5864
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
5859
- const themeSpacing = getPath(theme, themeKey) || defaultValue;
5865
+ var _getPath;
5866
+
5867
+ const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
5860
5868
 
5861
5869
  if (typeof themeSpacing === 'number') {
5862
5870
  return abs => {
@@ -6688,7 +6696,7 @@
6688
6696
 
6689
6697
  const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6690
6698
 
6691
- function createTheme$2(options = {}, ...args) {
6699
+ function createTheme$1(options = {}, ...args) {
6692
6700
  const {
6693
6701
  breakpoints: breakpointsInput = {},
6694
6702
  palette: paletteInput = {},
@@ -6811,7 +6819,7 @@
6811
6819
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
6812
6820
  }
6813
6821
 
6814
- const systemDefaultTheme$1 = createTheme$2();
6822
+ const systemDefaultTheme$1 = createTheme$1();
6815
6823
 
6816
6824
  function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6817
6825
  return useTheme$2(defaultTheme);
@@ -6843,30 +6851,6 @@
6843
6851
  theme: theme
6844
6852
  }, other));
6845
6853
  });
6846
- Box.propTypes
6847
- /* remove-proptypes */
6848
- = {
6849
- // ----------------------------- Warning --------------------------------
6850
- // | These PropTypes are generated from the TypeScript type definitions |
6851
- // | To update them edit the d.ts file and run "yarn proptypes" |
6852
- // ----------------------------------------------------------------------
6853
-
6854
- /**
6855
- * @ignore
6856
- */
6857
- children: PropTypes.node,
6858
-
6859
- /**
6860
- * The component used for the root node.
6861
- * Either a string to use a HTML element or a component.
6862
- */
6863
- component: PropTypes.elementType,
6864
-
6865
- /**
6866
- * @ignore
6867
- */
6868
- sx: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.func])
6869
- } ;
6870
6854
  return Box;
6871
6855
  }
6872
6856
 
@@ -6900,8 +6884,8 @@
6900
6884
  }
6901
6885
 
6902
6886
  const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6903
- _excluded2$d = ["theme"],
6904
- _excluded3$2 = ["theme"];
6887
+ _excluded2$c = ["theme"],
6888
+ _excluded3$1 = ["theme"];
6905
6889
 
6906
6890
  function isEmpty$1(obj) {
6907
6891
  return Object.keys(obj).length === 0;
@@ -6961,7 +6945,7 @@
6961
6945
  function shouldForwardProp(prop) {
6962
6946
  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
6963
6947
  }
6964
- const systemDefaultTheme = createTheme$2();
6948
+ const systemDefaultTheme = createTheme$1();
6965
6949
 
6966
6950
  const lowercaseFirstLetter = string => {
6967
6951
  return string.charAt(0).toLowerCase() + string.slice(1);
@@ -7019,7 +7003,7 @@
7019
7003
  let {
7020
7004
  theme: themeInput
7021
7005
  } = _ref,
7022
- other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
7006
+ other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
7023
7007
 
7024
7008
  return stylesArg(_extends({
7025
7009
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7036,7 +7020,9 @@
7036
7020
  if (styleOverrides) {
7037
7021
  const resolvedStyleOverrides = {};
7038
7022
  Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {
7039
- resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(props) : slotStyle;
7023
+ resolvedStyleOverrides[slotKey] = typeof slotStyle === 'function' ? slotStyle(_extends({}, props, {
7024
+ theme
7025
+ })) : slotStyle;
7040
7026
  });
7041
7027
  return overridesResolver(props, resolvedStyleOverrides);
7042
7028
  }
@@ -7078,7 +7064,7 @@
7078
7064
  let {
7079
7065
  theme: themeInput
7080
7066
  } = _ref2,
7081
- other = _objectWithoutPropertiesLoose(_ref2, _excluded3$2);
7067
+ other = _objectWithoutPropertiesLoose(_ref2, _excluded3$1);
7082
7068
 
7083
7069
  return styleArg(_extends({
7084
7070
  theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
@@ -7477,7 +7463,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7477
7463
  });
7478
7464
  }
7479
7465
 
7480
- ThemeProvider.propTypes = {
7466
+ ThemeProvider.propTypes
7467
+ /* remove-proptypes */
7468
+ = {
7469
+ // ----------------------------- Warning --------------------------------
7470
+ // | These PropTypes are generated from the TypeScript type definitions |
7471
+ // | To update them edit the d.ts file and run "yarn proptypes" |
7472
+ // ----------------------------------------------------------------------
7473
+
7481
7474
  /**
7482
7475
  * Your component tree.
7483
7476
  */
@@ -7486,7 +7479,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7486
7479
  /**
7487
7480
  * A theme object. You can provide a function to extend the outer theme.
7488
7481
  */
7489
- theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
7482
+ theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired
7490
7483
  } ;
7491
7484
 
7492
7485
  {
@@ -7510,16 +7503,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7510
7503
  * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
7511
7504
  * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
7512
7505
  */
7513
- const assignNestedKeys = (obj, keys, value) => {
7506
+ const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {
7514
7507
  let temp = obj;
7515
7508
  keys.forEach((k, index) => {
7516
7509
  if (index === keys.length - 1) {
7517
- if (temp && typeof temp === 'object') {
7510
+ if (Array.isArray(temp)) {
7511
+ temp[Number(k)] = value;
7512
+ } else if (temp && typeof temp === 'object') {
7518
7513
  temp[k] = value;
7519
7514
  }
7520
7515
  } else if (temp && typeof temp === 'object') {
7521
7516
  if (!temp[k]) {
7522
- temp[k] = {};
7517
+ temp[k] = arrayKeys.includes(k) ? [] : {};
7523
7518
  }
7524
7519
 
7525
7520
  temp = temp[k];
@@ -7539,14 +7534,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7539
7534
  */
7540
7535
 
7541
7536
  const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
7542
- function recurse(object, parentKeys = []) {
7537
+ function recurse(object, parentKeys = [], arrayKeys = []) {
7543
7538
  Object.entries(object).forEach(([key, value]) => {
7544
7539
  if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
7545
7540
  if (value !== undefined && value !== null) {
7546
7541
  if (typeof value === 'object' && Object.keys(value).length > 0) {
7547
- recurse(value, [...parentKeys, key]);
7542
+ recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);
7548
7543
  } else {
7549
- callback([...parentKeys, key], value, object);
7544
+ callback([...parentKeys, key], value, arrayKeys);
7550
7545
  }
7551
7546
  }
7552
7547
  }
@@ -7613,7 +7608,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7613
7608
  const css = {};
7614
7609
  const vars = {};
7615
7610
  const parsedTheme = {};
7616
- walkObjectDeep(theme, (keys, value) => {
7611
+ walkObjectDeep(theme, (keys, value, arrayKeys) => {
7617
7612
  if (typeof value === 'string' || typeof value === 'number') {
7618
7613
  if (typeof value === 'string' && value.match(/var\(\s*--/)) {
7619
7614
  // for CSS variable, apply prefix or remove basePrefix from the variable
@@ -7631,11 +7626,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7631
7626
  Object.assign(css, {
7632
7627
  [cssVar]: getCssValue(keys, value)
7633
7628
  });
7634
- assignNestedKeys(vars, keys, `var(${cssVar})`);
7629
+ assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
7635
7630
  }
7636
7631
  }
7637
7632
 
7638
- assignNestedKeys(parsedTheme, keys, value);
7633
+ assignNestedKeys(parsedTheme, keys, value, arrayKeys);
7639
7634
  }, keys => keys[0] === 'vars' // skip 'vars/*' paths
7640
7635
  );
7641
7636
  return {
@@ -7650,12 +7645,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7650
7645
  const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7651
7646
  function getInitColorSchemeScript$1(options) {
7652
7647
  const {
7653
- enableSystem,
7648
+ enableSystem = false,
7654
7649
  defaultLightColorScheme = 'light',
7655
7650
  defaultDarkColorScheme = 'dark',
7656
7651
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7657
7652
  colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7658
- attribute = DEFAULT_ATTRIBUTE
7653
+ attribute = DEFAULT_ATTRIBUTE,
7654
+ colorSchemeNode = 'document.documentElement'
7659
7655
  } = options || {};
7660
7656
  return /*#__PURE__*/jsxRuntime_1("script", {
7661
7657
  // eslint-disable-next-line react/no-danger
@@ -7679,7 +7675,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7679
7675
  colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7680
7676
  }
7681
7677
  if (colorScheme) {
7682
- document.documentElement.setAttribute('${attribute}', colorScheme);
7678
+ ${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
7683
7679
  }
7684
7680
  } catch (e) {} })();`
7685
7681
  }
@@ -7748,7 +7744,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7748
7744
  defaultDarkColorScheme,
7749
7745
  supportedColorSchemes = [],
7750
7746
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7751
- colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY
7747
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7748
+ storageWindow = typeof window === 'undefined' ? undefined : window
7752
7749
  } = options;
7753
7750
  const joinedColorSchemes = supportedColorSchemes.join(',');
7754
7751
  const [state, setState] = React__namespace.useState(() => {
@@ -7765,6 +7762,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7765
7762
  setState(currentState => {
7766
7763
  const newMode = !mode ? defaultMode : mode;
7767
7764
 
7765
+ if (mode === currentState.mode) {
7766
+ return currentState;
7767
+ }
7768
+
7768
7769
  if (typeof localStorage !== 'undefined') {
7769
7770
  localStorage.setItem(modeStorageKey, newMode);
7770
7771
  }
@@ -7777,7 +7778,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7777
7778
  }, [modeStorageKey, defaultMode]);
7778
7779
  const setColorScheme = React__namespace.useCallback(value => {
7779
7780
  if (!value || typeof value === 'string') {
7780
- if (value && !supportedColorSchemes.includes(value)) {
7781
+ if (value && !joinedColorSchemes.includes(value)) {
7781
7782
  console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7782
7783
  } else {
7783
7784
  setState(currentState => {
@@ -7804,7 +7805,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7804
7805
  return newState;
7805
7806
  });
7806
7807
  }
7807
- } else if (value.light && !supportedColorSchemes.includes(value.light) || value.dark && !supportedColorSchemes.includes(value.dark)) {
7808
+ } else if (value.light && !joinedColorSchemes.includes(value.light) || value.dark && !joinedColorSchemes.includes(value.dark)) {
7808
7809
  console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7809
7810
  } else {
7810
7811
  setState(currentState => {
@@ -7829,7 +7830,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7829
7830
  localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7830
7831
  }
7831
7832
  }
7832
- }, [colorSchemeStorageKey, supportedColorSchemes, defaultLightColorScheme, defaultDarkColorScheme]);
7833
+ }, [joinedColorSchemes, colorSchemeStorageKey, defaultLightColorScheme, defaultDarkColorScheme]);
7833
7834
  const handleMediaQuery = React__namespace.useCallback(e => {
7834
7835
  if (state.mode === 'system') {
7835
7836
  setState(currentState => _extends({}, currentState, {
@@ -7891,9 +7892,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7891
7892
  }
7892
7893
  };
7893
7894
 
7894
- window.addEventListener('storage', handleStorage);
7895
- return () => window.removeEventListener('storage', handleStorage);
7896
- }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode]);
7895
+ if (storageWindow) {
7896
+ // For syncing color-scheme changes between iframes
7897
+ storageWindow.addEventListener('storage', handleStorage);
7898
+ return () => storageWindow.removeEventListener('storage', handleStorage);
7899
+ }
7900
+
7901
+ return undefined;
7902
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode, storageWindow]);
7897
7903
  return _extends({}, state, {
7898
7904
  colorScheme,
7899
7905
  setMode,
@@ -7928,15 +7934,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7928
7934
  return getCssVar;
7929
7935
  }
7930
7936
 
7931
- const _excluded$2f = ["colorSchemes"],
7932
- _excluded2$c = ["colorSchemes"],
7933
- _excluded3$1 = ["components"];
7937
+ const _excluded$2f = ["colorSchemes", "components"];
7934
7938
  const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
7935
7939
  function createCssVarsProvider(options) {
7936
- var _baseTheme$breakpoint;
7937
-
7938
7940
  const {
7939
- theme: baseTheme = {},
7941
+ theme: defaultTheme = {},
7940
7942
  defaultMode: desisgnSystemMode = 'light',
7941
7943
  defaultColorScheme: designSystemColorScheme,
7942
7944
  disableTransitionOnChange: designSystemTransitionOnChange = false,
@@ -7945,10 +7947,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7945
7947
  shouldSkipGeneratingVar,
7946
7948
  resolveTheme
7947
7949
  } = options;
7948
- const systemSpacing = createSpacing(baseTheme.spacing);
7949
- const systemBreakpoints = createBreakpoints((_baseTheme$breakpoint = baseTheme.breakpoints) != null ? _baseTheme$breakpoint : {});
7950
7950
 
7951
- if (!baseTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !baseTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
7951
+ if (!defaultTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !defaultTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
7952
7952
  console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
7953
7953
  }
7954
7954
 
@@ -7966,34 +7966,28 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7966
7966
 
7967
7967
  function CssVarsProvider({
7968
7968
  children,
7969
- theme: themeProp = {},
7969
+ theme: themeProp = defaultTheme,
7970
7970
  prefix = designSystemPrefix,
7971
7971
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7972
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7972
7973
  attribute = DEFAULT_ATTRIBUTE,
7973
7974
  defaultMode = desisgnSystemMode,
7974
7975
  defaultColorScheme = designSystemColorScheme,
7975
7976
  disableTransitionOnChange = designSystemTransitionOnChange,
7976
- enableColorScheme = designSystemEnableColorScheme
7977
+ enableColorScheme = designSystemEnableColorScheme,
7978
+ storageWindow = typeof window === 'undefined' ? undefined : window,
7979
+ documentNode = typeof document === 'undefined' ? undefined : document,
7980
+ colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
7981
+ colorSchemeSelector = ':root'
7977
7982
  }) {
7978
- const {
7979
- colorSchemes: baseColorSchemes = {}
7980
- } = baseTheme,
7981
- restBaseTheme = _objectWithoutPropertiesLoose(baseTheme, _excluded$2f);
7983
+ const hasMounted = React__namespace.useRef(false);
7982
7984
 
7983
7985
  const {
7984
- colorSchemes: colorSchemesProp = {}
7985
- } = themeProp,
7986
- restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded2$c);
7987
-
7988
- const hasMounted = React__namespace.useRef(false); // eslint-disable-next-line prefer-const
7989
-
7990
- let _deepmerge = deepmerge(restBaseTheme, restThemeProp),
7991
- {
7986
+ colorSchemes = {},
7992
7987
  components = {}
7993
- } = _deepmerge,
7994
- mergedTheme = _objectWithoutPropertiesLoose(_deepmerge, _excluded3$1);
7988
+ } = themeProp,
7989
+ restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2f);
7995
7990
 
7996
- const colorSchemes = deepmerge(baseColorSchemes, colorSchemesProp);
7997
7991
  const allColorSchemes = Object.keys(colorSchemes);
7998
7992
  const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
7999
7993
  const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
@@ -8010,7 +8004,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8010
8004
  defaultLightColorScheme,
8011
8005
  defaultDarkColorScheme,
8012
8006
  modeStorageKey,
8013
- defaultMode
8007
+ colorSchemeStorageKey,
8008
+ defaultMode,
8009
+ storageWindow
8014
8010
  });
8015
8011
 
8016
8012
  const resolvedColorScheme = (() => {
@@ -8027,22 +8023,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8027
8023
  return colorScheme;
8028
8024
  })();
8029
8025
 
8026
+ let theme = restThemeProp;
8030
8027
  const {
8031
8028
  css: rootCss,
8032
8029
  vars: rootVars,
8033
8030
  parsedTheme
8034
- } = cssVarsParser(mergedTheme, {
8031
+ } = cssVarsParser(theme, {
8035
8032
  prefix,
8036
8033
  basePrefix: designSystemPrefix,
8037
8034
  shouldSkipGeneratingVar
8038
8035
  });
8039
- mergedTheme = _extends({}, parsedTheme, {
8036
+ theme = _extends({}, parsedTheme, {
8040
8037
  components,
8041
8038
  colorSchemes,
8042
8039
  prefix,
8043
8040
  vars: rootVars,
8044
- spacing: themeProp.spacing ? createSpacing(themeProp.spacing) : systemSpacing,
8045
- breakpoints: themeProp.breakpoints ? createBreakpoints(themeProp.breakpoints) : systemBreakpoints,
8046
8041
  getCssVar: createGetCssVar(prefix)
8047
8042
  });
8048
8043
  const styleSheet = {};
@@ -8056,10 +8051,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8056
8051
  basePrefix: designSystemPrefix,
8057
8052
  shouldSkipGeneratingVar
8058
8053
  });
8059
- mergedTheme.vars = deepmerge(mergedTheme.vars, vars);
8054
+ theme.vars = deepmerge(theme.vars, vars);
8060
8055
 
8061
8056
  if (key === resolvedColorScheme) {
8062
- mergedTheme = _extends({}, mergedTheme, parsedScheme);
8057
+ theme = _extends({}, theme, parsedScheme);
8058
+
8059
+ if (theme.palette) {
8060
+ // assign runtime mode & colorScheme
8061
+ theme.palette.mode = mode;
8062
+ theme.palette.colorScheme = resolvedColorScheme;
8063
+ }
8063
8064
  }
8064
8065
 
8065
8066
  const resolvedDefaultColorScheme = (() => {
@@ -8075,54 +8076,54 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8075
8076
  })();
8076
8077
 
8077
8078
  if (key === resolvedDefaultColorScheme) {
8078
- styleSheet[':root'] = css;
8079
+ styleSheet[colorSchemeSelector] = css;
8079
8080
  } else {
8080
- styleSheet[`[${attribute}="${key}"]`] = css;
8081
+ styleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8081
8082
  }
8082
8083
  });
8083
8084
  React__namespace.useEffect(() => {
8084
- if (colorScheme) {
8085
+ if (colorScheme && colorSchemeNode) {
8085
8086
  // attaches attribute to <html> because the css variables are attached to :root (html)
8086
- document.documentElement.setAttribute(attribute, colorScheme);
8087
+ colorSchemeNode.setAttribute(attribute, colorScheme);
8087
8088
  }
8088
- }, [colorScheme, attribute]);
8089
+ }, [colorScheme, attribute, colorSchemeNode]);
8089
8090
  useEnhancedEffect$1(() => {
8090
- if (!mode || !enableColorScheme) {
8091
+ if (!mode || !enableColorScheme || !colorSchemeNode) {
8091
8092
  return undefined;
8092
8093
  }
8093
8094
 
8094
- const priorColorScheme = document.documentElement.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8095
+ const priorColorScheme = colorSchemeNode.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8095
8096
 
8096
8097
  if (mode === 'system') {
8097
- document.documentElement.style.setProperty('color-scheme', systemMode);
8098
+ colorSchemeNode.style.setProperty('color-scheme', systemMode);
8098
8099
  } else {
8099
- document.documentElement.style.setProperty('color-scheme', mode);
8100
+ colorSchemeNode.style.setProperty('color-scheme', mode);
8100
8101
  }
8101
8102
 
8102
8103
  return () => {
8103
- document.documentElement.style.setProperty('color-scheme', priorColorScheme);
8104
+ colorSchemeNode.style.setProperty('color-scheme', priorColorScheme);
8104
8105
  };
8105
- }, [mode, systemMode, enableColorScheme]);
8106
+ }, [mode, systemMode, enableColorScheme, colorSchemeNode]);
8106
8107
  React__namespace.useEffect(() => {
8107
8108
  let timer;
8108
8109
 
8109
- if (disableTransitionOnChange && hasMounted.current) {
8110
+ if (disableTransitionOnChange && hasMounted.current && documentNode) {
8110
8111
  // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
8111
- const css = document.createElement('style');
8112
- css.appendChild(document.createTextNode(DISABLE_CSS_TRANSITION));
8113
- document.head.appendChild(css); // Force browser repaint
8112
+ const css = documentNode.createElement('style');
8113
+ css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));
8114
+ documentNode.head.appendChild(css); // Force browser repaint
8114
8115
 
8115
- (() => window.getComputedStyle(document.body))();
8116
+ (() => window.getComputedStyle(documentNode.body))();
8116
8117
 
8117
8118
  timer = setTimeout(() => {
8118
- document.head.removeChild(css);
8119
+ documentNode.head.removeChild(css);
8119
8120
  }, 1);
8120
8121
  }
8121
8122
 
8122
8123
  return () => {
8123
8124
  clearTimeout(timer);
8124
8125
  };
8125
- }, [colorScheme, disableTransitionOnChange]);
8126
+ }, [colorScheme, disableTransitionOnChange, documentNode]);
8126
8127
  React__namespace.useEffect(() => {
8127
8128
  hasMounted.current = true;
8128
8129
  return () => {
@@ -8141,12 +8142,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8141
8142
  },
8142
8143
  children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8143
8144
  styles: {
8144
- ':root': rootCss
8145
+ [colorSchemeSelector]: rootCss
8145
8146
  }
8146
8147
  }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8147
8148
  styles: styleSheet
8148
8149
  }), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
8149
- theme: resolveTheme ? resolveTheme(mergedTheme) : mergedTheme,
8150
+ theme: resolveTheme ? resolveTheme(theme) : theme,
8150
8151
  children: children
8151
8152
  })]
8152
8153
  });
@@ -8163,6 +8164,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8163
8164
  */
8164
8165
  children: PropTypes.node,
8165
8166
 
8167
+ /**
8168
+ * The node used to attach the color-scheme attribute
8169
+ */
8170
+ colorSchemeNode: PropTypes.any,
8171
+
8172
+ /**
8173
+ * The CSS selector for attaching the generated custom properties
8174
+ */
8175
+ colorSchemeSelector: PropTypes.string,
8176
+
8177
+ /**
8178
+ * localStorage key used to store `colorScheme`
8179
+ */
8180
+ colorSchemeStorageKey: PropTypes.string,
8181
+
8166
8182
  /**
8167
8183
  * The initial color scheme used.
8168
8184
  */
@@ -8178,6 +8194,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8178
8194
  */
8179
8195
  disableTransitionOnChange: PropTypes.bool,
8180
8196
 
8197
+ /**
8198
+ * The document to attach the attribute to
8199
+ */
8200
+ documentNode: PropTypes.any,
8201
+
8181
8202
  /**
8182
8203
  * Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
8183
8204
  */
@@ -8193,6 +8214,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8193
8214
  */
8194
8215
  prefix: PropTypes.string,
8195
8216
 
8217
+ /**
8218
+ * The window that attaches the 'storage' event listener
8219
+ * @default window
8220
+ */
8221
+ storageWindow: PropTypes.any,
8222
+
8196
8223
  /**
8197
8224
  * The calculated theme object that will be passed through context.
8198
8225
  */
@@ -8826,7 +8853,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8826
8853
  };
8827
8854
 
8828
8855
  const handleValue = (event, newValue, reason, details) => {
8829
- if (Array.isArray(value)) {
8856
+ if (multiple) {
8830
8857
  if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {
8831
8858
  return;
8832
8859
  }
@@ -8910,7 +8937,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8910
8937
  return;
8911
8938
  }
8912
8939
 
8913
- handleClose(event, 'toggleInput');
8940
+ if (inputValue === '') {
8941
+ handleClose(event, 'toggleInput');
8942
+ }
8943
+
8914
8944
  let nextTag = focusedTag;
8915
8945
 
8916
8946
  if (focusedTag === -1) {
@@ -9365,36 +9395,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9365
9395
  return output;
9366
9396
  }
9367
9397
 
9368
- function useBadge(props) {
9369
- const {
9370
- badgeContent: badgeContentProp,
9371
- invisible: invisibleProp = false,
9372
- max: maxProp = 99,
9373
- showZero = false
9374
- } = props;
9375
- const prevProps = usePreviousProps$1({
9376
- badgeContent: badgeContentProp,
9377
- max: maxProp
9378
- });
9379
- let invisible = invisibleProp;
9380
-
9381
- if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
9382
- invisible = true;
9383
- }
9384
-
9385
- const {
9386
- badgeContent,
9387
- max = maxProp
9388
- } = invisible ? prevProps : props;
9389
- const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9390
- return {
9391
- badgeContent,
9392
- invisible,
9393
- max,
9394
- displayValue
9395
- };
9396
- }
9397
-
9398
9398
  const defaultGenerator = componentName => componentName;
9399
9399
 
9400
9400
  const createClassNameGenerator = () => {
@@ -9443,6 +9443,36 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9443
9443
  return result;
9444
9444
  }
9445
9445
 
9446
+ function useBadge(props) {
9447
+ const {
9448
+ badgeContent: badgeContentProp,
9449
+ invisible: invisibleProp = false,
9450
+ max: maxProp = 99,
9451
+ showZero = false
9452
+ } = props;
9453
+ const prevProps = usePreviousProps$1({
9454
+ badgeContent: badgeContentProp,
9455
+ max: maxProp
9456
+ });
9457
+ let invisible = invisibleProp;
9458
+
9459
+ if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
9460
+ invisible = true;
9461
+ }
9462
+
9463
+ const {
9464
+ badgeContent,
9465
+ max = maxProp
9466
+ } = invisible ? prevProps : props;
9467
+ const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
9468
+ return {
9469
+ badgeContent,
9470
+ invisible,
9471
+ max,
9472
+ displayValue
9473
+ };
9474
+ }
9475
+
9446
9476
  function getBadgeUnstyledUtilityClass(slot) {
9447
9477
  return generateUtilityClass('BaseBadge', slot);
9448
9478
  }
@@ -9738,7 +9768,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9738
9768
  * The mouse event to listen to. You can disable the listener by providing `false`.
9739
9769
  * @default 'onClick'
9740
9770
  */
9741
- mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
9771
+ mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', 'onPointerDown', 'onPointerUp', false]),
9742
9772
 
9743
9773
  /**
9744
9774
  * Callback fired when a "click away" event is detected.
@@ -14916,7 +14946,8 @@ const theme2 = createTheme({ palette: {
14916
14946
 
14917
14947
  const paletteOutput = deepmerge(_extends({
14918
14948
  // A collection of common colors.
14919
- common: common$1,
14949
+ common: _extends({}, common$1),
14950
+ // prevent mutable object.
14920
14951
  // The palette mode, can be light or dark.
14921
14952
  mode,
14922
14953
  // The colors used to represent primary interface elements for a user.
@@ -15183,7 +15214,7 @@ const theme2 = createTheme({ palette: {
15183
15214
 
15184
15215
  const _excluded$25 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
15185
15216
 
15186
- function createTheme$1(options = {}, ...args) {
15217
+ function createTheme(options = {}, ...args) {
15187
15218
  const {
15188
15219
  mixins: mixinsInput = {},
15189
15220
  palette: paletteInput = {},
@@ -15193,7 +15224,7 @@ const theme2 = createTheme({ palette: {
15193
15224
  other = _objectWithoutPropertiesLoose(options, _excluded$25);
15194
15225
 
15195
15226
  const palette = createPalette(paletteInput);
15196
- const systemTheme = createTheme$2(options);
15227
+ const systemTheme = createTheme$1(options);
15197
15228
  let muiTheme = deepmerge(systemTheme, {
15198
15229
  mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
15199
15230
  palette,
@@ -15252,11 +15283,11 @@ const theme2 = createTheme({ palette: {
15252
15283
  }
15253
15284
  }
15254
15285
 
15255
- return createTheme$1(...args);
15286
+ return createTheme(...args);
15256
15287
  }
15257
15288
 
15258
15289
  function createMuiStrictModeTheme(options, ...args) {
15259
- return createTheme$1(deepmerge({
15290
+ return createTheme(deepmerge({
15260
15291
  unstable_strictMode: true
15261
15292
  }, options), ...args);
15262
15293
  }
@@ -15463,7 +15494,7 @@ Use unitless line heights instead.` );
15463
15494
  return theme;
15464
15495
  }
15465
15496
 
15466
- const defaultTheme$2 = createTheme$1();
15497
+ const defaultTheme$2 = createTheme();
15467
15498
  var defaultTheme$3 = defaultTheme$2;
15468
15499
 
15469
15500
  function useTheme() {
@@ -15514,52 +15545,73 @@ You have to import it from @mui/styles.
15514
15545
  See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15515
15546
  }
15516
15547
 
15517
- const _excluded$24 = ["colorSchemes", "opacity"],
15548
+ const _excluded$24 = ["colorSchemes"],
15518
15549
  _excluded2$9 = ["palette"];
15519
- const defaultOpacity = {
15520
- active: 0.54,
15521
- hover: 0.04,
15522
- selected: 0.08,
15523
- disabled: 0.26,
15524
- focus: 0.12
15525
- };
15526
-
15527
- function createTheme(options = {}, ...args) {
15528
- var _colorSchemesInput$li, _colorSchemesInput$da;
15550
+ function extendTheme(options = {}, ...args) {
15551
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
15529
15552
 
15530
15553
  const {
15531
- colorSchemes: colorSchemesInput = {},
15532
- opacity: opacityInput = {}
15554
+ colorSchemes: colorSchemesInput = {}
15533
15555
  } = options,
15534
- input = _objectWithoutPropertiesLoose(options, _excluded$24); // eslint-disable-next-line prefer-const
15535
-
15556
+ input = _objectWithoutPropertiesLoose(options, _excluded$24);
15536
15557
 
15537
- let _createThemeWithoutVa = createTheme$1(_extends({}, input, colorSchemesInput.light && {
15558
+ const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
15538
15559
  palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
15539
15560
  })),
15540
- {
15561
+ {
15541
15562
  palette: lightPalette
15542
15563
  } = _createThemeWithoutVa,
15543
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15564
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15544
15565
 
15545
15566
  const {
15546
15567
  palette: darkPalette
15547
- } = createTheme$1({
15568
+ } = createTheme({
15548
15569
  palette: _extends({
15549
15570
  mode: 'dark'
15550
15571
  }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
15551
15572
  });
15552
- colorSchemesInput.light = {
15553
- palette: lightPalette
15554
- };
15555
- colorSchemesInput.dark = {
15556
- palette: darkPalette
15557
- };
15558
- const colorSchemes = {};
15559
- Object.keys(colorSchemesInput).forEach(key => {
15560
- const palette = createPalette(colorSchemesInput[key].palette);
15573
+
15574
+ let theme = _extends({}, muiTheme, {
15575
+ colorSchemes: _extends({}, colorSchemesInput, {
15576
+ light: _extends({}, colorSchemesInput.light, {
15577
+ palette: lightPalette,
15578
+ opacity: _extends({
15579
+ placeholder: 0.42,
15580
+ inputTouchBottomLine: 0.42
15581
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
15582
+ }),
15583
+ dark: _extends({}, colorSchemesInput.dark, {
15584
+ palette: darkPalette,
15585
+ opacity: _extends({
15586
+ placeholder: 0.5,
15587
+ inputTouchBottomLine: 0.7
15588
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
15589
+ })
15590
+ })
15591
+ });
15592
+
15593
+ Object.keys(theme.colorSchemes).forEach(key => {
15594
+ const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
15595
+
15596
+ if (key === 'dark') {
15597
+ palette.common.background = palette.common.background || '#000';
15598
+ palette.common.onBackground = palette.common.onBackground || '#fff';
15599
+ } else {
15600
+ palette.common.background = palette.common.background || '#fff';
15601
+ palette.common.onBackground = palette.common.onBackground || '#000';
15602
+ }
15603
+
15604
+ palette.common.backgroundChannel = colorChannel(palette.common.background);
15605
+ palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
15606
+ palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
15607
+ // TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
15608
+
15609
+ if (!palette.grey.dark) {
15610
+ palette.grey.dark = palette.grey[700];
15611
+ }
15612
+
15561
15613
  Object.keys(palette).forEach(color => {
15562
- const colors = palette[color];
15614
+ const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
15563
15615
 
15564
15616
  if (colors.main) {
15565
15617
  palette[color].mainChannel = colorChannel(colors.main);
@@ -15573,6 +15625,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15573
15625
  palette[color].darkChannel = colorChannel(colors.dark);
15574
15626
  }
15575
15627
 
15628
+ if (colors.contrastText) {
15629
+ palette[color].contrastTextChannel = colorChannel(colors.contrastText);
15630
+ } // Text colors: text.primary, text.secondary
15631
+
15632
+
15576
15633
  if (colors.primary) {
15577
15634
  palette[color].primaryChannel = colorChannel(colors.primary);
15578
15635
  }
@@ -15580,25 +15637,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15580
15637
  if (colors.secondary) {
15581
15638
  palette[color].secondaryChannel = colorChannel(colors.secondary);
15582
15639
  }
15583
-
15584
- if (colors.disabled) {
15585
- palette[color].disabledChannel = colorChannel(colors.disabled);
15586
- }
15587
15640
  });
15588
- colorSchemes[key] = {
15589
- palette
15590
- };
15591
15641
  });
15592
-
15593
- const opacity = _extends({}, defaultOpacity, opacityInput);
15594
-
15595
- muiTheme.colorSchemes = colorSchemes;
15596
- muiTheme.opacity = opacity;
15597
- muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
15598
- return muiTheme;
15642
+ theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
15643
+ return theme;
15599
15644
  }
15600
15645
 
15601
- const defaultTheme$1 = createTheme();
15646
+ const defaultTheme$1 = extendTheme();
15602
15647
  const {
15603
15648
  CssVarsProvider: Experimental_CssVarsProvider,
15604
15649
  useColorScheme,
@@ -15653,7 +15698,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15653
15698
  theme,
15654
15699
  ownerState
15655
15700
  }) => {
15656
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
15701
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
15657
15702
 
15658
15703
  return {
15659
15704
  userSelect: 'none',
@@ -15672,9 +15717,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15672
15717
  large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
15673
15718
  }[ownerState.fontSize],
15674
15719
  // TODO v5 deprecate, v6 remove for sx
15675
- color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
15676
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
15677
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
15720
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
15721
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
15722
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
15678
15723
  inherit: undefined
15679
15724
  }[ownerState.color]
15680
15725
  };
@@ -17484,7 +17529,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17484
17529
  height: 1,
17485
17530
  content: '""',
17486
17531
  opacity: 1,
17487
- backgroundColor: theme.palette.divider,
17532
+ backgroundColor: (theme.vars || theme).palette.divider,
17488
17533
  transition: theme.transitions.create(['opacity', 'background-color'], transition)
17489
17534
  },
17490
17535
  '&:first-of-type': {
@@ -17509,7 +17554,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17509
17554
  }
17510
17555
  },
17511
17556
  [`&.${accordionClasses$1.disabled}`]: {
17512
- backgroundColor: theme.palette.action.disabledBackground
17557
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
17513
17558
  }
17514
17559
  };
17515
17560
  }, ({
@@ -17518,12 +17563,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17518
17563
  }) => _extends({}, !ownerState.square && {
17519
17564
  borderRadius: 0,
17520
17565
  '&:first-of-type': {
17521
- borderTopLeftRadius: theme.shape.borderRadius,
17522
- borderTopRightRadius: theme.shape.borderRadius
17566
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
17567
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
17523
17568
  },
17524
17569
  '&:last-of-type': {
17525
- borderBottomLeftRadius: theme.shape.borderRadius,
17526
- borderBottomRightRadius: theme.shape.borderRadius,
17570
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
17571
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
17527
17572
  // Fix a rendering issue on Edge
17528
17573
  '@supports (-ms-ime-align: auto)': {
17529
17574
  borderBottomLeftRadius: 0,
@@ -18882,10 +18927,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18882
18927
  padding: theme.spacing(0, 2),
18883
18928
  transition: theme.transitions.create(['min-height', 'background-color'], transition),
18884
18929
  [`&.${accordionSummaryClasses$1.focusVisible}`]: {
18885
- backgroundColor: theme.palette.action.focus
18930
+ backgroundColor: (theme.vars || theme).palette.action.focus
18886
18931
  },
18887
18932
  [`&.${accordionSummaryClasses$1.disabled}`]: {
18888
- opacity: theme.palette.action.disabledOpacity
18933
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
18889
18934
  },
18890
18935
  [`&:hover:not(.${accordionSummaryClasses$1.disabled})`]: {
18891
18936
  cursor: 'pointer'
@@ -18923,7 +18968,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18923
18968
  theme
18924
18969
  }) => ({
18925
18970
  display: 'flex',
18926
- color: theme.palette.action.active,
18971
+ color: (theme.vars || theme).palette.action.active,
18927
18972
  transform: 'rotate(0deg)',
18928
18973
  transition: theme.transitions.create('transform', {
18929
18974
  duration: theme.transitions.duration.shortest
@@ -19092,13 +19137,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19092
19137
  borderRadius: '50%',
19093
19138
  overflow: 'visible',
19094
19139
  // Explicitly set the default value to solve a bug on IE11.
19095
- color: theme.palette.action.active,
19140
+ color: (theme.vars || theme).palette.action.active,
19096
19141
  transition: theme.transitions.create('background-color', {
19097
19142
  duration: theme.transitions.duration.shortest
19098
19143
  })
19099
19144
  }, !ownerState.disableRipple && {
19100
19145
  '&:hover': {
19101
- backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
19146
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
19102
19147
  // Reset on touch devices, it doesn't add specificity
19103
19148
  '@media (hover: none)': {
19104
19149
  backgroundColor: 'transparent'
@@ -19114,10 +19159,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19114
19159
  }) => _extends({}, ownerState.color === 'inherit' && {
19115
19160
  color: 'inherit'
19116
19161
  }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
19117
- color: theme.palette[ownerState.color].main
19162
+ color: (theme.vars || theme).palette[ownerState.color].main
19118
19163
  }, !ownerState.disableRipple && {
19119
19164
  '&:hover': {
19120
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
19165
+ 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),
19121
19166
  // Reset on touch devices, it doesn't add specificity
19122
19167
  '@media (hover: none)': {
19123
19168
  backgroundColor: 'transparent'
@@ -19132,7 +19177,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19132
19177
  }, {
19133
19178
  [`&.${iconButtonClasses$1.disabled}`]: {
19134
19179
  backgroundColor: 'transparent',
19135
- color: theme.palette.action.disabled
19180
+ color: (theme.vars || theme).palette.action.disabled
19136
19181
  }
19137
19182
  }));
19138
19183
  /**
@@ -20187,12 +20232,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20187
20232
  boxSizing: 'border-box',
20188
20233
  lineHeight: '48px',
20189
20234
  listStyle: 'none',
20190
- color: theme.palette.text.secondary,
20235
+ color: (theme.vars || theme).palette.text.secondary,
20191
20236
  fontFamily: theme.typography.fontFamily,
20192
20237
  fontWeight: theme.typography.fontWeightMedium,
20193
20238
  fontSize: theme.typography.pxToRem(14)
20194
20239
  }, ownerState.color === 'primary' && {
20195
- color: theme.palette.primary.main
20240
+ color: (theme.vars || theme).palette.primary.main
20196
20241
  }, ownerState.color === 'inherit' && {
20197
20242
  color: 'inherit'
20198
20243
  }, !ownerState.disableGutters && {
@@ -20204,7 +20249,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20204
20249
  position: 'sticky',
20205
20250
  top: 0,
20206
20251
  zIndex: 1,
20207
- backgroundColor: theme.palette.background.paper
20252
+ backgroundColor: (theme.vars || theme).palette.background.paper
20208
20253
  }));
20209
20254
  const ListSubheader = /*#__PURE__*/React__namespace.forwardRef(function ListSubheader(inProps, ref) {
20210
20255
  const props = useThemeProps({
@@ -20959,7 +21004,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20959
21004
  theme,
20960
21005
  ownerState
20961
21006
  }) => _extends({}, theme.typography.body1, {
20962
- color: theme.palette.text.primary,
21007
+ color: (theme.vars || theme).palette.text.primary,
20963
21008
  lineHeight: '1.4375em',
20964
21009
  // 23px
20965
21010
  boxSizing: 'border-box',
@@ -20969,7 +21014,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20969
21014
  display: 'inline-flex',
20970
21015
  alignItems: 'center',
20971
21016
  [`&.${inputBaseClasses$1.disabled}`]: {
20972
- color: theme.palette.text.disabled,
21017
+ color: (theme.vars || theme).palette.text.disabled,
20973
21018
  cursor: 'default'
20974
21019
  }
20975
21020
  }, ownerState.multiline && _extends({
@@ -20988,17 +21033,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20988
21033
  ownerState
20989
21034
  }) => {
20990
21035
  const light = theme.palette.mode === 'light';
20991
- const placeholder = {
20992
- color: 'currentColor',
20993
- opacity: light ? 0.42 : 0.5,
21036
+
21037
+ const placeholder = _extends({
21038
+ color: 'currentColor'
21039
+ }, theme.vars ? {
21040
+ opacity: theme.vars.opacity.placeholder
21041
+ } : {
21042
+ opacity: light ? 0.42 : 0.5
21043
+ }, {
20994
21044
  transition: theme.transitions.create('opacity', {
20995
21045
  duration: theme.transitions.duration.shorter
20996
21046
  })
20997
- };
21047
+ });
21048
+
20998
21049
  const placeholderHidden = {
20999
21050
  opacity: '0 !important'
21000
21051
  };
21001
- const placeholderVisible = {
21052
+ const placeholderVisible = theme.vars ? {
21053
+ opacity: theme.vars.opacity.placeholder
21054
+ } : {
21002
21055
  opacity: light ? 0.42 : 0.5
21003
21056
  };
21004
21057
  return _extends({
@@ -21059,7 +21112,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21059
21112
  [`&.${inputBaseClasses$1.disabled}`]: {
21060
21113
  opacity: 1,
21061
21114
  // Reset iOS opacity
21062
- WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
21115
+ WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
21063
21116
 
21064
21117
  },
21065
21118
  '&:-webkit-autofill': {
@@ -21878,7 +21931,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21878
21931
  theme,
21879
21932
  ownerState
21880
21933
  }) => _extends({
21881
- zIndex: theme.zIndex.modal
21934
+ zIndex: (theme.vars || theme).zIndex.modal
21882
21935
  }, ownerState.disablePortal && {
21883
21936
  position: 'absolute'
21884
21937
  }));
@@ -21898,7 +21951,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21898
21951
  })(({
21899
21952
  theme
21900
21953
  }) => ({
21901
- color: theme.palette.text.secondary,
21954
+ color: (theme.vars || theme).palette.text.secondary,
21902
21955
  padding: '14px 16px'
21903
21956
  }));
21904
21957
  const AutocompleteNoOptions = styled$1('div', {
@@ -21908,7 +21961,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21908
21961
  })(({
21909
21962
  theme
21910
21963
  }) => ({
21911
- color: theme.palette.text.secondary,
21964
+ color: (theme.vars || theme).palette.text.secondary,
21912
21965
  padding: '14px 16px'
21913
21966
  }));
21914
21967
  const AutocompleteListbox = styled$1('div', {
@@ -21941,30 +21994,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21941
21994
  minHeight: 'auto'
21942
21995
  },
21943
21996
  [`&.${autocompleteClasses$1.focused}`]: {
21944
- backgroundColor: theme.palette.action.hover,
21997
+ backgroundColor: (theme.vars || theme).palette.action.hover,
21945
21998
  // Reset on touch devices, it doesn't add specificity
21946
21999
  '@media (hover: none)': {
21947
22000
  backgroundColor: 'transparent'
21948
22001
  }
21949
22002
  },
21950
22003
  '&[aria-disabled="true"]': {
21951
- opacity: theme.palette.action.disabledOpacity,
22004
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
21952
22005
  pointerEvents: 'none'
21953
22006
  },
21954
22007
  [`&.${autocompleteClasses$1.focusVisible}`]: {
21955
- backgroundColor: theme.palette.action.focus
22008
+ backgroundColor: (theme.vars || theme).palette.action.focus
21956
22009
  },
21957
22010
  '&[aria-selected="true"]': {
21958
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
22011
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
21959
22012
  [`&.${autocompleteClasses$1.focused}`]: {
21960
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
22013
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
21961
22014
  // Reset on touch devices, it doesn't add specificity
21962
22015
  '@media (hover: none)': {
21963
- backgroundColor: theme.palette.action.selected
22016
+ backgroundColor: (theme.vars || theme).palette.action.selected
21964
22017
  }
21965
22018
  },
21966
22019
  [`&.${autocompleteClasses$1.focusVisible}`]: {
21967
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
22020
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
21968
22021
  }
21969
22022
  }
21970
22023
  }
@@ -21976,7 +22029,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21976
22029
  })(({
21977
22030
  theme
21978
22031
  }) => ({
21979
- backgroundColor: theme.palette.background.paper,
22032
+ backgroundColor: (theme.vars || theme).palette.background.paper,
21980
22033
  top: -8
21981
22034
  }));
21982
22035
  const AutocompleteGroupUl = styled$1('ul', {
@@ -22172,10 +22225,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22172
22225
  fullWidth: true,
22173
22226
  size: size === 'small' ? 'small' : undefined,
22174
22227
  InputLabelProps: getInputLabelProps(),
22175
- InputProps: {
22228
+ InputProps: _extends({
22176
22229
  ref: setAnchorEl,
22177
22230
  className: classes.inputRoot,
22178
- startAdornment,
22231
+ startAdornment
22232
+ }, (hasClearIcon || hasPopupIcon) && {
22179
22233
  endAdornment: /*#__PURE__*/jsxRuntime_2(AutocompleteEndAdornment, {
22180
22234
  className: classes.endAdornment,
22181
22235
  ownerState: ownerState,
@@ -22195,7 +22249,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22195
22249
  children: popupIcon
22196
22250
  })) : null]
22197
22251
  })
22198
- },
22252
+ }),
22199
22253
  inputProps: _extends({
22200
22254
  className: clsx(classes.input),
22201
22255
  disabled,
@@ -23020,7 +23074,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23020
23074
  theme
23021
23075
  }) => ({
23022
23076
  [`& .${avatarClasses$1.root}`]: {
23023
- border: `2px solid ${theme.palette.background.default}`,
23077
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
23024
23078
  boxSizing: 'content-box',
23025
23079
  marginLeft: -8,
23026
23080
  '&:last-child': {
@@ -23037,7 +23091,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23037
23091
  })(({
23038
23092
  theme
23039
23093
  }) => ({
23040
- border: `2px solid ${theme.palette.background.default}`,
23094
+ border: `2px solid ${(theme.vars || theme).palette.background.default}`,
23041
23095
  boxSizing: 'content-box',
23042
23096
  marginLeft: -8,
23043
23097
  '&:last-child': {
@@ -23645,8 +23699,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23645
23699
  duration: theme.transitions.duration.enteringScreen
23646
23700
  })
23647
23701
  }, ownerState.color !== 'default' && {
23648
- backgroundColor: theme.palette[ownerState.color].main,
23649
- color: theme.palette[ownerState.color].contrastText
23702
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
23703
+ color: (theme.vars || theme).palette[ownerState.color].contrastText
23650
23704
  }, ownerState.variant === 'dot' && {
23651
23705
  borderRadius: RADIUS_DOT,
23652
23706
  height: RADIUS_DOT * 2,
@@ -23960,7 +24014,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23960
24014
  display: 'flex',
23961
24015
  justifyContent: 'center',
23962
24016
  height: 56,
23963
- backgroundColor: theme.palette.background.paper
24017
+ backgroundColor: (theme.vars || theme).palette.background.paper
23964
24018
  }));
23965
24019
  const BottomNavigation = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigation(inProps, ref) {
23966
24020
  const props = useThemeProps({
@@ -24104,18 +24158,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24104
24158
  transition: theme.transitions.create(['color', 'padding-top'], {
24105
24159
  duration: theme.transitions.duration.short
24106
24160
  }),
24107
- padding: '6px 12px 8px',
24161
+ padding: '0px 12px',
24108
24162
  minWidth: 80,
24109
24163
  maxWidth: 168,
24110
- color: theme.palette.text.secondary,
24164
+ color: (theme.vars || theme).palette.text.secondary,
24111
24165
  flexDirection: 'column',
24112
24166
  flex: '1'
24113
24167
  }, !ownerState.showLabel && !ownerState.selected && {
24114
- paddingTop: 16
24168
+ paddingTop: 14
24169
+ }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
24170
+ paddingTop: 0
24115
24171
  }, {
24116
24172
  [`&.${bottomNavigationActionClasses$1.selected}`]: {
24117
- paddingTop: 6,
24118
- color: theme.palette.primary.main
24173
+ color: (theme.vars || theme).palette.primary.main
24119
24174
  }
24120
24175
  }));
24121
24176
  const BottomNavigationActionLabel = styled$1('span', {
@@ -24247,16 +24302,36 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24247
24302
  } ;
24248
24303
  var BottomNavigationAction$1 = BottomNavigationAction;
24249
24304
 
24250
- const defaultTheme = createTheme$1();
24251
- /**
24252
- * @ignore - do not document.
24253
- */
24254
-
24305
+ const defaultTheme = createTheme();
24255
24306
  const Box = createBox({
24256
24307
  defaultTheme,
24257
24308
  defaultClassName: 'MuiBox-root',
24258
24309
  generateClassName: ClassNameGenerator$1.generate
24259
24310
  });
24311
+ Box.propTypes
24312
+ /* remove-proptypes */
24313
+ = {
24314
+ // ----------------------------- Warning --------------------------------
24315
+ // | These PropTypes are generated from the TypeScript type definitions |
24316
+ // | To update them edit the d.ts file and run "yarn proptypes" |
24317
+ // ----------------------------------------------------------------------
24318
+
24319
+ /**
24320
+ * @ignore
24321
+ */
24322
+ children: PropTypes.node,
24323
+
24324
+ /**
24325
+ * The component used for the root node.
24326
+ * Either a string to use a HTML element or a component.
24327
+ */
24328
+ component: PropTypes.elementType,
24329
+
24330
+ /**
24331
+ * The system prop that allows defining system overrides as well as additional CSS styles.
24332
+ */
24333
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
24334
+ } ;
24260
24335
  var Box$1 = Box;
24261
24336
 
24262
24337
  var MoreHorizIcon = createSvgIcon( /*#__PURE__*/jsxRuntime_1("path", {
@@ -25011,9 +25086,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25011
25086
  ownerState
25012
25087
  }) => _extends({
25013
25088
  display: 'inline-flex',
25014
- borderRadius: theme.shape.borderRadius
25089
+ borderRadius: (theme.vars || theme).shape.borderRadius
25015
25090
  }, ownerState.variant === 'contained' && {
25016
- boxShadow: theme.shadows[2]
25091
+ boxShadow: (theme.vars || theme).shadows[2]
25017
25092
  }, ownerState.disableElevation && {
25018
25093
  boxShadow: 'none'
25019
25094
  }, ownerState.fullWidth && {
@@ -25041,27 +25116,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25041
25116
  borderBottomRightRadius: 0,
25042
25117
  borderBottomLeftRadius: 0
25043
25118
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
25044
- borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25119
+ borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25045
25120
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
25046
- borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25121
+ borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25047
25122
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
25048
- borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
25123
+ borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
25049
25124
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
25050
25125
  borderRightColor: 'transparent'
25051
25126
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
25052
25127
  borderBottomColor: 'transparent'
25053
25128
  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
25054
- borderRight: `1px solid ${theme.palette.grey[400]}`,
25129
+ borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
25055
25130
  [`&.${buttonGroupClasses$1.disabled}`]: {
25056
- borderRight: `1px solid ${theme.palette.action.disabled}`
25131
+ borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25057
25132
  }
25058
25133
  }, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
25059
- borderBottom: `1px solid ${theme.palette.grey[400]}`,
25134
+ borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
25060
25135
  [`&.${buttonGroupClasses$1.disabled}`]: {
25061
- borderBottom: `1px solid ${theme.palette.action.disabled}`
25136
+ borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25062
25137
  }
25063
25138
  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
25064
- borderColor: theme.palette[ownerState.color].dark
25139
+ borderColor: (theme.vars || theme).palette[ownerState.color].dark
25065
25140
  }, {
25066
25141
  '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
25067
25142
  borderRightColor: 'currentColor'
@@ -25358,13 +25433,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25358
25433
  textAlign: 'inherit',
25359
25434
  width: '100%',
25360
25435
  [`&:hover .${cardActionAreaClasses$1.focusHighlight}`]: {
25361
- opacity: theme.palette.action.hoverOpacity,
25436
+ opacity: (theme.vars || theme).palette.action.hoverOpacity,
25362
25437
  '@media (hover: none)': {
25363
25438
  opacity: 0
25364
25439
  }
25365
25440
  },
25366
25441
  [`&.${cardActionAreaClasses$1.focusVisible} .${cardActionAreaClasses$1.focusHighlight}`]: {
25367
- opacity: theme.palette.action.focusOpacity
25442
+ opacity: (theme.vars || theme).palette.action.focusOpacity
25368
25443
  }
25369
25444
  }));
25370
25445
  const CardActionAreaFocusHighlight = styled$1('span', {
@@ -26607,7 +26682,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26607
26682
  }, ownerState.variant === 'determinate' && {
26608
26683
  transition: theme.transitions.create('transform')
26609
26684
  }, ownerState.color !== 'inherit' && {
26610
- color: theme.palette[ownerState.color].main
26685
+ color: (theme.vars || theme).palette[ownerState.color].main
26611
26686
  }), ({
26612
26687
  ownerState
26613
26688
  }) => ownerState.variant === 'indeterminate' && css(_t3$2 || (_t3$2 = _$2`
@@ -26979,12 +27054,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26979
27054
  colorScheme: theme.palette.mode
26980
27055
  });
26981
27056
  const body = theme => _extends({
26982
- color: theme.palette.text.primary
27057
+ color: (theme.vars || theme).palette.text.primary
26983
27058
  }, theme.typography.body1, {
26984
- backgroundColor: theme.palette.background.default,
27059
+ backgroundColor: (theme.vars || theme).palette.background.default,
26985
27060
  '@media print': {
26986
27061
  // Save printer ink.
26987
- backgroundColor: theme.palette.common.white
27062
+ backgroundColor: (theme.vars || theme).palette.common.white
26988
27063
  }
26989
27064
  });
26990
27065
  const styles$3 = (theme, enableColorScheme = false) => {
@@ -27004,7 +27079,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27004
27079
  // Add support for document.body.requestFullScreen().
27005
27080
  // Other elements, if background transparent, are not supported.
27006
27081
  '&::backdrop': {
27007
- backgroundColor: theme.palette.background.default
27082
+ backgroundColor: (theme.vars || theme).palette.background.default
27008
27083
  }
27009
27084
  })
27010
27085
  };
@@ -27112,7 +27187,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27112
27187
  ownerState
27113
27188
  }) => _extends({
27114
27189
  position: 'fixed',
27115
- zIndex: theme.zIndex.modal,
27190
+ zIndex: (theme.vars || theme).zIndex.modal,
27116
27191
  right: 0,
27117
27192
  bottom: 0,
27118
27193
  top: 0,
@@ -27925,8 +28000,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27925
28000
  padding: '20px 24px'
27926
28001
  }, ownerState.dividers ? {
27927
28002
  padding: '16px 24px',
27928
- borderTop: `1px solid ${theme.palette.divider}`,
27929
- borderBottom: `1px solid ${theme.palette.divider}`
28003
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
28004
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
27930
28005
  } : {
27931
28006
  [`.${dialogTitleClasses$1.root} + &`]: {
27932
28007
  paddingTop: 0
@@ -28185,7 +28260,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28185
28260
  flexShrink: 0,
28186
28261
  borderWidth: 0,
28187
28262
  borderStyle: 'solid',
28188
- borderColor: theme.palette.divider,
28263
+ borderColor: (theme.vars || theme).palette.divider,
28189
28264
  borderBottomWidth: 'thin'
28190
28265
  }, ownerState.absolute && {
28191
28266
  position: 'absolute',
@@ -28193,7 +28268,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28193
28268
  left: 0,
28194
28269
  width: '100%'
28195
28270
  }, ownerState.light && {
28196
- borderColor: alpha(theme.palette.divider, 0.08)
28271
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
28197
28272
  }, ownerState.variant === 'inset' && {
28198
28273
  marginLeft: 72
28199
28274
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -28220,7 +28295,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28220
28295
  '&::before, &::after': {
28221
28296
  position: 'relative',
28222
28297
  width: '100%',
28223
- borderTop: `thin solid ${theme.palette.divider}`,
28298
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
28224
28299
  top: '50%',
28225
28300
  content: '""',
28226
28301
  transform: 'translateY(50%)'
@@ -28235,7 +28310,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28235
28310
  top: '0%',
28236
28311
  left: '50%',
28237
28312
  borderTop: 0,
28238
- borderLeft: `thin solid ${theme.palette.divider}`,
28313
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
28239
28314
  transform: 'translateX(0%)'
28240
28315
  }
28241
28316
  }), ({
@@ -28799,7 +28874,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28799
28874
  })(({
28800
28875
  theme
28801
28876
  }) => ({
28802
- zIndex: theme.zIndex.drawer
28877
+ zIndex: (theme.vars || theme).zIndex.drawer
28803
28878
  }));
28804
28879
  const DrawerDockedRoot = styled$1('div', {
28805
28880
  shouldForwardProp: rootShouldForwardProp,
@@ -28828,7 +28903,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28828
28903
  flexDirection: 'column',
28829
28904
  height: '100%',
28830
28905
  flex: '1 0 auto',
28831
- zIndex: theme.zIndex.drawer,
28906
+ zIndex: (theme.vars || theme).zIndex.drawer,
28832
28907
  // Add iOS momentum scrolling for iOS < 13.0
28833
28908
  WebkitOverflowScrolling: 'touch',
28834
28909
  // temporary style
@@ -28856,13 +28931,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28856
28931
  height: 'auto',
28857
28932
  maxHeight: '100%'
28858
28933
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
28859
- borderRight: `1px solid ${theme.palette.divider}`
28934
+ borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
28860
28935
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
28861
- borderBottom: `1px solid ${theme.palette.divider}`
28936
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
28862
28937
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
28863
- borderLeft: `1px solid ${theme.palette.divider}`
28938
+ borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
28864
28939
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
28865
- borderTop: `1px solid ${theme.palette.divider}`
28940
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
28866
28941
  }));
28867
28942
  const oppositeDirection = {
28868
28943
  left: 'right',
@@ -29122,77 +29197,81 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29122
29197
  })(({
29123
29198
  theme,
29124
29199
  ownerState
29125
- }) => _extends({}, theme.typography.button, {
29126
- minHeight: 36,
29127
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
29128
- duration: theme.transitions.duration.short
29129
- }),
29130
- borderRadius: '50%',
29131
- padding: 0,
29132
- minWidth: 0,
29133
- width: 56,
29134
- height: 56,
29135
- zIndex: theme.zIndex.fab,
29136
- boxShadow: theme.shadows[6],
29137
- '&:active': {
29138
- boxShadow: theme.shadows[12]
29139
- },
29140
- color: theme.palette.getContrastText(theme.palette.grey[300]),
29141
- backgroundColor: theme.palette.grey[300],
29142
- '&:hover': {
29143
- backgroundColor: theme.palette.grey.A100,
29144
- // Reset on touch devices, it doesn't add specificity
29145
- '@media (hover: none)': {
29146
- backgroundColor: theme.palette.grey[300]
29200
+ }) => {
29201
+ var _theme$palette$getCon, _theme$palette;
29202
+
29203
+ return _extends({}, theme.typography.button, {
29204
+ minHeight: 36,
29205
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
29206
+ duration: theme.transitions.duration.short
29207
+ }),
29208
+ borderRadius: '50%',
29209
+ padding: 0,
29210
+ minWidth: 0,
29211
+ width: 56,
29212
+ height: 56,
29213
+ zIndex: (theme.vars || theme).zIndex.fab,
29214
+ boxShadow: (theme.vars || theme).shadows[6],
29215
+ '&:active': {
29216
+ boxShadow: (theme.vars || theme).shadows[12]
29147
29217
  },
29148
- textDecoration: 'none'
29149
- },
29150
- [`&.${fabClasses$1.focusVisible}`]: {
29151
- boxShadow: theme.shadows[6]
29152
- },
29153
- [`&.${fabClasses$1.disabled}`]: {
29154
- color: theme.palette.action.disabled,
29155
- boxShadow: theme.shadows[0],
29156
- backgroundColor: theme.palette.action.disabledBackground
29157
- }
29158
- }, ownerState.size === 'small' && {
29159
- width: 40,
29160
- height: 40
29161
- }, ownerState.size === 'medium' && {
29162
- width: 48,
29163
- height: 48
29164
- }, ownerState.variant === 'extended' && {
29165
- borderRadius: 48 / 2,
29166
- padding: '0 16px',
29167
- width: 'auto',
29168
- minHeight: 'auto',
29169
- minWidth: 48,
29170
- height: 48
29171
- }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
29172
- width: 'auto',
29173
- padding: '0 8px',
29174
- borderRadius: 34 / 2,
29175
- minWidth: 34,
29176
- height: 34
29177
- }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
29178
- width: 'auto',
29179
- padding: '0 16px',
29180
- borderRadius: 40 / 2,
29181
- minWidth: 40,
29182
- height: 40
29183
- }, ownerState.color === 'inherit' && {
29184
- color: 'inherit'
29185
- }), ({
29218
+ color: theme.vars ? 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]),
29219
+ backgroundColor: (theme.vars || theme).palette.grey[300],
29220
+ '&:hover': {
29221
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
29222
+ // Reset on touch devices, it doesn't add specificity
29223
+ '@media (hover: none)': {
29224
+ backgroundColor: (theme.vars || theme).palette.grey[300]
29225
+ },
29226
+ textDecoration: 'none'
29227
+ },
29228
+ [`&.${fabClasses$1.focusVisible}`]: {
29229
+ boxShadow: (theme.vars || theme).shadows[6]
29230
+ },
29231
+ [`&.${fabClasses$1.disabled}`]: {
29232
+ color: (theme.vars || theme).palette.action.disabled,
29233
+ boxShadow: (theme.vars || theme).shadows[0],
29234
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
29235
+ }
29236
+ }, ownerState.size === 'small' && {
29237
+ width: 40,
29238
+ height: 40
29239
+ }, ownerState.size === 'medium' && {
29240
+ width: 48,
29241
+ height: 48
29242
+ }, ownerState.variant === 'extended' && {
29243
+ borderRadius: 48 / 2,
29244
+ padding: '0 16px',
29245
+ width: 'auto',
29246
+ minHeight: 'auto',
29247
+ minWidth: 48,
29248
+ height: 48
29249
+ }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
29250
+ width: 'auto',
29251
+ padding: '0 8px',
29252
+ borderRadius: 34 / 2,
29253
+ minWidth: 34,
29254
+ height: 34
29255
+ }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
29256
+ width: 'auto',
29257
+ padding: '0 16px',
29258
+ borderRadius: 40 / 2,
29259
+ minWidth: 40,
29260
+ height: 40
29261
+ }, ownerState.color === 'inherit' && {
29262
+ color: 'inherit'
29263
+ });
29264
+ }, ({
29186
29265
  theme,
29187
29266
  ownerState
29188
- }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
29189
- color: theme.palette[ownerState.color].contrastText,
29190
- backgroundColor: theme.palette[ownerState.color].main,
29267
+ }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
29268
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
29269
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
29191
29270
  '&:hover': {
29192
- backgroundColor: theme.palette[ownerState.color].dark,
29271
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
29193
29272
  // Reset on touch devices, it doesn't add specificity
29194
29273
  '@media (hover: none)': {
29195
- backgroundColor: theme.palette[ownerState.color].main
29274
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
29196
29275
  }
29197
29276
  }
29198
29277
  }));
@@ -29355,6 +29434,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29355
29434
  theme,
29356
29435
  ownerState
29357
29436
  }) => {
29437
+ var _theme$palette;
29438
+
29358
29439
  const light = theme.palette.mode === 'light';
29359
29440
  const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
29360
29441
  const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
@@ -29382,7 +29463,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29382
29463
  }
29383
29464
  }, !ownerState.disableUnderline && {
29384
29465
  '&:after': {
29385
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
29466
+ borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
29386
29467
  left: 0,
29387
29468
  bottom: 0,
29388
29469
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -30111,7 +30192,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30111
30192
  }, {
30112
30193
  [`& .${formControlLabelClasses$1.label}`]: {
30113
30194
  [`&.${formControlLabelClasses$1.disabled}`]: {
30114
- color: theme.palette.text.disabled
30195
+ color: (theme.vars || theme).palette.text.disabled
30115
30196
  }
30116
30197
  }
30117
30198
  }));
@@ -30426,7 +30507,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30426
30507
  theme,
30427
30508
  ownerState
30428
30509
  }) => _extends({
30429
- color: theme.palette.text.secondary
30510
+ color: (theme.vars || theme).palette.text.secondary
30430
30511
  }, theme.typography.caption, {
30431
30512
  textAlign: 'left',
30432
30513
  marginTop: 3,
@@ -30434,10 +30515,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30434
30515
  marginBottom: 0,
30435
30516
  marginLeft: 0,
30436
30517
  [`&.${formHelperTextClasses$1.disabled}`]: {
30437
- color: theme.palette.text.disabled
30518
+ color: (theme.vars || theme).palette.text.disabled
30438
30519
  },
30439
30520
  [`&.${formHelperTextClasses$1.error}`]: {
30440
- color: theme.palette.error.main
30521
+ color: (theme.vars || theme).palette.error.main
30441
30522
  }
30442
30523
  }, ownerState.size === 'small' && {
30443
30524
  marginTop: 4
@@ -30602,19 +30683,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30602
30683
  theme,
30603
30684
  ownerState
30604
30685
  }) => _extends({
30605
- color: theme.palette.text.secondary
30686
+ color: (theme.vars || theme).palette.text.secondary
30606
30687
  }, theme.typography.body1, {
30607
30688
  lineHeight: '1.4375em',
30608
30689
  padding: 0,
30609
30690
  position: 'relative',
30610
30691
  [`&.${formLabelClasses$1.focused}`]: {
30611
- color: theme.palette[ownerState.color].main
30692
+ color: (theme.vars || theme).palette[ownerState.color].main
30612
30693
  },
30613
30694
  [`&.${formLabelClasses$1.disabled}`]: {
30614
- color: theme.palette.text.disabled
30695
+ color: (theme.vars || theme).palette.text.disabled
30615
30696
  },
30616
30697
  [`&.${formLabelClasses$1.error}`]: {
30617
- color: theme.palette.error.main
30698
+ color: (theme.vars || theme).palette.error.main
30618
30699
  }
30619
30700
  }));
30620
30701
  const AsteriskComponent = styled$1('span', {
@@ -30625,7 +30706,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30625
30706
  theme
30626
30707
  }) => ({
30627
30708
  [`&.${formLabelClasses$1.error}`]: {
30628
- color: theme.palette.error.main
30709
+ color: (theme.vars || theme).palette.error.main
30629
30710
  }
30630
30711
  }));
30631
30712
  const FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(inProps, ref) {
@@ -32314,14 +32395,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32314
32395
  }[ownerState.fontSize],
32315
32396
  // TODO v5 deprecate, v6 remove for sx
32316
32397
  color: {
32317
- primary: theme.palette.primary.main,
32318
- secondary: theme.palette.secondary.main,
32319
- info: theme.palette.info.main,
32320
- success: theme.palette.success.main,
32321
- warning: theme.palette.warning.main,
32322
- action: theme.palette.action.active,
32323
- error: theme.palette.error.main,
32324
- disabled: theme.palette.action.disabled,
32398
+ primary: (theme.vars || theme).palette.primary.main,
32399
+ secondary: (theme.vars || theme).palette.secondary.main,
32400
+ info: (theme.vars || theme).palette.info.main,
32401
+ success: (theme.vars || theme).palette.success.main,
32402
+ warning: (theme.vars || theme).palette.warning.main,
32403
+ action: (theme.vars || theme).palette.action.active,
32404
+ error: (theme.vars || theme).palette.error.main,
32405
+ disabled: (theme.vars || theme).palette.action.disabled,
32325
32406
  inherit: undefined
32326
32407
  }[ownerState.color]
32327
32408
  }));
@@ -32858,7 +32939,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32858
32939
  return _extends({
32859
32940
  flexGrow: 1,
32860
32941
  padding: '12px 16px',
32861
- color: theme.palette.common.white,
32942
+ color: (theme.vars || theme).palette.common.white,
32862
32943
  overflow: 'hidden'
32863
32944
  }, ownerState.position === 'below' && {
32864
32945
  padding: '6px 0 12px',
@@ -33047,7 +33128,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33047
33128
  ownerState
33048
33129
  }) => {
33049
33130
  const light = theme.palette.mode === 'light';
33050
- const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
33131
+ let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
33132
+
33133
+ if (theme.vars) {
33134
+ bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})`;
33135
+ }
33136
+
33051
33137
  return _extends({
33052
33138
  position: 'relative'
33053
33139
  }, ownerState.formControl && {
@@ -33056,7 +33142,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33056
33142
  }
33057
33143
  }, !ownerState.disableUnderline && {
33058
33144
  '&:after': {
33059
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
33145
+ borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
33060
33146
  left: 0,
33061
33147
  bottom: 0,
33062
33148
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -33077,7 +33163,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33077
33163
  transform: 'scaleX(1) translateX(0)'
33078
33164
  },
33079
33165
  [`&.${inputClasses$1.error}:after`]: {
33080
- borderBottomColor: theme.palette.error.main,
33166
+ borderBottomColor: (theme.vars || theme).palette.error.main,
33081
33167
  transform: 'scaleX(1)' // error is always underlined in red
33082
33168
 
33083
33169
  },
@@ -33096,7 +33182,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33096
33182
 
33097
33183
  },
33098
33184
  [`&:hover:not(.${inputClasses$1.disabled}):before`]: {
33099
- borderBottom: `2px solid ${theme.palette.text.primary}`,
33185
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
33100
33186
  // Reset on touch devices, it doesn't add specificity
33101
33187
  '@media (hover: none)': {
33102
33188
  borderBottom: `1px solid ${bottomLineColor}`
@@ -33392,7 +33478,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33392
33478
  maxHeight: '2em',
33393
33479
  alignItems: 'center',
33394
33480
  whiteSpace: 'nowrap',
33395
- color: theme.palette.action.active
33481
+ color: (theme.vars || theme).palette.action.active
33396
33482
  }, ownerState.variant === 'filled' && {
33397
33483
  // Styles applied to the root element if `variant="filled"`.
33398
33484
  [`&.${inputAdornmentClasses$1.positionStart}&:not(.${inputAdornmentClasses$1.hiddenLabel})`]: {
@@ -34203,7 +34289,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34203
34289
  });
34204
34290
  });
34205
34291
  const Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34206
- const theme = useTheme();
34207
34292
  const props = useThemeProps({
34208
34293
  props: inProps,
34209
34294
  name: 'MuiLink'
@@ -34222,7 +34307,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34222
34307
  } = props,
34223
34308
  other = _objectWithoutPropertiesLoose(props, _excluded$10);
34224
34309
 
34225
- const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
34226
34310
  const {
34227
34311
  isFocusVisibleRef,
34228
34312
  onBlur: handleBlurVisible,
@@ -34257,9 +34341,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34257
34341
  };
34258
34342
 
34259
34343
  const ownerState = _extends({}, props, {
34260
- // It is too complex to support any types of `sx`.
34261
- // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
34262
- color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
34344
+ color,
34263
34345
  component,
34264
34346
  focusVisible,
34265
34347
  underline,
@@ -34277,8 +34359,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34277
34359
  ref: handlerRef,
34278
34360
  ownerState: ownerState,
34279
34361
  variant: variant,
34280
- sx: [...(inProps.color ? [{
34281
- color: colorTransformations[color] || color
34362
+ sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
34363
+ color
34282
34364
  }] : []), ...(Array.isArray(sx) ? sx : [sx])]
34283
34365
  }, other));
34284
34366
  });
@@ -34566,33 +34648,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34566
34648
  }),
34567
34649
  '&:hover': {
34568
34650
  textDecoration: 'none',
34569
- backgroundColor: theme.palette.action.hover,
34651
+ backgroundColor: (theme.vars || theme).palette.action.hover,
34570
34652
  // Reset on touch devices, it doesn't add specificity
34571
34653
  '@media (hover: none)': {
34572
34654
  backgroundColor: 'transparent'
34573
34655
  }
34574
34656
  },
34575
34657
  [`&.${listItemButtonClasses$1.selected}`]: {
34576
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34658
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34577
34659
  [`&.${listItemButtonClasses$1.focusVisible}`]: {
34578
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34660
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34579
34661
  }
34580
34662
  },
34581
34663
  [`&.${listItemButtonClasses$1.selected}:hover`]: {
34582
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
34664
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
34583
34665
  // Reset on touch devices, it doesn't add specificity
34584
34666
  '@media (hover: none)': {
34585
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34667
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34586
34668
  }
34587
34669
  },
34588
34670
  [`&.${listItemButtonClasses$1.focusVisible}`]: {
34589
- backgroundColor: theme.palette.action.focus
34671
+ backgroundColor: (theme.vars || theme).palette.action.focus
34590
34672
  },
34591
34673
  [`&.${listItemButtonClasses$1.disabled}`]: {
34592
- opacity: theme.palette.action.disabledOpacity
34674
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
34593
34675
  }
34594
34676
  }, ownerState.divider && {
34595
- borderBottom: `1px solid ${theme.palette.divider}`,
34677
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
34596
34678
  backgroundClip: 'padding-box'
34597
34679
  }, ownerState.alignItems === 'flex-start' && {
34598
34680
  alignItems: 'flex-start'
@@ -34909,21 +34991,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34909
34991
  }
34910
34992
  }, {
34911
34993
  [`&.${listItemClasses$1.focusVisible}`]: {
34912
- backgroundColor: theme.palette.action.focus
34994
+ backgroundColor: (theme.vars || theme).palette.action.focus
34913
34995
  },
34914
34996
  [`&.${listItemClasses$1.selected}`]: {
34915
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34997
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34916
34998
  [`&.${listItemClasses$1.focusVisible}`]: {
34917
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34999
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34918
35000
  }
34919
35001
  },
34920
35002
  [`&.${listItemClasses$1.disabled}`]: {
34921
- opacity: theme.palette.action.disabledOpacity
35003
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
34922
35004
  }
34923
35005
  }, ownerState.alignItems === 'flex-start' && {
34924
35006
  alignItems: 'flex-start'
34925
35007
  }, ownerState.divider && {
34926
- borderBottom: `1px solid ${theme.palette.divider}`,
35008
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
34927
35009
  backgroundClip: 'padding-box'
34928
35010
  }, ownerState.button && {
34929
35011
  transition: theme.transitions.create('background-color', {
@@ -34931,17 +35013,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34931
35013
  }),
34932
35014
  '&:hover': {
34933
35015
  textDecoration: 'none',
34934
- backgroundColor: theme.palette.action.hover,
35016
+ backgroundColor: (theme.vars || theme).palette.action.hover,
34935
35017
  // Reset on touch devices, it doesn't add specificity
34936
35018
  '@media (hover: none)': {
34937
35019
  backgroundColor: 'transparent'
34938
35020
  }
34939
35021
  },
34940
35022
  [`&.${listItemClasses$1.selected}:hover`]: {
34941
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
35023
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
34942
35024
  // Reset on touch devices, it doesn't add specificity
34943
35025
  '@media (hover: none)': {
34944
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
35026
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34945
35027
  }
34946
35028
  }
34947
35029
  }, ownerState.hasSecondaryAction && {
@@ -35374,7 +35456,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35374
35456
  ownerState
35375
35457
  }) => _extends({
35376
35458
  minWidth: 56,
35377
- color: theme.palette.action.active,
35459
+ color: (theme.vars || theme).palette.action.active,
35378
35460
  flexShrink: 0,
35379
35461
  display: 'inline-flex'
35380
35462
  }, ownerState.alignItems === 'flex-start' && {
@@ -36754,35 +36836,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36754
36836
  paddingLeft: 16,
36755
36837
  paddingRight: 16
36756
36838
  }, ownerState.divider && {
36757
- borderBottom: `1px solid ${theme.palette.divider}`,
36839
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
36758
36840
  backgroundClip: 'padding-box'
36759
36841
  }, {
36760
36842
  '&:hover': {
36761
36843
  textDecoration: 'none',
36762
- backgroundColor: theme.palette.action.hover,
36844
+ backgroundColor: (theme.vars || theme).palette.action.hover,
36763
36845
  // Reset on touch devices, it doesn't add specificity
36764
36846
  '@media (hover: none)': {
36765
36847
  backgroundColor: 'transparent'
36766
36848
  }
36767
36849
  },
36768
36850
  [`&.${menuItemClasses$1.selected}`]: {
36769
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
36851
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
36770
36852
  [`&.${menuItemClasses$1.focusVisible}`]: {
36771
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
36853
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
36772
36854
  }
36773
36855
  },
36774
36856
  [`&.${menuItemClasses$1.selected}:hover`]: {
36775
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
36857
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
36776
36858
  // Reset on touch devices, it doesn't add specificity
36777
36859
  '@media (hover: none)': {
36778
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36860
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36779
36861
  }
36780
36862
  },
36781
36863
  [`&.${menuItemClasses$1.focusVisible}`]: {
36782
- backgroundColor: theme.palette.action.focus
36864
+ backgroundColor: (theme.vars || theme).palette.action.focus
36783
36865
  },
36784
36866
  [`&.${menuItemClasses$1.disabled}`]: {
36785
- opacity: theme.palette.action.disabledOpacity
36867
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
36786
36868
  },
36787
36869
  [`& + .${dividerClasses$1.root}`]: {
36788
36870
  marginTop: theme.spacing(1),
@@ -37006,20 +37088,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37006
37088
  flexDirection: 'row',
37007
37089
  justifyContent: 'space-between',
37008
37090
  alignItems: 'center',
37009
- background: theme.palette.background.default,
37091
+ background: (theme.vars || theme).palette.background.default,
37010
37092
  padding: 8
37011
37093
  }, ownerState.position === 'bottom' && {
37012
37094
  position: 'fixed',
37013
37095
  bottom: 0,
37014
37096
  left: 0,
37015
37097
  right: 0,
37016
- zIndex: theme.zIndex.mobileStepper
37098
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37017
37099
  }, ownerState.position === 'top' && {
37018
37100
  position: 'fixed',
37019
37101
  top: 0,
37020
37102
  left: 0,
37021
37103
  right: 0,
37022
- zIndex: theme.zIndex.mobileStepper
37104
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37023
37105
  }));
37024
37106
  const MobileStepperDots = styled$1('div', {
37025
37107
  name: 'MuiMobileStepper',
@@ -37049,13 +37131,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37049
37131
  transition: theme.transitions.create('background-color', {
37050
37132
  duration: theme.transitions.duration.shortest
37051
37133
  }),
37052
- backgroundColor: theme.palette.action.disabled,
37134
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
37053
37135
  borderRadius: '50%',
37054
37136
  width: 8,
37055
37137
  height: 8,
37056
37138
  margin: '0 2px'
37057
37139
  }, dotActive && {
37058
- backgroundColor: theme.palette.primary.main
37140
+ backgroundColor: (theme.vars || theme).palette.primary.main
37059
37141
  })));
37060
37142
  const MobileStepperProgress = styled$1(LinearProgress$1, {
37061
37143
  name: 'MuiMobileStepper',
@@ -38180,10 +38262,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38180
38262
  minWidth: 32,
38181
38263
  padding: '0 6px',
38182
38264
  margin: '0 3px',
38183
- color: theme.palette.text.primary,
38265
+ color: (theme.vars || theme).palette.text.primary,
38184
38266
  height: 'auto',
38185
38267
  [`&.${paginationItemClasses$1.disabled}`]: {
38186
- opacity: theme.palette.action.disabledOpacity
38268
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
38187
38269
  }
38188
38270
  }, ownerState.size === 'small' && {
38189
38271
  minWidth: 26,
@@ -38211,39 +38293,39 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38211
38293
  height: 32,
38212
38294
  padding: '0 6px',
38213
38295
  margin: '0 3px',
38214
- color: theme.palette.text.primary,
38296
+ color: (theme.vars || theme).palette.text.primary,
38215
38297
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38216
- backgroundColor: theme.palette.action.focus
38298
+ backgroundColor: (theme.vars || theme).palette.action.focus
38217
38299
  },
38218
38300
  [`&.${paginationItemClasses$1.disabled}`]: {
38219
- opacity: theme.palette.action.disabledOpacity
38301
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
38220
38302
  },
38221
38303
  transition: theme.transitions.create(['color', 'background-color'], {
38222
38304
  duration: theme.transitions.duration.short
38223
38305
  }),
38224
38306
  '&:hover': {
38225
- backgroundColor: theme.palette.action.hover,
38307
+ backgroundColor: (theme.vars || theme).palette.action.hover,
38226
38308
  // Reset on touch devices, it doesn't add specificity
38227
38309
  '@media (hover: none)': {
38228
38310
  backgroundColor: 'transparent'
38229
38311
  }
38230
38312
  },
38231
38313
  [`&.${paginationItemClasses$1.selected}`]: {
38232
- backgroundColor: theme.palette.action.selected,
38314
+ backgroundColor: (theme.vars || theme).palette.action.selected,
38233
38315
  '&:hover': {
38234
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38316
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38235
38317
  // Reset on touch devices, it doesn't add specificity
38236
38318
  '@media (hover: none)': {
38237
- backgroundColor: theme.palette.action.selected
38319
+ backgroundColor: (theme.vars || theme).palette.action.selected
38238
38320
  }
38239
38321
  },
38240
38322
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38241
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38323
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38242
38324
  },
38243
38325
  [`&.${paginationItemClasses$1.disabled}`]: {
38244
38326
  opacity: 1,
38245
- color: theme.palette.action.disabled,
38246
- backgroundColor: theme.palette.action.selected
38327
+ color: (theme.vars || theme).palette.action.disabled,
38328
+ backgroundColor: (theme.vars || theme).palette.action.selected
38247
38329
  }
38248
38330
  }
38249
38331
  }, ownerState.size === 'small' && {
@@ -38259,49 +38341,49 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38259
38341
  padding: '0 10px',
38260
38342
  fontSize: theme.typography.pxToRem(15)
38261
38343
  }, ownerState.shape === 'rounded' && {
38262
- borderRadius: theme.shape.borderRadius
38344
+ borderRadius: (theme.vars || theme).shape.borderRadius
38263
38345
  }), ({
38264
38346
  theme,
38265
38347
  ownerState
38266
38348
  }) => _extends({}, ownerState.variant === 'text' && {
38267
38349
  [`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
38268
- color: theme.palette[ownerState.color].contrastText,
38269
- backgroundColor: theme.palette[ownerState.color].main,
38350
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
38351
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
38270
38352
  '&:hover': {
38271
- backgroundColor: theme.palette[ownerState.color].dark,
38353
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
38272
38354
  // Reset on touch devices, it doesn't add specificity
38273
38355
  '@media (hover: none)': {
38274
- backgroundColor: theme.palette[ownerState.color].main
38356
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
38275
38357
  }
38276
38358
  },
38277
38359
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38278
- backgroundColor: theme.palette[ownerState.color].dark
38360
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
38279
38361
  }
38280
38362
  }, {
38281
38363
  [`&.${paginationItemClasses$1.disabled}`]: {
38282
- color: theme.palette.action.disabled
38364
+ color: (theme.vars || theme).palette.action.disabled
38283
38365
  }
38284
38366
  })
38285
38367
  }, ownerState.variant === 'outlined' && {
38286
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
38368
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
38287
38369
  [`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
38288
- color: theme.palette[ownerState.color].main,
38289
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`,
38290
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
38370
+ color: (theme.vars || theme).palette[ownerState.color].main,
38371
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
38372
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
38291
38373
  '&:hover': {
38292
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
38374
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
38293
38375
  // Reset on touch devices, it doesn't add specificity
38294
38376
  '@media (hover: none)': {
38295
38377
  backgroundColor: 'transparent'
38296
38378
  }
38297
38379
  },
38298
38380
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38299
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
38381
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
38300
38382
  }
38301
38383
  }, {
38302
38384
  [`&.${paginationItemClasses$1.disabled}`]: {
38303
- borderColor: theme.palette.action.disabledBackground,
38304
- color: theme.palette.action.disabled
38385
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
38386
+ color: (theme.vars || theme).palette.action.disabled
38305
38387
  }
38306
38388
  })
38307
38389
  }));
@@ -39273,7 +39355,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39273
39355
  textAlign: 'left',
39274
39356
  WebkitTapHighlightColor: 'transparent',
39275
39357
  [`&.${ratingClasses$1.disabled}`]: {
39276
- opacity: theme.palette.action.disabledOpacity,
39358
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
39277
39359
  pointerEvents: 'none'
39278
39360
  },
39279
39361
  [`&.${ratingClasses$1.focusVisible} .${ratingClasses$1.iconActive}`]: {
@@ -39326,7 +39408,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39326
39408
  }, ownerState.iconActive && {
39327
39409
  transform: 'scale(1.2)'
39328
39410
  }, ownerState.iconEmpty && {
39329
- color: theme.palette.action.disabled
39411
+ color: (theme.vars || theme).palette.action.disabled
39330
39412
  }));
39331
39413
  const RatingDecimal = styled$1('span', {
39332
39414
  name: 'MuiRating',
@@ -42150,7 +42232,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42150
42232
  });
42151
42233
 
42152
42234
  return _extends({
42153
- zIndex: theme.zIndex.snackbar,
42235
+ zIndex: (theme.vars || theme).zIndex.snackbar,
42154
42236
  position: 'fixed',
42155
42237
  display: 'flex',
42156
42238
  left: 8,
@@ -42846,7 +42928,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42846
42928
  theme,
42847
42929
  ownerState
42848
42930
  }) => _extends({
42849
- zIndex: theme.zIndex.speedDial,
42931
+ zIndex: (theme.vars || theme).zIndex.speedDial,
42850
42932
  display: 'flex',
42851
42933
  alignItems: 'center',
42852
42934
  pointerEvents: 'none'
@@ -43376,7 +43458,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43376
43458
  ownerState,
43377
43459
  open
43378
43460
  }) => _extends({
43379
- zIndex: theme.zIndex.tooltip,
43461
+ zIndex: (theme.vars || theme).zIndex.tooltip,
43380
43462
  pointerEvents: 'none'
43381
43463
  }, !ownerState.disableInteractive && {
43382
43464
  pointerEvents: 'auto'
@@ -43437,9 +43519,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43437
43519
  theme,
43438
43520
  ownerState
43439
43521
  }) => _extends({
43440
- backgroundColor: alpha(theme.palette.grey[700], 0.92),
43441
- borderRadius: theme.shape.borderRadius,
43442
- color: theme.palette.common.white,
43522
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : alpha(theme.palette.grey[700], 0.92),
43523
+ borderRadius: (theme.vars || theme).shape.borderRadius,
43524
+ color: (theme.vars || theme).palette.common.white,
43443
43525
  fontFamily: theme.typography.fontFamily,
43444
43526
  padding: '4px 8px',
43445
43527
  fontSize: theme.typography.pxToRem(11),
@@ -43505,7 +43587,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43505
43587
  /* = width / sqrt(2) = (length of the hypotenuse) */
43506
43588
  ,
43507
43589
  boxSizing: 'border-box',
43508
- color: alpha(theme.palette.grey[700], 0.9),
43590
+ color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
43509
43591
  '&::before': {
43510
43592
  content: '""',
43511
43593
  margin: 'auto',
@@ -44709,15 +44791,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44709
44791
  var Stack$1 = Stack;
44710
44792
 
44711
44793
  /**
44712
- * @ignore - internal component.
44794
+ * Provides information about the current step in Stepper.
44713
44795
  */
44714
-
44715
44796
  const StepperContext = /*#__PURE__*/React__namespace.createContext({});
44716
44797
 
44717
44798
  {
44718
44799
  StepperContext.displayName = 'StepperContext';
44719
44800
  }
44801
+ /**
44802
+ * Returns the current StepperContext or an empty object if no StepperContext
44803
+ * has been defined in the component tree.
44804
+ */
44805
+
44720
44806
 
44807
+ function useStepperContext() {
44808
+ return React__namespace.useContext(StepperContext);
44809
+ }
44721
44810
  var StepperContext$1 = StepperContext;
44722
44811
 
44723
44812
  /**
@@ -44956,15 +45045,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44956
45045
  transition: theme.transitions.create('color', {
44957
45046
  duration: theme.transitions.duration.shortest
44958
45047
  }),
44959
- color: theme.palette.text.disabled,
45048
+ color: (theme.vars || theme).palette.text.disabled,
44960
45049
  [`&.${stepIconClasses$1.completed}`]: {
44961
- color: theme.palette.primary.main
45050
+ color: (theme.vars || theme).palette.primary.main
44962
45051
  },
44963
45052
  [`&.${stepIconClasses$1.active}`]: {
44964
- color: theme.palette.primary.main
45053
+ color: (theme.vars || theme).palette.primary.main
44965
45054
  },
44966
45055
  [`&.${stepIconClasses$1.error}`]: {
44967
- color: theme.palette.error.main
45056
+ color: (theme.vars || theme).palette.error.main
44968
45057
  }
44969
45058
  }));
44970
45059
  const StepIconText = styled$1('text', {
@@ -44974,7 +45063,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44974
45063
  })(({
44975
45064
  theme
44976
45065
  }) => ({
44977
- fill: theme.palette.primary.contrastText,
45066
+ fill: (theme.vars || theme).palette.primary.contrastText,
44978
45067
  fontSize: theme.typography.caption.fontSize,
44979
45068
  fontFamily: theme.typography.fontFamily
44980
45069
  }));
@@ -45155,11 +45244,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45155
45244
  duration: theme.transitions.duration.shortest
45156
45245
  }),
45157
45246
  [`&.${stepLabelClasses$1.active}`]: {
45158
- color: theme.palette.text.primary,
45247
+ color: (theme.vars || theme).palette.text.primary,
45159
45248
  fontWeight: 500
45160
45249
  },
45161
45250
  [`&.${stepLabelClasses$1.completed}`]: {
45162
- color: theme.palette.text.primary,
45251
+ color: (theme.vars || theme).palette.text.primary,
45163
45252
  fontWeight: 500
45164
45253
  },
45165
45254
  [`&.${stepLabelClasses$1.alternativeLabel}`]: {
@@ -45167,7 +45256,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45167
45256
  marginTop: 16
45168
45257
  },
45169
45258
  [`&.${stepLabelClasses$1.error}`]: {
45170
- color: theme.palette.error.main
45259
+ color: (theme.vars || theme).palette.error.main
45171
45260
  }
45172
45261
  }));
45173
45262
  const StepLabelIconContainer = styled$1('span', {
@@ -45191,7 +45280,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45191
45280
  theme
45192
45281
  }) => ({
45193
45282
  width: '100%',
45194
- color: theme.palette.text.secondary
45283
+ color: (theme.vars || theme).palette.text.secondary
45195
45284
  }));
45196
45285
  const StepLabel = /*#__PURE__*/React__namespace.forwardRef(function StepLabel(inProps, ref) {
45197
45286
  const props = useThemeProps({
@@ -47006,23 +47095,23 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47006
47095
  opacity: 1
47007
47096
  },
47008
47097
  [`&.${tabClasses$1.disabled}`]: {
47009
- opacity: theme.palette.action.disabledOpacity
47098
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
47010
47099
  }
47011
47100
  }, ownerState.textColor === 'primary' && {
47012
- color: theme.palette.text.secondary,
47101
+ color: (theme.vars || theme).palette.text.secondary,
47013
47102
  [`&.${tabClasses$1.selected}`]: {
47014
- color: theme.palette.primary.main
47103
+ color: (theme.vars || theme).palette.primary.main
47015
47104
  },
47016
47105
  [`&.${tabClasses$1.disabled}`]: {
47017
- color: theme.palette.text.disabled
47106
+ color: (theme.vars || theme).palette.text.disabled
47018
47107
  }
47019
47108
  }, ownerState.textColor === 'secondary' && {
47020
- color: theme.palette.text.secondary,
47109
+ color: (theme.vars || theme).palette.text.secondary,
47021
47110
  [`&.${tabClasses$1.selected}`]: {
47022
- color: theme.palette.secondary.main
47111
+ color: (theme.vars || theme).palette.secondary.main
47023
47112
  },
47024
47113
  [`&.${tabClasses$1.disabled}`]: {
47025
- color: theme.palette.text.disabled
47114
+ color: (theme.vars || theme).palette.text.disabled
47026
47115
  }
47027
47116
  }, ownerState.fullWidth && {
47028
47117
  flexShrink: 1,
@@ -47264,7 +47353,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47264
47353
  borderSpacing: 0,
47265
47354
  '& caption': _extends({}, theme.typography.body2, {
47266
47355
  padding: theme.spacing(2),
47267
- color: theme.palette.text.secondary,
47356
+ color: (theme.vars || theme).palette.text.secondary,
47268
47357
  textAlign: 'left',
47269
47358
  captionSide: 'bottom'
47270
47359
  })
@@ -48251,7 +48340,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48251
48340
  theme
48252
48341
  }) => ({
48253
48342
  overflow: 'auto',
48254
- color: theme.palette.text.primary,
48343
+ color: (theme.vars || theme).palette.text.primary,
48255
48344
  fontSize: theme.typography.pxToRem(14),
48256
48345
  // Increase the specificity to override TableCell.
48257
48346
  '&:last-child': {
@@ -48682,12 +48771,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48682
48771
  // We disable the focus ring for mouse, touch and keyboard users.
48683
48772
  outline: 0,
48684
48773
  [`&.${tableRowClasses$1.hover}:hover`]: {
48685
- backgroundColor: theme.palette.action.hover
48774
+ backgroundColor: (theme.vars || theme).palette.action.hover
48686
48775
  },
48687
48776
  [`&.${tableRowClasses$1.selected}`]: {
48688
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48777
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48689
48778
  '&:hover': {
48690
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
48779
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
48691
48780
  }
48692
48781
  }
48693
48782
  }));
@@ -48821,19 +48910,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48821
48910
  flexDirection: 'inherit',
48822
48911
  alignItems: 'center',
48823
48912
  '&:focus': {
48824
- color: theme.palette.text.secondary
48913
+ color: (theme.vars || theme).palette.text.secondary
48825
48914
  },
48826
48915
  '&:hover': {
48827
- color: theme.palette.text.secondary,
48916
+ color: (theme.vars || theme).palette.text.secondary,
48828
48917
  [`& .${tableSortLabelClasses$1.icon}`]: {
48829
48918
  opacity: 0.5
48830
48919
  }
48831
48920
  },
48832
48921
  [`&.${tableSortLabelClasses$1.active}`]: {
48833
- color: theme.palette.text.primary,
48922
+ color: (theme.vars || theme).palette.text.primary,
48834
48923
  [`& .${tableSortLabelClasses$1.icon}`]: {
48835
48924
  opacity: 1,
48836
- color: theme.palette.text.secondary
48925
+ color: (theme.vars || theme).palette.text.secondary
48837
48926
  }
48838
48927
  }
48839
48928
  }));
@@ -49371,9 +49460,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49371
49460
  width: '100%',
49372
49461
  transition: theme.transitions.create()
49373
49462
  }, ownerState.indicatorColor === 'primary' && {
49374
- backgroundColor: theme.palette.primary.main
49463
+ backgroundColor: (theme.vars || theme).palette.primary.main
49375
49464
  }, ownerState.indicatorColor === 'secondary' && {
49376
- backgroundColor: theme.palette.secondary.main
49465
+ backgroundColor: (theme.vars || theme).palette.secondary.main
49377
49466
  }, ownerState.vertical && {
49378
49467
  height: '100%',
49379
49468
  width: 2,
@@ -50484,35 +50573,42 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50484
50573
  theme,
50485
50574
  ownerState
50486
50575
  }) => {
50487
- const selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
50576
+ let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
50577
+ let selectedColorChannel;
50578
+
50579
+ if (theme.vars) {
50580
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
50581
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
50582
+ }
50583
+
50488
50584
  return _extends({}, theme.typography.button, {
50489
- borderRadius: theme.shape.borderRadius,
50585
+ borderRadius: (theme.vars || theme).shape.borderRadius,
50490
50586
  padding: 11,
50491
- border: `1px solid ${theme.palette.divider}`,
50492
- color: theme.palette.action.active
50587
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
50588
+ color: (theme.vars || theme).palette.action.active
50493
50589
  }, ownerState.fullWidth && {
50494
50590
  width: '100%'
50495
50591
  }, {
50496
50592
  [`&.${toggleButtonClasses$1.disabled}`]: {
50497
- color: theme.palette.action.disabled,
50498
- border: `1px solid ${theme.palette.action.disabledBackground}`
50593
+ color: (theme.vars || theme).palette.action.disabled,
50594
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
50499
50595
  },
50500
50596
  '&:hover': {
50501
50597
  textDecoration: 'none',
50502
50598
  // Reset on mouse devices
50503
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
50599
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
50504
50600
  '@media (hover: none)': {
50505
50601
  backgroundColor: 'transparent'
50506
50602
  }
50507
50603
  },
50508
50604
  [`&.${toggleButtonClasses$1.selected}`]: {
50509
50605
  color: selectedColor,
50510
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
50606
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity),
50511
50607
  '&:hover': {
50512
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
50608
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
50513
50609
  // Reset on touch devices, it doesn't add specificity
50514
50610
  '@media (hover: none)': {
50515
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
50611
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity)
50516
50612
  }
50517
50613
  }
50518
50614
  }
@@ -50740,7 +50836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50740
50836
  theme
50741
50837
  }) => _extends({
50742
50838
  display: 'inline-flex',
50743
- borderRadius: theme.shape.borderRadius
50839
+ borderRadius: (theme.vars || theme).shape.borderRadius
50744
50840
  }, ownerState.orientation === 'vertical' && {
50745
50841
  flexDirection: 'column'
50746
50842
  }, ownerState.fullWidth && {
@@ -51120,6 +51216,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51120
51216
  exports.StepIcon = StepIcon$1;
51121
51217
  exports.StepLabel = StepLabel$1;
51122
51218
  exports.Stepper = Stepper$1;
51219
+ exports.StepperContext = StepperContext$1;
51123
51220
  exports.StyledEngineProvider = StyledEngineProvider;
51124
51221
  exports.SvgIcon = SvgIcon$1;
51125
51222
  exports.SwipeableDrawer = SwipeableDrawer$1;
@@ -51183,7 +51280,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51183
51280
  exports.createMuiTheme = createMuiTheme;
51184
51281
  exports.createStyles = createStyles;
51185
51282
  exports.createSvgIcon = createSvgIcon;
51186
- exports.createTheme = createTheme$1;
51283
+ exports.createTheme = createTheme;
51187
51284
  exports.css = css;
51188
51285
  exports.darkScrollbar = darkScrollbar;
51189
51286
  exports.darken = darken;
@@ -51201,7 +51298,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51201
51298
  exports.easing = easing;
51202
51299
  exports.emphasize = emphasize;
51203
51300
  exports.experimentalStyled = styled$1;
51204
- exports.experimental_extendTheme = createTheme;
51301
+ exports.experimental_extendTheme = extendTheme;
51205
51302
  exports.experimental_sx = sx;
51206
51303
  exports.fabClasses = fabClasses$1;
51207
51304
  exports.filledInputClasses = filledInputClasses$1;
@@ -51430,6 +51527,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51430
51527
  exports.useRadioGroup = useRadioGroup;
51431
51528
  exports.useScrollTrigger = useScrollTrigger;
51432
51529
  exports.useStepContext = useStepContext;
51530
+ exports.useStepperContext = useStepperContext;
51433
51531
  exports.useTheme = useTheme;
51434
51532
  exports.useThemeProps = useThemeProps;
51435
51533
  exports.withStyles = withStyles;