{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "team-featured",
  "type": "registry:block",
  "title": "Team, featured",
  "description": "One person given the stage (large photo, longer bio, a link), then a row of round-portrait cards for everyone else. For a founder-led company.",
  "categories": [
    "team"
  ],
  "dependencies": [
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/block-kit.json",
    "https://ui.klarhimmel.com/r/button.json",
    "https://ui.klarhimmel.com/r/editing.json",
    "https://ui.klarhimmel.com/r/kit-c-proof.json",
    "https://ui.klarhimmel.com/r/text-link.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/team-featured/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/team-featured/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, media, t } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60),\n  title: t(120),\n  description: t(300),\n  lead: z.object({ name: t(60), role: t(60), bio: t(400), photo: media, link }),\n  membersTitle: t(60),\n  members: z.array(z.object({ name: t(60), role: t(60), photo: media })).min(2).max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'team-featured',\n  aliases: ['team/featured'],\n  name: 'Team, featured',\n  category: 'team',\n  role: 'body',\n  description: 'One person given the stage (large photo, longer bio, a link), then a row of round-portrait cards for everyone else. For a founder-led company.',\n  schema,\n  defaults: {\n    eyebrow: 'Name a topic',\n    title: 'Say what makes the team what it is',\n    description: '',\n    lead: {\n      name: 'Name a person',\n      role: 'Their role',\n      bio: 'Say who they are and what shaped how they work, in two or three sentences. Say what they still do by hand, and what they care about most in their work.',\n      photo: { src: '', alt: 'A portrait of the person' },\n      link: { label: 'Second action', href: '/letter' },\n    },\n    membersTitle: 'Say who else is on the team',\n    members: [\n      { name: 'Name a person', role: 'Their role', photo: { src: '', alt: 'A portrait of the person' } },\n      { name: 'Name a person', role: 'Their role', photo: { src: '', alt: 'A portrait of the person' } },\n      { name: 'Name a person', role: 'Their role', photo: { src: '', alt: 'A portrait of the person' } },\n      { name: 'Name a person', role: 'Their role', photo: { src: '', alt: 'A portrait of the person' } },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/team-featured/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/team-featured/index.tsx",
      "content": "import { Media, Text, withHeadingLevel } from '../../editing';\nimport { safeHref } from '../../ui/button';\nimport { linkClass } from '../../ui/text-link';\nimport { Container, Opt, Section, useEditing } from '../_shared/kit';\nimport { Heading, useHeadingId } from '../_shared/c-proof-kit';\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\nconst COLS = { 2: '@md:grid-cols-2', 3: '@md:grid-cols-3', 4: '@md:grid-cols-2 @3xl:grid-cols-4', 5: '@md:grid-cols-3 @4xl:grid-cols-5', 6: '@md:grid-cols-3 @4xl:grid-cols-6' } as const;\n\nfunction TeamFeatured({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  const editing = useEditing();\n  const n = Math.min(6, Math.max(2, props.members.length)) as 2 | 3 | 4 | 5 | 6;\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Heading id={id} eyebrow={props.eyebrow} title={props.title} description={props.description} />\n        <div className=\"mt-14 grid gap-8 rounded-kh-xl border border-kh-line bg-kh-surface p-6 @3xl:grid-cols-[2fr_3fr] @3xl:items-center @3xl:gap-12 @3xl:p-10\">\n          <Media path={['lead', 'photo']} value={props.lead.photo} ratio=\"4 / 5\" className=\"rounded-kh-lg border border-kh-line\" />\n          <div>\n            <Text path={['lead', 'name']} value={props.lead.name} as=\"h3\" className=\"text-kh-title font-semibold\" />\n            <Text path={['lead', 'role']} value={props.lead.role} as=\"p\" className=\"mt-1 text-kh-body text-kh-accent-ink\" />\n            <Text path={['lead', 'bio']} value={props.lead.bio} as=\"p\" multiline className=\"mt-6 max-w-kh-lead text-kh-lead text-kh-muted\" />\n            {(props.lead.link.label || editing) && (\n              <a href={safeHref(props.lead.link.href)} className={cn(linkClass(), 'mt-6 inline-flex min-h-11 items-center text-kh-small font-medium')}>\n                <Text path={['lead', 'link', 'label']} value={props.lead.link.label} as=\"span\" placeholder=\"Label\" />\n              </a>\n            )}\n          </div>\n        </div>\n        <Opt path={['membersTitle']} value={props.membersTitle} as=\"h3\" className=\"mt-14 text-kh-small font-medium text-kh-muted\" placeholder=\"Heading\" />\n        <ul className={cn('mt-5 grid grid-cols-1 gap-x-6 gap-y-8', COLS[n])}>\n          {props.members.map((m, i) => (\n            <li key={i} className=\"flex items-center gap-4 @md:flex-col @md:items-start\">\n              <Media path={['members', i, 'photo']} value={m.photo} ratio=\"1 / 1\" className=\"size-16 shrink-0 rounded-kh-pill border border-kh-line @md:size-20\" />\n              <div>\n                <Text path={['members', i, 'name']} value={m.name} as=\"p\" className=\"text-kh-body font-semibold\" />\n                <Text path={['members', i, 'role']} value={m.role} as=\"p\" className=\"text-kh-small text-kh-muted\" />\n              </div>\n            </li>\n          ))}\n        </ul>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(TeamFeatured);\n"
    }
  ]
}
