{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "forms-13",
  "type": "registry:block",
  "description": "Meeting booking widget with host details, date strip and selectable time slots.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/forms/forms-13.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Clock,\n  Globe,\n  Video,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst days = [\n  { id: \"mon\", weekday: \"Mon\", date: \"16\", open: true },\n  { id: \"tue\", weekday: \"Tue\", date: \"17\", open: true },\n  { id: \"wed\", weekday: \"Wed\", date: \"18\", open: false },\n  { id: \"thu\", weekday: \"Thu\", date: \"19\", open: true },\n  { id: \"fri\", weekday: \"Fri\", date: \"20\", open: true },\n  { id: \"sat\", weekday: \"Sat\", date: \"21\", open: false },\n  { id: \"sun\", weekday: \"Sun\", date: \"22\", open: false },\n]\n\nconst slots: Record<string, string[]> = {\n  mon: [\"09:00\", \"09:30\", \"11:00\", \"13:30\", \"15:00\", \"16:30\"],\n  tue: [\"10:00\", \"10:30\", \"14:00\", \"14:30\"],\n  thu: [\"09:00\", \"12:00\", \"12:30\", \"15:30\", \"16:00\", \"17:00\"],\n  fri: [\"09:30\", \"10:00\", \"11:30\"],\n}\n\nexport default function Forms13() {\n  const [day, setDay] = useState(\"mon\")\n  const [slot, setSlot] = useState<string | null>(\"11:00\")\n  const selectedDay = days.find((item) => item.id === day)\n\n  return (\n    <section className=\"w-full bg-background py-20\">\n      <div className=\"mx-auto max-w-5xl px-6\">\n        <div className=\"grid border border-border md:grid-cols-[280px_1fr]\">\n          <div className=\"space-y-6 border-b border-border p-6 md:border-r md:border-b-0 md:p-8\">\n            <img\n              src=\"/ali.jpg\"\n              alt=\"Ali Imam\"\n              className=\"size-12 object-cover\"\n            />\n            <div>\n              <p className=\"text-xs text-muted-foreground\">Ali Imam, Founder of Designali</p>\n              <h2 className=\"mt-1 text-2xl font-semibold tracking-tight\">Intro call</h2>\n            </div>\n            <ul className=\"space-y-3 text-sm text-muted-foreground\">\n              <li className=\"flex items-center gap-3\"><Clock className=\"size-4\" /> 30 minutes</li>\n              <li className=\"flex items-center gap-3\"><Video className=\"size-4\" /> Video call, link by email</li>\n              <li className=\"flex items-center gap-3\"><Globe className=\"size-4\" /> India Standard Time</li>\n            </ul>\n            <p className=\"text-sm leading-6 text-muted-foreground\">\n              A 30-minute call with Ali Imam to talk about your brand, website\n              or product, and how Designali can help.\n            </p>\n          </div>\n\n          <div className=\"p-6 md:p-8\">\n            <div className=\"flex items-baseline justify-between\">\n              <h3 className=\"text-sm font-medium\">Select a date</h3>\n              <p className=\"text-xs text-muted-foreground\">November 2026</p>\n            </div>\n            <div className=\"mt-4 grid grid-cols-7 gap-1\">\n              {days.map((item) => (\n                <button\n                  key={item.id}\n                  type=\"button\"\n                  disabled={!item.open}\n                  onClick={() => {\n                    setDay(item.id)\n                    setSlot(null)\n                  }}\n                  aria-pressed={day === item.id}\n                  className={cn(\n                    \"flex flex-col items-center gap-1 border py-3 text-xs transition-colors disabled:cursor-not-allowed disabled:opacity-40\",\n                    day === item.id\n                      ? \"border-foreground bg-foreground text-background\"\n                      : \"border-border hover:bg-muted\"\n                  )}\n                >\n                  <span className=\"opacity-70\">{item.weekday}</span>\n                  <span className=\"text-base font-medium\">{item.date}</span>\n                </button>\n              ))}\n            </div>\n\n            <h3 className=\"mt-8 text-sm font-medium\">\n              Available times on {selectedDay?.weekday} {selectedDay?.date}\n            </h3>\n            <div className=\"mt-4 grid grid-cols-3 gap-2 sm:grid-cols-4\">\n              {(slots[day] ?? []).map((time) => (\n                <button\n                  key={time}\n                  type=\"button\"\n                  onClick={() => setSlot(time)}\n                  aria-pressed={slot === time}\n                  className={cn(\n                    \"border py-2.5 font-sans text-sm transition-colors\",\n                    slot === time\n                      ? \"border-primary bg-primary text-primary-foreground\"\n                      : \"border-border hover:border-foreground\"\n                  )}\n                >\n                  {time}\n                </button>\n              ))}\n            </div>\n\n            <div className=\"mt-8 flex flex-col gap-4 border-t border-border pt-6 sm:flex-row sm:items-center sm:justify-between\">\n              <p className=\"text-sm text-muted-foreground\" aria-live=\"polite\">\n                {slot ? (\n                  <>\n                    <span className=\"text-foreground\">{selectedDay?.weekday} {selectedDay?.date} Nov</span> at{\" \"}\n                    <span className=\"text-foreground\">{slot}</span>\n                  </>\n                ) : (\n                  \"Pick a time to continue\"\n                )}\n              </p>\n              <Button size=\"lg\" disabled={!slot}>Confirm booking</Button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "forms"
  ]
}