@mui/material 5.5.1 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.d.ts +3 -1
- package/Alert/Alert.js +3 -1
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/AppBar.d.ts +3 -1
- package/AppBar/AppBar.js +3 -1
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +1 -1
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.d.ts +32 -15
- package/Backdrop/Backdrop.js +26 -20
- package/Backdrop/backdropClasses.d.ts +10 -0
- package/Backdrop/backdropClasses.js +6 -0
- package/Backdrop/index.d.ts +3 -0
- package/Backdrop/index.js +2 -1
- package/Badge/Badge.d.ts +23 -8
- package/Badge/Badge.js +46 -22
- package/Badge/badgeClasses.d.ts +24 -0
- package/Badge/badgeClasses.js +8 -0
- package/Badge/index.d.ts +3 -0
- package/Badge/index.js +2 -1
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/Button.d.ts +3 -1
- package/Button/Button.js +104 -97
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/ButtonBase.js +7 -7
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.d.ts +3 -1
- package/ButtonGroup/ButtonGroup.js +3 -1
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +215 -0
- package/Card/Card.d.ts +1 -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/Checkbox.d.ts +3 -1
- package/Checkbox/Checkbox.js +3 -1
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.d.ts +3 -1
- package/Chip/Chip.js +3 -1
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/CircularProgress.d.ts +3 -1
- package/CircularProgress/CircularProgress.js +3 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.d.ts +3 -1
- package/Fab/Fab.js +3 -1
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +3 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.d.ts +3 -1
- package/FormControl/FormControl.js +3 -1
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.js +14 -9
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.d.ts +3 -1
- package/FormLabel/FormLabel.js +3 -1
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Grow/Grow.js +11 -5
- package/Icon/Icon.d.ts +3 -1
- package/Icon/Icon.js +3 -1
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.d.ts +3 -1
- package/IconButton/IconButton.js +3 -1
- 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/Input.js +3 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +3 -1
- package/InputBase/InputBase.js +3 -1
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/InputLabel.js +3 -1
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/LinearProgress.d.ts +3 -1
- package/LinearProgress/LinearProgress.js +3 -1
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +12 -5
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +1 -0
- 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/OutlinedInput.js +3 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/Pagination.d.ts +2 -0
- package/Pagination/Pagination.js +2 -0
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.d.ts +2 -0
- package/PaginationItem/PaginationItem.js +2 -0
- 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 -17
- package/Popper/Popper.js +16 -6
- package/Radio/Radio.d.ts +3 -1
- package/Radio/Radio.js +3 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.d.ts +3 -1
- package/Slider/Slider.js +3 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/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/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.d.ts +3 -1
- package/SvgIcon/SvgIcon.js +3 -1
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/Switch.d.ts +3 -1
- package/Switch/Switch.js +3 -1
- 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/TextField.d.ts +3 -2
- package/TextField/TextField.js +3 -1
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.d.ts +2 -0
- package/ToggleButton/ToggleButton.js +2 -0
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.d.ts +3 -1
- package/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_TrapFocus/index.d.ts +2 -2
- package/Unstable_TrapFocus/index.js +1 -1
- package/className/index.d.ts +8 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +3 -1
- package/legacy/AppBar/AppBar.js +3 -1
- package/legacy/Autocomplete/Autocomplete.js +1 -1
- package/legacy/Backdrop/Backdrop.js +27 -20
- package/legacy/Backdrop/backdropClasses.js +6 -0
- package/legacy/Backdrop/index.js +2 -1
- package/legacy/Badge/Badge.js +47 -22
- package/legacy/Badge/badgeClasses.js +8 -0
- package/legacy/Badge/index.js +2 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Button/Button.js +33 -30
- package/legacy/ButtonBase/ButtonBase.js +11 -11
- package/legacy/ButtonGroup/ButtonGroup.js +3 -1
- package/legacy/Checkbox/Checkbox.js +3 -1
- package/legacy/Chip/Chip.js +3 -1
- package/legacy/CircularProgress/CircularProgress.js +3 -1
- package/legacy/Fab/Fab.js +3 -1
- package/legacy/FilledInput/FilledInput.js +3 -1
- package/legacy/FormControl/FormControl.js +3 -1
- package/legacy/FormControlLabel/FormControlLabel.js +14 -9
- package/legacy/FormLabel/FormLabel.js +3 -1
- package/legacy/Grow/Grow.js +11 -5
- package/legacy/Icon/Icon.js +3 -1
- package/legacy/IconButton/IconButton.js +3 -1
- package/legacy/Input/Input.js +3 -1
- package/legacy/InputBase/InputBase.js +3 -1
- package/legacy/InputLabel/InputLabel.js +3 -1
- package/legacy/LinearProgress/LinearProgress.js +3 -1
- package/legacy/Link/Link.js +12 -4
- package/legacy/ListItemButton/ListItemButton.js +1 -0
- package/legacy/OutlinedInput/OutlinedInput.js +3 -1
- package/legacy/Pagination/Pagination.js +2 -0
- package/legacy/PaginationItem/PaginationItem.js +2 -0
- package/legacy/Popper/Popper.js +18 -6
- package/legacy/Radio/Radio.js +3 -1
- package/legacy/Slider/Slider.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +3 -1
- package/legacy/Switch/Switch.js +3 -1
- package/legacy/TextField/TextField.js +3 -1
- package/legacy/ToggleButton/ToggleButton.js +2 -0
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
- package/legacy/Unstable_TrapFocus/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +115 -111
- package/legacy/styles/CssVarsProvider.js +31 -0
- package/legacy/styles/experimental_extendTheme.js +96 -0
- package/legacy/styles/index.js +3 -1
- package/locale/index.d.ts +71 -71
- package/locale/index.js +6 -3
- package/modern/Alert/Alert.js +3 -1
- package/modern/AppBar/AppBar.js +3 -1
- package/modern/Autocomplete/Autocomplete.js +1 -1
- package/modern/Backdrop/Backdrop.js +25 -19
- package/modern/Backdrop/backdropClasses.js +6 -0
- package/modern/Backdrop/index.js +2 -1
- package/modern/Badge/Badge.js +43 -19
- package/modern/Badge/badgeClasses.js +8 -0
- package/modern/Badge/index.js +2 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Button/Button.js +32 -29
- package/modern/ButtonBase/ButtonBase.js +7 -7
- package/modern/ButtonGroup/ButtonGroup.js +3 -1
- package/modern/Checkbox/Checkbox.js +3 -1
- package/modern/Chip/Chip.js +3 -1
- package/modern/CircularProgress/CircularProgress.js +3 -1
- package/modern/Fab/Fab.js +3 -1
- package/modern/FilledInput/FilledInput.js +3 -1
- package/modern/FormControl/FormControl.js +3 -1
- package/modern/FormControlLabel/FormControlLabel.js +14 -9
- package/modern/FormLabel/FormLabel.js +3 -1
- package/modern/Grow/Grow.js +11 -5
- package/modern/Icon/Icon.js +3 -1
- package/modern/IconButton/IconButton.js +3 -1
- package/modern/Input/Input.js +3 -1
- package/modern/InputBase/InputBase.js +3 -1
- package/modern/InputLabel/InputLabel.js +3 -1
- package/modern/LinearProgress/LinearProgress.js +3 -1
- package/modern/Link/Link.js +12 -5
- package/modern/ListItemButton/ListItemButton.js +1 -0
- package/modern/OutlinedInput/OutlinedInput.js +3 -1
- package/modern/Pagination/Pagination.js +2 -0
- package/modern/PaginationItem/PaginationItem.js +2 -0
- package/modern/Popper/Popper.js +16 -6
- package/modern/Radio/Radio.js +3 -1
- package/modern/Slider/Slider.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -1
- package/modern/Switch/Switch.js +3 -1
- package/modern/TextField/TextField.js +3 -1
- package/modern/ToggleButton/ToggleButton.js +2 -0
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
- package/modern/Unstable_TrapFocus/index.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locale/index.js +6 -3
- package/modern/styles/CssVarsProvider.js +28 -0
- package/modern/styles/experimental_extendTheme.js +89 -0
- package/modern/styles/index.js +3 -1
- package/node/Alert/Alert.js +3 -1
- package/node/AppBar/AppBar.js +3 -1
- package/node/Autocomplete/Autocomplete.js +1 -1
- package/node/Backdrop/Backdrop.js +28 -23
- package/node/Backdrop/backdropClasses.js +17 -0
- package/node/Backdrop/index.js +17 -5
- package/node/Badge/Badge.js +56 -33
- package/node/Badge/badgeClasses.js +22 -0
- package/node/Badge/index.js +17 -5
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Button/Button.js +104 -97
- package/node/ButtonBase/ButtonBase.js +7 -7
- package/node/ButtonGroup/ButtonGroup.js +3 -1
- package/node/Checkbox/Checkbox.js +3 -1
- package/node/Chip/Chip.js +3 -1
- package/node/CircularProgress/CircularProgress.js +3 -1
- package/node/Fab/Fab.js +3 -1
- package/node/FilledInput/FilledInput.js +3 -1
- package/node/FormControl/FormControl.js +3 -1
- package/node/FormControlLabel/FormControlLabel.js +14 -9
- package/node/FormLabel/FormLabel.js +3 -1
- package/node/Grow/Grow.js +10 -4
- package/node/Icon/Icon.js +3 -1
- package/node/IconButton/IconButton.js +3 -1
- package/node/Input/Input.js +3 -1
- package/node/InputBase/InputBase.js +3 -1
- package/node/InputLabel/InputLabel.js +3 -1
- package/node/LinearProgress/LinearProgress.js +3 -1
- package/node/Link/Link.js +13 -5
- package/node/ListItemButton/ListItemButton.js +1 -0
- package/node/OutlinedInput/OutlinedInput.js +3 -1
- package/node/Pagination/Pagination.js +2 -0
- package/node/PaginationItem/PaginationItem.js +2 -0
- package/node/Popper/Popper.js +19 -8
- package/node/Radio/Radio.js +3 -1
- package/node/Slider/Slider.js +3 -1
- package/node/SvgIcon/SvgIcon.js +3 -1
- package/node/Switch/Switch.js +3 -1
- package/node/TextField/TextField.js +3 -1
- package/node/ToggleButton/ToggleButton.js +2 -0
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
- package/node/Unstable_TrapFocus/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +6 -3
- package/node/styles/CssVarsProvider.js +41 -0
- package/node/styles/experimental_extendTheme.js +105 -0
- package/node/styles/index.js +58 -0
- package/package.json +7 -7
- package/styles/CssVarsProvider.d.ts +28 -0
- package/styles/CssVarsProvider.js +28 -0
- package/styles/createPalette.d.ts +26 -0
- package/styles/experimental_extendTheme.d.ts +90 -0
- package/styles/experimental_extendTheme.js +91 -0
- package/styles/index.d.ts +5 -0
- package/styles/index.js +3 -1
- 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 +1314 -505
- package/umd/material-ui.production.min.js +21 -21
- 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.
|
|
1
|
+
/** @license MUI v5.6.0
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -6449,7 +6449,7 @@
|
|
|
6449
6449
|
styleFunctionSx.filterProps = ['sx'];
|
|
6450
6450
|
var defaultStyleFunctionSx = styleFunctionSx;
|
|
6451
6451
|
|
|
6452
|
-
const _excluded$
|
|
6452
|
+
const _excluded$2l = ["sx"];
|
|
6453
6453
|
|
|
6454
6454
|
const splitProps = props => {
|
|
6455
6455
|
const result = {
|
|
@@ -6470,7 +6470,7 @@
|
|
|
6470
6470
|
const {
|
|
6471
6471
|
sx: inSx
|
|
6472
6472
|
} = props,
|
|
6473
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6473
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2l);
|
|
6474
6474
|
|
|
6475
6475
|
const {
|
|
6476
6476
|
systemProps,
|
|
@@ -6549,7 +6549,7 @@
|
|
|
6549
6549
|
return str;
|
|
6550
6550
|
}
|
|
6551
6551
|
|
|
6552
|
-
const _excluded$
|
|
6552
|
+
const _excluded$2k = ["values", "unit", "step"];
|
|
6553
6553
|
|
|
6554
6554
|
const sortBreakpointsValues = values => {
|
|
6555
6555
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
@@ -6585,7 +6585,7 @@
|
|
|
6585
6585
|
unit = 'px',
|
|
6586
6586
|
step = 5
|
|
6587
6587
|
} = breakpoints,
|
|
6588
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6588
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$2k);
|
|
6589
6589
|
|
|
6590
6590
|
const sortedValues = sortBreakpointsValues(values);
|
|
6591
6591
|
const keys = Object.keys(sortedValues);
|
|
@@ -6677,16 +6677,16 @@
|
|
|
6677
6677
|
return spacing;
|
|
6678
6678
|
}
|
|
6679
6679
|
|
|
6680
|
-
const _excluded$
|
|
6680
|
+
const _excluded$2j = ["breakpoints", "palette", "spacing", "shape"];
|
|
6681
6681
|
|
|
6682
|
-
function createTheme$
|
|
6682
|
+
function createTheme$2(options = {}, ...args) {
|
|
6683
6683
|
const {
|
|
6684
6684
|
breakpoints: breakpointsInput = {},
|
|
6685
6685
|
palette: paletteInput = {},
|
|
6686
6686
|
spacing: spacingInput,
|
|
6687
6687
|
shape: shapeInput = {}
|
|
6688
6688
|
} = options,
|
|
6689
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6689
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2j);
|
|
6690
6690
|
|
|
6691
6691
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6692
6692
|
const spacing = createSpacing(spacingInput);
|
|
@@ -6802,13 +6802,13 @@
|
|
|
6802
6802
|
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
|
6803
6803
|
}
|
|
6804
6804
|
|
|
6805
|
-
const systemDefaultTheme$1 = createTheme$
|
|
6805
|
+
const systemDefaultTheme$1 = createTheme$2();
|
|
6806
6806
|
|
|
6807
6807
|
function useTheme$1(defaultTheme = systemDefaultTheme$1) {
|
|
6808
6808
|
return useTheme$2(defaultTheme);
|
|
6809
6809
|
}
|
|
6810
6810
|
|
|
6811
|
-
const _excluded$
|
|
6811
|
+
const _excluded$2i = ["className", "component"];
|
|
6812
6812
|
function createBox(options = {}) {
|
|
6813
6813
|
const {
|
|
6814
6814
|
defaultTheme,
|
|
@@ -6825,7 +6825,7 @@
|
|
|
6825
6825
|
className,
|
|
6826
6826
|
component = 'div'
|
|
6827
6827
|
} = _extendSxProp,
|
|
6828
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6828
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$2i);
|
|
6829
6829
|
|
|
6830
6830
|
return /*#__PURE__*/jsxRuntime_1(BoxRoot, _extends({
|
|
6831
6831
|
as: component,
|
|
@@ -6861,7 +6861,7 @@
|
|
|
6861
6861
|
return Box;
|
|
6862
6862
|
}
|
|
6863
6863
|
|
|
6864
|
-
const _excluded$
|
|
6864
|
+
const _excluded$2h = ["variant"];
|
|
6865
6865
|
|
|
6866
6866
|
function isEmpty$2(string) {
|
|
6867
6867
|
return string.length === 0;
|
|
@@ -6877,7 +6877,7 @@
|
|
|
6877
6877
|
const {
|
|
6878
6878
|
variant
|
|
6879
6879
|
} = props,
|
|
6880
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6880
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2h);
|
|
6881
6881
|
|
|
6882
6882
|
let classKey = variant || '';
|
|
6883
6883
|
Object.keys(other).sort().forEach(key => {
|
|
@@ -6890,9 +6890,9 @@
|
|
|
6890
6890
|
return classKey;
|
|
6891
6891
|
}
|
|
6892
6892
|
|
|
6893
|
-
const _excluded$
|
|
6894
|
-
_excluded2$
|
|
6895
|
-
_excluded3$
|
|
6893
|
+
const _excluded$2g = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6894
|
+
_excluded2$d = ["theme"],
|
|
6895
|
+
_excluded3$2 = ["theme"];
|
|
6896
6896
|
|
|
6897
6897
|
function isEmpty$1(obj) {
|
|
6898
6898
|
return Object.keys(obj).length === 0;
|
|
@@ -6952,7 +6952,7 @@
|
|
|
6952
6952
|
function shouldForwardProp(prop) {
|
|
6953
6953
|
return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';
|
|
6954
6954
|
}
|
|
6955
|
-
const systemDefaultTheme = createTheme$
|
|
6955
|
+
const systemDefaultTheme = createTheme$2();
|
|
6956
6956
|
|
|
6957
6957
|
const lowercaseFirstLetter = string => {
|
|
6958
6958
|
return string.charAt(0).toLowerCase() + string.slice(1);
|
|
@@ -6973,7 +6973,7 @@
|
|
|
6973
6973
|
skipSx: inputSkipSx,
|
|
6974
6974
|
overridesResolver
|
|
6975
6975
|
} = inputOptions,
|
|
6976
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
6976
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$2g); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
6977
6977
|
|
|
6978
6978
|
|
|
6979
6979
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -7010,7 +7010,7 @@
|
|
|
7010
7010
|
let {
|
|
7011
7011
|
theme: themeInput
|
|
7012
7012
|
} = _ref,
|
|
7013
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded2$
|
|
7013
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
|
|
7014
7014
|
|
|
7015
7015
|
return stylesArg(_extends({
|
|
7016
7016
|
theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
|
|
@@ -7069,7 +7069,7 @@
|
|
|
7069
7069
|
let {
|
|
7070
7070
|
theme: themeInput
|
|
7071
7071
|
} = _ref2,
|
|
7072
|
-
other = _objectWithoutPropertiesLoose(_ref2, _excluded3$
|
|
7072
|
+
other = _objectWithoutPropertiesLoose(_ref2, _excluded3$2);
|
|
7073
7073
|
|
|
7074
7074
|
return styleArg(_extends({
|
|
7075
7075
|
theme: isEmpty$1(themeInput) ? defaultTheme : themeInput
|
|
@@ -7156,7 +7156,7 @@
|
|
|
7156
7156
|
|
|
7157
7157
|
|
|
7158
7158
|
function hexToRgb(color) {
|
|
7159
|
-
color = color.
|
|
7159
|
+
color = color.slice(1);
|
|
7160
7160
|
const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');
|
|
7161
7161
|
let colors = color.match(re);
|
|
7162
7162
|
|
|
@@ -7208,7 +7208,7 @@ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
|
7208
7208
|
colorSpace = values.shift();
|
|
7209
7209
|
|
|
7210
7210
|
if (values.length === 4 && values[3].charAt(0) === '/') {
|
|
7211
|
-
values[3] = values[3].
|
|
7211
|
+
values[3] = values[3].slice(1);
|
|
7212
7212
|
}
|
|
7213
7213
|
|
|
7214
7214
|
if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {
|
|
@@ -7226,6 +7226,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7226
7226
|
colorSpace
|
|
7227
7227
|
};
|
|
7228
7228
|
}
|
|
7229
|
+
/**
|
|
7230
|
+
* Returns a channel created from the input color.
|
|
7231
|
+
*
|
|
7232
|
+
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
|
7233
|
+
* @returns {string} - The channel for the color, that can be used in rgba or hsla colors
|
|
7234
|
+
*/
|
|
7235
|
+
|
|
7236
|
+
const colorChannel = color => {
|
|
7237
|
+
const decomposedColor = decomposeColor(color);
|
|
7238
|
+
return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');
|
|
7239
|
+
};
|
|
7229
7240
|
/**
|
|
7230
7241
|
* Converts a color object with type and values to a string.
|
|
7231
7242
|
* @param {object} color - Decomposed color
|
|
@@ -7473,8 +7484,720 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7473
7484
|
ThemeProvider.propTypes = exactProp(ThemeProvider.propTypes) ;
|
|
7474
7485
|
}
|
|
7475
7486
|
|
|
7487
|
+
/**
|
|
7488
|
+
* This function create an object from keys, value and then assign to target
|
|
7489
|
+
*
|
|
7490
|
+
* @param {Object} obj : the target object to be assigned
|
|
7491
|
+
* @param {string[]} keys
|
|
7492
|
+
* @param {string | number} value
|
|
7493
|
+
*
|
|
7494
|
+
* @example
|
|
7495
|
+
* const source = {}
|
|
7496
|
+
* assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')
|
|
7497
|
+
* console.log(source) // { palette: { primary: 'var(--palette-primary)' } }
|
|
7498
|
+
*
|
|
7499
|
+
* @example
|
|
7500
|
+
* const source = { palette: { primary: 'var(--palette-primary)' } }
|
|
7501
|
+
* assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')
|
|
7502
|
+
* console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }
|
|
7503
|
+
*/
|
|
7504
|
+
const assignNestedKeys = (obj, keys, value) => {
|
|
7505
|
+
let temp = obj;
|
|
7506
|
+
keys.forEach((k, index) => {
|
|
7507
|
+
if (index === keys.length - 1) {
|
|
7508
|
+
if (temp && typeof temp === 'object') {
|
|
7509
|
+
temp[k] = value;
|
|
7510
|
+
}
|
|
7511
|
+
} else if (temp && typeof temp === 'object') {
|
|
7512
|
+
if (!temp[k]) {
|
|
7513
|
+
temp[k] = {};
|
|
7514
|
+
}
|
|
7515
|
+
|
|
7516
|
+
temp = temp[k];
|
|
7517
|
+
}
|
|
7518
|
+
});
|
|
7519
|
+
};
|
|
7520
|
+
/**
|
|
7521
|
+
*
|
|
7522
|
+
* @param {Object} obj : source object
|
|
7523
|
+
* @param {Function} callback : a function that will be called when
|
|
7524
|
+
* - the deepest key in source object is reached
|
|
7525
|
+
* - the value of the deepest key is NOT `undefined` | `null`
|
|
7526
|
+
*
|
|
7527
|
+
* @example
|
|
7528
|
+
* walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)
|
|
7529
|
+
* // ['palette', 'primary', 'main'] '#000000'
|
|
7530
|
+
*/
|
|
7531
|
+
|
|
7532
|
+
const walkObjectDeep = (obj, callback, shouldSkipPaths) => {
|
|
7533
|
+
function recurse(object, parentKeys = []) {
|
|
7534
|
+
Object.entries(object).forEach(([key, value]) => {
|
|
7535
|
+
if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {
|
|
7536
|
+
if (value !== undefined && value !== null) {
|
|
7537
|
+
if (typeof value === 'object' && Object.keys(value).length > 0) {
|
|
7538
|
+
recurse(value, [...parentKeys, key]);
|
|
7539
|
+
} else {
|
|
7540
|
+
callback([...parentKeys, key], value, object);
|
|
7541
|
+
}
|
|
7542
|
+
}
|
|
7543
|
+
}
|
|
7544
|
+
});
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
recurse(obj);
|
|
7548
|
+
};
|
|
7549
|
+
|
|
7550
|
+
const getCssValue = (keys, value) => {
|
|
7551
|
+
if (typeof value === 'number') {
|
|
7552
|
+
if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {
|
|
7553
|
+
// CSS property that are unitless
|
|
7554
|
+
return value;
|
|
7555
|
+
}
|
|
7556
|
+
|
|
7557
|
+
const lastKey = keys[keys.length - 1];
|
|
7558
|
+
|
|
7559
|
+
if (lastKey.toLowerCase().indexOf('opacity') >= 0) {
|
|
7560
|
+
// opacity values are unitless
|
|
7561
|
+
return value;
|
|
7562
|
+
}
|
|
7563
|
+
|
|
7564
|
+
return `${value}px`;
|
|
7565
|
+
}
|
|
7566
|
+
|
|
7567
|
+
return value;
|
|
7568
|
+
};
|
|
7569
|
+
/**
|
|
7570
|
+
* a function that parse theme and return { css, vars }
|
|
7571
|
+
*
|
|
7572
|
+
* @param {Object} theme
|
|
7573
|
+
* @param {{
|
|
7574
|
+
* prefix?: string,
|
|
7575
|
+
* basePrefix?: string,
|
|
7576
|
+
* shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean
|
|
7577
|
+
* }} options.
|
|
7578
|
+
* `basePrefix`: defined by design system.
|
|
7579
|
+
* `prefix`: defined by application
|
|
7580
|
+
*
|
|
7581
|
+
* the CSS variable value will be adjusted based on the provided `basePrefix` & `prefix` which can be found in `parsedTheme`.
|
|
7582
|
+
*
|
|
7583
|
+
* @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.
|
|
7584
|
+
*
|
|
7585
|
+
* @example
|
|
7586
|
+
* const { css, vars, parsedTheme } = parser({
|
|
7587
|
+
* fontSize: 12,
|
|
7588
|
+
* lineHeight: 1.2,
|
|
7589
|
+
* palette: { primary: { 500: 'var(--color)' } }
|
|
7590
|
+
* }, { prefix: 'foo' })
|
|
7591
|
+
*
|
|
7592
|
+
* console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--foo-color)' }
|
|
7593
|
+
* console.log(vars) // { fontSize: '--foo-fontSize', lineHeight: '--foo-lineHeight', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }
|
|
7594
|
+
* console.log(parsedTheme) // { fontSize: 12, lineHeight: 1.2, palette: { primary: { 500: 'var(--foo-color)' } } }
|
|
7595
|
+
*/
|
|
7596
|
+
|
|
7597
|
+
|
|
7598
|
+
function cssVarsParser(theme, options) {
|
|
7599
|
+
const {
|
|
7600
|
+
prefix,
|
|
7601
|
+
basePrefix = '',
|
|
7602
|
+
shouldSkipGeneratingVar
|
|
7603
|
+
} = options || {};
|
|
7604
|
+
const css = {};
|
|
7605
|
+
const vars = {};
|
|
7606
|
+
const parsedTheme = {};
|
|
7607
|
+
walkObjectDeep(theme, (keys, value) => {
|
|
7608
|
+
if (typeof value === 'string' || typeof value === 'number') {
|
|
7609
|
+
if (typeof value === 'string' && value.match(/var\(\s*--/)) {
|
|
7610
|
+
// for CSS variable, apply prefix or remove basePrefix from the variable
|
|
7611
|
+
if (!basePrefix && prefix) {
|
|
7612
|
+
value = value.replace(/var\(\s*--/g, `var(--${prefix}-`);
|
|
7613
|
+
} else {
|
|
7614
|
+
value = prefix ? value.replace(new RegExp(`var\\(\\s*--${basePrefix}`, 'g'), `var(--${prefix}`) // removing spaces
|
|
7615
|
+
: value.replace(new RegExp(`var\\(\\s*--${basePrefix}-`, 'g'), 'var(--');
|
|
7616
|
+
}
|
|
7617
|
+
}
|
|
7618
|
+
|
|
7619
|
+
if (!shouldSkipGeneratingVar || shouldSkipGeneratingVar && !shouldSkipGeneratingVar(keys, value)) {
|
|
7620
|
+
// only create css & var if `shouldSkipGeneratingVar` return false
|
|
7621
|
+
const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;
|
|
7622
|
+
Object.assign(css, {
|
|
7623
|
+
[cssVar]: getCssValue(keys, value)
|
|
7624
|
+
});
|
|
7625
|
+
assignNestedKeys(vars, keys, `var(${cssVar})`);
|
|
7626
|
+
}
|
|
7627
|
+
}
|
|
7628
|
+
|
|
7629
|
+
assignNestedKeys(parsedTheme, keys, value);
|
|
7630
|
+
}, keys => keys[0] === 'vars' // skip 'vars/*' paths
|
|
7631
|
+
);
|
|
7632
|
+
return {
|
|
7633
|
+
css,
|
|
7634
|
+
vars,
|
|
7635
|
+
parsedTheme
|
|
7636
|
+
};
|
|
7637
|
+
}
|
|
7638
|
+
|
|
7639
|
+
const DEFAULT_MODE_STORAGE_KEY = 'mui-mode';
|
|
7640
|
+
const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'mui-color-scheme';
|
|
7641
|
+
const DEFAULT_ATTRIBUTE = 'data-mui-color-scheme';
|
|
7642
|
+
function getInitColorSchemeScript$1(options) {
|
|
7643
|
+
const {
|
|
7644
|
+
enableSystem,
|
|
7645
|
+
defaultLightColorScheme = 'light',
|
|
7646
|
+
defaultDarkColorScheme = 'dark',
|
|
7647
|
+
modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
7648
|
+
colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,
|
|
7649
|
+
attribute = DEFAULT_ATTRIBUTE
|
|
7650
|
+
} = options || {};
|
|
7651
|
+
return /*#__PURE__*/jsxRuntime_1("script", {
|
|
7652
|
+
// eslint-disable-next-line react/no-danger
|
|
7653
|
+
dangerouslySetInnerHTML: {
|
|
7654
|
+
__html: `(function() { try {
|
|
7655
|
+
var mode = localStorage.getItem('${modeStorageKey}');
|
|
7656
|
+
var colorScheme = '';
|
|
7657
|
+
if (mode === 'system' || (!mode && !!${enableSystem})) {
|
|
7658
|
+
// handle system mode
|
|
7659
|
+
var mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
7660
|
+
if (mql.matches) {
|
|
7661
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
7662
|
+
} else {
|
|
7663
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
7664
|
+
}
|
|
7665
|
+
}
|
|
7666
|
+
if (mode === 'light') {
|
|
7667
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';
|
|
7668
|
+
}
|
|
7669
|
+
if (mode === 'dark') {
|
|
7670
|
+
colorScheme = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';
|
|
7671
|
+
}
|
|
7672
|
+
if (colorScheme) {
|
|
7673
|
+
document.documentElement.setAttribute('${attribute}', colorScheme);
|
|
7674
|
+
}
|
|
7675
|
+
} catch (e) {} })();`
|
|
7676
|
+
}
|
|
7677
|
+
});
|
|
7678
|
+
}
|
|
7679
|
+
|
|
7680
|
+
function getSystemMode(mode) {
|
|
7681
|
+
if (typeof window !== 'undefined' && mode === 'system') {
|
|
7682
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
7683
|
+
|
|
7684
|
+
if (mql.matches) {
|
|
7685
|
+
return 'dark';
|
|
7686
|
+
}
|
|
7687
|
+
|
|
7688
|
+
return 'light';
|
|
7689
|
+
}
|
|
7690
|
+
|
|
7691
|
+
return undefined;
|
|
7692
|
+
}
|
|
7693
|
+
|
|
7694
|
+
function processState(state, callback) {
|
|
7695
|
+
if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {
|
|
7696
|
+
return callback('light');
|
|
7697
|
+
}
|
|
7698
|
+
|
|
7699
|
+
if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {
|
|
7700
|
+
return callback('dark');
|
|
7701
|
+
}
|
|
7702
|
+
|
|
7703
|
+
return undefined;
|
|
7704
|
+
}
|
|
7705
|
+
|
|
7706
|
+
function getColorScheme(state) {
|
|
7707
|
+
return processState(state, mode => {
|
|
7708
|
+
if (mode === 'light') {
|
|
7709
|
+
return state.lightColorScheme;
|
|
7710
|
+
}
|
|
7711
|
+
|
|
7712
|
+
if (mode === 'dark') {
|
|
7713
|
+
return state.darkColorScheme;
|
|
7714
|
+
}
|
|
7715
|
+
|
|
7716
|
+
return undefined;
|
|
7717
|
+
});
|
|
7718
|
+
}
|
|
7719
|
+
|
|
7720
|
+
function resolveValue(key, defaultValue) {
|
|
7721
|
+
if (typeof window === 'undefined') {
|
|
7722
|
+
return undefined;
|
|
7723
|
+
}
|
|
7724
|
+
|
|
7725
|
+
let value;
|
|
7726
|
+
|
|
7727
|
+
try {
|
|
7728
|
+
value = localStorage.getItem(key) || undefined;
|
|
7729
|
+
} catch (e) {// Unsupported
|
|
7730
|
+
}
|
|
7731
|
+
|
|
7732
|
+
return value || defaultValue;
|
|
7733
|
+
}
|
|
7734
|
+
|
|
7735
|
+
function useCurrentColorScheme(options) {
|
|
7736
|
+
const {
|
|
7737
|
+
defaultMode = 'light',
|
|
7738
|
+
defaultLightColorScheme,
|
|
7739
|
+
defaultDarkColorScheme,
|
|
7740
|
+
supportedColorSchemes = [],
|
|
7741
|
+
modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
7742
|
+
colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY
|
|
7743
|
+
} = options;
|
|
7744
|
+
const joinedColorSchemes = supportedColorSchemes.join(',');
|
|
7745
|
+
const [state, setState] = React__namespace.useState(() => {
|
|
7746
|
+
const initialMode = resolveValue(modeStorageKey, defaultMode);
|
|
7747
|
+
return {
|
|
7748
|
+
mode: initialMode,
|
|
7749
|
+
systemMode: getSystemMode(initialMode),
|
|
7750
|
+
lightColorScheme: resolveValue(`${colorSchemeStorageKey}-light`) || defaultLightColorScheme,
|
|
7751
|
+
darkColorScheme: resolveValue(`${colorSchemeStorageKey}-dark`) || defaultDarkColorScheme
|
|
7752
|
+
};
|
|
7753
|
+
});
|
|
7754
|
+
const colorScheme = getColorScheme(state);
|
|
7755
|
+
const setMode = React__namespace.useCallback(mode => {
|
|
7756
|
+
setState(currentState => {
|
|
7757
|
+
const newMode = !mode ? defaultMode : mode;
|
|
7758
|
+
|
|
7759
|
+
if (typeof localStorage !== 'undefined') {
|
|
7760
|
+
localStorage.setItem(modeStorageKey, newMode);
|
|
7761
|
+
}
|
|
7762
|
+
|
|
7763
|
+
return _extends({}, currentState, {
|
|
7764
|
+
mode: newMode,
|
|
7765
|
+
systemMode: getSystemMode(newMode)
|
|
7766
|
+
});
|
|
7767
|
+
});
|
|
7768
|
+
}, [modeStorageKey, defaultMode]);
|
|
7769
|
+
const setColorScheme = React__namespace.useCallback(value => {
|
|
7770
|
+
if (!value || typeof value === 'string') {
|
|
7771
|
+
if (value && !supportedColorSchemes.includes(value)) {
|
|
7772
|
+
console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
|
|
7773
|
+
} else {
|
|
7774
|
+
setState(currentState => {
|
|
7775
|
+
const newState = _extends({}, currentState);
|
|
7776
|
+
|
|
7777
|
+
if (!value) {
|
|
7778
|
+
// reset to default color scheme
|
|
7779
|
+
newState.lightColorScheme = defaultLightColorScheme;
|
|
7780
|
+
newState.darkColorScheme = defaultDarkColorScheme;
|
|
7781
|
+
return newState;
|
|
7782
|
+
}
|
|
7783
|
+
|
|
7784
|
+
processState(currentState, mode => {
|
|
7785
|
+
localStorage.setItem(`${colorSchemeStorageKey}-${mode}`, value);
|
|
7786
|
+
|
|
7787
|
+
if (mode === 'light') {
|
|
7788
|
+
newState.lightColorScheme = value;
|
|
7789
|
+
}
|
|
7790
|
+
|
|
7791
|
+
if (mode === 'dark') {
|
|
7792
|
+
newState.darkColorScheme = value;
|
|
7793
|
+
}
|
|
7794
|
+
});
|
|
7795
|
+
return newState;
|
|
7796
|
+
});
|
|
7797
|
+
}
|
|
7798
|
+
} else if (value.light && !supportedColorSchemes.includes(value.light) || value.dark && !supportedColorSchemes.includes(value.dark)) {
|
|
7799
|
+
console.error(`\`${value}\` does not exist in \`theme.colorSchemes\`.`);
|
|
7800
|
+
} else {
|
|
7801
|
+
setState(currentState => {
|
|
7802
|
+
const newState = _extends({}, currentState);
|
|
7803
|
+
|
|
7804
|
+
if (value.light || value.light === null) {
|
|
7805
|
+
newState.lightColorScheme = value.light === null ? defaultLightColorScheme : value.light;
|
|
7806
|
+
}
|
|
7807
|
+
|
|
7808
|
+
if (value.dark || value.dark === null) {
|
|
7809
|
+
newState.darkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;
|
|
7810
|
+
}
|
|
7811
|
+
|
|
7812
|
+
return newState;
|
|
7813
|
+
});
|
|
7814
|
+
|
|
7815
|
+
if (value.light) {
|
|
7816
|
+
localStorage.setItem(`${colorSchemeStorageKey}-light`, value.light);
|
|
7817
|
+
}
|
|
7818
|
+
|
|
7819
|
+
if (value.dark) {
|
|
7820
|
+
localStorage.setItem(`${colorSchemeStorageKey}-dark`, value.dark);
|
|
7821
|
+
}
|
|
7822
|
+
}
|
|
7823
|
+
}, [colorSchemeStorageKey, supportedColorSchemes, defaultLightColorScheme, defaultDarkColorScheme]);
|
|
7824
|
+
const handleMediaQuery = React__namespace.useCallback(e => {
|
|
7825
|
+
if (state.mode === 'system') {
|
|
7826
|
+
setState(currentState => _extends({}, currentState, {
|
|
7827
|
+
systemMode: e.matches ? 'dark' : 'light'
|
|
7828
|
+
}));
|
|
7829
|
+
}
|
|
7830
|
+
}, [state.mode]); // Ref hack to avoid adding handleMediaQuery as a dep
|
|
7831
|
+
|
|
7832
|
+
const mediaListener = React__namespace.useRef(handleMediaQuery);
|
|
7833
|
+
mediaListener.current = handleMediaQuery;
|
|
7834
|
+
React__namespace.useEffect(() => {
|
|
7835
|
+
const handler = (...args) => mediaListener.current(...args); // Always listen to System preference
|
|
7836
|
+
|
|
7837
|
+
|
|
7838
|
+
const media = window.matchMedia('(prefers-color-scheme: dark)'); // Intentionally use deprecated listener methods to support iOS & old browsers
|
|
7839
|
+
|
|
7840
|
+
media.addListener(handler);
|
|
7841
|
+
handler(media);
|
|
7842
|
+
return () => media.removeListener(handler);
|
|
7843
|
+
}, []); // Save mode, lightColorScheme & darkColorScheme to localStorage
|
|
7844
|
+
|
|
7845
|
+
React__namespace.useEffect(() => {
|
|
7846
|
+
if (state.mode) {
|
|
7847
|
+
localStorage.setItem(modeStorageKey, state.mode);
|
|
7848
|
+
}
|
|
7849
|
+
|
|
7850
|
+
processState(state, mode => {
|
|
7851
|
+
if (mode === 'light') {
|
|
7852
|
+
localStorage.setItem(`${colorSchemeStorageKey}-light`, state.lightColorScheme);
|
|
7853
|
+
}
|
|
7854
|
+
|
|
7855
|
+
if (mode === 'dark') {
|
|
7856
|
+
localStorage.setItem(`${colorSchemeStorageKey}-dark`, state.darkColorScheme);
|
|
7857
|
+
}
|
|
7858
|
+
});
|
|
7859
|
+
}, [state, colorSchemeStorageKey, modeStorageKey]); // Handle when localStorage has changed
|
|
7860
|
+
|
|
7861
|
+
React__namespace.useEffect(() => {
|
|
7862
|
+
const handleStorage = event => {
|
|
7863
|
+
const value = event.newValue;
|
|
7864
|
+
|
|
7865
|
+
if (typeof event.key === 'string' && event.key.startsWith(colorSchemeStorageKey) && (!value || joinedColorSchemes.match(value))) {
|
|
7866
|
+
// If the key is deleted, value will be null then reset color scheme to the default one.
|
|
7867
|
+
if (event.key.endsWith('light')) {
|
|
7868
|
+
setColorScheme({
|
|
7869
|
+
light: value
|
|
7870
|
+
});
|
|
7871
|
+
}
|
|
7872
|
+
|
|
7873
|
+
if (event.key.endsWith('dark')) {
|
|
7874
|
+
setColorScheme({
|
|
7875
|
+
dark: value
|
|
7876
|
+
});
|
|
7877
|
+
}
|
|
7878
|
+
}
|
|
7879
|
+
|
|
7880
|
+
if (event.key === modeStorageKey && (!value || ['light', 'dark', 'system'].includes(value))) {
|
|
7881
|
+
setMode(value || defaultMode);
|
|
7882
|
+
}
|
|
7883
|
+
};
|
|
7884
|
+
|
|
7885
|
+
window.addEventListener('storage', handleStorage);
|
|
7886
|
+
return () => window.removeEventListener('storage', handleStorage);
|
|
7887
|
+
}, [setColorScheme, setMode, modeStorageKey, colorSchemeStorageKey, joinedColorSchemes, defaultMode]);
|
|
7888
|
+
return _extends({}, state, {
|
|
7889
|
+
colorScheme,
|
|
7890
|
+
setMode,
|
|
7891
|
+
setColorScheme
|
|
7892
|
+
});
|
|
7893
|
+
}
|
|
7894
|
+
|
|
7895
|
+
/**
|
|
7896
|
+
* The benefit of this function is to help developers get CSS var from theme without specifying the whole variable
|
|
7897
|
+
* and they does not need to remember the prefix (defined once).
|
|
7898
|
+
*/
|
|
7899
|
+
function createGetCssVar(prefix = '') {
|
|
7900
|
+
function appendVar(...vars) {
|
|
7901
|
+
if (!vars.length) {
|
|
7902
|
+
return '';
|
|
7903
|
+
}
|
|
7904
|
+
|
|
7905
|
+
const value = vars[0];
|
|
7906
|
+
|
|
7907
|
+
if (typeof value === 'string' && !value.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)) {
|
|
7908
|
+
return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;
|
|
7909
|
+
}
|
|
7910
|
+
|
|
7911
|
+
return `, ${value}`;
|
|
7912
|
+
} // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.
|
|
7913
|
+
|
|
7914
|
+
|
|
7915
|
+
const getCssVar = (field, ...vars) => {
|
|
7916
|
+
return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...vars)})`;
|
|
7917
|
+
};
|
|
7918
|
+
|
|
7919
|
+
return getCssVar;
|
|
7920
|
+
}
|
|
7921
|
+
|
|
7922
|
+
const _excluded$2f = ["colorSchemes"],
|
|
7923
|
+
_excluded2$c = ["colorSchemes"],
|
|
7924
|
+
_excluded3$1 = ["components"];
|
|
7925
|
+
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7926
|
+
function createCssVarsProvider(options) {
|
|
7927
|
+
var _baseTheme$breakpoint;
|
|
7928
|
+
|
|
7929
|
+
const {
|
|
7930
|
+
theme: baseTheme = {},
|
|
7931
|
+
defaultMode: desisgnSystemMode = 'light',
|
|
7932
|
+
defaultColorScheme: designSystemColorScheme,
|
|
7933
|
+
disableTransitionOnChange: designSystemTransitionOnChange = false,
|
|
7934
|
+
enableColorScheme: designSystemEnableColorScheme = true,
|
|
7935
|
+
prefix: designSystemPrefix = '',
|
|
7936
|
+
shouldSkipGeneratingVar,
|
|
7937
|
+
resolveTheme
|
|
7938
|
+
} = options;
|
|
7939
|
+
const systemSpacing = createSpacing(baseTheme.spacing);
|
|
7940
|
+
const systemBreakpoints = createBreakpoints((_baseTheme$breakpoint = baseTheme.breakpoints) != null ? _baseTheme$breakpoint : {});
|
|
7941
|
+
|
|
7942
|
+
if (!baseTheme.colorSchemes || typeof designSystemColorScheme === 'string' && !baseTheme.colorSchemes[designSystemColorScheme] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.light] || typeof designSystemColorScheme === 'object' && !baseTheme.colorSchemes[designSystemColorScheme == null ? void 0 : designSystemColorScheme.dark]) {
|
|
7943
|
+
console.error(`MUI: \`${designSystemColorScheme}\` does not exist in \`theme.colorSchemes\`.`);
|
|
7944
|
+
}
|
|
7945
|
+
|
|
7946
|
+
const ColorSchemeContext = /*#__PURE__*/React__namespace.createContext(undefined);
|
|
7947
|
+
|
|
7948
|
+
const useColorScheme = () => {
|
|
7949
|
+
const value = React__namespace.useContext(ColorSchemeContext);
|
|
7950
|
+
|
|
7951
|
+
if (!value) {
|
|
7952
|
+
throw new Error(`MUI: \`useColorScheme\` must be called under <CssVarsProvider />` );
|
|
7953
|
+
}
|
|
7954
|
+
|
|
7955
|
+
return value;
|
|
7956
|
+
};
|
|
7957
|
+
|
|
7958
|
+
function CssVarsProvider({
|
|
7959
|
+
children,
|
|
7960
|
+
theme: themeProp = {},
|
|
7961
|
+
prefix = designSystemPrefix,
|
|
7962
|
+
modeStorageKey = DEFAULT_MODE_STORAGE_KEY,
|
|
7963
|
+
attribute = DEFAULT_ATTRIBUTE,
|
|
7964
|
+
defaultMode = desisgnSystemMode,
|
|
7965
|
+
defaultColorScheme = designSystemColorScheme,
|
|
7966
|
+
disableTransitionOnChange = designSystemTransitionOnChange,
|
|
7967
|
+
enableColorScheme = designSystemEnableColorScheme
|
|
7968
|
+
}) {
|
|
7969
|
+
const {
|
|
7970
|
+
colorSchemes: baseColorSchemes = {}
|
|
7971
|
+
} = baseTheme,
|
|
7972
|
+
restBaseTheme = _objectWithoutPropertiesLoose(baseTheme, _excluded$2f);
|
|
7973
|
+
|
|
7974
|
+
const {
|
|
7975
|
+
colorSchemes: colorSchemesProp = {}
|
|
7976
|
+
} = themeProp,
|
|
7977
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded2$c);
|
|
7978
|
+
|
|
7979
|
+
const hasMounted = React__namespace.useRef(false); // eslint-disable-next-line prefer-const
|
|
7980
|
+
|
|
7981
|
+
let _deepmerge = deepmerge(restBaseTheme, restThemeProp),
|
|
7982
|
+
{
|
|
7983
|
+
components = {}
|
|
7984
|
+
} = _deepmerge,
|
|
7985
|
+
mergedTheme = _objectWithoutPropertiesLoose(_deepmerge, _excluded3$1);
|
|
7986
|
+
|
|
7987
|
+
const colorSchemes = deepmerge(baseColorSchemes, colorSchemesProp);
|
|
7988
|
+
const allColorSchemes = Object.keys(colorSchemes);
|
|
7989
|
+
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
7990
|
+
const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
|
|
7991
|
+
const {
|
|
7992
|
+
mode,
|
|
7993
|
+
setMode,
|
|
7994
|
+
systemMode,
|
|
7995
|
+
lightColorScheme,
|
|
7996
|
+
darkColorScheme,
|
|
7997
|
+
colorScheme,
|
|
7998
|
+
setColorScheme
|
|
7999
|
+
} = useCurrentColorScheme({
|
|
8000
|
+
supportedColorSchemes: allColorSchemes,
|
|
8001
|
+
defaultLightColorScheme,
|
|
8002
|
+
defaultDarkColorScheme,
|
|
8003
|
+
modeStorageKey,
|
|
8004
|
+
defaultMode
|
|
8005
|
+
});
|
|
8006
|
+
|
|
8007
|
+
const resolvedColorScheme = (() => {
|
|
8008
|
+
if (!colorScheme) {
|
|
8009
|
+
// This scope occurs on the server
|
|
8010
|
+
if (defaultMode === 'dark') {
|
|
8011
|
+
return defaultDarkColorScheme;
|
|
8012
|
+
} // use light color scheme, if default mode is 'light' | 'auto'
|
|
8013
|
+
|
|
8014
|
+
|
|
8015
|
+
return defaultLightColorScheme;
|
|
8016
|
+
}
|
|
8017
|
+
|
|
8018
|
+
return colorScheme;
|
|
8019
|
+
})();
|
|
8020
|
+
|
|
8021
|
+
const {
|
|
8022
|
+
css: rootCss,
|
|
8023
|
+
vars: rootVars,
|
|
8024
|
+
parsedTheme
|
|
8025
|
+
} = cssVarsParser(mergedTheme, {
|
|
8026
|
+
prefix,
|
|
8027
|
+
basePrefix: designSystemPrefix,
|
|
8028
|
+
shouldSkipGeneratingVar
|
|
8029
|
+
});
|
|
8030
|
+
mergedTheme = _extends({}, parsedTheme, {
|
|
8031
|
+
components,
|
|
8032
|
+
colorSchemes,
|
|
8033
|
+
prefix,
|
|
8034
|
+
vars: rootVars,
|
|
8035
|
+
spacing: themeProp.spacing ? createSpacing(themeProp.spacing) : systemSpacing,
|
|
8036
|
+
breakpoints: themeProp.breakpoints ? createBreakpoints(themeProp.breakpoints) : systemBreakpoints,
|
|
8037
|
+
getCssVar: createGetCssVar(prefix)
|
|
8038
|
+
});
|
|
8039
|
+
const styleSheet = {};
|
|
8040
|
+
Object.entries(colorSchemes).forEach(([key, scheme]) => {
|
|
8041
|
+
const {
|
|
8042
|
+
css,
|
|
8043
|
+
vars,
|
|
8044
|
+
parsedTheme: parsedScheme
|
|
8045
|
+
} = cssVarsParser(scheme, {
|
|
8046
|
+
prefix,
|
|
8047
|
+
basePrefix: designSystemPrefix,
|
|
8048
|
+
shouldSkipGeneratingVar
|
|
8049
|
+
});
|
|
8050
|
+
mergedTheme.vars = deepmerge(mergedTheme.vars, vars);
|
|
8051
|
+
|
|
8052
|
+
if (key === resolvedColorScheme) {
|
|
8053
|
+
mergedTheme = _extends({}, mergedTheme, parsedScheme);
|
|
8054
|
+
}
|
|
8055
|
+
|
|
8056
|
+
const resolvedDefaultColorScheme = (() => {
|
|
8057
|
+
if (typeof defaultColorScheme === 'string') {
|
|
8058
|
+
return defaultColorScheme;
|
|
8059
|
+
}
|
|
8060
|
+
|
|
8061
|
+
if (defaultMode === 'dark') {
|
|
8062
|
+
return defaultColorScheme.dark;
|
|
8063
|
+
}
|
|
8064
|
+
|
|
8065
|
+
return defaultColorScheme.light;
|
|
8066
|
+
})();
|
|
8067
|
+
|
|
8068
|
+
if (key === resolvedDefaultColorScheme) {
|
|
8069
|
+
styleSheet[':root'] = css;
|
|
8070
|
+
} else {
|
|
8071
|
+
styleSheet[`[${attribute}="${key}"]`] = css;
|
|
8072
|
+
}
|
|
8073
|
+
});
|
|
8074
|
+
React__namespace.useEffect(() => {
|
|
8075
|
+
if (colorScheme) {
|
|
8076
|
+
// attaches attribute to <html> because the css variables are attached to :root (html)
|
|
8077
|
+
document.documentElement.setAttribute(attribute, colorScheme);
|
|
8078
|
+
}
|
|
8079
|
+
}, [colorScheme, attribute]);
|
|
8080
|
+
useEnhancedEffect$1(() => {
|
|
8081
|
+
if (!mode || !enableColorScheme) {
|
|
8082
|
+
return undefined;
|
|
8083
|
+
}
|
|
8084
|
+
|
|
8085
|
+
const priorColorScheme = document.documentElement.style.getPropertyValue('color-scheme'); // `color-scheme` tells browser to render built-in elements according to its value: `light` or `dark`
|
|
8086
|
+
|
|
8087
|
+
if (mode === 'system') {
|
|
8088
|
+
document.documentElement.style.setProperty('color-scheme', systemMode);
|
|
8089
|
+
} else {
|
|
8090
|
+
document.documentElement.style.setProperty('color-scheme', mode);
|
|
8091
|
+
}
|
|
8092
|
+
|
|
8093
|
+
return () => {
|
|
8094
|
+
document.documentElement.style.setProperty('color-scheme', priorColorScheme);
|
|
8095
|
+
};
|
|
8096
|
+
}, [mode, systemMode, enableColorScheme]);
|
|
8097
|
+
React__namespace.useEffect(() => {
|
|
8098
|
+
let timer;
|
|
8099
|
+
|
|
8100
|
+
if (disableTransitionOnChange && hasMounted.current) {
|
|
8101
|
+
// credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313
|
|
8102
|
+
const css = document.createElement('style');
|
|
8103
|
+
css.appendChild(document.createTextNode(DISABLE_CSS_TRANSITION));
|
|
8104
|
+
document.head.appendChild(css); // Force browser repaint
|
|
8105
|
+
|
|
8106
|
+
(() => window.getComputedStyle(document.body))();
|
|
8107
|
+
|
|
8108
|
+
timer = setTimeout(() => {
|
|
8109
|
+
document.head.removeChild(css);
|
|
8110
|
+
}, 1);
|
|
8111
|
+
}
|
|
8112
|
+
|
|
8113
|
+
return () => {
|
|
8114
|
+
clearTimeout(timer);
|
|
8115
|
+
};
|
|
8116
|
+
}, [colorScheme, disableTransitionOnChange]);
|
|
8117
|
+
React__namespace.useEffect(() => {
|
|
8118
|
+
hasMounted.current = true;
|
|
8119
|
+
return () => {
|
|
8120
|
+
hasMounted.current = false;
|
|
8121
|
+
};
|
|
8122
|
+
}, []);
|
|
8123
|
+
return /*#__PURE__*/jsxRuntime_2(ColorSchemeContext.Provider, {
|
|
8124
|
+
value: {
|
|
8125
|
+
mode,
|
|
8126
|
+
setMode,
|
|
8127
|
+
lightColorScheme,
|
|
8128
|
+
darkColorScheme,
|
|
8129
|
+
colorScheme,
|
|
8130
|
+
setColorScheme,
|
|
8131
|
+
allColorSchemes
|
|
8132
|
+
},
|
|
8133
|
+
children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
|
|
8134
|
+
styles: {
|
|
8135
|
+
':root': rootCss
|
|
8136
|
+
}
|
|
8137
|
+
}), /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
|
|
8138
|
+
styles: styleSheet
|
|
8139
|
+
}), /*#__PURE__*/jsxRuntime_1(ThemeProvider, {
|
|
8140
|
+
theme: resolveTheme ? resolveTheme(mergedTheme) : mergedTheme,
|
|
8141
|
+
children: children
|
|
8142
|
+
})]
|
|
8143
|
+
});
|
|
8144
|
+
}
|
|
8145
|
+
|
|
8146
|
+
CssVarsProvider.propTypes = {
|
|
8147
|
+
/**
|
|
8148
|
+
* The body attribute name to attach colorScheme.
|
|
8149
|
+
*/
|
|
8150
|
+
attribute: PropTypes.string,
|
|
8151
|
+
|
|
8152
|
+
/**
|
|
8153
|
+
* The component tree.
|
|
8154
|
+
*/
|
|
8155
|
+
children: PropTypes.node,
|
|
8156
|
+
|
|
8157
|
+
/**
|
|
8158
|
+
* The initial color scheme used.
|
|
8159
|
+
*/
|
|
8160
|
+
defaultColorScheme: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
8161
|
+
|
|
8162
|
+
/**
|
|
8163
|
+
* The initial mode used.
|
|
8164
|
+
*/
|
|
8165
|
+
defaultMode: PropTypes.string,
|
|
8166
|
+
|
|
8167
|
+
/**
|
|
8168
|
+
* Disable CSS transitions when switching between modes or color schemes
|
|
8169
|
+
*/
|
|
8170
|
+
disableTransitionOnChange: PropTypes.bool,
|
|
8171
|
+
|
|
8172
|
+
/**
|
|
8173
|
+
* Indicate to the browser which color scheme is used (light or dark) for rendering built-in UI
|
|
8174
|
+
*/
|
|
8175
|
+
enableColorScheme: PropTypes.bool,
|
|
8176
|
+
|
|
8177
|
+
/**
|
|
8178
|
+
* The key in the local storage used to store current color scheme.
|
|
8179
|
+
*/
|
|
8180
|
+
modeStorageKey: PropTypes.string,
|
|
8181
|
+
|
|
8182
|
+
/**
|
|
8183
|
+
* CSS variable prefix.
|
|
8184
|
+
*/
|
|
8185
|
+
prefix: PropTypes.string,
|
|
8186
|
+
|
|
8187
|
+
/**
|
|
8188
|
+
* The calculated theme object that will be passed through context.
|
|
8189
|
+
*/
|
|
8190
|
+
theme: PropTypes.object
|
|
8191
|
+
} ;
|
|
8192
|
+
return {
|
|
8193
|
+
CssVarsProvider,
|
|
8194
|
+
useColorScheme,
|
|
8195
|
+
getInitColorSchemeScript: getInitColorSchemeScript$1
|
|
8196
|
+
};
|
|
8197
|
+
}
|
|
8198
|
+
|
|
7476
8199
|
const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
7477
|
-
_excluded2$
|
|
8200
|
+
_excluded2$b = ["type", "mode"];
|
|
7478
8201
|
function adaptV4Theme(inputTheme) {
|
|
7479
8202
|
{
|
|
7480
8203
|
console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
|
|
@@ -7539,7 +8262,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
7539
8262
|
type: typeInput,
|
|
7540
8263
|
mode: modeInput
|
|
7541
8264
|
} = palette,
|
|
7542
|
-
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$
|
|
8265
|
+
paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$b);
|
|
7543
8266
|
|
|
7544
8267
|
const finalMode = modeInput || typeInput || 'light';
|
|
7545
8268
|
theme.palette = _extends({
|
|
@@ -8633,6 +9356,36 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8633
9356
|
return output;
|
|
8634
9357
|
}
|
|
8635
9358
|
|
|
9359
|
+
function useBadge(props) {
|
|
9360
|
+
const {
|
|
9361
|
+
badgeContent: badgeContentProp,
|
|
9362
|
+
invisible: invisibleProp = false,
|
|
9363
|
+
max: maxProp = 99,
|
|
9364
|
+
showZero = false
|
|
9365
|
+
} = props;
|
|
9366
|
+
const prevProps = usePreviousProps$1({
|
|
9367
|
+
badgeContent: badgeContentProp,
|
|
9368
|
+
max: maxProp
|
|
9369
|
+
});
|
|
9370
|
+
let invisible = invisibleProp;
|
|
9371
|
+
|
|
9372
|
+
if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
|
|
9373
|
+
invisible = true;
|
|
9374
|
+
}
|
|
9375
|
+
|
|
9376
|
+
const {
|
|
9377
|
+
badgeContent,
|
|
9378
|
+
max = maxProp
|
|
9379
|
+
} = invisible ? prevProps : props;
|
|
9380
|
+
const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
|
|
9381
|
+
return {
|
|
9382
|
+
badgeContent,
|
|
9383
|
+
invisible,
|
|
9384
|
+
max,
|
|
9385
|
+
displayValue
|
|
9386
|
+
};
|
|
9387
|
+
}
|
|
9388
|
+
|
|
8636
9389
|
const defaultGenerator = componentName => componentName;
|
|
8637
9390
|
|
|
8638
9391
|
const createClassNameGenerator = () => {
|
|
@@ -8681,224 +9434,53 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8681
9434
|
return result;
|
|
8682
9435
|
}
|
|
8683
9436
|
|
|
8684
|
-
function
|
|
8685
|
-
return generateUtilityClass('
|
|
9437
|
+
function getBadgeUtilityClass$1(slot) {
|
|
9438
|
+
return generateUtilityClass('BaseBadge', slot);
|
|
8686
9439
|
}
|
|
8687
|
-
|
|
8688
|
-
var backdropUnstyledClasses$1 = backdropUnstyledClasses;
|
|
9440
|
+
generateUtilityClasses('BaseBadge', ['root', 'badge', 'invisible']);
|
|
8689
9441
|
|
|
8690
|
-
const _excluded$2d = ["
|
|
9442
|
+
const _excluded$2d = ["badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero"];
|
|
8691
9443
|
|
|
8692
9444
|
const useUtilityClasses$1O = ownerState => {
|
|
8693
9445
|
const {
|
|
8694
|
-
classes,
|
|
8695
9446
|
invisible
|
|
8696
9447
|
} = ownerState;
|
|
8697
|
-
const slots = {
|
|
8698
|
-
root: ['root', invisible && 'invisible']
|
|
8699
|
-
};
|
|
8700
|
-
return composeClasses(slots, getBackdropUtilityClass, classes);
|
|
8701
|
-
};
|
|
8702
|
-
|
|
8703
|
-
const BackdropUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BackdropUnstyled(props, ref) {
|
|
8704
|
-
const {
|
|
8705
|
-
classes: classesProp,
|
|
8706
|
-
className,
|
|
8707
|
-
invisible = false,
|
|
8708
|
-
component = 'div',
|
|
8709
|
-
components = {},
|
|
8710
|
-
componentsProps = {},
|
|
8711
|
-
|
|
8712
|
-
/* eslint-disable react/prop-types */
|
|
8713
|
-
theme
|
|
8714
|
-
} = props,
|
|
8715
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
8716
|
-
|
|
8717
|
-
const ownerState = _extends({}, props, {
|
|
8718
|
-
classes: classesProp,
|
|
8719
|
-
invisible
|
|
8720
|
-
});
|
|
8721
|
-
|
|
8722
|
-
const classes = useUtilityClasses$1O(ownerState);
|
|
8723
|
-
const Root = components.Root || component;
|
|
8724
|
-
const rootProps = componentsProps.root || {};
|
|
8725
|
-
return /*#__PURE__*/jsxRuntime_1(Root, _extends({
|
|
8726
|
-
"aria-hidden": true
|
|
8727
|
-
}, rootProps, !isHostComponent(Root) && {
|
|
8728
|
-
as: component,
|
|
8729
|
-
ownerState: _extends({}, ownerState, rootProps.ownerState),
|
|
8730
|
-
theme
|
|
8731
|
-
}, {
|
|
8732
|
-
ref: ref
|
|
8733
|
-
}, other, {
|
|
8734
|
-
className: clsx(classes.root, rootProps.className, className)
|
|
8735
|
-
}));
|
|
8736
|
-
});
|
|
8737
|
-
BackdropUnstyled.propTypes
|
|
8738
|
-
/* remove-proptypes */
|
|
8739
|
-
= {
|
|
8740
|
-
// ----------------------------- Warning --------------------------------
|
|
8741
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
8742
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
8743
|
-
// ----------------------------------------------------------------------
|
|
8744
|
-
|
|
8745
|
-
/**
|
|
8746
|
-
* The content of the component.
|
|
8747
|
-
*/
|
|
8748
|
-
children: PropTypes.node,
|
|
8749
|
-
|
|
8750
|
-
/**
|
|
8751
|
-
* Override or extend the styles applied to the component.
|
|
8752
|
-
*/
|
|
8753
|
-
classes: PropTypes.object,
|
|
8754
|
-
|
|
8755
|
-
/**
|
|
8756
|
-
* @ignore
|
|
8757
|
-
*/
|
|
8758
|
-
className: PropTypes.string,
|
|
8759
|
-
|
|
8760
|
-
/**
|
|
8761
|
-
* The component used for the root node.
|
|
8762
|
-
* Either a string to use a HTML element or a component.
|
|
8763
|
-
*/
|
|
8764
|
-
component: PropTypes.elementType,
|
|
8765
|
-
|
|
8766
|
-
/**
|
|
8767
|
-
* The components used for each slot inside the Backdrop.
|
|
8768
|
-
* Either a string to use a HTML element or a component.
|
|
8769
|
-
* @default {}
|
|
8770
|
-
*/
|
|
8771
|
-
components: PropTypes.shape({
|
|
8772
|
-
Root: PropTypes.elementType
|
|
8773
|
-
}),
|
|
8774
|
-
|
|
8775
|
-
/**
|
|
8776
|
-
* The props used for each slot inside the Backdrop.
|
|
8777
|
-
* @default {}
|
|
8778
|
-
*/
|
|
8779
|
-
componentsProps: PropTypes.shape({
|
|
8780
|
-
root: PropTypes.object
|
|
8781
|
-
}),
|
|
8782
|
-
|
|
8783
|
-
/**
|
|
8784
|
-
* If `true`, the backdrop is invisible.
|
|
8785
|
-
* It can be used when rendering a popover or a custom select component.
|
|
8786
|
-
* @default false
|
|
8787
|
-
*/
|
|
8788
|
-
invisible: PropTypes.bool
|
|
8789
|
-
} ;
|
|
8790
|
-
var BackdropUnstyled$1 = BackdropUnstyled;
|
|
8791
|
-
|
|
8792
|
-
function useBadge(props) {
|
|
8793
|
-
const {
|
|
8794
|
-
anchorOrigin: anchorOriginProp = {
|
|
8795
|
-
vertical: 'top',
|
|
8796
|
-
horizontal: 'right'
|
|
8797
|
-
},
|
|
8798
|
-
badgeContent: badgeContentProp,
|
|
8799
|
-
invisible: invisibleProp = false,
|
|
8800
|
-
max: maxProp = 99,
|
|
8801
|
-
showZero = false,
|
|
8802
|
-
variant: variantProp = 'standard'
|
|
8803
|
-
} = props;
|
|
8804
|
-
const prevProps = usePreviousProps$1({
|
|
8805
|
-
anchorOrigin: anchorOriginProp,
|
|
8806
|
-
badgeContent: badgeContentProp,
|
|
8807
|
-
max: maxProp,
|
|
8808
|
-
variant: variantProp
|
|
8809
|
-
});
|
|
8810
|
-
let invisible = invisibleProp;
|
|
8811
|
-
|
|
8812
|
-
if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
|
|
8813
|
-
invisible = true;
|
|
8814
|
-
}
|
|
8815
|
-
|
|
8816
|
-
const {
|
|
8817
|
-
anchorOrigin = anchorOriginProp,
|
|
8818
|
-
badgeContent,
|
|
8819
|
-
max = maxProp,
|
|
8820
|
-
variant = variantProp
|
|
8821
|
-
} = invisible ? prevProps : props;
|
|
8822
|
-
let displayValue = '';
|
|
8823
|
-
|
|
8824
|
-
if (variant !== 'dot') {
|
|
8825
|
-
displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
|
|
8826
|
-
}
|
|
8827
|
-
|
|
8828
|
-
return {
|
|
8829
|
-
anchorOrigin,
|
|
8830
|
-
badgeContent,
|
|
8831
|
-
invisible,
|
|
8832
|
-
max,
|
|
8833
|
-
variant,
|
|
8834
|
-
displayValue
|
|
8835
|
-
};
|
|
8836
|
-
}
|
|
8837
|
-
|
|
8838
|
-
function getBadgeUtilityClass(slot) {
|
|
8839
|
-
return generateUtilityClass('MuiBadge', slot);
|
|
8840
|
-
}
|
|
8841
|
-
const badgeUnstyledClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopLeft', 'anchorOriginTopRight', 'anchorOriginBottomLeft', 'anchorOriginBottomRight', 'invisible']);
|
|
8842
|
-
var badgeUnstyledClasses$1 = badgeUnstyledClasses;
|
|
8843
|
-
|
|
8844
|
-
const _excluded$2c = ["anchorOrigin", "classes", "badgeContent", "component", "children", "className", "components", "componentsProps", "invisible", "max", "showZero", "variant"];
|
|
8845
|
-
|
|
8846
|
-
const useUtilityClasses$1N = ownerState => {
|
|
8847
|
-
const {
|
|
8848
|
-
variant,
|
|
8849
|
-
anchorOrigin,
|
|
8850
|
-
invisible,
|
|
8851
|
-
classes
|
|
8852
|
-
} = ownerState;
|
|
8853
9448
|
const slots = {
|
|
8854
9449
|
root: ['root'],
|
|
8855
|
-
badge: ['badge',
|
|
9450
|
+
badge: ['badge', invisible && 'invisible']
|
|
8856
9451
|
};
|
|
8857
|
-
return composeClasses(slots, getBadgeUtilityClass,
|
|
9452
|
+
return composeClasses(slots, getBadgeUtilityClass$1, undefined);
|
|
8858
9453
|
};
|
|
8859
9454
|
|
|
8860
9455
|
const BadgeUnstyled = /*#__PURE__*/React__namespace.forwardRef(function BadgeUnstyled(props, ref) {
|
|
8861
9456
|
const {
|
|
8862
|
-
anchorOrigin: anchorOriginProp = {
|
|
8863
|
-
vertical: 'top',
|
|
8864
|
-
horizontal: 'right'
|
|
8865
|
-
},
|
|
8866
|
-
classes: classesProp,
|
|
8867
9457
|
component,
|
|
8868
9458
|
children,
|
|
8869
9459
|
className,
|
|
8870
9460
|
components = {},
|
|
8871
9461
|
componentsProps = {},
|
|
8872
9462
|
max: maxProp = 99,
|
|
8873
|
-
showZero = false
|
|
8874
|
-
variant: variantProp = 'standard'
|
|
9463
|
+
showZero = false
|
|
8875
9464
|
} = props,
|
|
8876
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9465
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
8877
9466
|
|
|
8878
9467
|
const {
|
|
8879
|
-
anchorOrigin,
|
|
8880
9468
|
badgeContent,
|
|
8881
9469
|
max,
|
|
8882
|
-
variant,
|
|
8883
9470
|
displayValue,
|
|
8884
9471
|
invisible
|
|
8885
9472
|
} = useBadge(_extends({}, props, {
|
|
8886
|
-
|
|
8887
|
-
max: maxProp,
|
|
8888
|
-
variant: variantProp
|
|
9473
|
+
max: maxProp
|
|
8889
9474
|
}));
|
|
8890
9475
|
|
|
8891
9476
|
const ownerState = _extends({}, props, {
|
|
8892
|
-
anchorOrigin,
|
|
8893
9477
|
badgeContent,
|
|
8894
|
-
classes: classesProp,
|
|
8895
9478
|
invisible,
|
|
8896
9479
|
max,
|
|
8897
|
-
variant,
|
|
8898
9480
|
showZero
|
|
8899
9481
|
});
|
|
8900
9482
|
|
|
8901
|
-
const classes = useUtilityClasses$
|
|
9483
|
+
const classes = useUtilityClasses$1O(ownerState);
|
|
8902
9484
|
const Root = component || components.Root || 'span';
|
|
8903
9485
|
const rootProps = appendOwnerState(Root, _extends({}, other, componentsProps.root), ownerState);
|
|
8904
9486
|
const Badge = components.Badge || 'span';
|
|
@@ -8921,18 +9503,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8921
9503
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
8922
9504
|
// ----------------------------------------------------------------------
|
|
8923
9505
|
|
|
8924
|
-
/**
|
|
8925
|
-
* The anchor of the badge.
|
|
8926
|
-
* @default {
|
|
8927
|
-
* vertical: 'top',
|
|
8928
|
-
* horizontal: 'right',
|
|
8929
|
-
* }
|
|
8930
|
-
*/
|
|
8931
|
-
anchorOrigin: PropTypes.shape({
|
|
8932
|
-
horizontal: PropTypes.oneOf(['left', 'right']).isRequired,
|
|
8933
|
-
vertical: PropTypes.oneOf(['bottom', 'top']).isRequired
|
|
8934
|
-
}),
|
|
8935
|
-
|
|
8936
9506
|
/**
|
|
8937
9507
|
* The content rendered within the badge.
|
|
8938
9508
|
*/
|
|
@@ -8943,11 +9513,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8943
9513
|
*/
|
|
8944
9514
|
children: PropTypes.node,
|
|
8945
9515
|
|
|
8946
|
-
/**
|
|
8947
|
-
* Override or extend the styles applied to the component.
|
|
8948
|
-
*/
|
|
8949
|
-
classes: PropTypes.object,
|
|
8950
|
-
|
|
8951
9516
|
/**
|
|
8952
9517
|
* @ignore
|
|
8953
9518
|
*/
|
|
@@ -8994,13 +9559,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
8994
9559
|
* Controls whether the badge is hidden when `badgeContent` is zero.
|
|
8995
9560
|
* @default false
|
|
8996
9561
|
*/
|
|
8997
|
-
showZero: PropTypes.bool
|
|
8998
|
-
|
|
8999
|
-
/**
|
|
9000
|
-
* The variant to use.
|
|
9001
|
-
* @default 'standard'
|
|
9002
|
-
*/
|
|
9003
|
-
variant: PropTypes.string
|
|
9562
|
+
showZero: PropTypes.bool
|
|
9004
9563
|
} ;
|
|
9005
9564
|
var BadgeUnstyled$1 = BadgeUnstyled;
|
|
9006
9565
|
|
|
@@ -9018,12 +9577,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9018
9577
|
*
|
|
9019
9578
|
* Demos:
|
|
9020
9579
|
*
|
|
9021
|
-
* - [Click Away Listener](https://mui.com/
|
|
9022
|
-
* - [Menus](https://mui.com/components/menus/)
|
|
9580
|
+
* - [Click Away Listener](https://mui.com/base/react-click-away-listener/)
|
|
9023
9581
|
*
|
|
9024
9582
|
* API:
|
|
9025
9583
|
*
|
|
9026
|
-
* - [ClickAwayListener API](https://mui.com/api/click-away-listener/)
|
|
9584
|
+
* - [ClickAwayListener API](https://mui.com/base/api/click-away-listener/)
|
|
9027
9585
|
*/
|
|
9028
9586
|
function ClickAwayListener(props) {
|
|
9029
9587
|
const {
|
|
@@ -11236,8 +11794,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
11236
11794
|
|
|
11237
11795
|
var Portal$1 = Portal;
|
|
11238
11796
|
|
|
11239
|
-
const _excluded$
|
|
11240
|
-
_excluded2$
|
|
11797
|
+
const _excluded$2c = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
|
|
11798
|
+
_excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
|
|
11241
11799
|
|
|
11242
11800
|
function flipPlacement(placement, direction) {
|
|
11243
11801
|
if (direction === 'ltr') {
|
|
@@ -11282,7 +11840,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
11282
11840
|
popperRef: popperRefProp,
|
|
11283
11841
|
TransitionProps
|
|
11284
11842
|
} = props,
|
|
11285
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
11843
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2c);
|
|
11286
11844
|
|
|
11287
11845
|
const tooltipRef = React__namespace.useRef(null);
|
|
11288
11846
|
const ownRef = useForkRef(tooltipRef, ref);
|
|
@@ -11403,7 +11961,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
11403
11961
|
style,
|
|
11404
11962
|
transition = false
|
|
11405
11963
|
} = props,
|
|
11406
|
-
other = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
11964
|
+
other = _objectWithoutPropertiesLoose(props, _excluded2$a);
|
|
11407
11965
|
|
|
11408
11966
|
const [exited, setExited] = React__namespace.useState(true);
|
|
11409
11967
|
|
|
@@ -11892,7 +12450,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
11892
12450
|
*/
|
|
11893
12451
|
|
|
11894
12452
|
|
|
11895
|
-
function
|
|
12453
|
+
function TrapFocus(props) {
|
|
11896
12454
|
const {
|
|
11897
12455
|
children,
|
|
11898
12456
|
disableAutoFocus = false,
|
|
@@ -12097,7 +12655,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12097
12655
|
});
|
|
12098
12656
|
}
|
|
12099
12657
|
|
|
12100
|
-
|
|
12658
|
+
TrapFocus.propTypes
|
|
12101
12659
|
/* remove-proptypes */
|
|
12102
12660
|
= {
|
|
12103
12661
|
// ----------------------------- Warning --------------------------------
|
|
@@ -12163,7 +12721,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12163
12721
|
|
|
12164
12722
|
{
|
|
12165
12723
|
// eslint-disable-next-line
|
|
12166
|
-
|
|
12724
|
+
TrapFocus['propTypes' + ''] = exactProp(TrapFocus.propTypes);
|
|
12167
12725
|
}
|
|
12168
12726
|
|
|
12169
12727
|
function getModalUtilityClass(slot) {
|
|
@@ -12172,9 +12730,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12172
12730
|
const modalUnstyledClasses = generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
12173
12731
|
var modalUnstyledClasses$1 = modalUnstyledClasses;
|
|
12174
12732
|
|
|
12175
|
-
const _excluded$
|
|
12733
|
+
const _excluded$2b = ["BackdropComponent", "BackdropProps", "children", "classes", "className", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "theme", "onTransitionEnter", "onTransitionExited"];
|
|
12176
12734
|
|
|
12177
|
-
const useUtilityClasses$
|
|
12735
|
+
const useUtilityClasses$1N = ownerState => {
|
|
12178
12736
|
const {
|
|
12179
12737
|
open,
|
|
12180
12738
|
exited,
|
|
@@ -12244,7 +12802,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12244
12802
|
onTransitionEnter,
|
|
12245
12803
|
onTransitionExited
|
|
12246
12804
|
} = props,
|
|
12247
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12805
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2b);
|
|
12248
12806
|
|
|
12249
12807
|
const [exited, setExited] = React__namespace.useState(true);
|
|
12250
12808
|
const modal = React__namespace.useRef({});
|
|
@@ -12321,7 +12879,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12321
12879
|
keepMounted
|
|
12322
12880
|
});
|
|
12323
12881
|
|
|
12324
|
-
const classes = useUtilityClasses$
|
|
12882
|
+
const classes = useUtilityClasses$1N(ownerState);
|
|
12325
12883
|
|
|
12326
12884
|
if (!keepMounted && !open && (!hasTransition || exited)) {
|
|
12327
12885
|
return null;
|
|
@@ -12415,9 +12973,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12415
12973
|
onKeyDown: handleKeyDown,
|
|
12416
12974
|
className: clsx(classes.root, rootProps.className, className),
|
|
12417
12975
|
children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/jsxRuntime_1(BackdropComponent, _extends({
|
|
12976
|
+
"aria-hidden": true,
|
|
12418
12977
|
open: open,
|
|
12419
12978
|
onClick: handleBackdropClick
|
|
12420
|
-
}, BackdropProps)) : null, /*#__PURE__*/jsxRuntime_1(
|
|
12979
|
+
}, BackdropProps)) : null, /*#__PURE__*/jsxRuntime_1(TrapFocus, {
|
|
12421
12980
|
disableEnforceFocus: disableEnforceFocus,
|
|
12422
12981
|
disableAutoFocus: disableAutoFocus,
|
|
12423
12982
|
disableRestoreFocus: disableRestoreFocus,
|
|
@@ -12442,7 +13001,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
12442
13001
|
BackdropComponent: PropTypes.elementType,
|
|
12443
13002
|
|
|
12444
13003
|
/**
|
|
12445
|
-
* Props applied to the
|
|
13004
|
+
* Props applied to the backdrop element.
|
|
12446
13005
|
*/
|
|
12447
13006
|
BackdropProps: PropTypes.object,
|
|
12448
13007
|
|
|
@@ -13182,7 +13741,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13182
13741
|
stopListening();
|
|
13183
13742
|
});
|
|
13184
13743
|
const handleTouchStart = useEventCallback(nativeEvent => {
|
|
13185
|
-
|
|
13744
|
+
if (disabled) {
|
|
13745
|
+
return;
|
|
13746
|
+
} // If touch-action: none; is not supported we need to prevent the scroll manually.
|
|
13747
|
+
|
|
13748
|
+
|
|
13186
13749
|
if (!doesSupportTouchActionNone()) {
|
|
13187
13750
|
nativeEvent.preventDefault();
|
|
13188
13751
|
}
|
|
@@ -13254,6 +13817,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13254
13817
|
|
|
13255
13818
|
(_otherHandlers$onMous = otherHandlers.onMouseDown) == null ? void 0 : _otherHandlers$onMous.call(otherHandlers, event);
|
|
13256
13819
|
|
|
13820
|
+
if (disabled) {
|
|
13821
|
+
return;
|
|
13822
|
+
}
|
|
13823
|
+
|
|
13257
13824
|
if (event.defaultPrevented) {
|
|
13258
13825
|
return;
|
|
13259
13826
|
} // Only handle left clicks
|
|
@@ -13383,11 +13950,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13383
13950
|
};
|
|
13384
13951
|
}
|
|
13385
13952
|
|
|
13386
|
-
const _excluded$
|
|
13953
|
+
const _excluded$2a = ["aria-label", "aria-valuetext", "className", "component", "classes", "disableSwap", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "tabIndex", "track", "value", "valueLabelDisplay", "valueLabelFormat", "isRtl", "components", "componentsProps"];
|
|
13387
13954
|
|
|
13388
13955
|
const Identity = x => x;
|
|
13389
13956
|
|
|
13390
|
-
const useUtilityClasses$
|
|
13957
|
+
const useUtilityClasses$1M = ownerState => {
|
|
13391
13958
|
const {
|
|
13392
13959
|
disabled,
|
|
13393
13960
|
dragging,
|
|
@@ -13444,7 +14011,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13444
14011
|
components = {},
|
|
13445
14012
|
componentsProps = {}
|
|
13446
14013
|
} = props,
|
|
13447
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14014
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2a); // all props with defaults
|
|
13448
14015
|
// consider extracting to hook an reusing the lint rule for the varints
|
|
13449
14016
|
|
|
13450
14017
|
|
|
@@ -13503,7 +14070,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13503
14070
|
const Input = components.Input || 'input';
|
|
13504
14071
|
const inputProps = appendOwnerState(Input, componentsProps.input, ownerState);
|
|
13505
14072
|
const hiddenInputProps = getHiddenInputProps();
|
|
13506
|
-
const classes = useUtilityClasses$
|
|
14073
|
+
const classes = useUtilityClasses$1M(ownerState);
|
|
13507
14074
|
return /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, getRootProps({
|
|
13508
14075
|
onMouseDown
|
|
13509
14076
|
}), {
|
|
@@ -13843,7 +14410,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13843
14410
|
} ;
|
|
13844
14411
|
var SliderUnstyled$1 = SliderUnstyled;
|
|
13845
14412
|
|
|
13846
|
-
const _excluded$
|
|
14413
|
+
const _excluded$29 = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
13847
14414
|
|
|
13848
14415
|
function getStyleValue(computedStyle, property) {
|
|
13849
14416
|
return parseInt(computedStyle[property], 10) || 0;
|
|
@@ -13872,7 +14439,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
13872
14439
|
style,
|
|
13873
14440
|
value
|
|
13874
14441
|
} = props,
|
|
13875
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14442
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$29);
|
|
13876
14443
|
|
|
13877
14444
|
const {
|
|
13878
14445
|
current: isControlled
|
|
@@ -14072,7 +14639,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14072
14639
|
}, mixins);
|
|
14073
14640
|
}
|
|
14074
14641
|
|
|
14075
|
-
const _excluded$
|
|
14642
|
+
const _excluded$28 = ["mode", "contrastThreshold", "tonalOffset"];
|
|
14076
14643
|
const light = {
|
|
14077
14644
|
// The colors used to style the text.
|
|
14078
14645
|
text: {
|
|
@@ -14256,7 +14823,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
14256
14823
|
contrastThreshold = 3,
|
|
14257
14824
|
tonalOffset = 0.2
|
|
14258
14825
|
} = palette,
|
|
14259
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
14826
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$28);
|
|
14260
14827
|
|
|
14261
14828
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
14262
14829
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
@@ -14392,7 +14959,7 @@ const theme2 = createTheme({ palette: {
|
|
|
14392
14959
|
return paletteOutput;
|
|
14393
14960
|
}
|
|
14394
14961
|
|
|
14395
|
-
const _excluded$
|
|
14962
|
+
const _excluded$27 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
14396
14963
|
|
|
14397
14964
|
function round$1(value) {
|
|
14398
14965
|
return Math.round(value * 1e5) / 1e5;
|
|
@@ -14425,7 +14992,7 @@ const theme2 = createTheme({ palette: {
|
|
|
14425
14992
|
allVariants,
|
|
14426
14993
|
pxToRem: pxToRem2
|
|
14427
14994
|
} = _ref,
|
|
14428
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14995
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$27);
|
|
14429
14996
|
|
|
14430
14997
|
{
|
|
14431
14998
|
if (typeof fontSize !== 'number') {
|
|
@@ -14493,7 +15060,7 @@ const theme2 = createTheme({ palette: {
|
|
|
14493
15060
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
14494
15061
|
var shadows$1 = shadows;
|
|
14495
15062
|
|
|
14496
|
-
const _excluded$
|
|
15063
|
+
const _excluded$26 = ["duration", "easing", "delay"];
|
|
14497
15064
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
14498
15065
|
// to learn the context in which each easing should be used.
|
|
14499
15066
|
const easing = {
|
|
@@ -14548,7 +15115,7 @@ const theme2 = createTheme({ palette: {
|
|
|
14548
15115
|
easing: easingOption = mergedEasing.easeInOut,
|
|
14549
15116
|
delay = 0
|
|
14550
15117
|
} = options,
|
|
14551
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
15118
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$26);
|
|
14552
15119
|
|
|
14553
15120
|
{
|
|
14554
15121
|
const isString = value => typeof value === 'string'; // IE11 support, replace with Number.isNaN
|
|
@@ -14604,19 +15171,19 @@ const theme2 = createTheme({ palette: {
|
|
|
14604
15171
|
};
|
|
14605
15172
|
var zIndex$1 = zIndex;
|
|
14606
15173
|
|
|
14607
|
-
const _excluded$
|
|
15174
|
+
const _excluded$25 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
14608
15175
|
|
|
14609
|
-
function createTheme(options = {}, ...args) {
|
|
15176
|
+
function createTheme$1(options = {}, ...args) {
|
|
14610
15177
|
const {
|
|
14611
15178
|
mixins: mixinsInput = {},
|
|
14612
15179
|
palette: paletteInput = {},
|
|
14613
15180
|
transitions: transitionsInput = {},
|
|
14614
15181
|
typography: typographyInput = {}
|
|
14615
15182
|
} = options,
|
|
14616
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
15183
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$25);
|
|
14617
15184
|
|
|
14618
15185
|
const palette = createPalette(paletteInput);
|
|
14619
|
-
const systemTheme = createTheme$
|
|
15186
|
+
const systemTheme = createTheme$2(options);
|
|
14620
15187
|
let muiTheme = deepmerge(systemTheme, {
|
|
14621
15188
|
mixins: createMixins(systemTheme.breakpoints, systemTheme.spacing, mixinsInput),
|
|
14622
15189
|
palette,
|
|
@@ -14675,11 +15242,11 @@ const theme2 = createTheme({ palette: {
|
|
|
14675
15242
|
}
|
|
14676
15243
|
}
|
|
14677
15244
|
|
|
14678
|
-
return createTheme(...args);
|
|
15245
|
+
return createTheme$1(...args);
|
|
14679
15246
|
}
|
|
14680
15247
|
|
|
14681
15248
|
function createMuiStrictModeTheme(options, ...args) {
|
|
14682
|
-
return createTheme(deepmerge({
|
|
15249
|
+
return createTheme$1(deepmerge({
|
|
14683
15250
|
unstable_strictMode: true
|
|
14684
15251
|
}, options), ...args);
|
|
14685
15252
|
}
|
|
@@ -14886,11 +15453,11 @@ Use unitless line heights instead.` );
|
|
|
14886
15453
|
return theme;
|
|
14887
15454
|
}
|
|
14888
15455
|
|
|
14889
|
-
const defaultTheme$
|
|
14890
|
-
var defaultTheme$
|
|
15456
|
+
const defaultTheme$2 = createTheme$1();
|
|
15457
|
+
var defaultTheme$3 = defaultTheme$2;
|
|
14891
15458
|
|
|
14892
15459
|
function useTheme() {
|
|
14893
|
-
const theme = useTheme$1(defaultTheme$
|
|
15460
|
+
const theme = useTheme$1(defaultTheme$3);
|
|
14894
15461
|
|
|
14895
15462
|
{
|
|
14896
15463
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -14907,14 +15474,14 @@ Use unitless line heights instead.` );
|
|
|
14907
15474
|
return useThemeProps$1({
|
|
14908
15475
|
props,
|
|
14909
15476
|
name,
|
|
14910
|
-
defaultTheme: defaultTheme$
|
|
15477
|
+
defaultTheme: defaultTheme$3
|
|
14911
15478
|
});
|
|
14912
15479
|
}
|
|
14913
15480
|
|
|
14914
15481
|
const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
|
|
14915
15482
|
const slotShouldForwardProp = shouldForwardProp;
|
|
14916
15483
|
const styled = createStyled({
|
|
14917
|
-
defaultTheme: defaultTheme$
|
|
15484
|
+
defaultTheme: defaultTheme$3,
|
|
14918
15485
|
rootShouldForwardProp
|
|
14919
15486
|
});
|
|
14920
15487
|
var styled$1 = styled;
|
|
@@ -14937,6 +15504,112 @@ You have to import it from @mui/styles.
|
|
|
14937
15504
|
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
14938
15505
|
}
|
|
14939
15506
|
|
|
15507
|
+
const _excluded$24 = ["colorSchemes", "opacity"],
|
|
15508
|
+
_excluded2$9 = ["palette"];
|
|
15509
|
+
const defaultOpacity = {
|
|
15510
|
+
active: 0.54,
|
|
15511
|
+
hover: 0.04,
|
|
15512
|
+
selected: 0.08,
|
|
15513
|
+
disabled: 0.26,
|
|
15514
|
+
focus: 0.12
|
|
15515
|
+
};
|
|
15516
|
+
|
|
15517
|
+
function createTheme(options = {}, ...args) {
|
|
15518
|
+
var _colorSchemesInput$li, _colorSchemesInput$da;
|
|
15519
|
+
|
|
15520
|
+
const {
|
|
15521
|
+
colorSchemes: colorSchemesInput = {},
|
|
15522
|
+
opacity: opacityInput = {}
|
|
15523
|
+
} = options,
|
|
15524
|
+
input = _objectWithoutPropertiesLoose(options, _excluded$24); // eslint-disable-next-line prefer-const
|
|
15525
|
+
|
|
15526
|
+
|
|
15527
|
+
let _createThemeWithoutVa = createTheme$1(_extends({}, input, colorSchemesInput.light && {
|
|
15528
|
+
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
15529
|
+
})),
|
|
15530
|
+
{
|
|
15531
|
+
palette: lightPalette
|
|
15532
|
+
} = _createThemeWithoutVa,
|
|
15533
|
+
muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
|
|
15534
|
+
|
|
15535
|
+
const {
|
|
15536
|
+
palette: darkPalette
|
|
15537
|
+
} = createTheme$1({
|
|
15538
|
+
palette: _extends({
|
|
15539
|
+
mode: 'dark'
|
|
15540
|
+
}, (_colorSchemesInput$da = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da.palette)
|
|
15541
|
+
});
|
|
15542
|
+
colorSchemesInput.light = {
|
|
15543
|
+
palette: lightPalette
|
|
15544
|
+
};
|
|
15545
|
+
colorSchemesInput.dark = {
|
|
15546
|
+
palette: darkPalette
|
|
15547
|
+
};
|
|
15548
|
+
const colorSchemes = {};
|
|
15549
|
+
Object.keys(colorSchemesInput).forEach(key => {
|
|
15550
|
+
const palette = createPalette(colorSchemesInput[key].palette);
|
|
15551
|
+
Object.keys(palette).forEach(color => {
|
|
15552
|
+
const colors = palette[color];
|
|
15553
|
+
|
|
15554
|
+
if (colors.main) {
|
|
15555
|
+
palette[color].mainChannel = colorChannel(colors.main);
|
|
15556
|
+
}
|
|
15557
|
+
|
|
15558
|
+
if (colors.light) {
|
|
15559
|
+
palette[color].lightChannel = colorChannel(colors.light);
|
|
15560
|
+
}
|
|
15561
|
+
|
|
15562
|
+
if (colors.dark) {
|
|
15563
|
+
palette[color].darkChannel = colorChannel(colors.dark);
|
|
15564
|
+
}
|
|
15565
|
+
|
|
15566
|
+
if (colors.primary) {
|
|
15567
|
+
palette[color].primaryChannel = colorChannel(colors.primary);
|
|
15568
|
+
}
|
|
15569
|
+
|
|
15570
|
+
if (colors.secondary) {
|
|
15571
|
+
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
15572
|
+
}
|
|
15573
|
+
|
|
15574
|
+
if (colors.disabled) {
|
|
15575
|
+
palette[color].disabledChannel = colorChannel(colors.disabled);
|
|
15576
|
+
}
|
|
15577
|
+
});
|
|
15578
|
+
colorSchemes[key] = {
|
|
15579
|
+
palette
|
|
15580
|
+
};
|
|
15581
|
+
});
|
|
15582
|
+
|
|
15583
|
+
const opacity = _extends({}, defaultOpacity, opacityInput);
|
|
15584
|
+
|
|
15585
|
+
muiTheme.colorSchemes = colorSchemes;
|
|
15586
|
+
muiTheme.opacity = opacity;
|
|
15587
|
+
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
|
|
15588
|
+
return muiTheme;
|
|
15589
|
+
}
|
|
15590
|
+
|
|
15591
|
+
const defaultTheme$1 = createTheme();
|
|
15592
|
+
const {
|
|
15593
|
+
CssVarsProvider: Experimental_CssVarsProvider,
|
|
15594
|
+
useColorScheme,
|
|
15595
|
+
getInitColorSchemeScript
|
|
15596
|
+
} = createCssVarsProvider({
|
|
15597
|
+
theme: defaultTheme$1,
|
|
15598
|
+
defaultColorScheme: {
|
|
15599
|
+
light: 'light',
|
|
15600
|
+
dark: 'dark'
|
|
15601
|
+
},
|
|
15602
|
+
prefix: 'md',
|
|
15603
|
+
resolveTheme: theme => {
|
|
15604
|
+
const newTheme = _extends({}, theme, {
|
|
15605
|
+
typography: createTypography(theme.palette, theme.typography)
|
|
15606
|
+
});
|
|
15607
|
+
|
|
15608
|
+
return newTheme;
|
|
15609
|
+
},
|
|
15610
|
+
shouldSkipGeneratingVar: keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/)
|
|
15611
|
+
});
|
|
15612
|
+
|
|
14940
15613
|
function getSvgIconUtilityClass(slot) {
|
|
14941
15614
|
return generateUtilityClass('MuiSvgIcon', slot);
|
|
14942
15615
|
}
|
|
@@ -14945,7 +15618,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
14945
15618
|
|
|
14946
15619
|
const _excluded$23 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
14947
15620
|
|
|
14948
|
-
const useUtilityClasses$
|
|
15621
|
+
const useUtilityClasses$1L = ownerState => {
|
|
14949
15622
|
const {
|
|
14950
15623
|
color,
|
|
14951
15624
|
fontSize,
|
|
@@ -15030,7 +15703,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15030
15703
|
more.viewBox = viewBox;
|
|
15031
15704
|
}
|
|
15032
15705
|
|
|
15033
|
-
const classes = useUtilityClasses$
|
|
15706
|
+
const classes = useUtilityClasses$1L(ownerState);
|
|
15034
15707
|
return /*#__PURE__*/jsxRuntime_2(SvgIconRoot, _extends({
|
|
15035
15708
|
as: component,
|
|
15036
15709
|
className: clsx(classes.root, className),
|
|
@@ -15070,7 +15743,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15070
15743
|
className: PropTypes.string,
|
|
15071
15744
|
|
|
15072
15745
|
/**
|
|
15073
|
-
* The color of the component.
|
|
15746
|
+
* The color of the component.
|
|
15747
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
15748
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
15074
15749
|
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
15075
15750
|
* @default 'inherit'
|
|
15076
15751
|
*/
|
|
@@ -16165,7 +16840,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16165
16840
|
|
|
16166
16841
|
const _excluded$22 = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
|
|
16167
16842
|
|
|
16168
|
-
const useUtilityClasses$
|
|
16843
|
+
const useUtilityClasses$1K = ownerState => {
|
|
16169
16844
|
const {
|
|
16170
16845
|
orientation,
|
|
16171
16846
|
classes
|
|
@@ -16273,7 +16948,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16273
16948
|
collapsedSize: collapsedSizeProp
|
|
16274
16949
|
});
|
|
16275
16950
|
|
|
16276
|
-
const classes = useUtilityClasses$
|
|
16951
|
+
const classes = useUtilityClasses$1K(ownerState);
|
|
16277
16952
|
const theme = useTheme();
|
|
16278
16953
|
const timer = React__namespace.useRef();
|
|
16279
16954
|
const wrapperRef = React__namespace.useRef(null);
|
|
@@ -16587,7 +17262,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16587
17262
|
return (alphaValue / 100).toFixed(2);
|
|
16588
17263
|
};
|
|
16589
17264
|
|
|
16590
|
-
const useUtilityClasses$
|
|
17265
|
+
const useUtilityClasses$1J = ownerState => {
|
|
16591
17266
|
const {
|
|
16592
17267
|
square,
|
|
16593
17268
|
elevation,
|
|
@@ -16647,7 +17322,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16647
17322
|
variant
|
|
16648
17323
|
});
|
|
16649
17324
|
|
|
16650
|
-
const classes = useUtilityClasses$
|
|
17325
|
+
const classes = useUtilityClasses$1J(ownerState);
|
|
16651
17326
|
|
|
16652
17327
|
{
|
|
16653
17328
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -16754,7 +17429,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16754
17429
|
|
|
16755
17430
|
const _excluded$20 = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
|
|
16756
17431
|
|
|
16757
|
-
const useUtilityClasses$
|
|
17432
|
+
const useUtilityClasses$1I = ownerState => {
|
|
16758
17433
|
const {
|
|
16759
17434
|
classes,
|
|
16760
17435
|
square,
|
|
@@ -16898,7 +17573,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
16898
17573
|
expanded
|
|
16899
17574
|
});
|
|
16900
17575
|
|
|
16901
|
-
const classes = useUtilityClasses$
|
|
17576
|
+
const classes = useUtilityClasses$1I(ownerState);
|
|
16902
17577
|
return /*#__PURE__*/jsxRuntime_2(AccordionRoot, _extends({
|
|
16903
17578
|
className: clsx(classes.root, className),
|
|
16904
17579
|
ref: ref,
|
|
@@ -17023,7 +17698,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17023
17698
|
|
|
17024
17699
|
const _excluded$1$ = ["className", "disableSpacing"];
|
|
17025
17700
|
|
|
17026
|
-
const useUtilityClasses$
|
|
17701
|
+
const useUtilityClasses$1H = ownerState => {
|
|
17027
17702
|
const {
|
|
17028
17703
|
classes,
|
|
17029
17704
|
disableSpacing
|
|
@@ -17071,7 +17746,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17071
17746
|
disableSpacing
|
|
17072
17747
|
});
|
|
17073
17748
|
|
|
17074
|
-
const classes = useUtilityClasses$
|
|
17749
|
+
const classes = useUtilityClasses$1H(ownerState);
|
|
17075
17750
|
return /*#__PURE__*/jsxRuntime_1(AccordionActionsRoot, _extends({
|
|
17076
17751
|
className: clsx(classes.root, className),
|
|
17077
17752
|
ref: ref,
|
|
@@ -17122,7 +17797,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17122
17797
|
|
|
17123
17798
|
const _excluded$1_ = ["className"];
|
|
17124
17799
|
|
|
17125
|
-
const useUtilityClasses$
|
|
17800
|
+
const useUtilityClasses$1G = ownerState => {
|
|
17126
17801
|
const {
|
|
17127
17802
|
classes
|
|
17128
17803
|
} = ownerState;
|
|
@@ -17153,7 +17828,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17153
17828
|
other = _objectWithoutPropertiesLoose(props, _excluded$1_);
|
|
17154
17829
|
|
|
17155
17830
|
const ownerState = props;
|
|
17156
|
-
const classes = useUtilityClasses$
|
|
17831
|
+
const classes = useUtilityClasses$1G(ownerState);
|
|
17157
17832
|
return /*#__PURE__*/jsxRuntime_1(AccordionDetailsRoot, _extends({
|
|
17158
17833
|
className: clsx(classes.root, className),
|
|
17159
17834
|
ref: ref,
|
|
@@ -17626,7 +18301,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17626
18301
|
|
|
17627
18302
|
const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
17628
18303
|
|
|
17629
|
-
const useUtilityClasses$
|
|
18304
|
+
const useUtilityClasses$1F = ownerState => {
|
|
17630
18305
|
const {
|
|
17631
18306
|
disabled,
|
|
17632
18307
|
focusVisible,
|
|
@@ -17754,11 +18429,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17754
18429
|
buttonRef.current.focus();
|
|
17755
18430
|
}
|
|
17756
18431
|
}), []);
|
|
18432
|
+
const [mountedState, setMountedState] = React__namespace.useState(false);
|
|
18433
|
+
React__namespace.useEffect(() => {
|
|
18434
|
+
setMountedState(true);
|
|
18435
|
+
}, []);
|
|
18436
|
+
const enableTouchRipple = mountedState && !disableRipple && !disabled;
|
|
17757
18437
|
React__namespace.useEffect(() => {
|
|
17758
|
-
if (focusVisible && focusRipple && !disableRipple) {
|
|
18438
|
+
if (focusVisible && focusRipple && !disableRipple && mountedState) {
|
|
17759
18439
|
rippleRef.current.pulsate();
|
|
17760
18440
|
}
|
|
17761
|
-
}, [disableRipple, focusRipple, focusVisible]);
|
|
18441
|
+
}, [disableRipple, focusRipple, focusVisible, mountedState]);
|
|
17762
18442
|
|
|
17763
18443
|
function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
|
|
17764
18444
|
return useEventCallback(event => {
|
|
@@ -17902,11 +18582,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17902
18582
|
|
|
17903
18583
|
const handleOwnRef = useForkRef(focusVisibleRef, buttonRef);
|
|
17904
18584
|
const handleRef = useForkRef(ref, handleOwnRef);
|
|
17905
|
-
const [mountedState, setMountedState] = React__namespace.useState(false);
|
|
17906
|
-
React__namespace.useEffect(() => {
|
|
17907
|
-
setMountedState(true);
|
|
17908
|
-
}, []);
|
|
17909
|
-
const enableTouchRipple = mountedState && !disableRipple && !disabled;
|
|
17910
18585
|
|
|
17911
18586
|
{
|
|
17912
18587
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -17928,7 +18603,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
17928
18603
|
focusVisible
|
|
17929
18604
|
});
|
|
17930
18605
|
|
|
17931
|
-
const classes = useUtilityClasses$
|
|
18606
|
+
const classes = useUtilityClasses$1F(ownerState);
|
|
17932
18607
|
return /*#__PURE__*/jsxRuntime_2(ButtonBaseRoot, _extends({
|
|
17933
18608
|
as: ComponentProp,
|
|
17934
18609
|
className: clsx(classes.root, className),
|
|
@@ -18164,7 +18839,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18164
18839
|
|
|
18165
18840
|
const _excluded$1X = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
|
|
18166
18841
|
|
|
18167
|
-
const useUtilityClasses$
|
|
18842
|
+
const useUtilityClasses$1E = ownerState => {
|
|
18168
18843
|
const {
|
|
18169
18844
|
classes,
|
|
18170
18845
|
expanded,
|
|
@@ -18285,7 +18960,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18285
18960
|
disableGutters
|
|
18286
18961
|
});
|
|
18287
18962
|
|
|
18288
|
-
const classes = useUtilityClasses$
|
|
18963
|
+
const classes = useUtilityClasses$1E(ownerState);
|
|
18289
18964
|
return /*#__PURE__*/jsxRuntime_2(AccordionSummaryRoot, _extends({
|
|
18290
18965
|
focusRipple: false,
|
|
18291
18966
|
disableRipple: true,
|
|
@@ -18373,7 +19048,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18373
19048
|
|
|
18374
19049
|
const _excluded$1W = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
18375
19050
|
|
|
18376
|
-
const useUtilityClasses$
|
|
19051
|
+
const useUtilityClasses$1D = ownerState => {
|
|
18377
19052
|
const {
|
|
18378
19053
|
classes,
|
|
18379
19054
|
disabled,
|
|
@@ -18480,7 +19155,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18480
19155
|
size
|
|
18481
19156
|
});
|
|
18482
19157
|
|
|
18483
|
-
const classes = useUtilityClasses$
|
|
19158
|
+
const classes = useUtilityClasses$1D(ownerState);
|
|
18484
19159
|
return /*#__PURE__*/jsxRuntime_1(IconButtonRoot, _extends({
|
|
18485
19160
|
className: clsx(classes.root, className),
|
|
18486
19161
|
centerRipple: true,
|
|
@@ -18524,7 +19199,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18524
19199
|
className: PropTypes.string,
|
|
18525
19200
|
|
|
18526
19201
|
/**
|
|
18527
|
-
* The color of the component.
|
|
19202
|
+
* The color of the component.
|
|
19203
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
19204
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
18528
19205
|
* @default 'default'
|
|
18529
19206
|
*/
|
|
18530
19207
|
color: PropTypes
|
|
@@ -18601,7 +19278,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18601
19278
|
|
|
18602
19279
|
const _excluded$1V = ["action", "children", "className", "closeText", "color", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
|
|
18603
19280
|
|
|
18604
|
-
const useUtilityClasses$
|
|
19281
|
+
const useUtilityClasses$1C = ownerState => {
|
|
18605
19282
|
const {
|
|
18606
19283
|
variant,
|
|
18607
19284
|
color,
|
|
@@ -18725,7 +19402,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18725
19402
|
variant
|
|
18726
19403
|
});
|
|
18727
19404
|
|
|
18728
|
-
const classes = useUtilityClasses$
|
|
19405
|
+
const classes = useUtilityClasses$1C(ownerState);
|
|
18729
19406
|
return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
|
|
18730
19407
|
role: role,
|
|
18731
19408
|
elevation: 0,
|
|
@@ -18797,7 +19474,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18797
19474
|
closeText: PropTypes.string,
|
|
18798
19475
|
|
|
18799
19476
|
/**
|
|
18800
|
-
* The
|
|
19477
|
+
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
19478
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
19479
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
18801
19480
|
*/
|
|
18802
19481
|
color: PropTypes
|
|
18803
19482
|
/* @typescript-to-proptypes-ignore */
|
|
@@ -18865,7 +19544,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18865
19544
|
|
|
18866
19545
|
const _excluded$1U = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
18867
19546
|
|
|
18868
|
-
const useUtilityClasses$
|
|
19547
|
+
const useUtilityClasses$1B = ownerState => {
|
|
18869
19548
|
const {
|
|
18870
19549
|
align,
|
|
18871
19550
|
gutterBottom,
|
|
@@ -18966,7 +19645,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
18966
19645
|
});
|
|
18967
19646
|
|
|
18968
19647
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
18969
|
-
const classes = useUtilityClasses$
|
|
19648
|
+
const classes = useUtilityClasses$1B(ownerState);
|
|
18970
19649
|
return /*#__PURE__*/jsxRuntime_1(TypographyRoot, _extends({
|
|
18971
19650
|
as: Component,
|
|
18972
19651
|
ref: ref,
|
|
@@ -19076,7 +19755,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19076
19755
|
|
|
19077
19756
|
const _excluded$1T = ["className"];
|
|
19078
19757
|
|
|
19079
|
-
const useUtilityClasses$
|
|
19758
|
+
const useUtilityClasses$1A = ownerState => {
|
|
19080
19759
|
const {
|
|
19081
19760
|
classes
|
|
19082
19761
|
} = ownerState;
|
|
@@ -19110,7 +19789,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19110
19789
|
other = _objectWithoutPropertiesLoose(props, _excluded$1T);
|
|
19111
19790
|
|
|
19112
19791
|
const ownerState = props;
|
|
19113
|
-
const classes = useUtilityClasses$
|
|
19792
|
+
const classes = useUtilityClasses$1A(ownerState);
|
|
19114
19793
|
return /*#__PURE__*/jsxRuntime_1(AlertTitleRoot, _extends({
|
|
19115
19794
|
gutterBottom: true,
|
|
19116
19795
|
component: "div",
|
|
@@ -19157,7 +19836,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19157
19836
|
|
|
19158
19837
|
const _excluded$1S = ["className", "color", "enableColorOnDark", "position"];
|
|
19159
19838
|
|
|
19160
|
-
const useUtilityClasses$
|
|
19839
|
+
const useUtilityClasses$1z = ownerState => {
|
|
19161
19840
|
const {
|
|
19162
19841
|
color,
|
|
19163
19842
|
position,
|
|
@@ -19255,7 +19934,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19255
19934
|
enableColorOnDark
|
|
19256
19935
|
});
|
|
19257
19936
|
|
|
19258
|
-
const classes = useUtilityClasses$
|
|
19937
|
+
const classes = useUtilityClasses$1z(ownerState);
|
|
19259
19938
|
return /*#__PURE__*/jsxRuntime_1(AppBarRoot, _extends({
|
|
19260
19939
|
square: true,
|
|
19261
19940
|
component: "header",
|
|
@@ -19289,7 +19968,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19289
19968
|
className: PropTypes.string,
|
|
19290
19969
|
|
|
19291
19970
|
/**
|
|
19292
|
-
* The color of the component.
|
|
19971
|
+
* The color of the component.
|
|
19972
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
19973
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
19293
19974
|
* @default 'primary'
|
|
19294
19975
|
*/
|
|
19295
19976
|
color: PropTypes
|
|
@@ -19317,6 +19998,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19317
19998
|
} ;
|
|
19318
19999
|
var AppBar$1 = AppBar;
|
|
19319
20000
|
|
|
20001
|
+
const PopperRoot = styled$1(PopperUnstyled$1, {
|
|
20002
|
+
name: 'MuiPopper',
|
|
20003
|
+
slot: 'Root',
|
|
20004
|
+
overridesResolver: (props, styles) => styles.root
|
|
20005
|
+
})({});
|
|
19320
20006
|
/**
|
|
19321
20007
|
*
|
|
19322
20008
|
* Demos:
|
|
@@ -19329,13 +20015,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19329
20015
|
*
|
|
19330
20016
|
* - [Popper API](https://mui.com/api/popper/)
|
|
19331
20017
|
*/
|
|
20018
|
+
|
|
19332
20019
|
const Popper = /*#__PURE__*/React__namespace.forwardRef(function Popper(inProps, ref) {
|
|
19333
20020
|
const theme = useTheme$2();
|
|
19334
20021
|
const props = useThemeProps({
|
|
19335
20022
|
props: inProps,
|
|
19336
20023
|
name: 'MuiPopper'
|
|
19337
20024
|
});
|
|
19338
|
-
return /*#__PURE__*/jsxRuntime_1(
|
|
20025
|
+
return /*#__PURE__*/jsxRuntime_1(PopperRoot, _extends({
|
|
19339
20026
|
direction: theme == null ? void 0 : theme.direction
|
|
19340
20027
|
}, props, {
|
|
19341
20028
|
ref: ref
|
|
@@ -19439,6 +20126,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19439
20126
|
*/
|
|
19440
20127
|
popperRef: refType$1,
|
|
19441
20128
|
|
|
20129
|
+
/**
|
|
20130
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
20131
|
+
*/
|
|
20132
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
20133
|
+
|
|
19442
20134
|
/**
|
|
19443
20135
|
* Help supporting a react-transition-group/Transition component.
|
|
19444
20136
|
* @default false
|
|
@@ -19455,7 +20147,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19455
20147
|
|
|
19456
20148
|
const _excluded$1R = ["className", "color", "component", "disableGutters", "disableSticky", "inset"];
|
|
19457
20149
|
|
|
19458
|
-
const useUtilityClasses$
|
|
20150
|
+
const useUtilityClasses$1y = ownerState => {
|
|
19459
20151
|
const {
|
|
19460
20152
|
classes,
|
|
19461
20153
|
color,
|
|
@@ -19528,7 +20220,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19528
20220
|
inset
|
|
19529
20221
|
});
|
|
19530
20222
|
|
|
19531
|
-
const classes = useUtilityClasses$
|
|
20223
|
+
const classes = useUtilityClasses$1y(ownerState);
|
|
19532
20224
|
return /*#__PURE__*/jsxRuntime_1(ListSubheaderRoot, _extends({
|
|
19533
20225
|
as: component,
|
|
19534
20226
|
className: clsx(classes.root, className),
|
|
@@ -19608,7 +20300,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19608
20300
|
|
|
19609
20301
|
const _excluded$1Q = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
|
|
19610
20302
|
|
|
19611
|
-
const useUtilityClasses$
|
|
20303
|
+
const useUtilityClasses$1x = ownerState => {
|
|
19612
20304
|
const {
|
|
19613
20305
|
classes,
|
|
19614
20306
|
disabled,
|
|
@@ -19942,7 +20634,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
19942
20634
|
variant
|
|
19943
20635
|
});
|
|
19944
20636
|
|
|
19945
|
-
const classes = useUtilityClasses$
|
|
20637
|
+
const classes = useUtilityClasses$1x(ownerState);
|
|
19946
20638
|
const moreProps = component === ButtonBase$1 ? _extends({
|
|
19947
20639
|
component: ComponentProp || 'div',
|
|
19948
20640
|
focusVisibleClassName: classes.focusVisible
|
|
@@ -20041,7 +20733,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20041
20733
|
clickable: PropTypes.bool,
|
|
20042
20734
|
|
|
20043
20735
|
/**
|
|
20044
|
-
* The color of the component.
|
|
20736
|
+
* The color of the component.
|
|
20737
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
20738
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
20045
20739
|
* @default 'default'
|
|
20046
20740
|
*/
|
|
20047
20741
|
color: PropTypes
|
|
@@ -20155,7 +20849,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20155
20849
|
|
|
20156
20850
|
function GlobalStyles(props) {
|
|
20157
20851
|
return /*#__PURE__*/jsxRuntime_1(GlobalStyles$1, _extends({}, props, {
|
|
20158
|
-
defaultTheme: defaultTheme$
|
|
20852
|
+
defaultTheme: defaultTheme$3
|
|
20159
20853
|
}));
|
|
20160
20854
|
}
|
|
20161
20855
|
|
|
@@ -20224,7 +20918,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20224
20918
|
return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];
|
|
20225
20919
|
};
|
|
20226
20920
|
|
|
20227
|
-
const useUtilityClasses$
|
|
20921
|
+
const useUtilityClasses$1w = ownerState => {
|
|
20228
20922
|
const {
|
|
20229
20923
|
classes,
|
|
20230
20924
|
color,
|
|
@@ -20636,7 +21330,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20636
21330
|
type
|
|
20637
21331
|
});
|
|
20638
21332
|
|
|
20639
|
-
const classes = useUtilityClasses$
|
|
21333
|
+
const classes = useUtilityClasses$1w(ownerState);
|
|
20640
21334
|
const Root = components.Root || InputBaseRoot;
|
|
20641
21335
|
const rootProps = componentsProps.root || {};
|
|
20642
21336
|
const Input = components.Input || InputBaseComponent;
|
|
@@ -20722,7 +21416,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20722
21416
|
className: PropTypes.string,
|
|
20723
21417
|
|
|
20724
21418
|
/**
|
|
20725
|
-
* The color of the component.
|
|
21419
|
+
* The color of the component.
|
|
21420
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
21421
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
20726
21422
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
20727
21423
|
*/
|
|
20728
21424
|
color: PropTypes
|
|
@@ -20964,7 +21660,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
20964
21660
|
|
|
20965
21661
|
const _excluded$1O = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
|
|
20966
21662
|
|
|
20967
|
-
const useUtilityClasses$
|
|
21663
|
+
const useUtilityClasses$1v = ownerState => {
|
|
20968
21664
|
const {
|
|
20969
21665
|
classes,
|
|
20970
21666
|
disablePortal,
|
|
@@ -21387,7 +22083,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21387
22083
|
size
|
|
21388
22084
|
});
|
|
21389
22085
|
|
|
21390
|
-
const classes = useUtilityClasses$
|
|
22086
|
+
const classes = useUtilityClasses$1v(ownerState);
|
|
21391
22087
|
let startAdornment;
|
|
21392
22088
|
|
|
21393
22089
|
if (multiple && value.length > 0) {
|
|
@@ -21697,7 +22393,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
21697
22393
|
disablePortal: PropTypes.bool,
|
|
21698
22394
|
|
|
21699
22395
|
/**
|
|
21700
|
-
* A
|
|
22396
|
+
* A function that determines the filtered options to be rendered on search.
|
|
21701
22397
|
*
|
|
21702
22398
|
* @param {T[]} options The options to render.
|
|
21703
22399
|
* @param {object} state The state of the component.
|
|
@@ -22023,7 +22719,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22023
22719
|
|
|
22024
22720
|
const _excluded$1N = ["alt", "children", "className", "component", "imgProps", "sizes", "src", "srcSet", "variant"];
|
|
22025
22721
|
|
|
22026
|
-
const useUtilityClasses$
|
|
22722
|
+
const useUtilityClasses$1u = ownerState => {
|
|
22027
22723
|
const {
|
|
22028
22724
|
classes,
|
|
22029
22725
|
variant,
|
|
@@ -22176,7 +22872,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22176
22872
|
variant
|
|
22177
22873
|
});
|
|
22178
22874
|
|
|
22179
|
-
const classes = useUtilityClasses$
|
|
22875
|
+
const classes = useUtilityClasses$1u(ownerState);
|
|
22180
22876
|
|
|
22181
22877
|
if (hasImgNotFailing) {
|
|
22182
22878
|
children = /*#__PURE__*/jsxRuntime_1(AvatarImg, _extends({
|
|
@@ -22291,7 +22987,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22291
22987
|
medium: null
|
|
22292
22988
|
};
|
|
22293
22989
|
|
|
22294
|
-
const useUtilityClasses$
|
|
22990
|
+
const useUtilityClasses$1t = ownerState => {
|
|
22295
22991
|
const {
|
|
22296
22992
|
classes
|
|
22297
22993
|
} = ownerState;
|
|
@@ -22363,7 +23059,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22363
23059
|
variant
|
|
22364
23060
|
});
|
|
22365
23061
|
|
|
22366
|
-
const classes = useUtilityClasses$
|
|
23062
|
+
const classes = useUtilityClasses$1t(ownerState);
|
|
22367
23063
|
const children = React__namespace.Children.toArray(childrenProp).filter(child => {
|
|
22368
23064
|
{
|
|
22369
23065
|
if (reactIs_2(child)) {
|
|
@@ -22695,14 +23391,23 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22695
23391
|
} ;
|
|
22696
23392
|
var Fade$1 = Fade;
|
|
22697
23393
|
|
|
22698
|
-
|
|
22699
|
-
|
|
23394
|
+
function getBackdropUtilityClass(slot) {
|
|
23395
|
+
return generateUtilityClass('MuiBackdrop', slot);
|
|
23396
|
+
}
|
|
23397
|
+
const backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
23398
|
+
var backdropClasses$1 = backdropClasses;
|
|
23399
|
+
|
|
23400
|
+
const _excluded$1K = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
|
|
22700
23401
|
|
|
22701
|
-
const
|
|
23402
|
+
const useUtilityClasses$1s = ownerState => {
|
|
22702
23403
|
const {
|
|
22703
|
-
classes
|
|
23404
|
+
classes,
|
|
23405
|
+
invisible
|
|
22704
23406
|
} = ownerState;
|
|
22705
|
-
|
|
23407
|
+
const slots = {
|
|
23408
|
+
root: ['root', invisible && 'invisible']
|
|
23409
|
+
};
|
|
23410
|
+
return composeClasses(slots, getBackdropUtilityClass, classes);
|
|
22706
23411
|
};
|
|
22707
23412
|
|
|
22708
23413
|
const BackdropRoot = styled$1('div', {
|
|
@@ -22731,7 +23436,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22731
23436
|
backgroundColor: 'transparent'
|
|
22732
23437
|
}));
|
|
22733
23438
|
const Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inProps, ref) {
|
|
22734
|
-
var _componentsProps$root;
|
|
23439
|
+
var _components$Root, _componentsProps$root;
|
|
22735
23440
|
|
|
22736
23441
|
const props = useThemeProps({
|
|
22737
23442
|
props: inProps,
|
|
@@ -22740,6 +23445,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22740
23445
|
|
|
22741
23446
|
const {
|
|
22742
23447
|
children,
|
|
23448
|
+
component = 'div',
|
|
22743
23449
|
components = {},
|
|
22744
23450
|
componentsProps = {},
|
|
22745
23451
|
className,
|
|
@@ -22752,25 +23458,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22752
23458
|
other = _objectWithoutPropertiesLoose(props, _excluded$1K);
|
|
22753
23459
|
|
|
22754
23460
|
const ownerState = _extends({}, props, {
|
|
23461
|
+
component,
|
|
22755
23462
|
invisible
|
|
22756
23463
|
});
|
|
22757
23464
|
|
|
22758
|
-
const classes =
|
|
23465
|
+
const classes = useUtilityClasses$1s(ownerState);
|
|
22759
23466
|
return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
|
|
22760
23467
|
in: open,
|
|
22761
23468
|
timeout: transitionDuration
|
|
22762
23469
|
}, other, {
|
|
22763
|
-
children: /*#__PURE__*/jsxRuntime_1(
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
}, components),
|
|
22769
|
-
componentsProps: {
|
|
22770
|
-
root: _extends({}, componentsProps.root, (!components.Root || !isHostComponent(components.Root)) && {
|
|
22771
|
-
ownerState: _extends({}, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState)
|
|
22772
|
-
})
|
|
22773
|
-
},
|
|
23470
|
+
children: /*#__PURE__*/jsxRuntime_1(BackdropRoot, {
|
|
23471
|
+
"aria-hidden": true,
|
|
23472
|
+
as: (_components$Root = components.Root) != null ? _components$Root : component,
|
|
23473
|
+
className: clsx(classes.root, className),
|
|
23474
|
+
ownerState: _extends({}, ownerState, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState),
|
|
22774
23475
|
classes: classes,
|
|
22775
23476
|
ref: ref,
|
|
22776
23477
|
children: children
|
|
@@ -22800,6 +23501,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22800
23501
|
*/
|
|
22801
23502
|
className: PropTypes.string,
|
|
22802
23503
|
|
|
23504
|
+
/**
|
|
23505
|
+
* The component used for the root node.
|
|
23506
|
+
* Either a string to use a HTML element or a component.
|
|
23507
|
+
*/
|
|
23508
|
+
component: PropTypes.elementType,
|
|
23509
|
+
|
|
22803
23510
|
/**
|
|
22804
23511
|
* The components used for each slot inside the Backdrop.
|
|
22805
23512
|
* Either a string to use a HTML element or a component.
|
|
@@ -22852,9 +23559,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22852
23559
|
|
|
22853
23560
|
var shouldSpreadAdditionalProps$1 = shouldSpreadAdditionalProps;
|
|
22854
23561
|
|
|
22855
|
-
|
|
22856
|
-
|
|
22857
|
-
|
|
23562
|
+
function getBadgeUtilityClass(slot) {
|
|
23563
|
+
return generateUtilityClass('MuiBadge', slot);
|
|
23564
|
+
}
|
|
23565
|
+
const badgeClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft', 'invisible', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular', // TODO: v6 remove the overlap value from these class keys
|
|
23566
|
+
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
|
|
23567
|
+
var badgeClasses$1 = badgeClasses;
|
|
23568
|
+
|
|
23569
|
+
const _excluded$1J = ["anchorOrigin", "className", "component", "components", "componentsProps", "overlap", "color", "invisible", "max", "badgeContent", "showZero", "variant"];
|
|
22858
23570
|
const RADIUS_STANDARD = 10;
|
|
22859
23571
|
const RADIUS_DOT = 4;
|
|
22860
23572
|
|
|
@@ -22862,12 +23574,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22862
23574
|
const {
|
|
22863
23575
|
color,
|
|
22864
23576
|
anchorOrigin,
|
|
23577
|
+
invisible,
|
|
22865
23578
|
overlap,
|
|
23579
|
+
variant,
|
|
22866
23580
|
classes = {}
|
|
22867
23581
|
} = ownerState;
|
|
22868
|
-
return
|
|
22869
|
-
|
|
22870
|
-
|
|
23582
|
+
return {
|
|
23583
|
+
root: clsx(classes.root, 'root'),
|
|
23584
|
+
badge: clsx(classes.badge, getBadgeUtilityClass('badge'), getBadgeUtilityClass(variant), `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, getBadgeUtilityClass(`anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`), getBadgeUtilityClass(`overlap${capitalize(overlap)}`), color !== 'default' && [getBadgeUtilityClass(`color${capitalize(color)}`), classes[`color${capitalize(color)}`]], invisible && getBadgeUtilityClass('invisible'))
|
|
23585
|
+
};
|
|
22871
23586
|
};
|
|
22872
23587
|
|
|
22873
23588
|
const BadgeRoot = styled$1('span', {
|
|
@@ -22929,7 +23644,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22929
23644
|
right: 0,
|
|
22930
23645
|
transform: 'scale(1) translate(50%, -50%)',
|
|
22931
23646
|
transformOrigin: '100% 0%',
|
|
22932
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23647
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22933
23648
|
transform: 'scale(0) translate(50%, -50%)'
|
|
22934
23649
|
}
|
|
22935
23650
|
}, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular' && {
|
|
@@ -22937,7 +23652,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22937
23652
|
right: 0,
|
|
22938
23653
|
transform: 'scale(1) translate(50%, 50%)',
|
|
22939
23654
|
transformOrigin: '100% 100%',
|
|
22940
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23655
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22941
23656
|
transform: 'scale(0) translate(50%, 50%)'
|
|
22942
23657
|
}
|
|
22943
23658
|
}, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && {
|
|
@@ -22945,7 +23660,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22945
23660
|
left: 0,
|
|
22946
23661
|
transform: 'scale(1) translate(-50%, -50%)',
|
|
22947
23662
|
transformOrigin: '0% 0%',
|
|
22948
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23663
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22949
23664
|
transform: 'scale(0) translate(-50%, -50%)'
|
|
22950
23665
|
}
|
|
22951
23666
|
}, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular' && {
|
|
@@ -22953,7 +23668,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22953
23668
|
left: 0,
|
|
22954
23669
|
transform: 'scale(1) translate(-50%, 50%)',
|
|
22955
23670
|
transformOrigin: '0% 100%',
|
|
22956
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23671
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22957
23672
|
transform: 'scale(0) translate(-50%, 50%)'
|
|
22958
23673
|
}
|
|
22959
23674
|
}, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && {
|
|
@@ -22961,7 +23676,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22961
23676
|
right: '14%',
|
|
22962
23677
|
transform: 'scale(1) translate(50%, -50%)',
|
|
22963
23678
|
transformOrigin: '100% 0%',
|
|
22964
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23679
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22965
23680
|
transform: 'scale(0) translate(50%, -50%)'
|
|
22966
23681
|
}
|
|
22967
23682
|
}, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular' && {
|
|
@@ -22969,7 +23684,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22969
23684
|
right: '14%',
|
|
22970
23685
|
transform: 'scale(1) translate(50%, 50%)',
|
|
22971
23686
|
transformOrigin: '100% 100%',
|
|
22972
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23687
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22973
23688
|
transform: 'scale(0) translate(50%, 50%)'
|
|
22974
23689
|
}
|
|
22975
23690
|
}, ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && {
|
|
@@ -22977,7 +23692,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22977
23692
|
left: '14%',
|
|
22978
23693
|
transform: 'scale(1) translate(-50%, -50%)',
|
|
22979
23694
|
transformOrigin: '0% 0%',
|
|
22980
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23695
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22981
23696
|
transform: 'scale(0) translate(-50%, -50%)'
|
|
22982
23697
|
}
|
|
22983
23698
|
}, ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular' && {
|
|
@@ -22985,7 +23700,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22985
23700
|
left: '14%',
|
|
22986
23701
|
transform: 'scale(1) translate(-50%, 50%)',
|
|
22987
23702
|
transformOrigin: '0% 100%',
|
|
22988
|
-
[`&.${badgeClasses.invisible}`]: {
|
|
23703
|
+
[`&.${badgeClasses$1.invisible}`]: {
|
|
22989
23704
|
transform: 'scale(0) translate(-50%, 50%)'
|
|
22990
23705
|
}
|
|
22991
23706
|
}, ownerState.invisible && {
|
|
@@ -22995,7 +23710,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
22995
23710
|
})
|
|
22996
23711
|
}));
|
|
22997
23712
|
const Badge = /*#__PURE__*/React__namespace.forwardRef(function Badge(inProps, ref) {
|
|
22998
|
-
var _componentsProps$root, _componentsProps$badg;
|
|
23713
|
+
var _componentsProps$root, _componentsProps$root2, _componentsProps$badg, _componentsProps$badg2;
|
|
22999
23714
|
|
|
23000
23715
|
const props = useThemeProps({
|
|
23001
23716
|
props: inProps,
|
|
@@ -23007,12 +23722,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23007
23722
|
vertical: 'top',
|
|
23008
23723
|
horizontal: 'right'
|
|
23009
23724
|
},
|
|
23725
|
+
className,
|
|
23010
23726
|
component = 'span',
|
|
23011
23727
|
components = {},
|
|
23012
23728
|
componentsProps = {},
|
|
23013
23729
|
overlap: overlapProp = 'rectangular',
|
|
23014
23730
|
color: colorProp = 'default',
|
|
23015
23731
|
invisible: invisibleProp = false,
|
|
23732
|
+
max,
|
|
23016
23733
|
badgeContent: badgeContentProp,
|
|
23017
23734
|
showZero = false,
|
|
23018
23735
|
variant: variantProp = 'standard'
|
|
@@ -23022,7 +23739,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23022
23739
|
const prevProps = usePreviousProps$1({
|
|
23023
23740
|
anchorOrigin: anchorOriginProp,
|
|
23024
23741
|
color: colorProp,
|
|
23025
|
-
overlap: overlapProp
|
|
23742
|
+
overlap: overlapProp,
|
|
23743
|
+
variant: variantProp
|
|
23026
23744
|
});
|
|
23027
23745
|
let invisible = invisibleProp;
|
|
23028
23746
|
|
|
@@ -23033,44 +23751,57 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23033
23751
|
const {
|
|
23034
23752
|
color = colorProp,
|
|
23035
23753
|
overlap = overlapProp,
|
|
23036
|
-
anchorOrigin = anchorOriginProp
|
|
23754
|
+
anchorOrigin = anchorOriginProp,
|
|
23755
|
+
variant = variantProp
|
|
23037
23756
|
} = invisible ? prevProps : props;
|
|
23038
23757
|
|
|
23039
23758
|
const ownerState = _extends({}, props, {
|
|
23040
23759
|
anchorOrigin,
|
|
23041
23760
|
invisible,
|
|
23042
23761
|
color,
|
|
23043
|
-
overlap
|
|
23762
|
+
overlap,
|
|
23763
|
+
variant
|
|
23044
23764
|
});
|
|
23045
23765
|
|
|
23046
23766
|
const classes = extendUtilityClasses$2(ownerState);
|
|
23767
|
+
let displayValue;
|
|
23768
|
+
|
|
23769
|
+
if (variant !== 'dot') {
|
|
23770
|
+
displayValue = badgeContentProp && Number(badgeContentProp) > max ? `${max}+` : badgeContentProp;
|
|
23771
|
+
}
|
|
23772
|
+
|
|
23047
23773
|
return /*#__PURE__*/jsxRuntime_1(BadgeUnstyled$1, _extends({
|
|
23048
|
-
anchorOrigin: anchorOrigin,
|
|
23049
23774
|
invisible: invisibleProp,
|
|
23050
|
-
badgeContent:
|
|
23775
|
+
badgeContent: displayValue,
|
|
23051
23776
|
showZero: showZero,
|
|
23052
|
-
|
|
23777
|
+
max: max
|
|
23053
23778
|
}, other, {
|
|
23054
23779
|
components: _extends({
|
|
23055
23780
|
Root: BadgeRoot,
|
|
23056
23781
|
Badge: BadgeBadge
|
|
23057
23782
|
}, components),
|
|
23783
|
+
className: clsx(className, classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className),
|
|
23058
23784
|
componentsProps: {
|
|
23059
23785
|
root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
|
|
23060
23786
|
as: component,
|
|
23061
|
-
ownerState: _extends({}, (_componentsProps$
|
|
23787
|
+
ownerState: _extends({}, (_componentsProps$root2 = componentsProps.root) == null ? void 0 : _componentsProps$root2.ownerState, {
|
|
23788
|
+
anchorOrigin,
|
|
23062
23789
|
color,
|
|
23063
|
-
overlap
|
|
23790
|
+
overlap,
|
|
23791
|
+
variant
|
|
23064
23792
|
})
|
|
23065
23793
|
}),
|
|
23066
|
-
badge: _extends({}, componentsProps.badge,
|
|
23067
|
-
|
|
23794
|
+
badge: _extends({}, componentsProps.badge, {
|
|
23795
|
+
className: clsx(classes.badge, (_componentsProps$badg = componentsProps.badge) == null ? void 0 : _componentsProps$badg.className)
|
|
23796
|
+
}, shouldSpreadAdditionalProps$1(components.Badge) && {
|
|
23797
|
+
ownerState: _extends({}, (_componentsProps$badg2 = componentsProps.badge) == null ? void 0 : _componentsProps$badg2.ownerState, {
|
|
23798
|
+
anchorOrigin,
|
|
23068
23799
|
color,
|
|
23069
|
-
overlap
|
|
23800
|
+
overlap,
|
|
23801
|
+
variant
|
|
23070
23802
|
})
|
|
23071
23803
|
})
|
|
23072
23804
|
},
|
|
23073
|
-
classes: classes,
|
|
23074
23805
|
ref: ref
|
|
23075
23806
|
}));
|
|
23076
23807
|
});
|
|
@@ -23110,7 +23841,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23110
23841
|
classes: PropTypes.object,
|
|
23111
23842
|
|
|
23112
23843
|
/**
|
|
23113
|
-
*
|
|
23844
|
+
* @ignore
|
|
23845
|
+
*/
|
|
23846
|
+
className: PropTypes.string,
|
|
23847
|
+
|
|
23848
|
+
/**
|
|
23849
|
+
* The color of the component.
|
|
23850
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
23851
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
23114
23852
|
* @default 'default'
|
|
23115
23853
|
*/
|
|
23116
23854
|
color: PropTypes
|
|
@@ -23496,7 +24234,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23496
24234
|
} ;
|
|
23497
24235
|
var BottomNavigationAction$1 = BottomNavigationAction;
|
|
23498
24236
|
|
|
23499
|
-
const defaultTheme = createTheme();
|
|
24237
|
+
const defaultTheme = createTheme$1();
|
|
23500
24238
|
/**
|
|
23501
24239
|
* @ignore - do not document.
|
|
23502
24240
|
*/
|
|
@@ -23863,106 +24601,111 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
23863
24601
|
})(({
|
|
23864
24602
|
theme,
|
|
23865
24603
|
ownerState
|
|
23866
|
-
}) =>
|
|
23867
|
-
|
|
23868
|
-
|
|
23869
|
-
|
|
23870
|
-
|
|
23871
|
-
|
|
23872
|
-
|
|
23873
|
-
|
|
23874
|
-
|
|
23875
|
-
|
|
23876
|
-
|
|
23877
|
-
|
|
23878
|
-
backgroundColor:
|
|
23879
|
-
|
|
24604
|
+
}) => {
|
|
24605
|
+
var _theme$palette$getCon, _theme$palette;
|
|
24606
|
+
|
|
24607
|
+
return _extends({}, theme.typography.button, {
|
|
24608
|
+
minWidth: 64,
|
|
24609
|
+
padding: '6px 16px',
|
|
24610
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
24611
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
|
24612
|
+
duration: theme.transitions.duration.short
|
|
24613
|
+
}),
|
|
24614
|
+
'&:hover': _extends({
|
|
24615
|
+
textDecoration: 'none',
|
|
24616
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
24617
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24618
|
+
'@media (hover: none)': {
|
|
24619
|
+
backgroundColor: 'transparent'
|
|
24620
|
+
}
|
|
24621
|
+
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
24622
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
24623
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24624
|
+
'@media (hover: none)': {
|
|
24625
|
+
backgroundColor: 'transparent'
|
|
24626
|
+
}
|
|
24627
|
+
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
24628
|
+
border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
|
|
24629
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
24630
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24631
|
+
'@media (hover: none)': {
|
|
24632
|
+
backgroundColor: 'transparent'
|
|
24633
|
+
}
|
|
24634
|
+
}, ownerState.variant === 'contained' && {
|
|
24635
|
+
backgroundColor: (theme.vars || theme).palette.grey.A100,
|
|
24636
|
+
boxShadow: (theme.vars || theme).shadows[4],
|
|
24637
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24638
|
+
'@media (hover: none)': {
|
|
24639
|
+
boxShadow: (theme.vars || theme).shadows[2],
|
|
24640
|
+
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
24641
|
+
}
|
|
24642
|
+
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
24643
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
24644
|
+
// Reset on touch devices, it doesn't add specificity
|
|
24645
|
+
'@media (hover: none)': {
|
|
24646
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
24647
|
+
}
|
|
24648
|
+
}),
|
|
24649
|
+
'&:active': _extends({}, ownerState.variant === 'contained' && {
|
|
24650
|
+
boxShadow: (theme.vars || theme).shadows[8]
|
|
24651
|
+
}),
|
|
24652
|
+
[`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
|
|
24653
|
+
boxShadow: (theme.vars || theme).shadows[6]
|
|
24654
|
+
}),
|
|
24655
|
+
[`&.${buttonClasses$1.disabled}`]: _extends({
|
|
24656
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
24657
|
+
}, ownerState.variant === 'outlined' && {
|
|
24658
|
+
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
24659
|
+
}, ownerState.variant === 'outlined' && ownerState.color === 'secondary' && {
|
|
24660
|
+
border: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
24661
|
+
}, ownerState.variant === 'contained' && {
|
|
24662
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
24663
|
+
boxShadow: (theme.vars || theme).shadows[0],
|
|
24664
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
24665
|
+
})
|
|
24666
|
+
}, ownerState.variant === 'text' && {
|
|
24667
|
+
padding: '6px 8px'
|
|
23880
24668
|
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
23885
|
-
}
|
|
24669
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
24670
|
+
}, ownerState.variant === 'outlined' && {
|
|
24671
|
+
padding: '5px 15px',
|
|
24672
|
+
border: '1px solid currentColor'
|
|
23886
24673
|
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
23887
|
-
|
|
23888
|
-
|
|
23889
|
-
// Reset on touch devices, it doesn't add specificity
|
|
23890
|
-
'@media (hover: none)': {
|
|
23891
|
-
backgroundColor: 'transparent'
|
|
23892
|
-
}
|
|
24674
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
24675
|
+
border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
|
|
23893
24676
|
}, ownerState.variant === 'contained' && {
|
|
23894
|
-
|
|
23895
|
-
|
|
23896
|
-
|
|
23897
|
-
|
|
23898
|
-
boxShadow: theme.shadows[2],
|
|
23899
|
-
backgroundColor: theme.palette.grey[300]
|
|
23900
|
-
}
|
|
24677
|
+
color: theme.vars ? // this is safe because grey does not change between default light/dark mode
|
|
24678
|
+
theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
|
24679
|
+
backgroundColor: (theme.vars || theme).palette.grey[300],
|
|
24680
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
23901
24681
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
}
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
}
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
}
|
|
23914
|
-
|
|
23915
|
-
|
|
23916
|
-
}, ownerState.variant === 'outlined' && {
|
|
23917
|
-
|
|
23918
|
-
|
|
23919
|
-
|
|
23920
|
-
|
|
23921
|
-
|
|
23922
|
-
|
|
23923
|
-
|
|
23924
|
-
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23928
|
-
|
|
23929
|
-
}, ownerState.variant === 'outlined' && {
|
|
23930
|
-
padding: '5px 15px',
|
|
23931
|
-
border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
23932
|
-
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
|
23933
|
-
color: theme.palette[ownerState.color].main,
|
|
23934
|
-
border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
|
|
23935
|
-
}, ownerState.variant === 'contained' && {
|
|
23936
|
-
color: theme.palette.getContrastText(theme.palette.grey[300]),
|
|
23937
|
-
backgroundColor: theme.palette.grey[300],
|
|
23938
|
-
boxShadow: theme.shadows[2]
|
|
23939
|
-
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
23940
|
-
color: theme.palette[ownerState.color].contrastText,
|
|
23941
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
23942
|
-
}, ownerState.color === 'inherit' && {
|
|
23943
|
-
color: 'inherit',
|
|
23944
|
-
borderColor: 'currentColor'
|
|
23945
|
-
}, ownerState.size === 'small' && ownerState.variant === 'text' && {
|
|
23946
|
-
padding: '4px 5px',
|
|
23947
|
-
fontSize: theme.typography.pxToRem(13)
|
|
23948
|
-
}, ownerState.size === 'large' && ownerState.variant === 'text' && {
|
|
23949
|
-
padding: '8px 11px',
|
|
23950
|
-
fontSize: theme.typography.pxToRem(15)
|
|
23951
|
-
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
|
23952
|
-
padding: '3px 9px',
|
|
23953
|
-
fontSize: theme.typography.pxToRem(13)
|
|
23954
|
-
}, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
|
|
23955
|
-
padding: '7px 21px',
|
|
23956
|
-
fontSize: theme.typography.pxToRem(15)
|
|
23957
|
-
}, ownerState.size === 'small' && ownerState.variant === 'contained' && {
|
|
23958
|
-
padding: '4px 10px',
|
|
23959
|
-
fontSize: theme.typography.pxToRem(13)
|
|
23960
|
-
}, ownerState.size === 'large' && ownerState.variant === 'contained' && {
|
|
23961
|
-
padding: '8px 22px',
|
|
23962
|
-
fontSize: theme.typography.pxToRem(15)
|
|
23963
|
-
}, ownerState.fullWidth && {
|
|
23964
|
-
width: '100%'
|
|
23965
|
-
}), ({
|
|
24682
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
24683
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
24684
|
+
}, ownerState.color === 'inherit' && {
|
|
24685
|
+
color: 'inherit',
|
|
24686
|
+
borderColor: 'currentColor'
|
|
24687
|
+
}, ownerState.size === 'small' && ownerState.variant === 'text' && {
|
|
24688
|
+
padding: '4px 5px',
|
|
24689
|
+
fontSize: theme.typography.pxToRem(13)
|
|
24690
|
+
}, ownerState.size === 'large' && ownerState.variant === 'text' && {
|
|
24691
|
+
padding: '8px 11px',
|
|
24692
|
+
fontSize: theme.typography.pxToRem(15)
|
|
24693
|
+
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
|
24694
|
+
padding: '3px 9px',
|
|
24695
|
+
fontSize: theme.typography.pxToRem(13)
|
|
24696
|
+
}, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
|
|
24697
|
+
padding: '7px 21px',
|
|
24698
|
+
fontSize: theme.typography.pxToRem(15)
|
|
24699
|
+
}, ownerState.size === 'small' && ownerState.variant === 'contained' && {
|
|
24700
|
+
padding: '4px 10px',
|
|
24701
|
+
fontSize: theme.typography.pxToRem(13)
|
|
24702
|
+
}, ownerState.size === 'large' && ownerState.variant === 'contained' && {
|
|
24703
|
+
padding: '8px 22px',
|
|
24704
|
+
fontSize: theme.typography.pxToRem(15)
|
|
24705
|
+
}, ownerState.fullWidth && {
|
|
24706
|
+
width: '100%'
|
|
24707
|
+
});
|
|
24708
|
+
}, ({
|
|
23966
24709
|
ownerState
|
|
23967
24710
|
}) => ownerState.disableElevation && {
|
|
23968
24711
|
boxShadow: 'none',
|
|
@@ -24106,7 +24849,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24106
24849
|
className: PropTypes.string,
|
|
24107
24850
|
|
|
24108
24851
|
/**
|
|
24109
|
-
* The color of the component.
|
|
24852
|
+
* The color of the component.
|
|
24853
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
24854
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
24110
24855
|
* @default 'primary'
|
|
24111
24856
|
*/
|
|
24112
24857
|
color: PropTypes
|
|
@@ -24402,7 +25147,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
24402
25147
|
className: PropTypes.string,
|
|
24403
25148
|
|
|
24404
25149
|
/**
|
|
24405
|
-
* The color of the component.
|
|
25150
|
+
* The color of the component.
|
|
25151
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
25152
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
24406
25153
|
* @default 'primary'
|
|
24407
25154
|
*/
|
|
24408
25155
|
color: PropTypes
|
|
@@ -25680,7 +26427,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25680
26427
|
classes: PropTypes.object,
|
|
25681
26428
|
|
|
25682
26429
|
/**
|
|
25683
|
-
* The color of the component.
|
|
26430
|
+
* The color of the component.
|
|
26431
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
26432
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
25684
26433
|
* @default 'primary'
|
|
25685
26434
|
*/
|
|
25686
26435
|
color: PropTypes
|
|
@@ -25979,7 +26728,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
25979
26728
|
className: PropTypes.string,
|
|
25980
26729
|
|
|
25981
26730
|
/**
|
|
25982
|
-
* The color of the component.
|
|
26731
|
+
* The color of the component.
|
|
26732
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
26733
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
25983
26734
|
* @default 'primary'
|
|
25984
26735
|
*/
|
|
25985
26736
|
color: PropTypes
|
|
@@ -28495,7 +29246,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28495
29246
|
className: PropTypes.string,
|
|
28496
29247
|
|
|
28497
29248
|
/**
|
|
28498
|
-
* The color of the component.
|
|
29249
|
+
* The color of the component.
|
|
29250
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
29251
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
28499
29252
|
* @default 'default'
|
|
28500
29253
|
*/
|
|
28501
29254
|
color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -28784,7 +29537,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
28784
29537
|
classes: PropTypes.object,
|
|
28785
29538
|
|
|
28786
29539
|
/**
|
|
28787
|
-
* The color of the component.
|
|
29540
|
+
* The color of the component.
|
|
29541
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
29542
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
28788
29543
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
28789
29544
|
*/
|
|
28790
29545
|
color: PropTypes
|
|
@@ -29197,7 +29952,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29197
29952
|
className: PropTypes.string,
|
|
29198
29953
|
|
|
29199
29954
|
/**
|
|
29200
|
-
* The color of the component.
|
|
29955
|
+
* The color of the component.
|
|
29956
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
29957
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
29201
29958
|
* @default 'primary'
|
|
29202
29959
|
*/
|
|
29203
29960
|
color: PropTypes
|
|
@@ -29358,7 +30115,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29358
30115
|
control,
|
|
29359
30116
|
disabled: disabledProp,
|
|
29360
30117
|
disableTypography,
|
|
29361
|
-
label,
|
|
30118
|
+
label: labelProp,
|
|
29362
30119
|
labelPlacement = 'end'
|
|
29363
30120
|
} = props,
|
|
29364
30121
|
other = _objectWithoutPropertiesLoose(props, _excluded$1h);
|
|
@@ -29390,23 +30147,28 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29390
30147
|
|
|
29391
30148
|
const ownerState = _extends({}, props, {
|
|
29392
30149
|
disabled,
|
|
29393
|
-
label,
|
|
29394
30150
|
labelPlacement,
|
|
29395
30151
|
error: fcs.error
|
|
29396
30152
|
});
|
|
29397
30153
|
|
|
29398
30154
|
const classes = useUtilityClasses$12(ownerState);
|
|
30155
|
+
let label = labelProp;
|
|
30156
|
+
|
|
30157
|
+
if (label != null && label.type !== Typography$1 && !disableTypography) {
|
|
30158
|
+
label = /*#__PURE__*/jsxRuntime_1(Typography$1, _extends({
|
|
30159
|
+
component: "span",
|
|
30160
|
+
className: classes.label
|
|
30161
|
+
}, componentsProps.typography, {
|
|
30162
|
+
children: label
|
|
30163
|
+
}));
|
|
30164
|
+
}
|
|
30165
|
+
|
|
29399
30166
|
return /*#__PURE__*/jsxRuntime_2(FormControlLabelRoot, _extends({
|
|
29400
30167
|
className: clsx(classes.root, className),
|
|
29401
30168
|
ownerState: ownerState,
|
|
29402
30169
|
ref: ref
|
|
29403
30170
|
}, other, {
|
|
29404
|
-
children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label
|
|
29405
|
-
component: "span",
|
|
29406
|
-
className: classes.label
|
|
29407
|
-
}, componentsProps.typography, {
|
|
29408
|
-
children: label
|
|
29409
|
-
}))]
|
|
30171
|
+
children: [/*#__PURE__*/React__namespace.cloneElement(control, controlProps), label]
|
|
29410
30172
|
}));
|
|
29411
30173
|
});
|
|
29412
30174
|
FormControlLabel.propTypes
|
|
@@ -29463,7 +30225,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29463
30225
|
/**
|
|
29464
30226
|
* A text or an element to be used in an enclosing label element.
|
|
29465
30227
|
*/
|
|
29466
|
-
label: PropTypes.
|
|
30228
|
+
label: PropTypes.node,
|
|
29467
30229
|
|
|
29468
30230
|
/**
|
|
29469
30231
|
* The position of the label.
|
|
@@ -29918,7 +30680,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
29918
30680
|
className: PropTypes.string,
|
|
29919
30681
|
|
|
29920
30682
|
/**
|
|
29921
|
-
* The color of the component.
|
|
30683
|
+
* The color of the component.
|
|
30684
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
30685
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
29922
30686
|
*/
|
|
29923
30687
|
color: PropTypes
|
|
29924
30688
|
/* @typescript-to-proptypes-ignore */
|
|
@@ -30495,6 +31259,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30495
31259
|
transform: 'none'
|
|
30496
31260
|
}
|
|
30497
31261
|
};
|
|
31262
|
+
/**
|
|
31263
|
+
* Conditionally apply a workaround for the CSS transition bug in Safari 15.4.
|
|
31264
|
+
* Remove this workaround once the Safari bug is fixed.
|
|
31265
|
+
*/
|
|
31266
|
+
|
|
31267
|
+
const isSafari154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && /version\/15\.[4-9]/i.test(navigator.userAgent);
|
|
30498
31268
|
/**
|
|
30499
31269
|
* The Grow transition is used by the [Tooltip](/components/tooltips/) and
|
|
30500
31270
|
* [Popover](/components/popover/) components.
|
|
@@ -30568,7 +31338,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30568
31338
|
duration,
|
|
30569
31339
|
delay
|
|
30570
31340
|
}), theme.transitions.create('transform', {
|
|
30571
|
-
duration: duration * 0.666,
|
|
31341
|
+
duration: isSafari154 ? duration : duration * 0.666,
|
|
30572
31342
|
delay,
|
|
30573
31343
|
easing: transitionTimingFunction
|
|
30574
31344
|
})].join(',');
|
|
@@ -30604,11 +31374,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
30604
31374
|
duration,
|
|
30605
31375
|
delay
|
|
30606
31376
|
}), theme.transitions.create('transform', {
|
|
30607
|
-
duration: duration * 0.666,
|
|
30608
|
-
delay: delay || duration * 0.333,
|
|
31377
|
+
duration: isSafari154 ? duration : duration * 0.666,
|
|
31378
|
+
delay: isSafari154 ? delay : delay || duration * 0.333,
|
|
30609
31379
|
easing: transitionTimingFunction
|
|
30610
31380
|
})].join(',');
|
|
30611
|
-
node.style.opacity =
|
|
31381
|
+
node.style.opacity = 0;
|
|
30612
31382
|
node.style.transform = getScale(0.75);
|
|
30613
31383
|
|
|
30614
31384
|
if (onExit) {
|
|
@@ -31602,7 +32372,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
31602
32372
|
className: PropTypes.string,
|
|
31603
32373
|
|
|
31604
32374
|
/**
|
|
31605
|
-
* The color of the component.
|
|
32375
|
+
* The color of the component.
|
|
32376
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
32377
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
31606
32378
|
* @default 'inherit'
|
|
31607
32379
|
*/
|
|
31608
32380
|
color: PropTypes
|
|
@@ -32389,7 +33161,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32389
33161
|
classes: PropTypes.object,
|
|
32390
33162
|
|
|
32391
33163
|
/**
|
|
32392
|
-
* The color of the component.
|
|
33164
|
+
* The color of the component.
|
|
33165
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
33166
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
32393
33167
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
32394
33168
|
*/
|
|
32395
33169
|
color: PropTypes
|
|
@@ -32899,7 +33673,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
32899
33673
|
classes: PropTypes.object,
|
|
32900
33674
|
|
|
32901
33675
|
/**
|
|
32902
|
-
* The color of the component.
|
|
33676
|
+
* The color of the component.
|
|
33677
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
33678
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
32903
33679
|
*/
|
|
32904
33680
|
color: PropTypes
|
|
32905
33681
|
/* @typescript-to-proptypes-ignore */
|
|
@@ -33284,7 +34060,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33284
34060
|
className: PropTypes.string,
|
|
33285
34061
|
|
|
33286
34062
|
/**
|
|
33287
|
-
* The color of the component.
|
|
34063
|
+
* The color of the component.
|
|
34064
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
34065
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
33288
34066
|
* @default 'primary'
|
|
33289
34067
|
*/
|
|
33290
34068
|
color: PropTypes
|
|
@@ -33323,7 +34101,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33323
34101
|
const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
|
|
33324
34102
|
var linkClasses$1 = linkClasses;
|
|
33325
34103
|
|
|
33326
|
-
const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant"];
|
|
34104
|
+
const _excluded$10 = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
33327
34105
|
const colorTransformations = {
|
|
33328
34106
|
primary: 'primary.main',
|
|
33329
34107
|
textPrimary: 'text.primary',
|
|
@@ -33406,6 +34184,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33406
34184
|
});
|
|
33407
34185
|
});
|
|
33408
34186
|
const Link = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, ref) {
|
|
34187
|
+
const theme = useTheme();
|
|
33409
34188
|
const props = useThemeProps({
|
|
33410
34189
|
props: inProps,
|
|
33411
34190
|
name: 'MuiLink'
|
|
@@ -33419,7 +34198,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33419
34198
|
onFocus,
|
|
33420
34199
|
TypographyClasses,
|
|
33421
34200
|
underline = 'always',
|
|
33422
|
-
variant = 'inherit'
|
|
34201
|
+
variant = 'inherit',
|
|
34202
|
+
sx
|
|
33423
34203
|
} = props,
|
|
33424
34204
|
other = _objectWithoutPropertiesLoose(props, _excluded$10);
|
|
33425
34205
|
|
|
@@ -33457,7 +34237,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33457
34237
|
};
|
|
33458
34238
|
|
|
33459
34239
|
const ownerState = _extends({}, props, {
|
|
33460
|
-
|
|
34240
|
+
// It is too complex to support any types of `sx`.
|
|
34241
|
+
// Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
|
|
34242
|
+
color: (typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color) || color,
|
|
33461
34243
|
component,
|
|
33462
34244
|
focusVisible,
|
|
33463
34245
|
underline,
|
|
@@ -33468,13 +34250,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33468
34250
|
return /*#__PURE__*/jsxRuntime_1(LinkRoot, _extends({
|
|
33469
34251
|
className: clsx(classes.root, className),
|
|
33470
34252
|
classes: TypographyClasses,
|
|
33471
|
-
color: color,
|
|
33472
34253
|
component: component,
|
|
33473
34254
|
onBlur: handleBlur,
|
|
33474
34255
|
onFocus: handleFocus,
|
|
33475
34256
|
ref: handlerRef,
|
|
33476
34257
|
ownerState: ownerState,
|
|
33477
|
-
variant: variant
|
|
34258
|
+
variant: variant,
|
|
34259
|
+
sx: [{
|
|
34260
|
+
color: colorTransformations[color] || color
|
|
34261
|
+
}, ...(Array.isArray(sx) ? sx : [sx])]
|
|
33478
34262
|
}, other));
|
|
33479
34263
|
});
|
|
33480
34264
|
Link.propTypes
|
|
@@ -33751,6 +34535,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
33751
34535
|
alignItems: 'center',
|
|
33752
34536
|
position: 'relative',
|
|
33753
34537
|
textDecoration: 'none',
|
|
34538
|
+
minWidth: 0,
|
|
33754
34539
|
boxSizing: 'border-box',
|
|
33755
34540
|
textAlign: 'left',
|
|
33756
34541
|
paddingTop: 8,
|
|
@@ -37026,7 +37811,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37026
37811
|
classes: PropTypes.object,
|
|
37027
37812
|
|
|
37028
37813
|
/**
|
|
37029
|
-
* The color of the component.
|
|
37814
|
+
* The color of the component.
|
|
37815
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
37816
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
37030
37817
|
* The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
|
|
37031
37818
|
*/
|
|
37032
37819
|
color: PropTypes
|
|
@@ -37606,6 +38393,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37606
38393
|
|
|
37607
38394
|
/**
|
|
37608
38395
|
* The active color.
|
|
38396
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
38397
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
37609
38398
|
* @default 'standard'
|
|
37610
38399
|
*/
|
|
37611
38400
|
color: PropTypes
|
|
@@ -37830,6 +38619,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37830
38619
|
|
|
37831
38620
|
/**
|
|
37832
38621
|
* The active color.
|
|
38622
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
38623
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
37833
38624
|
* @default 'standard'
|
|
37834
38625
|
*/
|
|
37835
38626
|
color: PropTypes
|
|
@@ -38191,7 +38982,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
38191
38982
|
classes: PropTypes.object,
|
|
38192
38983
|
|
|
38193
38984
|
/**
|
|
38194
|
-
* The color of the component.
|
|
38985
|
+
* The color of the component.
|
|
38986
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
38987
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
38195
38988
|
* @default 'primary'
|
|
38196
38989
|
*/
|
|
38197
38990
|
color: PropTypes
|
|
@@ -40915,7 +41708,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
40915
41708
|
classes: PropTypes.object,
|
|
40916
41709
|
|
|
40917
41710
|
/**
|
|
40918
|
-
* The color of the component.
|
|
41711
|
+
* The color of the component.
|
|
41712
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
41713
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
40919
41714
|
* @default 'primary'
|
|
40920
41715
|
*/
|
|
40921
41716
|
color: PropTypes
|
|
@@ -46007,7 +46802,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
46007
46802
|
className: PropTypes.string,
|
|
46008
46803
|
|
|
46009
46804
|
/**
|
|
46010
|
-
* The color of the component.
|
|
46805
|
+
* The color of the component.
|
|
46806
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
46807
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
46011
46808
|
* @default 'primary'
|
|
46012
46809
|
*/
|
|
46013
46810
|
color: PropTypes
|
|
@@ -49427,7 +50224,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49427
50224
|
className: PropTypes.string,
|
|
49428
50225
|
|
|
49429
50226
|
/**
|
|
49430
|
-
* The color of the component.
|
|
50227
|
+
* The color of the component.
|
|
50228
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
50229
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
49431
50230
|
* @default 'primary'
|
|
49432
50231
|
*/
|
|
49433
50232
|
color: PropTypes
|
|
@@ -49767,6 +50566,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
49767
50566
|
|
|
49768
50567
|
/**
|
|
49769
50568
|
* The color of the button when it is in an active state.
|
|
50569
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
50570
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
49770
50571
|
* @default 'standard'
|
|
49771
50572
|
*/
|
|
49772
50573
|
color: PropTypes
|
|
@@ -50043,7 +50844,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50043
50844
|
className: PropTypes.string,
|
|
50044
50845
|
|
|
50045
50846
|
/**
|
|
50046
|
-
* The color of
|
|
50847
|
+
* The color of the button when it is selected.
|
|
50848
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
50849
|
+
* [palette customization guide](https://mui.com/customization/palette/#adding-new-colors).
|
|
50047
50850
|
* @default 'standard'
|
|
50048
50851
|
*/
|
|
50049
50852
|
color: PropTypes
|
|
@@ -50198,6 +51001,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50198
51001
|
exports.DialogTitle = DialogTitle$1;
|
|
50199
51002
|
exports.Divider = Divider$1;
|
|
50200
51003
|
exports.Drawer = Drawer$1;
|
|
51004
|
+
exports.Experimental_CssVarsProvider = Experimental_CssVarsProvider;
|
|
50201
51005
|
exports.Fab = Fab$1;
|
|
50202
51006
|
exports.Fade = Fade$1;
|
|
50203
51007
|
exports.FilledInput = FilledInput$1;
|
|
@@ -50311,8 +51115,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50311
51115
|
exports.autocompleteClasses = autocompleteClasses$1;
|
|
50312
51116
|
exports.avatarClasses = avatarClasses$1;
|
|
50313
51117
|
exports.avatarGroupClasses = avatarGroupClasses$1;
|
|
50314
|
-
exports.backdropClasses = backdropClasses;
|
|
50315
|
-
exports.badgeClasses = badgeClasses;
|
|
51118
|
+
exports.backdropClasses = backdropClasses$1;
|
|
51119
|
+
exports.badgeClasses = badgeClasses$1;
|
|
50316
51120
|
exports.bottomNavigationActionClasses = bottomNavigationActionClasses$1;
|
|
50317
51121
|
exports.bottomNavigationClasses = bottomNavigationClasses$1;
|
|
50318
51122
|
exports.breadcrumbsClasses = breadcrumbsClasses$1;
|
|
@@ -50337,7 +51141,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50337
51141
|
exports.createMuiTheme = createMuiTheme;
|
|
50338
51142
|
exports.createStyles = createStyles;
|
|
50339
51143
|
exports.createSvgIcon = createSvgIcon;
|
|
50340
|
-
exports.createTheme = createTheme;
|
|
51144
|
+
exports.createTheme = createTheme$1;
|
|
50341
51145
|
exports.css = css;
|
|
50342
51146
|
exports.darkScrollbar = darkScrollbar;
|
|
50343
51147
|
exports.darken = darken;
|
|
@@ -50355,6 +51159,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50355
51159
|
exports.easing = easing;
|
|
50356
51160
|
exports.emphasize = emphasize;
|
|
50357
51161
|
exports.experimentalStyled = styled$1;
|
|
51162
|
+
exports.experimental_extendTheme = createTheme;
|
|
50358
51163
|
exports.experimental_sx = sx;
|
|
50359
51164
|
exports.fabClasses = fabClasses$1;
|
|
50360
51165
|
exports.filledInputClasses = filledInputClasses$1;
|
|
@@ -50375,6 +51180,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50375
51180
|
exports.getAutocompleteUtilityClass = getAutocompleteUtilityClass;
|
|
50376
51181
|
exports.getAvatarGroupUtilityClass = getAvatarGroupUtilityClass;
|
|
50377
51182
|
exports.getAvatarUtilityClass = getAvatarUtilityClass;
|
|
51183
|
+
exports.getBackdropUtilityClass = getBackdropUtilityClass;
|
|
51184
|
+
exports.getBadgeUtilityClass = getBadgeUtilityClass;
|
|
50378
51185
|
exports.getBottomNavigationActionUtilityClass = getBottomNavigationActionUtilityClass;
|
|
50379
51186
|
exports.getBottomNavigationUtilityClass = getBottomNavigationUtilityClass;
|
|
50380
51187
|
exports.getBreadcrumbsUtilityClass = getBreadcrumbsUtilityClass;
|
|
@@ -50413,6 +51220,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50413
51220
|
exports.getImageListItemBarUtilityClass = getImageListItemBarUtilityClass;
|
|
50414
51221
|
exports.getImageListItemUtilityClass = getImageListItemUtilityClass;
|
|
50415
51222
|
exports.getImageListUtilityClass = getImageListUtilityClass;
|
|
51223
|
+
exports.getInitColorSchemeScript = getInitColorSchemeScript;
|
|
50416
51224
|
exports.getInputAdornmentUtilityClass = getInputAdornmentUtilityClass;
|
|
50417
51225
|
exports.getInputBaseUtilityClass = getInputBaseUtilityClass;
|
|
50418
51226
|
exports.getInputLabelUtilityClasses = getInputLabelUtilityClasses;
|
|
@@ -50569,6 +51377,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
50569
51377
|
exports.unstable_useId = useId;
|
|
50570
51378
|
exports.unsupportedProp = unsupportedProp;
|
|
50571
51379
|
exports.useAutocomplete = useAutocomplete;
|
|
51380
|
+
exports.useColorScheme = useColorScheme;
|
|
50572
51381
|
exports.useControlled = useControlled;
|
|
50573
51382
|
exports.useEventCallback = useEventCallback;
|
|
50574
51383
|
exports.useForkRef = useForkRef;
|