{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "calendar-date-picker-02",
  "title": "Range calendar",
  "description": "A react-aria range of four days, tinted between its two ends.",
  "dependencies": [
    "@internationalized/date",
    "react-aria-components"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/calendar-rac.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/components/calendar-date-picker/calendar-date-picker-02.tsx",
      "content": "'use client';\n\nimport { getLocalTimeZone, today } from '@internationalized/date';\nimport { useState } from 'react';\nimport type { DateRange } from 'react-aria-components';\n\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { RangeCalendar } from '@/registry/ndeko/ui/calendar-rac';\n\nimport { SETTLING_DAYS } from './_parts/settling-days';\n\nfunction threeDaysFromToday(): DateRange {\n  const now = today(getLocalTimeZone());\n  return { start: now, end: now.add({ days: 3 }) };\n}\n\nexport default function CalendarDatePicker02() {\n  const [range, setRange] = useState<DateRange | null>(threeDaysFromToday);\n\n  return (\n    <RangeCalendar\n      className={cn(\n        'bg-card hairline-ring ring-border rounded-xl p-2 shadow-[0_1px_2px_rgb(0_0_0/0.04)]',\n        SETTLING_DAYS\n      )}\n      value={range}\n      onChange={setRange}\n    />\n  );\n}\n",
      "type": "registry:component",
      "target": "components/calendar-date-picker/calendar-date-picker-02.tsx"
    },
    {
      "path": "registry/ndeko/components/calendar-date-picker/_parts/settling-days.ts",
      "content": "/**\n * The react-aria calendar cells cannot take classes from outside, so the press that lets a picked\n * day settle in is applied from the calendar root.\n */\nexport const SETTLING_DAYS =\n  '[&_td>div]:transition-[color,background-color,border-radius,box-shadow,scale] [&_td>div]:ease-(--ease-out-strong) [&_td>[data-pressed]]:scale-90';\n",
      "type": "registry:component",
      "target": "components/calendar-date-picker/_parts/settling-days.ts"
    }
  ],
  "categories": [
    "components",
    "calendar-date-picker"
  ],
  "type": "registry:component"
}