@codemonster-ru/vueforge 0.30.0 → 0.32.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ type ChipVariant = 'solid' | 'soft' | 'outline';
2
+ type ChipSize = 'small' | 'normal' | 'large';
3
+ type ChipSeverity = 'neutral' | 'info' | 'success' | 'warn' | 'danger';
4
+ interface Props {
5
+ label?: string;
6
+ size?: ChipSize;
7
+ variant?: ChipVariant;
8
+ severity?: ChipSeverity;
9
+ disabled?: boolean;
10
+ closable?: boolean;
11
+ icon?: string;
12
+ ariaLabel?: string;
13
+ closeLabel?: string;
14
+ }
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ icon?(_: {}): any;
19
+ default?(_: {}): any;
20
+ close?(_: {}): any;
21
+ };
22
+ refs: {};
23
+ rootEl: HTMLSpanElement;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ close: (...args: any[]) => void;
28
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
29
+ onClose?: ((...args: any[]) => any) | undefined;
30
+ }>, {
31
+ label: string;
32
+ disabled: boolean;
33
+ icon: string;
34
+ size: ChipSize;
35
+ variant: ChipVariant;
36
+ severity: ChipSeverity;
37
+ ariaLabel: string;
38
+ closable: boolean;
39
+ closeLabel: string;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,71 @@
1
+ type Placement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'bottom' | 'top';
2
+ interface Item {
3
+ to?: string;
4
+ href?: string;
5
+ url?: string;
6
+ icon?: string;
7
+ label?: string;
8
+ active?: boolean;
9
+ disabled?: boolean;
10
+ separator?: boolean;
11
+ command?: () => void;
12
+ }
13
+ interface Props {
14
+ modelValue?: boolean;
15
+ items?: Array<Item>;
16
+ placement?: Placement;
17
+ offset?: number;
18
+ disabled?: boolean;
19
+ closeOnSelect?: boolean;
20
+ closeOnEsc?: boolean;
21
+ matchTriggerWidth?: boolean;
22
+ }
23
+ declare function __VLS_template(): {
24
+ attrs: Partial<{}>;
25
+ slots: {
26
+ trigger?(_: {}): any;
27
+ default?(_: {}): any;
28
+ };
29
+ refs: {
30
+ root: HTMLDivElement;
31
+ trigger: HTMLDivElement;
32
+ panel: HTMLDivElement;
33
+ };
34
+ rootEl: HTMLDivElement;
35
+ };
36
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
38
+ open: () => void;
39
+ close: () => void;
40
+ toggle: () => void;
41
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
42
+ close: (...args: any[]) => void;
43
+ select: (...args: any[]) => void;
44
+ "update:modelValue": (...args: any[]) => void;
45
+ open: (...args: any[]) => void;
46
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
47
+ onClose?: ((...args: any[]) => any) | undefined;
48
+ onSelect?: ((...args: any[]) => any) | undefined;
49
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
50
+ onOpen?: ((...args: any[]) => any) | undefined;
51
+ }>, {
52
+ disabled: boolean;
53
+ items: Array<Item>;
54
+ modelValue: boolean;
55
+ placement: Placement;
56
+ closeOnEsc: boolean;
57
+ offset: number;
58
+ closeOnSelect: boolean;
59
+ matchTriggerWidth: boolean;
60
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
61
+ root: HTMLDivElement;
62
+ trigger: HTMLDivElement;
63
+ panel: HTMLDivElement;
64
+ }, HTMLDivElement>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -251,6 +251,16 @@ export type PopoverTokens = {
251
251
  backgroundColor?: string;
252
252
  shadow?: string;
253
253
  };
254
+ export type DropdownTokens = {
255
+ panelPadding?: string;
256
+ panelBorderRadius?: string;
257
+ panelBorderColor?: string;
258
+ panelBackgroundColor?: string;
259
+ panelShadow?: string;
260
+ zIndex?: string;
261
+ disabledOpacity?: string;
262
+ itemPadding?: string;
263
+ };
254
264
  export type SelectTokens = {
255
265
  minWidth?: string;
256
266
  fontSize?: string;
@@ -757,6 +767,53 @@ export type BadgeTokens = {
757
767
  paddingY?: string;
758
768
  };
759
769
  };
