@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';
@@ -95,3 +96,228 @@ $input-tag-tag-remove-icon-color-bg_focus: var(
95
96
  $input-tag-size-medium-height: $input-tag-size-default-height;
96
97
  $input-tag-size-medium-tag-height: $input-tag-size-default-tag-height;
97
98
  $input-tag-size-medium-font-size: $input-tag-size-default-font-size;
99
+
100
+ // @generated runtime tokens — pnpm theme:generate
101
+ $input-tag-color-text_default: theme-runtime.token(
102
+ 'input-tag',
103
+ 'input-tag-color-text-default',
104
+ $input-tag-color-text_default
105
+ );
106
+ $input-tag-color-text_error: theme-runtime.token(
107
+ 'input-tag',
108
+ 'input-tag-color-text-error',
109
+ $input-tag-color-text_error
110
+ );
111
+ $input-tag-color-text_disabled: theme-runtime.token(
112
+ 'input-tag',
113
+ 'input-tag-color-text-disabled',
114
+ $input-tag-color-text_disabled
115
+ );
116
+ $input-tag-color-placeholder: theme-runtime.token(
117
+ 'input-tag',
118
+ 'input-tag-color-placeholder',
119
+ $input-tag-color-placeholder
120
+ );
121
+ $input-tag-color-icon-clear: theme-runtime.token(
122
+ 'input-tag',
123
+ 'input-tag-color-icon-clear',
124
+ $input-tag-color-icon-clear
125
+ );
126
+ $input-tag-color-icon-clear-bg_hover: theme-runtime.token(
127
+ 'input-tag',
128
+ 'input-tag-color-icon-clear-bg-hover',
129
+ $input-tag-color-icon-clear-bg_hover
130
+ );
131
+ $input-tag-color-border_default: theme-runtime.token(
132
+ 'input-tag',
133
+ 'input-tag-color-border-default',
134
+ $input-tag-color-border_default,
135
+ 'color-transparent'
136
+ );
137
+ $input-tag-color-border_default_hover: theme-runtime.token(
138
+ 'input-tag',
139
+ 'input-tag-color-border-default-hover',
140
+ $input-tag-color-border_default_hover,
141
+ 'color-transparent'
142
+ );
143
+ $input-tag-color-border_default_focus: theme-runtime.token(
144
+ 'input-tag',
145
+ 'input-tag-color-border-default-focus',
146
+ $input-tag-color-border_default_focus,
147
+ 'color-primary-6'
148
+ );
149
+ $input-tag-color-border_error: theme-runtime.token(
150
+ 'input-tag',
151
+ 'input-tag-color-border-error',
152
+ $input-tag-color-border_error,
153
+ 'color-transparent'
154
+ );
155
+ $input-tag-color-border_error_hover: theme-runtime.token(
156
+ 'input-tag',
157
+ 'input-tag-color-border-error-hover',
158
+ $input-tag-color-border_error_hover,
159
+ 'color-transparent'
160
+ );
161
+ $input-tag-color-border_error_focus: theme-runtime.token(
162
+ 'input-tag',
163
+ 'input-tag-color-border-error-focus',
164
+ $input-tag-color-border_error_focus,
165
+ 'color-danger-6'
166
+ );
167
+ $input-tag-color-border_disabled: theme-runtime.token(
168
+ 'input-tag',
169
+ 'input-tag-color-border-disabled',
170
+ $input-tag-color-border_disabled,
171
+ 'color-transparent'
172
+ );
173
+ $input-tag-color-border_disabled_hover: theme-runtime.token(
174
+ 'input-tag',
175
+ 'input-tag-color-border-disabled-hover',
176
+ $input-tag-color-border_disabled
177
+ );
178
+ $input-tag-color-border_disabled_focus: theme-runtime.token(
179
+ 'input-tag',
180
+ 'input-tag-color-border-disabled-focus',
181
+ $input-tag-color-border_disabled
182
+ );
183
+ $input-tag-color-bg_default: theme-runtime.token(
184
+ 'input-tag',
185
+ 'input-tag-color-bg-default',
186
+ $input-tag-color-bg_default
187
+ );
188
+ $input-tag-color-bg_default_hover: theme-runtime.token(
189
+ 'input-tag',
190
+ 'input-tag-color-bg-default-hover',
191
+ $input-tag-color-bg_default_hover
192
+ );
193
+ $input-tag-color-bg_default_focus: theme-runtime.token(
194
+ 'input-tag',
195
+ 'input-tag-color-bg-default-focus',
196
+ $input-tag-color-bg_default_focus
197
+ );
198
+ $input-tag-color-bg_error: theme-runtime.token(
199
+ 'input-tag',
200
+ 'input-tag-color-bg-error',
201
+ $input-tag-color-bg_error,
202
+ 'color-danger-1'
203
+ );
204
+ $input-tag-color-bg_error_hover: theme-runtime.token(
205
+ 'input-tag',
206
+ 'input-tag-color-bg-error-hover',
207
+ $input-tag-color-bg_error_hover,
208
+ 'color-danger-2'
209
+ );
210
+ $input-tag-color-bg_error_focus: theme-runtime.token(
211
+ 'input-tag',
212
+ 'input-tag-color-bg-error-focus',
213
+ $input-tag-color-bg_error_focus
214
+ );
215
+ $input-tag-color-bg_disabled: theme-runtime.token(
216
+ 'input-tag',
217
+ 'input-tag-color-bg-disabled',
218
+ $input-tag-color-bg_disabled
219
+ );
220
+ $input-tag-color-bg_disabled_hover: theme-runtime.token(
221
+ 'input-tag',
222
+ 'input-tag-color-bg-disabled-hover',
223
+ $input-tag-color-bg_disabled
224
+ );
225
+ $input-tag-color-shadow_default_focus: theme-runtime.token(
226
+ 'input-tag',
227
+ 'input-tag-color-shadow-default-focus',
228
+ $input-tag-color-shadow_default_focus,
229
+ 'color-primary-2'
230
+ );
231
+ $input-tag-color-shadow_error_focus: theme-runtime.token(
232
+ 'input-tag',
233
+ 'input-tag-color-shadow-error-focus',
234
+ $input-tag-color-shadow_error_focus,
235
+ 'color-danger-2'
236
+ );
237
+ $input-tag-size-shadow_error_focus: theme-runtime.token(
238
+ 'input-tag',
239
+ 'input-tag-size-shadow-error-focus',
240
+ $input-tag-size-shadow_error_focus,
241
+ 'shadow-distance-none'
242
+ );
243
+ $input-tag-size-shadow_default_focus: theme-runtime.token(
244
+ 'input-tag',
245
+ 'input-tag-size-shadow-default-focus',
246
+ $input-tag-size-shadow_default_focus,
247
+ 'shadow-distance-none'
248
+ );
249
+ $input-tag-tag-margin-right: theme-runtime.token(
250
+ 'input-tag',
251
+ 'input-tag-tag-margin-right',
252
+ $input-tag-tag-margin-right,
253
+ 'spacing-2'
254
+ );
255
+ $input-tag-padding-horizontal: theme-runtime.token(
256
+ 'input-tag',
257
+ 'input-tag-padding-horizontal',
258
+ $input-tag-padding-horizontal,
259
+ 'spacing-2'
260
+ );
261
+ $input-tag-border-radius: theme-runtime.token(
262
+ 'input-tag',
263
+ 'input-tag-border-radius',
264
+ $input-tag-border-radius
265
+ );
266
+ $input-tag-size-icon-clear: theme-runtime.token(
267
+ 'input-tag',
268
+ 'input-tag-size-icon-clear',
269
+ $input-tag-size-icon-clear,
270
+ 'size-3'
271
+ );
272
+ $input-tag-size-icon-clear_hover: theme-runtime.token(
273
+ 'input-tag',
274
+ 'input-tag-size-icon-clear-hover',
275
+ $input-tag-size-icon-clear_hover,
276
+ 'size-5'
277
+ );
278
+ $input-tag-tag-font-size: theme-runtime.token(
279
+ 'input-tag',
280
+ 'input-tag-tag-font-size',
281
+ $input-tag-tag-font-size,
282
+ 'font-size-body-1'
283
+ );
284
+ $input-tag-tag-color-bg: theme-runtime.token(
285
+ 'input-tag',
286
+ 'input-tag-tag-color-bg',
287
+ $input-tag-tag-color-bg
288
+ );
289
+ $input-tag-tag-color-bg_focus: theme-runtime.token(
290
+ 'input-tag',
291
+ 'input-tag-tag-color-bg-focus',
292
+ $input-tag-tag-color-bg_focus
293
+ );
294
+ $input-tag-tag-color-bg_disabled: theme-runtime.token(
295
+ 'input-tag',
296
+ 'input-tag-tag-color-bg-disabled',
297
+ $input-tag-tag-color-bg_disabled
298
+ );
299
+ $input-tag-tag-color-border: theme-runtime.token(
300
+ 'input-tag',
301
+ 'input-tag-tag-color-border',
302
+ $input-tag-tag-color-border
303
+ );
304
+ $input-tag-tag-color-border_disabled: theme-runtime.token(
305
+ 'input-tag',
306
+ 'input-tag-tag-color-border-disabled',
307
+ $input-tag-tag-color-border_disabled
308
+ );
309
+ $input-tag-tag-color-border_focus: theme-runtime.token(
310
+ 'input-tag',
311
+ 'input-tag-tag-color-border-focus',
312
+ $input-tag-tag-color-border_focus
313
+ );
314
+ $input-tag-tag-remove-icon-color-bg: theme-runtime.token(
315
+ 'input-tag',
316
+ 'input-tag-tag-remove-icon-color-bg',
317
+ $input-tag-tag-remove-icon-color-bg
318
+ );
319
+ $input-tag-tag-remove-icon-color-bg_focus: theme-runtime.token(
320
+ 'input-tag',
321
+ 'input-tag-tag-remove-icon-color-bg-focus',
322
+ $input-tag-tag-remove-icon-color-bg_focus
323
+ );
@@ -16,12 +16,12 @@
16
16
  /******** radius *******/
17
17
  /********* icon hover *********/
18
18
  .sd-json-form-row {
19
- gap: 8px 8px;
19
+ gap: var(--component-json-form-json-form-spacing-row-gap, var(--component-json-form-spacing-row-gap, var(--spacing-4, 8px))) var(--component-json-form-json-form-spacing-col-gap, var(--component-json-form-spacing-col-gap, var(--spacing-4, 8px)));
20
20
  }
21
21
  .sd-json-form-control {
22
22
  width: 100%;
23
23
  min-width: 0;
24
- border-radius: 6px;
24
+ border-radius: var(--component-json-form-json-form-border-radius-control, var(--component-json-form-border-radius-control, var(--border-radius-medium, 6px)));
25
25
  }
26
26
  .sd-json-form-chips {
27
27
  display: inline-flex;
@@ -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';
@@ -5,3 +6,23 @@
5
6
  $json-form-spacing-row-gap: global.$spacing-4;
6
7
  $json-form-spacing-col-gap: global.$spacing-4;
7
8
  $json-form-border-radius-control: global.$border-radius-medium;
9
+
10
+ // @generated runtime tokens — pnpm theme:generate
11
+ $json-form-spacing-row-gap: theme-runtime.token(
12
+ 'json-form',
13
+ 'json-form-spacing-row-gap',
14
+ $json-form-spacing-row-gap,
15
+ 'spacing-4'
16
+ );
17
+ $json-form-spacing-col-gap: theme-runtime.token(
18
+ 'json-form',
19
+ 'json-form-spacing-col-gap',
20
+ $json-form-spacing-col-gap,
21
+ 'spacing-4'
22
+ );
23
+ $json-form-border-radius-control: theme-runtime.token(
24
+ 'json-form',
25
+ 'json-form-border-radius-control',
26
+ $json-form-border-radius-control,
27
+ 'border-radius-medium'
28
+ );
@@ -18,20 +18,20 @@
18
18
  .sd-kv-list {
19
19
  box-sizing: border-box;
20
20
  overflow: hidden;
21
- background: var(--sd-color-bg-2);
22
- border: 1px solid var(--sd-color-neutral-3);
23
- border-radius: var(--sd-border-radius-medium);
21
+ background: var(--component-kv-list-kv-list-color-bg, var(--component-kv-list-color-bg, var(--sd-color-bg-2)));
22
+ border: var(--component-kv-list-kv-list-border-width, var(--component-kv-list-border-width, var(--border-1, 1px))) solid var(--component-kv-list-kv-list-color-border, var(--component-kv-list-color-border, var(--sd-color-neutral-3)));
23
+ border-radius: var(--component-kv-list-kv-list-border-radius, var(--component-kv-list-border-radius, var(--sd-border-radius-medium)));
24
24
  }
25
25
  .sd-kv-list-toolbar {
26
26
  display: flex;
27
27
  justify-content: flex-end;
28
- padding: 8px;
29
- border-bottom: 1px solid var(--sd-color-neutral-3);
28
+ padding: var(--component-kv-list-kv-list-padding, var(--component-kv-list-padding, var(--spacing-4, 8px)));
29
+ border-bottom: var(--component-kv-list-kv-list-border-width, var(--component-kv-list-border-width, var(--border-1, 1px))) solid var(--component-kv-list-kv-list-color-border, var(--component-kv-list-color-border, var(--sd-color-neutral-3)));
30
30
  }
31
31
  .sd-kv-list-toolbar-actions, .sd-kv-list-row-actions {
32
32
  display: flex;
33
33
  flex-shrink: 0;
34
- gap: 8px;
34
+ gap: var(--component-kv-list-kv-list-gap, var(--component-kv-list-gap, var(--spacing-4, 8px)));
35
35
  align-items: center;
36
36
  }
37
37
  .sd-kv-list-rows {
@@ -41,24 +41,24 @@
41
41
  .sd-kv-list-row {
42
42
  display: grid;
43
43
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
44
- gap: 8px;
44
+ gap: var(--component-kv-list-kv-list-gap, var(--component-kv-list-gap, var(--spacing-4, 8px)));
45
45
  align-items: center;
46
- padding: 8px;
47
- border-bottom: 1px solid var(--sd-color-neutral-3);
48
- transition: background-color 0.2s, opacity 0.2s;
46
+ padding: var(--component-kv-list-kv-list-padding, var(--component-kv-list-padding, var(--spacing-4, 8px)));
47
+ border-bottom: var(--component-kv-list-kv-list-border-width, var(--component-kv-list-border-width, var(--border-1, 1px))) solid var(--component-kv-list-kv-list-color-border, var(--component-kv-list-color-border, var(--sd-color-neutral-3)));
48
+ transition: background-color var(--component-kv-list-kv-list-transition-duration, var(--component-kv-list-transition-duration, 0.2s)), opacity var(--component-kv-list-kv-list-transition-duration, var(--component-kv-list-transition-duration, 0.2s));
49
49
  }
50
50
  .sd-kv-list-row:last-child {
51
51
  border-bottom: 0;
52
52
  }
53
53
  .sd-kv-list-row--ghost {
54
- background: var(--sd-color-primary-light-1);
54
+ background: var(--component-kv-list-kv-list-color-ghost, var(--component-kv-list-color-ghost, var(--sd-color-primary-light-1)));
55
55
  opacity: 0.45;
56
56
  }
57
57
  .sd-kv-list-row--chosen {
58
- background: var(--sd-color-primary-light-1);
58
+ background: var(--component-kv-list-kv-list-color-ghost, var(--component-kv-list-color-ghost, var(--sd-color-primary-light-1)));
59
59
  }
60
60
  .sd-kv-list-drag-handle {
61
- color: var(--sd-color-text-3);
61
+ color: var(--component-kv-list-kv-list-color-drag, var(--component-kv-list-color-drag, var(--sd-color-text-3)));
62
62
  cursor: grab;
63
63
  }
64
64
  .sd-kv-list-drag-handle:active {
@@ -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
 
@@ -12,3 +13,31 @@ $kv-list-border-radius: global.$radius-medium;
12
13
  $kv-list-gap: global.$spacing-4;
13
14
  $kv-list-padding: global.$spacing-4;
14
15
  $kv-list-transition-duration: global.$transition-duration-2;
16
+
17
+ // @generated runtime tokens — pnpm theme:generate
18
+ $kv-list-color-bg: theme-runtime.token('kv-list', 'kv-list-color-bg', $kv-list-color-bg);
19
+ $kv-list-color-border: theme-runtime.token(
20
+ 'kv-list',
21
+ 'kv-list-color-border',
22
+ $kv-list-color-border
23
+ );
24
+ $kv-list-color-drag: theme-runtime.token('kv-list', 'kv-list-color-drag', $kv-list-color-drag);
25
+ $kv-list-color-ghost: theme-runtime.token('kv-list', 'kv-list-color-ghost', $kv-list-color-ghost);
26
+ $kv-list-border-width: theme-runtime.token(
27
+ 'kv-list',
28
+ 'kv-list-border-width',
29
+ $kv-list-border-width,
30
+ 'border-1'
31
+ );
32
+ $kv-list-border-radius: theme-runtime.token(
33
+ 'kv-list',
34
+ 'kv-list-border-radius',
35
+ $kv-list-border-radius
36
+ );
37
+ $kv-list-gap: theme-runtime.token('kv-list', 'kv-list-gap', $kv-list-gap, 'spacing-4');
38
+ $kv-list-padding: theme-runtime.token('kv-list', 'kv-list-padding', $kv-list-padding, 'spacing-4');
39
+ $kv-list-transition-duration: theme-runtime.token(
40
+ 'kv-list',
41
+ 'kv-list-transition-duration',
42
+ $kv-list-transition-duration
43
+ );
@@ -44,7 +44,7 @@
44
44
  flex-direction: column;
45
45
  /* fix firefox can't set height smaller than content on flex item */
46
46
  min-height: 0;
47
- background: var(--sd-color-fill-1);
47
+ background: var(--component-layout-layout-body-bg, var(--component-layout-body-bg, var(--sd-color-fill-1)));
48
48
  }
49
49
  .sd-layout, .sd-layout * {
50
50
  box-sizing: border-box;
@@ -65,21 +65,21 @@
65
65
  }
66
66
 
67
67
  .sd-layout-header {
68
- height: 64px;
69
- padding: 0 50px;
70
- color: color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%);
71
- line-height: 64px;
72
- background: var(--sd-color-menu-dark-bg);
68
+ height: var(--component-layout-layout-header-height, var(--component-layout-header-height, var(--size-16, 64px)));
69
+ padding: var(--component-layout-layout-header-padding, var(--component-layout-header-padding, 0 50px));
70
+ color: var(--component-layout-layout-header-color, var(--component-layout-header-color, color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%)));
71
+ line-height: var(--component-layout-layout-header-height, var(--component-layout-header-height, var(--size-16, 64px)));
72
+ background: var(--component-layout-layout-header-bg, var(--component-layout-header-bg, var(--sd-color-menu-dark-bg)));
73
73
  }
74
74
  .sd-layout-header .sd-btn-text {
75
- color: color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%);
75
+ color: var(--component-layout-layout-header-color, var(--component-layout-header-color, color-mix(in srgb, var(--sd-color-menu-dark-bg), #fff 90%)));
76
76
  }
77
77
 
78
78
  .sd-layout-footer {
79
- padding: 24px 50px;
79
+ padding: var(--component-layout-layout-footer-padding, var(--component-layout-footer-padding, 24px 50px));
80
80
  color: var(--sd-color-text-1);
81
- font-size: 14px;
82
- background: var(--sd-color-fill-1);
81
+ font-size: var(--component-layout-layout-font-size, var(--component-layout-font-size, 14px));
82
+ background: var(--component-layout-layout-footer-bg, var(--component-layout-footer-bg, var(--sd-color-fill-1)));
83
83
  }
84
84
 
85
85
  .sd-layout-content {
@@ -93,11 +93,11 @@
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  min-width: 0;
96
- background: var(--sd-color-menu-dark-bg);
96
+ background: var(--component-layout-layout-sider-bg, var(--component-layout-sider-bg, var(--sd-color-menu-dark-bg)));
97
97
  transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), background 0s;
98
98
  }
99
99
  .sd-layout-sider-has-trigger {
100
- padding-bottom: 44px;
100
+ padding-bottom: var(--component-layout-layout-sider-trigger-height, var(--component-layout-sider-trigger-height, var(--size-11, 44px)));
101
101
  }
102
102
  .sd-layout-sider-right {
103
103
  order: 1;
@@ -119,55 +119,55 @@
119
119
  position: absolute;
120
120
  bottom: 0;
121
121
  z-index: 1;
122
- height: 44px;
123
- color: var(--sd-color-white);
124
- line-height: 44px;
122
+ height: var(--component-layout-layout-sider-trigger-height, var(--component-layout-sider-trigger-height, var(--size-11, 44px)));
123
+ color: var(--component-layout-layout-sider-trigger-color, var(--component-layout-sider-trigger-color, var(--sd-color-white)));
124
+ line-height: var(--component-layout-layout-sider-trigger-height, var(--component-layout-sider-trigger-height, var(--size-11, 44px)));
125
125
  text-align: center;
126
126
  cursor: pointer;
127
127
  transition: color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
128
128
  }
129
129
  .sd-layout-sider-zero-width-trigger {
130
130
  position: absolute;
131
- top: 64px;
131
+ top: var(--component-layout-layout-header-height, var(--component-layout-header-height, var(--size-16, 64px)));
132
132
  z-index: 1;
133
133
  display: flex;
134
134
  align-items: center;
135
135
  justify-content: center;
136
- width: 40px;
137
- height: 40px;
138
- color: var(--sd-color-white);
139
- font-size: 18px;
140
- background: var(--sd-color-menu-dark-bg);
141
- border-radius: 0 10px 10px 0;
136
+ width: var(--component-layout-layout-sider-zero-trigger-width, var(--component-layout-sider-zero-trigger-width, var(--size-10, 40px)));
137
+ height: var(--component-layout-layout-sider-zero-trigger-height, var(--component-layout-sider-zero-trigger-height, var(--size-10, 40px)));
138
+ color: var(--component-layout-layout-sider-trigger-color, var(--component-layout-sider-trigger-color, var(--sd-color-white)));
139
+ font-size: var(--component-layout-layout-sider-zero-trigger-font-size, var(--component-layout-sider-zero-trigger-font-size, 18px));
140
+ background: var(--component-layout-layout-sider-bg, var(--component-layout-sider-bg, var(--sd-color-menu-dark-bg)));
141
+ border-radius: 0 var(--component-layout-layout-radius-lg, var(--component-layout-radius-lg, var(--border-radius-large, 10px))) var(--component-layout-layout-radius-lg, var(--component-layout-radius-lg, var(--border-radius-large, 10px))) 0;
142
142
  cursor: pointer;
143
- transition: background-color 0.3s ease;
144
- inset-inline-end: -40px;
143
+ transition: background-color var(--component-layout-layout-motion-duration-slow, var(--component-layout-motion-duration-slow, 0.3s)) ease;
144
+ inset-inline-end: -var(--component-layout-layout-sider-zero-trigger-width, var(--component-layout-sider-zero-trigger-width, var(--size-10, 40px)));
145
145
  }
146
146
  .sd-layout-sider-zero-width-trigger::after {
147
147
  position: absolute;
148
148
  inset: 0;
149
149
  background: transparent;
150
- transition: background-color 0.3s ease;
150
+ transition: background-color var(--component-layout-layout-motion-duration-slow, var(--component-layout-motion-duration-slow, 0.3s)) ease;
151
151
  content: "";
152
152
  }
153
153
  .sd-layout-sider-zero-width-trigger:hover::after {
154
154
  background: rgba(255, 255, 255, 0.2);
155
155
  }
156
156
  .sd-layout-sider-zero-width-trigger-right {
157
- inset-inline-start: -40px;
158
- border-radius: 10px 0 0 10px;
157
+ inset-inline-start: -var(--component-layout-layout-sider-zero-trigger-width, var(--component-layout-sider-zero-trigger-width, var(--size-10, 40px)));
158
+ border-radius: var(--component-layout-layout-radius-lg, var(--component-layout-radius-lg, var(--border-radius-large, 10px))) 0 0 var(--component-layout-layout-radius-lg, var(--component-layout-radius-lg, var(--border-radius-large, 10px)));
159
159
  }
160
160
  .sd-layout-sider-light {
161
- background: var(--sd-color-bg-1);
161
+ background: var(--component-layout-layout-light-sider-bg, var(--component-layout-light-sider-bg, var(--sd-color-bg-1)));
162
162
  }
163
163
  .sd-layout-sider-light .sd-layout-sider-trigger {
164
- color: var(--sd-color-text-1);
165
- background: var(--sd-color-bg-1);
164
+ color: var(--component-layout-layout-light-trigger-color, var(--component-layout-light-trigger-color, var(--sd-color-text-1)));
165
+ background: var(--component-layout-layout-light-trigger-bg, var(--component-layout-light-trigger-bg, var(--sd-color-bg-1)));
166
166
  }
167
167
  .sd-layout-sider-light .sd-layout-sider-zero-width-trigger {
168
- color: var(--sd-color-text-1);
169
- background: var(--sd-color-bg-1);
170
- border: 1px solid var(--sd-color-fill-1);
168
+ color: var(--component-layout-layout-light-trigger-color, var(--component-layout-light-trigger-color, var(--sd-color-text-1)));
169
+ background: var(--component-layout-layout-light-trigger-bg, var(--component-layout-light-trigger-bg, var(--sd-color-bg-1)));
170
+ border: 1px solid var(--component-layout-layout-body-bg, var(--component-layout-body-bg, var(--sd-color-fill-1)));
171
171
  border-inline-start: 0;
172
172
  }
173
173
  .sd-layout-sider-temporary {
@@ -179,11 +179,11 @@
179
179
  display: inline-flex;
180
180
  align-items: center;
181
181
  justify-content: center;
182
- width: 40px;
183
- height: 40px;
182
+ width: var(--component-layout-layout-sider-zero-trigger-width, var(--component-layout-sider-zero-trigger-width, var(--size-10, 40px)));
183
+ height: var(--component-layout-layout-sider-zero-trigger-width, var(--component-layout-sider-zero-trigger-width, var(--size-10, 40px)));
184
184
  color: var(--sd-color-text-1);
185
- font-size: 18px;
186
- border-radius: 10px;
185
+ font-size: var(--component-layout-layout-sider-zero-trigger-font-size, var(--component-layout-sider-zero-trigger-font-size, 18px));
186
+ border-radius: var(--component-layout-layout-radius-lg, var(--component-layout-radius-lg, var(--border-radius-large, 10px)));
187
187
  cursor: pointer;
188
188
  transition: background-color 0.2s ease;
189
189
  }
@@ -202,6 +202,6 @@
202
202
  transition: width 0.2s cubic-bezier(0.34, 0.69, 0.1, 1), box-shadow 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
203
203
  }
204
204
  .sd-layout-sider-rail-expand {
205
- z-index: 20;
205
+ z-index: var(--component-layout-layout-sider-rail-expand-z-index, var(--component-layout-sider-rail-expand-z-index, 20));
206
206
  box-shadow: var(--sd-shadow2-center);
207
207
  }
@@ -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';
@@ -58,3 +59,102 @@ $layout-radius-lg: global.$border-radius-large;
58
59
  $layout-motion-duration-mid: global.$transition-duration-2;
59
60
  $layout-motion-duration-slow: global.$transition-duration-3;
60
61
  $layout-font-size: global.$font-size-body;
62
+
63
+ // @generated runtime tokens — pnpm theme:generate
64
+ $layout-body-bg: theme-runtime.token('layout', 'layout-body-bg', $layout-body-bg);
65
+ $layout-footer-bg: theme-runtime.token('layout', 'layout-footer-bg', $layout-footer-bg);
66
+ $layout-header-bg: theme-runtime.token('layout', 'layout-header-bg', $layout-header-bg);
67
+ $layout-header-height: theme-runtime.token(
68
+ 'layout',
69
+ 'layout-header-height',
70
+ $layout-header-height,
71
+ 'size-16'
72
+ );
73
+ $layout-header-padding-horizontal: theme-runtime.token(
74
+ 'layout',
75
+ 'layout-header-padding-horizontal',
76
+ $layout-header-padding-horizontal
77
+ );
78
+ $layout-header-padding: theme-runtime.token(
79
+ 'layout',
80
+ 'layout-header-padding',
81
+ $layout-header-padding
82
+ );
83
+ $layout-header-color: theme-runtime.token('layout', 'layout-header-color', $layout-header-color);
84
+ $layout-footer-padding: theme-runtime.token(
85
+ 'layout',
86
+ 'layout-footer-padding',
87
+ $layout-footer-padding
88
+ );
89
+ $layout-sider-bg: theme-runtime.token('layout', 'layout-sider-bg', $layout-sider-bg);
90
+ $layout-sider-trigger-height: theme-runtime.token(
91
+ 'layout',
92
+ 'layout-sider-trigger-height',
93
+ $layout-sider-trigger-height,
94
+ 'size-11'
95
+ );
96
+ $layout-sider-trigger-bg: theme-runtime.token(
97
+ 'layout',
98
+ 'layout-sider-trigger-bg',
99
+ $layout-sider-trigger-bg
100
+ );
101
+ $layout-sider-trigger-color: theme-runtime.token(
102
+ 'layout',
103
+ 'layout-sider-trigger-color',
104
+ $layout-sider-trigger-color
105
+ );
106
+ $layout-sider-zero-trigger-width: theme-runtime.token(
107
+ 'layout',
108
+ 'layout-sider-zero-trigger-width',
109
+ $layout-sider-zero-trigger-width,
110
+ 'size-10'
111
+ );
112
+ $layout-sider-zero-trigger-height: theme-runtime.token(
113
+ 'layout',
114
+ 'layout-sider-zero-trigger-height',
115
+ $layout-sider-zero-trigger-height,
116
+ 'size-10'
117
+ );
118
+ $layout-sider-zero-trigger-font-size: theme-runtime.token(
119
+ 'layout',
120
+ 'layout-sider-zero-trigger-font-size',
121
+ $layout-sider-zero-trigger-font-size
122
+ );
123
+ $layout-sider-rail-width: theme-runtime.token(
124
+ 'layout',
125
+ 'layout-sider-rail-width',
126
+ $layout-sider-rail-width,
127
+ 'size-18'
128
+ );
129
+ $layout-sider-rail-expand-z-index: theme-runtime.token(
130
+ 'layout',
131
+ 'layout-sider-rail-expand-z-index',
132
+ $layout-sider-rail-expand-z-index
133
+ );
134
+ $layout-light-sider-bg: theme-runtime.token(
135
+ 'layout',
136
+ 'layout-light-sider-bg',
137
+ $layout-light-sider-bg
138
+ );
139
+ $layout-light-trigger-bg: theme-runtime.token(
140
+ 'layout',
141
+ 'layout-light-trigger-bg',
142
+ $layout-light-trigger-bg
143
+ );
144
+ $layout-light-trigger-color: theme-runtime.token(
145
+ 'layout',
146
+ 'layout-light-trigger-color',
147
+ $layout-light-trigger-color
148
+ );
149
+ $layout-radius-lg: theme-runtime.token(
150
+ 'layout',
151
+ 'layout-radius-lg',
152
+ $layout-radius-lg,
153
+ 'border-radius-large'
154
+ );
155
+ $layout-motion-duration-slow: theme-runtime.token(
156
+ 'layout',
157
+ 'layout-motion-duration-slow',
158
+ $layout-motion-duration-slow
159
+ );
160
+ $layout-font-size: theme-runtime.token('layout', 'layout-font-size', $layout-font-size);