UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.4 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 CounterIcon = function (_Component) { _inherits(CounterIcon, _Component); function CounterIcon(props) { _classCallCheck(this, CounterIcon); return _possibleConstructorReturn(this, (CounterIcon.__proto__ || Object.getPrototypeOf(CounterIcon)).call(this, props)); } _createClass(CounterIcon, [{ 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-counter-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm0 2v12h7V6H4zm16 12V6h-1.243c.239.543.193 1.075.188 1.127-.062.671-.53 1.375-.703 1.625l-2.328 2.546 3.313-.015.015 1.203-5.203-.016-.031-1s3.047-3.234 3.187-3.515c.14-.282.72-1.97-.672-1.938-1.25.028-1.109 1.281-1.109 1.281l-1.547.016s.013-.667.379-1.314H13v12h2.583l-.013-.858.97-.015s.905-.157.92-1.047c.018-1-.812-1-.952-1-.14 0-1.078.046-1.078.875h-1.516s.031-2.063 2.61-2.063c2.578 0 2.437 2.016 2.437 2.016s.047 1.25-1.11 1.719l.521.373H20zM8.922 16H7.417v-5.802l-1.797.557V9.532l3.14-1.125h.162V16z' }) ); } }]); return CounterIcon; }(_react.Component); CounterIcon.defaultProps = { className: '' }; exports.default = CounterIcon;