@oceanbase/design 0.2.25 → 0.2.27
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/_util/type.d.ts +4 -0
- package/es/_util/type.js +1 -0
- package/es/badge/index.d.ts +3 -4
- package/es/badge/index.js +7 -3
- package/es/button/index.d.ts +2 -4
- package/es/button/index.js +7 -5
- package/es/card/index.d.ts +2 -4
- package/es/card/index.js +7 -5
- package/es/config-provider/index.js +9 -11
- package/es/drawer/Drawer.d.ts +18 -0
- package/es/drawer/Drawer.js +69 -0
- package/es/drawer/index.d.ts +2 -0
- package/es/drawer/index.js +3 -1
- package/es/drawer/style/index.d.ts +9 -0
- package/es/drawer/style/index.js +31 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +1 -0
- package/es/modal/style/index.js +3 -2
- package/es/select/index.d.ts +8 -2
- package/es/select/index.js +6 -6
- package/es/spin/index.js +1 -0
- package/es/static-function/index.d.ts +1 -1
- package/es/static-function/index.js +2 -2
- package/es/table/index.d.ts +17 -12
- package/es/table/index.js +19 -16
- package/es/tag/index.d.ts +2 -4
- package/es/tag/index.js +7 -5
- package/es/theme/dark.d.ts +56 -0
- package/es/theme/dark.js +10 -0
- package/es/theme/default.d.ts +94 -72
- package/es/theme/default.js +95 -72
- package/es/theme/index.d.ts +8 -13
- package/es/theme/index.js +15 -20
- package/es/theme/style/compact.less +211 -186
- package/es/theme/style/dark.less +194 -169
- package/es/theme/style/default.less +208 -183
- package/es/tooltip/index.d.ts +2 -2
- package/es/tooltip/index.js +3 -2
- package/lib/_util/type.d.ts +4 -0
- package/lib/_util/type.js +17 -0
- package/lib/badge/index.d.ts +3 -4
- package/lib/badge/index.js +56 -51
- package/lib/button/index.d.ts +2 -4
- package/lib/button/index.js +15 -10
- package/lib/card/index.d.ts +2 -4
- package/lib/card/index.js +40 -34
- package/lib/config-provider/index.js +8 -15
- package/lib/drawer/Drawer.d.ts +18 -0
- package/lib/drawer/Drawer.js +85 -0
- package/lib/drawer/index.d.ts +2 -0
- package/lib/drawer/index.js +19 -0
- package/lib/drawer/style/index.d.ts +9 -0
- package/lib/drawer/style/index.js +60 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -0
- package/lib/modal/style/index.js +3 -2
- package/lib/select/index.d.ts +8 -2
- package/lib/select/index.js +14 -10
- package/lib/spin/index.js +1 -0
- package/lib/static-function/index.d.ts +1 -1
- package/lib/static-function/index.js +1 -1
- package/lib/table/index.d.ts +17 -12
- package/lib/table/index.js +17 -14
- package/lib/tag/index.d.ts +2 -4
- package/lib/tag/index.js +25 -28
- package/lib/theme/dark.d.ts +56 -0
- package/lib/theme/dark.js +44 -0
- package/lib/theme/default.d.ts +94 -72
- package/lib/theme/default.js +94 -71
- package/lib/theme/index.d.ts +8 -13
- package/lib/theme/index.js +27 -21
- package/lib/theme/style/compact.less +211 -186
- package/lib/theme/style/dark.less +194 -169
- package/lib/theme/style/default.less +208 -183
- package/lib/tooltip/index.d.ts +2 -2
- package/lib/tooltip/index.js +83 -80
- package/package.json +6 -4
package/lib/theme/default.js
CHANGED
|
@@ -22,75 +22,98 @@ __export(default_exports, {
|
|
|
22
22
|
default: () => default_default
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(default_exports);
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
25
|
+
var defaultTheme = {
|
|
26
|
+
token: {
|
|
27
|
+
colorPrimaryBg: "#EAF1FF",
|
|
28
|
+
colorPrimary: "#006AFF",
|
|
29
|
+
colorPrimaryBgHover: "#EAF1FF",
|
|
30
|
+
colorPrimaryBorder: "#B3CCFF",
|
|
31
|
+
colorPrimaryBorderHover: "#5189FB",
|
|
32
|
+
colorPrimaryHover: "#5189FB",
|
|
33
|
+
colorPrimaryTextHover: "#5189FB",
|
|
34
|
+
colorPrimaryText: "#006AFF",
|
|
35
|
+
colorPrimaryTextActive: "#004CE6",
|
|
36
|
+
colorSuccess: "#0ac185",
|
|
37
|
+
colorSuccessBg: "#EEF8F5",
|
|
38
|
+
colorSuccessBgHover: "#B3E6D5",
|
|
39
|
+
colorSuccessBorder: "#B3E6D5",
|
|
40
|
+
colorSuccessBorderHover: "#4DCCA2",
|
|
41
|
+
colorSuccessHover: "#4DCCA2",
|
|
42
|
+
colorSuccessActive: "#00B378",
|
|
43
|
+
colorSuccessTextHover: "#4DCCA2",
|
|
44
|
+
colorSuccessText: "#0AC185",
|
|
45
|
+
colorSuccessTextActive: "#00B378",
|
|
46
|
+
colorWarning: "#ffac33",
|
|
47
|
+
colorWarningBg: "#FFF5E5",
|
|
48
|
+
colorWarningBgHover: "#FFD699",
|
|
49
|
+
colorWarningBorder: "#FFD699",
|
|
50
|
+
colorWarningBorderHover: "#FFC166",
|
|
51
|
+
colorWarningHover: "#FFC166",
|
|
52
|
+
colorWarningActive: "#FF9700",
|
|
53
|
+
colorWarningTextHover: "#FFC166",
|
|
54
|
+
colorWarningText: "#FFAC33",
|
|
55
|
+
colorWarningTextActive: "#FF9700",
|
|
56
|
+
colorErrorBg: "#FFEBEB",
|
|
57
|
+
colorErrorBgHover: "#FFB3B3",
|
|
58
|
+
colorErrorBorder: "#FFB3B3",
|
|
59
|
+
colorErrorBorderHover: "#FF8080",
|
|
60
|
+
colorErrorHover: "#FF8080",
|
|
61
|
+
colorErrorActive: "#EC1313",
|
|
62
|
+
colorErrorTextHover: "#FF8080",
|
|
63
|
+
colorErrorText: "#FF4B4B",
|
|
64
|
+
colorErrorTextActive: "#EC1313",
|
|
65
|
+
colorError: "#ff4b4b",
|
|
66
|
+
colorInfo: "#006aff",
|
|
67
|
+
colorInfoBg: "#EAF1FF",
|
|
68
|
+
colorInfoBgHover: "#EAF1FF",
|
|
69
|
+
colorInfoBorder: "#B3CCFF",
|
|
70
|
+
colorInfoBorderHover: "#5189FB",
|
|
71
|
+
colorInfoHover: "#5189FB",
|
|
72
|
+
colorInfoActive: "#004CE6",
|
|
73
|
+
colorInfoTextHover: "#5189FB",
|
|
74
|
+
colorInfoText: "#006AFF",
|
|
75
|
+
colorInfoTextActive: "#004CE6",
|
|
76
|
+
colorTextBase: "#132039",
|
|
77
|
+
colorBgBase: "#ffffff",
|
|
78
|
+
colorText: "#132039",
|
|
79
|
+
colorTextSecondary: "#5C6B8A",
|
|
80
|
+
colorTextQuaternary: "#ABB7CF",
|
|
81
|
+
colorTextTertiary: "#8592AD",
|
|
82
|
+
colorBgContainer: "#ffffff",
|
|
83
|
+
colorBgLayout: "#F8FAFE",
|
|
84
|
+
colorBgSpotlight: "rgba(19, 32, 57, 0.8)",
|
|
85
|
+
colorBgMask: "rgba(19, 32, 57, 0.6)",
|
|
86
|
+
colorBorder: "#CDD5E4",
|
|
87
|
+
colorBorderSecondary: "#E2E8F3",
|
|
88
|
+
colorFillQuaternary: "#F8FAFE",
|
|
89
|
+
colorFillTertiary: "#F8FAFE",
|
|
90
|
+
colorFillSecondary: "#F3F6FC",
|
|
91
|
+
colorFill: "#E2E8F3",
|
|
92
|
+
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)",
|
|
93
|
+
boxShadow: "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)",
|
|
94
|
+
borderRadius: 6,
|
|
95
|
+
wireframe: false,
|
|
96
|
+
colorPrimaryActive: "#004CE6"
|
|
97
|
+
},
|
|
98
|
+
components: {
|
|
99
|
+
Dropdown: {
|
|
100
|
+
colorError: "#FF4B4B"
|
|
101
|
+
},
|
|
102
|
+
Button: {
|
|
103
|
+
borderRadius: 6
|
|
104
|
+
},
|
|
105
|
+
Segmented: {
|
|
106
|
+
itemColor: "#5C6B8A",
|
|
107
|
+
itemHoverColor: "#132039",
|
|
108
|
+
itemHoverBg: "#ffffff"
|
|
109
|
+
},
|
|
110
|
+
Rate: {
|
|
111
|
+
colorFillContent: "#E2E8F3",
|
|
112
|
+
colorText: "#F20000"
|
|
113
|
+
},
|
|
114
|
+
InputNumber: {
|
|
115
|
+
handleVisible: true
|
|
116
|
+
}
|
|
117
|
+
}
|
|
96
118
|
};
|
|
119
|
+
var default_default = defaultTheme;
|
package/lib/theme/index.d.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
export * from 'antd/
|
|
2
|
-
export * from 'antd/
|
|
1
|
+
export * from 'antd/lib/theme/internal';
|
|
2
|
+
export * from 'antd/lib/theme';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
defaultSeed: {
|
|
5
5
|
colorPrimary: string;
|
|
6
|
-
colorInfo: string;
|
|
7
6
|
colorSuccess: string;
|
|
8
7
|
colorWarning: string;
|
|
9
8
|
colorError: string;
|
|
10
|
-
|
|
11
|
-
blue: string;
|
|
12
|
-
green: string;
|
|
13
|
-
yellow: string;
|
|
14
|
-
red: string;
|
|
9
|
+
colorInfo: string;
|
|
15
10
|
colorTextBase: string;
|
|
16
11
|
colorBgBase: string;
|
|
17
12
|
colorLink: string;
|
|
@@ -20,6 +15,7 @@ declare const _default: {
|
|
|
20
15
|
fontSize: number;
|
|
21
16
|
lineWidth: number;
|
|
22
17
|
lineType: string;
|
|
18
|
+
borderRadius: number;
|
|
23
19
|
sizeUnit: number;
|
|
24
20
|
sizeStep: number;
|
|
25
21
|
sizePopupArrow: number;
|
|
@@ -39,11 +35,15 @@ declare const _default: {
|
|
|
39
35
|
motionEaseOut: string;
|
|
40
36
|
wireframe: boolean;
|
|
41
37
|
motion: boolean;
|
|
38
|
+
blue: string;
|
|
42
39
|
purple: string;
|
|
43
40
|
cyan: string;
|
|
41
|
+
green: string;
|
|
44
42
|
magenta: string;
|
|
45
43
|
pink: string;
|
|
44
|
+
red: string;
|
|
46
45
|
orange: string;
|
|
46
|
+
yellow: string;
|
|
47
47
|
volcano: string;
|
|
48
48
|
geekblue: string;
|
|
49
49
|
lime: string;
|
|
@@ -56,11 +56,6 @@ declare const _default: {
|
|
|
56
56
|
};
|
|
57
57
|
hashed: boolean;
|
|
58
58
|
};
|
|
59
|
-
components: {
|
|
60
|
-
InputNumber: {
|
|
61
|
-
handleVisible: true;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
59
|
useToken: () => {
|
|
65
60
|
theme: import("@ant-design/cssinjs").Theme<import("antd/es/theme/internal").SeedToken, import("antd/es/theme/interface").MapToken>;
|
|
66
61
|
token: import("antd").GlobalToken;
|
package/lib/theme/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
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;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
17
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
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/theme/index.ts
|
|
@@ -24,36 +34,32 @@ __export(theme_exports, {
|
|
|
24
34
|
});
|
|
25
35
|
module.exports = __toCommonJS(theme_exports);
|
|
26
36
|
var import_antd = require("antd");
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
var import_lodash = require("lodash");
|
|
38
|
+
var import_default = __toESM(require("./default"));
|
|
39
|
+
__reExport(theme_exports, require("antd/lib/theme/internal"), module.exports);
|
|
40
|
+
__reExport(theme_exports, require("antd/lib/theme"), module.exports);
|
|
41
|
+
var seedTokenKeys = Object.keys(import_antd.theme.defaultSeed);
|
|
42
|
+
var seedToken = {
|
|
43
|
+
...(0, import_lodash.pick)(import_default.default.token, seedTokenKeys),
|
|
44
|
+
// some special seed token should set to ''
|
|
45
|
+
// ref: https://github.com/ant-design/ant-design/blob/master/components/theme/themes/seed.ts#L32
|
|
46
|
+
colorBgBase: "",
|
|
47
|
+
colorTextBase: "",
|
|
48
|
+
colorLink: ""
|
|
49
|
+
};
|
|
29
50
|
var defaultSeed = {
|
|
30
51
|
...import_antd.theme.defaultSeed,
|
|
31
|
-
|
|
32
|
-
colorInfo: "#006aff",
|
|
33
|
-
colorSuccess: "#0ac185",
|
|
34
|
-
colorWarning: "#ffac33",
|
|
35
|
-
colorError: "#ff4b4b",
|
|
36
|
-
borderRadius: 6,
|
|
37
|
-
// 以下四种预设颜色和语义色保持一致
|
|
38
|
-
blue: "#006aff",
|
|
39
|
-
green: "#0ac185",
|
|
40
|
-
yellow: "#ffac33",
|
|
41
|
-
red: "#ff4b4b"
|
|
52
|
+
...seedToken
|
|
42
53
|
};
|
|
43
54
|
var defaultConfig = import_antd.theme.defaultConfig;
|
|
44
55
|
defaultConfig.token = defaultSeed;
|
|
45
56
|
var theme_default = {
|
|
46
57
|
...import_antd.theme,
|
|
47
58
|
defaultSeed,
|
|
48
|
-
defaultConfig
|
|
49
|
-
components: {
|
|
50
|
-
InputNumber: {
|
|
51
|
-
handleVisible: true
|
|
52
|
-
}
|
|
53
|
-
}
|
|
59
|
+
defaultConfig
|
|
54
60
|
};
|
|
55
61
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
62
|
0 && (module.exports = {
|
|
57
|
-
...require("antd/
|
|
58
|
-
...require("antd/
|
|
63
|
+
...require("antd/lib/theme/internal"),
|
|
64
|
+
...require("antd/lib/theme")
|
|
59
65
|
});
|