react-shields.io
Version:
react-shields.io ===
49 lines (39 loc) • 2.32 kB
JavaScript
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
import _inherits from "@babel/runtime/helpers/esm/inherits";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
import React, { Component } from 'react';
import Issues from './Issues';
import Size from './Size';
import Downloads from './Downloads';
import Activity from './Activity';
var Github =
/*#__PURE__*/
function (_Component) {
_inherits(Github, _Component);
function Github() {
_classCallCheck(this, Github);
return _possibleConstructorReturn(this, _getPrototypeOf(Github).apply(this, arguments));
}
_createClass(Github, [{
key: "render",
value: function render() {
var _this = this;
return React.createElement(React.Fragment, null, React.Children.toArray(this.props.children).map(function (child) {
if (!React.isValidElement(child)) return;
return React.cloneElement(child, _objectSpread({}, _this.props, {}, child.props));
}));
}
}]);
return Github;
}(Component);
Github.Issues = Issues;
Github.Size = Size;
Github.Activity = Activity;
Github.Downloads = Downloads;
export { Github as default };
//# sourceMappingURL=Github.js.map