veilkit 0.0.0-stage → 0.2.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE +21 -0
  3. package/README.md +801 -2
  4. package/dist/angular/index.cjs +660 -0
  5. package/dist/angular/index.cjs.map +1 -0
  6. package/dist/angular/index.d.cts +113 -0
  7. package/dist/angular/index.d.ts +113 -0
  8. package/dist/angular/index.js +660 -0
  9. package/dist/angular/index.js.map +1 -0
  10. package/dist/cli/index.cjs +25 -0
  11. package/dist/cli/index.cjs.map +1 -0
  12. package/dist/cli/index.d.cts +1 -0
  13. package/dist/cli/index.d.ts +1 -0
  14. package/dist/cli/index.js +25 -0
  15. package/dist/cli/index.js.map +1 -0
  16. package/dist/controller-B6kFsWzi.d.cts +195 -0
  17. package/dist/controller-Ceub9kLC.d.ts +195 -0
  18. package/dist/element/index.cjs +660 -0
  19. package/dist/element/index.cjs.map +1 -0
  20. package/dist/element/index.d.cts +48 -0
  21. package/dist/element/index.d.ts +48 -0
  22. package/dist/element/index.js +660 -0
  23. package/dist/element/index.js.map +1 -0
  24. package/dist/index.cjs +660 -0
  25. package/dist/index.cjs.map +1 -0
  26. package/dist/index.d.cts +211 -0
  27. package/dist/index.d.ts +211 -0
  28. package/dist/index.js +660 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/native/index.cjs +2 -0
  31. package/dist/native/index.cjs.map +1 -0
  32. package/dist/native/index.d.cts +54 -0
  33. package/dist/native/index.d.ts +54 -0
  34. package/dist/native/index.js +2 -0
  35. package/dist/native/index.js.map +1 -0
  36. package/dist/react/index.cjs +660 -0
  37. package/dist/react/index.cjs.map +1 -0
  38. package/dist/react/index.d.cts +121 -0
  39. package/dist/react/index.d.ts +121 -0
  40. package/dist/react/index.js +660 -0
  41. package/dist/react/index.js.map +1 -0
  42. package/dist/styles.css +509 -0
  43. package/dist/svelte/index.cjs +660 -0
  44. package/dist/svelte/index.cjs.map +1 -0
  45. package/dist/svelte/index.d.cts +48 -0
  46. package/dist/svelte/index.d.ts +48 -0
  47. package/dist/svelte/index.js +660 -0
  48. package/dist/svelte/index.js.map +1 -0
  49. package/dist/themes/index.cjs +2 -0
  50. package/dist/themes/index.cjs.map +1 -0
  51. package/dist/themes/index.d.cts +18 -0
  52. package/dist/themes/index.d.ts +18 -0
  53. package/dist/themes/index.js +2 -0
  54. package/dist/themes/index.js.map +1 -0
  55. package/dist/types-CnR-rU97.d.cts +176 -0
  56. package/dist/types-CnR-rU97.d.ts +176 -0
  57. package/dist/veilkit.min.js +659 -0
  58. package/dist/vue/index.cjs +660 -0
  59. package/dist/vue/index.cjs.map +1 -0
  60. package/dist/vue/index.d.cts +512 -0
  61. package/dist/vue/index.d.ts +512 -0
  62. package/dist/vue/index.js +660 -0
  63. package/dist/vue/index.js.map +1 -0
  64. package/package.json +254 -4
