@mui/material 6.0.0-alpha.10 → 6.0.0-alpha.11

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 (208) hide show
  1. package/Accordion/Accordion.d.ts +3 -3
  2. package/AccordionActions/AccordionActions.d.ts +2 -2
  3. package/AccordionDetails/AccordionDetails.d.ts +2 -2
  4. package/AccordionSummary/AccordionSummary.d.ts +3 -3
  5. package/Alert/Alert.d.ts +3 -3
  6. package/AlertTitle/AlertTitle.d.ts +3 -3
  7. package/AppBar/AppBar.d.ts +3 -3
  8. package/Autocomplete/Autocomplete.d.ts +2 -2
  9. package/Autocomplete/Autocomplete.js +9 -17
  10. package/Avatar/Avatar.d.ts +2 -2
  11. package/AvatarGroup/AvatarGroup.d.ts +2 -2
  12. package/Backdrop/Backdrop.d.ts +3 -3
  13. package/Badge/Badge.d.ts +3 -3
  14. package/BottomNavigation/BottomNavigation.d.ts +2 -2
  15. package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
  16. package/Box/Box.d.ts +2 -2
  17. package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
  18. package/Button/Button.d.ts +4 -4
  19. package/ButtonBase/ButtonBase.d.ts +2 -2
  20. package/ButtonGroup/ButtonGroup.d.ts +2 -2
  21. package/CHANGELOG.md +76 -0
  22. package/Card/Card.d.ts +3 -3
  23. package/CardActionArea/CardActionArea.d.ts +3 -3
  24. package/CardActions/CardActions.d.ts +2 -2
  25. package/CardContent/CardContent.d.ts +2 -2
  26. package/CardHeader/CardHeader.d.ts +2 -2
  27. package/CardMedia/CardMedia.d.ts +2 -2
  28. package/Checkbox/Checkbox.d.ts +4 -4
  29. package/Chip/Chip.d.ts +5 -5
  30. package/Chip/Chip.js +0 -2
  31. package/CircularProgress/CircularProgress.d.ts +2 -2
  32. package/Collapse/Collapse.d.ts +5 -5
  33. package/Collapse/Collapse.js +1 -2
  34. package/Container/Container.d.ts +2 -2
  35. package/CssBaseline/CssBaseline.d.ts +2 -2
  36. package/Dialog/Dialog.d.ts +3 -3
  37. package/Dialog/Dialog.js +1 -2
  38. package/DialogActions/DialogActions.d.ts +2 -2
  39. package/DialogContent/DialogContent.d.ts +2 -2
  40. package/DialogContentText/DialogContentText.d.ts +3 -3
  41. package/DialogTitle/DialogTitle.d.ts +3 -3
  42. package/Divider/Divider.d.ts +3 -3
  43. package/Drawer/Drawer.d.ts +3 -3
  44. package/Drawer/Drawer.js +1 -2
  45. package/Fab/Fab.d.ts +3 -3
  46. package/Fade/Fade.d.ts +3 -3
  47. package/Fade/Fade.js +1 -1
  48. package/FilledInput/FilledInput.d.ts +3 -3
  49. package/FormControl/FormControl.d.ts +6 -6
  50. package/FormControlLabel/FormControlLabel.d.ts +4 -4
  51. package/FormGroup/FormGroup.d.ts +3 -3
  52. package/FormHelperText/FormHelperText.d.ts +2 -2
  53. package/FormLabel/FormLabel.d.ts +4 -4
  54. package/GlobalStyles/GlobalStyles.d.ts +3 -3
  55. package/Grid/Grid.d.ts +2 -2
  56. package/Grid/Grid.js +7 -13
  57. package/Grow/Grow.d.ts +5 -5
  58. package/Grow/Grow.js +1 -1
  59. package/Hidden/Hidden.d.ts +2 -2
  60. package/Icon/Icon.d.ts +3 -3
  61. package/IconButton/IconButton.d.ts +4 -4
  62. package/ImageList/ImageList.d.ts +2 -2
  63. package/ImageListItem/ImageListItem.d.ts +2 -2
  64. package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
  65. package/Input/Input.d.ts +3 -3
  66. package/InputAdornment/InputAdornment.d.ts +2 -2
  67. package/InputBase/InputBase.d.ts +2 -2
  68. package/InputBase/InputBase.js +26 -20
  69. package/InputLabel/InputLabel.d.ts +3 -3
  70. package/LinearProgress/LinearProgress.d.ts +2 -2
  71. package/Link/Link.d.ts +4 -4
  72. package/Link/Link.js +1 -2
  73. package/List/List.d.ts +3 -3
  74. package/ListItem/ListItem.d.ts +3 -3
  75. package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
  76. package/ListItemButton/ListItemButton.d.ts +3 -3
  77. package/ListItemIcon/ListItemIcon.d.ts +2 -2
  78. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
  79. package/ListItemText/ListItemText.d.ts +2 -2
  80. package/ListSubheader/ListSubheader.d.ts +2 -2
  81. package/Menu/Menu.d.ts +4 -4
  82. package/MenuItem/MenuItem.d.ts +3 -3
  83. package/MenuList/MenuList.d.ts +4 -4
  84. package/MobileStepper/MobileStepper.d.ts +3 -3
  85. package/Modal/Modal.d.ts +8 -8
  86. package/NativeSelect/NativeSelect.d.ts +3 -3
  87. package/OutlinedInput/OutlinedInput.d.ts +3 -3
  88. package/Pagination/Pagination.d.ts +2 -2
  89. package/PaginationItem/PaginationItem.d.ts +2 -2
  90. package/Paper/Paper.d.ts +3 -3
  91. package/Paper/Paper.js +1 -2
  92. package/Popover/Popover.d.ts +4 -4
  93. package/Popper/Popper.d.ts +4 -4
  94. package/Popper/Popper.js +4 -4
  95. package/Radio/Radio.d.ts +3 -3
  96. package/RadioGroup/RadioGroup.d.ts +3 -3
  97. package/Rating/Rating.d.ts +2 -2
  98. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
  99. package/Select/Select.d.ts +3 -3
  100. package/Skeleton/Skeleton.d.ts +2 -2
  101. package/Slide/Slide.d.ts +4 -4
  102. package/Slide/Slide.js +1 -1
  103. package/Slider/Slider.d.ts +3 -3
  104. package/Snackbar/Snackbar.d.ts +2 -2
  105. package/Snackbar/Snackbar.js +1 -2
  106. package/SnackbarContent/SnackbarContent.d.ts +3 -3
  107. package/SpeedDial/SpeedDial.d.ts +2 -2
  108. package/SpeedDial/SpeedDial.js +1 -2
  109. package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
  110. package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
  111. package/Stack/Stack.d.ts +2 -2
  112. package/Step/Step.d.ts +2 -2
  113. package/StepButton/StepButton.d.ts +3 -3
  114. package/StepConnector/StepConnector.d.ts +3 -3
  115. package/StepContent/StepContent.d.ts +2 -2
  116. package/StepIcon/StepIcon.d.ts +2 -2
  117. package/StepLabel/StepLabel.d.ts +2 -2
  118. package/Stepper/Stepper.d.ts +2 -2
  119. package/SvgIcon/SvgIcon.d.ts +3 -3
  120. package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
  121. package/SwipeableDrawer/SwipeableDrawer.js +3 -3
  122. package/Switch/Switch.d.ts +4 -4
  123. package/Tab/Tab.d.ts +4 -4
  124. package/Tab/Tab.js +3 -1
  125. package/Tab/tabClasses.d.ts +1 -1
  126. package/TabScrollButton/TabScrollButton.d.ts +2 -2
  127. package/Table/Table.d.ts +2 -2
  128. package/TableBody/TableBody.d.ts +2 -2
  129. package/TableCell/TableCell.d.ts +2 -2
  130. package/TableContainer/TableContainer.d.ts +2 -2
  131. package/TableFooter/TableFooter.d.ts +2 -2
  132. package/TableHead/TableHead.d.ts +2 -2
  133. package/TablePagination/TablePagination.d.ts +4 -4
  134. package/TableRow/TableRow.d.ts +2 -2
  135. package/TableSortLabel/TableSortLabel.d.ts +3 -3
  136. package/Tabs/Tabs.d.ts +2 -2
  137. package/Tabs/Tabs.js +1 -2
  138. package/TextField/TextField.d.ts +10 -10
  139. package/ToggleButton/ToggleButton.d.ts +3 -3
  140. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
  141. package/Toolbar/Toolbar.d.ts +2 -2
  142. package/Tooltip/Tooltip.d.ts +2 -2
  143. package/Tooltip/Tooltip.js +1 -2
  144. package/Typography/Typography.d.ts +3 -3
  145. package/Typography/Typography.js +2 -2
  146. package/Zoom/Zoom.d.ts +3 -3
  147. package/Zoom/Zoom.js +1 -1
  148. package/index.js +1 -1
  149. package/modern/Autocomplete/Autocomplete.js +9 -17
  150. package/modern/Chip/Chip.js +0 -2
  151. package/modern/Collapse/Collapse.js +1 -2
  152. package/modern/Dialog/Dialog.js +1 -2
  153. package/modern/Drawer/Drawer.js +1 -2
  154. package/modern/Fade/Fade.js +1 -1
  155. package/modern/Grid/Grid.js +7 -13
  156. package/modern/Grow/Grow.js +1 -1
  157. package/modern/InputBase/InputBase.js +26 -20
  158. package/modern/Link/Link.js +1 -2
  159. package/modern/Paper/Paper.js +1 -2
  160. package/modern/Popper/Popper.js +4 -4
  161. package/modern/Slide/Slide.js +1 -1
  162. package/modern/Snackbar/Snackbar.js +1 -2
  163. package/modern/SpeedDial/SpeedDial.js +1 -2
  164. package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
  165. package/modern/Tab/Tab.js +3 -1
  166. package/modern/Tabs/Tabs.js +1 -2
  167. package/modern/Tooltip/Tooltip.js +1 -2
  168. package/modern/Typography/Typography.js +2 -2
  169. package/modern/Zoom/Zoom.js +1 -1
  170. package/modern/index.js +1 -1
  171. package/modern/styles/createTheme.js +1 -1
  172. package/modern/styles/index.js +2 -1
  173. package/modern/styles/stringifyTheme.js +55 -0
  174. package/modern/zero-styled/index.js +20 -1
  175. package/node/Autocomplete/Autocomplete.js +9 -17
  176. package/node/Chip/Chip.js +0 -2
  177. package/node/Collapse/Collapse.js +1 -2
  178. package/node/Dialog/Dialog.js +1 -2
  179. package/node/Drawer/Drawer.js +1 -2
  180. package/node/Fade/Fade.js +2 -2
  181. package/node/Grid/Grid.js +7 -13
  182. package/node/Grow/Grow.js +2 -2
  183. package/node/InputBase/InputBase.js +25 -19
  184. package/node/Link/Link.js +1 -2
  185. package/node/Paper/Paper.js +1 -2
  186. package/node/Popper/Popper.js +4 -4
  187. package/node/Slide/Slide.js +2 -2
  188. package/node/Snackbar/Snackbar.js +1 -2
  189. package/node/SpeedDial/SpeedDial.js +1 -2
  190. package/node/SwipeableDrawer/SwipeableDrawer.js +5 -4
  191. package/node/Tab/Tab.js +3 -1
  192. package/node/Tabs/Tabs.js +1 -2
  193. package/node/Tooltip/Tooltip.js +1 -2
  194. package/node/Typography/Typography.js +2 -2
  195. package/node/Zoom/Zoom.js +2 -2
  196. package/node/index.js +1 -1
  197. package/node/styles/createTheme.js +1 -1
  198. package/node/styles/index.js +20 -1
  199. package/node/styles/stringifyTheme.js +62 -0
  200. package/node/zero-styled/index.js +29 -0
  201. package/package.json +6 -6
  202. package/styles/createTheme.js +1 -1
  203. package/styles/index.d.ts +3 -0
  204. package/styles/index.js +2 -1
  205. package/styles/stringifyTheme.d.ts +20 -0
  206. package/styles/stringifyTheme.js +55 -0
  207. package/zero-styled/index.d.ts +7 -0
  208. package/zero-styled/index.js +20 -1
