@sheinx/theme 3.0.0-alpha.3 → 3.0.0-alpha.30

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 (369) hide show
  1. package/cjs/alert/alert.d.ts.map +1 -1
  2. package/cjs/alert/alert.js +4 -2
  3. package/cjs/alert/rule.js +1 -1
  4. package/cjs/alert/token.js +16 -2
  5. package/cjs/alert/type.d.ts +15 -3
  6. package/cjs/alert/type.d.ts.map +1 -1
  7. package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
  8. package/cjs/breadcrumb/breadcrumb.js +2 -1
  9. package/cjs/breadcrumb/token.js +11 -1
  10. package/cjs/breadcrumb/type.d.ts +21 -15
  11. package/cjs/breadcrumb/type.d.ts.map +1 -1
  12. package/cjs/button/button.d.ts.map +1 -1
  13. package/cjs/button/button.js +40 -25
  14. package/cjs/button/rule.js +1 -1
  15. package/cjs/button/token.js +248 -26
  16. package/cjs/button/type.d.ts +116 -26
  17. package/cjs/button/type.d.ts.map +1 -1
  18. package/cjs/card/card.d.ts.map +1 -1
  19. package/cjs/card/card.js +3 -2
  20. package/cjs/card/token.js +9 -3
  21. package/cjs/card/type.d.ts +19 -13
  22. package/cjs/card/type.d.ts.map +1 -1
  23. package/cjs/cascader/cascader.d.ts.map +1 -1
  24. package/cjs/cascader/cascader.js +6 -0
  25. package/cjs/cascader/token.js +27 -4
  26. package/cjs/cascader/type.d.ts +48 -12
  27. package/cjs/cascader/type.d.ts.map +1 -1
  28. package/cjs/checkbox/token.js +5 -1
  29. package/cjs/checkbox/type.d.ts +13 -13
  30. package/cjs/collapse/token.js +9 -1
  31. package/cjs/collapse/type.d.ts +25 -25
  32. package/cjs/common/common.d.ts.map +1 -1
  33. package/cjs/common/common.js +2 -1
  34. package/cjs/common/type.d.ts +7 -0
  35. package/cjs/common/type.d.ts.map +1 -1
  36. package/cjs/config.d.ts +19 -4
  37. package/cjs/config.d.ts.map +1 -1
  38. package/cjs/config.js +50 -10
  39. package/cjs/date-picker/date-picker.d.ts.map +1 -1
  40. package/cjs/date-picker/date-picker.js +1 -0
  41. package/cjs/date-picker/token.js +1 -0
  42. package/cjs/date-picker/type.d.ts +6 -0
  43. package/cjs/date-picker/type.d.ts.map +1 -1
  44. package/cjs/descriptions/descriptions.d.ts.map +1 -1
  45. package/cjs/descriptions/descriptions.js +7 -9
  46. package/cjs/descriptions/rule.js +3 -3
  47. package/cjs/descriptions/token.js +33 -24
  48. package/cjs/descriptions/type.d.ts +43 -55
  49. package/cjs/descriptions/type.d.ts.map +1 -1
  50. package/cjs/dropdown/dropdown.d.ts.map +1 -1
  51. package/cjs/dropdown/dropdown.js +13 -4
  52. package/cjs/dropdown/rule.js +2 -2
  53. package/cjs/dropdown/token.js +31 -5
  54. package/cjs/dropdown/type.d.ts +100 -46
  55. package/cjs/dropdown/type.d.ts.map +1 -1
  56. package/cjs/empty/empty.js +1 -1
  57. package/cjs/empty/token.js +1 -1
  58. package/cjs/empty/type.d.ts +1 -1
  59. package/cjs/form/form.js +1 -1
  60. package/cjs/form/token.js +9 -3
  61. package/cjs/form/type.d.ts +12 -12
  62. package/cjs/hooks/index.d.ts +2 -0
  63. package/cjs/hooks/index.d.ts.map +1 -0
  64. package/cjs/hooks/index.js +17 -0
  65. package/cjs/hooks/useToken/index.d.ts +3 -0
  66. package/cjs/hooks/useToken/index.d.ts.map +1 -0
  67. package/cjs/hooks/useToken/index.js +19 -0
  68. package/cjs/hooks/useToken/use-token.d.ts +6 -0
  69. package/cjs/hooks/useToken/use-token.d.ts.map +1 -0
  70. package/cjs/hooks/useToken/use-token.js +37 -0
  71. package/cjs/hooks/useToken/use-token.type.d.ts +39 -0
  72. package/cjs/hooks/useToken/use-token.type.d.ts.map +1 -0
  73. package/cjs/hooks/useToken/use-token.type.js +5 -0
  74. package/cjs/icon/icon.d.ts +2 -2
  75. package/cjs/icon/icon.d.ts.map +1 -1
  76. package/cjs/icon/icon.js +2 -2
  77. package/cjs/icon/token.js +3 -1
  78. package/cjs/icon/type.d.ts +1 -1
  79. package/cjs/image/token.js +2 -1
  80. package/cjs/image/type.d.ts +1 -1
  81. package/cjs/index.d.ts +6 -3
  82. package/cjs/index.d.ts.map +1 -1
  83. package/cjs/index.js +33 -2
  84. package/cjs/input/token.js +5 -1
  85. package/cjs/input/type.d.ts +12 -12
  86. package/cjs/list/token.js +4 -1
  87. package/cjs/list/type.d.ts +12 -12
  88. package/cjs/menu/menu.d.ts.map +1 -1
  89. package/cjs/menu/menu.js +1 -0
  90. package/cjs/menu/token.js +13 -1
  91. package/cjs/menu/type.d.ts +34 -28
  92. package/cjs/menu/type.d.ts.map +1 -1
  93. package/cjs/message/token.js +3 -1
  94. package/cjs/message/type.d.ts +5 -5
  95. package/cjs/modal/modal.d.ts.map +1 -1
  96. package/cjs/modal/modal.js +6 -3
  97. package/cjs/modal/token.js +28 -5
  98. package/cjs/modal/type.d.ts +46 -28
  99. package/cjs/modal/type.d.ts.map +1 -1
  100. package/cjs/popover/popover.js +1 -1
  101. package/cjs/popover/token.js +3 -2
  102. package/cjs/popover/type.d.ts +2 -2
  103. package/cjs/progress/progress.d.ts.map +1 -1
  104. package/cjs/progress/progress.js +3 -1
  105. package/cjs/progress/token.js +11 -2
  106. package/cjs/progress/type.d.ts +28 -16
  107. package/cjs/progress/type.d.ts.map +1 -1
  108. package/cjs/provider/index.d.ts +2 -0
  109. package/cjs/provider/index.d.ts.map +1 -0
  110. package/cjs/provider/index.js +1 -0
  111. package/cjs/provider/theme-provider.d.ts +3 -0
  112. package/cjs/provider/theme-provider.d.ts.map +1 -0
  113. package/cjs/provider/theme-provider.js +10 -0
  114. package/cjs/radio/radio.d.ts.map +1 -1
  115. package/cjs/radio/radio.js +1 -0
  116. package/cjs/radio/token.js +10 -2
  117. package/cjs/radio/type.d.ts +19 -13
  118. package/cjs/radio/type.d.ts.map +1 -1
  119. package/cjs/rate/rate.js +1 -1
  120. package/cjs/rate/token.js +4 -2
  121. package/cjs/rate/type.d.ts +7 -7
  122. package/cjs/select/select.d.ts.map +1 -1
  123. package/cjs/select/select.js +11 -2
  124. package/cjs/select/token.js +24 -3
  125. package/cjs/select/type.d.ts +63 -9
  126. package/cjs/select/type.d.ts.map +1 -1
  127. package/cjs/slider/slider.js +3 -3
  128. package/cjs/slider/token.js +10 -4
  129. package/cjs/slider/type.d.ts +27 -27
  130. package/cjs/slider/type.d.ts.map +1 -1
  131. package/cjs/spin/token.js +2 -1
  132. package/cjs/spin/type.d.ts +1 -1
  133. package/cjs/steps/token.js +2 -1
  134. package/cjs/steps/type.d.ts +1 -1
  135. package/cjs/sticky/token.js +1 -1
  136. package/cjs/sticky/type.d.ts +1 -1
  137. package/cjs/switch/switch.js +8 -8
  138. package/cjs/switch/token.js +14 -9
  139. package/cjs/switch/type.d.ts +40 -40
  140. package/cjs/table/token.js +13 -1
  141. package/cjs/table/type.d.ts +28 -28
  142. package/cjs/tabs/tabs.d.ts.map +1 -1
  143. package/cjs/tabs/tabs.js +4 -3
  144. package/cjs/tabs/token.js +14 -4
  145. package/cjs/tabs/type.d.ts +15 -9
  146. package/cjs/tabs/type.d.ts.map +1 -1
  147. package/cjs/tag/tag.js +1 -1
  148. package/cjs/tag/token.js +5 -3
  149. package/cjs/tag/type.d.ts +169 -169
  150. package/cjs/textarea/token.js +6 -1
  151. package/cjs/textarea/type.d.ts +29 -29
  152. package/cjs/token/figma.js +1032 -258
  153. package/cjs/token/token.d.ts.map +1 -1
  154. package/cjs/token/token.js +97 -3
  155. package/cjs/token/type.d.ts +674 -16
  156. package/cjs/token/type.d.ts.map +1 -1
  157. package/cjs/tooltip/token.js +4 -2
  158. package/cjs/tooltip/tooltip.js +1 -1
  159. package/cjs/tooltip/type.d.ts +5 -5
  160. package/cjs/transfer/rule.js +1 -1
  161. package/cjs/transfer/token.js +14 -1
  162. package/cjs/transfer/transfer.d.ts.map +1 -1
  163. package/cjs/transfer/transfer.js +1 -0
  164. package/cjs/transfer/type.d.ts +7 -1
  165. package/cjs/transfer/type.d.ts.map +1 -1
  166. package/cjs/tree/token.js +5 -1
  167. package/cjs/tree/type.d.ts +13 -13
  168. package/cjs/tree-select/token.js +5 -2
  169. package/cjs/tree-select/tree-select.d.ts.map +1 -1
  170. package/cjs/tree-select/tree-select.js +1 -0
  171. package/cjs/tree-select/type.d.ts +9 -3
  172. package/cjs/tree-select/type.d.ts.map +1 -1
  173. package/cjs/upload/token.js +3 -3
  174. package/cjs/upload/type.d.ts +3 -3
  175. package/cjs/upload/upload.js +3 -3
  176. package/cjs/utils/css-var.d.ts +1 -0
  177. package/cjs/utils/css-var.d.ts.map +1 -1
  178. package/cjs/utils/css-var.js +5 -2
  179. package/cjs/utils/notification.d.ts +16 -0
  180. package/cjs/utils/notification.d.ts.map +1 -0
  181. package/cjs/utils/notification.js +52 -0
  182. package/cjs/utils/token-setter.d.ts +57 -0
  183. package/cjs/utils/token-setter.d.ts.map +1 -0
  184. package/cjs/utils/token-setter.js +74 -0
  185. package/esm/alert/alert.d.ts.map +1 -1
  186. package/esm/alert/alert.js +4 -2
  187. package/esm/alert/rule.js +1 -1
  188. package/esm/alert/token.js +16 -2
  189. package/esm/alert/type.d.ts +15 -3
  190. package/esm/alert/type.d.ts.map +1 -1
  191. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  192. package/esm/breadcrumb/breadcrumb.js +2 -1
  193. package/esm/breadcrumb/token.js +11 -1
  194. package/esm/breadcrumb/type.d.ts +21 -15
  195. package/esm/breadcrumb/type.d.ts.map +1 -1
  196. package/esm/button/button.d.ts.map +1 -1
  197. package/esm/button/button.js +40 -25
  198. package/esm/button/rule.js +1 -1
  199. package/esm/button/token.js +248 -26
  200. package/esm/button/type.d.ts +116 -26
  201. package/esm/button/type.d.ts.map +1 -1
  202. package/esm/card/card.d.ts.map +1 -1
  203. package/esm/card/card.js +3 -2
  204. package/esm/card/token.js +9 -3
  205. package/esm/card/type.d.ts +19 -13
  206. package/esm/card/type.d.ts.map +1 -1
  207. package/esm/cascader/cascader.d.ts.map +1 -1
  208. package/esm/cascader/cascader.js +6 -0
  209. package/esm/cascader/token.js +27 -4
  210. package/esm/cascader/type.d.ts +48 -12
  211. package/esm/cascader/type.d.ts.map +1 -1
  212. package/esm/checkbox/token.js +5 -1
  213. package/esm/checkbox/type.d.ts +13 -13
  214. package/esm/collapse/token.js +9 -1
  215. package/esm/collapse/type.d.ts +25 -25
  216. package/esm/common/common.d.ts.map +1 -1
  217. package/esm/common/common.js +2 -1
  218. package/esm/common/type.d.ts +7 -0
  219. package/esm/common/type.d.ts.map +1 -1
  220. package/esm/config.d.ts +19 -4
  221. package/esm/config.d.ts.map +1 -1
  222. package/esm/config.js +50 -10
  223. package/esm/date-picker/date-picker.d.ts.map +1 -1
  224. package/esm/date-picker/date-picker.js +1 -0
  225. package/esm/date-picker/token.js +1 -0
  226. package/esm/date-picker/type.d.ts +6 -0
  227. package/esm/date-picker/type.d.ts.map +1 -1
  228. package/esm/descriptions/descriptions.d.ts.map +1 -1
  229. package/esm/descriptions/descriptions.js +7 -9
  230. package/esm/descriptions/rule.js +3 -3
  231. package/esm/descriptions/token.js +33 -24
  232. package/esm/descriptions/type.d.ts +43 -55
  233. package/esm/descriptions/type.d.ts.map +1 -1
  234. package/esm/dropdown/dropdown.d.ts.map +1 -1
  235. package/esm/dropdown/dropdown.js +13 -4
  236. package/esm/dropdown/rule.js +2 -2
  237. package/esm/dropdown/token.js +31 -5
  238. package/esm/dropdown/type.d.ts +100 -46
  239. package/esm/dropdown/type.d.ts.map +1 -1
  240. package/esm/empty/empty.js +1 -1
  241. package/esm/empty/token.js +1 -1
  242. package/esm/empty/type.d.ts +1 -1
  243. package/esm/form/form.js +1 -1
  244. package/esm/form/token.js +9 -3
  245. package/esm/form/type.d.ts +12 -12
  246. package/esm/hooks/index.d.ts +2 -0
  247. package/esm/hooks/index.d.ts.map +1 -0
  248. package/esm/hooks/index.js +17 -0
  249. package/esm/hooks/useToken/index.d.ts +3 -0
  250. package/esm/hooks/useToken/index.d.ts.map +1 -0
  251. package/esm/hooks/useToken/index.js +19 -0
  252. package/esm/hooks/useToken/use-token.d.ts +6 -0
  253. package/esm/hooks/useToken/use-token.d.ts.map +1 -0
  254. package/esm/hooks/useToken/use-token.js +37 -0
  255. package/esm/hooks/useToken/use-token.type.d.ts +39 -0
  256. package/esm/hooks/useToken/use-token.type.d.ts.map +1 -0
  257. package/esm/hooks/useToken/use-token.type.js +5 -0
  258. package/esm/icon/icon.d.ts +2 -2
  259. package/esm/icon/icon.d.ts.map +1 -1
  260. package/esm/icon/icon.js +2 -2
  261. package/esm/icon/token.js +3 -1
  262. package/esm/icon/type.d.ts +1 -1
  263. package/esm/image/token.js +2 -1
  264. package/esm/image/type.d.ts +1 -1
  265. package/esm/index.d.ts +6 -3
  266. package/esm/index.d.ts.map +1 -1
  267. package/esm/index.js +33 -2
  268. package/esm/input/token.js +5 -1
  269. package/esm/input/type.d.ts +12 -12
  270. package/esm/list/token.js +4 -1
  271. package/esm/list/type.d.ts +12 -12
  272. package/esm/menu/menu.d.ts.map +1 -1
  273. package/esm/menu/menu.js +1 -0
  274. package/esm/menu/token.js +13 -1
  275. package/esm/menu/type.d.ts +34 -28
  276. package/esm/menu/type.d.ts.map +1 -1
  277. package/esm/message/token.js +3 -1
  278. package/esm/message/type.d.ts +5 -5
  279. package/esm/modal/modal.d.ts.map +1 -1
  280. package/esm/modal/modal.js +6 -3
  281. package/esm/modal/token.js +28 -5
  282. package/esm/modal/type.d.ts +46 -28
  283. package/esm/modal/type.d.ts.map +1 -1
  284. package/esm/popover/popover.js +1 -1
  285. package/esm/popover/token.js +3 -2
  286. package/esm/popover/type.d.ts +2 -2
  287. package/esm/progress/progress.d.ts.map +1 -1
  288. package/esm/progress/progress.js +3 -1
  289. package/esm/progress/token.js +11 -2
  290. package/esm/progress/type.d.ts +28 -16
  291. package/esm/progress/type.d.ts.map +1 -1
  292. package/esm/provider/index.d.ts +2 -0
  293. package/esm/provider/index.d.ts.map +1 -0
  294. package/esm/provider/index.js +1 -0
  295. package/esm/provider/theme-provider.d.ts +3 -0
  296. package/esm/provider/theme-provider.d.ts.map +1 -0
  297. package/esm/provider/theme-provider.js +10 -0
  298. package/esm/radio/radio.d.ts.map +1 -1
  299. package/esm/radio/radio.js +1 -0
  300. package/esm/radio/token.js +10 -2
  301. package/esm/radio/type.d.ts +19 -13
  302. package/esm/radio/type.d.ts.map +1 -1
  303. package/esm/rate/rate.js +1 -1
  304. package/esm/rate/token.js +4 -2
  305. package/esm/rate/type.d.ts +7 -7
  306. package/esm/select/select.d.ts.map +1 -1
  307. package/esm/select/select.js +11 -2
  308. package/esm/select/token.js +24 -3
  309. package/esm/select/type.d.ts +63 -9
  310. package/esm/select/type.d.ts.map +1 -1
  311. package/esm/slider/slider.js +3 -3
  312. package/esm/slider/token.js +10 -4
  313. package/esm/slider/type.d.ts +27 -27
  314. package/esm/slider/type.d.ts.map +1 -1
  315. package/esm/spin/token.js +2 -1
  316. package/esm/spin/type.d.ts +1 -1
  317. package/esm/steps/token.js +2 -1
  318. package/esm/steps/type.d.ts +1 -1
  319. package/esm/sticky/token.js +1 -1
  320. package/esm/sticky/type.d.ts +1 -1
  321. package/esm/switch/switch.js +8 -8
  322. package/esm/switch/token.js +14 -9
  323. package/esm/switch/type.d.ts +40 -40
  324. package/esm/table/token.js +13 -1
  325. package/esm/table/type.d.ts +28 -28
  326. package/esm/tabs/tabs.d.ts.map +1 -1
  327. package/esm/tabs/tabs.js +4 -3
  328. package/esm/tabs/token.js +14 -4
  329. package/esm/tabs/type.d.ts +15 -9
  330. package/esm/tabs/type.d.ts.map +1 -1
  331. package/esm/tag/tag.js +1 -1
  332. package/esm/tag/token.js +5 -3
  333. package/esm/tag/type.d.ts +169 -169
  334. package/esm/textarea/token.js +6 -1
  335. package/esm/textarea/type.d.ts +29 -29
  336. package/esm/token/figma.js +1032 -258
  337. package/esm/token/token.d.ts.map +1 -1
  338. package/esm/token/token.js +97 -3
  339. package/esm/token/type.d.ts +674 -16
  340. package/esm/token/type.d.ts.map +1 -1
  341. package/esm/tooltip/token.js +4 -2
  342. package/esm/tooltip/tooltip.js +1 -1
  343. package/esm/tooltip/type.d.ts +5 -5
  344. package/esm/transfer/rule.js +1 -1
  345. package/esm/transfer/token.js +14 -1
  346. package/esm/transfer/transfer.d.ts.map +1 -1
  347. package/esm/transfer/transfer.js +1 -0
  348. package/esm/transfer/type.d.ts +7 -1
  349. package/esm/transfer/type.d.ts.map +1 -1
  350. package/esm/tree/token.js +5 -1
  351. package/esm/tree/type.d.ts +13 -13
  352. package/esm/tree-select/token.js +5 -2
  353. package/esm/tree-select/tree-select.d.ts.map +1 -1
  354. package/esm/tree-select/tree-select.js +1 -0
  355. package/esm/tree-select/type.d.ts +9 -3
  356. package/esm/tree-select/type.d.ts.map +1 -1
  357. package/esm/upload/token.js +3 -3
  358. package/esm/upload/type.d.ts +3 -3
  359. package/esm/upload/upload.js +3 -3
  360. package/esm/utils/css-var.d.ts +1 -0
  361. package/esm/utils/css-var.d.ts.map +1 -1
  362. package/esm/utils/css-var.js +5 -2
  363. package/esm/utils/notification.d.ts +16 -0
  364. package/esm/utils/notification.d.ts.map +1 -0
  365. package/esm/utils/notification.js +52 -0
  366. package/esm/utils/token-setter.d.ts +57 -0
  367. package/esm/utils/token-setter.d.ts.map +1 -0
  368. package/esm/utils/token-setter.js +74 -0
  369. package/package.json +5 -2
