@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
@@ -24,16 +24,16 @@
24
24
  box-sizing: border-box;
25
25
  width: 100%;
26
26
  min-height: fit-content;
27
- padding: 8px 15px;
27
+ padding: var(--component-alert-alert-padding-vertical, var(--component-alert-padding-vertical, 8px)) var(--component-alert-alert-padding-horizontal, var(--component-alert-padding-horizontal, 15px));
28
28
  overflow: hidden;
29
- font-size: 14px;
30
- line-height: 1.5715;
29
+ font-size: var(--component-alert-alert-font-size-text-content, var(--component-alert-font-size-text-content, var(--font-size-body-3, 14px)));
30
+ line-height: var(--component-alert-alert-line-height, var(--component-alert-line-height, 1.5715));
31
31
  text-align: left;
32
- border-radius: var(--sd-border-radius-small);
32
+ border-radius: var(--component-alert-alert-border-radius, var(--component-alert-border-radius, var(--sd-border-radius-small)));
33
33
  }
34
34
  .sd-alert-with-title {
35
35
  align-items: flex-start;
36
- padding: 15px 15px;
36
+ padding: var(--component-alert-alert-padding-vertical-with-title, var(--component-alert-padding-vertical-with-title, 15px)) var(--component-alert-alert-padding-horizontal-with-title, var(--component-alert-padding-horizontal-with-title, 15px));
37
37
  }
38
38
  .sd-alert-center {
39
39
  justify-content: center;
@@ -42,24 +42,24 @@
42
42
  flex: initial;
43
43
  }
44
44
  .sd-alert-normal {
45
- background-color: var(--sd-color-neutral-2);
46
- border: 1px solid transparent;
45
+ background-color: var(--component-alert-alert-normal-color-bg, var(--component-alert-normal-color-bg, var(--sd-color-neutral-2)));
46
+ border: var(--component-alert-alert-border-width, var(--component-alert-border-width, var(--border-1, 1px))) solid var(--component-alert-alert-normal-color-border, var(--component-alert-normal-color-border, var(--color-transparent, var(--sd-color-transparent, transparent))));
47
47
  }
48
48
  .sd-alert-info {
49
- background-color: var(--sd-color-primary-light-1);
50
- border: 1px solid transparent;
49
+ background-color: var(--component-alert-alert-info-color-bg, var(--component-alert-info-color-bg, var(--sd-color-primary-light-1)));
50
+ border: var(--component-alert-alert-border-width, var(--component-alert-border-width, var(--border-1, 1px))) solid var(--component-alert-alert-info-color-border, var(--component-alert-info-color-border, var(--color-transparent, var(--sd-color-transparent, transparent))));
51
51
  }
52
52
  .sd-alert-success {
53
- background-color: var(--sd-color-success-light-1);
54
- border: 1px solid transparent;
53
+ background-color: var(--component-alert-alert-success-color-bg, var(--component-alert-success-color-bg, var(--sd-color-success-light-1)));
54
+ border: var(--component-alert-alert-border-width, var(--component-alert-border-width, var(--border-1, 1px))) solid var(--component-alert-alert-success-color-border, var(--component-alert-success-color-border, var(--color-transparent, var(--sd-color-transparent, transparent))));
55
55
  }
56
56
  .sd-alert-warning {
57
- background-color: var(--sd-color-warning-light-1);
58
- border: 1px solid transparent;
57
+ background-color: var(--component-alert-alert-warning-color-bg, var(--component-alert-warning-color-bg, var(--sd-color-warning-light-1)));
58
+ border: var(--component-alert-alert-border-width, var(--component-alert-border-width, var(--border-1, 1px))) solid var(--component-alert-alert-warning-color-border, var(--component-alert-warning-color-border, var(--color-transparent, var(--sd-color-transparent, transparent))));
59
59
  }
60
60
  .sd-alert-error {
61
- background-color: var(--sd-color-danger-light-1);
62
- border: 1px solid transparent;
61
+ background-color: var(--component-alert-alert-error-color-bg, var(--component-alert-error-color-bg, var(--sd-color-danger-light-1)));
62
+ border: var(--component-alert-alert-border-width, var(--component-alert-border-width, var(--border-1, 1px))) solid var(--component-alert-alert-error-color-border, var(--component-alert-error-color-border, var(--color-transparent, var(--sd-color-transparent, transparent))));
63
63
  }
