UNPKG

@nuxt/ui

Version:

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.

69 lines (68 loc) 3.33 kB
import { DropdownMenu } from 'reka-ui/namespaced'; import type { DropdownMenuContentProps as RekaDropdownMenuContentProps } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import type theme from '#build/ui/dropdown-menu'; import type { DropdownMenuItem, DropdownMenuSlots } from '../types'; import type { ArrayOrNested, NestedItem, ComponentConfig } from '../types/utils'; type DropdownMenu = ComponentConfig<typeof theme, AppConfig, 'dropdownMenu'>; interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> extends Omit<RekaDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> { items?: T; portal?: boolean | string | HTMLElement; sub?: boolean; labelKey: keyof NestedItem<T>; /** * @IconifyIcon */ checkedIcon?: string; /** * @IconifyIcon */ loadingIcon?: string; /** * @IconifyIcon */ externalIcon?: boolean | string; class?: any; ui: { [K in keyof Required<DropdownMenu['slots']>]: (props?: Record<string, any>) => string; }; uiOverride?: DropdownMenu['slots']; } type DropdownMenuContentSlots<T extends ArrayOrNested<DropdownMenuItem>> = Omit<DropdownMenuSlots<T>, 'default'> & { default(props?: {}): any; }; declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{ readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined; readonly onPointerDownOutside?: ((event: CustomEvent<{ originalEvent: PointerEvent; }>) => any) | undefined; readonly onFocusOutside?: ((event: CustomEvent<{ originalEvent: FocusEvent; }>) => any) | undefined; readonly onInteractOutside?: ((event: CustomEvent<{ originalEvent: PointerEvent; }> | CustomEvent<{ originalEvent: FocusEvent; }>) => any) | undefined; readonly onCloseAutoFocus?: ((event: Event) => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps; expose(exposed: import("vue").ShallowUnwrapRef<{}>): void; attrs: any; slots: DropdownMenuContentSlots<T>; emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: CustomEvent<{ originalEvent: PointerEvent; }>) => void) & ((evt: "focusOutside", event: CustomEvent<{ originalEvent: FocusEvent; }>) => void) & ((evt: "interactOutside", event: CustomEvent<{ originalEvent: PointerEvent; }> | CustomEvent<{ originalEvent: FocusEvent; }>) => void) & ((evt: "closeAutoFocus", event: Event) => void); }>) => import("vue").VNode & { __ctx?: Awaited<typeof __VLS_setup>; }; export default _default; type __VLS_PrettifyLocal<T> = { [K in keyof T]: T[K]; } & {};