/** * 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 NileElement from '../internal/nile-element'; /** What happened. Selects an icon, tone, default copy and ARIA role. */ export type NileEmptyStateStatus = 'empty' | 'no-results' | 'not-found' | 'no-access' | 'error' | 'offline'; /** How loud the state looks. Defaults from `status`, always overridable. */ export type NileEmptyStateTone = 'neutral' | 'info' | 'warning' | 'error'; /** What shape the state occupies. */ export type NileEmptyStateLayout = 'stack' | 'inline' | 'page'; /** * Nile empty-state component. * * @tag nile-empty-state * */ export declare class NileEmptyState extends NileElement { /** * The styles for nile-empty-state * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]` */ static get styles(): CSSResultArray; size: 'sm' | 'md' | 'lg'; variant: 'flat' | 'content' | 'tonal'; status?: NileEmptyStateStatus; layout: NileEmptyStateLayout; code?: string; bordered: boolean; svgIconUrl: string; /** * Overrides the layout-driven glyph size for a custom `svgIconUrl`. Left unset, * the SVG matches whatever size the current variant/layout draws at. */ svgIconSize?: number; svgIconColor: string; private _icon?; private _text?; private _subText?; private _tone?; get icon(): string; set icon(value: string | null); /** Headline. Resolves through the `status` preset to `DEFAULT_TEXT`. */ get text(): string; set text(value: string | null); /** Supporting line. Resolves through the `status` preset to `DEFAULT_SUB_TEXT`. */ get subText(): string; set subText(value: string | null); get tone(): NileEmptyStateTone; set tone(value: NileEmptyStateTone | null); /** The preset backing the current `status`, or undefined when none is set. */ private get preset(); private get glyphColor(); /** ARIA wiring */ private get liveRegion(); private renderGlyph; /** * Render method * @slot This is a slot test */ render(): TemplateResult; } export default NileEmptyState; declare global { interface HTMLElementTagNameMap { 'nile-empty-state': NileEmptyState; } }