@halo-dev/components 0.0.0-alpha.4 → 0.0.0-alpha.5

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 (42) hide show
  1. package/dist/components/alert/Alert.vue.d.ts +1 -6
  2. package/dist/components/avatar/Avatar.vue.d.ts +8 -14
  3. package/dist/components/button/Button.vue.d.ts +1 -11
  4. package/dist/components/checkbox/CheckBox.vue.d.ts +1 -6
  5. package/dist/components/checkbox/CheckBoxGroup.vue.d.ts +2 -13
  6. package/dist/components/codemirror/Codemirror.vue.d.ts +1 -7
  7. package/dist/components/dialog/Dialog.vue.d.ts +3 -13
  8. package/dist/components/dialog/dialog-manager.d.ts +12 -0
  9. package/dist/components/dialog/index.d.ts +1 -2
  10. package/dist/components/dialog/interface.d.ts +11 -0
  11. package/dist/components/entity/Entity.vue.d.ts +3 -9
  12. package/dist/components/input/Input.vue.d.ts +1 -7
  13. package/dist/components/menu/Menu.vue.d.ts +1 -3
  14. package/dist/components/menu/MenuItem.vue.d.ts +1 -5
  15. package/dist/components/menu/index.d.ts +0 -1
  16. package/dist/components/modal/Modal.vue.d.ts +13 -9
  17. package/dist/components/pagination/Pagination.vue.d.ts +79 -0
  18. package/dist/components/radio/Radio.vue.d.ts +1 -6
  19. package/dist/components/radio/RadioGroup.vue.d.ts +1 -6
  20. package/dist/components/select/Select.vue.d.ts +1 -7
  21. package/dist/components/space/Space.vue.d.ts +2 -7
  22. package/dist/components/status/StatusDot.vue.d.ts +1 -6
  23. package/dist/components/switch/Switch.vue.d.ts +1 -3
  24. package/dist/components/tabs/TabItem.vue.d.ts +1 -4
  25. package/dist/components/tabs/Tabbar.vue.d.ts +1 -9
  26. package/dist/components/tabs/Tabs.vue.d.ts +2 -16
  27. package/dist/components/tag/Tag.vue.d.ts +1 -7
  28. package/dist/components/toast/Toast.vue.d.ts +125 -0
  29. package/dist/components/toast/index.d.ts +1 -0
  30. package/dist/components/toast/interface.d.ts +10 -0
  31. package/dist/components/toast/toast-manager.d.ts +17 -0
  32. package/dist/components.d.ts +1 -0
  33. package/dist/halo-components.es.js +6171 -5906
  34. package/dist/halo-components.es.js.map +1 -1
  35. package/dist/halo-components.iife.js +13 -13
  36. package/dist/halo-components.iife.js.map +1 -1
  37. package/dist/style.css +1 -1
  38. package/package.json +10 -10
  39. package/dist/components/dialog/DialogProvider.vue.d.ts +0 -162
  40. package/dist/components/dialog/use-dialog.d.ts +0 -9
  41. package/dist/components/menu/RoutesMenu.d.ts +0 -16
  42. package/dist/components/menu/interface.d.ts +0 -12
@@ -0,0 +1,125 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ type: {
3
+ type: any;
4
+ required: false;
5
+ default: string;
6
+ };
7
+ content: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: string;
11
+ };
12
+ duration: {
13
+ type: NumberConstructor;
14
+ required: false;
15
+ default: number;
16
+ };
17
+ closable: {
18
+ type: BooleanConstructor;
19
+ required: false;
20
+ default: boolean;
21
+ };
22
+ frozenOnHover: {
23
+ type: BooleanConstructor;
24
+ required: false;
25
+ default: boolean;
26
+ };
27
+ count: {
28
+ type: NumberConstructor;
29
+ required: false;
30
+ default: number;
31
+ };
32
+ onClose: {
33
+ type: FunctionConstructor;
34
+ required: false;
35
+ default: any;
36
+ };
37
+ }, {
38
+ props: any;
39
+ timer: import("vue").Ref<any>;
40
+ emit: (event: "close") => void;
41
+ icons: {
42
+ success: {
43
+ icon: any;
44
+ color: string;
45
+ };
46
+ info: {
47
+ icon: any;
48
+ color: string;
49
+ };
50
+ warning: {
51
+ icon: any;
52
+ color: string;
53
+ };
54
+ error: {
55
+ icon: any;
56
+ color: string;
57
+ };
58
+ };
59
+ icon: import("vue").ComputedRef<{
60
+ icon: any;
61
+ color: string;
62
+ } | {
63
+ icon: any;
64
+ color: string;
65
+ } | {
66
+ icon: any;
67
+ color: string;
68
+ } | {
69
+ icon: any;
70
+ color: string;
71
+ }>;
72
+ createTimer: () => void;
73
+ clearTimer: () => void;
74
+ close: () => void;
75
+ handleMouseEnter: () => void;
76
+ handleMouseLeave: () => void;
77
+ IconClose: any;
78
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
79
+ type: {
80
+ type: any;
81
+ required: false;
82
+ default: string;
83
+ };
84
+ content: {
85
+ type: StringConstructor;
86
+ required: false;
87
+ default: string;
88
+ };
89
+ duration: {
90
+ type: NumberConstructor;
91
+ required: false;
92
+ default: number;
93
+ };
94
+ closable: {
95
+ type: BooleanConstructor;
96
+ required: false;
97
+ default: boolean;
98
+ };
99
+ frozenOnHover: {
100
+ type: BooleanConstructor;
101
+ required: false;
102
+ default: boolean;
103
+ };
104
+ count: {
105
+ type: NumberConstructor;
106
+ required: false;
107
+ default: number;
108
+ };
109
+ onClose: {
110
+ type: FunctionConstructor;
111
+ required: false;
112
+ default: any;
113
+ };
114
+ }>> & {
115
+ onClose?: (...args: any[]) => any;
116
+ }, {
117
+ type: any;
118
+ onClose: Function;
119
+ closable: boolean;
120
+ content: string;
121
+ duration: number;
122
+ frozenOnHover: boolean;
123
+ count: number;
124
+ }>;
125
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ export { Toast } from "./toast-manager";
@@ -0,0 +1,10 @@
1
+ export declare type Type = "success" | "info" | "warning" | "error";
2
+ export interface ToastProps {
3
+ type?: Type;
4
+ content?: string;
5
+ duration?: number;
6
+ closable?: boolean;
7
+ frozenOnHover?: boolean;
8
+ count?: 0;
9
+ onClose?: () => void;
10
+ }
@@ -0,0 +1,17 @@
1
+ import { type VNode } from "vue";
2
+ import type { ToastProps } from "./interface";
3
+ export declare type ToastApiProps = Omit<ToastProps, "type" | "content">;
4
+ export interface ToastInstance {
5
+ id: string;
6
+ vnode: VNode;
7
+ }
8
+ export declare type ToastApi = (content: string, props?: ToastApiProps) => ToastInstance;
9
+ export interface ToastEntry {
10
+ (props: ToastProps): ToastInstance;
11
+ info: ToastApi;
12
+ success: ToastApi;
13
+ error: ToastApi;
14
+ warning: ToastApi;
15
+ }
16
+ declare const toast: ToastEntry;
17
+ export { toast as Toast };
@@ -20,3 +20,4 @@ export * from "./components/codemirror";
20
20
  export * from "./components/empty";
21
21
  export * from "./components/status";
22
22
  export * from "./components/entity";
23
+ export * from "./components/toast";