feat: rewrite to use app config and rework docs (#143)

Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
This commit is contained in:
Benjamin Canac
2023-05-04 14:49:19 +02:00
committed by GitHub
parent 56230ea915
commit 6da0db0113
144 changed files with 10470 additions and 8109 deletions

View File

@@ -1,9 +1,9 @@
export interface Avatar {
src: string
src: string | boolean
alt: string
text: string
size: string
rounded: boolean
chip: string
chipColor: string
chipVariant: string
chipPosition: string
}

18
src/runtime/types/button.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
export interface Button {
type: string
block: boolean
label: string
loading: boolean
disabled: boolean
size: string
color: string
variant: string
icon: string
leadingIcon: string
trailingIcon: string
trailing: boolean
to: string | object
target: string
square: boolean
truncate: boolean
}

View File

@@ -1,4 +1,3 @@
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js'
import type { Avatar } from './avatar'

View File

@@ -3,3 +3,5 @@ export * from './clipboard'
export * from './command-palette'
export * from './popper'
export * from './toast'
export type DeepPartial<T> = Partial<{ [P in keyof T]: DeepPartial<T[P]> | { [key: string]: string } }>

View File

@@ -1,5 +1,6 @@
export interface ToastNotificationAction {
label: string,
import type { Button } from './button'
export interface ToastNotificationAction extends Partial<Button> {
click: Function
}