@mui/material 5.15.15 → 6.0.0-alpha.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 (565) hide show
  1. package/Accordion/Accordion.js +1 -2
  2. package/AccordionSummary/AccordionSummary.js +1 -2
  3. package/Alert/Alert.js +1 -2
  4. package/AppBar/AppBar.js +119 -69
  5. package/Autocomplete/Autocomplete.js +11 -16
  6. package/AvatarGroup/AvatarGroup.js +27 -25
  7. package/Backdrop/Backdrop.d.ts +40 -22
  8. package/Backdrop/Backdrop.js +50 -33
  9. package/Badge/Badge.d.ts +2 -4
  10. package/Badge/Badge.js +158 -168
  11. package/BottomNavigation/BottomNavigation.js +2 -2
  12. package/BottomNavigationAction/BottomNavigationAction.js +40 -24
  13. package/Breadcrumbs/Breadcrumbs.js +2 -2
  14. package/Button/Button.js +221 -134
  15. package/ButtonBase/ButtonBase.js +3 -4
  16. package/ButtonBase/Ripple.js +1 -1
  17. package/ButtonBase/TouchRipple.js +37 -43
  18. package/ButtonGroup/ButtonGroup.js +168 -71
  19. package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
  20. package/ButtonGroup/buttonGroupClasses.js +1 -1
  21. package/CHANGELOG.md +169 -3
  22. package/Card/Card.js +4 -6
  23. package/CardActionArea/CardActionArea.js +3 -4
  24. package/CardActions/CardActions.js +16 -12
  25. package/CardContent/CardContent.js +7 -9
  26. package/CardHeader/CardHeader.js +3 -4
  27. package/CardMedia/CardMedia.js +22 -13
  28. package/Checkbox/Checkbox.js +2 -3
  29. package/Chip/Chip.js +191 -122
  30. package/CircularProgress/CircularProgress.js +10 -15
  31. package/CssBaseline/CssBaseline.js +3 -6
  32. package/DialogTitle/DialogTitle.js +1 -1
  33. package/Divider/Divider.js +140 -81
  34. package/Fab/Fab.js +55 -58
  35. package/FilledInput/FilledInput.js +4 -6
  36. package/FormControl/FormControl.js +30 -15
  37. package/FormControlLabel/FormControlLabel.js +42 -27
  38. package/FormGroup/FormGroup.js +14 -10
  39. package/Grid/Grid.js +5 -4
  40. package/IconButton/IconButton.js +2 -3
  41. package/ImageListItemBar/ImageListItemBar.js +1 -2
  42. package/Input/Input.js +3 -4
  43. package/InputAdornment/InputAdornment.js +1 -2
  44. package/InputBase/InputBase.js +2 -4
  45. package/LinearProgress/LinearProgress.js +16 -24
  46. package/List/List.js +1 -2
  47. package/ListItem/ListItem.js +1 -2
  48. package/ListItemText/ListItemText.js +2 -3
  49. package/Menu/Menu.js +2 -3
  50. package/MobileStepper/MobileStepper.js +80 -47
  51. package/Modal/Modal.js +22 -19
  52. package/NativeSelect/NativeSelectInput.js +1 -2
  53. package/OutlinedInput/OutlinedInput.js +4 -5
  54. package/PaginationItem/PaginationItem.js +1 -2
  55. package/Paper/Paper.js +15 -18
  56. package/Popover/Popover.js +7 -8
  57. package/Popper/Popper.js +3 -4
  58. package/README.md +3 -1
  59. package/Radio/Radio.js +2 -3
  60. package/Radio/RadioButtonIcon.js +1 -2
  61. package/Rating/Rating.js +1 -2
  62. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
  63. package/Select/SelectInput.js +3 -5
  64. package/Skeleton/Skeleton.js +11 -16
  65. package/Slider/Slider.js +185 -203
  66. package/Slider/SliderValueLabel.js +1 -2
  67. package/SnackbarContent/SnackbarContent.js +1 -2
  68. package/SpeedDial/SpeedDial.js +1 -2
  69. package/SpeedDialAction/SpeedDialAction.js +1 -2
  70. package/SpeedDialIcon/SpeedDialIcon.js +1 -2
  71. package/Step/Step.js +23 -14
  72. package/StepButton/StepButton.js +17 -14
  73. package/StepConnector/StepConnector.js +45 -26
  74. package/StepContent/StepContent.js +13 -8
  75. package/StepIcon/StepIcon.js +3 -4
  76. package/StepLabel/StepLabel.d.ts +25 -13
  77. package/StepLabel/StepLabel.js +47 -27
  78. package/Stepper/Stepper.js +29 -15
  79. package/SvgIcon/SvgIcon.js +26 -30
  80. package/SwipeableDrawer/SwipeableDrawer.js +2 -4
  81. package/Switch/Switch.js +1 -2
  82. package/TabScrollButton/TabScrollButton.js +2 -3
  83. package/Table/Table.d.ts +0 -2
  84. package/Table/Table.js +0 -2
  85. package/TablePagination/TablePagination.js +2 -4
  86. package/TablePagination/TablePaginationActions.js +11 -13
  87. package/TableSortLabel/TableSortLabel.js +1 -2
  88. package/Tabs/Tabs.js +6 -10
  89. package/TextField/TextField.js +1 -2
  90. package/Tooltip/Tooltip.js +14 -17
  91. package/index.js +1 -1
  92. package/internal/SwitchBase.js +1 -2
  93. package/legacy/Accordion/Accordion.js +1 -2
  94. package/legacy/AccordionSummary/AccordionSummary.js +1 -2
  95. package/legacy/Alert/Alert.js +1 -2
  96. package/legacy/AppBar/AppBar.js +124 -64
  97. package/legacy/Autocomplete/Autocomplete.js +1 -2
  98. package/legacy/AvatarGroup/AvatarGroup.js +19 -11
  99. package/legacy/Backdrop/Backdrop.js +66 -44
  100. package/legacy/Badge/Badge.js +3 -6
  101. package/legacy/BottomNavigation/BottomNavigation.js +2 -2
  102. package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
  103. package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
  104. package/legacy/Button/Button.js +219 -125
  105. package/legacy/ButtonBase/ButtonBase.js +3 -4
  106. package/legacy/ButtonBase/Ripple.js +1 -1
  107. package/legacy/ButtonBase/TouchRipple.js +3 -4
  108. package/legacy/ButtonGroup/ButtonGroup.js +164 -69
  109. package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
  110. package/legacy/Card/Card.js +4 -6
  111. package/legacy/CardActionArea/CardActionArea.js +3 -4
  112. package/legacy/CardActions/CardActions.js +16 -13
  113. package/legacy/CardContent/CardContent.js +7 -9
  114. package/legacy/CardHeader/CardHeader.js +3 -4
  115. package/legacy/CardMedia/CardMedia.js +24 -16
  116. package/legacy/Chip/Chip.js +199 -107
  117. package/legacy/CssBaseline/CssBaseline.js +1 -2
  118. package/legacy/Divider/Divider.js +148 -88
  119. package/legacy/FormControl/FormControl.js +37 -23
  120. package/legacy/FormControlLabel/FormControlLabel.js +42 -25
  121. package/legacy/FormGroup/FormGroup.js +15 -12
  122. package/legacy/Grid/Grid.js +3 -0
  123. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
  124. package/legacy/InputAdornment/InputAdornment.js +1 -2
  125. package/legacy/InputBase/InputBase.js +1 -2
  126. package/legacy/LinearProgress/LinearProgress.js +1 -2
  127. package/legacy/List/List.js +1 -2
  128. package/legacy/ListItem/ListItem.js +1 -2
  129. package/legacy/ListItemText/ListItemText.js +1 -2
  130. package/legacy/MobileStepper/MobileStepper.js +80 -48
  131. package/legacy/Modal/Modal.js +20 -15
  132. package/legacy/NativeSelect/NativeSelectInput.js +1 -2
  133. package/legacy/OutlinedInput/OutlinedInput.js +1 -2
  134. package/legacy/PaginationItem/PaginationItem.js +1 -2
  135. package/legacy/Popover/Popover.js +2 -2
  136. package/legacy/Radio/RadioButtonIcon.js +1 -2
  137. package/legacy/Rating/Rating.js +1 -2
  138. package/legacy/Select/SelectInput.js +1 -2
  139. package/legacy/Slider/Slider.js +25 -26
  140. package/legacy/Slider/SliderValueLabel.js +1 -2
  141. package/legacy/SnackbarContent/SnackbarContent.js +1 -2
  142. package/legacy/SpeedDial/SpeedDial.js +1 -2
  143. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
  144. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
  145. package/legacy/Step/Step.js +22 -14
  146. package/legacy/StepButton/StepButton.js +17 -15
  147. package/legacy/StepConnector/StepConnector.js +46 -28
  148. package/legacy/StepContent/StepContent.js +15 -10
  149. package/legacy/StepIcon/StepIcon.js +3 -4
  150. package/legacy/StepLabel/StepLabel.js +65 -44
  151. package/legacy/Stepper/Stepper.js +28 -15
  152. package/legacy/SvgIcon/SvgIcon.js +1 -2
  153. package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
  154. package/legacy/Switch/Switch.js +1 -2
  155. package/legacy/Table/Table.js +0 -2
  156. package/legacy/TablePagination/TablePagination.js +1 -2
  157. package/legacy/TablePagination/TablePaginationActions.js +1 -2
  158. package/legacy/TableSortLabel/TableSortLabel.js +1 -2
  159. package/legacy/Tabs/Tabs.js +1 -2
  160. package/legacy/TextField/TextField.js +1 -2
  161. package/legacy/Tooltip/Tooltip.js +1 -2
  162. package/legacy/index.js +1 -1
  163. package/legacy/internal/SwitchBase.js +1 -2
  164. package/legacy/styles/CssVarsProvider.js +1 -3
  165. package/legacy/styles/createGetSelector.js +21 -0
  166. package/legacy/styles/experimental_extendTheme.js +50 -9
  167. package/legacy/zero-styled/index.js +1 -0
  168. package/modern/Accordion/Accordion.js +1 -2
  169. package/modern/AccordionSummary/AccordionSummary.js +1 -2
  170. package/modern/Alert/Alert.js +1 -2
  171. package/modern/AppBar/AppBar.js +118 -68
  172. package/modern/Autocomplete/Autocomplete.js +1 -2
  173. package/modern/AvatarGroup/AvatarGroup.js +25 -22
  174. package/modern/Backdrop/Backdrop.js +50 -32
  175. package/modern/Badge/Badge.js +3 -6
  176. package/modern/BottomNavigation/BottomNavigation.js +2 -2
  177. package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
  178. package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
  179. package/modern/Button/Button.js +221 -133
  180. package/modern/ButtonBase/ButtonBase.js +3 -4
  181. package/modern/ButtonBase/Ripple.js +1 -1
  182. package/modern/ButtonBase/TouchRipple.js +3 -4
  183. package/modern/ButtonGroup/ButtonGroup.js +168 -71
  184. package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
  185. package/modern/Card/Card.js +4 -6
  186. package/modern/CardActionArea/CardActionArea.js +3 -4
  187. package/modern/CardActions/CardActions.js +16 -12
  188. package/modern/CardContent/CardContent.js +7 -9
  189. package/modern/CardHeader/CardHeader.js +3 -4
  190. package/modern/CardMedia/CardMedia.js +22 -13
  191. package/modern/Chip/Chip.js +191 -122
  192. package/modern/CssBaseline/CssBaseline.js +1 -2
  193. package/modern/Divider/Divider.js +140 -81
  194. package/modern/FormControl/FormControl.js +30 -15
  195. package/modern/FormControlLabel/FormControlLabel.js +38 -22
  196. package/modern/FormGroup/FormGroup.js +14 -10
  197. package/modern/Grid/Grid.js +3 -0
  198. package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
  199. package/modern/InputAdornment/InputAdornment.js +1 -2
  200. package/modern/InputBase/InputBase.js +1 -2
  201. package/modern/LinearProgress/LinearProgress.js +1 -2
  202. package/modern/List/List.js +1 -2
  203. package/modern/ListItem/ListItem.js +1 -2
  204. package/modern/ListItemText/ListItemText.js +1 -2
  205. package/modern/MobileStepper/MobileStepper.js +80 -47
  206. package/modern/Modal/Modal.js +15 -11
  207. package/modern/NativeSelect/NativeSelectInput.js +1 -2
  208. package/modern/OutlinedInput/OutlinedInput.js +1 -2
  209. package/modern/PaginationItem/PaginationItem.js +1 -2
  210. package/modern/Popover/Popover.js +2 -2
  211. package/modern/Radio/RadioButtonIcon.js +1 -2
  212. package/modern/Rating/Rating.js +1 -2
  213. package/modern/Select/SelectInput.js +1 -2
  214. package/modern/Slider/Slider.js +23 -24
  215. package/modern/Slider/SliderValueLabel.js +1 -2
  216. package/modern/SnackbarContent/SnackbarContent.js +1 -2
  217. package/modern/SpeedDial/SpeedDial.js +1 -2
  218. package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
  219. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
  220. package/modern/Step/Step.js +23 -14
  221. package/modern/StepButton/StepButton.js +17 -14
  222. package/modern/StepConnector/StepConnector.js +45 -26
  223. package/modern/StepContent/StepContent.js +13 -8
  224. package/modern/StepIcon/StepIcon.js +3 -4
  225. package/modern/StepLabel/StepLabel.js +47 -26
  226. package/modern/Stepper/Stepper.js +29 -15
  227. package/modern/SvgIcon/SvgIcon.js +1 -2
  228. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
  229. package/modern/Switch/Switch.js +1 -2
  230. package/modern/Table/Table.js +0 -2
  231. package/modern/TablePagination/TablePagination.js +1 -2
  232. package/modern/TablePagination/TablePaginationActions.js +1 -2
  233. package/modern/TableSortLabel/TableSortLabel.js +1 -2
  234. package/modern/Tabs/Tabs.js +1 -2
  235. package/modern/TextField/TextField.js +1 -2
  236. package/modern/Tooltip/Tooltip.js +1 -2
  237. package/modern/index.js +1 -1
  238. package/modern/internal/SwitchBase.js +1 -2
  239. package/modern/styles/CssVarsProvider.js +1 -3
  240. package/modern/styles/createGetSelector.js +21 -0
  241. package/modern/styles/experimental_extendTheme.js +45 -10
  242. package/modern/zero-styled/index.js +1 -0
  243. package/node/Accordion/Accordion.js +1 -1
  244. package/node/Accordion/AccordionContext.js +1 -1
  245. package/node/Accordion/index.js +1 -1
  246. package/node/AccordionActions/AccordionActions.js +1 -1
  247. package/node/AccordionActions/index.js +1 -1
  248. package/node/AccordionDetails/AccordionDetails.js +1 -1
  249. package/node/AccordionDetails/index.js +1 -1
  250. package/node/AccordionSummary/AccordionSummary.js +1 -1
  251. package/node/AccordionSummary/index.js +1 -1
  252. package/node/Alert/Alert.js +1 -1
  253. package/node/Alert/index.js +1 -1
  254. package/node/AlertTitle/AlertTitle.js +1 -1
  255. package/node/AlertTitle/index.js +1 -1
  256. package/node/AppBar/AppBar.js +126 -67
  257. package/node/AppBar/index.js +1 -1
  258. package/node/Autocomplete/Autocomplete.js +1 -1
  259. package/node/Autocomplete/index.js +1 -1
  260. package/node/Avatar/Avatar.js +1 -1
  261. package/node/Avatar/index.js +1 -1
  262. package/node/AvatarGroup/AvatarGroup.js +27 -23
  263. package/node/AvatarGroup/index.js +1 -1
  264. package/node/Backdrop/Backdrop.js +53 -36
  265. package/node/Backdrop/index.js +1 -1
  266. package/node/Badge/Badge.js +3 -5
  267. package/node/Badge/index.js +1 -1
  268. package/node/BottomNavigation/BottomNavigation.js +5 -5
  269. package/node/BottomNavigation/index.js +1 -1
  270. package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
  271. package/node/BottomNavigationAction/index.js +1 -1
  272. package/node/Box/index.js +1 -1
  273. package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  274. package/node/Breadcrumbs/Breadcrumbs.js +7 -7
  275. package/node/Breadcrumbs/index.js +1 -1
  276. package/node/Button/Button.js +225 -136
  277. package/node/Button/index.js +1 -1
  278. package/node/ButtonBase/ButtonBase.js +5 -5
  279. package/node/ButtonBase/Ripple.js +2 -2
  280. package/node/ButtonBase/TouchRipple.js +10 -11
  281. package/node/ButtonBase/index.js +1 -1
  282. package/node/ButtonGroup/ButtonGroup.js +171 -74
  283. package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
  284. package/node/ButtonGroup/ButtonGroupContext.js +1 -1
  285. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  286. package/node/ButtonGroup/index.js +1 -1
  287. package/node/Card/Card.js +7 -9
  288. package/node/Card/index.js +1 -1
  289. package/node/CardActionArea/CardActionArea.js +6 -6
  290. package/node/CardActionArea/index.js +1 -1
  291. package/node/CardActions/CardActions.js +19 -15
  292. package/node/CardActions/index.js +1 -1
  293. package/node/CardContent/CardContent.js +10 -12
  294. package/node/CardContent/index.js +1 -1
  295. package/node/CardHeader/CardHeader.js +8 -8
  296. package/node/CardHeader/index.js +1 -1
  297. package/node/CardMedia/CardMedia.js +25 -16
  298. package/node/CardMedia/index.js +1 -1
  299. package/node/Checkbox/Checkbox.js +1 -1
  300. package/node/Checkbox/index.js +1 -1
  301. package/node/Chip/Chip.js +194 -124
  302. package/node/Chip/index.js +1 -1
  303. package/node/CircularProgress/CircularProgress.js +1 -1
  304. package/node/CircularProgress/index.js +1 -1
  305. package/node/Collapse/Collapse.js +1 -1
  306. package/node/Collapse/index.js +1 -1
  307. package/node/Container/index.js +1 -1
  308. package/node/CssBaseline/CssBaseline.js +1 -1
  309. package/node/Dialog/Dialog.js +1 -1
  310. package/node/Dialog/DialogContext.js +1 -1
  311. package/node/Dialog/index.js +1 -1
  312. package/node/DialogActions/DialogActions.js +1 -1
  313. package/node/DialogActions/index.js +1 -1
  314. package/node/DialogContent/DialogContent.js +1 -1
  315. package/node/DialogContent/index.js +1 -1
  316. package/node/DialogContentText/DialogContentText.js +1 -1
  317. package/node/DialogContentText/index.js +1 -1
  318. package/node/DialogTitle/DialogTitle.js +1 -1
  319. package/node/DialogTitle/index.js +1 -1
  320. package/node/Divider/Divider.js +144 -85
  321. package/node/Divider/index.js +1 -1
  322. package/node/Drawer/Drawer.js +1 -1
  323. package/node/Drawer/index.js +1 -1
  324. package/node/Fab/Fab.js +1 -1
  325. package/node/Fab/index.js +1 -1
  326. package/node/Fade/Fade.js +1 -1
  327. package/node/FilledInput/FilledInput.js +1 -1
  328. package/node/FilledInput/index.js +1 -1
  329. package/node/FormControl/FormControl.js +33 -18
  330. package/node/FormControl/FormControlContext.js +1 -1
  331. package/node/FormControl/index.js +1 -1
  332. package/node/FormControl/useFormControl.js +1 -1
  333. package/node/FormControlLabel/FormControlLabel.js +41 -24
  334. package/node/FormControlLabel/index.js +1 -1
  335. package/node/FormGroup/FormGroup.js +17 -13
  336. package/node/FormGroup/index.js +1 -1
  337. package/node/FormHelperText/FormHelperText.js +1 -1
  338. package/node/FormHelperText/index.js +1 -1
  339. package/node/FormLabel/FormLabel.js +1 -1
  340. package/node/FormLabel/index.js +1 -1
  341. package/node/GlobalStyles/GlobalStyles.js +1 -1
  342. package/node/Grid/Grid.js +4 -1
  343. package/node/Grid/GridContext.js +1 -1
  344. package/node/Grid/index.js +1 -1
  345. package/node/Grow/Grow.js +1 -1
  346. package/node/Hidden/Hidden.js +1 -1
  347. package/node/Hidden/HiddenCss.js +1 -1
  348. package/node/Hidden/HiddenJs.js +1 -1
  349. package/node/Hidden/withWidth.js +1 -1
  350. package/node/Icon/Icon.js +1 -1
  351. package/node/Icon/index.js +1 -1
  352. package/node/IconButton/IconButton.js +1 -1
  353. package/node/IconButton/index.js +1 -1
  354. package/node/ImageList/ImageList.js +1 -1
  355. package/node/ImageList/ImageListContext.js +1 -1
  356. package/node/ImageList/index.js +1 -1
  357. package/node/ImageListItem/ImageListItem.js +1 -1
  358. package/node/ImageListItem/index.js +1 -1
  359. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  360. package/node/ImageListItemBar/index.js +1 -1
  361. package/node/Input/Input.js +1 -1
  362. package/node/Input/index.js +1 -1
  363. package/node/InputAdornment/InputAdornment.js +1 -1
  364. package/node/InputAdornment/index.js +1 -1
  365. package/node/InputBase/InputBase.js +1 -1
  366. package/node/InputBase/index.js +1 -1
  367. package/node/InputLabel/InputLabel.js +1 -1
  368. package/node/InputLabel/index.js +1 -1
  369. package/node/LinearProgress/LinearProgress.js +1 -1
  370. package/node/LinearProgress/index.js +1 -1
  371. package/node/Link/Link.js +1 -1
  372. package/node/Link/index.js +1 -1
  373. package/node/List/List.js +1 -1
  374. package/node/List/ListContext.js +1 -1
  375. package/node/List/index.js +1 -1
  376. package/node/ListItem/ListItem.js +1 -1
  377. package/node/ListItem/index.js +1 -1
  378. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  379. package/node/ListItemAvatar/index.js +1 -1
  380. package/node/ListItemButton/ListItemButton.js +1 -1
  381. package/node/ListItemButton/index.js +1 -1
  382. package/node/ListItemIcon/ListItemIcon.js +1 -1
  383. package/node/ListItemIcon/index.js +1 -1
  384. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  385. package/node/ListItemSecondaryAction/index.js +1 -1
  386. package/node/ListItemText/ListItemText.js +1 -1
  387. package/node/ListItemText/index.js +1 -1
  388. package/node/ListSubheader/ListSubheader.js +1 -1
  389. package/node/ListSubheader/index.js +1 -1
  390. package/node/Menu/Menu.js +1 -1
  391. package/node/Menu/index.js +1 -1
  392. package/node/MenuItem/MenuItem.js +1 -1
  393. package/node/MenuItem/index.js +1 -1
  394. package/node/MenuList/MenuList.js +1 -1
  395. package/node/MobileStepper/MobileStepper.js +86 -52
  396. package/node/MobileStepper/index.js +1 -1
  397. package/node/Modal/Modal.js +18 -13
  398. package/node/Modal/index.js +1 -1
  399. package/node/NativeSelect/NativeSelect.js +1 -1
  400. package/node/NativeSelect/NativeSelectInput.js +1 -1
  401. package/node/NativeSelect/index.js +1 -1
  402. package/node/OutlinedInput/NotchedOutline.js +1 -1
  403. package/node/OutlinedInput/OutlinedInput.js +1 -1
  404. package/node/OutlinedInput/index.js +1 -1
  405. package/node/Pagination/Pagination.js +1 -1
  406. package/node/Pagination/index.js +1 -1
  407. package/node/PaginationItem/PaginationItem.js +1 -1
  408. package/node/PaginationItem/index.js +1 -1
  409. package/node/Paper/Paper.js +1 -1
  410. package/node/Paper/index.js +1 -1
  411. package/node/Popover/Popover.js +6 -6
  412. package/node/Popover/index.js +1 -1
  413. package/node/Popper/Popper.js +1 -1
  414. package/node/Radio/Radio.js +1 -1
  415. package/node/Radio/RadioButtonIcon.js +1 -1
  416. package/node/Radio/index.js +1 -1
  417. package/node/RadioGroup/RadioGroup.js +1 -1
  418. package/node/RadioGroup/RadioGroupContext.js +1 -1
  419. package/node/RadioGroup/index.js +1 -1
  420. package/node/RadioGroup/useRadioGroup.js +1 -1
  421. package/node/Rating/Rating.js +1 -1
  422. package/node/Rating/index.js +1 -1
  423. package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  424. package/node/ScopedCssBaseline/index.js +1 -1
  425. package/node/Select/Select.js +1 -1
  426. package/node/Select/SelectInput.js +1 -1
  427. package/node/Select/index.js +1 -1
  428. package/node/Skeleton/Skeleton.js +1 -1
  429. package/node/Skeleton/index.js +1 -1
  430. package/node/Slide/Slide.js +1 -1
  431. package/node/Slider/Slider.js +26 -26
  432. package/node/Slider/SliderValueLabel.js +1 -1
  433. package/node/Slider/index.js +1 -1
  434. package/node/Snackbar/Snackbar.js +1 -1
  435. package/node/Snackbar/index.js +1 -1
  436. package/node/SnackbarContent/SnackbarContent.js +1 -1
  437. package/node/SnackbarContent/index.js +1 -1
  438. package/node/SpeedDial/SpeedDial.js +1 -1
  439. package/node/SpeedDial/index.js +1 -1
  440. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  441. package/node/SpeedDialAction/index.js +1 -1
  442. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  443. package/node/SpeedDialIcon/index.js +1 -1
  444. package/node/Step/Step.js +25 -15
  445. package/node/Step/StepContext.js +1 -1
  446. package/node/Step/index.js +1 -1
  447. package/node/StepButton/StepButton.js +20 -17
  448. package/node/StepButton/index.js +1 -1
  449. package/node/StepConnector/StepConnector.js +49 -30
  450. package/node/StepConnector/index.js +1 -1
  451. package/node/StepContent/StepContent.js +17 -12
  452. package/node/StepContent/index.js +1 -1
  453. package/node/StepIcon/StepIcon.js +6 -6
  454. package/node/StepIcon/index.js +1 -1
  455. package/node/StepLabel/StepLabel.js +52 -31
  456. package/node/StepLabel/index.js +1 -1
  457. package/node/Stepper/Stepper.js +32 -18
  458. package/node/Stepper/StepperContext.js +1 -1
  459. package/node/Stepper/index.js +1 -1
  460. package/node/SvgIcon/SvgIcon.js +1 -1
  461. package/node/SvgIcon/index.js +1 -1
  462. package/node/SwipeableDrawer/SwipeArea.js +1 -1
  463. package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
  464. package/node/Switch/Switch.js +1 -1
  465. package/node/Switch/index.js +1 -1
  466. package/node/Tab/Tab.js +1 -1
  467. package/node/Tab/index.js +1 -1
  468. package/node/TabScrollButton/TabScrollButton.js +1 -1
  469. package/node/TabScrollButton/index.js +1 -1
  470. package/node/Table/Table.js +1 -3
  471. package/node/Table/TableContext.js +1 -1
  472. package/node/Table/Tablelvl2Context.js +1 -1
  473. package/node/Table/index.js +1 -1
  474. package/node/TableBody/TableBody.js +1 -1
  475. package/node/TableBody/index.js +1 -1
  476. package/node/TableCell/TableCell.js +1 -1
  477. package/node/TableCell/index.js +1 -1
  478. package/node/TableContainer/TableContainer.js +1 -1
  479. package/node/TableContainer/index.js +1 -1
  480. package/node/TableFooter/TableFooter.js +1 -1
  481. package/node/TableFooter/index.js +1 -1
  482. package/node/TableHead/TableHead.js +1 -1
  483. package/node/TableHead/index.js +1 -1
  484. package/node/TablePagination/TablePagination.js +1 -1
  485. package/node/TablePagination/TablePaginationActions.js +1 -1
  486. package/node/TablePagination/index.js +1 -1
  487. package/node/TableRow/TableRow.js +1 -1
  488. package/node/TableRow/index.js +1 -1
  489. package/node/TableSortLabel/TableSortLabel.js +1 -1
  490. package/node/TableSortLabel/index.js +1 -1
  491. package/node/Tabs/ScrollbarSize.js +1 -1
  492. package/node/Tabs/Tabs.js +1 -1
  493. package/node/Tabs/index.js +1 -1
  494. package/node/TextField/TextField.js +1 -1
  495. package/node/TextField/index.js +1 -1
  496. package/node/ToggleButton/ToggleButton.js +1 -1
  497. package/node/ToggleButton/index.js +1 -1
  498. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  499. package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
  500. package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
  501. package/node/ToggleButtonGroup/index.js +1 -1
  502. package/node/Toolbar/Toolbar.js +1 -1
  503. package/node/Toolbar/index.js +1 -1
  504. package/node/Tooltip/Tooltip.js +1 -1
  505. package/node/Tooltip/index.js +1 -1
  506. package/node/Typography/Typography.js +1 -1
  507. package/node/Typography/index.js +1 -1
  508. package/node/Unstable_Grid2/index.js +1 -1
  509. package/node/Zoom/Zoom.js +1 -1
  510. package/node/index.js +2 -2
  511. package/node/internal/SwitchBase.js +1 -1
  512. package/node/internal/svg-icons/Add.js +1 -1
  513. package/node/internal/svg-icons/ArrowDownward.js +1 -1
  514. package/node/internal/svg-icons/ArrowDropDown.js +1 -1
  515. package/node/internal/svg-icons/Cancel.js +1 -1
  516. package/node/internal/svg-icons/CheckBox.js +1 -1
  517. package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
  518. package/node/internal/svg-icons/CheckCircle.js +1 -1
  519. package/node/internal/svg-icons/Close.js +1 -1
  520. package/node/internal/svg-icons/ErrorOutline.js +1 -1
  521. package/node/internal/svg-icons/FirstPage.js +1 -1
  522. package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
  523. package/node/internal/svg-icons/InfoOutlined.js +1 -1
  524. package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
  525. package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
  526. package/node/internal/svg-icons/LastPage.js +1 -1
  527. package/node/internal/svg-icons/MoreHoriz.js +1 -1
  528. package/node/internal/svg-icons/NavigateBefore.js +1 -1
  529. package/node/internal/svg-icons/NavigateNext.js +1 -1
  530. package/node/internal/svg-icons/Person.js +1 -1
  531. package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
  532. package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
  533. package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
  534. package/node/internal/svg-icons/Star.js +1 -1
  535. package/node/internal/svg-icons/StarBorder.js +1 -1
  536. package/node/internal/svg-icons/SuccessOutlined.js +1 -1
  537. package/node/internal/svg-icons/Warning.js +1 -1
  538. package/node/styles/CssVarsProvider.js +1 -3
  539. package/node/styles/ThemeProvider.js +1 -1
  540. package/node/styles/createGetSelector.js +29 -0
  541. package/node/styles/createTheme.js +1 -1
  542. package/node/styles/experimental_extendTheme.js +46 -11
  543. package/node/styles/index.js +1 -1
  544. package/node/styles/useTheme.js +1 -1
  545. package/node/useAutocomplete/index.js +1 -1
  546. package/node/useScrollTrigger/useScrollTrigger.js +1 -1
  547. package/node/useTouchRipple/useTouchRipple.js +1 -1
  548. package/node/utils/createSvgIcon.js +1 -1
  549. package/node/zero-styled/index.js +7 -0
  550. package/package.json +6 -6
  551. package/styles/CssVarsProvider.js +1 -3
  552. package/styles/createGetSelector.d.ts +10 -0
  553. package/styles/createGetSelector.js +21 -0
  554. package/styles/createTheme.js +1 -1
  555. package/styles/excludeVariablesFromRoot.d.ts +1 -1
  556. package/styles/experimental_extendTheme.d.ts +25 -5
  557. package/styles/experimental_extendTheme.js +52 -18
  558. package/styles/shouldSkipGeneratingVar.js +1 -2
  559. package/transitions/utils.js +2 -3
  560. package/umd/material-ui.development.js +1718 -1047
  561. package/umd/material-ui.production.min.js +4 -4
  562. package/useTouchRipple/useTouchRipple.js +4 -8
  563. package/utils/useSlot.js +1 -1
  564. package/zero-styled/index.d.ts +1 -0
  565. package/zero-styled/index.js +1 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.15
