@mui/material 5.6.4 → 5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.js +1 -0
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.d.ts +23 -1
  10. package/Autocomplete/Autocomplete.js +18 -16
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +1 -34
  16. package/Badge/badgeClasses.d.ts +56 -24
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Box/Box.js +1 -1
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/TouchRipple.js +5 -5
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroup.js +10 -10
  27. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  28. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  29. package/CHANGELOG.md +241 -0
  30. package/Card/cardClasses.d.ts +8 -8
  31. package/CardActionArea/CardActionArea.js +2 -2
  32. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  33. package/CardActions/cardActionsClasses.d.ts +10 -10
  34. package/CardContent/cardContentClasses.d.ts +8 -8
  35. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  36. package/CardMedia/cardMediaClasses.d.ts +12 -12
  37. package/Checkbox/checkboxClasses.d.ts +18 -18
  38. package/Chip/chipClasses.d.ts +80 -80
  39. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  40. package/ClickAwayListener/index.d.ts +2 -2
  41. package/Collapse/collapseClasses.d.ts +18 -18
  42. package/Container/Container.js +17 -106
  43. package/Container/containerClasses.d.ts +6 -22
  44. package/CssBaseline/CssBaseline.js +4 -4
  45. package/Dialog/DialogContext.d.ts +6 -6
  46. package/Dialog/dialogClasses.d.ts +36 -36
  47. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  48. package/DialogContent/DialogContent.js +2 -2
  49. package/DialogContent/dialogContentClasses.d.ts +10 -10
  50. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  51. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  52. package/Divider/Divider.js +4 -4
  53. package/Divider/dividerClasses.d.ts +34 -34
  54. package/Drawer/Drawer.js +6 -6
  55. package/Drawer/drawerClasses.d.ts +30 -30
  56. package/Fab/Fab.js +72 -66
  57. package/Fab/fabClasses.d.ts +26 -26
  58. package/FilledInput/filledInputClasses.d.ts +40 -40
  59. package/FormControl/formControlClasses.d.ts +14 -14
  60. package/FormControlLabel/FormControlLabel.js +1 -1
  61. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  62. package/FormGroup/formGroupClasses.d.ts +12 -12
  63. package/FormHelperText/FormHelperText.js +3 -3
  64. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  65. package/FormLabel/FormLabel.js +5 -5
  66. package/FormLabel/formLabelClasses.d.ts +22 -22
  67. package/Grid/gridClasses.d.ts +48 -48
  68. package/Icon/Icon.js +8 -8
  69. package/Icon/iconClasses.d.ts +24 -24
  70. package/IconButton/IconButton.js +5 -5
  71. package/IconButton/iconButtonClasses.d.ts +26 -26
  72. package/ImageList/imageListClasses.d.ts +16 -16
  73. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  74. package/ImageListItemBar/ImageListItemBar.js +1 -1
  75. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  76. package/Input/Input.js +9 -4
  77. package/Input/inputClasses.d.ts +34 -34
  78. package/InputAdornment/InputAdornment.js +1 -1
  79. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  80. package/InputBase/InputBase.js +16 -8
  81. package/InputBase/inputBaseClasses.d.ts +44 -44
  82. package/InputLabel/inputLabelClasses.d.ts +32 -32
  83. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  84. package/Link/Link.js +3 -8
  85. package/Link/linkClasses.d.ts +18 -18
  86. package/List/listClasses.d.ts +14 -14
  87. package/ListItem/ListItem.js +8 -8
  88. package/ListItem/listItemClasses.d.ts +30 -30
  89. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  90. package/ListItemButton/ListItemButton.js +15 -9
  91. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  92. package/ListItemIcon/ListItemIcon.js +1 -1
  93. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  94. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  95. package/ListItemText/listItemTextClasses.d.ts +18 -18
  96. package/ListSubheader/ListSubheader.js +3 -3
  97. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  98. package/Menu/menuClasses.d.ts +12 -12
  99. package/MenuItem/MenuItem.js +8 -8
  100. package/MenuItem/menuItemClasses.d.ts +20 -20
  101. package/MenuList/MenuList.d.ts +1 -1
  102. package/MenuList/MenuList.js +1 -1
  103. package/MobileStepper/MobileStepper.js +5 -5
  104. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  105. package/Modal/Modal.js +1 -1
  106. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  107. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  108. package/Pagination/paginationClasses.d.ts +14 -14
  109. package/PaginationItem/PaginationItem.js +27 -27
  110. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  111. package/Paper/Paper.js +20 -15
  112. package/Paper/index.d.ts +1 -1
  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 +2 -1
  117. package/Radio/Radio.js +4 -4
  118. package/Radio/radioClasses.d.ts +16 -16
  119. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  120. package/RadioGroup/useRadioGroup.d.ts +4 -4
  121. package/Rating/Rating.js +2 -2
  122. package/Rating/ratingClasses.d.ts +40 -40
  123. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  124. package/Select/SelectInput.js +2 -2
  125. package/Select/selectClasses.d.ts +30 -30
  126. package/Skeleton/skeletonClasses.d.ts +24 -24
  127. package/Slider/Slider.js +1 -5
  128. package/Snackbar/Snackbar.js +1 -1
  129. package/Snackbar/snackbarClasses.d.ts +20 -20
  130. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  131. package/SpeedDial/SpeedDial.js +1 -1
  132. package/SpeedDial/speedDialClasses.d.ts +22 -22
  133. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  134. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  135. package/Step/StepContext.d.ts +20 -20
  136. package/Step/stepClasses.d.ts +16 -16
  137. package/StepButton/stepButtonClasses.d.ts +14 -14
  138. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  139. package/StepContent/stepContentClasses.d.ts +12 -12
  140. package/StepIcon/StepIcon.js +5 -5
  141. package/StepIcon/stepIconClasses.d.ts +16 -16
  142. package/StepLabel/StepLabel.js +4 -4
  143. package/StepLabel/stepLabelClasses.d.ts +28 -28
  144. package/Stepper/StepperContext.d.ts +18 -0
  145. package/Stepper/StepperContext.js +10 -2
  146. package/Stepper/index.d.ts +3 -0
  147. package/Stepper/index.js +3 -1
  148. package/Stepper/stepperClasses.d.ts +14 -14
  149. package/SvgIcon/SvgIcon.js +4 -4
  150. package/SvgIcon/svgIconClasses.d.ts +24 -24
  151. package/Switch/switchClasses.d.ts +32 -32
  152. package/Tab/Tab.js +7 -7
  153. package/Tab/tabClasses.d.ts +26 -26
  154. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  155. package/Table/Table.js +1 -1
  156. package/Table/tableClasses.d.ts +10 -10
  157. package/TableBody/tableBodyClasses.d.ts +8 -8
  158. package/TableCell/tableCellClasses.d.ts +32 -32
  159. package/TableContainer/tableContainerClasses.d.ts +8 -8
  160. package/TableFooter/tableFooterClasses.d.ts +8 -8
  161. package/TableHead/tableHeadClasses.d.ts +8 -8
  162. package/TablePagination/TablePagination.js +1 -1
  163. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  164. package/TableRow/TableRow.js +3 -3
  165. package/TableRow/tableRowClasses.d.ts +16 -16
  166. package/TableSortLabel/TableSortLabel.js +4 -4
  167. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  168. package/Tabs/Tabs.js +4 -4
  169. package/Tabs/tabsClasses.d.ts +32 -32
  170. package/TextField/textFieldClasses.d.ts +8 -8
  171. package/ToggleButton/ToggleButton.js +17 -10
  172. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  173. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  174. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  175. package/Toolbar/toolbarClasses.d.ts +14 -14
  176. package/Tooltip/Tooltip.js +5 -5
  177. package/Tooltip/tooltipClasses.d.ts +30 -30
  178. package/Typography/typographyClasses.d.ts +50 -50
  179. package/className/index.d.ts +1 -8
  180. package/className/index.js +1 -8
  181. package/darkScrollbar/index.d.ts +28 -28
  182. package/index.js +1 -1
  183. package/internal/switchBaseClasses.d.ts +12 -12
  184. package/legacy/Alert/Alert.js +1 -0
  185. package/legacy/Autocomplete/Autocomplete.js +18 -16
  186. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  187. package/legacy/Box/Box.js +1 -1
  188. package/legacy/ButtonBase/TouchRipple.js +5 -5
  189. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  190. package/legacy/CardActionArea/CardActionArea.js +2 -2
  191. package/legacy/Container/Container.js +18 -103
  192. package/legacy/CssBaseline/CssBaseline.js +4 -4
  193. package/legacy/DialogContent/DialogContent.js +2 -2
  194. package/legacy/Divider/Divider.js +4 -4
  195. package/legacy/Drawer/Drawer.js +6 -6
  196. package/legacy/Fab/Fab.js +20 -18
  197. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  198. package/legacy/FormHelperText/FormHelperText.js +3 -3
  199. package/legacy/FormLabel/FormLabel.js +5 -5
  200. package/legacy/Icon/Icon.js +8 -8
  201. package/legacy/IconButton/IconButton.js +5 -5
  202. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  203. package/legacy/Input/Input.js +8 -3
  204. package/legacy/InputAdornment/InputAdornment.js +1 -1
  205. package/legacy/InputBase/InputBase.js +16 -8
  206. package/legacy/Link/Link.js +3 -9
  207. package/legacy/ListItem/ListItem.js +8 -8
  208. package/legacy/ListItemButton/ListItemButton.js +15 -9
  209. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  210. package/legacy/ListSubheader/ListSubheader.js +3 -3
  211. package/legacy/MenuItem/MenuItem.js +8 -8
  212. package/legacy/MenuList/MenuList.js +1 -1
  213. package/legacy/MobileStepper/MobileStepper.js +5 -5
  214. package/legacy/Modal/Modal.js +1 -1
  215. package/legacy/PaginationItem/PaginationItem.js +27 -27
  216. package/legacy/Paper/Paper.js +10 -7
  217. package/legacy/Radio/Radio.js +4 -4
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Select/SelectInput.js +2 -2
  220. package/legacy/Slider/Slider.js +1 -10
  221. package/legacy/Snackbar/Snackbar.js +1 -1
  222. package/legacy/SpeedDial/SpeedDial.js +1 -1
  223. package/legacy/StepIcon/StepIcon.js +5 -5
  224. package/legacy/StepLabel/StepLabel.js +4 -4
  225. package/legacy/Stepper/StepperContext.js +10 -2
  226. package/legacy/Stepper/index.js +3 -1
  227. package/legacy/SvgIcon/SvgIcon.js +4 -4
  228. package/legacy/Tab/Tab.js +7 -7
  229. package/legacy/Table/Table.js +1 -1
  230. package/legacy/TablePagination/TablePagination.js +1 -1
  231. package/legacy/TableRow/TableRow.js +3 -3
  232. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  233. package/legacy/Tabs/Tabs.js +4 -4
  234. package/legacy/ToggleButton/ToggleButton.js +16 -9
  235. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  236. package/legacy/Tooltip/Tooltip.js +5 -5
  237. package/legacy/className/index.js +1 -8
  238. package/legacy/index.js +1 -1
  239. package/legacy/locale/index.js +22 -22
  240. package/legacy/styles/createMixins.js +5 -3
  241. package/legacy/styles/createPalette.js +2 -1
  242. package/legacy/styles/createTheme.js +1 -1
  243. package/legacy/styles/experimental_extendTheme.js +70 -42
  244. package/locale/index.d.ts +71 -71
  245. package/locale/index.js +22 -22
  246. package/modern/Alert/Alert.js +1 -0
  247. package/modern/Autocomplete/Autocomplete.js +18 -16
  248. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  249. package/modern/Box/Box.js +1 -1
  250. package/modern/ButtonBase/TouchRipple.js +5 -5
  251. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  252. package/modern/CardActionArea/CardActionArea.js +2 -2
  253. package/modern/Container/Container.js +17 -106
  254. package/modern/CssBaseline/CssBaseline.js +4 -4
  255. package/modern/DialogContent/DialogContent.js +2 -2
  256. package/modern/Divider/Divider.js +4 -4
  257. package/modern/Drawer/Drawer.js +6 -6
  258. package/modern/Fab/Fab.js +19 -17
  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 +15 -9
  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/MenuList/MenuList.js +1 -1
  275. package/modern/MobileStepper/MobileStepper.js +5 -5
  276. package/modern/Modal/Modal.js +1 -1
  277. package/modern/PaginationItem/PaginationItem.js +27 -27
  278. package/modern/Paper/Paper.js +8 -7
  279. package/modern/Radio/Radio.js +4 -4
  280. package/modern/Rating/Rating.js +2 -2
  281. package/modern/Select/SelectInput.js +2 -2
  282. package/modern/Slider/Slider.js +1 -5
  283. package/modern/Snackbar/Snackbar.js +1 -1
  284. package/modern/SpeedDial/SpeedDial.js +1 -1
  285. package/modern/StepIcon/StepIcon.js +5 -5
  286. package/modern/StepLabel/StepLabel.js +4 -4
  287. package/modern/Stepper/StepperContext.js +10 -2
  288. package/modern/Stepper/index.js +3 -1
  289. package/modern/SvgIcon/SvgIcon.js +3 -3
  290. package/modern/Tab/Tab.js +7 -7
  291. package/modern/Table/Table.js +1 -1
  292. package/modern/TablePagination/TablePagination.js +1 -1
  293. package/modern/TableRow/TableRow.js +3 -3
  294. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  295. package/modern/Tabs/Tabs.js +4 -4
  296. package/modern/ToggleButton/ToggleButton.js +17 -10
  297. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  298. package/modern/Tooltip/Tooltip.js +5 -5
  299. package/modern/className/index.js +1 -8
  300. package/modern/index.js +1 -1
  301. package/modern/locale/index.js +22 -22
  302. package/modern/styles/createMixins.js +5 -3
  303. package/modern/styles/createPalette.js +2 -1
  304. package/modern/styles/createTheme.js +1 -1
  305. package/modern/styles/experimental_extendTheme.js +71 -44
  306. package/node/Alert/Alert.js +1 -0
  307. package/node/Autocomplete/Autocomplete.js +19 -16
  308. package/node/BottomNavigation/BottomNavigation.js +0 -0
  309. package/node/Box/Box.js +2 -2
  310. package/node/ButtonBase/TouchRipple.js +5 -5
  311. package/node/ButtonGroup/ButtonGroup.js +10 -10
  312. package/node/CardActionArea/CardActionArea.js +2 -2
  313. package/node/Container/Container.js +17 -113
  314. package/node/CssBaseline/CssBaseline.js +4 -4
  315. package/node/DialogContent/DialogContent.js +2 -2
  316. package/node/Divider/Divider.js +4 -4
  317. package/node/Drawer/Drawer.js +6 -6
  318. package/node/Fab/Fab.js +72 -66
  319. package/node/FormControlLabel/FormControlLabel.js +1 -1
  320. package/node/FormHelperText/FormHelperText.js +3 -3
  321. package/node/FormLabel/FormLabel.js +5 -5
  322. package/node/Icon/Icon.js +8 -8
  323. package/node/IconButton/IconButton.js +5 -5
  324. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  325. package/node/Input/Input.js +9 -4
  326. package/node/InputAdornment/InputAdornment.js +1 -1
  327. package/node/InputBase/InputBase.js +14 -8
  328. package/node/Link/Link.js +3 -9
  329. package/node/ListItem/ListItem.js +8 -8
  330. package/node/ListItemButton/ListItemButton.js +15 -9
  331. package/node/ListItemIcon/ListItemIcon.js +1 -1
  332. package/node/ListSubheader/ListSubheader.js +3 -3
  333. package/node/MenuItem/MenuItem.js +8 -8
  334. package/node/MenuList/MenuList.js +1 -1
  335. package/node/MobileStepper/MobileStepper.js +5 -5
  336. package/node/Modal/Modal.js +1 -1
  337. package/node/PaginationItem/PaginationItem.js +27 -27
  338. package/node/Paper/Paper.js +22 -14
  339. package/node/Radio/Radio.js +4 -4
  340. package/node/Rating/Rating.js +2 -2
  341. package/node/Select/SelectInput.js +2 -2
  342. package/node/Slider/Slider.js +1 -5
  343. package/node/Snackbar/Snackbar.js +1 -1
  344. package/node/SpeedDial/SpeedDial.js +1 -1
  345. package/node/StepIcon/StepIcon.js +5 -5
  346. package/node/StepLabel/StepLabel.js +4 -4
  347. package/node/Stepper/StepperContext.js +11 -1
  348. package/node/Stepper/index.js +22 -1
  349. package/node/SvgIcon/SvgIcon.js +4 -4
  350. package/node/Tab/Tab.js +7 -7
  351. package/node/Table/Table.js +1 -1
  352. package/node/TablePagination/TablePagination.js +1 -1
  353. package/node/TableRow/TableRow.js +3 -3
  354. package/node/TableSortLabel/TableSortLabel.js +4 -4
  355. package/node/Tabs/Tabs.js +4 -4
  356. package/node/ToggleButton/ToggleButton.js +17 -10
  357. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  358. package/node/Tooltip/Tooltip.js +5 -5
  359. package/node/className/index.js +2 -2
  360. package/node/index.js +1 -1
  361. package/node/locale/index.js +22 -22
  362. package/node/styles/createMixins.js +5 -3
  363. package/node/styles/createPalette.js +2 -1
  364. package/node/styles/createTheme.js +1 -1
  365. package/node/styles/experimental_extendTheme.js +72 -45
  366. package/package.json +5 -5
  367. package/styles/ThemeProvider.d.ts +1 -1
  368. package/styles/createMixins.d.ts +2 -6
  369. package/styles/createMixins.js +5 -3
  370. package/styles/createPalette.d.ts +10 -3
  371. package/styles/createPalette.js +2 -1
  372. package/styles/createTheme.js +1 -1
  373. package/styles/experimental_extendTheme.d.ts +43 -16
  374. package/styles/experimental_extendTheme.js +72 -45
  375. package/styles/index.d.ts +1 -0
  376. package/transitions/index.d.ts +1 -1
  377. package/transitions/transition.d.ts +13 -13
  378. package/transitions/utils.d.ts +23 -23
  379. package/umd/material-ui.development.js +1079 -894
  380. package/umd/material-ui.production.min.js +21 -21
  381. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  382. package/useTouchRipple/index.d.ts +1 -1
  383. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  384. package/utils/getScrollbarSize.d.ts +2 -2
  385. package/utils/ownerDocument.d.ts +2 -2
  386. package/utils/ownerWindow.d.ts +2 -2
  387. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.4
