mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-05 14:48:03 +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
|
trailingIcon?: string
|
||||||
/** The content of the accordion. */
|
/** The content of the accordion. */
|
||||||
content?: Omit<AccordionContentProps, 'asChild'>
|
content?: Omit<AccordionContentProps, 'as' | 'asChild'>
|
||||||
class?: any
|
class?: any
|
||||||
ui?: Partial<typeof accordion.slots>
|
ui?: Partial<typeof accordion.slots>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export interface ContextMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pic
|
|||||||
label?: string
|
label?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
avatar?: AvatarProps
|
avatar?: AvatarProps
|
||||||
content?: Omit<ContextMenuContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
kbds?: KbdProps['value'][] | KbdProps[]
|
kbds?: KbdProps['value'][] | KbdProps[]
|
||||||
/**
|
/**
|
||||||
* The item type.
|
* 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'> {
|
export interface ContextMenuProps<T> extends Omit<ContextMenuRootProps, 'dir'>, Pick<ContextMenuTriggerProps, 'disabled'> {
|
||||||
items?: T[] | T[][]
|
items?: T[] | T[][]
|
||||||
/** The content of the menu. */
|
/** The content of the menu. */
|
||||||
content?: Omit<ContextMenuContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<ContextMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Render the menu in a portal.
|
* Render the menu in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { ContextMenuItem, ContextMenuSlots } from '../types'
|
|||||||
|
|
||||||
const contextMenu = tv(theme)()
|
const contextMenu = tv(theme)()
|
||||||
|
|
||||||
interface ContextMenuContentProps<T> extends Omit<RadixContextMenuContentProps, 'asChild' | 'forceMount'> {
|
interface ContextMenuContentProps<T> extends Omit<RadixContextMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
|
||||||
items?: T[] | T[][]
|
items?: T[] | T[][]
|
||||||
portal?: boolean
|
portal?: boolean
|
||||||
sub?: boolean
|
sub?: boolean
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export interface DrawerProps extends Omit<DrawerRootProps, 'asChild'> {
|
|||||||
title?: string
|
title?: string
|
||||||
description?: string
|
description?: string
|
||||||
/** The content of the drawer. */
|
/** The content of the drawer. */
|
||||||
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
overlay?: boolean
|
overlay?: boolean
|
||||||
/**
|
/**
|
||||||
* Render the drawer in a portal.
|
* Render the drawer in a portal.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export interface DropdownMenuItem extends Omit<LinkProps, 'type' | 'custom'>, Pi
|
|||||||
label?: string
|
label?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
avatar?: AvatarProps
|
avatar?: AvatarProps
|
||||||
content?: Omit<DropdownMenuContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
kbds?: KbdProps['value'][] | KbdProps[]
|
kbds?: KbdProps['value'][] | KbdProps[]
|
||||||
/**
|
/**
|
||||||
* The item type.
|
* The item type.
|
||||||
@@ -38,12 +38,12 @@ export interface DropdownMenuProps<T> extends Omit<DropdownMenuRootProps, 'dir'>
|
|||||||
* The content of the menu.
|
* The content of the menu.
|
||||||
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
||||||
*/
|
*/
|
||||||
content?: Omit<DropdownMenuContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<DropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the menu.
|
* Display an arrow alongside the menu.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
*/
|
*/
|
||||||
arrow?: boolean | Omit<DropdownMenuArrowProps, 'asChild'>
|
arrow?: boolean | Omit<DropdownMenuArrowProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Render the menu in a portal.
|
* Render the menu in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { KbdProps, AvatarProps, DropdownMenuItem, DropdownMenuSlots } from
|
|||||||
|
|
||||||
const dropdownMenu = tv(theme)()
|
const dropdownMenu = tv(theme)()
|
||||||
|
|
||||||
interface DropdownMenuContentProps<T> extends Omit<RadixDropdownMenuContentProps, 'asChild' | 'forceMount'> {
|
interface DropdownMenuContentProps<T> extends Omit<RadixDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
|
||||||
items?: T[] | T[][]
|
items?: T[] | T[][]
|
||||||
portal?: boolean
|
portal?: boolean
|
||||||
sub?: boolean
|
sub?: boolean
|
||||||
|
|||||||
@@ -58,12 +58,12 @@ export interface InputMenuProps<T> extends Omit<ComboboxRootProps<T>, 'asChild'
|
|||||||
* The content of the menu.
|
* The content of the menu.
|
||||||
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
||||||
*/
|
*/
|
||||||
content?: Omit<ComboboxContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the menu.
|
* Display an arrow alongside the menu.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
*/
|
*/
|
||||||
arrow?: boolean | Omit<ComboboxArrowProps, 'asChild'>
|
arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Render the menu in a portal.
|
* Render the menu in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export interface ModalProps extends DialogRootProps {
|
|||||||
title?: string
|
title?: string
|
||||||
description?: string
|
description?: string
|
||||||
/** The content of the modal. */
|
/** The content of the modal. */
|
||||||
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
overlay?: boolean
|
overlay?: boolean
|
||||||
transition?: boolean
|
transition?: boolean
|
||||||
fullscreen?: boolean
|
fullscreen?: boolean
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export interface NavigationMenuProps<T> extends Omit<NavigationMenuRootProps, 'a
|
|||||||
highlight?: boolean
|
highlight?: boolean
|
||||||
highlightColor?: NavigationMenuVariants['highlightColor']
|
highlightColor?: NavigationMenuVariants['highlightColor']
|
||||||
/** The content of the menu. */
|
/** The content of the menu. */
|
||||||
content?: Omit<NavigationMenuContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<NavigationMenuContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the menu.
|
* Display an arrow alongside the menu.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ export interface PopoverProps extends PopoverRootProps, Pick<HoverCardRootProps,
|
|||||||
* The content of the popover.
|
* The content of the popover.
|
||||||
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
||||||
*/
|
*/
|
||||||
content?: Omit<PopoverContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<PopoverContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the popover.
|
* Display an arrow alongside the popover.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
*/
|
*/
|
||||||
arrow?: boolean | Omit<PopoverArrowProps, 'asChild'>
|
arrow?: boolean | Omit<PopoverArrowProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Render the popover in a portal.
|
* Render the popover in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
|
|||||||
@@ -47,12 +47,12 @@ export interface SelectProps<T> extends Omit<SelectRootProps, 'asChild' | 'dir'>
|
|||||||
* The content of the menu.
|
* The content of the menu.
|
||||||
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
||||||
*/
|
*/
|
||||||
content?: Omit<SelectContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<SelectContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the menu.
|
* Display an arrow alongside the menu.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
*/
|
*/
|
||||||
arrow?: boolean | Omit<SelectArrowProps, 'asChild'>
|
arrow?: boolean | Omit<SelectArrowProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Render the menu in a portal.
|
* Render the menu in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
@@ -92,7 +92,7 @@ const emits = defineEmits<SelectEmits>()
|
|||||||
const slots = defineSlots<SelectSlots<T>>()
|
const slots = defineSlots<SelectSlots<T>>()
|
||||||
|
|
||||||
const appConfig = useAppConfig()
|
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 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)
|
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.
|
* The content of the menu.
|
||||||
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
* @defaultValue `{ side: 'bottom', sideOffset: 8, position: 'popper' }`
|
||||||
*/
|
*/
|
||||||
content?: Omit<ComboboxContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<ComboboxContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the menu.
|
* Display an arrow alongside the menu.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
*/
|
*/
|
||||||
arrow?: boolean | Omit<ComboboxArrowProps, 'asChild'>
|
arrow?: boolean | Omit<ComboboxArrowProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Render the menu in a portal.
|
* Render the menu in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export interface SlideoverProps extends DialogRootProps {
|
|||||||
title?: string
|
title?: string
|
||||||
description?: string
|
description?: string
|
||||||
/** The content of the slideover. */
|
/** The content of the slideover. */
|
||||||
content?: Omit<DialogContentProps, 'asChild' | 'forceMount'>
|
content?: Omit<DialogContentProps, 'as' | 'asChild' | 'forceMount'>
|
||||||
/**
|
/**
|
||||||
* Display an overlay behind the slideover.
|
* Display an overlay behind the slideover.
|
||||||
* @defaultValue `true`
|
* @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.
|
* The content of the tabs, can be disabled to prevent rendering the content.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
*/
|
*/
|
||||||
content?: boolean | Omit<TabsContentProps, 'asChild' | 'value'>
|
content?: boolean | Omit<TabsContentProps, 'as' | 'asChild' | 'value'>
|
||||||
class?: any
|
class?: any
|
||||||
ui?: Partial<typeof tabs.slots>
|
ui?: Partial<typeof tabs.slots>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,12 +19,12 @@ export interface TooltipProps extends TooltipRootProps {
|
|||||||
* The content of the tooltip.
|
* The content of the tooltip.
|
||||||
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
* @defaultValue `{ side: 'bottom', sideOffset: 8 }`
|
||||||
*/
|
*/
|
||||||
content?: Omit<TooltipContentProps, 'asChild'>
|
content?: Omit<TooltipContentProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Display an arrow alongside the tooltip.
|
* Display an arrow alongside the tooltip.
|
||||||
* @defaultValue `false`
|
* @defaultValue `false`
|
||||||
*/
|
*/
|
||||||
arrow?: boolean | Omit<TooltipArrowProps, 'asChild'>
|
arrow?: boolean | Omit<TooltipArrowProps, 'as' | 'asChild'>
|
||||||
/**
|
/**
|
||||||
* Render the tooltip in a portal.
|
* Render the tooltip in a portal.
|
||||||
* @defaultValue `true`
|
* @defaultValue `true`
|
||||||
|
|||||||
Reference in New Issue
Block a user