@mui/material 5.2.5 → 5.2.6
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/avatarGroupClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +25 -0
- package/Badge/Badge.js +25 -8
- 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/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 +57 -0
- 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/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
- package/FormGroup/formGroupClasses.d.ts +10 -10
- 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/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/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 +15 -21
- 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 +24 -24
- 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.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Badge/Badge.js +30 -9
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +141 -58
- package/locale/index.d.ts +68 -67
- package/locale/index.js +86 -6
- package/modern/Badge/Badge.js +25 -8
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/index.js +1 -1
- package/modern/locale/index.js +86 -6
- package/node/Badge/Badge.js +25 -8
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/index.js +1 -1
- package/node/locale/index.js +88 -7
- package/package.json +3 -3
- 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 -55
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +27 -27
- 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.2.
|
|
1
|
+
/** @license MUI v5.2.6
|
|
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.
|
|
@@ -755,8 +755,9 @@
|
|
|
755
755
|
|
|
756
756
|
var fixedElements = /* #__PURE__ */new WeakMap();
|
|
757
757
|
var compat = function compat(element) {
|
|
758
|
-
if (element.type !== 'rule' || !element.parent || // .length indicates
|
|
759
|
-
|
|
758
|
+
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
759
|
+
// negative .length indicates that this rule has been already prefixed
|
|
760
|
+
element.length < 1) {
|
|
760
761
|
return;
|
|
761
762
|
}
|
|
762
763
|
|
|
@@ -2008,7 +2009,7 @@
|
|
|
2008
2009
|
|
|
2009
2010
|
var pkg = {
|
|
2010
2011
|
name: "@emotion/react",
|
|
2011
|
-
version: "11.7.
|
|
2012
|
+
version: "11.7.1",
|
|
2012
2013
|
main: "dist/emotion-react.cjs.js",
|
|
2013
2014
|
module: "dist/emotion-react.esm.js",
|
|
2014
2015
|
browser: {
|
|
@@ -2035,7 +2036,7 @@
|
|
|
2035
2036
|
},
|
|
2036
2037
|
dependencies: {
|
|
2037
2038
|
"@babel/runtime": "^7.13.10",
|
|
2038
|
-
"@emotion/cache": "^11.
|
|
2039
|
+
"@emotion/cache": "^11.7.1",
|
|
2039
2040
|
"@emotion/serialize": "^1.0.2",
|
|
2040
2041
|
"@emotion/sheet": "^1.1.0",
|
|
2041
2042
|
"@emotion/utils": "^1.0.0",
|
|
@@ -2056,8 +2057,8 @@
|
|
|
2056
2057
|
},
|
|
2057
2058
|
devDependencies: {
|
|
2058
2059
|
"@babel/core": "^7.13.10",
|
|
2059
|
-
"@emotion/css": "11.
|
|
2060
|
-
"@emotion/css-prettifier": "1.0.
|
|
2060
|
+
"@emotion/css": "11.7.1",
|
|
2061
|
+
"@emotion/css-prettifier": "1.0.1",
|
|
2061
2062
|
"@emotion/server": "11.4.0",
|
|
2062
2063
|
"@emotion/styled": "11.6.0",
|
|
2063
2064
|
"@types/react": "^16.9.11",
|
|
@@ -8390,7 +8391,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8390
8391
|
// only have an opinion about this when closed
|
|
8391
8392
|
'aria-activedescendant': popupOpen ? '' : null,
|
|
8392
8393
|
'aria-autocomplete': autoComplete ? 'both' : 'list',
|
|
8393
|
-
'aria-controls': listboxAvailable ? `${id}-listbox` :
|
|
8394
|
+
'aria-controls': listboxAvailable ? `${id}-listbox` : undefined,
|
|
8394
8395
|
// Disable browser's suggestion that might overlap with the popup.
|
|
8395
8396
|
// Handle autocomplete but not autofill.
|
|
8396
8397
|
autoComplete: 'off',
|
|
@@ -8630,25 +8631,70 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8630
8631
|
} ;
|
|
8631
8632
|
var BackdropUnstyled$1 = BackdropUnstyled;
|
|
8632
8633
|
|
|
8634
|
+
function useBadge(props) {
|
|
8635
|
+
const {
|
|
8636
|
+
anchorOrigin: anchorOriginProp = {
|
|
8637
|
+
vertical: 'top',
|
|
8638
|
+
horizontal: 'right'
|
|
8639
|
+
},
|
|
8640
|
+
badgeContent: badgeContentProp,
|
|
8641
|
+
invisible: invisibleProp,
|
|
8642
|
+
max: maxProp = 99,
|
|
8643
|
+
showZero = false,
|
|
8644
|
+
variant: variantProp = 'standard'
|
|
8645
|
+
} = props;
|
|
8646
|
+
const prevProps = usePreviousProps$1({
|
|
8647
|
+
anchorOrigin: anchorOriginProp,
|
|
8648
|
+
badgeContent: badgeContentProp,
|
|
8649
|
+
max: maxProp,
|
|
8650
|
+
variant: variantProp
|
|
8651
|
+
});
|
|
8652
|
+
let invisible = invisibleProp;
|
|
8653
|
+
|
|
8654
|
+
if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
8655
|
+
invisible = true;
|
|
8656
|
+
}
|
|
8657
|
+
|
|
8658
|
+
const {
|
|
8659
|
+
anchorOrigin = anchorOriginProp,
|
|
8660
|
+
badgeContent,
|
|
8661
|
+
max = maxProp,
|
|
8662
|
+
variant = variantProp
|
|
8663
|
+
} = invisible ? prevProps : props;
|
|
8664
|
+
let displayValue = '';
|
|
8665
|
+
|
|
8666
|
+
if (variant !== 'dot') {
|
|
8667
|
+
displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
|
|
8668
|
+
}
|
|
8669
|
+
|
|
8670
|
+
return {
|
|
8671
|
+
anchorOrigin,
|
|
8672
|
+
badgeContent,
|
|
8673
|
+
invisible,
|
|
8674
|
+
max,
|
|
8675
|
+
variant,
|
|
8676
|
+
displayValue
|
|
8677
|
+
};
|
|
8678
|
+
}
|
|
8679
|
+
|
|
8633
8680
|
function getBadgeUtilityClass(slot) {
|
|
8634
8681
|
return generateUtilityClass('MuiBadge', slot);
|
|
8635
8682
|
}
|
|
8636
|
-
const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', '
|
|
8683
|
+
const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeft', 'anchorOriginTopRight', 'anchorOriginBottomLeft', 'anchorOriginBottomRight', 'invisible']);
|
|
8637
8684
|
var badgeUnstyledClasses$1 = badgeUnstyledClasses;
|
|
8638
8685
|
|
|
8639
|
-
const _excluded$2l = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "
|
|
8686
|
+
const _excluded$2l = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero", "variant"];
|
|
8640
8687
|
|
|
8641
8688
|
const useUtilityClasses$1S = ownerState => {
|
|
8642
8689
|
const {
|
|
8643
8690
|
variant,
|
|
8644
8691
|
anchorOrigin,
|
|
8645
|
-
overlap,
|
|
8646
8692
|
invisible,
|
|
8647
8693
|
classes
|
|
8648
8694
|
} = ownerState;
|
|
8649
8695
|
const slots = {
|
|
8650
8696
|
root: ['root'],
|
|
8651
|
-
badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}
|
|
8697
|
+
badge: ['badge', variant, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, invisible && 'invisible']
|
|
8652
8698
|
};
|
|
8653
8699
|
return composeClasses(slots, getBadgeUtilityClass, classes);
|
|
8654
8700
|
};
|
|
@@ -8660,40 +8706,29 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8660
8706
|
horizontal: 'right'
|
|
8661
8707
|
},
|
|
8662
8708
|
classes: classesProp,
|
|
8663
|
-
badgeContent: badgeContentProp,
|
|
8664
8709
|
component,
|
|
8665
8710
|
children,
|
|
8666
8711
|
className,
|
|
8667
8712
|
components = {},
|
|
8668
8713
|
componentsProps = {},
|
|
8669
|
-
invisible: invisibleProp,
|
|
8670
8714
|
max: maxProp = 99,
|
|
8671
|
-
overlap: overlapProp = 'rectangular',
|
|
8672
8715
|
showZero = false,
|
|
8673
8716
|
variant: variantProp = 'standard'
|
|
8674
8717
|
} = props,
|
|
8675
8718
|
other = _objectWithoutPropertiesLoose(props, _excluded$2l);
|
|
8676
8719
|
|
|
8677
|
-
const
|
|
8720
|
+
const {
|
|
8721
|
+
anchorOrigin,
|
|
8722
|
+
badgeContent,
|
|
8723
|
+
max,
|
|
8724
|
+
variant,
|
|
8725
|
+
displayValue,
|
|
8726
|
+
invisible
|
|
8727
|
+
} = useBadge(_extends({}, props, {
|
|
8678
8728
|
anchorOrigin: anchorOriginProp,
|
|
8679
|
-
badgeContent: badgeContentProp,
|
|
8680
8729
|
max: maxProp,
|
|
8681
|
-
overlap: overlapProp,
|
|
8682
8730
|
variant: variantProp
|
|
8683
|
-
});
|
|
8684
|
-
let invisible = invisibleProp;
|
|
8685
|
-
|
|
8686
|
-
if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
8687
|
-
invisible = true;
|
|
8688
|
-
}
|
|
8689
|
-
|
|
8690
|
-
const {
|
|
8691
|
-
anchorOrigin = anchorOriginProp,
|
|
8692
|
-
badgeContent,
|
|
8693
|
-
max = maxProp,
|
|
8694
|
-
overlap = overlapProp,
|
|
8695
|
-
variant = variantProp
|
|
8696
|
-
} = invisible ? prevProps : props;
|
|
8731
|
+
}));
|
|
8697
8732
|
|
|
8698
8733
|
const ownerState = _extends({}, props, {
|
|
8699
8734
|
anchorOrigin,
|
|
@@ -8701,16 +8736,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8701
8736
|
classes: classesProp,
|
|
8702
8737
|
invisible,
|
|
8703
8738
|
max,
|
|
8704
|
-
|
|
8705
|
-
|
|
8739
|
+
variant,
|
|
8740
|
+
showZero
|
|
8706
8741
|
});
|
|
8707
8742
|
|
|
8708
|
-
let displayValue = '';
|
|
8709
|
-
|
|
8710
|
-
if (variant !== 'dot') {
|
|
8711
|
-
displayValue = badgeContent > max ? `${max}+` : badgeContent;
|
|
8712
|
-
}
|
|
8713
|
-
|
|
8714
8743
|
const classes = useUtilityClasses$1S(ownerState);
|
|
8715
8744
|
const Root = component || components.Root || 'span';
|
|
8716
8745
|
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
|
|
@@ -8799,12 +8828,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8799
8828
|
*/
|
|
8800
8829
|
max: propTypes.number,
|
|
8801
8830
|
|
|
8802
|
-
/**
|
|
8803
|
-
* Wrapped shape the badge should overlap.
|
|
8804
|
-
* @default 'rectangular'
|
|
8805
|
-
*/
|
|
8806
|
-
overlap: propTypes.oneOf(['circular', 'rectangular']),
|
|
8807
|
-
|
|
8808
8831
|
/**
|
|
8809
8832
|
* Controls whether the badge is hidden when `badgeContent` is zero.
|
|
8810
8833
|
* @default false
|
|
@@ -9847,7 +9870,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9847
9870
|
if (rows) {
|
|
9848
9871
|
{
|
|
9849
9872
|
if (minRows || maxRows) {
|
|
9850
|
-
console.warn('
|
|
9873
|
+
console.warn('MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set.');
|
|
9851
9874
|
}
|
|
9852
9875
|
}
|
|
9853
9876
|
|
|
@@ -23764,18 +23787,21 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23764
23787
|
} ;
|
|
23765
23788
|
var Backdrop$1 = Backdrop;
|
|
23766
23789
|
|
|
23767
|
-
const _excluded$1K = ["component", "components", "componentsProps", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
23768
|
-
const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning'
|
|
23790
|
+
const _excluded$1K = ["anchorOrigin", "component", "components", "componentsProps", "overlap", "color", "invisible", "badgeContent", "showZero", "variant"];
|
|
23791
|
+
const badgeClasses = _extends({}, badgeUnstyledClasses$1, generateUtilityClasses('MuiBadge', ['colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
|
|
23792
|
+
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']));
|
|
23769
23793
|
const RADIUS_STANDARD = 10;
|
|
23770
23794
|
const RADIUS_DOT = 4;
|
|
23771
23795
|
|
|
23772
23796
|
const extendUtilityClasses$2 = ownerState => {
|
|
23773
23797
|
const {
|
|
23774
23798
|
color,
|
|
23799
|
+
anchorOrigin,
|
|
23800
|
+
overlap,
|
|
23775
23801
|
classes = {}
|
|
23776
23802
|
} = ownerState;
|
|
23777
23803
|
return _extends({}, classes, {
|
|
23778
|
-
badge: clsx(classes.badge, color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
|
|
23804
|
+
badge: clsx(classes.badge, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]])
|
|
23779
23805
|
});
|
|
23780
23806
|
};
|
|
23781
23807
|
|
|
@@ -23917,9 +23943,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23917
23943
|
});
|
|
23918
23944
|
|
|
23919
23945
|
const {
|
|
23946
|
+
anchorOrigin: anchorOriginProp = {
|
|
23947
|
+
vertical: 'top',
|
|
23948
|
+
horizontal: 'right'
|
|
23949
|
+
},
|
|
23920
23950
|
component = 'span',
|
|
23921
23951
|
components = {},
|
|
23922
23952
|
componentsProps = {},
|
|
23953
|
+
overlap: overlapProp = 'rectangular',
|
|
23923
23954
|
color: colorProp = 'default',
|
|
23924
23955
|
invisible: invisibleProp,
|
|
23925
23956
|
badgeContent: badgeContentProp,
|
|
@@ -23929,7 +23960,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23929
23960
|
other = _objectWithoutPropertiesLoose(props, _excluded$1K);
|
|
23930
23961
|
|
|
23931
23962
|
const prevProps = usePreviousProps$1({
|
|
23932
|
-
|
|
23963
|
+
anchorOrigin: anchorOriginProp,
|
|
23964
|
+
color: colorProp,
|
|
23965
|
+
overlap: overlapProp
|
|
23933
23966
|
});
|
|
23934
23967
|
let invisible = invisibleProp;
|
|
23935
23968
|
|
|
@@ -23938,16 +23971,21 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23938
23971
|
}
|
|
23939
23972
|
|
|
23940
23973
|
const {
|
|
23941
|
-
color = colorProp
|
|
23974
|
+
color = colorProp,
|
|
23975
|
+
overlap = overlapProp,
|
|
23976
|
+
anchorOrigin = anchorOriginProp
|
|
23942
23977
|
} = invisible ? prevProps : props;
|
|
23943
23978
|
|
|
23944
23979
|
const ownerState = _extends({}, props, {
|
|
23980
|
+
anchorOrigin,
|
|
23945
23981
|
invisible,
|
|
23946
|
-
color
|
|
23982
|
+
color,
|
|
23983
|
+
overlap
|
|
23947
23984
|
});
|
|
23948
23985
|
|
|
23949
23986
|
const classes = extendUtilityClasses$2(ownerState);
|
|
23950
23987
|
return /*#__PURE__*/jsxRuntime_1(BadgeUnstyled$1, _extends({
|
|
23988
|
+
anchorOrigin: anchorOrigin,
|
|
23951
23989
|
invisible: invisibleProp,
|
|
23952
23990
|
badgeContent: badgeContentProp,
|
|
23953
23991
|
showZero: showZero,
|
|
@@ -23961,12 +23999,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
23961
23999
|
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps(components.Root) && {
|
|
23962
24000
|
as: component,
|
|
23963
24001
|
ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState, {
|
|
23964
|
-
color
|
|
24002
|
+
color,
|
|
24003
|
+
overlap
|
|
23965
24004
|
})
|
|
23966
24005
|
}),
|
|
23967
24006
|
badge: _extends({}, componentsProps.badge, shouldSpreadAdditionalProps(components.Badge) && {
|
|
23968
24007
|
ownerState: _extends({}, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.ownerState, {
|
|
23969
|
-
color
|
|
24008
|
+
color,
|
|
24009
|
+
overlap
|
|
23970
24010
|
})
|
|
23971
24011
|
})
|
|
23972
24012
|
},
|
|
@@ -52117,6 +52157,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
|
|
|
52117
52157
|
exports.unstable_useId = useId;
|
|
52118
52158
|
exports.unsupportedProp = unsupportedProp;
|
|
52119
52159
|
exports.useAutocomplete = useAutocomplete;
|
|
52160
|
+
exports.useBadge = useBadge;
|
|
52120
52161
|
exports.useButton = useButton;
|
|
52121
52162
|
exports.useControlled = useControlled;
|
|
52122
52163
|
exports.useEventCallback = useEventCallback;
|