UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.39 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 CartPlusIcon = function (_Component) { _inherits(CartPlusIcon, _Component); function CartPlusIcon(props) { _classCallCheck(this, CartPlusIcon); return _possibleConstructorReturn(this, (CartPlusIcon.__proto__ || Object.getPrototypeOf(CartPlusIcon)).call(this, props)); } _createClass(CartPlusIcon, [{ 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-cart-plus-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M11.001 8.999h1.997V6H16V4h-3.004V1h-1.996v2.998H7.998V6H11M7.003 17.997A2 2 0 0 0 5.01 20a2 2 0 0 0 1.993 2.003A2.007 2.007 0 0 0 8.998 20a2.007 2.007 0 0 0-1.997-2.003zm10 0A2 2 0 0 0 15.01 20a2 2 0 0 0 1.993 2.003A2.007 2.007 0 0 0 18.998 20a2.007 2.007 0 0 0-1.996-2.003zm-9.835-3.246l.034-.122.898-1.631h7.451c.748 0 1.406-.41 1.749-1.03l3.863-7.007L19.419 4h-.01L18.31 6l-2.759 5H8.53l-.131-.268L6.163 6 5.21 4l-.942-1.997H1V4h1.997L6.6 11.59 5.25 14.038A1.936 1.936 0 0 0 5 15c0 1.099.899 2.003 2.003 2.003h11.996V15H7.423a.258.258 0 0 1-.255-.249z' }) ); } }]); return CartPlusIcon; }(_react.Component); CartPlusIcon.defaultProps = { className: '' }; exports.default = CartPlusIcon;