{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dialog",
  "title": "Pixelact Dialog",
  "description": "A simple dialog component.",
  "registryDependencies": [
    "dialog"
  ],
  "files": [
    {
      "path": "components/ui/pixelact-ui/dialog.tsx",
      "content": "import * as React from \"react\";\nimport { cn } from \"@/lib/utils\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport {\n  Dialog as ShadcnDialog,\n  DialogContent as ShadcnDialogContent,\n  DialogTrigger,\n  DialogPortal,\n  DialogOverlay,\n  DialogTitle as ShadcnDialogTitle,\n  DialogDescription,\n  DialogHeader,\n  DialogFooter,\n} from \"@/components/ui/dialog\";\nimport \"@/components/ui/pixelact-ui/styles/styles.css\";\nexport interface PixelDialogContentProps\n  extends React.ComponentProps<typeof ShadcnDialogContent> {\n  trigger?: React.ReactNode;\n}\n\nconst Dialog = ({ ...props }: React.ComponentProps<typeof ShadcnDialog>) => {\n  return <ShadcnDialog {...props} />;\n};\n\nconst DialogTitle = React.forwardRef<\n  React.ComponentRef<typeof ShadcnDialogTitle>,\n  React.ComponentPropsWithoutRef<typeof ShadcnDialogTitle>\n>(({ className, ...props }, ref) => {\n  return (\n    <ShadcnDialogTitle\n      className={cn(\"pixel-font text-foreground\", className)}\n      ref={ref}\n      {...props}\n    />\n  );\n});\n\nconst DialogContent = React.forwardRef<\n  React.ComponentRef<typeof DialogPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n  <DialogPortal>\n    <DialogOverlay />\n    <DialogPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"fixed pixel-font rounded-none shadow-(--pixel-box-shadow) box-shadow-margin bg-background left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6  duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n      <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\n        <svg\n          xmlns=\"http://www.w3.org/2000/svg\"\n          width=\"32\"\n          height=\"32\"\n          viewBox=\"0 0 24 24\"\n          className=\"cursor-pointer\"\n        >\n          <path\n            className=\"fill-foreground\"\n            d=\"M5 5h2v2H5zm4 4H7V7h2zm2 2H9V9h2zm2 0h-2v2H9v2H7v2H5v2h2v-2h2v-2h2v-2h2v2h2v2h2v2h2v-2h-2v-2h-2v-2h-2zm2-2v2h-2V9zm2-2v2h-2V7zm0 0V5h2v2z\"\n          />\n        </svg>\n        <span className=\"sr-only\">Close</span>\n      </DialogPrimitive.Close>\n    </DialogPrimitive.Content>\n  </DialogPortal>\n));\n\nexport {\n  Dialog,\n  DialogContent,\n  DialogTrigger,\n  DialogPortal,\n  DialogOverlay,\n  DialogTitle,\n  DialogDescription,\n  DialogHeader,\n  DialogFooter,\n};\n",
      "type": "registry:component",
      "target": "components/ui/pixelact-ui/dialog.tsx"
    },
    {
      "path": "components/ui/pixelact-ui/styles/styles.css",
      "content": "@import url(\"https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap\");\n\n:root {\n  --box-shadow-width: 4px;\n  --pixel-box-shadow: calc(-1 * (var(--box-shadow-width))) 0 0 0 black,\n    var(--box-shadow-width) 0 0 0 black, 0 var(--box-shadow-width) 0 0 black,\n    0 calc(-1 * (var(--box-shadow-width))) 0 0 black;\n  --pixel-box-shadow-destructive: calc(-1 * (var(--box-shadow-width))) 0 0 0\n      var(--destructive),\n    var(--box-shadow-width) 0 0 0 var(--destructive),\n    0 var(--box-shadow-width) 0 0 var(--destructive),\n    0 calc(-1 * (var(--box-shadow-width))) 0 0 var(--destructive);\n  --default-inner-border-color: rgb(200, 200, 200);\n}\n\n.dark {\n  --pixel-box-shadow: calc(-1 * (var(--box-shadow-width))) 0 0 0 var(--ring),\n    var(--box-shadow-width) 0 0 0 var(--ring),\n    0 var(--box-shadow-width) 0 0 var(--ring),\n    0 calc(-1 * (var(--box-shadow-width))) 0 0 var(--ring);\n}\n\n.pixel-font {\n  font-family: \"Press Start 2P\", system-ui, -apple-system, sans-serif;\n  line-height: 1.5;\n  letter-spacing: 0.5px;\n}\n\n.box-shadow-margin {\n  margin: var(--box-shadow-width);\n}\n",
      "type": "registry:style",
      "target": "components/ui/pixelact-ui/styles/styles.css"
    }
  ],
  "type": "registry:component"
}