{ "name": "dialog", "type": "registry:ui", "title": "Dialog", "description": "Modal dialog component", "registryDependencies": [], "dependencies": [ "@radix-ui/react-dialog", "lucide-react" ], "files": [ { "path": "components/ui/dialog.tsx", "type": "registry:ui", "content": "import * as React from \"react\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { XIcon } from \"lucide-react\";\nimport { cn } from \"@barddev/ui-shared\";\n\n/**\n * Dialog root component\n * Wraps Radix UI Dialog primitive\n */\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return ;\n}\n\n/**\n * Dialog trigger button\n */\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return ;\n}\n\n/**\n * Dialog portal - renders content outside DOM hierarchy\n */\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return ;\n}\n\n/**\n * Dialog close button\n */\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return ;\n}\n\n/**\n * Dialog overlay - semi-transparent background\n */\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n );\n}\n\n/**\n * Dialog content container\n * Includes overlay and optional close button\n */\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean;\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n Close\n \n )}\n \n \n );\n}\n\n/**\n * Dialog header section\n */\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n );\n}\n\n/**\n * Dialog footer section\n */\nfunction DialogFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n );\n}\n\n/**\n * Dialog title\n */\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n );\n}\n\n/**\n * Dialog description text\n */\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n );\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n};\n" } ] }