64
64
  .sd-alert-banner {
65
65
  border: none;
@@ -70,90 +70,90 @@
70
70
  flex: 1;
71
71
  }
72
72
  .sd-alert-title {
73
- margin-bottom: 4px;
74
- font-weight: 500;
75
- font-size: 16px;
76
- line-height: 1.5;
73
+ margin-bottom: var(--component-alert-alert-title-margin-bottom, var(--component-alert-title-margin-bottom, var(--spacing-2, 4px)));
74
+ font-weight: var(--component-alert-alert-font-weight-title, var(--component-alert-font-weight-title, var(--font-weight-500, 500)));
75
+ font-size: var(--component-alert-alert-font-size-text-title, var(--component-alert-font-size-text-title, var(--font-size-title-1, 16px)));
76
+ line-height: var(--component-alert-alert-title-line-height, var(--component-alert-title-line-height, 1.5));
77
77
  }
78
78
  .sd-alert-normal .sd-alert-title {
79
- color: var(--sd-color-text-1);
79
+ color: var(--component-alert-alert-normal-color-text-title, var(--component-alert-normal-color-text-title, var(--sd-color-text-1)));
80
80
  }
81
81
  .sd-alert-normal .sd-alert-content {
82
- color: var(--sd-color-text-1);
82
+ color: var(--component-alert-alert-normal-color-text-content, var(--component-alert-normal-color-text-content, var(--sd-color-text-1)));
83
83
  }
84
84
  .sd-alert-normal.sd-alert-with-title .sd-alert-content {
85
- color: var(--sd-color-text-2);
85
+ color: var(--component-alert-alert-normal-color-text-content-title, var(--component-alert-normal-color-text-content-title, var(--sd-color-text-2)));
86
86
  }
87
87
  .sd-alert-info .sd-alert-title {
88
- color: var(--sd-color-text-1);
88
+ color: var(--component-alert-alert-info-color-text-title, var(--component-alert-info-color-text-title, var(--sd-color-text-1)));
89
89
  }
90
90
  .sd-alert-info .sd-alert-content {
91
- color: var(--sd-color-text-1);
91
+ color: var(--component-alert-alert-info-color-text-content, var(--component-alert-info-color-text-content, var(--sd-color-text-1)));
92
92
  }
93
93
  .sd-alert-info.sd-alert-with-title .sd-alert-content {
94
- color: var(--sd-color-text-2);
94
+ color: var(--component-alert-alert-info-color-text-content-title, var(--component-alert-info-color-text-content-title, var(--sd-color-text-2)));
95
95
  }
96
96
  .sd-alert-success .sd-alert-title {
97
- color: var(--sd-color-text-1);
97
+ color: var(--component-alert-alert-success-color-text-title, var(--component-alert-success-color-text-title, var(--sd-color-text-1)));
98
98
  }
99
99
  .sd-alert-success .sd-alert-content {
100
- color: var(--sd-color-text-1);
100
+ color: var(--component-alert-alert-success-color-text-content, var(--component-alert-success-color-text-content, var(--sd-color-text-1)));
101
101
  }
102
102
  .sd-alert-success.sd-alert-with-title .sd-alert-content {
103
- color: var(--sd-color-text-2);
103
+ color: var(--component-alert-alert-success-color-text-content-title, var(--component-alert-success-color-text-content-title, var(--sd-color-text-2)));
104
104
  }
105
105
  .sd-alert-warning .sd-alert-title {
106
- color: var(--sd-color-text-1);
106
+ color: var(--component-alert-alert-warning-color-text-title, var(--component-alert-warning-color-text-title, var(--sd-color-text-1)));
107
107
  }
108
108
  .sd-alert-warning .sd-alert-content {
109
- color: var(--sd-color-text-1);
109
+ color: var(--component-alert-alert-warning-color-text-content, var(--component-alert-warning-color-text-content, var(--sd-color-text-1)));
110
110
  }
