UNPKG

iconsax-reactjs

Version:

Iconsax icon pack for React

155 lines (137 loc) 5.67 kB
import { _ as _objectWithoutProperties, a as _extends } from './_rollupPluginBabelHelpers-3bc641ae.js'; import React, { forwardRef } from 'react'; 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 7.811v3.44h-5.25v-9.22c3.3.2 5.25 2.33 5.25 5.78ZM22 12.75v3.44c0 3.45-1.95 5.58-5.25 5.78v-9.22H22ZM7.25 12.75v9.22C3.95 21.77 2 19.64 2 16.19v-3.44h5.25ZM7.25 2.031v9.22H2v-3.44c0-3.45 1.95-5.58 5.25-5.78ZM15.25 2h-6.5v9.25h6.5V2ZM15.25 12.75h-6.5V22h6.5v-9.25Z", fill: color })); }; var Broken = function Broken(_ref2) { var color = _ref2.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M2.52 5.41C2.16 6.38 2 7.57 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9c-1.18 0-2.18.11-3.04.34M2 12h20M8.25 12v6M15.75 22V12M8.25 12V2M15.75 12V2.54", 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: ".4", d: "M22 7.81V12h-6.25V2h.44C19.83 2 22 4.17 22 7.81Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M22 12v4.19c0 3.64-2.17 5.81-5.81 5.81h-.44V12H22ZM8.25 12v10h-.44C4.17 22 2 19.83 2 16.19V12h6.25Z", fill: color }), /*#__PURE__*/React.createElement("path", { opacity: ".4", d: "M7.81 2C4.17 2 2 4.17 2 7.81V12h6.25V2h-.44Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M15.75 2h-7.5v10h7.5V2Z", fill: color }), /*#__PURE__*/React.createElement("path", { opacity: ".4", d: "M15.75 12h-7.5v10h7.5V12Z", fill: color })); }; var Linear = function Linear(_ref4) { var color = _ref4.color; return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", { d: "M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2 12h20M8.25 12v9.5M15.75 22V12M8.25 12V2M15.75 12V2.54", 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: "M15 22.75H9c-5.43 0-7.75-2.32-7.75-7.75V9c0-5.43 2.32-7.75 7.75-7.75h6c5.43 0 7.75 2.32 7.75 7.75v6c0 5.43-2.32 7.75-7.75 7.75Zm-6-20C4.39 2.75 2.75 4.39 2.75 9v6c0 4.61 1.64 6.25 6.25 6.25h6c4.61 0 6.25-1.64 6.25-6.25V9c0-4.61-1.64-6.25-6.25-6.25H9Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M22 12.75H2c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h20c.41 0 .75.34.75.75s-.34.75-.75.75Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M8.25 22.25c-.41 0-.75-.34-.75-.75V12c0-.41.34-.75.75-.75s.75.34.75.75v9.5c0 .41-.34.75-.75.75ZM15.75 22.75c-.41 0-.75-.34-.75-.75V12c0-.41.34-.75.75-.75s.75.34.75.75v10c0 .41-.34.75-.75.75Z", fill: color }), /*#__PURE__*/React.createElement("path", { d: "M8.25 12.75c-.41 0-.75-.34-.75-.75V2c0-.41.34-.75.75-.75S9 1.59 9 2v10c0 .41-.34.75-.75.75ZM15.75 12.75c-.41 0-.75-.34-.75-.75V2.54c0-.41.34-.75.75-.75s.75.34.75.75V12c0 .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", { d: "M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), /*#__PURE__*/React.createElement("g", { opacity: ".4", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, /*#__PURE__*/React.createElement("path", { d: "M2 12h20M8.25 12v9.5M15.75 22V12M8.25 12V2M15.75 12V2.54" }))); }; 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 Grid8 = /*#__PURE__*/forwardRef(function (_ref7, ref) { var _ref7$variant = _ref7.variant, variant = _ref7$variant === void 0 ? 'Linear' : _ref7$variant, _ref7$color = _ref7.color, color = _ref7$color === void 0 ? 'currentColor' : _ref7$color, _ref7$size = _ref7.size, size = _ref7$size === void 0 ? '24' : _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)); }); Grid8.displayName = 'Grid8'; export { Grid8 as default };