tinkiet 0.9.14 → 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,2 +1,201 @@
1
- export { TkNavigationBar } from './navigation-bar.js';
2
- export { TkNavigationItem } from './navigation-item.js';
1
+ import * as __WEBPACK_EXTERNAL_MODULE_lit__ from "lit";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__ from "lit/decorators.js";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 2667:
6
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
7
+
8
+
9
+ // EXPORTS
10
+ __webpack_require__.d(__webpack_exports__, {
11
+ v: () => (/* binding */ TkNavigationBar)
12
+ });
13
+
14
+ // EXTERNAL MODULE: external "lit"
15
+ var external_lit_ = __webpack_require__(2927);
16
+ // EXTERNAL MODULE: external "lit/decorators.js"
17
+ var decorators_js_ = __webpack_require__(8899);
18
+ ;// ./tinkiet/navigation/navigation-bar.scss
19
+ /* harmony default export */ const navigation_bar = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host slot{display:flex;justify-content:space-between}");
20
+ ;// ./tinkiet/navigation/navigation-bar.ts
21
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
22
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
23
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
24
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
25
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
26
+ };
27
+
28
+
29
+
30
+ let TkNavigationBar = class TkNavigationBar extends external_lit_.LitElement {
31
+ render() {
32
+ return (0,external_lit_.html) `
33
+ <slot></slot>
34
+ `;
35
+ }
36
+ };
37
+ TkNavigationBar.styles = (0,external_lit_.css) `
38
+ ${(0,external_lit_.unsafeCSS)(navigation_bar)}
39
+ `;
40
+ TkNavigationBar = __decorate([
41
+ (0,decorators_js_.customElement)("tk-navigation-bar")
42
+ ], TkNavigationBar);
43
+
44
+
45
+
46
+ /***/ }),
47
+
48
+ /***/ 2927:
49
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
50
+
51
+ var x = (y) => {
52
+ var x = {}; __webpack_require__.d(x, y); return x
53
+ }
54
+ var y = (x) => (() => (x))
55
+ module.exports = x({ ["LitElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.LitElement), ["css"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.css), ["html"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.html), ["unsafeCSS"]: () => (__WEBPACK_EXTERNAL_MODULE_lit__.unsafeCSS) });
56
+
57
+ /***/ }),
58
+
59
+ /***/ 3338:
60
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
61
+
62
+
63
+ // EXPORTS
64
+ __webpack_require__.d(__webpack_exports__, {
65
+ L: () => (/* binding */ TkNavigationItem)
66
+ });
67
+
68
+ // EXTERNAL MODULE: external "lit"
69
+ var external_lit_ = __webpack_require__(2927);
70
+ // EXTERNAL MODULE: external "lit/decorators.js"
71
+ var decorators_js_ = __webpack_require__(8899);
72
+ ;// ./tinkiet/navigation/navigation-item.scss
73
+ /* harmony default export */ const navigation_item = ("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{cursor:pointer}:host .indicator{position:relative;height:32px;width:64px;border-radius:16px;margin-bottom:4px;display:flex;justify-content:center;align-items:center;outline:none}:host .indicator tk-icon{width:24px;height:24px}:host .indicator .badge{display:flex;position:absolute;top:4px;left:35px}:host .label{font-size:12px;line-height:16px;margin-top:4px;font-weight:500}:host([active]){color:hsl(var(--on-secondary-container))}:host([active]) .indicator{background-color:hsl(var(--secondary-container))}:host(:hover){color:hsl(var(--on-surface-variant))}:host(:hover) .indicator{background-color:hsla(var(--on-surface-variant), 0.08)}:host(:focus){color:hsl(var(--on-surface-variant))}:host(:focus) .indicator{background-color:hsla(var(--on-surface-variant), 0.12)}:host([active]:hover){color:hsl(var(--on-surface))}:host([active]:hover) .indicator{background-color:hsla(var(--on-surface), 0.08)}:host([active]:focus){color:hsl(var(--on-surface))}:host([active]:focus) .indicator{background-color:hsl(var(--on-surface), 0.12)}");
74
+ ;// ./tinkiet/navigation/navigation-item.ts
75
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
76
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
77
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
78
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
79
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
80
+ };
81
+
82
+
83
+
84
+ let TkNavigationItem = class TkNavigationItem extends external_lit_.LitElement {
85
+ constructor() {
86
+ super(...arguments);
87
+ this.label = "";
88
+ this.iconPath = "";
89
+ this.activeIconPath = "";
90
+ this.active = false;
91
+ }
92
+ render() {
93
+ return (0,external_lit_.html) `
94
+ <tk-box align-items="center">
95
+ <tk-box ripple overflow="hidden" tabindex="0" class="indicator">
96
+ <tk-icon path=${this.active && this.activeIconPath ? this.activeIconPath : this.iconPath}></tk-icon>
97
+ <span class="badge">
98
+ <slot name="badge"></slot>
99
+ </span>
100
+ </tk-box>
101
+ ${this.label
102
+ ? (0,external_lit_.html) `
103
+ <span class="label">${this.label}</span>
104
+ `
105
+ : ""}
106
+ </tk-box>
107
+ `;
108
+ }
109
+ };
110
+ TkNavigationItem.styles = (0,external_lit_.css) `
111
+ ${(0,external_lit_.unsafeCSS)(navigation_item)}
112
+ `;
113
+ __decorate([
114
+ (0,decorators_js_.property)()
115
+ ], TkNavigationItem.prototype, "label", void 0);
116
+ __decorate([
117
+ (0,decorators_js_.property)()
118
+ ], TkNavigationItem.prototype, "iconPath", void 0);
119
+ __decorate([
120
+ (0,decorators_js_.property)()
121
+ ], TkNavigationItem.prototype, "activeIconPath", void 0);
122
+ __decorate([
123
+ (0,decorators_js_.property)({ type: Boolean })
124
+ ], TkNavigationItem.prototype, "active", void 0);
125
+ TkNavigationItem = __decorate([
126
+ (0,decorators_js_.customElement)("tk-navigation-item")
127
+ ], TkNavigationItem);
128
+
129
+
130
+
131
+ /***/ }),
132
+
133
+ /***/ 8899:
134
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
135
+
136
+ var x = (y) => {
137
+ var x = {}; __webpack_require__.d(x, y); return x
138
+ }
139
+ var y = (x) => (() => (x))
140
+ module.exports = x({ ["customElement"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.customElement), ["property"]: () => (__WEBPACK_EXTERNAL_MODULE_lit_decorators_js_226d44c5__.property) });
141
+
142
+ /***/ })
143
+
144
+ /******/ });
145
+ /************************************************************************/
146
+ /******/ // The module cache
147
+ /******/ var __webpack_module_cache__ = {};
148
+ /******/
149
+ /******/ // The require function
150
+ /******/ function __webpack_require__(moduleId) {
151
+ /******/ // Check if module is in cache
152
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
153
+ /******/ if (cachedModule !== undefined) {
154
+ /******/ return cachedModule.exports;
155
+ /******/ }
156
+ /******/ // Create a new module (and put it into the cache)
157
+ /******/ var module = __webpack_module_cache__[moduleId] = {
158
+ /******/ // no module.id needed
159
+ /******/ // no module.loaded needed
160
+ /******/ exports: {}
161
+ /******/ };
162
+ /******/
163
+ /******/ // Execute the module function
164
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
165
+ /******/
166
+ /******/ // Return the exports of the module
167
+ /******/ return module.exports;
168
+ /******/ }
169
+ /******/
170
+ /************************************************************************/
171
+ /******/ /* webpack/runtime/define property getters */
172
+ /******/ (() => {
173
+ /******/ // define getter functions for harmony exports
174
+ /******/ __webpack_require__.d = (exports, definition) => {
175
+ /******/ for(var key in definition) {
176
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
177
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
178
+ /******/ }
179
+ /******/ }
180
+ /******/ };
181
+ /******/ })();
182
+ /******/
183
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
184
+ /******/ (() => {
185
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
186
+ /******/ })();
187
+ /******/
188
+ /************************************************************************/
189
+ var __webpack_exports__ = {};
190
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
191
+ /* harmony export */ L: () => (/* reexport safe */ _navigation_item__WEBPACK_IMPORTED_MODULE_1__.L),
192
+ /* harmony export */ v: () => (/* reexport safe */ _navigation_bar__WEBPACK_IMPORTED_MODULE_0__.v)
193
+ /* harmony export */ });
194
+ /* harmony import */ var _navigation_bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2667);
195
+ /* harmony import */ var _navigation_item__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3338);
196
+
197
+
198
+
199
+ const __webpack_exports__TkNavigationBar = __webpack_exports__.v;
200
+ const __webpack_exports__TkNavigationItem = __webpack_exports__.L;
201
+ export { __webpack_exports__TkNavigationBar as TkNavigationBar, __webpack_exports__TkNavigationItem as TkNavigationItem };
@@ -1,11 +1,10 @@
1
1
  import { LitElement } from "lit";
