import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { SingleContext, SingleTicket } from "../../composables/createSingle/index.mjs"; import { GroupContext, GroupTicket } from "../../composables/createGroup/index.mjs"; import { MaybeRefOrGetter, Ref } from "vue"; //#region src/components/Toggle/ToggleGroup.vue.d.ts type ToggleOrientation = 'horizontal' | 'vertical'; /** Ticket for single-select toggle items with element reference for focus management */ interface ToggleTicket extends SingleTicket { /** Element reference for group focus management */ el?: MaybeRefOrGetter; } /** Ticket for multi-select toggle items with element reference for focus management */ interface ToggleGroupTicket extends GroupTicket { /** Element reference for group focus management */ el?: MaybeRefOrGetter; } /** Imperative handle exposed by Toggle.Group. */ interface ToggleGroupExpose { /** Focus the selected toggle, or the first if none is selected. */ focus: (options?: FocusOptions) => void; } interface ToggleGroupContext | GroupContext = SingleContext | GroupContext> { disabled: Ref; orientation: Ref; selection: S; } interface ToggleGroupProps extends AtomProps { /** Namespace for dependency injection */ namespace?: string; /** Disables the entire toggle group */ disabled?: boolean; /** Allow multiple toggles active at once */ multiple?: boolean; /** Prevent deselecting the last active toggle */ mandatory?: boolean | 'force'; /** Layout direction for ARIA */ orientation?: ToggleOrientation; /** Accessible name for the group */ label?: string; /** ID of element that labels this group */ ariaLabelledby?: string; /** ID of element that describes this group */ ariaDescribedby?: string; } interface ToggleGroupSlotProps { /** Whether the toggle group is disabled */ isDisabled: boolean; /** Attributes to bind to the root element */ attrs: { 'role': 'group'; 'aria-label': string | undefined; 'aria-labelledby': string | undefined; 'aria-describedby': string | undefined; 'aria-orientation': ToggleOrientation; 'aria-disabled': boolean; 'data-orientation': ToggleOrientation; 'data-disabled': true | undefined; }; } declare const useToggleGroup: (key: string, defaultValue?: ToggleGroupContext> | GroupContext>> | undefined) => ToggleGroupContext> | GroupContext>>, provideToggleGroup: (key: string, context: ToggleGroupContext> | GroupContext>>, app?: import("vue").App) => ToggleGroupContext> | GroupContext>>; declare const _default: typeof __VLS_export; declare const __VLS_export: (__VLS_props: NonNullable>["props"], __VLS_ctx?: __VLS_PrettifyLocal>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable>["expose"], __VLS_setup?: Promise<{ props: import("vue").PublicProps & __VLS_PrettifyLocal<(ToggleGroupProps & { modelValue?: T | T[]; }) & { "onUpdate:modelValue"?: ((value: T | T[] | undefined) => any) | undefined; "onUpdate:model-value"?: ((value: T | T[]) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef) => void; attrs: any; slots: { default: (props: ToggleGroupSlotProps) => any; }; emit: ((evt: "update:model-value", value: T | T[]) => void) & ((event: "update:modelValue", value: T | T[] | undefined) => void); }>) => import("vue").VNode & { __ctx?: NonNullable>; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; //#endregion export { ToggleGroupContext, ToggleGroupExpose, ToggleGroupProps, ToggleGroupSlotProps, ToggleGroupTicket, ToggleOrientation, ToggleTicket, _default as default, provideToggleGroup, useToggleGroup };