{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "calendar",
  "type": "registry:ui",
  "title": "Calendar",
  "description": "Month grid with selected day.",
  "dependencies": [],
  "registryDependencies": [
    "bricked-css",
    "pixel-icon"
  ],
  "files": [
    {
      "path": "registry/bricked-ui/calendar.tsx",
      "content": "import * as React from \"react\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { PixelIcon, type PixelIconInput } from \"./pixel-icon\";\r\n\r\nconst s = cva(\"bk-cal bk-cut\", {\r\n  variants: {\r\n    size: { sm: \"[--px:4px] [--cut:1.5px] [--icon:3px] text-[11px]\", md: \"[--px:6px] [--cut:2px] [--icon:4px] text-[14px]\", lg: \"[--px:8px] [--cut:3px] [--icon:5px] text-[18px]\" },\r\n    variant: { primary: \"bg-brick text-ink\", dark: \"bg-ink text-on-dark\" },\r\n  },\r\n  defaultVariants: { size: \"md\", variant: \"primary\" },\r\n});\r\nexport interface CalendarProps extends Omit<React.ComponentProps<\"div\">, \"onChange\">, VariantProps<typeof s> { value: number; onChange: (d: number) => void; icon?: PixelIconInput; }\r\nexport function Calendar({ className, size, variant, value, onChange, ...props }: CalendarProps) {\r\n  const cells: (number | null)[] = [null, null, null, ...Array.from({ length: 31 }, (_, i) => i + 1)];\r\n  return (<div className={cn(s({ size, variant }), className)} {...props}><p className=\"bk-cal__title\">October 2026</p><div className=\"bk-cal__grid\">{[\"M\",\"T\",\"W\",\"T\",\"F\",\"S\",\"S\"].map((d, i) => <span key={i} className=\"bk-cal__dow\">{d}</span>)}{cells.map((d, i) => d === null ? <span key={\"e\" + i} /> : <button key={d} type=\"button\" aria-pressed={d === value} className={d === value ? \"bk-day is-on\" : \"bk-day\"} onClick={() => onChange(d)}>{d}</button>)}</div></div>);\r\n}\r\n",
      "type": "registry:ui",
      "target": "components/ui/calendar.tsx"
    }
  ]
}