@phosphor-icons/webcomponents
Version:
A flexible icon family for the web
79 lines (78 loc) • 5.29 kB
JavaScript
import "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.mjs";
import { svg as r, html as A } from "../node_modules/.pnpm/lit-html@3.1.4/node_modules/lit-html/lit-html.mjs";
import { LitElement as m } from "../node_modules/.pnpm/lit-element@4.0.6/node_modules/lit-element/lit-element.mjs";
import { customElement as n } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.mjs";
import { property as l } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.mjs";
import { css as g } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.mjs";
var f = Object.defineProperty, c = Object.getOwnPropertyDescriptor, h = (e, o, i, s) => {
for (var t = s > 1 ? void 0 : s ? c(o, i) : o, p = e.length - 1, H; p >= 0; p--)
(H = e[p]) && (t = (s ? H(o, i, t) : H(t)) || t);
return s && t && f(o, i, t), t;
};
let a = class extends m {
constructor() {
super(...arguments), this.size = "1em", this.weight = "regular", this.color = "currentColor", this.mirrored = !1;
}
render() {
var e;
return A`<svg
xmlns="http://www.w3.org/2000/svg"
width="${this.size}"
height="${this.size}"
fill="${this.color}"
viewBox="0 0 256 256"
transform=${this.mirrored ? "scale(-1, 1)" : null}
>
${a.weightsMap.get((e = this.weight) != null ? e : "regular")}
</svg>`;
}
};
a.weightsMap = /* @__PURE__ */ new Map([
[
"thin",
r`<path d="M244,160a36,36,0,0,1-36,36H190.57a52.19,52.19,0,0,1-47.12-30l-30.15-64.6A44.17,44.17,0,0,0,73.43,76H64a44.05,44.05,0,0,0-44,44v24a44.05,44.05,0,0,0,44,44h8a36,36,0,0,0,33-21.6,4,4,0,1,1,7.33,3.2A44,44,0,0,1,72,196H64a52.06,52.06,0,0,1-52-52V120A52.06,52.06,0,0,1,64,68h9.43a52.19,52.19,0,0,1,47.12,30l30.15,64.6A44.17,44.17,0,0,0,190.57,188H208a28,28,0,0,0,0-56H188a32,32,0,0,1,0-64h20a28,28,0,0,1,28,28,4,4,0,0,1-8,0,20,20,0,0,0-20-20H188a24,24,0,0,0,0,48h20A36,36,0,0,1,244,160Z"/>`
],
[
"light",
r`<path d="M246,160a38,38,0,0,1-38,38H190.57a54.21,54.21,0,0,1-48.94-31.16l-30.14-64.6A42.14,42.14,0,0,0,73.43,78H64a42,42,0,0,0-42,42v24a42,42,0,0,0,42,42h8a34,34,0,0,0,31.17-20.4,6,6,0,0,1,11,4.8A46,46,0,0,1,72,198H64a54.06,54.06,0,0,1-54-54V120A54.06,54.06,0,0,1,64,66h9.43a54.21,54.21,0,0,1,48.94,31.16l30.14,64.6A42.14,42.14,0,0,0,190.57,186H208a26,26,0,0,0,0-52H188a34,34,0,0,1,0-68h20a30,30,0,0,1,30,30,6,6,0,0,1-12,0,18,18,0,0,0-18-18H188a22,22,0,0,0,0,44h20A38,38,0,0,1,246,160Z"/>`
],
[
"regular",
r`<path d="M248,160a40,40,0,0,1-40,40H190.57a56.22,56.22,0,0,1-50.75-32.32l-30.14-64.6A40.15,40.15,0,0,0,73.43,80H64a40,40,0,0,0-40,40v24a40,40,0,0,0,40,40h8a32,32,0,0,0,29.34-19.2A8,8,0,1,1,116,171.2,48,48,0,0,1,72,200H64A56.06,56.06,0,0,1,8,144V120A56.06,56.06,0,0,1,64,64h9.43a56.22,56.22,0,0,1,50.75,32.32l30.14,64.6A40.15,40.15,0,0,0,190.57,184H208a24,24,0,0,0,0-48H188a36,36,0,0,1,0-72h20a32,32,0,0,1,32,32,8,8,0,0,1-16,0,16,16,0,0,0-16-16H188a20,20,0,0,0,0,40h20A40,40,0,0,1,248,160Z"/>`
],
[
"bold",
r`<path d="M252,160a44.05,44.05,0,0,1-44,44H190.57a60.2,60.2,0,0,1-54.37-34.63l-30.15-64.59A36.13,36.13,0,0,0,73.43,84H64a36,36,0,0,0-36,36v24a36,36,0,0,0,36,36h8a28,28,0,0,0,25.68-16.8,12,12,0,1,1,22,9.6A52,52,0,0,1,72,204H64A60.07,60.07,0,0,1,4,144V120A60.07,60.07,0,0,1,64,60h9.43A60.2,60.2,0,0,1,127.8,94.63L158,159.22A36.13,36.13,0,0,0,190.57,180H208a20,20,0,0,0,0-40H188a40,40,0,0,1,0-80h20a36,36,0,0,1,36,36,12,12,0,0,1-24,0,12,12,0,0,0-12-12H188a16,16,0,0,0,0,32h20A44.05,44.05,0,0,1,252,160Z"/>`
],
[
"fill",
r`<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM184,184H172.61a40.09,40.09,0,0,1-36.42-23.45l-23-50.48A24,24,0,0,0,91.39,96H80a24,24,0,0,0-24,24v24a24,24,0,0,0,24,24h8a23.92,23.92,0,0,0,18.74-9,8,8,0,1,1,12.48,10A39.83,39.83,0,0,1,88,184H80a40,40,0,0,1-40-40V120A40,40,0,0,1,80,80H91.39a40.09,40.09,0,0,1,36.42,23.45l22.95,50.48A24,24,0,0,0,172.61,168H184a16,16,0,0,0,0-32h-8a28,28,0,0,1,0-56h12a20,20,0,0,1,20,20,8,8,0,0,1-16,0,4,4,0,0,0-4-4H176a12,12,0,0,0,0,24h8a32,32,0,0,1,0,64Z"/>`
],
[
"duotone",
r`<path d="M240,160a32,32,0,0,1-32,32H64a48,48,0,0,1-48-48V120A48,48,0,0,1,64,72H208a24,24,0,0,1,24,24Z" opacity="0.2"/><path d="M248,160a40,40,0,0,1-40,40H190.57a56.22,56.22,0,0,1-50.75-32.32l-30.14-64.6A40.15,40.15,0,0,0,73.43,80H64a40,40,0,0,0-40,40v24a40,40,0,0,0,40,40h8a32,32,0,0,0,29.34-19.2A8,8,0,1,1,116,171.2,48,48,0,0,1,72,200H64A56.06,56.06,0,0,1,8,144V120A56.06,56.06,0,0,1,64,64h9.43a56.22,56.22,0,0,1,50.75,32.32l30.14,64.6A40.15,40.15,0,0,0,190.57,184H208a24,24,0,0,0,0-48H188a36,36,0,0,1,0-72h20a32,32,0,0,1,32,32,8,8,0,0,1-16,0,16,16,0,0,0-16-16H188a20,20,0,0,0,0,40h20A40,40,0,0,1,248,160Z"/>`
]
]);
a.styles = g`
:host {
display: contents;
}
`;
h([
l({ type: String, reflect: !0 })
], a.prototype, "size", 2);
h([
l({ type: String, reflect: !0 })
], a.prototype, "weight", 2);
h([
l({ type: String, reflect: !0 })
], a.prototype, "color", 2);
h([
l({ type: Boolean, reflect: !0 })
], a.prototype, "mirrored", 2);
a = h([
n("ph-lastfm-logo")
], a);
export {
a as PhLastfmLogo
};