mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
chore: allow as in content and arrow props
This commit is contained in:
@@ -15,7 +15,7 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type'> {
|
|||||||
icon?: IconProps['name']
|
icon?: IconProps['name']
|
||||||
avatar?: AvatarProps
|
avatar?: AvatarProps
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
content?: Omit<DropdownMenuContentProps, 'asChild' | 'forceMount'>
|
||||||
shortcuts?: string[] | KbdProps[]
|
shortcuts?: string[] | KbdProps[]
|
||||||
type?: 'label' | 'item'
|
type?: 'label' | 'item'
|
||||||
slot?: string
|
slot?: string
|
||||||
@@ -28,8 +28,8 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type'> {
|
|||||||
export interface DropdownMenuProps<T> extends Omit<DropdownMenuRootProps, 'dir'> {
|
export interface DropdownMenuProps<T> extends Omit<DropdownMenuRootProps, 'dir'> {
|
||||||
items?: T[] | T[][]
|
items?: T[] | T[][]
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
content?: Omit<DropdownMenuContentProps, 'asChild' | 'forceMount'>
|
||||||
arrow?: boolean | Omit<DropdownMenuArrowProps, 'as' | 'asChild'>
|
arrow?: boolean | Omit<DropdownMenuArrowProps, 'asChild'>
|
||||||
portal?: boolean
|
portal?: boolean
|
||||||
class?: any
|
class?: any
|
||||||
ui?: Partial<typeof dropdownMenu.slots>
|
ui?: Partial<typeof dropdownMenu.slots>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import type { DropdownMenuContentProps as RadixDropdownMenuContentProps, DropdownMenuContentEmits as RadixDropdownMenuContentEmits } from 'radix-vue'
|
import type { DropdownMenuContentProps as RadixDropdownMenuContentProps, DropdownMenuContentEmits as RadixDropdownMenuContentEmits } from 'radix-vue'
|
||||||
import type { DropdownMenuItem } from '#ui/types'
|
import type { DropdownMenuItem } from '#ui/types'
|
||||||
|
|
||||||
export interface DropdownMenuContentProps<T> extends Omit<RadixDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
|
export interface DropdownMenuContentProps<T> extends Omit<RadixDropdownMenuContentProps, 'asChild' | 'forceMount'> {
|
||||||
items?: T[] | T[][]
|
items?: T[] | T[][]
|
||||||
portal?: boolean
|
portal?: boolean
|
||||||
sub?: boolean
|
sub?: boolean
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const modal = tv({ extend: tv(theme), ...(appConfig.ui?.modal || {}) })
|
|||||||
export interface ModalProps extends DialogRootProps {
|
export interface ModalProps extends DialogRootProps {
|
||||||
title?: string
|
title?: string
|
||||||
description?: string
|
description?: string
|
||||||
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
||||||
overlay?: boolean
|
overlay?: boolean
|
||||||
transition?: boolean
|
transition?: boolean
|
||||||
fullscreen?: boolean
|
fullscreen?: boolean
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps,
|
|||||||
* @defaultValue "click"
|
* @defaultValue "click"
|
||||||
*/
|
*/
|
||||||
mode?: 'click' | 'hover'
|
mode?: 'click' | 'hover'
|
||||||
content?: Omit<PopoverContentProps, 'as' | 'asChild' | 'forceMount'>
|
content?: Omit<PopoverContentProps, 'asChild' | 'forceMount'>
|
||||||
arrow?: boolean | Omit<PopoverArrowProps, 'as' | 'asChild'>
|
arrow?: boolean | Omit<PopoverArrowProps, 'asChild'>
|
||||||
portal?: boolean
|
portal?: boolean
|
||||||
class?: any
|
class?: any
|
||||||
ui?: Partial<typeof popover.slots>
|
ui?: Partial<typeof popover.slots>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const slideover = tv({ extend: tv(theme), ...(appConfig.ui?.slideover || {}) })
|
|||||||
export interface SlideoverProps extends DialogRootProps {
|
export interface SlideoverProps extends DialogRootProps {
|
||||||
title?: string
|
title?: string
|
||||||
description?: string
|
description?: string
|
||||||
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
||||||
overlay?: boolean
|
overlay?: boolean
|
||||||
transition?: boolean
|
transition?: boolean
|
||||||
side?: 'left' | 'right' | 'top' | 'bottom'
|
side?: 'left' | 'right' | 'top' | 'bottom'
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ const tooltip = tv({ extend: tv(theme), ...(appConfig.ui?.tooltip || {}) })
|
|||||||
export interface TooltipProps extends TooltipRootProps {
|
export interface TooltipProps extends TooltipRootProps {
|
||||||
text?: string
|
text?: string
|
||||||
shortcuts?: string[] | KbdProps[]
|
shortcuts?: string[] | KbdProps[]
|
||||||
content?: Omit<TooltipContentProps, 'as' | 'asChild'>
|
content?: Omit<TooltipContentProps, 'asChild'>
|
||||||
arrow?: boolean | Omit<TooltipArrowProps, 'as' | 'asChild'>
|
arrow?: boolean | Omit<TooltipArrowProps, 'asChild'>
|
||||||
portal?: boolean
|
portal?: boolean
|
||||||
class?: any
|
class?: any
|
||||||
ui?: Partial<typeof tooltip.slots>
|
ui?: Partial<typeof tooltip.slots>
|
||||||
|
|||||||
Reference in New Issue
Block a user