@mui/material 5.8.6 → 5.8.7
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/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +12 -8
- 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 +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 +51 -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/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/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 +29 -29
- 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/Select.d.ts +1 -1
- package/Select/Select.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/SnackbarContent.js +1 -1
- 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/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/Autocomplete/Autocomplete.js +12 -8
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Select/Select.js +1 -1
- package/legacy/SnackbarContent/SnackbarContent.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +10 -10
- package/legacy/styles/experimental_extendTheme.js +60 -44
- package/locale/index.d.ts +71 -71
- package/modern/Autocomplete/Autocomplete.js +11 -7
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Select/Select.js +1 -1
- package/modern/SnackbarContent/SnackbarContent.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +6 -6
- package/modern/styles/experimental_extendTheme.js +55 -45
- package/node/Autocomplete/Autocomplete.js +12 -8
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Select/Select.js +1 -1
- package/node/SnackbarContent/SnackbarContent.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +11 -10
- package/node/styles/experimental_extendTheme.js +57 -44
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +14 -10
- package/styles/CssVarsProvider.js +10 -10
- package/styles/experimental_extendTheme.d.ts +48 -33
- package/styles/experimental_extendTheme.js +55 -45
- package/themeCssVarsAugmentation/index.d.ts +3 -34
- 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 +135 -142
- 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.7
|
|
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.
|
|
@@ -560,6 +560,7 @@
|
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
var StyleSheet = /*#__PURE__*/function () {
|
|
563
|
+
// Using Node instead of HTMLElement since container may be a ShadowRoot
|
|
563
564
|
function StyleSheet(options) {
|
|
564
565
|
var _this = this;
|
|
565
566
|
|
|
@@ -918,8 +919,7 @@
|
|
|
918
919
|
}
|
|
919
920
|
}
|
|
920
921
|
|
|
921
|
-
var inserted = {};
|
|
922
|
-
|
|
922
|
+
var inserted = {};
|
|
923
923
|
var container;
|
|
924
924
|
var nodesToHydrate = [];
|
|
925
925
|
|
|
@@ -1574,6 +1574,8 @@
|
|
|
1574
1574
|
};
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
|
+
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
1578
|
+
|
|
1577
1579
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1578
1580
|
if (interpolation == null) {
|
|
1579
1581
|
return '';
|
|
@@ -1581,7 +1583,7 @@
|
|
|
1581
1583
|
|
|
1582
1584
|
if (interpolation.__emotion_styles !== undefined) {
|
|
1583
1585
|
if (interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
1584
|
-
throw new Error(
|
|
1586
|
+
throw new Error(noComponentSelectorMessage);
|
|
1585
1587
|
}
|
|
1586
1588
|
|
|
1587
1589
|
return interpolation;
|
|
@@ -1691,7 +1693,7 @@
|
|
|
1691
1693
|
}
|
|
1692
1694
|
} else {
|
|
1693
1695
|
if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') {
|
|
1694
|
-
throw new Error(
|
|
1696
|
+
throw new Error(noComponentSelectorMessage);
|
|
1695
1697
|
}
|
|
1696
1698
|
|
|
1697
1699
|
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
|
@@ -1961,7 +1963,7 @@
|
|
|
1961
1963
|
|
|
1962
1964
|
var pkg = {
|
|
1963
1965
|
name: "@emotion/react",
|
|
1964
|
-
version: "11.9.
|
|
1966
|
+
version: "11.9.3",
|
|
1965
1967
|
main: "dist/emotion-react.cjs.js",
|
|
1966
1968
|
module: "dist/emotion-react.esm.js",
|
|
1967
1969
|
browser: {
|
|
@@ -1989,8 +1991,8 @@
|
|
|
1989
1991
|
dependencies: {
|
|
1990
1992
|
"@babel/runtime": "^7.13.10",
|
|
1991
1993
|
"@emotion/babel-plugin": "^11.7.1",
|
|
1992
|
-
"@emotion/cache": "^11.
|
|
1993
|
-
"@emotion/serialize": "^1.0.
|
|
1994
|
+
"@emotion/cache": "^11.9.3",
|
|
1995
|
+
"@emotion/serialize": "^1.0.4",
|
|
1994
1996
|
"@emotion/utils": "^1.1.0",
|
|
1995
1997
|
"@emotion/weak-memoize": "^0.2.5",
|
|
1996
1998
|
"hoist-non-react-statics": "^3.3.1"
|
|
@@ -2009,12 +2011,11 @@
|
|
|
2009
2011
|
},
|
|
2010
2012
|
devDependencies: {
|
|
2011
2013
|
"@babel/core": "^7.13.10",
|
|
2014
|
+
"@definitelytyped/dtslint": "0.0.112",
|
|
2012
2015
|
"@emotion/css": "11.9.0",
|
|
2013
2016
|
"@emotion/css-prettifier": "1.0.1",
|
|
2014
2017
|
"@emotion/server": "11.4.0",
|
|
2015
|
-
"@emotion/styled": "11.
|
|
2016
|
-
"@types/react": "^16.9.11",
|
|
2017
|
-
dtslint: "^4.2.1",
|
|
2018
|
+
"@emotion/styled": "11.9.3",
|
|
2018
2019
|
"html-tag-names": "^1.1.2",
|
|
2019
2020
|
react: "16.14.0",
|
|
2020
2021
|
"svg-tag-names": "^1.1.1",
|
|
@@ -6547,7 +6548,7 @@
|
|
|
6547
6548
|
return str;
|
|
6548
6549
|
}
|
|
6549
6550
|
|
|
6550
|
-
function clsx
|
|
6551
|
+
function clsx() {
|
|
6551
6552
|
var i=0, tmp, x, str='';
|
|
6552
6553
|
while (i < arguments.length) {
|
|
6553
6554
|
if (tmp = arguments[i++]) {
|
|
@@ -7573,13 +7574,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7573
7574
|
* @param {Object} theme
|
|
7574
7575
|
* @param {{
|
|
7575
7576
|
* prefix?: string,
|
|
7576
|
-
* basePrefix?: string,
|
|
7577
7577
|
* shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
|
|
7578
7578
|
* }} options.
|
|
7579
|
-
* `
|
|
7580
|
-
* `prefix`: defined by application
|
|
7581
|
-
*
|
|
7582
|
-
* the CSS variable value will be adjusted based on the provided `basePrefix` & `prefix` which can be found in `parsedTheme`.
|
|
7579
|
+
* `prefix`: The prefix of the generated CSS variables. This function does not change the value.
|
|
7583
7580
|
*
|
|
7584
7581
|
* @returns {{ css: Object, vars: Object, parsedTheme: typeof theme }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme), and `parsedTheme` is the cloned version of theme.
|
|
7585
7582
|
*
|
|
@@ -7590,16 +7587,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7590
7587
|
* palette: { primary: { 500: 'var(--color)' } }
|
|
7591
7588
|
* }, { prefix: 'foo' })
|
|
7592
7589
|
*
|
|
7593
|
-
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--
|
|
7594
|
-
* console.log(vars) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7595
|
-
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--
|
|
7590
|
+
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
|
|
7591
|
+
* console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7592
|
+
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--color)' } } }
|
|
7596
7593
|
*/
|
|
7597
7594
|
|
|
7598
7595
|
|
|
7599
7596
|
function cssVarsParser(theme, options) {
|
|
7600
7597
|
const {
|
|
7601
7598
|
prefix,
|
|
7602
|
-
basePrefix = '',
|
|
7603
7599
|
shouldSkipGeneratingVar
|
|
7604
7600
|
} = options || {};
|
|
7605
7601
|
const css = {};
|
|
@@ -7607,16 +7603,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7607
7603
|
const parsedTheme = {};
|
|
7608
7604
|
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7609
7605
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7610
|
-
if (typeof value === 'string' && value.match(/var\(\s*--/)) {
|
|
7611
|
-
// for CSS variable, apply prefix or remove basePrefix from the variable
|
|
7612
|
-
if (!basePrefix && prefix) {
|
|
7613
|
-
value = value.replace(/var\(\s*--/g, `var(--${prefix}-`);
|
|
7614
|
-
} else {
|
|
7615
|
-
value = prefix ? value.replace(new RegExp(`var\\(\\s*--${basePrefix}`, 'g'), `var(--${prefix}`) // removing spaces
|
|
7616
|
-
: value.replace(new RegExp(`var\\(\\s*--${basePrefix}-`, 'g'), 'var(--');
|
|
7617
|
-
}
|
|
7618
|
-
}
|
|
7619
|
-
|
|
7620
7606
|
if (!shouldSkipGeneratingVar || shouldSkipGeneratingVar && !shouldSkipGeneratingVar(keys, value)) {
|
|
7621
7607
|
// only create css & var if `shouldSkipGeneratingVar` return false
|
|
7622
7608
|
const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
|
|
@@ -7911,34 +7897,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7911
7897
|
});
|
|
7912
7898
|
}
|
|
7913
7899
|
|
|
7914
|
-
|
|
7915
|
-
* The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
|
|
7916
|
-
* and they does not need to remember the prefix (defined once).
|
|
7917
|
-
*/
|
|
7918
|
-
function createGetCssVar(prefix = '') {
|
|
7919
|
-
function appendVar(...vars) {
|
|
7920
|
-
if (!vars.length) {
|
|
7921
|
-
return '';
|
|
7922
|
-
}
|
|
7923
|
-
|
|
7924
|
-
const value = vars[0];
|
|
7925
|
-
|
|
7926
|
-
if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
|
|
7927
|
-
return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
|
|
7928
|
-
}
|
|
7929
|
-
|
|
7930
|
-
return `, ${value}`;
|
|
7931
|
-
} // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
const getCssVar = (field, ...vars) => {
|
|
7935
|
-
return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...vars)})`;
|
|
7936
|
-
};
|
|
7937
|
-
|
|
7938
|
-
return getCssVar;
|
|
7939
|
-
}
|
|
7940
|
-
|
|
7941
|
-
const _excluded$2g = ["colorSchemes", "components"];
|
|
7900
|
+
const _excluded$2g = ["colorSchemes", "components", "cssVarPrefix"];
|
|
7942
7901
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7943
7902
|
function createCssVarsProvider(options) {
|
|
7944
7903
|
const {
|
|
@@ -7950,8 +7909,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7950
7909
|
defaultColorScheme: designSystemColorScheme,
|
|
7951
7910
|
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
7952
7911
|
enableColorScheme: designSystemEnableColorScheme = true,
|
|
7953
|
-
|
|
7954
|
-
shouldSkipGeneratingVar,
|
|
7912
|
+
shouldSkipGeneratingVar: designSystemShouldSkipGeneratingVar,
|
|
7955
7913
|
resolveTheme
|
|
7956
7914
|
} = options;
|
|
7957
7915
|
|
|
@@ -7974,7 +7932,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7974
7932
|
function CssVarsProvider({
|
|
7975
7933
|
children,
|
|
7976
7934
|
theme: themeProp = defaultTheme,
|
|
7977
|
-
prefix = designSystemPrefix,
|
|
7978
7935
|
modeStorageKey = defaultModeStorageKey,
|
|
7979
7936
|
colorSchemeStorageKey = defaultColorSchemeStorageKey,
|
|
7980
7937
|
attribute = defaultAttribute,
|
|
@@ -7985,13 +7942,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7985
7942
|
storageWindow = typeof window === 'undefined' ? undefined : window,
|
|
7986
7943
|
documentNode = typeof document === 'undefined' ? undefined : document,
|
|
7987
7944
|
colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,
|
|
7988
|
-
colorSchemeSelector = ':root'
|
|
7945
|
+
colorSchemeSelector = ':root',
|
|
7946
|
+
shouldSkipGeneratingVar = designSystemShouldSkipGeneratingVar
|
|
7989
7947
|
}) {
|
|
7990
7948
|
const hasMounted = React__namespace.useRef(false);
|
|
7991
7949
|
|
|
7992
7950
|
const {
|
|
7993
7951
|
colorSchemes = {},
|
|
7994
|
-
components = {}
|
|
7952
|
+
components = {},
|
|
7953
|
+
cssVarPrefix
|
|
7995
7954
|
} = themeProp,
|
|
7996
7955
|
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$2g);
|
|
7997
7956
|
|
|
@@ -8036,16 +7995,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8036
7995
|
vars: rootVars,
|
|
8037
7996
|
parsedTheme
|
|
8038
7997
|
} = cssVarsParser(theme, {
|
|
8039
|
-
prefix,
|
|
8040
|
-
basePrefix: designSystemPrefix,
|
|
7998
|
+
prefix: cssVarPrefix,
|
|
8041
7999
|
shouldSkipGeneratingVar
|
|
8042
8000
|
});
|
|
8043
8001
|
theme = _extends({}, parsedTheme, {
|
|
8044
8002
|
components,
|
|
8045
8003
|
colorSchemes,
|
|
8046
|
-
|
|
8004
|
+
cssVarPrefix,
|
|
8047
8005
|
vars: rootVars,
|
|
8048
|
-
getCssVar: createGetCssVar(prefix),
|
|
8049
8006
|
getColorSchemeSelector: targetColorScheme => `[${attribute}="${targetColorScheme}"] &`
|
|
8050
8007
|
});
|
|
8051
8008
|
const defaultColorSchemeStyleSheet = {};
|
|
@@ -8056,8 +8013,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8056
8013
|
vars,
|
|
8057
8014
|
parsedTheme: parsedScheme
|
|
8058
8015
|
} = cssVarsParser(scheme, {
|
|
8059
|
-
prefix,
|
|
8060
|
-
basePrefix: designSystemPrefix,
|
|
8016
|
+
prefix: cssVarPrefix,
|
|
8061
8017
|
shouldSkipGeneratingVar
|
|
8062
8018
|
});
|
|
8063
8019
|
theme.vars = deepmerge(theme.vars, vars);
|
|
@@ -8221,9 +8177,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8221
8177
|
modeStorageKey: PropTypes.string,
|
|
8222
8178
|
|
|
8223
8179
|
/**
|
|
8224
|
-
* CSS
|
|
8180
|
+
* A function to determine if the key, value should be attached as CSS Variable
|
|
8225
8181
|
*/
|
|
8226
|
-
|
|
8182
|
+
shouldSkipGeneratingVar: PropTypes.func,
|
|
8227
8183
|
|
|
8228
8184
|
/**
|
|
8229
8185
|
* The window that attaches the 'storage' event listener
|
|
@@ -8251,6 +8207,33 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8251
8207
|
};
|
|
8252
8208
|
}
|
|
8253
8209
|
|
|
8210
|
+
/**
|
|
8211
|
+
* The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
|
|
8212
|
+
* and they does not need to remember the prefix (defined once).
|
|
8213
|
+
*/
|
|
8214
|
+
function createGetCssVar$1(prefix = '') {
|
|
8215
|
+
function appendVar(...vars) {
|
|
8216
|
+
if (!vars.length) {
|
|
8217
|
+
return '';
|
|
8218
|
+
}
|
|
8219
|
+
|
|
8220
|
+
const value = vars[0];
|
|
8221
|
+
|
|
8222
|
+
if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
|
|
8223
|
+
return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
|
|
8224
|
+
}
|
|
8225
|
+
|
|
8226
|
+
return `, ${value}`;
|
|
8227
|
+
} // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
|
|
8228
|
+
|
|
8229
|
+
|
|
8230
|
+
const getCssVar = (field, ...fallbacks) => {
|
|
8231
|
+
return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;
|
|
8232
|
+
};
|
|
8233
|
+
|
|
8234
|
+
return getCssVar;
|
|
8235
|
+
}
|
|
8236
|
+
|
|
8254
8237
|
const _excluded$2f = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
8255
8238
|
const defaultTheme$4 = createTheme$1();
|
|
8256
8239
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
@@ -8534,12 +8517,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8534
8517
|
return componentProps;
|
|
8535
8518
|
}
|
|
8536
8519
|
|
|
8537
|
-
/**
|
|
8538
|
-
* Creates a type that is T with removed properties that are functions with names beginning with `on`.
|
|
8539
|
-
* Note that it does not exactly follow the logic of `omitEventHandlers` as it also removes fields where
|
|
8540
|
-
* `on` is followed by a non-letter character,
|
|
8541
|
-
*/
|
|
8542
|
-
|
|
8543
8520
|
/**
|
|
8544
8521
|
* Removes event handlers from the given object.
|
|
8545
8522
|
* A field is considered an event handler if it is a function with a name beginning with `on`.
|
|
@@ -8724,13 +8701,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8724
8701
|
autoHighlight = false,
|
|
8725
8702
|
autoSelect = false,
|
|
8726
8703
|
blurOnSelect = false,
|
|
8727
|
-
disabled: disabledProp,
|
|
8728
8704
|
clearOnBlur = !props.freeSolo,
|
|
8729
8705
|
clearOnEscape = false,
|
|
8730
8706
|
componentName = 'useAutocomplete',
|
|
8731
8707
|
defaultValue = props.multiple ? [] : null,
|
|
8732
8708
|
disableClearable = false,
|
|
8733
8709
|
disableCloseOnSelect = false,
|
|
8710
|
+
disabled: disabledProp,
|
|
8734
8711
|
disabledItemsFocusable = false,
|
|
8735
8712
|
disableListWrap = false,
|
|
8736
8713
|
filterOptions = defaultFilterOptions,
|
|
@@ -8742,12 +8719,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8742
8719
|
|
|
8743
8720
|
return (_option$label = option.label) != null ? _option$label : option;
|
|
8744
8721
|
},
|
|
8745
|
-
isOptionEqualToValue = (option, value) => option === value,
|
|
8746
8722
|
groupBy,
|
|
8747
8723
|
handleHomeEndKeys = !props.freeSolo,
|
|
8748
8724
|
id: idProp,
|
|
8749
8725
|
includeInputInList = false,
|
|
8750
8726
|
inputValue: inputValueProp,
|
|
8727
|
+
isOptionEqualToValue = (option, value) => option === value,
|
|
8751
8728
|
multiple = false,
|
|
8752
8729
|
onChange,
|
|
8753
8730
|
onClose,
|
|
@@ -16070,7 +16047,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16070
16047
|
} ;
|
|
16071
16048
|
var Paper$1 = Paper;
|
|
16072
16049
|
|
|
16073
|
-
const _excluded$22 = ["colorSchemes"],
|
|
16050
|
+
const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
|
|
16074
16051
|
_excluded2$9 = ["palette"];
|
|
16075
16052
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
16076
16053
|
if (index === 0) {
|
|
@@ -16093,14 +16070,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16093
16070
|
obj[key] = obj[key] || defaultValue;
|
|
16094
16071
|
}
|
|
16095
16072
|
|
|
16073
|
+
const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
|
|
16096
16074
|
function extendTheme(options = {}, ...args) {
|
|
16097
16075
|
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
16098
16076
|
|
|
16099
16077
|
const {
|
|
16100
|
-
colorSchemes: colorSchemesInput = {}
|
|
16078
|
+
colorSchemes: colorSchemesInput = {},
|
|
16079
|
+
cssVarPrefix = 'mui'
|
|
16101
16080
|
} = options,
|
|
16102
16081
|
input = _objectWithoutPropertiesLoose(options, _excluded$22);
|
|
16103
16082
|
|
|
16083
|
+
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
16084
|
+
|
|
16104
16085
|
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
16105
16086
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
16106
16087
|
})),
|
|
@@ -16118,6 +16099,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16118
16099
|
});
|
|
16119
16100
|
|
|
16120
16101
|
let theme = _extends({}, muiTheme, {
|
|
16102
|
+
cssVarPrefix,
|
|
16103
|
+
getCssVar,
|
|
16121
16104
|
colorSchemes: _extends({}, colorSchemesInput, {
|
|
16122
16105
|
light: _extends({}, colorSchemesInput.light, {
|
|
16123
16106
|
palette: lightPalette,
|
|
@@ -16161,10 +16144,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16161
16144
|
setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
|
|
16162
16145
|
setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
|
|
16163
16146
|
setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
|
|
16164
|
-
setColor(palette.Alert, 'errorFilledBg', '
|
|
16165
|
-
setColor(palette.Alert, 'infoFilledBg', '
|
|
16166
|
-
setColor(palette.Alert, 'successFilledBg', '
|
|
16167
|
-
setColor(palette.Alert, 'warningFilledBg', '
|
|
16147
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-main'));
|
|
16148
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-main'));
|
|
16149
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-main'));
|
|
16150
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-main'));
|
|
16168
16151
|
setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
|
|
16169
16152
|
setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
|
|
16170
16153
|
setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
|
|
@@ -16173,15 +16156,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16173
16156
|
setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
|
|
16174
16157
|
setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
|
|
16175
16158
|
setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
|
|
16176
|
-
setColor(palette.Alert, 'errorIconColor', '
|
|
16177
|
-
setColor(palette.Alert, 'infoIconColor', '
|
|
16178
|
-
setColor(palette.Alert, 'successIconColor', '
|
|
16179
|
-
setColor(palette.Alert, 'warningIconColor', '
|
|
16180
|
-
setColor(palette.AppBar, 'defaultBg', '
|
|
16181
|
-
setColor(palette.Avatar, 'defaultBg', '
|
|
16182
|
-
setColor(palette.Chip, 'defaultBorder', '
|
|
16183
|
-
setColor(palette.Chip, 'defaultAvatarColor', '
|
|
16184
|
-
setColor(palette.Chip, 'defaultIconColor', '
|
|
16159
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-light'));
|
|
16160
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-light'));
|
|
16161
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-light'));
|
|
16162
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-light'));
|
|
16163
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-100'));
|
|
16164
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-400'));
|
|
16165
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-400'));
|
|
16166
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-700'));
|
|
16167
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-700'));
|
|
16185
16168
|
setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
|
|
16186
16169
|
setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
|
|
16187
16170
|
setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
|
|
@@ -16191,19 +16174,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16191
16174
|
setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
|
|
16192
16175
|
setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
|
|
16193
16176
|
setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
|
|
16194
|
-
setColor(palette.Skeleton, 'bg',
|
|
16177
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.11)`);
|
|
16195
16178
|
setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
|
|
16196
16179
|
setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
|
|
16197
16180
|
setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
|
|
16198
16181
|
setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
|
|
16199
16182
|
setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
|
|
16200
16183
|
setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
|
|
16201
|
-
|
|
16184
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.8);
|
|
16185
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16186
|
+
setColor(palette.SnackbarContent, 'color', lightPalette.getContrastText(snackbarContentBackground));
|
|
16202
16187
|
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16203
|
-
setColor(palette.StepConnector, 'border', '
|
|
16204
|
-
setColor(palette.StepContent, 'border', '
|
|
16205
|
-
setColor(palette.Switch, 'defaultColor', '
|
|
16206
|
-
setColor(palette.Switch, 'defaultDisabledColor', '
|
|
16188
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-400'));
|
|
16189
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-400'));
|
|
16190
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-common-white'));
|
|
16191
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-100'));
|
|
16207
16192
|
setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
|
|
16208
16193
|
setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
|
|
16209
16194
|
setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
|
|
@@ -16217,10 +16202,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16217
16202
|
setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
|
|
16218
16203
|
setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
|
|
16219
16204
|
setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
|
|
16220
|
-
setColor(palette.Alert, 'errorFilledBg', '
|
|
16221
|
-
setColor(palette.Alert, 'infoFilledBg', '
|
|
16222
|
-
setColor(palette.Alert, 'successFilledBg', '
|
|
16223
|
-
setColor(palette.Alert, 'warningFilledBg', '
|
|
16205
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-dark'));
|
|
16206
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-dark'));
|
|
16207
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-dark'));
|
|
16208
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-dark'));
|
|
16224
16209
|
setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
|
|
16225
16210
|
setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
|
|
16226
16211
|
setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
|
|
@@ -16229,19 +16214,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16229
16214
|
setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
|
|
16230
16215
|
setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
|
|
16231
16216
|
setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
|
|
16232
|
-
setColor(palette.Alert, 'errorIconColor', '
|
|
16233
|
-
setColor(palette.Alert, 'infoIconColor', '
|
|
16234
|
-
setColor(palette.Alert, 'successIconColor', '
|
|
16235
|
-
setColor(palette.Alert, 'warningIconColor', '
|
|
16236
|
-
setColor(palette.AppBar, 'defaultBg', '
|
|
16237
|
-
setColor(palette.AppBar, 'darkBg', '
|
|
16238
|
-
|
|
16239
|
-
setColor(palette.AppBar, 'darkColor', '
|
|
16240
|
-
|
|
16241
|
-
setColor(palette.Avatar, 'defaultBg', '
|
|
16242
|
-
setColor(palette.Chip, 'defaultBorder', '
|
|
16243
|
-
setColor(palette.Chip, 'defaultAvatarColor', '
|
|
16244
|
-
setColor(palette.Chip, 'defaultIconColor', '
|
|
16217
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-main'));
|
|
16218
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-main'));
|
|
16219
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-main'));
|
|
16220
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-main'));
|
|
16221
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-900'));
|
|
16222
|
+
setColor(palette.AppBar, 'darkBg', getCssVar('palette-background-paper')); // specific for dark mode
|
|
16223
|
+
|
|
16224
|
+
setColor(palette.AppBar, 'darkColor', getCssVar('palette-text-primary')); // specific for dark mode
|
|
16225
|
+
|
|
16226
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-600'));
|
|
16227
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-700'));
|
|
16228
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-300'));
|
|
16229
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-300'));
|
|
16245
16230
|
setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
|
|
16246
16231
|
setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
|
|
16247
16232
|
setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
|
|
@@ -16251,19 +16236,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16251
16236
|
setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
|
|
16252
16237
|
setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
|
|
16253
16238
|
setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
|
|
16254
|
-
setColor(palette.Skeleton, 'bg',
|
|
16239
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.13)`);
|
|
16255
16240
|
setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
|
|
16256
16241
|
setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
|
|
16257
16242
|
setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
|
|
16258
16243
|
setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
|
|
16259
16244
|
setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
|
|
16260
16245
|
setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
|
|
16261
|
-
|
|
16246
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.98);
|
|
16247
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16248
|
+
setColor(palette.SnackbarContent, 'color', darkPalette.getContrastText(snackbarContentBackground));
|
|
16262
16249
|
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16263
|
-
setColor(palette.StepConnector, 'border', '
|
|
16264
|
-
setColor(palette.StepContent, 'border', '
|
|
16265
|
-
setColor(palette.Switch, 'defaultColor', '
|
|
16266
|
-
setColor(palette.Switch, 'defaultDisabledColor', '
|
|
16250
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-600'));
|
|
16251
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-600'));
|
|
16252
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-grey-300'));
|
|
16253
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-600'));
|
|
16267
16254
|
setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
|
|
16268
16255
|
setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
|
|
16269
16256
|
setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
|
|
@@ -16319,9 +16306,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16319
16306
|
return theme;
|
|
16320
16307
|
}
|
|
16321
16308
|
|
|
16309
|
+
const shouldSkipGeneratingVar = keys => {
|
|
16310
|
+
var _keys$;
|
|
16311
|
+
|
|
16312
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16313
|
+
};
|
|
16314
|
+
|
|
16322
16315
|
const defaultTheme$1 = extendTheme();
|
|
16323
16316
|
const {
|
|
16324
|
-
CssVarsProvider
|
|
16317
|
+
CssVarsProvider,
|
|
16325
16318
|
useColorScheme,
|
|
16326
16319
|
getInitColorSchemeScript
|
|
16327
16320
|
} = createCssVarsProvider({
|
|
@@ -16333,7 +16326,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16333
16326
|
light: 'light',
|
|
16334
16327
|
dark: 'dark'
|
|
16335
16328
|
},
|
|
16336
|
-
prefix: 'mui',
|
|
16337
16329
|
resolveTheme: theme => {
|
|
16338
16330
|
const newTheme = _extends({}, theme, {
|
|
16339
16331
|
typography: createTypography(theme.palette, theme.typography)
|
|
@@ -16341,11 +16333,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16341
16333
|
|
|
16342
16334
|
return newTheme;
|
|
16343
16335
|
},
|
|
16344
|
-
shouldSkipGeneratingVar
|
|
16345
|
-
var _keys$;
|
|
16346
|
-
|
|
16347
|
-
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16348
|
-
}
|
|
16336
|
+
shouldSkipGeneratingVar
|
|
16349
16337
|
});
|
|
16350
16338
|
|
|
16351
16339
|
function getSvgIconUtilityClass(slot) {
|
|
@@ -22589,7 +22577,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22589
22577
|
}
|
|
22590
22578
|
});
|
|
22591
22579
|
const Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
|
|
22592
|
-
var _componentsProps$clea, _componentsProps$pape;
|
|
22580
|
+
var _componentsProps$clea, _componentsProps$popu, _componentsProps$popp, _componentsProps$pape;
|
|
22593
22581
|
|
|
22594
22582
|
const props = useThemeProps({
|
|
22595
22583
|
props: inProps,
|
|
@@ -22790,8 +22778,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22790
22778
|
disabled: disabled,
|
|
22791
22779
|
"aria-label": popupOpen ? closeText : openText,
|
|
22792
22780
|
title: popupOpen ? closeText : openText,
|
|
22793
|
-
|
|
22794
|
-
|
|
22781
|
+
ownerState: ownerState
|
|
22782
|
+
}, componentsProps.popupIndicator, {
|
|
22783
|
+
className: clsx(classes.popupIndicator, (_componentsProps$popu = componentsProps.popupIndicator) == null ? void 0 : _componentsProps$popu.className),
|
|
22795
22784
|
children: popupIcon
|
|
22796
22785
|
})) : null]
|
|
22797
22786
|
})
|
|
@@ -22802,9 +22791,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22802
22791
|
readOnly
|
|
22803
22792
|
}, getInputProps())
|
|
22804
22793
|
})
|
|
22805
|
-
})), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, {
|
|
22794
|
+
})), popupOpen && anchorEl ? /*#__PURE__*/jsxRuntime_1(AutocompletePopper, _extends({
|
|
22806
22795
|
as: PopperComponent,
|
|
22807
|
-
className: clsx(classes.popper),
|
|
22808
22796
|
disablePortal: disablePortal,
|
|
22809
22797
|
style: {
|
|
22810
22798
|
width: anchorEl ? anchorEl.clientWidth : null
|
|
@@ -22812,7 +22800,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22812
22800
|
ownerState: ownerState,
|
|
22813
22801
|
role: "presentation",
|
|
22814
22802
|
anchorEl: anchorEl,
|
|
22815
|
-
open: true
|
|
22803
|
+
open: true
|
|
22804
|
+
}, componentsProps.popper, {
|
|
22805
|
+
className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
|
|
22816
22806
|
children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
|
|
22817
22807
|
ownerState: ownerState,
|
|
22818
22808
|
as: PaperComponent
|
|
@@ -22849,7 +22839,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22849
22839
|
})
|
|
22850
22840
|
})) : null]
|
|
22851
22841
|
}))
|
|
22852
|
-
}) : null]
|
|
22842
|
+
})) : null]
|
|
22853
22843
|
});
|
|
22854
22844
|
});
|
|
22855
22845
|
Autocomplete.propTypes
|
|
@@ -22951,7 +22941,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22951
22941
|
*/
|
|
22952
22942
|
componentsProps: PropTypes.shape({
|
|
22953
22943
|
clearIndicator: PropTypes.object,
|
|
22954
|
-
paper: PropTypes.object
|
|
22944
|
+
paper: PropTypes.object,
|
|
22945
|
+
popper: PropTypes.object,
|
|
22946
|
+
popupIndicator: PropTypes.object
|
|
22955
22947
|
}),
|
|
22956
22948
|
|
|
22957
22949
|
/**
|
|
@@ -41698,7 +41690,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41698
41690
|
* If the value is an object it must have reference equality with the option in order to be selected.
|
|
41699
41691
|
* If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
|
|
41700
41692
|
*/
|
|
41701
|
-
value: PropTypes.any,
|
|
41693
|
+
value: PropTypes.oneOfType([PropTypes.oneOf(['']), PropTypes.any]),
|
|
41702
41694
|
|
|
41703
41695
|
/**
|
|
41704
41696
|
* The variant to use.
|
|
@@ -42719,7 +42711,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
42719
42711
|
const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
|
|
42720
42712
|
const backgroundColor = emphasize(theme.palette.background.default, emphasis);
|
|
42721
42713
|
return _extends({}, theme.typography.body2, {
|
|
42722
|
-
color: theme.vars ? theme.vars.palette.
|
|
42714
|
+
color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
|
|
42723
42715
|
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
|
|
42724
42716
|
display: 'flex',
|
|
42725
42717
|
alignItems: 'center',
|
|
@@ -51784,7 +51776,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
51784
51776
|
exports.DialogTitle = DialogTitle$1;
|
|
51785
51777
|
exports.Divider = Divider$1;
|
|
51786
51778
|
exports.Drawer = Drawer$1;
|
|
51787
|
-
exports.Experimental_CssVarsProvider =
|
|
51779
|
+
exports.Experimental_CssVarsProvider = CssVarsProvider;
|
|
51788
51780
|
exports.Fab = Fab$1;
|
|
51789
51781
|
exports.Fade = Fade$1;
|
|
51790
51782
|
exports.FilledInput = FilledInput$1;
|
|
@@ -52118,6 +52110,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
52118
52110
|
exports.scopedCssBaselineClasses = scopedCssBaselineClasses$1;
|
|
52119
52111
|
exports.selectClasses = selectClasses$1;
|
|
52120
52112
|
exports.setRef = setRef;
|
|
52113
|
+
exports.shouldSkipGeneratingVar = shouldSkipGeneratingVar;
|
|
52121
52114
|
exports.skeletonClasses = skeletonClasses$1;
|
|
52122
52115
|
exports.sliderClasses = sliderClasses;
|
|
52123
52116
|
exports.snackbarClasses = snackbarClasses$1;
|