{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The aside at the end of a page head: one large figure with its caption, a note card with a glyph, or four key facts as cards in two columns.",
  "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 aside at the end of a page head: one large figure with its caption, a note card with a glyph, or four key\n * facts as cards in two columns.\n */\nimport { For, type JSX } from \"solid-js\";\nimport { Box, Group, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport type { PageExtras } from \"../blocks/page-trail.types\";\n\nexport type PageAsideProps = {\n  extras: PageExtras;\n  mode?: \"none\" | \"figure\" | \"note\" | \"facts\";\n};\n\nexport function PageAside({ extras, mode = \"figure\" }: PageAsideProps) {\n  return (\n    <>\n      {((mode as string) === \"figure\") ? (\n        <Stack gap=\"0\" align=\"end\" class=\"text-end\" data-slot=\"page-figure\">\n          <Text size=\"4xl\" weight=\"bold\">\n            {extras.value}\n          </Text>\n          <Text size=\"xs\" class=\"text-muted-foreground\">\n            {extras.caption}\n          </Text>\n        </Stack>\n      ) : null}\n      {((mode as string) === \"note\") ? (\n        <Group\n          gap=\"4\"\n          align=\"start\"\n          class=\"rounded bg-card inset-ring inset-ring-border max-w-xs p-4\"\n          data-slot=\"page-note\"\n        >\n          <LucideIcon name={extras.icon} size={20} />\n          <Stack gap=\"0\">\n            <Text size=\"lg\" weight=\"bold\">\n              {extras.value}\n            </Text>\n            <Text size=\"sm\" weight=\"medium\">\n              {extras.caption}\n            </Text>\n            <Text size=\"xs\" class=\"text-muted-foreground\">\n              {extras.note}\n            </Text>\n          </Stack>\n        </Group>\n      ) : null}\n      {((mode as string) === \"facts\") ? (\n        <Box class=\"grid grid-cols-2 gap-4\" data-slot=\"page-aside\">\n          <For each={extras.facts ?? []}>{(s, iOf) => { const i = iOf(); return (\n            <>\n              {(i < 4) ? (\n                <Stack gap=\"0\" class=\"rounded bg-card inset-ring inset-ring-border p-4\" data-slot=\"page-fact\">\n                  <Text size=\"lg\" weight=\"bold\">\n                    {s.value}\n                  </Text>\n                  <Text size=\"xs\" weight=\"medium\">\n                    {s.label}\n                  </Text>\n                  <Text size=\"xs\" class=\"text-muted-foreground\">\n                    {s.hint}\n                  </Text>\n                </Stack>\n              ) : null}\n            </>\n          ); }}</For>\n        </Box>\n      ) : null}\n    </>\n  );\n}\n",
      "path": "components/page-aside.tsx",
      "target": "components/page-aside.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "page-aside",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "page-trail",
    "utils"
  ],
  "runtime": "solid",
  "title": "Page Aside",
  "type": "registry:component"
}
