import type { RadioGroupRootProps, RadioGroupRootEmits } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/radio-group'; import type { AcceptableValue, ComponentConfig } from '../types/utils'; type RadioGroup = ComponentConfig; export type RadioGroupValue = AcceptableValue; export type RadioGroupItem = { label?: string; description?: string; disabled?: boolean; value?: RadioGroupValue; class?: any; ui?: Pick; [key: string]: any; } | RadioGroupValue; export interface RadioGroupProps extends Pick { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; legend?: string; /** * When `items` is an array of objects, select the field to use as the value. * @defaultValue 'value' */ valueKey?: string; /** * When `items` is an array of objects, select the field to use as the label. * @defaultValue 'label' */ labelKey?: string; /** * When `items` is an array of objects, select the field to use as the description. * @defaultValue 'description' */ descriptionKey?: string; items?: T[]; /** * @defaultValue 'md' */ size?: RadioGroup['variants']['size']; /** * @defaultValue 'list' */ variant?: RadioGroup['variants']['variant']; /** * @defaultValue 'primary' */ color?: RadioGroup['variants']['color']; /** * The orientation the radio buttons are laid out. * @defaultValue 'vertical' */ orientation?: RadioGroupRootProps['orientation']; /** * Position of the indicator. * @defaultValue 'start' */ indicator?: RadioGroup['variants']['indicator']; class?: any; ui?: RadioGroup['slots']; } export type RadioGroupEmits = RadioGroupRootEmits & { change: [payload: Event]; }; type SlotProps = (props: { item: T & { id: string; }; modelValue?: RadioGroupValue; }) => any; export interface RadioGroupSlots { legend(props?: {}): any; label: SlotProps; description: SlotProps; } declare const _default: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: __VLS_PrettifyLocal & Omit<{ readonly onChange?: ((payload: Event) => any) | undefined; readonly "onUpdate:modelValue"?: ((payload: string) => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & RadioGroupProps & Partial<{}>> & import("vue").PublicProps; expose(exposed: import("vue").ShallowUnwrapRef<{}>): void; attrs: any; slots: RadioGroupSlots; emit: ((evt: "change", payload: Event) => void) & ((evt: "update:modelValue", payload: string) => void); }>) => import("vue").VNode & { __ctx?: Awaited; }; export default _default; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};