UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.6 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 DnaIcon = function (_Component) { _inherits(DnaIcon, _Component); function DnaIcon(props) { _classCallCheck(this, DnaIcon); return _possibleConstructorReturn(this, (DnaIcon.__proto__ || Object.getPrototypeOf(DnaIcon)).call(this, props)); } _createClass(DnaIcon, [{ 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-dna-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M4 2h2v2c0 1.442.683 2.606 1.885 3.777.859.837 2.003 1.633 3.207 2.426l-1.836 1.19c-.99-.677-1.945-1.384-2.766-2.184C5.067 7.823 4 6.101 4 4V2zm14 0h2v2c0 2.1-1.067 3.823-2.49 5.209-1.423 1.386-3.223 2.52-4.973 3.635-1.75 1.114-3.45 2.208-4.652 3.379C6.683 17.393 6 18.558 6 20v2H4v-2c0-2.1 1.067-3.823 2.49-5.209 1.423-1.386 3.223-2.52 4.973-3.635 1.75-1.114 3.45-2.208 4.652-3.379C17.318 6.607 18 5.442 18 4V2zm-3.256 10.607c.99.677 1.945 1.384 2.766 2.184C18.932 16.177 20 17.899 20 20v2h-2v-2c0-1.442-.683-2.606-1.885-3.777-.859-.837-2.003-1.633-3.207-2.426l1.836-1.19zM7 3h10v1l-.057.5H7.057L7 4V3zm.678 3h8.644a7.215 7.215 0 0 1-.904 1.06l-.508.44H9.074l-.492-.44A7.213 7.213 0 0 1 7.678 6zM9.09 16.5h5.836l.492.44c.383.372.665.718.904 1.06H7.678c.239-.342.521-.688.904-1.06l.508-.44zm-2.033 3h9.886L17 20v1H7v-1l.057-.5z' }) ); } }]); return DnaIcon; }(_react.Component); DnaIcon.defaultProps = { className: '' }; exports.default = DnaIcon;