2
+ * @mui/material v6.0.0-alpha.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -446,7 +446,7 @@
446
446
 
447
447
  function toPropertyKey(t) {
448
448
  var i = toPrimitive(t, "string");
449
- return "symbol" == _typeof(i) ? i : String(i);
449
+ return "symbol" == _typeof(i) ? i : i + "";
450
450
  }
451
451
 
452
452
  function _defineProperty(obj, key, value) {
@@ -516,7 +516,7 @@
516
516
  };
517
517
  }
518
518
 
519
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
519
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
520
520
 
521
521
  var isPropValid = /* #__PURE__ */memoize$1(function (prop) {
522
522
  return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
@@ -5511,25 +5511,29 @@
5511
5511
  var spacingKeys = [].concat(marginKeys, paddingKeys);
5512
5512
  function createUnaryUnit(theme, themeKey, defaultValue, propName) {
5513
5513
  var _getPath;
5514
- var themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
5515
- if (typeof themeSpacing === 'number') {
5516
- return function (abs) {
5517
- if (typeof abs === 'string') {
5518
- return abs;
5514
+ var themeSpacing = (_getPath = getPath(theme, themeKey, true)) != null ? _getPath : defaultValue;
5515
+ if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {
5516
+ return function (val) {
5517
+ if (typeof val === 'string') {
5518
+ return val;
5519
5519
  }
5520
5520
  {
5521
- if (typeof abs !== 'number') {
5522
- console.error("MUI: Expected ".concat(propName, " argument to be a number or a string, got ").concat(abs, "."));
5521
+ if (typeof val !== 'number') {
5522
+ console.error("MUI: Expected ".concat(propName, " argument to be a number or a string, got ").concat(val, "."));
5523
5523
  }
5524
5524
  }
5525
- return themeSpacing * abs;
5525
+ if (typeof themeSpacing === 'string') {
5526
+ return "calc(".concat(val, " * ").concat(themeSpacing, ")");
5527
+ }
5528
+ return themeSpacing * val;
5526
5529
  };
5527
5530
  }
5528
5531
  if (Array.isArray(themeSpacing)) {
5529
- return function (abs) {
5530
- if (typeof abs === 'string') {
5531
- return abs;
5532
+ return function (val) {
5533
+ if (typeof val === 'string') {
5534
+ return val;
5532
5535
  }
5536
+ var abs = Math.abs(val);
5533
5537
  {
5534
5538
  if (!Number.isInteger(abs)) {
5535
5539
  console.error(["MUI: The `theme.".concat(themeKey, "` array type cannot be combined with non integer values.") + "You should either use an integer value that can be used as index, or define the `theme.".concat(themeKey, "` as a number.")].join('\n'));
@@ -5537,7 +5541,14 @@
5537
5541
  console.error(["MUI: The value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n'));
5538
5542
  }
5539
5543
  }
5540
- return themeSpacing[abs];
5544
+ var transformed = themeSpacing[abs];
5545
+ if (val >= 0) {
5546
+ return transformed;
5547
+ }
5548
+ if (typeof transformed === 'number') {
5549
+ return -transformed;
5550
+ }
5551
+ return "-".concat(transformed);
5541
5552
  };
5542
5553
  }
5543
5554
  if (typeof themeSpacing === 'function') {
@@ -5557,15 +5568,7 @@
5557
5568
  if (typeof propValue === 'string' || propValue == null) {
5558
5569
  return propValue;
5559
5570
  }
5560
- var abs = Math.abs(propValue);
5561
- var transformed = transformer(abs);
5562
- if (propValue >= 0) {
5563
- return transformed;
5564
- }
5565
- if (typeof transformed === 'number') {
5566
- return -transformed;
5567
- }
5568
- return "-".concat(transformed);
5571
+ return transformer(propValue);
5569
5572
  }
5570
5573
  function getStyleFromPropValue(cssProperties, transformer) {
5571
5574
  return function (propValue) {
@@ -5618,17 +5621,13 @@
5618
5621
 
5619
5622
  function createSpacing() {
5620
5623
  var spacingInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;
5624
+ var transform = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : createUnarySpacing({
5625
+ spacing: spacingInput
5626
+ });
5621
5627
  // Already transformed.
5622
5628
  if (spacingInput.mui) {
5623
5629
  return spacingInput;
5624
5630
  }
5625
-
5626
- // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.
5627
- // Smaller components, such as icons, can align to a 4dp grid.
5628
- // https://m2.material.io/design/layout/understanding-layout.html
5629
- var transform = createUnarySpacing({
5630
- spacing: spacingInput
5631
- });
5632
5631
  var spacing = function spacing() {
5633
5632
  for (var _len = arguments.length, argsInput = new Array(_len), _key = 0; _key < _len; _key++) {
5634
5633
  argsInput[_key] = arguments[_key];
@@ -7169,7 +7168,7 @@
7169
7168
  return resolveProps(theme.components[name].defaultProps, props);
7170
7169
  }
7171
7170
 
7172
- function useThemeProps$c(_ref) {
7171
+ function useThemeProps$H(_ref) {
7173
7172
  var props = _ref.props,
7174
7173
  name = _ref.name,
7175
7174
  defaultTheme = _ref.defaultTheme,
@@ -8100,7 +8099,7 @@
8100
8099
  return _this.clear;
8101
8100
  };
8102
8101
  }
8103
- _createClass(Timeout, [{
8102
+ return _createClass(Timeout, [{
8104
8103
  key: "start",
8105
8104
  value:
8106
8105
  /**
@@ -8120,7 +8119,6 @@
8120
8119
  return new Timeout();
8121
8120
  }
8122
8121
  }]);
8123
- return Timeout;
8124
8122
  }();
8125
8123
  function useTimeout() {
8126
8124
  var timeout = useLazyRef(Timeout.create).current;
@@ -8907,8 +8905,7 @@
8907
8905
  designSystemColorScheme = options.defaultColorScheme,
8908
8906
  _options$disableTrans = options.disableTransitionOnChange,
8909
8907
  designSystemTransitionOnChange = _options$disableTrans === void 0 ? false : _options$disableTrans,
8910
- resolveTheme = options.resolveTheme,
8911
- excludeVariablesFromRoot = options.excludeVariablesFromRoot;
8908
+ resolveTheme = options.resolveTheme;
8912
8909
  if (!defaultTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !defaultTheme.colorSchemes[designSystemColorScheme] || _typeof(designSystemColorScheme) === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || _typeof(designSystemColorScheme) === 'object' && !defaultTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
8913
8910
  console.error("MUI: `".concat(designSystemColorScheme, "` does not exist in `theme.colorSchemes`."));
8914
8911
  }
@@ -8924,6 +8921,7 @@
8924
8921
  return value;
8925
8922
  };
8926
8923
  function CssVarsProvider(props) {
8924
+ var _restThemeProp$genera, _theme$generateStyleS;
8927
8925
  var children = props.children,
8928
8926
  _props$theme = props.theme,
8929
8927
  themeProp = _props$theme === void 0 ? defaultTheme : _props$theme,
@@ -8961,15 +8959,8 @@
8961
8959
  colorSchemes = _ref$colorSchemes === void 0 ? {} : _ref$colorSchemes,
8962
8960
  _ref$components = _ref.components,
8963
8961
  components = _ref$components === void 0 ? {} : _ref$components,
8964
- _ref$generateCssVars = _ref.generateCssVars,
8965
- generateCssVars = _ref$generateCssVars === void 0 ? function () {
8966
- return {
8967
- vars: {},
8968
- css: {}
8969
- };
8970
- } : _ref$generateCssVars,
8971
8962
  cssVarPrefix = _ref.cssVarPrefix,
8972
- restThemeProp = _objectWithoutProperties(_ref, ["colorSchemes", "components", "generateCssVars", "cssVarPrefix"]);
8963
+ restThemeProp = _objectWithoutProperties(_ref, ["colorSchemes", "components", "cssVarPrefix"]);
8973
8964
  var allColorSchemes = Object.keys(colorSchemes);
8974
8965
  var defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
8975
8966
  var defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
@@ -9019,33 +9010,25 @@
9019
9010
  return colorScheme;
9020
9011
  }();
9021
9012
 
9022
- // 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)
9023
- var _generateCssVars = generateCssVars(),
9024
- rootCss = _generateCssVars.css,
9025
- rootVars = _generateCssVars.vars; // 3. Start composing the theme object
9013
+ // 2. get the `vars` object that refers to the CSS custom properties
9014
+ var themeVars = ((_restThemeProp$genera = restThemeProp.generateThemeVars) == null ? void 0 : _restThemeProp$genera.call(restThemeProp)) || restThemeProp.vars;
9015
+
9016
+ // 3. Start composing the theme object
9026
9017
  var theme = _extends({}, restThemeProp, {
9027
9018
  components: components,
9028
9019
  colorSchemes: colorSchemes,
9029
9020
  cssVarPrefix: cssVarPrefix,
9030
- vars: rootVars,
9031
- getColorSchemeSelector: function getColorSchemeSelector(targetColorScheme) {
9032
- return "[".concat(attribute, "=\"").concat(targetColorScheme, "\"] &");
9033
- }
9021
+ vars: themeVars
9034
9022
  });
9023
+ if (typeof theme.generateSpacing === 'function') {
9024
+ theme.spacing = theme.generateSpacing();
9025
+ }
9035
9026
 
9036
- // 4. Create color CSS variables and store them in objects (to be generated in stylesheets in the final step)
9037
- // The default color scheme stylesheet is constructed to have the least CSS specificity.
9038
- // The other color schemes uses selector, default as data attribute, to increase the CSS specificity so that they can override the default color scheme stylesheet.
9039
- var defaultColorSchemeStyleSheet = {};
9040
- var otherColorSchemesStyleSheet = {};
9027
+ // 4. Resolve the color scheme and merge it to the theme
9041
9028
  Object.entries(colorSchemes).forEach(function (_ref2) {
9042
9029
  var _ref3 = _slicedToArray(_ref2, 2),
9043
9030
  key = _ref3[0],
9044
9031
  scheme = _ref3[1];
9045
- var _generateCssVars2 = generateCssVars(key),
9046
- css = _generateCssVars2.css,
9047
- vars = _generateCssVars2.vars;
9048
- theme.vars = deepmerge(theme.vars, vars);
9049
9032
  if (key === calculatedColorScheme) {
9050
9033
  // 4.1 Merge the selected color scheme to the theme
9051
9034
  Object.keys(scheme).forEach(function (schemeKey) {
@@ -9060,30 +9043,24 @@
9060
9043
  theme.palette.colorScheme = key;
9061
9044
  }
9062
9045
  }
9063
- var resolvedDefaultColorScheme = function () {
9064
- if (typeof defaultColorScheme === 'string') {
9065
- return defaultColorScheme;
9066
- }
9067
- if (defaultMode === 'dark') {
9068
- return defaultColorScheme.dark;
9069
- }
9070
- return defaultColorScheme.light;
9071
- }();
9072
- if (key === resolvedDefaultColorScheme) {
9073
- if (excludeVariablesFromRoot) {
9074
- var excludedVariables = {};
9075
- excludeVariablesFromRoot(cssVarPrefix).forEach(function (cssVar) {
9076
- excludedVariables[cssVar] = css[cssVar];
9077
- delete css[cssVar];
9078
- });
9079
- defaultColorSchemeStyleSheet["[".concat(attribute, "=\"").concat(key, "\"]")] = excludedVariables;
9080
- }
9081
- defaultColorSchemeStyleSheet["".concat(colorSchemeSelector, ", [").concat(attribute, "=\"").concat(key, "\"]")] = css;
9082
- } else {
9083
- otherColorSchemesStyleSheet["".concat(colorSchemeSelector === ':root' ? '' : colorSchemeSelector, "[").concat(attribute, "=\"").concat(key, "\"]")] = css;
9084
- }
9085
9046
  });
9086
- theme.vars = deepmerge(theme.vars, rootVars);
9047
+ var resolvedDefaultColorScheme = function () {
9048
+ if (typeof defaultColorScheme === 'string') {
9049
+ return defaultColorScheme;
9050
+ }
9051
+ if (defaultMode === 'dark') {
9052
+ return defaultColorScheme.dark;
9053
+ }
9054
+ return defaultColorScheme.light;
9055
+ }();
9056
+ themeProp.defaultColorScheme = resolvedDefaultColorScheme;
9057
+ themeProp.colorSchemeSelector = colorSchemeSelector;
9058
+ themeProp.attribute = attribute;
9059
+ if (!theme.getColorSchemeSelector) {
9060
+ theme.getColorSchemeSelector = function (targetColorScheme) {
9061
+ return "[".concat(attribute, "=\"").concat(targetColorScheme, "\"] &");
9062
+ };
9063
+ }
9087
9064
 
9088
9065
  // 5. Declaring effects
9089
9066
  // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
@@ -9138,14 +9115,12 @@
9138
9115
  shouldGenerateStyleSheet = false;
9139
9116
  }
9140
9117
  var element = /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
9141
- children: [shouldGenerateStyleSheet && /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
9142
- children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$2, {
9143
- styles: _defineProperty({}, colorSchemeSelector, rootCss)
9144
- }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$2, {
9145
- styles: defaultColorSchemeStyleSheet
9146
- }), /*#__PURE__*/jsxRuntime_1(GlobalStyles$2, {
9147
- styles: otherColorSchemesStyleSheet
9148
- })]
9118
+ children: [shouldGenerateStyleSheet && /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
9119
+ children: (((_theme$generateStyleS = theme.generateStyleSheets) == null ? void 0 : _theme$generateStyleS.call(theme)) || []).map(function (styles, index) {
9120
+ return /*#__PURE__*/jsxRuntime_1(GlobalStyles$2, {
9121
+ styles: styles
9122
+ }, index);
9123
+ })
9149
9124
  }), /*#__PURE__*/jsxRuntime_1(ThemeProvider$1, {
9150
9125
  themeId: scopedTheme ? themeId : undefined,
9151
9126
  theme: resolveTheme ? resolveTheme(theme) : theme,
@@ -9390,9 +9365,10 @@
9390
9365
  if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
9391
9366
  // only create css & var if `shouldSkipGeneratingVar` return false
9392
9367
  var cssVar = "--".concat(prefix ? "".concat(prefix, "-") : '').concat(keys.join('-'));
9393
- Object.assign(css, _defineProperty({}, cssVar, getCssValue(keys, value)));
9368
+ var resolvedValue = getCssValue(keys, value);
9369
+ Object.assign(css, _defineProperty({}, cssVar, resolvedValue));
9394
9370
  assignNestedKeys(vars, keys, "var(".concat(cssVar, ")"), arrayKeys);
9395
- assignNestedKeys(varsWithDefaults, keys, "var(".concat(cssVar, ", ").concat(value, ")"), arrayKeys);
9371
+ assignNestedKeys(varsWithDefaults, keys, "var(".concat(cssVar, ", ").concat(resolvedValue, ")"), arrayKeys);
9396
9372
  }
9397
9373
  }
9398
9374
  }, function (keys) {
@@ -9406,7 +9382,10 @@
9406
9382
  };
9407
9383
  }
9408
9384
 
9409
- function prepareCssVars(theme, parserConfig) {
9385
+ function prepareCssVars(theme) {
9386
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9387
+ var getSelector = _ref.getSelector,
9388
+ parserConfig = _objectWithoutProperties(_ref, ["getSelector"]);
9410
9389
  // @ts-ignore - ignore components do not exist
9411
9390
  var _theme$colorSchemes = theme.colorSchemes,
9412
9391
  colorSchemes = _theme$colorSchemes === void 0 ? {} : _theme$colorSchemes;
@@ -9420,12 +9399,12 @@
9420
9399
  rootVarsWithDefaults = _cssVarsParser.varsWithDefaults;
9421
9400
  var themeVars = rootVarsWithDefaults;
9422
9401
  var colorSchemesMap = {};
9423
- var light = colorSchemes[defaultColorScheme],
9402
+ var defaultScheme = colorSchemes[defaultColorScheme],
9424
9403
  otherColorSchemes = _objectWithoutProperties(colorSchemes, [defaultColorScheme].map(toPropertyKey));
9425
- Object.entries(otherColorSchemes || {}).forEach(function (_ref) {
9426
- var _ref2 = _slicedToArray(_ref, 2),
9427
- key = _ref2[0],
9428
- scheme = _ref2[1];
9404
+ Object.entries(otherColorSchemes || {}).forEach(function (_ref2) {
9405
+ var _ref3 = _slicedToArray(_ref2, 2),
9406
+ key = _ref3[0],
9407
+ scheme = _ref3[1];
9429
9408
  var _cssVarsParser2 = cssVarsParser(scheme, parserConfig),
9430
9409
  vars = _cssVarsParser2.vars,
9431
9410
  css = _cssVarsParser2.css,
@@ -9436,9 +9415,9 @@
9436
9415
  vars: vars
9437
9416
  };
9438
9417
  });
9439
- if (light) {
9418
+ if (defaultScheme) {
9440
9419
  // default color scheme vars should be merged last to set as default
9441
- var _cssVarsParser3 = cssVarsParser(light, parserConfig),
9420
+ var _cssVarsParser3 = cssVarsParser(defaultScheme, parserConfig),
9442
9421
  _css = _cssVarsParser3.css,
9443
9422
  vars = _cssVarsParser3.vars,
9444
9423
  varsWithDefaults = _cssVarsParser3.varsWithDefaults;
@@ -9448,27 +9427,43 @@
9448
9427
  vars: vars
9449
9428
  };
9450
9429
  }
9451
- var generateCssVars = function generateCssVars(colorScheme) {
9452
- var _parserConfig$getSele2;
9453
- if (!colorScheme) {
9454
- var _parserConfig$getSele;
9455
- var _css2 = _extends({}, rootCss);
9456
- return {
9457
- css: _css2,
9458
- vars: rootVars,
9459
- selector: (parserConfig == null || (_parserConfig$getSele = parserConfig.getSelector) == null ? void 0 : _parserConfig$getSele.call(parserConfig, colorScheme, _css2)) || ':root'
9460
- };
9461
- }
9462
- var css = _extends({}, colorSchemesMap[colorScheme].css);
9463
- return {
9464
- css: css,
9465
- vars: colorSchemesMap[colorScheme].vars,
9466
- selector: (parserConfig == null || (_parserConfig$getSele2 = parserConfig.getSelector) == null ? void 0 : _parserConfig$getSele2.call(parserConfig, colorScheme, css)) || ':root'
9467
- };
9430
+ var generateThemeVars = function generateThemeVars() {
9431
+ var vars = _extends({}, rootVars);
9432
+ Object.entries(colorSchemesMap).forEach(function (_ref4) {
9433
+ var _ref5 = _slicedToArray(_ref4, 2),
9434
+ schemeVars = _ref5[1].vars;
9435
+ vars = deepmerge(vars, schemeVars);
9436
+ });
9437
+ return vars;
9438
+ };
9439
+ var generateStyleSheets = function generateStyleSheets() {
9440
+ var stylesheets = [];
9441
+ var colorScheme = theme.defaultColorScheme || 'light';
9442
+ function insertStyleSheet(selector, css) {
9443
+ if (Object.keys(css).length) {
9444
+ stylesheets.push(typeof selector === 'string' ? _defineProperty({}, selector, _extends({}, css)) : selector);
9445
+ }
9446
+ }
9447
+ insertStyleSheet((getSelector == null ? void 0 : getSelector(undefined, _extends({}, rootCss))) || ':root', rootCss);
9448
+ var defaultSchemeVal = colorSchemesMap[colorScheme],
9449
+ rest = _objectWithoutProperties(colorSchemesMap, [colorScheme].map(toPropertyKey));
9450
+ if (defaultSchemeVal) {
9451
+ // default color scheme has to come before other color schemes
9452
+ var _css2 = defaultSchemeVal.css;
9453
+ insertStyleSheet((getSelector == null ? void 0 : getSelector(colorScheme, _extends({}, _css2))) || "[".concat(theme.attribute || 'data-color-scheme', "=\"").concat(colorScheme, "\"]"), _css2);
9454
+ }
9455
+ Object.entries(rest).forEach(function (_ref7) {
9456
+ var _ref8 = _slicedToArray(_ref7, 2),
9457
+ key = _ref8[0],
9458
+ css = _ref8[1].css;
9459
+ insertStyleSheet((getSelector == null ? void 0 : getSelector(key, _extends({}, css))) || "[".concat(theme.attribute || 'data-color-scheme', "=\"").concat(key, "\"]"), css);
9460
+ });
9461
+ return stylesheets;
9468
9462
  };
9469
9463
  return {
9470
9464
  vars: themeVars,
9471
- generateCssVars: generateCssVars
9465
+ generateThemeVars: generateThemeVars,
9466
+ generateStyleSheets: generateStyleSheets
9472
9467
  };
9473
9468
  }
9474
9469
 
@@ -9482,7 +9477,7 @@
9482
9477
  }
9483
9478
  });
9484
9479
  var useThemePropsDefault$2 = function useThemePropsDefault(inProps) {
9485
- return useThemeProps$c({
9480
+ return useThemeProps$H({
9486
9481
  props: inProps,
9487
9482
  name: 'MuiContainer',
9488
9483
  defaultTheme: defaultTheme$6
@@ -9870,7 +9865,7 @@
9870
9865
  }
9871
9866
  });
9872
9867
  function useThemePropsDefault$1(props) {
9873
- return useThemeProps$c({
9868
+ return useThemeProps$H({
9874
9869
  props: props,
9875
9870
  name: 'MuiGrid',
9876
9871
  defaultTheme: defaultTheme$5
@@ -10037,7 +10032,7 @@
10037
10032
  }
10038
10033
  });
10039
10034
  function useThemePropsDefault(props) {
10040
- return useThemeProps$c({
10035
+ return useThemeProps$H({
10041
10036
  props: props,
10042
10037
  name: 'MuiStack',
10043
10038
  defaultTheme: defaultTheme$4
@@ -11079,10 +11074,10 @@
11079
11074
  return theme[THEME_ID] || theme;
11080
11075
  }
11081
11076
 
11082
- function useThemeProps$b(_ref) {
11077
+ function useThemeProps$G(_ref) {
11083
11078
  var props = _ref.props,
11084
11079
  name = _ref.name;
11085
- return useThemeProps$c({
11080
+ return useThemeProps$H({
11086
11081
  props: props,
11087
11082
  name: name,
11088
11083
  defaultTheme: defaultTheme$3,
@@ -11158,6 +11153,36 @@
11158
11153
  };
11159
11154
  var getOverlayAlpha$1 = getOverlayAlpha;
11160
11155
 
11156
+ /**
11157
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
11158
+ */
11159
+ var excludeVariablesFromRoot = function excludeVariablesFromRoot(cssVarPrefix) {
11160
+ return [].concat(_toConsumableArray(_toConsumableArray(Array(24)).map(function (_, index) {
11161
+ return "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "overlays-").concat(index + 1);
11162
+ })), ["--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkBg"), "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkColor")]);
11163
+ };
11164
+ var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
11165
+
11166
+ var defaultGetSelector = (function (theme) {
11167
+ return function (colorScheme, css) {
11168
+ if (theme.defaultColorScheme === colorScheme) {
11169
+ if (colorScheme === 'dark') {
11170
+ var excludedVariables = {};
11171
+ excludeVariablesFromRoot$1(theme.cssVarPrefix).forEach(function (cssVar) {
11172
+ excludedVariables[cssVar] = css[cssVar];
11173
+ delete css[cssVar];
11174
+ });
11175
+ return _defineProperty(_defineProperty({}, "[".concat(theme.attribute, "=\"").concat(String(colorScheme), "\"]"), excludedVariables), theme.colorSchemeSelector, css);
11176
+ }
11177
+ return "".concat(theme.colorSchemeSelector, ", [").concat(theme.attribute, "=\"").concat(String(colorScheme), "\"]");
11178
+ }
11179
+ if (colorScheme) {
11180
+ return "[".concat(theme.attribute, "=\"").concat(String(colorScheme), "\"]");
11181
+ }
11182
+ return theme.colorSchemeSelector;
11183
+ };
11184
+ });
11185
+
11161
11186
  var defaultDarkOverlays = _toConsumableArray(Array(25)).map(function (_, index) {
11162
11187
  if (index === 0) {
11163
11188
  return undefined;
@@ -11190,6 +11215,21 @@
11190
11215
  obj["".concat(key, "Channel")] = private_safeColorChannel(toRgb(obj[key]), "MUI: Can't create `palette.".concat(key, "Channel` because `palette.").concat(key, "` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().") + '\n' + "To suppress this warning, you need to explicitly provide the `palette.".concat(key, "Channel` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token."));
11191
11216
  }
11192
11217
  }
11218
+ function getSpacingVal(spacingInput) {
11219
+ if (typeof spacingInput === 'number') {
11220
+ return "".concat(spacingInput, "px");
11221
+ }
11222
+ if (typeof spacingInput === 'string') {
11223
+ return spacingInput;
11224
+ }
11225
+ if (typeof spacingInput === 'function') {
11226
+ return getSpacingVal(spacingInput(1));
11227
+ }
11228
+ if (Array.isArray(spacingInput)) {
11229
+ return spacingInput;
11230
+ }
11231
+ return '8px';
11232
+ }
11193
11233
  var silent = function silent(fn) {
11194
11234
  try {
11195
11235
  return fn();
@@ -11211,7 +11251,8 @@
11211
11251
  cssVarPrefix = _options$cssVarPrefix === void 0 ? 'mui' : _options$cssVarPrefix,
11212
11252
  _options$shouldSkipGe = options.shouldSkipGeneratingVar,
11213
11253
  shouldSkipGeneratingVar$1 = _options$shouldSkipGe === void 0 ? shouldSkipGeneratingVar : _options$shouldSkipGe,
11214
- input = _objectWithoutProperties(options, ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"]);
11254
+ getSelector = options.getSelector,
11255
+ input = _objectWithoutProperties(options, ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar", "getSelector"]);
11215
11256
  var getCssVar = createGetCssVar(cssVarPrefix);
11216
11257
  var _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
11217
11258
  palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
@@ -11224,7 +11265,9 @@
11224
11265
  }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
11225
11266
  }),
11226
11267
  darkPalette = _createThemeWithoutVa2.palette;
11227
- var theme = _extends({}, muiTheme, {
11268
+ var theme = _extends({
11269
+ defaultColorScheme: 'light'
11270
+ }, muiTheme, {
11228
11271
  cssVarPrefix: cssVarPrefix,
11229
11272
  getCssVar: getCssVar,
11230
11273
  colorSchemes: _extends({}, colorSchemesInput, {
@@ -11248,7 +11291,8 @@
11248
11291
  }, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
11249
11292
  overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
11250
11293
  })
11251
- })
11294
+ }),
11295
+ spacing: getSpacingVal(input.spacing)
11252
11296
  });
11253
11297
  Object.keys(theme.colorSchemes).forEach(function (key) {
11254
11298
  var palette = theme.colorSchemes[key].palette;
@@ -11466,13 +11510,31 @@
11466
11510
  }, theme);
11467
11511
  var parserConfig = {
11468
11512
  prefix: cssVarPrefix,
11469
- shouldSkipGeneratingVar: shouldSkipGeneratingVar$1
11513
+ shouldSkipGeneratingVar: shouldSkipGeneratingVar$1,
11514
+ getSelector: getSelector || defaultGetSelector(theme)
11470
11515
  };
11471
11516
  var _prepareCssVars = prepareCssVars(theme, parserConfig),
11472
- themeVars = _prepareCssVars.vars,
11473
- generateCssVars = _prepareCssVars.generateCssVars;
11474
- theme.vars = themeVars;
11475
- theme.generateCssVars = generateCssVars;
11517
+ vars = _prepareCssVars.vars,
11518
+ generateThemeVars = _prepareCssVars.generateThemeVars,
11519
+ generateStyleSheets = _prepareCssVars.generateStyleSheets;
11520
+ theme.attribute = 'data-mui-color-scheme';
11521
+ theme.colorSchemeSelector = ':root';
11522
+ theme.vars = vars;
11523
+ Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(function (_ref) {
11524
+ var _ref2 = _slicedToArray(_ref, 2),
11525
+ key = _ref2[0],
11526
+ value = _ref2[1];
11527
+ theme[key] = value;
11528
+ });
11529
+ theme.generateThemeVars = generateThemeVars;
11530
+ theme.generateStyleSheets = generateStyleSheets;
11531
+ theme.generateSpacing = function generateSpacing() {
11532
+ return createSpacing(input.spacing, createUnarySpacing(this));
11533
+ };
11534
+ theme.getColorSchemeSelector = function (colorScheme) {
11535
+ return "[".concat(theme.attribute, "=\"").concat(colorScheme, "\"] &");
11536
+ };
11537
+ theme.spacing = theme.generateSpacing();
11476
11538
  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
11477
11539
  theme.unstable_sxConfig = _extends({}, defaultSxConfig$1, input == null ? void 0 : input.unstable_sxConfig);
11478
11540
  theme.unstable_sx = function sx(props) {
@@ -11484,16 +11546,6 @@
11484
11546
  return theme;
11485
11547
  }
11486
11548
 
11487
- /**
11488
- * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
11489
- */
11490
- var excludeVariablesFromRoot = function excludeVariablesFromRoot(cssVarPrefix) {
11491
- return [].concat(_toConsumableArray(_toConsumableArray(Array(24)).map(function (_, index) {
11492
- return "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "overlays-").concat(index + 1);
11493
- })), ["--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkBg"), "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkColor")]);
11494
- };
11495
- var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
11496
-
11497
11549
  var defaultTheme$1 = extendTheme();
11498
11550
  var _createCssVarsProvide = createCssVarsProvider({
11499
11551
  themeId: THEME_ID,
@@ -11516,8 +11568,7 @@
11516
11568
  });
11517
11569
  };
11518
11570
  return newTheme;
11519
- },
11520
- excludeVariablesFromRoot: excludeVariablesFromRoot$1
11571
+ }
11521
11572
  }),
11522
11573
  CssVarsProvider = _createCssVarsProvide.CssVarsProvider,
11523
11574
  useColorScheme = _createCssVarsProvide.useColorScheme,
@@ -11582,7 +11633,7 @@
11582
11633
  };
11583
11634
  });
11584
11635
  var SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProps, ref) {
11585
- var props = useThemeProps$b({
11636
+ var props = useThemeProps$G({
11586
11637
  props: inProps,
11587
11638
  name: 'MuiSvgIcon'
11588
11639
  });
@@ -11741,7 +11792,7 @@
11741
11792
 
11742
11793
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11743
11794
  function createUseThemeProps(name) {
11744
- return useThemeProps$b;
11795
+ return useThemeProps$G;
11745
11796
  }
11746
11797
 
11747
11798
  function _setPrototypeOf(o, p) {
@@ -12831,7 +12882,7 @@
12831
12882
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
12832
12883
  */
12833
12884
  var Collapse = /*#__PURE__*/React__namespace.forwardRef(function Collapse(inProps, ref) {
12834
- var props = useThemeProps$b({
12885
+ var props = useThemeProps$G({
12835
12886
  props: inProps,
12836
12887
  name: 'MuiCollapse'
12837
12888
  });
@@ -13161,7 +13212,7 @@
13161
13212
  }));
13162
13213
  });
13163
13214
  var Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
13164
- var props = useThemeProps$b({
13215
+ var props = useThemeProps$G({
13165
13216
  props: inProps,
13166
13217
  name: 'MuiPaper'
13167
13218
  });
@@ -13538,7 +13589,7 @@
13538
13589
  var accordionClasses = generateUtilityClasses$1('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
13539
13590
  var accordionClasses$1 = accordionClasses;
13540
13591
 
13541
- var useThemeProps$a = createUseThemeProps();
13592
+ var useThemeProps$F = createUseThemeProps();
13542
13593
  var useUtilityClasses$1M = function useUtilityClasses(ownerState) {
13543
13594
  var classes = ownerState.classes,
13544
13595
  square = ownerState.square,
@@ -13636,7 +13687,7 @@
13636
13687
  };
13637
13688
  });
13638
13689
  var Accordion = /*#__PURE__*/React__namespace.forwardRef(function Accordion(inProps, ref) {
13639
- var props = useThemeProps$a({
13690
+ var props = useThemeProps$F({
13640
13691
  props: inProps,
13641
13692
  name: 'MuiAccordion'
13642
13693
  });
@@ -13830,7 +13881,7 @@
13830
13881
  var accordionActionsClasses = generateUtilityClasses$1('MuiAccordionActions', ['root', 'spacing']);
13831
13882
  var accordionActionsClasses$1 = accordionActionsClasses;
13832
13883
 
13833
- var useThemeProps$9 = createUseThemeProps();
13884
+ var useThemeProps$E = createUseThemeProps();
13834
13885
  var useUtilityClasses$1L = function useUtilityClasses(ownerState) {
13835
13886
  var classes = ownerState.classes,
13836
13887
  disableSpacing = ownerState.disableSpacing;
@@ -13863,7 +13914,7 @@
13863
13914
  }]
13864
13915
  });
13865
13916
  var AccordionActions = /*#__PURE__*/React__namespace.forwardRef(function AccordionActions(inProps, ref) {
13866
- var props = useThemeProps$9({
13917
+ var props = useThemeProps$E({
13867
13918
  props: inProps,
13868
13919
  name: 'MuiAccordionActions'
13869
13920
  });
@@ -13916,7 +13967,7 @@
13916
13967
  var accordionDetailsClasses = generateUtilityClasses$1('MuiAccordionDetails', ['root']);
13917
13968
  var accordionDetailsClasses$1 = accordionDetailsClasses;
13918
13969
 
13919
- var useThemeProps$8 = createUseThemeProps();
13970
+ var useThemeProps$D = createUseThemeProps();
13920
13971
  var useUtilityClasses$1K = function useUtilityClasses(ownerState) {
13921
13972
  var classes = ownerState.classes;
13922
13973
  var slots = {
@@ -13937,7 +13988,7 @@
13937
13988
  };
13938
13989
  });
13939
13990
  var AccordionDetails = /*#__PURE__*/React__namespace.forwardRef(function AccordionDetails(inProps, ref) {
13940
- var props = useThemeProps$8({
13991
+ var props = useThemeProps$D({
13941
13992
  props: inProps,
13942
13993
  name: 'MuiAccordionDetails'
13943
13994
  });
@@ -14029,7 +14080,7 @@
14029
14080
  })
14030
14081
  });
14031
14082
  }
14032
- Ripple.propTypes = {
14083
+ Ripple.propTypes /* remove-proptypes */ = {
14033
14084
  /**
14034
14085
  * Override or extend the styles applied to the component.
14035
14086
  */
@@ -14072,6 +14123,7 @@
14072
14123
  var touchRippleClasses$1 = touchRippleClasses;
14073
14124
 
14074
14125
  var _templateObject$3, _templateObject2$3, _templateObject3$3, _templateObject4$3;
14126
+ var useThemeProps$C = createUseThemeProps();
14075
14127
  var DURATION = 550;
14076
14128
  var DELAY_RIPPLE = 80;
14077
14129
  var enterKeyframe = keyframes(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])));
@@ -14117,7 +14169,7 @@
14117
14169
  * TODO v5: Make private
14118
14170
  */
14119
14171
  var TouchRipple = /*#__PURE__*/React__namespace.forwardRef(function TouchRipple(inProps, ref) {
14120
- var props = useThemeProps$b({
14172
+ var props = useThemeProps$C({
14121
14173
  props: inProps,
14122
14174
  name: 'MuiTouchRipple'
14123
14175
  });
@@ -14306,7 +14358,7 @@
14306
14358
  })
14307
14359
  }));
14308
14360
  });
14309
- TouchRipple.propTypes = {
14361
+ TouchRipple.propTypes /* remove-proptypes */ = {
14310
14362
  /**
14311
14363
  * If `true`, the ripple starts at the center of the component
14312
14364
  * rather than at the point of interaction.
@@ -14329,6 +14381,7 @@
14329
14381
  var buttonBaseClasses = generateUtilityClasses$1('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
14330
14382
  var buttonBaseClasses$1 = buttonBaseClasses;
14331
14383
 
14384
+ var useThemeProps$B = createUseThemeProps();
14332
14385
  var useUtilityClasses$1J = function useUtilityClasses(ownerState) {
14333
14386
  var disabled = ownerState.disabled,
14334
14387
  focusVisible = ownerState.focusVisible,
@@ -14393,7 +14446,7 @@
14393
14446
  * It contains a load of style reset and some focus/ripple logic.
14394
14447
  */
14395
14448
  var ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(inProps, ref) {
14396
- var props = useThemeProps$b({
14449
+ var props = useThemeProps$B({
14397
14450
  props: inProps,
14398
14451
  name: 'MuiButtonBase'
14399
14452
  });
@@ -14804,7 +14857,7 @@
14804
14857
  var accordionSummaryClasses = generateUtilityClasses$1('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
14805
14858
  var accordionSummaryClasses$1 = accordionSummaryClasses;
14806
14859
 
14807
- var useThemeProps$7 = createUseThemeProps();
14860
+ var useThemeProps$A = createUseThemeProps();
14808
14861
  var useUtilityClasses$1I = function useUtilityClasses(ownerState) {
14809
14862
  var classes = ownerState.classes,
14810
14863
  expanded = ownerState.expanded,
@@ -14895,7 +14948,7 @@
14895
14948
  });
14896
14949
  });
14897
14950
  var AccordionSummary = /*#__PURE__*/React__namespace.forwardRef(function AccordionSummary(inProps, ref) {
14898
- var props = useThemeProps$7({
14951
+ var props = useThemeProps$A({
14899
14952
  props: inProps,
14900
14953
  name: 'MuiAccordionSummary'
14901
14954
  });
@@ -15082,7 +15135,7 @@
15082
15135
  * regarding the available icon options.
15083
15136
  */
15084
15137
  var IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(inProps, ref) {
15085
- var props = useThemeProps$b({
15138
+ var props = useThemeProps$G({
15086
15139
  props: inProps,
15087
15140
  name: 'MuiIconButton'
15088
15141
  });
@@ -15209,7 +15262,7 @@
15209
15262
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
15210
15263
  }), 'Close');
15211
15264
 
15212
- var useThemeProps$6 = createUseThemeProps();
15265
+ var useThemeProps$z = createUseThemeProps();
15213
15266
  var useUtilityClasses$1G = function useUtilityClasses(ownerState) {
15214
15267
  var variant = ownerState.variant,
15215
15268
  color = ownerState.color,
@@ -15357,7 +15410,7 @@
15357
15410
  })
15358
15411
  };
15359
15412
  var Alert = /*#__PURE__*/React__namespace.forwardRef(function Alert(inProps, ref) {
15360
- var props = useThemeProps$6({
15413
+ var props = useThemeProps$z({
15361
15414
  props: inProps,
15362
15415
  name: 'MuiAlert'
15363
15416
  });
@@ -15642,7 +15695,7 @@
15642
15695
  return colorTransformations$1[color] || color;
15643
15696
  };
15644
15697
  var Typography = /*#__PURE__*/React__namespace.forwardRef(function Typography(inProps, ref) {
15645
- var themeProps = useThemeProps$b({
15698
+ var themeProps = useThemeProps$G({
15646
15699
  props: inProps,
15647
15700
  name: 'MuiTypography'
15648
15701
  });
@@ -15768,7 +15821,7 @@
15768
15821
  var alertTitleClasses = generateUtilityClasses$1('MuiAlertTitle', ['root']);
15769
15822
  var alertTitleClasses$1 = alertTitleClasses;
15770
15823
 
15771
- var useThemeProps$5 = createUseThemeProps();
15824
+ var useThemeProps$y = createUseThemeProps();
15772
15825
  var useUtilityClasses$1E = function useUtilityClasses(ownerState) {
15773
15826
  var classes = ownerState.classes;
15774
15827
  var slots = {
@@ -15790,7 +15843,7 @@
15790
15843
  };
15791
15844
  });
15792
15845
  var AlertTitle = /*#__PURE__*/React__namespace.forwardRef(function AlertTitle(inProps, ref) {
15793
- var props = useThemeProps$5({
15846
+ var props = useThemeProps$y({
15794
15847
  props: inProps,
15795
15848
  name: 'MuiAlertTitle'
15796
15849
  });
@@ -15836,6 +15889,7 @@
15836
15889
  var appBarClasses = generateUtilityClasses$1('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
15837
15890
  var appBarClasses$1 = appBarClasses;
15838
15891
 
15892
+ var useThemeProps$x = createUseThemeProps();
15839
15893
  var useUtilityClasses$1D = function useUtilityClasses(ownerState) {
15840
15894
  var color = ownerState.color,
15841
15895
  position = ownerState.position,
@@ -15859,76 +15913,135 @@
15859
15913
  return [styles.root, styles["position".concat(capitalize(ownerState.position))], styles["color".concat(capitalize(ownerState.color))]];
15860
15914
  }
15861
15915
  })(function (_ref) {
15862
- var theme = _ref.theme,
15863
- ownerState = _ref.ownerState;
15864
- var backgroundColorDefault = theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[900];
15865
- return _extends({
15916
+ var _theme$vars;
15917
+ var theme = _ref.theme;
15918
+ return {
15866
15919
  display: 'flex',
15867
15920
  flexDirection: 'column',
15868
15921
  width: '100%',
15869
15922
  boxSizing: 'border-box',
15870
15923
  // Prevent padding issue with the Modal and fixed positioned AppBar.
15871
- flexShrink: 0
15872
- }, ownerState.position === 'fixed' && {
15873
- position: 'fixed',
15874
- zIndex: (theme.vars || theme).zIndex.appBar,
15875
- top: 0,
15876
- left: 'auto',
15877
- right: 0,
15878
- '@media print': {
15879
- // Prevent the app bar to be visible on each printed page.
15880
- position: 'absolute'
15881
- }
15882
- }, ownerState.position === 'absolute' && {
15883
- position: 'absolute',
15884
- zIndex: (theme.vars || theme).zIndex.appBar,
15885
- top: 0,
15886
- left: 'auto',
15887
- right: 0
15888
- }, ownerState.position === 'sticky' && {
15889
- // ⚠️ sticky is not supported by IE11.
15890
- position: 'sticky',
15891
- zIndex: (theme.vars || theme).zIndex.appBar,
15892
- top: 0,
15893
- left: 'auto',
15894
- right: 0
15895
- }, ownerState.position === 'static' && {
15896
- position: 'static'
15897
- }, ownerState.position === 'relative' && {
15898
- position: 'relative'
15899
- }, !theme.vars && _extends({}, ownerState.color === 'default' && {
15900
- backgroundColor: backgroundColorDefault,
15901
- color: theme.palette.getContrastText(backgroundColorDefault)
15902
- }, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
15903
- backgroundColor: theme.palette[ownerState.color].main,
15904
- color: theme.palette[ownerState.color].contrastText
15905
- }, ownerState.color === 'inherit' && {
15906
- color: 'inherit'
15907
- }, theme.palette.mode === 'dark' && !ownerState.enableColorOnDark && {
15908
- backgroundColor: null,
15909
- color: null
15910
- }, ownerState.color === 'transparent' && _extends({
15911
- backgroundColor: 'transparent',
15912
- color: 'inherit'
15913
- }, theme.palette.mode === 'dark' && {
15914
- backgroundImage: 'none'
15915
- })), theme.vars && _extends({}, ownerState.color === 'default' && {
15916
- '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette.AppBar.defaultBg : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette.AppBar.defaultBg),
15917
- '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette.text.primary : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette.text.primary)
15918
- }, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
15919
- '--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
15920
- '--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
15921
- }, {
15922
- backgroundColor: 'var(--AppBar-background)',
15923
- color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
15924
- }, ownerState.color === 'transparent' && {
15925
- backgroundImage: 'none',
15926
- backgroundColor: 'transparent',
15927
- color: 'inherit'
15928
- }));
15924
+ flexShrink: 0,
15925
+ variants: [{
15926
+ props: {
15927
+ position: 'fixed'
15928
+ },
15929
+ style: {
15930
+ position: 'fixed',
15931
+ zIndex: (theme.vars || theme).zIndex.appBar,
15932
+ top: 0,
15933
+ left: 'auto',
15934
+ right: 0,
15935
+ '@media print': {
15936
+ // Prevent the app bar to be visible on each printed page.
15937
+ position: 'absolute'
15938
+ }
15939
+ }
15940
+ }, {
15941
+ props: {
15942
+ position: 'absolute'
15943
+ },
15944
+ style: {
15945
+ position: 'absolute',
15946
+ zIndex: (theme.vars || theme).zIndex.appBar,
15947
+ top: 0,
15948
+ left: 'auto',
15949
+ right: 0
15950
+ }
15951
+ }, {
15952
+ props: {
15953
+ position: 'sticky'
15954
+ },
15955
+ style: {
15956
+ // ⚠️ sticky is not supported by IE11.
15957
+ position: 'sticky',
15958
+ zIndex: (theme.vars || theme).zIndex.appBar,
15959
+ top: 0,
15960
+ left: 'auto',
15961
+ right: 0
15962
+ }
15963
+ }, {
15964
+ props: {
15965
+ position: 'static'
15966
+ },
15967
+ style: {
15968
+ position: 'static'
15969
+ }
15970
+ }, {
15971
+ props: {
15972
+ position: 'relative'
15973
+ },
15974
+ style: {
15975
+ position: 'relative'
15976
+ }
15977
+ }, {
15978
+ props: {
15979
+ color: 'inherit'
15980
+ },
15981
+ style: {
15982
+ '--AppBar-color': 'inherit'
15983
+ }
15984
+ }, {
15985
+ props: {
15986
+ color: 'default'
15987
+ },
15988
+ style: _extends({
15989
+ '--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[100],
15990
+ '--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[100])
15991
+ }, theme.applyStyles('dark', {
15992
+ '--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[900],
15993
+ '--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[900])
15994
+ }))
15995
+ }].concat(_toConsumableArray(Object.keys(((_theme$vars = theme.vars) != null ? _theme$vars : theme).palette).filter(function (key) {
15996
+ var _theme$vars2, _theme$vars3;
15997
+ return ((_theme$vars2 = theme.vars) != null ? _theme$vars2 : theme).palette[key].main && ((_theme$vars3 = theme.vars) != null ? _theme$vars3 : theme).palette[key].contrastText;
15998
+ }).map(function (color) {
15999
+ var _theme$vars4, _theme$vars5;
16000
+ return {
16001
+ props: {
16002
+ color: color
16003
+ },
16004
+ style: {
16005
+ '--AppBar-background': ((_theme$vars4 = theme.vars) != null ? _theme$vars4 : theme).palette[color].main,
16006
+ '--AppBar-color': ((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette[color].contrastText
16007
+ }
16008
+ };
16009
+ })), [{
16010
+ props: {
16011
+ enableColorOnDark: true
16012
+ },
16013
+ style: {
16014
+ backgroundColor: 'var(--AppBar-background)',
16015
+ color: 'var(--AppBar-color)'
16016
+ }
16017
+ }, {
16018
+ props: {
16019
+ enableColorOnDark: false
16020
+ },
16021
+ style: _extends({
16022
+ backgroundColor: 'var(--AppBar-background)',
16023
+ color: 'var(--AppBar-color)'
16024
+ }, theme.applyStyles('dark', {
16025
+ backgroundColor: theme.vars ? joinVars(theme.vars.palette.AppBar.darkBg, 'var(--AppBar-background)') : null,
16026
+ color: theme.vars ? joinVars(theme.vars.palette.AppBar.darkColor, 'var(--AppBar-color)') : null
16027
+ }))
16028
+ }, {
16029
+ props: {
16030
+ color: 'transparent'
16031
+ },
16032
+ style: _extends({
16033
+ '--AppBar-background': 'transparent',
16034
+ '--AppBar-color': 'inherit',
16035
+ backgroundColor: 'var(--AppBar-background)',
16036
+ color: 'var(--AppBar-color)'
16037
+ }, theme.applyStyles('dark', {
16038
+ backgroundImage: 'none'
16039
+ }))
16040
+ }])
16041
+ };
15929
16042
  });
15930
16043
  var AppBar = /*#__PURE__*/React__namespace.forwardRef(function AppBar(inProps, ref) {
15931
- var props = useThemeProps$b({
16044
+ var props = useThemeProps$x({
15932
16045
  props: inProps,
15933
16046
  name: 'MuiAppBar'
15934
16047
  });
@@ -16795,7 +16908,7 @@
16795
16908
  this.modals = [];
16796
16909
  this.containers = [];
16797
16910
  }
16798
- _createClass(ModalManager, [{
16911
+ return _createClass(ModalManager, [{
16799
16912
  key: "add",
16800
16913
  value: function add(modal, container) {
16801
16914
  var modalIndex = this.modals.indexOf(modal);
@@ -16882,7 +16995,6 @@
16882
16995
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;
16883
16996
  }
16884
16997
  }]);
16885
- return ModalManager;
16886
16998
  }();
16887
16999
 
16888
17000
  function getContainer(container) {
@@ -21445,7 +21557,7 @@
21445
21557
  var Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
21446
21558
  var _slots$root;
21447
21559
  var theme = useTheme$3();
21448
- var props = useThemeProps$b({
21560
+ var props = useThemeProps$G({
21449
21561
  props: inProps,
21450
21562
  name: 'MuiPopper'
21451
21563
  });
@@ -21670,7 +21782,7 @@
21670
21782
  });
21671
21783
  });
21672
21784
  var ListSubheader = /*#__PURE__*/React__namespace.forwardRef(function ListSubheader(inProps, ref) {
21673
- var props = useThemeProps$b({
21785
+ var props = useThemeProps$G({
21674
21786
  props: inProps,
21675
21787
  name: 'MuiListSubheader'
21676
21788
  });
@@ -21761,6 +21873,7 @@
21761
21873
  var chipClasses = generateUtilityClasses$1('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
21762
21874
  var chipClasses$1 = chipClasses;
21763
21875
 
21876
+ var useThemeProps$w = createUseThemeProps();
21764
21877
  var useUtilityClasses$1A = function useUtilityClasses(ownerState) {
21765
21878
  var classes = ownerState.classes,
21766
21879
  disabled = ownerState.disabled,
@@ -21793,10 +21906,9 @@
21793
21906
  return [_defineProperty({}, "& .".concat(chipClasses$1.avatar), styles.avatar), _defineProperty({}, "& .".concat(chipClasses$1.avatar), styles["avatar".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses$1.avatar), styles["avatarColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses$1.icon), styles.icon), _defineProperty({}, "& .".concat(chipClasses$1.icon), styles["icon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses$1.icon), styles["iconColor".concat(capitalize(iconColor))]), _defineProperty({}, "& .".concat(chipClasses$1.deleteIcon), styles.deleteIcon), _defineProperty({}, "& .".concat(chipClasses$1.deleteIcon), styles["deleteIcon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses$1.deleteIcon), styles["deleteIconColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses$1.deleteIcon), styles["deleteIcon".concat(capitalize(variant), "Color").concat(capitalize(color))]), styles.root, styles["size".concat(capitalize(size))], styles["color".concat(capitalize(color))], clickable && styles.clickable, clickable && color !== 'default' && styles["clickableColor".concat(capitalize(color), ")")], onDelete && styles.deletable, onDelete && color !== 'default' && styles["deletableColor".concat(capitalize(color))], styles[variant], styles["".concat(variant).concat(capitalize(color))]];
21794
21907
  }
21795
21908
  })(function (_ref11) {
21796
- var theme = _ref11.theme,
21797
- ownerState = _ref11.ownerState;
21909
+ var theme = _ref11.theme;
21798
21910
  var textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
21799
- return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
21911
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
21800
21912
  maxWidth: '100%',
21801
21913
  fontFamily: theme.typography.fontFamily,
21802
21914
  fontSize: theme.typography.pxToRem(13),
@@ -21842,18 +21954,10 @@
21842
21954
  width: 18,
21843
21955
  height: 18,
21844
21956
  fontSize: theme.typography.pxToRem(10)
21845
- }), "& .".concat(chipClasses$1.icon), _extends({
21957
+ }), "& .".concat(chipClasses$1.icon), {
21846
21958
  marginLeft: 5,
21847
21959
  marginRight: -6
21848
- }, ownerState.size === 'small' && {
21849
- fontSize: 18,
21850
- marginLeft: 4,
21851
- marginRight: -4
21852
- }, ownerState.iconColor === ownerState.color && _extends({
21853
- color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
21854
- }, ownerState.color !== 'default' && {
21855
- color: 'inherit'
21856
- }))), "& .".concat(chipClasses$1.deleteIcon), _extends({
21960
+ }), "& .".concat(chipClasses$1.deleteIcon), {
21857
21961
  WebkitTapHighlightColor: 'transparent',
21858
21962
  color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") : alpha(theme.palette.text.primary, 0.26),
21859
21963
  fontSize: 22,
@@ -21862,77 +21966,163 @@
21862
21966
  '&:hover': {
21863
21967
  color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.4)") : alpha(theme.palette.text.primary, 0.4)
21864
21968
  }
21865
- }, ownerState.size === 'small' && {
21866
- fontSize: 16,
21867
- marginRight: 4,
21868
- marginLeft: -4
21869
- }, ownerState.color !== 'default' && {
21870
- color: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].contrastTextChannel, " / 0.7)") : alpha(theme.palette[ownerState.color].contrastText, 0.7),
21871
- '&:hover, &:active': {
21872
- color: (theme.vars || theme).palette[ownerState.color].contrastText
21873
- }
21874
- })), ownerState.size === 'small' && {
21875
- height: 24
21876
- }, ownerState.color !== 'default' && {
21877
- backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
21878
- color: (theme.vars || theme).palette[ownerState.color].contrastText
21879
- }, ownerState.onDelete && _defineProperty({}, "&.".concat(chipClasses$1.focusVisible), {
21880
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
21881
- }), ownerState.onDelete && ownerState.color !== 'default' && _defineProperty({}, "&.".concat(chipClasses$1.focusVisible), {
21882
- backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
21883
- }));
21884
- }, function (_ref14) {
21885
- var theme = _ref14.theme,
21886
- ownerState = _ref14.ownerState;
21887
- return _extends({}, ownerState.clickable && _defineProperty(_defineProperty({
21888
- userSelect: 'none',
21889
- WebkitTapHighlightColor: 'transparent',
21890
- cursor: 'pointer',
21891
- '&:hover': {
21892
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
21893
- }
21894
- }, "&.".concat(chipClasses$1.focusVisible), {
21895
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
21896
- }), '&:active', {
21897
- boxShadow: (theme.vars || theme).shadows[1]
21898
- }), ownerState.clickable && ownerState.color !== 'default' && _defineProperty({}, "&:hover, &.".concat(chipClasses$1.focusVisible), {
21899
- backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
21900
- }));
21901
- }, function (_ref17) {
21902
- var theme = _ref17.theme,
21903
- ownerState = _ref17.ownerState;
21904
- return _extends({}, ownerState.variant === 'outlined' && _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
21905
- backgroundColor: 'transparent',
21906
- border: theme.vars ? "1px solid ".concat(theme.vars.palette.Chip.defaultBorder) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700])
21907
- }, "&.".concat(chipClasses$1.clickable, ":hover"), {
21908
- backgroundColor: (theme.vars || theme).palette.action.hover
21909
- }), "&.".concat(chipClasses$1.focusVisible), {
21910
- backgroundColor: (theme.vars || theme).palette.action.focus
21911
- }), "& .".concat(chipClasses$1.avatar), {
21912
- marginLeft: 4
21913
- }), "& .".concat(chipClasses$1.avatarSmall), {
21914
- marginLeft: 2
21915
- }), "& .".concat(chipClasses$1.icon), {
21916
- marginLeft: 4
21917
- }), "& .".concat(chipClasses$1.iconSmall), {
21918
- marginLeft: 2
21919
- }), "& .".concat(chipClasses$1.deleteIcon), {
21920
- marginRight: 5
21921
- }), "& .".concat(chipClasses$1.deleteIconSmall), {
21922
- marginRight: 3
21923
- }), ownerState.variant === 'outlined' && ownerState.color !== 'default' && _defineProperty(_defineProperty(_defineProperty({
21924
- color: (theme.vars || theme).palette[ownerState.color].main,
21925
- border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.7)") : alpha(theme.palette[ownerState.color].main, 0.7))
21926
- }, "&.".concat(chipClasses$1.clickable, ":hover"), {
21927
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity)
21928
- }), "&.".concat(chipClasses$1.focusVisible), {
21929
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.focusOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
21930
- }), "& .".concat(chipClasses$1.deleteIcon), {
21931
- color: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.7)") : alpha(theme.palette[ownerState.color].main, 0.7),
21932
- '&:hover, &:active': {
21933
- color: (theme.vars || theme).palette[ownerState.color].main
21934
- }
21935
- }));
21969
+ }), "variants", [{
21970
+ props: {
21971
+ size: 'small'
21972
+ },
21973
+ style: _defineProperty(_defineProperty({
21974
+ height: 24
21975
+ }, "& .".concat(chipClasses$1.icon), {
21976
+ fontSize: 18,
21977
+ marginLeft: 4,
21978
+ marginRight: -4
21979
+ }), "& .".concat(chipClasses$1.deleteIcon), {
21980
+ fontSize: 16,
21981
+ marginRight: 4,
21982
+ marginLeft: -4
21983
+ })
21984
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref12) {
21985
+ var _ref13 = _slicedToArray(_ref12, 2),
21986
+ value = _ref13[1];
21987
+ return value.main && value.contrastText;
21988
+ }).map(function (_ref14) {
21989
+ var _ref15 = _slicedToArray(_ref14, 1),
21990
+ color = _ref15[0];
21991
+ return {
21992
+ props: {
21993
+ color: color
21994
+ },
21995
+ style: _defineProperty({
21996
+ backgroundColor: (theme.vars || theme).palette[color].main,
21997
+ color: (theme.vars || theme).palette[color].contrastText
21998
+ }, "& .".concat(chipClasses$1.deleteIcon), {
21999
+ color: theme.vars ? "rgba(".concat(theme.vars.palette[color].contrastTextChannel, " / 0.7)") : alpha(theme.palette[color].contrastText, 0.7),
22000
+ '&:hover, &:active': {
22001
+ color: (theme.vars || theme).palette[color].contrastText
22002
+ }
22003
+ })
22004
+ };
22005
+ })), [{
22006
+ props: function props(_props) {
22007
+ return _props.iconColor === _props.color;
22008
+ },
22009
+ style: _defineProperty({}, "& .".concat(chipClasses$1.icon), {
22010
+ color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
22011
+ })
22012
+ }, {
22013
+ props: function props(_props2) {
22014
+ return _props2.iconColor === _props2.color && _props2.color !== 'default';
22015
+ },
22016
+ style: _defineProperty({}, "& .".concat(chipClasses$1.icon), {
22017
+ color: 'inherit'
22018
+ })
22019
+ }, {
22020
+ props: {
22021
+ onDelete: true
22022
+ },
22023
+ style: _defineProperty({}, "&.".concat(chipClasses$1.focusVisible), {
22024
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
22025
+ })
22026
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref16) {
22027
+ var _ref17 = _slicedToArray(_ref16, 2),
22028
+ value = _ref17[1];
22029
+ return value.dark;
22030
+ }).map(function (_ref18) {
22031
+ var _ref19 = _slicedToArray(_ref18, 1),
22032
+ color = _ref19[0];
22033
+ return {
22034
+ props: {
22035
+ color: color,
22036
+ onDelete: true
22037
+ },
22038
+ style: _defineProperty({}, "&.".concat(chipClasses$1.focusVisible), {
22039
+ background: (theme.vars || theme).palette[color].dark
22040
+ })
22041
+ };
22042
+ })), [{
22043
+ props: {
22044
+ clickable: true
22045
+ },
22046
+ style: _defineProperty(_defineProperty({
22047
+ userSelect: 'none',
22048
+ WebkitTapHighlightColor: 'transparent',
22049
+ cursor: 'pointer',
22050
+ '&:hover': {
22051
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
22052
+ }
22053
+ }, "&.".concat(chipClasses$1.focusVisible), {
22054
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
22055
+ }), '&:active', {
22056
+ boxShadow: (theme.vars || theme).shadows[1]
22057
+ })
22058
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref20) {
22059
+ var _ref21 = _slicedToArray(_ref20, 2),
22060
+ value = _ref21[1];
22061
+ return value.dark;
22062
+ }).map(function (_ref22) {
22063
+ var _ref23 = _slicedToArray(_ref22, 1),
22064
+ color = _ref23[0];
22065
+ return {
22066
+ props: {
22067
+ color: color,
22068
+ clickable: true
22069
+ },
22070
+ style: _defineProperty({}, "&:hover, &.".concat(chipClasses$1.focusVisible), {
22071
+ backgroundColor: (theme.vars || theme).palette[color].dark
22072
+ })
22073
+ };
22074
+ })), [{
22075
+ props: {
22076
+ variant: 'outlined'
22077
+ },
22078
+ style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
22079
+ backgroundColor: 'transparent',
22080
+ border: theme.vars ? "1px solid ".concat(theme.vars.palette.Chip.defaultBorder) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700])
22081
+ }, "&.".concat(chipClasses$1.clickable, ":hover"), {
22082
+ backgroundColor: (theme.vars || theme).palette.action.hover
22083
+ }), "&.".concat(chipClasses$1.focusVisible), {
22084
+ backgroundColor: (theme.vars || theme).palette.action.focus
22085
+ }), "& .".concat(chipClasses$1.avatar), {
22086
+ marginLeft: 4
22087
+ }), "& .".concat(chipClasses$1.avatarSmall), {
22088
+ marginLeft: 2
22089
+ }), "& .".concat(chipClasses$1.icon), {
22090
+ marginLeft: 4
22091
+ }), "& .".concat(chipClasses$1.iconSmall), {
22092
+ marginLeft: 2
22093
+ }), "& .".concat(chipClasses$1.deleteIcon), {
22094
+ marginRight: 5
22095
+ }), "& .".concat(chipClasses$1.deleteIconSmall), {
22096
+ marginRight: 3
22097
+ })
22098
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref24) {
22099
+ var _ref25 = _slicedToArray(_ref24, 2),
22100
+ value = _ref25[1];
22101
+ return value.main;
22102
+ }) // no need to check for mainChannel as it's calculated from main
22103
+ .map(function (_ref26) {
22104
+ var _ref27 = _slicedToArray(_ref26, 1),
22105
+ color = _ref27[0];
22106
+ return {
22107
+ props: {
22108
+ variant: 'outlined',
22109
+ color: color
22110
+ },
22111
+ style: _defineProperty(_defineProperty(_defineProperty({
22112
+ color: (theme.vars || theme).palette[color].main,
22113
+ border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.7)") : alpha(theme.palette[color].main, 0.7))
22114
+ }, "&.".concat(chipClasses$1.clickable, ":hover"), {
22115
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)
22116
+ }), "&.".concat(chipClasses$1.focusVisible), {
22117
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.focusOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.focusOpacity)
22118
+ }), "& .".concat(chipClasses$1.deleteIcon), {
22119
+ color: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.7)") : alpha(theme.palette[color].main, 0.7),
22120
+ '&:hover, &:active': {
22121
+ color: (theme.vars || theme).palette[color].main
22122
+ }
22123
+ })
22124
+ };
22125
+ }))));
21936
22126
  });
