UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

64 lines (63 loc) 3.68 kB
"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 IconPicnicTable = exports["default"] = function IconPicnicTable(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: "M23.375 11.625h-3.804l-2.25-4.5H18.5a1.125 1.125 0 0 0 0-2.25h-12a1.125 1.125 0 0 0 0 2.25h1.18l-2.25 4.5H1.624a1.125 1.125 0 1 0 0 2.25h2.68l-1.81 3.622a1.124 1.124 0 1 0 2.01 1.006l2.316-4.628h11.358l2.315 4.628a1.123 1.123 0 0 0 1.521.527 1.125 1.125 0 0 0 .49-1.533l-1.81-3.622h2.68a1.125 1.125 0 1 0 0-2.25m-15.43 0 2.25-4.5h4.61l2.25 4.5z" })), /*#__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: "M23.25 12h-4.412l-2.625-5.25H18a.75.75 0 1 0 0-1.5H6a.75.75 0 0 0 0 1.5h1.787L5.162 12H.75a.75.75 0 1 0 0 1.5h3.662l-2.083 4.164a.75.75 0 0 0 1.343.672L6.088 13.5h11.824l2.417 4.836a.75.75 0 1 0 1.341-.672L19.588 13.5h3.662a.75.75 0 1 0 0-1.5M6.838 12l2.625-5.25h5.074L17.162 12z" })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", { id: "a" }, /*#__PURE__*/_react["default"].createElement("path", { d: "M0 0h24v24H0z" })))); }; IconPicnicTable.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 } : {}; IconPicnicTable; module.exports = exports.default;