@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.27 kB
JavaScript
const _excluded = ["bold", "width", "height"];
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; }
import React from "react";
import PropTypes from "prop-types";
const IconPassword = props => {
const _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.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.createElement("path", {
d: "M17.875 7.125a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m4.5 2.132a7.904 7.904 0 0 1-7.865 7.618h-.01a7.8 7.8 0 0 1-2.217-.317l-.737.738a1.12 1.12 0 0 1-.796.329H9.625v1.125A1.125 1.125 0 0 1 8.5 19.875H7.375V21a1.125 1.125 0 0 1-1.125 1.125h-3a1.875 1.875 0 0 1-1.875-1.875v-2.69a1.86 1.86 0 0 1 .55-1.325l5.017-5.018a7.875 7.875 0 1 1 15.433-1.96m-3.897-4.235a5.58 5.58 0 0 0-4.166-1.647c-3 .094-5.437 2.615-5.437 5.615a5.6 5.6 0 0 0 .394 2.08 1.125 1.125 0 0 1-.24 1.238l-5.404 5.41v2.157h1.5V18.75a1.125 1.125 0 0 1 1.125-1.125h1.125V16.5A1.125 1.125 0 0 1 8.5 15.375h1.781l.905-.905a1.125 1.125 0 0 1 1.24-.239c.66.262 1.364.396 2.074.394h.008c3 0 5.519-2.444 5.614-5.438a5.58 5.58 0 0 0-1.644-4.165"
}));
}
return /*#__PURE__*/React.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.createElement("path", {
d: "M20.303 3.696a7.5 7.5 0 0 0-12.436 7.627L2.69 16.5a1.5 1.5 0 0 0-.44 1.06v2.69a1.5 1.5 0 0 0 1.5 1.5h3A.75.75 0 0 0 7.5 21v-1.5H9a.75.75 0 0 0 .75-.75v-1.5h1.5a.75.75 0 0 0 .53-.22l.897-.897c.75.244 1.534.368 2.323.367h.01a7.5 7.5 0 0 0 5.293-12.804m.697 5.5c-.102 3.197-2.79 5.8-5.99 5.804H15a6 6 0 0 1-2.217-.423.75.75 0 0 0-.829.158L10.94 15.75H9a.75.75 0 0 0-.75.75V18h-1.5a.75.75 0 0 0-.75.75v1.5H3.75v-2.69l5.515-5.514a.75.75 0 0 0 .158-.829A6 6 0 0 1 9 8.992c0-3.2 2.607-5.887 5.803-5.99A6 6 0 0 1 21 9.198m-3-2.071a1.125 1.125 0 1 1-2.25 0 1.125 1.125 0 0 1 2.25 0"
}));
};
IconPassword.propTypes = process.env.NODE_ENV !== "production" ? {
bold: PropTypes.bool,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
className: PropTypes.string,
fill: PropTypes.string,
'aria-hidden': PropTypes.bool,
'aria-label': PropTypes.string
} : {};
export { IconPassword as default };
IconPassword;