@mui/material 9.0.0-alpha.4 → 9.0.0-beta.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 (210) hide show
  1. package/ButtonGroup/ButtonGroup.js +1 -9
  2. package/ButtonGroup/ButtonGroup.mjs +1 -9
  3. package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
  4. package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
  5. package/ButtonGroup/buttonGroupClasses.js +1 -1
  6. package/ButtonGroup/buttonGroupClasses.mjs +1 -1
  7. package/CHANGELOG.md +71 -4
  8. package/CardHeader/CardHeader.d.mts +13 -21
  9. package/CardHeader/CardHeader.d.ts +13 -21
  10. package/CardHeader/CardHeader.js +3 -21
  11. package/CardHeader/CardHeader.mjs +3 -21
  12. package/Checkbox/Checkbox.js +1 -7
  13. package/Checkbox/Checkbox.mjs +1 -7
  14. package/Chip/Chip.js +48 -54
  15. package/Chip/Chip.mjs +48 -54
  16. package/Chip/chipClasses.d.mts +0 -104
  17. package/Chip/chipClasses.d.ts +0 -104
  18. package/Chip/chipClasses.js +1 -1
  19. package/Chip/chipClasses.mjs +1 -1
  20. package/Dialog/Dialog.d.mts +0 -21
  21. package/Dialog/Dialog.d.ts +0 -21
  22. package/Dialog/Dialog.js +36 -73
  23. package/Dialog/Dialog.mjs +36 -73
  24. package/Dialog/dialogClasses.d.mts +0 -8
  25. package/Dialog/dialogClasses.d.ts +0 -8
  26. package/Dialog/dialogClasses.js +1 -1
  27. package/Dialog/dialogClasses.mjs +1 -1
  28. package/Divider/Divider.js +2 -2
  29. package/Divider/Divider.mjs +2 -2
  30. package/Divider/dividerClasses.d.mts +0 -4
  31. package/Divider/dividerClasses.d.ts +0 -4
  32. package/Divider/dividerClasses.js +1 -1
  33. package/Divider/dividerClasses.mjs +1 -1
  34. package/Drawer/Drawer.d.mts +0 -12
  35. package/Drawer/Drawer.d.ts +0 -12
  36. package/Drawer/Drawer.js +6 -40
  37. package/Drawer/Drawer.mjs +6 -40
  38. package/Drawer/drawerClasses.d.mts +0 -32
  39. package/Drawer/drawerClasses.d.ts +0 -32
  40. package/Drawer/drawerClasses.js +1 -1
  41. package/Drawer/drawerClasses.mjs +1 -1
  42. package/FilledInput/FilledInput.js +3 -32
  43. package/FilledInput/FilledInput.mjs +3 -32
  44. package/ImageListItemBar/ImageListItemBar.js +4 -17
  45. package/ImageListItemBar/ImageListItemBar.mjs +4 -17
  46. package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
  47. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
  48. package/ImageListItemBar/imageListItemBarClasses.js +1 -1
  49. package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
  50. package/Input/Input.js +3 -32
  51. package/Input/Input.mjs +3 -32
  52. package/Input/inputClasses.d.mts +0 -16
  53. package/Input/inputClasses.d.ts +0 -16
  54. package/InputBase/InputBase.d.mts +0 -27
  55. package/InputBase/InputBase.d.ts +0 -27
  56. package/InputBase/InputBase.js +6 -35
  57. package/InputBase/InputBase.mjs +6 -35
  58. package/InputBase/inputBaseClasses.d.mts +0 -20
  59. package/InputBase/inputBaseClasses.d.ts +0 -20
  60. package/InputBase/inputBaseClasses.js +1 -1
  61. package/InputBase/inputBaseClasses.mjs +1 -1
  62. package/InputLabel/InputLabel.js +1 -1
  63. package/InputLabel/InputLabel.mjs +1 -1
  64. package/LinearProgress/LinearProgress.js +6 -18
  65. package/LinearProgress/LinearProgress.mjs +6 -18
  66. package/LinearProgress/linearProgressClasses.d.mts +0 -36
  67. package/LinearProgress/linearProgressClasses.d.ts +0 -36
  68. package/LinearProgress/linearProgressClasses.js +1 -1
  69. package/LinearProgress/linearProgressClasses.mjs +1 -1
  70. package/Link/Link.d.mts +1 -1
  71. package/Link/Link.d.ts +1 -1
  72. package/ListItem/ListItem.d.mts +2 -36
  73. package/ListItem/ListItem.d.ts +2 -36
  74. package/ListItem/ListItem.js +27 -152
  75. package/ListItem/ListItem.mjs +27 -152
  76. package/ListItem/listItemClasses.d.mts +2 -4
  77. package/ListItem/listItemClasses.d.ts +2 -4
  78. package/ListItem/listItemClasses.js +1 -1
  79. package/ListItem/listItemClasses.mjs +1 -1
  80. package/ListItemButton/ListItemButton.d.mts +1 -2
  81. package/ListItemButton/ListItemButton.d.ts +1 -2
  82. package/ListItemButton/ListItemButton.js +1 -2
  83. package/ListItemButton/ListItemButton.mjs +1 -2
  84. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
  85. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
  86. package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
  87. package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
  88. package/ListItemText/ListItemText.d.mts +12 -20
  89. package/ListItemText/ListItemText.d.ts +12 -20
  90. package/ListItemText/ListItemText.js +2 -20
  91. package/ListItemText/ListItemText.mjs +2 -20
  92. package/Modal/Modal.d.mts +1 -41
  93. package/Modal/Modal.d.ts +1 -41
  94. package/Modal/Modal.js +5 -58
  95. package/Modal/Modal.mjs +5 -58
  96. package/OutlinedInput/OutlinedInput.js +2 -14
  97. package/OutlinedInput/OutlinedInput.mjs +2 -14
  98. package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
  99. package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
  100. package/PaginationItem/PaginationItem.d.mts +0 -15
  101. package/PaginationItem/PaginationItem.d.ts +0 -15
  102. package/PaginationItem/PaginationItem.js +3 -24
  103. package/PaginationItem/PaginationItem.mjs +3 -24
  104. package/PaginationItem/paginationItemClasses.d.mts +0 -16
  105. package/PaginationItem/paginationItemClasses.d.ts +0 -16
  106. package/PaginationItem/paginationItemClasses.js +1 -1
  107. package/PaginationItem/paginationItemClasses.mjs +1 -1
  108. package/Radio/Radio.js +1 -13
  109. package/Radio/Radio.mjs +1 -13
  110. package/Rating/Rating.d.mts +0 -9
  111. package/Rating/Rating.d.ts +0 -9
  112. package/Rating/Rating.js +1 -17
  113. package/Rating/Rating.mjs +1 -17
  114. package/Select/SelectInput.js +2 -3
  115. package/Select/SelectInput.mjs +2 -3
  116. package/Select/selectClasses.d.mts +0 -12
  117. package/Select/selectClasses.d.ts +0 -12
  118. package/Select/selectClasses.js +1 -1
  119. package/Select/selectClasses.mjs +1 -1
  120. package/Slider/Slider.d.mts +0 -5
  121. package/Slider/Slider.d.ts +0 -5
  122. package/Slider/Slider.js +2 -8
  123. package/Slider/Slider.mjs +2 -8
  124. package/Slider/sliderClasses.d.mts +0 -28
  125. package/Slider/sliderClasses.d.ts +0 -28
  126. package/Slider/sliderClasses.js +1 -1
  127. package/Slider/sliderClasses.mjs +1 -1
  128. package/Stack/Stack.d.mts +2 -2
  129. package/Stack/Stack.d.ts +2 -2
  130. package/StepConnector/StepConnector.js +2 -8
  131. package/StepConnector/StepConnector.mjs +2 -8
  132. package/StepConnector/stepConnectorClasses.d.mts +0 -8
  133. package/StepConnector/stepConnectorClasses.d.ts +0 -8
  134. package/StepConnector/stepConnectorClasses.js +1 -1
  135. package/StepConnector/stepConnectorClasses.mjs +1 -1
  136. package/StepContent/StepContent.d.mts +1 -16
  137. package/StepContent/StepContent.d.ts +1 -16
  138. package/StepContent/StepContent.js +3 -22
  139. package/StepContent/StepContent.mjs +3 -22
  140. package/StepLabel/StepLabel.d.mts +0 -22
  141. package/StepLabel/StepLabel.d.ts +0 -22
  142. package/StepLabel/StepLabel.js +2 -31
  143. package/StepLabel/StepLabel.mjs +2 -31
  144. package/SvgIcon/createSvgIcon.d.mts +2 -0
  145. package/SvgIcon/createSvgIcon.d.ts +2 -0
  146. package/SvgIcon/createSvgIcon.js +31 -0
  147. package/SvgIcon/createSvgIcon.mjs +26 -0
  148. package/SvgIcon/index.d.mts +1 -0
  149. package/SvgIcon/index.d.ts +1 -0
  150. package/SvgIcon/index.js +8 -0
  151. package/SvgIcon/index.mjs +1 -0
  152. package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
  153. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
  154. package/SwipeableDrawer/SwipeableDrawer.js +6 -37
  155. package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
  156. package/Switch/Switch.js +0 -11
  157. package/Switch/Switch.mjs +0 -11
  158. package/Tab/Tab.js +1 -3
  159. package/Tab/Tab.mjs +1 -3
  160. package/Tab/tabClasses.d.mts +0 -4
  161. package/Tab/tabClasses.d.ts +0 -4
  162. package/Tab/tabClasses.js +1 -1
  163. package/Tab/tabClasses.mjs +1 -1
  164. package/TablePagination/TablePagination.d.mts +0 -24
  165. package/TablePagination/TablePagination.d.ts +0 -24
  166. package/TablePagination/TablePagination.js +1 -29
  167. package/TablePagination/TablePagination.mjs +1 -29
  168. package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
  169. package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
  170. package/TablePaginationActions/TablePaginationActions.js +2 -14
  171. package/TablePaginationActions/TablePaginationActions.mjs +2 -14
  172. package/TableSortLabel/TableSortLabel.js +2 -7
  173. package/TableSortLabel/TableSortLabel.mjs +2 -7
  174. package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
  175. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
  176. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  177. package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
  178. package/Tabs/Tabs.js +3 -3
  179. package/Tabs/Tabs.mjs +3 -3
  180. package/Tabs/tabsClasses.d.mts +0 -6
  181. package/Tabs/tabsClasses.d.ts +0 -6
  182. package/Tabs/tabsClasses.js +1 -1
  183. package/Tabs/tabsClasses.mjs +1 -1
  184. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
  185. package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
  186. package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
  187. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
  188. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  189. package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
  190. package/Typography/Typography.d.mts +3 -3
  191. package/Typography/Typography.d.ts +3 -3
  192. package/Typography/Typography.js +2 -24
  193. package/Typography/Typography.mjs +3 -25
  194. package/index.js +1 -1
  195. package/index.mjs +1 -1
  196. package/internal/SwitchBase.d.mts +0 -10
  197. package/internal/SwitchBase.d.ts +0 -10
  198. package/internal/SwitchBase.js +1 -16
  199. package/internal/SwitchBase.mjs +1 -16
  200. package/package.json +7 -7
  201. package/styles/createThemeWithVars.js +1 -0
  202. package/styles/createThemeWithVars.mjs +1 -0
  203. package/styles/stringifyTheme.js +1 -1
  204. package/styles/stringifyTheme.mjs +1 -1
  205. package/utils/createSvgIcon.d.mts +4 -2
  206. package/utils/createSvgIcon.d.ts +4 -2
  207. package/utils/createSvgIcon.js +6 -24
  208. package/utils/createSvgIcon.mjs +2 -24
  209. package/version/index.js +2 -2
  210. package/version/index.mjs +2 -2
