@huntflow/ui 0.0.18 → 0.0.20
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/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,144 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { PublicProps } from 'vue';
|
|
5
|
+
import { RendererElement } from 'vue';
|
|
6
|
+
import { RendererNode } from 'vue';
|
|
7
|
+
import { VNode } from 'vue';
|
|
8
|
+
|
|
9
|
+
declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
enter: (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
onEnter?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
|
|
17
|
+
declare const __VLS_component_2: DefineComponent<BaseButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
18
|
+
click: () => any;
|
|
19
|
+
}, string, PublicProps, Readonly<BaseButtonProps> & Readonly<{
|
|
20
|
+
onClick?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
|
|
23
|
+
declare type __VLS_PublicProps = {
|
|
24
|
+
modelValue?: string;
|
|
25
|
+
} & typeof __VLS_typeProps;
|
|
26
|
+
|
|
27
|
+
declare function __VLS_template(): {
|
|
28
|
+
slots: {
|
|
29
|
+
prefix?(_: {}): any;
|
|
30
|
+
suffix?(_: {}): any;
|
|
31
|
+
};
|
|
32
|
+
refs: {};
|
|
33
|
+
attrs: Partial<{}>;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
declare function __VLS_template_2(): {
|
|
37
|
+
slots: {
|
|
38
|
+
leftIcon?(_: {
|
|
39
|
+
icon: VNode<RendererNode, RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>;
|
|
42
|
+
}): any;
|
|
43
|
+
default?(_: {}): any;
|
|
44
|
+
rightIcon?(_: {
|
|
45
|
+
icon: VNode<RendererNode, RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>;
|
|
48
|
+
}): any;
|
|
49
|
+
};
|
|
50
|
+
refs: {};
|
|
51
|
+
attrs: Partial<{}>;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
55
|
+
|
|
56
|
+
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
57
|
+
|
|
58
|
+
declare let __VLS_typeProps: BaseInputProps;
|
|
59
|
+
|
|
60
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
67
|
+
new (): {
|
|
68
|
+
$slots: S;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export declare const BaseButton: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
73
|
+
|
|
74
|
+
declare type BaseButtonProps = {
|
|
75
|
+
size?: ButtonSize;
|
|
76
|
+
className?: string;
|
|
77
|
+
type?: ButtonType;
|
|
78
|
+
leftIcon?: VNode;
|
|
79
|
+
rightIcon?: VNode;
|
|
80
|
+
block?: boolean;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
loading?: boolean;
|
|
83
|
+
active?: boolean;
|
|
84
|
+
name?: string;
|
|
85
|
+
circle?: boolean;
|
|
86
|
+
bordered?: boolean;
|
|
87
|
+
htmlType?: ButtonHTMLType;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export declare const BaseInput: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
91
|
+
|
|
92
|
+
declare type BaseInputProps = {
|
|
93
|
+
value: string;
|
|
94
|
+
type?: InputType;
|
|
95
|
+
id?: string;
|
|
96
|
+
name?: string;
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
label?: string;
|
|
99
|
+
placeholder?: string;
|
|
100
|
+
loading?: boolean;
|
|
101
|
+
error?: string | null | void;
|
|
102
|
+
size?: InputSize;
|
|
103
|
+
className?: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
declare enum ButtonHTMLType {
|
|
107
|
+
SUBMIT = "submit",
|
|
108
|
+
BUTTON = "button",
|
|
109
|
+
RESET = "reset"
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare enum ButtonSize {
|
|
113
|
+
XS = "xs",
|
|
114
|
+
S = "s",
|
|
115
|
+
M = "m",
|
|
116
|
+
L = "l",
|
|
117
|
+
XL = "xl"
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare enum ButtonType {
|
|
121
|
+
PRIMARY = "primary",
|
|
122
|
+
DANGER = "danger",
|
|
123
|
+
DEFAULT = "default",
|
|
124
|
+
TEXT = "text",
|
|
125
|
+
LINK = "link"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare enum InputSize {
|
|
129
|
+
XS = "xs",
|
|
130
|
+
S = "s",
|
|
131
|
+
M = "m",
|
|
132
|
+
L = "l",
|
|
133
|
+
XL = "xl"
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare enum InputType {
|
|
137
|
+
TEXT = "text",
|
|
138
|
+
PASSWORD = "password",
|
|
139
|
+
EMAIL = "email",
|
|
140
|
+
TEL = "tel",
|
|
141
|
+
SEARCH = "search"
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseButtonProps } from './types';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
slots: {
|
|
4
|
-
leftIcon?(_: {
|
|
5
|
-
icon: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}>;
|
|
8
|
-
}): any;
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
rightIcon?(_: {
|
|
11
|
-
icon: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}>;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
attrs: Partial<{}>;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<BaseButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
-
click: () => any;
|
|
22
|
-
}, string, import('vue').PublicProps, Readonly<BaseButtonProps> & Readonly<{
|
|
23
|
-
onClick?: (() => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
2
|
-
export type BaseButtonProps = {
|
|
3
|
-
size?: ButtonSize;
|
|
4
|
-
className?: string;
|
|
5
|
-
type?: ButtonType;
|
|
6
|
-
leftIcon?: VNode;
|
|
7
|
-
rightIcon?: VNode;
|
|
8
|
-
block?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
active?: boolean;
|
|
12
|
-
name?: string;
|
|
13
|
-
circle?: boolean;
|
|
14
|
-
bordered?: boolean;
|
|
15
|
-
htmlType?: ButtonHTMLType;
|
|
16
|
-
};
|
|
17
|
-
export declare enum ButtonSize {
|
|
18
|
-
XS = "xs",
|
|
19
|
-
S = "s",
|
|
20
|
-
M = "m",
|
|
21
|
-
L = "l",
|
|
22
|
-
XL = "xl"
|
|
23
|
-
}
|
|
24
|
-
export declare enum ButtonType {
|
|
25
|
-
PRIMARY = "primary",
|
|
26
|
-
DANGER = "danger",
|
|
27
|
-
DEFAULT = "default",
|
|
28
|
-
TEXT = "text",
|
|
29
|
-
LINK = "link"
|
|
30
|
-
}
|
|
31
|
-
export declare enum ButtonHTMLType {
|
|
32
|
-
SUBMIT = "submit",
|
|
33
|
-
BUTTON = "button",
|
|
34
|
-
RESET = "reset"
|
|
35
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BaseInputProps } from './types.ts';
|
|
2
|
-
declare let __VLS_typeProps: BaseInputProps;
|
|
3
|
-
type __VLS_PublicProps = {
|
|
4
|
-
modelValue?: string;
|
|
5
|
-
} & typeof __VLS_typeProps;
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
slots: {
|
|
8
|
-
prefix?(_: {}): any;
|
|
9
|
-
suffix?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {};
|
|
12
|
-
attrs: Partial<{}>;
|
|
13
|
-
};
|
|
14
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (...args: any[]) => void;
|
|
17
|
-
enter: (...args: any[]) => void;
|
|
18
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
onEnter?: ((...args: any[]) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type BaseInputProps = {
|
|
2
|
-
value: string;
|
|
3
|
-
type?: InputType;
|
|
4
|
-
id?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
label?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
error?: string | null | void;
|
|
11
|
-
size?: InputSize;
|
|
12
|
-
className?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare enum InputSize {
|
|
15
|
-
XS = "xs",
|
|
16
|
-
S = "s",
|
|
17
|
-
M = "m",
|
|
18
|
-
L = "l",
|
|
19
|
-
XL = "xl"
|
|
20
|
-
}
|
|
21
|
-
export declare enum InputType {
|
|
22
|
-
TEXT = "text",
|
|
23
|
-
PASSWORD = "password",
|
|
24
|
-
EMAIL = "email",
|
|
25
|
-
TEL = "tel",
|
|
26
|
-
SEARCH = "search"
|
|
27
|
-
}
|