mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
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:
6
src/runtime/types/avatar.d.ts
vendored
6
src/runtime/types/avatar.d.ts
vendored
@@ -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
18
src/runtime/types/button.d.ts
vendored
Normal 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
|
||||
}
|
||||
1
src/runtime/types/command-palette.d.ts
vendored
1
src/runtime/types/command-palette.d.ts
vendored
@@ -1,4 +1,3 @@
|
||||
import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
||||
import type { FuseSortFunctionMatch, FuseSortFunctionMatchList } from 'fuse.js'
|
||||
import type { Avatar } from './avatar'
|
||||
|
||||
|
||||
2
src/runtime/types/index.d.ts
vendored
2
src/runtime/types/index.d.ts
vendored
@@ -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 } }>
|
||||
|
||||
5
src/runtime/types/toast.d.ts
vendored
5
src/runtime/types/toast.d.ts
vendored
@@ -1,5 +1,6 @@
|
||||
export interface ToastNotificationAction {
|
||||
label: string,
|
||||
import type { Button } from './button'
|
||||
|
||||
export interface ToastNotificationAction extends Partial<Button> {
|
||||
click: Function
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user