@sheinx/theme 3.1.0-rc.1 → 3.1.0-rc.3

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 (312) hide show
  1. package/LICENSE +21 -0
  2. package/cjs/alert/alert.js +5 -5
  3. package/cjs/alert/token.js +5 -5
  4. package/cjs/alert/type.d.ts +5 -5
  5. package/cjs/breadcrumb/breadcrumb.js +6 -6
  6. package/cjs/breadcrumb/token.js +6 -6
  7. package/cjs/breadcrumb/type.d.ts +6 -6
  8. package/cjs/button/button.js +16 -16
  9. package/cjs/button/token.js +15 -15
  10. package/cjs/button/type.d.ts +21 -21
  11. package/cjs/card/card.js +5 -5
  12. package/cjs/card/token.js +6 -6
  13. package/cjs/card/type.d.ts +5 -5
  14. package/cjs/card-group/card-group.js +1 -1
  15. package/cjs/card-group/token.js +1 -1
  16. package/cjs/card-group/type.d.ts +1 -1
  17. package/cjs/carousel/carousel.js +5 -5
  18. package/cjs/carousel/token.js +5 -5
  19. package/cjs/carousel/type.d.ts +5 -5
  20. package/cjs/cascader/cascader.d.ts.map +1 -1
  21. package/cjs/cascader/cascader.js +33 -34
  22. package/cjs/cascader/token.js +34 -35
  23. package/cjs/cascader/type.d.ts +33 -39
  24. package/cjs/cascader/type.d.ts.map +1 -1
  25. package/cjs/checkbox/checkbox.d.ts.map +1 -1
  26. package/cjs/checkbox/checkbox.js +8 -7
  27. package/cjs/checkbox/token.js +10 -7
  28. package/cjs/checkbox/type.d.ts +13 -7
  29. package/cjs/checkbox/type.d.ts.map +1 -1
  30. package/cjs/collapse/collapse.js +7 -7
  31. package/cjs/collapse/token.js +7 -7
  32. package/cjs/collapse/type.d.ts +7 -7
  33. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  34. package/cjs/date-picker/date-picker.js +36 -49
  35. package/cjs/date-picker/token.js +36 -89
  36. package/cjs/date-picker/type.d.ts +36 -114
  37. package/cjs/date-picker/type.d.ts.map +1 -1
  38. package/cjs/descriptions/descriptions.js +14 -14
  39. package/cjs/descriptions/token.js +14 -14
  40. package/cjs/descriptions/type.d.ts +14 -14
  41. package/cjs/divider/divider.js +4 -4
  42. package/cjs/divider/token.js +4 -4
  43. package/cjs/divider/type.d.ts +4 -4
  44. package/cjs/dropdown/dropdown.js +29 -29
  45. package/cjs/dropdown/token.js +29 -29
  46. package/cjs/dropdown/type.d.ts +29 -29
  47. package/cjs/editable-area/editable-area.js +1 -1
  48. package/cjs/editable-area/token.js +1 -1
  49. package/cjs/editable-area/type.d.ts +1 -1
  50. package/cjs/empty/empty.js +1 -1
  51. package/cjs/empty/token.js +1 -1
  52. package/cjs/empty/type.d.ts +1 -1
  53. package/cjs/form/form.js +7 -7
  54. package/cjs/form/token.js +7 -7
  55. package/cjs/form/type.d.ts +7 -7
  56. package/cjs/icon/icon.js +3 -3
  57. package/cjs/icon/token.js +3 -3
  58. package/cjs/icon/type.d.ts +3 -3
  59. package/cjs/image/image.js +2 -2
  60. package/cjs/image/token.js +2 -2
  61. package/cjs/image/type.d.ts +2 -2
  62. package/cjs/index.d.ts +3 -3
  63. package/cjs/index.d.ts.map +1 -1
  64. package/cjs/index.js +9 -9
  65. package/cjs/input/input.js +18 -18
  66. package/cjs/input/token.js +18 -18
  67. package/cjs/input/type.d.ts +18 -18
  68. package/cjs/list/list.js +8 -8
  69. package/cjs/list/token.js +8 -8
  70. package/cjs/list/type.d.ts +8 -8
  71. package/cjs/menu/menu.js +1 -1
  72. package/cjs/menu/token.js +1 -1
  73. package/cjs/menu/type.d.ts +1 -1
  74. package/cjs/message/message.js +1 -1
  75. package/cjs/message/token.js +1 -1
  76. package/cjs/message/type.d.ts +1 -1
  77. package/cjs/modal/modal.js +14 -14
  78. package/cjs/modal/token.js +14 -14
  79. package/cjs/modal/type.d.ts +14 -14
  80. package/cjs/pagination/pagination.js +4 -4
  81. package/cjs/pagination/token.js +4 -4
  82. package/cjs/pagination/type.d.ts +4 -4
  83. package/cjs/popover/popover.js +5 -5
  84. package/cjs/popover/token.js +5 -5
  85. package/cjs/popover/type.d.ts +5 -5
  86. package/cjs/progress/progress.js +5 -5
  87. package/cjs/progress/token.js +5 -5
  88. package/cjs/progress/type.d.ts +5 -5
  89. package/cjs/radio/radio.d.ts.map +1 -1
  90. package/cjs/radio/radio.js +9 -10
  91. package/cjs/radio/token.js +9 -12
  92. package/cjs/radio/type.d.ts +9 -15
  93. package/cjs/radio/type.d.ts.map +1 -1
  94. package/cjs/rate/rate.js +1 -1
  95. package/cjs/rate/token.js +1 -1
  96. package/cjs/rate/type.d.ts +1 -1
  97. package/cjs/select/select.d.ts.map +1 -1
  98. package/cjs/select/select.js +38 -39
  99. package/cjs/select/token.js +39 -40
  100. package/cjs/select/type.d.ts +38 -44
  101. package/cjs/select/type.d.ts.map +1 -1
  102. package/cjs/slider/slider.js +5 -5
  103. package/cjs/slider/token.js +5 -5
  104. package/cjs/slider/type.d.ts +5 -5
  105. package/cjs/spin/spin.js +2 -2
  106. package/cjs/spin/token.js +2 -2
  107. package/cjs/spin/type.d.ts +2 -2
  108. package/cjs/steps/steps.d.ts.map +1 -1
  109. package/cjs/steps/steps.js +17 -20
  110. package/cjs/steps/token.js +21 -24
  111. package/cjs/steps/type.d.ts +17 -35
  112. package/cjs/steps/type.d.ts.map +1 -1
  113. package/cjs/sticky/sticky.js +1 -1
  114. package/cjs/sticky/token.js +1 -1
  115. package/cjs/sticky/type.d.ts +1 -1
  116. package/cjs/switch/switch.js +10 -10
  117. package/cjs/switch/token.js +10 -10
  118. package/cjs/switch/type.d.ts +10 -10
  119. package/cjs/table/table.js +8 -8
  120. package/cjs/table/token.js +8 -8
  121. package/cjs/table/type.d.ts +8 -8
  122. package/cjs/tabs/tabs.js +16 -16
  123. package/cjs/tabs/token.js +16 -16
  124. package/cjs/tabs/type.d.ts +16 -16
  125. package/cjs/tag/tag.js +14 -14
  126. package/cjs/tag/token.js +14 -14
  127. package/cjs/tag/type.d.ts +14 -14
  128. package/cjs/textarea/textarea.js +9 -9
  129. package/cjs/textarea/token.js +9 -9
  130. package/cjs/textarea/type.d.ts +9 -9
  131. package/cjs/token/figma.js +36 -96
  132. package/cjs/token/token.d.ts +2 -0
  133. package/cjs/token/token.d.ts.map +1 -1
  134. package/cjs/token/token.js +19 -18
  135. package/cjs/token/type.d.ts +42 -112
  136. package/cjs/token/type.d.ts.map +1 -1
  137. package/cjs/tooltip/token.js +3 -3
  138. package/cjs/tooltip/tooltip.js +3 -3
  139. package/cjs/tooltip/type.d.ts +3 -3
  140. package/cjs/transfer/token.js +4 -4
  141. package/cjs/transfer/transfer.js +4 -4
  142. package/cjs/transfer/type.d.ts +4 -4
  143. package/cjs/tree/token.js +7 -7
  144. package/cjs/tree/tree.js +7 -7
  145. package/cjs/tree/type.d.ts +7 -7
  146. package/cjs/tree-select/token.js +34 -35
  147. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  148. package/cjs/tree-select/tree-select.js +33 -34
  149. package/cjs/tree-select/type.d.ts +33 -39
  150. package/cjs/tree-select/type.d.ts.map +1 -1
  151. package/cjs/upload/token.js +7 -7
  152. package/cjs/upload/type.d.ts +7 -7
  153. package/cjs/upload/upload.js +7 -7
  154. package/cjs/utils/css-var.d.ts +1 -1
  155. package/cjs/utils/css-var.d.ts.map +1 -1
  156. package/cjs/utils/css-var.js +1 -10
  157. package/esm/alert/alert.js +5 -5
  158. package/esm/alert/token.js +5 -5
  159. package/esm/alert/type.d.ts +5 -5
  160. package/esm/breadcrumb/breadcrumb.js +6 -6
  161. package/esm/breadcrumb/token.js +6 -6
  162. package/esm/breadcrumb/type.d.ts +6 -6
  163. package/esm/button/button.js +16 -16
  164. package/esm/button/token.js +15 -15
  165. package/esm/button/type.d.ts +21 -21
  166. package/esm/card/card.js +5 -5
  167. package/esm/card/token.js +6 -6
  168. package/esm/card/type.d.ts +5 -5
  169. package/esm/card-group/card-group.js +1 -1
  170. package/esm/card-group/token.js +1 -1
  171. package/esm/card-group/type.d.ts +1 -1
  172. package/esm/carousel/carousel.js +5 -5
  173. package/esm/carousel/token.js +5 -5
  174. package/esm/carousel/type.d.ts +5 -5
  175. package/esm/cascader/cascader.d.ts.map +1 -1
  176. package/esm/cascader/cascader.js +33 -34
  177. package/esm/cascader/token.js +34 -35
  178. package/esm/cascader/type.d.ts +33 -39
  179. package/esm/cascader/type.d.ts.map +1 -1
  180. package/esm/checkbox/checkbox.d.ts.map +1 -1
  181. package/esm/checkbox/checkbox.js +8 -7
  182. package/esm/checkbox/token.js +10 -7
  183. package/esm/checkbox/type.d.ts +13 -7
  184. package/esm/checkbox/type.d.ts.map +1 -1
  185. package/esm/collapse/collapse.js +7 -7
  186. package/esm/collapse/token.js +7 -7
  187. package/esm/collapse/type.d.ts +7 -7
  188. package/esm/date-picker/date-picker.d.ts.map +1 -1
  189. package/esm/date-picker/date-picker.js +36 -49
  190. package/esm/date-picker/token.js +36 -89
  191. package/esm/date-picker/type.d.ts +36 -114
  192. package/esm/date-picker/type.d.ts.map +1 -1
  193. package/esm/descriptions/descriptions.js +14 -14
  194. package/esm/descriptions/token.js +14 -14
  195. package/esm/descriptions/type.d.ts +14 -14
  196. package/esm/divider/divider.js +4 -4
  197. package/esm/divider/token.js +4 -4
  198. package/esm/divider/type.d.ts +4 -4
  199. package/esm/dropdown/dropdown.js +29 -29
  200. package/esm/dropdown/token.js +29 -29
  201. package/esm/dropdown/type.d.ts +29 -29
  202. package/esm/editable-area/editable-area.js +1 -1
  203. package/esm/editable-area/token.js +1 -1
  204. package/esm/editable-area/type.d.ts +1 -1
  205. package/esm/empty/empty.js +1 -1
  206. package/esm/empty/token.js +1 -1
  207. package/esm/empty/type.d.ts +1 -1
  208. package/esm/form/form.js +7 -7
  209. package/esm/form/token.js +7 -7
  210. package/esm/form/type.d.ts +7 -7
  211. package/esm/icon/icon.js +3 -3
  212. package/esm/icon/token.js +3 -3
  213. package/esm/icon/type.d.ts +3 -3
  214. package/esm/image/image.js +2 -2
  215. package/esm/image/token.js +2 -2
  216. package/esm/image/type.d.ts +2 -2
  217. package/esm/index.d.ts +3 -3
  218. package/esm/index.d.ts.map +1 -1
  219. package/esm/index.js +4 -4
  220. package/esm/input/input.js +18 -18
  221. package/esm/input/token.js +18 -18
  222. package/esm/input/type.d.ts +18 -18
  223. package/esm/list/list.js +8 -8
  224. package/esm/list/token.js +8 -8
  225. package/esm/list/type.d.ts +8 -8
  226. package/esm/menu/menu.js +1 -1
  227. package/esm/menu/token.js +1 -1
  228. package/esm/menu/type.d.ts +1 -1
  229. package/esm/message/message.js +1 -1
  230. package/esm/message/token.js +1 -1
  231. package/esm/message/type.d.ts +1 -1
  232. package/esm/modal/modal.js +14 -14
  233. package/esm/modal/token.js +14 -14
  234. package/esm/modal/type.d.ts +14 -14
  235. package/esm/pagination/pagination.js +4 -4
  236. package/esm/pagination/token.js +4 -4
  237. package/esm/pagination/type.d.ts +4 -4
  238. package/esm/popover/popover.js +5 -5
  239. package/esm/popover/token.js +5 -5
  240. package/esm/popover/type.d.ts +5 -5
  241. package/esm/progress/progress.js +5 -5
  242. package/esm/progress/token.js +5 -5
  243. package/esm/progress/type.d.ts +5 -5
  244. package/esm/radio/radio.d.ts.map +1 -1
  245. package/esm/radio/radio.js +9 -10
  246. package/esm/radio/token.js +9 -12
  247. package/esm/radio/type.d.ts +9 -15
  248. package/esm/radio/type.d.ts.map +1 -1
  249. package/esm/rate/rate.js +1 -1
  250. package/esm/rate/token.js +1 -1
  251. package/esm/rate/type.d.ts +1 -1
  252. package/esm/select/select.d.ts.map +1 -1
  253. package/esm/select/select.js +38 -39
  254. package/esm/select/token.js +39 -40
  255. package/esm/select/type.d.ts +38 -44
  256. package/esm/select/type.d.ts.map +1 -1
  257. package/esm/slider/slider.js +5 -5
  258. package/esm/slider/token.js +5 -5
  259. package/esm/slider/type.d.ts +5 -5
  260. package/esm/spin/spin.js +2 -2
  261. package/esm/spin/token.js +2 -2
  262. package/esm/spin/type.d.ts +2 -2
  263. package/esm/steps/steps.d.ts.map +1 -1
  264. package/esm/steps/steps.js +17 -20
  265. package/esm/steps/token.js +21 -24
  266. package/esm/steps/type.d.ts +17 -35
  267. package/esm/steps/type.d.ts.map +1 -1
  268. package/esm/sticky/sticky.js +1 -1
  269. package/esm/sticky/token.js +1 -1
  270. package/esm/sticky/type.d.ts +1 -1
  271. package/esm/switch/switch.js +10 -10
  272. package/esm/switch/token.js +10 -10
  273. package/esm/switch/type.d.ts +10 -10
  274. package/esm/table/table.js +8 -8
  275. package/esm/table/token.js +8 -8
  276. package/esm/table/type.d.ts +8 -8
  277. package/esm/tabs/tabs.js +16 -16
  278. package/esm/tabs/token.js +16 -16
  279. package/esm/tabs/type.d.ts +16 -16
  280. package/esm/tag/tag.js +14 -14
  281. package/esm/tag/token.js +14 -14
  282. package/esm/tag/type.d.ts +14 -14
  283. package/esm/textarea/textarea.js +9 -9
  284. package/esm/textarea/token.js +9 -9
  285. package/esm/textarea/type.d.ts +9 -9
  286. package/esm/token/figma.js +36 -96
  287. package/esm/token/token.d.ts +2 -0
  288. package/esm/token/token.d.ts.map +1 -1
  289. package/esm/token/token.js +19 -17
  290. package/esm/token/type.d.ts +42 -112
  291. package/esm/token/type.d.ts.map +1 -1
  292. package/esm/tooltip/token.js +3 -3
  293. package/esm/tooltip/tooltip.js +3 -3
  294. package/esm/tooltip/type.d.ts +3 -3
  295. package/esm/transfer/token.js +4 -4
  296. package/esm/transfer/transfer.js +4 -4
  297. package/esm/transfer/type.d.ts +4 -4
  298. package/esm/tree/token.js +7 -7
  299. package/esm/tree/tree.js +7 -7
  300. package/esm/tree/type.d.ts +7 -7
  301. package/esm/tree-select/token.js +34 -35
  302. package/esm/tree-select/tree-select.d.ts.map +1 -1
  303. package/esm/tree-select/tree-select.js +33 -34
  304. package/esm/tree-select/type.d.ts +33 -39
  305. package/esm/tree-select/type.d.ts.map +1 -1
  306. package/esm/upload/token.js +7 -7
  307. package/esm/upload/type.d.ts +7 -7
  308. package/esm/upload/upload.js +7 -7
  309. package/esm/utils/css-var.d.ts +1 -1
  310. package/esm/utils/css-var.d.ts.map +1 -1
  311. package/esm/utils/css-var.js +1 -10
  312. package/package.json +8 -3
