feat(ui): add shadcn/ui base components
- Add clsx, tailwind-merge, class-variance-authority dependencies - Add Radix UI primitives (dialog, dropdown-menu, label, select, tabs, toast, slot) - Add lucide-react for icons - Create components.json for shadcn/ui configuration - Create lib/utils.ts with cn(), formatCurrency(), formatDate(), formatTime() - Create Button component with variants (default, destructive, outline, secondary, ghost, link, accent) - Create Input component with focus ring styling - Create Card components (Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
25
apps/web/components/ui/input.tsx
Normal file
25
apps/web/components/ui/input.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as React from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export interface InputProps
|
||||
extends React.InputHTMLAttributes<HTMLInputElement> {}
|
||||
|
||||
const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||
({ className, type, ...props }, ref) => {
|
||||
return (
|
||||
<input
|
||||
type={type}
|
||||
className={cn(
|
||||
"flex h-10 w-full rounded-md border border-primary-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-primary-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
);
|
||||
Input.displayName = "Input";
|
||||
|
||||
export { Input };
|
||||
Reference in New Issue
Block a user