@halo-dev/components 0.0.0-alpha.0 → 0.0.0-alpha.3

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.
Files changed (41) hide show
  1. package/LICENSE +674 -0
  2. package/dist/components/alert/Alert.vue.d.ts +59 -0
  3. package/dist/components/button/Button.vue.d.ts +110 -0
  4. package/dist/components/card/Card.vue.d.ts +6 -3
  5. package/dist/components/checkbox/CheckBox.vue.d.ts +56 -0
  6. package/dist/components/checkbox/CheckBoxGroup.vue.d.ts +125 -0
  7. package/dist/components/codemirror/Codemirror.vue.d.ts +75 -0
  8. package/dist/components/codemirror/index.d.ts +1 -0
  9. package/dist/components/dialog/Dialog.vue.d.ts +143 -0
  10. package/dist/components/dialog/DialogProvider.vue.d.ts +156 -0
  11. package/dist/components/dialog/interface.d.ts +2 -0
  12. package/dist/components/header/PageHeader.vue.d.ts +2 -0
  13. package/dist/components/input/Input.vue.d.ts +56 -0
  14. package/dist/components/menu/Menu.vue.d.ts +16 -0
  15. package/dist/components/menu/MenuItem.vue.d.ts +55 -0
  16. package/dist/components/menu/MenuLabel.vue.d.ts +2 -0
  17. package/dist/components/modal/Modal.vue.d.ts +79 -0
  18. package/dist/components/pagination/index.d.ts +1 -0
  19. package/dist/components/radio/Radio.vue.d.ts +53 -0
  20. package/dist/components/radio/RadioGroup.vue.d.ts +112 -0
  21. package/dist/components/select/Option.vue.d.ts +2 -0
  22. package/dist/components/select/Select.vue.d.ts +56 -0
  23. package/dist/components/space/Space.vue.d.ts +47 -0
  24. package/dist/components/switch/Switch.vue.d.ts +28 -0
  25. package/dist/components/tabs/TabItem.vue.d.ts +28 -0
  26. package/dist/components/tabs/Tabbar.vue.d.ts +84 -0
  27. package/dist/components/tabs/Tabs.vue.d.ts +165 -0
  28. package/dist/components/tag/Tag.vue.d.ts +36 -0
  29. package/dist/components/textarea/Textarea.vue.d.ts +9 -1
  30. package/dist/components.d.ts +2 -0
  31. package/dist/halo-components.es.js +16443 -1542
  32. package/dist/halo-components.es.js.map +1 -1
  33. package/dist/halo-components.iife.js +13 -19
  34. package/dist/halo-components.iife.js.map +1 -1
  35. package/dist/icons/icons.d.ts +3 -1
  36. package/dist/style.css +1 -1
  37. package/package.json +30 -23
  38. package/dist/halo-components.cjs.js +0 -3
  39. package/dist/halo-components.cjs.js.map +0 -1
  40. package/dist/halo-components.umd.js +0 -20
  41. package/dist/halo-components.umd.js.map +0 -1