1
+ /** @license MUI v5.8.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -4724,7 +4724,7 @@
4724
4724
  styles: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func])
4725
4725
  } ;
4726
4726
 
4727
- function styled$2(tag, options) {
4727
+ function styled$3(tag, options) {
4728
4728
  const stylesFactory = emStyled(tag, options);
4729
4729
 
4730
4730
  {
@@ -5565,6 +5565,74 @@
5565
5565
  return output;
5566
5566
  }
5567
5567
 
5568
+ function composeClasses(slots, getUtilityClass, classes) {
5569
+ const output = {};
5570
+ Object.keys(slots).forEach( // `Objet.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
5571
+ // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
5572
+ slot => {
5573
+ output[slot] = slots[slot].reduce((acc, key) => {
5574
+ if (key) {
5575
+ if (classes && classes[key]) {
5576
+ acc.push(classes[key]);
5577
+ }
5578
+
5579
+ acc.push(getUtilityClass(key));
5580
+ }
5581
+
5582
+ return acc;
5583
+ }, []).join(' ');
5584
+ });
5585
+ return output;
5586
+ }
5587
+
5588
+ const defaultGenerator = componentName => componentName;
5589
+
5590
+ const createClassNameGenerator = () => {
5591
+ let generate = defaultGenerator;
5592
+ return {
5593
+ configure(generator) {
5594
+ generate = generator;
5595
+ },
5596
+
5597
+ generate(componentName) {
5598
+ return generate(componentName);
5599
+ },
5600
+
5601
+ reset() {
5602
+ generate = defaultGenerator;
5603
+ }
5604
+
5605
+ };
5606
+ };
5607
+
5608
+ const ClassNameGenerator = createClassNameGenerator();
5609
+ var ClassNameGenerator$1 = ClassNameGenerator;
5610
+
5611
+ const globalStateClassesMapping = {
5612
+ active: 'Mui-active',
5613
+ checked: 'Mui-checked',
5614
+ completed: 'Mui-completed',
5615
+ disabled: 'Mui-disabled',
5616
+ error: 'Mui-error',
5617
+ expanded: 'Mui-expanded',
5618
+ focused: 'Mui-focused',
5619
+ focusVisible: 'Mui-focusVisible',
5620
+ required: 'Mui-required',
5621
+ selected: 'Mui-selected'
5622
+ };
5623
+ function generateUtilityClass(componentName, slot) {
5624
+ const globalStateClass = globalStateClassesMapping[slot];
5625
+ return globalStateClass || `${ClassNameGenerator$1.generate(componentName)}-${slot}`;
5626
+ }
5627
+
5628
+ function generateUtilityClasses(componentName, slots) {
5629
+ const result = {};
5630
+ slots.forEach(slot => {
5631
+ result[slot] = generateUtilityClass(componentName, slot);
5632
+ });
5633
+ return result;
5634
+ }
5635
+
5568
5636
  function merge(acc, item) {
5569
5637
  if (!item) {
5570
5638
  return acc;
@@ -5703,13 +5771,13 @@
5703
5771
  }, {});
5704
5772
  }
5705
5773
 
5706
- function getPath(obj, path) {
5774
+ function getPath(obj, path, checkVars = true) {
5707
5775
  if (!path || typeof path !== 'string') {
5708
5776
  return null;
5709
5777
  } // Check if CSS variables are used
5710
5778
 
5711
5779
 
5712
- if (obj && obj.vars) {
5780
+ if (obj && obj.vars && checkVars) {
5713
5781
  const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
5714
5782
 
5715
5783
  if (val != null) {
@@ -5864,7 +5932,7 @@
5864
5932
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
5865
5933
  var _getPath;
5866
5934
 
5867
- const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
5935
+ const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
5868
5936
 
5869
5937
  if (typeof themeSpacing === 'number') {
5870
5938
  return abs => {
@@ -6696,7 +6764,7 @@
6696
6764
 
6697
6765
  const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
6698
6766
 
6699
- function createTheme$2(options = {}, ...args) {
6767
+ function createTheme$1(options = {}, ...args) {
6700
6768
  const {
6701
6769
  breakpoints: breakpointsInput = {},
6702
6770
  palette: paletteInput = {},
@@ -6819,7 +6887,7 @@
6819
6887
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
6820
6888
  }
6821
6889
 
6822
- const systemDefaultTheme$1 = createTheme$2();
6890
+ const systemDefaultTheme$1 = createTheme$1();
6823
6891
 
6824
6892
  function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6825
6893
  return useTheme$2(defaultTheme);
@@ -6833,7 +6901,7 @@
6833
6901
  generateClassName,
6834
6902
  styleFunctionSx = defaultStyleFunctionSx
6835
6903
  } = options;
6836
- const BoxRoot = styled$2('div')(styleFunctionSx);
6904
+ const BoxRoot = styled$3('div')(styleFunctionSx);
6837
6905
  const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
6838
6906
  const theme = useTheme$1(defaultTheme);
6839
6907
 
@@ -6945,7 +7013,7 @@
6945
7013
  function shouldForwardProp(prop) {
6946
7014
  return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
6947
7015
  }
6948
- const systemDefaultTheme = createTheme$2();
7016
+ const systemDefaultTheme = createTheme$1();
6949
7017
 
6950
7018
  const lowercaseFirstLetter = string => {
6951
7019
  return string.charAt(0).toLowerCase() + string.slice(1);
@@ -6988,7 +7056,7 @@
6988
7056
  shouldForwardPropOption = slotShouldForwardProp;
6989
7057
  }
6990
7058
 
6991
- const defaultStyledResolver = styled$2(tag, _extends({
7059
+ const defaultStyledResolver = styled$3(tag, _extends({
6992
7060
  shouldForwardProp: shouldForwardPropOption,
6993
7061
  label
6994
7062
  }, options));
@@ -7099,6 +7167,9 @@
7099
7167
  };
7100
7168
  }
7101
7169
 
7170
+ const styled$2 = createStyled();
7171
+ var systemStyled = styled$2;
7172
+
7102
7173
  function getThemeProps(params) {
7103
7174
  const {
7104
7175
  theme,
@@ -7645,12 +7716,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7645
7716
  const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
7646
7717
  function getInitColorSchemeScript$1(options) {
7647
7718
  const {
7648
- enableSystem,
7719
+ enableSystem = false,
7649
7720
  defaultLightColorScheme = 'light',
7650
7721
  defaultDarkColorScheme = 'dark',
7651
7722
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7652
7723
  colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7653
- attribute = DEFAULT_ATTRIBUTE
7724
+ attribute = DEFAULT_ATTRIBUTE,
7725
+ colorSchemeNode = 'document.documentElement'
7654
7726
  } = options || {};
7655
7727
  return /*#__PURE__*/jsxRuntime_1("script", {
7656
7728
  // eslint-disable-next-line react/no-danger
@@ -7674,7 +7746,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7674
7746
  colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
7675
7747
  }
7676
7748
  if (colorScheme) {
7677
- document.documentElement.setAttribute('${attribute}', colorScheme);
7749
+ ${colorSchemeNode}.setAttribute('${attribute}', colorScheme);
7678
7750
  }
7679
7751
  } catch (e) {} })();`
7680
7752
  }
@@ -7743,7 +7815,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7743
7815
  defaultDarkColorScheme,
7744
7816
  supportedColorSchemes = [],
7745
7817
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
7746
- colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY
7818
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7819
+ storageWindow = typeof window === 'undefined' ? undefined : window
7747
7820
  } = options;
7748
7821
  const joinedColorSchemes = supportedColorSchemes.join(',');
7749
7822
  const [state, setState] = React__namespace.useState(() => {
@@ -7760,6 +7833,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7760
7833
  setState(currentState => {
7761
7834
  const newMode = !mode ? defaultMode : mode;
7762
7835
 
7836
+ if (mode === currentState.mode) {
7837
+ return currentState;
7838
+ }
7839
+
7763
7840
  if (typeof localStorage !== 'undefined') {
7764
7841
  localStorage.setItem(modeStorageKey, newMode);
7765
7842
  }
@@ -7772,7 +7849,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7772
7849
  }, [modeStorageKey, defaultMode]);
7773
7850
  const setColorScheme = React__namespace.useCallback(value => {
7774
7851
  if (!value || typeof value === 'string') {
7775
- if (value && !supportedColorSchemes.includes(value)) {
7852
+ if (value && !joinedColorSchemes.includes(value)) {
7776
7853
  console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7777
7854
  } else {
7778
7855
  setState(currentState => {
@@ -7799,7 +7876,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7799
7876
  return newState;
7800
7877
  });
7801
7878
  }
7802
- } else if (value.light && !supportedColorSchemes.includes(value.light) || value.dark && !supportedColorSchemes.includes(value.dark)) {
7879
+ } else if (value.light && !joinedColorSchemes.includes(value.light) || value.dark && !joinedColorSchemes.includes(value.dark)) {
7803
7880
  console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
7804
7881
  } else {
7805
7882
  setState(currentState => {
@@ -7824,7 +7901,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7824
7901
  localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
7825
7902
  }
7826
7903
  }
7827
- }, [colorSchemeStorageKey, supportedColorSchemes, defaultLightColorScheme, defaultDarkColorScheme]);
7904
+ }, [joinedColorSchemes, colorSchemeStorageKey, defaultLightColorScheme, defaultDarkColorScheme]);
7828
7905
  const handleMediaQuery = React__namespace.useCallback(e => {
7829
7906
  if (state.mode === 'system') {
7830
7907
  setState(currentState => _extends({}, currentState, {
@@ -7886,9 +7963,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7886
7963
  }
7887
7964
  };
7888
7965
 
7889
- window.addEventListener('storage', handleStorage);
7890
- return () => window.removeEventListener('storage', handleStorage);
7891
- }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode]);
7966
+ if (storageWindow) {
7967
+ // For syncing color-scheme changes between iframes
7968
+ storageWindow.addEventListener('storage', handleStorage);
7969
+ return () => storageWindow.removeEventListener('storage', handleStorage);
7970
+ }
7971
+
7972
+ return undefined;
7973
+ }, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode, storageWindow]);
7892
7974
  return _extends({}, state, {
7893
7975
  colorScheme,
7894
7976
  setMode,
@@ -7958,11 +8040,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7958
8040
  theme: themeProp = defaultTheme,
7959
8041
  prefix = designSystemPrefix,
7960
8042
  modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
8043
+ colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
7961
8044
  attribute = DEFAULT_ATTRIBUTE,
7962
8045
  defaultMode = desisgnSystemMode,
7963
8046
  defaultColorScheme = designSystemColorScheme,
7964
8047
  disableTransitionOnChange = designSystemTransitionOnChange,
7965
- enableColorScheme = designSystemEnableColorScheme
8048
+ enableColorScheme = designSystemEnableColorScheme,
8049
+ storageWindow = typeof window === 'undefined' ? undefined : window,
8050
+ documentNode = typeof document === 'undefined' ? undefined : document,
8051
+ colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
8052
+ colorSchemeSelector = ':root'
7966
8053
  }) {
7967
8054
  const hasMounted = React__namespace.useRef(false);
7968
8055
 
@@ -7988,7 +8075,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7988
8075
  defaultLightColorScheme,
7989
8076
  defaultDarkColorScheme,
7990
8077
  modeStorageKey,
7991
- defaultMode
8078
+ colorSchemeStorageKey,
8079
+ defaultMode,
8080
+ storageWindow
7992
8081
  });
7993
8082
 
7994
8083
  const resolvedColorScheme = (() => {
@@ -8022,7 +8111,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8022
8111
  vars: rootVars,
8023
8112
  getCssVar: createGetCssVar(prefix)
8024
8113
  });
8025
- const styleSheet = {};
8114
+ const defaultColorSchemeStyleSheet = {};
8115
+ const otherColorSchemesStyleSheet = {};
8026
8116
  Object.entries(colorSchemes).forEach(([key, scheme]) => {
8027
8117
  const {
8028
8118
  css,
@@ -8058,54 +8148,54 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8058
8148
  })();
8059
8149
 
8060
8150
  if (key === resolvedDefaultColorScheme) {
8061
- styleSheet[':root'] = css;
8151
+ defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
8062
8152
  } else {
8063
- styleSheet[`[${attribute}="${key}"]`] = css;
8153
+ otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8064
8154
  }
8065
8155
  });
8066
8156
  React__namespace.useEffect(() => {
8067
- if (colorScheme) {
8157
+ if (colorScheme && colorSchemeNode) {
8068
8158
  // attaches attribute to <html> because the css variables are attached to :root (html)
8069
- document.documentElement.setAttribute(attribute, colorScheme);
8159
+ colorSchemeNode.setAttribute(attribute, colorScheme);
8070
8160
  }
8071
- }, [colorScheme, attribute]);
8161
+ }, [colorScheme, attribute, colorSchemeNode]);
8072
8162
  useEnhancedEffect$1(() => {
8073
- if (!mode || !enableColorScheme) {
8163
+ if (!mode || !enableColorScheme || !colorSchemeNode) {
8074
8164
  return undefined;
8075
8165
  }
8076
8166
 
8077
- const priorColorScheme = document.documentElement.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8167
+ const priorColorScheme = colorSchemeNode.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
8078
8168
 
8079
8169
  if (mode === 'system') {
8080
- document.documentElement.style.setProperty('color-scheme', systemMode);
8170
+ colorSchemeNode.style.setProperty('color-scheme', systemMode);
8081
8171
  } else {
8082
- document.documentElement.style.setProperty('color-scheme', mode);
8172
+ colorSchemeNode.style.setProperty('color-scheme', mode);
8083
8173
  }
8084
8174
 
8085
8175
  return () => {
8086
- document.documentElement.style.setProperty('color-scheme', priorColorScheme);
8176
+ colorSchemeNode.style.setProperty('color-scheme', priorColorScheme);
8087
8177
  };
8088
- }, [mode, systemMode, enableColorScheme]);
8178
+ }, [mode, systemMode, enableColorScheme, colorSchemeNode]);
8089
8179
  React__namespace.useEffect(() => {
8090
8180
  let timer;
8091
8181
 
8092
- if (disableTransitionOnChange && hasMounted.current) {
8182
+ if (disableTransitionOnChange && hasMounted.current && documentNode) {
8093
8183
  // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
8094
- const css = document.createElement('style');
8095
- css.appendChild(document.createTextNode(DISABLE_CSS_TRANSITION));
8096
- document.head.appendChild(css); // Force browser repaint
8184
+ const css = documentNode.createElement('style');
8185
+ css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));
8186
+ documentNode.head.appendChild(css); // Force browser repaint
8097
8187
 
8098
- (() => window.getComputedStyle(document.body))();
8188
+ (() => window.getComputedStyle(documentNode.body))();
8099
8189
 
8100
8190
  timer = setTimeout(() => {
8101
- document.head.removeChild(css);
8191
+ documentNode.head.removeChild(css);
8102
8192
  }, 1);
8103
8193
  }
8104
8194
 
8105
8195
  return () => {
8106
8196
  clearTimeout(timer);
8107
8197
  };
8108
- }, [colorScheme, disableTransitionOnChange]);
8198
+ }, [colorScheme, disableTransitionOnChange, documentNode]);
8109
8199
  React__namespace.useEffect(() => {
8110
8200
  hasMounted.current = true;
8111
8201
  return () => {
@@ -8124,10 +8214,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8124
8214
  },
8125
8215
  children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8126
8216
  styles: {
8127
- ':root': rootCss
8217
+ [colorSchemeSelector]: rootCss
8128
8218
  }
8129
8219
  }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8130
- styles: styleSheet
8220
+ styles: defaultColorSchemeStyleSheet
8221
+ }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8222
+ styles: otherColorSchemesStyleSheet
8131
8223
  }), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
8132
8224
  theme: resolveTheme ? resolveTheme(theme) : theme,
8133
8225
  children: children
@@ -8146,6 +8238,21 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8146
8238
  */
8147
8239
  children: PropTypes.node,
8148
8240
 
8241
+ /**
8242
+ * The node used to attach the color-scheme attribute
8243
+ */
8244
+ colorSchemeNode: PropTypes.any,
8245
+
8246
+ /**
8247
+ * The CSS selector for attaching the generated custom properties
8248
+ */
8249
+ colorSchemeSelector: PropTypes.string,
8250
+
8251
+ /**
8252
+ * localStorage key used to store `colorScheme`
8253
+ */
8254
+ colorSchemeStorageKey: PropTypes.string,
8255
+
8149
8256
  /**
8150
8257
  * The initial color scheme used.
8151
8258
  */
@@ -8161,6 +8268,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8161
8268
  */
8162
8269
  disableTransitionOnChange: PropTypes.bool,
8163
8270
 
8271
+ /**
8272
+ * The document to attach the attribute to
8273
+ */
8274
+ documentNode: PropTypes.any,
8275
+
8164
8276
  /**
8165
8277
  * Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
8166
8278
  */
@@ -8176,6 +8288,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8176
8288
  */
8177
8289
  prefix: PropTypes.string,
8178
8290
 
8291
+ /**
8292
+ * The window that attaches the 'storage' event listener
8293
+ * @default window
8294
+ */
8295
+ storageWindow: PropTypes.any,
8296
+
8179
8297
  /**
8180
8298
  * The calculated theme object that will be passed through context.
8181
8299
  */
@@ -8188,7 +8306,149 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8188
8306
  };
8189
8307
  }
8190
8308
 
8191
- const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8309
+ const _excluded$2e = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
8310
+ const defaultTheme$4 = createTheme$1();
8311
+ const defaultCreateStyledComponent = systemStyled('div', {
8312
+ name: 'MuiContainer',
8313
+ slot: 'Root',
8314
+ overridesResolver: (props, styles) => {
8315
+ const {
8316
+ ownerState
8317
+ } = props;
8318
+ return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
8319
+ }
8320
+ });
8321
+
8322
+ const useThemePropsDefault = inProps => useThemeProps$1({
8323
+ props: inProps,
8324
+ name: 'MuiContainer',
8325
+ defaultTheme: defaultTheme$4
8326
+ });
8327
+
8328
+ const useUtilityClasses$1P = (ownerState, componentName) => {
8329
+ const getContainerUtilityClass = slot => {
8330
+ return generateUtilityClass(componentName, slot);
8331
+ };
8332
+
8333
+ const {
8334
+ classes,
8335
+ fixed,
8336
+ disableGutters,
8337
+ maxWidth
8338
+ } = ownerState;
8339
+ const slots = {
8340
+ root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
8341
+ };
8342
+ return composeClasses(slots, getContainerUtilityClass, classes);
8343
+ };
8344
+
8345
+ function createContainer(options = {}) {
8346
+ const {
8347
+ // This will allow adding custom styled fn (for example for custom sx style function)
8348
+ createStyledComponent = defaultCreateStyledComponent,
8349
+ useThemeProps = useThemePropsDefault,
8350
+ componentName = 'MuiContainer'
8351
+ } = options;
8352
+ const ContainerRoot = createStyledComponent(({
8353
+ theme,
8354
+ ownerState
8355
+ }) => _extends({
8356
+ width: '100%',
8357
+ marginLeft: 'auto',
8358
+ boxSizing: 'border-box',
8359
+ marginRight: 'auto',
8360
+ display: 'block'
8361
+ }, !ownerState.disableGutters && {
8362
+ paddingLeft: theme.spacing(2),
8363
+ paddingRight: theme.spacing(2),
8364
+ // @ts-ignore module augmentation fails if custom breakpoints are used
8365
+ [theme.breakpoints.up('sm')]: {
8366
+ paddingLeft: theme.spacing(3),
8367
+ paddingRight: theme.spacing(3)
8368
+ }
8369
+ }), ({
8370
+ theme,
8371
+ ownerState
8372
+ }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpointValueKey) => {
8373
+ const breakpoint = breakpointValueKey;
8374
+ const value = theme.breakpoints.values[breakpoint];
8375
+
8376
+ if (value !== 0) {
8377
+ // @ts-ignore
8378
+ acc[theme.breakpoints.up(breakpoint)] = {
8379
+ maxWidth: `${value}${theme.breakpoints.unit}`
8380
+ };
8381
+ }
8382
+
8383
+ return acc;
8384
+ }, {}), ({
8385
+ theme,
8386
+ ownerState
8387
+ }) => _extends({}, ownerState.maxWidth === 'xs' && {
8388
+ // @ts-ignore module augmentation fails if custom breakpoints are used
8389
+ [theme.breakpoints.up('xs')]: {
8390
+ // @ts-ignore module augmentation fails if custom breakpoints are used
8391
+ maxWidth: Math.max(theme.breakpoints.values.xs, 444)
8392
+ }
8393
+ }, ownerState.maxWidth && // @ts-ignore module augmentation fails if custom breakpoints are used
8394
+ ownerState.maxWidth !== 'xs' && {
8395
+ // @ts-ignore module augmentation fails if custom breakpoints are used
8396
+ [theme.breakpoints.up(ownerState.maxWidth)]: {
8397
+ // @ts-ignore module augmentation fails if custom breakpoints are used
8398
+ maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`
8399
+ }
8400
+ }));
8401
+ const Container = /*#__PURE__*/React__namespace.forwardRef(function Container(inProps, ref) {
8402
+ const props = useThemeProps(inProps);
8403
+
8404
+ const {
8405
+ className,
8406
+ component = 'div',
8407
+ disableGutters = false,
8408
+ fixed = false,
8409
+ maxWidth = 'lg'
8410
+ } = props,
8411
+ other = _objectWithoutPropertiesLoose(props, _excluded$2e);
8412
+
8413
+ const ownerState = _extends({}, props, {
8414
+ component,
8415
+ disableGutters,
8416
+ fixed,
8417
+ maxWidth
8418
+ }); // @ts-ignore module augmentation fails if custom breakpoints are used
8419
+
8420
+
8421
+ const classes = useUtilityClasses$1P(ownerState, componentName);
8422
+ return (
8423
+ /*#__PURE__*/
8424
+ // @ts-ignore theme is injected by the styled util
8425
+ jsxRuntime_1(ContainerRoot, _extends({
8426
+ as: component // @ts-ignore module augmentation fails if custom breakpoints are used
8427
+ ,
8428
+ ownerState: ownerState,
8429
+ className: clsx(classes.root, className),
8430
+ ref: ref
8431
+ }, other))
8432
+ );
8433
+ });
8434
+ Container.propTypes
8435
+ /* remove-proptypes */
8436
+ = {
8437
+ children: PropTypes.node,
8438
+ classes: PropTypes.object,
8439
+ className: PropTypes.string,
8440
+ component: PropTypes.elementType,
8441
+ disableGutters: PropTypes.bool,
8442
+ fixed: PropTypes.bool,
8443
+ maxWidth: PropTypes
8444
+ /* @typescript-to-proptypes-ignore */
8445
+ .oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),
8446
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
8447
+ } ;
8448
+ return Container;
8449
+ }
8450
+
8451
+ const _excluded$2d = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8192
8452
  _excluded2$b = ["type", "mode"];
8193
8453
  function adaptV4Theme(inputTheme) {
8194
8454
  {
@@ -8203,7 +8463,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8203
8463
  props = {},
8204
8464
  styleOverrides = {}
8205
8465
  } = inputTheme,
8206
- other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2e);
8466
+ other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2d);
8207
8467
 
