chore(Popover): remove useless props

This commit is contained in:
Benjamin Canac
2024-03-19 18:37:15 +01:00
parent 46c066d791
commit 5a2a31092a

View File

@@ -4,15 +4,12 @@ import type { PopoverRootProps, HoverCardRootProps, PopoverRootEmits, PopoverCon
import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/ui/popover'
import type { KbdProps } from '#ui/components/Kbd.vue'
const appConfig = _appConfig as AppConfig & { ui: { popover: Partial<typeof theme> } }
const popover = tv({ extend: tv(theme), ...(appConfig.ui?.popover || {}) })
export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps, 'openDelay' | 'closeDelay'>{
text?: string
shortcuts?: string[] | KbdProps[]
/**
* The mode of the popover.
* @defaultValue "click"