tinkiet 0.6.2 → 0.7.2

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 (133) hide show
  1. package/package.json +3 -1
  2. package/{accordion → tinkiet/accordion}/accordion.d.ts +0 -0
  3. package/{accordion → tinkiet/accordion}/accordion.js +5 -9
  4. package/{accordion → tinkiet/accordion}/accordion.scss.js +0 -0
  5. package/{accordion → tinkiet/accordion}/index.d.ts +0 -0
  6. package/{accordion → tinkiet/accordion}/index.js +0 -0
  7. package/{badge → tinkiet/badge}/badge.d.ts +0 -0
  8. package/{badge → tinkiet/badge}/badge.js +0 -0
  9. package/{badge → tinkiet/badge}/badge.scss.js +0 -0
  10. package/{badge → tinkiet/badge}/index.d.ts +0 -0
  11. package/{badge → tinkiet/badge}/index.js +0 -0
  12. package/{box → tinkiet/box}/box.d.ts +0 -0
  13. package/{box → tinkiet/box}/box.js +6 -8
  14. package/{box → tinkiet/box}/box.scss.js +0 -0
  15. package/{box → tinkiet/box}/focusable-box.d.ts +0 -0
  16. package/{box → tinkiet/box}/focusable-box.js +3 -5
  17. package/{box → tinkiet/box}/index.d.ts +0 -0
  18. package/{box → tinkiet/box}/index.js +0 -0
  19. package/{button → tinkiet/button}/button.d.ts +0 -0
  20. package/{button → tinkiet/button}/button.js +9 -14
  21. package/{button → tinkiet/button}/button.scss.js +0 -0
  22. package/{button → tinkiet/button}/index.d.ts +0 -0
  23. package/{button → tinkiet/button}/index.js +0 -0
  24. package/{checkbox → tinkiet/checkbox}/checkbox.d.ts +0 -0
  25. package/{checkbox → tinkiet/checkbox}/checkbox.js +9 -13
  26. package/{checkbox → tinkiet/checkbox}/checkbox.scss.js +0 -0
  27. package/{checkbox → tinkiet/checkbox}/index.d.ts +0 -0
  28. package/{checkbox → tinkiet/checkbox}/index.js +0 -0
  29. package/{dialog → tinkiet/dialog}/dialog.d.ts +1 -1
  30. package/{dialog → tinkiet/dialog}/dialog.js +8 -11
  31. package/{dialog → tinkiet/dialog}/dialog.scss.js +0 -0
  32. package/{dialog → tinkiet/dialog}/index.d.ts +0 -0
  33. package/{dialog → tinkiet/dialog}/index.js +0 -0
  34. package/{drawer → tinkiet/drawer}/drawer.d.ts +0 -0
  35. package/{drawer → tinkiet/drawer}/drawer.js +16 -22
  36. package/{drawer → tinkiet/drawer}/drawer.scss.js +0 -0
  37. package/{drawer → tinkiet/drawer}/index.d.ts +0 -0
  38. package/{drawer → tinkiet/drawer}/index.js +0 -0
  39. package/{form → tinkiet/form}/form.d.ts +0 -0
  40. package/{form → tinkiet/form}/form.js +4 -4
  41. package/{form → tinkiet/form}/index.d.ts +0 -0
  42. package/{form → tinkiet/form}/index.js +0 -0
  43. package/{icon → tinkiet/icon}/icon.d.ts +0 -0
  44. package/{icon → tinkiet/icon}/icon.js +5 -9
  45. package/{icon → tinkiet/icon}/icon.scss.js +0 -0
  46. package/{icon → tinkiet/icon}/icons.d.ts +0 -0
  47. package/{icon → tinkiet/icon}/icons.js +3 -5
  48. package/{icon → tinkiet/icon}/index.d.ts +0 -0
  49. package/{icon → tinkiet/icon}/index.js +0 -0
  50. package/{index.d.ts → tinkiet/index.d.ts} +1 -1
  51. package/tinkiet/index.d.ts.map +1 -0
  52. package/{index.js → tinkiet/index.js} +0 -2
  53. package/{list-item → tinkiet/list-item}/index.d.ts +0 -0
  54. package/{list-item → tinkiet/list-item}/index.js +0 -0
  55. package/{list-item → tinkiet/list-item}/list-item.d.ts +0 -0
  56. package/{list-item → tinkiet/list-item}/list-item.js +15 -20
  57. package/{list-item → tinkiet/list-item}/list-item.scss.js +0 -0
  58. package/{loading → tinkiet/loading}/index.d.ts +0 -0
  59. package/{loading → tinkiet/loading}/index.js +0 -0
  60. package/{loading → tinkiet/loading}/loading.d.ts +1 -1
  61. package/{loading → tinkiet/loading}/loading.js +10 -10
  62. package/tinkiet/loading/loading.scss.js +4 -0
  63. package/{navbar → tinkiet/navbar}/index.d.ts +0 -0
  64. package/{navbar → tinkiet/navbar}/index.js +0 -0
  65. package/{navbar → tinkiet/navbar}/navbar.d.ts +0 -0
  66. package/{navbar → tinkiet/navbar}/navbar.js +0 -0
  67. package/{navbar → tinkiet/navbar}/navbar.scss.js +0 -0
  68. package/{notie → tinkiet/notie}/index.d.ts +0 -0
  69. package/{notie → tinkiet/notie}/index.js +0 -0
  70. package/{notie → tinkiet/notie}/notie.d.ts +1 -1
  71. package/{notie → tinkiet/notie}/notie.js +32 -46
  72. package/{notie → tinkiet/notie}/notie.scss.js +0 -0
  73. package/{pages → tinkiet/pages}/index.d.ts +0 -0
  74. package/{pages → tinkiet/pages}/index.js +0 -0
  75. package/{pages → tinkiet/pages}/pages.d.ts +0 -0
  76. package/{pages → tinkiet/pages}/pages.js +10 -13
  77. package/{pages → tinkiet/pages}/pages.scss.js +0 -0
  78. package/{radio → tinkiet/radio}/index.d.ts +0 -0
  79. package/{radio → tinkiet/radio}/index.js +0 -0
  80. package/{radio → tinkiet/radio}/radio.d.ts +0 -0
  81. package/{radio → tinkiet/radio}/radio.js +12 -19
  82. package/{radio → tinkiet/radio}/radio.scss.js +0 -0
  83. package/{select → tinkiet/select}/index.d.ts +0 -0
  84. package/{select → tinkiet/select}/index.js +0 -0
  85. package/{select → tinkiet/select}/select.d.ts +0 -0
  86. package/{select → tinkiet/select}/select.js +23 -41
  87. package/{select → tinkiet/select}/select.scss.js +0 -0
  88. package/{slider → tinkiet/slider}/index.d.ts +0 -0
  89. package/{slider → tinkiet/slider}/index.js +0 -0
  90. package/{slider → tinkiet/slider}/slider.d.ts +0 -0
  91. package/{slider → tinkiet/slider}/slider.js +20 -35
  92. package/{slider → tinkiet/slider}/slider.scss.js +0 -0
  93. package/{switch → tinkiet/switch}/index.d.ts +0 -0
  94. package/{switch → tinkiet/switch}/index.js +0 -0
  95. package/{switch → tinkiet/switch}/switch.d.ts +0 -0
  96. package/{switch → tinkiet/switch}/switch.js +12 -19
  97. package/{switch → tinkiet/switch}/switch.scss.js +0 -0
  98. package/{tab-group → tinkiet/tab-group}/index.d.ts +0 -0
  99. package/{tab-group → tinkiet/tab-group}/index.js +0 -0
  100. package/{tab-group → tinkiet/tab-group}/tab-group.d.ts +0 -0
  101. package/{tab-group → tinkiet/tab-group}/tab-group.js +20 -25
  102. package/{tab-group → tinkiet/tab-group}/tab-group.scss.js +0 -0
  103. package/{tag → tinkiet/tag}/index.d.ts +0 -0
  104. package/{tag → tinkiet/tag}/index.js +0 -0
  105. package/{tag → tinkiet/tag}/tag.d.ts +0 -0
  106. package/{tag → tinkiet/tag}/tag.js +4 -4
  107. package/{tag → tinkiet/tag}/tag.scss.js +0 -0
  108. package/{textarea → tinkiet/textarea}/index.d.ts +0 -0
  109. package/{textarea → tinkiet/textarea}/index.js +0 -0
  110. package/{textarea → tinkiet/textarea}/textarea.d.ts +0 -0
  111. package/{textarea → tinkiet/textarea}/textarea.js +23 -41
  112. package/{textarea → tinkiet/textarea}/textarea.scss.js +0 -0
  113. package/{textfield → tinkiet/textfield}/index.d.ts +0 -0
  114. package/{textfield → tinkiet/textfield}/index.js +0 -0
  115. package/{textfield → tinkiet/textfield}/textfield.d.ts +0 -0
  116. package/{textfield → tinkiet/textfield}/textfield.js +24 -43
  117. package/{textfield → tinkiet/textfield}/textfield.scss.js +0 -0
  118. package/{theme → tinkiet/theme}/index.d.ts +0 -0
  119. package/{theme → tinkiet/theme}/index.js +0 -0
  120. package/{theme → tinkiet/theme}/theme.d.ts +0 -0
  121. package/{theme → tinkiet/theme}/theme.js +17 -29
  122. package/{theme → tinkiet/theme}/theme.scss.js +0 -0
  123. package/{utils → tinkiet/utils}/unique.d.ts +0 -0
  124. package/{utils → tinkiet/utils}/unique.js +0 -0
  125. package/umd/tinkiet.min.d.ts +5 -17
  126. package/umd/tinkiet.min.d.ts.map +1 -0
  127. package/umd/tinkiet.min.js +1 -1
  128. package/loading/loading.scss.js +0 -4
  129. package/progress/index.d.ts +0 -1
  130. package/progress/index.js +0 -1
  131. package/progress/progress.d.ts +0 -15
  132. package/progress/progress.js +0 -51
  133. package/progress/progress.scss.js +0 -4
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "tinkiet",
3
- "version": "0.6.2",
3
+ "version": "0.7.2",
4
4
  "description": "Pragmatic UI Web Components",
