tech-stack-icons 3.1.8 → 3.2.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import a from"react";var i={adobe:{keywords:["Graphic Design","Digital Marketing","Creative Cloud","Multimedia Software","Photo Editing"],svg:{light:`<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import r from"react";var d={adobe:{keywords:["Graphic Design","Digital Marketing","Creative Cloud","Multimedia Software","Photo Editing"],svg:{light:`<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path fill-rule="evenodd" clip-rule="evenodd" d="M0 5H37.1232L0 95.4114V5ZM62.4131 5H100V94.2498L62.4131 5ZM50.1936 39.5707L70.6892 93.7872H58.005L49.2653 76.6185H35.3441L50.1936 39.5707Z" fill="#CC2229"/>
3
3
  </svg>
4
4
  `,dark:`<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -18096,12 +18096,4 @@ import a from"react";var i={adobe:{keywords:["Graphic Design","Digital Marketing
18096
18096
  <path fill-rule="evenodd" clip-rule="evenodd" d="M56.1 12.8L53.2 14.5L52.5 13.3L50.8 14.3L50 12.8L47.4 14.3L46.5 12.8L46.2 13L45.3 11.4L44.9 11.7L44 10.2L5.5 32.5L6.7 34.5999L7.1 34.2999L8 35.7999L8.3 35.5999L9.2 37.2L9.6 37L10.2 38L10.3 37.9L10.9 38.9L12.1 41L57.4 15L56.1 12.8ZM72.5 56.5H55.7V58.2H34.4L88.7 26.7999L82.7 16.3L81.5 17L80.7 15.6L67 23.4L67.8 24.8L22.6 51L28.6 61.5L28.8 61.4V64.5999H33.2V69.9H64.6V64.5999H69.3V58.2999H72.3V56.5H72.5Z" fill="#474747"/>
18097
18097
  <path fill-rule="evenodd" clip-rule="evenodd" d="M79.5 10H21.3L0 31.2L48.3 89.4L52.2 85.1L100 31.4L79.5 10ZM77.4 15L93.2 31.5L48.5 81.7L6.7 31.5L23.3 15H77.4Z" fill="#606060"/>
18098
18098
  </svg>
18099
- `}}};var f=i,s=`
18100
- .7bd9d5c2-f372-4334-8686-d18151710c53-tech-stack-icons {
18101
- display: inline-block;
18102
- }
18103
- .7bd9d5c2-f372-4334-8686-d18151710c53-tech-stack-icons svg {
18104
- width: 100%;
18105
- height: 100%;
18106
- }
18107
- `,L="tech-stack-icons-style",h=({name:C,variant:e="light",className:o,style:t})=>{let n=f[C];if(!n)return console.error(`Icon with name "${C}" not found.`),null;let d=n.svg?.[e];if(!d)return console.error(`SVG variant "${e}" not found for icon "${C}".`),null;if(typeof window<"u"&&!document.getElementById(L)){let l=document.createElement("style");l.id=L,l.innerHTML=s,document.head.appendChild(l)}let p=["7bd9d5c2-f372-4334-8686-d18151710c53-tech-stack-icons",o].filter(Boolean).join(" ");return a.createElement("span",{className:p,style:t,dangerouslySetInnerHTML:{__html:d}})},V=h;export{V as default};
18099
+ `}}};var a=d,f=({name:C,variant:l="light",className:i,style:L})=>{let e=a[C];if(!e)return console.error(`Icon with name "${C}" not found.`),null;let n=e.svg?.[l];if(!n)return console.error(`SVG variant "${l}" not found for icon "${C}".`),null;let o=n.replace(/<svg([^>]*)>/,'<svg$1 style="width: 100%; height: 100%; display: block;">'),t={display:"inline-block",lineHeight:0,...L};return r.createElement("span",{className:i,style:t,dangerouslySetInnerHTML:{__html:o}})},M=f;export{M as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tech-stack-icons",
3
- "version": "3.1.8",
3
+ "version": "3.2.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {