@sdata/web-vue 4.7.1 → 5.0.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.
Files changed (219) hide show
  1. package/dist/sd.css +4004 -3955
  2. package/dist/sd.min.css +13 -13
  3. package/es/_components/input-label/style/index.css +47 -47
  4. package/es/_components/select-view/style/index.css +256 -256
  5. package/es/alert/style/index.css +48 -48
  6. package/es/alert/style/token.scss +257 -0
  7. package/es/anchor/style/index.css +18 -18
  8. package/es/anchor/style/token.scss +74 -0
  9. package/es/auto-complete/style/index.css +18 -18
  10. package/es/auto-complete/style/token.scss +94 -0
  11. package/es/avatar/style/index.css +31 -31
  12. package/es/avatar/style/token.scss +118 -0
  13. package/es/back-top/style/index.css +11 -11
  14. package/es/back-top/style/token.scss +60 -0
  15. package/es/badge/style/index.css +35 -35
  16. package/es/badge/style/token.scss +148 -0
  17. package/es/basic-crud-table/style/index.css +4 -4
  18. package/es/basic-crud-table/style/token.scss +20 -0
  19. package/es/bloom-menu/style/index.css +33 -34
  20. package/es/bloom-menu/style/index.scss +5 -5
  21. package/es/bloom-menu/style/token.scss +99 -0
  22. package/es/border-beam/style/token.scss +28 -0
  23. package/es/breadcrumb/style/index.css +17 -17
  24. package/es/breadcrumb/style/token.scss +97 -0
  25. package/es/button/style/index.css +379 -379
  26. package/es/button/style/index.scss +3 -3
  27. package/es/button/style/token.scss +1604 -0
  28. package/es/card/style/index.css +36 -36
  29. package/es/card/style/token.scss +162 -0
  30. package/es/carousel/style/index.css +41 -41
  31. package/es/carousel/style/token.scss +101 -0
  32. package/es/cascader/style/index.css +58 -58
  33. package/es/cascader/style/token.scss +89 -0
  34. package/es/checkbox/style/index.css +28 -28
  35. package/es/checkbox/style/token.scss +134 -0
  36. package/es/collapse/style/index.css +24 -24
  37. package/es/collapse/style/token.scss +136 -0
  38. package/es/color-picker/style/index.css +50 -50
  39. package/es/color-picker/style/token.scss +200 -0
  40. package/es/comment/style/index.css +15 -15
  41. package/es/comment/style/token.scss +83 -0
  42. package/es/config-provider/algorithms.d.ts +11 -0
  43. package/es/config-provider/algorithms.js +53 -0
  44. package/es/config-provider/global-theme.js +7 -4
  45. package/es/config-provider/theme-config.d.ts +11 -0
  46. package/es/config-provider/theme-config.js +114 -0
  47. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +46 -11
  48. package/es/config-provider/theme.d.ts +4 -1
  49. package/es/config-provider/theme.js +6 -5
  50. package/es/config-provider/token-key.d.ts +1 -0
  51. package/es/config-provider/token-key.js +6 -0
  52. package/es/copy/style/index.css +1 -1
  53. package/es/copy/style/token.scss +9 -0
  54. package/es/cropper/style/index.css +7 -7
  55. package/es/cropper/style/token.scss +24 -0
  56. package/es/date-picker/style/index.css +73 -73
  57. package/es/date-picker/style/token.scss +229 -0
  58. package/es/descriptions/style/index.css +45 -45
  59. package/es/descriptions/style/token.scss +191 -0
  60. package/es/divider/style/index.css +11 -11
  61. package/es/divider/style/token.scss +60 -0
  62. package/es/drawer/style/index.css +13 -13
  63. package/es/drawer/style/token.scss +68 -0
  64. package/es/dropdown/style/index.css +24 -23
  65. package/es/dropdown/style/index.scss +4 -2
  66. package/es/dropdown/style/token.scss +123 -0
  67. package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +3 -3
  68. package/es/ellipsis/interface.d.ts +1 -0
  69. package/es/ellipsis/style/index.css +2 -2
  70. package/es/ellipsis/style/token.scss +5 -0
  71. package/es/empty/style/index.css +7 -7
  72. package/es/empty/style/token.scss +35 -0
  73. package/es/file-previewer/style/index.css +44 -44
  74. package/es/file-previewer/style/token.scss +198 -0
  75. package/es/form/style/index.css +113 -113
  76. package/es/form/style/token.scss +340 -0
  77. package/es/image/style/index.css +83 -83
  78. package/es/image/style/token.scss +451 -0
  79. package/es/index.css +4004 -3955
  80. package/es/index.d.ts +3 -0
  81. package/es/index.js +4 -1
  82. package/es/input/style/index.css +104 -104
  83. package/es/input/style/input.scss +2 -8
  84. package/es/input/style/size.scss +4 -4
  85. package/es/input/style/token.scss +327 -0
  86. package/es/input-mask/style/index.css +1 -1
  87. package/es/input-mask/style/token.scss +8 -0
  88. package/es/input-number/style/index.css +19 -19
  89. package/es/input-number/style/token.scss +82 -0
  90. package/es/input-tag/style/index.css +209 -209
  91. package/es/input-tag/style/token.scss +226 -0
  92. package/es/json-form/style/index.css +2 -2
  93. package/es/json-form/style/token.scss +21 -0
  94. package/es/kv-list/style/index.css +13 -13
  95. package/es/kv-list/style/token.scss +29 -0
  96. package/es/layout/style/index.css +38 -38
  97. package/es/layout/style/token.scss +100 -0
  98. package/es/link/style/index.css +28 -28
  99. package/es/link/style/token.scss +117 -0
  100. package/es/list/style/index.css +27 -27
  101. package/es/list/style/token.scss +178 -0
  102. package/es/mention/style/token.scss +22 -0
  103. package/es/menu/style/index.css +153 -120
  104. package/es/menu/style/index.scss +12 -4
  105. package/es/menu/style/token.scss +390 -0
  106. package/es/message/style/index.css +33 -33
  107. package/es/message/style/token.scss +218 -0
  108. package/es/modal/style/index.css +21 -21
  109. package/es/modal/style/token.scss +115 -0
  110. package/es/model-selector/style/index.css +1 -1
  111. package/es/notification/style/index.css +44 -44
  112. package/es/notification/style/token.scss +241 -0
  113. package/es/number-flow/style/index.css +5 -5
  114. package/es/number-flow/style/token.scss +19 -0
  115. package/es/page-header/style/index.css +25 -25
  116. package/es/page-header/style/token.scss +139 -0
  117. package/es/pagination/style/index.css +85 -85
  118. package/es/pagination/style/token.scss +303 -0
  119. package/es/panel-group/style/index.css +7 -7
  120. package/es/panel-group/style/token.scss +28 -0
  121. package/es/popconfirm/style/index.css +18 -18
  122. package/es/popconfirm/style/token.scss +83 -0
  123. package/es/popover/style/index.css +12 -12
  124. package/es/popover/style/token.scss +58 -0
  125. package/es/progress/style/index.css +55 -55
  126. package/es/progress/style/token.scss +253 -0
  127. package/es/qr-code/style/index.css +18 -21
  128. package/es/qr-code/style/index.scss +4 -6
  129. package/es/qr-code/style/token.scss +59 -0
  130. package/es/radio/style/index.css +45 -44
  131. package/es/radio/style/index.scss +1 -0
  132. package/es/radio/style/token.scss +185 -0
  133. package/es/rate/style/index.css +8 -8
  134. package/es/rate/style/token.scss +19 -0
  135. package/es/regex-vis/style/index.css +51 -51
  136. package/es/regex-vis/style/token.scss +170 -0
  137. package/es/result/style/index.css +26 -26
  138. package/es/result/style/token.scss +139 -0
  139. package/es/rich-text-editor/style/index.css +31 -31
  140. package/es/rich-text-editor/style/token.scss +120 -0
  141. package/es/scrollbar/style/index.css +14 -14
  142. package/es/scrollbar/style/token.scss +33 -0
  143. package/es/secret/style/index.css +6 -6
  144. package/es/secret/style/token.scss +30 -0
  145. package/es/select/style/index.css +27 -27
  146. package/es/select/style/token.scss +151 -0
  147. package/es/selectable-card/style/index.css +53 -51
  148. package/es/selectable-card/style/index.scss +6 -2
  149. package/es/selectable-card/style/token.scss +60 -0
  150. package/es/sender/style/index.css +54 -54
  151. package/es/sender/style/token.scss +155 -0
  152. package/es/skeleton/style/index.css +12 -12
  153. package/es/skeleton/style/token.scss +60 -0
  154. package/es/slider/style/index.css +34 -34
  155. package/es/slider/style/token.scss +144 -0
  156. package/es/spin/style/index.css +11 -11
  157. package/es/spin/style/token.scss +60 -0
  158. package/es/split/style/index.css +2 -2
  159. package/es/split/style/token.scss +18 -0
  160. package/es/statistic/style/index.css +13 -13
  161. package/es/statistic/style/token.scss +73 -0
  162. package/es/steps/style/index.css +98 -98
  163. package/es/steps/style/token.scss +464 -0
  164. package/es/style/color/css-variables.scss +382 -381
  165. package/es/style/theme/css-variables.scss +329 -135
  166. package/es/style/theme/global.scss +5 -5
  167. package/es/style/theme/index.scss +1 -1
  168. package/es/style/theme/runtime.scss +29 -0
  169. package/es/switch/style/index.css +37 -37
  170. package/es/switch/style/token.scss +135 -0
  171. package/es/table/style/index.css +127 -127
  172. package/es/table/style/token.scss +425 -0
  173. package/es/tabs/style/index.css +196 -190
  174. package/es/tabs/style/index.scss +27 -17
  175. package/es/tabs/style/token.scss +534 -0
  176. package/es/tag/index.d.ts +13 -0
  177. package/es/tag/interface.d.ts +1 -0
  178. package/es/tag/style/index.css +159 -159
  179. package/es/tag/style/token.scss +513 -0
  180. package/es/tag/tag.vue.d.ts +13 -3
  181. package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +35 -8
  182. package/es/tag-group/style/index.css +3 -3
  183. package/es/tag-group/style/token.scss +9 -0
  184. package/es/textarea/style/index.css +40 -40
  185. package/es/time-picker/style/index.css +12 -12
  186. package/es/time-picker/style/token.scss +50 -0
  187. package/es/timeline/style/index.css +22 -22
  188. package/es/timeline/style/token.scss +75 -0
  189. package/es/toolbar/style/index.css +6 -6
  190. package/es/toolbar/style/token.scss +45 -0
  191. package/es/tooltip/style/index.css +8 -8
  192. package/es/tooltip/style/token.scss +46 -0
  193. package/es/tour/style/index.css +28 -28
  194. package/es/tour/style/token.scss +65 -0
  195. package/es/transfer/style/index.css +46 -45
  196. package/es/transfer/style/index.scss +4 -1
  197. package/es/transfer/style/token.scss +199 -0
  198. package/es/tree/style/index.css +43 -36
  199. package/es/tree/style/index.scss +10 -0
  200. package/es/tree/style/token.scss +163 -0
  201. package/es/tree-select/style/index.css +9 -9
  202. package/es/tree-select/style/token.scss +21 -0
  203. package/es/trigger/style/index.css +7 -7
  204. package/es/trigger/style/token.scss +19 -0
  205. package/es/typography/style/index.css +40 -40
  206. package/es/typography/style/token.scss +220 -0
  207. package/es/upload/index.d.ts +3 -0
  208. package/es/upload/style/index.css +95 -95
  209. package/es/upload/style/token.scss +470 -0
  210. package/es/upload/upload.vue.d.ts +2 -0
  211. package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +109 -16
  212. package/json/vetur-attributes.json +7 -0
  213. package/json/vetur-tags.json +4 -1
  214. package/json/web-types.json +18 -2
  215. package/package.json +7 -2
  216. package/es/style/color/palette-dark.d.ts +0 -4
  217. package/es/style/color/palette-dark.js +0 -10
  218. package/es/style/color/palette.d.ts +0 -4
  219. package/es/style/color/palette.js +0 -10
