{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "testimonials-wall",
  "type": "registry:block",
  "title": "Testimonials, wall",
  "description": "An editorial wall of short quotes in balanced columns: plain quotes under a hairline rule, one or two featured on a tinted card. No card boxes, unlike the grid. Use when you have many small voices rather than one big story.",
  "categories": [
    "testimonials"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/testimonials-wall/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-wall/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  items: z.array(z.object({\n    /** 'featured' sets the quote on a tinted card; use it once or twice. */\n    emphasis: z.enum(['normal', 'featured']),\n    quote: t(320),\n    name: t(60),\n    role: t(80),\n    /** A photo of the person, drawn as a 40px round avatar instead of the initials. Not drawn without a src; alt defaults to empty because the name is printed beside it. */\n    photo: z.object({ src: t(300), alt: t(60).optional() }).optional(),\n  })).min(4).max(9),\n  /** A link under the wall (\"All recommendations on LinkedIn\"). Not drawn without a label. */\n  link: z.object({ label: t(40).optional(), href: t(300).optional() }).optional(),\n});\n\nconst q = (emphasis: 'normal' | 'featured', quote: string, name: string, role: string) => ({ emphasis, quote, name, role });\n\nexport const spec = defineSpec({\n  type: 'testimonials-wall',\n  aliases: ['testimonials/wall'],\n  name: 'Testimonials, wall',\n  category: 'testimonials',\n  role: 'body',\n  description: 'An editorial wall of short quotes in balanced columns: plain quotes under a hairline rule, one or two featured on a tinted card. No card boxes, unlike the grid. Use when you have many small voices rather than one big story.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the section',\n    title: 'Say what the quotes show in a line',\n    items: [\n      q('featured', 'Quote a customer, in their words, on the result they got and what it changed for them afterwards.', 'Name a person', 'Their role and their company'),\n      q('normal', 'Quote a customer, in their words, on the result they got.', 'Name a person', 'Their role and their company'),\n      q('normal', 'Quote a customer, in their words, on the result they got, what changed for them and why they would say it again.', 'Name a person', 'Their role and their company'),\n      q('normal', 'Quote a customer in a few words.', 'Name a person', 'Their role and their company'),\n      q('normal', 'Quote a customer, in their words, on the result they got.', 'Name a person', 'Their role and their company'),\n      q('featured', 'Quote a customer, in their words, on the result they got and what it changed for them afterwards.', 'Name a person', 'Their role and their company'),\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/testimonials-wall/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/testimonials-wall/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { ActionLink, Avatar, Container, Section, SectionHeader } from '../_shared/kit';\nimport { useId } from 'react';\nimport { cn } from '../../lib/utils';\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\nfunction TestimonialsWall({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <SectionHeader id={id} eyebrow={props.eyebrow} title={props.title} />\n        <ul className=\"mt-14 columns-1 gap-5 @2xl:columns-2 @5xl:columns-3\">\n          {props.items.map((item, i) => {\n            const featured = item.emphasis === 'featured';\n            return (\n              <li key={i} className=\"mb-8 break-inside-avoid\">\n                <figure className={cn(featured ? 'rounded-kh-xl bg-kh-accent-soft p-7' : 'border-t border-kh-line-strong pt-6')}>\n                  <blockquote>\n                    <Text path={['items', i, 'quote']} value={item.quote} as=\"p\" multiline className={cn('text-pretty leading-relaxed text-kh-ink', featured ? 'text-kh-lead font-medium' : 'text-kh-body')} />\n                  </blockquote>\n                  <figcaption className=\"mt-5 flex items-center gap-3\">\n                    {item.photo?.src?.trim()\n                      ? <Media path={['items', i, 'photo']} value={{ src: item.photo.src, alt: item.photo.alt ?? '' }} ratio=\"1 / 1\" className=\"size-10 shrink-0 overflow-hidden rounded-kh-pill\" />\n                      : <Avatar name={item.name} className={cn('size-10', featured && 'bg-kh-canvas')} />}\n                    <span className=\"min-w-0\">\n                      <Text path={['items', i, 'name']} value={item.name} as=\"span\" className=\"block text-kh-small font-medium\" />\n                      <Text path={['items', i, 'role']} value={item.role} as=\"span\" className=\"block text-kh-caption text-kh-muted\" />\n                    </span>\n                  </figcaption>\n                </figure>\n              </li>\n            );\n          })}\n        </ul>\n        {props.link?.href?.trim() && <ActionLink path={['link']} value={{ label: props.link.label ?? '', href: props.link.href }} variant=\"secondary\" size=\"md\" className=\"mt-4\" />}\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(TestimonialsWall);\n"
    }
  ]
}
