@mui/material 5.4.0 → 5.4.1
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.d.ts +10 -0
- package/AvatarGroup/AvatarGroup.js +19 -7
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Badge/Badge.js +3 -2
- 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 +76 -76
- package/ButtonBase/ButtonBase.d.ts +5 -1
- package/ButtonBase/ButtonBase.js +15 -2
- 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 +100 -28
- 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.d.ts +4 -1
- package/Fab/Fab.js +8 -20
- package/Fab/fabClasses.d.ts +26 -26
- package/Fab/fabClasses.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/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/ImageList.js +3 -1
- 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 +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/Modal/Modal.js +1 -1
- 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 +17 -17
- package/README.md +6 -6
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +1 -1
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/SelectInput.js +5 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +3 -1
- package/Snackbar/Snackbar.js +4 -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/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/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/darkScrollbar/index.d.ts +28 -28
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/AvatarGroup/AvatarGroup.js +20 -7
- package/legacy/Badge/Badge.js +4 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/ButtonBase.js +15 -2
- package/legacy/Fab/Fab.js +8 -20
- package/legacy/Fab/fabClasses.js +1 -1
- package/legacy/ImageList/ImageList.js +3 -1
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/SelectInput.js +5 -1
- package/legacy/Slider/Slider.js +3 -1
- package/legacy/Snackbar/Snackbar.js +4 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/makeStyles.js +1 -1
- package/legacy/styles/withStyles.js +1 -1
- package/legacy/styles/withTheme.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +1 -1
- package/locale/index.d.ts +68 -68
- package/modern/AvatarGroup/AvatarGroup.js +17 -7
- package/modern/Badge/Badge.js +3 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/ButtonBase.js +15 -2
- package/modern/Fab/Fab.js +8 -20
- package/modern/Fab/fabClasses.js +1 -1
- package/modern/ImageList/ImageList.js +3 -1
- package/modern/Modal/Modal.js +1 -1
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/SelectInput.js +5 -1
- package/modern/Slider/Slider.js +3 -1
- package/modern/Snackbar/Snackbar.js +4 -1
- package/modern/index.js +1 -1
- package/modern/styles/makeStyles.js +1 -1
- package/modern/styles/withStyles.js +1 -1
- package/modern/styles/withTheme.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +1 -1
- package/node/AvatarGroup/AvatarGroup.js +19 -7
- package/node/Badge/Badge.js +3 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/ButtonBase/ButtonBase.js +15 -2
- package/node/Fab/Fab.js +8 -20
- package/node/Fab/fabClasses.js +1 -1
- package/node/ImageList/ImageList.js +3 -1
- package/node/Modal/Modal.js +1 -1
- package/node/Rating/Rating.js +1 -1
- package/node/Select/SelectInput.js +5 -1
- package/node/Slider/Slider.js +3 -1
- package/node/Snackbar/Snackbar.js +4 -1
- package/node/index.js +1 -1
- package/node/styles/makeStyles.js +1 -1
- package/node/styles/withStyles.js +1 -1
- package/node/styles/withTheme.js +1 -1
- package/node/useMediaQuery/useMediaQuery.js +1 -1
- package/package.json +8 -8
- package/styles/makeStyles.js +1 -1
- package/styles/withStyles.js +1 -1
- package/styles/withTheme.js +1 -1
- 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 +96 -50
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useMediaQuery/useMediaQuery.js +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/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/transitions/utils.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const reflow: (node: Element) => number;
|
|
3
|
-
interface ComponentProps {
|
|
4
|
-
easing: string | {
|
|
5
|
-
enter?: string;
|
|
6
|
-
exit?: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
style: React.CSSProperties | undefined;
|
|
9
|
-
timeout: number | {
|
|
10
|
-
enter?: number;
|
|
11
|
-
exit?: number;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
interface Options {
|
|
15
|
-
mode: 'enter' | 'exit';
|
|
16
|
-
}
|
|
17
|
-
interface TransitionProps {
|
|
18
|
-
duration: string | number;
|
|
19
|
-
easing: string | undefined;
|
|
20
|
-
delay: string | undefined;
|
|
21
|
-
}
|
|
22
|
-
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const reflow: (node: Element) => number;
|
|
3
|
+
interface ComponentProps {
|
|
4
|
+
easing: string | {
|
|
5
|
+
enter?: string;
|
|
6
|
+
exit?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
style: React.CSSProperties | undefined;
|
|
9
|
+
timeout: number | {
|
|
10
|
+
enter?: number;
|
|
11
|
+
exit?: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
mode: 'enter' | 'exit';
|
|
16
|
+
}
|
|
17
|
+
interface TransitionProps {
|
|
18
|
+
duration: string | number;
|
|
19
|
+
easing: string | undefined;
|
|
20
|
+
delay: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
|
|
23
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.4.
|
|
1
|
+
/** @license MUI v5.4.1
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -5010,7 +5010,7 @@
|
|
|
5010
5010
|
*
|
|
5011
5011
|
* WARNING: Be sure to only call this inside a callback that is passed as a ref.
|
|
5012
5012
|
* Otherwise, make sure to cleanup the previous {ref} if it changes. See
|
|
5013
|
-
* https://github.com/mui
|
|
5013
|
+
* https://github.com/mui/material-ui/issues/13539
|
|
5014
5014
|
*
|
|
5015
5015
|
* Useful if you want to expose the ref of an inner component to the public API
|
|
5016
5016
|
* while still using it inside the component.
|
|
@@ -5028,7 +5028,8 @@
|
|
|
5028
5028
|
var useEnhancedEffect$1 = useEnhancedEffect;
|
|
5029
5029
|
|
|
5030
5030
|
let globalId = 0;
|
|
5031
|
-
|
|
5031
|
+
|
|
5032
|
+
function useGlobalId(idOverride) {
|
|
5032
5033
|
const [defaultId, setDefaultId] = React__namespace.useState(idOverride);
|
|
5033
5034
|
const id = idOverride || defaultId;
|
|
5034
5035
|
React__namespace.useEffect(() => {
|
|
@@ -5042,6 +5043,25 @@
|
|
|
5042
5043
|
}
|
|
5043
5044
|
}, [defaultId]);
|
|
5044
5045
|
return id;
|
|
5046
|
+
} // eslint-disable-next-line no-useless-concat -- Workaround for https://github.com/webpack/webpack/issues/14814
|
|
5047
|
+
|
|
5048
|
+
|
|
5049
|
+
const maybeReactUseId = React__namespace['useId' + ''];
|
|
5050
|
+
/**
|
|
5051
|
+
*
|
|
5052
|
+
* @example <div id={useId()} />
|
|
5053
|
+
* @param idOverride
|
|
5054
|
+
* @returns {string}
|
|
5055
|
+
*/
|
|
5056
|
+
|
|
5057
|
+
function useId(idOverride) {
|
|
5058
|
+
if (maybeReactUseId !== undefined) {
|
|
5059
|
+
const reactId = maybeReactUseId();
|
|
5060
|
+
return idOverride != null ? idOverride : reactId;
|
|
5061
|
+
} // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.
|
|
5062
|
+
|
|
5063
|
+
|
|
5064
|
+
return useGlobalId(idOverride);
|
|
5045
5065
|
}
|
|
5046
5066
|
|
|
5047
5067
|
function unsupportedProp(props, propName, componentName, location, propFullName) {
|
|
@@ -8667,7 +8687,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8667
8687
|
horizontal: 'right'
|
|
8668
8688
|
},
|
|
8669
8689
|
badgeContent: badgeContentProp,
|
|
8670
|
-
invisible: invisibleProp,
|
|
8690
|
+
invisible: invisibleProp = false,
|
|
8671
8691
|
max: maxProp = 99,
|
|
8672
8692
|
showZero = false,
|
|
8673
8693
|
variant: variantProp = 'standard'
|
|
@@ -8680,7 +8700,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8680
8700
|
});
|
|
8681
8701
|
let invisible = invisibleProp;
|
|
8682
8702
|
|
|
8683
|
-
if (invisibleProp
|
|
8703
|
+
if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
8684
8704
|
invisible = true;
|
|
8685
8705
|
}
|
|
8686
8706
|
|
|
@@ -8851,6 +8871,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8851
8871
|
|
|
8852
8872
|
/**
|
|
8853
8873
|
* If `true`, the badge is invisible.
|
|
8874
|
+
* @default false
|
|
8854
8875
|
*/
|
|
8855
8876
|
invisible: PropTypes.bool,
|
|
8856
8877
|
|
|
@@ -9690,7 +9711,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9690
9711
|
|
|
9691
9712
|
/**
|
|
9692
9713
|
* If `true`, the trap focus will not restore focus to previously focused element once
|
|
9693
|
-
* trap focus is hidden.
|
|
9714
|
+
* trap focus is hidden or unmounted.
|
|
9694
9715
|
* @default false
|
|
9695
9716
|
*/
|
|
9696
9717
|
disableRestoreFocus: PropTypes.bool,
|
|
@@ -10093,7 +10114,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
10093
10114
|
|
|
10094
10115
|
/**
|
|
10095
10116
|
* If `true`, the modal will not restore focus to previously focused element once
|
|
10096
|
-
* modal is hidden.
|
|
10117
|
+
* modal is hidden or unmounted.
|
|
10097
10118
|
* @default false
|
|
10098
10119
|
*/
|
|
10099
10120
|
disableRestoreFocus: PropTypes.bool,
|
|
@@ -12671,7 +12692,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12671
12692
|
const handleChange = onChange && ((event, value, thumbIndex) => {
|
|
12672
12693
|
// Redefine target to allow name and value to be read.
|
|
12673
12694
|
// This allows seamless integration with the most popular form libraries.
|
|
12674
|
-
// https://github.com/mui
|
|
12695
|
+
// https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
|
|
12675
12696
|
// Clone the event to not override `target` of the original event.
|
|
12676
12697
|
const nativeEvent = event.nativeEvent || event; // @ts-ignore The nativeEvent is function, not object
|
|
12677
12698
|
|
|
@@ -14692,19 +14713,19 @@ Use unitless line heights instead.` );
|
|
|
14692
14713
|
function makeStyles() {
|
|
14693
14714
|
throw new Error(`MUI: makeStyles is not longer exported from @mui/material/styles.
|
|
14694
14715
|
You have to import it from @mui/styles.
|
|
14695
|
-
See https://mui.com/r/migration-v4/#material-
|
|
14716
|
+
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
14696
14717
|
}
|
|
14697
14718
|
|
|
14698
14719
|
function withStyles() {
|
|
14699
14720
|
throw new Error(`MUI: withStyles is not longer exported from @mui/material/styles.
|
|
14700
14721
|
You have to import it from @mui/styles.
|
|
14701
|
-
See https://mui.com/r/migration-v4/#material-
|
|
14722
|
+
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
14702
14723
|
}
|
|
14703
14724
|
|
|
14704
14725
|
function withTheme() {
|
|
14705
14726
|
throw new Error(`MUI: withTheme is not longer exported from @mui/material/styles.
|
|
14706
14727
|
You have to import it from @mui/styles.
|
|
14707
|
-
See https://mui.com/r/migration-v4/#material-
|
|
14728
|
+
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
14708
14729
|
}
|
|
14709
14730
|
|
|
14710
14731
|
function getSvgIconUtilityClass(slot) {
|
|
@@ -17384,7 +17405,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
17384
17405
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
|
17385
17406
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
17386
17407
|
|
|
17387
|
-
const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "type"];
|
|
17408
|
+
const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
17388
17409
|
|
|
17389
17410
|
const useUtilityClasses$1E = ownerState => {
|
|
17390
17411
|
const {
|
|
@@ -17488,12 +17509,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
17488
17509
|
onTouchStart,
|
|
17489
17510
|
tabIndex = 0,
|
|
17490
17511
|
TouchRippleProps,
|
|
17512
|
+
touchRippleRef,
|
|
17491
17513
|
type
|
|
17492
17514
|
} = props,
|
|
17493
17515
|
other = _objectWithoutPropertiesLoose(props, _excluded$1Y);
|
|
17494
17516
|
|
|
17495
17517
|
const buttonRef = React__namespace.useRef(null);
|
|
17496
17518
|
const rippleRef = React__namespace.useRef(null);
|
|
17519
|
+
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
17497
17520
|
const {
|
|
17498
17521
|
isFocusVisibleRef,
|
|
17499
17522
|
onFocus: handleFocusVisible,
|
|
@@ -17713,7 +17736,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
17713
17736
|
|
|
17714
17737
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
|
17715
17738
|
jsxRuntime_1(TouchRipple$1, _extends({
|
|
17716
|
-
ref:
|
|
17739
|
+
ref: handleRippleRef,
|
|
17717
17740
|
center: centerRipple
|
|
17718
17741
|
}, TouchRippleProps)) : null]
|
|
17719
17742
|
}));
|
|
@@ -17896,6 +17919,17 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
17896
17919
|
*/
|
|
17897
17920
|
TouchRippleProps: PropTypes.object,
|
|
17898
17921
|
|
|
17922
|
+
/**
|
|
17923
|
+
* A ref that points to the `TouchRippple` element.
|
|
17924
|
+
*/
|
|
17925
|
+
touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
17926
|
+
current: PropTypes.shape({
|
|
17927
|
+
pulsate: PropTypes.func.isRequired,
|
|
17928
|
+
start: PropTypes.func.isRequired,
|
|
17929
|
+
stop: PropTypes.func.isRequired
|
|
17930
|
+
})
|
|
17931
|
+
})]),
|
|
17932
|
+
|
|
17899
17933
|
/**
|
|
17900
17934
|
* @ignore
|
|
17901
17935
|
*/
|
|
@@ -21220,7 +21254,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21220
21254
|
const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
|
|
21221
21255
|
var avatarGroupClasses$1 = avatarGroupClasses;
|
|
21222
21256
|
|
|
21223
|
-
const _excluded$1N = ["children", "className", "max", "spacing", "total", "variant"];
|
|
21257
|
+
const _excluded$1N = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
|
|
21224
21258
|
const SPACINGS$1 = {
|
|
21225
21259
|
small: -16,
|
|
21226
21260
|
medium: null
|
|
@@ -21272,6 +21306,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21272
21306
|
}
|
|
21273
21307
|
}));
|
|
21274
21308
|
const AvatarGroup = /*#__PURE__*/React__namespace.forwardRef(function AvatarGroup(inProps, ref) {
|
|
21309
|
+
var _componentsProps$addi, _componentsProps$addi2;
|
|
21310
|
+
|
|
21275
21311
|
const props = useThemeProps({
|
|
21276
21312
|
props: inProps,
|
|
21277
21313
|
name: 'MuiAvatarGroup'
|
|
@@ -21280,6 +21316,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21280
21316
|
const {
|
|
21281
21317
|
children: childrenProp,
|
|
21282
21318
|
className,
|
|
21319
|
+
componentsProps = {},
|
|
21283
21320
|
max = 5,
|
|
21284
21321
|
spacing = 'medium',
|
|
21285
21322
|
total,
|
|
@@ -21320,15 +21357,16 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21320
21357
|
className: clsx(classes.root, className),
|
|
21321
21358
|
ref: ref
|
|
21322
21359
|
}, other, {
|
|
21323
|
-
children: [extraAvatars ? /*#__PURE__*/jsxRuntime_2(AvatarGroupAvatar, {
|
|
21360
|
+
children: [extraAvatars ? /*#__PURE__*/jsxRuntime_2(AvatarGroupAvatar, _extends({
|
|
21324
21361
|
ownerState: ownerState,
|
|
21325
|
-
|
|
21326
|
-
|
|
21362
|
+
variant: variant
|
|
21363
|
+
}, componentsProps.additionalAvatar, {
|
|
21364
|
+
className: clsx(classes.avatar, (_componentsProps$addi = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi.className),
|
|
21365
|
+
style: _extends({
|
|
21327
21366
|
marginLeft
|
|
21328
|
-
},
|
|
21329
|
-
variant: variant,
|
|
21367
|
+
}, (_componentsProps$addi2 = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi2.style),
|
|
21330
21368
|
children: ["+", extraAvatars]
|
|
21331
|
-
}) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
21369
|
+
})) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
|
21332
21370
|
return /*#__PURE__*/React__namespace.cloneElement(child, {
|
|
21333
21371
|
className: clsx(child.props.className, classes.avatar),
|
|
21334
21372
|
style: _extends({
|
|
@@ -21362,6 +21400,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21362
21400
|
*/
|
|
21363
21401
|
className: PropTypes.string,
|
|
21364
21402
|
|
|
21403
|
+
/**
|
|
21404
|
+
* The props used for each slot inside the AvatarGroup.
|
|
21405
|
+
* @default {}
|
|
21406
|
+
*/
|
|
21407
|
+
componentsProps: PropTypes.shape({
|
|
21408
|
+
additionalAvatar: PropTypes.object
|
|
21409
|
+
}),
|
|
21410
|
+
|
|
21365
21411
|
/**
|
|
21366
21412
|
* Max avatars to show before +x.
|
|
21367
21413
|
* @default 5
|
|
@@ -21933,7 +21979,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21933
21979
|
componentsProps = {},
|
|
21934
21980
|
overlap: overlapProp = 'rectangular',
|
|
21935
21981
|
color: colorProp = 'default',
|
|
21936
|
-
invisible: invisibleProp,
|
|
21982
|
+
invisible: invisibleProp = false,
|
|
21937
21983
|
badgeContent: badgeContentProp,
|
|
21938
21984
|
showZero = false,
|
|
21939
21985
|
variant: variantProp = 'standard'
|
|
@@ -21947,7 +21993,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
21947
21993
|
});
|
|
21948
21994
|
let invisible = invisibleProp;
|
|
21949
21995
|
|
|
21950
|
-
if (invisibleProp
|
|
21996
|
+
if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
21951
21997
|
invisible = true;
|
|
21952
21998
|
}
|
|
21953
21999
|
|
|
@@ -22065,6 +22111,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
22065
22111
|
|
|
22066
22112
|
/**
|
|
22067
22113
|
* If `true`, the badge is invisible.
|
|
22114
|
+
* @default false
|
|
22068
22115
|
*/
|
|
22069
22116
|
invisible: PropTypes.bool,
|
|
22070
22117
|
|
|
@@ -25504,7 +25551,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
25504
25551
|
|
|
25505
25552
|
/**
|
|
25506
25553
|
* If `true`, the modal will not restore focus to previously focused element once
|
|
25507
|
-
* modal is hidden.
|
|
25554
|
+
* modal is hidden or unmounted.
|
|
25508
25555
|
* @default false
|
|
25509
25556
|
*/
|
|
25510
25557
|
disableRestoreFocus: PropTypes.bool,
|
|
@@ -27276,7 +27323,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27276
27323
|
function getFabUtilityClass(slot) {
|
|
27277
27324
|
return generateUtilityClass('MuiFab', slot);
|
|
27278
27325
|
}
|
|
27279
|
-
const fabClasses = generateUtilityClasses('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
27326
|
+
const fabClasses = generateUtilityClasses('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'info', 'error', 'warning', 'success']);
|
|
27280
27327
|
var fabClasses$1 = fabClasses;
|
|
27281
27328
|
|
|
27282
27329
|
const _excluded$1l = ["children", "className", "color", "component", "disabled", "disableFocusRipple", "focusVisibleClassName", "size", "variant"];
|
|
@@ -27289,7 +27336,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27289
27336
|
size
|
|
27290
27337
|
} = ownerState;
|
|
27291
27338
|
const slots = {
|
|
27292
|
-
root: ['root', variant, `size${capitalize(size)}`, color === 'inherit'
|
|
27339
|
+
root: ['root', variant, `size${capitalize(size)}`, color === 'inherit' ? 'colorInherit' : color]
|
|
27293
27340
|
};
|
|
27294
27341
|
return composeClasses(slots, getFabUtilityClass, classes);
|
|
27295
27342
|
};
|
|
@@ -27301,7 +27348,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27301
27348
|
const {
|
|
27302
27349
|
ownerState
|
|
27303
27350
|
} = props;
|
|
27304
|
-
return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.
|
|
27351
|
+
return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
|
|
27305
27352
|
}
|
|
27306
27353
|
})(({
|
|
27307
27354
|
theme,
|
|
@@ -27368,24 +27415,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27368
27415
|
}), ({
|
|
27369
27416
|
theme,
|
|
27370
27417
|
ownerState
|
|
27371
|
-
}) => _extends({}, ownerState.color
|
|
27372
|
-
color: theme.palette.
|
|
27373
|
-
backgroundColor: theme.palette.
|
|
27374
|
-
'&:hover': {
|
|
27375
|
-
backgroundColor: theme.palette.primary.dark,
|
|
27376
|
-
// Reset on touch devices, it doesn't add specificity
|
|
27377
|
-
'@media (hover: none)': {
|
|
27378
|
-
backgroundColor: theme.palette.primary.main
|
|
27379
|
-
}
|
|
27380
|
-
}
|
|
27381
|
-
}, ownerState.color === 'secondary' && {
|
|
27382
|
-
color: theme.palette.secondary.contrastText,
|
|
27383
|
-
backgroundColor: theme.palette.secondary.main,
|
|
27418
|
+
}) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
|
|
27419
|
+
color: theme.palette[ownerState.color].contrastText,
|
|
27420
|
+
backgroundColor: theme.palette[ownerState.color].main,
|
|
27384
27421
|
'&:hover': {
|
|
27385
|
-
backgroundColor: theme.palette.
|
|
27422
|
+
backgroundColor: theme.palette[ownerState.color].dark,
|
|
27386
27423
|
// Reset on touch devices, it doesn't add specificity
|
|
27387
27424
|
'@media (hover: none)': {
|
|
27388
|
-
backgroundColor: theme.palette.
|
|
27425
|
+
backgroundColor: theme.palette[ownerState.color].main
|
|
27389
27426
|
}
|
|
27390
27427
|
}
|
|
27391
27428
|
}));
|
|
@@ -27457,9 +27494,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
27457
27494
|
* The color of the component. It supports those theme colors that make sense for this component.
|
|
27458
27495
|
* @default 'default'
|
|
27459
27496
|
*/
|
|
27460
|
-
color: PropTypes
|
|
27461
|
-
/* @typescript-to-proptypes-ignore */
|
|
27462
|
-
.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']), PropTypes.string]),
|
|
27497
|
+
color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
27463
27498
|
|
|
27464
27499
|
/**
|
|
27465
27500
|
* The component used for the root node.
|
|
@@ -30509,7 +30544,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
30509
30544
|
const updateMatch = () => {
|
|
30510
30545
|
// Workaround Safari wrong implementation of matchMedia
|
|
30511
30546
|
// TODO can we remove it?
|
|
30512
|
-
// https://github.com/mui
|
|
30547
|
+
// https://github.com/mui/material-ui/pull/17315#issuecomment-528286677
|
|
30513
30548
|
if (active) {
|
|
30514
30549
|
setMatch(queryList.matches);
|
|
30515
30550
|
}
|
|
@@ -31537,7 +31572,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
31537
31572
|
* The variant to use.
|
|
31538
31573
|
* @default 'standard'
|
|
31539
31574
|
*/
|
|
31540
|
-
variant: PropTypes
|
|
31575
|
+
variant: PropTypes
|
|
31576
|
+
/* @typescript-to-proptypes-ignore */
|
|
31577
|
+
.oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])
|
|
31541
31578
|
} ;
|
|
31542
31579
|
var ImageList$1 = ImageList;
|
|
31543
31580
|
|
|
@@ -38494,7 +38531,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
38494
38531
|
|
|
38495
38532
|
const handleChange = event => {
|
|
38496
38533
|
let newValue = event.target.value === '' ? null : parseFloat(event.target.value); // Give mouse priority over keyboard
|
|
38497
|
-
// Fix https://github.com/mui
|
|
38534
|
+
// Fix https://github.com/mui/material-ui/issues/22827
|
|
38498
38535
|
|
|
38499
38536
|
if (hover !== -1) {
|
|
38500
38537
|
newValue = hover;
|
|
@@ -39081,6 +39118,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39081
39118
|
}
|
|
39082
39119
|
}, [autoFocus]);
|
|
39083
39120
|
React__namespace.useEffect(() => {
|
|
39121
|
+
if (!labelId) {
|
|
39122
|
+
return undefined;
|
|
39123
|
+
}
|
|
39124
|
+
|
|
39084
39125
|
const label = ownerDocument(displayRef.current).getElementById(labelId);
|
|
39085
39126
|
|
|
39086
39127
|
if (label) {
|
|
@@ -39177,7 +39218,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
39177
39218
|
if (onChange) {
|
|
39178
39219
|
// Redefine target to allow name and value to be read.
|
|
39179
39220
|
// This allows seamless integration with the most popular form libraries.
|
|
39180
|
-
// https://github.com/mui
|
|
39221
|
+
// https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
|
|
39181
39222
|
// Clone the event to not override `target` of the original event.
|
|
39182
39223
|
const nativeEvent = event.nativeEvent || event;
|
|
39183
39224
|
const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
@@ -40773,7 +40814,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
40773
40814
|
* The size of the slider.
|
|
40774
40815
|
* @default 'medium'
|
|
40775
40816
|
*/
|
|
40776
|
-
size: PropTypes
|
|
40817
|
+
size: PropTypes
|
|
40818
|
+
/* @typescript-to-proptypes-ignore */
|
|
40819
|
+
.oneOfType([PropTypes.oneOf(['small', 'medium']), PropTypes.string]),
|
|
40777
40820
|
|
|
40778
40821
|
/**
|
|
40779
40822
|
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
@@ -41255,7 +41298,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
41255
41298
|
onMouseEnter: handleMouseEnter,
|
|
41256
41299
|
onMouseLeave: handleMouseLeave,
|
|
41257
41300
|
ownerState: ownerState,
|
|
41258
|
-
ref: ref
|
|
41301
|
+
ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
41302
|
+
// See https://github.com/mui-org/material-ui/issues/29080
|
|
41303
|
+
,
|
|
41304
|
+
role: "presentation"
|
|
41259
41305
|
}, other, {
|
|
41260
41306
|
children: /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
|
|
41261
41307
|
appear: true,
|