1 | import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
2 | import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
3 | import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
4 | import classNames from 'classnames';
|
5 | import React from 'react';
|
6 | import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
7 |
|
8 | var HelpBlock =
|
9 |
|
10 | function (_React$Component) {
|
11 | _inheritsLoose(HelpBlock, _React$Component);
|
12 |
|
13 | function HelpBlock() {
|
14 | return _React$Component.apply(this, arguments) || this;
|
15 | }
|
16 |
|
17 | var _proto = HelpBlock.prototype;
|
18 |
|
19 | _proto.render = function render() {
|
20 | var _this$props = this.props,
|
21 | className = _this$props.className,
|
22 | props = _objectWithoutPropertiesLoose(_this$props, ["className"]);
|
23 |
|
24 | var _splitBsProps = splitBsProps(props),
|
25 | bsProps = _splitBsProps[0],
|
26 | elementProps = _splitBsProps[1];
|
27 |
|
28 | var classes = getClassSet(bsProps);
|
29 | return React.createElement("span", _extends({}, elementProps, {
|
30 | className: classNames(className, classes)
|
31 | }));
|
32 | };
|
33 |
|
34 | return HelpBlock;
|
35 | }(React.Component);
|
36 |
|
37 | export default bsClass('help-block', HelpBlock); |
\ | No newline at end of file |