{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Heading, lead, one or two actions and optional media.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/**\n * The top of a page: heading, lead and actions, with optional media (image, backdrop, code window, cluster).\n * Axes: layout, media kind and side, scale, tone, density, actions mode.\n */\nimport { type JSX } from \"solid-js\";\nimport { Box, Button, Grid, Group, Input, Label } from \"../compose\";\nimport { ActionGroup } from \"../components/action-group\";\nimport { Backdrop } from \"../components/backdrop\";\nimport { CodeWindow } from \"../components/code-window\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { TopicChips } from \"../components/topic-chips\";\nimport { cn, tpl, urlOf } from \"../utils\";\nimport type { HeroMedia } from \"./hero-classic.types\";\nimport type { ActionSet } from \"../components/cta-actions.types\";\nimport type { CodeLine } from \"../components/code-window.types\";\nimport type { Topic } from \"../components/topic-chips.types\";\n\nexport type HeroClassicProps = {\n  id: string;\n  title: string;\n  text: string;\n  level?: 1 | 2;\n  badge?: string;\n  topics?: Topic[];\n  actions?: ActionSet;\n  media?: HeroMedia;\n  layout?: \"centered\" | \"split\";\n  scale?: \"default\" | \"display\";\n  tone?: \"default\" | \"muted\" | \"inverse\";\n  density?: \"roomy\" | \"default\" | \"compact\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function HeroClassic({\n  id,\n  title,\n  text,\n  level = 1,\n  badge,\n  topics,\n  actions,\n  media,\n  layout = \"centered\",\n  scale = \"default\",\n  tone = \"default\",\n  density = \"roomy\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: HeroClassicProps) {\n  const mediaKind = media?.kind ?? \"none\";\n  const mediaSide = media?.side ?? \"end\";\n  return (\n    <SectionFrame\n      id={id}\n      title={title}\n      lead={text}\n      heading={{ level, scale, badge }}\n      layout={(((layout as string) === \"split\") ? \"split\" : \"stack\")}\n      align={(((layout as string) === \"split\") ? \"start\" : \"center\")}\n      media={{\n        show: (((mediaKind as string) === \"image\") || ((mediaKind as string) === \"code\") || ((mediaKind as string) === \"cluster\")),\n        side: mediaSide,\n      }}\n      tone={tone}\n      density={density}\n      class={\n        (((mediaKind as string) === \"backdrop\") ? \"image\" : \"none\") === \"image\" ? \"relative isolate overflow-hidden\"\n        : \"\"\n      }\n      landmarkLabel={landmarkLabel}\n      aside={(\n        <>\n          {(((mediaKind as string) === \"code\") && media?.lines && ((media?.lines?.length ?? 0) > 0) && media?.codeTitle && media?.prompt) ? (\n            <CodeWindow title={media?.codeTitle} prompt={media?.prompt} lines={media?.lines} />\n          ) : null}\n          {((mediaKind as string) === \"cluster\") ? (\n            <Grid cols=\"3\" class=\"items-end gap-4\" data-slot=\"cluster\">\n              <Box class={cn(\"w-full\", \"\")}>\n                <MediaFrame alt={title} ratio=\"3/4\" />\n              </Box>\n              <Box class={cn(\"w-full\", \"-translate-y-4\")}>\n                <MediaFrame alt={title} ratio=\"4/3\" />\n              </Box>\n              <Box class={cn(\"w-full\", \"\")}>\n                <MediaFrame alt={title} ratio=\"3/4\" />\n              </Box>\n            </Grid>\n          ) : null}\n          {(((mediaKind as string) === \"image\")) ? (\n            <MediaFrame alt={(imageAlt ? imageAlt : title)} src={image} ratio=\"4/3\" />\n          ) : null}\n        </>\n      )}\n    >\n      <Backdrop\n        kind={(((mediaKind as string) === \"backdrop\") ? \"image\" : \"none\")}\n        alt={(imageAlt ? imageAlt : title)}\n        image={image}\n      />\n      {actions?.cta ? (\n        <>\n          {(actions?.mode === \"form\") ? (\n            <Box\n              class={cn(\"w-full max-w-xl\", (((layout as string) === \"centered\") ? \"mx-auto\" : \"\"))}\n              data-slot=\"email-form\"\n            >\n              <Label for={tpl(\"{0}-email\", id)} class=\"sr-only\">\n                {actions?.emailLabel}\n              </Label>\n              <Group gap=\"2\" align=\"start\" class=\"w-full flex-wrap\">\n                <Input\n                  type=\"text\"\n                  name=\"prompt\"\n                  class=\"min-w-0 flex-1\"\n                  placeholder={actions?.emailLabel}\n                  id={tpl(\"{0}-email\", id)}\n                  data-slot=\"field\"\n                />\n                <Button variant=\"default\" size=\"default\" href={urlOf(actions?.href)}>\n                  {actions?.cta}\n                </Button>\n              </Group>\n            </Box>\n          ) : (\n            <ActionGroup\n              primary={actions?.cta}\n              primaryHref={actions?.href}\n              secondary={((actions?.mode === \"two\") ? actions?.secondary : undefined)}\n              secondaryHref={actions?.secondaryHref}\n              align={(((layout as string) === \"centered\") ? \"center\" : \"start\")}\n            />\n          )}\n        </>\n      ) : null}\n      {(topics && ((topics?.length ?? 0) > 0)) ? (\n        <TopicChips topics={topics} />\n      ) : null}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/hero-classic.tsx",
      "target": "blocks/hero-classic.tsx"
    },
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n\nimport type { CodeLine } from \"../components/code-window.types\";\n\nexport type HeroMedia = {\n  /** what the hero shows besides the text */\n  kind?: \"none\" | \"image\" | \"backdrop\" | \"code\" | \"cluster\";\n  /** side of the media in the split layout */\n  side?: \"end\" | \"start\";\n  /** title of the code window */\n  codeTitle?: string;\n  /** prompt line of the code window */\n  prompt?: string;\n  /** lines of the code window */\n  lines?: CodeLine[];\n};\n",
      "path": "blocks/hero-classic.types.ts",
      "target": "blocks/hero-classic.types.ts"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "hero",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "hero-classic",
  "registryDependencies": [
    "action-group",
    "backdrop",
    "code-window",
    "compose",
    "cta-actions",
    "media-frame",
    "section-frame",
    "topic-chips",
    "utils"
  ],
  "runtime": "solid",
  "title": "Hero Classic",
  "type": "registry:block"
}
