@sheinx/theme 3.0.0-alpha.8 → 3.0.0-rc.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.
- package/cjs/alert/token.js +4 -1
- package/cjs/alert/type.d.ts +4 -4
- package/cjs/breadcrumb/token.js +6 -1
- package/cjs/breadcrumb/type.d.ts +16 -16
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/button/button.js +40 -25
- package/cjs/button/rule.js +1 -1
- package/cjs/button/token.js +248 -26
- package/cjs/button/type.d.ts +116 -26
- package/cjs/button/type.d.ts.map +1 -1
- package/cjs/card/token.js +6 -1
- package/cjs/card/type.d.ts +13 -13
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +6 -0
- package/cjs/cascader/token.js +27 -4
- package/cjs/cascader/type.d.ts +48 -12
- package/cjs/cascader/type.d.ts.map +1 -1
- package/cjs/checkbox/token.js +5 -1
- package/cjs/checkbox/type.d.ts +13 -13
- package/cjs/collapse/token.js +9 -1
- package/cjs/collapse/type.d.ts +25 -25
- package/cjs/common/common.d.ts.map +1 -1
- package/cjs/common/common.js +2 -1
- package/cjs/common/type.d.ts +7 -0
- package/cjs/common/type.d.ts.map +1 -1
- package/cjs/config.d.ts +19 -4
- package/cjs/config.d.ts.map +1 -1
- package/cjs/config.js +50 -10
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +1 -0
- package/cjs/date-picker/token.js +1 -0
- package/cjs/date-picker/type.d.ts +6 -0
- package/cjs/date-picker/type.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.js +5 -7
- package/cjs/descriptions/rule.js +3 -3
- package/cjs/descriptions/token.js +33 -24
- package/cjs/descriptions/type.d.ts +41 -53
- package/cjs/descriptions/type.d.ts.map +1 -1
- package/cjs/dropdown/dropdown.d.ts.map +1 -1
- package/cjs/dropdown/dropdown.js +6 -3
- package/cjs/dropdown/rule.js +1 -1
- package/cjs/dropdown/token.js +19 -2
- package/cjs/dropdown/type.d.ts +70 -52
- package/cjs/dropdown/type.d.ts.map +1 -1
- package/cjs/form/token.js +8 -2
- package/cjs/form/type.d.ts +11 -11
- package/cjs/icon/icon.d.ts +2 -2
- package/cjs/icon/icon.d.ts.map +1 -1
- package/cjs/icon/icon.js +2 -2
- package/cjs/icon/token.js +3 -1
- package/cjs/icon/type.d.ts +1 -1
- package/cjs/image/token.js +2 -1
- package/cjs/image/type.d.ts +1 -1
- package/cjs/index.d.ts +3 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +14 -0
- package/cjs/input/token.js +5 -1
- package/cjs/input/type.d.ts +12 -12
- package/cjs/list/token.js +4 -1
- package/cjs/list/type.d.ts +12 -12
- package/cjs/menu/token.js +8 -1
- package/cjs/menu/type.d.ts +29 -29
- package/cjs/message/token.js +3 -1
- package/cjs/message/type.d.ts +5 -5
- package/cjs/modal/modal.d.ts.map +1 -1
- package/cjs/modal/modal.js +2 -1
- package/cjs/modal/token.js +17 -2
- package/cjs/modal/type.d.ts +34 -28
- package/cjs/modal/type.d.ts.map +1 -1
- package/cjs/popover/token.js +2 -1
- package/cjs/popover/type.d.ts +1 -1
- package/cjs/progress/token.js +6 -1
- package/cjs/progress/type.d.ts +18 -18
- package/cjs/radio/token.js +8 -1
- package/cjs/radio/type.d.ts +14 -14
- package/cjs/rate/rate.js +1 -1
- package/cjs/rate/token.js +4 -2
- package/cjs/rate/type.d.ts +7 -7
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +2 -0
- package/cjs/select/token.js +10 -2
- package/cjs/select/type.d.ts +23 -11
- package/cjs/select/type.d.ts.map +1 -1
- package/cjs/slider/slider.js +1 -1
- package/cjs/slider/token.js +8 -2
- package/cjs/slider/type.d.ts +25 -25
- package/cjs/slider/type.d.ts.map +1 -1
- package/cjs/spin/token.js +2 -1
- package/cjs/spin/type.d.ts +1 -1
- package/cjs/steps/token.js +2 -1
- package/cjs/steps/type.d.ts +1 -1
- package/cjs/sticky/token.js +1 -1
- package/cjs/sticky/type.d.ts +1 -1
- package/cjs/switch/token.js +6 -1
- package/cjs/switch/type.d.ts +32 -32
- package/cjs/table/token.js +13 -1
- package/cjs/table/type.d.ts +28 -28
- package/cjs/tabs/token.js +6 -1
- package/cjs/tabs/type.d.ts +7 -7
- package/cjs/tag/tag.js +1 -1
- package/cjs/tag/token.js +5 -3
- package/cjs/tag/type.d.ts +169 -169
- package/cjs/textarea/token.js +6 -1
- package/cjs/textarea/type.d.ts +29 -29
- package/cjs/token/figma.js +497 -15
- package/cjs/token/token.d.ts.map +1 -1
- package/cjs/token/token.js +97 -3
- package/cjs/token/type.d.ts +670 -12
- package/cjs/token/type.d.ts.map +1 -1
- package/cjs/tooltip/token.js +4 -2
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/tooltip/type.d.ts +5 -5
- package/cjs/transfer/token.js +3 -1
- package/cjs/transfer/type.d.ts +2 -2
- package/cjs/tree/token.js +5 -1
- package/cjs/tree/type.d.ts +13 -13
- package/cjs/tree-select/token.js +5 -2
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +1 -0
- package/cjs/tree-select/type.d.ts +9 -3
- package/cjs/tree-select/type.d.ts.map +1 -1
- package/cjs/utils/css-var.d.ts +1 -0
- package/cjs/utils/css-var.d.ts.map +1 -1
- package/cjs/utils/css-var.js +5 -2
- package/cjs/utils/notification.d.ts +16 -0
- package/cjs/utils/notification.d.ts.map +1 -0
- package/cjs/utils/notification.js +52 -0
- package/cjs/utils/token-setter.d.ts +57 -0
- package/cjs/utils/token-setter.d.ts.map +1 -0
- package/cjs/utils/token-setter.js +74 -0
- package/esm/alert/token.js +4 -1
- package/esm/alert/type.d.ts +4 -4
- package/esm/breadcrumb/token.js +6 -1
- package/esm/breadcrumb/type.d.ts +16 -16
- package/esm/button/button.d.ts.map +1 -1
- package/esm/button/button.js +40 -25
- package/esm/button/rule.js +1 -1
- package/esm/button/token.js +248 -26
- package/esm/button/type.d.ts +116 -26
- package/esm/button/type.d.ts.map +1 -1
- package/esm/card/token.js +6 -1
- package/esm/card/type.d.ts +13 -13
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +6 -0
- package/esm/cascader/token.js +27 -4
- package/esm/cascader/type.d.ts +48 -12
- package/esm/cascader/type.d.ts.map +1 -1
- package/esm/checkbox/token.js +5 -1
- package/esm/checkbox/type.d.ts +13 -13
- package/esm/collapse/token.js +9 -1
- package/esm/collapse/type.d.ts +25 -25
- package/esm/common/common.d.ts.map +1 -1
- package/esm/common/common.js +2 -1
- package/esm/common/type.d.ts +7 -0
- package/esm/common/type.d.ts.map +1 -1
- package/esm/config.d.ts +19 -4
- package/esm/config.d.ts.map +1 -1
- package/esm/config.js +50 -10
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +1 -0
- package/esm/date-picker/token.js +1 -0
- package/esm/date-picker/type.d.ts +6 -0
- package/esm/date-picker/type.d.ts.map +1 -1
- package/esm/descriptions/descriptions.d.ts.map +1 -1
- package/esm/descriptions/descriptions.js +5 -7
- package/esm/descriptions/rule.js +3 -3
- package/esm/descriptions/token.js +33 -24
- package/esm/descriptions/type.d.ts +41 -53
- package/esm/descriptions/type.d.ts.map +1 -1
- package/esm/dropdown/dropdown.d.ts.map +1 -1
- package/esm/dropdown/dropdown.js +6 -3
- package/esm/dropdown/rule.js +1 -1
- package/esm/dropdown/token.js +19 -2
- package/esm/dropdown/type.d.ts +70 -52
- package/esm/dropdown/type.d.ts.map +1 -1
- package/esm/form/token.js +8 -2
- package/esm/form/type.d.ts +11 -11
- package/esm/icon/icon.d.ts +2 -2
- package/esm/icon/icon.d.ts.map +1 -1
- package/esm/icon/icon.js +2 -2
- package/esm/icon/token.js +3 -1
- package/esm/icon/type.d.ts +1 -1
- package/esm/image/token.js +2 -1
- package/esm/image/type.d.ts +1 -1
- package/esm/index.d.ts +3 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +14 -0
- package/esm/input/token.js +5 -1
- package/esm/input/type.d.ts +12 -12
- package/esm/list/token.js +4 -1
- package/esm/list/type.d.ts +12 -12
- package/esm/menu/token.js +8 -1
- package/esm/menu/type.d.ts +29 -29
- package/esm/message/token.js +3 -1
- package/esm/message/type.d.ts +5 -5
- package/esm/modal/modal.d.ts.map +1 -1
- package/esm/modal/modal.js +2 -1
- package/esm/modal/token.js +17 -2
- package/esm/modal/type.d.ts +34 -28
- package/esm/modal/type.d.ts.map +1 -1
- package/esm/popover/token.js +2 -1
- package/esm/popover/type.d.ts +1 -1
- package/esm/progress/token.js +6 -1
- package/esm/progress/type.d.ts +18 -18
- package/esm/radio/token.js +8 -1
- package/esm/radio/type.d.ts +14 -14
- package/esm/rate/rate.js +1 -1
- package/esm/rate/token.js +4 -2
- package/esm/rate/type.d.ts +7 -7
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +2 -0
- package/esm/select/token.js +10 -2
- package/esm/select/type.d.ts +23 -11
- package/esm/select/type.d.ts.map +1 -1
- package/esm/slider/slider.js +1 -1
- package/esm/slider/token.js +8 -2
- package/esm/slider/type.d.ts +25 -25
- package/esm/slider/type.d.ts.map +1 -1
- package/esm/spin/token.js +2 -1
- package/esm/spin/type.d.ts +1 -1
- package/esm/steps/token.js +2 -1
- package/esm/steps/type.d.ts +1 -1
- package/esm/sticky/token.js +1 -1
- package/esm/sticky/type.d.ts +1 -1
- package/esm/switch/token.js +6 -1
- package/esm/switch/type.d.ts +32 -32
- package/esm/table/token.js +13 -1
- package/esm/table/type.d.ts +28 -28
- package/esm/tabs/token.js +6 -1
- package/esm/tabs/type.d.ts +7 -7
- package/esm/tag/tag.js +1 -1
- package/esm/tag/token.js +5 -3
- package/esm/tag/type.d.ts +169 -169
- package/esm/textarea/token.js +6 -1
- package/esm/textarea/type.d.ts +29 -29
- package/esm/token/figma.js +497 -15
- package/esm/token/token.d.ts.map +1 -1
- package/esm/token/token.js +97 -3
- package/esm/token/type.d.ts +670 -12
- package/esm/token/type.d.ts.map +1 -1
- package/esm/tooltip/token.js +4 -2
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/tooltip/type.d.ts +5 -5
- package/esm/transfer/token.js +3 -1
- package/esm/transfer/type.d.ts +2 -2
- package/esm/tree/token.js +5 -1
- package/esm/tree/type.d.ts +13 -13
- package/esm/tree-select/token.js +5 -2
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +1 -0
- package/esm/tree-select/type.d.ts +9 -3
- package/esm/tree-select/type.d.ts.map +1 -1
- package/esm/utils/css-var.d.ts +1 -0
- package/esm/utils/css-var.d.ts.map +1 -1
- package/esm/utils/css-var.js +5 -2
- package/esm/utils/notification.d.ts +16 -0
- package/esm/utils/notification.d.ts.map +1 -0
- package/esm/utils/notification.js +52 -0
- package/esm/utils/token-setter.d.ts +57 -0
- package/esm/utils/token-setter.d.ts.map +1 -0
- package/esm/utils/token-setter.js +74 -0
- package/package.json +5 -2
package/esm/textarea/token.js
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
* 用于生成文本。
|
|
9
9
|
* 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
|
|
10
10
|
*/
|
|
11
|
-
var textareaTokenDescription = {
|
|
11
|
+
var textareaTokenDescription = {
|
|
12
|
+
textarea: '多行文本框',
|
|
13
|
+
placeholder: '占位符',
|
|
14
|
+
shadow: '阴影',
|
|
15
|
+
info: '基础'
|
|
16
|
+
};
|
|
12
17
|
|
|
13
18
|
/**
|
|
14
19
|
* token 值映射表
|
package/esm/textarea/type.d.ts
CHANGED
|
@@ -2,175 +2,175 @@ export interface TextareaTokens {
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {string}
|
|
4
4
|
* @token 14/regular
|
|
5
|
-
* @description
|
|
5
|
+
* @description 多行文本框字体字号
|
|
6
6
|
*/
|
|
7
7
|
textareaFontSize: string;
|
|
8
8
|
/**
|
|
9
9
|
* @type {string}
|
|
10
10
|
* @token Radius-4
|
|
11
|
-
* @description
|
|
11
|
+
* @description 多行文本框边框圆角
|
|
12
12
|
*/
|
|
13
13
|
textareaBorderRadius: string;
|
|
14
14
|
/**
|
|
15
15
|
* @type {string}
|
|
16
16
|
* @token Padding-8
|
|
17
|
-
* @description
|
|
17
|
+
* @description 多行文本框内边距(水平方向)
|
|
18
18
|
*/
|
|
19
19
|
textareaPaddingX: string;
|
|
20
20
|
/**
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @token Padding-4
|
|
23
|
-
* @description
|
|
23
|
+
* @description 多行文本框内边距(垂直方向)
|
|
24
24
|
*/
|
|
25
25
|
textareaPaddingY: string;
|
|
26
26
|
/**
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @token 12/regular
|
|
29
|
-
* @description
|
|
29
|
+
* @description 多行文本框小尺寸字体字号
|
|
30
30
|
*/
|
|
31
31
|
textareaSmallFontSize: string;
|
|
32
32
|
/**
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @token Padding-8
|
|
35
|
-
* @description
|
|
35
|
+
* @description 多行文本框小尺寸内边距(水平方向)
|
|
36
36
|
*/
|
|
37
37
|
textareaSmallPaddingX: string;
|
|
38
38
|
/**
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @token Padding-1
|
|
41
|
-
* @description
|
|
41
|
+
* @description 多行文本框小尺寸内边距(垂直方向)
|
|
42
42
|
*/
|
|
43
43
|
textareaSmallPaddingY: string;
|
|
44
44
|
/**
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @token 16/regular
|
|
47
|
-
* @description
|
|
47
|
+
* @description 多行文本框大尺寸字体字号
|
|
48
48
|
*/
|
|
49
49
|
textareaLargeFontSize: string;
|
|
50
50
|
/**
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @token Padding-12
|
|
53
|
-
* @description
|
|
53
|
+
* @description 多行文本框大尺寸内边距(水平方向)
|
|
54
54
|
*/
|
|
55
55
|
textareaLargePaddingX: string;
|
|
56
56
|
/**
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @token Padding-7
|
|
59
|
-
* @description
|
|
59
|
+
* @description 多行文本框大尺寸内边距(垂直方向)
|
|
60
60
|
*/
|
|
61
61
|
textareaLargePaddingY: string;
|
|
62
62
|
/**
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @token Neutral-text-5
|
|
65
|
-
* @description
|
|
65
|
+
* @description 多行文本框字体颜色
|
|
66
66
|
*/
|
|
67
67
|
textareaFontColor: string;
|
|
68
68
|
/**
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @token Neutral-text-2
|
|
71
|
-
* @description
|
|
71
|
+
* @description 多行文本框占位符颜色
|
|
72
72
|
*/
|
|
73
73
|
textareaPlaceholderColor: string;
|
|
74
74
|
/**
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @token Neutral-border-2
|
|
77
|
-
* @description
|
|
77
|
+
* @description 多行文本框边框颜色
|
|
78
78
|
*/
|
|
79
79
|
textareaBorderColor: string;
|
|
80
80
|
/**
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @token Neutral-fill-1
|
|
83
|
-
* @description
|
|
83
|
+
* @description 多行文本框背景颜色
|
|
84
84
|
*/
|
|
85
85
|
textareaBackgroundColor: string;
|
|
86
86
|
/**
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @token Brand-6
|
|
89
|
-
* @description
|
|
89
|
+
* @description 多行文本框鼠标移入时的边框颜色
|
|
90
90
|
*/
|
|
91
91
|
textareaHoverBorderColor: string;
|
|
92
92
|
/**
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @token Brand-7
|
|
95
|
-
* @description
|
|
95
|
+
* @description 多行文本框鼠标聚焦时的边框颜色
|
|
96
96
|
*/
|
|
97
97
|
textareaFocusBorderColor: string;
|
|
98
98
|
/**
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @token Brand-2
|
|
101
|
-
* @description
|
|
101
|
+
* @description 多行文本框鼠标聚焦时的阴影
|
|
102
102
|
*/
|
|
103
103
|
textareaFocusShadow: string;
|
|
104
104
|
/**
|
|
105
105
|
* @type {string}
|
|
106
106
|
* @token Neutral-text-2
|
|
107
|
-
* @description
|
|
107
|
+
* @description 多行文本框禁用时的字体颜色
|
|
108
108
|
*/
|
|
109
109
|
textareaDisabledFontColor: string;
|
|
110
110
|
/**
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @token Neutral-text-2
|
|
113
|
-
* @description
|
|
113
|
+
* @description 多行文本框禁用时的占位符颜色
|
|
114
114
|
*/
|
|
115
115
|
textareaDisabledPlaceholderColor: string;
|
|
116
116
|
/**
|
|
117
117
|
* @type {string}
|
|
118
118
|
* @token Neutral-border-1
|
|
119
|
-
* @description
|
|
119
|
+
* @description 多行文本框禁用时的边框颜色
|
|
120
120
|
*/
|
|
121
121
|
textareaDisabledBorderColor: string;
|
|
122
122
|
/**
|
|
123
123
|
* @type {string}
|
|
124
124
|
* @token Neutral-fill-2
|
|
125
|
-
* @description
|
|
125
|
+
* @description 多行文本框禁用时的背景颜色
|
|
126
126
|
*/
|
|
127
127
|
textareaDisabledBackgroundColor: string;
|
|
128
128
|
/**
|
|
129
129
|
* @type {string}
|
|
130
130
|
* @token Danger-6
|
|
131
|
-
* @description
|
|
131
|
+
* @description 多行文本框错误状态的边框颜色
|
|
132
132
|
*/
|
|
133
133
|
textareaErrorBorderColor: string;
|
|
134
134
|
/**
|
|
135
135
|
* @type {string}
|
|
136
136
|
* @token Danger-1
|
|
137
|
-
* @description
|
|
137
|
+
* @description 多行文本框错误状态的鼠标聚焦时的阴影
|
|
138
138
|
*/
|
|
139
139
|
textareaErrorFocusShadow: string;
|
|
140
140
|
/**
|
|
141
141
|
* @type {string}
|
|
142
142
|
* @token Brand-6
|
|
143
|
-
* @description
|
|
143
|
+
* @description 多行文本框基础字体颜色
|
|
144
144
|
*/
|
|
145
145
|
textareaInfoFontColor: string;
|
|
146
146
|
/**
|
|
147
147
|
* @type {string}
|
|
148
148
|
* @token Neutral-fill-1
|
|
149
|
-
* @description
|
|
149
|
+
* @description 多行文本框基础背景颜色
|
|
150
150
|
*/
|
|
151
151
|
textareaInfoBackgroundColor: string;
|
|
152
152
|
/**
|
|
153
153
|
* @type {string}
|
|
154
154
|
* @token Neutral-border-2
|
|
155
|
-
* @description
|
|
155
|
+
* @description 多行文本框基础边框颜色
|
|
156
156
|
*/
|
|
157
157
|
textareaInfoBorderColor: string;
|
|
158
158
|
/**
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @token Danger-6
|
|
161
|
-
* @description
|
|
161
|
+
* @description 多行文本框基础错误状态的字体颜色
|
|
162
162
|
*/
|
|
163
163
|
textareaInfoErrorFontColor: string;
|
|
164
164
|
/**
|
|
165
165
|
* @type {string}
|
|
166
166
|
* @token Danger-1
|
|
167
|
-
* @description
|
|
167
|
+
* @description 多行文本框基础错误状态的背景颜色
|
|
168
168
|
*/
|
|
169
169
|
textareaInfoErrorBackgroundColor: string;
|
|
170
170
|
/**
|
|
171
171
|
* @type {string}
|
|
172
172
|
* @token Danger-6
|
|
173
|
-
* @description
|
|
173
|
+
* @description 多行文本框基础错误状态的边框颜色
|
|
174
174
|
*/
|
|
175
175
|
textareaInfoErrorBorderColor: string;
|
|
176
176
|
}
|