feat: sync codebase with latest radix pattern

This commit is contained in:
2026-07-09 17:07:11 +05:30
parent a376558b2f
commit 87dde1c8d1
42 changed files with 4361 additions and 1493 deletions

View File

@@ -1,9 +1,9 @@
'use client';
"use client"
import * as React from 'react';
import * as ProgressPrimitive from '@radix-ui/react-progress';
import * as React from "react"
import { Progress as ProgressPrimitive } from "radix-ui"
import { cn } from '@/lib/utils';
import { cn } from "@/lib/utils"
function Progress({
className,
@@ -14,18 +14,18 @@ function Progress({
<ProgressPrimitive.Root
data-slot="progress"
className={cn(
'bg-primary/20 relative h-2 w-full overflow-hidden rounded-full',
className,
"relative flex h-1.5 w-full items-center overflow-x-hidden rounded-full bg-muted",
className
)}
{...props}
>
<ProgressPrimitive.Indicator
data-slot="progress-indicator"
className="bg-primary h-full w-full flex-1"
className="size-full flex-1 bg-primary transition-all"
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
/>
</ProgressPrimitive.Root>
);
)
}
export { Progress };
export { Progress }