fix: import from ../types/index

This commit is contained in:
Benjamin Canac
2024-09-09 18:00:39 +02:00
parent 9d8bb80892
commit 3e28c8f35a
6 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { inject, provide, computed, type ComputedRef, type InjectionKey } from 'vue'
import type { AvatarGroupProps } from '../types'
import type { AvatarGroupProps } from '../types/index'
export const avatarGroupInjectionKey: InjectionKey<ComputedRef<{ size: AvatarGroupProps['size'] }>> = Symbol('nuxt-ui.avatar-group')

View File

@@ -1,6 +1,6 @@
import { inject, ref, computed, type InjectionKey, type Ref, type ComputedRef } from 'vue'
import { type UseEventBusReturn, useDebounceFn } from '@vueuse/core'
import type { FormFieldProps } from '../types'
import type { FormFieldProps } from '../types/index'
import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form'
import type { GetObjectField } from '../types/utils'

View File

@@ -1,7 +1,7 @@
import { ref, inject } from 'vue'
import type { ShallowRef, Component, InjectionKey } from 'vue'
import { createSharedComposable } from '@vueuse/core'
import type { ModalProps } from '../types'
import type { ModalProps } from '../types/index'
import type { ComponentProps } from '../types/component'
export interface ModalState {

View File

@@ -1,7 +1,7 @@
import { ref, inject } from 'vue'
import type { ShallowRef, Component, InjectionKey } from 'vue'
import { createSharedComposable } from '@vueuse/core'
import type { SlideoverProps } from '../types'
import type { SlideoverProps } from '../types/index'
import type { ComponentProps } from '../types/component'
export interface SlideoverState {

View File

@@ -1,5 +1,5 @@
import { useState } from '#imports'
import type { ToastProps } from '../types'
import type { ToastProps } from '../types/index'
export interface Toast extends Omit<ToastProps, 'defaultOpen'> {
id: string | number

View File

@@ -1,5 +1,5 @@
import { reactivePick } from '@vueuse/core'
import type { LinkProps } from '../types'
import type { LinkProps } from '../types/index'
export function pickLinkProps(link: LinkProps & { ariaLabel?: string }) {
return reactivePick(link, 'active', 'activeClass', 'ariaCurrentValue', 'ariaLabel', 'as', 'disabled', 'exact', 'exactActiveClass', 'exactHash', 'exactQuery', 'external', 'href', 'inactiveClass', 'noPrefetch', 'noRel', 'prefetch', 'prefetchedClass', 'rel', 'replace', 'target', 'to', 'type')