2
- declare class TkNavigationBar extends LitElement {
2
+ export declare class TkNavigationBar extends LitElement {
3
3
  static styles: import("lit").CSSResult;
4
- render(): import("lit-html").TemplateResult<1>;
4
+ render(): import("lit").TemplateResult<1>;
5
5
  }
6
6
  declare global {
7
7
  interface HTMLElementTagNameMap {
8
8
  "tk-navigation-bar": TkNavigationBar;
9
9
  }
10
10
  }
11
- export { TkNavigationBar };
@@ -1,15 +1,14 @@
1
1
  import { LitElement } from "lit";
2
- declare class TkNavigationItem extends LitElement {
2
+ export declare class TkNavigationItem extends LitElement {
3
3
  static styles: import("lit").CSSResult;
4
4
  label: string;
5
5
  iconPath: string;
6
6
  activeIconPath: string;
7
7
  active: boolean;
8
- render(): import("lit-html").TemplateResult<1>;
8
+ render(): import("lit").TemplateResult<1>;
9
9
  }
10
10
  declare global {
11
11
  interface HTMLElementTagNameMap {
12
12
  "tk-navigation-item": TkNavigationItem;
13
13
  }
14
14
  }
15
- export { TkNavigationItem };
package/notie/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./notie.js";
1
+ export * from "./notie";