react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.44 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 XingBoxIcon = function (_Component) {
_inherits(XingBoxIcon, _Component);
function XingBoxIcon(props) {
_classCallCheck(this, XingBoxIcon);
return _possibleConstructorReturn(this, (XingBoxIcon.__proto__ || Object.getPrototypeOf(XingBoxIcon)).call(this, props));
}
_createClass(XingBoxIcon, [{
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-xing-box-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M4.8 2.998c-.996 0-1.802.806-1.802 1.802v14.399c0 .996.806 1.802 1.802 1.802h14.399c.996 0 1.802-.806 1.802-1.802V4.8c0-.996-.806-1.802-1.802-1.802M16.069 5h2.036c.122 0 .22.044.269.128.053.087.053.2-.005.312L13.9 13.359l2.846 5.201c.06.111.06.224.006.313-.054.082-.147.126-.268.126h-2.018c-.312 0-.463-.205-.56-.385l-2.872-5.264 4.492-7.964c.108-.196.24-.386.542-.386zM7.085 7.764h2.016c.313 0 .464.2.566.381l1.388 2.421c-.084.141-2.178 3.853-2.178 3.853-.107.186-.25.391-.552.391H6.304a.297.297 0 0 1-.264-.138c-.054-.087-.054-.2 0-.312l2.144-3.794L6.82 8.202c-.053-.11-.068-.223-.015-.312.054-.082.157-.126.279-.126z' })
);
}
}]);
return XingBoxIcon;
}(_react.Component);
XingBoxIcon.defaultProps = {
className: ''
};
exports.default = XingBoxIcon;