UNPKG

iconsax-react

Version:
166 lines (148 loc) 6.7 kB
import { _ as _objectWithoutProperties, a as _extends } from './_rollupPluginBabelHelpers-3bc641ae.js'; import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; var _excluded = ["variant", "color", "size"]; var Bold = function Bold(_ref) { var color = _ref.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { fill: color, d: "M5.65 7.65l-2.8-2.8A.5.5 0 013.2 4h3.59c.13 0 .26.05.35.15l5 5a.5.5 0 01-.35.85H8.5C6.57 10 5 11.57 5 13.5S6.57 17 8.5 17H10l2.15 2.15a.5.5 0 01-.35.85H8.51A6.5 6.5 0 015.48 7.75l.17-.1z" }), /*#__PURE__*/React.createElement("path", { fill: color, d: "M18.35 16.35l2.8 2.8a.5.5 0 01-.35.85h-3.59a.47.47 0 01-.35-.15l-5-5a.5.5 0 01.35-.85h3.29c1.93 0 3.5-1.57 3.5-3.5S17.43 7 15.5 7H14l-2.15-2.15A.5.5 0 0112.2 4h3.29a6.5 6.5 0 013.03 12.25l-.17.1z" })); }; var Broken = function Broken(_ref2) { var color = _ref2.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M3.82 8.99c.48-.5 1.03-.92 1.65-1.24l.19-.1L2 4h5l6 6H8.5C6.57 10 5 11.57 5 13.5S6.57 17 8.5 17H10l3 3H8.5A6.5 6.5 0 0 1 2 13.5c0-.33.02-.65.07-.96", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { d: "M18.35 16.35 22 20h-5l-6-6h4.5c1.93 0 3.5-1.57 3.5-3.5S17.43 7 15.5 7H14l-3-3h4.5a6.5 6.5 0 0 1 3.03 12.25l-.18.1Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" })); }; var Bulk = function Bulk(_ref3) { var color = _ref3.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "m5.65 7.65-2.8-2.8A.5.5 0 0 1 3.21 4H6.8c.13 0 .26.05.35.15l5 5a.5.5 0 0 1-.35.85H8.51c-1.93 0-3.5 1.57-3.5 3.5S6.58 17 8.51 17h1.5l2.15 2.15a.5.5 0 0 1-.35.85H8.52A6.5 6.5 0 0 1 5.49 7.75l.16-.1Z", fill: color }), /*#__PURE__*/React.createElement("path", { opacity: ".4", d: "m18.35 16.35 2.8 2.8a.5.5 0 0 1-.35.85h-3.59a.47.47 0 0 1-.35-.15l-5-5a.5.5 0 0 1 .35-.85h3.29c1.93 0 3.5-1.57 3.5-3.5S17.43 7 15.5 7H14l-2.15-2.15a.5.5 0 0 1 .36-.85h3.29a6.5 6.5 0 0 1 3.03 12.25l-.18.1Z", fill: color })); }; var Linear = function Linear(_ref4) { var color = _ref4.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M5.7 7.7 2 4h5l6 6H8.5C6.6 10 5 11.6 5 13.5S6.6 17 8.5 17H10l3 3H8.5C4.9 20 2 17.1 2 13.5 2 11 3.4 8.8 5.5 7.7h.2Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { d: "M18.3 16.3 22 20h-5l-6-6h4.5c1.9 0 3.5-1.6 3.5-3.5S17.4 7 15.5 7H14l-3-3h4.5c3.6 0 6.5 2.9 6.5 6.5 0 2.5-1.4 4.7-3.5 5.8h-.2Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" })); }; var Outline = function Outline(_ref5) { var color = _ref5.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M13 20.75H8.5c-4 0-7.25-3.25-7.25-7.25 0-2.43 1.2-4.66 3.19-6L1.47 4.53A.751.751 0 0 1 2 3.25h5c.2 0 .39.08.53.22l6 6a.751.751 0 0 1-.53 1.28H8.5c-1.52 0-2.75 1.23-2.75 2.75s1.23 2.75 2.75 2.75H10c.2 0 .39.08.53.22l3 3a.751.751 0 0 1-.53 1.28Zm-9.19-16 2.37 2.37c.17.17.25.41.21.65a.76.76 0 0 1-.4.55l-.19.1a5.733 5.733 0 0 0-3.06 5.08c0 3.17 2.58 5.75 5.75 5.75h2.69l-1.5-1.5H8.49a4.26 4.26 0 0 1-4.25-4.25 4.26 4.26 0 0 1 4.25-4.25h2.69l-4.5-4.5H3.81Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M22 20.75h-5a.75.75 0 0 1-.53-.22l-6-6a.751.751 0 0 1 .53-1.28h4.5c1.52 0 2.75-1.23 2.75-2.75s-1.23-2.75-2.75-2.75H14a.75.75 0 0 1-.53-.22l-3-3A.751.751 0 0 1 11 3.25h4.5c4 0 7.25 3.25 7.25 7.25 0 2.43-1.2 4.66-3.19 6l2.97 2.97a.751.751 0 0 1-.53 1.28Zm-4.69-1.5h2.88l-2.37-2.37a.744.744 0 0 1-.21-.65.76.76 0 0 1 .4-.55l.19-.1a5.733 5.733 0 0 0 3.06-5.08c0-3.17-2.58-5.75-5.75-5.75h-2.69l1.5 1.5h1.19a4.26 4.26 0 0 1 4.25 4.25 4.26 4.26 0 0 1-4.25 4.25h-2.69l4.49 4.5Z", fill: color })); }; var TwoTone = function TwoTone(_ref6) { var color = _ref6.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M5.65 7.65 2 4h5l6 6H8.5C6.57 10 5 11.57 5 13.5S6.57 17 8.5 17H10l3 3H8.5A6.5 6.5 0 0 1 5.47 7.75l.18-.1Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { opacity: ".4", d: "M18.35 16.35 22 20h-5l-6-6h4.5c1.93 0 3.5-1.57 3.5-3.5S17.43 7 15.5 7H14l-3-3h4.5a6.5 6.5 0 0 1 3.03 12.25l-.18.1Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" })); }; var chooseVariant = function chooseVariant(variant, color) { switch (variant) { case 'Bold': return /*#__PURE__*/React.createElement(Bold, { color: color }); case 'Broken': return /*#__PURE__*/React.createElement(Broken, { color: color }); case 'Bulk': return /*#__PURE__*/React.createElement(Bulk, { color: color }); case 'Linear': return /*#__PURE__*/React.createElement(Linear, { color: color }); case 'Outline': return /*#__PURE__*/React.createElement(Outline, { color: color }); case 'TwoTone': return /*#__PURE__*/React.createElement(TwoTone, { color: color }); default: return /*#__PURE__*/React.createElement(Linear, { color: color }); } }; var Decred = /*#__PURE__*/forwardRef(function (_ref7, ref) { var variant = _ref7.variant, color = _ref7.color, size = _ref7.size, rest = _objectWithoutProperties(_ref7, _excluded); return /*#__PURE__*/React.createElement("svg", _extends({}, rest, { xmlns: "http://www.w3.org/2000/svg", ref: ref, width: size, height: size, viewBox: "0 0 24 24", fill: "none" }), chooseVariant(variant, color)); }); Decred.propTypes = { variant: PropTypes.oneOf(['Linear', 'Bold', 'Broken', 'Bulk', 'Outline', 'TwoTone']), color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; Decred.defaultProps = { variant: 'Linear', color: 'currentColor', size: '24' }; Decred.displayName = 'Decred'; export { Decred as default };