{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "contact-minimal",
  "type": "registry:block",
  "title": "Contact, minimal",
  "description": "Typographic contact: one oversized email link as the call to action, then up to three quiet details (phone, visit, hours) in columns. No form, no map.",
  "categories": [
    "contact"
  ],
  "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/text-link.json",
    "https://ui.klarhimmel.com/r/utils.json"
  ],
  "files": [
    {
      "path": "src/blocks/contact-minimal/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/contact-minimal/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(100),\n  email: t(80),\n  note: t(160),\n  details: z.array(z.object({ label: t(30), value: t(120), href: t(300) })).max(3),\n});\n\nexport const spec = defineSpec({\n  type: 'contact-minimal',\n  aliases: ['contact/minimal'],\n  name: 'Contact, minimal',\n  category: 'contact',\n  role: 'body',\n  description: 'Typographic contact: one oversized email link as the call to action, then up to three quiet details (phone, visit, hours) in columns. No form, no map.',\n  schema,\n  defaults: {\n    eyebrow: 'Name the topic',\n    title: 'Invite them in',\n    email: 'you@company.example',\n    note: 'Say who reads it and how fast they reply.',\n    details: [\n      { label: 'Detail one', value: '+00 00 000 00 00', href: 'tel:+46310000000' },\n      { label: 'Detail two', value: 'Give the street address and town', href: 'https://example.com/map' },\n      { label: 'Detail three', value: 'Give the days and hours', href: '' },\n    ],\n  },\n});\n"
    },
    {
      "path": "src/blocks/contact-minimal/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/contact-minimal/index.tsx",
      "content": "import { useId } from 'react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { linkClass } from '../../ui/text-link';\nimport { Container, Eyebrow, LinkedValue, Opt, Section, useEditing } from '../_shared/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 = { 0: '', 1: '', 2: '@2xl:grid-cols-2', 3: '@2xl:grid-cols-3' } as const;\n\nfunction ContactMinimal({ props }: BlockProps<Props>) {\n  const id = useId();\n  const editing = useEditing();\n  const n = Math.min(3, props.details.length) as 0 | 1 | 2 | 3;\n  return (\n    <Section labelledBy={id}>\n      <Container>\n        <Eyebrow path={['eyebrow']} value={props.eyebrow} />\n        <div id={id}>\n          <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-heading font-medium text-kh-muted\" />\n        </div>\n        {(props.email || editing) && (\n          <a href={`mailto:${props.email}`} className={cn(linkClass(), 'mt-4 inline-block text-kh-title font-semibold decoration-2 [overflow-wrap:anywhere] @3xl:text-kh-heading')}>\n            <Text path={['email']} value={props.email} as=\"span\" placeholder=\"Email\" />\n          </a>\n        )}\n        <Opt path={['note']} value={props.note} className=\"mt-5 max-w-kh-lead text-kh-lead text-kh-muted\" placeholder=\"Note\" />\n        {props.details.length > 0 && (\n          <dl className={cn('mt-16 grid gap-x-10 gap-y-8 border-t border-kh-line pt-8', COLS[n])}>\n            {props.details.map((d, i) => (\n              <div key={i}>\n                <dt className=\"text-kh-small font-medium text-kh-muted\">\n                  <Text path={['details', i, 'label']} value={d.label} as=\"span\" />\n                </dt>\n                <dd className=\"mt-1 text-kh-body\">\n                  <LinkedValue path={['details', i, 'value']} value={d.value} href={d.href} />\n                </dd>\n              </div>\n            ))}\n          </dl>\n        )}\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(ContactMinimal);\n"
    }
  ]
}
