{
  "component": {
    "id": "calendar-agenda",
    "name": "Calendar agenda",
    "tier": "pro",
    "exampleId": "calendar-agenda",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/calendar-agenda-demo.tsx",
    "exportName": "CalendarAgendaDemo",
    "sha256": "a1175bb928162513fc136ae2cb389657733474558108edb8e9192dd670bd7748",
    "helperImports": [],
    "directComponentImports": [
      "calendar-agenda"
    ],
    "sampleBoundary": "Existing local demo fixture with fictional data and callbacks. No live service, customer data, access key, or Pro source is included."
  },
  "install": {
    "command": "npx shadcn@latest add @tidal-pro/calendar-agenda",
    "registryUrl": "https://tidalui.com/r/pro/calendar-agenda.json",
    "namespace": "@tidal-pro",
    "access": "pro",
    "sourceDelivery": "server-gated",
    "requiresAuthorization": true,
    "tokenSource": "local-env",
    "tokenEnvName": "TIDALUI_TOKEN",
    "cli": {
      "package": "shadcn",
      "requested": "latest"
    }
  },
  "installPlan": [
    {
      "order": 1,
      "kind": "primary",
      "dependency": "@tidal-pro/calendar-agenda",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/calendar-agenda",
      "registryUrl": "https://tidalui.com/r/pro/calendar-agenda.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/calendar-agenda.tsx",
    "exports": [
      "TidalCalendarAgenda",
      "TidalCalendarDay",
      "TidalCalendarEvent"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/calendar-agenda.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "calendar-agenda"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/calendar-agenda.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/calendar-agenda.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/calendar-agenda-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useLayoutEffect, useRef, useState } from \"react\";\n\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\n\nimport { TidalCalendarAgenda, type TidalCalendarDay, type TidalCalendarEvent } from \"./components/ui/calendar-agenda\";\n\nimport \"./components/ui/calendar-agenda.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .calendar-agenda-demo {\\n  display: grid;\\n  width: min(100%, 1160px);\\n  min-width: 0;\\n  gap: 16px;\\n  margin-inline: auto;\\n}\\n\\n.tidal-scope .calendar-agenda-demo-detail {\\n  min-width: 0;\\n  padding: 20px;\\n  color: var(--t-surface);\\n  background: var(--t-ink);\\n  border-radius: var(--t-radius-card);\\n  scroll-margin-block: 18px;\\n}\\n\\n.tidal-scope .calendar-agenda-demo-detail > span {\\n  color: color-mix(in srgb, var(--t-surface) 68%, transparent);\\n  font-size: 11px;\\n  font-weight: 760;\\n  letter-spacing: 0.13em;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .calendar-agenda-demo-detail h3 {\\n  margin: 8px 0 0;\\n  font-size: 24px;\\n  line-height: 1;\\n  letter-spacing: -0.04em;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .calendar-agenda-demo-detail p {\\n  max-width: 70ch;\\n  margin: 10px 0 0;\\n  color: color-mix(in srgb, var(--t-surface) 74%, transparent);\\n  font-size: 11px;\\n  line-height: 1.6;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .calendar-agenda-demo-detail > div {\\n  display: flex;\\n  flex-wrap: wrap;\\n  gap: 8px 16px;\\n  margin-top: 15px;\\n  padding-top: 12px;\\n  color: color-mix(in srgb, var(--t-surface) 72%, transparent);\\n  border-top: 1px solid color-mix(in srgb, var(--t-surface) 22%, transparent);\\n  font-size: 11px;\\n}\\n\\n.tidal-scope .calendar-agenda-demo-detail:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .calendar-agenda-demo * {\\n    scroll-behavior: auto !important;\\n  }\\n}\";\n\ntype MonthId = \"october\" | \"november\";\n\ntype DayDefinition = readonly [\n  date: string,\n  label: string,\n  monthName: string,\n  outsideMonth?: boolean,\n];\n\ninterface SampleEvent {\n  id: string;\n  date: string;\n  label: string;\n  timeLabel: string;\n  timeValue: string;\n  meta: string;\n  detail: string;\n  kind: \"link\" | \"button\";\n}\n\nconst WEEKDAYS = [\n  { id: \"sun\", label: \"Sun\", accessibleLabel: \"Sunday\" },\n  { id: \"mon\", label: \"Mon\", accessibleLabel: \"Monday\" },\n  { id: \"tue\", label: \"Tue\", accessibleLabel: \"Tuesday\" },\n  { id: \"wed\", label: \"Wed\", accessibleLabel: \"Wednesday\" },\n  { id: \"thu\", label: \"Thu\", accessibleLabel: \"Thursday\" },\n  { id: \"fri\", label: \"Fri\", accessibleLabel: \"Friday\" },\n  { id: \"sat\", label: \"Sat\", accessibleLabel: \"Saturday\" },\n] as const;\n\nconst OCTOBER_DATES: readonly DayDefinition[] = [\n  [\"2026-09-27\", \"27\", \"September\", true],\n  [\"2026-09-28\", \"28\", \"September\", true],\n  [\"2026-09-29\", \"29\", \"September\", true],\n  [\"2026-09-30\", \"30\", \"September\", true],\n  [\"2026-10-01\", \"1\", \"October\"],\n  [\"2026-10-02\", \"2\", \"October\"],\n  [\"2026-10-03\", \"3\", \"October\"],\n  [\"2026-10-04\", \"4\", \"October\"],\n  [\"2026-10-05\", \"5\", \"October\"],\n  [\"2026-10-06\", \"6\", \"October\"],\n  [\"2026-10-07\", \"7\", \"October\"],\n  [\"2026-10-08\", \"8\", \"October\"],\n  [\"2026-10-09\", \"9\", \"October\"],\n  [\"2026-10-10\", \"10\", \"October\"],\n  [\"2026-10-11\", \"11\", \"October\"],\n  [\"2026-10-12\", \"12\", \"October\"],\n  [\"2026-10-13\", \"13\", \"October\"],\n  [\"2026-10-14\", \"14\", \"October\"],\n  [\"2026-10-15\", \"15\", \"October\"],\n  [\"2026-10-16\", \"16\", \"October\"],\n  [\"2026-10-17\", \"17\", \"October\"],\n  [\"2026-10-18\", \"18\", \"October\"],\n  [\"2026-10-19\", \"19\", \"October\"],\n  [\"2026-10-20\", \"20\", \"October\"],\n  [\"2026-10-21\", \"21\", \"October\"],\n  [\"2026-10-22\", \"22\", \"October\"],\n  [\"2026-10-23\", \"23\", \"October\"],\n  [\"2026-10-24\", \"24\", \"October\"],\n  [\"2026-10-25\", \"25\", \"October\"],\n  [\"2026-10-26\", \"26\", \"October\"],\n  [\"2026-10-27\", \"27\", \"October\"],\n  [\"2026-10-28\", \"28\", \"October\"],\n  [\"2026-10-29\", \"29\", \"October\"],\n  [\"2026-10-30\", \"30\", \"October\"],\n  [\"2026-10-31\", \"31\", \"October\"],\n];\n\nconst NOVEMBER_DATES: readonly DayDefinition[] = [\n  [\"2026-11-01\", \"1\", \"November\"],\n  [\"2026-11-02\", \"2\", \"November\"],\n  [\"2026-11-03\", \"3\", \"November\"],\n  [\"2026-11-04\", \"4\", \"November\"],\n  [\"2026-11-05\", \"5\", \"November\"],\n  [\"2026-11-06\", \"6\", \"November\"],\n  [\"2026-11-07\", \"7\", \"November\"],\n  [\"2026-11-08\", \"8\", \"November\"],\n  [\"2026-11-09\", \"9\", \"November\"],\n  [\"2026-11-10\", \"10\", \"November\"],\n  [\"2026-11-11\", \"11\", \"November\"],\n  [\"2026-11-12\", \"12\", \"November\"],\n  [\"2026-11-13\", \"13\", \"November\"],\n  [\"2026-11-14\", \"14\", \"November\"],\n  [\"2026-11-15\", \"15\", \"November\"],\n  [\"2026-11-16\", \"16\", \"November\"],\n  [\"2026-11-17\", \"17\", \"November\"],\n  [\"2026-11-18\", \"18\", \"November\"],\n  [\"2026-11-19\", \"19\", \"November\"],\n  [\"2026-11-20\", \"20\", \"November\"],\n  [\"2026-11-21\", \"21\", \"November\"],\n  [\"2026-11-22\", \"22\", \"November\"],\n  [\"2026-11-23\", \"23\", \"November\"],\n  [\"2026-11-24\", \"24\", \"November\"],\n  [\"2026-11-25\", \"25\", \"November\"],\n  [\"2026-11-26\", \"26\", \"November\"],\n  [\"2026-11-27\", \"27\", \"November\"],\n  [\"2026-11-28\", \"28\", \"November\"],\n  [\"2026-11-29\", \"29\", \"November\"],\n  [\"2026-11-30\", \"30\", \"November\"],\n  [\"2026-12-01\", \"1\", \"December\", true],\n  [\"2026-12-02\", \"2\", \"December\", true],\n  [\"2026-12-03\", \"3\", \"December\", true],\n  [\"2026-12-04\", \"4\", \"December\", true],\n  [\"2026-12-05\", \"5\", \"December\", true],\n];\n\nconst SAMPLE_EVENTS: readonly SampleEvent[] = [\n  {\n    id: \"component-review\",\n    date: \"2026-10-14\",\n    label: \"Component review\",\n    timeLabel: \"9:30 AM\",\n    timeValue: \"2026-10-14T09:30\",\n    meta: \"Studio\",\n    detail:\n      \"Review the fictional component queue and record local notes for the sample workspace.\",\n    kind: \"link\",\n  },\n  {\n    id: \"release-notes\",\n    date: \"2026-10-16\",\n    label: \"Release notes pass\",\n    timeLabel: \"1:00 PM\",\n    timeValue: \"2026-10-16T13:00\",\n    meta: \"Editorial\",\n    detail:\n      \"Check the fictional release-note outline shown only in this local preview.\",\n    kind: \"button\",\n  },\n  {\n    id: \"copy-review\",\n    date: \"2026-10-23\",\n    label: \"Navigation copy review\",\n    timeLabel: \"11:15 AM\",\n    timeValue: \"2026-10-23T11:15\",\n    meta: \"Product\",\n    detail:\n      \"Compare concise sample navigation labels without sending or publishing anything.\",\n    kind: \"link\",\n  },\n  {\n    id: \"search-review\",\n    date: \"2026-11-03\",\n    label: \"Search states review\",\n    timeLabel: \"10:00 AM\",\n    timeValue: \"2026-11-03T10:00\",\n    meta: \"Product\",\n    detail:\n      \"Inspect fictional search states inside the local component preview.\",\n    kind: \"button\",\n  },\n  {\n    id: \"motion-review\",\n    date: \"2026-11-12\",\n    label: \"Reduced motion review\",\n    timeLabel: \"2:30 PM\",\n    timeValue: \"2026-11-12T14:30\",\n    meta: \"Accessibility\",\n    detail:\n      \"Read a fictional review note about finite motion and static reduced-motion states.\",\n    kind: \"link\",\n  },\n];\n\nconst MONTHS: Record<\n  MonthId,\n  { label: string; definitions: readonly DayDefinition[] }\n> = {\n  october: { label: \"October 2026\", definitions: OCTOBER_DATES },\n  november: { label: \"November 2026\", definitions: NOVEMBER_DATES },\n};\n\nexport function CalendarAgendaDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const detailId = `calendar-agenda-${generatedId}-detail`;\n  const [monthId, setMonthId] = useState<MonthId>(\"october\");\n  const [selectedDate, setSelectedDate] = useState(\"2026-10-14\");\n  const [activeEventId, setActiveEventId] = useState(\"component-review\");\n  const previousRef = useRef<HTMLButtonElement>(null);\n  const nextRef = useRef<HTMLButtonElement>(null);\n  const navigationFocus = useRef<\"previous\" | \"next\" | null>(null);\n  const activeEvent = SAMPLE_EVENTS.find(\n    (event) => event.id === activeEventId,\n  )!;\n  const month = MONTHS[monthId];\n\n  useLayoutEffect(() => {\n    const target = navigationFocus.current;\n    if (!target) return;\n    navigationFocus.current = null;\n    (target === \"previous\" ? previousRef.current : nextRef.current)?.focus({\n      preventScroll: true,\n    });\n  }, [monthId]);\n\n  function activateEvent(event: SampleEvent) {\n    setSelectedDate(event.date);\n    setActiveEventId(event.id);\n  }\n\n  const eventItems = new Map<string, TidalCalendarEvent[]>();\n  SAMPLE_EVENTS.forEach((sample) => {\n    const item: TidalCalendarEvent =\n      sample.kind === \"link\"\n        ? {\n            kind: \"link\",\n            id: sample.id,\n            label: sample.label,\n            accessibleLabel: `${sample.label}, ${sample.timeLabel}`,\n            href: `#${detailId}`,\n            time: { label: sample.timeLabel, dateTime: sample.timeValue },\n            meta: sample.meta,\n            selected: sample.id === activeEventId,\n            onAction: () => activateEvent(sample),\n          }\n        : {\n            kind: \"button\",\n            id: sample.id,\n            label: sample.label,\n            accessibleLabel: `${sample.label}, ${sample.timeLabel}`,\n            time: { label: sample.timeLabel, dateTime: sample.timeValue },\n            meta: sample.meta,\n            selected: sample.id === activeEventId,\n            onAction: () => activateEvent(sample),\n          };\n    eventItems.set(sample.date, [...(eventItems.get(sample.date) ?? []), item]);\n  });\n\n  const days: readonly TidalCalendarDay[] = month.definitions.map(\n    ([date, label, monthName, outsideMonth]) => ({\n      date,\n      label,\n      accessibleLabel: `${monthName} ${label}, 2026`,\n      outsideMonth,\n      today: date === \"2026-10-14\",\n      events: eventItems.get(date),\n    }),\n  );\n\n  function showMonth(nextMonth: MonthId) {\n    navigationFocus.current = nextMonth === \"october\" ? \"next\" : \"previous\";\n    setMonthId(nextMonth);\n    setSelectedDate(nextMonth === \"october\" ? \"2026-10-14\" : \"2026-11-03\");\n    setActiveEventId(\n      nextMonth === \"october\" ? \"component-review\" : \"search-review\",\n    );\n  }\n\n  return (\n    <section\n      className=\"calendar-agenda-demo\"\n      aria-label=\"Calendar agenda preview\"\n    >\n      <TidalCalendarAgenda\n        title=\"Workspace agenda\"\n        description=\"Choose a date to view sample events.\"\n        visibleMonthLabel={month.label}\n        weekdays={WEEKDAYS}\n        days={days}\n        selectedDate={selectedDate}\n        previous={{\n          label: (\n            <>\n              <ChevronLeft size={15} aria-hidden=\"true\" /> Previous\n            </>\n          ),\n          accessibleLabel: \"Show October 2026\",\n          disabled: monthId === \"october\",\n          buttonRef: previousRef,\n          onAction: () => showMonth(\"october\"),\n        }}\n        next={{\n          label: (\n            <>\n              Next <ChevronRight size={15} aria-hidden=\"true\" />\n            </>\n          ),\n          accessibleLabel: \"Show November 2026\",\n          disabled: monthId === \"november\",\n          buttonRef: nextRef,\n          onAction: () => showMonth(\"november\"),\n        }}\n        onDateSelect={(day) => setSelectedDate(day.date)}\n        footer=\"Fictional dates and local React state only. No event is scheduled, saved, requested, or sent.\"\n      />\n\n      <article\n        id={detailId}\n        className=\"calendar-agenda-demo-detail\"\n        tabIndex={-1}\n      >\n        <span>Local event detail</span>\n        <h3>{activeEvent.label}</h3>\n        <p>{activeEvent.detail}</p>\n        <div>\n          <time dateTime={activeEvent.timeValue}>{activeEvent.timeLabel}</time>\n          <span>{activeEvent.meta}</span>\n        </div>\n      </article>\n    </section>\n  );\n}\n\nexport default function AgentExample() {\n  return (\n    <div className=\"tidal-scope\" data-theme=\"light\" dir=\"ltr\">\n      <style>{tidalExampleStyles}</style>\n      <CalendarAgendaDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/calendar-agenda.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "selectedDate",
      "type": "inferred-from-existing-demo",
      "initial": "\"2026-10-14\"",
      "setter": "setSelectedDate",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onDateSelect",
      "nativeType": "component callback",
      "callerFirst": true,
      "preventable": true,
      "observedResult": "The existing demo callback remains the source of truth; this example does not call a live service."
    }
  ],
  "nativeForm": {
    "participates": false,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "No form submit is present in the existing demo.",
    "resetBehavior": "No reset control is present in the existing demo.",
    "disabledBehavior": "Disabled controls remain excluded from successful native form submission.",
    "readOnlyBehavior": "Read-only controls retain their value and remain inspectable by the consumer."
  },
  "accessibility": {
    "labelSource": "Existing demo label or ARIA prop",
    "semantics": "Preserve the component's native element and the semantics demonstrated by the source fixture.",
    "keyboard": [
      "Tab and Shift+Tab",
      "Enter or Space for native activation",
      "Arrow keys where the component exposes a composite control"
    ],
    "focusReturn": "Preserve browser focus order and visible focus.",
    "errorAnnouncement": "No error announcement path is present in this demo; the consumer owns validation messaging.",
    "reducedMotion": "Verify prefers-reduced-motion with the existing component transition path.",
    "forcedColors": "Verify visible borders, text, and focus in forced-colors mode."
  },
  "responsive": {
    "widths": [
      320,
      390,
      768,
      1260
    ],
    "shortViewport": "Check the example at a 300px viewport height with keyboard or portal content visible.",
    "overflow": "The page should not gain horizontal overflow; component-local scrolling must remain intentional.",
    "touchTargetMinPx": 44,
    "coarseInputFontPx": 16
  },
  "errors": [
    {
      "fixture": "Exercise the existing demo's error, empty, loading, or invalid fixture.",
      "visibleResult": "The consumer-visible result must remain explicit and must not be replaced by a silent console error.",
      "focusResult": "Focus must remain on the triggering control or move to the announced error according to the native pattern.",
      "ownership": "Consumer-owned sample state only; no network request or customer data is used."
    }
  ],
  "verification": {
    "commands": [
      "npx tsc --noEmit",
      "npx vite build"
    ],
    "lockfile": "Use the consumer project's committed lockfile.",
    "browser": [
      "Chromium 1260x800",
      "Chromium 390x844",
      "Keyboard and reduced-motion pass"
    ]
  },
  "validation": {
    "consumerFixture": {
      "tsc": "pass",
      "viteBuild": "pass",
      "resourceModel": "Generated usage plus only the component files and CSS delivered by the primary item and listed registry dependencies."
    },
    "registryArtifact": "server-gated"
  },
  "exceptions": []
}
