@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.94 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 IconImages = 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: "M15 8.25a1.5 1.5 0 1 1 2.999 0 1.5 1.5 0 0 1-2.999 0m7.125-3V15a1.875 1.875 0 0 1-1.875 1.875h-1.125v1.875a1.875 1.875 0 0 1-1.875 1.875H3.75a1.875 1.875 0 0 1-1.875-1.875V8.25A1.875 1.875 0 0 1 3.75 6.375h1.875V5.25A1.875 1.875 0 0 1 7.5 3.375h12.75a1.875 1.875 0 0 1 1.875 1.875m-5.25 11.625H7.5a1.875 1.875 0 0 1-1.875-1.874V8.625h-1.5v9.75h12.75zm-2.03-2.25-3.22-3.219-3.22 3.22zm5.03-9h-12v6.35l2.424-2.425a1.875 1.875 0 0 1 2.652 0l5.075 5.076h1.849z"
}));
}
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.25 3.75H6.75a1.5 1.5 0 0 0-1.5 1.5v1.5h-1.5a1.5 1.5 0 0 0-1.5 1.5v10.5a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5v-1.5h1.5a1.5 1.5 0 0 0 1.5-1.5V5.25a1.5 1.5 0 0 0-1.5-1.5m-13.5 1.5h13.5v5.883l-.944-.943a1.5 1.5 0 0 0-2.122 0l-1.875 1.875-4.125-4.125a1.5 1.5 0 0 0-2.12 0L6.75 10.254zm10.5 13.5H3.75V8.25h1.5v7.5a1.5 1.5 0 0 0 1.5 1.5h10.5zm3-3H6.75v-3.374L10.125 9l4.656 4.656a.75.75 0 0 0 1.06 0l2.406-2.405 2.003 2.004zM15 7.876a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0"
}));
};
IconImages.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 { IconImages as default };
IconImages;