111
111
  .sd-alert-warning.sd-alert-with-title .sd-alert-content {
112
- color: var(--sd-color-text-2);
112
+ color: var(--component-alert-alert-warning-color-text-content-title, var(--component-alert-warning-color-text-content-title, var(--sd-color-text-2)));
113
113
  }
114
114
  .sd-alert-error .sd-alert-title {
115
- color: var(--sd-color-text-1);
115
+ color: var(--component-alert-alert-error-color-text-title, var(--component-alert-error-color-text-title, var(--sd-color-text-1)));
116
116
  }
117
117
  .sd-alert-error .sd-alert-content {
118
- color: var(--sd-color-text-1);
118
+ color: var(--component-alert-alert-error-color-text-content, var(--component-alert-error-color-text-content, var(--sd-color-text-1)));
119
119
  }
120
120
  .sd-alert-error.sd-alert-with-title .sd-alert-content {
121
- color: var(--sd-color-text-2);
121
+ color: var(--component-alert-alert-error-color-text-content-title, var(--component-alert-error-color-text-content-title, var(--sd-color-text-2)));
122
122
  }
123
123
  .sd-alert-icon {
124
- margin-right: 8px;
124
+ margin-right: var(--component-alert-alert-margin-icon-right, var(--component-alert-margin-icon-right, var(--spacing-4, 8px)));
125
125
  }
126
126
  .sd-alert-icon svg {
127
- font-size: 16px;
127
+ font-size: var(--component-alert-alert-font-size-icon, var(--component-alert-font-size-icon, 16px));
128
128
  vertical-align: -3px;
129
129
  }
130
130
  .sd-alert-with-title .sd-alert-icon svg {
131
- font-size: 18px;
131
+ font-size: var(--component-alert-alert-font-size-icon-with-title, var(--component-alert-font-size-icon-with-title, 18px));
132
132
  vertical-align: -5px;
133
133
  }
134
134
  .sd-alert-normal .sd-alert-icon svg {
135
- color: var(--sd-color-neutral-4);
135
+ color: var(--component-alert-alert-normal-color-icon, var(--component-alert-normal-color-icon, var(--sd-color-neutral-4)));
136
136
  }
