@codemonster-ru/vueforge 0.16.0 → 0.18.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 +84 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +1278 -1075
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/alert.test.d.ts +1 -0
- package/dist/package/components/__tests__/form-field.test.d.ts +1 -0
- package/dist/package/components/alert.vue.d.ts +42 -0
- package/dist/package/components/form-field.vue.d.ts +43 -0
- package/dist/package/config/theme-core.d.ts +62 -0
- package/dist/package/themes/default/components/alert.d.ts +40 -0
- package/dist/package/themes/default/components/form-field.d.ts +22 -0
- package/dist/package/themes/default/index.d.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type AlertSeverity = 'neutral' | 'info' | 'success' | 'warn' | 'danger';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
severity?: AlertSeverity;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
icon?(_: {}): any;
|
|
14
|
+
title?(_: {}): any;
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
actions?(_: {}): any;
|
|
17
|
+
close?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
close: (...args: any[]) => void;
|
|
25
|
+
"update:modelValue": (...args: any[]) => void;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
27
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
title: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
severity: AlertSeverity;
|
|
33
|
+
message: string;
|
|
34
|
+
closable: boolean;
|
|
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
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
interface Props {
|
|
3
|
+
id?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
size?: Size;
|
|
10
|
+
}
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
label?(_: {}): any;
|
|
15
|
+
default?(_: {
|
|
16
|
+
id: string;
|
|
17
|
+
describedBy: string | undefined;
|
|
18
|
+
invalid: boolean;
|
|
19
|
+
required: boolean;
|
|
20
|
+
}): any;
|
|
21
|
+
hint?(_: {}): any;
|
|
22
|
+
error?(_: {}): any;
|
|
23
|
+
};
|
|
24
|
+
refs: {};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
29
|
+
label: string;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
error: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
size: Size;
|
|
34
|
+
id: string;
|
|
35
|
+
hint: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -77,6 +77,27 @@ export type InputTokens = {
|
|
|
77
77
|
fontSize?: string;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
+
export type FormFieldTokens = {
|
|
81
|
+
gap?: string;
|
|
82
|
+
textColor?: string;
|
|
83
|
+
labelFontSize?: string;
|
|
84
|
+
labelColor?: string;
|
|
85
|
+
requiredColor?: string;
|
|
86
|
+
hintFontSize?: string;
|
|
87
|
+
hintColor?: string;
|
|
88
|
+
errorColor?: string;
|
|
89
|
+
disabledOpacity?: string;
|
|
90
|
+
small?: {
|
|
91
|
+
gap?: string;
|
|
92
|
+
labelFontSize?: string;
|
|
93
|
+
hintFontSize?: string;
|
|
94
|
+
};
|
|
95
|
+
large?: {
|
|
96
|
+
gap?: string;
|
|
97
|
+
labelFontSize?: string;
|
|
98
|
+
hintFontSize?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
80
101
|
export type TextareaTokens = {
|
|
81
102
|
gap?: string;
|
|
82
103
|
fontSize?: string;
|
|
@@ -372,6 +393,45 @@ export type ToastTokens = {
|
|
|
372
393
|
textColor?: string;
|
|
373
394
|
};
|
|
374
395
|
};
|
|
396
|
+
export type AlertTokens = {
|
|
397
|
+
gap?: string;
|
|
398
|
+
padding?: string;
|
|
399
|
+
borderRadius?: string;
|
|
400
|
+
borderColor?: string;
|
|
401
|
+
backgroundColor?: string;
|
|
402
|
+
textColor?: string;
|
|
403
|
+
iconColor?: string;
|
|
404
|
+
fontSize?: string;
|
|
405
|
+
lineHeight?: string;
|
|
406
|
+
bodyGap?: string;
|
|
407
|
+
titleFontSize?: string;
|
|
408
|
+
titleFontWeight?: string;
|
|
409
|
+
actionsGap?: string;
|
|
410
|
+
closeSize?: string;
|
|
411
|
+
closeRadius?: string;
|
|
412
|
+
closeFontSize?: string;
|
|
413
|
+
closeHoverBackgroundColor?: string;
|
|
414
|
+
info?: {
|
|
415
|
+
backgroundColor?: string;
|
|
416
|
+
borderColor?: string;
|
|
417
|
+
textColor?: string;
|
|
418
|
+
};
|
|
419
|
+
success?: {
|
|
420
|
+
backgroundColor?: string;
|
|
421
|
+
borderColor?: string;
|
|
422
|
+
textColor?: string;
|
|
423
|
+
};
|
|
424
|
+
warn?: {
|
|
425
|
+
backgroundColor?: string;
|
|
426
|
+
borderColor?: string;
|
|
427
|
+
textColor?: string;
|
|
428
|
+
};
|
|
429
|
+
danger?: {
|
|
430
|
+
backgroundColor?: string;
|
|
431
|
+
borderColor?: string;
|
|
432
|
+
textColor?: string;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
375
435
|
export type ThemeComponentTokens = {
|
|
376
436
|
button?: ButtonTokens;
|
|
377
437
|
card?: CardTokens;
|
|
@@ -379,6 +439,7 @@ export type ThemeComponentTokens = {
|
|
|
379
439
|
radio?: RadioTokens;
|
|
380
440
|
tabs?: TabsTokens;
|
|
381
441
|
input?: InputTokens;
|
|
442
|
+
formField?: FormFieldTokens;
|
|
382
443
|
textarea?: TextareaTokens;
|
|
383
444
|
link?: LinkTokens;
|
|
384
445
|
menu?: MenuTokens;
|
|
@@ -390,6 +451,7 @@ export type ThemeComponentTokens = {
|
|
|
390
451
|
switch?: SwitchTokens;
|
|
391
452
|
tooltip?: TooltipTokens;
|
|
392
453
|
toast?: ToastTokens;
|
|
454
|
+
alert?: AlertTokens;
|
|
393
455
|
[key: string]: unknown;
|
|
394
456
|
};
|
|
395
457
|
export type ThemeTokens = {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
padding: string;
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
textColor: string;
|
|
8
|
+
iconColor: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
lineHeight: string;
|
|
11
|
+
bodyGap: string;
|
|
12
|
+
titleFontSize: string;
|
|
13
|
+
titleFontWeight: string;
|
|
14
|
+
actionsGap: string;
|
|
15
|
+
closeSize: string;
|
|
16
|
+
closeRadius: string;
|
|
17
|
+
closeFontSize: string;
|
|
18
|
+
closeHoverBackgroundColor: string;
|
|
19
|
+
info: {
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
textColor: string;
|
|
23
|
+
};
|
|
24
|
+
success: {
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
borderColor: string;
|
|
27
|
+
textColor: string;
|
|
28
|
+
};
|
|
29
|
+
warn: {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
textColor: string;
|
|
33
|
+
};
|
|
34
|
+
danger: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
textColor: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
textColor: string;
|
|
4
|
+
labelFontSize: string;
|
|
5
|
+
labelColor: string;
|
|
6
|
+
requiredColor: string;
|
|
7
|
+
hintFontSize: string;
|
|
8
|
+
hintColor: string;
|
|
9
|
+
errorColor: string;
|
|
10
|
+
disabledOpacity: string;
|
|
11
|
+
small: {
|
|
12
|
+
gap: string;
|
|
13
|
+
labelFontSize: string;
|
|
14
|
+
hintFontSize: string;
|
|
15
|
+
};
|
|
16
|
+
large: {
|
|
17
|
+
gap: string;
|
|
18
|
+
labelFontSize: string;
|
|
19
|
+
hintFontSize: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -234,6 +234,27 @@ declare const _default: {
|
|
|
234
234
|
fontSize: string;
|
|
235
235
|
};
|
|
236
236
|
};
|
|
237
|
+
formField: {
|
|
238
|
+
gap: string;
|
|
239
|
+
textColor: string;
|
|
240
|
+
labelFontSize: string;
|
|
241
|
+
labelColor: string;
|
|
242
|
+
requiredColor: string;
|
|
243
|
+
hintFontSize: string;
|
|
244
|
+
hintColor: string;
|
|
245
|
+
errorColor: string;
|
|
246
|
+
disabledOpacity: string;
|
|
247
|
+
small: {
|
|
248
|
+
gap: string;
|
|
249
|
+
labelFontSize: string;
|
|
250
|
+
hintFontSize: string;
|
|
251
|
+
};
|
|
252
|
+
large: {
|
|
253
|
+
gap: string;
|
|
254
|
+
labelFontSize: string;
|
|
255
|
+
hintFontSize: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
237
258
|
textarea: {
|
|
238
259
|
gap: string;
|
|
239
260
|
fontSize: string;
|
|
@@ -554,6 +575,45 @@ declare const _default: {
|
|
|
554
575
|
textColor: string;
|
|
555
576
|
};
|
|
556
577
|
};
|
|
578
|
+
alert: {
|
|
579
|
+
gap: string;
|
|
580
|
+
padding: string;
|
|
581
|
+
borderRadius: string;
|
|
582
|
+
borderColor: string;
|
|
583
|
+
backgroundColor: string;
|
|
584
|
+
textColor: string;
|
|
585
|
+
iconColor: string;
|
|
586
|
+
fontSize: string;
|
|
587
|
+
lineHeight: string;
|
|
588
|
+
bodyGap: string;
|
|
589
|
+
titleFontSize: string;
|
|
590
|
+
titleFontWeight: string;
|
|
591
|
+
actionsGap: string;
|
|
592
|
+
closeSize: string;
|
|
593
|
+
closeRadius: string;
|
|
594
|
+
closeFontSize: string;
|
|
595
|
+
closeHoverBackgroundColor: string;
|
|
596
|
+
info: {
|
|
597
|
+
backgroundColor: string;
|
|
598
|
+
borderColor: string;
|
|
599
|
+
textColor: string;
|
|
600
|
+
};
|
|
601
|
+
success: {
|
|
602
|
+
backgroundColor: string;
|
|
603
|
+
borderColor: string;
|
|
604
|
+
textColor: string;
|
|
605
|
+
};
|
|
606
|
+
warn: {
|
|
607
|
+
backgroundColor: string;
|
|
608
|
+
borderColor: string;
|
|
609
|
+
textColor: string;
|
|
610
|
+
};
|
|
611
|
+
danger: {
|
|
612
|
+
backgroundColor: string;
|
|
613
|
+
borderColor: string;
|
|
614
|
+
textColor: string;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
557
617
|
};
|
|
558
618
|
colors: {
|
|
559
619
|
white: string;
|