UNPKG

@phosphor-icons/webcomponents

Version:
79 lines (78 loc) 5.68 kB
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 c } from "../node_modules/.pnpm/lit-element@4.0.6/node_modules/lit-element/lit-element.mjs"; import { customElement as Z } 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 v } from "../node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.mjs"; var n = Object.defineProperty, g = Object.getOwnPropertyDescriptor, s = (e, o, m, i) => { for (var t = i > 1 ? void 0 : i ? g(o, m) : o, h = e.length - 1, l; h >= 0; h--) (l = e[h]) && (t = (i ? l(o, m, t) : l(t)) || t); return i && t && n(o, m, t), t; }; let a = class extends c { 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="M200,116a44.16,44.16,0,0,0-42,30.88,27.22,27.22,0,0,0-6-.66c-15.44,0-28,13-28,28.89S136.56,204,152,204h48a44,44,0,0,0,0-88Zm0,80H152c-11,0-20-9.37-20-20.89s9-20.89,20-20.89a19.13,19.13,0,0,1,7.29,1.43,4,4,0,0,0,5.44-2.9A36,36,0,1,1,200,196ZM20,160v16a4,4,0,0,1-8,0V160A100,100,0,0,1,181.71,88.31,4,4,0,0,1,176.14,94,92,92,0,0,0,20,160Zm92-60a60.07,60.07,0,0,0-60,60v16a4,4,0,0,1-8,0V160a68,68,0,0,1,108.24-54.82,4,4,0,1,1-4.74,6.44A59.57,59.57,0,0,0,112,100Zm11.31,29.79a4,4,0,0,1-4.81,3A28,28,0,0,0,84,160v16a4,4,0,0,1-8,0V160a36,36,0,0,1,36-36,36.58,36.58,0,0,1,8.35,1A4,4,0,0,1,123.31,129.79Z"/>` ], [ "light", r`<path d="M200,114a46.18,46.18,0,0,0-43.35,30.59,30,30,0,0,0-4.65-.37c-16.54,0-30,13.86-30,30.89S135.46,206,152,206h48a46,46,0,0,0,0-92Zm0,80H152c-9.93,0-18-8.47-18-18.89s8.07-18.89,18-18.89a17.12,17.12,0,0,1,6.53,1.28,6,6,0,0,0,8.16-4.35A34,34,0,1,1,200,194ZM22,160v16a6,6,0,0,1-12,0V160A102,102,0,0,1,183.11,86.87a6,6,0,1,1-8.37,8.61A90,90,0,0,0,22,160Zm90-58a58.07,58.07,0,0,0-58,58v16a6,6,0,0,1-12,0V160a70,70,0,0,1,111.42-56.43,6,6,0,1,1-7.11,9.66A57.5,57.5,0,0,0,112,102Zm6,32.7a26.59,26.59,0,0,0-6-.7,26,26,0,0,0-26,26v16a6,6,0,0,1-12,0V160a38,38,0,0,1,46.81-37A6,6,0,1,1,118,134.7Z"/>` ], [ "regular", r`<path d="M200,112a48.18,48.18,0,0,0-44.66,30.4,31,31,0,0,0-3.34-.18c-17.65,0-32,14.76-32,32.89S134.35,208,152,208h48a48,48,0,0,0,0-96Zm0,80H152c-8.82,0-16-7.58-16-16.89s7.18-16.89,16-16.89a15,15,0,0,1,5.78,1.14,8,8,0,0,0,10.87-5.81A32,32,0,1,1,200,192ZM24,160v16a8,8,0,0,1-16,0V160A104,104,0,0,1,184.5,85.44a8,8,0,0,1-11.15,11.47A88,88,0,0,0,24,160Zm32,0v16a8,8,0,0,1-16,0V160a72,72,0,0,1,114.6-58,8,8,0,1,1-9.47,12.89A56,56,0,0,0,56,160Zm61.57-23.35A24,24,0,0,0,88,160v16a8,8,0,0,1-16,0V160a40,40,0,0,1,49.27-38.92,8,8,0,1,1-3.7,15.57Z"/>` ], [ "bold", r`<path d="M204,108a52.23,52.23,0,0,0-47.23,30.23H156c-19.85,0-36,16.55-36,36.89S136.15,212,156,212h48a52,52,0,0,0,0-104Zm0,80H156c-6.62,0-12-5.78-12-12.89s5.38-12.89,12-12.89a11,11,0,0,1,4.26.84,12,12,0,0,0,16.31-8.71A28,28,0,1,1,204,188Zm-94.78-51.16a12,12,0,0,1-2.12,16.83A8,8,0,0,0,104,160v16a12,12,0,0,1-24,0V160a31.8,31.8,0,0,1,12.38-25.28A12,12,0,0,1,109.22,136.84Zm27.44-18A48,48,0,0,0,64,160v16a12,12,0,0,1-24,0V160A72,72,0,0,1,149,98.23a12,12,0,0,1-12.35,20.58ZM24,160v16a12,12,0,0,1-24,0V160A112,112,0,0,1,185.47,75.46a12,12,0,0,1-15.75,18.11A88,88,0,0,0,24,160Z"/>` ], [ "fill", r`<path d="M248,160a48.05,48.05,0,0,1-48,48H152c-17.65,0-32-14.75-32-32.89s14.35-32.89,32-32.89a31,31,0,0,1,3.34.18A48,48,0,0,1,248,160ZM112,72a87.57,87.57,0,0,1,61.35,24.91A8,8,0,0,0,184.5,85.44,104,104,0,0,0,8,160v16a8,8,0,0,0,16,0V160A88.1,88.1,0,0,1,112,72Zm0,32a55.58,55.58,0,0,1,33.13,10.84A8,8,0,1,0,154.6,102,72,72,0,0,0,40,160v16a8,8,0,0,0,16,0V160A56.06,56.06,0,0,1,112,104Zm15.21,26.71a8,8,0,0,0-5.94-9.63A40,40,0,0,0,72,160v16a8,8,0,0,0,16,0V160a24,24,0,0,1,29.57-23.35A8,8,0,0,0,127.21,130.71Z"/>` ], [ "duotone", r`<path d="M240,160a40,40,0,0,1-40,40H152c-13.25,0-24-11.14-24-24.89s10.75-24.89,24-24.89a23.33,23.33,0,0,1,8.81,1.73A40,40,0,0,1,240,160Z" opacity="0.2"/><path d="M200,112a48.18,48.18,0,0,0-44.66,30.4,31,31,0,0,0-3.34-.18c-17.65,0-32,14.76-32,32.89S134.35,208,152,208h48a48,48,0,0,0,0-96Zm0,80H152c-8.82,0-16-7.58-16-16.89s7.18-16.89,16-16.89a15,15,0,0,1,5.78,1.14,8,8,0,0,0,10.87-5.81A32,32,0,1,1,200,192ZM24,160v16a8,8,0,0,1-16,0V160A104,104,0,0,1,184.5,85.44a8,8,0,0,1-11.15,11.47A88,88,0,0,0,24,160Zm32,0v16a8,8,0,0,1-16,0V160a72,72,0,0,1,114.6-58,8,8,0,1,1-9.47,12.89A56,56,0,0,0,56,160Zm61.57-23.35A24,24,0,0,0,88,160v16a8,8,0,0,1-16,0V160a40,40,0,0,1,49.27-38.92,8,8,0,1,1-3.7,15.57Z"/>` ] ]); a.styles = v` :host { display: contents; } `; s([ p({ type: String, reflect: !0 }) ], a.prototype, "size", 2); s([ p({ type: String, reflect: !0 }) ], a.prototype, "weight", 2); s([ p({ type: String, reflect: !0 }) ], a.prototype, "color", 2); s([ p({ type: Boolean, reflect: !0 }) ], a.prototype, "mirrored", 2); a = s([ Z("ph-rainbow-cloud") ], a); export { a as PhRainbowCloud };