@mui/material 5.14.18 → 5.14.20

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.
Files changed (92) hide show
  1. package/Autocomplete/Autocomplete.js +9 -1
  2. package/Box/Box.js +2 -1
  3. package/Box/boxClasses.d.ts +7 -0
  4. package/Box/boxClasses.js +3 -0
  5. package/Box/index.d.ts +3 -0
  6. package/Box/index.js +3 -1
  7. package/CHANGELOG.md +126 -1
  8. package/Chip/Chip.js +2 -2
  9. package/FilledInput/FilledInput.js +1 -1
  10. package/InputAdornment/InputAdornment.js +2 -2
  11. package/InputLabel/InputLabel.js +5 -1
  12. package/Modal/Modal.d.ts +3 -0
  13. package/Modal/Modal.js +3 -0
  14. package/Popper/Popper.js +3 -0
  15. package/Select/Select.d.ts +1 -2
  16. package/Select/SelectInput.js +2 -1
  17. package/StepButton/StepButton.js +1 -1
  18. package/index.js +1 -1
  19. package/legacy/Accordion/Accordion.js +4 -5
  20. package/legacy/AccordionSummary/AccordionSummary.js +5 -6
  21. package/legacy/Autocomplete/Autocomplete.js +47 -39
  22. package/legacy/AvatarGroup/AvatarGroup.js +2 -3
  23. package/legacy/Box/Box.js +2 -1
  24. package/legacy/Box/boxClasses.js +3 -0
  25. package/legacy/Box/index.js +3 -1
  26. package/legacy/Button/Button.js +10 -11
  27. package/legacy/ButtonBase/ButtonBase.js +4 -5
  28. package/legacy/ButtonGroup/ButtonGroup.js +4 -5
  29. package/legacy/CardActionArea/CardActionArea.js +4 -5
  30. package/legacy/CardHeader/CardHeader.js +1 -2
  31. package/legacy/Checkbox/Checkbox.js +3 -4
  32. package/legacy/Chip/Chip.js +29 -32
  33. package/legacy/FilledInput/FilledInput.js +12 -12
  34. package/legacy/FormHelperText/FormHelperText.js +4 -5
  35. package/legacy/FormLabel/FormLabel.js +5 -6
  36. package/legacy/Input/Input.js +7 -8
  37. package/legacy/InputAdornment/InputAdornment.js +2 -2
  38. package/legacy/InputBase/InputBase.js +5 -6
  39. package/legacy/InputLabel/InputLabel.js +5 -1
  40. package/legacy/ListItem/ListItem.js +4 -5
  41. package/legacy/ListItemButton/ListItemButton.js +6 -7
  42. package/legacy/MenuItem/MenuItem.js +11 -12
  43. package/legacy/Modal/Modal.js +3 -0
  44. package/legacy/NativeSelect/NativeSelectInput.js +6 -7
  45. package/legacy/OutlinedInput/OutlinedInput.js +7 -8
  46. package/legacy/PaginationItem/PaginationItem.js +9 -10
  47. package/legacy/Popper/Popper.js +3 -0
  48. package/legacy/Rating/Rating.js +4 -5
  49. package/legacy/Select/SelectInput.js +2 -1
  50. package/legacy/Slider/Slider.js +11 -14
  51. package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -5
  52. package/legacy/StepButton/StepButton.js +1 -1
  53. package/legacy/StepIcon/StepIcon.js +5 -6
  54. package/legacy/StepLabel/StepLabel.js +10 -12
  55. package/legacy/Switch/Switch.js +14 -17
  56. package/legacy/Tab/Tab.js +10 -11
  57. package/legacy/TablePagination/TablePagination.js +6 -8
  58. package/legacy/TableRow/TableRow.js +4 -5
  59. package/legacy/Tabs/Tabs.js +1 -2
  60. package/legacy/ToggleButton/ToggleButton.js +4 -5
  61. package/legacy/Tooltip/Tooltip.js +10 -12
  62. package/legacy/index.js +1 -1
  63. package/legacy/styles/createMixins.js +4 -5
  64. package/modern/Autocomplete/Autocomplete.js +9 -1
  65. package/modern/Box/Box.js +2 -1
  66. package/modern/Box/boxClasses.js +3 -0
  67. package/modern/Box/index.js +3 -1
  68. package/modern/Chip/Chip.js +2 -2
  69. package/modern/FilledInput/FilledInput.js +1 -1
  70. package/modern/InputAdornment/InputAdornment.js +2 -2
  71. package/modern/InputLabel/InputLabel.js +5 -1
  72. package/modern/Modal/Modal.js +3 -0
  73. package/modern/Popper/Popper.js +3 -0
  74. package/modern/Select/SelectInput.js +2 -1
  75. package/modern/StepButton/StepButton.js +1 -1
  76. package/modern/index.js +1 -1
  77. package/node/Autocomplete/Autocomplete.js +9 -1
  78. package/node/Box/Box.js +2 -1
  79. package/node/Box/boxClasses.js +9 -0
  80. package/node/Box/index.js +24 -1
  81. package/node/Chip/Chip.js +2 -2
  82. package/node/FilledInput/FilledInput.js +1 -1
  83. package/node/InputAdornment/InputAdornment.js +2 -2
  84. package/node/InputLabel/InputLabel.js +5 -1
  85. package/node/Modal/Modal.js +3 -0
  86. package/node/Popper/Popper.js +3 -0
  87. package/node/Select/SelectInput.js +2 -1
  88. package/node/StepButton/StepButton.js +1 -1
  89. package/node/index.js +1 -1
  90. package/package.json +9 -9
  91. package/umd/material-ui.development.js +70 -58
  92. package/umd/material-ui.production.min.js +20 -20
