@sheinx/theme 3.1.0-rc.2 → 3.1.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 (310) 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 +5 -5
  9. package/cjs/button/token.js +6 -6
  10. package/cjs/card/card.js +5 -5
  11. package/cjs/card/token.js +6 -6
  12. package/cjs/card/type.d.ts +5 -5
  13. package/cjs/card-group/card-group.js +1 -1
  14. package/cjs/card-group/token.js +1 -1
  15. package/cjs/card-group/type.d.ts +1 -1
  16. package/cjs/carousel/carousel.js +5 -5
  17. package/cjs/carousel/token.js +5 -5
  18. package/cjs/carousel/type.d.ts +5 -5
  19. package/cjs/cascader/cascader.d.ts.map +1 -1
  20. package/cjs/cascader/cascader.js +33 -34
  21. package/cjs/cascader/token.js +34 -35
  22. package/cjs/cascader/type.d.ts +33 -39
  23. package/cjs/cascader/type.d.ts.map +1 -1
  24. package/cjs/checkbox/checkbox.d.ts.map +1 -1
  25. package/cjs/checkbox/checkbox.js +8 -7
  26. package/cjs/checkbox/token.js +10 -7
  27. package/cjs/checkbox/type.d.ts +13 -7
  28. package/cjs/checkbox/type.d.ts.map +1 -1
  29. package/cjs/collapse/collapse.js +7 -7
  30. package/cjs/collapse/token.js +7 -7
  31. package/cjs/collapse/type.d.ts +7 -7
  32. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  33. package/cjs/date-picker/date-picker.js +36 -49
  34. package/cjs/date-picker/token.js +36 -89
  35. package/cjs/date-picker/type.d.ts +36 -114
  36. package/cjs/date-picker/type.d.ts.map +1 -1
  37. package/cjs/descriptions/descriptions.js +14 -14
  38. package/cjs/descriptions/token.js +14 -14
  39. package/cjs/descriptions/type.d.ts +14 -14
  40. package/cjs/divider/divider.js +4 -4
  41. package/cjs/divider/token.js +4 -4
  42. package/cjs/divider/type.d.ts +4 -4
  43. package/cjs/dropdown/dropdown.js +29 -29
  44. package/cjs/dropdown/token.js +29 -29
  45. package/cjs/dropdown/type.d.ts +29 -29
  46. package/cjs/editable-area/editable-area.js +1 -1
  47. package/cjs/editable-area/token.js +1 -1
  48. package/cjs/editable-area/type.d.ts +1 -1
  49. package/cjs/empty/empty.js +1 -1
  50. package/cjs/empty/token.js +1 -1
  51. package/cjs/empty/type.d.ts +1 -1
  52. package/cjs/form/form.js +7 -7
  53. package/cjs/form/token.js +7 -7
  54. package/cjs/form/type.d.ts +7 -7
  55. package/cjs/icon/icon.js +3 -3
  56. package/cjs/icon/token.js +3 -3
  57. package/cjs/icon/type.d.ts +3 -3
  58. package/cjs/image/image.js +2 -2
  59. package/cjs/image/token.js +2 -2
  60. package/cjs/image/type.d.ts +2 -2
  61. package/cjs/index.d.ts +3 -3
  62. package/cjs/index.d.ts.map +1 -1
  63. package/cjs/index.js +9 -9
  64. package/cjs/input/input.js +18 -18
  65. package/cjs/input/token.js +18 -18
  66. package/cjs/input/type.d.ts +18 -18
  67. package/cjs/list/list.js +8 -8
  68. package/cjs/list/token.js +8 -8
  69. package/cjs/list/type.d.ts +8 -8
  70. package/cjs/menu/menu.js +1 -1
  71. package/cjs/menu/token.js +1 -1
  72. package/cjs/menu/type.d.ts +1 -1
  73. package/cjs/message/message.js +1 -1
  74. package/cjs/message/token.js +1 -1
  75. package/cjs/message/type.d.ts +1 -1
  76. package/cjs/modal/modal.js +14 -14
  77. package/cjs/modal/token.js +14 -14
  78. package/cjs/modal/type.d.ts +14 -14
  79. package/cjs/pagination/pagination.js +4 -4
  80. package/cjs/pagination/token.js +4 -4
  81. package/cjs/pagination/type.d.ts +4 -4
  82. package/cjs/popover/popover.js +5 -5
  83. package/cjs/popover/token.js +5 -5
  84. package/cjs/popover/type.d.ts +5 -5
  85. package/cjs/progress/progress.js +5 -5
  86. package/cjs/progress/token.js +5 -5
  87. package/cjs/progress/type.d.ts +5 -5
  88. package/cjs/radio/radio.d.ts.map +1 -1
  89. package/cjs/radio/radio.js +9 -10
  90. package/cjs/radio/token.js +9 -12
  91. package/cjs/radio/type.d.ts +9 -15
  92. package/cjs/radio/type.d.ts.map +1 -1
  93. package/cjs/rate/rate.js +1 -1
  94. package/cjs/rate/token.js +1 -1
  95. package/cjs/rate/type.d.ts +1 -1
  96. package/cjs/select/select.d.ts.map +1 -1
  97. package/cjs/select/select.js +38 -39
  98. package/cjs/select/token.js +39 -40
  99. package/cjs/select/type.d.ts +38 -44
  100. package/cjs/select/type.d.ts.map +1 -1
  101. package/cjs/slider/slider.js +5 -5
  102. package/cjs/slider/token.js +5 -5
  103. package/cjs/slider/type.d.ts +5 -5
  104. package/cjs/spin/spin.js +2 -2
  105. package/cjs/spin/token.js +2 -2
  106. package/cjs/spin/type.d.ts +2 -2
  107. package/cjs/steps/steps.d.ts.map +1 -1
  108. package/cjs/steps/steps.js +17 -20
  109. package/cjs/steps/token.js +21 -24
  110. package/cjs/steps/type.d.ts +17 -35
  111. package/cjs/steps/type.d.ts.map +1 -1
  112. package/cjs/sticky/sticky.js +1 -1
  113. package/cjs/sticky/token.js +1 -1
  114. package/cjs/sticky/type.d.ts +1 -1
  115. package/cjs/switch/switch.js +10 -10
  116. package/cjs/switch/token.js +10 -10
  117. package/cjs/switch/type.d.ts +10 -10
  118. package/cjs/table/table.js +8 -8
  119. package/cjs/table/token.js +8 -8
  120. package/cjs/table/type.d.ts +8 -8
  121. package/cjs/tabs/tabs.js +16 -16
  122. package/cjs/tabs/token.js +16 -16
  123. package/cjs/tabs/type.d.ts +16 -16
  124. package/cjs/tag/tag.js +14 -14
  125. package/cjs/tag/token.js +14 -14
  126. package/cjs/tag/type.d.ts +14 -14
  127. package/cjs/textarea/textarea.js +9 -9
  128. package/cjs/textarea/token.js +9 -9
  129. package/cjs/textarea/type.d.ts +9 -9
  130. package/cjs/token/figma.js +36 -96
  131. package/cjs/token/token.d.ts +2 -0
  132. package/cjs/token/token.d.ts.map +1 -1
  133. package/cjs/token/token.js +19 -18
  134. package/cjs/token/type.d.ts +42 -112
  135. package/cjs/token/type.d.ts.map +1 -1
  136. package/cjs/tooltip/token.js +3 -3
  137. package/cjs/tooltip/tooltip.js +3 -3
  138. package/cjs/tooltip/type.d.ts +3 -3
  139. package/cjs/transfer/token.js +4 -4
  140. package/cjs/transfer/transfer.js +4 -4
  141. package/cjs/transfer/type.d.ts +4 -4
  142. package/cjs/tree/token.js +7 -7
  143. package/cjs/tree/tree.js +7 -7
  144. package/cjs/tree/type.d.ts +7 -7
  145. package/cjs/tree-select/token.js +34 -35
  146. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  147. package/cjs/tree-select/tree-select.js +33 -34
  148. package/cjs/tree-select/type.d.ts +33 -39
  149. package/cjs/tree-select/type.d.ts.map +1 -1
  150. package/cjs/upload/token.js +7 -7
  151. package/cjs/upload/type.d.ts +7 -7
  152. package/cjs/upload/upload.js +7 -7
  153. package/cjs/utils/css-var.d.ts +1 -1
  154. package/cjs/utils/css-var.d.ts.map +1 -1
  155. package/cjs/utils/css-var.js +1 -10
  156. package/esm/alert/alert.js +5 -5
  157. package/esm/alert/token.js +5 -5
  158. package/esm/alert/type.d.ts +5 -5
  159. package/esm/breadcrumb/breadcrumb.js +6 -6
  160. package/esm/breadcrumb/token.js +6 -6
  161. package/esm/breadcrumb/type.d.ts +6 -6
  162. package/esm/button/button.js +5 -5
  163. package/esm/button/token.js +6 -6
  164. package/esm/card/card.js +5 -5
  165. package/esm/card/token.js +6 -6
  166. package/esm/card/type.d.ts +5 -5
  167. package/esm/card-group/card-group.js +1 -1
  168. package/esm/card-group/token.js +1 -1
  169. package/esm/card-group/type.d.ts +1 -1
  170. package/esm/carousel/carousel.js +5 -5
  171. package/esm/carousel/token.js +5 -5
  172. package/esm/carousel/type.d.ts +5 -5
  173. package/esm/cascader/cascader.d.ts.map +1 -1
  174. package/esm/cascader/cascader.js +33 -34
  175. package/esm/cascader/token.js +34 -35
  176. package/esm/cascader/type.d.ts +33 -39
  177. package/esm/cascader/type.d.ts.map +1 -1
  178. package/esm/checkbox/checkbox.d.ts.map +1 -1
  179. package/esm/checkbox/checkbox.js +8 -7
  180. package/esm/checkbox/token.js +10 -7
  181. package/esm/checkbox/type.d.ts +13 -7
  182. package/esm/checkbox/type.d.ts.map +1 -1
  183. package/esm/collapse/collapse.js +7 -7
  184. package/esm/collapse/token.js +7 -7
  185. package/esm/collapse/type.d.ts +7 -7
  186. package/esm/date-picker/date-picker.d.ts.map +1 -1
  187. package/esm/date-picker/date-picker.js +36 -49
  188. package/esm/date-picker/token.js +36 -89
  189. package/esm/date-picker/type.d.ts +36 -114
  190. package/esm/date-picker/type.d.ts.map +1 -1
  191. package/esm/descriptions/descriptions.js +14 -14
  192. package/esm/descriptions/token.js +14 -14
  193. package/esm/descriptions/type.d.ts +14 -14
  194. package/esm/divider/divider.js +4 -4
  195. package/esm/divider/token.js +4 -4
  196. package/esm/divider/type.d.ts +4 -4
  197. package/esm/dropdown/dropdown.js +29 -29
  198. package/esm/dropdown/token.js +29 -29
  199. package/esm/dropdown/type.d.ts +29 -29
  200. package/esm/editable-area/editable-area.js +1 -1
  201. package/esm/editable-area/token.js +1 -1
  202. package/esm/editable-area/type.d.ts +1 -1
  203. package/esm/empty/empty.js +1 -1
  204. package/esm/empty/token.js +1 -1
  205. package/esm/empty/type.d.ts +1 -1
  206. package/esm/form/form.js +7 -7
  207. package/esm/form/token.js +7 -7
  208. package/esm/form/type.d.ts +7 -7
  209. package/esm/icon/icon.js +3 -3
  210. package/esm/icon/token.js +3 -3
  211. package/esm/icon/type.d.ts +3 -3
  212. package/esm/image/image.js +2 -2
  213. package/esm/image/token.js +2 -2
  214. package/esm/image/type.d.ts +2 -2
  215. package/esm/index.d.ts +3 -3
  216. package/esm/index.d.ts.map +1 -1
  217. package/esm/index.js +4 -4
  218. package/esm/input/input.js +18 -18
  219. package/esm/input/token.js +18 -18
  220. package/esm/input/type.d.ts +18 -18
  221. package/esm/list/list.js +8 -8
  222. package/esm/list/token.js +8 -8
  223. package/esm/list/type.d.ts +8 -8
  224. package/esm/menu/menu.js +1 -1
  225. package/esm/menu/token.js +1 -1
  226. package/esm/menu/type.d.ts +1 -1
  227. package/esm/message/message.js +1 -1
  228. package/esm/message/token.js +1 -1
  229. package/esm/message/type.d.ts +1 -1
  230. package/esm/modal/modal.js +14 -14
  231. package/esm/modal/token.js +14 -14
  232. package/esm/modal/type.d.ts +14 -14
  233. package/esm/pagination/pagination.js +4 -4
  234. package/esm/pagination/token.js +4 -4
  235. package/esm/pagination/type.d.ts +4 -4
  236. package/esm/popover/popover.js +5 -5
  237. package/esm/popover/token.js +5 -5
  238. package/esm/popover/type.d.ts +5 -5
  239. package/esm/progress/progress.js +5 -5
  240. package/esm/progress/token.js +5 -5
  241. package/esm/progress/type.d.ts +5 -5
  242. package/esm/radio/radio.d.ts.map +1 -1
  243. package/esm/radio/radio.js +9 -10
  244. package/esm/radio/token.js +9 -12
  245. package/esm/radio/type.d.ts +9 -15
  246. package/esm/radio/type.d.ts.map +1 -1
  247. package/esm/rate/rate.js +1 -1
  248. package/esm/rate/token.js +1 -1
  249. package/esm/rate/type.d.ts +1 -1
  250. package/esm/select/select.d.ts.map +1 -1
  251. package/esm/select/select.js +38 -39
  252. package/esm/select/token.js +39 -40
  253. package/esm/select/type.d.ts +38 -44
  254. package/esm/select/type.d.ts.map +1 -1
  255. package/esm/slider/slider.js +5 -5
  256. package/esm/slider/token.js +5 -5
  257. package/esm/slider/type.d.ts +5 -5
  258. package/esm/spin/spin.js +2 -2
  259. package/esm/spin/token.js +2 -2
  260. package/esm/spin/type.d.ts +2 -2
  261. package/esm/steps/steps.d.ts.map +1 -1
  262. package/esm/steps/steps.js +17 -20
  263. package/esm/steps/token.js +21 -24
  264. package/esm/steps/type.d.ts +17 -35
  265. package/esm/steps/type.d.ts.map +1 -1
  266. package/esm/sticky/sticky.js +1 -1
  267. package/esm/sticky/token.js +1 -1
  268. package/esm/sticky/type.d.ts +1 -1
  269. package/esm/switch/switch.js +10 -10
  270. package/esm/switch/token.js +10 -10
  271. package/esm/switch/type.d.ts +10 -10
  272. package/esm/table/table.js +8 -8
  273. package/esm/table/token.js +8 -8
  274. package/esm/table/type.d.ts +8 -8
  275. package/esm/tabs/tabs.js +16 -16
  276. package/esm/tabs/token.js +16 -16
  277. package/esm/tabs/type.d.ts +16 -16
  278. package/esm/tag/tag.js +14 -14
  279. package/esm/tag/token.js +14 -14
  280. package/esm/tag/type.d.ts +14 -14
  281. package/esm/textarea/textarea.js +9 -9
  282. package/esm/textarea/token.js +9 -9
  283. package/esm/textarea/type.d.ts +9 -9
  284. package/esm/token/figma.js +36 -96
  285. package/esm/token/token.d.ts +2 -0
  286. package/esm/token/token.d.ts.map +1 -1
  287. package/esm/token/token.js +19 -17
  288. package/esm/token/type.d.ts +42 -112
  289. package/esm/token/type.d.ts.map +1 -1
  290. package/esm/tooltip/token.js +3 -3
  291. package/esm/tooltip/tooltip.js +3 -3
  292. package/esm/tooltip/type.d.ts +3 -3
  293. package/esm/transfer/token.js +4 -4
  294. package/esm/transfer/transfer.js +4 -4
  295. package/esm/transfer/type.d.ts +4 -4
  296. package/esm/tree/token.js +7 -7
  297. package/esm/tree/tree.js +7 -7
  298. package/esm/tree/type.d.ts +7 -7
  299. package/esm/tree-select/token.js +34 -35
  300. package/esm/tree-select/tree-select.d.ts.map +1 -1
  301. package/esm/tree-select/tree-select.js +33 -34
  302. package/esm/tree-select/type.d.ts +33 -39
  303. package/esm/tree-select/type.d.ts.map +1 -1
  304. package/esm/upload/token.js +7 -7
  305. package/esm/upload/type.d.ts +7 -7
  306. package/esm/upload/upload.js +7 -7
  307. package/esm/utils/css-var.d.ts +1 -1
  308. package/esm/utils/css-var.d.ts.map +1 -1
  309. package/esm/utils/css-var.js +1 -10
  310. package/package.json +8 -3
