{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Ways to pay as radio cards: icon, name and a line of text; `checked` is the chosen one. Static markup.",
  "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/payment-options.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/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/label\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/radio\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// PaymentOptionsProps are the props of PaymentOptions; the values are the JSON shapes of the TypeScript props.\ntype PaymentOptionsProps struct {\n\tPayments any `json:\"payments\"`\n\tName any `json:\"name\"`\n\tChecked any `json:\"checked\"`\n}\n\n// Ways to pay as radio cards: icon, name and a line of text; `checked` is the chosen one. Static markup.\ntempl PaymentOptions(p PaymentOptionsProps) {\n\t{{ vPayments := p.Payments }}\n\t{{ vName := p.Name }}\n\t{{ vChecked := uiutils.Def(p.Checked, \"\") }}\n\t@compose.Grid(compose.GridProps{Cols: \"1-2\", BoxProps: box.BoxProps{Class: \"gap-4\", Attrs: uiutils.Attrs(\"data-slot\", \"payments\")}}) {\n\t\tfor _, vP := range uiutils.L(vPayments) {\n\t\t\t@compose.Label(compose.LabelProps{LabelProps: label.LabelProps{Class: \"flex items-center gap-4 rounded p-4 inset-ring inset-ring-border has-checked:inset-ring-foreground\", Attrs: uiutils.Attrs(\"data-slot\", \"payment\")}}) {\n\t\t\t\t@compose.Radio(compose.RadioProps{RadioProps: radio.RadioProps{Name: uiutils.S(vName), Value: uiutils.SP(uiutils.Get(vP, \"id\")), Checked: uiutils.T(uiutils.Eq(uiutils.Get(vP, \"id\"), vChecked))}})\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(uiutils.Get(vP, \"icon\")), Size: 20, Class: \"shrink-0\"})\n\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"flex flex-col items-start justify-start gap-0\"}}) {\n\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-sm font-semibold\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"title\")) }\n\t\t\t\t\t}\n\t\t\t\t\t@compose.Inline(compose.InlineProps{TextProps: text.TextProps{Class: \"text-xs text-muted-foreground\"}}) {\n\t\t\t\t\t\t{ uiutils.Text(uiutils.Get(vP, \"text\")) }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/payment-options.templ",
      "target": "blocks/payment-options.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "payment-options",
  "registryDependencies": [
    "grid",
    "inline",
    "kit-box",
    "kit-label",
    "kit-radio",
    "kit-text",
    "label",
    "lucide-icon",
    "radio",
    "utils"
  ],
  "runtime": "templ",
  "title": "Payment Options",
  "type": "registry:component"
}
