@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.38 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 IconData = 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: "M18.875 3.33c-1.723-.938-3.986-1.455-6.375-1.455s-4.652.517-6.375 1.455c-1.934 1.057-3 2.537-3 4.17v9c0 1.633 1.066 3.113 3 4.17 1.72.938 3.983 1.455 6.375 1.455s4.652-.517 6.375-1.455c1.937-1.057 3-2.537 3-4.17v-9c0-1.633-1.066-3.113-3-4.17m.75 8.67c0 1.594-2.926 3.375-7.125 3.375-4.2 0-7.125-1.781-7.125-3.375v-.793q.363.251.75.463c1.72.938 3.983 1.455 6.375 1.455s4.652-.517 6.375-1.455a8 8 0 0 0 .75-.463zM12.5 4.125c4.2 0 7.125 1.781 7.125 3.375s-2.926 3.375-7.125 3.375c-4.2 0-7.125-1.781-7.125-3.375S8.301 4.125 12.5 4.125m0 15.75c-4.2 0-7.125-1.781-7.125-3.375v-.793q.363.251.75.463c1.72.938 3.983 1.455 6.375 1.455s4.652-.517 6.375-1.455a8 8 0 0 0 .75-.463v.793c0 1.594-2.926 3.375-7.125 3.375"
}));
}
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: "M12.5 2.25c-5.047 0-9 2.306-9 5.25v9c0 2.944 3.953 5.25 9 5.25s9-2.306 9-5.25v-9c0-2.944-3.953-5.25-9-5.25M20 12c0 .902-.739 1.822-2.026 2.524-1.45.79-3.394 1.226-5.474 1.226s-4.025-.436-5.474-1.226C5.739 13.822 5 12.902 5 12v-1.56c1.6 1.406 4.334 2.31 7.5 2.31s5.9-.908 7.5-2.31zM7.026 4.976c1.45-.79 3.394-1.226 5.474-1.226s4.025.436 5.474 1.226C19.261 5.678 20 6.598 20 7.5s-.739 1.822-2.026 2.524c-1.45.79-3.394 1.226-5.474 1.226s-4.025-.436-5.474-1.226C5.739 9.322 5 8.402 5 7.5s.739-1.822 2.026-2.524m10.948 14.048c-1.45.79-3.394 1.226-5.474 1.226s-4.025-.436-5.474-1.226C5.739 18.322 5 17.402 5 16.5v-1.56c1.6 1.406 4.334 2.31 7.5 2.31s5.9-.907 7.5-2.31v1.56c0 .902-.739 1.822-2.026 2.524"
}));
};
IconData.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 { IconData as default };
IconData;