/** * 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 type { CSSResultGroup, PropertyValues } from 'lit'; import NileElement from '../internal/nile-element'; import '../nile-checkbox'; /** * Nile icon component. * * @tag nile-option * */ /** * @summary Options define the selectable items within various form controls such as [select](/components/select). * @status stable * * @dependency nile-icon * * @slot - The option'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 checked-icon - The checked icon, an `` element. * @csspart base - The component's base wrapper. * @csspart label - The option's label. * @csspart prefix - The container that wraps the prefix. * @csspart suffix - The container that wraps the suffix. */ export declare class NileOption extends NileElement { static styles: CSSResultGroup; private cachedTextLabel; defaultSlot: HTMLSlotElement; current: boolean; hasHover: boolean; hidden: boolean; isMultipleSelect: boolean; /** * The option's value. When selected, the containing form control will receive this value. The value must be unique * from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing * multiple values. */ value: string; showCheckbox: boolean; /** Draws the option in a disabled state, preventing selection. */ disabled: boolean; /** Indicates whether the option is selected. */ selected: boolean; groupName: string; description: string; prefixSlot: HTMLSlotElement; suffixSlot: HTMLSlotElement; labelContainer: HTMLElement; isParentVirtualSelect: boolean; isDescriptionEnabled: boolean; connectedCallback(): void; protected firstUpdated(): void; applyWidthToLabelContainer(): void; checkIfMultipleSelect(): void; protected updated(_changedProperties: PropertyValues): void; private handleDefaultSlotChange; private handleMouseEnter; private handleMouseLeave; handleDisabledChange(): void; handleSelectedChange(): void; handleValueChange(): void; /** Returns a plain text label based on the option's content. */ getTextLabel(): string; render(): TemplateResult<1>; } export default NileOption; declare global { interface HTMLElementTagNameMap { 'nile-option': NileOption; } }