27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
|
import * as React from "react";
|
||
|
import { ReactElement } from "react";
|
||
|
export interface TooltipState {
|
||
|
forceShow: boolean;
|
||
|
hovered: boolean;
|
||
|
pageX: number;
|
||
|
pageY: number;
|
||
|
}
|
||
|
export interface TooltipProperties {
|
||
|
tooltip: () => ReactElement | ReactElement[] | string;
|
||
|
}
|
||
|
export declare class Tooltip extends React.Component<TooltipProperties, TooltipState> {
|
||
|
readonly tooltipId: string;
|
||
|
private refContainer;
|
||
|
private currentContainer;
|
||
|
constructor(props: any);
|
||
|
componentWillUnmount(): void;
|
||
|
render(): JSX.Element;
|
||
|
componentDidUpdate(prevProps: Readonly<TooltipProperties>, prevState: Readonly<TooltipState>, snapshot?: any): void;
|
||
|
private onMouseEnter;
|
||
|
updatePosition(): void;
|
||
|
}
|
||
|
export declare const IconTooltip: (props: {
|
||
|
children?: React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)> | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>[];
|
||
|
className?: string;
|
||
|
}) => JSX.Element;
|