@mui/material 5.15.13 → 5.15.14

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 (75) hide show
  1. package/Accordion/Accordion.js +30 -23
  2. package/AccordionActions/AccordionActions.js +14 -12
  3. package/AccordionDetails/AccordionDetails.js +2 -2
  4. package/AccordionSummary/AccordionSummary.js +29 -23
  5. package/Autocomplete/Autocomplete.d.ts +1 -1
  6. package/Autocomplete/Autocomplete.js +59 -33
  7. package/Autocomplete/autocompleteClasses.d.ts +3 -3
  8. package/CHANGELOG.md +116 -60
  9. package/CircularProgress/CircularProgress.d.ts +1 -1
  10. package/CircularProgress/CircularProgress.js +1 -1
  11. package/Icon/Icon.d.ts +1 -1
  12. package/Icon/Icon.js +1 -1
  13. package/OverridableComponent.d.ts +1 -1
  14. package/Popper/Popper.d.ts +3 -26
  15. package/README.md +2 -2
  16. package/Select/Select.d.ts +8 -20
  17. package/Slider/Slider.js +404 -223
  18. package/SvgIcon/SvgIcon.js +1 -1
  19. package/index.js +1 -1
  20. package/legacy/Accordion/Accordion.js +33 -22
  21. package/legacy/AccordionActions/AccordionActions.js +17 -14
  22. package/legacy/AccordionDetails/AccordionDetails.js +2 -2
  23. package/legacy/AccordionSummary/AccordionSummary.js +31 -22
  24. package/legacy/Autocomplete/Autocomplete.js +132 -113
  25. package/legacy/CircularProgress/CircularProgress.js +1 -1
  26. package/legacy/Icon/Icon.js +1 -1
  27. package/legacy/Slider/Slider.js +373 -191
  28. package/legacy/SvgIcon/SvgIcon.js +1 -1
  29. package/legacy/index.js +1 -1
  30. package/legacy/styles/experimental_extendTheme.js +1 -1
  31. package/legacy/styles/rootShouldForwardProp.js +5 -0
  32. package/legacy/styles/slotShouldForwardProp.js +5 -0
  33. package/legacy/styles/styled.js +4 -5
  34. package/legacy/usePagination/usePagination.js +1 -1
  35. package/modern/Accordion/Accordion.js +30 -23
  36. package/modern/AccordionActions/AccordionActions.js +14 -12
  37. package/modern/AccordionDetails/AccordionDetails.js +2 -2
  38. package/modern/AccordionSummary/AccordionSummary.js +29 -23
  39. package/modern/Autocomplete/Autocomplete.js +59 -33
  40. package/modern/CircularProgress/CircularProgress.js +1 -1
  41. package/modern/Icon/Icon.js +1 -1
  42. package/modern/Slider/Slider.js +337 -172
  43. package/modern/SvgIcon/SvgIcon.js +1 -1
  44. package/modern/index.js +1 -1
  45. package/modern/styles/experimental_extendTheme.js +1 -1
  46. package/modern/styles/rootShouldForwardProp.js +3 -0
  47. package/modern/styles/slotShouldForwardProp.js +5 -0
  48. package/modern/styles/styled.js +4 -3
  49. package/modern/usePagination/usePagination.js +1 -1
  50. package/node/Accordion/Accordion.js +32 -25
  51. package/node/AccordionActions/AccordionActions.js +16 -14
  52. package/node/AccordionDetails/AccordionDetails.js +4 -4
  53. package/node/AccordionSummary/AccordionSummary.js +33 -27
  54. package/node/Autocomplete/Autocomplete.js +71 -45
  55. package/node/CircularProgress/CircularProgress.js +1 -1
  56. package/node/Icon/Icon.js +1 -1
  57. package/node/Slider/Slider.js +414 -233
  58. package/node/SvgIcon/SvgIcon.js +1 -1
  59. package/node/index.js +1 -1
  60. package/node/styles/experimental_extendTheme.js +1 -1
  61. package/node/styles/rootShouldForwardProp.js +10 -0
  62. package/node/styles/slotShouldForwardProp.js +11 -0
  63. package/node/styles/styled.js +17 -8
  64. package/node/usePagination/usePagination.js +1 -1
  65. package/package.json +6 -6
  66. package/styles/experimental_extendTheme.js +1 -1
  67. package/styles/rootShouldForwardProp.d.ts +2 -0
  68. package/styles/rootShouldForwardProp.js +3 -0
  69. package/styles/slotShouldForwardProp.d.ts +2 -0
  70. package/styles/slotShouldForwardProp.js +5 -0
  71. package/styles/styled.d.ts +2 -3
  72. package/styles/styled.js +4 -3
  73. package/umd/material-ui.development.js +822 -582
  74. package/umd/material-ui.production.min.js +2 -2
  75. package/usePagination/usePagination.js +1 -1
