{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-onboarding-welcome",
  "type": "registry:block",
  "title": "App, welcome screen",
  "description": "The first screen of an empty account: a greeting, one sentence on what happens next, one primary action, an optional secondary link, and two to four short tips. Built so there is exactly one obvious next step.",
  "categories": [
    "app"
  ],
  "dependencies": [
    "lucide-react@^1.49.0",
    "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/kit-app.json"
  ],
  "files": [
    {
      "path": "src/blocks/app-onboarding-welcome/spec.ts",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/app-onboarding-welcome/spec.ts",
      "content": "import { z } from 'zod';\nimport { defineSpec, link, t, req } from '../_shared/schema';\n\nconst schema = z.object({\n  eyebrow: t(60).optional(),\n  title: req(120),\n  description: t(300),\n  primary: link,\n  secondary: link.optional(),\n  /** What to expect, in a few short lines. */\n  tips: z.array(z.object({ title: t(50), description: t(120) })).min(2).max(4),\n});\n\nexport const spec = defineSpec({\n  type: 'app-onboarding-welcome',\n  aliases: ['app/onboarding-welcome'],\n  name: 'App, welcome screen',\n  category: 'app',\n  role: 'body',\n  description: 'The first screen of an empty account: a greeting, one sentence on what happens next, one primary action, an optional secondary link, and two to four short tips. Built so there is exactly one obvious next step.',\n  schema,\n  defaults: {\n    \"eyebrow\": \"Welcome\",\n    \"title\": \"Say hello and name the place\",\n    \"description\": \"Say what is empty and what the first step is, in a sentence or two.\",\n    \"primary\": {\n      \"label\": \"Say the first step\",\n      \"href\": \"#add-room\"\n    },\n    \"secondary\": {\n      \"label\": \"Say another way to start\",\n      \"href\": \"#import\"\n    },\n    \"tips\": [\n      {\n        \"title\": \"Say how long it takes\",\n        \"description\": \"Say what is enough to start with, in a line.\"\n      },\n      {\n        \"title\": \"Say what is private\",\n        \"description\": \"Say when others will see it and how.\"\n      },\n      {\n        \"title\": \"Say what can change\",\n        \"description\": \"Say that settings stay editable.\"\n      }\n    ]\n  },\n});\n"
    },
    {
      "path": "src/blocks/app-onboarding-welcome/index.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/blocks/app-onboarding-welcome/index.tsx",
      "content": "import { useId } from 'react';\nimport { Sparkles } from 'lucide-react';\nimport { Text, withHeadingLevel } from '../../editing';\nimport { Container, Opt, Section, ActionLink } from '../_shared/kit';\nimport { AppPanel } from '../_shared/app-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 AppOnboardingWelcome({ props }: BlockProps<Props>) {\n  const id = useId();\n  return (\n    <Section labelledBy={id}>\n      <Container width=\"narrow\">\n        <AppPanel className=\"flex flex-col items-center gap-6 px-6 py-12 text-center @xl:px-12\">\n          <span aria-hidden className=\"inline-flex size-14 items-center justify-center rounded-kh-lg border border-kh-line bg-kh-surface-2 text-kh-accent-ink\">\n            <Sparkles className=\"size-6\" />\n          </span>\n          <div className=\"flex flex-col gap-3\">\n            <Opt path={['eyebrow']} value={props.eyebrow} as=\"p\" className=\"text-kh-small font-medium text-kh-accent-ink\" placeholder=\"Eyebrow\" />\n            <div id={id}>\n              <Text path={['title']} value={props.title} as=\"h2\" className=\"text-kh-title font-semibold\" />\n            </div>\n            <Text path={['description']} value={props.description} as=\"p\" multiline className=\"mx-auto max-w-kh-lead text-kh-lead text-kh-muted\" />\n          </div>\n          <div className=\"flex flex-wrap items-center justify-center gap-3\">\n            <ActionLink path={['primary']} value={props.primary} variant=\"primary\" size=\"lg\" />\n            {props.secondary && <ActionLink path={['secondary']} value={props.secondary} variant=\"ghost\" size=\"lg\" />}\n          </div>\n          <ul className=\"mt-4 grid w-full gap-4 border-t border-kh-line pt-8 text-left @xl:grid-cols-[repeat(auto-fit,minmax(11rem,1fr))]\">\n            {props.tips.map((tip, i) => (\n              <li key={i}>\n                <Text path={['tips', i, 'title']} value={tip.title} as=\"h3\" className=\"text-kh-small font-semibold\" />\n                <Text path={['tips', i, 'description']} value={tip.description} as=\"p\" className=\"mt-1 text-kh-small text-kh-muted\" />\n              </li>\n            ))}\n          </ul>\n        </AppPanel>\n      </Container>\n    </Section>\n  );\n}\n\nexport default withHeadingLevel(AppOnboardingWelcome);\n"
    }
  ]
}