5
+ "type": "module",
5
6
  "main": "index.js",
6
7
  "module": "index.js",
8
+ "types": "index.d.ts",
7
9
  "keywords": [
8
10
  "web",
9
11
  "components",
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -76,20 +76,16 @@ let TkAccordion = class TkAccordion extends TkFocusableBox {
76
76
  }
77
77
  };
78
78
  __decorate([
79
- property({ attribute: true, type: String }),
80
- __metadata("design:type", String)
79
+ property({ attribute: true, type: String })
81
80
  ], TkAccordion.prototype, "name", void 0);
82
81
  __decorate([
83
- property({ attribute: true, type: Boolean, reflect: true }),
84
- __metadata("design:type", Boolean)
82
+ property({ attribute: true, type: Boolean, reflect: true })
85
83
  ], TkAccordion.prototype, "checked", void 0);
86
84
  __decorate([
87
- property({ attribute: "ripple-header", type: Boolean }),
88
- __metadata("design:type", Boolean)
85
+ property({ attribute: "ripple-header", type: Boolean })
89
86
  ], TkAccordion.prototype, "rippleHeader", void 0);
90
87
  __decorate([
91
- query("input"),
92
- __metadata("design:type", HTMLInputElement)
88
+ query("input")
93
89
  ], TkAccordion.prototype, "$input", void 0);
