{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-forms-schedule-demo-form","type":"registry:block","title":"Schedule Demo Form","files":[{"path":"components/blocks/marketing/hero-forms/schedule-demo-form.tsx","content":"import { useState } from 'react';\nimport { Button } from '@/components/ui/button';\nimport { Input } from '@/components/ui/input';\nimport { Label } from '@/components/ui/label';\nimport { Textarea } from '@/components/ui/textarea';\nimport { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from '@/components/ui/select';\nimport {\n  CalendarIcon,\n  Clock10Icon,\n  PhoneIcon,\n  MonitorIcon,\n  Users2Icon,\n  ZapIcon,\n  CheckCircle2Icon,\n} from 'lucide-react';\n\nexport default function HeroFormScheduleDemo() {\n  const [step, setStep] = useState(1);\n  const [demoType, setDemoType] = useState<string>('');\n  const [submitted, setSubmitted] = useState(false);\n\n  const handleNext = () => {\n    if (step < 2) {\n      setStep(step + 1);\n    } else {\n      setSubmitted(true);\n    }\n  };\n\n  const handleBack = () => {\n    if (step > 1) {\n      setStep(step - 1);\n    }\n  };\n\n  const availableDates = [\n    {\n      date: 'Mon, Jun 10',\n      slots: ['9:00 AM', '11:30 AM', '2:00 PM', '4:30 PM'],\n    },\n    { date: 'Tue, Jun 11', slots: ['10:00 AM', '1:00 PM', '3:30 PM'] },\n    {\n      date: 'Wed, Jun 12',\n      slots: ['9:30 AM', '12:00 PM', '3:00 PM', '5:00 PM'],\n    },\n    { date: 'Thu, Jun 13', slots: ['8:00 AM', '10:30 AM', '2:30 PM'] },\n    { date: 'Fri, Jun 14', slots: ['11:00 AM', '1:30 PM', '4:00 PM'] },\n  ];\n\n  const [selectedDate, setSelectedDate] = useState('');\n  const [selectedTime, setSelectedTime] = useState('');\n\n  return (\n    <>\n      {/* Hero */}\n      <div className=\"bg-background relative overflow-hidden\">\n        <div className=\"absolute top-0 left-0 hidden h-40 w-full bg-gradient-to-r from-blue-500/10 via-indigo-500/10 to-purple-500/10 lg:block\"></div>\n        <div className=\"relative z-10 container mx-auto px-4 py-16 md:px-6 lg:py-24 2xl:max-w-[1400px]\">\n          <div className=\"grid items-center gap-12 lg:grid-cols-2\">\n            {/* Left Content */}\n            <div>\n              <div className=\"bg-primary/10 text-primary mb-6 inline-flex items-center rounded-full px-3 py-1 text-sm font-medium\">\n                <ZapIcon className=\"mr-1 h-4 w-4\" />\n                Personalized Experience\n              </div>\n\n              <h1 className=\"mb-4 text-4xl font-bold tracking-tight lg:text-5xl\">\n                Schedule a personalized product demo\n              </h1>\n\n              <p className=\"text-muted-foreground mb-8 text-xl\">\n                See how our platform can transform your workflow with a live\n                demonstration tailored to your needs.\n              </p>\n\n              <div className=\"mb-10 space-y-6\">\n                <div className=\"flex items-start\">\n                  <div className=\"bg-primary/10 flex-shrink-0 rounded-full p-2\">\n                    <MonitorIcon className=\"text-primary h-5 w-5\" />\n                  </div>\n                  <div className=\"ml-4\">\n                    <h3 className=\"text-base font-semibold\">Customized demo</h3>\n                    <p className=\"text-muted-foreground text-sm\">\n                      Tailored to your specific industry and needs\n                    </p>\n                  </div>\n                </div>\n\n                <div className=\"flex items-start\">\n                  <div className=\"bg-primary/10 flex-shrink-0 rounded-full p-2\">\n                    <Clock10Icon className=\"text-primary h-5 w-5\" />\n                  </div>\n                  <div className=\"ml-4\">\n                    <h3 className=\"text-base font-semibold\">\n                      30-minute session\n                    </h3>\n                    <p className=\"text-muted-foreground text-sm\">\n                      Brief but comprehensive overview of key features\n                    </p>\n                  </div>\n                </div>\n\n                <div className=\"flex items-start\">\n                  <div className=\"bg-primary/10 flex-shrink-0 rounded-full p-2\">\n                    <Users2Icon className=\"text-primary h-5 w-5\" />\n                  </div>\n                  <div className=\"ml-4\">\n                    <h3 className=\"text-base font-semibold\">Bring your team</h3>\n                    <p className=\"text-muted-foreground text-sm\">\n                      Invite colleagues to join your demo session\n                    </p>\n                  </div>\n                </div>\n              </div>\n\n              <div className=\"bg-muted/50 border-border/50 mt-12 rounded-lg border p-6\">\n                <div className=\"flex items-start\">\n                  <div className=\"mt-1 flex-shrink-0\">\n                    <img\n                      src=\"https://images.unsplash.com/photo-1560250097-0b93528c311a?q=80&w=1000&auto=format&fit=crop\"\n                      alt=\"Customer success manager\"\n                      width={48}\n                      height={48}\n                      className=\"rounded-full object-cover\"\n                    />\n                  </div>\n                  <div className=\"ml-4\">\n                    <p className=\"text-muted-foreground mb-2 italic\">\n                      &quot;Our product specialist will guide you through the\n                      platform and answer any questions specific to your use\n                      case.&quot;\n                    </p>\n                    <p className=\"text-sm font-medium\">Michael Roberts</p>\n                    <p className=\"text-muted-foreground text-xs\">\n                      Customer Success Manager\n                    </p>\n                  </div>\n                </div>\n              </div>\n            </div>\n\n            {/* Right Form */}\n            <div className=\"bg-background rounded-xl border p-8 shadow-lg\">\n              {!submitted ? (\n                <>\n                  <div className=\"mb-6 flex items-center justify-between\">\n                    <h2 className=\"text-2xl font-bold\">Schedule Your Demo</h2>\n                    <div className=\"text-muted-foreground flex items-center text-sm\">\n                      Step {step} of 2\n                    </div>\n                  </div>\n\n                  {/* Step 1: Contact Info */}\n                  {step === 1 && (\n                    <div className=\"space-y-4\">\n                      <div className=\"grid grid-cols-2 gap-4\">\n                        <div>\n                          <Label htmlFor=\"firstName\" className=\"mb-2\">\n                            First name\n                          </Label>\n                          <Input id=\"firstName\" placeholder=\"John\" required />\n                        </div>\n                        <div>\n                          <Label htmlFor=\"lastName\" className=\"mb-2\">\n                            Last name\n                          </Label>\n                          <Input id=\"lastName\" placeholder=\"Doe\" required />\n                        </div>\n                      </div>\n\n                      <div>\n                        <Label htmlFor=\"email\" className=\"mb-2\">\n                          Work email\n                        </Label>\n                        <Input\n                          id=\"email\"\n                          type=\"email\"\n                          placeholder=\"john@example.com\"\n                          required\n                        />\n                      </div>\n\n                      <div>\n                        <Label htmlFor=\"phone\" className=\"mb-2\">\n                          Phone number\n                        </Label>\n                        <Input id=\"phone\" placeholder=\"+1 (555) 000-0000\" />\n                      </div>\n\n                      <div>\n                        <Label htmlFor=\"company\" className=\"mb-2\">\n                          Company\n                        </Label>\n                        <Input id=\"company\" placeholder=\"Acme Inc.\" />\n                      </div>\n\n                      <div>\n                        <Label htmlFor=\"role\" className=\"mb-2\">\n                          Job title\n                        </Label>\n                        <Input id=\"role\" placeholder=\"Product Manager\" />\n                      </div>\n\n                      <div>\n                        <Label htmlFor=\"team-size\" className=\"mb-2\">\n                          Team size\n                        </Label>\n                        <Select>\n                          <SelectTrigger id=\"team-size\">\n                            <SelectValue placeholder=\"Select team size\" />\n                          </SelectTrigger>\n                          <SelectContent>\n                            <SelectItem value=\"1-10\">1-10 employees</SelectItem>\n                            <SelectItem value=\"11-50\">\n                              11-50 employees\n                            </SelectItem>\n                            <SelectItem value=\"51-200\">\n                              51-200 employees\n                            </SelectItem>\n                            <SelectItem value=\"201-500\">\n                              201-500 employees\n                            </SelectItem>\n                            <SelectItem value=\"501+\">501+ employees</SelectItem>\n                          </SelectContent>\n                        </Select>\n                      </div>\n\n                      <div>\n                        <Label className=\"mb-2\">\n                          What are you interested in?\n                        </Label>\n                        <RadioGroup\n                          value={demoType}\n                          onValueChange={setDemoType}\n                          className=\"mt-4 space-y-2\"\n                        >\n                          <div className=\"flex items-start space-x-2\">\n                            <RadioGroupItem\n                              value=\"product-overview\"\n                              id=\"product-overview\"\n                              className=\"mt-1\"\n                            />\n                            <Label\n                              htmlFor=\"product-overview\"\n                              className=\"cursor-pointer font-normal\"\n                            >\n                              <span className=\"font-medium\">\n                                Product Overview\n                              </span>\n                              <p className=\"text-muted-foreground text-xs\">\n                                Complete walkthrough of all features\n                              </p>\n                            </Label>\n                          </div>\n                          <div className=\"flex items-start space-x-2\">\n                            <RadioGroupItem\n                              value=\"specific-features\"\n                              id=\"specific-features\"\n                              className=\"mt-1\"\n                            />\n                            <Label\n                              htmlFor=\"specific-features\"\n                              className=\"cursor-pointer font-normal\"\n                            >\n                              <span className=\"font-medium\">\n                                Specific Features\n                              </span>\n                              <p className=\"text-muted-foreground text-xs\">\n                                Focus on particular tools or capabilities\n                              </p>\n                            </Label>\n                          </div>\n                          <div className=\"flex items-start space-x-2\">\n                            <RadioGroupItem\n                              value=\"pricing-options\"\n                              id=\"pricing-options\"\n                              className=\"mt-1\"\n                            />\n                            <Label\n                              htmlFor=\"pricing-options\"\n                              className=\"cursor-pointer font-normal\"\n                            >\n                              <span className=\"font-medium\">\n                                Pricing & Options\n                              </span>\n                              <p className=\"text-muted-foreground text-xs\">\n                                Learn about plans and pricing structures\n                              </p>\n                            </Label>\n                          </div>\n                        </RadioGroup>\n                      </div>\n\n                      <Button\n                        onClick={handleNext}\n                        className=\"mt-2 w-full\"\n                        disabled={!demoType}\n                      >\n                        Continue to Schedule\n                      </Button>\n                    </div>\n                  )}\n\n                  {/* Step 2: Schedule */}\n                  {step === 2 && (\n                    <div className=\"space-y-6\">\n                      <div>\n                        <Label className=\"mb-2 block\">Select a date</Label>\n                        <div className=\"grid grid-cols-3 gap-2 sm:grid-cols-5\">\n                          {availableDates.map((dateOption) => (\n                            <button\n                              key={dateOption.date}\n                              type=\"button\"\n                              onClick={() => setSelectedDate(dateOption.date)}\n                              className={`hover:border-primary rounded-md border p-2 text-center text-sm transition-colors ${\n                                selectedDate === dateOption.date\n                                  ? 'bg-primary/10 border-primary'\n                                  : ''\n                              }`}\n                            >\n                              {dateOption.date}\n                            </button>\n                          ))}\n                        </div>\n                      </div>\n\n                      {selectedDate && (\n                        <div>\n                          <Label className=\"mb-2 block\">Select a time</Label>\n                          <div className=\"grid grid-cols-2 gap-2 sm:grid-cols-4\">\n                            {availableDates\n                              .find((d) => d.date === selectedDate)\n                              ?.slots.map((timeSlot) => (\n                                <button\n                                  key={timeSlot}\n                                  type=\"button\"\n                                  onClick={() => setSelectedTime(timeSlot)}\n                                  className={`hover:border-primary rounded-md border p-2 text-center text-sm transition-colors ${\n                                    selectedTime === timeSlot\n                                      ? 'bg-primary/10 border-primary'\n                                      : ''\n                                  }`}\n                                >\n                                  <span className=\"flex items-center justify-center\">\n                                    <Clock10Icon className=\"mr-1 h-3 w-3\" />\n                                    {timeSlot}\n                                  </span>\n                                </button>\n                              ))}\n                          </div>\n                        </div>\n                      )}\n\n                      <div>\n                        <Label htmlFor=\"notes\" className=\"mb-2\">\n                          Additional notes (optional)\n                        </Label>\n                        <Textarea\n                          id=\"notes\"\n                          placeholder=\"Let us know about any specific features you're interested in...\"\n                          rows={3}\n                        />\n                      </div>\n\n                      <div className=\"flex flex-col gap-3 pt-4 sm:flex-row sm:justify-between\">\n                        <Button\n                          variant=\"outline\"\n                          onClick={handleBack}\n                          className=\"sm:w-1/3\"\n                        >\n                          Back\n                        </Button>\n                        <Button\n                          onClick={handleNext}\n                          disabled={!selectedDate || !selectedTime}\n                          className=\"sm:w-2/3\"\n                        >\n                          Confirm Demo\n                        </Button>\n                      </div>\n                    </div>\n                  )}\n                </>\n              ) : (\n                <div className=\"py-6 text-center\">\n                  <div className=\"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-full bg-green-100\">\n                    <CheckCircle2Icon className=\"h-8 w-8 text-green-600\" />\n                  </div>\n\n                  <h2 className=\"mb-2 text-2xl font-bold\">Demo Scheduled!</h2>\n                  <p className=\"text-muted-foreground mb-6\">\n                    Your demo has been confirmed. We&apos;ve sent you a calendar\n                    invite.\n                  </p>\n\n                  <div className=\"bg-muted mb-6 rounded-lg p-4\">\n                    <div className=\"mb-2 flex items-center\">\n                      <CalendarIcon className=\"text-muted-foreground mr-2 h-4 w-4\" />\n                      <span className=\"font-medium\">{selectedDate}</span>\n                    </div>\n                    <div className=\"mb-2 flex items-center\">\n                      <Clock10Icon className=\"text-muted-foreground mr-2 h-4 w-4\" />\n                      <span className=\"font-medium\">{selectedTime} EST</span>\n                    </div>\n                    <div className=\"flex items-center\">\n                      <PhoneIcon className=\"text-muted-foreground mr-2 h-4 w-4\" />\n                      <span className=\"text-sm\">\n                        You&apos;ll receive a calendar invite with meeting\n                        details\n                      </span>\n                    </div>\n                  </div>\n\n                  <div className=\"space-y-3\">\n                    <Button className=\"w-full\">Add to Calendar</Button>\n                    <Button variant=\"outline\" className=\"w-full\">\n                      Invite a Colleague\n                    </Button>\n                  </div>\n                </div>\n              )}\n            </div>\n          </div>\n        </div>\n      </div>\n      {/* End Hero */}\n    </>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-forms/schedule-demo-form.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/input.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n  return (\n    <input\n      type={type}\n      data-slot=\"input\"\n      className={cn(\n        \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Input }\n","type":"registry:ui","target":"components/ui/input.tsx"},{"path":"components/ui/label.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Label as LabelPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n  className,\n  ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n  return (\n    <LabelPrimitive.Root\n      data-slot=\"label\"\n      className={cn(\n        \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Label }\n","type":"registry:ui","target":"components/ui/label.tsx"},{"path":"components/ui/textarea.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Textarea({ className, ...props }: React.ComponentProps<\"textarea\">) {\n  return (\n    <textarea\n      data-slot=\"textarea\"\n      className={cn(\n        \"flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Textarea }\n","type":"registry:ui","target":"components/ui/textarea.tsx"},{"path":"components/ui/radio-group.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction RadioGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n  return (\n    <RadioGroupPrimitive.Root\n      data-slot=\"radio-group\"\n      className={cn(\"grid w-full gap-3\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction RadioGroupItem({\n  className,\n  ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n  return (\n    <RadioGroupPrimitive.Item\n      data-slot=\"radio-group-item\"\n      className={cn(\n        \"group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n        className\n      )}\n      {...props}\n    >\n      <RadioGroupPrimitive.Indicator\n        data-slot=\"radio-group-indicator\"\n        className=\"flex size-4 items-center justify-center\"\n      >\n        <span className=\"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground\" />\n      </RadioGroupPrimitive.Indicator>\n    </RadioGroupPrimitive.Item>\n  )\n}\n\nexport { RadioGroup, RadioGroupItem }\n","type":"registry:ui","target":"components/ui/radio-group.tsx"},{"path":"components/ui/select.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Select as SelectPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\"\n\nfunction Select({\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n  return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n  return (\n    <SelectPrimitive.Group\n      data-slot=\"select-group\"\n      className={cn(\"scroll-my-1 p-1\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction SelectValue({\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n  return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n  className,\n  size = \"default\",\n  children,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n  size?: \"sm\" | \"default\"\n}) {\n  return (\n    <SelectPrimitive.Trigger\n      data-slot=\"select-trigger\"\n      data-size={size}\n      className={cn(\n        \"flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    >\n      {children}\n      <SelectPrimitive.Icon asChild>\n        <ChevronDownIcon className=\"pointer-events-none size-4 text-muted-foreground\" />\n      </SelectPrimitive.Icon>\n    </SelectPrimitive.Trigger>\n  )\n}\n\nfunction SelectContent({\n  className,\n  children,\n  position = \"item-aligned\",\n  align = \"center\",\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n  return (\n    <SelectPrimitive.Portal>\n      <SelectPrimitive.Content\n        data-slot=\"select-content\"\n        data-align-trigger={position === \"item-aligned\"}\n        className={cn(\"relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\", position ===\"popper\"&&\"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\", className )}\n        position={position}\n        align={align}\n        {...props}\n      >\n        <SelectScrollUpButton />\n        <SelectPrimitive.Viewport\n          data-position={position}\n          className={cn(\n            \"data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)\",\n            position === \"popper\" && \"\"\n          )}\n        >\n          {children}\n        </SelectPrimitive.Viewport>\n        <SelectScrollDownButton />\n      </SelectPrimitive.Content>\n    </SelectPrimitive.Portal>\n  )\n}\n\nfunction SelectLabel({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n  return (\n    <SelectPrimitive.Label\n      data-slot=\"select-label\"\n      className={cn(\"px-2 py-1.5 text-xs text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction SelectItem({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n  return (\n    <SelectPrimitive.Item\n      data-slot=\"select-item\"\n      className={cn(\n        \"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n        className\n      )}\n      {...props}\n    >\n      <span className=\"pointer-events-none absolute right-2 flex size-4 items-center justify-center\">\n        <SelectPrimitive.ItemIndicator>\n          <CheckIcon className=\"pointer-events-none\" />\n        </SelectPrimitive.ItemIndicator>\n      </span>\n      <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n    </SelectPrimitive.Item>\n  )\n}\n\nfunction SelectSeparator({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n  return (\n    <SelectPrimitive.Separator\n      data-slot=\"select-separator\"\n      className={cn(\"pointer-events-none -mx-1 my-1 h-px bg-border\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction SelectScrollUpButton({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n  return (\n    <SelectPrimitive.ScrollUpButton\n      data-slot=\"select-scroll-up-button\"\n      className={cn(\n        \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    >\n      <ChevronUpIcon\n      />\n    </SelectPrimitive.ScrollUpButton>\n  )\n}\n\nfunction SelectScrollDownButton({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n  return (\n    <SelectPrimitive.ScrollDownButton\n      data-slot=\"select-scroll-down-button\"\n      className={cn(\n        \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    >\n      <ChevronDownIcon\n      />\n    </SelectPrimitive.ScrollDownButton>\n  )\n}\n\nexport {\n  Select,\n  SelectContent,\n  SelectGroup,\n  SelectItem,\n  SelectLabel,\n  SelectScrollDownButton,\n  SelectScrollUpButton,\n  SelectSeparator,\n  SelectTrigger,\n  SelectValue,\n}\n","type":"registry:ui","target":"components/ui/select.tsx"}],"description":"A hero with a schedule demo form for name, company, and a time slot. Books sales calls with prospects right where they first arrive.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}