react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.87 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 SassIcon = function (_Component) {
_inherits(SassIcon, _Component);
function SassIcon(props) {
_classCallCheck(this, SassIcon);
return _possibleConstructorReturn(this, (SassIcon.__proto__ || Object.getPrototypeOf(SassIcon)).call(this, props));
}
_createClass(SassIcon, [{
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-sass-icon ' + this.props.className }),
_react2.default.createElement('path', { fillRule: 'evenodd', d: 'M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-1.987 13.331a2.56 2.56 0 0 1-.076 1.644 2.79 2.79 0 0 1-.527.82c-.58.634-1.393.873-1.74.671-.377-.218-.188-1.111.485-1.823.725-.766 1.768-1.259 1.768-1.259l-.002-.003.092-.05zm8.26-9.05c-.453-1.777-3.398-2.36-6.185-1.37-1.659.589-3.455 1.514-4.746 2.721-1.535 1.436-1.78 2.686-1.679 3.208.356 1.843 2.881 3.047 3.919 3.94v.006c-.306.15-2.546 1.284-3.07 2.443-.553 1.223.088 2.1.512 2.218 1.315.366 2.665-.292 3.39-1.374.7-1.044.642-2.392.338-3.063.42-.11.909-.16 1.53-.087 1.754.205 2.099 1.3 2.033 1.758-.066.459-.434.71-.557.787-.123.076-.16.102-.15.159.015.082.072.079.177.061.144-.024.92-.373.954-1.219.042-1.074-.987-2.276-2.81-2.244-.751.013-1.223.084-1.564.21l-.077-.085c-1.127-1.202-3.21-2.053-3.122-3.669.032-.588.236-2.135 4.003-4.012 3.085-1.538 5.556-1.114 5.982-.177.61 1.34-1.32 3.83-4.524 4.189-1.221.137-1.864-.336-2.024-.513-.168-.185-.193-.193-.256-.159-.102.057-.038.22 0 .319.096.248.488.69 1.158.91.588.193 2.022.3 3.755-.371 1.942-.752 3.458-2.84 3.013-4.587z' })
);
}
}]);
return SassIcon;
}(_react.Component);
SassIcon.defaultProps = {
className: ''
};
exports.default = SassIcon;