{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "directory-template-info",
  "type": "registry:block",
  "title": "Directory, template info",
  "description": "What a template contains: the pages it includes (name and path), the blocks it uses as chips, and a paragraph on how to customise it.",
  "categories": [
    "directory"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json"
  ],
  "files": [
    {
      "path": "src/blocks/directory-template-info/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/directory-template-info/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t } from '../_shared/schema';\n\nconst schema = z.object({\n  pagesTitle: t(40),\n  pages: z.array(z.object({ name: t(40), path: t(80) })).min(1).max(10),\n  blocksTitle: t(40),\n  blocks: z.array(t(60)).max(16),\n  customizeTitle: t(40),\n  customize: t(400),\n});\n\nexport const spec = defineSpec({\n  type: 'directory-template-info',\n  aliases: ['directory/template-info'],\n  name: 'Directory, template info',\n  category: 'directory',\n  role: 'body',\n  description: 'What a template contains: the pages it includes (name and path), the blocks it uses as chips, and a paragraph on how to customise it.',\n  schema,\n  defaults: {\n    pagesTitle: 'Name the page list',\n    pages: [\n      { name: 'First page', path: '/' },\n      { name: 'Second page', path: '/services' },\n      { name: 'Third page', path: '/work/example' },\n      { name: 'Fourth page', path: '/pricing' },\n      { name: 'Fifth page', path: '/contact' },\n    ],\n    blocksTitle: 'Name the blocks',\n    blocks: ['header/simple', 'hero/split', 'logo-cloud/row', 'features/grid', 'case-study/before-after', 'pricing/tiers', 'faq/accordion', 'contact/form', 'footer/link-columns'],\n    customizeTitle: 'Name the how-to',\n    customize: 'Say in two or three sentences how the reader makes it their own, and where the content and styles live.',\n  },\n});\n"
    },
    {
      "path": "src/blocks/directory-template-info/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/directory-template-info/index.tsx",
      "content": "import { Text, withHeadingLevel } from '../../editing';\nimport { Container } from '../_shared/kit';\nimport { spec } from './spec';\nimport type { BlockProps } from '../types';\nimport type { z } from 'zod';\n\nexport { spec };\ntype Props = z.infer<typeof spec.schema>;\n\nconst heading = 'text-kh-caption font-medium uppercase tracking-wider text-kh-muted';\n\nfunction DirectoryTemplateInfo({ props }: BlockProps<Props>) {\n  return (\n    <section aria-label=\"Template details\" className=\"py-10 @3xl:py-14\">\n      <Container>\n        <div className=\"grid gap-10 rounded-kh-xl border border-kh-line bg-kh-surface p-6 @3xl:grid-cols-[1fr_1.2fr_1fr] @3xl:gap-12 @3xl:p-10\">\n          <div>\n            <Text path={['pagesTitle']} value={props.pagesTitle} as=\"h2\" className={heading} />\n            <ul className=\"mt-4 divide-y divide-kh-line\">\n              {props.pages.map((p, i) => (\n                <li key={i} className=\"flex items-baseline justify-between gap-4 py-2.5 first:pt-0\">\n                  <Text path={['pages', i, 'name']} value={p.name} as=\"span\" className=\"text-kh-body font-medium\" />\n                  <Text path={['pages', i, 'path']} value={p.path} as=\"code\" className=\"min-w-0 truncate font-kh-mono text-kh-small text-kh-muted\" />\n                </li>\n              ))}\n            </ul>\n          </div>\n          <div>\n            <Text path={['blocksTitle']} value={props.blocksTitle} as=\"h2\" className={heading} />\n            <ul className=\"mt-4 flex flex-wrap gap-2\">\n              {props.blocks.map((b, i) => (\n                <li key={i}>\n                  <Text path={['blocks', i]} value={b} as=\"code\" className=\"inline-flex items-center rounded-kh-sm border border-kh-line-strong bg-kh-surface-2 px-2 py-1 font-kh-mono text-kh-caption text-kh-ink-2\" />\n                </li>\n              ))}\n            </ul>\n          </div>\n          <div>\n            <Text path={['customizeTitle']} value={props.customizeTitle} as=\"h2\" className={heading} />\n            <Text path={['customize']} value={props.customize} as=\"p\" multiline className=\"mt-4 text-kh-body text-kh-muted\" />\n          </div>\n        </div>\n      </Container>\n    </section>\n  );\n}\n\nexport default withHeadingLevel(DirectoryTemplateInfo);\n"
    }
  ]
}