@@ -2,7 +2,7 @@ export interface SpinTokens {
2
2
  /**
3
3
  * @type {string}
4
4
  * @token Brand-6
5
- * @description 加载动画undefined字体颜色
5
+ * @description 加载动画提示文案字体颜色
6
6
  */
7
7
  spinTipFontColor: string;
8
8
  /**
@@ -18,7 +18,8 @@ var stepsTokenDescription = {
18
18
  describe: '描述信息的',
19
19
  description: '描述信息',
20
20
  tail: '尾部连接线',
21
- arrow: '箭头形状的'
21
+ arrow: '箭头形状的',
22
+ content: '容器'
22
23
  };
23
24
 
24
25
  /**
@@ -212,7 +212,7 @@ export interface StepsTokens {
212
212
  /**
213
213
  * @type {string}
214
214
  * @token Margin-8
215
- * @description 步骤条相邻之间的undefined外边距
215
+ * @description 步骤条相邻之间的容器外边距
216
216
  */
217
217
  stepsNearlyContentMargin: string;
218
218
  /**
@@ -9,7 +9,7 @@
9
9
  * 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
10
10
  */
11
11
  var stickyTokenDescription = {
12
- sticky: 'xxx'
12
+ sticky: '附着'
13
13
  };
14
14
 
15
15
  /**
@@ -2,7 +2,7 @@ export interface StickyTokens {
2
2
  /**
3
3
  * @type {string}
4
4
  * @token 14/regular
5
- * @description xxx字体字号
5
+ * @description 附着字体字号
6
6
  */
7
7
  stickyFontSize: string;
8
8
  }
