@mui/material 6.0.0-alpha.5 → 6.0.0-alpha.7

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 (274) hide show
  1. package/Accordion/Accordion.d.ts +2 -2
  2. package/Accordion/Accordion.js +2 -2
  3. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  4. package/Alert/Alert.d.ts +2 -2
  5. package/Alert/Alert.js +2 -2
  6. package/Alert/alertClasses.d.ts +12 -12
  7. package/Autocomplete/Autocomplete.d.ts +78 -12
  8. package/Autocomplete/Autocomplete.js +120 -59
  9. package/Avatar/Avatar.d.ts +1 -1
  10. package/Avatar/Avatar.js +1 -1
  11. package/Backdrop/Backdrop.d.ts +1 -1
  12. package/Backdrop/Backdrop.js +1 -1
  13. package/Badge/Badge.d.ts +2 -2
  14. package/Badge/Badge.js +2 -2
  15. package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  16. package/Button/Button.js +1 -1
  17. package/Button/buttonClasses.d.ts +33 -33
  18. package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
  19. package/CHANGELOG.md +95 -0
  20. package/Checkbox/Checkbox.js +3 -1
  21. package/Chip/chipClasses.d.ts +28 -26
  22. package/Chip/chipClasses.js +1 -1
  23. package/CircularProgress/circularProgressClasses.d.ts +6 -2
  24. package/Collapse/Collapse.js +66 -35
  25. package/Dialog/Dialog.js +105 -61
  26. package/DialogActions/DialogActions.js +16 -12
  27. package/DialogContent/DialogContent.js +25 -15
  28. package/DialogContentText/DialogContentText.js +3 -2
  29. package/DialogTitle/DialogTitle.js +2 -2
  30. package/Divider/Divider.d.ts +1 -1
  31. package/Divider/Divider.js +1 -1
  32. package/Drawer/Drawer.js +73 -32
  33. package/Fab/Fab.js +1 -1
  34. package/FilledInput/FilledInput.d.ts +1 -0
  35. package/FilledInput/FilledInput.js +170 -87
  36. package/FormControlLabel/FormControlLabel.d.ts +1 -1
  37. package/FormControlLabel/FormControlLabel.js +1 -1
  38. package/FormHelperText/FormHelperText.js +2 -2
  39. package/FormLabel/FormLabel.js +23 -13
  40. package/Grow/Grow.js +3 -1
  41. package/Icon/Icon.js +63 -23
  42. package/ImageList/ImageList.js +2 -2
  43. package/ImageListItem/ImageListItem.js +2 -2
  44. package/ImageListItemBar/ImageListItemBar.js +2 -2
  45. package/Input/Input.d.ts +1 -0
  46. package/Input/Input.js +84 -61
  47. package/InputAdornment/InputAdornment.js +37 -21
  48. package/InputBase/InputBase.js +58 -28
  49. package/InputLabel/InputLabel.js +120 -58
  50. package/Link/Link.js +99 -54
  51. package/Link/getTextDecoration.d.ts +2 -8
  52. package/Link/getTextDecoration.js +16 -8
  53. package/List/List.js +22 -13
  54. package/ListItem/ListItem.js +2 -2
  55. package/ListItemAvatar/ListItemAvatar.js +2 -2
  56. package/ListItemButton/ListItemButton.js +3 -2
  57. package/ListItemIcon/ListItemIcon.js +14 -9
  58. package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  59. package/ListItemText/ListItemText.js +2 -2
  60. package/ListSubheader/ListSubheader.js +5 -3
  61. package/Menu/Menu.js +3 -2
  62. package/MenuItem/MenuItem.js +47 -27
  63. package/NativeSelect/NativeSelectInput.js +78 -49
  64. package/OutlinedInput/NotchedOutline.js +60 -43
  65. package/OutlinedInput/OutlinedInput.js +97 -39
  66. package/Pagination/Pagination.js +2 -2
  67. package/PaginationItem/PaginationItem.d.ts +1 -1
  68. package/PaginationItem/PaginationItem.js +1 -1
  69. package/PaginationItem/paginationItemClasses.d.ts +4 -4
  70. package/Paper/Paper.js +44 -21
  71. package/Radio/Radio.js +5 -3
  72. package/Radio/RadioButtonIcon.js +1 -1
  73. package/Rating/Rating.js +3 -2
  74. package/Select/Select.js +2 -1
  75. package/Select/SelectInput.js +8 -6
  76. package/Skeleton/Skeleton.js +109 -61
  77. package/Slider/Slider.d.ts +2 -2
  78. package/Slider/Slider.js +2 -2
  79. package/Snackbar/Snackbar.js +66 -40
  80. package/SnackbarContent/SnackbarContent.js +2 -2
  81. package/SpeedDial/SpeedDial.d.ts +28 -1
  82. package/SpeedDial/SpeedDial.js +107 -49
  83. package/SpeedDialAction/SpeedDialAction.js +50 -24
  84. package/SpeedDialIcon/SpeedDialIcon.js +37 -16
  85. package/StepConnector/stepConnectorClasses.d.ts +2 -2
  86. package/StepLabel/StepLabel.d.ts +3 -3
  87. package/StepLabel/StepLabel.js +3 -3
  88. package/SwipeableDrawer/SwipeArea.js +39 -18
  89. package/Tab/Tab.js +127 -55
  90. package/TabScrollButton/TabScrollButton.js +27 -15
  91. package/Table/Table.js +2 -2
  92. package/TableBody/TableBody.js +2 -2
  93. package/TableCell/TableCell.js +2 -2
  94. package/TableContainer/TableContainer.js +2 -2
  95. package/TableFooter/TableFooter.js +2 -2
  96. package/TableHead/TableHead.js +2 -2
  97. package/TablePagination/TablePagination.js +2 -2
  98. package/TableRow/TableRow.js +2 -2
  99. package/TableSortLabel/TableSortLabel.js +2 -2
  100. package/Tabs/Tabs.js +107 -54
  101. package/TextField/TextField.js +2 -2
  102. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +4 -2
  103. package/Toolbar/Toolbar.js +3 -7
  104. package/Tooltip/Tooltip.js +185 -88
  105. package/Typography/Typography.js +89 -39
  106. package/index.js +1 -1
  107. package/internal/SwitchBase.js +39 -11
  108. package/modern/Accordion/Accordion.js +2 -2
  109. package/modern/Alert/Alert.js +2 -2
  110. package/modern/Autocomplete/Autocomplete.js +120 -59
  111. package/modern/Avatar/Avatar.js +1 -1
  112. package/modern/Backdrop/Backdrop.js +1 -1
  113. package/modern/Badge/Badge.js +2 -2
  114. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  115. package/modern/Button/Button.js +1 -1
  116. package/modern/Checkbox/Checkbox.js +3 -1
  117. package/modern/Chip/chipClasses.js +1 -1
  118. package/modern/Collapse/Collapse.js +66 -35
  119. package/modern/Dialog/Dialog.js +105 -61
  120. package/modern/DialogActions/DialogActions.js +16 -12
  121. package/modern/DialogContent/DialogContent.js +25 -15
  122. package/modern/DialogContentText/DialogContentText.js +3 -2
  123. package/modern/DialogTitle/DialogTitle.js +2 -2
  124. package/modern/Divider/Divider.js +1 -1
  125. package/modern/Drawer/Drawer.js +73 -32
  126. package/modern/Fab/Fab.js +1 -1
  127. package/modern/FilledInput/FilledInput.js +170 -87
  128. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  129. package/modern/FormHelperText/FormHelperText.js +2 -2
  130. package/modern/FormLabel/FormLabel.js +23 -13
  131. package/modern/Grow/Grow.js +3 -1
  132. package/modern/Icon/Icon.js +63 -23
  133. package/modern/ImageList/ImageList.js +2 -2
  134. package/modern/ImageListItem/ImageListItem.js +2 -2
  135. package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
  136. package/modern/Input/Input.js +84 -61
  137. package/modern/InputAdornment/InputAdornment.js +37 -21
  138. package/modern/InputBase/InputBase.js +58 -28
  139. package/modern/InputLabel/InputLabel.js +120 -58
  140. package/modern/Link/Link.js +99 -54
  141. package/modern/Link/getTextDecoration.js +16 -8
  142. package/modern/List/List.js +22 -13
  143. package/modern/ListItem/ListItem.js +2 -2
  144. package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
  145. package/modern/ListItemButton/ListItemButton.js +3 -2
  146. package/modern/ListItemIcon/ListItemIcon.js +14 -9
  147. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  148. package/modern/ListItemText/ListItemText.js +2 -2
  149. package/modern/ListSubheader/ListSubheader.js +5 -3
  150. package/modern/Menu/Menu.js +3 -2
  151. package/modern/MenuItem/MenuItem.js +47 -27
  152. package/modern/NativeSelect/NativeSelectInput.js +78 -49
  153. package/modern/OutlinedInput/NotchedOutline.js +60 -43
  154. package/modern/OutlinedInput/OutlinedInput.js +97 -39
  155. package/modern/Pagination/Pagination.js +2 -2
  156. package/modern/PaginationItem/PaginationItem.js +1 -1
  157. package/modern/Paper/Paper.js +44 -21
  158. package/modern/Radio/Radio.js +5 -3
  159. package/modern/Radio/RadioButtonIcon.js +1 -1
  160. package/modern/Rating/Rating.js +3 -2
  161. package/modern/Select/Select.js +2 -1
  162. package/modern/Select/SelectInput.js +8 -6
  163. package/modern/Skeleton/Skeleton.js +109 -61
  164. package/modern/Slider/Slider.js +2 -2
  165. package/modern/Snackbar/Snackbar.js +66 -40
  166. package/modern/SnackbarContent/SnackbarContent.js +2 -2
  167. package/modern/SpeedDial/SpeedDial.js +107 -49
  168. package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
  169. package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
  170. package/modern/StepLabel/StepLabel.js +3 -3
  171. package/modern/SwipeableDrawer/SwipeArea.js +39 -18
  172. package/modern/Tab/Tab.js +127 -55
  173. package/modern/TabScrollButton/TabScrollButton.js +27 -15
  174. package/modern/Table/Table.js +2 -2
  175. package/modern/TableBody/TableBody.js +2 -2
  176. package/modern/TableCell/TableCell.js +2 -2
  177. package/modern/TableContainer/TableContainer.js +2 -2
  178. package/modern/TableFooter/TableFooter.js +2 -2
  179. package/modern/TableHead/TableHead.js +2 -2
  180. package/modern/TablePagination/TablePagination.js +2 -2
  181. package/modern/TableRow/TableRow.js +2 -2
  182. package/modern/TableSortLabel/TableSortLabel.js +2 -2
  183. package/modern/Tabs/Tabs.js +107 -54
  184. package/modern/TextField/TextField.js +2 -2
  185. package/modern/Toolbar/Toolbar.js +3 -7
  186. package/modern/Tooltip/Tooltip.js +185 -88
  187. package/modern/Typography/Typography.js +89 -39
  188. package/modern/index.js +1 -1
  189. package/modern/internal/SwitchBase.js +39 -11
  190. package/node/Accordion/Accordion.js +2 -2
  191. package/node/Alert/Alert.js +2 -2
  192. package/node/Autocomplete/Autocomplete.js +120 -60
  193. package/node/Avatar/Avatar.js +1 -1
  194. package/node/Backdrop/Backdrop.js +1 -1
  195. package/node/Badge/Badge.js +2 -2
  196. package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
  197. package/node/Button/Button.js +2 -2
  198. package/node/Checkbox/Checkbox.js +3 -1
  199. package/node/Chip/chipClasses.js +1 -1
  200. package/node/Collapse/Collapse.js +70 -39
  201. package/node/Dialog/Dialog.js +110 -66
  202. package/node/DialogActions/DialogActions.js +18 -14
  203. package/node/DialogContent/DialogContent.js +27 -17
  204. package/node/DialogContentText/DialogContentText.js +6 -5
  205. package/node/DialogTitle/DialogTitle.js +4 -4
  206. package/node/Divider/Divider.js +1 -1
  207. package/node/Drawer/Drawer.js +78 -37
  208. package/node/Fab/Fab.js +2 -2
  209. package/node/FilledInput/FilledInput.js +176 -91
  210. package/node/FormControlLabel/FormControlLabel.js +1 -1
  211. package/node/FormHelperText/FormHelperText.js +4 -4
  212. package/node/FormLabel/FormLabel.js +26 -16
  213. package/node/Grow/Grow.js +3 -1
  214. package/node/Icon/Icon.js +65 -25
  215. package/node/ImageList/ImageList.js +4 -4
  216. package/node/ImageListItem/ImageListItem.js +4 -4
  217. package/node/ImageListItemBar/ImageListItemBar.js +8 -8
  218. package/node/Input/Input.js +87 -64
  219. package/node/InputAdornment/InputAdornment.js +39 -23
  220. package/node/InputBase/InputBase.js +61 -31
  221. package/node/InputLabel/InputLabel.js +123 -61
  222. package/node/Link/Link.js +101 -56
  223. package/node/Link/getTextDecoration.js +18 -10
  224. package/node/List/List.js +24 -15
  225. package/node/ListItem/ListItem.js +5 -5
  226. package/node/ListItemAvatar/ListItemAvatar.js +4 -4
  227. package/node/ListItemButton/ListItemButton.js +6 -5
  228. package/node/ListItemIcon/ListItemIcon.js +16 -11
  229. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  230. package/node/ListItemText/ListItemText.js +4 -4
  231. package/node/ListSubheader/ListSubheader.js +7 -5
  232. package/node/Menu/Menu.js +8 -7
  233. package/node/MenuItem/MenuItem.js +50 -30
  234. package/node/NativeSelect/NativeSelectInput.js +80 -53
  235. package/node/OutlinedInput/NotchedOutline.js +64 -47
  236. package/node/OutlinedInput/OutlinedInput.js +101 -43
  237. package/node/Pagination/Pagination.js +5 -5
  238. package/node/PaginationItem/PaginationItem.js +1 -1
  239. package/node/Paper/Paper.js +49 -28
  240. package/node/Radio/Radio.js +6 -4
  241. package/node/Radio/RadioButtonIcon.js +2 -2
  242. package/node/Rating/Rating.js +9 -8
  243. package/node/Select/Select.js +6 -5
  244. package/node/Select/SelectInput.js +9 -7
  245. package/node/Skeleton/Skeleton.js +113 -65
  246. package/node/Slider/Slider.js +2 -2
  247. package/node/Snackbar/Snackbar.js +68 -42
  248. package/node/SnackbarContent/SnackbarContent.js +6 -6
  249. package/node/SpeedDial/SpeedDial.js +111 -53
  250. package/node/SpeedDialAction/SpeedDialAction.js +54 -28
  251. package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
  252. package/node/StepLabel/StepLabel.js +3 -3
  253. package/node/SwipeableDrawer/SwipeArea.js +41 -20
  254. package/node/Tab/Tab.js +129 -57
  255. package/node/TabScrollButton/TabScrollButton.js +29 -17
  256. package/node/Table/Table.js +4 -4
  257. package/node/TableBody/TableBody.js +4 -4
  258. package/node/TableCell/TableCell.js +4 -4
  259. package/node/TableContainer/TableContainer.js +4 -4
  260. package/node/TableFooter/TableFooter.js +4 -4
  261. package/node/TableHead/TableHead.js +4 -4
  262. package/node/TablePagination/TablePagination.js +10 -10
  263. package/node/TableRow/TableRow.js +4 -4
  264. package/node/TableSortLabel/TableSortLabel.js +5 -5
  265. package/node/Tabs/Tabs.js +113 -60
  266. package/node/TextField/TextField.js +4 -4
  267. package/node/Toolbar/Toolbar.js +5 -9
  268. package/node/Tooltip/Tooltip.js +189 -92
  269. package/node/Typography/Typography.js +90 -40
  270. package/node/index.js +1 -1
  271. package/node/internal/SwitchBase.js +41 -13
  272. package/package.json +6 -6
  273. package/umd/material-ui.development.js +2705 -1353
  274. package/umd/material-ui.production.min.js +4 -4
