easemob-chat-uikit 1.0.0-beta
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/ChatUI.esm.js +33277 -0
- package/ChatUI.iife.js +33298 -0
- package/ChatUI.umd.js +33299 -0
- package/README.md +484 -0
- package/button/style/mixin.scss +224 -0
- package/button/style/style.scss +28 -0
- package/chat.png +0 -0
- package/manifest.json +25 -0
- package/package.json +29 -0
- package/robots.txt +3 -0
- package/style/color/color.scss +75 -0
- package/style/core/base.scss +10 -0
- package/style/core/index.scss +3 -0
- package/style/core/motion/fade.scss +35 -0
- package/style/core/motion/zoom.scss +179 -0
- package/style/core/motion.scss +17 -0
- package/style/index.scss +3 -0
- package/style/mixin/index.scss +1 -0
- package/style/mixin/motion.scss +31 -0
- package/style/themes/dark.scss +93 -0
- package/style/themes/default.scss +286 -0
- package/style.css +16102 -0
- package/style.scss +2 -0
- package/types/ChatUI.d.ts +2 -0
- package/types/module/audioMessage/AudioMessage.d.ts +12 -0
- package/types/module/audioMessage/AudioPlayer.d.ts +12 -0
- package/types/module/audioMessage/index.d.ts +3 -0
- package/types/module/baseMessage/BaseMessage.d.ts +18 -0
- package/types/module/baseMessage/index.d.ts +3 -0
- package/types/module/button/Button.d.ts +19 -0
- package/types/module/button/index.d.ts +2 -0
- package/types/module/chat/Chat.d.ts +25 -0
- package/types/module/chat/MessageList.d.ts +10 -0
- package/types/module/chat/index.d.ts +3 -0
- package/types/module/contactList/ContactGroup.d.ts +12 -0
- package/types/module/contactList/ContactItem.d.ts +15 -0
- package/types/module/contactList/ContactList.d.ts +22 -0
- package/types/module/contactList/index.d.ts +3 -0
- package/types/module/conversation/ConversationItem.d.ts +17 -0
- package/types/module/conversation/ConversationList.d.ts +34 -0
- package/types/module/conversation/index.d.ts +3 -0
- package/types/module/empty/Empty.d.ts +9 -0
- package/types/module/empty/index.d.ts +3 -0
- package/types/module/fileMessage/FileMessage.d.ts +13 -0
- package/types/module/fileMessage/index.d.ts +2 -0
- package/types/module/header/Header.d.ts +22 -0
- package/types/module/header/index.d.ts +3 -0
- package/types/module/hooks/chat.d.ts +2 -0
- package/types/module/hooks/dom.d.ts +9 -0
- package/types/module/hooks/useAddress.d.ts +14 -0
- package/types/module/hooks/useClient.d.ts +2 -0
- package/types/module/hooks/useConversation.d.ts +3 -0
- package/types/module/hooks/useHistoryMsg.d.ts +6 -0
- package/types/module/imageMessage/ImageMessage.d.ts +18 -0
- package/types/module/imageMessage/index.d.ts +4 -0
- package/types/module/index.d.ts +22 -0
- package/types/module/messageEditor/MessageEditor.d.ts +17 -0
- package/types/module/messageEditor/emoji/Emoji.d.ts +14 -0
- package/types/module/messageEditor/emoji/emojiConfig.d.ts +54 -0
- package/types/module/messageEditor/emoji/index.d.ts +3 -0
- package/types/module/messageEditor/index.d.ts +3 -0
- package/types/module/messageEditor/moreAction/MoreAction.d.ts +13 -0
- package/types/module/messageEditor/moreAction/index.d.ts +2 -0
- package/types/module/messageEditor/recorder/Recorder.d.ts +11 -0
- package/types/module/messageEditor/recorder/index.d.ts +2 -0
- package/types/module/messageEditor/recorder/recorderFun.d.ts +9 -0
- package/types/module/messageEditor/textarea/Textarea.d.ts +9 -0
- package/types/module/messageEditor/textarea/index.d.ts +2 -0
- package/types/module/messageEditor/textarea/util.d.ts +1 -0
- package/types/module/messageStatus/MessageStatus.d.ts +9 -0
- package/types/module/noticeMessage/NoticeMessage.d.ts +13 -0
- package/types/module/noticeMessage/index.d.ts +3 -0
- package/types/module/react-app-env.d.ts +62 -0
- package/types/module/store/AddressStore.d.ts +13 -0
- package/types/module/store/ConversationStore.d.ts +35 -0
- package/types/module/store/MessageStore.d.ts +28 -0
- package/types/module/store/Provider.d.ts +22 -0
- package/types/module/store/agoraChatConfig.d.ts +3 -0
- package/types/module/store/index.d.ts +24 -0
- package/types/module/store/rootContext.d.ts +15 -0
- package/types/module/textMessage/TextMessage.d.ts +28 -0
- package/types/module/textMessage/index.d.ts +2 -0
- package/types/module/types/messageType.d.ts +164 -0
- package/types/module/utils/download.d.ts +2 -0
- package/types/module/utils/index.d.ts +6 -0
- package/types/module/videoMessage/VideoMessage.d.ts +10 -0
- package/types/module/videoMessage/index.d.ts +3 -0
- package/types/src/_utils/motion.d.ts +2 -0
- package/types/src/_utils/placements.d.ts +17 -0
- package/types/src/_utils/reactNode.d.ts +8 -0
- package/types/src/_utils/ref.d.ts +3 -0
- package/types/src/_utils/styleChecker.d.ts +2 -0
- package/types/src/_utils/type.d.ts +1 -0
- package/types/src/_utils/warning.d.ts +5 -0
- package/types/src/avatar/Avatar.d.ts +20 -0
- package/types/src/avatar/Group.d.ts +11 -0
- package/types/src/avatar/index.d.ts +2 -0
- package/types/src/badge/Badge.d.ts +21 -0
- package/types/src/badge/ScrollNumber.d.ts +18 -0
- package/types/src/badge/SingleNumber.d.ts +13 -0
- package/types/src/badge/index.d.ts +2 -0
- package/types/src/button/Button.d.ts +19 -0
- package/types/src/button/index.d.ts +2 -0
- package/types/src/checkbox/Checkbox.d.ts +11 -0
- package/types/src/checkbox/index.d.ts +2 -0
- package/types/src/config/index.d.ts +8 -0
- package/types/src/dropdown/Dropdown.d.ts +9 -0
- package/types/src/dropdown/MenuItem.d.ts +9 -0
- package/types/src/dropdown/MenuWrap.d.ts +9 -0
- package/types/src/dropdown/index.d.ts +2 -0
- package/types/src/entry.d.ts +13 -0
- package/types/src/icon/Icon.d.ts +14 -0
- package/types/src/icon/const.d.ts +27 -0
- package/types/src/icon/index.d.ts +3 -0
- package/types/src/input/Input.d.ts +2 -0
- package/types/src/input/Search.d.ts +11 -0
- package/types/src/list/List.d.ts +23 -0
- package/types/src/list/index.d.ts +2 -0
- package/types/src/modal/Content.d.ts +36 -0
- package/types/src/modal/Dialog.d.ts +43 -0
- package/types/src/modal/Mast.d.ts +9 -0
- package/types/src/modal/MemoChildren.d.ts +7 -0
- package/types/src/modal/Modal.d.ts +57 -0
- package/types/src/modal/index.d.ts +2 -0
- package/types/src/modal/util.d.ts +5 -0
- package/types/src/popover/Popover.d.ts +7 -0
- package/types/src/popover/index.d.ts +2 -0
- package/types/src/svg.d.ts +6 -0
- package/types/src/switch/Switch.d.ts +9 -0
- package/types/src/switch/index.d.ts +2 -0
- package/types/src/tooltip/Tooltip.d.ts +49 -0
- package/uikit.png +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
export interface MenuWrapProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const MenuWrap: ({ className, children, containerRef, onClose, }: MenuWrapProps) => JSX.Element;
|
|
9
|
+
export { MenuWrap };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Avatar from './avatar';
|
|
2
|
+
import Button from './button';
|
|
3
|
+
import Input from './input/Input';
|
|
4
|
+
import Badge from './badge';
|
|
5
|
+
import Checkbox from './checkbox';
|
|
6
|
+
import Dropdown from './dropdown';
|
|
7
|
+
import Icon from './icon';
|
|
8
|
+
import List from './list';
|
|
9
|
+
import Modal from './modal';
|
|
10
|
+
import Popover from './popover';
|
|
11
|
+
import Switch from './switch';
|
|
12
|
+
import Tooltip from 'rc-tooltip';
|
|
13
|
+
export { Avatar, Input, Badge, Checkbox, Dropdown, Icon, List, Modal, Popover, Switch, Tooltip };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ICON_TYPES } from './const';
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
type: keyof typeof ICON_TYPES;
|
|
7
|
+
width?: string | number;
|
|
8
|
+
height?: string | number;
|
|
9
|
+
color?: string;
|
|
10
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
declare const Icon: ({ className, type, children, width, height, color, onClick, }: IconProps) => ReactElement;
|
|
14
|
+
export { Icon };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare enum ICON_TYPES {
|
|
2
|
+
SHUT_DOWN = "SHUT_DOWN",
|
|
3
|
+
STAR = "STAR",
|
|
4
|
+
DONE_ALL = "DONE_ALL",
|
|
5
|
+
CLOSE = "CLOSE",
|
|
6
|
+
FILE = "FILE",
|
|
7
|
+
USER = "USER",
|
|
8
|
+
PLAY = "PLAY",
|
|
9
|
+
ELLIPSIS = "ELLIPSIS",
|
|
10
|
+
LOADING = "LOADING",
|
|
11
|
+
DOC = "DOC",
|
|
12
|
+
WAVE1 = "WAVE1",
|
|
13
|
+
WAVE2 = "WAVE2",
|
|
14
|
+
WAVE3 = "WAVE3",
|
|
15
|
+
CIRCLE_WAVE = "CIRCLE_WAVE",
|
|
16
|
+
PLAY_VIDEO = "PLAY_VIDEO",
|
|
17
|
+
FACE = "FACE",
|
|
18
|
+
CROSS = "CROSS",
|
|
19
|
+
AIR_PLANE = "AIR_PLANE",
|
|
20
|
+
ARROW_RIGHT = "ARROW_RIGHT",
|
|
21
|
+
ARROW_LEFT = "ARROW_LEFT",
|
|
22
|
+
ARROW_UP = "ARROW_UP",
|
|
23
|
+
ARROW_DOWN = "ARROW_DOWN",
|
|
24
|
+
PLUS_CIRCLE = "PLUS_CIRCLE",
|
|
25
|
+
SEARCH = "SEARCH"
|
|
26
|
+
}
|
|
27
|
+
export { ICON_TYPES };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode, ChangeEvent } from 'react';
|
|
2
|
+
export interface SearchProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
prefix?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
shape?: 'ground' | 'square';
|
|
9
|
+
}
|
|
10
|
+
export default function Search(props: SearchProps): JSX.Element;
|
|
11
|
+
export { Search };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ListProps {
|
|
3
|
+
height: number;
|
|
4
|
+
itemCount: number;
|
|
5
|
+
itemSize: number | ((i: number) => number);
|
|
6
|
+
width?: number | string;
|
|
7
|
+
itemData?: any;
|
|
8
|
+
children: ({ index, style }: {
|
|
9
|
+
index: number;
|
|
10
|
+
style: React.CSSProperties;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
isItemLoaded: (index: number) => boolean;
|
|
13
|
+
onItemRendered?: (index: number) => boolean;
|
|
14
|
+
loadMoreItems: (startIndex: number, stopIndex: number) => void | Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
interface List extends React.ForwardRefExoticComponent<ListProps & React.RefAttributes<any>> {
|
|
17
|
+
Row: ({ index, style }: {
|
|
18
|
+
index: number;
|
|
19
|
+
style: React.CSSProperties;
|
|
20
|
+
}) => JSX.Element;
|
|
21
|
+
}
|
|
22
|
+
declare const List: List;
|
|
23
|
+
export { List };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ContentProps {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
holderRef?: React.Ref<HTMLDivElement>;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
prefixCls: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
onMouseDown?: React.MouseEventHandler;
|
|
9
|
+
onMouseUp?: React.MouseEventHandler;
|
|
10
|
+
sentinelStyle?: React.CSSProperties;
|
|
11
|
+
visible: boolean;
|
|
12
|
+
forceRender: boolean;
|
|
13
|
+
closable?: boolean;
|
|
14
|
+
onClose?: (e: React.SyntheticEvent) => void;
|
|
15
|
+
closeIcon?: React.ReactNode;
|
|
16
|
+
bodyStyle?: React.CSSProperties;
|
|
17
|
+
bodyProps?: any;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
footer?: React.ReactNode;
|
|
20
|
+
width?: number | string;
|
|
21
|
+
height?: number | string;
|
|
22
|
+
modalRender?: (node: React.ReactNode) => React.ReactNode;
|
|
23
|
+
onVisibleChanged: (visible: boolean) => void;
|
|
24
|
+
motionName?: string;
|
|
25
|
+
mousePosition?: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
} | null;
|
|
29
|
+
destroyOnClose?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare type ContentRef = {
|
|
32
|
+
focus: () => void;
|
|
33
|
+
changeActive: (next: boolean) => void;
|
|
34
|
+
};
|
|
35
|
+
declare const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<ContentRef>>;
|
|
36
|
+
export default Content;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties, SyntheticEvent } from 'react';
|
|
2
|
+
import type { GetContainer } from 'rc-util/lib/PortalWrapper';
|
|
3
|
+
export interface DialogPropTypes {
|
|
4
|
+
className?: string;
|
|
5
|
+
keyboard?: boolean;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
mask?: boolean;
|
|
8
|
+
children?: any;
|
|
9
|
+
afterClose?: () => any;
|
|
10
|
+
onClose?: (e: SyntheticEvent) => void;
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
maskClosable?: boolean;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
destroyOnClose?: boolean;
|
|
15
|
+
mousePosition?: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
} | null;
|
|
19
|
+
title?: ReactNode;
|
|
20
|
+
footer?: ReactNode;
|
|
21
|
+
transitionName?: string;
|
|
22
|
+
maskTransitionName?: string;
|
|
23
|
+
animation?: any;
|
|
24
|
+
maskAnimation?: any;
|
|
25
|
+
wrapStyle?: Record<string, any>;
|
|
26
|
+
bodyStyle?: Record<string, any>;
|
|
27
|
+
maskStyle?: Record<string, any>;
|
|
28
|
+
prefixCls?: string;
|
|
29
|
+
wrapClassName?: string;
|
|
30
|
+
width?: string | number;
|
|
31
|
+
height?: string | number;
|
|
32
|
+
zIndex?: number;
|
|
33
|
+
bodyProps?: any;
|
|
34
|
+
maskProps?: any;
|
|
35
|
+
rootClassName?: string;
|
|
36
|
+
wrapProps?: any;
|
|
37
|
+
getContainer?: GetContainer | false;
|
|
38
|
+
closeIcon?: ReactNode;
|
|
39
|
+
modalRender?: (node: ReactNode) => ReactNode;
|
|
40
|
+
forceRender: boolean;
|
|
41
|
+
focusTriggerAfterClose?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export default function Dialog(props: DialogPropTypes): JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type MaskProps = {
|
|
3
|
+
prefixCls: string;
|
|
4
|
+
visible: boolean;
|
|
5
|
+
motionName?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
maskProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
};
|
|
9
|
+
export default function Mask(props: MaskProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type MemoChildrenProps = {
|
|
3
|
+
shouldUpdate: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ children }: MemoChildrenProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ButtonProps, ButtonType } from '../button/Button';
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
/** 对话框是否可见 */
|
|
5
|
+
open?: boolean;
|
|
6
|
+
/** 确定按钮 loading */
|
|
7
|
+
confirmLoading?: boolean;
|
|
8
|
+
/** 标题 */
|
|
9
|
+
title?: React.ReactNode;
|
|
10
|
+
/** 是否显示右上角的关闭按钮 */
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
/** 点击确定回调 */
|
|
13
|
+
onOk?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
14
|
+
/** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调 */
|
|
15
|
+
onCancel?: (e: React.SyntheticEvent) => void;
|
|
16
|
+
afterClose?: () => void;
|
|
17
|
+
/** 垂直居中 */
|
|
18
|
+
centered?: boolean;
|
|
19
|
+
/** 宽度 */
|
|
20
|
+
width?: string | number;
|
|
21
|
+
/** 底部内容 */
|
|
22
|
+
footer?: React.ReactNode;
|
|
23
|
+
/** 确认按钮文字 */
|
|
24
|
+
okText?: React.ReactNode;
|
|
25
|
+
/** 确认按钮类型 */
|
|
26
|
+
okType?: ButtonType;
|
|
27
|
+
/** 取消按钮文字 */
|
|
28
|
+
cancelText?: React.ReactNode;
|
|
29
|
+
cancelType?: ButtonType;
|
|
30
|
+
/** 点击蒙层是否允许关闭 */
|
|
31
|
+
maskClosable?: boolean;
|
|
32
|
+
/** 强制渲染 Modal */
|
|
33
|
+
forceRender?: boolean;
|
|
34
|
+
okButtonProps?: ButtonProps;
|
|
35
|
+
cancelButtonProps?: ButtonProps;
|
|
36
|
+
destroyOnClose?: boolean;
|
|
37
|
+
style?: React.CSSProperties;
|
|
38
|
+
wrapClassName?: string;
|
|
39
|
+
maskTransitionName?: string;
|
|
40
|
+
transitionName?: string;
|
|
41
|
+
className?: string;
|
|
42
|
+
getContainer?: string | HTMLElement | getContainerFunc | false;
|
|
43
|
+
zIndex?: number;
|
|
44
|
+
bodyStyle?: React.CSSProperties;
|
|
45
|
+
maskStyle?: React.CSSProperties;
|
|
46
|
+
mask?: boolean;
|
|
47
|
+
keyboard?: boolean;
|
|
48
|
+
wrapProps?: any;
|
|
49
|
+
prefixCls?: string;
|
|
50
|
+
closeIcon?: React.ReactNode;
|
|
51
|
+
modalRender?: (node: React.ReactNode) => React.ReactNode;
|
|
52
|
+
focusTriggerAfterClose?: boolean;
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
}
|
|
55
|
+
declare type getContainerFunc = () => HTMLElement;
|
|
56
|
+
declare const Modal: React.FC<ModalProps>;
|
|
57
|
+
export default Modal;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChangeEvent, ReactElement } from 'react';
|
|
2
|
+
export interface SwitchProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
checked: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onChange?(e: ChangeEvent<HTMLInputElement>): void;
|
|
7
|
+
}
|
|
8
|
+
declare const Switch: ({ checked, onChange, disabled, className, }: SwitchProps) => ReactElement;
|
|
9
|
+
export { Switch };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { placements as Placements } from 'rc-tooltip/lib/placements';
|
|
2
|
+
import type { TooltipProps as RcTooltipProps } from 'rc-tooltip/lib/Tooltip';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { AdjustOverflow, PlacementsConfig } from '../_utils/placements';
|
|
5
|
+
export type { AdjustOverflow, PlacementsConfig };
|
|
6
|
+
export declare type TooltipPlacement = 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
7
|
+
export interface TooltipAlignConfig {
|
|
8
|
+
points?: [string, string];
|
|
9
|
+
offset?: [number | string, number | string];
|
|
10
|
+
targetOffset?: [number | string, number | string];
|
|
11
|
+
overflow?: {
|
|
12
|
+
adjustX: boolean;
|
|
13
|
+
adjustY: boolean;
|
|
14
|
+
};
|
|
15
|
+
useCssRight?: boolean;
|
|
16
|
+
useCssBottom?: boolean;
|
|
17
|
+
useCssTransform?: boolean;
|
|
18
|
+
}
|
|
19
|
+
interface LegacyTooltipProps extends Partial<Omit<RcTooltipProps, 'children' | 'visible' | 'defaultVisible' | 'onVisibleChange' | 'afterVisibleChange'>> {
|
|
20
|
+
open?: RcTooltipProps['visible'];
|
|
21
|
+
defaultOpen?: RcTooltipProps['defaultVisible'];
|
|
22
|
+
onOpenChange?: RcTooltipProps['onVisibleChange'];
|
|
23
|
+
afterOpenChange?: RcTooltipProps['afterVisibleChange'];
|
|
24
|
+
}
|
|
25
|
+
export interface AbstractTooltipProps extends LegacyTooltipProps {
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
className?: string;
|
|
28
|
+
color?: string;
|
|
29
|
+
placement?: TooltipPlacement;
|
|
30
|
+
builtinPlacements?: typeof Placements;
|
|
31
|
+
openClassName?: string;
|
|
32
|
+
arrowPointAtCenter?: boolean;
|
|
33
|
+
autoAdjustOverflow?: boolean | AdjustOverflow;
|
|
34
|
+
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
arrow?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare type RenderFunction = () => React.ReactNode;
|
|
39
|
+
export interface TooltipPropsWithOverlay extends AbstractTooltipProps {
|
|
40
|
+
title?: React.ReactNode | RenderFunction;
|
|
41
|
+
overlay?: React.ReactNode | RenderFunction;
|
|
42
|
+
}
|
|
43
|
+
export interface TooltipPropsWithTitle extends AbstractTooltipProps {
|
|
44
|
+
title: React.ReactNode | RenderFunction;
|
|
45
|
+
overlay?: React.ReactNode | RenderFunction;
|
|
46
|
+
}
|
|
47
|
+
export declare type TooltipProps = TooltipPropsWithTitle | TooltipPropsWithOverlay;
|
|
48
|
+
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<unknown>>;
|
|
49
|
+
export { Tooltip };
|
package/uikit.png
ADDED
|
Binary file
|