{
  "$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/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/organisms/checkout-step.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// CheckoutStepProps are the props of CheckoutStep; the values are the JSON shapes of the TypeScript props.\ntype CheckoutStepProps struct {\n\tNumber any `json:\"number\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tLayout any `json:\"layout\"`\n}\n\n// 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).\ntempl CheckoutStep(p CheckoutStepProps) {\n\t{{ vNumber := p.Number }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := uiutils.Def(p.Text, \"\") }}\n\t{{ vLayout := uiutils.Def(p.Layout, \"cards\") }}\n\t@compose.Stack(compose.StackProps{Gap: \"6\", Align: \"stretch\", BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cond(uiutils.T(uiutils.Eq(vLayout, \"cards\")), \"rounded bg-card inset-ring inset-ring-border p-6\", \"border-t border-border pt-6\")), Attrs: uiutils.Attrs(\"data-slot\", \"step\")}}) {\n\t\t@compose.Group(compose.GroupProps{Gap: \"4\", Align: \"start\", BoxProps: box.BoxProps{}}) {\n\t\t\tif uiutils.Eq(vLayout, \"numbered\") {\n\t\t\t\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"flex size-8 shrink-0 items-center justify-center rounded bg-primary text-sm font-medium text-primary-foreground\"}}) {\n\t\t\t\t\t{ uiutils.Text(vNumber) }\n\t\t\t\t}\n\t\t\t}\n\t\t\t@compose.Stack(compose.StackProps{Gap: \"0\", BoxProps: box.BoxProps{}}) {\n\t\t\t\t@compose.Title(compose.TitleProps{As: \"2\", Size: \"lg\", Weight: \"semibold\", TextProps: text.TextProps{}}) {\n\t\t\t\t\t{ uiutils.Text(vTitle) }\n\t\t\t\t}\n\t\t\t\tif uiutils.T(vText) {\n\t\t\t\t\t@compose.Text(compose.TextProps{Size: \"sm\", TextProps: text.TextProps{Class: \"text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t{ children... }\n\t}\n}\n",
      "path": "blocks/checkout-step.templ",
      "target": "blocks/checkout-step.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "checkout-step",
  "registryDependencies": [
    "box",
    "group",
    "kit-box",
    "kit-text",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "templ",
  "title": "Checkout Step",
  "type": "registry:component"
}
