import type { DialogRootProps, DialogRootEmits, DialogContentProps, DialogContentEmits } from 'reka-ui'; import type { AppConfig } from '@nuxt/schema'; import theme from '#build/ui/slideover'; import type { ButtonProps } from '../types'; import type { EmitsToProps, ComponentConfig } from '../types/utils'; type Slideover = ComponentConfig; export interface SlideoverProps extends DialogRootProps { title?: string; description?: string; /** The content of the slideover. */ content?: Omit & Partial>; /** * Render an overlay behind the slideover. * @defaultValue true */ overlay?: boolean; /** * Animate the slideover when opening or closing. * @defaultValue true */ transition?: boolean; /** * The side of the slideover. * @defaultValue 'right' */ side?: Slideover['variants']['side']; /** * Render the slideover in a portal. * @defaultValue true */ portal?: boolean | string | HTMLElement; /** * Display a close button to dismiss the slideover. * `{ size: 'md', color: 'neutral', variant: 'ghost' }`{lang="ts-type"} * @defaultValue true */ close?: boolean | Partial; /** * The icon displayed in the close button. * @defaultValue appConfig.ui.icons.close * @IconifyIcon */ closeIcon?: string; /** * When `false`, the slideover will not close when clicking outside or pressing escape. * @defaultValue true */ dismissible?: boolean; class?: any; ui?: Slideover['slots']; } export interface SlideoverEmits extends DialogRootEmits { 'after:leave': []; 'after:enter': []; 'close:prevent': []; } export interface SlideoverSlots { default(props: { open: boolean; }): any; content(props?: {}): any; header(props?: {}): any; title(props?: {}): any; description(props?: {}): any; close(props: { ui: { [K in keyof Required]: (props?: Record) => string; }; }): any; body(props?: {}): any; footer(props?: {}): any; } declare const _default: __VLS_WithSlots any; "after:leave": () => any; "after:enter": () => any; "close:prevent": () => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ "onUpdate:open"?: ((value: boolean) => any) | undefined; "onAfter:leave"?: (() => any) | undefined; "onAfter:enter"?: (() => any) | undefined; "onClose:prevent"?: (() => any) | undefined; }>, { close: boolean | Partial; modal: boolean; portal: boolean | string | HTMLElement; overlay: boolean; transition: boolean; side: Slideover["variants"]["side"]; dismissible: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, SlideoverSlots>; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };