@mui/material 5.11.8 → 5.11.10
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/AppBar.js +1 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +14 -0
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.js +1 -0
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.d.ts +8 -0
- package/Backdrop/Backdrop.js +10 -5
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +0 -1
- package/Badge/Badge.js +47 -47
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- 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 +120 -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 +96 -96
- 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 +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/DialogContext.js +2 -2
- 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/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- 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/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- 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/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 +55 -55
- 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/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- 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/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/SwipeableDrawer/SwipeableDrawer.js +3 -3
- 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/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/AppBar/AppBar.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +10 -1
- package/legacy/Avatar/Avatar.js +1 -0
- package/legacy/Backdrop/Backdrop.js +9 -3
- package/legacy/Badge/Badge.js +48 -48
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Dialog/DialogContext.js +2 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +12 -7
- package/locale/index.d.ts +75 -75
- package/modern/AppBar/AppBar.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +14 -0
- package/modern/Avatar/Avatar.js +1 -0
- package/modern/Backdrop/Backdrop.js +10 -5
- package/modern/Badge/Badge.js +47 -47
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Dialog/DialogContext.js +2 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +9 -7
- package/node/AppBar/AppBar.js +1 -1
- package/node/Autocomplete/Autocomplete.js +14 -0
- package/node/Avatar/Avatar.js +1 -0
- package/node/Backdrop/Backdrop.js +10 -5
- package/node/Badge/Badge.js +46 -47
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Dialog/DialogContext.js +4 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +1 -1
- package/node/useMediaQuery/useMediaQuery.js +9 -7
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +16 -16
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/props.d.ts +2 -2
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +163 -248
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +46 -31
- package/useMediaQuery/useMediaQuery.js +9 -7
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface TooltipClasses {
|
|
2
|
-
/** Styles applied to the Popper component. */
|
|
3
|
-
popper: string;
|
|
4
|
-
/** Styles applied to the Popper component unless `disableInteractive={true}`. */
|
|
5
|
-
popperInteractive: string;
|
|
6
|
-
/** Styles applied to the Popper component if `arrow={true}`. */
|
|
7
|
-
popperArrow: string;
|
|
8
|
-
/** Styles applied to the Popper component unless the tooltip is open. */
|
|
9
|
-
popperClose: string;
|
|
10
|
-
/** Styles applied to the tooltip (label wrapper) element. */
|
|
11
|
-
tooltip: string;
|
|
12
|
-
/** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
|
|
13
|
-
tooltipArrow: string;
|
|
14
|
-
/** Styles applied to the arrow element. */
|
|
15
|
-
arrow: string;
|
|
16
|
-
/** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
|
|
17
|
-
touch: string;
|
|
18
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
|
|
19
|
-
tooltipPlacementLeft: string;
|
|
20
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
|
|
21
|
-
tooltipPlacementRight: string;
|
|
22
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
|
|
23
|
-
tooltipPlacementTop: string;
|
|
24
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
|
|
25
|
-
tooltipPlacementBottom: string;
|
|
26
|
-
}
|
|
27
|
-
export type TooltipClassKey = keyof TooltipClasses;
|
|
28
|
-
export declare function getTooltipUtilityClass(slot: string): string;
|
|
29
|
-
declare const tooltipClasses: TooltipClasses;
|
|
30
|
-
export default tooltipClasses;
|
|
1
|
+
export interface TooltipClasses {
|
|
2
|
+
/** Styles applied to the Popper component. */
|
|
3
|
+
popper: string;
|
|
4
|
+
/** Styles applied to the Popper component unless `disableInteractive={true}`. */
|
|
5
|
+
popperInteractive: string;
|
|
6
|
+
/** Styles applied to the Popper component if `arrow={true}`. */
|
|
7
|
+
popperArrow: string;
|
|
8
|
+
/** Styles applied to the Popper component unless the tooltip is open. */
|
|
9
|
+
popperClose: string;
|
|
10
|
+
/** Styles applied to the tooltip (label wrapper) element. */
|
|
11
|
+
tooltip: string;
|
|
12
|
+
/** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
|
|
13
|
+
tooltipArrow: string;
|
|
14
|
+
/** Styles applied to the arrow element. */
|
|
15
|
+
arrow: string;
|
|
16
|
+
/** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
|
|
17
|
+
touch: string;
|
|
18
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
|
|
19
|
+
tooltipPlacementLeft: string;
|
|
20
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
|
|
21
|
+
tooltipPlacementRight: string;
|
|
22
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
|
|
23
|
+
tooltipPlacementTop: string;
|
|
24
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
|
|
25
|
+
tooltipPlacementBottom: string;
|
|
26
|
+
}
|
|
27
|
+
export type TooltipClassKey = keyof TooltipClasses;
|
|
28
|
+
export declare function getTooltipUtilityClass(slot: string): string;
|
|
29
|
+
declare const tooltipClasses: TooltipClasses;
|
|
30
|
+
export default tooltipClasses;
|
|
@@ -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 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 type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
+
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
+
declare const typographyClasses: TypographyClasses;
|
|
50
|
+
export default typographyClasses;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OverridableComponent } from '@mui/types';
|
|
2
|
-
import { Grid2TypeMap } from './Grid2Props';
|
|
3
|
-
declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
|
|
4
|
-
export default Grid2;
|
|
1
|
+
import { OverridableComponent } from '@mui/types';
|
|
2
|
+
import { Grid2TypeMap } from './Grid2Props';
|
|
3
|
+
declare const Grid2: OverridableComponent<Grid2TypeMap<{}, "div">>;
|
|
4
|
+
export default Grid2;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { OverrideProps } from '@mui/types';
|
|
3
|
-
import { SxProps, SystemProps } from '@mui/system';
|
|
4
|
-
import { GridBaseProps } from '@mui/system/Unstable_Grid';
|
|
5
|
-
import { Theme } from '../styles';
|
|
6
|
-
export type Grid2Slot = 'root';
|
|
7
|
-
export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
-
props: P & GridBaseProps & {
|
|
9
|
-
sx?: SxProps<Theme>;
|
|
10
|
-
} & SystemProps<Theme>;
|
|
11
|
-
defaultComponent: D;
|
|
12
|
-
}
|
|
13
|
-
export type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
|
|
14
|
-
component?: React.ElementType;
|
|
15
|
-
}> = OverrideProps<Grid2TypeMap<P, D>, D>;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OverrideProps } from '@mui/types';
|
|
3
|
+
import { SxProps, SystemProps } from '@mui/system';
|
|
4
|
+
import { GridBaseProps } from '@mui/system/Unstable_Grid';
|
|
5
|
+
import { Theme } from '../styles';
|
|
6
|
+
export type Grid2Slot = 'root';
|
|
7
|
+
export interface Grid2TypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
8
|
+
props: P & GridBaseProps & {
|
|
9
|
+
sx?: SxProps<Theme>;
|
|
10
|
+
} & SystemProps<Theme>;
|
|
11
|
+
defaultComponent: D;
|
|
12
|
+
}
|
|
13
|
+
export type Grid2Props<D extends React.ElementType = Grid2TypeMap['defaultComponent'], P = {
|
|
14
|
+
component?: React.ElementType;
|
|
15
|
+
}> = OverrideProps<Grid2TypeMap<P, D>, D>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridClasses } from '@mui/system/Unstable_Grid';
|
|
2
|
-
export type Grid2ClassKey = keyof GridClasses;
|
|
3
|
-
export declare function getGrid2UtilityClass(slot: string): string;
|
|
4
|
-
declare const grid2Classes: GridClasses;
|
|
5
|
-
export default grid2Classes;
|
|
1
|
+
import { GridClasses } from '@mui/system/Unstable_Grid';
|
|
2
|
+
export type Grid2ClassKey = keyof GridClasses;
|
|
3
|
+
export declare function getGrid2UtilityClass(slot: string): string;
|
|
4
|
+
declare const grid2Classes: GridClasses;
|
|
5
|
+
export default grid2Classes;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default } from './Grid2';
|
|
2
|
-
export * from './Grid2Props';
|
|
3
|
-
export { default as grid2Classes } from './grid2Classes';
|
|
4
|
-
export * from './grid2Classes';
|
|
1
|
+
export { default } from './Grid2';
|
|
2
|
+
export * from './Grid2Props';
|
|
3
|
+
export { default as grid2Classes } from './grid2Classes';
|
|
4
|
+
export * from './grid2Classes';
|
package/className/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_ClassNameGenerator } from '@mui/utils';
|
|
1
|
+
export { unstable_ClassNameGenerator } from '@mui/utils';
|
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
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { unstable_generateUtilityClass as default } from '@mui/utils';
|
|
2
|
-
export type { GlobalStateSlot } from '@mui/utils';
|
|
1
|
+
export { unstable_generateUtilityClass as default } from '@mui/utils';
|
|
2
|
+
export type { GlobalStateSlot } from '@mui/utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_generateUtilityClasses as default } from '@mui/utils';
|
|
1
|
+
export { unstable_generateUtilityClasses as default } from '@mui/utils';
|
package/index.js
CHANGED
package/internal/SwitchBase.js
CHANGED
|
@@ -146,7 +146,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
|
|
|
146
146
|
defaultChecked: defaultChecked,
|
|
147
147
|
className: classes.input,
|
|
148
148
|
disabled: disabled,
|
|
149
|
-
id: hasLabelFor
|
|
149
|
+
id: hasLabelFor ? id : undefined,
|
|
150
150
|
name: name,
|
|
151
151
|
onChange: handleInputChange,
|
|
152
152
|
readOnly: readOnly,
|
|
@@ -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 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 type SwitchBaseClassKey = keyof SwitchBaseClasses;
|
|
10
|
+
export declare function getSwitchBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const switchBaseClasses: SwitchBaseClasses;
|
|
12
|
+
export default switchBaseClasses;
|
package/legacy/AppBar/AppBar.js
CHANGED
|
@@ -23,7 +23,7 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
23
23
|
// var2 is the fallback.
|
|
24
24
|
// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
|
|
25
25
|
var joinVars = function joinVars(var1, var2) {
|
|
26
|
-
return "".concat(var1 == null ? void 0 : var1.replace(')', ''), ", ").concat(var2, ")");
|
|
26
|
+
return var1 ? "".concat(var1 == null ? void 0 : var1.replace(')', ''), ", ").concat(var2, ")") : var2;
|
|
27
27
|
};
|
|
28
28
|
var AppBarRoot = styled(Paper, {
|
|
29
29
|
name: 'MuiAppBar',
|
|
@@ -132,7 +132,16 @@ var AutocompleteRoot = styled('div', {
|
|
|
132
132
|
padding: '2.5px 4px'
|
|
133
133
|
})), _defineProperty(_extends3, "& .".concat(inputBaseClasses.hiddenLabel), {
|
|
134
134
|
paddingTop: 8
|
|
135
|
-
}), _defineProperty(_extends3, "& .".concat(
|
|
135
|
+
}), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
|
|
136
|
+
paddingTop: 0,
|
|
137
|
+
paddingBottom: 0
|
|
138
|
+
}, "& .".concat(autocompleteClasses.input), {
|
|
139
|
+
paddingTop: 16,
|
|
140
|
+
paddingBottom: 17
|
|
141
|
+
})), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
|
|
142
|
+
paddingTop: 8,
|
|
143
|
+
paddingBottom: 9
|
|
144
|
+
})), _defineProperty(_extends3, "& .".concat(autocompleteClasses.input), _extends({
|
|
136
145
|
flexGrow: 1,
|
|
137
146
|
textOverflow: 'ellipsis',
|
|
138
147
|
opacity: 0
|
package/legacy/Avatar/Avatar.js
CHANGED
|
@@ -48,13 +48,13 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
48
48
|
name: 'MuiBackdrop'
|
|
49
49
|
});
|
|
50
50
|
var children = props.children,
|
|
51
|
+
className = props.className,
|
|
51
52
|
_props$component = props.component,
|
|
52
53
|
component = _props$component === void 0 ? 'div' : _props$component,
|
|
53
54
|
_props$components = props.components,
|
|
54
55
|
components = _props$components === void 0 ? {} : _props$components,
|
|
55
56
|
_props$componentsProp = props.componentsProps,
|
|
56
57
|
componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
|
|
57
|
-
className = props.className,
|
|
58
58
|
_props$invisible = props.invisible,
|
|
59
59
|
invisible = _props$invisible === void 0 ? false : _props$invisible,
|
|
60
60
|
open = props.open,
|
|
@@ -62,10 +62,10 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
62
62
|
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
63
63
|
_props$slots = props.slots,
|
|
64
64
|
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
65
|
-
transitionDuration = props.transitionDuration,
|
|
66
65
|
_props$TransitionComp = props.TransitionComponent,
|
|
67
66
|
TransitionComponent = _props$TransitionComp === void 0 ? Fade : _props$TransitionComp,
|
|
68
|
-
|
|
67
|
+
transitionDuration = props.transitionDuration,
|
|
68
|
+
other = _objectWithoutProperties(props, ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"]);
|
|
69
69
|
var ownerState = _extends({}, props, {
|
|
70
70
|
component: component,
|
|
71
71
|
invisible: invisible
|
|
@@ -168,6 +168,12 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
|
|
|
168
168
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
169
169
|
*/
|
|
170
170
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
171
|
+
/**
|
|
172
|
+
* The component used for the transition.
|
|
173
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
174
|
+
* @default Fade
|
|
175
|
+
*/
|
|
176
|
+
TransitionComponent: PropTypes.elementType,
|
|
171
177
|
/**
|
|
172
178
|
* The duration for the transition, in milliseconds.
|
|
173
179
|
* You may specify a single timeout for all transitions, or individually with an object.
|
package/legacy/Badge/Badge.js
CHANGED
|
@@ -6,13 +6,14 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { usePreviousProps } from '@mui/utils';
|
|
8
8
|
import composeClasses from '@mui/base/composeClasses';
|
|
9
|
-
import
|
|
9
|
+
import { useBadge } from '@mui/base/BadgeUnstyled';
|
|
10
|
+
import { useSlotProps } from '@mui/base';
|
|
10
11
|
import styled from '../styles/styled';
|
|
11
12
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
|
-
import shouldSpreadAdditionalProps from '../utils/shouldSpreadAdditionalProps';
|
|
13
13
|
import capitalize from '../utils/capitalize';
|
|
14
14
|
import badgeClasses, { getBadgeUtilityClass } from './badgeClasses';
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
17
|
var RADIUS_STANDARD = 10;
|
|
17
18
|
var RADIUS_DOT = 4;
|
|
18
19
|
var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
@@ -158,19 +159,21 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
158
159
|
horizontal: 'right'
|
|
159
160
|
} : _props$anchorOrigin,
|
|
160
161
|
className = props.className,
|
|
161
|
-
|
|
162
|
-
component =
|
|
162
|
+
classesProp = props.classes,
|
|
163
|
+
component = props.component,
|
|
163
164
|
_props$components = props.components,
|
|
164
165
|
components = _props$components === void 0 ? {} : _props$components,
|
|
165
166
|
_props$componentsProp = props.componentsProps,
|
|
166
167
|
componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
|
|
168
|
+
children = props.children,
|
|
167
169
|
_props$overlap = props.overlap,
|
|
168
170
|
overlapProp = _props$overlap === void 0 ? 'rectangular' : _props$overlap,
|
|
169
171
|
_props$color = props.color,
|
|
170
172
|
colorProp = _props$color === void 0 ? 'default' : _props$color,
|
|
171
173
|
_props$invisible = props.invisible,
|
|
172
174
|
invisibleProp = _props$invisible === void 0 ? false : _props$invisible,
|
|
173
|
-
max = props.max,
|
|
175
|
+
_props$max = props.max,
|
|
176
|
+
maxProp = _props$max === void 0 ? 99 : _props$max,
|
|
174
177
|
badgeContentProp = props.badgeContent,
|
|
175
178
|
slots = props.slots,
|
|
176
179
|
slotProps = props.slotProps,
|
|
@@ -178,17 +181,25 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
178
181
|
showZero = _props$showZero === void 0 ? false : _props$showZero,
|
|
179
182
|
_props$variant = props.variant,
|
|
180
183
|
variantProp = _props$variant === void 0 ? 'standard' : _props$variant,
|
|
181
|
-
other = _objectWithoutProperties(props, ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"]);
|
|
184
|
+
other = _objectWithoutProperties(props, ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"]);
|
|
185
|
+
var _useBadge = useBadge({
|
|
186
|
+
max: maxProp,
|
|
187
|
+
invisible: invisibleProp,
|
|
188
|
+
badgeContent: badgeContentProp,
|
|
189
|
+
showZero: showZero
|
|
190
|
+
}),
|
|
191
|
+
badgeContent = _useBadge.badgeContent,
|
|
192
|
+
invisibleFromHook = _useBadge.invisible,
|
|
193
|
+
max = _useBadge.max,
|
|
194
|
+
displayValueFromHook = _useBadge.displayValue;
|
|
182
195
|
var prevProps = usePreviousProps({
|
|
183
196
|
anchorOrigin: anchorOriginProp,
|
|
184
197
|
color: colorProp,
|
|
185
198
|
overlap: overlapProp,
|
|
186
|
-
variant: variantProp
|
|
199
|
+
variant: variantProp,
|
|
200
|
+
badgeContent: badgeContentProp
|
|
187
201
|
});
|
|
188
|
-
var invisible =
|
|
189
|
-
if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
190
|
-
invisible = true;
|
|
191
|
-
}
|
|
202
|
+
var invisible = invisibleFromHook || badgeContent == null && variantProp !== 'dot';
|
|
192
203
|
var _ref10 = invisible ? prevProps : props,
|
|
193
204
|
_ref10$color = _ref10.color,
|
|
194
205
|
color = _ref10$color === void 0 ? colorProp : _ref10$color,
|
|
@@ -198,57 +209,46 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
|
|
198
209
|
anchorOrigin = _ref10$anchorOrigin === void 0 ? anchorOriginProp : _ref10$anchorOrigin,
|
|
199
210
|
_ref10$variant = _ref10.variant,
|
|
200
211
|
variant = _ref10$variant === void 0 ? variantProp : _ref10$variant;
|
|
212
|
+
var displayValue = variant !== 'dot' ? displayValueFromHook : undefined;
|
|
201
213
|
var ownerState = _extends({}, props, {
|
|
202
|
-
|
|
214
|
+
badgeContent: badgeContent,
|
|
203
215
|
invisible: invisible,
|
|
216
|
+
max: max,
|
|
217
|
+
displayValue: displayValue,
|
|
218
|
+
showZero: showZero,
|
|
219
|
+
anchorOrigin: anchorOrigin,
|
|
204
220
|
color: color,
|
|
205
221
|
overlap: overlap,
|
|
206
222
|
variant: variant
|
|
207
223
|
});
|
|
208
224
|
var classes = useUtilityClasses(ownerState);
|
|
209
|
-
var displayValue;
|
|
210
|
-
if (variant !== 'dot') {
|
|
211
|
-
displayValue = badgeContentProp && Number(badgeContentProp) > max ? "".concat(max, "+") : badgeContentProp;
|
|
212
|
-
}
|
|
213
225
|
|
|
214
226
|
// support both `slots` and `components` for backward compatibility
|
|
215
227
|
var RootSlot = (_ref11 = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref11 : BadgeRoot;
|
|
216
228
|
var BadgeSlot = (_ref12 = (_slots$badge = slots == null ? void 0 : slots.badge) != null ? _slots$badge : components.Badge) != null ? _ref12 : BadgeBadge;
|
|
217
229
|
var rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
218
230
|
var badgeSlotProps = (_slotProps$badge = slotProps == null ? void 0 : slotProps.badge) != null ? _slotProps$badge : componentsProps.badge;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
root: RootSlot,
|
|
227
|
-
badge: BadgeSlot
|
|
228
|
-
},
|
|
229
|
-
className: clsx(rootSlotProps == null ? void 0 : rootSlotProps.className, classes.root, className),
|
|
230
|
-
slotProps: {
|
|
231
|
-
root: _extends({}, rootSlotProps, shouldSpreadAdditionalProps(RootSlot) && {
|
|
232
|
-
as: component,
|
|
233
|
-
ownerState: _extends({}, rootSlotProps == null ? void 0 : rootSlotProps.ownerState, {
|
|
234
|
-
anchorOrigin: anchorOrigin,
|
|
235
|
-
color: color,
|
|
236
|
-
overlap: overlap,
|
|
237
|
-
variant: variant
|
|
238
|
-
})
|
|
239
|
-
}),
|
|
240
|
-
badge: _extends({}, badgeSlotProps, {
|
|
241
|
-
className: clsx(classes.badge, badgeSlotProps == null ? void 0 : badgeSlotProps.className)
|
|
242
|
-
}, shouldSpreadAdditionalProps(BadgeSlot) && {
|
|
243
|
-
ownerState: _extends({}, badgeSlotProps == null ? void 0 : badgeSlotProps.ownerState, {
|
|
244
|
-
anchorOrigin: anchorOrigin,
|
|
245
|
-
color: color,
|
|
246
|
-
overlap: overlap,
|
|
247
|
-
variant: variant
|
|
248
|
-
})
|
|
249
|
-
})
|
|
231
|
+
var rootProps = useSlotProps({
|
|
232
|
+
elementType: RootSlot,
|
|
233
|
+
externalSlotProps: rootSlotProps,
|
|
234
|
+
externalForwardedProps: other,
|
|
235
|
+
additionalProps: {
|
|
236
|
+
ref: ref,
|
|
237
|
+
as: component
|
|
250
238
|
},
|
|
251
|
-
|
|
239
|
+
ownerState: ownerState,
|
|
240
|
+
className: clsx(rootSlotProps == null ? void 0 : rootSlotProps.className, classes.root, className)
|
|
241
|
+
});
|
|
242
|
+
var badgeProps = useSlotProps({
|
|
243
|
+
elementType: BadgeSlot,
|
|
244
|
+
externalSlotProps: badgeSlotProps,
|
|
245
|
+
ownerState: ownerState,
|
|
246
|
+
className: clsx(classes.badge, badgeSlotProps == null ? void 0 : badgeSlotProps.className)
|
|
247
|
+
});
|
|
248
|
+
return /*#__PURE__*/_jsxs(RootSlot, _extends({}, rootProps, {
|
|
249
|
+
children: [children, /*#__PURE__*/_jsx(BadgeSlot, _extends({}, badgeProps, {
|
|
250
|
+
children: displayValue
|
|
251
|
+
}))]
|
|
252
252
|
}));
|
|
253
253
|
});
|
|
254
254
|
process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ = {
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var DialogContext = /*#__PURE__*/createContext({});
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
var DialogContext = /*#__PURE__*/React.createContext({});
|
|
3
3
|
if (process.env.NODE_ENV !== 'production') {
|
|
4
4
|
DialogContext.displayName = 'DialogContext';
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import * as ReactDOM from 'react-dom';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { elementTypeAcceptingRef } from '@mui/utils';
|
|
7
7
|
import { useThemeProps } from '@mui/system';
|
|
@@ -217,7 +217,7 @@ var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inP
|
|
|
217
217
|
}
|
|
218
218
|
claimedSwipeInstance = null;
|
|
219
219
|
touchDetected.current = false;
|
|
220
|
-
flushSync(function () {
|
|
220
|
+
ReactDOM.flushSync(function () {
|
|
221
221
|
setMaybeSwiping(false);
|
|
222
222
|
});
|
|
223
223
|
|
|
@@ -270,7 +270,7 @@ var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inP
|
|
|
270
270
|
// this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.
|
|
271
271
|
// so do this change on first touchmove instead of touchstart
|
|
272
272
|
if (force || !(disableDiscovery && allowSwipeInChildren)) {
|
|
273
|
-
flushSync(function () {
|
|
273
|
+
ReactDOM.flushSync(function () {
|
|
274
274
|
setMaybeSwiping(true);
|
|
275
275
|
});
|
|
276
276
|
}
|
package/legacy/index.js
CHANGED
|
@@ -149,7 +149,7 @@ var SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref) {
|
|
|
149
149
|
defaultChecked: defaultChecked,
|
|
150
150
|
className: classes.input,
|
|
151
151
|
disabled: disabled,
|
|
152
|
-
id: hasLabelFor
|
|
152
|
+
id: hasLabelFor ? id : undefined,
|
|
153
153
|
name: name,
|
|
154
154
|
onChange: handleInputChange,
|
|
155
155
|
readOnly: readOnly,
|