@@ -44,7 +44,7 @@ const SvgIconRoot = styled('svg', {
44
44
  height: '1em',
45
45
  display: 'inline-block',
46
46
  // the <svg> will define the property that has `currentColor`
47
- // e.g. heroicons uses fill="none" and stroke="currentColor"
47
+ // for example heroicons uses fill="none" and stroke="currentColor"
48
48
  fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
49
49
  flexShrink: 0,
50
50
  transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.13
2
+ * @mui/material v5.15.14
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
4
  import _toArray from "@babel/runtime/helpers/esm/toArray";
4
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
6
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
6
- import _extends from "@babel/runtime/helpers/esm/extends";
7
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
8
8
  import * as React from 'react';
9
9
  import { isFragment } from 'react-is';
@@ -11,8 +11,7 @@ import PropTypes from 'prop-types';
11
11
  import clsx from 'clsx';
12
12
  import chainPropTypes from '@mui/utils/chainPropTypes';
13
13
  import composeClasses from '@mui/utils/composeClasses';
14
- import styled from '../styles/styled';
15
- import useThemeProps from '../styles/useThemeProps';
14
+ import { styled, createUseThemeProps } from '../zero-styled';
16
15
  import Collapse from '../Collapse';
17
16
  import Paper from '../Paper';
18
17
  import AccordionContext from './AccordionContext';
@@ -21,6 +20,7 @@ import useSlot from '../utils/useSlot';
21
20
  import accordionClasses, { getAccordionUtilityClass } from './accordionClasses';
22
21
  import { jsx as _jsx } from "react/jsx-runtime";
23
22
  import { jsxs as _jsxs } from "react/jsx-runtime";
23
+ var useThemeProps = createUseThemeProps('MuiAccordion');
24
24
  var useUtilityClasses = function useUtilityClasses(ownerState) {
25
25
  var classes = ownerState.classes,
26
26
  square = ownerState.square,
@@ -85,26 +85,37 @@ var AccordionRoot = styled(Paper, {
85
85
  backgroundColor: (theme.vars || theme).palette.action.disabledBackground
86
86
  });
87
87
  }, function (_ref4) {
88
- var theme = _ref4.theme,
89
- ownerState = _ref4.ownerState;
90
- return _extends({}, !ownerState.square && {
91
- borderRadius: 0,
92
- '&:first-of-type': {
93
- borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
94
- borderTopRightRadius: (theme.vars || theme).shape.borderRadius
95
- },
96
- '&:last-of-type': {
97
- borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
98
- borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
99
- // Fix a rendering issue on Edge
100
- '@supports (-ms-ime-align: auto)': {
101
- borderBottomLeftRadius: 0,
102
- borderBottomRightRadius: 0
88
+ var theme = _ref4.theme;
89
+ return {
90
+ variants: [{
91
+ props: function props(_props) {
92
+ return !_props.square;
93
+ },
94
+ style: {
95
+ borderRadius: 0,
96
+ '&:first-of-type': {
97
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
98
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
99
+ },
100
+ '&:last-of-type': {
101
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
102
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
103
+ // Fix a rendering issue on Edge
104
+ '@supports (-ms-ime-align: auto)': {
105
+ borderBottomLeftRadius: 0,
106
+ borderBottomRightRadius: 0
107
+ }
108
+ }
103
109
  }
104
- }
105
- }, !ownerState.disableGutters && _defineProperty({}, "&.".concat(accordionClasses.expanded), {
106
- margin: '16px 0'
107
- }));
110
+ }, {
111
+ props: function props(_props2) {
112
+ return !_props2.disableGutters;
113
+ },
114
+ style: _defineProperty({}, "&.".concat(accordionClasses.expanded), {
115
+ margin: '16px 0'
116
+ })
117
+ }]
118
+ };
108
119
  });
109
120
  var Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
110
121
  var props = useThemeProps({
@@ -1,15 +1,15 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import clsx from 'clsx';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
- import styled from '../styles/styled';
10
- import useThemeProps from '../styles/useThemeProps';
9
+ import { styled, createUseThemeProps } from '../zero-styled';
11
10
  import { getAccordionActionsUtilityClass } from './accordionActionsClasses';
12
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
+ var useThemeProps = createUseThemeProps('MuiAccordionActions');
13
13
  var useUtilityClasses = function useUtilityClasses(ownerState) {
14
14
  var classes = ownerState.classes,
15
15
  disableSpacing = ownerState.disableSpacing;
@@ -25,18 +25,21 @@ var AccordionActionsRoot = styled('div', {
25
25
  var ownerState = props.ownerState;
26
26
  return [styles.root, !ownerState.disableSpacing && styles.spacing];
27
27
  }
28
- })(function (_ref) {
29
- var ownerState = _ref.ownerState;
30
- return _extends({
31
- display: 'flex',
32
- alignItems: 'center',
33
- padding: 8,
34
- justifyContent: 'flex-end'
35
- }, !ownerState.disableSpacing && {
36
- '& > :not(style) ~ :not(style)': {
37
- marginLeft: 8
28
+ })({
29
+ display: 'flex',
30
+ alignItems: 'center',
31
+ padding: 8,
32
+ justifyContent: 'flex-end',
33
+ variants: [{
34
+ props: function props(_props) {
35
+ return !_props.disableSpacing;
36
+ },
37
+ style: {
38
+ '& > :not(style) ~ :not(style)': {
39
+ marginLeft: 8
40
+ }
38
41
  }
39
- });
42
+ }]
40
43
  });
41
44
  var AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(inProps, ref) {
42
45
  var props = useThemeProps({
@@ -6,10 +6,10 @@ import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import clsx from 'clsx';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
- import styled from '../styles/styled';
10
- import useThemeProps from '../styles/useThemeProps';
9
+ import { styled, createUseThemeProps } from '../zero-styled';
11
10
  import { getAccordionDetailsUtilityClass } from './accordionDetailsClasses';
12
11
  import { jsx as _jsx } from "react/jsx-runtime";
12
+ var useThemeProps = createUseThemeProps('MuiAccordionDetails');
13
13
  var useUtilityClasses = function useUtilityClasses(ownerState) {
14
14
  var classes = ownerState.classes;
15
15
  var slots = {
@@ -1,19 +1,19 @@
1
1
  'use client';
2
2
 
3
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
- import _extends from "@babel/runtime/helpers/esm/extends";
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
- import styled from '../styles/styled';
11
- import useThemeProps from '../styles/useThemeProps';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import ButtonBase from '../ButtonBase';
13
12
  import AccordionContext from '../Accordion/AccordionContext';
14
13
  import accordionSummaryClasses, { getAccordionSummaryUtilityClass } from './accordionSummaryClasses';
15
14
  import { jsx as _jsx } from "react/jsx-runtime";
16
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ var useThemeProps = createUseThemeProps('MuiAccordionSummary');
17
17
  var useUtilityClasses = function useUtilityClasses(ownerState) {
18
18
  var classes = ownerState.classes,
19
19
  expanded = ownerState.expanded,
@@ -34,12 +34,11 @@ var AccordionSummaryRoot = styled(ButtonBase, {
34
34
  return styles.root;
35
35
  }
36
36
  })(function (_ref) {
37
- var theme = _ref.theme,
38
- ownerState = _ref.ownerState;
37
+ var theme = _ref.theme;
39
38
  var transition = {
40
39
  duration: theme.transitions.duration.shortest
41
40
  };
42
- return _extends(_defineProperty(_defineProperty(_defineProperty({
41
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({
43
42
  display: 'flex',
44
43
  minHeight: 48,
45
44
  padding: theme.spacing(0, 2),
@@ -50,9 +49,14 @@ var AccordionSummaryRoot = styled(ButtonBase, {
50
49
  opacity: (theme.vars || theme).palette.action.disabledOpacity
51
50
  }), "&:hover:not(.".concat(accordionSummaryClasses.disabled, ")"), {
52
51
  cursor: 'pointer'
53
- }), !ownerState.disableGutters && _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
54
- minHeight: 64
55
- }));
52
+ }), "variants", [{
53
+ props: function props(_props) {
54
+ return !_props.disableGutters;
55
+ },
56
+ style: _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
57
+ minHeight: 64
58
+ })
59
+ }]);
56
60
  });
57
61
  var AccordionSummaryContent = styled('div', {
58
62
  name: 'MuiAccordionSummary',
@@ -61,19 +65,24 @@ var AccordionSummaryContent = styled('div', {
61
65
  return styles.content;
62
66
  }
63
67
  })(function (_ref3) {
64
- var theme = _ref3.theme,
65
- ownerState = _ref3.ownerState;
66
- return _extends({
68
+ var theme = _ref3.theme;
69
+ return {
67
70
  display: 'flex',
68
71
  flexGrow: 1,
69
- margin: '12px 0'
70
- }, !ownerState.disableGutters && _defineProperty({
71
- transition: theme.transitions.create(['margin'], {
72
- duration: theme.transitions.duration.shortest
73
- })
74
- }, "&.".concat(accordionSummaryClasses.expanded), {
75
- margin: '20px 0'
76
- }));
72
+ margin: '12px 0',
73
+ variants: [{
74
+ props: function props(_props2) {
75
+ return !_props2.disableGutters;
76
+ },
77
+ style: _defineProperty({
78
+ transition: theme.transitions.create(['margin'], {
79
+ duration: theme.transitions.duration.shortest
80
+ })
81
+ }, "&.".concat(accordionSummaryClasses.expanded), {
82
+ margin: '20px 0'
83
+ })
84
+ }]
85
+ };
77
86
  });
78
87
  var AccordionSummaryExpandIconWrapper = styled('div', {
79
88
  name: 'MuiAccordionSummary',
@@ -81,8 +90,8 @@ var AccordionSummaryExpandIconWrapper = styled('div', {
81
90
  overridesResolver: function overridesResolver(props, styles) {
82
91
  return styles.expandIconWrapper;
83
92
  }
84
- })(function (_ref5) {
85
- var theme = _ref5.theme;
93
+ })(function (_ref4) {
94
+ var theme = _ref4.theme;
86
95
  return _defineProperty({
87
96
  display: 'flex',
88
97
  color: (theme.vars || theme).palette.action.active,
@@ -3,7 +3,7 @@
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
5
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
6
- var _ClearIcon, _ArrowDropDownIcon;
6
+ var _styled, _ClearIcon, _ArrowDropDownIcon;
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import clsx from 'clsx';
@@ -23,14 +23,14 @@ import outlinedInputClasses from '../OutlinedInput/outlinedInputClasses';
23
23
  import filledInputClasses from '../FilledInput/filledInputClasses';
24
24
  import ClearIcon from '../internal/svg-icons/Close';
25
25
  import ArrowDropDownIcon from '../internal/svg-icons/ArrowDropDown';
26
- import useThemeProps from '../styles/useThemeProps';
27
- import styled from '../styles/styled';
26
+ import { styled, createUseThemeProps } from '../zero-styled';
28
27
  import autocompleteClasses, { getAutocompleteUtilityClass } from './autocompleteClasses';
29
28
  import capitalize from '../utils/capitalize';
30
29
  import useForkRef from '../utils/useForkRef';
31
30
  import { jsx as _jsx } from "react/jsx-runtime";
32
31
  import { jsxs as _jsxs } from "react/jsx-runtime";
33
32
  import { createElement as _createElement } from "react";
33
+ var useThemeProps = createUseThemeProps('MuiAutocomplete');
34
34
  var useUtilityClasses = function useUtilityClasses(ownerState) {
35
35
  var classes = ownerState.classes,
36
36
  disablePortal = ownerState.disablePortal,
@@ -73,89 +73,100 @@ var AutocompleteRoot = styled('div', {
73
73
  size = ownerState.size;
74
74
  return [_defineProperty({}, "& .".concat(autocompleteClasses.tag), styles.tag), _defineProperty({}, "& .".concat(autocompleteClasses.tag), styles["tagSize".concat(capitalize(size))]), _defineProperty({}, "& .".concat(autocompleteClasses.inputRoot), styles.inputRoot), _defineProperty({}, "& .".concat(autocompleteClasses.input), styles.input), _defineProperty({}, "& .".concat(autocompleteClasses.input), inputFocused && styles.inputFocused), styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
75
75
  }
76
- })(function (_ref6) {
77
- var _extends3;
78
- var ownerState = _ref6.ownerState;
79
- return _extends(_defineProperty(_defineProperty({}, "&.".concat(autocompleteClasses.focused, " .").concat(autocompleteClasses.clearIndicator), {
80
- visibility: 'visible'
81
- }), '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses.clearIndicator), {
82
- visibility: 'visible'
83
- })), ownerState.fullWidth && {
76
+ })((_styled = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_styled, "&.".concat(autocompleteClasses.focused, " .").concat(autocompleteClasses.clearIndicator), {
77
+ visibility: 'visible'
78
+ }), '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses.clearIndicator), {
79
+ visibility: 'visible'
80
+ })), "& .".concat(autocompleteClasses.tag), {
81
+ margin: 3,
82
+ maxWidth: 'calc(100% - 6px)'
83
+ }), "& .".concat(autocompleteClasses.inputRoot), _defineProperty(_defineProperty(_defineProperty({
84
+ flexWrap: 'wrap'
85
+ }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
86
+ paddingRight: 26 + 4
87
+ }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
88
+ paddingRight: 52 + 4
89
+ }), "& .".concat(autocompleteClasses.input), {
90
+ width: 0,
91
+ minWidth: 30
92
+ })), "& .".concat(inputClasses.root), {
93
+ paddingBottom: 1,
94
+ '& .MuiInput-input': {
95
+ padding: '4px 4px 4px 0px'
96
+ }
97
+ }), "& .".concat(inputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(inputClasses.input), {
98
+ padding: '2px 4px 3px 0'
99
+ })), "& .".concat(outlinedInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
100
+ padding: 9
101
+ }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
102
+ paddingRight: 26 + 4 + 9
103
+ }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
104
+ paddingRight: 52 + 4 + 9
105
+ }), "& .".concat(autocompleteClasses.input), {
106
+ padding: '7.5px 4px 7.5px 5px'
107
+ }), "& .".concat(autocompleteClasses.endAdornment), {
108
+ right: 9
109
+ })), "& .".concat(outlinedInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
110
+ // Don't specify paddingRight, as it overrides the default value set when there is only
111
+ // one of the popup or clear icon as the specificity is equal so the latter one wins
112
+ paddingTop: 6,
113
+ paddingBottom: 6,
114
+ paddingLeft: 6
115
+ }, "& .".concat(autocompleteClasses.input), {
116
+ padding: '2.5px 4px 2.5px 8px'
117
+ })), "& .".concat(filledInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
118
+ paddingTop: 19,
119
+ paddingLeft: 8
120
+ }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
121
+ paddingRight: 26 + 4 + 9
122
+ }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
123
+ paddingRight: 52 + 4 + 9
124
+ }), "& .".concat(filledInputClasses.input), {
125
+ padding: '7px 4px'
126
+ }), "& .".concat(autocompleteClasses.endAdornment), {
127
+ right: 9
128
+ })), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
129
+ paddingBottom: 1
130
+ }, "& .".concat(filledInputClasses.input), {
131
+ padding: '2.5px 4px'
132
+ })), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_styled, "& .".concat(inputBaseClasses.hiddenLabel), {
133
+ paddingTop: 8
134
+ }), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
135
+ paddingTop: 0,
136
+ paddingBottom: 0
137
+ }, "& .".concat(autocompleteClasses.input), {
138
+ paddingTop: 16,
139
+ paddingBottom: 17
140
+ })), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
141
+ paddingTop: 8,
142
+ paddingBottom: 9
143
+ })), "& .".concat(autocompleteClasses.input), {
144
+ flexGrow: 1,
145
+ textOverflow: 'ellipsis',
146
+ opacity: 0
147
+ }), "variants", [{
148
+ props: {
149
+ fullWidth: true
150
+ },
151
+ style: {
84
152
  width: '100%'
85
- }, (_extends3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extends3, "& .".concat(autocompleteClasses.tag), _extends({
86
- margin: 3,
87
- maxWidth: 'calc(100% - 6px)'
88
- }, ownerState.size === 'small' && {
153
+ }
154
+ }, {
155
+ props: {
156
+ size: 'small'
157
+ },
158
+ style: _defineProperty({}, "& .".concat(autocompleteClasses.tag), {
89
159
  margin: 2,
90
160
  maxWidth: 'calc(100% - 4px)'
91
- })), "& .".concat(autocompleteClasses.inputRoot), _defineProperty(_defineProperty(_defineProperty({
92
- flexWrap: 'wrap'
93
- }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
94
- paddingRight: 26 + 4
95
- }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
96
- paddingRight: 52 + 4
97
- }), "& .".concat(autocompleteClasses.input), {
98
- width: 0,
99
- minWidth: 30
100
- })), "& .".concat(inputClasses.root), {
101
- paddingBottom: 1,
102
- '& .MuiInput-input': {
103
- padding: '4px 4px 4px 0px'
104
- }
105
- }), "& .".concat(inputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(inputClasses.input), {
106
- padding: '2px 4px 3px 0'
107
- })), "& .".concat(outlinedInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
108
- padding: 9
109
- }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
110
- paddingRight: 26 + 4 + 9
111
- }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
112
- paddingRight: 52 + 4 + 9
113
- }), "& .".concat(autocompleteClasses.input), {
114
- padding: '7.5px 4px 7.5px 5px'
115
- }), "& .".concat(autocompleteClasses.endAdornment), {
116
- right: 9
117
- })), "& .".concat(outlinedInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
118
- // Don't specify paddingRight, as it overrides the default value set when there is only
119
- // one of the popup or clear icon as the specificity is equal so the latter one wins
120
- paddingTop: 6,
121
- paddingBottom: 6,
122
- paddingLeft: 6
123
- }, "& .".concat(autocompleteClasses.input), {
124
- padding: '2.5px 4px 2.5px 8px'
125
- })), "& .".concat(filledInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
126
- paddingTop: 19,
127
- paddingLeft: 8
128
- }, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
129
- paddingRight: 26 + 4 + 9
130
- }), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
131
- paddingRight: 52 + 4 + 9
132
- }), "& .".concat(filledInputClasses.input), {
133
- padding: '7px 4px'
134
- }), "& .".concat(autocompleteClasses.endAdornment), {
135
- right: 9
136
- })), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
137
- paddingBottom: 1
138
- }, "& .".concat(filledInputClasses.input), {
139
- padding: '2.5px 4px'
140
- })), "& .".concat(inputBaseClasses.hiddenLabel), {
141
- paddingTop: 8
142
- }), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
143
- paddingTop: 0,
144
- paddingBottom: 0
145
- }, "& .".concat(autocompleteClasses.input), {
146
- paddingTop: 16,
147
- paddingBottom: 17
148
- })), _defineProperty(_defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
149
- paddingTop: 8,
150
- paddingBottom: 9
151
- })), "& .".concat(autocompleteClasses.input), _extends({
152
- flexGrow: 1,
153
- textOverflow: 'ellipsis',
154
- opacity: 0
155
- }, ownerState.inputFocused && {
161
+ })
162
+ }, {
163
+ props: {
164
+ inputFocused: true
165
+ },
166
+ style: _defineProperty({}, "& .".concat(autocompleteClasses.input), {
156
167
  opacity: 1
157
- }))));
158
- });
168
+ })
169
+ }])));
159
170
  var AutocompleteEndAdornment = styled('div', {
160
171
  name: 'MuiAutocomplete',
161
172
  slot: 'EndAdornment',
@@ -183,18 +194,21 @@ var AutocompleteClearIndicator = styled(IconButton, {
183
194
  var AutocompletePopupIndicator = styled(IconButton, {
184
195
  name: 'MuiAutocomplete',
185
196
  slot: 'PopupIndicator',
186
- overridesResolver: function overridesResolver(_ref7, styles) {
187
- var ownerState = _ref7.ownerState;
197
+ overridesResolver: function overridesResolver(_ref6, styles) {
198
+ var ownerState = _ref6.ownerState;
188
199
  return _extends({}, styles.popupIndicator, ownerState.popupOpen && styles.popupIndicatorOpen);
189
200
  }
190
- })(function (_ref8) {
191
- var ownerState = _ref8.ownerState;
192
- return _extends({
193
- padding: 2,
194
- marginRight: -2
195
- }, ownerState.popupOpen && {
196
- transform: 'rotate(180deg)'
197
- });
201
+ })({
202
+ padding: 2,
203
+ marginRight: -2,
204
+ variants: [{
205
+ props: {
206
+ popupOpen: true
207
+ },
208
+ style: {
209
+ transform: 'rotate(180deg)'
210
+ }
211
+ }]
198
212
  });
199
213
  var AutocompletePopper = styled(Popper, {
200
214
  name: 'MuiAutocomplete',
@@ -203,14 +217,19 @@ var AutocompletePopper = styled(Popper, {
203
217
  var ownerState = props.ownerState;
204
218
  return [_defineProperty({}, "& .".concat(autocompleteClasses.option), styles.option), styles.popper, ownerState.disablePortal && styles.popperDisablePortal];
205
219
  }
206
- })(function (_ref10) {
207
- var theme = _ref10.theme,
208
- ownerState = _ref10.ownerState;
209
- return _extends({
210
- zIndex: (theme.vars || theme).zIndex.modal
211
- }, ownerState.disablePortal && {
212
- position: 'absolute'
213
- });
220
+ })(function (_ref8) {
221
+ var theme = _ref8.theme;
222
+ return {
223
+ zIndex: (theme.vars || theme).zIndex.modal,
224
+ variants: [{
225
+ props: {
226
+ disablePortal: true
227
+ },
228
+ style: {
229
+ position: 'absolute'
230
+ }
231
+ }]
232
+ };
214
233
  });
215
234
  var AutocompletePaper = styled(Paper, {
216
235
  name: 'MuiAutocomplete',
@@ -218,8 +237,8 @@ var AutocompletePaper = styled(Paper, {
218
237
  overridesResolver: function overridesResolver(props, styles) {
219
238
  return styles.paper;
220
239
  }
221
- })(function (_ref11) {
222
- var theme = _ref11.theme;
240
+ })(function (_ref9) {
241
+ var theme = _ref9.theme;
223
242
  return _extends({}, theme.typography.body1, {
224
243
  overflow: 'auto'
225
244
  });
@@ -230,8 +249,8 @@ var AutocompleteLoading = styled('div', {
230
249
  overridesResolver: function overridesResolver(props, styles) {
231
250
  return styles.loading;
232
251
  }
233
- })(function (_ref12) {
234
- var theme = _ref12.theme;
252
+ })(function (_ref10) {
253
+ var theme = _ref10.theme;
235
254
  return {
236
255
  color: (theme.vars || theme).palette.text.secondary,
237
256
  padding: '14px 16px'
@@ -243,8 +262,8 @@ var AutocompleteNoOptions = styled('div', {
243
262
  overridesResolver: function overridesResolver(props, styles) {
244
263
  return styles.noOptions;
245
264
  }
246
- })(function (_ref13) {
247
- var theme = _ref13.theme;
265
+ })(function (_ref11) {
266
+ var theme = _ref11.theme;
248
267
  return {
249
268
  color: (theme.vars || theme).palette.text.secondary,
250
269
  padding: '14px 16px'
@@ -256,8 +275,8 @@ var AutocompleteListbox = styled('div', {
256
275
  overridesResolver: function overridesResolver(props, styles) {
257
276
  return styles.listbox;
258
277
  }
259
- })(function (_ref14) {
260
- var theme = _ref14.theme;
278
+ })(function (_ref12) {
279
+ var theme = _ref12.theme;
261
280
  return _defineProperty({
262
281
  listStyle: 'none',
263
282
  margin: 0,
@@ -310,8 +329,8 @@ var AutocompleteGroupLabel = styled(ListSubheader, {
310
329
  overridesResolver: function overridesResolver(props, styles) {
311
330
  return styles.groupLabel;
312
331
  }
313
- })(function (_ref16) {
314
- var theme = _ref16.theme;
332
+ })(function (_ref14) {
333
+ var theme = _ref14.theme;
315
334
  return {
316
335
  backgroundColor: (theme.vars || theme).palette.background.paper,
317
336
  top: -8
@@ -470,8 +489,8 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
470
489
  var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
471
490
  var _getInputProps = getInputProps(),
472
491
  handleInputMouseDown = _getInputProps.onMouseDown;
473
- var _ref17 = ListboxProps != null ? ListboxProps : {},
474
- externalListboxRef = _ref17.ref;
492
+ var _ref15 = ListboxProps != null ? ListboxProps : {},
493
+ externalListboxRef = _ref15.ref;
475
494
  var _getListboxProps = getListboxProps(),
476
495
  listboxRef = _getListboxProps.ref,
477
496
  otherListboxProps = _objectWithoutProperties(_getListboxProps, ["ref"]);
@@ -928,7 +947,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
928
947
  ListboxProps: PropTypes.object,
929
948
  /**
930
949
  * If `true`, the component is in a loading state.
931
- * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, e.g. `options` are empty).
950
+ * This shows the `loadingText` in place of suggestions (only if there are no suggestions to show, for example `options` are empty).
932
951
  * @default false
933
952
  */
934
953
  loading: PropTypes.bool,
@@ -191,7 +191,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
191
191
  /**
192
192
  * The size of the component.
193
193
  * If using a number, the pixel unit is assumed.
194
- * If using a string, you need to provide the CSS unit, e.g. '3rem'.
194
+ * If using a string, you need to provide the CSS unit, for example '3rem'.
195
195
  * @default 40
196
196
  */
197
197
  size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
@@ -102,7 +102,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
102
102
  // └─────────────────────────────────────────────────────────────────────┘
103
103
  /**
104
104
  * The base class applied to the icon. Defaults to 'material-icons', but can be changed to any
105
- * other base class that suits the icon font you're using (e.g. material-icons-rounded, fas, etc).
105
+ * other base class that suits the icon font you're using (for example material-icons-rounded, fas, etc).
106
106
  * @default 'material-icons'
107
107
  */
108
108
  baseClassName: PropTypes.string,