@oceanbase/design 0.2.5 → 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 +2 -1
- package/es/index.d.ts +21 -0
- package/es/modal/index.d.ts +1 -1
- package/es/modal/index.js +4 -2
- package/es/{tabs → 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/{lib/tabs → es/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/lib/card/index.js +2 -1
- package/lib/index.d.ts +21 -0
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.js +17 -2
- package/lib/{card → modal}/style/index.d.ts +3 -6
- package/lib/modal/style/index.js +2 -4
- package/lib/style/reset.css +1 -0
- package/lib/table/index.js +14 -9
- package/{es/card → lib/table}/style/index.d.ts +3 -6
- 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/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/MouseTooltip.d.ts +0 -9
- 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/MouseTooltip.d.ts +0 -9
- package/lib/tooltip/index.d.ts +0 -19
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
|
}
|
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;
|
|
@@ -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;
|
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;
|
|
@@ -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;
|