UNPKG

@phosphor-icons/webcomponents

Version:
79 lines (78 loc) 3.06 kB
import "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.mjs"; import { svg as e, html as g } 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 V } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.mjs"; import { property as p } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.mjs"; import { css as c } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.mjs"; var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, h = (a, o, i, s) => { for (var r = s > 1 ? void 0 : s ? u(o, i) : o, l = a.length - 1, n; l >= 0; l--) (n = a[l]) && (r = (s ? n(o, i, r) : n(r)) || r); return s && r && f(o, i, r), r; }; let t = class extends m { constructor() { super(...arguments), this.size = "1em", this.weight = "regular", this.color = "currentColor", this.mirrored = !1; } render() { var a; return g`<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} > ${t.weightsMap.get((a = this.weight) != null ? a : "regular")} </svg>`; } }; t.weightsMap = /* @__PURE__ */ new Map([ [ "thin", e`<path d="M208,44H96a60,60,0,0,0,0,120h44v44a4,4,0,0,0,8,0V52h32V208a4,4,0,0,0,8,0V52h20a4,4,0,0,0,0-8ZM140,156H96A52,52,0,0,1,96,52h44Z"/>` ], [ "light", e`<path d="M208,42H96a62,62,0,0,0,0,124h42v42a6,6,0,0,0,12,0V54h28V208a6,6,0,0,0,12,0V54h18a6,6,0,0,0,0-12ZM138,154H96A50,50,0,0,1,96,54h42Z"/>` ], [ "regular", e`<path d="M208,40H96a64,64,0,0,0,0,128h40v40a8,8,0,0,0,16,0V56h24V208a8,8,0,0,0,16,0V56h16a8,8,0,0,0,0-16ZM136,152H96a48,48,0,0,1,0-96h40Z"/>` ], [ "bold", e`<path d="M208,36H96a68,68,0,0,0,0,136h36v36a12,12,0,0,0,24,0V60h16V208a12,12,0,0,0,24,0V60h12a12,12,0,0,0,0-24ZM132,148H96a44,44,0,0,1,0-88h36Z"/>` ], [ "fill", e`<path d="M216,48a8,8,0,0,1-8,8H192V208a8,8,0,0,1-16,0V56H152V208a8,8,0,0,1-16,0V168H96A64,64,0,0,1,96,40H208A8,8,0,0,1,216,48Z"/>` ], [ "duotone", e`<path d="M144,48V160H96A56,56,0,0,1,96,48Z" opacity="0.2"/><path d="M208,40H96a64,64,0,0,0,0,128h40v40a8,8,0,0,0,16,0V56h24V208a8,8,0,0,0,16,0V56h16a8,8,0,0,0,0-16ZM136,152H96a48,48,0,0,1,0-96h40Z"/>` ] ]); t.styles = c` :host { display: contents; } `; h([ p({ type: String, reflect: !0 }) ], t.prototype, "size", 2); h([ p({ type: String, reflect: !0 }) ], t.prototype, "weight", 2); h([ p({ type: String, reflect: !0 }) ], t.prototype, "color", 2); h([ p({ type: Boolean, reflect: !0 }) ], t.prototype, "mirrored", 2); t = h([ V("ph-paragraph") ], t); export { t as PhParagraph };