@stokr/components-library 2.3.8 → 2.3.9
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.
|
@@ -34,10 +34,13 @@ DropdownIndicator.propTypes = {
|
|
|
34
34
|
selectProps: _propTypes.default.instanceOf(Object).isRequired
|
|
35
35
|
};
|
|
36
36
|
var SelectMenuListWithScroll = function SelectMenuListWithScroll(props) {
|
|
37
|
-
var children = props.children
|
|
37
|
+
var children = props.children,
|
|
38
|
+
selectProps = props.selectProps;
|
|
39
|
+
var _selectProps$maxMenuH = selectProps.maxMenuHeight,
|
|
40
|
+
maxMenuHeight = _selectProps$maxMenuH === void 0 ? 300 : _selectProps$maxMenuH;
|
|
38
41
|
return /*#__PURE__*/_react.default.createElement(_Select.SelectMenuList, {
|
|
39
42
|
autoHeight: true,
|
|
40
|
-
autoHeightMax:
|
|
43
|
+
autoHeightMax: maxMenuHeight,
|
|
41
44
|
fullHeight: true
|
|
42
45
|
}, children);
|
|
43
46
|
};
|
|
@@ -53,7 +56,8 @@ var Select = function Select(props) {
|
|
|
53
56
|
error = props.error,
|
|
54
57
|
touched = props.touched,
|
|
55
58
|
value = props.value,
|
|
56
|
-
disabled = props.disabled
|
|
59
|
+
disabled = props.disabled,
|
|
60
|
+
menuHeight = props.menuHeight;
|
|
57
61
|
var _useState = (0, _react.useState)(!!value),
|
|
58
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
63
|
labelUp = _useState2[0],
|
|
@@ -110,6 +114,7 @@ var Select = function Select(props) {
|
|
|
110
114
|
}),
|
|
111
115
|
placeholder: "",
|
|
112
116
|
isSearchable: search,
|
|
117
|
+
maxMenuHeight: menuHeight,
|
|
113
118
|
styles: {
|
|
114
119
|
control: function control() {
|
|
115
120
|
return _Select.SelectControl;
|