UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.72 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 JsfiddleIcon = function (_Component) { _inherits(JsfiddleIcon, _Component); function JsfiddleIcon(props) { _classCallCheck(this, JsfiddleIcon); return _possibleConstructorReturn(this, (JsfiddleIcon.__proto__ || Object.getPrototypeOf(JsfiddleIcon)).call(this, props)); } _createClass(JsfiddleIcon, [{ 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-jsfiddle-icon ' + this.props.className }), _react2.default.createElement('path', { fillRule: 'evenodd', d: 'M20.331 10.794c1.567.643 2.669 2.163 2.669 3.94C23 17.09 21.06 19 18.667 19H5.4C2.983 18.963 1 17.012 1 14.623c0-1.597.874-2.99 2.174-3.75a2.914 2.914 0 0 1-.137-.887c0-1.642 1.352-2.973 3.02-2.973.695 0 1.335.235 1.845.624a6.547 6.547 0 0 1 5.904-3.675c3.614 0 6.545 2.886 6.545 6.445 0 .13-.012.258-.02.387zm-11.116.06c-1.769 0-3.202 1.263-3.202 2.82s1.433 2.82 3.202 2.82c1.037 0 1.96-.434 2.544-1.107l-1.01-1.138c-.33.435-.976.74-1.534.74-.789 0-1.428-.589-1.428-1.315s.64-1.314 1.428-1.314c.471 0 .909.235 1.348.519.44.284 1.166 1.296 1.743 1.944 1.469 1.465 2.222 1.594 3.092 1.594 1.768 0 3.202-1.262 3.202-2.82 0-1.557-1.434-2.82-3.203-2.82-1.037 0-1.958.435-2.544 1.108l1.01 1.138c.33-.435.977-.74 1.535-.74.788 0 1.428.588 1.428 1.315 0 .725-.64 1.314-1.428 1.314-.471 0-.91-.235-1.348-.52-.44-.284-1.166-1.295-1.744-1.943-1.468-1.466-2.221-1.595-3.09-1.595z' }) ); } }]); return JsfiddleIcon; }(_react.Component); JsfiddleIcon.defaultProps = { className: '' }; exports.default = JsfiddleIcon;