@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
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-Present SHEIN
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -20,13 +20,13 @@ var alertTokens = {
20
20
  alertDangerBackgroundColor: 'Danger-1',
21
21
  alertDangerBorderColor: 'Danger-2',
22
22
  alertDangerFontColor: 'Danger-6',
23
- alertFontSize: '14/regular',
23
+ alertFontSize: 'Font-14',
24
24
  alertFontColor: 'Neutral-text-5',
25
- alertPaddingX: 'Padding-16',
26
- alertPaddingY: 'Padding-8',
25
+ alertPaddingX: 'Spacing-16',
26
+ alertPaddingY: 'Spacing-8',
27
27
  alertBorderRadius: 'Radius-4',
28
- alertNearlyMargin: 'Margin-8',
29
- alertTitleFontSize: '16/regular',
28
+ alertNearlyMargin: 'Spacing-8',
29
+ alertTitleFontSize: 'Font-16',
30
30
  alertCloseFontColor: 'Neutral-text-4',
31
31
  alertCloseHoverColor: 'Neutral-text-5',
32
32
  alertMessageHoverColor: 'Neutral-fill-2'
@@ -69,22 +69,22 @@ var alertTokenValue = {
69
69
  }
70
70
  },
71
71
  font: {
72
- size: '14/regular',
72
+ size: 'Font-14',
73
73
  color: 'Neutral-text-5'
74
74
  },
75
75
  padding: {
76
- x: 'Padding-16',
77
- y: 'Padding-8'
76
+ x: 'Spacing-16',
77
+ y: 'Spacing-8'
78
78
  },
79
79
  border: {
80
80
  radius: 'Radius-4'
81
81
  },
82
82
  nearly: {
83
- margin: 'Margin-8'
83
+ margin: 'Spacing-8'
84
84
  },
85
85
  title: {
86
86
  font: {
87
- size: '16/regular'
87
+ size: 'Font-16'
88
88
  }
89
89
  },
90
90
  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;
@@ -8,21 +8,21 @@ 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 breadcrumbTokens = {
11
- breadcrumbFontSize: '14/regular',
11
+ breadcrumbFontSize: 'Font-14',
12
12
  breadcrumbFontColor: 'Neutral-text-5',
13
13
  breadcrumbLinkColor: 'Neutral-text-3',
14
14
  breadcrumbLinkHoverColor: 'Brand-5',
15
15
  breadcrumbListBackgroundColor: 'Neutral-fill-1',
16
16
  breadcrumbListShadow: 'Shadow-1',
17
17
  breadcrumbListBorderColor: '#f4f5f8',
18
- breadcrumbListPaddingY: 'Padding-4',
18
+ breadcrumbListPaddingY: 'Spacing-4',
19
19
  breadcrumbListItemBorderRadius: 'Radius-4',
20
- breadcrumbListItemWrapperPaddingX: 'Padding-4',
21
- breadcrumbListItemPaddingX: 'Padding-8',
22
- breadcrumbListItemPaddingY: 'Padding-5',
20
+ breadcrumbListItemWrapperPaddingX: 'Spacing-4',
21
+ breadcrumbListItemPaddingX: 'Spacing-8',
22
+ breadcrumbListItemPaddingY: 'Spacing-5',
23
23
  breadcrumbListItemHoverBackgroundColor: 'Neutral-fill-2',
24
24
  breadcrumbListItemHoverFontColor: 'Neutral-text-3',
25
- breadcrumbSeparatorMarginX: 'Padding-8',
25
+ breadcrumbSeparatorMarginX: 'Spacing-8',
26
26
  breadcrumbIconBackgroundColor: 'Neutral-text-4'
27
27
  };
28
28
  var _default = exports.default = breadcrumbTokens;
