@codemonster-ru/vueforge 0.24.0 → 0.26.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 +72 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +1280 -1104
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/avatar.vue.d.ts +35 -0
- package/dist/package/components/badge.vue.d.ts +33 -0
- package/dist/package/config/theme-core.d.ts +69 -0
- package/dist/package/themes/default/components/avatar.d.ts +28 -0
- package/dist/package/themes/default/components/badge.d.ts +67 -0
- package/dist/package/themes/default/index.d.ts +93 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type AvatarSize = 'small' | 'normal' | 'large';
|
|
2
|
+
type AvatarShape = 'circle' | 'rounded';
|
|
3
|
+
type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
4
|
+
interface Props {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
size?: AvatarSize;
|
|
9
|
+
shape?: AvatarShape;
|
|
10
|
+
status?: AvatarStatus;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
22
|
+
name: string;
|
|
23
|
+
size: AvatarSize;
|
|
24
|
+
status: AvatarStatus;
|
|
25
|
+
src: string;
|
|
26
|
+
alt: string;
|
|
27
|
+
shape: AvatarShape;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type BadgeVariant = 'solid' | 'soft' | 'outline';
|
|
2
|
+
type BadgeSize = 'small' | 'normal' | 'large';
|
|
3
|
+
type BadgeSeverity = 'neutral' | 'info' | 'success' | 'warn' | 'danger';
|
|
4
|
+
interface Props {
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: BadgeSize;
|
|
7
|
+
variant?: BadgeVariant;
|
|
8
|
+
severity?: BadgeSeverity;
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLSpanElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
21
|
+
label: string;
|
|
22
|
+
size: BadgeSize;
|
|
23
|
+
variant: BadgeVariant;
|
|
24
|
+
severity: BadgeSeverity;
|
|
25
|
+
ariaLabel: string;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -614,6 +614,73 @@ export type AlertTokens = {
|
|
|
614
614
|
textColor?: string;
|
|
615
615
|
};
|
|
616
616
|
};
|
|
617
|
+
export type BadgeSeverityTokens = {
|
|
618
|
+
backgroundColor?: string;
|
|
619
|
+
textColor?: string;
|
|
620
|
+
borderColor?: string;
|
|
621
|
+
softBackgroundColor?: string;
|
|
622
|
+
softTextColor?: string;
|
|
623
|
+
softBorderColor?: string;
|
|
624
|
+
outlineTextColor?: string;
|
|
625
|
+
outlineBorderColor?: string;
|
|
626
|
+
};
|
|
627
|
+
export type BadgeTokens = {
|
|
628
|
+
fontSize?: string;
|
|
629
|
+
lineHeight?: string;
|
|
630
|
+
paddingX?: string;
|
|
631
|
+
paddingY?: string;
|
|
632
|
+
borderRadius?: string;
|
|
633
|
+
gap?: string;
|
|
634
|
+
backgroundColor?: string;
|
|
635
|
+
textColor?: string;
|
|
636
|
+
borderColor?: string;
|
|
637
|
+
softBackgroundColor?: string;
|
|
638
|
+
softTextColor?: string;
|
|
639
|
+
softBorderColor?: string;
|
|
640
|
+
outlineTextColor?: string;
|
|
641
|
+
outlineBorderColor?: string;
|
|
642
|
+
info?: BadgeSeverityTokens;
|
|
643
|
+
success?: BadgeSeverityTokens;
|
|
644
|
+
warn?: BadgeSeverityTokens;
|
|
645
|
+
danger?: BadgeSeverityTokens;
|
|
646
|
+
small?: {
|
|
647
|
+
fontSize?: string;
|
|
648
|
+
paddingX?: string;
|
|
649
|
+
paddingY?: string;
|
|
650
|
+
};
|
|
651
|
+
large?: {
|
|
652
|
+
fontSize?: string;
|
|
653
|
+
paddingX?: string;
|
|
654
|
+
paddingY?: string;
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
export type AvatarTokens = {
|
|
658
|
+
size?: string;
|
|
659
|
+
fontSize?: string;
|
|
660
|
+
fontWeight?: string;
|
|
661
|
+
backgroundColor?: string;
|
|
662
|
+
textColor?: string;
|
|
663
|
+
borderColor?: string;
|
|
664
|
+
borderWidth?: string;
|
|
665
|
+
borderRadius?: string;
|
|
666
|
+
statusSize?: string;
|
|
667
|
+
statusBorderWidth?: string;
|
|
668
|
+
statusBorderColor?: string;
|
|
669
|
+
statusOnlineColor?: string;
|
|
670
|
+
statusOfflineColor?: string;
|
|
671
|
+
statusBusyColor?: string;
|
|
672
|
+
statusAwayColor?: string;
|
|
673
|
+
small?: {
|
|
674
|
+
size?: string;
|
|
675
|
+
fontSize?: string;
|
|
676
|
+
statusSize?: string;
|
|
677
|
+
};
|
|
678
|
+
large?: {
|
|
679
|
+
size?: string;
|
|
680
|
+
fontSize?: string;
|
|
681
|
+
statusSize?: string;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
617
684
|
export type ThemeComponentTokens = {
|
|
618
685
|
button?: ButtonTokens;
|
|
619
686
|
card?: CardTokens;
|
|
@@ -640,6 +707,8 @@ export type ThemeComponentTokens = {
|
|
|
640
707
|
datatable?: DataTableTokens;
|
|
641
708
|
toast?: ToastTokens;
|
|
642
709
|
alert?: AlertTokens;
|
|
710
|
+
badge?: BadgeTokens;
|
|
711
|
+
avatar?: AvatarTokens;
|
|
643
712
|
[key: string]: unknown;
|
|
644
713
|
};
|
|
645
714
|
export type ThemeTokens = {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
size: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
fontWeight: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
borderWidth: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
statusSize: string;
|
|
11
|
+
statusBorderWidth: string;
|
|
12
|
+
statusBorderColor: string;
|
|
13
|
+
statusOnlineColor: string;
|
|
14
|
+
statusOfflineColor: string;
|
|
15
|
+
statusBusyColor: string;
|
|
16
|
+
statusAwayColor: string;
|
|
17
|
+
small: {
|
|
18
|
+
size: string;
|
|
19
|
+
fontSize: string;
|
|
20
|
+
statusSize: string;
|
|
21
|
+
};
|
|
22
|
+
large: {
|
|
23
|
+
size: string;
|
|
24
|
+
fontSize: string;
|
|
25
|
+
statusSize: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
fontSize: string;
|
|
3
|
+
lineHeight: string;
|
|
4
|
+
paddingX: string;
|
|
5
|
+
paddingY: string;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
gap: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
textColor: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
softBackgroundColor: string;
|
|
12
|
+
softTextColor: string;
|
|
13
|
+
softBorderColor: string;
|
|
14
|
+
outlineTextColor: string;
|
|
15
|
+
outlineBorderColor: string;
|
|
16
|
+
info: {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
textColor: string;
|
|
19
|
+
borderColor: string;
|
|
20
|
+
softBackgroundColor: string;
|
|
21
|
+
softTextColor: string;
|
|
22
|
+
softBorderColor: string;
|
|
23
|
+
outlineTextColor: string;
|
|
24
|
+
outlineBorderColor: string;
|
|
25
|
+
};
|
|
26
|
+
success: {
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
softBackgroundColor: string;
|
|
31
|
+
softTextColor: string;
|
|
32
|
+
softBorderColor: string;
|
|
33
|
+
outlineTextColor: string;
|
|
34
|
+
outlineBorderColor: string;
|
|
35
|
+
};
|
|
36
|
+
warn: {
|
|
37
|
+
backgroundColor: string;
|
|
38
|
+
textColor: string;
|
|
39
|
+
borderColor: string;
|
|
40
|
+
softBackgroundColor: string;
|
|
41
|
+
softTextColor: string;
|
|
42
|
+
softBorderColor: string;
|
|
43
|
+
outlineTextColor: string;
|
|
44
|
+
outlineBorderColor: string;
|
|
45
|
+
};
|
|
46
|
+
danger: {
|
|
47
|
+
backgroundColor: string;
|
|
48
|
+
textColor: string;
|
|
49
|
+
borderColor: string;
|
|
50
|
+
softBackgroundColor: string;
|
|
51
|
+
softTextColor: string;
|
|
52
|
+
softBorderColor: string;
|
|
53
|
+
outlineTextColor: string;
|
|
54
|
+
outlineBorderColor: string;
|
|
55
|
+
};
|
|
56
|
+
small: {
|
|
57
|
+
fontSize: string;
|
|
58
|
+
paddingX: string;
|
|
59
|
+
paddingY: string;
|
|
60
|
+
};
|
|
61
|
+
large: {
|
|
62
|
+
fontSize: string;
|
|
63
|
+
paddingX: string;
|
|
64
|
+
paddingY: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export default _default;
|
|
@@ -796,6 +796,99 @@ declare const _default: {
|
|
|
796
796
|
circularThickness: string;
|
|
797
797
|
};
|
|
798
798
|
};
|
|
799
|
+
badge: {
|
|
800
|
+
fontSize: string;
|
|
801
|
+
lineHeight: string;
|
|
802
|
+
paddingX: string;
|
|
803
|
+
paddingY: string;
|
|
804
|
+
borderRadius: string;
|
|
805
|
+
gap: string;
|
|
806
|
+
backgroundColor: string;
|
|
807
|
+
textColor: string;
|
|
808
|
+
borderColor: string;
|
|
809
|
+
softBackgroundColor: string;
|
|
810
|
+
softTextColor: string;
|
|
811
|
+
softBorderColor: string;
|
|
812
|
+
outlineTextColor: string;
|
|
813
|
+
outlineBorderColor: string;
|
|
814
|
+
info: {
|
|
815
|
+
backgroundColor: string;
|
|
816
|
+
textColor: string;
|
|
817
|
+
borderColor: string;
|
|
818
|
+
softBackgroundColor: string;
|
|
819
|
+
softTextColor: string;
|
|
820
|
+
softBorderColor: string;
|
|
821
|
+
outlineTextColor: string;
|
|
822
|
+
outlineBorderColor: string;
|
|
823
|
+
};
|
|
824
|
+
success: {
|
|
825
|
+
backgroundColor: string;
|
|
826
|
+
textColor: string;
|
|
827
|
+
borderColor: string;
|
|
828
|
+
softBackgroundColor: string;
|
|
829
|
+
softTextColor: string;
|
|
830
|
+
softBorderColor: string;
|
|
831
|
+
outlineTextColor: string;
|
|
832
|
+
outlineBorderColor: string;
|
|
833
|
+
};
|
|
834
|
+
warn: {
|
|
835
|
+
backgroundColor: string;
|
|
836
|
+
textColor: string;
|
|
837
|
+
borderColor: string;
|
|
838
|
+
softBackgroundColor: string;
|
|
839
|
+
softTextColor: string;
|
|
840
|
+
softBorderColor: string;
|
|
841
|
+
outlineTextColor: string;
|
|
842
|
+
outlineBorderColor: string;
|
|
843
|
+
};
|
|
844
|
+
danger: {
|
|
845
|
+
backgroundColor: string;
|
|
846
|
+
textColor: string;
|
|
847
|
+
borderColor: string;
|
|
848
|
+
softBackgroundColor: string;
|
|
849
|
+
softTextColor: string;
|
|
850
|
+
softBorderColor: string;
|
|
851
|
+
outlineTextColor: string;
|
|
852
|
+
outlineBorderColor: string;
|
|
853
|
+
};
|
|
854
|
+
small: {
|
|
855
|
+
fontSize: string;
|
|
856
|
+
paddingX: string;
|
|
857
|
+
paddingY: string;
|
|
858
|
+
};
|
|
859
|
+
large: {
|
|
860
|
+
fontSize: string;
|
|
861
|
+
paddingX: string;
|
|
862
|
+
paddingY: string;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
avatar: {
|
|
866
|
+
size: string;
|
|
867
|
+
fontSize: string;
|
|
868
|
+
fontWeight: string;
|
|
869
|
+
backgroundColor: string;
|
|
870
|
+
textColor: string;
|
|
871
|
+
borderColor: string;
|
|
872
|
+
borderWidth: string;
|
|
873
|
+
borderRadius: string;
|
|
874
|
+
statusSize: string;
|
|
875
|
+
statusBorderWidth: string;
|
|
876
|
+
statusBorderColor: string;
|
|
877
|
+
statusOnlineColor: string;
|
|
878
|
+
statusOfflineColor: string;
|
|
879
|
+
statusBusyColor: string;
|
|
880
|
+
statusAwayColor: string;
|
|
881
|
+
small: {
|
|
882
|
+
size: string;
|
|
883
|
+
fontSize: string;
|
|
884
|
+
statusSize: string;
|
|
885
|
+
};
|
|
886
|
+
large: {
|
|
887
|
+
size: string;
|
|
888
|
+
fontSize: string;
|
|
889
|
+
statusSize: string;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
799
892
|
};
|
|
800
893
|
colors: {
|
|
801
894
|
white: string;
|