feat(ui): add @snowluma/ui shared UI library
Lifts the shadcn primitives + Tailwind 4 theme tokens from webui into a dedicated workspace package consumable by both webui and SnowLumaDesktop. - 14 primitives (Button, Dialog, AlertDialog, Input, Label, Checkbox, Select, Switch, Tabs, Card, Avatar, Badge, Progress, ScrollArea, Separator, Sheet, Skeleton, Tooltip) + sonner Toaster wrapper - Tailwind 4 theme tokens exported via styles/theme.css - tsup ESM build with declaration files - publishConfig.access=public mirroring @snowluma/sdk Consumers @import '@snowluma/ui/styles/theme.css' for tokens and add an @source directive to scan the package for utility classes.
This commit is contained in:
26 files changed
+1988
-7
No files matched your search
@@ -0,0 +1,68 @@
|
||||
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';
|
||||
Reference in new issue
Block a user