UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.31 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 ReadabilityIcon = function (_Component) { _inherits(ReadabilityIcon, _Component); function ReadabilityIcon(props) { _classCallCheck(this, ReadabilityIcon); return _possibleConstructorReturn(this, (ReadabilityIcon.__proto__ || Object.getPrototypeOf(ReadabilityIcon)).call(this, props)); } _createClass(ReadabilityIcon, [{ 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-readability-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M12 4c3.15 0 5.813 2.377 6.692 5.647a2.996 2.996 0 0 0-1.183 2.163l-.184 2.102c-1.775-.886-3.55-1.745-5.325-1.745-1.774 0-3.548.858-5.321 1.744l-.188-2.143a2.996 2.996 0 0 0-1.174-2.155C6.206 6.36 8.862 4 12 4zm5.055 13H6.949l-.221-2.53c1.757-.878 3.514-1.72 5.272-1.72 1.759 0 3.517.844 5.276 1.721L17.055 17zM5 19v-1l-1.282-3.51-.218.01a2.5 2.5 0 1 1 2.493-2.693L6.5 18v1H5zm14 0h-1.5v-1l.507-6.193A2.5 2.5 0 1 1 20.5 14.5l-.218-.01L19 18v1z' }) ); } }]); return ReadabilityIcon; }(_react.Component); ReadabilityIcon.defaultProps = { className: '' }; exports.default = ReadabilityIcon;