@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/color/colors.scss';
2
3
  @use '@style/theme/index.scss' as global;
3
4
 
@@ -62,3 +63,150 @@ $badge-purple-color-dot-bg: rgb(var(string.unquote('#{global.$sd-cssvars-prefix}
62
63
  $badge-magenta-color-dot-bg: rgb(var(string.unquote('#{global.$sd-cssvars-prefix}-magenta-6')));
63
64
 
64
65
  $badge-gray-color-dot-bg: rgb(var(string.unquote('#{global.$sd-cssvars-prefix}-gray-4')));
66
+
67
+ // @generated runtime tokens — pnpm theme:generate
68
+ $badge-size-count-height: theme-runtime.token(
69
+ 'badge',
70
+ 'badge-size-count-height',
71
+ $badge-size-count-height,
72
+ 'size-5'
73
+ );
74
+ $badge-padding-count-horizontal: theme-runtime.token(
75
+ 'badge',
76
+ 'badge-padding-count-horizontal',
77
+ $badge-padding-count-horizontal,
78
+ 'spacing-3'
79
+ );
80
+ $badge-margin-status-text-left: theme-runtime.token(
81
+ 'badge',
82
+ 'badge-margin-status-text-left',
83
+ $badge-margin-status-text-left,
84
+ 'spacing-4'
85
+ );
86
+ $badge-font-count-size: theme-runtime.token(
87
+ 'badge',
88
+ 'badge-font-count-size',
89
+ $badge-font-count-size,
90
+ 'font-size-body-1'
91
+ );
92
+ $badge-font-status-text-size: theme-runtime.token(
93
+ 'badge',
94
+ 'badge-font-status-text-size',
95
+ $badge-font-status-text-size,
96
+ 'font-size-body-1'
97
+ );
98
+ $badge-color-count-text: theme-runtime.token(
99
+ 'badge',
100
+ 'badge-color-count-text',
101
+ $badge-color-count-text
102
+ );
103
+ $badge-color-status-text: theme-runtime.token(
104
+ 'badge',
105
+ 'badge-color-status-text',
106
+ $badge-color-status-text
107
+ );
108
+ $badge-color-count-bg: theme-runtime.token(
109
+ 'badge',
110
+ 'badge-color-count-bg',
111
+ $badge-color-count-bg,
112
+ 'color-danger-6'
113
+ );
114
+ $badge-size-dot-width: theme-runtime.token('badge', 'badge-size-dot-width', $badge-size-dot-width);
115
+ $badge-color-dot-bg_default: theme-runtime.token(
116
+ 'badge',
117
+ 'badge-color-dot-bg-default',
118
+ $badge-color-dot-bg_default
119
+ );
120
+ $badge-color-dot-bg_processing: theme-runtime.token(
121
+ 'badge',
122
+ 'badge-color-dot-bg-processing',
123
+ $badge-color-dot-bg_processing,
124
+ 'color-primary-6'
125
+ );
126
+ $badge-color-dot-bg_success: theme-runtime.token(
127
+ 'badge',
128
+ 'badge-color-dot-bg-success',
129
+ $badge-color-dot-bg_success,
130
+ 'color-success-6'
131
+ );
132
+ $badge-color-dot-bg_warning: theme-runtime.token(
133
+ 'badge',
134
+ 'badge-color-dot-bg-warning',
135
+ $badge-color-dot-bg_warning,
136
+ 'color-warning-6'
137
+ );
138
+ $badge-color-dot-bg_error: theme-runtime.token(
139
+ 'badge',
140
+ 'badge-color-dot-bg-error',
141
+ $badge-color-dot-bg_error,
142
+ 'color-danger-6'
143
+ );
144
+ $badge-font-count-weight: theme-runtime.token(
145
+ 'badge',
146
+ 'badge-font-count-weight',
147
+ $badge-font-count-weight,
148
+ 'font-weight-500'
149
+ );
150
+ $badge-red-color-dot-bg: theme-runtime.token(
151
+ 'badge',
152
+ 'badge-red-color-dot-bg',
153
+ $badge-red-color-dot-bg,
154
+ 'color-danger-6'
155
+ );
156
+ $badge-orangered-color-dot-bg: theme-runtime.token(
157
+ 'badge',
158
+ 'badge-orangered-color-dot-bg',
159
+ $badge-orangered-color-dot-bg
160
+ );
161
+ $badge-orange-color-dot-bg: theme-runtime.token(
162
+ 'badge',
163
+ 'badge-orange-color-dot-bg',
164
+ $badge-orange-color-dot-bg
165
+ );
166
+ $badge-lime-color-dot-bg: theme-runtime.token(
167
+ 'badge',
168
+ 'badge-lime-color-dot-bg',
169
+ $badge-lime-color-dot-bg
170
+ );
171
+ $badge-gold-color-dot-bg: theme-runtime.token(
172
+ 'badge',
173
+ 'badge-gold-color-dot-bg',
174
+ $badge-gold-color-dot-bg
175
+ );
176
+ $badge-green-color-dot-bg: theme-runtime.token(
177
+ 'badge',
178
+ 'badge-green-color-dot-bg',
179
+ $badge-green-color-dot-bg,
180
+ 'color-success-6'
181
+ );
182
+ $badge-cyan-color-dot-bg: theme-runtime.token(
183
+ 'badge',
184
+ 'badge-cyan-color-dot-bg',
185
+ $badge-cyan-color-dot-bg
186
+ );
187
+ $badge-sdblue-color-dot-bg: theme-runtime.token(
188
+ 'badge',
189
+ 'badge-sdblue-color-dot-bg',
190
+ $badge-sdblue-color-dot-bg,
191
+ 'color-primary-6'
192
+ );
193
+ $badge-pinkpurple-color-dot-bg: theme-runtime.token(
194
+ 'badge',
195
+ 'badge-pinkpurple-color-dot-bg',
196
+ $badge-pinkpurple-color-dot-bg
197
+ );
198
+ $badge-purple-color-dot-bg: theme-runtime.token(
199
+ 'badge',
200
+ 'badge-purple-color-dot-bg',
201
+ $badge-purple-color-dot-bg
202
+ );
203
+ $badge-magenta-color-dot-bg: theme-runtime.token(
204
+ 'badge',
205
+ 'badge-magenta-color-dot-bg',
206
+ $badge-magenta-color-dot-bg
207
+ );
208
+ $badge-gray-color-dot-bg: theme-runtime.token(
209
+ 'badge',
210
+ 'badge-gray-color-dot-bg',
211
+ $badge-gray-color-dot-bg
212
+ );
@@ -18,7 +18,7 @@
18
18
  .sd-basic-crud-table {
19
19
  display: flex;
20
20
  flex-direction: column;
21
- gap: 8px;
21
+ gap: var(--component-basic-crud-table-basic-crud-table-gap, var(--component-basic-crud-table-gap, var(--spacing-4, 8px)));
22
22
  width: 100%;
23
23
  min-width: 0;
24
24
  }
@@ -43,7 +43,7 @@
43
43
  .sd-basic-crud-table-header {
44
44
  display: flex;
45
45
  flex-direction: column;
46
- gap: 8px;
46
+ gap: var(--component-basic-crud-table-basic-crud-table-gap, var(--component-basic-crud-table-gap, var(--spacing-4, 8px)));
47
47
  }
48
48
  .sd-basic-crud-table-header-actions {
49
49
  display: flex;
@@ -51,8 +51,8 @@
51
51
  }
52
52
  .sd-basic-crud-table-title {
53
53
  margin: 0;
54
- color: var(--sd-color-text-1);
55
- font-size: 24px;
54
+ color: var(--component-basic-crud-table-basic-crud-table-title-color, var(--component-basic-crud-table-title-color, var(--sd-color-text-1)));
55
+ font-size: var(--component-basic-crud-table-basic-crud-table-title-size, var(--component-basic-crud-table-title-size, var(--font-size-title-3, 24px)));
56
56
  }
57
57
  .sd-basic-crud-table-body {
58
58
  width: 100%;
@@ -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';
@@ -6,3 +7,22 @@
6
7
  $basic-crud-table-gap: global.$spacing-4;
7
8
  $basic-crud-table-title-size: global.$font-size-title-3;
8
9
  $basic-crud-table-title-color: var(string.unquote('#{global.$sd-cssvars-prefix}-color-text-1'));
10
+
11
+ // @generated runtime tokens — pnpm theme:generate
12
+ $basic-crud-table-gap: theme-runtime.token(
13
+ 'basic-crud-table',
14
+ 'basic-crud-table-gap',
15
+ $basic-crud-table-gap,
16
+ 'spacing-4'
17
+ );
18
+ $basic-crud-table-title-size: theme-runtime.token(
19
+ 'basic-crud-table',
20
+ 'basic-crud-table-title-size',
21
+ $basic-crud-table-title-size,
22
+ 'font-size-title-3'
23
+ );
24
+ $basic-crud-table-title-color: theme-runtime.token(
25
+ 'basic-crud-table',
26
+ 'basic-crud-table-title-color',
27
+ $basic-crud-table-title-color
28
+ );
@@ -21,7 +21,7 @@
21
21
  }
22
22
  .sd-bloom-menu-trigger-content {
23
23
  display: inline-flex;
24
- gap: 8px;
24
+ gap: var(--component-bloom-menu-bloom-menu-item-gap, var(--component-bloom-menu-item-gap, var(--spacing-4, 8px)));
25
25
  align-items: center;
26
26
  white-space: nowrap;
27
27
  }
@@ -30,14 +30,14 @@
30
30
  height: 16px;
31
31
  }
32
32
  .sd-bloom-menu-panel {
33
- --bloom-menu-panel-width: min(86vw, 420px);
34
- --bloom-menu-panel-color: var(--sd-color-text-1);
35
- --bloom-menu-panel-background: var(--sd-color-bg-2);
36
- --bloom-menu-panel-border-color: var(--sd-color-neutral-3);
33
+ --bloom-menu-panel-width: var(--component-bloom-menu-bloom-menu-panel-width, var(--component-bloom-menu-panel-width, min(86vw, 420px)));
34
+ --bloom-menu-panel-color: var(--component-bloom-menu-bloom-menu-text-color, var(--component-bloom-menu-text-color, var(--sd-color-text-1)));
35
+ --bloom-menu-panel-background: var(--component-bloom-menu-bloom-menu-background, var(--component-bloom-menu-background, var(--sd-color-bg-2)));
36
+ --bloom-menu-panel-border-color: var(--component-bloom-menu-bloom-menu-border-color, var(--component-bloom-menu-border-color, var(--sd-color-neutral-3)));
37
37
  --bloom-menu-panel-border-radius: var(--sd-border-radius-medium);
38
- --bloom-menu-panel-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
38
+ --bloom-menu-panel-shadow: var(--component-bloom-menu-bloom-menu-shadow, var(--component-bloom-menu-shadow, 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08)));
39
39
  overflow: hidden;
40
- border: 1px solid var(--sd-color-neutral-3);
40
+ border: var(--component-bloom-menu-bloom-menu-border-width, var(--component-bloom-menu-border-width, var(--border-1, 1px))) var(--component-bloom-menu-bloom-menu-border-style, var(--component-bloom-menu-border-style, var(--border-solid, solid))) var(--component-bloom-menu-bloom-menu-border-color, var(--component-bloom-menu-border-color, var(--sd-color-neutral-3)));
41
41
  }
42
42
  .sd-bloom-menu-popup {
43
43
  padding: 0;
@@ -49,19 +49,19 @@
49
49
  display: flex;
50
50
  align-items: center;
51
51
  justify-content: space-between;
52
- padding: 12px 16px;
53
- color: var(--sd-color-text-2);
54
- border-bottom: 1px solid var(--sd-color-neutral-3);
52
+ padding: var(--component-bloom-menu-bloom-menu-header-padding-block, var(--component-bloom-menu-header-padding-block, var(--spacing-6, 12px))) var(--component-bloom-menu-bloom-menu-header-padding-inline, var(--component-bloom-menu-header-padding-inline, var(--spacing-7, 16px)));
53
+ color: var(--component-bloom-menu-bloom-menu-muted-color, var(--component-bloom-menu-muted-color, var(--sd-color-text-2)));
54
+ border-bottom: var(--component-bloom-menu-bloom-menu-border-width, var(--component-bloom-menu-border-width, var(--border-1, 1px))) var(--component-bloom-menu-bloom-menu-border-style, var(--component-bloom-menu-border-style, var(--border-solid, solid))) var(--component-bloom-menu-bloom-menu-border-color, var(--component-bloom-menu-border-color, var(--sd-color-neutral-3)));
55
55
  }
56
56
  .sd-bloom-menu-title {
57
- font-weight: 500;
58
- font-size: 14px;
57
+ font-weight: var(--component-bloom-menu-bloom-menu-font-weight, var(--component-bloom-menu-font-weight, var(--font-weight-500, 500)));
58
+ font-size: var(--component-bloom-menu-bloom-menu-font-size, var(--component-bloom-menu-font-size, var(--font-size-body-3, 14px)));
59
59
  }
60
60
  .sd-bloom-menu-close {
61
61
  color: inherit;
62
62
  }
63
63
  .sd-bloom-menu-close:hover {
64
- color: var(--sd-color-text-1);
64
+ color: var(--component-bloom-menu-bloom-menu-text-color, var(--component-bloom-menu-text-color, var(--sd-color-text-1)));
65
65
  }
66
66
  .sd-bloom-menu-close svg {
67
67
  width: 16px;
@@ -74,57 +74,56 @@
74
74
  .sd-bloom-menu-item {
75
75
  min-width: 0;
76
76
  height: auto;
77
- padding: 24px 12px;
78
- color: var(--sd-color-text-2);
77
+ padding: var(--component-bloom-menu-bloom-menu-item-padding-block, var(--component-bloom-menu-item-padding-block, var(--spacing-9, 24px))) var(--component-bloom-menu-bloom-menu-item-padding-inline, var(--component-bloom-menu-item-padding-inline, var(--spacing-6, 12px)));
78
+ color: var(--component-bloom-menu-bloom-menu-muted-color, var(--component-bloom-menu-muted-color, var(--sd-color-text-2)));
79
79
  border-radius: 0;
80
80
  }
81
81
  .sd-bloom-menu-item:hover:not(:disabled) {
82
- color: var(--sd-color-text-1);
83
- background: var(--sd-color-fill-2);
82
+ color: var(--component-bloom-menu-bloom-menu-text-color, var(--component-bloom-menu-text-color, var(--sd-color-text-1)));
83
+ background: var(--component-bloom-menu-bloom-menu-hover-background, var(--component-bloom-menu-hover-background, var(--sd-color-fill-2)));
84
84
  }
85
- .sd-bloom-menu-item:focus-visible {
86
- position: relative;
87
- z-index: 1;
88
- outline: 2px solid rgb(var(--sd-primary-6));
89
- outline-offset: -2px;
85
+ .sd-bloom-menu-item:focus-visible:not(:disabled) {
86
+ color: var(--component-bloom-menu-bloom-menu-text-color, var(--component-bloom-menu-text-color, var(--sd-color-text-1)));
87
+ background: var(--component-bloom-menu-bloom-menu-hover-background, var(--component-bloom-menu-hover-background, var(--sd-color-fill-2)));
88
+ outline: none;
90
89
  }
91
90
  .sd-bloom-menu-item-border-right {
92
- border-right: 1px solid var(--sd-color-neutral-3);
91
+ border-right: var(--component-bloom-menu-bloom-menu-border-width, var(--component-bloom-menu-border-width, var(--border-1, 1px))) var(--component-bloom-menu-bloom-menu-border-style, var(--component-bloom-menu-border-style, var(--border-solid, solid))) var(--component-bloom-menu-bloom-menu-border-color, var(--component-bloom-menu-border-color, var(--sd-color-neutral-3)));
93
92
  }
94
93
  .sd-bloom-menu-item-border-bottom {
95
- border-bottom: 1px solid var(--sd-color-neutral-3);
94
+ border-bottom: var(--component-bloom-menu-bloom-menu-border-width, var(--component-bloom-menu-border-width, var(--border-1, 1px))) var(--component-bloom-menu-bloom-menu-border-style, var(--component-bloom-menu-border-style, var(--border-solid, solid))) var(--component-bloom-menu-bloom-menu-border-color, var(--component-bloom-menu-border-color, var(--sd-color-neutral-3)));
96
95
  }
97
96
  .sd-bloom-menu-item-disabled, .sd-bloom-menu-item:disabled {
98
- color: var(--sd-color-text-4);
97
+ color: var(--component-bloom-menu-bloom-menu-disabled-color, var(--component-bloom-menu-disabled-color, var(--sd-color-text-4)));
99
98
  cursor: not-allowed;
100
99
  }
101
100
  .sd-bloom-menu-item-content {
102
101
  display: flex;
103
102
  flex-direction: column;
104
- gap: 8px;
103
+ gap: var(--component-bloom-menu-bloom-menu-item-gap, var(--component-bloom-menu-item-gap, var(--spacing-4, 8px)));
105
104
  align-items: center;
106
105
  min-width: 0;
107
106
  }
108
107
  .sd-bloom-menu-item-icon {
109
108
  display: inline-flex;
110
- font-size: 20px;
109
+ font-size: var(--component-bloom-menu-bloom-menu-icon-size, var(--component-bloom-menu-icon-size, var(--size-5, 20px)));
111
110
  }
112
111
  .sd-bloom-menu-item-icon svg {
113
- width: 20px;
114
- height: 20px;
112
+ width: var(--component-bloom-menu-bloom-menu-icon-size, var(--component-bloom-menu-icon-size, var(--size-5, 20px)));
113
+ height: var(--component-bloom-menu-bloom-menu-icon-size, var(--component-bloom-menu-icon-size, var(--size-5, 20px)));
115
114
  }
116
115
  .sd-bloom-menu-item-label {
117
116
  max-width: 100%;
118
117
  overflow: hidden;
119
- font-weight: 500;
120
- font-size: 14px;
118
+ font-weight: var(--component-bloom-menu-bloom-menu-font-weight, var(--component-bloom-menu-font-weight, var(--font-weight-500, 500)));
119
+ font-size: var(--component-bloom-menu-bloom-menu-font-size, var(--component-bloom-menu-font-size, var(--font-size-body-3, 14px)));
121
120
  white-space: nowrap;
122
121
  text-overflow: ellipsis;
123
122
  }
124
123
  .sd-bloom-menu-empty {
125
- padding: 24px 16px;
126
- color: var(--sd-color-text-2);
127
- font-size: 14px;
124
+ padding: var(--component-bloom-menu-bloom-menu-item-padding-block, var(--component-bloom-menu-item-padding-block, var(--spacing-9, 24px))) var(--component-bloom-menu-bloom-menu-header-padding-inline, var(--component-bloom-menu-header-padding-inline, var(--spacing-7, 16px)));
125
+ color: var(--component-bloom-menu-bloom-menu-muted-color, var(--component-bloom-menu-muted-color, var(--sd-color-text-2)));
126
+ font-size: var(--component-bloom-menu-bloom-menu-font-size, var(--component-bloom-menu-font-size, var(--font-size-body-3, 14px)));
128
127
  text-align: center;
129
128
  }
130
129
 
@@ -86,11 +86,11 @@ $bloom-menu-prefix-cls: string.unquote('#{theme.$prefix}-bloom-menu');
86
86
  background: $bloom-menu-hover-background;
87
87
  }
88
88
 
89
- &:focus-visible {
90
- position: relative;
91
- z-index: 1;
92
- outline: 2px solid theme.$color-primary-6;
93
- outline-offset: -2px;
89
+ // 键盘焦点与 hover 保持同一视觉
90
+ &:focus-visible:not(:disabled) {
91
+ color: $bloom-menu-text-color;
92
+ background: $bloom-menu-hover-background;
93
+ outline: none;
94
94
  }
95
95
 
96
96
  &-border-right {
@@ -1,3 +1,4 @@
1
+ @use '@style/theme/runtime.scss' as theme-runtime;
1
2
  @use '@style/theme/index.scss' as global;
2
3
  @use 'sass:string';
3
4
 
@@ -22,3 +23,101 @@ $bloom-menu-font-size: global.$font-size-body-3;
22
23
  $bloom-menu-font-weight: global.$font-weight-500;
23
24
  $bloom-menu-icon-size: global.$size-5;
24
25
  $bloom-menu-shadow: global.$shadow2-down;
26
+
27
+ // @generated runtime tokens — pnpm theme:generate
28
+ $bloom-menu-panel-width: theme-runtime.token(
29
+ 'bloom-menu',
30
+ 'bloom-menu-panel-width',
31
+ $bloom-menu-panel-width
32
+ );
33
+ $bloom-menu-border-width: theme-runtime.token(
34
+ 'bloom-menu',
35
+ 'bloom-menu-border-width',
36
+ $bloom-menu-border-width,
37
+ 'border-1'
38
+ );
39
+ $bloom-menu-border-style: theme-runtime.token(
40
+ 'bloom-menu',
41
+ 'bloom-menu-border-style',
42
+ $bloom-menu-border-style,
43
+ 'border-solid'
44
+ );
45
+ $bloom-menu-border-color: theme-runtime.token(
46
+ 'bloom-menu',
47
+ 'bloom-menu-border-color',
48
+ $bloom-menu-border-color
49
+ );
50
+ $bloom-menu-background: theme-runtime.token(
51
+ 'bloom-menu',
52
+ 'bloom-menu-background',
53
+ $bloom-menu-background
54
+ );
55
+ $bloom-menu-text-color: theme-runtime.token(
56
+ 'bloom-menu',
57
+ 'bloom-menu-text-color',
58
+ $bloom-menu-text-color
59
+ );
60
+ $bloom-menu-muted-color: theme-runtime.token(
61
+ 'bloom-menu',
62
+ 'bloom-menu-muted-color',
63
+ $bloom-menu-muted-color
64
+ );
65
+ $bloom-menu-hover-background: theme-runtime.token(
66
+ 'bloom-menu',
67
+ 'bloom-menu-hover-background',
68
+ $bloom-menu-hover-background
69
+ );
70
+ $bloom-menu-disabled-color: theme-runtime.token(
71
+ 'bloom-menu',
72
+ 'bloom-menu-disabled-color',
73
+ $bloom-menu-disabled-color
74
+ );
75
+ $bloom-menu-header-padding-block: theme-runtime.token(
76
+ 'bloom-menu',
77
+ 'bloom-menu-header-padding-block',
78
+ $bloom-menu-header-padding-block,
79
+ 'spacing-6'
80
+ );
81
+ $bloom-menu-header-padding-inline: theme-runtime.token(
82
+ 'bloom-menu',
83
+ 'bloom-menu-header-padding-inline',
84
+ $bloom-menu-header-padding-inline,
85
+ 'spacing-7'
86
+ );
87
+ $bloom-menu-item-padding-block: theme-runtime.token(
88
+ 'bloom-menu',
89
+ 'bloom-menu-item-padding-block',
90
+ $bloom-menu-item-padding-block,
91
+ 'spacing-9'
92
+ );
93
+ $bloom-menu-item-padding-inline: theme-runtime.token(
94
+ 'bloom-menu',
95
+ 'bloom-menu-item-padding-inline',
96
+ $bloom-menu-item-padding-inline,
97
+ 'spacing-6'
98
+ );
99
+ $bloom-menu-item-gap: theme-runtime.token(
100
+ 'bloom-menu',
101
+ 'bloom-menu-item-gap',
102
+ $bloom-menu-item-gap,
103
+ 'spacing-4'
104
+ );
105
+ $bloom-menu-font-size: theme-runtime.token(
106
+ 'bloom-menu',
107
+ 'bloom-menu-font-size',
108
+ $bloom-menu-font-size,
109
+ 'font-size-body-3'
110
+ );
111
+ $bloom-menu-font-weight: theme-runtime.token(
112
+ 'bloom-menu',
113
+ 'bloom-menu-font-weight',
114
+ $bloom-menu-font-weight,
115
+ 'font-weight-500'
116
+ );
117
+ $bloom-menu-icon-size: theme-runtime.token(
118
+ 'bloom-menu',
119
+ 'bloom-menu-icon-size',
120
+ $bloom-menu-icon-size,
121
+ 'size-5'
122
+ );
123
+ $bloom-menu-shadow: theme-runtime.token('bloom-menu', 'bloom-menu-shadow', $bloom-menu-shadow);
@@ -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';
@@ -10,3 +11,30 @@ $border-beam-border-radius-md: 16px;
10
11
  $border-beam-border-radius-line: 16px;
11
12
  $border-beam-border-radius-pulse-outside: 16px;
12
13
  $border-beam-border-radius-pulse-inner: 16px;
14
+
15
+ // @generated runtime tokens — pnpm theme:generate
16
+ $border-beam-border-radius-sm: theme-runtime.token(
17
+ 'border-beam',
18
+ 'border-beam-border-radius-sm',
19
+ $border-beam-border-radius-sm
20
+ );
21
+ $border-beam-border-radius-md: theme-runtime.token(
22
+ 'border-beam',
23
+ 'border-beam-border-radius-md',
24
+ $border-beam-border-radius-md
25
+ );
26
+ $border-beam-border-radius-line: theme-runtime.token(
27
+ 'border-beam',
28
+ 'border-beam-border-radius-line',
29
+ $border-beam-border-radius-line
30
+ );
31
+ $border-beam-border-radius-pulse-outside: theme-runtime.token(
32
+ 'border-beam',
33
+ 'border-beam-border-radius-pulse-outside',
34
+ $border-beam-border-radius-pulse-outside
35
+ );
36
+ $border-beam-border-radius-pulse-inner: theme-runtime.token(
37
+ 'border-beam',
38
+ 'border-beam-border-radius-pulse-inner',
39
+ $border-beam-border-radius-pulse-inner
40
+ );
@@ -19,7 +19,7 @@
19
19
  display: inline-flex;
20
20
  align-items: center;
21
21
  color: var(--sd-color-text-2);
22
- font-size: 14px;
22
+ font-size: var(--component-breadcrumb-breadcrumb-size-font-size, var(--component-breadcrumb-size-font-size, var(--font-size-body-3, 14px)));
23
23
  }
24
24
  .sd-breadcrumb-icon {
25
25
  color: var(--sd-color-text-2);
@@ -27,29 +27,29 @@
27
27
  .sd-breadcrumb-item {
28
28
  display: inline-block;
29
29
  padding: 0 4px;
30
- color: var(--sd-color-text-2);
31
- line-height: 24px;
30
+ color: var(--component-breadcrumb-breadcrumb-color-text, var(--component-breadcrumb-color-text, var(--sd-color-text-2)));
31
+ line-height: var(--component-breadcrumb-breadcrumb-size-text-height, var(--component-breadcrumb-size-text-height, var(--size-6, 24px)));
32
32
  vertical-align: middle;
33
33
  }
34
34
  .sd-breadcrumb-item > .sd-icon {
35
- color: var(--sd-color-text-3);
35
+ color: var(--component-breadcrumb-breadcrumb-color-icon, var(--component-breadcrumb-color-icon, var(--sd-color-text-3)));
36
36
  }
37
37
  .sd-breadcrumb-item a {
38
38
  display: inline-block;
39
39
  margin: 0 -4px;
40
40
  padding: 0 4px;
41
- color: var(--sd-color-text-2);
41
+ color: var(--component-breadcrumb-breadcrumb-color-link-text, var(--component-breadcrumb-color-link-text, var(--sd-color-text-2)));
42
42
  text-decoration: none;
43
- background-color: transparent;
44
- border-radius: var(--sd-border-radius-small);
43
+ background-color: var(--component-breadcrumb-breadcrumb-color-bg, var(--component-breadcrumb-color-bg, var(--color-transparent, var(--sd-color-transparent, transparent))));
44
+ border-radius: var(--component-breadcrumb-breadcrumb-border-text-radius-hover, var(--component-breadcrumb-border-text-radius-hover, var(--sd-border-radius-small)));
45
45
  }
46
46
  .sd-breadcrumb-item a:hover {
47
- color: rgb(var(--sd-link-6));
48
- background-color: var(--sd-color-fill-2);
47
+ color: var(--component-breadcrumb-breadcrumb-color-link-text-hover, var(--component-breadcrumb-color-link-text-hover, var(--color-link-6, var(--sd-color-link-6, rgb(var(--sd-link-6))))));
48
+ background-color: var(--component-breadcrumb-breadcrumb-color-bg-hover, var(--component-breadcrumb-color-bg-hover, var(--sd-color-fill-2)));
49
49
  }
50
50
  .sd-breadcrumb-item:last-child {
51
- color: var(--sd-color-text-1);
52
- font-weight: 500;
51
+ color: var(--component-breadcrumb-breadcrumb-color-text-active, var(--component-breadcrumb-color-text-active, var(--sd-color-text-1)));
52
+ font-weight: var(--component-breadcrumb-breadcrumb-font-weight-active, var(--component-breadcrumb-font-weight-active, var(--font-weight-500, 500)));
53
53
  }
54
54
  .sd-breadcrumb-item-ellipses {
55
55
  position: relative;
@@ -60,18 +60,18 @@
60
60
  }
61
61
  .sd-breadcrumb-item-separator {
62
62
  display: inline-block;
63
- margin: 0 4px;
64
- color: var(--sd-color-text-4);
65
- line-height: 24px;
63
+ margin: 0 var(--component-breadcrumb-breadcrumb-margin-separator-horizontal, var(--component-breadcrumb-margin-separator-horizontal, var(--spacing-2, 4px)));
64
+ color: var(--component-breadcrumb-breadcrumb-color-separator, var(--component-breadcrumb-color-separator, var(--sd-color-text-4)));
65
+ line-height: var(--component-breadcrumb-breadcrumb-size-text-height, var(--component-breadcrumb-size-text-height, var(--size-6, 24px)));
66
66
  vertical-align: middle;
67
67
  }
68
68
  .sd-breadcrumb-item-with-dropdown {
69
69
  cursor: pointer;
70
70
  }
71
71
  .sd-breadcrumb-item-dropdown-icon {
72
- margin-left: 4px;
73
- color: var(--sd-color-text-2);
74
- font-size: 12px;
72
+ margin-left: var(--component-breadcrumb-breadcrumb-margin-dropdown-icon-left, var(--component-breadcrumb-margin-dropdown-icon-left, var(--spacing-2, 4px)));
73
+ color: var(--component-breadcrumb-breadcrumb-color-dropdown-icon, var(--component-breadcrumb-color-dropdown-icon, var(--sd-color-text-2)));
74
+ font-size: var(--component-breadcrumb-breadcrumb-size-dropdown-icon, var(--component-breadcrumb-size-dropdown-icon, var(--size-3, 12px)));
75
75
  }
76
76
  .sd-breadcrumb-item-dropdown-icon-active svg {
77
77
  transform: rotate(180deg);
@@ -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';
@@ -41,3 +42,99 @@ $breadcrumb-color-icon: var(string.unquote('#{global.$sd-cssvars-prefix}-color-t
41
42
  $breadcrumb-color-link-text_hover: global.$color-link-6;
42
43
 
43
44
  $breadcrumb-color-dropdown-icon: var(string.unquote('#{global.$sd-cssvars-prefix}-color-text-2'));
45
+
46
+ // @generated runtime tokens — pnpm theme:generate
47
+ $breadcrumb-color-text: theme-runtime.token(
48
+ 'breadcrumb',
49
+ 'breadcrumb-color-text',
50
+ $breadcrumb-color-text
51
+ );
52
+ $breadcrumb-color-text_active: theme-runtime.token(
53
+ 'breadcrumb',
54
+ 'breadcrumb-color-text-active',
55
+ $breadcrumb-color-text_active
56
+ );
57
+ $breadcrumb-color-link-text: theme-runtime.token(
58
+ 'breadcrumb',
59
+ 'breadcrumb-color-link-text',
60
+ $breadcrumb-color-link-text
61
+ );
62
+ $breadcrumb-color-separator: theme-runtime.token(
63
+ 'breadcrumb',
64
+ 'breadcrumb-color-separator',
65
+ $breadcrumb-color-separator
66
+ );
67
+ $breadcrumb-color-bg_hover: theme-runtime.token(
68
+ 'breadcrumb',
69
+ 'breadcrumb-color-bg-hover',
70
+ $breadcrumb-color-bg_hover
71
+ );
72
+ $breadcrumb-color-bg: theme-runtime.token(
73
+ 'breadcrumb',
74
+ 'breadcrumb-color-bg',
75
+ $breadcrumb-color-bg,
76
+ 'color-transparent'
77
+ );
78
+ $breadcrumb-margin-separator-horizontal: theme-runtime.token(
79
+ 'breadcrumb',
80
+ 'breadcrumb-margin-separator-horizontal',
81
+ $breadcrumb-margin-separator-horizontal,
82
+ 'spacing-2'
83
+ );
84
+ $breadcrumb-margin-dropdown-icon-left: theme-runtime.token(
85
+ 'breadcrumb',
86
+ 'breadcrumb-margin-dropdown-icon-left',
87
+ $breadcrumb-margin-dropdown-icon-left,
88
+ 'spacing-2'
89
+ );
90
+ $breadcrumb-border-text-radius_hover: theme-runtime.token(
91
+ 'breadcrumb',
92
+ 'breadcrumb-border-text-radius-hover',
93
+ $breadcrumb-border-text-radius_hover
94
+ );
95
+ $breadcrumb-size-text-height: theme-runtime.token(
96
+ 'breadcrumb',
97
+ 'breadcrumb-size-text-height',
98
+ $breadcrumb-size-text-height,
99
+ 'size-6'
100
+ );
101
+ $breadcrumb-size-separator-height: theme-runtime.token(
102
+ 'breadcrumb',
103
+ 'breadcrumb-size-separator-height',
104
+ $breadcrumb-size-separator-height,
105
+ 'size-3'
106
+ );
107
+ $breadcrumb-size-dropdown-icon: theme-runtime.token(
108
+ 'breadcrumb',
109
+ 'breadcrumb-size-dropdown-icon',
110
+ $breadcrumb-size-dropdown-icon,
111
+ 'size-3'
112
+ );
113
+ $breadcrumb-size-font-size: theme-runtime.token(
114
+ 'breadcrumb',
115
+ 'breadcrumb-size-font-size',
116
+ $breadcrumb-size-font-size,
117
+ 'font-size-body-3'
118
+ );
119
+ $breadcrumb-font-weight_active: theme-runtime.token(
120
+ 'breadcrumb',
121
+ 'breadcrumb-font-weight-active',
122
+ $breadcrumb-font-weight_active,
123
+ 'font-weight-500'
124
+ );
125
+ $breadcrumb-color-icon: theme-runtime.token(
126
+ 'breadcrumb',
127
+ 'breadcrumb-color-icon',
128
+ $breadcrumb-color-icon
129
+ );
130
+ $breadcrumb-color-link-text_hover: theme-runtime.token(
131
+ 'breadcrumb',
132
+ 'breadcrumb-color-link-text-hover',
133
+ $breadcrumb-color-link-text_hover,
134
+ 'color-link-6'
135
+ );
136
+ $breadcrumb-color-dropdown-icon: theme-runtime.token(
137
+ 'breadcrumb',
138
+ 'breadcrumb-color-dropdown-icon',
139
+ $breadcrumb-color-dropdown-icon
140
+ );