react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 4.04 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 CodepenIcon = function (_Component) {
_inherits(CodepenIcon, _Component);
function CodepenIcon(props) {
_classCallCheck(this, CodepenIcon);
return _possibleConstructorReturn(this, (CodepenIcon.__proto__ || Object.getPrototypeOf(CodepenIcon)).call(this, props));
}
_createClass(CodepenIcon, [{
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-codepen-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M19.453 13.294L17.518 12l1.935-1.294m-6.68 8.075v-3.608l3.354-2.242 2.707 1.81M12 13.83L9.264 12 12 10.17 14.736 12m-3.51 6.78l-6.06-4.039 2.707-1.81 3.353 2.242m-6.679-4.467L6.482 12l-1.935 1.294m6.68-8.075v3.607L7.872 11.07 5.166 9.26m7.607-4.04l6.06 4.04-2.706 1.81-3.353-2.243m8.22.33l-.007-.033a.743.743 0 0 0-.014-.065l-.012-.037a.791.791 0 0 0-.063-.145l-.022-.036a.667.667 0 0 0-.098-.123l-.03-.03a.865.865 0 0 0-.045-.037l-.035-.026-.012-.01-8.227-5.484a.773.773 0 0 0-.858 0L3.344 8.614l-.012.01-.035.026a.706.706 0 0 0-.044.037l-.031.03a.672.672 0 0 0-.12.159.723.723 0 0 0-.043.089c-.008.018-.014.037-.02.056l-.012.037c-.006.022-.01.043-.014.065l-.006.034a.744.744 0 0 0-.007.1v5.485c0 .034.003.068.007.101l.006.033c.004.022.008.044.014.065.003.013.008.025.012.038.006.019.012.038.02.057l.017.037a.914.914 0 0 0 .048.087.705.705 0 0 0 .098.122c.01.01.02.021.031.03a.667.667 0 0 0 .079.064l.012.01 8.227 5.484a.773.773 0 0 0 .858 0l8.226-5.485c.005-.002.009-.006.013-.01a.824.824 0 0 0 .149-.134l.026-.034a.667.667 0 0 0 .033-.047l.022-.036a.696.696 0 0 0 .026-.051l.017-.037.02-.057c.004-.013.009-.025.012-.038a.747.747 0 0 0 .014-.065l.006-.033a.814.814 0 0 0 .007-.101V9.258a.801.801 0 0 0-.007-.101z' })
);
}
}]);
return CodepenIcon;
}(_react.Component);
CodepenIcon.defaultProps = {
className: ''
};
exports.default = CodepenIcon;