21937
22127
  var ChipLabel = styled$1('span', {
21938
22128
  name: 'MuiChip',
@@ -21942,24 +22132,38 @@
21942
22132
  var size = ownerState.size;
21943
22133
  return [styles.label, styles["label".concat(capitalize(size))]];
21944
22134
  }
21945
- })(function (_ref20) {
21946
- var ownerState = _ref20.ownerState;
21947
- return _extends({
21948
- overflow: 'hidden',
21949
- textOverflow: 'ellipsis',
21950
- paddingLeft: 12,
21951
- paddingRight: 12,
21952
- whiteSpace: 'nowrap'
21953
- }, ownerState.variant === 'outlined' && {
21954
- paddingLeft: 11,
21955
- paddingRight: 11
21956
- }, ownerState.size === 'small' && {
21957
- paddingLeft: 8,
21958
- paddingRight: 8
21959
- }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
21960
- paddingLeft: 7,
21961
- paddingRight: 7
21962
- });
22135
+ })({
22136
+ overflow: 'hidden',
22137
+ textOverflow: 'ellipsis',
22138
+ paddingLeft: 12,
22139
+ paddingRight: 12,
22140
+ whiteSpace: 'nowrap',
22141
+ variants: [{
22142
+ props: {
22143
+ variant: 'outlined'
22144
+ },
22145
+ style: {
22146
+ paddingLeft: 11,
22147
+ paddingRight: 11
22148
+ }
22149
+ }, {
22150
+ props: {
22151
+ size: 'small'
22152
+ },
22153
+ style: {
22154
+ paddingLeft: 8,
22155
+ paddingRight: 8
22156
+ }
22157
+ }, {
22158
+ props: {
22159
+ size: 'small',
22160
+ variant: 'outlined'
22161
+ },
22162
+ style: {
22163
+ paddingLeft: 7,
22164
+ paddingRight: 7
22165
+ }
22166
+ }]
21963
22167
  });
