import React from 'react';
export const Card = ({ children, className = '', ...props }) => (
{children}
);
export const CardHeader = ({ children, className = '', ...props }) => (
{children}
);
export const CardContent = ({ children, className = '', ...props }) => (
{children}
);
export const CardTitle = ({ children, className = '', ...props }) => (
{children}
);
export const CardDescription = ({ children, className = '', ...props }) => (
{children}
);
export const Button = ({
children,
variant = 'primary',
size = 'md',
className = '',
disabled = false,
loading = false,
...props
}) => {
const baseStyles = 'inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed';
const variants = {
primary: 'bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 shadow-sm hover:shadow-md',
secondary: 'bg-gray-100 text-gray-900 hover:bg-gray-200 focus:ring-gray-500 border border-gray-300',
outline: 'border border-gray-300 text-gray-700 bg-white hover:bg-gray-50 focus:ring-blue-500',
ghost: 'text-gray-700 hover:bg-gray-100 focus:ring-gray-500',
danger: 'bg-red-600 text-white hover:bg-red-700 focus:ring-red-500',
};
const sizes = {
sm: 'px-3 py-2 text-sm',
md: 'px-4 py-2 text-sm',
lg: 'px-6 py-3 text-base',
};
return (
);
};
export const Input = ({ label, error, className = '', ...props }) => (
{label && (
)}
{error && (
{error}
)}
);
export const Textarea = ({ label, error, className = '', ...props }) => (
{label && (
)}
{error && (
{error}
)}
);
export const Badge = ({ children, variant = 'default', className = '' }) => {
const variants = {
default: 'bg-gray-100 text-gray-800',
success: 'bg-green-100 text-green-800',
warning: 'bg-yellow-100 text-yellow-800',
error: 'bg-red-100 text-red-800',
info: 'bg-blue-100 text-blue-800',
};
return (
{children}
);
};
export const Alert = ({ children, variant = 'info', className = '' }) => {
const variants = {
info: 'bg-blue-50 border-blue-200 text-blue-800',
success: 'bg-green-50 border-green-200 text-green-800',
warning: 'bg-yellow-50 border-yellow-200 text-yellow-800',
error: 'bg-red-50 border-red-200 text-red-800',
};
return (
{children}
);
};
export const Tabs = ({ children, value, onValueChange }) => (
);
export const TabsTrigger = ({ children, isActive, onClick }) => (
);
export const TabsContent = ({ children, isActive }) => (
{children}
);