@mui/material 5.9.1 → 5.10.0
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/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +1 -1
- 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/Button.js +8 -3
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/TouchRipple.js +1 -1
- 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 +200 -9
- 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/Chip.js +5 -7
- package/Chip/chipClasses.d.ts +88 -80
- package/Chip/chipClasses.js +1 -1
- 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/Dialog.js +2 -1
- 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 +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.d.ts +7 -1
- package/FormHelperText/FormHelperText.js +3 -1
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/Grid.d.ts +1 -1
- package/Grid/Grid.js +71 -4
- 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/ImageListItem.js +4 -4
- 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/InputBase.js +3 -2
- package/InputBase/inputBaseClasses.d.ts +46 -44
- package/InputBase/inputBaseClasses.js +1 -1
- 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/Modal/Modal.d.ts +2 -1
- package/Modal/Modal.js +2 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponent.d.ts +4 -0
- 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 +24 -24
- package/Popper/Popper.js +24 -0
- package/README.md +5 -4
- 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/SelectInput.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/Skeleton.d.ts +1 -1
- package/Skeleton/Skeleton.js +3 -1
- package/Skeleton/skeletonClasses.d.ts +26 -24
- package/Skeleton/skeletonClasses.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Stack/Stack.js +15 -2
- 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/StepLabel.js +1 -1
- 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 +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/TableCell.d.ts +4 -1
- package/TableCell/TableCell.js +3 -1
- 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/Tabs.d.ts +7 -1
- package/Tabs/Tabs.js +3 -1
- 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/Tooltip.js +6 -7
- 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/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Badge/Badge.js +1 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Button/Button.js +4 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Chip/Chip.js +4 -6
- package/legacy/Chip/chipClasses.js +1 -1
- package/legacy/Dialog/Dialog.js +2 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -1
- package/legacy/Grid/Grid.js +76 -12
- package/legacy/ImageListItem/ImageListItem.js +4 -4
- package/legacy/InputBase/InputBase.js +3 -2
- package/legacy/InputBase/inputBaseClasses.js +1 -1
- package/legacy/Modal/Modal.js +2 -1
- package/legacy/Popper/Popper.js +24 -0
- package/legacy/Select/SelectInput.js +1 -1
- package/legacy/Skeleton/Skeleton.js +3 -1
- package/legacy/Skeleton/skeletonClasses.js +1 -1
- package/legacy/Stack/Stack.js +15 -2
- package/legacy/StepLabel/StepLabel.js +1 -1
- package/legacy/TableCell/TableCell.js +3 -1
- package/legacy/Tabs/Tabs.js +3 -1
- package/legacy/Tooltip/Tooltip.js +6 -7
- package/legacy/index.js +1 -1
- package/legacy/styles/createTheme.js +5 -0
- package/legacy/useScrollTrigger/useScrollTrigger.js +6 -2
- package/locale/index.d.ts +71 -71
- package/modern/Badge/Badge.js +1 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Button/Button.js +8 -3
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Chip/Chip.js +5 -7
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Dialog/Dialog.js +2 -1
- package/modern/FormHelperText/FormHelperText.js +3 -1
- package/modern/Grid/Grid.js +67 -4
- package/modern/ImageListItem/ImageListItem.js +4 -4
- package/modern/InputBase/InputBase.js +3 -2
- package/modern/InputBase/inputBaseClasses.js +1 -1
- package/modern/Modal/Modal.js +2 -1
- package/modern/Popper/Popper.js +24 -0
- package/modern/Select/SelectInput.js +1 -1
- package/modern/Skeleton/Skeleton.js +3 -1
- package/modern/Skeleton/skeletonClasses.js +1 -1
- package/modern/Stack/Stack.js +15 -2
- package/modern/StepLabel/StepLabel.js +1 -1
- package/modern/TableCell/TableCell.js +3 -1
- package/modern/Tabs/Tabs.js +3 -1
- package/modern/Tooltip/Tooltip.js +6 -7
- package/modern/index.js +1 -1
- package/modern/styles/createTheme.js +6 -0
- package/modern/useScrollTrigger/useScrollTrigger.js +6 -2
- package/node/Badge/Badge.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Button/Button.js +10 -3
- package/node/ButtonBase/TouchRipple.js +1 -1
- package/node/Chip/Chip.js +5 -7
- package/node/Chip/chipClasses.js +1 -1
- package/node/Dialog/Dialog.js +2 -1
- package/node/FormHelperText/FormHelperText.js +3 -1
- package/node/Grid/Grid.js +71 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/InputBase/InputBase.js +3 -2
- package/node/InputBase/inputBaseClasses.js +1 -1
- package/node/Modal/Modal.js +2 -1
- package/node/Popper/Popper.js +24 -0
- package/node/Select/SelectInput.js +1 -1
- package/node/Skeleton/Skeleton.js +3 -1
- package/node/Skeleton/skeletonClasses.js +1 -1
- package/node/Stack/Stack.js +14 -1
- package/node/StepLabel/StepLabel.js +1 -1
- package/node/TableCell/TableCell.js +3 -1
- package/node/Tabs/Tabs.js +3 -1
- package/node/Tooltip/Tooltip.js +6 -7
- package/node/index.js +1 -1
- package/node/styles/createTheme.js +6 -0
- package/node/useScrollTrigger/useScrollTrigger.js +6 -2
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/createTheme.js +6 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +288 -74
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useScrollTrigger/useScrollTrigger.js +6 -2
- 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,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.
|
|
1
|
+
/** @license MUI v5.10.0
|
|
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.
|
|
@@ -4738,7 +4738,15 @@
|
|
|
4738
4738
|
return stylesFactory(...styles);
|
|
4739
4739
|
};
|
|
4740
4740
|
}
|
|
4741
|
-
}
|
|
4741
|
+
} // eslint-disable-next-line @typescript-eslint/naming-convention
|
|
4742
|
+
|
|
4743
|
+
const internal_processStyles = (tag, processor) => {
|
|
4744
|
+
// Emotion attaches all the styles as `__emotion_styles`.
|
|
4745
|
+
// Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186
|
|
4746
|
+
if (Array.isArray(tag.__emotion_styles)) {
|
|
4747
|
+
tag.__emotion_styles = processor(tag.__emotion_styles);
|
|
4748
|
+
}
|
|
4749
|
+
};
|
|
4742
4750
|
|
|
4743
4751
|
const responsivePropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) ;
|
|
4744
4752
|
var responsivePropType$1 = responsivePropType;
|
|
@@ -5575,11 +5583,11 @@
|
|
|
5575
5583
|
slot => {
|
|
5576
5584
|
output[slot] = slots[slot].reduce((acc, key) => {
|
|
5577
5585
|
if (key) {
|
|
5586
|
+
acc.push(getUtilityClass(key));
|
|
5587
|
+
|
|
5578
5588
|
if (classes && classes[key]) {
|
|
5579
5589
|
acc.push(classes[key]);
|
|
5580
5590
|
}
|
|
5581
|
-
|
|
5582
|
-
acc.push(getUtilityClass(key));
|
|
5583
5591
|
}
|
|
5584
5592
|
|
|
5585
5593
|
return acc;
|
|
@@ -5720,6 +5728,11 @@
|
|
|
5720
5728
|
return acc;
|
|
5721
5729
|
}, style);
|
|
5722
5730
|
}
|
|
5731
|
+
function mergeBreakpointsInOrder(breakpointsInput, ...styles) {
|
|
5732
|
+
const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);
|
|
5733
|
+
const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});
|
|
5734
|
+
return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);
|
|
5735
|
+
} // compute base for responsive values; e.g.,
|
|
5723
5736
|
// [1,2,3] => {xs: true, sm: true, md: true}
|
|
5724
5737
|
// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
|
|
5725
5738
|
|
|
@@ -6867,7 +6880,9 @@
|
|
|
6867
6880
|
generateClassName,
|
|
6868
6881
|
styleFunctionSx = defaultStyleFunctionSx
|
|
6869
6882
|
} = options;
|
|
6870
|
-
const BoxRoot = styled$3('div'
|
|
6883
|
+
const BoxRoot = styled$3('div', {
|
|
6884
|
+
shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
|
|
6885
|
+
})(styleFunctionSx);
|
|
6871
6886
|
const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
|
|
6872
6887
|
const theme = useTheme$1(defaultTheme);
|
|
6873
6888
|
|
|
@@ -6918,11 +6933,19 @@
|
|
|
6918
6933
|
}
|
|
6919
6934
|
|
|
6920
6935
|
const _excluded$2i = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6921
|
-
_excluded2$
|
|
6936
|
+
_excluded2$d = ["theme"],
|
|
6922
6937
|
_excluded3$1 = ["theme"];
|
|
6923
6938
|
|
|
6924
6939
|
function isEmpty$2(obj) {
|
|
6925
6940
|
return Object.keys(obj).length === 0;
|
|
6941
|
+
} // https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40
|
|
6942
|
+
|
|
6943
|
+
|
|
6944
|
+
function isStringTag(tag) {
|
|
6945
|
+
return typeof tag === 'string' && // 96 is one less than the char code
|
|
6946
|
+
// for "a" so this is checking that
|
|
6947
|
+
// it's a lowercase character
|
|
6948
|
+
tag.charCodeAt(0) > 96;
|
|
6926
6949
|
}
|
|
6927
6950
|
|
|
6928
6951
|
const getStyleOverrides = (name, theme) => {
|
|
@@ -6992,7 +7015,19 @@
|
|
|
6992
7015
|
slotShouldForwardProp = shouldForwardProp,
|
|
6993
7016
|
styleFunctionSx = defaultStyleFunctionSx
|
|
6994
7017
|
} = input;
|
|
7018
|
+
|
|
7019
|
+
const systemSx = props => {
|
|
7020
|
+
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7021
|
+
return styleFunctionSx(_extends({}, props, {
|
|
7022
|
+
theme
|
|
7023
|
+
}));
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
systemSx.__mui_systemSx = true;
|
|
6995
7027
|
return (tag, inputOptions = {}) => {
|
|
7028
|
+
// Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.
|
|
7029
|
+
internal_processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));
|
|
7030
|
+
|
|
6996
7031
|
const {
|
|
6997
7032
|
name: componentName,
|
|
6998
7033
|
slot: componentSlot,
|
|
@@ -7020,6 +7055,9 @@
|
|
|
7020
7055
|
} else if (componentSlot) {
|
|
7021
7056
|
// any other slot specified
|
|
7022
7057
|
shouldForwardPropOption = slotShouldForwardProp;
|
|
7058
|
+
} else if (isStringTag(tag)) {
|
|
7059
|
+
// for string (html) tag, preserve the behavior in emotion & styled-components.
|
|
7060
|
+
shouldForwardPropOption = undefined;
|
|
7023
7061
|
}
|
|
7024
7062
|
|
|
7025
7063
|
const defaultStyledResolver = styled$3(tag, _extends({
|
|
@@ -7032,12 +7070,11 @@
|
|
|
7032
7070
|
// On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7033
7071
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7034
7072
|
// which are basically components used as a selectors.
|
|
7035
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
7036
7073
|
return typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg ? _ref => {
|
|
7037
7074
|
let {
|
|
7038
7075
|
theme: themeInput
|
|
7039
7076
|
} = _ref,
|
|
7040
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded2$
|
|
7077
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
|
|
7041
7078
|
|
|
7042
7079
|
return stylesArg(_extends({
|
|
7043
7080
|
theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
|
|
@@ -7073,12 +7110,7 @@
|
|
|
7073
7110
|
}
|
|
7074
7111
|
|
|
7075
7112
|
if (!skipSx) {
|
|
7076
|
-
expressionsWithDefaultTheme.push(
|
|
7077
|
-
const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
|
|
7078
|
-
return styleFunctionSx(_extends({}, props, {
|
|
7079
|
-
theme
|
|
7080
|
-
}));
|
|
7081
|
-
});
|
|
7113
|
+
expressionsWithDefaultTheme.push(systemSx);
|
|
7082
7114
|
}
|
|
7083
7115
|
|
|
7084
7116
|
const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;
|
|
@@ -7091,7 +7123,6 @@
|
|
|
7091
7123
|
} else if (typeof styleArg === 'function' && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
7092
7124
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
7093
7125
|
// which are basically components used as a selectors.
|
|
7094
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
7095
7126
|
styleArg.__emotion_real !== styleArg) {
|
|
7096
7127
|
// If the type is function, we need to define the default theme.
|
|
7097
7128
|
transformedStyleArg = _ref2 => {
|
|
@@ -8080,7 +8111,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8080
8111
|
})();
|
|
8081
8112
|
|
|
8082
8113
|
if (key === resolvedDefaultColorScheme) {
|
|
8083
|
-
defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
|
|
8114
|
+
defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}="${key}"]`] = css;
|
|
8084
8115
|
} else {
|
|
8085
8116
|
otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
|
|
8086
8117
|
}
|
|
@@ -8292,7 +8323,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8292
8323
|
defaultTheme: defaultTheme$5
|
|
8293
8324
|
});
|
|
8294
8325
|
|
|
8295
|
-
const useUtilityClasses$
|
|
8326
|
+
const useUtilityClasses$1Q = (ownerState, componentName) => {
|
|
8296
8327
|
const getContainerUtilityClass = slot => {
|
|
8297
8328
|
return generateUtilityClass(componentName, slot);
|
|
8298
8329
|
};
|
|
@@ -8385,7 +8416,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8385
8416
|
}); // @ts-ignore module augmentation fails if custom breakpoints are used
|
|
8386
8417
|
|
|
8387
8418
|
|
|
8388
|
-
const classes = useUtilityClasses$
|
|
8419
|
+
const classes = useUtilityClasses$1Q(ownerState, componentName);
|
|
8389
8420
|
return (
|
|
8390
8421
|
/*#__PURE__*/
|
|
8391
8422
|
// @ts-ignore theme is injected by the styled util
|
|
@@ -8817,7 +8848,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8817
8848
|
}
|
|
8818
8849
|
|
|
8819
8850
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
8820
|
-
_excluded2$
|
|
8851
|
+
_excluded2$c = ["type", "mode"];
|
|
8821
8852
|
function adaptV4Theme(inputTheme) {
|
|
8822
8853
|
{
|
|
8823
8854
|
console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
|
|
@@ -8882,7 +8913,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8882
8913
|
type: typeInput,
|
|
8883
8914
|
mode: modeInput
|
|
8884
8915
|
} = palette,
|
|
8885
|
-
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$
|
|
8916
|
+
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$c);
|
|
8886
8917
|
|
|
8887
8918
|
const finalMode = modeInput || typeInput || 'light';
|
|
8888
8919
|
theme.palette = _extends({
|
|
@@ -10159,7 +10190,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
10159
10190
|
|
|
10160
10191
|
const _excluded$2c = ["badgeContent", "component", "children", "components", "componentsProps", "invisible", "max", "showZero"];
|
|
10161
10192
|
|
|
10162
|
-
const useUtilityClasses$
|
|
10193
|
+
const useUtilityClasses$1P = ownerState => {
|
|
10163
10194
|
const {
|
|
10164
10195
|
invisible
|
|
10165
10196
|
} = ownerState;
|
|
@@ -10208,7 +10239,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
10208
10239
|
showZero
|
|
10209
10240
|
});
|
|
10210
10241
|
|
|
10211
|
-
const classes = useUtilityClasses$
|
|
10242
|
+
const classes = useUtilityClasses$1P(ownerState);
|
|
10212
10243
|
const Root = component || components.Root || 'span';
|
|
10213
10244
|
const rootProps = useSlotProps({
|
|
10214
10245
|
elementType: Root,
|
|
@@ -12527,8 +12558,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12527
12558
|
|
|
12528
12559
|
var Portal$1 = Portal;
|
|
12529
12560
|
|
|
12530
|
-
|
|
12531
|
-
|
|
12561
|
+
function getPopperUnstyledUtilityClass(slot) {
|
|
12562
|
+
return generateUtilityClass('MuiPopperUnstyled', slot);
|
|
12563
|
+
}
|
|
12564
|
+
generateUtilityClasses('MuiPopperUnstyled', ['root']);
|
|
12565
|
+
|
|
12566
|
+
const _excluded$2b = ["anchorEl", "children", "component", "components", "componentsProps", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
|
|
12567
|
+
_excluded2$b = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
|
|
12532
12568
|
|
|
12533
12569
|
function flipPlacement(placement, direction) {
|
|
12534
12570
|
if (direction === 'ltr') {
|
|
@@ -12557,17 +12593,30 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12557
12593
|
return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
12558
12594
|
}
|
|
12559
12595
|
|
|
12596
|
+
const useUtilityClasses$1O = () => {
|
|
12597
|
+
const slots = {
|
|
12598
|
+
root: ['root']
|
|
12599
|
+
};
|
|
12600
|
+
return composeClasses(slots, getPopperUnstyledUtilityClass, {});
|
|
12601
|
+
};
|
|
12602
|
+
|
|
12560
12603
|
const defaultPopperOptions = {};
|
|
12561
12604
|
/* eslint-disable react/prop-types */
|
|
12562
12605
|
|
|
12563
12606
|
const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, ref) {
|
|
12607
|
+
var _ref;
|
|
12608
|
+
|
|
12564
12609
|
const {
|
|
12565
12610
|
anchorEl,
|
|
12566
12611
|
children,
|
|
12612
|
+
component,
|
|
12613
|
+
components = {},
|
|
12614
|
+
componentsProps = {},
|
|
12567
12615
|
direction,
|
|
12568
12616
|
disablePortal,
|
|
12569
12617
|
modifiers,
|
|
12570
12618
|
open,
|
|
12619
|
+
ownerState,
|
|
12571
12620
|
placement: initialPlacement,
|
|
12572
12621
|
popperOptions,
|
|
12573
12622
|
popperRef: popperRefProp,
|
|
@@ -12665,10 +12714,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12665
12714
|
childProps.TransitionProps = TransitionProps;
|
|
12666
12715
|
}
|
|
12667
12716
|
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12717
|
+
const classes = useUtilityClasses$1O();
|
|
12718
|
+
const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'div';
|
|
12719
|
+
const rootProps = useSlotProps({
|
|
12720
|
+
elementType: Root,
|
|
12721
|
+
externalSlotProps: componentsProps.root,
|
|
12722
|
+
externalForwardedProps: other,
|
|
12723
|
+
additionalProps: {
|
|
12724
|
+
role: 'tooltip',
|
|
12725
|
+
ref: ownRef
|
|
12726
|
+
},
|
|
12727
|
+
ownerState: _extends({}, props, ownerState),
|
|
12728
|
+
className: classes.root
|
|
12729
|
+
});
|
|
12730
|
+
return /*#__PURE__*/jsxRuntime_1(Root, _extends({}, rootProps, {
|
|
12672
12731
|
children: typeof children === 'function' ? children(childProps) : children
|
|
12673
12732
|
}));
|
|
12674
12733
|
});
|
|
@@ -12694,7 +12753,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12694
12753
|
style,
|
|
12695
12754
|
transition = false
|
|
12696
12755
|
} = props,
|
|
12697
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
12756
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$b);
|
|
12698
12757
|
|
|
12699
12758
|
const [exited, setExited] = React__namespace.useState(true);
|
|
12700
12759
|
|
|
@@ -12784,6 +12843,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12784
12843
|
/* @typescript-to-proptypes-ignore */
|
|
12785
12844
|
.oneOfType([PropTypes.node, PropTypes.func]),
|
|
12786
12845
|
|
|
12846
|
+
/**
|
|
12847
|
+
* The components used for each slot inside the Popper.
|
|
12848
|
+
* Either a string to use a HTML element or a component.
|
|
12849
|
+
* @default {}
|
|
12850
|
+
*/
|
|
12851
|
+
components: PropTypes.shape({
|
|
12852
|
+
Root: PropTypes.elementType
|
|
12853
|
+
}),
|
|
12854
|
+
|
|
12855
|
+
/**
|
|
12856
|
+
* The props used for each slot inside the Popper.
|
|
12857
|
+
* @default {}
|
|
12858
|
+
*/
|
|
12859
|
+
componentsProps: PropTypes.shape({
|
|
12860
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
12861
|
+
}),
|
|
12862
|
+
|
|
12787
12863
|
/**
|
|
12788
12864
|
* An HTML element or function that returns one.
|
|
12789
12865
|
* The `container` will have the portal children appended to it.
|
|
@@ -16007,6 +16083,11 @@ const theme2 = createTheme({ palette: {
|
|
|
16007
16083
|
} = options,
|
|
16008
16084
|
other = _objectWithoutPropertiesLoose(options, _excluded$24);
|
|
16009
16085
|
|
|
16086
|
+
if (options.vars) {
|
|
16087
|
+
throw new Error(`MUI: \`vars\` is a private field used for CSS variables support.
|
|
16088
|
+
Please use another name.` );
|
|
16089
|
+
}
|
|
16090
|
+
|
|
16010
16091
|
const palette = createPalette(paletteInput);
|
|
16011
16092
|
const systemTheme = createTheme$1(options);
|
|
16012
16093
|
let muiTheme = deepmerge(systemTheme, {
|
|
@@ -16501,7 +16582,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16501
16582
|
var Paper$1 = Paper;
|
|
16502
16583
|
|
|
16503
16584
|
const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
|
|
16504
|
-
_excluded2$
|
|
16585
|
+
_excluded2$a = ["palette"];
|
|
16505
16586
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
16506
16587
|
if (index === 0) {
|
|
16507
16588
|
return undefined;
|
|
@@ -16541,7 +16622,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16541
16622
|
{
|
|
16542
16623
|
palette: lightPalette
|
|
16543
16624
|
} = _createThemeWithoutVa,
|
|
16544
|
-
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$
|
|
16625
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$a);
|
|
16545
16626
|
|
|
16546
16627
|
const {
|
|
16547
16628
|
palette: darkPalette
|
|
@@ -17057,6 +17138,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17057
17138
|
|
|
17058
17139
|
var TransitionGroupContext = React__default["default"].createContext(null);
|
|
17059
17140
|
|
|
17141
|
+
var forceReflow = function forceReflow(node) {
|
|
17142
|
+
return node.scrollTop;
|
|
17143
|
+
};
|
|
17144
|
+
|
|
17060
17145
|
var UNMOUNTED = 'unmounted';
|
|
17061
17146
|
var EXITED = 'exited';
|
|
17062
17147
|
var ENTERING = 'entering';
|
|
@@ -17276,6 +17361,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17276
17361
|
this.cancelNextCallback();
|
|
17277
17362
|
|
|
17278
17363
|
if (nextStatus === ENTERING) {
|
|
17364
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
17365
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default["default"].findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
|
|
17366
|
+
// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
|
|
17367
|
+
// To make the animation happen, we have to separate each rendering and avoid being processed as batched.
|
|
17368
|
+
|
|
17369
|
+
if (node) forceReflow(node);
|
|
17370
|
+
}
|
|
17371
|
+
|
|
17279
17372
|
this.performEnter(mounting);
|
|
17280
17373
|
} else {
|
|
17281
17374
|
this.performExit();
|
|
@@ -19276,7 +19369,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19276
19369
|
stop
|
|
19277
19370
|
}), [pulsate, start, stop]);
|
|
19278
19371
|
return /*#__PURE__*/jsxRuntime_1(TouchRippleRoot, _extends({
|
|
19279
|
-
className: clsx(
|
|
19372
|
+
className: clsx(touchRippleClasses$1.root, classes.root, className),
|
|
19280
19373
|
ref: container
|
|
19281
19374
|
}, other, {
|
|
19282
19375
|
children: /*#__PURE__*/jsxRuntime_1(TransitionGroup$1, {
|
|
@@ -21094,6 +21187,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21094
21187
|
/* @typescript-to-proptypes-ignore */
|
|
21095
21188
|
.oneOfType([PropTypes.node, PropTypes.func]),
|
|
21096
21189
|
|
|
21190
|
+
/**
|
|
21191
|
+
* @ignore
|
|
21192
|
+
*/
|
|
21193
|
+
component: PropTypes
|
|
21194
|
+
/* @typescript-to-proptypes-ignore */
|
|
21195
|
+
.elementType,
|
|
21196
|
+
|
|
21197
|
+
/**
|
|
21198
|
+
* The components used for each slot inside the Popper.
|
|
21199
|
+
* Either a string to use a HTML element or a component.
|
|
21200
|
+
* @default {}
|
|
21201
|
+
*/
|
|
21202
|
+
components: PropTypes.shape({
|
|
21203
|
+
Root: PropTypes.elementType
|
|
21204
|
+
}),
|
|
21205
|
+
|
|
21206
|
+
/**
|
|
21207
|
+
* The props used for each slot inside the Popper.
|
|
21208
|
+
* @default {}
|
|
21209
|
+
*/
|
|
21210
|
+
componentsProps: PropTypes.shape({
|
|
21211
|
+
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
21212
|
+
}),
|
|
21213
|
+
|
|
21097
21214
|
/**
|
|
21098
21215
|
* An HTML element or function that returns one.
|
|
21099
21216
|
* The `container` will have the portal children appended to it.
|
|
@@ -21336,7 +21453,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21336
21453
|
function getChipUtilityClass(slot) {
|
|
21337
21454
|
return generateUtilityClass('MuiChip', slot);
|
|
21338
21455
|
}
|
|
21339
|
-
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'focusVisible']);
|
|
21456
|
+
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
21340
21457
|
var chipClasses$1 = chipClasses;
|
|
21341
21458
|
|
|
21342
21459
|
const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
|
|
@@ -21356,7 +21473,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21356
21473
|
label: ['label', `label${capitalize(size)}`],
|
|
21357
21474
|
avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
|
|
21358
21475
|
icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
|
|
21359
|
-
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `
|
|
21476
|
+
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
21360
21477
|
};
|
|
21361
21478
|
return composeClasses(slots, getChipUtilityClass, classes);
|
|
21362
21479
|
};
|
|
@@ -21394,8 +21511,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21394
21511
|
}, {
|
|
21395
21512
|
[`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
|
|
21396
21513
|
}, {
|
|
21397
|
-
[`& .${chipClasses$1.deleteIcon}`]: styles[`
|
|
21398
|
-
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant],
|
|
21514
|
+
[`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
21515
|
+
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];
|
|
21399
21516
|
}
|
|
21400
21517
|
})(({
|
|
21401
21518
|
theme,
|
|
@@ -21663,7 +21780,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21663
21780
|
};
|
|
21664
21781
|
|
|
21665
21782
|
const clickable = clickableProp !== false && onClick ? true : clickableProp;
|
|
21666
|
-
const small = size === 'small';
|
|
21667
21783
|
const component = clickable || onDelete ? ButtonBase$1 : ComponentProp || 'div';
|
|
21668
21784
|
|
|
21669
21785
|
const ownerState = _extends({}, props, {
|
|
@@ -21686,12 +21802,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21686
21802
|
let deleteIcon = null;
|
|
21687
21803
|
|
|
21688
21804
|
if (onDelete) {
|
|
21689
|
-
const customClasses = clsx(color !== 'default' && (variant === 'outlined' ? classes[`deleteIconOutlinedColor${capitalize(color)}`] : classes[`deleteIconColor${capitalize(color)}`]), small && classes.deleteIconSmall);
|
|
21690
21805
|
deleteIcon = deleteIconProp && /*#__PURE__*/React__namespace.isValidElement(deleteIconProp) ? /*#__PURE__*/React__namespace.cloneElement(deleteIconProp, {
|
|
21691
|
-
className: clsx(deleteIconProp.props.className, classes.deleteIcon
|
|
21806
|
+
className: clsx(deleteIconProp.props.className, classes.deleteIcon),
|
|
21692
21807
|
onClick: handleDeleteIconClick
|
|
21693
21808
|
}) : /*#__PURE__*/jsxRuntime_1(CancelIcon, {
|
|
21694
|
-
className: clsx(classes.deleteIcon
|
|
21809
|
+
className: clsx(classes.deleteIcon),
|
|
21695
21810
|
onClick: handleDeleteIconClick
|
|
21696
21811
|
});
|
|
21697
21812
|
}
|
|
@@ -21943,7 +22058,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21943
22058
|
function getInputBaseUtilityClass(slot) {
|
|
21944
22059
|
return generateUtilityClass('MuiInputBase', slot);
|
|
21945
22060
|
}
|
|
21946
|
-
const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
22061
|
+
const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
21947
22062
|
var inputBaseClasses$1 = inputBaseClasses;
|
|
21948
22063
|
|
|
21949
22064
|
const _excluded$1O = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
|
|
@@ -21972,13 +22087,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21972
22087
|
fullWidth,
|
|
21973
22088
|
hiddenLabel,
|
|
21974
22089
|
multiline,
|
|
22090
|
+
readOnly,
|
|
21975
22091
|
size,
|
|
21976
22092
|
startAdornment,
|
|
21977
22093
|
type
|
|
21978
22094
|
} = ownerState;
|
|
21979
22095
|
const slots = {
|
|
21980
|
-
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel'],
|
|
21981
|
-
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd']
|
|
22096
|
+
root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
|
|
22097
|
+
input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
|
|
21982
22098
|
};
|
|
21983
22099
|
return composeClasses(slots, getInputBaseUtilityClass, classes);
|
|
21984
22100
|
};
|
|
@@ -24842,7 +24958,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24842
24958
|
Root: BadgeRoot,
|
|
24843
24959
|
Badge: BadgeBadge
|
|
24844
24960
|
}, components),
|
|
24845
|
-
className: clsx(
|
|
24961
|
+
className: clsx((_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, classes.root, className),
|
|
24846
24962
|
componentsProps: {
|
|
24847
24963
|
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
|
|
24848
24964
|
as: component,
|
|
@@ -25636,7 +25752,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25636
25752
|
|
|
25637
25753
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
25638
25754
|
|
|
25639
|
-
const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"]
|
|
25755
|
+
const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"],
|
|
25756
|
+
_excluded2$9 = ["root"];
|
|
25640
25757
|
|
|
25641
25758
|
const useUtilityClasses$1n = ownerState => {
|
|
25642
25759
|
const {
|
|
@@ -25880,7 +25997,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25880
25997
|
variant
|
|
25881
25998
|
});
|
|
25882
25999
|
|
|
25883
|
-
const
|
|
26000
|
+
const _useUtilityClasses = useUtilityClasses$1n(ownerState),
|
|
26001
|
+
{
|
|
26002
|
+
root: classesRoot
|
|
26003
|
+
} = _useUtilityClasses,
|
|
26004
|
+
classes = _objectWithoutPropertiesLoose(_useUtilityClasses, _excluded2$9);
|
|
25884
26005
|
|
|
25885
26006
|
const startIcon = startIconProp && /*#__PURE__*/jsxRuntime_1(ButtonStartIcon, {
|
|
25886
26007
|
className: classes.startIcon,
|
|
@@ -25896,7 +26017,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25896
26017
|
|
|
25897
26018
|
return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
|
|
25898
26019
|
ownerState: ownerState,
|
|
25899
|
-
className: clsx(className,
|
|
26020
|
+
className: clsx(contextProps.className, classesRoot, className),
|
|
25900
26021
|
component: component,
|
|
25901
26022
|
disabled: disabled,
|
|
25902
26023
|
focusRipple: !disableFocusRipple,
|
|
@@ -28208,7 +28329,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28208
28329
|
|
|
28209
28330
|
/**
|
|
28210
28331
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
28211
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
28332
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
28333
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
28212
28334
|
* @default styled(Backdrop, {
|
|
28213
28335
|
* name: 'MuiModal',
|
|
28214
28336
|
* slot: 'Backdrop',
|
|
@@ -28654,7 +28776,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28654
28776
|
|
|
28655
28777
|
/**
|
|
28656
28778
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
28657
|
-
* @deprecated Use `components.Backdrop` instead.
|
|
28779
|
+
* @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
|
28780
|
+
* Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
|
|
28658
28781
|
* @default styled(Backdrop, {
|
|
28659
28782
|
* name: 'MuiModal',
|
|
28660
28783
|
* slot: 'Backdrop',
|
|
@@ -31592,7 +31715,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31592
31715
|
/**
|
|
31593
31716
|
* The variant to use.
|
|
31594
31717
|
*/
|
|
31595
|
-
variant: PropTypes
|
|
31718
|
+
variant: PropTypes
|
|
31719
|
+
/* @typescript-to-proptypes-ignore */
|
|
31720
|
+
.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])
|
|
31596
31721
|
} ;
|
|
31597
31722
|
var FormHelperText$1 = FormHelperText;
|
|
31598
31723
|
|
|
@@ -31909,6 +32034,32 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31909
32034
|
return output;
|
|
31910
32035
|
});
|
|
31911
32036
|
}
|
|
32037
|
+
/**
|
|
32038
|
+
* Extracts zero value breakpoint keys before a non-zero value breakpoint key.
|
|
32039
|
+
* @example { xs: 0, sm: 0, md: 2, lg: 0, xl: 0 } or [0, 0, 2, 0, 0]
|
|
32040
|
+
* @returns [xs, sm]
|
|
32041
|
+
*/
|
|
32042
|
+
|
|
32043
|
+
function extractZeroValueBreakpointKeys({
|
|
32044
|
+
breakpoints,
|
|
32045
|
+
values
|
|
32046
|
+
}) {
|
|
32047
|
+
let nonZeroKey = '';
|
|
32048
|
+
Object.keys(values).forEach(key => {
|
|
32049
|
+
if (nonZeroKey !== '') {
|
|
32050
|
+
return;
|
|
32051
|
+
}
|
|
32052
|
+
|
|
32053
|
+
if (values[key] !== 0) {
|
|
32054
|
+
nonZeroKey = key;
|
|
32055
|
+
}
|
|
32056
|
+
});
|
|
32057
|
+
const sortedBreakpointKeysByValue = Object.keys(breakpoints).sort((a, b) => {
|
|
32058
|
+
return breakpoints[a] - breakpoints[b];
|
|
32059
|
+
});
|
|
32060
|
+
return sortedBreakpointKeysByValue.slice(0, sortedBreakpointKeysByValue.indexOf(nonZeroKey));
|
|
32061
|
+
}
|
|
32062
|
+
|
|
31912
32063
|
function generateRowGap({
|
|
31913
32064
|
theme,
|
|
31914
32065
|
ownerState
|
|
@@ -31924,9 +32075,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31924
32075
|
values: rowSpacing,
|
|
31925
32076
|
breakpoints: theme.breakpoints.values
|
|
31926
32077
|
});
|
|
32078
|
+
let zeroValueBreakpointKeys;
|
|
32079
|
+
|
|
32080
|
+
if (typeof rowSpacingValues === 'object') {
|
|
32081
|
+
zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
|
|
32082
|
+
breakpoints: theme.breakpoints.values,
|
|
32083
|
+
values: rowSpacingValues
|
|
32084
|
+
});
|
|
32085
|
+
}
|
|
32086
|
+
|
|
31927
32087
|
styles = handleBreakpoints({
|
|
31928
32088
|
theme
|
|
31929
|
-
}, rowSpacingValues, propValue => {
|
|
32089
|
+
}, rowSpacingValues, (propValue, breakpoint) => {
|
|
32090
|
+
var _zeroValueBreakpointK;
|
|
32091
|
+
|
|
31930
32092
|
const themeSpacing = theme.spacing(propValue);
|
|
31931
32093
|
|
|
31932
32094
|
if (themeSpacing !== '0px') {
|
|
@@ -31938,7 +32100,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31938
32100
|
};
|
|
31939
32101
|
}
|
|
31940
32102
|
|
|
31941
|
-
|
|
32103
|
+
if ((_zeroValueBreakpointK = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK.includes(breakpoint)) {
|
|
32104
|
+
return {};
|
|
32105
|
+
}
|
|
32106
|
+
|
|
32107
|
+
return {
|
|
32108
|
+
marginTop: 0,
|
|
32109
|
+
[`& > .${gridClasses$1.item}`]: {
|
|
32110
|
+
paddingTop: 0
|
|
32111
|
+
}
|
|
32112
|
+
};
|
|
31942
32113
|
});
|
|
31943
32114
|
}
|
|
31944
32115
|
|
|
@@ -31959,9 +32130,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31959
32130
|
values: columnSpacing,
|
|
31960
32131
|
breakpoints: theme.breakpoints.values
|
|
31961
32132
|
});
|
|
32133
|
+
let zeroValueBreakpointKeys;
|
|
32134
|
+
|
|
32135
|
+
if (typeof columnSpacingValues === 'object') {
|
|
32136
|
+
zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
|
|
32137
|
+
breakpoints: theme.breakpoints.values,
|
|
32138
|
+
values: columnSpacingValues
|
|
32139
|
+
});
|
|
32140
|
+
}
|
|
32141
|
+
|
|
31962
32142
|
styles = handleBreakpoints({
|
|
31963
32143
|
theme
|
|
31964
|
-
}, columnSpacingValues, propValue => {
|
|
32144
|
+
}, columnSpacingValues, (propValue, breakpoint) => {
|
|
32145
|
+
var _zeroValueBreakpointK2;
|
|
32146
|
+
|
|
31965
32147
|
const themeSpacing = theme.spacing(propValue);
|
|
31966
32148
|
|
|
31967
32149
|
if (themeSpacing !== '0px') {
|
|
@@ -31974,7 +32156,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31974
32156
|
};
|
|
31975
32157
|
}
|
|
31976
32158
|
|
|
31977
|
-
|
|
32159
|
+
if ((_zeroValueBreakpointK2 = zeroValueBreakpointKeys) != null && _zeroValueBreakpointK2.includes(breakpoint)) {
|
|
32160
|
+
return {};
|
|
32161
|
+
}
|
|
32162
|
+
|
|
32163
|
+
return {
|
|
32164
|
+
width: '100%',
|
|
32165
|
+
marginLeft: 0,
|
|
32166
|
+
[`& > .${gridClasses$1.item}`]: {
|
|
32167
|
+
paddingLeft: 0
|
|
32168
|
+
}
|
|
32169
|
+
};
|
|
31978
32170
|
});
|
|
31979
32171
|
}
|
|
31980
32172
|
|
|
@@ -33767,9 +33959,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33767
33959
|
})(({
|
|
33768
33960
|
ownerState
|
|
33769
33961
|
}) => _extends({
|
|
33770
|
-
display: '
|
|
33771
|
-
position: 'relative'
|
|
33772
|
-
lineHeight: 0
|
|
33962
|
+
display: 'block',
|
|
33963
|
+
position: 'relative'
|
|
33773
33964
|
}, ownerState.variant === 'standard' && {
|
|
33774
33965
|
// For titlebar under list item
|
|
33775
33966
|
display: 'flex',
|
|
@@ -33784,7 +33975,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33784
33975
|
[`& .${imageListItemClasses$1.img}`]: _extends({
|
|
33785
33976
|
objectFit: 'cover',
|
|
33786
33977
|
width: '100%',
|
|
33787
|
-
height: '100%'
|
|
33978
|
+
height: '100%',
|
|
33979
|
+
display: 'block'
|
|
33788
33980
|
}, ownerState.variant === 'standard' && {
|
|
33789
33981
|
height: 'auto',
|
|
33790
33982
|
flexGrow: 1
|
|
@@ -41694,7 +41886,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41694
41886
|
onFocus: onFocus
|
|
41695
41887
|
}, SelectDisplayProps, {
|
|
41696
41888
|
ownerState: ownerState,
|
|
41697
|
-
className: clsx(classes.select, className
|
|
41889
|
+
className: clsx(SelectDisplayProps.className, classes.select, className) // The id is required for proper a11y
|
|
41698
41890
|
,
|
|
41699
41891
|
id: buttonId,
|
|
41700
41892
|
children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
|
|
@@ -42208,7 +42400,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42208
42400
|
function getSkeletonUtilityClass(slot) {
|
|
42209
42401
|
return generateUtilityClass('MuiSkeleton', slot);
|
|
42210
42402
|
}
|
|
42211
|
-
const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
42403
|
+
const skeletonClasses = generateUtilityClasses('MuiSkeleton', ['root', 'text', 'rectangular', 'rounded', 'circular', 'pulse', 'wave', 'withChildren', 'fitContent', 'heightAuto']);
|
|
42212
42404
|
var skeletonClasses$1 = skeletonClasses;
|
|
42213
42405
|
|
|
42214
42406
|
const _excluded$C = ["animation", "className", "component", "height", "style", "variant", "width"];
|
|
@@ -42293,6 +42485,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42293
42485
|
}
|
|
42294
42486
|
}, ownerState.variant === 'circular' && {
|
|
42295
42487
|
borderRadius: '50%'
|
|
42488
|
+
}, ownerState.variant === 'rounded' && {
|
|
42489
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
42296
42490
|
}, ownerState.hasChildren && {
|
|
42297
42491
|
'& > *': {
|
|
42298
42492
|
visibility: 'hidden'
|
|
@@ -42428,7 +42622,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42428
42622
|
*/
|
|
42429
42623
|
variant: PropTypes
|
|
42430
42624
|
/* @typescript-to-proptypes-ignore */
|
|
42431
|
-
.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'text']), PropTypes.string]),
|
|
42625
|
+
.oneOfType([PropTypes.oneOf(['circular', 'rectangular', 'rounded', 'text']), PropTypes.string]),
|
|
42432
42626
|
|
|
42433
42627
|
/**
|
|
42434
42628
|
* Width of the skeleton.
|
|
@@ -44711,7 +44905,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44711
44905
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
44712
44906
|
,
|
|
44713
44907
|
boxSizing: 'border-box',
|
|
44714
|
-
color: theme.vars ?
|
|
44908
|
+
color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),
|
|
44715
44909
|
'&::before': {
|
|
44716
44910
|
content: '""',
|
|
44717
44911
|
margin: 'auto',
|
|
@@ -44860,15 +45054,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44860
45054
|
const handleEnter = event => {
|
|
44861
45055
|
if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {
|
|
44862
45056
|
return;
|
|
44863
|
-
} // Workaround for https://github.com/facebook/react/issues/7769
|
|
44864
|
-
|
|
44865
|
-
|
|
44866
|
-
if (!childNode) {
|
|
44867
|
-
setChildNode(event.currentTarget);
|
|
44868
45057
|
} // Remove the title ahead of time.
|
|
44869
45058
|
// We don't want to wait for the next render commit.
|
|
44870
45059
|
// We would risk displaying two tooltips at the same time (native + this one).
|
|
44871
|
-
|
|
45060
|
+
|
|
45061
|
+
|
|
45062
|
+
if (childNode) {
|
|
44872
45063
|
childNode.removeAttribute('title');
|
|
44873
45064
|
}
|
|
44874
45065
|
|
|
@@ -44913,6 +45104,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44913
45104
|
|
|
44914
45105
|
const handleFocus = event => {
|
|
44915
45106
|
// Workaround for https://github.com/facebook/react/issues/7769
|
|
45107
|
+
// The autoFocus of React might trigger the event before the componentDidMount.
|
|
45108
|
+
// We need to account for this eventuality.
|
|
44916
45109
|
if (!childNode) {
|
|
44917
45110
|
setChildNode(event.currentTarget);
|
|
44918
45111
|
}
|
|
@@ -45792,7 +45985,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45792
45985
|
theme
|
|
45793
45986
|
}) => {
|
|
45794
45987
|
let styles = _extends({
|
|
45795
|
-
display: 'flex'
|
|
45988
|
+
display: 'flex',
|
|
45989
|
+
flexDirection: 'column'
|
|
45796
45990
|
}, handleBreakpoints({
|
|
45797
45991
|
theme
|
|
45798
45992
|
}, resolveBreakpointValues({
|
|
@@ -45820,6 +46014,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45820
46014
|
base
|
|
45821
46015
|
});
|
|
45822
46016
|
|
|
46017
|
+
if (typeof directionValues === 'object') {
|
|
46018
|
+
Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {
|
|
46019
|
+
const directionValue = directionValues[breakpoint];
|
|
46020
|
+
|
|
46021
|
+
if (!directionValue) {
|
|
46022
|
+
const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';
|
|
46023
|
+
directionValues[breakpoint] = previousDirectionValue;
|
|
46024
|
+
}
|
|
46025
|
+
});
|
|
46026
|
+
}
|
|
46027
|
+
|
|
45823
46028
|
const styleFromPropValue = (propValue, breakpoint) => {
|
|
45824
46029
|
return {
|
|
45825
46030
|
'& > :not(style) + :not(style)': {
|
|
@@ -45834,6 +46039,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
45834
46039
|
}, spacingValues, styleFromPropValue));
|
|
45835
46040
|
}
|
|
45836
46041
|
|
|
46042
|
+
styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
|
|
45837
46043
|
return styles;
|
|
45838
46044
|
};
|
|
45839
46045
|
const StackRoot = styled$1('div', {
|
|
@@ -46328,7 +46534,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46328
46534
|
const slots = {
|
|
46329
46535
|
root: ['root', orientation, error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
46330
46536
|
label: ['label', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
46331
|
-
iconContainer: ['iconContainer', alternativeLabel && 'alternativeLabel'],
|
|
46537
|
+
iconContainer: ['iconContainer', active && 'active', completed && 'completed', error && 'error', disabled && 'disabled', alternativeLabel && 'alternativeLabel'],
|
|
46332
46538
|
labelContainer: ['labelContainer']
|
|
46333
46539
|
};
|
|
46334
46540
|
return composeClasses(slots, getStepLabelUtilityClass, classes);
|
|
@@ -48898,7 +49104,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48898
49104
|
* Specify the size of the cell.
|
|
48899
49105
|
* The prop defaults to the value (`'medium'`) inherited from the parent Table component.
|
|
48900
49106
|
*/
|
|
48901
|
-
size: PropTypes
|
|
49107
|
+
size: PropTypes
|
|
49108
|
+
/* @typescript-to-proptypes-ignore */
|
|
49109
|
+
.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
48902
49110
|
|
|
48903
49111
|
/**
|
|
48904
49112
|
* Set aria-sort direction.
|
|
@@ -51168,7 +51376,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51168
51376
|
* Determines the color of the indicator.
|
|
51169
51377
|
* @default 'primary'
|
|
51170
51378
|
*/
|
|
51171
|
-
indicatorColor: PropTypes
|
|
51379
|
+
indicatorColor: PropTypes
|
|
51380
|
+
/* @typescript-to-proptypes-ignore */
|
|
51381
|
+
.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
|
|
51172
51382
|
|
|
51173
51383
|
/**
|
|
51174
51384
|
* Callback fired when the value changes.
|
|
@@ -52234,9 +52444,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
52234
52444
|
|
|
52235
52445
|
handleScroll(); // Re-evaluate trigger when dependencies change
|
|
52236
52446
|
|
|
52237
|
-
target.addEventListener('scroll', handleScroll
|
|
52447
|
+
target.addEventListener('scroll', handleScroll, {
|
|
52448
|
+
passive: true
|
|
52449
|
+
});
|
|
52238
52450
|
return () => {
|
|
52239
|
-
target.removeEventListener('scroll', handleScroll
|
|
52451
|
+
target.removeEventListener('scroll', handleScroll, {
|
|
52452
|
+
passive: true
|
|
52453
|
+
});
|
|
52240
52454
|
}; // See Option 3. https://github.com/facebook/react/issues/14476#issuecomment-471199055
|
|
52241
52455
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
52242
52456
|
}, [target, getTrigger, JSON.stringify(other)]);
|