Revert "fix(types): take user app config into account"

This reverts commit ace8fc1c00.
This commit is contained in:
Benjamin Canac
2023-10-25 17:53:10 +02:00
parent 9023227cc0
commit f69024243e
4 changed files with 8 additions and 11 deletions

View File

@@ -1,8 +1,7 @@
import { avatar } from '../ui.config'
import colors from '#ui-colors'
import type { AppConfig } from 'nuxt/schema'
export type AvatarSize = keyof typeof avatar.size | keyof AppConfig['ui']['avatar']['size']
export type AvatarSize = keyof typeof avatar.size
export type AvatarChipColor = 'gray' | typeof colors[number]
export type AvatarChipPosition = keyof typeof avatar.chip.position

View File

@@ -1,11 +1,10 @@
import { badge } from '../ui.config'
import type { NestedKeyOf } from '.'
import colors from '#ui-colors'
import type { AppConfig } from 'nuxt/schema'
export type BadgeSize = keyof typeof badge.size | keyof AppConfig['ui']['badge']['size']
export type BadgeColor = keyof typeof badge.color | keyof AppConfig['ui']['badge']['color'] | typeof colors[number]
export type BadgeVariant = keyof typeof badge.variant | keyof AppConfig['ui']['badge']['variant'] | NestedKeyOf<typeof badge.color> | NestedKeyOf<AppConfig['ui']['badge']['color']>
export type BadgeSize = keyof typeof badge.size
export type BadgeColor = keyof typeof badge.color | typeof colors[number]
export type BadgeVariant = keyof typeof badge.variant | NestedKeyOf<typeof badge.color>
export interface Badge {
label?: string

View File

@@ -2,11 +2,10 @@ import type { Link } from './link'
import { button } from '../ui.config'
import type { NestedKeyOf } from '.'
import colors from '#ui-colors'
import type { AppConfig } from 'nuxt/schema'
export type ButtonSize = keyof typeof button.size | keyof AppConfig['ui']['button']['size']
export type ButtonColor = keyof typeof button.color | keyof AppConfig['ui']['button']['color'] | typeof colors[number]
export type ButtonVariant = keyof typeof button.variant | keyof AppConfig['ui']['button']['variant'] | NestedKeyOf<typeof button.color> | NestedKeyOf<AppConfig['ui']['button']['color']>
export type ButtonSize = keyof typeof button.size
export type ButtonColor = keyof typeof button.color | typeof colors[number]
export type ButtonVariant = keyof typeof button.variant | NestedKeyOf<typeof button.color>
export interface Button extends Link {
type?: string

View File

@@ -1,4 +1,4 @@
import type { Ref } from 'vue'
import { Ref } from 'vue'
export interface FormError<T extends string = string> {
path: T