@@ -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', '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']);
6
+ const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'deletable', 'outlined', 'filled', 'avatar', 'icon', 'label', 'deleteIcon', 'focusVisible']);
7
7
  export default chipClasses;
@@ -123,12 +123,6 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
123
123
  * @default Paper
124
124
  */
125
125
  PaperComponent?: React.JSXElementConstructor<PaperProps> | undefined;
126
- /**
127
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
128
- * @default {}
129
- * @deprecated Use `slotProps.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
130
- */
131
- PaperProps?: Partial<PaperProps<React.ElementType>> | undefined;
132
126
  /**
133
127
  * Determine the container for scrolling the dialog.
134
128
  * @default 'paper'
@@ -138,15 +132,6 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
138
132
  * The system prop that allows defining system overrides as well as additional CSS styles.
139
133
  */
140
134
  sx?: SxProps<Theme> | undefined;
141
- /**
142
- * The component used for the transition.
143
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
144
- * @default Fade
145
- * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
146
- */
147
- TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
148
- children: React.ReactElement<unknown, any>;
149
- }> | undefined;
150
135
  /**
151
136
  * The duration for the transition, in milliseconds.
152
137
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -156,12 +141,6 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
156
141
  * }
157
142
  */
158
143
  transitionDuration?: TransitionProps['timeout'] | undefined;
