@purr-react-tailwindcss/components.icon 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2 -0
- package/package.json +3 -3
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var Do=require('clsx'),i=require('react'),utils_helpers=require('@purr-core/utils.helpers');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Do__default=/*#__PURE__*/_interopDefault(Do);var i__default=/*#__PURE__*/_interopDefault(i);var Uo=Object.defineProperty;var j=o=>r=>{var s=o[r];if(s)return s();throw new Error("Module not found in bundle: "+r)};var n=(o,r)=>()=>(o&&(r=o(o=0)),r);var t=(o,r)=>{for(var s in r)Uo(o,s,{get:r[s],enumerable:true});};var W={};t(W,{IconAnchor:()=>Eo});var Eo,y=n(()=>{Eo=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M12 22V8"}),i__default.default.createElement("path",{d:"M5 12H2a10 10 0 0 0 20 0h-3"}),i__default.default.createElement("circle",{cx:"12",cy:"5",r:"3"}));});var H={};t(H,{IconArrowDown:()=>Fo});var Fo,z=n(()=>{Fo=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M12 5v14"}),i__default.default.createElement("path",{d:"m19 12-7 7-7-7"}));});var V={};t(V,{IconArrowLeft:()=>Jo});var Jo,A=n(()=>{Jo=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m12 19-7-7 7-7"}),i__default.default.createElement("path",{d:"M19 12H5"}));});var b={};t(b,{IconArrowRight:()=>qo});var qo,U=n(()=>{qo=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M5 12h14"}),i__default.default.createElement("path",{d:"m12 5 7 7-7 7"}));});var D={};t(D,{IconArrowUp:()=>Oo});var Oo,E=n(()=>{Oo=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m5 12 7-7 7 7"}),i__default.default.createElement("path",{d:"M12 19V5"}));});var T={};t(T,{IconBomb:()=>Yo});var Yo,F=n(()=>{Yo=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i__default.default.createElement("path",{d:"M15.349 5.349l3.301 3.301a1.2 1.2 0 0 1 0 1.698l-.972 .972a7.5 7.5 0 1 1 -5 -5l.972 -.972a1.2 1.2 0 0 1 1.698 0z"}),i__default.default.createElement("path",{d:"M17 7l1.293 -1.293a2.414 2.414 0 0 0 .707 -1.707a1 1 0 0 1 1 -1h1"}),i__default.default.createElement("path",{d:"M7 13a3 3 0 0 1 3 -3"}));});var J={};t(J,{IconBookmark:()=>_o});var _o,X=n(()=>{_o=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"}));});var K={};t(K,{IconChevronDown:()=>or});var or,O=n(()=>{or=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m6 9 6 6 6-6"}));});var Y={};t(Y,{IconChevronLeft:()=>nr});var nr,Z=n(()=>{nr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m15 18-6-6 6-6"}));});var R={};t(R,{IconChevronRight:()=>ir});var ir,oo=n(()=>{ir=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m9 18 6-6-6-6"}));});var no={};t(no,{IconChevronUp:()=>er});var er,to=n(()=>{er=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"m18 15-6-6-6 6"}));});var io={};t(io,{IconContact:()=>pr});var pr,so=n(()=>{pr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2"}),i__default.default.createElement("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),i__default.default.createElement("circle",{cx:"12",cy:"10",r:"2"}),i__default.default.createElement("line",{x1:"8",x2:"8",y1:"2",y2:"4"}),i__default.default.createElement("line",{x1:"16",x2:"16",y1:"2",y2:"4"}));});var eo={};t(eo,{IconCopy:()=>fr});var fr,co=n(()=>{fr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),i__default.default.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}));});var po={};t(po,{IconExternalLink:()=>hr});var hr,lo=n(()=>{hr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M15 3h6v6"}),i__default.default.createElement("path",{d:"M10 14 21 3"}),i__default.default.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}));});var mo={};t(mo,{IconFacebook:()=>wr});var wr,ho=n(()=>{wr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}));});var go={};t(go,{IconGitHub:()=>Ir});var Ir,wo=n(()=>{Ir=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),i__default.default.createElement("path",{d:"M9 18c-4.51 2-5-2-7-2"}));});var Io={};t(Io,{IconInfo:()=>ar});var ar,vo=n(()=>{ar=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("circle",{cx:"12",cy:"12",r:"10"}),i__default.default.createElement("path",{d:"M12 16v-4"}),i__default.default.createElement("path",{d:"M12 8h.01"}));});var ao={};t(ao,{IconLinkedIn:()=>ur});var ur,xo=n(()=>{ur=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),i__default.default.createElement("rect",{width:"4",height:"12",x:"2",y:"9"}),i__default.default.createElement("circle",{cx:"4",cy:"4",r:"2"}));});var uo={};t(uo,{IconLoader2:()=>Sr});var Sr,ko=n(()=>{Sr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i__default.default.createElement("path",{d:"M12 3a9 9 0 1 0 9 9"}));});var So={};t(So,{IconReactJs:()=>Pr});var Pr,Lo=n(()=>{Pr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i__default.default.createElement("path",{d:"M6.306 8.711c-2.602 .723 -4.306 1.926 -4.306 3.289c0 2.21 4.477 4 10 4c.773 0 1.526 -.035 2.248 -.102"}),i__default.default.createElement("path",{d:"M17.692 15.289c2.603 -.722 4.308 -1.926 4.308 -3.289c0 -2.21 -4.477 -4 -10 -4c-.773 0 -1.526 .035 -2.25 .102"}),i__default.default.createElement("path",{d:"M6.305 15.287c-.676 2.615 -.485 4.693 .695 5.373c1.913 1.105 5.703 -1.877 8.464 -6.66c.387 -.67 .733 -1.339 1.036 -2"}),i__default.default.createElement("path",{d:"M17.694 8.716c.677 -2.616 .487 -4.696 -.694 -5.376c-1.913 -1.105 -5.703 1.877 -8.464 6.66c-.387 .67 -.733 1.34 -1.037 2"}),i__default.default.createElement("path",{d:"M12 5.424c-1.925 -1.892 -3.82 -2.766 -5 -2.084c-1.913 1.104 -1.226 5.877 1.536 10.66c.386 .67 .793 1.304 1.212 1.896"}),i__default.default.createElement("path",{d:"M12 18.574c1.926 1.893 3.821 2.768 5 2.086c1.913 -1.104 1.226 -5.877 -1.536 -10.66c-.375 -.65 -.78 -1.283 -1.212 -1.897"}),i__default.default.createElement("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"}));});var Po={};t(Po,{IconRss:()=>Cr});var Cr,Mo=n(()=>{Cr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M4 11a9 9 0 0 1 9 9"}),i__default.default.createElement("path",{d:"M4 4a16 16 0 0 1 16 16"}),i__default.default.createElement("circle",{cx:"5",cy:"19",r:"1"}));});var Co={};t(Co,{IconSave:()=>Br});var Br,$o=n(()=>{Br=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),i__default.default.createElement("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),i__default.default.createElement("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}));});var Bo={};t(Bo,{IconScript:()=>jr});var jr,No=n(()=>{jr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i__default.default.createElement("path",{d:"M17 20h-11a3 3 0 0 1 0 -6h11a3 3 0 0 0 0 6h1a3 3 0 0 0 3 -3v-11a2 2 0 0 0 -2 -2h-10a2 2 0 0 0 -2 2v8"}));});var jo={};t(jo,{IconSettings:()=>yr});var yr,Wo=n(()=>{yr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),i__default.default.createElement("circle",{cx:"12",cy:"12",r:"3"}));});var yo={};t(yo,{IconUpwork:()=>zr});var zr,Ho=n(()=>{zr=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i__default.default.createElement("path",{d:"M3 7v5a3 3 0 0 0 6 0v-5h1l4 6c.824 1.319 1.945 2 3.5 2a3.5 3.5 0 0 0 0 -7c-2.027 0 -3.137 1 -3.5 3c-.242 1.33 -.908 4 -2 8"}));});var zo={};t(zo,{IconUserSearch:()=>Ar});var Ar,Vo=n(()=>{Ar=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("circle",{cx:"10",cy:"7",r:"4"}),i__default.default.createElement("path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2"}),i__default.default.createElement("circle",{cx:"17",cy:"17",r:"3"}),i__default.default.createElement("path",{d:"m21 21-1.9-1.9"}));});var Ao={};t(Ao,{IconX:()=>Ur});var Ur,bo=n(()=>{Ur=({name:o,htmlAttributes:r})=>i__default.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do__default.default("icon",`icon--${o}`),...r},i__default.default.createElement("path",{d:"M18 6 6 18"}),i__default.default.createElement("path",{d:"m6 6 12 12"}));});var Dr=j({"./icons/_anchor.tsx":()=>Promise.resolve().then(()=>(y(),W)),"./icons/_arrow-down.tsx":()=>Promise.resolve().then(()=>(z(),H)),"./icons/_arrow-left.tsx":()=>Promise.resolve().then(()=>(A(),V)),"./icons/_arrow-right.tsx":()=>Promise.resolve().then(()=>(U(),b)),"./icons/_arrow-up.tsx":()=>Promise.resolve().then(()=>(E(),D)),"./icons/_bomb.tsx":()=>Promise.resolve().then(()=>(F(),T)),"./icons/_bookmark.tsx":()=>Promise.resolve().then(()=>(X(),J)),"./icons/_chevron-down.tsx":()=>Promise.resolve().then(()=>(O(),K)),"./icons/_chevron-left.tsx":()=>Promise.resolve().then(()=>(Z(),Y)),"./icons/_chevron-right.tsx":()=>Promise.resolve().then(()=>(oo(),R)),"./icons/_chevron-up.tsx":()=>Promise.resolve().then(()=>(to(),no)),"./icons/_contact.tsx":()=>Promise.resolve().then(()=>(so(),io)),"./icons/_copy.tsx":()=>Promise.resolve().then(()=>(co(),eo)),"./icons/_external-link.tsx":()=>Promise.resolve().then(()=>(lo(),po)),"./icons/_facebook.tsx":()=>Promise.resolve().then(()=>(ho(),mo)),"./icons/_git-hub.tsx":()=>Promise.resolve().then(()=>(wo(),go)),"./icons/_info.tsx":()=>Promise.resolve().then(()=>(vo(),Io)),"./icons/_linked-in.tsx":()=>Promise.resolve().then(()=>(xo(),ao)),"./icons/_loader-2.tsx":()=>Promise.resolve().then(()=>(ko(),uo)),"./icons/_react-js.tsx":()=>Promise.resolve().then(()=>(Lo(),So)),"./icons/_rss.tsx":()=>Promise.resolve().then(()=>(Mo(),Po)),"./icons/_save.tsx":()=>Promise.resolve().then(()=>($o(),Co)),"./icons/_script.tsx":()=>Promise.resolve().then(()=>(No(),Bo)),"./icons/_settings.tsx":()=>Promise.resolve().then(()=>(Wo(),jo)),"./icons/_upwork.tsx":()=>Promise.resolve().then(()=>(Ho(),yo)),"./icons/_user-search.tsx":()=>Promise.resolve().then(()=>(Vo(),zo)),"./icons/_x.tsx":()=>Promise.resolve().then(()=>(bo(),Ao))});var Zn=({name:o,isSpaceReserved:r,htmlAttributes:s})=>{let[B,N]=i.useState(null);return i.useEffect(()=>{N(null),Dr(`./icons/_${o}.tsx`).then(d=>{N(()=>d[`Icon${utils_helpers.toCamelCase(o)}`]);}).catch(d=>console.error(`\u{1F50D} Icon not found: ${o}`,d));},[o]),B?i__default.default.createElement(i.Suspense,null,i__default.default.createElement(B,{name:o,htmlAttributes:s})):r?i__default.default.createElement("span",{className:"h-6 w-6"}):null};
|
|
2
|
+
exports.Icon=Zn;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { SVGProps } from 'react';
|
|
2
|
+
import { IExtendable } from '@purr-core/utils.definitions';
|
|
3
|
+
|
|
4
|
+
type TIconName = "anchor" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "bomb" | "bookmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "contact" | "copy" | "external-link" | "facebook" | "git-hub" | "info" | "linked-in" | "loader-2" | "react-js" | "rss" | "save" | "settings" | "upwork" | "user-search" | "x";
|
|
5
|
+
interface ISingleIconProps {
|
|
6
|
+
name: TIconName;
|
|
7
|
+
htmlAttributes?: SVGProps<SVGSVGElement> & IExtendable;
|
|
8
|
+
}
|
|
9
|
+
interface IIconProps extends ISingleIconProps {
|
|
10
|
+
isSpaceReserved?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const Icon: ({ name, isSpaceReserved, htmlAttributes }: IIconProps) => React.JSX.Element | null;
|
|
14
|
+
|
|
15
|
+
export { type IIconProps, type ISingleIconProps, Icon, type TIconName };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { SVGProps } from 'react';
|
|
2
|
+
import { IExtendable } from '@purr-core/utils.definitions';
|
|
3
|
+
|
|
4
|
+
type TIconName = "anchor" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "bomb" | "bookmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "contact" | "copy" | "external-link" | "facebook" | "git-hub" | "info" | "linked-in" | "loader-2" | "react-js" | "rss" | "save" | "settings" | "upwork" | "user-search" | "x";
|
|
5
|
+
interface ISingleIconProps {
|
|
6
|
+
name: TIconName;
|
|
7
|
+
htmlAttributes?: SVGProps<SVGSVGElement> & IExtendable;
|
|
8
|
+
}
|
|
9
|
+
interface IIconProps extends ISingleIconProps {
|
|
10
|
+
isSpaceReserved?: boolean;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const Icon: ({ name, isSpaceReserved, htmlAttributes }: IIconProps) => React.JSX.Element | null;
|
|
14
|
+
|
|
15
|
+
export { type IIconProps, type ISingleIconProps, Icon, type TIconName };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import Do from'clsx';import i,{useState,useEffect,Suspense}from'react';import {toCamelCase}from'@purr-core/utils.helpers';var Uo=Object.defineProperty;var j=o=>r=>{var s=o[r];if(s)return s();throw new Error("Module not found in bundle: "+r)};var n=(o,r)=>()=>(o&&(r=o(o=0)),r);var t=(o,r)=>{for(var s in r)Uo(o,s,{get:r[s],enumerable:true});};var W={};t(W,{IconAnchor:()=>Eo});var Eo,y=n(()=>{Eo=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M12 22V8"}),i.createElement("path",{d:"M5 12H2a10 10 0 0 0 20 0h-3"}),i.createElement("circle",{cx:"12",cy:"5",r:"3"}));});var H={};t(H,{IconArrowDown:()=>Fo});var Fo,z=n(()=>{Fo=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M12 5v14"}),i.createElement("path",{d:"m19 12-7 7-7-7"}));});var V={};t(V,{IconArrowLeft:()=>Jo});var Jo,A=n(()=>{Jo=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m12 19-7-7 7-7"}),i.createElement("path",{d:"M19 12H5"}));});var b={};t(b,{IconArrowRight:()=>qo});var qo,U=n(()=>{qo=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M5 12h14"}),i.createElement("path",{d:"m12 5 7 7-7 7"}));});var D={};t(D,{IconArrowUp:()=>Oo});var Oo,E=n(()=>{Oo=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m5 12 7-7 7 7"}),i.createElement("path",{d:"M12 19V5"}));});var T={};t(T,{IconBomb:()=>Yo});var Yo,F=n(()=>{Yo=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M15.349 5.349l3.301 3.301a1.2 1.2 0 0 1 0 1.698l-.972 .972a7.5 7.5 0 1 1 -5 -5l.972 -.972a1.2 1.2 0 0 1 1.698 0z"}),i.createElement("path",{d:"M17 7l1.293 -1.293a2.414 2.414 0 0 0 .707 -1.707a1 1 0 0 1 1 -1h1"}),i.createElement("path",{d:"M7 13a3 3 0 0 1 3 -3"}));});var J={};t(J,{IconBookmark:()=>_o});var _o,X=n(()=>{_o=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"}));});var K={};t(K,{IconChevronDown:()=>or});var or,O=n(()=>{or=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m6 9 6 6 6-6"}));});var Y={};t(Y,{IconChevronLeft:()=>nr});var nr,Z=n(()=>{nr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m15 18-6-6 6-6"}));});var R={};t(R,{IconChevronRight:()=>ir});var ir,oo=n(()=>{ir=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m9 18 6-6-6-6"}));});var no={};t(no,{IconChevronUp:()=>er});var er,to=n(()=>{er=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"m18 15-6-6-6 6"}));});var io={};t(io,{IconContact:()=>pr});var pr,so=n(()=>{pr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2"}),i.createElement("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),i.createElement("circle",{cx:"12",cy:"10",r:"2"}),i.createElement("line",{x1:"8",x2:"8",y1:"2",y2:"4"}),i.createElement("line",{x1:"16",x2:"16",y1:"2",y2:"4"}));});var eo={};t(eo,{IconCopy:()=>fr});var fr,co=n(()=>{fr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),i.createElement("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}));});var po={};t(po,{IconExternalLink:()=>hr});var hr,lo=n(()=>{hr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M15 3h6v6"}),i.createElement("path",{d:"M10 14 21 3"}),i.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}));});var mo={};t(mo,{IconFacebook:()=>wr});var wr,ho=n(()=>{wr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}));});var go={};t(go,{IconGitHub:()=>Ir});var Ir,wo=n(()=>{Ir=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),i.createElement("path",{d:"M9 18c-4.51 2-5-2-7-2"}));});var Io={};t(Io,{IconInfo:()=>ar});var ar,vo=n(()=>{ar=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("circle",{cx:"12",cy:"12",r:"10"}),i.createElement("path",{d:"M12 16v-4"}),i.createElement("path",{d:"M12 8h.01"}));});var ao={};t(ao,{IconLinkedIn:()=>ur});var ur,xo=n(()=>{ur=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),i.createElement("rect",{width:"4",height:"12",x:"2",y:"9"}),i.createElement("circle",{cx:"4",cy:"4",r:"2"}));});var uo={};t(uo,{IconLoader2:()=>Sr});var Sr,ko=n(()=>{Sr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),i.createElement("path",{d:"M12 3a9 9 0 1 0 9 9"}));});var So={};t(So,{IconReactJs:()=>Pr});var Pr,Lo=n(()=>{Pr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M6.306 8.711c-2.602 .723 -4.306 1.926 -4.306 3.289c0 2.21 4.477 4 10 4c.773 0 1.526 -.035 2.248 -.102"}),i.createElement("path",{d:"M17.692 15.289c2.603 -.722 4.308 -1.926 4.308 -3.289c0 -2.21 -4.477 -4 -10 -4c-.773 0 -1.526 .035 -2.25 .102"}),i.createElement("path",{d:"M6.305 15.287c-.676 2.615 -.485 4.693 .695 5.373c1.913 1.105 5.703 -1.877 8.464 -6.66c.387 -.67 .733 -1.339 1.036 -2"}),i.createElement("path",{d:"M17.694 8.716c.677 -2.616 .487 -4.696 -.694 -5.376c-1.913 -1.105 -5.703 1.877 -8.464 6.66c-.387 .67 -.733 1.34 -1.037 2"}),i.createElement("path",{d:"M12 5.424c-1.925 -1.892 -3.82 -2.766 -5 -2.084c-1.913 1.104 -1.226 5.877 1.536 10.66c.386 .67 .793 1.304 1.212 1.896"}),i.createElement("path",{d:"M12 18.574c1.926 1.893 3.821 2.768 5 2.086c1.913 -1.104 1.226 -5.877 -1.536 -10.66c-.375 -.65 -.78 -1.283 -1.212 -1.897"}),i.createElement("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"}));});var Po={};t(Po,{IconRss:()=>Cr});var Cr,Mo=n(()=>{Cr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M4 11a9 9 0 0 1 9 9"}),i.createElement("path",{d:"M4 4a16 16 0 0 1 16 16"}),i.createElement("circle",{cx:"5",cy:"19",r:"1"}));});var Co={};t(Co,{IconSave:()=>Br});var Br,$o=n(()=>{Br=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}),i.createElement("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),i.createElement("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}));});var Bo={};t(Bo,{IconScript:()=>jr});var jr,No=n(()=>{jr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M17 20h-11a3 3 0 0 1 0 -6h11a3 3 0 0 0 0 6h1a3 3 0 0 0 3 -3v-11a2 2 0 0 0 -2 -2h-10a2 2 0 0 0 -2 2v8"}));});var jo={};t(jo,{IconSettings:()=>yr});var yr,Wo=n(()=>{yr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),i.createElement("circle",{cx:"12",cy:"12",r:"3"}));});var yo={};t(yo,{IconUpwork:()=>zr});var zr,Ho=n(()=>{zr=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),i.createElement("path",{d:"M3 7v5a3 3 0 0 0 6 0v-5h1l4 6c.824 1.319 1.945 2 3.5 2a3.5 3.5 0 0 0 0 -7c-2.027 0 -3.137 1 -3.5 3c-.242 1.33 -.908 4 -2 8"}));});var zo={};t(zo,{IconUserSearch:()=>Ar});var Ar,Vo=n(()=>{Ar=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("circle",{cx:"10",cy:"7",r:"4"}),i.createElement("path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2"}),i.createElement("circle",{cx:"17",cy:"17",r:"3"}),i.createElement("path",{d:"m21 21-1.9-1.9"}));});var Ao={};t(Ao,{IconX:()=>Ur});var Ur,bo=n(()=>{Ur=({name:o,htmlAttributes:r})=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",color:"#ffffff",className:Do("icon",`icon--${o}`),...r},i.createElement("path",{d:"M18 6 6 18"}),i.createElement("path",{d:"m6 6 12 12"}));});var Dr=j({"./icons/_anchor.tsx":()=>Promise.resolve().then(()=>(y(),W)),"./icons/_arrow-down.tsx":()=>Promise.resolve().then(()=>(z(),H)),"./icons/_arrow-left.tsx":()=>Promise.resolve().then(()=>(A(),V)),"./icons/_arrow-right.tsx":()=>Promise.resolve().then(()=>(U(),b)),"./icons/_arrow-up.tsx":()=>Promise.resolve().then(()=>(E(),D)),"./icons/_bomb.tsx":()=>Promise.resolve().then(()=>(F(),T)),"./icons/_bookmark.tsx":()=>Promise.resolve().then(()=>(X(),J)),"./icons/_chevron-down.tsx":()=>Promise.resolve().then(()=>(O(),K)),"./icons/_chevron-left.tsx":()=>Promise.resolve().then(()=>(Z(),Y)),"./icons/_chevron-right.tsx":()=>Promise.resolve().then(()=>(oo(),R)),"./icons/_chevron-up.tsx":()=>Promise.resolve().then(()=>(to(),no)),"./icons/_contact.tsx":()=>Promise.resolve().then(()=>(so(),io)),"./icons/_copy.tsx":()=>Promise.resolve().then(()=>(co(),eo)),"./icons/_external-link.tsx":()=>Promise.resolve().then(()=>(lo(),po)),"./icons/_facebook.tsx":()=>Promise.resolve().then(()=>(ho(),mo)),"./icons/_git-hub.tsx":()=>Promise.resolve().then(()=>(wo(),go)),"./icons/_info.tsx":()=>Promise.resolve().then(()=>(vo(),Io)),"./icons/_linked-in.tsx":()=>Promise.resolve().then(()=>(xo(),ao)),"./icons/_loader-2.tsx":()=>Promise.resolve().then(()=>(ko(),uo)),"./icons/_react-js.tsx":()=>Promise.resolve().then(()=>(Lo(),So)),"./icons/_rss.tsx":()=>Promise.resolve().then(()=>(Mo(),Po)),"./icons/_save.tsx":()=>Promise.resolve().then(()=>($o(),Co)),"./icons/_script.tsx":()=>Promise.resolve().then(()=>(No(),Bo)),"./icons/_settings.tsx":()=>Promise.resolve().then(()=>(Wo(),jo)),"./icons/_upwork.tsx":()=>Promise.resolve().then(()=>(Ho(),yo)),"./icons/_user-search.tsx":()=>Promise.resolve().then(()=>(Vo(),zo)),"./icons/_x.tsx":()=>Promise.resolve().then(()=>(bo(),Ao))});var Zn=({name:o,isSpaceReserved:r,htmlAttributes:s})=>{let[B,N]=useState(null);return useEffect(()=>{N(null),Dr(`./icons/_${o}.tsx`).then(d=>{N(()=>d[`Icon${toCamelCase(o)}`]);}).catch(d=>console.error(`\u{1F50D} Icon not found: ${o}`,d));},[o]),B?i.createElement(Suspense,null,i.createElement(B,{name:o,htmlAttributes:s})):r?i.createElement("span",{className:"h-6 w-6"}):null};
|
|
2
|
+
export{Zn as Icon};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purr-react-tailwindcss/components.icon",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"typescript": "*",
|
|
25
25
|
"react": "*",
|
|
26
26
|
"clsx": "*",
|
|
27
|
-
"@purr-core/utils.definitions": "0.0.
|
|
28
|
-
"@purr-core/utils.helpers": "0.0.
|
|
27
|
+
"@purr-core/utils.definitions": "0.0.12",
|
|
28
|
+
"@purr-core/utils.helpers": "0.0.12"
|
|
29
29
|
},
|
|
30
30
|
"author": "@DinhThienPhuc",
|
|
31
31
|
"license": "ISC",
|