@vuecs/button 1.1.0 → 1.2.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.
- package/dist/component.d.ts +29 -29
- package/dist/type.d.ts +1 -1
- package/dist/type.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/component.d.ts
CHANGED
|
@@ -10,15 +10,15 @@ export declare const buttonThemeDefaults: ComponentThemeDefinition<ButtonThemeCl
|
|
|
10
10
|
declare const buttonProps: {
|
|
11
11
|
color: {
|
|
12
12
|
type: PropType<ButtonColor>;
|
|
13
|
-
default:
|
|
13
|
+
default: undefined;
|
|
14
14
|
};
|
|
15
15
|
variant: {
|
|
16
16
|
type: PropType<ButtonVariant>;
|
|
17
|
-
default:
|
|
17
|
+
default: undefined;
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
20
|
type: PropType<ButtonSize>;
|
|
21
|
-
default:
|
|
21
|
+
default: undefined;
|
|
22
22
|
};
|
|
23
23
|
type: {
|
|
24
24
|
type: StringConstructor;
|
|
@@ -42,19 +42,19 @@ declare const buttonProps: {
|
|
|
42
42
|
*/
|
|
43
43
|
tag: {
|
|
44
44
|
type: PropType<string | Component>;
|
|
45
|
-
default:
|
|
45
|
+
default: undefined;
|
|
46
46
|
};
|
|
47
47
|
label: {
|
|
48
48
|
type: StringConstructor;
|
|
49
|
-
default:
|
|
49
|
+
default: undefined;
|
|
50
50
|
};
|
|
51
51
|
iconLeft: {
|
|
52
52
|
type: StringConstructor;
|
|
53
|
-
default:
|
|
53
|
+
default: undefined;
|
|
54
54
|
};
|
|
55
55
|
iconRight: {
|
|
56
56
|
type: StringConstructor;
|
|
57
|
-
default:
|
|
57
|
+
default: undefined;
|
|
58
58
|
};
|
|
59
59
|
loading: {
|
|
60
60
|
type: BooleanConstructor;
|
|
@@ -66,26 +66,26 @@ declare const buttonProps: {
|
|
|
66
66
|
};
|
|
67
67
|
themeClass: {
|
|
68
68
|
type: PropType<ThemeClassesOverride<ButtonThemeClasses>>;
|
|
69
|
-
default:
|
|
69
|
+
default: undefined;
|
|
70
70
|
};
|
|
71
71
|
themeVariant: {
|
|
72
72
|
type: PropType<VariantValues>;
|
|
73
|
-
default:
|
|
73
|
+
default: undefined;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
export type ButtonProps = ExtractPublicPropTypes<typeof buttonProps>;
|
|
77
77
|
export declare const VCButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
78
78
|
color: {
|
|
79
79
|
type: PropType<ButtonColor>;
|
|
80
|
-
default:
|
|
80
|
+
default: undefined;
|
|
81
81
|
};
|
|
82
82
|
variant: {
|
|
83
83
|
type: PropType<ButtonVariant>;
|
|
84
|
-
default:
|
|
84
|
+
default: undefined;
|
|
85
85
|
};
|
|
86
86
|
size: {
|
|
87
87
|
type: PropType<ButtonSize>;
|
|
88
|
-
default:
|
|
88
|
+
default: undefined;
|
|
89
89
|
};
|
|
90
90
|
type: {
|
|
91
91
|
type: StringConstructor;
|
|
@@ -109,19 +109,19 @@ export declare const VCButton: import("vue").DefineComponent<import("vue").Extra
|
|
|
109
109
|
*/
|
|
110
110
|
tag: {
|
|
111
111
|
type: PropType<string | Component>;
|
|
112
|
-
default:
|
|
112
|
+
default: undefined;
|
|
113
113
|
};
|
|
114
114
|
label: {
|
|
115
115
|
type: StringConstructor;
|
|
116
|
-
default:
|
|
116
|
+
default: undefined;
|
|
117
117
|
};
|
|
118
118
|
iconLeft: {
|
|
119
119
|
type: StringConstructor;
|
|
120
|
-
default:
|
|
120
|
+
default: undefined;
|
|
121
121
|
};
|
|
122
122
|
iconRight: {
|
|
123
123
|
type: StringConstructor;
|
|
124
|
-
default:
|
|
124
|
+
default: undefined;
|
|
125
125
|
};
|
|
126
126
|
loading: {
|
|
127
127
|
type: BooleanConstructor;
|
|
@@ -133,26 +133,26 @@ export declare const VCButton: import("vue").DefineComponent<import("vue").Extra
|
|
|
133
133
|
};
|
|
134
134
|
themeClass: {
|
|
135
135
|
type: PropType<ThemeClassesOverride<ButtonThemeClasses>>;
|
|
136
|
-
default:
|
|
136
|
+
default: undefined;
|
|
137
137
|
};
|
|
138
138
|
themeVariant: {
|
|
139
139
|
type: PropType<VariantValues>;
|
|
140
|
-
default:
|
|
140
|
+
default: undefined;
|
|
141
141
|
};
|
|
142
142
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
143
143
|
[key: string]: any;
|
|
144
144
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
145
145
|
color: {
|
|
146
146
|
type: PropType<ButtonColor>;
|
|
147
|
-
default:
|
|
147
|
+
default: undefined;
|
|
148
148
|
};
|
|
149
149
|
variant: {
|
|
150
150
|
type: PropType<ButtonVariant>;
|
|
151
|
-
default:
|
|
151
|
+
default: undefined;
|
|
152
152
|
};
|
|
153
153
|
size: {
|
|
154
154
|
type: PropType<ButtonSize>;
|
|
155
|
-
default:
|
|
155
|
+
default: undefined;
|
|
156
156
|
};
|
|
157
157
|
type: {
|
|
158
158
|
type: StringConstructor;
|
|
@@ -176,19 +176,19 @@ export declare const VCButton: import("vue").DefineComponent<import("vue").Extra
|
|
|
176
176
|
*/
|
|
177
177
|
tag: {
|
|
178
178
|
type: PropType<string | Component>;
|
|
179
|
-
default:
|
|
179
|
+
default: undefined;
|
|
180
180
|
};
|
|
181
181
|
label: {
|
|
182
182
|
type: StringConstructor;
|
|
183
|
-
default:
|
|
183
|
+
default: undefined;
|
|
184
184
|
};
|
|
185
185
|
iconLeft: {
|
|
186
186
|
type: StringConstructor;
|
|
187
|
-
default:
|
|
187
|
+
default: undefined;
|
|
188
188
|
};
|
|
189
189
|
iconRight: {
|
|
190
190
|
type: StringConstructor;
|
|
191
|
-
default:
|
|
191
|
+
default: undefined;
|
|
192
192
|
};
|
|
193
193
|
loading: {
|
|
194
194
|
type: BooleanConstructor;
|
|
@@ -200,11 +200,11 @@ export declare const VCButton: import("vue").DefineComponent<import("vue").Extra
|
|
|
200
200
|
};
|
|
201
201
|
themeClass: {
|
|
202
202
|
type: PropType<ThemeClassesOverride<ButtonThemeClasses>>;
|
|
203
|
-
default:
|
|
203
|
+
default: undefined;
|
|
204
204
|
};
|
|
205
205
|
themeVariant: {
|
|
206
206
|
type: PropType<VariantValues>;
|
|
207
|
-
default:
|
|
207
|
+
default: undefined;
|
|
208
208
|
};
|
|
209
209
|
}>> & Readonly<{}>, {
|
|
210
210
|
label: string;
|
|
@@ -212,8 +212,8 @@ export declare const VCButton: import("vue").DefineComponent<import("vue").Extra
|
|
|
212
212
|
color: ButtonColor;
|
|
213
213
|
variant: ButtonVariant;
|
|
214
214
|
type: string;
|
|
215
|
-
as: string;
|
|
216
|
-
tag:
|
|
215
|
+
as: string | Component;
|
|
216
|
+
tag: string | Component;
|
|
217
217
|
iconLeft: string;
|
|
218
218
|
iconRight: string;
|
|
219
219
|
loading: boolean;
|
package/dist/type.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { CoreOptions } from '@vuecs/core';
|
|
|
2
2
|
export type Options = CoreOptions;
|
|
3
3
|
export type ButtonColor = 'primary' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
|
|
4
4
|
export type ButtonVariant = 'solid' | 'soft' | 'outline' | 'ghost' | 'link';
|
|
5
|
-
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
6
6
|
export type ButtonThemeClasses = {
|
|
7
7
|
root: string;
|
|
8
8
|
leading: string;
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC3F,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC5E,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC;AAElC,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC3F,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAC5E,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuecs/button",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A general-purpose button component for Vue 3.",
|
|
6
6
|
"exports": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"build": "rimraf dist && npm run build:js && npm run build:types"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@vuecs/core": "^3.2.
|
|
43
|
+
"@vuecs/core": "^3.2.2",
|
|
44
44
|
"@vuecs/icon": "^1.0.2",
|
|
45
45
|
"vue": "^3.5.38"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@vuecs/core": "^3.2.
|
|
48
|
+
"@vuecs/core": "^3.2.2",
|
|
49
49
|
"@vuecs/icon": "^1.0.2",
|
|
50
50
|
"vue": "^3.x"
|
|
51
51
|
},
|