@styleon/foundation 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/button/button.component.d.ts +6 -0
  2. package/dist/button/button.component.js +32 -0
  3. package/dist/button/button.scss.js +4 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +6 -0
  6. package/dist/modal/modal.d.ts +5 -0
  7. package/dist/modal/modal.js +19 -0
  8. package/dist/modal/modal.scss.js +4 -0
  9. package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
  10. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  11. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  12. package/dist/node_modules/@lit/reactive-element/reactive-element.js +247 -0
  13. package/dist/node_modules/lit-element/lit-element.js +49 -0
  14. package/dist/node_modules/lit-html/lit-html.js +242 -0
  15. package/dist/storybook-static/assets/Button-B2efaGtC.css +1 -0
  16. package/dist/storybook-static/assets/Button-D8uvIB3s.js +18 -0
  17. package/dist/storybook-static/assets/Button.stories-BxBqJzAy.js +20 -0
  18. package/dist/storybook-static/assets/Color-YHDXOIA2-DOA8OpHI.js +1 -0
  19. package/dist/storybook-static/assets/DocsRenderer-CFRXHY34-Dj3MetZT.js +634 -0
  20. package/dist/storybook-static/assets/Header-Ck-SSN7O.css +1 -0
  21. package/dist/storybook-static/assets/Header.stories-I-0ap_LE.js +35 -0
  22. package/dist/storybook-static/assets/Page-CeeQJVdd.css +1 -0
  23. package/dist/storybook-static/assets/Page.stories-CWEAOAkg.js +61 -0
  24. package/dist/storybook-static/assets/button.stories-D7sje6m9.js +11 -0
  25. package/dist/storybook-static/assets/entry-preview-4x_9ddKr.js +8 -0
  26. package/dist/storybook-static/assets/entry-preview-docs-BJQ-KCBE.js +2 -0
  27. package/dist/storybook-static/assets/iframe-DiD-Pe4V.js +199 -0
  28. package/dist/storybook-static/assets/index-BV8WzOF6.js +1 -0
  29. package/dist/storybook-static/assets/index-CfOrKyLd.js +8 -0
  30. package/dist/storybook-static/assets/index-DavSjL1w.js +240 -0
  31. package/dist/storybook-static/assets/index-DrFu-skq.js +6 -0
  32. package/dist/storybook-static/assets/lit-element-WgX8VtnD.js +19 -0
  33. package/dist/storybook-static/assets/preview-1l6V4UsQ.js +1 -0
  34. package/dist/storybook-static/assets/preview-5--WmYfK.js +2 -0
  35. package/dist/storybook-static/assets/preview-BWzBA1C2.js +396 -0
  36. package/dist/storybook-static/assets/preview-Br-h4d84.js +1 -0
  37. package/dist/storybook-static/assets/preview-CIRcjyVj.js +1 -0
  38. package/dist/storybook-static/assets/preview-CPX9RCe3.js +1 -0
  39. package/dist/storybook-static/assets/preview-D77C14du.js +34 -0
  40. package/dist/storybook-static/assets/preview-DGUiP6tS.js +7 -0
  41. package/dist/storybook-static/assets/tiny-invariant-CopsF_GD.js +1 -0
  42. package/dist/storybook-static/favicon.svg +1 -0
  43. package/dist/storybook-static/iframe.html +666 -0
  44. package/dist/storybook-static/index.html +177 -0
  45. package/dist/storybook-static/index.json +1 -0
  46. package/dist/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  47. package/dist/storybook-static/nunito-sans-bold.woff2 +0 -0
  48. package/dist/storybook-static/nunito-sans-italic.woff2 +0 -0
  49. package/dist/storybook-static/nunito-sans-regular.woff2 +0 -0
  50. package/dist/storybook-static/project.json +1 -0
  51. package/dist/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +331 -0
  52. package/dist/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +51 -0
  53. package/dist/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  54. package/dist/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  55. package/dist/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
  56. package/dist/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
  57. package/dist/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +391 -0
  58. package/dist/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  59. package/dist/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +230 -0
  60. package/dist/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js.LEGAL.txt +0 -0
  61. package/dist/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
  62. package/dist/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
  63. package/dist/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
  64. package/dist/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
  65. package/dist/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
  66. package/dist/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
  67. package/dist/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
  68. package/dist/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
  69. package/dist/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  70. package/dist/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  71. package/dist/storybook-static/sb-common-assets/favicon.svg +1 -0
  72. package/dist/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  73. package/dist/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  74. package/dist/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  75. package/dist/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  76. package/dist/storybook-static/sb-manager/globals-module-info.js +1037 -0
  77. package/dist/storybook-static/sb-manager/globals-runtime.js +40862 -0
  78. package/dist/storybook-static/sb-manager/globals.js +48 -0
  79. package/dist/storybook-static/sb-manager/runtime.js +11963 -0
  80. package/dist/storybook-static/vite.svg +1 -0
  81. package/dist/vite.svg +1 -0
  82. package/package.json +50 -0
