From 82771673f20b6ece7e126a4f8914311473d687e3 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 11 Sep 2024 10:34:59 +0200 Subject: [PATCH] fix(types): no longer need to import types with `/index` suffix Solved in https://github.com/unjs/mkdist/pull/244 --- src/runtime/composables/useAvatarGroup.ts | 2 +- src/runtime/composables/useFormField.ts | 2 +- src/runtime/composables/useModal.ts | 2 +- src/runtime/composables/useSlideover.ts | 2 +- src/runtime/composables/useToast.ts | 2 +- src/runtime/utils/link.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/runtime/composables/useAvatarGroup.ts b/src/runtime/composables/useAvatarGroup.ts index 3cb46ef4..642502e5 100644 --- a/src/runtime/composables/useAvatarGroup.ts +++ b/src/runtime/composables/useAvatarGroup.ts @@ -1,5 +1,5 @@ import { inject, provide, computed, type ComputedRef, type InjectionKey } from 'vue' -import type { AvatarGroupProps } from '../types/index' +import type { AvatarGroupProps } from '../types' export const avatarGroupInjectionKey: InjectionKey> = Symbol('nuxt-ui.avatar-group') diff --git a/src/runtime/composables/useFormField.ts b/src/runtime/composables/useFormField.ts index 87c7f098..c49b4fa7 100644 --- a/src/runtime/composables/useFormField.ts +++ b/src/runtime/composables/useFormField.ts @@ -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/index' +import type { FormFieldProps } from '../types' import type { FormEvent, FormInputEvents, FormFieldInjectedOptions, FormInjectedOptions } from '../types/form' import type { GetObjectField } from '../types/utils' diff --git a/src/runtime/composables/useModal.ts b/src/runtime/composables/useModal.ts index ba99b1b8..7be72d66 100644 --- a/src/runtime/composables/useModal.ts +++ b/src/runtime/composables/useModal.ts @@ -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/index' +import type { ModalProps } from '../types' import type { ComponentProps } from '../types/component' export interface ModalState { diff --git a/src/runtime/composables/useSlideover.ts b/src/runtime/composables/useSlideover.ts index 36307a43..c78fc9b4 100644 --- a/src/runtime/composables/useSlideover.ts +++ b/src/runtime/composables/useSlideover.ts @@ -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/index' +import type { SlideoverProps } from '../types' import type { ComponentProps } from '../types/component' export interface SlideoverState { diff --git a/src/runtime/composables/useToast.ts b/src/runtime/composables/useToast.ts index ba16fa7a..feb139ed 100644 --- a/src/runtime/composables/useToast.ts +++ b/src/runtime/composables/useToast.ts @@ -1,5 +1,5 @@ import { useState } from '#imports' -import type { ToastProps } from '../types/index' +import type { ToastProps } from '../types' export interface Toast extends Omit { id: string | number diff --git a/src/runtime/utils/link.ts b/src/runtime/utils/link.ts index d51b310b..912b6f7b 100644 --- a/src/runtime/utils/link.ts +++ b/src/runtime/utils/link.ts @@ -1,5 +1,5 @@ import { reactivePick } from '@vueuse/core' -import type { LinkProps } from '../types/index' +import type { LinkProps } from '../types' 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')