UNPKG

iconsax-react

Version:
170 lines (152 loc) 6.82 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: "M20.89 10.53c-.41 0-.75-.34-.75-.75V6.91L12 2.84 3.86 6.91v2.87c0 .41-.34.75-.75.75s-.75-.34-.75-.75V6.45c0-.28.16-.54.42-.67l8.89-4.44c.21-.11.46-.11.67 0l8.89 4.44c.25.13.42.39.42.67v3.33a.77.77 0 01-.76.75zM12 22.75a.73.73 0 01-.33-.08l-8.89-4.44a.77.77 0 01-.42-.67v-3.33c0-.41.34-.75.75-.75s.75.34.75.75v2.87L12 21.17l8.14-4.07v-2.87c0-.41.34-.75.75-.75s.75.34.75.75v3.33c0 .28-.16.54-.42.67l-8.89 4.44a.73.73 0 01-.33.08z" }), /*#__PURE__*/React.createElement("path", { fill: color, d: "M16.44 11.999c0-2.45-1.99-4.44-4.44-4.44s-4.44 1.99-4.44 4.44c0 2.2 1.61 4.02 3.71 4.37 0 .03-.01.05-.01.07v5.56c0 .41.34.75.75.75s.75-.34.75-.75v-5.56c0-.03-.01-.05-.01-.07a4.43 4.43 0 003.69-4.37z" })); }; var Broken = function Broken(_ref2) { var color = _ref2.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M8.99 3.5 12 2l8.89 4.44v3.34M3.11 9.781v-3.34l1.84-.91M3.11 14.219v3.34l8.89 4.44 8.89-4.44v-3.34M12 22.001v-5.56", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { d: "M12 16.439a4.44 4.44 0 1 0 0-8.88 4.44 4.44 0 0 0 0 8.88Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10" })); }; var Bulk = function Bulk(_ref3) { var color = _ref3.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M20.89 10.529c-.41 0-.75-.34-.75-.75v-2.87L12 2.839l-8.14 4.07v2.87c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-3.34c0-.28.16-.54.42-.67l8.89-4.44c.21-.11.46-.11.67 0l8.89 4.44c.25.13.42.39.42.67v3.33c-.01.42-.35.76-.76.76ZM12 22.75a.73.73 0 0 1-.33-.08l-8.89-4.44a.77.77 0 0 1-.42-.67v-3.33c0-.41.34-.75.75-.75s.75.34.75.75v2.87L12 21.17l8.14-4.07v-2.87c0-.41.34-.75.75-.75s.75.34.75.75v3.33c0 .28-.16.54-.42.67l-8.89 4.44a.73.73 0 0 1-.33.08Z", fill: color }), /*#__PURE__*/React.createElement("path", { opacity: ".4", d: "M16.44 11.999c0-2.45-1.99-4.44-4.44-4.44s-4.44 1.99-4.44 4.44c0 2.2 1.61 4.02 3.71 4.37 0 .03-.01.05-.01.07v5.56c0 .41.34.75.75.75s.75-.34.75-.75v-5.56c0-.03-.01-.05-.01-.07a4.43 4.43 0 0 0 3.69-4.37Z", fill: color })); }; var Linear = function Linear(_ref4) { var color = _ref4.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M3.1 9.8V6.4L12 2l8.9 4.4v3.4M3.1 14.2v3.4L12 22l8.9-4.4v-3.4M12 22v-5.6", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { d: "M12 16.4a4.4 4.4 0 1 0 0-8.8 4.4 4.4 0 0 0 0 8.8Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10" })); }; var Outline = function Outline(_ref5) { var color = _ref5.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M20.89 10.53c-.41 0-.75-.34-.75-.75V6.91L12 2.84 3.86 6.91v2.87c0 .41-.34.75-.75.75s-.75-.34-.75-.75V6.45c0-.28.16-.54.42-.67l8.89-4.44c.21-.11.46-.11.67 0l8.89 4.44c.25.13.42.39.42.67v3.33a.77.77 0 0 1-.76.75ZM12 22.75a.73.73 0 0 1-.33-.08l-8.89-4.44a.77.77 0 0 1-.42-.67v-3.33c0-.41.34-.75.75-.75s.75.34.75.75v2.87L12 21.17l8.14-4.07v-2.87c0-.41.34-.75.75-.75s.75.34.75.75v3.33c0 .28-.16.54-.42.67l-8.89 4.44a.73.73 0 0 1-.33.08Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M12 22.751c-.41 0-.75-.34-.75-.75v-5.56c0-.41.34-.75.75-.75s.75.34.75.75v5.56c0 .41-.34.75-.75.75Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M12 17.189c-2.86 0-5.19-2.33-5.19-5.19 0-2.86 2.33-5.19 5.19-5.19 2.86 0 5.19 2.33 5.19 5.19 0 2.86-2.33 5.19-5.19 5.19Zm0-8.88c-2.04 0-3.69 1.66-3.69 3.69a3.7 3.7 0 0 0 3.69 3.69 3.7 3.7 0 0 0 3.69-3.69c0-2.03-1.65-3.69-3.69-3.69Z", 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: "M3.11 9.78V6.44L12 2l8.89 4.44v3.34", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { d: "M3.11 14.219v3.34l8.89 4.44 8.89-4.44v-3.34M12 22.001v-5.56", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("path", { d: "M12 16.439a4.44 4.44 0 1 0 0-8.88 4.44 4.44 0 0 0 0 8.88Z", stroke: color, strokeWidth: "1.5", strokeMiterlimit: "10" })); }; 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 Ankr = /*#__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)); }); Ankr.propTypes = { variant: PropTypes.oneOf(['Linear', 'Bold', 'Broken', 'Bulk', 'Outline', 'TwoTone']), color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; Ankr.defaultProps = { variant: 'Linear', color: 'currentColor', size: '24' }; Ankr.displayName = 'Ankr'; export { Ankr as default };