@mui/material 5.15.14 → 6.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (545) 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 +1 -1
  5. package/Autocomplete/Autocomplete.js +12 -17
  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.js +156 -164
  10. package/BottomNavigation/BottomNavigation.js +2 -2
  11. package/BottomNavigationAction/BottomNavigationAction.js +40 -24
  12. package/Breadcrumbs/Breadcrumbs.js +2 -2
  13. package/Button/Button.js +2 -4
  14. package/ButtonBase/ButtonBase.js +1 -2
  15. package/ButtonBase/TouchRipple.js +34 -39
  16. package/ButtonGroup/ButtonGroup.js +1 -1
  17. package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
  18. package/ButtonGroup/buttonGroupClasses.js +1 -1
  19. package/CHANGELOG.md +80 -1
  20. package/Card/Card.js +4 -6
  21. package/CardActionArea/CardActionArea.js +3 -4
  22. package/CardActions/CardActions.js +16 -12
  23. package/CardContent/CardContent.js +7 -9
  24. package/CardHeader/CardHeader.js +3 -4
  25. package/CardMedia/CardMedia.js +22 -13
  26. package/Checkbox/Checkbox.js +2 -3
  27. package/Chip/Chip.js +191 -122
  28. package/CircularProgress/CircularProgress.js +10 -15
  29. package/CssBaseline/CssBaseline.js +3 -6
  30. package/DialogTitle/DialogTitle.js +1 -1
  31. package/Divider/Divider.js +140 -81
  32. package/Fab/Fab.js +55 -58
  33. package/FilledInput/FilledInput.js +4 -6
  34. package/FormControl/FormControl.js +30 -15
  35. package/FormControlLabel/FormControlLabel.js +42 -27
  36. package/FormGroup/FormGroup.js +14 -10
  37. package/Grid/Grid.js +2 -4
  38. package/IconButton/IconButton.js +2 -3
  39. package/ImageListItemBar/ImageListItemBar.js +1 -2
  40. package/Input/Input.js +3 -4
  41. package/InputAdornment/InputAdornment.js +1 -2
  42. package/InputBase/InputBase.js +2 -4
  43. package/LinearProgress/LinearProgress.js +16 -24
  44. package/List/List.js +1 -2
  45. package/ListItem/ListItem.js +1 -2
  46. package/ListItemText/ListItemText.js +2 -3
  47. package/Menu/Menu.js +2 -3
  48. package/MobileStepper/MobileStepper.js +80 -47
  49. package/Modal/Modal.js +22 -19
  50. package/NativeSelect/NativeSelectInput.js +1 -2
  51. package/OutlinedInput/OutlinedInput.js +4 -5
  52. package/PaginationItem/PaginationItem.js +1 -2
  53. package/Paper/Paper.js +15 -18
  54. package/Popover/Popover.js +7 -8
  55. package/Popper/Popper.js +3 -4
  56. package/README.md +3 -1
  57. package/Radio/Radio.js +2 -3
  58. package/Radio/RadioButtonIcon.js +1 -2
  59. package/Rating/Rating.js +1 -2
  60. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
  61. package/Select/SelectInput.js +3 -5
  62. package/Skeleton/Skeleton.js +11 -16
  63. package/Slider/Slider.js +187 -205
  64. package/Slider/SliderValueLabel.js +1 -2
  65. package/SnackbarContent/SnackbarContent.js +1 -2
  66. package/SpeedDial/SpeedDial.js +1 -2
  67. package/SpeedDialAction/SpeedDialAction.js +1 -2
  68. package/SpeedDialIcon/SpeedDialIcon.js +1 -2
  69. package/Step/Step.js +23 -14
  70. package/StepButton/StepButton.js +17 -14
  71. package/StepConnector/StepConnector.js +45 -26
  72. package/StepContent/StepContent.js +13 -8
  73. package/StepIcon/StepIcon.js +3 -4
  74. package/StepLabel/StepLabel.d.ts +25 -13
  75. package/StepLabel/StepLabel.js +47 -27
  76. package/Stepper/Stepper.js +29 -15
  77. package/SvgIcon/SvgIcon.js +26 -30
  78. package/SwipeableDrawer/SwipeableDrawer.js +2 -4
  79. package/Switch/Switch.js +1 -2
  80. package/TabScrollButton/TabScrollButton.js +2 -3
  81. package/TablePagination/TablePagination.js +2 -4
  82. package/TablePagination/TablePaginationActions.js +11 -13
  83. package/TableSortLabel/TableSortLabel.js +1 -2
  84. package/Tabs/Tabs.js +6 -10
  85. package/TextField/TextField.js +1 -2
  86. package/Tooltip/Tooltip.js +14 -17
  87. package/index.js +1 -1
  88. package/internal/SwitchBase.js +1 -2
  89. package/legacy/Accordion/Accordion.js +1 -2
  90. package/legacy/AccordionSummary/AccordionSummary.js +1 -2
  91. package/legacy/Alert/Alert.js +1 -2
  92. package/legacy/Autocomplete/Autocomplete.js +2 -3
  93. package/legacy/AvatarGroup/AvatarGroup.js +19 -11
  94. package/legacy/Backdrop/Backdrop.js +66 -44
  95. package/legacy/Badge/Badge.js +1 -2
  96. package/legacy/BottomNavigation/BottomNavigation.js +2 -2
  97. package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
  98. package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
  99. package/legacy/Button/Button.js +1 -2
  100. package/legacy/ButtonBase/ButtonBase.js +1 -2
  101. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  102. package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
  103. package/legacy/Card/Card.js +4 -6
  104. package/legacy/CardActionArea/CardActionArea.js +3 -4
  105. package/legacy/CardActions/CardActions.js +16 -13
  106. package/legacy/CardContent/CardContent.js +7 -9
  107. package/legacy/CardHeader/CardHeader.js +3 -4
  108. package/legacy/CardMedia/CardMedia.js +24 -16
  109. package/legacy/Chip/Chip.js +199 -107
  110. package/legacy/CssBaseline/CssBaseline.js +1 -2
  111. package/legacy/Divider/Divider.js +148 -88
  112. package/legacy/FormControl/FormControl.js +37 -23
  113. package/legacy/FormControlLabel/FormControlLabel.js +42 -25
  114. package/legacy/FormGroup/FormGroup.js +15 -12
  115. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
  116. package/legacy/InputAdornment/InputAdornment.js +1 -2
  117. package/legacy/InputBase/InputBase.js +1 -2
  118. package/legacy/LinearProgress/LinearProgress.js +1 -2
  119. package/legacy/List/List.js +1 -2
  120. package/legacy/ListItem/ListItem.js +1 -2
  121. package/legacy/ListItemText/ListItemText.js +1 -2
  122. package/legacy/MobileStepper/MobileStepper.js +80 -48
  123. package/legacy/Modal/Modal.js +20 -15
  124. package/legacy/NativeSelect/NativeSelectInput.js +1 -2
  125. package/legacy/OutlinedInput/OutlinedInput.js +1 -2
  126. package/legacy/PaginationItem/PaginationItem.js +1 -2
  127. package/legacy/Popover/Popover.js +2 -2
  128. package/legacy/Radio/RadioButtonIcon.js +1 -2
  129. package/legacy/Rating/Rating.js +1 -2
  130. package/legacy/Select/SelectInput.js +1 -2
  131. package/legacy/Slider/Slider.js +1 -2
  132. package/legacy/Slider/SliderValueLabel.js +1 -2
  133. package/legacy/SnackbarContent/SnackbarContent.js +1 -2
  134. package/legacy/SpeedDial/SpeedDial.js +1 -2
  135. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
  136. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
  137. package/legacy/Step/Step.js +22 -14
  138. package/legacy/StepButton/StepButton.js +17 -15
  139. package/legacy/StepConnector/StepConnector.js +46 -28
  140. package/legacy/StepContent/StepContent.js +15 -10
  141. package/legacy/StepIcon/StepIcon.js +3 -4
  142. package/legacy/StepLabel/StepLabel.js +65 -44
  143. package/legacy/Stepper/Stepper.js +28 -15
  144. package/legacy/SvgIcon/SvgIcon.js +1 -2
  145. package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
  146. package/legacy/Switch/Switch.js +1 -2
  147. package/legacy/TablePagination/TablePagination.js +1 -2
  148. package/legacy/TablePagination/TablePaginationActions.js +1 -2
  149. package/legacy/TableSortLabel/TableSortLabel.js +1 -2
  150. package/legacy/Tabs/Tabs.js +1 -2
  151. package/legacy/TextField/TextField.js +1 -2
  152. package/legacy/Tooltip/Tooltip.js +1 -2
  153. package/legacy/index.js +1 -1
  154. package/legacy/internal/SwitchBase.js +1 -2
  155. package/legacy/styles/CssVarsProvider.js +1 -3
  156. package/legacy/styles/createGetSelector.js +21 -0
  157. package/legacy/styles/experimental_extendTheme.js +26 -7
  158. package/modern/Accordion/Accordion.js +1 -2
  159. package/modern/AccordionSummary/AccordionSummary.js +1 -2
  160. package/modern/Alert/Alert.js +1 -2
  161. package/modern/Autocomplete/Autocomplete.js +2 -3
  162. package/modern/AvatarGroup/AvatarGroup.js +25 -22
  163. package/modern/Backdrop/Backdrop.js +50 -32
  164. package/modern/Badge/Badge.js +1 -2
  165. package/modern/BottomNavigation/BottomNavigation.js +2 -2
  166. package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
  167. package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
  168. package/modern/Button/Button.js +1 -2
  169. package/modern/ButtonBase/ButtonBase.js +1 -2
  170. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  171. package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
  172. package/modern/Card/Card.js +4 -6
  173. package/modern/CardActionArea/CardActionArea.js +3 -4
  174. package/modern/CardActions/CardActions.js +16 -12
  175. package/modern/CardContent/CardContent.js +7 -9
  176. package/modern/CardHeader/CardHeader.js +3 -4
  177. package/modern/CardMedia/CardMedia.js +22 -13
  178. package/modern/Chip/Chip.js +191 -122
  179. package/modern/CssBaseline/CssBaseline.js +1 -2
  180. package/modern/Divider/Divider.js +140 -81
  181. package/modern/FormControl/FormControl.js +30 -15
  182. package/modern/FormControlLabel/FormControlLabel.js +38 -22
  183. package/modern/FormGroup/FormGroup.js +14 -10
  184. package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
  185. package/modern/InputAdornment/InputAdornment.js +1 -2
  186. package/modern/InputBase/InputBase.js +1 -2
  187. package/modern/LinearProgress/LinearProgress.js +1 -2
  188. package/modern/List/List.js +1 -2
  189. package/modern/ListItem/ListItem.js +1 -2
  190. package/modern/ListItemText/ListItemText.js +1 -2
  191. package/modern/MobileStepper/MobileStepper.js +80 -47
  192. package/modern/Modal/Modal.js +15 -11
  193. package/modern/NativeSelect/NativeSelectInput.js +1 -2
  194. package/modern/OutlinedInput/OutlinedInput.js +1 -2
  195. package/modern/PaginationItem/PaginationItem.js +1 -2
  196. package/modern/Popover/Popover.js +2 -2
  197. package/modern/Radio/RadioButtonIcon.js +1 -2
  198. package/modern/Rating/Rating.js +1 -2
  199. package/modern/Select/SelectInput.js +1 -2
  200. package/modern/Slider/Slider.js +1 -2
  201. package/modern/Slider/SliderValueLabel.js +1 -2
  202. package/modern/SnackbarContent/SnackbarContent.js +1 -2
  203. package/modern/SpeedDial/SpeedDial.js +1 -2
  204. package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
  205. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
  206. package/modern/Step/Step.js +23 -14
  207. package/modern/StepButton/StepButton.js +17 -14
  208. package/modern/StepConnector/StepConnector.js +45 -26
  209. package/modern/StepContent/StepContent.js +13 -8
  210. package/modern/StepIcon/StepIcon.js +3 -4
  211. package/modern/StepLabel/StepLabel.js +47 -26
  212. package/modern/Stepper/Stepper.js +29 -15
  213. package/modern/SvgIcon/SvgIcon.js +1 -2
  214. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
  215. package/modern/Switch/Switch.js +1 -2
  216. package/modern/TablePagination/TablePagination.js +1 -2
  217. package/modern/TablePagination/TablePaginationActions.js +1 -2
  218. package/modern/TableSortLabel/TableSortLabel.js +1 -2
  219. package/modern/Tabs/Tabs.js +1 -2
  220. package/modern/TextField/TextField.js +1 -2
  221. package/modern/Tooltip/Tooltip.js +1 -2
  222. package/modern/index.js +1 -1
  223. package/modern/internal/SwitchBase.js +1 -2
  224. package/modern/styles/CssVarsProvider.js +1 -3
  225. package/modern/styles/createGetSelector.js +21 -0
  226. package/modern/styles/experimental_extendTheme.js +21 -8
  227. package/node/Accordion/Accordion.js +1 -1
  228. package/node/Accordion/AccordionContext.js +1 -1
  229. package/node/Accordion/index.js +1 -1
  230. package/node/AccordionActions/AccordionActions.js +1 -1
  231. package/node/AccordionActions/index.js +1 -1
  232. package/node/AccordionDetails/AccordionDetails.js +1 -1
  233. package/node/AccordionDetails/index.js +1 -1
  234. package/node/AccordionSummary/AccordionSummary.js +1 -1
  235. package/node/AccordionSummary/index.js +1 -1
  236. package/node/Alert/Alert.js +1 -1
  237. package/node/Alert/index.js +1 -1
  238. package/node/AlertTitle/AlertTitle.js +1 -1
  239. package/node/AlertTitle/index.js +1 -1
  240. package/node/AppBar/AppBar.js +1 -1
  241. package/node/AppBar/index.js +1 -1
  242. package/node/Autocomplete/Autocomplete.js +2 -2
  243. package/node/Autocomplete/index.js +1 -1
  244. package/node/Avatar/Avatar.js +1 -1
  245. package/node/Avatar/index.js +1 -1
  246. package/node/AvatarGroup/AvatarGroup.js +27 -23
  247. package/node/AvatarGroup/index.js +1 -1
  248. package/node/Backdrop/Backdrop.js +53 -36
  249. package/node/Backdrop/index.js +1 -1
  250. package/node/Badge/Badge.js +1 -1
  251. package/node/Badge/index.js +1 -1
  252. package/node/BottomNavigation/BottomNavigation.js +5 -5
  253. package/node/BottomNavigation/index.js +1 -1
  254. package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
  255. package/node/BottomNavigationAction/index.js +1 -1
  256. package/node/Box/index.js +1 -1
  257. package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  258. package/node/Breadcrumbs/Breadcrumbs.js +7 -7
  259. package/node/Breadcrumbs/index.js +1 -1
  260. package/node/Button/Button.js +1 -1
  261. package/node/Button/index.js +1 -1
  262. package/node/ButtonBase/ButtonBase.js +1 -1
  263. package/node/ButtonBase/Ripple.js +1 -1
  264. package/node/ButtonBase/TouchRipple.js +1 -1
  265. package/node/ButtonBase/index.js +1 -1
  266. package/node/ButtonGroup/ButtonGroup.js +2 -2
  267. package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
  268. package/node/ButtonGroup/ButtonGroupContext.js +1 -1
  269. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  270. package/node/ButtonGroup/index.js +1 -1
  271. package/node/Card/Card.js +7 -9
  272. package/node/Card/index.js +1 -1
  273. package/node/CardActionArea/CardActionArea.js +6 -6
  274. package/node/CardActionArea/index.js +1 -1
  275. package/node/CardActions/CardActions.js +19 -15
  276. package/node/CardActions/index.js +1 -1
  277. package/node/CardContent/CardContent.js +10 -12
  278. package/node/CardContent/index.js +1 -1
  279. package/node/CardHeader/CardHeader.js +8 -8
  280. package/node/CardHeader/index.js +1 -1
  281. package/node/CardMedia/CardMedia.js +25 -16
  282. package/node/CardMedia/index.js +1 -1
  283. package/node/Checkbox/Checkbox.js +1 -1
  284. package/node/Checkbox/index.js +1 -1
  285. package/node/Chip/Chip.js +194 -124
  286. package/node/Chip/index.js +1 -1
  287. package/node/CircularProgress/CircularProgress.js +1 -1
  288. package/node/CircularProgress/index.js +1 -1
  289. package/node/Collapse/Collapse.js +1 -1
  290. package/node/Collapse/index.js +1 -1
  291. package/node/Container/index.js +1 -1
  292. package/node/CssBaseline/CssBaseline.js +1 -1
  293. package/node/Dialog/Dialog.js +1 -1
  294. package/node/Dialog/DialogContext.js +1 -1
  295. package/node/Dialog/index.js +1 -1
  296. package/node/DialogActions/DialogActions.js +1 -1
  297. package/node/DialogActions/index.js +1 -1
  298. package/node/DialogContent/DialogContent.js +1 -1
  299. package/node/DialogContent/index.js +1 -1
  300. package/node/DialogContentText/DialogContentText.js +1 -1
  301. package/node/DialogContentText/index.js +1 -1
  302. package/node/DialogTitle/DialogTitle.js +1 -1
  303. package/node/DialogTitle/index.js +1 -1
  304. package/node/Divider/Divider.js +144 -85
  305. package/node/Divider/index.js +1 -1
  306. package/node/Drawer/Drawer.js +1 -1
  307. package/node/Drawer/index.js +1 -1
  308. package/node/Fab/Fab.js +1 -1
  309. package/node/Fab/index.js +1 -1
  310. package/node/Fade/Fade.js +1 -1
  311. package/node/FilledInput/FilledInput.js +1 -1
  312. package/node/FilledInput/index.js +1 -1
  313. package/node/FormControl/FormControl.js +33 -18
  314. package/node/FormControl/FormControlContext.js +1 -1
  315. package/node/FormControl/index.js +1 -1
  316. package/node/FormControl/useFormControl.js +1 -1
  317. package/node/FormControlLabel/FormControlLabel.js +41 -24
  318. package/node/FormControlLabel/index.js +1 -1
  319. package/node/FormGroup/FormGroup.js +17 -13
  320. package/node/FormGroup/index.js +1 -1
  321. package/node/FormHelperText/FormHelperText.js +1 -1
  322. package/node/FormHelperText/index.js +1 -1
  323. package/node/FormLabel/FormLabel.js +1 -1
  324. package/node/FormLabel/index.js +1 -1
  325. package/node/GlobalStyles/GlobalStyles.js +1 -1
  326. package/node/Grid/Grid.js +1 -1
  327. package/node/Grid/GridContext.js +1 -1
  328. package/node/Grid/index.js +1 -1
  329. package/node/Grow/Grow.js +1 -1
  330. package/node/Hidden/Hidden.js +1 -1
  331. package/node/Hidden/HiddenCss.js +1 -1
  332. package/node/Hidden/HiddenJs.js +1 -1
  333. package/node/Hidden/withWidth.js +1 -1
  334. package/node/Icon/Icon.js +1 -1
  335. package/node/Icon/index.js +1 -1
  336. package/node/IconButton/IconButton.js +1 -1
  337. package/node/IconButton/index.js +1 -1
  338. package/node/ImageList/ImageList.js +1 -1
  339. package/node/ImageList/ImageListContext.js +1 -1
  340. package/node/ImageList/index.js +1 -1
  341. package/node/ImageListItem/ImageListItem.js +1 -1
  342. package/node/ImageListItem/index.js +1 -1
  343. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  344. package/node/ImageListItemBar/index.js +1 -1
  345. package/node/Input/Input.js +1 -1
  346. package/node/Input/index.js +1 -1
  347. package/node/InputAdornment/InputAdornment.js +1 -1
  348. package/node/InputAdornment/index.js +1 -1
  349. package/node/InputBase/InputBase.js +1 -1
  350. package/node/InputBase/index.js +1 -1
  351. package/node/InputLabel/InputLabel.js +1 -1
  352. package/node/InputLabel/index.js +1 -1
  353. package/node/LinearProgress/LinearProgress.js +1 -1
  354. package/node/LinearProgress/index.js +1 -1
  355. package/node/Link/Link.js +1 -1
  356. package/node/Link/index.js +1 -1
  357. package/node/List/List.js +1 -1
  358. package/node/List/ListContext.js +1 -1
  359. package/node/List/index.js +1 -1
  360. package/node/ListItem/ListItem.js +1 -1
  361. package/node/ListItem/index.js +1 -1
  362. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  363. package/node/ListItemAvatar/index.js +1 -1
  364. package/node/ListItemButton/ListItemButton.js +1 -1
  365. package/node/ListItemButton/index.js +1 -1
  366. package/node/ListItemIcon/ListItemIcon.js +1 -1
  367. package/node/ListItemIcon/index.js +1 -1
  368. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  369. package/node/ListItemSecondaryAction/index.js +1 -1
  370. package/node/ListItemText/ListItemText.js +1 -1
  371. package/node/ListItemText/index.js +1 -1
  372. package/node/ListSubheader/ListSubheader.js +1 -1
  373. package/node/ListSubheader/index.js +1 -1
  374. package/node/Menu/Menu.js +1 -1
  375. package/node/Menu/index.js +1 -1
  376. package/node/MenuItem/MenuItem.js +1 -1
  377. package/node/MenuItem/index.js +1 -1
  378. package/node/MenuList/MenuList.js +1 -1
  379. package/node/MobileStepper/MobileStepper.js +86 -52
  380. package/node/MobileStepper/index.js +1 -1
  381. package/node/Modal/Modal.js +18 -13
  382. package/node/Modal/index.js +1 -1
  383. package/node/NativeSelect/NativeSelect.js +1 -1
  384. package/node/NativeSelect/NativeSelectInput.js +1 -1
  385. package/node/NativeSelect/index.js +1 -1
  386. package/node/OutlinedInput/NotchedOutline.js +1 -1
  387. package/node/OutlinedInput/OutlinedInput.js +1 -1
  388. package/node/OutlinedInput/index.js +1 -1
  389. package/node/Pagination/Pagination.js +1 -1
  390. package/node/Pagination/index.js +1 -1
  391. package/node/PaginationItem/PaginationItem.js +1 -1
  392. package/node/PaginationItem/index.js +1 -1
  393. package/node/Paper/Paper.js +1 -1
  394. package/node/Paper/index.js +1 -1
  395. package/node/Popover/Popover.js +6 -6
  396. package/node/Popover/index.js +1 -1
  397. package/node/Popper/Popper.js +1 -1
  398. package/node/Radio/Radio.js +1 -1
  399. package/node/Radio/RadioButtonIcon.js +1 -1
  400. package/node/Radio/index.js +1 -1
  401. package/node/RadioGroup/RadioGroup.js +1 -1
  402. package/node/RadioGroup/RadioGroupContext.js +1 -1
  403. package/node/RadioGroup/useRadioGroup.js +1 -1
  404. package/node/Rating/Rating.js +1 -1
  405. package/node/Rating/index.js +1 -1
  406. package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  407. package/node/ScopedCssBaseline/index.js +1 -1
  408. package/node/Select/Select.js +1 -1
  409. package/node/Select/SelectInput.js +1 -1
  410. package/node/Select/index.js +1 -1
  411. package/node/Skeleton/Skeleton.js +1 -1
  412. package/node/Skeleton/index.js +1 -1
  413. package/node/Slide/Slide.js +1 -1
  414. package/node/Slider/Slider.js +1 -1
  415. package/node/Slider/SliderValueLabel.js +1 -1
  416. package/node/Slider/index.js +1 -1
  417. package/node/Snackbar/Snackbar.js +1 -1
  418. package/node/Snackbar/index.js +1 -1
  419. package/node/SnackbarContent/SnackbarContent.js +1 -1
  420. package/node/SnackbarContent/index.js +1 -1
  421. package/node/SpeedDial/SpeedDial.js +1 -1
  422. package/node/SpeedDial/index.js +1 -1
  423. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  424. package/node/SpeedDialAction/index.js +1 -1
  425. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  426. package/node/SpeedDialIcon/index.js +1 -1
  427. package/node/Step/Step.js +25 -15
  428. package/node/Step/StepContext.js +1 -1
  429. package/node/Step/index.js +1 -1
  430. package/node/StepButton/StepButton.js +20 -17
  431. package/node/StepButton/index.js +1 -1
  432. package/node/StepConnector/StepConnector.js +49 -30
  433. package/node/StepConnector/index.js +1 -1
  434. package/node/StepContent/StepContent.js +17 -12
  435. package/node/StepContent/index.js +1 -1
  436. package/node/StepIcon/StepIcon.js +6 -6
  437. package/node/StepIcon/index.js +1 -1
  438. package/node/StepLabel/StepLabel.js +52 -31
  439. package/node/StepLabel/index.js +1 -1
  440. package/node/Stepper/Stepper.js +32 -18
  441. package/node/Stepper/StepperContext.js +1 -1
  442. package/node/Stepper/index.js +1 -1
  443. package/node/SvgIcon/SvgIcon.js +1 -1
  444. package/node/SvgIcon/index.js +1 -1
  445. package/node/SwipeableDrawer/SwipeArea.js +1 -1
  446. package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
  447. package/node/Switch/Switch.js +1 -1
  448. package/node/Switch/index.js +1 -1
  449. package/node/Tab/Tab.js +1 -1
  450. package/node/Tab/index.js +1 -1
  451. package/node/TabScrollButton/TabScrollButton.js +1 -1
  452. package/node/TabScrollButton/index.js +1 -1
  453. package/node/Table/Table.js +1 -1
  454. package/node/Table/TableContext.js +1 -1
  455. package/node/Table/Tablelvl2Context.js +1 -1
  456. package/node/Table/index.js +1 -1
  457. package/node/TableBody/TableBody.js +1 -1
  458. package/node/TableBody/index.js +1 -1
  459. package/node/TableCell/TableCell.js +1 -1
  460. package/node/TableCell/index.js +1 -1
  461. package/node/TableContainer/TableContainer.js +1 -1
  462. package/node/TableContainer/index.js +1 -1
  463. package/node/TableFooter/TableFooter.js +1 -1
  464. package/node/TableFooter/index.js +1 -1
  465. package/node/TableHead/TableHead.js +1 -1
  466. package/node/TableHead/index.js +1 -1
  467. package/node/TablePagination/TablePagination.js +1 -1
  468. package/node/TablePagination/TablePaginationActions.js +1 -1
  469. package/node/TablePagination/index.js +1 -1
  470. package/node/TableRow/TableRow.js +1 -1
  471. package/node/TableRow/index.js +1 -1
  472. package/node/TableSortLabel/TableSortLabel.js +1 -1
  473. package/node/TableSortLabel/index.js +1 -1
  474. package/node/Tabs/ScrollbarSize.js +1 -1
  475. package/node/Tabs/Tabs.js +1 -1
  476. package/node/Tabs/index.js +1 -1
  477. package/node/TextField/TextField.js +1 -1
  478. package/node/TextField/index.js +1 -1
  479. package/node/ToggleButton/ToggleButton.js +1 -1
  480. package/node/ToggleButton/index.js +1 -1
  481. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  482. package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
  483. package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
  484. package/node/ToggleButtonGroup/index.js +1 -1
  485. package/node/Toolbar/Toolbar.js +1 -1
  486. package/node/Toolbar/index.js +1 -1
  487. package/node/Tooltip/Tooltip.js +1 -1
  488. package/node/Tooltip/index.js +1 -1
  489. package/node/Typography/Typography.js +1 -1
  490. package/node/Typography/index.js +1 -1
  491. package/node/Unstable_Grid2/index.js +1 -1
  492. package/node/Zoom/Zoom.js +1 -1
  493. package/node/index.js +2 -2
  494. package/node/internal/SwitchBase.js +1 -1
  495. package/node/internal/svg-icons/Add.js +1 -1
  496. package/node/internal/svg-icons/ArrowDownward.js +1 -1
  497. package/node/internal/svg-icons/ArrowDropDown.js +1 -1
  498. package/node/internal/svg-icons/Cancel.js +1 -1
  499. package/node/internal/svg-icons/CheckBox.js +1 -1
  500. package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
  501. package/node/internal/svg-icons/CheckCircle.js +1 -1
  502. package/node/internal/svg-icons/Close.js +1 -1
  503. package/node/internal/svg-icons/ErrorOutline.js +1 -1
  504. package/node/internal/svg-icons/FirstPage.js +1 -1
  505. package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
  506. package/node/internal/svg-icons/InfoOutlined.js +1 -1
  507. package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
  508. package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
  509. package/node/internal/svg-icons/LastPage.js +1 -1
  510. package/node/internal/svg-icons/MoreHoriz.js +1 -1
  511. package/node/internal/svg-icons/NavigateBefore.js +1 -1
  512. package/node/internal/svg-icons/NavigateNext.js +1 -1
  513. package/node/internal/svg-icons/Person.js +1 -1
  514. package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
  515. package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
  516. package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
  517. package/node/internal/svg-icons/Star.js +1 -1
  518. package/node/internal/svg-icons/StarBorder.js +1 -1
  519. package/node/internal/svg-icons/SuccessOutlined.js +1 -1
  520. package/node/internal/svg-icons/Warning.js +1 -1
  521. package/node/styles/CssVarsProvider.js +1 -3
  522. package/node/styles/ThemeProvider.js +1 -1
  523. package/node/styles/createGetSelector.js +29 -0
  524. package/node/styles/createTheme.js +1 -1
  525. package/node/styles/experimental_extendTheme.js +22 -9
  526. package/node/styles/index.js +1 -1
  527. package/node/styles/useTheme.js +1 -1
  528. package/node/useAutocomplete/index.js +1 -1
  529. package/node/useScrollTrigger/useScrollTrigger.js +1 -1
  530. package/node/useTouchRipple/useTouchRipple.js +1 -1
  531. package/node/utils/createSvgIcon.js +1 -1
  532. package/package.json +4 -4
  533. package/styles/CssVarsProvider.js +1 -3
  534. package/styles/createGetSelector.d.ts +10 -0
  535. package/styles/createGetSelector.js +21 -0
  536. package/styles/createTheme.js +1 -1
  537. package/styles/excludeVariablesFromRoot.d.ts +1 -1
  538. package/styles/experimental_extendTheme.d.ts +23 -5
  539. package/styles/experimental_extendTheme.js +28 -16
  540. package/styles/shouldSkipGeneratingVar.js +1 -2
  541. package/transitions/utils.js +2 -3
  542. package/umd/material-ui.development.js +1136 -736
  543. package/umd/material-ui.production.min.js +4 -4
  544. package/useTouchRipple/useTouchRipple.js +4 -8
  545. package/utils/useSlot.js +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.14
