@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.
@@ -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: any;
13
+ default: undefined;
14
14
  };
15
15
  variant: {
16
16
  type: PropType<ButtonVariant>;
17
- default: any;
17
+ default: undefined;
18
18
  };
19
19
  size: {
20
20
  type: PropType<ButtonSize>;
21
- default: any;
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: any;
45
+ default: undefined;
46
46
  };
47
47
  label: {
48
48
  type: StringConstructor;
49
- default: any;
49
+ default: undefined;
50
50
  };
51
51
  iconLeft: {
52
52
  type: StringConstructor;
53
- default: any;
53
+ default: undefined;
54
54
  };
55
55
  iconRight: {
56
56
  type: StringConstructor;
57
- default: any;
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: any;
69
+ default: undefined;
70
70
  };
71
71
  themeVariant: {
72
72
  type: PropType<VariantValues>;
73
- default: any;
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: any;
80
+ default: undefined;
81
81
  };
82
82
  variant: {
83
83
  type: PropType<ButtonVariant>;
84
- default: any;
84
+ default: undefined;
85
85
  };
86
86
  size: {
87
87
  type: PropType<ButtonSize>;
88
- default: any;
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: any;
112
+ default: undefined;
113
113
  };
114
114
  label: {
115
115
  type: StringConstructor;
116
- default: any;
116
+ default: undefined;
117
117
  };
118
118
  iconLeft: {
119
119
  type: StringConstructor;
120
- default: any;
120
+ default: undefined;
121
121
  };
122
122
  iconRight: {
123
123
  type: StringConstructor;
124
- default: any;
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: any;
136
+ default: undefined;
137
137
  };
138
138
  themeVariant: {
139
139
  type: PropType<VariantValues>;
140
- default: any;
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: any;
147
+ default: undefined;
148
148
  };
149
149
  variant: {
150
150
  type: PropType<ButtonVariant>;
151
- default: any;
151
+ default: undefined;
152
152
  };
153
153
  size: {
154
154
  type: PropType<ButtonSize>;
155
- default: any;
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: any;
179
+ default: undefined;
180
180
  };
181
181
  label: {
182
182
  type: StringConstructor;
183
- default: any;
183
+ default: undefined;
184
184
  };
185
185
  iconLeft: {
186
186
  type: StringConstructor;
187
- default: any;
187
+ default: undefined;
188
188
  };
189
189
  iconRight: {
190
190
  type: StringConstructor;
191
- default: any;
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: any;
203
+ default: undefined;
204
204
  };
205
205
  themeVariant: {
206
206
  type: PropType<VariantValues>;
207
- default: any;
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: any;
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;
@@ -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;AAE5C,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"}
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.1.0",
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.1",
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.1",
48
+ "@vuecs/core": "^3.2.2",
49
49
  "@vuecs/icon": "^1.0.2",
50
50
  "vue": "^3.x"
51
51
  },