ma-icons 0.3.21 → 0.3.22
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.
- package/dist/ma-icons.es.js +1 -1
- package/dist/ma-icons.iife.js +1 -1
- package/package.json +1 -1
package/dist/ma-icons.es.js
CHANGED
|
@@ -621,7 +621,7 @@ let g = class extends E {
|
|
|
621
621
|
` : x`${i}`;
|
|
622
622
|
}
|
|
623
623
|
async modifySvg() {
|
|
624
|
-
const i =
|
|
624
|
+
const i = this.download ? "download" : this.name;
|
|
625
625
|
let t;
|
|
626
626
|
try {
|
|
627
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;
|
package/dist/ma-icons.iife.js
CHANGED
|
@@ -32,7 +32,7 @@ var MaIcons=function(z){"use strict";var o0;var x=typeof document<"u"?document.c
|
|
|
32
32
|
<a download=${this.download} href=${this.href} class="${this.styled?"styled":""}">
|
|
33
33
|
${this.leading?y`${i} `:""}<slot></slot>${this.leading?"":y` ${i}`}
|
|
34
34
|
</a>
|
|
35
|
-
`:y`${i}`}async modifySvg(){const i=
|
|
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/${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`
|
|
36
36
|
svg {
|
|
37
37
|
display: block;
|
|
38
38
|
}
|