@cyberpunk-vue/components 0.1.0 → 0.1.2

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 (207) hide show
  1. package/dist/avatar/index.d.ts +302 -0
  2. package/dist/avatar/index.d.ts.map +1 -0
  3. package/dist/avatar/src/avatar-group.d.ts +113 -0
  4. package/dist/avatar/src/avatar-group.d.ts.map +1 -0
  5. package/dist/avatar/src/avatar-group.vue.d.ts +87 -0
  6. package/dist/avatar/src/avatar-group.vue.d.ts.map +1 -0
  7. package/dist/avatar/src/avatar.d.ts +157 -0
  8. package/dist/avatar/src/avatar.d.ts.map +1 -0
  9. package/dist/avatar/src/avatar.vue.d.ts +127 -0
  10. package/dist/avatar/src/avatar.vue.d.ts.map +1 -0
  11. package/dist/avatar/src/instance.d.ts +5 -0
  12. package/dist/avatar/src/instance.d.ts.map +1 -0
  13. package/dist/button/index.d.ts +387 -0
  14. package/dist/button/index.d.ts.map +1 -0
  15. package/dist/button/src/button.d.ts +289 -0
  16. package/dist/button/src/button.d.ts.map +1 -0
  17. package/dist/button/src/button.vue.d.ts +225 -0
  18. package/dist/button/src/button.vue.d.ts.map +1 -0
  19. package/dist/button/src/instance.d.ts +3 -0
  20. package/dist/button/src/instance.d.ts.map +1 -0
  21. package/dist/card/index.d.ts +430 -0
  22. package/dist/card/index.d.ts.map +1 -0
  23. package/dist/card/src/card.d.ts +341 -0
  24. package/dist/card/src/card.d.ts.map +1 -0
  25. package/dist/card/src/card.vue.d.ts +256 -0
  26. package/dist/card/src/card.vue.d.ts.map +1 -0
  27. package/dist/card/src/instance.d.ts +3 -0
  28. package/dist/card/src/instance.d.ts.map +1 -0
  29. package/dist/checkbox/index.d.ts +230 -0
  30. package/dist/checkbox/index.d.ts.map +1 -0
  31. package/dist/checkbox/src/checkbox.d.ts +150 -0
  32. package/dist/checkbox/src/checkbox.d.ts.map +1 -0
  33. package/dist/checkbox/src/checkbox.vue.d.ts +136 -0
  34. package/dist/checkbox/src/checkbox.vue.d.ts.map +1 -0
  35. package/dist/checkbox/src/instance.d.ts +3 -0
  36. package/dist/checkbox/src/instance.d.ts.map +1 -0
  37. package/dist/checkbox-group/index.d.ts +169 -0
  38. package/dist/checkbox-group/index.d.ts.map +1 -0
  39. package/dist/checkbox-group/src/checkbox-group.d.ts +88 -0
  40. package/dist/checkbox-group/src/checkbox-group.d.ts.map +1 -0
  41. package/dist/checkbox-group/src/checkbox-group.vue.d.ts +94 -0
  42. package/dist/checkbox-group/src/checkbox-group.vue.d.ts.map +1 -0
  43. package/dist/checkbox-group/src/constants.d.ts +13 -0
  44. package/dist/checkbox-group/src/constants.d.ts.map +1 -0
  45. package/dist/checkbox-group/src/instance.d.ts +3 -0
  46. package/dist/checkbox-group/src/instance.d.ts.map +1 -0
  47. package/dist/config-provider/index.d.ts +76 -0
  48. package/dist/config-provider/index.d.ts.map +1 -0
  49. package/dist/config-provider/src/config-provider.d.ts +83 -0
  50. package/dist/config-provider/src/config-provider.d.ts.map +1 -0
  51. package/dist/config-provider/src/config-provider.vue.d.ts +39 -0
  52. package/dist/config-provider/src/config-provider.vue.d.ts.map +1 -0
  53. package/dist/config-provider/src/instance.d.ts +3 -0
  54. package/dist/config-provider/src/instance.d.ts.map +1 -0
  55. package/dist/dropdown/index.d.ts +391 -0
  56. package/dist/dropdown/index.d.ts.map +1 -0
  57. package/dist/dropdown/src/dropdown.d.ts +259 -0
  58. package/dist/dropdown/src/dropdown.d.ts.map +1 -0
  59. package/dist/dropdown/src/dropdown.vue.d.ts +232 -0
  60. package/dist/dropdown/src/dropdown.vue.d.ts.map +1 -0
  61. package/dist/dropdown/src/instance.d.ts +17 -0
  62. package/dist/dropdown/src/instance.d.ts.map +1 -0
  63. package/dist/icon/index.d.ts +132 -0
  64. package/dist/icon/index.d.ts.map +1 -0
  65. package/dist/icon/src/icon.d.ts +131 -0
  66. package/dist/icon/src/icon.d.ts.map +1 -0
  67. package/dist/icon/src/icon.vue.d.ts +75 -0
  68. package/dist/icon/src/icon.vue.d.ts.map +1 -0
  69. package/dist/image/index.d.ts +328 -0
  70. package/dist/image/index.d.ts.map +1 -0
  71. package/dist/image/src/image.d.ts +231 -0
  72. package/dist/image/src/image.d.ts.map +1 -0
  73. package/dist/image/src/image.vue.d.ts +206 -0
  74. package/dist/image/src/image.vue.d.ts.map +1 -0
  75. package/dist/image/src/instance.d.ts +3 -0
  76. package/dist/image/src/instance.d.ts.map +1 -0
  77. package/dist/index.cjs +1 -1
  78. package/dist/index.d.ts +25 -0
  79. package/dist/index.d.ts.map +1 -0
  80. package/dist/index.mjs +7 -6
  81. package/dist/input/index.d.ts +350 -0
  82. package/dist/input/index.d.ts.map +1 -0
  83. package/dist/input/src/input.d.ts +280 -0
  84. package/dist/input/src/input.d.ts.map +1 -0
  85. package/dist/input/src/input.vue.d.ts +197 -0
  86. package/dist/input/src/input.vue.d.ts.map +1 -0
  87. package/dist/input/src/instance.d.ts +3 -0
  88. package/dist/input/src/instance.d.ts.map +1 -0
  89. package/dist/input-number/index.d.ts +132 -0
  90. package/dist/input-number/index.d.ts.map +1 -0
  91. package/dist/input-number/src/input-number.d.ts +81 -0
  92. package/dist/input-number/src/input-number.d.ts.map +1 -0
  93. package/dist/input-number/src/input-number.vue.d.ts +130 -0
  94. package/dist/input-number/src/input-number.vue.d.ts.map +1 -0
  95. package/dist/input-number/src/instance.d.ts +3 -0
  96. package/dist/input-number/src/instance.d.ts.map +1 -0
  97. package/dist/loading/index.d.ts +58 -0
  98. package/dist/loading/index.d.ts.map +1 -0
  99. package/dist/loading/src/instance.d.ts +3 -0
  100. package/dist/loading/src/instance.d.ts.map +1 -0
  101. package/dist/loading/src/loading.d.ts +80 -0
  102. package/dist/loading/src/loading.d.ts.map +1 -0
  103. package/dist/loading/src/loading.vue.d.ts +42 -0
  104. package/dist/loading/src/loading.vue.d.ts.map +1 -0
  105. package/dist/pattern-background/index.d.ts +115 -0
  106. package/dist/pattern-background/index.d.ts.map +1 -0
  107. package/dist/pattern-background/src/instance.d.ts +3 -0
  108. package/dist/pattern-background/src/instance.d.ts.map +1 -0
  109. package/dist/pattern-background/src/pattern-background.d.ts +122 -0
  110. package/dist/pattern-background/src/pattern-background.d.ts.map +1 -0
  111. package/dist/pattern-background/src/pattern-background.vue.d.ts +96 -0
  112. package/dist/pattern-background/src/pattern-background.vue.d.ts.map +1 -0
  113. package/dist/popover/index.d.ts +5 -0
  114. package/dist/popover/index.d.ts.map +1 -0
  115. package/dist/popover/src/instance.d.ts +3 -0
  116. package/dist/popover/src/instance.d.ts.map +1 -0
  117. package/dist/popover/src/popover.d.ts +190 -0
  118. package/dist/popover/src/popover.d.ts.map +1 -0
  119. package/dist/popover/src/popover.vue.d.ts +189 -0
  120. package/dist/popover/src/popover.vue.d.ts.map +1 -0
  121. package/dist/progress/index.d.ts +380 -0
  122. package/dist/progress/index.d.ts.map +1 -0
  123. package/dist/progress/src/instance.d.ts +3 -0
  124. package/dist/progress/src/instance.d.ts.map +1 -0
  125. package/dist/progress/src/progress.d.ts +277 -0
  126. package/dist/progress/src/progress.d.ts.map +1 -0
  127. package/dist/progress/src/progress.vue.d.ts +224 -0
  128. package/dist/progress/src/progress.vue.d.ts.map +1 -0
  129. package/dist/radio/index.d.ts +188 -0
  130. package/dist/radio/index.d.ts.map +1 -0
  131. package/dist/radio/src/instance.d.ts +3 -0
  132. package/dist/radio/src/instance.d.ts.map +1 -0
  133. package/dist/radio/src/radio.d.ts +117 -0
  134. package/dist/radio/src/radio.d.ts.map +1 -0
  135. package/dist/radio/src/radio.vue.d.ts +108 -0
  136. package/dist/radio/src/radio.vue.d.ts.map +1 -0
  137. package/dist/radio-group/index.d.ts +154 -0
  138. package/dist/radio-group/index.d.ts.map +1 -0
  139. package/dist/radio-group/src/constants.d.ts +12 -0
  140. package/dist/radio-group/src/constants.d.ts.map +1 -0
  141. package/dist/radio-group/src/instance.d.ts +3 -0
  142. package/dist/radio-group/src/instance.d.ts.map +1 -0
  143. package/dist/radio-group/src/radio-group.d.ts +81 -0
  144. package/dist/radio-group/src/radio-group.d.ts.map +1 -0
  145. package/dist/radio-group/src/radio-group.vue.d.ts +85 -0
  146. package/dist/radio-group/src/radio-group.vue.d.ts.map +1 -0
  147. package/dist/slider/index.d.ts +169 -0
  148. package/dist/slider/index.d.ts.map +1 -0
  149. package/dist/slider/src/instance.d.ts +3 -0
  150. package/dist/slider/src/instance.d.ts.map +1 -0
  151. package/dist/slider/src/slider.d.ts +205 -0
  152. package/dist/slider/src/slider.d.ts.map +1 -0
  153. package/dist/slider/src/slider.vue.d.ts +153 -0
  154. package/dist/slider/src/slider.vue.d.ts.map +1 -0
  155. package/dist/spacer/index.d.ts +18 -0
  156. package/dist/spacer/index.d.ts.map +1 -0
  157. package/dist/spacer/src/spacer.d.ts +4 -0
  158. package/dist/spacer/src/spacer.d.ts.map +1 -0
  159. package/dist/spacer/src/spacer.vue.d.ts +3 -0
  160. package/dist/spacer/src/spacer.vue.d.ts.map +1 -0
  161. package/dist/status-indicator/index.d.ts +162 -0
  162. package/dist/status-indicator/index.d.ts.map +1 -0
  163. package/dist/status-indicator/src/instance.d.ts +3 -0
  164. package/dist/status-indicator/src/instance.d.ts.map +1 -0
  165. package/dist/status-indicator/src/status-indicator.d.ts +146 -0
  166. package/dist/status-indicator/src/status-indicator.d.ts.map +1 -0
  167. package/dist/status-indicator/src/status-indicator.vue.d.ts +102 -0
  168. package/dist/status-indicator/src/status-indicator.vue.d.ts.map +1 -0
  169. package/dist/switch/index.d.ts +148 -0
  170. package/dist/switch/index.d.ts.map +1 -0
  171. package/dist/switch/src/instance.d.ts +3 -0
  172. package/dist/switch/src/instance.d.ts.map +1 -0
  173. package/dist/switch/src/switch.d.ts +184 -0
  174. package/dist/switch/src/switch.d.ts.map +1 -0
  175. package/dist/switch/src/switch.vue.d.ts +133 -0
  176. package/dist/switch/src/switch.vue.d.ts.map +1 -0
  177. package/dist/tag/index.d.ts +212 -0
  178. package/dist/tag/index.d.ts.map +1 -0
  179. package/dist/tag/src/instance.d.ts +3 -0
  180. package/dist/tag/src/instance.d.ts.map +1 -0
  181. package/dist/tag/src/tag.d.ts +177 -0
  182. package/dist/tag/src/tag.d.ts.map +1 -0
  183. package/dist/tag/src/tag.vue.d.ts +121 -0
  184. package/dist/tag/src/tag.vue.d.ts.map +1 -0
  185. package/dist/text/index.d.ts +327 -0
  186. package/dist/text/index.d.ts.map +1 -0
  187. package/dist/text/src/instance.d.ts +3 -0
  188. package/dist/text/src/instance.d.ts.map +1 -0
  189. package/dist/text/src/text.d.ts +218 -0
  190. package/dist/text/src/text.d.ts.map +1 -0
  191. package/dist/text/src/text.vue.d.ts +194 -0
  192. package/dist/text/src/text.vue.d.ts.map +1 -0
  193. package/dist/textarea/index.d.ts +143 -0
  194. package/dist/textarea/index.d.ts.map +1 -0
  195. package/dist/textarea/src/instance.d.ts +3 -0
  196. package/dist/textarea/src/instance.d.ts.map +1 -0
  197. package/dist/textarea/src/textarea.d.ts +89 -0
  198. package/dist/textarea/src/textarea.d.ts.map +1 -0
  199. package/dist/textarea/src/textarea.vue.d.ts +157 -0
  200. package/dist/textarea/src/textarea.vue.d.ts.map +1 -0
  201. package/dist/utils/index.d.ts +2 -0
  202. package/dist/utils/index.d.ts.map +1 -0
  203. package/dist/utils/install.d.ts +7 -0
  204. package/dist/utils/install.d.ts.map +1 -0
  205. package/dist/vite.config.d.ts +3 -0
  206. package/dist/vite.config.d.ts.map +1 -0
  207. package/package.json +4 -4
@@ -0,0 +1,289 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { Size } from '../../../hooks';
3
+ /**
4
+ * 按钮颜色类型
5
+ * - `primary` - 主要操作,强调色(赛博蓝)
6
+ * - `success` - 成功/确认操作(霓虹绿)
7
+ * - `warning` - 警告/需注意的操作(赛博黄)
8
+ * - `error` - 危险/删除操作(霓虹红)
9
+ * - `info` - 信息性操作(中性蓝)
10
+ * - `default` - 默认样式,中性色
11
+ */
12
+ export type ButtonType = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'default';
13
+ /**
14
+ * 按钮尺寸
15
+ * - `sm` - 小尺寸 (24px 高)
16
+ * - `md` - 中等尺寸 (32px 高),默认
17
+ * - `lg` - 大尺寸 (40px 高)
18
+ * - 也支持数字 (px) 或带单位字符串 (如 '2rem')
19
+ */
20
+ export type ButtonSize = Size;
21
+ /**
22
+ * 按钮变体/形态
23
+ * - `solid` - 实心填充,最强视觉权重
24
+ * - `outline` - 边框样式,次级操作
25
+ * - `ghost` - 透明背景,悬停显示
26
+ * - `neon` - 霓虹发光效果,高亮操作
27
+ * - `semi` - 半透明背景,柔和风格
28
+ */
29
+ export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'neon' | 'semi';
30
+ /**
31
+ * CpButton 组件 Props 定义
32
+ *
33
+ * @description 赛博朋克风格按钮组件,支持多种颜色、尺寸、形态变体。
34
+ *
35
+ * @example
36
+ * ```vue
37
+ * <!-- 基础用法 -->
38
+ * <CpButton type="primary">确认</CpButton>
39
+ *
40
+ * <!-- 带图标 -->
41
+ * <CpButton type="success">
42
+ * <template #prefix><CpIcon icon="mdi:check" /></template>
43
+ * 保存
44
+ * </CpButton>
45
+ *
46
+ * <!-- 加载状态 -->
47
+ * <CpButton :loading="isLoading" loading-placeholder>提交</CpButton>
48
+ *
49
+ * <!-- 自定义颜色 -->
50
+ * <CpButton color="#ff00ff">自定义</CpButton>
51
+ * ```
52
+ *
53
+ * @slots
54
+ * - `default` - 按钮文本内容
55
+ * - `prefix` - 前缀图标插槽,加载时自动隐藏
56
+ * - `suffix` - 后缀图标插槽
57
+ */
58
+ export declare const buttonProps: {
59
+ /**
60
+ * 按钮颜色类型
61
+ * @default 'default'
62
+ * @example `<CpButton type="primary">主要按钮</CpButton>`
63
+ */
64
+ readonly type: {
65
+ readonly type: PropType<ButtonType>;
66
+ readonly default: "default";
67
+ };
68
+ /**
69
+ * 按钮尺寸
70
+ * @default 'md'
71
+ * @example `<CpButton size="lg">大按钮</CpButton>`
72
+ */
73
+ readonly size: {
74
+ readonly type: PropType<ButtonSize>;
75
+ readonly default: "md";
76
+ };
77
+ /**
78
+ * 按钮变体/形态
79
+ * @default 'solid'
80
+ * @example `<CpButton variant="neon">霓虹按钮</CpButton>`
81
+ */
82
+ readonly variant: {
83
+ readonly type: PropType<ButtonVariant>;
84
+ readonly default: "solid";
85
+ };
86
+ /**
87
+ * 是否禁用按钮
88
+ * 禁用后按钮不可点击,样式变为灰色
89
+ * @default false
90
+ */
91
+ readonly disabled: {
92
+ readonly type: BooleanConstructor;
93
+ readonly default: false;
94
+ };
95
+ /**
96
+ * 是否显示加载状态
97
+ * 加载时会显示 Loading 动画,按钮不可点击
98
+ * @default false
99
+ */
100
+ readonly loading: {
101
+ readonly type: BooleanConstructor;
102
+ readonly default: false;
103
+ };
104
+ /**
105
+ * 是否为块级按钮
106
+ * 块级按钮会占满父容器宽度
107
+ * @default false
108
+ */
109
+ readonly block: {
110
+ readonly type: BooleanConstructor;
111
+ readonly default: false;
112
+ };
113
+ /**
114
+ * 原生 button type 属性
115
+ * - `button` - 普通按钮(默认)
116
+ * - `submit` - 表单提交按钮
117
+ * - `reset` - 表单重置按钮
118
+ * @default 'button'
119
+ */
120
+ readonly nativeType: {
121
+ readonly type: PropType<"button" | "submit" | "reset">;
122
+ readonly default: "button";
123
+ };
124
+ /**
125
+ * 自定义按钮颜色
126
+ * 传入有效 CSS 颜色值会覆盖 `type` 的预设颜色
127
+ * @default ''
128
+ * @example `<CpButton color="#ff00ff">紫色按钮</CpButton>`
129
+ */
130
+ readonly color: {
131
+ readonly type: StringConstructor;
132
+ readonly default: "";
133
+ };
134
+ /**
135
+ * 按钮形状
136
+ * - `clip` - 切角样式(默认,赛博朋克特色)
137
+ * - `no-clip` - 直角矩形
138
+ * - `round` - 圆角矩形
139
+ * - `circle` - 胶囊形状(完全圆角)
140
+ * @default 'clip'
141
+ */
142
+ readonly shape: {
143
+ readonly type: PropType<"clip" | "no-clip" | "round" | "circle">;
144
+ readonly default: "clip";
145
+ };
146
+ /**
147
+ * 是否使用虚线边框
148
+ * 仅在 `variant="outline"` 时生效
149
+ * @default false
150
+ */
151
+ readonly dashed: {
152
+ readonly type: BooleanConstructor;
153
+ readonly default: false;
154
+ };
155
+ /**
156
+ * 是否为 Loading 预留空间
157
+ * 开启后按钮宽度固定,Loading 出现/消失时不会导致布局抖动
158
+ * @default false
159
+ * @example `<CpButton :loading="loading" loading-placeholder>提交</CpButton>`
160
+ */
161
+ readonly loadingPlaceholder: {
162
+ readonly type: BooleanConstructor;
163
+ readonly default: false;
164
+ };
165
+ /**
166
+ * 加载时是否同时禁用按钮
167
+ * 设为 true 后,loading 状态下按钮会显示禁用样式
168
+ * @default false
169
+ */
170
+ readonly loadingDisabled: {
171
+ readonly type: BooleanConstructor;
172
+ readonly default: false;
173
+ };
174
+ /**
175
+ * 自定义文字颜色
176
+ * 传入有效 CSS 颜色值会覆盖默认的文字颜色
177
+ * @default ''
178
+ * @example `<CpButton type="success" text-color="#000">黑色文字</CpButton>`
179
+ */
180
+ readonly textColor: {
181
+ readonly type: StringConstructor;
182
+ readonly default: "";
183
+ };
184
+ /**
185
+ * 图标组件 (用于纯图标按钮)
186
+ * 传入图标组件后按钮将变为正方形图标按钮
187
+ * @default undefined
188
+ * @example `<CpButton :icon="MdiHome" />`
189
+ */
190
+ readonly icon: {
191
+ readonly type: PropType<object>;
192
+ readonly default: undefined;
193
+ };
194
+ /**
195
+ * 图标颜色
196
+ * 用于控制所有图标(icon、prefixIcon、suffixIcon)的默认颜色
197
+ * 优先级:prefixIconColor/suffixIconColor > iconColor > textColor
198
+ * @default ''
199
+ * @example `<CpButton :icon="MdiHome" icon-color="#ff0000" />`
200
+ */
201
+ readonly iconColor: {
202
+ readonly type: StringConstructor;
203
+ readonly default: "";
204
+ };
205
+ /**
206
+ * 前缀图标组件
207
+ * 快捷传入前缀图标,不使用 #prefix slot
208
+ * @default undefined
209
+ * @example `<CpButton :prefix-icon="MdiHome">首页</CpButton>`
210
+ */
211
+ readonly prefixIcon: {
212
+ readonly type: PropType<object>;
213
+ readonly default: undefined;
214
+ };
215
+ /**
216
+ * 后缀图标组件
217
+ * 快捷传入后缀图标,不使用 #suffix slot
218
+ * @default undefined
219
+ * @example `<CpButton :suffix-icon="MdiArrowRight">下一步</CpButton>`
220
+ */
221
+ readonly suffixIcon: {
222
+ readonly type: PropType<object>;
223
+ readonly default: undefined;
224
+ };
225
+ /**
226
+ * 前缀图标颜色
227
+ * 优先级:prefixIconColor > iconColor > textColor
228
+ * @default ''
229
+ * @example `<CpButton :prefix-icon="MdiHome" prefix-icon-color="#00f0ff">首页</CpButton>`
230
+ */
231
+ readonly prefixIconColor: {
232
+ readonly type: StringConstructor;
233
+ readonly default: "";
234
+ };
235
+ /**
236
+ * 后缀图标颜色
237
+ * 优先级:suffixIconColor > iconColor > textColor
238
+ * @default ''
239
+ * @example `<CpButton :suffix-icon="MdiArrowRight" suffix-icon-color="#00ff00">下一步</CpButton>`
240
+ */
241
+ readonly suffixIconColor: {
242
+ readonly type: StringConstructor;
243
+ readonly default: "";
244
+ };
245
+ /**
246
+ * 图标尺寸
247
+ * 优先级:prefixIconSize/suffixIconSize > iconSize > (与按钮尺寸同步)
248
+ * @default ''
249
+ * @example `<CpButton :icon="MdiHome" icon-size="24px" />`
250
+ */
251
+ readonly iconSize: {
252
+ readonly type: PropType<ButtonSize>;
253
+ readonly default: "";
254
+ };
255
+ /**
256
+ * 前缀图标尺寸
257
+ * 优先级:prefixIconSize > iconSize > (与按钮尺寸同步)
258
+ * @default ''
259
+ */
260
+ readonly prefixIconSize: {
261
+ readonly type: PropType<ButtonSize>;
262
+ readonly default: "";
263
+ };
264
+ /**
265
+ * 后缀图标尺寸
266
+ * 优先级:suffixIconSize > iconSize > (与按钮尺寸同步)
267
+ * @default ''
268
+ */
269
+ readonly suffixIconSize: {
270
+ readonly type: PropType<ButtonSize>;
271
+ readonly default: "";
272
+ };
273
+ };
274
+ export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
275
+ /**
276
+ * CpButton 组件事件定义
277
+ *
278
+ * @event click - 点击按钮时触发(disabled 或 loading 状态下不触发)
279
+ */
280
+ export declare const buttonEmits: {
281
+ /**
282
+ * 点击按钮时触发
283
+ * @param evt - 原生 MouseEvent 对象
284
+ * @example `<CpButton @click="handleClick">点击</CpButton>`
285
+ */
286
+ click: (evt: MouseEvent) => boolean;
287
+ };
288
+ export type ButtonEmits = typeof buttonEmits;
289
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../button/src/button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAA;AAE7B;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,WAAW;IACpB;;;;OAIG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;OAIG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;OAIG;;uBAEiB,QAAQ,CAAC,aAAa,CAAC;;;IAG3C;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;;;OAMG;;uBAEiB,QAAQ,CAAC,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;;;IAG3D;;;;;OAKG;;;;;IAKH;;;;;;;OAOG;;uBAEiB,QAAQ,CAAC,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;;;IAGrE;;;;OAIG;;;;;IAKH;;;;;OAKG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;;OAKG;;;;;IAKH;;;;;OAKG;;uBAEiB,QAAQ,CAAC,MAAM,CAAC;;;IAGpC;;;;;;OAMG;;;;;IAKH;;;;;OAKG;;uBAEiB,QAAQ,CAAC,MAAM,CAAC;;;IAGpC;;;;;OAKG;;uBAEiB,QAAQ,CAAC,MAAM,CAAC;;;IAGpC;;;;;OAKG;;;;;IAKH;;;;;OAKG;;;;;IAKH;;;;;OAKG;;uBAE2B,QAAQ,CAAC,UAAU,CAAC;;;IAGlD;;;;OAIG;;uBAE2B,QAAQ,CAAC,UAAU,CAAC;;;IAGlD;;;;OAIG;;uBAE2B,QAAQ,CAAC,UAAU,CAAC;;;CAG5C,CAAA;AAGV,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,WAAW,CAAC,CAAA;AAE9D;;;;GAIG;AACH,eAAO,MAAM,WAAW;IACpB;;;;OAIG;iBACU,UAAU;CAC1B,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA"}
@@ -0,0 +1,225 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ prefix?(_: {}): any;
5
+ default?(_: {}): any;
6
+ suffix?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLButtonElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
13
+ readonly type: {
14
+ readonly type: import('vue').PropType<import('./button').ButtonType>;
15
+ readonly default: "default";
16
+ };
17
+ readonly size: {
18
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
19
+ readonly default: "md";
20
+ };
21
+ readonly variant: {
22
+ readonly type: import('vue').PropType<import('./button').ButtonVariant>;
23
+ readonly default: "solid";
24
+ };
25
+ readonly disabled: {
26
+ readonly type: BooleanConstructor;
27
+ readonly default: false;
28
+ };
29
+ readonly loading: {
30
+ readonly type: BooleanConstructor;
31
+ readonly default: false;
32
+ };
33
+ readonly block: {
34
+ readonly type: BooleanConstructor;
35
+ readonly default: false;
36
+ };
37
+ readonly nativeType: {
38
+ readonly type: import('vue').PropType<"button" | "submit" | "reset">;
39
+ readonly default: "button";
40
+ };
41
+ readonly color: {
42
+ readonly type: StringConstructor;
43
+ readonly default: "";
44
+ };
45
+ readonly shape: {
46
+ readonly type: import('vue').PropType<"clip" | "no-clip" | "round" | "circle">;
47
+ readonly default: "clip";
48
+ };
49
+ readonly dashed: {
50
+ readonly type: BooleanConstructor;
51
+ readonly default: false;
52
+ };
53
+ readonly loadingPlaceholder: {
54
+ readonly type: BooleanConstructor;
55
+ readonly default: false;
56
+ };
57
+ readonly loadingDisabled: {
58
+ readonly type: BooleanConstructor;
59
+ readonly default: false;
60
+ };
61
+ readonly textColor: {
62
+ readonly type: StringConstructor;
63
+ readonly default: "";
64
+ };
65
+ readonly icon: {
66
+ readonly type: import('vue').PropType<object>;
67
+ readonly default: undefined;
68
+ };
69
+ readonly iconColor: {
70
+ readonly type: StringConstructor;
71
+ readonly default: "";
72
+ };
73
+ readonly prefixIcon: {
74
+ readonly type: import('vue').PropType<object>;
75
+ readonly default: undefined;
76
+ };
77
+ readonly suffixIcon: {
78
+ readonly type: import('vue').PropType<object>;
79
+ readonly default: undefined;
80
+ };
81
+ readonly prefixIconColor: {
82
+ readonly type: StringConstructor;
83
+ readonly default: "";
84
+ };
85
+ readonly suffixIconColor: {
86
+ readonly type: StringConstructor;
87
+ readonly default: "";
88
+ };
89
+ readonly iconSize: {
90
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
91
+ readonly default: "";
92
+ };
93
+ readonly prefixIconSize: {
94
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
95
+ readonly default: "";
96
+ };
97
+ readonly suffixIconSize: {
98
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
99
+ readonly default: "";
100
+ };
101
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
102
+ click: (evt: MouseEvent) => void;
103
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
104
+ readonly type: {
105
+ readonly type: import('vue').PropType<import('./button').ButtonType>;
106
+ readonly default: "default";
107
+ };
108
+ readonly size: {
109
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
110
+ readonly default: "md";
111
+ };
112
+ readonly variant: {
113
+ readonly type: import('vue').PropType<import('./button').ButtonVariant>;
114
+ readonly default: "solid";
115
+ };
116
+ readonly disabled: {
117
+ readonly type: BooleanConstructor;
118
+ readonly default: false;
119
+ };
120
+ readonly loading: {
121
+ readonly type: BooleanConstructor;
122
+ readonly default: false;
123
+ };
124
+ readonly block: {
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 color: {
133
+ readonly type: StringConstructor;
134
+ readonly default: "";
135
+ };
136
+ readonly shape: {
137
+ readonly type: import('vue').PropType<"clip" | "no-clip" | "round" | "circle">;
138
+ readonly default: "clip";
139
+ };
140
+ readonly dashed: {
141
+ readonly type: BooleanConstructor;
142
+ readonly default: false;
143
+ };
144
+ readonly loadingPlaceholder: {
145
+ readonly type: BooleanConstructor;
146
+ readonly default: false;
147
+ };
148
+ readonly loadingDisabled: {
149
+ readonly type: BooleanConstructor;
150
+ readonly default: false;
151
+ };
152
+ readonly textColor: {
153
+ readonly type: StringConstructor;
154
+ readonly default: "";
155
+ };
156
+ readonly icon: {
157
+ readonly type: import('vue').PropType<object>;
158
+ readonly default: undefined;
159
+ };
160
+ readonly iconColor: {
161
+ readonly type: StringConstructor;
162
+ readonly default: "";
163
+ };
164
+ readonly prefixIcon: {
165
+ readonly type: import('vue').PropType<object>;
166
+ readonly default: undefined;
167
+ };
168
+ readonly suffixIcon: {
169
+ readonly type: import('vue').PropType<object>;
170
+ readonly default: undefined;
171
+ };
172
+ readonly prefixIconColor: {
173
+ readonly type: StringConstructor;
174
+ readonly default: "";
175
+ };
176
+ readonly suffixIconColor: {
177
+ readonly type: StringConstructor;
178
+ readonly default: "";
179
+ };
180
+ readonly iconSize: {
181
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
182
+ readonly default: "";
183
+ };
184
+ readonly prefixIconSize: {
185
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
186
+ readonly default: "";
187
+ };
188
+ readonly suffixIconSize: {
189
+ readonly type: import('vue').PropType<import('./button').ButtonSize>;
190
+ readonly default: "";
191
+ };
192
+ }>> & Readonly<{
193
+ onClick?: ((evt: MouseEvent) => any) | undefined;
194
+ }>, {
195
+ readonly size: import('../../../hooks').Size;
196
+ readonly type: import('./button').ButtonType;
197
+ readonly variant: import('./button').ButtonVariant;
198
+ readonly disabled: boolean;
199
+ readonly loading: boolean;
200
+ readonly block: boolean;
201
+ readonly nativeType: "button" | "submit" | "reset";
202
+ readonly color: string;
203
+ readonly shape: "clip" | "no-clip" | "round" | "circle";
204
+ readonly dashed: boolean;
205
+ readonly loadingPlaceholder: boolean;
206
+ readonly loadingDisabled: boolean;
207
+ readonly textColor: string;
208
+ readonly icon: object;
209
+ readonly iconColor: string;
210
+ readonly prefixIcon: object;
211
+ readonly suffixIcon: object;
212
+ readonly prefixIconColor: string;
213
+ readonly suffixIconColor: string;
214
+ readonly iconSize: import('../../../hooks').Size;
215
+ readonly prefixIconSize: import('../../../hooks').Size;
216
+ readonly suffixIconSize: import('../../../hooks').Size;
217
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
218
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
219
+ export default _default;
220
+ type __VLS_WithTemplateSlots<T, S> = T & {
221
+ new (): {
222
+ $slots: S;
223
+ };
224
+ };
225
+ //# sourceMappingURL=button.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../button/src/button.vue"],"names":[],"mappings":"AAqRA,iBAAS,cAAc;WAyJT,OAAO,IAA6B;;wBAZrB,GAAG;yBACF,GAAG;wBACJ,GAAG;;;;EAe/B;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { default as Button } from './button.vue';
2
+ export type ButtonInstance = InstanceType<typeof Button> & unknown;
3
+ //# sourceMappingURL=instance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../button/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAEtC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,MAAM,CAAC,GAAG,OAAO,CAAA"}