UNPKG

react-material-icon-svg

Version:
49 lines (34 loc) 3.42 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 EyeOffIcon = function (_Component) { _inherits(EyeOffIcon, _Component); function EyeOffIcon(props) { _classCallCheck(this, EyeOffIcon); return _possibleConstructorReturn(this, (EyeOffIcon.__proto__ || Object.getPrototypeOf(EyeOffIcon)).call(this, props)); } _createClass(EyeOffIcon, [{ 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-eye-off-icon ' + this.props.className }), _react2.default.createElement('path', { d: 'M11.834 9.015l3.148 3.148c.003-.056.017-.108.017-.165a3 3 0 0 0-3-3c-.057 0-.109.014-.165.017zM7.528 9.8l1.547 1.546c-.047.21-.076.427-.076.65a3 3 0 0 0 3 3c.225 0 .442-.028.651-.074l1.547 1.546a4.954 4.954 0 0 1-2.198.529 5 5 0 0 1-5-5c0-.792.201-1.531.53-2.197zM2 4.27l2.28 2.28.454.455A11.887 11.887 0 0 0 1 11.998c1.728 4.389 5.998 7.5 11 7.5 1.55 0 3.03-.3 4.384-.842l.424.423 2.92 2.92 1.272-1.273L3.272 2.999M12 6.998a5 5 0 0 1 5 5c0 .646-.132 1.259-.355 1.826l2.922 2.922A11.862 11.862 0 0 0 23 11.998c-1.728-4.39-5.997-7.5-11-7.5-1.4 0-2.739.25-3.984.698l2.158 2.158A4.973 4.973 0 0 1 12 6.998z' }) ); } }]); return EyeOffIcon; }(_react.Component); EyeOffIcon.defaultProps = { className: '' }; exports.default = EyeOffIcon;