veilkit 0.0.0-stage → 0.1.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/CHANGELOG.md +29 -0
- package/LICENSE +21 -0
- package/README.md +245 -2
- package/dist/angular/index.cjs +394 -0
- package/dist/angular/index.cjs.map +1 -0
- package/dist/angular/index.d.cts +78 -0
- package/dist/angular/index.d.ts +78 -0
- package/dist/angular/index.js +394 -0
- package/dist/angular/index.js.map +1 -0
- package/dist/cli/index.cjs +25 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +25 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/controller-5OzP0U8X.d.cts +193 -0
- package/dist/controller-Co5bvnaB.d.ts +193 -0
- package/dist/element/index.cjs +395 -0
- package/dist/element/index.cjs.map +1 -0
- package/dist/element/index.d.cts +42 -0
- package/dist/element/index.d.ts +42 -0
- package/dist/element/index.js +395 -0
- package/dist/element/index.js.map +1 -0
- package/dist/index.cjs +394 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +209 -0
- package/dist/index.d.ts +209 -0
- package/dist/index.js +394 -0
- package/dist/index.js.map +1 -0
- package/dist/native/index.cjs +2 -0
- package/dist/native/index.cjs.map +1 -0
- package/dist/native/index.d.cts +48 -0
- package/dist/native/index.d.ts +48 -0
- package/dist/native/index.js +2 -0
- package/dist/native/index.js.map +1 -0
- package/dist/react/index.cjs +394 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.cts +99 -0
- package/dist/react/index.d.ts +99 -0
- package/dist/react/index.js +394 -0
- package/dist/react/index.js.map +1 -0
- package/dist/styles.css +377 -0
- package/dist/svelte/index.cjs +394 -0
- package/dist/svelte/index.cjs.map +1 -0
- package/dist/svelte/index.d.cts +41 -0
- package/dist/svelte/index.d.ts +41 -0
- package/dist/svelte/index.js +394 -0
- package/dist/svelte/index.js.map +1 -0
- package/dist/themes/index.cjs +2 -0
- package/dist/themes/index.cjs.map +1 -0
- package/dist/themes/index.d.cts +18 -0
- package/dist/themes/index.d.ts +18 -0
- package/dist/themes/index.js +2 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/types-Ciu5e5xt.d.cts +159 -0
- package/dist/types-Ciu5e5xt.d.ts +159 -0
- package/dist/veilkit.min.js +393 -0
- package/dist/vue/index.cjs +394 -0
- package/dist/vue/index.cjs.map +1 -0
- package/dist/vue/index.d.cts +366 -0
- package/dist/vue/index.d.ts +366 -0
- package/dist/vue/index.js +394 -0
- package/dist/vue/index.js.map +1 -0
- package/package.json +238 -4
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { Directive, PropType, App } from 'vue';
|
|
3
|
+
import { e as VeilSpinnerType, d as VeilPrimitiveType, a as VeilAnimationName, V as VeilThemeName, c as VeilGlobalConfig } from '../types-Ciu5e5xt.cjs';
|
|
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
|
+
circle: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
label: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
81
|
+
type: {
|
|
82
|
+
type: PropType<VeilPrimitiveType>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
width: {
|
|
86
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
87
|
+
};
|
|
88
|
+
height: {
|
|
89
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
90
|
+
};
|
|
91
|
+
radius: {
|
|
92
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
93
|
+
};
|
|
94
|
+
count: {
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
98
|
+
gap: {
|
|
99
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
lines: {
|
|
103
|
+
type: NumberConstructor;
|
|
104
|
+
};
|
|
105
|
+
lastLineWidth: {
|
|
106
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
animation: {
|
|
110
|
+
type: PropType<VeilAnimationName>;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
theme: {
|
|
114
|
+
type: PropType<VeilThemeName>;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
circle: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
label: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
}>> & Readonly<{}>, {
|
|
126
|
+
circle: boolean;
|
|
127
|
+
type: VeilPrimitiveType;
|
|
128
|
+
count: number;
|
|
129
|
+
gap: string | number;
|
|
130
|
+
lastLineWidth: string | number;
|
|
131
|
+
animation: VeilAnimationName;
|
|
132
|
+
theme: VeilThemeName;
|
|
133
|
+
label: string;
|
|
134
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
declare const VVeil: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
136
|
+
loading: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
required: true;
|
|
139
|
+
};
|
|
140
|
+
cacheKey: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
};
|
|
143
|
+
persistCache: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
reveal: {
|
|
148
|
+
type: StringConstructor;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
154
|
+
loading: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
required: true;
|
|
157
|
+
};
|
|
158
|
+
cacheKey: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
};
|
|
161
|
+
persistCache: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
reveal: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
}>> & Readonly<{}>, {
|
|
170
|
+
reveal: string;
|
|
171
|
+
persistCache: boolean;
|
|
172
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
173
|
+
declare const VSpinner: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
174
|
+
type: {
|
|
175
|
+
type: PropType<VeilSpinnerType>;
|
|
176
|
+
default: string;
|
|
177
|
+
};
|
|
178
|
+
size: {
|
|
179
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
180
|
+
default: number;
|
|
181
|
+
};
|
|
182
|
+
color: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
};
|
|
185
|
+
label: {
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
192
|
+
type: {
|
|
193
|
+
type: PropType<VeilSpinnerType>;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
size: {
|
|
197
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
198
|
+
default: number;
|
|
199
|
+
};
|
|
200
|
+
color: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
};
|
|
203
|
+
label: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
}>> & Readonly<{}>, {
|
|
208
|
+
type: VeilSpinnerType;
|
|
209
|
+
label: string;
|
|
210
|
+
size: string | number;
|
|
211
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
212
|
+
declare const VProgressBar: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
213
|
+
value: {
|
|
214
|
+
type: NumberConstructor;
|
|
215
|
+
};
|
|
216
|
+
circular: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
size: {
|
|
221
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
222
|
+
};
|
|
223
|
+
color: {
|
|
224
|
+
type: StringConstructor;
|
|
225
|
+
};
|
|
226
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
227
|
+
[key: string]: any;
|
|
228
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
229
|
+
value: {
|
|
230
|
+
type: NumberConstructor;
|
|
231
|
+
};
|
|
232
|
+
circular: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
236
|
+
size: {
|
|
237
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
238
|
+
};
|
|
239
|
+
color: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
};
|
|
242
|
+
}>> & Readonly<{}>, {
|
|
243
|
+
circular: boolean;
|
|
244
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
245
|
+
declare const VOverlay: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
246
|
+
visible: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
250
|
+
blur: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: boolean;
|
|
253
|
+
};
|
|
254
|
+
message: {
|
|
255
|
+
type: StringConstructor;
|
|
256
|
+
};
|
|
257
|
+
spinner: {
|
|
258
|
+
type: PropType<VeilSpinnerType>;
|
|
259
|
+
default: string;
|
|
260
|
+
};
|
|
261
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
262
|
+
[key: string]: any;
|
|
263
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
264
|
+
visible: {
|
|
265
|
+
type: BooleanConstructor;
|
|
266
|
+
default: boolean;
|
|
267
|
+
};
|
|
268
|
+
blur: {
|
|
269
|
+
type: BooleanConstructor;
|
|
270
|
+
default: boolean;
|
|
271
|
+
};
|
|
272
|
+
message: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
};
|
|
275
|
+
spinner: {
|
|
276
|
+
type: PropType<VeilSpinnerType>;
|
|
277
|
+
default: string;
|
|
278
|
+
};
|
|
279
|
+
}>> & Readonly<{}>, {
|
|
280
|
+
blur: boolean;
|
|
281
|
+
visible: boolean;
|
|
282
|
+
spinner: VeilSpinnerType;
|
|
283
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
284
|
+
declare const VLoadingButton: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
285
|
+
loading: {
|
|
286
|
+
type: BooleanConstructor;
|
|
287
|
+
default: boolean;
|
|
288
|
+
};
|
|
289
|
+
spinner: {
|
|
290
|
+
type: PropType<VeilSpinnerType>;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
293
|
+
loadingText: {
|
|
294
|
+
type: StringConstructor;
|
|
295
|
+
};
|
|
296
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
297
|
+
[key: string]: any;
|
|
298
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
299
|
+
loading: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: boolean;
|
|
302
|
+
};
|
|
303
|
+
spinner: {
|
|
304
|
+
type: PropType<VeilSpinnerType>;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
loadingText: {
|
|
308
|
+
type: StringConstructor;
|
|
309
|
+
};
|
|
310
|
+
}>> & Readonly<{}>, {
|
|
311
|
+
loading: boolean;
|
|
312
|
+
spinner: VeilSpinnerType;
|
|
313
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
314
|
+
declare const VLazyImage: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
315
|
+
src: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
required: true;
|
|
318
|
+
};
|
|
319
|
+
alt: {
|
|
320
|
+
type: StringConstructor;
|
|
321
|
+
default: string;
|
|
322
|
+
};
|
|
323
|
+
width: {
|
|
324
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
325
|
+
};
|
|
326
|
+
height: {
|
|
327
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
328
|
+
};
|
|
329
|
+
radius: {
|
|
330
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
331
|
+
};
|
|
332
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
333
|
+
[key: string]: any;
|
|
334
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
335
|
+
src: {
|
|
336
|
+
type: StringConstructor;
|
|
337
|
+
required: true;
|
|
338
|
+
};
|
|
339
|
+
alt: {
|
|
340
|
+
type: StringConstructor;
|
|
341
|
+
default: string;
|
|
342
|
+
};
|
|
343
|
+
width: {
|
|
344
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
345
|
+
};
|
|
346
|
+
height: {
|
|
347
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
348
|
+
};
|
|
349
|
+
radius: {
|
|
350
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
351
|
+
};
|
|
352
|
+
}>> & Readonly<{}>, {
|
|
353
|
+
alt: string;
|
|
354
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
355
|
+
|
|
356
|
+
declare const veilkitPlugin: {
|
|
357
|
+
install(app: App, options?: VeilGlobalConfig): void;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Veilkit - Nuxt 3 Integration Recipe
|
|
362
|
+
* Provides Nuxt plugin helper with SSR safety and route loading synchronization
|
|
363
|
+
*/
|
|
364
|
+
declare function defineNuxtVeilkit(nuxtApp: any): void;
|
|
365
|
+
|
|
366
|
+
export { VLazyImage, VLoadingButton, VOverlay, VProgressBar, VSkeleton, VSpinner, VVeil, veilkitPlugin as default, defineNuxtVeilkit, useDelayedLoading, useLoading, useProgress, vVeil, veilkitPlugin };
|