{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-41",
  "title": "Date picker",
  "description": "A typed date with a button that opens a calendar.",
  "dependencies": [
    "react-aria-components"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/calendar-rac.json",
    "https://ui.ndekocode.dev/r/datefield-rac.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/label.json",
    "https://ui.ndekocode.dev/r/theme.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/input/input-41.tsx",
      "content": "'use client';\n\nimport {\n  Button,\n  DatePicker,\n  Dialog,\n  Group,\n  Label,\n  Popover,\n} from 'react-aria-components';\n\nimport { CalendarIcon } from '@/registry/ndeko/lib/icons';\nimport { Calendar } from '@/registry/ndeko/ui/calendar-rac';\nimport { DateInput } from '@/registry/ndeko/ui/datefield-rac';\nimport { LABEL_RECIPE } from '@/registry/ndeko/ui/label';\n\nconst CALENDAR_BUTTON =\n  'text-muted-foreground data-hovered:bg-foreground/5 data-hovered:text-foreground data-focus-visible:ring-ring/25 absolute inset-y-0 end-1 z-10 my-auto flex size-6 items-center justify-center rounded-md outline-none transition-[color,background-color,box-shadow] data-focus-visible:ring-[3px]';\n\nconst POPOVER =\n  'surface-raised z-50 origin-(--trigger-anchor-point) rounded-xl p-2 outline-none transition-[opacity,scale] duration-150 ease-(--ease-out-strong) data-entering:scale-95 data-entering:opacity-0 data-exiting:scale-95 data-exiting:opacity-0 data-exiting:duration-100';\n\nexport default function Input41() {\n  return (\n    <DatePicker className='flex w-full max-w-xs flex-col gap-1.5'>\n      <Label className={LABEL_RECIPE}>Due date</Label>\n      <Group className='relative flex'>\n        <DateInput className='pe-8' />\n        <Button className={CALENDAR_BUTTON}>\n          <CalendarIcon className='size-4' />\n        </Button>\n      </Group>\n      <Popover className={POPOVER} offset={6}>\n        <Dialog className='max-h-[inherit] overflow-auto outline-none'>\n          <Calendar />\n        </Dialog>\n      </Popover>\n    </DatePicker>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "input"
  ],
  "type": "registry:component"
}