/** * Copyright Aquera Inc 2023 * * This source code is licensed under the BSD-3-Clause license found in the * LICENSE file in the root directory of this source tree. */ import { CSSResultArray, TemplateResult } from 'lit'; import '../nile-popup/nile-popup'; import NileElement from '../internal/nile-element'; import type NilePopup from '../nile-popup/nile-popup'; /** * Nile icon component. * * @tag nile-tooltip * */ export declare class NileTooltip extends NileElement { /** * The styles for Tooltip * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]` */ static get styles(): CSSResultArray; private hoverTimeout; defaultSlot: HTMLSlotElement; body: HTMLElement; popup: NilePopup; /** The tooltip's content. If you need to display HTML, use the `content` slot instead. */ content: string; /** Size Property to decide the tool tip size */ size: 'small' | 'large'; /** * The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip * inside of the viewport. */ placement: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'; /** Disables the tooltip so it won't show when triggered. */ disabled: boolean; /** The distance in pixels from which to offset the tooltip away from its target. */ distance: number; /** Indicates whether or not the tooltip is open. You can use this in lieu of the show/hide methods. */ open: boolean; /** The distance in pixels from which to offset the tooltip along its target. */ skidding: number; /** * Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple * options can be passed by separating them with a space. When manual is used, the tooltip must be activated * programmatically. */ trigger: string; /** * Enable this option to prevent the tooltip from being clipped when the component is placed inside a container with * `overflow: auto|hidden|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, * scenarios. */ hoist: boolean; private visibilityManager?; enableVisibilityEffect: boolean; enableTabClose: boolean; connectedCallback(): void; firstUpdated(): void; disconnectedCallback(): void; private handleBlur; private handleClick; private handleFocus; private handleKeyDown; private handleMouseOver; private handleMouseOut; private hasTrigger; handleOpenChange(): Promise; handleOptionsChange(): Promise; handleDisabledChange(): void; /** Shows the tooltip. */ show(): Promise; /** Hides the tooltip */ hide(): Promise; render(): TemplateResult<1>; } export default NileTooltip; declare global { interface HTMLElementTagNameMap { 'nile-tooltip': NileTooltip; } }