{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One step of a long form: an optional number, a heading (h2) and a line of text over the fields (`children`). Axes: layout (cards: the step in a card, numbered: a number beside the heading and a line between steps).",
  "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 * One step of a long form: an optional number, a heading (h2) and a line of text over the fields (`children`).\n * Axes: layout (cards: the step in a card, numbered: a number beside the heading and a line between steps).\n */\nimport { type JSX } from \"solid-js\";\nimport { Box, Group, Stack, Text, Title } from \"../compose\";\n\nexport type CheckoutStepProps = {\n  number: string;\n  title: string;\n  text?: string;\n  layout?: \"cards\" | \"numbered\";\n  children?: JSX.Element;\n};\n\nexport function CheckoutStep({ number, title, text = \"\", layout = \"cards\", children }: CheckoutStepProps) {\n  return (\n    <Stack\n      gap=\"6\"\n      align=\"stretch\"\n      class={\n        (layout as string) === \"cards\" ? \"rounded bg-card inset-ring inset-ring-border p-6\"\n        : \"border-t border-border pt-6\"\n      }\n      data-slot=\"step\"\n    >\n      <Group gap=\"4\" align=\"start\">\n        {((layout as string) === \"numbered\") ? (\n          <Box class={\"flex size-8 shrink-0 items-center justify-center rounded bg-primary text-sm font-medium text-primary-foreground\"}>\n            {number}\n          </Box>\n        ) : null}\n        <Stack gap=\"0\">\n          <Title as={2} size=\"lg\" weight=\"semibold\">\n            {title}\n          </Title>\n          {text ? (\n            <Text size=\"sm\" class=\"text-muted-foreground\">\n              {text}\n            </Text>\n          ) : null}\n        </Stack>\n      </Group>\n      {children}\n    </Stack>\n  );\n}\n",
      "path": "components/checkout-step.tsx",
      "target": "components/checkout-step.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "checkout-step",
  "registryDependencies": [
    "compose",
    "utils"
  ],
  "runtime": "solid",
  "title": "Checkout Step",
  "type": "registry:component"
}
