ma-icons 0.4.23 → 0.4.24

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.
@@ -641,7 +641,8 @@ let g = class extends V {
641
641
  s = await fetch(e), o = await s.text();
642
642
  }
643
643
  const n = new DOMParser().parseFromString(o, "image/svg+xml"), r = n.querySelector("svg");
644
- return r ? (r == null || r.setAttribute("width", this.size), r == null || r.setAttribute("height", this.size), r == null || r.setAttribute("fill", "none"), n.querySelectorAll("[stroke]").forEach((a) => a.setAttribute("stroke", this.styled ? "hsl(0deg 0% 0% / calc(100% * 3/8))" : this.color)), n.querySelectorAll("[stroke-width]").forEach((a) => a.setAttribute("stroke-width", this.weight)), this.svg = r == null ? void 0 : r.outerHTML, this.svg) : "error";
644
+ if (!r) return "error";
645
+ r == null || r.setAttribute("width", this.size), r == null || r.setAttribute("height", this.size), r == null || r.setAttribute("fill", "none"), n.querySelectorAll("[stroke]").forEach((a) => a.setAttribute("stroke", this.styled ? "hsl(0deg 0% 0% / calc(100% * 3/8))" : this.color)), n.querySelectorAll("[stroke-width]").forEach((a) => a.setAttribute("stroke-width", this.weight)), this.svg = r == null ? void 0 : r.outerHTML;
645
646
  }
646
647
  };