159
- /**
160
- * Props applied to the transition element.
161
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
162
- * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
163
- */
164
- TransitionProps?: TransitionProps | undefined;
165
144
  }
166
145
 
167
146
  /**
@@ -123,12 +123,6 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
123
123
  * @default Paper
124
124
  */
125
125
  PaperComponent?: React.JSXElementConstructor<PaperProps> | undefined;
126
- /**
127
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
128
- * @default {}
129
- * @deprecated Use `slotProps.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
130
- */
131
- PaperProps?: Partial<PaperProps<React.ElementType>> | undefined;
132
126
  /**
133
127
  * Determine the container for scrolling the dialog.
134
128
  * @default 'paper'
@@ -138,15 +132,6 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
138
132
  * The system prop that allows defining system overrides as well as additional CSS styles.
139
133
  */
140
134
  sx?: SxProps<Theme> | undefined;
141
- /**
142
- * The component used for the transition.
143
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
144
- * @default Fade
145
- * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
146
- */
147
- TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
148
- children: React.ReactElement<unknown, any>;
149
- }> | undefined;
150
135
  /**
151
136
  * The duration for the transition, in milliseconds.
152
137
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -156,12 +141,6 @@ export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>,
156
141
  * }
157
142
  */
158
143
  transitionDuration?: TransitionProps['timeout'] | undefined;
159
- /**
160
- * Props applied to the transition element.
161
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
162
- * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
163
- */
164
- TransitionProps?: TransitionProps | undefined;
165
144
  }
166
145
 
167
146
  /**
package/Dialog/Dialog.js CHANGED
@@ -16,7 +16,7 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
16
16
  var _Modal = _interopRequireDefault(require("../Modal"));
17
17
  var _Fade = _interopRequireDefault(require("../Fade"));
18
18
  var _Paper = _interopRequireDefault(require("../Paper"));
19
- var _dialogClasses = _interopRequireWildcard(require("./dialogClasses"));
19
+ var _dialogClasses = require("./dialogClasses");
20
20
  var _DialogContext = _interopRequireDefault(require("./DialogContext"));
21
21
  var _Backdrop = _interopRequireDefault(require("../Backdrop"));
22
22
  var _zeroStyled = require("../zero-styled");
@@ -43,7 +43,7 @@ const useUtilityClasses = ownerState => {
43
43
  root: ['root'],
44
44
  backdrop: ['backdrop'],
45
45
  container: ['container', `scroll${(0, _capitalize.default)(scroll)}`],
46
- paper: ['paper', `paperScroll${(0, _capitalize.default)(scroll)}`, `paperWidth${(0, _capitalize.default)(String(maxWidth))}`, fullWidth && 'paperFullWidth', fullScreen && 'paperFullScreen']
46
+ paper: ['paper', `paperWidth${(0, _capitalize.default)(String(maxWidth))}`, fullWidth && 'paperFullWidth', fullScreen && 'paperFullScreen']
47
47
  };
48
48
  return (0, _composeClasses.default)(slots, _dialogClasses.getDialogUtilityClass, classes);
49
49
  };
@@ -106,7 +106,7 @@ const DialogPaper = (0, _zeroStyled.styled)(_Paper.default, {
106
106
  const {
107
107
  ownerState
108
108
  } = props;
109
- return [styles.paper, styles[`scrollPaper${(0, _capitalize.default)(ownerState.scroll)}`], styles[`paperWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
109
+ return [styles.paper, styles[`paperWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
110
110
  }
111
111
  })((0, _memoTheme.default)(({
112
112
  theme
@@ -148,11 +148,16 @@ const DialogPaper = (0, _zeroStyled.styled)(_Paper.default, {
148
148
  maxWidth: 'xs'
149
149
  },
150
150
  style: {
151
- maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
152
- [`&.${_dialogClasses.default.paperScrollBody}`]: {
153
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
154
- maxWidth: 'calc(100% - 64px)'
155
- }
151
+ maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`
152
+ }
153
+ }, {
154
+ props: {
155
+ maxWidth: 'xs',
156
+ scroll: 'body'
157
+ },
158
+ style: {
159
+ [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
160
+ maxWidth: 'calc(100% - 64px)'
156
161
  }
157
162
  }
158
163
  }, ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
@@ -160,11 +165,16 @@ const DialogPaper = (0, _zeroStyled.styled)(_Paper.default, {
160
165
  maxWidth
161
166
  },
162
167
  style: {
163
- maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,
164
- [`&.${_dialogClasses.default.paperScrollBody}`]: {
165
- [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
166
- maxWidth: 'calc(100% - 64px)'
167
- }
168
+ maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`
169
+ }
170
+ })), ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
171
+ props: {
172
+ maxWidth,
173
+ scroll: 'body'
174
+ },
175
+ style: {
176
+ [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
177
+ maxWidth: 'calc(100% - 64px)'
168
178
  }
169
179
  }
170
180
  })), {
@@ -184,11 +194,15 @@ const DialogPaper = (0, _zeroStyled.styled)(_Paper.default, {
184
194
  maxWidth: '100%',
185
195
  height: '100%',
186
196
  maxHeight: 'none',
187
- borderRadius: 0,
188
- [`&.${_dialogClasses.default.paperScrollBody}`]: {
189
- margin: 0,
190
- maxWidth: '100%'
191
- }
197
+ borderRadius: 0
198
+ }
199
+ }, {
200
+ props: ({
201
+ ownerState
202
+ }) => ownerState.fullScreen && ownerState.scroll === 'body',
203
+ style: {
204
+ margin: 0,
205
+ maxWidth: '100%'
192
206
  }
193
207
  }]
194
208
  })));
@@ -210,8 +224,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
210
224
  'aria-describedby': ariaDescribedby,
211
225
  'aria-labelledby': ariaLabelledbyProp,
212
226
  'aria-modal': ariaModal = true,
213
- BackdropComponent,
214
- BackdropProps,
215
227
  children,
216
228
  className,
217
229
  fullScreen = false,
@@ -221,13 +233,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
221
233
  onClose,
222
234
  open,
223
235
  PaperComponent = _Paper.default,
224
- PaperProps = {},
225
236
  scroll = 'paper',
226
237
  slots = {},
227
238
  slotProps = {},
228
- TransitionComponent = _Fade.default,
229
239
  transitionDuration = defaultTransitionDuration,
230
- TransitionProps,
231
240
  ...other
232
241
  } = props;
233
242
  const ownerState = {
@@ -264,19 +273,9 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
264
273
  titleId: ariaLabelledby
265
274
  };
266
275
  }, [ariaLabelledby]);
267
- const backwardCompatibleSlots = {
268
- transition: TransitionComponent,
269
- ...slots
270
- };
271
- const backwardCompatibleSlotProps = {
272
- transition: TransitionProps,
273
- paper: PaperProps,
274
- backdrop: BackdropProps,
275
- ...slotProps
276
- };
277
276
  const externalForwardedProps = {
278
- slots: backwardCompatibleSlots,
279
- slotProps: backwardCompatibleSlotProps
277
+ slots,
278
+ slotProps
280
279
  };
281
280
  const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
282
281
  elementType: DialogRoot,
@@ -298,7 +297,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
298
297
  shouldForwardComponentProp: true,
299
298
  externalForwardedProps,
300
299
  ownerState,
301
- className: (0, _clsx.default)(classes.paper, PaperProps.className)
300
+ className: classes.paper
302
301
  });
303
302
  const [ContainerSlot, containerSlotProps] = (0, _useSlot.default)('container', {
304
303
  elementType: DialogContainer,
@@ -325,7 +324,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
325
324
  slotProps: {
326
325
  backdrop: {
327
326
  transitionDuration,
328
- as: BackdropComponent,
329
327
  ...backdropSlotProps
330
328
  }
331
329
  },
@@ -375,22 +373,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
375
373
  * @default true
376
374
  */
