refactor: move import type from normal script to script setup
don't know how detypes would react with that normal script
This commit is contained in:
parent
37fe1a3710
commit
1369ae6e48
|
|
@ -1,11 +1,7 @@
|
|||
<script lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import type { ToggleGroupRootEmits, ToggleGroupRootProps } from 'radix-vue'
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import { type HTMLAttributes, computed, provide } from 'vue'
|
||||
import { ToggleGroupRoot, useForwardPropsEmits } from 'radix-vue'
|
||||
import { ToggleGroupRoot, type ToggleGroupRootEmits, type ToggleGroupRootProps, useForwardPropsEmits } from 'radix-vue'
|
||||
import type { toggleVariants } from '@/lib/registry/default/ui/toggle'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
<script lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import type { ToggleGroupItemProps } from 'radix-vue'
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import { type HTMLAttributes, computed, inject } from 'vue'
|
||||
import { ToggleGroupItem, useForwardProps } from 'radix-vue'
|
||||
import { ToggleGroupItem, type ToggleGroupItemProps, useForwardProps } from 'radix-vue'
|
||||
import { toggleVariants } from '@/lib/registry/default/ui/toggle'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
<script lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import type { ToggleGroupRootEmits, ToggleGroupRootProps } from 'radix-vue'
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import { type HTMLAttributes, computed, provide } from 'vue'
|
||||
import { ToggleGroupRoot, useForwardPropsEmits } from 'radix-vue'
|
||||
import { ToggleGroupRoot, type ToggleGroupRootEmits, type ToggleGroupRootProps, useForwardPropsEmits } from 'radix-vue'
|
||||
import type { toggleVariants } from '@/lib/registry/new-york/ui/toggle'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
<script lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import type { ToggleGroupItemProps } from 'radix-vue'
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { VariantProps } from 'class-variance-authority'
|
||||
import { type HTMLAttributes, computed, inject } from 'vue'
|
||||
import { ToggleGroupItem, useForwardProps } from 'radix-vue'
|
||||
import { ToggleGroupItem, type ToggleGroupItemProps, useForwardProps } from 'radix-vue'
|
||||
import { toggleVariants } from '@/lib/registry/new-york/ui/toggle'
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user