@purr-react-styled-components/components.icon 0.0.8 → 0.0.9

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 ADDED
@@ -0,0 +1,2 @@
1
+ 'use strict';var To=require('clsx'),p=require('react'),utils_helpers=require('@purr-core/utils.helpers'),components_loadingEllipsis=require('@purr-react-styled-components/components.loading-ellipsis');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var To__default=/*#__PURE__*/_interopDefault(To);var p__default=/*#__PURE__*/_interopDefault(p);var Do=Object.defineProperty;var y=o=>r=>{var n=o[r];if(n)return n();throw new Error("Module not found in bundle: "+r)};var e=(o,r)=>()=>(o&&(r=o(o=0)),r);var c=(o,r)=>{for(var n in r)Do(o,n,{get:r[n],enumerable:true});};var H={};c(H,{IconAnchor:()=>Fo});var Fo,z=e(()=>{Fo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M12 22V8"}),p__default.default.createElement("path",{d:"M5 12H2a10 10 0 0 0 20 0h-3"}),p__default.default.createElement("circle",{cx:"12",cy:"5",r:"3"}));});var V={};c(V,{IconArrowDown:()=>Jo});var Jo,A=e(()=>{Jo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M12 5v14"}),p__default.default.createElement("path",{d:"m19 12-7 7-7-7"}));});var b={};c(b,{IconArrowLeft:()=>qo});var qo,U=e(()=>{qo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m12 19-7-7 7-7"}),p__default.default.createElement("path",{d:"M19 12H5"}));});var E={};c(E,{IconArrowRight:()=>Oo});var Oo,D=e(()=>{Oo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M5 12h14"}),p__default.default.createElement("path",{d:"m12 5 7 7-7 7"}));});var T={};c(T,{IconArrowUp:()=>Yo});var Yo,F=e(()=>{Yo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m5 12 7-7 7 7"}),p__default.default.createElement("path",{d:"M12 19V5"}));});var G={};c(G,{IconBomb:()=>_o});var _o,J=e(()=>{_o=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p__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"}),p__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"}),p__default.default.createElement("path",{d:"M7 13a3 3 0 0 1 3 -3"}));});var q={};c(q,{IconBookmark:()=>or});var or,K=e(()=>{or=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"}));});var Q={};c(Q,{IconChevronDown:()=>nr});var nr,Y=e(()=>{nr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m6 9 6 6 6-6"}));});var _={};c(_,{IconChevronLeft:()=>ir});var ir,R=e(()=>{ir=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m15 18-6-6 6-6"}));});var ro={};c(ro,{IconChevronRight:()=>er});var er,no=e(()=>{er=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m9 18 6-6-6-6"}));});var io={};c(io,{IconChevronUp:()=>pr});var pr,so=e(()=>{pr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"m18 15-6-6-6 6"}));});var eo={};c(eo,{IconContact:()=>mr});var mr,co=e(()=>{mr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2"}),p__default.default.createElement("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),p__default.default.createElement("circle",{cx:"12",cy:"10",r:"2"}),p__default.default.createElement("line",{x1:"8",x2:"8",y1:"2",y2:"4"}),p__default.default.createElement("line",{x1:"16",x2:"16",y1:"2",y2:"4"}));});var po={};c(po,{IconCopy:()=>gr});var gr,lo=e(()=>{gr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),p__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 mo={};c(mo,{IconExternalLink:()=>dr});var dr,ho=e(()=>{dr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M15 3h6v6"}),p__default.default.createElement("path",{d:"M10 14 21 3"}),p__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 wo={};c(wo,{IconFacebook:()=>ur});var ur,Io=e(()=>{ur=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}));});var uo={};c(uo,{IconGitHub:()=>ar});var ar,vo=e(()=>{ar=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__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"}),p__default.default.createElement("path",{d:"M9 18c-4.51 2-5-2-7-2"}));});var ao={};c(ao,{IconInfo:()=>fr});var fr,xo=e(()=>{fr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("circle",{cx:"12",cy:"12",r:"10"}),p__default.default.createElement("path",{d:"M12 16v-4"}),p__default.default.createElement("path",{d:"M12 8h.01"}));});var fo={};c(fo,{IconLinkedIn:()=>Sr});var Sr,ko=e(()=>{Sr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__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"}),p__default.default.createElement("rect",{width:"4",height:"12",x:"2",y:"9"}),p__default.default.createElement("circle",{cx:"4",cy:"4",r:"2"}));});var So={};c(So,{IconReactJs:()=>Pr});var Pr,Lo=e(()=>{Pr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p__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"}),p__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"}),p__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"}),p__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"}),p__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"}),p__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"}),p__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={};c(Po,{IconRss:()=>Cr});var Cr,Mo=e(()=>{Cr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M4 11a9 9 0 0 1 9 9"}),p__default.default.createElement("path",{d:"M4 4a16 16 0 0 1 16 16"}),p__default.default.createElement("circle",{cx:"5",cy:"19",r:"1"}));});var Co={};c(Co,{IconSave:()=>Br});var Br,$o=e(()=>{Br=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__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"}),p__default.default.createElement("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),p__default.default.createElement("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}));});var Bo={};c(Bo,{IconScript:()=>jr});var jr,No=e(()=>{jr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p__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={};c(jo,{IconSettings:()=>yr});var yr,Wo=e(()=>{yr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__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"}),p__default.default.createElement("circle",{cx:"12",cy:"12",r:"3"}));});var yo={};c(yo,{IconUpwork:()=>zr});var zr,Ho=e(()=>{zr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p__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={};c(zo,{IconUserSearch:()=>Ar});var Ar,Vo=e(()=>{Ar=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("circle",{cx:"10",cy:"7",r:"4"}),p__default.default.createElement("path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2"}),p__default.default.createElement("circle",{cx:"17",cy:"17",r:"3"}),p__default.default.createElement("path",{d:"m21 21-1.9-1.9"}));});var Ao={};c(Ao,{IconX:()=>Ur});var Ur,bo=e(()=>{Ur=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p__default.default.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To__default.default("purr-icon","icon",`icon--${r}`,o)},p__default.default.createElement("path",{d:"M18 6 6 18"}),p__default.default.createElement("path",{d:"m6 6 12 12"}));});var Er=y({"./icons/_anchor.tsx":()=>Promise.resolve().then(()=>(z(),H)),"./icons/_arrow-down.tsx":()=>Promise.resolve().then(()=>(A(),V)),"./icons/_arrow-left.tsx":()=>Promise.resolve().then(()=>(U(),b)),"./icons/_arrow-right.tsx":()=>Promise.resolve().then(()=>(D(),E)),"./icons/_arrow-up.tsx":()=>Promise.resolve().then(()=>(F(),T)),"./icons/_bomb.tsx":()=>Promise.resolve().then(()=>(J(),G)),"./icons/_bookmark.tsx":()=>Promise.resolve().then(()=>(K(),q)),"./icons/_chevron-down.tsx":()=>Promise.resolve().then(()=>(Y(),Q)),"./icons/_chevron-left.tsx":()=>Promise.resolve().then(()=>(R(),_)),"./icons/_chevron-right.tsx":()=>Promise.resolve().then(()=>(no(),ro)),"./icons/_chevron-up.tsx":()=>Promise.resolve().then(()=>(so(),io)),"./icons/_contact.tsx":()=>Promise.resolve().then(()=>(co(),eo)),"./icons/_copy.tsx":()=>Promise.resolve().then(()=>(lo(),po)),"./icons/_external-link.tsx":()=>Promise.resolve().then(()=>(ho(),mo)),"./icons/_facebook.tsx":()=>Promise.resolve().then(()=>(Io(),wo)),"./icons/_git-hub.tsx":()=>Promise.resolve().then(()=>(vo(),uo)),"./icons/_info.tsx":()=>Promise.resolve().then(()=>(xo(),ao)),"./icons/_linked-in.tsx":()=>Promise.resolve().then(()=>(ko(),fo)),"./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,loadingProps:r,htmlAttributes:n,color:t="#000000",width:i=24,height:s=24,className:Uo="",isSpaceReserved:Eo=true})=>{let[j,W]=p.useState(null);return p.useEffect(()=>{W(null),Er(`./icons/_${o}.tsx`).then(a=>{W(()=>a[`Icon${utils_helpers.toCamelCase(o)}`]);}).catch(a=>console.error(`\u{1F50D} Icon not found: ${o}`,a));},[o]),j?p__default.default.createElement(p.Suspense,null,p__default.default.createElement(j,{className:Uo,color:t,name:o,width:i,height:s,htmlAttributes:n})):Eo?p__default.default.createElement(components_loadingEllipsis.LoadingEllipsis,{size:4,color:"#000000",...r}):null};
2
+ exports.Icon=Zn;
@@ -0,0 +1,21 @@
1
+ import React, { SVGProps } from 'react';
2
+ import { IExtendable } from '@purr-core/utils.definitions';
3
+ import { ILoadingEllipsisProps } from '@purr-react-styled-components/components.loading-ellipsis';
4
+
5
+ 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" | "react-js" | "rss" | "save" | "settings" | "upwork" | "user-search" | "x";
6
+ interface ISingleIconProps {
7
+ className?: string;
8
+ name: TIconName;
9
+ color?: string;
10
+ width?: number;
11
+ height?: number;
12
+ htmlAttributes?: SVGProps<SVGSVGElement> & IExtendable;
13
+ }
14
+ interface IIconProps extends ISingleIconProps {
15
+ loadingProps?: ILoadingEllipsisProps;
16
+ isSpaceReserved?: boolean;
17
+ }
18
+
19
+ declare const Icon: ({ name, loadingProps, htmlAttributes, color, width, height, className, isSpaceReserved, }: IIconProps) => React.JSX.Element | null;
20
+
21
+ export { type IIconProps, type ISingleIconProps, Icon, type TIconName };
@@ -0,0 +1,21 @@
1
+ import React, { SVGProps } from 'react';
2
+ import { IExtendable } from '@purr-core/utils.definitions';
3
+ import { ILoadingEllipsisProps } from '@purr-react-styled-components/components.loading-ellipsis';
4
+
5
+ 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" | "react-js" | "rss" | "save" | "settings" | "upwork" | "user-search" | "x";
6
+ interface ISingleIconProps {
7
+ className?: string;
8
+ name: TIconName;
9
+ color?: string;
10
+ width?: number;
11
+ height?: number;
12
+ htmlAttributes?: SVGProps<SVGSVGElement> & IExtendable;
13
+ }
14
+ interface IIconProps extends ISingleIconProps {
15
+ loadingProps?: ILoadingEllipsisProps;
16
+ isSpaceReserved?: boolean;
17
+ }
18
+
19
+ declare const Icon: ({ name, loadingProps, htmlAttributes, color, width, height, className, isSpaceReserved, }: IIconProps) => React.JSX.Element | null;
20
+
21
+ export { type IIconProps, type ISingleIconProps, Icon, type TIconName };
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import To from'clsx';import p,{useState,useEffect,Suspense}from'react';import {toCamelCase}from'@purr-core/utils.helpers';import {LoadingEllipsis}from'@purr-react-styled-components/components.loading-ellipsis';var Do=Object.defineProperty;var y=o=>r=>{var n=o[r];if(n)return n();throw new Error("Module not found in bundle: "+r)};var e=(o,r)=>()=>(o&&(r=o(o=0)),r);var c=(o,r)=>{for(var n in r)Do(o,n,{get:r[n],enumerable:true});};var H={};c(H,{IconAnchor:()=>Fo});var Fo,z=e(()=>{Fo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M12 22V8"}),p.createElement("path",{d:"M5 12H2a10 10 0 0 0 20 0h-3"}),p.createElement("circle",{cx:"12",cy:"5",r:"3"}));});var V={};c(V,{IconArrowDown:()=>Jo});var Jo,A=e(()=>{Jo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M12 5v14"}),p.createElement("path",{d:"m19 12-7 7-7-7"}));});var b={};c(b,{IconArrowLeft:()=>qo});var qo,U=e(()=>{qo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m12 19-7-7 7-7"}),p.createElement("path",{d:"M19 12H5"}));});var E={};c(E,{IconArrowRight:()=>Oo});var Oo,D=e(()=>{Oo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M5 12h14"}),p.createElement("path",{d:"m12 5 7 7-7 7"}));});var T={};c(T,{IconArrowUp:()=>Yo});var Yo,F=e(()=>{Yo=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m5 12 7-7 7 7"}),p.createElement("path",{d:"M12 19V5"}));});var G={};c(G,{IconBomb:()=>_o});var _o,J=e(()=>{_o=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p.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"}),p.createElement("path",{d:"M17 7l1.293 -1.293a2.414 2.414 0 0 0 .707 -1.707a1 1 0 0 1 1 -1h1"}),p.createElement("path",{d:"M7 13a3 3 0 0 1 3 -3"}));});var q={};c(q,{IconBookmark:()=>or});var or,K=e(()=>{or=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"}));});var Q={};c(Q,{IconChevronDown:()=>nr});var nr,Y=e(()=>{nr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m6 9 6 6 6-6"}));});var _={};c(_,{IconChevronLeft:()=>ir});var ir,R=e(()=>{ir=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m15 18-6-6 6-6"}));});var ro={};c(ro,{IconChevronRight:()=>er});var er,no=e(()=>{er=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m9 18 6-6-6-6"}));});var io={};c(io,{IconChevronUp:()=>pr});var pr,so=e(()=>{pr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"m18 15-6-6-6 6"}));});var eo={};c(eo,{IconContact:()=>mr});var mr,co=e(()=>{mr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2"}),p.createElement("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),p.createElement("circle",{cx:"12",cy:"10",r:"2"}),p.createElement("line",{x1:"8",x2:"8",y1:"2",y2:"4"}),p.createElement("line",{x1:"16",x2:"16",y1:"2",y2:"4"}));});var po={};c(po,{IconCopy:()=>gr});var gr,lo=e(()=>{gr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),p.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 mo={};c(mo,{IconExternalLink:()=>dr});var dr,ho=e(()=>{dr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M15 3h6v6"}),p.createElement("path",{d:"M10 14 21 3"}),p.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}));});var wo={};c(wo,{IconFacebook:()=>ur});var ur,Io=e(()=>{ur=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}));});var uo={};c(uo,{IconGitHub:()=>ar});var ar,vo=e(()=>{ar=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.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"}),p.createElement("path",{d:"M9 18c-4.51 2-5-2-7-2"}));});var ao={};c(ao,{IconInfo:()=>fr});var fr,xo=e(()=>{fr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("circle",{cx:"12",cy:"12",r:"10"}),p.createElement("path",{d:"M12 16v-4"}),p.createElement("path",{d:"M12 8h.01"}));});var fo={};c(fo,{IconLinkedIn:()=>Sr});var Sr,ko=e(()=>{Sr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.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"}),p.createElement("rect",{width:"4",height:"12",x:"2",y:"9"}),p.createElement("circle",{cx:"4",cy:"4",r:"2"}));});var So={};c(So,{IconReactJs:()=>Pr});var Pr,Lo=e(()=>{Pr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{d:"M11.5 12.866a1 1 0 1 0 1 -1.732a1 1 0 0 0 -1 1.732z"}));});var Po={};c(Po,{IconRss:()=>Cr});var Cr,Mo=e(()=>{Cr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M4 11a9 9 0 0 1 9 9"}),p.createElement("path",{d:"M4 4a16 16 0 0 1 16 16"}),p.createElement("circle",{cx:"5",cy:"19",r:"1"}));});var Co={};c(Co,{IconSave:()=>Br});var Br,$o=e(()=>{Br=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.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"}),p.createElement("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),p.createElement("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}));});var Bo={};c(Bo,{IconScript:()=>jr});var jr,No=e(()=>{jr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p.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={};c(jo,{IconSettings:()=>yr});var yr,Wo=e(()=>{yr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.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"}),p.createElement("circle",{cx:"12",cy:"12",r:"3"}));});var yo={};c(yo,{IconUpwork:()=>zr});var zr,Ho=e(()=>{zr=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{stroke:"none",d:"M0 0h24v24H0z"}),p.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={};c(zo,{IconUserSearch:()=>Ar});var Ar,Vo=e(()=>{Ar=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("circle",{cx:"10",cy:"7",r:"4"}),p.createElement("path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2"}),p.createElement("circle",{cx:"17",cy:"17",r:"3"}),p.createElement("path",{d:"m21 21-1.9-1.9"}));});var Ao={};c(Ao,{IconX:()=>Ur});var Ur,bo=e(()=>{Ur=({className:o="",name:r,color:n,width:t,height:i,htmlAttributes:s})=>p.createElement("svg",{...s,xmlns:"http://www.w3.org/2000/svg",width:t||"24",height:i||"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",color:n,className:To("purr-icon","icon",`icon--${r}`,o)},p.createElement("path",{d:"M18 6 6 18"}),p.createElement("path",{d:"m6 6 12 12"}));});var Er=y({"./icons/_anchor.tsx":()=>Promise.resolve().then(()=>(z(),H)),"./icons/_arrow-down.tsx":()=>Promise.resolve().then(()=>(A(),V)),"./icons/_arrow-left.tsx":()=>Promise.resolve().then(()=>(U(),b)),"./icons/_arrow-right.tsx":()=>Promise.resolve().then(()=>(D(),E)),"./icons/_arrow-up.tsx":()=>Promise.resolve().then(()=>(F(),T)),"./icons/_bomb.tsx":()=>Promise.resolve().then(()=>(J(),G)),"./icons/_bookmark.tsx":()=>Promise.resolve().then(()=>(K(),q)),"./icons/_chevron-down.tsx":()=>Promise.resolve().then(()=>(Y(),Q)),"./icons/_chevron-left.tsx":()=>Promise.resolve().then(()=>(R(),_)),"./icons/_chevron-right.tsx":()=>Promise.resolve().then(()=>(no(),ro)),"./icons/_chevron-up.tsx":()=>Promise.resolve().then(()=>(so(),io)),"./icons/_contact.tsx":()=>Promise.resolve().then(()=>(co(),eo)),"./icons/_copy.tsx":()=>Promise.resolve().then(()=>(lo(),po)),"./icons/_external-link.tsx":()=>Promise.resolve().then(()=>(ho(),mo)),"./icons/_facebook.tsx":()=>Promise.resolve().then(()=>(Io(),wo)),"./icons/_git-hub.tsx":()=>Promise.resolve().then(()=>(vo(),uo)),"./icons/_info.tsx":()=>Promise.resolve().then(()=>(xo(),ao)),"./icons/_linked-in.tsx":()=>Promise.resolve().then(()=>(ko(),fo)),"./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,loadingProps:r,htmlAttributes:n,color:t="#000000",width:i=24,height:s=24,className:Uo="",isSpaceReserved:Eo=true})=>{let[j,W]=useState(null);return useEffect(()=>{W(null),Er(`./icons/_${o}.tsx`).then(a=>{W(()=>a[`Icon${toCamelCase(o)}`]);}).catch(a=>console.error(`\u{1F50D} Icon not found: ${o}`,a));},[o]),j?p.createElement(Suspense,null,p.createElement(j,{className:Uo,color:t,name:o,width:i,height:s,htmlAttributes:n})):Eo?p.createElement(LoadingEllipsis,{size:4,color:"#000000",...r}):null};
2
+ export{Zn as Icon};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purr-react-styled-components/components.icon",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -24,9 +24,9 @@
24
24
  "typescript": "*",
25
25
  "react": "*",
26
26
  "clsx": "*",
27
- "@purr-core/utils.definitions": "0.0.11",
28
- "@purr-react-styled-components/components.loading-ellipsis": "0.0.8",
29
- "@purr-core/utils.helpers": "0.0.11"
27
+ "@purr-core/utils.definitions": "0.0.12",
28
+ "@purr-react-styled-components/components.loading-ellipsis": "0.0.9",
29
+ "@purr-core/utils.helpers": "0.0.12"
30
30
  },
31
31
  "author": "@DinhThienPhuc",
32
32
  "license": "ISC",