mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 03:10:42 +01:00
Revert "fix(types): take user app config into account"
This reverts commit ace8fc1c00.
This commit is contained in:
3
src/runtime/types/avatar.d.ts
vendored
3
src/runtime/types/avatar.d.ts
vendored
@@ -1,8 +1,7 @@
|
|||||||
import { avatar } from '../ui.config'
|
import { avatar } from '../ui.config'
|
||||||
import colors from '#ui-colors'
|
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 AvatarChipColor = 'gray' | typeof colors[number]
|
||||||
export type AvatarChipPosition = keyof typeof avatar.chip.position
|
export type AvatarChipPosition = keyof typeof avatar.chip.position
|
||||||
|
|
||||||
|
|||||||
7
src/runtime/types/badge.d.ts
vendored
7
src/runtime/types/badge.d.ts
vendored
@@ -1,11 +1,10 @@
|
|||||||
import { badge } from '../ui.config'
|
import { badge } from '../ui.config'
|
||||||
import type { NestedKeyOf } from '.'
|
import type { NestedKeyOf } from '.'
|
||||||
import colors from '#ui-colors'
|
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 BadgeSize = keyof typeof badge.size
|
||||||
export type BadgeColor = keyof typeof badge.color | keyof AppConfig['ui']['badge']['color'] | typeof colors[number]
|
export type BadgeColor = keyof typeof 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 BadgeVariant = keyof typeof badge.variant | NestedKeyOf<typeof badge.color>
|
||||||
|
|
||||||
export interface Badge {
|
export interface Badge {
|
||||||
label?: string
|
label?: string
|
||||||
|
|||||||
7
src/runtime/types/button.d.ts
vendored
7
src/runtime/types/button.d.ts
vendored
@@ -2,11 +2,10 @@ import type { Link } from './link'
|
|||||||
import { button } from '../ui.config'
|
import { button } from '../ui.config'
|
||||||
import type { NestedKeyOf } from '.'
|
import type { NestedKeyOf } from '.'
|
||||||
import colors from '#ui-colors'
|
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 ButtonSize = keyof typeof button.size
|
||||||
export type ButtonColor = keyof typeof button.color | keyof AppConfig['ui']['button']['color'] | typeof colors[number]
|
export type ButtonColor = keyof typeof 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 ButtonVariant = keyof typeof button.variant | NestedKeyOf<typeof button.color>
|
||||||
|
|
||||||
export interface Button extends Link {
|
export interface Button extends Link {
|
||||||
type?: string
|
type?: string
|
||||||
|
|||||||
2
src/runtime/types/form.d.ts
vendored
2
src/runtime/types/form.d.ts
vendored
@@ -1,4 +1,4 @@
|
|||||||
import type { Ref } from 'vue'
|
import { Ref } from 'vue'
|
||||||
|
|
||||||
export interface FormError<T extends string = string> {
|
export interface FormError<T extends string = string> {
|
||||||
path: T
|
path: T
|
||||||
|
|||||||
Reference in New Issue
Block a user