@ebay/ebayui-core
Version:
Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.
34 lines (33 loc) • 1.24 kB
TypeScript
import type { WithNormalizedProps } from "../../global";
import type { Input as TooltipBaseInput } from "../components/ebay-tooltip-base/component-browser";
import type { Input as TooltipOverlayInput } from "../components/ebay-tooltip-overlay/component-browser";
interface TooltipInput extends Omit<Marko.HTML.Span, `on${string}`> {
open?: boolean;
"no-hover"?: TooltipBaseInput["noHover"];
host?: Marko.AttrTag<{
renderBody: Marko.Body;
}>;
heading?: TooltipOverlayInput["heading"];
content?: TooltipOverlayInput["content"];
pointer?: TooltipBaseInput["pointer"];
placement?: TooltipBaseInput["placement"];
offset?: TooltipBaseInput["offset"];
"not-inline"?: TooltipBaseInput["not-inline"];
"no-shift"?: TooltipBaseInput["no-shift"];
"no-flip"?: TooltipBaseInput["no-flip"];
"on-expand"?: () => void;
"on-collapse"?: () => void;
}
export interface Input extends WithNormalizedProps<TooltipInput> {
}
interface State {
open: boolean;
}
declare class Tooltip extends Marko.Component<Input, State> {
onCreate(): void;
onInput(input: Input): void;
handleExpand(): void;
handleCollapse(): void;
handleKeydown(e: KeyboardEvent): void;
}
export default Tooltip;