21964
22168
  function isDeleteKeyboardEvent(keyboardEvent) {
21965
22169
  return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
@@ -21969,7 +22173,7 @@
21969
22173
  * Chips represent complex entities in small blocks, such as a contact.
21970
22174
  */
21971
22175
  var Chip = /*#__PURE__*/React__namespace.forwardRef(function Chip(inProps, ref) {
21972
- var props = useThemeProps$b({
22176
+ var props = useThemeProps$w({
21973
22177
  props: inProps,
21974
22178
  name: 'MuiChip'
21975
22179
  });
@@ -22457,7 +22661,7 @@
22457
22661
  */
22458
22662
  var InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(inProps, ref) {
22459
22663
  var _slotProps$input;
22460
- var props = useThemeProps$b({
22664
+ var props = useThemeProps$G({
22461
22665
  props: inProps,
22462
22666
  name: 'MuiInputBase'
22463
22667
  });
@@ -22997,7 +23201,7 @@
22997
23201
  var autocompleteClasses$1 = autocompleteClasses;
22998
23202
 
22999
23203
  var _styled, _ClearIcon, _ArrowDropDownIcon;
23000
- var useThemeProps$4 = createUseThemeProps();
23204
+ var useThemeProps$v = createUseThemeProps();
23001
23205
  var useUtilityClasses$1y = function useUtilityClasses(ownerState) {
23002
23206
  var classes = ownerState.classes,
23003
23207
  disablePortal = ownerState.disablePortal,
@@ -23316,7 +23520,7 @@
23316
23520
  }));
23317
23521
  var Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
23318
23522
  var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
23319
- var props = useThemeProps$4({
23523
+ var props = useThemeProps$v({
23320
23524
  props: inProps,
23321
23525
  name: 'MuiAutocomplete'
23322
23526
  });
@@ -24092,7 +24296,7 @@
24092
24296
  var avatarClasses = generateUtilityClasses$1('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);
24093
24297
  var avatarClasses$1 = avatarClasses;
24094
24298
 
24095
- var useThemeProps$3 = createUseThemeProps();
24299
+ var useThemeProps$u = createUseThemeProps();
24096
24300
  var useUtilityClasses$1x = function useUtilityClasses(ownerState) {
24097
24301
  var classes = ownerState.classes,
24098
24302
  variant = ownerState.variant,
@@ -24224,7 +24428,7 @@
24224
24428
  return loaded;
24225
24429
  }
24226
24430
  var Avatar = /*#__PURE__*/React__namespace.forwardRef(function Avatar(inProps, ref) {
24227
- var props = useThemeProps$3({
24431
+ var props = useThemeProps$u({
24228
24432
  props: inProps,
24229
24433
  name: 'MuiAvatar'
24230
24434
  });
@@ -24383,8 +24587,9 @@
24383
24587
 
24384
24588
  var SPACINGS$2 = {
24385
24589
  small: -16,
24386
- medium: null
24590
+ medium: -8
24387
24591
  };
24592
+ var useThemeProps$t = createUseThemeProps();
24388
24593
  var useUtilityClasses$1w = function useUtilityClasses(ownerState) {
24389
24594
  var classes = ownerState.classes;
24390
24595
  var slots = {
@@ -24400,21 +24605,22 @@
24400
24605
  return _extends(_defineProperty({}, "& .".concat(avatarGroupClasses$1.avatar), styles.avatar), styles.root);
24401
24606
  }
24402
24607
  })(function (_ref) {
24403
- var theme = _ref.theme,
24404
- ownerState = _ref.ownerState;
24405
- var marginValue = ownerState.spacing && SPACINGS$2[ownerState.spacing] !== undefined ? SPACINGS$2[ownerState.spacing] : -ownerState.spacing;
24406
- return _defineProperty(_defineProperty(_defineProperty({}, "& .".concat(avatarClasses$1.root), {
24608
+ var theme = _ref.theme;
24609
+ return _defineProperty({
24610
+ display: 'flex',
24611
+ flexDirection: 'row-reverse'
24612
+ }, "& .".concat(avatarClasses$1.root), {
24407
24613
  border: "2px solid ".concat((theme.vars || theme).palette.background["default"]),
24408
24614
  boxSizing: 'content-box',
24409
- marginLeft: marginValue != null ? marginValue : -8,
24615
+ marginLeft: 'var(--AvatarGroup-spacing, -8px)',
24410
24616
  '&:last-child': {
24411
24617
  marginLeft: 0
24412
24618
  }
24413
- }), "display", 'flex'), "flexDirection", 'row-reverse');
24619
+ });
24414
24620
  });
24415
24621
  var AvatarGroup = /*#__PURE__*/React__namespace.forwardRef(function AvatarGroup(inProps, ref) {
24416
24622
  var _slotProps$additional;
24417
- var props = useThemeProps$b({
24623
+ var props = useThemeProps$t({
24418
24624
  props: inProps,
24419
24625
  name: 'MuiAvatarGroup'
24420
24626
  });
@@ -24460,6 +24666,7 @@
24460
24666
  var extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
24461
24667
  var extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : "+".concat(extraAvatars);
24462
24668
  var additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
24669
+ var marginValue = ownerState.spacing && SPACINGS$2[ownerState.spacing] !== undefined ? SPACINGS$2[ownerState.spacing] : -ownerState.spacing || -8;
24463
24670
  return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
24464
24671
  as: component,
24465
24672
  ownerState: ownerState,
@@ -24470,6 +24677,9 @@
24470
24677
  variant: variant
24471
24678
  }, additionalAvatarSlotProps, {
24472
24679
  className: clsx(classes.avatar, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.className),
24680
+ style: _extends({
24681
+ '--AvatarRoot-spacing': marginValue ? "".concat(marginValue, "px") : undefined
24682
+ }, other.style),
24473
24683
  children: extraAvatarsElement
24474
24684
  })) : null, children.slice(0, maxAvatars).reverse().map(function (child) {
24475
24685
  return /*#__PURE__*/React__namespace.cloneElement(child, {
@@ -24545,6 +24755,10 @@
24545
24755
  * @default 'medium'
24546
24756
  */
24547
24757
  spacing: PropTypes.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.number]),
24758
+ /**
24759
+ * @ignore
24760
+ */
24761
+ style: PropTypes.object,
24548
24762
  /**
24549
24763
  * The system prop that allows defining system overrides as well as additional CSS styles.
24550
24764
  */
@@ -24762,6 +24976,7 @@
24762
24976
  var backdropClasses = generateUtilityClasses$1('MuiBackdrop', ['root', 'invisible']);
24763
24977
  var backdropClasses$1 = backdropClasses;
24764
24978
 
24979
+ var useThemeProps$s = createUseThemeProps();
24765
24980
  var useUtilityClasses$1v = function useUtilityClasses(ownerState) {
24766
24981
  var classes = ownerState.classes,
24767
24982
  invisible = ownerState.invisible;
@@ -24777,26 +24992,28 @@
24777
24992
  var ownerState = props.ownerState;
24778
24993
  return [styles.root, ownerState.invisible && styles.invisible];
24779
24994
  }
24780
- })(function (_ref) {
24781
- var ownerState = _ref.ownerState;
24782
- return _extends({
24783
- position: 'fixed',
24784
- display: 'flex',
24785
- alignItems: 'center',
24786
- justifyContent: 'center',
24787
- right: 0,
24788
- bottom: 0,
24789
- top: 0,
24790
- left: 0,
24791
- backgroundColor: 'rgba(0, 0, 0, 0.5)',
24792
- WebkitTapHighlightColor: 'transparent'
24793
- }, ownerState.invisible && {
24794
- backgroundColor: 'transparent'
24795
- });
24995
+ })({
24996
+ position: 'fixed',
24997
+ display: 'flex',
24998
+ alignItems: 'center',
24999
+ justifyContent: 'center',
25000
+ right: 0,
25001
+ bottom: 0,
25002
+ top: 0,
25003
+ left: 0,
25004
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
25005
+ WebkitTapHighlightColor: 'transparent',
25006
+ variants: [{
25007
+ props: {
25008
+ invisible: true
25009
+ },
25010
+ style: {
25011
+ backgroundColor: 'transparent'
25012
+ }
25013
+ }]
24796
25014
  });
24797
25015
  var Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inProps, ref) {
24798
- var _slotProps$root, _ref2, _slots$root;
24799
- var props = useThemeProps$b({
25016
+ var props = useThemeProps$s({
24800
25017
  props: inProps,
24801
25018
  name: 'MuiBackdrop'
24802
25019
  });
@@ -24804,37 +25021,59 @@
24804
25021
  className = props.className,
24805
25022
  _props$component = props.component,
24806
25023
  component = _props$component === void 0 ? 'div' : _props$component,
25024
+ _props$invisible = props.invisible,
25025
+ invisible = _props$invisible === void 0 ? false : _props$invisible,
25026
+ open = props.open,
24807
25027
  _props$components = props.components,
24808
25028
  components = _props$components === void 0 ? {} : _props$components,
24809
25029
  _props$componentsProp = props.componentsProps,
24810
25030
  componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
24811
- _props$invisible = props.invisible,
24812
- invisible = _props$invisible === void 0 ? false : _props$invisible,
24813
- open = props.open,
24814
25031
  _props$slotProps = props.slotProps,
24815
25032
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
24816
25033
  _props$slots = props.slots,
24817
25034
  slots = _props$slots === void 0 ? {} : _props$slots,
24818
- _props$TransitionComp = props.TransitionComponent,
24819
- TransitionComponent = _props$TransitionComp === void 0 ? Fade$1 : _props$TransitionComp,
25035
+ TransitionComponentProp = props.TransitionComponent,
24820
25036
  transitionDuration = props.transitionDuration,
24821
- other = _objectWithoutProperties(props, ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"]);
25037
+ other = _objectWithoutProperties(props, ["children", "className", "component", "invisible", "open", "components", "componentsProps", "slotProps", "slots", "TransitionComponent", "transitionDuration"]);
24822
25038
  var ownerState = _extends({}, props, {
24823
25039
  component: component,
24824
25040
  invisible: invisible
24825
25041
  });
24826
25042
  var classes = useUtilityClasses$1v(ownerState);
24827
- var rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
24828
- return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
25043
+ var backwardCompatibleSlots = _extends({
25044
+ transition: TransitionComponentProp,
25045
+ root: components.Root
25046
+ }, slots);
25047
+ var backwardCompatibleSlotProps = _extends({}, componentsProps, slotProps);
25048
+ var externalForwardedProps = {
25049
+ slots: backwardCompatibleSlots,
25050
+ slotProps: backwardCompatibleSlotProps
25051
+ };
25052
+ var _useSlot = useSlot('root', {
25053
+ elementType: BackdropRoot,
25054
+ externalForwardedProps: externalForwardedProps,
25055
+ className: clsx(classes.root, className),
25056
+ ownerState: ownerState
25057
+ }),
25058
+ _useSlot2 = _slicedToArray(_useSlot, 2),
25059
+ RootSlot = _useSlot2[0],
25060
+ rootProps = _useSlot2[1];
25061
+ var _useSlot3 = useSlot('transition', {
25062
+ elementType: Fade$1,
25063
+ externalForwardedProps: externalForwardedProps,
25064
+ ownerState: ownerState
25065
+ }),
25066
+ _useSlot4 = _slicedToArray(_useSlot3, 2),
25067
+ TransitionSlot = _useSlot4[0],
25068
+ transitionProps = _useSlot4[1];
25069
+ delete transitionProps.ownerState;
25070
+ return /*#__PURE__*/jsxRuntime_1(TransitionSlot, _extends({
24829
25071
  "in": open,
24830
25072
  timeout: transitionDuration
24831
- }, other, {
24832
- children: /*#__PURE__*/jsxRuntime_1(BackdropRoot, _extends({
25073
+ }, other, transitionProps, {
25074
+ children: /*#__PURE__*/jsxRuntime_1(RootSlot, _extends({
24833
25075
  "aria-hidden": true
24834
- }, rootSlotProps, {
24835
- as: (_ref2 = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref2 : component,
24836
- className: clsx(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
24837
- ownerState: _extends({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
25076
+ }, rootProps, {
24838
25077
  classes: classes,
24839
25078
  ref: ref,
24840
25079
  children: children
@@ -24897,25 +25136,20 @@
24897
25136
  */
24898
25137
  open: PropTypes.bool.isRequired,
24899
25138
  /**
24900
- * The extra props for the slot components.
24901
- * You can override the existing props or add new ones.
24902
- *
24903
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
24904
- *
25139
+ * The props used for each slot inside.
24905
25140
  * @default {}
24906
25141
  */
24907
25142
  slotProps: PropTypes.shape({
24908
- root: PropTypes.object
25143
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
25144
+ transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
24909
25145
  }),
24910
25146
  /**
24911
25147
  * The components used for each slot inside.
24912
- *
24913
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
24914
- *
24915
25148
  * @default {}
24916
25149
  */
24917
25150
  slots: PropTypes.shape({
24918
- root: PropTypes.elementType
25151
+ root: PropTypes.elementType,
25152
+ transition: PropTypes.elementType
24919
25153
  }),
24920
25154
  /**
24921
25155
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -24925,6 +25159,7 @@
24925
25159
  * The component used for the transition.
24926
25160
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
24927
25161
  * @default Fade
25162
+ * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
24928
25163
  */
24929
25164
  TransitionComponent: PropTypes.elementType,
24930
25165
  /**
@@ -24949,7 +25184,7 @@
24949
25184
 
24950
25185
  var RADIUS_STANDARD = 10;
24951
25186
  var RADIUS_DOT = 4;
24952
- var useThemeProps$2 = createUseThemeProps();
25187
+ var useThemeProps$r = createUseThemeProps();
24953
25188
  var useUtilityClasses$1u = function useUtilityClasses(ownerState) {
24954
25189
  var color = ownerState.color,
24955
25190
  anchorOrigin = ownerState.anchorOrigin,
@@ -25152,7 +25387,7 @@
25152
25387
  });
25153
25388
  var Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
25154
25389
  var _ref11, _slots$root, _ref12, _slots$badge, _slotProps$root, _slotProps$badge;
25155
- var props = useThemeProps$2({
25390
+ var props = useThemeProps$r({
25156
25391
  props: inProps,
25157
25392
  name: 'MuiBadge'
25158
25393
  });
@@ -25301,8 +25536,7 @@
25301
25536
  /**
25302
25537
  * The components used for each slot inside.
25303
25538
  *
25304
- * This prop is an alias for the `slots` prop.
25305
- * It's recommended to use the `slots` prop instead.
25539
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
25306
25540
  *
25307
25541
  * @default {}
25308
25542
  */
@@ -25314,8 +25548,7 @@
25314
25548
  * The extra props for the slot components.
25315
25549
  * You can override the existing props or add new ones.
25316
25550
  *
25317
- * This prop is an alias for the `slotProps` prop.
25318
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
25551
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
25319
25552
  *
25320
25553
  * @default {}
25321
25554
  */
@@ -25378,6 +25611,7 @@
25378
25611
  var bottomNavigationClasses = generateUtilityClasses$1('MuiBottomNavigation', ['root']);
25379
25612
  var bottomNavigationClasses$1 = bottomNavigationClasses;
25380
25613
 
25614
+ var useThemeProps$q = createUseThemeProps();
25381
25615
  var useUtilityClasses$1t = function useUtilityClasses(ownerState) {
25382
25616
  var classes = ownerState.classes;
25383
25617
  var slots = {
@@ -25401,7 +25635,7 @@
25401
25635
  };
25402
25636
  });
25403
25637
  var BottomNavigation = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigation(inProps, ref) {
25404
- var props = useThemeProps$b({
25638
+ var props = useThemeProps$q({
25405
25639
  props: inProps,
25406
25640
  name: 'MuiBottomNavigation'
25407
25641
  });
@@ -25496,6 +25730,7 @@
25496
25730
  var bottomNavigationActionClasses = generateUtilityClasses$1('MuiBottomNavigationAction', ['root', 'iconOnly', 'selected', 'label']);
25497
25731
  var bottomNavigationActionClasses$1 = bottomNavigationActionClasses;
25498
25732
 
25733
+ var useThemeProps$p = createUseThemeProps();
25499
25734
  var useUtilityClasses$1s = function useUtilityClasses(ownerState) {
25500
25735
  var classes = ownerState.classes,
25501
25736
  showLabel = ownerState.showLabel,
@@ -25514,9 +25749,8 @@
25514
25749
  return [styles.root, !ownerState.showLabel && !ownerState.selected && styles.iconOnly];
25515
25750
  }
25516
25751
  })(function (_ref) {
25517
- var theme = _ref.theme,
25518
- ownerState = _ref.ownerState;
25519
- return _extends({
25752
+ var theme = _ref.theme;
25753
+ return _defineProperty(_defineProperty({
25520
25754
  transition: theme.transitions.create(['color', 'padding-top'], {
25521
25755
  duration: theme.transitions.duration["short"]
25522
25756
  }),
@@ -25526,13 +25760,28 @@
25526
25760
  color: (theme.vars || theme).palette.text.secondary,
25527
25761
  flexDirection: 'column',
25528
25762
  flex: '1'
25529
- }, !ownerState.showLabel && !ownerState.selected && {
25530
- paddingTop: 14
25531
- }, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
25532
- paddingTop: 0
25533
- }, _defineProperty({}, "&.".concat(bottomNavigationActionClasses$1.selected), {
25763
+ }, "&.".concat(bottomNavigationActionClasses$1.selected), {
25534
25764
  color: (theme.vars || theme).palette.primary.main
25535
- }));
25765
+ }), "variants", [{
25766
+ props: function props(_ref2) {
25767
+ var showLabel = _ref2.showLabel,
25768
+ selected = _ref2.selected;
25769
+ return !showLabel && !selected;
25770
+ },
25771
+ style: {
25772
+ paddingTop: 14
25773
+ }
25774
+ }, {
25775
+ props: function props(_ref3) {
25776
+ var showLabel = _ref3.showLabel,
25777
+ selected = _ref3.selected,
25778
+ label = _ref3.label;
25779
+ return !showLabel && !selected && !label;
25780
+ },
25781
+ style: {
25782
+ paddingTop: 0
25783
+ }
25784
+ }]);
25536
25785
  });
25537
25786
  var BottomNavigationActionLabel = styled$1('span', {
25538
25787
  name: 'MuiBottomNavigationAction',
@@ -25540,24 +25789,30 @@
25540
25789
  overridesResolver: function overridesResolver(props, styles) {
25541
25790
  return styles.label;
25542
25791
  }
25543
- })(function (_ref2) {
25544
- var theme = _ref2.theme,
25545
- ownerState = _ref2.ownerState;
25546
- return _extends({
25792
+ })(function (_ref5) {
25793
+ var theme = _ref5.theme;
25794
+ return _defineProperty(_defineProperty({
25547
25795
  fontFamily: theme.typography.fontFamily,
25548
25796
  fontSize: theme.typography.pxToRem(12),
25549
25797
  opacity: 1,
25550
25798
  transition: 'font-size 0.2s, opacity 0.2s',
25551
25799
  transitionDelay: '0.1s'
25552
- }, !ownerState.showLabel && !ownerState.selected && {
25553
- opacity: 0,
25554
- transitionDelay: '0s'
25555
- }, _defineProperty({}, "&.".concat(bottomNavigationActionClasses$1.selected), {
25800
+ }, "&.".concat(bottomNavigationActionClasses$1.selected), {
25556
25801
  fontSize: theme.typography.pxToRem(14)
25557
- }));
25802
+ }), "variants", [{
25803
+ props: function props(_ref6) {
25804
+ var showLabel = _ref6.showLabel,
25805
+ selected = _ref6.selected;
25806
+ return !showLabel && !selected;
25807
+ },
25808
+ style: {
25809
+ opacity: 0,
25810
+ transitionDelay: '0s'
25811
+ }
25812
+ }]);
25558
25813
  });
25559
25814
  var BottomNavigationAction = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigationAction(inProps, ref) {
25560
- var props = useThemeProps$b({
25815
+ var props = useThemeProps$p({
25561
25816
  props: inProps,
25562
25817
  name: 'MuiBottomNavigationAction'
25563
25818
  });
@@ -25765,6 +26020,7 @@
25765
26020
  var breadcrumbsClasses = generateUtilityClasses$1('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);
25766
26021
  var breadcrumbsClasses$1 = breadcrumbsClasses;
25767
26022
 
26023
+ var useThemeProps$o = createUseThemeProps();
25768
26024
  var useUtilityClasses$1r = function useUtilityClasses(ownerState) {
25769
26025
  var classes = ownerState.classes;
25770
26026
  var slots = {
@@ -25824,7 +26080,7 @@
25824
26080
  }, []);
25825
26081
  }
25826
26082
  var Breadcrumbs = /*#__PURE__*/React__namespace.forwardRef(function Breadcrumbs(inProps, ref) {
25827
- var props = useThemeProps$b({
26083
+ var props = useThemeProps$o({
25828
26084
  props: inProps,
25829
26085
  name: 'MuiBreadcrumbs'
25830
26086
  });
@@ -26024,6 +26280,7 @@
26024
26280
  }
26025
26281
  var ButtonGroupButtonContext$1 = ButtonGroupButtonContext;
26026
26282
 
26283
+ var useThemeProps$n = createUseThemeProps();
26027
26284
  var useUtilityClasses$1q = function useUtilityClasses(ownerState) {
26028
26285
  var color = ownerState.color,
26029
26286
  disableElevation = ownerState.disableElevation,
@@ -26040,21 +26297,34 @@
26040
26297
  var composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
26041
26298
  return _extends({}, classes, composedClasses);
26042
26299
  };
26043
- var commonIconStyles = function commonIconStyles(ownerState) {
26044
- return _extends({}, ownerState.size === 'small' && {
26300
+ var commonIconStyles = [{
26301
+ props: {
26302
+ size: 'small'
26303
+ },
26304
+ style: {
26045
26305
  '& > *:nth-of-type(1)': {
26046
26306
  fontSize: 18
26047
26307
  }
26048
- }, ownerState.size === 'medium' && {
26308
+ }
26309
+ }, {
26310
+ props: {
26311
+ size: 'medium'
26312
+ },
26313
+ style: {
26049
26314
  '& > *:nth-of-type(1)': {
26050
26315
  fontSize: 20
26051
26316
  }
26052
- }, ownerState.size === 'large' && {
26317
+ }
26318
+ }, {
26319
+ props: {
26320
+ size: 'large'
26321
+ },
26322
+ style: {
26053
26323
  '& > *:nth-of-type(1)': {
26054
26324
  fontSize: 22
26055
26325
  }
26056
- });
26057
- };
26326
+ }
26327
+ }];
26058
26328
  var ButtonRoot = styled$1(ButtonBase$1, {
26059
26329
  shouldForwardProp: function shouldForwardProp(prop) {
26060
26330
  return rootShouldForwardProp$1(prop) || prop === 'classes';
@@ -26067,122 +26337,191 @@
26067
26337
  }
26068
26338
  })(function (_ref) {
26069
26339
  var _theme$palette$getCon, _theme$palette;
26070
- var theme = _ref.theme,
26071
- ownerState = _ref.ownerState;
26340
+ var theme = _ref.theme;
26072
26341
  var inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
26073
26342
  var inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
26074
26343
  return _extends({}, theme.typography.button, _defineProperty(_defineProperty({
26075
26344
  minWidth: 64,
26076
26345
  padding: '6px 16px',
26346
+ border: 0,
26077
26347
  borderRadius: (theme.vars || theme).shape.borderRadius,
26078
26348
  transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
26079
26349
  duration: theme.transitions.duration["short"]
26080
26350
  }),
26081
- '&:hover': _extends({
26082
- textDecoration: 'none',
26083
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
26084
- // Reset on touch devices, it doesn't add specificity
26085
- '@media (hover: none)': {
26086
- backgroundColor: 'transparent'
26087
- }
26088
- }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
26089
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26090
- // Reset on touch devices, it doesn't add specificity
26091
- '@media (hover: none)': {
26092
- backgroundColor: 'transparent'
26093
- }
26094
- }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
26095
- border: "1px solid ".concat((theme.vars || theme).palette[ownerState.color].main),
26096
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
26097
- // Reset on touch devices, it doesn't add specificity
26098
- '@media (hover: none)': {
26099
- backgroundColor: 'transparent'
26351
+ '&:hover': {
26352
+ textDecoration: 'none'
26353
+ }
26354
+ }, "&.".concat(buttonClasses$1.disabled), {
26355
+ color: (theme.vars || theme).palette.action.disabled
26356
+ }), "variants", [{
26357
+ props: {
26358
+ variant: 'contained'
26359
+ },
26360
+ style: _defineProperty(_defineProperty({
26361
+ color: "var(--variant-containedColor)",
26362
+ backgroundColor: "var(--variant-containedBg)",
26363
+ boxShadow: (theme.vars || theme).shadows[2],
26364
+ '&:hover': {
26365
+ boxShadow: (theme.vars || theme).shadows[4],
26366
+ // Reset on touch devices, it doesn't add specificity
26367
+ '@media (hover: none)': {
26368
+ boxShadow: (theme.vars || theme).shadows[2]
26369
+ }
26370
+ },
26371
+ '&:active': {
26372
+ boxShadow: (theme.vars || theme).shadows[8]
26373
+ }
26374
+ }, "&.".concat(buttonClasses$1.focusVisible), {
26375
+ boxShadow: (theme.vars || theme).shadows[6]
26376
+ }), "&.".concat(buttonClasses$1.disabled), {
26377
+ color: (theme.vars || theme).palette.action.disabled,
26378
+ boxShadow: (theme.vars || theme).shadows[0],
26379
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
26380
+ })
26381
+ }, {
26382
+ props: {
26383
+ variant: 'outlined'
26384
+ },
26385
+ style: _defineProperty({
26386
+ padding: '5px 15px',
26387
+ border: '1px solid currentColor',
26388
+ borderColor: "var(--variant-outlinedBorder, currentColor)",
26389
+ backgroundColor: "var(--variant-outlinedBg)",
26390
+ color: "var(--variant-outlinedColor)"
26391
+ }, "&.".concat(buttonClasses$1.disabled), {
26392
+ border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
26393
+ })
26394
+ }, {
26395
+ props: {
26396
+ variant: 'text'
26397
+ },
26398
+ style: {
26399
+ padding: '6px 8px',
26400
+ color: "var(--variant-textColor)",
26401
+ backgroundColor: "var(--variant-textBg)"
26402
+ }
26403
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref2) {
26404
+ var _ref3 = _slicedToArray(_ref2, 2),
26405
+ palette = _ref3[1];
26406
+ return palette.main && palette.dark && palette.contrastText;
26407
+ }).map(function (_ref4) {
26408
+ var _ref5 = _slicedToArray(_ref4, 1),
26409
+ color = _ref5[0];
26410
+ return {
26411
+ props: {
26412
+ color: color
26413
+ },
26414
+ style: {
26415
+ '--variant-textColor': (theme.vars || theme).palette[color].main,
26416
+ '--variant-outlinedColor': (theme.vars || theme).palette[color].main,
26417
+ '--variant-outlinedBorder': theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.5)") : alpha(theme.palette[color].main, 0.5),
26418
+ '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,
26419
+ '--variant-containedBg': (theme.vars || theme).palette[color].main,
26420
+ '@media (hover: hover)': {
26421
+ '&:hover': {
26422
+ '--variant-containedBg': (theme.vars || theme).palette[color].dark,
26423
+ '--variant-textBg': theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),
26424
+ '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,
26425
+ '--variant-outlinedBg': theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)
26426
+ }
26427
+ }
26100
26428
  }
26101
- }, ownerState.variant === 'contained' && {
26102
- backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
26103
- boxShadow: (theme.vars || theme).shadows[4],
26104
- // Reset on touch devices, it doesn't add specificity
26105
- '@media (hover: none)': {
26106
- boxShadow: (theme.vars || theme).shadows[2],
26107
- backgroundColor: (theme.vars || theme).palette.grey[300]
26429
+ };
26430
+ })), [{
26431
+ props: {
26432
+ color: 'inherit'
26433
+ },
26434
+ style: {
26435
+ '--variant-containedColor': theme.vars ?
26436
+ // this is safe because grey does not change between default light/dark mode
26437
+ theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, inheritContainedBackgroundColor),
26438
+ '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
26439
+ '@media (hover: hover)': {
26440
+ '&:hover': {
26441
+ '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
26442
+ '--variant-textBg': theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
26443
+ '--variant-outlinedBg': theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity)
26444
+ }
26108
26445
  }
26109
- }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
26110
- backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
26111
- // Reset on touch devices, it doesn't add specificity
26112
- '@media (hover: none)': {
26113
- backgroundColor: (theme.vars || theme).palette[ownerState.color].main
26446
+ }
26447
+ }, {
26448
+ props: {
26449
+ size: 'small',
26450
+ variant: 'text'
26451
+ },
26452
+ style: {
26453
+ padding: '4px 5px',
26454
+ fontSize: theme.typography.pxToRem(13)
26455
+ }
26456
+ }, {
26457
+ props: {
26458
+ size: 'large',
26459
+ variant: 'text'
26460
+ },
26461
+ style: {
26462
+ padding: '8px 11px',
26463
+ fontSize: theme.typography.pxToRem(15)
26464
+ }
26465
+ }, {
26466
+ props: {
26467
+ size: 'small',
26468
+ variant: 'outlined'
26469
+ },
26470
+ style: {
26471
+ padding: '3px 9px',
26472
+ fontSize: theme.typography.pxToRem(13)
26473
+ }
26474
+ }, {
26475
+ props: {
26476
+ size: 'large',
26477
+ variant: 'outlined'
26478
+ },
26479
+ style: {
26480
+ padding: '7px 21px',
26481
+ fontSize: theme.typography.pxToRem(15)
26482
+ }
26483
+ }, {
26484
+ props: {
26485
+ size: 'small',
26486
+ variant: 'contained'
26487
+ },
26488
+ style: {
26489
+ padding: '4px 10px',
26490
+ fontSize: theme.typography.pxToRem(13)
26491
+ }
26492
+ }, {
26493
+ props: {
26494
+ size: 'large',
26495
+ variant: 'contained'
26496
+ },
26497
+ style: {
26498
+ padding: '8px 22px',
26499
+ fontSize: theme.typography.pxToRem(15)
26500
+ }
26501
+ }, {
26502
+ props: {
26503
+ disableElevation: true
26504
+ },
26505
+ style: _defineProperty(_defineProperty(_defineProperty({
26506
+ boxShadow: 'none',
26507
+ '&:hover': {
26508
+ boxShadow: 'none'
26114
26509
  }
26115
- }),
26116
- '&:active': _extends({}, ownerState.variant === 'contained' && {
26117
- boxShadow: (theme.vars || theme).shadows[8]
26118
- })
26119
- }, "&.".concat(buttonClasses$1.focusVisible), _extends({}, ownerState.variant === 'contained' && {
26120
- boxShadow: (theme.vars || theme).shadows[6]
26121
- })), "&.".concat(buttonClasses$1.disabled), _extends({
26122
- color: (theme.vars || theme).palette.action.disabled
26123
- }, ownerState.variant === 'outlined' && {
26124
- border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
26125
- }, ownerState.variant === 'contained' && {
26126
- color: (theme.vars || theme).palette.action.disabled,
26127
- boxShadow: (theme.vars || theme).shadows[0],
26128
- backgroundColor: (theme.vars || theme).palette.action.disabledBackground
26129
- })), ownerState.variant === 'text' && {
26130
- padding: '6px 8px'
26131
- }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
26132
- color: (theme.vars || theme).palette[ownerState.color].main
26133
- }, ownerState.variant === 'outlined' && {
26134
- padding: '5px 15px',
26135
- border: '1px solid currentColor'
26136
- }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
26137
- color: (theme.vars || theme).palette[ownerState.color].main,
26138
- border: theme.vars ? "1px solid rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : "1px solid ".concat(alpha(theme.palette[ownerState.color].main, 0.5))
26139
- }, ownerState.variant === 'contained' && {
26140
- color: theme.vars ?
26141
- // this is safe because grey does not change between default light/dark mode
26142
- 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]),
26143
- backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
26144
- boxShadow: (theme.vars || theme).shadows[2]
26145
- }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
26146
- color: (theme.vars || theme).palette[ownerState.color].contrastText,
26147
- backgroundColor: (theme.vars || theme).palette[ownerState.color].main
26148
- }, ownerState.color === 'inherit' && {
26149
- color: 'inherit',
26150
- borderColor: 'currentColor'
26151
- }, ownerState.size === 'small' && ownerState.variant === 'text' && {
26152
- padding: '4px 5px',
26153
- fontSize: theme.typography.pxToRem(13)
26154
- }, ownerState.size === 'large' && ownerState.variant === 'text' && {
26155
- padding: '8px 11px',
26156
- fontSize: theme.typography.pxToRem(15)
26157
- }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
26158
- padding: '3px 9px',
26159
- fontSize: theme.typography.pxToRem(13)
26160
- }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
26161
- padding: '7px 21px',
26162
- fontSize: theme.typography.pxToRem(15)
26163
- }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
26164
- padding: '4px 10px',
26165
- fontSize: theme.typography.pxToRem(13)
26166
- }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
26167
- padding: '8px 22px',
26168
- fontSize: theme.typography.pxToRem(15)
26169
- }, ownerState.fullWidth && {
26170
- width: '100%'
26171
- });
26172
- }, function (_ref2) {
26173
- var ownerState = _ref2.ownerState;
26174
- return ownerState.disableElevation && _defineProperty(_defineProperty(_defineProperty({
26175
- boxShadow: 'none',
26176
- '&:hover': {
26510
+ }, "&.".concat(buttonClasses$1.focusVisible), {
26511
+ boxShadow: 'none'
26512
+ }), '&:active', {
26177
26513
  boxShadow: 'none'
26514
+ }), "&.".concat(buttonClasses$1.disabled), {
26515
+ boxShadow: 'none'
26516
+ })
26517
+ }, {
26518
+ props: {
26519
+ fullWidth: true
26520
+ },
26521
+ style: {
26522
+ width: '100%'
26178
26523
  }
26179
- }, "&.".concat(buttonClasses$1.focusVisible), {
26180
- boxShadow: 'none'
26181
- }), '&:active', {
26182
- boxShadow: 'none'
26183
- }), "&.".concat(buttonClasses$1.disabled), {
26184
- boxShadow: 'none'
26185
- });
26524
+ }])));
26186
26525
  });
26187
26526
  var ButtonStartIcon = styled$1('span', {
26188
26527
  name: 'MuiButton',
@@ -26191,15 +26530,20 @@
26191
26530
  var ownerState = props.ownerState;
26192
26531
  return [styles.startIcon, styles["iconSize".concat(capitalize(ownerState.size))]];
26193
26532
  }
26194
- })(function (_ref4) {
26195
- var ownerState = _ref4.ownerState;
26196
- return _extends({
26533
+ })(function () {
26534
+ return {
26197
26535
  display: 'inherit',
26198
26536
  marginRight: 8,
26199
- marginLeft: -4
26200
- }, ownerState.size === 'small' && {
26201
- marginLeft: -2
26202
- }, commonIconStyles(ownerState));
26537
+ marginLeft: -4,
26538
+ variants: [{
26539
+ props: {
26540
+ size: 'small'
26541
+ },
26542
+ style: {
26543
+ marginLeft: -2
26544
+ }
26545
+ }].concat(commonIconStyles)
26546
+ };
26203
26547
  });
26204
26548
  var ButtonEndIcon = styled$1('span', {
26205
26549
  name: 'MuiButton',
@@ -26208,22 +26552,27 @@
26208
26552
  var ownerState = props.ownerState;
26209
26553
  return [styles.endIcon, styles["iconSize".concat(capitalize(ownerState.size))]];
26210
26554
  }
26211
- })(function (_ref5) {
26212
- var ownerState = _ref5.ownerState;
26213
- return _extends({
26555
+ })(function () {
26556
+ return {
26214
26557
  display: 'inherit',
26215
26558
  marginRight: -4,
26216
- marginLeft: 8
26217
- }, ownerState.size === 'small' && {
26218
- marginRight: -2
26219
- }, commonIconStyles(ownerState));
26559
+ marginLeft: 8,
26560
+ variants: [{
26561
+ props: {
26562
+ size: 'small'
26563
+ },
26564
+ style: {
26565
+ marginRight: -2
26566
+ }
26567
+ }].concat(commonIconStyles)
26568
+ };
26220
26569
  });
26221
26570
  var Button = /*#__PURE__*/React__namespace.forwardRef(function Button(inProps, ref) {
26222
26571
  // props priority: `inProps` > `contextProps` > `themeDefaultProps`
26223
26572
  var contextProps = React__namespace.useContext(ButtonGroupContext$1);
26224
26573
  var buttonGroupButtonContextPositionClassName = React__namespace.useContext(ButtonGroupButtonContext$1);
26225
26574
  var resolvedProps = resolveProps(contextProps, inProps);
26226
- var props = useThemeProps$b({
26575
+ var props = useThemeProps$n({
26227
26576
  props: resolvedProps,
26228
26577
  name: 'MuiButton'
26229
26578
  });
@@ -26386,9 +26735,10 @@
26386
26735
  function getButtonGroupUtilityClass(slot) {
26387
26736
  return generateUtilityClass$1('MuiButtonGroup', slot);
26388
26737
  }
26389
- var buttonGroupClasses = generateUtilityClasses$1('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
26738
+ var buttonGroupClasses = generateUtilityClasses$1('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
26390
26739
  var buttonGroupClasses$1 = buttonGroupClasses;
26391
26740
 
26741
+ var useThemeProps$m = createUseThemeProps();
26392
26742
  var overridesResolver$6 = function overridesResolver(props, styles) {
26393
26743
  var ownerState = props.ownerState;
26394
26744
  return [_defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles.grouped), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.orientation))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.variant))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.variant)).concat(capitalize(ownerState.orientation))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), styles["grouped".concat(capitalize(ownerState.variant)).concat(capitalize(ownerState.color))]), _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton), styles.firstButton), _defineProperty({}, "& .".concat(buttonGroupClasses$1.lastButton), styles.lastButton), _defineProperty({}, "& .".concat(buttonGroupClasses$1.middleButton), styles.middleButton), styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
@@ -26402,7 +26752,7 @@
26402
26752
  orientation = ownerState.orientation,
26403
26753
  variant = ownerState.variant;
26404
26754
  var slots = {
26405
- root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],
26755
+ root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', "color".concat(capitalize(color))],
26406
26756
  grouped: ['grouped', "grouped".concat(capitalize(orientation)), "grouped".concat(capitalize(variant)), "grouped".concat(capitalize(variant)).concat(capitalize(orientation)), "grouped".concat(capitalize(variant)).concat(capitalize(color)), disabled && 'disabled'],
26407
26757
  firstButton: ['firstButton'],
26408
26758
  lastButton: ['lastButton'],
@@ -26415,76 +26765,169 @@
26415
26765
  slot: 'Root',
26416
26766
  overridesResolver: overridesResolver$6
26417
26767
  })(function (_ref9) {
26418
- var theme = _ref9.theme,
26419
- ownerState = _ref9.ownerState;
26420
- return _extends({
26768
+ var theme = _ref9.theme;
26769
+ return _defineProperty({
26421
26770
  display: 'inline-flex',
26422
- borderRadius: (theme.vars || theme).shape.borderRadius
26423
- }, ownerState.variant === 'contained' && {
26424
- boxShadow: (theme.vars || theme).shadows[2]
26425
- }, ownerState.disableElevation && {
26426
- boxShadow: 'none'
26427
- }, ownerState.fullWidth && {
26428
- width: '100%'
26429
- }, ownerState.orientation === 'vertical' && {
26430
- flexDirection: 'column'
26431
- }, _defineProperty(_defineProperty(_defineProperty({}, "& .".concat(buttonGroupClasses$1.grouped), _extends({
26771
+ borderRadius: (theme.vars || theme).shape.borderRadius,
26772
+ variants: [{
26773
+ props: {
26774
+ variant: 'contained'
26775
+ },
26776
+ style: {
26777
+ boxShadow: (theme.vars || theme).shadows[2]
26778
+ }
26779
+ }, {
26780
+ props: {
26781
+ disableElevation: true
26782
+ },
26783
+ style: {
26784
+ boxShadow: 'none'
26785
+ }
26786
+ }, {
26787
+ props: {
26788
+ fullWidth: true
26789
+ },
26790
+ style: {
26791
+ width: '100%'
26792
+ }
26793
+ }, {
26794
+ props: {
26795
+ orientation: 'vertical'
26796
+ },
26797
+ style: _defineProperty(_defineProperty({
26798
+ flexDirection: 'column'
26799
+ }, "& .".concat(buttonGroupClasses$1.lastButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26800
+ borderTopRightRadius: 0,
26801
+ borderTopLeftRadius: 0
26802
+ }), "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26803
+ borderBottomRightRadius: 0,
26804
+ borderBottomLeftRadius: 0
26805
+ })
26806
+ }, {
26807
+ props: {
26808
+ orientation: 'horizontal'
26809
+ },
26810
+ style: _defineProperty(_defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26811
+ borderTopRightRadius: 0,
26812
+ borderBottomRightRadius: 0
26813
+ }), "& .".concat(buttonGroupClasses$1.lastButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26814
+ borderTopLeftRadius: 0,
26815
+ borderBottomLeftRadius: 0
26816
+ })
26817
+ }, {
26818
+ props: {
26819
+ variant: 'text',
26820
+ orientation: 'horizontal'
26821
+ },
26822
+ style: _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), _defineProperty({
26823
+ borderRight: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
26824
+ }, "&.".concat(buttonGroupClasses$1.disabled), {
26825
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26826
+ }))
26827
+ }, {
26828
+ props: {
26829
+ variant: 'text',
26830
+ orientation: 'vertical'
26831
+ },
26832
+ style: _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), _defineProperty({
26833
+ borderBottom: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
26834
+ }, "&.".concat(buttonGroupClasses$1.disabled), {
26835
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26836
+ }))
26837
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref10) {
26838
+ var _ref11 = _slicedToArray(_ref10, 2),
26839
+ value = _ref11[1];
26840
+ return value.main;
26841
+ }).flatMap(function (_ref12) {
26842
+ var _ref13 = _slicedToArray(_ref12, 1),
26843
+ color = _ref13[0];
26844
+ return [{
26845
+ props: {
26846
+ variant: 'text',
26847
+ color: color
26848
+ },
26849
+ style: _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26850
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.5)") : alpha(theme.palette[color].main, 0.5)
26851
+ })
26852
+ }];
26853
+ })), [{
26854
+ props: {
26855
+ variant: 'outlined',
26856
+ orientation: 'horizontal'
26857
+ },
26858
+ style: _defineProperty(_defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26859
+ borderRightColor: 'transparent',
26860
+ '&:hover': {
26861
+ borderRightColor: 'currentColor'
26862
+ }
26863
+ }), "& .".concat(buttonGroupClasses$1.lastButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26864
+ marginLeft: -1
26865
+ })
26866
+ }, {
26867
+ props: {
26868
+ variant: 'outlined',
26869
+ orientation: 'vertical'
26870
+ },
26871
+ style: _defineProperty(_defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26872
+ borderBottomColor: 'transparent',
26873
+ '&:hover': {
26874
+ borderBottomColor: 'currentColor'
26875
+ }
26876
+ }), "& .".concat(buttonGroupClasses$1.lastButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26877
+ marginTop: -1
26878
+ })
26879
+ }, {
26880
+ props: {
26881
+ variant: 'contained',
26882
+ orientation: 'horizontal'
26883
+ },
26884
+ style: _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), _defineProperty({
26885
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.grey[400])
26886
+ }, "&.".concat(buttonGroupClasses$1.disabled), {
26887
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26888
+ }))
26889
+ }, {
26890
+ props: {
26891
+ variant: 'contained',
26892
+ orientation: 'vertical'
26893
+ },
26894
+ style: _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), _defineProperty({
26895
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.grey[400])
26896
+ }, "&.".concat(buttonGroupClasses$1.disabled), {
26897
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26898
+ }))
26899
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref14) {
26900
+ var _ref15 = _slicedToArray(_ref14, 2),
26901
+ value = _ref15[1];
26902
+ return value.dark;
26903
+ }).map(function (_ref16) {
26904
+ var _ref17 = _slicedToArray(_ref16, 1),
26905
+ color = _ref17[0];
26906
+ return {
26907
+ props: {
26908
+ variant: 'contained',
26909
+ color: color
26910
+ },
26911
+ style: _defineProperty({}, "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), {
26912
+ borderColor: (theme.vars || theme).palette[color].dark
26913
+ })
26914
+ };
26915
+ })))
26916
+ }, "& .".concat(buttonGroupClasses$1.grouped), {
26432
26917
  minWidth: 40,
26433
- '&:hover': _extends({}, ownerState.variant === 'contained' && {
26434
- boxShadow: 'none'
26435
- })
26436
- }, ownerState.variant === 'contained' && {
26437
- boxShadow: 'none'
26438
- })), "& .".concat(buttonGroupClasses$1.firstButton, ",& .").concat(buttonGroupClasses$1.middleButton), _extends({}, ownerState.orientation === 'horizontal' && {
26439
- borderTopRightRadius: 0,
26440
- borderBottomRightRadius: 0
26441
- }, ownerState.orientation === 'vertical' && {
26442
- borderBottomRightRadius: 0,
26443
- borderBottomLeftRadius: 0
26444
- }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && _defineProperty({
26445
- borderRight: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
26446
- }, "&.".concat(buttonGroupClasses$1.disabled), {
26447
- borderRight: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26448
- }), ownerState.variant === 'text' && ownerState.orientation === 'vertical' && _defineProperty({
26449
- borderBottom: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
26450
- }, "&.".concat(buttonGroupClasses$1.disabled), {
26451
- borderBottom: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26452
- }), ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
26453
- borderColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : alpha(theme.palette[ownerState.color].main, 0.5)
26454
- }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
26455
- borderRightColor: 'transparent'
26456
- }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
26457
- borderBottomColor: 'transparent'
26458
- }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && _defineProperty({
26459
- borderRight: "1px solid ".concat((theme.vars || theme).palette.grey[400])
26460
- }, "&.".concat(buttonGroupClasses$1.disabled), {
26461
- borderRight: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26462
- }), ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && _defineProperty({
26463
- borderBottom: "1px solid ".concat((theme.vars || theme).palette.grey[400])
26464
- }, "&.".concat(buttonGroupClasses$1.disabled), {
26465
- borderBottom: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
26466
- }), ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
26467
- borderColor: (theme.vars || theme).palette[ownerState.color].dark
26468
- }, {
26469
- '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
26470
- borderRightColor: 'currentColor'
26471
- }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
26472
- borderBottomColor: 'currentColor'
26473
- })
26474
- })), "& .".concat(buttonGroupClasses$1.lastButton, ",& .").concat(buttonGroupClasses$1.middleButton), _extends({}, ownerState.orientation === 'horizontal' && {
26475
- borderTopLeftRadius: 0,
26476
- borderBottomLeftRadius: 0
26477
- }, ownerState.orientation === 'vertical' && {
26478
- borderTopRightRadius: 0,
26479
- borderTopLeftRadius: 0
26480
- }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
26481
- marginLeft: -1
26482
- }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
26483
- marginTop: -1
26484
- })));
26918
+ boxShadow: 'none',
26919
+ props: {
26920
+ variant: 'contained'
26921
+ },
26922
+ style: {
26923
+ '&:hover': {
26924
+ boxShadow: 'none'
26925
+ }
26926
+ }
26927
+ });
26485
26928
  });
