Update all imports to use @ relative

This commit is contained in:
Rami Bitar
2026-05-02 09:42:07 -04:00
parent 7348e430c0
commit a915b729b9
64 changed files with 143 additions and 143 deletions

View File

@@ -4,7 +4,7 @@ import * as React from "react";
import * as AccordionPrimitive from "@radix-ui/react-accordion";
import { ChevronDownIcon } from "lucide-react";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
function Accordion({
...props

View File

@@ -1,6 +1,6 @@
import * as React from "react"
import { cn } from "~/editor/lib/utils"
import { cn } from "@/editor/lib/utils"
type AlertVariant = "default" | "destructive"

View File

@@ -3,7 +3,7 @@
import * as React from "react";
import * as AvatarPrimitive from "@radix-ui/react-avatar";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
function Avatar({
className,

View File

@@ -2,7 +2,7 @@ import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
const badgeVariants = cva(
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none transition-[color,box-shadow] overflow-hidden",

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
function Breadcrumb({ ...props }: React.ComponentProps<'nav'>) {
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;

View File

@@ -2,7 +2,7 @@ import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-ring",

View File

@@ -1,6 +1,6 @@
import * as React from "react";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
function Card({ className, ...props }: React.ComponentProps<"div">) {
return (

View File

@@ -6,7 +6,7 @@ import React, {
useRef,
useEffect,
} from 'react';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
import { Button } from './button';
interface CarouselContextType {

View File

@@ -1,7 +1,7 @@
import React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "~/editor/lib/utils"
import { cn } from "@/editor/lib/utils"
function Empty({ className, ...props }: React.ComponentProps<"div">) {
return (

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { OTPInput, OTPInputContext } from 'input-otp';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
function InputOTP({
className,

View File

@@ -1,6 +1,6 @@
import * as React from "react"
import { cn } from "~/editor/lib/utils"
import { cn } from "@/editor/lib/utils"
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
return (

View File

@@ -5,7 +5,7 @@ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
import { cva } from "class-variance-authority";
import { ChevronDownIcon } from "lucide-react";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
function NavigationMenu({
className,

View File

@@ -5,8 +5,8 @@ import {
MoreHorizontalIcon,
} from "lucide-react"
import { cn } from "~/editor/lib/utils"
import { buttonVariants, type Button } from "~/editor/components/ui/button"
import { cn } from "@/editor/lib/utils"
import { buttonVariants, type Button } from "@/editor/components/ui/button"
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
return (

View File

@@ -6,7 +6,7 @@ import React, {
useEffect,
useCallback,
} from 'react';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
interface SelectContextType {
open: boolean;

View File

@@ -3,7 +3,7 @@
import * as React from "react";
import * as SeparatorPrimitive from "@radix-ui/react-separator";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
function Separator({
className,

View File

@@ -1,7 +1,7 @@
import React, { useState, useCallback, useContext, createContext } from 'react';
import { createPortal } from 'react-dom';
import { motion, AnimatePresence } from 'framer-motion';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
interface SheetContextType {
open: boolean;

View File

@@ -1,4 +1,4 @@
import { cn } from "~/editor/lib/utils"
import { cn } from "@/editor/lib/utils"
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { toast } from 'sonner';
import Button from '~/editor/components/ui/button';
import Button from '@/editor/components/ui/button';
export function SonnerDemo() {
return (

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
interface SpinnerProps extends React.ComponentProps<'svg'> {
size?: 'sm' | 'md' | 'lg' | 'xl';

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
interface SwitchProps extends Omit<
React.InputHTMLAttributes<HTMLInputElement>,

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { cn } from '~/editor/lib/utils';
import { cn } from '@/editor/lib/utils';
function Table({ className, ...props }: React.ComponentProps<'table'>) {
return (

View File

@@ -3,7 +3,7 @@
import * as React from "react";
import * as TabsPrimitive from "@radix-ui/react-tabs";
import { cn } from "~/editor/lib/utils";
import { cn } from "@/editor/lib/utils";
function Tabs({
className,

View File

@@ -1,6 +1,6 @@
import * as React from "react"
import { cn } from "~/editor/lib/utils"
import { cn } from "@/editor/lib/utils"
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
return (