@mui/material 5.8.4 → 5.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.js +19 -11
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/AppBar.js +22 -5
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +2 -0
- package/Autocomplete/Autocomplete.js +12 -8
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/Avatar.js +7 -4
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +185 -4
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/Chip.js +31 -30
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/Dialog.js +11 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +28 -13
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +2 -2
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/LinearProgress.js +6 -2
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +2 -0
- package/Modal/Modal.js +25 -8
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/OutlinedInput.js +40 -10
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +1 -1
- package/Select/Select.js +1 -1
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/Skeleton.js +8 -3
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +21 -21
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/SnackbarContent.js +3 -3
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/SpeedDialAction.js +7 -7
- 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/StepConnector.js +14 -11
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/StepContent.js +1 -1
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/Switch.js +11 -11
- 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/TableCell.js +5 -5
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +16 -18
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +1 -1
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +19 -11
- package/legacy/AppBar/AppBar.js +23 -4
- package/legacy/Autocomplete/Autocomplete.js +12 -8
- package/legacy/Avatar/Avatar.js +7 -4
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Chip/Chip.js +31 -30
- package/legacy/Dialog/Dialog.js +11 -6
- package/legacy/FilledInput/FilledInput.js +28 -14
- package/legacy/Input/Input.js +1 -1
- package/legacy/InputBase/InputBase.js +2 -2
- package/legacy/LinearProgress/LinearProgress.js +6 -2
- package/legacy/Modal/Modal.js +23 -7
- package/legacy/OutlinedInput/OutlinedInput.js +36 -9
- package/legacy/Select/Select.js +1 -1
- package/legacy/Skeleton/Skeleton.js +2 -2
- package/legacy/Slider/Slider.js +21 -21
- package/legacy/SnackbarContent/SnackbarContent.js +3 -3
- package/legacy/SpeedDialAction/SpeedDialAction.js +7 -7
- package/legacy/StepConnector/StepConnector.js +2 -1
- package/legacy/StepContent/StepContent.js +1 -1
- package/legacy/Switch/Switch.js +11 -11
- package/legacy/TableCell/TableCell.js +5 -5
- package/legacy/Tabs/Tabs.js +16 -18
- package/legacy/Tooltip/Tooltip.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +10 -8
- package/legacy/styles/experimental_extendTheme.js +170 -19
- package/locale/index.d.ts +71 -71
- package/modern/Alert/Alert.js +19 -11
- package/modern/AppBar/AppBar.js +22 -5
- package/modern/Autocomplete/Autocomplete.js +11 -7
- package/modern/Avatar/Avatar.js +7 -4
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Chip/Chip.js +31 -30
- package/modern/Dialog/Dialog.js +11 -6
- package/modern/FilledInput/FilledInput.js +27 -12
- package/modern/Input/Input.js +1 -1
- package/modern/InputBase/InputBase.js +2 -2
- package/modern/LinearProgress/LinearProgress.js +6 -2
- package/modern/Modal/Modal.js +24 -7
- package/modern/OutlinedInput/OutlinedInput.js +40 -10
- package/modern/Select/Select.js +1 -1
- package/modern/Skeleton/Skeleton.js +7 -2
- package/modern/Slider/Slider.js +21 -21
- package/modern/SnackbarContent/SnackbarContent.js +3 -3
- package/modern/SpeedDialAction/SpeedDialAction.js +7 -7
- package/modern/StepConnector/StepConnector.js +14 -11
- package/modern/StepContent/StepContent.js +1 -1
- package/modern/Switch/Switch.js +11 -11
- package/modern/TableCell/TableCell.js +5 -5
- package/modern/Tabs/Tabs.js +16 -18
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +6 -6
- package/modern/styles/experimental_extendTheme.js +166 -20
- package/node/Alert/Alert.js +19 -11
- package/node/AppBar/AppBar.js +22 -5
- package/node/Autocomplete/Autocomplete.js +12 -8
- package/node/Avatar/Avatar.js +7 -4
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Chip/Chip.js +31 -30
- package/node/Dialog/Dialog.js +11 -6
- package/node/FilledInput/FilledInput.js +28 -13
- package/node/Input/Input.js +1 -1
- package/node/InputBase/InputBase.js +2 -2
- package/node/LinearProgress/LinearProgress.js +6 -2
- package/node/Modal/Modal.js +25 -8
- package/node/OutlinedInput/OutlinedInput.js +38 -10
- package/node/Select/Select.js +1 -1
- package/node/Skeleton/Skeleton.js +7 -2
- package/node/Slider/Slider.js +21 -21
- package/node/SnackbarContent/SnackbarContent.js +3 -3
- package/node/SpeedDialAction/SpeedDialAction.js +7 -7
- package/node/StepConnector/StepConnector.js +14 -11
- package/node/StepContent/StepContent.js +1 -1
- package/node/Switch/Switch.js +11 -11
- package/node/TableCell/TableCell.js +5 -5
- package/node/Tabs/Tabs.js +16 -18
- package/node/Tooltip/Tooltip.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +11 -6
- package/node/styles/experimental_extendTheme.js +167 -19
- package/package.json +7 -7
- package/styles/CssVarsProvider.d.ts +14 -28
- package/styles/CssVarsProvider.js +10 -6
- package/styles/createPalette.d.ts +0 -26
- package/styles/experimental_extendTheme.d.ts +238 -35
- package/styles/experimental_extendTheme.js +166 -20
- package/styles/index.d.ts +24 -1
- package/themeCssVarsAugmentation/index.d.ts +30 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +954 -471
- package/umd/material-ui.production.min.js +27 -22
- 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
package/node/Dialog/Dialog.js
CHANGED
|
@@ -157,7 +157,7 @@ const DialogPaper = (0, _styled.default)(_Paper.default, {
|
|
|
157
157
|
maxWidth: 'calc(100% - 64px)'
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
}, ownerState.maxWidth !== 'xs' && {
|
|
160
|
+
}, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
|
|
161
161
|
maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`,
|
|
162
162
|
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
|
163
163
|
[theme.breakpoints.down(theme.breakpoints.values[ownerState.maxWidth] + 32 * 2)]: {
|
|
@@ -255,12 +255,16 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
255
255
|
}, [ariaLabelledby]);
|
|
256
256
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DialogRoot, (0, _extends2.default)({
|
|
257
257
|
className: (0, _clsx.default)(classes.root, className),
|
|
258
|
-
BackdropProps: (0, _extends2.default)({
|
|
259
|
-
transitionDuration,
|
|
260
|
-
as: BackdropComponent
|
|
261
|
-
}, BackdropProps),
|
|
262
258
|
closeAfterTransition: true,
|
|
263
|
-
|
|
259
|
+
components: {
|
|
260
|
+
Backdrop: DialogBackdrop
|
|
261
|
+
},
|
|
262
|
+
componentsProps: {
|
|
263
|
+
backdrop: (0, _extends2.default)({
|
|
264
|
+
transitionDuration,
|
|
265
|
+
as: BackdropComponent
|
|
266
|
+
}, BackdropProps)
|
|
267
|
+
},
|
|
264
268
|
disableEscapeKeyDown: disableEscapeKeyDown,
|
|
265
269
|
onClose: onClose,
|
|
266
270
|
open: open,
|
|
@@ -316,6 +320,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes
|
|
|
316
320
|
|
|
317
321
|
/**
|
|
318
322
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
323
|
+
* @deprecated Use `components.Backdrop` instead.
|
|
319
324
|
* @default styled(Backdrop, {
|
|
320
325
|
* name: 'MuiModal',
|
|
321
326
|
* slot: 'Backdrop',
|
|
@@ -64,36 +64,38 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
64
64
|
theme,
|
|
65
65
|
ownerState
|
|
66
66
|
}) => {
|
|
67
|
-
var
|
|
67
|
+
var _palette;
|
|
68
68
|
|
|
69
69
|
const light = theme.palette.mode === 'light';
|
|
70
70
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
71
71
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
72
|
+
const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';
|
|
73
|
+
const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';
|
|
72
74
|
return (0, _extends2.default)({
|
|
73
75
|
position: 'relative',
|
|
74
|
-
backgroundColor,
|
|
75
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
76
|
-
borderTopRightRadius: theme.shape.borderRadius,
|
|
76
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,
|
|
77
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
78
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
77
79
|
transition: theme.transitions.create('background-color', {
|
|
78
80
|
duration: theme.transitions.duration.shorter,
|
|
79
81
|
easing: theme.transitions.easing.easeOut
|
|
80
82
|
}),
|
|
81
83
|
'&:hover': {
|
|
82
|
-
backgroundColor:
|
|
84
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,
|
|
83
85
|
// Reset on touch devices, it doesn't add specificity
|
|
84
86
|
'@media (hover: none)': {
|
|
85
|
-
backgroundColor
|
|
87
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
|
|
86
88
|
}
|
|
87
89
|
},
|
|
88
90
|
[`&.${_filledInputClasses.default.focused}`]: {
|
|
89
|
-
backgroundColor
|
|
91
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
|
|
90
92
|
},
|
|
91
93
|
[`&.${_filledInputClasses.default.disabled}`]: {
|
|
92
|
-
backgroundColor:
|
|
94
|
+
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
|
|
93
95
|
}
|
|
94
96
|
}, !ownerState.disableUnderline && {
|
|
95
97
|
'&:after': {
|
|
96
|
-
borderBottom: `2px solid ${(
|
|
98
|
+
borderBottom: `2px solid ${(_palette = (theme.vars || theme).palette[ownerState.color || 'primary']) == null ? void 0 : _palette.main}`,
|
|
97
99
|
left: 0,
|
|
98
100
|
bottom: 0,
|
|
99
101
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -114,12 +116,12 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
114
116
|
transform: 'scaleX(1) translateX(0)'
|
|
115
117
|
},
|
|
116
118
|
[`&.${_filledInputClasses.default.error}:after`]: {
|
|
117
|
-
borderBottomColor: theme.palette.error.main,
|
|
119
|
+
borderBottomColor: (theme.vars || theme).palette.error.main,
|
|
118
120
|
transform: 'scaleX(1)' // error is always underlined in red
|
|
119
121
|
|
|
120
122
|
},
|
|
121
123
|
'&:before': {
|
|
122
|
-
borderBottom: `1px solid ${bottomLineColor}`,
|
|
124
|
+
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
123
125
|
left: 0,
|
|
124
126
|
bottom: 0,
|
|
125
127
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -133,7 +135,7 @@ const FilledInputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
133
135
|
|
|
134
136
|
},
|
|
135
137
|
[`&:hover:not(.${_filledInputClasses.default.disabled}):before`]: {
|
|
136
|
-
borderBottom: `1px solid ${theme.palette.text.primary}`
|
|
138
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
|
|
137
139
|
},
|
|
138
140
|
[`&.${_filledInputClasses.default.disabled}:before`]: {
|
|
139
141
|
borderBottomStyle: 'dotted'
|
|
@@ -163,7 +165,8 @@ const FilledInputInput = (0, _styled.default)(_InputBase2.InputBaseComponent, {
|
|
|
163
165
|
paddingTop: 25,
|
|
164
166
|
paddingRight: 12,
|
|
165
167
|
paddingBottom: 8,
|
|
166
|
-
paddingLeft: 12
|
|
168
|
+
paddingLeft: 12
|
|
169
|
+
}, !theme.vars && {
|
|
167
170
|
'&:-webkit-autofill': {
|
|
168
171
|
WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
|
|
169
172
|
WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
@@ -171,6 +174,18 @@ const FilledInputInput = (0, _styled.default)(_InputBase2.InputBaseComponent, {
|
|
|
171
174
|
borderTopLeftRadius: 'inherit',
|
|
172
175
|
borderTopRightRadius: 'inherit'
|
|
173
176
|
}
|
|
177
|
+
}, theme.vars && {
|
|
178
|
+
'&:-webkit-autofill': {
|
|
179
|
+
borderTopLeftRadius: 'inherit',
|
|
180
|
+
borderTopRightRadius: 'inherit'
|
|
181
|
+
},
|
|
182
|
+
[theme.getColorSchemeSelector('dark')]: {
|
|
183
|
+
'&:-webkit-autofill': {
|
|
184
|
+
WebkitBoxShadow: '0 0 0 100px #266798 inset',
|
|
185
|
+
WebkitTextFillColor: '#fff',
|
|
186
|
+
caretColor: '#fff'
|
|
187
|
+
}
|
|
188
|
+
}
|
|
174
189
|
}, ownerState.size === 'small' && {
|
|
175
190
|
paddingTop: 21,
|
|
176
191
|
paddingBottom: 4
|
package/node/Input/Input.js
CHANGED
|
@@ -68,7 +68,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
68
68
|
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
69
69
|
|
|
70
70
|
if (theme.vars) {
|
|
71
|
-
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.
|
|
71
|
+
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
return (0, _extends2.default)({
|
|
@@ -133,7 +133,7 @@ const InputBaseComponent = (0, _styled.default)('input', {
|
|
|
133
133
|
const placeholder = (0, _extends2.default)({
|
|
134
134
|
color: 'currentColor'
|
|
135
135
|
}, theme.vars ? {
|
|
136
|
-
opacity: theme.vars.opacity.
|
|
136
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
137
137
|
} : {
|
|
138
138
|
opacity: light ? 0.42 : 0.5
|
|
139
139
|
}, {
|
|
@@ -145,7 +145,7 @@ const InputBaseComponent = (0, _styled.default)('input', {
|
|
|
145
145
|
opacity: '0 !important'
|
|
146
146
|
};
|
|
147
147
|
const placeholderVisible = theme.vars ? {
|
|
148
|
-
opacity: theme.vars.opacity.
|
|
148
|
+
opacity: theme.vars.opacity.inputPlaceholder
|
|
149
149
|
} : {
|
|
150
150
|
opacity: light ? 0.42 : 0.5
|
|
151
151
|
};
|
|
@@ -110,6 +110,10 @@ const getColorShade = (theme, color) => {
|
|
|
110
110
|
return 'currentColor';
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
if (theme.vars) {
|
|
114
|
+
return theme.vars.palette.LinearProgress[`${color}Bg`];
|
|
115
|
+
}
|
|
116
|
+
|
|
113
117
|
return theme.palette.mode === 'light' ? (0, _system.lighten)(theme.palette[color].main, 0.62) : (0, _system.darken)(theme.palette[color].main, 0.5);
|
|
114
118
|
};
|
|
115
119
|
|
|
@@ -202,7 +206,7 @@ const LinearProgressBar1 = (0, _styled.default)('span', {
|
|
|
202
206
|
top: 0,
|
|
203
207
|
transition: 'transform 0.2s linear',
|
|
204
208
|
transformOrigin: 'left',
|
|
205
|
-
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
|
|
209
|
+
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
206
210
|
}, ownerState.variant === 'determinate' && {
|
|
207
211
|
transition: `transform .${TRANSITION_DURATION}s linear`
|
|
208
212
|
}, ownerState.variant === 'buffer' && {
|
|
@@ -235,7 +239,7 @@ const LinearProgressBar2 = (0, _styled.default)('span', {
|
|
|
235
239
|
transition: 'transform 0.2s linear',
|
|
236
240
|
transformOrigin: 'left'
|
|
237
241
|
}, ownerState.variant !== 'buffer' && {
|
|
238
|
-
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
|
|
242
|
+
backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
|
|
239
243
|
}, ownerState.color === 'inherit' && {
|
|
240
244
|
opacity: 0.3
|
|
241
245
|
}, ownerState.variant === 'buffer' && {
|
package/node/Modal/Modal.js
CHANGED
|
@@ -29,7 +29,7 @@ var _Backdrop = _interopRequireDefault(require("../Backdrop"));
|
|
|
29
29
|
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
|
|
32
|
-
const _excluded = ["BackdropComponent", "closeAfterTransition", "children", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted"];
|
|
32
|
+
const _excluded = ["BackdropComponent", "BackdropProps", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "theme"];
|
|
33
33
|
|
|
34
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
35
|
|
|
@@ -88,7 +88,7 @@ const ModalBackdrop = (0, _styled.default)(_Backdrop.default, {
|
|
|
88
88
|
*/
|
|
89
89
|
|
|
90
90
|
const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
91
|
-
var
|
|
91
|
+
var _ref, _components$Root;
|
|
92
92
|
|
|
93
93
|
const props = (0, _useThemeProps.default)({
|
|
94
94
|
name: 'MuiModal',
|
|
@@ -96,8 +96,10 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
96
96
|
});
|
|
97
97
|
const {
|
|
98
98
|
BackdropComponent = ModalBackdrop,
|
|
99
|
+
BackdropProps,
|
|
99
100
|
closeAfterTransition = false,
|
|
100
101
|
children,
|
|
102
|
+
component,
|
|
101
103
|
components = {},
|
|
102
104
|
componentsProps = {},
|
|
103
105
|
disableAutoFocus = false,
|
|
@@ -107,7 +109,9 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
107
109
|
disableRestoreFocus = false,
|
|
108
110
|
disableScrollLock = false,
|
|
109
111
|
hideBackdrop = false,
|
|
110
|
-
keepMounted = false
|
|
112
|
+
keepMounted = false,
|
|
113
|
+
// eslint-disable-next-line react/prop-types
|
|
114
|
+
theme
|
|
111
115
|
} = props,
|
|
112
116
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
113
117
|
const [exited, setExited] = React.useState(true);
|
|
@@ -126,16 +130,19 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
126
130
|
exited
|
|
127
131
|
});
|
|
128
132
|
const classes = extendUtilityClasses(ownerState);
|
|
133
|
+
const Root = (_ref = (_components$Root = components.Root) != null ? _components$Root : component) != null ? _ref : ModalRoot;
|
|
129
134
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalUnstyled.default, (0, _extends2.default)({
|
|
130
135
|
components: (0, _extends2.default)({
|
|
131
|
-
Root
|
|
136
|
+
Root,
|
|
137
|
+
Backdrop: BackdropComponent
|
|
132
138
|
}, components),
|
|
133
139
|
componentsProps: {
|
|
134
|
-
root: (0, _extends2.default)({}, componentsProps.root,
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
root: (0, _extends2.default)({}, componentsProps.root, !(0, _base.isHostComponent)(Root) && {
|
|
141
|
+
as: component,
|
|
142
|
+
theme
|
|
143
|
+
}),
|
|
144
|
+
backdrop: (0, _extends2.default)({}, BackdropProps, componentsProps.backdrop)
|
|
137
145
|
},
|
|
138
|
-
BackdropComponent: BackdropComponent,
|
|
139
146
|
onTransitionEnter: () => setExited(false),
|
|
140
147
|
onTransitionExited: () => setExited(true),
|
|
141
148
|
ref: ref
|
|
@@ -155,6 +162,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
155
162
|
|
|
156
163
|
/**
|
|
157
164
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
165
|
+
* @deprecated Use `components.Backdrop` instead.
|
|
158
166
|
* @default styled(Backdrop, {
|
|
159
167
|
* name: 'MuiModal',
|
|
160
168
|
* slot: 'Backdrop',
|
|
@@ -169,6 +177,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
169
177
|
|
|
170
178
|
/**
|
|
171
179
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
180
|
+
* @deprecated Use `componentsProps.backdrop` instead.
|
|
172
181
|
*/
|
|
173
182
|
BackdropProps: _propTypes.default.object,
|
|
174
183
|
|
|
@@ -188,12 +197,19 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
188
197
|
*/
|
|
189
198
|
closeAfterTransition: _propTypes.default.bool,
|
|
190
199
|
|
|
200
|
+
/**
|
|
201
|
+
* The component used for the root node.
|
|
202
|
+
* Either a string to use a HTML element or a component.
|
|
203
|
+
*/
|
|
204
|
+
component: _propTypes.default.elementType,
|
|
205
|
+
|
|
191
206
|
/**
|
|
192
207
|
* The components used for each slot inside the Modal.
|
|
193
208
|
* Either a string to use a HTML element or a component.
|
|
194
209
|
* @default {}
|
|
195
210
|
*/
|
|
196
211
|
components: _propTypes.default.shape({
|
|
212
|
+
Backdrop: _propTypes.default.elementType,
|
|
197
213
|
Root: _propTypes.default.elementType
|
|
198
214
|
}),
|
|
199
215
|
|
|
@@ -202,6 +218,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
202
218
|
* @default {}
|
|
203
219
|
*/
|
|
204
220
|
componentsProps: _propTypes.default.shape({
|
|
221
|
+
backdrop: _propTypes.default.object,
|
|
205
222
|
root: _propTypes.default.object
|
|
206
223
|
}),
|
|
207
224
|
|
|
@@ -66,25 +66,25 @@ const OutlinedInputRoot = (0, _styled.default)(_InputBase.InputBaseRoot, {
|
|
|
66
66
|
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
67
67
|
return (0, _extends2.default)({
|
|
68
68
|
position: 'relative',
|
|
69
|
-
borderRadius: theme.shape.borderRadius,
|
|
69
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
70
70
|
[`&:hover .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
71
|
-
borderColor: theme.palette.text.primary
|
|
71
|
+
borderColor: (theme.vars || theme).palette.text.primary
|
|
72
72
|
},
|
|
73
73
|
// Reset on touch devices, it doesn't add specificity
|
|
74
74
|
'@media (hover: none)': {
|
|
75
75
|
[`&:hover .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
76
|
-
borderColor
|
|
76
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
[`&.${_outlinedInputClasses.default.focused} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
80
|
-
borderColor: theme.palette[ownerState.color].main,
|
|
80
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
81
81
|
borderWidth: 2
|
|
82
82
|
},
|
|
83
83
|
[`&.${_outlinedInputClasses.default.error} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
84
|
-
borderColor: theme.palette.error.main
|
|
84
|
+
borderColor: (theme.vars || theme).palette.error.main
|
|
85
85
|
},
|
|
86
86
|
[`&.${_outlinedInputClasses.default.disabled} .${_outlinedInputClasses.default.notchedOutline}`]: {
|
|
87
|
-
borderColor: theme.palette.action.disabled
|
|
87
|
+
borderColor: (theme.vars || theme).palette.action.disabled
|
|
88
88
|
}
|
|
89
89
|
}, ownerState.startAdornment && {
|
|
90
90
|
paddingLeft: 14
|
|
@@ -102,9 +102,12 @@ const NotchedOutlineRoot = (0, _styled.default)(_NotchedOutline.default, {
|
|
|
102
102
|
overridesResolver: (props, styles) => styles.notchedOutline
|
|
103
103
|
})(({
|
|
104
104
|
theme
|
|
105
|
-
}) =>
|
|
106
|
-
borderColor
|
|
107
|
-
|
|
105
|
+
}) => {
|
|
106
|
+
const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';
|
|
107
|
+
return {
|
|
108
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor
|
|
109
|
+
};
|
|
110
|
+
});
|
|
108
111
|
const OutlinedInputInput = (0, _styled.default)(_InputBase.InputBaseComponent, {
|
|
109
112
|
name: 'MuiOutlinedInput',
|
|
110
113
|
slot: 'Input',
|
|
@@ -113,13 +116,25 @@ const OutlinedInputInput = (0, _styled.default)(_InputBase.InputBaseComponent, {
|
|
|
113
116
|
theme,
|
|
114
117
|
ownerState
|
|
115
118
|
}) => (0, _extends2.default)({
|
|
116
|
-
padding: '16.5px 14px'
|
|
119
|
+
padding: '16.5px 14px'
|
|
120
|
+
}, !theme.vars && {
|
|
117
121
|
'&:-webkit-autofill': {
|
|
118
122
|
WebkitBoxShadow: theme.palette.mode === 'light' ? null : '0 0 0 100px #266798 inset',
|
|
119
123
|
WebkitTextFillColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
120
124
|
caretColor: theme.palette.mode === 'light' ? null : '#fff',
|
|
121
125
|
borderRadius: 'inherit'
|
|
122
126
|
}
|
|
127
|
+
}, theme.vars && {
|
|
128
|
+
'&:-webkit-autofill': {
|
|
129
|
+
borderRadius: 'inherit'
|
|
130
|
+
},
|
|
131
|
+
[theme.getColorSchemeSelector('dark')]: {
|
|
132
|
+
'&:-webkit-autofill': {
|
|
133
|
+
WebkitBoxShadow: '0 0 0 100px #266798 inset',
|
|
134
|
+
WebkitTextFillColor: '#fff',
|
|
135
|
+
caretColor: '#fff'
|
|
136
|
+
}
|
|
137
|
+
}
|
|
123
138
|
}, ownerState.size === 'small' && {
|
|
124
139
|
padding: '8.5px 14px'
|
|
125
140
|
}, ownerState.multiline && {
|
|
@@ -153,12 +168,25 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
153
168
|
muiFormControl,
|
|
154
169
|
states: ['required']
|
|
155
170
|
});
|
|
171
|
+
const ownerState = (0, _extends2.default)({}, props, {
|
|
172
|
+
color: fcs.color || 'primary',
|
|
173
|
+
disabled: fcs.disabled,
|
|
174
|
+
error: fcs.error,
|
|
175
|
+
focused: fcs.focused,
|
|
176
|
+
formControl: muiFormControl,
|
|
177
|
+
fullWidth,
|
|
178
|
+
hiddenLabel: fcs.hiddenLabel,
|
|
179
|
+
multiline,
|
|
180
|
+
size: fcs.size,
|
|
181
|
+
type
|
|
182
|
+
});
|
|
156
183
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({
|
|
157
184
|
components: (0, _extends2.default)({
|
|
158
185
|
Root: OutlinedInputRoot,
|
|
159
186
|
Input: OutlinedInputInput
|
|
160
187
|
}, components),
|
|
161
188
|
renderSuffix: state => /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, {
|
|
189
|
+
ownerState: ownerState,
|
|
162
190
|
className: classes.notchedOutline,
|
|
163
191
|
label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
164
192
|
children: [label, "\xA0", '*']
|
package/node/Select/Select.js
CHANGED
|
@@ -320,7 +320,7 @@ process.env.NODE_ENV !== "production" ? Select.propTypes
|
|
|
320
320
|
* If the value is an object it must have reference equality with the option in order to be selected.
|
|
321
321
|
* If the value is not an object, the string representation must match with the string representation of the option in order to be selected.
|
|
322
322
|
*/
|
|
323
|
-
value: _propTypes.default.any,
|
|
323
|
+
value: _propTypes.default.oneOfType([_propTypes.default.oneOf(['']), _propTypes.default.any]),
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
326
|
* The variant to use.
|
|
@@ -97,7 +97,7 @@ const SkeletonRoot = (0, _styled.default)('span', {
|
|
|
97
97
|
return (0, _extends2.default)({
|
|
98
98
|
display: 'block',
|
|
99
99
|
// Create a "on paper" color with sufficient contrast retaining the color
|
|
100
|
-
backgroundColor: (0, _styles.alpha)(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
|
|
100
|
+
backgroundColor: theme.vars ? theme.vars.palette.Skeleton.bg : (0, _styles.alpha)(theme.palette.text.primary, theme.palette.mode === 'light' ? 0.11 : 0.13),
|
|
101
101
|
height: '1.2em'
|
|
102
102
|
}, ownerState.variant === 'text' && {
|
|
103
103
|
marginTop: 0,
|
|
@@ -136,7 +136,12 @@ const SkeletonRoot = (0, _styled.default)('span', {
|
|
|
136
136
|
|
|
137
137
|
&::after {
|
|
138
138
|
animation: ${waveKeyframe} 1.6s linear 0.5s infinite;
|
|
139
|
-
background: linear-gradient(
|
|
139
|
+
background: linear-gradient(
|
|
140
|
+
90deg,
|
|
141
|
+
transparent,
|
|
142
|
+
${(theme.vars || theme).palette.action.hover},
|
|
143
|
+
transparent
|
|
144
|
+
);
|
|
140
145
|
content: '';
|
|
141
146
|
position: absolute;
|
|
142
147
|
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
package/node/Slider/Slider.js
CHANGED
|
@@ -64,7 +64,7 @@ const SliderRoot = (0, _styled.default)('span', {
|
|
|
64
64
|
position: 'relative',
|
|
65
65
|
cursor: 'pointer',
|
|
66
66
|
touchAction: 'none',
|
|
67
|
-
color: theme.palette[ownerState.color].main,
|
|
67
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
68
68
|
WebkitTapHighlightColor: 'transparent'
|
|
69
69
|
}, ownerState.orientation === 'horizontal' && (0, _extends2.default)({
|
|
70
70
|
height: 4,
|
|
@@ -99,7 +99,7 @@ const SliderRoot = (0, _styled.default)('span', {
|
|
|
99
99
|
[`&.${sliderClasses.disabled}`]: {
|
|
100
100
|
pointerEvents: 'none',
|
|
101
101
|
cursor: 'default',
|
|
102
|
-
color: theme.palette.grey[400]
|
|
102
|
+
color: (theme.vars || theme).palette.grey[400]
|
|
103
103
|
},
|
|
104
104
|
[`&.${sliderClasses.dragging}`]: {
|
|
105
105
|
[`& .${sliderClasses.thumb}, & .${sliderClasses.track}`]: {
|
|
@@ -192,8 +192,8 @@ const SliderTrack = (0, _styled.default)('span', {
|
|
|
192
192
|
}, ownerState.track === false && {
|
|
193
193
|
display: 'none'
|
|
194
194
|
}, ownerState.track === 'inverted' && {
|
|
195
|
-
backgroundColor: color,
|
|
196
|
-
borderColor: color
|
|
195
|
+
backgroundColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color,
|
|
196
|
+
borderColor: theme.vars ? theme.vars.palette.Slider[`${ownerState.color}Track`] : color
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
199
|
exports.SliderTrack = SliderTrack;
|
|
@@ -252,7 +252,7 @@ const SliderThumb = (0, _styled.default)('span', {
|
|
|
252
252
|
borderRadius: 'inherit',
|
|
253
253
|
width: '100%',
|
|
254
254
|
height: '100%',
|
|
255
|
-
boxShadow: theme.shadows[2]
|
|
255
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
256
256
|
}, ownerState.size === 'small' && {
|
|
257
257
|
boxShadow: 'none'
|
|
258
258
|
}),
|
|
@@ -268,13 +268,13 @@ const SliderThumb = (0, _styled.default)('span', {
|
|
|
268
268
|
transform: 'translate(-50%, -50%)'
|
|
269
269
|
},
|
|
270
270
|
[`&:hover, &.${sliderClasses.focusVisible}`]: {
|
|
271
|
-
boxShadow: `0px 0px 0px 8px ${(0, _system.alpha)(theme.palette[ownerState.color].main, 0.16)}`,
|
|
271
|
+
boxShadow: `0px 0px 0px 8px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.16)}`,
|
|
272
272
|
'@media (hover: none)': {
|
|
273
273
|
boxShadow: 'none'
|
|
274
274
|
}
|
|
275
275
|
},
|
|
276
276
|
[`&.${sliderClasses.active}`]: {
|
|
277
|
-
boxShadow: `0px 0px 0px 14px ${(0, _system.alpha)(theme.palette[ownerState.color].main, 0.16)}`
|
|
277
|
+
boxShadow: `0px 0px 0px 14px ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.16)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.16)}`
|
|
278
278
|
},
|
|
279
279
|
[`&.${sliderClasses.disabled}`]: {
|
|
280
280
|
'&:hover': {
|
|
@@ -317,9 +317,9 @@ const SliderValueLabel = (0, _styled.default)(_SliderUnstyled.SliderValueLabelUn
|
|
|
317
317
|
transformOrigin: 'bottom center',
|
|
318
318
|
transform: 'translateY(-100%) scale(0)',
|
|
319
319
|
position: 'absolute',
|
|
320
|
-
backgroundColor: theme.palette.grey[600],
|
|
320
|
+
backgroundColor: (theme.vars || theme).palette.grey[600],
|
|
321
321
|
borderRadius: 2,
|
|
322
|
-
color: theme.palette.common.white,
|
|
322
|
+
color: (theme.vars || theme).palette.common.white,
|
|
323
323
|
display: 'flex',
|
|
324
324
|
alignItems: 'center',
|
|
325
325
|
justifyContent: 'center',
|
|
@@ -389,7 +389,7 @@ const SliderMark = (0, _styled.default)('span', {
|
|
|
389
389
|
left: '50%',
|
|
390
390
|
transform: 'translate(-50%, 1px)'
|
|
391
391
|
}, markActive && {
|
|
392
|
-
backgroundColor: theme.palette.background.paper,
|
|
392
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
393
393
|
opacity: 0.8
|
|
394
394
|
}));
|
|
395
395
|
exports.SliderMark = SliderMark;
|
|
@@ -416,7 +416,7 @@ const SliderMarkLabel = (0, _styled.default)('span', {
|
|
|
416
416
|
ownerState,
|
|
417
417
|
markLabelActive
|
|
418
418
|
}) => (0, _extends2.default)({}, theme.typography.body2, {
|
|
419
|
-
color: theme.palette.text.secondary,
|
|
419
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
420
420
|
position: 'absolute',
|
|
421
421
|
whiteSpace: 'nowrap'
|
|
422
422
|
}, ownerState.orientation === 'horizontal' && {
|
|
@@ -432,7 +432,7 @@ const SliderMarkLabel = (0, _styled.default)('span', {
|
|
|
432
432
|
left: 44
|
|
433
433
|
}
|
|
434
434
|
}, markLabelActive && {
|
|
435
|
-
color: theme.palette.text.primary
|
|
435
|
+
color: (theme.vars || theme).palette.text.primary
|
|
436
436
|
}));
|
|
437
437
|
exports.SliderMarkLabel = SliderMarkLabel;
|
|
438
438
|
process.env.NODE_ENV !== "production" ? SliderMarkLabel.propTypes
|
|
@@ -606,14 +606,14 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
606
606
|
* @default {}
|
|
607
607
|
*/
|
|
608
608
|
componentsProps: _propTypes.default.shape({
|
|
609
|
-
input: _propTypes.default.object,
|
|
610
|
-
mark: _propTypes.default.object,
|
|
611
|
-
markLabel: _propTypes.default.object,
|
|
612
|
-
rail: _propTypes.default.object,
|
|
613
|
-
root: _propTypes.default.object,
|
|
614
|
-
thumb: _propTypes.default.object,
|
|
615
|
-
track: _propTypes.default.object,
|
|
616
|
-
valueLabel: _propTypes.default.shape({
|
|
609
|
+
input: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
610
|
+
mark: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
611
|
+
markLabel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
612
|
+
rail: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
613
|
+
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
614
|
+
thumb: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
615
|
+
track: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
|
616
|
+
valueLabel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
617
617
|
children: _propTypes.default.element,
|
|
618
618
|
className: _propTypes.default.string,
|
|
619
619
|
components: _propTypes.default.shape({
|
|
@@ -623,7 +623,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
623
623
|
style: _propTypes.default.object,
|
|
624
624
|
value: _propTypes.default.number,
|
|
625
625
|
valueLabelDisplay: _propTypes.default.oneOf(['auto', 'off', 'on'])
|
|
626
|
-
})
|
|
626
|
+
})])
|
|
627
627
|
}),
|
|
628
628
|
|
|
629
629
|
/**
|
|
@@ -59,13 +59,13 @@ const SnackbarContentRoot = (0, _styled.default)(_Paper.default, {
|
|
|
59
59
|
const emphasis = theme.palette.mode === 'light' ? 0.8 : 0.98;
|
|
60
60
|
const backgroundColor = (0, _system.emphasize)(theme.palette.background.default, emphasis);
|
|
61
61
|
return (0, _extends2.default)({}, theme.typography.body2, {
|
|
62
|
-
color: theme.palette.getContrastText(backgroundColor),
|
|
63
|
-
backgroundColor,
|
|
62
|
+
color: theme.vars ? theme.vars.palette.SnackbarContent.color : theme.palette.getContrastText(backgroundColor),
|
|
63
|
+
backgroundColor: theme.vars ? theme.vars.palette.SnackbarContent.bg : backgroundColor,
|
|
64
64
|
display: 'flex',
|
|
65
65
|
alignItems: 'center',
|
|
66
66
|
flexWrap: 'wrap',
|
|
67
67
|
padding: '6px 16px',
|
|
68
|
-
borderRadius: theme.shape.borderRadius,
|
|
68
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
69
69
|
flexGrow: 1,
|
|
70
70
|
[theme.breakpoints.up('sm')]: {
|
|
71
71
|
flexGrow: 'initial',
|
|
@@ -70,10 +70,10 @@ const SpeedDialActionFab = (0, _styled.default)(_Fab.default, {
|
|
|
70
70
|
ownerState
|
|
71
71
|
}) => (0, _extends2.default)({
|
|
72
72
|
margin: 8,
|
|
73
|
-
color: theme.palette.text.secondary,
|
|
74
|
-
backgroundColor: theme.palette.background.paper,
|
|
73
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
74
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
75
75
|
'&:hover': {
|
|
76
|
-
backgroundColor: (0, _system.emphasize)(theme.palette.background.paper, 0.15)
|
|
76
|
+
backgroundColor: theme.vars ? theme.vars.palette.SpeedDialAction.fabHoverBg : (0, _system.emphasize)(theme.palette.background.paper, 0.15)
|
|
77
77
|
},
|
|
78
78
|
transition: `${theme.transitions.create('transform', {
|
|
79
79
|
duration: theme.transitions.duration.shorter
|
|
@@ -126,10 +126,10 @@ const SpeedDialActionStaticTooltipLabel = (0, _styled.default)('span', {
|
|
|
126
126
|
}) => (0, _extends2.default)({
|
|
127
127
|
position: 'absolute'
|
|
128
128
|
}, theme.typography.body1, {
|
|
129
|
-
backgroundColor: theme.palette.background.paper,
|
|
130
|
-
borderRadius: theme.shape.borderRadius,
|
|
131
|
-
boxShadow: theme.shadows[1],
|
|
132
|
-
color: theme.palette.text.secondary,
|
|
129
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
130
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
131
|
+
boxShadow: (theme.vars || theme).shadows[1],
|
|
132
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
133
133
|
padding: '4px 16px',
|
|
134
134
|
wordBreak: 'keep-all'
|
|
135
135
|
}));
|
|
@@ -89,17 +89,20 @@ const StepConnectorLine = (0, _styled.default)('span', {
|
|
|
89
89
|
})(({
|
|
90
90
|
ownerState,
|
|
91
91
|
theme
|
|
92
|
-
}) =>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
}) => {
|
|
93
|
+
const borderColor = theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600];
|
|
94
|
+
return (0, _extends2.default)({
|
|
95
|
+
display: 'block',
|
|
96
|
+
borderColor: theme.vars ? theme.vars.palette.StepConnector.border : borderColor
|
|
97
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
98
|
+
borderTopStyle: 'solid',
|
|
99
|
+
borderTopWidth: 1
|
|
100
|
+
}, ownerState.orientation === 'vertical' && {
|
|
101
|
+
borderLeftStyle: 'solid',
|
|
102
|
+
borderLeftWidth: 1,
|
|
103
|
+
minHeight: 24
|
|
104
|
+
});
|
|
105
|
+
});
|
|
103
106
|
const StepConnector = /*#__PURE__*/React.forwardRef(function StepConnector(inProps, ref) {
|
|
104
107
|
const props = (0, _useThemeProps.default)({
|
|
105
108
|
props: inProps,
|
|
@@ -69,7 +69,7 @@ const StepContentRoot = (0, _styled.default)('div', {
|
|
|
69
69
|
paddingLeft: 8 + 12,
|
|
70
70
|
// margin + half icon
|
|
71
71
|
paddingRight: 8,
|
|
72
|
-
borderLeft: `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
|
|
72
|
+
borderLeft: theme.vars ? `1px solid ${theme.vars.palette.StepContent.border}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[600]}`
|
|
73
73
|
}, ownerState.last && {
|
|
74
74
|
borderLeft: 'none'
|
|
75
75
|
}));
|