@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.19 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 IconBackpack = 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: "M16.125 4.927V3.75A2.625 2.625 0 0 0 13.5 1.125h-3A2.625 2.625 0 0 0 7.875 3.75v1.177A5.63 5.63 0 0 0 3 10.501V21a1.875 1.875 0 0 0 1.875 1.874h14.25A1.875 1.875 0 0 0 21 21V10.5a5.63 5.63 0 0 0-4.875-5.573M10.5 3.375h3a.375.375 0 0 1 .375.375v1.125h-3.75V3.75a.375.375 0 0 1 .375-.375m4.5 12H9v-.75a.375.375 0 0 1 .375-.374h5.25a.375.375 0 0 1 .375.375zm-6 2.25h6v3H9zm9.75 3h-1.5v-6a2.625 2.625 0 0 0-2.625-2.624h-5.25a2.625 2.625 0 0 0-2.625 2.625v6h-1.5V10.5a3.375 3.375 0 0 1 3.375-3.376h6.75a3.375 3.375 0 0 1 3.375 3.376zM15 9.75a1.125 1.125 0 0 1-1.125 1.126h-3.75a1.125 1.125 0 1 1 0-2.25h3.75A1.125 1.125 0 0 1 15 9.75"
}));
}
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.75 4.554V3.75A2.25 2.25 0 0 0 13.5 1.5h-3a2.25 2.25 0 0 0-2.25 2.25v.804a5.26 5.26 0 0 0-4.5 5.196V21a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5V9.75a5.26 5.26 0 0 0-4.5-5.196M10.5 3h3a.75.75 0 0 1 .75.75v.75h-4.5v-.75A.75.75 0 0 1 10.5 3m5.25 12.75h-7.5V15a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 .75.75zm-7.5 1.5h4.5V18a.75.75 0 1 0 1.5 0v-.75h1.5V21h-7.5zM18.75 21h-1.5v-6A2.25 2.25 0 0 0 15 12.75H9A2.25 2.25 0 0 0 6.75 15v6h-1.5V9.75A3.75 3.75 0 0 1 9 6h6a3.75 3.75 0 0 1 3.75 3.75zm-4.5-12a.75.75 0 0 1-.75.75h-3a.75.75 0 1 1 0-1.5h3a.75.75 0 0 1 .75.75"
}));
};
IconBackpack.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 { IconBackpack as default };
IconBackpack;