{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "kit-invalid",
  "type": "registry:lib",
  "title": "Kit invalid",
  "description": "Helpers shared by the invalid blocks.",
  "dependencies": [
    "lucide-react@^1.49.0"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json"
  ],
  "files": [
    {
      "path": "src/blocks/_shared/invalid-kit.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/_shared/invalid-kit.tsx",
      "content": "// The invalid state of a strict block (BlockSpec.strict): said in words, never a silent substitute of default text.\nimport type { ReactNode } from 'react';\nimport { CircleAlert } from 'lucide-react';\nimport { Container, Section } from './kit';\n\n/** A strict block's component checks `spec.schema.safeParse(props)` and renders this when it fails. The words are fixed English: the props are what failed. */\nexport function InvalidNotice({ title, children, wrap = true }: { title: string; children?: ReactNode; wrap?: boolean }) {\n  const body = (\n    <div role=\"alert\" className=\"flex min-w-0 items-start gap-3 rounded-kh-lg border border-kh-danger bg-kh-canvas p-4\">\n      <CircleAlert aria-hidden className=\"mt-0.5 size-5 shrink-0 text-kh-danger\" />\n      <div className=\"min-w-0 flex-1\">\n        <p className=\"text-kh-body font-semibold\">{title}</p>\n        <p className=\"mt-1 text-kh-small text-kh-muted\">Its content is invalid, so nothing is shown in its place and nothing can be confirmed.</p>\n        {children}\n      </div>\n    </div>\n  );\n  if (!wrap) return body;\n  return (\n    <Section>\n      <Container width=\"narrow\">{body}</Container>\n    </Section>\n  );\n}\n"
    }
  ]
}