@@ -10,12 +10,12 @@ exports.default = void 0;
10
10
  var switchTokens = {
11
11
  switchFontSize: '14/regular',
12
12
  switchFontColor: 'Neutral-text-1',
13
- switchPaddingX: 'Padding-4',
14
- switchPaddingY: 'Padding-4',
15
- switchCircleSize: 'Size-8',
13
+ switchPaddingX: 'Padding-2',
14
+ switchPaddingY: 'Padding-2',
15
+ switchCircleSize: 'Size-9',
16
16
  switchCircleFill: 'Neutral-text-1',
17
17
  switchCircleShadow: 'Shadow-3',
18
- switchWidth: 'Size-20',
18
+ switchWidth: 'Size-21',
19
19
  switchTextPaddingX: 'Padding-4',
20
20
  switchSmallFontSize: '12/regular',
21
21
  switchSmallPaddingX: 'Padding-2',
@@ -23,10 +23,10 @@ var switchTokens = {
23
23
  switchSmallCircleSize: 'Size-6',
24
24
  switchSmallWidth: 'Size-14',
25
25
  switchLargeFontSize: 'regular/16',
26
- switchLargePaddingX: 'Padding-4',
27
- switchLargePaddingY: 'Padding-4',
28
- switchLargeCircleSize: 'Size-10',
29
- switchLargeWidth: 'Size-26',
26
+ switchLargePaddingX: 'Padding-2',
27
+ switchLargePaddingY: 'Padding-2',
28
+ switchLargeCircleSize: 'Size-12',
29
+ switchLargeWidth: 'Size-27',
30
30
  switchBackgroundColor: 'Neutral-fill-4',
31
31
  switchDisabledBackgroundColor: 'Neutral-fill-2',
32
32
  switchDisabledCircleFill: 'Neutral-text-2',
@@ -9,7 +9,12 @@
9
9
  * 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
10
10
  */
11
11
  var switchTokenDescription = {
12
- switch: 'xxx'
12
+ switch: '开关',
13
+ fill: '填充色',
14
+ shadow: '阴影',
15
+ text: '文案',
16
+ loading: '加载模式下的',
17
+ checked: '打开状态下的'
13
18
  };
14
19
 
15
20
  /**
@@ -26,15 +31,15 @@ var switchTokenExtraValue = {
26
31
  color: 'Neutral-text-1'
27
32
  },
28
33
  padding: {
29
- x: 'Padding-4',
30
- y: 'Padding-4'
34
+ x: 'Padding-2',
35
+ y: 'Padding-2'
31
36
  },
32
37
  circle: {
33
- size: 'Size-8',
38
+ size: 'Size-9',
34
39
  fill: 'Neutral-text-1',
35
40
  shadow: 'Shadow-3'
36
41
  },
37
- width: 'Size-20',
42
+ width: 'Size-21',
38
43
  text: {
39
44
  padding: {
40
45
  x: 'Padding-4'
@@ -58,13 +63,13 @@ var switchTokenExtraValue = {
58
63
  size: 'regular/16'
59
64
  },
60
65
  padding: {
61
- x: 'Padding-4',
62
- y: 'Padding-4'
66
+ x: 'Padding-2',
67
+ y: 'Padding-2'
63
68
  },
64
69
  circle: {
65
- size: 'Size-10'
70
+ size: 'Size-12'
66
71
  },
67
- width: 'Size-26'
72
+ width: 'Size-27'
68
73
  },
69
74
  background: {
70
75
  color: 'Neutral-fill-4'
@@ -2,193 +2,193 @@ export interface SwitchTokens {
2
2
  /**
3
3
  * @type {string}
4
4
  * @token 14/regular
5
- * @description xxx字体字号
5
+ * @description 开关字体字号
6
6
  */
7
7
  switchFontSize: string;
8
8
  /**
9
9
  * @type {string}
10
10
  * @token Neutral-text-1
11
- * @description xxx字体颜色
11
+ * @description 开关字体颜色
12
12
  */
13
13
  switchFontColor: string;
14
14
  /**
15
15
  * @type {string}
16
- * @token Padding-4
17
- * @description xxx内边距(水平方向)
16
+ * @token Padding-2
17
+ * @description 开关内边距(水平方向)
18
18
  */
19
19
  switchPaddingX: string;
20
20
  /**
21
21
  * @type {string}
22
- * @token Padding-4
23
- * @description xxx内边距(垂直方向)
22
+ * @token Padding-2
23
+ * @description 开关内边距(垂直方向)
24
24
  */
25
25
  switchPaddingY: string;
26
26
  /**
27
27
  * @type {string}
28
- * @token Size-8
29
- * @description xxx圆形字号
28
+ * @token Size-9
29
+ * @description 开关圆形字号
30
30
  */
31
31
  switchCircleSize: string;
32
32
  /**
33
33
  * @type {string}
34
34
  * @token Neutral-text-1
35
- * @description xxx圆形undefined
35
+ * @description 开关圆形填充色
36
36
  */
37
37
  switchCircleFill: string;
38
38
  /**
39
39
  * @type {string}
40
40
  * @token Shadow-3
41
- * @description xxx圆形undefined
41
+ * @description 开关圆形阴影
42
42
  */
43
43
  switchCircleShadow: string;
44
44
  /**
45
45
  * @type {string}
46
- * @token Size-20
47
- * @description xxx宽度
46
+ * @token Size-21
47
+ * @description 开关宽度
48
48
  */
49
49
  switchWidth: string;
50
50
  /**
51
51
  * @type {string}
52
52
  * @token Padding-4
53
- * @description xxxundefined内边距(水平方向)
53
+ * @description 开关文案内边距(水平方向)
54
54
  */
55
55
  switchTextPaddingX: string;
56
56
  /**
57
57
  * @type {string}
58
58
  * @token 12/regular
59
- * @description xxx小尺寸字体字号
59
+ * @description 开关小尺寸字体字号
60
60
  */
61
61
  switchSmallFontSize: string;
62
62
  /**
63
63
  * @type {string}
64
64
  * @token Padding-2
65
- * @description xxx小尺寸内边距(水平方向)
65
+ * @description 开关小尺寸内边距(水平方向)
66
66
  */
67
67
  switchSmallPaddingX: string;
68
68
  /**
69
69
  * @type {string}
70
70
  * @token Padding-2
71
- * @description xxx小尺寸内边距(垂直方向)
71
+ * @description 开关小尺寸内边距(垂直方向)
72
72
  */
73
73
  switchSmallPaddingY: string;
74
74
  /**
75
75
  * @type {string}
76
76
  * @token Size-6
77
- * @description xxx小尺寸圆形字号
77
+ * @description 开关小尺寸圆形字号
78
78
  */
79
79
  switchSmallCircleSize: string;
80
80
  /**
81
81
  * @type {string}
82
82
  * @token Size-14
83
- * @description xxx小尺寸宽度
83
+ * @description 开关小尺寸宽度
84
84
  */
85
85
  switchSmallWidth: string;
86
86
  /**
87
87
  * @type {string}
88
88
  * @token regular/16
89
- * @description xxx大尺寸字体字号
89
+ * @description 开关大尺寸字体字号
90
90
  */
91
91
  switchLargeFontSize: string;
92
92
  /**
93
93
  * @type {string}
94
- * @token Padding-4
95
- * @description xxx大尺寸内边距(水平方向)
94
+ * @token Padding-2
95
+ * @description 开关大尺寸内边距(水平方向)
96
96
  */
97
97
  switchLargePaddingX: string;
98
98
  /**
99
99
  * @type {string}
100
- * @token Padding-4
101
- * @description xxx大尺寸内边距(垂直方向)
100
+ * @token Padding-2
101
+ * @description 开关大尺寸内边距(垂直方向)
102
102
  */
103
103
  switchLargePaddingY: string;
104
104
  /**
105
105
  * @type {string}
106
- * @token Size-10
107
- * @description xxx大尺寸圆形字号
106
+ * @token Size-12
107
+ * @description 开关大尺寸圆形字号
108
108
  */
109
109
  switchLargeCircleSize: string;
110
110
  /**
111
111
  * @type {string}
112
- * @token Size-26
113
- * @description xxx大尺寸宽度
112
+ * @token Size-27
113
+ * @description 开关大尺寸宽度
114
114
  */
115
115
  switchLargeWidth: string;
116
116
  /**
117
117
  * @type {string}
118
118
  * @token Neutral-fill-4
119
- * @description xxx背景颜色
119
+ * @description 开关背景颜色
120
120
  */
121
121
  switchBackgroundColor: string;
122
122
  /**
123
123
  * @type {string}
124
124
  * @token Neutral-fill-2
125
- * @description xxx禁用时的背景颜色
125
+ * @description 开关禁用时的背景颜色
126
126
  */
127
127
  switchDisabledBackgroundColor: string;
128
128
  /**
129
129
  * @type {string}
130
130
  * @token Neutral-text-2
131
- * @description xxx禁用时的圆形undefined
131
+ * @description 开关禁用时的圆形填充色
132
132
  */
133
133
  switchDisabledCircleFill: string;
134
134
  /**
135
135
  * @type {string}
136
136
  * @token Neutral-text-2
137
- * @description xxx禁用时的字体颜色
137
+ * @description 开关禁用时的字体颜色
138
138
  */
139
139
  switchDisabledFontColor: string;
140
140
  /**
141
141
  * @type {string}
142
142
  * @token Neutral-fill-2
143
- * @description xxxundefined背景颜色
143
+ * @description 开关加载模式下的背景颜色
144
144
  */
145
145
  switchLoadingBackgroundColor: string;
146
146
  /**
147
147
  * @type {string}
148
148
  * @token Neutral-text-2
149
- * @description xxxundefined圆形undefined
149
+ * @description 开关加载模式下的圆形填充色
150
150
  */
151
151
  switchLoadingCircleFill: string;
152
152
  /**
153
153
  * @type {string}
154
154
  * @token Neutral-text-2
155
- * @description xxxundefined字体颜色
155
+ * @description 开关加载模式下的字体颜色
156
156
  */
157
157
  switchLoadingFontColor: string;
158
158
  /**
159
159
  * @type {string}
160
160
  * @token Brand-6
161
- * @description xxxundefined背景颜色
161
+ * @description 开关打开状态下的背景颜色
162
162
  */
163
163
  switchCheckedBackgroundColor: string;
164
164
  /**
165
165
  * @type {string}
166
166
  * @token Neutral-text-1
167
- * @description xxxundefined字体颜色
167
+ * @description 开关打开状态下的字体颜色
168
168
  */
169
169
  switchCheckedFontColor: string;
170
170
  /**
171
171
  * @type {string}
172
172
  * @token Brand-3
173
- * @description xxxundefined禁用时的背景颜色
173
+ * @description 开关打开状态下的禁用时的背景颜色
174
174
  */
175
175
  switchCheckedDisabledBackgroundColor: string;
176
176
  /**
177
177
  * @type {string}
178
178
  * @token Neutral-text-1
179
- * @description xxxundefined禁用时的字体颜色
179
+ * @description 开关打开状态下的禁用时的字体颜色
180
180
  */
181
181
  switchCheckedDisabledFontColor: string;
182
182
  /**
183
183
  * @type {string}
184
184
  * @token Brand-3
185
- * @description xxxundefinedundefined背景颜色
185
+ * @description 开关打开状态下的加载模式下的背景颜色
186
186
  */
187
187
  switchCheckedLoadingBackgroundColor: string;
188
188
  /**
189
189
  * @type {string}
190
190
  * @token Neutral-text-1
191
- * @description xxxundefinedundefined字体颜色
191
+ * @description 开关打开状态下的加载模式下的字体颜色
192
192
  */
193
193
  switchCheckedLoadingFontColor: string;
194
194
  }
@@ -9,7 +9,19 @@
9
9
  * 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
10
10
  */
11
11
  var tableTokenDescription = {
12
- table: 'xxx'
12
+ table: '表格',
13
+ cell: '单元格',
14
+ fixed: '固定列',
15
+ thead: '表头',
16
+ tbody: '表格主体',
17
+ striped: '斑马纹',
18
+ shadow: '阴影',
19
+ expand: '展开',
20
+ sorter: '排序icon的',
21
+ pagination: '分页器的',
22
+ tfoot: '表格底部的',
23
+ resize: '拖拽时的',
24
+ selection: '选择状态下的'
13
25
  };
14
26
 
15
27
  /**
@@ -2,169 +2,169 @@ export interface TableTokens {
2
2
  /**
3
3
  * @type {string}
4
4
  * @token 14/regular
5
- * @description xxx字体字号
5
+ * @description 表格字体字号
6
6
  */
7
7
  tableFontSize: string;
8
8
  /**
9
9
  * @type {string}
10
10
  * @token Padding-12
11
- * @description xxxundefined内边距(水平方向)
11
+ * @description 表格单元格内边距(水平方向)
12
12
  */
13
13
  tableCellPaddingX: string;
14
14
  /**
15
15
  * @type {string}
16
16
  * @token Padding-8
17
- * @description xxxundefined内边距(垂直方向)
17
+ * @description 表格单元格内边距(垂直方向)
18
18
  */
19
19
  tableCellPaddingY: string;
20
20
  /**
21
21
  * @type {string}
22
22
  * @token Neutral-border-1
23
- * @description xxxundefined边框颜色
23
+ * @description 表格单元格边框颜色
24
24
  */
25
25
  tableCellBorderColor: string;
26
26
  /**
27
27
  * @type {string}
28
28
  * @token Padding-8
29
- * @description xxx小尺寸undefined内边距(水平方向)
29
+ * @description 表格小尺寸单元格内边距(水平方向)
30
30
  */
31
31
  tableSmallCellPaddingX: string;
32
32
  /**
33
33
  * @type {string}
34
34
  * @token Padding-4
35
- * @description xxx小尺寸undefined内边距(垂直方向)
35
+ * @description 表格小尺寸单元格内边距(垂直方向)
36
36
  */
37
37
  tableSmallCellPaddingY: string;
38
38
  /**
39
39
  * @type {string}
40
40
  * @token Padding-16
41
- * @description xxx大尺寸undefined内边距(水平方向)
41
+ * @description 表格大尺寸单元格内边距(水平方向)
42
42
  */
43
43
  tableLargeCellPaddingX: string;
44
44
  /**
45
45
  * @type {string}
46
46
  * @token Padding-16
47
- * @description xxx大尺寸undefined内边距(垂直方向)
47
+ * @description 表格大尺寸单元格内边距(垂直方向)
48
48
  */
49
49
  tableLargeCellPaddingY: string;
50
50
  /**
51
51
  * @type {string}
52
52
  * @token rgba(2,11,24,.1)
53
- * @description xxxundefinedundefined
53
+ * @description 表格固定列阴影
54
54
  */
55
55
  tableFixedShadow: string;
56
56
  /**
57
57
  * @type {string}
58
58
  * @token Neutral-fill-2
59
- * @description xxxundefined背景颜色
59
+ * @description 表格表头背景颜色
60
60
  */
61
61
  tableTheadBackgroundColor: string;
62
62
  /**
63
63
  * @type {string}
64
64
  * @token Neutral-text-5
65
- * @description xxxundefined字体颜色
65
+ * @description 表格表头字体颜色
66
66
  */
67
67
  tableTheadFontColor: string;
68
68
  /**
69
69
  * @type {string}
70
70
  * @token Neutral-fill-1
71
- * @description xxxundefined背景颜色
71
+ * @description 表格表格主体背景颜色
72
72
  */
73
73
  tableTbodyBackgroundColor: string;
74
74
  /**
75
75
  * @type {string}
76
76
  * @token Neutral-fill-2
77
- * @description xxxundefinedundefined背景颜色
77
+ * @description 表格表格主体斑马纹背景颜色
78
78
  */
79
79
  tableTbodyStripedBackgroundColor: string;
80
80
  /**
81
81
  * @type {string}
82
82
  * @token Indigo-1
83
- * @description xxxundefined鼠标移入时的背景颜色
83
+ * @description 表格表格主体鼠标移入时的背景颜色
84
84
  */
85
85
  tableTbodyHoverBackgroundColor: string;
86
86
  /**
87
87
  * @type {string}
88
88
  * @token Brand-1
89
- * @description xxxundefined鼠标点击时的背景颜色
89
+ * @description 表格表格主体鼠标点击时的背景颜色
90
90
  */
91
91
  tableTbodyActiveBackgroundColor: string;
92
92
  /**
93
93
  * @type {string}
94
94
  * @token Neutral-text-5
95
- * @description xxxundefined字体颜色
95
+ * @description 表格表格主体字体颜色
96
96
  */
97
97
  tableTbodyFontColor: string;
98
98
  /**
99
99
  * @type {string}
100
100
  * @token Neutral-fill-2
101
- * @description xxxundefined背景颜色
101
+ * @description 表格表格底部的背景颜色
102
102
  */
103
103
  tableTfootBackgroundColor: string;
104
104
  /**
105
105
  * @type {string}
106
106
  * @token Neutral-text-5
107
- * @description xxxundefined字体颜色
107
+ * @description 表格表格底部的字体颜色
108
108
  */
109
109
  tableTfootFontColor: string;
110
110
  /**
111
111
  * @type {string}
112
112
  * @token Size-7
113
- * @description xxxundefined图标字号
113
+ * @description 表格展开图标字号
114
114
  */
115
115
  tableExpandIconSize: string;
116
116
  /**
117
117
  * @type {string}
118
118
  * @token Neutral-text-2
119
- * @description xxxundefined图标颜色
119
+ * @description 表格展开图标颜色
120
120
  */
121
121
  tableExpandIconColor: string;
122
122
  /**
123
123
  * @type {string}
124
124
  * @token Neutral-fill-3
125
- * @description xxxundefined图标鼠标移入时的背景颜色
125
+ * @description 表格展开图标鼠标移入时的背景颜色
126
126
  */
127
127
  tableExpandIconHoverBackgroundColor: string;
128
128
  /**
129
129
  * @type {string}
130
130
  * @token Neutral-fill-2
131
- * @description xxxundefined背景颜色
131
+ * @description 表格展开背景颜色
132
132
  */
133
133
  tableExpandBackgroundColor: string;
134
134
  /**
135
135
  * @type {string}
136
136
  * @token Neutral-text-3
137
- * @description xxxundefined颜色
137
+ * @description 表格排序icon的颜色
138
138
  */
139
139
  tableSorterColor: string;
140
140
  /**
141
141
  * @type {string}
142
142
  * @token Neutral-text-4
143
- * @description xxxundefined鼠标移入时的颜色
143
+ * @description 表格排序icon的鼠标移入时的颜色
144
144
  */
145
145
  tableSorterHoverColor: string;
146
146
  /**
147
147
  * @type {string}
148
148
  * @token Brand-6
149
- * @description xxxundefined鼠标点击时的颜色
149
+ * @description 表格排序icon的鼠标点击时的颜色
150
150
  */
151
151
  tableSorterActiveColor: string;
152
152
  /**
153
153
  * @type {string}
154
154
  * @token Brand-7
155
- * @description xxxundefined颜色
155
+ * @description 表格拖拽时的颜色
156
156
  */
157
157
  tableResizeColor: string;
158
158
  /**
159
159
  * @type {string}
160
160
  * @token Brand-6
161
- * @description xxxundefined边框颜色
161
+ * @description 表格选择状态下的边框颜色
162
162
  */
163
163
  tableSelectionBorderColor: string;
164
164
  /**
165
165
  * @type {string}
166
166
  * @token Margin-12
167
- * @description xxxundefined外边距(垂直方向)
167
+ * @description 表格分页器的外边距(垂直方向)
168
168
  */
169
169
  tablePaginationMarginY: string;
170
170
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,QAAA,MAAM,UAAU,EAAE,UA8BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,QAAA,MAAM,UAAU,EAAE,UA+BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/cjs/tabs/tabs.js CHANGED
@@ -10,6 +10,7 @@ exports.default = void 0;
10
10
  var tabsTokens = {
11
11
  tabsExtraFillHoverBackgroundColor: 'Neutral-fill-3',
12
12
  tabsCardDisabledBackgroundColor: 'Neutral-fill-2',
13
+ tabsArrowFontColor: 'Neutral-text-4',
13
14
  tabsFontColor: 'Neutral-text-5',
14
15
  tabsBackgroundColor: 'Neutral-fill-2',
15
16
  tabsBorderColor: 'Neutral-border-1',
@@ -19,15 +20,15 @@ var tabsTokens = {
19
20
  tabsDisabledFontColor: 'Neutral-text-2',
20
21
  tabsDisabledBackgroundColor: 'Neutral-fill-1',
21
22
  tabsClickBackgroundColor: 'Neutral-fill-4',
22
- tabsTabPaddingX: 'Padding-16',
23
+ tabsTabPaddingX: 'Padding-15',
23
24
  tabsTabPaddingY: 'Padding-9',
24
25
  tabsTabFontSize: '14/regular',
25
26
  tabsTabBorderRadius: 'Radius-4',
26
27
  tabsNearlyMargin: 'Margin-4',
27
28
  tabsLinePaddingX: 'Padding-8',
28
- tabsLinePaddingY: 'Padding-4',
29
+ tabsLinePaddingY: 'Padding-6',
29
30
  tabsLineInnerPaddingX: 'Padding-8',
30
- tabsLineInnerPaddingY: 'Padding-3',
31
+ tabsLineInnerPaddingY: 'Padding-4',
31
32
  tabsFillPaddingX: 'Padding-4',
32
33
  tabsFillPaddingY: 'Padding-4',
33
34
  tabsFillInnerPaddingX: 'Padding-16',
package/cjs/tabs/token.js CHANGED
@@ -17,7 +17,12 @@ var tabsTokenDescription = {
17
17
  line: '下划模式',
18
18
  fill: '填充模式',
19
19
  split: '分割线',
20
- action: '操作按钮'
20
+ action: '操作按钮',
21
+ extra: '附加内容',
22
+ card: '卡片模式',
23
+ arrow: '箭头icon',
24
+ vertical: '垂直模式',
25
+ horizontal: '水平模式'
21
26
  };
22
27
 
23
28
  /**
@@ -83,7 +88,7 @@ var tabsTokenValue = {
83
88
  },
84
89
  tab: {
85
90
  padding: {
86
- x: 'Padding-16',
91
+ x: 'Padding-15',
87
92
  y: 'Padding-9'
88
93
  },
89
94
  font: {
@@ -99,12 +104,12 @@ var tabsTokenValue = {
99
104
  line: {
100
105
  padding: {
101
106
  x: 'Padding-8',
102
- y: 'Padding-4'
107
+ y: 'Padding-6'
103
108
  },
104
109
  inner: {
105
110
  padding: {
106
111
  x: 'Padding-8',
107
- y: 'Padding-3'
112
+ y: 'Padding-4'
108
113
  }
109
114
  }
110
115
  },
@@ -156,6 +161,11 @@ var tabsTokenExtraValue = {
156
161
  color: 'Neutral-fill-2'
157
162
  }
158
163
  }
164
+ },
165
+ arrow: {
166
+ font: {
167
+ color: 'Neutral-text-4'
168
+ }
159
169
  }
160
170
  };
161
171
  module.exports = {