UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 4.08 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 KodiIcon = function (_Component) { _inherits(KodiIcon, _Component); function KodiIcon(props) { _classCallCheck(this, KodiIcon); return _possibleConstructorReturn(this, (KodiIcon.__proto__ || Object.getPrototypeOf(KodiIcon)).call(this, props)); } _createClass(KodiIcon, [{ 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-kodi-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M12.031 1c-.206 0-.426.113-.625.313-.845.848-1.686 1.682-2.531 2.53-.214.216-.272.334-.5.532a1.102 1.102 0 0 0-.406.906C7.988 6.568 8 7.838 8 9.125c0 1.338-.002 2.694 0 4.031 0 .1.006.186.031.281.081.31.278.38.5.157 1.2-1.206 2.268-2.294 3.469-3.5C13.36 8.728 14.735 7.366 16.094 6c.394-.397.395-.853 0-1.25-1.15-1.154-2.32-2.283-3.469-3.438-.198-.199-.387-.312-.594-.312zm6.625 6.656c-.204 0-.405.093-.593.282-1.156 1.16-2.314 2.307-3.47 3.468-.392.394-.39.826 0 1.219 1.15 1.155 2.289 2.314 3.438 3.469.403.405.818.403 1.219 0 1.114-1.119 2.228-2.228 3.344-3.344.166-.166.335-.331.406-.563v-.312c-.07-.231-.24-.396-.406-.563-1.123-1.123-2.224-2.25-3.344-3.374-.188-.19-.39-.282-.594-.282zm-13.875.438c-.13-.05-.205.048-.281.125-1.15 1.166-2.163 2.208-3.313 3.375a.628.628 0 0 0 0 .906c.625.628 1.251 1.247 1.875 1.875.54.543.96.958 1.5 1.5.155.155.297.142.375-.063.04-.104.063-.231.063-.343.004-1.181 0-2.1 0-3.281V8.624c0-.078-.02-.173-.031-.25-.018-.124-.064-.234-.188-.281zm7.313 6.156a.897.897 0 0 0-.625.281c-1.153 1.158-2.285 2.343-3.438 3.5-.397.4-.398.819 0 1.219 1.114 1.12 2.233 2.223 3.344 3.344.165.167.333.333.563.406h.28c.224-.063.403-.213.563-.375 1.12-1.13 2.252-2.246 3.375-3.375.394-.396.365-.852-.031-1.25-1.152-1.158-2.285-2.311-3.438-3.469-.19-.191-.388-.282-.593-.281z' }) ); } }]); return KodiIcon; }(_react.Component); KodiIcon.defaultProps = { className: '' }; exports.default = KodiIcon;