@@ -299,12 +299,12 @@ export type TextFieldOwnerState = BaseTextFieldProps;
299
299
  * It's important to understand that the text field is a simple abstraction
300
300
  * on top of the following components:
301
301
  *
302
- * * [FormControl](https://mui.com/material-ui/api/form-control/)
303
- * * [InputLabel](https://mui.com/material-ui/api/input-label/)
304
- * * [FilledInput](https://mui.com/material-ui/api/filled-input/)
305
- * * [OutlinedInput](https://mui.com/material-ui/api/outlined-input/)
306
- * * [Input](https://mui.com/material-ui/api/input/)
307
- * * [FormHelperText](https://mui.com/material-ui/api/form-helper-text/)
302
+ * * [FormControl](https://next.mui.com/material-ui/api/form-control/)
303
+ * * [InputLabel](https://next.mui.com/material-ui/api/input-label/)
304
+ * * [FilledInput](https://next.mui.com/material-ui/api/filled-input/)
305
+ * * [OutlinedInput](https://next.mui.com/material-ui/api/outlined-input/)
306
+ * * [Input](https://next.mui.com/material-ui/api/input/)
307
+ * * [FormHelperText](https://next.mui.com/material-ui/api/form-helper-text/)
308
308
  *
309
309
  * If you wish to alter the props applied to the `input` element, you can do so as follows:
310
310
  *
@@ -324,13 +324,13 @@ export type TextFieldOwnerState = BaseTextFieldProps;
324
324
  *
325
325
  * Demos:
326
326
  *
327
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
328
- * - [Text Field](https://mui.com/material-ui/react-text-field/)
327
+ * - [Autocomplete](https://next.mui.com/material-ui/react-autocomplete/)
328
+ * - [Text Field](https://next.mui.com/material-ui/react-text-field/)
329
329
  *
330
330
  * API:
331
331
  *
332
- * - [TextField API](https://mui.com/material-ui/api/text-field/)
333
- * - inherits [FormControl API](https://mui.com/material-ui/api/form-control/)
332
+ * - [TextField API](https://next.mui.com/material-ui/api/text-field/)
333
+ * - inherits [FormControl API](https://next.mui.com/material-ui/api/form-control/)
334
334
  */
335
335
  export default function TextField<Variant extends TextFieldVariants>(
336
336
  props: {
@@ -91,12 +91,12 @@ export type ToggleButtonTypeMap<
91
91
  *
92
92
  * Demos:
93
93
  *
94
- * - [Toggle Button](https://mui.com/material-ui/react-toggle-button/)
94
+ * - [Toggle Button](https://next.mui.com/material-ui/react-toggle-button/)
95
95
  *
96
96
  * API:
97
97
  *
98
- * - [ToggleButton API](https://mui.com/material-ui/api/toggle-button/)
99
- * - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
98
+ * - [ToggleButton API](https://next.mui.com/material-ui/api/toggle-button/)
99
+ * - inherits [ButtonBase API](https://next.mui.com/material-ui/api/button-base/)
100
100
  */
101
101
  declare const ToggleButton: ExtendButtonBase<ToggleButtonTypeMap>;
102
102
 
@@ -80,10 +80,10 @@ export interface ToggleButtonGroupProps
80
80
  *
81
81
  * Demos:
82
82
  *
83
- * - [Toggle Button](https://mui.com/material-ui/react-toggle-button/)
83
+ * - [Toggle Button](https://next.mui.com/material-ui/react-toggle-button/)
84
84
  *
85
85
  * API:
86
86
  *
87
- * - [ToggleButtonGroup API](https://mui.com/material-ui/api/toggle-button-group/)
87
+ * - [ToggleButtonGroup API](https://next.mui.com/material-ui/api/toggle-button-group/)
88
88
  */
89
89
  export default function ToggleButtonGroup(props: ToggleButtonGroupProps): React.JSX.Element;
@@ -44,11 +44,11 @@ export interface ToolbarTypeMap<
44
44
  *
45
45
  * Demos:
46
46
  *
47
- * - [App Bar](https://mui.com/material-ui/react-app-bar/)
47
+ * - [App Bar](https://next.mui.com/material-ui/react-app-bar/)
48
48
  *
49
49
  * API:
50
50
  *
51
- * - [Toolbar API](https://mui.com/material-ui/api/toolbar/)
51
+ * - [Toolbar API](https://next.mui.com/material-ui/api/toolbar/)
52
52
  */
53
53
  declare const Toolbar: OverridableComponent<ToolbarTypeMap>;
54
54
 
@@ -217,10 +217,10 @@ export interface TooltipProps extends StandardProps<React.HTMLAttributes<HTMLDiv
217
217
  *
218
218
  * Demos:
219
219
  *
220
- * - [Tooltip](https://mui.com/material-ui/react-tooltip/)
220
+ * - [Tooltip](https://next.mui.com/material-ui/react-tooltip/)
221
221
  *
222
222
  * API:
223
223
  *
224
- * - [Tooltip API](https://mui.com/material-ui/api/tooltip/)
224
+ * - [Tooltip API](https://next.mui.com/material-ui/api/tooltip/)
225
225
  */
226
226
  export default function Tooltip(props: TooltipProps): React.JSX.Element;
@@ -9,8 +9,7 @@ import { appendOwnerState } from '@mui/base/utils';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import { alpha } from '@mui/system/colorManipulator';
11
11
  import { useRtl } from '@mui/system/RtlProvider';
12
- import { styled, createUseThemeProps } from '../zero-styled';
13
- import useTheme from '../styles/useTheme';
12
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
14
13
  import capitalize from '../utils/capitalize';
15
14
  import Grow from '../Grow';
16
15
  import Popper from '../Popper';
@@ -85,12 +85,12 @@ export interface TypographyTypeMap<
85
85
  *
86
86
  * Demos:
87
87
  *
88
- * - [Breadcrumbs](https://mui.com/material-ui/react-breadcrumbs/)
89
- * - [Typography](https://mui.com/material-ui/react-typography/)
88
+ * - [Breadcrumbs](https://next.mui.com/material-ui/react-breadcrumbs/)
89
+ * - [Typography](https://next.mui.com/material-ui/react-typography/)
90
90
  *
91
91
  * API:
92
92
  *
93
- * - [Typography API](https://mui.com/material-ui/api/typography/)
93
+ * - [Typography API](https://next.mui.com/material-ui/api/typography/)
94
94
  */
95
95
  declare const Typography: OverridableComponent<TypographyTypeMap>;
96
96
 
@@ -3,13 +3,13 @@
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
- import { extendSxProp } from '@mui/system/styleFunctionSx';
7
6
  import composeClasses from '@mui/utils/composeClasses';
8
- import { styled, createUseThemeProps } from '../zero-styled';
7
+ import { styled, createUseThemeProps, internal_createExtendSxProp } from '../zero-styled';
9
8
  import capitalize from '../utils/capitalize';
10
9
  import { getTypographyUtilityClass } from './typographyClasses';
11
10
  import { jsx as _jsx } from "react/jsx-runtime";
12
11
  const useThemeProps = createUseThemeProps('MuiTypography');
12
+ const extendSxProp = internal_createExtendSxProp();
13
13
  const useUtilityClasses = ownerState => {
14
14
  const {
15
15
  align,
package/Zoom/Zoom.d.ts CHANGED
@@ -35,16 +35,16 @@ export interface ZoomProps extends TransitionProps {
35
35
 
36
36
  /**
37
37
  * The Zoom transition can be used for the floating variant of the
38
- * [Button](https://mui.com/material-ui/react-button/#floating-action-buttons) component.
38
+ * [Button](https://next.mui.com/material-ui/react-button/#floating-action-buttons) component.
39
39
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
40
40
  *
41
41
  * Demos:
42
42
  *
43
- * - [Transitions](https://mui.com/material-ui/transitions/)
43
+ * - [Transitions](https://next.mui.com/material-ui/transitions/)
44
44
  *
45
45
  * API:
46
46
  *
47
- * - [Zoom API](https://mui.com/material-ui/api/zoom/)
47
+ * - [Zoom API](https://next.mui.com/material-ui/api/zoom/)
48
48
  * - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition/#Transition-props)
49
49
  */
50
50
  export default function Zoom(props: ZoomProps): React.JSX.Element;
package/Zoom/Zoom.js CHANGED
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Transition } from 'react-transition-group';
6
6
  import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
7
- import useTheme from '../styles/useTheme';
7
+ import { useTheme } from '../zero-styled';
8
8
  import { reflow, getTransitionProps } from '../transitions/utils';
9
9
  import useForkRef from '../utils/useForkRef';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.0.0-alpha.10
2
+ * @mui/material v6.0.0-alpha.11
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -85,6 +85,15 @@ const AutocompleteRoot = styled('div', {
85
85
  }, styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
86
86
  }
87
87
  })({
88
+ [`&.${autocompleteClasses.focused} .${autocompleteClasses.clearIndicator}`]: {
89
+ visibility: 'visible'
90
+ },
91
+ /* Avoid double tap issue on iOS */
92
+ '@media (pointer: fine)': {
93
+ [`&:hover .${autocompleteClasses.clearIndicator}`]: {
94
+ visibility: 'visible'
95
+ }
96
+ },
88
97
  [`& .${autocompleteClasses.tag}`]: {
89
98
  margin: 3,
90
99
  maxWidth: 'calc(100% - 6px)'
@@ -101,23 +110,6 @@ const AutocompleteRoot = styled('div', {
101
110
  minWidth: 30
102
111
  }
103
112
  },
104
- [`&.${autocompleteClasses.focused}`]: {
105
- [`& .${autocompleteClasses.clearIndicator}`]: {
106
- visibility: 'visible'
107
- },
108
- [`& .${autocompleteClasses.input}`]: {
109
- minWidth: 0
110
- }
111
- },
112
- /* Avoid double tap issue on iOS */
113
- '@media (pointer: fine)': {
114
- [`&:hover .${autocompleteClasses.clearIndicator}`]: {
115
- visibility: 'visible'
116
- },
117
- [`&:hover .${autocompleteClasses.input}`]: {
118
- minWidth: 0
119
- }
120
- },
121
113
  [`& .${inputClasses.root}`]: {
122
114
  paddingBottom: 1,
123
115
  '& .MuiInput-input': {
@@ -396,8 +396,6 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
396
396
  if (event.currentTarget === event.target) {
397
397
  if (onDelete && isDeleteKeyboardEvent(event)) {
398
398
  onDelete(event);
399
- } else if (event.key === 'Escape' && chipRef.current) {
400
- chipRef.current.blur();
401
399
  }
402
400
  }
403
401
  if (onKeyUp) {
@@ -7,10 +7,9 @@ import { Transition } from 'react-transition-group';
7
7
  import useTimeout from '@mui/utils/useTimeout';
8
8
  import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
- import { styled, createUseThemeProps } from '../zero-styled';
10
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
11
11
  import { duration } from '../styles/createTransitions';
12
12
  import { getTransitionProps } from '../transitions/utils';
13
- import useTheme from '../styles/useTheme';
14
13
  import { useForkRef } from '../utils';
15
14
  import { getCollapseUtilityClass } from './collapseClasses';
16
15
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -12,8 +12,7 @@ import Paper from '../Paper';
12
12
  import dialogClasses, { getDialogUtilityClass } from './dialogClasses';
13
13
  import DialogContext from './DialogContext';
14
14
  import Backdrop from '../Backdrop';
15
- import useTheme from '../styles/useTheme';
16
- import { styled, createUseThemeProps } from '../zero-styled';
15
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
17
16
  import { jsx as _jsx } from "react/jsx-runtime";
18
17
  const useThemeProps = createUseThemeProps('MuiDialog');
19
18
  const DialogBackdrop = styled(Backdrop, {
@@ -10,9 +10,8 @@ import Modal from '../Modal';
10
10
  import Slide from '../Slide';
11
11
  import Paper from '../Paper';
12
12
  import capitalize from '../utils/capitalize';
13
- import useTheme from '../styles/useTheme';
14
13
  import rootShouldForwardProp from '../styles/rootShouldForwardProp';
15
- import { styled, createUseThemeProps } from '../zero-styled';
14
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
16
15
  import { getDrawerUtilityClass } from './drawerClasses';
17
16
  import { jsx as _jsx } from "react/jsx-runtime";
18
17
  const useThemeProps = createUseThemeProps('MuiDrawer');
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Transition } from 'react-transition-group';
6
6
  import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
7
- import useTheme from '../styles/useTheme';
7
+ import { useTheme } from '../zero-styled';
8
8
  import { reflow, getTransitionProps } from '../transitions/utils';
9
9
  import useForkRef from '../utils/useForkRef';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -23,13 +23,6 @@ import useTheme from '../styles/useTheme';
23
23
  import GridContext from './GridContext';
24
24
  import gridClasses, { getGridUtilityClass } from './gridClasses';
25
25
  import { jsx as _jsx } from "react/jsx-runtime";
26
- function getOffset(val) {
27
- const parse = parseFloat(val);
28
- if (Number.isNaN(parse)) {
29
- return val;
30
- }
31
- return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
32
- }
33
26
  export function generateGrid({
34
27
  theme,
35
28
  ownerState
@@ -74,7 +67,7 @@ export function generateGrid({
74
67
  if (ownerState.container && ownerState.item && ownerState.columnSpacing !== 0) {
75
68
  const themeSpacing = theme.spacing(ownerState.columnSpacing);
76
69
  if (themeSpacing !== '0px') {
77
- const fullWidth = `calc(${width} + ${getOffset(themeSpacing)})`;
70
+ const fullWidth = `calc(${width} + ${themeSpacing})`;
78
71
  more = {
79
72
  flexBasis: fullWidth,
80
73
  maxWidth: fullWidth
@@ -174,9 +167,9 @@ export function generateRowGap({
174
167
  const themeSpacing = theme.spacing(propValue);
175
168
  if (themeSpacing !== '0px') {
176
169
  return {
177
- marginTop: `-${getOffset(themeSpacing)}`,
170
+ marginTop: theme.spacing(-propValue),
178
171
  [`& > .${gridClasses.item}`]: {
179
- paddingTop: getOffset(themeSpacing)
172
+ paddingTop: themeSpacing
180
173
  }
181
174
  };
182
175
  }
@@ -219,11 +212,12 @@ export function generateColumnGap({
219
212
  }, columnSpacingValues, (propValue, breakpoint) => {
220
213
  const themeSpacing = theme.spacing(propValue);
221
214
  if (themeSpacing !== '0px') {
215
+ const negativeValue = theme.spacing(-propValue);
222
216
  return {
223
- width: `calc(100% + ${getOffset(themeSpacing)})`,
224
- marginLeft: `-${getOffset(themeSpacing)}`,
217
+ width: `calc(100% + ${themeSpacing})`,
218
+ marginLeft: negativeValue,
225
219
  [`& > .${gridClasses.item}`]: {
226
- paddingLeft: getOffset(themeSpacing)
220
+ paddingLeft: themeSpacing
227
221
  }
228
222
  };
229
223
  }
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
5
5
  import useTimeout from '@mui/utils/useTimeout';
6
6
  import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
7
7
  import { Transition } from 'react-transition-group';
8
- import useTheme from '../styles/useTheme';
8
+ import { useTheme } from '../zero-styled';
9
9
  import { getTransitionProps, reflow } from '../transitions/utils';
10
10
  import useForkRef from '../utils/useForkRef';
11
11
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
4
+ var _InputGlobalStyles;
4
5
  import * as React from 'react';
5
6
  import PropTypes from 'prop-types';
6
7
  import clsx from 'clsx';
@@ -12,11 +13,10 @@ import composeClasses from '@mui/utils/composeClasses';
12
13
  import formControlState from '../FormControl/formControlState';
13
14
  import FormControlContext from '../FormControl/FormControlContext';
14
15
  import useFormControl from '../FormControl/useFormControl';
15
- import { styled, createUseThemeProps } from '../zero-styled';
16
+ import { styled, createUseThemeProps, globalCss } from '../zero-styled';
16
17
  import capitalize from '../utils/capitalize';
17
18
  import useForkRef from '../utils/useForkRef';
18
19
  import useEnhancedEffect from '../utils/useEnhancedEffect';
19
- import GlobalStyles from '../GlobalStyles';
20
20
  import { isFilled } from './utils';
21
21
  import inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses';
22
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -145,8 +145,6 @@ export const InputBaseInput = styled('input', {
145
145
  // Make the flex item shrink with Firefox
146
146
  minWidth: 0,
147
147
  flexGrow: 1,
148
- animationName: 'mui-auto-fill-cancel',
149
- animationDuration: '10ms',
150
148
  '&::-webkit-input-placeholder': placeholder,
151
149
  '&::-moz-placeholder': placeholder,
152
150
  // Firefox 19+
@@ -180,11 +178,19 @@ export const InputBaseInput = styled('input', {
180
178
  // Reset iOS opacity
181
179
  WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
182
180
  },
183
- '&:-webkit-autofill': {
184
- animationDuration: '5000s',
185
- animationName: 'mui-auto-fill'
186
- },
187
181
  variants: [{
182
+ props: ({
183
+ ownerState
184
+ }) => !ownerState.disableInjectingGlobalStyles,
185
+ style: {
186
+ animationName: 'mui-auto-fill-cancel',
187
+ animationDuration: '10ms',
188
+ '&:-webkit-autofill': {
189
+ animationDuration: '5000s',
190
+ animationName: 'mui-auto-fill'
191
+ }
192
+ }
193
+ }, {
188
194
  props: {
189
195
  size: 'small'
190
196
  },
@@ -211,17 +217,15 @@ export const InputBaseInput = styled('input', {
211
217
  }]
212
218
  };
213
219
  });
214
- const inputGlobalStyles = /*#__PURE__*/_jsx(GlobalStyles, {
215
- styles: {
216
- '@keyframes mui-auto-fill': {
217
- from: {
218
- display: 'block'
219
- }
220
- },
221
- '@keyframes mui-auto-fill-cancel': {
222
- from: {
223
- display: 'block'
224
- }
220
+ const InputGlobalStyles = globalCss({
221
+ '@keyframes mui-auto-fill': {
222
+ from: {
223
+ display: 'block'
224
+ }
225
+ },
226
+ '@keyframes mui-auto-fill-cancel': {
227
+ from: {
228
+ display: 'block'
225
229
  }
226
230
  }
227
231
  });
@@ -456,7 +460,9 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
456
460
  ...(slotProps.input ?? componentsProps.input)
457
461
  };
458
462
  return /*#__PURE__*/_jsxs(React.Fragment, {
459
- children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/_jsxs(Root, {
463
+ children: [!disableInjectingGlobalStyles && typeof InputGlobalStyles === 'function' && ( // For Emotion/Styled-components, InputGlobalStyles will be a function
464
+ // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
465
+ _InputGlobalStyles || (_InputGlobalStyles = /*#__PURE__*/_jsx(InputGlobalStyles, {}))), /*#__PURE__*/_jsxs(Root, {
460
466
  ...rootProps,
461
467
  ref: ref,
462
468
  onClick: handleClick,
@@ -7,13 +7,12 @@ import { alpha } from '@mui/system/colorManipulator';
7
7
  import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
9
  import capitalize from '../utils/capitalize';
10
- import { styled, createUseThemeProps } from '../zero-styled';
10
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
11
11
  import useIsFocusVisible from '../utils/useIsFocusVisible';
12
12
  import useForkRef from '../utils/useForkRef';
13
13
  import Typography from '../Typography';
14
14
  import linkClasses, { getLinkUtilityClass } from './linkClasses';
15
15
  import getTextDecoration, { colorTransformations } from './getTextDecoration';
16
- import useTheme from '../styles/useTheme';
17
16
  import { jsx as _jsx } from "react/jsx-runtime";
18
17
  const useThemeProps = createUseThemeProps('MuiLink');
19
18
  const useUtilityClasses = ownerState => {
@@ -7,9 +7,8 @@ import integerPropType from '@mui/utils/integerPropType';
7
7
  import chainPropTypes from '@mui/utils/chainPropTypes';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
9
  import { alpha } from '@mui/system/colorManipulator';
10
- import { styled, createUseThemeProps } from '../zero-styled';
10
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
11
11
  import getOverlayAlpha from '../styles/getOverlayAlpha';
12
- import useTheme from '../styles/useTheme';
13
12
  import { getPaperUtilityClass } from './paperClasses';
14
13
  import { jsx as _jsx } from "react/jsx-runtime";
15
14
  const useThemeProps = createUseThemeProps('MuiPaper');
@@ -18,13 +18,13 @@ const PopperRoot = styled(BasePopper, {
18
18
  *
19
19
  * Demos:
20
20
  *
21
- * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)
22
- * - [Menu](https://mui.com/material-ui/react-menu/)
23
- * - [Popper](https://mui.com/material-ui/react-popper/)
21
+ * - [Autocomplete](https://next.mui.com/material-ui/react-autocomplete/)
22
+ * - [Menu](https://next.mui.com/material-ui/react-menu/)
23
+ * - [Popper](https://next.mui.com/material-ui/react-popper/)
24
24
  *
25
25
  * API:
26
26
  *
27
- * - [Popper API](https://mui.com/material-ui/api/popper/)
27
+ * - [Popper API](https://next.mui.com/material-ui/api/popper/)
28
28
  */
29
29
  const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
30
30
  const theme = useTheme();
@@ -8,7 +8,7 @@ import HTMLElementType from '@mui/utils/HTMLElementType';
8
8
  import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
9
9
  import debounce from '../utils/debounce';
10
10
  import useForkRef from '../utils/useForkRef';
11
- import useTheme from '../styles/useTheme';
11
+ import { useTheme } from '../zero-styled';
12
12
  import { reflow, getTransitionProps } from '../transitions/utils';
13
13
  import { ownerWindow } from '../utils';
14
14
 
@@ -6,8 +6,7 @@ import { useSlotProps } from '@mui/base/utils';
6
6
  import composeClasses from '@mui/utils/composeClasses';
7
7
  import { ClickAwayListener } from '@mui/base/ClickAwayListener';
8
8
  import { useSnackbar } from '@mui/base/useSnackbar';
9
- import { styled, createUseThemeProps } from '../zero-styled';
10
- import useTheme from '../styles/useTheme';
9
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
11
10
  import capitalize from '../utils/capitalize';
12
11
  import Grow from '../Grow';
13
12
  import SnackbarContent from '../SnackbarContent';
@@ -7,8 +7,7 @@ import clsx from 'clsx';
7
7
  import composeClasses from '@mui/utils/composeClasses';
8
8
  import useTimeout from '@mui/utils/useTimeout';
9
9
  import clamp from '@mui/utils/clamp';
10
- import { styled, createUseThemeProps } from '../zero-styled';
11
- import useTheme from '../styles/useTheme';
10
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
12
11
  import Zoom from '../Zoom';
13
12
  import Fab from '../Fab';
14
13
  import capitalize from '../utils/capitalize';
@@ -4,7 +4,6 @@ import * as React from 'react';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import PropTypes from 'prop-types';
6
6
  import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
7
- import useThemeProps from '@mui/system/useThemeProps';
8
7
  import { NoSsr } from '@mui/base';
9
8
  import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
10
9
  import useForkRef from '../utils/useForkRef';
@@ -12,13 +11,14 @@ import ownerDocument from '../utils/ownerDocument';
12
11
  import ownerWindow from '../utils/ownerWindow';
13
12
  import useEventCallback from '../utils/useEventCallback';
14
13
  import useEnhancedEffect from '../utils/useEnhancedEffect';
15
- import useTheme from '../styles/useTheme';
14
+ import { createUseThemeProps, useTheme } from '../zero-styled';
16
15
  import { getTransitionProps } from '../transitions/utils';
17
16
  import SwipeArea from './SwipeArea';
17
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
18
+ const useThemeProps = createUseThemeProps('MuiSwipeableDrawer');
18
19
 
19
20
  // This value is closed to what browsers are using internally to
20
21
  // trigger a native scroll.
21
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
22
  const UNCERTAINTY_THRESHOLD = 3; // px
23
23
 
24
24
  // This is the part of the drawer displayed on touch start.
package/modern/Tab/Tab.js CHANGED
@@ -35,7 +35,9 @@ const TabRoot = styled(ButtonBase, {
35
35
  const {
36
36
  ownerState
37
37
  } = props;
38
- return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped];
38
+ return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, {
39
+ [`& .${tabClasses.iconWrapper}`]: styles.iconWrapper
40
+ }];
39
41
  }
40
42
  })(({
41
43
  theme
@@ -8,8 +8,7 @@ import refType from '@mui/utils/refType';
8
8
  import { useSlotProps } from '@mui/base/utils';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import { useRtl } from '@mui/system/RtlProvider';
11
- import { styled, createUseThemeProps } from '../zero-styled';
12
- import useTheme from '../styles/useTheme';
11
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
13
12
  import debounce from '../utils/debounce';
14
13
  import animate from '../internal/animate';
15
14
  import ScrollbarSize from './ScrollbarSize';
@@ -9,8 +9,7 @@ import { appendOwnerState } from '@mui/base/utils';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import { alpha } from '@mui/system/colorManipulator';
11
11
  import { useRtl } from '@mui/system/RtlProvider';
12
- import { styled, createUseThemeProps } from '../zero-styled';
13
- import useTheme from '../styles/useTheme';
12
+ import { styled, createUseThemeProps, useTheme } from '../zero-styled';
14
13
  import capitalize from '../utils/capitalize';
15
14
  import Grow from '../Grow';
16
15
  import Popper from '../Popper';
@@ -3,13 +3,13 @@
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
- import { extendSxProp } from '@mui/system/styleFunctionSx';
7
6
  import composeClasses from '@mui/utils/composeClasses';
8
- import { styled, createUseThemeProps } from '../zero-styled';
7
+ import { styled, createUseThemeProps, internal_createExtendSxProp } from '../zero-styled';
9
8
  import capitalize from '../utils/capitalize';
10
9
  import { getTypographyUtilityClass } from './typographyClasses';
11
10
  import { jsx as _jsx } from "react/jsx-runtime";
12
11
  const useThemeProps = createUseThemeProps('MuiTypography');
12
+ const extendSxProp = internal_createExtendSxProp();
13
13
  const useUtilityClasses = ownerState => {
14
14
  const {
15
15
  align,
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Transition } from 'react-transition-group';
6
6
  import elementAcceptingRef from '@mui/utils/elementAcceptingRef';
7
- import useTheme from '../styles/useTheme';
7
+ import { useTheme } from '../zero-styled';
8
8
  import { reflow, getTransitionProps } from '../transitions/utils';
9
9
  import useForkRef from '../utils/useForkRef';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v6.0.0-alpha.10
2
+ * @mui/material v6.0.0-alpha.11
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -45,7 +45,7 @@ Please use another name.` : _formatMuiErrorMessage(18));
45
45
  const traverse = (node, component) => {
46
46
  let key;
47
47
 
48
- // eslint-disable-next-line guard-for-in, no-restricted-syntax
48
+ // eslint-disable-next-line guard-for-in
49
49
  for (key in node) {
50
50
  const child = node[key];
51
51
  if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {