Initial commit
This commit is contained in:
47
node_modules/react-bootstrap/es/ModalBody.js
generated
vendored
Normal file
47
node_modules/react-bootstrap/es/ModalBody.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime-corejs2/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
||||
import classNames from 'classnames';
|
||||
import React from 'react';
|
||||
import elementType from 'prop-types-extra/lib/elementType';
|
||||
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
|
||||
var propTypes = {
|
||||
componentClass: elementType
|
||||
};
|
||||
var defaultProps = {
|
||||
componentClass: 'div'
|
||||
};
|
||||
|
||||
var ModalBody =
|
||||
/*#__PURE__*/
|
||||
function (_React$Component) {
|
||||
_inheritsLoose(ModalBody, _React$Component);
|
||||
|
||||
function ModalBody() {
|
||||
return _React$Component.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ModalBody.prototype;
|
||||
|
||||
_proto.render = function render() {
|
||||
var _this$props = this.props,
|
||||
Component = _this$props.componentClass,
|
||||
className = _this$props.className,
|
||||
props = _objectWithoutPropertiesLoose(_this$props, ["componentClass", "className"]);
|
||||
|
||||
var _splitBsProps = splitBsProps(props),
|
||||
bsProps = _splitBsProps[0],
|
||||
elementProps = _splitBsProps[1];
|
||||
|
||||
var classes = getClassSet(bsProps);
|
||||
return React.createElement(Component, _extends({}, elementProps, {
|
||||
className: classNames(className, classes)
|
||||
}));
|
||||
};
|
||||
|
||||
return ModalBody;
|
||||
}(React.Component);
|
||||
|
||||
ModalBody.propTypes = propTypes;
|
||||
ModalBody.defaultProps = defaultProps;
|
||||
export default bsClass('modal-body', ModalBody);
|
||||
Reference in New Issue
Block a user