From 0f3ca8d6816f88ac5598b9082c4980f3c0a87eaa Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Sat, 27 May 2023 16:02:25 -0400 Subject: [PATCH] build componentx --- apps/www/src/lib/config/components.ts | 36 ++- .../src/routes/api/components/components.json | 234 +++++++++++------- 2 files changed, 175 insertions(+), 95 deletions(-) diff --git a/apps/www/src/lib/config/components.ts b/apps/www/src/lib/config/components.ts index 18c757b9b..cf0f9bcf7 100644 --- a/apps/www/src/lib/config/components.ts +++ b/apps/www/src/lib/config/components.ts @@ -225,12 +225,21 @@ export const components = [ "src/lib/components/ui/separator/index.ts" ] }, - // { - // component: "sheet", - // name: "Sheet", - // dependencies: ["@radix-ui/react-dialog"], - // files: ["components/ui/sheet.tsx"] - // }, + { + component: "sheet", + name: "Sheet", + dependencies: ["radix-svelte"], + files: [ + "src/lib/components/ui/sheet/SheetContent.svelte", + "src/lib/components/ui/sheet/SheetDescription.svelte", + "src/lib/components/ui/sheet/SheetFooter.svelte", + "src/lib/components/ui/sheet/SheetHeader.svelte", + "src/lib/components/ui/sheet/SheetOverlay.svelte", + "src/lib/components/ui/sheet/SheetPortal.svelte", + "src/lib/components/ui/sheet/SheetTitle.svelte", + "src/lib/components/ui/sheet/index.ts" + ] + }, { component: "skeleton", name: "Skeleton", @@ -305,11 +314,14 @@ export const components = [ "src/lib/components/ui/toggle/Toggle.svelte", "src/lib/components/ui/toggle/index.ts" ] + }, + { + component: "tooltip", + name: "Tooltip", + dependencies: ["radix-svelte"], + files: [ + "src/lib/components/ui/tooltip/TooltipContent.svelte", + "src/lib/components/ui/tooltip/index.ts" + ] } - // { - // component: "tooltip", - // name: "Tooltip", - // dependencies: ["@radix-ui/react-tooltip"], - // files: ["components/ui/tooltip.tsx"] - // } ]; diff --git a/apps/www/src/routes/api/components/components.json b/apps/www/src/routes/api/components/components.json index 1b2b8e2df..7fc256d6a 100644 --- a/apps/www/src/routes/api/components/components.json +++ b/apps/www/src/routes/api/components/components.json @@ -9,27 +9,27 @@ { "name": "Accordion.svelte", "dir": "accordion", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AccordionContent.svelte", "dir": "accordion", - "content": "\n\n\n
\n \n
\n\n" + "content": "\n\n\n\t
\n\t\t\n\t
\n\n" }, { "name": "AccordionItem.svelte", "dir": "accordion", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AccordionTrigger.svelte", "dir": "accordion", - "content": "\n\n\n svg]:rotate-180\",\n className\n )}\n {...$$restProps}\n >\n \n \n \n\n" + "content": "\n\n\n\tsvg]:rotate-180\",\n\t\t\tclassName\n\t\t)}\n\t\t{...$$restProps}\n\t>\n\t\t\n\t\t\n\t\n\n" }, { "name": "index.ts", "dir": "accordion", - "content": "import Accordion from \"./Accordion.svelte\";\nimport AccordionContent from \"./AccordionContent.svelte\";\nimport AccordionItem from \"./AccordionItem.svelte\";\nimport AccordionTrigger from \"./AccordionTrigger.svelte\";\n\nexport { Accordion, AccordionContent, AccordionItem, AccordionTrigger };\n" + "content": "export { default as Accordion } from \"./Accordion.svelte\";\nexport { default as AccordionContent } from \"./AccordionContent.svelte\";\nexport { default as AccordionItem } from \"./AccordionItem.svelte\";\nexport { default as AccordionTrigger } from \"./AccordionTrigger.svelte\";\n" } ] }, @@ -40,22 +40,22 @@ { "name": "Alert.svelte", "dir": "alert", - "content": "\n\n
\n \n
\n" + "content": "\n\n
\n\t\n
\n" }, { "name": "AlertDescription.svelte", "dir": "alert", - "content": "\n\n
\n \n
\n" + "content": "\n\n
\n\t\n
\n" }, { "name": "AlertTitle.svelte", "dir": "alert", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "alert", - "content": "import Alert from \"./Alert.svelte\";\nimport AlertDescription from \"./AlertDescription.svelte\";\nimport AlertTitle from \"./AlertTitle.svelte\";\n\nexport { Alert, AlertDescription, AlertTitle };\n" + "content": "export { default as Alert } from \"./Alert.svelte\";\nexport { default as AlertDescription } from \"./AlertDescription.svelte\";\nexport { default as AlertTitle } from \"./AlertTitle.svelte\";\n" } ] }, @@ -69,52 +69,52 @@ { "name": "AlertDialogAction.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AlertDialogCancel.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AlertDialogContent.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n \n \n \n\n" + "content": "\n\n\n\t\n\t\n\t\t\n\t\n\n" }, { "name": "AlertDialogDescription.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AlertDialogFooter.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AlertDialogHeader.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AlertDialogOverlay.svelte", "dir": "alert-dialog", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "AlertDialogPortal.svelte", "dir": "alert-dialog", - "content": "\n\n\n
\n \n
\n
\n" + "content": "\n\n\n\t\n\t\t\n\t\n\n" }, { "name": "AlertDialogTitle.svelte", "dir": "alert-dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "alert-dialog", - "content": "import AlertDialogAction from \"./AlertDialogAction.svelte\";\nimport AlertDialogCancel from \"./AlertDialogCancel.svelte\";\nimport AlertDialogContent from \"./AlertDialogContent.svelte\";\nimport AlertDialogDescription from \"./AlertDialogDescription.svelte\";\nimport AlertDialogFooter from \"./AlertDialogFooter.svelte\";\nimport AlertDialogHeader from \"./AlertDialogHeader.svelte\";\nimport AlertDialogTitle from \"./AlertDialogTitle.svelte\";\nimport { AlertDialog as AlertDialogPrimitive } from \"radix-svelte\";\n\nconst AlertDialog = AlertDialogPrimitive.Root;\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nexport {\n AlertDialog,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel\n};\n" + "content": "import { AlertDialog as AlertDialogPrimitive } from \"radix-svelte\";\n\nexport { default as AlertDialogAction } from \"./AlertDialogAction.svelte\";\nexport { default as AlertDialogCancel } from \"./AlertDialogCancel.svelte\";\nexport { default as AlertDialogContent } from \"./AlertDialogContent.svelte\";\nexport { default as AlertDialogDescription } from \"./AlertDialogDescription.svelte\";\nexport { default as AlertDialogFooter } from \"./AlertDialogFooter.svelte\";\nexport { default as AlertDialogHeader } from \"./AlertDialogHeader.svelte\";\nexport { default as AlertDialogTitle } from \"./AlertDialogTitle.svelte\";\n\nexport const AlertDialog = AlertDialogPrimitive.Root;\nexport const AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n" } ] }, @@ -128,12 +128,12 @@ { "name": "AspectRatio.svelte", "dir": "aspect-ratio", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "aspect-ratio", - "content": "import AspectRatio from \"./AspectRatio.svelte\";\n\nexport { AspectRatio };\n" + "content": "export { default as AspectRatio } from \"./AspectRatio.svelte\";\n" } ] }, @@ -147,22 +147,22 @@ { "name": "Avatar.svelte", "dir": "avatar", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AvatarFallback.svelte", "dir": "avatar", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "AvatarImage.svelte", "dir": "avatar", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", "dir": "avatar", - "content": "import Avatar from \"./Avatar.svelte\";\nimport AvatarFallback from \"./AvatarFallback.svelte\";\nimport AvatarImage from \"./AvatarImage.svelte\";\n\nexport { Avatar, AvatarFallback, AvatarImage };\n" + "content": "export { default as Avatar } from \"./Avatar.svelte\";\nexport { default as AvatarFallback } from \"./AvatarFallback.svelte\";\nexport { default as AvatarImage } from \"./AvatarImage.svelte\";\n" } ] }, @@ -173,12 +173,12 @@ { "name": "Badge.svelte", "dir": "badge", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "badge", - "content": "import Badge from \"./Badge.svelte\";\nimport { cva } from \"class-variance-authority\";\n\nconst badgeVariants = cva(\n \"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary hover:bg-primary/80 border-transparent text-primary-foreground\",\n secondary:\n \"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground\",\n destructive:\n \"bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground\",\n outline: \"text-foreground\"\n }\n },\n defaultVariants: {\n variant: \"default\"\n }\n }\n);\nexport { Badge, badgeVariants };\n" + "content": "import { cva } from \"class-variance-authority\";\n\nexport { default as Badge } from \"./Badge.svelte\";\nexport const badgeVariants = cva(\n\t\"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t\"bg-primary hover:bg-primary/80 border-transparent text-primary-foreground\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground\",\n\t\t\t\toutline: \"text-foreground\"\n\t\t\t}\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\"\n\t\t}\n\t}\n);\n" } ] }, @@ -189,12 +189,12 @@ { "name": "Button.svelte", "dir": "button", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "button", - "content": "import Button from \"./Button.svelte\";\nimport { cva } from \"class-variance-authority\";\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline:\n \"border border-input hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"underline-offset-4 hover:underline text-primary\"\n },\n size: {\n default: \"h-10 py-2 px-4\",\n sm: \"h-9 px-3 rounded-md\",\n lg: \"h-11 px-8 rounded-md\"\n }\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\"\n }\n }\n);\n\nexport { Button, buttonVariants };\n" + "content": "import { cva } from \"class-variance-authority\";\n\nexport { default as Button } from \"./Button.svelte\";\n\nexport const buttonVariants = cva(\n\t\"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t\"bg-primary text-primary-foreground hover:bg-primary/90\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n\t\t\t\toutline:\n\t\t\t\t\t\"border border-input hover:bg-accent hover:text-accent-foreground\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n\t\t\t\tghost: \"hover:bg-accent hover:text-accent-foreground\",\n\t\t\t\tlink: \"underline-offset-4 hover:underline text-primary\"\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-10 py-2 px-4\",\n\t\t\t\tsm: \"h-9 px-3 rounded-md\",\n\t\t\t\tlg: \"h-11 px-8 rounded-md\"\n\t\t\t}\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t\tsize: \"default\"\n\t\t}\n\t}\n);\n" } ] }, @@ -205,37 +205,37 @@ { "name": "Card.svelte", "dir": "card", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "CardContent.svelte", "dir": "card", - "content": "\n\n
\n \n
\n" + "content": "\n\n
\n\t\n
\n" }, { "name": "CardDescription.svelte", "dir": "card", - "content": "\n\n

\n \n

\n" + "content": "\n\n

\n\t\n

\n" }, { "name": "CardFooter.svelte", "dir": "card", - "content": "\n\n
\n \n
\n" + "content": "\n\n
\n\t\n
\n" }, { "name": "CardHeader.svelte", "dir": "card", - "content": "\n\n
\n \n
\n" + "content": "\n\n
\n\t\n
\n" }, { "name": "CardTitle.svelte", "dir": "card", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "card", - "content": "import Card from \"./Card.svelte\";\nimport CardContent from \"./CardContent.svelte\";\nimport CardDescription from \"./CardDescription.svelte\";\nimport CardFooter from \"./CardFooter.svelte\";\nimport CardHeader from \"./CardHeader.svelte\";\nimport CardTitle from \"./CardTitle.svelte\";\n\nexport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle\n};\n" + "content": "export { default as Card } from \"./Card.svelte\";\nexport { default as CardContent } from \"./CardContent.svelte\";\nexport { default as CardDescription } from \"./CardDescription.svelte\";\nexport { default as CardFooter } from \"./CardFooter.svelte\";\nexport { default as CardHeader } from \"./CardHeader.svelte\";\nexport { default as CardTitle } from \"./CardTitle.svelte\";\n" } ] }, @@ -249,12 +249,12 @@ { "name": "Checkbox.svelte", "dir": "checkbox", - "content": "\n\n\n \n \n \n\n" + "content": "\n\n\n\t\n\t\t\n\t\n\n" }, { "name": "index.ts", "dir": "checkbox", - "content": "import Checkbox from \"./Checkbox.svelte\";\n\nexport { Checkbox };\n" + "content": "export { default as Checkbox } from \"./Checkbox.svelte\";\n" } ] }, @@ -268,7 +268,7 @@ { "name": "index.ts", "dir": "collapsible", - "content": "import { Collapsible as CollapsiblePrimitive } from \"radix-svelte\";\n\nconst Collapsible = CollapsiblePrimitive.Root;\n\nconst CollapsibleTrigger = CollapsiblePrimitive.Trigger;\n\nconst CollapsibleContent = CollapsiblePrimitive.Content;\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent };\n" + "content": "import { Collapsible as CollapsiblePrimitive } from \"radix-svelte\";\n\nexport const Collapsible = CollapsiblePrimitive.Root;\n\nexport const CollapsibleTrigger = CollapsiblePrimitive.Trigger;\n\nexport const CollapsibleContent = CollapsiblePrimitive.Content;\n" } ] }, @@ -282,42 +282,42 @@ { "name": "DialogContent.svelte", "dir": "dialog", - "content": "\n\n\n \n \n \n \n \n Close\n \n \n\n" + "content": "\n\n\n\t\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\tClose\n\t\t\n\t\n\n" }, { "name": "DialogDescription.svelte", "dir": "dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "DialogFooter.svelte", "dir": "dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "DialogHeader.svelte", "dir": "dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "DialogOverlay.svelte", "dir": "dialog", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "DialogPortal.svelte", "dir": "dialog", - "content": "\n\n\n \n \n \n\n" + "content": "\n\n\n\t\n\t\t\n\t\n\n" }, { "name": "DialogTitle.svelte", "dir": "dialog", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "dialog", - "content": "import DialogContent from \"./DialogContent.svelte\";\nimport DialogDescription from \"./DialogDescription.svelte\";\nimport DialogFooter from \"./DialogFooter.svelte\";\nimport DialogHeader from \"./DialogHeader.svelte\";\nimport DialogOverlay from \"./DialogOverlay.svelte\";\nimport DialogPortal from \"./DialogPortal.svelte\";\nimport DialogTitle from \"./DialogTitle.svelte\";\nimport { Dialog as DialogPrimitive } from \"radix-svelte\";\n\nconst Dialog = DialogPrimitive.Root;\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nexport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger\n};\n" + "content": "import { Dialog as DialogPrimitive } from \"radix-svelte\";\n\nexport const Dialog = DialogPrimitive.Root;\nexport const DialogTrigger = DialogPrimitive.Trigger;\n\nexport { default as DialogContent } from \"./DialogContent.svelte\";\nexport { default as DialogDescription } from \"./DialogDescription.svelte\";\nexport { default as DialogFooter } from \"./DialogFooter.svelte\";\nexport { default as DialogHeader } from \"./DialogHeader.svelte\";\nexport { default as DialogOverlay } from \"./DialogOverlay.svelte\";\nexport { default as DialogPortal } from \"./DialogPortal.svelte\";\nexport { default as DialogTitle } from \"./DialogTitle.svelte\";\n" } ] }, @@ -331,12 +331,12 @@ { "name": "HoverCardContent.svelte", "dir": "hover-card", - "content": "\n\n\n \n \n \n\n" + "content": "\n\n\n\t\n\t\t\n\t\n\n" }, { "name": "index.ts", "dir": "hover-card", - "content": "import HoverCardContent from \"./HoverCardContent.svelte\";\nimport { HoverCard as HoverCardPrimitive } from \"radix-svelte\";\n\nconst HoverCard = HoverCardPrimitive.Root;\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\nconst HoverCardPortal = HoverCardPrimitive.Portal;\n\nexport { HoverCard, HoverCardContent, HoverCardPortal, HoverCardTrigger };\n" + "content": "import { HoverCard as HoverCardPrimitive } from \"radix-svelte\";\n\nexport { default as HoverCardContent } from \"./HoverCardContent.svelte\";\nexport const HoverCard = HoverCardPrimitive.Root;\nexport const HoverCardTrigger = HoverCardPrimitive.Trigger;\nexport const HoverCardPortal = HoverCardPrimitive.Portal;\n" } ] }, @@ -347,12 +347,12 @@ { "name": "Input.svelte", "dir": "input", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", "dir": "input", - "content": "import Input from \"./Input.svelte\";\n\nexport { Input };\n" + "content": "export { default as Input } from \"./Input.svelte\";\n" } ] }, @@ -366,12 +366,12 @@ { "name": "Label.svelte", "dir": "label", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "label", - "content": "import Label from \"./Label.svelte\";\n\nexport { Label };\n" + "content": "export { default as Label } from \"./Label.svelte\";\n" } ] }, @@ -385,12 +385,12 @@ { "name": "Progress.svelte", "dir": "progress", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "progress", - "content": "import Progress from \"./Progress.svelte\";\n\nexport { Progress };\n" + "content": "export { default as Progress } from \"./Progress.svelte\";\n" } ] }, @@ -404,17 +404,17 @@ { "name": "RadioGroup.svelte", "dir": "radio-group", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "RadioGroupItem.svelte", "dir": "radio-group", - "content": "\n\n\n \n \n \n\n" + "content": "\n\n\n\t\n\t\t\n\t\n\n" }, { "name": "index.ts", "dir": "radio-group", - "content": "import RadioGroup from \"./RadioGroup.svelte\";\nimport RadioGroupItem from \"./RadioGroupItem.svelte\";\n\nexport { RadioGroup, RadioGroupItem };\n" + "content": "export { default as RadioGroup } from \"./RadioGroup.svelte\";\nexport { default as RadioGroupItem } from \"./RadioGroupItem.svelte\";\n" } ] }, @@ -428,12 +428,61 @@ { "name": "Separator.svelte", "dir": "separator", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", "dir": "separator", - "content": "import Separator from \"./Separator.svelte\";\n\nexport { Separator };\n" + "content": "export { default as Separator } from \"./Separator.svelte\";\n" + } + ] + }, + { + "component": "sheet", + "name": "Sheet", + "dependencies": [ + "radix-svelte" + ], + "files": [ + { + "name": "SheetContent.svelte", + "dir": "sheet", + "content": "\n\n\n\t\n\t\n\t\t\n\t\t\n\t\t\t\n\t\t\tClose\n\t\t\n\t\n\n" + }, + { + "name": "SheetDescription.svelte", + "dir": "sheet", + "content": "\n\n\n\t\n\n" + }, + { + "name": "SheetFooter.svelte", + "dir": "sheet", + "content": "\n\n\n\t\n\n" + }, + { + "name": "SheetHeader.svelte", + "dir": "sheet", + "content": "\n\n\n\t\n\n" + }, + { + "name": "SheetOverlay.svelte", + "dir": "sheet", + "content": "\n\n\n" + }, + { + "name": "SheetPortal.svelte", + "dir": "sheet", + "content": "\n\n\n\t
\n\t\t\n\t
\n
\n" + }, + { + "name": "SheetTitle.svelte", + "dir": "sheet", + "content": "\n\n\n\t\n\n" + }, + { + "name": "index.ts", + "dir": "sheet", + "content": "import { cva } from \"class-variance-authority\";\nimport { Dialog as SheetPrimitive } from \"radix-svelte\";\n\nexport { default as SheetContent } from \"./SheetContent.svelte\";\nexport { default as SheetDescription } from \"./SheetDescription.svelte\";\nexport { default as SheetFooter } from \"./SheetFooter.svelte\";\nexport { default as SheetHeader } from \"./SheetHeader.svelte\";\nexport { default as SheetOverlay } from \"./SheetOverlay.svelte\";\nexport { default as SheetPortal } from \"./SheetPortal.svelte\";\nexport { default as SheetTitle } from \"./SheetTitle.svelte\";\n\nexport const Sheet = SheetPrimitive.Root;\nexport const SheetTrigger = SheetPrimitive.Trigger;\nexport const SheetClose = SheetPrimitive.Close;\n\nexport const sheetVariants = cva(\n\t\"fixed z-50 scale-100 gap-4 bg-background p-6 opacity-100 shadow-lg border\",\n\t{\n\t\tvariants: {\n\t\t\tposition: {\n\t\t\t\ttop: \"animate-in slide-in-from-top w-full duration-300\",\n\t\t\t\tbottom: \"animate-in slide-in-from-bottom w-full duration-300\",\n\t\t\t\tleft: \"animate-in slide-in-from-left h-full duration-300\",\n\t\t\t\tright: \"animate-in slide-in-from-right h-full duration-300\"\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tcontent: \"\",\n\t\t\t\tdefault: \"\",\n\t\t\t\tsm: \"\",\n\t\t\t\tlg: \"\",\n\t\t\t\txl: \"\",\n\t\t\t\tfull: \"\"\n\t\t\t}\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tposition: [\"top\", \"bottom\"],\n\t\t\t\tsize: \"content\",\n\t\t\t\tclass: \"max-h-screen\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"top\", \"bottom\"],\n\t\t\t\tsize: \"default\",\n\t\t\t\tclass: \"h-1/3\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"top\", \"bottom\"],\n\t\t\t\tsize: \"sm\",\n\t\t\t\tclass: \"h-1/4\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"top\", \"bottom\"],\n\t\t\t\tsize: \"lg\",\n\t\t\t\tclass: \"h-1/2\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"top\", \"bottom\"],\n\t\t\t\tsize: \"xl\",\n\t\t\t\tclass: \"h-5/6\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"top\", \"bottom\"],\n\t\t\t\tsize: \"full\",\n\t\t\t\tclass: \"h-screen\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"right\", \"left\"],\n\t\t\t\tsize: \"content\",\n\t\t\t\tclass: \"max-w-screen\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"right\", \"left\"],\n\t\t\t\tsize: \"default\",\n\t\t\t\tclass: \"w-1/3\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"right\", \"left\"],\n\t\t\t\tsize: \"sm\",\n\t\t\t\tclass: \"w-1/4\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"right\", \"left\"],\n\t\t\t\tsize: \"lg\",\n\t\t\t\tclass: \"w-1/2\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"right\", \"left\"],\n\t\t\t\tsize: \"xl\",\n\t\t\t\tclass: \"w-5/6\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tposition: [\"right\", \"left\"],\n\t\t\t\tsize: \"full\",\n\t\t\t\tclass: \"w-screen\"\n\t\t\t}\n\t\t],\n\t\tdefaultVariants: {\n\t\t\tposition: \"right\",\n\t\t\tsize: \"default\"\n\t\t}\n\t}\n);\n" } ] }, @@ -444,12 +493,12 @@ { "name": "Skeleton.svelte", "dir": "skeleton", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", "dir": "skeleton", - "content": "import Skeleton from \"./Skeleton.svelte\";\n\nexport { Skeleton };\n" + "content": "export { default as Skeleton } from \"./Skeleton.svelte\";\n" } ] }, @@ -463,12 +512,12 @@ { "name": "Slider.svelte", "dir": "slider", - "content": "\n\n\n \n \n \n \n\n" + "content": "\n\n\n\t\n\t\t\n\t\n\t\n\n" }, { "name": "index.ts", "dir": "slider", - "content": "import Slider from \"./Slider.svelte\";\n\nexport { Slider };\n" + "content": "export { default as Slider } from \"./Slider.svelte\";\n" } ] }, @@ -482,12 +531,12 @@ { "name": "Switch.svelte", "dir": "switch", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "switch", - "content": "import Switch from \"./Switch.svelte\";\n\nexport { Switch };\n" + "content": "export { default as Switch } from \"./Switch.svelte\";\n" } ] }, @@ -498,47 +547,47 @@ { "name": "Table.svelte", "dir": "table", - "content": "\n\n
\n \n \n \n
\n" + "content": "\n\n
\n\t\n\t\t\n\t\n
\n" }, { "name": "TableBody.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TableCaption.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TableCell.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TableFooter.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TableHead.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TableHeader.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TableRow.svelte", "dir": "table", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "table", - "content": "import Table from \"./Table.svelte\";\nimport TableBody from \"./TableBody.svelte\";\nimport TableCaption from \"./TableCaption.svelte\";\nimport TableCell from \"./TableCell.svelte\";\nimport TableFooter from \"./TableFooter.svelte\";\nimport TableHead from \"./TableHead.svelte\";\nimport TableHeader from \"./TableHeader.svelte\";\nimport TableRow from \"./TableRow.svelte\";\n\nexport {\n Table,\n TableBody,\n TableCaption,\n TableCell,\n TableFooter,\n TableHead,\n TableHeader,\n TableRow\n};\n" + "content": "export { default as Table } from \"./Table.svelte\";\nexport { default as TableBody } from \"./TableBody.svelte\";\nexport { default as TableCaption } from \"./TableCaption.svelte\";\nexport { default as TableCell } from \"./TableCell.svelte\";\nexport { default as TableFooter } from \"./TableFooter.svelte\";\nexport { default as TableHead } from \"./TableHead.svelte\";\nexport { default as TableHeader } from \"./TableHeader.svelte\";\nexport { default as TableRow } from \"./TableRow.svelte\";\n" } ] }, @@ -552,22 +601,22 @@ { "name": "TabsContent.svelte", "dir": "tabs", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TabsList.svelte", "dir": "tabs", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "TabsTrigger.svelte", "dir": "tabs", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "tabs", - "content": "import TabsContent from \"./TabsContent.svelte\";\nimport TabsList from \"./TabsList.svelte\";\nimport TabsTrigger from \"./TabsTrigger.svelte\";\nimport { Tabs as TabsPrimitive } from \"radix-svelte\";\n\nconst Tabs = TabsPrimitive.Root;\n\nexport { Tabs, TabsContent, TabsList, TabsTrigger };\n" + "content": "import { Tabs as TabsPrimitive } from \"radix-svelte\";\n\nexport { default as TabsContent } from \"./TabsContent.svelte\";\nexport { default as TabsList } from \"./TabsList.svelte\";\nexport { default as TabsTrigger } from \"./TabsTrigger.svelte\";\n\nexport const Tabs = TabsPrimitive.Root;\n" } ] }, @@ -578,12 +627,12 @@ { "name": "Textarea.svelte", "dir": "textarea", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", "dir": "textarea", - "content": "import Textarea from \"./Textarea.svelte\";\n\nexport { Textarea };\n" + "content": "export { default as Textarea } from \"./Textarea.svelte\";\n" } ] }, @@ -597,12 +646,31 @@ { "name": "Toggle.svelte", "dir": "toggle", - "content": "\n\n\n \n\n" + "content": "\n\n\n\t\n\n" }, { "name": "index.ts", "dir": "toggle", - "content": "import Toggle from \"./Toggle.svelte\";\n\nexport { Toggle };\n" + "content": "export { default as Toggle } from \"./Toggle.svelte\";\n" + } + ] + }, + { + "component": "tooltip", + "name": "Tooltip", + "dependencies": [ + "radix-svelte" + ], + "files": [ + { + "name": "TooltipContent.svelte", + "dir": "tooltip", + "content": "\n\n\n\t\n\t\t\n\t\n\n" + }, + { + "name": "index.ts", + "dir": "tooltip", + "content": "import { Tooltip as TooltipPrimitive } from \"radix-svelte\";\n\nexport { default as TooltipContent } from \"./TooltipContent.svelte\";\nexport const TooltipProvider = TooltipPrimitive.Provider;\nexport const Tooltip = TooltipPrimitive.Root;\nexport const TooltipTrigger = TooltipPrimitive.Trigger;\n" } ] }