iconsax-react
Version:
Iconsax icon pack for React
172 lines (154 loc) • 10.6 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: "M20.55 9.44h-1.1c-.15 0-.3.03-.44.07l-4.99-4.99c.48-.62.44-1.51-.13-2.07l-.78-.78c-.59-.59-1.63-.59-2.23 0l-.78.78c-.56.56-.6 1.45-.12 2.07L4.99 9.51c-.14-.04-.29-.07-.44-.07h-1.1c-.87 0-1.58.71-1.58 1.58v1.1c0 .87.71 1.58 1.58 1.58h1.1c.87 0 1.58-.71 1.58-1.58v-1.1c0-.15-.03-.3-.07-.44l4.99-4.99c.27.21.61.32.95.32.34 0 .68-.12.96-.33l4.99 4.99c-.04.14-.07.29-.07.44v1.1c0 .87.71 1.58 1.58 1.58h1.1c.87 0 1.58-.71 1.58-1.58v-1.1c-.02-.87-.72-1.57-1.59-1.57Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M15.75 16.55 14.11 18H9.85l-1.64-1.45c-.95-.78-.95-1.38-.23-2.3l2.89-3.66c.2-.25.43-.42.69-.51.27-.09.56-.09.84 0 .25.09.48.26.69.51l2.89 3.66c.72.91.69 1.48-.23 2.3ZM13.29 22H10.7c-.92 0-1.61-.75-1.43-1.55l.31-1.39a.6.6 0 0 1 .59-.47h3.65c.28 0 .52.19.59.47l.31 1.39c.2.85-.45 1.55-1.43 1.55Z",
fill: color
}));
};
var Broken = function Broken(_ref2) {
var color = _ref2.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "m11.15 5.19-.78-.78c-.47-.47-.47-1.23 0-1.7l.78-.78c.47-.47 1.23-.47 1.7 0l.78.78c.47.47.47 1.23 0 1.7l-.78.78c-.47.47-1.23.47-1.7 0ZM19.45 9.809h1.1c.66 0 1.2.54 1.2 1.2v1.1c0 .66-.54 1.2-1.2 1.2h-1.1c-.66 0-1.2-.54-1.2-1.2v-1.1c0-.66.54-1.2 1.2-1.2ZM4.55 9.809h-1.1c-.66 0-1.2.54-1.2 1.2v1.1c0 .66.54 1.2 1.2 1.2h1.1c.66 0 1.2-.54 1.2-1.2v-1.1c0-.66-.54-1.2-1.2-1.2ZM18.54 10.1l-5.3-5.3M5.46 10.1l2.65-2.65M10.751 22.503h2.52c.96 0 1.58-.68 1.4-1.51l-.41-1.81h-4.5l-.41 1.81c-.18.78.5 1.51 1.4 1.51ZM14.22 12.672l-1.05-1.33c-.64-.81-1.69-.81-2.33 0l-3.05 3.87c-.77.97-.77 1.6.24 2.43l1.73 1.54M14.262 19.173l1.73-1.54c.97-.86 1.01-1.46.24-2.43M12.012 11.121v2.53",
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", {
d: "m11.15 5.19-.78-.78c-.47-.47-.47-1.23 0-1.7l.78-.78c.47-.47 1.23-.47 1.7 0l.78.78c.47.47.47 1.23 0 1.7l-.78.78c-.47.47-1.23.47-1.7 0Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M12 5.911c-.4 0-.81-.15-1.11-.46l-.78-.78c-.61-.61-.61-1.61 0-2.23l.78-.78c.59-.6 1.63-.59 2.23 0l.78.78c.61.61.61 1.61 0 2.23l-.78.78c-.31.31-.72.46-1.12.46Zm0-3.95c-.21 0-.42.08-.58.24l-.78.78c-.32.32-.32.85 0 1.17l.78.78c.32.32.84.32 1.17 0l.78-.78c.32-.32.32-.84 0-1.17l-.78-.78a.858.858 0 0 0-.59-.24ZM19.45 9.809h1.1c.66 0 1.2.54 1.2 1.2v1.1c0 .66-.54 1.2-1.2 1.2h-1.1c-.66 0-1.2-.54-1.2-1.2v-1.1c0-.66.54-1.2 1.2-1.2Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M20.55 13.69h-1.1c-.87 0-1.58-.71-1.58-1.58v-1.1c0-.87.71-1.58 1.58-1.58h1.1c.87 0 1.58.71 1.58 1.58v1.1a1.59 1.59 0 0 1-1.58 1.58Zm-1.1-3.5c-.46 0-.83.37-.83.83v1.1c0 .46.37.83.83.83h1.1c.46 0 .83-.37.83-.83v-1.1c0-.46-.37-.83-.83-.83h-1.1ZM4.55 9.809h-1.1c-.66 0-1.2.54-1.2 1.2v1.1c0 .66.54 1.2 1.2 1.2h1.1c.66 0 1.2-.54 1.2-1.2v-1.1c0-.66-.54-1.2-1.2-1.2Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M4.55 13.69h-1.1c-.87 0-1.58-.71-1.58-1.58v-1.1c0-.87.71-1.58 1.58-1.58h1.1c.87 0 1.58.71 1.58 1.58v1.1a1.59 1.59 0 0 1-1.58 1.58Zm-1.1-3.5c-.46 0-.83.37-.83.83v1.1c0 .46.37.83.83.83h1.1c.46 0 .83-.37.83-.83v-1.1c0-.46-.37-.83-.83-.83h-1.1Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12.71 4.27a.75.75 0 0 1 1.06 0l5.3 5.3a.75.75 0 1 1-1.06 1.061l-5.3-5.3a.75.75 0 0 1 0-1.06ZM11.291 4.27a.75.75 0 0 1 0 1.061l-5.3 5.3a.75.75 0 1 1-1.06-1.06l5.3-5.3a.75.75 0 0 1 1.06 0Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M13.26 22.007H10.7c-.92 0-1.6-.74-1.43-1.54l.42-1.85h4.59l.42 1.85c.19.85-.46 1.54-1.44 1.54Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
opacity: ".4",
d: "m16.04 17.049-1.77 1.57H9.68l-1.77-1.57c-1.03-.84-1.03-1.49-.25-2.48l3.12-3.94c.22-.27.47-.46.74-.55.29-.1.61-.1.9 0 .27.1.52.28.74.55l3.12 3.94c.79.99.75 1.61-.24 2.48Z",
fill: color
}));
};
var Linear = function Linear(_ref4) {
var color = _ref4.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
stroke: color,
strokeLinecap: "round",
strokeLinejoin: "round",
strokeWidth: "1.5",
d: "M10.75 22.5h2.52c.96 0 1.58-.68 1.4-1.51l-.41-1.81h-4.5l-.41 1.81c-.18.78.5 1.51 1.4 1.51zM14.26 19.17l1.73-1.54c.97-.86 1.01-1.46.24-2.43l-3.05-3.87c-.64-.81-1.69-.81-2.33 0L7.8 15.2c-.77.97-.77 1.6.24 2.43l1.73 1.54M12.01 11.12v2.53M11.15 5.19l-.78-.78c-.47-.47-.47-1.23 0-1.7l.78-.78c.47-.47 1.23-.47 1.7 0l.78.78c.47.47.47 1.23 0 1.7l-.78.78c-.47.47-1.23.47-1.7 0zM19.45 9.81h1.1c.66 0 1.2.54 1.2 1.2v1.1c0 .66-.54 1.2-1.2 1.2h-1.1c-.66 0-1.2-.54-1.2-1.2v-1.1c0-.66.54-1.2 1.2-1.2zM4.55 9.81h-1.1c-.66 0-1.2.54-1.2 1.2v1.1c0 .66.54 1.2 1.2 1.2h1.1c.66 0 1.2-.54 1.2-1.2v-1.1c0-.66-.54-1.2-1.2-1.2zM18.54 10.1l-5.3-5.3M5.46 10.1l5.3-5.3"
}));
};
var Outline = function Outline(_ref5) {
var color = _ref5.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M13.27 23.252h-2.52c-.7 0-1.33-.3-1.75-.81-.37-.46-.51-1.05-.38-1.61l.41-1.81c.08-.34.38-.58.73-.58h4.5c.35 0 .65.24.73.58l.41 1.81c.13.6.01 1.18-.36 1.64-.41.49-1.05.78-1.77.78Zm-2.91-3.33-.28 1.23a.4.4 0 0 0 .09.34c.13.16.34.25.58.25h2.52c.26 0 .48-.08.6-.23.08-.1.1-.22.07-.37l-.28-1.23h-3.3v.01Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M14.26 19.919c-.21 0-.41-.08-.56-.25a.756.756 0 0 1 .06-1.06l1.73-1.54c.69-.61.66-.76.15-1.4l-3.05-3.87c-.17-.21-.37-.33-.58-.33-.21 0-.41.12-.58.33l-3.05 3.87c-.54.69-.53.84.13 1.38l1.75 1.56c.31.27.34.75.06 1.06-.28.31-.75.34-1.06.06l-1.73-1.54c-1.26-1.03-1.37-2.13-.33-3.45l3.05-3.87c.45-.57 1.09-.9 1.76-.9.67 0 1.31.33 1.76.9l3.05 3.87c1.03 1.3.93 2.34-.33 3.45l-1.73 1.54c-.15.13-.33.19-.5.19Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M12.01 14.401c-.41 0-.75-.34-.75-.75v-2.53c0-.41.34-.75.75-.75s.75.34.75.75v2.53c0 .42-.34.75-.75.75ZM12 6.288c-.5 0-1-.19-1.38-.57l-.78-.78c-.76-.76-.76-2 0-2.76l.78-.78c.76-.76 2-.76 2.76 0l.78.78c.76.76.76 2 0 2.76l-.78.78c-.38.38-.88.57-1.38.57Zm0-3.96c-.12 0-.23.04-.32.13l-.78.78c-.08.08-.13.2-.13.32s.05.23.13.32l.78.78c.17.17.47.17.64 0l.78-.78c.08-.08.13-.2.13-.32s-.05-.23-.13-.32l-.78-.78a.482.482 0 0 0-.32-.13ZM20.55 14.059h-1.1c-1.08 0-1.95-.88-1.95-1.95v-1.1c0-1.08.88-1.95 1.95-1.95h1.1c1.08 0 1.95.88 1.95 1.95v1.1c0 1.08-.88 1.95-1.95 1.95Zm-1.1-3.5c-.25 0-.45.2-.45.45v1.1c0 .25.2.45.45.45h1.1c.25 0 .45-.2.45-.45v-1.1c0-.25-.2-.45-.45-.45h-1.1ZM4.55 14.059h-1.1c-1.08 0-1.95-.88-1.95-1.95v-1.1c0-1.08.88-1.95 1.95-1.95h1.1c1.08 0 1.95.88 1.95 1.95v1.1c0 1.08-.88 1.95-1.95 1.95Zm-1.1-3.5c-.25 0-.45.2-.45.45v1.1c0 .25.2.45.45.45h1.1c.25 0 .45-.2.45-.45v-1.1c0-.25-.2-.45-.45-.45h-1.1Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M18.54 10.848c-.19 0-.38-.07-.53-.22l-5.3-5.3a.754.754 0 0 1 0-1.06c.29-.29.77-.29 1.06 0l5.3 5.3c.29.29.29.77 0 1.06-.15.15-.34.22-.53.22ZM5.46 10.848c-.19 0-.38-.07-.53-.22a.755.755 0 0 1 0-1.06l5.3-5.3c.29-.29.77-.29 1.06 0 .29.29.29.77 0 1.06l-5.3 5.3c-.15.15-.34.22-.53.22Z",
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",
strokeLinecap: "round",
strokeLinejoin: "round"
}, /*#__PURE__*/React.createElement("path", {
d: "M10.75 22.5h2.52c.96 0 1.58-.68 1.4-1.51l-.41-1.81h-4.5l-.41 1.81c-.18.78.5 1.51 1.4 1.51ZM14.26 19.17l1.73-1.54c.97-.86 1.01-1.46.24-2.43l-3.05-3.87c-.64-.81-1.69-.81-2.33 0L7.8 15.2c-.77.97-.77 1.6.24 2.43l1.73 1.54M12.01 11.121v2.53"
})), /*#__PURE__*/React.createElement("path", {
d: "m11.15 5.19-.78-.78c-.47-.47-.47-1.23 0-1.7l.78-.78c.47-.47 1.23-.47 1.7 0l.78.78c.47.47.47 1.23 0 1.7l-.78.78c-.47.47-1.23.47-1.7 0ZM19.45 9.809h1.1c.66 0 1.2.54 1.2 1.2v1.1c0 .66-.54 1.2-1.2 1.2h-1.1c-.66 0-1.2-.54-1.2-1.2v-1.1c0-.66.54-1.2 1.2-1.2ZM4.55 9.809h-1.1c-.66 0-1.2.54-1.2 1.2v1.1c0 .66.54 1.2 1.2 1.2h1.1c.66 0 1.2-.54 1.2-1.2v-1.1c0-.66-.54-1.2-1.2-1.2ZM18.54 10.1l-5.3-5.3M5.46 10.1l5.3-5.3",
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 PenTool = /*#__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));
});
PenTool.propTypes = {
variant: PropTypes.oneOf(['Linear', 'Bold', 'Broken', 'Bulk', 'Outline', 'TwoTone']),
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
PenTool.defaultProps = {
variant: 'Linear',
color: 'currentColor',
size: '24'
};
PenTool.displayName = 'PenTool';
export { PenTool as default };