@phosphor-icons/webcomponents
Version:
A flexible icon family for the web
79 lines (78 loc) • 6.59 kB
JavaScript
import "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.mjs";
import { svg as e, html as c } from "../node_modules/.pnpm/lit-html@3.1.4/node_modules/lit-html/lit-html.mjs";
import { LitElement as Z } from "../node_modules/.pnpm/lit-element@4.0.6/node_modules/lit-element/lit-element.mjs";
import { customElement as A } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.mjs";
import { property as o } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.mjs";
import { css as H } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.mjs";
var v = Object.defineProperty, V = Object.getOwnPropertyDescriptor, h = (r, l, i, s) => {
for (var t = s > 1 ? void 0 : s ? V(l, i) : l, p = r.length - 1, m; p >= 0; p--)
(m = r[p]) && (t = (s ? m(l, i, t) : m(t)) || t);
return s && t && v(l, i, t), t;
};
let a = class extends Z {
constructor() {
super(...arguments), this.size = "1em", this.weight = "regular", this.color = "currentColor", this.mirrored = !1;
}
render() {
var r;
return c`<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((r = this.weight) != null ? r : "regular")}
</svg>`;
}
};
a.weightsMap = /* @__PURE__ */ new Map([
[
"thin",
e`<path d="M172,104a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h80A4,4,0,0,1,172,104Zm-4,28H88a4,4,0,0,0,0,8h80a4,4,0,0,0,0-8Zm84-28v24a28,28,0,0,1-28,28h-7.84c-6.41,16-20.74,29.76-42.37,40.58a187.14,187.14,0,0,1-45.07,15.36,4.35,4.35,0,0,1-1.44,0,187.14,187.14,0,0,1-45.07-15.36C60.58,185.76,46.25,172,39.84,156H32A28,28,0,0,1,4,128V104A28,28,0,0,1,32,76h4.06A12,12,0,0,1,43.9,65.81l80-29.09a12,12,0,0,1,8.2,0l80,29.09A12,12,0,0,1,219.94,76H224A28,28,0,0,1,252,104ZM37.35,148A53.71,53.71,0,0,1,36,136V84H32a20,20,0,0,0-20,20v24a20,20,0,0,0,20,20ZM212,136V77.09a4,4,0,0,0-2.63-3.76l-80-29.09a4,4,0,0,0-2.74,0l-80,29.09A4,4,0,0,0,44,77.09V136c0,49.42,75.76,66.24,84,67.92C136.24,202.24,212,185.42,212,136Zm32-32a20,20,0,0,0-20-20h-4v52a53.71,53.71,0,0,1-1.35,12H224a20,20,0,0,0,20-20Z"/>`
],
[
"light",
e`<path d="M174,104a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h80A6,6,0,0,1,174,104Zm-6,26H88a6,6,0,0,0,0,12h80a6,6,0,0,0,0-12Zm86-26v24a30,30,0,0,1-30,30h-6.5c-6.81,15.88-21.28,29.6-42.82,40.37a189,189,0,0,1-45.61,15.53,5.77,5.77,0,0,1-2.14,0,189,189,0,0,1-45.61-15.53C59.78,187.6,45.31,173.88,38.5,158H32A30,30,0,0,1,2,128V104A30,30,0,0,1,32,74h2.35a14,14,0,0,1,8.87-10.07l80-29.09a14,14,0,0,1,9.56,0l80,29.09A14,14,0,0,1,221.65,74H224A30,30,0,0,1,254,104ZM34.89,146A57,57,0,0,1,34,136V86H32a18,18,0,0,0-18,18v24a18,18,0,0,0,18,18ZM210,136V77.09a2,2,0,0,0-1.32-1.88l-80-29.09a2,2,0,0,0-1.36,0l-80,29.09A2,2,0,0,0,46,77.09V136c0,20.7,13.61,38,40.46,51.52A180.79,180.79,0,0,0,128,201.88a181,181,0,0,0,41.54-14.36C196.39,174,210,156.7,210,136Zm32-32a18,18,0,0,0-18-18h-2v50a57,57,0,0,1-.89,10H224a18,18,0,0,0,18-18Z"/>`
],
[
"regular",
e`<path d="M176,104a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,104Zm-8,24H88a8,8,0,0,0,0,16h80a8,8,0,0,0,0-16Zm88-24v24a32,32,0,0,1-32,32h-5.19c-7.19,15.8-21.79,29.43-43.23,40.16a191.16,191.16,0,0,1-46.15,15.71,7.93,7.93,0,0,1-2.86,0,191.16,191.16,0,0,1-46.15-15.71C59,189.43,44.38,175.8,37.19,160H32A32,32,0,0,1,0,128V104A32,32,0,0,1,32,72h.85a16,16,0,0,1,9.68-10l80-29.09a16.06,16.06,0,0,1,10.94,0l80,29.09a16,16,0,0,1,9.68,10H224A32,32,0,0,1,256,104ZM32.55,144a58.74,58.74,0,0,1-.55-8V88a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16ZM208,136V77.09L128,48,48,77.09V136c0,45,69.09,61.52,80,63.84C138.89,197.52,208,181,208,136Zm32-32a16,16,0,0,0-16-16v48a58.74,58.74,0,0,1-.55,8H224a16,16,0,0,0,16-16Z"/>`
],
[
"bold",
e`<path d="M92,88h72a12,12,0,0,1,0,24H92a12,12,0,0,1,0-24Zm72,40H92a12,12,0,0,0,0,24h72a12,12,0,0,0,0-24Zm92-24v24a36,36,0,0,1-36,36h-6.15c-7.22,15.48-20.72,28.87-40.07,39.52a169.11,169.11,0,0,1-43.43,16.25,12.12,12.12,0,0,1-4.7,0,169.11,169.11,0,0,1-43.43-16.25c-19.35-10.65-32.85-24-40.07-39.52H36A36,36,0,0,1,0,128V104A36,36,0,0,1,36,68h2a19.93,19.93,0,0,1,10.55-9.77l72-28.8a19.89,19.89,0,0,1,14.86,0l72,28.8A19.93,19.93,0,0,1,218,68h2A36,36,0,0,1,256,104ZM36.13,140c-.08-1.32-.13-2.65-.13-4V92a12,12,0,0,0-12,12v24a12,12,0,0,0,12,12ZM196,79.51l-68-27.2L60,79.51V136c0,40.63,55.72,56.65,68,59.69,12.25-3,68-19.05,68-59.69ZM232,104a12,12,0,0,0-12-12v44c0,1.35-.05,2.68-.13,4H220a12,12,0,0,0,12-12Z"/>`
],
[
"fill",
e`<path d="M224,72h-.85a16,16,0,0,0-9.68-10L133.47,33a16.06,16.06,0,0,0-10.94,0l-80,29.09a16,16,0,0,0-9.68,10H32A32,32,0,0,0,0,104v24a32,32,0,0,0,32,32h5.19c7.19,15.8,21.79,29.43,43.23,40.16a191.16,191.16,0,0,0,46.15,15.71,7.93,7.93,0,0,0,2.86,0,191.16,191.16,0,0,0,46.15-15.71c21.44-10.73,36-24.36,43.23-40.16H224a32,32,0,0,0,32-32V104A32,32,0,0,0,224,72ZM32,144a16,16,0,0,1-16-16V104A16,16,0,0,1,32,88v48a58.74,58.74,0,0,0,.55,8Zm136,0H88a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Zm0-32H88a8,8,0,0,1,0-16h80a8,8,0,0,1,0,16Zm72,16a16,16,0,0,1-16,16h-.55a58.74,58.74,0,0,0,.55-8V88a16,16,0,0,1,16,16Z"/>`
],
[
"duotone",
e`<path d="M216,77.09V136c0,56-88,72-88,72s-88-16-88-72V77.09a8,8,0,0,1,5.27-7.52l80-29.09a8,8,0,0,1,5.46,0l80,29.09A8,8,0,0,1,216,77.09Z" opacity="0.2"/><path d="M176,104a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h80A8,8,0,0,1,176,104Zm-8,24H88a8,8,0,0,0,0,16h80a8,8,0,0,0,0-16Zm88-24v24a32,32,0,0,1-32,32h-5.19c-7.19,15.8-21.79,29.43-43.23,40.16a191.16,191.16,0,0,1-46.15,15.71,7.93,7.93,0,0,1-2.86,0,191.16,191.16,0,0,1-46.15-15.71C59,189.43,44.38,175.8,37.19,160H32A32,32,0,0,1,0,128V104A32,32,0,0,1,32,72h.85a16,16,0,0,1,9.68-10l80-29.09a16.06,16.06,0,0,1,10.94,0l80,29.09a16,16,0,0,1,9.68,10H224A32,32,0,0,1,256,104ZM32.55,144a58.74,58.74,0,0,1-.55-8V88a16,16,0,0,0-16,16v24a16,16,0,0,0,16,16ZM208,136V77.09L128,48,48,77.09V136c0,45,69.09,61.52,80,63.84C138.89,197.52,208,181,208,136Zm32-32a16,16,0,0,0-16-16v48a58.74,58.74,0,0,1-.55,8H224a16,16,0,0,0,16-16Z"/>`
]
]);
a.styles = H`
:host {
display: contents;
}
`;
h([
o({ type: String, reflect: !0 })
], a.prototype, "size", 2);
h([
o({ type: String, reflect: !0 })
], a.prototype, "weight", 2);
h([
o({ type: String, reflect: !0 })
], a.prototype, "color", 2);
h([
o({ type: Boolean, reflect: !0 })
], a.prototype, "mirrored", 2);
a = h([
A("ph-face-mask")
], a);
export {
a as PhFaceMask
};