@@ -1,3 +1,4 @@
1
+ @use '@style/theme/runtime.scss' as theme-runtime;
1
2
  @use '@style/theme/index.scss' as global;
2
3
 
3
4
  @forward '@style/theme/index.scss';
@@ -179,3 +180,515 @@ $tag-gray-color-text: rgb(var(string.unquote('#{global.$sd-cssvars-prefix}-gray-
179
180
  // vue overwrite token
180
181
  $tag-size-medium: $tag-size-default;
181
182
  $tag-size-medium-font-size: $tag-size-default-font-size;
183
+
184
+ // @generated runtime tokens — pnpm theme:generate
185
+ $tag-border-type: theme-runtime.token('tag', 'tag-border-type', $tag-border-type);
186
+ $tag-padding-horizontal: theme-runtime.token(
187
+ 'tag',
188
+ 'tag-padding-horizontal',
189
+ $tag-padding-horizontal
190
+ );
191
+ $tag-icon-margin-right: theme-runtime.token(
192
+ 'tag',
193
+ 'tag-icon-margin-right',
194
+ $tag-icon-margin-right,
195
+ 'spacing-2'
196
+ );
197
+ $tag-text-font-weight: theme-runtime.token(
198
+ 'tag',
199
+ 'tag-text-font-weight',
200
+ $tag-text-font-weight,
201
+ 'font-weight-500'
202
+ );
203
+ $tag-border-radius: theme-runtime.token('tag', 'tag-border-radius', $tag-border-radius);
204
+ $tag-size-small-font-size: theme-runtime.token(
205
+ 'tag',
206
+ 'tag-size-small-font-size',
207
+ $tag-size-small-font-size
208
+ );
209
+ $tag-size-default-font-size: theme-runtime.token(
210
+ 'tag',
211
+ 'tag-size-default-font-size',
212
+ $tag-size-default-font-size
213
+ );
214
+ $tag-size-medium-font-size: theme-runtime.token(
215
+ 'tag',
216
+ 'tag-size-medium-font-size',
217
+ $tag-size-medium-font-size
218
+ );
219
+ $tag-size-large-font-size: theme-runtime.token(
220
+ 'tag',
221
+ 'tag-size-large-font-size',
222
+ $tag-size-large-font-size
223
+ );
224
+ $tag-color-bg-not-checked_hover: theme-runtime.token(
225
+ 'tag',
226
+ 'tag-color-bg-not-checked-hover',
227
+ $tag-color-bg-not-checked_hover
228
+ );
229
+ $tag-custom-color-text: theme-runtime.token('tag', 'tag-custom-color-text', $tag-custom-color-text);
230
+ $tag-custom-color-icon-bg_hover: theme-runtime.token(
231
+ 'tag',
232
+ 'tag-custom-color-icon-bg-hover',
233
+ $tag-custom-color-icon-bg_hover
234
+ );
235
+ $tag-default-color-bg: theme-runtime.token('tag', 'tag-default-color-bg', $tag-default-color-bg);
236
+ $tag-default-color-bg_hover: theme-runtime.token(
237
+ 'tag',
238
+ 'tag-default-color-bg-hover',
239
+ $tag-default-color-bg_hover
240
+ );
241
+ $tag-default-color-icon: theme-runtime.token(
242
+ 'tag',
243
+ 'tag-default-color-icon',
244
+ $tag-default-color-icon
245
+ );
246
+ $tag-default-color-text: theme-runtime.token(
247
+ 'tag',
248
+ 'tag-default-color-text',
249
+ $tag-default-color-text
250
+ );
251
+ $tag-default-color-border: theme-runtime.token(
252
+ 'tag',
253
+ 'tag-default-color-border',
254
+ $tag-default-color-border,
255
+ 'color-transparent'
256
+ );
257
+ $tag-default-bordered-color-border: theme-runtime.token(
258
+ 'tag',
259
+ 'tag-default-bordered-color-border',
260
+ $tag-default-bordered-color-border
261
+ );
262
+ $tag-default-color-border_hover: theme-runtime.token(
263
+ 'tag',
264
+ 'tag-default-color-border-hover',
265
+ $tag-default-color-border_hover,
266
+ 'color-transparent'
267
+ );
268
+ $tag-red-color-bg: theme-runtime.token('tag', 'tag-red-color-bg', $tag-red-color-bg);
269
+ $tag-red-color-bg_hover: theme-runtime.token(
270
+ 'tag',
271
+ 'tag-red-color-bg-hover',
272
+ $tag-red-color-bg_hover
273
+ );
274
+ $tag-red-color-border: theme-runtime.token(
275
+ 'tag',
276
+ 'tag-red-color-border',
277
+ $tag-red-color-border,
278
+ 'color-transparent'
279
+ );
280
+ $tag-red-bordered-color-border: theme-runtime.token(
281
+ 'tag',
282
+ 'tag-red-bordered-color-border',
283
+ $tag-red-bordered-color-border
284
+ );
285
+ $tag-red-color-border_hover: theme-runtime.token(
286
+ 'tag',
287
+ 'tag-red-color-border-hover',
288
+ $tag-red-color-border_hover,
289
+ 'color-transparent'
290
+ );
291
+ $tag-red-color-icon: theme-runtime.token('tag', 'tag-red-color-icon', $tag-red-color-icon);
292
+ $tag-red-color-icon-bg_hover: theme-runtime.token(
293
+ 'tag',
294
+ 'tag-red-color-icon-bg-hover',
295
+ $tag-red-color-icon-bg_hover
296
+ );
297
+ $tag-red-color-text: theme-runtime.token('tag', 'tag-red-color-text', $tag-red-color-text);
298
+ $tag-orangered-color-bg: theme-runtime.token(
299
+ 'tag',
300
+ 'tag-orangered-color-bg',
301
+ $tag-orangered-color-bg
302
+ );
303
+ $tag-orangered-color-bg_hover: theme-runtime.token(
304
+ 'tag',
305
+ 'tag-orangered-color-bg-hover',
306
+ $tag-orangered-color-bg_hover
307
+ );
308
+ $tag-orangered-color-border: theme-runtime.token(
309
+ 'tag',
310
+ 'tag-orangered-color-border',
311
+ $tag-orangered-color-border,
312
+ 'color-transparent'
313
+ );
314
+ $tag-orangered-bordered-color-border: theme-runtime.token(
315
+ 'tag',
316
+ 'tag-orangered-bordered-color-border',
317
+ $tag-orangered-bordered-color-border
318
+ );
319
+ $tag-orangered-color-border_hover: theme-runtime.token(
320
+ 'tag',
321
+ 'tag-orangered-color-border-hover',
322
+ $tag-orangered-color-border_hover,
323
+ 'color-transparent'
324
+ );
325
+ $tag-orangered-color-icon: theme-runtime.token(
326
+ 'tag',
327
+ 'tag-orangered-color-icon',
328
+ $tag-orangered-color-icon
329
+ );
330
+ $tag-orangered-color-icon-bg_hover: theme-runtime.token(
331
+ 'tag',
332
+ 'tag-orangered-color-icon-bg-hover',
333
+ $tag-orangered-color-icon-bg_hover
334
+ );
335
+ $tag-orangered-color-text: theme-runtime.token(
336
+ 'tag',
337
+ 'tag-orangered-color-text',
338
+ $tag-orangered-color-text
339
+ );
340
+ $tag-orange-color-bg: theme-runtime.token('tag', 'tag-orange-color-bg', $tag-orange-color-bg);
341
+ $tag-orange-color-bg_hover: theme-runtime.token(
342
+ 'tag',
343
+ 'tag-orange-color-bg-hover',
344
+ $tag-orange-color-bg_hover
345
+ );
346
+ $tag-orange-color-border: theme-runtime.token(
347
+ 'tag',
348
+ 'tag-orange-color-border',
349
+ $tag-orange-color-border,
350
+ 'color-transparent'
351
+ );
352
+ $tag-orange-bordered-color-border: theme-runtime.token(
353
+ 'tag',
354
+ 'tag-orange-bordered-color-border',
355
+ $tag-orange-bordered-color-border
356
+ );
357
+ $tag-orange-color-border_hover: theme-runtime.token(
358
+ 'tag',
359
+ 'tag-orange-color-border-hover',
360
+ $tag-orange-color-border_hover,
361
+ 'color-transparent'
362
+ );
363
+ $tag-orange-color-icon: theme-runtime.token('tag', 'tag-orange-color-icon', $tag-orange-color-icon);
364
+ $tag-orange-color-icon-bg_hover: theme-runtime.token(
365
+ 'tag',
366
+ 'tag-orange-color-icon-bg-hover',
367
+ $tag-orange-color-icon-bg_hover
368
+ );
369
+ $tag-orange-color-text: theme-runtime.token('tag', 'tag-orange-color-text', $tag-orange-color-text);
370
+ $tag-gold-color-bg: theme-runtime.token('tag', 'tag-gold-color-bg', $tag-gold-color-bg);
371
+ $tag-gold-color-bg_hover: theme-runtime.token(
372
+ 'tag',
373
+ 'tag-gold-color-bg-hover',
374
+ $tag-gold-color-bg_hover
375
+ );
376
+ $tag-gold-color-border: theme-runtime.token(
377
+ 'tag',
378
+ 'tag-gold-color-border',
379
+ $tag-gold-color-border,
380
+ 'color-transparent'
381
+ );
382
+ $tag-gold-bordered-color-border: theme-runtime.token(
383
+ 'tag',
384
+ 'tag-gold-bordered-color-border',
385
+ $tag-gold-bordered-color-border
386
+ );
387
+ $tag-gold-color-border_hover: theme-runtime.token(
388
+ 'tag',
389
+ 'tag-gold-color-border-hover',
390
+ $tag-gold-color-border_hover,
391
+ 'color-transparent'
392
+ );
393
+ $tag-gold-color-icon: theme-runtime.token('tag', 'tag-gold-color-icon', $tag-gold-color-icon);
394
+ $tag-gold-color-icon-bg_hover: theme-runtime.token(
395
+ 'tag',
396
+ 'tag-gold-color-icon-bg-hover',
397
+ $tag-gold-color-icon-bg_hover
398
+ );
399
+ $tag-gold-color-text: theme-runtime.token('tag', 'tag-gold-color-text', $tag-gold-color-text);
400
+ $tag-lime-color-bg: theme-runtime.token('tag', 'tag-lime-color-bg', $tag-lime-color-bg);
401
+ $tag-lime-color-bg_hover: theme-runtime.token(
402
+ 'tag',
403
+ 'tag-lime-color-bg-hover',
404
+ $tag-lime-color-bg_hover
405
+ );
406
+ $tag-lime-color-border: theme-runtime.token(
407
+ 'tag',
408
+ 'tag-lime-color-border',
409
+ $tag-lime-color-border,
410
+ 'color-transparent'
411
+ );
412
+ $tag-lime-bordered-color-border: theme-runtime.token(
413
+ 'tag',
414
+ 'tag-lime-bordered-color-border',
415
+ $tag-lime-bordered-color-border
416
+ );
417
+ $tag-lime-color-border_hover: theme-runtime.token(
418
+ 'tag',
419
+ 'tag-lime-color-border-hover',
420
+ $tag-lime-color-border_hover,
421
+ 'color-transparent'
422
+ );
423
+ $tag-lime-color-icon: theme-runtime.token('tag', 'tag-lime-color-icon', $tag-lime-color-icon);
424
+ $tag-lime-color-icon-bg_hover: theme-runtime.token(
425
+ 'tag',
426
+ 'tag-lime-color-icon-bg-hover',
427
+ $tag-lime-color-icon-bg_hover
428
+ );
429
+ $tag-lime-color-text: theme-runtime.token('tag', 'tag-lime-color-text', $tag-lime-color-text);
430
+ $tag-green-color-bg: theme-runtime.token('tag', 'tag-green-color-bg', $tag-green-color-bg);
431
+ $tag-green-color-bg_hover: theme-runtime.token(
432
+ 'tag',
433
+ 'tag-green-color-bg-hover',
434
+ $tag-green-color-bg_hover
435
+ );
436
+ $tag-green-color-border: theme-runtime.token(
437
+ 'tag',
438
+ 'tag-green-color-border',
439
+ $tag-green-color-border,
440
+ 'color-transparent'
441
+ );
442
+ $tag-green-bordered-color-border: theme-runtime.token(
443
+ 'tag',
444
+ 'tag-green-bordered-color-border',
445
+ $tag-green-bordered-color-border
446
+ );
447
+ $tag-green-color-border_hover: theme-runtime.token(
448
+ 'tag',
449
+ 'tag-green-color-border-hover',
450
+ $tag-green-color-border_hover,
451
+ 'color-transparent'
452
+ );
453
+ $tag-green-color-icon: theme-runtime.token('tag', 'tag-green-color-icon', $tag-green-color-icon);
454
+ $tag-green-color-icon-bg_hover: theme-runtime.token(
455
+ 'tag',
456
+ 'tag-green-color-icon-bg-hover',
457
+ $tag-green-color-icon-bg_hover
458
+ );
459
+ $tag-green-color-text: theme-runtime.token('tag', 'tag-green-color-text', $tag-green-color-text);
460
+ $tag-cyan-color-bg: theme-runtime.token('tag', 'tag-cyan-color-bg', $tag-cyan-color-bg);
461
+ $tag-cyan-color-bg_hover: theme-runtime.token(
462
+ 'tag',
463
+ 'tag-cyan-color-bg-hover',
464
+ $tag-cyan-color-bg_hover
465
+ );
466
+ $tag-cyan-color-border: theme-runtime.token(
467
+ 'tag',
468
+ 'tag-cyan-color-border',
469
+ $tag-cyan-color-border,
470
+ 'color-transparent'
471
+ );
472
+ $tag-cyan-bordered-color-border: theme-runtime.token(
473
+ 'tag',
474
+ 'tag-cyan-bordered-color-border',
475
+ $tag-cyan-bordered-color-border
476
+ );
477
+ $tag-cyan-color-border_hover: theme-runtime.token(
478
+ 'tag',
479
+ 'tag-cyan-color-border-hover',
480
+ $tag-cyan-color-border_hover,
481
+ 'color-transparent'
482
+ );
483
+ $tag-cyan-color-icon: theme-runtime.token('tag', 'tag-cyan-color-icon', $tag-cyan-color-icon);
484
+ $tag-cyan-color-icon-bg_hover: theme-runtime.token(
485
+ 'tag',
486
+ 'tag-cyan-color-icon-bg-hover',
487
+ $tag-cyan-color-icon-bg_hover
488
+ );
489
+ $tag-cyan-color-text: theme-runtime.token('tag', 'tag-cyan-color-text', $tag-cyan-color-text);
490
+ $tag-blue-color-bg: theme-runtime.token('tag', 'tag-blue-color-bg', $tag-blue-color-bg);
491
+ $tag-blue-color-bg_hover: theme-runtime.token(
492
+ 'tag',
493
+ 'tag-blue-color-bg-hover',
494
+ $tag-blue-color-bg_hover
495
+ );
496
+ $tag-blue-color-border: theme-runtime.token(
497
+ 'tag',
498
+ 'tag-blue-color-border',
499
+ $tag-blue-color-border,
500
+ 'color-transparent'
501
+ );
502
+ $tag-blue-bordered-color-border: theme-runtime.token(
503
+ 'tag',
504
+ 'tag-blue-bordered-color-border',
505
+ $tag-blue-bordered-color-border
506
+ );
507
+ $tag-blue-color-border_hover: theme-runtime.token(
508
+ 'tag',
509
+ 'tag-blue-color-border-hover',
510
+ $tag-blue-color-border_hover,
511
+ 'color-transparent'
512
+ );
513
+ $tag-blue-color-icon: theme-runtime.token('tag', 'tag-blue-color-icon', $tag-blue-color-icon);
514
+ $tag-blue-color-icon-bg_hover: theme-runtime.token(
515
+ 'tag',
516
+ 'tag-blue-color-icon-bg-hover',
517
+ $tag-blue-color-icon-bg_hover
518
+ );
519
+ $tag-blue-color-text: theme-runtime.token('tag', 'tag-blue-color-text', $tag-blue-color-text);
520
+ $tag-sdblue-color-bg: theme-runtime.token('tag', 'tag-sdblue-color-bg', $tag-sdblue-color-bg);
521
+ $tag-sdblue-color-bg_hover: theme-runtime.token(
522
+ 'tag',
523
+ 'tag-sdblue-color-bg-hover',
524
+ $tag-sdblue-color-bg_hover
525
+ );
526
+ $tag-sdblue-color-border: theme-runtime.token(
527
+ 'tag',
528
+ 'tag-sdblue-color-border',
529
+ $tag-sdblue-color-border,
530
+ 'color-transparent'
531
+ );
532
+ $tag-sdblue-bordered-color-border: theme-runtime.token(
533
+ 'tag',
534
+ 'tag-sdblue-bordered-color-border',
535
+ $tag-sdblue-bordered-color-border
536
+ );
537
+ $tag-sdblue-color-border_hover: theme-runtime.token(
538
+ 'tag',
539
+ 'tag-sdblue-color-border-hover',
540
+ $tag-sdblue-color-border_hover,
541
+ 'color-transparent'
542
+ );
543
+ $tag-sdblue-color-icon: theme-runtime.token('tag', 'tag-sdblue-color-icon', $tag-sdblue-color-icon);
544
+ $tag-sdblue-color-icon-bg_hover: theme-runtime.token(
545
+ 'tag',
546
+ 'tag-sdblue-color-icon-bg-hover',
547
+ $tag-sdblue-color-icon-bg_hover
548
+ );
549
+ $tag-sdblue-color-text: theme-runtime.token('tag', 'tag-sdblue-color-text', $tag-sdblue-color-text);
550
+ $tag-purple-color-bg: theme-runtime.token('tag', 'tag-purple-color-bg', $tag-purple-color-bg);
551
+ $tag-purple-color-bg_hover: theme-runtime.token(
552
+ 'tag',
553
+ 'tag-purple-color-bg-hover',
554
+ $tag-purple-color-bg_hover
555
+ );
556
+ $tag-purple-color-border: theme-runtime.token(
557
+ 'tag',
558
+ 'tag-purple-color-border',
559
+ $tag-purple-color-border,
560
+ 'color-transparent'
561
+ );
562
+ $tag-purple-bordered-color-border: theme-runtime.token(
563
+ 'tag',
564
+ 'tag-purple-bordered-color-border',
565
+ $tag-purple-bordered-color-border
566
+ );
567
+ $tag-purple-color-border_hover: theme-runtime.token(
568
+ 'tag',
569
+ 'tag-purple-color-border-hover',
570
+ $tag-purple-color-border_hover,
571
+ 'color-transparent'
572
+ );
573
+ $tag-purple-color-icon: theme-runtime.token('tag', 'tag-purple-color-icon', $tag-purple-color-icon);
574
+ $tag-purple-color-icon-bg_hover: theme-runtime.token(
575
+ 'tag',
576
+ 'tag-purple-color-icon-bg-hover',
577
+ $tag-purple-color-icon-bg_hover
578
+ );
579
+ $tag-purple-color-text: theme-runtime.token('tag', 'tag-purple-color-text', $tag-purple-color-text);
580
+ $tag-pinkpurple-color-bg: theme-runtime.token(
581
+ 'tag',
582
+ 'tag-pinkpurple-color-bg',
583
+ $tag-pinkpurple-color-bg
584
+ );
585
+ $tag-pinkpurple-color-bg_hover: theme-runtime.token(
586
+ 'tag',
587
+ 'tag-pinkpurple-color-bg-hover',
588
+ $tag-pinkpurple-color-bg_hover
589
+ );
590
+ $tag-pinkpurple-color-border: theme-runtime.token(
591
+ 'tag',
592
+ 'tag-pinkpurple-color-border',
593
+ $tag-pinkpurple-color-border,
594
+ 'color-transparent'
595
+ );
596
+ $tag-pinkpurple-bordered-color-border: theme-runtime.token(
597
+ 'tag',
598
+ 'tag-pinkpurple-bordered-color-border',
599
+ $tag-pinkpurple-bordered-color-border
600
+ );
601
+ $tag-pinkpurple-color-border_hover: theme-runtime.token(
602
+ 'tag',
603
+ 'tag-pinkpurple-color-border-hover',
604
+ $tag-pinkpurple-color-border_hover,
605
+ 'color-transparent'
606
+ );
607
+ $tag-pinkpurple-color-icon: theme-runtime.token(
608
+ 'tag',
609
+ 'tag-pinkpurple-color-icon',
610
+ $tag-pinkpurple-color-icon
611
+ );
612
+ $tag-pinkpurple-color-icon-bg_hover: theme-runtime.token(
613
+ 'tag',
614
+ 'tag-pinkpurple-color-icon-bg-hover',
615
+ $tag-pinkpurple-color-icon-bg_hover
616
+ );
617
+ $tag-pinkpurple-color-text: theme-runtime.token(
618
+ 'tag',
619
+ 'tag-pinkpurple-color-text',
620
+ $tag-pinkpurple-color-text
621
+ );
622
+ $tag-magenta-color-bg: theme-runtime.token('tag', 'tag-magenta-color-bg', $tag-magenta-color-bg);
623
+ $tag-magenta-color-bg_hover: theme-runtime.token(
624
+ 'tag',
625
+ 'tag-magenta-color-bg-hover',
626
+ $tag-magenta-color-bg_hover
627
+ );
628
+ $tag-magenta-color-border: theme-runtime.token(
629
+ 'tag',
630
+ 'tag-magenta-color-border',
631
+ $tag-magenta-color-border,
632
+ 'color-transparent'
633
+ );
634
+ $tag-magenta-bordered-color-border: theme-runtime.token(
635
+ 'tag',
636
+ 'tag-magenta-bordered-color-border',
637
+ $tag-magenta-bordered-color-border
638
+ );
639
+ $tag-magenta-color-border_hover: theme-runtime.token(
640
+ 'tag',
641
+ 'tag-magenta-color-border-hover',
642
+ $tag-magenta-color-border_hover,
643
+ 'color-transparent'
644
+ );
645
+ $tag-magenta-color-icon: theme-runtime.token(
646
+ 'tag',
647
+ 'tag-magenta-color-icon',
648
+ $tag-magenta-color-icon
649
+ );
650
+ $tag-magenta-color-icon-bg_hover: theme-runtime.token(
651
+ 'tag',
652
+ 'tag-magenta-color-icon-bg-hover',
653
+ $tag-magenta-color-icon-bg_hover
654
+ );
655
+ $tag-magenta-color-text: theme-runtime.token(
656
+ 'tag',
657
+ 'tag-magenta-color-text',
658
+ $tag-magenta-color-text
659
+ );
660
+ $tag-gray-color-bg: theme-runtime.token('tag', 'tag-gray-color-bg', $tag-gray-color-bg);
661
+ $tag-gray-color-bg_hover: theme-runtime.token(
662
+ 'tag',
663
+ 'tag-gray-color-bg-hover',
664
+ $tag-gray-color-bg_hover
665
+ );
666
+ $tag-gray-color-border: theme-runtime.token(
667
+ 'tag',
668
+ 'tag-gray-color-border',
669
+ $tag-gray-color-border,
670
+ 'color-transparent'
671
+ );
672
+ $tag-gray-bordered-color-border: theme-runtime.token(
673
+ 'tag',
674
+ 'tag-gray-bordered-color-border',
675
+ $tag-gray-bordered-color-border
676
+ );
677
+ $tag-gray-color-border_hover: theme-runtime.token(
678
+ 'tag',
679
+ 'tag-gray-color-border-hover',
680
+ $tag-gray-color-border_hover,
681
+ 'color-transparent'
682
+ );
683
+ $tag-gray-color-icon: theme-runtime.token('tag', 'tag-gray-color-icon', $tag-gray-color-icon);
684
+ $tag-gray-color-icon-bg_hover: theme-runtime.token(
685
+ 'tag',
686
+ 'tag-gray-color-icon-bg-hover',
687
+ $tag-gray-color-icon-bg_hover
688
+ );
689
+ $tag-gray-color-text: theme-runtime.token('tag', 'tag-gray-color-text', $tag-gray-color-text);
690
+ $tag-size-medium-font-size: theme-runtime.token(
691
+ 'tag',
692
+ 'tag-size-medium-font-size',
693
+ $tag-size-default-font-size
694
+ );
@@ -1,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { EllipsisTooltipProps } from '../ellipsis';
3
- declare var __VLS_1: {}, __VLS_9: {}, __VLS_12: {}, __VLS_14: {}, __VLS_25: {};
3
+ declare var __VLS_1: {}, __VLS_9: {}, __VLS_12: {}, __VLS_20: {}, __VLS_23: {}, __VLS_25: {}, __VLS_36: {};
4
4
  type __VLS_Slots = {} & {
5
5
  icon?: (props: typeof __VLS_1) => any;
6
6
  } & {
@@ -8,9 +8,13 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  tooltip?: (props: typeof __VLS_12) => any;
10
10
  } & {
11
- default?: (props: typeof __VLS_14) => any;
11
+ default?: (props: typeof __VLS_20) => any;
12
12
  } & {
13
- 'close-icon'?: (props: typeof __VLS_25) => any;
13
+ tooltip?: (props: typeof __VLS_23) => any;
14
+ } & {
15
+ default?: (props: typeof __VLS_25) => any;
16
+ } & {
17
+ 'close-icon'?: (props: typeof __VLS_36) => any;
14
18
  };
15
19
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
20
  color: {
@@ -71,6 +75,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
71
75
  type: PropType<boolean | EllipsisTooltipProps>;
72
76
  default: boolean;
73
77
  };
78
+ tooltip: {
79
+ type: StringConstructor;
80
+ };
74
81
  ellipsisPerformant: {
75
82
  type: BooleanConstructor;
76
83
  default: boolean;
@@ -147,6 +154,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
147
154
  type: PropType<boolean | EllipsisTooltipProps>;
148
155
  default: boolean;
149
156
  };
157
+ tooltip: {
158
+ type: StringConstructor;
159
+ };
150
160
  ellipsisPerformant: {
151
161
  type: BooleanConstructor;
152
162
  default: boolean;
@@ -1,19 +1,23 @@
1
1
  import { configProviderInjectionKey } from "../config-provider/context.js";
2
2
  import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectSpread2.js";
3
3
  import { getPrefixCls } from "../_utils/global-config.js";
4
+ import { isObject } from "../_utils/is.js";
4
5
  import icon_hover_default from "../_components/icon-hover.js";
5
6
  import { isActivationKey } from "../_utils/keyboard.js";
6
7
  import IconClose from "../icon/icon-close/index.js";
7
8
  import { useI18n } from "../locale/index.js";
9
+ import _objectWithoutProperties from "../_virtual/_@oxc-project_runtime@0.148.0/helpers/esm/objectWithoutProperties.js";
10
+ import Tooltip from "../tooltip/index.js";
8
11
  import Ellipsis, { PerformantEllipsis } from "../ellipsis/index.js";
9
12
  import IconLoading from "../icon/icon-loading/index.js";
10
13
  import { useSize } from "../_hooks/use-size.js";
11
14
  import { extractColorsFromGradient, isGradientString } from "../_utils/color.js";
12
15
  import { TAG_COLORS } from "./interface.js";
13
- import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createVNode, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useSlots, withCtx, withModifiers } from "vue";
16
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx, withModifiers } from "vue";
14
17
  import { isNil } from "es-toolkit/compat";
15
18
  import chroma from "chroma-js";
16
19
  //#region components/tag/tag.vue?vue&type=script&setup=true&lang.ts
20
+ var _excluded = ["always"];
17
21
  var _hoisted_1 = [
18
22
  "role",
19
23
  "tabindex",
@@ -147,6 +151,12 @@ var tag_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompon
147
151
  default: true
148
152
  },
149
153
  /**
154
+ * @zh 自定义提示内容。设置后(或使用 tooltip 插槽时)无论内容是否省略,hover 时都会显示提示;ellipsis-tooltip 显式关闭(false 或 disabled: true)时除外
155
+ * @en Custom tooltip content. When set (or when the tooltip slot is used), the tooltip shows on hover whether or not the content is truncated, unless the ellipsis tooltip is explicitly disabled (false or disabled: true)
156
+ * @version 4.8.0
157
+ */
158
+ tooltip: { type: String },
159
+ /**
150
160
  * @zh 是否使用高性能省略实现
151
161
  * @en Whether to use the performant ellipsis implementation
152
162
  */
@@ -278,6 +288,19 @@ var tag_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompon
278
288
  const shouldRenderEllipsis = computed(() => resolvedEllipsis.value && hasDefaultSlot.value);
279
289
  const hasLineClampEllipsis = computed(() => shouldRenderEllipsis.value && props.ellipsisLineClamp !== void 0);
280
290
  const ellipsisComponent = computed(() => props.ellipsisPerformant ? PerformantEllipsis : Ellipsis);
291
+ const hasCustomTooltip = computed(() => Boolean(props.tooltip) || Boolean(slots.tooltip));
292
+ const mergedEllipsisTooltip = computed(() => {
293
+ if (!hasCustomTooltip.value) return props.ellipsisTooltip;
294
+ if (props.ellipsisTooltip === false) return false;
295
+ const config = isObject(props.ellipsisTooltip) ? _objectSpread2({}, props.ellipsisTooltip) : {};
296
+ config.always = true;
297
+ return config;
298
+ });
299
+ const tooltipBindings = computed(() => {
300
+ if (!isObject(props.ellipsisTooltip)) return {};
301
+ const _props$ellipsisToolti = props.ellipsisTooltip, { always: _always } = _props$ellipsisToolti;
302
+ return _objectWithoutProperties(_props$ellipsisToolti, _excluded);
303
+ });
281
304
  const rtl = computed(() => {
282
305
  var _configCtx$rtl;
283
306
  return (_configCtx$rtl = configCtx === null || configCtx === void 0 ? void 0 : configCtx.rtl) !== null && _configCtx$rtl !== void 0 ? _configCtx$rtl : false;
@@ -355,25 +378,29 @@ var tag_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompon
355
378
  class: normalizeClass(`${unref(prefixCls)}-text`),
356
379
  "line-clamp": __props.ellipsisLineClamp,
357
380
  "expand-trigger": __props.ellipsisExpandTrigger,
358
- tooltip: __props.ellipsisTooltip
381
+ tooltip: mergedEllipsisTooltip.value
359
382
  }, createSlots({
360
383
  default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
361
384
  _: 2
362
- }, [_ctx.$slots.tooltip ? {
385
+ }, [hasCustomTooltip.value ? {
363
386
  name: "tooltip",
364
- fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip")]),
387
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "tooltip", {}, () => [createTextVNode(toDisplayString(__props.tooltip), 1)])]),
365
388
  key: "0"
366
389
  } : void 0]), 1032, [
367
390
  "class",
368
391
  "line-clamp",
369
392
  "expand-trigger",
370
393
  "tooltip"
371
- ])) : _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
372
- key: 2,
394
+ ])) : hasCustomTooltip.value && __props.ellipsisTooltip !== false && _ctx.$slots.default ? (openBlock(), createBlock(unref(Tooltip), mergeProps({ key: 2 }, tooltipBindings.value, { content: __props.tooltip }), {
395
+ content: withCtx(() => [renderSlot(_ctx.$slots, "tooltip", {}, () => [createTextVNode(toDisplayString(__props.tooltip), 1)])]),
396
+ default: withCtx(() => [createElementVNode("span", { class: normalizeClass(`${unref(prefixCls)}-text`) }, [renderSlot(_ctx.$slots, "default")], 2)]),
397
+ _: 3
398
+ }, 16, ["content"])) : _ctx.$slots.default ? (openBlock(), createElementBlock("span", {
399
+ key: 3,
373
400
  class: normalizeClass(`${unref(prefixCls)}-text`)
374
401
  }, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("", true),
375
402
  __props.closable ? (openBlock(), createBlock(icon_hover_default, {
376
- key: 3,
403
+ key: 4,
377
404
  tabindex: "0",
378
405
  role: "button",
379
406
  "aria-label": unref(t)("a11y.close"),
@@ -390,7 +417,7 @@ var tag_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompon
390
417
  "class"
391
418
  ])) : createCommentVNode("", true),
392
419
  __props.loading ? (openBlock(), createElementBlock("span", {
393
- key: 4,
420
+ key: 5,
394
421
  class: normalizeClass(`${unref(prefixCls)}-loading-icon`)
395
422
  }, [createVNode(unref(IconLoading))], 2)) : createCommentVNode("", true)
396
423
  ], 46, _hoisted_1)) : createCommentVNode("", true);
@@ -28,7 +28,7 @@
28
28
  }
29
29
  .sd-tag-group-inner, .sd-tag-group-popover {
30
30
  display: inline-flex;
31
- gap: 4px;
31
+ gap: var(--component-tag-group-tag-group-gap, var(--component-tag-group-gap, var(--spacing-2, 4px)));
32
32
  align-items: center;
33
33
  min-width: 0;
34
34
  margin: 0;
@@ -41,13 +41,13 @@
41
41
  }
42
42
  .sd-tag-group-inner[data-part=content], .sd-tag-group-inner [data-part=content] {
43
43
  display: inline-flex;
44
- gap: 4px;
44
+ gap: var(--component-tag-group-tag-group-gap, var(--component-tag-group-gap, var(--spacing-2, 4px)));
45
45
  align-items: center;
46
46
  max-width: 100%;
47
47
  }
48
48
  .sd-tag-group-popover {
49
49
  flex-wrap: wrap;
50
- max-width: 320px;
50
+ max-width: var(--component-tag-group-tag-group-popover-max-width, var(--component-tag-group-popover-max-width, 320px));
51
51
  }
52
52
  .sd-tag-group-item {
53
53
  display: inline-flex;