UNPKG

1.34 kBJavaScriptView Raw
1import _extends from 'babel-runtime/helpers/extends';
2import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
3import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
4import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
5import _inherits from 'babel-runtime/helpers/inherits';
6import classNames from 'classnames';
7import React from 'react';
8
9import { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils';
10import { Size } from './utils/StyleConfig';
11
12var 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
38export default bsClass('well', bsSizes([Size.LARGE, Size.SMALL], Well));
\No newline at end of file