chore(components): prevent useless extends on items

This commit is contained in:
Benjamin Canac
2024-10-17 21:25:17 +02:00
parent 49abad243c
commit 37171b9327
10 changed files with 34 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { tv, type VariantProps } from 'tailwind-variants'
import type { RadioGroupRootProps, RadioGroupRootEmits, RadioGroupItemProps } from 'radix-vue'
import type { RadioGroupRootProps, RadioGroupRootEmits } from 'radix-vue'
import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/ui/radio-group'
@@ -12,9 +12,11 @@ const radioGroup = tv({ extend: tv(theme), ...(appConfig.ui?.radioGroup || {}) }
type RadioGroupVariants = VariantProps<typeof radioGroup>
export interface RadioGroupItem extends Pick<RadioGroupItemProps, 'disabled' | 'value'> {
export interface RadioGroupItem {
label?: string
description?: string
disabled?: boolean
value?: string
}
export interface RadioGroupProps<T> extends Pick<RadioGroupRootProps, 'defaultValue' | 'disabled' | 'loop' | 'modelValue' | 'name' | 'required'> {