{
  "$schema": "https://ui.shadcn.com/schema/registry.json",
  "name": "calendarcn",
  "homepage": "https://calendarcn.xyz",
  "items": [
    {
      "name": "calendar-core",
      "type": "registry:lib",
      "title": "Calendar Core",
      "description": "Types, event layout math, keyboard shortcuts, CalendarProvider and useCalendar(). Every view builds on it.",
      "dependencies": ["date-fns"],
      "registryDependencies": ["utils"],
      "files": [
        {
          "path": "src/components/calendar-types.ts",
          "type": "registry:component"
        },
        {
          "path": "src/components/week-view-types.ts",
          "type": "registry:component"
        },
        {
          "path": "src/components/calendar-provider.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/calendar-popover-context.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-title-focus-context.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/calendar-loading-bar.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/hooks/use-calendar-shortcuts.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-controllable-state.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-event-keyboard.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-now.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-pointer-gesture.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-timezone-label.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/lib/event-utils.ts",
          "type": "registry:lib"
        },
        {
          "path": "src/lib/timezone-label.ts",
          "type": "registry:lib"
        },
        {
          "path": "src/lib/recurrence.ts",
          "type": "registry:lib"
        },
        {
          "path": "src/lib/time-zones.ts",
          "type": "registry:lib"
        },
        {
          "path": "src/lib/event-history.ts",
          "type": "registry:lib"
        }
      ],
      "cssVars": {
        "theme": {
          "text-xxs": "0.625rem"
        },
        "light": {
          "event-red": "#b23e31",
          "event-red-border": "#ee000e",
          "event-red-bg": "#ffe1d4",
          "event-orange": "#ad4517",
          "event-orange-border": "#fe7132",
          "event-orange-bg": "#ffe3c8",
          "event-yellow": "#855100",
          "event-yellow-border": "#f2b827",
          "event-yellow-bg": "#fff0be",
          "event-green": "#027b27",
          "event-green-border": "#49ca81",
          "event-green-bg": "#deffe3",
          "event-blue": "#006cbf",
          "event-blue-border": "#32a5e5",
          "event-blue-bg": "#e2f9ff",
          "event-purple": "#7733d2",
          "event-purple-border": "#9950ff",
          "event-purple-bg": "#feecff",
          "event-gray": "#5f6061",
          "event-gray-border": "#b3b4b4",
          "event-gray-bg": "#f6f4f3",
          "calendar-weekend": "#fcfcfc",
          "calendar-current-week": "#edece9",
          "calendar-day-hover": "#eeece8",
          "calendar-day-hover-current-week": "#e2e1dc"
        },
        "dark": {
          "event-red": "#d85140",
          "event-red-border": "#d85140",
          "event-red-bg": "#6c2920",
          "event-orange": "#e07040",
          "event-orange-border": "#e07040",
          "event-orange-bg": "#5f3524",
          "event-yellow": "#d4a83a",
          "event-yellow-border": "#d4a83a",
          "event-yellow-bg": "#4e3f1b",
          "event-green": "#52b577",
          "event-green-border": "#52b577",
          "event-green-bg": "#2d4935",
          "event-blue": "#4895c8",
          "event-blue-border": "#4895c8",
          "event-blue-bg": "#2f4656",
          "event-purple": "#8a5ad6",
          "event-purple-border": "#8a5ad6",
          "event-purple-bg": "#483a63",
          "event-gray": "#a0a0a0",
          "event-gray-border": "#a0a0a0",
          "event-gray-bg": "#424242",
          "calendar-weekend": "#181818",
          "calendar-current-week": "#2e2e2e",
          "calendar-day-hover": "#2e2e2e",
          "calendar-day-hover-current-week": "#3d3d3d"
        }
      },
      "css": {
        "@utility scrollbar-hide": {
          "-ms-overflow-style": "none",
          "scrollbar-width": "none",
          "&::-webkit-scrollbar": {
            "display": "none"
          }
        },
        "@layer base": {
          "[data-event-id], [data-event-id] *": {
            "cursor": "var(--cursor, default)"
          }
        },
        "@keyframes column-highlight-fade": {
          "from": {
            "background-color": "#602c2b"
          },
          "to": {
            "background-color": "transparent"
          }
        },
        ".column-highlight": {
          "animation": "column-highlight-fade 2s ease-out forwards"
        },
        "@keyframes calendar-loading-slide": {
          "from": {
            "transform": "translateX(-100%)"
          },
          "to": {
            "transform": "translateX(300%)"
          }
        },
        ".calendar-loading-bar": {
          "width": "33.333%",
          "animation": "calendar-loading-slide 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite"
        },
        "@media (prefers-reduced-motion: reduce)": {
          ".column-highlight": {
            "animation": "none",
            "background-color": "#602c2b"
          },
          ".calendar-loading-bar": {
            "width": "100%",
            "opacity": "0.5",
            "animation": "none"
          }
        }
      }
    },
    {
      "name": "event-details",
      "type": "registry:component",
      "title": "Event Details",
      "description": "Event chips, the detail panel, the details popover and the right-click menu.",
      "dependencies": [
        "@floating-ui/react-dom",
        "date-fns",
        "lucide-react",
        "react-day-picker@^9"
      ],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "avatar",
        "button",
        "calendar",
        "command",
        "dialog",
        "dropdown-menu",
        "popover",
        "switch"
      ],
      "files": [
        {
          "path": "src/components/calendar-event-item.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-panel.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-parts.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-time.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-time-field.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-date-field.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-field-popover.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-timezone.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-recurrence.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-participants.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-conferencing.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-ai-notes.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-location.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-suggestions.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-links.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-description.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-calendar.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-availability.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-reminders.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-detail-popover.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/event-context-menu.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/hooks/use-popover-dismiss.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-inline-edit.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-hover-tooltip.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-field-popover.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/lib/time-input.ts",
          "type": "registry:lib"
        }
      ]
    },
    {
      "name": "time-grid",
      "type": "registry:component",
      "title": "Time Grid",
      "description": "The hour grid behind the day and week views: all-day row, time axis and current-time line, with drag, resize and create.",
      "dependencies": ["date-fns"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "@calendarcn/event-details"
      ],
      "files": [
        {
          "path": "src/components/time-grid.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/calendar-day-headers.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/week-view-all-day-row.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/week-view-grid.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/week-view-time-axis.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/week-view-time-indicator.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/hooks/use-all-day-resize.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-event-drag.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-event-resize.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-horizontal-scroll.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-media-query.ts",
          "type": "registry:hook"
        }
      ]
    },
    {
      "name": "day-view",
      "type": "registry:component",
      "title": "Day View",
      "description": "One day on the time grid.",
      "registryDependencies": ["@calendarcn/time-grid"],
      "files": [
        {
          "path": "src/components/day-view.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "week-view",
      "type": "registry:component",
      "title": "Week View",
      "description": "A week, or any number of days, on the time grid.",
      "registryDependencies": ["@calendarcn/time-grid"],
      "files": [
        {
          "path": "src/components/week-view.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "month-view",
      "type": "registry:component",
      "title": "Month View",
      "description": "The month grid, with drag and resize.",
      "dependencies": ["date-fns"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "@calendarcn/event-details"
      ],
      "files": [
        {
          "path": "src/components/month-view.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/month-view-grid.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/month-view-day-cell.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/month-view-event-bar.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/month-view-event-item.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/hooks/use-month-event-drag.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-month-event-resize.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-media-query.ts",
          "type": "registry:hook"
        },
        {
          "path": "src/hooks/use-vertical-scroll.ts",
          "type": "registry:hook"
        }
      ]
    },
    {
      "name": "agenda-view",
      "type": "registry:component",
      "title": "Agenda View",
      "description": "The coming days' events as a scrolling list, grouped by day.",
      "dependencies": ["date-fns", "lucide-react"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "@calendarcn/event-details"
      ],
      "files": [
        {
          "path": "src/components/agenda-view.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "year-view",
      "type": "registry:component",
      "title": "Year View",
      "description": "The year as twelve month grids, with today and the days that have events marked.",
      "dependencies": ["date-fns", "react-day-picker@^9"],
      "registryDependencies": ["@calendarcn/calendar-core"],
      "files": [
        {
          "path": "src/components/year-view.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "calendar-header",
      "type": "registry:component",
      "title": "Calendar Header",
      "description": "The live demo's header: month and year with the period on screen, view switcher, today, previous/next and panel toggles.",
      "dependencies": ["date-fns", "lucide-react"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "button",
        "dropdown-menu",
        "kbd",
        "separator",
        "tooltip"
      ],
      "files": [
        {
          "path": "src/components/calendar-header.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/view-dropdown.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "command-menu",
      "type": "registry:component",
      "title": "Command Menu",
      "description": "The live demo's ⌘K menu: today, previous/next and the views, plus your app's panel, theme and .ics commands.",
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "command",
        "dialog",
        "kbd"
      ],
      "files": [
        {
          "path": "src/components/command-menu.tsx",
          "type": "registry:component"
        }
      ],
      "css": {
        ".dark [data-slot=\"dialog-overlay\"]:has(~ [data-command-menu])": {
          "background-color": "rgb(0 0 0 / 0.3)"
        }
      }
    },
    {
      "name": "calendar-toaster",
      "type": "registry:component",
      "title": "Calendar Toaster",
      "description": "Notion Calendar's toasts: \"Event deleted\" and \"Event cut\" with Undo, and \"Event copied to clipboard\", at the bottom right of the calendar.",
      "dependencies": ["lucide-react"],
      "registryDependencies": ["@calendarcn/calendar-core"],
      "files": [
        {
          "path": "src/components/calendar-toaster.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "calendar",
      "type": "registry:block",
      "title": "Calendar",
      "description": "The full calendar: a toolbar with the view switcher, today and previous/next, over day, week, month, year and agenda views, with keyboard shortcuts.",
      "registryDependencies": [
        "@calendarcn/calendar-header",
        "@calendarcn/time-grid",
        "@calendarcn/month-view",
        "@calendarcn/agenda-view",
        "@calendarcn/year-view"
      ],
      "files": [
        {
          "path": "src/components/calendar.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "ics",
      "type": "registry:lib",
      "title": "ICS Import and Export",
      "description": "parseIcs() and toIcs(): read and write iCalendar (.ics) files from Google Calendar, Apple Calendar and Outlook.",
      "dependencies": ["date-fns"],
      "registryDependencies": ["@calendarcn/calendar-core"],
      "files": [
        {
          "path": "src/lib/ics.ts",
          "type": "registry:lib"
        }
      ]
    },
    {
      "name": "conference-providers",
      "type": "registry:lib",
      "title": "Conference Providers",
      "description": "Google Meet, Zoom and Microsoft Teams for the event details' Conferencing row, as the live demo offers them: placeholders that make up calls on example.com, to replace with calls to each service's API. No logos.",
      "registryDependencies": ["@calendarcn/calendar-core"],
      "files": [
        {
          "path": "src/lib/conference-providers.ts",
          "type": "registry:lib"
        }
      ]
    },
    {
      "name": "sample-data",
      "type": "registry:lib",
      "title": "Sample Data",
      "description": "The live demo's events, calendars, contacts, rooms and place suggestions, dated around today, and the docs examples' smaller week of events.",
      "dependencies": ["date-fns"],
      "registryDependencies": ["@calendarcn/calendar-core"],
      "files": [
        {
          "path": "src/lib/mock-events.ts",
          "type": "registry:lib"
        },
        {
          "path": "src/lib/sample-events.ts",
          "type": "registry:lib"
        }
      ]
    },
    {
      "name": "sidebar-overlay",
      "type": "registry:component",
      "title": "Sidebar Overlay",
      "description": "A sidebar as a modal sheet for narrow screens, and the sidebars' Notion Calendar colors.",
      "registryDependencies": ["sheet"],
      "files": [
        {
          "path": "src/components/sidebar-overlay.tsx",
          "type": "registry:component"
        }
      ],
      "cssVars": {
        "light": {
          "calendar-sidebar": "#f8f8f7",
          "calendar-sidebar-foreground": "#939391",
          "calendar-sidebar-muted-foreground": "#cfcfce",
          "calendar-sidebar-primary": "#32302c",
          "calendar-sidebar-primary-foreground": "#ffffff",
          "calendar-sidebar-accent": "#efefef",
          "calendar-sidebar-accent-foreground": "#32302c",
          "calendar-sidebar-border": "#e5e5e5",
          "calendar-sidebar-ring": "#797875",
          "calendar-context-panel": "#ffffff"
        },
        "dark": {
          "calendar-sidebar": "#202020",
          "calendar-sidebar-foreground": "#868686",
          "calendar-sidebar-muted-foreground": "#555555",
          "calendar-sidebar-primary": "#d9d9d9",
          "calendar-sidebar-primary-foreground": "#191919",
          "calendar-sidebar-accent": "#2a2a2a",
          "calendar-sidebar-accent-foreground": "#d9d9d9",
          "calendar-sidebar-border": "#333333",
          "calendar-sidebar-ring": "#7f7f7f",
          "calendar-context-panel": "#191919"
        }
      }
    },
    {
      "name": "theme-toggle",
      "type": "registry:component",
      "title": "Theme Toggle",
      "description": "A button that cycles the theme through system, light and dark, with the next-themes provider it needs.",
      "dependencies": ["lucide-react", "next-themes"],
      "registryDependencies": ["button"],
      "files": [
        {
          "path": "src/components/theme-toggle.tsx",
          "type": "registry:component"
        },
        {
          "path": "src/components/theme-provider.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "mini-calendar",
      "type": "registry:component",
      "title": "Mini Calendar",
      "description": "Notion Calendar's month picker: week numbers, today, the visible days highlighted and a way back to today.",
      "dependencies": ["date-fns", "lucide-react", "react-day-picker@^9"],
      "registryDependencies": ["@calendarcn/calendar-core", "tooltip"],
      "files": [
        {
          "path": "src/components/mini-calendar.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "calendar-list",
      "type": "registry:component",
      "title": "Calendar List",
      "description": "The calendars grouped by account, each with its color and a button to show or hide it.",
      "dependencies": ["lucide-react"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "collapsible",
        "sidebar"
      ],
      "files": [
        {
          "path": "src/components/calendar-list.tsx",
          "type": "registry:component"
        }
      ],
      "cssVars": {
        "light": {
          "calendar-sidebar-muted-foreground": "#cfcfce"
        },
        "dark": {
          "calendar-sidebar-muted-foreground": "#555555"
        }
      }
    },
    {
      "name": "calendar-sidebar",
      "type": "registry:component",
      "title": "Calendar Sidebar",
      "description": "The left sidebar: mini calendar, scheduling, calendar list and theme toggle, inline or as an overlay.",
      "dependencies": ["lucide-react"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "@calendarcn/mini-calendar",
        "@calendarcn/calendar-list",
        "@calendarcn/sidebar-overlay",
        "@calendarcn/theme-toggle",
        "button",
        "kbd",
        "sidebar",
        "tooltip"
      ],
      "files": [
        {
          "path": "src/components/calendar-sidebar.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "details-sidebar",
      "type": "registry:component",
      "title": "Details Sidebar",
      "description": "The right context panel: the selected event's details, event search and useful shortcuts.",
      "dependencies": ["date-fns", "lucide-react"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "@calendarcn/event-details",
        "@calendarcn/sidebar-overlay",
        "button",
        "kbd",
        "sidebar",
        "tooltip"
      ],
      "files": [
        {
          "path": "src/components/details-sidebar.tsx",
          "type": "registry:component"
        }
      ]
    },
    {
      "name": "calendar-app",
      "type": "registry:block",
      "title": "Calendar App",
      "description": "The live demo as one block: both sidebars, the header, day, week, month, year and agenda views, the ⌘K menu, the toasts, theme, .ics import and export, and keyboard shortcuts.",
      "dependencies": ["next-themes"],
      "registryDependencies": [
        "@calendarcn/calendar-core",
        "@calendarcn/time-grid",
        "@calendarcn/month-view",
        "@calendarcn/agenda-view",
        "@calendarcn/year-view",
        "@calendarcn/calendar-header",
        "@calendarcn/command-menu",
        "@calendarcn/calendar-toaster",
        "@calendarcn/calendar-sidebar",
        "@calendarcn/details-sidebar",
        "@calendarcn/theme-toggle",
        "@calendarcn/ics",
        "@calendarcn/sample-data",
        "@calendarcn/conference-providers",
        "sidebar"
      ],
      "files": [
        {
          "path": "src/components/calendar-app.tsx",
          "type": "registry:component"
        }
      ]
    }
  ]
}
