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
@@ -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';
@@ -15,9 +15,6 @@ let TkSwitch = class TkSwitch extends LitElement {
15
15
  this.disabled = false;
16
16
  this.readonly = false;
17
17
  }
18
- static { this.styles = css `
19
- ${unsafeCSS(css_248z)}
20
- `; }
21
18
  render() {
22
19
  return html `
23
20
  <tk-box direction="row" align-items="center">
@@ -71,33 +68,29 @@ let TkSwitch = class TkSwitch extends LitElement {
71
68
  setTimeout(() => this.dispatchEvent(new Event("change", { bubbles: true, composed: true })));
72
69
  }
73
70
  };
71
+ TkSwitch.styles = css `
72
+ ${unsafeCSS(css_248z)}
73
+ `;
74
74
  __decorate([
75
- property({ attribute: true, type: String }),
76
- __metadata("design:type", String)
75
+ property({ attribute: true, type: String })
77
76
  ], TkSwitch.prototype, "name", void 0);
78
77
  __decorate([
79
- property({ attribute: true, type: Boolean, reflect: true }),
80
- __metadata("design:type", Boolean)
78
+ property({ attribute: true, type: Boolean, reflect: true })
81
79
  ], TkSwitch.prototype, "checked", void 0);
82
80
  __decorate([
83
- property({ type: Boolean }),
84
- __metadata("design:type", Boolean)
81
+ property({ type: Boolean })
85
82
  ], TkSwitch.prototype, "required", void 0);
86
83
  __decorate([
87
- property({ type: Boolean }),
88
- __metadata("design:type", Boolean)
84
+ property({ type: Boolean })
89
85
  ], TkSwitch.prototype, "disabled", void 0);
90
86
  __decorate([
91
- property({ type: Boolean }),
92
- __metadata("design:type", Boolean)
87
+ property({ type: Boolean })
93
88
  ], TkSwitch.prototype, "readonly", void 0);
94
89
  __decorate([
95
- property({ type: String, reflect: true }),
96
- __metadata("design:type", String)
90
+ property({ type: String, reflect: true })
97
91
  ], TkSwitch.prototype, "value", void 0);
98
92
  __decorate([
99
- query("input"),
100
- __metadata("design:type", HTMLInputElement)
93
+ query("input")
101
94
  ], TkSwitch.prototype, "$input", void 0);
102
95
  TkSwitch = __decorate([
103
96
  customElement("tk-switch")
File without changes
File without changes
File without changes
File without changes
@@ -1,18 +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 './tab-group.scss.js';
5
5
 
6
6
  let TkTabGroup = class TkTabGroup extends LitElement {
7
- constructor() {
8
- super();
9
- this.circle = false;
10
- this.observe = "";
11
- this.selected = "";
12
- }
13
- static { this.styles = css `
14
- ${unsafeCSS(css_248z)}
15
- `; }
16
7
  render() {
17
8
  return html `
18
9
  <div class="tabs">
@@ -27,6 +18,12 @@ let TkTabGroup = class TkTabGroup extends LitElement {
27
18
  `}
28
19
  `;
29
20
  }
21
+ constructor() {
22
+ super();
23
+ this.circle = false;
24
+ this.observe = "";
25
+ this.selected = "";
26
+ }
30
27
  firstUpdated() {
31
28
  if (IntersectionObserver) {
32
29
  const observer = new IntersectionObserver(this.updateUnderline.bind(this));
@@ -37,12 +34,13 @@ let TkTabGroup = class TkTabGroup extends LitElement {
37
34
  }
38
35
  }
39
36
  updated(props) {
37
+ var _a, _b;
40
38
  if (props.has("selected")) {
41
39
  this.querySelectorAll("*").forEach(node => node.removeAttribute("selected"));
42
- this.querySelector(`[tab="${this.selected}"]`)?.setAttribute("selected", "");
40
+ (_a = this.querySelector(`[tab="${this.selected}"]`)) === null || _a === void 0 ? void 0 : _a.setAttribute("selected", "");
43
41
  }
44
42
  if (props.has("observe")) {
45
- this.querySelector(`[tab="${this.selected}"]`)?.focus();
43
+ (_b = this.querySelector(`[tab="${this.selected}"]`)) === null || _b === void 0 ? void 0 : _b.focus();
46
44
  this.updateUnderline();
47
45
  }
48
46
  }
@@ -74,29 +72,26 @@ let TkTabGroup = class TkTabGroup extends LitElement {
74
72
  // }
75
73
  }
76
74
  };
75
+ TkTabGroup.styles = css `
76
+ ${unsafeCSS(css_248z)}
77
+ `;
77
78
  __decorate([
78
- property({ attribute: true, type: Boolean }),
79
- __metadata("design:type", Boolean)
79
+ property({ attribute: true, type: Boolean })
80
80
  ], TkTabGroup.prototype, "circle", void 0);
81
81
  __decorate([
82
- property({ attribute: true, type: String }),
83
- __metadata("design:type", String)
82
+ property({ attribute: true, type: String })
84
83
  ], TkTabGroup.prototype, "observe", void 0);
85
84
  __decorate([
86
- property({ attribute: true, type: String }),
87
- __metadata("design:type", String)
85
+ property({ attribute: true, type: String })
88
86
  ], TkTabGroup.prototype, "selected", void 0);
89
87
  __decorate([
90
- query(".underline"),
91
- __metadata("design:type", HTMLElement)
88
+ query(".underline")
92
89
  ], TkTabGroup.prototype, "$underline", void 0);
93
90
  __decorate([
94
- query(".circle"),
95
- __metadata("design:type", HTMLElement)
91
+ query(".circle")
96
92
  ], TkTabGroup.prototype, "$circle", void 0);
97
93
  TkTabGroup = __decorate([
98
- customElement("tk-tab-group"),
99
- __metadata("design:paramtypes", [])
94
+ customElement("tk-tab-group")
100
95
  ], TkTabGroup);
101
96
 
102
97
  export { TkTabGroup };
File without changes
File without changes
File without changes
@@ -1,18 +1,18 @@
1
1
  import { __decorate } from 'tslib';
2
- import { LitElement, css, unsafeCSS, html } from 'lit';
2
+ import { LitElement, html, css, unsafeCSS } from 'lit';
3
3
  import { customElement } from 'lit/decorators.js';
4
4
  import css_248z from './tag.scss.js';
5
5
 
6
6
  let TkTag = class TkTag extends LitElement {
7
- static { this.styles = css `
8
- ${unsafeCSS(css_248z)}
9
- `; }
10
7
  render() {
11
8
  return html `
12
9
  <div class="tag"><slot></slot></div>
13
10
  `;
14
11
  }
15
12
  };
13
+ TkTag.styles = css `
14
+ ${unsafeCSS(css_248z)}
15
+ `;
16
16
  TkTag = __decorate([
17
17
  customElement("tk-tag")
18
18
  ], TkTag);
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, state, eventOptions, customElement } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import { uniqueID } from '../utils/unique.js';
@@ -15,9 +15,6 @@ let TkTextarea = class TkTextarea extends LitElement {
15
15
  this.readonly = false;
16
16
  this.rows = 1;
17
17
  }