137
137
  .sd-alert-info .sd-alert-icon svg {
138
- color: rgb(var(--sd-primary-6));
138
+ color: var(--component-alert-alert-info-color-icon, var(--component-alert-info-color-icon, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
139
139
  }
140
140
  .sd-alert-success .sd-alert-icon svg {
141
- color: rgb(var(--sd-success-6));
141
+ color: var(--component-alert-alert-success-color-icon, var(--component-alert-success-color-icon, var(--color-success-6, var(--sd-color-success-6, rgb(var(--sd-success-6))))));
142
142
  }
143
143
  .sd-alert-warning .sd-alert-icon svg {
144
- color: rgb(var(--sd-warning-6));
144
+ color: var(--component-alert-alert-warning-color-icon, var(--component-alert-warning-color-icon, var(--color-warning-6, var(--sd-color-warning-6, rgb(var(--sd-warning-6))))));
145
145
  }
146
146
  .sd-alert-error .sd-alert-icon svg {
147
- color: rgb(var(--sd-danger-6));
147
+ color: var(--component-alert-alert-error-color-icon, var(--component-alert-error-color-icon, var(--color-danger-6, var(--sd-color-danger-6, rgb(var(--sd-danger-6))))));
148
148
  }
149
149
  .sd-alert-close-btn {
150
150
  top: 4px;
151
151
  right: 0;
152
152
  box-sizing: border-box;
153
- margin-left: 8px;
153
+ margin-left: var(--component-alert-alert-margin-close-icon-left, var(--component-alert-margin-close-icon-left, var(--spacing-4, 8px)));
154
154
  padding: 0;
155
- color: var(--sd-color-text-2);
156
- font-size: 12px;
155
+ color: var(--component-alert-alert-color-close-icon, var(--component-alert-color-close-icon, var(--sd-color-text-2)));
156
+ font-size: var(--component-alert-alert-font-size-close-icon, var(--component-alert-font-size-close-icon, 12px));
157
157
  background-color: transparent;
158
158
  border: none;
159
159
  outline: none;
@@ -161,13 +161,13 @@
161
161
  transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
162
162
  }
163
163
  .sd-alert-close-btn:hover {
164
- color: var(--sd-color-text-1);
164
+ color: var(--component-alert-alert-color-close-icon-hover, var(--component-alert-color-close-icon-hover, var(--sd-color-text-1)));
165
165
  }
166
166
  .sd-alert-action + .sd-alert-close-btn {
167
- margin-left: 8px;
167
+ margin-left: var(--component-alert-alert-margin-action-right, var(--component-alert-margin-action-right, var(--spacing-4, 8px)));
168
168
  }
169
169
  .sd-alert-action {
170
- margin-left: 8px;
170
+ margin-left: var(--component-alert-alert-margin-action-left, var(--component-alert-margin-action-left, var(--spacing-4, 8px)));
171
171
  }
172
172
  .sd-alert-with-title .sd-alert-close-btn {
173
173
  margin-top: 0;
@@ -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';
@@ -80,3 +81,259 @@ $alert-color-close-icon_hover: var(string.unquote('#{global.$sd-cssvars-prefix}-
80
81
  $alert-margin-close-icon-left: global.$spacing-4;
81
82
  $alert-margin-action-left: global.$spacing-4;
82
83
  $alert-margin-action-right: global.$spacing-4;
84
+
85
+ // @generated runtime tokens — pnpm theme:generate
86
+ $alert-border-width: theme-runtime.token(
87
+ 'alert',
88
+ 'alert-border-width',
89
+ $alert-border-width,
90
+ 'border-1'
91
+ );
92
+ $alert-min-height: theme-runtime.token('alert', 'alert-min-height', $alert-min-height, 'size-10');
93
+ $alert-border-radius: theme-runtime.token('alert', 'alert-border-radius', $alert-border-radius);
94
+ $alert-line-height: theme-runtime.token('alert', 'alert-line-height', $alert-line-height);
95
+ $alert-title-line-height: theme-runtime.token(
96
+ 'alert',
97
+ 'alert-title-line-height',
98
+ $alert-title-line-height
99
+ );
100
+ $alert-title-margin-bottom: theme-runtime.token(
101
+ 'alert',
102
+ 'alert-title-margin-bottom',
103
+ $alert-title-margin-bottom,
104
+ 'spacing-2'
105
+ );
106
+ $alert-margin-icon-right: theme-runtime.token(
107
+ 'alert',
108
+ 'alert-margin-icon-right',
109
+ $alert-margin-icon-right,
110
+ 'spacing-4'
111
+ );
112
+ $alert-padding-horizontal: theme-runtime.token(
113
+ 'alert',
114
+ 'alert-padding-horizontal',
115
+ $alert-padding-horizontal
116
+ );
117
+ $alert-padding-vertical: theme-runtime.token(
118
+ 'alert',
119
+ 'alert-padding-vertical',
120
+ $alert-padding-vertical
121
+ );
122
+ $alert-padding-horizontal_with_title: theme-runtime.token(
123
+ 'alert',
124
+ 'alert-padding-horizontal-with-title',
125
+ $alert-padding-horizontal_with_title
126
+ );
127
+ $alert-padding-vertical_with_title: theme-runtime.token(
128
+ 'alert',
129
+ 'alert-padding-vertical-with-title',
130
+ $alert-padding-vertical_with_title
131
+ );
132
+ $alert-font-weight-title: theme-runtime.token(
133
+ 'alert',
134
+ 'alert-font-weight-title',
135
+ $alert-font-weight-title,
136
+ 'font-weight-500'
137
+ );
138
+ $alert-font-size-text-title: theme-runtime.token(
139
+ 'alert',
140
+ 'alert-font-size-text-title',
141
+ $alert-font-size-text-title,
142
+ 'font-size-title-1'
143
+ );
144
+ $alert-font-size-text-content: theme-runtime.token(
145
+ 'alert',
146
+ 'alert-font-size-text-content',
147
+ $alert-font-size-text-content,
148
+ 'font-size-body-3'
149
+ );
150
+ $alert-font-size-icon: theme-runtime.token('alert', 'alert-font-size-icon', $alert-font-size-icon);
151
+ $alert-font-size-icon_with_title: theme-runtime.token(
152
+ 'alert',
153
+ 'alert-font-size-icon-with-title',
154
+ $alert-font-size-icon_with_title
155
+ );
156
+ $alert-font-size-close-icon: theme-runtime.token(
157
+ 'alert',
158
+ 'alert-font-size-close-icon',
159
+ $alert-font-size-close-icon
160
+ );
161
+ $alert-normal-color-bg: theme-runtime.token(
162
+ 'alert',
163
+ 'alert-normal-color-bg',
164
+ $alert-normal-color-bg
165
+ );
166
+ $alert-normal-color-border: theme-runtime.token(
167
+ 'alert',
168
+ 'alert-normal-color-border',
169
+ $alert-normal-color-border,
170
+ 'color-transparent'
171
+ );
172
+ $alert-normal-color-icon: theme-runtime.token(
173
+ 'alert',
174
+ 'alert-normal-color-icon',
175
+ $alert-normal-color-icon
176
+ );
177
+ $alert-normal-color-text-title: theme-runtime.token(
178
+ 'alert',
179
+ 'alert-normal-color-text-title',
180
+ $alert-normal-color-text-title
181
+ );
182
+ $alert-normal-color-text-content: theme-runtime.token(
183
+ 'alert',
184
+ 'alert-normal-color-text-content',
185
+ $alert-normal-color-text-content
186
+ );
187
+ $alert-normal-color-text-content_title: theme-runtime.token(
188
+ 'alert',
189
+ 'alert-normal-color-text-content-title',
190
+ $alert-normal-color-text-content_title
191
+ );
192
+ $alert-info-color-bg: theme-runtime.token('alert', 'alert-info-color-bg', $alert-info-color-bg);
193
+ $alert-info-color-border: theme-runtime.token(
194
+ 'alert',
195
+ 'alert-info-color-border',
196
+ $alert-info-color-border,
197
+ 'color-transparent'
198
+ );
199
+ $alert-info-color-icon: theme-runtime.token(
200
+ 'alert',
201
+ 'alert-info-color-icon',
202
+ $alert-info-color-icon,
203
+ 'color-primary-6'
204
+ );
205
+ $alert-info-color-text-title: theme-runtime.token(
206
+ 'alert',
207
+ 'alert-info-color-text-title',
208
+ $alert-info-color-text-title
209
+ );
210
+ $alert-info-color-text-content: theme-runtime.token(
211
+ 'alert',
212
+ 'alert-info-color-text-content',
213
+ $alert-info-color-text-content
214
+ );
215
+ $alert-info-color-text-content_title: theme-runtime.token(
216
+ 'alert',
217
+ 'alert-info-color-text-content-title',
218
+ $alert-info-color-text-content_title
219
+ );
220
+ $alert-warning-color-bg: theme-runtime.token(
221
+ 'alert',
222
+ 'alert-warning-color-bg',
223
+ $alert-warning-color-bg
224
+ );
225
+ $alert-warning-color-border: theme-runtime.token(
226
+ 'alert',
227
+ 'alert-warning-color-border',
228
+ $alert-warning-color-border,
229
+ 'color-transparent'
230
+ );
231
+ $alert-warning-color-icon: theme-runtime.token(
232
+ 'alert',
233
+ 'alert-warning-color-icon',
234
+ $alert-warning-color-icon,
235
+ 'color-warning-6'
236
+ );
237
+ $alert-warning-color-text-title: theme-runtime.token(
238
+ 'alert',
239
+ 'alert-warning-color-text-title',
240
+ $alert-warning-color-text-title
241
+ );
242
+ $alert-warning-color-text-content: theme-runtime.token(
243
+ 'alert',
244
+ 'alert-warning-color-text-content',
245
+ $alert-warning-color-text-content
246
+ );
247
+ $alert-warning-color-text-content_title: theme-runtime.token(
248
+ 'alert',
249
+ 'alert-warning-color-text-content-title',
250
+ $alert-warning-color-text-content_title
251
+ );
252
+ $alert-error-color-bg: theme-runtime.token('alert', 'alert-error-color-bg', $alert-error-color-bg);
253
+ $alert-error-color-border: theme-runtime.token(
254
+ 'alert',
255
+ 'alert-error-color-border',
256
+ $alert-error-color-border,
257
+ 'color-transparent'
258
+ );
259
+ $alert-error-color-icon: theme-runtime.token(
260
+ 'alert',
261
+ 'alert-error-color-icon',
262
+ $alert-error-color-icon,
263
+ 'color-danger-6'
264
+ );
265
+ $alert-error-color-text-title: theme-runtime.token(
266
+ 'alert',
267
+ 'alert-error-color-text-title',
268
+ $alert-error-color-text-title
269
+ );
270
+ $alert-error-color-text-content: theme-runtime.token(
271
+ 'alert',
272
+ 'alert-error-color-text-content',
273
+ $alert-error-color-text-content
274
+ );
275
+ $alert-error-color-text-content_title: theme-runtime.token(
276
+ 'alert',
277
+ 'alert-error-color-text-content-title',
278
+ $alert-error-color-text-content_title
279
+ );
280
+ $alert-success-color-bg: theme-runtime.token(
281
+ 'alert',
282
+ 'alert-success-color-bg',
283
+ $alert-success-color-bg
284
+ );
285
+ $alert-success-color-border: theme-runtime.token(
286
+ 'alert',
287
+ 'alert-success-color-border',
288
+ $alert-success-color-border,
289
+ 'color-transparent'
290
+ );
291
+ $alert-success-color-icon: theme-runtime.token(
292
+ 'alert',
293
+ 'alert-success-color-icon',
294
+ $alert-success-color-icon,
295
+ 'color-success-6'
296
+ );
297
+ $alert-success-color-text-title: theme-runtime.token(
298
+ 'alert',
299
+ 'alert-success-color-text-title',
300
+ $alert-success-color-text-title
301
+ );
302
+ $alert-success-color-text-content: theme-runtime.token(
303
+ 'alert',
304
+ 'alert-success-color-text-content',
305
+ $alert-success-color-text-content
306
+ );
307
+ $alert-success-color-text-content_title: theme-runtime.token(
308
+ 'alert',
309
+ 'alert-success-color-text-content-title',
310
+ $alert-success-color-text-content_title
311
+ );
312
+ $alert-color-close-icon: theme-runtime.token(
313
+ 'alert',
314
+ 'alert-color-close-icon',
315
+ $alert-color-close-icon
316
+ );
317
+ $alert-color-close-icon_hover: theme-runtime.token(
318
+ 'alert',
319
+ 'alert-color-close-icon-hover',
320
+ $alert-color-close-icon_hover
321
+ );
322
+ $alert-margin-close-icon-left: theme-runtime.token(
323
+ 'alert',
324
+ 'alert-margin-close-icon-left',
325
+ $alert-margin-close-icon-left,
326
+ 'spacing-4'
327
+ );
328
+ $alert-margin-action-left: theme-runtime.token(
329
+ 'alert',
330
+ 'alert-margin-action-left',
331
+ $alert-margin-action-left,
332
+ 'spacing-4'
333
+ );
334
+ $alert-margin-action-right: theme-runtime.token(
335
+ 'alert',
336
+ 'alert-margin-action-right',
337
+ $alert-margin-action-right,
338
+ 'spacing-4'
339
+ );
@@ -17,7 +17,7 @@
17
17
  /********* icon hover *********/
18
18
  .sd-anchor {
19
19
  position: relative;
20
- width: 150px;
20
+ width: var(--component-anchor-anchor-width, var(--component-anchor-width, 150px));
21
21
  overflow: auto;
22
22
  }
23
23
  .sd-anchor-line-slider {
@@ -25,10 +25,10 @@
25
25
  top: 0;
26
26
  left: 0;
27
27
  z-index: 1;
28
- width: 2px;
28
+ width: var(--component-anchor-anchor-line-width, var(--component-anchor-line-width, 2px));
29
29
  height: 12px;
30
30
  margin-top: 9.0005px;
31
- background-color: rgb(var(--sd-primary-6));
31
+ background-color: var(--component-anchor-anchor-color-bg-line-active, var(--component-anchor-color-bg-line-active, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
32
32
  transition: top 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
33
33
  }
34
34
  .sd-anchor-list {
@@ -42,9 +42,9 @@
42
42
  .sd-anchor-list::before {
43
43
  position: absolute;
44
44
  left: -4px;
45
- width: 2px;
45
+ width: var(--component-anchor-anchor-line-width, var(--component-anchor-line-width, 2px));
46
46
  height: 100%;
47
- background-color: var(--sd-color-fill-3);
47
+ background-color: var(--component-anchor-anchor-color-bg-line, var(--component-anchor-color-bg-line, var(--sd-color-fill-3)));
48
48
  content: "";
49
49
  }
50
50
  .sd-anchor-sublist {
@@ -54,34 +54,34 @@
54
54
  list-style: none;
55
55
  }
56
56
  .sd-anchor-link-item {
57
- margin-bottom: 2px;
57
+ margin-bottom: var(--component-anchor-anchor-title-margin-bottom, var(--component-anchor-title-margin-bottom, var(--spacing-1, 2px)));
58
58
  }
59
59
  .sd-anchor-link-item .sd-anchor-link {
60
60
  display: block;
61
- margin-bottom: 2px;
61
+ margin-bottom: var(--component-anchor-anchor-title-margin-bottom, var(--component-anchor-title-margin-bottom, var(--spacing-1, 2px)));
62
62
  padding: 4px 8px;
63
63
  overflow: hidden;
64
- color: var(--sd-color-text-2);
64
+ color: var(--component-anchor-anchor-color-title, var(--component-anchor-color-title, var(--sd-color-text-2)));
65
65
  font-size: 14px;
66
66
  line-height: 1.5715;
67
67
  white-space: nowrap;
68
68
  text-decoration: none;
69
69
  text-overflow: ellipsis;
70
- border-radius: var(--sd-border-radius-small);
70
+ border-radius: var(--component-anchor-anchor-border-radius-title-hover, var(--component-anchor-border-radius-title-hover, var(--sd-border-radius-small)));
71
71
  cursor: pointer;
72
72
  }
73
73
  .sd-anchor-link-item .sd-anchor-link:hover {
74
- color: var(--sd-color-text-1);
75
- font-weight: 500;
76
- background-color: var(--sd-color-fill-2);
74
+ color: var(--component-anchor-anchor-color-title-hover, var(--component-anchor-color-title-hover, var(--sd-color-text-1)));
75
+ font-weight: var(--component-anchor-anchor-font-weight-title-hover, var(--component-anchor-font-weight-title-hover, var(--font-weight-500, 500)));
76
+ background-color: var(--component-anchor-anchor-color-bg-title-hover, var(--component-anchor-color-bg-title-hover, var(--sd-color-fill-2)));
77
77
  }
78
78
  .sd-anchor-link-active > .sd-anchor-link {
79
- color: var(--sd-color-text-1);
80
- font-weight: 500;
79
+ color: var(--component-anchor-anchor-color-title-active, var(--component-anchor-color-title-active, var(--sd-color-text-1)));
80
+ font-weight: var(--component-anchor-anchor-font-weight-title-active, var(--component-anchor-font-weight-title-active, var(--font-weight-500, 500)));
81
81
  transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
82
82
  }
83
83
  .sd-anchor-link-item .sd-anchor-link-item {
84
- margin-left: 16px;
84
+ margin-left: var(--component-anchor-anchor-item-inner-margin-left, var(--component-anchor-item-inner-margin-left, var(--spacing-7, 16px)));
85
85
  }
86
86
  .sd-anchor-line-less .sd-anchor-list {
87
87
  margin-left: 0;
@@ -90,7 +90,7 @@
90
90
  display: none;
91
91
  }
92
92
  .sd-anchor-line-less .sd-anchor-link-active > .sd-anchor-link {
93
- color: rgb(var(--sd-primary-6));
94
- font-weight: 500;
95
- background-color: var(--sd-color-fill-2);
93
+ color: var(--component-anchor-anchor-lineless-color-title-active, var(--component-anchor-lineless-color-title-active, var(--color-primary-6, var(--sd-color-primary-6, rgb(var(--sd-primary-6))))));
94
+ font-weight: var(--component-anchor-anchor-lineless-font-weight-title-active, var(--component-anchor-lineless-font-weight-title-active, var(--font-weight-500, 500)));
95
+ background-color: var(--component-anchor-anchor-lineless-bg-title-active, var(--component-anchor-lineless-bg-title-active, var(--sd-color-fill-2)));
96
96
  }
@@ -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';
@@ -34,3 +35,76 @@ $anchor-font-size-title: 14px;
34
35
  $anchor-lineless-color-title_active: global.$color-primary-6;
35
36
  $anchor-lineless-bg-title_active: var(string.unquote('#{global.$sd-cssvars-prefix}-color-fill-2'));
36
37
  $anchor-lineless-font-weight-title_active: global.$font-weight-500;
38
+
39
+ // @generated runtime tokens — pnpm theme:generate
40
+ $anchor-width: theme-runtime.token('anchor', 'anchor-width', $anchor-width);
41
+ $anchor-line-width: theme-runtime.token('anchor', 'anchor-line-width', $anchor-line-width);
42
+ $anchor-color-bg-line: theme-runtime.token('anchor', 'anchor-color-bg-line', $anchor-color-bg-line);
43
+ $anchor-color-bg-line_active: theme-runtime.token(
44
+ 'anchor',
45
+ 'anchor-color-bg-line-active',
46
+ $anchor-color-bg-line_active,
47
+ 'color-primary-6'
48
+ );
49
+ $anchor-border-radius-title-hover: theme-runtime.token(
50
+ 'anchor',
51
+ 'anchor-border-radius-title-hover',
52
+ $anchor-border-radius-title-hover
53
+ );
54
+ $anchor-item-inner-margin-left: theme-runtime.token(
55
+ 'anchor',
56
+ 'anchor-item-inner-margin-left',
57
+ $anchor-item-inner-margin-left,
58
+ 'spacing-7'
59
+ );
60
+ $anchor-title-margin-bottom: theme-runtime.token(
61
+ 'anchor',
62
+ 'anchor-title-margin-bottom',
63
+ $anchor-title-margin-bottom,
64
+ 'spacing-1'
65
+ );
66
+ $anchor-color-title: theme-runtime.token('anchor', 'anchor-color-title', $anchor-color-title);
67
+ $anchor-color-title_hover: theme-runtime.token(
68
+ 'anchor',
69
+ 'anchor-color-title-hover',
70
+ $anchor-color-title_hover
71
+ );
72
+ $anchor-color-title_active: theme-runtime.token(
73
+ 'anchor',
74
+ 'anchor-color-title-active',
75
+ $anchor-color-title_active
76
+ );
77
+ $anchor-font-weight-title_hover: theme-runtime.token(
78
+ 'anchor',
79
+ 'anchor-font-weight-title-hover',
80
+ $anchor-font-weight-title_hover,
81
+ 'font-weight-500'
82
+ );
83
+ $anchor-font-weight-title_active: theme-runtime.token(
84
+ 'anchor',
85
+ 'anchor-font-weight-title-active',
86
+ $anchor-font-weight-title_active,
87
+ 'font-weight-500'
88
+ );
89
+ $anchor-color-bg-title_hover: theme-runtime.token(
90
+ 'anchor',
91
+ 'anchor-color-bg-title-hover',
92
+ $anchor-color-bg-title_hover
93
+ );
94
+ $anchor-lineless-color-title_active: theme-runtime.token(
95
+ 'anchor',
96
+ 'anchor-lineless-color-title-active',
97
+ $anchor-lineless-color-title_active,
98
+ 'color-primary-6'
99
+ );
100
+ $anchor-lineless-bg-title_active: theme-runtime.token(
101
+ 'anchor',
102
+ 'anchor-lineless-bg-title-active',
103
+ $anchor-lineless-bg-title_active
104
+ );
105
+ $anchor-lineless-font-weight-title_active: theme-runtime.token(
106
+ 'anchor',
107
+ 'anchor-lineless-font-weight-title-active',
108
+ $anchor-lineless-font-weight-title_active,
109
+ 'font-weight-500'
110
+ );