@oceanbase/design 1.0.0-alpha.8 → 1.0.0-alpha.9
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/dist/design.min.js +1 -1
- package/es/card/index.d.ts +2 -0
- package/es/card/index.js +33 -13
- package/es/card/style/index.js +36 -20
- package/es/checkbox/style/index.js +5 -3
- package/es/config-provider/index.js +3 -1
- package/es/descriptions/hooks/useItems.d.ts +9 -9
- package/es/descriptions/index.d.ts +10 -0
- package/es/descriptions/index.js +59 -3
- package/es/descriptions/style/index.js +48 -5
- package/es/drawer/style/index.js +11 -5
- package/es/slider/style/index.js +3 -2
- package/es/style/cssVariables.d.ts +25 -0
- package/es/style/cssVariables.js +48 -0
- package/es/style/cssVariablesMeta.d.ts +24 -0
- package/es/style/cssVariablesMeta.js +974 -0
- package/es/table/index.js +8 -0
- package/es/table/style/index.js +9 -3
- package/es/tag/style/index.js +1 -1
- package/es/theme/default.d.ts +44 -0
- package/es/theme/default.js +159 -40
- package/es/theme/interface.d.ts +43 -0
- package/es/theme/style/compact.less +43 -24
- package/es/theme/style/default.less +43 -24
- package/lib/card/index.d.ts +2 -0
- package/lib/card/index.js +27 -12
- package/lib/card/style/index.js +61 -29
- package/lib/checkbox/style/index.js +4 -3
- package/lib/config-provider/index.js +3 -0
- package/lib/descriptions/hooks/useItems.d.ts +9 -9
- package/lib/descriptions/index.d.ts +10 -0
- package/lib/descriptions/index.js +49 -2
- package/lib/descriptions/style/index.js +85 -4
- package/lib/drawer/style/index.js +9 -4
- package/lib/slider/style/index.js +5 -2
- package/lib/style/cssVariables.d.ts +25 -0
- package/lib/style/cssVariables.js +261 -0
- package/lib/style/cssVariablesMeta.d.ts +24 -0
- package/lib/style/cssVariablesMeta.js +1059 -0
- package/lib/table/index.js +7 -0
- package/lib/table/style/index.js +10 -1
- package/lib/tag/style/index.js +1 -1
- package/lib/theme/default.d.ts +44 -0
- package/lib/theme/default.js +232 -42
- package/lib/theme/interface.d.ts +43 -0
- package/lib/theme/style/compact.less +43 -24
- package/lib/theme/style/default.less +43 -24
- package/package.json +2 -2
package/lib/table/index.js
CHANGED
|
@@ -65,6 +65,7 @@ function Table(props, ref) {
|
|
|
65
65
|
collapseText,
|
|
66
66
|
openText,
|
|
67
67
|
expandable,
|
|
68
|
+
scroll,
|
|
68
69
|
hiddenCancelBtn = false,
|
|
69
70
|
prefixCls: customizePrefixCls,
|
|
70
71
|
className
|
|
@@ -130,6 +131,7 @@ function Table(props, ref) {
|
|
|
130
131
|
}
|
|
131
132
|
return item;
|
|
132
133
|
});
|
|
134
|
+
const hasEllipsisColumn = newColumns.some((item) => item.ellipsis);
|
|
133
135
|
const handleSelectedData = (selectedRowKeys, selectedRows, info) => {
|
|
134
136
|
setCurrentSelectedRowKeys(selectedRowKeys);
|
|
135
137
|
setCurrentSelectedRows(selectedRows);
|
|
@@ -224,6 +226,11 @@ function Table(props, ref) {
|
|
|
224
226
|
(_a2 = rowSelection == null ? void 0 : rowSelection.onChange) == null ? void 0 : _a2.call(rowSelection, selectedRowKeys, selectedRows, info);
|
|
225
227
|
}
|
|
226
228
|
} : void 0,
|
|
229
|
+
scroll: {
|
|
230
|
+
// enable auto x scroll when there is no ellipsis column
|
|
231
|
+
x: hasEllipsisColumn ? void 0 : "max-content",
|
|
232
|
+
...scroll
|
|
233
|
+
},
|
|
227
234
|
footer,
|
|
228
235
|
pagination: pagination === false ? false : {
|
|
229
236
|
...pagination,
|
package/lib/table/style/index.js
CHANGED
|
@@ -29,6 +29,7 @@ var genTableStyle = (token) => {
|
|
|
29
29
|
const {
|
|
30
30
|
antCls,
|
|
31
31
|
componentCls,
|
|
32
|
+
iconCls,
|
|
32
33
|
colorText,
|
|
33
34
|
colorBgBase,
|
|
34
35
|
colorTextSecondary,
|
|
@@ -76,6 +77,10 @@ var genTableStyle = (token) => {
|
|
|
76
77
|
[`${componentCls}-tbody-virtual-scrollbar ${componentCls}-tbody-virtual-scrollbar-thumb`]: {
|
|
77
78
|
background: `${token.colorFillSecondary} !important`
|
|
78
79
|
},
|
|
80
|
+
// for custom expand icon
|
|
81
|
+
[`${componentCls}-row-indent+${iconCls}`]: {
|
|
82
|
+
marginInlineEnd: token.marginXS
|
|
83
|
+
},
|
|
79
84
|
// expandRowByClick 行样式
|
|
80
85
|
[`tr${componentCls}-expand-row-by-click`]: {
|
|
81
86
|
cursor: "pointer"
|
|
@@ -209,12 +214,16 @@ var genTableStyle = (token) => {
|
|
|
209
214
|
marginLeft: calc(token.marginXL).add(calc(token.lineWidth).mul(2).equal()).equal()
|
|
210
215
|
},
|
|
211
216
|
[`& > *${componentCls}-expanded-row-fixed`]: {
|
|
212
|
-
paddingLeft: calc(token.marginXL).add(calc(token.lineWidth).mul(2).equal()).add(token.padding).equal()
|
|
217
|
+
paddingLeft: calc(token.marginXL).add(calc(token.lineWidth).mul(2).equal()).add(token.padding).equal(),
|
|
218
|
+
margin: `-${(0, import_cssinjs.unit)(token.marginXS)} -${(0, import_cssinjs.unit)(token.margin)}`
|
|
213
219
|
}
|
|
214
220
|
},
|
|
215
221
|
// 嵌套子表格和父表格第一列对齐
|
|
216
222
|
[`tr > td > ${componentCls}-wrapper:only-child ${componentCls}`]: {
|
|
217
223
|
marginLeft: calc(token.margin).add(calc(token.lineWidth).mul(2).equal()).equal()
|
|
224
|
+
},
|
|
225
|
+
[`tr > td > ${componentCls}-expanded-row-fixed > ${componentCls}-wrapper:only-child ${componentCls}`]: {
|
|
226
|
+
marginLeft: -token.padding
|
|
218
227
|
}
|
|
219
228
|
}
|
|
220
229
|
},
|
package/lib/tag/style/index.js
CHANGED
|
@@ -42,6 +42,7 @@ var genTagStyle = (token) => {
|
|
|
42
42
|
const { antCls, componentCls, iconCls } = token;
|
|
43
43
|
return {
|
|
44
44
|
[`${componentCls}`]: {
|
|
45
|
+
lineHeight: token.lineHeight,
|
|
45
46
|
paddingInline: token.paddingXS,
|
|
46
47
|
fontSize: token.fontSizeSM,
|
|
47
48
|
[`&:not(${componentCls}-pill)`]: {
|
|
@@ -72,7 +73,6 @@ var genTagStyle = (token) => {
|
|
|
72
73
|
},
|
|
73
74
|
["&-pill"]: {
|
|
74
75
|
borderRadius: 100,
|
|
75
|
-
lineHeight: token.lineHeight,
|
|
76
76
|
marginInlineEnd: token.marginXXS
|
|
77
77
|
}
|
|
78
78
|
}
|
package/lib/theme/default.d.ts
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
export declare const white = "#ffffff";
|
|
2
|
+
export declare const gray1 = "#fbfcfe";
|
|
3
|
+
export declare const gray2 = "#f5f7fc";
|
|
4
|
+
export declare const gray3 = "#ebeff7";
|
|
5
|
+
export declare const gray4 = "#e2e8f3";
|
|
6
|
+
export declare const gray5 = "#cdd5e4";
|
|
7
|
+
export declare const gray6 = "#b6c0d4";
|
|
8
|
+
export declare const gray7 = "#8592ad";
|
|
9
|
+
export declare const gray8 = "#5c6b8a";
|
|
10
|
+
export declare const gray9 = "#3b4a69";
|
|
11
|
+
export declare const gray10 = "#132039";
|
|
12
|
+
export declare const black = "#000000";
|
|
13
|
+
export declare const blue1 = "#f3f8fe";
|
|
14
|
+
export declare const blue2 = "#b3d3ff";
|
|
15
|
+
export declare const blue3 = "#619ef3";
|
|
16
|
+
export declare const blue4 = "#0d6cf2";
|
|
17
|
+
export declare const blue5 = "#0852bb";
|
|
18
|
+
export declare const blue6 = "#0d3c80";
|
|
19
|
+
export declare const green1 = "#f5faf8";
|
|
20
|
+
export declare const green2 = "#b3e6d5";
|
|
21
|
+
export declare const green3 = "#79d1b4";
|
|
22
|
+
export declare const green4 = "#16b882";
|
|
23
|
+
export declare const green5 = "#0a8c61";
|
|
24
|
+
export declare const green6 = "#09593f";
|
|
25
|
+
export declare const orange1 = "#fff9ee";
|
|
26
|
+
export declare const orange2 = "#ffe7c2";
|
|
27
|
+
export declare const orange3 = "#fac373";
|
|
28
|
+
export declare const orange4 = "#f49f25";
|
|
29
|
+
export declare const orange5 = "#ac690b";
|
|
30
|
+
export declare const orange6 = "#6c4408";
|
|
31
|
+
export declare const red1 = "#fff2f2";
|
|
32
|
+
export declare const red2 = "#ffd6d6";
|
|
33
|
+
export declare const red3 = "#f69898";
|
|
34
|
+
export declare const red4 = "#eb4242";
|
|
35
|
+
export declare const red5 = "#b52727";
|
|
36
|
+
export declare const red6 = "#8a1b1b";
|
|
37
|
+
export declare const fuchsia1 = "#faf0fc";
|
|
38
|
+
export declare const fuchsia2 = "#e8caee";
|
|
39
|
+
export declare const fuchsia3 = "#d88ee7";
|
|
40
|
+
export declare const fuchsia4 = "#b04ec4";
|
|
41
|
+
export declare const fuchsia5 = "#802792";
|
|
42
|
+
export declare const fuchsia6 = "#580e67";
|
|
43
|
+
export declare const colorNaviBg = "#f1f6ff";
|
|
44
|
+
export declare const colorNaviBgHover = "#e8effb";
|
|
1
45
|
export declare const fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
|
|
2
46
|
export declare const fontWeightWeakEn = 300;
|
|
3
47
|
export declare const fontWeightEn = 500;
|
package/lib/theme/default.js
CHANGED
|
@@ -19,24 +19,112 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/theme/default.ts
|
|
20
20
|
var default_exports = {};
|
|
21
21
|
__export(default_exports, {
|
|
22
|
+
black: () => black,
|
|
23
|
+
blue1: () => blue1,
|
|
24
|
+
blue2: () => blue2,
|
|
25
|
+
blue3: () => blue3,
|
|
26
|
+
blue4: () => blue4,
|
|
27
|
+
blue5: () => blue5,
|
|
28
|
+
blue6: () => blue6,
|
|
29
|
+
colorNaviBg: () => colorNaviBg,
|
|
30
|
+
colorNaviBgHover: () => colorNaviBgHover,
|
|
22
31
|
default: () => default_default,
|
|
23
32
|
fontFamilyEn: () => fontFamilyEn,
|
|
24
33
|
fontWeightEn: () => fontWeightEn,
|
|
25
34
|
fontWeightStrongEn: () => fontWeightStrongEn,
|
|
26
|
-
fontWeightWeakEn: () => fontWeightWeakEn
|
|
35
|
+
fontWeightWeakEn: () => fontWeightWeakEn,
|
|
36
|
+
fuchsia1: () => fuchsia1,
|
|
37
|
+
fuchsia2: () => fuchsia2,
|
|
38
|
+
fuchsia3: () => fuchsia3,
|
|
39
|
+
fuchsia4: () => fuchsia4,
|
|
40
|
+
fuchsia5: () => fuchsia5,
|
|
41
|
+
fuchsia6: () => fuchsia6,
|
|
42
|
+
gray1: () => gray1,
|
|
43
|
+
gray10: () => gray10,
|
|
44
|
+
gray2: () => gray2,
|
|
45
|
+
gray3: () => gray3,
|
|
46
|
+
gray4: () => gray4,
|
|
47
|
+
gray5: () => gray5,
|
|
48
|
+
gray6: () => gray6,
|
|
49
|
+
gray7: () => gray7,
|
|
50
|
+
gray8: () => gray8,
|
|
51
|
+
gray9: () => gray9,
|
|
52
|
+
green1: () => green1,
|
|
53
|
+
green2: () => green2,
|
|
54
|
+
green3: () => green3,
|
|
55
|
+
green4: () => green4,
|
|
56
|
+
green5: () => green5,
|
|
57
|
+
green6: () => green6,
|
|
58
|
+
orange1: () => orange1,
|
|
59
|
+
orange2: () => orange2,
|
|
60
|
+
orange3: () => orange3,
|
|
61
|
+
orange4: () => orange4,
|
|
62
|
+
orange5: () => orange5,
|
|
63
|
+
orange6: () => orange6,
|
|
64
|
+
red1: () => red1,
|
|
65
|
+
red2: () => red2,
|
|
66
|
+
red3: () => red3,
|
|
67
|
+
red4: () => red4,
|
|
68
|
+
red5: () => red5,
|
|
69
|
+
red6: () => red6,
|
|
70
|
+
white: () => white
|
|
27
71
|
});
|
|
28
72
|
module.exports = __toCommonJS(default_exports);
|
|
29
73
|
var import_format = require("./util/format");
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
74
|
+
var white = "#ffffff";
|
|
75
|
+
var gray1 = "#fbfcfe";
|
|
76
|
+
var gray2 = "#f5f7fc";
|
|
77
|
+
var gray3 = "#ebeff7";
|
|
78
|
+
var gray4 = "#e2e8f3";
|
|
79
|
+
var gray5 = "#cdd5e4";
|
|
80
|
+
var gray6 = "#b6c0d4";
|
|
81
|
+
var gray7 = "#8592ad";
|
|
82
|
+
var gray8 = "#5c6b8a";
|
|
83
|
+
var gray9 = "#3b4a69";
|
|
84
|
+
var gray10 = "#132039";
|
|
85
|
+
var black = "#000000";
|
|
86
|
+
var blue1 = "#f3f8fe";
|
|
87
|
+
var blue2 = "#b3d3ff";
|
|
88
|
+
var blue3 = "#619ef3";
|
|
89
|
+
var blue4 = "#0d6cf2";
|
|
90
|
+
var blue5 = "#0852bb";
|
|
91
|
+
var blue6 = "#0d3c80";
|
|
92
|
+
var green1 = "#f5faf8";
|
|
93
|
+
var green2 = "#b3e6d5";
|
|
94
|
+
var green3 = "#79d1b4";
|
|
95
|
+
var green4 = "#16b882";
|
|
96
|
+
var green5 = "#0a8c61";
|
|
97
|
+
var green6 = "#09593f";
|
|
98
|
+
var orange1 = "#fff9ee";
|
|
99
|
+
var orange2 = "#ffe7c2";
|
|
100
|
+
var orange3 = "#fac373";
|
|
101
|
+
var orange4 = "#f49f25";
|
|
102
|
+
var orange5 = "#ac690b";
|
|
103
|
+
var orange6 = "#6c4408";
|
|
104
|
+
var red1 = "#fff2f2";
|
|
105
|
+
var red2 = "#ffd6d6";
|
|
106
|
+
var red3 = "#f69898";
|
|
107
|
+
var red4 = "#eb4242";
|
|
108
|
+
var red5 = "#b52727";
|
|
109
|
+
var red6 = "#8a1b1b";
|
|
110
|
+
var fuchsia1 = "#faf0fc";
|
|
111
|
+
var fuchsia2 = "#e8caee";
|
|
112
|
+
var fuchsia3 = "#d88ee7";
|
|
113
|
+
var fuchsia4 = "#b04ec4";
|
|
114
|
+
var fuchsia5 = "#802792";
|
|
115
|
+
var fuchsia6 = "#580e67";
|
|
116
|
+
var colorNaviBg = "#f1f6ff";
|
|
117
|
+
var colorNaviBgHover = "#e8effb";
|
|
118
|
+
var colorPrimary = blue4;
|
|
119
|
+
var colorPrimarySecondary = "#598cf3";
|
|
120
|
+
var colorText = gray10;
|
|
121
|
+
var colorTextSecondary = gray8;
|
|
122
|
+
var colorTextTertiary = gray7;
|
|
123
|
+
var colorTextQuaternary = gray6;
|
|
124
|
+
var colorFill = gray5;
|
|
125
|
+
var colorFillSecondary = gray4;
|
|
126
|
+
var colorFillTertiary = gray3;
|
|
127
|
+
var colorFillQuaternary = gray2;
|
|
40
128
|
var colorBorderSecondary = colorFillSecondary;
|
|
41
129
|
var fontSizeSM = 12;
|
|
42
130
|
var tagColorBorder = colorTextQuaternary;
|
|
@@ -72,36 +160,36 @@ var defaultTheme = {
|
|
|
72
160
|
controlHeight: 28,
|
|
73
161
|
colorPrimary,
|
|
74
162
|
colorInfo: colorPrimary,
|
|
75
|
-
colorInfoBorder:
|
|
76
|
-
colorInfoBg:
|
|
77
|
-
colorInfoHover:
|
|
78
|
-
colorInfoActive:
|
|
79
|
-
colorInfoText:
|
|
80
|
-
colorSuccess:
|
|
81
|
-
colorSuccessBorder:
|
|
82
|
-
colorSuccessBg:
|
|
83
|
-
colorSuccessText:
|
|
84
|
-
colorWarning:
|
|
85
|
-
colorWarningBorder:
|
|
86
|
-
colorWarningBg:
|
|
87
|
-
colorWarningText:
|
|
88
|
-
colorError:
|
|
89
|
-
colorErrorBorder:
|
|
90
|
-
colorErrorBg:
|
|
91
|
-
colorErrorText:
|
|
92
|
-
colorFuchsia:
|
|
93
|
-
colorFuchsiaBorder:
|
|
94
|
-
colorFuchsiaBg:
|
|
95
|
-
colorFuchsiaText:
|
|
96
|
-
colorTextBase:
|
|
163
|
+
colorInfoBorder: blue3,
|
|
164
|
+
colorInfoBg: blue1,
|
|
165
|
+
colorInfoHover: blue5,
|
|
166
|
+
colorInfoActive: blue5,
|
|
167
|
+
colorInfoText: blue6,
|
|
168
|
+
colorSuccess: green4,
|
|
169
|
+
colorSuccessBorder: green3,
|
|
170
|
+
colorSuccessBg: green1,
|
|
171
|
+
colorSuccessText: green6,
|
|
172
|
+
colorWarning: orange4,
|
|
173
|
+
colorWarningBorder: orange3,
|
|
174
|
+
colorWarningBg: orange1,
|
|
175
|
+
colorWarningText: orange6,
|
|
176
|
+
colorError: red4,
|
|
177
|
+
colorErrorBorder: red3,
|
|
178
|
+
colorErrorBg: red1,
|
|
179
|
+
colorErrorText: red6,
|
|
180
|
+
colorFuchsia: fuchsia4,
|
|
181
|
+
colorFuchsiaBorder: fuchsia3,
|
|
182
|
+
colorFuchsiaBg: fuchsia1,
|
|
183
|
+
colorFuchsiaText: fuchsia6,
|
|
184
|
+
colorTextBase: black,
|
|
97
185
|
colorText,
|
|
98
186
|
colorTextSecondary,
|
|
99
187
|
colorTextTertiary,
|
|
100
188
|
colorTextQuaternary,
|
|
101
189
|
colorIcon: colorTextSecondary,
|
|
102
|
-
colorBgBase:
|
|
103
|
-
colorBgContainer:
|
|
104
|
-
colorBgLayout:
|
|
190
|
+
colorBgBase: white,
|
|
191
|
+
colorBgContainer: white,
|
|
192
|
+
colorBgLayout: gray1,
|
|
105
193
|
colorBorder: colorFill,
|
|
106
194
|
colorBorderSecondary,
|
|
107
195
|
colorFill,
|
|
@@ -110,14 +198,66 @@ var defaultTheme = {
|
|
|
110
198
|
colorFillQuaternary,
|
|
111
199
|
colorBgContainerDisabled: colorFillTertiary,
|
|
112
200
|
colorBgMask: "rgba(19, 32, 57, 0.6)",
|
|
113
|
-
colorBgElevated:
|
|
114
|
-
colorBgSpotlight:
|
|
201
|
+
colorBgElevated: white,
|
|
202
|
+
colorBgSpotlight: white,
|
|
115
203
|
boxShadow: "0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)",
|
|
116
204
|
boxShadowSecondary: "0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05)",
|
|
117
205
|
boxShadowTertiary: "0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02)",
|
|
118
206
|
wireframe: false,
|
|
119
207
|
// Remove focus outline
|
|
120
|
-
lineWidthFocus: 0
|
|
208
|
+
lineWidthFocus: 0,
|
|
209
|
+
// ==================== 基础颜色 Token ====================
|
|
210
|
+
// 黑白色
|
|
211
|
+
white,
|
|
212
|
+
black,
|
|
213
|
+
// 中性色 Neutral
|
|
214
|
+
gray1,
|
|
215
|
+
gray2,
|
|
216
|
+
gray3,
|
|
217
|
+
gray4,
|
|
218
|
+
gray5,
|
|
219
|
+
gray6,
|
|
220
|
+
gray7,
|
|
221
|
+
gray8,
|
|
222
|
+
gray9,
|
|
223
|
+
// 蓝色 Blue
|
|
224
|
+
blue1,
|
|
225
|
+
blue2,
|
|
226
|
+
blue3,
|
|
227
|
+
blue4,
|
|
228
|
+
blue5,
|
|
229
|
+
blue6,
|
|
230
|
+
// 绿色 Green
|
|
231
|
+
green1,
|
|
232
|
+
green2,
|
|
233
|
+
green3,
|
|
234
|
+
green4,
|
|
235
|
+
green5,
|
|
236
|
+
green6,
|
|
237
|
+
// 橙色 Orange
|
|
238
|
+
orange1,
|
|
239
|
+
orange2,
|
|
240
|
+
orange3,
|
|
241
|
+
orange4,
|
|
242
|
+
orange5,
|
|
243
|
+
orange6,
|
|
244
|
+
// 红色 Red
|
|
245
|
+
red1,
|
|
246
|
+
red2,
|
|
247
|
+
red3,
|
|
248
|
+
red4,
|
|
249
|
+
red5,
|
|
250
|
+
red6,
|
|
251
|
+
// 紫色 Fuchsia
|
|
252
|
+
fuchsia1,
|
|
253
|
+
fuchsia2,
|
|
254
|
+
fuchsia3,
|
|
255
|
+
fuchsia4,
|
|
256
|
+
fuchsia5,
|
|
257
|
+
fuchsia6,
|
|
258
|
+
// 导航特殊色
|
|
259
|
+
colorNaviBg,
|
|
260
|
+
colorNaviBgHover
|
|
121
261
|
},
|
|
122
262
|
components: {
|
|
123
263
|
Alert: {
|
|
@@ -132,6 +272,7 @@ var defaultTheme = {
|
|
|
132
272
|
lastItemColor: colorTextSecondary
|
|
133
273
|
},
|
|
134
274
|
Button: {
|
|
275
|
+
iconGap: 4,
|
|
135
276
|
contentFontSizeSM: 12,
|
|
136
277
|
borderRadiusSM: 4,
|
|
137
278
|
borderRadius: 4,
|
|
@@ -198,7 +339,10 @@ var defaultTheme = {
|
|
|
198
339
|
horizontalItemGutter: 24,
|
|
199
340
|
itemActiveColor: colorText,
|
|
200
341
|
itemSelectedColor: colorText,
|
|
201
|
-
itemHoverColor: colorText
|
|
342
|
+
itemHoverColor: colorText,
|
|
343
|
+
horizontalItemPaddingSM: "12px 0",
|
|
344
|
+
horizontalItemPadding: "16px 0",
|
|
345
|
+
horizontalItemPaddingLG: "16px 0"
|
|
202
346
|
},
|
|
203
347
|
Tag: {
|
|
204
348
|
colorBorder: tagColorBorder,
|
|
@@ -210,14 +354,16 @@ var defaultTheme = {
|
|
|
210
354
|
cellPaddingBlock: 8,
|
|
211
355
|
cellPaddingInline: 16,
|
|
212
356
|
cellPaddingBlockMD: 6,
|
|
357
|
+
cellPaddingInlineMD: 8,
|
|
213
358
|
cellPaddingBlockSM: 4,
|
|
359
|
+
cellPaddingInlineSM: 6,
|
|
214
360
|
rowHoverBg: colorFillQuaternary,
|
|
215
361
|
rowSelectedBg: colorFillQuaternary,
|
|
216
362
|
rowSelectedHoverBg: colorFillTertiary
|
|
217
363
|
},
|
|
218
364
|
Tooltip: {
|
|
219
365
|
borderRadius: borderRadiusMD,
|
|
220
|
-
colorBgSpotlight:
|
|
366
|
+
colorBgSpotlight: white,
|
|
221
367
|
colorTextLightSolid: colorText
|
|
222
368
|
},
|
|
223
369
|
Menu: {
|
|
@@ -249,8 +395,52 @@ defaultTheme.token = {
|
|
|
249
395
|
var default_default = (0, import_format.formatTheme)(defaultTheme);
|
|
250
396
|
// Annotate the CommonJS export names for ESM import in node:
|
|
251
397
|
0 && (module.exports = {
|
|
398
|
+
black,
|
|
399
|
+
blue1,
|
|
400
|
+
blue2,
|
|
401
|
+
blue3,
|
|
402
|
+
blue4,
|
|
403
|
+
blue5,
|
|
404
|
+
blue6,
|
|
405
|
+
colorNaviBg,
|
|
406
|
+
colorNaviBgHover,
|
|
252
407
|
fontFamilyEn,
|
|
253
408
|
fontWeightEn,
|
|
254
409
|
fontWeightStrongEn,
|
|
255
|
-
fontWeightWeakEn
|
|
410
|
+
fontWeightWeakEn,
|
|
411
|
+
fuchsia1,
|
|
412
|
+
fuchsia2,
|
|
413
|
+
fuchsia3,
|
|
414
|
+
fuchsia4,
|
|
415
|
+
fuchsia5,
|
|
416
|
+
fuchsia6,
|
|
417
|
+
gray1,
|
|
418
|
+
gray10,
|
|
419
|
+
gray2,
|
|
420
|
+
gray3,
|
|
421
|
+
gray4,
|
|
422
|
+
gray5,
|
|
423
|
+
gray6,
|
|
424
|
+
gray7,
|
|
425
|
+
gray8,
|
|
426
|
+
gray9,
|
|
427
|
+
green1,
|
|
428
|
+
green2,
|
|
429
|
+
green3,
|
|
430
|
+
green4,
|
|
431
|
+
green5,
|
|
432
|
+
green6,
|
|
433
|
+
orange1,
|
|
434
|
+
orange2,
|
|
435
|
+
orange3,
|
|
436
|
+
orange4,
|
|
437
|
+
orange5,
|
|
438
|
+
orange6,
|
|
439
|
+
red1,
|
|
440
|
+
red2,
|
|
441
|
+
red3,
|
|
442
|
+
red4,
|
|
443
|
+
red5,
|
|
444
|
+
red6,
|
|
445
|
+
white
|
|
256
446
|
});
|
package/lib/theme/interface.d.ts
CHANGED
|
@@ -59,6 +59,49 @@ export interface AliasToken extends AntAliasToken {
|
|
|
59
59
|
* @descEN The text color of the critical error state.
|
|
60
60
|
*/
|
|
61
61
|
colorFuchsiaText: string;
|
|
62
|
+
white: string;
|
|
63
|
+
black: string;
|
|
64
|
+
gray1: string;
|
|
65
|
+
gray2: string;
|
|
66
|
+
gray3: string;
|
|
67
|
+
gray4: string;
|
|
68
|
+
gray5: string;
|
|
69
|
+
gray6: string;
|
|
70
|
+
gray7: string;
|
|
71
|
+
gray8: string;
|
|
72
|
+
gray9: string;
|
|
73
|
+
blue1: string;
|
|
74
|
+
blue2: string;
|
|
75
|
+
blue3: string;
|
|
76
|
+
blue4: string;
|
|
77
|
+
blue5: string;
|
|
78
|
+
blue6: string;
|
|
79
|
+
green1: string;
|
|
80
|
+
green2: string;
|
|
81
|
+
green3: string;
|
|
82
|
+
green4: string;
|
|
83
|
+
green5: string;
|
|
84
|
+
green6: string;
|
|
85
|
+
orange1: string;
|
|
86
|
+
orange2: string;
|
|
87
|
+
orange3: string;
|
|
88
|
+
orange4: string;
|
|
89
|
+
orange5: string;
|
|
90
|
+
orange6: string;
|
|
91
|
+
red1: string;
|
|
92
|
+
red2: string;
|
|
93
|
+
red3: string;
|
|
94
|
+
red4: string;
|
|
95
|
+
red5: string;
|
|
96
|
+
red6: string;
|
|
97
|
+
fuchsia1: string;
|
|
98
|
+
fuchsia2: string;
|
|
99
|
+
fuchsia3: string;
|
|
100
|
+
fuchsia4: string;
|
|
101
|
+
fuchsia5: string;
|
|
102
|
+
fuchsia6: string;
|
|
103
|
+
colorNaviBg: string;
|
|
104
|
+
colorNaviBgHover: string;
|
|
62
105
|
}
|
|
63
106
|
/** Final token which contains the components level override */
|
|
64
107
|
export type GlobalToken = GlobalTokenTypeUtil<ComponentTokenMap, AliasToken>;
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
@wireframe: false;
|
|
46
46
|
@motion: true;
|
|
47
47
|
@blue-1: #e6f4ff;
|
|
48
|
-
@blue1: #
|
|
48
|
+
@blue1: #f3f8fe;
|
|
49
49
|
@blue-2: #b0dbff;
|
|
50
|
-
@blue2: #
|
|
50
|
+
@blue2: #b3d3ff;
|
|
51
51
|
@blue-3: #87c5ff;
|
|
52
|
-
@blue3: #
|
|
52
|
+
@blue3: #619ef3;
|
|
53
53
|
@blue-4: #5eacff;
|
|
54
|
-
@blue4: #
|
|
54
|
+
@blue4: #0d6cf2;
|
|
55
55
|
@blue-5: #3690ff;
|
|
56
|
-
@blue5: #
|
|
56
|
+
@blue5: #0852bb;
|
|
57
57
|
@blue-6: #0d6cf2;
|
|
58
|
-
@blue6: #
|
|
58
|
+
@blue6: #0d3c80;
|
|
59
59
|
@blue-7: #004ecc;
|
|
60
60
|
@blue7: #004ecc;
|
|
61
61
|
@blue-8: #003aa6;
|
|
@@ -105,17 +105,17 @@
|
|
|
105
105
|
@cyan-10: #002329;
|
|
106
106
|
@cyan10: #002329;
|
|
107
107
|
@green-1: #e4f7ed;
|
|
108
|
-
@green1: #
|
|
108
|
+
@green1: #f5faf8;
|
|
109
109
|
@green-2: #b2ebd0;
|
|
110
|
-
@green2: #
|
|
110
|
+
@green2: #b3e6d5;
|
|
111
111
|
@green-3: #85deb7;
|
|
112
|
-
@green3: #
|
|
112
|
+
@green3: #79d1b4;
|
|
113
113
|
@green-4: #5cd1a2;
|
|
114
|
-
@green4: #
|
|
114
|
+
@green4: #16b882;
|
|
115
115
|
@green-5: #37c491;
|
|
116
|
-
@green5: #
|
|
116
|
+
@green5: #0a8c61;
|
|
117
117
|
@green-6: #16b882;
|
|
118
|
-
@green6: #
|
|
118
|
+
@green6: #09593f;
|
|
119
119
|
@green-7: #0a9169;
|
|
120
120
|
@green7: #0a9169;
|
|
121
121
|
@green-8: #026b4f;
|
|
@@ -165,17 +165,17 @@
|
|
|
165
165
|
@pink-10: #520339;
|
|
166
166
|
@pink10: #520339;
|
|
167
167
|
@red-1: #fff2f0;
|
|
168
|
-
@red1: #
|
|
168
|
+
@red1: #fff2f2;
|
|
169
169
|
@red-2: #ffedeb;
|
|
170
|
-
@red2: #
|
|
170
|
+
@red2: #ffd6d6;
|
|
171
171
|
@red-3: #ffc8c2;
|
|
172
|
-
@red3: #
|
|
172
|
+
@red3: #f69898;
|
|
173
173
|
@red-4: #ffa099;
|
|
174
|
-
@red4: #
|
|
174
|
+
@red4: #eb4242;
|
|
175
175
|
@red-5: #f7716d;
|
|
176
|
-
@red5: #
|
|
176
|
+
@red5: #b52727;
|
|
177
177
|
@red-6: #eb4242;
|
|
178
|
-
@red6: #
|
|
178
|
+
@red6: #8a1b1b;
|
|
179
179
|
@red-7: #c42d32;
|
|
180
180
|
@red7: #c42d32;
|
|
181
181
|
@red-8: #9e1c25;
|
|
@@ -185,17 +185,17 @@
|
|
|
185
185
|
@red-10: #520a13;
|
|
186
186
|
@red10: #520a13;
|
|
187
187
|
@orange-1: #fff7e6;
|
|
188
|
-
@orange1: #
|
|
188
|
+
@orange1: #fff9ee;
|
|
189
189
|
@orange-2: #ffe7ba;
|
|
190
|
-
@orange2: #
|
|
190
|
+
@orange2: #ffe7c2;
|
|
191
191
|
@orange-3: #ffd591;
|
|
192
|
-
@orange3: #
|
|
192
|
+
@orange3: #fac373;
|
|
193
193
|
@orange-4: #ffc069;
|
|
194
|
-
@orange4: #
|
|
194
|
+
@orange4: #f49f25;
|
|
195
195
|
@orange-5: #ffa940;
|
|
196
|
-
@orange5: #
|
|
196
|
+
@orange5: #ac690b;
|
|
197
197
|
@orange-6: #fa8c16;
|
|
198
|
-
@orange6: #
|
|
198
|
+
@orange6: #6c4408;
|
|
199
199
|
@orange-7: #d46b08;
|
|
200
200
|
@orange7: #d46b08;
|
|
201
201
|
@orange-8: #ad4e00;
|
|
@@ -426,6 +426,25 @@
|
|
|
426
426
|
@boxShadowSecondary: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05);
|
|
427
427
|
@boxShadowTertiary: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02);
|
|
428
428
|
@lineWidthFocus: 3px;
|
|
429
|
+
@white: #ffffff;
|
|
430
|
+
@black: #000000;
|
|
431
|
+
@gray1: #fbfcfe;
|
|
432
|
+
@gray2: #f5f7fc;
|
|
433
|
+
@gray3: #ebeff7;
|
|
434
|
+
@gray4: #e2e8f3;
|
|
435
|
+
@gray5: #cdd5e4;
|
|
436
|
+
@gray6: #b6c0d4;
|
|
437
|
+
@gray7: #8592ad;
|
|
438
|
+
@gray8: #5c6b8a;
|
|
439
|
+
@gray9: #3b4a69;
|
|
440
|
+
@fuchsia1: #faf0fc;
|
|
441
|
+
@fuchsia2: #e8caee;
|
|
442
|
+
@fuchsia3: #d88ee7;
|
|
443
|
+
@fuchsia4: #b04ec4;
|
|
444
|
+
@fuchsia5: #802792;
|
|
445
|
+
@fuchsia6: #580e67;
|
|
446
|
+
@colorNaviBg: #f1f6ff;
|
|
447
|
+
@colorNaviBgHover: #e8effb;
|
|
429
448
|
@colorFillContent: #e2e8f3;
|
|
430
449
|
@colorFillContentHover: #cdd5e4;
|
|
431
450
|
@colorFillAlter: #f5f7fc;
|