@mui/material 6.0.0-alpha.0 → 6.0.0-alpha.1

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 (77) hide show
  1. package/AppBar/AppBar.js +118 -68
  2. package/Badge/Badge.d.ts +2 -4
  3. package/Badge/Badge.js +2 -4
  4. package/Button/Button.js +220 -131
  5. package/ButtonBase/ButtonBase.js +2 -2
  6. package/ButtonBase/Ripple.js +1 -1
  7. package/ButtonBase/TouchRipple.js +3 -4
  8. package/ButtonGroup/ButtonGroup.js +167 -70
  9. package/CHANGELOG.md +129 -2
  10. package/Grid/Grid.js +3 -0
  11. package/RadioGroup/RadioGroup.d.ts +0 -2
  12. package/RadioGroup/RadioGroup.js +23 -2
  13. package/RadioGroup/index.d.ts +3 -0
  14. package/RadioGroup/index.js +3 -1
  15. package/RadioGroup/radioGroupClasses.d.ts +6 -0
  16. package/RadioGroup/radioGroupClasses.js +7 -0
  17. package/Slider/Slider.js +22 -22
  18. package/Table/Table.d.ts +0 -2
  19. package/Table/Table.js +0 -2
  20. package/index.js +1 -1
  21. package/legacy/AppBar/AppBar.js +124 -64
  22. package/legacy/Badge/Badge.js +2 -4
  23. package/legacy/Button/Button.js +218 -123
  24. package/legacy/ButtonBase/ButtonBase.js +2 -2
  25. package/legacy/ButtonBase/Ripple.js +1 -1
  26. package/legacy/ButtonBase/TouchRipple.js +3 -4
  27. package/legacy/ButtonGroup/ButtonGroup.js +163 -68
  28. package/legacy/Grid/Grid.js +3 -0
  29. package/legacy/RadioGroup/RadioGroup.js +21 -2
  30. package/legacy/RadioGroup/index.js +3 -1
  31. package/legacy/RadioGroup/radioGroupClasses.js +7 -0
  32. package/legacy/Slider/Slider.js +24 -24
  33. package/legacy/Table/Table.js +0 -2
  34. package/legacy/index.js +1 -1
  35. package/legacy/styles/experimental_extendTheme.js +24 -2
  36. package/legacy/zero-styled/index.js +1 -0
  37. package/modern/AppBar/AppBar.js +118 -68
  38. package/modern/Badge/Badge.js +2 -4
  39. package/modern/Button/Button.js +220 -131
  40. package/modern/ButtonBase/ButtonBase.js +2 -2
  41. package/modern/ButtonBase/Ripple.js +1 -1
  42. package/modern/ButtonBase/TouchRipple.js +3 -4
  43. package/modern/ButtonGroup/ButtonGroup.js +167 -70
  44. package/modern/Grid/Grid.js +3 -0
  45. package/modern/RadioGroup/RadioGroup.js +23 -2
  46. package/modern/RadioGroup/index.js +3 -1
  47. package/modern/RadioGroup/radioGroupClasses.js +7 -0
  48. package/modern/Slider/Slider.js +22 -22
  49. package/modern/Table/Table.js +0 -2
  50. package/modern/index.js +1 -1
  51. package/modern/styles/experimental_extendTheme.js +24 -2
  52. package/modern/zero-styled/index.js +1 -0
  53. package/node/AppBar/AppBar.js +125 -66
  54. package/node/Badge/Badge.js +2 -4
  55. package/node/Button/Button.js +224 -135
  56. package/node/ButtonBase/ButtonBase.js +4 -4
  57. package/node/ButtonBase/Ripple.js +1 -1
  58. package/node/ButtonBase/TouchRipple.js +9 -10
  59. package/node/ButtonGroup/ButtonGroup.js +169 -72
  60. package/node/Grid/Grid.js +3 -0
  61. package/node/RadioGroup/RadioGroup.js +23 -2
  62. package/node/RadioGroup/index.js +25 -1
  63. package/node/RadioGroup/radioGroupClasses.js +15 -0
  64. package/node/Slider/Slider.js +25 -25
  65. package/node/Table/Table.js +0 -2
  66. package/node/index.js +1 -1
  67. package/node/styles/experimental_extendTheme.js +24 -2
  68. package/node/zero-styled/index.js +7 -0
  69. package/package.json +7 -7
  70. package/styles/components.d.ts +5 -0
  71. package/styles/experimental_extendTheme.d.ts +2 -0
  72. package/styles/experimental_extendTheme.js +24 -2
  73. package/styles/overrides.d.ts +2 -0
  74. package/umd/material-ui.development.js +888 -593
  75. package/umd/material-ui.production.min.js +4 -4
  76. package/zero-styled/index.d.ts +1 -0
  77. package/zero-styled/index.js +1 -0
