UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.88 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 LanguagePhpIcon = function (_Component) { _inherits(LanguagePhpIcon, _Component); function LanguagePhpIcon(props) { _classCallCheck(this, LanguagePhpIcon); return _possibleConstructorReturn(this, (LanguagePhpIcon.__proto__ || Object.getPrototypeOf(LanguagePhpIcon)).call(this, props)); } _createClass(LanguagePhpIcon, [{ 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-language-php-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M12 18.081C5.373 18.081 0 15.36 0 12c0-3.359 5.373-6.081 12-6.081S24 8.64 24 12c0 3.359-5.373 6.081-12 6.081zm-5.193-7.947c.545 0 .908.1 1.09.302.18.201.224.546.13 1.036-.1.51-.29.873-.574 1.09-.283.219-.714.328-1.292.328H5.29l.536-2.756h.982zM3.313 15.68h1.434l.34-1.75h1.229c.542 0 .987-.058 1.337-.171.35-.114.669-.305.955-.573.24-.221.435-.465.584-.731.148-.266.254-.56.316-.882.152-.78.038-1.388-.343-1.823-.38-.436-.985-.654-1.815-.654H4.592L3.313 15.68zm7.249-8.334l-1.28 6.583h1.423l.733-3.771h1.137c.364 0 .602.06.714.18.112.121.135.347.07.679l-.565 2.912h1.445l.596-3.063c.12-.623.03-1.074-.273-1.352-.303-.278-.853-.418-1.65-.418h-1.268l.34-1.75h-1.422zM18 10.135c.545 0 .908.1 1.09.301.181.201.224.546.13 1.036-.1.51-.29.873-.574 1.09-.283.219-.713.328-1.291.328h-.873l.536-2.756H18zm-3.494 5.544h1.434l.34-1.75h1.229c.542 0 .988-.058 1.338-.171.35-.114.668-.305.954-.573.24-.221.435-.465.584-.731a2.95 2.95 0 0 0 .317-.882c.151-.78.037-1.388-.344-1.823-.38-.436-.985-.654-1.815-.654h-2.757l-1.28 6.584z' }) ); } }]); return LanguagePhpIcon; }(_react.Component); LanguagePhpIcon.defaultProps = { className: '' }; exports.default = LanguagePhpIcon;