@sheinx/theme 3.2.0-rc.1 → 3.2.0-rc.2

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 (91) 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/descriptions/descriptions.d.ts.map +1 -1
  13. package/cjs/descriptions/descriptions.js +6 -4
  14. package/cjs/descriptions/rule.js +3 -2
  15. package/cjs/descriptions/token.js +11 -3
  16. package/cjs/descriptions/type.d.ts +15 -3
  17. package/cjs/descriptions/type.d.ts.map +1 -1
  18. package/cjs/dropdown/dropdown.d.ts.map +1 -1
  19. package/cjs/dropdown/dropdown.js +6 -4
  20. package/cjs/dropdown/rule.js +2 -0
  21. package/cjs/dropdown/token.js +9 -5
  22. package/cjs/dropdown/type.d.ts +16 -4
  23. package/cjs/dropdown/type.d.ts.map +1 -1
  24. package/cjs/input/input.d.ts.map +1 -1
  25. package/cjs/input/input.js +17 -5
  26. package/cjs/input/rule.js +1 -7
  27. package/cjs/input/token.js +29 -12
  28. package/cjs/input/type.d.ts +94 -22
  29. package/cjs/input/type.d.ts.map +1 -1
  30. package/cjs/list/list.d.ts.map +1 -1
  31. package/cjs/list/list.js +5 -1
  32. package/cjs/list/token.js +11 -1
  33. package/cjs/list/type.d.ts +25 -1
  34. package/cjs/list/type.d.ts.map +1 -1
  35. package/cjs/popover/popover.d.ts.map +1 -1
  36. package/cjs/popover/popover.js +9 -7
  37. package/cjs/popover/rule.js +2 -2
  38. package/cjs/popover/token.js +11 -7
  39. package/cjs/popover/type.d.ts +19 -7
  40. package/cjs/popover/type.d.ts.map +1 -1
  41. package/cjs/select/select.d.ts.map +1 -1
  42. package/cjs/select/select.js +23 -7
  43. package/cjs/select/token.js +62 -12
  44. package/cjs/select/type.d.ts +103 -7
  45. package/cjs/select/type.d.ts.map +1 -1
  46. package/esm/alert/alert.d.ts.map +1 -1
  47. package/esm/alert/alert.js +4 -1
  48. package/esm/alert/rule.js +2 -2
  49. package/esm/alert/token.js +7 -2
  50. package/esm/alert/type.d.ts +19 -1
  51. package/esm/alert/type.d.ts.map +1 -1
  52. package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
  53. package/esm/breadcrumb/breadcrumb.js +1 -3
  54. package/esm/breadcrumb/token.js +2 -8
  55. package/esm/breadcrumb/type.d.ts +6 -18
  56. package/esm/breadcrumb/type.d.ts.map +1 -1
  57. package/esm/descriptions/descriptions.d.ts.map +1 -1
  58. package/esm/descriptions/descriptions.js +6 -4
  59. package/esm/descriptions/rule.js +3 -2
  60. package/esm/descriptions/token.js +11 -3
  61. package/esm/descriptions/type.d.ts +15 -3
  62. package/esm/descriptions/type.d.ts.map +1 -1
  63. package/esm/dropdown/dropdown.d.ts.map +1 -1
  64. package/esm/dropdown/dropdown.js +6 -4
  65. package/esm/dropdown/rule.js +2 -0
  66. package/esm/dropdown/token.js +9 -5
  67. package/esm/dropdown/type.d.ts +16 -4
  68. package/esm/dropdown/type.d.ts.map +1 -1
  69. package/esm/input/input.d.ts.map +1 -1
  70. package/esm/input/input.js +17 -5
  71. package/esm/input/rule.js +1 -7
  72. package/esm/input/token.js +29 -12
  73. package/esm/input/type.d.ts +94 -22
  74. package/esm/input/type.d.ts.map +1 -1
  75. package/esm/list/list.d.ts.map +1 -1
  76. package/esm/list/list.js +5 -1
  77. package/esm/list/token.js +11 -1
  78. package/esm/list/type.d.ts +25 -1
  79. package/esm/list/type.d.ts.map +1 -1
  80. package/esm/popover/popover.d.ts.map +1 -1
  81. package/esm/popover/popover.js +9 -7
  82. package/esm/popover/rule.js +2 -2
  83. package/esm/popover/token.js +11 -7
  84. package/esm/popover/type.d.ts +19 -7
  85. package/esm/popover/type.d.ts.map +1 -1
  86. package/esm/select/select.d.ts.map +1 -1
  87. package/esm/select/select.js +23 -7
  88. package/esm/select/token.js +62 -12
  89. package/esm/select/type.d.ts +103 -7
  90. package/esm/select/type.d.ts.map +1 -1
  91. package/package.json +1 -1
