- Portfolio pages updated with DashboardLayout and shadcn/ui Card components - Strategy pages updated (multi-factor, quality, value-momentum) - Backtest pages updated with consistent styling - Admin data management page updated - Login page improved with shadcn/ui Card, Input, Button, Label - All pages now support dark mode via CSS variables - Removed old Sidebar/Header imports, using unified DashboardLayout - Added shadcn/ui input and label components Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
724 B
TypeScript
27 lines
724 B
TypeScript
"use client"
|
|
|
|
import * as React from "react"
|
|
import * as LabelPrimitive from "@radix-ui/react-label"
|
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const labelVariants = cva(
|
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
)
|
|
|
|
const Label = React.forwardRef<
|
|
React.ElementRef<typeof LabelPrimitive.Root>,
|
|
React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
|
|
VariantProps<typeof labelVariants>
|
|
>(({ className, ...props }, ref) => (
|
|
<LabelPrimitive.Root
|
|
ref={ref}
|
|
className={cn(labelVariants(), className)}
|
|
{...props}
|
|
/>
|
|
))
|
|
Label.displayName = LabelPrimitive.Root.displayName
|
|
|
|
export { Label }
|