tinkiet 0.9.12 → 0.10.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 (144) hide show
  1. package/accordion/accordion.d.ts +3 -4
  2. package/accordion/index.d.ts +1 -1
  3. package/accordion/index.js +491 -1
  4. package/badge/badge.d.ts +2 -3
  5. package/badge/index.d.ts +1 -1
  6. package/badge/index.js +134 -1
  7. package/box/box.d.ts +3 -3
  8. package/box/focusable-box.d.ts +2 -3
  9. package/box/index.d.ts +1 -1
  10. package/box/index.js +289 -1
  11. package/button/button.d.ts +3 -4
  12. package/button/index.d.ts +1 -1
  13. package/button/index.js +502 -1
  14. package/checkbox/checkbox.d.ts +3 -3
  15. package/checkbox/index.d.ts +1 -1
  16. package/checkbox/index.js +450 -1
  17. package/chip/chip.d.ts +2 -3
  18. package/chip/index.d.ts +1 -1
  19. package/chip/index.js +123 -1
  20. package/dialog/dialog.d.ts +2 -3
  21. package/dialog/index.d.ts +1 -1
  22. package/dialog/index.js +162 -1
  23. package/drawer/drawer.d.ts +2 -3
  24. package/drawer/index.d.ts +1 -1
  25. package/drawer/index.js +272 -1
  26. package/form/form.d.ts +1 -2
  27. package/form/index.d.ts +1 -1
  28. package/form/index.js +149 -1
  29. package/icon/icon.d.ts +3 -4
  30. package/icon/icons.d.ts +1 -2
  31. package/icon/index.d.ts +2 -2
  32. package/icon/index.js +457 -2
  33. package/index.d.ts +52 -26
  34. package/index.js +3682 -52
  35. package/list-item/index.d.ts +1 -1
  36. package/list-item/index.js +414 -1
  37. package/list-item/list-item.d.ts +3 -4
  38. package/loading/index.d.ts +1 -1
  39. package/loading/index.js +389 -1
  40. package/loading/loading.d.ts +3 -4
  41. package/navigation/index.d.ts +2 -2
  42. package/navigation/index.js +201 -2
  43. package/navigation/navigation-bar.d.ts +2 -3
  44. package/navigation/navigation-item.d.ts +2 -3
  45. package/notie/index.d.ts +1 -1
  46. package/notie/index.js +744 -1
  47. package/notie/notie.d.ts +12 -11
  48. package/package.json +8 -5
  49. package/pages/index.d.ts +1 -1
  50. package/pages/index.js +178 -1
  51. package/pages/pages.d.ts +2 -3
  52. package/radio/index.d.ts +1 -1
  53. package/radio/index.js +466 -1
  54. package/radio/radio.d.ts +3 -3
  55. package/select/index.d.ts +1 -1
  56. package/select/index.js +493 -1
  57. package/select/select.d.ts +3 -3
  58. package/slider/index.d.ts +1 -1
  59. package/slider/index.js +274 -1
  60. package/slider/slider.d.ts +2 -3
  61. package/snackbar/index.d.ts +1 -0
  62. package/snackbar/snackbar.d.ts +34 -0
  63. package/switch/index.d.ts +1 -1
  64. package/switch/index.js +462 -1
  65. package/switch/switch.d.ts +3 -3
  66. package/tab-group/index.d.ts +1 -1
  67. package/tab-group/index.js +182 -1
  68. package/tab-group/tab-group.d.ts +2 -3
  69. package/tab-group/tab-item.d.ts +7 -0
  70. package/textarea/index.d.ts +1 -1
  71. package/textarea/index.js +272 -1
  72. package/textarea/textarea.d.ts +2 -3
  73. package/textfield/index.d.ts +1 -1
  74. package/textfield/index.js +278 -1
  75. package/textfield/textfield.d.ts +2 -3
  76. package/theme/index.d.ts +1 -1
  77. package/theme/index.js +240 -1
  78. package/theme/theme.d.ts +2 -3
  79. package/tooltip/index.d.ts +1 -1
  80. package/tooltip/index.js +136 -1
  81. package/tooltip/tooltip.d.ts +2 -3
  82. package/topbar/index.d.ts +1 -1
  83. package/topbar/index.js +358 -1
  84. package/topbar/topbar.d.ts +3 -4
  85. package/umd/tinkiet.min.js +420 -1
  86. package/utils/aria.d.ts +11 -0
  87. package/utils/unique.d.ts +1 -2
  88. package/accordion/accordion.js +0 -94
  89. package/accordion/accordion.scss.js +0 -4
  90. package/badge/badge.js +0 -31
  91. package/badge/badge.scss.js +0 -4
  92. package/box/box.js +0 -186
  93. package/box/box.scss.js +0 -4
  94. package/box/focusable-box.js +0 -30
  95. package/button/button.js +0 -141
  96. package/button/button.scss.js +0 -4
  97. package/checkbox/checkbox.js +0 -89
  98. package/checkbox/checkbox.scss.js +0 -4
  99. package/chip/chip.js +0 -20
  100. package/chip/chip.scss.js +0 -4
  101. package/dialog/dialog.js +0 -59
  102. package/dialog/dialog.scss.js +0 -4
  103. package/drawer/drawer.js +0 -168
  104. package/drawer/drawer.scss.js +0 -4
  105. package/form/form.js +0 -54
  106. package/icon/icon.js +0 -77
  107. package/icon/icon.scss.js +0 -4
  108. package/icon/icons.js +0 -24
  109. package/index.d.ts.map +0 -1
  110. package/list-item/list-item.js +0 -86
  111. package/list-item/list-item.scss.js +0 -4
  112. package/loading/loading.js +0 -61
  113. package/loading/loading.scss.js +0 -4
  114. package/navigation/navigation-bar.js +0 -20
  115. package/navigation/navigation-bar.scss.js +0 -4
  116. package/navigation/navigation-item.js +0 -51
  117. package/navigation/navigation-item.scss.js +0 -4
  118. package/notie/notie.js +0 -201
  119. package/notie/notie.scss.js +0 -4
  120. package/pages/pages.js +0 -75
  121. package/pages/pages.scss.js +0 -4
  122. package/radio/radio.js +0 -105
  123. package/radio/radio.scss.js +0 -4
  124. package/select/select.js +0 -132
  125. package/select/select.scss.js +0 -4
  126. package/slider/slider.js +0 -135
  127. package/slider/slider.scss.js +0 -4
  128. package/switch/switch.js +0 -101
  129. package/switch/switch.scss.js +0 -4
  130. package/tab-group/tab-group.js +0 -79
  131. package/tab-group/tab-group.scss.js +0 -4
  132. package/textarea/textarea.js +0 -133
  133. package/textarea/textarea.scss.js +0 -4
  134. package/textfield/textfield.js +0 -138
  135. package/textfield/textfield.scss.js +0 -4
  136. package/theme/theme.js +0 -137
  137. package/theme/theme.scss.js +0 -4
  138. package/tooltip/tooltip.js +0 -33
  139. package/tooltip/tooltip.scss.js +0 -4
  140. package/topbar/topbar.js +0 -33
  141. package/topbar/topbar.scss.js +0 -4
  142. package/umd/tinkiet.min.d.ts +0 -660
  143. package/umd/tinkiet.min.d.ts.map +0 -1
  144. package/utils/unique.js +0 -12
