UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.67 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 WebIcon = function (_Component) { _inherits(WebIcon, _Component); function WebIcon(props) { _classCallCheck(this, WebIcon); return _possibleConstructorReturn(this, (WebIcon.__proto__ || Object.getPrototypeOf(WebIcon)).call(this, props)); } _createClass(WebIcon, [{ 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-web-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M16.36 13.998c.083-.657.14-1.32.14-2 0-.679-.057-1.343-.14-2h3.377c.166.64.263 1.308.263 2s-.097 1.36-.263 2m-5.144 5.561a15.85 15.85 0 0 0 1.379-3.561h2.949a8.021 8.021 0 0 1-4.328 3.561zm-.254-5.561h-4.68a13.883 13.883 0 0 1-.16-2c0-.681.066-1.345.16-2h4.68c.095.655.16 1.319.16 2s-.065 1.345-.16 2zm-2.341 5.964a13.958 13.958 0 0 1-1.91-3.964h3.822a13.94 13.94 0 0 1-1.912 3.964zM8.026 7.998h-2.95a8 8 0 0 1 4.329-3.563 15.828 15.828 0 0 0-1.38 3.563zm-2.95 8h2.95c.323 1.251.779 2.45 1.379 3.563a8 8 0 0 1-4.328-3.563zm-.815-2a7.992 7.992 0 0 1-.261-2c0-.692.096-1.36.26-2h3.378a16.09 16.09 0 0 0-.138 2c0 .68.056 1.343.138 2m4.36-9.964a13.94 13.94 0 0 1 1.912 3.964h-3.821a13.96 13.96 0 0 1 1.909-3.964zm6.923 3.964h-2.95a15.85 15.85 0 0 0-1.378-3.56 8.021 8.021 0 0 1 4.328 3.56zm-6.927-6C6.468 1.998 2 6.475 2 11.998s4.468 10 9.994 10c5.527 0 10.006-4.477 10.006-10s-4.48-10-10.006-10z' }) ); } }]); return WebIcon; }(_react.Component); WebIcon.defaultProps = { className: '' }; exports.default = WebIcon;