@phosphor-icons/webcomponents
Version:
A flexible icon family for the web
79 lines (78 loc) • 5.44 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 V } from "../node_modules/.pnpm/lit-html@3.1.4/node_modules/lit-html/lit-html.mjs";
import { LitElement as A } from "../node_modules/.pnpm/lit-element@4.0.6/node_modules/lit-element/lit-element.mjs";
import { customElement as H } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.mjs";
import { property as i } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.mjs";
import { css as l } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.mjs";
var v = Object.defineProperty, M = Object.getOwnPropertyDescriptor, h = (r, o, m, s) => {
for (var t = s > 1 ? void 0 : s ? M(o, m) : o, Z = r.length - 1, p; Z >= 0; Z--)
(p = r[Z]) && (t = (s ? p(o, m, t) : p(t)) || t);
return s && t && v(o, m, t), t;
};
let a = class extends A {
constructor() {
super(...arguments), this.size = "1em", this.weight = "regular", this.color = "currentColor", this.mirrored = !1;
}
render() {
var r;
return V`<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="M100,120a8,8,0,1,1,8-8A8,8,0,0,1,100,120Zm56-16a8,8,0,1,0,8,8A8,8,0,0,0,156,104Zm-2.13,44.62a49,49,0,0,1-51.74,0,4,4,0,0,0-4.26,6.77,57,57,0,0,0,60.26,0,4,4,0,0,0-4.26-6.76ZM212,80v96a28,28,0,0,1-24,27.71V224a12,12,0,0,1-12,12H80a12,12,0,0,1-12-12V203.71A28,28,0,0,1,44,176V80A28,28,0,0,1,72,52H92V32a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52h20A28,28,0,0,1,212,80ZM100,52h56V32a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4Zm80,172V204H76v20a4,4,0,0,0,4,4h96A4,4,0,0,0,180,224ZM204,80a20,20,0,0,0-20-20H72A20,20,0,0,0,52,80v96a20,20,0,0,0,20,20H184a20,20,0,0,0,20-20Z"/>`
],
[
"light",
e`<path d="M100,122a10,10,0,1,1,10-10A10,10,0,0,1,100,122Zm56-20a10,10,0,1,0,10,10A10,10,0,0,0,156,102Zm-3.2,44.92a47,47,0,0,1-49.6,0,6,6,0,0,0-6.4,10.16,59,59,0,0,0,62.4,0,6,6,0,1,0-6.4-10.16ZM214,80v96a30.05,30.05,0,0,1-24,29.4V224a14,14,0,0,1-14,14H80a14,14,0,0,1-14-14V205.4A30.05,30.05,0,0,1,42,176V80A30,30,0,0,1,72,50H90V32a14,14,0,0,1,14-14h48a14,14,0,0,1,14,14V50h18A30,30,0,0,1,214,80ZM102,50h52V32a2,2,0,0,0-2-2H104a2,2,0,0,0-2,2Zm76,174V206H78v18a2,2,0,0,0,2,2h96A2,2,0,0,0,178,224ZM202,80a18,18,0,0,0-18-18H72A18,18,0,0,0,54,80v96a18,18,0,0,0,18,18H184a18,18,0,0,0,18-18Z"/>`
],
[
"regular",
e`<path d="M100,124a12,12,0,1,1,12-12A12,12,0,0,1,100,124Zm56-24a12,12,0,1,0,12,12A12,12,0,0,0,156,100Zm-4.27,45.23a45,45,0,0,1-47.46,0,8,8,0,0,0-8.54,13.54,61,61,0,0,0,64.54,0,8,8,0,0,0-8.54-13.54ZM216,80v96a32.06,32.06,0,0,1-24,31v17a16,16,0,0,1-16,16H80a16,16,0,0,1-16-16V207a32.06,32.06,0,0,1-24-31V80A32,32,0,0,1,72,48H88V32a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V48h16A32,32,0,0,1,216,80ZM104,48h48V32H104Zm72,176V208H80v16ZM200,80a16,16,0,0,0-16-16H72A16,16,0,0,0,56,80v96a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16Z"/>`
],
[
"bold",
e`<path d="M84,112a16,16,0,1,1,16,16A16,16,0,0,1,84,112Zm72-16a16,16,0,1,0,16,16A16,16,0,0,0,156,96Zm-6.4,45.85a41,41,0,0,1-43.2,0,12,12,0,1,0-12.8,20.3,65,65,0,0,0,68.8,0,12,12,0,1,0-12.8-20.3ZM220,84v88a36.07,36.07,0,0,1-24,33.94V224a20,20,0,0,1-20,20H80a20,20,0,0,1-20-20V205.94A36.07,36.07,0,0,1,36,172V84A36,36,0,0,1,72,48H84V32a20,20,0,0,1,20-20h48a20,20,0,0,1,20,20V48h12A36,36,0,0,1,220,84ZM108,48h40V36H108Zm64,172V208H84v12ZM196,84a12,12,0,0,0-12-12H72A12,12,0,0,0,60,84v88a12,12,0,0,0,12,12H184a12,12,0,0,0,12-12Z"/>`
],
[
"fill",
e`<path d="M184,48H168V32a16,16,0,0,0-16-16H104A16,16,0,0,0,88,32V48H72A32,32,0,0,0,40,80v96a32.06,32.06,0,0,0,24,31v17a16,16,0,0,0,16,16h96a16,16,0,0,0,16-16V207a32.06,32.06,0,0,0,24-31V80A32,32,0,0,0,184,48Zm-28,52a12,12,0,1,1-12,12A12,12,0,0,1,156,100Zm4.27,58.77a61,61,0,0,1-64.54,0,8,8,0,0,1,8.54-13.54,45,45,0,0,0,47.46,0,8,8,0,0,1,8.54,13.54ZM104,32h48V48H104Zm-4,68a12,12,0,1,1-12,12A12,12,0,0,1,100,100Zm76,124H80V208h96Z"/>`
],
[
"duotone",
e`<path d="M208,80v96a24,24,0,0,1-24,24H72a24,24,0,0,1-24-24V80A24,24,0,0,1,72,56H184A24,24,0,0,1,208,80Z" opacity="0.2"/><path d="M100,124a12,12,0,1,1,12-12A12,12,0,0,1,100,124Zm56-24a12,12,0,1,0,12,12A12,12,0,0,0,156,100Zm-4.27,45.23a45,45,0,0,1-47.46,0,8,8,0,0,0-8.54,13.54,61,61,0,0,0,64.54,0,8,8,0,0,0-8.54-13.54ZM216,80v96a32.06,32.06,0,0,1-24,31v17a16,16,0,0,1-16,16H80a16,16,0,0,1-16-16V207a32.06,32.06,0,0,1-24-31V80A32,32,0,0,1,72,48H88V32a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V48h16A32,32,0,0,1,216,80ZM104,48h48V32H104Zm72,176V208H80v16ZM200,80a16,16,0,0,0-16-16H72A16,16,0,0,0,56,80v96a16,16,0,0,0,16,16H184a16,16,0,0,0,16-16Z"/>`
]
]);
a.styles = l`
:host {
display: contents;
}
`;
h([
i({ type: String, reflect: !0 })
], a.prototype, "size", 2);
h([
i({ type: String, reflect: !0 })
], a.prototype, "weight", 2);
h([
i({ type: String, reflect: !0 })
], a.prototype, "color", 2);
h([
i({ type: Boolean, reflect: !0 })
], a.prototype, "mirrored", 2);
a = h([
H("ph-lego-smiley")
], a);
export {
a as PhLegoSmiley
};