@@ -1,660 +0,0 @@
1
- import { LitElement, CSSResultGroup, PropertyValueMap, TemplateResult } from "lit";
2
- declare const colors: readonly [
3
- "primary-lighter",
4
- "primary-light",
5
- "primary",
6
- "primary-dark",
7
- "primary-darker",
8
- "on-primary-lighter",
9
- "on-primary-light",
10
- "on-primary",
11
- "on-primary-dark",
12
- "on-primary-darker",
13
- "accent-lighter",
14
- "accent-light",
15
- "accent",
16
- "accent-dark",
17
- "accent-darker",
18
- "on-accent-lighter",
19
- "on-accent-light",
20
- "on-accent",
21
- "on-accent-dark",
22
- "on-accent-darker",
23
- "error-lighter",
24
- "error-light",
25
- "error",
26
- "error-dark",
27
- "error-darker",
28
- "on-error-lighter",
29
- "on-error-light",
30
- "on-error",
31
- "on-error-dark",
32
- "on-error-darker",
33
- "shade-lighter",
34
- "shade-light",
35
- "shade",
36
- "shade-dark",
37
- "shade-darker",
38
- "on-shade-lighter",
39
- "on-shade-light",
40
- "on-shade",
41
- "on-shade-dark",
42
- "on-shade-darker"
43
- ];
44
- type Color = typeof colors;
45
- /**
46
- * A container that lays out its contents in one direction
47
- *
48
- * @attr {"none" | "small" | "medium" | "large" | "xlarge" | "circle" | "pill" } radius - border radius
49
- * @attr {"around" | "between" | "center" | "end" | "start" | "stretch"} align-content - How to align the contents when there is extra space in the cross axis.
50
- * @attr [align-content="stretch"]
51
- * @attr {"baseline" | "center" | "end" | "start" | "stretch"} align-items - How to align the contents along the cross axis.
52
- * @attr {"center" | "end" | "start" | "stretch"} align-self - How to align along the cross axis when contained in a Box or along the column axis when contained in a Grid.
53
- * @attr {"row" | "column"} direction - The orientation to layout the child components in.
54
- * @attr [direction="column"]
55
- * @attr {1|2|3} elevation - Elevated height above the underlying context, indicated via a drop shadow.
56
- * @attr {"horizontal" | "vertical" | "true" | "false"} fill - Whether the width and/or height should fill the container.
57
- * @attr {"grow" | "shrink" | "true" | "false"} flex - flex-grow and/or flex-shrink
58
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} gap - The amount of spacing between child elements. This should not be used in conjunction with 'wrap' as the gap elements will not wrap gracefully. If a child is a Fragment, Box will not add a gap between the children of the Fragment.
59
- * @attr {"around" | "between" | "center" | "end" | "evenly" | "start" | "stretch"} justify - How to align the contents along the main axis.
60
- * @attr [justify="stretch"]
61
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} margin - The amount of margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
62
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} vmargin - The amount of vertical margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
63
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} hmargin - The amount of horizontal margin around the component. An object can be specified to distinguish horizontal margin, vertical margin, and margin on a particular side.
64
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} padding - The amount of padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
65
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} vpadding - The amount of vertical padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
66
- * @attr {"xsmall" | "small" | "medium" | "large" | "xlarge"} hpadding - The amount of horizontal padding around the box contents. An object can be specified to distinguish horizontal padding, vertical padding, and padding on a particular side of the box.
67
- * @attr {"center" | "justify" | "left" | "right"} text - Text align
68
- * @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} width - A fixed width.
69
- * @attr {"xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge"} height - A fixed height.
70
- * @attr {"auto" | "hidden" | "scroll" | "visible"} overflow - box overflow.
71
- * @attr { "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "lighter" | "bold" | "bolder"} weight - Font weight.
72
- * @attr {"true" | "false" | "reverse"} wrap - Whether children can wrap if they can't all fit.
73
- * @attr [wrap="false"]
74
- */
75
- declare class TkBox extends LitElement {
76
- static get styles(): import("lit").CSSResult[];
77
- /**
78
- * Activate ripple
79
- */
80
- ripple: boolean;
81
- /**
82
- * Set background color.
83
- */
84
- background: Color | string;
85
- /**
86
- * Set color.
87
- */
88
- color: Color | "foreground" | "background" | string;
89
- render(): import("lit-html").TemplateResult<1>;
90
- connectedCallback(): void;
91
- disconnectedCallback(): void;
92
- updated(props: any): void;
93
- private showRipple;
94
- private hideRipple;
95
- }
96
- declare global {
97
- interface HTMLElementTagNameMap {
98
- "tk-box": TkBox;
99
- }
100
- }
101
- declare class TkFocusableBox extends TkBox {
102
- /**
103
- * Element random id
104
- */
105
- protected _id: string;
106
- /**
107
- * disabled atribute
108
- */
109
- disabled: boolean;
110
- updated(props: any): void;
111
- }
112
- declare class TkAccordion extends TkFocusableBox {
113
- static get styles(): import("lit").CSSResult[];
114
- name: string;
115
- checked: boolean;
116
- rippleHeader: boolean;
117
- protected $input: HTMLInputElement;
118
- render(): import("lit-html").TemplateResult<1>;
119
- firstUpdated(): void;
120
- protected onKeyDown(e: KeyboardEvent): void;
121
- protected handleClick(): void;
122
- }
123
- declare global {
124
- interface HTMLElementTagNameMap {
125
- "tk-accordion": TkAccordion;
126
- }
127
- }
128
- /**
129
- * A badge WebComponent
130
- * @cssprop --tk-badge-color - Color of widget default to --primary
131
- * @cssprop --tk-badge-text-color - Text color of widget to --on-primary
132
- */
133
- declare class TkBadge extends LitElement {
134
- static get styles(): import("lit").CSSResult;
135
- label: string;
136
- render(): import("lit-html").TemplateResult<1>;
137
- }
138
- declare global {
139
- interface HTMLElementTagNameMap {
140
- "tk-badge": TkBadge;
141
- }
142
- }
143
- /**
144
- * A button web component
145
- *
146
- * @cssprop --tk-badge-color - Color of widget
147
- * @cssprop [--tk-badge-color=--primary]
148
- * @cssprop --tk-badge-text-color - Text color of widget to --on-primary-color
149
- *
150
- * @attr {Boolean} accent - accent colors
151
- * @attr {Boolean} disabled - Disable this element
152
- * @attr {Boolean} inverted - color and text-color are inverted
153
- * @attr {Boolean} outlined - outlined
154
- * @attr {Boolean} pill - rounded corner
155
- * @attr {Boolean} ripple - display ripple when active
156
- * @attr {Boolean} small - mini button
157
- */
158
- declare class TkButton extends TkBox {
159
- static get styles(): import("lit").CSSResult[];
160
- private _id;
161
- href: string | null;
162
- target: "_blank" | "_parent" | "_self" | "_top";
163
- type: "submit" | "reset" | "button";
164
- disabled: boolean;
165
- fab: boolean;
166
- iconPath: string;
167
- ripple: boolean;
168
- protected $ahref: HTMLAnchorElement;
169
- protected $button: HTMLButtonElement;
170
- render(): import("lit-html").TemplateResult<1>;
171
- connectedCallback(): void;
172
- disconnectedCallback(): void;
173
- updated(props: any): void;
174
- protected onKeyDown(e: KeyboardEvent): void;
175
- firstUpdated(): void;
176
- protected handleClick(e: Event): void;
177
- slotChanged(): void;
178
- }
179
- declare global {
180
- interface HTMLElementTagNameMap {
181
- "tk-button": TkButton;
182
- }
183
- }
184
- declare class TkCheckbox extends LitElement {
185
- static styles: import("lit").CSSResult;
186
- private _id;
187
- name: string;
188
- value: string;
189
- checked: boolean;
190
- disabled: boolean;
191
- private $input;
192
- render(): import("lit-html").TemplateResult<1>;
193
- connectedCallback(): void;
194
- disconnectedCallback(): void;
195
- firstUpdated(): void;
196
- protected onKeyDown(e: KeyboardEvent): void;
197
- protected handleClick(): void;
198
- }
199
- declare global {
200
- interface HTMLElementTagNameMap {
201
- "tk-checkbox": TkCheckbox;
202
- }
203
- }
204
- declare class TkChip extends LitElement {
205
- static styles: import("lit").CSSResult;
206
- render(): import("lit-html").TemplateResult<1>;
207
- }
208
- declare global {
209
- interface HTMLElementTagNameMap {
210
- "tk-chip": TkChip;
211
- }
212
- }
213
- declare class TkDialog extends LitElement {
214
- static styles: CSSResultGroup;
215
- modal: boolean;
216
- open: boolean;
217
- blurOverlay: boolean;
218
- private resolve;
219
- render(): import("lit-html").TemplateResult<1>;
220
- protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
221
- show(): Promise<string | boolean | null>;
222
- hide(value?: boolean | string | null): void;
223
- }
224
- declare global {
225
- interface HTMLElementTagNameMap {
226
- "tk-dialog": TkDialog;
227
- }
228
- }
229
- declare class TkDrawer extends LitElement {
230
- static styles: import("lit").CSSResult;
231
- _open: boolean;
232
- set open(value: boolean);
233
- get open(): boolean;
234
- over: boolean;
235
- openQuery: string;
236
- overQuery: string;
237
- right: boolean;
238
- swipeable: boolean;
239
- private $drawer;
240
- private mql;
241
- render(): import("lit-html").TemplateResult<1>;
242
- updated(props: any): void;
243
- protected overMediaQuery(): void;
244
- private overMediaQueryListener;
245
- hideIfOver(): void;
246
- show(): void;
247
- hide(): void;
248
- toggle(): void;
249
- swipeX: number;
250
- swipeY: number;
251
- isHorizontalSwipe: boolean;
252
- touchStart(event: TouchEvent): void;
253
- touchMove(event: TouchEvent): void;
254
- touchEnd(event: TouchEvent): void;
255
- }
256
- declare global {
257
- interface HTMLElementTagNameMap {
258
- "tk-drawer": TkDrawer;
259
- }
260
- }
261
- declare class TkForm extends LitElement {
262
- value: any;
263
- connectedCallback(): void;
264
- disconnectedCallback(): void;
265
- submit(e: Event): void;
266
- getFormDataAsObject(): any;
267
- }
268
- declare global {
269
- interface HTMLElementTagNameMap {
270
- "tk-form": TkForm;
271
- }
272
- }
273
- declare class TkIcon extends TkBox {
274
- static get styles(): import("lit").CSSResult[];
275
- name: string;
276
- library: string;
277
- path: string;
278
- private svg;
279
- render(): import("lit-html").TemplateResult<1>;
280
- updated(props: any): void;
281
- loadIcon(): Promise<void>;
282
- }
283
- declare global {
284
- interface HTMLElementTagNameMap {
285
- "tk-icon": TkIcon;
286
- }
287
- }
288
- declare class TkIcons extends LitElement {
289
- resolve: Function;
290
- library: string;
291
- firstUpdated(): void;
292
- }
293
- declare class TkListItem extends TkBox {
294
- static get styles(): import("lit").CSSResult[];
295
- href: string;
296
- target: string;
297
- ariaLabel: string;
298
- protected $ahref: HTMLAnchorElement;
299
- render(): import("lit-html").TemplateResult<1>;
300
- constructor();
301
- firstUpdated(): void;
302
- connectedCallback(): void;
303
- disconnectedCallback(): void;
304
- protected onKeyDown(e: KeyboardEvent): void;
305
- protected handleClick(e: Event): void;
306
- }
307
- declare global {
308
- interface HTMLElementTagNameMap {
309
- "tk-list-item": TkListItem;
310
- }
311
- }
312
- declare class TkLoading extends TkBox {
313
- static get styles(): import("lit").CSSResult[];
314
- circle: boolean;
315
- indeterminate: boolean;
316
- percent: number;
317
- render(): import("lit-html").TemplateResult<1>;
318
- }
319
- declare global {
320
- interface HTMLElementTagNameMap {
321
- "tk-loading": TkLoading;
322
- }
323
- }
324
- declare class TkNavigationBar extends LitElement {
325
- static styles: import("lit").CSSResult;
326
- render(): import("lit-html").TemplateResult<1>;
327
- }
328
- declare global {
329
- interface HTMLElementTagNameMap {
330
- "tk-navigation-bar": TkNavigationBar;
331
- }
332
- }
333
- declare class TkNavigationItem extends LitElement {
334
- static styles: import("lit").CSSResult;
335
- label: string;
336
- iconPath: string;
337
- activeIconPath: string;
338
- active: boolean;
339
- render(): import("lit-html").TemplateResult<1>;
340
- }
341
- declare global {
342
- interface HTMLElementTagNameMap {
343
- "tk-navigation-item": TkNavigationItem;
344
- }
345
- }
346
- declare class TkTopbar extends TkBox {
347
- static get styles(): import("lit").CSSResult[];
348
- render(): import("lit-html").TemplateResult<1>;
349
- }
350
- declare global {
351
- interface HTMLElementTagNameMap {
352
- "tk-topbar": TkTopbar;
353
- }
354
- }
355
- interface NotieOptions {
356
- background?: string;
357
- level?: NotieLevel;
358
- color?: string;
359
- text?: string;
360
- delay?: number;
361
- zIndex?: number;
362
- template?: TemplateResult;
363
- container?: HTMLElement;
364
- position?: "bottom" | "top";
365
- }
366
- interface NotieForceOptions extends NotieOptions {
367
- buttonText?: string;
368
- }
369
- interface NotieConfirmOptions extends NotieOptions {
370
- confirmText?: string;
371
- cancelText?: string;
372
- }
373
- interface NotieInputOptions extends NotieConfirmOptions {
374
- password?: boolean;
375
- inputType?: string;
376
- }
377
- declare enum NotieType {
378
- show = "show",
379
- force = "force",
380
- confirm = "confirm",
381
- input = "input"
382
- }
383
- declare enum NotieLevel {
384
- success = "success",
385
- warning = "warning",
386
- error = "error",
387
- info = "info",
388
- neutral = "neutral"
389
- }
390
- declare class TkNotie extends TkBox {
391
- static get styles(): import("lit").CSSResult[];
392
- persistent: boolean;
393
- open: boolean;
394
- position: NotieOptions["position"];
395
- type: NotieType;
396
- level: NotieLevel;
397
- delay: number;
398
- animationDelay: number;
399
- text: string;
400
- inputType: string;
401
- buttonText: string;
402
- confirmText: string;
403
- cancelText: string;
404
- template: TemplateResult;
405
- private $input;
406
- private $container;
407
- private resolve;
408
- render(): TemplateResult<1>;
409
- show(): Promise<string | boolean | null>;
410
- hide(value: boolean | string | null): void;
411
- constructor(text?: string);
412
- static show(options: NotieOptions): Promise<boolean | string | null>;
413
- static force(options: NotieForceOptions): Promise<boolean | string | null>;
414
- static confirm(options: NotieConfirmOptions): Promise<boolean | string | null>;
415
- static input(options: NotieInputOptions): Promise<boolean | string | null>;
416
- private static getNotie;
417
- }
418
- declare global {
419
- interface HTMLElementTagNameMap {
420
- "tk-notie": TkNotie;
421
- }
422
- }
423
- declare class TkPages extends LitElement {
424
- static styles: import("lit").CSSResult;
425
- private _page;
426
- set page(val: string);
427
- get page(): string;
428
- selected: string;
429
- handleScroll: boolean;
430
- private scrollHistory;
431
- render(): import("lit-html").TemplateResult<1>;
432
- updated(props: any): void;
433
- }
434
- declare global {
435
- interface HTMLElementTagNameMap {
436
- "tk-pages": TkPages;
437
- }
438
- }
439
- declare class TkRadio extends LitElement {
440
- static styles: import("lit").CSSResult;
441
- private _id;
442
- name: string;
443
- checked: boolean;
444
- required: boolean;
445
- disabled: boolean;
446
- readonly: boolean;
447
- value: string;
448
- private $input;
449
- render(): import("lit-html").TemplateResult<1>;
450
- connectedCallback(): void;
451
- disconnectedCallback(): void;
452
- firstUpdated(): void;
453
- protected onKeyDown(e: KeyboardEvent): void;
454
- protected handleClick(): void;
455
- }
456
- declare global {
457
- interface HTMLElementTagNameMap {
458
- "tk-radio": TkRadio;
459
- }
460
- }
461
- declare class TkSelect extends LitElement {
462
- static styles: import("lit").CSSResult;
463
- private _id;
464
- set value(value: string);
465
- get value(): string;
466
- name: string;
467
- list: string;
468
- type: "email" | "number" | "password" | "text" | "search";
469
- required: boolean;
470
- disabled: boolean;
471
- readonly: boolean;
472
- autocomplete: "on" | "off";
473
- pattern: string;
474
- initialValue: string;
475
- label: string;
476
- min: number;
477
- max: number;
478
- minLength: number;
479
- maxLength: number;
480
- private $select;
481
- render(): import("lit-html").TemplateResult<1>;
482
- private handleChange;
483
- firstUpdated(): void;
484
- private refreshAttributes;
485
- }
486
- declare global {
487
- interface HTMLElementTagNameMap {
488
- "tk-select": TkSelect;
489
- }
490
- }
491
- declare class TkSlider extends LitElement {
492
- static styles: import("lit").CSSResult;
493
- private _id;
494
- name: string;
495
- list: string;
496
- required: boolean;
497
- disabled: boolean;
498
- readonly: boolean;
499
- autocomplete: "on" | "off";
500
- thumbLabel: boolean;
501
- thumbLabelPersist: boolean;
502
- label: string;
503
- min: number;
504
- value: number;
505
- max: number;
506
- step: number;
507
- private $slider;
508
- private $input;
509
- render(): import("lit-html").TemplateResult<1>;
510
- private handleChange;
511
- firstUpdated(): void;
512
- updated(): void;
513
- }
514
- declare global {
515
- interface HTMLElementTagNameMap {
516
- "tk-slider": TkSlider;
517
- }
518
- }
519
- declare class TkSwitch extends LitElement {
520
- static styles: import("lit").CSSResult;
521
- private _id;
522
- name: string;
523
- checked: boolean;
524
- required: boolean;
525
- disabled: boolean;
526
- readonly: boolean;
527
- value: string;
528
- private $input;
529
- render(): import("lit-html").TemplateResult<1>;
530
- connectedCallback(): void;
531
- disconnectedCallback(): void;
532
- firstUpdated(): void;
533
- protected onKeyDown(e: KeyboardEvent): void;
534
- protected handleClick(): void;
535
- }
536
- declare global {
537
- interface HTMLElementTagNameMap {
538
- "tk-switch": TkSwitch;
539
- }
540
- }
541
- declare class TkTabGroup extends LitElement {
542
- static styles: import("lit").CSSResult;
543
- secondary: boolean;
544
- observe: string;
545
- selected: string;
546
- private $underline;
547
- private $circle;
548
- render(): import("lit-html").TemplateResult<1>;
549
- constructor();
550
- firstUpdated(): void;
551
- updated(props: any): void;
552
- protected clickOnTab(tab: HTMLElement): void;
553
- protected updateUnderline(): void;
554
- }
555
- declare global {
556
- interface HTMLElementTagNameMap {
557
- "tk-tab-group": TkTabGroup;
558
- }
559
- }
560
- declare class TkTextarea extends LitElement {
561
- static styles: import("lit").CSSResult;
562
- private _id;
563
- set value(value: string);
564
- get value(): string;
565
- name: string;
566
- list: string;
567
- type: "email" | "number" | "password" | "text";
568
- required: boolean;
569
- disabled: boolean;
570
- readonly: boolean;
571
- autocomplete: "on" | "off";
572
- autocapitalize: "off" | "none" | "on" | "sentences" | "words" | "characters";
573
- pattern: string;
574
- initialValue: string;
575
- label: string;
576
- minLength: number;
577
- maxLength: number;
578
- rows: number;
579
- private $input;
580
- render(): import("lit-html").TemplateResult<1>;
581
- private handleChange;
582
- firstUpdated(): void;
583
- private refreshAttributes;
584
- focus(): void;
585
- }
586
- declare global {
587
- interface HTMLElementTagNameMap {
588
- "tk-textarea": TkTextarea;
589
- }
590
- }
591
- declare class TkTextfield extends LitElement {
592
- static styles: import("lit").CSSResult;
593
- private _id;
594
- set value(value: string);
595
- get value(): string;
596
- name: string;
597
- list: string;
598
- type: "email" | "number" | "password" | "text" | "search";
599
- required: boolean;
600
- disabled: boolean;
601
- readonly: boolean;
602
- autocomplete: "on" | "off";
603
- autocapitalize: "off" | "none" | "on" | "sentences" | "words" | "characters";
604
- pattern: string;
605
- initialValue: string;
606
- label: string;
607
- min: number;
608
- max: number;
609
- minLength: number;
610
- maxLength: number;
611
- private $input;
612
- render(): import("lit-html").TemplateResult<1>;
613
- private handleChange;
614
- firstUpdated(): void;
615
- private refreshAttributes;
616
- focus(): void;
617
- }
618
- declare global {
619
- interface HTMLElementTagNameMap {
620
- "tk-textfield": TkTextfield;
621
- }
622
- }
623
- declare class TkTheme extends LitElement {
624
- static styles: import("lit").CSSResult;
625
- primary: string;
626
- secondary: string;
627
- tertiary: string;
628
- error: string;
629
- neutral: string;
630
- neutralVariant: string;
631
- forceBody: boolean;
632
- inverted: boolean;
633
- private primary_hsl;
634
- private secondary_hsl;
635
- private tertiary_hsl;
636
- private error_hsl;
637
- private neutral_hsl;
638
- private neutral_variant_hsl;
639
- render(): import("lit-html").TemplateResult<1>;
640
- protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
641
- private hexToHSL;
642
- private setThemeColor;
643
- }
644
- declare global {
645
- interface HTMLElementTagNameMap {
646
- "tk-theme": TkTheme;
647
- }
648
- }
649
- declare class TkTooltip extends LitElement {
650
- static styles: import("lit").CSSResult;
651
- position: "bottom" | "top" | "right" | "left";
652
- render(): import("lit-html").TemplateResult<1>;
653
- }
654
- declare global {
655
- interface HTMLElementTagNameMap {
656
- "tk-tooltip": TkTooltip;
657
- }
658
- }
659
- export { TkAccordion, TkBadge, TkBox, TkButton, TkCheckbox, TkChip, TkDialog, TkDrawer, TkForm, TkIcon, TkIcons, TkListItem, TkLoading, TkNavigationBar, TkNavigationItem, TkTopbar, NotieOptions, NotieForceOptions, NotieConfirmOptions, NotieInputOptions, NotieLevel, TkNotie, TkPages, TkRadio, TkSelect, TkSlider, TkSwitch, TkTabGroup, TkTextarea, TkTextfield, TkTheme, TkTooltip };
660
- //# sourceMappingURL=tinkiet.min.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tinkiet.min.d.ts","sourceRoot":"","sources":["../../tinkiet/index.ts","../../tinkiet/box/box.ts","../../tinkiet/box/index.ts","../../tinkiet/utils/unique.ts","../../tinkiet/box/focusable-box.ts","../../tinkiet/accordion/accordion.ts","../../tinkiet/accordion/index.ts","../../tinkiet/badge/badge.ts","../../tinkiet/badge/index.ts","../../tinkiet/button/button.ts","../../tinkiet/button/index.ts","../../tinkiet/checkbox/checkbox.ts","../../tinkiet/checkbox/index.ts","../../tinkiet/chip/chip.ts","../../tinkiet/chip/index.ts","../../tinkiet/dialog/dialog.ts","../../tinkiet/dialog/index.ts","../../tinkiet/drawer/drawer.ts","../../tinkiet/drawer/index.ts","../../tinkiet/form/form.ts","../../tinkiet/form/index.ts","../../tinkiet/icon/icons.ts","../../tinkiet/icon/icon.ts","../../tinkiet/icon/index.ts","../../tinkiet/list-item/list-item.ts","../../tinkiet/list-item/index.ts","../../tinkiet/loading/loading.ts","../../tinkiet/loading/index.ts","../../tinkiet/navigation/navigation-bar.ts","../../tinkiet/navigation/navigation-item.ts","../../tinkiet/navigation/index.ts","../../tinkiet/topbar/topbar.ts","../../tinkiet/topbar/index.ts","../../tinkiet/textfield/textfield.ts","../../tinkiet/textfield/index.ts","../../tinkiet/notie/notie.ts","../../tinkiet/notie/index.ts","../../tinkiet/pages/pages.ts","../../tinkiet/pages/index.ts","../../tinkiet/radio/radio.ts","../../tinkiet/radio/index.ts","../../tinkiet/select/select.ts","../../tinkiet/select/index.ts","../../tinkiet/slider/slider.ts","../../tinkiet/slider/index.ts","../../tinkiet/switch/switch.ts","../../tinkiet/switch/index.ts","../../tinkiet/tab-group/tab-group.ts","../../tinkiet/tab-group/index.ts","../../tinkiet/textarea/textarea.ts","../../tinkiet/textarea/index.ts","../../tinkiet/theme/theme.ts","../../tinkiet/theme/index.ts","../../tinkiet/tooltip/tooltip.ts","../../tinkiet/tooltip/index.ts"],"names":[],"mappings":""}
package/utils/unique.js DELETED
@@ -1,12 +0,0 @@
1
- /**
2
- * Returns a unique ID.
3
- * @param {number} length
4
- * @returns {string}
5
- */
6
- function uniqueID(length = 10) {
7
- return `_${Math.random()
8
- .toString(36)
9
- .substr(2, length)}`;
10
- }
11
-
12
- export { uniqueID };