@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.96 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 IconClipboardText = 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.625 15.375A1.125 1.125 0 0 1 15.5 16.5h-6a1.125 1.125 0 1 1 0-2.25h6a1.125 1.125 0 0 1 1.125 1.125M15.5 10.5h-6a1.125 1.125 0 0 0 0 2.25h6a1.125 1.125 0 1 0 0-2.25m5.625-6v15.75a1.875 1.875 0 0 1-1.875 1.875H5.75a1.875 1.875 0 0 1-1.875-1.875V4.5A1.875 1.875 0 0 1 5.75 2.625h3.237a4.864 4.864 0 0 1 7.026 0h3.237A1.875 1.875 0 0 1 21.125 4.5M9.902 5.625h5.196a2.625 2.625 0 0 0-5.196 0m8.973-.75h-1.632q.131.555.132 1.125v.75a1.125 1.125 0 0 1-1.125 1.125h-7.5A1.125 1.125 0 0 1 7.625 6.75V6q0-.57.132-1.125H6.125v15h12.75z"
}));
}
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 14.25A.75.75 0 0 1 15 15H9a.75.75 0 1 1 0-1.5h6a.75.75 0 0 1 .75.75M15 10.5H9A.75.75 0 1 0 9 12h6a.75.75 0 1 0 0-1.5m5.25-6v15.75a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5V4.5A1.5 1.5 0 0 1 5.25 3h3.4a4.492 4.492 0 0 1 6.7 0h3.4a1.5 1.5 0 0 1 1.5 1.5M9 6h6a3 3 0 0 0-6 0m9.75-1.5h-2.508c.17.482.258.989.258 1.5v.75a.75.75 0 0 1-.75.75h-7.5a.75.75 0 0 1-.75-.75V6c0-.511.087-1.018.258-1.5H5.25v15.75h13.5z"
}));
};
IconClipboardText.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 { IconClipboardText as default };
IconClipboardText;