UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.55 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 ThemeLightDarkIcon = function (_Component) { _inherits(ThemeLightDarkIcon, _Component); function ThemeLightDarkIcon(props) { _classCallCheck(this, ThemeLightDarkIcon); return _possibleConstructorReturn(this, (ThemeLightDarkIcon.__proto__ || Object.getPrototypeOf(ThemeLightDarkIcon)).call(this, props)); } _createClass(ThemeLightDarkIcon, [{ 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-theme-light-dark-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M7.5 2a6.545 6.545 0 0 0-3 5.5A6.495 6.495 0 0 0 7.534 13C4.462 13 2 10.538 2 7.5A5.5 5.5 0 0 1 7.5 2zm11.571 1.515l1.414 1.414L4.93 20.485l-1.414-1.414L19.07 3.515zm-6.182 2.42L11.406 5 9.966 6l.429-1.7L9 3.24l1.748-.117.579-1.655.651 1.627 1.752.039-1.345 1.122.504 1.678zM9.586 9.536L8.433 8.81l-1.12.777.333-1.322-1.085-.825 1.36-.091.45-1.287.507 1.265 1.363.03-1.047.873.392 1.306zM19 13.5a5.5 5.5 0 0 1-8.763 4.428l7.69-7.691A5.475 5.475 0 0 1 19 13.5zm-4.4 6.582l2.773-1.148-.238 3.346-2.534-2.198zm4.33-2.697l1.149-2.772 2.197 2.534-3.346.238zm1.154-4.969l-1.148-2.772 3.346.238-2.198 2.534zM9.63 18.928l2.771 1.149-2.534 2.197-.237-3.346z' }) ); } }]); return ThemeLightDarkIcon; }(_react.Component); ThemeLightDarkIcon.defaultProps = { className: '' }; exports.default = ThemeLightDarkIcon;