@sheinx/theme 3.0.0-alpha.28 → 3.0.0-alpha.29
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/token.js +2 -1
- package/cjs/button/type.d.ts +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 +1 -0
- package/cjs/cascader/token.js +9 -3
- package/cjs/cascader/type.d.ts +21 -15
- 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/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/token.js +13 -1
- package/cjs/dropdown/type.d.ts +50 -50
- 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 +1 -0
- package/cjs/select/token.js +7 -2
- package/cjs/select/type.d.ts +17 -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/token.js +4 -2
- package/cjs/tag/type.d.ts +168 -168
- package/cjs/textarea/token.js +6 -1
- package/cjs/textarea/type.d.ts +29 -29
- 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 +4 -1
- 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/token.js +2 -1
- package/esm/button/type.d.ts +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 +1 -0
- package/esm/cascader/token.js +9 -3
- package/esm/cascader/type.d.ts +21 -15
- 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/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/token.js +13 -1
- package/esm/dropdown/type.d.ts +50 -50
- 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 +1 -0
- package/esm/select/token.js +7 -2
- package/esm/select/type.d.ts +17 -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/token.js +4 -2
- package/esm/tag/type.d.ts +168 -168
- package/esm/textarea/token.js +6 -1
- package/esm/textarea/type.d.ts +29 -29
- 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 +4 -1
- 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 +1 -1
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
|
}
|
package/esm/tooltip/token.js
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
|
|
10
10
|
*/
|
|
11
11
|
var tooltipTokenDescription = {
|
|
12
|
-
tooltip: '文字提示'
|
|
12
|
+
tooltip: '文字提示',
|
|
13
|
+
shadow: '阴影',
|
|
14
|
+
light: '亮色模式'
|
|
13
15
|
};
|
|
14
16
|
|
|
15
17
|
/**
|
|
@@ -33,7 +35,7 @@ var tooltipTokenExtraValue = {
|
|
|
33
35
|
radius: 'Radius-2'
|
|
34
36
|
},
|
|
35
37
|
color: 'Neutral-text-1',
|
|
36
|
-
shadow: 'Shadow-
|
|
38
|
+
shadow: 'Shadow-2',
|
|
37
39
|
background: {
|
|
38
40
|
color: 'Neutral-fill-9'
|
|
39
41
|
},
|
package/esm/tooltip/tooltip.js
CHANGED
|
@@ -13,7 +13,7 @@ var tooltipTokens = {
|
|
|
13
13
|
tooltipPaddingY: 'Padding-5',
|
|
14
14
|
tooltipBorderRadius: 'Radius-2',
|
|
15
15
|
tooltipColor: 'Neutral-text-1',
|
|
16
|
-
tooltipShadow: 'Shadow-
|
|
16
|
+
tooltipShadow: 'Shadow-2',
|
|
17
17
|
tooltipBackgroundColor: 'Neutral-fill-9',
|
|
18
18
|
tooltipLightColor: 'Neutral-text-5',
|
|
19
19
|
tooltipLightBackgroundColor: 'Neutral-fill-1',
|
package/esm/tooltip/type.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export interface TooltipTokens {
|
|
|
31
31
|
tooltipColor: string;
|
|
32
32
|
/**
|
|
33
33
|
* @type {string}
|
|
34
|
-
* @token Shadow-
|
|
35
|
-
* @description
|
|
34
|
+
* @token Shadow-2
|
|
35
|
+
* @description 文字提示阴影
|
|
36
36
|
*/
|
|
37
37
|
tooltipShadow: string;
|
|
38
38
|
/**
|
|
@@ -44,19 +44,19 @@ export interface TooltipTokens {
|
|
|
44
44
|
/**
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @token Neutral-text-5
|
|
47
|
-
* @description
|
|
47
|
+
* @description 文字提示亮色模式颜色
|
|
48
48
|
*/
|
|
49
49
|
tooltipLightColor: string;
|
|
50
50
|
/**
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @token Neutral-fill-1
|
|
53
|
-
* @description
|
|
53
|
+
* @description 文字提示亮色模式背景颜色
|
|
54
54
|
*/
|
|
55
55
|
tooltipLightBackgroundColor: string;
|
|
56
56
|
/**
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @token Neutral-border-1
|
|
59
|
-
* @description
|
|
59
|
+
* @description 文字提示亮色模式边框颜色
|
|
60
60
|
*/
|
|
61
61
|
tooltipLightBorderColor: string;
|
|
62
62
|
/**
|
package/esm/transfer/token.js
CHANGED
package/esm/transfer/type.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export interface TransferTokens {
|
|
|
62
62
|
/**
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @token Neutral-text-3
|
|
65
|
-
* @description
|
|
65
|
+
* @description 穿梭框空状态的字体颜色
|
|
66
66
|
*/
|
|
67
67
|
transferEmptyFontColor: string;
|
|
68
68
|
/**
|
|
@@ -98,7 +98,7 @@ export interface TransferTokens {
|
|
|
98
98
|
/**
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @token Neutral-fill-3
|
|
101
|
-
* @description
|
|
101
|
+
* @description 穿梭框复选框鼠标移入时的背景颜色
|
|
102
102
|
*/
|
|
103
103
|
transferCheckboxHoverBackgroundColor: string;
|
|
104
104
|
}
|
package/esm/tree/token.js
CHANGED
package/esm/tree/type.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ export interface TreeTokens {
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {string}
|
|
4
4
|
* @token Padding-2
|
|
5
|
-
* @description
|
|
5
|
+
* @description 树组件文字内边距(垂直方向)
|
|
6
6
|
*/
|
|
7
7
|
treeTextPaddingY: string;
|
|
8
8
|
/**
|
|
9
9
|
* @type {string}
|
|
10
10
|
* @token Margin-8
|
|
11
|
-
* @description
|
|
11
|
+
* @description 树组件复选框外边距(水平方向)
|
|
12
12
|
*/
|
|
13
13
|
treeCheckboxMarginX: string;
|
|
14
14
|
/**
|
|
@@ -68,61 +68,61 @@ export interface TreeTokens {
|
|
|
68
68
|
/**
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @token Neutral-text-4
|
|
71
|
-
* @description
|
|
71
|
+
* @description 树组件节点字体颜色
|
|
72
72
|
*/
|
|
73
73
|
treeItemFontColor: string;
|
|
74
74
|
/**
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @token Neutral-fill-2
|
|
77
|
-
* @description
|
|
77
|
+
* @description 树组件节点鼠标移入时的背景颜色
|
|
78
78
|
*/
|
|
79
79
|
treeItemHoverBackgroundColor: string;
|
|
80
80
|
/**
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @token Neutral-text-4
|
|
83
|
-
* @description
|
|
83
|
+
* @description 树组件节点鼠标移入时的字体颜色
|
|
84
84
|
*/
|
|
85
85
|
treeItemHoverFontColor: string;
|
|
86
86
|
/**
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @token Neutral-fill-4
|
|
89
|
-
* @description
|
|
89
|
+
* @description 树组件节点鼠标点击时的背景颜色
|
|
90
90
|
*/
|
|
91
91
|
treeItemActiveBackgroundColor: string;
|
|
92
92
|
/**
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @token Neutral-text-4
|
|
95
|
-
* @description
|
|
95
|
+
* @description 树组件节点鼠标点击时的字体颜色
|
|
96
96
|
*/
|
|
97
97
|
treeItemActiveFontColor: string;
|
|
98
98
|
/**
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @token Neutral-text-2
|
|
101
|
-
* @description
|
|
101
|
+
* @description 树组件节点禁用时的字体颜色
|
|
102
102
|
*/
|
|
103
103
|
treeItemDisabledFontColor: string;
|
|
104
104
|
/**
|
|
105
105
|
* @type {string}
|
|
106
106
|
* @token Neutral-fill-2
|
|
107
|
-
* @description
|
|
107
|
+
* @description 树组件节点容器鼠标移入时的背景颜色
|
|
108
108
|
*/
|
|
109
109
|
treeContentHoverBackgroundColor: string;
|
|
110
110
|
/**
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @token Brand-1
|
|
113
|
-
* @description
|
|
113
|
+
* @description 树组件节点容器鼠标点击时的背景颜色
|
|
114
114
|
*/
|
|
115
115
|
treeContentActiveBackgroundColor: string;
|
|
116
116
|
/**
|
|
117
117
|
* @type {string}
|
|
118
118
|
* @token Brand-6
|
|
119
|
-
* @description
|
|
119
|
+
* @description 树组件节点容器鼠标点击时的字体颜色
|
|
120
120
|
*/
|
|
121
121
|
treeContentActiveFontColor: string;
|
|
122
122
|
/**
|
|
123
123
|
* @type {string}
|
|
124
124
|
* @token Neutral-text-2
|
|
125
|
-
* @description
|
|
125
|
+
* @description 树组件节点容器禁用时的字体颜色
|
|
126
126
|
*/
|
|
127
127
|
treeContentDisabledFontColor: string;
|
|
128
128
|
/**
|
|
@@ -140,7 +140,7 @@ export interface TreeTokens {
|
|
|
140
140
|
/**
|
|
141
141
|
* @type {string}
|
|
142
142
|
* @token Radius-2
|
|
143
|
-
* @description
|
|
143
|
+
* @description 树组件节点容器边框圆角
|
|
144
144
|
*/
|
|
145
145
|
treeContentBorderRadius: string;
|
|
146
146
|
}
|
package/esm/tree-select/token.js
CHANGED
|
@@ -21,7 +21,9 @@ var treeSelectTokenDescription = {
|
|
|
21
21
|
column: '多列模式下的',
|
|
22
22
|
title: '标题',
|
|
23
23
|
group: '分组模式下的',
|
|
24
|
-
more: '合并弹层的'
|
|
24
|
+
more: '合并弹层的',
|
|
25
|
+
right: '(右侧)',
|
|
26
|
+
header: '下拉列表的头部区域'
|
|
25
27
|
};
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -182,7 +184,8 @@ var treeSelectTokenExtraValue = {
|
|
|
182
184
|
color: 'Neutral-fill-1'
|
|
183
185
|
},
|
|
184
186
|
shadow: 'Shadow-2',
|
|
185
|
-
radius: 'Radius-4'
|
|
187
|
+
radius: 'Radius-4',
|
|
188
|
+
border: 'Neutral-border-1'
|
|
186
189
|
},
|
|
187
190
|
option: {
|
|
188
191
|
height: 'Size-16',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["tree-select.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,QAAA,MAAM,gBAAgB,EAAE,gBAsEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -54,6 +54,7 @@ var treeSelectTokens = {
|
|
|
54
54
|
treeSelectPanelBackgroundColor: 'Neutral-fill-1',
|
|
55
55
|
treeSelectPanelShadow: 'Shadow-2',
|
|
56
56
|
treeSelectPanelRadius: 'Radius-4',
|
|
57
|
+
treeSelectPanelBorder: 'Neutral-border-1',
|
|
57
58
|
treeSelectOptionHeight: 'Size-16',
|
|
58
59
|
treeSelectOptionPaddingX: 'Padding-4',
|
|
59
60
|
treeSelectOptionPaddingY: 'Padding-1',
|
|
@@ -275,6 +275,12 @@ export interface TreeSelectTokens {
|
|
|
275
275
|
* @description 树选择器下拉面板的圆角
|
|
276
276
|
*/
|
|
277
277
|
treeSelectPanelRadius: string;
|
|
278
|
+
/**
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @token Neutral-border-1
|
|
281
|
+
* @description 树选择器下拉面板的边框
|
|
282
|
+
*/
|
|
283
|
+
treeSelectPanelBorder: string;
|
|
278
284
|
/**
|
|
279
285
|
* @type {string}
|
|
280
286
|
* @token Size-16
|
|
@@ -320,7 +326,7 @@ export interface TreeSelectTokens {
|
|
|
320
326
|
/**
|
|
321
327
|
* @type {string}
|
|
322
328
|
* @token Size-15
|
|
323
|
-
* @description
|
|
329
|
+
* @description 树选择器选项容器的内边距(右侧)
|
|
324
330
|
*/
|
|
325
331
|
treeSelectOptionInnerPaddingRight: string;
|
|
326
332
|
/**
|
|
@@ -362,13 +368,13 @@ export interface TreeSelectTokens {
|
|
|
362
368
|
/**
|
|
363
369
|
* @type {string}
|
|
364
370
|
* @token Padding-8
|
|
365
|
-
* @description
|
|
371
|
+
* @description 树选择器下拉列表的头部区域内边距
|
|
366
372
|
*/
|
|
367
373
|
treeSelectHeaderPadding: string;
|
|
368
374
|
/**
|
|
369
375
|
* @type {string}
|
|
370
376
|
* @token Neutral-border-1
|
|
371
|
-
* @description
|
|
377
|
+
* @description 树选择器下拉列表的头部区域边框颜色
|
|
372
378
|
*/
|
|
373
379
|
treeSelectHeaderBorderColor: string;
|
|
374
380
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["type.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,kCAAkC,EAAE,MAAM,CAAC;IAC3C;;;;OAIG;IACH,kCAAkC,EAAE,MAAM,CAAC;IAC3C;;;;OAI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IAC/B;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,qCAAqC,EAAE,MAAM,CAAC;IAC9C;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,oCAAoC,EAAE,MAAM,CAAC;IAC7C;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,uCAAuC,EAAE,MAAM,CAAC;IAChD;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;CACtC"}
|
package/esm/utils/css-var.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-var.d.ts","sourceRoot":"","sources":["css-var.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css-var.d.ts","sourceRoot":"","sources":["css-var.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,UAQjD;AAMD,eAAO,MAAM,MAAM,QAAS,MAAM,SAAS,MAAM,OAAO,MAAM,SAAS,MAAM,WAoB5E,CAAC"}
|
package/esm/utils/css-var.js
CHANGED
|
@@ -4,11 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.cssvar = void 0;
|
|
7
|
+
exports.replaceNonAlphanumeric = replaceNonAlphanumeric;
|
|
7
8
|
require("core-js/modules/es.regexp.exec.js");
|
|
8
9
|
require("core-js/modules/es.string.replace.js");
|
|
9
10
|
require("core-js/modules/es.array.index-of.js");
|
|
10
11
|
require("core-js/modules/es.array.concat.js");
|
|
11
|
-
var
|
|
12
|
+
var _config = require("../config");
|
|
12
13
|
function replaceNonAlphanumeric(str) {
|
|
13
14
|
var nonAlphanumericRegEx = /[^a-z0-9]+/gi; // 匹配所有非字母和非数字字符
|
|
14
15
|
var replacement = '-'; // 替换字符
|
|
@@ -21,6 +22,8 @@ function camelCaseToDash(str) {
|
|
|
21
22
|
return str.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
22
23
|
}
|
|
23
24
|
var cssvar = function cssvar(str, value, key, size) {
|
|
25
|
+
var _getConfig = (0, _config.getConfig)(),
|
|
26
|
+
prefix = _getConfig.prefix;
|
|
24
27
|
if (str.indexOf('Size-') > -1) {
|
|
25
28
|
// 正则提取出Size-后面的数字
|
|
26
29
|
var sizeReg = /Size-(\d+)/;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface Listener {
|
|
2
|
+
(...args: any[]): void;
|
|
3
|
+
fn?: Listener;
|
|
4
|
+
}
|
|
5
|
+
interface Events {
|
|
6
|
+
[event: string]: Listener[];
|
|
7
|
+
}
|
|
8
|
+
export default class Notification {
|
|
9
|
+
$events: Events;
|
|
10
|
+
constructor();
|
|
11
|
+
dispatch(name: keyof Events, ...args: any[]): void;
|
|
12
|
+
subscribe(name: keyof Events, fn: Listener): void;
|
|
13
|
+
unsubscribe(name: keyof Events, fn: Listener): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["notification.ts"],"names":[],"mappings":"AAAA,UAAU,QAAQ;IAChB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACvB,EAAE,CAAC,EAAE,QAAQ,CAAC;CACf;AACD,UAAU,MAAM;IACd,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,OAAO,EAAE,MAAM,CAAC;;IAMhB,QAAQ,CAAC,IAAI,EAAE,MAAM,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAM3C,SAAS,CAAC,IAAI,EAAE,MAAM,MAAM,EAAE,EAAE,EAAE,QAAQ;IAO1C,WAAW,CAAC,IAAI,EAAE,MAAM,MAAM,EAAE,EAAE,EAAE,QAAQ;CAM7C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
9
|
+
require("core-js/modules/es.array.includes.js");
|
|
10
|
+
require("core-js/modules/es.string.includes.js");
|
|
11
|
+
require("core-js/modules/es.array.filter.js");
|
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
+
var Notification = /*#__PURE__*/function () {
|
|
16
|
+
function Notification() {
|
|
17
|
+
(0, _classCallCheck2.default)(this, Notification);
|
|
18
|
+
(0, _defineProperty2.default)(this, "$events", void 0);
|
|
19
|
+
this.$events = {};
|
|
20
|
+
}
|
|
21
|
+
(0, _createClass2.default)(Notification, [{
|
|
22
|
+
key: "dispatch",
|
|
23
|
+
value: function dispatch(name) {
|
|
24
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
25
|
+
args[_key - 1] = arguments[_key];
|
|
26
|
+
}
|
|
27
|
+
var event = this.$events[name];
|
|
28
|
+
if (!event) return;
|
|
29
|
+
event.forEach(function (fn) {
|
|
30
|
+
return fn.apply(void 0, args);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
key: "subscribe",
|
|
35
|
+
value: function subscribe(name, fn) {
|
|
36
|
+
if (!this.$events[name]) this.$events[name] = [];
|
|
37
|
+
var events = this.$events[name];
|
|
38
|
+
if (events.includes(fn)) return;
|
|
39
|
+
events.push(fn);
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "unsubscribe",
|
|
43
|
+
value: function unsubscribe(name, fn) {
|
|
44
|
+
if (!this.$events[name]) return;
|
|
45
|
+
if (fn) this.$events[name] = this.$events[name].filter(function (e) {
|
|
46
|
+
return e !== fn;
|
|
47
|
+
});else delete this.$events[name];
|
|
48
|
+
}
|
|
49
|
+
}]);
|
|
50
|
+
return Notification;
|
|
51
|
+
}();
|
|
52
|
+
exports.default = Notification;
|