@@ -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;
@@ -245,19 +245,19 @@ var buttonTokens = {
245
245
  buttonLinkFocusBackgroundColor: 'transparent',
246
246
  buttonLinkFocusBorderColor: 'transparent',
247
247
  buttonFontSize: 'Font-14',
248
- buttonBorderRadius: 'Radius-default',
248
+ buttonBorderRadius: 'Radius-4',
249
249
  buttonPaddingX: 'Spacing-12',
250
250
  buttonPaddingY: 'Spacing-5',
251
251
  buttonHeight: 'Size-16',
252
252
  buttonFontWeight: 'Weight-regular',
253
253
  buttonSmallFontSize: 'Font-12',
254
- buttonSmallBorderRadius: 'Radius-default',
254
+ buttonSmallBorderRadius: 'Radius-4',
255
255
  buttonSmallPaddingX: 'Spacing-8',
256
256
  buttonSmallPaddingY: 'Spacing-2',
257
257
  buttonSmallHeight: 'Size-12',
258
258
  buttonSmallFontWeight: 'Weight-regular',
259
259
  buttonLargeFontSize: 'Font-16',
260
- buttonLargeBorderRadius: 'Radius-default',
260
+ buttonLargeBorderRadius: 'Radius-4',
261
261
  buttonLargePaddingX: 'Spacing-16',
262
262
  buttonLargePaddingY: 'Spacing-8',
263
263
  buttonLargeHeight: 'Size-20',
@@ -344,8 +344,8 @@ var buttonTokens = {
344
344
  buttonSmallCircleBorderRadius: 'Radius-circle',
345
345
  buttonSmallSquareBorderRadius: 'Radius-default',
346
346
  buttonLargeRoundBorderRadius: 'Radius-1000',
347
- buttonLargeCircleBorderRadius: 'Radius-circle',
348
- buttonLargeSquareBorderRadius: 'Radius-default',
347
+ buttonLargeCircleBorderRadius: 'Radius-50%',
348
+ buttonLargeSquareBorderRadius: 'Radius-4',
349
349
  buttonNearlyMargin: 'Spacing-8',
350
350
  buttonSpinMargin: 'Spacing-4'
351
351
  };
@@ -2173,7 +2173,7 @@ var buttonTokenValue = {
2173
2173
  weight: 'Weight-regular'
2174
2174
  },
2175
2175
  border: {
2176
- radius: 'Radius-default'
2176
+ radius: 'Radius-4'
2177
2177
  },
2178
2178
  padding: {
2179
2179
  x: 'Spacing-12',
@@ -2186,7 +2186,7 @@ var buttonTokenValue = {
2186
2186
  weight: 'Weight-regular'
2187
2187
  },
2188
2188
  border: {
2189
- radius: 'Radius-default'
2189
+ radius: 'Radius-4'
2190
2190
  },
2191
2191
  padding: {
2192
2192
  x: 'Spacing-8',
@@ -2215,7 +2215,7 @@ var buttonTokenValue = {
2215
2215
  weight: 'Weight-regular'
2216
2216
  },
2217
2217
  border: {
2218
- radius: 'Radius-default'
2218
+ radius: 'Radius-4'
2219
2219
  },
2220
2220
  padding: {
2221
2221
  x: 'Spacing-16',
@@ -2240,17 +2240,17 @@ var buttonTokenValue = {
2240
2240
  },
2241
2241
  round: {
2242
2242
  border: {
2243
- radius: 'Radius-full'
2243
+ radius: 'Radius-1000'
2244
2244
  }
2245
2245
  },
2246
2246
  circle: {
2247
2247
  border: {
2248
- radius: 'Radius-circle'
2248
+ radius: 'Radius-50%'
2249
2249
  }
2250
2250
  },
2251
2251
  square: {
2252
2252
  border: {
2253
- radius: 'Radius-default'
2253
+ radius: 'Radius-4'
2254
2254
  }
2255
2255
  },
2256
2256
  nearly: {
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
  };
package/esm/card/token.js CHANGED
@@ -24,7 +24,7 @@ var cardTokenDescription = {
24
24
  */
25
25
  var cardTokenValue = {
26
26
  font: {
27
- size: '14/regular'
27
+ size: 'Font-14'
28
28
  }
29
29
  };
30
30
  var cardTokenExtraValue = {
@@ -38,22 +38,22 @@ var cardTokenExtraValue = {
38
38
  },
39
39
  font: {
40
40
  color: 'Neutral-text-5',
41
- size: '14/regular'
41
+ size: 'Font-14'
42
42
  },
43
43
  padding: {
44
- x: 'Padding-16',
45
- y: 'Padding-12'
44
+ x: 'Spacing-16',
45
+ y: 'Spacing-12'
46
46
  },
47
47
  title: {
48
48
  font: {
49
- size: '16/medium'
49
+ size: 'Font-16'
50
50
  }
51
51
  },
52
52
  header: {
53
53
  gap: '8px',
54
54
  extra: {
55
55
  margin: {
56
- x: 'Margin-16'
56
+ x: 'Spacing-16'
57
57
  }
58
58
  }
59
59
  },
@@ -31,25 +31,25 @@ export interface CardTokens {
31
31
  cardFontColor: string;
32
32
  /**
33
33
  * @type {string}
34
- * @token 14/regular
34
+ * @token Font-14
35
35
  * @description 卡片字体字号
36
36
  */
37
37
  cardFontSize: string;
38
38
  /**
39
39
  * @type {string}
40
- * @token Padding-16
40
+ * @token Spacing-16
41
41
  * @description 卡片内边距(水平方向)
42
42
  */
43
43
  cardPaddingX: string;
44
44
  /**
45
45
  * @type {string}
46
- * @token Padding-12
46
+ * @token Spacing-12
47
47
  * @description 卡片内边距(垂直方向)
48
48
  */
49
49
  cardPaddingY: string;
50
50
  /**
51
51
  * @type {string}
52
- * @token 16/medium
52
+ * @token Font-16
53
53
  * @description 卡片标题模式字体字号
54
54
  */
55
55
  cardTitleFontSize: string;
@@ -61,7 +61,7 @@ export interface CardTokens {
61
61
  cardHeaderGap: string;
62
62
  /**
63
63
  * @type {string}
64
- * @token Margin-16
64
+ * @token Spacing-16
65
65
  * @description 卡片头部额外内容的外边距(水平方向)
66
66
  */
67
67
  cardHeaderExtraMarginX: string;
@@ -2,6 +2,6 @@
2
2
  // This file was generated automatically by a script. Please do not modify it directly.
3
3
 
4
4
  var cardGroupTokens = {
5
- cardGroupFontSize: '14/regular'
5
+ cardGroupFontSize: 'Font-14'
6
6
  };
7
7
  export default cardGroupTokens;
@@ -19,7 +19,7 @@ var cardGroupTokenDescription = {
19
19
  */
20
20
  var cardGroupTokenValue = {
21
21
  font: {
22
- size: '14/regular'
22
+ size: 'Font-14'
23
23
  }
24
24
  };
25
25
  var cardGroupTokenExtraValue = {};
@@ -1,7 +1,7 @@
1
1
  export interface CardGroupTokens {
2
2
  /**
3
3
  * @type {string}
4
- * @token 14/regular
4
+ * @token Font-14
5
5
  * @description undefinedundefined字体字号
6
6
  */
7
7
  cardGroupFontSize: string;
@@ -2,7 +2,7 @@
2
2
  // This file was generated automatically by a script. Please do not modify it directly.
3
3
 
4
4
  var carouselTokens = {
5
- carouselArrowMargin: 'Margin-18',
5
+ carouselArrowMargin: 'Spacing-18',
6
6
  carouselArrowSize: 'Size-12',
7
7
  carouselArrowIconSize: 'Size-10',
8
8
  carouselArrowBackgroundColor: 'rgba(255, 255, 255, 0.2)',
@@ -13,20 +13,20 @@ var carouselTokens = {
13
13
  carouselIndicatorActiveBackgroundColor: 'Neutral-fill-1',
14
14
  carouselIndicatorWrapperHeight: 'Size-20',
15
15
  carouselIndicatorCircleWidth: 'Size-3',
16
- carouselIndicatorCircleGap: 'Margin-8',
16
+ carouselIndicatorCircleGap: 'Spacing-8',
17
17
  carouselIndicatorLineWidth: 'Size-6',
18
18
  carouselIndicatorLineHeight: 'Size-2',
19
- carouselIndicatorLineGap: 'Margin-4',
19
+ carouselIndicatorLineGap: 'Spacing-4',
20
20
  carouselIndicatorArrowSize: 'Size-8',
21
21
  carouselIndicatorArrowColor: 'Neutral-fill-4',
22
22
  carouselIndicatorArrowHoverColor: 'Neutral-fill-1',
23
23
  carouselIndicatorNumberColor: 'Neutral-fill-1',
24
- carouselIndicatorNumberFontSize: '14/regular',
24
+ carouselIndicatorNumberFontSize: 'Font-14',
25
25
  carouselIndicatorOuterBackgroundColor: 'Neutral-fill-4',
26
26
  carouselIndicatorOuterActiveBackgroundColor: 'Neutral-fill-6',
27
27
  carouselIndicatorOuterArrowColor: 'Neutral-text-4',
28
28
  carouselIndicatorOuterArrowHoverColor: 'Neutral-text-2',
29
29
  carouselIndicatorOuterNumberColor: 'Neutral-text-4',
30
- carouselFontSize: '14/regular'
30
+ carouselFontSize: 'Font-14'
31
31
  };
32
32
  export default carouselTokens;
@@ -26,12 +26,12 @@ var carouselTokenDescription = {
26
26
  */
27
27
  var carouselTokenValue = {
28
28
  font: {
29
- size: '14/regular'
29
+ size: 'Font-14'
30
30
  }
31
31
  };
32
32
  var carouselTokenExtraValue = {
33
33
  arrow: {
34
- margin: 'Margin-18',
34
+ margin: 'Spacing-18',
35
35
  size: 'Size-12',
36
36
  icon: {
37
37
  size: 'Size-10'
@@ -65,12 +65,12 @@ var carouselTokenExtraValue = {
65
65
  },
66
66
  circle: {
67
67
  width: 'Size-3',
68
- gap: 'Margin-8'
68
+ gap: 'Spacing-8'
69
69
  },
70
70
  line: {
71
71
  width: 'Size-6',
72
72
  height: 'Size-2',
73
- gap: 'Margin-4'
73
+ gap: 'Spacing-4'
74
74
  },
75
75
  arrow: {
76
76
  size: 'Size-8',
@@ -82,7 +82,7 @@ var carouselTokenExtraValue = {
82
82
  number: {
83
83
  color: 'Neutral-fill-1',
84
84
  font: {
85
- size: '14/regular'
85
+ size: 'Font-14'
86
86
  }
87
87
  },
88
88
  outer: {
@@ -1,7 +1,7 @@
1
1
  export interface CarouselTokens {
2
2
  /**
3
3
  * @type {string}
4
- * @token Margin-18
4
+ * @token Spacing-18
5
5
  * @description 轮播图箭头外边距
6
6
  */
7
7
  carouselArrowMargin: string;
@@ -67,7 +67,7 @@ export interface CarouselTokens {
67
67
  carouselIndicatorCircleWidth: string;
68
68
  /**
69
69
  * @type {string}
70
- * @token Margin-8
70
+ * @token Spacing-8
71
71
  * @description 轮播图指示器圆形间距
72
72
  */
73
73
  carouselIndicatorCircleGap: string;
@@ -85,7 +85,7 @@ export interface CarouselTokens {
85
85
  carouselIndicatorLineHeight: string;
86
86
  /**
87
87
  * @type {string}
88
- * @token Margin-4
88
+ * @token Spacing-4
89
89
  * @description 轮播图指示器行间距
90
90
  */
91
91
  carouselIndicatorLineGap: string;
@@ -115,7 +115,7 @@ export interface CarouselTokens {
115
115
  carouselIndicatorNumberColor: string;
116
116
  /**
117
117
  * @type {string}
118
- * @token 14/regular
118
+ * @token Font-14
119
119
  * @description 轮播图指示器数字字体字号
120
120
  */
121
121
  carouselIndicatorNumberFontSize: string;
@@ -151,7 +151,7 @@ export interface CarouselTokens {
151
151
  carouselIndicatorOuterNumberColor: string;
152
152
  /**
153
153
  * @type {string}
154
- * @token 14/regular
154
+ * @token Font-14
155
155
  * @description 轮播图字体字号
156
156
  */
157
157
  carouselFontSize: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["cascader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,QAAA,MAAM,cAAc,EAAE,cA4ErB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"cascader.d.ts","sourceRoot":"","sources":["cascader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,QAAA,MAAM,cAAc,EAAE,cA2ErB,CAAC;AAEF,eAAe,cAAc,CAAC"}