1 | import _extends from 'babel-runtime/helpers/extends';
|
2 | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
3 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
4 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
5 | import _inherits from 'babel-runtime/helpers/inherits';
|
6 | import classNames from 'classnames';
|
7 | import React from 'react';
|
8 |
|
9 | import { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
10 | import { Size } from './utils/StyleConfig';
|
11 |
|
12 | var Well = function (_React$Component) {
|
13 | _inherits(Well, _React$Component);
|
14 |
|
15 | function Well() {
|
16 | _classCallCheck(this, Well);
|
17 |
|
18 | return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
19 | }
|
20 |
|
21 | Well.prototype.render = function render() {
|
22 | var _props = this.props,
|
23 | className = _props.className,
|
24 | props = _objectWithoutProperties(_props, ['className']);
|
25 |
|
26 | var _splitBsProps = splitBsProps(props),
|
27 | bsProps = _splitBsProps[0],
|
28 | elementProps = _splitBsProps[1];
|
29 |
|
30 | var classes = getClassSet(bsProps);
|
31 |
|
32 | return React.createElement('div', _extends({}, elementProps, { className: classNames(className, classes) }));
|
33 | };
|
34 |
|
35 | return Well;
|
36 | }(React.Component);
|
37 |
|
38 | export default bsClass('well', bsSizes([Size.LARGE, Size.SMALL], Well)); |
\ | No newline at end of file |