@@ -34,16 +34,15 @@ var AvatarGroupRoot = styled('div', {
34
34
  return _extends(_defineProperty({}, "& .".concat(avatarGroupClasses.avatar), styles.avatar), styles.root);
35
35
  }
36
36
  })(function (_ref) {
37
- var _ref2;
38
37
  var theme = _ref.theme;
39
- return _ref2 = {}, _defineProperty(_ref2, "& .".concat(avatarClasses.root), {
38
+ return _defineProperty(_defineProperty(_defineProperty({}, "& .".concat(avatarClasses.root), {
40
39
  border: "2px solid ".concat((theme.vars || theme).palette.background.default),
41
40
  boxSizing: 'content-box',
42
41
  marginLeft: -8,
43
42
  '&:last-child': {
44
43
  marginLeft: 0
45
44
  }
46
- }), _defineProperty(_ref2, "display", 'flex'), _defineProperty(_ref2, "flexDirection", 'row-reverse'), _ref2;
45
+ }), "display", 'flex'), "flexDirection", 'row-reverse');
47
46
  });
48
47
  var AvatarGroupAvatar = styled(Avatar, {
49
48
  name: 'MuiAvatarGroup',
package/legacy/Box/Box.js CHANGED
@@ -5,11 +5,12 @@ import PropTypes from 'prop-types';
5
5
  import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
6
6
  import { createTheme } from '../styles';
7
7
  import THEME_ID from '../styles/identifier';
8
+ import boxClasses from './boxClasses';
8
9
  var defaultTheme = createTheme();
9
10
  var Box = createBox({
10
11
  themeId: THEME_ID,
11
12
  defaultTheme: defaultTheme,
12
- defaultClassName: 'MuiBox-root',
13
+ defaultClassName: boxClasses.root,
13
14
  generateClassName: ClassNameGenerator.generate
14
15
  });
15
16
  process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
@@ -0,0 +1,3 @@
1
+ import { unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
2
+ var boxClasses = generateUtilityClasses('MuiBox', ['root']);
3
+ export default boxClasses;
@@ -1,3 +1,5 @@
1
1
  'use client';
2
2
 
3
- export { default } from './Box';
3
+ export { default } from './Box';
4
+ export { default as boxClasses } from './boxClasses';
5
+ export * from './boxClasses';
@@ -60,12 +60,12 @@ var ButtonRoot = styled(ButtonBase, {
60
60
  return [styles.root, styles[ownerState.variant], styles["".concat(ownerState.variant).concat(capitalize(ownerState.color))], styles["size".concat(capitalize(ownerState.size))], styles["".concat(ownerState.variant, "Size").concat(capitalize(ownerState.size))], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
61
61
  }
62
62
  })(function (_ref) {
63
- var _extends2, _theme$palette$getCon, _theme$palette;
63
+ var _theme$palette$getCon, _theme$palette;
64
64
  var theme = _ref.theme,
65
65
  ownerState = _ref.ownerState;
66
66
  var inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
67
67
  var inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
68
- return _extends({}, theme.typography.button, (_extends2 = {
68
+ return _extends({}, theme.typography.button, _defineProperty(_defineProperty({
69
69
  minWidth: 64,
70
70
  padding: '6px 16px',
71
71
  borderRadius: (theme.vars || theme).shape.borderRadius,
@@ -110,9 +110,9 @@ var ButtonRoot = styled(ButtonBase, {
110
110
  '&:active': _extends({}, ownerState.variant === 'contained' && {
111
111
  boxShadow: (theme.vars || theme).shadows[8]
112
112
  })
113
- }, _defineProperty(_extends2, "&.".concat(buttonClasses.focusVisible), _extends({}, ownerState.variant === 'contained' && {
113
+ }, "&.".concat(buttonClasses.focusVisible), _extends({}, ownerState.variant === 'contained' && {
114
114
  boxShadow: (theme.vars || theme).shadows[6]
115
- })), _defineProperty(_extends2, "&.".concat(buttonClasses.disabled), _extends({
115
+ })), "&.".concat(buttonClasses.disabled), _extends({
116
116
  color: (theme.vars || theme).palette.action.disabled
117
117
  }, ownerState.variant === 'outlined' && {
118
118
  border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
@@ -120,7 +120,7 @@ var ButtonRoot = styled(ButtonBase, {
120
120
  color: (theme.vars || theme).palette.action.disabled,
121
121
  boxShadow: (theme.vars || theme).shadows[0],
122
122
  backgroundColor: (theme.vars || theme).palette.action.disabledBackground
123
- })), _extends2), ownerState.variant === 'text' && {
123
+ })), ownerState.variant === 'text' && {
124
124
  padding: '6px 8px'
125
125
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
126
126
  color: (theme.vars || theme).palette[ownerState.color].main
@@ -164,20 +164,19 @@ var ButtonRoot = styled(ButtonBase, {
164
164
  width: '100%'
165
165
  });
166
166
  }, function (_ref2) {
167
- var _ref3;
168
167
  var ownerState = _ref2.ownerState;
169
- return ownerState.disableElevation && (_ref3 = {
168
+ return ownerState.disableElevation && _defineProperty(_defineProperty(_defineProperty({
170
169
  boxShadow: 'none',
171
170
  '&:hover': {
172
171
  boxShadow: 'none'
173
172
  }
174
- }, _defineProperty(_ref3, "&.".concat(buttonClasses.focusVisible), {
173
+ }, "&.".concat(buttonClasses.focusVisible), {
175
174
  boxShadow: 'none'
176
- }), _defineProperty(_ref3, '&:active', {
175
+ }), '&:active', {
177
176
  boxShadow: 'none'
178
- }), _defineProperty(_ref3, "&.".concat(buttonClasses.disabled), {
177
+ }), "&.".concat(buttonClasses.disabled), {
179
178
  boxShadow: 'none'
180
- }), _ref3);
179
+ });
181
180
  });
182
181
  var ButtonStartIcon = styled('span', {
183
182
  name: 'MuiButton',
@@ -3,7 +3,6 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- var _styled;
7
6
  import * as React from 'react';
8
7
  import PropTypes from 'prop-types';
9
8
  import clsx from 'clsx';
@@ -38,7 +37,7 @@ export var ButtonBaseRoot = styled('button', {
38
37
  overridesResolver: function overridesResolver(props, styles) {
39
38
  return styles.root;
40
39
  }
41
- })((_styled = {
40
+ })(_defineProperty(_defineProperty({
42
41
  display: 'inline-flex',
43
42
  alignItems: 'center',
44
43
  justifyContent: 'center',
@@ -68,13 +67,13 @@ export var ButtonBaseRoot = styled('button', {
68
67
  '&::-moz-focus-inner': {
69
68
  borderStyle: 'none' // Remove Firefox dotted outline.
70
69
  }
71
- }, _defineProperty(_styled, "&.".concat(buttonBaseClasses.disabled), {
70
+ }, "&.".concat(buttonBaseClasses.disabled), {
72
71
  pointerEvents: 'none',
73
72
  // Disable link interactions
74
73
  cursor: 'default'
75
- }), _defineProperty(_styled, '@media print', {
74
+ }), '@media print', {
76
75
  colorAdjust: 'exact'
77
- }), _styled));
76
+ }));
78
77
 
79
78
  /**
80
79
  * `ButtonBase` contains as few styles as possible.
@@ -42,7 +42,6 @@ var ButtonGroupRoot = styled('div', {
42
42
  slot: 'Root',
43
43
  overridesResolver: overridesResolver
44
44
  })(function (_ref9) {
45
- var _extends2;
46
45
  var theme = _ref9.theme,
47
46
  ownerState = _ref9.ownerState;
48
47
  return _extends({
@@ -56,14 +55,14 @@ var ButtonGroupRoot = styled('div', {
56
55
  width: '100%'
57
56
  }, ownerState.orientation === 'vertical' && {
58
57
  flexDirection: 'column'
59
- }, (_extends2 = {}, _defineProperty(_extends2, "& .".concat(buttonGroupClasses.grouped), _extends({
58
+ }, _defineProperty(_defineProperty(_defineProperty({}, "& .".concat(buttonGroupClasses.grouped), _extends({
60
59
  minWidth: 40,
61
60
  '&:hover': _extends({}, ownerState.variant === 'contained' && {
62
61
  boxShadow: 'none'
63
62
  })
64
63
  }, ownerState.variant === 'contained' && {
65
64
  boxShadow: 'none'
66
- })), _defineProperty(_extends2, "& .".concat(buttonGroupClasses.firstButton, ",& .").concat(buttonGroupClasses.middleButton), _extends({}, ownerState.orientation === 'horizontal' && {
65
+ })), "& .".concat(buttonGroupClasses.firstButton, ",& .").concat(buttonGroupClasses.middleButton), _extends({}, ownerState.orientation === 'horizontal' && {
67
66
  borderTopRightRadius: 0,
68
67
  borderBottomRightRadius: 0
69
68
  }, ownerState.orientation === 'vertical' && {
@@ -99,7 +98,7 @@ var ButtonGroupRoot = styled('div', {
99
98
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
100
99
  borderBottomColor: 'currentColor'
101
100
  })
102
- })), _defineProperty(_extends2, "& .".concat(buttonGroupClasses.lastButton, ",& .").concat(buttonGroupClasses.middleButton), _extends({}, ownerState.orientation === 'horizontal' && {
101
+ })), "& .".concat(buttonGroupClasses.lastButton, ",& .").concat(buttonGroupClasses.middleButton), _extends({}, ownerState.orientation === 'horizontal' && {
103
102
  borderTopLeftRadius: 0,
104
103
  borderBottomLeftRadius: 0
105
104
  }, ownerState.orientation === 'vertical' && {
@@ -109,7 +108,7 @@ var ButtonGroupRoot = styled('div', {
109
108
  marginLeft: -1
110
109
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
111
110
  marginTop: -1
112
- })), _extends2));
111
+ })));
113
112
  });
114
113
  var ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {
115
114
  var props = useThemeProps({
@@ -28,22 +28,21 @@ var CardActionAreaRoot = styled(ButtonBase, {
28
28
  return styles.root;
29
29
  }
30
30
  })(function (_ref) {
31
- var _ref2;
32
31
  var theme = _ref.theme;
33
- return _ref2 = {
32
+ return _defineProperty(_defineProperty({
34
33
  display: 'block',
35
34
  textAlign: 'inherit',
36
35
  borderRadius: 'inherit',
37
36
  // for Safari to work https://github.com/mui/material-ui/issues/36285.
38
37
  width: '100%'
39
- }, _defineProperty(_ref2, "&:hover .".concat(cardActionAreaClasses.focusHighlight), {
38
+ }, "&:hover .".concat(cardActionAreaClasses.focusHighlight), {
40
39
  opacity: (theme.vars || theme).palette.action.hoverOpacity,
41
40
  '@media (hover: none)': {
42
41
  opacity: 0
43
42
  }
44
- }), _defineProperty(_ref2, "&.".concat(cardActionAreaClasses.focusVisible, " .").concat(cardActionAreaClasses.focusHighlight), {
43
+ }), "&.".concat(cardActionAreaClasses.focusVisible, " .").concat(cardActionAreaClasses.focusHighlight), {
45
44
  opacity: (theme.vars || theme).palette.action.focusOpacity
46
- }), _ref2;
45
+ });
47
46
  });
48
47
  var CardActionAreaFocusHighlight = styled('span', {
49
48
  name: 'MuiCardActionArea',
@@ -29,8 +29,7 @@ var CardHeaderRoot = styled('div', {
29
29
  name: 'MuiCardHeader',
30
30
  slot: 'Root',
31
31
  overridesResolver: function overridesResolver(props, styles) {
32
- var _extends2;
33
- return _extends((_extends2 = {}, _defineProperty(_extends2, "& .".concat(cardHeaderClasses.title), styles.title), _defineProperty(_extends2, "& .".concat(cardHeaderClasses.subheader), styles.subheader), _extends2), styles.root);
32
+ return _extends(_defineProperty(_defineProperty({}, "& .".concat(cardHeaderClasses.title), styles.title), "& .".concat(cardHeaderClasses.subheader), styles.subheader), styles.root);
34
33
  }
35
34
  })({
36
35
  display: 'flex',
@@ -40,7 +40,6 @@ var CheckboxRoot = styled(SwitchBase, {
40
40
  return [styles.root, ownerState.indeterminate && styles.indeterminate, styles["size".concat(capitalize(ownerState.size))], ownerState.color !== 'default' && styles["color".concat(capitalize(ownerState.color))]];
41
41
  }
42
42
  })(function (_ref) {
43
- var _ref2;
44
43
  var theme = _ref.theme,
45
44
  ownerState = _ref.ownerState;
46
45
  return _extends({
@@ -53,11 +52,11 @@ var CheckboxRoot = styled(SwitchBase, {
53
52
  backgroundColor: 'transparent'
54
53
  }
55
54
  }
56
- }, ownerState.color !== 'default' && (_ref2 = {}, _defineProperty(_ref2, "&.".concat(checkboxClasses.checked, ", &.").concat(checkboxClasses.indeterminate), {
55
+ }, ownerState.color !== 'default' && _defineProperty(_defineProperty({}, "&.".concat(checkboxClasses.checked, ", &.").concat(checkboxClasses.indeterminate), {
57
56
  color: (theme.vars || theme).palette[ownerState.color].main
58
- }), _defineProperty(_ref2, "&.".concat(checkboxClasses.disabled), {
57
+ }), "&.".concat(checkboxClasses.disabled), {
59
58
  color: (theme.vars || theme).palette.action.disabled
60
- }), _ref2));
59
+ }));
61
60
  });
62
61
  var defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});
63
62
  var defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});
@@ -50,11 +50,10 @@ var ChipRoot = styled('div', {
50
50
  return [_defineProperty({}, "& .".concat(chipClasses.avatar), styles.avatar), _defineProperty({}, "& .".concat(chipClasses.avatar), styles["avatar".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.avatar), styles["avatarColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.icon), styles.icon), _defineProperty({}, "& .".concat(chipClasses.icon), styles["icon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.icon), styles["iconColor".concat(capitalize(iconColor))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles.deleteIcon), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIcon".concat(capitalize(size))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIconColor".concat(capitalize(color))]), _defineProperty({}, "& .".concat(chipClasses.deleteIcon), styles["deleteIcon".concat(capitalize(variant), "Color").concat(capitalize(color))]), styles.root, styles["size".concat(capitalize(size))], styles["color".concat(capitalize(color))], clickable && styles.clickable, clickable && color !== 'default' && styles["clickableColor".concat(capitalize(color), ")")], onDelete && styles.deletable, onDelete && color !== 'default' && styles["deletableColor".concat(capitalize(color))], styles[variant], styles["".concat(variant).concat(capitalize(color))]];
51
51
  }
52
52
  })(function (_ref11) {
53
- var _extends2;
54
53
  var theme = _ref11.theme,
55
54
  ownerState = _ref11.ownerState;
56
55
  var textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
57
- return _extends((_extends2 = {
56
+ return _extends(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
58
57
  maxWidth: '100%',
59
58
  fontFamily: theme.typography.fontFamily,
60
59
  fontSize: theme.typography.pxToRem(13),
@@ -78,29 +77,29 @@ var ChipRoot = styled('div', {
78
77
  // Remove `button` padding
79
78
  verticalAlign: 'middle',
80
79
  boxSizing: 'border-box'
81
- }, _defineProperty(_extends2, "&.".concat(chipClasses.disabled), {
80
+ }, "&.".concat(chipClasses.disabled), {
82
81
  opacity: (theme.vars || theme).palette.action.disabledOpacity,
83
82
  pointerEvents: 'none'
84
- }), _defineProperty(_extends2, "& .".concat(chipClasses.avatar), {
83
+ }), "& .".concat(chipClasses.avatar), {
85
84
  marginLeft: 5,
86
85
  marginRight: -6,
87
86
  width: 24,
88
87
  height: 24,
89
88
  color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
90
89
  fontSize: theme.typography.pxToRem(12)
91
- }), _defineProperty(_extends2, "& .".concat(chipClasses.avatarColorPrimary), {
90
+ }), "& .".concat(chipClasses.avatarColorPrimary), {
92
91
  color: (theme.vars || theme).palette.primary.contrastText,
93
92
  backgroundColor: (theme.vars || theme).palette.primary.dark
94
- }), _defineProperty(_extends2, "& .".concat(chipClasses.avatarColorSecondary), {
93
+ }), "& .".concat(chipClasses.avatarColorSecondary), {
95
94
  color: (theme.vars || theme).palette.secondary.contrastText,
96
95
  backgroundColor: (theme.vars || theme).palette.secondary.dark
97
- }), _defineProperty(_extends2, "& .".concat(chipClasses.avatarSmall), {
96
+ }), "& .".concat(chipClasses.avatarSmall), {
98
97
  marginLeft: 4,
99
98
  marginRight: -4,
100
99
  width: 18,
101
100
  height: 18,
102
101
  fontSize: theme.typography.pxToRem(10)
103
- }), _defineProperty(_extends2, "& .".concat(chipClasses.icon), _extends({
102
+ }), "& .".concat(chipClasses.icon), _extends({
104
103
  marginLeft: 5,
105
104
  marginRight: -6
106
105
  }, ownerState.size === 'small' && {
@@ -111,7 +110,7 @@ var ChipRoot = styled('div', {
111
110
  color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
112
111
  }, ownerState.color !== 'default' && {
113
112
  color: 'inherit'
114
- }))), _defineProperty(_extends2, "& .".concat(chipClasses.deleteIcon), _extends({
113
+ }))), "& .".concat(chipClasses.deleteIcon), _extends({
115
114
  WebkitTapHighlightColor: 'transparent',
116
115
  color: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / 0.26)") : alpha(theme.palette.text.primary, 0.26),
117
116
  fontSize: 22,
@@ -129,7 +128,7 @@ var ChipRoot = styled('div', {
129
128
  '&:hover, &:active': {
130
129
  color: (theme.vars || theme).palette[ownerState.color].contrastText
131
130
  }
132
- })), _extends2), ownerState.size === 'small' && {
131
+ })), ownerState.size === 'small' && {
133
132
  height: 24
134
133
  }, ownerState.color !== 'default' && {
135
134
  backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
@@ -140,59 +139,57 @@ var ChipRoot = styled('div', {
140
139
  backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
141
140
  }));
142
141
  }, function (_ref14) {
143
- var _ref15;
144
142
  var theme = _ref14.theme,
145
143
  ownerState = _ref14.ownerState;
146
- return _extends({}, ownerState.clickable && (_ref15 = {
144
+ return _extends({}, ownerState.clickable && _defineProperty(_defineProperty({
147
145
  userSelect: 'none',
148
146
  WebkitTapHighlightColor: 'transparent',
149
147
  cursor: 'pointer',
150
148
  '&:hover': {
151
149
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
152
150
  }
153
- }, _defineProperty(_ref15, "&.".concat(chipClasses.focusVisible), {
151
+ }, "&.".concat(chipClasses.focusVisible), {
154
152
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selectedChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
155
- }), _defineProperty(_ref15, '&:active', {
153
+ }), '&:active', {
156
154
  boxShadow: (theme.vars || theme).shadows[1]
157
- }), _ref15), ownerState.clickable && ownerState.color !== 'default' && _defineProperty({}, "&:hover, &.".concat(chipClasses.focusVisible), {
155
+ }), ownerState.clickable && ownerState.color !== 'default' && _defineProperty({}, "&:hover, &.".concat(chipClasses.focusVisible), {
158
156
  backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
159
157
  }));
160
158
  }, function (_ref17) {
161
- var _ref18, _ref19;
162
159
  var theme = _ref17.theme,
163
160
  ownerState = _ref17.ownerState;
164
- return _extends({}, ownerState.variant === 'outlined' && (_ref18 = {
161
+ return _extends({}, ownerState.variant === 'outlined' && _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
165
162
  backgroundColor: 'transparent',
166
163
  border: theme.vars ? "1px solid ".concat(theme.vars.palette.Chip.defaultBorder) : "1px solid ".concat(theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700])
167
- }, _defineProperty(_ref18, "&.".concat(chipClasses.clickable, ":hover"), {
164
+ }, "&.".concat(chipClasses.clickable, ":hover"), {
168
165
  backgroundColor: (theme.vars || theme).palette.action.hover
169
- }), _defineProperty(_ref18, "&.".concat(chipClasses.focusVisible), {
166
+ }), "&.".concat(chipClasses.focusVisible), {
170
167
  backgroundColor: (theme.vars || theme).palette.action.focus
171
- }), _defineProperty(_ref18, "& .".concat(chipClasses.avatar), {
168
+ }), "& .".concat(chipClasses.avatar), {
172
169
  marginLeft: 4
173
- }), _defineProperty(_ref18, "& .".concat(chipClasses.avatarSmall), {
170
+ }), "& .".concat(chipClasses.avatarSmall), {
174
171
  marginLeft: 2
175
- }), _defineProperty(_ref18, "& .".concat(chipClasses.icon), {
172
+ }), "& .".concat(chipClasses.icon), {
176
173
  marginLeft: 4
177
- }), _defineProperty(_ref18, "& .".concat(chipClasses.iconSmall), {
174
+ }), "& .".concat(chipClasses.iconSmall), {
178
175
  marginLeft: 2
179
- }), _defineProperty(_ref18, "& .".concat(chipClasses.deleteIcon), {
176
+ }), "& .".concat(chipClasses.deleteIcon), {
180
177
  marginRight: 5
181
- }), _defineProperty(_ref18, "& .".concat(chipClasses.deleteIconSmall), {
178
+ }), "& .".concat(chipClasses.deleteIconSmall), {
182
179
  marginRight: 3
183
- }), _ref18), ownerState.variant === 'outlined' && ownerState.color !== 'default' && (_ref19 = {
180
+ }), ownerState.variant === 'outlined' && ownerState.color !== 'default' && _defineProperty(_defineProperty(_defineProperty({
184
181
  color: (theme.vars || theme).palette[ownerState.color].main,
185
182
  border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.7)") : alpha(theme.palette[ownerState.color].main, 0.7))
186
- }, _defineProperty(_ref19, "&.".concat(chipClasses.clickable, ":hover"), {
183
+ }, "&.".concat(chipClasses.clickable, ":hover"), {
187
184
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity)
188
- }), _defineProperty(_ref19, "&.".concat(chipClasses.focusVisible), {
185
+ }), "&.".concat(chipClasses.focusVisible), {
189
186
  backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.focusOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
190
- }), _defineProperty(_ref19, "& .".concat(chipClasses.deleteIcon), {
187
+ }), "& .".concat(chipClasses.deleteIcon), {
191
188
  color: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.7)") : alpha(theme.palette[ownerState.color].main, 0.7),
192
189
  '&:hover, &:active': {
193
190
  color: (theme.vars || theme).palette[ownerState.color].main
194
191
  }
195
- }), _ref19));
192
+ }));
196
193
  });
197
194
  var ChipLabel = styled('span', {
198
195
  name: 'MuiChip',
@@ -310,10 +307,10 @@ var Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
310
307
  }) : {};
311
308
  var deleteIcon = null;
312
309
  if (onDelete) {
313
- deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
310
+ deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? ( /*#__PURE__*/React.cloneElement(deleteIconProp, {
314
311
  className: clsx(deleteIconProp.props.className, classes.deleteIcon),
315
312
  onClick: handleDeleteIconClick
316
- }) : /*#__PURE__*/_jsx(CancelIcon, {
313
+ })) : /*#__PURE__*/_jsx(CancelIcon, {
317
314
  className: clsx(classes.deleteIcon),
318
315
  onClick: handleDeleteIconClick
319
316
  });
@@ -35,7 +35,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
35
35
  return [].concat(_toConsumableArray(inputBaseRootOverridesResolver(props, styles)), [!ownerState.disableUnderline && styles.underline]);
36
36
  }
37
37
  })(function (_ref) {
38
- var _extends2, _palette, _ref2;
38
+ var _palette;
39
39
  var theme = _ref.theme,
40
40
  ownerState = _ref.ownerState;
41
41
  var light = theme.palette.mode === 'light';
@@ -43,7 +43,7 @@ var FilledInputRoot = styled(InputBaseRoot, {
43
43
  var backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
44
44
  var hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';
45
45
  var disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';
46
- return _extends((_extends2 = {
46
+ return _extends(_defineProperty(_defineProperty({
47
47
  position: 'relative',
48
48
  backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,
49
49
  borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
@@ -59,11 +59,11 @@ var FilledInputRoot = styled(InputBaseRoot, {
59
59
  backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
60
60
  }
61
61
  }
62
- }, _defineProperty(_extends2, "&.".concat(filledInputClasses.focused), {
62
+ }, "&.".concat(filledInputClasses.focused), {
63
63
  backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor
64
- }), _defineProperty(_extends2, "&.".concat(filledInputClasses.disabled), {
64
+ }), "&.".concat(filledInputClasses.disabled), {
65
65
  backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
66
- }), _extends2), !ownerState.disableUnderline && (_ref2 = {
66
+ }), !ownerState.disableUnderline && _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
67
67
  '&:after': {
68
68
  borderBottom: "2px solid ".concat((_palette = (theme.vars || theme).palette[ownerState.color || 'primary']) == null ? void 0 : _palette.main),
69
69
  left: 0,
@@ -79,15 +79,15 @@ var FilledInputRoot = styled(InputBaseRoot, {
79
79
  }),
80
80
  pointerEvents: 'none' // Transparent to the hover style.
81
81
  }
82
- }, _defineProperty(_ref2, "&.".concat(filledInputClasses.focused, ":after"), {
82
+ }, "&.".concat(filledInputClasses.focused, ":after"), {
83
83
  // translateX(0) is a workaround for Safari transform scale bug
84
84
  // See https://github.com/mui/material-ui/issues/31766
85
85
  transform: 'scaleX(1) translateX(0)'
86
- }), _defineProperty(_ref2, "&.".concat(filledInputClasses.error), {
86
+ }), "&.".concat(filledInputClasses.error), {
87
87
  '&:before, &:after': {
88
88
  borderBottomColor: (theme.vars || theme).palette.error.main
89
89
  }
90
- }), _defineProperty(_ref2, '&:before', {
90
+ }), '&:before', {
91
91
  borderBottom: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputUnderline, ")") : bottomLineColor),
92
92
  left: 0,
93
93
  bottom: 0,
@@ -99,11 +99,11 @@ var FilledInputRoot = styled(InputBaseRoot, {
99
99
  duration: theme.transitions.duration.shorter
100
100
  }),
101
101
  pointerEvents: 'none' // Transparent to the hover style.
102
- }), _defineProperty(_ref2, "&:hover:not(.".concat(filledInputClasses.disabled, ", .").concat(filledInputClasses.error, "):before"), {
102
+ }), "&:hover:not(.".concat(filledInputClasses.disabled, ", .").concat(filledInputClasses.error, "):before"), {
103
103
  borderBottom: "1px solid ".concat((theme.vars || theme).palette.text.primary)
104
- }), _defineProperty(_ref2, "&.".concat(filledInputClasses.disabled, ":before"), {
104
+ }), "&.".concat(filledInputClasses.disabled, ":before"), {
105
105
  borderBottomStyle: 'dotted'
106
- }), _ref2), ownerState.startAdornment && {
106
+ }), ownerState.startAdornment && {
107
107
  paddingLeft: 12
108
108
  }, ownerState.endAdornment && {
109
109
  paddingRight: 12
@@ -209,7 +209,7 @@ var FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, re
209
209
  ownerState: ownerState
210
210
  }
211
211
  };
212
- var componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(slotProps != null ? slotProps : componentsPropsProp, filledInputComponentsProps) : filledInputComponentsProps;
212
+ var componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(filledInputComponentsProps, slotProps != null ? slotProps : componentsPropsProp) : filledInputComponentsProps;
213
213
  var RootSlot = (_ref5 = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref5 : FilledInputRoot;
214
214
  var InputSlot = (_ref6 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref6 : FilledInputInput;
215
215
  return /*#__PURE__*/_jsx(InputBase, _extends({
@@ -37,22 +37,21 @@ var FormHelperTextRoot = styled('p', {
37
37
  return [styles.root, ownerState.size && styles["size".concat(capitalize(ownerState.size))], ownerState.contained && styles.contained, ownerState.filled && styles.filled];
38
38
  }
39
39
  })(function (_ref) {
40
- var _extends2;
41
40
  var theme = _ref.theme,
42
41
  ownerState = _ref.ownerState;
43
42
  return _extends({
44
43
  color: (theme.vars || theme).palette.text.secondary
45
- }, theme.typography.caption, (_extends2 = {
44
+ }, theme.typography.caption, _defineProperty(_defineProperty({
46
45
  textAlign: 'left',
47
46
  marginTop: 3,
48
47
  marginRight: 0,
49
48
  marginBottom: 0,
50
49
  marginLeft: 0
51
- }, _defineProperty(_extends2, "&.".concat(formHelperTextClasses.disabled), {
50
+ }, "&.".concat(formHelperTextClasses.disabled), {
52
51
  color: (theme.vars || theme).palette.text.disabled
53
- }), _defineProperty(_extends2, "&.".concat(formHelperTextClasses.error), {
52
+ }), "&.".concat(formHelperTextClasses.error), {
54
53
  color: (theme.vars || theme).palette.error.main
55
- }), _extends2), ownerState.size === 'small' && {
54
+ }), ownerState.size === 'small' && {
56
55
  marginTop: 4
57
56
  }, ownerState.contained && {
58
57
  marginLeft: 14,
@@ -36,22 +36,21 @@ export var FormLabelRoot = styled('label', {
36
36
  return _extends({}, styles.root, ownerState.color === 'secondary' && styles.colorSecondary, ownerState.filled && styles.filled);
37
37
  }
38
38
  })(function (_ref2) {
39
- var _extends2;
40
39
  var theme = _ref2.theme,
41
40
  ownerState = _ref2.ownerState;
42
41
  return _extends({
43
42
  color: (theme.vars || theme).palette.text.secondary
44
- }, theme.typography.body1, (_extends2 = {
43
+ }, theme.typography.body1, _defineProperty(_defineProperty(_defineProperty({
45
44
  lineHeight: '1.4375em',
46
45
  padding: 0,
47
46
  position: 'relative'
48
- }, _defineProperty(_extends2, "&.".concat(formLabelClasses.focused), {
47
+ }, "&.".concat(formLabelClasses.focused), {
49
48
  color: (theme.vars || theme).palette[ownerState.color].main
50
- }), _defineProperty(_extends2, "&.".concat(formLabelClasses.disabled), {
49
+ }), "&.".concat(formLabelClasses.disabled), {
51
50
  color: (theme.vars || theme).palette.text.disabled
52
- }), _defineProperty(_extends2, "&.".concat(formLabelClasses.error), {
51
+ }), "&.".concat(formLabelClasses.error), {
53
52
  color: (theme.vars || theme).palette.error.main
54
- }), _extends2));
53
+ }));
55
54
  });
56
55
  var AsteriskComponent = styled('span', {
57
56
  name: 'MuiFormLabel',
@@ -35,7 +35,6 @@ var InputRoot = styled(InputBaseRoot, {
35
35
  return [].concat(_toConsumableArray(inputBaseRootOverridesResolver(props, styles)), [!ownerState.disableUnderline && styles.underline]);
36
36
  }
37
37
  })(function (_ref) {
38
- var _ref2;
39
38
  var theme = _ref.theme,
40
39
  ownerState = _ref.ownerState;
41
40
  var light = theme.palette.mode === 'light';
@@ -49,7 +48,7 @@ var InputRoot = styled(InputBaseRoot, {
49
48
  'label + &': {
50
49
  marginTop: 16
51
50
  }
52
- }, !ownerState.disableUnderline && (_ref2 = {
51
+ }, !ownerState.disableUnderline && _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
53
52
  '&:after': {
54
53
  borderBottom: "2px solid ".concat((theme.vars || theme).palette[ownerState.color].main),
55
54
  left: 0,
@@ -65,15 +64,15 @@ var InputRoot = styled(InputBaseRoot, {
65
64
  }),
66
65
  pointerEvents: 'none' // Transparent to the hover style.
67
66
  }
68
- }, _defineProperty(_ref2, "&.".concat(inputClasses.focused, ":after"), {
67
+ }, "&.".concat(inputClasses.focused, ":after"), {
69
68
  // translateX(0) is a workaround for Safari transform scale bug
70
69
  // See https://github.com/mui/material-ui/issues/31766
71
70
  transform: 'scaleX(1) translateX(0)'
72
- }), _defineProperty(_ref2, "&.".concat(inputClasses.error), {
71
+ }), "&.".concat(inputClasses.error), {
73
72
  '&:before, &:after': {
74
73
  borderBottomColor: (theme.vars || theme).palette.error.main
75
74
  }
76
- }), _defineProperty(_ref2, '&:before', {
75
+ }), '&:before', {
77
76
  borderBottom: "1px solid ".concat(bottomLineColor),
78
77
  left: 0,
79
78
  bottom: 0,
@@ -85,15 +84,15 @@ var InputRoot = styled(InputBaseRoot, {
85
84
  duration: theme.transitions.duration.shorter
86
85
  }),
87
86
  pointerEvents: 'none' // Transparent to the hover style.
88
- }), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, ", .").concat(inputClasses.error, "):before"), {
87
+ }), "&:hover:not(.".concat(inputClasses.disabled, ", .").concat(inputClasses.error, "):before"), {
89
88
  borderBottom: "2px solid ".concat((theme.vars || theme).palette.text.primary),
90
89
  // Reset on touch devices, it doesn't add specificity
91
90
  '@media (hover: none)': {
92
91
  borderBottom: "1px solid ".concat(bottomLineColor)
93
92
  }
94
- }), _defineProperty(_ref2, "&.".concat(inputClasses.disabled, ":before"), {
93
+ }), "&.".concat(inputClasses.disabled, ":before"), {
95
94
  borderBottomStyle: 'dotted'
96
- }), _ref2));
95
+ }));
97
96
  });
98
97
  var InputInput = styled(InputBaseInput, {
99
98
  name: 'MuiInput',
@@ -109,10 +109,10 @@ var InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inPro
109
109
  color: "text.secondary",
110
110
  children: children
111
111
  }) : /*#__PURE__*/_jsxs(React.Fragment, {
112
- children: [position === 'start' ? /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
112
+ children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
113
113
  className: "notranslate",
114
114
  children: "\u200B"
115
- })) : null, children]
115
+ }))) : null, children]
116
116
  })
117
117
  }))
118
118
  });