@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.
- package/Accordion/Accordion.js +30 -23
- package/AccordionActions/AccordionActions.js +14 -12
- package/AccordionDetails/AccordionDetails.js +2 -2
- package/AccordionSummary/AccordionSummary.js +29 -23
- package/Autocomplete/Autocomplete.d.ts +1 -1
- package/Autocomplete/Autocomplete.js +59 -33
- package/Autocomplete/autocompleteClasses.d.ts +3 -3
- package/CHANGELOG.md +116 -60
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/CircularProgress/CircularProgress.js +1 -1
- package/Icon/Icon.d.ts +1 -1
- package/Icon/Icon.js +1 -1
- package/OverridableComponent.d.ts +1 -1
- package/Popper/Popper.d.ts +3 -26
- package/README.md +2 -2
- package/Select/Select.d.ts +8 -20
- package/Slider/Slider.js +404 -223
- package/SvgIcon/SvgIcon.js +1 -1
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +33 -22
- package/legacy/AccordionActions/AccordionActions.js +17 -14
- package/legacy/AccordionDetails/AccordionDetails.js +2 -2
- package/legacy/AccordionSummary/AccordionSummary.js +31 -22
- package/legacy/Autocomplete/Autocomplete.js +132 -113
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/Icon/Icon.js +1 -1
- package/legacy/Slider/Slider.js +373 -191
- package/legacy/SvgIcon/SvgIcon.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +1 -1
- package/legacy/styles/rootShouldForwardProp.js +5 -0
- package/legacy/styles/slotShouldForwardProp.js +5 -0
- package/legacy/styles/styled.js +4 -5
- package/legacy/usePagination/usePagination.js +1 -1
- package/modern/Accordion/Accordion.js +30 -23
- package/modern/AccordionActions/AccordionActions.js +14 -12
- package/modern/AccordionDetails/AccordionDetails.js +2 -2
- package/modern/AccordionSummary/AccordionSummary.js +29 -23
- package/modern/Autocomplete/Autocomplete.js +59 -33
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/Icon/Icon.js +1 -1
- package/modern/Slider/Slider.js +337 -172
- package/modern/SvgIcon/SvgIcon.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/experimental_extendTheme.js +1 -1
- package/modern/styles/rootShouldForwardProp.js +3 -0
- package/modern/styles/slotShouldForwardProp.js +5 -0
- package/modern/styles/styled.js +4 -3
- package/modern/usePagination/usePagination.js +1 -1
- package/node/Accordion/Accordion.js +32 -25
- package/node/AccordionActions/AccordionActions.js +16 -14
- package/node/AccordionDetails/AccordionDetails.js +4 -4
- package/node/AccordionSummary/AccordionSummary.js +33 -27
- package/node/Autocomplete/Autocomplete.js +71 -45
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/Icon/Icon.js +1 -1
- package/node/Slider/Slider.js +414 -233
- package/node/SvgIcon/SvgIcon.js +1 -1
- package/node/index.js +1 -1
- package/node/styles/experimental_extendTheme.js +1 -1
- package/node/styles/rootShouldForwardProp.js +10 -0
- package/node/styles/slotShouldForwardProp.js +11 -0
- package/node/styles/styled.js +17 -8
- package/node/usePagination/usePagination.js +1 -1
- package/package.json +6 -6
- package/styles/experimental_extendTheme.js +1 -1
- package/styles/rootShouldForwardProp.d.ts +2 -0
- package/styles/rootShouldForwardProp.js +3 -0
- package/styles/slotShouldForwardProp.d.ts +2 -0
- package/styles/slotShouldForwardProp.js +5 -0
- package/styles/styled.d.ts +2 -3
- package/styles/styled.js +4 -3
- package/umd/material-ui.development.js +822 -582
- package/umd/material-ui.production.min.js +2 -2
- package/usePagination/usePagination.js +1 -1
package/SvgIcon/SvgIcon.js
CHANGED
|
@@ -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
|
-
//
|
|
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,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 '../
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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 '../
|
|
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
|
-
})(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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 '../
|
|
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 '../
|
|
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
|
|
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
|
-
}),
|
|
54
|
-
|
|
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
|
-
|
|
66
|
-
return _extends({
|
|
68
|
+
var theme = _ref3.theme;
|
|
69
|
+
return {
|
|
67
70
|
display: 'flex',
|
|
68
71
|
flexGrow: 1,
|
|
69
|
-
margin: '12px 0'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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 (
|
|
85
|
-
var 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
|
|
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
|
-
})(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
})
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
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(
|
|
187
|
-
var 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
|
-
})(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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 (
|
|
207
|
-
var theme =
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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 (
|
|
222
|
-
var 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 (
|
|
234
|
-
var 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 (
|
|
247
|
-
var 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 (
|
|
260
|
-
var 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 (
|
|
314
|
-
var 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
|
|
474
|
-
externalListboxRef =
|
|
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,
|
|
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,
|
|
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]),
|
package/legacy/Icon/Icon.js
CHANGED
|
@@ -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 (
|
|
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,
|