iconsax-react
Version:
Iconsax icon pack for React
230 lines (212 loc) • 12.1 kB
JavaScript
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", {
d: "m11.94 2.212-2.41 5.61H7.12c-.4 0-.79.03-1.17.11l1-2.4.04-.09.06-.16c.03-.07.05-.13.08-.18 1.16-2.69 2.46-3.53 4.81-2.89ZM18.731 8.09l-.02-.01c-.6-.17-1.21-.26-1.83-.26h-6.26l2.25-5.23.03-.07c.14.05.29.12.44.17l2.21.93c1.23.51 2.09 1.04 2.62 1.68.09.12.17.23.25.36.09.14.16.28.2.43.04.09.07.17.09.26.15.51.16 1.09.02 1.74ZM18.288 9.52c-.45-.13-.92-.2-1.41-.2h-9.76c-.68 0-1.32.13-1.92.39a4.894 4.894 0 0 0-2.96 4.49v1.95c0 .24.02.47.05.71.22 3.18 1.92 4.88 5.1 5.09.23.03.46.05.71.05h7.8c3.7 0 5.65-1.76 5.84-5.26.01-.19.02-.39.02-.59V14.2a4.9 4.9 0 0 0-3.47-4.68Zm-3.79 6.67h-1.75V18c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-1.81h-1.75a.749.749 0 1 1 0-1.5h1.75V13c0-.41.34-.75.75-.75s.75.34.75.75v1.69h1.75a.749.749 0 1 1 0 1.5Z",
fill: color
}));
};
var Broken = function Broken(_ref2) {
var color = _ref2.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M14.5 15.441h-5M12 13v5",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M12 22H8.1c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 2 .6 3.46 2.47 3.46 4.67v1.95c0 .2-.01.4-.02.6-.19 3.5-2.14 5.26-5.84 5.26",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "m12.9 2.518-.03.07-2.9 6.73H7.12c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M18.289 9.52c-.45-.14-.93-.2-1.41-.2h-6.91l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16ZM6.948 5.531l-1.75 4.18a4.894 4.894 0 0 0-2.96 4.49v-2.93c0-2.84 2.02-5.21 4.71-5.74Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M21.76 11.272v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}));
};
var Bulk = function Bulk(_ref3) {
var color = _ref3.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
opacity: ".8",
d: "m12.9 2.518-.03.07-2.9 6.73H7.12c-.68 0-1.32.13-1.92.39l1.75-4.18.04-.09.06-.16c.03-.07.05-.13.08-.18 1.31-3.03 2.79-3.72 5.77-2.58Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M18.289 9.52c-.45-.13-.92-.2-1.41-.2h-6.91l2.9-6.73.03-.07c.14.05.29.12.44.17l2.21.93c1.23.51 2.09 1.04 2.62 1.68.09.12.17.23.25.36.09.14.16.28.2.43.04.09.07.17.09.26.26.85.1 1.88-.42 3.17Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
opacity: ".4",
d: "M21.758 14.2v1.95c0 .2-.01.4-.02.59-.19 3.5-2.14 5.26-5.84 5.26h-7.8c-.25 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.1-5.09-.03-.24-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.26 1.24-.39 1.92-.39h9.76c.49 0 .96.07 1.41.2a4.9 4.9 0 0 1 3.47 4.68Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
opacity: ".6",
d: "m6.948 5.531-1.75 4.18a4.894 4.894 0 0 0-2.96 4.49v-2.93c0-2.84 2.02-5.21 4.71-5.74ZM21.76 11.27v2.93a4.9 4.9 0 0 0-3.47-4.68c.52-1.29.68-2.32.42-3.17-.02-.09-.05-.17-.09-.26a5.84 5.84 0 0 1 3.14 5.18Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M14.5 14.69h-1.75V13c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.69H9.5c-.41 0-.75.34-.75.75s.34.75.75.75h1.75V18c0 .41.34.75.75.75s.75-.34.75-.75v-1.81h1.75c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z",
fill: color
}));
};
var Linear = function Linear(_ref4) {
var color = _ref4.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M14.262 15.438h-5M11.762 12.998v5",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "m12.66 2.518-.03.07-2.9 6.73H6.88c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M18.05 9.518c-.45-.14-.93-.2-1.41-.2H9.73l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M21.522 14.198v1.95c0 .2-.01.4-.02.6-.19 3.49-2.14 5.25-5.84 5.25h-7.8c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71v-1.95c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 1.99.61 3.46 2.47 3.46 4.68Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "m6.71 5.528-1.75 4.18A4.894 4.894 0 0 0 2 14.198v-2.93c0-2.84 2.02-5.21 4.71-5.74ZM21.519 11.268v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z",
stroke: color,
strokeWidth: "1.5",
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: "M14.5 16.191h-5c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h5c.41 0 .75.34.75.75s-.34.75-.75.75Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M12 18.75c-.41 0-.75-.34-.75-.75v-5c0-.41.34-.75.75-.75s.75.34.75.75v5c0 .41-.34.75-.75.75ZM5.202 10.46c-.19 0-.38-.08-.53-.22a.753.753 0 0 1-.16-.82l1.86-4.44c.04-.09.06-.15.09-.2 1.48-3.41 3.37-4.24 6.71-2.96.19.07.34.22.42.41.08.19.08.4 0 .59l-2.93 6.8c-.12.27-.39.45-.69.45h-2.85c-.57 0-1.11.11-1.63.33-.09.04-.19.06-.29.06Zm5.41-7.71c-1.24 0-2 .81-2.79 2.65-.01.03-.03.06-.04.09L6.472 8.6c.22-.02.43-.03.65-.03h2.35l2.41-5.6c-.47-.15-.89-.22-1.27-.22Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M18.288 10.269c-.07 0-.15-.01-.22-.03-.37-.11-.78-.17-1.2-.17h-6.9c-.25 0-.49-.13-.63-.34a.776.776 0 0 1-.06-.71l2.9-6.73c.15-.36.59-.6.96-.48.12.04.23.09.35.14l2.36.99c1.38.57 2.3 1.17 2.9 1.89.12.14.22.29.31.44.11.17.21.38.28.59.03.07.08.2.11.34.28.94.14 2.11-.46 3.61-.12.28-.4.46-.7.46Zm-7.18-1.7h5.77c.32 0 .63.03.94.08.28-.87.34-1.54.18-2.08-.02-.09-.04-.13-.05-.17-.06-.16-.1-.25-.15-.33-.07-.11-.12-.2-.2-.29-.43-.52-1.19-1-2.32-1.46l-1.98-.83-2.19 5.08Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M15.9 22.75H8.1c-.28 0-.54-.02-.8-.05-3.51-.24-5.51-2.24-5.75-5.79-.03-.22-.05-.49-.05-.76V14.2c0-2.25 1.34-4.28 3.41-5.18.7-.3 1.45-.45 2.22-.45h9.76c.57 0 1.12.08 1.63.24 2.35.71 4 2.93 4 5.39v1.95c0 .22-.01.43-.02.63-.22 3.91-2.5 5.97-6.6 5.97ZM7.12 10.07c-.57 0-1.11.11-1.63.33-1.52.66-2.5 2.15-2.5 3.8v1.95c0 .21.02.42.04.62.19 2.85 1.59 4.25 4.4 4.44.25.03.45.05.66.05h7.8c3.3 0 4.92-1.45 5.08-4.55.01-.18.02-.36.02-.56V14.2c0-1.81-1.21-3.43-2.93-3.96-.37-.11-.78-.17-1.2-.17H7.12Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M2.238 14.952c-.41 0-.75-.34-.75-.75v-2.93c0-3.15 2.23-5.87 5.31-6.47.27-.05.55.05.73.26.17.21.22.51.11.76l-1.75 4.18a.8.8 0 0 1-.39.4c-1.52.66-2.5 2.15-2.5 3.8-.01.41-.34.75-.76.75Zm3.36-8.13a5.106 5.106 0 0 0-2.5 3.45c.44-.45.95-.83 1.53-1.11l.97-2.34ZM21.761 14.95c-.41 0-.75-.34-.75-.75 0-1.81-1.21-3.43-2.93-3.96a.744.744 0 0 1-.48-.99c.47-1.17.59-2.02.4-2.68-.02-.09-.04-.13-.05-.17a.752.752 0 0 1 .17-.85c.23-.22.58-.27.86-.12a6.569 6.569 0 0 1 3.53 5.84v2.93c0 .41-.34.75-.75.75Zm-2.51-5.86c.63.29 1.19.7 1.66 1.19-.19-.98-.66-1.87-1.35-2.57-.05.42-.15.88-.31 1.38Z",
fill: color
}));
};
var TwoTone = function TwoTone(_ref6) {
var color = _ref6.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("g", {
opacity: ".4",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}, /*#__PURE__*/React.createElement("path", {
d: "M14.262 15.441h-5M11.762 13v5"
})), /*#__PURE__*/React.createElement("path", {
d: "m12.66 2.518-.03.07-2.9 6.73H6.88c-.68 0-1.33.14-1.92.39l1.75-4.18.04-.1.07-.16c.02-.06.04-.12.07-.17 1.31-3.03 2.79-3.72 5.77-2.58ZM18.05 9.52c-.45-.14-.93-.2-1.41-.2H9.73l2.9-6.73.03-.07c.15.05.29.12.44.18l2.21.93c1.23.51 2.09 1.04 2.61 1.68.1.12.18.23.25.36.09.14.16.28.2.43.04.09.07.18.09.26.27.84.11 1.87-.41 3.16Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M21.522 14.2v1.95c0 .2-.01.4-.02.6-.19 3.49-2.14 5.25-5.84 5.25h-7.8c-.24 0-.48-.02-.71-.05-3.18-.21-4.88-1.91-5.09-5.09-.03-.23-.05-.47-.05-.71V14.2c0-2.01 1.22-3.74 2.96-4.49.6-.25 1.24-.39 1.92-.39h9.76c.49 0 .97.07 1.41.2 1.99.61 3.46 2.47 3.46 4.68Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
opacity: ".4",
d: "m6.71 5.527-1.75 4.18A4.894 4.894 0 0 0 2 14.197v-2.93c0-2.84 2.02-5.21 4.71-5.74ZM21.519 11.268v2.93c0-2.2-1.46-4.07-3.46-4.67.52-1.3.67-2.32.42-3.17-.02-.09-.05-.18-.09-.26 1.86.96 3.13 2.93 3.13 5.17Z",
stroke: color,
strokeWidth: "1.5",
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 WalletAdd1 = /*#__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));
});
WalletAdd1.propTypes = {
variant: PropTypes.oneOf(['Linear', 'Bold', 'Broken', 'Bulk', 'Outline', 'TwoTone']),
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
WalletAdd1.defaultProps = {
variant: 'Linear',
color: 'currentColor',
size: '24'
};
WalletAdd1.displayName = 'WalletAdd1';
export { WalletAdd1 as default };