Visual overhaul to give @snowluma/ui a coherent, accessible identity. Tokens (styles/theme.css) - Deeper dark-mode surface ramp with more contrast between background / card / popover so dropdowns and dialogs read clearly in dark mode - New radius scale (xs → 3xl) anchored at 0.625rem for tighter feel - Layered shadow tokens (xs/sm/md/lg/xl) that adapt to mode - Semantic success / warning / info / destructive colour + foreground pairs replacing ad-hoc lookups - `--chrome-height` (52px) for consistent top-bar / sidebar header height - Utilities: `hover-lift`, `surface-glass`, `surface-gloss`; consumer- scoped scrollbar styling so native scrollbars match - Note: consumers must also `@import "tw-animate-css";` Components - Select: solid bg-popover + ring-1 ring-foreground/5; rotating chevron on open state; rounded-xl menu with shadow-xl (fixes the transparent dropdown bug) - Dialog / AlertDialog: bg-popover + ring; backdrop-blur on overlay; slide-in motion - Tooltip: ring + zoom-in motion, max-w-xs for long labels - Button: explicit transition list with active:translate-y-px; success / warning variants; icon-xs size - Input: hover border + focus ring + aria-invalid handling - Card: tighter line-height + typography - Badge: variants for success / warning / info / soft, size scale - ScrollArea: hover-only mode by default, slightly thicker thumb New components - Popover (radix wrapper) — for menus / inline overlays - StatusDot — semantic colored dot (replaces ad-hoc 🟢/🟡/🔴 emoji) - EmptyState — uniform placeholder for "nothing here yet" surfaces - Kbd — inline keyboard-key label
73 lines
2.1 KiB
TypeScript
73 lines
2.1 KiB
TypeScript
export { cn } from './lib/cn';
|
|
export { Button, buttonVariants, type ButtonProps } from './components/button';
|
|
export {
|
|
AlertDialog,
|
|
AlertDialogPortal,
|
|
AlertDialogOverlay,
|
|
AlertDialogTrigger,
|
|
AlertDialogContent,
|
|
AlertDialogHeader,
|
|
AlertDialogFooter,
|
|
AlertDialogTitle,
|
|
AlertDialogDescription,
|
|
AlertDialogAction,
|
|
AlertDialogCancel,
|
|
} from './components/alert-dialog';
|
|
export { Avatar, AvatarImage, AvatarFallback } from './components/avatar';
|
|
export { Badge, badgeVariants, type BadgeProps } from './components/badge';
|
|
export {
|
|
Card,
|
|
CardHeader,
|
|
CardTitle,
|
|
CardDescription,
|
|
CardContent,
|
|
CardFooter,
|
|
} from './components/card';
|
|
export { Checkbox } from './components/checkbox';
|
|
export {
|
|
Dialog,
|
|
DialogPortal,
|
|
DialogOverlay,
|
|
DialogTrigger,
|
|
DialogClose,
|
|
DialogContent,
|
|
DialogHeader,
|
|
DialogFooter,
|
|
DialogTitle,
|
|
DialogDescription,
|
|
} from './components/dialog';
|
|
export { Input } from './components/input';
|
|
export { Label } from './components/label';
|
|
export { Progress } from './components/progress';
|
|
export { ScrollArea, ScrollBar } from './components/scroll-area';
|
|
export {
|
|
Select,
|
|
SelectGroup,
|
|
SelectValue,
|
|
SelectTrigger,
|
|
SelectContent,
|
|
SelectLabel,
|
|
SelectItem,
|
|
SelectSeparator,
|
|
SelectScrollUpButton,
|
|
SelectScrollDownButton,
|
|
} from './components/select';
|
|
export { Separator } from './components/separator';
|
|
export {
|
|
Sheet,
|
|
SheetTrigger,
|
|
SheetClose,
|
|
SheetContent,
|
|
SheetPortal,
|
|
SheetOverlay,
|
|
} from './components/sheet';
|
|
export { Skeleton } from './components/skeleton';
|
|
export { Switch } from './components/switch';
|
|
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/tabs';
|
|
export { Toaster, toast, type ToasterProps } from './components/toaster';
|
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/tooltip';
|
|
export { Popover, PopoverTrigger, PopoverAnchor, PopoverContent } from './components/popover';
|
|
export { Kbd } from './components/kbd';
|
|
export { StatusDot, type StatusDotProps } from './components/status-dot';
|
|
export { EmptyState } from './components/empty-state';
|