UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.62 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 BarleyIcon = function (_Component) { _inherits(BarleyIcon, _Component); function BarleyIcon(props) { _classCallCheck(this, BarleyIcon); return _possibleConstructorReturn(this, (BarleyIcon.__proto__ || Object.getPrototypeOf(BarleyIcon)).call(this, props)); } _createClass(BarleyIcon, [{ 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-barley-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M7.333 18.333C6.5 17.167 6.5 15.833 6.5 14.5c1.667 1 3.333 2 4.167 3.167l.333.56v-2.278c-1.492-.901-2.917-1.816-3.667-2.866-.833-1.166-.833-2.5-.833-3.833 1.667 1 3.333 2 4.167 3.167l.333.56v-2.278c-1.492-.901-2.917-1.816-3.667-2.866C6.5 6.667 6.5 5.333 6.5 4c1.667 1 3.333 2 4.167 3.167.105.147.197.297.277.449a6.523 6.523 0 0 1-.294-1.793c-.014-1.517.646-3.066 1.307-4.615.69 1.485 1.379 2.97 1.393 4.486.006.628-.104 1.262-.282 1.899.078-.145.166-.287.265-.426C14.167 6 15.833 5 17.5 4c0 1.333 0 2.667-.833 3.833-.75 1.05-2.175 1.965-3.667 2.866v2.277l.333-.56c.834-1.166 2.5-2.166 4.167-3.166 0 1.333 0 2.667-.833 3.833-.75 1.05-2.175 1.965-3.667 2.866v2.277l.333-.56c.834-1.166 2.5-2.166 4.167-3.166 0 1.333 0 2.667-.833 3.833-.75 1.05-2.175 1.965-3.667 2.866V23h-2v-1.8c-1.492-.902-2.917-1.817-3.667-2.867z' }) ); } }]); return BarleyIcon; }(_react.Component); BarleyIcon.defaultProps = { className: '' }; exports.default = BarleyIcon;