@minto-ai/mini-ui 1.0.101 → 1.0.103

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,227 @@
1
+ export declare const MtButton: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly type: {
4
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
5
+ readonly validator: (value: string) => boolean;
6
+ readonly default: "default";
7
+ };
8
+ readonly size: {
9
+ type: import('vue').PropType<"normal" | "small" | "large">;
10
+ default: string;
11
+ validator: (value: "normal" | "small" | "large") => boolean;
12
+ };
13
+ readonly width: {
14
+ readonly type: import('vue').PropType<number | string>;
15
+ readonly validator: (value: number | string) => boolean;
16
+ readonly default: "auto";
17
+ };
18
+ readonly height: {
19
+ readonly type: import('vue').PropType<number | string>;
20
+ readonly validator: (value: number | string) => boolean;
21
+ readonly default: "auto";
22
+ };
23
+ readonly round: {
24
+ readonly type: BooleanConstructor;
25
+ readonly default: false;
26
+ };
27
+ readonly circle: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: false;
30
+ };
31
+ readonly loading: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: false;
34
+ };
35
+ readonly disabled: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: false;
38
+ };
39
+ readonly text: {
40
+ readonly type: BooleanConstructor;
41
+ readonly default: false;
42
+ };
43
+ readonly block: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: false;
46
+ };
47
+ readonly plain: {
48
+ readonly type: BooleanConstructor;
49
+ readonly default: false;
50
+ };
51
+ readonly nativeType: {
52
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
53
+ readonly default: "button";
54
+ };
55
+ }>> & Readonly<{
56
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
57
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
58
+ click: (args_0: MouseEvent) => any;
59
+ }, import('vue').PublicProps, {
60
+ readonly type: "default" | "primary" | "error" | "success" | "noble";
61
+ readonly size: "normal" | "small" | "large";
62
+ readonly text: boolean;
63
+ readonly circle: boolean;
64
+ readonly width: string | number;
65
+ readonly height: string | number;
66
+ readonly round: boolean;
67
+ readonly loading: boolean;
68
+ readonly disabled: boolean;
69
+ readonly block: boolean;
70
+ readonly plain: boolean;
71
+ readonly nativeType: "button" | "submit" | "reset";
72
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
73
+ P: {};
74
+ B: {};
75
+ D: {};
76
+ C: {};
77
+ M: {};
78
+ Defaults: {};
79
+ }, Readonly<import('vue').ExtractPropTypes<{
80
+ readonly type: {
81
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
82
+ readonly validator: (value: string) => boolean;
83
+ readonly default: "default";
84
+ };
85
+ readonly size: {
86
+ type: import('vue').PropType<"normal" | "small" | "large">;
87
+ default: string;
88
+ validator: (value: "normal" | "small" | "large") => boolean;
89
+ };
90
+ readonly width: {
91
+ readonly type: import('vue').PropType<number | string>;
92
+ readonly validator: (value: number | string) => boolean;
93
+ readonly default: "auto";
94
+ };
95
+ readonly height: {
96
+ readonly type: import('vue').PropType<number | string>;
97
+ readonly validator: (value: number | string) => boolean;
98
+ readonly default: "auto";
99
+ };
100
+ readonly round: {
101
+ readonly type: BooleanConstructor;
102
+ readonly default: false;
103
+ };
104
+ readonly circle: {
105
+ readonly type: BooleanConstructor;
106
+ readonly default: false;
107
+ };
108
+ readonly loading: {
109
+ readonly type: BooleanConstructor;
110
+ readonly default: false;
111
+ };
112
+ readonly disabled: {
113
+ readonly type: BooleanConstructor;
114
+ readonly default: false;
115
+ };
116
+ readonly text: {
117
+ readonly type: BooleanConstructor;
118
+ readonly default: false;
119
+ };
120
+ readonly block: {
121
+ readonly type: BooleanConstructor;
122
+ readonly default: false;
123
+ };
124
+ readonly plain: {
125
+ readonly type: BooleanConstructor;
126
+ readonly default: false;
127
+ };
128
+ readonly nativeType: {
129
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
130
+ readonly default: "button";
131
+ };
132
+ }>> & Readonly<{
133
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
134
+ }>, {}, {}, {}, {}, {
135
+ readonly type: "default" | "primary" | "error" | "success" | "noble";
136
+ readonly size: "normal" | "small" | "large";
137
+ readonly text: boolean;
138
+ readonly circle: boolean;
139
+ readonly width: string | number;
140
+ readonly height: string | number;
141
+ readonly round: boolean;
142
+ readonly loading: boolean;
143
+ readonly disabled: boolean;
144
+ readonly block: boolean;
145
+ readonly plain: boolean;
146
+ readonly nativeType: "button" | "submit" | "reset";
147
+ }>;
148
+ __isFragment?: never;
149
+ __isTeleport?: never;
150
+ __isSuspense?: never;
151
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
152
+ readonly type: {
153
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
154
+ readonly validator: (value: string) => boolean;
155
+ readonly default: "default";
156
+ };
157
+ readonly size: {
158
+ type: import('vue').PropType<"normal" | "small" | "large">;
159
+ default: string;
160
+ validator: (value: "normal" | "small" | "large") => boolean;
161
+ };
162
+ readonly width: {
163
+ readonly type: import('vue').PropType<number | string>;
164
+ readonly validator: (value: number | string) => boolean;
165
+ readonly default: "auto";
166
+ };
167
+ readonly height: {
168
+ readonly type: import('vue').PropType<number | string>;
169
+ readonly validator: (value: number | string) => boolean;
170
+ readonly default: "auto";
171
+ };
172
+ readonly round: {
173
+ readonly type: BooleanConstructor;
174
+ readonly default: false;
175
+ };
176
+ readonly circle: {
177
+ readonly type: BooleanConstructor;
178
+ readonly default: false;
179
+ };
180
+ readonly loading: {
181
+ readonly type: BooleanConstructor;
182
+ readonly default: false;
183
+ };
184
+ readonly disabled: {
185
+ readonly type: BooleanConstructor;
186
+ readonly default: false;
187
+ };
188
+ readonly text: {
189
+ readonly type: BooleanConstructor;
190
+ readonly default: false;
191
+ };
192
+ readonly block: {
193
+ readonly type: BooleanConstructor;
194
+ readonly default: false;
195
+ };
196
+ readonly plain: {
197
+ readonly type: BooleanConstructor;
198
+ readonly default: false;
199
+ };
200
+ readonly nativeType: {
201
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
202
+ readonly default: "button";
203
+ };
204
+ }>> & Readonly<{
205
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
206
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
207
+ click: (args_0: MouseEvent) => any;
208
+ }, string, {
209
+ readonly type: "default" | "primary" | "error" | "success" | "noble";
210
+ readonly size: "normal" | "small" | "large";
211
+ readonly text: boolean;
212
+ readonly circle: boolean;
213
+ readonly width: string | number;
214
+ readonly height: string | number;
215
+ readonly round: boolean;
216
+ readonly loading: boolean;
217
+ readonly disabled: boolean;
218
+ readonly block: boolean;
219
+ readonly plain: boolean;
220
+ readonly nativeType: "button" | "submit" | "reset";
221
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
222
+ $slots: {
223
+ icon?(_: {}): any;
224
+ default?(_: {}): any;
225
+ };
226
+ }) & import('vue').Plugin;
227
+ export default MtButton;
@@ -0,0 +1,93 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ declare const buttonProps: {
3
+ /**
4
+ * 按钮的外观风格
5
+ */
6
+ readonly type: {
7
+ readonly type: PropType<"default" | "primary" | "error" | "success" | "noble">;
8
+ readonly validator: (value: string) => boolean;
9
+ readonly default: "default";
10
+ };
11
+ /**
12
+ * 按钮的尺寸
13
+ */
14
+ readonly size: {
15
+ type: PropType<"normal" | "small" | "large">;
16
+ default: string;
17
+ validator: (value: "normal" | "small" | "large") => boolean;
18
+ };
19
+ /**
20
+ * 按钮的宽度
21
+ */
22
+ readonly width: {
23
+ readonly type: PropType<number | string>;
24
+ readonly validator: (value: number | string) => boolean;
25
+ readonly default: "auto";
26
+ };
27
+ /**
28
+ * 按钮的高度
29
+ */
30
+ readonly height: {
31
+ readonly type: PropType<number | string>;
32
+ readonly validator: (value: number | string) => boolean;
33
+ readonly default: "auto";
34
+ };
35
+ /**
36
+ * 控制按钮是否呈现圆角样式
37
+ */
38
+ readonly round: {
39
+ readonly type: BooleanConstructor;
40
+ readonly default: false;
41
+ };
42
+ /**
43
+ * 按钮是否为圆形按钮
44
+ */
45
+ readonly circle: {
46
+ readonly type: BooleanConstructor;
47
+ readonly default: false;
48
+ };
49
+ /**
50
+ * 按钮是否处于加载中状态
51
+ */
52
+ readonly loading: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: false;
55
+ };
56
+ /**
57
+ * 按钮是否处于禁用状态
58
+ */
59
+ readonly disabled: {
60
+ readonly type: BooleanConstructor;
61
+ readonly default: false;
62
+ };
63
+ /**
64
+ * 是否为文字按钮
65
+ */
66
+ readonly text: {
67
+ readonly type: BooleanConstructor;
68
+ readonly default: false;
69
+ };
70
+ /**
71
+ * 是否为块级元素
72
+ */
73
+ readonly block: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: false;
76
+ };
77
+ /**
78
+ * 是否为朴素按钮
79
+ */
80
+ readonly plain: {
81
+ readonly type: BooleanConstructor;
82
+ readonly default: false;
83
+ };
84
+ /**
85
+ * 原生 type 属性
86
+ */
87
+ readonly nativeType: {
88
+ readonly type: PropType<"button" | "submit" | "reset">;
89
+ readonly default: "button";
90
+ };
91
+ };
92
+ export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
93
+ export { buttonProps };
@@ -0,0 +1,141 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ icon?(_: {}): any;
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLButtonElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ readonly type: {
13
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
14
+ readonly validator: (value: string) => boolean;
15
+ readonly default: "default";
16
+ };
17
+ readonly size: {
18
+ type: import('vue').PropType<"normal" | "small" | "large">;
19
+ default: string;
20
+ validator: (value: "normal" | "small" | "large") => boolean;
21
+ };
22
+ readonly width: {
23
+ readonly type: import('vue').PropType<number | string>;
24
+ readonly validator: (value: number | string) => boolean;
25
+ readonly default: "auto";
26
+ };
27
+ readonly height: {
28
+ readonly type: import('vue').PropType<number | string>;
29
+ readonly validator: (value: number | string) => boolean;
30
+ readonly default: "auto";
31
+ };
32
+ readonly round: {
33
+ readonly type: BooleanConstructor;
34
+ readonly default: false;
35
+ };
36
+ readonly circle: {
37
+ readonly type: BooleanConstructor;
38
+ readonly default: false;
39
+ };
40
+ readonly loading: {
41
+ readonly type: BooleanConstructor;
42
+ readonly default: false;
43
+ };
44
+ readonly disabled: {
45
+ readonly type: BooleanConstructor;
46
+ readonly default: false;
47
+ };
48
+ readonly text: {
49
+ readonly type: BooleanConstructor;
50
+ readonly default: false;
51
+ };
52
+ readonly block: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: false;
55
+ };
56
+ readonly plain: {
57
+ readonly type: BooleanConstructor;
58
+ readonly default: false;
59
+ };
60
+ readonly nativeType: {
61
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
62
+ readonly default: "button";
63
+ };
64
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
65
+ click: (args_0: MouseEvent) => any;
66
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
67
+ readonly type: {
68
+ readonly type: import('vue').PropType<"default" | "primary" | "error" | "success" | "noble">;
69
+ readonly validator: (value: string) => boolean;
70
+ readonly default: "default";
71
+ };
72
+ readonly size: {
73
+ type: import('vue').PropType<"normal" | "small" | "large">;
74
+ default: string;
75
+ validator: (value: "normal" | "small" | "large") => boolean;
76
+ };
77
+ readonly width: {
78
+ readonly type: import('vue').PropType<number | string>;
79
+ readonly validator: (value: number | string) => boolean;
80
+ readonly default: "auto";
81
+ };
82
+ readonly height: {
83
+ readonly type: import('vue').PropType<number | string>;
84
+ readonly validator: (value: number | string) => boolean;
85
+ readonly default: "auto";
86
+ };
87
+ readonly round: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: false;
90
+ };
91
+ readonly circle: {
92
+ readonly type: BooleanConstructor;
93
+ readonly default: false;
94
+ };
95
+ readonly loading: {
96
+ readonly type: BooleanConstructor;
97
+ readonly default: false;
98
+ };
99
+ readonly disabled: {
100
+ readonly type: BooleanConstructor;
101
+ readonly default: false;
102
+ };
103
+ readonly text: {
104
+ readonly type: BooleanConstructor;
105
+ readonly default: false;
106
+ };
107
+ readonly block: {
108
+ readonly type: BooleanConstructor;
109
+ readonly default: false;
110
+ };
111
+ readonly plain: {
112
+ readonly type: BooleanConstructor;
113
+ readonly default: false;
114
+ };
115
+ readonly nativeType: {
116
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
117
+ readonly default: "button";
118
+ };
119
+ }>> & Readonly<{
120
+ onClick?: ((args_0: MouseEvent) => any) | undefined;
121
+ }>, {
122
+ readonly type: "default" | "primary" | "error" | "success" | "noble";
123
+ readonly size: "normal" | "small" | "large";
124
+ readonly text: boolean;
125
+ readonly circle: boolean;
126
+ readonly width: string | number;
127
+ readonly height: string | number;
128
+ readonly round: boolean;
129
+ readonly loading: boolean;
130
+ readonly disabled: boolean;
131
+ readonly block: boolean;
132
+ readonly plain: boolean;
133
+ readonly nativeType: "button" | "submit" | "reset";
134
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
135
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
136
+ export default _default;
137
+ type __VLS_WithTemplateSlots<T, S> = T & {
138
+ new (): {
139
+ $slots: S;
140
+ };
141
+ };