/** * Generated bundle index. Do not edit. */ import * as i0 from "@angular/core"; import { InjectionToken, Signal } from "@angular/core"; /** * The surface a component is sitting on. * * - `default` - the neutral page or card surface. * - `attention` - the inverse, brand-colored surface. * - `emphasis` - the emphasis tint. * - `accent-attention` - one of the accent hues, see `NxSurfaceAccentColor`. * * A surface says what the background is, not what a component should do about * it - each component decides that for itself. */ export type NxSurfaceType = 'default' | 'attention' | 'emphasis' | 'accent-attention'; /** * The value accepted by `[nxSurface]` - an {@link NxSurfaceType}, or `inherit` to keep * the enclosing surface instead of declaring a new one. */ export type NxSurfaceInputValue = NxSurfaceType | 'inherit'; /** Accent hue. Only meaningful when the surface is `accent-attention`. */ export type NxSurfaceAccentColor = 'yellow' | 'orange' | 'red' | 'purple' | 'aqua' | 'blue' | 'teal' | 'green' | 'gray'; /** The hue an `accent-attention` surface falls back to when it names none. */ export declare const NX_DEFAULT_SURFACE_ACCENT_COLOR: NxSurfaceAccentColor; /** A surface together with its accent hue, which only the accent arm carries. */ export type NxResolvedSurface = { readonly surface: 'default' | 'attention' | 'emphasis'; } | { readonly surface: 'accent-attention'; readonly accentColor: NxSurfaceAccentColor; }; /** The value carried by {@link NX_SURFACE}. */ export interface NxSurfaceContext { readonly resolved: Signal; } /** * Context token published by containers that paint a non-default background. * * A container that paints its own background - an overlay panel, a card - must * stop the context at its boundary with * `providers: [{ provide: NX_SURFACE, useValue: undefined }]`, otherwise its * content would adapt to a surface it is no longer sitting on. */ export declare const NX_SURFACE: InjectionToken; /** * The surface this component sits on, or `'default'` when no container published * one. * * Must be called in an injection context. */ export declare function injectSurface(): Signal; /** * Declares the surface for everything inside the host element, and paints its * background to match. Adopting ng-aquila components adapt automatically; other * components and plain CSS can key off the `data-nx-surface` attribute. */ export declare class NxSurface implements NxSurfaceContext { /** `skipSelf`, because this directive provides the token on its own element. */ private readonly _parent; /** * The surface painted on this element. Use `inherit` to keep the enclosing * surface, and `default` to reset it. Default: `'default'`. */ readonly surfaceInput: import("@angular/core").InputSignal; /** The accent hue. Only takes effect with an `accent-attention` surface. */ readonly accentColorInput: import("@angular/core").InputSignal; /** * Whether to paint the surface's background on the host. Turn off when the host * already paints this same surface itself - descendants keep reacting either * way. To stop them reacting, reset the surface instead, see {@link NX_SURFACE}. * Default: `true`. */ readonly background: import("@angular/core").InputSignalWithTransform; readonly resolved: import("@angular/core").Signal; protected readonly _surface: import("@angular/core").Signal; protected readonly _accentColor: import("@angular/core").Signal; readonly _backgroundColor: import("@angular/core").Signal; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }