evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A small setup module that mounts the UI library plugin with centralized options for ripple effects, input styling, locales, theming, and pass-through behavior so every component shares the same defaults.
filled input styling, and a theme preset when no overrides are passed; a sample button rendered after install uses the ripple effect and the filled input style classes. @testexport type UiLocale = Record<string, unknown>;
export interface UiThemePreset {
name: string;
linkId?: string;
cssPath?: string;
}
export interface UiConfigOptions {
ripple?: boolean;
inputStyle?: 'filled' | 'outlined';
locale?: UiLocale;
theme?: UiThemePreset;
zIndex?: Partial<{ modal: number; overlay: number; tooltip: number; menu: number; toast: number }>;
passThroughMerge?: 'mergeProps' | 'mergeSections';
unstyled?: boolean;
cspNonce?: string;
}
export function installUiPlugin(app: unknown, options?: UiConfigOptions): void;
export function setUiLocale(locale: UiLocale): void;
export function swapUiTheme(nextTheme: UiThemePreset): Promise<void>;
export function toggleUnstyled(enabled: boolean, mergeStrategy?: 'mergeProps' | 'mergeSections'): void;
export function useUiConfig(): {
ripple: boolean;
inputStyle: 'filled' | 'outlined';
locale: UiLocale;
theme: UiThemePreset | null;
zIndex: UiConfigOptions['zIndex'];
unstyled: boolean;
};UI component framework and plugin used to provide global configuration, pass-through customization, and theming. @satisfied-by