@sheinx/theme 3.1.24 → 3.2.0-beta.1

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 (205) hide show
  1. package/cjs/alert/alert.d.ts.map +1 -1
  2. package/cjs/alert/alert.js +4 -1
  3. package/cjs/alert/rule.js +2 -2
  4. package/cjs/alert/token.js +7 -2
  5. package/cjs/alert/type.d.ts +19 -1
  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 +1 -3
  9. package/cjs/breadcrumb/token.js +2 -8
  10. package/cjs/breadcrumb/type.d.ts +6 -18
  11. package/cjs/breadcrumb/type.d.ts.map +1 -1
  12. package/cjs/button/button.js +7 -7
  13. package/cjs/button/token.js +8 -8
  14. package/cjs/button/type.d.ts +2 -2
  15. package/cjs/card/card.d.ts.map +1 -1
  16. package/cjs/card/card.js +15 -1
  17. package/cjs/card/token.js +31 -2
  18. package/cjs/card/type.d.ts +84 -0
  19. package/cjs/card/type.d.ts.map +1 -1
  20. package/cjs/cascader/cascader.d.ts.map +1 -1
  21. package/cjs/cascader/cascader.js +3 -0
  22. package/cjs/cascader/token.js +9 -0
  23. package/cjs/cascader/type.d.ts +18 -0
  24. package/cjs/cascader/type.d.ts.map +1 -1
  25. package/cjs/descriptions/descriptions.d.ts.map +1 -1
  26. package/cjs/descriptions/descriptions.js +6 -4
  27. package/cjs/descriptions/rule.js +3 -2
  28. package/cjs/descriptions/token.js +11 -3
  29. package/cjs/descriptions/type.d.ts +15 -3
  30. package/cjs/descriptions/type.d.ts.map +1 -1
  31. package/cjs/divider/divider.d.ts.map +1 -1
  32. package/cjs/divider/divider.js +1 -0
  33. package/cjs/divider/token.js +2 -1
  34. package/cjs/divider/type.d.ts +6 -0
  35. package/cjs/divider/type.d.ts.map +1 -1
  36. package/cjs/dropdown/dropdown.d.ts.map +1 -1
  37. package/cjs/dropdown/dropdown.js +6 -4
  38. package/cjs/dropdown/rule.js +2 -0
  39. package/cjs/dropdown/token.js +9 -5
  40. package/cjs/dropdown/type.d.ts +16 -4
  41. package/cjs/dropdown/type.d.ts.map +1 -1
  42. package/cjs/empty/empty.d.ts.map +1 -1
  43. package/cjs/empty/empty.js +2 -1
  44. package/cjs/empty/rule.js +1 -1
  45. package/cjs/empty/token.js +5 -2
  46. package/cjs/empty/type.d.ts +6 -0
  47. package/cjs/empty/type.d.ts.map +1 -1
  48. package/cjs/index.d.ts +2 -2
  49. package/cjs/index.d.ts.map +1 -1
  50. package/cjs/index.js +7 -0
  51. package/cjs/input/input.d.ts.map +1 -1
  52. package/cjs/input/input.js +21 -5
  53. package/cjs/input/rule.js +1 -7
  54. package/cjs/input/token.js +44 -15
  55. package/cjs/input/type.d.ts +115 -19
  56. package/cjs/input/type.d.ts.map +1 -1
  57. package/cjs/list/list.d.ts.map +1 -1
  58. package/cjs/list/list.js +5 -1
  59. package/cjs/list/token.js +11 -1
  60. package/cjs/list/type.d.ts +25 -1
  61. package/cjs/list/type.d.ts.map +1 -1
  62. package/cjs/menu/menu.d.ts.map +1 -1
  63. package/cjs/menu/menu.js +15 -2
  64. package/cjs/menu/token.js +57 -1
  65. package/cjs/menu/type.d.ts +79 -1
  66. package/cjs/menu/type.d.ts.map +1 -1
  67. package/cjs/popover/popover.d.ts.map +1 -1
  68. package/cjs/popover/popover.js +9 -7
  69. package/cjs/popover/rule.js +2 -2
  70. package/cjs/popover/token.js +11 -7
  71. package/cjs/popover/type.d.ts +19 -7
  72. package/cjs/popover/type.d.ts.map +1 -1
  73. package/cjs/rate/rate.d.ts.map +1 -1
  74. package/cjs/rate/rate.js +3 -1
  75. package/cjs/rate/token.js +6 -2
  76. package/cjs/rate/type.d.ts +13 -1
  77. package/cjs/rate/type.d.ts.map +1 -1
  78. package/cjs/select/select.d.ts.map +1 -1
  79. package/cjs/select/select.js +23 -7
  80. package/cjs/select/token.js +62 -12
  81. package/cjs/select/type.d.ts +103 -7
  82. package/cjs/select/type.d.ts.map +1 -1
  83. package/cjs/table/table.d.ts.map +1 -1
  84. package/cjs/table/table.js +13 -0
  85. package/cjs/table/token.js +28 -1
  86. package/cjs/table/type.d.ts +78 -0
  87. package/cjs/table/type.d.ts.map +1 -1
  88. package/cjs/token/token.d.ts +2 -1
  89. package/cjs/token/token.d.ts.map +1 -1
  90. package/cjs/token/token.js +2 -1
  91. package/cjs/transfer/rule.js +1 -8
  92. package/cjs/transfer/token.js +21 -4
  93. package/cjs/transfer/transfer.d.ts.map +1 -1
  94. package/cjs/transfer/transfer.js +11 -5
  95. package/cjs/transfer/type.d.ts +54 -18
  96. package/cjs/transfer/type.d.ts.map +1 -1
  97. package/cjs/tree/rule.js +2 -0
  98. package/cjs/tree/token.js +7 -2
  99. package/cjs/tree/tree.d.ts.map +1 -1
  100. package/cjs/tree/tree.js +2 -0
  101. package/cjs/tree/type.d.ts +15 -3
  102. package/cjs/tree/type.d.ts.map +1 -1
  103. package/esm/alert/alert.d.ts.map +1 -1
  104. package/esm/alert/alert.js +4 -1
  105. package/esm/alert/rule.js +2 -2
  106. package/esm/alert/token.js +7 -2
  107. package/esm/alert/type.d.ts +19 -1
  108. package/esm/alert/type.d.ts.map +1 -1
  109. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  110. package/esm/breadcrumb/breadcrumb.js +1 -3
  111. package/esm/breadcrumb/token.js +2 -8
  112. package/esm/breadcrumb/type.d.ts +6 -18
  113. package/esm/breadcrumb/type.d.ts.map +1 -1
  114. package/esm/button/button.js +7 -7
  115. package/esm/button/token.js +8 -8
  116. package/esm/button/type.d.ts +2 -2
  117. package/esm/card/card.d.ts.map +1 -1
  118. package/esm/card/card.js +15 -1
  119. package/esm/card/token.js +31 -2
  120. package/esm/card/type.d.ts +84 -0
  121. package/esm/card/type.d.ts.map +1 -1
  122. package/esm/cascader/cascader.d.ts.map +1 -1
  123. package/esm/cascader/cascader.js +3 -0
  124. package/esm/cascader/token.js +9 -0
  125. package/esm/cascader/type.d.ts +18 -0
  126. package/esm/cascader/type.d.ts.map +1 -1
  127. package/esm/descriptions/descriptions.d.ts.map +1 -1
  128. package/esm/descriptions/descriptions.js +6 -4
  129. package/esm/descriptions/rule.js +3 -2
  130. package/esm/descriptions/token.js +11 -3
  131. package/esm/descriptions/type.d.ts +15 -3
  132. package/esm/descriptions/type.d.ts.map +1 -1
  133. package/esm/divider/divider.d.ts.map +1 -1
  134. package/esm/divider/divider.js +1 -0
  135. package/esm/divider/token.js +2 -1
  136. package/esm/divider/type.d.ts +6 -0
  137. package/esm/divider/type.d.ts.map +1 -1
  138. package/esm/dropdown/dropdown.d.ts.map +1 -1
  139. package/esm/dropdown/dropdown.js +6 -4
  140. package/esm/dropdown/rule.js +2 -0
  141. package/esm/dropdown/token.js +9 -5
  142. package/esm/dropdown/type.d.ts +16 -4
  143. package/esm/dropdown/type.d.ts.map +1 -1
  144. package/esm/empty/empty.d.ts.map +1 -1
  145. package/esm/empty/empty.js +2 -1
  146. package/esm/empty/rule.js +1 -1
  147. package/esm/empty/token.js +5 -2
  148. package/esm/empty/type.d.ts +6 -0
  149. package/esm/empty/type.d.ts.map +1 -1
  150. package/esm/index.d.ts +2 -2
  151. package/esm/index.d.ts.map +1 -1
  152. package/esm/index.js +1 -1
  153. package/esm/input/input.d.ts.map +1 -1
  154. package/esm/input/input.js +21 -5
  155. package/esm/input/rule.js +1 -7
  156. package/esm/input/token.js +44 -15
  157. package/esm/input/type.d.ts +115 -19
  158. package/esm/input/type.d.ts.map +1 -1
  159. package/esm/list/list.d.ts.map +1 -1
  160. package/esm/list/list.js +5 -1
  161. package/esm/list/token.js +11 -1
  162. package/esm/list/type.d.ts +25 -1
  163. package/esm/list/type.d.ts.map +1 -1
  164. package/esm/menu/menu.d.ts.map +1 -1
  165. package/esm/menu/menu.js +15 -2
  166. package/esm/menu/token.js +57 -1
  167. package/esm/menu/type.d.ts +79 -1
  168. package/esm/menu/type.d.ts.map +1 -1
  169. package/esm/popover/popover.d.ts.map +1 -1
  170. package/esm/popover/popover.js +9 -7
  171. package/esm/popover/rule.js +2 -2
  172. package/esm/popover/token.js +11 -7
  173. package/esm/popover/type.d.ts +19 -7
  174. package/esm/popover/type.d.ts.map +1 -1
  175. package/esm/rate/rate.d.ts.map +1 -1
  176. package/esm/rate/rate.js +3 -1
  177. package/esm/rate/token.js +6 -2
  178. package/esm/rate/type.d.ts +13 -1
  179. package/esm/rate/type.d.ts.map +1 -1
  180. package/esm/select/select.d.ts.map +1 -1
  181. package/esm/select/select.js +23 -7
  182. package/esm/select/token.js +62 -12
  183. package/esm/select/type.d.ts +103 -7
  184. package/esm/select/type.d.ts.map +1 -1
  185. package/esm/table/table.d.ts.map +1 -1
  186. package/esm/table/table.js +13 -0
  187. package/esm/table/token.js +28 -1
  188. package/esm/table/type.d.ts +78 -0
  189. package/esm/table/type.d.ts.map +1 -1
  190. package/esm/token/token.d.ts +2 -1
  191. package/esm/token/token.d.ts.map +1 -1
  192. package/esm/token/token.js +2 -1
  193. package/esm/transfer/rule.js +1 -8
  194. package/esm/transfer/token.js +21 -4
  195. package/esm/transfer/transfer.d.ts.map +1 -1
  196. package/esm/transfer/transfer.js +11 -5
  197. package/esm/transfer/type.d.ts +54 -18
  198. package/esm/transfer/type.d.ts.map +1 -1
  199. package/esm/tree/rule.js +2 -0
  200. package/esm/tree/token.js +7 -2
  201. package/esm/tree/tree.d.ts.map +1 -1
  202. package/esm/tree/tree.js +2 -0
  203. package/esm/tree/type.d.ts +15 -3
  204. package/esm/tree/type.d.ts.map +1 -1
  205. package/package.json +1 -1
package/esm/menu/token.js CHANGED
@@ -14,6 +14,7 @@ var menuTokenDescription = {
14
14
  dark: '深色模式',
15
15
  expand: '展开icon的',
16
16
  open: '打开状态的',
17
+ collapse: '折叠模式下的',
17
18
  box: ''
18
19
  };
19
20
 
@@ -33,6 +34,27 @@ var menuTokenExtraValue = {
33
34
  icon: {
34
35
  color: 'Neutral-text-4'
35
36
  },
37
+ collapse: {
38
+ width: 'Size-20',
39
+ item: {
40
+ disabled: {
41
+ font: {
42
+ color: 'Neutral-text-2'
43
+ },
44
+ background: {
45
+ color: 'Neutral-fill-1'
46
+ }
47
+ },
48
+ active: {
49
+ font: {
50
+ color: 'Brand-6'
51
+ },
52
+ background: {
53
+ color: 'Neutral-fill-1'
54
+ }
55
+ }
56
+ }
57
+ },
36
58
  item: {
37
59
  background: {
38
60
  color: 'Neutral-fill-1'
@@ -72,7 +94,7 @@ var menuTokenExtraValue = {
72
94
  },
73
95
  title: {
74
96
  padding: {
75
- x: '16px',
97
+ x: '13px',
76
98
  y: '9px'
77
99
  }
78
100
  },
@@ -133,6 +155,40 @@ var menuTokenExtraValue = {
133
155
  color: 'Neutral-text-4'
134
156
  }
135
157
  }
158
+ },
159
+ collapse: {
160
+ item: {
161
+ font: {
162
+ color: 'Brand-1'
163
+ },
164
+ background: {
165
+ color: 'Neutral-fill-9'
166
+ },
167
+ active: {
168
+ font: {
169
+ color: 'Neutral-text-1'
170
+ },
171
+ background: {
172
+ color: 'Brand-6'
173
+ }
174
+ },
175
+ disabled: {
176
+ font: {
177
+ color: 'Neutral-text-4'
178
+ },
179
+ background: {
180
+ color: 'Neutral-fill-9'
181
+ }
182
+ },
183
+ hover: {
184
+ font: {
185
+ color: 'Neutral-text-1'
186
+ },
187
+ background: {
188
+ color: 'Brand-9'
189
+ }
190
+ }
191
+ }
136
192
  }
137
193
  }
