{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "forms-10",
  "type": "registry:block",
  "description": "Checkout with stepped contact, shipping and card fields beside a sticky order summary.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "checkbox",
    "input",
    "label",
    "native-select"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/forms/forms-10.tsx",
      "content": "import {\n  CreditCard,\n  Lock,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { Checkbox } from \"@workspace/ui/components/checkbox\"\nimport { Input } from \"@workspace/ui/components/input\"\nimport { Label } from \"@workspace/ui/components/label\"\nimport {\n  NativeSelect,\n  NativeSelectOption,\n} from \"@workspace/ui/components/native-select\"\n\nconst items = [\n  { name: \"Designali Pro, All Templates\", meta: \"Personal licence\", price: 149, tone: \"from-primary to-chart-2\" },\n  { name: \"Designali Icons Pro\", meta: \"4000+ icons / Figma + React\", price: 49, tone: \"from-chart-3 to-chart-5\" },\n]\n\nconst subtotal = items.reduce((sum, item) => sum + item.price, 0)\nconst shipping = 0\nconst tax = Math.round(subtotal * 0.08)\n\nexport default function Forms10() {\n  return (\n    <section className=\"w-full bg-background py-20\">\n      <div className=\"mx-auto grid max-w-7xl gap-10 px-6 lg:grid-cols-[1.4fr_1fr]\">\n        <form className=\"space-y-10\">\n          <div>\n            <h2 className=\"text-3xl font-semibold tracking-tight\">Checkout</h2>\n            <p className=\"mt-2 text-sm text-muted-foreground\">\n              Instant download from designali.com right after payment.\n            </p>\n          </div>\n\n          <fieldset className=\"space-y-5\">\n            <legend className=\"mb-4 text-sm font-medium\">1. Contact</legend>\n            <div className=\"space-y-2\">\n              <Label htmlFor=\"f10-email\">Email</Label>\n              <Input id=\"f10-email\" type=\"email\" placeholder=\"you@example.com\" className=\"h-10\" />\n            </div>\n          </fieldset>\n\n          <fieldset className=\"space-y-5 border-t border-border pt-8\">\n            <legend className=\"sr-only\">Billing</legend>\n            <p className=\"text-sm font-medium\">2. Billing address</p>\n            <div className=\"grid gap-5 sm:grid-cols-2\">\n              <div className=\"space-y-2 sm:col-span-2\">\n                <Label htmlFor=\"f10-address\">Street address</Label>\n                <Input id=\"f10-address\" placeholder=\"Street address\" className=\"h-10\" />\n              </div>\n              <div className=\"space-y-2\">\n                <Label htmlFor=\"f10-city\">City</Label>\n                <Input id=\"f10-city\" placeholder=\"City\" className=\"h-10\" />\n              </div>\n              <div className=\"grid grid-cols-2 gap-3\">\n                <div className=\"space-y-2\">\n                  <Label htmlFor=\"f10-state\">State</Label>\n                  <NativeSelect id=\"f10-state\" className=\"w-full\" defaultValue=\"OR\">\n                    <NativeSelectOption value=\"OR\">OR</NativeSelectOption>\n                    <NativeSelectOption value=\"WA\">WA</NativeSelectOption>\n                    <NativeSelectOption value=\"CA\">CA</NativeSelectOption>\n                  </NativeSelect>\n                </div>\n                <div className=\"space-y-2\">\n                  <Label htmlFor=\"f10-zip\">ZIP</Label>\n                  <Input id=\"f10-zip\" inputMode=\"numeric\" placeholder=\"ZIP\" className=\"h-10\" />\n                </div>\n              </div>\n            </div>\n          </fieldset>\n\n          <fieldset className=\"space-y-5 border-t border-border pt-8\">\n            <legend className=\"sr-only\">Payment</legend>\n            <p className=\"flex items-center justify-between text-sm font-medium\">\n              3. Payment\n              <span className=\"flex items-center gap-1 text-xs font-normal text-muted-foreground\">\n                <Lock className=\"size-3\" /> Encrypted\n              </span>\n            </p>\n            <div className=\"border border-border\">\n              <div className=\"relative border-b border-border\">\n                <Label htmlFor=\"f10-card\" className=\"sr-only\">Card number</Label>\n                <CreditCard className=\"absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground\" />\n                <Input\n                  id=\"f10-card\"\n                  inputMode=\"numeric\"\n                  placeholder=\"1234 1234 1234 1234\"\n                  className=\"h-11 border-0 pl-10 focus-visible:ring-0\"\n                />\n              </div>\n              <div className=\"grid grid-cols-2\">\n                <Label htmlFor=\"f10-exp\" className=\"sr-only\">Expiry</Label>\n                <Input id=\"f10-exp\" placeholder=\"MM / YY\" className=\"h-11 border-0 border-r border-border focus-visible:ring-0\" />\n                <Label htmlFor=\"f10-cvc\" className=\"sr-only\">CVC</Label>\n                <Input id=\"f10-cvc\" inputMode=\"numeric\" placeholder=\"CVC\" className=\"h-11 border-0 focus-visible:ring-0\" />\n              </div>\n            </div>\n            <Label className=\"flex items-center gap-2 text-xs font-normal text-muted-foreground\">\n              <Checkbox defaultChecked />\n              Email me a copy of the invoice\n            </Label>\n          </fieldset>\n        </form>\n\n        <aside className=\"h-fit border border-border bg-muted/40 p-6 lg:sticky lg:top-6\">\n          <h3 className=\"text-sm font-medium\">Order summary</h3>\n          <ul className=\"mt-6 space-y-5\">\n            {items.map((item) => (\n              <li key={item.name} className=\"flex gap-4\">\n                <span className={`size-16 shrink-0 bg-gradient-to-br ${item.tone}`} aria-hidden />\n                <div className=\"min-w-0 flex-1\">\n                  <p className=\"text-sm leading-5 font-medium\">{item.name}</p>\n                  <p className=\"mt-1 text-xs text-muted-foreground\">{item.meta}</p>\n                </div>\n                <p className=\"text-sm\">${item.price}</p>\n              </li>\n            ))}\n          </ul>\n          <div className=\"mt-6 flex gap-2 border-t border-border pt-6\">\n            <Label htmlFor=\"f10-code\" className=\"sr-only\">Discount code</Label>\n            <Input id=\"f10-code\" placeholder=\"Discount code\" className=\"h-10 bg-background\" />\n            <Button variant=\"outline\" type=\"button\">Apply</Button>\n          </div>\n          <dl className=\"mt-6 space-y-3 border-t border-border pt-6 text-sm\">\n            <div className=\"flex justify-between\">\n              <dt className=\"text-muted-foreground\">Subtotal</dt>\n              <dd>${subtotal}.00</dd>\n            </div>\n            <div className=\"flex justify-between\">\n              <dt className=\"text-muted-foreground\">Delivery</dt>\n              <dd>{shipping === 0 ? \"Free\" : `$${shipping}`}</dd>\n            </div>\n            <div className=\"flex justify-between\">\n              <dt className=\"text-muted-foreground\">Estimated tax</dt>\n              <dd>${tax}.00</dd>\n            </div>\n            <div className=\"flex justify-between border-t border-border pt-3 text-base font-semibold\">\n              <dt>Total</dt>\n              <dd>${subtotal + shipping + tax}.00</dd>\n            </div>\n          </dl>\n          <Button type=\"submit\" size=\"lg\" className=\"mt-6 w-full\">\n            Pay ${subtotal + shipping + tax}.00\n          </Button>\n        </aside>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "950px"
  },
  "categories": [
    "forms"
  ]
}