@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
64 lines (63 loc) • 4.27 kB
JavaScript
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _excluded = ["bold", "width", "height"];
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
var IconEye = exports["default"] = function IconEye(props) {
var _props$bold = props.bold,
bold = _props$bold === void 0 ? true : _props$bold,
_props$width = props.width,
width = _props$width === void 0 ? "24px" : _props$width,
_props$height = props.height,
height = _props$height === void 0 ? "24px" : _props$height,
restProps = _objectWithoutPropertiesLoose(props, _excluded);
if (bold) {
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
"aria-hidden": "true",
fill: "currentColor",
width: width,
height: height
}, restProps), /*#__PURE__*/_react["default"].createElement("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M23.031 11.543c-.035-.075-.856-1.899-2.67-3.713-2.427-2.423-5.486-3.705-8.861-3.705S5.066 5.407 2.64 7.83C.827 9.644.006 11.467-.03 11.543a1.13 1.13 0 0 0 0 .915c.034.076.856 1.899 2.67 3.713 2.427 2.423 5.486 3.704 8.86 3.704 3.376 0 6.435-1.28 8.858-3.704 1.815-1.814 2.637-3.637 2.671-3.713a1.13 1.13 0 0 0 .003-.915m-4.318 3.094c-2.013 1.982-4.44 2.988-7.213 2.988-2.774 0-5.2-1.006-7.21-2.989A12.2 12.2 0 0 1 2.267 12 12.2 12.2 0 0 1 4.29 9.365c2.01-1.984 4.436-2.99 7.21-2.99s5.2 1.006 7.21 2.99A12.2 12.2 0 0 1 20.732 12a12.2 12.2 0 0 1-2.022 2.636zM11.5 7.875a4.125 4.125 0 1 0 0 8.25 4.125 4.125 0 0 0 0-8.25m0 6a1.875 1.875 0 1 1 0-3.75 1.875 1.875 0 0 1 0 3.75"
})), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
id: "a"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M0 0h24v24H0z"
}))));
}
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
"aria-hidden": "true",
fill: "currentColor",
width: width,
height: height
}, restProps), /*#__PURE__*/_react["default"].createElement("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M22.685 11.696c-.032-.074-.827-1.835-2.592-3.6C17.741 5.742 14.77 4.5 11.5 4.5S5.26 5.743 2.907 8.095C1.142 9.861.344 11.625.315 11.696a.75.75 0 0 0 0 .61c.032.074.827 1.834 2.592 3.6C5.259 18.256 8.23 19.5 11.5 19.5s6.24-1.243 8.593-3.594c1.765-1.766 2.56-3.526 2.592-3.6a.75.75 0 0 0 0-.61M11.5 18c-2.886 0-5.407-1.05-7.493-3.117A12.5 12.5 0 0 1 1.844 12a12.5 12.5 0 0 1 2.163-2.883C6.093 7.05 8.614 6 11.5 6s5.407 1.05 7.493 3.117A12.5 12.5 0 0 1 21.161 12c-.676 1.262-3.62 6-9.661 6m0-10.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9m0 7.5a3 3 0 1 1 0-5.999 3 3 0 0 1 0 5.999"
})), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
id: "a"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M0 0h24v24H0z"
}))));
};
IconEye.propTypes = process.env.NODE_ENV !== "production" ? {
bold: _propTypes["default"].bool,
width: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
height: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
className: _propTypes["default"].string,
fill: _propTypes["default"].string,
'aria-hidden': _propTypes["default"].bool,
'aria-label': _propTypes["default"].string
} : {};
IconEye;
module.exports = exports.default;