@@ -9,7 +9,7 @@ var descriptionsTokens = {
9
9
  descriptionsTitleSmallSize: 'Font-14',
10
10
  descriptionsTitleDefaultSize: 'Font-16',
11
11
  descriptionsTitleLargeSize: 'Font-18',
12
- descriptionsBorderDefaultSize: '1px',
12
+ descriptionsBorderDefaultSize: 'Border-1',
13
13
  descriptionsFontSmallSize: 'Font-12',
14
14
  descriptionsFontDefaultSize: 'Font-14',
15
15
  descriptionsFontLargeSize: 'Font-16',
@@ -18,14 +18,16 @@ var descriptionsTokens = {
18
18
  descriptionsTitleColor: 'Neutral-text-5',
19
19
  descriptionsBackgroundColor: 'Neutral-fill-2',
20
20
  descriptionsBorderColor: 'Neutral-border-1',
21
- descriptionsTitleFontWeight: '500',
21
+ descriptionsTitleFontWeight: 'Weight-medium',
22
22
  descriptionsTitleGap: 'Size-2',
23
- descriptionsBorderRadius: 'Size-2',
23
+ descriptionsCellGap: 'Spacing-0',
24
+ descriptionsBorderRadius: 'Radius-lesser',
24
25
  descriptionsBorderRightSize: '1px',
25
26
  descriptionsBorderBottomSize: '1px',
26
27
  descriptionsBorderPaddingX: 'Spacing-8',
27
28
  descriptionsBorderPaddingY: 'Spacing-12',
28
29
  descriptionsInlineBorderPaddingX: 'Spacing-8',
29
- descriptionsInlineBorderPaddingY: 'Spacing-12'
30
+ descriptionsInlineBorderPaddingY: 'Spacing-12',
31
+ descriptionsVerticalPaddingBottom: 'Spacing-2'
30
32
  };
31
33
  export default descriptionsTokens;
@@ -11,10 +11,11 @@ var descriptionsRules = {
11
11
  font: [['title', 'border', 'font'], ['small-size', 'default-size', 'large-size']],
12
12
  color: [['label', 'value', 'title', 'extra', 'background', 'border'], ['color']],
13
13
  weight: [['title'], ['font-weight']],
14
- gap: [['title'], ['gap']],
14
+ gap: [['title', 'cell'], ['gap']],
15
15
  radius: [['border'], ['radius']],
16
16
  border: [['border-right', 'border-bottom', 'border-padding'], ['size', 'x', 'y']],
17
- Inline: [['inline-border'], ['padding-x', 'padding-y']]
17
+ Inline: [['inline-border'], ['padding-x', 'padding-y']],
18
+ layout: [['vertical'], ['padding-bottom']]
18
19
  };
19
20
  module.exports = {
20
21
  descriptionsRules: descriptionsRules
@@ -43,7 +43,7 @@ var descriptionsTokenValue = {
43
43
  },
44
44
  color: 'Neutral-text-5',
45
45
  font: {
46
- weight: '500'
46
+ weight: 'Weight-medium'
47
47
  },
48
48
  gap: 'Size-2'
49
49
  },
@@ -70,13 +70,13 @@ var descriptionsTokenValue = {
70
70
  size: ''
71
71
  },
72
72
  default: {
73
- size: '1px'
73
+ size: 'Border-1'
74
74
  },
75
75
  large: {
76
76
  size: ''
77
77
  },
78
78
  color: 'Neutral-border-1',
79
- radius: 'Size-2',
79
+ radius: 'Radius-lesser',
80
80
  right: {
81
81
  size: '1px',
82
82
  x: '',
@@ -110,6 +110,9 @@ var descriptionsTokenValue = {
110
110
  background: {
111
111
  color: 'Neutral-fill-2'
112
112
  },
113
+ cell: {
114
+ gap: 'Spacing-0'
115
+ },
113
116
  inline: {
114
117
  border: {
115
118
  padding: {
@@ -117,6 +120,11 @@ var descriptionsTokenValue = {
117
120
  y: 'Spacing-12'
118
121
  }
119
122
  }
123
+ },
124
+ vertical: {
125
+ padding: {
126
+ bottom: 'Spacing-2'
127
+ }
120
128
  }
121
129
  };
122
130
  var descriptionsTokenExtraValue = {};
@@ -43,7 +43,7 @@ export interface DescriptionsTokens {
43
43
  descriptionsTitleLargeSize: string;
44
44
  /**
45
45
  * @type {string}
46
- * @token 1px
46
+ * @token Border-1
47
47
  * @description 描述列表边框默认尺寸字号
48
48
  */
49
49
  descriptionsBorderDefaultSize: string;
@@ -97,7 +97,7 @@ export interface DescriptionsTokens {
97
97
  descriptionsBorderColor: string;
98
98
  /**
99
99
  * @type {string}
100
- * @token 500
100
+ * @token Weight-medium
101
101
  * @description 描述列表标题模式字体字重
102
102
  */
103
103
  descriptionsTitleFontWeight: string;
@@ -109,7 +109,13 @@ export interface DescriptionsTokens {
109
109
  descriptionsTitleGap: string;
110
110
  /**
111
111
  * @type {string}
112
- * @token Size-2
112
+ * @token Spacing-0
113
+ * @description 描述列表undefined间距
114
+ */
115
+ descriptionsCellGap: string;
116
+ /**
117
+ * @type {string}
118
+ * @token Radius-lesser
113
119
  * @description 描述列表边框圆角
114
120
  */
115
121
  descriptionsBorderRadius: string;
@@ -149,5 +155,11 @@ export interface DescriptionsTokens {
149
155
  * @description 描述列表内联边框内边距(垂直方向)
150
156
  */
151
157
  descriptionsInlineBorderPaddingY: string;
158
+ /**
159
+ * @type {string}
160
+ * @token Spacing-2
161
+ * @description 描述列表undefined内边距底部
162
+ */
163
+ descriptionsVerticalPaddingBottom: string;
152
164
  }
153
165
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OA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IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,gCAAgC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,iCAAiC,EAAE,MAAM,CAAC;CAC3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["dropdown.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,QAAA,MAAM,cAAc,EAAE,cAmDrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["dropdown.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,QAAA,MAAM,cAAc,EAAE,cAqDrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -2,16 +2,16 @@
2
2
  // This file was generated automatically by a script. Please do not modify it directly.
3
3
 
4
4
  var dropdownTokens = {
5
- dropdownCaretMarginLeft: 'Spacing-4',
6
- dropdownListBorderRadius: 'Radius-4',
5
+ dropdownCaretMarginLeft: 'Spacing-8',
6
+ dropdownListBorderRadius: 'Radius-default',
7
7
  dropdownListPaddingX: 'Spacing-4',
8
8
  dropdownListPaddingY: 'Spacing-4',
9
9
  dropdownListFontSize: 'Font-14',
10
- dropdownListSmallBorderRadius: 'Radius-4',
10
+ dropdownListSmallBorderRadius: 'Radius-default',
11
11
  dropdownListSmallPaddingX: 'Spacing-4',
12
12
  dropdownListSmallPaddingY: 'Spacing-4',
13
13
  dropdownListSmallFontSize: 'Font-12',
14
- dropdownListLargeBorderRadius: 'Radius-4',
14
+ dropdownListLargeBorderRadius: 'Radius-default',
15
15
  dropdownListLargePaddingX: 'Spacing-4',
16
16
  dropdownListLargePaddingY: 'Spacing-4',
17
17
  dropdownListLargeFontSize: 'Font-16',
@@ -36,6 +36,8 @@ var dropdownTokens = {
36
36
  dropdownOptionSelectFontColor: 'Brand-6',
37
37
  dropdownOptionDisabledBackgroundColor: 'Neutral-fill-1',
38
38
  dropdownOptionDisabledFontColor: 'Neutral-text-2',
39
+ dropdownOptionBorderRadius: 'Radius-default',
40
+ dropdownOptionFontWeight: 'Weight-regular',
39
41
  dropdownColumnPaddingX: 'Spacing-4',
40
42
  dropdownColumnPaddingY: 'Spacing-4',
41
43
  dropdownOptionGroupPaddingX: 'Spacing-8',
@@ -23,6 +23,8 @@ var dropdownRules = {
23
23
  listOption: [['list'], ['border-width']],
24
24
  ListOptionSize: [['option'], ['', 'small', 'large'], ['padding-x', 'padding-y']],
25
25
  listOptionColor: [['option'], ['', 'hover', 'active', 'select', 'disabled'], ['background-color', 'font-color']],
26
+ listOptionBorder: [['option'], ['border-radius']],
27
+ listOptionFont: [['option'], ['font-weight']],
26
28
  Column: [['column'], ['padding-x', 'padding-y']],
27
29
  OptionGroup: [['option'], ['group'], ['padding-x', 'padding-top', 'padding-bottom', 'font-size', 'font-color', 'small-x', 'small-top', 'small-bottom', 'large-x', 'large-top', 'large-bottom']],
28
30
  OptionDivider: [['option'], ['divider'], ['background-color', 'padding-x', 'padding-y', 'height']]
@@ -33,7 +33,7 @@ var dropdownTokenDescription = {
33
33
  var dropdownTokenValue = {
34
34
  list: {
35
35
  border: {
36
- radius: 'Radius-4',
36
+ radius: 'Radius-default',
37
37
  color: 'Neutral-border-1',
38
38
  width: 'Border-1'
39
39
  },
@@ -47,7 +47,7 @@ var dropdownTokenValue = {
47
47
  },
48
48
  small: {
49
49
  border: {
50
- radius: 'Radius-4'
50
+ radius: 'Radius-default'
51
51
  },
52
52
  padding: {
53
53
  x: 'Spacing-4',
@@ -59,7 +59,7 @@ var dropdownTokenValue = {
59
59
  },
60
60
  large: {
61
61
  border: {
62
- radius: 'Radius-4'
62
+ radius: 'Radius-default'
63
63
  },
64
64
  padding: {
65
65
  x: 'Spacing-4',
@@ -97,7 +97,8 @@ var dropdownTokenValue = {
97
97
  color: 'Neutral-fill-1'
98
98
  },
99
99
  font: {
100
- color: 'Neutral-text-5'
100
+ color: 'Neutral-text-5',
101
+ weight: 'Weight-regular'
101
102
  },
102
103
  hover: {
103
104
  background: {
@@ -131,6 +132,9 @@ var dropdownTokenValue = {
131
132
  color: 'Neutral-text-2'
132
133
  }
133
134
  },
135
+ border: {
136
+ radius: 'Radius-default'
137
+ },
134
138
  group: {
135
139
  padding: {
136
140
  x: 'Spacing-8',
@@ -173,7 +177,7 @@ var dropdownTokenValue = {
173
177
  var dropdownTokenExtraValue = {
174
178
  caret: {
175
179
  margin: {
176
- left: 'Spacing-4'
180
+ left: 'Spacing-8'
177
181
  }
178
182
  }
179
183
  };
@@ -1,13 +1,13 @@
1
1
  export interface DropdownTokens {
2
2
  /**
3
3
  * @type {string}
4
- * @token Spacing-4
4
+ * @token Spacing-8
5
5
  * @description 下拉菜单箭头icon的外边距(左侧)
6
6
  */
7
7
  dropdownCaretMarginLeft: string;
8
8
  /**
9
9
  * @type {string}
10
- * @token Radius-4
10
+ * @token Radius-default
11
11
  * @description 下拉菜单列表边框圆角
12
12
  */
13
13
  dropdownListBorderRadius: string;
@@ -31,7 +31,7 @@ export interface DropdownTokens {
31
31
  dropdownListFontSize: string;
32
32
  /**
33
33
  * @type {string}
34
- * @token Radius-4
34
+ * @token Radius-default
35
35
  * @description 下拉菜单列表小尺寸边框圆角
36
36
  */
37
37
  dropdownListSmallBorderRadius: string;
@@ -55,7 +55,7 @@ export interface DropdownTokens {
55
55
  dropdownListSmallFontSize: string;
56
56
  /**
57
57
  * @type {string}
58
- * @token Radius-4
58
+ * @token Radius-default
59
59
  * @description 下拉菜单列表大尺寸边框圆角
60
60
  */
61
61
  dropdownListLargeBorderRadius: string;
@@ -203,6 +203,18 @@ export interface DropdownTokens {
203
203
  * @description 下拉菜单选项禁用时的字体颜色
204
204
  */
205
205
  dropdownOptionDisabledFontColor: string;
206
+ /**
207
+ * @type {string}
208
+ * @token Radius-default
209
+ * @description 下拉菜单选项边框圆角
210
+ */
211
+ dropdownOptionBorderRadius: string;
212
+ /**
213
+ * @type {string}
214
+ * @token Weight-regular
215
+ * @description 下拉菜单选项字体字重
216
+ */
217
+ dropdownOptionFontWeight: string;
206
218
  /**
207
219
  * @type {string}
208
220
  * @token Spacing-4
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;I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1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["input.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,QAAA,MAAM,WAAW,EAAE,WA0DlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -3,33 +3,42 @@
3
3
 
4
4
  var inputTokens = {
5
5
  inputFontSize: 'Font-14',
6
- inputBorderRadius: 'Radius-4',
6
+ inputFontColor: 'Neutral-text-5',
7
+ inputFontWeight: 'Weight-regular',
8
+ inputBorderRadius: 'Radius-default',
9
+ inputBorderColor: 'Neutral-border-2',
10
+ inputBorderWidth: 'Border-1',
7
11
  inputPaddingX: 'Spacing-8',
8
12
  inputPaddingY: 'Spacing-4',
9
13
  inputIconSize: 'Size-7',
14
+ inputIconColor: 'Neutral-text-4',
10
15
  inputSmallFontSize: 'Font-12',
11
16
  inputSmallPaddingX: 'Spacing-8',
12
17
  inputSmallPaddingY: 'Spacing-1',
13
18
  inputLargeFontSize: 'Font-16',
14
19
  inputLargePaddingX: 'Spacing-12',
15
20
  inputLargePaddingY: 'Spacing-7',
16
- inputFontColor: 'Neutral-text-5',
17
21
  inputPlaceholderColor: 'Neutral-text-2',
18
- inputBorderColor: 'Neutral-border-2',
19
22
  inputBackgroundColor: 'Neutral-fill-1',
20
23
  inputClearColor: 'Neutral-text-3',
21
24
  inputToggleColor: 'Neutral-text-4',
22
- inputIconColor: 'Neutral-text-4',
23
25
  inputHoverBorderColor: 'Brand-6',
26
+ inputHoverBackgroundColor: 'Neutral-fill-1',
24
27
  inputHoverClearColor: 'Neutral-text-4',
25
28
  inputHoverToggleColor: 'Neutral-text-5',
26
29
  inputFocusBorderColor: 'Brand-7',
30
+ inputFocusBackgroundColor: 'Neutral-fill-1',
27
31
  inputFocusShadow: 'Brand-2',
28
32
  inputDisabledFontColor: 'Neutral-text-2',
29
33
  inputDisabledPlaceholderColor: 'Neutral-text-2',
30
34
  inputDisabledBorderColor: 'Neutral-border-1',
31
35
  inputDisabledBackgroundColor: 'Neutral-fill-2',
32
36
  inputErrorBorderColor: 'Danger-6',
37
+ inputErrorBackgroundColor: 'Neutral-fill-1',
38
+ inputErrorHoverBorderColor: 'Danger-6',
39
+ inputErrorHoverBackgroundColor: 'Neutral-fill-1',
40
+ inputErrorFocusBorderColor: 'Danger-6',
41
+ inputErrorFocusBackgroundColor: 'Neutral-fill-1',
33
42
  inputErrorFocusShadow: 'Danger-1',
34
43
  inputInfoFontColor: 'Brand-6',
35
44
  inputInfoBackgroundColor: 'Neutral-fill-1',
@@ -40,12 +49,15 @@ var inputTokens = {
40
49
  inputInnerPaddingX: 'Spacing-8',
41
50
  inputInnerPaddingY: 'Spacing-1',
42
51
  inputInnerFontSize: 'Font-12',
52
+ inputInnerFontColor: 'Neutral-text-4',
43
53
  inputInnerSmallPaddingX: 'Spacing-8',
44
54
  inputInnerSmallPaddingY: 'Spacing-1',
45
55
  inputInnerSmallFontSize: 'Font-12',
46
56
  inputInnerLargePaddingX: 'Spacing-12',
47
57
  inputInnerLargePaddingY: 'Spacing-3',
48
58
  inputInnerLargeFontSize: 'Font-14',
49
- inputInnerFontColor: 'Neutral-text-4'
59
+ inputInnerTopFontSize: 'Font-12',
60
+ inputInnerTopSmallFontSize: 'Font-12',
61
+ inputInnerTopLargeFontSize: 'Font-12'
50
62
  };
51
63
  export default inputTokens;
package/esm/input/rule.js CHANGED
@@ -6,13 +6,7 @@
6
6
  * 用于生成 token 的规则,修改保存后将自动更新 token。
7
7
  * 规则变量名称为 组件名称 + Rules。请勿修改变量命名,否则将导致 token 无法生成。
8
8
  */
9
- var inputRules = {
10
- size: [['', 'small', 'large'], ['font-size', 'border-radius', 'padding-x', 'padding-y', 'icon-size']],
11
- color: [['', 'disabled', 'error'], ['', 'hover', 'focus'], ['font-color', 'placeholder-color', 'border-color', 'background-color', 'shadow', 'clear-color', 'toggle-color', 'icon-color']],
12
- infoColor: [['info'], ['', 'error'], ['font-color', 'background-color', 'border-color']],
13
- innerSize: [['inner'], ['', 'small', 'large'], ['padding-x', 'padding-y', 'font-size']],
14
- innerColor: [['inner'], ['font-color']]
15
- };
9
+ var inputRules = {};
16
10
  module.exports = {
17
11
  inputRules: inputRules
18
12
  };
@@ -23,14 +23,17 @@ var inputTokenDescription = {
23
23
  * 该映射表将根据规则自动生成,并与公共 token 进行合并。若有相同 token,将覆盖公共 token。默认不包含公共 token,除非在映射表中添加覆盖。
24
24
  * 注意,该映射表的内容不与 inputRules 强关联,非 inputRules 规则内的 token 需手动增加或删减。
25
25
  */
26
- var inputTokenValue = {
26
+ var inputTokenValue = {};
27
+ var inputTokenExtraValue = {
27
28
  font: {
28
29
  size: 'Font-14',
29
- color: 'Neutral-text-5'
30
+ color: 'Neutral-text-5',
31
+ weight: 'Weight-regular'
30
32
  },
31
33
  border: {
32
- radius: 'Radius-4',
33
- color: 'Neutral-border-2'
34
+ radius: 'Radius-default',
35
+ color: 'Neutral-border-2',
36
+ width: 'Border-1'
34
37
  },
35
38
  padding: {
36
39
  x: 'Spacing-8',
@@ -94,7 +97,7 @@ var inputTokenValue = {
94
97
  color: 'Brand-6'
95
98
  },
96
99
  background: {
97
- color: ''
100
+ color: 'Neutral-fill-1'
98
101
  },
99
102
  shadow: '',
100
103
  clear: {
@@ -118,7 +121,7 @@ var inputTokenValue = {
118
121
  color: 'Brand-7'
119
122
  },
120
123
  background: {
121
- color: ''
124
+ color: 'Neutral-fill-1'
122
125
  },
123
126
  shadow: 'Brand-2',
124
127
  clear: {
@@ -214,7 +217,7 @@ var inputTokenValue = {
214
217
  color: 'Danger-6'
215
218
  },
216
219
  background: {
217
- color: ''
220
+ color: 'Neutral-fill-1'
218
221
  },
219
222
  shadow: '',
220
223
  clear: {
@@ -234,10 +237,10 @@ var inputTokenValue = {
234
237
  color: ''
235
238
  },
236
239
  border: {
237
- color: ''
240
+ color: 'Danger-6'
238
241
  },
239
242
  background: {
240
- color: ''
243
+ color: 'Neutral-fill-1'
241
244
  },
242
245
  shadow: '',
243
246
  clear: {
@@ -258,10 +261,10 @@ var inputTokenValue = {
258
261
  color: ''
259
262
  },
260
263
  border: {
261
- color: ''
264
+ color: 'Danger-6'
262
265
  },
263
266
  background: {
264
- color: ''
267
+ color: 'Neutral-fill-1'
265
268
  },
266
269
  shadow: 'Danger-1',
267
270
  clear: {
@@ -323,10 +326,24 @@ var inputTokenValue = {
323
326
  font: {
324
327
  size: 'Font-14'
325
328
  }
329
+ },
330
+ top: {
331
+ font: {
332
+ size: 'Font-12'
333
+ },
334
+ small: {
335
+ font: {
336
+ size: 'Font-12'
337
+ }
338
+ },
339
+ large: {
340
+ font: {
341
+ size: 'Font-12'
342
+ }
343
+ }
326
344
  }
327
345
  }
328
346
  };
329
- var inputTokenExtraValue = {};
330
347
  module.exports = {
331
348
  inputTokenValue: inputTokenValue,
332
349
  inputTokenExtraValue: inputTokenExtraValue,
@@ -7,10 +7,34 @@ export interface InputTokens {
7
7
  inputFontSize: string;
8
8
  /**
9
9
  * @type {string}
10
- * @token Radius-4
10
+ * @token Neutral-text-5
11
+ * @description 输入框字体颜色
12
+ */
13
+ inputFontColor: string;
14
+ /**
15
+ * @type {string}
16
+ * @token Weight-regular
17
+ * @description 输入框字体字重
18
+ */
19
+ inputFontWeight: string;
20
+ /**
21
+ * @type {string}
22
+ * @token Radius-default
11
23
  * @description 输入框边框圆角
12
24
  */
13
25
  inputBorderRadius: string;
26
+ /**
27
+ * @type {string}
28
+ * @token Neutral-border-2
29
+ * @description 输入框边框颜色
30
+ */
31
+ inputBorderColor: string;
32
+ /**
33
+ * @type {string}
34
+ * @token Border-1
35
+ * @description 输入框边框宽度
36
+ */
37
+ inputBorderWidth: string;
14
38
  /**
15
39
  * @type {string}
16
40
  * @token Spacing-8
@@ -29,6 +53,12 @@ export interface InputTokens {
29
53
  * @description 输入框图标字号
30
54
  */
31
55
  inputIconSize: string;
56
+ /**
57
+ * @type {string}
58
+ * @token Neutral-text-4
59
+ * @description 输入框图标颜色
60
+ */
61
+ inputIconColor: string;
32
62
  /**
33
63
  * @type {string}
34
64
  * @token Font-12
@@ -65,24 +95,12 @@ export interface InputTokens {
65
95
  * @description 输入框大尺寸内边距(垂直方向)
66
96
  */
67
97
  inputLargePaddingY: string;
68
- /**
69
- * @type {string}
70
- * @token Neutral-text-5
71
- * @description 输入框字体颜色
72
- */
73
- inputFontColor: string;
74
98
  /**
75
99
  * @type {string}
76
100
  * @token Neutral-text-2
77
101
  * @description 输入框占位符颜色
78
102
  */
79
103
  inputPlaceholderColor: string;
80
- /**
81
- * @type {string}
82
- * @token Neutral-border-2
83
- * @description 输入框边框颜色
84
- */
85
- inputBorderColor: string;
86
104
  /**
87
105
  * @type {string}
88
106
  * @token Neutral-fill-1
@@ -101,18 +119,18 @@ export interface InputTokens {
101
119
  * @description 输入框反转颜色
102
120
  */
103
121
  inputToggleColor: string;
104
- /**
105
- * @type {string}
106
- * @token Neutral-text-4
107
- * @description 输入框图标颜色
108
- */
109
- inputIconColor: string;
110
122
  /**
111
123
  * @type {string}
112
124
  * @token Brand-6
113
125
  * @description 输入框鼠标移入时的边框颜色
114
126
  */
115
127
  inputHoverBorderColor: string;
128
+ /**
129
+ * @type {string}
130
+ * @token Neutral-fill-1
131
+ * @description 输入框鼠标移入时的背景颜色
132
+ */
133
+ inputHoverBackgroundColor: string;
116
134
  /**
117
135
  * @type {string}
118
136
  * @token Neutral-text-4
@@ -131,6 +149,12 @@ export interface InputTokens {
131
149
  * @description 输入框鼠标聚焦时的边框颜色
132
150
  */
133
151
  inputFocusBorderColor: string;
152
+ /**
153
+ * @type {string}
154
+ * @token Neutral-fill-1
155
+ * @description 输入框鼠标聚焦时的背景颜色
156
+ */
157
+ inputFocusBackgroundColor: string;
134
158
  /**
135
159
  * @type {string}
136
160
  * @token Brand-2
@@ -167,6 +191,36 @@ export interface InputTokens {
167
191
  * @description 输入框错误状态的边框颜色
168
192
  */
169
193
  inputErrorBorderColor: string;
194
+ /**
195
+ * @type {string}
196
+ * @token Neutral-fill-1
197
+ * @description 输入框错误状态的背景颜色
198
+ */
199
+ inputErrorBackgroundColor: string;
200
+ /**
201
+ * @type {string}
202
+ * @token Danger-6
203
+ * @description 输入框错误状态的鼠标移入时的边框颜色
204
+ */
205
+ inputErrorHoverBorderColor: string;
206
+ /**
207
+ * @type {string}
208
+ * @token Neutral-fill-1
209
+ * @description 输入框错误状态的鼠标移入时的背景颜色
210
+ */
211
+ inputErrorHoverBackgroundColor: string;
212
+ /**
213
+ * @type {string}
214
+ * @token Danger-6
215
+ * @description 输入框错误状态的鼠标聚焦时的边框颜色
216
+ */
217
+ inputErrorFocusBorderColor: string;
218
+ /**
219
+ * @type {string}
220
+ * @token Neutral-fill-1
221
+ * @description 输入框错误状态的鼠标聚焦时的背景颜色
222
+ */
223
+ inputErrorFocusBackgroundColor: string;
170
224
  /**
171
225
  * @type {string}
172
226
  * @token Danger-1
@@ -227,6 +281,12 @@ export interface InputTokens {
227
281
  * @description 输入框内嵌字体字号
228
282
  */
229
283
  inputInnerFontSize: string;
284
+ /**
285
+ * @type {string}
286
+ * @token Neutral-text-4
287
+ * @description 输入框内嵌字体颜色
288
+ */
289
+ inputInnerFontColor: string;
230
290
  /**
231
291
  * @type {string}
232
292
  * @token Spacing-8
@@ -265,9 +325,21 @@ export interface InputTokens {
265
325
  inputInnerLargeFontSize: string;
266
326
  /**
267
327
  * @type {string}
268
- * @token Neutral-text-4
269
- * @description 输入框内嵌字体颜色
328
+ * @token Font-12
329
+ * @description 输入框内嵌undefined字体字号
270
330
  */
271
- inputInnerFontColor: string;
331
+ inputInnerTopFontSize: string;
332
+ /**
333
+ * @type {string}
334
+ * @token Font-12
335
+ * @description 输入框内嵌undefined小尺寸字体字号
336
+ */
337
+ inputInnerTopSmallFontSize: string;
338
+ /**
339
+ * @type {string}
340
+ * @token Font-12
341
+ * @description 输入框内嵌undefined大尺寸字体字号
342
+ */
343
+ inputInnerTopLargeFontSize: string;
272
344
  }
273
345
  //# sourceMappingURL=type.d.ts.map