UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

47 lines 2.86 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 IconWarning = 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: "M23.024 17.447 14.826 3.209a2.694 2.694 0 0 0-4.652 0L1.976 17.447a2.57 2.57 0 0 0 0 2.598 2.65 2.65 0 0 0 2.326 1.33h16.396a2.655 2.655 0 0 0 2.677-2.629c0-.456-.12-.905-.35-1.3m-1.95 1.472a.42.42 0 0 1-.375.206H4.302a.42.42 0 0 1-.375-.206.33.33 0 0 1 0-.35l8.198-14.238a.447.447 0 0 1 .75 0l8.198 14.238a.33.33 0 0 1 .001.35m-9.699-6.169v-3a1.125 1.125 0 1 1 2.25 0v3a1.125 1.125 0 1 1-2.25 0M14 16.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" })); } 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: "M22.2 17.633 14.002 3.396a2.322 2.322 0 0 0-4.004 0L1.8 17.633a2.2 2.2 0 0 0 0 2.224A2.28 2.28 0 0 0 3.802 21h16.396a2.28 2.28 0 0 0 2-1.143 2.2 2.2 0 0 0 .002-2.224m-1.3 1.473a.8.8 0 0 1-.702.394H3.802a.8.8 0 0 1-.702-.394.71.71 0 0 1 0-.724l8.2-14.237a.82.82 0 0 1 1.406 0l8.198 14.237a.71.71 0 0 1-.003.724M11.25 13.5V9.75a.75.75 0 1 1 1.5 0v3.75a.75.75 0 1 1-1.5 0m1.875 3.375a1.126 1.126 0 1 1-2.251 0 1.126 1.126 0 0 1 2.251 0" })); }; IconWarning.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 { IconWarning as default }; IconWarning;