@@ -1,13 +1,13 @@
1
1
  export interface UploadTokens {
2
2
  /**
3
3
  * @type {string}
4
- * @token Padding-16
4
+ * @token Spacing-16
5
5
  * @description 上传结果内边距(水平方向)
6
6
  */
7
7
  uploadResultPaddingX: string;
8
8
  /**
9
9
  * @type {string}
10
- * @token Padding-5
10
+ * @token Spacing-5
11
11
  * @description 上传结果内边距(垂直方向)
12
12
  */
13
13
  uploadResultPaddingY: string;
@@ -19,13 +19,13 @@ export interface UploadTokens {
19
19
  uploadResultBackgroundColor: string;
20
20
  /**
21
21
  * @type {string}
22
- * @token Margin-4
22
+ * @token Spacing-4
23
23
  * @description 上传结果内间距
24
24
  */
25
25
  uploadResultGap: string;
26
26
  /**
27
27
  * @type {string}
28
- * @token Margin-8
28
+ * @token Spacing-8
29
29
  * @description 上传结果外边距(垂直方向)
30
30
  */
31
31
  uploadResultMarginY: string;
@@ -49,7 +49,7 @@ export interface UploadTokens {
49
49
  uploadResultIconHoverBackgroundColor: string;
50
50
  /**
51
51
  * @type {string}
52
- * @token 14/regular
52
+ * @token Font-14
53
53
  * @description 上传结果字体字号
54
54
  */
55
55
  uploadResultFontSize: string;
@@ -223,13 +223,13 @@ export interface UploadTokens {
223
223
  uploadImageResultTipBackgroundColor: string;
224
224
  /**
225
225
  * @type {string}
226
- * @token 12/regular
226
+ * @token Font-12
227
227
  * @description 上传图片结果提示字体字号
228
228
  */
229
229
  uploadImageResultTipFontSize: string;
230
230
  /**
231
231
  * @type {string}
232
- * @token 14/regular
232
+ * @token Font-14
233
233
  * @description 上传字体字号
234
234
  */
235
235
  uploadFontSize: string;
@@ -8,15 +8,15 @@ exports.default = void 0;
8
8
  // This file was generated automatically by a script. Please do not modify it directly.
9
9
 
10
10
  var uploadTokens = {
11
- uploadResultPaddingX: 'Padding-16',
12
- uploadResultPaddingY: 'Padding-5',
11
+ uploadResultPaddingX: 'Spacing-16',
12
+ uploadResultPaddingY: 'Spacing-5',
13
13
  uploadResultBackgroundColor: 'Neutral-fill-2',
14
- uploadResultGap: 'Margin-4',
15
- uploadResultMarginY: 'Margin-8',
14
+ uploadResultGap: 'Spacing-4',
15
+ uploadResultMarginY: 'Spacing-8',
16
16
  uploadResultIconSize: 'Size-7',
17
17
  uploadResultIconColor: 'Neutral-text-4',
18
18
  uploadResultIconHoverBackgroundColor: 'Neutral-fill-2',
19
- uploadResultFontSize: '14/regular',
19
+ uploadResultFontSize: 'Font-14',
20
20
  uploadResultFontColor: 'Neutral-text-5',
21
21
  uploadResultBorderRadius: 'Radius-4',
22
22
  uploadResultErrorFontColor: 'Danger-6',
@@ -45,7 +45,7 @@ var uploadTokens = {
45
45
  uploadImageResultErrorBorderColor: 'Danger-6',
46
46
  uploadImageResultErrorFontColor: 'Danger-6',
47
47
  uploadImageResultTipBackgroundColor: 'Neutral-fill-1',
48
- uploadImageResultTipFontSize: '12/regular',
49
- uploadFontSize: '14/regular'
48
+ uploadImageResultTipFontSize: 'Font-12',
49
+ uploadFontSize: 'Font-14'
50
50
  };
51
51
  var _default = exports.default = uploadTokens;
@@ -1,4 +1,4 @@
1
1
  export declare function replaceNonAlphanumeric(str: string): string;
2
2
  export declare function camelCaseToDash(str: string): string;
3
- export declare const cssvar: (str: string, value: string, key: string, size?: string) => string;
3
+ export declare const cssvar: (str: string, value: string, key: string, _size?: string) => string;
4
4
  //# sourceMappingURL=css-var.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"css-var.d.ts","sourceRoot":"","sources":["css-var.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,UAQjD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAE1C;AAED,eAAO,MAAM,MAAM,QAAS,MAAM,SAAS,MAAM,OAAO,MAAM,SAAS,MAAM,WAoB5E,CAAC"}
1
+ {"version":3,"file":"css-var.d.ts","sourceRoot":"","sources":["css-var.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,UAQjD;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAE1C;AAED,eAAO,MAAM,MAAM,QAAS,MAAM,SAAS,MAAM,OAAO,MAAM,UAAU,MAAM,WAW7E,CAAC"}
@@ -18,18 +18,9 @@ function replaceNonAlphanumeric(str) {
18
18
  function camelCaseToDash(str) {
19
19
  return str.replace(/(?<=.)([A-Z])/g, '-$1').toLowerCase();
20
20
  }
21
- var cssvar = exports.cssvar = function cssvar(str, value, key, size) {
21
+ var cssvar = exports.cssvar = function cssvar(str, value, key, _size) {
22
22
  var _getConfig = (0, _config.getConfig)(),
23
23
  prefix = _getConfig.prefix;
24
- if (str.indexOf('Size-') > -1) {
25
- // 正则提取出Size-后面的数字
26
- var sizeReg = /Size-(\d+)/;
27
- // 正则提取出以px结尾的数字
28
- var sizeNum = sizeReg.exec(str);
29
- if (sizeNum) {
30
- return "".concat(Number(sizeNum[1]) * Number(size), "px");
31
- }
32
- }
33
24
  var pxReg = /(\d+)px/;
34
25
  var pxNum = pxReg.exec(str);
35
26
  if (pxNum) {
@@ -14,13 +14,13 @@ var alertTokens = {
14
14
  alertDangerBackgroundColor: 'Danger-1',
15
15
  alertDangerBorderColor: 'Danger-2',
16
16
  alertDangerFontColor: 'Danger-6',
17
- alertFontSize: '14/regular',
17
+ alertFontSize: 'Font-14',
18
18
  alertFontColor: 'Neutral-text-5',
19
- alertPaddingX: 'Padding-16',
20
- alertPaddingY: 'Padding-8',
19
+ alertPaddingX: 'Spacing-16',
20
+ alertPaddingY: 'Spacing-8',
21
21
  alertBorderRadius: 'Radius-4',
22
- alertNearlyMargin: 'Margin-8',
23
- alertTitleFontSize: '16/regular',
22
+ alertNearlyMargin: 'Spacing-8',
23
+ alertTitleFontSize: 'Font-16',
24
24
  alertCloseFontColor: 'Neutral-text-4',
25
25
  alertCloseHoverColor: 'Neutral-text-5',
26
26
  alertMessageHoverColor: 'Neutral-fill-2'
@@ -67,22 +67,22 @@ var alertTokenValue = {
67
67
  }
68
68
  },
69
69
  font: {
70
- size: '14/regular',
70
+ size: 'Font-14',
71
71
  color: 'Neutral-text-5'
72
72
  },
73
73
  padding: {
74
- x: 'Padding-16',
75
- y: 'Padding-8'
74
+ x: 'Spacing-16',
75
+ y: 'Spacing-8'
76
76
  },
77
77
  border: {
78
78
  radius: 'Radius-4'
79
79
  },
80
80
  nearly: {
81
- margin: 'Margin-8'
81
+ margin: 'Spacing-8'
82
82
  },
83
83
  title: {
84
84
  font: {
85
- size: '16/regular'
85
+ size: 'Font-16'
86
86
  }
87
87
  },
88
88
  close: {
@@ -73,7 +73,7 @@ export interface AlertTokens {
73
73
  alertDangerFontColor: string;
74
74
  /**
75
75
  * @type {string}
76
- * @token 14/regular
76
+ * @token Font-14
77
77
  * @description 提示框字体字号
78
78
  */
79
79
  alertFontSize: string;
@@ -85,13 +85,13 @@ export interface AlertTokens {
85
85
  alertFontColor: string;
86
86
  /**
87
87
  * @type {string}
88
- * @token Padding-16
88
+ * @token Spacing-16
89
89
  * @description 提示框内边距(水平方向)
90
90
  */
91
91
  alertPaddingX: string;
92
92
  /**
93
93
  * @type {string}
94
- * @token Padding-8
94
+ * @token Spacing-8
95
95
  * @description 提示框内边距(垂直方向)
96
96
  */
97
97
  alertPaddingY: string;
@@ -103,13 +103,13 @@ export interface AlertTokens {
103
103
  alertBorderRadius: string;
104
104
  /**
105
105
  * @type {string}
106
- * @token Margin-8
106
+ * @token Spacing-8
107
107
  * @description 提示框相邻之间的外边距
108
108
  */
109
109
  alertNearlyMargin: string;
110
110
  /**
111
111
  * @type {string}
112
- * @token 16/regular
112
+ * @token Font-16
113
113
  * @description 提示框标题模式字体字号
114
114
  */
115
115
  alertTitleFontSize: string;
@@ -2,21 +2,21 @@
2
2
  // This file was generated automatically by a script. Please do not modify it directly.
3
3
 
4
4
  var breadcrumbTokens = {
5
- breadcrumbFontSize: '14/regular',
5
+ breadcrumbFontSize: 'Font-14',
6
6
  breadcrumbFontColor: 'Neutral-text-5',
7
7
  breadcrumbLinkColor: 'Neutral-text-3',
8
8
  breadcrumbLinkHoverColor: 'Brand-5',
9
9
  breadcrumbListBackgroundColor: 'Neutral-fill-1',
10
10
  breadcrumbListShadow: 'Shadow-1',
11
11
  breadcrumbListBorderColor: '#f4f5f8',
12
- breadcrumbListPaddingY: 'Padding-4',
12
+ breadcrumbListPaddingY: 'Spacing-4',
13
13
  breadcrumbListItemBorderRadius: 'Radius-4',
14
- breadcrumbListItemWrapperPaddingX: 'Padding-4',
15
- breadcrumbListItemPaddingX: 'Padding-8',
16
- breadcrumbListItemPaddingY: 'Padding-5',
14
+ breadcrumbListItemWrapperPaddingX: 'Spacing-4',
15
+ breadcrumbListItemPaddingX: 'Spacing-8',
16
+ breadcrumbListItemPaddingY: 'Spacing-5',
17
17
  breadcrumbListItemHoverBackgroundColor: 'Neutral-fill-2',
18
18
  breadcrumbListItemHoverFontColor: 'Neutral-text-3',
19
- breadcrumbSeparatorMarginX: 'Padding-8',
19
+ breadcrumbSeparatorMarginX: 'Spacing-8',
20
20
  breadcrumbIconBackgroundColor: 'Neutral-text-4'
21
21
  };
22
22
  export default breadcrumbTokens;
@@ -25,7 +25,7 @@ var breadcrumbTokenDescription = {
25
25
  var breadcrumbTokenValue = {};
26
26
  var breadcrumbTokenExtraValue = {
27
27
  font: {
28
- size: '14/regular',
28
+ size: 'Font-14',
29
29
  color: 'Neutral-text-5'
30
30
  },
31
31
  link: {
@@ -43,7 +43,7 @@ var breadcrumbTokenExtraValue = {
43
43
  color: '#f4f5f8'
44
44
  },
45
45
  padding: {
46
- y: 'Padding-4'
46
+ y: 'Spacing-4'
47
47
  },
48
48
  item: {
49
49
  border: {
@@ -51,12 +51,12 @@ var breadcrumbTokenExtraValue = {
51
51
  },
52
52
  wrapper: {
53
53
  padding: {
54
- x: 'Padding-4'
54
+ x: 'Spacing-4'
55
55
  }
56
56
  },
57
57
  padding: {
58
- x: 'Padding-8',
59
- y: 'Padding-5'
58
+ x: 'Spacing-8',
59
+ y: 'Spacing-5'
60
60
  },
61
61
  hover: {
62
62
  background: {
@@ -70,7 +70,7 @@ var breadcrumbTokenExtraValue = {
70
70
  },
71
71
  separator: {
72
72
  margin: {
73
- x: 'Padding-8'
73
+ x: 'Spacing-8'
74
74
  }
75
75
  },
76
76
  icon: {
@@ -1,7 +1,7 @@
1
1
  export interface BreadcrumbTokens {
2
2
  /**
3
3
  * @type {string}
4
- * @token 14/regular
4
+ * @token Font-14
5
5
  * @description 面包屑字体字号
6
6
  */
7
7
  breadcrumbFontSize: string;
@@ -43,7 +43,7 @@ export interface BreadcrumbTokens {
43
43
  breadcrumbListBorderColor: string;
44
44
  /**
45
45
  * @type {string}
46
- * @token Padding-4
46
+ * @token Spacing-4
47
47
  * @description 面包屑下拉列表的内边距(垂直方向)
48
48
  */
49
49
  breadcrumbListPaddingY: string;
@@ -55,19 +55,19 @@ export interface BreadcrumbTokens {
55
55
  breadcrumbListItemBorderRadius: string;
56
56
  /**
57
57
  * @type {string}
58
- * @token Padding-4
58
+ * @token Spacing-4
59
59
  * @description 面包屑下拉列表的选项外部容器内边距(水平方向)
60
60
  */
61
61
  breadcrumbListItemWrapperPaddingX: string;
62
62
  /**
63
63
  * @type {string}
64
- * @token Padding-8
64
+ * @token Spacing-8
65
65
  * @description 面包屑下拉列表的选项内边距(水平方向)
66
66
  */
67
67
  breadcrumbListItemPaddingX: string;
68
68
  /**
69
69
  * @type {string}
70
- * @token Padding-5
70
+ * @token Spacing-5
71
71
  * @description 面包屑下拉列表的选项内边距(垂直方向)
72
72
  */
73
73
  breadcrumbListItemPaddingY: string;
@@ -85,7 +85,7 @@ export interface BreadcrumbTokens {
85
85
  breadcrumbListItemHoverFontColor: string;
86
86
  /**
87
87
  * @type {string}
88
- * @token Padding-8
88
+ * @token Spacing-8
89
89
  * @description 面包屑分隔符外边距(水平方向)
90
90
  */
91
91
  breadcrumbSeparatorMarginX: string;
@@ -244,22 +244,22 @@ var buttonTokens = {
244
244
  buttonLinkFocusFontColor: 'Brand-5',
245
245
  buttonLinkFocusBackgroundColor: 'transparent',
246
246
  buttonLinkFocusBorderColor: 'transparent',
247
- buttonFontSize: '14/regular',
247
+ buttonFontSize: 'Font-14',
248
248
  buttonBorderRadius: 'Radius-4',
249
- buttonPaddingX: 'Padding-12',
250
- buttonPaddingY: 'Padding-5',
249
+ buttonPaddingX: 'Spacing-12',
250
+ buttonPaddingY: 'Spacing-5',
251
251
  buttonHeight: 'Size-16',
252
252
  buttonFontWeight: 'Weight-regular',
253
- buttonSmallFontSize: '12/regular',
253
+ buttonSmallFontSize: 'Font-12',
254
254
  buttonSmallBorderRadius: 'Radius-4',
255
- buttonSmallPaddingX: 'Padding-8',
256
- buttonSmallPaddingY: 'Padding-2',
255
+ buttonSmallPaddingX: 'Spacing-8',
256
+ buttonSmallPaddingY: 'Spacing-2',
257
257
  buttonSmallHeight: 'Size-12',
258
258
  buttonSmallFontWeight: 'Weight-regular',
259
- buttonLargeFontSize: '16/regular',
259
+ buttonLargeFontSize: 'Font-16',
260
260
  buttonLargeBorderRadius: 'Radius-4',
261
- buttonLargePaddingX: 'Padding-16',
262
- buttonLargePaddingY: 'Padding-8',
261
+ buttonLargePaddingX: 'Spacing-16',
262
+ buttonLargePaddingY: 'Spacing-8',
263
263
  buttonLargeHeight: 'Size-20',
264
264
  buttonLargeFontWeight: 'Weight-regular',
265
265
  buttonPrimarySplitBackgroundColor: 'Neutral-fill-1',
@@ -337,16 +337,16 @@ var buttonTokens = {
337
337
  buttonDangerTextSplitHoverBackgroundColor: 'Neutral-border-1',
338
338
  buttonDangerTextSplitActiveBackgroundColor: 'Neutral-border-1',
339
339
  buttonDangerTextSplitFocusBackgroundColor: 'Neutral-border-1',
340
- buttonRoundBorderRadius: 'Radius-1000',
341
- buttonCircleBorderRadius: 'Radius-50%',
342
- buttonSquareBorderRadius: 'Radius-4',
340
+ buttonRoundBorderRadius: 'Radius-full',
341
+ buttonCircleBorderRadius: 'Radius-circle',
342
+ buttonSquareBorderRadius: 'Radius-default',
343
343
  buttonSmallRoundBorderRadius: 'Radius-1000',
344
- buttonSmallCircleBorderRadius: 'Radius-50%',
345
- buttonSmallSquareBorderRadius: 'Radius-4',
344
+ buttonSmallCircleBorderRadius: 'Radius-circle',
345
+ buttonSmallSquareBorderRadius: 'Radius-default',
346
346
  buttonLargeRoundBorderRadius: 'Radius-1000',
347
347
  buttonLargeCircleBorderRadius: 'Radius-50%',
348
348
  buttonLargeSquareBorderRadius: 'Radius-4',
349
- buttonNearlyMargin: 'Margin-8',
350
- buttonSpinMargin: 'Margin-4'
349
+ buttonNearlyMargin: 'Spacing-8',
350
+ buttonSpinMargin: 'Spacing-4'
351
351
  };
352
352
  export default buttonTokens;
@@ -2169,28 +2169,28 @@ var buttonTokenValue = {
2169
2169
  }
2170
2170
  },
2171
2171
  font: {
2172
- size: '14/regular',
2172
+ size: 'Font-14',
2173
2173
  weight: 'Weight-regular'
2174
2174
  },
2175
2175
  border: {
2176
2176
  radius: 'Radius-4'
2177
2177
  },
2178
2178
  padding: {
2179
- x: 'Padding-12',
2180
- y: 'Padding-5'
2179
+ x: 'Spacing-12',
2180
+ y: 'Spacing-5'
2181
2181
  },
2182
2182
  height: 'Size-16',
2183
2183
  small: {
2184
2184
  font: {
2185
- size: '12/regular',
2185
+ size: 'Font-12',
2186
2186
  weight: 'Weight-regular'
2187
2187
  },
2188
2188
  border: {
2189
2189
  radius: 'Radius-4'
2190
2190
  },
2191
2191
  padding: {
2192
- x: 'Padding-8',
2193
- y: 'Padding-2'
2192
+ x: 'Spacing-8',
2193
+ y: 'Spacing-2'
2194
2194
  },
2195
2195
  height: 'Size-12',
2196
2196
  round: {
@@ -2200,26 +2200,26 @@ var buttonTokenValue = {
2200
2200
  },
2201
2201
  circle: {
2202
2202
  border: {
2203
- radius: 'Radius-50%'
2203
+ radius: 'Radius-circle'
2204
2204
  }
2205
2205
  },
2206
2206
  square: {
2207
2207
  border: {
2208
- radius: 'Radius-4'
2208
+ radius: 'Radius-default'
2209
2209
  }
2210
2210
  }
2211
2211
  },
2212
2212
  large: {
2213
2213
  font: {
2214
- size: '16/regular',
2214
+ size: 'Font-16',
2215
2215
  weight: 'Weight-regular'
2216
2216
  },
2217
2217
  border: {
2218
2218
  radius: 'Radius-4'
2219
2219
  },
2220
2220
  padding: {
2221
- x: 'Padding-16',
2222
- y: 'Padding-8'
2221
+ x: 'Spacing-16',
2222
+ y: 'Spacing-8'
2223
2223
  },
2224
2224
  height: 'Size-20',
2225
2225
  round: {
@@ -2229,12 +2229,12 @@ var buttonTokenValue = {
2229
2229
  },
2230
2230
  circle: {
2231
2231
  border: {
2232
- radius: 'Radius-50%'
2232
+ radius: 'Radius-circle'
2233
2233
  }
2234
2234
  },
2235
2235
  square: {
2236
2236
  border: {
2237
- radius: 'Radius-4'
2237
+ radius: 'Radius-default'
2238
2238
  }
2239
2239
  }
2240
2240
  },
@@ -2254,10 +2254,10 @@ var buttonTokenValue = {
2254
2254
  }
2255
2255
  },
2256
2256
  nearly: {
2257
- margin: 'Margin-8'
2257
+ margin: 'Spacing-8'
2258
2258
  },
2259
2259
  spin: {
2260
- margin: 'Margin-4'
2260
+ margin: 'Spacing-4'
2261
2261
  }
2262
2262
  };
2263
2263
  var buttonTokenExtraValue = {
@@ -1453,25 +1453,25 @@ export interface ButtonTokens {
1453
1453
  buttonLinkFocusBorderColor: string;
1454
1454
  /**
1455
1455
  * @type {string}
1456
- * @token 14/regular
1456
+ * @token Font-14
1457
1457
  * @description 按钮字体字号
1458
1458
  */
1459
1459
  buttonFontSize: string;
1460
1460
  /**
1461
1461
  * @type {string}
1462
- * @token Radius-4
1462
+ * @token Radius-default
1463
1463
  * @description 按钮边框圆角
1464
1464
  */
1465
1465
  buttonBorderRadius: string;
1466
1466
  /**
1467
1467
  * @type {string}
1468
- * @token Padding-12
1468
+ * @token Spacing-12
1469
1469
  * @description 按钮内边距(水平方向)
1470
1470
  */
1471
1471
  buttonPaddingX: string;
1472
1472
  /**
1473
1473
  * @type {string}
1474
- * @token Padding-5
1474
+ * @token Spacing-5
1475
1475
  * @description 按钮内边距(垂直方向)
1476
1476
  */
1477
1477
  buttonPaddingY: string;
@@ -1489,25 +1489,25 @@ export interface ButtonTokens {
1489
1489
  buttonFontWeight: string;
1490
1490
  /**
1491
1491
  * @type {string}
1492
- * @token 12/regular
1492
+ * @token Font-12
1493
1493
  * @description 按钮小尺寸字体字号
1494
1494
  */
1495
1495
  buttonSmallFontSize: string;
1496
1496
  /**
1497
1497
  * @type {string}
1498
- * @token Radius-4
1498
+ * @token Radius-default
1499
1499
  * @description 按钮小尺寸边框圆角
1500
1500
  */
1501
1501
  buttonSmallBorderRadius: string;
1502
1502
  /**
1503
1503
  * @type {string}
1504
- * @token Padding-8
1504
+ * @token Spacing-8
1505
1505
  * @description 按钮小尺寸内边距(水平方向)
1506
1506
  */
1507
1507
  buttonSmallPaddingX: string;
1508
1508
  /**
1509
1509
  * @type {string}
1510
- * @token Padding-2
1510
+ * @token Spacing-2
1511
1511
  * @description 按钮小尺寸内边距(垂直方向)
1512
1512
  */
1513
1513
  buttonSmallPaddingY: string;
@@ -1525,25 +1525,25 @@ export interface ButtonTokens {
1525
1525
  buttonSmallFontWeight: string;
1526
1526
  /**
1527
1527
  * @type {string}
1528
- * @token 16/regular
1528
+ * @token Font-16
1529
1529
  * @description 按钮大尺寸字体字号
1530
1530
  */
1531
1531
  buttonLargeFontSize: string;
1532
1532
  /**
1533
1533
  * @type {string}
1534
- * @token Radius-4
1534
+ * @token Radius-default
1535
1535
  * @description 按钮大尺寸边框圆角
1536
1536
  */
1537
1537
  buttonLargeBorderRadius: string;
1538
1538
  /**
1539
1539
  * @type {string}
1540
- * @token Padding-16
1540
+ * @token Spacing-16
1541
1541
  * @description 按钮大尺寸内边距(水平方向)
1542
1542
  */
1543
1543
  buttonLargePaddingX: string;
1544
1544
  /**
1545
1545
  * @type {string}
1546
- * @token Padding-8
1546
+ * @token Spacing-8
1547
1547
  * @description 按钮大尺寸内边距(垂直方向)
1548
1548
  */
1549
1549
  buttonLargePaddingY: string;
@@ -2011,19 +2011,19 @@ export interface ButtonTokens {
2011
2011
  buttonDangerTextSplitFocusBackgroundColor: string;
2012
2012
  /**
2013
2013
  * @type {string}
2014
- * @token Radius-1000
2014
+ * @token Radius-full
2015
2015
  * @description 按钮药丸形边框圆角
2016
2016
  */
2017
2017
  buttonRoundBorderRadius: string;
2018
2018
  /**
2019
2019
  * @type {string}
2020
- * @token Radius-50%
2020
+ * @token Radius-circle
2021
2021
  * @description 按钮圆形边框圆角
2022
2022
  */
2023
2023
  buttonCircleBorderRadius: string;
2024
2024
  /**
2025
2025
  * @type {string}
2026
- * @token Radius-4
2026
+ * @token Radius-default
2027
2027
  * @description 按钮方形边框圆角
2028
2028
  */
2029
2029
  buttonSquareBorderRadius: string;
@@ -2035,13 +2035,13 @@ export interface ButtonTokens {
2035
2035
  buttonSmallRoundBorderRadius: string;
2036
2036
  /**
2037
2037
  * @type {string}
2038
- * @token Radius-50%
2038
+ * @token Radius-circle
2039
2039
  * @description 按钮小尺寸圆形边框圆角
2040
2040
  */
2041
2041
  buttonSmallCircleBorderRadius: string;
2042
2042
  /**
2043
2043
  * @type {string}
2044
- * @token Radius-4
2044
+ * @token Radius-default
2045
2045
  * @description 按钮小尺寸方形边框圆角
2046
2046
  */
2047
2047
  buttonSmallSquareBorderRadius: string;
@@ -2053,25 +2053,25 @@ export interface ButtonTokens {
2053
2053
  buttonLargeRoundBorderRadius: string;
2054
2054
  /**
2055
2055
  * @type {string}
2056
- * @token Radius-50%
2056
+ * @token Radius-circle
2057
2057
  * @description 按钮大尺寸圆形边框圆角
2058
2058
  */
2059
2059
  buttonLargeCircleBorderRadius: string;
2060
2060
  /**
2061
2061
  * @type {string}
2062
- * @token Radius-4
2062
+ * @token Radius-default
2063
2063
  * @description 按钮大尺寸方形边框圆角
2064
2064
  */
2065
2065
  buttonLargeSquareBorderRadius: string;
2066
2066
  /**
2067
2067
  * @type {string}
2068
- * @token Margin-8
2068
+ * @token Spacing-8
2069
2069
  * @description 按钮相邻之间的外边距
2070
2070
  */
2071
2071
  buttonNearlyMargin: string;
2072
2072
  /**
2073
2073
  * @type {string}
2074
- * @token Margin-4
2074
+ * @token Spacing-4
2075
2075
  * @description 按钮加载中icon的外边距
2076
2076
  */
2077
2077
  buttonSpinMargin: string;
package/esm/card/card.js CHANGED
@@ -7,12 +7,12 @@ var cardTokens = {
7
7
  cardBorderColor: 'Neutral-border-1',
8
8
  cardBorderRadius: 'Radius-4',
9
9
  cardFontColor: 'Neutral-text-5',
10
- cardFontSize: '14/regular',
11
- cardPaddingX: 'Padding-16',
12
- cardPaddingY: 'Padding-12',
13
- cardTitleFontSize: '16/medium',
10
+ cardFontSize: 'Font-14',
11
+ cardPaddingX: 'Spacing-16',
12
+ cardPaddingY: 'Spacing-12',
13
+ cardTitleFontSize: 'Font-16',
14
14
  cardHeaderGap: '8px',
15
- cardHeaderExtraMarginX: 'Margin-16',
15
+ cardHeaderExtraMarginX: 'Spacing-16',
16
16
  cardIndicatorSize: 'Size-7',
17
17
  cardIndicatorColor: 'Neutral-text-4'
18
18
  };