94
90
  TkAccordion = __decorate([
95
91
  customElement("tk-accordion")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { LitElement, css, unsafeCSS, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './box.scss.js';
@@ -148,7 +148,8 @@ let TkBox = class TkBox extends LitElement {
148
148
  };
149
149
  }
150
150
  hideRipple(event) {
151
- this.shadowRoot?.querySelectorAll(".ripple:not([open])").forEach(container => {
151
+ var _a;
152
+ (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".ripple:not([open])").forEach(container => {
152
153
  const element = container.querySelector("span");
153
154
  const outAnimation = element.animate({
154
155
  opacity: ["0.5", "0"]
@@ -166,16 +167,13 @@ let TkBox = class TkBox extends LitElement {
166
167
  }
167
168
  };
168
169
  __decorate([
169
- property({ type: Boolean }),
170
- __metadata("design:type", Boolean)
170
+ property({ type: Boolean })
171
171
  ], TkBox.prototype, "ripple", void 0);
172
172
  __decorate([
173
- property(),
174
- __metadata("design:type", Object)
173
+ property()
175
174
  ], TkBox.prototype, "background", void 0);
176
175
  __decorate([
177
- property(),
178
- __metadata("design:type", Object)
176
+ property()
179
177
  ], TkBox.prototype, "color", void 0);
180
178
  TkBox = __decorate([
181
179
  customElement("tk-box")
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { property } from 'lit/decorators.js';
3
3
  import { uniqueID } from '../utils/unique.js';
4
4
  import { TkBox } from './box.js';
@@ -21,12 +21,10 @@ class TkFocusableBox extends TkBox {
21
21
  }
22
22
  }
23
23
  __decorate([
24
- property({ type: Boolean }),
25
- __metadata("design:type", String)
24
+ property({ type: Boolean })
26
25
  ], TkFocusableBox.prototype, "_id", void 0);
27
26
  __decorate([
28
- property({ type: Boolean }),
29
- __metadata("design:type", Boolean)
27
+ property({ type: Boolean })
30
28
  ], TkFocusableBox.prototype, "disabled", void 0);
31
29
 
32
30
  export { TkFocusableBox };
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -89,39 +89,34 @@ let TkButton = class TkButton extends TkBox {
89
89
  this.appendChild(this.$button);
90
90
  }
91
91
  handleClick(e) {
92
+ var _a;
92
93
  if (this.href && e.isTrusted) {
93
94
  e.stopPropagation();
94
95
  e.preventDefault();
95
96
  this.$ahref.click();
96
97
  }
97
98
  else if (e.isTrusted && this.type == "submit" || this.type == "reset") {
98
- this.querySelector("button")?.click();
99
+ (_a = this.querySelector("button")) === null || _a === void 0 ? void 0 : _a.click();
99
100
  }
100
101
  }
101
102
  };
102
103
  __decorate([
103
- property(),
104
- __metadata("design:type", Object)
104
+ property()
105
105
  ], TkButton.prototype, "href", void 0);
106
106
  __decorate([
107
- property(),
108
- __metadata("design:type", String)
107
+ property()
109
108
  ], TkButton.prototype, "target", void 0);
110
109
  __decorate([
111
- property(),
112
- __metadata("design:type", String)
110
+ property()
113
111
  ], TkButton.prototype, "type", void 0);
114
112
  __decorate([
115
- property({ type: Boolean }),
116
- __metadata("design:type", Boolean)
113
+ property({ type: Boolean })
117
114
  ], TkButton.prototype, "disabled", void 0);
118
115
  __decorate([
119
- query("#ahref"),
120
- __metadata("design:type", HTMLAnchorElement)
116
+ query("#ahref")
121
117
  ], TkButton.prototype, "$ahref", void 0);
122
118
  __decorate([
123
- query("button"),
124
- __metadata("design:type", HTMLButtonElement)
119
+ query("button")
125
120
  ], TkButton.prototype, "$button", void 0);
126
121
  TkButton = __decorate([
127
122
  customElement("tk-button")
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import '../box/index.js';
@@ -12,9 +12,6 @@ let TkCheckbox = class TkCheckbox extends LitElement {
12
12
  this._id = uniqueID();
13
13
  this.checked = false;
14
14
  }
15
- static { this.styles = css `
16
- ${unsafeCSS(css_248z)}
17
- `; }
18
15
  render() {
19
16
  return html `
20
17
  <tk-box direction="row" align-items="center">
@@ -64,21 +61,20 @@ let TkCheckbox = class TkCheckbox extends LitElement {
64
61
  setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
65
62
  }
66
63
  };
64
+ TkCheckbox.styles = css `
65
+ ${unsafeCSS(css_248z)}
66
+ `;
67
67
  __decorate([
68
- property({ attribute: true, type: String }),
69
- __metadata("design:type", String)
68
+ property({ attribute: true, type: String })
70
69
  ], TkCheckbox.prototype, "name", void 0);
71
70
  __decorate([
72
- property({ attribute: true, type: String }),
73
- __metadata("design:type", String)
71
+ property({ attribute: true, type: String })
74
72
  ], TkCheckbox.prototype, "value", void 0);
75
73
  __decorate([
76
- property({ attribute: true, type: Boolean, reflect: true }),
77
- __metadata("design:type", Boolean)
74
+ property({ attribute: true, type: Boolean, reflect: true })
78
75
  ], TkCheckbox.prototype, "checked", void 0);
79
76
  __decorate([
80
- query("input"),
81
- __metadata("design:type", HTMLInputElement)
77
+ query("input")
82
78
  ], TkCheckbox.prototype, "$input", void 0);
83
79
  TkCheckbox = __decorate([
84
80
  customElement("tk-checkbox")
File without changes
File without changes
File without changes
@@ -7,7 +7,7 @@ declare class TkDialog extends LitElement {
7
7
  private resolve;
8
8
  render(): import("lit-html").TemplateResult<1>;
9
9
  updated(props: any): void;
10
- show(): Promise<string | boolean | null>;
10
+ show(): Promise<string | boolean>;
11
11
  hide(value?: boolean | string | null): void;
12
12
  }
13
13
  declare global {
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './dialog.scss.js';
5
5
 
@@ -10,9 +10,6 @@ let TkDialog = class TkDialog extends LitElement {
10
10
  this.open = false;
11
11
  this.blurOverlay = false;
12
12
  }
13
- static { this.styles = css `
14
- ${unsafeCSS(css_248z)}
15
- `; }
16
13
  render() {
17
14
  return html `
18
15
  ${this.open
@@ -42,17 +39,17 @@ let TkDialog = class TkDialog extends LitElement {
42
39
  this.resolve(value);
43
40
  }
44
41
  };
42
+ TkDialog.styles = css `
43
+ ${unsafeCSS(css_248z)}
44
+ `;
45
45
  __decorate([
46
- property({ type: Boolean, attribute: true }),
47
- __metadata("design:type", Boolean)
46
+ property({ type: Boolean, attribute: true })
48
47
  ], TkDialog.prototype, "modal", void 0);
49
48
  __decorate([
50
- property({ type: Boolean, attribute: true, reflect: true }),
51
- __metadata("design:type", Boolean)
49
+ property({ type: Boolean, attribute: true, reflect: true })
52
50
  ], TkDialog.prototype, "open", void 0);
53
51
  __decorate([
54
- property({ type: Boolean, attribute: "blur-overlay" }),
55
- __metadata("design:type", Boolean)
52
+ property({ type: Boolean, attribute: "blur-overlay" })
56
53
  ], TkDialog.prototype, "blurOverlay", void 0);
57
54
  TkDialog = __decorate([
58
55
  customElement("tk-dialog")
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './drawer.scss.js';
5
5
  import { Direction, Pan, PointerListener, Tap } from 'contactjs';
@@ -12,9 +12,6 @@ let TkDrawer = class TkDrawer extends LitElement {
12
12
  this.right = false;
13
13
  this.swipeable = false;
14
14
  }
15
- static { this.styles = css `
16
- ${unsafeCSS(css_248z)}
17
- `; }
18
15
  set open(value) {
19
16
  if (value === this._open)
20
17
  return;
@@ -69,8 +66,9 @@ let TkDrawer = class TkDrawer extends LitElement {
69
66
  bubbles: false
70
67
  });
71
68
  this.$drawer.addEventListener("tap", (event) => {
69
+ var _a;
72
70
  const { x, y } = event.detail.live.srcEvent;
73
- const el = this.shadowRoot?.elementFromPoint(x, y);
71
+ const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.elementFromPoint(x, y);
74
72
  if (el)
75
73
  el.click();
76
74
  });
@@ -109,7 +107,8 @@ let TkDrawer = class TkDrawer extends LitElement {
109
107
  e.matches ? this.setAttribute("over", "") : this.removeAttribute("over");
110
108
  }
111
109
  hideIfOver() {
112
- if ((this.overQuery && this.mql?.matches) || this.over)
110
+ var _a;
111
+ if ((this.overQuery && ((_a = this.mql) === null || _a === void 0 ? void 0 : _a.matches)) || this.over)
113
112
  this.open = false;
114
113
  }
115
114
  show() {
@@ -122,34 +121,29 @@ let TkDrawer = class TkDrawer extends LitElement {
122
121
  this.open = !this.open;
123
122
  }
124
123
  };
124
+ TkDrawer.styles = css `
125
+ ${unsafeCSS(css_248z)}
126
+ `;
125
127
  __decorate([
126
- property({ type: Boolean, reflect: true }),
127
- __metadata("design:type", Object),
128
- __metadata("design:paramtypes", [Object])
128
+ property({ type: Boolean, reflect: true })
129
129
  ], TkDrawer.prototype, "open", null);
130
130
  __decorate([
131
- property({ type: Boolean, reflect: true }),
132
- __metadata("design:type", Boolean)
131
+ property({ type: Boolean, reflect: true })
133
132
  ], TkDrawer.prototype, "over", void 0);
134
133
  __decorate([
135
- property({ type: String, attribute: "open-query" }),
136
- __metadata("design:type", String)
134
+ property({ type: String, attribute: "open-query" })
137
135
  ], TkDrawer.prototype, "openQuery", void 0);
138
136
  __decorate([
139
- property({ type: String, attribute: "over-query" }),
140
- __metadata("design:type", String)
137
+ property({ type: String, attribute: "over-query" })
141
138
  ], TkDrawer.prototype, "overQuery", void 0);
142
139
  __decorate([
143
- property({ type: Boolean, reflect: true }),
144
- __metadata("design:type", Boolean)
140
+ property({ type: Boolean, reflect: true })
145
141
  ], TkDrawer.prototype, "right", void 0);
146
142
  __decorate([
147
- property({ type: Boolean, reflect: true }),
148
- __metadata("design:type", Boolean)
143
+ property({ type: Boolean, reflect: true })
149
144
  ], TkDrawer.prototype, "swipeable", void 0);
150
145
  __decorate([
151
- query("div.drawer"),
152
- __metadata("design:type", HTMLElement)
146
+ query("div.drawer")
153
147
  ], TkDrawer.prototype, "$drawer", void 0);
154
148
  TkDrawer = __decorate([
155
149
  customElement("tk-drawer")
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { LitElement } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
 
@@ -24,6 +24,7 @@ let TkForm = class TkForm extends LitElement {
24
24
  const result = {};
25
25
  const data = new FormData($form);
26
26
  data.forEach((value, key) => {
27
+ var _a;
27
28
  const $inputElement = this.querySelector(`[name=${key}]`);
28
29
  if ($inputElement.tagName == "TK-SLIDER") {
29
30
  value = Number(value);
@@ -36,7 +37,7 @@ let TkForm = class TkForm extends LitElement {
36
37
  }
37
38
  if (key.indexOf("-") > 0) {
38
39
  const _ks = key.split("-");
39
- result[_ks[0]] = result[_ks[0]] ?? {};
40
+ result[_ks[0]] = (_a = result[_ks[0]]) !== null && _a !== void 0 ? _a : {};
40
41
  result[_ks[0]][_ks[1]] = value;
41
42
  }
42
43
  else {
@@ -47,8 +48,7 @@ let TkForm = class TkForm extends LitElement {
47
48
  }
48
49
  };
49
50
  __decorate([
50
- property(),
51
- __metadata("design:type", Object)
51
+ property()
52
52
  ], TkForm.prototype, "value", void 0);
53
53
  TkForm = __decorate([
54
54
  customElement("tk-form")
File without changes
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { css, unsafeCSS, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
@@ -57,20 +57,16 @@ let TkIcon = class TkIcon extends TkBox {
57
57
  }
58
58
  };
59
59
  __decorate([
60
- property(),
61
- __metadata("design:type", String)
60
+ property()
62
61
  ], TkIcon.prototype, "name", void 0);
63
62
  __decorate([
64
- property(),
65
- __metadata("design:type", String)
63
+ property()
66
64
  ], TkIcon.prototype, "library", void 0);
67
65
  __decorate([
68
- property(),
69
- __metadata("design:type", String)
66
+ property()
70
67
  ], TkIcon.prototype, "path", void 0);
71
68
  __decorate([
72
- property(),
73
- __metadata("design:type", String)
69
+ property()
74
70
  ], TkIcon.prototype, "svg", void 0);
75
71
  TkIcon = __decorate([
76
72
  customElement("tk-icon")
File without changes
File without changes
@@ -1,4 +1,4 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { LitElement } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
 
@@ -12,12 +12,10 @@ let TkIcons = class TkIcons extends LitElement {
12
12
  }
13
13
  };
14
14
  __decorate([
15
- property({ attribute: false }),
16
- __metadata("design:type", Function)
15
+ property({ attribute: false })
17
16
  ], TkIcons.prototype, "resolve", void 0);
18
17
  __decorate([
19
- property({ reflect: true }),
20
- __metadata("design:type", String)
18
+ property({ reflect: true })
21
19
  ], TkIcons.prototype, "library", void 0);
22
20
  TkIcons = __decorate([
23
21
  customElement("tk-icons")
File without changes
File without changes
@@ -12,7 +12,6 @@ export * from "./loading/index";
12
12
  export * from "./navbar/index";
13
13
  export * from "./notie/index";
14
14
  export * from "./pages/index";
15
- export * from "./progress/index";
16
15
  export * from "./radio/index";
17
16
  export * from "./select/index";
18
17
  export * from "./slider/index";
@@ -22,3 +21,4 @@ export * from "./tag/index";
22
21
  export * from "./textarea/index";
23
22
  export * from "./textfield/index";
24
23
  export * from "./theme/index";
24
+ //# sourceMappingURL=tinkiet/index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tinkiet/index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,kCAA4B;AAC5B,8BAAwB;AACxB,4BAAsB;AACtB,+BAAyB;AACzB,iCAA2B;AAC3B,+BAAyB;AACzB,+BAAyB;AACzB,6BAAuB;AACvB,6BAAuB;AACvB,kCAA4B;AAC5B,gCAA0B;AAC1B,+BAAyB;AACzB,8BAAwB;AACxB,8BAAwB;AACxB,8BAAwB;AACxB,+BAAyB;AACzB,+BAAyB;AACzB,+BAAyB;AACzB,kCAA4B;AAC5B,4BAAsB;AACtB,iCAA2B;AAC3B,kCAA4B;AAC5B,8BAAwB"}
@@ -12,7 +12,6 @@ import './loading/index.js';
12
12
  import './navbar/index.js';
13
13
  import './notie/index.js';
14
14
  import './pages/index.js';
15
- import './progress/index.js';
16
15
  import './radio/index.js';
17
16
  import './select/index.js';
18
17
  import './slider/index.js';
@@ -37,7 +36,6 @@ export { TkLoading } from './loading/loading.js';
37
36
  export { TkNavbar } from './navbar/navbar.js';
38
37
  export { TkNotie } from './notie/notie.js';
39
38
  export { TkPages } from './pages/pages.js';
40
- export { TkProgress } from './progress/progress.js';
41
39
  export { TkRadio } from './radio/radio.js';
42
40
  export { TkSelect } from './select/select.js';
43
41
  export { TkSlider } from './slider/slider.js';
File without changes
File without changes
File without changes
@@ -1,17 +1,9 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
1
+ import { __decorate } from 'tslib';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './list-item.scss.js';
5
5
 
6
6
  let TkListItem = class TkListItem extends LitElement {
7
- constructor() {
8
- super();
9
- this.href = "";
10
- this.target = "";
11
- }
12
- static { this.styles = css `
13
- ${unsafeCSS(css_248z)}
14
- `; }
15
7
  render() {
16
8
  return html `
17
9
  <slot name="before" @click=${this.handleClick}></slot>
@@ -26,6 +18,11 @@ let TkListItem = class TkListItem extends LitElement {
26
18
  : ""}
27
19
  `;
28
20
  }
21
+ constructor() {
22
+ super();
23
+ this.href = "";
24
+ this.target = "";
25
+ }
29
26
  firstUpdated() {
30
27
  if (!this.ariaLabel && this.innerText)
31
28
  this.ariaLabel = this.innerText;
@@ -53,25 +50,23 @@ let TkListItem = class TkListItem extends LitElement {
53
50
  }
54
51
  }
55
52
  };
53
+ TkListItem.styles = css `
54
+ ${unsafeCSS(css_248z)}
55
+ `;
56
56
  __decorate([
57
- property({ attribute: true }),
58
- __metadata("design:type", String)
57
+ property({ attribute: true })
59
58
  ], TkListItem.prototype, "href", void 0);
60
59
  __decorate([
61
- property({ attribute: true }),
62
- __metadata("design:type", String)
60
+ property({ attribute: true })
63
61
  ], TkListItem.prototype, "target", void 0);
64
62
  __decorate([
65
- property({ attribute: "aria-label" }),
66
- __metadata("design:type", String)
63
+ property({ attribute: "aria-label" })
67
64
  ], TkListItem.prototype, "ariaLabel", void 0);
68
65
  __decorate([
69
- query("#ahref"),
70
- __metadata("design:type", HTMLAnchorElement)
66
+ query("#ahref")
71
67
  ], TkListItem.prototype, "$ahref", void 0);
72
68
  TkListItem = __decorate([
73
- customElement("tk-list-item"),
74
- __metadata("design:paramtypes", [])
69
+ customElement("tk-list-item")
75
70
  ], TkListItem);
76
71
 
77
72
  export { TkListItem };
File without changes
File without changes
@@ -3,7 +3,7 @@ declare class TkLoading extends TkBox {
3
3
  static get styles(): import("lit").CSSResult[];
4
4
  circle: boolean;
5
5
  indeterminate: boolean;
6
- value: number;
6
+ percent: number;
7
7
  render(): import("lit-html").TemplateResult<1>;
8
8
  }
9
9
  declare global {