{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "input-42",
  "title": "Date range picker",
  "description": "Start and end dates with a range 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",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/input/input-42.tsx",
      "content": "'use client';\n\nimport {\n  Button,\n  DateRangePicker,\n  Dialog,\n  Group,\n  Label,\n  Popover,\n} from 'react-aria-components';\n\nimport { CalendarIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { RangeCalendar } from '@/registry/ndeko/ui/calendar-rac';\nimport { DateInput, dateInputStyle } 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 Input42() {\n  return (\n    <DateRangePicker className='flex w-full max-w-xs flex-col gap-1.5'>\n      <Label className={LABEL_RECIPE}>Trip dates</Label>\n      <Group className={cn(dateInputStyle, 'pe-8')}>\n        <DateInput slot='start' unstyled />\n        <span aria-hidden='true' className='text-muted-foreground/75 px-1.5'>\n          –\n        </span>\n        <DateInput slot='end' unstyled />\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          <RangeCalendar />\n        </Dialog>\n      </Popover>\n    </DateRangePicker>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "components",
    "input"
  ],
  "type": "registry:component"
}