UNPKG

ivt

Version:

Ivt Components Library

1 lines 4.67 kB
{"version":3,"file":"createLucideIcon-D1jKv6AP.mjs","sources":["../../node_modules/lucide-react/dist/esm/shared/src/utils.js","../../node_modules/lucide-react/dist/esm/defaultAttributes.js","../../node_modules/lucide-react/dist/esm/Icon.js","../../node_modules/lucide-react/dist/esm/createLucideIcon.js"],"sourcesContent":["/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nconst toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\nconst mergeClasses = (...classes) => classes.filter((className, index, array) => {\n return Boolean(className) && className.trim() !== \"\" && array.indexOf(className) === index;\n}).join(\" \").trim();\n\nexport { mergeClasses, toKebabCase };\n//# sourceMappingURL=utils.js.map\n","/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nvar defaultAttributes = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n stroke: \"currentColor\",\n strokeWidth: 2,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n};\n\nexport { defaultAttributes as default };\n//# sourceMappingURL=defaultAttributes.js.map\n","/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport defaultAttributes from './defaultAttributes.js';\nimport { mergeClasses } from './shared/src/utils.js';\n\nconst Icon = forwardRef(\n ({\n color = \"currentColor\",\n size = 24,\n strokeWidth = 2,\n absoluteStrokeWidth,\n className = \"\",\n children,\n iconNode,\n ...rest\n }, ref) => {\n return createElement(\n \"svg\",\n {\n ref,\n ...defaultAttributes,\n width: size,\n height: size,\n stroke: color,\n strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,\n className: mergeClasses(\"lucide\", className),\n ...rest\n },\n [\n ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),\n ...Array.isArray(children) ? children : [children]\n ]\n );\n }\n);\n\nexport { Icon as default };\n//# sourceMappingURL=Icon.js.map\n","/**\n * @license lucide-react v0.479.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport { forwardRef, createElement } from 'react';\nimport { mergeClasses, toKebabCase } from './shared/src/utils.js';\nimport Icon from './Icon.js';\n\nconst createLucideIcon = (iconName, iconNode) => {\n const Component = forwardRef(\n ({ className, ...props }, ref) => createElement(Icon, {\n ref,\n iconNode,\n className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),\n ...props\n })\n );\n Component.displayName = `${iconName}`;\n return Component;\n};\n\nexport { createLucideIcon as default };\n//# sourceMappingURL=createLucideIcon.js.map\n"],"names":["mergeClasses","classes","filter","className","index","array","Boolean","trim","indexOf","join","defaultAttributes","xmlns","width","height","viewBox","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","Icon","forwardRef","color","size","absoluteStrokeWidth","children","iconNode","rest","ref","createElement","Number","map","tag","attrs","Array","isArray","createLucideIcon","iconName","Component","props","string","replace","toLowerCase","displayName"],"mappings":"sDAQa,MAgCAA,EAAe,IAA2CC,IACrEA,EACGC,OAAO,CAACC,EAAWC,EAAOC,IAEvBC,QAAQH,IACyB,KAAhCA,EAAqBI,QACtBF,EAAMG,QAAQL,KAAeC,GAGhCK,KAAK,KACLF,OClDL,IAAeG,EAAA,CACbC,MAAO,6BACPC,MAAO,GACPC,OAAQ,GACRC,QAAS,YACTC,KAAM,OACNC,OAAQ,eACRC,YAAa,EACbC,cAAe,QACfC,eAAgB,SCelB,MAAMC,EAAOC,EAAA,EAGPC,QAAQ,eACRC,OAAO,GACPN,cAAc,EACdO,sBACArB,YAAY,GACZsB,WACAC,cACGC,GAELC,IAEOC,EAAA,MAEL,CACED,SACGlB,EACHE,MAAOW,EACPV,OAAQU,EACRP,OAAQM,EACRL,YAAaO,EAA6C,GAAtBM,OAAOb,GAAqBa,OAAOP,GAAQN,EAC/Ed,UAAWH,EAAa,SAAUG,MAC/BwB,GAEL,IACKD,EAASK,IAAI,EAAEC,EAAKC,KAAWJ,EAAcG,EAAKC,OACjDC,MAAMC,QAAQV,GAAYA,EAAW,CAACA,MCzC5CW,EAAmB,CAACC,EAAkBX,KAC1C,MAAMY,EAAYjB,EAAA,EAA0ClB,eAAcoC,GAASX,KACjFC,SAAcT,EAAM,CAClBQ,MACAF,WACAvB,UAAWH,EAAa,UHRFwC,EGQwBH,EHPlDG,EAAOC,QAAQ,qBAAsB,SAASC,gBGOiBvC,MACxDoC,IHTkB,IAACC,IGenB,OAFGF,EAAAK,YAAc,GAAGN,IAEpBC","x_google_ignoreList":[0,1,2,3]}