mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore: ignore as from radix props fields
This commit is contained in:
@@ -26,7 +26,7 @@ export interface AccordionProps<T> extends Omit<AccordionRootProps, 'asChild' |
|
||||
*/
|
||||
trailingIcon?: string
|
||||
/** The content of the accordion. */
|
||||
content?: Omit<AccordionContentProps, 'asChild'>
|
||||
content?: Omit<AccordionContentProps, 'as' | 'asChild'>
|
||||
class?: any
|
||||
ui?: Partial<typeof accordion.slots>
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface ContextMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pic
|
||||
label?: string
|
||||
icon?: string
|
||||
avatar?: AvatarProps
|
||||
content?: Omit<ContextMenuContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
kbds?: KbdProps['value'][] | KbdProps[]
|
||||
/**
|
||||
* The item type.
|
||||
@@ -32,7 +32,7 @@ export interface ContextMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pic
|
||||
export interface ContextMenuProps<T> extends Omit<ContextMenuRootProps, 'dir'>, Pick<ContextMenuTriggerProps, 'disabled'> {
|
||||
items?: T[] | T[][]
|
||||
/** The content of the menu. */
|
||||
content?: Omit<ContextMenuContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Render the menu in a portal.
|
||||
* @defaultValue `true`
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { ContextMenuItem, ContextMenuSlots } from '../types'
|
||||
|
||||
const contextMenu = tv(theme)()
|
||||
|
||||
interface ContextMenuContentProps<T> extends Omit<RadixContextMenuContentProps, 'asChild' | 'forceMount'> {
|
||||
interface ContextMenuContentProps<T> extends Omit<RadixContextMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
|
||||
items?: T[] | T[][]
|
||||
portal?: boolean
|
||||
sub?: boolean
|
||||
|
||||
@@ -14,7 +14,7 @@ export interface DrawerProps extends Omit<DrawerRootProps, 'asChild'> {
|
||||
title?: string
|
||||
description?: string
|
||||
/** The content of the drawer. */
|
||||
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
overlay?: boolean
|
||||
/**
|
||||
* Render the drawer in a portal.
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pi
|
||||
label?: string
|
||||
icon?: string
|
||||
avatar?: AvatarProps
|
||||
content?: Omit<DropdownMenuContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
kbds?: KbdProps['value'][] | KbdProps[]
|
||||
/**
|
||||
* The item type.
|
||||
@@ -38,12 +38,12 @@ export interface DropdownMenuProps<T> extends Omit<DropdownMenuRootProps, 'dir'>
|
||||
* The content of the menu.
|
||||
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
||||
*/
|
||||
content?: Omit<DropdownMenuContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an arrow alongside the menu.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
arrow?: boolean | Omit<DropdownMenuArrowProps, 'asChild'>
|
||||
arrow?: boolean | Omit<DropdownMenuArrowProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Render the menu in a portal.
|
||||
* @defaultValue `true`
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { KbdProps, AvatarProps, DropdownMenuItem, DropdownMenuSlots } from
|
||||
|
||||
const dropdownMenu = tv(theme)()
|
||||
|
||||
interface DropdownMenuContentProps<T> extends Omit<RadixDropdownMenuContentProps, 'asChild' | 'forceMount'> {
|
||||
interface DropdownMenuContentProps<T> extends Omit<RadixDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
|
||||
items?: T[] | T[][]
|
||||
portal?: boolean
|
||||
sub?: boolean
|
||||
|
||||
@@ -58,12 +58,12 @@ export interface InputMenuProps<T> extends Omit<ComboboxRootProps<T>, 'asChild'
|
||||
* The content of the menu.
|
||||
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
||||
*/
|
||||
content?: Omit<ComboboxContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an arrow alongside the menu.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
arrow?: boolean | Omit<ComboboxArrowProps, 'asChild'>
|
||||
arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Render the menu in a portal.
|
||||
* @defaultValue `true`
|
||||
|
||||
@@ -14,7 +14,7 @@ export interface ModalProps extends DialogRootProps {
|
||||
title?: string
|
||||
description?: string
|
||||
/** The content of the modal. */
|
||||
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
overlay?: boolean
|
||||
transition?: boolean
|
||||
fullscreen?: boolean
|
||||
|
||||
@@ -49,7 +49,7 @@ export interface NavigationMenuProps<T> extends Omit<NavigationMenuRootProps, 'a
|
||||
highlight?: boolean
|
||||
highlightColor?: NavigationMenuVariants['highlightColor']
|
||||
/** The content of the menu. */
|
||||
content?: Omit<NavigationMenuContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<NavigationMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an arrow alongside the menu.
|
||||
* @defaultValue `false`
|
||||
|
||||
@@ -19,12 +19,12 @@ export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps,
|
||||
* The content of the popover.
|
||||
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
||||
*/
|
||||
content?: Omit<PopoverContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<PopoverContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an arrow alongside the popover.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
arrow?: boolean | Omit<PopoverArrowProps, 'asChild'>
|
||||
arrow?: boolean | Omit<PopoverArrowProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Render the popover in a portal.
|
||||
* @defaultValue `true`
|
||||
|
||||
@@ -47,12 +47,12 @@ export interface SelectProps<T> extends Omit<SelectRootProps, 'asChild' | 'dir'>
|
||||
* The content of the menu.
|
||||
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
||||
*/
|
||||
content?: Omit<SelectContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<SelectContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an arrow alongside the menu.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
arrow?: boolean | Omit<SelectArrowProps, 'asChild'>
|
||||
arrow?: boolean | Omit<SelectArrowProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Render the menu in a portal.
|
||||
* @defaultValue `true`
|
||||
@@ -92,7 +92,7 @@ const emits = defineEmits<SelectEmits>()
|
||||
const slots = defineSlots<SelectSlots<T>>()
|
||||
|
||||
const appConfig = useAppConfig()
|
||||
const rootProps = useForwardPropsEmits(reactivePick(props, 'modelValue', 'defaultValue', 'open', 'defaultOpen', 'disabled', 'autocomplete', 'required'), emits)
|
||||
const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'modelValue', 'defaultValue', 'open', 'defaultOpen', 'disabled', 'autocomplete', 'required'), emits)
|
||||
const contentProps = toRef(() => defu(props.content, { side: 'bottom', sideOffset: 8, position: 'popper' }) as SelectContentProps)
|
||||
|
||||
const { emitFormChange, emitFormBlur, size: formGroupSize, color, id, name, disabled } = useFormField<InputProps>(props)
|
||||
|
||||
@@ -50,12 +50,12 @@ export interface SelectMenuProps<T> extends Omit<ComboboxRootProps<T>, 'asChild'
|
||||
* The content of the menu.
|
||||
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
||||
*/
|
||||
content?: Omit<ComboboxContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an arrow alongside the menu.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
arrow?: boolean | Omit<ComboboxArrowProps, 'asChild'>
|
||||
arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Render the menu in a portal.
|
||||
* @defaultValue `true`
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface SlideoverProps extends DialogRootProps {
|
||||
title?: string
|
||||
description?: string
|
||||
/** The content of the slideover. */
|
||||
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
||||
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||
/**
|
||||
* Display an overlay behind the slideover.
|
||||
* @defaultValue `true`
|
||||
|
||||
@@ -35,7 +35,7 @@ export interface TabsProps<T> extends Omit<TabsRootProps, 'asChild' | 'orientati
|
||||
* The content of the tabs, can be disabled to prevent rendering the content.
|
||||
* @defaultValue `true`
|
||||
*/
|
||||
content?: boolean | Omit<TabsContentProps, 'asChild' | 'value'>
|
||||
content?: boolean | Omit<TabsContentProps, 'as' | 'asChild' | 'value'>
|
||||
class?: any
|
||||
ui?: Partial<typeof tabs.slots>
|
||||
}
|
||||
|
||||
@@ -19,12 +19,12 @@ export interface TooltipProps extends TooltipRootProps {
|
||||
* The content of the tooltip.
|
||||
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
||||
*/
|
||||
content?: Omit<TooltipContentProps, 'asChild'>
|
||||
content?: Omit<TooltipContentProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Display an arrow alongside the tooltip.
|
||||
* @defaultValue `false`
|
||||
*/
|
||||
arrow?: boolean | Omit<TooltipArrowProps, 'asChild'>
|
||||
arrow?: boolean | Omit<TooltipArrowProps, 'as' | 'asChild'>
|
||||
/**
|
||||
* Render the tooltip in a portal.
|
||||
* @defaultValue `true`
|
||||
|
||||
Reference in New Issue
Block a user