fix: update import paths for components and utilities to relative paths

This commit is contained in:
2025-10-17 22:41:52 +02:00
parent 02643e3702
commit 337b07f3c5
33 changed files with 3050 additions and 70 deletions

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 '@/lib/utils';
import { cn } from '../../lib/utils';
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer 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:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",

View File

@@ -8,8 +8,8 @@ import {
} from 'lucide-react';
import { DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker';
import { cn } from '@/lib/utils';
import { Button, buttonVariants } from '@/components/ui/button';
import { cn } from '../../lib/utils';
import { Button, buttonVariants } from './button';
function Calendar({
className,

View File

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

View File

@@ -4,14 +4,14 @@ import * as React from 'react';
import { format } from 'date-fns';
import { Calendar as CalendarIcon } from 'lucide-react';
import { cn } from '@/lib/utils';
import { Button } from '@/components/ui/button';
import { Calendar } from '@/components/ui/calendar';
import { cn } from '../../lib/utils';
import { Button } from './button';
import { Calendar } from './calendar';
import {
Popover,
PopoverContent,
PopoverTrigger,
} from '@/components/ui/popover';
} from './popover';
interface DatePickerProps {
date: Date | undefined;

View File

@@ -4,7 +4,7 @@ import * as React from 'react';
import * as DialogPrimitive from '@radix-ui/react-dialog';
import { XIcon } from 'lucide-react';
import { cn } from '@/lib/utils';
import { cn } from '../../lib/utils';
function Dialog({
...props

View File

@@ -13,8 +13,8 @@ import {
type FieldValues,
} from 'react-hook-form';
import { cn } from '@/lib/utils';
import { Label } from '@/components/ui/label';
import { cn } from '../../lib/utils';
import { Label } from './label';
const Form = FormProvider;

View File

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

View File

@@ -3,7 +3,7 @@
import * as React from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';
import { cn } from '@/lib/utils';
import { cn } from '../../lib/utils';
function Label({
className,

View File

@@ -3,7 +3,7 @@
import * as React from 'react';
import * as PopoverPrimitive from '@radix-ui/react-popover';
import { cn } from '@/lib/utils';
import { cn } from '../../lib/utils';
function Popover({
...props

View File

@@ -2,7 +2,7 @@
import * as React from 'react';
import { cn } from '@/lib/utils';
import { cn } from '../../lib/utils';
function Table({ className, ...props }: React.ComponentProps<'table'>) {
return (