@@ -5,6 +5,8 @@ export interface ChipClasses {
5
5
  sizeSmall: string;
6
6
  /** Styles applied to the root element if `size="medium"`. */
7
7
  sizeMedium: string;
8
+ /** Styles applied to the root element if `color="default"`. */
9
+ colorDefault: string;
8
10
  /** Styles applied to the root element if `color="error"`. */
9
11
  colorError: string;
10
12
  /** Styles applied to the root element if `color="info"`. */
@@ -22,21 +24,21 @@ export interface ChipClasses {
22
24
  /** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
23
25
  clickable: string;
24
26
  /** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`.
25
- * @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
27
+ * @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
26
28
  */
27
29
  clickableColorPrimary: string;
28
30
  /** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`.
29
- * @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
31
+ * @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-clickable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
30
32
  */
31
33
  clickableColorSecondary: string;
32
34
  /** Styles applied to the root element if `onDelete` is defined. */
33
35
  deletable: string;
34
36
  /** Styles applied to the root element if `onDelete` and `color="primary"` is defined.
35
- * @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
37
+ * @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
36
38
  */
37
39
  deletableColorPrimary: string;
38
40
  /** Styles applied to the root element if `onDelete` and `color="secondary"` is defined.
39
- * @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
41
+ * @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-deletable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
40
42
  */
41
43
  deletableColorSecondary: string;
42
44
  /** Styles applied to the root element if `variant="outlined"`. */
@@ -44,99 +46,99 @@ export interface ChipClasses {
44
46
  /** Styles applied to the root element if `variant="filled"`. */
45
47
  filled: string;
46
48
  /** Styles applied to the root element if `variant="outlined"` and `color="primary"`.
47
- * @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
49
+ * @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
48
50
  */
49
51
  outlinedPrimary: string;
50
52
  /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`.
51
- * @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
53
+ * @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
52
54
  */
53
55
  outlinedSecondary: string;
54
56
  /** Styles applied to the root element if `variant="filled"` and `color="primary"`.
55
- * @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
57
+ * @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
56
58
  */
57
59
  filledPrimary: string;
58
60
  /** Styles applied to the root element if `variant="filled"` and `color="secondary"`.
59
- * @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
61
+ * @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
60
62
  */
61
63
  filledSecondary: string;
62
64
  /** Styles applied to the avatar element. */
63
65
  avatar: string;
64
66
  /** Styles applied to the avatar element if `size="small"`.
65
- * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
67
+ * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
66
68
  */
67
69
  avatarSmall: string;
68
70
  /** Styles applied to the avatar element if `size="medium"`.
69
- * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
71
+ * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
70
72
  */
71
73
  avatarMedium: string;
72
74
  /** Styles applied to the avatar element if `color="primary"`.
73
- * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
75
+ * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
74
76
  */
75
77
  avatarColorPrimary: string;
76
78
  /** Styles applied to the avatar element if `color="secondary"`.
77
- * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
79
+ * @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-avatar) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
78
80
  */
79
81
  avatarColorSecondary: string;
80
82
  /** Styles applied to the icon element. */
81
83
  icon: string;
82
84
  /** Styles applied to the icon element if `size="small"`.
83
- * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
85
+ * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
84
86
  */
85
87
  iconSmall: string;
86
88
  /** Styles applied to the icon element if `size="medium"`.
87
- * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
89
+ * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
88
90
  */
89
91
  iconMedium: string;
90
92
  /** Styles applied to the icon element if `color="primary"`.
91
- * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
93
+ * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
92
94
  */
93
95
  iconColorPrimary: string;
94
96
  /** Styles applied to the icon element if `color="secondary"`.
95
- * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
97
+ * @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-icon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
96
98
  */
97
99
  iconColorSecondary: string;
98
100
  /** Styles applied to the label `span` element. */
99
101
  label: string;
100
102
  /** Styles applied to the label `span` element if `size="small"`.
101
- * @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#chip-classes-label) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
103
+ * @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#chip-classes-label) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
102
104
  */
103
105
  labelSmall: string;
104
106
  /** Styles applied to the label `span` element if `size="medium"`.
105
- * @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#chip-classes-label) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
107
+ * @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#chip-classes-label) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
106
108
  */
107
109
  labelMedium: string;
108
110
  /** Styles applied to the deleteIcon element. */
109
111
  deleteIcon: string;
110
112
  /** Styles applied to the deleteIcon element if `size="small"`.
111
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
113
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
112
114
  */
113
115
  deleteIconSmall: string;
114
116
  /** Styles applied to the deleteIcon element if `size="medium"`.
115
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
117
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
116
118
  */
117
119
  deleteIconMedium: string;
118
120
  /** Styles applied to the deleteIcon element if `color="primary"`.
119
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
121
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
120
122
  */
121
123
  deleteIconColorPrimary: string;
122
124
  /** Styles applied to the deleteIcon element if `color="secondary"`.
123
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
125
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
124
126
  */
125
127
  deleteIconColorSecondary: string;
126
128
  /** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`.
127
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
129
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
128
130
  */
129
131
  deleteIconOutlinedColorPrimary: string;
130
132
  /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`.
131
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
133
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
132
134
  */
133
135
  deleteIconOutlinedColorSecondary: string;
134
136
  /** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`.
135
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
137
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
136
138
  */
137
139
  deleteIconFilledColorPrimary: string;
138
140
  /** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`.
139
- * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
141
+ * @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
140
142
  */
141
143
  deleteIconFilledColorSecondary: string;
142
144
  /** State class applied to the root element if keyboard focused. */
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getChipUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiChip', slot);
5
5
  }
6
- const chipClasses = generateUtilityClasses('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']);
6
+ const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', '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']);
7
7
  export default chipClasses;
@@ -13,9 +13,13 @@ export interface CircularProgressClasses {
13
13
  svg: string;
14
14
  /** Styles applied to the `circle` svg path. */
15
15
  circle: string;
16
- /** Styles applied to the `circle` svg path if `variant="determinate"`. */
16
+ /** Styles applied to the `circle` svg path if `variant="determinate"`.
17
+ * @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-circle) and [.MuiCircularProgress-determinate](/material-ui/api/circular-progress/#circular-progress-classes-determinate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
18
+ */
17
19
  circleDeterminate: string;
18
- /** Styles applied to the `circle` svg path if `variant="indeterminate"`. */
20
+ /** Styles applied to the `circle` svg path if `variant="indeterminate"`.
21
+ * @deprecated Combine the [.MuiCircularProgress-circle](/material-ui/api/circular-progress/#circular-progress-classes-circle) and [.MuiCircularProgress-indeterminate](/material-ui/api/circular-progress/#circular-progress-classes-indeterminate) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
22
+ */
19
23
  circleIndeterminate: string;
20
24
  /** Styles applied to the `circle` svg path if `disableShrink={true}`. */
21
25
  circleDisableShrink: string;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -10,14 +10,14 @@ import { Transition } from 'react-transition-group';
10
10
  import useTimeout from '@mui/utils/useTimeout';
11
11
  import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
12
12
  import composeClasses from '@mui/utils/composeClasses';
13
- import styled from '../styles/styled';
14
- import useThemeProps from '../styles/useThemeProps';
13
+ import { styled, createUseThemeProps } from '../zero-styled';
15
14
  import { duration } from '../styles/createTransitions';
16
15
  import { getTransitionProps } from '../transitions/utils';
17
16
  import useTheme from '../styles/useTheme';
18
17
  import { useForkRef } from '../utils';
19
18
  import { getCollapseUtilityClass } from './collapseClasses';
20
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
+ const useThemeProps = createUseThemeProps('MuiCollapse');
21
21
  const useUtilityClasses = ownerState => {
22
22
  const {
23
23
  orientation,
@@ -42,50 +42,79 @@ const CollapseRoot = styled('div', {
42
42
  return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];
43
43
  }
44
44
  })(({
45
- theme,
46
- ownerState
47
- }) => _extends({
45
+ theme
46
+ }) => ({
48
47
  height: 0,
49
48
  overflow: 'hidden',
50
- transition: theme.transitions.create('height')
51
- }, ownerState.orientation === 'horizontal' && {
52
- height: 'auto',
53
- width: 0,
54
- transition: theme.transitions.create('width')
55
- }, ownerState.state === 'entered' && _extends({
56
- height: 'auto',
57
- overflow: 'visible'
58
- }, ownerState.orientation === 'horizontal' && {
59
- width: 'auto'
60
- }), ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && {
61
- visibility: 'hidden'
49
+ transition: theme.transitions.create('height'),
50
+ variants: [{
51
+ props: {
52
+ orientation: 'horizontal'
53
+ },
54
+ style: {
55
+ height: 'auto',
56
+ width: 0,
57
+ transition: theme.transitions.create('width')
58
+ }
59
+ }, {
60
+ props: {
61
+ state: 'entered'
62
+ },
63
+ style: {
64
+ height: 'auto',
65
+ overflow: 'visible'
66
+ }
67
+ }, {
68
+ props: {
69
+ state: 'entered',
70
+ orientation: 'horizontal'
71
+ },
72
+ style: {
73
+ width: 'auto'
74
+ }
75
+ }, {
76
+ props: ({
77
+ ownerState
78
+ }) => ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px',
79
+ style: {
80
+ visibility: 'hidden'
81
+ }
82
+ }]
62
83
  }));
63
84
  const CollapseWrapper = styled('div', {
64
85
  name: 'MuiCollapse',
65
86
  slot: 'Wrapper',
66
87
  overridesResolver: (props, styles) => styles.wrapper
67
- })(({
68
- ownerState
69
- }) => _extends({
88
+ })({
70
89
  // Hack to get children with a negative margin to not falsify the height computation.
71
90
  display: 'flex',
72
- width: '100%'
73
- }, ownerState.orientation === 'horizontal' && {
74
- width: 'auto',
75
- height: '100%'
76
- }));
91
+ width: '100%',
92
+ variants: [{
93
+ props: {
94
+ orientation: 'horizontal'
95
+ },
96
+ style: {
97
+ width: 'auto',
98
+ height: '100%'
99
+ }
100
+ }]
101
+ });
77
102
  const CollapseWrapperInner = styled('div', {
78
103
  name: 'MuiCollapse',
79
104
  slot: 'WrapperInner',
80
105
  overridesResolver: (props, styles) => styles.wrapperInner
81
- })(({
82
- ownerState
83
- }) => _extends({
84
- width: '100%'
85
- }, ownerState.orientation === 'horizontal' && {
86
- width: 'auto',
87
- height: '100%'
88
- }));
106
+ })({
107
+ width: '100%',
108
+ variants: [{
109
+ props: {
110
+ orientation: 'horizontal'
111
+ },
112
+ style: {
113
+ width: 'auto',
114
+ height: '100%'
115
+ }
116
+ }]
117
+ });
89
118
 
