Standardized tilde imports for non modules
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { computed } from "vue"
|
||||
import { ToastRoot, type ToastRootEmits, useForwardPropsEmits } from "radix-vue"
|
||||
import { type ToastProps, toastVariants } from "."
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
const props = defineProps<ToastProps>()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { type HTMLAttributes, computed } from "vue"
|
||||
import { ToastAction, type ToastActionProps } from "radix-vue"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
const props = defineProps<ToastActionProps & { class?: HTMLAttributes["class"] }>()
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { type HTMLAttributes, computed } from "vue"
|
||||
import { ToastClose, type ToastCloseProps } from "radix-vue"
|
||||
import { X } from "lucide-vue-next"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
const props = defineProps<ToastCloseProps & {
|
||||
class?: HTMLAttributes["class"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { type HTMLAttributes, computed } from "vue"
|
||||
import { ToastDescription, type ToastDescriptionProps } from "radix-vue"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
const props = defineProps<ToastDescriptionProps & { class?: HTMLAttributes["class"] }>()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { type HTMLAttributes, computed } from "vue"
|
||||
import { ToastTitle, type ToastTitleProps } from "radix-vue"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
const props = defineProps<ToastTitleProps & { class?: HTMLAttributes["class"] }>()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { type HTMLAttributes, computed } from "vue"
|
||||
import { ToastViewport, type ToastViewportProps } from "radix-vue"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
const props = defineProps<ToastViewportProps & { class?: HTMLAttributes["class"] }>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user