UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.44 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = require('react'); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var PandaIcon = function (_Component) { _inherits(PandaIcon, _Component); function PandaIcon(props) { _classCallCheck(this, PandaIcon); return _possibleConstructorReturn(this, (PandaIcon.__proto__ || Object.getPrototypeOf(PandaIcon)).call(this, props)); } _createClass(PandaIcon, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', _extends({ xmlns: 'http://www.w3.org/2000/svg', width: '24', height: '24', baseProfile: 'full', viewBox: '0 0 24.00 24.00' }, this.props, { className: 'material material-panda-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M12 3c1.74 0 3.363.493 4.74 1.348a3.5 3.5 0 1 1 3.984 5.432 9 9 0 1 1-17.448 0A3.501 3.501 0 1 1 7.26 4.348 8.958 8.958 0 0 1 12 3zm0 2a7 7 0 1 0 0 14 7 7 0 0 0 0-14zm4.19 5.297c.358 1.334-.11 2.618-1.043 2.868-.934.25-1.98-.628-2.337-1.962-.358-1.334.11-2.618 1.043-2.868.934-.25 1.98.628 2.337 1.962zm-8.38 0c.357-1.334 1.403-2.212 2.337-1.962.934.25 1.4 1.534 1.043 2.868-.357 1.334-1.403 2.212-2.337 1.962-.934-.25-1.4-1.534-1.043-2.868zM12 14c.595 0 1.13.195 1.496.504l-.996.998A.75.75 0 0 0 14 15.5a.5.5 0 0 1 1 0 1.75 1.75 0 0 1-3 1.225A1.75 1.75 0 0 1 9 15.5a.5.5 0 0 1 1 0 .75.75 0 0 0 1.5 0l-.996-.996c.367-.31.9-.504 1.496-.504z' }) ); } }]); return PandaIcon; }(_react.Component); PandaIcon.defaultProps = { className: '' }; exports.default = PandaIcon;