/** * 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 { TemplateResult } from 'lit'; import '../nile-icon'; import NileElement from '../internal/nile-element'; import type { CSSResultGroup } from 'lit'; /** * Nile icon component. * * @tag nile-menu-item * * @summary Menu items provide options for the user to pick from in a menu. * @status stable * @since 2.0 * * @dependency nile-icon * * @slot - The menu item's label. * @slot prefix - Used to prepend an icon or similar element to the menu item. * @slot suffix - Used to append an icon or similar element to the menu item. * * @csspart base - The component's base wrapper. * @csspart checked-icon - The checked icon, which is only visible when the menu item is checked. * @csspart prefix - The prefix container. * @csspart label - The menu item label. * @csspart suffix - The suffix container. * @csspart submenu-icon - The submenu icon, visible only when the menu item has a submenu (not yet implemented). */ export declare class NileMenuItem extends NileElement { static styles: CSSResultGroup; private cachedTextLabel; defaultSlot: HTMLSlotElement; menuItem: HTMLElement; /** The type of menu item to render. To use `checked`, this value must be set to `checkbox`. */ type: 'normal' | 'checkbox'; /** Draws the item in a checked state. */ checked: boolean; /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */ value: string; /** Draws the menu item in a disabled state, preventing selection. */ disabled: boolean; /** Draws the menu item in an active/selected state. */ active: boolean; /** Draws the item in a checked state. */ hasSubMenu: boolean; connectedCallback(): void; disconnectedCallback(): void; private handleDefaultSlotChange; private handleHostClick; handleCheckedChange(): void; handleDisabledChange(): void; handleTypeChange(): void; /** Returns a text label based on the contents of the menu item's default slot. */ getTextLabel(): string; render(): TemplateResult<1>; } export default NileMenuItem; declare global { interface HTMLElementTagNameMap { 'nile-menu-item': NileMenuItem; } }