@mui/material 6.0.0-alpha.6 → 6.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Autocomplete/Autocomplete.d.ts +78 -12
- package/Autocomplete/Autocomplete.js +120 -59
- package/CHANGELOG.md +47 -0
- package/CircularProgress/circularProgressClasses.d.ts +6 -2
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -0
- package/index.js +1 -1
- package/modern/Autocomplete/Autocomplete.js +120 -59
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +120 -60
- package/node/index.js +1 -1
- package/package.json +6 -6
- package/umd/material-ui.development.js +121 -67
- package/umd/material-ui.production.min.js +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v6.0.0-alpha.
|
|
2
|
+
* @mui/material v6.0.0-alpha.7
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -482,12 +482,11 @@
|
|
|
482
482
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
483
483
|
if (source == null) return {};
|
|
484
484
|
var target = {};
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
target[key] = source[key];
|
|
485
|
+
for (var key in source) {
|
|
486
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
487
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
488
|
+
target[key] = source[key];
|
|
489
|
+
}
|
|
491
490
|
}
|
|
492
491
|
return target;
|
|
493
492
|
}
|
|
@@ -9513,12 +9512,12 @@
|
|
|
9513
9512
|
if (defaultScheme) {
|
|
9514
9513
|
// default color scheme vars should be merged last to set as default
|
|
9515
9514
|
var _cssVarsParser3 = cssVarsParser(defaultScheme, parserConfig),
|
|
9516
|
-
|
|
9515
|
+
css = _cssVarsParser3.css,
|
|
9517
9516
|
vars = _cssVarsParser3.vars,
|
|
9518
9517
|
varsWithDefaults = _cssVarsParser3.varsWithDefaults;
|
|
9519
9518
|
themeVars = deepmerge(themeVars, varsWithDefaults);
|
|
9520
9519
|
colorSchemesMap[defaultColorScheme] = {
|
|
9521
|
-
css:
|
|
9520
|
+
css: css,
|
|
9522
9521
|
vars: vars
|
|
9523
9522
|
};
|
|
9524
9523
|
}
|
|
@@ -9544,8 +9543,8 @@
|
|
|
9544
9543
|
rest = _objectWithoutProperties(colorSchemesMap, [colorScheme].map(toPropertyKey));
|
|
9545
9544
|
if (defaultSchemeVal) {
|
|
9546
9545
|
// default color scheme has to come before other color schemes
|
|
9547
|
-
var
|
|
9548
|
-
insertStyleSheet((getSelector == null ? void 0 : getSelector(colorScheme, _extends({},
|
|
9546
|
+
var _css = defaultSchemeVal.css;
|
|
9547
|
+
insertStyleSheet((getSelector == null ? void 0 : getSelector(colorScheme, _extends({}, _css))) || "[".concat(theme.attribute || 'data-color-scheme', "=\"").concat(colorScheme, "\"]"), _css);
|
|
9549
9548
|
}
|
|
9550
9549
|
Object.entries(rest).forEach(function (_ref7) {
|
|
9551
9550
|
var _ref8 = _slicedToArray(_ref7, 2),
|
|
@@ -23672,22 +23671,24 @@
|
|
|
23672
23671
|
size = ownerState.size;
|
|
23673
23672
|
return [_defineProperty({}, "& .".concat(autocompleteClasses$1.tag), styles.tag), _defineProperty({}, "& .".concat(autocompleteClasses$1.tag), styles["tagSize".concat(capitalize(size))]), _defineProperty({}, "& .".concat(autocompleteClasses$1.inputRoot), styles.inputRoot), _defineProperty({}, "& .".concat(autocompleteClasses$1.input), styles.input), _defineProperty({}, "& .".concat(autocompleteClasses$1.input), inputFocused && styles.inputFocused), styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
|
|
23674
23673
|
}
|
|
23675
|
-
})((_styled = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_styled, "
|
|
23676
|
-
visibility: 'visible'
|
|
23677
|
-
}), '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses$1.clearIndicator), {
|
|
23678
|
-
visibility: 'visible'
|
|
23679
|
-
})), "& .".concat(autocompleteClasses$1.tag), {
|
|
23674
|
+
})((_styled = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_styled, "& .".concat(autocompleteClasses$1.tag), {
|
|
23680
23675
|
margin: 3,
|
|
23681
23676
|
maxWidth: 'calc(100% - 6px)'
|
|
23682
|
-
}), "& .".concat(autocompleteClasses$1.inputRoot), _defineProperty(_defineProperty(_defineProperty({
|
|
23683
|
-
flexWrap: 'wrap'
|
|
23684
|
-
}, ".".concat(autocompleteClasses$1.hasPopupIcon, "&, .").concat(autocompleteClasses$1.hasClearIcon, "&"), {
|
|
23677
|
+
}), "& .".concat(autocompleteClasses$1.inputRoot), _defineProperty(_defineProperty(_defineProperty({}, ".".concat(autocompleteClasses$1.hasPopupIcon, "&, .").concat(autocompleteClasses$1.hasClearIcon, "&"), {
|
|
23685
23678
|
paddingRight: 26 + 4
|
|
23686
23679
|
}), ".".concat(autocompleteClasses$1.hasPopupIcon, ".").concat(autocompleteClasses$1.hasClearIcon, "&"), {
|
|
23687
23680
|
paddingRight: 52 + 4
|
|
23688
23681
|
}), "& .".concat(autocompleteClasses$1.input), {
|
|
23689
23682
|
width: 0,
|
|
23690
23683
|
minWidth: 30
|
|
23684
|
+
})), "&.".concat(autocompleteClasses$1.focused), _defineProperty(_defineProperty({}, "& .".concat(autocompleteClasses$1.clearIndicator), {
|
|
23685
|
+
visibility: 'visible'
|
|
23686
|
+
}), "& .".concat(autocompleteClasses$1.input), {
|
|
23687
|
+
minWidth: 0
|
|
23688
|
+
})), '@media (pointer: fine)', _defineProperty(_defineProperty({}, "&:hover .".concat(autocompleteClasses$1.clearIndicator), {
|
|
23689
|
+
visibility: 'visible'
|
|
23690
|
+
}), "&:hover .".concat(autocompleteClasses$1.input), {
|
|
23691
|
+
minWidth: 0
|
|
23691
23692
|
})), "& .".concat(inputClasses$1.root), {
|
|
23692
23693
|
paddingBottom: 1,
|
|
23693
23694
|
'& .MuiInput-input': {
|
|
@@ -23765,6 +23766,13 @@
|
|
|
23765
23766
|
style: _defineProperty({}, "& .".concat(autocompleteClasses$1.input), {
|
|
23766
23767
|
opacity: 1
|
|
23767
23768
|
})
|
|
23769
|
+
}, {
|
|
23770
|
+
props: {
|
|
23771
|
+
multiple: true
|
|
23772
|
+
},
|
|
23773
|
+
style: _defineProperty({}, "& .".concat(autocompleteClasses$1.inputRoot), {
|
|
23774
|
+
flexWrap: 'wrap'
|
|
23775
|
+
})
|
|
23768
23776
|
}])));
|
|
23769
23777
|
var AutocompleteEndAdornment = styled$1('div', {
|
|
23770
23778
|
name: 'MuiAutocomplete',
|
|
@@ -23947,7 +23955,6 @@
|
|
|
23947
23955
|
paddingLeft: 24
|
|
23948
23956
|
}));
|
|
23949
23957
|
var Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
|
|
23950
|
-
var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
|
|
23951
23958
|
var props = useThemeProps$1p({
|
|
23952
23959
|
props: inProps,
|
|
23953
23960
|
name: 'MuiAutocomplete'
|
|
@@ -23958,7 +23965,7 @@
|
|
|
23958
23965
|
props.autoHighlight;
|
|
23959
23966
|
props.autoSelect;
|
|
23960
23967
|
props.blurOnSelect;
|
|
23961
|
-
var
|
|
23968
|
+
var ChipPropsProp = props.ChipProps,
|
|
23962
23969
|
className = props.className,
|
|
23963
23970
|
_props$clearIcon = props.clearIcon,
|
|
23964
23971
|
clearIcon = _props$clearIcon === void 0 ? _ClearIcon || (_ClearIcon = /*#__PURE__*/jsxRuntime_1(ClearIcon, {
|
|
@@ -23971,8 +23978,7 @@
|
|
|
23971
23978
|
clearText = _props$clearText === void 0 ? 'Clear' : _props$clearText,
|
|
23972
23979
|
_props$closeText = props.closeText,
|
|
23973
23980
|
closeText = _props$closeText === void 0 ? 'Close' : _props$closeText,
|
|
23974
|
-
|
|
23975
|
-
componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
|
|
23981
|
+
componentsProps = props.componentsProps,
|
|
23976
23982
|
_props$defaultValue = props.defaultValue;
|
|
23977
23983
|
_props$defaultValue === void 0 ? props.multiple ? [] : null : _props$defaultValue;
|
|
23978
23984
|
var _props$disableClearab = props.disableClearable,
|
|
@@ -24008,9 +24014,8 @@
|
|
|
24008
24014
|
props.inputValue;
|
|
24009
24015
|
var _props$limitTags = props.limitTags,
|
|
24010
24016
|
limitTags = _props$limitTags === void 0 ? -1 : _props$limitTags,
|
|
24011
|
-
|
|
24012
|
-
|
|
24013
|
-
ListboxProps = props.ListboxProps,
|
|
24017
|
+
ListboxComponentProp = props.ListboxComponent,
|
|
24018
|
+
ListboxPropsProp = props.ListboxProps,
|
|
24014
24019
|
_props$loading = props.loading,
|
|
24015
24020
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
24016
24021
|
_props$loadingText = props.loadingText,
|
|
@@ -24029,10 +24034,8 @@
|
|
|
24029
24034
|
var _props$openText = props.openText,
|
|
24030
24035
|
openText = _props$openText === void 0 ? 'Open' : _props$openText;
|
|
24031
24036
|
props.options;
|
|
24032
|
-
var
|
|
24033
|
-
|
|
24034
|
-
_props$PopperComponen = props.PopperComponent,
|
|
24035
|
-
PopperComponent = _props$PopperComponen === void 0 ? Popper$1 : _props$PopperComponen,
|
|
24037
|
+
var PaperComponentProp = props.PaperComponent,
|
|
24038
|
+
PopperComponentProp = props.PopperComponent,
|
|
24036
24039
|
_props$popupIcon = props.popupIcon,
|
|
24037
24040
|
popupIcon = _props$popupIcon === void 0 ? _ArrowDropDownIcon || (_ArrowDropDownIcon = /*#__PURE__*/jsxRuntime_1(ArrowDropDownIcon, {})) : _props$popupIcon,
|
|
24038
24041
|
_props$readOnly = props.readOnly,
|
|
@@ -24045,10 +24048,12 @@
|
|
|
24045
24048
|
_props$selectOnFocus === void 0 ? !props.freeSolo : _props$selectOnFocus;
|
|
24046
24049
|
var _props$size = props.size,
|
|
24047
24050
|
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
24051
|
+
_props$slots = props.slots,
|
|
24052
|
+
slots = _props$slots === void 0 ? {} : _props$slots,
|
|
24048
24053
|
_props$slotProps = props.slotProps,
|
|
24049
24054
|
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps;
|
|
24050
24055
|
props.value;
|
|
24051
|
-
var other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]);
|
|
24056
|
+
var other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slots", "slotProps", "value"]);
|
|
24052
24057
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
24053
24058
|
var _useAutocomplete = useAutocomplete(_extends({}, props, {
|
|
24054
24059
|
componentName: 'Autocomplete'
|
|
@@ -24076,12 +24081,9 @@
|
|
|
24076
24081
|
var hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
24077
24082
|
var _getInputProps = getInputProps(),
|
|
24078
24083
|
handleInputMouseDown = _getInputProps.onMouseDown;
|
|
24079
|
-
var _ref15 = ListboxProps != null ? ListboxProps : {},
|
|
24080
|
-
externalListboxRef = _ref15.ref;
|
|
24081
24084
|
var _getListboxProps = getListboxProps(),
|
|
24082
24085
|
listboxRef = _getListboxProps.ref,
|
|
24083
24086
|
otherListboxProps = _objectWithoutProperties(_getListboxProps, ["ref"]);
|
|
24084
|
-
var combinedListboxRef = useForkRef(listboxRef, externalListboxRef);
|
|
24085
24087
|
var defaultGetOptionLabel = function defaultGetOptionLabel(option) {
|
|
24086
24088
|
var _option$label;
|
|
24087
24089
|
return (_option$label = option.label) != null ? _option$label : option;
|
|
@@ -24102,6 +24104,55 @@
|
|
|
24102
24104
|
size: size
|
|
24103
24105
|
});
|
|
24104
24106
|
var classes = useUtilityClasses$1y(ownerState);
|
|
24107
|
+
var externalForwardedProps = {
|
|
24108
|
+
slots: _extends({
|
|
24109
|
+
listbox: ListboxComponentProp,
|
|
24110
|
+
paper: PaperComponentProp,
|
|
24111
|
+
popper: PopperComponentProp
|
|
24112
|
+
}, slots),
|
|
24113
|
+
slotProps: _extends({
|
|
24114
|
+
chip: ChipPropsProp,
|
|
24115
|
+
listbox: ListboxPropsProp
|
|
24116
|
+
}, componentsProps, slotProps)
|
|
24117
|
+
};
|
|
24118
|
+
var _useSlot = useSlot('listbox', {
|
|
24119
|
+
elementType: 'ul',
|
|
24120
|
+
externalForwardedProps: externalForwardedProps,
|
|
24121
|
+
ownerState: ownerState,
|
|
24122
|
+
className: classes.listbox,
|
|
24123
|
+
additionalProps: otherListboxProps,
|
|
24124
|
+
ref: listboxRef
|
|
24125
|
+
}),
|
|
24126
|
+
_useSlot2 = _slicedToArray(_useSlot, 2),
|
|
24127
|
+
ListboxSlot = _useSlot2[0],
|
|
24128
|
+
listboxProps = _useSlot2[1];
|
|
24129
|
+
var _useSlot3 = useSlot('paper', {
|
|
24130
|
+
elementType: Paper$1,
|
|
24131
|
+
externalForwardedProps: externalForwardedProps,
|
|
24132
|
+
ownerState: ownerState,
|
|
24133
|
+
className: classes.paper
|
|
24134
|
+
}),
|
|
24135
|
+
_useSlot4 = _slicedToArray(_useSlot3, 2),
|
|
24136
|
+
PaperSlot = _useSlot4[0],
|
|
24137
|
+
paperProps = _useSlot4[1];
|
|
24138
|
+
var _useSlot5 = useSlot('popper', {
|
|
24139
|
+
elementType: Popper$1,
|
|
24140
|
+
externalForwardedProps: externalForwardedProps,
|
|
24141
|
+
ownerState: ownerState,
|
|
24142
|
+
className: classes.popper,
|
|
24143
|
+
additionalProps: {
|
|
24144
|
+
disablePortal: disablePortal,
|
|
24145
|
+
style: {
|
|
24146
|
+
width: anchorEl ? anchorEl.clientWidth : null
|
|
24147
|
+
},
|
|
24148
|
+
role: 'presentation',
|
|
24149
|
+
anchorEl: anchorEl,
|
|
24150
|
+
open: popupOpen
|
|
24151
|
+
}
|
|
24152
|
+
}),
|
|
24153
|
+
_useSlot6 = _slicedToArray(_useSlot5, 2),
|
|
24154
|
+
PopperSlot = _useSlot6[0],
|
|
24155
|
+
popperProps = _useSlot6[1];
|
|
24105
24156
|
var startAdornment;
|
|
24106
24157
|
if (multiple && value.length > 0) {
|
|
24107
24158
|
var getCustomizedTagProps = function getCustomizedTagProps(params) {
|
|
@@ -24114,12 +24165,15 @@
|
|
|
24114
24165
|
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
24115
24166
|
} else {
|
|
24116
24167
|
startAdornment = value.map(function (option, index) {
|
|
24168
|
+
var _getCustomizedTagProp = getCustomizedTagProps({
|
|
24169
|
+
index: index
|
|
24170
|
+
}),
|
|
24171
|
+
key = _getCustomizedTagProp.key,
|
|
24172
|
+
customTagProps = _objectWithoutProperties(_getCustomizedTagProp, ["key"]);
|
|
24117
24173
|
return /*#__PURE__*/jsxRuntime_1(Chip$1, _extends({
|
|
24118
24174
|
label: getOptionLabel(option),
|
|
24119
24175
|
size: size
|
|
24120
|
-
},
|
|
24121
|
-
index: index
|
|
24122
|
-
}), ChipProps));
|
|
24176
|
+
}, customTagProps, externalForwardedProps.slotProps.chip), key);
|
|
24123
24177
|
});
|
|
24124
24178
|
}
|
|
24125
24179
|
}
|
|
@@ -24168,28 +24222,15 @@
|
|
|
24168
24222
|
inputValue: inputValue
|
|
24169
24223
|
}, ownerState);
|
|
24170
24224
|
};
|
|
24171
|
-
var clearIndicatorSlotProps =
|
|
24172
|
-
var
|
|
24173
|
-
var popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
|
|
24174
|
-
var popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
|
|
24225
|
+
var clearIndicatorSlotProps = externalForwardedProps.slotProps.clearIndicator;
|
|
24226
|
+
var popupIndicatorSlotProps = externalForwardedProps.slotProps.popupIndicator;
|
|
24175
24227
|
var renderAutocompletePopperChildren = function renderAutocompletePopperChildren(children) {
|
|
24176
24228
|
return /*#__PURE__*/jsxRuntime_1(AutocompletePopper, _extends({
|
|
24177
|
-
as:
|
|
24178
|
-
|
|
24179
|
-
style: {
|
|
24180
|
-
width: anchorEl ? anchorEl.clientWidth : null
|
|
24181
|
-
},
|
|
24182
|
-
ownerState: ownerState,
|
|
24183
|
-
role: "presentation",
|
|
24184
|
-
anchorEl: anchorEl,
|
|
24185
|
-
open: popupOpen
|
|
24186
|
-
}, popperSlotProps, {
|
|
24187
|
-
className: clsx(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
|
|
24229
|
+
as: PopperSlot
|
|
24230
|
+
}, popperProps, {
|
|
24188
24231
|
children: /*#__PURE__*/jsxRuntime_1(AutocompletePaper, _extends({
|
|
24189
|
-
|
|
24190
|
-
|
|
24191
|
-
}, paperSlotProps, {
|
|
24192
|
-
className: clsx(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
|
|
24232
|
+
as: PaperSlot
|
|
24233
|
+
}, paperProps, {
|
|
24193
24234
|
children: children
|
|
24194
24235
|
}))
|
|
24195
24236
|
}));
|
|
@@ -24197,11 +24238,8 @@
|
|
|
24197
24238
|
var autocompletePopper = null;
|
|
24198
24239
|
if (groupedOptions.length > 0) {
|
|
24199
24240
|
autocompletePopper = renderAutocompletePopperChildren( /*#__PURE__*/jsxRuntime_1(AutocompleteListbox, _extends({
|
|
24200
|
-
as:
|
|
24201
|
-
|
|
24202
|
-
ownerState: ownerState
|
|
24203
|
-
}, otherListboxProps, ListboxProps, {
|
|
24204
|
-
ref: combinedListboxRef,
|
|
24241
|
+
as: ListboxSlot
|
|
24242
|
+
}, listboxProps, {
|
|
24205
24243
|
children: groupedOptions.map(function (option, index) {
|
|
24206
24244
|
if (groupBy) {
|
|
24207
24245
|
return renderGroup({
|
|
@@ -24324,6 +24362,7 @@
|
|
|
24324
24362
|
blurOnSelect: PropTypes.oneOfType([PropTypes.oneOf(['mouse', 'touch']), PropTypes.bool]),
|
|
24325
24363
|
/**
|
|
24326
24364
|
* Props applied to the [`Chip`](/material-ui/api/chip/) element.
|
|
24365
|
+
* @deprecated Use `slotProps.chip` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24327
24366
|
*/
|
|
24328
24367
|
ChipProps: PropTypes.object,
|
|
24329
24368
|
/**
|
|
@@ -24368,7 +24407,7 @@
|
|
|
24368
24407
|
closeText: PropTypes.string,
|
|
24369
24408
|
/**
|
|
24370
24409
|
* The props used for each slot inside.
|
|
24371
|
-
* @
|
|
24410
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24372
24411
|
*/
|
|
24373
24412
|
componentsProps: PropTypes.shape({
|
|
24374
24413
|
clearIndicator: PropTypes.object,
|
|
@@ -24526,10 +24565,12 @@
|
|
|
24526
24565
|
/**
|
|
24527
24566
|
* The component used to render the listbox.
|
|
24528
24567
|
* @default 'ul'
|
|
24568
|
+
* @deprecated Use `slots.listbox` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24529
24569
|
*/
|
|
24530
24570
|
ListboxComponent: PropTypes.elementType,
|
|
24531
24571
|
/**
|
|
24532
24572
|
* Props applied to the Listbox element.
|
|
24573
|
+
* @deprecated Use `slotProps.listbox` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24533
24574
|
*/
|
|
24534
24575
|
ListboxProps: PropTypes.object,
|
|
24535
24576
|
/**
|
|
@@ -24624,11 +24665,13 @@
|
|
|
24624
24665
|
/**
|
|
24625
24666
|
* The component used to render the body of the popup.
|
|
24626
24667
|
* @default Paper
|
|
24668
|
+
* @deprecated Use `slots.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24627
24669
|
*/
|
|
24628
24670
|
PaperComponent: PropTypes.elementType,
|
|
24629
24671
|
/**
|
|
24630
24672
|
* The component used to position the popup.
|
|
24631
24673
|
* @default Popper
|
|
24674
|
+
* @deprecated Use `slots.popper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
24632
24675
|
*/
|
|
24633
24676
|
PopperComponent: PropTypes.elementType,
|
|
24634
24677
|
/**
|
|
@@ -24689,11 +24732,22 @@
|
|
|
24689
24732
|
* The props used for each slot inside.
|
|
24690
24733
|
* @default {}
|
|
24691
24734
|
*/
|
|
24692
|
-
slotProps: PropTypes
|
|
24693
|
-
|
|
24694
|
-
|
|
24695
|
-
|
|
24696
|
-
|
|
24735
|
+
slotProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({
|
|
24736
|
+
chip: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
24737
|
+
clearIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
24738
|
+
listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
24739
|
+
paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
24740
|
+
popper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
24741
|
+
popupIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
24742
|
+
}),
|
|
24743
|
+
/**
|
|
24744
|
+
* The components used for each slot inside.
|
|
24745
|
+
* @default {}
|
|
24746
|
+
*/
|
|
24747
|
+
slots: PropTypes.shape({
|
|
24748
|
+
listbox: PropTypes.elementType,
|
|
24749
|
+
paper: PropTypes.elementType,
|
|
24750
|
+
popper: PropTypes.elementType
|
|
24697
24751
|
}),
|
|
24698
24752
|
/**
|
|
24699
24753
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|