8208
8468
  const theme = _extends({}, other, {
8209
8469
  components: {}
@@ -8603,7 +8863,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8603
8863
  if (reason === 'keyboard') {
8604
8864
  option.classList.add('Mui-focusVisible');
8605
8865
  } // Scroll active descendant into view.
8606
- // Logic copied from https://www.w3.org/TR/wai-aria-practices/examples/listbox/js/listbox.js
8866
+ // Logic copied from https://www.w3.org/WAI/ARIA/apg/example-index/combobox/js/select-only.js
8607
8867
  //
8608
8868
  // Consider this API instead once it has a better browser support:
8609
8869
  // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
@@ -8809,7 +9069,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8809
9069
  };
8810
9070
 
8811
9071
  const handleValue = (event, newValue, reason, details) => {
8812
- if (Array.isArray(value)) {
9072
+ if (multiple) {
8813
9073
  if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {
8814
9074
  return;
8815
9075
  }
@@ -8893,7 +9153,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8893
9153
  return;
8894
9154
  }
8895
9155
 
8896
- handleClose(event, 'toggleInput');
9156
+ if (inputValue === '') {
9157
+ handleClose(event, 'toggleInput');
9158
+ }
9159
+
8897
9160
  let nextTag = focusedTag;
8898
9161
 
8899
9162
  if (focusedTag === -1) {
@@ -9328,26 +9591,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9328
9591
  };
9329
9592
  }
9330
9593
 
9331
- function composeClasses(slots, getUtilityClass, classes) {
9332
- const output = {};
9333
- Object.keys(slots).forEach( // `Objet.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
9334
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
9335
- slot => {
9336
- output[slot] = slots[slot].reduce((acc, key) => {
9337
- if (key) {
9338
- if (classes && classes[key]) {
9339
- acc.push(classes[key]);
9340
- }
9341
-
9342
- acc.push(getUtilityClass(key));
9343
- }
9344
-
9345
- return acc;
9346
- }, []).join(' ');
9347
- });
9348
- return output;
9349
- }
9350
-
9351
9594
  function useBadge(props) {
9352
9595
  const {
9353
9596
  badgeContent: badgeContentProp,
@@ -9378,62 +9621,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9378
9621
  };
9379
9622
  }
9380
9623
 
9381
- const defaultGenerator = componentName => componentName;
9382
-
9383
- const createClassNameGenerator = () => {
9384
- let generate = defaultGenerator;
9385
- return {
9386
- configure(generator) {
9387
- generate = generator;
9388
- },
9389
-
9390
- generate(componentName) {
9391
- return generate(componentName);
9392
- },
9393
-
9394
- reset() {
9395
- generate = defaultGenerator;
9396
- }
9397
-
9398
- };
9399
- };
9400
-
9401
- const ClassNameGenerator = createClassNameGenerator();
9402
- var ClassNameGenerator$1 = ClassNameGenerator;
9403
-
9404
- const globalStateClassesMapping = {
9405
- active: 'Mui-active',
9406
- checked: 'Mui-checked',
9407
- completed: 'Mui-completed',
9408
- disabled: 'Mui-disabled',
9409
- error: 'Mui-error',
9410
- expanded: 'Mui-expanded',
9411
- focused: 'Mui-focused',
9412
- focusVisible: 'Mui-focusVisible',
9413
- required: 'Mui-required',
9414
- selected: 'Mui-selected'
9415
- };
9416
- function generateUtilityClass(componentName, slot) {
9417
- const globalStateClass = globalStateClassesMapping[slot];
9418
- return globalStateClass || `${ClassNameGenerator$1.generate(componentName)}-${slot}`;
9419
- }
9420
-
9421
- function generateUtilityClasses(componentName, slots) {
9422
- const result = {};
9423
- slots.forEach(slot => {
9424
- result[slot] = generateUtilityClass(componentName, slot);
9425
- });
9426
- return result;
9427
- }
9428
-
9429
9624
  function getBadgeUnstyledUtilityClass(slot) {
9430
9625
  return generateUtilityClass('BaseBadge', slot);
9431
9626
  }
9432
9627
  generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
9433
9628
 
9434
- const _excluded$2d = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
9629
+ const _excluded$2c = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
9435
9630
 
9436
- const useUtilityClasses$1P = ownerState => {
9631
+ const useUtilityClasses$1O = ownerState => {
9437
9632
  const {
9438
9633
  invisible
9439
9634
  } = ownerState;
@@ -9454,7 +9649,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9454
9649
  max: maxProp = 99,
9455
9650
  showZero = false
9456
9651
  } = props,
9457
- other = _objectWithoutPropertiesLoose(props, _excluded$2d);
9652
+ other = _objectWithoutPropertiesLoose(props, _excluded$2c);
9458
9653
 
9459
9654
  const {
9460
9655
  badgeContent,
@@ -9472,7 +9667,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9472
9667
  showZero
9473
9668
  });
9474
9669
 
9475
- const classes = useUtilityClasses$1P(ownerState);
9670
+ const classes = useUtilityClasses$1O(ownerState);
9476
9671
  const Root = component || components.Root || 'span';
9477
9672
  const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
9478
9673
  const Badge = components.Badge || 'span';
@@ -9721,7 +9916,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9721
9916
  * The mouse event to listen to. You can disable the listener by providing `false`.
9722
9917
  * @default 'onClick'
9723
9918
  */
9724
- mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', false]),
9919
+ mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', 'onPointerDown', 'onPointerUp', false]),
9725
9920
 
9726
9921
  /**
9727
9922
  * Callback fired when a "click away" event is detected.
@@ -11786,7 +11981,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11786
11981
 
11787
11982
  var Portal$1 = Portal;
11788
11983
 
11789
- const _excluded$2c = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
11984
+ const _excluded$2b = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
11790
11985
  _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
11791
11986
 
11792
11987
  function flipPlacement(placement, direction) {
@@ -11832,7 +12027,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11832
12027
  popperRef: popperRefProp,
11833
12028
  TransitionProps
11834
12029
  } = props,
11835
- other = _objectWithoutPropertiesLoose(props, _excluded$2c);
12030
+ other = _objectWithoutPropertiesLoose(props, _excluded$2b);
11836
12031
 
11837
12032
  const tooltipRef = React__namespace.useRef(null);
11838
12033
  const ownRef = useForkRef(tooltipRef, ref);
@@ -12722,9 +12917,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12722
12917
  const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
12723
12918
  var modalUnstyledClasses$1 = modalUnstyledClasses;
12724
12919
 
12725
- const _excluded$2b = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
12920
+ const _excluded$2a = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
12726
12921
 
12727
- const useUtilityClasses$1O = ownerState => {
12922
+ const useUtilityClasses$1N = ownerState => {
12728
12923
  const {
12729
12924
  open,
12730
12925
  exited,
@@ -12794,7 +12989,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12794
12989
  onTransitionEnter,
12795
12990
  onTransitionExited
12796
12991
  } = props,
12797
- other = _objectWithoutPropertiesLoose(props, _excluded$2b);
12992
+ other = _objectWithoutPropertiesLoose(props, _excluded$2a);
12798
12993
 
12799
12994
  const [exited, setExited] = React__namespace.useState(true);
12800
12995
  const modal = React__namespace.useRef({});
@@ -12871,7 +13066,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12871
13066
  keepMounted
12872
13067
  });
12873
13068
 
12874
- const classes = useUtilityClasses$1O(ownerState);
13069
+ const classes = useUtilityClasses$1N(ownerState);
12875
13070
 
12876
13071
  if (!keepMounted && !open && (!hasTransition || exited)) {
12877
13072
  return null;
@@ -13717,6 +13912,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13717
13912
  newValue
13718
13913
  } = getFingerNewValue({
13719
13914
  finger,
13915
+ move: true,
13720
13916
  values
13721
13917
  });
13722
13918
  setActive(-1);
@@ -13943,11 +14139,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13943
14139
  };
13944
14140
  }
13945
14141
 
13946
- const _excluded$2a = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
14142
+ const _excluded$29 = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
13947
14143
 
13948
14144
  const Identity = x => x;
13949
14145
 
13950
- const useUtilityClasses$1N = ownerState => {
14146
+ const useUtilityClasses$1M = ownerState => {
13951
14147
  const {
13952
14148
  disabled,
13953
14149
  dragging,
@@ -14004,12 +14200,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14004
14200
  components = {},
14005
14201
  componentsProps = {}
14006
14202
  } = props,
14007
- other = _objectWithoutPropertiesLoose(props, _excluded$2a); // all props with defaults
14203
+ other = _objectWithoutPropertiesLoose(props, _excluded$29); // all props with defaults
14008
14204
  // consider extracting to hook an reusing the lint rule for the varints
14009
14205
 
14010
14206
 
14011
14207
  const ownerState = _extends({}, props, {
14012
- mark: marksProp,
14208
+ marks: marksProp,
14013
14209
  classes: classesProp,
14014
14210
  disabled,
14015
14211
  isRtl,
@@ -14063,7 +14259,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14063
14259
  const Input = components.Input || 'input';
14064
14260
  const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
14065
14261
  const hiddenInputProps = getHiddenInputProps();
14066
- const classes = useUtilityClasses$1N(ownerState);
14262
+ const classes = useUtilityClasses$1M(ownerState);
14067
14263
  return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
14068
14264
  onMouseDown
14069
14265
  }), {
@@ -14073,7 +14269,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14073
14269
  })), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
14074
14270
  className: clsx(classes.track, trackProps.className),
14075
14271
  style: _extends({}, trackStyle, trackProps.style)
14076
- })), marks.map((mark, index) => {
14272
+ })), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
14077
14273
  const percent = valueToPercent(mark.value, min, max);
14078
14274
  const style = axisProps[axis].offset(percent);
14079
14275
  let markActive;
@@ -14403,7 +14599,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14403
14599
  } ;
14404
14600
  var SliderUnstyled$1 = SliderUnstyled;
14405
14601
 
14406
- const _excluded$29 = ["onChange", "maxRows", "minRows", "style", "value"];
14602
+ const _excluded$28 = ["onChange", "maxRows", "minRows", "style", "value"];
14407
14603
 
14408
14604
  function getStyleValue(computedStyle, property) {
14409
14605
  return parseInt(computedStyle[property], 10) || 0;
@@ -14432,7 +14628,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14432
14628
  style,
14433
14629
  value
14434
14630
  } = props,
14435
- other = _objectWithoutPropertiesLoose(props, _excluded$29);
14631
+ other = _objectWithoutPropertiesLoose(props, _excluded$28);
14436
14632
 
14437
14633
  const {
14438
14634
  current: isControlled
@@ -14618,12 +14814,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14618
14814
  } ;
14619
14815
  var TextareaAutosize$1 = TextareaAutosize;
14620
14816
 
14621
- function createMixins(breakpoints, spacing, mixins) {
14817
+ function createMixins(breakpoints, mixins) {
14622
14818
  return _extends({
14623
14819
  toolbar: {
14624
14820
  minHeight: 56,
14625
- [`${breakpoints.up('xs')} and (orientation: landscape)`]: {
14626
- minHeight: 48
14821
+ [breakpoints.up('xs')]: {
14822
+ '@media (orientation: landscape)': {
14823
+ minHeight: 48
14824
+ }
14627
14825
  },
14628
14826
  [breakpoints.up('sm')]: {
14629
14827
  minHeight: 64
@@ -14632,7 +14830,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14632
14830
  }, mixins);
14633
14831
  }
14634
14832
 
14635
- const _excluded$28 = ["mode", "contrastThreshold", "tonalOffset"];
14833
+ const _excluded$27 = ["mode", "contrastThreshold", "tonalOffset"];
14636
14834
  const light = {
14637
14835
  // The colors used to style the text.
14638
14836
  text: {
@@ -14816,7 +15014,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14816
15014
  contrastThreshold = 3,
14817
15015
  tonalOffset = 0.2
14818
15016
  } = palette,
14819
- other = _objectWithoutPropertiesLoose(palette, _excluded$28);
15017
+ other = _objectWithoutPropertiesLoose(palette, _excluded$27);
14820
15018
 
14821
15019
  const primary = palette.primary || getDefaultPrimary(mode);
14822
15020
  const secondary = palette.secondary || getDefaultSecondary(mode);
@@ -14899,7 +15097,8 @@ const theme2 = createTheme({ palette: {
14899
15097
 
14900
15098
  const paletteOutput = deepmerge(_extends({
14901
15099
  // A collection of common colors.
14902
- common: common$1,
15100
+ common: _extends({}, common$1),
15101
+ // prevent mutable object.
14903
15102
  // The palette mode, can be light or dark.
14904
15103
  mode,
14905
15104
  // The colors used to represent primary interface elements for a user.
@@ -14952,7 +15151,7 @@ const theme2 = createTheme({ palette: {
14952
15151
  return paletteOutput;
14953
15152
  }
14954
15153
 
14955
- const _excluded$27 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
15154
+ const _excluded$26 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
14956
15155
 
14957
15156
  function round$1(value) {
14958
15157
  return Math.round(value * 1e5) / 1e5;
@@ -14985,7 +15184,7 @@ const theme2 = createTheme({ palette: {
14985
15184
  allVariants,
14986
15185
  pxToRem: pxToRem2
14987
15186
  } = _ref,
14988
- other = _objectWithoutPropertiesLoose(_ref, _excluded$27);
15187
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$26);
14989
15188
 
14990
15189
  {
14991
15190
  if (typeof fontSize !== 'number') {
@@ -15053,7 +15252,7 @@ const theme2 = createTheme({ palette: {
15053
15252
  const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
15054
15253
  var shadows$1 = shadows;
15055
15254
 
15056
- const _excluded$26 = ["duration", "easing", "delay"];
15255
+ const _excluded$25 = ["duration", "easing", "delay"];
15057
15256
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
15058
15257
  // to learn the context in which each easing should be used.
15059
15258
  const easing = {
@@ -15108,7 +15307,7 @@ const theme2 = createTheme({ palette: {
15108
15307
  easing: easingOption = mergedEasing.easeInOut,
15109
15308
  delay = 0
15110
15309
  } = options,
15111
- other = _objectWithoutPropertiesLoose(options, _excluded$26);
15310
+ other = _objectWithoutPropertiesLoose(options, _excluded$25);
15112
15311
 
15113
15312
  {
15114
15313
  const isString = value => typeof value === 'string'; // IE11 support, replace with Number.isNaN
@@ -15164,21 +15363,21 @@ const theme2 = createTheme({ palette: {
15164
15363
  };
15165
15364
  var zIndex$1 = zIndex;
15166
15365
 
15167
- const _excluded$25 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
15366
+ const _excluded$24 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
15168
15367
 
15169
- function createTheme$1(options = {}, ...args) {
15368
+ function createTheme(options = {}, ...args) {
15170
15369
  const {
15171
15370
  mixins: mixinsInput = {},
15172
15371
  palette: paletteInput = {},
15173
15372
  transitions: transitionsInput = {},
15174
15373
  typography: typographyInput = {}
15175
15374
  } = options,
15176
- other = _objectWithoutPropertiesLoose(options, _excluded$25);
15375
+ other = _objectWithoutPropertiesLoose(options, _excluded$24);
15177
15376
 
15178
15377
  const palette = createPalette(paletteInput);
15179
- const systemTheme = createTheme$2(options);
15378
+ const systemTheme = createTheme$1(options);
15180
15379
  let muiTheme = deepmerge(systemTheme, {
15181
- mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
15380
+ mixins: createMixins(systemTheme.breakpoints, mixinsInput),
15182
15381
  palette,
15183
15382
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
15184
15383
  shadows: shadows$1.slice(),
@@ -15235,11 +15434,11 @@ const theme2 = createTheme({ palette: {
15235
15434
  }
15236
15435
  }
15237
15436
 
15238
- return createTheme$1(...args);
15437
+ return createTheme(...args);
15239
15438
  }
15240
15439
 
15241
15440
  function createMuiStrictModeTheme(options, ...args) {
15242
- return createTheme$1(deepmerge({
15441
+ return createTheme(deepmerge({
15243
15442
  unstable_strictMode: true
15244
15443
  }, options), ...args);
15245
15444
  }
@@ -15446,7 +15645,7 @@ Use unitless line heights instead.` );
15446
15645
  return theme;
15447
15646
  }
15448
15647
 
15449
- const defaultTheme$2 = createTheme$1();
15648
+ const defaultTheme$2 = createTheme();
15450
15649
  var defaultTheme$3 = defaultTheme$2;
15451
15650
 
15452
15651
  function useTheme() {
@@ -15497,52 +15696,254 @@ You have to import it from @mui/styles.
15497
15696
  See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15498
15697
  }
15499
15698
 
15500
- const _excluded$24 = ["colorSchemes", "opacity"],
15501
- _excluded2$9 = ["palette"];
15502
- const defaultOpacity = {
15503
- active: 0.54,
15504
- hover: 0.04,
15505
- selected: 0.08,
15506
- disabled: 0.26,
15507
- focus: 0.12
15699
+ function getPaperUtilityClass(slot) {
15700
+ return generateUtilityClass('MuiPaper', slot);
15701
+ }
15702
+ const paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
15703
+ var paperClasses$1 = paperClasses;
15704
+
15705
+ const _excluded$23 = ["className", "component", "elevation", "square", "variant"];
15706
+ const getOverlayAlpha = elevation => {
15707
+ let alphaValue;
15708
+
15709
+ if (elevation < 1) {
15710
+ alphaValue = 5.11916 * elevation ** 2;
15711
+ } else {
15712
+ alphaValue = 4.5 * Math.log(elevation + 1) + 2;
15713
+ }
15714
+
15715
+ return (alphaValue / 100).toFixed(2);
15508
15716
  };
15509
15717
 
15510
- function createTheme(options = {}, ...args) {
15511
- var _colorSchemesInput$li, _colorSchemesInput$da;
15718
+ const useUtilityClasses$1L = ownerState => {
15719
+ const {
15720
+ square,
15721
+ elevation,
15722
+ variant,
15723
+ classes
15724
+ } = ownerState;
15725
+ const slots = {
15726
+ root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
15727
+ };
15728
+ return composeClasses(slots, getPaperUtilityClass, classes);
15729
+ };
15730
+
15731
+ const PaperRoot = styled$1('div', {
15732
+ name: 'MuiPaper',
15733
+ slot: 'Root',
15734
+ overridesResolver: (props, styles) => {
15735
+ const {
15736
+ ownerState
15737
+ } = props;
15738
+ return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
15739
+ }
15740
+ })(({
15741
+ theme,
15742
+ ownerState
15743
+ }) => {
15744
+ var _theme$vars$overlays;
15745
+
15746
+ return _extends({
15747
+ backgroundColor: (theme.vars || theme).palette.background.paper,
15748
+ color: (theme.vars || theme).palette.text.primary,
15749
+ transition: theme.transitions.create('box-shadow')
15750
+ }, !ownerState.square && {
15751
+ borderRadius: theme.shape.borderRadius
15752
+ }, ownerState.variant === 'outlined' && {
15753
+ border: `1px solid ${(theme.vars || theme).palette.divider}`
15754
+ }, ownerState.variant === 'elevation' && _extends({
15755
+ boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
15756
+ }, !theme.vars && theme.palette.mode === 'dark' && {
15757
+ backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
15758
+ }, theme.vars && {
15759
+ backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
15760
+ }));
15761
+ });
15762
+ const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
15763
+ const props = useThemeProps({
15764
+ props: inProps,
15765
+ name: 'MuiPaper'
15766
+ });
15512
15767
 
15513
15768
  const {
15514
- colorSchemes: colorSchemesInput = {},
15515
- opacity: opacityInput = {}
15516
- } = options,
15517
- input = _objectWithoutPropertiesLoose(options, _excluded$24); // eslint-disable-next-line prefer-const
15769
+ className,
15770
+ component = 'div',
15771
+ elevation = 1,
15772
+ square = false,
15773
+ variant = 'elevation'
15774
+ } = props,
15775
+ other = _objectWithoutPropertiesLoose(props, _excluded$23);
15776
+
15777
+ const ownerState = _extends({}, props, {
15778
+ component,
15779
+ elevation,
15780
+ square,
15781
+ variant
15782
+ });
15783
+
15784
+ const classes = useUtilityClasses$1L(ownerState);
15785
+
15786
+ {
15787
+ // eslint-disable-next-line react-hooks/rules-of-hooks
15788
+ const theme = useTheme();
15789
+
15790
+ if (theme.shadows[elevation] === undefined) {
15791
+ console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
15792
+ }
15793
+ }
15794
+
15795
+ return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
15796
+ as: component,
15797
+ ownerState: ownerState,
15798
+ className: clsx(classes.root, className),
15799
+ ref: ref
15800
+ }, other));
15801
+ });
15802
+ Paper.propTypes
15803
+ /* remove-proptypes */
15804
+ = {
15805
+ // ----------------------------- Warning --------------------------------
15806
+ // | These PropTypes are generated from the TypeScript type definitions |
15807
+ // | To update them edit the d.ts file and run "yarn proptypes" |
15808
+ // ----------------------------------------------------------------------
15809
+
15810
+ /**
15811
+ * The content of the component.
15812
+ */
15813
+ children: PropTypes.node,
15814
+
15815
+ /**
15816
+ * Override or extend the styles applied to the component.
15817
+ */
15818
+ classes: PropTypes.object,
15819
+
15820
+ /**
15821
+ * @ignore
15822
+ */
15823
+ className: PropTypes.string,
15824
+
15825
+ /**
15826
+ * The component used for the root node.
15827
+ * Either a string to use a HTML element or a component.
15828
+ */
15829
+ component: PropTypes.elementType,
15830
+
15831
+ /**
15832
+ * Shadow depth, corresponds to `dp` in the spec.
15833
+ * It accepts values between 0 and 24 inclusive.
15834
+ * @default 1
15835
+ */
15836
+ elevation: chainPropTypes(integerPropType, props => {
15837
+ const {
15838
+ elevation,
15839
+ variant
15840
+ } = props;
15841
+
15842
+ if (elevation > 0 && variant === 'outlined') {
15843
+ return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
15844
+ }
15845
+
15846
+ return null;
15847
+ }),
15848
+
15849
+ /**
15850
+ * If `true`, rounded corners are disabled.
15851
+ * @default false
15852
+ */
15853
+ square: PropTypes.bool,
15854
+
15855
+ /**
15856
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15857
+ */
15858
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
15859
+
15860
+ /**
15861
+ * The variant to use.
15862
+ * @default 'elevation'
15863
+ */
15864
+ variant: PropTypes
15865
+ /* @typescript-to-proptypes-ignore */
15866
+ .oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
15867
+ } ;
15868
+ var Paper$1 = Paper;
15869
+
15870
+ const _excluded$22 = ["colorSchemes"],
15871
+ _excluded2$9 = ["palette"];
15872
+ const defaultDarkOverlays = [...Array(25)].map((_, index) => {
15873
+ if (index === 0) {
15874
+ return undefined;
15875
+ }
15876
+
15877
+ const overlay = getOverlayAlpha(index);
15878
+ return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
15879
+ });
15880
+ function extendTheme(options = {}, ...args) {
15881
+ var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
15518
15882
 
15883
+ const {
15884
+ colorSchemes: colorSchemesInput = {}
15885
+ } = options,
15886
+ input = _objectWithoutPropertiesLoose(options, _excluded$22);
15519
15887
 
15520
- let _createThemeWithoutVa = createTheme$1(_extends({}, input, colorSchemesInput.light && {
15888
+ const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
15521
15889
  palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
15522
15890
  })),
15523
- {
15891
+ {
15524
15892
  palette: lightPalette
15525
15893
  } = _createThemeWithoutVa,
15526
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15894
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
15527
15895
 
15528
15896
  const {
15529
15897
  palette: darkPalette
15530
- } = createTheme$1({
15898
+ } = createTheme({
15531
15899
  palette: _extends({
15532
15900
  mode: 'dark'
15533
15901
  }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
15534
15902
  });
15535
- colorSchemesInput.light = {
15536
- palette: lightPalette
15537
- };
15538
- colorSchemesInput.dark = {
15539
- palette: darkPalette
15540
- };
15541
- const colorSchemes = {};
15542
- Object.keys(colorSchemesInput).forEach(key => {
15543
- const palette = createPalette(colorSchemesInput[key].palette);
15903
+
15904
+ let theme = _extends({}, muiTheme, {
15905
+ colorSchemes: _extends({}, colorSchemesInput, {
15906
+ light: _extends({}, colorSchemesInput.light, {
15907
+ palette: lightPalette,
15908
+ opacity: _extends({
15909
+ placeholder: 0.42,
15910
+ inputTouchBottomLine: 0.42
15911
+ }, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
15912
+ overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
15913
+ }),
15914
+ dark: _extends({}, colorSchemesInput.dark, {
15915
+ palette: darkPalette,
15916
+ opacity: _extends({
15917
+ placeholder: 0.5,
15918
+ inputTouchBottomLine: 0.7
15919
+ }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
15920
+ overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
15921
+ })
15922
+ })
15923
+ });
15924
+
15925
+ Object.keys(theme.colorSchemes).forEach(key => {
15926
+ const palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
15927
+
15928
+ if (key === 'dark') {
15929
+ palette.common.background = palette.common.background || '#000';
15930
+ palette.common.onBackground = palette.common.onBackground || '#fff';
15931
+ } else {
15932
+ palette.common.background = palette.common.background || '#fff';
15933
+ palette.common.onBackground = palette.common.onBackground || '#000';
15934
+ }
15935
+
15936
+ palette.common.backgroundChannel = colorChannel(palette.common.background);
15937
+ palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
15938
+ palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
15939
+ // TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
15940
+
15941
+ if (!palette.grey.dark) {
15942
+ palette.grey.dark = palette.grey[700];
15943
+ }
15944
+
15544
15945
  Object.keys(palette).forEach(color => {
15545
- const colors = palette[color];
15946
+ const colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
15546
15947
 
15547
15948
  if (colors.main) {
15548
15949
  palette[color].mainChannel = colorChannel(colors.main);
@@ -15556,32 +15957,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15556
15957
  palette[color].darkChannel = colorChannel(colors.dark);
15557
15958
  }
15558
15959
 
15960
+ if (colors.contrastText) {
15961
+ palette[color].contrastTextChannel = colorChannel(colors.contrastText);
15962
+ } // Text colors: text.primary, text.secondary
15963
+
15964
+
15559
15965
  if (colors.primary) {
15560
15966
  palette[color].primaryChannel = colorChannel(colors.primary);
15561
15967
  }
15562
15968
 
15563
15969
  if (colors.secondary) {
15564
15970
  palette[color].secondaryChannel = colorChannel(colors.secondary);
15565
- }
15971
+ } // Action colors: action.activeChannel
15972
+
15566
15973
 
15567
- if (colors.disabled) {
15568
- palette[color].disabledChannel = colorChannel(colors.disabled);
15974
+ if (colors.active) {
15975
+ palette[color].activeChannel = colorChannel(colors.active);
15569
15976
  }
15570
15977
  });
15571
- colorSchemes[key] = {
15572
- palette
15573
- };
15574
15978
  });
15575
-
15576
- const opacity = _extends({}, defaultOpacity, opacityInput);
15577
-
15578
- muiTheme.colorSchemes = colorSchemes;
15579
- muiTheme.opacity = opacity;
15580
- muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
15581
- return muiTheme;
15979
+ theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
15980
+ return theme;
15582
15981
  }
15583
15982
 
15584
- const defaultTheme$1 = createTheme();
15983
+ const defaultTheme$1 = extendTheme();
15585
15984
  const {
15586
15985
  CssVarsProvider: Experimental_CssVarsProvider,
15587
15986
  useColorScheme,
@@ -15609,9 +16008,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15609
16008
  const svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
15610
16009
  var svgIconClasses$1 = svgIconClasses;
15611
16010
 
15612
- const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
16011
+ const _excluded$21 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
15613
16012
 
15614
- const useUtilityClasses$1M = ownerState => {
16013
+ const useUtilityClasses$1K = ownerState => {
15615
16014
  const {
15616
16015
  color,
15617
16016
  fontSize,
@@ -15636,7 +16035,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15636
16035
  theme,
15637
16036
  ownerState
15638
16037
  }) => {
15639
- 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;
16038
+ 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;
15640
16039
 
15641
16040
  return {
15642
16041
  userSelect: 'none',
@@ -15655,9 +16054,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15655
16054
  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'
15656
16055
  }[ownerState.fontSize],
15657
16056
  // TODO v5 deprecate, v6 remove for sx
15658
- 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 : {
15659
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
15660
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
16057
+ 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 : {
16058
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
16059
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
15661
16060
  inherit: undefined
15662
16061
  }[ownerState.color]
15663
16062
  };
@@ -15679,7 +16078,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15679
16078
  titleAccess,
15680
16079
  viewBox = '0 0 24 24'
15681
16080
  } = props,
15682
- other = _objectWithoutPropertiesLoose(props, _excluded$23);
16081
+ other = _objectWithoutPropertiesLoose(props, _excluded$21);
15683
16082
 
15684
16083
  const ownerState = _extends({}, props, {
15685
16084
  color,
@@ -15696,7 +16095,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15696
16095
  more.viewBox = viewBox;
15697
16096
  }
15698
16097
 
15699
- const classes = useUtilityClasses$1M(ownerState);
16098
+ const classes = useUtilityClasses$1K(ownerState);
15700
16099
  return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
15701
16100
  as: component,
15702
16101
  className: clsx(classes.root, className),
@@ -16831,9 +17230,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16831
17230
  const collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
16832
17231
  var collapseClasses$1 = collapseClasses;
16833
17232
 
16834
- const _excluded$22 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
17233
+ const _excluded$20 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
16835
17234
 
16836
- const useUtilityClasses$1L = ownerState => {
17235
+ const useUtilityClasses$1J = ownerState => {
16837
17236
  const {
16838
17237
  orientation,
16839
17238
  classes
@@ -16934,14 +17333,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16934
17333
  // eslint-disable-next-line react/prop-types
16935
17334
  TransitionComponent = Transition$1
16936
17335
  } = props,
16937
- other = _objectWithoutPropertiesLoose(props, _excluded$22);
17336
+ other = _objectWithoutPropertiesLoose(props, _excluded$20);
16938
17337
 
16939
17338
  const ownerState = _extends({}, props, {
16940
17339
  orientation,
16941
17340
  collapsedSize: collapsedSizeProp
16942
17341
  });
16943
17342
 
16944
- const classes = useUtilityClasses$1L(ownerState);
17343
+ const classes = useUtilityClasses$1J(ownerState);
16945
17344
  const theme = useTheme();
16946
17345
  const timer = React__namespace.useRef();
16947
17346
  const wrapperRef = React__namespace.useRef(null);
@@ -17235,172 +17634,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17235
17634
  Collapse.muiSupportAuto = true;
17236
17635
  var Collapse$1 = Collapse;
17237
17636
 
17238
- function getPaperUtilityClass(slot) {
17239
- return generateUtilityClass('MuiPaper', slot);
17240
- }
17241
- const paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
17242
- var paperClasses$1 = paperClasses;
17243
-
17244
- const _excluded$21 = ["className", "component", "elevation", "square", "variant"];
17245
-
17246
- const getOverlayAlpha = elevation => {
17247
- let alphaValue;
17248
-
17249
- if (elevation < 1) {
17250
- alphaValue = 5.11916 * elevation ** 2;
17251
- } else {
17252
- alphaValue = 4.5 * Math.log(elevation + 1) + 2;
17253
- }
17254
-
17255
- return (alphaValue / 100).toFixed(2);
17256
- };
17257
-
17258
- const useUtilityClasses$1K = ownerState => {
17259
- const {
17260
- square,
17261
- elevation,
17262
- variant,
17263
- classes
17264
- } = ownerState;
17265
- const slots = {
17266
- root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
17267
- };
17268
- return composeClasses(slots, getPaperUtilityClass, classes);
17269
- };
17270
-
17271
- const PaperRoot = styled$1('div', {
17272
- name: 'MuiPaper',
17273
- slot: 'Root',
17274
- overridesResolver: (props, styles) => {
17275
- const {
17276
- ownerState
17277
- } = props;
17278
- return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
17279
- }
17280
- })(({
17281
- theme,
17282
- ownerState
17283
- }) => _extends({
17284
- backgroundColor: theme.palette.background.paper,
17285
- color: theme.palette.text.primary,
17286
- transition: theme.transitions.create('box-shadow')
17287
- }, !ownerState.square && {
17288
- borderRadius: theme.shape.borderRadius
17289
- }, ownerState.variant === 'outlined' && {
17290
- border: `1px solid ${theme.palette.divider}`
17291
- }, ownerState.variant === 'elevation' && _extends({
17292
- boxShadow: theme.shadows[ownerState.elevation]
17293
- }, theme.palette.mode === 'dark' && {
17294
- backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
17295
- })));
17296
- const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
17297
- const props = useThemeProps({
17298
- props: inProps,
17299
- name: 'MuiPaper'
17300
- });
17301
-
17302
- const {
17303
- className,
17304
- component = 'div',
17305
- elevation = 1,
17306
- square = false,
17307
- variant = 'elevation'
17308
- } = props,
17309
- other = _objectWithoutPropertiesLoose(props, _excluded$21);
17310
-
17311
- const ownerState = _extends({}, props, {
17312
- component,
17313
- elevation,
17314
- square,
17315
- variant
17316
- });
17317
-
17318
- const classes = useUtilityClasses$1K(ownerState);
17319
-
17320
- {
17321
- // eslint-disable-next-line react-hooks/rules-of-hooks
17322
- const theme = useTheme();
17323
-
17324
- if (theme.shadows[elevation] === undefined) {
17325
- console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
17326
- }
17327
- }
17328
-
17329
- return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
17330
- as: component,
17331
- ownerState: ownerState,
17332
- className: clsx(classes.root, className),
17333
- ref: ref
17334
- }, other));
17335
- });
17336
- Paper.propTypes
17337
- /* remove-proptypes */
17338
- = {
17339
- // ----------------------------- Warning --------------------------------
17340
- // | These PropTypes are generated from the TypeScript type definitions |
17341
- // | To update them edit the d.ts file and run "yarn proptypes" |
17342
- // ----------------------------------------------------------------------
17343
-
17344
- /**
17345
- * The content of the component.
17346
- */
17347
- children: PropTypes.node,
17348
-
17349
- /**
17350
- * Override or extend the styles applied to the component.
17351
- */
17352
- classes: PropTypes.object,
17353
-
17354
- /**
17355
- * @ignore
17356
- */
17357
- className: PropTypes.string,
17358
-
17359
- /**
17360
- * The component used for the root node.
17361
- * Either a string to use a HTML element or a component.
17362
- */
17363
- component: PropTypes.elementType,
17364
-
17365
- /**
17366
- * Shadow depth, corresponds to `dp` in the spec.
17367
- * It accepts values between 0 and 24 inclusive.
17368
- * @default 1
17369
- */
17370
- elevation: chainPropTypes(integerPropType, props => {
17371
- const {
17372
- elevation,
17373
- variant
17374
- } = props;
17375
-
17376
- if (elevation > 0 && variant === 'outlined') {
17377
- return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
17378
- }
17379
-
17380
- return null;
17381
- }),
17382
-
17383
- /**
17384
- * If `true`, rounded corners are disabled.
17385
- * @default false
17386
- */
17387
- square: PropTypes.bool,
17388
-
17389
- /**
17390
- * The system prop that allows defining system overrides as well as additional CSS styles.
17391
- */
17392
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
17393
-
17394
- /**
17395
- * The variant to use.
17396
- * @default 'elevation'
17397
- */
17398
- variant: PropTypes
17399
- /* @typescript-to-proptypes-ignore */
17400
- .oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
17401
- } ;
17402
- var Paper$1 = Paper;
17403
-
17404
17637
  /**
17405
17638
  * @ignore - internal component.
17406
17639
  * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
@@ -17420,9 +17653,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17420
17653
  const accordionClasses = generateUtilityClasses('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
17421
17654
  var accordionClasses$1 = accordionClasses;
17422
17655
 
17423
- const _excluded$20 = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
17656
+ const _excluded$1$ = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
17424
17657
 
17425
- const useUtilityClasses$1J = ownerState => {
17658
+ const useUtilityClasses$1I = ownerState => {
17426
17659
  const {
17427
17660
  classes,
17428
17661
  square,
@@ -17536,7 +17769,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17536
17769
  TransitionComponent = Collapse$1,
17537
17770
  TransitionProps
17538
17771
  } = props,
17539
- other = _objectWithoutPropertiesLoose(props, _excluded$20);
17772
+ other = _objectWithoutPropertiesLoose(props, _excluded$1$);
17540
17773
 
17541
17774
  const [expanded, setExpandedState] = useControlled({
17542
17775
  controlled: expandedProp,
@@ -17566,7 +17799,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17566
17799
  expanded
17567
17800
  });
17568
17801
 
17569
- const classes = useUtilityClasses$1J(ownerState);
17802
+ const classes = useUtilityClasses$1I(ownerState);
17570
17803
  return /*#__PURE__*/jsxRuntime_2(AccordionRoot, _extends({
17571
17804
  className: clsx(classes.root, className),
17572
17805
  ref: ref,
@@ -17689,9 +17922,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17689
17922
  const accordionActionsClasses = generateUtilityClasses('MuiAccordionActions', ['root', 'spacing']);
17690
17923
  var accordionActionsClasses$1 = accordionActionsClasses;
17691
17924
 
17692
- const _excluded$1$ = ["className", "disableSpacing"];
17925
+ const _excluded$1_ = ["className", "disableSpacing"];
17693
17926
 
17694
- const useUtilityClasses$1I = ownerState => {
17927
+ const useUtilityClasses$1H = ownerState => {
17695
17928
  const {
17696
17929
  classes,
17697
17930
  disableSpacing
@@ -17733,13 +17966,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17733
17966
  className,
17734
17967
  disableSpacing = false
17735
17968
  } = props,
17736
- other = _objectWithoutPropertiesLoose(props, _excluded$1$);
17969
+ other = _objectWithoutPropertiesLoose(props, _excluded$1_);
17737
17970
 
17738
17971
  const ownerState = _extends({}, props, {
17739
17972
  disableSpacing
17740
17973
  });
17741
17974
 
17742
- const classes = useUtilityClasses$1I(ownerState);
17975
+ const classes = useUtilityClasses$1H(ownerState);
17743
17976
  return /*#__PURE__*/jsxRuntime_1(AccordionActionsRoot, _extends({
17744
17977
  className: clsx(classes.root, className),
17745
17978
  ref: ref,
@@ -17788,9 +18021,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17788
18021
  const accordionDetailsClasses = generateUtilityClasses('MuiAccordionDetails', ['root']);
17789
18022
  var accordionDetailsClasses$1 = accordionDetailsClasses;
17790
18023
 
17791
- const _excluded$1_ = ["className"];
18024
+ const _excluded$1Z = ["className"];
17792
18025
 
17793
- const useUtilityClasses$1H = ownerState => {
18026
+ const useUtilityClasses$1G = ownerState => {
17794
18027
  const {
17795
18028
  classes
17796
18029
  } = ownerState;
@@ -17818,10 +18051,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17818
18051
  const {
17819
18052
  className
17820
18053
  } = props,
17821
- other = _objectWithoutPropertiesLoose(props, _excluded$1_);
18054
+ other = _objectWithoutPropertiesLoose(props, _excluded$1Z);
17822
18055
 
17823
18056
  const ownerState = props;
17824
- const classes = useUtilityClasses$1H(ownerState);
18057
+ const classes = useUtilityClasses$1G(ownerState);
17825
18058
  return /*#__PURE__*/jsxRuntime_1(AccordionDetailsRoot, _extends({
17826
18059
  className: clsx(classes.root, className),
17827
18060
  ref: ref,
@@ -17954,7 +18187,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17954
18187
  const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
17955
18188
  var touchRippleClasses$1 = touchRippleClasses;
17956
18189
 
17957
- const _excluded$1Z = ["center", "classes", "className"];
18190
+ const _excluded$1Y = ["center", "classes", "className"];
17958
18191
 
17959
18192
  let _$3 = t => t,
17960
18193
  _t$3,
@@ -18084,7 +18317,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18084
18317
  classes = {},
18085
18318
  className
18086
18319
  } = props,
18087
- other = _objectWithoutPropertiesLoose(props, _excluded$1Z);
18320
+ other = _objectWithoutPropertiesLoose(props, _excluded$1Y);
18088
18321
 
18089
18322
  const [ripples, setRipples] = React__namespace.useState([]);
18090
18323
  const nextKey = React__namespace.useRef(0);
@@ -18142,12 +18375,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18142
18375
 
18143
18376
  } = options;
18144
18377
 
18145
- if (event.type === 'mousedown' && ignoringMouseDown.current) {
18378
+ if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
18146
18379
  ignoringMouseDown.current = false;
18147
18380
  return;
18148
18381
  }
18149
18382
 
18150
- if (event.type === 'touchstart') {
18383
+ if ((event == null ? void 0 : event.type) === 'touchstart') {
18151
18384
  ignoringMouseDown.current = true;
18152
18385
  }
18153
18386
 
@@ -18163,7 +18396,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18163
18396
  let rippleY;
18164
18397
  let rippleSize;
18165
18398
 
18166
- if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
18399
+ if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
18167
18400
  rippleX = Math.round(rect.width / 2);
18168
18401
  rippleY = Math.round(rect.height / 2);
18169
18402
  } else {
@@ -18188,7 +18421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18188
18421
  } // Touche devices
18189
18422
 
18190
18423
 
18191
- if (event.touches) {
18424
+ if (event != null && event.touches) {
18192
18425
  // check that this isn't another touchstart due to multitouch
18193
18426
  // otherwise we will only clear a single timer when unmounting while two
18194
18427
  // are running
@@ -18231,7 +18464,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18231
18464
  clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
18232
18465
  // We still want to show ripple effect.
18233
18466
 
18234
- if (event.type === 'touchend' && startTimerCommit.current) {
18467
+ if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
18235
18468
  startTimerCommit.current();
18236
18469
  startTimerCommit.current = null;
18237
18470
  startTimer.current = setTimeout(() => {
@@ -18292,9 +18525,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18292
18525
  const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
18293
18526
  var buttonBaseClasses$1 = buttonBaseClasses;
18294
18527
 
18295
- const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
18528
+ const _excluded$1X = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
18296
18529
 
18297
- const useUtilityClasses$1G = ownerState => {
18530
+ const useUtilityClasses$1F = ownerState => {
18298
18531
  const {
18299
18532
  disabled,
18300
18533
  focusVisible,
@@ -18399,7 +18632,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18399
18632
  touchRippleRef,
18400
18633
  type
18401
18634
  } = props,
18402
- other = _objectWithoutPropertiesLoose(props, _excluded$1Y);
18635
+ other = _objectWithoutPropertiesLoose(props, _excluded$1X);
18403
18636
 
18404
18637
  const buttonRef = React__namespace.useRef(null);
18405
18638
  const rippleRef = React__namespace.useRef(null);
@@ -18596,7 +18829,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18596
18829
  focusVisible
18597
18830
  });
18598
18831
 
18599
- const classes = useUtilityClasses$1G(ownerState);
18832
+ const classes = useUtilityClasses$1F(ownerState);
18600
18833
  return /*#__PURE__*/jsxRuntime_2(ButtonBaseRoot, _extends({
18601
18834
  as: ComponentProp,
18602
18835
  className: clsx(classes.root, className),
@@ -18830,9 +19063,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18830
19063
  const accordionSummaryClasses = generateUtilityClasses('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
18831
19064
  var accordionSummaryClasses$1 = accordionSummaryClasses;
18832
19065
 
18833
- const _excluded$1X = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
19066
+ const _excluded$1W = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
18834
19067
 
18835
- const useUtilityClasses$1F = ownerState => {
19068
+ const useUtilityClasses$1E = ownerState => {
18836
19069
  const {
18837
19070
  classes,
18838
19071
  expanded,
@@ -18928,7 +19161,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18928
19161
  focusVisibleClassName,
18929
19162
  onClick
18930
19163
  } = props,
18931
- other = _objectWithoutPropertiesLoose(props, _excluded$1X);
19164
+ other = _objectWithoutPropertiesLoose(props, _excluded$1W);
18932
19165
 
18933
19166
  const {
18934
19167
  disabled = false,
@@ -18953,7 +19186,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
18953
19186
  disableGutters
18954
19187
  });
18955
19188
 
18956
- const classes = useUtilityClasses$1F(ownerState);
19189
+ const classes = useUtilityClasses$1E(ownerState);
18957
19190
  return /*#__PURE__*/jsxRuntime_2(AccordionSummaryRoot, _extends({
18958
19191
  focusRipple: false,
18959
19192
  disableRipple: true,
@@ -19039,9 +19272,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19039
19272
  const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
19040
19273
  var iconButtonClasses$1 = iconButtonClasses;
19041
19274
 
19042
- const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
19275
+ const _excluded$1V = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
19043
19276
 
19044
- const useUtilityClasses$1E = ownerState => {
19277
+ const useUtilityClasses$1D = ownerState => {
19045
19278
  const {
19046
19279
  classes,
19047
19280
  disabled,
@@ -19075,13 +19308,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19075
19308
  borderRadius: '50%',
19076
19309
  overflow: 'visible',
19077
19310
  // Explicitly set the default value to solve a bug on IE11.
19078
- color: theme.palette.action.active,
19311
+ color: (theme.vars || theme).palette.action.active,
19079
19312
  transition: theme.transitions.create('background-color', {
19080
19313
  duration: theme.transitions.duration.shortest
19081
19314
  })
19082
19315
  }, !ownerState.disableRipple && {
19083
19316
  '&:hover': {
19084
- backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
19317
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
19085
19318
  // Reset on touch devices, it doesn't add specificity
19086
19319
  '@media (hover: none)': {
19087
19320
  backgroundColor: 'transparent'
@@ -19097,10 +19330,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19097
19330
  }) => _extends({}, ownerState.color === 'inherit' && {
19098
19331
  color: 'inherit'
19099
19332
  }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
19100
- color: theme.palette[ownerState.color].main
19333
+ color: (theme.vars || theme).palette[ownerState.color].main
19101
19334
  }, !ownerState.disableRipple && {
19102
19335
  '&:hover': {
19103
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
19336
+ 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),
19104
19337
  // Reset on touch devices, it doesn't add specificity
19105
19338
  '@media (hover: none)': {
19106
19339
  backgroundColor: 'transparent'
@@ -19115,7 +19348,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19115
19348
  }, {
19116
19349
  [`&.${iconButtonClasses$1.disabled}`]: {
19117
19350
  backgroundColor: 'transparent',
19118
- color: theme.palette.action.disabled
19351
+ color: (theme.vars || theme).palette.action.disabled
19119
19352
  }
19120
19353
  }));
19121
19354
  /**
@@ -19138,7 +19371,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19138
19371
  disableFocusRipple = false,
19139
19372
  size = 'medium'
19140
19373
  } = props,
19141
- other = _objectWithoutPropertiesLoose(props, _excluded$1W);
19374
+ other = _objectWithoutPropertiesLoose(props, _excluded$1V);
19142
19375
 
19143
19376
  const ownerState = _extends({}, props, {
19144
19377
  edge,
@@ -19148,7 +19381,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19148
19381
  size
19149
19382
  });
19150
19383
 
19151
- const classes = useUtilityClasses$1E(ownerState);
19384
+ const classes = useUtilityClasses$1D(ownerState);
19152
19385
  return /*#__PURE__*/jsxRuntime_1(IconButtonRoot, _extends({
19153
19386
  className: clsx(classes.root, className),
19154
19387
  centerRipple: true,
@@ -19269,9 +19502,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19269
19502
 
19270
19503
  var _CloseIcon;
19271
19504
 
19272
- const _excluded$1V = ["action", "children", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
19505
+ const _excluded$1U = ["action", "children", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
19273
19506
 
19274
- const useUtilityClasses$1D = ownerState => {
19507
+ const useUtilityClasses$1C = ownerState => {
19275
19508
  const {
19276
19509
  variant,
19277
19510
  color,
@@ -19387,7 +19620,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19387
19620
  severity = 'success',
19388
19621
  variant = 'standard'
19389
19622
  } = props,
19390
- other = _objectWithoutPropertiesLoose(props, _excluded$1V);
19623
+ other = _objectWithoutPropertiesLoose(props, _excluded$1U);
19391
19624
 
19392
19625
  const ownerState = _extends({}, props, {
19393
19626
  color,
@@ -19395,7 +19628,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19395
19628
  variant
19396
19629
  });
19397
19630
 
19398
- const classes = useUtilityClasses$1D(ownerState);
19631
+ const classes = useUtilityClasses$1C(ownerState);
19399
19632
  return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
19400
19633
  role: role,
19401
19634
  elevation: 0,
@@ -19412,6 +19645,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19412
19645
  className: classes.message,
19413
19646
  children: children
19414
19647
  }), action != null ? /*#__PURE__*/jsxRuntime_1(AlertAction, {
19648
+ ownerState: ownerState,
19415
19649
  className: classes.action,
19416
19650
  children: action
19417
19651
  }) : null, action == null && onClose ? /*#__PURE__*/jsxRuntime_1(AlertAction, {
@@ -19535,9 +19769,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19535
19769
  const typographyClasses = generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
19536
19770
  var typographyClasses$1 = typographyClasses;
19537
19771
 
19538
- const _excluded$1U = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
19772
+ const _excluded$1T = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
19539
19773
 
19540
- const useUtilityClasses$1C = ownerState => {
19774
+ const useUtilityClasses$1B = ownerState => {
19541
19775
  const {
19542
19776
  align,
19543
19777
  gutterBottom,
@@ -19623,7 +19857,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19623
19857
  variant = 'body1',
19624
19858
  variantMapping = defaultVariantMapping
19625
19859
  } = props,
19626
- other = _objectWithoutPropertiesLoose(props, _excluded$1U);
19860
+ other = _objectWithoutPropertiesLoose(props, _excluded$1T);
19627
19861
 
19628
19862
  const ownerState = _extends({}, props, {
19629
19863
  align,
@@ -19638,7 +19872,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19638
19872
  });
19639
19873
 
19640
19874
  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
19641
- const classes = useUtilityClasses$1C(ownerState);
19875
+ const classes = useUtilityClasses$1B(ownerState);
19642
19876
  return /*#__PURE__*/jsxRuntime_1(TypographyRoot, _extends({
19643
19877
  as: Component,
19644
19878
  ref: ref,
@@ -19746,9 +19980,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19746
19980
  const alertTitleClasses = generateUtilityClasses('MuiAlertTitle', ['root']);
19747
19981
  var alertTitleClasses$1 = alertTitleClasses;
19748
19982
 
19749
- const _excluded$1T = ["className"];
19983
+ const _excluded$1S = ["className"];
19750
19984
 
19751
- const useUtilityClasses$1B = ownerState => {
19985
+ const useUtilityClasses$1A = ownerState => {
19752
19986
  const {
19753
19987
  classes
19754
19988
  } = ownerState;
@@ -19779,10 +20013,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19779
20013
  const {
19780
20014
  className
19781
20015
  } = props,
19782
- other = _objectWithoutPropertiesLoose(props, _excluded$1T);
20016
+ other = _objectWithoutPropertiesLoose(props, _excluded$1S);
19783
20017
 
19784
20018
  const ownerState = props;
19785
- const classes = useUtilityClasses$1B(ownerState);
20019
+ const classes = useUtilityClasses$1A(ownerState);
19786
20020
  return /*#__PURE__*/jsxRuntime_1(AlertTitleRoot, _extends({
19787
20021
  gutterBottom: true,
19788
20022
  component: "div",
@@ -19827,9 +20061,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19827
20061
  const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
19828
20062
  var appBarClasses$1 = appBarClasses;
19829
20063
 
19830
- const _excluded$1S = ["className", "color", "enableColorOnDark", "position"];
20064
+ const _excluded$1R = ["className", "color", "enableColorOnDark", "position"];
19831
20065
 
19832
- const useUtilityClasses$1A = ownerState => {
20066
+ const useUtilityClasses$1z = ownerState => {
19833
20067
  const {
19834
20068
  color,
19835
20069
  position,
@@ -19919,7 +20153,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19919
20153
  enableColorOnDark = false,
19920
20154
  position = 'fixed'
19921
20155
  } = props,
19922
- other = _objectWithoutPropertiesLoose(props, _excluded$1S);
20156
+ other = _objectWithoutPropertiesLoose(props, _excluded$1R);
19923
20157
 
19924
20158
  const ownerState = _extends({}, props, {
19925
20159
  color,
@@ -19927,7 +20161,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19927
20161
  enableColorOnDark
19928
20162
  });
19929
20163
 
19930
- const classes = useUtilityClasses$1A(ownerState);
20164
+ const classes = useUtilityClasses$1z(ownerState);
19931
20165
  return /*#__PURE__*/jsxRuntime_1(AppBarRoot, _extends({
19932
20166
  square: true,
19933
20167
  component: "header",
@@ -20138,9 +20372,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20138
20372
  const listSubheaderClasses = generateUtilityClasses('MuiListSubheader', ['root', 'colorPrimary', 'colorInherit', 'gutters', 'inset', 'sticky']);
20139
20373
  var listSubheaderClasses$1 = listSubheaderClasses;
20140
20374
 
20141
- const _excluded$1R = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
20375
+ const _excluded$1Q = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
20142
20376
 
20143
- const useUtilityClasses$1z = ownerState => {
20377
+ const useUtilityClasses$1y = ownerState => {
20144
20378
  const {
20145
20379
  classes,
20146
20380
  color,
@@ -20170,12 +20404,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20170
20404
  boxSizing: 'border-box',
20171
20405
  lineHeight: '48px',
20172
20406
  listStyle: 'none',
20173
- color: theme.palette.text.secondary,
20407
+ color: (theme.vars || theme).palette.text.secondary,
20174
20408
  fontFamily: theme.typography.fontFamily,
20175
20409
  fontWeight: theme.typography.fontWeightMedium,
20176
20410
  fontSize: theme.typography.pxToRem(14)
20177
20411
  }, ownerState.color === 'primary' && {
20178
- color: theme.palette.primary.main
20412
+ color: (theme.vars || theme).palette.primary.main
20179
20413
  }, ownerState.color === 'inherit' && {
20180
20414
  color: 'inherit'
20181
20415
  }, !ownerState.disableGutters && {
@@ -20187,7 +20421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20187
20421
  position: 'sticky',
20188
20422
  top: 0,
20189
20423
  zIndex: 1,
20190
- backgroundColor: theme.palette.background.paper
20424
+ backgroundColor: (theme.vars || theme).palette.background.paper
20191
20425
  }));
20192
20426
  const ListSubheader = /*#__PURE__*/React__namespace.forwardRef(function ListSubheader(inProps, ref) {
20193
20427
  const props = useThemeProps({
@@ -20203,7 +20437,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20203
20437
  disableSticky = false,
20204
20438
  inset = false
20205
20439
  } = props,
20206
- other = _objectWithoutPropertiesLoose(props, _excluded$1R);
20440
+ other = _objectWithoutPropertiesLoose(props, _excluded$1Q);
20207
20441
 
20208
20442
  const ownerState = _extends({}, props, {
20209
20443
  color,
@@ -20213,7 +20447,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20213
20447
  inset
20214
20448
  });
20215
20449
 
20216
- const classes = useUtilityClasses$1z(ownerState);
20450
+ const classes = useUtilityClasses$1y(ownerState);
20217
20451
  return /*#__PURE__*/jsxRuntime_1(ListSubheaderRoot, _extends({
20218
20452
  as: component,
20219
20453
  className: clsx(classes.root, className),
@@ -20291,9 +20525,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20291
20525
  const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'focusVisible']);
20292
20526
  var chipClasses$1 = chipClasses;
20293
20527
 
20294
- const _excluded$1Q = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
20528
+ const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
20295
20529
 
20296
- const useUtilityClasses$1y = ownerState => {
20530
+ const useUtilityClasses$1x = ownerState => {
20297
20531
  const {
20298
20532
  classes,
20299
20533
  disabled,
@@ -20571,7 +20805,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20571
20805
  size = 'medium',
20572
20806
  variant = 'filled'
20573
20807
  } = props,
20574
- other = _objectWithoutPropertiesLoose(props, _excluded$1Q);
20808
+ other = _objectWithoutPropertiesLoose(props, _excluded$1P);
20575
20809
 
20576
20810
  const chipRef = React__namespace.useRef(null);
20577
20811
  const handleRef = useForkRef(chipRef, ref);
@@ -20627,7 +20861,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20627
20861
  variant
20628
20862
  });
20629
20863
 
20630
- const classes = useUtilityClasses$1y(ownerState);
20864
+ const classes = useUtilityClasses$1x(ownerState);
20631
20865
  const moreProps = component === ButtonBase$1 ? _extends({
20632
20866
  component: ComponentProp || 'div',
20633
20867
  focusVisibleClassName: classes.focusVisible
@@ -20897,7 +21131,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20897
21131
  const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
20898
21132
  var inputBaseClasses$1 = inputBaseClasses;
20899
21133
 
20900
- const _excluded$1P = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
21134
+ const _excluded$1O = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
20901
21135
  const rootOverridesResolver = (props, styles) => {
20902
21136
  const {
20903
21137
  ownerState
@@ -20911,7 +21145,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20911
21145
  return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];
20912
21146
  };
20913
21147
 
20914
- const useUtilityClasses$1x = ownerState => {
21148
+ const useUtilityClasses$1w = ownerState => {
20915
21149
  const {
20916
21150
  classes,
20917
21151
  color,
@@ -20942,7 +21176,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20942
21176
  theme,
20943
21177
  ownerState
20944
21178
  }) => _extends({}, theme.typography.body1, {
20945
- color: theme.palette.text.primary,
21179
+ color: (theme.vars || theme).palette.text.primary,
20946
21180
  lineHeight: '1.4375em',
20947
21181
  // 23px
20948
21182
  boxSizing: 'border-box',
@@ -20952,7 +21186,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20952
21186
  display: 'inline-flex',
20953
21187
  alignItems: 'center',
20954
21188
  [`&.${inputBaseClasses$1.disabled}`]: {
20955
- color: theme.palette.text.disabled,
21189
+ color: (theme.vars || theme).palette.text.disabled,
20956
21190
  cursor: 'default'
20957
21191
  }
20958
21192
  }, ownerState.multiline && _extends({
@@ -20971,17 +21205,25 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20971
21205
  ownerState
20972
21206
  }) => {
20973
21207
  const light = theme.palette.mode === 'light';
20974
- const placeholder = {
20975
- color: 'currentColor',
20976
- opacity: light ? 0.42 : 0.5,
21208
+
21209
+ const placeholder = _extends({
21210
+ color: 'currentColor'
21211
+ }, theme.vars ? {
21212
+ opacity: theme.vars.opacity.placeholder
21213
+ } : {
21214
+ opacity: light ? 0.42 : 0.5
21215
+ }, {
20977
21216
  transition: theme.transitions.create('opacity', {
20978
21217
  duration: theme.transitions.duration.shorter
20979
21218
  })
20980
- };
21219
+ });
21220
+
20981
21221
  const placeholderHidden = {
20982
21222
  opacity: '0 !important'
20983
21223
  };
20984
- const placeholderVisible = {
21224
+ const placeholderVisible = theme.vars ? {
21225
+ opacity: theme.vars.opacity.placeholder
21226
+ } : {
20985
21227
  opacity: light ? 0.42 : 0.5
20986
21228
  };
20987
21229
  return _extends({
@@ -21042,7 +21284,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21042
21284
  [`&.${inputBaseClasses$1.disabled}`]: {
21043
21285
  opacity: 1,
21044
21286
  // Reset iOS opacity
21045
- WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
21287
+ WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
21046
21288
 
21047
21289
  },
21048
21290
  '&:-webkit-autofill': {
@@ -21123,7 +21365,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21123
21365
  type = 'text',
21124
21366
  value: valueProp
21125
21367
  } = props,
21126
- other = _objectWithoutPropertiesLoose(props, _excluded$1P);
21368
+ other = _objectWithoutPropertiesLoose(props, _excluded$1O);
21127
21369
 
21128
21370
  const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
21129
21371
  const {
@@ -21323,7 +21565,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21323
21565
  type
21324
21566
  });
21325
21567
 
21326
- const classes = useUtilityClasses$1x(ownerState);
21568
+ const classes = useUtilityClasses$1w(ownerState);
21327
21569
  const Root = components.Root || InputBaseRoot;
21328
21570
  const rootProps = componentsProps.root || {};
21329
21571
  const Input = components.Input || InputBaseComponent;
@@ -21651,9 +21893,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21651
21893
 
21652
21894
  var _ClearIcon, _ArrowDropDownIcon;
21653
21895
 
21654
- const _excluded$1O = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
21896
+ const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
21655
21897
 
21656
- const useUtilityClasses$1w = ownerState => {
21898
+ const useUtilityClasses$1v = ownerState => {
21657
21899
  const {
21658
21900
  classes,
21659
21901
  disablePortal,
@@ -21861,7 +22103,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21861
22103
  theme,
21862
22104
  ownerState
21863
22105
  }) => _extends({
21864
- zIndex: theme.zIndex.modal
22106
+ zIndex: (theme.vars || theme).zIndex.modal
21865
22107
  }, ownerState.disablePortal && {
21866
22108
  position: 'absolute'
21867
22109
  }));
@@ -21881,7 +22123,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21881
22123
  })(({
21882
22124
  theme
21883
22125
  }) => ({
21884
- color: theme.palette.text.secondary,
22126
+ color: (theme.vars || theme).palette.text.secondary,
21885
22127
  padding: '14px 16px'
21886
22128
  }));
21887
22129
  const AutocompleteNoOptions = styled$1('div', {
@@ -21891,7 +22133,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21891
22133
  })(({
21892
22134
  theme
21893
22135
  }) => ({
21894
- color: theme.palette.text.secondary,
22136
+ color: (theme.vars || theme).palette.text.secondary,
21895
22137
  padding: '14px 16px'
21896
22138
  }));
21897
22139
  const AutocompleteListbox = styled$1('div', {
@@ -21924,30 +22166,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21924
22166
  minHeight: 'auto'
21925
22167
  },
21926
22168
  [`&.${autocompleteClasses$1.focused}`]: {
21927
- backgroundColor: theme.palette.action.hover,
22169
+ backgroundColor: (theme.vars || theme).palette.action.hover,
21928
22170
  // Reset on touch devices, it doesn't add specificity
21929
22171
  '@media (hover: none)': {
21930
22172
  backgroundColor: 'transparent'
21931
22173
  }
21932
22174
  },
21933
22175
  '&[aria-disabled="true"]': {
21934
- opacity: theme.palette.action.disabledOpacity,
22176
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
21935
22177
  pointerEvents: 'none'
21936
22178
  },
21937
22179
  [`&.${autocompleteClasses$1.focusVisible}`]: {
21938
- backgroundColor: theme.palette.action.focus
22180
+ backgroundColor: (theme.vars || theme).palette.action.focus
21939
22181
  },
21940
22182
  '&[aria-selected="true"]': {
21941
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
22183
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
21942
22184
  [`&.${autocompleteClasses$1.focused}`]: {
21943
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
22185
+ 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),
21944
22186
  // Reset on touch devices, it doesn't add specificity
21945
22187
  '@media (hover: none)': {
21946
- backgroundColor: theme.palette.action.selected
22188
+ backgroundColor: (theme.vars || theme).palette.action.selected
21947
22189
  }
21948
22190
  },
21949
22191
  [`&.${autocompleteClasses$1.focusVisible}`]: {
21950
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
22192
+ 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)
21951
22193
  }
21952
22194
  }
21953
22195
  }
@@ -21959,7 +22201,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21959
22201
  })(({
21960
22202
  theme
21961
22203
  }) => ({
21962
- backgroundColor: theme.palette.background.paper,
22204
+ backgroundColor: (theme.vars || theme).palette.background.paper,
21963
22205
  top: -8
21964
22206
  }));
21965
22207
  const AutocompleteGroupUl = styled$1('ul', {
@@ -22036,7 +22278,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22036
22278
  selectOnFocus = !props.freeSolo,
22037
22279
  size = 'medium'
22038
22280
  } = props,
22039
- other = _objectWithoutPropertiesLoose(props, _excluded$1O);
22281
+ other = _objectWithoutPropertiesLoose(props, _excluded$1N);
22040
22282
  /* eslint-enable @typescript-eslint/no-unused-vars */
22041
22283
 
22042
22284
 
@@ -22063,7 +22305,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22063
22305
  componentName: 'Autocomplete'
22064
22306
  }));
22065
22307
  const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
22066
- const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
22308
+ const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
22067
22309
 
22068
22310
  const ownerState = _extends({}, props, {
22069
22311
  disablePortal,
@@ -22076,7 +22318,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22076
22318
  size
22077
22319
  });
22078
22320
 
22079
- const classes = useUtilityClasses$1w(ownerState);
22321
+ const classes = useUtilityClasses$1v(ownerState);
22080
22322
  let startAdornment;
22081
22323
 
22082
22324
  if (multiple && value.length > 0) {
@@ -22086,7 +22328,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22086
22328
  }, getTagProps(params));
22087
22329
 
22088
22330
  if (renderTags) {
22089
- startAdornment = renderTags(value, getCustomizedTagProps);
22331
+ startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
22090
22332
  } else {
22091
22333
  startAdornment = value.map((option, index) => /*#__PURE__*/jsxRuntime_1(Chip$1, _extends({
22092
22334
  label: getOptionLabel(option),
@@ -22155,10 +22397,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22155
22397
  fullWidth: true,
22156
22398
  size: size === 'small' ? 'small' : undefined,
22157
22399
  InputLabelProps: getInputLabelProps(),
22158
- InputProps: {
22400
+ InputProps: _extends({
22159
22401
  ref: setAnchorEl,
22160
22402
  className: classes.inputRoot,
22161
- startAdornment,
22403
+ startAdornment
22404
+ }, (hasClearIcon || hasPopupIcon) && {
22162
22405
  endAdornment: /*#__PURE__*/jsxRuntime_2(AutocompleteEndAdornment, {
22163
22406
  className: classes.endAdornment,
22164
22407
  ownerState: ownerState,
@@ -22178,7 +22421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22178
22421
  children: popupIcon
22179
22422
  })) : null]
22180
22423
  })
22181
- },
22424
+ }),
22182
22425
  inputProps: _extends({
22183
22426
  className: clsx(classes.input),
22184
22427
  disabled,
@@ -22662,6 +22905,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22662
22905
  *
22663
22906
  * @param {T[]} value The `value` provided to the component.
22664
22907
  * @param {function} getTagProps A tag props getter.
22908
+ * @param {object} ownerState The state of the Autocomplete component.
22665
22909
  * @returns {ReactNode}
22666
22910
  */
22667
22911
  renderTags: PropTypes.func,
@@ -22712,9 +22956,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22712
22956
  const avatarClasses = generateUtilityClasses('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);
22713
22957
  var avatarClasses$1 = avatarClasses;
22714
22958
 
22715
- const _excluded$1N = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
22959
+ const _excluded$1M = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
22716
22960
 
22717
- const useUtilityClasses$1v = ownerState => {
22961
+ const useUtilityClasses$1u = ownerState => {
22718
22962
  const {
22719
22963
  classes,
22720
22964
  variant,
@@ -22850,7 +23094,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22850
23094
  srcSet,
22851
23095
  variant = 'circular'
22852
23096
  } = props,
22853
- other = _objectWithoutPropertiesLoose(props, _excluded$1N);
23097
+ other = _objectWithoutPropertiesLoose(props, _excluded$1M);
22854
23098
 
22855
23099
  let children = null; // Use a hook instead of onError on the img element to support server-side rendering.
22856
23100
 
@@ -22867,7 +23111,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22867
23111
  variant
22868
23112
  });
22869
23113
 
22870
- const classes = useUtilityClasses$1v(ownerState);
23114
+ const classes = useUtilityClasses$1u(ownerState);
22871
23115
 
22872
23116
  if (hasImgNotFailing) {
22873
23117
  children = /*#__PURE__*/jsxRuntime_1(AvatarImg, _extends({
@@ -22976,13 +23220,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22976
23220
  const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
22977
23221
  var avatarGroupClasses$1 = avatarGroupClasses;
22978
23222
 
22979
- const _excluded$1M = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
23223
+ const _excluded$1L = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
22980
23224
  const SPACINGS$1 = {
22981
23225
  small: -16,
22982
23226
  medium: null
22983
23227
  };
22984
23228
 
22985
- const useUtilityClasses$1u = ownerState => {
23229
+ const useUtilityClasses$1t = ownerState => {
22986
23230
  const {
22987
23231
  classes
22988
23232
  } = ownerState;
@@ -23044,7 +23288,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23044
23288
  total,
23045
23289
  variant = 'circular'
23046
23290
  } = props,
23047
- other = _objectWithoutPropertiesLoose(props, _excluded$1M);
23291
+ other = _objectWithoutPropertiesLoose(props, _excluded$1L);
23048
23292
 
23049
23293
  let clampedMax = max < 2 ? 2 : max;
23050
23294
 
@@ -23054,7 +23298,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23054
23298
  variant
23055
23299
  });
23056
23300
 
23057
- const classes = useUtilityClasses$1u(ownerState);
23301
+ const classes = useUtilityClasses$1t(ownerState);
23058
23302
  const children = React__namespace.Children.toArray(childrenProp).filter(child => {
23059
23303
  {
23060
23304
  if (reactIs_2(child)) {
@@ -23171,7 +23415,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23171
23415
  } ;
23172
23416
  var AvatarGroup$1 = AvatarGroup;
23173
23417
 
23174
- const _excluded$1L = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
23418
+ const _excluded$1K = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
23175
23419
  const styles$4 = {
23176
23420
  entering: {
23177
23421
  opacity: 1
@@ -23209,7 +23453,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23209
23453
  // eslint-disable-next-line react/prop-types
23210
23454
  TransitionComponent = Transition$1
23211
23455
  } = props,
23212
- other = _objectWithoutPropertiesLoose(props, _excluded$1L);
23456
+ other = _objectWithoutPropertiesLoose(props, _excluded$1K);
23213
23457
  const nodeRef = React__namespace.useRef(null);
23214
23458
  const foreignRef = useForkRef(children.ref, ref);
23215
23459
  const handleRef = useForkRef(nodeRef, foreignRef);
@@ -23392,9 +23636,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23392
23636
  const backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
23393
23637
  var backdropClasses$1 = backdropClasses;
23394
23638
 
23395
- const _excluded$1K = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
23639
+ const _excluded$1J = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
23396
23640
 
23397
- const useUtilityClasses$1t = ownerState => {
23641
+ const useUtilityClasses$1s = ownerState => {
23398
23642
  const {
23399
23643
  classes,
23400
23644
  invisible
@@ -23450,14 +23694,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23450
23694
  // eslint-disable-next-line react/prop-types
23451
23695
  TransitionComponent = Fade$1
23452
23696
  } = props,
23453
- other = _objectWithoutPropertiesLoose(props, _excluded$1K);
23697
+ other = _objectWithoutPropertiesLoose(props, _excluded$1J);
23454
23698
 
23455
23699
  const ownerState = _extends({}, props, {
23456
23700
  component,
23457
23701
  invisible
23458
23702
  });
23459
23703
 
23460
- const classes = useUtilityClasses$1t(ownerState);
23704
+ const classes = useUtilityClasses$1s(ownerState);
23461
23705
  return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
23462
23706
  in: open,
23463
23707
  timeout: transitionDuration
@@ -23561,11 +23805,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23561
23805
  'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
23562
23806
  var badgeClasses$1 = badgeClasses;
23563
23807
 
23564
- const _excluded$1J = ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "showZero", "variant"];
23808
+ const _excluded$1I = ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "showZero", "variant"];
23565
23809
  const RADIUS_STANDARD = 10;
23566
23810
  const RADIUS_DOT = 4;
23567
23811
 
23568
- const useUtilityClasses$1s = ownerState => {
23812
+ const useUtilityClasses$1r = ownerState => {
23569
23813
  const {
23570
23814
  color,
23571
23815
  anchorOrigin,
@@ -23730,7 +23974,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23730
23974
  showZero = false,
23731
23975
  variant: variantProp = 'standard'
23732
23976
  } = props,
23733
- other = _objectWithoutPropertiesLoose(props, _excluded$1J);
23977
+ other = _objectWithoutPropertiesLoose(props, _excluded$1I);
23734
23978
 
23735
23979
  const prevProps = usePreviousProps$1({
23736
23980
  anchorOrigin: anchorOriginProp,
@@ -23759,7 +24003,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23759
24003
  variant
23760
24004
  });
23761
24005
 
23762
- const classes = useUtilityClasses$1s(ownerState);
24006
+ const classes = useUtilityClasses$1r(ownerState);
23763
24007
  let displayValue;
23764
24008
 
23765
24009
  if (variant !== 'dot') {
@@ -23921,9 +24165,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23921
24165
  const bottomNavigationClasses = generateUtilityClasses('MuiBottomNavigation', ['root']);
23922
24166
  var bottomNavigationClasses$1 = bottomNavigationClasses;
23923
24167
 
23924
- const _excluded$1I = ["children", "className", "component", "onChange", "showLabels", "value"];
24168
+ const _excluded$1H = ["children", "className", "component", "onChange", "showLabels", "value"];
23925
24169
 
23926
- const useUtilityClasses$1r = ownerState => {
24170
+ const useUtilityClasses$1q = ownerState => {
23927
24171
  const {
23928
24172
  classes
23929
24173
  } = ownerState;
@@ -23959,14 +24203,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23959
24203
  showLabels = false,
23960
24204
  value
23961
24205
  } = props,
23962
- other = _objectWithoutPropertiesLoose(props, _excluded$1I);
24206
+ other = _objectWithoutPropertiesLoose(props, _excluded$1H);
23963
24207
 
23964
24208
  const ownerState = _extends({}, props, {
23965
24209
  component,
23966
24210
  showLabels
23967
24211
  });
23968
24212
 
23969
- const classes = useUtilityClasses$1r(ownerState);
24213
+ const classes = useUtilityClasses$1q(ownerState);
23970
24214
  return /*#__PURE__*/jsxRuntime_1(BottomNavigationRoot, _extends({
23971
24215
  as: component,
23972
24216
  className: clsx(classes.root, className),
@@ -24056,9 +24300,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24056
24300
  const bottomNavigationActionClasses = generateUtilityClasses('MuiBottomNavigationAction', ['root', 'iconOnly', 'selected', 'label']);
24057
24301
  var bottomNavigationActionClasses$1 = bottomNavigationActionClasses;
24058
24302
 
24059
- const _excluded$1H = ["className", "icon", "label", "onChange", "onClick", "selected", "showLabel", "value"];
24303
+ const _excluded$1G = ["className", "icon", "label", "onChange", "onClick", "selected", "showLabel", "value"];
24060
24304
 
24061
- const useUtilityClasses$1q = ownerState => {
24305
+ const useUtilityClasses$1p = ownerState => {
24062
24306
  const {
24063
24307
  classes,
24064
24308
  showLabel,
@@ -24137,10 +24381,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24137
24381
  onClick,
24138
24382
  value
24139
24383
  } = props,
24140
- other = _objectWithoutPropertiesLoose(props, _excluded$1H);
24384
+ other = _objectWithoutPropertiesLoose(props, _excluded$1G);
24141
24385
 
24142
24386
  const ownerState = props;
24143
- const classes = useUtilityClasses$1q(ownerState);
24387
+ const classes = useUtilityClasses$1p(ownerState);
24144
24388
 
24145
24389
  const handleChange = event => {
24146
24390
  if (onChange) {
@@ -24231,7 +24475,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24231
24475
  } ;
24232
24476
  var BottomNavigationAction$1 = BottomNavigationAction;
24233
24477
 
24234
- const defaultTheme = createTheme$1();
24478
+ const defaultTheme = createTheme();
24235
24479
  const Box = createBox({
24236
24480
  defaultTheme,
24237
24481
  defaultClassName: 'MuiBox-root',
@@ -24329,9 +24573,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24329
24573
  const breadcrumbsClasses = generateUtilityClasses('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);
24330
24574
  var breadcrumbsClasses$1 = breadcrumbsClasses;
24331
24575
 
24332
- const _excluded$1G = ["children", "className", "component", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"];
24576
+ const _excluded$1F = ["children", "className", "component", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"];
24333
24577
 
24334
- const useUtilityClasses$1p = ownerState => {
24578
+ const useUtilityClasses$1o = ownerState => {
24335
24579
  const {
24336
24580
  classes
24337
24581
  } = ownerState;
@@ -24409,7 +24653,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24409
24653
  maxItems = 8,
24410
24654
  separator = '/'
24411
24655
  } = props,
24412
- other = _objectWithoutPropertiesLoose(props, _excluded$1G);
24656
+ other = _objectWithoutPropertiesLoose(props, _excluded$1F);
24413
24657
 
24414
24658
  const [expanded, setExpanded] = React__namespace.useState(false);
24415
24659
 
@@ -24423,7 +24667,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24423
24667
  separator
24424
24668
  });
24425
24669
 
24426
- const classes = useUtilityClasses$1p(ownerState);
24670
+ const classes = useUtilityClasses$1o(ownerState);
24427
24671
  const listRef = React__namespace.useRef(null);
24428
24672
 
24429
24673
  const renderItemsBeforeAndAfter = allItems => {
@@ -24570,9 +24814,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24570
24814
 
24571
24815
  var ButtonGroupContext$1 = ButtonGroupContext;
24572
24816
 
24573
- const _excluded$1F = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
24817
+ const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
24574
24818
 
24575
- const useUtilityClasses$1o = ownerState => {
24819
+ const useUtilityClasses$1n = ownerState => {
24576
24820
  const {
24577
24821
  color,
24578
24822
  disableElevation,
@@ -24800,7 +25044,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24800
25044
  type,
24801
25045
  variant = 'text'
24802
25046
  } = props,
24803
- other = _objectWithoutPropertiesLoose(props, _excluded$1F);
25047
+ other = _objectWithoutPropertiesLoose(props, _excluded$1E);
24804
25048
 
24805
25049
  const ownerState = _extends({}, props, {
24806
25050
  color,
@@ -24814,7 +25058,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24814
25058
  variant
24815
25059
  });
24816
25060
 
24817
- const classes = useUtilityClasses$1o(ownerState);
25061
+ const classes = useUtilityClasses$1n(ownerState);
24818
25062
 
24819
25063
  const startIcon = startIconProp && /*#__PURE__*/jsxRuntime_1(ButtonStartIcon, {
24820
25064
  className: classes.startIcon,
@@ -24970,7 +25214,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24970
25214
  const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary']);
24971
25215
  var buttonGroupClasses$1 = buttonGroupClasses;
24972
25216
 
24973
- const _excluded$1E = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
25217
+ const _excluded$1D = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
24974
25218
 
24975
25219
  const overridesResolver$6 = (props, styles) => {
24976
25220
  const {
@@ -24989,7 +25233,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24989
25233
  }, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
24990
25234
  };
24991
25235
 
24992
- const useUtilityClasses$1n = ownerState => {
25236
+ const useUtilityClasses$1m = ownerState => {
24993
25237
  const {
24994
25238
  classes,
24995
25239
  color,
@@ -25015,9 +25259,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25015
25259
  ownerState
25016
25260
  }) => _extends({
25017
25261
  display: 'inline-flex',
25018
- borderRadius: theme.shape.borderRadius
25262
+ borderRadius: (theme.vars || theme).shape.borderRadius
25019
25263
  }, ownerState.variant === 'contained' && {
25020
- boxShadow: theme.shadows[2]
25264
+ boxShadow: (theme.vars || theme).shadows[2]
25021
25265
  }, ownerState.disableElevation && {
25022
25266
  boxShadow: 'none'
25023
25267
  }, ownerState.fullWidth && {
@@ -25045,27 +25289,27 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25045
25289
  borderBottomRightRadius: 0,
25046
25290
  borderBottomLeftRadius: 0
25047
25291
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
25048
- borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25292
+ 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)'}`
25049
25293
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
25050
- borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
25294
+ 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)'}`
25051
25295
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
25052
- borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
25296
+ borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
25053
25297
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
25054
25298
  borderRightColor: 'transparent'
25055
25299
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
25056
25300
  borderBottomColor: 'transparent'
25057
25301
  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
25058
- borderRight: `1px solid ${theme.palette.grey[400]}`,
25302
+ borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
25059
25303
  [`&.${buttonGroupClasses$1.disabled}`]: {
25060
- borderRight: `1px solid ${theme.palette.action.disabled}`
25304
+ borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25061
25305
  }
25062
25306
  }, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
25063
- borderBottom: `1px solid ${theme.palette.grey[400]}`,
25307
+ borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
25064
25308
  [`&.${buttonGroupClasses$1.disabled}`]: {
25065
- borderBottom: `1px solid ${theme.palette.action.disabled}`
25309
+ borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
25066
25310
  }
25067
25311
  }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
25068
- borderColor: theme.palette[ownerState.color].dark
25312
+ borderColor: (theme.vars || theme).palette[ownerState.color].dark
25069
25313
  }, {
25070
25314
  '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
25071
25315
  borderRightColor: 'currentColor'
@@ -25100,7 +25344,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25100
25344
  size = 'medium',
25101
25345
  variant = 'outlined'
25102
25346
  } = props,
25103
- other = _objectWithoutPropertiesLoose(props, _excluded$1E);
25347
+ other = _objectWithoutPropertiesLoose(props, _excluded$1D);
25104
25348
 
25105
25349
  const ownerState = _extends({}, props, {
25106
25350
  color,
@@ -25115,7 +25359,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25115
25359
  variant
25116
25360
  });
25117
25361
 
25118
- const classes = useUtilityClasses$1n(ownerState);
25362
+ const classes = useUtilityClasses$1m(ownerState);
25119
25363
  const context = React__namespace.useMemo(() => ({
25120
25364
  className: classes.grouped,
25121
25365
  color,
@@ -25245,9 +25489,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25245
25489
  const cardClasses = generateUtilityClasses('MuiCard', ['root']);
25246
25490
  var cardClasses$1 = cardClasses;
25247
25491
 
25248
- const _excluded$1D = ["className", "raised"];
25492
+ const _excluded$1C = ["className", "raised"];
25249
25493
 
25250
- const useUtilityClasses$1m = ownerState => {
25494
+ const useUtilityClasses$1l = ownerState => {
25251
25495
  const {
25252
25496
  classes
25253
25497
  } = ownerState;
@@ -25276,13 +25520,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25276
25520
  className,
25277
25521
  raised = false
25278
25522
  } = props,
25279
- other = _objectWithoutPropertiesLoose(props, _excluded$1D);
25523
+ other = _objectWithoutPropertiesLoose(props, _excluded$1C);
25280
25524
 
25281
25525
  const ownerState = _extends({}, props, {
25282
25526
  raised
25283
25527
  });
25284
25528
 
25285
- const classes = useUtilityClasses$1m(ownerState);
25529
+ const classes = useUtilityClasses$1l(ownerState);
25286
25530
  return /*#__PURE__*/jsxRuntime_1(CardRoot, _extends({
25287
25531
  className: clsx(classes.root, className),
25288
25532
  elevation: raised ? 8 : undefined,
@@ -25338,9 +25582,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25338
25582
  const cardActionAreaClasses = generateUtilityClasses('MuiCardActionArea', ['root', 'focusVisible', 'focusHighlight']);
25339
25583
  var cardActionAreaClasses$1 = cardActionAreaClasses;
25340
25584
 
25341
- const _excluded$1C = ["children", "className", "focusVisibleClassName"];
25585
+ const _excluded$1B = ["children", "className", "focusVisibleClassName"];
25342
25586
 
25343
- const useUtilityClasses$1l = ownerState => {
25587
+ const useUtilityClasses$1k = ownerState => {
25344
25588
  const {
25345
25589
  classes
25346
25590
  } = ownerState;
@@ -25362,13 +25606,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25362
25606
  textAlign: 'inherit',
25363
25607
  width: '100%',
25364
25608
  [`&:hover .${cardActionAreaClasses$1.focusHighlight}`]: {
25365
- opacity: theme.palette.action.hoverOpacity,
25609
+ opacity: (theme.vars || theme).palette.action.hoverOpacity,
25366
25610
  '@media (hover: none)': {
25367
25611
  opacity: 0
25368
25612
  }
25369
25613
  },
25370
25614
  [`&.${cardActionAreaClasses$1.focusVisible} .${cardActionAreaClasses$1.focusHighlight}`]: {
25371
- opacity: theme.palette.action.focusOpacity
25615
+ opacity: (theme.vars || theme).palette.action.focusOpacity
25372
25616
  }
25373
25617
  }));
25374
25618
  const CardActionAreaFocusHighlight = styled$1('span', {
@@ -25403,10 +25647,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25403
25647
  className,
25404
25648
  focusVisibleClassName
25405
25649
  } = props,
25406
- other = _objectWithoutPropertiesLoose(props, _excluded$1C);
25650
+ other = _objectWithoutPropertiesLoose(props, _excluded$1B);
25407
25651
 
25408
25652
  const ownerState = props;
25409
- const classes = useUtilityClasses$1l(ownerState);
25653
+ const classes = useUtilityClasses$1k(ownerState);
25410
25654
  return /*#__PURE__*/jsxRuntime_2(CardActionAreaRoot, _extends({
25411
25655
  className: clsx(classes.root, className),
25412
25656
  focusVisibleClassName: clsx(focusVisibleClassName, classes.focusVisible),
@@ -25460,9 +25704,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25460
25704
  const cardActionsClasses = generateUtilityClasses('MuiCardActions', ['root', 'spacing']);
25461
25705
  var cardActionsClasses$1 = cardActionsClasses;
25462
25706
 
25463
- const _excluded$1B = ["disableSpacing", "className"];
25707
+ const _excluded$1A = ["disableSpacing", "className"];
25464
25708
 
25465
- const useUtilityClasses$1k = ownerState => {
25709
+ const useUtilityClasses$1j = ownerState => {
25466
25710
  const {
25467
25711
  classes,
25468
25712
  disableSpacing
@@ -25503,13 +25747,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25503
25747
  disableSpacing = false,
25504
25748
  className
25505
25749
  } = props,
25506
- other = _objectWithoutPropertiesLoose(props, _excluded$1B);
25750
+ other = _objectWithoutPropertiesLoose(props, _excluded$1A);
25507
25751
 
25508
25752
  const ownerState = _extends({}, props, {
25509
25753
  disableSpacing
25510
25754
  });
25511
25755
 
25512
- const classes = useUtilityClasses$1k(ownerState);
25756
+ const classes = useUtilityClasses$1j(ownerState);
25513
25757
  return /*#__PURE__*/jsxRuntime_1(CardActionsRoot, _extends({
25514
25758
  className: clsx(classes.root, className),
25515
25759
  ownerState: ownerState,
@@ -25558,9 +25802,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25558
25802
  const cardContentClasses = generateUtilityClasses('MuiCardContent', ['root']);
25559
25803
  var cardContentClasses$1 = cardContentClasses;
25560
25804
 
25561
- const _excluded$1A = ["className", "component"];
25805
+ const _excluded$1z = ["className", "component"];
25562
25806
 
25563
- const useUtilityClasses$1j = ownerState => {
25807
+ const useUtilityClasses$1i = ownerState => {
25564
25808
  const {
25565
25809
  classes
25566
25810
  } = ownerState;
@@ -25592,13 +25836,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25592
25836
  className,
25593
25837
  component = 'div'
25594
25838
  } = props,
25595
- other = _objectWithoutPropertiesLoose(props, _excluded$1A);
25839
+ other = _objectWithoutPropertiesLoose(props, _excluded$1z);
25596
25840
 
25597
25841
  const ownerState = _extends({}, props, {
25598
25842
  component
25599
25843
  });
25600
25844
 
25601
- const classes = useUtilityClasses$1j(ownerState);
25845
+ const classes = useUtilityClasses$1i(ownerState);
25602
25846
  return /*#__PURE__*/jsxRuntime_1(CardContentRoot, _extends({
25603
25847
  as: component,
25604
25848
  className: clsx(classes.root, className),
@@ -25648,9 +25892,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25648
25892
  const cardHeaderClasses = generateUtilityClasses('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);
25649
25893
  var cardHeaderClasses$1 = cardHeaderClasses;
25650
25894
 
25651
- const _excluded$1z = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"];
25895
+ const _excluded$1y = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"];
25652
25896
 
25653
- const useUtilityClasses$1i = ownerState => {
25897
+ const useUtilityClasses$1h = ownerState => {
25654
25898
  const {
25655
25899
  classes
25656
25900
  } = ownerState;
@@ -25721,14 +25965,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25721
25965
  title: titleProp,
25722
25966
  titleTypographyProps
25723
25967
  } = props,
25724
- other = _objectWithoutPropertiesLoose(props, _excluded$1z);
25968
+ other = _objectWithoutPropertiesLoose(props, _excluded$1y);
25725
25969
 
25726
25970
  const ownerState = _extends({}, props, {
25727
25971
  component,
25728
25972
  disableTypography
25729
25973
  });
25730
25974
 
25731
- const classes = useUtilityClasses$1i(ownerState);
25975
+ const classes = useUtilityClasses$1h(ownerState);
25732
25976
  let title = titleProp;
25733
25977
 
25734
25978
  if (title != null && title.type !== Typography$1 && !disableTypography) {
@@ -25862,9 +26106,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25862
26106
  const cardMediaClasses = generateUtilityClasses('MuiCardMedia', ['root', 'media', 'img']);
25863
26107
  var cardMediaClasses$1 = cardMediaClasses;
25864
26108
 
25865
- const _excluded$1y = ["children", "className", "component", "image", "src", "style"];
26109
+ const _excluded$1x = ["children", "className", "component", "image", "src", "style"];
25866
26110
 
25867
- const useUtilityClasses$1h = ownerState => {
26111
+ const useUtilityClasses$1g = ownerState => {
25868
26112
  const {
25869
26113
  classes,
25870
26114
  isMediaComponent,
@@ -25918,7 +26162,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25918
26162
  src,
25919
26163
  style
25920
26164
  } = props,
25921
- other = _objectWithoutPropertiesLoose(props, _excluded$1y);
26165
+ other = _objectWithoutPropertiesLoose(props, _excluded$1x);
25922
26166
 
25923
26167
  const isMediaComponent = MEDIA_COMPONENTS.indexOf(component) !== -1;
25924
26168
  const composedStyle = !isMediaComponent && image ? _extends({
@@ -25931,7 +26175,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25931
26175
  isImageComponent: IMAGE_COMPONENTS.indexOf(component) !== -1
25932
26176
  });
25933
26177
 
25934
- const classes = useUtilityClasses$1h(ownerState);
26178
+ const classes = useUtilityClasses$1g(ownerState);
25935
26179
  return /*#__PURE__*/jsxRuntime_1(CardMediaRoot, _extends({
25936
26180
  className: clsx(classes.root, className),
25937
26181
  as: component,
@@ -26010,9 +26254,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26010
26254
  }
26011
26255
  generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);
26012
26256
 
26013
- const _excluded$1x = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"];
26257
+ const _excluded$1w = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"];
26014
26258
 
26015
- const useUtilityClasses$1g = ownerState => {
26259
+ const useUtilityClasses$1f = ownerState => {
26016
26260
  const {
26017
26261
  classes,
26018
26262
  checked,
@@ -26076,7 +26320,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26076
26320
  type,
26077
26321
  value
26078
26322
  } = props,
26079
- other = _objectWithoutPropertiesLoose(props, _excluded$1x);
26323
+ other = _objectWithoutPropertiesLoose(props, _excluded$1w);
26080
26324
 
26081
26325
  const [checked, setCheckedState] = useControlled({
26082
26326
  controlled: checkedProp,
@@ -26138,7 +26382,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26138
26382
  edge
26139
26383
  });
26140
26384
 
26141
- const classes = useUtilityClasses$1g(ownerState);
26385
+ const classes = useUtilityClasses$1f(ownerState);
26142
26386
  return /*#__PURE__*/jsxRuntime_2(SwitchBaseRoot, _extends({
26143
26387
  component: "span",
26144
26388
  className: clsx(classes.root, className),
@@ -26320,9 +26564,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26320
26564
  const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary']);
26321
26565
  var checkboxClasses$1 = checkboxClasses;
26322
26566
 
26323
- const _excluded$1w = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"];
26567
+ const _excluded$1v = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size"];
26324
26568
 
26325
- const useUtilityClasses$1f = ownerState => {
26569
+ const useUtilityClasses$1e = ownerState => {
26326
26570
  const {
26327
26571
  classes,
26328
26572
  indeterminate,
@@ -26390,7 +26634,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26390
26634
  inputProps,
26391
26635
  size = 'medium'
26392
26636
  } = props,
26393
- other = _objectWithoutPropertiesLoose(props, _excluded$1w);
26637
+ other = _objectWithoutPropertiesLoose(props, _excluded$1v);
26394
26638
 
26395
26639
  const icon = indeterminate ? indeterminateIconProp : iconProp;
26396
26640
  const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
@@ -26401,7 +26645,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26401
26645
  size
26402
26646
  });
26403
26647
 
26404
- const classes = useUtilityClasses$1f(ownerState);
26648
+ const classes = useUtilityClasses$1e(ownerState);
26405
26649
  return /*#__PURE__*/jsxRuntime_1(CheckboxRoot, _extends({
26406
26650
  type: "checkbox",
26407
26651
  inputProps: _extends({
@@ -26545,7 +26789,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26545
26789
  const circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
26546
26790
  var circularProgressClasses$1 = circularProgressClasses;
26547
26791
 
26548
- const _excluded$1v = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
26792
+ const _excluded$1u = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
26549
26793
 
26550
26794
  let _$2 = t => t,
26551
26795
  _t$2,
@@ -26579,7 +26823,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26579
26823
  }
26580
26824
  `));
26581
26825
 
26582
- const useUtilityClasses$1e = ownerState => {
26826
+ const useUtilityClasses$1d = ownerState => {
26583
26827
  const {
26584
26828
  classes,
26585
26829
  variant,
@@ -26675,7 +26919,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26675
26919
  value = 0,
26676
26920
  variant = 'indeterminate'
26677
26921
  } = props,
26678
- other = _objectWithoutPropertiesLoose(props, _excluded$1v);
26922
+ other = _objectWithoutPropertiesLoose(props, _excluded$1u);
26679
26923
 
26680
26924
  const ownerState = _extends({}, props, {
26681
26925
  color,
@@ -26686,7 +26930,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26686
26930
  variant
26687
26931
  });
26688
26932
 
26689
- const classes = useUtilityClasses$1e(ownerState);
26933
+ const classes = useUtilityClasses$1d(ownerState);
26690
26934
  const circleStyle = {};
26691
26935
  const rootStyle = {};
26692
26936
  const rootProps = {};
@@ -26807,106 +27051,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26807
27051
  } ;
26808
27052
  var CircularProgress$1 = CircularProgress;
26809
27053
 
26810
- function getContainerUtilityClass(slot) {
26811
- return generateUtilityClass('MuiContainer', slot);
26812
- }
26813
- const containerClasses = generateUtilityClasses('MuiContainer', ['root', 'disableGutters', 'fixed', 'maxWidthXs', 'maxWidthSm', 'maxWidthMd', 'maxWidthLg', 'maxWidthXl']);
26814
- var containerClasses$1 = containerClasses;
26815
-
26816
- const _excluded$1u = ["className", "component", "disableGutters", "fixed", "maxWidth"];
26817
-
26818
- const useUtilityClasses$1d = ownerState => {
26819
- const {
26820
- classes,
26821
- fixed,
26822
- disableGutters,
26823
- maxWidth
26824
- } = ownerState;
26825
- const slots = {
26826
- root: ['root', maxWidth && `maxWidth${capitalize(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
26827
- };
26828
- return composeClasses(slots, getContainerUtilityClass, classes);
26829
- };
26830
-
26831
- const ContainerRoot = styled$1('div', {
26832
- name: 'MuiContainer',
26833
- slot: 'Root',
26834
- overridesResolver: (props, styles) => {
26835
- const {
26836
- ownerState
26837
- } = props;
26838
- return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
26839
- }
26840
- })(({
26841
- theme,
26842
- ownerState
26843
- }) => _extends({
26844
- width: '100%',
26845
- marginLeft: 'auto',
26846
- boxSizing: 'border-box',
26847
- marginRight: 'auto',
26848
- display: 'block'
26849
- }, !ownerState.disableGutters && {
26850
- paddingLeft: theme.spacing(2),
26851
- paddingRight: theme.spacing(2),
26852
- [theme.breakpoints.up('sm')]: {
26853
- paddingLeft: theme.spacing(3),
26854
- paddingRight: theme.spacing(3)
26855
- }
26856
- }), ({
26857
- theme,
26858
- ownerState
26859
- }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
26860
- const value = theme.breakpoints.values[breakpoint];
26861
-
26862
- if (value !== 0) {
26863
- acc[theme.breakpoints.up(breakpoint)] = {
26864
- maxWidth: `${value}${theme.breakpoints.unit}`
26865
- };
26866
- }
26867
-
26868
- return acc;
26869
- }, {}), ({
26870
- theme,
26871
- ownerState
26872
- }) => _extends({}, ownerState.maxWidth === 'xs' && {
26873
- [theme.breakpoints.up('xs')]: {
26874
- maxWidth: Math.max(theme.breakpoints.values.xs, 444)
26875
- }
26876
- }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
26877
- [theme.breakpoints.up(ownerState.maxWidth)]: {
26878
- maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`
26879
- }
26880
- }));
26881
- const Container = /*#__PURE__*/React__namespace.forwardRef(function Container(inProps, ref) {
26882
- const props = useThemeProps({
27054
+ const Container = createContainer({
27055
+ createStyledComponent: styled$1('div', {
27056
+ name: 'MuiContainer',
27057
+ slot: 'Root',
27058
+ overridesResolver: (props, styles) => {
27059
+ const {
27060
+ ownerState
27061
+ } = props;
27062
+ return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
27063
+ }
27064
+ }),
27065
+ useThemeProps: inProps => useThemeProps({
26883
27066
  props: inProps,
26884
27067
  name: 'MuiContainer'
26885
- });
26886
-
26887
- const {
26888
- className,
26889
- component = 'div',
26890
- disableGutters = false,
26891
- fixed = false,
26892
- maxWidth = 'lg'
26893
- } = props,
26894
- other = _objectWithoutPropertiesLoose(props, _excluded$1u);
26895
-
26896
- const ownerState = _extends({}, props, {
26897
- component,
26898
- disableGutters,
26899
- fixed,
26900
- maxWidth
26901
- });
26902
-
26903
- const classes = useUtilityClasses$1d(ownerState);
26904
- return /*#__PURE__*/jsxRuntime_1(ContainerRoot, _extends({
26905
- as: component,
26906
- ownerState: ownerState,
26907
- className: clsx(classes.root, className),
26908
- ref: ref
26909
- }, other));
27068
+ })
26910
27069
  });
26911
27070
  Container.propTypes
26912
27071
  /* remove-proptypes */
@@ -26926,11 +27085,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26926
27085
  */
26927
27086
  classes: PropTypes.object,
26928
27087
 
26929
- /**
26930
- * @ignore
26931
- */
26932
- className: PropTypes.string,
26933
-
26934
27088
  /**
26935
27089
  * The component used for the root node.
26936
27090
  * Either a string to use a HTML element or a component.
@@ -26969,6 +27123,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26969
27123
  } ;
26970
27124
  var Container$1 = Container;
26971
27125
 
27126
+ function getContainerUtilityClass(slot) {
27127
+ return generateUtilityClass('MuiContainer', slot);
27128
+ }
27129
+ const containerClasses = generateUtilityClasses('MuiContainer', ['root', 'disableGutters', 'fixed', 'maxWidthXs', 'maxWidthSm', 'maxWidthMd', 'maxWidthLg', 'maxWidthXl']);
27130
+ var containerClasses$1 = containerClasses;
27131
+
26972
27132
  const html = (theme, enableColorScheme) => _extends({
26973
27133
  WebkitFontSmoothing: 'antialiased',
26974
27134
  // Antialiasing.
@@ -26983,12 +27143,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26983
27143
  colorScheme: theme.palette.mode
26984
27144
  });
26985
27145
  const body = theme => _extends({
26986
- color: theme.palette.text.primary
27146
+ color: (theme.vars || theme).palette.text.primary
26987
27147
  }, theme.typography.body1, {
26988
- backgroundColor: theme.palette.background.default,
27148
+ backgroundColor: (theme.vars || theme).palette.background.default,
26989
27149
  '@media print': {
26990
27150
  // Save printer ink.
26991
- backgroundColor: theme.palette.common.white
27151
+ backgroundColor: (theme.vars || theme).palette.common.white
26992
27152
  }
26993
27153
  });
26994
27154
  const styles$3 = (theme, enableColorScheme = false) => {
@@ -27008,7 +27168,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27008
27168
  // Add support for document.body.requestFullScreen().
27009
27169
  // Other elements, if background transparent, are not supported.
27010
27170
  '&::backdrop': {
27011
- backgroundColor: theme.palette.background.default
27171
+ backgroundColor: (theme.vars || theme).palette.background.default
27012
27172
  }
27013
27173
  })
27014
27174
  };
@@ -27116,7 +27276,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27116
27276
  ownerState
27117
27277
  }) => _extends({
27118
27278
  position: 'fixed',
27119
- zIndex: theme.zIndex.modal,
27279
+ zIndex: (theme.vars || theme).zIndex.modal,
27120
27280
  right: 0,
27121
27281
  bottom: 0,
27122
27282
  top: 0,
@@ -27929,8 +28089,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27929
28089
  padding: '20px 24px'
27930
28090
  }, ownerState.dividers ? {
27931
28091
  padding: '16px 24px',
27932
- borderTop: `1px solid ${theme.palette.divider}`,
27933
- borderBottom: `1px solid ${theme.palette.divider}`
28092
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
28093
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
27934
28094
  } : {
27935
28095
  [`.${dialogTitleClasses$1.root} + &`]: {
27936
28096
  paddingTop: 0
@@ -28189,7 +28349,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28189
28349
  flexShrink: 0,
28190
28350
  borderWidth: 0,
28191
28351
  borderStyle: 'solid',
28192
- borderColor: theme.palette.divider,
28352
+ borderColor: (theme.vars || theme).palette.divider,
28193
28353
  borderBottomWidth: 'thin'
28194
28354
  }, ownerState.absolute && {
28195
28355
  position: 'absolute',
@@ -28197,7 +28357,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28197
28357
  left: 0,
28198
28358
  width: '100%'
28199
28359
  }, ownerState.light && {
28200
- borderColor: alpha(theme.palette.divider, 0.08)
28360
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
28201
28361
  }, ownerState.variant === 'inset' && {
28202
28362
  marginLeft: 72
28203
28363
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -28224,7 +28384,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28224
28384
  '&::before, &::after': {
28225
28385
  position: 'relative',
28226
28386
  width: '100%',
28227
- borderTop: `thin solid ${theme.palette.divider}`,
28387
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
28228
28388
  top: '50%',
28229
28389
  content: '""',
28230
28390
  transform: 'translateY(50%)'
@@ -28239,7 +28399,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28239
28399
  top: '0%',
28240
28400
  left: '50%',
28241
28401
  borderTop: 0,
28242
- borderLeft: `thin solid ${theme.palette.divider}`,
28402
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
28243
28403
  transform: 'translateX(0%)'
28244
28404
  }
28245
28405
  }), ({
@@ -28803,7 +28963,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28803
28963
  })(({
28804
28964
  theme
28805
28965
  }) => ({
28806
- zIndex: theme.zIndex.drawer
28966
+ zIndex: (theme.vars || theme).zIndex.drawer
28807
28967
  }));
28808
28968
  const DrawerDockedRoot = styled$1('div', {
28809
28969
  shouldForwardProp: rootShouldForwardProp,
@@ -28832,7 +28992,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28832
28992
  flexDirection: 'column',
28833
28993
  height: '100%',
28834
28994
  flex: '1 0 auto',
28835
- zIndex: theme.zIndex.drawer,
28995
+ zIndex: (theme.vars || theme).zIndex.drawer,
28836
28996
  // Add iOS momentum scrolling for iOS < 13.0
28837
28997
  WebkitOverflowScrolling: 'touch',
28838
28998
  // temporary style
@@ -28860,13 +29020,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28860
29020
  height: 'auto',
28861
29021
  maxHeight: '100%'
28862
29022
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
28863
- borderRight: `1px solid ${theme.palette.divider}`
29023
+ borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
28864
29024
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
28865
- borderBottom: `1px solid ${theme.palette.divider}`
29025
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
28866
29026
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
28867
- borderLeft: `1px solid ${theme.palette.divider}`
29027
+ borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
28868
29028
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
28869
- borderTop: `1px solid ${theme.palette.divider}`
29029
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
28870
29030
  }));
28871
29031
  const oppositeDirection = {
28872
29032
  left: 'right',
@@ -29126,77 +29286,81 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29126
29286
  })(({
29127
29287
  theme,
29128
29288
  ownerState
29129
- }) => _extends({}, theme.typography.button, {
29130
- minHeight: 36,
29131
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
29132
- duration: theme.transitions.duration.short
29133
- }),
29134
- borderRadius: '50%',
29135
- padding: 0,
29136
- minWidth: 0,
29137
- width: 56,
29138
- height: 56,
29139
- zIndex: theme.zIndex.fab,
29140
- boxShadow: theme.shadows[6],
29141
- '&:active': {
29142
- boxShadow: theme.shadows[12]
29143
- },
29144
- color: theme.palette.getContrastText(theme.palette.grey[300]),
29145
- backgroundColor: theme.palette.grey[300],
29146
- '&:hover': {
29147
- backgroundColor: theme.palette.grey.A100,
29148
- // Reset on touch devices, it doesn't add specificity
29149
- '@media (hover: none)': {
29150
- backgroundColor: theme.palette.grey[300]
29289
+ }) => {
29290
+ var _theme$palette$getCon, _theme$palette;
29291
+
29292
+ return _extends({}, theme.typography.button, {
29293
+ minHeight: 36,
29294
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
29295
+ duration: theme.transitions.duration.short
29296
+ }),
29297
+ borderRadius: '50%',
29298
+ padding: 0,
29299
+ minWidth: 0,
29300
+ width: 56,
29301
+ height: 56,
29302
+ zIndex: (theme.vars || theme).zIndex.fab,
29303
+ boxShadow: (theme.vars || theme).shadows[6],
29304
+ '&:active': {
29305
+ boxShadow: (theme.vars || theme).shadows[12]
29151
29306
  },
29152
- textDecoration: 'none'
29153
- },
29154
- [`&.${fabClasses$1.focusVisible}`]: {
29155
- boxShadow: theme.shadows[6]
29156
- },
29157
- [`&.${fabClasses$1.disabled}`]: {
29158
- color: theme.palette.action.disabled,
29159
- boxShadow: theme.shadows[0],
29160
- backgroundColor: theme.palette.action.disabledBackground
29161
- }
29162
- }, ownerState.size === 'small' && {
29163
- width: 40,
29164
- height: 40
29165
- }, ownerState.size === 'medium' && {
29166
- width: 48,
29167
- height: 48
29168
- }, ownerState.variant === 'extended' && {
29169
- borderRadius: 48 / 2,
29170
- padding: '0 16px',
29171
- width: 'auto',
29172
- minHeight: 'auto',
29173
- minWidth: 48,
29174
- height: 48
29175
- }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
29176
- width: 'auto',
29177
- padding: '0 8px',
29178
- borderRadius: 34 / 2,
29179
- minWidth: 34,
29180
- height: 34
29181
- }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
29182
- width: 'auto',
29183
- padding: '0 16px',
29184
- borderRadius: 40 / 2,
29185
- minWidth: 40,
29186
- height: 40
29187
- }, ownerState.color === 'inherit' && {
29188
- color: 'inherit'
29189
- }), ({
29307
+ 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]),
29308
+ backgroundColor: (theme.vars || theme).palette.grey[300],
29309
+ '&:hover': {
29310
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
29311
+ // Reset on touch devices, it doesn't add specificity
29312
+ '@media (hover: none)': {
29313
+ backgroundColor: (theme.vars || theme).palette.grey[300]
29314
+ },
29315
+ textDecoration: 'none'
29316
+ },
29317
+ [`&.${fabClasses$1.focusVisible}`]: {
29318
+ boxShadow: (theme.vars || theme).shadows[6]
29319
+ },
29320
+ [`&.${fabClasses$1.disabled}`]: {
29321
+ color: (theme.vars || theme).palette.action.disabled,
29322
+ boxShadow: (theme.vars || theme).shadows[0],
29323
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
29324
+ }
29325
+ }, ownerState.size === 'small' && {
29326
+ width: 40,
29327
+ height: 40
29328
+ }, ownerState.size === 'medium' && {
29329
+ width: 48,
29330
+ height: 48
29331
+ }, ownerState.variant === 'extended' && {
29332
+ borderRadius: 48 / 2,
29333
+ padding: '0 16px',
29334
+ width: 'auto',
29335
+ minHeight: 'auto',
29336
+ minWidth: 48,
29337
+ height: 48
29338
+ }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
29339
+ width: 'auto',
29340
+ padding: '0 8px',
29341
+ borderRadius: 34 / 2,
29342
+ minWidth: 34,
29343
+ height: 34
29344
+ }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
29345
+ width: 'auto',
29346
+ padding: '0 16px',
29347
+ borderRadius: 40 / 2,
29348
+ minWidth: 40,
29349
+ height: 40
29350
+ }, ownerState.color === 'inherit' && {
29351
+ color: 'inherit'
29352
+ });
29353
+ }, ({
29190
29354
  theme,
29191
29355
  ownerState
29192
- }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
29193
- color: theme.palette[ownerState.color].contrastText,
29194
- backgroundColor: theme.palette[ownerState.color].main,
29356
+ }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
29357
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
29358
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
29195
29359
  '&:hover': {
29196
- backgroundColor: theme.palette[ownerState.color].dark,
29360
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
29197
29361
  // Reset on touch devices, it doesn't add specificity
29198
29362
  '@media (hover: none)': {
29199
- backgroundColor: theme.palette[ownerState.color].main
29363
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
29200
29364
  }
29201
29365
  }
29202
29366
  }));
@@ -29270,7 +29434,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
29270
29434
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
29271
29435
  * @default 'default'
29272
29436
  */
29273
- color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
29437
+ color: PropTypes
29438
+ /* @typescript-to-proptypes-ignore */
29439
+ .oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
29274
29440
 
29275
29441
  /**
29276
29442
  * The component used for the root node.
@@ -30117,7 +30283,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30117
30283
  }, {
30118
30284
  [`& .${formControlLabelClasses$1.label}`]: {
30119
30285
  [`&.${formControlLabelClasses$1.disabled}`]: {
30120
- color: theme.palette.text.disabled
30286
+ color: (theme.vars || theme).palette.text.disabled
30121
30287
  }
30122
30288
  }
30123
30289
  }));
@@ -30432,7 +30598,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30432
30598
  theme,
30433
30599
  ownerState
30434
30600
  }) => _extends({
30435
- color: theme.palette.text.secondary
30601
+ color: (theme.vars || theme).palette.text.secondary
30436
30602
  }, theme.typography.caption, {
30437
30603
  textAlign: 'left',
30438
30604
  marginTop: 3,
@@ -30440,10 +30606,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30440
30606
  marginBottom: 0,
30441
30607
  marginLeft: 0,
30442
30608
  [`&.${formHelperTextClasses$1.disabled}`]: {
30443
- color: theme.palette.text.disabled
30609
+ color: (theme.vars || theme).palette.text.disabled
30444
30610
  },
30445
30611
  [`&.${formHelperTextClasses$1.error}`]: {
30446
- color: theme.palette.error.main
30612
+ color: (theme.vars || theme).palette.error.main
30447
30613
  }
30448
30614
  }, ownerState.size === 'small' && {
30449
30615
  marginTop: 4
@@ -30608,19 +30774,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30608
30774
  theme,
30609
30775
  ownerState
30610
30776
  }) => _extends({
30611
- color: theme.palette.text.secondary
30777
+ color: (theme.vars || theme).palette.text.secondary
30612
30778
  }, theme.typography.body1, {
30613
30779
  lineHeight: '1.4375em',
30614
30780
  padding: 0,
30615
30781
  position: 'relative',
30616
30782
  [`&.${formLabelClasses$1.focused}`]: {
30617
- color: theme.palette[ownerState.color].main
30783
+ color: (theme.vars || theme).palette[ownerState.color].main
30618
30784
  },
30619
30785
  [`&.${formLabelClasses$1.disabled}`]: {
30620
- color: theme.palette.text.disabled
30786
+ color: (theme.vars || theme).palette.text.disabled
30621
30787
  },
30622
30788
  [`&.${formLabelClasses$1.error}`]: {
30623
- color: theme.palette.error.main
30789
+ color: (theme.vars || theme).palette.error.main
30624
30790
  }
30625
30791
  }));
30626
30792
  const AsteriskComponent = styled$1('span', {
@@ -30631,7 +30797,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30631
30797
  theme
30632
30798
  }) => ({
30633
30799
  [`&.${formLabelClasses$1.error}`]: {
30634
- color: theme.palette.error.main
30800
+ color: (theme.vars || theme).palette.error.main
30635
30801
  }
30636
30802
  }));
30637
30803
  const FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(inProps, ref) {
@@ -32320,14 +32486,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32320
32486
  }[ownerState.fontSize],
32321
32487
  // TODO v5 deprecate, v6 remove for sx
32322
32488
  color: {
32323
- primary: theme.palette.primary.main,
32324
- secondary: theme.palette.secondary.main,
32325
- info: theme.palette.info.main,
32326
- success: theme.palette.success.main,
32327
- warning: theme.palette.warning.main,
32328
- action: theme.palette.action.active,
32329
- error: theme.palette.error.main,
32330
- disabled: theme.palette.action.disabled,
32489
+ primary: (theme.vars || theme).palette.primary.main,
32490
+ secondary: (theme.vars || theme).palette.secondary.main,
32491
+ info: (theme.vars || theme).palette.info.main,
32492
+ success: (theme.vars || theme).palette.success.main,
32493
+ warning: (theme.vars || theme).palette.warning.main,
32494
+ action: (theme.vars || theme).palette.action.active,
32495
+ error: (theme.vars || theme).palette.error.main,
32496
+ disabled: (theme.vars || theme).palette.action.disabled,
32331
32497
  inherit: undefined
32332
32498
  }[ownerState.color]
32333
32499
  }));
@@ -32864,7 +33030,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32864
33030
  return _extends({
32865
33031
  flexGrow: 1,
32866
33032
  padding: '12px 16px',
32867
- color: theme.palette.common.white,
33033
+ color: (theme.vars || theme).palette.common.white,
32868
33034
  overflow: 'hidden'
32869
33035
  }, ownerState.position === 'below' && {
32870
33036
  padding: '6px 0 12px',
@@ -33053,7 +33219,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33053
33219
  ownerState
33054
33220
  }) => {
33055
33221
  const light = theme.palette.mode === 'light';
33056
- const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
33222
+ let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
33223
+
33224
+ if (theme.vars) {
33225
+ bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})`;
33226
+ }
33227
+
33057
33228
  return _extends({
33058
33229
  position: 'relative'
33059
33230
  }, ownerState.formControl && {
@@ -33062,7 +33233,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33062
33233
  }
33063
33234
  }, !ownerState.disableUnderline && {
33064
33235
  '&:after': {
33065
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
33236
+ borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
33066
33237
  left: 0,
33067
33238
  bottom: 0,
33068
33239
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -33083,7 +33254,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33083
33254
  transform: 'scaleX(1) translateX(0)'
33084
33255
  },
33085
33256
  [`&.${inputClasses$1.error}:after`]: {
33086
- borderBottomColor: theme.palette.error.main,
33257
+ borderBottomColor: (theme.vars || theme).palette.error.main,
33087
33258
  transform: 'scaleX(1)' // error is always underlined in red
33088
33259
 
33089
33260
  },
@@ -33102,7 +33273,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33102
33273
 
33103
33274
  },
33104
33275
  [`&:hover:not(.${inputClasses$1.disabled}):before`]: {
33105
- borderBottom: `2px solid ${theme.palette.text.primary}`,
33276
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
33106
33277
  // Reset on touch devices, it doesn't add specificity
33107
33278
  '@media (hover: none)': {
33108
33279
  borderBottom: `1px solid ${bottomLineColor}`
@@ -33398,7 +33569,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33398
33569
  maxHeight: '2em',
33399
33570
  alignItems: 'center',
33400
33571
  whiteSpace: 'nowrap',
33401
- color: theme.palette.action.active
33572
+ color: (theme.vars || theme).palette.action.active
33402
33573
  }, ownerState.variant === 'filled' && {
33403
33574
  // Styles applied to the root element if `variant="filled"`.
33404
33575
  [`&.${inputAdornmentClasses$1.positionStart}&:not(.${inputAdornmentClasses$1.hiddenLabel})`]: {
@@ -34209,7 +34380,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34209
34380
  });
34210
34381
  });
34211
34382
  const Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34212
- const theme = useTheme();
34213
34383
  const props = useThemeProps({
34214
34384
  props: inProps,
34215
34385
  name: 'MuiLink'
@@ -34228,7 +34398,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34228
34398
  } = props,
34229
34399
  other = _objectWithoutPropertiesLoose(props, _excluded$10);
34230
34400
 
34231
- const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
34232
34401
  const {
34233
34402
  isFocusVisibleRef,
34234
34403
  onBlur: handleBlurVisible,
@@ -34263,9 +34432,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34263
34432
  };
34264
34433
 
34265
34434
  const ownerState = _extends({}, props, {
34266
- // It is too complex to support any types of `sx`.
34267
- // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
34268
- color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
34435
+ color,
34269
34436
  component,
34270
34437
  focusVisible,
34271
34438
  underline,
@@ -34283,8 +34450,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34283
34450
  ref: handlerRef,
34284
34451
  ownerState: ownerState,
34285
34452
  variant: variant,
34286
- sx: [...(inProps.color ? [{
34287
- color: colorTransformations[color] || color
34453
+ sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
34454
+ color
34288
34455
  }] : []), ...(Array.isArray(sx) ? sx : [sx])]
34289
34456
  }, other));
34290
34457
  });
@@ -34572,33 +34739,33 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34572
34739
  }),
34573
34740
  '&:hover': {
34574
34741
  textDecoration: 'none',
34575
- backgroundColor: theme.palette.action.hover,
34742
+ backgroundColor: (theme.vars || theme).palette.action.hover,
34576
34743
  // Reset on touch devices, it doesn't add specificity
34577
34744
  '@media (hover: none)': {
34578
34745
  backgroundColor: 'transparent'
34579
34746
  }
34580
34747
  },
34581
34748
  [`&.${listItemButtonClasses$1.selected}`]: {
34582
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34749
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34583
34750
  [`&.${listItemButtonClasses$1.focusVisible}`]: {
34584
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
34751
+ 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)
34585
34752
  }
34586
34753
  },
34587
34754
  [`&.${listItemButtonClasses$1.selected}:hover`]: {
34588
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
34755
+ 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),
34589
34756
  // Reset on touch devices, it doesn't add specificity
34590
34757
  '@media (hover: none)': {
34591
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34758
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34592
34759
  }
34593
34760
  },
34594
34761
  [`&.${listItemButtonClasses$1.focusVisible}`]: {
34595
- backgroundColor: theme.palette.action.focus
34762
+ backgroundColor: (theme.vars || theme).palette.action.focus
34596
34763
  },
34597
34764
  [`&.${listItemButtonClasses$1.disabled}`]: {
34598
- opacity: theme.palette.action.disabledOpacity
34765
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
34599
34766
  }
34600
34767
  }, ownerState.divider && {
34601
- borderBottom: `1px solid ${theme.palette.divider}`,
34768
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
34602
34769
  backgroundClip: 'padding-box'
34603
34770
  }, ownerState.alignItems === 'flex-start' && {
34604
34771
  alignItems: 'flex-start'
@@ -34659,7 +34826,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34659
34826
  value: childContext,
34660
34827
  children: /*#__PURE__*/jsxRuntime_1(ListItemButtonRoot, _extends({
34661
34828
  ref: handleRef,
34662
- component: component,
34829
+ href: other.href || other.to,
34830
+ component: (other.href || other.to) && component === 'div' ? 'a' : component,
34663
34831
  focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
34664
34832
  ownerState: ownerState
34665
34833
  }, other, {
@@ -34741,6 +34909,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34741
34909
  */
34742
34910
  focusVisibleClassName: PropTypes.string,
34743
34911
 
34912
+ /**
34913
+ * @ignore
34914
+ */
34915
+ href: PropTypes.string,
34916
+
34744
34917
  /**
34745
34918
  * Use to apply selected styling.
34746
34919
  * @default false
@@ -34915,21 +35088,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34915
35088
  }
34916
35089
  }, {
34917
35090
  [`&.${listItemClasses$1.focusVisible}`]: {
34918
- backgroundColor: theme.palette.action.focus
35091
+ backgroundColor: (theme.vars || theme).palette.action.focus
34919
35092
  },
34920
35093
  [`&.${listItemClasses$1.selected}`]: {
34921
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
35094
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
34922
35095
  [`&.${listItemClasses$1.focusVisible}`]: {
34923
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
35096
+ 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)
34924
35097
  }
34925
35098
  },
34926
35099
  [`&.${listItemClasses$1.disabled}`]: {
34927
- opacity: theme.palette.action.disabledOpacity
35100
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
34928
35101
  }
34929
35102
  }, ownerState.alignItems === 'flex-start' && {
34930
35103
  alignItems: 'flex-start'
34931
35104
  }, ownerState.divider && {
34932
- borderBottom: `1px solid ${theme.palette.divider}`,
35105
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
34933
35106
  backgroundClip: 'padding-box'
34934
35107
  }, ownerState.button && {
34935
35108
  transition: theme.transitions.create('background-color', {
@@ -34937,17 +35110,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34937
35110
  }),
34938
35111
  '&:hover': {
34939
35112
  textDecoration: 'none',
34940
- backgroundColor: theme.palette.action.hover,
35113
+ backgroundColor: (theme.vars || theme).palette.action.hover,
34941
35114
  // Reset on touch devices, it doesn't add specificity
34942
35115
  '@media (hover: none)': {
34943
35116
  backgroundColor: 'transparent'
34944
35117
  }
34945
35118
  },
34946
35119
  [`&.${listItemClasses$1.selected}:hover`]: {
34947
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
35120
+ 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),
34948
35121
  // Reset on touch devices, it doesn't add specificity
34949
35122
  '@media (hover: none)': {
34950
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
35123
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
34951
35124
  }
34952
35125
  }
34953
35126
  }, ownerState.hasSecondaryAction && {
@@ -35380,7 +35553,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35380
35553
  ownerState
35381
35554
  }) => _extends({
35382
35555
  minWidth: 56,
35383
- color: theme.palette.action.active,
35556
+ color: (theme.vars || theme).palette.action.active,
35384
35557
  flexShrink: 0,
35385
35558
  display: 'inline-flex'
35386
35559
  }, ownerState.alignItems === 'flex-start' && {
@@ -35707,7 +35880,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
35707
35880
  return false;
35708
35881
  }
35709
35882
  /**
35710
- * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
35883
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
35711
35884
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
35712
35885
  * use it separately you need to move focus into the component manually. Once
35713
35886
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -36760,35 +36933,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36760
36933
  paddingLeft: 16,
36761
36934
  paddingRight: 16
36762
36935
  }, ownerState.divider && {
36763
- borderBottom: `1px solid ${theme.palette.divider}`,
36936
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
36764
36937
  backgroundClip: 'padding-box'
36765
36938
  }, {
36766
36939
  '&:hover': {
36767
36940
  textDecoration: 'none',
36768
- backgroundColor: theme.palette.action.hover,
36941
+ backgroundColor: (theme.vars || theme).palette.action.hover,
36769
36942
  // Reset on touch devices, it doesn't add specificity
36770
36943
  '@media (hover: none)': {
36771
36944
  backgroundColor: 'transparent'
36772
36945
  }
36773
36946
  },
36774
36947
  [`&.${menuItemClasses$1.selected}`]: {
36775
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
36948
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
36776
36949
  [`&.${menuItemClasses$1.focusVisible}`]: {
36777
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
36950
+ 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)
36778
36951
  }
36779
36952
  },
36780
36953
  [`&.${menuItemClasses$1.selected}:hover`]: {
36781
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
36954
+ 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),
36782
36955
  // Reset on touch devices, it doesn't add specificity
36783
36956
  '@media (hover: none)': {
36784
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36957
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
36785
36958
  }
36786
36959
  },
36787
36960
  [`&.${menuItemClasses$1.focusVisible}`]: {
36788
- backgroundColor: theme.palette.action.focus
36961
+ backgroundColor: (theme.vars || theme).palette.action.focus
36789
36962
  },
36790
36963
  [`&.${menuItemClasses$1.disabled}`]: {
36791
- opacity: theme.palette.action.disabledOpacity
36964
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
36792
36965
  },
36793
36966
  [`& + .${dividerClasses$1.root}`]: {
36794
36967
  marginTop: theme.spacing(1),
@@ -37012,20 +37185,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37012
37185
  flexDirection: 'row',
37013
37186
  justifyContent: 'space-between',
37014
37187
  alignItems: 'center',
37015
- background: theme.palette.background.default,
37188
+ background: (theme.vars || theme).palette.background.default,
37016
37189
  padding: 8
37017
37190
  }, ownerState.position === 'bottom' && {
37018
37191
  position: 'fixed',
37019
37192
  bottom: 0,
37020
37193
  left: 0,
37021
37194
  right: 0,
37022
- zIndex: theme.zIndex.mobileStepper
37195
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37023
37196
  }, ownerState.position === 'top' && {
37024
37197
  position: 'fixed',
37025
37198
  top: 0,
37026
37199
  left: 0,
37027
37200
  right: 0,
37028
- zIndex: theme.zIndex.mobileStepper
37201
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37029
37202
  }));
37030
37203
  const MobileStepperDots = styled$1('div', {
37031
37204
  name: 'MuiMobileStepper',
@@ -37055,13 +37228,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
37055
37228
  transition: theme.transitions.create('background-color', {
37056
37229
  duration: theme.transitions.duration.shortest
37057
37230
  }),
37058
- backgroundColor: theme.palette.action.disabled,
37231
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
37059
37232
  borderRadius: '50%',
37060
37233
  width: 8,
37061
37234
  height: 8,
37062
37235
  margin: '0 2px'
37063
37236
  }, dotActive && {
37064
- backgroundColor: theme.palette.primary.main
37237
+ backgroundColor: (theme.vars || theme).palette.primary.main
37065
37238
  })));
37066
37239
  const MobileStepperProgress = styled$1(LinearProgress$1, {
37067
37240
  name: 'MuiMobileStepper',
@@ -38186,10 +38359,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38186
38359
  minWidth: 32,
38187
38360
  padding: '0 6px',
38188
38361
  margin: '0 3px',
38189
- color: theme.palette.text.primary,
38362
+ color: (theme.vars || theme).palette.text.primary,
38190
38363
  height: 'auto',
38191
38364
  [`&.${paginationItemClasses$1.disabled}`]: {
38192
- opacity: theme.palette.action.disabledOpacity
38365
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
38193
38366
  }
38194
38367
  }, ownerState.size === 'small' && {
38195
38368
  minWidth: 26,
@@ -38217,39 +38390,39 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38217
38390
  height: 32,
38218
38391
  padding: '0 6px',
38219
38392
  margin: '0 3px',
38220
- color: theme.palette.text.primary,
38393
+ color: (theme.vars || theme).palette.text.primary,
38221
38394
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38222
- backgroundColor: theme.palette.action.focus
38395
+ backgroundColor: (theme.vars || theme).palette.action.focus
38223
38396
  },
38224
38397
  [`&.${paginationItemClasses$1.disabled}`]: {
38225
- opacity: theme.palette.action.disabledOpacity
38398
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
38226
38399
  },
38227
38400
  transition: theme.transitions.create(['color', 'background-color'], {
38228
38401
  duration: theme.transitions.duration.short
38229
38402
  }),
38230
38403
  '&:hover': {
38231
- backgroundColor: theme.palette.action.hover,
38404
+ backgroundColor: (theme.vars || theme).palette.action.hover,
38232
38405
  // Reset on touch devices, it doesn't add specificity
38233
38406
  '@media (hover: none)': {
38234
38407
  backgroundColor: 'transparent'
38235
38408
  }
38236
38409
  },
38237
38410
  [`&.${paginationItemClasses$1.selected}`]: {
38238
- backgroundColor: theme.palette.action.selected,
38411
+ backgroundColor: (theme.vars || theme).palette.action.selected,
38239
38412
  '&:hover': {
38240
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
38413
+ 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),
38241
38414
  // Reset on touch devices, it doesn't add specificity
38242
38415
  '@media (hover: none)': {
38243
- backgroundColor: theme.palette.action.selected
38416
+ backgroundColor: (theme.vars || theme).palette.action.selected
38244
38417
  }
38245
38418
  },
38246
38419
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38247
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
38420
+ 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)
38248
38421
  },
38249
38422
  [`&.${paginationItemClasses$1.disabled}`]: {
38250
38423
  opacity: 1,
38251
- color: theme.palette.action.disabled,
38252
- backgroundColor: theme.palette.action.selected
38424
+ color: (theme.vars || theme).palette.action.disabled,
38425
+ backgroundColor: (theme.vars || theme).palette.action.selected
38253
38426
  }
38254
38427
  }
38255
38428
  }, ownerState.size === 'small' && {
@@ -38265,49 +38438,49 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38265
38438
  padding: '0 10px',
38266
38439
  fontSize: theme.typography.pxToRem(15)
38267
38440
  }, ownerState.shape === 'rounded' && {
38268
- borderRadius: theme.shape.borderRadius
38441
+ borderRadius: (theme.vars || theme).shape.borderRadius
38269
38442
  }), ({
38270
38443
  theme,
38271
38444
  ownerState
38272
38445
  }) => _extends({}, ownerState.variant === 'text' && {
38273
38446
  [`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
38274
- color: theme.palette[ownerState.color].contrastText,
38275
- backgroundColor: theme.palette[ownerState.color].main,
38447
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
38448
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
38276
38449
  '&:hover': {
38277
- backgroundColor: theme.palette[ownerState.color].dark,
38450
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
38278
38451
  // Reset on touch devices, it doesn't add specificity
38279
38452
  '@media (hover: none)': {
38280
- backgroundColor: theme.palette[ownerState.color].main
38453
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
38281
38454
  }
38282
38455
  },
38283
38456
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38284
- backgroundColor: theme.palette[ownerState.color].dark
38457
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
38285
38458
  }
38286
38459
  }, {
38287
38460
  [`&.${paginationItemClasses$1.disabled}`]: {
38288
- color: theme.palette.action.disabled
38461
+ color: (theme.vars || theme).palette.action.disabled
38289
38462
  }
38290
38463
  })
38291
38464
  }, ownerState.variant === 'outlined' && {
38292
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
38465
+ 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)'}`,
38293
38466
  [`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
38294
- color: theme.palette[ownerState.color].main,
38295
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`,
38296
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
38467
+ color: (theme.vars || theme).palette[ownerState.color].main,
38468
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
38469
+ 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),
38297
38470
  '&:hover': {
38298
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
38471
+ 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),
38299
38472
  // Reset on touch devices, it doesn't add specificity
38300
38473
  '@media (hover: none)': {
38301
38474
  backgroundColor: 'transparent'
38302
38475
  }
38303
38476
  },
38304
38477
  [`&.${paginationItemClasses$1.focusVisible}`]: {
38305
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
38478
+ 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)
38306
38479
  }
38307
38480
  }, {
38308
38481
  [`&.${paginationItemClasses$1.disabled}`]: {
38309
- borderColor: theme.palette.action.disabledBackground,
38310
- color: theme.palette.action.disabled
38482
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
38483
+ color: (theme.vars || theme).palette.action.disabled
38311
38484
  }
38312
38485
  })
38313
38486
  }));
@@ -38895,9 +39068,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38895
39068
  theme,
38896
39069
  ownerState
38897
39070
  }) => _extends({
38898
- color: theme.palette.text.secondary,
39071
+ color: (theme.vars || theme).palette.text.secondary,
38899
39072
  '&:hover': {
38900
- backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
39073
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
38901
39074
  // Reset on touch devices, it doesn't add specificity
38902
39075
  '@media (hover: none)': {
38903
39076
  backgroundColor: 'transparent'
@@ -38905,11 +39078,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38905
39078
  }
38906
39079
  }, ownerState.color !== 'default' && {
38907
39080
  [`&.${radioClasses$1.checked}`]: {
38908
- color: theme.palette[ownerState.color].main
39081
+ color: (theme.vars || theme).palette[ownerState.color].main
38909
39082
  }
38910
39083
  }, {
38911
39084
  [`&.${radioClasses$1.disabled}`]: {
38912
- color: theme.palette.action.disabled
39085
+ color: (theme.vars || theme).palette.action.disabled
38913
39086
  }
38914
39087
  }));
38915
39088
 
@@ -39279,7 +39452,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39279
39452
  textAlign: 'left',
39280
39453
  WebkitTapHighlightColor: 'transparent',
39281
39454
  [`&.${ratingClasses$1.disabled}`]: {
39282
- opacity: theme.palette.action.disabledOpacity,
39455
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
39283
39456
  pointerEvents: 'none'
39284
39457
  },
39285
39458
  [`&.${ratingClasses$1.focusVisible} .${ratingClasses$1.iconActive}`]: {
@@ -39332,7 +39505,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39332
39505
  }, ownerState.iconActive && {
39333
39506
  transform: 'scale(1.2)'
39334
39507
  }, ownerState.iconEmpty && {
39335
- color: theme.palette.action.disabled
39508
+ color: (theme.vars || theme).palette.action.disabled
39336
39509
  }));
39337
39510
  const RatingDecimal = styled$1('span', {
39338
39511
  name: 'MuiRating',
@@ -40301,8 +40474,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40301
40474
 
40302
40475
  const handleKeyDown = event => {
40303
40476
  if (!readOnly) {
40304
- const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on MacOS, but it's recommended by
40305
- // https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
40477
+ const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
40478
+ // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
40306
40479
  'Enter'];
40307
40480
 
40308
40481
  if (validKeys.indexOf(event.key) !== -1) {
@@ -41245,11 +41418,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41245
41418
  const {
41246
41419
  ownerState
41247
41420
  } = props;
41248
- const marks = ownerState.marksProp === true && ownerState.step !== null ? [...Array(Math.floor((ownerState.max - ownerState.min) / ownerState.step) + 1)].map((_, index) => ({
41249
- value: ownerState.min + ownerState.step * index
41250
- })) : ownerState.marksProp || [];
41251
- const marked = marks.length > 0 && marks.some(mark => mark.label);
41252
- return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
41421
+ return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
41253
41422
  }
41254
41423
  })(({
41255
41424
  theme,
@@ -42156,7 +42325,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42156
42325
  });
42157
42326
 
42158
42327
  return _extends({
42159
- zIndex: theme.zIndex.snackbar,
42328
+ zIndex: (theme.vars || theme).zIndex.snackbar,
42160
42329
  position: 'fixed',
42161
42330
  display: 'flex',
42162
42331
  left: 8,
@@ -42852,7 +43021,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42852
43021
  theme,
42853
43022
  ownerState
42854
43023
  }) => _extends({
42855
- zIndex: theme.zIndex.speedDial,
43024
+ zIndex: (theme.vars || theme).zIndex.speedDial,
42856
43025
  display: 'flex',
42857
43026
  alignItems: 'center',
42858
43027
  pointerEvents: 'none'
@@ -43382,7 +43551,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43382
43551
  ownerState,
43383
43552
  open
43384
43553
  }) => _extends({
43385
- zIndex: theme.zIndex.tooltip,
43554
+ zIndex: (theme.vars || theme).zIndex.tooltip,
43386
43555
  pointerEvents: 'none'
43387
43556
  }, !ownerState.disableInteractive && {
43388
43557
  pointerEvents: 'auto'
@@ -43443,9 +43612,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43443
43612
  theme,
43444
43613
  ownerState
43445
43614
  }) => _extends({
43446
- backgroundColor: alpha(theme.palette.grey[700], 0.92),
43447
- borderRadius: theme.shape.borderRadius,
43448
- color: theme.palette.common.white,
43615
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : alpha(theme.palette.grey[700], 0.92),
43616
+ borderRadius: (theme.vars || theme).shape.borderRadius,
43617
+ color: (theme.vars || theme).palette.common.white,
43449
43618
  fontFamily: theme.typography.fontFamily,
43450
43619
  padding: '4px 8px',
43451
43620
  fontSize: theme.typography.pxToRem(11),
@@ -43511,7 +43680,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43511
43680
  /* = width / sqrt(2) = (length of the hypotenuse) */
43512
43681
  ,
43513
43682
  boxSizing: 'border-box',
43514
- color: alpha(theme.palette.grey[700], 0.9),
43683
+ color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
43515
43684
  '&::before': {
43516
43685
  content: '""',
43517
43686
  margin: 'auto',
@@ -44715,15 +44884,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44715
44884
  var Stack$1 = Stack;
44716
44885
 
44717
44886
  /**
44718
- * @ignore - internal component.
44887
+ * Provides information about the current step in Stepper.
44719
44888
  */
44720
-
44721
44889
  const StepperContext = /*#__PURE__*/React__namespace.createContext({});
44722
44890
 
44723
44891
  {
44724
44892
  StepperContext.displayName = 'StepperContext';
44725
44893
  }
44894
+ /**
44895
+ * Returns the current StepperContext or an empty object if no StepperContext
44896
+ * has been defined in the component tree.
44897
+ */
44726
44898
 
44899
+
44900
+ function useStepperContext() {
44901
+ return React__namespace.useContext(StepperContext);
44902
+ }
44727
44903
  var StepperContext$1 = StepperContext;
44728
44904
 
44729
44905
  /**
@@ -44962,15 +45138,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44962
45138
  transition: theme.transitions.create('color', {
44963
45139
  duration: theme.transitions.duration.shortest
44964
45140
  }),
44965
- color: theme.palette.text.disabled,
45141
+ color: (theme.vars || theme).palette.text.disabled,
44966
45142
  [`&.${stepIconClasses$1.completed}`]: {
44967
- color: theme.palette.primary.main
45143
+ color: (theme.vars || theme).palette.primary.main
44968
45144
  },
44969
45145
  [`&.${stepIconClasses$1.active}`]: {
44970
- color: theme.palette.primary.main
45146
+ color: (theme.vars || theme).palette.primary.main
44971
45147
  },
44972
45148
  [`&.${stepIconClasses$1.error}`]: {
44973
- color: theme.palette.error.main
45149
+ color: (theme.vars || theme).palette.error.main
44974
45150
  }
44975
45151
  }));
44976
45152
  const StepIconText = styled$1('text', {
@@ -44980,7 +45156,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44980
45156
  })(({
44981
45157
  theme
44982
45158
  }) => ({
44983
- fill: theme.palette.primary.contrastText,
45159
+ fill: (theme.vars || theme).palette.primary.contrastText,
44984
45160
  fontSize: theme.typography.caption.fontSize,
44985
45161
  fontFamily: theme.typography.fontFamily
44986
45162
  }));
@@ -45161,11 +45337,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45161
45337
  duration: theme.transitions.duration.shortest
45162
45338
  }),
45163
45339
  [`&.${stepLabelClasses$1.active}`]: {
45164
- color: theme.palette.text.primary,
45340
+ color: (theme.vars || theme).palette.text.primary,
45165
45341
  fontWeight: 500
45166
45342
  },
45167
45343
  [`&.${stepLabelClasses$1.completed}`]: {
45168
- color: theme.palette.text.primary,
45344
+ color: (theme.vars || theme).palette.text.primary,
45169
45345
  fontWeight: 500
45170
45346
  },
45171
45347
  [`&.${stepLabelClasses$1.alternativeLabel}`]: {
@@ -45173,7 +45349,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45173
45349
  marginTop: 16
45174
45350
  },
45175
45351
  [`&.${stepLabelClasses$1.error}`]: {
45176
- color: theme.palette.error.main
45352
+ color: (theme.vars || theme).palette.error.main
45177
45353
  }
45178
45354
  }));
45179
45355
  const StepLabelIconContainer = styled$1('span', {
@@ -45197,7 +45373,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45197
45373
  theme
45198
45374
  }) => ({
45199
45375
  width: '100%',
45200
- color: theme.palette.text.secondary
45376
+ color: (theme.vars || theme).palette.text.secondary
45201
45377
  }));
45202
45378
  const StepLabel = /*#__PURE__*/React__namespace.forwardRef(function StepLabel(inProps, ref) {
45203
45379
  const props = useThemeProps({
@@ -47012,23 +47188,23 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47012
47188
  opacity: 1
47013
47189
  },
47014
47190
  [`&.${tabClasses$1.disabled}`]: {
47015
- opacity: theme.palette.action.disabledOpacity
47191
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
47016
47192
  }
47017
47193
  }, ownerState.textColor === 'primary' && {
47018
- color: theme.palette.text.secondary,
47194
+ color: (theme.vars || theme).palette.text.secondary,
47019
47195
  [`&.${tabClasses$1.selected}`]: {
47020
- color: theme.palette.primary.main
47196
+ color: (theme.vars || theme).palette.primary.main
47021
47197
  },
47022
47198
  [`&.${tabClasses$1.disabled}`]: {
47023
- color: theme.palette.text.disabled
47199
+ color: (theme.vars || theme).palette.text.disabled
47024
47200
  }
47025
47201
  }, ownerState.textColor === 'secondary' && {
47026
- color: theme.palette.text.secondary,
47202
+ color: (theme.vars || theme).palette.text.secondary,
47027
47203
  [`&.${tabClasses$1.selected}`]: {
47028
- color: theme.palette.secondary.main
47204
+ color: (theme.vars || theme).palette.secondary.main
47029
47205
  },
47030
47206
  [`&.${tabClasses$1.disabled}`]: {
47031
- color: theme.palette.text.disabled
47207
+ color: (theme.vars || theme).palette.text.disabled
47032
47208
  }
47033
47209
  }, ownerState.fullWidth && {
47034
47210
  flexShrink: 1,
@@ -47270,7 +47446,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47270
47446
  borderSpacing: 0,
47271
47447
  '& caption': _extends({}, theme.typography.body2, {
47272
47448
  padding: theme.spacing(2),
47273
- color: theme.palette.text.secondary,
47449
+ color: (theme.vars || theme).palette.text.secondary,
47274
47450
  textAlign: 'left',
47275
47451
  captionSide: 'bottom'
47276
47452
  })
@@ -48257,7 +48433,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48257
48433
  theme
48258
48434
  }) => ({
48259
48435
  overflow: 'auto',
48260
- color: theme.palette.text.primary,
48436
+ color: (theme.vars || theme).palette.text.primary,
48261
48437
  fontSize: theme.typography.pxToRem(14),
48262
48438
  // Increase the specificity to override TableCell.
48263
48439
  '&:last-child': {
@@ -48688,12 +48864,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48688
48864
  // We disable the focus ring for mouse, touch and keyboard users.
48689
48865
  outline: 0,
48690
48866
  [`&.${tableRowClasses$1.hover}:hover`]: {
48691
- backgroundColor: theme.palette.action.hover
48867
+ backgroundColor: (theme.vars || theme).palette.action.hover
48692
48868
  },
48693
48869
  [`&.${tableRowClasses$1.selected}`]: {
48694
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48870
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48695
48871
  '&:hover': {
48696
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
48872
+ 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)
48697
48873
  }
48698
48874
  }
48699
48875
  }));
@@ -48827,19 +49003,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48827
49003
  flexDirection: 'inherit',
48828
49004
  alignItems: 'center',
48829
49005
  '&:focus': {
48830
- color: theme.palette.text.secondary
49006
+ color: (theme.vars || theme).palette.text.secondary
48831
49007
  },
48832
49008
  '&:hover': {
48833
- color: theme.palette.text.secondary,
49009
+ color: (theme.vars || theme).palette.text.secondary,
48834
49010
  [`& .${tableSortLabelClasses$1.icon}`]: {
48835
49011
  opacity: 0.5
48836
49012
  }
48837
49013
  },
48838
49014
  [`&.${tableSortLabelClasses$1.active}`]: {
48839
- color: theme.palette.text.primary,
49015
+ color: (theme.vars || theme).palette.text.primary,
48840
49016
  [`& .${tableSortLabelClasses$1.icon}`]: {
48841
49017
  opacity: 1,
48842
- color: theme.palette.text.secondary
49018
+ color: (theme.vars || theme).palette.text.secondary
48843
49019
  }
48844
49020
  }
48845
49021
  }));
@@ -49331,7 +49507,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49331
49507
  overflowX: 'hidden',
49332
49508
  width: '100%'
49333
49509
  }, ownerState.hideScrollbar && {
49334
- // Hide dimensionless scrollbar on MacOS
49510
+ // Hide dimensionless scrollbar on macOS
49335
49511
  scrollbarWidth: 'none',
49336
49512
  // Firefox
49337
49513
  '&::-webkit-scrollbar': {
@@ -49377,9 +49553,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49377
49553
  width: '100%',
49378
49554
  transition: theme.transitions.create()
49379
49555
  }, ownerState.indicatorColor === 'primary' && {
49380
- backgroundColor: theme.palette.primary.main
49556
+ backgroundColor: (theme.vars || theme).palette.primary.main
49381
49557
  }, ownerState.indicatorColor === 'secondary' && {
49382
- backgroundColor: theme.palette.secondary.main
49558
+ backgroundColor: (theme.vars || theme).palette.secondary.main
49383
49559
  }, ownerState.vertical && {
49384
49560
  height: '100%',
49385
49561
  width: 2,
@@ -49391,7 +49567,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
49391
49567
  })({
49392
49568
  overflowX: 'auto',
49393
49569
  overflowY: 'hidden',
49394
- // Hide dimensionless scrollbar on MacOS
49570
+ // Hide dimensionless scrollbar on macOS
49395
49571
  scrollbarWidth: 'none',
49396
49572
  // Firefox
49397
49573
  '&::-webkit-scrollbar': {
@@ -50490,35 +50666,42 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50490
50666
  theme,
50491
50667
  ownerState
50492
50668
  }) => {
50493
- const selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
50669
+ let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
50670
+ let selectedColorChannel;
50671
+
50672
+ if (theme.vars) {
50673
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
50674
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
50675
+ }
50676
+
50494
50677
  return _extends({}, theme.typography.button, {
50495
- borderRadius: theme.shape.borderRadius,
50678
+ borderRadius: (theme.vars || theme).shape.borderRadius,
50496
50679
  padding: 11,
50497
- border: `1px solid ${theme.palette.divider}`,
50498
- color: theme.palette.action.active
50680
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
50681
+ color: (theme.vars || theme).palette.action.active
50499
50682
  }, ownerState.fullWidth && {
50500
50683
  width: '100%'
50501
50684
  }, {
50502
50685
  [`&.${toggleButtonClasses$1.disabled}`]: {
50503
- color: theme.palette.action.disabled,
50504
- border: `1px solid ${theme.palette.action.disabledBackground}`
50686
+ color: (theme.vars || theme).palette.action.disabled,
50687
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
50505
50688
  },
50506
50689
  '&:hover': {
50507
50690
  textDecoration: 'none',
50508
50691
  // Reset on mouse devices
50509
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
50692
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
50510
50693
  '@media (hover: none)': {
50511
50694
  backgroundColor: 'transparent'
50512
50695
  }
50513
50696
  },
50514
50697
  [`&.${toggleButtonClasses$1.selected}`]: {
50515
50698
  color: selectedColor,
50516
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
50699
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity),
50517
50700
  '&:hover': {
50518
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
50701
+ 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),
50519
50702
  // Reset on touch devices, it doesn't add specificity
50520
50703
  '@media (hover: none)': {
50521
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
50704
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity)
50522
50705
  }
50523
50706
  }
50524
50707
  }
@@ -50746,7 +50929,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50746
50929
  theme
50747
50930
  }) => _extends({
50748
50931
  display: 'inline-flex',
50749
- borderRadius: theme.shape.borderRadius
50932
+ borderRadius: (theme.vars || theme).shape.borderRadius
50750
50933
  }, ownerState.orientation === 'vertical' && {
50751
50934
  flexDirection: 'column'
50752
50935
  }, ownerState.fullWidth && {
@@ -51126,6 +51309,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51126
51309
  exports.StepIcon = StepIcon$1;
51127
51310
  exports.StepLabel = StepLabel$1;
51128
51311
  exports.Stepper = Stepper$1;
51312
+ exports.StepperContext = StepperContext$1;
51129
51313
  exports.StyledEngineProvider = StyledEngineProvider;
51130
51314
  exports.SvgIcon = SvgIcon$1;
51131
51315
  exports.SwipeableDrawer = SwipeableDrawer$1;
@@ -51189,7 +51373,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51189
51373
  exports.createMuiTheme = createMuiTheme;
51190
51374
  exports.createStyles = createStyles;
51191
51375
  exports.createSvgIcon = createSvgIcon;
51192
- exports.createTheme = createTheme$1;
51376
+ exports.createTheme = createTheme;
51193
51377
  exports.css = css;
51194
51378
  exports.darkScrollbar = darkScrollbar;
51195
51379
  exports.darken = darken;
@@ -51207,7 +51391,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51207
51391
  exports.easing = easing;
51208
51392
  exports.emphasize = emphasize;
51209
51393
  exports.experimentalStyled = styled$1;
51210
- exports.experimental_extendTheme = createTheme;
51394
+ exports.experimental_extendTheme = extendTheme;
51211
51395
  exports.experimental_sx = sx;
51212
51396
  exports.fabClasses = fabClasses$1;
51213
51397
  exports.filledInputClasses = filledInputClasses$1;
@@ -51436,6 +51620,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51436
51620
  exports.useRadioGroup = useRadioGroup;
51437
51621
  exports.useScrollTrigger = useScrollTrigger;
51438
51622
  exports.useStepContext = useStepContext;
51623
+ exports.useStepperContext = useStepperContext;
51439
51624
  exports.useTheme = useTheme;
51440
51625
  exports.useThemeProps = useThemeProps;
51441
51626
  exports.withStyles = withStyles;