wizardry-react
Version:
A Wizardry icon library package for React applications.
2 lines • 4.8 kB
JavaScript
;var d=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var I=(o,e)=>{for(var r in e)d(o,r,{get:e[r],enumerable:!0})},j=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!b.call(o,a)&&a!==r&&d(o,a,{get:()=>e[a],enumerable:!(n=_(e,a))||n.enumerable});return o};var v=o=>j(d({},"__esModule",{value:!0}),o);var U={};I(U,{CircleOneFill:()=>x,FilterLine:()=>f,Icon:()=>p,SearchOneLine:()=>y,SearchThreeLine:()=>h,SearchTwoLine:()=>u,createWizardryIcon:()=>t,icons:()=>L});module.exports=v(U);var L={};I(L,{CircleOneFill:()=>x,FilterLine:()=>f,SearchOneLine:()=>y,SearchThreeLine:()=>h,SearchTwoLine:()=>u});var C=require("react");var w=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),A=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,n)=>n?n.toUpperCase():r.toLowerCase()),m=o=>{let e=A(o);return e.charAt(0).toUpperCase()+e.slice(1)},s=(...o)=>o.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();var c=require("react");var k={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 g={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 M=(0,c.forwardRef)(({color:o="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:i,iconNode:N,...z},T)=>{let l=a.includes("-fill");return(0,c.createElement)("svg",{ref:T,...k,...l?g:{},width:e,height:e,...l?{fill:o}:{stroke:o},strokeWidth:l?0:n?Number(r)*24/Number(e):r,className:s("wizardry",a),...z},[...N.map(([W,P])=>(0,c.createElement)(W,P)),...Array.isArray(i)?i:[i]])}),p=M;var F=(o,e)=>{let r=(0,C.forwardRef)(({className:n,...a},i)=>(0,C.createElement)(p,{ref:i,iconNode:e,className:s(`wizardry-${w(m(o))}`,`wizardry-${o}`,n),...a}));return r.displayName=m(o),r},t=F;var O=[["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"}]],Z=t("filter-line",O),f=Z;var E=[["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"}]],G=t("circle-one-fill",E),x=G;var V=[["circle",{cx:"11.500000",cy:"11.500000",r:"9.499999",opacity:"0.4",key:"1nj8v7"}],["path",{d:"M18.5 18.5L22 22",key:"67zml7"}]],$=t("search-one-line",V),y=$;var B=[["circle",{cx:"11.500000",cy:"11.500000",r:"9.499999",opacity:"0.4",key:"1nj8v7"}],["path",{d:"M20 20L22 22",key:"jq9z17"}]],q=t("search-two-line",B),u=q;var K=[["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"}]],R=t("search-three-line",K),h=R;0&&(module.exports={CircleOneFill,FilterLine,Icon,SearchOneLine,SearchThreeLine,SearchTwoLine,createWizardryIcon,icons});
//# sourceMappingURL=wizardry-react.cjs.map