ma-icons 0.3.19 → 0.3.20

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.
@@ -616,7 +616,7 @@ let g = class extends E {
616
616
  const i = this.svg ? x`<span .innerHTML=${this.svg}></span>` : x``;
617
617
  return this.href ? x`
618
618
  <a download=${this.download} href=${this.href} class="${this.styled ? "styled" : ""}">
619
- ${this.leading ? x`${i}&thinsp;` : ""}<slot></slot>${this.leading ? "" : x`${i}`}
619
+ ${this.leading ? x`${i}&thinsp;` : ""}<slot></slot>${this.leading ? "" : x`&thinsp;${i}`}
620
620
  </a>
621
621
  ` : x`${i}`;
622
622
  }
@@ -624,9 +624,9 @@ let g = class extends E {
624
624
  const i = this.download ? "download" : this.name;
625
625
  let t;
626
626
  try {
627
- t = new URL((/* @__PURE__ */ Object.assign({ "../icons/add-circle.svg": K, "../icons/bottom-left.svg": G, "../icons/bottom-right.svg": Q, "../icons/camera-video.svg": X, "../icons/camera.svg": Y, "../icons/cmd.svg": t2, "../icons/code.svg": e2, "../icons/down.svg": s2, "../icons/download.svg": o2, "../icons/edit.svg": i2, "../icons/explore.svg": r2, "../icons/external-2.svg": n2, "../icons/fullscreen-exit.svg": c2, "../icons/fullscreen.svg": l2, "../icons/github.svg": a2, "../icons/heart-filled.svg": h2, "../icons/heart.svg": d2, "../icons/home.svg": p2, "../icons/info.svg": g2, "../icons/input.svg": k2, "../icons/instagram.svg": w2, "../icons/left.svg": v2, "../icons/lock-closed.svg": u2, "../icons/lock-open.svg": _2, "../icons/lock.svg": m2, "../icons/login.svg": b2, "../icons/ma-2.svg": f2, "../icons/ma.svg": C2, "../icons/menu.svg": $2, "../icons/options.svg": x2, "../icons/pants.svg": M2, "../icons/pause.svg": y2, "../icons/person.svg": L2, "../icons/play.svg": A2, "../icons/remove-circle.svg": H2, "../icons/right.svg": S2, "../icons/search.svg": E2, "../icons/send.svg": V2, "../icons/settings.svg": P2, "../icons/tiktok.svg": B2, "../icons/top-left.svg": O2, "../icons/top-right.svg": U2, "../icons/trash.svg": Z2, "../icons/up.svg": T2, "../icons/youtube.svg": N2 }))["../icons/download.svg"], import.meta.url).href;
627
+ t = new URL((/* @__PURE__ */ Object.assign({ "../icons/add-circle.svg": K, "../icons/bottom-left.svg": G, "../icons/bottom-right.svg": Q, "../icons/camera-video.svg": X, "../icons/camera.svg": Y, "../icons/cmd.svg": t2, "../icons/code.svg": e2, "../icons/down.svg": s2, "../icons/download.svg": o2, "../icons/edit.svg": i2, "../icons/explore.svg": r2, "../icons/external-2.svg": n2, "../icons/fullscreen-exit.svg": c2, "../icons/fullscreen.svg": l2, "../icons/github.svg": a2, "../icons/heart-filled.svg": h2, "../icons/heart.svg": d2, "../icons/home.svg": p2, "../icons/info.svg": g2, "../icons/input.svg": k2, "../icons/instagram.svg": w2, "../icons/left.svg": v2, "../icons/lock-closed.svg": u2, "../icons/lock-open.svg": _2, "../icons/lock.svg": m2, "../icons/login.svg": b2, "../icons/ma-2.svg": f2, "../icons/ma.svg": C2, "../icons/menu.svg": $2, "../icons/options.svg": x2, "../icons/pants.svg": M2, "../icons/pause.svg": y2, "../icons/person.svg": L2, "../icons/play.svg": A2, "../icons/remove-circle.svg": H2, "../icons/right.svg": S2, "../icons/search.svg": E2, "../icons/send.svg": V2, "../icons/settings.svg": P2, "../icons/tiktok.svg": B2, "../icons/top-left.svg": O2, "../icons/top-right.svg": U2, "../icons/trash.svg": Z2, "../icons/up.svg": T2, "../icons/youtube.svg": N2 }))[`../icons/${i}.svg`], import.meta.url).href;
628
628
  } catch {
629
- t = `/icons/${i}.svg`;
629
+ t = "/icons/download.svg";
630
630
  }
631
631
  let e;
632
632
  try {
@@ -30,9 +30,9 @@ var MaIcons=function(z){"use strict";var o0;var x=typeof document<"u"?document.c
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
31
  */function L0(i){return w({...i,state:!0,attribute:!1})}var A0=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,k=(i,t,e,s)=>{for(var o=s>1?void 0:s?S0(t,e):t,n=i.length-1,r;n>=0;n--)(r=i[n])&&(o=(s?r(t,e,o):r(o))||o);return s&&o&&A0(t,e,o),o};let g=class extends O{constructor(){super(...arguments),this.styled=!1,this.download=!1,this.leading=!1,this.name="top-right",this.altname="not-found",this.size="16",this.weight="5",this.color="hsl(0deg 0% 0%)",this.svg=null}updated(i){super.updated(i),i.has("name")&&this.modifySvg()}render(){const i=this.svg?y`<span .innerHTML=${this.svg}></span>`:y``;return this.href?y`
32
32
  <a download=${this.download} href=${this.href} class="${this.styled?"styled":""}">
33
- ${this.leading?y`${i}&thinsp;`:""}<slot></slot>${this.leading?"":y`${i}`}
33
+ ${this.leading?y`${i}&thinsp;`:""}<slot></slot>${this.leading?"":y`&thinsp;${i}`}
34
34
  </a>
35
- `:y`${i}`}async modifySvg(){const i=this.download?"download":this.name;let t;try{t=new URL(Object.assign({"../icons/add-circle.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/cmd.svg":s2,"../icons/code.svg":o2,"../icons/down.svg":i2,"../icons/download.svg":r2,"../icons/edit.svg":n2,"../icons/explore.svg":c2,"../icons/external-2.svg":a2,"../icons/fullscreen-exit.svg":l2,"../icons/fullscreen.svg":h2,"../icons/github.svg":d2,"../icons/heart-filled.svg":p2,"../icons/heart.svg":g2,"../icons/home.svg":k2,"../icons/info.svg":w2,"../icons/input.svg":v2,"../icons/instagram.svg":u2,"../icons/left.svg":_2,"../icons/lock-closed.svg":m2,"../icons/lock-open.svg":f2,"../icons/lock.svg":b2,"../icons/login.svg":C2,"../icons/ma-2.svg":$2,"../icons/ma.svg":x2,"../icons/menu.svg":M2,"../icons/options.svg":y2,"../icons/pants.svg":L2,"../icons/pause.svg":A2,"../icons/person.svg":S2,"../icons/play.svg":H2,"../icons/remove-circle.svg":E2,"../icons/right.svg":V2,"../icons/search.svg":P2,"../icons/send.svg":B2,"../icons/settings.svg":U2,"../icons/tiktok.svg":O2,"../icons/top-left.svg":T2,"../icons/top-right.svg":Z2,"../icons/trash.svg":R2,"../icons/up.svg":N2,"../icons/youtube.svg":j2})["../icons/download.svg"],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{t=`/icons/${i}.svg`}let e;try{e=new URL(Object.assign({"../icons/add-circle.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/cmd.svg":s2,"../icons/code.svg":o2,"../icons/down.svg":i2,"../icons/download.svg":r2,"../icons/edit.svg":n2,"../icons/explore.svg":c2,"../icons/external-2.svg":a2,"../icons/fullscreen-exit.svg":l2,"../icons/fullscreen.svg":h2,"../icons/github.svg":d2,"../icons/heart-filled.svg":p2,"../icons/heart.svg":g2,"../icons/home.svg":k2,"../icons/info.svg":w2,"../icons/input.svg":v2,"../icons/instagram.svg":u2,"../icons/left.svg":_2,"../icons/lock-closed.svg":m2,"../icons/lock-open.svg":f2,"../icons/lock.svg":b2,"../icons/login.svg":C2,"../icons/ma-2.svg":$2,"../icons/ma.svg":x2,"../icons/menu.svg":M2,"../icons/options.svg":y2,"../icons/pants.svg":L2,"../icons/pause.svg":A2,"../icons/person.svg":S2,"../icons/play.svg":H2,"../icons/remove-circle.svg":E2,"../icons/right.svg":V2,"../icons/search.svg":P2,"../icons/send.svg":B2,"../icons/settings.svg":U2,"../icons/tiktok.svg":O2,"../icons/top-left.svg":T2,"../icons/top-right.svg":Z2,"../icons/trash.svg":R2,"../icons/up.svg":N2,"../icons/youtube.svg":j2})[`../icons/${this.altname}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{e=`/icons/${this.altname}.svg`}let s,o;try{s=await fetch(t),o=await s.text()}catch{s=await fetch(e),o=await s.text()}const n=new DOMParser().parseFromString(o,"image/svg+xml"),r=n.querySelector("svg");if(!r)return"";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.href?"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}};g.styles=r0`
35
+ `:y`${i}`}async modifySvg(){const i=this.download?"download":this.name;let t;try{t=new URL(Object.assign({"../icons/add-circle.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/cmd.svg":s2,"../icons/code.svg":o2,"../icons/down.svg":i2,"../icons/download.svg":r2,"../icons/edit.svg":n2,"../icons/explore.svg":c2,"../icons/external-2.svg":a2,"../icons/fullscreen-exit.svg":l2,"../icons/fullscreen.svg":h2,"../icons/github.svg":d2,"../icons/heart-filled.svg":p2,"../icons/heart.svg":g2,"../icons/home.svg":k2,"../icons/info.svg":w2,"../icons/input.svg":v2,"../icons/instagram.svg":u2,"../icons/left.svg":_2,"../icons/lock-closed.svg":m2,"../icons/lock-open.svg":f2,"../icons/lock.svg":b2,"../icons/login.svg":C2,"../icons/ma-2.svg":$2,"../icons/ma.svg":x2,"../icons/menu.svg":M2,"../icons/options.svg":y2,"../icons/pants.svg":L2,"../icons/pause.svg":A2,"../icons/person.svg":S2,"../icons/play.svg":H2,"../icons/remove-circle.svg":E2,"../icons/right.svg":V2,"../icons/search.svg":P2,"../icons/send.svg":B2,"../icons/settings.svg":U2,"../icons/tiktok.svg":O2,"../icons/top-left.svg":T2,"../icons/top-right.svg":Z2,"../icons/trash.svg":R2,"../icons/up.svg":N2,"../icons/youtube.svg":j2})[`../icons/${i}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{t="/icons/download.svg"}let e;try{e=new URL(Object.assign({"../icons/add-circle.svg":Q,"../icons/bottom-left.svg":X,"../icons/bottom-right.svg":Y,"../icons/camera-video.svg":t2,"../icons/camera.svg":e2,"../icons/cmd.svg":s2,"../icons/code.svg":o2,"../icons/down.svg":i2,"../icons/download.svg":r2,"../icons/edit.svg":n2,"../icons/explore.svg":c2,"../icons/external-2.svg":a2,"../icons/fullscreen-exit.svg":l2,"../icons/fullscreen.svg":h2,"../icons/github.svg":d2,"../icons/heart-filled.svg":p2,"../icons/heart.svg":g2,"../icons/home.svg":k2,"../icons/info.svg":w2,"../icons/input.svg":v2,"../icons/instagram.svg":u2,"../icons/left.svg":_2,"../icons/lock-closed.svg":m2,"../icons/lock-open.svg":f2,"../icons/lock.svg":b2,"../icons/login.svg":C2,"../icons/ma-2.svg":$2,"../icons/ma.svg":x2,"../icons/menu.svg":M2,"../icons/options.svg":y2,"../icons/pants.svg":L2,"../icons/pause.svg":A2,"../icons/person.svg":S2,"../icons/play.svg":H2,"../icons/remove-circle.svg":E2,"../icons/right.svg":V2,"../icons/search.svg":P2,"../icons/send.svg":B2,"../icons/settings.svg":U2,"../icons/tiktok.svg":O2,"../icons/top-left.svg":T2,"../icons/top-right.svg":Z2,"../icons/trash.svg":R2,"../icons/up.svg":N2,"../icons/youtube.svg":j2})[`../icons/${this.altname}.svg`],x&&x.tagName.toUpperCase()==="SCRIPT"&&x.src||new URL("ma-icons.iife.js",document.baseURI).href).href}catch{e=`/icons/${this.altname}.svg`}let s,o;try{s=await fetch(t),o=await s.text()}catch{s=await fetch(e),o=await s.text()}const n=new DOMParser().parseFromString(o,"image/svg+xml"),r=n.querySelector("svg");if(!r)return"";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.href?"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}};g.styles=r0`
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.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "Ma Icons by Taavi Rübenhagen",
5
5
  "type": "module",
6
6
  "main": "dist/ma-icons.iife.js",