377
375
  'aria-modal': _propTypes.default.oneOfType([_propTypes.default.oneOf(['false', 'true']), _propTypes.default.bool]),
378
- /**
379
- * A backdrop component. This prop enables custom backdrop rendering.
380
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
381
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
382
- * @default styled(Backdrop, {
383
- * name: 'MuiModal',
384
- * slot: 'Backdrop',
385
- * })({
386
- * zIndex: -1,
387
- * })
388
- */
389
- BackdropComponent: _propTypes.default.elementType,
390
- /**
391
- * @ignore
392
- */
393
- BackdropProps: _propTypes.default.object,
394
376
  /**
395
377
  * Dialog children, usually the included sub-components.
396
378
  */
@@ -442,12 +424,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
442
424
  * @default Paper
443
425
  */
444
426
  PaperComponent: _propTypes.default.elementType,
445
- /**
446
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
447
- * @default {}
448
- * @deprecated Use `slotProps.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
449
- */
450
- PaperProps: _propTypes.default.object,
451
427
  /**
452
428
  * Determine the container for scrolling the dialog.
453
429
  * @default 'paper'
@@ -479,13 +455,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
479
455
  * The system prop that allows defining system overrides as well as additional CSS styles.
480
456
  */
481
457
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
482
- /**
483
- * The component used for the transition.
484
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
485
- * @default Fade
486
- * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
487
- */
488
- TransitionComponent: _propTypes.default.elementType,
489
458
  /**
490
459
  * The duration for the transition, in milliseconds.
491
460
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -498,12 +467,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
498
467
  appear: _propTypes.default.number,
499
468
  enter: _propTypes.default.number,
500
469
  exit: _propTypes.default.number
501
- })]),
502
- /**
503
- * Props applied to the transition element.
504
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
505
- * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
506
- */
507
- TransitionProps: _propTypes.default.object
470
+ })])
508
471
  } : void 0;
509
472
  var _default = exports.default = Dialog;
package/Dialog/Dialog.mjs CHANGED
@@ -9,7 +9,7 @@ import capitalize from "../utils/capitalize.mjs";
9
9
  import Modal from "../Modal/index.mjs";
10
10
  import Fade from "../Fade/index.mjs";
11
11
  import Paper from "../Paper/index.mjs";
12
- import dialogClasses, { getDialogUtilityClass } from "./dialogClasses.mjs";
12
+ import { getDialogUtilityClass } from "./dialogClasses.mjs";
13
13
  import DialogContext from "./DialogContext.mjs";
14
14
  import Backdrop from "../Backdrop/index.mjs";
15
15
  import { styled, useTheme } from "../zero-styled/index.mjs";
@@ -36,7 +36,7 @@ const useUtilityClasses = ownerState => {
36
36
  root: ['root'],
37
37
  backdrop: ['backdrop'],
38
38
  container: ['container', `scroll${capitalize(scroll)}`],
39
- paper: ['paper', `paperScroll${capitalize(scroll)}`, `paperWidth${capitalize(String(maxWidth))}`, fullWidth && 'paperFullWidth', fullScreen && 'paperFullScreen']
39
+ paper: ['paper', `paperWidth${capitalize(String(maxWidth))}`, fullWidth && 'paperFullWidth', fullScreen && 'paperFullScreen']
40
40
  };
41
41
  return composeClasses(slots, getDialogUtilityClass, classes);
42
42
  };
@@ -99,7 +99,7 @@ const DialogPaper = styled(Paper, {
99
99
  const {
100
100
  ownerState
101
101
  } = props;
102
- return [styles.paper, styles[`scrollPaper${capitalize(ownerState.scroll)}`], styles[`paperWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
102
+ return [styles.paper, styles[`paperWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
103
103
  }
104
104
  })(memoTheme(({
105
105
  theme
@@ -141,11 +141,16 @@ const DialogPaper = styled(Paper, {
141
141
  maxWidth: 'xs'
142
142
  },
143
143
  style: {
144
- maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
145
- [`&.${dialogClasses.paperScrollBody}`]: {
146
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
147
- maxWidth: 'calc(100% - 64px)'
148
- }
144
+ maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`
145
+ }
146
+ }, {
147
+ props: {
148
+ maxWidth: 'xs',
149
+ scroll: 'body'
150
+ },
151
+ style: {
152
+ [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
153
+ maxWidth: 'calc(100% - 64px)'
149
154
  }
150
155
  }
151
156
  }, ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
@@ -153,11 +158,16 @@ const DialogPaper = styled(Paper, {
153
158
  maxWidth
154
159
  },
155
160
  style: {
156
- maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,
157
- [`&.${dialogClasses.paperScrollBody}`]: {
158
- [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
159
- maxWidth: 'calc(100% - 64px)'
160
- }
161
+ maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`
162
+ }
163
+ })), ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
164
+ props: {
165
+ maxWidth,
166
+ scroll: 'body'
167
+ },
168
+ style: {
169
+ [theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
170
+ maxWidth: 'calc(100% - 64px)'
161
171
  }
162
172
  }
163
173
  })), {
@@ -177,11 +187,15 @@ const DialogPaper = styled(Paper, {
177
187
  maxWidth: '100%',
178
188
  height: '100%',
179
189
  maxHeight: 'none',
180
- borderRadius: 0,
181
- [`&.${dialogClasses.paperScrollBody}`]: {
182
- margin: 0,
183
- maxWidth: '100%'
184
- }
190
+ borderRadius: 0
191
+ }
192
+ }, {
193
+ props: ({
194
+ ownerState
195
+ }) => ownerState.fullScreen && ownerState.scroll === 'body',
196
+ style: {
197
+ margin: 0,
198
+ maxWidth: '100%'
185
199
  }
186
200
  }]
187
201
  })));
@@ -203,8 +217,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
203
217
  'aria-describedby': ariaDescribedby,
204
218
  'aria-labelledby': ariaLabelledbyProp,
205
219
  'aria-modal': ariaModal = true,
206
- BackdropComponent,
207
- BackdropProps,
208
220
  children,
209
221
  className,
210
222
  fullScreen = false,
@@ -214,13 +226,10 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
214
226
  onClose,
215
227
  open,
216
228
  PaperComponent = Paper,
217
- PaperProps = {},
218
229
  scroll = 'paper',
219
230
  slots = {},
220
231
  slotProps = {},
221
- TransitionComponent = Fade,
222
232
  transitionDuration = defaultTransitionDuration,
223
- TransitionProps,
224
233
  ...other
225
234
  } = props;
226
235
  const ownerState = {
@@ -257,19 +266,9 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
257
266
  titleId: ariaLabelledby
258
267
  };
259
268
  }, [ariaLabelledby]);
260
- const backwardCompatibleSlots = {
261
- transition: TransitionComponent,
262
- ...slots
263
- };
264
- const backwardCompatibleSlotProps = {
265
- transition: TransitionProps,
266
- paper: PaperProps,
267
- backdrop: BackdropProps,
268
- ...slotProps
269
- };
270
269
  const externalForwardedProps = {
271
- slots: backwardCompatibleSlots,
272
- slotProps: backwardCompatibleSlotProps
270
+ slots,
271
+ slotProps
273
272
  };
274
273
  const [RootSlot, rootSlotProps] = useSlot('root', {
275
274
  elementType: DialogRoot,
@@ -291,7 +290,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
291
290
  shouldForwardComponentProp: true,
292
291
  externalForwardedProps,
293
292
  ownerState,
294
- className: clsx(classes.paper, PaperProps.className)
293
+ className: classes.paper
295
294
  });
296
295
  const [ContainerSlot, containerSlotProps] = useSlot('container', {
297
296
  elementType: DialogContainer,
@@ -318,7 +317,6 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
318
317
  slotProps: {
319
318
  backdrop: {
320
319
  transitionDuration,
321
- as: BackdropComponent,
322
320
  ...backdropSlotProps
323
321
  }
324
322
  },
@@ -368,22 +366,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
368
366
  * @default true
369
367
  */
370
368
  'aria-modal': PropTypes.oneOfType([PropTypes.oneOf(['false', 'true']), PropTypes.bool]),
371
- /**
372
- * A backdrop component. This prop enables custom backdrop rendering.
373
- * @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
374
- * Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
375
- * @default styled(Backdrop, {
376
- * name: 'MuiModal',
377
- * slot: 'Backdrop',
378
- * })({
379
- * zIndex: -1,
380
- * })
381
- */
382
- BackdropComponent: PropTypes.elementType,
383
- /**
384
- * @ignore
385
- */
386
- BackdropProps: PropTypes.object,
387
369
  /**
388
370
  * Dialog children, usually the included sub-components.
389
371
  */
@@ -435,12 +417,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
435
417
  * @default Paper
436
418
  */
437
419
  PaperComponent: PropTypes.elementType,
438
- /**
439
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
440
- * @default {}
441
- * @deprecated Use `slotProps.paper` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
442
- */
443
- PaperProps: PropTypes.object,
444
420
  /**
445
421
  * Determine the container for scrolling the dialog.
446
422
  * @default 'paper'
@@ -472,13 +448,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
472
448
  * The system prop that allows defining system overrides as well as additional CSS styles.
473
449
  */
474
450
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
475
- /**
476
- * The component used for the transition.
477
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
478
- * @default Fade
479
- * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
480
- */
481
- TransitionComponent: PropTypes.elementType,
482
451
  /**
483
452
  * The duration for the transition, in milliseconds.
484
453
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -491,12 +460,6 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
491
460
  appear: PropTypes.number,
492
461
  enter: PropTypes.number,
493
462
  exit: PropTypes.number
494
- })]),
495
- /**
496
- * Props applied to the transition element.
497
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
498
- * @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
499
- */
500
- TransitionProps: PropTypes.object
463
+ })])
501
464
  } : void 0;
502
465
  export default Dialog;
