import { ID } from "../../types/index.mjs"; import { AtomExpose, AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { MaybeRefOrGetter, Ref } from "vue"; //#region src/components/Checkbox/CheckboxRoot.vue.d.ts /** Visual state of the checkbox for styling purposes */ type CheckboxState = 'checked' | 'unchecked' | 'indeterminate'; interface CheckboxRootContext { /** Unique identifier */ readonly id: ID; /** Optional display label */ readonly label?: string; /** Value associated with this checkbox */ readonly value: V | undefined; /** Form field name (triggers auto hidden input when provided) */ readonly name?: string; /** Associate with form by ID */ readonly form?: string; /** Whether this checkbox is currently checked */ isChecked: Readonly>; /** Whether this checkbox is in a mixed/indeterminate state */ isMixed: Readonly>; /** Whether this checkbox is disabled */ isDisabled: Readonly>; /** Check this checkbox */ select: () => void; /** Uncheck this checkbox */ unselect: () => void; /** Toggle this checkbox's state */ toggle: () => void; /** Set this checkbox to mixed/indeterminate state (group mode only) */ mix: () => void; /** Clear mixed/indeterminate state (group mode only) */ unmix: () => void; } interface CheckboxRootProps extends AtomProps { /** Unique identifier (auto-generated if not provided) */ id?: ID; /** Optional display label (passed through to slot) */ label?: string; /** Value associated with this checkbox (used in group mode and form submission) */ value?: V; /** Form field name - triggers auto hidden input when provided */ name?: string; /** Associate with form by ID */ form?: string; /** Disables this checkbox */ disabled?: boolean | MaybeRefOrGetter; /** Sets the indeterminate state */ indeterminate?: boolean | MaybeRefOrGetter; /** Namespace for context provision to children (Indicator, HiddenInput) */ namespace?: string; /** Namespace for connecting to parent Checkbox.Group */ groupNamespace?: string; /** ID of element that labels this checkbox */ ariaLabelledby?: string; /** ID of element that describes this checkbox */ ariaDescribedby?: string; /** Whether the checkbox has an invalid value */ ariaInvalid?: boolean; } interface CheckboxRootSlotProps { /** Unique identifier */ id: ID; /** Optional display label */ label?: string; /** Value associated with this checkbox */ value: V | undefined; /** Whether this checkbox is currently checked */ isChecked: boolean; /** Whether this checkbox is in a mixed/indeterminate state */ isMixed: boolean; /** Whether this checkbox is disabled */ isDisabled: boolean; /** Check this checkbox */ select: () => void; /** Uncheck this checkbox */ unselect: () => void; /** Toggle this checkbox's state */ toggle: () => void; /** Set this checkbox to mixed/indeterminate state (group mode only) */ mix: () => void; /** Clear mixed/indeterminate state (group mode only) */ unmix: () => void; /** Attributes to bind to the checkbox element */ attrs: { 'type': 'button' | undefined; 'role': 'checkbox'; 'aria-checked': boolean | 'mixed'; 'aria-disabled': boolean; 'aria-label': string | undefined; 'aria-labelledby': string | undefined; 'aria-describedby': string | undefined; 'aria-invalid': boolean | undefined; 'tabindex': 0 | undefined; 'data-state': CheckboxState; 'data-disabled': true | undefined; 'onClick': () => void; 'onKeydown': (e: KeyboardEvent) => void; }; } declare const useCheckboxRoot: (key: string, defaultValue?: CheckboxRootContext | undefined) => CheckboxRootContext, provideCheckboxRoot: (key: string, context: CheckboxRootContext, app?: import("vue").App) => CheckboxRootContext; 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<(CheckboxRootProps & { modelValue?: boolean; }) & { "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined; "onUpdate:model-value"?: ((value: boolean) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: import("vue").ShallowUnwrapRef) => void; attrs: any; slots: { default: (props: CheckboxRootSlotProps) => any; }; emit: ((evt: "update:model-value", value: boolean) => void) & ((event: "update:modelValue", value: boolean | 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 { CheckboxRootContext, CheckboxRootProps, CheckboxRootSlotProps, CheckboxState, _default as default, provideCheckboxRoot, useCheckboxRoot };