mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix: import from ../types/index
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user