UNPKG

@ark-ui/vue

Version:

A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.

34 lines (33 loc) 1.73 kB
import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue'; import { Assign } from '../../types'; import { RenderStrategyProps } from '../../utils/use-render-strategy'; import { CollectionItem } from '../collection'; import { PolymorphicProps } from '../factory'; import { UseComboboxReturn } from './use-combobox'; interface RootProviderProps<T extends CollectionItem> { value: UnwrapRef<UseComboboxReturn<T>>; } export interface ComboboxRootProviderBaseProps<T extends CollectionItem> extends RootProviderProps<T>, RenderStrategyProps, PolymorphicProps { } export interface ComboboxRootProviderProps<T extends CollectionItem> extends ComboboxRootProviderBaseProps<T>, /** * @vue-ignore */ HTMLAttributes { } export type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => any; declare const _default: <T extends CollectionItem>(__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<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ComboboxRootProviderProps<T> & Partial<{}>> & PublicProps; expose(exposed: ShallowUnwrapRef<{}>): void; attrs: any; slots: { default?(_: {}): any; }; emit: {}; }>) => VNode & { __ctx?: Awaited<typeof __VLS_setup>; }; export default _default; type __VLS_PrettifyLocal<T> = { [K in keyof T]: T[K]; } & {};