@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.
- package/Accordion/Accordion.d.ts +3 -3
- package/AccordionActions/AccordionActions.d.ts +2 -2
- package/AccordionDetails/AccordionDetails.d.ts +2 -2
- package/AccordionSummary/AccordionSummary.d.ts +3 -3
- package/Alert/Alert.d.ts +3 -3
- package/AlertTitle/AlertTitle.d.ts +3 -3
- package/AppBar/AppBar.d.ts +3 -3
- package/Autocomplete/Autocomplete.d.ts +2 -2
- package/Autocomplete/Autocomplete.js +9 -17
- package/Avatar/Avatar.d.ts +2 -2
- package/AvatarGroup/AvatarGroup.d.ts +2 -2
- package/Backdrop/Backdrop.d.ts +3 -3
- package/Badge/Badge.d.ts +3 -3
- package/BottomNavigation/BottomNavigation.d.ts +2 -2
- package/BottomNavigationAction/BottomNavigationAction.d.ts +3 -3
- package/Box/Box.d.ts +2 -2
- package/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/Button/Button.d.ts +4 -4
- package/ButtonBase/ButtonBase.d.ts +2 -2
- package/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/CHANGELOG.md +76 -0
- package/Card/Card.d.ts +3 -3
- package/CardActionArea/CardActionArea.d.ts +3 -3
- package/CardActions/CardActions.d.ts +2 -2
- package/CardContent/CardContent.d.ts +2 -2
- package/CardHeader/CardHeader.d.ts +2 -2
- package/CardMedia/CardMedia.d.ts +2 -2
- package/Checkbox/Checkbox.d.ts +4 -4
- package/Chip/Chip.d.ts +5 -5
- package/Chip/Chip.js +0 -2
- package/CircularProgress/CircularProgress.d.ts +2 -2
- package/Collapse/Collapse.d.ts +5 -5
- package/Collapse/Collapse.js +1 -2
- package/Container/Container.d.ts +2 -2
- package/CssBaseline/CssBaseline.d.ts +2 -2
- package/Dialog/Dialog.d.ts +3 -3
- package/Dialog/Dialog.js +1 -2
- package/DialogActions/DialogActions.d.ts +2 -2
- package/DialogContent/DialogContent.d.ts +2 -2
- package/DialogContentText/DialogContentText.d.ts +3 -3
- package/DialogTitle/DialogTitle.d.ts +3 -3
- package/Divider/Divider.d.ts +3 -3
- package/Drawer/Drawer.d.ts +3 -3
- package/Drawer/Drawer.js +1 -2
- package/Fab/Fab.d.ts +3 -3
- package/Fade/Fade.d.ts +3 -3
- package/Fade/Fade.js +1 -1
- package/FilledInput/FilledInput.d.ts +3 -3
- package/FormControl/FormControl.d.ts +6 -6
- package/FormControlLabel/FormControlLabel.d.ts +4 -4
- package/FormGroup/FormGroup.d.ts +3 -3
- package/FormHelperText/FormHelperText.d.ts +2 -2
- package/FormLabel/FormLabel.d.ts +4 -4
- package/GlobalStyles/GlobalStyles.d.ts +3 -3
- package/Grid/Grid.d.ts +2 -2
- package/Grid/Grid.js +7 -13
- package/Grow/Grow.d.ts +5 -5
- package/Grow/Grow.js +1 -1
- package/Hidden/Hidden.d.ts +2 -2
- package/Icon/Icon.d.ts +3 -3
- package/IconButton/IconButton.d.ts +4 -4
- package/ImageList/ImageList.d.ts +2 -2
- package/ImageListItem/ImageListItem.d.ts +2 -2
- package/ImageListItemBar/ImageListItemBar.d.ts +2 -2
- package/Input/Input.d.ts +3 -3
- package/InputAdornment/InputAdornment.d.ts +2 -2
- package/InputBase/InputBase.d.ts +2 -2
- package/InputBase/InputBase.js +26 -20
- package/InputLabel/InputLabel.d.ts +3 -3
- package/LinearProgress/LinearProgress.d.ts +2 -2
- package/Link/Link.d.ts +4 -4
- package/Link/Link.js +1 -2
- package/List/List.d.ts +3 -3
- package/ListItem/ListItem.d.ts +3 -3
- package/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/ListItemButton/ListItemButton.d.ts +3 -3
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +2 -2
- package/ListItemText/ListItemText.d.ts +2 -2
- package/ListSubheader/ListSubheader.d.ts +2 -2
- package/Menu/Menu.d.ts +4 -4
- package/MenuItem/MenuItem.d.ts +3 -3
- package/MenuList/MenuList.d.ts +4 -4
- package/MobileStepper/MobileStepper.d.ts +3 -3
- package/Modal/Modal.d.ts +8 -8
- package/NativeSelect/NativeSelect.d.ts +3 -3
- package/OutlinedInput/OutlinedInput.d.ts +3 -3
- package/Pagination/Pagination.d.ts +2 -2
- package/PaginationItem/PaginationItem.d.ts +2 -2
- package/Paper/Paper.d.ts +3 -3
- package/Paper/Paper.js +1 -2
- package/Popover/Popover.d.ts +4 -4
- package/Popper/Popper.d.ts +4 -4
- package/Popper/Popper.js +4 -4
- package/Radio/Radio.d.ts +3 -3
- package/RadioGroup/RadioGroup.d.ts +3 -3
- package/Rating/Rating.d.ts +2 -2
- package/ScopedCssBaseline/ScopedCssBaseline.d.ts +2 -2
- package/Select/Select.d.ts +3 -3
- package/Skeleton/Skeleton.d.ts +2 -2
- package/Slide/Slide.d.ts +4 -4
- package/Slide/Slide.js +1 -1
- package/Slider/Slider.d.ts +3 -3
- package/Snackbar/Snackbar.d.ts +2 -2
- package/Snackbar/Snackbar.js +1 -2
- package/SnackbarContent/SnackbarContent.d.ts +3 -3
- package/SpeedDial/SpeedDial.d.ts +2 -2
- package/SpeedDial/SpeedDial.js +1 -2
- package/SpeedDialAction/SpeedDialAction.d.ts +3 -3
- package/SpeedDialIcon/SpeedDialIcon.d.ts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/Step/Step.d.ts +2 -2
- package/StepButton/StepButton.d.ts +3 -3
- package/StepConnector/StepConnector.d.ts +3 -3
- package/StepContent/StepContent.d.ts +2 -2
- package/StepIcon/StepIcon.d.ts +2 -2
- package/StepLabel/StepLabel.d.ts +2 -2
- package/Stepper/Stepper.d.ts +2 -2
- package/SvgIcon/SvgIcon.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/Switch/Switch.d.ts +4 -4
- package/Tab/Tab.d.ts +4 -4
- package/Tab/Tab.js +3 -1
- package/Tab/tabClasses.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +2 -2
- package/Table/Table.d.ts +2 -2
- package/TableBody/TableBody.d.ts +2 -2
- package/TableCell/TableCell.d.ts +2 -2
- package/TableContainer/TableContainer.d.ts +2 -2
- package/TableFooter/TableFooter.d.ts +2 -2
- package/TableHead/TableHead.d.ts +2 -2
- package/TablePagination/TablePagination.d.ts +4 -4
- package/TableRow/TableRow.d.ts +2 -2
- package/TableSortLabel/TableSortLabel.d.ts +3 -3
- package/Tabs/Tabs.d.ts +2 -2
- package/Tabs/Tabs.js +1 -2
- package/TextField/TextField.d.ts +10 -10
- package/ToggleButton/ToggleButton.d.ts +3 -3
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -2
- package/Toolbar/Toolbar.d.ts +2 -2
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/Tooltip.js +1 -2
- package/Typography/Typography.d.ts +3 -3
- package/Typography/Typography.js +2 -2
- package/Zoom/Zoom.d.ts +3 -3
- package/Zoom/Zoom.js +1 -1
- package/index.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +9 -17
- package/modern/Chip/Chip.js +0 -2
- package/modern/Collapse/Collapse.js +1 -2
- package/modern/Dialog/Dialog.js +1 -2
- package/modern/Drawer/Drawer.js +1 -2
- package/modern/Fade/Fade.js +1 -1
- package/modern/Grid/Grid.js +7 -13
- package/modern/Grow/Grow.js +1 -1
- package/modern/InputBase/InputBase.js +26 -20
- package/modern/Link/Link.js +1 -2
- package/modern/Paper/Paper.js +1 -2
- package/modern/Popper/Popper.js +4 -4
- package/modern/Slide/Slide.js +1 -1
- package/modern/Snackbar/Snackbar.js +1 -2
- package/modern/SpeedDial/SpeedDial.js +1 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/modern/Tab/Tab.js +3 -1
- package/modern/Tabs/Tabs.js +1 -2
- package/modern/Tooltip/Tooltip.js +1 -2
- package/modern/Typography/Typography.js +2 -2
- package/modern/Zoom/Zoom.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/createTheme.js +1 -1
- package/modern/styles/index.js +2 -1
- package/modern/styles/stringifyTheme.js +55 -0
- package/modern/zero-styled/index.js +20 -1
- package/node/Autocomplete/Autocomplete.js +9 -17
- package/node/Chip/Chip.js +0 -2
- package/node/Collapse/Collapse.js +1 -2
- package/node/Dialog/Dialog.js +1 -2
- package/node/Drawer/Drawer.js +1 -2
- package/node/Fade/Fade.js +2 -2
- package/node/Grid/Grid.js +7 -13
- package/node/Grow/Grow.js +2 -2
- package/node/InputBase/InputBase.js +25 -19
- package/node/Link/Link.js +1 -2
- package/node/Paper/Paper.js +1 -2
- package/node/Popper/Popper.js +4 -4
- package/node/Slide/Slide.js +2 -2
- package/node/Snackbar/Snackbar.js +1 -2
- package/node/SpeedDial/SpeedDial.js +1 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +5 -4
- package/node/Tab/Tab.js +3 -1
- package/node/Tabs/Tabs.js +1 -2
- package/node/Tooltip/Tooltip.js +1 -2
- package/node/Typography/Typography.js +2 -2
- package/node/Zoom/Zoom.js +2 -2
- package/node/index.js +1 -1
- package/node/styles/createTheme.js +1 -1
- package/node/styles/index.js +20 -1
- package/node/styles/stringifyTheme.js +62 -0
- package/node/zero-styled/index.js +29 -0
- package/package.json +6 -6
- package/styles/createTheme.js +1 -1
- package/styles/index.d.ts +3 -0
- package/styles/index.js +2 -1
- package/styles/stringifyTheme.d.ts +20 -0
- package/styles/stringifyTheme.js +55 -0
- package/zero-styled/index.d.ts +7 -0
- package/zero-styled/index.js +20 -1
package/TextField/TextField.d.ts
CHANGED
|
@@ -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;
|
package/Toolbar/Toolbar.d.ts
CHANGED
|
@@ -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
|
|
package/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -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;
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -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
|
|
package/Typography/Typography.js
CHANGED
|
@@ -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 '../
|
|
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
|
@@ -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': {
|
package/modern/Chip/Chip.js
CHANGED
|
@@ -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";
|
package/modern/Dialog/Dialog.js
CHANGED
|
@@ -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 '../
|
|
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, {
|
package/modern/Drawer/Drawer.js
CHANGED
|
@@ -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');
|
package/modern/Fade/Fade.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 '../
|
|
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/Grid/Grid.js
CHANGED
|
@@ -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} + ${
|
|
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:
|
|
170
|
+
marginTop: theme.spacing(-propValue),
|
|
178
171
|
[`& > .${gridClasses.item}`]: {
|
|
179
|
-
paddingTop:
|
|
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% + ${
|
|
224
|
-
marginLeft:
|
|
217
|
+
width: `calc(100% + ${themeSpacing})`,
|
|
218
|
+
marginLeft: negativeValue,
|
|
225
219
|
[`& > .${gridClasses.item}`]: {
|
|
226
|
-
paddingLeft:
|
|
220
|
+
paddingLeft: themeSpacing
|
|
227
221
|
}
|
|
228
222
|
};
|
|
229
223
|
}
|
package/modern/Grow/Grow.js
CHANGED
|
@@ -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 '../
|
|
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
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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 &&
|
|
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,
|
package/modern/Link/Link.js
CHANGED
|
@@ -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 => {
|
package/modern/Paper/Paper.js
CHANGED
|
@@ -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');
|
package/modern/Popper/Popper.js
CHANGED
|
@@ -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();
|
package/modern/Slide/Slide.js
CHANGED
|
@@ -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 '../
|
|
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 '../
|
|
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
|
package/modern/Tabs/Tabs.js
CHANGED
|
@@ -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,
|
package/modern/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 '../
|
|
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
|
@@ -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
|
|
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) {
|