{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "calendar",
  "title": "Calendar",
  "description": "Tetsu calendar on @ui-sdk/react, styled with the @tetsustudio/tokens variables.",
  "dependencies": [
    "@ui-sdk/react@0.1.0-beta.5",
    "cn@^0.4.0",
    "lucide-react@^1.16.0"
  ],
  "registryDependencies": [
    "https://library.tetsustudio.com/r/button.json"
  ],
  "files": [
    {
      "path": "registry/ui/calendar.tsx",
      "content": "'use client'\n\nimport * as React from 'react'\nimport { cn } from 'cn'\nimport {\n  Calendar as CalendarPrimitive,\n  CalendarDay,\n  CalendarGrid,\n  CalendarHeading,\n  CalendarNext,\n  CalendarPrevious,\n  CalendarWeekday,\n  CalendarWeekdays,\n  CalendarWeeks,\n} from '@ui-sdk/react/calendar'\nimport { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'\n\nimport { buttonVariants } from '@/components/ui/button'\n\nconst navClass = cn(\n  buttonVariants({ variant: 'ghost', size: 'icon-sm' }),\n  'data-disabled:pointer-events-none data-disabled:opacity-50',\n)\n\nconst dayClass =\n  'size-9 rounded-full p-0 text-center align-middle text-sm font-normal outline-none transition-colors hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 data-outside:text-muted-foreground/60 data-today:font-semibold data-today:text-brand data-range-middle:rounded-none data-range-middle:bg-muted data-selected:bg-primary data-selected:text-primary-foreground data-range-middle:data-selected:bg-muted data-range-middle:data-selected:text-foreground data-disabled:pointer-events-none data-disabled:opacity-40 data-unavailable:line-through'\n\n/**\n * Month heading, navigation and grid. Works inside Calendar and inside\n * DatePickerContent, which accepts the same parts.\n */\nfunction CalendarBody({\n  previousLabel = 'Previous month',\n  nextLabel = 'Next month',\n}: {\n  previousLabel?: string\n  nextLabel?: string\n}) {\n  return (\n    <div className=\"flex flex-col gap-2\">\n      <div className=\"flex items-center justify-between gap-2\">\n        <CalendarPrevious aria-label={previousLabel} className={navClass}>\n          <ChevronLeftIcon aria-hidden=\"true\" />\n        </CalendarPrevious>\n        <CalendarHeading className=\"text-sm font-medium first-letter:uppercase\" />\n        <CalendarNext aria-label={nextLabel} className={navClass}>\n          <ChevronRightIcon aria-hidden=\"true\" />\n        </CalendarNext>\n      </div>\n      <CalendarGrid className=\"border-separate border-spacing-0\">\n        <CalendarWeekdays>\n          {(index) => (\n            <CalendarWeekday\n              index={index}\n              className=\"size-9 text-xs font-normal text-muted-foreground capitalize\"\n            />\n          )}\n        </CalendarWeekdays>\n        <CalendarWeeks>\n          {(cell) => <CalendarDay value={cell.date} className={dayClass} />}\n        </CalendarWeeks>\n      </CalendarGrid>\n    </div>\n  )\n}\n\ntype CalendarProps = Omit<\n  React.ComponentProps<typeof CalendarPrimitive>,\n  'className' | 'children'\n> & {\n  className?: string\n  previousLabel?: string\n  nextLabel?: string\n}\n\nfunction Calendar({ className, previousLabel, nextLabel, ...props }: CalendarProps) {\n  return (\n    <CalendarPrimitive className={cn('w-fit p-2', className)} {...props}>\n      <CalendarBody previousLabel={previousLabel} nextLabel={nextLabel} />\n    </CalendarPrimitive>\n  )\n}\n\nexport { Calendar, CalendarBody }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}