@mui/material 5.11.9 → 5.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.js +1 -0
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.d.ts +8 -0
- package/Backdrop/Backdrop.js +10 -5
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +0 -1
- package/Badge/Badge.js +47 -47
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +46 -1
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/DialogContext.js +2 -2
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +55 -55
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/SwitchBase.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Avatar/Avatar.js +1 -0
- package/legacy/Backdrop/Backdrop.js +9 -3
- package/legacy/Badge/Badge.js +48 -48
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Dialog/DialogContext.js +2 -2
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/legacy/index.js +1 -1
- package/legacy/internal/SwitchBase.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +12 -7
- package/locale/index.d.ts +75 -75
- package/modern/Avatar/Avatar.js +1 -0
- package/modern/Backdrop/Backdrop.js +10 -5
- package/modern/Badge/Badge.js +47 -47
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Dialog/DialogContext.js +2 -2
- package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +9 -7
- package/node/Avatar/Avatar.js +1 -0
- package/node/Backdrop/Backdrop.js +10 -5
- package/node/Badge/Badge.js +46 -47
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Dialog/DialogContext.js +4 -2
- package/node/SwipeableDrawer/SwipeableDrawer.js +3 -3
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +1 -1
- package/node/useMediaQuery/useMediaQuery.js +9 -7
- package/package.json +1 -1
- package/styles/CssVarsProvider.d.ts +16 -16
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/props.d.ts +2 -2
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +139 -243
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +46 -31
- package/useMediaQuery/useMediaQuery.js +9 -7
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.11.
|
|
2
|
+
* @mui/material v5.11.10
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -6848,7 +6848,7 @@
|
|
|
6848
6848
|
styleFunctionSx.filterProps = ['sx'];
|
|
6849
6849
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
6850
6850
|
|
|
6851
|
-
const _excluded$
|
|
6851
|
+
const _excluded$2m = ["sx"];
|
|
6852
6852
|
const splitProps = props => {
|
|
6853
6853
|
var _props$theme$unstable, _props$theme;
|
|
6854
6854
|
const result = {
|
|
@@ -6869,7 +6869,7 @@
|
|
|
6869
6869
|
const {
|
|
6870
6870
|
sx: inSx
|
|
6871
6871
|
} = props,
|
|
6872
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6872
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2m);
|
|
6873
6873
|
const {
|
|
6874
6874
|
systemProps,
|
|
6875
6875
|
otherProps
|
|
@@ -6895,7 +6895,7 @@
|
|
|
6895
6895
|
|
|
6896
6896
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
6897
6897
|
|
|
6898
|
-
const _excluded$
|
|
6898
|
+
const _excluded$2l = ["values", "unit", "step"];
|
|
6899
6899
|
const sortBreakpointsValues = values => {
|
|
6900
6900
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
6901
6901
|
key,
|
|
@@ -6930,7 +6930,7 @@
|
|
|
6930
6930
|
unit = 'px',
|
|
6931
6931
|
step = 5
|
|
6932
6932
|
} = breakpoints,
|
|
6933
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6933
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2l);
|
|
6934
6934
|
const sortedValues = sortBreakpointsValues(values);
|
|
6935
6935
|
const keys = Object.keys(sortedValues);
|
|
6936
6936
|
function up(key) {
|
|
@@ -7009,7 +7009,7 @@
|
|
|
7009
7009
|
return spacing;
|
|
7010
7010
|
}
|
|
7011
7011
|
|
|
7012
|
-
const _excluded$
|
|
7012
|
+
const _excluded$2k = ["breakpoints", "palette", "spacing", "shape"];
|
|
7013
7013
|
function createTheme$1(options = {}, ...args) {
|
|
7014
7014
|
const {
|
|
7015
7015
|
breakpoints: breakpointsInput = {},
|
|
@@ -7017,7 +7017,7 @@
|
|
|
7017
7017
|
spacing: spacingInput,
|
|
7018
7018
|
shape: shapeInput = {}
|
|
7019
7019
|
} = options,
|
|
7020
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
7020
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2k);
|
|
7021
7021
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
7022
7022
|
const spacing = createSpacing(spacingInput);
|
|
7023
7023
|
let muiTheme = deepmerge({
|
|
@@ -7128,7 +7128,7 @@
|
|
|
7128
7128
|
return useTheme$2(defaultTheme);
|
|
7129
7129
|
}
|
|
7130
7130
|
|
|
7131
|
-
const _excluded$
|
|
7131
|
+
const _excluded$2j = ["className", "component"];
|
|
7132
7132
|
function createBox(options = {}) {
|
|
7133
7133
|
const {
|
|
7134
7134
|
defaultTheme,
|
|
@@ -7145,7 +7145,7 @@
|
|
|
7145
7145
|
className,
|
|
7146
7146
|
component = 'div'
|
|
7147
7147
|
} = _extendSxProp,
|
|
7148
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
7148
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2j);
|
|
7149
7149
|
return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
|
|
7150
7150
|
as: component,
|
|
7151
7151
|
ref: ref,
|
|
@@ -7156,7 +7156,7 @@
|
|
|
7156
7156
|
return Box;
|
|
7157
7157
|
}
|
|
7158
7158
|
|
|
7159
|
-
const _excluded$
|
|
7159
|
+
const _excluded$2i = ["variant"];
|
|
7160
7160
|
function isEmpty$3(string) {
|
|
7161
7161
|
return string.length === 0;
|
|
7162
7162
|
}
|
|
@@ -7170,7 +7170,7 @@
|
|
|
7170
7170
|
const {
|
|
7171
7171
|
variant
|
|
7172
7172
|
} = props,
|
|
7173
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7173
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2i);
|
|
7174
7174
|
let classKey = variant || '';
|
|
7175
7175
|
Object.keys(other).sort().forEach(key => {
|
|
7176
7176
|
if (key === 'color') {
|
|
@@ -7182,7 +7182,7 @@
|
|
|
7182
7182
|
return classKey;
|
|
7183
7183
|
}
|
|
7184
7184
|
|
|
7185
|
-
const _excluded$
|
|
7185
|
+
const _excluded$2h = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
7186
7186
|
_excluded2$c = ["theme"],
|
|
7187
7187
|
_excluded3$1 = ["theme"];
|
|
7188
7188
|
function isEmpty$2(obj) {
|
|
@@ -7269,7 +7269,7 @@
|
|
|
7269
7269
|
skipSx: inputSkipSx,
|
|
7270
7270
|
overridesResolver
|
|
7271
7271
|
} = inputOptions,
|
|
7272
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
7272
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2h);
|
|
7273
7273
|
|
|
7274
7274
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
7275
7275
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -8166,7 +8166,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8166
8166
|
});
|
|
8167
8167
|
}
|
|
8168
8168
|
|
|
8169
|
-
const _excluded$
|
|
8169
|
+
const _excluded$2g = ["colorSchemes", "components", "cssVarPrefix"];
|
|
8170
8170
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
8171
8171
|
function createCssVarsProvider(options) {
|
|
8172
8172
|
const {
|
|
@@ -8218,7 +8218,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8218
8218
|
components = {},
|
|
8219
8219
|
cssVarPrefix
|
|
8220
8220
|
} = themeProp,
|
|
8221
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$
|
|
8221
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2g);
|
|
8222
8222
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
8223
8223
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
8224
8224
|
const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
|
|
@@ -8516,7 +8516,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8516
8516
|
return getCssVar;
|
|
8517
8517
|
}
|
|
8518
8518
|
|
|
8519
|
-
const _excluded$
|
|
8519
|
+
const _excluded$2f = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
8520
8520
|
const defaultTheme$5 = createTheme$1();
|
|
8521
8521
|
const defaultCreateStyledComponent$1 = systemStyled('div', {
|
|
8522
8522
|
name: 'MuiContainer',
|
|
@@ -8533,7 +8533,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8533
8533
|
name: 'MuiContainer',
|
|
8534
8534
|
defaultTheme: defaultTheme$5
|
|
8535
8535
|
});
|
|
8536
|
-
const useUtilityClasses$
|
|
8536
|
+
const useUtilityClasses$1P = (ownerState, componentName) => {
|
|
8537
8537
|
const getContainerUtilityClass = slot => {
|
|
8538
8538
|
return generateUtilityClass(componentName, slot);
|
|
8539
8539
|
};
|
|
@@ -8612,7 +8612,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8612
8612
|
fixed = false,
|
|
8613
8613
|
maxWidth = 'lg'
|
|
8614
8614
|
} = props,
|
|
8615
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8615
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
8616
8616
|
const ownerState = _extends({}, props, {
|
|
8617
8617
|
component,
|
|
8618
8618
|
disableGutters,
|
|
@@ -8621,7 +8621,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8621
8621
|
});
|
|
8622
8622
|
|
|
8623
8623
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
8624
|
-
const classes = useUtilityClasses$
|
|
8624
|
+
const classes = useUtilityClasses$1P(ownerState, componentName);
|
|
8625
8625
|
return (
|
|
8626
8626
|
/*#__PURE__*/
|
|
8627
8627
|
// @ts-ignore theme is injected by the styled util
|
|
@@ -8899,7 +8899,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8899
8899
|
return [`direction-xs-${String(direction)}`];
|
|
8900
8900
|
};
|
|
8901
8901
|
|
|
8902
|
-
const _excluded$
|
|
8902
|
+
const _excluded$2e = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow"];
|
|
8903
8903
|
const defaultTheme$4 = createTheme$1();
|
|
8904
8904
|
|
|
8905
8905
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
@@ -8957,7 +8957,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8957
8957
|
columnSpacing: columnSpacingProp = spacingProp,
|
|
8958
8958
|
disableEqualOverflow: themeDisableEqualOverflow
|
|
8959
8959
|
} = props,
|
|
8960
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8960
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2e);
|
|
8961
8961
|
// Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
|
8962
8962
|
let disableEqualOverflow = themeDisableEqualOverflow;
|
|
8963
8963
|
if (level && themeDisableEqualOverflow !== undefined) {
|
|
@@ -9047,7 +9047,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9047
9047
|
return Grid;
|
|
9048
9048
|
}
|
|
9049
9049
|
|
|
9050
|
-
const _excluded$
|
|
9050
|
+
const _excluded$2d = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
9051
9051
|
_excluded2$b = ["type", "mode"];
|
|
9052
9052
|
function adaptV4Theme(inputTheme) {
|
|
9053
9053
|
{
|
|
@@ -9061,7 +9061,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9061
9061
|
props = {},
|
|
9062
9062
|
styleOverrides = {}
|
|
9063
9063
|
} = inputTheme,
|
|
9064
|
-
other = _objectWithoutPropertiesLoose(inputTheme, _excluded$
|
|
9064
|
+
other = _objectWithoutPropertiesLoose(inputTheme, _excluded$2d);
|
|
9065
9065
|
const theme = _extends({}, other, {
|
|
9066
9066
|
components: {}
|
|
9067
9067
|
});
|
|
@@ -9142,7 +9142,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9142
9142
|
}, mixins);
|
|
9143
9143
|
}
|
|
9144
9144
|
|
|
9145
|
-
const _excluded$
|
|
9145
|
+
const _excluded$2c = ["mode", "contrastThreshold", "tonalOffset"];
|
|
9146
9146
|
const light = {
|
|
9147
9147
|
// The colors used to style the text.
|
|
9148
9148
|
text: {
|
|
@@ -9311,7 +9311,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9311
9311
|
contrastThreshold = 3,
|
|
9312
9312
|
tonalOffset = 0.2
|
|
9313
9313
|
} = palette,
|
|
9314
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
9314
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$2c);
|
|
9315
9315
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
9316
9316
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
9317
9317
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -9435,7 +9435,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9435
9435
|
return paletteOutput;
|
|
9436
9436
|
}
|
|
9437
9437
|
|
|
9438
|
-
const _excluded$
|
|
9438
|
+
const _excluded$2b = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
9439
9439
|
function round$2(value) {
|
|
9440
9440
|
return Math.round(value * 1e5) / 1e5;
|
|
9441
9441
|
}
|
|
@@ -9466,7 +9466,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9466
9466
|
allVariants,
|
|
9467
9467
|
pxToRem: pxToRem2
|
|
9468
9468
|
} = _ref,
|
|
9469
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9469
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$2b);
|
|
9470
9470
|
{
|
|
9471
9471
|
if (typeof fontSize !== 'number') {
|
|
9472
9472
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -9526,7 +9526,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9526
9526
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
9527
9527
|
var shadows$1 = shadows;
|
|
9528
9528
|
|
|
9529
|
-
const _excluded$
|
|
9529
|
+
const _excluded$2a = ["duration", "easing", "delay"];
|
|
9530
9530
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
9531
9531
|
// to learn the context in which each easing should be used.
|
|
9532
9532
|
const easing = {
|
|
@@ -9577,7 +9577,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9577
9577
|
easing: easingOption = mergedEasing.easeInOut,
|
|
9578
9578
|
delay = 0
|
|
9579
9579
|
} = options,
|
|
9580
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
9580
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2a);
|
|
9581
9581
|
{
|
|
9582
9582
|
const isString = value => typeof value === 'string';
|
|
9583
9583
|
// IE11 support, replace with Number.isNaN
|
|
@@ -9624,7 +9624,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9624
9624
|
};
|
|
9625
9625
|
var zIndex$1 = zIndex;
|
|
9626
9626
|
|
|
9627
|
-
const _excluded$
|
|
9627
|
+
const _excluded$29 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
9628
9628
|
function createTheme(options = {}, ...args) {
|
|
9629
9629
|
const {
|
|
9630
9630
|
mixins: mixinsInput = {},
|
|
@@ -9632,7 +9632,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9632
9632
|
transitions: transitionsInput = {},
|
|
9633
9633
|
typography: typographyInput = {}
|
|
9634
9634
|
} = options,
|
|
9635
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
9635
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$29);
|
|
9636
9636
|
if (options.vars) {
|
|
9637
9637
|
throw new Error(`MUI: \`vars\` is a private field used for CSS variables support.
|
|
9638
9638
|
Please use another name.` );
|
|
@@ -9960,7 +9960,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
9960
9960
|
};
|
|
9961
9961
|
var getOverlayAlpha$1 = getOverlayAlpha;
|
|
9962
9962
|
|
|
9963
|
-
const _excluded$
|
|
9963
|
+
const _excluded$28 = ["colorSchemes", "cssVarPrefix"],
|
|
9964
9964
|
_excluded2$a = ["palette"];
|
|
9965
9965
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
9966
9966
|
if (index === 0) {
|
|
@@ -10003,7 +10003,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10003
10003
|
colorSchemes: colorSchemesInput = {},
|
|
10004
10004
|
cssVarPrefix = 'mui'
|
|
10005
10005
|
} = options,
|
|
10006
|
-
input = _objectWithoutPropertiesLoose(options, _excluded$
|
|
10006
|
+
input = _objectWithoutPropertiesLoose(options, _excluded$28);
|
|
10007
10007
|
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
10008
10008
|
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
10009
10009
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
@@ -10421,7 +10421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10421
10421
|
};
|
|
10422
10422
|
}
|
|
10423
10423
|
|
|
10424
|
-
const _excluded$
|
|
10424
|
+
const _excluded$27 = ["elementType", "externalSlotProps", "ownerState"];
|
|
10425
10425
|
/**
|
|
10426
10426
|
* @ignore - do not document.
|
|
10427
10427
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -10437,7 +10437,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10437
10437
|
externalSlotProps,
|
|
10438
10438
|
ownerState
|
|
10439
10439
|
} = parameters,
|
|
10440
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
10440
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$27);
|
|
10441
10441
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
10442
10442
|
const {
|
|
10443
10443
|
props: mergedProps,
|
|
@@ -11444,134 +11444,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11444
11444
|
};
|
|
11445
11445
|
}
|
|
11446
11446
|
|
|
11447
|
-
function getBadgeUnstyledUtilityClass(slot) {
|
|
11448
|
-
return generateUtilityClass('MuiBadge', slot);
|
|
11449
|
-
}
|
|
11450
|
-
generateUtilityClasses('MuiBadge', ['root', 'badge', 'invisible']);
|
|
11451
|
-
|
|
11452
|
-
const _excluded$27 = ["badgeContent", "component", "children", "invisible", "max", "slotProps", "slots", "showZero"];
|
|
11453
|
-
const useUtilityClasses$1P = ownerState => {
|
|
11454
|
-
const {
|
|
11455
|
-
invisible
|
|
11456
|
-
} = ownerState;
|
|
11457
|
-
const slots = {
|
|
11458
|
-
root: ['root'],
|
|
11459
|
-
badge: ['badge', invisible && 'invisible']
|
|
11460
|
-
};
|
|
11461
|
-
return composeClasses(slots, getBadgeUnstyledUtilityClass, undefined);
|
|
11462
|
-
};
|
|
11463
|
-
/**
|
|
11464
|
-
*
|
|
11465
|
-
* Demos:
|
|
11466
|
-
*
|
|
11467
|
-
* - [Unstyled badge](https://mui.com/base/react-badge/)
|
|
11468
|
-
*
|
|
11469
|
-
* API:
|
|
11470
|
-
*
|
|
11471
|
-
* - [BadgeUnstyled API](https://mui.com/base/api/badge-unstyled/)
|
|
11472
|
-
*/
|
|
11473
|
-
const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
|
|
11474
|
-
const {
|
|
11475
|
-
component,
|
|
11476
|
-
children,
|
|
11477
|
-
max: maxProp = 99,
|
|
11478
|
-
slotProps = {},
|
|
11479
|
-
slots = {},
|
|
11480
|
-
showZero = false
|
|
11481
|
-
} = props,
|
|
11482
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$27);
|
|
11483
|
-
const {
|
|
11484
|
-
badgeContent,
|
|
11485
|
-
max,
|
|
11486
|
-
displayValue,
|
|
11487
|
-
invisible
|
|
11488
|
-
} = useBadge(_extends({}, props, {
|
|
11489
|
-
max: maxProp
|
|
11490
|
-
}));
|
|
11491
|
-
const ownerState = _extends({}, props, {
|
|
11492
|
-
badgeContent,
|
|
11493
|
-
invisible,
|
|
11494
|
-
max,
|
|
11495
|
-
showZero
|
|
11496
|
-
});
|
|
11497
|
-
const classes = useUtilityClasses$1P(ownerState);
|
|
11498
|
-
const Root = component || slots.root || 'span';
|
|
11499
|
-
const rootProps = useSlotProps({
|
|
11500
|
-
elementType: Root,
|
|
11501
|
-
externalSlotProps: slotProps.root,
|
|
11502
|
-
externalForwardedProps: other,
|
|
11503
|
-
additionalProps: {
|
|
11504
|
-
ref
|
|
11505
|
-
},
|
|
11506
|
-
ownerState,
|
|
11507
|
-
className: classes.root
|
|
11508
|
-
});
|
|
11509
|
-
const Badge = slots.badge || 'span';
|
|
11510
|
-
const badgeProps = useSlotProps({
|
|
11511
|
-
elementType: Badge,
|
|
11512
|
-
externalSlotProps: slotProps.badge,
|
|
11513
|
-
ownerState,
|
|
11514
|
-
className: classes.badge
|
|
11515
|
-
});
|
|
11516
|
-
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
|
|
11517
|
-
children: [children, /*#__PURE__*/jsxRuntime_1(Badge, _extends({}, badgeProps, {
|
|
11518
|
-
children: displayValue
|
|
11519
|
-
}))]
|
|
11520
|
-
}));
|
|
11521
|
-
});
|
|
11522
|
-
BadgeUnstyled.propTypes /* remove-proptypes */ = {
|
|
11523
|
-
// ----------------------------- Warning --------------------------------
|
|
11524
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
11525
|
-
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
11526
|
-
// ----------------------------------------------------------------------
|
|
11527
|
-
/**
|
|
11528
|
-
* The content rendered within the badge.
|
|
11529
|
-
*/
|
|
11530
|
-
badgeContent: PropTypes.node,
|
|
11531
|
-
/**
|
|
11532
|
-
* The badge will be added relative to this node.
|
|
11533
|
-
*/
|
|
11534
|
-
children: PropTypes.node,
|
|
11535
|
-
/**
|
|
11536
|
-
* The component used for the root node.
|
|
11537
|
-
* Either a string to use a HTML element or a component.
|
|
11538
|
-
*/
|
|
11539
|
-
component: PropTypes.elementType,
|
|
11540
|
-
/**
|
|
11541
|
-
* If `true`, the badge is invisible.
|
|
11542
|
-
* @default false
|
|
11543
|
-
*/
|
|
11544
|
-
invisible: PropTypes.bool,
|
|
11545
|
-
/**
|
|
11546
|
-
* Max count to show.
|
|
11547
|
-
* @default 99
|
|
11548
|
-
*/
|
|
11549
|
-
max: PropTypes.number,
|
|
11550
|
-
/**
|
|
11551
|
-
* Controls whether the badge is hidden when `badgeContent` is zero.
|
|
11552
|
-
* @default false
|
|
11553
|
-
*/
|
|
11554
|
-
showZero: PropTypes.bool,
|
|
11555
|
-
/**
|
|
11556
|
-
* The props used for each slot inside the Badge.
|
|
11557
|
-
* @default {}
|
|
11558
|
-
*/
|
|
11559
|
-
slotProps: PropTypes.shape({
|
|
11560
|
-
badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
11561
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
11562
|
-
}),
|
|
11563
|
-
/**
|
|
11564
|
-
* The components used for each slot inside the Badge.
|
|
11565
|
-
* Either a string to use a HTML element or a component.
|
|
11566
|
-
* @default {}
|
|
11567
|
-
*/
|
|
11568
|
-
slots: PropTypes.shape({
|
|
11569
|
-
badge: PropTypes.elementType,
|
|
11570
|
-
root: PropTypes.elementType
|
|
11571
|
-
})
|
|
11572
|
-
} ;
|
|
11573
|
-
var BadgeUnstyled$1 = BadgeUnstyled;
|
|
11574
|
-
|
|
11575
11447
|
function mapEventPropToEvent(eventProp) {
|
|
11576
11448
|
return eventProp.substring(2).toLowerCase();
|
|
11577
11449
|
}
|
|
@@ -15756,8 +15628,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15756
15628
|
}
|
|
15757
15629
|
|
|
15758
15630
|
const _excluded$24 = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15759
|
-
function getStyleValue(
|
|
15760
|
-
return parseInt(
|
|
15631
|
+
function getStyleValue(value) {
|
|
15632
|
+
return parseInt(value, 10) || 0;
|
|
15761
15633
|
}
|
|
15762
15634
|
const styles$5 = {
|
|
15763
15635
|
shadow: {
|
|
@@ -15775,8 +15647,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15775
15647
|
}
|
|
15776
15648
|
};
|
|
15777
15649
|
function isEmpty$1(obj) {
|
|
15778
|
-
return obj === undefined || obj === null || Object.keys(obj).length === 0;
|
|
15650
|
+
return obj === undefined || obj === null || Object.keys(obj).length === 0 || obj.outerHeightStyle === 0 && !obj.overflow;
|
|
15779
15651
|
}
|
|
15652
|
+
|
|
15653
|
+
/**
|
|
15654
|
+
*
|
|
15655
|
+
* Demos:
|
|
15656
|
+
*
|
|
15657
|
+
* - [Textarea Autosize](https://mui.com/base/react-textarea-autosize/)
|
|
15658
|
+
* - [Textarea Autosize](https://mui.com/material-ui/react-textarea-autosize/)
|
|
15659
|
+
*
|
|
15660
|
+
* API:
|
|
15661
|
+
*
|
|
15662
|
+
* - [TextareaAutosize API](https://mui.com/base/api/textarea-autosize/)
|
|
15663
|
+
*/
|
|
15780
15664
|
const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, ref) {
|
|
15781
15665
|
const {
|
|
15782
15666
|
onChange,
|
|
@@ -15793,7 +15677,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15793
15677
|
const handleRef = useForkRef(ref, inputRef);
|
|
15794
15678
|
const shadowRef = React__namespace.useRef(null);
|
|
15795
15679
|
const renders = React__namespace.useRef(0);
|
|
15796
|
-
const [state, setState] = React__namespace.useState({
|
|
15680
|
+
const [state, setState] = React__namespace.useState({
|
|
15681
|
+
outerHeightStyle: 0
|
|
15682
|
+
});
|
|
15797
15683
|
const getUpdatedState = React__namespace.useCallback(() => {
|
|
15798
15684
|
const input = inputRef.current;
|
|
15799
15685
|
const containerWindow = ownerWindow(input);
|
|
@@ -15801,7 +15687,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15801
15687
|
|
|
15802
15688
|
// If input's width is shrunk and it's not visible, don't sync height.
|
|
15803
15689
|
if (computedStyle.width === '0px') {
|
|
15804
|
-
return {
|
|
15690
|
+
return {
|
|
15691
|
+
outerHeightStyle: 0
|
|
15692
|
+
};
|
|
15805
15693
|
}
|
|
15806
15694
|
const inputShallow = shadowRef.current;
|
|
15807
15695
|
inputShallow.style.width = computedStyle.width;
|
|
@@ -15812,9 +15700,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15812
15700
|
// is empty. Make it non-empty to avoid this issue.
|
|
15813
15701
|
inputShallow.value += ' ';
|
|
15814
15702
|
}
|
|
15815
|
-
const boxSizing = computedStyle
|
|
15816
|
-
const padding = getStyleValue(computedStyle
|
|
15817
|
-
const border = getStyleValue(computedStyle
|
|
15703
|
+
const boxSizing = computedStyle.boxSizing;
|
|
15704
|
+
const padding = getStyleValue(computedStyle.paddingBottom) + getStyleValue(computedStyle.paddingTop);
|
|
15705
|
+
const border = getStyleValue(computedStyle.borderBottomWidth) + getStyleValue(computedStyle.borderTopWidth);
|
|
15818
15706
|
|
|
15819
15707
|
// The height of the inner content
|
|
15820
15708
|
const innerHeight = inputShallow.scrollHeight;
|
|
@@ -15880,7 +15768,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15880
15768
|
// In React 18, state updates in a ResizeObserver's callback are happening after the paint which causes flickering
|
|
15881
15769
|
// when doing some visual updates in it. Using flushSync ensures that the dom will be painted after the states updates happen
|
|
15882
15770
|
// Related issue - https://github.com/facebook/react/issues/24331
|
|
15883
|
-
|
|
15771
|
+
ReactDOM__namespace.flushSync(() => {
|
|
15884
15772
|
setState(prevState => {
|
|
15885
15773
|
return updateState(prevState, newState);
|
|
15886
15774
|
});
|
|
@@ -15898,12 +15786,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15898
15786
|
syncHeightWithFlushSycn();
|
|
15899
15787
|
}
|
|
15900
15788
|
});
|
|
15901
|
-
const containerWindow = ownerWindow(inputRef.current);
|
|
15902
|
-
containerWindow.addEventListener('resize', handleResize);
|
|
15903
15789
|
let resizeObserver;
|
|
15790
|
+
const input = inputRef.current;
|
|
15791
|
+
const containerWindow = ownerWindow(input);
|
|
15792
|
+
containerWindow.addEventListener('resize', handleResize);
|
|
15904
15793
|
if (typeof ResizeObserver !== 'undefined') {
|
|
15905
15794
|
resizeObserver = new ResizeObserver(handleResize);
|
|
15906
|
-
resizeObserver.observe(
|
|
15795
|
+
resizeObserver.observe(input);
|
|
15907
15796
|
}
|
|
15908
15797
|
return () => {
|
|
15909
15798
|
handleResize.clear();
|
|
@@ -15940,7 +15829,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15940
15829
|
height: state.outerHeightStyle,
|
|
15941
15830
|
// Need a large enough difference to allow scrolling.
|
|
15942
15831
|
// This prevents infinite rendering loop.
|
|
15943
|
-
overflow: state.overflow ? 'hidden' :
|
|
15832
|
+
overflow: state.overflow ? 'hidden' : undefined
|
|
15944
15833
|
}, style)
|
|
15945
15834
|
}, other)), /*#__PURE__*/jsxRuntime_1("textarea", {
|
|
15946
15835
|
"aria-hidden": true,
|
|
@@ -15957,7 +15846,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15957
15846
|
TextareaAutosize.propTypes /* remove-proptypes */ = {
|
|
15958
15847
|
// ----------------------------- Warning --------------------------------
|
|
15959
15848
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15960
|
-
// | To update them edit
|
|
15849
|
+
// | To update them edit TypeScript types and run "yarn proptypes" |
|
|
15961
15850
|
// ----------------------------------------------------------------------
|
|
15962
15851
|
/**
|
|
15963
15852
|
* @ignore
|
|
@@ -22903,6 +22792,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22903
22792
|
children = alt[0];
|
|
22904
22793
|
} else {
|
|
22905
22794
|
children = /*#__PURE__*/jsxRuntime_1(AvatarFallback, {
|
|
22795
|
+
ownerState: ownerState,
|
|
22906
22796
|
className: classes.fallback
|
|
22907
22797
|
});
|
|
22908
22798
|
}
|
|
@@ -23375,7 +23265,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23375
23265
|
const backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
23376
23266
|
var backdropClasses$1 = backdropClasses;
|
|
23377
23267
|
|
|
23378
|
-
const _excluded$1J = ["children", "
|
|
23268
|
+
const _excluded$1J = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
23379
23269
|
const useUtilityClasses$1t = ownerState => {
|
|
23380
23270
|
const {
|
|
23381
23271
|
classes,
|
|
@@ -23419,17 +23309,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23419
23309
|
});
|
|
23420
23310
|
const {
|
|
23421
23311
|
children,
|
|
23312
|
+
className,
|
|
23422
23313
|
component = 'div',
|
|
23423
23314
|
components = {},
|
|
23424
23315
|
componentsProps = {},
|
|
23425
|
-
className,
|
|
23426
23316
|
invisible = false,
|
|
23427
23317
|
open,
|
|
23428
23318
|
slotProps = {},
|
|
23429
23319
|
slots = {},
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
TransitionComponent = Fade$1
|
|
23320
|
+
TransitionComponent = Fade$1,
|
|
23321
|
+
transitionDuration
|
|
23433
23322
|
} = props,
|
|
23434
23323
|
other = _objectWithoutPropertiesLoose(props, _excluded$1J);
|
|
23435
23324
|
const ownerState = _extends({}, props, {
|
|
@@ -23534,6 +23423,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23534
23423
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
23535
23424
|
*/
|
|
23536
23425
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
23426
|
+
/**
|
|
23427
|
+
* The component used for the transition.
|
|
23428
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
23429
|
+
* @default Fade
|
|
23430
|
+
*/
|
|
23431
|
+
TransitionComponent: PropTypes.elementType,
|
|
23537
23432
|
/**
|
|
23538
23433
|
* The duration for the transition, in milliseconds.
|
|
23539
23434
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -23546,11 +23441,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23546
23441
|
} ;
|
|
23547
23442
|
var Backdrop$1 = Backdrop;
|
|
23548
23443
|
|
|
23549
|
-
const shouldSpreadAdditionalProps = Slot => {
|
|
23550
|
-
return !Slot || !isHostComponent(Slot);
|
|
23551
|
-
};
|
|
23552
|
-
var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
|
|
23553
|
-
|
|
23554
23444
|
function getBadgeUtilityClass(slot) {
|
|
23555
23445
|
return generateUtilityClass('MuiBadge', slot);
|
|
23556
23446
|
}
|
|
@@ -23559,7 +23449,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23559
23449
|
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
|
|
23560
23450
|
var badgeClasses$1 = badgeClasses;
|
|
23561
23451
|
|
|
23562
|
-
const _excluded$1I = ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
|
23452
|
+
const _excluded$1I = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
|
23563
23453
|
const RADIUS_STANDARD = 10;
|
|
23564
23454
|
const RADIUS_DOT = 4;
|
|
23565
23455
|
const useUtilityClasses$1s = ownerState => {
|
|
@@ -23713,13 +23603,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23713
23603
|
horizontal: 'right'
|
|
23714
23604
|
},
|
|
23715
23605
|
className,
|
|
23716
|
-
component
|
|
23606
|
+
component,
|
|
23717
23607
|
components = {},
|
|
23718
23608
|
componentsProps = {},
|
|
23609
|
+
children,
|
|
23719
23610
|
overlap: overlapProp = 'rectangular',
|
|
23720
23611
|
color: colorProp = 'default',
|
|
23721
23612
|
invisible: invisibleProp = false,
|
|
23722
|
-
max,
|
|
23613
|
+
max: maxProp = 99,
|
|
23723
23614
|
badgeContent: badgeContentProp,
|
|
23724
23615
|
slots,
|
|
23725
23616
|
slotProps,
|
|
@@ -23727,73 +23618,71 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23727
23618
|
variant: variantProp = 'standard'
|
|
23728
23619
|
} = props,
|
|
23729
23620
|
other = _objectWithoutPropertiesLoose(props, _excluded$1I);
|
|
23621
|
+
const {
|
|
23622
|
+
badgeContent,
|
|
23623
|
+
invisible: invisibleFromHook,
|
|
23624
|
+
max,
|
|
23625
|
+
displayValue: displayValueFromHook
|
|
23626
|
+
} = useBadge({
|
|
23627
|
+
max: maxProp,
|
|
23628
|
+
invisible: invisibleProp,
|
|
23629
|
+
badgeContent: badgeContentProp,
|
|
23630
|
+
showZero
|
|
23631
|
+
});
|
|
23730
23632
|
const prevProps = usePreviousProps$1({
|
|
23731
23633
|
anchorOrigin: anchorOriginProp,
|
|
23732
23634
|
color: colorProp,
|
|
23733
23635
|
overlap: overlapProp,
|
|
23734
|
-
variant: variantProp
|
|
23636
|
+
variant: variantProp,
|
|
23637
|
+
badgeContent: badgeContentProp
|
|
23735
23638
|
});
|
|
23736
|
-
|
|
23737
|
-
if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
23738
|
-
invisible = true;
|
|
23739
|
-
}
|
|
23639
|
+
const invisible = invisibleFromHook || badgeContent == null && variantProp !== 'dot';
|
|
23740
23640
|
const {
|
|
23741
23641
|
color = colorProp,
|
|
23742
23642
|
overlap = overlapProp,
|
|
23743
23643
|
anchorOrigin = anchorOriginProp,
|
|
23744
23644
|
variant = variantProp
|
|
23745
23645
|
} = invisible ? prevProps : props;
|
|
23646
|
+
const displayValue = variant !== 'dot' ? displayValueFromHook : undefined;
|
|
23746
23647
|
const ownerState = _extends({}, props, {
|
|
23747
|
-
|
|
23648
|
+
badgeContent,
|
|
23748
23649
|
invisible,
|
|
23650
|
+
max,
|
|
23651
|
+
displayValue,
|
|
23652
|
+
showZero,
|
|
23653
|
+
anchorOrigin,
|
|
23749
23654
|
color,
|
|
23750
23655
|
overlap,
|
|
23751
23656
|
variant
|
|
23752
23657
|
});
|
|
23753
23658
|
const classes = useUtilityClasses$1s(ownerState);
|
|
23754
|
-
let displayValue;
|
|
23755
|
-
if (variant !== 'dot') {
|
|
23756
|
-
displayValue = badgeContentProp && Number(badgeContentProp) > max ? `${max}+` : badgeContentProp;
|
|
23757
|
-
}
|
|
23758
23659
|
|
|
23759
23660
|
// support both `slots` and `components` for backward compatibility
|
|
23760
23661
|
const RootSlot = (_ref = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components.Root) != null ? _ref : BadgeRoot;
|
|
23761
23662
|
const BadgeSlot = (_ref2 = (_slots$badge = slots == null ? void 0 : slots.badge) != null ? _slots$badge : components.Badge) != null ? _ref2 : BadgeBadge;
|
|
23762
23663
|
const rootSlotProps = (_slotProps$root = slotProps == null ? void 0 : slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
23763
23664
|
const badgeSlotProps = (_slotProps$badge = slotProps == null ? void 0 : slotProps.badge) != null ? _slotProps$badge : componentsProps.badge;
|
|
23764
|
-
|
|
23765
|
-
|
|
23766
|
-
|
|
23767
|
-
|
|
23768
|
-
|
|
23769
|
-
|
|
23770
|
-
|
|
23771
|
-
root: RootSlot,
|
|
23772
|
-
badge: BadgeSlot
|
|
23773
|
-
},
|
|
23774
|
-
className: clsx(rootSlotProps == null ? void 0 : rootSlotProps.className, classes.root, className),
|
|
23775
|
-
slotProps: {
|
|
23776
|
-
root: _extends({}, rootSlotProps, shouldSpreadAdditionalProps$1(RootSlot) && {
|
|
23777
|
-
as: component,
|
|
23778
|
-
ownerState: _extends({}, rootSlotProps == null ? void 0 : rootSlotProps.ownerState, {
|
|
23779
|
-
anchorOrigin,
|
|
23780
|
-
color,
|
|
23781
|
-
overlap,
|
|
23782
|
-
variant
|
|
23783
|
-
})
|
|
23784
|
-
}),
|
|
23785
|
-
badge: _extends({}, badgeSlotProps, {
|
|
23786
|
-
className: clsx(classes.badge, badgeSlotProps == null ? void 0 : badgeSlotProps.className)
|
|
23787
|
-
}, shouldSpreadAdditionalProps$1(BadgeSlot) && {
|
|
23788
|
-
ownerState: _extends({}, badgeSlotProps == null ? void 0 : badgeSlotProps.ownerState, {
|
|
23789
|
-
anchorOrigin,
|
|
23790
|
-
color,
|
|
23791
|
-
overlap,
|
|
23792
|
-
variant
|
|
23793
|
-
})
|
|
23794
|
-
})
|
|
23665
|
+
const rootProps = useSlotProps({
|
|
23666
|
+
elementType: RootSlot,
|
|
23667
|
+
externalSlotProps: rootSlotProps,
|
|
23668
|
+
externalForwardedProps: other,
|
|
23669
|
+
additionalProps: {
|
|
23670
|
+
ref,
|
|
23671
|
+
as: component
|
|
23795
23672
|
},
|
|
23796
|
-
|
|
23673
|
+
ownerState,
|
|
23674
|
+
className: clsx(rootSlotProps == null ? void 0 : rootSlotProps.className, classes.root, className)
|
|
23675
|
+
});
|
|
23676
|
+
const badgeProps = useSlotProps({
|
|
23677
|
+
elementType: BadgeSlot,
|
|
23678
|
+
externalSlotProps: badgeSlotProps,
|
|
23679
|
+
ownerState,
|
|
23680
|
+
className: clsx(classes.badge, badgeSlotProps == null ? void 0 : badgeSlotProps.className)
|
|
23681
|
+
});
|
|
23682
|
+
return /*#__PURE__*/jsxRuntime_2(RootSlot, _extends({}, rootProps, {
|
|
23683
|
+
children: [children, /*#__PURE__*/jsxRuntime_1(BadgeSlot, _extends({}, badgeProps, {
|
|
23684
|
+
children: displayValue
|
|
23685
|
+
}))]
|
|
23797
23686
|
}));
|
|
23798
23687
|
});
|
|
23799
23688
|
Badge.propTypes /* remove-proptypes */ = {
|
|
@@ -25917,7 +25806,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25917
25806
|
defaultChecked: defaultChecked,
|
|
25918
25807
|
className: classes.input,
|
|
25919
25808
|
disabled: disabled,
|
|
25920
|
-
id: hasLabelFor
|
|
25809
|
+
id: hasLabelFor ? id : undefined,
|
|
25921
25810
|
name: name,
|
|
25922
25811
|
onChange: handleInputChange,
|
|
25923
25812
|
readOnly: readOnly,
|
|
@@ -26982,7 +26871,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
26982
26871
|
const dialogClasses = generateUtilityClasses('MuiDialog', ['root', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperScrollPaper', 'paperScrollBody', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);
|
|
26983
26872
|
var dialogClasses$1 = dialogClasses;
|
|
26984
26873
|
|
|
26985
|
-
const DialogContext = /*#__PURE__*/
|
|
26874
|
+
const DialogContext = /*#__PURE__*/React__namespace.createContext({});
|
|
26986
26875
|
{
|
|
26987
26876
|
DialogContext.displayName = 'DialogContext';
|
|
26988
26877
|
}
|
|
@@ -30947,9 +30836,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30947
30836
|
*/
|
|
30948
30837
|
|
|
30949
30838
|
function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
|
|
30950
|
-
const supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
30951
30839
|
const [match, setMatch] = React__namespace.useState(() => {
|
|
30952
|
-
if (noSsr &&
|
|
30840
|
+
if (noSsr && matchMedia) {
|
|
30953
30841
|
return matchMedia(query).matches;
|
|
30954
30842
|
}
|
|
30955
30843
|
if (ssrMatchMedia) {
|
|
@@ -30962,7 +30850,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30962
30850
|
});
|
|
30963
30851
|
useEnhancedEffect$1(() => {
|
|
30964
30852
|
let active = true;
|
|
30965
|
-
if (!
|
|
30853
|
+
if (!matchMedia) {
|
|
30966
30854
|
return undefined;
|
|
30967
30855
|
}
|
|
30968
30856
|
const queryList = matchMedia(query);
|
|
@@ -30981,15 +30869,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30981
30869
|
active = false;
|
|
30982
30870
|
queryList.removeListener(updateMatch);
|
|
30983
30871
|
};
|
|
30984
|
-
}, [query, matchMedia
|
|
30872
|
+
}, [query, matchMedia]);
|
|
30985
30873
|
return match;
|
|
30986
30874
|
}
|
|
30987
30875
|
|
|
30988
30876
|
// eslint-disable-next-line no-useless-concat -- Workaround for https://github.com/webpack/webpack/issues/14814
|
|
30989
30877
|
const maybeReactUseSyncExternalStore = React__namespace['useSyncExternalStore' + ''];
|
|
30990
|
-
function useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia) {
|
|
30878
|
+
function useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
|
|
30991
30879
|
const getDefaultSnapshot = React__namespace.useCallback(() => defaultMatches, [defaultMatches]);
|
|
30992
30880
|
const getServerSnapshot = React__namespace.useMemo(() => {
|
|
30881
|
+
if (noSsr && matchMedia) {
|
|
30882
|
+
return () => matchMedia(query).matches;
|
|
30883
|
+
}
|
|
30993
30884
|
if (ssrMatchMedia !== null) {
|
|
30994
30885
|
const {
|
|
30995
30886
|
matches
|
|
@@ -30997,7 +30888,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30997
30888
|
return () => matches;
|
|
30998
30889
|
}
|
|
30999
30890
|
return getDefaultSnapshot;
|
|
31000
|
-
}, [getDefaultSnapshot, query, ssrMatchMedia]);
|
|
30891
|
+
}, [getDefaultSnapshot, query, ssrMatchMedia, noSsr, matchMedia]);
|
|
31001
30892
|
const [getSnapshot, subscribe] = React__namespace.useMemo(() => {
|
|
31002
30893
|
if (matchMedia === null) {
|
|
31003
30894
|
return [getDefaultSnapshot, () => () => {}];
|
|
@@ -31025,7 +30916,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31025
30916
|
defaultMatches = false,
|
|
31026
30917
|
matchMedia = supportMatchMedia ? window.matchMedia : null,
|
|
31027
30918
|
ssrMatchMedia = null,
|
|
31028
|
-
noSsr
|
|
30919
|
+
noSsr = false
|
|
31029
30920
|
} = getThemeProps({
|
|
31030
30921
|
name: 'MuiUseMediaQuery',
|
|
31031
30922
|
props: options,
|
|
@@ -39813,6 +39704,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39813
39704
|
} ;
|
|
39814
39705
|
var Skeleton$1 = Skeleton;
|
|
39815
39706
|
|
|
39707
|
+
const shouldSpreadAdditionalProps = Slot => {
|
|
39708
|
+
return !Slot || !isHostComponent(Slot);
|
|
39709
|
+
};
|
|
39710
|
+
var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
|
|
39711
|
+
|
|
39816
39712
|
function getSliderUtilityClass(slot) {
|
|
39817
39713
|
return generateUtilityClass('MuiSlider', slot);
|
|
39818
39714
|
}
|
|
@@ -44617,7 +44513,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44617
44513
|
}
|
|
44618
44514
|
claimedSwipeInstance = null;
|
|
44619
44515
|
touchDetected.current = false;
|
|
44620
|
-
|
|
44516
|
+
ReactDOM__namespace.flushSync(() => {
|
|
44621
44517
|
setMaybeSwiping(false);
|
|
44622
44518
|
});
|
|
44623
44519
|
|
|
@@ -44669,7 +44565,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44669
44565
|
// this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.
|
|
44670
44566
|
// so do this change on first touchmove instead of touchstart
|
|
44671
44567
|
if (force || !(disableDiscovery && allowSwipeInChildren)) {
|
|
44672
|
-
|
|
44568
|
+
ReactDOM__namespace.flushSync(() => {
|
|
44673
44569
|
setMaybeSwiping(true);
|
|
44674
44570
|
});
|
|
44675
44571
|
}
|