@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,205 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { Size } from '../../../hooks';
3
+ /**
4
+ * 滑块尺寸
5
+ * - `sm` - 小尺寸 (轨道高度 4px)
6
+ * - `md` - 中等尺寸 (轨道高度 6px),默认
7
+ * - `lg` - 大尺寸 (轨道高度 8px)
8
+ * - 也支持数字 (px) 或带单位字符串 (如 '2rem')
9
+ */
10
+ export type SliderSize = Size;
11
+ /**
12
+ * 滑块形状
13
+ * - `clip` - 切角样式(默认,赛博朋克特色)
14
+ * - `no-clip` - 直角矩形
15
+ * - `round` - 圆角矩形
16
+ */
17
+ export type SliderShape = 'clip' | 'no-clip' | 'round';
18
+ /**
19
+ * 刻度标记配置
20
+ */
21
+ export interface SliderMarkConfig {
22
+ /** 标签样式 */
23
+ style?: Record<string, string>;
24
+ /** 标签文本 */
25
+ label?: string;
26
+ }
27
+ /**
28
+ * 刻度标记映射
29
+ */
30
+ export type SliderMarks = Record<number, string | SliderMarkConfig>;
31
+ /**
32
+ * CpSlider 组件 Props 定义
33
+ *
34
+ * @description 赛博朋克风格滑块组件,用于在给定的数值范围内进行选择。
35
+ *
36
+ * @example
37
+ * ```vue
38
+ * <!-- 基础用法 -->
39
+ * <CpSlider v-model="value" />
40
+ *
41
+ * <!-- 范围选择 -->
42
+ * <CpSlider v-model="range" range />
43
+ *
44
+ * <!-- 带刻度标记 -->
45
+ * <CpSlider v-model="value" :marks="{ 0: '0°C', 100: '100°C' }" />
46
+ * ```
47
+ */
48
+ export declare const sliderProps: {
49
+ /**
50
+ * 绑定值 (v-model)
51
+ * 普通模式为 number,范围模式为 [number, number]
52
+ * @default 0
53
+ */
54
+ readonly modelValue: {
55
+ readonly type: PropType<number | [number, number]>;
56
+ readonly default: 0;
57
+ };
58
+ /**
59
+ * 最小值
60
+ * @default 0
61
+ */
62
+ readonly min: {
63
+ readonly type: NumberConstructor;
64
+ readonly default: 0;
65
+ };
66
+ /**
67
+ * 最大值
68
+ * @default 100
69
+ */
70
+ readonly max: {
71
+ readonly type: NumberConstructor;
72
+ readonly default: 100;
73
+ };
74
+ /**
75
+ * 步长
76
+ * @default 1
77
+ */
78
+ readonly step: {
79
+ readonly type: NumberConstructor;
80
+ readonly default: 1;
81
+ };
82
+ /**
83
+ * 滑块尺寸
84
+ * @default 'md'
85
+ */
86
+ readonly size: {
87
+ readonly type: PropType<SliderSize>;
88
+ readonly default: "md";
89
+ };
90
+ /**
91
+ * 滑块形状
92
+ * - `clip` - 切角样式(赛博朋克特色)
93
+ * - `no-clip` - 直角矩形
94
+ * - `round` - 圆角矩形
95
+ * @default 'clip'
96
+ */
97
+ readonly shape: {
98
+ readonly type: PropType<SliderShape>;
99
+ readonly default: "clip";
100
+ };
101
+ /**
102
+ * 是否禁用
103
+ * @default false
104
+ */
105
+ readonly disabled: {
106
+ readonly type: BooleanConstructor;
107
+ readonly default: false;
108
+ };
109
+ /**
110
+ * 是否为范围选择模式
111
+ * 开启后 modelValue 类型变为 [number, number]
112
+ * @default false
113
+ */
114
+ readonly range: {
115
+ readonly type: BooleanConstructor;
116
+ readonly default: false;
117
+ };
118
+ /**
119
+ * 是否显示数值提示
120
+ * @default true
121
+ */
122
+ readonly showTooltip: {
123
+ readonly type: BooleanConstructor;
124
+ readonly default: true;
125
+ };
126
+ /**
127
+ * 是否显示刻度点
128
+ * 仅在 step 大于 1 时有效
129
+ * @default false
130
+ */
131
+ readonly showStops: {
132
+ readonly type: BooleanConstructor;
133
+ readonly default: false;
134
+ };
135
+ /**
136
+ * 标记刻度
137
+ * key 为数值,value 为标签文本或配置对象
138
+ * @example `{ 0: '低', 50: '中', 100: '高' }`
139
+ */
140
+ readonly marks: {
141
+ readonly type: PropType<SliderMarks>;
142
+ readonly default: undefined;
143
+ };
144
+ /**
145
+ * 自定义颜色
146
+ * 传入有效 CSS 颜色值,覆盖默认的主题色
147
+ * @default ''
148
+ */
149
+ readonly color: {
150
+ readonly type: StringConstructor;
151
+ readonly default: "";
152
+ };
153
+ /**
154
+ * 是否垂直模式
155
+ * @default false
156
+ */
157
+ readonly vertical: {
158
+ readonly type: BooleanConstructor;
159
+ readonly default: false;
160
+ };
161
+ /**
162
+ * 滑块高度(垂直模式必需)
163
+ * @default undefined
164
+ */
165
+ readonly height: {
166
+ readonly type: StringConstructor;
167
+ readonly default: undefined;
168
+ };
169
+ /**
170
+ * 格式化 tooltip 显示内容
171
+ * @param value - 当前值
172
+ * @returns 格式化后的字符串
173
+ */
174
+ readonly formatTooltip: {
175
+ readonly type: PropType<(value: number) => string>;
176
+ readonly default: undefined;
177
+ };
178
+ };
179
+ export type SliderProps = ExtractPropTypes<typeof sliderProps>;
180
+ /**
181
+ * CpSlider 组件事件定义
182
+ *
183
+ * @event update:modelValue - 值变化时触发 (用于 v-model)
184
+ * @event change - 值改变且释放滑块时触发
185
+ * @event input - 拖动过程中实时触发
186
+ */
187
+ export declare const sliderEmits: {
188
+ /**
189
+ * 值变化时触发 (v-model 绑定)
190
+ * @param value - 新的值
191
+ */
192
+ 'update:modelValue': (value: number | [number, number]) => boolean;
193
+ /**
194
+ * 值改变且释放滑块时触发
195
+ * @param value - 确认的值
196
+ */
197
+ change: (value: number | [number, number]) => boolean;
198
+ /**
199
+ * 拖动过程中实时触发
200
+ * @param value - 当前值
201
+ */
202
+ input: (value: number | [number, number]) => boolean;
203
+ };
204
+ export type SliderEmits = typeof sliderEmits;
205
+ //# sourceMappingURL=slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../slider/src/slider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAA;AAE7B;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AAEtD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAAC,CAAA;AAEnE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW;IACpB;;;;OAIG;;uBAE0B,QAAQ,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;IAGhE;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;uBAEiB,QAAQ,CAAC,UAAU,CAAC;;;IAGxC;;;;;;OAMG;;uBAEiB,QAAQ,CAAC,WAAW,CAAC;;;IAGzC;;;OAGG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;uBAEiB,QAAQ,CAAC,WAAW,CAAC;;;IAGzC;;;;OAIG;;;;;IAKH;;;OAGG;;;;;IAKH;;;OAGG;;;;;IAKH;;;;OAIG;;uBAEmB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;;;CAGnD,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,WAAW,CAAC,CAAA;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;IACpB;;;OAGG;iCAC0B,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAGtD;;;OAGG;oBACa,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAGzC;;;OAGG;mBACY,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;CAE3C,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA"}
@@ -0,0 +1,153 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ readonly modelValue: {
3
+ readonly type: import('vue').PropType<number | [number, number]>;
4
+ readonly default: 0;
5
+ };
6
+ readonly min: {
7
+ readonly type: NumberConstructor;
8
+ readonly default: 0;
9
+ };
10
+ readonly max: {
11
+ readonly type: NumberConstructor;
12
+ readonly default: 100;
13
+ };
14
+ readonly step: {
15
+ readonly type: NumberConstructor;
16
+ readonly default: 1;
17
+ };
18
+ readonly size: {
19
+ readonly type: import('vue').PropType<import('./slider').SliderSize>;
20
+ readonly default: "md";
21
+ };
22
+ readonly shape: {
23
+ readonly type: import('vue').PropType<import('./slider').SliderShape>;
24
+ readonly default: "clip";
25
+ };
26
+ readonly disabled: {
27
+ readonly type: BooleanConstructor;
28
+ readonly default: false;
29
+ };
30
+ readonly range: {
31
+ readonly type: BooleanConstructor;
32
+ readonly default: false;
33
+ };
34
+ readonly showTooltip: {
35
+ readonly type: BooleanConstructor;
36
+ readonly default: true;
37
+ };
38
+ readonly showStops: {
39
+ readonly type: BooleanConstructor;
40
+ readonly default: false;
41
+ };
42
+ readonly marks: {
43
+ readonly type: import('vue').PropType<import('./slider').SliderMarks>;
44
+ readonly default: undefined;
45
+ };
46
+ readonly color: {
47
+ readonly type: StringConstructor;
48
+ readonly default: "";
49
+ };
50
+ readonly vertical: {
51
+ readonly type: BooleanConstructor;
52
+ readonly default: false;
53
+ };
54
+ readonly height: {
55
+ readonly type: StringConstructor;
56
+ readonly default: undefined;
57
+ };
58
+ readonly formatTooltip: {
59
+ readonly type: import('vue').PropType<(value: number) => string>;
60
+ readonly default: undefined;
61
+ };
62
+ }>, {
63
+ sliderRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
64
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
65
+ input: (value: number | [number, number]) => void;
66
+ "update:modelValue": (value: number | [number, number]) => void;
67
+ change: (value: number | [number, number]) => void;
68
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
69
+ readonly modelValue: {
70
+ readonly type: import('vue').PropType<number | [number, number]>;
71
+ readonly default: 0;
72
+ };
73
+ readonly min: {
74
+ readonly type: NumberConstructor;
75
+ readonly default: 0;
76
+ };
77
+ readonly max: {
78
+ readonly type: NumberConstructor;
79
+ readonly default: 100;
80
+ };
81
+ readonly step: {
82
+ readonly type: NumberConstructor;
83
+ readonly default: 1;
84
+ };
85
+ readonly size: {
86
+ readonly type: import('vue').PropType<import('./slider').SliderSize>;
87
+ readonly default: "md";
88
+ };
89
+ readonly shape: {
90
+ readonly type: import('vue').PropType<import('./slider').SliderShape>;
91
+ readonly default: "clip";
92
+ };
93
+ readonly disabled: {
94
+ readonly type: BooleanConstructor;
95
+ readonly default: false;
96
+ };
97
+ readonly range: {
98
+ readonly type: BooleanConstructor;
99
+ readonly default: false;
100
+ };
101
+ readonly showTooltip: {
102
+ readonly type: BooleanConstructor;
103
+ readonly default: true;
104
+ };
105
+ readonly showStops: {
106
+ readonly type: BooleanConstructor;
107
+ readonly default: false;
108
+ };
109
+ readonly marks: {
110
+ readonly type: import('vue').PropType<import('./slider').SliderMarks>;
111
+ readonly default: undefined;
112
+ };
113
+ readonly color: {
114
+ readonly type: StringConstructor;
115
+ readonly default: "";
116
+ };
117
+ readonly vertical: {
118
+ readonly type: BooleanConstructor;
119
+ readonly default: false;
120
+ };
121
+ readonly height: {
122
+ readonly type: StringConstructor;
123
+ readonly default: undefined;
124
+ };
125
+ readonly formatTooltip: {
126
+ readonly type: import('vue').PropType<(value: number) => string>;
127
+ readonly default: undefined;
128
+ };
129
+ }>> & Readonly<{
130
+ onInput?: ((value: number | [number, number]) => any) | undefined;
131
+ "onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
132
+ onChange?: ((value: number | [number, number]) => any) | undefined;
133
+ }>, {
134
+ readonly size: import('../../../hooks').Size;
135
+ readonly disabled: boolean;
136
+ readonly color: string;
137
+ readonly shape: import('./slider').SliderShape;
138
+ readonly height: string;
139
+ readonly modelValue: number | [number, number];
140
+ readonly range: boolean;
141
+ readonly min: number;
142
+ readonly max: number;
143
+ readonly step: number;
144
+ readonly showTooltip: boolean;
145
+ readonly showStops: boolean;
146
+ readonly marks: import('./slider').SliderMarks;
147
+ readonly vertical: boolean;
148
+ readonly formatTooltip: (value: number) => string;
149
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
150
+ sliderRef: HTMLDivElement;
151
+ }, HTMLDivElement>;
152
+ export default _default;
153
+ //# sourceMappingURL=slider.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.vue.d.ts","sourceRoot":"","sources":["../../../slider/src/slider.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAygCA,wBAUG"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * CpSpacer 弹性空间占位组件
3
+ *
4
+ * 在 Flex 布局中填充剩余空间,实现元素的间距分布。
5
+ *
6
+ * @example
7
+ * ```vue
8
+ * <div style="display: flex">
9
+ * <CpButton>左侧</CpButton>
10
+ * <CpSpacer />
11
+ * <CpButton>右侧</CpButton>
12
+ * </div>
13
+ * ```
14
+ */
15
+ export declare const CpSpacer: import('../utils').SFCWithInstall<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>>;
16
+ export default CpSpacer;
17
+ export * from './src/spacer';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../spacer/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,6TAAsB,CAAA;AAC3C,eAAe,QAAQ,CAAA;AAEvB,cAAc,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ export declare const spacerProps: {};
3
+ export type SpacerProps = ExtractPropTypes<typeof spacerProps>;
4
+ //# sourceMappingURL=spacer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacer.d.ts","sourceRoot":"","sources":["../../../spacer/src/spacer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAE3C,eAAO,MAAM,WAAW,IAAc,CAAA;AAEtC,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,WAAW,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
3
+ //# sourceMappingURL=spacer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacer.vue.d.ts","sourceRoot":"","sources":["../../../spacer/src/spacer.vue"],"names":[],"mappings":";AA8DA,wBAMG"}
@@ -0,0 +1,162 @@
1
+ export declare const CpStatusIndicator: import('../utils').SFCWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly type: {
4
+ readonly type: import('vue').PropType<import('.').StatusIndicatorType>;
5
+ readonly default: "default";
6
+ };
7
+ readonly size: {
8
+ readonly type: import('vue').PropType<import('.').StatusIndicatorSize>;
9
+ readonly default: "md";
10
+ };
11
+ readonly shape: {
12
+ readonly type: import('vue').PropType<import('.').StatusIndicatorShape>;
13
+ readonly default: "dot";
14
+ };
15
+ readonly color: {
16
+ readonly type: StringConstructor;
17
+ readonly default: "";
18
+ };
19
+ readonly animation: {
20
+ readonly type: import('vue').PropType<import('.').StatusIndicatorAnimation>;
21
+ readonly default: "none";
22
+ };
23
+ readonly duration: {
24
+ readonly type: import('vue').PropType<number | string>;
25
+ readonly default: 1500;
26
+ };
27
+ readonly intensity: {
28
+ readonly type: NumberConstructor;
29
+ readonly default: 1;
30
+ };
31
+ readonly gap: {
32
+ readonly type: import('vue').PropType<number | string>;
33
+ readonly default: "";
34
+ };
35
+ readonly label: {
36
+ readonly type: StringConstructor;
37
+ readonly default: "";
38
+ };
39
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
40
+ readonly size: import('../../cyberpunk-vue').Size;
41
+ readonly type: import('.').StatusIndicatorType;
42
+ readonly color: string;
43
+ readonly shape: import('.').StatusIndicatorShape;
44
+ readonly label: string;
45
+ readonly duration: string | number;
46
+ readonly animation: import('.').StatusIndicatorAnimation;
47
+ readonly gap: string | number;
48
+ readonly intensity: number;
49
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLSpanElement, import('vue').ComponentProvideOptions, {
50
+ P: {};
51
+ B: {};
52
+ D: {};
53
+ C: {};
54
+ M: {};
55
+ Defaults: {};
56
+ }, Readonly<import('vue').ExtractPropTypes<{
57
+ readonly type: {
58
+ readonly type: import('vue').PropType<import('.').StatusIndicatorType>;
59
+ readonly default: "default";
60
+ };
61
+ readonly size: {
62
+ readonly type: import('vue').PropType<import('.').StatusIndicatorSize>;
63
+ readonly default: "md";
64
+ };
65
+ readonly shape: {
66
+ readonly type: import('vue').PropType<import('.').StatusIndicatorShape>;
67
+ readonly default: "dot";
68
+ };
69
+ readonly color: {
70
+ readonly type: StringConstructor;
71
+ readonly default: "";
72
+ };
73
+ readonly animation: {
74
+ readonly type: import('vue').PropType<import('.').StatusIndicatorAnimation>;
75
+ readonly default: "none";
76
+ };
77
+ readonly duration: {
78
+ readonly type: import('vue').PropType<number | string>;
79
+ readonly default: 1500;
80
+ };
81
+ readonly intensity: {
82
+ readonly type: NumberConstructor;
83
+ readonly default: 1;
84
+ };
85
+ readonly gap: {
86
+ readonly type: import('vue').PropType<number | string>;
87
+ readonly default: "";
88
+ };
89
+ readonly label: {
90
+ readonly type: StringConstructor;
91
+ readonly default: "";
92
+ };
93
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
94
+ readonly size: import('../../cyberpunk-vue').Size;
95
+ readonly type: import('.').StatusIndicatorType;
96
+ readonly color: string;
97
+ readonly shape: import('.').StatusIndicatorShape;
98
+ readonly label: string;
99
+ readonly duration: string | number;
100
+ readonly animation: import('.').StatusIndicatorAnimation;
101
+ readonly gap: string | number;
102
+ readonly intensity: number;
103
+ }>;
104
+ __isFragment?: never;
105
+ __isTeleport?: never;
106
+ __isSuspense?: never;
107
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
108
+ readonly type: {
109
+ readonly type: import('vue').PropType<import('.').StatusIndicatorType>;
110
+ readonly default: "default";
111
+ };
112
+ readonly size: {
113
+ readonly type: import('vue').PropType<import('.').StatusIndicatorSize>;
114
+ readonly default: "md";
115
+ };
116
+ readonly shape: {
117
+ readonly type: import('vue').PropType<import('.').StatusIndicatorShape>;
118
+ readonly default: "dot";
119
+ };
120
+ readonly color: {
121
+ readonly type: StringConstructor;
122
+ readonly default: "";
123
+ };
124
+ readonly animation: {
125
+ readonly type: import('vue').PropType<import('.').StatusIndicatorAnimation>;
126
+ readonly default: "none";
127
+ };
128
+ readonly duration: {
129
+ readonly type: import('vue').PropType<number | string>;
130
+ readonly default: 1500;
131
+ };
132
+ readonly intensity: {
133
+ readonly type: NumberConstructor;
134
+ readonly default: 1;
135
+ };
136
+ readonly gap: {
137
+ readonly type: import('vue').PropType<number | string>;
138
+ readonly default: "";
139
+ };
140
+ readonly label: {
141
+ readonly type: StringConstructor;
142
+ readonly default: "";
143
+ };
144
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
145
+ readonly size: import('../../cyberpunk-vue').Size;
146
+ readonly type: import('.').StatusIndicatorType;
147
+ readonly color: string;
148
+ readonly shape: import('.').StatusIndicatorShape;
149
+ readonly label: string;
150
+ readonly duration: string | number;
151
+ readonly animation: import('.').StatusIndicatorAnimation;
152
+ readonly gap: string | number;
153
+ readonly intensity: number;
154
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
155
+ $slots: {
156
+ default?(_: {}): any;
157
+ };
158
+ })>;
159
+ export default CpStatusIndicator;
160
+ export * from './src/status-indicator';
161
+ export type { CpStatusIndicatorInstance } from './src/instance';
162
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../status-indicator/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+B,CAAA;AAC7D,eAAe,iBAAiB,CAAA;AAEhC,cAAc,wBAAwB,CAAA;AACtC,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { default as StatusIndicator } from './status-indicator.vue';
2
+ export type CpStatusIndicatorInstance = InstanceType<typeof StatusIndicator>;
3
+ //# sourceMappingURL=instance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../status-indicator/src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAEzD,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAA"}