@mui/material 5.10.14 → 5.10.16
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 +1 -1
- package/AccordionActions/accordionActionsClasses.d.ts +1 -1
- package/AccordionDetails/accordionDetailsClasses.d.ts +1 -1
- package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/Alert/alertClasses.d.ts +1 -1
- package/AlertTitle/alertTitleClasses.d.ts +1 -1
- package/AppBar/appBarClasses.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +1 -0
- package/Autocomplete/autocompleteClasses.d.ts +1 -1
- package/Avatar/avatarClasses.d.ts +1 -1
- package/AvatarGroup/avatarGroupClasses.d.ts +1 -1
- package/Backdrop/backdropClasses.d.ts +1 -1
- package/Badge/badgeClasses.d.ts +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +1 -1
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +1 -1
- package/Button/buttonClasses.d.ts +1 -1
- package/ButtonBase/buttonBaseClasses.d.ts +1 -1
- package/ButtonBase/touchRippleClasses.d.ts +1 -1
- package/ButtonGroup/buttonGroupClasses.d.ts +1 -1
- package/CHANGELOG.md +108 -0
- package/Card/cardClasses.d.ts +1 -1
- package/CardActionArea/cardActionAreaClasses.d.ts +1 -1
- package/CardActions/cardActionsClasses.d.ts +1 -1
- package/CardContent/cardContentClasses.d.ts +1 -1
- package/CardHeader/cardHeaderClasses.d.ts +1 -1
- package/CardMedia/cardMediaClasses.d.ts +1 -1
- package/Checkbox/checkboxClasses.d.ts +1 -1
- package/Chip/Chip.d.ts +10 -0
- package/Chip/Chip.js +15 -2
- package/Chip/chipClasses.d.ts +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +1 -1
- package/Collapse/collapseClasses.d.ts +1 -1
- package/Dialog/dialogClasses.d.ts +1 -1
- package/DialogActions/dialogActionsClasses.d.ts +1 -1
- package/DialogContent/dialogContentClasses.d.ts +1 -1
- package/DialogContentText/dialogContentTextClasses.d.ts +1 -1
- package/DialogTitle/dialogTitleClasses.d.ts +1 -1
- package/Divider/dividerClasses.d.ts +1 -1
- package/Drawer/drawerClasses.d.ts +1 -1
- package/Fab/fabClasses.d.ts +1 -1
- package/FilledInput/filledInputClasses.d.ts +1 -1
- package/FormControl/FormControlContext.d.ts +17 -0
- package/FormControl/FormControlContext.js +1 -1
- package/FormControl/formControlClasses.d.ts +1 -1
- package/FormControl/index.d.ts +3 -1
- package/FormControl/useFormControl.d.ts +2 -25
- package/FormControlLabel/formControlLabelClasses.d.ts +1 -1
- package/FormGroup/formGroupClasses.d.ts +1 -1
- package/FormHelperText/formHelperTextClasses.d.ts +1 -1
- package/FormLabel/formLabelClasses.d.ts +1 -1
- package/Grid/gridClasses.d.ts +1 -1
- package/Icon/iconClasses.d.ts +1 -1
- package/IconButton/iconButtonClasses.d.ts +9 -1
- package/IconButton/iconButtonClasses.js +1 -1
- package/ImageList/imageListClasses.d.ts +1 -1
- package/ImageListItem/imageListItemClasses.d.ts +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +1 -1
- package/Input/inputClasses.d.ts +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +1 -1
- package/InputBase/inputBaseClasses.d.ts +1 -1
- package/InputLabel/inputLabelClasses.d.ts +1 -1
- package/LinearProgress/linearProgressClasses.d.ts +1 -1
- package/Link/linkClasses.d.ts +1 -1
- package/List/listClasses.d.ts +1 -1
- package/ListItem/listItemClasses.d.ts +1 -1
- package/ListItemAvatar/listItemAvatarClasses.d.ts +1 -1
- package/ListItemButton/listItemButtonClasses.d.ts +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +1 -1
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +1 -1
- package/ListItemText/listItemTextClasses.d.ts +1 -1
- package/ListSubheader/listSubheaderClasses.d.ts +1 -1
- package/Menu/menuClasses.d.ts +1 -1
- package/MenuItem/menuItemClasses.d.ts +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +1 -1
- package/Pagination/paginationClasses.d.ts +1 -1
- package/PaginationItem/paginationItemClasses.d.ts +1 -1
- package/Paper/Paper.js +3 -13
- package/Paper/paperClasses.d.ts +1 -1
- package/Popover/popoverClasses.d.ts +1 -1
- package/Popper/Popper.d.ts +2 -2
- package/Radio/radioClasses.d.ts +1 -1
- package/Rating/ratingClasses.d.ts +1 -1
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +1 -1
- package/Select/selectClasses.d.ts +1 -1
- package/Skeleton/skeletonClasses.d.ts +1 -1
- package/Snackbar/snackbarClasses.d.ts +1 -1
- package/SnackbarContent/snackbarContentClasses.d.ts +1 -1
- package/SpeedDial/speedDialClasses.d.ts +1 -1
- package/SpeedDialAction/speedDialActionClasses.d.ts +1 -1
- package/SpeedDialIcon/speedDialIconClasses.d.ts +1 -1
- package/Step/stepClasses.d.ts +1 -1
- package/StepButton/stepButtonClasses.d.ts +1 -1
- package/StepConnector/stepConnectorClasses.d.ts +1 -1
- package/StepContent/stepContentClasses.d.ts +1 -1
- package/StepIcon/stepIconClasses.d.ts +1 -1
- package/StepLabel/stepLabelClasses.d.ts +1 -1
- package/Stepper/stepperClasses.d.ts +1 -1
- package/SvgIcon/svgIconClasses.d.ts +1 -1
- package/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/Switch/switchClasses.d.ts +1 -1
- package/Tab/tabClasses.d.ts +1 -1
- package/TabScrollButton/tabScrollButtonClasses.d.ts +1 -1
- package/Table/tableClasses.d.ts +1 -1
- package/TableBody/tableBodyClasses.d.ts +1 -1
- package/TableCell/tableCellClasses.d.ts +1 -1
- package/TableContainer/tableContainerClasses.d.ts +1 -1
- package/TableFooter/tableFooterClasses.d.ts +1 -1
- package/TableHead/tableHeadClasses.d.ts +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +1 -1
- package/TableRow/tableRowClasses.d.ts +1 -1
- package/TableSortLabel/tableSortLabelClasses.d.ts +1 -1
- package/Tabs/tabsClasses.d.ts +1 -1
- package/TextField/textFieldClasses.d.ts +1 -1
- package/ToggleButton/toggleButtonClasses.d.ts +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +1 -1
- package/Toolbar/toolbarClasses.d.ts +1 -1
- package/Tooltip/tooltipClasses.d.ts +1 -1
- package/Typography/typographyClasses.d.ts +1 -1
- package/Unstable_Grid2/Grid2Props.d.ts +2 -2
- package/Unstable_Grid2/grid2Classes.d.ts +1 -1
- package/esm/Autocomplete/Autocomplete.js +1 -0
- package/esm/Chip/Chip.js +15 -2
- package/esm/FormControl/FormControlContext.js +1 -2
- package/esm/IconButton/iconButtonClasses.js +1 -1
- package/esm/Paper/Paper.js +1 -11
- package/esm/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/esm/locale/index.js +73 -0
- package/esm/styles/experimental_extendTheme.js +1 -1
- package/esm/styles/getOverlayAlpha.js +11 -0
- package/esm/styles/index.js +6 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +1 -1
- package/legacy/Autocomplete/Autocomplete.js +2 -1
- package/legacy/Chip/Chip.js +15 -1
- package/legacy/FormControl/FormControlContext.js +1 -2
- package/legacy/IconButton/iconButtonClasses.js +1 -1
- package/legacy/Paper/Paper.js +1 -11
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +92 -16
- package/legacy/styles/experimental_extendTheme.js +1 -1
- package/legacy/styles/getOverlayAlpha.js +11 -0
- package/legacy/styles/index.js +6 -1
- package/locale/index.d.ts +1 -0
- package/locale/index.js +75 -1
- package/modern/Autocomplete/Autocomplete.js +1 -0
- package/modern/Chip/Chip.js +15 -2
- package/modern/FormControl/FormControlContext.js +1 -2
- package/modern/IconButton/iconButtonClasses.js +1 -1
- package/modern/Paper/Paper.js +1 -11
- package/modern/SwipeableDrawer/SwipeableDrawer.js +3 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +73 -0
- package/modern/styles/experimental_extendTheme.js +1 -1
- package/modern/styles/getOverlayAlpha.js +11 -0
- package/modern/styles/index.js +6 -1
- package/package.json +6 -6
- package/styles/experimental_extendTheme.d.ts +13 -0
- package/styles/experimental_extendTheme.js +2 -2
- package/styles/getOverlayAlpha.d.ts +2 -0
- package/styles/getOverlayAlpha.js +18 -0
- package/styles/index.d.ts +6 -0
- package/styles/index.js +25 -1
- package/styles/responsiveFontSizes.d.ts +2 -2
- package/transitions/transition.d.ts +3 -3
- package/umd/material-ui.development.js +492 -470
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.10.
|
|
1
|
+
/** @license MUI v5.10.16
|
|
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.
|
|
@@ -5970,7 +5970,7 @@
|
|
|
5970
5970
|
return null;
|
|
5971
5971
|
}, obj);
|
|
5972
5972
|
}
|
|
5973
|
-
function
|
|
5973
|
+
function getStyleValue$1(themeMapping, transform, propValueFinal, userValue = propValueFinal) {
|
|
5974
5974
|
let value;
|
|
5975
5975
|
if (typeof themeMapping === 'function') {
|
|
5976
5976
|
value = themeMapping(propValueFinal);
|
|
@@ -5999,10 +5999,10 @@
|
|
|
5999
5999
|
const theme = props.theme;
|
|
6000
6000
|
const themeMapping = getPath(theme, themeKey) || {};
|
|
6001
6001
|
const styleFromPropValue = propValueFinal => {
|
|
6002
|
-
let value =
|
|
6002
|
+
let value = getStyleValue$1(themeMapping, transform, propValueFinal);
|
|
6003
6003
|
if (propValueFinal === value && typeof propValueFinal === 'string') {
|
|
6004
6004
|
// Haven't found value
|
|
6005
|
-
value =
|
|
6005
|
+
value = getStyleValue$1(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
|
|
6006
6006
|
}
|
|
6007
6007
|
if (cssProperty === false) {
|
|
6008
6008
|
return value;
|
|
@@ -7626,10 +7626,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7626
7626
|
* }} options.
|
|
7627
7627
|
* `prefix`: The prefix of the generated CSS variables. This function does not change the value.
|
|
7628
7628
|
*
|
|
7629
|
-
* @returns {{ css: Object, vars: Object
|
|
7629
|
+
* @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).
|
|
7630
7630
|
*
|
|
7631
7631
|
* @example
|
|
7632
|
-
* const { css, vars
|
|
7632
|
+
* const { css, vars } = parser({
|
|
7633
7633
|
* fontSize: 12,
|
|
7634
7634
|
* lineHeight: 1.2,
|
|
7635
7635
|
* palette: { primary: { 500: 'var(--color)' } }
|
|
@@ -7637,7 +7637,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7637
7637
|
*
|
|
7638
7638
|
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }
|
|
7639
7639
|
* console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7640
|
-
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--color)' } } }
|
|
7641
7640
|
*/
|
|
7642
7641
|
function cssVarsParser(theme, options) {
|
|
7643
7642
|
const {
|
|
@@ -7646,7 +7645,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7646
7645
|
} = options || {};
|
|
7647
7646
|
const css = {};
|
|
7648
7647
|
const vars = {};
|
|
7649
|
-
const parsedTheme = {};
|
|
7650
7648
|
walkObjectDeep(theme, (keys, value, arrayKeys) => {
|
|
7651
7649
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
7652
7650
|
if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {
|
|
@@ -7658,14 +7656,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7658
7656
|
assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);
|
|
7659
7657
|
}
|
|
7660
7658
|
}
|
|
7661
|
-
assignNestedKeys(parsedTheme, keys, value, arrayKeys);
|
|
7662
7659
|
}, keys => keys[0] === 'vars' // skip 'vars/*' paths
|
|
7663
7660
|
);
|
|
7664
7661
|
|
|
7665
7662
|
return {
|
|
7666
7663
|
css,
|
|
7667
|
-
vars
|
|
7668
|
-
parsedTheme
|
|
7664
|
+
vars
|
|
7669
7665
|
};
|
|
7670
7666
|
}
|
|
7671
7667
|
|
|
@@ -8023,15 +8019,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8023
8019
|
// 2. Create CSS variables and store them in objects (to be generated in stylesheets in the final step)
|
|
8024
8020
|
const {
|
|
8025
8021
|
css: rootCss,
|
|
8026
|
-
vars: rootVars
|
|
8027
|
-
parsedTheme
|
|
8022
|
+
vars: rootVars
|
|
8028
8023
|
} = cssVarsParser(restThemeProp, {
|
|
8029
8024
|
prefix: cssVarPrefix,
|
|
8030
8025
|
shouldSkipGeneratingVar
|
|
8031
8026
|
});
|
|
8032
8027
|
|
|
8033
8028
|
// 3. Start composing the theme object
|
|
8034
|
-
|
|
8029
|
+
const theme = _extends({}, restThemeProp, {
|
|
8035
8030
|
components,
|
|
8036
8031
|
colorSchemes,
|
|
8037
8032
|
cssVarPrefix,
|
|
@@ -8047,8 +8042,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8047
8042
|
Object.entries(colorSchemes).forEach(([key, scheme]) => {
|
|
8048
8043
|
const {
|
|
8049
8044
|
css,
|
|
8050
|
-
vars
|
|
8051
|
-
parsedTheme: parsedScheme
|
|
8045
|
+
vars
|
|
8052
8046
|
} = cssVarsParser(scheme, {
|
|
8053
8047
|
prefix: cssVarPrefix,
|
|
8054
8048
|
shouldSkipGeneratingVar
|
|
@@ -8056,7 +8050,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8056
8050
|
theme.vars = deepmerge(theme.vars, vars);
|
|
8057
8051
|
if (key === calculatedColorScheme) {
|
|
8058
8052
|
// 4.1 Merge the selected color scheme to the theme
|
|
8059
|
-
|
|
8053
|
+
Object.keys(scheme).forEach(schemeKey => {
|
|
8054
|
+
if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {
|
|
8055
|
+
// shallow merge the 1st level structure of the theme.
|
|
8056
|
+
theme[schemeKey] = _extends({}, theme[schemeKey], scheme[schemeKey]);
|
|
8057
|
+
} else {
|
|
8058
|
+
theme[schemeKey] = scheme[schemeKey];
|
|
8059
|
+
}
|
|
8060
|
+
});
|
|
8060
8061
|
if (theme.palette) {
|
|
8061
8062
|
theme.palette.colorScheme = key;
|
|
8062
8063
|
}
|
|
@@ -9643,6 +9644,296 @@ You have to import it from @mui/styles.
|
|
|
9643
9644
|
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
9644
9645
|
}
|
|
9645
9646
|
|
|
9647
|
+
// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
9648
|
+
const getOverlayAlpha = elevation => {
|
|
9649
|
+
let alphaValue;
|
|
9650
|
+
if (elevation < 1) {
|
|
9651
|
+
alphaValue = 5.11916 * elevation ** 2;
|
|
9652
|
+
} else {
|
|
9653
|
+
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
9654
|
+
}
|
|
9655
|
+
return (alphaValue / 100).toFixed(2);
|
|
9656
|
+
};
|
|
9657
|
+
var getOverlayAlpha$1 = getOverlayAlpha;
|
|
9658
|
+
|
|
9659
|
+
const _excluded$2a = ["colorSchemes", "cssVarPrefix"],
|
|
9660
|
+
_excluded2$a = ["palette"];
|
|
9661
|
+
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
9662
|
+
if (index === 0) {
|
|
9663
|
+
return undefined;
|
|
9664
|
+
}
|
|
9665
|
+
const overlay = getOverlayAlpha$1(index);
|
|
9666
|
+
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
9667
|
+
});
|
|
9668
|
+
function assignNode(obj, keys) {
|
|
9669
|
+
keys.forEach(k => {
|
|
9670
|
+
if (!obj[k]) {
|
|
9671
|
+
obj[k] = {};
|
|
9672
|
+
}
|
|
9673
|
+
});
|
|
9674
|
+
}
|
|
9675
|
+
function setColor(obj, key, defaultValue) {
|
|
9676
|
+
obj[key] = obj[key] || defaultValue;
|
|
9677
|
+
}
|
|
9678
|
+
const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
|
|
9679
|
+
function extendTheme(options = {}, ...args) {
|
|
9680
|
+
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
9681
|
+
const {
|
|
9682
|
+
colorSchemes: colorSchemesInput = {},
|
|
9683
|
+
cssVarPrefix = 'mui'
|
|
9684
|
+
} = options,
|
|
9685
|
+
input = _objectWithoutPropertiesLoose(options, _excluded$2a);
|
|
9686
|
+
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
9687
|
+
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
9688
|
+
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
9689
|
+
})),
|
|
9690
|
+
{
|
|
9691
|
+
palette: lightPalette
|
|
9692
|
+
} = _createThemeWithoutVa,
|
|
9693
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$a);
|
|
9694
|
+
const {
|
|
9695
|
+
palette: darkPalette
|
|
9696
|
+
} = createTheme({
|
|
9697
|
+
palette: _extends({
|
|
9698
|
+
mode: 'dark'
|
|
9699
|
+
}, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
|
|
9700
|
+
});
|
|
9701
|
+
let theme = _extends({}, muiTheme, {
|
|
9702
|
+
cssVarPrefix,
|
|
9703
|
+
getCssVar,
|
|
9704
|
+
colorSchemes: _extends({}, colorSchemesInput, {
|
|
9705
|
+
light: _extends({}, colorSchemesInput.light, {
|
|
9706
|
+
palette: lightPalette,
|
|
9707
|
+
opacity: _extends({
|
|
9708
|
+
inputPlaceholder: 0.42,
|
|
9709
|
+
inputUnderline: 0.42,
|
|
9710
|
+
switchTrackDisabled: 0.12,
|
|
9711
|
+
switchTrack: 0.38
|
|
9712
|
+
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
|
|
9713
|
+
overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
|
|
9714
|
+
}),
|
|
9715
|
+
dark: _extends({}, colorSchemesInput.dark, {
|
|
9716
|
+
palette: darkPalette,
|
|
9717
|
+
opacity: _extends({
|
|
9718
|
+
inputPlaceholder: 0.5,
|
|
9719
|
+
inputUnderline: 0.7,
|
|
9720
|
+
switchTrackDisabled: 0.2,
|
|
9721
|
+
switchTrack: 0.3
|
|
9722
|
+
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
|
|
9723
|
+
overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
|
|
9724
|
+
})
|
|
9725
|
+
})
|
|
9726
|
+
});
|
|
9727
|
+
Object.keys(theme.colorSchemes).forEach(key => {
|
|
9728
|
+
const palette = theme.colorSchemes[key].palette;
|
|
9729
|
+
|
|
9730
|
+
// attach black & white channels to common node
|
|
9731
|
+
if (key === 'light') {
|
|
9732
|
+
setColor(palette.common, 'background', '#fff');
|
|
9733
|
+
setColor(palette.common, 'onBackground', '#000');
|
|
9734
|
+
} else {
|
|
9735
|
+
setColor(palette.common, 'background', '#000');
|
|
9736
|
+
setColor(palette.common, 'onBackground', '#fff');
|
|
9737
|
+
}
|
|
9738
|
+
|
|
9739
|
+
// assign component variables
|
|
9740
|
+
assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
9741
|
+
if (key === 'light') {
|
|
9742
|
+
setColor(palette.Alert, 'errorColor', darken(palette.error.light, 0.6));
|
|
9743
|
+
setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
|
|
9744
|
+
setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
|
|
9745
|
+
setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
|
|
9746
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-main'));
|
|
9747
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-main'));
|
|
9748
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-main'));
|
|
9749
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-main'));
|
|
9750
|
+
setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
|
|
9751
|
+
setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
|
|
9752
|
+
setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
|
|
9753
|
+
setColor(palette.Alert, 'warningFilledColor', lightPalette.getContrastText(palette.warning.main));
|
|
9754
|
+
setColor(palette.Alert, 'errorStandardBg', lighten(palette.error.light, 0.9));
|
|
9755
|
+
setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
|
|
9756
|
+
setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
|
|
9757
|
+
setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
|
|
9758
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-light'));
|
|
9759
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-light'));
|
|
9760
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-light'));
|
|
9761
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-light'));
|
|
9762
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-100'));
|
|
9763
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-400'));
|
|
9764
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-400'));
|
|
9765
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-700'));
|
|
9766
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-700'));
|
|
9767
|
+
setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
|
|
9768
|
+
setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
|
|
9769
|
+
setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
|
|
9770
|
+
setColor(palette.LinearProgress, 'primaryBg', lighten(palette.primary.main, 0.62));
|
|
9771
|
+
setColor(palette.LinearProgress, 'secondaryBg', lighten(palette.secondary.main, 0.62));
|
|
9772
|
+
setColor(palette.LinearProgress, 'errorBg', lighten(palette.error.main, 0.62));
|
|
9773
|
+
setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
|
|
9774
|
+
setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
|
|
9775
|
+
setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
|
|
9776
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.11)`);
|
|
9777
|
+
setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
|
|
9778
|
+
setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
|
|
9779
|
+
setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
|
|
9780
|
+
setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
|
|
9781
|
+
setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
|
|
9782
|
+
setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
|
|
9783
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.8);
|
|
9784
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
9785
|
+
setColor(palette.SnackbarContent, 'color', lightPalette.getContrastText(snackbarContentBackground));
|
|
9786
|
+
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
9787
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-400'));
|
|
9788
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-400'));
|
|
9789
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-common-white'));
|
|
9790
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-100'));
|
|
9791
|
+
setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
|
|
9792
|
+
setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
|
|
9793
|
+
setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
|
|
9794
|
+
setColor(palette.Switch, 'infoDisabledColor', lighten(palette.info.main, 0.62));
|
|
9795
|
+
setColor(palette.Switch, 'successDisabledColor', lighten(palette.success.main, 0.62));
|
|
9796
|
+
setColor(palette.Switch, 'warningDisabledColor', lighten(palette.warning.main, 0.62));
|
|
9797
|
+
setColor(palette.TableCell, 'border', lighten(alpha(palette.divider, 1), 0.88));
|
|
9798
|
+
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
9799
|
+
} else {
|
|
9800
|
+
setColor(palette.Alert, 'errorColor', lighten(palette.error.light, 0.6));
|
|
9801
|
+
setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
|
|
9802
|
+
setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
|
|
9803
|
+
setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
|
|
9804
|
+
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-dark'));
|
|
9805
|
+
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-dark'));
|
|
9806
|
+
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-dark'));
|
|
9807
|
+
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-dark'));
|
|
9808
|
+
setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
|
|
9809
|
+
setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
|
|
9810
|
+
setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
|
|
9811
|
+
setColor(palette.Alert, 'warningFilledColor', darkPalette.getContrastText(palette.warning.dark));
|
|
9812
|
+
setColor(palette.Alert, 'errorStandardBg', darken(palette.error.light, 0.9));
|
|
9813
|
+
setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
|
|
9814
|
+
setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
|
|
9815
|
+
setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
|
|
9816
|
+
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-main'));
|
|
9817
|
+
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-main'));
|
|
9818
|
+
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-main'));
|
|
9819
|
+
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-main'));
|
|
9820
|
+
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-900'));
|
|
9821
|
+
setColor(palette.AppBar, 'darkBg', getCssVar('palette-background-paper')); // specific for dark mode
|
|
9822
|
+
setColor(palette.AppBar, 'darkColor', getCssVar('palette-text-primary')); // specific for dark mode
|
|
9823
|
+
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-600'));
|
|
9824
|
+
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-700'));
|
|
9825
|
+
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-300'));
|
|
9826
|
+
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-300'));
|
|
9827
|
+
setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
|
|
9828
|
+
setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
|
|
9829
|
+
setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
|
|
9830
|
+
setColor(palette.LinearProgress, 'primaryBg', darken(palette.primary.main, 0.5));
|
|
9831
|
+
setColor(palette.LinearProgress, 'secondaryBg', darken(palette.secondary.main, 0.5));
|
|
9832
|
+
setColor(palette.LinearProgress, 'errorBg', darken(palette.error.main, 0.5));
|
|
9833
|
+
setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
|
|
9834
|
+
setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
|
|
9835
|
+
setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
|
|
9836
|
+
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.13)`);
|
|
9837
|
+
setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
|
|
9838
|
+
setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
|
|
9839
|
+
setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
|
|
9840
|
+
setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
|
|
9841
|
+
setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
|
|
9842
|
+
setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
|
|
9843
|
+
const snackbarContentBackground = emphasize(palette.background.default, 0.98);
|
|
9844
|
+
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
9845
|
+
setColor(palette.SnackbarContent, 'color', darkPalette.getContrastText(snackbarContentBackground));
|
|
9846
|
+
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
9847
|
+
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-600'));
|
|
9848
|
+
setColor(palette.StepContent, 'border', getCssVar('palette-grey-600'));
|
|
9849
|
+
setColor(palette.Switch, 'defaultColor', getCssVar('palette-grey-300'));
|
|
9850
|
+
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-600'));
|
|
9851
|
+
setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
|
|
9852
|
+
setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
|
|
9853
|
+
setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
|
|
9854
|
+
setColor(palette.Switch, 'infoDisabledColor', darken(palette.info.main, 0.55));
|
|
9855
|
+
setColor(palette.Switch, 'successDisabledColor', darken(palette.success.main, 0.55));
|
|
9856
|
+
setColor(palette.Switch, 'warningDisabledColor', darken(palette.warning.main, 0.55));
|
|
9857
|
+
setColor(palette.TableCell, 'border', darken(alpha(palette.divider, 1), 0.68));
|
|
9858
|
+
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
9859
|
+
}
|
|
9860
|
+
palette.background.defaultChannel = colorChannel(palette.background.default); // MUI X - DataGrid needs this token.
|
|
9861
|
+
|
|
9862
|
+
palette.common.backgroundChannel = colorChannel(palette.common.background);
|
|
9863
|
+
palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
|
|
9864
|
+
palette.dividerChannel = colorChannel(palette.divider);
|
|
9865
|
+
Object.keys(palette).forEach(color => {
|
|
9866
|
+
const colors = palette[color];
|
|
9867
|
+
|
|
9868
|
+
// Color palettes: primary, secondary, error, info, success, and warning
|
|
9869
|
+
if (colors.main) {
|
|
9870
|
+
palette[color].mainChannel = colorChannel(colors.main);
|
|
9871
|
+
}
|
|
9872
|
+
if (colors.light) {
|
|
9873
|
+
palette[color].lightChannel = colorChannel(colors.light);
|
|
9874
|
+
}
|
|
9875
|
+
if (colors.dark) {
|
|
9876
|
+
palette[color].darkChannel = colorChannel(colors.dark);
|
|
9877
|
+
}
|
|
9878
|
+
if (colors.contrastText) {
|
|
9879
|
+
palette[color].contrastTextChannel = colorChannel(colors.contrastText);
|
|
9880
|
+
}
|
|
9881
|
+
|
|
9882
|
+
// Text colors: text.primary, text.secondary
|
|
9883
|
+
if (colors.primary) {
|
|
9884
|
+
palette[color].primaryChannel = colorChannel(colors.primary);
|
|
9885
|
+
}
|
|
9886
|
+
if (colors.secondary) {
|
|
9887
|
+
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
9888
|
+
}
|
|
9889
|
+
|
|
9890
|
+
// Action colors: action.active, action.selected
|
|
9891
|
+
if (colors.active) {
|
|
9892
|
+
palette[color].activeChannel = colorChannel(colors.active);
|
|
9893
|
+
}
|
|
9894
|
+
if (colors.selected) {
|
|
9895
|
+
palette[color].selectedChannel = colorChannel(colors.selected);
|
|
9896
|
+
}
|
|
9897
|
+
});
|
|
9898
|
+
});
|
|
9899
|
+
theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
|
|
9900
|
+
return theme;
|
|
9901
|
+
}
|
|
9902
|
+
|
|
9903
|
+
/**
|
|
9904
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
9905
|
+
*/
|
|
9906
|
+
const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(24)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index + 1}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];
|
|
9907
|
+
var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
|
|
9908
|
+
|
|
9909
|
+
const shouldSkipGeneratingVar = keys => {
|
|
9910
|
+
var _keys$;
|
|
9911
|
+
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
9912
|
+
};
|
|
9913
|
+
const defaultTheme$1 = extendTheme();
|
|
9914
|
+
const {
|
|
9915
|
+
CssVarsProvider,
|
|
9916
|
+
useColorScheme,
|
|
9917
|
+
getInitColorSchemeScript
|
|
9918
|
+
} = createCssVarsProvider({
|
|
9919
|
+
theme: defaultTheme$1,
|
|
9920
|
+
attribute: 'data-mui-color-scheme',
|
|
9921
|
+
modeStorageKey: 'mui-mode',
|
|
9922
|
+
colorSchemeStorageKey: 'mui-color-scheme',
|
|
9923
|
+
defaultColorScheme: {
|
|
9924
|
+
light: 'light',
|
|
9925
|
+
dark: 'dark'
|
|
9926
|
+
},
|
|
9927
|
+
resolveTheme: theme => {
|
|
9928
|
+
const newTheme = _extends({}, theme, {
|
|
9929
|
+
typography: createTypography(theme.palette, theme.typography)
|
|
9930
|
+
});
|
|
9931
|
+
return newTheme;
|
|
9932
|
+
},
|
|
9933
|
+
shouldSkipGeneratingVar,
|
|
9934
|
+
excludeVariablesFromRoot: excludeVariablesFromRoot$1
|
|
9935
|
+
});
|
|
9936
|
+
|
|
9646
9937
|
/**
|
|
9647
9938
|
* Determines if a given element is a DOM element name (i.e. not a React component).
|
|
9648
9939
|
*/
|
|
@@ -9659,12 +9950,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
9659
9950
|
/**
|
|
9660
9951
|
* Appends the ownerState object to the props, merging with the existing one if necessary.
|
|
9661
9952
|
*
|
|
9662
|
-
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node, `ownerState` is not applied.
|
|
9953
|
+
* @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.
|
|
9663
9954
|
* @param otherProps Props of the element.
|
|
9664
9955
|
* @param ownerState
|
|
9665
9956
|
*/
|
|
9666
9957
|
function appendOwnerState(elementType, otherProps, ownerState) {
|
|
9667
|
-
if (isHostComponent(elementType)) {
|
|
9958
|
+
if (elementType === undefined || isHostComponent(elementType)) {
|
|
9668
9959
|
return otherProps;
|
|
9669
9960
|
}
|
|
9670
9961
|
return _extends({}, otherProps, {
|
|
@@ -9785,7 +10076,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
9785
10076
|
};
|
|
9786
10077
|
}
|
|
9787
10078
|
|
|
9788
|
-
const _excluded$
|
|
10079
|
+
const _excluded$29 = ["elementType", "externalSlotProps", "ownerState"];
|
|
9789
10080
|
/**
|
|
9790
10081
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
9791
10082
|
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
|
|
@@ -9800,7 +10091,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
9800
10091
|
externalSlotProps,
|
|
9801
10092
|
ownerState
|
|
9802
10093
|
} = parameters,
|
|
9803
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
10094
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$29);
|
|
9804
10095
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
9805
10096
|
const {
|
|
9806
10097
|
props: mergedProps,
|
|
@@ -10774,7 +11065,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10774
11065
|
}
|
|
10775
11066
|
generateUtilityClasses('MuiBadge', ['root', 'badge', 'invisible']);
|
|
10776
11067
|
|
|
10777
|
-
const _excluded$
|
|
11068
|
+
const _excluded$28 = ["badgeContent", "component", "children", "invisible", "max", "slotProps", "slots", "showZero"];
|
|
10778
11069
|
const useUtilityClasses$1P = ownerState => {
|
|
10779
11070
|
const {
|
|
10780
11071
|
invisible
|
|
@@ -10804,7 +11095,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
10804
11095
|
slots = {},
|
|
10805
11096
|
showZero = false
|
|
10806
11097
|
} = props,
|
|
10807
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
11098
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$28);
|
|
10808
11099
|
const {
|
|
10809
11100
|
badgeContent,
|
|
10810
11101
|
max,
|
|
@@ -13422,8 +13713,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13422
13713
|
}
|
|
13423
13714
|
generateUtilityClasses('MuiPopperUnstyled', ['root']);
|
|
13424
13715
|
|
|
13425
|
-
const _excluded$
|
|
13426
|
-
_excluded2$
|
|
13716
|
+
const _excluded$27 = ["anchorEl", "children", "component", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps"],
|
|
13717
|
+
_excluded2$9 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
|
|
13427
13718
|
function flipPlacement(placement, direction) {
|
|
13428
13719
|
if (direction === 'ltr') {
|
|
13429
13720
|
return placement;
|
|
@@ -13471,7 +13762,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13471
13762
|
slots = {},
|
|
13472
13763
|
TransitionProps
|
|
13473
13764
|
} = props,
|
|
13474
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13765
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$27);
|
|
13475
13766
|
const tooltipRef = React__namespace.useRef(null);
|
|
13476
13767
|
const ownRef = useForkRef(tooltipRef, ref);
|
|
13477
13768
|
const popperRef = React__namespace.useRef(null);
|
|
@@ -13589,7 +13880,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13589
13880
|
style,
|
|
13590
13881
|
transition = false
|
|
13591
13882
|
} = props,
|
|
13592
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
13883
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$9);
|
|
13593
13884
|
const [exited, setExited] = React__namespace.useState(true);
|
|
13594
13885
|
const handleEnter = () => {
|
|
13595
13886
|
setExited(false);
|
|
@@ -13979,7 +14270,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
13979
14270
|
const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
13980
14271
|
var modalUnstyledClasses$1 = modalUnstyledClasses;
|
|
13981
14272
|
|
|
13982
|
-
const _excluded$
|
|
14273
|
+
const _excluded$26 = ["children", "classes", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
13983
14274
|
const useUtilityClasses$1N = ownerState => {
|
|
13984
14275
|
const {
|
|
13985
14276
|
open,
|
|
@@ -14044,7 +14335,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14044
14335
|
slotProps = {},
|
|
14045
14336
|
slots = {}
|
|
14046
14337
|
} = props,
|
|
14047
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14338
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$26);
|
|
14048
14339
|
const [exited, setExited] = React__namespace.useState(true);
|
|
14049
14340
|
const modal = React__namespace.useRef({});
|
|
14050
14341
|
const mountNodeRef = React__namespace.useRef(null);
|
|
@@ -15054,7 +15345,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15054
15345
|
};
|
|
15055
15346
|
}
|
|
15056
15347
|
|
|
15057
|
-
const _excluded$
|
|
15348
|
+
const _excluded$25 = ["aria-label", "aria-valuetext", "aria-labelledby", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "slotProps", "slots"];
|
|
15058
15349
|
const Identity = x => x;
|
|
15059
15350
|
const useUtilityClasses$1M = ownerState => {
|
|
15060
15351
|
const {
|
|
@@ -15110,7 +15401,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15110
15401
|
slotProps = {},
|
|
15111
15402
|
slots = {}
|
|
15112
15403
|
} = props,
|
|
15113
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15404
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$25);
|
|
15114
15405
|
|
|
15115
15406
|
// all props with defaults
|
|
15116
15407
|
// consider extracting to hook an reusing the lint rule for the variants
|
|
@@ -15492,7 +15783,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15492
15783
|
} ;
|
|
15493
15784
|
var SliderUnstyled$1 = SliderUnstyled;
|
|
15494
15785
|
|
|
15495
|
-
const _excluded$
|
|
15786
|
+
const _excluded$24 = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15496
15787
|
function getStyleValue(computedStyle, property) {
|
|
15497
15788
|
return parseInt(computedStyle[property], 10) || 0;
|
|
15498
15789
|
}
|
|
@@ -15522,7 +15813,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15522
15813
|
style,
|
|
15523
15814
|
value
|
|
15524
15815
|
} = props,
|
|
15525
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15816
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$24);
|
|
15526
15817
|
const {
|
|
15527
15818
|
current: isControlled
|
|
15528
15819
|
} = React__namespace.useRef(value != null);
|
|
@@ -15728,438 +16019,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15728
16019
|
} ;
|
|
15729
16020
|
var TextareaAutosize$1 = TextareaAutosize;
|
|
15730
16021
|
|
|
15731
|
-
function getPaperUtilityClass(slot) {
|
|
15732
|
-
return generateUtilityClass('MuiPaper', slot);
|
|
15733
|
-
}
|
|
15734
|
-
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']);
|
|
15735
|
-
var paperClasses$1 = paperClasses;
|
|
15736
|
-
|
|
15737
|
-
const _excluded$24 = ["className", "component", "elevation", "square", "variant"];
|
|
15738
|
-
const getOverlayAlpha = elevation => {
|
|
15739
|
-
let alphaValue;
|
|
15740
|
-
if (elevation < 1) {
|
|
15741
|
-
alphaValue = 5.11916 * elevation ** 2;
|
|
15742
|
-
} else {
|
|
15743
|
-
alphaValue = 4.5 * Math.log(elevation + 1) + 2;
|
|
15744
|
-
}
|
|
15745
|
-
return (alphaValue / 100).toFixed(2);
|
|
15746
|
-
};
|
|
15747
|
-
const useUtilityClasses$1L = ownerState => {
|
|
15748
|
-
const {
|
|
15749
|
-
square,
|
|
15750
|
-
elevation,
|
|
15751
|
-
variant,
|
|
15752
|
-
classes
|
|
15753
|
-
} = ownerState;
|
|
15754
|
-
const slots = {
|
|
15755
|
-
root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
|
|
15756
|
-
};
|
|
15757
|
-
return composeClasses(slots, getPaperUtilityClass, classes);
|
|
15758
|
-
};
|
|
15759
|
-
const PaperRoot = styled$1('div', {
|
|
15760
|
-
name: 'MuiPaper',
|
|
15761
|
-
slot: 'Root',
|
|
15762
|
-
overridesResolver: (props, styles) => {
|
|
15763
|
-
const {
|
|
15764
|
-
ownerState
|
|
15765
|
-
} = props;
|
|
15766
|
-
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
|
|
15767
|
-
}
|
|
15768
|
-
})(({
|
|
15769
|
-
theme,
|
|
15770
|
-
ownerState
|
|
15771
|
-
}) => {
|
|
15772
|
-
var _theme$vars$overlays;
|
|
15773
|
-
return _extends({
|
|
15774
|
-
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
15775
|
-
color: (theme.vars || theme).palette.text.primary,
|
|
15776
|
-
transition: theme.transitions.create('box-shadow')
|
|
15777
|
-
}, !ownerState.square && {
|
|
15778
|
-
borderRadius: theme.shape.borderRadius
|
|
15779
|
-
}, ownerState.variant === 'outlined' && {
|
|
15780
|
-
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
15781
|
-
}, ownerState.variant === 'elevation' && _extends({
|
|
15782
|
-
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
15783
|
-
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
15784
|
-
backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha(ownerState.elevation))})`
|
|
15785
|
-
}, theme.vars && {
|
|
15786
|
-
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
|
15787
|
-
}));
|
|
15788
|
-
});
|
|
15789
|
-
const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
|
|
15790
|
-
const props = useThemeProps({
|
|
15791
|
-
props: inProps,
|
|
15792
|
-
name: 'MuiPaper'
|
|
15793
|
-
});
|
|
15794
|
-
const {
|
|
15795
|
-
className,
|
|
15796
|
-
component = 'div',
|
|
15797
|
-
elevation = 1,
|
|
15798
|
-
square = false,
|
|
15799
|
-
variant = 'elevation'
|
|
15800
|
-
} = props,
|
|
15801
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$24);
|
|
15802
|
-
const ownerState = _extends({}, props, {
|
|
15803
|
-
component,
|
|
15804
|
-
elevation,
|
|
15805
|
-
square,
|
|
15806
|
-
variant
|
|
15807
|
-
});
|
|
15808
|
-
const classes = useUtilityClasses$1L(ownerState);
|
|
15809
|
-
{
|
|
15810
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
15811
|
-
const theme = useTheme();
|
|
15812
|
-
if (theme.shadows[elevation] === undefined) {
|
|
15813
|
-
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'));
|
|
15814
|
-
}
|
|
15815
|
-
}
|
|
15816
|
-
return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
|
|
15817
|
-
as: component,
|
|
15818
|
-
ownerState: ownerState,
|
|
15819
|
-
className: clsx(classes.root, className),
|
|
15820
|
-
ref: ref
|
|
15821
|
-
}, other));
|
|
15822
|
-
});
|
|
15823
|
-
Paper.propTypes /* remove-proptypes */ = {
|
|
15824
|
-
// ----------------------------- Warning --------------------------------
|
|
15825
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15826
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
15827
|
-
// ----------------------------------------------------------------------
|
|
15828
|
-
/**
|
|
15829
|
-
* The content of the component.
|
|
15830
|
-
*/
|
|
15831
|
-
children: PropTypes.node,
|
|
15832
|
-
/**
|
|
15833
|
-
* Override or extend the styles applied to the component.
|
|
15834
|
-
*/
|
|
15835
|
-
classes: PropTypes.object,
|
|
15836
|
-
/**
|
|
15837
|
-
* @ignore
|
|
15838
|
-
*/
|
|
15839
|
-
className: PropTypes.string,
|
|
15840
|
-
/**
|
|
15841
|
-
* The component used for the root node.
|
|
15842
|
-
* Either a string to use a HTML element or a component.
|
|
15843
|
-
*/
|
|
15844
|
-
component: PropTypes.elementType,
|
|
15845
|
-
/**
|
|
15846
|
-
* Shadow depth, corresponds to `dp` in the spec.
|
|
15847
|
-
* It accepts values between 0 and 24 inclusive.
|
|
15848
|
-
* @default 1
|
|
15849
|
-
*/
|
|
15850
|
-
elevation: chainPropTypes(integerPropType, props => {
|
|
15851
|
-
const {
|
|
15852
|
-
elevation,
|
|
15853
|
-
variant
|
|
15854
|
-
} = props;
|
|
15855
|
-
if (elevation > 0 && variant === 'outlined') {
|
|
15856
|
-
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
15857
|
-
}
|
|
15858
|
-
return null;
|
|
15859
|
-
}),
|
|
15860
|
-
/**
|
|
15861
|
-
* If `true`, rounded corners are disabled.
|
|
15862
|
-
* @default false
|
|
15863
|
-
*/
|
|
15864
|
-
square: PropTypes.bool,
|
|
15865
|
-
/**
|
|
15866
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
15867
|
-
*/
|
|
15868
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
15869
|
-
/**
|
|
15870
|
-
* The variant to use.
|
|
15871
|
-
* @default 'elevation'
|
|
15872
|
-
*/
|
|
15873
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
|
|
15874
|
-
} ;
|
|
15875
|
-
var Paper$1 = Paper;
|
|
15876
|
-
|
|
15877
|
-
const _excluded$23 = ["colorSchemes", "cssVarPrefix"],
|
|
15878
|
-
_excluded2$9 = ["palette"];
|
|
15879
|
-
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
15880
|
-
if (index === 0) {
|
|
15881
|
-
return undefined;
|
|
15882
|
-
}
|
|
15883
|
-
const overlay = getOverlayAlpha(index);
|
|
15884
|
-
return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;
|
|
15885
|
-
});
|
|
15886
|
-
function assignNode(obj, keys) {
|
|
15887
|
-
keys.forEach(k => {
|
|
15888
|
-
if (!obj[k]) {
|
|
15889
|
-
obj[k] = {};
|
|
15890
|
-
}
|
|
15891
|
-
});
|
|
15892
|
-
}
|
|
15893
|
-
function setColor(obj, key, defaultValue) {
|
|
15894
|
-
obj[key] = obj[key] || defaultValue;
|
|
15895
|
-
}
|
|
15896
|
-
const createGetCssVar = (cssVarPrefix = 'mui') => createGetCssVar$1(cssVarPrefix);
|
|
15897
|
-
function extendTheme(options = {}, ...args) {
|
|
15898
|
-
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$li3, _colorSchemesInput$da2, _colorSchemesInput$da3;
|
|
15899
|
-
const {
|
|
15900
|
-
colorSchemes: colorSchemesInput = {},
|
|
15901
|
-
cssVarPrefix = 'mui'
|
|
15902
|
-
} = options,
|
|
15903
|
-
input = _objectWithoutPropertiesLoose(options, _excluded$23);
|
|
15904
|
-
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
15905
|
-
const _createThemeWithoutVa = createTheme(_extends({}, input, colorSchemesInput.light && {
|
|
15906
|
-
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
15907
|
-
})),
|
|
15908
|
-
{
|
|
15909
|
-
palette: lightPalette
|
|
15910
|
-
} = _createThemeWithoutVa,
|
|
15911
|
-
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
|
|
15912
|
-
const {
|
|
15913
|
-
palette: darkPalette
|
|
15914
|
-
} = createTheme({
|
|
15915
|
-
palette: _extends({
|
|
15916
|
-
mode: 'dark'
|
|
15917
|
-
}, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
|
|
15918
|
-
});
|
|
15919
|
-
let theme = _extends({}, muiTheme, {
|
|
15920
|
-
cssVarPrefix,
|
|
15921
|
-
getCssVar,
|
|
15922
|
-
colorSchemes: _extends({}, colorSchemesInput, {
|
|
15923
|
-
light: _extends({}, colorSchemesInput.light, {
|
|
15924
|
-
palette: lightPalette,
|
|
15925
|
-
opacity: _extends({
|
|
15926
|
-
inputPlaceholder: 0.42,
|
|
15927
|
-
inputUnderline: 0.42,
|
|
15928
|
-
switchTrackDisabled: 0.12,
|
|
15929
|
-
switchTrack: 0.38
|
|
15930
|
-
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity),
|
|
15931
|
-
overlays: ((_colorSchemesInput$li3 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li3.overlays) || []
|
|
15932
|
-
}),
|
|
15933
|
-
dark: _extends({}, colorSchemesInput.dark, {
|
|
15934
|
-
palette: darkPalette,
|
|
15935
|
-
opacity: _extends({
|
|
15936
|
-
inputPlaceholder: 0.5,
|
|
15937
|
-
inputUnderline: 0.7,
|
|
15938
|
-
switchTrackDisabled: 0.2,
|
|
15939
|
-
switchTrack: 0.3
|
|
15940
|
-
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity),
|
|
15941
|
-
overlays: ((_colorSchemesInput$da3 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da3.overlays) || defaultDarkOverlays
|
|
15942
|
-
})
|
|
15943
|
-
})
|
|
15944
|
-
});
|
|
15945
|
-
Object.keys(theme.colorSchemes).forEach(key => {
|
|
15946
|
-
const palette = theme.colorSchemes[key].palette;
|
|
15947
|
-
|
|
15948
|
-
// attach black & white channels to common node
|
|
15949
|
-
if (key === 'light') {
|
|
15950
|
-
setColor(palette.common, 'background', '#fff');
|
|
15951
|
-
setColor(palette.common, 'onBackground', '#000');
|
|
15952
|
-
} else {
|
|
15953
|
-
setColor(palette.common, 'background', '#000');
|
|
15954
|
-
setColor(palette.common, 'onBackground', '#fff');
|
|
15955
|
-
}
|
|
15956
|
-
|
|
15957
|
-
// assign component variables
|
|
15958
|
-
assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);
|
|
15959
|
-
if (key === 'light') {
|
|
15960
|
-
setColor(palette.Alert, 'errorColor', darken(palette.error.light, 0.6));
|
|
15961
|
-
setColor(palette.Alert, 'infoColor', darken(palette.info.light, 0.6));
|
|
15962
|
-
setColor(palette.Alert, 'successColor', darken(palette.success.light, 0.6));
|
|
15963
|
-
setColor(palette.Alert, 'warningColor', darken(palette.warning.light, 0.6));
|
|
15964
|
-
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-main'));
|
|
15965
|
-
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-main'));
|
|
15966
|
-
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-main'));
|
|
15967
|
-
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-main'));
|
|
15968
|
-
setColor(palette.Alert, 'errorFilledColor', lightPalette.getContrastText(palette.error.main));
|
|
15969
|
-
setColor(palette.Alert, 'infoFilledColor', lightPalette.getContrastText(palette.info.main));
|
|
15970
|
-
setColor(palette.Alert, 'successFilledColor', lightPalette.getContrastText(palette.success.main));
|
|
15971
|
-
setColor(palette.Alert, 'warningFilledColor', lightPalette.getContrastText(palette.warning.main));
|
|
15972
|
-
setColor(palette.Alert, 'errorStandardBg', lighten(palette.error.light, 0.9));
|
|
15973
|
-
setColor(palette.Alert, 'infoStandardBg', lighten(palette.info.light, 0.9));
|
|
15974
|
-
setColor(palette.Alert, 'successStandardBg', lighten(palette.success.light, 0.9));
|
|
15975
|
-
setColor(palette.Alert, 'warningStandardBg', lighten(palette.warning.light, 0.9));
|
|
15976
|
-
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-light'));
|
|
15977
|
-
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-light'));
|
|
15978
|
-
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-light'));
|
|
15979
|
-
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-light'));
|
|
15980
|
-
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-100'));
|
|
15981
|
-
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-400'));
|
|
15982
|
-
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-400'));
|
|
15983
|
-
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-700'));
|
|
15984
|
-
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-700'));
|
|
15985
|
-
setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');
|
|
15986
|
-
setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');
|
|
15987
|
-
setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');
|
|
15988
|
-
setColor(palette.LinearProgress, 'primaryBg', lighten(palette.primary.main, 0.62));
|
|
15989
|
-
setColor(palette.LinearProgress, 'secondaryBg', lighten(palette.secondary.main, 0.62));
|
|
15990
|
-
setColor(palette.LinearProgress, 'errorBg', lighten(palette.error.main, 0.62));
|
|
15991
|
-
setColor(palette.LinearProgress, 'infoBg', lighten(palette.info.main, 0.62));
|
|
15992
|
-
setColor(palette.LinearProgress, 'successBg', lighten(palette.success.main, 0.62));
|
|
15993
|
-
setColor(palette.LinearProgress, 'warningBg', lighten(palette.warning.main, 0.62));
|
|
15994
|
-
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.11)`);
|
|
15995
|
-
setColor(palette.Slider, 'primaryTrack', lighten(palette.primary.main, 0.62));
|
|
15996
|
-
setColor(palette.Slider, 'secondaryTrack', lighten(palette.secondary.main, 0.62));
|
|
15997
|
-
setColor(palette.Slider, 'errorTrack', lighten(palette.error.main, 0.62));
|
|
15998
|
-
setColor(palette.Slider, 'infoTrack', lighten(palette.info.main, 0.62));
|
|
15999
|
-
setColor(palette.Slider, 'successTrack', lighten(palette.success.main, 0.62));
|
|
16000
|
-
setColor(palette.Slider, 'warningTrack', lighten(palette.warning.main, 0.62));
|
|
16001
|
-
const snackbarContentBackground = emphasize(palette.background.default, 0.8);
|
|
16002
|
-
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16003
|
-
setColor(palette.SnackbarContent, 'color', lightPalette.getContrastText(snackbarContentBackground));
|
|
16004
|
-
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16005
|
-
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-400'));
|
|
16006
|
-
setColor(palette.StepContent, 'border', getCssVar('palette-grey-400'));
|
|
16007
|
-
setColor(palette.Switch, 'defaultColor', getCssVar('palette-common-white'));
|
|
16008
|
-
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-100'));
|
|
16009
|
-
setColor(palette.Switch, 'primaryDisabledColor', lighten(palette.primary.main, 0.62));
|
|
16010
|
-
setColor(palette.Switch, 'secondaryDisabledColor', lighten(palette.secondary.main, 0.62));
|
|
16011
|
-
setColor(palette.Switch, 'errorDisabledColor', lighten(palette.error.main, 0.62));
|
|
16012
|
-
setColor(palette.Switch, 'infoDisabledColor', lighten(palette.info.main, 0.62));
|
|
16013
|
-
setColor(palette.Switch, 'successDisabledColor', lighten(palette.success.main, 0.62));
|
|
16014
|
-
setColor(palette.Switch, 'warningDisabledColor', lighten(palette.warning.main, 0.62));
|
|
16015
|
-
setColor(palette.TableCell, 'border', lighten(alpha(palette.divider, 1), 0.88));
|
|
16016
|
-
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
16017
|
-
} else {
|
|
16018
|
-
setColor(palette.Alert, 'errorColor', lighten(palette.error.light, 0.6));
|
|
16019
|
-
setColor(palette.Alert, 'infoColor', lighten(palette.info.light, 0.6));
|
|
16020
|
-
setColor(palette.Alert, 'successColor', lighten(palette.success.light, 0.6));
|
|
16021
|
-
setColor(palette.Alert, 'warningColor', lighten(palette.warning.light, 0.6));
|
|
16022
|
-
setColor(palette.Alert, 'errorFilledBg', getCssVar('palette-error-dark'));
|
|
16023
|
-
setColor(palette.Alert, 'infoFilledBg', getCssVar('palette-info-dark'));
|
|
16024
|
-
setColor(palette.Alert, 'successFilledBg', getCssVar('palette-success-dark'));
|
|
16025
|
-
setColor(palette.Alert, 'warningFilledBg', getCssVar('palette-warning-dark'));
|
|
16026
|
-
setColor(palette.Alert, 'errorFilledColor', darkPalette.getContrastText(palette.error.dark));
|
|
16027
|
-
setColor(palette.Alert, 'infoFilledColor', darkPalette.getContrastText(palette.info.dark));
|
|
16028
|
-
setColor(palette.Alert, 'successFilledColor', darkPalette.getContrastText(palette.success.dark));
|
|
16029
|
-
setColor(palette.Alert, 'warningFilledColor', darkPalette.getContrastText(palette.warning.dark));
|
|
16030
|
-
setColor(palette.Alert, 'errorStandardBg', darken(palette.error.light, 0.9));
|
|
16031
|
-
setColor(palette.Alert, 'infoStandardBg', darken(palette.info.light, 0.9));
|
|
16032
|
-
setColor(palette.Alert, 'successStandardBg', darken(palette.success.light, 0.9));
|
|
16033
|
-
setColor(palette.Alert, 'warningStandardBg', darken(palette.warning.light, 0.9));
|
|
16034
|
-
setColor(palette.Alert, 'errorIconColor', getCssVar('palette-error-main'));
|
|
16035
|
-
setColor(palette.Alert, 'infoIconColor', getCssVar('palette-info-main'));
|
|
16036
|
-
setColor(palette.Alert, 'successIconColor', getCssVar('palette-success-main'));
|
|
16037
|
-
setColor(palette.Alert, 'warningIconColor', getCssVar('palette-warning-main'));
|
|
16038
|
-
setColor(palette.AppBar, 'defaultBg', getCssVar('palette-grey-900'));
|
|
16039
|
-
setColor(palette.AppBar, 'darkBg', getCssVar('palette-background-paper')); // specific for dark mode
|
|
16040
|
-
setColor(palette.AppBar, 'darkColor', getCssVar('palette-text-primary')); // specific for dark mode
|
|
16041
|
-
setColor(palette.Avatar, 'defaultBg', getCssVar('palette-grey-600'));
|
|
16042
|
-
setColor(palette.Chip, 'defaultBorder', getCssVar('palette-grey-700'));
|
|
16043
|
-
setColor(palette.Chip, 'defaultAvatarColor', getCssVar('palette-grey-300'));
|
|
16044
|
-
setColor(palette.Chip, 'defaultIconColor', getCssVar('palette-grey-300'));
|
|
16045
|
-
setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');
|
|
16046
|
-
setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');
|
|
16047
|
-
setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');
|
|
16048
|
-
setColor(palette.LinearProgress, 'primaryBg', darken(palette.primary.main, 0.5));
|
|
16049
|
-
setColor(palette.LinearProgress, 'secondaryBg', darken(palette.secondary.main, 0.5));
|
|
16050
|
-
setColor(palette.LinearProgress, 'errorBg', darken(palette.error.main, 0.5));
|
|
16051
|
-
setColor(palette.LinearProgress, 'infoBg', darken(palette.info.main, 0.5));
|
|
16052
|
-
setColor(palette.LinearProgress, 'successBg', darken(palette.success.main, 0.5));
|
|
16053
|
-
setColor(palette.LinearProgress, 'warningBg', darken(palette.warning.main, 0.5));
|
|
16054
|
-
setColor(palette.Skeleton, 'bg', `rgba(${getCssVar('palette-text-primaryChannel')} / 0.13)`);
|
|
16055
|
-
setColor(palette.Slider, 'primaryTrack', darken(palette.primary.main, 0.5));
|
|
16056
|
-
setColor(palette.Slider, 'secondaryTrack', darken(palette.secondary.main, 0.5));
|
|
16057
|
-
setColor(palette.Slider, 'errorTrack', darken(palette.error.main, 0.5));
|
|
16058
|
-
setColor(palette.Slider, 'infoTrack', darken(palette.info.main, 0.5));
|
|
16059
|
-
setColor(palette.Slider, 'successTrack', darken(palette.success.main, 0.5));
|
|
16060
|
-
setColor(palette.Slider, 'warningTrack', darken(palette.warning.main, 0.5));
|
|
16061
|
-
const snackbarContentBackground = emphasize(palette.background.default, 0.98);
|
|
16062
|
-
setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);
|
|
16063
|
-
setColor(palette.SnackbarContent, 'color', darkPalette.getContrastText(snackbarContentBackground));
|
|
16064
|
-
setColor(palette.SpeedDialAction, 'fabHoverBg', emphasize(palette.background.paper, 0.15));
|
|
16065
|
-
setColor(palette.StepConnector, 'border', getCssVar('palette-grey-600'));
|
|
16066
|
-
setColor(palette.StepContent, 'border', getCssVar('palette-grey-600'));
|
|
16067
|
-
setColor(palette.Switch, 'defaultColor', getCssVar('palette-grey-300'));
|
|
16068
|
-
setColor(palette.Switch, 'defaultDisabledColor', getCssVar('palette-grey-600'));
|
|
16069
|
-
setColor(palette.Switch, 'primaryDisabledColor', darken(palette.primary.main, 0.55));
|
|
16070
|
-
setColor(palette.Switch, 'secondaryDisabledColor', darken(palette.secondary.main, 0.55));
|
|
16071
|
-
setColor(palette.Switch, 'errorDisabledColor', darken(palette.error.main, 0.55));
|
|
16072
|
-
setColor(palette.Switch, 'infoDisabledColor', darken(palette.info.main, 0.55));
|
|
16073
|
-
setColor(palette.Switch, 'successDisabledColor', darken(palette.success.main, 0.55));
|
|
16074
|
-
setColor(palette.Switch, 'warningDisabledColor', darken(palette.warning.main, 0.55));
|
|
16075
|
-
setColor(palette.TableCell, 'border', darken(alpha(palette.divider, 1), 0.68));
|
|
16076
|
-
setColor(palette.Tooltip, 'bg', alpha(palette.grey[700], 0.92));
|
|
16077
|
-
}
|
|
16078
|
-
palette.background.defaultChannel = colorChannel(palette.background.default); // MUI X - DataGrid needs this token.
|
|
16079
|
-
|
|
16080
|
-
palette.common.backgroundChannel = colorChannel(palette.common.background);
|
|
16081
|
-
palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
|
|
16082
|
-
palette.dividerChannel = colorChannel(palette.divider);
|
|
16083
|
-
Object.keys(palette).forEach(color => {
|
|
16084
|
-
const colors = palette[color];
|
|
16085
|
-
|
|
16086
|
-
// Color palettes: primary, secondary, error, info, success, and warning
|
|
16087
|
-
if (colors.main) {
|
|
16088
|
-
palette[color].mainChannel = colorChannel(colors.main);
|
|
16089
|
-
}
|
|
16090
|
-
if (colors.light) {
|
|
16091
|
-
palette[color].lightChannel = colorChannel(colors.light);
|
|
16092
|
-
}
|
|
16093
|
-
if (colors.dark) {
|
|
16094
|
-
palette[color].darkChannel = colorChannel(colors.dark);
|
|
16095
|
-
}
|
|
16096
|
-
if (colors.contrastText) {
|
|
16097
|
-
palette[color].contrastTextChannel = colorChannel(colors.contrastText);
|
|
16098
|
-
}
|
|
16099
|
-
|
|
16100
|
-
// Text colors: text.primary, text.secondary
|
|
16101
|
-
if (colors.primary) {
|
|
16102
|
-
palette[color].primaryChannel = colorChannel(colors.primary);
|
|
16103
|
-
}
|
|
16104
|
-
if (colors.secondary) {
|
|
16105
|
-
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
16106
|
-
}
|
|
16107
|
-
|
|
16108
|
-
// Action colors: action.active, action.selected
|
|
16109
|
-
if (colors.active) {
|
|
16110
|
-
palette[color].activeChannel = colorChannel(colors.active);
|
|
16111
|
-
}
|
|
16112
|
-
if (colors.selected) {
|
|
16113
|
-
palette[color].selectedChannel = colorChannel(colors.selected);
|
|
16114
|
-
}
|
|
16115
|
-
});
|
|
16116
|
-
});
|
|
16117
|
-
theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);
|
|
16118
|
-
return theme;
|
|
16119
|
-
}
|
|
16120
|
-
|
|
16121
|
-
/**
|
|
16122
|
-
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
16123
|
-
*/
|
|
16124
|
-
const excludeVariablesFromRoot = cssVarPrefix => [...[...Array(24)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index + 1}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];
|
|
16125
|
-
var excludeVariablesFromRoot$1 = excludeVariablesFromRoot;
|
|
16126
|
-
|
|
16127
|
-
const shouldSkipGeneratingVar = keys => {
|
|
16128
|
-
var _keys$;
|
|
16129
|
-
return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
|
|
16130
|
-
};
|
|
16131
|
-
const defaultTheme$1 = extendTheme();
|
|
16132
|
-
const {
|
|
16133
|
-
CssVarsProvider,
|
|
16134
|
-
useColorScheme,
|
|
16135
|
-
getInitColorSchemeScript
|
|
16136
|
-
} = createCssVarsProvider({
|
|
16137
|
-
theme: defaultTheme$1,
|
|
16138
|
-
attribute: 'data-mui-color-scheme',
|
|
16139
|
-
modeStorageKey: 'mui-mode',
|
|
16140
|
-
colorSchemeStorageKey: 'mui-color-scheme',
|
|
16141
|
-
defaultColorScheme: {
|
|
16142
|
-
light: 'light',
|
|
16143
|
-
dark: 'dark'
|
|
16144
|
-
},
|
|
16145
|
-
resolveTheme: theme => {
|
|
16146
|
-
const newTheme = _extends({}, theme, {
|
|
16147
|
-
typography: createTypography(theme.palette, theme.typography)
|
|
16148
|
-
});
|
|
16149
|
-
return newTheme;
|
|
16150
|
-
},
|
|
16151
|
-
shouldSkipGeneratingVar,
|
|
16152
|
-
excludeVariablesFromRoot: excludeVariablesFromRoot$1
|
|
16153
|
-
});
|
|
16154
|
-
|
|
16155
16022
|
function getSvgIconUtilityClass(slot) {
|
|
16156
16023
|
return generateUtilityClass('MuiSvgIcon', slot);
|
|
16157
16024
|
}
|
|
16158
16025
|
const svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
16159
16026
|
var svgIconClasses$1 = svgIconClasses;
|
|
16160
16027
|
|
|
16161
|
-
const _excluded$
|
|
16162
|
-
const useUtilityClasses$
|
|
16028
|
+
const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
16029
|
+
const useUtilityClasses$1L = ownerState => {
|
|
16163
16030
|
const {
|
|
16164
16031
|
color,
|
|
16165
16032
|
fontSize,
|
|
@@ -16224,7 +16091,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16224
16091
|
titleAccess,
|
|
16225
16092
|
viewBox = '0 0 24 24'
|
|
16226
16093
|
} = props,
|
|
16227
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16094
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$23);
|
|
16228
16095
|
const ownerState = _extends({}, props, {
|
|
16229
16096
|
color,
|
|
16230
16097
|
component,
|
|
@@ -16237,7 +16104,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16237
16104
|
if (!inheritViewBox) {
|
|
16238
16105
|
more.viewBox = viewBox;
|
|
16239
16106
|
}
|
|
16240
|
-
const classes = useUtilityClasses$
|
|
16107
|
+
const classes = useUtilityClasses$1L(ownerState);
|
|
16241
16108
|
return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
|
|
16242
16109
|
as: component,
|
|
16243
16110
|
className: clsx(classes.root, className),
|
|
@@ -17363,8 +17230,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17363
17230
|
const collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
|
|
17364
17231
|
var collapseClasses$1 = collapseClasses;
|
|
17365
17232
|
|
|
17366
|
-
const _excluded$
|
|
17367
|
-
const useUtilityClasses$
|
|
17233
|
+
const _excluded$22 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
|
|
17234
|
+
const useUtilityClasses$1K = ownerState => {
|
|
17368
17235
|
const {
|
|
17369
17236
|
orientation,
|
|
17370
17237
|
classes
|
|
@@ -17463,12 +17330,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17463
17330
|
// eslint-disable-next-line react/prop-types
|
|
17464
17331
|
TransitionComponent = Transition$1
|
|
17465
17332
|
} = props,
|
|
17466
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
17333
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$22);
|
|
17467
17334
|
const ownerState = _extends({}, props, {
|
|
17468
17335
|
orientation,
|
|
17469
17336
|
collapsedSize: collapsedSizeProp
|
|
17470
17337
|
});
|
|
17471
|
-
const classes = useUtilityClasses$
|
|
17338
|
+
const classes = useUtilityClasses$1K(ownerState);
|
|
17472
17339
|
const theme = useTheme();
|
|
17473
17340
|
const timer = React__namespace.useRef();
|
|
17474
17341
|
const wrapperRef = React__namespace.useRef(null);
|
|
@@ -17725,6 +17592,143 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17725
17592
|
Collapse.muiSupportAuto = true;
|
|
17726
17593
|
var Collapse$1 = Collapse;
|
|
17727
17594
|
|
|
17595
|
+
function getPaperUtilityClass(slot) {
|
|
17596
|
+
return generateUtilityClass('MuiPaper', slot);
|
|
17597
|
+
}
|
|
17598
|
+
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']);
|
|
17599
|
+
var paperClasses$1 = paperClasses;
|
|
17600
|
+
|
|
17601
|
+
const _excluded$21 = ["className", "component", "elevation", "square", "variant"];
|
|
17602
|
+
const useUtilityClasses$1J = ownerState => {
|
|
17603
|
+
const {
|
|
17604
|
+
square,
|
|
17605
|
+
elevation,
|
|
17606
|
+
variant,
|
|
17607
|
+
classes
|
|
17608
|
+
} = ownerState;
|
|
17609
|
+
const slots = {
|
|
17610
|
+
root: ['root', variant, !square && 'rounded', variant === 'elevation' && `elevation${elevation}`]
|
|
17611
|
+
};
|
|
17612
|
+
return composeClasses(slots, getPaperUtilityClass, classes);
|
|
17613
|
+
};
|
|
17614
|
+
const PaperRoot = styled$1('div', {
|
|
17615
|
+
name: 'MuiPaper',
|
|
17616
|
+
slot: 'Root',
|
|
17617
|
+
overridesResolver: (props, styles) => {
|
|
17618
|
+
const {
|
|
17619
|
+
ownerState
|
|
17620
|
+
} = props;
|
|
17621
|
+
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles[`elevation${ownerState.elevation}`]];
|
|
17622
|
+
}
|
|
17623
|
+
})(({
|
|
17624
|
+
theme,
|
|
17625
|
+
ownerState
|
|
17626
|
+
}) => {
|
|
17627
|
+
var _theme$vars$overlays;
|
|
17628
|
+
return _extends({
|
|
17629
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
17630
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
17631
|
+
transition: theme.transitions.create('box-shadow')
|
|
17632
|
+
}, !ownerState.square && {
|
|
17633
|
+
borderRadius: theme.shape.borderRadius
|
|
17634
|
+
}, ownerState.variant === 'outlined' && {
|
|
17635
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
17636
|
+
}, ownerState.variant === 'elevation' && _extends({
|
|
17637
|
+
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
17638
|
+
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
17639
|
+
backgroundImage: `linear-gradient(${alpha('#fff', getOverlayAlpha$1(ownerState.elevation))}, ${alpha('#fff', getOverlayAlpha$1(ownerState.elevation))})`
|
|
17640
|
+
}, theme.vars && {
|
|
17641
|
+
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
|
17642
|
+
}));
|
|
17643
|
+
});
|
|
17644
|
+
const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, ref) {
|
|
17645
|
+
const props = useThemeProps({
|
|
17646
|
+
props: inProps,
|
|
17647
|
+
name: 'MuiPaper'
|
|
17648
|
+
});
|
|
17649
|
+
const {
|
|
17650
|
+
className,
|
|
17651
|
+
component = 'div',
|
|
17652
|
+
elevation = 1,
|
|
17653
|
+
square = false,
|
|
17654
|
+
variant = 'elevation'
|
|
17655
|
+
} = props,
|
|
17656
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$21);
|
|
17657
|
+
const ownerState = _extends({}, props, {
|
|
17658
|
+
component,
|
|
17659
|
+
elevation,
|
|
17660
|
+
square,
|
|
17661
|
+
variant
|
|
17662
|
+
});
|
|
17663
|
+
const classes = useUtilityClasses$1J(ownerState);
|
|
17664
|
+
{
|
|
17665
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
17666
|
+
const theme = useTheme();
|
|
17667
|
+
if (theme.shadows[elevation] === undefined) {
|
|
17668
|
+
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'));
|
|
17669
|
+
}
|
|
17670
|
+
}
|
|
17671
|
+
return /*#__PURE__*/jsxRuntime_1(PaperRoot, _extends({
|
|
17672
|
+
as: component,
|
|
17673
|
+
ownerState: ownerState,
|
|
17674
|
+
className: clsx(classes.root, className),
|
|
17675
|
+
ref: ref
|
|
17676
|
+
}, other));
|
|
17677
|
+
});
|
|
17678
|
+
Paper.propTypes /* remove-proptypes */ = {
|
|
17679
|
+
// ----------------------------- Warning --------------------------------
|
|
17680
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
17681
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
17682
|
+
// ----------------------------------------------------------------------
|
|
17683
|
+
/**
|
|
17684
|
+
* The content of the component.
|
|
17685
|
+
*/
|
|
17686
|
+
children: PropTypes.node,
|
|
17687
|
+
/**
|
|
17688
|
+
* Override or extend the styles applied to the component.
|
|
17689
|
+
*/
|
|
17690
|
+
classes: PropTypes.object,
|
|
17691
|
+
/**
|
|
17692
|
+
* @ignore
|
|
17693
|
+
*/
|
|
17694
|
+
className: PropTypes.string,
|
|
17695
|
+
/**
|
|
17696
|
+
* The component used for the root node.
|
|
17697
|
+
* Either a string to use a HTML element or a component.
|
|
17698
|
+
*/
|
|
17699
|
+
component: PropTypes.elementType,
|
|
17700
|
+
/**
|
|
17701
|
+
* Shadow depth, corresponds to `dp` in the spec.
|
|
17702
|
+
* It accepts values between 0 and 24 inclusive.
|
|
17703
|
+
* @default 1
|
|
17704
|
+
*/
|
|
17705
|
+
elevation: chainPropTypes(integerPropType, props => {
|
|
17706
|
+
const {
|
|
17707
|
+
elevation,
|
|
17708
|
+
variant
|
|
17709
|
+
} = props;
|
|
17710
|
+
if (elevation > 0 && variant === 'outlined') {
|
|
17711
|
+
return new Error(`MUI: Combining \`elevation={${elevation}}\` with \`variant="${variant}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`);
|
|
17712
|
+
}
|
|
17713
|
+
return null;
|
|
17714
|
+
}),
|
|
17715
|
+
/**
|
|
17716
|
+
* If `true`, rounded corners are disabled.
|
|
17717
|
+
* @default false
|
|
17718
|
+
*/
|
|
17719
|
+
square: PropTypes.bool,
|
|
17720
|
+
/**
|
|
17721
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
17722
|
+
*/
|
|
17723
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
17724
|
+
/**
|
|
17725
|
+
* The variant to use.
|
|
17726
|
+
* @default 'elevation'
|
|
17727
|
+
*/
|
|
17728
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['elevation', 'outlined']), PropTypes.string])
|
|
17729
|
+
} ;
|
|
17730
|
+
var Paper$1 = Paper;
|
|
17731
|
+
|
|
17728
17732
|
/**
|
|
17729
17733
|
* @ignore - internal component.
|
|
17730
17734
|
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
|
|
@@ -19203,7 +19207,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19203
19207
|
function getIconButtonUtilityClass(slot) {
|
|
19204
19208
|
return generateUtilityClass('MuiIconButton', slot);
|
|
19205
19209
|
}
|
|
19206
|
-
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
19210
|
+
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
19207
19211
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
19208
19212
|
|
|
19209
19213
|
const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
@@ -20463,7 +20467,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20463
20467
|
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
|
20464
20468
|
var chipClasses$1 = chipClasses;
|
|
20465
20469
|
|
|
20466
|
-
const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
|
|
20470
|
+
const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
|
|
20467
20471
|
const useUtilityClasses$1x = ownerState => {
|
|
20468
20472
|
const {
|
|
20469
20473
|
classes,
|
|
@@ -20740,7 +20744,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20740
20744
|
onKeyDown,
|
|
20741
20745
|
onKeyUp,
|
|
20742
20746
|
size = 'medium',
|
|
20743
|
-
variant = 'filled'
|
|
20747
|
+
variant = 'filled',
|
|
20748
|
+
tabIndex,
|
|
20749
|
+
skipFocusWhenDisabled = false
|
|
20744
20750
|
} = props,
|
|
20745
20751
|
other = _objectWithoutPropertiesLoose(props, _excluded$1P);
|
|
20746
20752
|
const chipRef = React__namespace.useRef(null);
|
|
@@ -20830,6 +20836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20830
20836
|
onKeyDown: handleKeyDown,
|
|
20831
20837
|
onKeyUp: handleKeyUp,
|
|
20832
20838
|
ref: handleRef,
|
|
20839
|
+
tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
|
|
20833
20840
|
ownerState: ownerState
|
|
20834
20841
|
}, moreProps, other, {
|
|
20835
20842
|
children: [avatar || icon, /*#__PURE__*/jsxRuntime_1(ChipLabel, {
|
|
@@ -20921,10 +20928,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20921
20928
|
* @default 'medium'
|
|
20922
20929
|
*/
|
|
20923
20930
|
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
20931
|
+
/**
|
|
20932
|
+
* If `true`, allows the disabled chip to escape focus.
|
|
20933
|
+
* If `false`, allows the disabled chip to receive focus.
|
|
20934
|
+
* @default false
|
|
20935
|
+
*/
|
|
20936
|
+
skipFocusWhenDisabled: PropTypes.bool,
|
|
20924
20937
|
/**
|
|
20925
20938
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20926
20939
|
*/
|
|
20927
20940
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
20941
|
+
/**
|
|
20942
|
+
* @ignore
|
|
20943
|
+
*/
|
|
20944
|
+
tabIndex: PropTypes.number,
|
|
20928
20945
|
/**
|
|
20929
20946
|
* The variant to use.
|
|
20930
20947
|
* @default 'filled'
|
|
@@ -20952,7 +20969,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20952
20969
|
/**
|
|
20953
20970
|
* @ignore - internal component.
|
|
20954
20971
|
*/
|
|
20955
|
-
const FormControlContext = /*#__PURE__*/React__namespace.createContext();
|
|
20972
|
+
const FormControlContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
20956
20973
|
{
|
|
20957
20974
|
FormControlContext.displayName = 'FormControlContext';
|
|
20958
20975
|
}
|
|
@@ -21989,6 +22006,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21989
22006
|
padding: '8px 0',
|
|
21990
22007
|
maxHeight: '40vh',
|
|
21991
22008
|
overflow: 'auto',
|
|
22009
|
+
position: 'relative',
|
|
21992
22010
|
[`& .${autocompleteClasses$1.option}`]: {
|
|
21993
22011
|
minHeight: 48,
|
|
21994
22012
|
display: 'flex',
|
|
@@ -44333,6 +44351,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44333
44351
|
const swipeAreaRef = React__namespace.useRef();
|
|
44334
44352
|
const backdropRef = React__namespace.useRef();
|
|
44335
44353
|
const paperRef = React__namespace.useRef();
|
|
44354
|
+
const handleRef = useForkRef(PaperProps.ref, paperRef);
|
|
44336
44355
|
const touchDetected = React__namespace.useRef(false);
|
|
44337
44356
|
|
|
44338
44357
|
// Ref for transition duration based on / to match swipe speed
|
|
@@ -44627,7 +44646,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
44627
44646
|
style: _extends({
|
|
44628
44647
|
pointerEvents: variant === 'temporary' && !open ? 'none' : ''
|
|
44629
44648
|
}, PaperProps.style),
|
|
44630
|
-
ref:
|
|
44649
|
+
ref: handleRef
|
|
44631
44650
|
}),
|
|
44632
44651
|
anchor: anchor,
|
|
44633
44652
|
transitionDuration: calculatedDurationRef.current || transitionDuration,
|
|
@@ -48966,6 +48985,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
48966
48985
|
exports.getOffsetLeft = getOffsetLeft;
|
|
48967
48986
|
exports.getOffsetTop = getOffsetTop;
|
|
48968
48987
|
exports.getOutlinedInputUtilityClass = getOutlinedInputUtilityClass;
|
|
48988
|
+
exports.getOverlayAlpha = getOverlayAlpha$1;
|
|
48969
48989
|
exports.getPaginationItemUtilityClass = getPaginationItemUtilityClass;
|
|
48970
48990
|
exports.getPaginationUtilityClass = getPaginationUtilityClass;
|
|
48971
48991
|
exports.getPaperUtilityClass = getPaperUtilityClass;
|
|
@@ -49048,6 +49068,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49048
49068
|
exports.paginationItemClasses = paginationItemClasses$1;
|
|
49049
49069
|
exports.paperClasses = paperClasses$1;
|
|
49050
49070
|
exports.popoverClasses = popoverClasses$1;
|
|
49071
|
+
exports.private_createTypography = createTypography;
|
|
49072
|
+
exports.private_excludeVariablesFromRoot = excludeVariablesFromRoot$1;
|
|
49051
49073
|
exports.radioClasses = radioClasses$1;
|
|
49052
49074
|
exports.ratingClasses = ratingClasses$1;
|
|
49053
49075
|
exports.recomposeColor = recomposeColor;
|