@eslamdevui/ui
Version:
A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
49 lines (48 loc) • 2.17 kB
TypeScript
import type { AppConfig } from '@nuxt/schema';
import type { ButtonProps, InputProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, ComponentConfig } from '../types';
import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
import theme from '#build/ui/dashboard-search';
export type DashboardSearch<_T extends CommandPaletteItem = CommandPaletteItem> = ComponentConfig<typeof theme, AppConfig, 'dashboardSearch'>;
export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPaletteItem> {
icon?: string;
placeholder?: InputProps['placeholder'];
autofocus?: boolean;
loading?: boolean;
loadingIcon?: string;
close?: boolean | Partial<ButtonProps>;
closeIcon?: string;
shortcut?: string;
groups?: CommandPaletteGroup<T>[];
fuse?: UseFuseOptions<T>;
colorMode?: boolean;
class?: any;
ui?: DashboardSearch<T>['slots'] & CommandPaletteProps<CommandPaletteGroup<T>, T>['ui'];
}
export type DashboardSearchSlots<T extends CommandPaletteItem = CommandPaletteItem> = CommandPaletteSlots<CommandPaletteGroup<T>, T> & {
content(props?: {}): any;
};
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchProps<CommandPaletteItem> & {
open?: boolean;
searchTerm?: string;
}, {
commandPaletteRef: Readonly<import("vue").ShallowRef<any>>;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"update:open": (value: boolean) => any;
"update:searchTerm": (value: string) => any;
}, string, import("vue").PublicProps, Readonly<DashboardSearchProps<CommandPaletteItem> & {
open?: boolean;
searchTerm?: string;
}> & Readonly<{
"onUpdate:open"?: ((value: boolean) => any) | undefined;
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
}>, {
close: boolean | Partial<ButtonProps>;
colorMode: boolean;
shortcut: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardSearchSlots<CommandPaletteItem>>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};