react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.38 kB
JavaScript
;
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 DrupalIcon = function (_Component) {
_inherits(DrupalIcon, _Component);
function DrupalIcon(props) {
_classCallCheck(this, DrupalIcon);
return _possibleConstructorReturn(this, (DrupalIcon.__proto__ || Object.getPrototypeOf(DrupalIcon)).call(this, props));
}
_createClass(DrupalIcon, [{
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-drupal-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M20.468 14.65c0 .64-.214 1.705-.64 2.45-.426.746-.745.96-1.384.96-.746-.107-2.13-2.237-3.089-2.344-1.172 0-3.621 2.45-5.645 2.45-1.172 0-1.598-.213-1.917-.426-.64-.426-.852-1.065-.852-1.917 0-1.598 1.491-2.983 3.302-2.983 2.343 0 3.94 2.343 5.112 2.237.959 0 2.876-1.917 3.834-1.917.959-.213 1.279.852 1.279 1.49zm-3.835-9.372c-1.065-.639-2.023-.958-3.089-1.598-.639-.426-1.49-1.384-2.236-2.236-.32 1.384-.533 1.917-1.065 2.343-1.065.746-1.598 1.065-2.557 1.491C6.941 5.704 3 8.048 3 13.16S7.367 22 12.053 22C16.846 22 21 18.485 21 13.266c.213-5.219-3.728-7.562-4.367-7.988z' })
);
}
}]);
return DrupalIcon;
}(_react.Component);
DrupalIcon.defaultProps = {
className: ''
};
exports.default = DrupalIcon;