{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "integrations-featured",
  "type": "registry:block",
  "title": "Integrations, featured",
  "description": "One integration told in full (logo, tagline, what it does, a list of highlights and an action) beside a short list of the others, each a single link. For the integration most customers ask about.",
  "categories": [
    "integrations"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "zod@^4.6.5"
  ],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/badge.json",
    "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/integrations-featured/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/integrations-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  featured: z.object({\n    badge: t(24),\n    name: t(40),\n    tagline: t(80),\n    body: t(240),\n    logo: media,\n    highlights: z.array(t(80)).min(2).max(4),\n    cta: link,\n  }),\n  /** The heading of the short list beside the featured one. */\n  moreLabel: t(40),\n  more: z.array(z.object({ name: t(40), description: t(100), logo: media, href: t(300) })).min(2).max(6),\n});\n\nexport const spec = defineSpec({\n  type: 'integrations-featured',\n  aliases: ['integrations/featured'],\n  name: 'Integrations, featured',\n  category: 'integrations',\n  role: 'body',\n  description: 'One integration told in full (logo, tagline, what it does, a list of highlights and an action) beside a short list of the others, each a single link. For the integration most customers ask about.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the topic',\n    title: 'Say which to connect first',\n    description: 'Say in one sentence which one most people connect first, and that the rest can wait.',\n    featured: {\n      badge: 'Say why it leads',\n      name: 'Name the tool',\n      tagline: 'Say what it gives them',\n      body: 'Say in two sentences what it does for them and what they no longer have to do themselves.',\n      logo: { src: '', alt: 'The tool\\'s logo' },\n      highlights: ['Name a first benefit, in a line', 'Name a second benefit, in a line', 'Name a third benefit, in a line'],\n      cta: { label: 'Main action', href: '#stripe' },\n    },\n    moreLabel: 'Name the other options',\n    more: [\n      { name: 'Second tool', description: 'Say what it adds, in a line', logo: { src: '', alt: 'The tool\\'s logo' }, href: '#swish' },\n      { name: 'Third tool', description: 'Say what it adds, in a line', logo: { src: '', alt: 'The tool\\'s logo' }, href: '#gcal' },\n      { name: 'Fourth tool', description: 'Say what it adds, in a line', logo: { src: '', alt: 'The tool\\'s logo' }, href: '#slack' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/integrations-featured/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/integrations-featured/index.tsx",
      "content": "import { Check } from 'lucide-react';\nimport { Media, Text, withHeadingLevel } from '../../editing';\nimport { cn } from '../../lib/utils';\nimport { Badge } from '../../ui/badge';\nimport { safeHref } from '../../ui/button';\nimport { linkClass } from '../../ui/text-link';\nimport { ActionLink, Container, Section, useEditing } from '../_shared/kit';\nimport { Heading, useHeadingId } from '../_shared/c-proof-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\nfunction IntegrationsFeatured({ props }: BlockProps<Props>) {\n  const id = useHeadingId(props.title);\n  const f = props.featured;\n  const editing = useEditing();\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 @4xl:grid-cols-[1.4fr_1fr]\">\n          <article className=\"flex flex-col gap-6 rounded-kh-xl border border-kh-line bg-kh-surface p-8 shadow-kh-1\">\n            <div className=\"flex items-center gap-4\">\n              <Media path={['featured', 'logo']} value={f.logo} ratio=\"1 / 1\" className=\"size-16 shrink-0 rounded-kh-lg border border-kh-line\" />\n              <div className=\"min-w-0\">\n                <Badge tone=\"accent\">\n                  <Text path={['featured', 'badge']} value={f.badge} as=\"span\" />\n                </Badge>\n                <Text path={['featured', 'name']} value={f.name} as=\"h3\" className=\"mt-1 text-kh-heading font-semibold\" />\n              </div>\n            </div>\n            <Text path={['featured', 'tagline']} value={f.tagline} as=\"p\" className=\"text-kh-lead font-medium\" />\n            <Text path={['featured', 'body']} value={f.body} as=\"p\" multiline className=\"text-kh-body text-kh-muted\" />\n            <ul className=\"flex flex-col gap-2\">\n              {f.highlights.map((h, i) => (\n                <li key={i} className=\"flex items-start gap-2 text-kh-small\">\n                  <Check aria-hidden className=\"mt-0.5 size-4 shrink-0 text-kh-accent-ink\" />\n                  <Text path={['featured', 'highlights', i]} value={h} as=\"span\" />\n                </li>\n              ))}\n            </ul>\n            <ActionLink path={['featured', 'cta']} value={f.cta} variant=\"primary\" size=\"md\" className=\"self-start\" />\n          </article>\n          <div>\n            <Text path={['moreLabel']} value={props.moreLabel} as=\"h3\" className=\"text-kh-small font-medium text-kh-muted\" />\n            {(editing || props.more.some((m) => m.name)) && (\n            <ul className=\"mt-4 divide-y divide-kh-line border-y border-kh-line\">\n              {props.more.map((m, i) => (!m.name && !editing ? null : (\n                <li key={i} className=\"flex items-center gap-4 py-4\">\n                  <Media path={['more', i, 'logo']} value={m.logo} ratio=\"1 / 1\" className=\"size-10 shrink-0 rounded-kh border border-kh-line\" />\n                  <div className=\"min-w-0 flex-1\">\n                    <a href={safeHref(m.href)} className={cn(linkClass(), 'inline-flex min-h-11 items-center text-kh-body font-medium')}>\n                      <Text path={['more', i, 'name']} value={m.name} as=\"span\" />\n                    </a>\n                    <Text path={['more', i, 'description']} value={m.description} as=\"p\" className=\"-mt-2 text-kh-small text-kh-muted\" />\n                  </div>\n                </li>\n              )))}\n            </ul>\n            )}\n          </div>\n        </div>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(IntegrationsFeatured);\n"
    }
  ]
}
