react-material-icon-svg
Version:
material icon react SVG version
49 lines (34 loc) • 3.49 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 DiceD20Icon = function (_Component) {
_inherits(DiceD20Icon, _Component);
function DiceD20Icon(props) {
_classCallCheck(this, DiceD20Icon);
return _possibleConstructorReturn(this, (DiceD20Icon.__proto__ || Object.getPrototypeOf(DiceD20Icon)).call(this, props));
}
_createClass(DiceD20Icon, [{
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-dice-d20-icon ' + this.props.className }),
_react2.default.createElement('path', { d: 'M21 16.5a1 1 0 0 1-.527.881l-7.907 4.443a.996.996 0 0 1-1.132 0l-7.907-4.443A1 1 0 0 1 3 16.5v-9a1 1 0 0 1 .527-.881l7.907-4.443a.995.995 0 0 1 1.132 0l7.907 4.443A1 1 0 0 1 21 7.5v9zM12 4.15L5 8.086v7.83l7 3.934 7-3.934v-7.83l-7-3.934zm2.932 4.118a2.57 2.57 0 0 1 2.57 2.57v2.641a2.57 2.57 0 0 1-5.14 0v-2.64a2.57 2.57 0 0 1 2.57-2.57zm-.008 1.438c-.586 0-1.062.475-1.062 1.062v2.766a1.063 1.063 0 0 0 2.125 0v-2.766c0-.587-.476-1.062-1.063-1.062zm-3.473 5.052v1.203L6.31 15.93v-1.016s3.432-3.333 3.437-4.344c.007-1.236-1.015-1.11-1.015-1.11s-.985.048-1.094 1.25l-1.5.048s.047-2.5 2.688-2.5c2.374 0 2.406 1.781 2.406 2.219 0 1.703-3.078 4.296-3.078 4.296l3.296-.015z' })
);
}
}]);
return DiceD20Icon;
}(_react.Component);
DiceD20Icon.defaultProps = {
className: ''
};
exports.default = DiceD20Icon;