@oceanbase/design 0.2.5 → 0.2.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.js +1 -1
- package/es/card/index.js +2 -1
- package/es/card/style/index.js +5 -8
- package/es/index.d.ts +21 -0
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +4 -2
- package/{lib/tabs → es/modal}/style/index.d.ts +2 -2
- package/es/modal/style/index.js +4 -4
- package/es/style/reset.css +1 -0
- package/es/table/index.js +22 -17
- package/es/{tabs → table}/style/index.d.ts +2 -2
- package/es/table/style/index.js +11 -19
- package/es/tabs/index.js +2 -2
- package/es/theme/index.d.ts +1 -1
- package/es/theme/index.js +5 -5
- package/es/tooltip/MouseTooltip.js +9 -8
- package/lib/card/index.js +2 -1
- package/lib/card/style/index.js +4 -4
- package/lib/index.d.ts +21 -0
- 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/index.js +2 -1
- package/lib/theme/index.d.ts +1 -1
- package/lib/theme/index.js +5 -5
- package/lib/tooltip/MouseTooltip.js +8 -7
- package/package.json +4 -3
- 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/useInkBar.d.ts +0 -12
- package/es/tabs/hooks/useLegacyItems.d.ts +0 -3
- package/es/tooltip/index.d.ts +0 -19
- 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/useInkBar.d.ts +0 -12
- package/lib/tabs/hooks/useLegacyItems.d.ts +0 -3
- 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"]: {
|
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,
|
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,
|
|
@@ -39,6 +39,7 @@ var import_static_function = require("../static-function");
|
|
|
39
39
|
var MouseTooltip = ({
|
|
40
40
|
children,
|
|
41
41
|
title,
|
|
42
|
+
color: backgroundColor,
|
|
42
43
|
visible: outerVisible = true,
|
|
43
44
|
open: outerOpen = true,
|
|
44
45
|
onOpenChange,
|
|
@@ -49,11 +50,11 @@ var MouseTooltip = ({
|
|
|
49
50
|
...restProps
|
|
50
51
|
}) => {
|
|
51
52
|
const [visible, setVisible] = (0, import_react.useState)(false);
|
|
52
|
-
const { color, ...restOverlayInnerStyle } = overlayInnerStyle || {};
|
|
53
|
+
const { color: textColor, ...restOverlayInnerStyle } = overlayInnerStyle || {};
|
|
53
54
|
const handleVisibleChange = (value) => {
|
|
54
55
|
setVisible(value);
|
|
55
|
-
onOpenChange(value);
|
|
56
|
-
onVisibleChange(value);
|
|
56
|
+
onOpenChange == null ? void 0 : onOpenChange(value);
|
|
57
|
+
onVisibleChange == null ? void 0 : onVisibleChange(value);
|
|
57
58
|
};
|
|
58
59
|
const mouse = (0, import_ahooks.useMouse)();
|
|
59
60
|
const ref = (0, import_react.useRef)(null);
|
|
@@ -78,11 +79,11 @@ var MouseTooltip = ({
|
|
|
78
79
|
onMouseLeave: () => {
|
|
79
80
|
setTimeout(() => {
|
|
80
81
|
handleVisibleChange(false);
|
|
81
|
-
}, mouseLeaveDelay);
|
|
82
|
+
}, mouseLeaveDelay * 1e3);
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
children
|
|
85
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
86
|
+
), title && /* @__PURE__ */ import_react.default.createElement(
|
|
86
87
|
import_react_sticky_mouse_tooltip.default,
|
|
87
88
|
{
|
|
88
89
|
visible,
|
|
@@ -92,8 +93,8 @@ var MouseTooltip = ({
|
|
|
92
93
|
padding: "6px 8px",
|
|
93
94
|
boxShadow: import_static_function.token.boxShadowSecondary,
|
|
94
95
|
borderRadius: import_static_function.token.borderRadius,
|
|
95
|
-
color:
|
|
96
|
-
backgroundColor: import_static_function.token.colorBgSpotlight,
|
|
96
|
+
color: textColor || import_static_function.token.colorTextLightSolid,
|
|
97
|
+
backgroundColor: backgroundColor || import_static_function.token.colorBgSpotlight,
|
|
97
98
|
left: isOverWidth ? mouse.clientX - tooltipWidth - offset : mouse.clientX + offset,
|
|
98
99
|
top: isOverHeight ? mouse.clientY - tooltipHeight - offset : mouse.clientY + offset,
|
|
99
100
|
...restOverlayInnerStyle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/design",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
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": "aee73083e592c5060c9b72173664153783e97e23"
|
|
59
60
|
}
|
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,12 +0,0 @@
|
|
|
1
|
-
import type { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
2
|
-
import type { TabsPosition, TabsType } from 'antd/es/tabs';
|
|
3
|
-
import type { MutableRefObject } from 'react';
|
|
4
|
-
declare const _default: ({ prefixCls, activeKey, size, type, tabPosition, containerRef, }: {
|
|
5
|
-
prefixCls: string;
|
|
6
|
-
activeKey: string;
|
|
7
|
-
size: SizeType;
|
|
8
|
-
type: TabsType;
|
|
9
|
-
tabPosition: TabsPosition;
|
|
10
|
-
containerRef: MutableRefObject<HTMLDivElement>;
|
|
11
|
-
}) => void;
|
|
12
|
-
export default _default;
|
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;
|
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,12 +0,0 @@
|
|
|
1
|
-
import type { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
2
|
-
import type { TabsPosition, TabsType } from 'antd/es/tabs';
|
|
3
|
-
import type { MutableRefObject } from 'react';
|
|
4
|
-
declare const _default: ({ prefixCls, activeKey, size, type, tabPosition, containerRef, }: {
|
|
5
|
-
prefixCls: string;
|
|
6
|
-
activeKey: string;
|
|
7
|
-
size: SizeType;
|
|
8
|
-
type: TabsType;
|
|
9
|
-
tabPosition: TabsPosition;
|
|
10
|
-
containerRef: MutableRefObject<HTMLDivElement>;
|
|
11
|
-
}) => void;
|
|
12
|
-
export default _default;
|
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;
|