UNPKG

@flexis/ui

Version:

Styleless React Components

50 lines (42 loc) 2.68 kB
import _extends from "@babel/runtime-corejs3/helpers/extends"; import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/objectWithoutProperties"; import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck"; import _createClass from "@babel/runtime-corejs3/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf"; import _inherits from "@babel/runtime-corejs3/helpers/inherits"; import React from 'react'; var _createElement = React.createElement; var PureComponent = React.PureComponent; import PropTypes from 'prop-types'; import { style, classes } from './Expand.st.css'; var ExpandContent = /** @class */ function () { var ExpandContent = /*#__PURE__*/function (_PureComponent) { _inherits(ExpandContent, _PureComponent); function ExpandContent() { _classCallCheck(this, ExpandContent); return _possibleConstructorReturn(this, _getPrototypeOf(ExpandContent).apply(this, arguments)); } _createClass(ExpandContent, [{ key: "render", value: function render() { var _this$props = this.props, className = _this$props.className, children = _this$props.children, props = _objectWithoutProperties(_this$props, ["className", "children"]); return _createElement("div", _extends({}, props, { className: style(classes.content, className) }), children); } }]); return ExpandContent; }(PureComponent); process.env.NODE_ENV !== "production" ? ExpandContent.propTypes = { children: PropTypes.node } : void 0; return ExpandContent; }(); export { ExpandContent }; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0V4cGFuZC9FeHBhbmRDb250ZW50LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsT0FBTyxLQUFQLE1BSU8sT0FKUDs7O0FBS0EsT0FBTyxTQUFQLE1BQXNCLFlBQXRCO0FBSUEsU0FDQyxLQURELEVBRUMsT0FGRCxRQUdPLGlCQUhQOztBQWNBLElBQUEsYUFBQTtBQUFBO0FBQUEsWUFBQTtBQUFBLE1BQWEsYUFBYjtBQUFBOztBQUFBO0FBQUE7O0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUEsK0JBTU87QUFBQSwwQkFNRCxLQUFLLEtBTko7QUFBQSxZQUdKLFNBSEksZUFHSixTQUhJO0FBQUEsWUFJSixRQUpJLGVBSUosUUFKSTtBQUFBLFlBS0QsS0FMQzs7QUFRTCxlQUNDLG1DQUNLLEtBREw7QUFFQyxVQUFBLFNBQVMsRUFBRSxLQUFLLENBQUMsT0FBTyxDQUFDLE9BQVQsRUFBa0IsU0FBbEI7QUFGakIsWUFJRSxRQUpGLENBREQ7QUFRQTtBQXRCRjs7QUFBQTtBQUFBLElBQW1DLGFBQW5DOztBQUVRLDBDQUFBLGFBQUEsQ0FBQSxTQUFBLEdBQVk7QUFDbEIsSUFBQSxRQUFRLEVBQUUsU0FBUyxDQUFDO0FBREYsR0FBWjtBQXFCUixTQUFBLGFBQUE7QUFBQyxDQXZCRCxFQUFBOztTQUFhLGEiLCJzb3VyY2VSb290IjoiIn0=