@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
64 lines (63 loc) • 4.18 kB
JavaScript
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _excluded = ["bold", "width", "height"];
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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; }
var IconMoped = exports["default"] = function IconMoped(props) {
var _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["default"].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["default"].createElement("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M19.875 12.375q-.172 0-.34.015l-3.107-8.285a1.125 1.125 0 0 0-1.053-.73h-3a1.125 1.125 0 0 0 0 2.25h2.22l2.834 7.556A4.15 4.15 0 0 0 16.03 15h-2.738l-2.115-5.645a1.125 1.125 0 0 0-1.053-.73h-7.5a1.125 1.125 0 0 0 0 2.25H3v.274a5.64 5.64 0 0 0-3 4.976 1.125 1.125 0 0 0 1.125 1.125h.444a4.125 4.125 0 0 0 8.111 0h6.139a4.125 4.125 0 1 0 4.056-4.875M4.5 12.942a1.125 1.125 0 0 0 .75-1.061v-1.006h4.095L10.892 15h-8.45A3.37 3.37 0 0 1 4.5 12.942m1.125 5.433a1.88 1.88 0 0 1-1.718-1.125h3.435a1.88 1.88 0 0 1-1.717 1.125m14.25 0a1.875 1.875 0 1 1 0-3.751 1.875 1.875 0 0 1 0 3.751"
})), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
id: "a"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M0 0h24v24H0z"
}))));
}
return /*#__PURE__*/_react["default"].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["default"].createElement("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M20.25 12.748q-.295 0-.587.047l-3.21-8.56a.75.75 0 0 0-.702-.487h-3a.75.75 0 0 0 0 1.5h2.48l3.028 8.075a3.76 3.76 0 0 0-1.687 2.425h-3.77l-2.344-6.263a.75.75 0 0 0-.707-.487h-7.5a.75.75 0 1 0 0 1.5H3v1.255a5.26 5.26 0 0 0-3 4.745.75.75 0 0 0 .75.75h.825a3.75 3.75 0 0 0 7.35 0h7.65a3.75 3.75 0 1 0 3.675-4.5m-16.249.213a.75.75 0 0 0 .5-.707v-1.756h4.73l1.97 5.25H1.576A3.76 3.76 0 0 1 4 12.961m1.25 5.787a2.25 2.25 0 0 1-2.12-1.5h4.24a2.25 2.25 0 0 1-2.12 1.5m15 0a2.25 2.25 0 0 1-1.447-3.971l.745 1.985a.752.752 0 0 0 1.406-.527l-.746-1.987h.042a2.25 2.25 0 1 1 0 4.5"
})), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
id: "a"
}, /*#__PURE__*/_react["default"].createElement("path", {
d: "M0 0h24v24H0z"
}))));
};
IconMoped.propTypes = process.env.NODE_ENV !== "production" ? {
bold: _propTypes["default"].bool,
width: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
height: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
className: _propTypes["default"].string,
fill: _propTypes["default"].string,
'aria-hidden': _propTypes["default"].bool,
'aria-label': _propTypes["default"].string
} : {};
IconMoped;
module.exports = exports.default;