@@ -1,7 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
5
7
  import _extends from "@babel/runtime/helpers/esm/extends";
6
8
  import * as React from 'react';
7
9
  import PropTypes from 'prop-types';
@@ -9,14 +11,15 @@ import clsx from 'clsx';
9
11
  import resolveProps from '@mui/utils/resolveProps';
10
12
  import composeClasses from '@mui/utils/composeClasses';
11
13
  import { alpha } from '@mui/system/colorManipulator';
12
- import styled, { rootShouldForwardProp } from '../styles/styled';
13
- import useThemeProps from '../styles/useThemeProps';
14
+ import { rootShouldForwardProp } from '../styles/styled';
15
+ import { styled, createUseThemeProps } from '../zero-styled';
14
16
  import ButtonBase from '../ButtonBase';
15
17
  import capitalize from '../utils/capitalize';
16
18
  import buttonClasses, { getButtonUtilityClass } from './buttonClasses';
17
19
  import ButtonGroupContext from '../ButtonGroup/ButtonGroupContext';
18
20
  import ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext';
19
21
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ var useThemeProps = createUseThemeProps('MuiButton');
20
23
  var useUtilityClasses = function useUtilityClasses(ownerState) {
21
24
  var color = ownerState.color,
22
25
  disableElevation = ownerState.disableElevation,
@@ -33,21 +36,34 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
33
36
  var composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
34
37
  return _extends({}, classes, composedClasses);
35
38
  };
