mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +01:00
chore(CommandPalette): extend disabled prop from radix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { tv } from 'tailwind-variants'
|
import { tv } from 'tailwind-variants'
|
||||||
import type { ComboboxRootProps, ComboboxRootEmits } from 'radix-vue'
|
import type { ComboboxRootProps, ComboboxRootEmits, ComboboxItemProps } from 'radix-vue'
|
||||||
import type { AppConfig } from '@nuxt/schema'
|
import type { AppConfig } from '@nuxt/schema'
|
||||||
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
||||||
import _appConfig from '#build/app.config'
|
import _appConfig from '#build/app.config'
|
||||||
@@ -13,7 +13,7 @@ const appConfig = _appConfig as AppConfig & { ui: { commandPalette: Partial<type
|
|||||||
|
|
||||||
const commandPalette = tv({ extend: tv(theme), ...(appConfig.ui?.commandPalette || {}) })
|
const commandPalette = tv({ extend: tv(theme), ...(appConfig.ui?.commandPalette || {}) })
|
||||||
|
|
||||||
export interface CommandPaletteItem {
|
export interface CommandPaletteItem extends Pick<ComboboxItemProps, 'disabled'> {
|
||||||
prefix?: string
|
prefix?: string
|
||||||
label?: string
|
label?: string
|
||||||
suffix?: string
|
suffix?: string
|
||||||
@@ -21,7 +21,6 @@ export interface CommandPaletteItem {
|
|||||||
avatar?: AvatarProps
|
avatar?: AvatarProps
|
||||||
chip?: ChipProps
|
chip?: ChipProps
|
||||||
kbds?: KbdProps['value'][] | KbdProps[]
|
kbds?: KbdProps['value'][] | KbdProps[]
|
||||||
disabled?: boolean
|
|
||||||
slot?: string
|
slot?: string
|
||||||
select? (e: Event): void
|
select? (e: Event): void
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user