UNPKG

wizardry-react

Version:

A Wizardry icon library package for React applications.

2 lines 4.29 kB
var T=Object.defineProperty;var W=(e,o)=>{for(var r in o)T(e,r,{get:o[r],enumerable:!0})};var I={};W(I,{CircleOneFill:()=>y,FilterLine:()=>x,SearchOneLine:()=>u,SearchThreeLine:()=>L,SearchTwoLine:()=>h});import{createElement as b,forwardRef as j}from"react";var l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,r,n)=>n?n.toUpperCase():r.toLowerCase()),p=e=>{let o=P(e);return o.charAt(0).toUpperCase()+o.slice(1)},c=(...e)=>e.filter((o,r,n)=>!!o&&o.trim()!==""&&n.indexOf(o)===r).join(" ").trim();import{createElement as f,forwardRef as _}from"react";var d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var m={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",strokeWidth:0,strokeLinecap:"round",strokeLinejoin:"round"};var S=_(({color:e="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:w,...k},g)=>{let s=i.includes("-fill");return f("svg",{ref:g,...d,...s?m:{},width:o,height:o,...s?{fill:e}:{stroke:e},strokeWidth:s?0:n?Number(r)*24/Number(o):r,className:c("wizardry",i),...k},[...w.map(([N,z])=>f(N,z)),...Array.isArray(a)?a:[a]])}),C=S;var v=(e,o)=>{let r=j(({className:n,...i},a)=>b(C,{ref:a,iconNode:o,className:c(`wizardry-${l(p(e))}`,`wizardry-${e}`,n),...i}));return r.displayName=p(e),r},t=v;var A=[["path",{d:"M22 5.81L22 6.5C22 7.54 22 8.06 21.74 8.49C21.48 8.92 21 9.18 20.05 9.72L17.14 11.36C16.5 11.72 16.19 11.89 15.96 12.09C15.48 12.5 15.19 12.99 15.06 13.58C15 13.87 15 14.2 15 14.87L15 17.54C15 19.45 15 20.4 14.33 20.82C13.66 21.24 12.72 20.87 10.84 20.14C9.95 19.79 9.5 19.61 9.25 19.26C9 18.9 9 18.45 9 17.54L9 14.87C9 14.2 9 13.87 8.93 13.58C8.8 12.99 8.51 12.5 8.03 12.09C7.8 11.89 7.49 11.72 6.85 11.36L3.94 9.72C2.99 9.18 2.51 8.92 2.25 8.49C2 8.06 2 7.54 2 6.5L2 5.81",key:"ixkmpn"}],["path",{opacity:"0.4",d:"M22 5.81C22 4.48 22 3.82 21.56 3.41C21.12 3 20.41 3 19 3L5 3C3.58 3 2.87 3 2.43 3.41C2 3.82 2 4.48 2 5.81",key:"q6p6e8"}]],M=t("filter-line",A),x=M;var F=[["path",{opacity:"0.4",d:"M12 15.42L12 0C12.78 0 13.56 0.06 14.34 0.21C15.1 0.38 15.86 0.59 16.58 0.9C17.31 1.19 18 1.57 18.66 2.02C19.31 2.45 19.92 2.93 20.48 3.5C21.04 4.06 21.52 4.66 21.96 5.31C22.4 5.97 22.78 6.66 23.08 7.4C23.38 8.12 23.6 8.88 23.76 9.64C23.92 10.42 24 11.2 24 12C24 12.78 23.92 13.56 23.76 14.34C23.6 15.1 23.38 15.86 23.08 16.58C22.78 17.31 22.4 18 21.96 18.66C21.52 19.31 21.04 19.92 20.48 20.48C19.92 21.04 19.31 21.52 18.66 21.96C18 22.4 17.31 22.78 16.58 23.08C15.86 23.38 15.1 23.6 14.34 23.76C13.56 23.92 12.78 24 12 24L12 15.42Z",key:"4g2ozi"}],["path",{d:"M12 15.42L12 0C11.2 0 10.42 0.06 9.64 0.21C8.88 0.38 8.12 0.59 7.4 0.9C6.66 1.19 5.97 1.57 5.31 2.02C4.66 2.45 4.06 2.93 3.5 3.5C2.93 4.06 2.45 4.66 2.02 5.31C1.57 5.97 1.19 6.66 0.9 7.4C0.59 8.12 0.38 8.88 0.21 9.64C0.06 10.42 0 11.2 0 12C0 12.78 0.06 13.56 0.21 14.34C0.38 15.1 0.59 15.86 0.9 16.58C1.19 17.31 1.57 18 2.02 18.66C2.45 19.31 2.93 19.92 3.5 20.48C4.06 21.04 4.66 21.52 5.31 21.96C5.97 22.4 6.66 22.78 7.4 23.08C8.12 23.38 8.88 23.6 9.64 23.76C10.42 23.92 11.2 24 12 24L12 15.42Z",key:"1k296r"}]],O=t("circle-one-fill",F),y=O;var Z=[["circle",{cx:"11.500000",cy:"11.500000",r:"9.499999",opacity:"0.4",key:"1nj8v7"}],["path",{d:"M18.5 18.5L22 22",key:"67zml7"}]],E=t("search-one-line",Z),u=E;var G=[["circle",{cx:"11.500000",cy:"11.500000",r:"9.499999",opacity:"0.4",key:"1nj8v7"}],["path",{d:"M20 20L22 22",key:"jq9z17"}]],V=t("search-two-line",G),h=V;var $=[["circle",{cx:"11.000000",cy:"11.000000",r:"9.000000",opacity:"0.4",key:"fo11wg"}],["path",{d:"M21.4 21.4C21.18 21.63 21.06 21.74 20.97 21.81C20.42 22.17 19.66 21.99 19.35 21.4C19.3 21.3 19.25 21.15 19.16 20.84C19.06 20.5 19.01 20.33 19 20.22C18.94 19.52 19.52 18.94 20.22 19C20.33 19.01 20.5 19.06 20.84 19.16C21.15 19.25 21.3 19.3 21.4 19.35C21.99 19.66 22.17 20.42 21.81 20.97C21.74 21.06 21.63 21.18 21.4 21.4Z",key:"1kdkj9"}]],B=t("search-three-line",$),L=B;export{y as CircleOneFill,x as FilterLine,C as Icon,u as SearchOneLine,L as SearchThreeLine,h as SearchTwoLine,t as createWizardryIcon,I as icons}; //# sourceMappingURL=wizardry-react.js.map