36
- var commonIconStyles = function commonIconStyles(ownerState) {
37
- return _extends({}, ownerState.size === 'small' && {
39
+ var commonIconStyles = [{
40
+ props: {
41
+ size: 'small'
42
+ },
43
+ style: {
38
44
  '& > *:nth-of-type(1)': {
39
45
  fontSize: 18
40
46
  }
41
- }, ownerState.size === 'medium' && {
47
+ }
48
+ }, {
49
+ props: {
50
+ size: 'medium'
51
+ },
52
+ style: {
42
53
  '& > *:nth-of-type(1)': {
43
54
  fontSize: 20
44
55
  }
45
- }, ownerState.size === 'large' && {
56
+ }
57
+ }, {
58
+ props: {
59
+ size: 'large'
60
+ },
61
+ style: {
46
62
  '& > *:nth-of-type(1)': {
47
63
  fontSize: 22
48
64
  }
49
- });
50
- };
65
+ }
66
+ }];
51
67
  var ButtonRoot = styled(ButtonBase, {
52
68
  shouldForwardProp: function shouldForwardProp(prop) {
53
69
  return rootShouldForwardProp(prop) || prop === 'classes';
@@ -60,122 +76,191 @@ var ButtonRoot = styled(ButtonBase, {
60
76
  }
61
77
  })(function (_ref) {
62
78
  var _theme$palette$getCon, _theme$palette;
63
- var theme = _ref.theme,
64
- ownerState = _ref.ownerState;
79
+ var theme = _ref.theme;
65
80
  var inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
66
81
  var inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
67
82
  return _extends({}, theme.typography.button, _defineProperty(_defineProperty({
68
83
  minWidth: 64,
69
84
  padding: '6px 16px',
85
+ border: 0,
70
86
  borderRadius: (theme.vars || theme).shape.borderRadius,
71
87
  transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
72
88
  duration: theme.transitions.duration.short
73
89
  }),
74
- '&:hover': _extends({
75
- textDecoration: 'none',
76
- backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
77
- // Reset on touch devices, it doesn't add specificity
78
- '@media (hover: none)': {
79
- backgroundColor: 'transparent'
80
- }
81
- }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
82
- 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),
83
- // Reset on touch devices, it doesn't add specificity
84
- '@media (hover: none)': {
85
- backgroundColor: 'transparent'
90
+ '&:hover': {
91
+ textDecoration: 'none'
92
+ }
93
+ }, "&.".concat(buttonClasses.disabled), {
94
+ color: (theme.vars || theme).palette.action.disabled
95
+ }), "variants", [{
96
+ props: {
97
+ variant: 'contained'
98
+ },
99
+ style: _defineProperty(_defineProperty({
100
+ color: "var(--variant-containedColor)",
101
+ backgroundColor: "var(--variant-containedBg)",
102
+ boxShadow: (theme.vars || theme).shadows[2],
103
+ '&:hover': {
104
+ boxShadow: (theme.vars || theme).shadows[4],
105
+ // Reset on touch devices, it doesn't add specificity
106
+ '@media (hover: none)': {
107
+ boxShadow: (theme.vars || theme).shadows[2]
108
+ }
109
+ },
110
+ '&:active': {
111
+ boxShadow: (theme.vars || theme).shadows[8]
86
112
  }
87
- }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
88
- border: "1px solid ".concat((theme.vars || theme).palette[ownerState.color].main),
89
- 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),
90
- // Reset on touch devices, it doesn't add specificity
91
- '@media (hover: none)': {
92
- backgroundColor: 'transparent'
113
+ }, "&.".concat(buttonClasses.focusVisible), {
114
+ boxShadow: (theme.vars || theme).shadows[6]
115
+ }), "&.".concat(buttonClasses.disabled), {
116
+ color: (theme.vars || theme).palette.action.disabled,
117
+ boxShadow: (theme.vars || theme).shadows[0],
118
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
119
+ })
120
+ }, {
121
+ props: {
122
+ variant: 'outlined'
123
+ },
124
+ style: _defineProperty({
125
+ padding: '5px 15px',
126
+ border: '1px solid currentColor',
127
+ borderColor: "var(--variant-outlinedBorder, currentColor)",
128
+ backgroundColor: "var(--variant-outlinedBg)",
129
+ color: "var(--variant-outlinedColor)"
130
+ }, "&.".concat(buttonClasses.disabled), {
131
+ border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
132
+ })
133
+ }, {
134
+ props: {
135
+ variant: 'text'
136
+ },
137
+ style: {
138
+ padding: '6px 8px',
139
+ color: "var(--variant-textColor)",
140
+ backgroundColor: "var(--variant-textBg)"
141
+ }
142
+ }].concat(_toConsumableArray(Object.entries(theme.palette).filter(function (_ref2) {
143
+ var _ref3 = _slicedToArray(_ref2, 2),
144
+ palette = _ref3[1];
145
+ return palette.main && palette.dark && palette.contrastText;
146
+ }).map(function (_ref4) {
147
+ var _ref5 = _slicedToArray(_ref4, 1),
148
+ color = _ref5[0];
149
+ return {
150
+ props: {
151
+ color: color
152
+ },
153
+ style: {
154
+ '--variant-textColor': (theme.vars || theme).palette[color].main,
155
+ '--variant-outlinedColor': (theme.vars || theme).palette[color].main,
156
+ '--variant-outlinedBorder': theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / 0.5)") : alpha(theme.palette[color].main, 0.5),
157
+ '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,
158
+ '--variant-containedBg': (theme.vars || theme).palette[color].main,
159
+ '@media (hover: hover)': {
160
+ '&:hover': {
161
+ '--variant-containedBg': (theme.vars || theme).palette[color].dark,
162
+ '--variant-textBg': theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),
163
+ '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,
164
+ '--variant-outlinedBg': theme.vars ? "rgba(".concat(theme.vars.palette[color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity)
165
+ }
166
+ }
93
167
  }
94
- }, ownerState.variant === 'contained' && {
95
- backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
96
- boxShadow: (theme.vars || theme).shadows[4],
97
- // Reset on touch devices, it doesn't add specificity
98
- '@media (hover: none)': {
99
- boxShadow: (theme.vars || theme).shadows[2],
100
- backgroundColor: (theme.vars || theme).palette.grey[300]
168
+ };
169
+ })), [{
170
+ props: {
171
+ color: 'inherit'
172
+ },
173
+ style: {
174
+ '--variant-containedColor': theme.vars ?
175
+ // this is safe because grey does not change between default light/dark mode
176
+ theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, inheritContainedBackgroundColor),
177
+ '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
178
+ '@media (hover: hover)': {
179
+ '&:hover': {
180
+ '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
181
+ '--variant-textBg': theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
182
+ '--variant-outlinedBg': theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity)
183
+ }
101
184
  }
102
- }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
103
- backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
104
- // Reset on touch devices, it doesn't add specificity
105
- '@media (hover: none)': {
106
- backgroundColor: (theme.vars || theme).palette[ownerState.color].main
185
+ }
186
+ }, {
187
+ props: {
188
+ size: 'small',
189
+ variant: 'text'
190
+ },
191
+ style: {
192
+ padding: '4px 5px',
193
+ fontSize: theme.typography.pxToRem(13)
194
+ }
195
+ }, {
196
+ props: {
197
+ size: 'large',
198
+ variant: 'text'
199
+ },
200
+ style: {
201
+ padding: '8px 11px',
202
+ fontSize: theme.typography.pxToRem(15)
203
+ }
204
+ }, {
205
+ props: {
206
+ size: 'small',
207
+ variant: 'outlined'
208
+ },
209
+ style: {
210
+ padding: '3px 9px',
211
+ fontSize: theme.typography.pxToRem(13)
212
+ }
213
+ }, {
214
+ props: {
215
+ size: 'large',
216
+ variant: 'outlined'
217
+ },
218
+ style: {
219
+ padding: '7px 21px',
220
+ fontSize: theme.typography.pxToRem(15)
221
+ }
222
+ }, {
223
+ props: {
224
+ size: 'small',
225
+ variant: 'contained'
226
+ },
227
+ style: {
228
+ padding: '4px 10px',
229
+ fontSize: theme.typography.pxToRem(13)
230
+ }
231
+ }, {
232
+ props: {
233
+ size: 'large',
234
+ variant: 'contained'
235
+ },
236
+ style: {
237
+ padding: '8px 22px',
238
+ fontSize: theme.typography.pxToRem(15)
239
+ }
240
+ }, {
241
+ props: {
242
+ disableElevation: true
243
+ },
244
+ style: _defineProperty(_defineProperty(_defineProperty({
245
+ boxShadow: 'none',
246
+ '&:hover': {
247
+ boxShadow: 'none'
107
248
  }
108
- }),
109
- '&:active': _extends({}, ownerState.variant === 'contained' && {
110
- boxShadow: (theme.vars || theme).shadows[8]
111
- })
112
- }, "&.".concat(buttonClasses.focusVisible), _extends({}, ownerState.variant === 'contained' && {
113
- boxShadow: (theme.vars || theme).shadows[6]
114
- })), "&.".concat(buttonClasses.disabled), _extends({
115
- color: (theme.vars || theme).palette.action.disabled
116
- }, ownerState.variant === 'outlined' && {
117
- border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
118
- }, ownerState.variant === 'contained' && {
119
- color: (theme.vars || theme).palette.action.disabled,
120
- boxShadow: (theme.vars || theme).shadows[0],
121
- backgroundColor: (theme.vars || theme).palette.action.disabledBackground
122
- })), ownerState.variant === 'text' && {
123
- padding: '6px 8px'
124
- }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
125
- color: (theme.vars || theme).palette[ownerState.color].main
126
- }, ownerState.variant === 'outlined' && {
127
- padding: '5px 15px',
128
- border: '1px solid currentColor'
129
- }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
130
- color: (theme.vars || theme).palette[ownerState.color].main,
131
- border: theme.vars ? "1px solid rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : "1px solid ".concat(alpha(theme.palette[ownerState.color].main, 0.5))
132
- }, ownerState.variant === 'contained' && {
133
- color: theme.vars ?
134
- // this is safe because grey does not change between default light/dark mode
135
- 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]),
136
- backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
137
- boxShadow: (theme.vars || theme).shadows[2]
138
- }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
139
- color: (theme.vars || theme).palette[ownerState.color].contrastText,
140
- backgroundColor: (theme.vars || theme).palette[ownerState.color].main
141
- }, ownerState.color === 'inherit' && {
142
- color: 'inherit',
143
- borderColor: 'currentColor'
144
- }, ownerState.size === 'small' && ownerState.variant === 'text' && {
145
- padding: '4px 5px',
146
- fontSize: theme.typography.pxToRem(13)
147
- }, ownerState.size === 'large' && ownerState.variant === 'text' && {
148
- padding: '8px 11px',
149
- fontSize: theme.typography.pxToRem(15)
150
- }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
151
- padding: '3px 9px',
152
- fontSize: theme.typography.pxToRem(13)
153
- }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
154
- padding: '7px 21px',
155
- fontSize: theme.typography.pxToRem(15)
156
- }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
157
- padding: '4px 10px',
158
- fontSize: theme.typography.pxToRem(13)
159
- }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
160
- padding: '8px 22px',
161
- fontSize: theme.typography.pxToRem(15)
162
- }, ownerState.fullWidth && {
163
- width: '100%'
164
- });
165
- }, function (_ref2) {
166
- var ownerState = _ref2.ownerState;
167
- return ownerState.disableElevation && _defineProperty(_defineProperty(_defineProperty({
168
- boxShadow: 'none',
169
- '&:hover': {
249
+ }, "&.".concat(buttonClasses.focusVisible), {
170
250
  boxShadow: 'none'
251
+ }), '&:active', {
252
+ boxShadow: 'none'
253
+ }), "&.".concat(buttonClasses.disabled), {
254
+ boxShadow: 'none'
255
+ })
256
+ }, {
257
+ props: {
258
+ fullWidth: true
259
+ },
260
+ style: {
261
+ width: '100%'
171
262
  }
172
- }, "&.".concat(buttonClasses.focusVisible), {
173
- boxShadow: 'none'
174
- }), '&:active', {
175
- boxShadow: 'none'
176
- }), "&.".concat(buttonClasses.disabled), {
177
- boxShadow: 'none'
178
- });
263
+ }])));
179
264
  });
