@codemonster-ru/vueforge 0.25.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 +36 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +1097 -1011
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/avatar.vue.d.ts +35 -0
- package/dist/package/config/theme-core.d.ts +28 -0
- package/dist/package/themes/default/components/avatar.d.ts +28 -0
- package/dist/package/themes/default/index.d.ts +27 -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
|
+
};
|
|
@@ -654,6 +654,33 @@ export type BadgeTokens = {
|
|
|
654
654
|
paddingY?: string;
|
|
655
655
|
};
|
|
656
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
|
+
};
|
|
657
684
|
export type ThemeComponentTokens = {
|
|
658
685
|
button?: ButtonTokens;
|
|
659
686
|
card?: CardTokens;
|
|
@@ -681,6 +708,7 @@ export type ThemeComponentTokens = {
|
|
|
681
708
|
toast?: ToastTokens;
|
|
682
709
|
alert?: AlertTokens;
|
|
683
710
|
badge?: BadgeTokens;
|
|
711
|
+
avatar?: AvatarTokens;
|
|
684
712
|
[key: string]: unknown;
|
|
685
713
|
};
|
|
686
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;
|
|
@@ -862,6 +862,33 @@ declare const _default: {
|
|
|
862
862
|
paddingY: string;
|
|
863
863
|
};
|
|
864
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
|
+
};
|
|
865
892
|
};
|
|
866
893
|
colors: {
|
|
867
894
|
white: string;
|