@@ -0,0 +1,6 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ export declare class FlashButton extends LitElement {
3
+ static styles: import('lit').CSSResult;
4
+ variant: 'primary' | 'secondary';
5
+ render(): TemplateResult;
6
+ }
@@ -0,0 +1,32 @@
1
+ import "../node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { html as i } from "../node_modules/lit-html/lit-html.js";
3
+ import { LitElement as l } from "../node_modules/lit-element/lit-element.js";
4
+ import u from "./button.scss.js";
5
+ import { customElement as f } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
6
+ import { property as v } from "../node_modules/@lit/reactive-element/decorators/property.js";
7
+ import { unsafeCSS as c, css as b } from "../node_modules/@lit/reactive-element/css-tag.js";
8
+ var y = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, m = (p, r, s, e) => {
9
+ for (var t = e > 1 ? void 0 : e ? _(r, s) : r, a = p.length - 1, n; a >= 0; a--)
10
+ (n = p[a]) && (t = (e ? n(r, s, t) : n(t)) || t);
11
+ return e && t && y(r, s, t), t;
12
+ };
13
+ let o = class extends l {
14
+ constructor() {
15
+ super(...arguments), this.variant = "primary";
16
+ }
17
+ render() {
18
+ return i`<button>
19
+ <slot></slot>
20
+ </button>`;
21
+ }
22
+ };
23
+ o.styles = b`${c(u)}`;
24
+ m([
25
+ v({ type: String, reflect: !0, attribute: "variant" })
26
+ ], o.prototype, "variant", 2);
27
+ o = m([
28
+ f("flash-button")
29
+ ], o);
30
+ export {
31
+ o as FlashButton
32
+ };
@@ -0,0 +1,4 @@
1
+ const o = "button{background-color:#555ab9;color:#fff;padding:11px 20px;font-size:14px;border-radius:4px;border:none}";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export * as FlashButton from './button/button.component';
2
+ export * as FlashModal from './modal/modal';
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import * as o from "./button/button.component.js";
2
+ import * as t from "./modal/modal.js";
3
+ export {
4
+ o as FlashButton,
5
+ t as FlashModal
6
+ };
@@ -0,0 +1,5 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+ export declare class FlashModal extends LitElement {
3
+ static get styles(): any;
4
+ render(): TemplateResult;
5
+ }
@@ -0,0 +1,19 @@
1
+ import "../node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { html as t } from "../node_modules/lit-html/lit-html.js";
3
+ import { LitElement as e } from "../node_modules/lit-element/lit-element.js";
4
+ import o from "./modal.scss.js";
5
+ class r extends e {
6
+ // static styles = css`${ButtonStyle}`;
7
+ static get styles() {
8
+ return o;
9
+ }
10
+ render() {
11
+ return t`<button>
12
+ <slot></slot>
13
+ </button>`;
14
+ }
15
+ }
16
+ customElements.define("flash-button", r);
17
+ export {
18
+ r as FlashModal
19
+ };
@@ -0,0 +1,4 @@
1
+ const d = "p{border:1px solid red}";
2
+ export {
3
+ d as default
4
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const r = globalThis, c = r.ShadowRoot && (r.ShadyCSS === void 0 || r.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, a = Symbol(), i = /* @__PURE__ */ new WeakMap();
7
+ class l {
8
+ constructor(s, t, o) {
9
+ if (this._$cssResult$ = !0, o !== a) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = s, this.t = t;
11
+ }
12
+ get styleSheet() {
13
+ let s = this.o;
14
+ const t = this.t;
15
+ if (c && s === void 0) {
16
+ const o = t !== void 0 && t.length === 1;
17
+ o && (s = i.get(t)), s === void 0 && ((this.o = s = new CSSStyleSheet()).replaceSync(this.cssText), o && i.set(t, s));
18
+ }
19
+ return s;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ }
25
+ const h = (e) => new l(typeof e == "string" ? e : e + "", void 0, a), p = (e, ...s) => {
26
+ const t = e.length === 1 ? e[0] : s.reduce((o, S, u) => o + ((n) => {
27
+ if (n._$cssResult$ === !0) return n.cssText;
28
+ if (typeof n == "number") return n;
29
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
+ })(S) + e[u + 1], e[0]);
31
+ return new l(t, e, a);
32
+ }, d = (e, s) => {
33
+ if (c) e.adoptedStyleSheets = s.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
34
+ else for (const t of s) {
35
+ const o = document.createElement("style"), S = r.litNonce;
36
+ S !== void 0 && o.setAttribute("nonce", S), o.textContent = t.cssText, e.appendChild(o);
37
+ }
38
+ }, y = c ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((s) => {
39
+ let t = "";
40
+ for (const o of s.cssRules) t += o.cssText;
41
+ return h(t);
42
+ })(e) : e;
43
+ export {
44
+ l as CSSResult,
45
+ d as adoptStyles,
46
+ p as css,
47
+ y as getCompatibleStyle,
48
+ c as supportsAdoptingStyleSheets,
49
+ h as unsafeCSS
50
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const s = (e) => (t, n) => {
7
+ n !== void 0 ? n.addInitializer(() => {
8
+ customElements.define(e, t);
9
+ }) : customElements.define(e, t);
10
+ };
11
+ export {
12
+ s as customElement
13
+ };
@@ -0,0 +1,37 @@
1
+ import { notEqual as p, defaultConverter as l } from "../reactive-element.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const d = { attribute: !0, type: String, converter: l, reflect: !1, hasChanged: p }, u = (r = d, a, t) => {
8
+ const { kind: n, metadata: s } = t;
9
+ let o = globalThis.litPropertyMetadata.get(s);
10
+ if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(t.name, r), n === "accessor") {
11
+ const { name: e } = t;
12
+ return { set(i) {
13
+ const c = a.get.call(this);
14
+ a.set.call(this, i), this.requestUpdate(e, c, r);
15
+ }, init(i) {
16
+ return i !== void 0 && this.P(e, void 0, r), i;
17
+ } };
18
+ }
19
+ if (n === "setter") {
20
+ const { name: e } = t;
21
+ return function(i) {
22
+ const c = this[e];
23
+ a.call(this, i), this.requestUpdate(e, c, r);
24
+ };
25
+ }
26
+ throw Error("Unsupported decorator location: " + n);
27
+ };
28
+ function f(r) {
29
+ return (a, t) => typeof t == "object" ? u(r, a, t) : ((n, s, o) => {
30
+ const e = s.hasOwnProperty(o);
31
+ return s.constructor.createProperty(o, e ? { ...n, wrapped: !0 } : n), e ? Object.getOwnPropertyDescriptor(s, o) : void 0;
32
+ })(r, a, t);
33
+ }
34
+ export {
35
+ f as property,
36
+ u as standardProperty
37
+ };
@@ -0,0 +1,247 @@
1
+ import { getCompatibleStyle as u, adoptStyles as $ } from "./css-tag.js";
2
+ import { CSSResult as O, css as C, supportsAdoptingStyleSheets as R, unsafeCSS as z } from "./css-tag.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2017 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const { is: m, defineProperty: y, getOwnPropertyDescriptor: g, getOwnPropertyNames: P, getOwnPropertySymbols: b, getPrototypeOf: v } = Object, a = globalThis, f = a.trustedTypes, S = f ? f.emptyScript : "", p = a.reactiveElementPolyfillSupport, l = (r, t) => r, d = { toAttribute(r, t) {
9
+ switch (t) {
10
+ case Boolean:
11
+ r = r ? S : null;
12
+ break;
13
+ case Object:
14
+ case Array:
15
+ r = r == null ? r : JSON.stringify(r);
16
+ }
17
+ return r;
18
+ }, fromAttribute(r, t) {
19
+ let e = r;
20
+ switch (t) {
21
+ case Boolean:
22
+ e = r !== null;
23
+ break;
24
+ case Number:
25
+ e = r === null ? null : Number(r);
26
+ break;
27
+ case Object:
28
+ case Array:
29
+ try {
30
+ e = JSON.parse(r);
31
+ } catch {
32
+ e = null;
33
+ }
34
+ }
35
+ return e;
36
+ } }, _ = (r, t) => !m(r, t), E = { attribute: !0, type: String, converter: d, reflect: !1, hasChanged: _ };
37
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a.litPropertyMetadata ?? (a.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
38
+ class h extends HTMLElement {
39
+ static addInitializer(t) {
40
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
41
+ }
42
+ static get observedAttributes() {
43
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
44
+ }
45
+ static createProperty(t, e = E) {
46
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
47
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
48
+ i !== void 0 && y(this.prototype, t, i);
49
+ }
50
+ }
51
+ static getPropertyDescriptor(t, e, s) {
52
+ const { get: i, set: o } = g(this.prototype, t) ?? { get() {
53
+ return this[e];
54
+ }, set(n) {
55
+ this[e] = n;
56
+ } };
57
+ return { get() {
58
+ return i == null ? void 0 : i.call(this);
59
+ }, set(n) {
60
+ const c = i == null ? void 0 : i.call(this);
61
+ o.call(this, n), this.requestUpdate(t, c, s);
62
+ }, configurable: !0, enumerable: !0 };
63
+ }
64
+ static getPropertyOptions(t) {
65
+ return this.elementProperties.get(t) ?? E;
66
+ }
67
+ static _$Ei() {
68
+ if (this.hasOwnProperty(l("elementProperties"))) return;
69
+ const t = v(this);
70
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
71
+ }
72
+ static finalize() {
73
+ if (this.hasOwnProperty(l("finalized"))) return;
74
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(l("properties"))) {
75
+ const e = this.properties, s = [...P(e), ...b(e)];
76
+ for (const i of s) this.createProperty(i, e[i]);
77
+ }
78
+ const t = this[Symbol.metadata];
79
+ if (t !== null) {
80
+ const e = litPropertyMetadata.get(t);
81
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
82
+ }
83
+ this._$Eh = /* @__PURE__ */ new Map();
84
+ for (const [e, s] of this.elementProperties) {
85
+ const i = this._$Eu(e, s);
86
+ i !== void 0 && this._$Eh.set(i, e);
87
+ }
88
+ this.elementStyles = this.finalizeStyles(this.styles);
89
+ }
90
+ static finalizeStyles(t) {
91
+ const e = [];
92
+ if (Array.isArray(t)) {
93
+ const s = new Set(t.flat(1 / 0).reverse());
94
+ for (const i of s) e.unshift(u(i));
95
+ } else t !== void 0 && e.push(u(t));
96
+ return e;
97
+ }
98
+ static _$Eu(t, e) {
99
+ const s = e.attribute;
100
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
101
+ }
102
+ constructor() {
103
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
104
+ }
105
+ _$Ev() {
106
+ var t;
107
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
108
+ }
109
+ addController(t) {
110
+ var e;
111
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
112
+ }
113
+ removeController(t) {
114
+ var e;
115
+ (e = this._$EO) == null || e.delete(t);
116
+ }
117
+ _$E_() {
118
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
119
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
120
+ t.size > 0 && (this._$Ep = t);
121
+ }
122
+ createRenderRoot() {
123
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
124
+ return $(t, this.constructor.elementStyles), t;
125
+ }
126
+ connectedCallback() {
127
+ var t;
128
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
129
+ var s;
130
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
131
+ });
132
+ }
133
+ enableUpdating(t) {
134
+ }
135
+ disconnectedCallback() {
136
+ var t;
137
+ (t = this._$EO) == null || t.forEach((e) => {
138
+ var s;
139
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
140
+ });
141
+ }
142
+ attributeChangedCallback(t, e, s) {
143
+ this._$AK(t, s);
144
+ }
145
+ _$EC(t, e) {
146
+ var o;
147
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
148
+ if (i !== void 0 && s.reflect === !0) {
149
+ const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : d).toAttribute(e, s.type);
150
+ this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
151
+ }
152
+ }
153
+ _$AK(t, e) {
154
+ var o;
155
+ const s = this.constructor, i = s._$Eh.get(t);
156
+ if (i !== void 0 && this._$Em !== i) {
157
+ const n = s.getPropertyOptions(i), c = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : d;
158
+ this._$Em = i, this[i] = c.fromAttribute(e, n.type), this._$Em = null;
159
+ }
160
+ }
161
+ requestUpdate(t, e, s) {
162
+ if (t !== void 0) {
163
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? _)(this[t], e)) return;
164
+ this.P(t, e, s);
165
+ }
166
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
167
+ }
168
+ P(t, e, s) {
169
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
170
+ }
171
+ async _$ET() {
172
+ this.isUpdatePending = !0;
173
+ try {
174
+ await this._$ES;
175
+ } catch (e) {
176
+ Promise.reject(e);
177
+ }
178
+ const t = this.scheduleUpdate();
179
+ return t != null && await t, !this.isUpdatePending;
180
+ }
181
+ scheduleUpdate() {
182
+ return this.performUpdate();
183
+ }
184
+ performUpdate() {
185
+ var s;
186
+ if (!this.isUpdatePending) return;
187
+ if (!this.hasUpdated) {
188
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
189
+ for (const [o, n] of this._$Ep) this[o] = n;
190
+ this._$Ep = void 0;
191
+ }
192
+ const i = this.constructor.elementProperties;
193
+ if (i.size > 0) for (const [o, n] of i) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
194
+ }
195
+ let t = !1;
196
+ const e = this._$AL;
197
+ try {
198
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
199
+ var o;
200
+ return (o = i.hostUpdate) == null ? void 0 : o.call(i);
201
+ }), this.update(e)) : this._$EU();
202
+ } catch (i) {
203
+ throw t = !1, this._$EU(), i;
204
+ }
205
+ t && this._$AE(e);
206
+ }
207
+ willUpdate(t) {
208
+ }
209
+ _$AE(t) {
210
+ var e;
211
+ (e = this._$EO) == null || e.forEach((s) => {
212
+ var i;
213
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
214
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
215
+ }
216
+ _$EU() {
217
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
218
+ }
219
+ get updateComplete() {
220
+ return this.getUpdateComplete();
221
+ }
222
+ getUpdateComplete() {
223
+ return this._$ES;
224
+ }
225
+ shouldUpdate(t) {
226
+ return !0;
227
+ }
228
+ update(t) {
229
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
230
+ }
231
+ updated(t) {
232
+ }
233
+ firstUpdated(t) {
234
+ }
235
+ }
236
+ h.elementStyles = [], h.shadowRootOptions = { mode: "open" }, h[l("elementProperties")] = /* @__PURE__ */ new Map(), h[l("finalized")] = /* @__PURE__ */ new Map(), p == null || p({ ReactiveElement: h }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.0.4");
237
+ export {
238
+ O as CSSResult,
239
+ h as ReactiveElement,
240
+ $ as adoptStyles,
241
+ C as css,
242
+ d as defaultConverter,
243
+ u as getCompatibleStyle,
244
+ _ as notEqual,
245
+ R as supportsAdoptingStyleSheets,
246
+ z as unsafeCSS
247
+ };
@@ -0,0 +1,49 @@
1
+ import { ReactiveElement as o } from "../@lit/reactive-element/reactive-element.js";
2
+ import { defaultConverter as u, notEqual as m } from "../@lit/reactive-element/reactive-element.js";
3
+ import { render as i, noChange as l } from "../lit-html/lit-html.js";
4
+ import { html as f, nothing as E } from "../lit-html/lit-html.js";
5
+ /**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */
10
+ class n extends o {
11
+ constructor() {
12
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
13
+ }
14
+ createRenderRoot() {
15
+ var t;
16
+ const e = super.createRenderRoot();
17
+ return (t = this.renderOptions).renderBefore ?? (t.renderBefore = e.firstChild), e;
18
+ }
19
+ update(e) {
20
+ const t = this.render();
21
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = i(t, this.renderRoot, this.renderOptions);
22
+ }
23
+ connectedCallback() {
24
+ var e;
25
+ super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
26
+ }
27
+ disconnectedCallback() {
28
+ var e;
29
+ super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
30
+ }
31
+ render() {
32
+ return l;
33
+ }
34
+ }
35
+ var s;
36
+ n._$litElement$ = !0, n.finalized = !0, (s = globalThis.litElementHydrateSupport) == null || s.call(globalThis, { LitElement: n });
37
+ const r = globalThis.litElementPolyfillSupport;
38
+ r == null || r({ LitElement: n });
39
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
40
+ export {
41
+ n as LitElement,
42
+ o as ReactiveElement,
43
+ u as defaultConverter,
44
+ f as html,
45
+ l as noChange,
46
+ m as notEqual,
47
+ E as nothing,
48
+ i as render
49
+ };