UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

59 lines 3.7 kB
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 IconAlert = 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("g", { "clip-path": "url(#a)" }, /*#__PURE__*/React.createElement("path", { d: "M21.67 6.998a1.125 1.125 0 0 1-1.517-.48 8.45 8.45 0 0 0-3-3.316 1.125 1.125 0 1 1 1.2-1.903 10.8 10.8 0 0 1 3.8 4.184 1.125 1.125 0 0 1-.483 1.515m-16.823-.48a8.45 8.45 0 0 1 3-3.316A1.125 1.125 0 1 0 6.65 1.299a10.8 10.8 0 0 0-3.8 4.184 1.125 1.125 0 0 0 1.997 1.035m16.267 9.22a1.874 1.874 0 0 1-1.489 3.012h-3.018a4.125 4.125 0 0 1-8.214 0H5.375a1.875 1.875 0 0 1-1.492-3.011c.673-.875 1.475-2.496 1.49-5.245a7.126 7.126 0 1 1 14.252.006c.014 2.743.817 4.364 1.489 5.239m-6.776 3.012h-3.675a1.875 1.875 0 0 0 3.675 0m4.569-2.25c-.765-1.219-1.518-3.147-1.532-5.994a4.875 4.875 0 0 0-9.75-.006c-.014 2.852-.767 4.781-1.532 6z" })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", { id: "a" }, /*#__PURE__*/React.createElement("path", { d: "M0 0h24v24H0z" })))); } 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("g", { "clip-path": "url(#a)" }, /*#__PURE__*/React.createElement("path", { d: "M21.5 6.666a.75.75 0 0 1-1.01-.321 8.8 8.8 0 0 0-3.137-3.46.751.751 0 0 1 .8-1.27 10.45 10.45 0 0 1 3.668 4.04.75.75 0 0 1-.321 1.01M3.848 6.75a.75.75 0 0 0 .665-.405 8.8 8.8 0 0 1 3.137-3.46.75.75 0 0 0-.8-1.27 10.45 10.45 0 0 0-3.668 4.04.75.75 0 0 0 .666 1.095m17.447 9.744A1.5 1.5 0 0 1 20 18.75h-3.825a3.75 3.75 0 0 1-7.35 0H5a1.5 1.5 0 0 1-1.293-2.256C4.552 15.037 5 12.964 5 10.5a7.5 7.5 0 0 1 15 0c0 2.463.448 4.536 1.295 5.994M14.62 18.75h-4.242a2.25 2.25 0 0 0 4.242 0m5.38-1.5c-.997-1.713-1.5-3.983-1.5-6.75a6 6 0 1 0-12 0c0 2.768-.504 5.038-1.5 6.75z" })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", { id: "a" }, /*#__PURE__*/React.createElement("path", { d: "M0 0h24v24H0z" })))); }; IconAlert.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 { IconAlert as default }; IconAlert;