1 | import _extends from "@babel/runtime/helpers/extends";
|
2 | import "core-js/modules/es6.object.assign";
|
3 | import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
4 | import _createClass from "@babel/runtime/helpers/createClass";
|
5 | import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
6 | import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
7 | import _inherits from "@babel/runtime/helpers/inherits";
|
8 | import React, { Component, PropTypes } from 'react';
|
9 | import { render } from 'react-dom';
|
10 | import Input from './input';
|
11 | import List from './list';
|
12 |
|
13 | function empty() {}
|
14 |
|
15 | var Search =
|
16 |
|
17 | function (_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 |
|
43 | Search.defaultProps = {
|
44 | isFetching: false,
|
45 | onFindAll: empty,
|
46 | listClick: empty,
|
47 | listValue: []
|
48 | };
|
49 | export { Search as default }; |
\ | No newline at end of file |