{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Features beside a picture: plain in two columns, as cards with actions, two figures over checked rows, or four metric cards with actions.",
  "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 * Features beside a picture. Axes: layout (grid: four plain features in two columns, cards: four features as\n * cards and the actions, stats: two figure cards over three checked rows beside a square picture, metrics: four\n * metric cards and the actions), mediaSide, tone.\n */\nimport { type JSX } from \"solid-js\";\nimport { ActionGroup } from \"../components/action-group\";\nimport { FeatureCards } from \"../components/feature-cards\";\nimport { FeatureMetricCards } from \"../components/feature-metric-cards\";\nimport { FeaturePairs } from \"../components/feature-pairs\";\nimport { FeatureStatRows } from \"../components/feature-stat-rows\";\nimport { MediaFrame } from \"../components/media-frame\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport type { Feature } from \"./feature-grid.types\";\nimport type { Stat } from \"./stats-band.types\";\nimport type { LinkActions } from \"./error-page.types\";\n\nexport type FeatureSplitProps = {\n  id: string;\n  title: string;\n  lead?: string;\n  badge?: string;\n  level?: 1 | 2;\n  features: Feature[];\n  stats: Stat[];\n  actions: LinkActions;\n  layout?: \"grid\" | \"cards\" | \"stats\" | \"metrics\";\n  mediaSide?: \"end\" | \"start\";\n  tone?: \"default\" | \"muted\";\n  image?: string;\n  imageAlt?: string;\n  landmarkLabel?: string;\n};\n\nexport function FeatureSplit({\n  id,\n  title,\n  lead = \"\",\n  badge = \"\",\n  level = 2,\n  features,\n  stats,\n  actions,\n  layout = \"grid\",\n  mediaSide = \"end\",\n  tone = \"default\",\n  image,\n  imageAlt,\n  landmarkLabel,\n}: FeatureSplitProps) {\n  return (\n    <SectionFrame\n      id={id}\n      title={title}\n      lead={lead}\n      heading={{ badge, level }}\n      tone={tone}\n      layout=\"split\"\n      media={{ show: true, side: mediaSide }}\n      landmarkLabel={landmarkLabel}\n      aside={(\n        <MediaFrame\n          alt={(imageAlt ? imageAlt : title)}\n          src={image}\n          ratio={(((layout as string) === \"stats\") ? \"1/1\" : \"4/3\")}\n        />\n      )}\n    >\n      {((layout as string) === \"grid\") ? (\n        <>\n          {((features?.length ?? 0) > 0) ? (\n            <FeaturePairs features={features} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"cards\") ? (\n        <>\n          {((features?.length ?? 0) > 0) ? (\n            <FeatureCards features={features} cols=\"1-2\" item=\"tile\" />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"stats\") ? (\n        <>\n          {((features?.length ?? 0) > 0) ? (\n            <FeatureStatRows features={features} stats={stats} />\n          ) : null}\n        </>\n      ) : null}\n      {((layout as string) === \"metrics\") ? (\n        <>\n          {((stats?.length ?? 0) > 0) ? (\n            <FeatureMetricCards stats={stats} />\n          ) : null}\n        </>\n      ) : null}\n      {(((layout as string) === \"cards\") || ((layout as string) === \"metrics\")) ? (\n        <ActionGroup\n          primary={actions.cta}\n          primaryHref={actions.href}\n          secondary={((actions.mode === \"two\") ? actions.secondary : undefined)}\n          secondaryHref={actions.secondaryHref}\n        />\n      ) : null}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/feature-split.tsx",
      "target": "blocks/feature-split.tsx"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "features",
    "kind": "block",
    "tags": [
      "solid",
      "block"
    ]
  },
  "name": "feature-split",
  "registryDependencies": [
    "action-group",
    "error-page",
    "feature-cards",
    "feature-grid",
    "feature-metric-cards",
    "feature-pairs",
    "feature-stat-rows",
    "media-frame",
    "section-frame",
    "stats-band",
    "utils"
  ],
  "runtime": "solid",
  "title": "Feature Split",
  "type": "registry:block"
}
