UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.93 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 AtomIcon = function (_Component) { _inherits(AtomIcon, _Component); function AtomIcon(props) { _classCallCheck(this, AtomIcon); return _possibleConstructorReturn(this, (AtomIcon.__proto__ || Object.getPrototypeOf(AtomIcon)).call(this, props)); } _createClass(AtomIcon, [{ 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-atom-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M12 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2zM4.222 4.222c1.43-1.43 4.532-.794 7.778 1.34 3.246-2.134 6.348-2.77 7.778-1.34 1.43 1.43.794 4.532-1.34 7.778 2.134 3.246 2.77 6.348 1.34 7.778-1.43 1.43-4.532.794-7.778-1.34-3.246 2.134-6.347 2.77-7.778 1.34-1.43-1.43-.794-4.532 1.34-7.778-2.134-3.246-2.77-6.347-1.34-7.778zm11.314 4.242a23.83 23.83 0 0 1 1.69 1.878c1.381-2.135 1.887-3.957 1.138-4.706-.749-.749-2.571-.243-4.707 1.137a23.807 23.807 0 0 1 1.879 1.691zm-7.072 7.072a23.809 23.809 0 0 1-1.69-1.878c-1.381 2.135-1.887 3.957-1.138 4.706.749.749 2.571.243 4.706-1.137a23.827 23.827 0 0 1-1.878-1.691zm-2.828-9.9c-.749.749-.243 2.571 1.137 4.706a23.834 23.834 0 0 1 1.691-1.878 23.832 23.832 0 0 1 1.878-1.69C8.207 5.392 6.385 4.886 5.636 5.635zm4.243 8.485A25.911 25.911 0 0 0 12 16.026a25.908 25.908 0 0 0 2.121-1.905A25.908 25.908 0 0 0 16.026 12a25.91 25.91 0 0 0-1.905-2.121A25.91 25.91 0 0 0 12 7.974a25.913 25.913 0 0 0-2.121 1.905A25.911 25.911 0 0 0 7.974 12a25.908 25.908 0 0 0 1.905 2.121zm8.485 4.243c.749-.749.243-2.571-1.137-4.707a23.807 23.807 0 0 1-1.691 1.879 23.807 23.807 0 0 1-1.878 1.69c2.135 1.381 3.957 1.887 4.706 1.138z' }) ); } }]); return AtomIcon; }(_react.Component); AtomIcon.defaultProps = { className: '' }; exports.default = AtomIcon;