138
194
  };
@@ -17,6 +17,36 @@ export interface MenuTokens {
17
17
  * @description 菜单图标颜色
18
18
  */
19
19
  menuIconColor: string;
20
+ /**
21
+ * @type {string}
22
+ * @token Size-20
23
+ * @description 菜单折叠模式下的宽度
24
+ */
25
+ menuCollapseWidth: string;
26
+ /**
27
+ * @type {string}
28
+ * @token Neutral-text-2
29
+ * @description 菜单折叠模式下的选项禁用时的字体颜色
30
+ */
31
+ menuCollapseItemDisabledFontColor: string;
32
+ /**
33
+ * @type {string}
34
+ * @token Neutral-fill-1
35
+ * @description 菜单折叠模式下的选项禁用时的背景颜色
36
+ */
37
+ menuCollapseItemDisabledBackgroundColor: string;
38
+ /**
39
+ * @type {string}
40
+ * @token Brand-6
41
+ * @description 菜单折叠模式下的选项鼠标点击时的字体颜色
42
+ */
43
+ menuCollapseItemActiveFontColor: string;
44
+ /**
45
+ * @type {string}
46
+ * @token Neutral-fill-1
47
+ * @description 菜单折叠模式下的选项鼠标点击时的背景颜色
48
+ */
49
+ menuCollapseItemActiveBackgroundColor: string;
20
50
  /**
21
51
  * @type {string}
22
52
  * @token Neutral-fill-1
@@ -73,7 +103,7 @@ export interface MenuTokens {
73
103
  menuItemDisabledFontColor: string;
74
104
  /**
75
105
  * @type {string}
76
- * @token 16px
106
+ * @token 13px
77
107
  * @description 菜单标题模式内边距(水平方向)
78
108
  */
79
109
  menuTitlePaddingX: string;
@@ -173,5 +203,53 @@ export interface MenuTokens {
173
203
  * @description 菜单深色模式选项禁用时的字体颜色
174
204
  */
175
205
  menuDarkItemDisabledFontColor: string;
206
+ /**
207
+ * @type {string}
208
+ * @token Brand-1
209
+ * @description 菜单深色模式折叠模式下的选项字体颜色
210
+ */
211
+ menuDarkCollapseItemFontColor: string;
212
+ /**
213
+ * @type {string}
214
+ * @token Neutral-fill-9
215
+ * @description 菜单深色模式折叠模式下的选项背景颜色
216
+ */
217
+ menuDarkCollapseItemBackgroundColor: string;
218
+ /**
219
+ * @type {string}
220
+ * @token Neutral-text-1
221
+ * @description 菜单深色模式折叠模式下的选项鼠标点击时的字体颜色
222
+ */
223
+ menuDarkCollapseItemActiveFontColor: string;
224
+ /**
225
+ * @type {string}
226
+ * @token Brand-6
227
+ * @description 菜单深色模式折叠模式下的选项鼠标点击时的背景颜色
228
+ */
229
+ menuDarkCollapseItemActiveBackgroundColor: string;
230
+ /**
231
+ * @type {string}
232
+ * @token Neutral-text-4
233
+ * @description 菜单深色模式折叠模式下的选项禁用时的字体颜色
234
+ */
235
+ menuDarkCollapseItemDisabledFontColor: string;
236
+ /**
237
+ * @type {string}
238
+ * @token Neutral-fill-9
239
+ * @description 菜单深色模式折叠模式下的选项禁用时的背景颜色
240
+ */
241
+ menuDarkCollapseItemDisabledBackgroundColor: string;
242
+ /**
243
+ * @type {string}
244
+ * @token Neutral-text-1
245
+ * @description 菜单深色模式折叠模式下的选项鼠标移入时的字体颜色
246
+ */
247
+ menuDarkCollapseItemHoverFontColor: string;
248
+ /**
249
+ * @type {string}
250
+ * @token Brand-9
251
+ * @description 菜单深色模式折叠模式下的选项鼠标移入时的背景颜色
252
+ */
253
+ menuDarkCollapseItemHoverBackgroundColor: string;
176
254
  }
177
255
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,kCAAkC,EAAE,MAAM,CAAC;IAC3C;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,+BAA+B,EAAE,MAAM,CAAC;IACxC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,cAAc,EA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C;IAC5C;;;;OAIG;IACH,yCAAyC,EAAE,MAAM,CAAC;IAClD;;;;OAIG;IACH,qCAAqC,EAAE,MAAM,CAAC;IAC9C;;;;OAIG;IACH,2CAA2C,EAAE,MAAM,CAAC;IACpD;;;;OAIG;IACH,kCAAkC,EAAE,MAAM,CAAC;IAC3C;;;;OAIG;IACH,wCAAwC,EAAE,MAAM,CAAC;CAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,QAAA,MAAM,aAAa,EAAE,aAwBpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,QAAA,MAAM,aAAa,EAAE,aA0BpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -3,9 +3,10 @@
3
3
 
4
4
  var popoverTokens = {
5
5
  popoverFontSize: 'Font-14',
6
+ popoverFontWeight: 'Weight-regular',
6
7
  popoverPaddingX: 'Spacing-8',
7
8
  popoverPaddingY: 'Spacing-8',
8
- popoverRadius: 'Radius-4',
9
+ popoverRadius: 'Radius-default',
9
10
  popoverBorderWidth: 'Border-1',
10
11
  popoverFontColor: 'Neutral-text-5',
11
12
  popoverBackgroundColor: 'Neutral-fill-1',
@@ -13,17 +14,18 @@ var popoverTokens = {
13
14
  popoverBorderColor: 'Neutral-border-1',
14
15
  popoverSuccessBackgroundColor: '#edf9e8',
15
16
  popoverSuccessBorderColor: 'rgba(82, 196, 26, 0.1)',
16
- popoverWarningBackgroundColor: '#fff3e5',
17
- popoverWarningBorderColor: 'rgba(255, 140, 0, 0.1)',
18
- popoverInfoBackgroundColor: '#e8f1fe',
19
- popoverInfoBorderColor: 'rgba(25, 122, 250, 0.1)',
20
- popoverDangerBackgroundColor: '#ffeded',
21
- popoverDangerBorderColor: 'rgba(255, 77, 80, 0.1)',
17
+ popoverWarningBackgroundColor: 'Warning-1',
18
+ popoverWarningBorderColor: 'Warning-2',
19
+ popoverInfoBackgroundColor: 'Brand-1',
20
+ popoverInfoBorderColor: 'Brand-2',
21
+ popoverDangerBackgroundColor: 'Danger-1',
22
+ popoverDangerBorderColor: 'Danger-2',
22
23
  popoverErrorFontColor: 'Danger-7',
23
24
  popoverErrorBackgroundColor: 'Danger-1',
24
25
  popoverErrorBorderColor: 'Danger-1',
25
26
  popoverConfirmPaddingX: 'Spacing-16',
26
27
  popoverConfirmPaddingY: 'Spacing-16',
28
+ popoverConfirmMarginY: 'Spacing-16',
27
29
  popoverConfirmBackgroundColor: 'transparent'
28
30
  };
29
31
  export default popoverTokens;
@@ -7,9 +7,9 @@
7
7
  * 规则变量名称为 组件名称 + Rules。请勿修改变量命名,否则将导致 token 无法生成。
8
8
  */
9
9
  var popoverRules = {
10
- size: [[''], ['font-size', 'padding-x', 'padding-y', 'radius', 'border-width']],
10
+ size: [[''], ['font-size', 'font-weight', 'padding-x', 'padding-y', 'radius', 'border-width']],
11
11
  color: [['', 'success', 'warning', 'info', 'danger', 'error'], ['font-color', 'background-color', 'shadow', 'border-color']],
12
- confirmSize: [['confirm'], ['font-size', 'padding-x', 'padding-y']],
12
+ confirmSize: [['confirm'], ['font-size', 'padding-x', 'padding-y', 'margin-y']],
13
13
  confirmColor: [['confirm'], ['background-color']]
14
14
  };
15
15
  module.exports = {
@@ -25,13 +25,14 @@ var popoverTokenDescription = {
25
25
  var popoverTokenValue = {
26
26
  font: {
27
27
  size: 'Font-14',
28
+ weight: 'Weight-regular',
28
29
  color: 'Neutral-text-5'
29
30
  },
30
31
  padding: {
31
32
  x: 'Spacing-8',
32
33
  y: 'Spacing-8'
33
34
  },
34
- radius: 'Radius-4',
35
+ radius: 'Radius-default',
35
36
  border: {
36
37
  width: 'Border-1',
37
38
  color: 'Neutral-border-1'
@@ -57,11 +58,11 @@ var popoverTokenValue = {
57
58
  color: ''
58
59
  },
59
60
  background: {
60
- color: '#fff3e5'
61
+ color: 'Warning-1'
61
62
  },
62
63
  shadow: '',
63
64
  border: {
64
- color: 'rgba(255, 140, 0, 0.1)'
65
+ color: 'Warning-2'
65
66
  }
66
67
  },
67
68
  info: {
@@ -69,11 +70,11 @@ var popoverTokenValue = {
69
70
  color: ''
70
71
  },
71
72
  background: {
72
- color: '#e8f1fe'
73
+ color: 'Brand-1'
73
74
  },
74
75
  shadow: '',
75
76
  border: {
76
- color: 'rgba(25, 122, 250, 0.1)'
77
+ color: 'Brand-2'
77
78
  }
78
79
  },
79
80
  danger: {
@@ -81,11 +82,11 @@ var popoverTokenValue = {
81
82
  color: ''
82
83
  },
83
84
  background: {
84
- color: '#ffeded'
85
+ color: 'Danger-1'
85
86
  },
86
87
  shadow: '',
87
88
  border: {
88
- color: 'rgba(255, 77, 80, 0.1)'
89
+ color: 'Danger-2'
89
90
  }
90
91
  },
91
92
  error: {
@@ -108,6 +109,9 @@ var popoverTokenValue = {
108
109
  x: 'Spacing-16',
109
110
  y: 'Spacing-16'
110
111
  },
112
+ margin: {
113
+ y: 'Spacing-16'
114
+ },
111
115
  background: {
112
116
  color: 'transparent'
113
117
  }
@@ -5,6 +5,12 @@ export interface PopoverTokens {
5
5
  * @description 气泡字体字号
6
6
  */
7
7
  popoverFontSize: string;
8
+ /**
9
+ * @type {string}
10
+ * @token Weight-regular
11
+ * @description 气泡字体字重
12
+ */
13
+ popoverFontWeight: string;
8
14
  /**
9
15
  * @type {string}
10
16
  * @token Spacing-8
@@ -19,7 +25,7 @@ export interface PopoverTokens {
19
25
  popoverPaddingY: string;
20
26
  /**
21
27
  * @type {string}
22
- * @token Radius-4
28
+ * @token Radius-default
23
29
  * @description 气泡圆角
24
30
  */
25
31
  popoverRadius: string;
@@ -67,37 +73,37 @@ export interface PopoverTokens {
67
73
  popoverSuccessBorderColor: string;
68
74
  /**
69
75
  * @type {string}
70
- * @token #fff3e5
76
+ * @token Warning-1
71
77
  * @description 气泡警告背景颜色
72
78
  */
73
79
  popoverWarningBackgroundColor: string;
74
80
  /**
75
81
  * @type {string}
76
- * @token rgba(255, 140, 0, 0.1)
82
+ * @token Warning-2
77
83
  * @description 气泡警告边框颜色
78
84
  */
79
85
  popoverWarningBorderColor: string;
80
86
  /**
81
87
  * @type {string}
82
- * @token #e8f1fe
88
+ * @token Brand-1
83
89
  * @description 气泡提示背景颜色
84
90
  */
85
91
  popoverInfoBackgroundColor: string;
86
92
  /**
87
93
  * @type {string}
88
- * @token rgba(25, 122, 250, 0.1)
94
+ * @token Brand-2
89
95
  * @description 气泡提示边框颜色
90
96
  */
91
97
  popoverInfoBorderColor: string;
92
98
  /**
93
99
  * @type {string}
94
- * @token #ffeded
100
+ * @token Danger-1
95
101
  * @description 气泡危险色背景颜色
96
102
  */
97
103
  popoverDangerBackgroundColor: string;
98
104
  /**
99
105
  * @type {string}
100
- * @token rgba(255, 77, 80, 0.1)
106
+ * @token Danger-2
101
107
  * @description 气泡危险色边框颜色
102
108
  */
103
109
  popoverDangerBorderColor: string;
@@ -131,6 +137,12 @@ export interface PopoverTokens {
131
137
  * @description 气泡确认内边距(垂直方向)
132
138
  */
133
139
  popoverConfirmPaddingY: string;
140
+ /**
141
+ * @type {string}
142
+ * @token Spacing-16
143
+ * @description 气泡确认外边距(垂直方向)
144
+ */
145
+ popoverConfirmMarginY: string;
134
146
  /**
135
147
  * @type {string}
136
148
  * @token transparent
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kB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AAM,CAAC;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;CACvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["rate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,QAAA,MAAM,UAAU,EAAE,UAOjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"rate.d.ts","sourceRoot":"","sources":["rate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,QAAA,MAAM,UAAU,EAAE,UASjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/esm/rate/rate.js CHANGED
@@ -4,8 +4,10 @@
4
4
  var rateTokens = {
5
5
  rateFontColor: 'Neutral-text-5',
6
6
  rateFontSize: 'Font-14',
7
- rateGap: 'Size-3',
7
+ rateFontWeight: 'Weight-regular',
8
+ rateGap: 'Spacing-6',
8
9
  rateSize: 'Size-12',
10
+ rateTextGap: 'Spacing-10',
9
11
  rateBackgroundColor: 'Neutral-fill-3',
10
12
  rateFrontBackgroundColor: 'Warning-5'
11
13
  };
package/esm/rate/token.js CHANGED
@@ -23,10 +23,14 @@ var rateTokenValue = {};
23
23
  var rateTokenExtraValue = {
24
24
  font: {
25
25
  color: 'Neutral-text-5',
26
- size: 'Font-14'
26
+ size: 'Font-14',
27
+ weight: 'Weight-regular'
27
28
  },
28
- gap: 'Size-3',
29
+ gap: 'Spacing-6',
29
30
  size: 'Size-12',
31
+ text: {
32
+ gap: 'Spacing-10'
33
+ },
30
34
  background: {
31
35
  color: 'Neutral-fill-3'
32
36
  },
@@ -13,7 +13,13 @@ export interface RateTokens {
13
13
  rateFontSize: string;
14
14
  /**
15
15
  * @type {string}
16
- * @token Size-3
16
+ * @token Weight-regular
17
+ * @description 评分字体字重
18
+ */
19
+ rateFontWeight: string;
20
+ /**
21
+ * @type {string}
22
+ * @token Spacing-6
17
23
  * @description 评分间距
18
24
  */
19
25
  rateGap: string;
@@ -23,6 +29,12 @@ export interface RateTokens {
23
29
  * @description 评分字号
24
30
  */
25
31
  rateSize: string;
32
+ /**
33
+ * @type {string}
34
+ * @token Spacing-10
35
+ * @description 评分undefined间距
36
+ */
37
+ rateTextGap: string;
26
38
  /**
27
39
  * @type {string}
28
40
  * @token Neutral-fill-3
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,QAAA,MAAM,YAAY,EAAE,YA6EnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,QAAA,MAAM,YAAY,EAAE,YA6FnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -4,8 +4,10 @@
4
4
  var selectTokens = {
5
5
  selectFontSize: 'Font-14',
6
6
  selectFontColor: 'Neutral-text-5',
7
- selectBorderRadius: 'Radius-4',
7
+ selectFontWeight: 'Weight-regular',
8
+ selectBorderRadius: 'Radius-default',
8
9
  selectBorderColor: 'Neutral-border-2',
10
+ selectBorderWidth: 'Border-1',
9
11
  selectPaddingX: 'Spacing-8',
10
12
  selectPaddingY: 'Spacing-2',
11
13
  selectIconSize: 'Size-7',
@@ -30,26 +32,35 @@ var selectTokens = {
30
32
  selectClearPadding: 'Spacing-8',
31
33
  selectHoverBorderColor: 'Brand-6',
32
34
  selectHoverClearColor: 'Neutral-text-4',
35
+ selectHoverBackgroundColor: 'Neutral-fill-1',
33
36
  selectFocusBorderColor: 'Brand-7',
34
37
  selectFocusShadow: 'Brand-2',
38
+ selectFocusBackgroundColor: 'Neutral-fill-1',
35
39
  selectDisabledIconColor: 'Neutral-text-2',
36
40
  selectDisabledFontColor: 'Neutral-text-2',
37
41
  selectDisabledPlaceholderColor: 'Neutral-text-2',
38
42
  selectDisabledBorderColor: 'Neutral-border-1',
39
43
  selectDisabledBackgroundColor: 'Neutral-fill-2',
40
- selectResultTextBorderRadius: 'Radius-4',
44
+ selectResultTextBorderRadius: 'Radius-default',
41
45
  selectResultTextPaddingX: 'Spacing-4',
42
46
  selectResultTextSmallPaddingX: 'Spacing-4',
43
47
  selectResultTextLargePaddingX: 'Spacing-10',
44
48
  selectResultTextActiveBackgroundColor: 'Brand-1',
45
49
  selectErrorBorderColor: 'Danger-6',
50
+ selectErrorBackgroundColor: 'Neutral-fill-1',
46
51
  selectErrorFocusShadow: 'Danger-1',
52
+ selectErrorFocusBackgroundColor: 'Neutral-fill-1',
53
+ selectErrorFocusBorderColor: 'Danger-6',
54
+ selectErrorHoverBackgroundColor: 'Neutral-fill-1',
55
+ selectErrorHoverBorderColor: 'Danger-6',
47
56
  selectPanelColor: 'Neutral-text-5',
48
57
  selectPanelBackgroundColor: 'Neutral-fill-1',
49
58
  selectPanelShadow: 'Shadow-2',
50
- selectPanelRadius: 'Radius-4',
59
+ selectPanelRadius: 'Radius-default',
51
60
  selectPanelBorder: 'Neutral-border-1',
52
61
  selectOptionHeight: 'Size-16',
62
+ selectOptionBackgroundColor: 'Neutral-fill-1',
63
+ selectOptionFontColor: 'Neutral-text-5',
53
64
  selectOptionPaddingX: 'Spacing-4',
54
65
  selectOptionPaddingY: 'Spacing-1',
55
66
  selectOptionActiveColor: 'Brand-6',
@@ -57,15 +68,18 @@ var selectTokens = {
57
68
  selectOptionInnerPaddingX: 'Spacing-8',
58
69
  selectOptionInnerPaddingY: 'Spacing-5',
59
70
  selectOptionInnerPaddingRight: 'Size-15',
60
- selectOptionInnerBorderRadius: 'Radius-2',
71
+ selectOptionInnerBorderRadius: 'Radius-lesser',
61
72
  selectOptionHoverBackgroundColor: 'Neutral-fill-2',
73
+ selectOptionHoverFontColor: 'Neutral-text-5',
62
74
  selectOptionDisabledColor: 'Neutral-text-2',
63
75
  selectOptionDisabledBackgroundColor: 'Neutral-fill-1',
64
76
  selectMorePadding: 'Spacing-8',
65
- selectHeaderPadding: 'Spacing-8',
77
+ selectHeaderPaddingX: 'Spacing-8',
78
+ selectHeaderPaddingY: 'Spacing-8',
66
79
  selectHeaderBorderColor: 'Neutral-border-1',
67
80
  selectGroupTitleFontColor: 'Neutral-text-3',
68
81
  selectGroupTitleFontSize: 'Font-12',
82
+ selectGroupTitleFontWeight: 'Weight-regular',
69
83
  selectGroupTitlePaddingX: 'Spacing-12',
70
84
  selectGroupTitlePaddingTop: 'Spacing-10',
71
85
  selectGroupTitlePaddingBottom: 'Spacing-2',
@@ -76,7 +90,9 @@ var selectTokens = {
76
90
  selectGroupTitleLargeBottom: 'Spacing-4',
77
91
  selectColumnPadding: 'Spacing-8',
78
92
  selectColumnOptionMargin: 'Spacing-8',
79
- selectColumnBorderRadius: 'Radius-4',
80
- selectColumnBackgroundColor: 'Neutral-fill-2'
93
+ selectColumnBorderRadius: 'Radius-default',
94
+ selectColumnBackgroundColor: 'Neutral-fill-2',
95
+ selectLoadingSpinColor: 'Brand-6',
96
+ selectEmptyFontColor: 'Neutral-text-2'
81
97
  };
82
98
  export default selectTokens;