26486
26929
  var ButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ButtonGroup(inProps, ref) {
26487
- var props = useThemeProps$b({
26930
+ var props = useThemeProps$m({
26488
26931
  props: inProps,
26489
26932
  name: 'MuiButtonGroup'
26490
26933
  });
@@ -26654,6 +27097,7 @@
26654
27097
  var cardClasses = generateUtilityClasses$1('MuiCard', ['root']);
26655
27098
  var cardClasses$1 = cardClasses;
26656
27099
 
27100
+ var useThemeProps$l = createUseThemeProps();
26657
27101
  var useUtilityClasses$1o = function useUtilityClasses(ownerState) {
26658
27102
  var classes = ownerState.classes;
26659
27103
  var slots = {
@@ -26667,13 +27111,11 @@
26667
27111
  overridesResolver: function overridesResolver(props, styles) {
26668
27112
  return styles.root;
26669
27113
  }
26670
- })(function () {
26671
- return {
26672
- overflow: 'hidden'
26673
- };
27114
+ })({
27115
+ overflow: 'hidden'
26674
27116
  });
26675
27117
  var Card = /*#__PURE__*/React__namespace.forwardRef(function Card(inProps, ref) {
26676
- var props = useThemeProps$b({
27118
+ var props = useThemeProps$l({
26677
27119
  props: inProps,
26678
27120
  name: 'MuiCard'
26679
27121
  });
@@ -26732,6 +27174,7 @@
26732
27174
  var cardActionAreaClasses = generateUtilityClasses$1('MuiCardActionArea', ['root', 'focusVisible', 'focusHighlight']);
26733
27175
  var cardActionAreaClasses$1 = cardActionAreaClasses;
26734
27176
 
27177
+ var useThemeProps$k = createUseThemeProps();
26735
27178
  var useUtilityClasses$1n = function useUtilityClasses(ownerState) {
26736
27179
  var classes = ownerState.classes;
26737
27180
  var slots = {
@@ -26788,7 +27231,7 @@
26788
27231
  };
26789
27232
  });
26790
27233
  var CardActionArea = /*#__PURE__*/React__namespace.forwardRef(function CardActionArea(inProps, ref) {
26791
- var props = useThemeProps$b({
27234
+ var props = useThemeProps$k({
26792
27235
  props: inProps,
26793
27236
  name: 'MuiCardActionArea'
26794
27237
  });
@@ -26844,6 +27287,7 @@
26844
27287
  var cardActionsClasses = generateUtilityClasses$1('MuiCardActions', ['root', 'spacing']);
26845
27288
  var cardActionsClasses$1 = cardActionsClasses;
26846
27289
 
27290
+ var useThemeProps$j = createUseThemeProps();
26847
27291
  var useUtilityClasses$1m = function useUtilityClasses(ownerState) {
26848
27292
  var classes = ownerState.classes,
26849
27293
  disableSpacing = ownerState.disableSpacing;
@@ -26859,20 +27303,23 @@
26859
27303
  var ownerState = props.ownerState;
26860
27304
  return [styles.root, !ownerState.disableSpacing && styles.spacing];
26861
27305
  }
26862
- })(function (_ref) {
26863
- var ownerState = _ref.ownerState;
26864
- return _extends({
26865
- display: 'flex',
26866
- alignItems: 'center',
26867
- padding: 8
26868
- }, !ownerState.disableSpacing && {
26869
- '& > :not(style) ~ :not(style)': {
26870
- marginLeft: 8
27306
+ })({
27307
+ display: 'flex',
27308
+ alignItems: 'center',
27309
+ padding: 8,
27310
+ variants: [{
27311
+ props: {
27312
+ disableSpacing: false
27313
+ },
27314
+ style: {
27315
+ '& > :not(style) ~ :not(style)': {
27316
+ marginLeft: 8
27317
+ }
26871
27318
  }
26872
- });
27319
+ }]
26873
27320
  });
26874
27321
  var CardActions = /*#__PURE__*/React__namespace.forwardRef(function CardActions(inProps, ref) {
26875
- var props = useThemeProps$b({
27322
+ var props = useThemeProps$j({
26876
27323
  props: inProps,
26877
27324
  name: 'MuiCardActions'
26878
27325
  });
@@ -26925,6 +27372,7 @@
26925
27372
  var cardContentClasses = generateUtilityClasses$1('MuiCardContent', ['root']);
26926
27373
  var cardContentClasses$1 = cardContentClasses;
26927
27374
 
27375
+ var useThemeProps$i = createUseThemeProps();
26928
27376
  var useUtilityClasses$1l = function useUtilityClasses(ownerState) {
26929
27377
  var classes = ownerState.classes;
26930
27378
  var slots = {
@@ -26938,16 +27386,14 @@
26938
27386
  overridesResolver: function overridesResolver(props, styles) {
26939
27387
  return styles.root;
26940
27388
  }
26941
- })(function () {
26942
- return {
26943
- padding: 16,
26944
- '&:last-child': {
26945
- paddingBottom: 24
26946
- }
26947
- };
27389
+ })({
27390
+ padding: 16,
27391
+ '&:last-child': {
27392
+ paddingBottom: 24
27393
+ }
26948
27394
  });
26949
27395
  var CardContent = /*#__PURE__*/React__namespace.forwardRef(function CardContent(inProps, ref) {
26950
- var props = useThemeProps$b({
27396
+ var props = useThemeProps$i({
26951
27397
  props: inProps,
26952
27398
  name: 'MuiCardContent'
26953
27399
  });
@@ -27001,6 +27447,7 @@
27001
27447
  var cardHeaderClasses = generateUtilityClasses$1('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);
27002
27448
  var cardHeaderClasses$1 = cardHeaderClasses;
27003
27449
 
27450
+ var useThemeProps$h = createUseThemeProps();
27004
27451
  var useUtilityClasses$1k = function useUtilityClasses(ownerState) {
27005
27452
  var classes = ownerState.classes;
27006
27453
  var slots = {
@@ -27058,7 +27505,7 @@
27058
27505
  flex: '1 1 auto'
27059
27506
  });
27060
27507
  var CardHeader = /*#__PURE__*/React__namespace.forwardRef(function CardHeader(inProps, ref) {
27061
- var props = useThemeProps$b({
27508
+ var props = useThemeProps$h({
27062
27509
  props: inProps,
27063
27510
  name: 'MuiCardHeader'
27064
27511
  });
@@ -27192,6 +27639,7 @@
27192
27639
  var cardMediaClasses = generateUtilityClasses$1('MuiCardMedia', ['root', 'media', 'img']);
27193
27640
  var cardMediaClasses$1 = cardMediaClasses;
27194
27641
 
27642
+ var useThemeProps$g = createUseThemeProps();
27195
27643
  var useUtilityClasses$1j = function useUtilityClasses(ownerState) {
27196
27644
  var classes = ownerState.classes,
27197
27645
  isMediaComponent = ownerState.isMediaComponent,
@@ -27210,24 +27658,32 @@
27210
27658
  isImageComponent = ownerState.isImageComponent;
27211
27659
  return [styles.root, isMediaComponent && styles.media, isImageComponent && styles.img];
27212
27660
  }
27213
- })(function (_ref) {
27214
- var ownerState = _ref.ownerState;
27215
- return _extends({
27216
- display: 'block',
27217
- backgroundSize: 'cover',
27218
- backgroundRepeat: 'no-repeat',
27219
- backgroundPosition: 'center'
27220
- }, ownerState.isMediaComponent && {
27221
- width: '100%'
27222
- }, ownerState.isImageComponent && {
27223
- // ⚠️ object-fit is not supported by IE11.
27224
- objectFit: 'cover'
27225
- });
27661
+ })({
27662
+ display: 'block',
27663
+ backgroundSize: 'cover',
27664
+ backgroundRepeat: 'no-repeat',
27665
+ backgroundPosition: 'center',
27666
+ variants: [{
27667
+ props: {
27668
+ isMediaComponent: true
27669
+ },
27670
+ style: {
27671
+ width: '100%'
27672
+ }
27673
+ }, {
27674
+ props: {
27675
+ isImageComponent: true
27676
+ },
27677
+ style: {
27678
+ // ⚠️ object-fit is not supported by IE11.
27679
+ objectFit: 'cover'
27680
+ }
27681
+ }]
27226
27682
  });
27227
27683
  var MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];
27228
27684
  var IMAGE_COMPONENTS = ['picture', 'img'];
27229
27685
  var CardMedia = /*#__PURE__*/React__namespace.forwardRef(function CardMedia(inProps, ref) {
27230
- var props = useThemeProps$b({
27686
+ var props = useThemeProps$g({
27231
27687
  props: inProps,
27232
27688
  name: 'MuiCardMedia'
27233
27689
  });
@@ -27638,7 +28094,7 @@
27638
28094
  var defaultIndeterminateIcon = /*#__PURE__*/jsxRuntime_1(IndeterminateCheckBoxIcon, {});
27639
28095
  var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function Checkbox(inProps, ref) {
27640
28096
  var _icon$props$fontSize, _indeterminateIcon$pr;
27641
- var props = useThemeProps$b({
28097
+ var props = useThemeProps$G({
27642
28098
  props: inProps,
27643
28099
  name: 'MuiCheckbox'
27644
28100
  });
@@ -27870,7 +28326,7 @@
27870
28326
  * attribute to `true` on that region until it has finished loading.
27871
28327
  */
27872
28328
  var CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function CircularProgress(inProps, ref) {
27873
- var props = useThemeProps$b({
28329
+ var props = useThemeProps$G({
27874
28330
  props: inProps,
27875
28331
  name: 'MuiCircularProgress'
27876
28332
  });
@@ -28011,7 +28467,7 @@
28011
28467
  }
28012
28468
  }),
28013
28469
  useThemeProps: function useThemeProps(inProps) {
28014
- return useThemeProps$b({
28470
+ return useThemeProps$G({
28015
28471
  props: inProps,
28016
28472
  name: 'MuiContainer'
28017
28473
  });
@@ -28134,7 +28590,7 @@
28134
28590
  return defaultStyles;
28135
28591
  };
28136
28592
  function CssBaseline(inProps) {
28137
- var props = useThemeProps$b({
28593
+ var props = useThemeProps$G({
28138
28594
  props: inProps,
28139
28595
  name: 'MuiCssBaseline'
28140
28596
  });
@@ -28207,6 +28663,7 @@
28207
28663
  var modalClasses = generateUtilityClasses$1('MuiModal', ['root', 'hidden', 'backdrop']);
28208
28664
  var modalClasses$1 = modalClasses;
28209
28665
 
28666
+ var useThemeProps$f = createUseThemeProps();
28210
28667
  var useUtilityClasses$1f = function useUtilityClasses(ownerState) {
28211
28668
  var open = ownerState.open,
28212
28669
  exited = ownerState.exited,
@@ -28225,18 +28682,24 @@
28225
28682
  return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];
28226
28683
  }
28227
28684
  })(function (_ref) {
28228
- var theme = _ref.theme,
28229
- ownerState = _ref.ownerState;
28230
- return _extends({
28685
+ var theme = _ref.theme;
28686
+ return {
28231
28687
  position: 'fixed',
28232
28688
  zIndex: (theme.vars || theme).zIndex.modal,
28233
28689
  right: 0,
28234
28690
  bottom: 0,
28235
28691
  top: 0,
28236
- left: 0
28237
- }, !ownerState.open && ownerState.exited && {
28238
- visibility: 'hidden'
28239
- });
28692
+ left: 0,
28693
+ variants: [{
28694
+ props: function props(_ref2) {
28695
+ var ownerState = _ref2.ownerState;
28696
+ return !ownerState.open && ownerState.exited;
28697
+ },
28698
+ style: {
28699
+ visibility: 'hidden'
28700
+ }
28701
+ }]
28702
+ };
28240
28703
  });
28241
28704
  var ModalBackdrop = styled$1(Backdrop$1, {
28242
28705
  name: 'MuiModal',
@@ -28262,8 +28725,8 @@
28262
28725
  * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
28263
28726
  */
28264
28727
  var Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, ref) {
28265
- var _ref2, _slots$root, _ref3, _slots$backdrop, _slotProps$root, _slotProps$backdrop;
28266
- var props = useThemeProps$b({
28728
+ var _ref3, _slots$root, _ref4, _slots$backdrop, _slotProps$root, _slotProps$backdrop;
28729
+ var props = useThemeProps$f({
28267
28730
  name: 'MuiModal',
28268
28731
  props: inProps
28269
28732
  });
@@ -28344,8 +28807,8 @@
28344
28807
  childProps.onEnter = onEnter;
28345
28808
  childProps.onExited = onExited;
28346
28809
  }
28347
- var RootSlot = (_ref2 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref2 : ModalRoot;
28348
- var BackdropSlot = (_ref3 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref3 : BackdropComponent;
28810
+ var RootSlot = (_ref3 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref3 : ModalRoot;
28811
+ var BackdropSlot = (_ref4 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref4 : BackdropComponent;
28349
28812
  var rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
28350
28813
  var backdropSlotProps = (_slotProps$backdrop = slotProps == null ? void 0 : slotProps.backdrop) != null ? _slotProps$backdrop : componentsProps.backdrop;
28351
28814
  var rootProps = useSlotProps({
@@ -28717,7 +29180,7 @@
28717
29180
  * Dialogs are overlaid modal paper based components with a backdrop.
28718
29181
  */
28719
29182
  var Dialog = /*#__PURE__*/React__namespace.forwardRef(function Dialog(inProps, ref) {
28720
- var props = useThemeProps$b({
29183
+ var props = useThemeProps$G({
28721
29184
  props: inProps,
28722
29185
  name: 'MuiDialog'
28723
29186
  });
@@ -29001,7 +29464,7 @@
29001
29464
  });
29002
29465
  });
29003
29466
  var DialogActions = /*#__PURE__*/React__namespace.forwardRef(function DialogActions(inProps, ref) {
29004
- var props = useThemeProps$b({
29467
+ var props = useThemeProps$G({
29005
29468
  props: inProps,
29006
29469
  name: 'MuiDialogActions'
29007
29470
  });
@@ -29093,7 +29556,7 @@
29093
29556
  }));
29094
29557
  });
29095
29558
  var DialogContent = /*#__PURE__*/React__namespace.forwardRef(function DialogContent(inProps, ref) {
29096
- var props = useThemeProps$b({
29559
+ var props = useThemeProps$G({
29097
29560
  props: inProps,
29098
29561
  name: 'MuiDialogContent'
29099
29562
  });
@@ -29165,7 +29628,7 @@
29165
29628
  }
29166
29629
  })({});
29167
29630
  var DialogContentText = /*#__PURE__*/React__namespace.forwardRef(function DialogContentText(inProps, ref) {
29168
- var props = useThemeProps$b({
29631
+ var props = useThemeProps$G({
29169
29632
  props: inProps,
29170
29633
  name: 'MuiDialogContentText'
29171
29634
  });
@@ -29226,7 +29689,7 @@
29226
29689
  flex: '0 0 auto'
29227
29690
  });
29228
29691
  var DialogTitle = /*#__PURE__*/React__namespace.forwardRef(function DialogTitle(inProps, ref) {
29229
- var props = useThemeProps$b({
29692
+ var props = useThemeProps$G({
29230
29693
  props: inProps,
29231
29694
  name: 'MuiDialogTitle'
29232
29695
  });
@@ -29281,6 +29744,7 @@
29281
29744
  var dividerClasses = generateUtilityClasses$1('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
29282
29745
  var dividerClasses$1 = dividerClasses;
29283
29746
 
29747
+ var useThemeProps$e = createUseThemeProps();
29284
29748
  var useUtilityClasses$19 = function useUtilityClasses(ownerState) {
29285
29749
  var absolute = ownerState.absolute,
29286
29750
  children = ownerState.children,
@@ -29304,87 +29768,140 @@
29304
29768
  return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
29305
29769
  }
29306
29770
  })(function (_ref) {
29307
- var theme = _ref.theme,
29308
- ownerState = _ref.ownerState;
29309
- return _extends({
29771
+ var theme = _ref.theme;
29772
+ return {
29310
29773
  margin: 0,
29311
29774
  // Reset browser default style.
29312
29775
  flexShrink: 0,
29313
29776
  borderWidth: 0,
29314
29777
  borderStyle: 'solid',
29315
29778
  borderColor: (theme.vars || theme).palette.divider,
29316
- borderBottomWidth: 'thin'
29317
- }, ownerState.absolute && {
29318
- position: 'absolute',
29319
- bottom: 0,
29320
- left: 0,
29321
- width: '100%'
29322
- }, ownerState.light && {
29323
- borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.dividerChannel, " / 0.08)") : alpha(theme.palette.divider, 0.08)
29324
- }, ownerState.variant === 'inset' && {
29325
- marginLeft: 72
29326
- }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
29327
- marginLeft: theme.spacing(2),
29328
- marginRight: theme.spacing(2)
29329
- }, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {
29330
- marginTop: theme.spacing(1),
29331
- marginBottom: theme.spacing(1)
29332
- }, ownerState.orientation === 'vertical' && {
29333
- height: '100%',
29334
- borderBottomWidth: 0,
29335
- borderRightWidth: 'thin'
29336
- }, ownerState.flexItem && {
29337
- alignSelf: 'stretch',
29338
- height: 'auto'
29339
- });
29340
- }, function (_ref2) {
29341
- var ownerState = _ref2.ownerState;
29342
- return _extends({}, ownerState.children && {
29343
- display: 'flex',
29344
- whiteSpace: 'nowrap',
29345
- textAlign: 'center',
29346
- border: 0,
29347
- '&::before, &::after': {
29348
- content: '""',
29349
- alignSelf: 'center'
29350
- }
29351
- });
29352
- }, function (_ref3) {
29353
- var theme = _ref3.theme,
29354
- ownerState = _ref3.ownerState;
29355
- return _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
29356
- '&::before, &::after': {
29357
- width: '100%',
29358
- borderTop: "thin solid ".concat((theme.vars || theme).palette.divider)
29359
- }
29360
- });
29361
- }, function (_ref4) {
29362
- var theme = _ref4.theme,
29363
- ownerState = _ref4.ownerState;
29364
- return _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {
29365
- flexDirection: 'column',
29366
- '&::before, &::after': {
29367
- height: '100%',
29368
- borderLeft: "thin solid ".concat((theme.vars || theme).palette.divider)
29369
- }
29370
- });
29371
- }, function (_ref5) {
29372
- var ownerState = _ref5.ownerState;
29373
- return _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
29374
- '&::before': {
29375
- width: '90%'
29376
- },
29377
- '&::after': {
29378
- width: '10%'
29379
- }
29380
- }, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {
29381
- '&::before': {
29382
- width: '10%'
29383
- },
29384
- '&::after': {
29385
- width: '90%'
29386
- }
29387
- });
29779
+ borderBottomWidth: 'thin',
29780
+ variants: [{
29781
+ props: {
29782
+ absolute: true
29783
+ },
29784
+ style: {
29785
+ position: 'absolute',
29786
+ bottom: 0,
29787
+ left: 0,
29788
+ width: '100%'
29789
+ }
29790
+ }, {
29791
+ props: {
29792
+ light: true
29793
+ },
29794
+ style: {
29795
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.dividerChannel, " / 0.08)") : alpha(theme.palette.divider, 0.08)
29796
+ }
29797
+ }, {
29798
+ props: {
29799
+ variant: 'inset'
29800
+ },
29801
+ style: {
29802
+ marginLeft: 72
29803
+ }
29804
+ }, {
29805
+ props: {
29806
+ variant: 'middle',
29807
+ orientation: 'horizontal'
29808
+ },
29809
+ style: {
29810
+ marginLeft: theme.spacing(2),
29811
+ marginRight: theme.spacing(2)
29812
+ }
29813
+ }, {
29814
+ props: {
29815
+ variant: 'middle',
29816
+ orientation: 'vertical'
29817
+ },
29818
+ style: {
29819
+ marginTop: theme.spacing(1),
29820
+ marginBottom: theme.spacing(1)
29821
+ }
29822
+ }, {
29823
+ props: {
29824
+ orientation: 'vertical'
29825
+ },
29826
+ style: {
29827
+ height: '100%',
29828
+ borderBottomWidth: 0,
29829
+ borderRightWidth: 'thin'
29830
+ }
29831
+ }, {
29832
+ props: {
29833
+ flexItem: true
29834
+ },
29835
+ style: {
29836
+ alignSelf: 'stretch',
29837
+ height: 'auto'
29838
+ }
29839
+ }, {
29840
+ props: function props(_ref2) {
29841
+ var ownerState = _ref2.ownerState;
29842
+ return !!ownerState.children;
29843
+ },
29844
+ style: {
29845
+ display: 'flex',
29846
+ whiteSpace: 'nowrap',
29847
+ textAlign: 'center',
29848
+ border: 0,
29849
+ '&::before, &::after': {
29850
+ content: '""',
29851
+ alignSelf: 'center'
29852
+ }
29853
+ }
29854
+ }, {
29855
+ props: function props(_ref3) {
29856
+ var ownerState = _ref3.ownerState;
29857
+ return ownerState.children && ownerState.orientation !== 'vertical';
29858
+ },
29859
+ style: {
29860
+ '&::before, &::after': {
29861
+ width: '100%',
29862
+ borderTop: "thin solid ".concat((theme.vars || theme).palette.divider)
29863
+ }
29864
+ }
29865
+ }, {
29866
+ props: function props(_ref4) {
29867
+ var ownerState = _ref4.ownerState;
29868
+ return ownerState.orientation === 'vertical' && ownerState.children;
29869
+ },
29870
+ style: {
29871
+ flexDirection: 'column',
29872
+ '&::before, &::after': {
29873
+ height: '100%',
29874
+ borderLeft: "thin solid ".concat((theme.vars || theme).palette.divider)
29875
+ }
29876
+ }
29877
+ }, {
29878
+ props: function props(_ref5) {
29879
+ var ownerState = _ref5.ownerState;
29880
+ return ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical';
29881
+ },
29882
+ style: {
29883
+ '&::before': {
29884
+ width: '90%'
29885
+ },
29886
+ '&::after': {
29887
+ width: '10%'
29888
+ }
29889
+ }
29890
+ }, {
29891
+ props: function props(_ref6) {
29892
+ var ownerState = _ref6.ownerState;
29893
+ return ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical';
29894
+ },
29895
+ style: {
29896
+ '&::before': {
29897
+ width: '10%'
29898
+ },
29899
+ '&::after': {
29900
+ width: '90%'
29901
+ }
29902
+ }
29903
+ }]
29904
+ };
29388
29905
  });
29389
29906
  var DividerWrapper = styled$1('span', {
29390
29907
  name: 'MuiDivider',
@@ -29393,20 +29910,25 @@
29393
29910
  var ownerState = props.ownerState;
29394
29911
  return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
29395
29912
  }
29396
- })(function (_ref6) {
29397
- var theme = _ref6.theme,
29398
- ownerState = _ref6.ownerState;
29399
- return _extends({
29913
+ })(function (_ref7) {
29914
+ var theme = _ref7.theme;
29915
+ return {
29400
29916
  display: 'inline-block',
29401
29917
  paddingLeft: "calc(".concat(theme.spacing(1), " * 1.2)"),
29402
- paddingRight: "calc(".concat(theme.spacing(1), " * 1.2)")
29403
- }, ownerState.orientation === 'vertical' && {
29404
- paddingTop: "calc(".concat(theme.spacing(1), " * 1.2)"),
29405
- paddingBottom: "calc(".concat(theme.spacing(1), " * 1.2)")
29406
- });
29918
+ paddingRight: "calc(".concat(theme.spacing(1), " * 1.2)"),
29919
+ variants: [{
29920
+ props: {
29921
+ orientation: 'vertical'
29922
+ },
29923
+ style: {
29924
+ paddingTop: "calc(".concat(theme.spacing(1), " * 1.2)"),
29925
+ paddingBottom: "calc(".concat(theme.spacing(1), " * 1.2)")
29926
+ }
29927
+ }]
29928
+ };
29407
29929
  });
29408
29930
  var Divider = /*#__PURE__*/React__namespace.forwardRef(function Divider(inProps, ref) {
29409
- var props = useThemeProps$b({
29931
+ var props = useThemeProps$e({
29410
29932
  props: inProps,
29411
29933
  name: 'MuiDivider'
29412
29934
  });
@@ -29459,7 +29981,9 @@
29459
29981
  * The following flag is used to ensure that this component isn't tabbable i.e.
29460
29982
  * does not get highlight/focus inside of MUI List.
29461
29983
  */
29462
- Divider.muiSkipListHighlight = true;
29984
+ if (Divider) {
29985
+ Divider.muiSkipListHighlight = true;
29986
+ }
29463
29987
  Divider.propTypes /* remove-proptypes */ = {
29464
29988
  // ┌────────────────────────────── Warning ──────────────────────────────┐
29465
29989
  // │ These PropTypes are generated from the TypeScript type definitions. │
@@ -29953,7 +30477,7 @@
29953
30477
  * when `variant="temporary"` is set.
29954
30478
  */
29955
30479
  var Drawer = /*#__PURE__*/React__namespace.forwardRef(function Drawer(inProps, ref) {
29956
- var props = useThemeProps$b({
30480
+ var props = useThemeProps$G({
29957
30481
  props: inProps,
29958
30482
  name: 'MuiDrawer'
29959
30483
  });
@@ -30253,7 +30777,7 @@
30253
30777
  });
30254
30778
  });
30255
30779
  var Fab = /*#__PURE__*/React__namespace.forwardRef(function Fab(inProps, ref) {
30256
- var props = useThemeProps$b({
30780
+ var props = useThemeProps$G({
30257
30781
  props: inProps,
30258
30782
  name: 'MuiFab'
30259
30783
  });
@@ -30524,7 +31048,7 @@
30524
31048
  });
30525
31049
  var FilledInput = /*#__PURE__*/React__namespace.forwardRef(function FilledInput(inProps, ref) {
30526
31050
  var _ref5, _slots$root, _ref6, _slots$input;
30527
- var props = useThemeProps$b({
31051
+ var props = useThemeProps$G({
30528
31052
  props: inProps,
30529
31053
  name: 'MuiFilledInput'
30530
31054
  });
@@ -30780,6 +31304,7 @@
30780
31304
  var formControlClasses = generateUtilityClasses$1('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
30781
31305
  var formControlClasses$1 = formControlClasses;
30782
31306
 
31307
+ var useThemeProps$d = createUseThemeProps();
30783
31308
  var useUtilityClasses$15 = function useUtilityClasses(ownerState) {
30784
31309
  var classes = ownerState.classes,
30785
31310
  margin = ownerState.margin,
@@ -30796,27 +31321,41 @@
30796
31321
  var ownerState = _ref.ownerState;
30797
31322
  return _extends({}, styles.root, styles["margin".concat(capitalize(ownerState.margin))], ownerState.fullWidth && styles.fullWidth);
30798
31323
  }
30799
- })(function (_ref2) {
30800
- var ownerState = _ref2.ownerState;
30801
- return _extends({
30802
- display: 'inline-flex',
30803
- flexDirection: 'column',
30804
- position: 'relative',
30805
- // Reset fieldset default style.
30806
- minWidth: 0,
30807
- padding: 0,
30808
- margin: 0,
30809
- border: 0,
30810
- verticalAlign: 'top'
30811
- }, ownerState.margin === 'normal' && {
30812
- marginTop: 16,
30813
- marginBottom: 8
30814
- }, ownerState.margin === 'dense' && {
30815
- marginTop: 8,
30816
- marginBottom: 4
30817
- }, ownerState.fullWidth && {
30818
- width: '100%'
30819
- });
31324
+ })({
31325
+ display: 'inline-flex',
31326
+ flexDirection: 'column',
31327
+ position: 'relative',
31328
+ // Reset fieldset default style.
31329
+ minWidth: 0,
31330
+ padding: 0,
31331
+ margin: 0,
31332
+ border: 0,
31333
+ verticalAlign: 'top',
31334
+ // Fix alignment issue on Safari.
31335
+ variants: [{
31336
+ props: {
31337
+ margin: 'normal'
31338
+ },
31339
+ style: {
31340
+ marginTop: 16,
31341
+ marginBottom: 8
31342
+ }
31343
+ }, {
31344
+ props: {
31345
+ margin: 'dense'
31346
+ },
31347
+ style: {
31348
+ marginTop: 8,
31349
+ marginBottom: 4
31350
+ }
31351
+ }, {
31352
+ props: {
31353
+ fullWidth: true
31354
+ },
31355
+ style: {
31356
+ width: '100%'
31357
+ }
31358
+ }]
30820
31359
  });
30821
31360
 
30822
31361
  /**
@@ -30844,7 +31383,7 @@
30844
31383
  * For instance, only one input can be focused at the same time, the state shouldn't be shared.
30845
31384
  */
30846
31385
  var FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormControl(inProps, ref) {
30847
- var props = useThemeProps$b({
31386
+ var props = useThemeProps$d({
30848
31387
  props: inProps,
30849
31388
  name: 'MuiFormControl'
30850
31389
  });
@@ -31075,7 +31614,7 @@
31075
31614
  }
31076
31615
  }),
31077
31616
  useThemeProps: function useThemeProps(inProps) {
31078
- return useThemeProps$b({
31617
+ return useThemeProps$G({
31079
31618
  props: inProps,
31080
31619
  name: 'MuiStack'
31081
31620
  });
@@ -31136,6 +31675,7 @@
31136
31675
  var formControlLabelClasses = generateUtilityClasses$1('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);
31137
31676
  var formControlLabelClasses$1 = formControlLabelClasses;
31138
31677
 
31678
+ var useThemeProps$c = createUseThemeProps();
31139
31679
  var useUtilityClasses$14 = function useUtilityClasses(ownerState) {
31140
31680
  var classes = ownerState.classes,
31141
31681
  disabled = ownerState.disabled,
@@ -31157,9 +31697,8 @@
31157
31697
  return [_defineProperty({}, "& .".concat(formControlLabelClasses$1.label), styles.label), styles.root, styles["labelPlacement".concat(capitalize(ownerState.labelPlacement))]];
31158
31698
  }
31159
31699
  })(function (_ref2) {
31160
- var theme = _ref2.theme,
31161
- ownerState = _ref2.ownerState;
31162
- return _extends(_defineProperty({
31700
+ var theme = _ref2.theme;
31701
+ return _defineProperty(_defineProperty(_defineProperty({
31163
31702
  display: 'inline-flex',
31164
31703
  alignItems: 'center',
31165
31704
  cursor: 'pointer',
@@ -31170,20 +31709,39 @@
31170
31709
  marginRight: 16
31171
31710
  }, "&.".concat(formControlLabelClasses$1.disabled), {
31172
31711
  cursor: 'default'
31173
- }), ownerState.labelPlacement === 'start' && {
31174
- flexDirection: 'row-reverse',
31175
- marginLeft: 16,
31176
- // used for row presentation of radio/checkbox
31177
- marginRight: -11
31178
- }, ownerState.labelPlacement === 'top' && {
31179
- flexDirection: 'column-reverse',
31180
- marginLeft: 16
31181
- }, ownerState.labelPlacement === 'bottom' && {
31182
- flexDirection: 'column',
31183
- marginLeft: 16
31184
- }, _defineProperty({}, "& .".concat(formControlLabelClasses$1.label), _defineProperty({}, "&.".concat(formControlLabelClasses$1.disabled), {
31712
+ }), "& .".concat(formControlLabelClasses$1.label), _defineProperty({}, "&.".concat(formControlLabelClasses$1.disabled), {
31185
31713
  color: (theme.vars || theme).palette.text.disabled
31186
- })));
31714
+ })), "variants", [{
31715
+ props: {
31716
+ labelPlacement: 'start'
31717
+ },
31718
+ style: {
31719
+ flexDirection: 'row-reverse',
31720
+ marginRight: -11
31721
+ }
31722
+ }, {
31723
+ props: {
31724
+ labelPlacement: 'top'
31725
+ },
31726
+ style: {
31727
+ flexDirection: 'column-reverse'
31728
+ }
31729
+ }, {
31730
+ props: {
31731
+ labelPlacement: 'bottom'
31732
+ },
31733
+ style: {
31734
+ flexDirection: 'column'
31735
+ }
31736
+ }, {
31737
+ props: function props(_ref3) {
31738
+ var labelPlacement = _ref3.labelPlacement;
31739
+ return labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom';
31740
+ },
31741
+ style: {
31742
+ marginLeft: 16 // used for row presentation of radio/checkbox
31743
+ }
31744
+ }]);
31187
31745
  });
31188
31746
  var AsteriskComponent$1 = styled$1('span', {
31189
31747
  name: 'MuiFormControlLabel',
@@ -31191,8 +31749,8 @@
31191
31749
  overridesResolver: function overridesResolver(props, styles) {
31192
31750
  return styles.asterisk;
31193
31751
  }
31194
- })(function (_ref3) {
31195
- var theme = _ref3.theme;
31752
+ })(function (_ref5) {
31753
+ var theme = _ref5.theme;
31196
31754
  return _defineProperty({}, "&.".concat(formControlLabelClasses$1.error), {
31197
31755
  color: (theme.vars || theme).palette.error.main
31198
31756
  });
@@ -31203,8 +31761,8 @@
31203
31761
  * Use this component if you want to display an extra label.
31204
31762
  */
31205
31763
  var FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormControlLabel(inProps, ref) {
31206
- var _ref5, _slotProps$typography;
31207
- var props = useThemeProps$b({
31764
+ var _ref7, _slotProps$typography;
31765
+ var props = useThemeProps$c({
31208
31766
  props: inProps,
31209
31767
  name: 'MuiFormControlLabel'
31210
31768
  });
@@ -31227,7 +31785,7 @@
31227
31785
  props.value;
31228
31786
  var other = _objectWithoutProperties(props, ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"]);
31229
31787
  var muiFormControl = useFormControl();
31230
- var disabled = (_ref5 = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref5 : muiFormControl == null ? void 0 : muiFormControl.disabled;
31788
+ var disabled = (_ref7 = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref7 : muiFormControl == null ? void 0 : muiFormControl.disabled;
31231
31789
  var required = requiredProp != null ? requiredProp : control.props.required;
31232
31790
  var controlProps = {
31233
31791
  disabled: disabled,
@@ -31364,6 +31922,7 @@
31364
31922
  var formGroupClasses = generateUtilityClasses$1('MuiFormGroup', ['root', 'row', 'error']);
31365
31923
  var formGroupClasses$1 = formGroupClasses;
31366
31924
 
31925
+ var useThemeProps$b = createUseThemeProps();
31367
31926
  var useUtilityClasses$13 = function useUtilityClasses(ownerState) {
31368
31927
  var classes = ownerState.classes,
31369
31928
  row = ownerState.row,
@@ -31380,15 +31939,18 @@
31380
31939
  var ownerState = props.ownerState;
31381
31940
  return [styles.root, ownerState.row && styles.row];
31382
31941
  }
31383
- })(function (_ref) {
31384
- var ownerState = _ref.ownerState;
31385
- return _extends({
31386
- display: 'flex',
31387
- flexDirection: 'column',
31388
- flexWrap: 'wrap'
31389
- }, ownerState.row && {
31390
- flexDirection: 'row'
31391
- });
31942
+ })({
31943
+ display: 'flex',
31944
+ flexDirection: 'column',
31945
+ flexWrap: 'wrap',
31946
+ variants: [{
31947
+ props: {
31948
+ row: true
31949
+ },
31950
+ style: {
31951
+ flexDirection: 'row'
31952
+ }
31953
+ }]
31392
31954
  });
31393
31955
 
31394
31956
  /**
@@ -31502,7 +32064,7 @@
31502
32064
  });
31503
32065
  });
31504
32066
  var FormHelperText = /*#__PURE__*/React__namespace.forwardRef(function FormHelperText(inProps, ref) {
31505
- var props = useThemeProps$b({
32067
+ var props = useThemeProps$G({
31506
32068
  props: inProps,
31507
32069
  name: 'MuiFormHelperText'
31508
32070
  });
@@ -31666,7 +32228,7 @@
31666
32228
  });
31667
32229
  });
31668
32230
  var FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(inProps, ref) {
31669
- var props = useThemeProps$b({
32231
+ var props = useThemeProps$G({
31670
32232
  props: inProps,
31671
32233
  name: 'MuiFormLabel'
31672
32234
  });
@@ -31803,6 +32365,9 @@
31803
32365
 
31804
32366
  function getOffset(val) {
31805
32367
  var parse = parseFloat(val);
32368
+ if (Number.isNaN(parse)) {
32369
+ return val;
32370
+ }
31806
32371
  return "".concat(parse).concat(String(val).replace(String(parse), '') || 'px');
31807
32372
  }
31808
32373
  function generateGrid(_ref) {
@@ -32122,7 +32687,7 @@
32122
32687
  return composeClasses(slots, getGridUtilityClass, classes);
32123
32688
  };
32124
32689
  var Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
32125
- var themeProps = useThemeProps$b({
32690
+ var themeProps = useThemeProps$G({
32126
32691
  props: inProps,
32127
32692
  name: 'MuiGrid'
32128
32693
  });
@@ -32340,7 +32905,7 @@
32340
32905
  }),
32341
32906
  componentName: 'MuiGrid2',
32342
32907
  useThemeProps: function useThemeProps(inProps) {
32343
- return useThemeProps$b({
32908
+ return useThemeProps$G({
32344
32909
  props: inProps,
32345
32910
  name: 'MuiGrid2'
32346
32911
  });
@@ -33192,7 +33757,7 @@
33192
33757
  };
33193
33758
  });
33194
33759
  var Icon = /*#__PURE__*/React__namespace.forwardRef(function Icon(inProps, ref) {
33195
- var props = useThemeProps$b({
33760
+ var props = useThemeProps$G({
33196
33761
  props: inProps,
33197
33762
  name: 'MuiIcon'
33198
33763
  });
@@ -33317,7 +33882,7 @@
33317
33882
  });
33318
33883
  });
33319
33884
  var ImageList = /*#__PURE__*/React__namespace.forwardRef(function ImageList(inProps, ref) {
33320
- var props = useThemeProps$b({
33885
+ var props = useThemeProps$G({
33321
33886
  props: inProps,
33322
33887
  name: 'MuiImageList'
33323
33888
  });
@@ -33478,7 +34043,7 @@
33478
34043
  })));
33479
34044
  });
33480
34045
  var ImageListItem = /*#__PURE__*/React__namespace.forwardRef(function ImageListItem(inProps, ref) {
33481
- var props = useThemeProps$b({
34046
+ var props = useThemeProps$G({
33482
34047
  props: inProps,
33483
34048
  name: 'MuiImageListItem'
33484
34049
  });
@@ -33706,7 +34271,7 @@
33706
34271
  });
33707
34272
  });
33708
34273
  var ImageListItemBar = /*#__PURE__*/React__namespace.forwardRef(function ImageListItemBar(inProps, ref) {
33709
- var props = useThemeProps$b({
34274
+ var props = useThemeProps$G({
33710
34275
  props: inProps,
33711
34276
  name: 'MuiImageListItemBar'
33712
34277
  });
@@ -33880,7 +34445,7 @@
33880
34445
  })({});
33881
34446
  var Input = /*#__PURE__*/React__namespace.forwardRef(function Input(inProps, ref) {
33882
34447
  var _ref3, _slots$root, _ref4, _slots$input;
33883
- var props = useThemeProps$b({
34448
+ var props = useThemeProps$G({
33884
34449
  props: inProps,
33885
34450
  name: 'MuiInput'
33886
34451
  });
@@ -34168,7 +34733,7 @@
34168
34733
  });
34169
34734
  });
34170
34735
  var InputAdornment = /*#__PURE__*/React__namespace.forwardRef(function InputAdornment(inProps, ref) {
34171
- var props = useThemeProps$b({
34736
+ var props = useThemeProps$G({
34172
34737
  props: inProps,
34173
34738
  name: 'MuiInputAdornment'
34174
34739
  });
@@ -34368,7 +34933,7 @@
34368
34933
  }));
34369
34934
  });
34370
34935
  var InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(inProps, ref) {
34371
- var props = useThemeProps$b({
34936
+ var props = useThemeProps$G({
34372
34937
  name: 'MuiInputLabel',
34373
34938
  props: inProps
34374
34939
  });
@@ -34640,7 +35205,7 @@
34640
35205
  * attribute to `true` on that region until it has finished loading.
34641
35206
  */
34642
35207
  var LinearProgress = /*#__PURE__*/React__namespace.forwardRef(function LinearProgress(inProps, ref) {
34643
- var props = useThemeProps$b({
35208
+ var props = useThemeProps$G({
34644
35209
  props: inProps,
34645
35210
  name: 'MuiLinearProgress'
34646
35211
  });
@@ -34847,7 +35412,7 @@
34847
35412
  }));
34848
35413
  });
34849
35414
  var Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34850
- var props = useThemeProps$b({
35415
+ var props = useThemeProps$G({
34851
35416
  props: inProps,
34852
35417
  name: 'MuiLink'
34853
35418
  });
@@ -35018,7 +35583,7 @@
35018
35583
  });
35019
35584
  });
35020
35585
  var List = /*#__PURE__*/React__namespace.forwardRef(function List(inProps, ref) {
35021
- var props = useThemeProps$b({
35586
+ var props = useThemeProps$G({
35022
35587
  props: inProps,
35023
35588
  name: 'MuiList'
35024
35589
  });
@@ -35191,7 +35756,7 @@
35191
35756
  });
35192
35757
  });
35193
35758
  var ListItemButton = /*#__PURE__*/React__namespace.forwardRef(function ListItemButton(inProps, ref) {
35194
- var props = useThemeProps$b({
35759
+ var props = useThemeProps$G({
35195
35760
  props: inProps,
35196
35761
  name: 'MuiListItemButton'
35197
35762
  });
@@ -35374,7 +35939,7 @@
35374
35939
  * Must be used as the last child of ListItem to function properly.
35375
35940
  */
35376
35941
  var ListItemSecondaryAction = /*#__PURE__*/React__namespace.forwardRef(function ListItemSecondaryAction(inProps, ref) {
35377
- var props = useThemeProps$b({
35942
+ var props = useThemeProps$G({
35378
35943
  props: inProps,
35379
35944
  name: 'MuiListItemSecondaryAction'
35380
35945
  });
@@ -35519,7 +36084,7 @@
35519
36084
  * Uses an additional container component if `ListItemSecondaryAction` is the last child.
35520
36085
  */
35521
36086
  var ListItem = /*#__PURE__*/React__namespace.forwardRef(function ListItem(inProps, ref) {
35522
- var props = useThemeProps$b({
36087
+ var props = useThemeProps$G({
35523
36088
  props: inProps,
35524
36089
  name: 'MuiListItem'
35525
36090
  });
@@ -35853,7 +36418,7 @@
35853
36418
  * A simple wrapper to apply `List` styles to an `Avatar`.
35854
36419
  */
35855
36420
  var ListItemAvatar = /*#__PURE__*/React__namespace.forwardRef(function ListItemAvatar(inProps, ref) {
35856
- var props = useThemeProps$b({
36421
+ var props = useThemeProps$G({
35857
36422
  props: inProps,
35858
36423
  name: 'MuiListItemAvatar'
35859
36424
  });
@@ -35932,7 +36497,7 @@
35932
36497
  * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
35933
36498
  */
35934
36499
  var ListItemIcon = /*#__PURE__*/React__namespace.forwardRef(function ListItemIcon(inProps, ref) {
35935
- var props = useThemeProps$b({
36500
+ var props = useThemeProps$G({
35936
36501
  props: inProps,
35937
36502
  name: 'MuiListItemIcon'
35938
36503
  });
@@ -36015,7 +36580,7 @@
36015
36580
  });
36016
36581
  });
36017
36582
  var ListItemText = /*#__PURE__*/React__namespace.forwardRef(function ListItemText(inProps, ref) {
36018
- var props = useThemeProps$b({
36583
+ var props = useThemeProps$G({
36019
36584
  props: inProps,
36020
36585
  name: 'MuiListItemText'
36021
36586
  });
@@ -36405,6 +36970,7 @@
36405
36970
  var popoverClasses = generateUtilityClasses$1('MuiPopover', ['root', 'paper']);
36406
36971
  var popoverClasses$1 = popoverClasses;
36407
36972
 
36973
+ var useThemeProps$a = createUseThemeProps();
36408
36974
  function getOffsetTop(rect, vertical) {
36409
36975
  var offset = 0;
36410
36976
  if (typeof vertical === 'number') {
@@ -36471,7 +37037,7 @@
36471
37037
  });
36472
37038
  var Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProps, ref) {
36473
37039
  var _slotProps$paper, _slots$root, _slots$paper;
36474
- var props = useThemeProps$b({
37040
+ var props = useThemeProps$a({
36475
37041
  props: inProps,
36476
37042
  name: 'MuiPopover'
36477
37043
  });
@@ -36988,7 +37554,7 @@
36988
37554
  });
36989
37555
  var Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref) {
36990
37556
  var _slots$paper, _slotProps$paper;
36991
- var props = useThemeProps$b({
37557
+ var props = useThemeProps$G({
36992
37558
  props: inProps,
36993
37559
  name: 'MuiMenu'
36994
37560
  });
@@ -37332,7 +37898,7 @@
37332
37898
  })));
37333
37899
  });
37334
37900
  var MenuItem = /*#__PURE__*/React__namespace.forwardRef(function MenuItem(inProps, ref) {
37335
- var props = useThemeProps$b({
37901
+ var props = useThemeProps$G({
37336
37902
  props: inProps,
37337
37903
  name: 'MuiMenuItem'
37338
37904
  });
@@ -37478,6 +38044,7 @@
37478
38044
  var mobileStepperClasses = generateUtilityClasses$1('MuiMobileStepper', ['root', 'positionBottom', 'positionTop', 'positionStatic', 'dots', 'dot', 'dotActive', 'progress']);
37479
38045
  var mobileStepperClasses$1 = mobileStepperClasses;
37480
38046
 
38047
+ var useThemeProps$9 = createUseThemeProps();
37481
38048
  var useUtilityClasses$H = function useUtilityClasses(ownerState) {
37482
38049
  var classes = ownerState.classes,
37483
38050
  position = ownerState.position;
@@ -37498,28 +38065,41 @@
37498
38065
  return [styles.root, styles["position".concat(capitalize(ownerState.position))]];
37499
38066
  }
37500
38067
  })(function (_ref) {
37501
- var theme = _ref.theme,
37502
- ownerState = _ref.ownerState;
37503
- return _extends({
38068
+ var theme = _ref.theme;
38069
+ return {
37504
38070
  display: 'flex',
37505
38071
  flexDirection: 'row',
37506
38072
  justifyContent: 'space-between',
37507
38073
  alignItems: 'center',
37508
38074
  background: (theme.vars || theme).palette.background["default"],
37509
- padding: 8
37510
- }, ownerState.position === 'bottom' && {
37511
- position: 'fixed',
37512
- bottom: 0,
37513
- left: 0,
37514
- right: 0,
37515
- zIndex: (theme.vars || theme).zIndex.mobileStepper
37516
- }, ownerState.position === 'top' && {
37517
- position: 'fixed',
37518
- top: 0,
37519
- left: 0,
37520
- right: 0,
37521
- zIndex: (theme.vars || theme).zIndex.mobileStepper
37522
- });
38075
+ padding: 8,
38076
+ variants: [{
38077
+ props: function props(_ref2) {
38078
+ var position = _ref2.position;
38079
+ return position === 'top' || position === 'bottom';
38080
+ },
38081
+ style: {
38082
+ position: 'fixed',
38083
+ left: 0,
38084
+ right: 0,
38085
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
38086
+ }
38087
+ }, {
38088
+ props: {
38089
+ position: 'top'
38090
+ },
38091
+ style: {
38092
+ top: 0
38093
+ }
38094
+ }, {
38095
+ props: {
38096
+ position: 'bottom'
38097
+ },
38098
+ style: {
38099
+ bottom: 0
38100
+ }
38101
+ }]
38102
+ };
37523
38103
  });
37524
38104
  var MobileStepperDots = styled$1('div', {
37525
38105
  name: 'MuiMobileStepper',
@@ -37527,12 +38107,16 @@
37527
38107
  overridesResolver: function overridesResolver(props, styles) {
37528
38108
  return styles.dots;
37529
38109
  }
37530
- })(function (_ref2) {
37531
- var ownerState = _ref2.ownerState;
37532
- return _extends({}, ownerState.variant === 'dots' && {
37533
- display: 'flex',
37534
- flexDirection: 'row'
37535
- });
38110
+ })({
38111
+ variants: [{
38112
+ props: {
38113
+ variant: 'dots'
38114
+ },
38115
+ style: {
38116
+ display: 'flex',
38117
+ flexDirection: 'row'
38118
+ }
38119
+ }]
37536
38120
  });
37537
38121
  var MobileStepperDot = styled$1('div', {
37538
38122
  name: 'MuiMobileStepper',
@@ -37545,21 +38129,32 @@
37545
38129
  return [styles.dot, dotActive && styles.dotActive];
37546
38130
  }
37547
38131
  })(function (_ref3) {
37548
- var theme = _ref3.theme,
37549
- ownerState = _ref3.ownerState,
37550
- dotActive = _ref3.dotActive;
37551
- return _extends({}, ownerState.variant === 'dots' && _extends({
37552
- transition: theme.transitions.create('background-color', {
37553
- duration: theme.transitions.duration.shortest
37554
- }),
37555
- backgroundColor: (theme.vars || theme).palette.action.disabled,
37556
- borderRadius: '50%',
37557
- width: 8,
37558
- height: 8,
37559
- margin: '0 2px'
37560
- }, dotActive && {
37561
- backgroundColor: (theme.vars || theme).palette.primary.main
37562
- }));
38132
+ var theme = _ref3.theme;
38133
+ return {
38134
+ variants: [{
38135
+ props: {
38136
+ variant: 'dots'
38137
+ },
38138
+ style: {
38139
+ transition: theme.transitions.create('background-color', {
38140
+ duration: theme.transitions.duration.shortest
38141
+ }),
38142
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
38143
+ borderRadius: '50%',
38144
+ width: 8,
38145
+ height: 8,
38146
+ margin: '0 2px'
38147
+ }
38148
+ }, {
38149
+ props: {
38150
+ variant: 'dots',
38151
+ dotActive: true
38152
+ },
38153
+ style: {
38154
+ backgroundColor: (theme.vars || theme).palette.primary.main
38155
+ }
38156
+ }]
38157
+ };
37563
38158
  });
37564
38159
  var MobileStepperProgress = styled$1(LinearProgress$1, {
37565
38160
  name: 'MuiMobileStepper',
@@ -37567,14 +38162,18 @@
37567
38162
  overridesResolver: function overridesResolver(props, styles) {
37568
38163
  return styles.progress;
37569
38164
  }
37570
- })(function (_ref4) {
37571
- var ownerState = _ref4.ownerState;
37572
- return _extends({}, ownerState.variant === 'progress' && {
37573
- width: '50%'
37574
- });
38165
+ })({
38166
+ variants: [{
38167
+ props: {
38168
+ variant: 'progress'
38169
+ },
38170
+ style: {
38171
+ width: '50%'
38172
+ }
38173
+ }]
37575
38174
  });
37576
38175
  var MobileStepper = /*#__PURE__*/React__namespace.forwardRef(function MobileStepper(inProps, ref) {
37577
- var props = useThemeProps$b({
38176
+ var props = useThemeProps$9({
37578
38177
  props: inProps,
37579
38178
  name: 'MuiMobileStepper'
37580
38179
  });
@@ -37891,7 +38490,7 @@
37891
38490
  * An alternative to `<Select native />` with a much smaller bundle size footprint.
37892
38491
  */
37893
38492
  var NativeSelect = /*#__PURE__*/React__namespace.forwardRef(function NativeSelect(inProps, ref) {
37894
- var props = useThemeProps$b({
38493
+ var props = useThemeProps$G({
37895
38494
  name: 'MuiNativeSelect',
37896
38495
  props: inProps
37897
38496
  });
@@ -38216,7 +38815,7 @@
38216
38815
  });
38217
38816
  var OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function OutlinedInput(inProps, ref) {
38218
38817
  var _ref5, _slots$root, _ref6, _slots$input, _React$Fragment;
38219
- var props = useThemeProps$b({
38818
+ var props = useThemeProps$G({
38220
38819
  props: inProps,
38221
38820
  name: 'MuiOutlinedInput'
38222
38821
  });
@@ -38766,7 +39365,7 @@
38766
39365
  });
38767
39366
  });
38768
39367
  var PaginationItem = /*#__PURE__*/React__namespace.forwardRef(function PaginationItem(inProps, ref) {
38769
- var props = useThemeProps$b({
39368
+ var props = useThemeProps$G({
38770
39369
  props: inProps,
38771
39370
  name: 'MuiPaginationItem'
38772
39371
  });
@@ -38969,7 +39568,7 @@
38969
39568
  return "Go to ".concat(type, " page");
38970
39569
  }
38971
39570
  var Pagination = /*#__PURE__*/React__namespace.forwardRef(function Pagination(inProps, ref) {
38972
- var props = useThemeProps$b({
39571
+ var props = useThemeProps$G({
38973
39572
  props: inProps,
38974
39573
  name: 'MuiPagination'
38975
39574
  });
@@ -39324,7 +39923,7 @@
39324
39923
  var defaultIcon$1 = /*#__PURE__*/jsxRuntime_1(RadioButtonIcon, {});
39325
39924
  var Radio = /*#__PURE__*/React__namespace.forwardRef(function Radio(inProps, ref) {
39326
39925
  var _defaultIcon$props$fo, _defaultCheckedIcon$p;
39327
- var props = useThemeProps$b({
39926
+ var props = useThemeProps$G({
39328
39927
  props: inProps,
39329
39928
  name: 'MuiRadio'
39330
39929
  });
@@ -39827,7 +40426,7 @@
39827
40426
  return "".concat(value, " Star").concat(value !== 1 ? 's' : '');
39828
40427
  }
39829
40428
  var Rating = /*#__PURE__*/React__namespace.forwardRef(function Rating(inProps, ref) {
39830
- var props = useThemeProps$b({
40429
+ var props = useThemeProps$G({
39831
40430
  name: 'MuiRating',
39832
40431
  props: inProps
39833
40432
  });
@@ -40268,7 +40867,7 @@
40268
40867
  }, colorSchemeStyles);
40269
40868
  });
40270
40869
  var ScopedCssBaseline = /*#__PURE__*/React__namespace.forwardRef(function ScopedCssBaseline(inProps, ref) {
40271
- var props = useThemeProps$b({
40870
+ var props = useThemeProps$G({
40272
40871
  props: inProps,
40273
40872
  name: 'MuiScopedCssBaseline'
40274
40873
  });
@@ -40990,7 +41589,7 @@
40990
41589
  var StyledOutlinedInput = styled$1(OutlinedInput$1, styledRootConfig)('');
40991
41590
  var StyledFilledInput = styled$1(FilledInput$1, styledRootConfig)('');
40992
41591
  var Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
40993
- var props = useThemeProps$b({
41592
+ var props = useThemeProps$G({
40994
41593
  name: 'MuiSelect',
40995
41594
  props: inProps
40996
41595
  });
@@ -41313,7 +41912,7 @@
41313
41912
  return ownerState.animation === 'wave' && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: ", " 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "])), waveKeyframe, (theme.vars || theme).palette.action.hover);
41314
41913
  });
41315
41914
  var Skeleton = /*#__PURE__*/React__namespace.forwardRef(function Skeleton(inProps, ref) {
41316
- var props = useThemeProps$b({
41915
+ var props = useThemeProps$G({
41317
41916
  props: inProps,
41318
41917
  name: 'MuiSkeleton'
41319
41918
  });
@@ -41455,7 +42054,7 @@
41455
42054
  value: PropTypes.node
41456
42055
  } ;
41457
42056
 
41458
- var useThemeProps$1 = createUseThemeProps();
42057
+ var useThemeProps$8 = createUseThemeProps();
41459
42058
  function Identity(x) {
41460
42059
  return x;
41461
42060
  }
@@ -41722,29 +42321,7 @@
41722
42321
  '&:hover': {
41723
42322
  boxShadow: 'none'
41724
42323
  }
41725
- }), "variants", [].concat(_toConsumableArray(Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(function (key) {
41726
- var _theme$vars6;
41727
- return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
41728
- }).map(function (color) {
41729
- return {
41730
- props: {
41731
- color: color
41732
- },
41733
- style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses$1.focusVisible), _extends({}, theme.vars ? {
41734
- boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
41735
- } : {
41736
- boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
41737
- }, {
41738
- '@media (hover: none)': {
41739
- boxShadow: 'none'
41740
- }
41741
- })), "&.".concat(sliderClasses$1.active), _extends({}, theme.vars ? {
41742
- boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
41743
- } : {
41744
- boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
41745
- }))
41746
- };
41747
- })), [{
42324
+ }), "variants", [{
41748
42325
  props: {
41749
42326
  size: 'small'
41750
42327
  },
@@ -41771,7 +42348,29 @@
41771
42348
  left: '50%',
41772
42349
  transform: 'translate(-50%, 50%)'
41773
42350
  }
41774
- }]));
42351
+ }].concat(_toConsumableArray(Object.keys(((_theme$vars5 = theme.vars) != null ? _theme$vars5 : theme).palette).filter(function (key) {
42352
+ var _theme$vars6;
42353
+ return ((_theme$vars6 = theme.vars) != null ? _theme$vars6 : theme).palette[key].main;
42354
+ }).map(function (color) {
42355
+ return {
42356
+ props: {
42357
+ color: color
42358
+ },
42359
+ style: _defineProperty(_defineProperty({}, "&:hover, &.".concat(sliderClasses$1.focusVisible), _extends({}, theme.vars ? {
42360
+ boxShadow: "0px 0px 0px 8px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)")
42361
+ } : {
42362
+ boxShadow: "0px 0px 0px 8px ".concat(alpha(theme.palette[color].main, 0.16))
42363
+ }, {
42364
+ '@media (hover: none)': {
42365
+ boxShadow: 'none'
42366
+ }
42367
+ })), "&.".concat(sliderClasses$1.active), _extends({}, theme.vars ? {
42368
+ boxShadow: "0px 0px 0px 14px rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.16)}")
42369
+ } : {
42370
+ boxShadow: "0px 0px 0px 14px ".concat(alpha(theme.palette[color].main, 0.16))
42371
+ }))
42372
+ };
42373
+ }))));
41775
42374
  });
41776
42375
  var SliderValueLabel = styled$1(SliderValueLabel$1, {
41777
42376
  name: 'MuiSlider',
@@ -41982,7 +42581,7 @@
41982
42581
  };
41983
42582
  var Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(inputProps, ref) {
41984
42583
  var _ref10, _slots$root, _ref11, _slots$rail, _ref12, _slots$track, _ref13, _slots$thumb, _ref14, _slots$valueLabel, _ref15, _slots$mark, _ref16, _slots$markLabel, _ref17, _slots$input, _slotProps$root, _slotProps$rail, _slotProps$track, _slotProps$thumb, _slotProps$valueLabel, _slotProps$mark, _slotProps$markLabel, _slotProps$input;
41985
- var props = useThemeProps$1({
42584
+ var props = useThemeProps$8({
41986
42585
  props: inputProps,
41987
42586
  name: 'MuiSlider'
41988
42587
  });
@@ -42559,7 +43158,7 @@
42559
43158
  marginRight: -8
42560
43159
  });
42561
43160
  var SnackbarContent = /*#__PURE__*/React__namespace.forwardRef(function SnackbarContent(inProps, ref) {
42562
- var props = useThemeProps$b({
43161
+ var props = useThemeProps$G({
42563
43162
  props: inProps,
42564
43163
  name: 'MuiSnackbarContent'
42565
43164
  });
@@ -42681,7 +43280,7 @@
42681
43280
  })));
42682
43281
  });
42683
43282
  var Snackbar = /*#__PURE__*/React__namespace.forwardRef(function Snackbar(inProps, ref) {
42684
- var props = useThemeProps$b({
43283
+ var props = useThemeProps$G({
42685
43284
  props: inProps,
42686
43285
  name: 'MuiSnackbar'
42687
43286
  });
@@ -43216,7 +43815,7 @@
43216
43815
  });
43217
43816
  });
43218
43817
  var SpeedDial = /*#__PURE__*/React__namespace.forwardRef(function SpeedDial(inProps, ref) {
43219
- var props = useThemeProps$b({
43818
+ var props = useThemeProps$G({
43220
43819
  props: inProps,
43221
43820
  name: 'MuiSpeedDial'
43222
43821
  });
@@ -43778,7 +44377,7 @@
43778
44377
  // TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.
43779
44378
  var Tooltip = /*#__PURE__*/React__namespace.forwardRef(function Tooltip(inProps, ref) {
43780
44379
  var _ref5, _slots$popper, _ref6, _ref7, _slots$transition, _ref8, _slots$tooltip, _ref9, _slots$arrow, _slotProps$popper, _ref10, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref11, _slotProps$tooltip2, _slotProps$arrow, _ref12, _slotProps$arrow2;
43781
- var props = useThemeProps$b({
44380
+ var props = useThemeProps$G({
43782
44381
  props: inProps,
43783
44382
  name: 'MuiTooltip'
43784
44383
  });
@@ -44451,7 +45050,7 @@
44451
45050
  });
44452
45051
  });
44453
45052
  var SpeedDialAction = /*#__PURE__*/React__namespace.forwardRef(function SpeedDialAction(inProps, ref) {
44454
- var props = useThemeProps$b({
45053
+ var props = useThemeProps$G({
44455
45054
  props: inProps,
44456
45055
  name: 'MuiSpeedDialAction'
44457
45056
  });
@@ -44645,7 +45244,7 @@
44645
45244
  }));
44646
45245
  });
44647
45246
  var SpeedDialIcon = /*#__PURE__*/React__namespace.forwardRef(function SpeedDialIcon(inProps, ref) {
44648
- var props = useThemeProps$b({
45247
+ var props = useThemeProps$G({
44649
45248
  props: inProps,
44650
45249
  name: 'MuiSpeedDialIcon'
44651
45250
  });
@@ -44748,6 +45347,7 @@
44748
45347
  var stepClasses = generateUtilityClasses$1('MuiStep', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'completed']);
44749
45348
  var stepClasses$1 = stepClasses;
44750
45349
 
45350
+ var useThemeProps$7 = createUseThemeProps();
44751
45351
  var useUtilityClasses$n = function useUtilityClasses(ownerState) {
44752
45352
  var classes = ownerState.classes,
44753
45353
  orientation = ownerState.orientation,
@@ -44765,18 +45365,27 @@
44765
45365
  var ownerState = props.ownerState;
44766
45366
  return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
44767
45367
  }
44768
- })(function (_ref) {
44769
- var ownerState = _ref.ownerState;
44770
- return _extends({}, ownerState.orientation === 'horizontal' && {
44771
- paddingLeft: 8,
44772
- paddingRight: 8
44773
- }, ownerState.alternativeLabel && {
44774
- flex: 1,
44775
- position: 'relative'
44776
- });
45368
+ })({
45369
+ variants: [{
45370
+ props: {
45371
+ orientation: 'horizontal'
45372
+ },
45373
+ style: {
45374
+ paddingLeft: 8,
45375
+ paddingRight: 8
45376
+ }
45377
+ }, {
45378
+ props: {
45379
+ alternativeLabel: true
45380
+ },
45381
+ style: {
45382
+ flex: 1,
45383
+ position: 'relative'
45384
+ }
45385
+ }]
44777
45386
  });
44778
45387
  var Step = /*#__PURE__*/React__namespace.forwardRef(function Step(inProps, ref) {
44779
- var props = useThemeProps$b({
45388
+ var props = useThemeProps$7({
44780
45389
  props: inProps,
44781
45390
  name: 'MuiStep'
44782
45391
  });
@@ -44919,6 +45528,7 @@
44919
45528
  var stepIconClasses$1 = stepIconClasses;
44920
45529
 
44921
45530
  var _circle;
45531
+ var useThemeProps$6 = createUseThemeProps();
44922
45532
  var useUtilityClasses$m = function useUtilityClasses(ownerState) {
44923
45533
  var classes = ownerState.classes,
44924
45534
  active = ownerState.active,
@@ -44967,7 +45577,7 @@
44967
45577
  };
44968
45578
  });
44969
45579
  var StepIcon = /*#__PURE__*/React__namespace.forwardRef(function StepIcon(inProps, ref) {
44970
- var props = useThemeProps$b({
45580
+ var props = useThemeProps$6({
44971
45581
  props: inProps,
44972
45582
  name: 'MuiStepIcon'
44973
45583
  });
@@ -45071,6 +45681,7 @@
45071
45681
  var stepLabelClasses = generateUtilityClasses$1('MuiStepLabel', ['root', 'horizontal', 'vertical', 'label', 'active', 'completed', 'error', 'disabled', 'iconContainer', 'alternativeLabel', 'labelContainer']);
45072
45682
  var stepLabelClasses$1 = stepLabelClasses;
45073
45683
 
45684
+ var useThemeProps$5 = createUseThemeProps();
45074
45685
  var useUtilityClasses$l = function useUtilityClasses(ownerState) {
45075
45686
  var classes = ownerState.classes,
45076
45687
  orientation = ownerState.orientation,
@@ -45094,28 +45705,30 @@
45094
45705
  var ownerState = props.ownerState;
45095
45706
  return [styles.root, styles[ownerState.orientation]];
45096
45707
  }
45097
- })(function (_ref) {
45098
- var ownerState = _ref.ownerState;
45099
- return _extends(_defineProperty(_defineProperty({
45100
- display: 'flex',
45101
- alignItems: 'center'
45102
- }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45103
- flexDirection: 'column'
45104
- }), "&.".concat(stepLabelClasses$1.disabled), {
45105
- cursor: 'default'
45106
- }), ownerState.orientation === 'vertical' && {
45708
+ })(_defineProperty(_defineProperty(_defineProperty({
45709
+ display: 'flex',
45710
+ alignItems: 'center'
45711
+ }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45712
+ flexDirection: 'column'
45713
+ }), "&.".concat(stepLabelClasses$1.disabled), {
45714
+ cursor: 'default'
45715
+ }), "variants", [{
45716
+ props: {
45717
+ orientation: 'vertical'
45718
+ },
45719
+ style: {
45107
45720
  textAlign: 'left',
45108
45721
  padding: '8px 0'
45109
- });
45110
- });
45722
+ }
45723
+ }]));
45111
45724
  var StepLabelLabel = styled$1('span', {
45112
45725
  name: 'MuiStepLabel',
45113
45726
  slot: 'Label',
45114
45727
  overridesResolver: function overridesResolver(props, styles) {
45115
45728
  return styles.label;
45116
45729
  }
45117
- })(function (_ref2) {
45118
- var theme = _ref2.theme;
45730
+ })(function (_ref) {
45731
+ var theme = _ref.theme;
45119
45732
  return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
45120
45733
  display: 'block',
45121
45734
  transition: theme.transitions.create('color', {
@@ -45139,24 +45752,22 @@
45139
45752
  overridesResolver: function overridesResolver(props, styles) {
45140
45753
  return styles.iconContainer;
45141
45754
  }
45142
- })(function () {
45143
- return _defineProperty({
45144
- flexShrink: 0,
45145
- // Fix IE11 issue
45146
- display: 'flex',
45147
- paddingRight: 8
45148
- }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45149
- paddingRight: 0
45150
- });
45151
- });
45755
+ })(_defineProperty({
45756
+ flexShrink: 0,
45757
+ // Fix IE11 issue
45758
+ display: 'flex',
45759
+ paddingRight: 8
45760
+ }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45761
+ paddingRight: 0
45762
+ }));
45152
45763
  var StepLabelLabelContainer = styled$1('span', {
45153
45764
  name: 'MuiStepLabel',
45154
45765
  slot: 'LabelContainer',
45155
45766
  overridesResolver: function overridesResolver(props, styles) {
45156
45767
  return styles.labelContainer;
45157
45768
  }
45158
- })(function (_ref4) {
45159
- var theme = _ref4.theme;
45769
+ })(function (_ref2) {
45770
+ var theme = _ref2.theme;
45160
45771
  return _defineProperty({
45161
45772
  width: '100%',
45162
45773
  color: (theme.vars || theme).palette.text.secondary
@@ -45165,8 +45776,7 @@
45165
45776
  });
45166
45777
  });
45167
45778
  var StepLabel = /*#__PURE__*/React__namespace.forwardRef(function StepLabel(inProps, ref) {
45168
- var _slotProps$label;
45169
- var props = useThemeProps$b({
45779
+ var props = useThemeProps$5({
45170
45780
  props: inProps,
45171
45781
  name: 'MuiStepLabel'
45172
45782
  });
@@ -45178,11 +45788,13 @@
45178
45788
  error = _props$error === void 0 ? false : _props$error,
45179
45789
  iconProp = props.icon,
45180
45790
  optional = props.optional,
45791
+ _props$slots = props.slots,
45792
+ slots = _props$slots === void 0 ? {} : _props$slots,
45181
45793
  _props$slotProps = props.slotProps,
45182
45794
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
45183
45795
  StepIconComponentProp = props.StepIconComponent,
45184
45796
  StepIconProps = props.StepIconProps,
45185
- other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "error", "icon", "optional", "slotProps", "StepIconComponent", "StepIconProps"]);
45797
+ other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "error", "icon", "optional", "slots", "slotProps", "StepIconComponent", "StepIconProps"]);
45186
45798
  var _React$useContext = React__namespace.useContext(StepperContext$1),
45187
45799
  alternativeLabel = _React$useContext.alternativeLabel,
45188
45800
  orientation = _React$useContext.orientation;
@@ -45205,7 +45817,18 @@
45205
45817
  orientation: orientation
45206
45818
  });
45207
45819
  var classes = useUtilityClasses$l(ownerState);
45208
- var labelSlotProps = (_slotProps$label = slotProps.label) != null ? _slotProps$label : componentsProps.label;
45820
+ var externalForwardedProps = {
45821
+ slots: slots,
45822
+ slotProps: _extends({}, componentsProps, slotProps)
45823
+ };
45824
+ var _useSlot = useSlot('label', {
45825
+ elementType: StepLabelLabel,
45826
+ externalForwardedProps: externalForwardedProps,
45827
+ ownerState: ownerState
45828
+ }),
45829
+ _useSlot2 = _slicedToArray(_useSlot, 2),
45830
+ LabelSlot = _useSlot2[0],
45831
+ labelProps = _useSlot2[1];
45209
45832
  return /*#__PURE__*/jsxRuntime_2(StepLabelRoot, _extends({
45210
45833
  className: clsx(classes.root, className),
45211
45834
  ref: ref,
@@ -45223,10 +45846,8 @@
45223
45846
  }) : null, /*#__PURE__*/jsxRuntime_2(StepLabelLabelContainer, {
45224
45847
  className: classes.labelContainer,
45225
45848
  ownerState: ownerState,
45226
- children: [children ? /*#__PURE__*/jsxRuntime_1(StepLabelLabel, _extends({
45227
- ownerState: ownerState
45228
- }, labelSlotProps, {
45229
- className: clsx(classes.label, labelSlotProps == null ? void 0 : labelSlotProps.className),
45849
+ children: [children ? /*#__PURE__*/jsxRuntime_1(LabelSlot, _extends({}, labelProps, {
45850
+ className: clsx(classes.label, labelProps == null ? void 0 : labelProps.className),
45230
45851
  children: children
45231
45852
  })) : null, optional]
45232
45853
  })]
@@ -45252,6 +45873,7 @@
45252
45873
  /**
45253
45874
  * The props used for each slot inside.
45254
45875
  * @default {}
45876
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
45255
45877
  */
45256
45878
  componentsProps: PropTypes.shape({
45257
45879
  label: PropTypes.object
@@ -45274,7 +45896,14 @@
45274
45896
  * @default {}
45275
45897
  */
45276
45898
  slotProps: PropTypes.shape({
45277
- label: PropTypes.object
45899
+ label: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
45900
+ }),
45901
+ /**
45902
+ * The components used for each slot inside.
45903
+ * @default {}
45904
+ */
45905
+ slots: PropTypes.shape({
45906
+ label: PropTypes.elementType
45278
45907
  }),
45279
45908
  /**
45280
45909
  * The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
@@ -45289,7 +45918,9 @@
45289
45918
  */
45290
45919
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
45291
45920
  } ;
45292
- StepLabel.muiName = 'StepLabel';
45921
+ if (StepLabel) {
45922
+ StepLabel.muiName = 'StepLabel';
45923
+ }
45293
45924
  var StepLabel$1 = StepLabel;
45294
45925
 
45295
45926
  function getStepButtonUtilityClass(slot) {
@@ -45298,6 +45929,7 @@
45298
45929
  var stepButtonClasses = generateUtilityClasses$1('MuiStepButton', ['root', 'horizontal', 'vertical', 'touchRipple']);
45299
45930
  var stepButtonClasses$1 = stepButtonClasses;
45300
45931
 
45932
+ var useThemeProps$4 = createUseThemeProps();
45301
45933
  var useUtilityClasses$k = function useUtilityClasses(ownerState) {
45302
45934
  var classes = ownerState.classes,
45303
45935
  orientation = ownerState.orientation;
@@ -45314,23 +45946,25 @@
45314
45946
  var ownerState = props.ownerState;
45315
45947
  return [_defineProperty({}, "& .".concat(stepButtonClasses$1.touchRipple), styles.touchRipple), styles.root, styles[ownerState.orientation]];
45316
45948
  }
45317
- })(function (_ref2) {
45318
- var ownerState = _ref2.ownerState;
45319
- return _extends({
45320
- width: '100%',
45321
- padding: '24px 16px',
45322
- margin: '-24px -16px',
45323
- boxSizing: 'content-box'
45324
- }, ownerState.orientation === 'vertical' && {
45949
+ })(_defineProperty(_defineProperty({
45950
+ width: '100%',
45951
+ padding: '24px 16px',
45952
+ margin: '-24px -16px',
45953
+ boxSizing: 'content-box'
45954
+ }, "& .".concat(stepButtonClasses$1.touchRipple), {
45955
+ color: 'rgba(0, 0, 0, 0.3)'
45956
+ }), "variants", [{
45957
+ props: {
45958
+ orientation: 'vertical'
45959
+ },
45960
+ style: {
45325
45961
  justifyContent: 'flex-start',
45326
45962
  padding: '8px',
45327
45963
  margin: '-8px'
45328
- }, _defineProperty({}, "& .".concat(stepButtonClasses$1.touchRipple), {
45329
- color: 'rgba(0, 0, 0, 0.3)'
45330
- }));
45331
- });
45964
+ }
45965
+ }]));
45332
45966
  var StepButton = /*#__PURE__*/React__namespace.forwardRef(function StepButton(inProps, ref) {
45333
- var props = useThemeProps$b({
45967
+ var props = useThemeProps$4({
45334
45968
  props: inProps,
45335
45969
  name: 'MuiStepButton'
45336
45970
  });
@@ -45407,6 +46041,7 @@
45407
46041
  var stepConnectorClasses = generateUtilityClasses$1('MuiStepConnector', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'active', 'completed', 'disabled', 'line', 'lineHorizontal', 'lineVertical']);
45408
46042
  var stepConnectorClasses$1 = stepConnectorClasses;
45409
46043
 
46044
+ var useThemeProps$3 = createUseThemeProps();
45410
46045
  var useUtilityClasses$j = function useUtilityClasses(ownerState) {
45411
46046
  var classes = ownerState.classes,
45412
46047
  orientation = ownerState.orientation,
@@ -45427,18 +46062,26 @@
45427
46062
  var ownerState = props.ownerState;
45428
46063
  return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
45429
46064
  }
45430
- })(function (_ref) {
45431
- var ownerState = _ref.ownerState;
45432
- return _extends({
45433
- flex: '1 1 auto'
45434
- }, ownerState.orientation === 'vertical' && {
45435
- marginLeft: 12 // half icon
45436
- }, ownerState.alternativeLabel && {
45437
- position: 'absolute',
45438
- top: 8 + 4,
45439
- left: 'calc(-50% + 20px)',
45440
- right: 'calc(50% + 20px)'
45441
- });
46065
+ })({
46066
+ flex: '1 1 auto',
46067
+ variants: [{
46068
+ props: {
46069
+ orientation: 'vertical'
46070
+ },
46071
+ style: {
46072
+ marginLeft: 12 // half icon
46073
+ }
46074
+ }, {
46075
+ props: {
46076
+ alternativeLabel: true
46077
+ },
46078
+ style: {
46079
+ position: 'absolute',
46080
+ top: 8 + 4,
46081
+ left: 'calc(-50% + 20px)',
46082
+ right: 'calc(50% + 20px)'
46083
+ }
46084
+ }]
45442
46085
  });
45443
46086
  var StepConnectorLine = styled$1('span', {
45444
46087
  name: 'MuiStepConnector',
@@ -45447,24 +46090,34 @@
45447
46090
  var ownerState = props.ownerState;
45448
46091
  return [styles.line, styles["line".concat(capitalize(ownerState.orientation))]];
45449
46092
  }
45450
- })(function (_ref2) {
45451
- var ownerState = _ref2.ownerState,
45452
- theme = _ref2.theme;
46093
+ })(function (_ref) {
46094
+ var theme = _ref.theme;
45453
46095
  var borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];
45454
- return _extends({
46096
+ return {
45455
46097
  display: 'block',
45456
- borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor
45457
- }, ownerState.orientation === 'horizontal' && {
45458
- borderTopStyle: 'solid',
45459
- borderTopWidth: 1
45460
- }, ownerState.orientation === 'vertical' && {
45461
- borderLeftStyle: 'solid',
45462
- borderLeftWidth: 1,
45463
- minHeight: 24
45464
- });
46098
+ borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor,
46099
+ variants: [{
46100
+ props: {
46101
+ orientation: 'horizontal'
46102
+ },
46103
+ style: {
46104
+ borderTopStyle: 'solid',
46105
+ borderTopWidth: 1
46106
+ }
46107
+ }, {
46108
+ props: {
46109
+ orientation: 'vertical'
46110
+ },
46111
+ style: {
46112
+ borderLeftStyle: 'solid',
46113
+ borderLeftWidth: 1,
46114
+ minHeight: 24
46115
+ }
46116
+ }]
46117
+ };
45465
46118
  });
45466
46119
  var StepConnector = /*#__PURE__*/React__namespace.forwardRef(function StepConnector(inProps, ref) {
45467
- var props = useThemeProps$b({
46120
+ var props = useThemeProps$3({
45468
46121
  props: inProps,
45469
46122
  name: 'MuiStepConnector'
45470
46123
  });
@@ -45523,6 +46176,7 @@
45523
46176
  var stepContentClasses = generateUtilityClasses$1('MuiStepContent', ['root', 'last', 'transition']);
45524
46177
  var stepContentClasses$1 = stepContentClasses;
45525
46178
 
46179
+ var useThemeProps$2 = createUseThemeProps();
45526
46180
  var useUtilityClasses$i = function useUtilityClasses(ownerState) {
45527
46181
  var classes = ownerState.classes,
45528
46182
  last = ownerState.last;
@@ -45540,18 +46194,23 @@
45540
46194
  return [styles.root, ownerState.last && styles.last];
45541
46195
  }
45542
46196
  })(function (_ref) {
45543
- var ownerState = _ref.ownerState,
45544
- theme = _ref.theme;
45545
- return _extends({
46197
+ var theme = _ref.theme;
46198
+ return {
45546
46199
  marginLeft: 12,
45547
46200
  // half icon
45548
46201
  paddingLeft: 8 + 12,
45549
46202
  // margin + half icon
45550
46203
  paddingRight: 8,
45551
- borderLeft: theme.vars ? "1px solid ".concat(theme.vars.palette.StepContent.border) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600])
45552
- }, ownerState.last && {
45553
- borderLeft: 'none'
45554
- });
46204
+ borderLeft: theme.vars ? "1px solid ".concat(theme.vars.palette.StepContent.border) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]),
46205
+ variants: [{
46206
+ props: {
46207
+ last: true
46208
+ },
46209
+ style: {
46210
+ borderLeft: 'none'
46211
+ }
46212
+ }]
46213
+ };
45555
46214
  });
45556
46215
  var StepContentTransition = styled$1(Collapse$1, {
45557
46216
  name: 'MuiStepContent',
@@ -45561,7 +46220,7 @@
45561
46220
  }
45562
46221
  })({});
45563
46222
  var StepContent = /*#__PURE__*/React__namespace.forwardRef(function StepContent(inProps, ref) {
45564
- var props = useThemeProps$b({
46223
+ var props = useThemeProps$2({
45565
46224
  props: inProps,
45566
46225
  name: 'MuiStepContent'
45567
46226
  });
@@ -45662,6 +46321,7 @@
45662
46321
  var stepperClasses = generateUtilityClasses$1('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
45663
46322
  var stepperClasses$1 = stepperClasses;
45664
46323
 
46324
+ var useThemeProps$1 = createUseThemeProps();
45665
46325
  var useUtilityClasses$h = function useUtilityClasses(ownerState) {
45666
46326
  var orientation = ownerState.orientation,
45667
46327
  alternativeLabel = ownerState.alternativeLabel,
@@ -45678,22 +46338,35 @@
45678
46338
  var ownerState = props.ownerState;
45679
46339
  return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
45680
46340
  }
45681
- })(function (_ref) {
45682
- var ownerState = _ref.ownerState;
45683
- return _extends({
45684
- display: 'flex'
45685
- }, ownerState.orientation === 'horizontal' && {
45686
- flexDirection: 'row',
45687
- alignItems: 'center'
45688
- }, ownerState.orientation === 'vertical' && {
45689
- flexDirection: 'column'
45690
- }, ownerState.alternativeLabel && {
45691
- alignItems: 'flex-start'
45692
- });
46341
+ })({
46342
+ display: 'flex',
46343
+ variants: [{
46344
+ props: {
46345
+ orientation: 'horizontal'
46346
+ },
46347
+ style: {
46348
+ flexDirection: 'row',
46349
+ alignItems: 'center'
46350
+ }
46351
+ }, {
46352
+ props: {
46353
+ orientation: 'vertical'
46354
+ },
46355
+ style: {
46356
+ flexDirection: 'column'
46357
+ }
46358
+ }, {
46359
+ props: {
46360
+ alternativeLabel: true
46361
+ },
46362
+ style: {
46363
+ alignItems: 'flex-start'
46364
+ }
46365
+ }]
45693
46366
  });
45694
46367
  var defaultConnector = /*#__PURE__*/jsxRuntime_1(StepConnector$1, {});
45695
46368
  var Stepper = /*#__PURE__*/React__namespace.forwardRef(function Stepper(inProps, ref) {
45696
- var props = useThemeProps$b({
46369
+ var props = useThemeProps$1({
45697
46370
  props: inProps,
45698
46371
  name: 'MuiStepper'
45699
46372
  });
@@ -45959,7 +46632,7 @@
45959
46632
  }
45960
46633
  var iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);
45961
46634
  var SwipeableDrawer = /*#__PURE__*/React__namespace.forwardRef(function SwipeableDrawer(inProps, ref) {
45962
- var props = useThemeProps$c({
46635
+ var props = useThemeProps$H({
45963
46636
  name: 'MuiSwipeableDrawer',
45964
46637
  props: inProps
45965
46638
  });
@@ -46875,7 +47548,7 @@
46875
47548
  });
46876
47549
  });
46877
47550
  var Tab = /*#__PURE__*/React__namespace.forwardRef(function Tab(inProps, ref) {
46878
- var props = useThemeProps$b({
47551
+ var props = useThemeProps$G({
46879
47552
  props: inProps,
46880
47553
  name: 'MuiTab'
46881
47554
  });
@@ -47079,7 +47752,7 @@
47079
47752
  });
47080
47753
  var defaultComponent$4 = 'table';
47081
47754
  var Table = /*#__PURE__*/React__namespace.forwardRef(function Table(inProps, ref) {
47082
- var props = useThemeProps$b({
47755
+ var props = useThemeProps$G({
47083
47756
  props: inProps,
47084
47757
  name: 'MuiTable'
47085
47758
  });
@@ -47152,8 +47825,6 @@
47152
47825
  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
47153
47826
  /**
47154
47827
  * Set the header sticky.
47155
- *
47156
- * ⚠️ It doesn't work with IE11.
47157
47828
  * @default false
47158
47829
  */
47159
47830
  stickyHeader: PropTypes.bool,
@@ -47200,7 +47871,7 @@
47200
47871
  };
47201
47872
  var defaultComponent$3 = 'tbody';
47202
47873
  var TableBody = /*#__PURE__*/React__namespace.forwardRef(function TableBody(inProps, ref) {
47203
- var props = useThemeProps$b({
47874
+ var props = useThemeProps$G({
47204
47875
  props: inProps,
47205
47876
  name: 'MuiTableBody'
47206
47877
  });
@@ -47335,7 +48006,7 @@
47335
48006
  * or otherwise a `<td>` element.
47336
48007
  */
47337
48008
  var TableCell = /*#__PURE__*/React__namespace.forwardRef(function TableCell(inProps, ref) {
47338
- var props = useThemeProps$b({
48009
+ var props = useThemeProps$G({
47339
48010
  props: inProps,
47340
48011
  name: 'MuiTableCell'
47341
48012
  });
@@ -47474,7 +48145,7 @@
47474
48145
  overflowX: 'auto'
47475
48146
  });
47476
48147
  var TableContainer = /*#__PURE__*/React__namespace.forwardRef(function TableContainer(inProps, ref) {
47477
- var props = useThemeProps$b({
48148
+ var props = useThemeProps$G({
47478
48149
  props: inProps,
47479
48150
  name: 'MuiTableContainer'
47480
48151
  });
@@ -47549,7 +48220,7 @@
47549
48220
  };
47550
48221
  var defaultComponent$2 = 'tfoot';
47551
48222
  var TableFooter = /*#__PURE__*/React__namespace.forwardRef(function TableFooter(inProps, ref) {
47552
- var props = useThemeProps$b({
48223
+ var props = useThemeProps$G({
47553
48224
  props: inProps,
47554
48225
  name: 'MuiTableFooter'
47555
48226
  });
@@ -47628,7 +48299,7 @@
47628
48299
  };
47629
48300
  var defaultComponent$1 = 'thead';
47630
48301
  var TableHead = /*#__PURE__*/React__namespace.forwardRef(function TableHead(inProps, ref) {
47631
- var props = useThemeProps$b({
48302
+ var props = useThemeProps$G({
47632
48303
  props: inProps,
47633
48304
  name: 'MuiTableHead'
47634
48305
  });
@@ -47724,7 +48395,7 @@
47724
48395
  return ownerState.variant === 'regular' && theme.mixins.toolbar;
47725
48396
  });
47726
48397
  var Toolbar = /*#__PURE__*/React__namespace.forwardRef(function Toolbar(inProps, ref) {
47727
- var props = useThemeProps$b({
48398
+ var props = useThemeProps$G({
47728
48399
  props: inProps,
47729
48400
  name: 'MuiToolbar'
47730
48401
  });
@@ -48098,7 +48769,7 @@
48098
48769
  */
48099
48770
  var TablePagination = /*#__PURE__*/React__namespace.forwardRef(function TablePagination(inProps, ref) {
48100
48771
  var _slotProps$select;
48101
- var props = useThemeProps$b({
48772
+ var props = useThemeProps$G({
48102
48773
  props: inProps,
48103
48774
  name: 'MuiTablePagination'
48104
48775
  });
@@ -48454,7 +49125,7 @@
48454
49125
  * based on the material table element parent (head, body, etc).
48455
49126
  */
48456
49127
  var TableRow = /*#__PURE__*/React__namespace.forwardRef(function TableRow(inProps, ref) {
48457
- var props = useThemeProps$b({
49128
+ var props = useThemeProps$G({
48458
49129
  props: inProps,
48459
49130
  name: 'MuiTableRow'
48460
49131
  });
@@ -48602,7 +49273,7 @@
48602
49273
  * A button based label for placing inside `TableCell` for column sorting.
48603
49274
  */
48604
49275
  var TableSortLabel = /*#__PURE__*/React__namespace.forwardRef(function TableSortLabel(inProps, ref) {
48605
- var props = useThemeProps$b({
49276
+ var props = useThemeProps$G({
48606
49277
  props: inProps,
48607
49278
  name: 'MuiTableSortLabel'
48608
49279
  });
@@ -48813,7 +49484,7 @@
48813
49484
  });
48814
49485
  var TabScrollButton = /*#__PURE__*/React__namespace.forwardRef(function TabScrollButton(inProps, ref) {
48815
49486
  var _slots$StartScrollBut, _slots$EndScrollButto;
48816
- var props = useThemeProps$b({
49487
+ var props = useThemeProps$G({
48817
49488
  props: inProps,
48818
49489
  name: 'MuiTabScrollButton'
48819
49490
  });
@@ -49090,7 +49761,7 @@
49090
49761
  var defaultIndicatorStyle = {};
49091
49762
  var warnedOnceTabPresent = false;
49092
49763
  var Tabs = /*#__PURE__*/React__namespace.forwardRef(function Tabs(inProps, ref) {
49093
- var props = useThemeProps$b({
49764
+ var props = useThemeProps$G({
49094
49765
  props: inProps,
49095
49766
  name: 'MuiTabs'
49096
49767
  });
@@ -49801,7 +50472,7 @@
49801
50472
  * - using the underlying components directly as shown in the demos
49802
50473
  */
49803
50474
  var TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(inProps, ref) {
49804
- var props = useThemeProps$b({
50475
+ var props = useThemeProps$G({
49805
50476
  props: inProps,
49806
50477
  name: 'MuiTextField'
49807
50478
  });
@@ -50217,7 +50888,7 @@
50217
50888
  var resolvedProps = resolveProps(_extends({}, contextProps, {
50218
50889
  selected: isValueSelected(inProps.value, contextValue)
50219
50890
  }), inProps);
50220
- var props = useThemeProps$b({
50891
+ var props = useThemeProps$G({
50221
50892
  props: resolvedProps,
50222
50893
  name: 'MuiToggleButton'
50223
50894
  });
@@ -50421,7 +51092,7 @@
50421
51092
  }));
50422
51093
  });
50423
51094
  var ToggleButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ToggleButtonGroup(inProps, ref) {
50424
- var props = useThemeProps$b({
51095
+ var props = useThemeProps$G({
50425
51096
  props: inProps,
50426
51097
  name: 'MuiToggleButtonGroup'
50427
51098
  });
@@ -51092,7 +51763,7 @@
51092
51763
  exports.useStepContext = useStepContext;
51093
51764
  exports.useStepperContext = useStepperContext;
51094
51765
  exports.useTheme = useTheme;
51095
- exports.useThemeProps = useThemeProps$b;
51766
+ exports.useThemeProps = useThemeProps$G;
51096
51767
  exports.withStyles = withStyles;
51097
51768
  exports.withTheme = withTheme;
51098
51769