@@ -11,14 +11,6 @@ export interface DialogClasses {
11
11
  container: string;
12
12
  /** Styles applied to the Paper component. */
13
13
  paper: string;
14
- /** Styles applied to the Paper component if `scroll="paper"`.
15
- * @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#Dialog-css-MuiDialog-paper) and [.MuiDialog-scrollPaper](/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollPaper) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
16
- */
17
- paperScrollPaper: string;
18
- /** Styles applied to the Paper component if `scroll="body"`.
19
- * @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#Dialog-css-MuiDialog-paper) and [.MuiDialog-scrollBody](/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollBody) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
20
- */
21
- paperScrollBody: string;
22
14
  /** Styles applied to the Paper component if `maxWidth=false`. */
23
15
  paperWidthFalse: string;
24
16
  /** Styles applied to the Paper component if `maxWidth="xs"`. */
@@ -11,14 +11,6 @@ export interface DialogClasses {
11
11
  container: string;
12
12
  /** Styles applied to the Paper component. */
13
13
  paper: string;
14
- /** Styles applied to the Paper component if `scroll="paper"`.
15
- * @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#Dialog-css-MuiDialog-paper) and [.MuiDialog-scrollPaper](/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollPaper) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
16
- */
17
- paperScrollPaper: string;
18
- /** Styles applied to the Paper component if `scroll="body"`.
19
- * @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#Dialog-css-MuiDialog-paper) and [.MuiDialog-scrollBody](/material-ui/api/dialog/#dialog-classes-MuiDialog-scrollBody) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
20
- */
21
- paperScrollBody: string;
22
14
  /** Styles applied to the Paper component if `maxWidth=false`. */
23
15
  paperWidthFalse: string;
24
16
  /** Styles applied to the Paper component if `maxWidth="xs"`. */
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getDialogUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiDialog', slot);
13
13
  }
14
- const dialogClasses = (0, _generateUtilityClasses.default)('MuiDialog', ['root', 'backdrop', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperScrollPaper', 'paperScrollBody', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);
14
+ const dialogClasses = (0, _generateUtilityClasses.default)('MuiDialog', ['root', 'backdrop', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);
15
15
  var _default = exports.default = dialogClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getDialogUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiDialog', slot);
5
5
  }
6
- const dialogClasses = generateUtilityClasses('MuiDialog', ['root', 'backdrop', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperScrollPaper', 'paperScrollBody', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);
6
+ const dialogClasses = generateUtilityClasses('MuiDialog', ['root', 'backdrop', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);
7
7
  export default dialogClasses;
@@ -27,7 +27,7 @@ const useUtilityClasses = ownerState => {
27
27
  variant
28
28
  } = ownerState;
29
29
  const slots = {
30
- root: ['root', absolute && 'absolute', variant, orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
30
+ root: ['root', absolute && 'absolute', variant, orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
31
31
  wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
32
32
  };
33
33
  return (0, _composeClasses.default)(slots, _dividerClasses.getDividerUtilityClass, classes);
@@ -39,7 +39,7 @@ const DividerRoot = (0, _zeroStyled.styled)('div', {
39
39
  const {
40
40
  ownerState
41
41
  } = props;
42
- return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], 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];
42
+ return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
43
43
  }
44
44
  })((0, _memoTheme.default)(({
45
45
  theme
@@ -20,7 +20,7 @@ const useUtilityClasses = ownerState => {
20
20
  variant
21
21
  } = ownerState;
22
22
  const slots = {
23
- root: ['root', absolute && 'absolute', variant, orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
23
+ root: ['root', absolute && 'absolute', variant, orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
24
24
  wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
25
25
  };
26
26
  return composeClasses(slots, getDividerUtilityClass, classes);
@@ -32,7 +32,7 @@ const DividerRoot = styled('div', {
32
32
  const {
33
33
  ownerState
34
34
  } = props;
35
- return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], 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];
35
+ return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
36
36
  }
37
37
  })(memoTheme(({
38
38
  theme
@@ -15,10 +15,6 @@ export interface DividerClasses {
15
15
  flexItem: string;
16
16
  /** Styles applied to the root element if divider have text. */
17
17
  withChildren: string;
18
- /** Styles applied to the root element if divider have text and `orientation="vertical"`.
19
- * @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-MuiDivider-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-MuiDivider-vertical) classes instead.
20
- */
21
- withChildrenVertical: string;
22
18
  /** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
23
19
  textAlignRight: string;
24
20
  /** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
@@ -15,10 +15,6 @@ export interface DividerClasses {
15
15
  flexItem: string;
16
16
  /** Styles applied to the root element if divider have text. */
17
17
  withChildren: string;
18
- /** Styles applied to the root element if divider have text and `orientation="vertical"`.
19
- * @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-MuiDivider-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-MuiDivider-vertical) classes instead.
20
- */
21
- withChildrenVertical: string;
22
18
  /** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
23
19
  textAlignRight: string;
24
20
  /** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getDividerUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiDivider', slot);
13
13
  }
14
- const dividerClasses = (0, _generateUtilityClasses.default)('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
14
+ const dividerClasses = (0, _generateUtilityClasses.default)('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'vertical', 'withChildren', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
15
15
  var _default = exports.default = dividerClasses;