{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "baseui-dialog",
"description": "A Base UI dialog component",
"dependencies": ["@base-ui/react"],
"registryDependencies": ["@craftdotui/utils"],
"files": [
{
"path": "packages/baseui/components/dialog/index.tsx",
"content": "\"use client\";\n\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\";\n\nimport { cn } from \"@/lib/utils\";\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Root */\n/* -------------------------------------------------------------------------- */\n\nconst Dialog = DialogPrimitive.Root;\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Trigger */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogTrigger({ className, ...props }: DialogPrimitive.Trigger.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Portal */\n/* -------------------------------------------------------------------------- */\n\nconst DialogPortal = DialogPrimitive.Portal;\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Backdrop */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogBackdrop({\n\tclassName,\n\t...props\n}: DialogPrimitive.Backdrop.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Viewport */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogViewport({\n\tclassName,\n\t...props\n}: DialogPrimitive.Viewport.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Popup */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogPopup({ className, ...props }: DialogPrimitive.Popup.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Title */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Description */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogDescription({\n\tclassName,\n\t...props\n}: DialogPrimitive.Description.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Close */\n/* -------------------------------------------------------------------------- */\n\nfunction DialogClose({ className, ...props }: DialogPrimitive.Close.Props) {\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Dialog Footer */\n/* -------------------------------------------------------------------------- */\nfunction DialogFooter(props: React.HTMLAttributes) {\n\tconst { className, ...rest } = props;\n\n\treturn (\n\t\t\n\t);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Export */\n/* -------------------------------------------------------------------------- */\n\nexport {\n\tDialog,\n\tDialogTrigger,\n\tDialogPortal,\n\tDialogBackdrop,\n\tDialogViewport,\n\tDialogPopup,\n\tDialogTitle,\n\tDialogDescription,\n\tDialogClose,\n\tDialogFooter,\n};\n",
"type": "registry:component",
"target": "components/baseui/components/dialog.tsx"
}
],
"type": "registry:component"
}