@oceanbase/design 0.4.0 → 0.4.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/dist/design.min.js +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/button/style/index.js +17 -3
- package/es/card/style/index.js +5 -3
- package/es/checkbox/index.d.ts +2 -0
- package/es/checkbox/index.js +40 -1
- package/es/checkbox/style/index.d.ts +9 -0
- package/es/checkbox/style/index.js +22 -0
- package/es/config-provider/index.d.ts +2 -0
- package/es/config-provider/index.js +6 -4
- package/es/descriptions/hooks/useItems.d.ts +3 -3
- package/es/empty/default.js +34 -55
- package/es/index.d.ts +6 -0
- package/es/index.js +3 -0
- package/es/radio/index.d.ts +2 -0
- package/es/radio/index.js +41 -1
- package/es/radio/style/index.d.ts +9 -0
- package/es/radio/style/index.js +23 -0
- package/es/slider/index.d.ts +5 -0
- package/es/slider/index.js +36 -1
- package/es/slider/style/index.d.ts +9 -0
- package/es/slider/style/index.js +21 -0
- package/es/table/index.js +15 -3
- package/es/table/style/index.js +22 -15
- package/es/theme/default.js +10 -11
- package/es/theme/style/aliyun.less +5 -1
- package/es/theme/style/compact.less +7 -3
- package/es/theme/style/dark.less +5 -1
- package/es/theme/style/default.less +15 -11
- package/lib/button/index.d.ts +1 -1
- package/lib/button/style/index.js +21 -1
- package/lib/card/style/index.js +7 -2
- package/lib/checkbox/index.d.ts +2 -0
- package/lib/checkbox/index.js +49 -1
- package/lib/checkbox/style/index.d.ts +9 -0
- package/lib/checkbox/style/index.js +49 -0
- package/lib/config-provider/index.d.ts +2 -0
- package/lib/config-provider/index.js +2 -1
- package/lib/descriptions/hooks/useItems.d.ts +3 -3
- package/lib/empty/default.js +8 -39
- package/lib/index.d.ts +6 -0
- package/lib/index.js +9 -0
- package/lib/radio/index.d.ts +2 -0
- package/lib/radio/index.js +42 -1
- package/lib/radio/style/index.d.ts +9 -0
- package/lib/radio/style/index.js +49 -0
- package/lib/slider/index.d.ts +5 -0
- package/lib/slider/index.js +38 -1
- package/lib/slider/style/index.d.ts +9 -0
- package/lib/slider/style/index.js +51 -0
- package/lib/table/index.js +14 -3
- package/lib/table/style/index.js +20 -16
- package/lib/theme/default.js +10 -11
- package/lib/theme/style/aliyun.less +5 -1
- package/lib/theme/style/compact.less +7 -3
- package/lib/theme/style/dark.less +5 -1
- package/lib/theme/style/default.less +15 -11
- package/package.json +11 -10
package/es/table/style/index.js
CHANGED
|
@@ -20,11 +20,13 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
20
20
|
marginLG = token.marginLG,
|
|
21
21
|
marginXS = token.marginXS,
|
|
22
22
|
marginSM = token.marginSM;
|
|
23
|
-
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty({
|
|
23
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-wrapper ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty({
|
|
24
24
|
color: colorText,
|
|
25
25
|
backgroundColor: colorBgBase,
|
|
26
26
|
borderRadius: borderRadiusLG
|
|
27
|
-
}, "".concat(componentCls, "-
|
|
27
|
+
}, "".concat(componentCls, "-footer"), {
|
|
28
|
+
borderBottom: "1px solid ".concat(colorBorderSecondary)
|
|
29
|
+
}), "".concat(componentCls, "-thead > tr"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'td, th', {
|
|
28
30
|
// 弱化列标题
|
|
29
31
|
color: colorTextSecondary,
|
|
30
32
|
fontWeight: 'normal',
|
|
@@ -35,7 +37,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
35
37
|
backgroundColor: colorBgBase
|
|
36
38
|
}), "".concat(componentCls, "-cell-scrollbar"), {
|
|
37
39
|
boxShadow: "0 1px 0 1px ".concat(colorBgBase)
|
|
38
|
-
})), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
|
|
40
|
+
})), "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
|
|
39
41
|
backgroundColor: colorBgBase
|
|
40
42
|
}), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
|
|
41
43
|
backgroundColor: colorFillQuaternary
|
|
@@ -51,7 +53,12 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
51
53
|
padding: "".concat(paddingSM, "px ").concat(padding, "px"),
|
|
52
54
|
backgroundColor: colorFillQuaternary,
|
|
53
55
|
borderRadius: borderRadiusLG
|
|
54
|
-
})), "
|
|
56
|
+
})), "".concat(componentCls, "-empty-wrapper"), {
|
|
57
|
+
minHeight: 360,
|
|
58
|
+
display: 'flex',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
alignItems: 'center'
|
|
61
|
+
}), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
55
62
|
// 调整嵌套子表格的间距
|
|
56
63
|
marginBlock: '0 !important',
|
|
57
64
|
marginInline: '0 !important'
|
|
@@ -61,27 +68,29 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
61
68
|
backgroundColor: "".concat(colorFillQuaternary, " !important")
|
|
62
69
|
}), "".concat(componentCls, "-tbody > tr:last-child"), _defineProperty({}, 'td:first-child, td:last-child', {
|
|
63
70
|
borderRadius: borderRadiusLG
|
|
64
|
-
}))
|
|
71
|
+
})), "".concat(componentCls, "-empty-wrapper"), {
|
|
72
|
+
minHeight: 'auto'
|
|
73
|
+
})))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable):not(").concat(componentCls, "-has-footer) ").concat(componentCls, ":not(").concat(componentCls, "-bordered):not(").concat(componentCls, "-empty)"), {
|
|
74
|
+
borderBottom: "1px solid ".concat(colorBorderSecondary),
|
|
75
|
+
borderRadius: 0
|
|
76
|
+
}), "".concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-scroll-horizontal, ").concat(componentCls, "-wrapper ").concat(componentCls).concat(componentCls, "-fixed-header"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "tr:nth-child(2n + 1):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(antCls, "-descriptions-row) > td"), {
|
|
65
77
|
backgroundColor: colorFillQuaternary
|
|
66
78
|
}), "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row):not(").concat(antCls, "-descriptions-row) > td"), {
|
|
67
79
|
backgroundColor: colorBgBase
|
|
68
80
|
}))), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable)"), _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-bordered)"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr:not(".concat(componentCls, "-measure-row) > td"), {
|
|
69
81
|
border: 'none'
|
|
70
|
-
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(
|
|
82
|
+
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr:nth-child(2n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row)"), _defineProperty(_defineProperty({}, '& > td', {
|
|
71
83
|
backgroundColor: colorBgBase
|
|
72
84
|
}), '&:hover', {
|
|
73
85
|
td: {
|
|
74
86
|
backgroundColor: colorPrimaryBg
|
|
75
87
|
}
|
|
76
|
-
})))), "".concat(componentCls, "-
|
|
77
|
-
borderTop: 'none'
|
|
78
|
-
}))), "".concat(componentCls, "-wrapper ").concat(antCls, "-spin-blur"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "".concat(componentCls, "-placeholder"), {
|
|
88
|
+
}))))), "".concat(componentCls, "-wrapper ").concat(antCls, "-spin-blur"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "".concat(componentCls, "-placeholder"), {
|
|
79
89
|
// hide empty when Table loading
|
|
80
90
|
visibility: 'hidden'
|
|
81
|
-
}))), "".concat(componentCls, "-wrapper"), _defineProperty(
|
|
91
|
+
}))), "".concat(componentCls, "-wrapper"), _defineProperty({}, "".concat(componentCls, "-pagination"), _defineProperty(_defineProperty({}, "&".concat(antCls, "-pagination"), {
|
|
82
92
|
padding: "".concat(padding, "px 0"),
|
|
83
|
-
margin: '0 !important'
|
|
84
|
-
borderTop: "1px solid ".concat(colorBorderSecondary)
|
|
93
|
+
margin: '0 !important'
|
|
85
94
|
}), "".concat(componentCls, "-batch-operation-bar"), _defineProperty({
|
|
86
95
|
position: 'absolute',
|
|
87
96
|
left: 0,
|
|
@@ -93,9 +102,7 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
93
102
|
}, "".concat(componentCls, "-batch-operation-selection-count"), {
|
|
94
103
|
margin: "0 ".concat(marginXS, "px"),
|
|
95
104
|
color: colorLink
|
|
96
|
-
})))), "".concat(
|
|
97
|
-
borderTop: 'none'
|
|
98
|
-
})))), "".concat(antCls, "-popover").concat(componentCls, "-batch-operation-selection-popover"), _defineProperty({}, "".concat(antCls, "-popover-inner"), {
|
|
105
|
+
}))))), "".concat(antCls, "-popover").concat(componentCls, "-batch-operation-selection-popover"), _defineProperty({}, "".concat(antCls, "-popover-inner"), {
|
|
99
106
|
padding: 0
|
|
100
107
|
}));
|
|
101
108
|
};
|
package/es/theme/default.js
CHANGED
|
@@ -14,16 +14,6 @@ var defaultTheme = {
|
|
|
14
14
|
token: {
|
|
15
15
|
fontFamily: "-apple-system, 'Noto Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
|
|
16
16
|
fontFamilyCode: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
|
|
17
|
-
fontSizeHeading1: 32,
|
|
18
|
-
fontSizeHeading2: 24,
|
|
19
|
-
fontSizeHeading3: 20,
|
|
20
|
-
fontSizeHeading4: 16,
|
|
21
|
-
fontSizeHeading5: 14,
|
|
22
|
-
lineHeightHeading1: 40 / 32,
|
|
23
|
-
lineHeightHeading2: 32 / 24,
|
|
24
|
-
lineHeightHeading3: 28 / 20,
|
|
25
|
-
lineHeightHeading4: 24 / 16,
|
|
26
|
-
lineHeightHeading5: 22 / 14,
|
|
27
17
|
colorPrimaryBg: '#EAF1FF',
|
|
28
18
|
colorPrimary: '#006AFF',
|
|
29
19
|
colorPrimaryBgHover: '#EAF1FF',
|
|
@@ -101,7 +91,8 @@ var defaultTheme = {
|
|
|
101
91
|
fontSize: 12,
|
|
102
92
|
// @ts-ignore
|
|
103
93
|
// fontHeight is internal token
|
|
104
|
-
fontHeight: 20
|
|
94
|
+
fontHeight: 20,
|
|
95
|
+
lastItemColor: '#5c6b8a'
|
|
105
96
|
},
|
|
106
97
|
InputNumber: {
|
|
107
98
|
handleVisible: true
|
|
@@ -116,6 +107,14 @@ var defaultTheme = {
|
|
|
116
107
|
multipleItemBorderColor: tagColorBorder,
|
|
117
108
|
multipleItemBorderColorDisabled: tagColorBorder
|
|
118
109
|
},
|
|
110
|
+
Slider: {
|
|
111
|
+
trackBg: '#006AFF',
|
|
112
|
+
trackHoverBg: '#5189fb',
|
|
113
|
+
trackBgDisabled: '#b3ccff',
|
|
114
|
+
handleColor: '#006AFF',
|
|
115
|
+
handleActiveColor: '#5189fb',
|
|
116
|
+
handleColorDisabled: '#b3ccff'
|
|
117
|
+
},
|
|
119
118
|
Tag: {
|
|
120
119
|
defaultColor: '#5c6b8a',
|
|
121
120
|
colorBorder: tagColorBorder
|
|
@@ -312,6 +312,9 @@
|
|
|
312
312
|
@colorFillSecondary: rgba(0, 0, 0, 0.06);
|
|
313
313
|
@colorFillTertiary: rgba(0, 0, 0, 0.04);
|
|
314
314
|
@colorFillQuaternary: rgba(0, 0, 0, 0.02);
|
|
315
|
+
@colorBgSolid: rgb(0, 0, 0);
|
|
316
|
+
@colorBgSolidHover: rgba(0, 0, 0, 0.75);
|
|
317
|
+
@colorBgSolidActive: rgba(0, 0, 0, 0.95);
|
|
315
318
|
@colorBgLayout: #f2f3f5;
|
|
316
319
|
@colorBgContainer: #ffffff;
|
|
317
320
|
@colorBgElevated: #ffffff;
|
|
@@ -339,6 +342,7 @@
|
|
|
339
342
|
@colorSuccessTextActive: #009c6d;
|
|
340
343
|
@colorErrorBg: #fff2f0;
|
|
341
344
|
@colorErrorBgHover: #ffe2de;
|
|
345
|
+
@colorErrorBgFilledHover: #ffd7d3;
|
|
342
346
|
@colorErrorBgActive: #ffbcb5;
|
|
343
347
|
@colorErrorBorder: #ffbcb5;
|
|
344
348
|
@colorErrorBorderHover: #ff948c;
|
|
@@ -430,7 +434,7 @@
|
|
|
430
434
|
@colorErrorOutline: rgba(255, 38, 5, 0.06);
|
|
431
435
|
@colorWarningOutline: rgba(255, 195, 5, 0.1);
|
|
432
436
|
@fontSizeIcon: 12;
|
|
433
|
-
@lineWidthFocus:
|
|
437
|
+
@lineWidthFocus: 3;
|
|
434
438
|
@controlInteractiveSize: 16;
|
|
435
439
|
@controlItemBgHover: rgba(0, 0, 0, 0.04);
|
|
436
440
|
@controlItemBgActive: #e6f4ff;
|
|
@@ -312,6 +312,9 @@
|
|
|
312
312
|
@colorFillSecondary: #e2e8f3;
|
|
313
313
|
@colorFillTertiary: #f3f6fc;
|
|
314
314
|
@colorFillQuaternary: #f8fafe;
|
|
315
|
+
@colorBgSolid: rgb(0, 0, 0);
|
|
316
|
+
@colorBgSolidHover: rgba(0, 0, 0, 0.75);
|
|
317
|
+
@colorBgSolidActive: rgba(0, 0, 0, 0.95);
|
|
315
318
|
@colorBgLayout: #f3f6fc;
|
|
316
319
|
@colorBgContainer: #ffffff;
|
|
317
320
|
@colorBgElevated: #ffffff;
|
|
@@ -339,6 +342,7 @@
|
|
|
339
342
|
@colorSuccessTextActive: #00b378;
|
|
340
343
|
@colorErrorBg: #ffebeb;
|
|
341
344
|
@colorErrorBgHover: #ffd6d6;
|
|
345
|
+
@colorErrorBgFilledHover: #ffd7d3;
|
|
342
346
|
@colorErrorBgActive: #ffbcb5;
|
|
343
347
|
@colorErrorBorder: #ffb3b3;
|
|
344
348
|
@colorErrorBorderHover: #ff7575;
|
|
@@ -373,7 +377,7 @@
|
|
|
373
377
|
@fontSizeLG: 14;
|
|
374
378
|
@fontSizeXL: 16;
|
|
375
379
|
@fontSizeHeading1: 32;
|
|
376
|
-
@fontSizeHeading2:
|
|
380
|
+
@fontSizeHeading2: 26;
|
|
377
381
|
@fontSizeHeading3: 20;
|
|
378
382
|
@fontSizeHeading4: 16;
|
|
379
383
|
@fontSizeHeading5: 14;
|
|
@@ -384,7 +388,7 @@
|
|
|
384
388
|
@fontHeightLG: 22;
|
|
385
389
|
@fontHeightSM: 18;
|
|
386
390
|
@lineHeightHeading1: 1.25;
|
|
387
|
-
@lineHeightHeading2: 1.
|
|
391
|
+
@lineHeightHeading2: 1.3076923076923077;
|
|
388
392
|
@lineHeightHeading3: 1.4;
|
|
389
393
|
@lineHeightHeading4: 1.5;
|
|
390
394
|
@lineHeightHeading5: 1.5714285714285714;
|
|
@@ -430,7 +434,7 @@
|
|
|
430
434
|
@colorErrorOutline: rgba(255, 5, 5, 0.08);
|
|
431
435
|
@colorWarningOutline: rgba(255, 164, 19, 0.11);
|
|
432
436
|
@fontSizeIcon: 10;
|
|
433
|
-
@lineWidthFocus:
|
|
437
|
+
@lineWidthFocus: 3;
|
|
434
438
|
@controlOutlineWidth: 2;
|
|
435
439
|
@controlInteractiveSize: 14;
|
|
436
440
|
@controlItemBgHover: #f3f6fc;
|
package/es/theme/style/dark.less
CHANGED
|
@@ -312,6 +312,9 @@
|
|
|
312
312
|
@colorFillSecondary: rgba(255, 255, 255, 0.12);
|
|
313
313
|
@colorFillTertiary: rgba(255, 255, 255, 0.08);
|
|
314
314
|
@colorFillQuaternary: rgba(255, 255, 255, 0.04);
|
|
315
|
+
@colorBgSolid: rgba(255, 255, 255, 0.95);
|
|
316
|
+
@colorBgSolidHover: rgb(255, 255, 255);
|
|
317
|
+
@colorBgSolidActive: rgba(255, 255, 255, 0.9);
|
|
315
318
|
@colorBgLayout: #000000;
|
|
316
319
|
@colorBgContainer: #141414;
|
|
317
320
|
@colorBgElevated: #1f1f1f;
|
|
@@ -339,6 +342,7 @@
|
|
|
339
342
|
@colorSuccessTextActive: #0e845d;
|
|
340
343
|
@colorErrorBg: #2b1416;
|
|
341
344
|
@colorErrorBgHover: #44191a;
|
|
345
|
+
@colorErrorBgFilledHover: #421a1b;
|
|
342
346
|
@colorErrorBgActive: #591f1f;
|
|
343
347
|
@colorErrorBorder: #591f1f;
|
|
344
348
|
@colorErrorBorderHover: #7b2525;
|
|
@@ -428,7 +432,7 @@
|
|
|
428
432
|
@colorErrorOutline: rgba(250, 20, 40, 0.1);
|
|
429
433
|
@colorWarningOutline: rgba(180, 93, 0, 0.15);
|
|
430
434
|
@fontSizeIcon: 12;
|
|
431
|
-
@lineWidthFocus:
|
|
435
|
+
@lineWidthFocus: 3;
|
|
432
436
|
@controlOutlineWidth: 2;
|
|
433
437
|
@controlInteractiveSize: 16;
|
|
434
438
|
@controlItemBgHover: rgba(255, 255, 255, 0.08);
|
|
@@ -312,6 +312,9 @@
|
|
|
312
312
|
@colorFillSecondary: #e2e8f3;
|
|
313
313
|
@colorFillTertiary: #f3f6fc;
|
|
314
314
|
@colorFillQuaternary: #f8fafe;
|
|
315
|
+
@colorBgSolid: rgb(0, 0, 0);
|
|
316
|
+
@colorBgSolidHover: rgba(0, 0, 0, 0.75);
|
|
317
|
+
@colorBgSolidActive: rgba(0, 0, 0, 0.95);
|
|
315
318
|
@colorBgLayout: #f3f6fc;
|
|
316
319
|
@colorBgContainer: #ffffff;
|
|
317
320
|
@colorBgElevated: #ffffff;
|
|
@@ -339,6 +342,7 @@
|
|
|
339
342
|
@colorSuccessTextActive: #00b378;
|
|
340
343
|
@colorErrorBg: #ffebeb;
|
|
341
344
|
@colorErrorBgHover: #ffd6d6;
|
|
345
|
+
@colorErrorBgFilledHover: #ffd7d3;
|
|
342
346
|
@colorErrorBgActive: #ffbcb5;
|
|
343
347
|
@colorErrorBorder: #ffb3b3;
|
|
344
348
|
@colorErrorBorderHover: #ff7575;
|
|
@@ -372,22 +376,22 @@
|
|
|
372
376
|
@fontSizeSM: 12;
|
|
373
377
|
@fontSizeLG: 16;
|
|
374
378
|
@fontSizeXL: 20;
|
|
375
|
-
@fontSizeHeading1:
|
|
376
|
-
@fontSizeHeading2:
|
|
377
|
-
@fontSizeHeading3:
|
|
378
|
-
@fontSizeHeading4:
|
|
379
|
-
@fontSizeHeading5:
|
|
379
|
+
@fontSizeHeading1: 38;
|
|
380
|
+
@fontSizeHeading2: 30;
|
|
381
|
+
@fontSizeHeading3: 24;
|
|
382
|
+
@fontSizeHeading4: 20;
|
|
383
|
+
@fontSizeHeading5: 16;
|
|
380
384
|
@lineHeight: 1.5714285714285714;
|
|
381
385
|
@lineHeightLG: 1.5;
|
|
382
386
|
@lineHeightSM: 1.6666666666666667;
|
|
383
387
|
@fontHeight: 22;
|
|
384
388
|
@fontHeightLG: 24;
|
|
385
389
|
@fontHeightSM: 20;
|
|
386
|
-
@lineHeightHeading1: 1.
|
|
387
|
-
@lineHeightHeading2: 1.
|
|
388
|
-
@lineHeightHeading3: 1.
|
|
389
|
-
@lineHeightHeading4: 1.
|
|
390
|
-
@lineHeightHeading5: 1.
|
|
390
|
+
@lineHeightHeading1: 1.2105263157894737;
|
|
391
|
+
@lineHeightHeading2: 1.2666666666666666;
|
|
392
|
+
@lineHeightHeading3: 1.3333333333333333;
|
|
393
|
+
@lineHeightHeading4: 1.4;
|
|
394
|
+
@lineHeightHeading5: 1.5;
|
|
391
395
|
@sizeXXL: 48;
|
|
392
396
|
@sizeXL: 32;
|
|
393
397
|
@sizeLG: 24;
|
|
@@ -430,7 +434,7 @@
|
|
|
430
434
|
@colorErrorOutline: rgba(255, 5, 5, 0.08);
|
|
431
435
|
@colorWarningOutline: rgba(255, 164, 19, 0.11);
|
|
432
436
|
@fontSizeIcon: 12;
|
|
433
|
-
@lineWidthFocus:
|
|
437
|
+
@lineWidthFocus: 3;
|
|
434
438
|
@controlOutlineWidth: 2;
|
|
435
439
|
@controlInteractiveSize: 16;
|
|
436
440
|
@controlItemBgHover: #f3f6fc;
|
package/lib/button/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export * from 'antd/es/button';
|
|
4
4
|
export type ButtonProps = AntButtonProps;
|
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<
|
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
|
|
6
6
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
7
7
|
__ANT_BUTTON: boolean;
|
|
8
8
|
};
|
|
@@ -26,12 +26,15 @@ module.exports = __toCommonJS(style_exports);
|
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
27
|
var genButtonStyle = (token) => {
|
|
28
28
|
const { componentCls } = token;
|
|
29
|
+
const primaryBtnCls = `${componentCls}${componentCls}-primary:not([disabled]):not(${componentCls}-disabled):not(${componentCls}-dangerous):not(${componentCls}-background-ghost)`;
|
|
30
|
+
const primaryAndCompactItemBtnCls = `${componentCls}-compact-item${primaryBtnCls}`;
|
|
29
31
|
return {
|
|
30
32
|
[`${componentCls}`]: {
|
|
31
33
|
// remove box-shadow for button
|
|
32
34
|
boxShadow: "none !important"
|
|
33
35
|
},
|
|
34
|
-
|
|
36
|
+
// primary button
|
|
37
|
+
[`${primaryBtnCls}`]: {
|
|
35
38
|
background: "linear-gradient(-59deg, #002BFF 0%, #0080FF 100%)",
|
|
36
39
|
border: "none",
|
|
37
40
|
["&:hover"]: {
|
|
@@ -40,6 +43,23 @@ var genButtonStyle = (token) => {
|
|
|
40
43
|
["&:active"]: {
|
|
41
44
|
background: "linear-gradient(120deg, #0060E6 0%, #0013E6 100%)"
|
|
42
45
|
}
|
|
46
|
+
},
|
|
47
|
+
// primary button in compact item
|
|
48
|
+
[`${primaryBtnCls}${componentCls}-compact-last-item`]: {
|
|
49
|
+
background: "linear-gradient(-59deg, #002BFF 0%, #002BFF 100%)",
|
|
50
|
+
["&:hover"]: {
|
|
51
|
+
background: "linear-gradient(120deg, #1AA0FF 0%, #1A53FF 100%)"
|
|
52
|
+
},
|
|
53
|
+
["&:active"]: {
|
|
54
|
+
background: "linear-gradient(120deg, #0060E6 0%, #0013E6 100%)"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[`${primaryAndCompactItemBtnCls}+${primaryAndCompactItemBtnCls}:before`]: {
|
|
58
|
+
height: "100%",
|
|
59
|
+
top: 0
|
|
60
|
+
},
|
|
61
|
+
[`${primaryAndCompactItemBtnCls}:hover`]: {
|
|
62
|
+
zIndex: 0
|
|
43
63
|
}
|
|
44
64
|
};
|
|
45
65
|
};
|
package/lib/card/style/index.js
CHANGED
|
@@ -70,12 +70,17 @@ var genCardStyle = (token) => {
|
|
|
70
70
|
},
|
|
71
71
|
[`${componentCls}${componentCls}-no-divider:not(${componentCls}-contain-tabs)`]: {
|
|
72
72
|
[`${componentCls}-body`]: {
|
|
73
|
-
padding: `0 ${paddingLG}px ${
|
|
73
|
+
padding: `0 ${paddingLG}px ${paddingLG}px ${paddingLG}px`
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
[`${componentCls}-small${componentCls}-no-divider:not(${componentCls}-contain-tabs)`]: {
|
|
77
77
|
[`${componentCls}-body`]: {
|
|
78
|
-
padding: `0 ${paddingSM}px
|
|
78
|
+
padding: `0 ${paddingSM}px ${paddingSM}px ${paddingSM}px`
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[`${componentCls}-small${componentCls}-contain-tabs >${componentCls}-head`]: {
|
|
82
|
+
[`${componentCls}-head-title, ${componentCls}-head-extra`]: {
|
|
83
|
+
paddingTop: token.paddingXS
|
|
79
84
|
}
|
|
80
85
|
},
|
|
81
86
|
[`${componentCls}${componentCls}-contain-tabs`]: {
|
package/lib/checkbox/index.d.ts
CHANGED
package/lib/checkbox/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
5
11
|
var __copyProps = (to, from, except, desc) => {
|
|
6
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,12 +17,54 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
17
|
return to;
|
|
12
18
|
};
|
|
13
19
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
14
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
29
|
|
|
16
|
-
// src/checkbox/index.
|
|
30
|
+
// src/checkbox/index.tsx
|
|
17
31
|
var checkbox_exports = {};
|
|
32
|
+
__export(checkbox_exports, {
|
|
33
|
+
default: () => checkbox_default
|
|
34
|
+
});
|
|
18
35
|
module.exports = __toCommonJS(checkbox_exports);
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_config_provider = __toESM(require("../config-provider"));
|
|
40
|
+
var import_style = __toESM(require("./style"));
|
|
19
41
|
__reExport(checkbox_exports, require("antd/es/checkbox"), module.exports);
|
|
42
|
+
var InternalCheckbox = import_react.default.forwardRef(
|
|
43
|
+
({ prefixCls: customizePrefixCls, className, ...restProps }, ref) => {
|
|
44
|
+
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
45
|
+
const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
|
|
46
|
+
const { wrapSSR } = (0, import_style.default)(prefixCls);
|
|
47
|
+
const checkboxCls = (0, import_classnames.default)(className);
|
|
48
|
+
return wrapSSR(
|
|
49
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
50
|
+
import_antd.Checkbox,
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
prefixCls: customizePrefixCls,
|
|
54
|
+
className: checkboxCls,
|
|
55
|
+
...restProps
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
var Checkbox = InternalCheckbox;
|
|
62
|
+
Checkbox.Group = import_antd.Checkbox.Group;
|
|
63
|
+
Checkbox.__ANT_CHECKBOX = import_antd.Checkbox.__ANT_CHECKBOX;
|
|
64
|
+
if (process.env.NODE_ENV !== "production") {
|
|
65
|
+
Checkbox.displayName = import_antd.Checkbox.displayName;
|
|
66
|
+
}
|
|
67
|
+
var checkbox_default = Checkbox;
|
|
20
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
69
|
0 && (module.exports = {
|
|
22
70
|
...require("antd/es/checkbox")
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
3
|
+
export type CheckboxToken = FullToken<'Checkbox'>;
|
|
4
|
+
export declare const genCheckboxStyle: GenerateStyle<CheckboxToken>;
|
|
5
|
+
declare const _default: (prefixCls: string) => {
|
|
6
|
+
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
+
hashId: string;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/checkbox/style/index.ts
|
|
20
|
+
var style_exports = {};
|
|
21
|
+
__export(style_exports, {
|
|
22
|
+
default: () => style_default,
|
|
23
|
+
genCheckboxStyle: () => genCheckboxStyle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(style_exports);
|
|
26
|
+
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
|
+
var genCheckboxStyle = (token) => {
|
|
28
|
+
const { componentCls, fontSize, fontSizeLG, lineHeight } = token;
|
|
29
|
+
return {
|
|
30
|
+
[`${componentCls}-wrapper`]: {
|
|
31
|
+
[`${componentCls}`]: {
|
|
32
|
+
alignSelf: "baseline",
|
|
33
|
+
[`${componentCls}-inner`]: {
|
|
34
|
+
transform: `translate(0px, ${(fontSize * lineHeight - fontSizeLG) / 2}px)`
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
var style_default = (prefixCls) => {
|
|
41
|
+
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Checkbox", (token) => {
|
|
42
|
+
return [genCheckboxStyle(token)];
|
|
43
|
+
});
|
|
44
|
+
return useStyle(prefixCls);
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
genCheckboxStyle
|
|
49
|
+
});
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ConfigProvider as AntConfigProvider } from 'antd';
|
|
3
3
|
import type { ConfigProviderProps as AntConfigProviderProps, ConfigConsumerProps as AntConfigConsumerProps, ThemeConfig as AntThemeConfig } from 'antd/es/config-provider';
|
|
4
4
|
import type { ComponentStyleConfig } from 'antd/es/config-provider/context';
|
|
5
|
+
import type { AppProps } from 'antd/es/app';
|
|
5
6
|
import type { PaginationConfig } from 'antd/es/pagination';
|
|
6
7
|
import type { SpinIndicator } from 'antd/es/spin';
|
|
7
8
|
import type { StyleProviderProps } from '@ant-design/cssinjs';
|
|
@@ -41,6 +42,7 @@ export interface ConfigProviderProps extends AntConfigProviderProps {
|
|
|
41
42
|
table?: TableConfig;
|
|
42
43
|
injectStaticFunction?: boolean;
|
|
43
44
|
styleProviderProps?: StyleProviderProps;
|
|
45
|
+
appProps?: AppProps;
|
|
44
46
|
}
|
|
45
47
|
export interface ExtendedConfigConsumerProps {
|
|
46
48
|
navigate?: NavigateFunction;
|
|
@@ -65,6 +65,7 @@ var ConfigProvider = ({
|
|
|
65
65
|
tabs,
|
|
66
66
|
injectStaticFunction = true,
|
|
67
67
|
styleProviderProps,
|
|
68
|
+
appProps,
|
|
68
69
|
...restProps
|
|
69
70
|
}) => {
|
|
70
71
|
var _a, _b;
|
|
@@ -128,7 +129,7 @@ var ConfigProvider = ({
|
|
|
128
129
|
hideOnSinglePage: ((_b = parentContext.pagination) == null ? void 0 : _b.showSizeChanger) ? false : hideOnSinglePage !== void 0 ? hideOnSinglePage : parentExtendedContext.hideOnSinglePage
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
|
-
/* @__PURE__ */ import_react.default.createElement(import_cssinjs.StyleProvider, { ...mergedStyleProviderProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, { component: false }, children, injectStaticFunction && /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)))
|
|
132
|
+
/* @__PURE__ */ import_react.default.createElement(import_cssinjs.StyleProvider, { ...mergedStyleProviderProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, { component: false, ...appProps }, children, injectStaticFunction && /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)))
|
|
132
133
|
)
|
|
133
134
|
);
|
|
134
135
|
};
|
|
@@ -10,11 +10,11 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
|
|
|
10
10
|
sm?: number;
|
|
11
11
|
xs?: number;
|
|
12
12
|
};
|
|
13
|
-
prefixCls?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
13
|
className?: string;
|
|
16
|
-
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
prefixCls?: string;
|
|
17
16
|
key?: React.Key;
|
|
17
|
+
label?: React.ReactNode;
|
|
18
18
|
labelStyle?: React.CSSProperties;
|
|
19
19
|
contentStyle?: React.CSSProperties;
|
|
20
20
|
}[];
|
package/lib/empty/default.js
CHANGED
|
@@ -36,50 +36,19 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var DefaultEmptyImg = (props) => /* @__PURE__ */ import_react.default.createElement(
|
|
37
37
|
"svg",
|
|
38
38
|
{
|
|
39
|
-
width: "
|
|
40
|
-
height: "
|
|
41
|
-
viewBox: "0 0
|
|
39
|
+
width: "56px",
|
|
40
|
+
height: "56px",
|
|
41
|
+
viewBox: "0 0 56 56",
|
|
42
42
|
version: "1.1",
|
|
43
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
44
|
-
...props
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
45
44
|
},
|
|
46
|
-
/* @__PURE__ */ import_react.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(
|
|
47
|
-
"rect",
|
|
48
|
-
{
|
|
49
|
-
fill: "#E6E6E6",
|
|
50
|
-
x: "5.3055",
|
|
51
|
-
y: "0",
|
|
52
|
-
width: "35.79525",
|
|
53
|
-
height: "28.134",
|
|
54
|
-
rx: "2.72025"
|
|
55
|
-
}
|
|
56
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
-
"rect",
|
|
58
|
-
{
|
|
59
|
-
fill: "#F8F8F8",
|
|
60
|
-
x: "11.04975",
|
|
61
|
-
y: "5.0625",
|
|
62
|
-
width: "24.1515",
|
|
63
|
-
height: "1.593",
|
|
64
|
-
rx: "0.7965"
|
|
65
|
-
}
|
|
66
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
67
|
-
"rect",
|
|
68
|
-
{
|
|
69
|
-
fill: "#F8F8F8",
|
|
70
|
-
x: "11.04975",
|
|
71
|
-
y: "10.60425",
|
|
72
|
-
width: "16.08525",
|
|
73
|
-
height: "1.593",
|
|
74
|
-
rx: "0.7965"
|
|
75
|
-
}
|
|
76
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
45
|
+
/* @__PURE__ */ import_react.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(4.2, 4.2)", fillRule: "nonzero" }, /* @__PURE__ */ import_react.default.createElement("rect", { fill: "#CDD5E4", x: "5.495", y: "0", width: "37.121", height: "29.176", rx: "4.03" }), /* @__PURE__ */ import_react.default.createElement("rect", { fill: "#F8F8F8", x: "11.452", y: "5.257", width: "25.046", height: "1.652", rx: "0.826" }), /* @__PURE__ */ import_react.default.createElement("rect", { fill: "#F8F8F8", x: "11.452", y: "10.997", width: "16.681", height: "1.652", rx: "0.826" }), /* @__PURE__ */ import_react.default.createElement(
|
|
77
46
|
"path",
|
|
78
47
|
{
|
|
79
|
-
d: "
|
|
80
|
-
fill: "#
|
|
48
|
+
d: "M45.143,48.083 L2.821,48.083 C1.267,48.083 0,46.823 0,45.262 L0,21.028 C0,19.474 1.26,18.207 2.821,18.207 L19.264,18.207 C20.216,18.207 21.098,18.683 21.623,19.481 L23.149,21.798 C23.667,22.589 24.556,23.072 25.508,23.072 L45.15,23.072 C46.704,23.072 47.971,24.332 47.971,25.893 L47.971,45.262 C47.971,46.816 46.711,48.083 45.15,48.083 L45.143,48.083 Z",
|
|
49
|
+
fill: "#F3F6FC"
|
|
81
50
|
}
|
|
82
|
-
)))
|
|
51
|
+
)))
|
|
83
52
|
);
|
|
84
53
|
if (process.env.NODE_ENV !== "production") {
|
|
85
54
|
DefaultEmptyImg.displayName = "DefaultEmptyImg";
|
package/lib/index.d.ts
CHANGED
|
@@ -38,10 +38,16 @@ export { default as Input } from './input';
|
|
|
38
38
|
export type { InputProps } from './input';
|
|
39
39
|
export { default as InputNumber } from './input-number';
|
|
40
40
|
export type { InputNumberProps } from './input-number';
|
|
41
|
+
export { default as Radio } from './radio';
|
|
42
|
+
export type { RadioProps } from './radio';
|
|
43
|
+
export { default as Checkbox } from './checkbox';
|
|
44
|
+
export type { CheckboxProps } from './checkbox';
|
|
41
45
|
export { default as Select } from './select';
|
|
42
46
|
export type { SelectProps } from './select';
|
|
43
47
|
export { default as TreeSelect } from './tree-select';
|
|
44
48
|
export type { TreeSelectProps } from './tree-select';
|
|
49
|
+
export { default as Slider } from './slider';
|
|
50
|
+
export type { SliderSingleProps, SliderRangeProps } from './slider';
|
|
45
51
|
export { default as Tooltip } from './tooltip';
|
|
46
52
|
export type { TooltipProps } from './tooltip';
|
|
47
53
|
export { default as Segmented } from './segmented';
|