770
+ type ChipSeverityTokens = {
771
+ backgroundColor?: string;
772
+ textColor?: string;
773
+ borderColor?: string;
774
+ softBackgroundColor?: string;
775
+ softTextColor?: string;
776
+ softBorderColor?: string;
777
+ outlineTextColor?: string;
778
+ outlineBorderColor?: string;
779
+ };
780
+ export type ChipTokens = {
781
+ fontSize?: string;
782
+ lineHeight?: string;
783
+ paddingX?: string;
784
+ paddingY?: string;
785
+ borderRadius?: string;
786
+ gap?: string;
787
+ backgroundColor?: string;
788
+ textColor?: string;
789
+ borderColor?: string;
790
+ softBackgroundColor?: string;
791
+ softTextColor?: string;
792
+ softBorderColor?: string;
793
+ outlineTextColor?: string;
794
+ outlineBorderColor?: string;
795
+ iconSize?: string;
796
+ closeSize?: string;
797
+ closeFontSize?: string;
798
+ closeRadius?: string;
799
+ closeColor?: string;
800
+ closeHoverBackgroundColor?: string;
801
+ disabledOpacity?: string;
802
+ info?: ChipSeverityTokens;
803
+ success?: ChipSeverityTokens;
804
+ warn?: ChipSeverityTokens;
805
+ danger?: ChipSeverityTokens;
806
+ small?: {
807
+ fontSize?: string;
808
+ paddingX?: string;
809
+ paddingY?: string;
810
+ };
811
+ large?: {
812
+ fontSize?: string;
813
+ paddingX?: string;
814
+ paddingY?: string;
815
+ };
816
+ };
760
817
  export type AvatarTokens = {
761
818
  size?: string;
762
819
  fontSize?: string;
@@ -801,6 +858,7 @@ export type ThemeComponentTokens = {
801
858
  modal?: ModalTokens;
802
859
  drawer?: DrawerTokens;
803
860
  popover?: PopoverTokens;
861
+ dropdown?: DropdownTokens;
804
862
  select?: SelectTokens;
805
863
  autocomplete?: AutocompleteTokens;
806
864
  multiselect?: MultiSelectTokens;
@@ -815,6 +873,7 @@ export type ThemeComponentTokens = {
815
873
  toast?: ToastTokens;
816
874
  alert?: AlertTokens;
817
875
  badge?: BadgeTokens;
876
+ chip?: ChipTokens;
818
877
  avatar?: AvatarTokens;
819
878
  [key: string]: unknown;
820
879
  };
@@ -845,3 +904,4 @@ export declare const buildThemeVariables: (theme: ThemePreset) => {
845
904
  warnings: string[];
846
905
  errors: string[];
847
906
  };
907
+ export {};
@@ -0,0 +1,74 @@
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
+ iconSize: string;
17
+ closeSize: string;
18
+ closeFontSize: string;
19
+ closeRadius: string;
20
+ closeColor: string;
21
+ closeHoverBackgroundColor: string;
22
+ disabledOpacity: string;
23
+ info: {
24
+ backgroundColor: string;
25
+ textColor: string;
26
+ borderColor: string;
27
+ softBackgroundColor: string;
28
+ softTextColor: string;
29
+ softBorderColor: string;
30
+ outlineTextColor: string;
31
+ outlineBorderColor: string;
32
+ };
33
+ success: {
34
+ backgroundColor: string;
35
+ textColor: string;
36
+ borderColor: string;
37
+ softBackgroundColor: string;
38
+ softTextColor: string;
39
+ softBorderColor: string;
40
+ outlineTextColor: string;
41
+ outlineBorderColor: string;
42
+ };
43
+ warn: {
44
+ backgroundColor: string;
45
+ textColor: string;
46
+ borderColor: string;
47
+ softBackgroundColor: string;
48
+ softTextColor: string;
49
+ softBorderColor: string;
50
+ outlineTextColor: string;
51
+ outlineBorderColor: string;
52
+ };
53
+ danger: {
54
+ backgroundColor: string;
55
+ textColor: string;
56
+ borderColor: string;
57
+ softBackgroundColor: string;
58
+ softTextColor: string;
59
+ softBorderColor: string;
60
+ outlineTextColor: string;
61
+ outlineBorderColor: string;
62
+ };
63
+ small: {
64
+ fontSize: string;
65
+ paddingX: string;
66
+ paddingY: string;
67
+ };
68
+ large: {
69
+ fontSize: string;
70
+ paddingX: string;
71
+ paddingY: string;
72
+ };
73
+ };
74
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ panelPadding: string;
3
+ panelBorderRadius: string;
4
+ panelBorderColor: string;
5
+ panelBackgroundColor: string;
6
+ panelShadow: string;
7
+ zIndex: string;
8
+ disabledOpacity: string;
9
+ itemPadding: string;
10
+ };
11
+ export default _default;
@@ -405,6 +405,16 @@ declare const _default: {
405
405
  popover: {
406
406
  backgroundColor: string;
407
407
  };
408
+ dropdown: {
409
+ panelPadding: string;
410
+ panelBorderRadius: string;
411
+ panelBorderColor: string;
412
+ panelBackgroundColor: string;
413
+ panelShadow: string;
414
+ zIndex: string;
415
+ disabledOpacity: string;
416
+ itemPadding: string;
417
+ };
408
418
  select: {
409
419
  minWidth: string;
410
420
  fontSize: string;
@@ -932,6 +942,79 @@ declare const _default: {
932
942
  paddingY: string;
933
943
  };
934
944
  };
945
+ chip: {
946
+ fontSize: string;
947
+ lineHeight: string;
948
+ paddingX: string;
949
+ paddingY: string;
950
+ borderRadius: string;
951
+ gap: string;
952
+ backgroundColor: string;
953
+ textColor: string;
954
+ borderColor: string;
955
+ softBackgroundColor: string;
956
+ softTextColor: string;
957
+ softBorderColor: string;
958
+ outlineTextColor: string;
959
+ outlineBorderColor: string;
960
+ iconSize: string;
961
+ closeSize: string;
962
+ closeFontSize: string;
963
+ closeRadius: string;
964
+ closeColor: string;
965
+ closeHoverBackgroundColor: string;
966
+ disabledOpacity: string;
967
+ info: {
968
+ backgroundColor: string;
969
+ textColor: string;
970
+ borderColor: string;
971
+ softBackgroundColor: string;
972
+ softTextColor: string;
973
+ softBorderColor: string;
974
+ outlineTextColor: string;
975
+ outlineBorderColor: string;
976
+ };
977
+ success: {
978
+ backgroundColor: string;
979
+ textColor: string;
980
+ borderColor: string;
981
+ softBackgroundColor: string;
982
+ softTextColor: string;
983
+ softBorderColor: string;
984
+ outlineTextColor: string;
985
+ outlineBorderColor: string;
986
+ };
987
+ warn: {
988
+ backgroundColor: string;
989
+ textColor: string;
990
+ borderColor: string;
991
+ softBackgroundColor: string;
992
+ softTextColor: string;
993
+ softBorderColor: string;
994
+ outlineTextColor: string;
995
+ outlineBorderColor: string;
996
+ };
997
+ danger: {
998
+ backgroundColor: string;
999
+ textColor: string;
1000
+ borderColor: string;
1001
+ softBackgroundColor: string;
1002
+ softTextColor: string;
1003
+ softBorderColor: string;
1004
+ outlineTextColor: string;
1005
+ outlineBorderColor: string;
1006
+ };
1007
+ small: {
1008
+ fontSize: string;
1009
+ paddingX: string;
1010
+ paddingY: string;
1011
+ };
1012
+ large: {
1013
+ fontSize: string;
1014
+ paddingX: string;
1015
+ paddingY: string;
1016
+ };
1017
+ };
935
1018
  avatar: {
936
1019
  size: string;
937
1020
  fontSize: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemonster-ru/vueforge",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "description": "Open source UI components for Vue.js.",
5
5
  "license": "MIT",
6
6
  "author": "Kirill Kolesnikov",