@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
53 lines • 3.64 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 IconBug = 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("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/React.createElement("path", {
d: "M13.125 8.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m-3.75-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m11.25 6.75c0 .652-.073 1.3-.22 1.935l1.796.784a1.126 1.126 0 0 1-.902 2.063l-1.687-.736a8.625 8.625 0 0 1-15.231 0l-1.688.736a1.126 1.126 0 0 1-.901-2.063l1.795-.784a8.6 8.6 0 0 1-.212-1.935v-.375H1.5a1.125 1.125 0 1 1 0-2.25h1.875V10.5c0-.65.073-1.3.22-1.935l-1.796-.783a1.126 1.126 0 0 1 .902-2.063l1.687.736a8.625 8.625 0 0 1 15.231 0l1.688-.736a1.125 1.125 0 1 1 .901 2.063l-1.795.783a8.6 8.6 0 0 1 .212 1.935v.375H22.5a1.125 1.125 0 1 1 0 2.25h-1.875zm-15-2.625h12.75V10.5a6.375 6.375 0 1 0-12.75 0zm5.25 8.9v-6.65h-5.25v.375a6.385 6.385 0 0 0 5.25 6.274m7.5-6.275v-.375h-5.25v6.65a6.385 6.385 0 0 0 5.25-6.275"
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
id: "a"
}, /*#__PURE__*/React.createElement("path", {
d: "M0 0h24v24H0z"
}))));
}
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: "M13.5 8.625a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0M9.375 7.5a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25m10.875 6a8.2 8.2 0 0 1-.281 2.156l2.085.911A.75.75 0 0 1 21.75 18a.7.7 0 0 1-.3-.063l-2.008-.875a8.25 8.25 0 0 1-14.884 0l-2.008.875a.75.75 0 0 1-.6-1.374l2.081-.907A8.2 8.2 0 0 1 3.75 13.5v-.75H1.5a.75.75 0 1 1 0-1.5h2.25v-.75a8.2 8.2 0 0 1 .281-2.156L1.95 7.437a.75.75 0 1 1 .6-1.374l2.008.875a8.25 8.25 0 0 1 14.884 0l2.008-.878a.75.75 0 0 1 .6 1.374l-2.081.914c.188.704.283 1.429.281 2.157v.75h2.25a.75.75 0 1 1 0 1.5h-2.25zm-15-2.25h13.5v-.75a6.75 6.75 0 0 0-13.5 0zm6 8.957V12.75h-6v.75a6.76 6.76 0 0 0 6 6.707m7.5-6.707v-.75h-6v7.457a6.76 6.76 0 0 0 6-6.707"
}));
};
IconBug.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 { IconBug as default };
IconBug;