@mui/material 5.16.13 → 5.16.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/Autocomplete/Autocomplete.js +49 -58
- package/CHANGELOG.md +14 -0
- package/index.js +1 -1
- package/legacy/Autocomplete/Autocomplete.js +51 -62
- package/legacy/index.js +1 -1
- package/legacy/version/index.js +2 -2
- package/modern/Autocomplete/Autocomplete.js +49 -58
- package/modern/index.js +1 -1
- package/modern/version/index.js +2 -2
- package/node/Autocomplete/Autocomplete.js +49 -58
- package/node/index.js +1 -1
- package/node/version/index.js +2 -2
- package/package.json +4 -4
- package/umd/material-ui.development.js +52 -63
- package/umd/material-ui.production.min.js +2 -2
- package/version/index.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.16.
|
|
2
|
+
* @mui/material v5.16.14
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -21818,67 +21818,6 @@
|
|
|
21818
21818
|
var paperSlotProps = (_slotProps$paper = slotProps.paper) != null ? _slotProps$paper : componentsProps.paper;
|
|
21819
21819
|
var popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
|
|
21820
21820
|
var popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
|
|
21821
|
-
var renderAutocompletePopperChildren = function renderAutocompletePopperChildren(children) {
|
|
21822
|
-
return /*#__PURE__*/jsxRuntimeExports.jsx(AutocompletePopper, _extends({
|
|
21823
|
-
as: PopperComponent,
|
|
21824
|
-
disablePortal: disablePortal,
|
|
21825
|
-
style: {
|
|
21826
|
-
width: anchorEl ? anchorEl.clientWidth : null
|
|
21827
|
-
},
|
|
21828
|
-
ownerState: ownerState,
|
|
21829
|
-
role: "presentation",
|
|
21830
|
-
anchorEl: anchorEl,
|
|
21831
|
-
open: popupOpen
|
|
21832
|
-
}, popperSlotProps, {
|
|
21833
|
-
className: clsx(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
|
|
21834
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx(AutocompletePaper, _extends({
|
|
21835
|
-
ownerState: ownerState,
|
|
21836
|
-
as: PaperComponent
|
|
21837
|
-
}, paperSlotProps, {
|
|
21838
|
-
className: clsx(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
|
|
21839
|
-
children: children
|
|
21840
|
-
}))
|
|
21841
|
-
}));
|
|
21842
|
-
};
|
|
21843
|
-
var autocompletePopper = null;
|
|
21844
|
-
if (groupedOptions.length > 0) {
|
|
21845
|
-
autocompletePopper = renderAutocompletePopperChildren( /*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteListbox, _extends({
|
|
21846
|
-
as: ListboxComponent,
|
|
21847
|
-
className: classes.listbox,
|
|
21848
|
-
ownerState: ownerState
|
|
21849
|
-
}, otherListboxProps, ListboxProps, {
|
|
21850
|
-
ref: combinedListboxRef,
|
|
21851
|
-
children: groupedOptions.map(function (option, index) {
|
|
21852
|
-
if (groupBy) {
|
|
21853
|
-
return renderGroup({
|
|
21854
|
-
key: option.key,
|
|
21855
|
-
group: option.group,
|
|
21856
|
-
children: option.options.map(function (option2, index2) {
|
|
21857
|
-
return renderListOption(option2, option.index + index2);
|
|
21858
|
-
})
|
|
21859
|
-
});
|
|
21860
|
-
}
|
|
21861
|
-
return renderListOption(option, index);
|
|
21862
|
-
})
|
|
21863
|
-
})));
|
|
21864
|
-
} else if (loading && groupedOptions.length === 0) {
|
|
21865
|
-
autocompletePopper = renderAutocompletePopperChildren( /*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteLoading, {
|
|
21866
|
-
className: classes.loading,
|
|
21867
|
-
ownerState: ownerState,
|
|
21868
|
-
children: loadingText
|
|
21869
|
-
}));
|
|
21870
|
-
} else if (groupedOptions.length === 0 && !freeSolo && !loading) {
|
|
21871
|
-
autocompletePopper = renderAutocompletePopperChildren( /*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteNoOptions, {
|
|
21872
|
-
className: classes.noOptions,
|
|
21873
|
-
ownerState: ownerState,
|
|
21874
|
-
role: "presentation",
|
|
21875
|
-
onMouseDown: function onMouseDown(event) {
|
|
21876
|
-
// Prevent input blur when interacting with the "no options" content
|
|
21877
|
-
event.preventDefault();
|
|
21878
|
-
},
|
|
21879
|
-
children: noOptionsText
|
|
21880
|
-
}));
|
|
21881
|
-
}
|
|
21882
21821
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(React__namespace.Fragment, {
|
|
21883
21822
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteRoot, _extends({
|
|
21884
21823
|
ref: ref,
|
|
@@ -21928,7 +21867,57 @@
|
|
|
21928
21867
|
readOnly: readOnly
|
|
21929
21868
|
}, getInputProps())
|
|
21930
21869
|
})
|
|
21931
|
-
})), anchorEl ?
|
|
21870
|
+
})), anchorEl ? /*#__PURE__*/jsxRuntimeExports.jsx(AutocompletePopper, _extends({
|
|
21871
|
+
as: PopperComponent,
|
|
21872
|
+
disablePortal: disablePortal,
|
|
21873
|
+
style: {
|
|
21874
|
+
width: anchorEl ? anchorEl.clientWidth : null
|
|
21875
|
+
},
|
|
21876
|
+
ownerState: ownerState,
|
|
21877
|
+
role: "presentation",
|
|
21878
|
+
anchorEl: anchorEl,
|
|
21879
|
+
open: popupOpen
|
|
21880
|
+
}, popperSlotProps, {
|
|
21881
|
+
className: clsx(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
|
|
21882
|
+
children: /*#__PURE__*/jsxRuntimeExports.jsxs(AutocompletePaper, _extends({
|
|
21883
|
+
ownerState: ownerState,
|
|
21884
|
+
as: PaperComponent
|
|
21885
|
+
}, paperSlotProps, {
|
|
21886
|
+
className: clsx(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
|
|
21887
|
+
children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteLoading, {
|
|
21888
|
+
className: classes.loading,
|
|
21889
|
+
ownerState: ownerState,
|
|
21890
|
+
children: loadingText
|
|
21891
|
+
}) : null, groupedOptions.length === 0 && !freeSolo && !loading ? /*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteNoOptions, {
|
|
21892
|
+
className: classes.noOptions,
|
|
21893
|
+
ownerState: ownerState,
|
|
21894
|
+
role: "presentation",
|
|
21895
|
+
onMouseDown: function onMouseDown(event) {
|
|
21896
|
+
// Prevent input blur when interacting with the "no options" content
|
|
21897
|
+
event.preventDefault();
|
|
21898
|
+
},
|
|
21899
|
+
children: noOptionsText
|
|
21900
|
+
}) : null, groupedOptions.length > 0 ? /*#__PURE__*/jsxRuntimeExports.jsx(AutocompleteListbox, _extends({
|
|
21901
|
+
as: ListboxComponent,
|
|
21902
|
+
className: classes.listbox,
|
|
21903
|
+
ownerState: ownerState
|
|
21904
|
+
}, otherListboxProps, ListboxProps, {
|
|
21905
|
+
ref: combinedListboxRef,
|
|
21906
|
+
children: groupedOptions.map(function (option, index) {
|
|
21907
|
+
if (groupBy) {
|
|
21908
|
+
return renderGroup({
|
|
21909
|
+
key: option.key,
|
|
21910
|
+
group: option.group,
|
|
21911
|
+
children: option.options.map(function (option2, index2) {
|
|
21912
|
+
return renderListOption(option2, option.index + index2);
|
|
21913
|
+
})
|
|
21914
|
+
});
|
|
21915
|
+
}
|
|
21916
|
+
return renderListOption(option, index);
|
|
21917
|
+
})
|
|
21918
|
+
})) : null]
|
|
21919
|
+
}))
|
|
21920
|
+
})) : null]
|
|
21932
21921
|
});
|
|
21933
21922
|
});
|
|
21934
21923
|
Autocomplete.propTypes /* remove-proptypes */ = {
|