647
648
  g.styles = n0`
@@ -32,7 +32,7 @@ var MaIcons=function(p){"use strict";var r0;var x=typeof document<"u"?document.c
32
32
  <a ${this.download?'download="'+this.download+'"':""} href=${this.href} class="${this.styled?"styled":""}">
33
33
  ${this.leading?P`${t}&thinsp;`:""}<slot></slot>${this.leading?"":P`&thinsp;${t}`}
34
34
  </a>
35
- `:t}async modifySvg(){const t=this.download?"download":this.name;let e;try{e=new URL(Object.assign({"../icons/add-circle.svg":K,"../icons/audio.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/check.svg":s2,"../icons/cmd.svg":i2,"../icons/code.svg":o2,"../icons/down.svg":r2,"../icons/download.svg":n2,"../icons/edit.svg":c2,"../icons/explore.svg":a2,"../icons/external-2.svg":l2,"../icons/fullscreen-exit.svg":h2,"../icons/fullscreen.svg":d2,"../icons/github.svg":p2,"../icons/heart-filled.svg":g2,"../icons/heart.svg":k2,"../icons/home.svg":w2,"../icons/info.svg":v2,"../icons/input.svg":u2,"../icons/instagram.svg":_2,"../icons/language.svg":m2,"../icons/left.svg":b2,"../icons/lock-closed.svg":f2,"../icons/lock-open.svg":C2,"../icons/lock.svg":$2,"../icons/login.svg":x2,"../icons/ma-2.svg":M2,"../icons/ma.svg":L2,"../icons/menu.svg":y2,"../icons/options.svg":A2,"../icons/pants.svg":S2,"../icons/pause.svg":H2,"../icons/person.svg":V2,"../icons/play.svg":E2,"../icons/remove-circle.svg":P2,"../icons/right.svg":B2,"../icons/search.svg":U2,"../icons/send.svg":O2,"../icons/settings.svg":T2,"../icons/tiktok.svg":Z2,"../icons/top-left.svg":R2,"../icons/top-right.svg":N2,"../icons/trash.svg":j2,"../icons/up.svg":z2,"../icons/youtube.svg":D2})[`../icons/${t}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{e=`/icons/${t}.svg`}let s;try{s=new URL(Object.assign({"../icons/add-circle.svg":K,"../icons/audio.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/check.svg":s2,"../icons/cmd.svg":i2,"../icons/code.svg":o2,"../icons/down.svg":r2,"../icons/download.svg":n2,"../icons/edit.svg":c2,"../icons/explore.svg":a2,"../icons/external-2.svg":l2,"../icons/fullscreen-exit.svg":h2,"../icons/fullscreen.svg":d2,"../icons/github.svg":p2,"../icons/heart-filled.svg":g2,"../icons/heart.svg":k2,"../icons/home.svg":w2,"../icons/info.svg":v2,"../icons/input.svg":u2,"../icons/instagram.svg":_2,"../icons/language.svg":m2,"../icons/left.svg":b2,"../icons/lock-closed.svg":f2,"../icons/lock-open.svg":C2,"../icons/lock.svg":$2,"../icons/login.svg":x2,"../icons/ma-2.svg":M2,"../icons/ma.svg":L2,"../icons/menu.svg":y2,"../icons/options.svg":A2,"../icons/pants.svg":S2,"../icons/pause.svg":H2,"../icons/person.svg":V2,"../icons/play.svg":E2,"../icons/remove-circle.svg":P2,"../icons/right.svg":B2,"../icons/search.svg":U2,"../icons/send.svg":O2,"../icons/settings.svg":T2,"../icons/tiktok.svg":Z2,"../icons/top-left.svg":R2,"../icons/top-right.svg":N2,"../icons/trash.svg":j2,"../icons/up.svg":z2,"../icons/youtube.svg":D2})[`../icons/${this.altname}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{s=`/icons/${this.altname}.svg`}let i,n;try{i=await fetch(e),n=await i.text()}catch{i=await fetch(s),n=await i.text()}const r=new DOMParser().parseFromString(n,"image/svg+xml"),a=r.querySelector("svg");return a?(a==null||a.setAttribute("width",this.size),a==null||a.setAttribute("height",this.size),a==null||a.setAttribute("fill","none"),r.querySelectorAll("[stroke]").forEach(c=>c.setAttribute("stroke",this.styled?"hsl(0deg 0% 0% / calc(100% * 3/8))":this.color)),r.querySelectorAll("[stroke-width]").forEach(c=>c.setAttribute("stroke-width",this.weight)),this.svg=a==null?void 0:a.outerHTML,this.svg):"error"}},p.SimpleGreeting.styles=c0`
35
+ `:t}async modifySvg(){const t=this.download?"download":this.name;let e;try{e=new URL(Object.assign({"../icons/add-circle.svg":K,"../icons/audio.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/check.svg":s2,"../icons/cmd.svg":i2,"../icons/code.svg":o2,"../icons/down.svg":r2,"../icons/download.svg":n2,"../icons/edit.svg":c2,"../icons/explore.svg":a2,"../icons/external-2.svg":l2,"../icons/fullscreen-exit.svg":h2,"../icons/fullscreen.svg":d2,"../icons/github.svg":p2,"../icons/heart-filled.svg":g2,"../icons/heart.svg":k2,"../icons/home.svg":w2,"../icons/info.svg":v2,"../icons/input.svg":u2,"../icons/instagram.svg":_2,"../icons/language.svg":m2,"../icons/left.svg":b2,"../icons/lock-closed.svg":f2,"../icons/lock-open.svg":C2,"../icons/lock.svg":$2,"../icons/login.svg":x2,"../icons/ma-2.svg":M2,"../icons/ma.svg":L2,"../icons/menu.svg":y2,"../icons/options.svg":A2,"../icons/pants.svg":S2,"../icons/pause.svg":H2,"../icons/person.svg":V2,"../icons/play.svg":E2,"../icons/remove-circle.svg":P2,"../icons/right.svg":B2,"../icons/search.svg":U2,"../icons/send.svg":O2,"../icons/settings.svg":T2,"../icons/tiktok.svg":Z2,"../icons/top-left.svg":R2,"../icons/top-right.svg":N2,"../icons/trash.svg":j2,"../icons/up.svg":z2,"../icons/youtube.svg":D2})[`../icons/${t}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{e=`/icons/${t}.svg`}let s;try{s=new URL(Object.assign({"../icons/add-circle.svg":K,"../icons/audio.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/check.svg":s2,"../icons/cmd.svg":i2,"../icons/code.svg":o2,"../icons/down.svg":r2,"../icons/download.svg":n2,"../icons/edit.svg":c2,"../icons/explore.svg":a2,"../icons/external-2.svg":l2,"../icons/fullscreen-exit.svg":h2,"../icons/fullscreen.svg":d2,"../icons/github.svg":p2,"../icons/heart-filled.svg":g2,"../icons/heart.svg":k2,"../icons/home.svg":w2,"../icons/info.svg":v2,"../icons/input.svg":u2,"../icons/instagram.svg":_2,"../icons/language.svg":m2,"../icons/left.svg":b2,"../icons/lock-closed.svg":f2,"../icons/lock-open.svg":C2,"../icons/lock.svg":$2,"../icons/login.svg":x2,"../icons/ma-2.svg":M2,"../icons/ma.svg":L2,"../icons/menu.svg":y2,"../icons/options.svg":A2,"../icons/pants.svg":S2,"../icons/pause.svg":H2,"../icons/person.svg":V2,"../icons/play.svg":E2,"../icons/remove-circle.svg":P2,"../icons/right.svg":B2,"../icons/search.svg":U2,"../icons/send.svg":O2,"../icons/settings.svg":T2,"../icons/tiktok.svg":Z2,"../icons/top-left.svg":R2,"../icons/top-right.svg":N2,"../icons/trash.svg":j2,"../icons/up.svg":z2,"../icons/youtube.svg":D2})[`../icons/${this.altname}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{s=`/icons/${this.altname}.svg`}let i,n;try{i=await fetch(e),n=await i.text()}catch{i=await fetch(s),n=await i.text()}const r=new DOMParser().parseFromString(n,"image/svg+xml"),a=r.querySelector("svg");if(!a)return"error";a==null||a.setAttribute("width",this.size),a==null||a.setAttribute("height",this.size),a==null||a.setAttribute("fill","none"),r.querySelectorAll("[stroke]").forEach(c=>c.setAttribute("stroke",this.styled?"hsl(0deg 0% 0% / calc(100% * 3/8))":this.color)),r.querySelectorAll("[stroke-width]").forEach(c=>c.setAttribute("stroke-width",this.weight)),this.svg=a==null?void 0:a.outerHTML}},p.SimpleGreeting.styles=c0`
36
36
  svg {
37
37
  display: block;
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ma-icons",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "description": "Ma Icons by Taavi Rübenhagen",
5
5
  "type": "module",
6
6
  "main": "dist/ma-icons.iife.js",