@codemonster-ru/vueforge 0.13.0 → 0.15.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/README.md +83 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.ts.mjs +1224 -832
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/autocomplete.test.d.ts +1 -0
- package/dist/package/components/__tests__/toast.test.d.ts +1 -0
- package/dist/package/components/autocomplete.vue.d.ts +55 -0
- package/dist/package/components/toast-container.vue.d.ts +23 -0
- package/dist/package/components/toast.vue.d.ts +42 -0
- package/dist/package/config/theme-core.d.ts +82 -0
- package/dist/package/themes/default/components/autocomplete.d.ts +41 -0
- package/dist/package/themes/default/components/toast.d.ts +41 -0
- package/dist/package/themes/default/index.d.ts +80 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type ToastSeverity = 'neutral' | 'info' | 'success' | 'warn' | 'danger';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
severity?: ToastSeverity;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
duration?: number;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
close?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (...args: any[]) => void;
|
|
23
|
+
open: (...args: any[]) => void;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
25
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
title: string;
|
|
30
|
+
severity: ToastSeverity;
|
|
31
|
+
modelValue: boolean;
|
|
32
|
+
message: string;
|
|
33
|
+
closable: boolean;
|
|
34
|
+
duration: number;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -194,6 +194,46 @@ export type SelectTokens = {
|
|
|
194
194
|
fontSize?: string;
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
|
+
export type AutocompleteTokens = {
|
|
198
|
+
minWidth?: string;
|
|
199
|
+
fontSize?: string;
|
|
200
|
+
controlGap?: string;
|
|
201
|
+
chevronSize?: string;
|
|
202
|
+
padding?: string;
|
|
203
|
+
borderRadius?: string;
|
|
204
|
+
borderColor?: string;
|
|
205
|
+
backgroundColor?: string;
|
|
206
|
+
textColor?: string;
|
|
207
|
+
placeholderColor?: string;
|
|
208
|
+
focusBorderColor?: string;
|
|
209
|
+
hoverBorderColor?: string;
|
|
210
|
+
disabledOpacity?: string;
|
|
211
|
+
panelBackgroundColor?: string;
|
|
212
|
+
panelBorderColor?: string;
|
|
213
|
+
panelPadding?: string;
|
|
214
|
+
panelMaxHeight?: string;
|
|
215
|
+
panelRadiusOffset?: string;
|
|
216
|
+
panelShadow?: string;
|
|
217
|
+
focusRingShadow?: string;
|
|
218
|
+
optionPadding?: string;
|
|
219
|
+
optionBorderRadius?: string;
|
|
220
|
+
optionHoverBackgroundColor?: string;
|
|
221
|
+
optionActiveBackgroundColor?: string;
|
|
222
|
+
optionActiveTextColor?: string;
|
|
223
|
+
optionHighlightedBackgroundColor?: string;
|
|
224
|
+
emptyPadding?: string;
|
|
225
|
+
emptyColor?: string;
|
|
226
|
+
loadingPadding?: string;
|
|
227
|
+
loadingColor?: string;
|
|
228
|
+
small?: {
|
|
229
|
+
padding?: string;
|
|
230
|
+
fontSize?: string;
|
|
231
|
+
};
|
|
232
|
+
large?: {
|
|
233
|
+
padding?: string;
|
|
234
|
+
fontSize?: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
197
237
|
export type SwitchTokens = {
|
|
198
238
|
width?: string;
|
|
199
239
|
height?: string;
|
|
@@ -241,6 +281,46 @@ export type TooltipTokens = {
|
|
|
241
281
|
maxWidth?: string;
|
|
242
282
|
arrowSize?: string;
|
|
243
283
|
};
|
|
284
|
+
export type ToastTokens = {
|
|
285
|
+
gap?: string;
|
|
286
|
+
padding?: string;
|
|
287
|
+
borderRadius?: string;
|
|
288
|
+
borderColor?: string;
|
|
289
|
+
backgroundColor?: string;
|
|
290
|
+
textColor?: string;
|
|
291
|
+
shadow?: string;
|
|
292
|
+
minWidth?: string;
|
|
293
|
+
fontSize?: string;
|
|
294
|
+
lineHeight?: string;
|
|
295
|
+
bodyGap?: string;
|
|
296
|
+
titleFontSize?: string;
|
|
297
|
+
titleFontWeight?: string;
|
|
298
|
+
closeSize?: string;
|
|
299
|
+
containerGap?: string;
|
|
300
|
+
containerPadding?: string;
|
|
301
|
+
containerMaxWidth?: string;
|
|
302
|
+
zIndex?: string;
|
|
303
|
+
info?: {
|
|
304
|
+
backgroundColor?: string;
|
|
305
|
+
borderColor?: string;
|
|
306
|
+
textColor?: string;
|
|
307
|
+
};
|
|
308
|
+
success?: {
|
|
309
|
+
backgroundColor?: string;
|
|
310
|
+
borderColor?: string;
|
|
311
|
+
textColor?: string;
|
|
312
|
+
};
|
|
313
|
+
warn?: {
|
|
314
|
+
backgroundColor?: string;
|
|
315
|
+
borderColor?: string;
|
|
316
|
+
textColor?: string;
|
|
317
|
+
};
|
|
318
|
+
danger?: {
|
|
319
|
+
backgroundColor?: string;
|
|
320
|
+
borderColor?: string;
|
|
321
|
+
textColor?: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
244
324
|
export type ThemeComponentTokens = {
|
|
245
325
|
button?: ButtonTokens;
|
|
246
326
|
card?: CardTokens;
|
|
@@ -254,8 +334,10 @@ export type ThemeComponentTokens = {
|
|
|
254
334
|
modal?: ModalTokens;
|
|
255
335
|
popover?: PopoverTokens;
|
|
256
336
|
select?: SelectTokens;
|
|
337
|
+
autocomplete?: AutocompleteTokens;
|
|
257
338
|
switch?: SwitchTokens;
|
|
258
339
|
tooltip?: TooltipTokens;
|
|
340
|
+
toast?: ToastTokens;
|
|
259
341
|
[key: string]: unknown;
|
|
260
342
|
};
|
|
261
343
|
export type ThemeTokens = {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
minWidth: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
controlGap: string;
|
|
5
|
+
chevronSize: string;
|
|
6
|
+
padding: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
textColor: string;
|
|
11
|
+
placeholderColor: string;
|
|
12
|
+
focusBorderColor: string;
|
|
13
|
+
hoverBorderColor: string;
|
|
14
|
+
disabledOpacity: string;
|
|
15
|
+
panelBackgroundColor: string;
|
|
16
|
+
panelBorderColor: string;
|
|
17
|
+
panelPadding: string;
|
|
18
|
+
panelMaxHeight: string;
|
|
19
|
+
panelRadiusOffset: string;
|
|
20
|
+
panelShadow: string;
|
|
21
|
+
focusRingShadow: string;
|
|
22
|
+
optionPadding: string;
|
|
23
|
+
optionBorderRadius: string;
|
|
24
|
+
optionHoverBackgroundColor: string;
|
|
25
|
+
optionActiveBackgroundColor: string;
|
|
26
|
+
optionActiveTextColor: string;
|
|
27
|
+
optionHighlightedBackgroundColor: string;
|
|
28
|
+
emptyPadding: string;
|
|
29
|
+
emptyColor: string;
|
|
30
|
+
loadingPadding: string;
|
|
31
|
+
loadingColor: string;
|
|
32
|
+
small: {
|
|
33
|
+
padding: string;
|
|
34
|
+
fontSize: string;
|
|
35
|
+
};
|
|
36
|
+
large: {
|
|
37
|
+
padding: string;
|
|
38
|
+
fontSize: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
padding: string;
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
textColor: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
minWidth: string;
|
|
10
|
+
fontSize: string;
|
|
11
|
+
lineHeight: string;
|
|
12
|
+
bodyGap: string;
|
|
13
|
+
titleFontSize: string;
|
|
14
|
+
titleFontWeight: string;
|
|
15
|
+
closeSize: string;
|
|
16
|
+
containerGap: string;
|
|
17
|
+
containerPadding: string;
|
|
18
|
+
containerMaxWidth: string;
|
|
19
|
+
zIndex: string;
|
|
20
|
+
info: {
|
|
21
|
+
backgroundColor: string;
|
|
22
|
+
borderColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
};
|
|
25
|
+
success: {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
};
|
|
30
|
+
warn: {
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
textColor: string;
|
|
34
|
+
};
|
|
35
|
+
danger: {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
textColor: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -348,6 +348,46 @@ declare const _default: {
|
|
|
348
348
|
fontSize: string;
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
|
+
autocomplete: {
|
|
352
|
+
minWidth: string;
|
|
353
|
+
fontSize: string;
|
|
354
|
+
controlGap: string;
|
|
355
|
+
chevronSize: string;
|
|
356
|
+
padding: string;
|
|
357
|
+
borderRadius: string;
|
|
358
|
+
borderColor: string;
|
|
359
|
+
backgroundColor: string;
|
|
360
|
+
textColor: string;
|
|
361
|
+
placeholderColor: string;
|
|
362
|
+
focusBorderColor: string;
|
|
363
|
+
hoverBorderColor: string;
|
|
364
|
+
disabledOpacity: string;
|
|
365
|
+
panelBackgroundColor: string;
|
|
366
|
+
panelBorderColor: string;
|
|
367
|
+
panelPadding: string;
|
|
368
|
+
panelMaxHeight: string;
|
|
369
|
+
panelRadiusOffset: string;
|
|
370
|
+
panelShadow: string;
|
|
371
|
+
focusRingShadow: string;
|
|
372
|
+
optionPadding: string;
|
|
373
|
+
optionBorderRadius: string;
|
|
374
|
+
optionHoverBackgroundColor: string;
|
|
375
|
+
optionActiveBackgroundColor: string;
|
|
376
|
+
optionActiveTextColor: string;
|
|
377
|
+
optionHighlightedBackgroundColor: string;
|
|
378
|
+
emptyPadding: string;
|
|
379
|
+
emptyColor: string;
|
|
380
|
+
loadingPadding: string;
|
|
381
|
+
loadingColor: string;
|
|
382
|
+
small: {
|
|
383
|
+
padding: string;
|
|
384
|
+
fontSize: string;
|
|
385
|
+
};
|
|
386
|
+
large: {
|
|
387
|
+
padding: string;
|
|
388
|
+
fontSize: string;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
351
391
|
checkbox: {
|
|
352
392
|
size: string;
|
|
353
393
|
gap: string;
|
|
@@ -423,6 +463,46 @@ declare const _default: {
|
|
|
423
463
|
maxWidth: string;
|
|
424
464
|
arrowSize: string;
|
|
425
465
|
};
|
|
466
|
+
toast: {
|
|
467
|
+
gap: string;
|
|
468
|
+
padding: string;
|
|
469
|
+
borderRadius: string;
|
|
470
|
+
borderColor: string;
|
|
471
|
+
backgroundColor: string;
|
|
472
|
+
textColor: string;
|
|
473
|
+
shadow: string;
|
|
474
|
+
minWidth: string;
|
|
475
|
+
fontSize: string;
|
|
476
|
+
lineHeight: string;
|
|
477
|
+
bodyGap: string;
|
|
478
|
+
titleFontSize: string;
|
|
479
|
+
titleFontWeight: string;
|
|
480
|
+
closeSize: string;
|
|
481
|
+
containerGap: string;
|
|
482
|
+
containerPadding: string;
|
|
483
|
+
containerMaxWidth: string;
|
|
484
|
+
zIndex: string;
|
|
485
|
+
info: {
|
|
486
|
+
backgroundColor: string;
|
|
487
|
+
borderColor: string;
|
|
488
|
+
textColor: string;
|
|
489
|
+
};
|
|
490
|
+
success: {
|
|
491
|
+
backgroundColor: string;
|
|
492
|
+
borderColor: string;
|
|
493
|
+
textColor: string;
|
|
494
|
+
};
|
|
495
|
+
warn: {
|
|
496
|
+
backgroundColor: string;
|
|
497
|
+
borderColor: string;
|
|
498
|
+
textColor: string;
|
|
499
|
+
};
|
|
500
|
+
danger: {
|
|
501
|
+
backgroundColor: string;
|
|
502
|
+
borderColor: string;
|
|
503
|
+
textColor: string;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
426
506
|
};
|
|
427
507
|
colors: {
|
|
428
508
|
white: string;
|