@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/cjs/alert/token.js
CHANGED
package/cjs/alert/type.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export interface AlertTokens {
|
|
|
104
104
|
/**
|
|
105
105
|
* @type {string}
|
|
106
106
|
* @token Margin-8
|
|
107
|
-
* @description
|
|
107
|
+
* @description 提示框相邻之间的外边距
|
|
108
108
|
*/
|
|
109
109
|
alertNearlyMargin: string;
|
|
110
110
|
/**
|
|
@@ -116,19 +116,19 @@ export interface AlertTokens {
|
|
|
116
116
|
/**
|
|
117
117
|
* @type {string}
|
|
118
118
|
* @token Neutral-text-4
|
|
119
|
-
* @description
|
|
119
|
+
* @description 提示框关闭icon字体颜色
|
|
120
120
|
*/
|
|
121
121
|
alertCloseFontColor: string;
|
|
122
122
|
/**
|
|
123
123
|
* @type {string}
|
|
124
124
|
* @token Neutral-text-5
|
|
125
|
-
* @description
|
|
125
|
+
* @description 提示框关闭icon鼠标移入时的颜色
|
|
126
126
|
*/
|
|
127
127
|
alertCloseHoverColor: string;
|
|
128
128
|
/**
|
|
129
129
|
* @type {string}
|
|
130
130
|
* @token Neutral-fill-2
|
|
131
|
-
* @description
|
|
131
|
+
* @description 提示框在全局提示中使用时鼠标移入时的颜色
|
|
132
132
|
*/
|
|
133
133
|
alertMessageHoverColor: string;
|
|
134
134
|
}
|
package/cjs/breadcrumb/token.js
CHANGED
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
* 描述词典变量名称为 组件名称 + TokenDescription。请勿修改变量命名,否则将导致 token 无法生成。
|
|
10
10
|
*/
|
|
11
11
|
var breadcrumbTokenDescription = {
|
|
12
|
-
breadcrumb: '
|
|
12
|
+
breadcrumb: '面包屑',
|
|
13
|
+
list: '下拉列表的',
|
|
14
|
+
shadow: '阴影',
|
|
15
|
+
item: '选项',
|
|
16
|
+
wrapper: '外部容器',
|
|
17
|
+
separator: '分隔符'
|
|
13
18
|
};
|
|
14
19
|
|
|
15
20
|
/**
|
package/cjs/breadcrumb/type.d.ts
CHANGED
|
@@ -2,97 +2,97 @@ export interface BreadcrumbTokens {
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {string}
|
|
4
4
|
* @token 14/regular
|
|
5
|
-
* @description
|
|
5
|
+
* @description 面包屑字体字号
|
|
6
6
|
*/
|
|
7
7
|
breadcrumbFontSize: string;
|
|
8
8
|
/**
|
|
9
9
|
* @type {string}
|
|
10
10
|
* @token Neutral-text-5
|
|
11
|
-
* @description
|
|
11
|
+
* @description 面包屑字体颜色
|
|
12
12
|
*/
|
|
13
13
|
breadcrumbFontColor: string;
|
|
14
14
|
/**
|
|
15
15
|
* @type {string}
|
|
16
16
|
* @token Neutral-text-3
|
|
17
|
-
* @description
|
|
17
|
+
* @description 面包屑链接色颜色
|
|
18
18
|
*/
|
|
19
19
|
breadcrumbLinkColor: string;
|
|
20
20
|
/**
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @token Brand-5
|
|
23
|
-
* @description
|
|
23
|
+
* @description 面包屑链接色鼠标移入时的颜色
|
|
24
24
|
*/
|
|
25
25
|
breadcrumbLinkHoverColor: string;
|
|
26
26
|
/**
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @token Neutral-fill-1
|
|
29
|
-
* @description
|
|
29
|
+
* @description 面包屑下拉列表的背景颜色
|
|
30
30
|
*/
|
|
31
31
|
breadcrumbListBackgroundColor: string;
|
|
32
32
|
/**
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @token Shadow-1
|
|
35
|
-
* @description
|
|
35
|
+
* @description 面包屑下拉列表的阴影
|
|
36
36
|
*/
|
|
37
37
|
breadcrumbListShadow: string;
|
|
38
38
|
/**
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @token #f4f5f8
|
|
41
|
-
* @description
|
|
41
|
+
* @description 面包屑下拉列表的边框颜色
|
|
42
42
|
*/
|
|
43
43
|
breadcrumbListBorderColor: string;
|
|
44
44
|
/**
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @token Padding-4
|
|
47
|
-
* @description
|
|
47
|
+
* @description 面包屑下拉列表的内边距(垂直方向)
|
|
48
48
|
*/
|
|
49
49
|
breadcrumbListPaddingY: string;
|
|
50
50
|
/**
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @token Radius-4
|
|
53
|
-
* @description
|
|
53
|
+
* @description 面包屑下拉列表的选项边框圆角
|
|
54
54
|
*/
|
|
55
55
|
breadcrumbListItemBorderRadius: string;
|
|
56
56
|
/**
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @token Padding-4
|
|
59
|
-
* @description
|
|
59
|
+
* @description 面包屑下拉列表的选项外部容器内边距(水平方向)
|
|
60
60
|
*/
|
|
61
61
|
breadcrumbListItemWrapperPaddingX: string;
|
|
62
62
|
/**
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @token Padding-8
|
|
65
|
-
* @description
|
|
65
|
+
* @description 面包屑下拉列表的选项内边距(水平方向)
|
|
66
66
|
*/
|
|
67
67
|
breadcrumbListItemPaddingX: string;
|
|
68
68
|
/**
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @token Padding-5
|
|
71
|
-
* @description
|
|
71
|
+
* @description 面包屑下拉列表的选项内边距(垂直方向)
|
|
72
72
|
*/
|
|
73
73
|
breadcrumbListItemPaddingY: string;
|
|
74
74
|
/**
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @token Neutral-fill-2
|
|
77
|
-
* @description
|
|
77
|
+
* @description 面包屑下拉列表的选项鼠标移入时的背景颜色
|
|
78
78
|
*/
|
|
79
79
|
breadcrumbListItemHoverBackgroundColor: string;
|
|
80
80
|
/**
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @token Neutral-text-3
|
|
83
|
-
* @description
|
|
83
|
+
* @description 面包屑下拉列表的选项鼠标移入时的字体颜色
|
|
84
84
|
*/
|
|
85
85
|
breadcrumbListItemHoverFontColor: string;
|
|
86
86
|
/**
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @token Padding-8
|
|
89
|
-
* @description
|
|
89
|
+
* @description 面包屑分隔符外边距(水平方向)
|
|
90
90
|
*/
|
|
91
91
|
breadcrumbSeparatorMarginX: string;
|
|
92
92
|
/**
|
|
93
93
|
* @type {string}
|
|
94
94
|
* @token Neutral-text-4
|
|
95
|
-
* @description
|
|
95
|
+
* @description 面包屑图标背景颜色
|
|
96
96
|
*/
|
|
97
97
|
breadcrumbIconBackgroundColor: string;
|
|
98
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,QAAA,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,QAAA,MAAM,YAAY,EAAE,YAwVnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/cjs/button/button.js
CHANGED
|
@@ -26,19 +26,19 @@ var buttonTokens = {
|
|
|
26
26
|
buttonPrimaryFocusBackgroundColor: 'Brand-5',
|
|
27
27
|
buttonPrimaryFocusBorderColor: 'Brand-5',
|
|
28
28
|
buttonPrimaryOutlineFontColor: 'Brand-6',
|
|
29
|
-
buttonPrimaryOutlineBackgroundColor: '
|
|
29
|
+
buttonPrimaryOutlineBackgroundColor: 'transparent',
|
|
30
30
|
buttonPrimaryOutlineBorderColor: 'Brand-6',
|
|
31
31
|
buttonPrimaryOutlineDisabledFontColor: 'Brand-3',
|
|
32
|
-
buttonPrimaryOutlineDisabledBackgroundColor: '
|
|
32
|
+
buttonPrimaryOutlineDisabledBackgroundColor: 'transparent',
|
|
33
33
|
buttonPrimaryOutlineDisabledBorderColor: 'Brand-3',
|
|
34
34
|
buttonPrimaryOutlineHoverFontColor: 'Brand-5',
|
|
35
|
-
buttonPrimaryOutlineHoverBackgroundColor: '
|
|
35
|
+
buttonPrimaryOutlineHoverBackgroundColor: 'transparent',
|
|
36
36
|
buttonPrimaryOutlineHoverBorderColor: 'Brand-5',
|
|
37
37
|
buttonPrimaryOutlineActiveFontColor: 'Brand-7',
|
|
38
|
-
buttonPrimaryOutlineActiveBackgroundColor: '
|
|
38
|
+
buttonPrimaryOutlineActiveBackgroundColor: 'transparent',
|
|
39
39
|
buttonPrimaryOutlineActiveBorderColor: 'Brand-7',
|
|
40
40
|
buttonPrimaryOutlineFocusFontColor: 'Brand-5',
|
|
41
|
-
buttonPrimaryOutlineFocusBackgroundColor: '
|
|
41
|
+
buttonPrimaryOutlineFocusBackgroundColor: 'transparent',
|
|
42
42
|
buttonPrimaryOutlineFocusBorderColor: 'Brand-5',
|
|
43
43
|
buttonPrimaryTextFontColor: 'Brand-6',
|
|
44
44
|
buttonPrimaryTextBackgroundColor: 'Transparent',
|
|
@@ -71,19 +71,19 @@ var buttonTokens = {
|
|
|
71
71
|
buttonSecondaryFocusBackgroundColor: 'Neutral-fill-4',
|
|
72
72
|
buttonSecondaryFocusBorderColor: 'Neutral-fill-4',
|
|
73
73
|
buttonSecondaryOutlineFontColor: 'Neutral-text-5',
|
|
74
|
-
buttonSecondaryOutlineBackgroundColor: '
|
|
74
|
+
buttonSecondaryOutlineBackgroundColor: 'transparent',
|
|
75
75
|
buttonSecondaryOutlineBorderColor: 'Neutral-border-2',
|
|
76
76
|
buttonSecondaryOutlineDisabledFontColor: 'Neutral-text-2',
|
|
77
|
-
buttonSecondaryOutlineDisabledBackgroundColor: '
|
|
77
|
+
buttonSecondaryOutlineDisabledBackgroundColor: 'transparent',
|
|
78
78
|
buttonSecondaryOutlineDisabledBorderColor: 'Neutral-border-2',
|
|
79
79
|
buttonSecondaryOutlineHoverFontColor: 'Brand-5',
|
|
80
|
-
buttonSecondaryOutlineHoverBackgroundColor: '
|
|
80
|
+
buttonSecondaryOutlineHoverBackgroundColor: 'transparent',
|
|
81
81
|
buttonSecondaryOutlineHoverBorderColor: 'Brand-5',
|
|
82
82
|
buttonSecondaryOutlineActiveFontColor: 'Brand-7',
|
|
83
|
-
buttonSecondaryOutlineActiveBackgroundColor: '
|
|
83
|
+
buttonSecondaryOutlineActiveBackgroundColor: 'transparent',
|
|
84
84
|
buttonSecondaryOutlineActiveBorderColor: 'Brand-7',
|
|
85
85
|
buttonSecondaryOutlineFocusFontColor: 'Brand-5',
|
|
86
|
-
buttonSecondaryOutlineFocusBackgroundColor: '
|
|
86
|
+
buttonSecondaryOutlineFocusBackgroundColor: 'transparent',
|
|
87
87
|
buttonSecondaryOutlineFocusBorderColor: 'Brand-5',
|
|
88
88
|
buttonSecondaryTextFontColor: 'Neutral-text-5',
|
|
89
89
|
buttonSecondaryTextBackgroundColor: 'Transparent',
|
|
@@ -116,19 +116,19 @@ var buttonTokens = {
|
|
|
116
116
|
buttonSuccessFocusBackgroundColor: 'Success-5',
|
|
117
117
|
buttonSuccessFocusBorderColor: 'Success-5',
|
|
118
118
|
buttonSuccessOutlineFontColor: 'Success-6',
|
|
119
|
-
buttonSuccessOutlineBackgroundColor: '
|
|
119
|
+
buttonSuccessOutlineBackgroundColor: 'transparent',
|
|
120
120
|
buttonSuccessOutlineBorderColor: 'Success-6',
|
|
121
121
|
buttonSuccessOutlineDisabledFontColor: 'Success-3',
|
|
122
|
-
buttonSuccessOutlineDisabledBackgroundColor: '
|
|
122
|
+
buttonSuccessOutlineDisabledBackgroundColor: 'transparent',
|
|
123
123
|
buttonSuccessOutlineDisabledBorderColor: 'Success-3',
|
|
124
124
|
buttonSuccessOutlineHoverFontColor: 'Success-5',
|
|
125
|
-
buttonSuccessOutlineHoverBackgroundColor: '
|
|
125
|
+
buttonSuccessOutlineHoverBackgroundColor: 'transparent',
|
|
126
126
|
buttonSuccessOutlineHoverBorderColor: 'Success-5',
|
|
127
127
|
buttonSuccessOutlineActiveFontColor: 'Success-7',
|
|
128
|
-
buttonSuccessOutlineActiveBackgroundColor: '
|
|
128
|
+
buttonSuccessOutlineActiveBackgroundColor: 'transparent',
|
|
129
129
|
buttonSuccessOutlineActiveBorderColor: 'Success-7',
|
|
130
130
|
buttonSuccessOutlineFocusFontColor: 'Success-5',
|
|
131
|
-
buttonSuccessOutlineFocusBackgroundColor: '
|
|
131
|
+
buttonSuccessOutlineFocusBackgroundColor: 'transparent',
|
|
132
132
|
buttonSuccessOutlineFocusBorderColor: 'Success-5',
|
|
133
133
|
buttonSuccessTextFontColor: 'Success-6',
|
|
134
134
|
buttonSuccessTextBackgroundColor: 'Transparent',
|
|
@@ -161,19 +161,19 @@ var buttonTokens = {
|
|
|
161
161
|
buttonWarningFocusBackgroundColor: 'Warning-5',
|
|
162
162
|
buttonWarningFocusBorderColor: 'Warning-5',
|
|
163
163
|
buttonWarningOutlineFontColor: 'Warning-6',
|
|
164
|
-
buttonWarningOutlineBackgroundColor: '
|
|
164
|
+
buttonWarningOutlineBackgroundColor: 'transparent',
|
|
165
165
|
buttonWarningOutlineBorderColor: 'Warning-6',
|
|
166
166
|
buttonWarningOutlineDisabledFontColor: 'Warning-3',
|
|
167
|
-
buttonWarningOutlineDisabledBackgroundColor: '
|
|
167
|
+
buttonWarningOutlineDisabledBackgroundColor: 'transparent',
|
|
168
168
|
buttonWarningOutlineDisabledBorderColor: 'Warning-3',
|
|
169
169
|
buttonWarningOutlineHoverFontColor: 'Warning-5',
|
|
170
|
-
buttonWarningOutlineHoverBackgroundColor: '
|
|
170
|
+
buttonWarningOutlineHoverBackgroundColor: 'transparent',
|
|
171
171
|
buttonWarningOutlineHoverBorderColor: 'Warning-5',
|
|
172
172
|
buttonWarningOutlineActiveFontColor: 'Warning-7',
|
|
173
|
-
buttonWarningOutlineActiveBackgroundColor: '
|
|
173
|
+
buttonWarningOutlineActiveBackgroundColor: 'transparent',
|
|
174
174
|
buttonWarningOutlineActiveBorderColor: 'Warning-7',
|
|
175
175
|
buttonWarningOutlineFocusFontColor: 'Warning-5',
|
|
176
|
-
buttonWarningOutlineFocusBackgroundColor: '
|
|
176
|
+
buttonWarningOutlineFocusBackgroundColor: 'transparent',
|
|
177
177
|
buttonWarningOutlineFocusBorderColor: 'Warning-5',
|
|
178
178
|
buttonWarningTextFontColor: 'Warning-6',
|
|
179
179
|
buttonWarningTextBackgroundColor: 'Transparent',
|
|
@@ -206,19 +206,19 @@ var buttonTokens = {
|
|
|
206
206
|
buttonDangerFocusBackgroundColor: 'Danger-5',
|
|
207
207
|
buttonDangerFocusBorderColor: 'Danger-5',
|
|
208
208
|
buttonDangerOutlineFontColor: 'Danger-6',
|
|
209
|
-
buttonDangerOutlineBackgroundColor: '
|
|
209
|
+
buttonDangerOutlineBackgroundColor: 'transparent',
|
|
210
210
|
buttonDangerOutlineBorderColor: 'Danger-6',
|
|
211
211
|
buttonDangerOutlineDisabledFontColor: 'Danger-3',
|
|
212
|
-
buttonDangerOutlineDisabledBackgroundColor: '
|
|
212
|
+
buttonDangerOutlineDisabledBackgroundColor: 'transparent',
|
|
213
213
|
buttonDangerOutlineDisabledBorderColor: 'Danger-3',
|
|
214
214
|
buttonDangerOutlineHoverFontColor: 'Danger-5',
|
|
215
|
-
buttonDangerOutlineHoverBackgroundColor: '
|
|
215
|
+
buttonDangerOutlineHoverBackgroundColor: 'transparent',
|
|
216
216
|
buttonDangerOutlineHoverBorderColor: 'Danger-5',
|
|
217
217
|
buttonDangerOutlineActiveFontColor: 'Danger-7',
|
|
218
|
-
buttonDangerOutlineActiveBackgroundColor: '
|
|
218
|
+
buttonDangerOutlineActiveBackgroundColor: 'transparent',
|
|
219
219
|
buttonDangerOutlineActiveBorderColor: 'Danger-7',
|
|
220
220
|
buttonDangerOutlineFocusFontColor: 'Danger-5',
|
|
221
|
-
buttonDangerOutlineFocusBackgroundColor: '
|
|
221
|
+
buttonDangerOutlineFocusBackgroundColor: 'transparent',
|
|
222
222
|
buttonDangerOutlineFocusBorderColor: 'Danger-5',
|
|
223
223
|
buttonDangerTextFontColor: 'Danger-6',
|
|
224
224
|
buttonDangerTextBackgroundColor: 'Transparent',
|
|
@@ -235,6 +235,21 @@ var buttonTokens = {
|
|
|
235
235
|
buttonDangerTextFocusFontColor: 'Danger-5',
|
|
236
236
|
buttonDangerTextFocusBackgroundColor: 'Neutral-fill-2',
|
|
237
237
|
buttonDangerTextFocusBorderColor: 'Neutral-fill-2',
|
|
238
|
+
buttonLinkFontColor: 'Brand-6',
|
|
239
|
+
buttonLinkBackgroundColor: 'transparent',
|
|
240
|
+
buttonLinkBorderColor: 'transparent',
|
|
241
|
+
buttonLinkDisabledFontColor: 'Brand-3',
|
|
242
|
+
buttonLinkDisabledBackgroundColor: 'transparent',
|
|
243
|
+
buttonLinkDisabledBorderColor: 'transparent',
|
|
244
|
+
buttonLinkHoverFontColor: 'Brand-5',
|
|
245
|
+
buttonLinkHoverBackgroundColor: 'transparent',
|
|
246
|
+
buttonLinkHoverBorderColor: 'transparent',
|
|
247
|
+
buttonLinkActiveFontColor: 'Brand-7',
|
|
248
|
+
buttonLinkActiveBackgroundColor: 'transparent',
|
|
249
|
+
buttonLinkActiveBorderColor: 'transparent',
|
|
250
|
+
buttonLinkFocusFontColor: 'Brand-5',
|
|
251
|
+
buttonLinkFocusBackgroundColor: 'transparent',
|
|
252
|
+
buttonLinkFocusBorderColor: 'transparent',
|
|
238
253
|
buttonFontSize: '14/regular',
|
|
239
254
|
buttonBorderRadius: 'Radius-4',
|
|
240
255
|
buttonPaddingX: 'Padding-8',
|
package/cjs/button/rule.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var buttonRules = {
|
|
4
|
-
color: [['default', 'primary', 'secondary', 'success', 'warning', 'danger'], ['', 'outline', 'text', 'dashed'], ['', 'disabled', 'hover', 'active', 'focus'], ['font-color', 'background-color', 'border-color']],
|
|
4
|
+
color: [['default', 'primary', 'secondary', 'success', 'warning', 'danger', 'link'], ['', 'outline', 'text', 'dashed'], ['', 'disabled', 'hover', 'active', 'focus'], ['font-color', 'background-color', 'border-color']],
|
|
5
5
|
size: [['', 'small', 'large'], ['font-size', 'border-radius', 'padding-x', 'padding-y', 'height']],
|
|
6
6
|
group: [['default', 'primary', 'secondary', 'success', 'warning', 'danger'], ['', 'outline', 'text', 'dashed'], ['split'], ['', 'disabled', 'hover', 'active', 'focus'], ['background-color']],
|
|
7
7
|
shape: [['', 'small', 'large'], ['round', 'circle', 'square'], ['border-radius']],
|