import type { CheckboxGroupRootProps, CheckboxGroupRootEmits } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/checkbox-group'; import type { CheckboxProps } from '../types'; import type { AcceptableValue, ComponentConfig } from '../types/utils'; type CheckboxGroup = ComponentConfig; export type CheckboxGroupValue = AcceptableValue; export type CheckboxGroupItem = { label?: string; description?: string; disabled?: boolean; value?: string; class?: any; ui?: Pick & Omit['ui'], 'root'>; [key: string]: any; } | CheckboxGroupValue; export interface CheckboxGroupProps extends Pick, 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?: CheckboxGroup['variants']['size']; /** * @defaultValue 'list' */ variant?: CheckboxGroup['variants']['variant']; /** * The orientation the checkbox buttons are laid out. * @defaultValue 'vertical' */ orientation?: CheckboxGroupRootProps['orientation']; class?: any; ui?: CheckboxGroup['slots'] & CheckboxProps['ui']; } export type CheckboxGroupEmits = CheckboxGroupRootEmits & { change: [payload: Event]; }; type SlotProps = (props: { item: T & { id: string; }; }) => any; export interface CheckboxGroupSlots { 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"?: ((value: import("reka-ui").AcceptableValue[]) => any) | undefined; } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onChange" | "onUpdate:modelValue"> & CheckboxGroupProps & Partial<{}>> & import("vue").PublicProps; expose(exposed: import("vue").ShallowUnwrapRef<{}>): void; attrs: any; slots: CheckboxGroupSlots; emit: ((evt: "change", payload: Event) => void) & ((evt: "update:modelValue", value: import("reka-ui").AcceptableValue[]) => void); }>) => import("vue").VNode & { __ctx?: Awaited; }; export default _default; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};