UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.67 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 ClippyIcon = function (_Component) { _inherits(ClippyIcon, _Component); function ClippyIcon(props) { _classCallCheck(this, ClippyIcon); return _possibleConstructorReturn(this, (ClippyIcon.__proto__ || Object.getPrototypeOf(ClippyIcon)).call(this, props)); } _createClass(ClippyIcon, [{ 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-clippy-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M15 15.5a2.5 2.5 0 0 1-5 0v-1.75a.75.75 0 0 1 1.5 0v1.75a1 1 0 1 0 2 0v-3.614C12.626 11.612 12 10.871 12 10c0-1.105 1.007-2 2.25-2s2.25.895 2.25 2c0 .87-.626 1.612-1.5 1.886V15.5zM8.25 8c1.243 0 2.25.895 2.25 2 0 .87-.626 1.612-1.5 1.886v5.364a3.25 3.25 0 0 0 6.5 0v-3.5a.75.75 0 0 1 1.5 0v3.5a4.75 4.75 0 0 1-9.5 0v-5.364C6.626 11.612 6 10.871 6 10c0-1.105 1.007-2 2.25-2zm1.806-1.872l-.425 1.46A2.95 2.95 0 0 0 8.25 7.25c-.911 0-1.719.403-2.22 1.023l-1.199-.9A4.292 4.292 0 0 1 7.5 5.813V5.75a3.75 3.75 0 0 1 7.5 0v.062a4.292 4.292 0 0 1 2.669 1.561l-1.2.9c-.5-.62-1.308-1.023-2.219-1.023a2.95 2.95 0 0 0-1.38.337l-.426-1.459a4.41 4.41 0 0 1 1.056-.316V5.75a2.25 2.25 0 0 0-4.5 0v.062c.371.062.725.17 1.056.316zM14.25 9.25c-.552 0-1 .336-1 .75s.448.75 1 .75 1-.336 1-.75-.448-.75-1-.75zm-6 0c-.552 0-1 .336-1 .75s.448.75 1 .75 1-.336 1-.75-.448-.75-1-.75z' }) ); } }]); return ClippyIcon; }(_react.Component); ClippyIcon.defaultProps = { className: '' }; exports.default = ClippyIcon;