@@ -0,0 +1,512 @@
1
+ import * as vue from 'vue';
2
+ import { Directive, PropType, App } from 'vue';
3
+ import { B as ButtonStatus, e as ButtonLoadingStyle, f as VeilSpinnerType, j as ButtonPressFeedback, k as ButtonResultAnimation, i as VeilPrimitiveType, a as VeilAnimationName, V as VeilThemeName, h as VeilShapeStyle, g as VeilPresetName, d as VeilGlobalConfig } from '../types-CnR-rU97.js';
4
+
5
+ declare function useProgress(): {
6
+ start: () => void;
7
+ set: (n: number) => void;
8
+ inc: (amount?: number) => void;
9
+ done: () => void;
10
+ fail: () => void;
11
+ };
12
+ declare function useDelayedLoading(loadingRef: {
13
+ value: boolean;
14
+ }, options?: {
15
+ delay?: number;
16
+ minVisible?: number;
17
+ }): vue.Ref<boolean, boolean>;
18
+ declare function useLoading<T, Args extends any[]>(asyncFn: (...args: Args) => Promise<T>, options?: {
19
+ delay?: number;
20
+ minVisible?: number;
21
+ }): {
22
+ loading: vue.Ref<boolean, boolean>;
23
+ rawLoading: vue.Ref<boolean, boolean>;
24
+ data: {
25
+ value: T | null;
26
+ };
27
+ error: vue.Ref<Error | null, Error | null>;
28
+ execute: (...args: Args) => Promise<T>;
29
+ };
30
+
31
+ declare const vVeil: Directive<HTMLElement, boolean>;
32
+
33
+ declare const VSkeleton: vue.DefineComponent<vue.ExtractPropTypes<{
34
+ type: {
35
+ type: PropType<VeilPrimitiveType>;
36
+ default: string;
37
+ };
38
+ width: {
39
+ type: (StringConstructor | NumberConstructor)[];
40
+ };
41
+ height: {
42
+ type: (StringConstructor | NumberConstructor)[];
43
+ };
44
+ radius: {
45
+ type: (StringConstructor | NumberConstructor)[];
46
+ };
47
+ count: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ gap: {
52
+ type: (StringConstructor | NumberConstructor)[];
53
+ default: string;
54
+ };
55
+ lines: {
56
+ type: NumberConstructor;
57
+ };
58
+ lastLineWidth: {
59
+ type: (StringConstructor | NumberConstructor)[];
60
+ default: string;
61
+ };
62
+ animation: {
63
+ type: PropType<VeilAnimationName>;
64
+ default: string;
65
+ };
66
+ theme: {
67
+ type: PropType<VeilThemeName>;
68
+ default: string;
69
+ };
70
+ shape: {
71
+ type: PropType<VeilShapeStyle>;
72
+ };
73
+ circle: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ label: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
82
+ [key: string]: any;
83
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
84
+ type: {
85
+ type: PropType<VeilPrimitiveType>;
86
+ default: string;
87
+ };
88
+ width: {
89
+ type: (StringConstructor | NumberConstructor)[];
90
+ };
91
+ height: {
92
+ type: (StringConstructor | NumberConstructor)[];
93
+ };
94
+ radius: {
95
+ type: (StringConstructor | NumberConstructor)[];
96
+ };
97
+ count: {
98
+ type: NumberConstructor;
99
+ default: number;
100
+ };
101
+ gap: {
102
+ type: (StringConstructor | NumberConstructor)[];
103
+ default: string;
104
+ };
105
+ lines: {
106
+ type: NumberConstructor;
107
+ };
108
+ lastLineWidth: {
109
+ type: (StringConstructor | NumberConstructor)[];
110
+ default: string;
111
+ };
112
+ animation: {
113
+ type: PropType<VeilAnimationName>;
114
+ default: string;
115
+ };
116
+ theme: {
117
+ type: PropType<VeilThemeName>;
118
+ default: string;
119
+ };
120
+ shape: {
121
+ type: PropType<VeilShapeStyle>;
122
+ };
123
+ circle: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ label: {
128
+ type: StringConstructor;
129
+ default: string;
130
+ };
131
+ }>> & Readonly<{}>, {
132
+ circle: boolean;
133
+ type: VeilPrimitiveType;
134
+ count: number;
135
+ gap: string | number;
136
+ lastLineWidth: string | number;
137
+ animation: VeilAnimationName;
138
+ theme: VeilThemeName;
139
+ label: string;
140
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
141
+ declare const VSkeletonPreset: vue.DefineComponent<vue.ExtractPropTypes<{
142
+ name: {
143
+ type: PropType<VeilPresetName>;
144
+ required: true;
145
+ };
146
+ items: {
147
+ type: NumberConstructor;
148
+ };
149
+ columns: {
150
+ type: NumberConstructor;
151
+ };
152
+ shape: {
153
+ type: PropType<VeilShapeStyle>;
154
+ default: string;
155
+ };
156
+ animation: {
157
+ type: PropType<VeilAnimationName>;
158
+ default: string;
159
+ };
160
+ theme: {
161
+ type: PropType<VeilThemeName>;
162
+ default: string;
163
+ };
164
+ width: {
165
+ type: (StringConstructor | NumberConstructor)[];
166
+ };
167
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
168
+ [key: string]: any;
169
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
170
+ name: {
171
+ type: PropType<VeilPresetName>;
172
+ required: true;
173
+ };
174
+ items: {
175
+ type: NumberConstructor;
176
+ };
177
+ columns: {
178
+ type: NumberConstructor;
179
+ };
180
+ shape: {
181
+ type: PropType<VeilShapeStyle>;
182
+ default: string;
183
+ };
184
+ animation: {
185
+ type: PropType<VeilAnimationName>;
186
+ default: string;
187
+ };
188
+ theme: {
189
+ type: PropType<VeilThemeName>;
190
+ default: string;
191
+ };
192
+ width: {
193
+ type: (StringConstructor | NumberConstructor)[];
194
+ };
195
+ }>> & Readonly<{}>, {
196
+ animation: VeilAnimationName;
197
+ theme: VeilThemeName;
198
+ shape: VeilShapeStyle;
199
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
200
+ declare const VVeil: vue.DefineComponent<vue.ExtractPropTypes<{
201
+ loading: {
202
+ type: BooleanConstructor;
203
+ required: true;
204
+ };
205
+ cacheKey: {
206
+ type: StringConstructor;
207
+ };
208
+ persistCache: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ reveal: {
213
+ type: StringConstructor;
214
+ default: string;
215
+ };
216
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
217
+ [key: string]: any;
218
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
219
+ loading: {
220
+ type: BooleanConstructor;
221
+ required: true;
222
+ };
223
+ cacheKey: {
224
+ type: StringConstructor;
225
+ };
226
+ persistCache: {
227
+ type: BooleanConstructor;
228
+ default: boolean;
229
+ };
230
+ reveal: {
231
+ type: StringConstructor;
232
+ default: string;
233
+ };
234
+ }>> & Readonly<{}>, {
235
+ reveal: string;
236
+ persistCache: boolean;
237
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
238
+ declare const VSpinner: vue.DefineComponent<vue.ExtractPropTypes<{
239
+ type: {
240
+ type: PropType<VeilSpinnerType>;
241
+ default: string;
242
+ };
243
+ size: {
244
+ type: (StringConstructor | NumberConstructor)[];
245
+ default: number;
246
+ };
247
+ color: {
248
+ type: StringConstructor;
249
+ };
250
+ secondaryColor: {
251
+ type: StringConstructor;
252
+ };
253
+ speed: {
254
+ type: (StringConstructor | NumberConstructor)[];
255
+ };
256
+ glass: {
257
+ type: BooleanConstructor;
258
+ default: boolean;
259
+ };
260
+ label: {
261
+ type: StringConstructor;
262
+ default: string;
263
+ };
264
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
265
+ [key: string]: any;
266
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
267
+ type: {
268
+ type: PropType<VeilSpinnerType>;
269
+ default: string;
270
+ };
271
+ size: {
272
+ type: (StringConstructor | NumberConstructor)[];
273
+ default: number;
274
+ };
275
+ color: {
276
+ type: StringConstructor;
277
+ };
278
+ secondaryColor: {
279
+ type: StringConstructor;
280
+ };
281
+ speed: {
282
+ type: (StringConstructor | NumberConstructor)[];
283
+ };
284
+ glass: {
285
+ type: BooleanConstructor;
286
+ default: boolean;
287
+ };
288
+ label: {
289
+ type: StringConstructor;
290
+ default: string;
291
+ };
292
+ }>> & Readonly<{}>, {
293
+ glass: boolean;
294
+ type: VeilSpinnerType;
295
+ label: string;
296
+ size: string | number;
297
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
298
+ declare const VProgressBar: vue.DefineComponent<vue.ExtractPropTypes<{
299
+ value: {
300
+ type: NumberConstructor;
301
+ };
302
+ circular: {
303
+ type: BooleanConstructor;
304
+ default: boolean;
305
+ };
306
+ size: {
307
+ type: (StringConstructor | NumberConstructor)[];
308
+ };
309
+ color: {
310
+ type: StringConstructor;
311
+ };
312
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
313
+ [key: string]: any;
314
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
315
+ value: {
316
+ type: NumberConstructor;
317
+ };
318
+ circular: {
319
+ type: BooleanConstructor;
320
+ default: boolean;
321
+ };
322
+ size: {
323
+ type: (StringConstructor | NumberConstructor)[];
324
+ };
325
+ color: {
326
+ type: StringConstructor;
327
+ };
328
+ }>> & Readonly<{}>, {
329
+ circular: boolean;
330
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
331
+ declare const VOverlay: vue.DefineComponent<vue.ExtractPropTypes<{
332
+ visible: {
333
+ type: BooleanConstructor;
334
+ default: boolean;
335
+ };
336
+ blur: {
337
+ type: BooleanConstructor;
338
+ default: boolean;
339
+ };
340
+ message: {
341
+ type: StringConstructor;
342
+ };
343
+ spinner: {
344
+ type: PropType<VeilSpinnerType>;
345
+ default: string;
346
+ };
347
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
348
+ [key: string]: any;
349
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
350
+ visible: {
351
+ type: BooleanConstructor;
352
+ default: boolean;
353
+ };
354
+ blur: {
355
+ type: BooleanConstructor;
356
+ default: boolean;
357
+ };
358
+ message: {
359
+ type: StringConstructor;
360
+ };
361
+ spinner: {
362
+ type: PropType<VeilSpinnerType>;
363
+ default: string;
364
+ };
365
+ }>> & Readonly<{}>, {
366
+ blur: boolean;
367
+ visible: boolean;
368
+ spinner: VeilSpinnerType;
369
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
370
+ declare const VLoadingButton: vue.DefineComponent<vue.ExtractPropTypes<{
371
+ status: {
372
+ type: PropType<ButtonStatus>;
373
+ };
374
+ loading: {
375
+ type: BooleanConstructor;
376
+ default: boolean;
377
+ };
378
+ styleType: {
379
+ type: PropType<ButtonLoadingStyle>;
380
+ default: string;
381
+ };
382
+ spinner: {
383
+ type: PropType<VeilSpinnerType>;
384
+ default: string;
385
+ };
386
+ loadingText: {
387
+ type: StringConstructor;
388
+ };
389
+ successText: {
390
+ type: StringConstructor;
391
+ };
392
+ errorText: {
393
+ type: StringConstructor;
394
+ };
395
+ resetAfter: {
396
+ type: NumberConstructor;
397
+ default: number;
398
+ };
399
+ progress: {
400
+ type: NumberConstructor;
401
+ };
402
+ pressFeedback: {
403
+ type: PropType<ButtonPressFeedback>;
404
+ default: string;
405
+ };
406
+ resultAnimation: {
407
+ type: PropType<ButtonResultAnimation>;
408
+ default: string;
409
+ };
410
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
411
+ [key: string]: any;
412
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
413
+ status: {
414
+ type: PropType<ButtonStatus>;
415
+ };
416
+ loading: {
417
+ type: BooleanConstructor;
418
+ default: boolean;
419
+ };
420
+ styleType: {
421
+ type: PropType<ButtonLoadingStyle>;
422
+ default: string;
423
+ };
424
+ spinner: {
425
+ type: PropType<VeilSpinnerType>;
426
+ default: string;
427
+ };
428
+ loadingText: {
429
+ type: StringConstructor;
430
+ };
431
+ successText: {
432
+ type: StringConstructor;
433
+ };
434
+ errorText: {
435
+ type: StringConstructor;
436
+ };
437
+ resetAfter: {
438
+ type: NumberConstructor;
439
+ default: number;
440
+ };
441
+ progress: {
442
+ type: NumberConstructor;
443
+ };
444
+ pressFeedback: {
445
+ type: PropType<ButtonPressFeedback>;
446
+ default: string;
447
+ };
448
+ resultAnimation: {
449
+ type: PropType<ButtonResultAnimation>;
450
+ default: string;
451
+ };
452
+ }>> & Readonly<{}>, {
453
+ loading: boolean;
454
+ spinner: VeilSpinnerType;
455
+ styleType: ButtonLoadingStyle;
456
+ resetAfter: number;
457
+ pressFeedback: ButtonPressFeedback;
458
+ resultAnimation: ButtonResultAnimation;
459
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
460
+ declare const VLazyImage: vue.DefineComponent<vue.ExtractPropTypes<{
461
+ src: {
462
+ type: StringConstructor;
463
+ required: true;
464
+ };
465
+ alt: {
466
+ type: StringConstructor;
467
+ default: string;
468
+ };
469
+ width: {
470
+ type: (StringConstructor | NumberConstructor)[];
471
+ };
472
+ height: {
473
+ type: (StringConstructor | NumberConstructor)[];
474
+ };
475
+ radius: {
476
+ type: (StringConstructor | NumberConstructor)[];
477
+ };
478
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
479
+ [key: string]: any;
480
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
481
+ src: {
482
+ type: StringConstructor;
483
+ required: true;
484
+ };
485
+ alt: {
486
+ type: StringConstructor;
487
+ default: string;
488
+ };
489
+ width: {
490
+ type: (StringConstructor | NumberConstructor)[];
491
+ };
492
+ height: {
493
+ type: (StringConstructor | NumberConstructor)[];
494
+ };
495
+ radius: {
496
+ type: (StringConstructor | NumberConstructor)[];
497
+ };
498
+ }>> & Readonly<{}>, {
499
+ alt: string;
500
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
501
+
502
+ declare const veilkitPlugin: {
503
+ install(app: App, options?: VeilGlobalConfig): void;
504
+ };
505
+
506
+ /**
507
+ * Veilkit - Nuxt 3 Integration Recipe
508
+ * Provides Nuxt plugin helper with SSR safety and route loading synchronization
509
+ */
510
+ declare function defineNuxtVeilkit(nuxtApp: any): void;
511
+
512
+ export { VLazyImage, VLoadingButton, VOverlay, VProgressBar, VSkeleton, VSkeletonPreset, VSpinner, VVeil, veilkitPlugin as default, defineNuxtVeilkit, useDelayedLoading, useLoading, useProgress, vVeil, veilkitPlugin };