@@ -0,0 +1,28 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ type: BooleanConstructor;
4
+ required: false;
5
+ default: boolean;
6
+ };
7
+ }, {
8
+ props: {
9
+ modelValue: boolean;
10
+ };
11
+ emit: {
12
+ (event: "update:modelValue", value: boolean): void;
13
+ (event: "change", value: boolean): void;
14
+ };
15
+ handleChange: () => void;
16
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: BooleanConstructor;
19
+ required: false;
20
+ default: boolean;
21
+ };
22
+ }>> & {
23
+ onChange?: (...args: any[]) => any;
24
+ "onUpdate:modelValue"?: (...args: any[]) => any;
25
+ }, {
26
+ modelValue: boolean;
27
+ }>;
28
+ export default _sfc_main;
@@ -0,0 +1,28 @@
1
+ import type { ComputedRef } from "vue";
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ id: {
4
+ type: StringConstructor;
5
+ required: false;
6
+ };
7
+ label: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ };
11
+ }, {
12
+ props: {
13
+ id?: string;
14
+ label?: string;
15
+ };
16
+ activeId: ComputedRef<string | number>;
17
+ isActive: ComputedRef<boolean>;
18
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ id: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ };
23
+ label: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ };
27
+ }>>, {}>;
28
+ export default _sfc_main;
@@ -0,0 +1,84 @@
1
+ import type { Direction, Type } from "./interface";
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ activeId: {
4
+ type: (StringConstructor | NumberConstructor)[];
5
+ required: false;
6
+ };
7
+ items: {
8
+ type: ArrayConstructor;
9
+ required: false;
10
+ };
11
+ type: {
12
+ type: any;
13
+ required: false;
14
+ default: string;
15
+ };
16
+ direction: {
17
+ type: any;
18
+ required: false;
19
+ default: string;
20
+ };
21
+ idKey: {
22
+ type: StringConstructor;
23
+ required: false;
24
+ default: string;
25
+ };
26
+ labelKey: {
27
+ type: StringConstructor;
28
+ required: false;
29
+ default: string;
30
+ };
31
+ }, {
32
+ props: {
33
+ activeId?: number | string;
34
+ items?: Array<Record<string, string>>;
35
+ type: Type;
36
+ direction: Direction;
37
+ idKey: string;
38
+ labelKey: string;
39
+ };
40
+ emit: {
41
+ (event: "update:activeId", value: number | string): void;
42
+ (event: "change", value: number | string): void;
43
+ };
44
+ classes: import("vue").ComputedRef<string[]>;
45
+ handleChange: (id: number | string) => void;
46
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeId")[], "change" | "update:activeId", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ activeId: {
48
+ type: (StringConstructor | NumberConstructor)[];
49
+ required: false;
50
+ };
51
+ items: {
52
+ type: ArrayConstructor;
53
+ required: false;
54
+ };
55
+ type: {
56
+ type: any;
57
+ required: false;
58
+ default: string;
59
+ };
60
+ direction: {
61
+ type: any;
62
+ required: false;
63
+ default: string;
64
+ };
65
+ idKey: {
66
+ type: StringConstructor;
67
+ required: false;
68
+ default: string;
69
+ };
70
+ labelKey: {
71
+ type: StringConstructor;
72
+ required: false;
73
+ default: string;
74
+ };
75
+ }>> & {
76
+ onChange?: (...args: any[]) => any;
77
+ "onUpdate:activeId"?: (...args: any[]) => any;
78
+ }, {
79
+ type: any;
80
+ labelKey: string;
81
+ direction: any;
82
+ idKey: string;
83
+ }>;
84
+ export default _sfc_main;
@@ -0,0 +1,165 @@
1
+ import type { ComputedRef } from "vue";
2
+ import type { Direction, Type } from "./interface";
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ activeId: {
5
+ type: (StringConstructor | NumberConstructor)[];
6
+ required: false;
7
+ };
8
+ type: {
9
+ type: any;
10
+ required: false;
11
+ default: string;
12
+ };
13
+ direction: {
14
+ type: any;
15
+ required: false;
16
+ default: string;
17
+ };
18
+ idKey: {
19
+ type: StringConstructor;
20
+ required: false;
21
+ default: string;
22
+ };
23
+ labelKey: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ default: string;
27
+ };
28
+ }, {
29
+ props: {
30
+ activeId?: number | string;
31
+ type: Type;
32
+ direction: Direction;
33
+ idKey: string;
34
+ labelKey: string;
35
+ };
36
+ emit: {
37
+ (event: "update:activeId", value: number | string): void;
38
+ (event: "change", value: number | string): void;
39
+ };
40
+ slots: Readonly<{
41
+ [name: string]: import("vue").Slot;
42
+ }>;
43
+ tabItems: ComputedRef<{
44
+ id: any;
45
+ label: any;
46
+ }[]>;
47
+ classes: ComputedRef<string[]>;
48
+ handleChange: (id: string | number) => void;
49
+ VTabbar: import("vue").DefineComponent<{
50
+ activeId: {
51
+ type: (StringConstructor | NumberConstructor)[];
52
+ required: false;
53
+ };
54
+ items: {
55
+ type: ArrayConstructor;
56
+ required: false;
57
+ };
58
+ type: {
59
+ type: any;
60
+ required: false;
61
+ default: string;
62
+ };
63
+ direction: {
64
+ type: any;
65
+ required: false;
66
+ default: string;
67
+ };
68
+ idKey: {
69
+ type: StringConstructor;
70
+ required: false;
71
+ default: string;
72
+ };
73
+ labelKey: {
74
+ type: StringConstructor;
75
+ required: false;
76
+ default: string;
77
+ };
78
+ }, {
79
+ props: {
80
+ activeId?: string | number;
81
+ items?: Record<string, string>[];
82
+ type: Type;
83
+ direction: Direction;
84
+ idKey: string;
85
+ labelKey: string;
86
+ };
87
+ emit: {
88
+ (event: "update:activeId", value: string | number): void;
89
+ (event: "change", value: string | number): void;
90
+ };
91
+ classes: ComputedRef<string[]>;
92
+ handleChange: (id: string | number) => void;
93
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeId")[], "change" | "update:activeId", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
94
+ activeId: {
95
+ type: (StringConstructor | NumberConstructor)[];
96
+ required: false;
97
+ };
98
+ items: {
99
+ type: ArrayConstructor;
100
+ required: false;
101
+ };
102
+ type: {
103
+ type: any;
104
+ required: false;
105
+ default: string;
106
+ };
107
+ direction: {
108
+ type: any;
109
+ required: false;
110
+ default: string;
111
+ };
112
+ idKey: {
113
+ type: StringConstructor;
114
+ required: false;
115
+ default: string;
116
+ };
117
+ labelKey: {
118
+ type: StringConstructor;
119
+ required: false;
120
+ default: string;
121
+ };
122
+ }>> & {
123
+ onChange?: (...args: any[]) => any;
124
+ "onUpdate:activeId"?: (...args: any[]) => any;
125
+ }, {
126
+ type: any;
127
+ labelKey: string;
128
+ direction: any;
129
+ idKey: string;
130
+ }>;
131
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:activeId")[], "change" | "update:activeId", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
132
+ activeId: {
133
+ type: (StringConstructor | NumberConstructor)[];
134
+ required: false;
135
+ };
136
+ type: {
137
+ type: any;
138
+ required: false;
139
+ default: string;
140
+ };
141
+ direction: {
142
+ type: any;
143
+ required: false;
144
+ default: string;
145
+ };
146
+ idKey: {
147
+ type: StringConstructor;
148
+ required: false;
149
+ default: string;
150
+ };
151
+ labelKey: {
152
+ type: StringConstructor;
153
+ required: false;
154
+ default: string;
155
+ };
156
+ }>> & {
157
+ onChange?: (...args: any[]) => any;
158
+ "onUpdate:activeId"?: (...args: any[]) => any;
159
+ }, {
160
+ type: any;
161
+ labelKey: string;
162
+ direction: any;
163
+ idKey: string;
164
+ }>;
165
+ export default _sfc_main;
@@ -0,0 +1,36 @@
1
+ import type { Theme } from "./interface";
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ theme: {
4
+ type: any;
5
+ required: false;
6
+ default: string;
7
+ };
8
+ rounded: {
9
+ type: BooleanConstructor;
10
+ required: false;
11
+ default: boolean;
12
+ };
13
+ }, {
14
+ props: {
15
+ theme: Theme;
16
+ rounded: boolean;
17
+ };
18
+ classes: import("vue").ComputedRef<(string | {
19
+ "tag-rounded": boolean;
20
+ })[]>;
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ theme: {
23
+ type: any;
24
+ required: false;
25
+ default: string;
26
+ };
27
+ rounded: {
28
+ type: BooleanConstructor;
29
+ required: false;
30
+ default: boolean;
31
+ };
32
+ }>>, {
33
+ theme: any;
34
+ rounded: boolean;
35
+ }>;
36
+ export default _sfc_main;
@@ -1,34 +1,42 @@
1
1
  declare const _sfc_main: import("vue").DefineComponent<{
2
2
  modelValue: {
3
3
  type: StringConstructor;
4
+ required: false;
4
5
  };
5
6
  disabled: {
6
7
  type: BooleanConstructor;
8
+ required: false;
7
9
  default: boolean;
8
10
  };
9
11
  placeholder: {
10
12
  type: StringConstructor;
13
+ required: false;
11
14
  };
12
15
  rows: {
13
16
  type: NumberConstructor;
17
+ required: false;
14
18
  default: number;
15
19
  };
16
20
  }, {
17
- emit: (event: "update:modelValue", ...args: any[]) => void;
21
+ emit: (event: "update:modelValue", value: string) => void;
18
22
  handleInput: (e: Event) => void;
19
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
24
  modelValue: {
21
25
  type: StringConstructor;
26
+ required: false;
22
27
  };
23
28
  disabled: {
24
29
  type: BooleanConstructor;
30
+ required: false;
25
31
  default: boolean;
26
32
  };
27
33
  placeholder: {
28
34
  type: StringConstructor;
35
+ required: false;
29
36
  };
30
37
  rows: {
31
38
  type: NumberConstructor;
39
+ required: false;
32
40
  default: number;
33
41
  };
34
42
  }>> & {
@@ -14,3 +14,5 @@ export * from "./components/tag";
14
14
  export * from "./components/textarea";
15
15
  export * from "./components/switch";
16
16
  export * from "./components/dialog";
17
+ export * from "./components/pagination";
18
+ export * from "./components/codemirror";