iconsax-react
Version:
Iconsax icon pack for React
176 lines (158 loc) • 9.23 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: "M22 9.75c-.41 0-.75-.34-.75-.75V7c0-2.58-1.67-4.25-4.25-4.25h-2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2c3.44 0 5.75 2.31 5.75 5.75v2c0 .41-.34.75-.75.75ZM2 9.75c-.41 0-.75-.34-.75-.75V7c0-3.44 2.31-5.75 5.75-5.75h2c.41 0 .75.34.75.75s-.34.75-.75.75H7C4.42 2.75 2.75 4.42 2.75 7v2c0 .41-.34.75-.75.75ZM17 22.75h-2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2c2.58 0 4.25-1.67 4.25-4.25v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 3.44-2.31 5.75-5.75 5.75ZM9 22.75H7c-3.44 0-5.75-2.31-5.75-5.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 2.58 1.67 4.25 4.25 4.25h2c.41 0 .75.34.75.75s-.34.75-.75.75ZM12.002 9.871c-.49 0-.9.4-.9.9v2.47c0 .5.4.9.9.9s.9-.4.9-.9v-2.47c0-.5-.41-.9-.9-.9Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M15.532 7.4c-.34-.34-.73-.63-1.15-.87-.14-.07-.29-.14-.44-.21-.15-.06-.3-.12-.46-.16-.16-.05-.32-.09-.48-.13-.01 0-.03 0-.04-.01-.31-.06-.63-.09-.95-.09h-.02c-.32 0-.63.03-.94.09-.04.01-.08.01-.11.03-.14.03-.28.06-.42.11-.17.04-.34.11-.51.18-.13.06-.26.13-.38.19-.15.08-.28.17-.42.26-.26.18-.51.38-.74.61-.11.11-.22.23-.32.35-.1.13-.2.25-.29.39-.09.13-.17.27-.25.41-.38.71-.6 1.52-.6 2.38v2.14c0 1.73.88 3.25 2.2 4.14.12.09.25.16.38.24l.55.26c.28.11.57.2.86.26.32.06.65.1.99.1h.02c.34 0 .67-.04.99-.1.3-.06.59-.15.87-.26a5.003 5.003 0 0 0 3.12-4.64v-2.14c0-1.38-.56-2.63-1.46-3.53Zm-1.13 5.84c0 1.32-1.08 2.4-2.4 2.4-1.32 0-2.4-1.08-2.4-2.4v-2.47c0-1.32 1.08-2.4 2.4-2.4 1.32 0 2.4 1.08 2.4 2.4v2.47Z",
fill: color
}));
};
var Broken = function Broken(_ref2) {
var color = _ref2.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M12.002 9.121c.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65-.91 0-1.65-.74-1.65-1.65",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M15 2h2c3 0 5 2 5 5v2M2 9V7c0-3 2-5 5-5h2M15 22h2c3 0 5-2 5-5v-2M2 15v2c0 3 2 5 5 5h2",
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", {
opacity: ".4",
d: "M16.992 10.93v2.14a5.003 5.003 0 0 1-3.99 4.9c-.32.06-.65.1-.99.1h-.02c-.34 0-.67-.04-.99-.1a5.31 5.31 0 0 1-.86-.26l-.55-.26c-.13-.08-.26-.15-.38-.24a4.988 4.988 0 0 1-2.2-4.14v-2.14c0-.86.22-1.67.6-2.38.08-.14.16-.28.25-.41.09-.14.19-.26.29-.39.1-.12.21-.24.32-.35.23-.23.48-.43.74-.61.14-.09.27-.18.42-.26.12-.06.25-.13.38-.19.17-.07.34-.14.51-.18.14-.05.28-.08.42-.11.03-.02.07-.02.11-.03.31-.06.62-.09.94-.09h.02c.32 0 .64.03.95.09.01.01.03.01.04.01.16.04.32.08.48.13.16.04.31.1.46.16.15.07.3.14.44.21.42.24.81.53 1.15.87.9.9 1.46 2.15 1.46 3.53Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M22 9.75c-.41 0-.75-.34-.75-.75V7c0-2.58-1.67-4.25-4.25-4.25h-2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2c3.44 0 5.75 2.31 5.75 5.75v2c0 .41-.34.75-.75.75ZM2 9.75c-.41 0-.75-.34-.75-.75V7c0-3.44 2.31-5.75 5.75-5.75h2c.41 0 .75.34.75.75s-.34.75-.75.75H7C4.42 2.75 2.75 4.42 2.75 7v2c0 .41-.34.75-.75.75ZM17 22.75h-2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2c2.58 0 4.25-1.67 4.25-4.25v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 3.44-2.31 5.75-5.75 5.75ZM9 22.75H7c-3.44 0-5.75-2.31-5.75-5.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 2.58 1.67 4.25 4.25 4.25h2c.41 0 .75.34.75.75s-.34.75-.75.75ZM12.002 15.63c-1.32 0-2.4-1.08-2.4-2.4v-2.47c0-1.32 1.08-2.4 2.4-2.4 1.32 0 2.4 1.08 2.4 2.4v2.47a2.4 2.4 0 0 1-2.4 2.4Zm0-5.76c-.49 0-.9.4-.9.9v2.47c0 .5.4.9.9.9s.9-.4.9-.9v-2.47c0-.5-.41-.9-.9-.9Z",
fill: color
}));
};
var Linear = function Linear(_ref4) {
var color = _ref4.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M12 14.88c-.91 0-1.65-.74-1.65-1.65v-2.47c0-.91.74-1.65 1.65-1.65.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M15 2h2c3 0 5 2 5 5v2M2 9V7c0-3 2-5 5-5h2M15 22h2c3 0 5-2 5-5v-2M2 15v2c0 3 2 5 5 5h2",
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: "M12.002 15.63c-1.32 0-2.4-1.08-2.4-2.4v-2.47c0-1.32 1.08-2.4 2.4-2.4 1.32 0 2.4 1.08 2.4 2.4v2.47a2.4 2.4 0 0 1-2.4 2.4Zm0-5.76c-.49 0-.9.4-.9.9v2.47c0 .5.4.9.9.9s.9-.4.9-.9v-2.47c0-.5-.41-.9-.9-.9Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M12 18.82c-3.17 0-5.75-2.58-5.75-5.75v-2.14c0-3.17 2.58-5.75 5.75-5.75 2.96 0 5.42 2.22 5.72 5.16a.75.75 0 0 1-.67.82.744.744 0 0 1-.82-.67A4.236 4.236 0 0 0 12 6.68a4.26 4.26 0 0 0-4.25 4.25v2.14A4.26 4.26 0 0 0 12 17.32c2.2 0 4.06-1.72 4.24-3.91a.752.752 0 1 1 1.5.12c-.24 2.97-2.76 5.29-5.74 5.29ZM22 9.75c-.41 0-.75-.34-.75-.75V7c0-2.58-1.67-4.25-4.25-4.25h-2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2c3.44 0 5.75 2.31 5.75 5.75v2c0 .41-.34.75-.75.75ZM2 9.75c-.41 0-.75-.34-.75-.75V7c0-3.44 2.31-5.75 5.75-5.75h2c.41 0 .75.34.75.75s-.34.75-.75.75H7C4.42 2.75 2.75 4.42 2.75 7v2c0 .41-.34.75-.75.75ZM17 22.75h-2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h2c2.58 0 4.25-1.67 4.25-4.25v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 3.44-2.31 5.75-5.75 5.75ZM9 22.75H7c-3.44 0-5.75-2.31-5.75-5.75v-2c0-.41.34-.75.75-.75s.75.34.75.75v2c0 2.58 1.67 4.25 4.25 4.25h2c.41 0 .75.34.75.75s-.34.75-.75.75Z",
fill: color
}));
};
var TwoTone = function TwoTone(_ref6) {
var color = _ref6.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
opacity: ".4",
d: "M12.002 14.88c-.91 0-1.65-.74-1.65-1.65v-2.47c0-.91.74-1.65 1.65-1.65.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65Z",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round"
}), /*#__PURE__*/React.createElement("path", {
opacity: ".4",
d: "M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49",
stroke: color,
strokeWidth: "1.5",
strokeLinecap: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M15 2h2c3 0 5 2 5 5v2M2 9V7c0-3 2-5 5-5h2M15 22h2c3 0 5-2 5-5v-2M2 15v2c0 3 2 5 5 5h2",
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 FingerScan = /*#__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));
});
FingerScan.propTypes = {
variant: PropTypes.oneOf(['Linear', 'Bold', 'Broken', 'Bulk', 'Outline', 'TwoTone']),
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
FingerScan.defaultProps = {
variant: 'Linear',
color: 'currentColor',
size: '24'
};
FingerScan.displayName = 'FingerScan';
export { FingerScan as default };