{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Dialog primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.dialog — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Dialog renders a native dialog element. */\nexport type DialogBaseProps = {\n  open?: boolean;\n};\n\nexport type DialogClassesInput = {\n  className?: string;\n};\n\n/** Compose Dialog classes without rendering — the cross-runtime `asChild` substitute. */\nexport function dialogClasses(input: DialogClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/dialog/dialog.shared.ts",
      "target": "kit/ui/dialog/dialog.shared.ts"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n/**\n * Dialog is the native <dialog>. Opening/closing (showModal) is the consumer's.\n */\n\nimport { forwardRef, type ReactNode, type DialogHTMLAttributes } from \"react\";\nimport { dialogClasses } from \"./dialog.shared\";\nimport { safeRest } from \"../../utils/expr\";\n\n/**\n * Dialog renders a native dialog element.\n */\nexport type DialogProps = Omit<DialogHTMLAttributes<HTMLDialogElement>, \"className\" | \"children\" | \"open\"> & {\n  open?: boolean;\n  className?: string;\n  children?: ReactNode;\n};\n\nexport const Dialog = forwardRef<HTMLDialogElement, DialogProps>(function Dialog(\n  { open, className, children, ...rawRest },\n  ref\n) {\n  const rest = safeRest(rawRest, { blank: [\"id\", \"aria-labelledby\", \"aria-describedby\", \"aria-label\"] });\n  const cls = dialogClasses({ className });\n  return (\n    <dialog ref={ref} className={cls || undefined} open={open} {...rest}>\n      {children}\n    </dialog>\n  );\n});\nDialog.displayName = \"Dialog\";\n",
      "path": "kit/ui/dialog/dialog.tsx",
      "target": "kit/ui/dialog/dialog.tsx"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "react",
      "primitive"
    ]
  },
  "name": "kit-dialog",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "react",
  "title": "Kit Dialog",
  "type": "registry:ui"
}