18
- static { this.styles = css `
19
- ${unsafeCSS(css_248z)}
20
- `; }
21
18
  set value(value) {
22
19
  if (!this.$input) {
23
20
  this.initialValue = value;
@@ -64,7 +61,8 @@ let TkTextarea = class TkTextarea extends LitElement {
64
61
  this.refreshAttributes();
65
62
  }
66
63
  firstUpdated() {
67
- this.$input = this.shadowRoot?.querySelector("textarea");
64
+ var _a;
65
+ this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("textarea");
68
66
  this.appendChild(this.$input);
69
67
  if (this.initialValue)
70
68
  this.value = this.initialValue;
@@ -77,72 +75,56 @@ let TkTextarea = class TkTextarea extends LitElement {
77
75
  this.$input.focus();
78
76
  }
79
77
  };
78
+ TkTextarea.styles = css `
79
+ ${unsafeCSS(css_248z)}
80
+ `;
80
81
  __decorate([
81
- property({ type: String }),
82
- __metadata("design:type", String),
83
- __metadata("design:paramtypes", [String])
82
+ property({ type: String })
84
83
  ], TkTextarea.prototype, "value", null);
85
84
  __decorate([
86
- property({ attribute: true, type: String }),
87
- __metadata("design:type", String)
85
+ property({ attribute: true, type: String })
88
86
  ], TkTextarea.prototype, "name", void 0);
89
87
  __decorate([
90
- property({ type: String }),
91
- __metadata("design:type", String)
88
+ property({ type: String })
92
89
  ], TkTextarea.prototype, "list", void 0);
93
90
  __decorate([
94
- property({ type: String }),
95
- __metadata("design:type", String)
91
+ property({ type: String })
96
92
  ], TkTextarea.prototype, "type", void 0);
97
93
  __decorate([
98
- property({ type: Boolean }),
99
- __metadata("design:type", Boolean)
94
+ property({ type: Boolean })
100
95
  ], TkTextarea.prototype, "required", void 0);
101
96
  __decorate([
102
- property({ type: Boolean }),
103
- __metadata("design:type", Boolean)
97
+ property({ type: Boolean })
104
98
  ], TkTextarea.prototype, "disabled", void 0);
105
99
  __decorate([
106
- property({ type: Boolean }),
107
- __metadata("design:type", Boolean)
100
+ property({ type: Boolean })
108
101
  ], TkTextarea.prototype, "readonly", void 0);
109
102
  __decorate([
110
- property({ type: String }),
111
- __metadata("design:type", String)
103
+ property({ type: String })
112
104
  ], TkTextarea.prototype, "autocomplete", void 0);
113
105
  __decorate([
114
- property({ type: String }),
115
- __metadata("design:type", String)
106
+ property({ type: String })
116
107
  ], TkTextarea.prototype, "autocapitalize", void 0);
117
108
  __decorate([
118
- property({ type: String }),
119
- __metadata("design:type", String)
109
+ property({ type: String })
120
110
  ], TkTextarea.prototype, "pattern", void 0);
121
111
  __decorate([
122
- state(),
123
- __metadata("design:type", String)
112
+ state()
124
113
  ], TkTextarea.prototype, "initialValue", void 0);
125
114
  __decorate([
126
- property({ type: String }),
127
- __metadata("design:type", String)
115
+ property({ type: String })
128
116
  ], TkTextarea.prototype, "label", void 0);
129
117
  __decorate([
130
- property({ type: Number }),
131
- __metadata("design:type", Number)
118
+ property({ type: Number })
132
119
  ], TkTextarea.prototype, "minLength", void 0);
133
120
  __decorate([
134
- property({ type: Number }),
135
- __metadata("design:type", Number)
121
+ property({ type: Number })
136
122
  ], TkTextarea.prototype, "maxLength", void 0);
137
123
  __decorate([
138
- property({ type: Number }),
139
- __metadata("design:type", Number)
124
+ property({ type: Number })
140
125
  ], TkTextarea.prototype, "rows", void 0);
141
126
  __decorate([
142
- eventOptions({ passive: true }),
143
- __metadata("design:type", Function),
144
- __metadata("design:paramtypes", []),
145
- __metadata("design:returntype", void 0)
127
+ eventOptions({ passive: true })
146
128
  ], TkTextarea.prototype, "handleChange", null);
147
129
  TkTextarea = __decorate([
148
130
  customElement("tk-textarea")
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
- import { __decorate, __metadata } from 'tslib';
1
+ import { __decorate } from 'tslib';
2
2
  import { property, state, eventOptions, customElement } from 'lit/decorators.js';
3
- import { LitElement, css, unsafeCSS, html } from 'lit';
3
+ import { LitElement, html, css, unsafeCSS } from 'lit';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import { uniqueID } from '../utils/unique.js';
6
6
  import css_248z from './textfield.scss.js';
@@ -14,9 +14,6 @@ let TkTextfield = class TkTextfield extends LitElement {
14
14
  this.disabled = false;
15
15
  this.readonly = false;
16
16
  }
17
- static { this.styles = css `
18
- ${unsafeCSS(css_248z)}
19
- `; }
20
17
  set value(value) {
21
18
  if (!this.$input) {
22
19
  this.initialValue = value;
@@ -64,7 +61,8 @@ let TkTextfield = class TkTextfield extends LitElement {
64
61
  this.refreshAttributes();
65
62
  }
66
63
  firstUpdated() {
67
- this.$input = this.shadowRoot?.querySelector("input");
64
+ var _a;
65
+ this.$input = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector("input");
68
66
  this.appendChild(this.$input);
69
67
  if (this.initialValue)
70
68
  this.value = this.initialValue;
@@ -77,76 +75,59 @@ let TkTextfield = class TkTextfield extends LitElement {
77
75
  this.$input.focus();
78
76
  }
79
77
  };
78
+ TkTextfield.styles = css `
79
+ ${unsafeCSS(css_248z)}
80
+ `;
80
81
  __decorate([
81
- property({ type: String }),
82
- __metadata("design:type", String),
83
- __metadata("design:paramtypes", [String])
82
+ property({ type: String })
84
83
  ], TkTextfield.prototype, "value", null);
85
84
  __decorate([
86
- property({ attribute: true, type: String }),
87
- __metadata("design:type", String)
85
+ property({ attribute: true, type: String })
88
86
  ], TkTextfield.prototype, "name", void 0);
89
87
  __decorate([
90
- property({ type: String }),
91
- __metadata("design:type", String)
88
+ property({ type: String })
92
89
  ], TkTextfield.prototype, "list", void 0);
93
90
  __decorate([
94
- property({ type: String }),
95
- __metadata("design:type", String)
91
+ property({ type: String })
96
92
  ], TkTextfield.prototype, "type", void 0);
97
93
  __decorate([
98
- property({ type: Boolean }),
99
- __metadata("design:type", Boolean)
94
+ property({ type: Boolean })
100
95
  ], TkTextfield.prototype, "required", void 0);
101
96
  __decorate([
102
- property({ type: Boolean }),
103
- __metadata("design:type", Boolean)
97
+ property({ type: Boolean })
104
98
  ], TkTextfield.prototype, "disabled", void 0);
105
99
  __decorate([
106
- property({ type: Boolean }),
107
- __metadata("design:type", Boolean)
100
+ property({ type: Boolean })
108
101
  ], TkTextfield.prototype, "readonly", void 0);
109
102
  __decorate([
110
- property({ type: String }),
111
- __metadata("design:type", String)
103
+ property({ type: String })
112
104
  ], TkTextfield.prototype, "autocomplete", void 0);
113
105
  __decorate([
114
- property({ type: String }),
115
- __metadata("design:type", String)
106
+ property({ type: String })
116
107
  ], TkTextfield.prototype, "autocapitalize", void 0);
117
108
  __decorate([
118
- property({ type: String }),
119
- __metadata("design:type", String)
109
+ property({ type: String })
120
110
  ], TkTextfield.prototype, "pattern", void 0);
121
111
  __decorate([
122
- state(),
123
- __metadata("design:type", String)
112
+ state()
124
113
  ], TkTextfield.prototype, "initialValue", void 0);
125
114
  __decorate([
126
- property({ type: String }),
127
- __metadata("design:type", String)
115
+ property({ type: String })
128
116
  ], TkTextfield.prototype, "label", void 0);
129
117
  __decorate([
130
- property({ type: Number }),
131
- __metadata("design:type", Number)
118
+ property({ type: Number })
132
119
  ], TkTextfield.prototype, "min", void 0);
133
120
  __decorate([
134
- property({ type: Number }),
135
- __metadata("design:type", Number)
121
+ property({ type: Number })
136
122
  ], TkTextfield.prototype, "max", void 0);
137
123
  __decorate([
138
- property({ type: Number }),
139
- __metadata("design:type", Number)
124
+ property({ type: Number })
140
125
  ], TkTextfield.prototype, "minLength", void 0);
141
126
  __decorate([
142
- property({ type: Number }),
143
- __metadata("design:type", Number)
127
+ property({ type: Number })
144
128
  ], TkTextfield.prototype, "maxLength", void 0);
145
129
  __decorate([
146
- eventOptions({ passive: true }),
147
- __metadata("design:type", Function),
148
- __metadata("design:paramtypes", []),
149
- __metadata("design:returntype", void 0)
130
+ eventOptions({ passive: true })
150
131
  ], TkTextfield.prototype, "handleChange", null);
151
132
  TkTextfield = __decorate([
152
133
  customElement("tk-textfield")
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, customElement } from 'lit/decorators.js';
4
4
  import css_248z from './theme.scss.js';
5
5
 
@@ -19,9 +19,6 @@ 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
- `; }
25
22
  render() {
26
23
  return html `
27
24
  <slot></slot>
@@ -144,53 +141,44 @@ let TkTheme = class TkTheme extends LitElement {
144
141
  document.body.style.setProperty("color", `hsl(${foreground[0]},${foreground[1]},${foreground[2]})`);
145
142
  }
146
143
  };
144
+ TkTheme.styles = css `
145
+ ${unsafeCSS(css_248z)}
146
+ `;
147
147
  __decorate([
148
- property(),
149
- __metadata("design:type", String)
148
+ property()
150
149
  ], TkTheme.prototype, "primary", void 0);
151
150
  __decorate([
152
- property({ attribute: "on-primary" }),
153
- __metadata("design:type", String)
151
+ property({ attribute: "on-primary" })
154
152
  ], TkTheme.prototype, "onPrimary", void 0);
155
153
  __decorate([
156
- property(),
157
- __metadata("design:type", String)
154
+ property()
158
155
  ], TkTheme.prototype, "accent", void 0);
159
156
  __decorate([
160
- property({ attribute: "on-accent" }),
161
- __metadata("design:type", String)
157
+ property({ attribute: "on-accent" })
162
158
  ], TkTheme.prototype, "onAccent", void 0);
163
159
  __decorate([
164
- property(),
165
- __metadata("design:type", String)
160
+ property()
166
161
  ], TkTheme.prototype, "shade", void 0);
167
162
  __decorate([
168
- property(),
169
- __metadata("design:type", String)
163
+ property()
170
164
  ], TkTheme.prototype, "onShade", void 0);
171
165
  __decorate([
172
- property(),
173
- __metadata("design:type", String)
166
+ property()
174
167
  ], TkTheme.prototype, "error", void 0);
175
168
  __decorate([
176
- property(),
177
- __metadata("design:type", String)
169
+ property()
178
170
  ], TkTheme.prototype, "onError", void 0);
179
171
  __decorate([
180
- property(),
181
- __metadata("design:type", String)
172
+ property()
182
173
  ], TkTheme.prototype, "foreground", void 0);
183
174
  __decorate([
184
- property(),
185
- __metadata("design:type", String)
175
+ property()
186
176
  ], TkTheme.prototype, "background", void 0);
187
177
  __decorate([
188
- property({ type: Boolean, attribute: "force-body", reflect: true }),
189
- __metadata("design:type", Boolean)
178
+ property({ type: Boolean, attribute: "force-body", reflect: true })
190
179
  ], TkTheme.prototype, "forceBody", void 0);
191
180
  __decorate([
192
- property({ type: Boolean, attribute: true, reflect: true }),
193
- __metadata("design:type", Boolean)
181
+ property({ type: Boolean, attribute: true, reflect: true })
194
182
  ], TkTheme.prototype, "inverted", void 0);
195
183
  TkTheme = __decorate([
196
184
  customElement("tk-theme")
File without changes
File without changes
File without changes
@@ -198,7 +198,7 @@ declare class TkDialog extends LitElement {
198
198
  private resolve;
199
199
  render(): import("lit-html").TemplateResult<1>;
200
200
  updated(props: any): void;
201
- show(): Promise<string | boolean | null>;
201
+ show(): Promise<string | boolean>;
202
202
  hide(value?: boolean | string | null): void;
203
203
  }
204
204
  declare global {
@@ -288,7 +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
+ percent: number;
292
292
  render(): import("lit-html").TemplateResult<1>;
293
293
  }
294
294
  declare global {
@@ -357,7 +357,7 @@ declare class TkNotie extends TkBox {
357
357
  private $container;
358
358
  private resolve;
359
359
  render(): TemplateResult<1>;
360
- show(): Promise<string | boolean | null>;
360
+ show(): Promise<string | boolean>;
361
361
  hide(value: boolean | string | null): void;
362
362
  constructor(text?: string);
363
363
  static show(options: NotieOptions): Promise<boolean | string | null>;
@@ -387,19 +387,6 @@ declare global {
387
387
  "tk-pages": TkPages;
388
388
  }
389
389
  }
390
- declare class TkProgress extends LitElement {
391
- static styles: import("lit").CSSResult;
392
- circle: boolean;
393
- indeterminate: boolean;
394
- value: number;
395
- buffer: number;
396
- render(): import("lit-html").TemplateResult<1>;
397
- }
398
- declare global {
399
- interface HTMLElementTagNameMap {
400
- "tk-progress": TkProgress;
401
- }
402
- }
403
390
  declare class TkRadio extends LitElement {
404
391
  static styles: import("lit").CSSResult;
405
392
  private _id;
@@ -624,4 +611,5 @@ declare global {
624
611
  "tk-theme": TkTheme;
625
612
  }
626
613
  }
627
- export { TkAccordion, TkBadge, TkBox, TkButton, TkCheckbox, TkDialog, TkDrawer, TkForm, TkIcon, TkIcons, TkListItem, TkLoading, TkNavbar, TkNotie, TkPages, TkProgress, TkRadio, TkSelect, TkSlider, TkSwitch, TkTabGroup, TkTag, TkTextarea, TkTextfield, TkTheme };
614
+ export { TkAccordion, TkBadge, TkBox, TkButton, TkCheckbox, TkDialog, TkDrawer, TkForm, TkIcon, TkIcons, TkListItem, TkLoading, TkNavbar, TkNotie, TkPages, TkRadio, TkSelect, TkSlider, TkSwitch, TkTabGroup, TkTag, TkTextarea, TkTextfield, TkTheme };
615
+ //# sourceMappingURL=tinkiet.min.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tinkiet.min.d.ts","sourceRoot":"","sources":["../../index.ts","../../box/box.ts","../../box/index.ts","../../utils/unique.ts","../../box/focusable-box.ts","../../accordion/accordion.ts","../../accordion/index.ts","../../badge/badge.ts","../../badge/index.ts","../../button/button.ts","../../button/index.ts","../../checkbox/checkbox.ts","../../checkbox/index.ts","../../dialog/dialog.ts","../../dialog/index.ts","../../drawer/drawer.ts","../../drawer/index.ts","../../form/form.ts","../../form/index.ts","../../icon/icons.ts","../../icon/icon.ts","../../icon/index.ts","../../list-item/list-item.ts","../../list-item/index.ts","../../loading/loading.ts","../../loading/index.ts","../../navbar/navbar.ts","../../navbar/index.ts","../../textfield/textfield.ts","../../textfield/index.ts","../../notie/notie.ts","../../notie/index.ts","../../pages/pages.ts","../../pages/index.ts","../../radio/radio.ts","../../radio/index.ts","../../select/select.ts","../../select/index.ts","../../slider/slider.ts","../../slider/index.ts","../../switch/switch.ts","../../switch/index.ts","../../tab-group/tab-group.ts","../../tab-group/index.ts","../../tag/tag.ts","../../tag/index.ts","../../textarea/textarea.ts","../../textarea/index.ts","../../theme/theme.ts","../../theme/index.ts"],"names":[],"mappings":""}