180
265
  var ButtonStartIcon = styled('span', {
181
266
  name: 'MuiButton',
@@ -184,15 +269,20 @@ var ButtonStartIcon = styled('span', {
184
269
  var ownerState = props.ownerState;
185
270
  return [styles.startIcon, styles["iconSize".concat(capitalize(ownerState.size))]];
186
271
  }
187
- })(function (_ref4) {
188
- var ownerState = _ref4.ownerState;
189
- return _extends({
272
+ })(function () {
273
+ return {
190
274
  display: 'inherit',
191
275
  marginRight: 8,
192
- marginLeft: -4
193
- }, ownerState.size === 'small' && {
194
- marginLeft: -2
195
- }, commonIconStyles(ownerState));
276
+ marginLeft: -4,
277
+ variants: [{
278
+ props: {
279
+ size: 'small'
280
+ },
281
+ style: {
282
+ marginLeft: -2
283
+ }
284
+ }].concat(commonIconStyles)
285
+ };
196
286
  });
197
287
  var ButtonEndIcon = styled('span', {
198
288
  name: 'MuiButton',
@@ -201,15 +291,20 @@ var ButtonEndIcon = styled('span', {
201
291
  var ownerState = props.ownerState;
202
292
  return [styles.endIcon, styles["iconSize".concat(capitalize(ownerState.size))]];
203
293
  }
204
- })(function (_ref5) {
205
- var ownerState = _ref5.ownerState;
206
- return _extends({
294
+ })(function () {
295
+ return {
207
296
  display: 'inherit',
208
297
  marginRight: -4,
209
- marginLeft: 8
210
- }, ownerState.size === 'small' && {
211
- marginRight: -2
212
- }, commonIconStyles(ownerState));
298
+ marginLeft: 8,
299
+ variants: [{
300
+ props: {
301
+ size: 'small'
302
+ },
303
+ style: {
304
+ marginRight: -2
305
+ }
306
+ }].concat(commonIconStyles)
307
+ };
213
308
  });
214
309
  var Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
215
310
  // props priority: `inProps` > `contextProps` > `themeDefaultProps`
@@ -9,14 +9,14 @@ import clsx from 'clsx';
9
9
  import refType from '@mui/utils/refType';
10
10
  import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
11
11
  import composeClasses from '@mui/utils/composeClasses';
12
- import styled from '../styles/styled';
13
- import useThemeProps from '../styles/useThemeProps';
12
+ import { styled, createUseThemeProps } from '../zero-styled';
14
13
  import useForkRef from '../utils/useForkRef';
15
14
  import useEventCallback from '../utils/useEventCallback';
16
15
  import useIsFocusVisible from '../utils/useIsFocusVisible';
17
16
  import TouchRipple from './TouchRipple';
18
17
  import buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';
19
18
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
+ var useThemeProps = createUseThemeProps('MuiButtonBase');
20
20
  var useUtilityClasses = function useUtilityClasses(ownerState) {
21
21
  var disabled = ownerState.disabled,
22
22
  focusVisible = ownerState.focusVisible,
@@ -51,7 +51,7 @@ function Ripple(props) {
51
51
  })
52
52
  });
53
53
  }
54
- process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
54
+ process.env.NODE_ENV !== "production" ? Ripple.propTypes /* remove-proptypes */ = {
55
55
  /**
56
56
  * Override or extend the styles applied to the component.
57
57
  */
@@ -9,13 +9,12 @@ import * as React from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
  import { TransitionGroup } from 'react-transition-group';
11
11
  import clsx from 'clsx';
12
- import { keyframes } from '@mui/system';
13
12
  import useTimeout from '@mui/utils/useTimeout';
14
- import styled from '../styles/styled';
15
- import useThemeProps from '../styles/useThemeProps';
13
+ import { keyframes, styled, createUseThemeProps } from '../zero-styled';
16
14
  import Ripple from './Ripple';
17
15
  import touchRippleClasses from './touchRippleClasses';
18
16
  import { jsx as _jsx } from "react/jsx-runtime";
17
+ var useThemeProps = createUseThemeProps('MuiTouchRipple');
19
18
  var DURATION = 550;
20
19
  export var DELAY_RIPPLE = 80;
21
20
  var enterKeyframe = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])));
@@ -250,7 +249,7 @@ var TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, re
250
249
  })
251
250
  }));
252
251
  });
253
- process.env.NODE_ENV !== "production" ? TouchRipple.propTypes = {
252
+ process.env.NODE_ENV !== "production" ? TouchRipple.propTypes /* remove-proptypes */ = {
254
253
  /**
255
254
  * If `true`, the ripple starts at the center of the component
256
255
  * rather than at the point of interaction.