@mui/material 5.4.4 → 5.5.2
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/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +4 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +192 -2
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +1 -0
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +1 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.js +10 -14
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +1 -1
- package/InputBase/InputBase.js +1 -1
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/NotchedOutline.js +3 -1
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -17
- package/Popper/Popper.js +21 -6
- package/README.md +1 -0
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +2 -0
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +1 -0
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +8 -0
- package/className/index.js +9 -0
- package/className/package.json +6 -0
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/AvatarGroup/AvatarGroup.js +4 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Box/Box.js +1 -1
- package/legacy/Fab/Fab.js +1 -0
- package/legacy/FilledInput/FilledInput.js +1 -1
- package/legacy/Grid/Grid.js +11 -17
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputBase/InputBase.js +1 -1
- package/legacy/OutlinedInput/NotchedOutline.js +3 -1
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Popper/Popper.js +23 -6
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SvgIcon/SvgIcon.js +1 -0
- package/legacy/className/index.js +9 -0
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +347 -80
- package/legacy/styles/zIndex.js +1 -0
- package/legacy/utils/index.js +10 -2
- package/locale/index.d.ts +71 -68
- package/locale/index.js +264 -0
- package/modern/AvatarGroup/AvatarGroup.js +4 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Box/Box.js +1 -1
- package/modern/Fab/Fab.js +1 -0
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/Grid/Grid.js +10 -14
- package/modern/Input/Input.js +1 -1
- package/modern/InputBase/InputBase.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +3 -1
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Popper/Popper.js +21 -6
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SvgIcon/SvgIcon.js +1 -0
- package/modern/className/index.js +9 -0
- package/modern/index.js +1 -1
- package/modern/locale/index.js +264 -0
- package/modern/styles/zIndex.js +1 -0
- package/modern/utils/index.js +10 -2
- package/node/AvatarGroup/AvatarGroup.js +4 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Box/Box.js +2 -2
- package/node/Fab/Fab.js +1 -0
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/Grid/Grid.js +10 -14
- package/node/Input/Input.js +1 -1
- package/node/InputBase/InputBase.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +3 -1
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Popper/Popper.js +24 -7
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SvgIcon/SvgIcon.js +1 -0
- package/node/className/index.js +13 -0
- package/node/index.js +1 -1
- package/node/locale/index.js +271 -4
- package/node/styles/zIndex.js +1 -0
- package/node/utils/index.js +13 -7
- package/package.json +5 -5
- package/styles/components.d.ts +3 -0
- package/styles/props.d.ts +2 -0
- package/styles/zIndex.d.ts +1 -0
- package/styles/zIndex.js +1 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +2838 -2690
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/usePagination/usePagination.d.ts +1 -1
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/index.d.ts +1 -1
- package/utils/index.js +10 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export interface TypographyClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
-
body2: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
-
body1: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
-
caption: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
-
button: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
-
h1: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
-
h2: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
-
h3: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
-
h4: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
-
h5: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
-
h6: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
-
subtitle1: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
-
subtitle2: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
-
overline: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
-
inherit: string;
|
|
32
|
-
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
-
alignLeft: string;
|
|
34
|
-
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
-
alignCenter: string;
|
|
36
|
-
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
-
alignRight: string;
|
|
38
|
-
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
-
alignJustify: string;
|
|
40
|
-
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
-
noWrap: string;
|
|
42
|
-
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
-
gutterBottom: string;
|
|
44
|
-
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
-
paragraph: string;
|
|
46
|
-
}
|
|
47
|
-
export declare type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
-
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
-
declare const typographyClasses: TypographyClasses;
|
|
50
|
-
export default typographyClasses;
|
|
1
|
+
export interface TypographyClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
+
body2: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
+
body1: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
+
caption: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
+
button: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
+
h1: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
+
h2: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
+
h3: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
+
h4: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
+
h5: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
+
h6: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
+
subtitle1: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
+
subtitle2: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
+
overline: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
+
inherit: string;
|
|
32
|
+
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
+
alignLeft: string;
|
|
34
|
+
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
+
alignCenter: string;
|
|
36
|
+
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
+
alignRight: string;
|
|
38
|
+
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
+
alignJustify: string;
|
|
40
|
+
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
+
noWrap: string;
|
|
42
|
+
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
+
gutterBottom: string;
|
|
44
|
+
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
+
paragraph: string;
|
|
46
|
+
}
|
|
47
|
+
export declare type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
+
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
+
declare const typographyClasses: TypographyClasses;
|
|
50
|
+
export default typographyClasses;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
|
|
3
|
+
* ❌ import { ... } from '@mui/base';
|
|
4
|
+
* ✅ import { ... } from '@mui/base/utils'; // must be specific base module
|
|
5
|
+
*
|
|
6
|
+
* Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
|
|
7
|
+
*/
|
|
8
|
+
export { unstable_ClassNameGenerator } from '@mui/base/className';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
|
|
3
|
+
* ❌ import { ... } from '@mui/base';
|
|
4
|
+
* ✅ import { ... } from '@mui/base/utils'; // must be specific base module
|
|
5
|
+
*
|
|
6
|
+
* Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
9
|
+
export { unstable_ClassNameGenerator } from '@mui/base/className';
|
package/darkScrollbar/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export default function darkScrollbar(options?: {
|
|
2
|
-
track: string;
|
|
3
|
-
thumb: string;
|
|
4
|
-
active: string;
|
|
5
|
-
}): {
|
|
6
|
-
scrollbarColor: string;
|
|
7
|
-
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
-
backgroundColor: string;
|
|
9
|
-
};
|
|
10
|
-
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
-
borderRadius: number;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
minHeight: number;
|
|
14
|
-
border: string;
|
|
15
|
-
};
|
|
16
|
-
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
};
|
|
19
|
-
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
};
|
|
22
|
-
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
};
|
|
25
|
-
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
export default function darkScrollbar(options?: {
|
|
2
|
+
track: string;
|
|
3
|
+
thumb: string;
|
|
4
|
+
active: string;
|
|
5
|
+
}): {
|
|
6
|
+
scrollbarColor: string;
|
|
7
|
+
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
minHeight: number;
|
|
14
|
+
border: string;
|
|
15
|
+
};
|
|
16
|
+
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
};
|
|
19
|
+
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
};
|
|
25
|
+
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface SwitchBaseClasses {
|
|
2
|
-
root: string;
|
|
3
|
-
checked: string;
|
|
4
|
-
disabled: string;
|
|
5
|
-
input: string;
|
|
6
|
-
edgeStart: string;
|
|
7
|
-
edgeEnd: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
-
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
-
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
-
export default switchBaseClasses;
|
|
1
|
+
export interface SwitchBaseClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
checked: string;
|
|
4
|
+
disabled: string;
|
|
5
|
+
input: string;
|
|
6
|
+
edgeStart: string;
|
|
7
|
+
edgeEnd: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
+
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
+
export default switchBaseClasses;
|
|
@@ -125,11 +125,13 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
|
|
|
125
125
|
marginLeft: marginLeft
|
|
126
126
|
}, (_componentsProps$addi2 = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi2.style),
|
|
127
127
|
children: ["+", extraAvatars]
|
|
128
|
-
})) : null, children.slice(0, maxAvatars).reverse().map(function (child) {
|
|
128
|
+
})) : null, children.slice(0, maxAvatars).reverse().map(function (child, index) {
|
|
129
129
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
130
130
|
className: clsx(child.props.className, classes.avatar),
|
|
131
131
|
style: _extends({
|
|
132
|
-
|
|
132
|
+
// Consistent with "&:last-child" styling for the default spacing,
|
|
133
|
+
// we do not apply custom marginLeft spacing on the last child
|
|
134
|
+
marginLeft: index === maxAvatars - 1 ? undefined : marginLeft
|
|
133
135
|
}, child.props.style),
|
|
134
136
|
variant: child.props.variant || variant
|
|
135
137
|
});
|
|
File without changes
|
package/legacy/Box/Box.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createBox } from '@mui/system';
|
|
2
|
-
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../
|
|
2
|
+
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
|
3
3
|
import { createTheme } from '../styles';
|
|
4
4
|
var defaultTheme = createTheme();
|
|
5
5
|
/**
|
package/legacy/Fab/Fab.js
CHANGED
|
@@ -342,7 +342,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
|
|
|
342
342
|
minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
|
-
* If `true`, a
|
|
345
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
346
346
|
* @default false
|
|
347
347
|
*/
|
|
348
348
|
multiline: PropTypes.bool,
|
package/legacy/Grid/Grid.js
CHANGED
|
@@ -314,10 +314,9 @@ var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
|
314
314
|
|
|
315
315
|
var rowSpacing = rowSpacingProp || spacing;
|
|
316
316
|
var columnSpacing = columnSpacingProp || spacing;
|
|
317
|
-
var columnsContext = React.useContext(GridContext); //
|
|
318
|
-
// colums set with default breakpoint unit of 12
|
|
317
|
+
var columnsContext = React.useContext(GridContext); // columns set with default breakpoint unit of 12
|
|
319
318
|
|
|
320
|
-
var columns = columnsProp ||
|
|
319
|
+
var columns = container ? columnsProp || 12 : columnsContext;
|
|
321
320
|
|
|
322
321
|
var ownerState = _extends({}, props, {
|
|
323
322
|
columns: columns,
|
|
@@ -336,20 +335,15 @@ var Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
|
|
|
336
335
|
});
|
|
337
336
|
|
|
338
337
|
var classes = useUtilityClasses(ownerState);
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
ownerState: ownerState,
|
|
349
|
-
className: clsx(classes.root, className),
|
|
350
|
-
as: component,
|
|
351
|
-
ref: ref
|
|
352
|
-
}, other)));
|
|
338
|
+
return /*#__PURE__*/_jsx(GridContext.Provider, {
|
|
339
|
+
value: columns,
|
|
340
|
+
children: /*#__PURE__*/_jsx(GridRoot, _extends({
|
|
341
|
+
ownerState: ownerState,
|
|
342
|
+
className: clsx(classes.root, className),
|
|
343
|
+
as: component,
|
|
344
|
+
ref: ref
|
|
345
|
+
}, other))
|
|
346
|
+
});
|
|
353
347
|
});
|
|
354
348
|
process.env.NODE_ENV !== "production" ? Grid.propTypes
|
|
355
349
|
/* remove-proptypes */
|
package/legacy/Input/Input.js
CHANGED
|
@@ -269,7 +269,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
|
|
|
269
269
|
minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
|
-
* If `true`, a
|
|
272
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
273
273
|
* @default false
|
|
274
274
|
*/
|
|
275
275
|
multiline: PropTypes.bool,
|
|
@@ -642,7 +642,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
|
|
|
642
642
|
minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
643
643
|
|
|
644
644
|
/**
|
|
645
|
-
* If `true`, a
|
|
645
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
646
646
|
* @default false
|
|
647
647
|
*/
|
|
648
648
|
multiline: PropTypes.bool,
|
|
@@ -57,7 +57,9 @@ var NotchedOutlineLegend = styled('legend')(function (_ref) {
|
|
|
57
57
|
'& > span': {
|
|
58
58
|
paddingLeft: 5,
|
|
59
59
|
paddingRight: 5,
|
|
60
|
-
display: 'inline-block'
|
|
60
|
+
display: 'inline-block',
|
|
61
|
+
opacity: 0,
|
|
62
|
+
visibility: 'visible'
|
|
61
63
|
}
|
|
62
64
|
}, ownerState.notched && {
|
|
63
65
|
maxWidth: '100%',
|
|
@@ -272,7 +272,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes
|
|
|
272
272
|
minRows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
|
-
* If `true`, a
|
|
275
|
+
* If `true`, a [TextareaAutosize](/components/textarea-autosize/) element is rendered.
|
|
276
276
|
* @default false
|
|
277
277
|
*/
|
|
278
278
|
multiline: PropTypes.bool,
|
package/legacy/Popper/Popper.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
2
|
import PopperUnstyled from '@mui/base/PopperUnstyled';
|
|
5
|
-
import { HTMLElementType, refType } from '@mui/utils';
|
|
6
3
|
import { useThemeWithoutDefault as useTheme } from '@mui/system';
|
|
4
|
+
import { HTMLElementType, refType } from '@mui/utils';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import * as React from 'react';
|
|
7
|
+
import { styled, useThemeProps } from '../styles';
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
+
var PopperRoot = styled(PopperUnstyled, {
|
|
10
|
+
name: 'MuiPopper',
|
|
11
|
+
slot: 'Root',
|
|
12
|
+
overridesResolver: function overridesResolver(props, styles) {
|
|
13
|
+
return styles.root;
|
|
14
|
+
}
|
|
15
|
+
})({});
|
|
9
16
|
/**
|
|
10
17
|
*
|
|
11
18
|
* Demos:
|
|
@@ -18,9 +25,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
25
|
*
|
|
19
26
|
* - [Popper API](https://mui.com/api/popper/)
|
|
20
27
|
*/
|
|
21
|
-
|
|
28
|
+
|
|
29
|
+
var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
|
|
22
30
|
var theme = useTheme();
|
|
23
|
-
|
|
31
|
+
var props = useThemeProps({
|
|
32
|
+
props: inProps,
|
|
33
|
+
name: 'MuiPopper'
|
|
34
|
+
});
|
|
35
|
+
return /*#__PURE__*/_jsx(PopperRoot, _extends({
|
|
24
36
|
direction: theme == null ? void 0 : theme.direction
|
|
25
37
|
}, props, {
|
|
26
38
|
ref: ref
|
|
@@ -124,6 +136,11 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes
|
|
|
124
136
|
*/
|
|
125
137
|
popperRef: refType,
|
|
126
138
|
|
|
139
|
+
/**
|
|
140
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
141
|
+
*/
|
|
142
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
143
|
+
|
|
127
144
|
/**
|
|
128
145
|
* Help supporting a react-transition-group/Transition component.
|
|
129
146
|
* @default false
|
|
@@ -290,7 +290,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
290
290
|
onMouseLeave: handleMouseLeave,
|
|
291
291
|
ownerState: ownerState,
|
|
292
292
|
ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
293
|
-
// See https://github.com/mui
|
|
293
|
+
// See https://github.com/mui/material-ui/issues/29080
|
|
294
294
|
,
|
|
295
295
|
role: "presentation"
|
|
296
296
|
}, other, {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
|
|
3
|
+
* ❌ import { ... } from '@mui/base';
|
|
4
|
+
* ✅ import { ... } from '@mui/base/utils'; // must be specific base module
|
|
5
|
+
*
|
|
6
|
+
* Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line import/prefer-default-export
|
|
9
|
+
export { unstable_ClassNameGenerator } from '@mui/base/className';
|
package/legacy/index.js
CHANGED