tinkiet 0.5.0 → 0.6.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.
package/theme/theme.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, html, css, unsafeCSS } from 'lit';
2
+ import { LitElement, css, unsafeCSS, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './theme.scss.js';
5
5
 
@@ -19,8 +19,13 @@ let TkTheme = class TkTheme extends LitElement {
19
19
  this.forceBody = false;
20
20
  this.inverted = false;
21
21
  }
22
+ static { this.styles = css `
23
+ ${unsafeCSS(css_248z)}
24
+ `; }
22
25
  render() {
23
- return html `<slot></slot>`;
26
+ return html `
27
+ <slot></slot>
28
+ `;
24
29
  }
25
30
  updated() {
26
31
  this.setThemeColor();
@@ -139,7 +144,6 @@ let TkTheme = class TkTheme extends LitElement {
139
144
  document.body.style.setProperty("color", `hsl(${foreground[0]},${foreground[1]},${foreground[2]})`);
140
145
  }
141
146
  };
142
- TkTheme.styles = css `${unsafeCSS(css_248z)}`;
143
147
  __decorate([
144
148
  property(),
145
149
  __metadata("design:type", String)
@@ -238,7 +238,7 @@ declare class TkForm extends LitElement {
238
238
  protected createRenderRoot(): Element | ShadowRoot;
239
239
  connectedCallback(): void;
240
240
  disconnectedCallback(): void;
241
- submit(e: SubmitEvent): void;
241
+ submit(e: Event): void;
242
242
  getFormDataAsObject(): any;
243
243
  }
244
244
  declare global {
@@ -288,6 +288,7 @@ declare class TkLoading extends TkBox {
288
288
  static get styles(): import("lit").CSSResult[];
289
289
  circle: boolean;
290
290
  indeterminate: boolean;
291
+ value: number;
291
292
  render(): import("lit-html").TemplateResult<1>;
292
293
  }
293
294
  declare global {