UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

60 lines (59 loc) 5.38 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 IconCheck = exports["default"] = function IconCheck(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("path", { d: "M6.198 14.973c-.298 0-.55-.307-.55-.67 0-.543-.454-.983-1.013-.983-.56 0-1.012.44-1.012.983 0 1.454 1.155 2.636 2.575 2.636h.031c.096.447.503.783.992.783.488 0 .896-.336.99-.783h.032c1.42 0 2.576-1.182 2.576-2.636 0-.664-.247-1.346-.679-1.872-.493-.601-1.184-.946-1.897-.946h-.01v-1.477c.205.08.333.278.333.54 0 .544.453.983 1.013.983s1.012-.44 1.012-.982c0-1.355-1.02-2.43-2.358-2.537v-.116c0-.543-.453-.983-1.012-.983-.56 0-1.013.44-1.013.983v.107h-.01c-.714 0-1.404.347-1.893.952a3.03 3.03 0 0 0-.663 1.866c0 1.451 1.146 2.63 2.555 2.63h.01v1.522zm0-3.487c-.293 0-.53-.299-.53-.665 0-.453.33-.852.53-.852h.01v1.517zm2.035 1.965h.01c.208 0 .551.399.551.852 0 .363-.252.67-.55.67h-.011zm3.79 1.285c-.559 0-1.012.44-1.012.983s.453.983 1.013.983h1.48c.56 0 1.013-.44 1.013-.983s-.453-.983-1.012-.983zm7.288 0h-3.366c-.56 0-1.013.44-1.013.983s.453.983 1.013.983h3.366c.56 0 1.012-.44 1.012-.983s-.453-.983-1.012-.983m0-2.479h-1.716c-.56 0-1.012.44-1.012.983s.453.983 1.012.983h1.716c.56 0 1.012-.44 1.012-.983s-.453-.983-1.012-.983M11.12 9.495a.97.97 0 0 0-.296.696v2.62c0 .544.453.984 1.012.984h2.7c.268 0 .525-.104.716-.288L22.676 6.3a.96.96 0 0 0 0-1.39l-2.7-2.621A1.03 1.03 0 0 0 19.26 2c-.269 0-.526.103-.716.288zm2.997 2.333h-1.268v-1.231l4.386-4.26 1.268 1.231zm6.411-6.225-.593.575-1.268-1.23.593-.577z" }), /*#__PURE__*/_react["default"].createElement("path", { d: "M21.988 8.248c-.56 0-1.013.44-1.013.983v8.833H3.525V6.634h9.47c.559 0 1.012-.44 1.012-.982 0-.543-.453-.983-1.012-.983H3.187c-.93 0-1.687.735-1.687 1.638v12.085c0 .903.757 1.638 1.687 1.638h18.21c.914 0 1.603-.704 1.603-1.638V9.23c0-.544-.453-.983-1.012-.983" })); } 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("path", { d: "M6.322 17.01a.68.68 0 0 1-.68-.68V8.134a.68.68 0 1 1 1.36 0v8.194a.68.68 0 0 1-.68.68" }), /*#__PURE__*/_react["default"].createElement("path", { d: "M7.268 16.064H5.377a2.26 2.26 0 0 1-2.256-2.256.68.68 0 1 1 1.36 0c0 .494.402.896.896.896h1.89a.897.897 0 0 0 0-1.791H5.693a2.26 2.26 0 0 1-2.256-2.256 2.26 2.26 0 0 1 2.256-2.256h1.261a2.26 2.26 0 0 1 2.256 2.256.68.68 0 1 1-1.36 0 .897.897 0 0 0-.896-.895H5.692a.897.897 0 0 0 0 1.79h1.576a2.26 2.26 0 0 1 2.255 2.256 2.26 2.26 0 0 1-2.255 2.256m6.258.296h-1.493a.68.68 0 1 1 0-1.36h1.493a.68.68 0 1 1 0 1.36m5.59 0h-3.392a.68.68 0 1 1 0-1.36h3.393a.68.68 0 1 1 0 1.36m0-2.354h-1.729a.68.68 0 1 1 0-1.36h1.73a.68.68 0 1 1 0 1.36m-5.257.238h-2.72a.68.68 0 0 1-.681-.68v-2.722a.68.68 0 0 1 .199-.48l8.163-8.163a.68.68 0 0 1 .962 0l2.72 2.721a.68.68 0 0 1 0 .963l-8.162 8.163a.68.68 0 0 1-.482.198zm-2.04-1.36h1.759L21.06 5.4 19.3 3.641l-7.482 7.483z" }), /*#__PURE__*/_react["default"].createElement("path", { d: "M19.981 8.121a.68.68 0 0 1-.48-.199l-2.722-2.72a.68.68 0 0 1 .962-.962l2.72 2.72a.68.68 0 0 1-.48 1.161" }), /*#__PURE__*/_react["default"].createElement("path", { d: "M21.39 20.034H2.61c-.75 0-1.36-.61-1.36-1.36V6.129c0-.75.61-1.36 1.36-1.36h10.14a.68.68 0 1 1 0 1.36H2.61v12.545h18.78v-9.51a.68.68 0 1 1 1.36 0v9.51c0 .75-.61 1.36-1.36 1.36" })); }; IconCheck.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 } : {}; IconCheck; module.exports = exports.default;