@oceanbase/design 1.0.0-alpha.5 → 1.0.0-alpha.7
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.css +1 -1
- package/dist/design.min.js +1 -1
- package/dist/reset.css +2 -1
- package/dist/static/Inter-Medium.ea234620.woff2 +0 -0
- package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
- package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
- package/es/alert/index.js +1 -4
- package/es/alert/style/index.js +17 -19
- package/es/app/style/index.js +3 -6
- package/es/button/style/index.js +10 -2
- package/es/config-provider/index.d.ts +2 -1
- package/es/config-provider/index.js +43 -16
- package/es/descriptions/hooks/useItems.d.ts +6 -6
- package/es/descriptions/style/index.js +3 -1
- package/es/fonts/Inter-Medium.woff2 +0 -0
- package/es/fonts/Inter-Regular.woff2 +0 -0
- package/es/fonts/Inter-SemiBold.woff2 +0 -0
- package/es/form/style/index.js +3 -1
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/es/input/Input.d.ts +2 -0
- package/es/input/Input.js +23 -7
- package/es/input/Password.js +17 -5
- package/es/input/Search.js +17 -5
- package/es/input/TextArea.js +17 -5
- package/es/input/style/index.d.ts +9 -0
- package/es/input/style/index.js +17 -0
- package/es/input-number/index.js +11 -4
- package/es/input-number/style/index.d.ts +9 -0
- package/es/input-number/style/index.js +22 -0
- package/es/locale/ja-JP.js +2 -2
- package/es/segmented/index.d.ts +1 -0
- package/es/segmented/index.js +15 -7
- package/es/segmented/style/index.js +1 -0
- package/es/style/global.d.ts +8 -0
- package/es/style/global.js +118 -0
- package/es/style/reset.css +2 -1
- package/es/table/index.d.ts +2 -2
- package/es/table/style/index.js +5 -1
- package/es/theme/compact.d.ts +1 -1
- package/es/theme/compact.js +2 -6
- package/es/theme/default.d.ts +1 -1
- package/es/theme/default.js +29 -10
- package/es/typography/style/index.js +3 -0
- package/lib/alert/index.js +1 -3
- package/lib/alert/style/index.js +15 -16
- package/lib/app/style/index.js +2 -4
- package/lib/button/style/index.js +8 -2
- package/lib/config-provider/index.d.ts +2 -1
- package/lib/config-provider/index.js +60 -12
- package/lib/descriptions/hooks/useItems.d.ts +6 -6
- package/lib/descriptions/style/index.js +3 -0
- package/lib/fonts/Inter-Medium.woff2 +0 -0
- package/lib/fonts/Inter-Regular.woff2 +0 -0
- package/lib/fonts/Inter-SemiBold.woff2 +0 -0
- package/lib/form/style/index.js +4 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/input/Input.d.ts +2 -0
- package/lib/input/Input.js +35 -12
- package/lib/input/Password.js +20 -3
- package/lib/input/Search.js +30 -11
- package/lib/input/TextArea.js +20 -3
- package/lib/input/style/index.d.ts +9 -0
- package/lib/input/style/index.js +46 -0
- package/lib/input-number/index.js +18 -3
- package/lib/input-number/style/index.d.ts +9 -0
- package/lib/input-number/style/index.js +51 -0
- package/lib/locale/ja-JP.js +2 -2
- package/lib/segmented/index.d.ts +1 -0
- package/lib/segmented/index.js +10 -3
- package/lib/segmented/style/index.js +1 -0
- package/lib/style/global.d.ts +8 -0
- package/lib/style/global.js +168 -0
- package/lib/style/reset.css +2 -1
- package/lib/table/index.d.ts +2 -2
- package/lib/table/style/index.js +5 -1
- package/lib/theme/compact.d.ts +1 -1
- package/lib/theme/compact.js +1 -5
- package/lib/theme/default.d.ts +1 -1
- package/lib/theme/default.js +29 -10
- package/lib/typography/style/index.js +3 -0
- package/package.json +3 -2
- package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
- package/es/fonts/Inter.woff2 +0 -0
- package/es/global.css +0 -48
- package/lib/fonts/Inter.woff2 +0 -0
- package/lib/global.css +0 -48
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
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
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/style/global.tsx
|
|
30
|
+
var global_exports = {};
|
|
31
|
+
__export(global_exports, {
|
|
32
|
+
GlobalStyle: () => GlobalStyle,
|
|
33
|
+
default: () => global_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(global_exports);
|
|
36
|
+
var import_cssinjs = require("@ant-design/cssinjs");
|
|
37
|
+
var import_theme = __toESM(require("../theme"));
|
|
38
|
+
var import_Inter_Regular = __toESM(require("../fonts/Inter-Regular.woff2"));
|
|
39
|
+
var import_Inter_Medium = __toESM(require("../fonts/Inter-Medium.woff2"));
|
|
40
|
+
var import_Inter_SemiBold = __toESM(require("../fonts/Inter-SemiBold.woff2"));
|
|
41
|
+
var import_Consolas = __toESM(require("../fonts/Consolas.woff2"));
|
|
42
|
+
var import_HelveticaNeue = __toESM(require("../fonts/HelveticaNeue.woff2"));
|
|
43
|
+
var import_reset = require("antd/dist/reset.css");
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
+
var genGlobalStyle = (token, prefixCls) => {
|
|
46
|
+
const antCls = `.${prefixCls}`;
|
|
47
|
+
const buttonComponentCls = `${antCls}-btn`;
|
|
48
|
+
const typographyComponentCls = `${antCls}-typography`;
|
|
49
|
+
const menuComponentCls = `${antCls}-menu`;
|
|
50
|
+
return [
|
|
51
|
+
{
|
|
52
|
+
"@font-face": {
|
|
53
|
+
fontFamily: "Inter",
|
|
54
|
+
fontStyle: "lighter",
|
|
55
|
+
fontWeight: 300,
|
|
56
|
+
// load priority: local font > self-hosting font > remote font
|
|
57
|
+
src: `local('Inter'), url(${import_Inter_Regular.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2') format('woff2')`,
|
|
58
|
+
fontDisplay: "swap"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"@font-face": {
|
|
63
|
+
fontFamily: "Inter",
|
|
64
|
+
fontStyle: "normal",
|
|
65
|
+
fontWeight: 400,
|
|
66
|
+
src: `local('Inter'), url(${import_Inter_Medium.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2') format('woff2')`,
|
|
67
|
+
fontDisplay: "swap"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"@font-face": {
|
|
72
|
+
fontFamily: "Inter",
|
|
73
|
+
fontStyle: "medium",
|
|
74
|
+
fontWeight: 500,
|
|
75
|
+
src: `local('Inter'), url(${import_Inter_Medium.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2') format('woff2')`,
|
|
76
|
+
fontDisplay: "swap"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"@font-face": {
|
|
81
|
+
fontFamily: "Inter",
|
|
82
|
+
fontStyle: "semibold",
|
|
83
|
+
fontWeight: 600,
|
|
84
|
+
src: `local('Inter'), url(${import_Inter_SemiBold.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2') format('woff2')`,
|
|
85
|
+
fontDisplay: "swap"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"@font-face": {
|
|
90
|
+
fontFamily: "Consolas",
|
|
91
|
+
src: `local('Consolas'), url(${import_Consolas.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*R8bMTqAdGWgAAAAAAAAAAAAADmfOAQ/Consolas.woff2') format('woff2')`,
|
|
92
|
+
fontDisplay: "swap"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"@font-face": {
|
|
97
|
+
fontFamily: "Helvetica Neue",
|
|
98
|
+
src: `local('Helvetica Neue'), url(${import_HelveticaNeue.default}) format('woff2'), url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*3EzqR6aYJMkAAAAAAAAAAAAADmfOAQ/HelveticaNeue.woff2') format('woff2')`,
|
|
99
|
+
fontDisplay: "swap"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"pre, code, kbd, samp": {
|
|
104
|
+
fontFamily: token.fontFamilyCode
|
|
105
|
+
},
|
|
106
|
+
"*": {
|
|
107
|
+
scrollbarColor: `${token.colorFillSecondary} transparent`
|
|
108
|
+
},
|
|
109
|
+
".rc-virtual-list-scrollbar-thumb": {
|
|
110
|
+
background: `${token.colorFillSecondary} !important`
|
|
111
|
+
},
|
|
112
|
+
// link with href or data-aspm-param^="obcloud_openLink= show underline on hover
|
|
113
|
+
// except disabled and antd element
|
|
114
|
+
'a[href], a[data-aspm-param^="obcloud_openLink="]': {
|
|
115
|
+
[`&:not([disabled]):not([class^="${prefixCls}-"]):hover`]: {
|
|
116
|
+
textDecoration: "underline"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
// handle link style in button
|
|
120
|
+
[`${buttonComponentCls}${buttonComponentCls}-link:not(${buttonComponentCls}-disabled)`]: {
|
|
121
|
+
'&[href], &[data-aspm-param^="obcloud_openLink="]': {
|
|
122
|
+
"&:hover": {
|
|
123
|
+
textDecoration: "underline"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
// handle link style in typography
|
|
128
|
+
[`${typographyComponentCls}:not(${typographyComponentCls}-disabled)`]: {
|
|
129
|
+
'&[href], &[data-aspm-param^="obcloud_openLink="]': {
|
|
130
|
+
"&:hover": {
|
|
131
|
+
textDecoration: "underline"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
// handle link style in menu
|
|
136
|
+
[`${menuComponentCls}`]: {
|
|
137
|
+
[`${menuComponentCls}-item`]: {
|
|
138
|
+
[`${menuComponentCls}-title-content`]: {
|
|
139
|
+
"a:hover": {
|
|
140
|
+
textDecoration: "none"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
];
|
|
147
|
+
};
|
|
148
|
+
var GlobalStyle = ({ prefixCls = "ant" }) => {
|
|
149
|
+
const { theme, token } = import_theme.default.useToken();
|
|
150
|
+
const wrapSSR = (0, import_cssinjs.useStyleRegister)(
|
|
151
|
+
{
|
|
152
|
+
theme,
|
|
153
|
+
token,
|
|
154
|
+
path: ["global"],
|
|
155
|
+
hashId: "",
|
|
156
|
+
// Empty hashId for global styles
|
|
157
|
+
order: -1e3
|
|
158
|
+
// Inject before other styles
|
|
159
|
+
},
|
|
160
|
+
() => genGlobalStyle(token, prefixCls)
|
|
161
|
+
);
|
|
162
|
+
return wrapSSR(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {}));
|
|
163
|
+
};
|
|
164
|
+
var global_default = GlobalStyle;
|
|
165
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
166
|
+
0 && (module.exports = {
|
|
167
|
+
GlobalStyle
|
|
168
|
+
});
|
package/lib/style/reset.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/* antd/dist/reset.css is imported in global.tsx */
|
|
2
|
+
/* reserve this file for compatibility with antd */
|
package/lib/table/index.d.ts
CHANGED
|
@@ -38,8 +38,8 @@ declare const _default: (<RecordType extends AnyObject = AnyObject>(props: Table
|
|
|
38
38
|
SELECTION_ALL: "SELECT_ALL";
|
|
39
39
|
SELECTION_INVERT: "SELECT_INVERT";
|
|
40
40
|
SELECTION_NONE: "SELECT_NONE";
|
|
41
|
-
Column: <
|
|
42
|
-
ColumnGroup: <
|
|
41
|
+
Column: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType_1>) => null;
|
|
42
|
+
ColumnGroup: <RecordType_2 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_2>) => null;
|
|
43
43
|
Summary: typeof Summary;
|
|
44
44
|
useStyle: (prefixCls: string) => {
|
|
45
45
|
wrapSSR: (node: ReactNode) => ReactElement<any, string | React.JSXElementConstructor<any>>;
|
package/lib/table/style/index.js
CHANGED
|
@@ -89,7 +89,11 @@ var genTableStyle = (token) => {
|
|
|
89
89
|
},
|
|
90
90
|
// 为了避免行展开/收起时出现 border 动画,覆盖 antd 默认配置,仅设置背景色动画
|
|
91
91
|
[`tr > td`]: {
|
|
92
|
-
|
|
92
|
+
fontWeight: token.fontWeight,
|
|
93
|
+
transition: `background ${token.motionDurationMid}`,
|
|
94
|
+
a: {
|
|
95
|
+
fontWeight: token.fontWeightStrong
|
|
96
|
+
}
|
|
93
97
|
},
|
|
94
98
|
// empty style
|
|
95
99
|
[`${componentCls}-placeholder td`]: {},
|
package/lib/theme/compact.d.ts
CHANGED
package/lib/theme/compact.js
CHANGED
|
@@ -32,13 +32,9 @@ __export(compact_exports, {
|
|
|
32
32
|
default: () => compact_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(compact_exports);
|
|
35
|
-
var import_antd = require("antd");
|
|
36
35
|
var import_index = __toESM(require("./index"));
|
|
37
36
|
var compactTheme = {
|
|
38
|
-
token:
|
|
39
|
-
algorithm: import_antd.theme.compactAlgorithm,
|
|
40
|
-
token: import_index.default.defaultSeed
|
|
41
|
-
}),
|
|
37
|
+
token: import_index.default.defaultSeed,
|
|
42
38
|
components: {
|
|
43
39
|
InputNumber: {
|
|
44
40
|
handleVisible: true
|
package/lib/theme/default.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const fontFamilyEn = "Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'";
|
|
2
|
-
export declare const fontWeightWeakEn =
|
|
2
|
+
export declare const fontWeightWeakEn = 300;
|
|
3
3
|
export declare const fontWeightEn = 500;
|
|
4
4
|
export declare const fontWeightStrongEn = 600;
|
|
5
5
|
declare const _default: import("antd").ThemeConfig;
|
package/lib/theme/default.js
CHANGED
|
@@ -40,8 +40,11 @@ var colorFillQuaternary = "#F5F7FC";
|
|
|
40
40
|
var colorBorderSecondary = colorFillSecondary;
|
|
41
41
|
var fontSizeSM = 12;
|
|
42
42
|
var tagColorBorder = colorTextQuaternary;
|
|
43
|
+
var borderRadius = 4;
|
|
44
|
+
var borderRadiusMD = 6;
|
|
45
|
+
var borderRadiusLG = 8;
|
|
43
46
|
var fontFamilyEn = `Inter, 'Noto sans', sans-serif, Roboto, 'Open Sans', 'Segoe UI', 'Helvetica Neue', 'Helvetica, Arial', 'Apple Color Emoji'`;
|
|
44
|
-
var fontWeightWeakEn =
|
|
47
|
+
var fontWeightWeakEn = 300;
|
|
45
48
|
var fontWeightEn = 500;
|
|
46
49
|
var fontWeightStrongEn = 600;
|
|
47
50
|
var defaultTheme = {
|
|
@@ -52,9 +55,9 @@ var defaultTheme = {
|
|
|
52
55
|
fontWeight: 400,
|
|
53
56
|
fontWeightStrong: 500,
|
|
54
57
|
borderRadiusSM: 2,
|
|
55
|
-
borderRadius
|
|
56
|
-
borderRadiusMD
|
|
57
|
-
borderRadiusLG
|
|
58
|
+
borderRadius,
|
|
59
|
+
borderRadiusMD,
|
|
60
|
+
borderRadiusLG,
|
|
58
61
|
fontSizeSM,
|
|
59
62
|
fontSize: 13,
|
|
60
63
|
lineHeight: 20 / 13,
|
|
@@ -118,7 +121,7 @@ var defaultTheme = {
|
|
|
118
121
|
},
|
|
119
122
|
components: {
|
|
120
123
|
Alert: {
|
|
121
|
-
borderRadiusLG:
|
|
124
|
+
borderRadiusLG: borderRadiusMD
|
|
122
125
|
},
|
|
123
126
|
Badge: {
|
|
124
127
|
statusSize: 8
|
|
@@ -139,16 +142,29 @@ var defaultTheme = {
|
|
|
139
142
|
},
|
|
140
143
|
Card: {
|
|
141
144
|
headerFontSize: 16,
|
|
142
|
-
borderRadiusLG
|
|
145
|
+
borderRadiusLG
|
|
143
146
|
},
|
|
144
147
|
Collapse: {
|
|
145
148
|
colorBorder: colorBorderSecondary
|
|
146
149
|
},
|
|
150
|
+
DatePicker: {
|
|
151
|
+
borderRadiusLG: borderRadiusMD
|
|
152
|
+
},
|
|
147
153
|
Descriptions: {
|
|
148
154
|
labelColor: colorTextSecondary
|
|
149
155
|
},
|
|
156
|
+
Dropdown: {
|
|
157
|
+
borderRadiusLG: borderRadiusMD
|
|
158
|
+
},
|
|
159
|
+
Input: {
|
|
160
|
+
borderRadiusLG: borderRadiusMD
|
|
161
|
+
},
|
|
150
162
|
InputNumber: {
|
|
151
|
-
handleVisible: true
|
|
163
|
+
handleVisible: true,
|
|
164
|
+
borderRadiusLG: borderRadiusMD
|
|
165
|
+
},
|
|
166
|
+
Popover: {
|
|
167
|
+
borderRadiusLG: borderRadiusMD
|
|
152
168
|
},
|
|
153
169
|
Progress: {
|
|
154
170
|
defaultColor: colorPrimarySecondary
|
|
@@ -162,6 +178,7 @@ var defaultTheme = {
|
|
|
162
178
|
},
|
|
163
179
|
Select: {
|
|
164
180
|
// work for all multiple select component, including Select, TreeSelect and Cascader and so on
|
|
181
|
+
borderRadiusLG: borderRadiusMD,
|
|
165
182
|
multipleItemBg: colorFillQuaternary,
|
|
166
183
|
multipleItemBorderColor: tagColorBorder,
|
|
167
184
|
multipleItemBorderColorDisabled: tagColorBorder
|
|
@@ -175,7 +192,7 @@ var defaultTheme = {
|
|
|
175
192
|
handleColorDisabled: "#b3ccff"
|
|
176
193
|
},
|
|
177
194
|
Skeleton: {
|
|
178
|
-
blockRadius:
|
|
195
|
+
blockRadius: borderRadius
|
|
179
196
|
},
|
|
180
197
|
Tabs: {
|
|
181
198
|
horizontalItemGutter: 24,
|
|
@@ -185,7 +202,7 @@ var defaultTheme = {
|
|
|
185
202
|
},
|
|
186
203
|
Tag: {
|
|
187
204
|
colorBorder: tagColorBorder,
|
|
188
|
-
borderRadiusSM:
|
|
205
|
+
borderRadiusSM: borderRadius
|
|
189
206
|
},
|
|
190
207
|
Table: {
|
|
191
208
|
cellFontSize: fontSizeSM,
|
|
@@ -199,13 +216,15 @@ var defaultTheme = {
|
|
|
199
216
|
rowSelectedHoverBg: colorFillTertiary
|
|
200
217
|
},
|
|
201
218
|
Tooltip: {
|
|
219
|
+
borderRadius: borderRadiusMD,
|
|
202
220
|
colorBgSpotlight: "#ffffff",
|
|
203
221
|
colorTextLightSolid: colorText
|
|
204
222
|
},
|
|
205
223
|
Menu: {
|
|
224
|
+
borderRadiusLG: borderRadiusMD,
|
|
206
225
|
paddingContentVertical: 0,
|
|
207
226
|
itemHeight: 30,
|
|
208
|
-
itemBorderRadius:
|
|
227
|
+
itemBorderRadius: borderRadius,
|
|
209
228
|
// 80 means 50% opacity
|
|
210
229
|
itemHoverBg: colorFillSecondary + "80",
|
|
211
230
|
itemActiveBg: colorFillSecondary + "80",
|
|
@@ -69,16 +69,19 @@ var genTypographyStyle = (token) => {
|
|
|
69
69
|
[`${componentCls}${componentCls}-edit-content`]: {
|
|
70
70
|
[`${componentCls}-div&`]: {
|
|
71
71
|
insetInlineStart: calc(token.paddingSM).mul(-1).equal(),
|
|
72
|
+
insetBlockStart: 0,
|
|
72
73
|
marginTop: negativeMarginOffset,
|
|
73
74
|
marginBottom: calc("1em").sub(marginOffset).equal()
|
|
74
75
|
},
|
|
75
76
|
[`${componentCls}-span&`]: {
|
|
76
77
|
insetInlineStart: calc(token.paddingSM).mul(-1).equal(),
|
|
78
|
+
insetBlockStart: 0,
|
|
77
79
|
marginTop: negativeMarginOffset,
|
|
78
80
|
marginBottom: negativeMarginOffset
|
|
79
81
|
},
|
|
80
82
|
[`${componentCls}-h1&, ${componentCls}-h2&, ${componentCls}-h3&, ${componentCls}-h4&, ${componentCls}-h5&`]: {
|
|
81
83
|
insetInlineStart: calc(token.paddingSM).mul(-1).equal(),
|
|
84
|
+
insetBlockStart: 0,
|
|
82
85
|
marginTop: `${negativeMarginOffset} !important`,
|
|
83
86
|
marginBottom: `${negativeMarginOffset} !important`
|
|
84
87
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
4
4
|
"description": "The Design System of OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@babel/cli": "^7.28.3",
|
|
57
57
|
"@babel/preset-env": "^7.28.5",
|
|
58
58
|
"antd-token-previewer": "^2.0.8",
|
|
59
|
+
"rc-input": "^1.8.0",
|
|
59
60
|
"rc-select": "^14.16.8",
|
|
60
61
|
"rc-slider": "^11.1.9",
|
|
61
62
|
"rc-table": "^7.55.1",
|
|
@@ -65,5 +66,5 @@
|
|
|
65
66
|
"react": ">=16.9.0",
|
|
66
67
|
"react-dom": ">=16.9.0"
|
|
67
68
|
},
|
|
68
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "61bf8e19d8267e8f37572589ab7516222e8fca32"
|
|
69
70
|
}
|
|
Binary file
|
package/es/fonts/Inter.woff2
DELETED
|
Binary file
|
package/es/global.css
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@import '~antd/dist/reset.css';
|
|
2
|
-
|
|
3
|
-
@font-face {
|
|
4
|
-
font-family: 'Inter';
|
|
5
|
-
/* load priority: local font > self-hosting font > remote font */
|
|
6
|
-
src:
|
|
7
|
-
local('Inter'),
|
|
8
|
-
url('./fonts/Inter.woff2') format('woff2'),
|
|
9
|
-
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2')
|
|
10
|
-
format('woff2');
|
|
11
|
-
/* load strategy: use default font as fallback */
|
|
12
|
-
font-display: swap;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@font-face {
|
|
16
|
-
font-family: 'Consolas';
|
|
17
|
-
src:
|
|
18
|
-
local('Consolas'),
|
|
19
|
-
url('./fonts/Consolas.woff2') format('woff2'),
|
|
20
|
-
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*R8bMTqAdGWgAAAAAAAAAAAAADmfOAQ/Consolas.woff2')
|
|
21
|
-
format('woff2');
|
|
22
|
-
font-display: swap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@font-face {
|
|
26
|
-
font-family: 'Helvetica Neue';
|
|
27
|
-
src:
|
|
28
|
-
local('Helvetica Neue'),
|
|
29
|
-
url('./fonts/HelveticaNeue.woff2') format('woff2'),
|
|
30
|
-
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*3EzqR6aYJMkAAAAAAAAAAAAADmfOAQ/HelveticaNeue.woff2')
|
|
31
|
-
format('woff2');
|
|
32
|
-
font-display: swap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
pre,
|
|
36
|
-
code,
|
|
37
|
-
kbd,
|
|
38
|
-
samp {
|
|
39
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
* {
|
|
43
|
-
scrollbar-color: #e2e8f3 transparent;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.rc-virtual-list-scrollbar-thumb {
|
|
47
|
-
background: #e2e8f3 !important;
|
|
48
|
-
}
|
package/lib/fonts/Inter.woff2
DELETED
|
Binary file
|
package/lib/global.css
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
@import '~antd/dist/reset.css';
|
|
2
|
-
|
|
3
|
-
@font-face {
|
|
4
|
-
font-family: 'Inter';
|
|
5
|
-
/* load priority: local font > self-hosting font > remote font */
|
|
6
|
-
src:
|
|
7
|
-
local('Inter'),
|
|
8
|
-
url('./fonts/Inter.woff2') format('woff2'),
|
|
9
|
-
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*2aG4RJIdUGYAAAAAAAAAAAAADmfOAQ/Inter.woff2')
|
|
10
|
-
format('woff2');
|
|
11
|
-
/* load strategy: use default font as fallback */
|
|
12
|
-
font-display: swap;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@font-face {
|
|
16
|
-
font-family: 'Consolas';
|
|
17
|
-
src:
|
|
18
|
-
local('Consolas'),
|
|
19
|
-
url('./fonts/Consolas.woff2') format('woff2'),
|
|
20
|
-
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*R8bMTqAdGWgAAAAAAAAAAAAADmfOAQ/Consolas.woff2')
|
|
21
|
-
format('woff2');
|
|
22
|
-
font-display: swap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@font-face {
|
|
26
|
-
font-family: 'Helvetica Neue';
|
|
27
|
-
src:
|
|
28
|
-
local('Helvetica Neue'),
|
|
29
|
-
url('./fonts/HelveticaNeue.woff2') format('woff2'),
|
|
30
|
-
url('https://mdn.alipayobjects.com/huamei_fhnyvh/afts/file/A*3EzqR6aYJMkAAAAAAAAAAAAADmfOAQ/HelveticaNeue.woff2')
|
|
31
|
-
format('woff2');
|
|
32
|
-
font-display: swap;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
pre,
|
|
36
|
-
code,
|
|
37
|
-
kbd,
|
|
38
|
-
samp {
|
|
39
|
-
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
* {
|
|
43
|
-
scrollbar-color: #e2e8f3 transparent;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.rc-virtual-list-scrollbar-thumb {
|
|
47
|
-
background: #e2e8f3 !important;
|
|
48
|
-
}
|