import type { SwitchRootProps, SwitchRootEmits } from 'reka-ui'; import type { VNode } from 'vue'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/b24ui/switch'; import type { IconComponent } from '../types'; import type { ButtonHTMLAttributes } from '../types/html'; import type { ComponentConfig } from '../types/tv'; type Switch = ComponentConfig; export interface SwitchProps extends Pick, 'disabled' | 'id' | 'name' | 'required' | 'value' | 'defaultValue' | 'modelValue' | 'trueValue' | 'falseValue'>, /** @vue-ignore */ Omit { /** * The element or component this component should render as. * @defaultValue 'div' */ as?: any; /** * @defaultValue 'air-primary' */ color?: Switch['variants']['color']; /** * @defaultValue 'md' */ size?: Switch['variants']['size']; /** * When `true`, the loading icon will be displayed * @defaultValue false */ loading?: boolean; /** * The icon when the `loading` prop is `true`. * @defaultValue icons.refresh * @IconComponent */ loadingIcon?: IconComponent; /** * Display an icon when the switch is checked. * @IconComponent */ checkedIcon?: IconComponent; /** * Display an icon when the switch is unchecked. * @IconComponent */ uncheckedIcon?: IconComponent; label?: string; description?: string; class?: any; b24ui?: Switch['slots']; } export interface SwitchEmits extends SwitchRootEmits { change: [event: Event]; } export interface SwitchSlots { label?(props: { label: string | undefined; }): VNode[]; description?(props: { description: string | undefined; }): VNode[]; } declare const _default: typeof __VLS_export; export default _default; 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 & { onChange?: ((event: Event) => any) | undefined; "onUpdate:modelValue"?: ((payload: T) => any) | undefined; }> & (typeof globalThis extends { __VLS_PROPS_FALLBACK: infer P; } ? P : {}); expose: (exposed: {}) => void; attrs: any; slots: SwitchSlots; emit: ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", payload: T) => void); }>) => import("vue").VNode & { __ctx?: Awaited; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};