{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "range-calendar",
  "type": "registry:ui",
  "title": "Range Calendar",
  "dependencies": [
    "@base-ui-next/react"
  ],
  "registryDependencies": [
    "https://hamur.dev/r/react/utils.json",
    "https://hamur.dev/r/react/button.json",
    "https://hamur.dev/r/react/calendar.json"
  ],
  "files": [
    {
      "path": "react/range-calendar.tsx",
      "content": "'use client'\n\nimport type * as React from 'react' // base-ui-next/ui range-calendar@0.2.0\nimport { RangeCalendar as RangeCalendarPrimitive } from '@base-ui-next/react/range-calendar'\nimport { cn } from '@/lib/utils'\nimport { CalendarContent } from '@/components/ui/calendar'\n\nconst calendarClassName =\n  'group/calendar w-fit bg-background p-3 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(8)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent in-data-[slot=date-picker-popup]:bg-transparent in-data-[slot=date-range-picker-popup]:bg-transparent'\n\ntype RangeCalendarProps = RangeCalendarPrimitive.Root.Props &\n  Pick<React.ComponentProps<typeof CalendarContent>, 'buttonVariant' | 'showOutsideDays'>\n\n// No shadcn item: the Calendar's markup on the range Root, Base UI's ID as slug (BN-331, question 10).\nfunction RangeCalendar({\n  className,\n  children,\n  buttonVariant,\n  showOutsideDays,\n  ...props\n}: RangeCalendarProps) {\n  return (\n    <RangeCalendarPrimitive.Root\n      data-slot=\"range-calendar\"\n      className={cn(calendarClassName, className)}\n      {...props}\n    >\n      {children ?? (\n        <CalendarContent\n          months={props.visibleMonths}\n          buttonVariant={buttonVariant}\n          showOutsideDays={showOutsideDays}\n          views={props.views !== undefined}\n        />\n      )}\n    </RangeCalendarPrimitive.Root>\n  )\n}\n\nexport { RangeCalendar }\n",
      "type": "registry:ui",
      "target": "@ui/range-calendar.tsx"
    }
  ],
  "meta": {
    "baseUiNext": {
      "version": "0.2.0",
      "hash": "c2914aca7fa7b7ec755e741a7509ef20fe9243186d8d14559707cde9efcc0013",
      "files": {
        "@ui/range-calendar.tsx": "ad83a30be5839eb118a7ca8f5dff84e2d4ec0de42d75201168186919994dfbae"
      }
    }
  }
}
