@mui/material 5.8.0 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.js +1 -0
- 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/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 +76 -76
- package/ButtonBase/TouchRipple.js +5 -5
- 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 +68 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +3 -1
- 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/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +7 -1
- 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/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- 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/Paper.js +20 -15
- package/Paper/index.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/Radio/Radio.js +4 -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 +2 -2
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +1 -5
- 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 +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +2 -2
- 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/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/Alert/Alert.js +1 -0
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/TouchRipple.js +5 -5
- package/legacy/Fab/Fab.js +3 -1
- package/legacy/ListItemButton/ListItemButton.js +7 -1
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/Paper/Paper.js +10 -7
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/Select/SelectInput.js +2 -2
- package/legacy/Slider/Slider.js +1 -10
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/styles/createMixins.js +4 -2
- package/legacy/styles/experimental_extendTheme.js +22 -3
- package/locale/index.d.ts +71 -71
- package/modern/Alert/Alert.js +1 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/TouchRipple.js +5 -5
- package/modern/Fab/Fab.js +3 -1
- package/modern/ListItemButton/ListItemButton.js +7 -1
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/Paper/Paper.js +8 -7
- package/modern/Radio/Radio.js +4 -4
- package/modern/Select/SelectInput.js +2 -2
- package/modern/Slider/Slider.js +1 -5
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/index.js +1 -1
- package/modern/styles/createMixins.js +4 -2
- package/modern/styles/experimental_extendTheme.js +18 -2
- package/node/Alert/Alert.js +1 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/ButtonBase/TouchRipple.js +5 -5
- package/node/Fab/Fab.js +3 -1
- package/node/ListItemButton/ListItemButton.js +7 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/Paper/Paper.js +22 -14
- package/node/Radio/Radio.js +4 -4
- package/node/Select/SelectInput.js +2 -2
- package/node/Slider/Slider.js +1 -5
- package/node/Tabs/Tabs.js +2 -2
- package/node/index.js +1 -1
- package/node/styles/createMixins.js +4 -2
- package/node/styles/experimental_extendTheme.js +20 -3
- package/package.json +3 -3
- package/styles/createMixins.js +4 -2
- package/styles/createPalette.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +30 -0
- package/styles/experimental_extendTheme.js +19 -3
- package/styles/index.d.ts +1 -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 +244 -213
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- 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.8.
|
|
1
|
+
/** @license MUI v5.8.1
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -5771,13 +5771,13 @@
|
|
|
5771
5771
|
}, {});
|
|
5772
5772
|
}
|
|
5773
5773
|
|
|
5774
|
-
function getPath(obj, path) {
|
|
5774
|
+
function getPath(obj, path, checkVars = true) {
|
|
5775
5775
|
if (!path || typeof path !== 'string') {
|
|
5776
5776
|
return null;
|
|
5777
5777
|
} // Check if CSS variables are used
|
|
5778
5778
|
|
|
5779
5779
|
|
|
5780
|
-
if (obj && obj.vars) {
|
|
5780
|
+
if (obj && obj.vars && checkVars) {
|
|
5781
5781
|
const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);
|
|
5782
5782
|
|
|
5783
5783
|
if (val != null) {
|
|
@@ -5932,7 +5932,7 @@
|
|
|
5932
5932
|
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
5933
5933
|
var _getPath;
|
|
5934
5934
|
|
|
5935
|
-
const themeSpacing = (_getPath = getPath(theme, themeKey)) != null ? _getPath : defaultValue;
|
|
5935
|
+
const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;
|
|
5936
5936
|
|
|
5937
5937
|
if (typeof themeSpacing === 'number') {
|
|
5938
5938
|
return abs => {
|
|
@@ -8111,7 +8111,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8111
8111
|
vars: rootVars,
|
|
8112
8112
|
getCssVar: createGetCssVar(prefix)
|
|
8113
8113
|
});
|
|
8114
|
-
const
|
|
8114
|
+
const defaultColorSchemeStyleSheet = {};
|
|
8115
|
+
const otherColorSchemesStyleSheet = {};
|
|
8115
8116
|
Object.entries(colorSchemes).forEach(([key, scheme]) => {
|
|
8116
8117
|
const {
|
|
8117
8118
|
css,
|
|
@@ -8147,9 +8148,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8147
8148
|
})();
|
|
8148
8149
|
|
|
8149
8150
|
if (key === resolvedDefaultColorScheme) {
|
|
8150
|
-
|
|
8151
|
+
defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
|
|
8151
8152
|
} else {
|
|
8152
|
-
|
|
8153
|
+
otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
|
|
8153
8154
|
}
|
|
8154
8155
|
});
|
|
8155
8156
|
React__namespace.useEffect(() => {
|
|
@@ -8216,7 +8217,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8216
8217
|
[colorSchemeSelector]: rootCss
|
|
8217
8218
|
}
|
|
8218
8219
|
}), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
|
|
8219
|
-
styles:
|
|
8220
|
+
styles: defaultColorSchemeStyleSheet
|
|
8221
|
+
}), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
|
|
8222
|
+
styles: otherColorSchemesStyleSheet
|
|
8220
8223
|
}), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
|
|
8221
8224
|
theme: resolveTheme ? resolveTheme(theme) : theme,
|
|
8222
8225
|
children: children
|
|
@@ -8860,7 +8863,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8860
8863
|
if (reason === 'keyboard') {
|
|
8861
8864
|
option.classList.add('Mui-focusVisible');
|
|
8862
8865
|
} // Scroll active descendant into view.
|
|
8863
|
-
// Logic copied from https://www.w3.org/
|
|
8866
|
+
// Logic copied from https://www.w3.org/WAI/ARIA/apg/example-index/combobox/js/select-only.js
|
|
8864
8867
|
//
|
|
8865
8868
|
// Consider this API instead once it has a better browser support:
|
|
8866
8869
|
// .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
|
|
@@ -13909,6 +13912,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13909
13912
|
newValue
|
|
13910
13913
|
} = getFingerNewValue({
|
|
13911
13914
|
finger,
|
|
13915
|
+
move: true,
|
|
13912
13916
|
values
|
|
13913
13917
|
});
|
|
13914
13918
|
setActive(-1);
|
|
@@ -14201,7 +14205,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14201
14205
|
|
|
14202
14206
|
|
|
14203
14207
|
const ownerState = _extends({}, props, {
|
|
14204
|
-
|
|
14208
|
+
marks: marksProp,
|
|
14205
14209
|
classes: classesProp,
|
|
14206
14210
|
disabled,
|
|
14207
14211
|
isRtl,
|
|
@@ -14265,7 +14269,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14265
14269
|
})), /*#__PURE__*/jsxRuntime_1(Track, _extends({}, trackProps, {
|
|
14266
14270
|
className: clsx(classes.track, trackProps.className),
|
|
14267
14271
|
style: _extends({}, trackStyle, trackProps.style)
|
|
14268
|
-
})), marks.map((mark, index) => {
|
|
14272
|
+
})), marks.filter(mark => mark.value >= min && mark.value <= max).map((mark, index) => {
|
|
14269
14273
|
const percent = valueToPercent(mark.value, min, max);
|
|
14270
14274
|
const style = axisProps[axis].offset(percent);
|
|
14271
14275
|
let markActive;
|
|
@@ -14814,8 +14818,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14814
14818
|
return _extends({
|
|
14815
14819
|
toolbar: {
|
|
14816
14820
|
minHeight: 56,
|
|
14817
|
-
[
|
|
14818
|
-
|
|
14821
|
+
[breakpoints.up('xs')]: {
|
|
14822
|
+
'@media (orientation: landscape)': {
|
|
14823
|
+
minHeight: 48
|
|
14824
|
+
}
|
|
14819
14825
|
},
|
|
14820
14826
|
[breakpoints.up('sm')]: {
|
|
14821
14827
|
minHeight: 64
|
|
@@ -15690,15 +15696,194 @@ You have to import it from @mui/styles.
|
|
|
15690
15696
|
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
15691
15697
|
}
|
|
15692
15698
|
|
|
15693
|
-
|
|
15699
|
+
function getPaperUtilityClass(slot) {
|
|
15700
|
+
return generateUtilityClass('MuiPaper', slot);
|
|
15701
|
+
}
|
|
15702
|
+
const paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
|
15703
|
+
var paperClasses$1 = paperClasses;
|
|
15704
|
+
|
|
15705
|
+
const _excluded$23 = ["className", "component", "elevation", "square", "variant"];
|
|
15706
|
+
const getOverlayAlpha = elevation => {
|
|
15707
|
+
let alphaValue;
|
|
15708
|
+
|
|
15709
|
+
if (elevation < 1) {
|
|
15710
|
+
alphaValue = 5.11916 * elevation ** 2;
|
|
15711
|
+
} else {
|
|
15712
|
+
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
15713
|
+
}
|
|
15714
|
+
|
|
15715
|
+
return (alphaValue / 100).toFixed(2);
|
|
15716
|
+
};
|
|
15717
|
+
|
|
15718
|
+
const useUtilityClasses$1L = ownerState => {
|
|
15719
|
+
const {
|
|
15720
|
+
square,
|
|
15721
|
+
elevation,
|
|
15722
|
+
variant,
|
|
15723
|
+
classes
|
|
15724
|
+
} = ownerState;
|
|
15725
|
+
const slots = {
|
|
15726
|
+
root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
|
|
15727
|
+
};
|
|
15728
|
+
return composeClasses(slots, getPaperUtilityClass, classes);
|
|
15729
|
+
};
|
|
15730
|
+
|
|
15731
|
+
const PaperRoot = styled$1('div', {
|
|
15732
|
+
name: 'MuiPaper',
|
|
15733
|
+
slot: 'Root',
|
|
15734
|
+
overridesResolver: (props, styles) => {
|
|
15735
|
+
const {
|
|
15736
|
+
ownerState
|
|
15737
|
+
} = props;
|
|
15738
|
+
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
|
|
15739
|
+
}
|
|
15740
|
+
})(({
|
|
15741
|
+
theme,
|
|
15742
|
+
ownerState
|
|
15743
|
+
}) => {
|
|
15744
|
+
var _theme$vars$overlays;
|
|
15745
|
+
|
|
15746
|
+
return _extends({
|
|
15747
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
15748
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
15749
|
+
transition: theme.transitions.create('box-shadow')
|
|
15750
|
+
}, !ownerState.square && {
|
|
15751
|
+
borderRadius: theme.shape.borderRadius
|
|
15752
|
+
}, ownerState.variant === 'outlined' && {
|
|
15753
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
15754
|
+
}, ownerState.variant === 'elevation' && _extends({
|
|
15755
|
+
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
15756
|
+
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
15757
|
+
backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
|
|
15758
|
+
}, theme.vars && {
|
|
15759
|
+
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
|
15760
|
+
}));
|
|
15761
|
+
});
|
|
15762
|
+
const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
|
|
15763
|
+
const props = useThemeProps({
|
|
15764
|
+
props: inProps,
|
|
15765
|
+
name: 'MuiPaper'
|
|
15766
|
+
});
|
|
15767
|
+
|
|
15768
|
+
const {
|
|
15769
|
+
className,
|
|
15770
|
+
component = 'div',
|
|
15771
|
+
elevation = 1,
|
|
15772
|
+
square = false,
|
|
15773
|
+
variant = 'elevation'
|
|
15774
|
+
} = props,
|
|
15775
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$23);
|
|
15776
|
+
|
|
15777
|
+
const ownerState = _extends({}, props, {
|
|
15778
|
+
component,
|
|
15779
|
+
elevation,
|
|
15780
|
+
square,
|
|
15781
|
+
variant
|
|
15782
|
+
});
|
|
15783
|
+
|
|
15784
|
+
const classes = useUtilityClasses$1L(ownerState);
|
|
15785
|
+
|
|
15786
|
+
{
|
|
15787
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
15788
|
+
const theme = useTheme();
|
|
15789
|
+
|
|
15790
|
+
if (theme.shadows[elevation] === undefined) {
|
|
15791
|
+
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
|
15792
|
+
}
|
|
15793
|
+
}
|
|
15794
|
+
|
|
15795
|
+
return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
|
|
15796
|
+
as: component,
|
|
15797
|
+
ownerState: ownerState,
|
|
15798
|
+
className: clsx(classes.root, className),
|
|
15799
|
+
ref: ref
|
|
15800
|
+
}, other));
|
|
15801
|
+
});
|
|
15802
|
+
Paper.propTypes
|
|
15803
|
+
/* remove-proptypes */
|
|
15804
|
+
= {
|
|
15805
|
+
// ----------------------------- Warning --------------------------------
|
|
15806
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15807
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
15808
|
+
// ----------------------------------------------------------------------
|
|
15809
|
+
|
|
15810
|
+
/**
|
|
15811
|
+
* The content of the component.
|
|
15812
|
+
*/
|
|
15813
|
+
children: PropTypes.node,
|
|
15814
|
+
|
|
15815
|
+
/**
|
|
15816
|
+
* Override or extend the styles applied to the component.
|
|
15817
|
+
*/
|
|
15818
|
+
classes: PropTypes.object,
|
|
15819
|
+
|
|
15820
|
+
/**
|
|
15821
|
+
* @ignore
|
|
15822
|
+
*/
|
|
15823
|
+
className: PropTypes.string,
|
|
15824
|
+
|
|
15825
|
+
/**
|
|
15826
|
+
* The component used for the root node.
|
|
15827
|
+
* Either a string to use a HTML element or a component.
|
|
15828
|
+
*/
|
|
15829
|
+
component: PropTypes.elementType,
|
|
15830
|
+
|
|
15831
|
+
/**
|
|
15832
|
+
* Shadow depth, corresponds to `dp` in the spec.
|
|
15833
|
+
* It accepts values between 0 and 24 inclusive.
|
|
15834
|
+
* @default 1
|
|
15835
|
+
*/
|
|
15836
|
+
elevation: chainPropTypes(integerPropType, props => {
|
|
15837
|
+
const {
|
|
15838
|
+
elevation,
|
|
15839
|
+
variant
|
|
15840
|
+
} = props;
|
|
15841
|
+
|
|
15842
|
+
if (elevation > 0 && variant === 'outlined') {
|
|
15843
|
+
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
15844
|
+
}
|
|
15845
|
+
|
|
15846
|
+
return null;
|
|
15847
|
+
}),
|
|
15848
|
+
|
|
15849
|
+
/**
|
|
15850
|
+
* If `true`, rounded corners are disabled.
|
|
15851
|
+
* @default false
|
|
15852
|
+
*/
|
|
15853
|
+
square: PropTypes.bool,
|
|
15854
|
+
|
|
15855
|
+
/**
|
|
15856
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
15857
|
+
*/
|
|
15858
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
15859
|
+
|
|
15860
|
+
/**
|
|
15861
|
+
* The variant to use.
|
|
15862
|
+
* @default 'elevation'
|
|
15863
|
+
*/
|
|
15864
|
+
variant: PropTypes
|
|
15865
|
+
/* @typescript-to-proptypes-ignore */
|
|
15866
|
+
.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
|
|
15867
|
+
} ;
|
|
15868
|
+
var Paper$1 = Paper;
|
|
15869
|
+
|
|
15870
|
+
const _excluded$22 = ["colorSchemes"],
|
|
15694
15871
|
_excluded2$9 = ["palette"];
|
|
15872
|
+
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
15873
|
+
if (index === 0) {
|
|
15874
|
+
return undefined;
|
|
15875
|
+
}
|
|
15876
|
+
|
|
15877
|
+
const overlay = getOverlayAlpha(index);
|
|
15878
|
+
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
15879
|
+
});
|
|
15695
15880
|
function extendTheme(options = {}, ...args) {
|
|
15696
|
-
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
|
|
15881
|
+
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
15697
15882
|
|
|
15698
15883
|
const {
|
|
15699
15884
|
colorSchemes: colorSchemesInput = {}
|
|
15700
15885
|
} = options,
|
|
15701
|
-
input = _objectWithoutPropertiesLoose(options, _excluded$
|
|
15886
|
+
input = _objectWithoutPropertiesLoose(options, _excluded$22);
|
|
15702
15887
|
|
|
15703
15888
|
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
15704
15889
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
@@ -15723,14 +15908,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15723
15908
|
opacity: _extends({
|
|
15724
15909
|
placeholder: 0.42,
|
|
15725
15910
|
inputTouchBottomLine: 0.42
|
|
15726
|
-
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
|
|
15911
|
+
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
|
|
15912
|
+
overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
|
|
15727
15913
|
}),
|
|
15728
15914
|
dark: _extends({}, colorSchemesInput.dark, {
|
|
15729
15915
|
palette: darkPalette,
|
|
15730
15916
|
opacity: _extends({
|
|
15731
15917
|
placeholder: 0.5,
|
|
15732
15918
|
inputTouchBottomLine: 0.7
|
|
15733
|
-
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
|
|
15919
|
+
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
|
|
15920
|
+
overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
|
|
15734
15921
|
})
|
|
15735
15922
|
})
|
|
15736
15923
|
});
|
|
@@ -15781,6 +15968,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15781
15968
|
|
|
15782
15969
|
if (colors.secondary) {
|
|
15783
15970
|
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
15971
|
+
} // Action colors: action.activeChannel
|
|
15972
|
+
|
|
15973
|
+
|
|
15974
|
+
if (colors.active) {
|
|
15975
|
+
palette[color].activeChannel = colorChannel(colors.active);
|
|
15784
15976
|
}
|
|
15785
15977
|
});
|
|
15786
15978
|
});
|
|
@@ -15816,9 +16008,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15816
16008
|
const svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
15817
16009
|
var svgIconClasses$1 = svgIconClasses;
|
|
15818
16010
|
|
|
15819
|
-
const _excluded$
|
|
16011
|
+
const _excluded$21 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
15820
16012
|
|
|
15821
|
-
const useUtilityClasses$
|
|
16013
|
+
const useUtilityClasses$1K = ownerState => {
|
|
15822
16014
|
const {
|
|
15823
16015
|
color,
|
|
15824
16016
|
fontSize,
|
|
@@ -15886,7 +16078,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15886
16078
|
titleAccess,
|
|
15887
16079
|
viewBox = '0 0 24 24'
|
|
15888
16080
|
} = props,
|
|
15889
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16081
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$21);
|
|
15890
16082
|
|
|
15891
16083
|
const ownerState = _extends({}, props, {
|
|
15892
16084
|
color,
|
|
@@ -15903,7 +16095,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15903
16095
|
more.viewBox = viewBox;
|
|
15904
16096
|
}
|
|
15905
16097
|
|
|
15906
|
-
const classes = useUtilityClasses$
|
|
16098
|
+
const classes = useUtilityClasses$1K(ownerState);
|
|
15907
16099
|
return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
|
|
15908
16100
|
as: component,
|
|
15909
16101
|
className: clsx(classes.root, className),
|
|
@@ -17038,9 +17230,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17038
17230
|
const collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
|
|
17039
17231
|
var collapseClasses$1 = collapseClasses;
|
|
17040
17232
|
|
|
17041
|
-
const _excluded$
|
|
17233
|
+
const _excluded$20 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
|
|
17042
17234
|
|
|
17043
|
-
const useUtilityClasses$
|
|
17235
|
+
const useUtilityClasses$1J = ownerState => {
|
|
17044
17236
|
const {
|
|
17045
17237
|
orientation,
|
|
17046
17238
|
classes
|
|
@@ -17141,14 +17333,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17141
17333
|
// eslint-disable-next-line react/prop-types
|
|
17142
17334
|
TransitionComponent = Transition$1
|
|
17143
17335
|
} = props,
|
|
17144
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
17336
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$20);
|
|
17145
17337
|
|
|
17146
17338
|
const ownerState = _extends({}, props, {
|
|
17147
17339
|
orientation,
|
|
17148
17340
|
collapsedSize: collapsedSizeProp
|
|
17149
17341
|
});
|
|
17150
17342
|
|
|
17151
|
-
const classes = useUtilityClasses$
|
|
17343
|
+
const classes = useUtilityClasses$1J(ownerState);
|
|
17152
17344
|
const theme = useTheme();
|
|
17153
17345
|
const timer = React__namespace.useRef();
|
|
17154
17346
|
const wrapperRef = React__namespace.useRef(null);
|
|
@@ -17442,172 +17634,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17442
17634
|
Collapse.muiSupportAuto = true;
|
|
17443
17635
|
var Collapse$1 = Collapse;
|
|
17444
17636
|
|
|
17445
|
-
function getPaperUtilityClass(slot) {
|
|
17446
|
-
return generateUtilityClass('MuiPaper', slot);
|
|
17447
|
-
}
|
|
17448
|
-
const paperClasses = generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
|
17449
|
-
var paperClasses$1 = paperClasses;
|
|
17450
|
-
|
|
17451
|
-
const _excluded$20 = ["className", "component", "elevation", "square", "variant"];
|
|
17452
|
-
|
|
17453
|
-
const getOverlayAlpha = elevation => {
|
|
17454
|
-
let alphaValue;
|
|
17455
|
-
|
|
17456
|
-
if (elevation < 1) {
|
|
17457
|
-
alphaValue = 5.11916 * elevation ** 2;
|
|
17458
|
-
} else {
|
|
17459
|
-
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
17460
|
-
}
|
|
17461
|
-
|
|
17462
|
-
return (alphaValue / 100).toFixed(2);
|
|
17463
|
-
};
|
|
17464
|
-
|
|
17465
|
-
const useUtilityClasses$1J = ownerState => {
|
|
17466
|
-
const {
|
|
17467
|
-
square,
|
|
17468
|
-
elevation,
|
|
17469
|
-
variant,
|
|
17470
|
-
classes
|
|
17471
|
-
} = ownerState;
|
|
17472
|
-
const slots = {
|
|
17473
|
-
root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
|
|
17474
|
-
};
|
|
17475
|
-
return composeClasses(slots, getPaperUtilityClass, classes);
|
|
17476
|
-
};
|
|
17477
|
-
|
|
17478
|
-
const PaperRoot = styled$1('div', {
|
|
17479
|
-
name: 'MuiPaper',
|
|
17480
|
-
slot: 'Root',
|
|
17481
|
-
overridesResolver: (props, styles) => {
|
|
17482
|
-
const {
|
|
17483
|
-
ownerState
|
|
17484
|
-
} = props;
|
|
17485
|
-
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
|
|
17486
|
-
}
|
|
17487
|
-
})(({
|
|
17488
|
-
theme,
|
|
17489
|
-
ownerState
|
|
17490
|
-
}) => _extends({
|
|
17491
|
-
backgroundColor: theme.palette.background.paper,
|
|
17492
|
-
color: theme.palette.text.primary,
|
|
17493
|
-
transition: theme.transitions.create('box-shadow')
|
|
17494
|
-
}, !ownerState.square && {
|
|
17495
|
-
borderRadius: theme.shape.borderRadius
|
|
17496
|
-
}, ownerState.variant === 'outlined' && {
|
|
17497
|
-
border: `1px solid ${theme.palette.divider}`
|
|
17498
|
-
}, ownerState.variant === 'elevation' && _extends({
|
|
17499
|
-
boxShadow: theme.shadows[ownerState.elevation]
|
|
17500
|
-
}, theme.palette.mode === 'dark' && {
|
|
17501
|
-
backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
|
|
17502
|
-
})));
|
|
17503
|
-
const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
|
|
17504
|
-
const props = useThemeProps({
|
|
17505
|
-
props: inProps,
|
|
17506
|
-
name: 'MuiPaper'
|
|
17507
|
-
});
|
|
17508
|
-
|
|
17509
|
-
const {
|
|
17510
|
-
className,
|
|
17511
|
-
component = 'div',
|
|
17512
|
-
elevation = 1,
|
|
17513
|
-
square = false,
|
|
17514
|
-
variant = 'elevation'
|
|
17515
|
-
} = props,
|
|
17516
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$20);
|
|
17517
|
-
|
|
17518
|
-
const ownerState = _extends({}, props, {
|
|
17519
|
-
component,
|
|
17520
|
-
elevation,
|
|
17521
|
-
square,
|
|
17522
|
-
variant
|
|
17523
|
-
});
|
|
17524
|
-
|
|
17525
|
-
const classes = useUtilityClasses$1J(ownerState);
|
|
17526
|
-
|
|
17527
|
-
{
|
|
17528
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
17529
|
-
const theme = useTheme();
|
|
17530
|
-
|
|
17531
|
-
if (theme.shadows[elevation] === undefined) {
|
|
17532
|
-
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join('\n'));
|
|
17533
|
-
}
|
|
17534
|
-
}
|
|
17535
|
-
|
|
17536
|
-
return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
|
|
17537
|
-
as: component,
|
|
17538
|
-
ownerState: ownerState,
|
|
17539
|
-
className: clsx(classes.root, className),
|
|
17540
|
-
ref: ref
|
|
17541
|
-
}, other));
|
|
17542
|
-
});
|
|
17543
|
-
Paper.propTypes
|
|
17544
|
-
/* remove-proptypes */
|
|
17545
|
-
= {
|
|
17546
|
-
// ----------------------------- Warning --------------------------------
|
|
17547
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
17548
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
17549
|
-
// ----------------------------------------------------------------------
|
|
17550
|
-
|
|
17551
|
-
/**
|
|
17552
|
-
* The content of the component.
|
|
17553
|
-
*/
|
|
17554
|
-
children: PropTypes.node,
|
|
17555
|
-
|
|
17556
|
-
/**
|
|
17557
|
-
* Override or extend the styles applied to the component.
|
|
17558
|
-
*/
|
|
17559
|
-
classes: PropTypes.object,
|
|
17560
|
-
|
|
17561
|
-
/**
|
|
17562
|
-
* @ignore
|
|
17563
|
-
*/
|
|
17564
|
-
className: PropTypes.string,
|
|
17565
|
-
|
|
17566
|
-
/**
|
|
17567
|
-
* The component used for the root node.
|
|
17568
|
-
* Either a string to use a HTML element or a component.
|
|
17569
|
-
*/
|
|
17570
|
-
component: PropTypes.elementType,
|
|
17571
|
-
|
|
17572
|
-
/**
|
|
17573
|
-
* Shadow depth, corresponds to `dp` in the spec.
|
|
17574
|
-
* It accepts values between 0 and 24 inclusive.
|
|
17575
|
-
* @default 1
|
|
17576
|
-
*/
|
|
17577
|
-
elevation: chainPropTypes(integerPropType, props => {
|
|
17578
|
-
const {
|
|
17579
|
-
elevation,
|
|
17580
|
-
variant
|
|
17581
|
-
} = props;
|
|
17582
|
-
|
|
17583
|
-
if (elevation > 0 && variant === 'outlined') {
|
|
17584
|
-
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
17585
|
-
}
|
|
17586
|
-
|
|
17587
|
-
return null;
|
|
17588
|
-
}),
|
|
17589
|
-
|
|
17590
|
-
/**
|
|
17591
|
-
* If `true`, rounded corners are disabled.
|
|
17592
|
-
* @default false
|
|
17593
|
-
*/
|
|
17594
|
-
square: PropTypes.bool,
|
|
17595
|
-
|
|
17596
|
-
/**
|
|
17597
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
17598
|
-
*/
|
|
17599
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
17600
|
-
|
|
17601
|
-
/**
|
|
17602
|
-
* The variant to use.
|
|
17603
|
-
* @default 'elevation'
|
|
17604
|
-
*/
|
|
17605
|
-
variant: PropTypes
|
|
17606
|
-
/* @typescript-to-proptypes-ignore */
|
|
17607
|
-
.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
|
|
17608
|
-
} ;
|
|
17609
|
-
var Paper$1 = Paper;
|
|
17610
|
-
|
|
17611
17637
|
/**
|
|
17612
17638
|
* @ignore - internal component.
|
|
17613
17639
|
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
|
|
@@ -18349,12 +18375,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18349
18375
|
|
|
18350
18376
|
} = options;
|
|
18351
18377
|
|
|
18352
|
-
if (event.type === 'mousedown' && ignoringMouseDown.current) {
|
|
18378
|
+
if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
|
|
18353
18379
|
ignoringMouseDown.current = false;
|
|
18354
18380
|
return;
|
|
18355
18381
|
}
|
|
18356
18382
|
|
|
18357
|
-
if (event.type === 'touchstart') {
|
|
18383
|
+
if ((event == null ? void 0 : event.type) === 'touchstart') {
|
|
18358
18384
|
ignoringMouseDown.current = true;
|
|
18359
18385
|
}
|
|
18360
18386
|
|
|
@@ -18370,7 +18396,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18370
18396
|
let rippleY;
|
|
18371
18397
|
let rippleSize;
|
|
18372
18398
|
|
|
18373
|
-
if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
18399
|
+
if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
18374
18400
|
rippleX = Math.round(rect.width / 2);
|
|
18375
18401
|
rippleY = Math.round(rect.height / 2);
|
|
18376
18402
|
} else {
|
|
@@ -18395,7 +18421,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18395
18421
|
} // Touche devices
|
|
18396
18422
|
|
|
18397
18423
|
|
|
18398
|
-
if (event.touches) {
|
|
18424
|
+
if (event != null && event.touches) {
|
|
18399
18425
|
// check that this isn't another touchstart due to multitouch
|
|
18400
18426
|
// otherwise we will only clear a single timer when unmounting while two
|
|
18401
18427
|
// are running
|
|
@@ -18438,7 +18464,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18438
18464
|
clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
|
|
18439
18465
|
// We still want to show ripple effect.
|
|
18440
18466
|
|
|
18441
|
-
if (event.type === 'touchend' && startTimerCommit.current) {
|
|
18467
|
+
if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
|
|
18442
18468
|
startTimerCommit.current();
|
|
18443
18469
|
startTimerCommit.current = null;
|
|
18444
18470
|
startTimer.current = setTimeout(() => {
|
|
@@ -19619,6 +19645,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19619
19645
|
className: classes.message,
|
|
19620
19646
|
children: children
|
|
19621
19647
|
}), action != null ? /*#__PURE__*/jsxRuntime_1(AlertAction, {
|
|
19648
|
+
ownerState: ownerState,
|
|
19622
19649
|
className: classes.action,
|
|
19623
19650
|
children: action
|
|
19624
19651
|
}) : null, action == null && onClose ? /*#__PURE__*/jsxRuntime_1(AlertAction, {
|
|
@@ -29407,7 +29434,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29407
29434
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
29408
29435
|
* @default 'default'
|
|
29409
29436
|
*/
|
|
29410
|
-
color: PropTypes
|
|
29437
|
+
color: PropTypes
|
|
29438
|
+
/* @typescript-to-proptypes-ignore */
|
|
29439
|
+
.oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
|
|
29411
29440
|
|
|
29412
29441
|
/**
|
|
29413
29442
|
* The component used for the root node.
|
|
@@ -34797,7 +34826,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34797
34826
|
value: childContext,
|
|
34798
34827
|
children: /*#__PURE__*/jsxRuntime_1(ListItemButtonRoot, _extends({
|
|
34799
34828
|
ref: handleRef,
|
|
34800
|
-
|
|
34829
|
+
href: other.href || other.to,
|
|
34830
|
+
component: (other.href || other.to) && component === 'div' ? 'a' : component,
|
|
34801
34831
|
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
34802
34832
|
ownerState: ownerState
|
|
34803
34833
|
}, other, {
|
|
@@ -34879,6 +34909,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
34879
34909
|
*/
|
|
34880
34910
|
focusVisibleClassName: PropTypes.string,
|
|
34881
34911
|
|
|
34912
|
+
/**
|
|
34913
|
+
* @ignore
|
|
34914
|
+
*/
|
|
34915
|
+
href: PropTypes.string,
|
|
34916
|
+
|
|
34882
34917
|
/**
|
|
34883
34918
|
* Use to apply selected styling.
|
|
34884
34919
|
* @default false
|
|
@@ -35845,7 +35880,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
35845
35880
|
return false;
|
|
35846
35881
|
}
|
|
35847
35882
|
/**
|
|
35848
|
-
* A permanently displayed menu following https://www.w3.org/
|
|
35883
|
+
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
|
|
35849
35884
|
* It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
|
|
35850
35885
|
* use it separately you need to move focus into the component manually. Once
|
|
35851
35886
|
* the focus is placed inside the component it is fully keyboard accessible.
|
|
@@ -39033,9 +39068,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39033
39068
|
theme,
|
|
39034
39069
|
ownerState
|
|
39035
39070
|
}) => _extends({
|
|
39036
|
-
color: theme.palette.text.secondary,
|
|
39071
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
39037
39072
|
'&:hover': {
|
|
39038
|
-
backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
39073
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
39039
39074
|
// Reset on touch devices, it doesn't add specificity
|
|
39040
39075
|
'@media (hover: none)': {
|
|
39041
39076
|
backgroundColor: 'transparent'
|
|
@@ -39043,11 +39078,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
39043
39078
|
}
|
|
39044
39079
|
}, ownerState.color !== 'default' && {
|
|
39045
39080
|
[`&.${radioClasses$1.checked}`]: {
|
|
39046
|
-
color: theme.palette[ownerState.color].main
|
|
39081
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
39047
39082
|
}
|
|
39048
39083
|
}, {
|
|
39049
39084
|
[`&.${radioClasses$1.disabled}`]: {
|
|
39050
|
-
color: theme.palette.action.disabled
|
|
39085
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
39051
39086
|
}
|
|
39052
39087
|
}));
|
|
39053
39088
|
|
|
@@ -40439,8 +40474,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40439
40474
|
|
|
40440
40475
|
const handleKeyDown = event => {
|
|
40441
40476
|
if (!readOnly) {
|
|
40442
|
-
const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on
|
|
40443
|
-
// https://www.w3.org/
|
|
40477
|
+
const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
|
|
40478
|
+
// https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
40444
40479
|
'Enter'];
|
|
40445
40480
|
|
|
40446
40481
|
if (validKeys.indexOf(event.key) !== -1) {
|
|
@@ -41383,11 +41418,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41383
41418
|
const {
|
|
41384
41419
|
ownerState
|
|
41385
41420
|
} = props;
|
|
41386
|
-
|
|
41387
|
-
value: ownerState.min + ownerState.step * index
|
|
41388
|
-
})) : ownerState.marksProp || [];
|
|
41389
|
-
const marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
41390
|
-
return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
41421
|
+
return [styles.root, styles[`color${capitalize(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${capitalize(ownerState.size)}`], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
41391
41422
|
}
|
|
41392
41423
|
})(({
|
|
41393
41424
|
theme,
|
|
@@ -49476,7 +49507,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49476
49507
|
overflowX: 'hidden',
|
|
49477
49508
|
width: '100%'
|
|
49478
49509
|
}, ownerState.hideScrollbar && {
|
|
49479
|
-
// Hide dimensionless scrollbar on
|
|
49510
|
+
// Hide dimensionless scrollbar on macOS
|
|
49480
49511
|
scrollbarWidth: 'none',
|
|
49481
49512
|
// Firefox
|
|
49482
49513
|
'&::-webkit-scrollbar': {
|
|
@@ -49536,7 +49567,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49536
49567
|
})({
|
|
49537
49568
|
overflowX: 'auto',
|
|
49538
49569
|
overflowY: 'hidden',
|
|
49539
|
-
// Hide dimensionless scrollbar on
|
|
49570
|
+
// Hide dimensionless scrollbar on macOS
|
|
49540
49571
|
scrollbarWidth: 'none',
|
|
49541
49572
|
// Firefox
|
|
49542
49573
|
'&::-webkit-scrollbar': {
|