iconsax-react
Version:
Iconsax icon pack for React
221 lines (203 loc) • 12 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: "M8.5 12.75c-.41 0-.75-.34-.75-.75V6c0-.41.34-.75.75-.75s.75.34.75.75v6c0 .41-.34.75-.75.75ZM8.5 22.75c-.41 0-.75-.34-.75-.75v-4c0-.41.34-.75.75-.75s.75.34.75.75v4c0 .41-.34.75-.75.75ZM15.5 22.75c-.41 0-.75-.34-.75-.75V6c0-.41.34-.75.75-.75s.75.34.75.75v16c0 .41-.34.75-.75.75Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M10.1 5.3c0 .49-.2.94-.53 1.27-.33.33-.78.53-1.27.53H6.05c.28-.37.45-.85.45-1.35v-.9c0-.5-.17-.98-.45-1.35H8.3c.99 0 1.8.81 1.8 1.8Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M6.5 4.848v.9c0 .5-.17.98-.45 1.35-.76 1.01-2.32 1.35-3.77.06-.16-.14-.28-.44-.28-.65v-2.34c0-.2.1-.47.23-.61 1.26-1.32 2.78-1.13 3.61-.3a2.257 2.257 0 0 1 .66 1.59ZM13.9 5.3c0 .49.2.94.53 1.27.33.33.78.53 1.27.53h2.25c-.28-.37-.45-.85-.45-1.35v-.9c0-.5.17-.98.45-1.35H15.7c-.99 0-1.8.81-1.8 1.8Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M17.5 4.848v.9c0 .5.17.98.45 1.35.76 1.01 2.32 1.35 3.77.06.16-.14.28-.44.28-.65v-2.34c0-.19-.1-.47-.23-.61-1.26-1.32-2.78-1.13-3.61-.3a2.257 2.257 0 0 0-.66 1.59ZM10 13.5v4c0 .83-.67 1.5-1.5 1.5S7 18.33 7 17.5v-4c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 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: "M8.5 11.999v-4.78M8.5 22v-3M15.5 9.999v-2.78M15.5 22v-9M10.1 5.3c0 .49-.2.95-.53 1.27-.32.33-.77.53-1.27.53H6.05c.28-.37.45-.85.45-1.35v-.9c0-.5-.17-.98-.45-1.35H8.3c.99 0 1.8.81 1.8 1.8Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M6.5 4.85v.9c0 .5-.17.98-.45 1.35-.76 1.01-2.32 1.35-3.77.06C2.12 7.02 2 6.72 2 6.5V4.16c0-.19.1-.47.23-.61 1.26-1.32 2.78-1.13 3.61-.3.07.07.14.15.21.24.28.38.45.86.45 1.36ZM13.9 5.3c0 .49.2.95.53 1.27.32.33.77.53 1.27.53h2.25c-.28-.37-.45-.85-.45-1.35v-.9c0-.5.17-.98.45-1.35H15.7c-.99 0-1.8.81-1.8 1.8Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M17.5 4.85v.9c0 .5.17.98.45 1.35.76 1.01 2.32 1.35 3.77.06.16-.14.28-.44.28-.66V4.16c0-.19-.1-.47-.23-.61-1.26-1.32-2.78-1.13-3.61-.3-.07.07-.14.15-.21.24-.28.38-.45.86-.45 1.36ZM10 13.5v4c0 .83-.67 1.5-1.5 1.5S7 18.33 7 17.5v-4c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5Z",
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: "M8.5 12.75c-.41 0-.75-.34-.75-.75V6c0-.41.34-.75.75-.75s.75.34.75.75v6c0 .41-.34.75-.75.75ZM8.5 22.75c-.41 0-.75-.34-.75-.75v-4c0-.41.34-.75.75-.75s.75.34.75.75v4c0 .41-.34.75-.75.75Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M15.5 22.75c-.41 0-.75-.34-.75-.75V6c0-.41.34-.75.75-.75s.75.34.75.75v16c0 .41-.34.75-.75.75ZM10.1 5.3c0 .49-.2.95-.53 1.27-.32.33-.77.53-1.27.53H6.05c.28-.37.45-.85.45-1.35v-.9c0-.5-.17-.98-.45-1.35H8.3c.99 0 1.8.81 1.8 1.8Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M6.5 4.85v.9c0 .5-.17.98-.45 1.35-.76 1.01-2.32 1.35-3.77.06C2.12 7.02 2 6.72 2 6.5V4.16c0-.19.1-.47.23-.61 1.26-1.32 2.78-1.13 3.61-.3.07.07.14.15.21.24.28.38.45.86.45 1.36ZM13.9 5.3c0 .49.2.95.53 1.27.32.33.77.53 1.27.53h2.25c-.28-.37-.45-.85-.45-1.35v-.9c0-.5.17-.98.45-1.35H15.7c-.99 0-1.8.81-1.8 1.8Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M17.5 4.85v.9c0 .5.17.98.45 1.35.76 1.01 2.32 1.35 3.77.06.16-.14.28-.44.28-.66V4.16c0-.19-.1-.47-.23-.61-1.26-1.32-2.78-1.13-3.61-.3-.07.07-.14.15-.21.24-.28.38-.45.86-.45 1.36ZM10 13.5v4c0 .83-.67 1.5-1.5 1.5S7 18.33 7 17.5v-4c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5Z",
fill: color
}));
};
var Linear = function Linear(_ref4) {
var color = _ref4.color;
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M8.5 12V7.22M8.5 22v-3M15.5 22V7.22M10.1 5.3c0 .49-.2.95-.53 1.27-.32.33-.77.53-1.27.53H6.05c.28-.37.45-.85.45-1.35v-.9c0-.5-.17-.98-.45-1.35H8.3c.99 0 1.8.81 1.8 1.8Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M6.5 4.85v.9c0 .5-.17.98-.45 1.35-.76 1.01-2.32 1.35-3.77.06C2.12 7.02 2 6.72 2 6.5V4.16c0-.19.1-.47.23-.61 1.26-1.32 2.78-1.13 3.61-.3.07.07.14.15.21.24.28.38.45.86.45 1.36ZM13.9 5.3c0 .49.2.95.53 1.27.32.33.77.53 1.27.53h2.25c-.28-.37-.45-.85-.45-1.35v-.9c0-.5.17-.98.45-1.35H15.7c-.99 0-1.8.81-1.8 1.8Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M17.5 4.85v.9c0 .5.17.98.45 1.35.76 1.01 2.32 1.35 3.77.06.16-.14.28-.44.28-.66V4.16c0-.19-.1-.47-.23-.61-1.26-1.32-2.78-1.13-3.61-.3-.07.07-.14.15-.21.24-.28.38-.45.86-.45 1.36ZM10 13.5v4c0 .83-.67 1.5-1.5 1.5S7 18.33 7 17.5v-4c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5Z",
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: "M8.5 12.749c-.41 0-.75-.34-.75-.75v-4.78c0-.41.34-.75.75-.75s.75.34.75.75v4.78c0 .41-.34.75-.75.75ZM8.5 22.75c-.41 0-.75-.34-.75-.75v-3c0-.41.34-.75.75-.75s.75.34.75.75v3c0 .41-.34.75-.75.75ZM15.5 22.749c-.41 0-.75-.34-.75-.75V7.219c0-.41.34-.75.75-.75s.75.34.75.75v14.78c0 .41-.34.75-.75.75Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M8.3 7.85H6.05a.74.74 0 0 1-.67-.42c-.13-.26-.1-.56.07-.79.19-.25.3-.57.3-.9v-.9c0-.32-.11-.64-.3-.9a.752.752 0 0 1-.07-.79.77.77 0 0 1 .67-.42H8.3a2.548 2.548 0 0 1 1.79 4.36c-.46.49-1.1.76-1.79.76Zm-1.11-1.5H8.3c.28 0 .54-.11.73-.3.21-.2.32-.46.32-.75 0-.58-.47-1.05-1.05-1.05H7.19c.04.2.06.4.06.6v.9c0 .2-.02.4-.06.6Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M4.25 8.752c-.66 0-1.54-.21-2.46-1.03-.31-.28-.53-.78-.53-1.22v-2.34c0-.39.18-.85.44-1.12.93-.97 1.89-1.18 2.53-1.19h.03a2.997 2.997 0 0 1 2.41 1.22c.37.49.58 1.13.58 1.78v.9a2.988 2.988 0 0 1-2.7 2.98c-.09.01-.2.02-.3.02Zm0-5.4h-.02c-.51.01-1.01.26-1.46.73 0 0-.02.07-.02.1v2.33c0 .02.03.09.05.12.51.45 1.07.68 1.6.62a1.498 1.498 0 0 0 1.35-1.49v-.9c0-.32-.11-.64-.3-.9-.05-.08-.1-.12-.14-.17-.28-.28-.66-.44-1.06-.44ZM17.95 7.85H15.7c-.69 0-1.33-.27-1.81-.76-.47-.46-.74-1.1-.74-1.79 0-1.41 1.14-2.55 2.55-2.55h2.25c.28 0 .54.16.67.42.13.25.1.56-.07.79-.19.25-.3.57-.3.9v.9c0 .33.11.64.3.9.17.23.2.53.07.79-.12.24-.38.4-.67.4Zm-2.25-3.6c-.58 0-1.05.47-1.05 1.05 0 .28.11.54.3.73.2.21.46.32.75.32h1.11c-.04-.2-.06-.4-.06-.6v-.9c0-.2.02-.4.06-.6H15.7Z",
fill: color
}), /*#__PURE__*/React.createElement("path", {
d: "M19.75 8.75c-.11 0-.21-.01-.31-.01-.83-.08-1.59-.51-2.1-1.18-.39-.51-.6-1.15-.6-1.8v-.9c0-.65.21-1.29.6-1.8.07-.1.17-.22.27-.32.56-.56 1.33-.88 2.12-.88h.03c.64.01 1.6.22 2.53 1.19.26.27.44.73.44 1.12v2.34c0 .44-.22.94-.53 1.21-.91.82-1.79 1.03-2.45 1.03Zm0-5.4c-.4 0-.79.16-1.06.44-.04.04-.08.09-.12.14-.21.28-.32.6-.32.92v.9c0 .33.11.64.3.9.26.34.63.55 1.05.6.53.06 1.09-.17 1.63-.64l.03-.1V4.18c0-.02-.03-.09-.04-.11-.43-.45-.93-.7-1.44-.7-.02-.02-.02-.02-.03-.02ZM8.5 19.75c-1.24 0-2.25-1.01-2.25-2.25v-4c0-1.24 1.01-2.25 2.25-2.25s2.25 1.01 2.25 2.25v4c0 1.24-1.01 2.25-2.25 2.25Zm0-7c-.41 0-.75.34-.75.75v4c0 .41.34.75.75.75s.75-.34.75-.75v-4c0-.41-.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: "M15.5 21.999V7.219",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M10.1 5.3c0 .49-.2.95-.53 1.27-.32.33-.77.53-1.27.53H6.05c.28-.37.45-.85.45-1.35v-.9c0-.5-.17-.98-.45-1.35H8.3c.99 0 1.8.81 1.8 1.8Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M6.5 4.85v.9c0 .5-.17.98-.45 1.35-.76 1.01-2.32 1.35-3.77.06C2.12 7.02 2 6.72 2 6.5V4.16c0-.19.1-.47.23-.61 1.26-1.32 2.78-1.13 3.61-.3.07.07.14.15.21.24.28.38.45.86.45 1.36ZM13.9 5.3c0 .49.2.95.53 1.27.32.33.77.53 1.27.53h2.25c-.28-.37-.45-.85-.45-1.35v-.9c0-.5.17-.98.45-1.35H15.7c-.99 0-1.8.81-1.8 1.8Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("path", {
d: "M17.5 4.85v.9c0 .5.17.98.45 1.35.76 1.01 2.32 1.35 3.77.06.16-.14.28-.44.28-.66V4.16c0-.19-.1-.47-.23-.61-1.26-1.32-2.78-1.13-3.61-.3-.07.07-.14.15-.21.24-.28.38-.45.86-.45 1.36Z",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}), /*#__PURE__*/React.createElement("g", {
opacity: ".4",
stroke: color,
strokeWidth: "1.5",
strokeMiterlimit: "10",
strokeLinecap: "round",
strokeLinejoin: "round"
}, /*#__PURE__*/React.createElement("path", {
d: "M8.5 11.999v-4.78M8.5 22v-3M10 13.5v4c0 .83-.67 1.5-1.5 1.5S7 18.33 7 17.5v-4c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5Z"
})));
};
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 Headphones = /*#__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));
});
Headphones.propTypes = {
variant: PropTypes.oneOf(['Linear', 'Bold', 'Broken', 'Bulk', 'Outline', 'TwoTone']),
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
Headphones.defaultProps = {
variant: 'Linear',
color: 'currentColor',
size: '24'
};
Headphones.displayName = 'Headphones';
export { Headphones as default };