mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
chore: improve types export
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { inject, provide, computed, type ComputedRef, type InjectionKey } from 'vue'
|
||||
import type { AvatarGroupProps } from '#ui/types'
|
||||
import type { AvatarGroupProps } from '../types'
|
||||
|
||||
export const avatarGroupInjectionKey: InjectionKey<ComputedRef<{ size: AvatarGroupProps['size'] }>> = Symbol('nuxt-ui.avatar-group')
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type InjectionKey, type ComputedRef } from 'vue'
|
||||
import { inject, computed } from 'vue'
|
||||
import type { GetObjectField } from '#ui/types/utils'
|
||||
import type { ButtonGroupProps } from '../components/ButtonGroup.vue'
|
||||
import type { GetObjectField } from '../types/utils'
|
||||
|
||||
export const buttonGroupInjectionKey: InjectionKey<ComputedRef<{
|
||||
size: ButtonGroupProps ['size']
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { inject, ref, computed, type InjectionKey, type Ref, type ComputedRef } from 'vue'
|
||||
import { type UseEventBusReturn, useDebounceFn } from '@vueuse/core'
|
||||
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '#ui/types/form'
|
||||
import type { GetObjectField } from '#ui/types/utils'
|
||||
import type { FormFieldProps } from '#ui/types'
|
||||
import type { FormFieldProps } from '../types'
|
||||
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form'
|
||||
import type { GetObjectField } from '../types/utils'
|
||||
|
||||
type Props<T> = {
|
||||
id?: string
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ref, inject } from 'vue'
|
||||
import type { ShallowRef, Component, InjectionKey } from 'vue'
|
||||
import { createSharedComposable } from '@vueuse/core'
|
||||
import type { ModalProps } from '#ui/types'
|
||||
import type { ComponentProps } from '#ui/types/component'
|
||||
import type { ModalProps } from '../types'
|
||||
import type { ComponentProps } from '../types/component'
|
||||
|
||||
export interface ModalState {
|
||||
component: Component | string
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ref, inject } from 'vue'
|
||||
import type { ShallowRef, Component, InjectionKey } from 'vue'
|
||||
import { createSharedComposable } from '@vueuse/core'
|
||||
import type { SlideoverProps } from '#ui/types'
|
||||
import type { ComponentProps } from '#ui/types/component'
|
||||
import type { SlideoverProps } from '../types'
|
||||
import type { ComponentProps } from '../types/component'
|
||||
|
||||
export interface SlideoverState {
|
||||
component: Component | string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ToastProps } from '#ui/types'
|
||||
import { useState } from '#imports'
|
||||
import type { ToastProps } from '../types'
|
||||
|
||||
export interface Toast extends Omit<ToastProps, 'defaultOpen'> {
|
||||
id: string | number
|
||||
|
||||
Reference in New Issue
Block a user