90
119
  /**
91
120
  * The Collapse transition is used by the
@@ -373,5 +402,7 @@ process.env.NODE_ENV !== "production" ? Collapse.propTypes /* remove-proptypes *
373
402
  exit: PropTypes.number
374
403
  })])
375
404
  } : void 0;
376
- Collapse.muiSupportAuto = true;
405
+ if (Collapse) {
406
+ Collapse.muiSupportAuto = true;
407
+ }
377
408
  export default Collapse;
package/Dialog/Dialog.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["aria-describedby", "aria-labelledby", "BackdropComponent", "BackdropProps", "children", "className", "disableEscapeKeyDown", "fullScreen", "fullWidth", "maxWidth", "onBackdropClick", "onClick", "onClose", "open", "PaperComponent", "PaperProps", "scroll", "TransitionComponent", "transitionDuration", "TransitionProps"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -12,13 +12,13 @@ import capitalize from '../utils/capitalize';
12
12
  import Modal from '../Modal';
13
13
  import Fade from '../Fade';
14
14
  import Paper from '../Paper';
15
- import useThemeProps from '../styles/useThemeProps';
16
- import styled from '../styles/styled';
17
15
  import dialogClasses, { getDialogUtilityClass } from './dialogClasses';
18
16
  import DialogContext from './DialogContext';
19
17
  import Backdrop from '../Backdrop';
20
18
  import useTheme from '../styles/useTheme';
19
+ import { styled, createUseThemeProps } from '../zero-styled';
21
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
+ const useThemeProps = createUseThemeProps('MuiDialog');
22
22
  const DialogBackdrop = styled(Backdrop, {
23
23
  name: 'MuiDialog',
24
24
  slot: 'Backdrop',
@@ -61,31 +61,40 @@ const DialogContainer = styled('div', {
61
61
  } = props;
62
62
  return [styles.container, styles[`scroll${capitalize(ownerState.scroll)}`]];
63
63
  }
64
- })(({
65
- ownerState
66
- }) => _extends({
64
+ })({
67
65
  height: '100%',
68
66
  '@media print': {
69
67
  height: 'auto'
70
68
  },
71
69
  // We disable the focus ring for mouse, touch and keyboard users.
72
- outline: 0
73
- }, ownerState.scroll === 'paper' && {
74
- display: 'flex',
75
- justifyContent: 'center',
76
- alignItems: 'center'
77
- }, ownerState.scroll === 'body' && {
78
- overflowY: 'auto',
79
- overflowX: 'hidden',
80
- textAlign: 'center',
81
- '&::after': {
82
- content: '""',
83
- display: 'inline-block',
84
- verticalAlign: 'middle',
85
- height: '100%',
86
- width: '0'
87
- }
88
- }));
70
+ outline: 0,
71
+ variants: [{
72
+ props: {
73
+ scroll: 'paper'
74
+ },
75
+ style: {
76
+ display: 'flex',
77
+ justifyContent: 'center',
78
+ alignItems: 'center'
79
+ }
80
+ }, {
81
+ props: {
82
+ scroll: 'body'
83
+ },
84
+ style: {
85
+ overflowY: 'auto',
86
+ overflowX: 'hidden',
87
+ textAlign: 'center',
88
+ '&::after': {
89
+ content: '""',
90
+ display: 'inline-block',
91
+ verticalAlign: 'middle',
92
+ height: '100%',
93
+ width: '0'
94
+ }
95
+ }
96
+ }]
97
+ });
89
98
  const DialogPaper = styled(Paper, {
90
99
  name: 'MuiDialog',
91
100
  slot: 'Paper',
@@ -96,9 +105,8 @@ const DialogPaper = styled(Paper, {
96
105
  return [styles.paper, styles[`scrollPaper${capitalize(ownerState.scroll)}`], styles[`paperWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
97
106
  }
98
107
  })(({
99
- theme,
100
- ownerState
101
- }) => _extends({
108
+ theme
109
+ }) => ({
102
110
  margin: 32,
103
111
  position: 'relative',
104
112
  overflowY: 'auto',
@@ -106,44 +114,80 @@ const DialogPaper = styled(Paper, {
106
114
  '@media print': {
107
115
  overflowY: 'visible',
108
116
  boxShadow: 'none'
109
- }
110
- }, ownerState.scroll === 'paper' && {
111
- display: 'flex',
112
- flexDirection: 'column',
113
- maxHeight: 'calc(100% - 64px)'
114
- }, ownerState.scroll === 'body' && {
115
- display: 'inline-block',
116
- verticalAlign: 'middle',
117
- textAlign: 'left' // 'initial' doesn't work on IE11
118
- }, !ownerState.maxWidth && {
119
- maxWidth: 'calc(100% - 64px)'
120
- }, ownerState.maxWidth === 'xs' && {
121
- maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
122
- [`&.${dialogClasses.paperScrollBody}`]: {
123
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
124
- maxWidth: 'calc(100% - 64px)'
117
+ },
118
+ variants: [{
119
+ props: {
120
+ scroll: 'paper'
121
+ },
122
+ style: {
123
+ display: 'flex',
124
+ flexDirection: 'column',
125
+ maxHeight: 'calc(100% - 64px)'
125
126
  }
126
- }
127
- }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
128
- maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`,
129
- [`&.${dialogClasses.paperScrollBody}`]: {
130
- [theme.breakpoints.down(theme.breakpoints.values[ownerState.maxWidth] + 32 * 2)]: {
127
+ }, {
128
+ props: {
129
+ scroll: 'body'
130
+ },
131
+ style: {
132
+ display: 'inline-block',
133
+ verticalAlign: 'middle',
134
+ textAlign: 'left' // 'initial' doesn't work on IE11
135
+ }
136
+ }, {
137
+ props: ({
138
+ ownerState
139
+ }) => !ownerState.maxWidth,
140
+ style: {
131
141
  maxWidth: 'calc(100% - 64px)'
132
142
  }
133
- }
134
- }, ownerState.fullWidth && {
135
- width: 'calc(100% - 64px)'
136
- }, ownerState.fullScreen && {
137
- margin: 0,
138
- width: '100%',
139
- maxWidth: '100%',
140
- height: '100%',
141
- maxHeight: 'none',
142
- borderRadius: 0,
143
- [`&.${dialogClasses.paperScrollBody}`]: {
144
- margin: 0,
145
- maxWidth: '100%'
146
- }
143
+ }, {
144
+ props: {
145
+ maxWidth: 'xs'
146
+ },
147
+ style: {
148
+ maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
149
+ [`&.${dialogClasses.paperScrollBody}`]: {
150
+ [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
151
+ maxWidth: 'calc(100% - 64px)'
152
+ }
153
+ }
154
+ }
155
+ }, ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
156
+ props: {
157
+ maxWidth
158
+ },
159
+ style: {
160
+ maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,
161
+ [`&.${dialogClasses.paperScrollBody}`]: {
162
+ [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
163
+ maxWidth: 'calc(100% - 64px)'
164
+ }
165
+ }
166
+ }
167
+ })), {
168
+ props: ({
169
+ ownerState
170
+ }) => ownerState.fullWidth,
171
+ style: {
172
+ width: 'calc(100% - 64px)'
173
+ }
174
+ }, {
175
+ props: ({
176
+ ownerState
177
+ }) => ownerState.fullScreen,
178
+ style: {
179
+ margin: 0,
180
+ width: '100%',
181
+ maxWidth: '100%',
182
+ height: '100%',
183
+ maxHeight: 'none',
184
+ borderRadius: 0,
185
+ [`&.${dialogClasses.paperScrollBody}`]: {
186
+ margin: 0,
187
+ maxWidth: '100%'
188
+ }
189
+ }
190
+ }]
147
191
  }));
148
192
 
149
193
  /**
@@ -1,16 +1,16 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className", "disableSpacing"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
- import styled from '../styles/styled';
11
- import useThemeProps from '../styles/useThemeProps';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import { getDialogActionsUtilityClass } from './dialogActionsClasses';
13
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ const useThemeProps = createUseThemeProps('MuiDialogActions');
14
14
  const useUtilityClasses = ownerState => {
15
15
  const {
16
16
  classes,
@@ -30,19 +30,23 @@ const DialogActionsRoot = styled('div', {
30
30
  } = props;
31
31
  return [styles.root, !ownerState.disableSpacing && styles.spacing];
32
32
  }
33
- })(({
34
- ownerState
35
- }) => _extends({
33
+ })({
36
34
  display: 'flex',
37
35
  alignItems: 'center',
38
36
  padding: 8,
39
37
  justifyContent: 'flex-end',
40
- flex: '0 0 auto'
41
- }, !ownerState.disableSpacing && {
42
- '& > :not(style) ~ :not(style)': {
43
- marginLeft: 8
44
- }
45
- }));
38
+ flex: '0 0 auto',
39
+ variants: [{
40
+ props: ({
41
+ ownerState
42
+ }) => !ownerState.disableSpacing,
43
+ style: {
44
+ '& > :not(style) ~ :not(style)': {
45
+ marginLeft: 8
46
+ }
47
+ }
48
+ }]
49
+ });
46
50
  const DialogActions = /*#__PURE__*/React.forwardRef(function DialogActions(inProps, ref) {
47
51
  const props = useThemeProps({
48
52
  props: inProps,