UNPKG

1.53 kBJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/extends";
2import "core-js/modules/es6.object.assign";
3import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4import _createClass from "@babel/runtime/helpers/createClass";
5import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7import _inherits from "@babel/runtime/helpers/inherits";
8import React, { Component, PropTypes } from 'react';
9import { render } from 'react-dom';
10import Input from './input';
11import List from './list';
12
13function empty() {}
14
15var Search =
16/*#__PURE__*/
17function (_Component) {
18 _inherits(Search, _Component);
19
20 function Search() {
21 _classCallCheck(this, Search);
22
23 return _possibleConstructorReturn(this, _getPrototypeOf(Search).apply(this, arguments));
24 }
25
26 _createClass(Search, [{
27 key: "render",
28 value: function render() {
29 var props = Object.assign({}, this.props);
30 var _className = props.listValue;
31 var heightCalc = props.setListHeight();
32 return React.createElement("div", {
33 className: "BS_lookupV2__mountContainer BS_lookupV2__mountContainer_is-search"
34 }, React.createElement(Input, props), React.createElement(List, _extends({}, props, {
35 listHeight: heightCalc.itemHeight || 0
36 })));
37 }
38 }]);
39
40 return Search;
41}(Component);
42
43Search.defaultProps = {
44 isFetching: false,
45 onFindAll: empty,
46 listClick: empty,
47 listValue: []
48};
49export { Search as default };
\No newline at end of file