2
+ * @mui/material v6.0.0-alpha.0
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) {
@@ -7169,7 +7169,7 @@
7169
7169
  return resolveProps(theme.components[name].defaultProps, props);
7170
7170
  }
7171
7171
 
7172
- function useThemeProps$c(_ref) {
7172
+ function useThemeProps$C(_ref) {
7173
7173
  var props = _ref.props,
7174
7174
  name = _ref.name,
7175
7175
  defaultTheme = _ref.defaultTheme,
@@ -7663,7 +7663,7 @@
7663
7663
  }
7664
7664
  function private_safeEmphasize(color, coefficient, warning) {
7665
7665
  try {
7666
- return private_safeEmphasize(color, coefficient);
7666
+ return emphasize(color, coefficient);
7667
7667
  } catch (error) {
7668
7668
  if (warning && "development" !== 'production') {
7669
7669
  console.warn(warning);
@@ -8100,7 +8100,7 @@
8100
8100
  return _this.clear;
8101
8101
  };
8102
8102
  }
8103
- _createClass(Timeout, [{
8103
+ return _createClass(Timeout, [{
8104
8104
  key: "start",
8105
8105
  value:
8106
8106
  /**
@@ -8120,7 +8120,6 @@
8120
8120
  return new Timeout();
8121
8121
  }
8122
8122
  }]);
8123
- return Timeout;
8124
8123
  }();
8125
8124
  function useTimeout() {
8126
8125
  var timeout = useLazyRef(Timeout.create).current;
@@ -8907,8 +8906,7 @@
8907
8906
  designSystemColorScheme = options.defaultColorScheme,
8908
8907
  _options$disableTrans = options.disableTransitionOnChange,
8909
8908
  designSystemTransitionOnChange = _options$disableTrans === void 0 ? false : _options$disableTrans,
8910
- resolveTheme = options.resolveTheme,
8911
- excludeVariablesFromRoot = options.excludeVariablesFromRoot;
8909
+ resolveTheme = options.resolveTheme;
8912
8910
  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
8911
  console.error("MUI: `".concat(designSystemColorScheme, "` does not exist in `theme.colorSchemes`."));
8914
8912
  }
@@ -8924,6 +8922,7 @@
8924
8922
  return value;
8925
8923
  };
8926
8924
  function CssVarsProvider(props) {
8925
+ var _restThemeProp$genera, _theme$generateStyleS;
8927
8926
  var children = props.children,
8928
8927
  _props$theme = props.theme,
8929
8928
  themeProp = _props$theme === void 0 ? defaultTheme : _props$theme,
@@ -8961,15 +8960,8 @@
8961
8960
  colorSchemes = _ref$colorSchemes === void 0 ? {} : _ref$colorSchemes,
8962
8961
  _ref$components = _ref.components,
8963
8962
  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
8963
  cssVarPrefix = _ref.cssVarPrefix,
8972
- restThemeProp = _objectWithoutProperties(_ref, ["colorSchemes", "components", "generateCssVars", "cssVarPrefix"]);
8964
+ restThemeProp = _objectWithoutProperties(_ref, ["colorSchemes", "components", "cssVarPrefix"]);
8973
8965
  var allColorSchemes = Object.keys(colorSchemes);
8974
8966
  var defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
8975
8967
  var defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
@@ -9019,33 +9011,22 @@
9019
9011
  return colorScheme;
9020
9012
  }();
9021
9013
 
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
9014
+ // 2. get the `vars` object that refers to the CSS custom properties
9015
+ var themeVars = ((_restThemeProp$genera = restThemeProp.generateThemeVars) == null ? void 0 : _restThemeProp$genera.call(restThemeProp)) || restThemeProp.vars;
9016
+
9017
+ // 3. Start composing the theme object
9026
9018
  var theme = _extends({}, restThemeProp, {
9027
9019
  components: components,
9028
9020
  colorSchemes: colorSchemes,
9029
9021
  cssVarPrefix: cssVarPrefix,
9030
- vars: rootVars,
9031
- getColorSchemeSelector: function getColorSchemeSelector(targetColorScheme) {
9032
- return "[".concat(attribute, "=\"").concat(targetColorScheme, "\"] &");
9033
- }
9022
+ vars: themeVars
9034
9023
  });
9035
9024
 
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 = {};
9025
+ // 4. Resolve the color scheme and merge it to the theme
9041
9026
  Object.entries(colorSchemes).forEach(function (_ref2) {
9042
9027
  var _ref3 = _slicedToArray(_ref2, 2),
9043
9028
  key = _ref3[0],
9044
9029
  scheme = _ref3[1];
9045
- var _generateCssVars2 = generateCssVars(key),
9046
- css = _generateCssVars2.css,
9047
- vars = _generateCssVars2.vars;
9048
- theme.vars = deepmerge(theme.vars, vars);
9049
9030
  if (key === calculatedColorScheme) {
9050
9031
  // 4.1 Merge the selected color scheme to the theme
9051
9032
  Object.keys(scheme).forEach(function (schemeKey) {
@@ -9060,30 +9041,24 @@
9060
9041
  theme.palette.colorScheme = key;
9061
9042
  }
9062
9043
  }
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
9044
  });
9086
- theme.vars = deepmerge(theme.vars, rootVars);
9045
+ var resolvedDefaultColorScheme = function () {
9046
+ if (typeof defaultColorScheme === 'string') {
9047
+ return defaultColorScheme;
9048
+ }
9049
+ if (defaultMode === 'dark') {
9050
+ return defaultColorScheme.dark;
9051
+ }
9052
+ return defaultColorScheme.light;
9053
+ }();
9054
+ themeProp.defaultColorScheme = resolvedDefaultColorScheme;
9055
+ themeProp.colorSchemeSelector = colorSchemeSelector;
9056
+ themeProp.attribute = attribute;
9057
+ if (!theme.getColorSchemeSelector) {
9058
+ theme.getColorSchemeSelector = function (targetColorScheme) {
9059
+ return "[".concat(attribute, "=\"").concat(targetColorScheme, "\"] &");
9060
+ };
9061
+ }
9087
9062
 
9088
9063
  // 5. Declaring effects
9089
9064
  // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.
@@ -9138,14 +9113,12 @@
9138
9113
  shouldGenerateStyleSheet = false;
9139
9114
  }
9140
9115
  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
- })]
9116
+ children: [shouldGenerateStyleSheet && /*#__PURE__*/jsxRuntime_1(React__namespace.Fragment, {
9117
+ children: (((_theme$generateStyleS = theme.generateStyleSheets) == null ? void 0 : _theme$generateStyleS.call(theme)) || []).map(function (styles, index) {
9118
+ return /*#__PURE__*/jsxRuntime_1(GlobalStyles$2, {
9119
+ styles: styles
9120
+ }, index);
9121
+ })
9149
9122
  }), /*#__PURE__*/jsxRuntime_1(ThemeProvider$1, {
9150
9123
  themeId: scopedTheme ? themeId : undefined,
9151
9124
  theme: resolveTheme ? resolveTheme(theme) : theme,
@@ -9406,7 +9379,10 @@
9406
9379
  };
9407
9380
  }
9408
9381
 
9409
- function prepareCssVars(theme, parserConfig) {
9382
+ function prepareCssVars(theme) {
9383
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9384
+ var getSelector = _ref.getSelector,
9385
+ parserConfig = _objectWithoutProperties(_ref, ["getSelector"]);
9410
9386
  // @ts-ignore - ignore components do not exist
9411
9387
  var _theme$colorSchemes = theme.colorSchemes,
9412
9388
  colorSchemes = _theme$colorSchemes === void 0 ? {} : _theme$colorSchemes;
@@ -9420,12 +9396,12 @@
9420
9396
  rootVarsWithDefaults = _cssVarsParser.varsWithDefaults;
9421
9397
  var themeVars = rootVarsWithDefaults;
9422
9398
  var colorSchemesMap = {};
9423
- var light = colorSchemes[defaultColorScheme],
9399
+ var defaultScheme = colorSchemes[defaultColorScheme],
9424
9400
  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];
9401
+ Object.entries(otherColorSchemes || {}).forEach(function (_ref2) {
9402
+ var _ref3 = _slicedToArray(_ref2, 2),
9403
+ key = _ref3[0],
9404
+ scheme = _ref3[1];
9429
9405
  var _cssVarsParser2 = cssVarsParser(scheme, parserConfig),
9430
9406
  vars = _cssVarsParser2.vars,
9431
9407
  css = _cssVarsParser2.css,
@@ -9436,9 +9412,9 @@
9436
9412
  vars: vars
9437
9413
  };
9438
9414
  });
9439
- if (light) {
9415
+ if (defaultScheme) {
9440
9416
  // default color scheme vars should be merged last to set as default
9441
- var _cssVarsParser3 = cssVarsParser(light, parserConfig),
9417
+ var _cssVarsParser3 = cssVarsParser(defaultScheme, parserConfig),
9442
9418
  _css = _cssVarsParser3.css,
9443
9419
  vars = _cssVarsParser3.vars,
9444
9420
  varsWithDefaults = _cssVarsParser3.varsWithDefaults;
@@ -9448,27 +9424,43 @@
9448
9424
  vars: vars
9449
9425
  };
9450
9426
  }
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
- };
9427
+ var generateThemeVars = function generateThemeVars() {
9428
+ var vars = _extends({}, rootVars);
9429
+ Object.entries(colorSchemesMap).forEach(function (_ref4) {
9430
+ var _ref5 = _slicedToArray(_ref4, 2),
9431
+ schemeVars = _ref5[1].vars;
9432
+ vars = deepmerge(vars, schemeVars);
9433
+ });
9434
+ return vars;
9435
+ };
9436
+ var generateStyleSheets = function generateStyleSheets() {
9437
+ var stylesheets = [];
9438
+ var colorScheme = theme.defaultColorScheme || 'light';
9439
+ function insertStyleSheet(selector, css) {
9440
+ if (Object.keys(css).length) {
9441
+ stylesheets.push(typeof selector === 'string' ? _defineProperty({}, selector, _extends({}, css)) : selector);
9442
+ }
9443
+ }
9444
+ insertStyleSheet((getSelector == null ? void 0 : getSelector(undefined, _extends({}, rootCss))) || ':root', rootCss);
9445
+ var defaultSchemeVal = colorSchemesMap[colorScheme],
9446
+ rest = _objectWithoutProperties(colorSchemesMap, [colorScheme].map(toPropertyKey));
9447
+ if (defaultSchemeVal) {
9448
+ // default color scheme has to come before other color schemes
9449
+ var _css2 = defaultSchemeVal.css;
9450
+ insertStyleSheet((getSelector == null ? void 0 : getSelector(colorScheme, _extends({}, _css2))) || "[".concat(theme.attribute || 'data-color-scheme', "=\"").concat(colorScheme, "\"]"), _css2);
9451
+ }
9452
+ Object.entries(rest).forEach(function (_ref7) {
9453
+ var _ref8 = _slicedToArray(_ref7, 2),
9454
+ key = _ref8[0],
9455
+ css = _ref8[1].css;
9456
+ insertStyleSheet((getSelector == null ? void 0 : getSelector(key, _extends({}, css))) || "[".concat(theme.attribute || 'data-color-scheme', "=\"").concat(key, "\"]"), css);
9457
+ });
9458
+ return stylesheets;
9468
9459
  };
9469
9460
  return {
9470
9461
  vars: themeVars,
9471
- generateCssVars: generateCssVars
9462
+ generateThemeVars: generateThemeVars,
9463
+ generateStyleSheets: generateStyleSheets
9472
9464
  };
9473
9465
  }
9474
9466
 
@@ -9482,7 +9474,7 @@
9482
9474
  }
9483
9475
  });
9484
9476
  var useThemePropsDefault$2 = function useThemePropsDefault(inProps) {
9485
- return useThemeProps$c({
9477
+ return useThemeProps$C({
9486
9478
  props: inProps,
9487
9479
  name: 'MuiContainer',
9488
9480
  defaultTheme: defaultTheme$6
@@ -9870,7 +9862,7 @@
9870
9862
  }
9871
9863
  });
9872
9864
  function useThemePropsDefault$1(props) {
9873
- return useThemeProps$c({
9865
+ return useThemeProps$C({
9874
9866
  props: props,
9875
9867
  name: 'MuiGrid',
9876
9868
  defaultTheme: defaultTheme$5
@@ -10037,7 +10029,7 @@
10037
10029
  }
10038
10030
  });
10039
10031
  function useThemePropsDefault(props) {
10040
- return useThemeProps$c({
10032
+ return useThemeProps$C({
10041
10033
  props: props,
10042
10034
  name: 'MuiStack',
10043
10035
  defaultTheme: defaultTheme$4
@@ -11079,10 +11071,10 @@
11079
11071
  return theme[THEME_ID] || theme;
11080
11072
  }
11081
11073
 
11082
- function useThemeProps$b(_ref) {
11074
+ function useThemeProps$B(_ref) {
11083
11075
  var props = _ref.props,
11084
11076
  name = _ref.name;
11085
- return useThemeProps$c({
11077
+ return useThemeProps$C({
11086
11078
  props: props,
11087
11079
  name: name,
11088
11080
  defaultTheme: defaultTheme$3,
@@ -11158,6 +11150,36 @@
11158
11150
  };
11159
11151
  var getOverlayAlpha$1 = getOverlayAlpha;
11160
11152
 
11153
+ /**
11154
+ * @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
11155
+ */
11156
+ var excludeVariablesFromRoot = function excludeVariablesFromRoot(cssVarPrefix) {
11157
+ return [].concat(_toConsumableArray(_toConsumableArray(Array(24)).map(function (_, index) {
11158
+ return "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "overlays-").concat(index + 1);
11159
+ })), ["--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkBg"), "--".concat(cssVarPrefix ? "".concat(cssVarPrefix, "-") : '', "palette-AppBar-darkColor")]);
11160
+ };
11161
+ var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
11162
+
11163
+ var defaultGetSelector = (function (theme) {
11164
+ return function (colorScheme, css) {
11165
+ if (theme.defaultColorScheme === colorScheme) {
11166
+ if (colorScheme === 'dark') {
11167
+ var excludedVariables = {};
11168
+ excludeVariablesFromRoot$1(theme.cssVarPrefix).forEach(function (cssVar) {
11169
+ excludedVariables[cssVar] = css[cssVar];
11170
+ delete css[cssVar];
11171
+ });
11172
+ return _defineProperty(_defineProperty({}, "[".concat(theme.attribute, "=\"").concat(String(colorScheme), "\"]"), excludedVariables), theme.colorSchemeSelector, css);
11173
+ }
11174
+ return "".concat(theme.colorSchemeSelector, ", [").concat(theme.attribute, "=\"").concat(String(colorScheme), "\"]");
11175
+ }
11176
+ if (colorScheme) {
11177
+ return "[".concat(theme.attribute, "=\"").concat(String(colorScheme), "\"]");
11178
+ }
11179
+ return theme.colorSchemeSelector;
11180
+ };
11181
+ });
11182
+
11161
11183
  var defaultDarkOverlays = _toConsumableArray(Array(25)).map(function (_, index) {
11162
11184
  if (index === 0) {
11163
11185
  return undefined;
@@ -11211,7 +11233,8 @@
11211
11233
  cssVarPrefix = _options$cssVarPrefix === void 0 ? 'mui' : _options$cssVarPrefix,
11212
11234
  _options$shouldSkipGe = options.shouldSkipGeneratingVar,
11213
11235
  shouldSkipGeneratingVar$1 = _options$shouldSkipGe === void 0 ? shouldSkipGeneratingVar : _options$shouldSkipGe,
11214
- input = _objectWithoutProperties(options, ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar"]);
11236
+ getSelector = options.getSelector,
11237
+ input = _objectWithoutProperties(options, ["colorSchemes", "cssVarPrefix", "shouldSkipGeneratingVar", "getSelector"]);
11215
11238
  var getCssVar = createGetCssVar(cssVarPrefix);
11216
11239
  var _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
11217
11240
  palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
@@ -11224,7 +11247,9 @@
11224
11247
  }, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
11225
11248
  }),
11226
11249
  darkPalette = _createThemeWithoutVa2.palette;
11227
- var theme = _extends({}, muiTheme, {
11250
+ var theme = _extends({
11251
+ defaultColorScheme: 'light'
11252
+ }, muiTheme, {
11228
11253
  cssVarPrefix: cssVarPrefix,
11229
11254
  getCssVar: getCssVar,
11230
11255
  colorSchemes: _extends({}, colorSchemesInput, {
@@ -11466,13 +11491,27 @@
11466
11491
  }, theme);
11467
11492
  var parserConfig = {
11468
11493
  prefix: cssVarPrefix,
11469
- shouldSkipGeneratingVar: shouldSkipGeneratingVar$1
11494
+ shouldSkipGeneratingVar: shouldSkipGeneratingVar$1,
11495
+ getSelector: getSelector || defaultGetSelector(theme)
11470
11496
  };
11471
11497
  var _prepareCssVars = prepareCssVars(theme, parserConfig),
11472
- themeVars = _prepareCssVars.vars,
11473
- generateCssVars = _prepareCssVars.generateCssVars;
11474
- theme.vars = themeVars;
11475
- theme.generateCssVars = generateCssVars;
11498
+ vars = _prepareCssVars.vars,
11499
+ generateThemeVars = _prepareCssVars.generateThemeVars,
11500
+ generateStyleSheets = _prepareCssVars.generateStyleSheets;
11501
+ theme.attribute = 'data-mui-color-scheme';
11502
+ theme.colorSchemeSelector = ':root';
11503
+ theme.vars = vars;
11504
+ Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(function (_ref) {
11505
+ var _ref2 = _slicedToArray(_ref, 2),
11506
+ key = _ref2[0],
11507
+ value = _ref2[1];
11508
+ theme[key] = value;
11509
+ });
11510
+ theme.generateThemeVars = generateThemeVars;
11511
+ theme.generateStyleSheets = generateStyleSheets;
11512
+ theme.getColorSchemeSelector = function (colorScheme) {
11513
+ return "[".concat(theme.attribute, "=\"").concat(colorScheme, "\"] &");
11514
+ };
11476
11515
  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar$1;
11477
11516
  theme.unstable_sxConfig = _extends({}, defaultSxConfig$1, input == null ? void 0 : input.unstable_sxConfig);
11478
11517
  theme.unstable_sx = function sx(props) {
@@ -11484,16 +11523,6 @@
11484
11523
  return theme;
11485
11524
  }
11486
11525
 
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
11526
  var defaultTheme$1 = extendTheme();
11498
11527
  var _createCssVarsProvide = createCssVarsProvider({
11499
11528
  themeId: THEME_ID,
@@ -11516,8 +11545,7 @@
11516
11545
  });
11517
11546
  };
11518
11547
  return newTheme;
11519
- },
11520
- excludeVariablesFromRoot: excludeVariablesFromRoot$1
11548
+ }
11521
11549
  }),
11522
11550
  CssVarsProvider = _createCssVarsProvide.CssVarsProvider,
11523
11551
  useColorScheme = _createCssVarsProvide.useColorScheme,
@@ -11582,7 +11610,7 @@
11582
11610
  };
11583
11611
  });
11584
11612
  var SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProps, ref) {
11585
- var props = useThemeProps$b({
11613
+ var props = useThemeProps$B({
11586
11614
  props: inProps,
11587
11615
  name: 'MuiSvgIcon'
11588
11616
  });
@@ -11741,7 +11769,7 @@
11741
11769
 
11742
11770
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
11743
11771
  function createUseThemeProps(name) {
11744
- return useThemeProps$b;
11772
+ return useThemeProps$B;
11745
11773
  }
11746
11774
 
11747
11775
  function _setPrototypeOf(o, p) {
@@ -12831,7 +12859,7 @@
12831
12859
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
12832
12860
  */
12833
12861
  var Collapse = /*#__PURE__*/React__namespace.forwardRef(function Collapse(inProps, ref) {
12834
- var props = useThemeProps$b({
12862
+ var props = useThemeProps$B({
12835
12863
  props: inProps,
12836
12864
  name: 'MuiCollapse'
12837
12865
  });
@@ -13161,7 +13189,7 @@
13161
13189
  }));
13162
13190
  });
13163
13191
  var Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
13164
- var props = useThemeProps$b({
13192
+ var props = useThemeProps$B({
13165
13193
  props: inProps,
13166
13194
  name: 'MuiPaper'
13167
13195
  });
@@ -13538,7 +13566,7 @@
13538
13566
  var accordionClasses = generateUtilityClasses$1('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
13539
13567
  var accordionClasses$1 = accordionClasses;
13540
13568
 
13541
- var useThemeProps$a = createUseThemeProps();
13569
+ var useThemeProps$A = createUseThemeProps();
13542
13570
  var useUtilityClasses$1L = function useUtilityClasses(ownerState) {
13543
13571
  var classes = ownerState.classes,
13544
13572
  square = ownerState.square,
@@ -13636,7 +13664,7 @@
13636
13664
  };
13637
13665
  });
13638
13666
  var Accordion = /*#__PURE__*/React__namespace.forwardRef(function Accordion(inProps, ref) {
13639
- var props = useThemeProps$a({
13667
+ var props = useThemeProps$A({
13640
13668
  props: inProps,
13641
13669
  name: 'MuiAccordion'
13642
13670
  });
@@ -13830,7 +13858,7 @@
13830
13858
  var accordionActionsClasses = generateUtilityClasses$1('MuiAccordionActions', ['root', 'spacing']);
13831
13859
  var accordionActionsClasses$1 = accordionActionsClasses;
13832
13860
 
13833
- var useThemeProps$9 = createUseThemeProps();
13861
+ var useThemeProps$z = createUseThemeProps();
13834
13862
  var useUtilityClasses$1K = function useUtilityClasses(ownerState) {
13835
13863
  var classes = ownerState.classes,
13836
13864
  disableSpacing = ownerState.disableSpacing;
@@ -13863,7 +13891,7 @@
13863
13891
  }]
13864
13892
  });
13865
13893
  var AccordionActions = /*#__PURE__*/React__namespace.forwardRef(function AccordionActions(inProps, ref) {
13866
- var props = useThemeProps$9({
13894
+ var props = useThemeProps$z({
13867
13895
  props: inProps,
13868
13896
  name: 'MuiAccordionActions'
13869
13897
  });
@@ -13916,7 +13944,7 @@
13916
13944
  var accordionDetailsClasses = generateUtilityClasses$1('MuiAccordionDetails', ['root']);
13917
13945
  var accordionDetailsClasses$1 = accordionDetailsClasses;
13918
13946
 
13919
- var useThemeProps$8 = createUseThemeProps();
13947
+ var useThemeProps$y = createUseThemeProps();
13920
13948
  var useUtilityClasses$1J = function useUtilityClasses(ownerState) {
13921
13949
  var classes = ownerState.classes;
13922
13950
  var slots = {
@@ -13937,7 +13965,7 @@
13937
13965
  };
13938
13966
  });
13939
13967
  var AccordionDetails = /*#__PURE__*/React__namespace.forwardRef(function AccordionDetails(inProps, ref) {
13940
- var props = useThemeProps$8({
13968
+ var props = useThemeProps$y({
13941
13969
  props: inProps,
13942
13970
  name: 'MuiAccordionDetails'
13943
13971
  });
@@ -14117,7 +14145,7 @@
14117
14145
  * TODO v5: Make private
14118
14146
  */
14119
14147
  var TouchRipple = /*#__PURE__*/React__namespace.forwardRef(function TouchRipple(inProps, ref) {
14120
- var props = useThemeProps$b({
14148
+ var props = useThemeProps$B({
14121
14149
  props: inProps,
14122
14150
  name: 'MuiTouchRipple'
14123
14151
  });
@@ -14393,7 +14421,7 @@
14393
14421
  * It contains a load of style reset and some focus/ripple logic.
14394
14422
  */
14395
14423
  var ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(inProps, ref) {
14396
- var props = useThemeProps$b({
14424
+ var props = useThemeProps$B({
14397
14425
  props: inProps,
14398
14426
  name: 'MuiButtonBase'
14399
14427
  });
@@ -14804,7 +14832,7 @@
14804
14832
  var accordionSummaryClasses = generateUtilityClasses$1('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
14805
14833
  var accordionSummaryClasses$1 = accordionSummaryClasses;
14806
14834
 
14807
- var useThemeProps$7 = createUseThemeProps();
14835
+ var useThemeProps$x = createUseThemeProps();
14808
14836
  var useUtilityClasses$1H = function useUtilityClasses(ownerState) {
14809
14837
  var classes = ownerState.classes,
14810
14838
  expanded = ownerState.expanded,
@@ -14895,7 +14923,7 @@
14895
14923
  });
14896
14924
  });
14897
14925
  var AccordionSummary = /*#__PURE__*/React__namespace.forwardRef(function AccordionSummary(inProps, ref) {
14898
- var props = useThemeProps$7({
14926
+ var props = useThemeProps$x({
14899
14927
  props: inProps,
14900
14928
  name: 'MuiAccordionSummary'
14901
14929
  });
@@ -15082,7 +15110,7 @@
15082
15110
  * regarding the available icon options.
15083
15111
  */
15084
15112
  var IconButton = /*#__PURE__*/React__namespace.forwardRef(function IconButton(inProps, ref) {
15085
- var props = useThemeProps$b({
15113
+ var props = useThemeProps$B({
15086
15114
  props: inProps,
15087
15115
  name: 'MuiIconButton'
15088
15116
  });
@@ -15209,7 +15237,7 @@
15209
15237
  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
15238
  }), 'Close');
15211
15239
 
15212
- var useThemeProps$6 = createUseThemeProps();
15240
+ var useThemeProps$w = createUseThemeProps();
15213
15241
  var useUtilityClasses$1F = function useUtilityClasses(ownerState) {
15214
15242
  var variant = ownerState.variant,
15215
15243
  color = ownerState.color,
@@ -15357,7 +15385,7 @@
15357
15385
  })
15358
15386
  };
15359
15387
  var Alert = /*#__PURE__*/React__namespace.forwardRef(function Alert(inProps, ref) {
15360
- var props = useThemeProps$6({
15388
+ var props = useThemeProps$w({
15361
15389
  props: inProps,
15362
15390
  name: 'MuiAlert'
15363
15391
  });
@@ -15642,7 +15670,7 @@
15642
15670
  return colorTransformations$1[color] || color;
15643
15671
  };
15644
15672
  var Typography = /*#__PURE__*/React__namespace.forwardRef(function Typography(inProps, ref) {
15645
- var themeProps = useThemeProps$b({
15673
+ var themeProps = useThemeProps$B({
15646
15674
  props: inProps,
15647
15675
  name: 'MuiTypography'
15648
15676
  });
@@ -15768,7 +15796,7 @@
15768
15796
  var alertTitleClasses = generateUtilityClasses$1('MuiAlertTitle', ['root']);
15769
15797
  var alertTitleClasses$1 = alertTitleClasses;
15770
15798
 
15771
- var useThemeProps$5 = createUseThemeProps();
15799
+ var useThemeProps$v = createUseThemeProps();
15772
15800
  var useUtilityClasses$1D = function useUtilityClasses(ownerState) {
15773
15801
  var classes = ownerState.classes;
15774
15802
  var slots = {
@@ -15790,7 +15818,7 @@
15790
15818
  };
15791
15819
  });
15792
15820
  var AlertTitle = /*#__PURE__*/React__namespace.forwardRef(function AlertTitle(inProps, ref) {
15793
- var props = useThemeProps$5({
15821
+ var props = useThemeProps$v({
15794
15822
  props: inProps,
15795
15823
  name: 'MuiAlertTitle'
15796
15824
  });
@@ -15928,7 +15956,7 @@
15928
15956
  }));
15929
15957
  });
15930
15958
  var AppBar = /*#__PURE__*/React__namespace.forwardRef(function AppBar(inProps, ref) {
15931
- var props = useThemeProps$b({
15959
+ var props = useThemeProps$B({
15932
15960
  props: inProps,
15933
15961
  name: 'MuiAppBar'
15934
15962
  });
@@ -16795,7 +16823,7 @@
16795
16823
  this.modals = [];
16796
16824
  this.containers = [];
16797
16825
  }
16798
- _createClass(ModalManager, [{
16826
+ return _createClass(ModalManager, [{
16799
16827
  key: "add",
16800
16828
  value: function add(modal, container) {
16801
16829
  var modalIndex = this.modals.indexOf(modal);
@@ -16882,7 +16910,6 @@
16882
16910
  return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;
16883
16911
  }
16884
16912
  }]);
16885
- return ModalManager;
16886
16913
  }();
16887
16914
 
16888
16915
  function getContainer(container) {
@@ -21445,7 +21472,7 @@
21445
21472
  var Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
21446
21473
  var _slots$root;
21447
21474
  var theme = useTheme$3();
21448
- var props = useThemeProps$b({
21475
+ var props = useThemeProps$B({
21449
21476
  props: inProps,
21450
21477
  name: 'MuiPopper'
21451
21478
  });
@@ -21670,7 +21697,7 @@
21670
21697
  });
21671
21698
  });
21672
21699
  var ListSubheader = /*#__PURE__*/React__namespace.forwardRef(function ListSubheader(inProps, ref) {
21673
- var props = useThemeProps$b({
21700
+ var props = useThemeProps$B({
21674
21701
  props: inProps,
21675
21702
  name: 'MuiListSubheader'
21676
21703
  });
@@ -21761,6 +21788,7 @@
21761
21788
  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
21789
  var chipClasses$1 = chipClasses;
21763
21790
 
21791
+ var useThemeProps$u = createUseThemeProps();
21764
21792
  var useUtilityClasses$1z = function useUtilityClasses(ownerState) {
21765
21793
  var classes = ownerState.classes,
21766
21794
  disabled = ownerState.disabled,
@@ -21793,10 +21821,9 @@
21793
21821
  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
21822
  }
21795
21823
  })(function (_ref11) {
21796
- var theme = _ref11.theme,
21797
- ownerState = _ref11.ownerState;
21824
+ var theme = _ref11.theme;
21798
21825
  var textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
21799
- return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
21826
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
21800
21827
  maxWidth: '100%',
21801
21828
  fontFamily: theme.typography.fontFamily,
21802
21829
  fontSize: theme.typography.pxToRem(13),
@@ -21842,18 +21869,10 @@
21842
21869
  width: 18,
21843
21870
  height: 18,
21844
21871
  fontSize: theme.typography.pxToRem(10)
21845
- }), "& .".concat(chipClasses$1.icon), _extends({
21872
+ }), "& .".concat(chipClasses$1.icon), {
21846
21873
  marginLeft: 5,
21847
21874
  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({
21875
+ }), "& .".concat(chipClasses$1.deleteIcon), {
21857
21876
  WebkitTapHighlightColor: 'transparent',
21858
21877
  color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") : alpha(theme.palette.text.primary, 0.26),
21859
21878
  fontSize: 22,
@@ -21862,77 +21881,163 @@
21862
21881
  '&:hover': {
21863
21882
  color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.4)") : alpha(theme.palette.text.primary, 0.4)
21864
21883
  }
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
- }));
21884
+ }), "variants", [{
21885
+ props: {
21886
+ size: 'small'
21887
+ },
21888
+ style: _defineProperty(_defineProperty({
21889
+ height: 24
21890
+ }, "& .".concat(chipClasses$1.icon), {
21891
+ fontSize: 18,
21892
+ marginLeft: 4,
21893
+ marginRight: -4
21894
+ }), "& .".concat(chipClasses$1.deleteIcon), {
21895
+ fontSize: 16,
21896
+ marginRight: 4,
21897
+ marginLeft: -4
21898
+ })
21899
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref12) {
21900
+ var _ref13 = _slicedToArray(_ref12, 2),
21901
+ value = _ref13[1];
21902
+ return value.main && value.contrastText;
21903
+ }).map(function (_ref14) {
21904
+ var _ref15 = _slicedToArray(_ref14, 1),
21905
+ color = _ref15[0];
21906
+ return {
21907
+ props: {
21908
+ color: color
21909
+ },
21910
+ style: _defineProperty({
21911
+ backgroundColor: (theme.vars || theme).palette[color].main,
21912
+ color: (theme.vars || theme).palette[color].contrastText
21913
+ }, "& .".concat(chipClasses$1.deleteIcon), {
21914
+ color: theme.vars ? "rgba(".concat(theme.vars.palette[color].contrastTextChannel, " / 0.7)") : alpha(theme.palette[color].contrastText, 0.7),
21915
+ '&:hover, &:active': {
21916
+ color: (theme.vars || theme).palette[color].contrastText
21917
+ }
21918
+ })
21919
+ };
21920
+ })), [{
21921
+ props: function props(_props) {
21922
+ return _props.iconColor === _props.color;
21923
+ },
21924
+ style: _defineProperty({}, "& .".concat(chipClasses$1.icon), {
21925
+ color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
21926
+ })
21927
+ }, {
21928
+ props: function props(_props2) {
21929
+ return _props2.iconColor === _props2.color && _props2.color !== 'default';
21930
+ },
21931
+ style: _defineProperty({}, "& .".concat(chipClasses$1.icon), {
21932
+ color: 'inherit'
21933
+ })
21934
+ }, {
21935
+ props: {
21936
+ onDelete: true
21937
+ },
21938
+ style: _defineProperty({}, "&.".concat(chipClasses$1.focusVisible), {
21939
+ 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)
21940
+ })
21941
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref16) {
21942
+ var _ref17 = _slicedToArray(_ref16, 2),
21943
+ value = _ref17[1];
21944
+ return value.dark;
21945
+ }).map(function (_ref18) {
21946
+ var _ref19 = _slicedToArray(_ref18, 1),
21947
+ color = _ref19[0];
21948
+ return {
21949
+ props: {
21950
+ color: color,
21951
+ onDelete: true
21952
+ },
21953
+ style: _defineProperty({}, "&.".concat(chipClasses$1.focusVisible), {
21954
+ background: (theme.vars || theme).palette[color].dark
21955
+ })
21956
+ };
21957
+ })), [{
21958
+ props: {
21959
+ clickable: true
21960
+ },
21961
+ style: _defineProperty(_defineProperty({
21962
+ userSelect: 'none',
21963
+ WebkitTapHighlightColor: 'transparent',
21964
+ cursor: 'pointer',
21965
+ '&:hover': {
21966
+ 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)
21967
+ }
21968
+ }, "&.".concat(chipClasses$1.focusVisible), {
21969
+ 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)
21970
+ }), '&:active', {
21971
+ boxShadow: (theme.vars || theme).shadows[1]
21972
+ })
21973
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref20) {
21974
+ var _ref21 = _slicedToArray(_ref20, 2),
21975
+ value = _ref21[1];
21976
+ return value.dark;
21977
+ }).map(function (_ref22) {
21978
+ var _ref23 = _slicedToArray(_ref22, 1),
21979
+ color = _ref23[0];
21980
+ return {
21981
+ props: {
21982
+ color: color,
21983
+ clickable: true
21984
+ },
21985
+ style: _defineProperty({}, "&:hover, &.".concat(chipClasses$1.focusVisible), {
21986
+ backgroundColor: (theme.vars || theme).palette[color].dark
21987
+ })
21988
+ };
21989
+ })), [{
21990
+ props: {
21991
+ variant: 'outlined'
21992
+ },
21993
+ style: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
21994
+ backgroundColor: 'transparent',
21995
+ 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])
21996
+ }, "&.".concat(chipClasses$1.clickable, ":hover"), {
21997
+ backgroundColor: (theme.vars || theme).palette.action.hover
21998
+ }), "&.".concat(chipClasses$1.focusVisible), {
21999
+ backgroundColor: (theme.vars || theme).palette.action.focus
22000
+ }), "& .".concat(chipClasses$1.avatar), {
22001
+ marginLeft: 4
22002
+ }), "& .".concat(chipClasses$1.avatarSmall), {
22003
+ marginLeft: 2
22004
+ }), "& .".concat(chipClasses$1.icon), {
22005
+ marginLeft: 4
22006
+ }), "& .".concat(chipClasses$1.iconSmall), {
22007
+ marginLeft: 2
22008
+ }), "& .".concat(chipClasses$1.deleteIcon), {
22009
+ marginRight: 5
22010
+ }), "& .".concat(chipClasses$1.deleteIconSmall), {
22011
+ marginRight: 3
22012
+ })
22013
+ }], _toConsumableArray(Object.entries(theme.palette).filter(function (_ref24) {
22014
+ var _ref25 = _slicedToArray(_ref24, 2),
22015
+ value = _ref25[1];
22016
+ return value.main;
22017
+ }) // no need to check for mainChannel as it's calculated from main
22018
+ .map(function (_ref26) {
22019
+ var _ref27 = _slicedToArray(_ref26, 1),
22020
+ color = _ref27[0];
22021
+ return {
22022
+ props: {
22023
+ variant: 'outlined',
22024
+ color: color
22025
+ },
22026
+ style: _defineProperty(_defineProperty(_defineProperty({
22027
+ color: (theme.vars || theme).palette[color].main,
22028
+ border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.7)") : alpha(theme.palette[color].main, 0.7))
22029
+ }, "&.".concat(chipClasses$1.clickable, ":hover"), {
22030
+ 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)
22031
+ }), "&.".concat(chipClasses$1.focusVisible), {
22032
+ 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)
22033
+ }), "& .".concat(chipClasses$1.deleteIcon), {
22034
+ color: theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.7)") : alpha(theme.palette[color].main, 0.7),
22035
+ '&:hover, &:active': {
22036
+ color: (theme.vars || theme).palette[color].main
22037
+ }
22038
+ })
22039
+ };
22040
+ }))));
21936
22041
  });
21937
22042
  var ChipLabel = styled$1('span', {
21938
22043
  name: 'MuiChip',
@@ -21942,24 +22047,38 @@
21942
22047
  var size = ownerState.size;
21943
22048
  return [styles.label, styles["label".concat(capitalize(size))]];
21944
22049
  }
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
- });
22050
+ })({
22051
+ overflow: 'hidden',
22052
+ textOverflow: 'ellipsis',
22053
+ paddingLeft: 12,
22054
+ paddingRight: 12,
22055
+ whiteSpace: 'nowrap',
22056
+ variants: [{
22057
+ props: {
22058
+ variant: 'outlined'
22059
+ },
22060
+ style: {
22061
+ paddingLeft: 11,
22062
+ paddingRight: 11
22063
+ }
22064
+ }, {
22065
+ props: {
22066
+ size: 'small'
22067
+ },
22068
+ style: {
22069
+ paddingLeft: 8,
22070
+ paddingRight: 8
22071
+ }
22072
+ }, {
22073
+ props: {
22074
+ size: 'small',
22075
+ variant: 'outlined'
22076
+ },
22077
+ style: {
22078
+ paddingLeft: 7,
22079
+ paddingRight: 7
22080
+ }
22081
+ }]
21963
22082
  });
21964
22083
  function isDeleteKeyboardEvent(keyboardEvent) {
21965
22084
  return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
@@ -21969,7 +22088,7 @@
21969
22088
  * Chips represent complex entities in small blocks, such as a contact.
21970
22089
  */
21971
22090
  var Chip = /*#__PURE__*/React__namespace.forwardRef(function Chip(inProps, ref) {
21972
- var props = useThemeProps$b({
22091
+ var props = useThemeProps$u({
21973
22092
  props: inProps,
21974
22093
  name: 'MuiChip'
21975
22094
  });
@@ -22457,7 +22576,7 @@
22457
22576
  */
22458
22577
  var InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(inProps, ref) {
22459
22578
  var _slotProps$input;
22460
- var props = useThemeProps$b({
22579
+ var props = useThemeProps$B({
22461
22580
  props: inProps,
22462
22581
  name: 'MuiInputBase'
22463
22582
  });
@@ -22997,7 +23116,7 @@
22997
23116
  var autocompleteClasses$1 = autocompleteClasses;
22998
23117
 
22999
23118
  var _styled, _ClearIcon, _ArrowDropDownIcon;
23000
- var useThemeProps$4 = createUseThemeProps();
23119
+ var useThemeProps$t = createUseThemeProps();
23001
23120
  var useUtilityClasses$1x = function useUtilityClasses(ownerState) {
23002
23121
  var classes = ownerState.classes,
23003
23122
  disablePortal = ownerState.disablePortal,
@@ -23316,7 +23435,7 @@
23316
23435
  }));
23317
23436
  var Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
23318
23437
  var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
23319
- var props = useThemeProps$4({
23438
+ var props = useThemeProps$t({
23320
23439
  props: inProps,
23321
23440
  name: 'MuiAutocomplete'
23322
23441
  });
@@ -23563,7 +23682,7 @@
23563
23682
  }));
23564
23683
  };
23565
23684
  var autocompletePopper = null;
23566
- if (!loading && groupedOptions.length > 0) {
23685
+ if (groupedOptions.length > 0) {
23567
23686
  autocompletePopper = renderAutocompletePopperChildren( /*#__PURE__*/jsxRuntime_1(AutocompleteListbox, _extends({
23568
23687
  as: ListboxComponent,
23569
23688
  className: classes.listbox,
@@ -24092,7 +24211,7 @@
24092
24211
  var avatarClasses = generateUtilityClasses$1('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);
24093
24212
  var avatarClasses$1 = avatarClasses;
24094
24213
 
24095
- var useThemeProps$3 = createUseThemeProps();
24214
+ var useThemeProps$s = createUseThemeProps();
24096
24215
  var useUtilityClasses$1w = function useUtilityClasses(ownerState) {
24097
24216
  var classes = ownerState.classes,
24098
24217
  variant = ownerState.variant,
@@ -24224,7 +24343,7 @@
24224
24343
  return loaded;
24225
24344
  }
24226
24345
  var Avatar = /*#__PURE__*/React__namespace.forwardRef(function Avatar(inProps, ref) {
24227
- var props = useThemeProps$3({
24346
+ var props = useThemeProps$s({
24228
24347
  props: inProps,
24229
24348
  name: 'MuiAvatar'
24230
24349
  });
@@ -24383,8 +24502,9 @@
24383
24502
 
24384
24503
  var SPACINGS$2 = {
24385
24504
  small: -16,
24386
- medium: null
24505
+ medium: -8
24387
24506
  };
24507
+ var useThemeProps$r = createUseThemeProps();
24388
24508
  var useUtilityClasses$1v = function useUtilityClasses(ownerState) {
24389
24509
  var classes = ownerState.classes;
24390
24510
  var slots = {
@@ -24400,21 +24520,22 @@
24400
24520
  return _extends(_defineProperty({}, "& .".concat(avatarGroupClasses$1.avatar), styles.avatar), styles.root);
24401
24521
  }
24402
24522
  })(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), {
24523
+ var theme = _ref.theme;
24524
+ return _defineProperty({
24525
+ display: 'flex',
24526
+ flexDirection: 'row-reverse'
24527
+ }, "& .".concat(avatarClasses$1.root), {
24407
24528
  border: "2px solid ".concat((theme.vars || theme).palette.background["default"]),
24408
24529
  boxSizing: 'content-box',
24409
- marginLeft: marginValue != null ? marginValue : -8,
24530
+ marginLeft: 'var(--AvatarGroup-spacing, -8px)',
24410
24531
  '&:last-child': {
24411
24532
  marginLeft: 0
24412
24533
  }
24413
- }), "display", 'flex'), "flexDirection", 'row-reverse');
24534
+ });
24414
24535
  });
24415
24536
  var AvatarGroup = /*#__PURE__*/React__namespace.forwardRef(function AvatarGroup(inProps, ref) {
24416
24537
  var _slotProps$additional;
24417
- var props = useThemeProps$b({
24538
+ var props = useThemeProps$r({
24418
24539
  props: inProps,
24419
24540
  name: 'MuiAvatarGroup'
24420
24541
  });
@@ -24460,6 +24581,7 @@
24460
24581
  var extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
24461
24582
  var extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : "+".concat(extraAvatars);
24462
24583
  var additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
24584
+ var marginValue = ownerState.spacing && SPACINGS$2[ownerState.spacing] !== undefined ? SPACINGS$2[ownerState.spacing] : -ownerState.spacing || -8;
24463
24585
  return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
24464
24586
  as: component,
24465
24587
  ownerState: ownerState,
@@ -24470,6 +24592,9 @@
24470
24592
  variant: variant
24471
24593
  }, additionalAvatarSlotProps, {
24472
24594
  className: clsx(classes.avatar, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.className),
24595
+ style: _extends({
24596
+ '--AvatarRoot-spacing': marginValue ? "".concat(marginValue, "px") : undefined
24597
+ }, other.style),
24473
24598
  children: extraAvatarsElement
24474
24599
  })) : null, children.slice(0, maxAvatars).reverse().map(function (child) {
24475
24600
  return /*#__PURE__*/React__namespace.cloneElement(child, {
@@ -24545,6 +24670,10 @@
24545
24670
  * @default 'medium'
24546
24671
  */
24547
24672
  spacing: PropTypes.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.number]),
24673
+ /**
24674
+ * @ignore
24675
+ */
24676
+ style: PropTypes.object,
24548
24677
  /**
24549
24678
  * The system prop that allows defining system overrides as well as additional CSS styles.
24550
24679
  */
@@ -24762,6 +24891,7 @@
24762
24891
  var backdropClasses = generateUtilityClasses$1('MuiBackdrop', ['root', 'invisible']);
24763
24892
  var backdropClasses$1 = backdropClasses;
24764
24893
 
24894
+ var useThemeProps$q = createUseThemeProps();
24765
24895
  var useUtilityClasses$1u = function useUtilityClasses(ownerState) {
24766
24896
  var classes = ownerState.classes,
24767
24897
  invisible = ownerState.invisible;
@@ -24777,26 +24907,28 @@
24777
24907
  var ownerState = props.ownerState;
24778
24908
  return [styles.root, ownerState.invisible && styles.invisible];
24779
24909
  }
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
- });
24910
+ })({
24911
+ position: 'fixed',
24912
+ display: 'flex',
24913
+ alignItems: 'center',
24914
+ justifyContent: 'center',
24915
+ right: 0,
24916
+ bottom: 0,
24917
+ top: 0,
24918
+ left: 0,
24919
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
24920
+ WebkitTapHighlightColor: 'transparent',
24921
+ variants: [{
24922
+ props: {
24923
+ invisible: true
24924
+ },
24925
+ style: {
24926
+ backgroundColor: 'transparent'
24927
+ }
24928
+ }]
24796
24929
  });
24797
24930
  var Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inProps, ref) {
24798
- var _slotProps$root, _ref2, _slots$root;
24799
- var props = useThemeProps$b({
24931
+ var props = useThemeProps$q({
24800
24932
  props: inProps,
24801
24933
  name: 'MuiBackdrop'
24802
24934
  });
@@ -24804,37 +24936,59 @@
24804
24936
  className = props.className,
24805
24937
  _props$component = props.component,
24806
24938
  component = _props$component === void 0 ? 'div' : _props$component,
24939
+ _props$invisible = props.invisible,
24940
+ invisible = _props$invisible === void 0 ? false : _props$invisible,
24941
+ open = props.open,
24807
24942
  _props$components = props.components,
24808
24943
  components = _props$components === void 0 ? {} : _props$components,
24809
24944
  _props$componentsProp = props.componentsProps,
24810
24945
  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
24946
  _props$slotProps = props.slotProps,
24815
24947
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
24816
24948
  _props$slots = props.slots,
24817
24949
  slots = _props$slots === void 0 ? {} : _props$slots,
24818
- _props$TransitionComp = props.TransitionComponent,
24819
- TransitionComponent = _props$TransitionComp === void 0 ? Fade$1 : _props$TransitionComp,
24950
+ TransitionComponentProp = props.TransitionComponent,
24820
24951
  transitionDuration = props.transitionDuration,
24821
- other = _objectWithoutProperties(props, ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"]);
24952
+ other = _objectWithoutProperties(props, ["children", "className", "component", "invisible", "open", "components", "componentsProps", "slotProps", "slots", "TransitionComponent", "transitionDuration"]);
24822
24953
  var ownerState = _extends({}, props, {
24823
24954
  component: component,
24824
24955
  invisible: invisible
24825
24956
  });
24826
24957
  var classes = useUtilityClasses$1u(ownerState);
24827
- var rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
24828
- return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
24958
+ var backwardCompatibleSlots = _extends({
24959
+ transition: TransitionComponentProp,
24960
+ root: components.Root
24961
+ }, slots);
24962
+ var backwardCompatibleSlotProps = _extends({}, componentsProps, slotProps);
24963
+ var externalForwardedProps = {
24964
+ slots: backwardCompatibleSlots,
24965
+ slotProps: backwardCompatibleSlotProps
24966
+ };
24967
+ var _useSlot = useSlot('root', {
24968
+ elementType: BackdropRoot,
24969
+ externalForwardedProps: externalForwardedProps,
24970
+ className: clsx(classes.root, className),
24971
+ ownerState: ownerState
24972
+ }),
24973
+ _useSlot2 = _slicedToArray(_useSlot, 2),
24974
+ RootSlot = _useSlot2[0],
24975
+ rootProps = _useSlot2[1];
24976
+ var _useSlot3 = useSlot('transition', {
24977
+ elementType: Fade$1,
24978
+ externalForwardedProps: externalForwardedProps,
24979
+ ownerState: ownerState
24980
+ }),
24981
+ _useSlot4 = _slicedToArray(_useSlot3, 2),
24982
+ TransitionSlot = _useSlot4[0],
24983
+ transitionProps = _useSlot4[1];
24984
+ delete transitionProps.ownerState;
24985
+ return /*#__PURE__*/jsxRuntime_1(TransitionSlot, _extends({
24829
24986
  "in": open,
24830
24987
  timeout: transitionDuration
24831
- }, other, {
24832
- children: /*#__PURE__*/jsxRuntime_1(BackdropRoot, _extends({
24988
+ }, other, transitionProps, {
24989
+ children: /*#__PURE__*/jsxRuntime_1(RootSlot, _extends({
24833
24990
  "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),
24991
+ }, rootProps, {
24838
24992
  classes: classes,
24839
24993
  ref: ref,
24840
24994
  children: children
@@ -24897,25 +25051,20 @@
24897
25051
  */
24898
25052
  open: PropTypes.bool.isRequired,
24899
25053
  /**
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
- *
25054
+ * The props used for each slot inside.
24905
25055
  * @default {}
24906
25056
  */
24907
25057
  slotProps: PropTypes.shape({
24908
- root: PropTypes.object
25058
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
25059
+ transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
24909
25060
  }),
24910
25061
  /**
24911
25062
  * 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
25063
  * @default {}
24916
25064
  */
24917
25065
  slots: PropTypes.shape({
24918
- root: PropTypes.elementType
25066
+ root: PropTypes.elementType,
25067
+ transition: PropTypes.elementType
24919
25068
  }),
24920
25069
  /**
24921
25070
  * The system prop that allows defining system overrides as well as additional CSS styles.
@@ -24925,6 +25074,7 @@
24925
25074
  * The component used for the transition.
24926
25075
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
24927
25076
  * @default Fade
25077
+ * @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
24928
25078
  */
24929
25079
  TransitionComponent: PropTypes.elementType,
24930
25080
  /**
@@ -24949,7 +25099,7 @@
24949
25099
 
24950
25100
  var RADIUS_STANDARD = 10;
24951
25101
  var RADIUS_DOT = 4;
24952
- var useThemeProps$2 = createUseThemeProps();
25102
+ var useThemeProps$p = createUseThemeProps();
24953
25103
  var useUtilityClasses$1t = function useUtilityClasses(ownerState) {
24954
25104
  var color = ownerState.color,
24955
25105
  anchorOrigin = ownerState.anchorOrigin,
@@ -25152,7 +25302,7 @@
25152
25302
  });
25153
25303
  var Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
25154
25304
  var _ref11, _slots$root, _ref12, _slots$badge, _slotProps$root, _slotProps$badge;
25155
- var props = useThemeProps$2({
25305
+ var props = useThemeProps$p({
25156
25306
  props: inProps,
25157
25307
  name: 'MuiBadge'
25158
25308
  });
@@ -25378,6 +25528,7 @@
25378
25528
  var bottomNavigationClasses = generateUtilityClasses$1('MuiBottomNavigation', ['root']);
25379
25529
  var bottomNavigationClasses$1 = bottomNavigationClasses;
25380
25530
 
25531
+ var useThemeProps$o = createUseThemeProps();
25381
25532
  var useUtilityClasses$1s = function useUtilityClasses(ownerState) {
25382
25533
  var classes = ownerState.classes;
25383
25534
  var slots = {
@@ -25401,7 +25552,7 @@
25401
25552
  };
25402
25553
  });
25403
25554
  var BottomNavigation = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigation(inProps, ref) {
25404
- var props = useThemeProps$b({
25555
+ var props = useThemeProps$o({
25405
25556
  props: inProps,
25406
25557
  name: 'MuiBottomNavigation'
25407
25558
  });
@@ -25496,6 +25647,7 @@
25496
25647
  var bottomNavigationActionClasses = generateUtilityClasses$1('MuiBottomNavigationAction', ['root', 'iconOnly', 'selected', 'label']);
25497
25648
  var bottomNavigationActionClasses$1 = bottomNavigationActionClasses;
25498
25649
 
25650
+ var useThemeProps$n = createUseThemeProps();
25499
25651
  var useUtilityClasses$1r = function useUtilityClasses(ownerState) {
25500
25652
  var classes = ownerState.classes,
25501
25653
  showLabel = ownerState.showLabel,
@@ -25514,9 +25666,8 @@
25514
25666
  return [styles.root, !ownerState.showLabel && !ownerState.selected && styles.iconOnly];
25515
25667
  }
25516
25668
  })(function (_ref) {
25517
- var theme = _ref.theme,
25518
- ownerState = _ref.ownerState;
25519
- return _extends({
25669
+ var theme = _ref.theme;
25670
+ return _defineProperty(_defineProperty({
25520
25671
  transition: theme.transitions.create(['color', 'padding-top'], {
25521
25672
  duration: theme.transitions.duration["short"]
25522
25673
  }),
@@ -25526,13 +25677,28 @@
25526
25677
  color: (theme.vars || theme).palette.text.secondary,
25527
25678
  flexDirection: 'column',
25528
25679
  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), {
25680
+ }, "&.".concat(bottomNavigationActionClasses$1.selected), {
25534
25681
  color: (theme.vars || theme).palette.primary.main
25535
- }));
25682
+ }), "variants", [{
25683
+ props: function props(_ref2) {
25684
+ var showLabel = _ref2.showLabel,
25685
+ selected = _ref2.selected;
25686
+ return !showLabel && !selected;
25687
+ },
25688
+ style: {
25689
+ paddingTop: 14
25690
+ }
25691
+ }, {
25692
+ props: function props(_ref3) {
25693
+ var showLabel = _ref3.showLabel,
25694
+ selected = _ref3.selected,
25695
+ label = _ref3.label;
25696
+ return !showLabel && !selected && !label;
25697
+ },
25698
+ style: {
25699
+ paddingTop: 0
25700
+ }
25701
+ }]);
25536
25702
  });
25537
25703
  var BottomNavigationActionLabel = styled$1('span', {
25538
25704
  name: 'MuiBottomNavigationAction',
@@ -25540,24 +25706,30 @@
25540
25706
  overridesResolver: function overridesResolver(props, styles) {
25541
25707
  return styles.label;
25542
25708
  }
25543
- })(function (_ref2) {
25544
- var theme = _ref2.theme,
25545
- ownerState = _ref2.ownerState;
25546
- return _extends({
25709
+ })(function (_ref5) {
25710
+ var theme = _ref5.theme;
25711
+ return _defineProperty(_defineProperty({
25547
25712
  fontFamily: theme.typography.fontFamily,
25548
25713
  fontSize: theme.typography.pxToRem(12),
25549
25714
  opacity: 1,
25550
25715
  transition: 'font-size 0.2s, opacity 0.2s',
25551
25716
  transitionDelay: '0.1s'
25552
- }, !ownerState.showLabel && !ownerState.selected && {
25553
- opacity: 0,
25554
- transitionDelay: '0s'
25555
- }, _defineProperty({}, "&.".concat(bottomNavigationActionClasses$1.selected), {
25717
+ }, "&.".concat(bottomNavigationActionClasses$1.selected), {
25556
25718
  fontSize: theme.typography.pxToRem(14)
25557
- }));
25719
+ }), "variants", [{
25720
+ props: function props(_ref6) {
25721
+ var showLabel = _ref6.showLabel,
25722
+ selected = _ref6.selected;
25723
+ return !showLabel && !selected;
25724
+ },
25725
+ style: {
25726
+ opacity: 0,
25727
+ transitionDelay: '0s'
25728
+ }
25729
+ }]);
25558
25730
  });
25559
25731
  var BottomNavigationAction = /*#__PURE__*/React__namespace.forwardRef(function BottomNavigationAction(inProps, ref) {
25560
- var props = useThemeProps$b({
25732
+ var props = useThemeProps$n({
25561
25733
  props: inProps,
25562
25734
  name: 'MuiBottomNavigationAction'
25563
25735
  });
@@ -25765,6 +25937,7 @@
25765
25937
  var breadcrumbsClasses = generateUtilityClasses$1('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);
25766
25938
  var breadcrumbsClasses$1 = breadcrumbsClasses;
25767
25939
 
25940
+ var useThemeProps$m = createUseThemeProps();
25768
25941
  var useUtilityClasses$1q = function useUtilityClasses(ownerState) {
25769
25942
  var classes = ownerState.classes;
25770
25943
  var slots = {
@@ -25824,7 +25997,7 @@
25824
25997
  }, []);
25825
25998
  }
25826
25999
  var Breadcrumbs = /*#__PURE__*/React__namespace.forwardRef(function Breadcrumbs(inProps, ref) {
25827
- var props = useThemeProps$b({
26000
+ var props = useThemeProps$m({
25828
26001
  props: inProps,
25829
26002
  name: 'MuiBreadcrumbs'
25830
26003
  });
@@ -26223,7 +26396,7 @@
26223
26396
  var contextProps = React__namespace.useContext(ButtonGroupContext$1);
26224
26397
  var buttonGroupButtonContextPositionClassName = React__namespace.useContext(ButtonGroupButtonContext$1);
26225
26398
  var resolvedProps = resolveProps(contextProps, inProps);
26226
- var props = useThemeProps$b({
26399
+ var props = useThemeProps$B({
26227
26400
  props: resolvedProps,
26228
26401
  name: 'MuiButton'
26229
26402
  });
@@ -26386,7 +26559,7 @@
26386
26559
  function getButtonGroupUtilityClass(slot) {
26387
26560
  return generateUtilityClass$1('MuiButtonGroup', slot);
26388
26561
  }
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']);
26562
+ 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
26563
  var buttonGroupClasses$1 = buttonGroupClasses;
26391
26564
 
26392
26565
  var overridesResolver$6 = function overridesResolver(props, styles) {
@@ -26402,7 +26575,7 @@
26402
26575
  orientation = ownerState.orientation,
26403
26576
  variant = ownerState.variant;
26404
26577
  var slots = {
26405
- root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],
26578
+ root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', "color".concat(capitalize(color))],
26406
26579
  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
26580
  firstButton: ['firstButton'],
26408
26581
  lastButton: ['lastButton'],
@@ -26484,7 +26657,7 @@
26484
26657
  })));
26485
26658
  });
26486
26659
  var ButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ButtonGroup(inProps, ref) {
26487
- var props = useThemeProps$b({
26660
+ var props = useThemeProps$B({
26488
26661
  props: inProps,
26489
26662
  name: 'MuiButtonGroup'
26490
26663
  });
@@ -26654,6 +26827,7 @@
26654
26827
  var cardClasses = generateUtilityClasses$1('MuiCard', ['root']);
26655
26828
  var cardClasses$1 = cardClasses;
26656
26829
 
26830
+ var useThemeProps$l = createUseThemeProps();
26657
26831
  var useUtilityClasses$1n = function useUtilityClasses(ownerState) {
26658
26832
  var classes = ownerState.classes;
26659
26833
  var slots = {
@@ -26667,13 +26841,11 @@
26667
26841
  overridesResolver: function overridesResolver(props, styles) {
26668
26842
  return styles.root;
26669
26843
  }
26670
- })(function () {
26671
- return {
26672
- overflow: 'hidden'
26673
- };
26844
+ })({
26845
+ overflow: 'hidden'
26674
26846
  });
26675
26847
  var Card = /*#__PURE__*/React__namespace.forwardRef(function Card(inProps, ref) {
26676
- var props = useThemeProps$b({
26848
+ var props = useThemeProps$l({
26677
26849
  props: inProps,
26678
26850
  name: 'MuiCard'
26679
26851
  });
@@ -26732,6 +26904,7 @@
26732
26904
  var cardActionAreaClasses = generateUtilityClasses$1('MuiCardActionArea', ['root', 'focusVisible', 'focusHighlight']);
26733
26905
  var cardActionAreaClasses$1 = cardActionAreaClasses;
26734
26906
 
26907
+ var useThemeProps$k = createUseThemeProps();
26735
26908
  var useUtilityClasses$1m = function useUtilityClasses(ownerState) {
26736
26909
  var classes = ownerState.classes;
26737
26910
  var slots = {
@@ -26788,7 +26961,7 @@
26788
26961
  };
26789
26962
  });
26790
26963
  var CardActionArea = /*#__PURE__*/React__namespace.forwardRef(function CardActionArea(inProps, ref) {
26791
- var props = useThemeProps$b({
26964
+ var props = useThemeProps$k({
26792
26965
  props: inProps,
26793
26966
  name: 'MuiCardActionArea'
26794
26967
  });
@@ -26844,6 +27017,7 @@
26844
27017
  var cardActionsClasses = generateUtilityClasses$1('MuiCardActions', ['root', 'spacing']);
26845
27018
  var cardActionsClasses$1 = cardActionsClasses;
26846
27019
 
27020
+ var useThemeProps$j = createUseThemeProps();
26847
27021
  var useUtilityClasses$1l = function useUtilityClasses(ownerState) {
26848
27022
  var classes = ownerState.classes,
26849
27023
  disableSpacing = ownerState.disableSpacing;
@@ -26859,20 +27033,23 @@
26859
27033
  var ownerState = props.ownerState;
26860
27034
  return [styles.root, !ownerState.disableSpacing && styles.spacing];
26861
27035
  }
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
27036
+ })({
27037
+ display: 'flex',
27038
+ alignItems: 'center',
27039
+ padding: 8,
27040
+ variants: [{
27041
+ props: {
27042
+ disableSpacing: false
27043
+ },
27044
+ style: {
27045
+ '& > :not(style) ~ :not(style)': {
27046
+ marginLeft: 8
27047
+ }
26871
27048
  }
26872
- });
27049
+ }]
26873
27050
  });
26874
27051
  var CardActions = /*#__PURE__*/React__namespace.forwardRef(function CardActions(inProps, ref) {
26875
- var props = useThemeProps$b({
27052
+ var props = useThemeProps$j({
26876
27053
  props: inProps,
26877
27054
  name: 'MuiCardActions'
26878
27055
  });
@@ -26925,6 +27102,7 @@
26925
27102
  var cardContentClasses = generateUtilityClasses$1('MuiCardContent', ['root']);
26926
27103
  var cardContentClasses$1 = cardContentClasses;
26927
27104
 
27105
+ var useThemeProps$i = createUseThemeProps();
26928
27106
  var useUtilityClasses$1k = function useUtilityClasses(ownerState) {
26929
27107
  var classes = ownerState.classes;
26930
27108
  var slots = {
@@ -26938,16 +27116,14 @@
26938
27116
  overridesResolver: function overridesResolver(props, styles) {
26939
27117
  return styles.root;
26940
27118
  }
26941
- })(function () {
26942
- return {
26943
- padding: 16,
26944
- '&:last-child': {
26945
- paddingBottom: 24
26946
- }
26947
- };
27119
+ })({
27120
+ padding: 16,
27121
+ '&:last-child': {
27122
+ paddingBottom: 24
27123
+ }
26948
27124
  });
26949
27125
  var CardContent = /*#__PURE__*/React__namespace.forwardRef(function CardContent(inProps, ref) {
26950
- var props = useThemeProps$b({
27126
+ var props = useThemeProps$i({
26951
27127
  props: inProps,
26952
27128
  name: 'MuiCardContent'
26953
27129
  });
@@ -27001,6 +27177,7 @@
27001
27177
  var cardHeaderClasses = generateUtilityClasses$1('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);
27002
27178
  var cardHeaderClasses$1 = cardHeaderClasses;
27003
27179
 
27180
+ var useThemeProps$h = createUseThemeProps();
27004
27181
  var useUtilityClasses$1j = function useUtilityClasses(ownerState) {
27005
27182
  var classes = ownerState.classes;
27006
27183
  var slots = {
@@ -27058,7 +27235,7 @@
27058
27235
  flex: '1 1 auto'
27059
27236
  });
27060
27237
  var CardHeader = /*#__PURE__*/React__namespace.forwardRef(function CardHeader(inProps, ref) {
27061
- var props = useThemeProps$b({
27238
+ var props = useThemeProps$h({
27062
27239
  props: inProps,
27063
27240
  name: 'MuiCardHeader'
27064
27241
  });
@@ -27192,6 +27369,7 @@
27192
27369
  var cardMediaClasses = generateUtilityClasses$1('MuiCardMedia', ['root', 'media', 'img']);
27193
27370
  var cardMediaClasses$1 = cardMediaClasses;
27194
27371
 
27372
+ var useThemeProps$g = createUseThemeProps();
27195
27373
  var useUtilityClasses$1i = function useUtilityClasses(ownerState) {
27196
27374
  var classes = ownerState.classes,
27197
27375
  isMediaComponent = ownerState.isMediaComponent,
@@ -27210,24 +27388,32 @@
27210
27388
  isImageComponent = ownerState.isImageComponent;
27211
27389
  return [styles.root, isMediaComponent && styles.media, isImageComponent && styles.img];
27212
27390
  }
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
- });
27391
+ })({
27392
+ display: 'block',
27393
+ backgroundSize: 'cover',
27394
+ backgroundRepeat: 'no-repeat',
27395
+ backgroundPosition: 'center',
27396
+ variants: [{
27397
+ props: {
27398
+ isMediaComponent: true
27399
+ },
27400
+ style: {
27401
+ width: '100%'
27402
+ }
27403
+ }, {
27404
+ props: {
27405
+ isImageComponent: true
27406
+ },
27407
+ style: {
27408
+ // ⚠️ object-fit is not supported by IE11.
27409
+ objectFit: 'cover'
27410
+ }
27411
+ }]
27226
27412
  });
27227
27413
  var MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];
27228
27414
  var IMAGE_COMPONENTS = ['picture', 'img'];
27229
27415
  var CardMedia = /*#__PURE__*/React__namespace.forwardRef(function CardMedia(inProps, ref) {
27230
- var props = useThemeProps$b({
27416
+ var props = useThemeProps$g({
27231
27417
  props: inProps,
27232
27418
  name: 'MuiCardMedia'
27233
27419
  });
@@ -27638,7 +27824,7 @@
27638
27824
  var defaultIndeterminateIcon = /*#__PURE__*/jsxRuntime_1(IndeterminateCheckBoxIcon, {});
27639
27825
  var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function Checkbox(inProps, ref) {
27640
27826
  var _icon$props$fontSize, _indeterminateIcon$pr;
27641
- var props = useThemeProps$b({
27827
+ var props = useThemeProps$B({
27642
27828
  props: inProps,
27643
27829
  name: 'MuiCheckbox'
27644
27830
  });
@@ -27870,7 +28056,7 @@
27870
28056
  * attribute to `true` on that region until it has finished loading.
27871
28057
  */
27872
28058
  var CircularProgress = /*#__PURE__*/React__namespace.forwardRef(function CircularProgress(inProps, ref) {
27873
- var props = useThemeProps$b({
28059
+ var props = useThemeProps$B({
27874
28060
  props: inProps,
27875
28061
  name: 'MuiCircularProgress'
27876
28062
  });
@@ -28011,7 +28197,7 @@
28011
28197
  }
28012
28198
  }),
28013
28199
  useThemeProps: function useThemeProps(inProps) {
28014
- return useThemeProps$b({
28200
+ return useThemeProps$B({
28015
28201
  props: inProps,
28016
28202
  name: 'MuiContainer'
28017
28203
  });
@@ -28134,7 +28320,7 @@
28134
28320
  return defaultStyles;
28135
28321
  };
28136
28322
  function CssBaseline(inProps) {
28137
- var props = useThemeProps$b({
28323
+ var props = useThemeProps$B({
28138
28324
  props: inProps,
28139
28325
  name: 'MuiCssBaseline'
28140
28326
  });
@@ -28207,6 +28393,7 @@
28207
28393
  var modalClasses = generateUtilityClasses$1('MuiModal', ['root', 'hidden', 'backdrop']);
28208
28394
  var modalClasses$1 = modalClasses;
28209
28395
 
28396
+ var useThemeProps$f = createUseThemeProps();
28210
28397
  var useUtilityClasses$1e = function useUtilityClasses(ownerState) {
28211
28398
  var open = ownerState.open,
28212
28399
  exited = ownerState.exited,
@@ -28225,18 +28412,24 @@
28225
28412
  return [styles.root, !ownerState.open && ownerState.exited && styles.hidden];
28226
28413
  }
28227
28414
  })(function (_ref) {
28228
- var theme = _ref.theme,
28229
- ownerState = _ref.ownerState;
28230
- return _extends({
28415
+ var theme = _ref.theme;
28416
+ return {
28231
28417
  position: 'fixed',
28232
28418
  zIndex: (theme.vars || theme).zIndex.modal,
28233
28419
  right: 0,
28234
28420
  bottom: 0,
28235
28421
  top: 0,
28236
- left: 0
28237
- }, !ownerState.open && ownerState.exited && {
28238
- visibility: 'hidden'
28239
- });
28422
+ left: 0,
28423
+ variants: [{
28424
+ props: function props(_ref2) {
28425
+ var ownerState = _ref2.ownerState;
28426
+ return !ownerState.open && ownerState.exited;
28427
+ },
28428
+ style: {
28429
+ visibility: 'hidden'
28430
+ }
28431
+ }]
28432
+ };
28240
28433
  });
28241
28434
  var ModalBackdrop = styled$1(Backdrop$1, {
28242
28435
  name: 'MuiModal',
@@ -28262,8 +28455,8 @@
28262
28455
  * This component shares many concepts with [react-overlays](https://react-bootstrap.github.io/react-overlays/#modals).
28263
28456
  */
28264
28457
  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({
28458
+ var _ref3, _slots$root, _ref4, _slots$backdrop, _slotProps$root, _slotProps$backdrop;
28459
+ var props = useThemeProps$f({
28267
28460
  name: 'MuiModal',
28268
28461
  props: inProps
28269
28462
  });
@@ -28344,8 +28537,8 @@
28344
28537
  childProps.onEnter = onEnter;
28345
28538
  childProps.onExited = onExited;
28346
28539
  }
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;
28540
+ var RootSlot = (_ref3 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref3 : ModalRoot;
28541
+ var BackdropSlot = (_ref4 = (_slots$backdrop = slots == null ? void 0 : slots.backdrop) != null ? _slots$backdrop : components.Backdrop) != null ? _ref4 : BackdropComponent;
28349
28542
  var rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
28350
28543
  var backdropSlotProps = (_slotProps$backdrop = slotProps == null ? void 0 : slotProps.backdrop) != null ? _slotProps$backdrop : componentsProps.backdrop;
28351
28544
  var rootProps = useSlotProps({
@@ -28717,7 +28910,7 @@
28717
28910
  * Dialogs are overlaid modal paper based components with a backdrop.
28718
28911
  */
28719
28912
  var Dialog = /*#__PURE__*/React__namespace.forwardRef(function Dialog(inProps, ref) {
28720
- var props = useThemeProps$b({
28913
+ var props = useThemeProps$B({
28721
28914
  props: inProps,
28722
28915
  name: 'MuiDialog'
28723
28916
  });
@@ -29001,7 +29194,7 @@
29001
29194
  });
29002
29195
  });
29003
29196
  var DialogActions = /*#__PURE__*/React__namespace.forwardRef(function DialogActions(inProps, ref) {
29004
- var props = useThemeProps$b({
29197
+ var props = useThemeProps$B({
29005
29198
  props: inProps,
29006
29199
  name: 'MuiDialogActions'
29007
29200
  });
@@ -29093,7 +29286,7 @@
29093
29286
  }));
29094
29287
  });
29095
29288
  var DialogContent = /*#__PURE__*/React__namespace.forwardRef(function DialogContent(inProps, ref) {
29096
- var props = useThemeProps$b({
29289
+ var props = useThemeProps$B({
29097
29290
  props: inProps,
29098
29291
  name: 'MuiDialogContent'
29099
29292
  });
@@ -29165,7 +29358,7 @@
29165
29358
  }
29166
29359
  })({});
29167
29360
  var DialogContentText = /*#__PURE__*/React__namespace.forwardRef(function DialogContentText(inProps, ref) {
29168
- var props = useThemeProps$b({
29361
+ var props = useThemeProps$B({
29169
29362
  props: inProps,
29170
29363
  name: 'MuiDialogContentText'
29171
29364
  });
@@ -29226,7 +29419,7 @@
29226
29419
  flex: '0 0 auto'
29227
29420
  });
29228
29421
  var DialogTitle = /*#__PURE__*/React__namespace.forwardRef(function DialogTitle(inProps, ref) {
29229
- var props = useThemeProps$b({
29422
+ var props = useThemeProps$B({
29230
29423
  props: inProps,
29231
29424
  name: 'MuiDialogTitle'
29232
29425
  });
@@ -29281,6 +29474,7 @@
29281
29474
  var dividerClasses = generateUtilityClasses$1('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
29282
29475
  var dividerClasses$1 = dividerClasses;
29283
29476
 
29477
+ var useThemeProps$e = createUseThemeProps();
29284
29478
  var useUtilityClasses$18 = function useUtilityClasses(ownerState) {
29285
29479
  var absolute = ownerState.absolute,
29286
29480
  children = ownerState.children,
@@ -29304,87 +29498,140 @@
29304
29498
  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
29499
  }
29306
29500
  })(function (_ref) {
29307
- var theme = _ref.theme,
29308
- ownerState = _ref.ownerState;
29309
- return _extends({
29501
+ var theme = _ref.theme;
29502
+ return {
29310
29503
  margin: 0,
29311
29504
  // Reset browser default style.
29312
29505
  flexShrink: 0,
29313
29506
  borderWidth: 0,
29314
29507
  borderStyle: 'solid',
29315
29508
  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
- });
29509
+ borderBottomWidth: 'thin',
29510
+ variants: [{
29511
+ props: {
29512
+ absolute: true
29513
+ },
29514
+ style: {
29515
+ position: 'absolute',
29516
+ bottom: 0,
29517
+ left: 0,
29518
+ width: '100%'
29519
+ }
29520
+ }, {
29521
+ props: {
29522
+ light: true
29523
+ },
29524
+ style: {
29525
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.dividerChannel, " / 0.08)") : alpha(theme.palette.divider, 0.08)
29526
+ }
29527
+ }, {
29528
+ props: {
29529
+ variant: 'inset'
29530
+ },
29531
+ style: {
29532
+ marginLeft: 72
29533
+ }
29534
+ }, {
29535
+ props: {
29536
+ variant: 'middle',
29537
+ orientation: 'horizontal'
29538
+ },
29539
+ style: {
29540
+ marginLeft: theme.spacing(2),
29541
+ marginRight: theme.spacing(2)
29542
+ }
29543
+ }, {
29544
+ props: {
29545
+ variant: 'middle',
29546
+ orientation: 'vertical'
29547
+ },
29548
+ style: {
29549
+ marginTop: theme.spacing(1),
29550
+ marginBottom: theme.spacing(1)
29551
+ }
29552
+ }, {
29553
+ props: {
29554
+ orientation: 'vertical'
29555
+ },
29556
+ style: {
29557
+ height: '100%',
29558
+ borderBottomWidth: 0,
29559
+ borderRightWidth: 'thin'
29560
+ }
29561
+ }, {
29562
+ props: {
29563
+ flexItem: true
29564
+ },
29565
+ style: {
29566
+ alignSelf: 'stretch',
29567
+ height: 'auto'
29568
+ }
29569
+ }, {
29570
+ props: function props(_ref2) {
29571
+ var ownerState = _ref2.ownerState;
29572
+ return !!ownerState.children;
29573
+ },
29574
+ style: {
29575
+ display: 'flex',
29576
+ whiteSpace: 'nowrap',
29577
+ textAlign: 'center',
29578
+ border: 0,
29579
+ '&::before, &::after': {
29580
+ content: '""',
29581
+ alignSelf: 'center'
29582
+ }
29583
+ }
29584
+ }, {
29585
+ props: function props(_ref3) {
29586
+ var ownerState = _ref3.ownerState;
29587
+ return ownerState.children && ownerState.orientation !== 'vertical';
29588
+ },
29589
+ style: {
29590
+ '&::before, &::after': {
29591
+ width: '100%',
29592
+ borderTop: "thin solid ".concat((theme.vars || theme).palette.divider)
29593
+ }
29594
+ }
29595
+ }, {
29596
+ props: function props(_ref4) {
29597
+ var ownerState = _ref4.ownerState;
29598
+ return ownerState.orientation === 'vertical' && ownerState.children;
29599
+ },
29600
+ style: {
29601
+ flexDirection: 'column',
29602
+ '&::before, &::after': {
29603
+ height: '100%',
29604
+ borderLeft: "thin solid ".concat((theme.vars || theme).palette.divider)
29605
+ }
29606
+ }
29607
+ }, {
29608
+ props: function props(_ref5) {
29609
+ var ownerState = _ref5.ownerState;
29610
+ return ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical';
29611
+ },
29612
+ style: {
29613
+ '&::before': {
29614
+ width: '90%'
29615
+ },
29616
+ '&::after': {
29617
+ width: '10%'
29618
+ }
29619
+ }
29620
+ }, {
29621
+ props: function props(_ref6) {
29622
+ var ownerState = _ref6.ownerState;
29623
+ return ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical';
29624
+ },
29625
+ style: {
29626
+ '&::before': {
29627
+ width: '10%'
29628
+ },
29629
+ '&::after': {
29630
+ width: '90%'
29631
+ }
29632
+ }
29633
+ }]
29634
+ };
29388
29635
  });
29389
29636
  var DividerWrapper = styled$1('span', {
29390
29637
  name: 'MuiDivider',
@@ -29393,20 +29640,25 @@
29393
29640
  var ownerState = props.ownerState;
29394
29641
  return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
29395
29642
  }
29396
- })(function (_ref6) {
29397
- var theme = _ref6.theme,
29398
- ownerState = _ref6.ownerState;
29399
- return _extends({
29643
+ })(function (_ref7) {
29644
+ var theme = _ref7.theme;
29645
+ return {
29400
29646
  display: 'inline-block',
29401
29647
  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
- });
29648
+ paddingRight: "calc(".concat(theme.spacing(1), " * 1.2)"),
29649
+ variants: [{
29650
+ props: {
29651
+ orientation: 'vertical'
29652
+ },
29653
+ style: {
29654
+ paddingTop: "calc(".concat(theme.spacing(1), " * 1.2)"),
29655
+ paddingBottom: "calc(".concat(theme.spacing(1), " * 1.2)")
29656
+ }
29657
+ }]
29658
+ };
29407
29659
  });
29408
29660
  var Divider = /*#__PURE__*/React__namespace.forwardRef(function Divider(inProps, ref) {
29409
- var props = useThemeProps$b({
29661
+ var props = useThemeProps$e({
29410
29662
  props: inProps,
29411
29663
  name: 'MuiDivider'
29412
29664
  });
@@ -29459,7 +29711,9 @@
29459
29711
  * The following flag is used to ensure that this component isn't tabbable i.e.
29460
29712
  * does not get highlight/focus inside of MUI List.
29461
29713
  */
29462
- Divider.muiSkipListHighlight = true;
29714
+ if (Divider) {
29715
+ Divider.muiSkipListHighlight = true;
29716
+ }
29463
29717
  Divider.propTypes /* remove-proptypes */ = {
29464
29718
  // ┌────────────────────────────── Warning ──────────────────────────────┐
29465
29719
  // │ These PropTypes are generated from the TypeScript type definitions. │
@@ -29953,7 +30207,7 @@
29953
30207
  * when `variant="temporary"` is set.
29954
30208
  */
29955
30209
  var Drawer = /*#__PURE__*/React__namespace.forwardRef(function Drawer(inProps, ref) {
29956
- var props = useThemeProps$b({
30210
+ var props = useThemeProps$B({
29957
30211
  props: inProps,
29958
30212
  name: 'MuiDrawer'
29959
30213
  });
@@ -30253,7 +30507,7 @@
30253
30507
  });
30254
30508
  });
30255
30509
  var Fab = /*#__PURE__*/React__namespace.forwardRef(function Fab(inProps, ref) {
30256
- var props = useThemeProps$b({
30510
+ var props = useThemeProps$B({
30257
30511
  props: inProps,
30258
30512
  name: 'MuiFab'
30259
30513
  });
@@ -30524,7 +30778,7 @@
30524
30778
  });
30525
30779
  var FilledInput = /*#__PURE__*/React__namespace.forwardRef(function FilledInput(inProps, ref) {
30526
30780
  var _ref5, _slots$root, _ref6, _slots$input;
30527
- var props = useThemeProps$b({
30781
+ var props = useThemeProps$B({
30528
30782
  props: inProps,
30529
30783
  name: 'MuiFilledInput'
30530
30784
  });
@@ -30780,6 +31034,7 @@
30780
31034
  var formControlClasses = generateUtilityClasses$1('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
30781
31035
  var formControlClasses$1 = formControlClasses;
30782
31036
 
31037
+ var useThemeProps$d = createUseThemeProps();
30783
31038
  var useUtilityClasses$14 = function useUtilityClasses(ownerState) {
30784
31039
  var classes = ownerState.classes,
30785
31040
  margin = ownerState.margin,
@@ -30796,27 +31051,41 @@
30796
31051
  var ownerState = _ref.ownerState;
30797
31052
  return _extends({}, styles.root, styles["margin".concat(capitalize(ownerState.margin))], ownerState.fullWidth && styles.fullWidth);
30798
31053
  }
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
- });
31054
+ })({
31055
+ display: 'inline-flex',
31056
+ flexDirection: 'column',
31057
+ position: 'relative',
31058
+ // Reset fieldset default style.
31059
+ minWidth: 0,
31060
+ padding: 0,
31061
+ margin: 0,
31062
+ border: 0,
31063
+ verticalAlign: 'top',
31064
+ // Fix alignment issue on Safari.
31065
+ variants: [{
31066
+ props: {
31067
+ margin: 'normal'
31068
+ },
31069
+ style: {
31070
+ marginTop: 16,
31071
+ marginBottom: 8
31072
+ }
31073
+ }, {
31074
+ props: {
31075
+ margin: 'dense'
31076
+ },
31077
+ style: {
31078
+ marginTop: 8,
31079
+ marginBottom: 4
31080
+ }
31081
+ }, {
31082
+ props: {
31083
+ fullWidth: true
31084
+ },
31085
+ style: {
31086
+ width: '100%'
31087
+ }
31088
+ }]
30820
31089
  });
30821
31090
 
30822
31091
  /**
@@ -30844,7 +31113,7 @@
30844
31113
  * For instance, only one input can be focused at the same time, the state shouldn't be shared.
30845
31114
  */
30846
31115
  var FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormControl(inProps, ref) {
30847
- var props = useThemeProps$b({
31116
+ var props = useThemeProps$d({
30848
31117
  props: inProps,
30849
31118
  name: 'MuiFormControl'
30850
31119
  });
@@ -31075,7 +31344,7 @@
31075
31344
  }
31076
31345
  }),
31077
31346
  useThemeProps: function useThemeProps(inProps) {
31078
- return useThemeProps$b({
31347
+ return useThemeProps$B({
31079
31348
  props: inProps,
31080
31349
  name: 'MuiStack'
31081
31350
  });
@@ -31136,6 +31405,7 @@
31136
31405
  var formControlLabelClasses = generateUtilityClasses$1('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);
31137
31406
  var formControlLabelClasses$1 = formControlLabelClasses;
31138
31407
 
31408
+ var useThemeProps$c = createUseThemeProps();
31139
31409
  var useUtilityClasses$13 = function useUtilityClasses(ownerState) {
31140
31410
  var classes = ownerState.classes,
31141
31411
  disabled = ownerState.disabled,
@@ -31157,9 +31427,8 @@
31157
31427
  return [_defineProperty({}, "& .".concat(formControlLabelClasses$1.label), styles.label), styles.root, styles["labelPlacement".concat(capitalize(ownerState.labelPlacement))]];
31158
31428
  }
31159
31429
  })(function (_ref2) {
31160
- var theme = _ref2.theme,
31161
- ownerState = _ref2.ownerState;
31162
- return _extends(_defineProperty({
31430
+ var theme = _ref2.theme;
31431
+ return _defineProperty(_defineProperty(_defineProperty({
31163
31432
  display: 'inline-flex',
31164
31433
  alignItems: 'center',
31165
31434
  cursor: 'pointer',
@@ -31170,20 +31439,39 @@
31170
31439
  marginRight: 16
31171
31440
  }, "&.".concat(formControlLabelClasses$1.disabled), {
31172
31441
  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), {
31442
+ }), "& .".concat(formControlLabelClasses$1.label), _defineProperty({}, "&.".concat(formControlLabelClasses$1.disabled), {
31185
31443
  color: (theme.vars || theme).palette.text.disabled
31186
- })));
31444
+ })), "variants", [{
31445
+ props: {
31446
+ labelPlacement: 'start'
31447
+ },
31448
+ style: {
31449
+ flexDirection: 'row-reverse',
31450
+ marginRight: -11
31451
+ }
31452
+ }, {
31453
+ props: {
31454
+ labelPlacement: 'top'
31455
+ },
31456
+ style: {
31457
+ flexDirection: 'column-reverse'
31458
+ }
31459
+ }, {
31460
+ props: {
31461
+ labelPlacement: 'bottom'
31462
+ },
31463
+ style: {
31464
+ flexDirection: 'column'
31465
+ }
31466
+ }, {
31467
+ props: function props(_ref3) {
31468
+ var labelPlacement = _ref3.labelPlacement;
31469
+ return labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom';
31470
+ },
31471
+ style: {
31472
+ marginLeft: 16 // used for row presentation of radio/checkbox
31473
+ }
31474
+ }]);
31187
31475
  });
31188
31476
  var AsteriskComponent$1 = styled$1('span', {
31189
31477
  name: 'MuiFormControlLabel',
@@ -31191,8 +31479,8 @@
31191
31479
  overridesResolver: function overridesResolver(props, styles) {
31192
31480
  return styles.asterisk;
31193
31481
  }
31194
- })(function (_ref3) {
31195
- var theme = _ref3.theme;
31482
+ })(function (_ref5) {
31483
+ var theme = _ref5.theme;
31196
31484
  return _defineProperty({}, "&.".concat(formControlLabelClasses$1.error), {
31197
31485
  color: (theme.vars || theme).palette.error.main
31198
31486
  });
@@ -31203,8 +31491,8 @@
31203
31491
  * Use this component if you want to display an extra label.
31204
31492
  */
31205
31493
  var FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormControlLabel(inProps, ref) {
31206
- var _ref5, _slotProps$typography;
31207
- var props = useThemeProps$b({
31494
+ var _ref7, _slotProps$typography;
31495
+ var props = useThemeProps$c({
31208
31496
  props: inProps,
31209
31497
  name: 'MuiFormControlLabel'
31210
31498
  });
@@ -31227,7 +31515,7 @@
31227
31515
  props.value;
31228
31516
  var other = _objectWithoutProperties(props, ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"]);
31229
31517
  var muiFormControl = useFormControl();
31230
- var disabled = (_ref5 = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref5 : muiFormControl == null ? void 0 : muiFormControl.disabled;
31518
+ var disabled = (_ref7 = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref7 : muiFormControl == null ? void 0 : muiFormControl.disabled;
31231
31519
  var required = requiredProp != null ? requiredProp : control.props.required;
31232
31520
  var controlProps = {
31233
31521
  disabled: disabled,
@@ -31364,6 +31652,7 @@
31364
31652
  var formGroupClasses = generateUtilityClasses$1('MuiFormGroup', ['root', 'row', 'error']);
31365
31653
  var formGroupClasses$1 = formGroupClasses;
31366
31654
 
31655
+ var useThemeProps$b = createUseThemeProps();
31367
31656
  var useUtilityClasses$12 = function useUtilityClasses(ownerState) {
31368
31657
  var classes = ownerState.classes,
31369
31658
  row = ownerState.row,
@@ -31380,15 +31669,18 @@
31380
31669
  var ownerState = props.ownerState;
31381
31670
  return [styles.root, ownerState.row && styles.row];
31382
31671
  }
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
- });
31672
+ })({
31673
+ display: 'flex',
31674
+ flexDirection: 'column',
31675
+ flexWrap: 'wrap',
31676
+ variants: [{
31677
+ props: {
31678
+ row: true
31679
+ },
31680
+ style: {
31681
+ flexDirection: 'row'
31682
+ }
31683
+ }]
31392
31684
  });
31393
31685
 
31394
31686
  /**
@@ -31502,7 +31794,7 @@
31502
31794
  });
31503
31795
  });
31504
31796
  var FormHelperText = /*#__PURE__*/React__namespace.forwardRef(function FormHelperText(inProps, ref) {
31505
- var props = useThemeProps$b({
31797
+ var props = useThemeProps$B({
31506
31798
  props: inProps,
31507
31799
  name: 'MuiFormHelperText'
31508
31800
  });
@@ -31666,7 +31958,7 @@
31666
31958
  });
31667
31959
  });
31668
31960
  var FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(inProps, ref) {
31669
- var props = useThemeProps$b({
31961
+ var props = useThemeProps$B({
31670
31962
  props: inProps,
31671
31963
  name: 'MuiFormLabel'
31672
31964
  });
@@ -32122,7 +32414,7 @@
32122
32414
  return composeClasses(slots, getGridUtilityClass, classes);
32123
32415
  };
32124
32416
  var Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
32125
- var themeProps = useThemeProps$b({
32417
+ var themeProps = useThemeProps$B({
32126
32418
  props: inProps,
32127
32419
  name: 'MuiGrid'
32128
32420
  });
@@ -32340,7 +32632,7 @@
32340
32632
  }),
32341
32633
  componentName: 'MuiGrid2',
32342
32634
  useThemeProps: function useThemeProps(inProps) {
32343
- return useThemeProps$b({
32635
+ return useThemeProps$B({
32344
32636
  props: inProps,
32345
32637
  name: 'MuiGrid2'
32346
32638
  });
@@ -33192,7 +33484,7 @@
33192
33484
  };
33193
33485
  });
33194
33486
  var Icon = /*#__PURE__*/React__namespace.forwardRef(function Icon(inProps, ref) {
33195
- var props = useThemeProps$b({
33487
+ var props = useThemeProps$B({
33196
33488
  props: inProps,
33197
33489
  name: 'MuiIcon'
33198
33490
  });
@@ -33317,7 +33609,7 @@
33317
33609
  });
33318
33610
  });
33319
33611
  var ImageList = /*#__PURE__*/React__namespace.forwardRef(function ImageList(inProps, ref) {
33320
- var props = useThemeProps$b({
33612
+ var props = useThemeProps$B({
33321
33613
  props: inProps,
33322
33614
  name: 'MuiImageList'
33323
33615
  });
@@ -33478,7 +33770,7 @@
33478
33770
  })));
33479
33771
  });
33480
33772
  var ImageListItem = /*#__PURE__*/React__namespace.forwardRef(function ImageListItem(inProps, ref) {
33481
- var props = useThemeProps$b({
33773
+ var props = useThemeProps$B({
33482
33774
  props: inProps,
33483
33775
  name: 'MuiImageListItem'
33484
33776
  });
@@ -33706,7 +33998,7 @@
33706
33998
  });
33707
33999
  });
33708
34000
  var ImageListItemBar = /*#__PURE__*/React__namespace.forwardRef(function ImageListItemBar(inProps, ref) {
33709
- var props = useThemeProps$b({
34001
+ var props = useThemeProps$B({
33710
34002
  props: inProps,
33711
34003
  name: 'MuiImageListItemBar'
33712
34004
  });
@@ -33880,7 +34172,7 @@
33880
34172
  })({});
33881
34173
  var Input = /*#__PURE__*/React__namespace.forwardRef(function Input(inProps, ref) {
33882
34174
  var _ref3, _slots$root, _ref4, _slots$input;
33883
- var props = useThemeProps$b({
34175
+ var props = useThemeProps$B({
33884
34176
  props: inProps,
33885
34177
  name: 'MuiInput'
33886
34178
  });
@@ -34168,7 +34460,7 @@
34168
34460
  });
34169
34461
  });
34170
34462
  var InputAdornment = /*#__PURE__*/React__namespace.forwardRef(function InputAdornment(inProps, ref) {
34171
- var props = useThemeProps$b({
34463
+ var props = useThemeProps$B({
34172
34464
  props: inProps,
34173
34465
  name: 'MuiInputAdornment'
34174
34466
  });
@@ -34368,7 +34660,7 @@
34368
34660
  }));
34369
34661
  });
34370
34662
  var InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(inProps, ref) {
34371
- var props = useThemeProps$b({
34663
+ var props = useThemeProps$B({
34372
34664
  name: 'MuiInputLabel',
34373
34665
  props: inProps
34374
34666
  });
@@ -34640,7 +34932,7 @@
34640
34932
  * attribute to `true` on that region until it has finished loading.
34641
34933
  */
34642
34934
  var LinearProgress = /*#__PURE__*/React__namespace.forwardRef(function LinearProgress(inProps, ref) {
34643
- var props = useThemeProps$b({
34935
+ var props = useThemeProps$B({
34644
34936
  props: inProps,
34645
34937
  name: 'MuiLinearProgress'
34646
34938
  });
@@ -34847,7 +35139,7 @@
34847
35139
  }));
34848
35140
  });
34849
35141
  var Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
34850
- var props = useThemeProps$b({
35142
+ var props = useThemeProps$B({
34851
35143
  props: inProps,
34852
35144
  name: 'MuiLink'
34853
35145
  });
@@ -35018,7 +35310,7 @@
35018
35310
  });
35019
35311
  });
35020
35312
  var List = /*#__PURE__*/React__namespace.forwardRef(function List(inProps, ref) {
35021
- var props = useThemeProps$b({
35313
+ var props = useThemeProps$B({
35022
35314
  props: inProps,
35023
35315
  name: 'MuiList'
35024
35316
  });
@@ -35191,7 +35483,7 @@
35191
35483
  });
35192
35484
  });
35193
35485
  var ListItemButton = /*#__PURE__*/React__namespace.forwardRef(function ListItemButton(inProps, ref) {
35194
- var props = useThemeProps$b({
35486
+ var props = useThemeProps$B({
35195
35487
  props: inProps,
35196
35488
  name: 'MuiListItemButton'
35197
35489
  });
@@ -35374,7 +35666,7 @@
35374
35666
  * Must be used as the last child of ListItem to function properly.
35375
35667
  */
35376
35668
  var ListItemSecondaryAction = /*#__PURE__*/React__namespace.forwardRef(function ListItemSecondaryAction(inProps, ref) {
35377
- var props = useThemeProps$b({
35669
+ var props = useThemeProps$B({
35378
35670
  props: inProps,
35379
35671
  name: 'MuiListItemSecondaryAction'
35380
35672
  });
@@ -35519,7 +35811,7 @@
35519
35811
  * Uses an additional container component if `ListItemSecondaryAction` is the last child.
35520
35812
  */
35521
35813
  var ListItem = /*#__PURE__*/React__namespace.forwardRef(function ListItem(inProps, ref) {
35522
- var props = useThemeProps$b({
35814
+ var props = useThemeProps$B({
35523
35815
  props: inProps,
35524
35816
  name: 'MuiListItem'
35525
35817
  });
@@ -35853,7 +36145,7 @@
35853
36145
  * A simple wrapper to apply `List` styles to an `Avatar`.
35854
36146
  */
35855
36147
  var ListItemAvatar = /*#__PURE__*/React__namespace.forwardRef(function ListItemAvatar(inProps, ref) {
35856
- var props = useThemeProps$b({
36148
+ var props = useThemeProps$B({
35857
36149
  props: inProps,
35858
36150
  name: 'MuiListItemAvatar'
35859
36151
  });
@@ -35932,7 +36224,7 @@
35932
36224
  * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.
35933
36225
  */
35934
36226
  var ListItemIcon = /*#__PURE__*/React__namespace.forwardRef(function ListItemIcon(inProps, ref) {
35935
- var props = useThemeProps$b({
36227
+ var props = useThemeProps$B({
35936
36228
  props: inProps,
35937
36229
  name: 'MuiListItemIcon'
35938
36230
  });
@@ -36015,7 +36307,7 @@
36015
36307
  });
36016
36308
  });
36017
36309
  var ListItemText = /*#__PURE__*/React__namespace.forwardRef(function ListItemText(inProps, ref) {
36018
- var props = useThemeProps$b({
36310
+ var props = useThemeProps$B({
36019
36311
  props: inProps,
36020
36312
  name: 'MuiListItemText'
36021
36313
  });
@@ -36405,6 +36697,7 @@
36405
36697
  var popoverClasses = generateUtilityClasses$1('MuiPopover', ['root', 'paper']);
36406
36698
  var popoverClasses$1 = popoverClasses;
36407
36699
 
36700
+ var useThemeProps$a = createUseThemeProps();
36408
36701
  function getOffsetTop(rect, vertical) {
36409
36702
  var offset = 0;
36410
36703
  if (typeof vertical === 'number') {
@@ -36471,7 +36764,7 @@
36471
36764
  });
36472
36765
  var Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProps, ref) {
36473
36766
  var _slotProps$paper, _slots$root, _slots$paper;
36474
- var props = useThemeProps$b({
36767
+ var props = useThemeProps$a({
36475
36768
  props: inProps,
36476
36769
  name: 'MuiPopover'
36477
36770
  });
@@ -36988,7 +37281,7 @@
36988
37281
  });
36989
37282
  var Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref) {
36990
37283
  var _slots$paper, _slotProps$paper;
36991
- var props = useThemeProps$b({
37284
+ var props = useThemeProps$B({
36992
37285
  props: inProps,
36993
37286
  name: 'MuiMenu'
36994
37287
  });
@@ -37332,7 +37625,7 @@
37332
37625
  })));
37333
37626
  });
37334
37627
  var MenuItem = /*#__PURE__*/React__namespace.forwardRef(function MenuItem(inProps, ref) {
37335
- var props = useThemeProps$b({
37628
+ var props = useThemeProps$B({
37336
37629
  props: inProps,
37337
37630
  name: 'MuiMenuItem'
37338
37631
  });
@@ -37478,6 +37771,7 @@
37478
37771
  var mobileStepperClasses = generateUtilityClasses$1('MuiMobileStepper', ['root', 'positionBottom', 'positionTop', 'positionStatic', 'dots', 'dot', 'dotActive', 'progress']);
37479
37772
  var mobileStepperClasses$1 = mobileStepperClasses;
37480
37773
 
37774
+ var useThemeProps$9 = createUseThemeProps();
37481
37775
  var useUtilityClasses$G = function useUtilityClasses(ownerState) {
37482
37776
  var classes = ownerState.classes,
37483
37777
  position = ownerState.position;
@@ -37498,28 +37792,41 @@
37498
37792
  return [styles.root, styles["position".concat(capitalize(ownerState.position))]];
37499
37793
  }
37500
37794
  })(function (_ref) {
37501
- var theme = _ref.theme,
37502
- ownerState = _ref.ownerState;
37503
- return _extends({
37795
+ var theme = _ref.theme;
37796
+ return {
37504
37797
  display: 'flex',
37505
37798
  flexDirection: 'row',
37506
37799
  justifyContent: 'space-between',
37507
37800
  alignItems: 'center',
37508
37801
  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
- });
37802
+ padding: 8,
37803
+ variants: [{
37804
+ props: function props(_ref2) {
37805
+ var position = _ref2.position;
37806
+ return position === 'top' || position === 'bottom';
37807
+ },
37808
+ style: {
37809
+ position: 'fixed',
37810
+ left: 0,
37811
+ right: 0,
37812
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
37813
+ }
37814
+ }, {
37815
+ props: {
37816
+ position: 'top'
37817
+ },
37818
+ style: {
37819
+ top: 0
37820
+ }
37821
+ }, {
37822
+ props: {
37823
+ position: 'bottom'
37824
+ },
37825
+ style: {
37826
+ bottom: 0
37827
+ }
37828
+ }]
37829
+ };
37523
37830
  });
37524
37831
  var MobileStepperDots = styled$1('div', {
37525
37832
  name: 'MuiMobileStepper',
@@ -37527,12 +37834,16 @@
37527
37834
  overridesResolver: function overridesResolver(props, styles) {
37528
37835
  return styles.dots;
37529
37836
  }
37530
- })(function (_ref2) {
37531
- var ownerState = _ref2.ownerState;
37532
- return _extends({}, ownerState.variant === 'dots' && {
37533
- display: 'flex',
37534
- flexDirection: 'row'
37535
- });
37837
+ })({
37838
+ variants: [{
37839
+ props: {
37840
+ variant: 'dots'
37841
+ },
37842
+ style: {
37843
+ display: 'flex',
37844
+ flexDirection: 'row'
37845
+ }
37846
+ }]
37536
37847
  });
37537
37848
  var MobileStepperDot = styled$1('div', {
37538
37849
  name: 'MuiMobileStepper',
@@ -37545,21 +37856,32 @@
37545
37856
  return [styles.dot, dotActive && styles.dotActive];
37546
37857
  }
37547
37858
  })(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
- }));
37859
+ var theme = _ref3.theme;
37860
+ return {
37861
+ variants: [{
37862
+ props: {
37863
+ variant: 'dots'
37864
+ },
37865
+ style: {
37866
+ transition: theme.transitions.create('background-color', {
37867
+ duration: theme.transitions.duration.shortest
37868
+ }),
37869
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
37870
+ borderRadius: '50%',
37871
+ width: 8,
37872
+ height: 8,
37873
+ margin: '0 2px'
37874
+ }
37875
+ }, {
37876
+ props: {
37877
+ variant: 'dots',
37878
+ dotActive: true
37879
+ },
37880
+ style: {
37881
+ backgroundColor: (theme.vars || theme).palette.primary.main
37882
+ }
37883
+ }]
37884
+ };
37563
37885
  });
37564
37886
  var MobileStepperProgress = styled$1(LinearProgress$1, {
37565
37887
  name: 'MuiMobileStepper',
@@ -37567,14 +37889,18 @@
37567
37889
  overridesResolver: function overridesResolver(props, styles) {
37568
37890
  return styles.progress;
37569
37891
  }
37570
- })(function (_ref4) {
37571
- var ownerState = _ref4.ownerState;
37572
- return _extends({}, ownerState.variant === 'progress' && {
37573
- width: '50%'
37574
- });
37892
+ })({
37893
+ variants: [{
37894
+ props: {
37895
+ variant: 'progress'
37896
+ },
37897
+ style: {
37898
+ width: '50%'
37899
+ }
37900
+ }]
37575
37901
  });
37576
37902
  var MobileStepper = /*#__PURE__*/React__namespace.forwardRef(function MobileStepper(inProps, ref) {
37577
- var props = useThemeProps$b({
37903
+ var props = useThemeProps$9({
37578
37904
  props: inProps,
37579
37905
  name: 'MuiMobileStepper'
37580
37906
  });
@@ -37891,7 +38217,7 @@
37891
38217
  * An alternative to `<Select native />` with a much smaller bundle size footprint.
37892
38218
  */
37893
38219
  var NativeSelect = /*#__PURE__*/React__namespace.forwardRef(function NativeSelect(inProps, ref) {
37894
- var props = useThemeProps$b({
38220
+ var props = useThemeProps$B({
37895
38221
  name: 'MuiNativeSelect',
37896
38222
  props: inProps
37897
38223
  });
@@ -38216,7 +38542,7 @@
38216
38542
  });
38217
38543
  var OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function OutlinedInput(inProps, ref) {
38218
38544
  var _ref5, _slots$root, _ref6, _slots$input, _React$Fragment;
38219
- var props = useThemeProps$b({
38545
+ var props = useThemeProps$B({
38220
38546
  props: inProps,
38221
38547
  name: 'MuiOutlinedInput'
38222
38548
  });
@@ -38766,7 +39092,7 @@
38766
39092
  });
38767
39093
  });
38768
39094
  var PaginationItem = /*#__PURE__*/React__namespace.forwardRef(function PaginationItem(inProps, ref) {
38769
- var props = useThemeProps$b({
39095
+ var props = useThemeProps$B({
38770
39096
  props: inProps,
38771
39097
  name: 'MuiPaginationItem'
38772
39098
  });
@@ -38969,7 +39295,7 @@
38969
39295
  return "Go to ".concat(type, " page");
38970
39296
  }
38971
39297
  var Pagination = /*#__PURE__*/React__namespace.forwardRef(function Pagination(inProps, ref) {
38972
- var props = useThemeProps$b({
39298
+ var props = useThemeProps$B({
38973
39299
  props: inProps,
38974
39300
  name: 'MuiPagination'
38975
39301
  });
@@ -39324,7 +39650,7 @@
39324
39650
  var defaultIcon$1 = /*#__PURE__*/jsxRuntime_1(RadioButtonIcon, {});
39325
39651
  var Radio = /*#__PURE__*/React__namespace.forwardRef(function Radio(inProps, ref) {
39326
39652
  var _defaultIcon$props$fo, _defaultCheckedIcon$p;
39327
- var props = useThemeProps$b({
39653
+ var props = useThemeProps$B({
39328
39654
  props: inProps,
39329
39655
  name: 'MuiRadio'
39330
39656
  });
@@ -39805,7 +40131,7 @@
39805
40131
  return "".concat(value, " Star").concat(value !== 1 ? 's' : '');
39806
40132
  }
39807
40133
  var Rating = /*#__PURE__*/React__namespace.forwardRef(function Rating(inProps, ref) {
39808
- var props = useThemeProps$b({
40134
+ var props = useThemeProps$B({
39809
40135
  name: 'MuiRating',
39810
40136
  props: inProps
39811
40137
  });
@@ -40246,7 +40572,7 @@
40246
40572
  }, colorSchemeStyles);
40247
40573
  });
40248
40574
  var ScopedCssBaseline = /*#__PURE__*/React__namespace.forwardRef(function ScopedCssBaseline(inProps, ref) {
40249
- var props = useThemeProps$b({
40575
+ var props = useThemeProps$B({
40250
40576
  props: inProps,
40251
40577
  name: 'MuiScopedCssBaseline'
40252
40578
  });
@@ -40968,7 +41294,7 @@
40968
41294
  var StyledOutlinedInput = styled$1(OutlinedInput$1, styledRootConfig)('');
40969
41295
  var StyledFilledInput = styled$1(FilledInput$1, styledRootConfig)('');
40970
41296
  var Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
40971
- var props = useThemeProps$b({
41297
+ var props = useThemeProps$B({
40972
41298
  name: 'MuiSelect',
40973
41299
  props: inProps
40974
41300
  });
@@ -41291,7 +41617,7 @@
41291
41617
  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);
41292
41618
  });
41293
41619
  var Skeleton = /*#__PURE__*/React__namespace.forwardRef(function Skeleton(inProps, ref) {
41294
- var props = useThemeProps$b({
41620
+ var props = useThemeProps$B({
41295
41621
  props: inProps,
41296
41622
  name: 'MuiSkeleton'
41297
41623
  });
@@ -41433,7 +41759,7 @@
41433
41759
  value: PropTypes.node
41434
41760
  } ;
41435
41761
 
41436
- var useThemeProps$1 = createUseThemeProps();
41762
+ var useThemeProps$8 = createUseThemeProps();
41437
41763
  function Identity(x) {
41438
41764
  return x;
41439
41765
  }
@@ -41960,7 +42286,7 @@
41960
42286
  };
41961
42287
  var Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(inputProps, ref) {
41962
42288
  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;
41963
- var props = useThemeProps$1({
42289
+ var props = useThemeProps$8({
41964
42290
  props: inputProps,
41965
42291
  name: 'MuiSlider'
41966
42292
  });
@@ -42537,7 +42863,7 @@
42537
42863
  marginRight: -8
42538
42864
  });
42539
42865
  var SnackbarContent = /*#__PURE__*/React__namespace.forwardRef(function SnackbarContent(inProps, ref) {
42540
- var props = useThemeProps$b({
42866
+ var props = useThemeProps$B({
42541
42867
  props: inProps,
42542
42868
  name: 'MuiSnackbarContent'
42543
42869
  });
@@ -42659,7 +42985,7 @@
42659
42985
  })));
42660
42986
  });
42661
42987
  var Snackbar = /*#__PURE__*/React__namespace.forwardRef(function Snackbar(inProps, ref) {
42662
- var props = useThemeProps$b({
42988
+ var props = useThemeProps$B({
42663
42989
  props: inProps,
42664
42990
  name: 'MuiSnackbar'
42665
42991
  });
@@ -43194,7 +43520,7 @@
43194
43520
  });
43195
43521
  });
43196
43522
  var SpeedDial = /*#__PURE__*/React__namespace.forwardRef(function SpeedDial(inProps, ref) {
43197
- var props = useThemeProps$b({
43523
+ var props = useThemeProps$B({
43198
43524
  props: inProps,
43199
43525
  name: 'MuiSpeedDial'
43200
43526
  });
@@ -43756,7 +44082,7 @@
43756
44082
  // TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.
43757
44083
  var Tooltip = /*#__PURE__*/React__namespace.forwardRef(function Tooltip(inProps, ref) {
43758
44084
  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;
43759
- var props = useThemeProps$b({
44085
+ var props = useThemeProps$B({
43760
44086
  props: inProps,
43761
44087
  name: 'MuiTooltip'
43762
44088
  });
@@ -44429,7 +44755,7 @@
44429
44755
  });
44430
44756
  });
44431
44757
  var SpeedDialAction = /*#__PURE__*/React__namespace.forwardRef(function SpeedDialAction(inProps, ref) {
44432
- var props = useThemeProps$b({
44758
+ var props = useThemeProps$B({
44433
44759
  props: inProps,
44434
44760
  name: 'MuiSpeedDialAction'
44435
44761
  });
@@ -44623,7 +44949,7 @@
44623
44949
  }));
44624
44950
  });
44625
44951
  var SpeedDialIcon = /*#__PURE__*/React__namespace.forwardRef(function SpeedDialIcon(inProps, ref) {
44626
- var props = useThemeProps$b({
44952
+ var props = useThemeProps$B({
44627
44953
  props: inProps,
44628
44954
  name: 'MuiSpeedDialIcon'
44629
44955
  });
@@ -44726,6 +45052,7 @@
44726
45052
  var stepClasses = generateUtilityClasses$1('MuiStep', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'completed']);
44727
45053
  var stepClasses$1 = stepClasses;
44728
45054
 
45055
+ var useThemeProps$7 = createUseThemeProps();
44729
45056
  var useUtilityClasses$n = function useUtilityClasses(ownerState) {
44730
45057
  var classes = ownerState.classes,
44731
45058
  orientation = ownerState.orientation,
@@ -44743,18 +45070,27 @@
44743
45070
  var ownerState = props.ownerState;
44744
45071
  return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
44745
45072
  }
44746
- })(function (_ref) {
44747
- var ownerState = _ref.ownerState;
44748
- return _extends({}, ownerState.orientation === 'horizontal' && {
44749
- paddingLeft: 8,
44750
- paddingRight: 8
44751
- }, ownerState.alternativeLabel && {
44752
- flex: 1,
44753
- position: 'relative'
44754
- });
45073
+ })({
45074
+ variants: [{
45075
+ props: {
45076
+ orientation: 'horizontal'
45077
+ },
45078
+ style: {
45079
+ paddingLeft: 8,
45080
+ paddingRight: 8
45081
+ }
45082
+ }, {
45083
+ props: {
45084
+ alternativeLabel: true
45085
+ },
45086
+ style: {
45087
+ flex: 1,
45088
+ position: 'relative'
45089
+ }
45090
+ }]
44755
45091
  });
44756
45092
  var Step = /*#__PURE__*/React__namespace.forwardRef(function Step(inProps, ref) {
44757
- var props = useThemeProps$b({
45093
+ var props = useThemeProps$7({
44758
45094
  props: inProps,
44759
45095
  name: 'MuiStep'
44760
45096
  });
@@ -44897,6 +45233,7 @@
44897
45233
  var stepIconClasses$1 = stepIconClasses;
44898
45234
 
44899
45235
  var _circle;
45236
+ var useThemeProps$6 = createUseThemeProps();
44900
45237
  var useUtilityClasses$m = function useUtilityClasses(ownerState) {
44901
45238
  var classes = ownerState.classes,
44902
45239
  active = ownerState.active,
@@ -44945,7 +45282,7 @@
44945
45282
  };
44946
45283
  });
44947
45284
  var StepIcon = /*#__PURE__*/React__namespace.forwardRef(function StepIcon(inProps, ref) {
44948
- var props = useThemeProps$b({
45285
+ var props = useThemeProps$6({
44949
45286
  props: inProps,
44950
45287
  name: 'MuiStepIcon'
44951
45288
  });
@@ -45049,6 +45386,7 @@
45049
45386
  var stepLabelClasses = generateUtilityClasses$1('MuiStepLabel', ['root', 'horizontal', 'vertical', 'label', 'active', 'completed', 'error', 'disabled', 'iconContainer', 'alternativeLabel', 'labelContainer']);
45050
45387
  var stepLabelClasses$1 = stepLabelClasses;
45051
45388
 
45389
+ var useThemeProps$5 = createUseThemeProps();
45052
45390
  var useUtilityClasses$l = function useUtilityClasses(ownerState) {
45053
45391
  var classes = ownerState.classes,
45054
45392
  orientation = ownerState.orientation,
@@ -45072,28 +45410,30 @@
45072
45410
  var ownerState = props.ownerState;
45073
45411
  return [styles.root, styles[ownerState.orientation]];
45074
45412
  }
45075
- })(function (_ref) {
45076
- var ownerState = _ref.ownerState;
45077
- return _extends(_defineProperty(_defineProperty({
45078
- display: 'flex',
45079
- alignItems: 'center'
45080
- }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45081
- flexDirection: 'column'
45082
- }), "&.".concat(stepLabelClasses$1.disabled), {
45083
- cursor: 'default'
45084
- }), ownerState.orientation === 'vertical' && {
45413
+ })(_defineProperty(_defineProperty(_defineProperty({
45414
+ display: 'flex',
45415
+ alignItems: 'center'
45416
+ }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45417
+ flexDirection: 'column'
45418
+ }), "&.".concat(stepLabelClasses$1.disabled), {
45419
+ cursor: 'default'
45420
+ }), "variants", [{
45421
+ props: {
45422
+ orientation: 'vertical'
45423
+ },
45424
+ style: {
45085
45425
  textAlign: 'left',
45086
45426
  padding: '8px 0'
45087
- });
45088
- });
45427
+ }
45428
+ }]));
45089
45429
  var StepLabelLabel = styled$1('span', {
45090
45430
  name: 'MuiStepLabel',
45091
45431
  slot: 'Label',
45092
45432
  overridesResolver: function overridesResolver(props, styles) {
45093
45433
  return styles.label;
45094
45434
  }
45095
- })(function (_ref2) {
45096
- var theme = _ref2.theme;
45435
+ })(function (_ref) {
45436
+ var theme = _ref.theme;
45097
45437
  return _extends({}, theme.typography.body2, _defineProperty(_defineProperty(_defineProperty(_defineProperty({
45098
45438
  display: 'block',
45099
45439
  transition: theme.transitions.create('color', {
@@ -45117,24 +45457,22 @@
45117
45457
  overridesResolver: function overridesResolver(props, styles) {
45118
45458
  return styles.iconContainer;
45119
45459
  }
45120
- })(function () {
45121
- return _defineProperty({
45122
- flexShrink: 0,
45123
- // Fix IE11 issue
45124
- display: 'flex',
45125
- paddingRight: 8
45126
- }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45127
- paddingRight: 0
45128
- });
45129
- });
45460
+ })(_defineProperty({
45461
+ flexShrink: 0,
45462
+ // Fix IE11 issue
45463
+ display: 'flex',
45464
+ paddingRight: 8
45465
+ }, "&.".concat(stepLabelClasses$1.alternativeLabel), {
45466
+ paddingRight: 0
45467
+ }));
45130
45468
  var StepLabelLabelContainer = styled$1('span', {
45131
45469
  name: 'MuiStepLabel',
45132
45470
  slot: 'LabelContainer',
45133
45471
  overridesResolver: function overridesResolver(props, styles) {
45134
45472
  return styles.labelContainer;
45135
45473
  }
45136
- })(function (_ref4) {
45137
- var theme = _ref4.theme;
45474
+ })(function (_ref2) {
45475
+ var theme = _ref2.theme;
45138
45476
  return _defineProperty({
45139
45477
  width: '100%',
45140
45478
  color: (theme.vars || theme).palette.text.secondary
@@ -45143,8 +45481,7 @@
45143
45481
  });
45144
45482
  });
45145
45483
  var StepLabel = /*#__PURE__*/React__namespace.forwardRef(function StepLabel(inProps, ref) {
45146
- var _slotProps$label;
45147
- var props = useThemeProps$b({
45484
+ var props = useThemeProps$5({
45148
45485
  props: inProps,
45149
45486
  name: 'MuiStepLabel'
45150
45487
  });
@@ -45156,11 +45493,13 @@
45156
45493
  error = _props$error === void 0 ? false : _props$error,
45157
45494
  iconProp = props.icon,
45158
45495
  optional = props.optional,
45496
+ _props$slots = props.slots,
45497
+ slots = _props$slots === void 0 ? {} : _props$slots,
45159
45498
  _props$slotProps = props.slotProps,
45160
45499
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
45161
45500
  StepIconComponentProp = props.StepIconComponent,
45162
45501
  StepIconProps = props.StepIconProps,
45163
- other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "error", "icon", "optional", "slotProps", "StepIconComponent", "StepIconProps"]);
45502
+ other = _objectWithoutProperties(props, ["children", "className", "componentsProps", "error", "icon", "optional", "slots", "slotProps", "StepIconComponent", "StepIconProps"]);
45164
45503
  var _React$useContext = React__namespace.useContext(StepperContext$1),
45165
45504
  alternativeLabel = _React$useContext.alternativeLabel,
45166
45505
  orientation = _React$useContext.orientation;
@@ -45183,7 +45522,18 @@
45183
45522
  orientation: orientation
45184
45523
  });
45185
45524
  var classes = useUtilityClasses$l(ownerState);
45186
- var labelSlotProps = (_slotProps$label = slotProps.label) != null ? _slotProps$label : componentsProps.label;
45525
+ var externalForwardedProps = {
45526
+ slots: slots,
45527
+ slotProps: _extends({}, componentsProps, slotProps)
45528
+ };
45529
+ var _useSlot = useSlot('label', {
45530
+ elementType: StepLabelLabel,
45531
+ externalForwardedProps: externalForwardedProps,
45532
+ ownerState: ownerState
45533
+ }),
45534
+ _useSlot2 = _slicedToArray(_useSlot, 2),
45535
+ LabelSlot = _useSlot2[0],
45536
+ labelProps = _useSlot2[1];
45187
45537
  return /*#__PURE__*/jsxRuntime_2(StepLabelRoot, _extends({
45188
45538
  className: clsx(classes.root, className),
45189
45539
  ref: ref,
@@ -45201,10 +45551,8 @@
45201
45551
  }) : null, /*#__PURE__*/jsxRuntime_2(StepLabelLabelContainer, {
45202
45552
  className: classes.labelContainer,
45203
45553
  ownerState: ownerState,
45204
- children: [children ? /*#__PURE__*/jsxRuntime_1(StepLabelLabel, _extends({
45205
- ownerState: ownerState
45206
- }, labelSlotProps, {
45207
- className: clsx(classes.label, labelSlotProps == null ? void 0 : labelSlotProps.className),
45554
+ children: [children ? /*#__PURE__*/jsxRuntime_1(LabelSlot, _extends({}, labelProps, {
45555
+ className: clsx(classes.label, labelProps == null ? void 0 : labelProps.className),
45208
45556
  children: children
45209
45557
  })) : null, optional]
45210
45558
  })]
@@ -45230,6 +45578,7 @@
45230
45578
  /**
45231
45579
  * The props used for each slot inside.
45232
45580
  * @default {}
45581
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
45233
45582
  */
45234
45583
  componentsProps: PropTypes.shape({
45235
45584
  label: PropTypes.object
@@ -45252,7 +45601,14 @@
45252
45601
  * @default {}
45253
45602
  */
45254
45603
  slotProps: PropTypes.shape({
45255
- label: PropTypes.object
45604
+ label: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
45605
+ }),
45606
+ /**
45607
+ * The components used for each slot inside.
45608
+ * @default {}
45609
+ */
45610
+ slots: PropTypes.shape({
45611
+ label: PropTypes.elementType
45256
45612
  }),
45257
45613
  /**
45258
45614
  * The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
@@ -45267,7 +45623,9 @@
45267
45623
  */
45268
45624
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
45269
45625
  } ;
45270
- StepLabel.muiName = 'StepLabel';
45626
+ if (StepLabel) {
45627
+ StepLabel.muiName = 'StepLabel';
45628
+ }
45271
45629
  var StepLabel$1 = StepLabel;
45272
45630
 
45273
45631
  function getStepButtonUtilityClass(slot) {
@@ -45276,6 +45634,7 @@
45276
45634
  var stepButtonClasses = generateUtilityClasses$1('MuiStepButton', ['root', 'horizontal', 'vertical', 'touchRipple']);
45277
45635
  var stepButtonClasses$1 = stepButtonClasses;
45278
45636
 
45637
+ var useThemeProps$4 = createUseThemeProps();
45279
45638
  var useUtilityClasses$k = function useUtilityClasses(ownerState) {
45280
45639
  var classes = ownerState.classes,
45281
45640
  orientation = ownerState.orientation;
@@ -45292,23 +45651,25 @@
45292
45651
  var ownerState = props.ownerState;
45293
45652
  return [_defineProperty({}, "& .".concat(stepButtonClasses$1.touchRipple), styles.touchRipple), styles.root, styles[ownerState.orientation]];
45294
45653
  }
45295
- })(function (_ref2) {
45296
- var ownerState = _ref2.ownerState;
45297
- return _extends({
45298
- width: '100%',
45299
- padding: '24px 16px',
45300
- margin: '-24px -16px',
45301
- boxSizing: 'content-box'
45302
- }, ownerState.orientation === 'vertical' && {
45654
+ })(_defineProperty(_defineProperty({
45655
+ width: '100%',
45656
+ padding: '24px 16px',
45657
+ margin: '-24px -16px',
45658
+ boxSizing: 'content-box'
45659
+ }, "& .".concat(stepButtonClasses$1.touchRipple), {
45660
+ color: 'rgba(0, 0, 0, 0.3)'
45661
+ }), "variants", [{
45662
+ props: {
45663
+ orientation: 'vertical'
45664
+ },
45665
+ style: {
45303
45666
  justifyContent: 'flex-start',
45304
45667
  padding: '8px',
45305
45668
  margin: '-8px'
45306
- }, _defineProperty({}, "& .".concat(stepButtonClasses$1.touchRipple), {
45307
- color: 'rgba(0, 0, 0, 0.3)'
45308
- }));
45309
- });
45669
+ }
45670
+ }]));
45310
45671
  var StepButton = /*#__PURE__*/React__namespace.forwardRef(function StepButton(inProps, ref) {
45311
- var props = useThemeProps$b({
45672
+ var props = useThemeProps$4({
45312
45673
  props: inProps,
45313
45674
  name: 'MuiStepButton'
45314
45675
  });
@@ -45385,6 +45746,7 @@
45385
45746
  var stepConnectorClasses = generateUtilityClasses$1('MuiStepConnector', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'active', 'completed', 'disabled', 'line', 'lineHorizontal', 'lineVertical']);
45386
45747
  var stepConnectorClasses$1 = stepConnectorClasses;
45387
45748
 
45749
+ var useThemeProps$3 = createUseThemeProps();
45388
45750
  var useUtilityClasses$j = function useUtilityClasses(ownerState) {
45389
45751
  var classes = ownerState.classes,
45390
45752
  orientation = ownerState.orientation,
@@ -45405,18 +45767,26 @@
45405
45767
  var ownerState = props.ownerState;
45406
45768
  return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
45407
45769
  }
45408
- })(function (_ref) {
45409
- var ownerState = _ref.ownerState;
45410
- return _extends({
45411
- flex: '1 1 auto'
45412
- }, ownerState.orientation === 'vertical' && {
45413
- marginLeft: 12 // half icon
45414
- }, ownerState.alternativeLabel && {
45415
- position: 'absolute',
45416
- top: 8 + 4,
45417
- left: 'calc(-50% + 20px)',
45418
- right: 'calc(50% + 20px)'
45419
- });
45770
+ })({
45771
+ flex: '1 1 auto',
45772
+ variants: [{
45773
+ props: {
45774
+ orientation: 'vertical'
45775
+ },
45776
+ style: {
45777
+ marginLeft: 12 // half icon
45778
+ }
45779
+ }, {
45780
+ props: {
45781
+ alternativeLabel: true
45782
+ },
45783
+ style: {
45784
+ position: 'absolute',
45785
+ top: 8 + 4,
45786
+ left: 'calc(-50% + 20px)',
45787
+ right: 'calc(50% + 20px)'
45788
+ }
45789
+ }]
45420
45790
  });
45421
45791
  var StepConnectorLine = styled$1('span', {
45422
45792
  name: 'MuiStepConnector',
@@ -45425,24 +45795,34 @@
45425
45795
  var ownerState = props.ownerState;
45426
45796
  return [styles.line, styles["line".concat(capitalize(ownerState.orientation))]];
45427
45797
  }
45428
- })(function (_ref2) {
45429
- var ownerState = _ref2.ownerState,
45430
- theme = _ref2.theme;
45798
+ })(function (_ref) {
45799
+ var theme = _ref.theme;
45431
45800
  var borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];
45432
- return _extends({
45801
+ return {
45433
45802
  display: 'block',
45434
- borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor
45435
- }, ownerState.orientation === 'horizontal' && {
45436
- borderTopStyle: 'solid',
45437
- borderTopWidth: 1
45438
- }, ownerState.orientation === 'vertical' && {
45439
- borderLeftStyle: 'solid',
45440
- borderLeftWidth: 1,
45441
- minHeight: 24
45442
- });
45803
+ borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor,
45804
+ variants: [{
45805
+ props: {
45806
+ orientation: 'horizontal'
45807
+ },
45808
+ style: {
45809
+ borderTopStyle: 'solid',
45810
+ borderTopWidth: 1
45811
+ }
45812
+ }, {
45813
+ props: {
45814
+ orientation: 'vertical'
45815
+ },
45816
+ style: {
45817
+ borderLeftStyle: 'solid',
45818
+ borderLeftWidth: 1,
45819
+ minHeight: 24
45820
+ }
45821
+ }]
45822
+ };
45443
45823
  });
45444
45824
  var StepConnector = /*#__PURE__*/React__namespace.forwardRef(function StepConnector(inProps, ref) {
45445
- var props = useThemeProps$b({
45825
+ var props = useThemeProps$3({
45446
45826
  props: inProps,
45447
45827
  name: 'MuiStepConnector'
45448
45828
  });
@@ -45501,6 +45881,7 @@
45501
45881
  var stepContentClasses = generateUtilityClasses$1('MuiStepContent', ['root', 'last', 'transition']);
45502
45882
  var stepContentClasses$1 = stepContentClasses;
45503
45883
 
45884
+ var useThemeProps$2 = createUseThemeProps();
45504
45885
  var useUtilityClasses$i = function useUtilityClasses(ownerState) {
45505
45886
  var classes = ownerState.classes,
45506
45887
  last = ownerState.last;
@@ -45518,18 +45899,23 @@
45518
45899
  return [styles.root, ownerState.last && styles.last];
45519
45900
  }
45520
45901
  })(function (_ref) {
45521
- var ownerState = _ref.ownerState,
45522
- theme = _ref.theme;
45523
- return _extends({
45902
+ var theme = _ref.theme;
45903
+ return {
45524
45904
  marginLeft: 12,
45525
45905
  // half icon
45526
45906
  paddingLeft: 8 + 12,
45527
45907
  // margin + half icon
45528
45908
  paddingRight: 8,
45529
- 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])
45530
- }, ownerState.last && {
45531
- borderLeft: 'none'
45532
- });
45909
+ 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]),
45910
+ variants: [{
45911
+ props: {
45912
+ last: true
45913
+ },
45914
+ style: {
45915
+ borderLeft: 'none'
45916
+ }
45917
+ }]
45918
+ };
45533
45919
  });
45534
45920
  var StepContentTransition = styled$1(Collapse$1, {
45535
45921
  name: 'MuiStepContent',
@@ -45539,7 +45925,7 @@
45539
45925
  }
45540
45926
  })({});
45541
45927
  var StepContent = /*#__PURE__*/React__namespace.forwardRef(function StepContent(inProps, ref) {
45542
- var props = useThemeProps$b({
45928
+ var props = useThemeProps$2({
45543
45929
  props: inProps,
45544
45930
  name: 'MuiStepContent'
45545
45931
  });
@@ -45640,6 +46026,7 @@
45640
46026
  var stepperClasses = generateUtilityClasses$1('MuiStepper', ['root', 'horizontal', 'vertical', 'alternativeLabel']);
45641
46027
  var stepperClasses$1 = stepperClasses;
45642
46028
 
46029
+ var useThemeProps$1 = createUseThemeProps();
45643
46030
  var useUtilityClasses$h = function useUtilityClasses(ownerState) {
45644
46031
  var orientation = ownerState.orientation,
45645
46032
  alternativeLabel = ownerState.alternativeLabel,
@@ -45656,22 +46043,35 @@
45656
46043
  var ownerState = props.ownerState;
45657
46044
  return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel];
45658
46045
  }
45659
- })(function (_ref) {
45660
- var ownerState = _ref.ownerState;
45661
- return _extends({
45662
- display: 'flex'
45663
- }, ownerState.orientation === 'horizontal' && {
45664
- flexDirection: 'row',
45665
- alignItems: 'center'
45666
- }, ownerState.orientation === 'vertical' && {
45667
- flexDirection: 'column'
45668
- }, ownerState.alternativeLabel && {
45669
- alignItems: 'flex-start'
45670
- });
46046
+ })({
46047
+ display: 'flex',
46048
+ variants: [{
46049
+ props: {
46050
+ orientation: 'horizontal'
46051
+ },
46052
+ style: {
46053
+ flexDirection: 'row',
46054
+ alignItems: 'center'
46055
+ }
46056
+ }, {
46057
+ props: {
46058
+ orientation: 'vertical'
46059
+ },
46060
+ style: {
46061
+ flexDirection: 'column'
46062
+ }
46063
+ }, {
46064
+ props: {
46065
+ alternativeLabel: true
46066
+ },
46067
+ style: {
46068
+ alignItems: 'flex-start'
46069
+ }
46070
+ }]
45671
46071
  });
45672
46072
  var defaultConnector = /*#__PURE__*/jsxRuntime_1(StepConnector$1, {});
45673
46073
  var Stepper = /*#__PURE__*/React__namespace.forwardRef(function Stepper(inProps, ref) {
45674
- var props = useThemeProps$b({
46074
+ var props = useThemeProps$1({
45675
46075
  props: inProps,
45676
46076
  name: 'MuiStepper'
45677
46077
  });
@@ -45937,7 +46337,7 @@
45937
46337
  }
45938
46338
  var iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);
45939
46339
  var SwipeableDrawer = /*#__PURE__*/React__namespace.forwardRef(function SwipeableDrawer(inProps, ref) {
45940
- var props = useThemeProps$c({
46340
+ var props = useThemeProps$C({
45941
46341
  name: 'MuiSwipeableDrawer',
45942
46342
  props: inProps
45943
46343
  });
@@ -46853,7 +47253,7 @@
46853
47253
  });
46854
47254
  });
46855
47255
  var Tab = /*#__PURE__*/React__namespace.forwardRef(function Tab(inProps, ref) {
46856
- var props = useThemeProps$b({
47256
+ var props = useThemeProps$B({
46857
47257
  props: inProps,
46858
47258
  name: 'MuiTab'
46859
47259
  });
@@ -47057,7 +47457,7 @@
47057
47457
  });
47058
47458
  var defaultComponent$4 = 'table';
47059
47459
  var Table = /*#__PURE__*/React__namespace.forwardRef(function Table(inProps, ref) {
47060
- var props = useThemeProps$b({
47460
+ var props = useThemeProps$B({
47061
47461
  props: inProps,
47062
47462
  name: 'MuiTable'
47063
47463
  });
@@ -47178,7 +47578,7 @@
47178
47578
  };
47179
47579
  var defaultComponent$3 = 'tbody';
47180
47580
  var TableBody = /*#__PURE__*/React__namespace.forwardRef(function TableBody(inProps, ref) {
47181
- var props = useThemeProps$b({
47581
+ var props = useThemeProps$B({
47182
47582
  props: inProps,
47183
47583
  name: 'MuiTableBody'
47184
47584
  });
@@ -47313,7 +47713,7 @@
47313
47713
  * or otherwise a `<td>` element.
47314
47714
  */
47315
47715
  var TableCell = /*#__PURE__*/React__namespace.forwardRef(function TableCell(inProps, ref) {
47316
- var props = useThemeProps$b({
47716
+ var props = useThemeProps$B({
47317
47717
  props: inProps,
47318
47718
  name: 'MuiTableCell'
47319
47719
  });
@@ -47452,7 +47852,7 @@
47452
47852
  overflowX: 'auto'
47453
47853
  });
47454
47854
  var TableContainer = /*#__PURE__*/React__namespace.forwardRef(function TableContainer(inProps, ref) {
47455
- var props = useThemeProps$b({
47855
+ var props = useThemeProps$B({
47456
47856
  props: inProps,
47457
47857
  name: 'MuiTableContainer'
47458
47858
  });
@@ -47527,7 +47927,7 @@
47527
47927
  };
47528
47928
  var defaultComponent$2 = 'tfoot';
47529
47929
  var TableFooter = /*#__PURE__*/React__namespace.forwardRef(function TableFooter(inProps, ref) {
47530
- var props = useThemeProps$b({
47930
+ var props = useThemeProps$B({
47531
47931
  props: inProps,
47532
47932
  name: 'MuiTableFooter'
47533
47933
  });
@@ -47606,7 +48006,7 @@
47606
48006
  };
47607
48007
  var defaultComponent$1 = 'thead';
47608
48008
  var TableHead = /*#__PURE__*/React__namespace.forwardRef(function TableHead(inProps, ref) {
47609
- var props = useThemeProps$b({
48009
+ var props = useThemeProps$B({
47610
48010
  props: inProps,
47611
48011
  name: 'MuiTableHead'
47612
48012
  });
@@ -47702,7 +48102,7 @@
47702
48102
  return ownerState.variant === 'regular' && theme.mixins.toolbar;
47703
48103
  });
47704
48104
  var Toolbar = /*#__PURE__*/React__namespace.forwardRef(function Toolbar(inProps, ref) {
47705
- var props = useThemeProps$b({
48105
+ var props = useThemeProps$B({
47706
48106
  props: inProps,
47707
48107
  name: 'MuiToolbar'
47708
48108
  });
@@ -48076,7 +48476,7 @@
48076
48476
  */
48077
48477
  var TablePagination = /*#__PURE__*/React__namespace.forwardRef(function TablePagination(inProps, ref) {
48078
48478
  var _slotProps$select;
48079
- var props = useThemeProps$b({
48479
+ var props = useThemeProps$B({
48080
48480
  props: inProps,
48081
48481
  name: 'MuiTablePagination'
48082
48482
  });
@@ -48432,7 +48832,7 @@
48432
48832
  * based on the material table element parent (head, body, etc).
48433
48833
  */
48434
48834
  var TableRow = /*#__PURE__*/React__namespace.forwardRef(function TableRow(inProps, ref) {
48435
- var props = useThemeProps$b({
48835
+ var props = useThemeProps$B({
48436
48836
  props: inProps,
48437
48837
  name: 'MuiTableRow'
48438
48838
  });
@@ -48580,7 +48980,7 @@
48580
48980
  * A button based label for placing inside `TableCell` for column sorting.
48581
48981
  */
48582
48982
  var TableSortLabel = /*#__PURE__*/React__namespace.forwardRef(function TableSortLabel(inProps, ref) {
48583
- var props = useThemeProps$b({
48983
+ var props = useThemeProps$B({
48584
48984
  props: inProps,
48585
48985
  name: 'MuiTableSortLabel'
48586
48986
  });
@@ -48791,7 +49191,7 @@
48791
49191
  });
48792
49192
  var TabScrollButton = /*#__PURE__*/React__namespace.forwardRef(function TabScrollButton(inProps, ref) {
48793
49193
  var _slots$StartScrollBut, _slots$EndScrollButto;
48794
- var props = useThemeProps$b({
49194
+ var props = useThemeProps$B({
48795
49195
  props: inProps,
48796
49196
  name: 'MuiTabScrollButton'
48797
49197
  });
@@ -49068,7 +49468,7 @@
49068
49468
  var defaultIndicatorStyle = {};
49069
49469
  var warnedOnceTabPresent = false;
49070
49470
  var Tabs = /*#__PURE__*/React__namespace.forwardRef(function Tabs(inProps, ref) {
49071
- var props = useThemeProps$b({
49471
+ var props = useThemeProps$B({
49072
49472
  props: inProps,
49073
49473
  name: 'MuiTabs'
49074
49474
  });
@@ -49779,7 +50179,7 @@
49779
50179
  * - using the underlying components directly as shown in the demos
49780
50180
  */
49781
50181
  var TextField = /*#__PURE__*/React__namespace.forwardRef(function TextField(inProps, ref) {
49782
- var props = useThemeProps$b({
50182
+ var props = useThemeProps$B({
49783
50183
  props: inProps,
49784
50184
  name: 'MuiTextField'
49785
50185
  });
@@ -50195,7 +50595,7 @@
50195
50595
  var resolvedProps = resolveProps(_extends({}, contextProps, {
50196
50596
  selected: isValueSelected(inProps.value, contextValue)
50197
50597
  }), inProps);
50198
- var props = useThemeProps$b({
50598
+ var props = useThemeProps$B({
50199
50599
  props: resolvedProps,
50200
50600
  name: 'MuiToggleButton'
50201
50601
  });
@@ -50399,7 +50799,7 @@
50399
50799
  }));
50400
50800
  });
50401
50801
  var ToggleButtonGroup = /*#__PURE__*/React__namespace.forwardRef(function ToggleButtonGroup(inProps, ref) {
50402
- var props = useThemeProps$b({
50802
+ var props = useThemeProps$B({
50403
50803
  props: inProps,
50404
50804
  name: 'MuiToggleButtonGroup'
50405
50805
  });
@@ -51068,7 +51468,7 @@
51068
51468
  exports.useStepContext = useStepContext;
51069
51469
  exports.useStepperContext = useStepperContext;
51070
51470
  exports.useTheme = useTheme;
51071
- exports.useThemeProps = useThemeProps$b;
51471
+ exports.useThemeProps = useThemeProps$B;
51072
51472
  exports.withStyles = withStyles;
51073
51473
  exports.withTheme = withTheme;
51074
51474