UNPKG

@flexis/ui

Version:

Styleless React Components

51 lines (43 loc) 2.69 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 './Badge.st.css'; export { default as BadgeContainer } from './BadgeContainer'; var Badge = /** @class */ function () { var Badge = /*#__PURE__*/function (_PureComponent) { _inherits(Badge, _PureComponent); function Badge() { _classCallCheck(this, Badge); return _possibleConstructorReturn(this, _getPrototypeOf(Badge).apply(this, arguments)); } _createClass(Badge, [{ 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("span", _extends({}, props, { className: style(classes.root, className) }), children); } }]); return Badge; }(PureComponent); process.env.NODE_ENV !== "production" ? Badge.propTypes = { children: PropTypes.node } : void 0; return Badge; }(); export default Badge; //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0JhZGdlL0JhZGdlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsT0FBTyxLQUFQLE1BSU8sT0FKUDs7O0FBS0EsT0FBTyxTQUFQLE1BQXNCLFlBQXRCO0FBSUEsU0FDQyxLQURELEVBRUMsT0FGRCxRQUdPLGdCQUhQO0FBS0EsU0FDQyxPQUFPLElBQUksY0FEWixRQUVPLGtCQUZQOztBQWFBLElBQUEsS0FBQTtBQUFBO0FBQUEsWUFBQTtBQUFBLE1BQXFCLEtBQXJCO0FBQUE7O0FBQUE7QUFBQTs7QUFBQTtBQUFBOztBQUFBO0FBQUE7QUFBQSwrQkFNTztBQUFBLDBCQU1ELEtBQUssS0FOSjtBQUFBLFlBR0osU0FISSxlQUdKLFNBSEk7QUFBQSxZQUlKLFFBSkksZUFJSixRQUpJO0FBQUEsWUFLRCxLQUxDOztBQVFMLGVBQ0Msb0NBQ0ssS0FETDtBQUVDLFVBQUEsU0FBUyxFQUFFLEtBQUssQ0FBQyxPQUFPLENBQUMsSUFBVCxFQUFlLFNBQWY7QUFGakIsWUFJRSxRQUpGLENBREQ7QUFRQTtBQXRCRjs7QUFBQTtBQUFBLElBQW1DLGFBQW5DOztBQUVRLDBDQUFBLEtBQUEsQ0FBQSxTQUFBLEdBQVk7QUFDbEIsSUFBQSxRQUFRLEVBQUUsU0FBUyxDQUFDO0FBREYsR0FBWjtBQXFCUixTQUFBLEtBQUE7QUFBQyxDQXZCRCxFQUFBOztlQUFxQixLIiwic291cmNlUm9vdCI6IiJ9