@oceanbase/design 0.2.4 → 0.2.6
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.js +5 -5
- package/es/card/style/index.js +5 -7
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +4 -2
- package/{lib/card → es/modal}/style/index.d.ts +3 -6
- package/es/modal/style/index.js +4 -4
- package/es/style/reset.css +1 -0
- package/es/table/index.js +22 -17
- package/es/{card → table}/style/index.d.ts +3 -6
- package/es/table/style/index.js +11 -19
- package/es/tabs/hooks/useInkBar.js +2 -2
- package/es/tabs/index.js +5 -6
- package/es/tabs/style/index.js +6 -6
- package/es/theme/index.d.ts +1 -1
- package/es/theme/index.js +5 -5
- package/lib/card/index.js +5 -3
- package/lib/card/style/index.js +6 -14
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +17 -2
- package/lib/modal/style/index.d.ts +8 -0
- package/lib/modal/style/index.js +2 -4
- package/lib/style/reset.css +1 -0
- package/lib/table/index.js +14 -9
- package/lib/table/style/index.d.ts +8 -0
- package/lib/table/style/index.js +7 -13
- package/lib/tabs/hooks/useInkBar.js +1 -1
- package/lib/tabs/index.js +5 -3
- package/lib/tabs/style/index.js +6 -8
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/index.js +5 -5
- package/package.json +4 -3
- package/es/_util/genComponentStyleHook.d.ts +0 -9
- package/es/alert/index.d.ts +0 -13
- package/es/button/index.d.ts +0 -11
- package/es/descriptions/index.d.ts +0 -11
- package/es/form/FormItem.d.ts +0 -16
- package/es/form/index.d.ts +0 -3
- package/es/form/interface.d.ts +0 -1
- package/es/locale/index.d.ts +0 -5
- package/es/message/interface.d.ts +0 -1
- package/es/modal/interface.d.ts +0 -1
- package/es/notification/interface.d.ts +0 -1
- package/es/table/interface.d.ts +0 -1
- package/es/tabs/hooks/useLegacyItems.d.ts +0 -3
- package/es/tooltip/MouseTooltip.d.ts +0 -9
- package/es/tooltip/index.d.ts +0 -19
- package/lib/_util/genComponentStyleHook.d.ts +0 -9
- package/lib/alert/index.d.ts +0 -13
- package/lib/button/index.d.ts +0 -11
- package/lib/descriptions/index.d.ts +0 -11
- package/lib/form/FormItem.d.ts +0 -16
- package/lib/form/index.d.ts +0 -3
- package/lib/form/interface.d.ts +0 -1
- package/lib/locale/index.d.ts +0 -5
- package/lib/message/interface.d.ts +0 -1
- package/lib/modal/interface.d.ts +0 -1
- package/lib/notification/interface.d.ts +0 -1
- package/lib/table/interface.d.ts +0 -1
- package/lib/tabs/hooks/useLegacyItems.d.ts +0 -3
- package/lib/tooltip/MouseTooltip.d.ts +0 -9
- package/lib/tooltip/index.d.ts +0 -19
package/lib/table/index.js
CHANGED
|
@@ -34,7 +34,6 @@ __export(table_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(table_exports);
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
-
var import_locale = require("antd/es/locale");
|
|
38
37
|
var import_classnames = __toESM(require("classnames"));
|
|
39
38
|
var import_lodash = require("lodash");
|
|
40
39
|
var import_react = __toESM(require("react"));
|
|
@@ -43,6 +42,7 @@ var import_en_US = __toESM(require("../locale/en-US"));
|
|
|
43
42
|
var import_style = __toESM(require("./style"));
|
|
44
43
|
__reExport(table_exports, require("antd/es/table"), module.exports);
|
|
45
44
|
function Table(props) {
|
|
45
|
+
var _a;
|
|
46
46
|
const {
|
|
47
47
|
locale: customLocale,
|
|
48
48
|
columns,
|
|
@@ -56,8 +56,13 @@ function Table(props) {
|
|
|
56
56
|
prefixCls: customizePrefixCls,
|
|
57
57
|
className
|
|
58
58
|
} = props;
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const { batchOperationBar, ...restLocale } = {
|
|
60
|
+
...customLocale,
|
|
61
|
+
batchOperationBar: {
|
|
62
|
+
...(_a = import_en_US.default.Table) == null ? void 0 : _a.batchOperationBar,
|
|
63
|
+
...customLocale == null ? void 0 : customLocale.batchOperationBar
|
|
64
|
+
}
|
|
65
|
+
};
|
|
61
66
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
62
67
|
const prefixCls = getPrefixCls("table", customizePrefixCls);
|
|
63
68
|
const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
|
|
@@ -110,11 +115,11 @@ function Table(props) {
|
|
|
110
115
|
handleSelectedData([], [], currentSelectedInfo);
|
|
111
116
|
};
|
|
112
117
|
(0, import_react.useEffect)(() => {
|
|
113
|
-
if ((0, import_lodash.isEmpty)(currentSelectedRows) && toolSelectedContent)
|
|
118
|
+
if ((0, import_lodash.isEmpty)(currentSelectedRows) && toolSelectedContent) {
|
|
114
119
|
setOpenPopver(false);
|
|
120
|
+
}
|
|
115
121
|
}, [currentSelectedRows]);
|
|
116
122
|
const renderOptionsBar = (total, range) => {
|
|
117
|
-
var _a, _b, _c;
|
|
118
123
|
if ((0, import_lodash.isEmpty)(rowSelection) || (0, import_lodash.isEmpty)(currentSelectedRowKeys)) {
|
|
119
124
|
return /* @__PURE__ */ import_react.default.createElement("span", null, pagination && (pagination == null ? void 0 : pagination.showTotal) && (pagination == null ? void 0 : pagination.showTotal(total, range)));
|
|
120
125
|
}
|
|
@@ -127,8 +132,8 @@ function Table(props) {
|
|
|
127
132
|
}
|
|
128
133
|
},
|
|
129
134
|
toolAlertRender && toolAlertRender(currentSelectedRowKeys, currentSelectedRows),
|
|
130
|
-
!toolAlertRender && toolAlertRender !== false && /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-batch-operation-selection` }, /* @__PURE__ */ import_react.default.createElement("span", null,
|
|
131
|
-
!hiddenCancelBtn && /* @__PURE__ */ import_react.default.createElement("a", { onClick: handleOptionsCancel },
|
|
135
|
+
!toolAlertRender && toolAlertRender !== false && /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-batch-operation-selection` }, /* @__PURE__ */ import_react.default.createElement("span", null, batchOperationBar == null ? void 0 : batchOperationBar.selected), /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefixCls}-batch-operation-selection-count` }, (currentSelectedRowKeys == null ? void 0 : currentSelectedRowKeys.length) || 0), /* @__PURE__ */ import_react.default.createElement("span", null, batchOperationBar == null ? void 0 : batchOperationBar.object)),
|
|
136
|
+
!hiddenCancelBtn && /* @__PURE__ */ import_react.default.createElement("a", { onClick: handleOptionsCancel }, batchOperationBar == null ? void 0 : batchOperationBar.cancel),
|
|
132
137
|
toolSelectedContent && /* @__PURE__ */ import_react.default.createElement(
|
|
133
138
|
import_antd.Popover,
|
|
134
139
|
{
|
|
@@ -138,7 +143,7 @@ function Table(props) {
|
|
|
138
143
|
trigger: "click",
|
|
139
144
|
open: openPopver
|
|
140
145
|
},
|
|
141
|
-
/* @__PURE__ */ import_react.default.createElement("a", { onClick: () => setOpenPopver(!openPopver) }, openPopver ?
|
|
146
|
+
/* @__PURE__ */ import_react.default.createElement("a", { onClick: () => setOpenPopver(!openPopver) }, openPopver ? batchOperationBar == null ? void 0 : batchOperationBar.collapse : batchOperationBar == null ? void 0 : batchOperationBar.open)
|
|
142
147
|
)
|
|
143
148
|
), toolOptionsRender && /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { size: 8 }, toolOptionsRender == null ? void 0 : toolOptionsRender(currentSelectedRowKeys, currentSelectedRows))), /* @__PURE__ */ import_react.default.createElement("span", null, pagination && (pagination == null ? void 0 : pagination.showTotal) && (pagination == null ? void 0 : pagination.showTotal(total, range))));
|
|
144
149
|
};
|
|
@@ -149,7 +154,7 @@ function Table(props) {
|
|
|
149
154
|
...props,
|
|
150
155
|
prefixCls: customizePrefixCls,
|
|
151
156
|
className: tableCls,
|
|
152
|
-
locale,
|
|
157
|
+
locale: restLocale,
|
|
153
158
|
columns: newColumns,
|
|
154
159
|
rowSelection: rowSelection ? {
|
|
155
160
|
...rowSelection,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
2
|
+
export declare type TableToken = FullToken<'Table'>;
|
|
3
|
+
export declare const genTableStyle: GenerateStyle<TableToken>;
|
|
4
|
+
declare const _default: (prefixCls: string) => {
|
|
5
|
+
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
6
|
+
hashId: string;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
package/lib/table/style/index.js
CHANGED
|
@@ -74,21 +74,15 @@ var genTableStyle = (token) => {
|
|
|
74
74
|
// body 样式
|
|
75
75
|
[`${componentCls}-tbody`]: {
|
|
76
76
|
// 斑马纹样式
|
|
77
|
-
[`tr:nth-child(2n + 1):not(${componentCls}-placeholder):not(${componentCls}-row-selected)`]: {
|
|
78
|
-
|
|
79
|
-
backgroundColor: colorBgBase
|
|
80
|
-
}
|
|
77
|
+
[`tr:nth-child(2n + 1):not(${componentCls}-placeholder):not(${componentCls}-row-selected) > td`]: {
|
|
78
|
+
backgroundColor: colorBgBase
|
|
81
79
|
},
|
|
82
|
-
[`tr:nth-child(2n):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${componentCls}-expanded-row)`]: {
|
|
83
|
-
|
|
84
|
-
backgroundColor: colorFillQuaternary
|
|
85
|
-
}
|
|
80
|
+
[`tr:nth-child(2n):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${componentCls}-expanded-row) > td`]: {
|
|
81
|
+
backgroundColor: colorFillQuaternary
|
|
86
82
|
},
|
|
87
83
|
// hover 行样式
|
|
88
|
-
[`tr:not(${componentCls}-placeholder):not(${componentCls}-expanded-row):hover`]: {
|
|
89
|
-
|
|
90
|
-
backgroundColor: `${colorPrimaryBgHover} !important`
|
|
91
|
-
}
|
|
84
|
+
[`tr:not(${componentCls}-placeholder):not(${componentCls}-expanded-row):hover > td`]: {
|
|
85
|
+
backgroundColor: `${colorPrimaryBgHover} !important`
|
|
92
86
|
},
|
|
93
87
|
// 选中行样式
|
|
94
88
|
[`tr${componentCls}-row-selected > td`]: {
|
|
@@ -158,7 +152,7 @@ var genTableStyle = (token) => {
|
|
|
158
152
|
[`${componentCls}-tbody`]: {
|
|
159
153
|
// 去掉斑马纹
|
|
160
154
|
[`tr:nth-child(2n):not(${componentCls}-placeholder):not(${componentCls}-row-selected):not(${componentCls}-expanded-row)`]: {
|
|
161
|
-
td: {
|
|
155
|
+
["& > td"]: {
|
|
162
156
|
backgroundColor: colorBgBase
|
|
163
157
|
},
|
|
164
158
|
["&:hover"]: {
|
|
@@ -46,7 +46,7 @@ var useInkBar_default = ({
|
|
|
46
46
|
const horizontalOffset = 8;
|
|
47
47
|
setTimeout(() => {
|
|
48
48
|
if ((!type || type === "line") && inkBarNode) {
|
|
49
|
-
if (isHorizontal && (activeTabNode == null ? void 0 : activeTabNode.offsetWidth)
|
|
49
|
+
if (isHorizontal && (activeTabNode == null ? void 0 : activeTabNode.offsetWidth) >= 24) {
|
|
50
50
|
inkBarNode.style.width = `${(activeTabNode == null ? void 0 : activeTabNode.offsetWidth) - horizontalOffset * 2}px`;
|
|
51
51
|
inkBarNode.style.marginLeft = `${horizontalOffset}px`;
|
|
52
52
|
inkBarNode.style.marginTop = "0px";
|
package/lib/tabs/index.js
CHANGED
|
@@ -56,6 +56,7 @@ var Tabs = ({
|
|
|
56
56
|
className,
|
|
57
57
|
...restProps
|
|
58
58
|
}) => {
|
|
59
|
+
var _a;
|
|
59
60
|
const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
|
|
60
61
|
const prefixCls = getPrefixCls("tabs", customizePrefixCls);
|
|
61
62
|
const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
|
|
@@ -73,7 +74,7 @@ var Tabs = ({
|
|
|
73
74
|
});
|
|
74
75
|
newItems = (0, import_useLegacyItems.default)(newItems, children, prefixCls);
|
|
75
76
|
const [activeKey, setActiveKey] = (0, import_react.useState)(
|
|
76
|
-
activeKeyProp || defaultActiveKey || (newItems == null ? void 0 : newItems[0].key)
|
|
77
|
+
activeKeyProp || defaultActiveKey || ((_a = newItems == null ? void 0 : newItems[0]) == null ? void 0 : _a.key)
|
|
77
78
|
);
|
|
78
79
|
(0, import_useInkBar.default)({
|
|
79
80
|
prefixCls,
|
|
@@ -84,9 +85,10 @@ var Tabs = ({
|
|
|
84
85
|
containerRef: ref
|
|
85
86
|
});
|
|
86
87
|
return wrapSSR(
|
|
87
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
88
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
88
89
|
import_antd.Tabs,
|
|
89
90
|
{
|
|
91
|
+
ref,
|
|
90
92
|
items: newItems,
|
|
91
93
|
defaultActiveKey,
|
|
92
94
|
activeKey,
|
|
@@ -102,7 +104,7 @@ var Tabs = ({
|
|
|
102
104
|
className: tabsCls,
|
|
103
105
|
...restProps
|
|
104
106
|
}
|
|
105
|
-
)
|
|
107
|
+
)
|
|
106
108
|
);
|
|
107
109
|
};
|
|
108
110
|
Tabs.TabPane = import_TabPane.default;
|
package/lib/tabs/style/index.js
CHANGED
|
@@ -28,6 +28,12 @@ var genTagStyle = (token) => {
|
|
|
28
28
|
const { componentCls, colorInfo, colorInfoBg, colorTextSecondary } = token;
|
|
29
29
|
return {
|
|
30
30
|
[componentCls]: {
|
|
31
|
+
[`&${componentCls}-top, &${componentCls}-bottom`]: {
|
|
32
|
+
[`${componentCls}-nav::before`]: {
|
|
33
|
+
// 页签位置为 top 和 bottom 时,去掉分割线
|
|
34
|
+
border: "none"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
31
37
|
[`${componentCls}-tab`]: {
|
|
32
38
|
[`${componentCls}-tab-tag`]: {
|
|
33
39
|
color: colorTextSecondary,
|
|
@@ -48,14 +54,6 @@ var genTagStyle = (token) => {
|
|
|
48
54
|
// inkbar 带圆角
|
|
49
55
|
borderRadius: "1px"
|
|
50
56
|
}
|
|
51
|
-
},
|
|
52
|
-
[componentCls]: {
|
|
53
|
-
[`&${componentCls}-top, &${componentCls}-bottom`]: {
|
|
54
|
-
[`${componentCls}-nav::before`]: {
|
|
55
|
-
// 页签位置为 top 和 bottom 时,去掉分割线
|
|
56
|
-
border: "none"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
57
|
}
|
|
60
58
|
};
|
|
61
59
|
};
|
package/lib/theme/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ export * from 'antd/es/theme';
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
defaultSeed: {
|
|
4
4
|
colorPrimary: string;
|
|
5
|
+
colorInfo: string;
|
|
5
6
|
colorSuccess: string;
|
|
6
7
|
colorWarning: string;
|
|
7
8
|
colorError: string;
|
|
8
|
-
colorInfo: string;
|
|
9
9
|
borderRadius: number;
|
|
10
10
|
blue: string;
|
|
11
11
|
green: string;
|
package/lib/theme/index.js
CHANGED
|
@@ -28,16 +28,16 @@ __reExport(theme_exports, require("antd/es/theme"), module.exports);
|
|
|
28
28
|
var defaultSeed = {
|
|
29
29
|
...import_antd.theme.defaultSeed,
|
|
30
30
|
colorPrimary: "#006AFF",
|
|
31
|
+
colorInfo: "#006aff",
|
|
31
32
|
colorSuccess: "#0ac185",
|
|
32
33
|
colorWarning: "#ffac33",
|
|
33
34
|
colorError: "#ff4b4b",
|
|
34
|
-
colorInfo: "#006aff",
|
|
35
35
|
borderRadius: 6,
|
|
36
36
|
// 以下四种预设颜色和语义色保持一致
|
|
37
|
-
blue: "#
|
|
38
|
-
green: "#
|
|
39
|
-
yellow: "#
|
|
40
|
-
red: "#
|
|
37
|
+
blue: "#006aff",
|
|
38
|
+
green: "#0ac185",
|
|
39
|
+
yellow: "#ffac33",
|
|
40
|
+
red: "#ff4b4b"
|
|
41
41
|
};
|
|
42
42
|
var theme_default = {
|
|
43
43
|
...import_antd.theme,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "The Design System for OceanBase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"OceanBase",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"LICENSE"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
-
"build": "father build"
|
|
35
|
+
"build": "father build",
|
|
36
|
+
"postbuild": "cp src/style/reset.css dist/"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
39
|
"@ant-design/cssinjs": "^1.9.1",
|
|
@@ -55,5 +56,5 @@
|
|
|
55
56
|
"react": "^16.9.0",
|
|
56
57
|
"react-dom": "^16.9.0"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "ad719a3964434132196e732bb61004498ad829ee"
|
|
59
60
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
|
-
import type { ComponentTokenMap } from 'antd/es/theme/interface';
|
|
3
|
-
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
4
|
-
export declare type ComponentName = keyof ComponentTokenMap;
|
|
5
|
-
export declare function genComponentStyleHook(componentName: ComponentName, styleFn: GenerateStyle<FullToken<ComponentName>>): (prefixCls: string) => {
|
|
6
|
-
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
-
hashId: string;
|
|
8
|
-
};
|
|
9
|
-
export type { CSSObject, FullToken, GenerateStyle };
|
package/es/alert/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AlertProps as AntAlertProps } from 'antd/es/alert';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export * from 'antd/es/alert';
|
|
4
|
-
export interface AlertProps extends AntAlertProps {
|
|
5
|
-
ghost?: boolean;
|
|
6
|
-
colored?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Alert: {
|
|
9
|
-
({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
-
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
export default Alert;
|
package/es/button/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export * from 'antd/es/button';
|
|
4
|
-
export declare type ButtonProps = AntButtonProps;
|
|
5
|
-
declare const Button: {
|
|
6
|
-
({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
|
-
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
8
|
-
__ANT_BUTTON: any;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export default Button;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DescriptionsProps as AntDescriptionsProps } from 'antd/es/descriptions';
|
|
2
|
-
import type { ReactElement } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export * from 'antd/es/descriptions';
|
|
5
|
-
export declare type DescriptionsProps = AntDescriptionsProps;
|
|
6
|
-
declare const Descriptions: {
|
|
7
|
-
({ children, bordered, prefixCls: customizePrefixCls, className, ...restProps }: DescriptionsProps): ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
displayName: string;
|
|
9
|
-
Item: React.FC<import("antd/es/descriptions/Item").DescriptionsItemProps>;
|
|
10
|
-
};
|
|
11
|
-
export default Descriptions;
|
package/es/form/FormItem.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import type { TooltipProps } from '../tooltip';
|
|
5
|
-
export declare type WrapperTooltipProps = Omit<TooltipProps, 'mouseFollow'> & {
|
|
6
|
-
icon?: React.ReactElement;
|
|
7
|
-
};
|
|
8
|
-
export declare type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
|
|
9
|
-
declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
-
useStatus: () => {
|
|
11
|
-
status?: "" | "success" | "error" | "warning" | "validating";
|
|
12
|
-
errors: ReactNode[];
|
|
13
|
-
warnings: ReactNode[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default FormItem;
|
package/es/form/index.d.ts
DELETED
package/es/form/interface.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/form/interface';
|
package/es/locale/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/message/interface';
|
package/es/modal/interface.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/modal/interface';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/notification/interface';
|
package/es/table/interface.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/table/interface';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface MouseTooltipProps extends AntTooltipPropsWithTitle {
|
|
4
|
-
visible?: boolean;
|
|
5
|
-
offsetX?: number;
|
|
6
|
-
offsetY?: number;
|
|
7
|
-
}
|
|
8
|
-
declare const MouseTooltip: React.FC<MouseTooltipProps>;
|
|
9
|
-
export default MouseTooltip;
|
package/es/tooltip/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export * from 'antd/es/tooltip';
|
|
4
|
-
export declare type TooltipType = 'default' | 'light' | 'success' | 'info' | 'warning' | 'error';
|
|
5
|
-
export interface TooltipProps extends AntTooltipPropsWithTitle {
|
|
6
|
-
type?: TooltipType;
|
|
7
|
-
mouseFollow?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const getTooltipTypeList: () => {
|
|
10
|
-
type: string;
|
|
11
|
-
color: string;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
}[];
|
|
14
|
-
declare type CompoundedComponent = React.FC<TooltipProps> & {
|
|
15
|
-
/** @internal */
|
|
16
|
-
__ANT_TOOLTIP: boolean;
|
|
17
|
-
};
|
|
18
|
-
declare const Tooltip: CompoundedComponent;
|
|
19
|
-
export default Tooltip;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
|
-
import type { ComponentTokenMap } from 'antd/es/theme/interface';
|
|
3
|
-
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
|
|
4
|
-
export declare type ComponentName = keyof ComponentTokenMap;
|
|
5
|
-
export declare function genComponentStyleHook(componentName: ComponentName, styleFn: GenerateStyle<FullToken<ComponentName>>): (prefixCls: string) => {
|
|
6
|
-
wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
-
hashId: string;
|
|
8
|
-
};
|
|
9
|
-
export type { CSSObject, FullToken, GenerateStyle };
|
package/lib/alert/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AlertProps as AntAlertProps } from 'antd/es/alert';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export * from 'antd/es/alert';
|
|
4
|
-
export interface AlertProps extends AntAlertProps {
|
|
5
|
-
ghost?: boolean;
|
|
6
|
-
colored?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Alert: {
|
|
9
|
-
({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
-
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
export default Alert;
|
package/lib/button/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export * from 'antd/es/button';
|
|
4
|
-
export declare type ButtonProps = AntButtonProps;
|
|
5
|
-
declare const Button: {
|
|
6
|
-
({ prefixCls: customizePrefixCls, className, ...restProps }: ButtonProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
|
-
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
8
|
-
__ANT_BUTTON: any;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
export default Button;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DescriptionsProps as AntDescriptionsProps } from 'antd/es/descriptions';
|
|
2
|
-
import type { ReactElement } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export * from 'antd/es/descriptions';
|
|
5
|
-
export declare type DescriptionsProps = AntDescriptionsProps;
|
|
6
|
-
declare const Descriptions: {
|
|
7
|
-
({ children, bordered, prefixCls: customizePrefixCls, className, ...restProps }: DescriptionsProps): ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
8
|
-
displayName: string;
|
|
9
|
-
Item: React.FC<import("antd/es/descriptions/Item").DescriptionsItemProps>;
|
|
10
|
-
};
|
|
11
|
-
export default Descriptions;
|
package/lib/form/FormItem.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import type { TooltipProps } from '../tooltip';
|
|
5
|
-
export declare type WrapperTooltipProps = Omit<TooltipProps, 'mouseFollow'> & {
|
|
6
|
-
icon?: React.ReactElement;
|
|
7
|
-
};
|
|
8
|
-
export declare type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
|
|
9
|
-
declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
-
useStatus: () => {
|
|
11
|
-
status?: "" | "success" | "error" | "warning" | "validating";
|
|
12
|
-
errors: ReactNode[];
|
|
13
|
-
warnings: ReactNode[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default FormItem;
|
package/lib/form/index.d.ts
DELETED
package/lib/form/interface.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/form/interface';
|
package/lib/locale/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/message/interface';
|
package/lib/modal/interface.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/modal/interface';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/notification/interface';
|
package/lib/table/interface.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from 'antd/es/table/interface';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface MouseTooltipProps extends AntTooltipPropsWithTitle {
|
|
4
|
-
visible?: boolean;
|
|
5
|
-
offsetX?: number;
|
|
6
|
-
offsetY?: number;
|
|
7
|
-
}
|
|
8
|
-
declare const MouseTooltip: React.FC<MouseTooltipProps>;
|
|
9
|
-
export default MouseTooltip;
|
package/lib/tooltip/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { TooltipPropsWithTitle as AntTooltipPropsWithTitle } from 'antd/es/tooltip';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export * from 'antd/es/tooltip';
|
|
4
|
-
export declare type TooltipType = 'default' | 'light' | 'success' | 'info' | 'warning' | 'error';
|
|
5
|
-
export interface TooltipProps extends AntTooltipPropsWithTitle {
|
|
6
|
-
type?: TooltipType;
|
|
7
|
-
mouseFollow?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const getTooltipTypeList: () => {
|
|
10
|
-
type: string;
|
|
11
|
-
color: string;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
}[];
|
|
14
|
-
declare type CompoundedComponent = React.FC<TooltipProps> & {
|
|
15
|
-
/** @internal */
|
|
16
|
-
__ANT_TOOLTIP: boolean;
|
|
17
|
-
};
|
|
18
|
-
declare const Tooltip: CompoundedComponent;
|
|
19
|
-
export default Tooltip;
|