@thl-ui/vue 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 thl-ui contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,59 @@
1
- # Temporary Holding Version
1
+ # @thl-ui/vue
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ thl-ui for Vue 3: admin UI components with global config, 12 skins, dark mode and i18n.
4
+
5
+ Part of [thl-ui](https://thl.tandd.dev): one UI kit for React, Vue and Angular with a headless TypeScript core, global config, 12 skins, dark mode and i18n (en, ja, vi, zh).
6
+
7
+ **Live demo:** [thl-vue.tandd.dev](https://thl-vue.tandd.dev): the full admin template built with `@thl-ui/vue` from npm.
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ npm i @thl-ui/vue @thl-ui/styles
13
+ ```
14
+
15
+ Peer dependencies: `vue`.
16
+
17
+ ## Usage
18
+
19
+ ```ts
20
+ // main.ts
21
+ import { createApp } from 'vue';
22
+ import ThlUI from '@thl-ui/vue';
23
+ import '@thl-ui/styles/thl-ui.css';
24
+ import App from './App.vue';
25
+
26
+ createApp(App).use(ThlUI, { locale: 'en', theme: 'default', colorMode: 'auto', persist: true }).mount('#app');
27
+ ```
28
+
29
+ ```vue
30
+ <script setup lang="ts">
31
+ import { ThlButton, useToast } from '@thl-ui/vue';
32
+ const toast = useToast();
33
+ </script>
34
+
35
+ <template>
36
+ <ThlButton variant="primary" @click="toast.success('Saved')">Save</ThlButton>
37
+ </template>
38
+ ```
39
+
40
+ Composables: `useThlConfig()`, `useI18n()`, `useToast()`, plus `$t` in templates. Form controls support `v-model`. Register globally with `app.use()` or import components one by one.
41
+
42
+ ## Live demos
43
+
44
+ | Framework | Package | Live demo |
45
+ |---|---|---|
46
+ | React ≥ 18 | [`@thl-ui/react`](https://www.npmjs.com/package/@thl-ui/react) | [thl-react.tandd.dev](https://thl-react.tandd.dev) |
47
+ | Vue ≥ 3.5 | [`@thl-ui/vue`](https://www.npmjs.com/package/@thl-ui/vue) | [thl-vue.tandd.dev](https://thl-vue.tandd.dev) |
48
+ | Angular ≥ 20 | [`@thl-ui/angular`](https://www.npmjs.com/package/@thl-ui/angular) | [thl-angular.tandd.dev](https://thl-angular.tandd.dev) |
49
+
50
+ Each demo is the full 74-page admin template, built with the packages installed from npm. Open the ⚙ panel to switch skin, layout, dark mode and language.
51
+
52
+ ## Links
53
+
54
+ - Docs: [thl.tandd.dev/guide/vue](https://thl.tandd.dev/guide/vue) (English, 日本語, Tiếng Việt, 简体中文)
55
+ - Source and issues: [GitLab](https://gitlab.com/tandd.packages/thl-ui)
56
+
57
+ ## License
58
+
59
+ MIT
@@ -0,0 +1,397 @@
1
+ import { PropType } from 'vue';
2
+ import { ThlSemanticColor } from '@thl-ui/core';
3
+ export declare const ThlIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ name: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ size: {
9
+ type: PropType<string | number>;
10
+ required: false;
11
+ };
12
+ label: StringConstructor;
13
+ strokeWidth: NumberConstructor;
14
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
15
+ [key: string]: any;
16
+ }> | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ name: {
18
+ type: StringConstructor;
19
+ required: true;
20
+ };
21
+ size: {
22
+ type: PropType<string | number>;
23
+ required: false;
24
+ };
25
+ label: StringConstructor;
26
+ strokeWidth: NumberConstructor;
27
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
28
+ export declare const ThlButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
29
+ variant: StringConstructor;
30
+ size: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
31
+ outline: {
32
+ type: BooleanConstructor;
33
+ default: undefined;
34
+ };
35
+ rounded: {
36
+ type: BooleanConstructor;
37
+ default: undefined;
38
+ };
39
+ circle: BooleanConstructor;
40
+ block: BooleanConstructor;
41
+ loading: BooleanConstructor;
42
+ disabled: BooleanConstructor;
43
+ icon: StringConstructor;
44
+ iconRight: StringConstructor;
45
+ label: StringConstructor;
46
+ href: StringConstructor;
47
+ type: {
48
+ type: PropType<"button" | "reset" | "submit">;
49
+ default: "button" | "reset" | "submit";
50
+ };
51
+ ripple: {
52
+ type: BooleanConstructor;
53
+ default: boolean | undefined;
54
+ };
55
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
56
+ [key: string]: any;
57
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
58
+ variant: StringConstructor;
59
+ size: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
60
+ outline: {
61
+ type: BooleanConstructor;
62
+ default: undefined;
63
+ };
64
+ rounded: {
65
+ type: BooleanConstructor;
66
+ default: undefined;
67
+ };
68
+ circle: BooleanConstructor;
69
+ block: BooleanConstructor;
70
+ loading: BooleanConstructor;
71
+ disabled: BooleanConstructor;
72
+ icon: StringConstructor;
73
+ iconRight: StringConstructor;
74
+ label: StringConstructor;
75
+ href: StringConstructor;
76
+ type: {
77
+ type: PropType<"button" | "reset" | "submit">;
78
+ default: "button" | "reset" | "submit";
79
+ };
80
+ ripple: {
81
+ type: BooleanConstructor;
82
+ default: boolean | undefined;
83
+ };
84
+ }>> & Readonly<{
85
+ onClick?: ((...args: any[]) => any) | undefined;
86
+ }>, {
87
+ rounded: boolean;
88
+ type: "button" | "reset" | "submit";
89
+ circle: boolean;
90
+ block: boolean;
91
+ loading: boolean;
92
+ disabled: boolean;
93
+ outline: boolean;
94
+ ripple: boolean;
95
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
96
+ export declare const ThlButtonGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
97
+ vertical: BooleanConstructor;
98
+ justified: BooleanConstructor;
99
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
100
+ [key: string]: any;
101
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
102
+ vertical: BooleanConstructor;
103
+ justified: BooleanConstructor;
104
+ }>> & Readonly<{}>, {
105
+ vertical: boolean;
106
+ justified: boolean;
107
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
108
+ export declare const ThlBadge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
109
+ color: PropType<ThlSemanticColor>;
110
+ size: StringConstructor;
111
+ dot: BooleanConstructor;
112
+ pill: {
113
+ type: BooleanConstructor;
114
+ default: boolean | undefined;
115
+ };
116
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
117
+ [key: string]: any;
118
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
119
+ color: PropType<ThlSemanticColor>;
120
+ size: StringConstructor;
121
+ dot: BooleanConstructor;
122
+ pill: {
123
+ type: BooleanConstructor;
124
+ default: boolean | undefined;
125
+ };
126
+ }>> & Readonly<{}>, {
127
+ dot: boolean;
128
+ pill: boolean;
129
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
130
+ export declare const ThlLabel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
131
+ color: StringConstructor;
132
+ rounded: BooleanConstructor;
133
+ outline: BooleanConstructor;
134
+ closable: BooleanConstructor;
135
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
136
+ [key: string]: any;
137
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
138
+ color: StringConstructor;
139
+ rounded: BooleanConstructor;
140
+ outline: BooleanConstructor;
141
+ closable: BooleanConstructor;
142
+ }>> & Readonly<{
143
+ onClose?: ((...args: any[]) => any) | undefined;
144
+ }>, {
145
+ rounded: boolean;
146
+ outline: boolean;
147
+ closable: boolean;
148
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
149
+ export declare const ThlAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
150
+ src: StringConstructor;
151
+ name: StringConstructor;
152
+ size: {
153
+ type: PropType<string | number>;
154
+ required: false;
155
+ };
156
+ status: StringConstructor;
157
+ shape: {
158
+ type: PropType<string>;
159
+ default: string;
160
+ };
161
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
162
+ [key: string]: any;
163
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
164
+ src: StringConstructor;
165
+ name: StringConstructor;
166
+ size: {
167
+ type: PropType<string | number>;
168
+ required: false;
169
+ };
170
+ status: StringConstructor;
171
+ shape: {
172
+ type: PropType<string>;
173
+ default: string;
174
+ };
175
+ }>> & Readonly<{}>, {
176
+ shape: string;
177
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
178
+ export declare const ThlSpinner: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
179
+ size: StringConstructor;
180
+ label: StringConstructor;
181
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
182
+ [key: string]: any;
183
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
184
+ size: StringConstructor;
185
+ label: StringConstructor;
186
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
187
+ export declare const ThlPreloader: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
188
+ hidden: BooleanConstructor;
189
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
190
+ [key: string]: any;
191
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
192
+ hidden: BooleanConstructor;
193
+ }>> & Readonly<{}>, {
194
+ hidden: boolean;
195
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
196
+ export declare const ThlSkeleton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
197
+ width: {
198
+ type: PropType<string | number>;
199
+ required: false;
200
+ };
201
+ height: {
202
+ type: PropType<string | number>;
203
+ required: false;
204
+ };
205
+ circle: BooleanConstructor;
206
+ count: {
207
+ type: NumberConstructor;
208
+ default: number;
209
+ };
210
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
211
+ [key: string]: any;
212
+ }>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
213
+ width: {
214
+ type: PropType<string | number>;
215
+ required: false;
216
+ };
217
+ height: {
218
+ type: PropType<string | number>;
219
+ required: false;
220
+ };
221
+ circle: BooleanConstructor;
222
+ count: {
223
+ type: NumberConstructor;
224
+ default: number;
225
+ };
226
+ }>> & Readonly<{}>, {
227
+ circle: boolean;
228
+ count: number;
229
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
230
+ export declare const ThlDivider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
231
+ vertical: BooleanConstructor;
232
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
233
+ [key: string]: any;
234
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
235
+ vertical: BooleanConstructor;
236
+ }>> & Readonly<{}>, {
237
+ vertical: boolean;
238
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
239
+ export declare const ThlCard: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
240
+ title: StringConstructor;
241
+ subtitle: StringConstructor;
242
+ bordered: {
243
+ type: BooleanConstructor;
244
+ default: undefined;
245
+ };
246
+ shadow: {
247
+ type: BooleanConstructor;
248
+ default: undefined;
249
+ };
250
+ flush: BooleanConstructor;
251
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
252
+ [key: string]: any;
253
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
254
+ title: StringConstructor;
255
+ subtitle: StringConstructor;
256
+ bordered: {
257
+ type: BooleanConstructor;
258
+ default: undefined;
259
+ };
260
+ shadow: {
261
+ type: BooleanConstructor;
262
+ default: undefined;
263
+ };
264
+ flush: BooleanConstructor;
265
+ }>> & Readonly<{}>, {
266
+ flush: boolean;
267
+ bordered: boolean;
268
+ shadow: boolean;
269
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
270
+ export declare const ThlPanel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
271
+ title: StringConstructor;
272
+ color: StringConstructor;
273
+ collapsible: BooleanConstructor;
274
+ collapsed: {
275
+ type: BooleanConstructor;
276
+ default: undefined;
277
+ };
278
+ dismissible: BooleanConstructor;
279
+ loading: BooleanConstructor;
280
+ expandable: BooleanConstructor;
281
+ loadingText: StringConstructor;
282
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
283
+ [key: string]: any;
284
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:collapsed" | "dismiss")[], "update:collapsed" | "dismiss", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
285
+ title: StringConstructor;
286
+ color: StringConstructor;
287
+ collapsible: BooleanConstructor;
288
+ collapsed: {
289
+ type: BooleanConstructor;
290
+ default: undefined;
291
+ };
292
+ dismissible: BooleanConstructor;
293
+ loading: BooleanConstructor;
294
+ expandable: BooleanConstructor;
295
+ loadingText: StringConstructor;
296
+ }>> & Readonly<{
297
+ "onUpdate:collapsed"?: ((...args: any[]) => any) | undefined;
298
+ onDismiss?: ((...args: any[]) => any) | undefined;
299
+ }>, {
300
+ loading: boolean;
301
+ collapsible: boolean;
302
+ dismissible: boolean;
303
+ expandable: boolean;
304
+ collapsed: boolean;
305
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
306
+ export declare const ThlWell: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
307
+ size: StringConstructor;
308
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
309
+ [key: string]: any;
310
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
311
+ size: StringConstructor;
312
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
313
+ export declare const ThlRibbon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
314
+ text: {
315
+ type: StringConstructor;
316
+ required: true;
317
+ };
318
+ color: {
319
+ type: PropType<string>;
320
+ default: string;
321
+ };
322
+ variant: {
323
+ type: PropType<string>;
324
+ default: string;
325
+ };
326
+ position: {
327
+ type: PropType<string>;
328
+ default: string;
329
+ };
330
+ placement: {
331
+ type: PropType<string>;
332
+ default: string;
333
+ };
334
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
335
+ [key: string]: any;
336
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
337
+ text: {
338
+ type: StringConstructor;
339
+ required: true;
340
+ };
341
+ color: {
342
+ type: PropType<string>;
343
+ default: string;
344
+ };
345
+ variant: {
346
+ type: PropType<string>;
347
+ default: string;
348
+ };
349
+ position: {
350
+ type: PropType<string>;
351
+ default: string;
352
+ };
353
+ placement: {
354
+ type: PropType<string>;
355
+ default: string;
356
+ };
357
+ }>> & Readonly<{}>, {
358
+ position: string;
359
+ variant: string;
360
+ color: string;
361
+ placement: string;
362
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
363
+ export declare const ThlAlert: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
364
+ type: {
365
+ type: PropType<"default" | "red" | "purple" | "dark" | "primary" | "success" | "info" | "warning" | "danger" | "inverse">;
366
+ default: "default" | "red" | "purple" | "dark" | "primary" | "success" | "info" | "warning" | "danger" | "inverse";
367
+ };
368
+ title: StringConstructor;
369
+ icon: {
370
+ type: PropType<string | boolean>;
371
+ required: false;
372
+ };
373
+ dismissible: BooleanConstructor;
374
+ soft: BooleanConstructor;
375
+ image: StringConstructor;
376
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
377
+ [key: string]: any;
378
+ }> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
379
+ type: {
380
+ type: PropType<"default" | "red" | "purple" | "dark" | "primary" | "success" | "info" | "warning" | "danger" | "inverse">;
381
+ default: "default" | "red" | "purple" | "dark" | "primary" | "success" | "info" | "warning" | "danger" | "inverse";
382
+ };
383
+ title: StringConstructor;
384
+ icon: {
385
+ type: PropType<string | boolean>;
386
+ required: false;
387
+ };
388
+ dismissible: BooleanConstructor;
389
+ soft: BooleanConstructor;
390
+ image: StringConstructor;
391
+ }>> & Readonly<{
392
+ onClose?: ((...args: any[]) => any) | undefined;
393
+ }>, {
394
+ type: "default" | "red" | "purple" | "dark" | "primary" | "success" | "info" | "warning" | "danger" | "inverse";
395
+ dismissible: boolean;
396
+ soft: boolean;
397
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;