{
  "component": {
    "id": "menubar",
    "name": "Menubar",
    "tier": "pro",
    "exampleId": "menubar",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/menubar-demo.tsx",
    "exportName": "MenubarDemo",
    "sha256": "d21784aaf53137175f0975bed33dabbd6adf3b894e8b11c7514eef9bf7a998f9",
    "helperImports": [],
    "directComponentImports": [
      "menubar"
    ],
    "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/menubar",
    "registryUrl": "https://tidalui.com/r/pro/menubar.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/menubar",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/menubar",
      "registryUrl": "https://tidalui.com/r/pro/menubar.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/menubar.tsx",
    "exports": [
      "TidalMenubar",
      "TidalMenubarCheckboxItem",
      "TidalMenubarContent",
      "TidalMenubarItem",
      "TidalMenubarLabel",
      "TidalMenubarLinkItem",
      "TidalMenubarMenu",
      "TidalMenubarRadioGroup",
      "TidalMenubarRadioItem",
      "TidalMenubarSeparator",
      "TidalMenubarTrigger"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/menubar.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "@radix-ui/react-menubar"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "menubar"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/menubar.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/menubar.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/menubar-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useState } from \"react\";\n\nimport { TidalMenubar, TidalMenubarCheckboxItem, TidalMenubarContent, TidalMenubarItem, TidalMenubarLabel, TidalMenubarLinkItem, TidalMenubarMenu, TidalMenubarRadioGroup, TidalMenubarRadioItem, TidalMenubarSeparator, TidalMenubarTrigger } from \"./components/ui/menubar\";\n\nimport \"./components/ui/menubar.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .menubar-demo,\\n.tidal-scope .menubar-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .menubar-demo {\\n  container: tidal-menubar-demo / inline-size;\\n  display: grid;\\n  width: min(100%, 980px);\\n  min-width: 0;\\n  gap: 22px;\\n  margin-inline: auto;\\n  padding: clamp(16px, 4vw, 42px);\\n  color: var(--t-ink);\\n}\\n\\n.tidal-scope .menubar-demo-heading {\\n  display: grid;\\n  min-width: 0;\\n  gap: 8px;\\n}\\n\\n.tidal-scope .menubar-demo-heading :is(h2, p),\\n.tidal-scope .menubar-demo-footer :is(p, span) {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .menubar-demo-heading h2 {\\n  font-size: clamp(27px, 5vw, 42px);\\n  font-weight: 570;\\n  letter-spacing: -0.05em;\\n  line-height: 1;\\n}\\n\\n.tidal-scope .menubar-demo-heading p,\\n.tidal-scope .menubar-demo-footer {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .menubar-demo-app {\\n  min-width: 0;\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  overflow: hidden;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .menubar-demo-rail {\\n  width: 100%;\\n  min-width: 0;\\n  padding: 8px;\\n  overflow-x: auto;\\n  scrollbar-width: thin;\\n}\\n\\n.tidal-scope .menubar-demo-document {\\n  display: grid;\\n  min-width: 0;\\n  gap: 20px;\\n  padding: clamp(20px, 5vw, 42px);\\n  border-top: 1px solid var(--t-border);\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .menubar-demo-document header {\\n  display: grid;\\n  min-width: 0;\\n  gap: 6px;\\n}\\n\\n.tidal-scope .menubar-demo-document :is(span, h3, strong, p, dl, dt, dd) {\\n  margin: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .menubar-demo-document header span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 700;\\n  letter-spacing: 0.1em;\\n  text-transform: uppercase;\\n}\\n\\n.tidal-scope .menubar-demo-document h3 {\\n  font-size: clamp(22px, 4vw, 34px);\\n  font-weight: 580;\\n  letter-spacing: -0.04em;\\n}\\n\\n.tidal-scope .menubar-demo-lines {\\n  display: grid;\\n  min-width: 0;\\n  gap: 10px;\\n}\\n\\n.tidal-scope .menubar-demo-lines section {\\n  display: grid;\\n  min-width: 0;\\n  gap: 5px;\\n  padding: 14px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope\\n  .menubar-demo-document[data-density=\\\"compact\\\"]\\n  .menubar-demo-lines\\n  section {\\n  gap: 2px;\\n  padding: 9px 12px;\\n}\\n\\n.tidal-scope .menubar-demo-lines strong {\\n  font-size: 12px;\\n}\\n\\n.tidal-scope .menubar-demo-lines p,\\n.tidal-scope .menubar-demo-document dd {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n}\\n\\n.tidal-scope .menubar-demo-document dl {\\n  display: grid;\\n  grid-template-columns: repeat(2, minmax(0, 1fr));\\n  gap: 8px;\\n}\\n\\n.tidal-scope .menubar-demo-document dl > div {\\n  display: grid;\\n  min-width: 0;\\n  gap: 3px;\\n  padding-top: 9px;\\n  border-top: 1px solid var(--t-border);\\n}\\n\\n.tidal-scope .menubar-demo-document dt {\\n  font-size: 11px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .menubar-demo-footer {\\n  display: grid;\\n  min-width: 0;\\n  gap: 4px;\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .menubar-demo-document,\\n  .tidal-scope .menubar-demo-lines section {\\n    transition: none;\\n  }\\n}\";\n\ntype Density = \"comfortable\" | \"compact\";\n\nexport function MenubarDemo({ theme = \"light\" }: { theme?: \"light\" | \"dark\" }) {\n  const demoId = useId().replace(/:/g, \"\");\n  const headingId = `${demoId}-draft-editor`;\n  const documentId = `${demoId}-document-details`;\n  const [openMenu, setOpenMenu] = useState(\"\");\n  const [sectionCount, setSectionCount] = useState(3);\n  const [showDetails, setShowDetails] = useState(true);\n  const [density, setDensity] = useState<Density>(\"comfortable\");\n  const [status, setStatus] = useState(\"The local draft is ready.\");\n\n  function resetDraft() {\n    setSectionCount(1);\n    setShowDetails(true);\n    setDensity(\"comfortable\");\n    setStatus(\"A new local draft replaced the sample.\");\n  }\n\n  return (\n    <section className=\"menubar-demo\" aria-labelledby={headingId}>\n      <header className=\"menubar-demo-heading\">\n        <h2 id={headingId}>Draft editor</h2>\n        <p>Use the menus to change this local document view.</p>\n      </header>\n\n      <div className=\"menubar-demo-app\">\n        <div className=\"menubar-demo-rail\">\n          <TidalMenubar\n            aria-label=\"Document commands\"\n            value={openMenu}\n            onValueChange={setOpenMenu}\n            theme={theme}\n          >\n            <TidalMenubarMenu value=\"file\">\n              <TidalMenubarTrigger>File</TidalMenubarTrigger>\n              <TidalMenubarContent aria-label=\"File menu\">\n                <TidalMenubarLabel>Draft</TidalMenubarLabel>\n                <TidalMenubarItem textValue=\"New draft\" onSelect={resetDraft}>\n                  <span className=\"tidal-menubar-item-copy\">New draft</span>\n                </TidalMenubarItem>\n                <TidalMenubarItem\n                  textValue=\"Review section count\"\n                  onSelect={() =>\n                    setStatus(\n                      `This local draft has ${sectionCount} ${\n                        sectionCount === 1 ? \"section\" : \"sections\"\n                      }.`,\n                    )\n                  }\n                >\n                  <span className=\"tidal-menubar-item-copy\">\n                    Review section count\n                  </span>\n                </TidalMenubarItem>\n                <TidalMenubarLinkItem\n                  textValue=\"Jump to document\"\n                  anchorProps={{ href: `#${documentId}` }}\n                >\n                  <span className=\"tidal-menubar-item-copy\">\n                    Jump to document\n                  </span>\n                </TidalMenubarLinkItem>\n              </TidalMenubarContent>\n            </TidalMenubarMenu>\n\n            <TidalMenubarMenu value=\"edit\">\n              <TidalMenubarTrigger>Edit</TidalMenubarTrigger>\n              <TidalMenubarContent aria-label=\"Edit menu\">\n                <TidalMenubarItem\n                  textValue=\"Duplicate section\"\n                  onSelect={() => {\n                    setSectionCount((count) => count + 1);\n                    setStatus(\"A section was duplicated in the local draft.\");\n                  }}\n                >\n                  <span className=\"tidal-menubar-item-copy\">\n                    Duplicate section\n                  </span>\n                </TidalMenubarItem>\n                <TidalMenubarItem\n                  textValue=\"Undo duplicate\"\n                  disabled={sectionCount <= 1}\n                  onSelect={() => {\n                    setSectionCount((count) => Math.max(1, count - 1));\n                    setStatus(\"The latest local section was removed.\");\n                  }}\n                >\n                  <span className=\"tidal-menubar-item-copy\">\n                    Undo duplicate\n                  </span>\n                </TidalMenubarItem>\n                <TidalMenubarSeparator />\n                <TidalMenubarItem disabled textValue=\"Paste from system\">\n                  <span className=\"tidal-menubar-item-copy\">\n                    Paste from system\n                  </span>\n                </TidalMenubarItem>\n              </TidalMenubarContent>\n            </TidalMenubarMenu>\n\n            <TidalMenubarMenu value=\"view\">\n              <TidalMenubarTrigger>View</TidalMenubarTrigger>\n              <TidalMenubarContent aria-label=\"View menu\">\n                <TidalMenubarCheckboxItem\n                  checked={showDetails}\n                  onCheckedChange={(checked) => {\n                    setShowDetails(checked === true);\n                    setStatus(\n                      checked === true\n                        ? \"Document details are visible.\"\n                        : \"Document details are hidden.\",\n                    );\n                  }}\n                >\n                  Show details\n                </TidalMenubarCheckboxItem>\n                <TidalMenubarSeparator />\n                <TidalMenubarLabel>Density</TidalMenubarLabel>\n                <TidalMenubarRadioGroup\n                  value={density}\n                  onValueChange={(nextDensity) => {\n                    if (\n                      nextDensity === \"comfortable\" ||\n                      nextDensity === \"compact\"\n                    ) {\n                      setDensity(nextDensity);\n                      setStatus(`${nextDensity} density is active.`);\n                    }\n                  }}\n                >\n                  <TidalMenubarRadioItem value=\"comfortable\">\n                    Comfortable\n                  </TidalMenubarRadioItem>\n                  <TidalMenubarRadioItem value=\"compact\">\n                    Compact\n                  </TidalMenubarRadioItem>\n                </TidalMenubarRadioGroup>\n              </TidalMenubarContent>\n            </TidalMenubarMenu>\n          </TidalMenubar>\n        </div>\n\n        <article\n          className=\"menubar-demo-document\"\n          id={documentId}\n          data-density={density}\n        >\n          <header>\n            <span>Local draft</span>\n            <h3>Project handoff</h3>\n          </header>\n          <div\n            className=\"menubar-demo-lines\"\n            aria-label={`${sectionCount} sections`}\n          >\n            {Array.from({ length: sectionCount }, (_, index) => (\n              <section key={index}>\n                <strong>Section {index + 1}</strong>\n                <p>Review notes and next steps for the project team.</p>\n              </section>\n            ))}\n          </div>\n          {showDetails ? (\n            <dl>\n              <div>\n                <dt>Sections</dt>\n                <dd>{sectionCount}</dd>\n              </div>\n              <div>\n                <dt>Density</dt>\n                <dd>{density}</dd>\n              </div>\n            </dl>\n          ) : null}\n        </article>\n      </div>\n\n      <footer className=\"menubar-demo-footer\">\n        <p role=\"status\" aria-live=\"polite\">\n          {status}\n        </p>\n        <span>Sample changes stay on this page.</span>\n      </footer>\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      <MenubarDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/menubar.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"\"",
      "setter": "setOpenMenu",
      "proposalCanBeRejected": false
    },
    {
      "prop": "checked",
      "type": "inferred-from-existing-demo",
      "initial": "true",
      "setter": "setShowDetails",
      "proposalCanBeRejected": false
    },
    {
      "prop": "density",
      "type": "inferred-from-existing-demo",
      "initial": "\"comfortable\"",
      "setter": "setDensity",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onCheckedChange",
      "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."
    },
    {
      "name": "onSelect",
      "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."
    },
    {
      "name": "onValueChange",
      "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": true,
    "names": [],
    "expectedFormData": {},
    "submitBehavior": "The existing demo's native form callback receives the submit event.",
    "resetBehavior": "Native reset behavior remains available where the demo renders a resettable control.",
    "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": "Verify focus returns to the invoking control after dismissal.",
    "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": "No error fixture is exposed by the existing demo; inject a consumer-owned failure state before production use.",
      "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": []
}
