UNPKG

1.26 kBJavaScriptView Raw
1import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
2import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
3import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
4import classNames from 'classnames';
5import React from 'react';
6import { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils';
7import { Size } from './utils/StyleConfig';
8
9var Well =
10/*#__PURE__*/
11function (_React$Component) {
12 _inheritsLoose(Well, _React$Component);
13
14 function Well() {
15 return _React$Component.apply(this, arguments) || this;
16 }
17
18 var _proto = Well.prototype;
19
20 _proto.render = function render() {
21 var _this$props = this.props,
22 className = _this$props.className,
23 props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
24
25 var _splitBsProps = splitBsProps(props),
26 bsProps = _splitBsProps[0],
27 elementProps = _splitBsProps[1];
28
29 var classes = getClassSet(bsProps);
30 return React.createElement("div", _extends({}, elementProps, {
31 className: classNames(className, classes)
32 }));
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