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.
- package/accordion/accordion.d.ts +3 -4
- package/accordion/index.d.ts +1 -1
- package/accordion/index.js +491 -1
- package/badge/badge.d.ts +2 -3
- package/badge/index.d.ts +1 -1
- package/badge/index.js +134 -1
- package/box/box.d.ts +3 -3
- package/box/focusable-box.d.ts +2 -3
- package/box/index.d.ts +1 -1
- package/box/index.js +289 -1
- package/button/button.d.ts +3 -4
- package/button/index.d.ts +1 -1
- package/button/index.js +502 -1
- package/checkbox/checkbox.d.ts +3 -3
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +450 -1
- package/chip/chip.d.ts +2 -3
- package/chip/index.d.ts +1 -1
- package/chip/index.js +123 -1
- package/dialog/dialog.d.ts +2 -3
- package/dialog/index.d.ts +1 -1
- package/dialog/index.js +162 -1
- package/drawer/drawer.d.ts +2 -3
- package/drawer/index.d.ts +1 -1
- package/drawer/index.js +272 -1
- package/form/form.d.ts +1 -2
- package/form/index.d.ts +1 -1
- package/form/index.js +149 -1
- package/icon/icon.d.ts +3 -4
- package/icon/icons.d.ts +1 -2
- package/icon/index.d.ts +2 -2
- package/icon/index.js +457 -2
- package/index.d.ts +52 -26
- package/index.js +3682 -52
- package/list-item/index.d.ts +1 -1
- package/list-item/index.js +414 -1
- package/list-item/list-item.d.ts +3 -4
- package/loading/index.d.ts +1 -1
- package/loading/index.js +389 -1
- package/loading/loading.d.ts +3 -4
- package/navigation/index.d.ts +2 -2
- package/navigation/index.js +201 -2
- package/navigation/navigation-bar.d.ts +2 -3
- package/navigation/navigation-item.d.ts +2 -3
- package/notie/index.d.ts +1 -1
- package/notie/index.js +744 -1
- package/notie/notie.d.ts +12 -11
- package/package.json +8 -5
- package/pages/index.d.ts +1 -1
- package/pages/index.js +178 -1
- package/pages/pages.d.ts +2 -3
- package/radio/index.d.ts +1 -1
- package/radio/index.js +466 -1
- package/radio/radio.d.ts +3 -3
- package/select/index.d.ts +1 -1
- package/select/index.js +493 -1
- package/select/select.d.ts +3 -3
- package/slider/index.d.ts +1 -1
- package/slider/index.js +274 -1
- package/slider/slider.d.ts +2 -3
- package/snackbar/index.d.ts +1 -0
- package/snackbar/snackbar.d.ts +34 -0
- package/switch/index.d.ts +1 -1
- package/switch/index.js +462 -1
- package/switch/switch.d.ts +3 -3
- package/tab-group/index.d.ts +1 -1
- package/tab-group/index.js +182 -1
- package/tab-group/tab-group.d.ts +2 -3
- package/tab-group/tab-item.d.ts +7 -0
- package/textarea/index.d.ts +1 -1
- package/textarea/index.js +272 -1
- package/textarea/textarea.d.ts +2 -3
- package/textfield/index.d.ts +1 -1
- package/textfield/index.js +278 -1
- package/textfield/textfield.d.ts +2 -3
- package/theme/index.d.ts +1 -1
- package/theme/index.js +240 -1
- package/theme/theme.d.ts +2 -3
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +136 -1
- package/tooltip/tooltip.d.ts +2 -3
- package/topbar/index.d.ts +1 -1
- package/topbar/index.js +358 -1
- package/topbar/topbar.d.ts +3 -4
- package/umd/tinkiet.min.js +420 -1
- package/utils/aria.d.ts +11 -0
- package/utils/unique.d.ts +1 -2
- package/accordion/accordion.js +0 -94
- package/accordion/accordion.scss.js +0 -4
- package/badge/badge.js +0 -31
- package/badge/badge.scss.js +0 -4
- package/box/box.js +0 -186
- package/box/box.scss.js +0 -4
- package/box/focusable-box.js +0 -30
- package/button/button.js +0 -141
- package/button/button.scss.js +0 -4
- package/checkbox/checkbox.js +0 -89
- package/checkbox/checkbox.scss.js +0 -4
- package/chip/chip.js +0 -20
- package/chip/chip.scss.js +0 -4
- package/dialog/dialog.js +0 -59
- package/dialog/dialog.scss.js +0 -4
- package/drawer/drawer.js +0 -168
- package/drawer/drawer.scss.js +0 -4
- package/form/form.js +0 -54
- package/icon/icon.js +0 -77
- package/icon/icon.scss.js +0 -4
- package/icon/icons.js +0 -24
- package/index.d.ts.map +0 -1
- package/list-item/list-item.js +0 -86
- package/list-item/list-item.scss.js +0 -4
- package/loading/loading.js +0 -61
- package/loading/loading.scss.js +0 -4
- package/navigation/navigation-bar.js +0 -20
- package/navigation/navigation-bar.scss.js +0 -4
- package/navigation/navigation-item.js +0 -51
- package/navigation/navigation-item.scss.js +0 -4
- package/notie/notie.js +0 -201
- package/notie/notie.scss.js +0 -4
- package/pages/pages.js +0 -75
- package/pages/pages.scss.js +0 -4
- package/radio/radio.js +0 -105
- package/radio/radio.scss.js +0 -4
- package/select/select.js +0 -132
- package/select/select.scss.js +0 -4
- package/slider/slider.js +0 -135
- package/slider/slider.scss.js +0 -4
- package/switch/switch.js +0 -101
- package/switch/switch.scss.js +0 -4
- package/tab-group/tab-group.js +0 -79
- package/tab-group/tab-group.scss.js +0 -4
- package/textarea/textarea.js +0 -133
- package/textarea/textarea.scss.js +0 -4
- package/textfield/textfield.js +0 -138
- package/textfield/textfield.scss.js +0 -4
- package/theme/theme.js +0 -137
- package/theme/theme.scss.js +0 -4
- package/tooltip/tooltip.js +0 -33
- package/tooltip/tooltip.scss.js +0 -4
- package/topbar/topbar.js +0 -33
- package/topbar/topbar.scss.js +0 -4
- package/umd/tinkiet.min.d.ts +0 -660
- package/umd/tinkiet.min.d.ts.map +0 -1
- package/utils/unique.js +0 -12
package/navigation/index.js
CHANGED
|
@@ -1,2 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
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
|
|
1
|
+
export * from "./notie";
|