@@ -27,7 +27,7 @@ var breadcrumbTokenDescription = {
27
27
  var breadcrumbTokenValue = {};
28
28
  var breadcrumbTokenExtraValue = {
29
29
  font: {
30
- size: '14/regular',
30
+ size: 'Font-14',
31
31
  color: 'Neutral-text-5'
32
32
  },
33
33
  link: {
@@ -45,7 +45,7 @@ var breadcrumbTokenExtraValue = {
45
45
  color: '#f4f5f8'
46
46
  },
47
47
  padding: {
48
- y: 'Padding-4'
48
+ y: 'Spacing-4'
49
49
  },
50
50
  item: {
51
51
  border: {
@@ -53,12 +53,12 @@ var breadcrumbTokenExtraValue = {
53
53
  },
54
54
  wrapper: {
55
55
  padding: {
56
- x: 'Padding-4'
56
+ x: 'Spacing-4'
57
57
  }
58
58
  },
59
59
  padding: {
60
- x: 'Padding-8',
61
- y: 'Padding-5'
60
+ x: 'Spacing-8',
61
+ y: 'Spacing-5'
62
62
  },
63
63
  hover: {
64
64
  background: {
@@ -72,7 +72,7 @@ var breadcrumbTokenExtraValue = {
72
72
  },
73
73
  separator: {
74
74
  margin: {
75
- x: 'Padding-8'
75
+ x: 'Spacing-8'
76
76
  }
77
77
  },
78
78
  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;
@@ -250,22 +250,22 @@ var buttonTokens = {
250
250
  buttonLinkFocusFontColor: 'Brand-5',
251
251
  buttonLinkFocusBackgroundColor: 'transparent',
252
252
  buttonLinkFocusBorderColor: 'transparent',
253
- buttonFontSize: '14/regular',
253
+ buttonFontSize: 'Font-14',
254
254
  buttonBorderRadius: 'Radius-4',
255
- buttonPaddingX: 'Padding-12',
256
- buttonPaddingY: 'Padding-5',
255
+ buttonPaddingX: 'Spacing-12',
256
+ buttonPaddingY: 'Spacing-5',
257
257
  buttonHeight: 'Size-16',
258
258
  buttonFontWeight: 'Weight-regular',
259
- buttonSmallFontSize: '12/regular',
259
+ buttonSmallFontSize: 'Font-12',
260
260
  buttonSmallBorderRadius: 'Radius-4',
261
- buttonSmallPaddingX: 'Padding-8',
262
- buttonSmallPaddingY: 'Padding-2',
261
+ buttonSmallPaddingX: 'Spacing-8',
262
+ buttonSmallPaddingY: 'Spacing-2',
263
263
  buttonSmallHeight: 'Size-12',
264
264
  buttonSmallFontWeight: 'Weight-regular',
265
- buttonLargeFontSize: '16/regular',
265
+ buttonLargeFontSize: 'Font-16',
266
266
  buttonLargeBorderRadius: 'Radius-4',
267
- buttonLargePaddingX: 'Padding-16',
268
- buttonLargePaddingY: 'Padding-8',
267
+ buttonLargePaddingX: 'Spacing-16',
268
+ buttonLargePaddingY: 'Spacing-8',
269
269
  buttonLargeHeight: 'Size-20',
270
270
  buttonLargeFontWeight: 'Weight-regular',
271
271
  buttonPrimarySplitBackgroundColor: 'Neutral-fill-1',
@@ -343,16 +343,16 @@ var buttonTokens = {
343
343
  buttonDangerTextSplitHoverBackgroundColor: 'Neutral-border-1',
344
344
  buttonDangerTextSplitActiveBackgroundColor: 'Neutral-border-1',
345
345
  buttonDangerTextSplitFocusBackgroundColor: 'Neutral-border-1',
346
- buttonRoundBorderRadius: 'Radius-1000',
347
- buttonCircleBorderRadius: 'Radius-50%',
348
- buttonSquareBorderRadius: 'Radius-4',
346
+ buttonRoundBorderRadius: 'Radius-full',
347
+ buttonCircleBorderRadius: 'Radius-circle',
348
+ buttonSquareBorderRadius: 'Radius-default',
349
349
  buttonSmallRoundBorderRadius: 'Radius-1000',
350
- buttonSmallCircleBorderRadius: 'Radius-50%',
351
- buttonSmallSquareBorderRadius: 'Radius-4',
350
+ buttonSmallCircleBorderRadius: 'Radius-circle',
351
+ buttonSmallSquareBorderRadius: 'Radius-default',
352
352
  buttonLargeRoundBorderRadius: 'Radius-1000',
353
353
  buttonLargeCircleBorderRadius: 'Radius-50%',
354
354
  buttonLargeSquareBorderRadius: 'Radius-4',
355
- buttonNearlyMargin: 'Margin-8',
356
- buttonSpinMargin: 'Margin-4'
355
+ buttonNearlyMargin: 'Spacing-8',
356
+ buttonSpinMargin: 'Spacing-4'
357
357
  };
358
358
  var _default = exports.default = buttonTokens;
@@ -2171,28 +2171,28 @@ var buttonTokenValue = {
2171
2171
  }
2172
2172
  },
2173
2173
  font: {
2174
- size: '14/regular',
2174
+ size: 'Font-14',
2175
2175
  weight: 'Weight-regular'
2176
2176
  },
2177
2177
  border: {
2178
2178
  radius: 'Radius-4'
2179
2179
  },
2180
2180
  padding: {
2181
- x: 'Padding-12',
2182
- y: 'Padding-5'
2181
+ x: 'Spacing-12',
2182
+ y: 'Spacing-5'
2183
2183
  },
2184
2184
  height: 'Size-16',
2185
2185
  small: {
2186
2186
  font: {
2187
- size: '12/regular',
2187
+ size: 'Font-12',
2188
2188
  weight: 'Weight-regular'
2189
2189
  },
2190
2190
  border: {
2191
2191
  radius: 'Radius-4'
2192
2192
  },
2193
2193
  padding: {
2194
- x: 'Padding-8',
2195
- y: 'Padding-2'
2194
+ x: 'Spacing-8',
2195
+ y: 'Spacing-2'
2196
2196
  },
2197
2197
  height: 'Size-12',
2198
2198
  round: {
@@ -2202,26 +2202,26 @@ var buttonTokenValue = {
2202
2202
  },
2203
2203
  circle: {
2204
2204
  border: {
2205
- radius: 'Radius-50%'
2205
+ radius: 'Radius-circle'
2206
2206
  }
2207
2207
  },
2208
2208
  square: {
2209
2209
  border: {
2210
- radius: 'Radius-4'
2210
+ radius: 'Radius-default'
2211
2211
  }
2212
2212
  }
2213
2213
  },
2214
2214
  large: {
2215
2215
  font: {
2216
- size: '16/regular',
2216
+ size: 'Font-16',
2217
2217
  weight: 'Weight-regular'
2218
2218
  },
2219
2219
  border: {
2220
2220
  radius: 'Radius-4'
2221
2221
  },
2222
2222
  padding: {
2223
- x: 'Padding-16',
2224
- y: 'Padding-8'
2223
+ x: 'Spacing-16',
2224
+ y: 'Spacing-8'
2225
2225
  },
2226
2226
  height: 'Size-20',
2227
2227
  round: {
@@ -2231,12 +2231,12 @@ var buttonTokenValue = {
2231
2231
  },
2232
2232
  circle: {
2233
2233
  border: {
2234
- radius: 'Radius-50%'
2234
+ radius: 'Radius-circle'
2235
2235
  }
2236
2236
  },
2237
2237
  square: {
2238
2238
  border: {
2239
- radius: 'Radius-4'
2239
+ radius: 'Radius-default'
2240
2240
  }
2241
2241
  }
2242
2242
  },
@@ -2256,10 +2256,10 @@ var buttonTokenValue = {
2256
2256
  }
2257
2257
  },
2258
2258
  nearly: {
2259
- margin: 'Margin-8'
2259
+ margin: 'Spacing-8'
2260
2260
  },
2261
2261
  spin: {
2262
- margin: 'Margin-4'
2262
+ margin: 'Spacing-4'
2263
2263
  }
2264
2264
  };
2265
2265
  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/cjs/card/card.js CHANGED
@@ -13,12 +13,12 @@ var cardTokens = {
13
13
  cardBorderColor: 'Neutral-border-1',
14
14
  cardBorderRadius: 'Radius-4',
15
15
  cardFontColor: 'Neutral-text-5',
16
- cardFontSize: '14/regular',
17
- cardPaddingX: 'Padding-16',
18
- cardPaddingY: 'Padding-12',
19
- cardTitleFontSize: '16/medium',
16
+ cardFontSize: 'Font-14',
17
+ cardPaddingX: 'Spacing-16',
18
+ cardPaddingY: 'Spacing-12',
19
+ cardTitleFontSize: 'Font-16',
20
20
  cardHeaderGap: '8px',
21
- cardHeaderExtraMarginX: 'Margin-16',
21
+ cardHeaderExtraMarginX: 'Spacing-16',
22
22
  cardIndicatorSize: 'Size-7',
23
23
  cardIndicatorColor: 'Neutral-text-4'
24
24
  };
package/cjs/card/token.js CHANGED
@@ -26,7 +26,7 @@ var cardTokenDescription = {
26
26
  */
27
27
  var cardTokenValue = {
28
28
  font: {
29
- size: '14/regular'
29
+ size: 'Font-14'
30
30
  }
31
31
  };
32
32
  var cardTokenExtraValue = {
@@ -40,22 +40,22 @@ var cardTokenExtraValue = {
40
40
  },
41
41
  font: {
42
42
  color: 'Neutral-text-5',
43
- size: '14/regular'
43
+ size: 'Font-14'
44
44
  },
45
45
  padding: {
46
- x: 'Padding-16',
47
- y: 'Padding-12'
46
+ x: 'Spacing-16',
47
+ y: 'Spacing-12'
48
48
  },
49
49
  title: {
50
50
  font: {
51
- size: '16/medium'
51
+ size: 'Font-16'
52
52
  }
53
53
  },
54
54
  header: {
55
55
  gap: '8px',
56
56
  extra: {
57
57
  margin: {
58
- x: 'Margin-16'
58
+ x: 'Spacing-16'
59
59
  }
60
60
  }
61
61
  },
@@ -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;
@@ -8,6 +8,6 @@ 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 cardGroupTokens = {
11
- cardGroupFontSize: '14/regular'
11
+ cardGroupFontSize: 'Font-14'
12
12
  };
13
13
  var _default = exports.default = cardGroupTokens;
@@ -21,7 +21,7 @@ var cardGroupTokenDescription = {
21
21
  */
22
22
  var cardGroupTokenValue = {
23
23
  font: {
24
- size: '14/regular'
24
+ size: 'Font-14'
25
25
  }
26
26
  };
27
27
  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;