{
  "component": {
    "id": "faq-section",
    "name": "FAQ section",
    "tier": "pro",
    "exampleId": "faq-section",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/faq-section-demo.tsx",
    "exportName": "FaqSectionDemo",
    "sha256": "e35295d5b6499569a5e4733e9fa83d1b2644a6eec7cbc987c02609ad55e607b7",
    "helperImports": [],
    "directComponentImports": [
      "faq-section"
    ],
    "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/faq-section",
    "registryUrl": "https://tidalui.com/r/pro/faq-section.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/faq-section",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/faq-section",
      "registryUrl": "https://tidalui.com/r/pro/faq-section.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/faq-section.tsx",
    "exports": [
      "TidalFaqGroup",
      "TidalFaqSection"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/faq-section.css",
      "components/ui/accordion.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [
      "@tidal-pro/accordion"
    ],
    "additionalRegistry": [],
    "installClosure": [
      "accordion",
      "faq-section"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/faq-section.css",
      "components/ui/accordion.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/faq-section.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/faq-section-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { BookOpen, Braces, CreditCard, FolderOpen, Keyboard, LockKeyhole, Palette, RefreshCw, Users } from \"lucide-react\";\n\nimport { TidalFaqSection, type TidalFaqGroup } from \"./components/ui/faq-section\";\n\nimport \"./components/ui/faq-section.css\";\n\nimport \"./components/ui/accordion.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .faq-section-demo,\\n.tidal-scope .faq-section-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .faq-section-demo {\\n  width: 100%;\\n  min-width: 0;\\n  padding: clamp(10px, 3.2vw, 36px);\\n  color: var(--t-ink);\\n  background:\\n    linear-gradient(var(--t-border) 1px, transparent 1px),\\n    linear-gradient(90deg, var(--t-border) 1px, transparent 1px),\\n    var(--t-subtle);\\n  background-size: 27px 27px;\\n  border-radius: 24px;\\n  container: faq-demo / inline-size;\\n}\\n\\n.tidal-scope .faq-section-demo-shell {\\n  display: grid;\\n  width: 100%;\\n  max-width: 1180px;\\n  min-width: 0;\\n  gap: 12px;\\n  margin: 0 auto;\\n}\\n\\n.tidal-scope .faq-section-demo-status {\\n  min-height: 16px;\\n  margin: 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  text-align: center;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .faq-section-demo-note {\\n  width: 100%;\\n  max-width: 1120px;\\n  min-width: 0;\\n  margin: 0 auto;\\n  padding: 15px 17px;\\n  color: var(--t-ink);\\n  background: var(--t-surface);\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  scroll-margin-top: 16px;\\n}\\n\\n.tidal-scope .faq-section-demo-note > * {\\n  display: block;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .faq-section-demo-note > span {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 690;\\n  letter-spacing: 0.11em;\\n}\\n\\n.tidal-scope .faq-section-demo-note > strong {\\n  margin-top: 5px;\\n  font-size: 13px;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .faq-section-demo-note > p {\\n  margin: 4px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.6;\\n}\\n\\n@container faq-demo (max-width: 440px) {\\n  .tidal-scope .faq-section-demo {\\n    padding: 6px;\\n    background-size: 18px 18px;\\n    border-radius: 18px;\\n  }\\n}\\n.tidal-scope .faq-section-demo-link {\\n  display: inline-flex;\\n  min-width: 44px;\\n  min-height: 44px;\\n  max-width: 100%;\\n  align-items: center;\\n  padding-block: 8px;\\n  color: var(--t-ink);\\n  text-decoration: underline;\\n  text-underline-offset: 4px;\\n  overflow-wrap: anywhere;\\n}\";\n\ntype CategoryId = \"all\" | \"starting\" | \"workflow\" | \"access\";\n\nconst GROUPS: readonly TidalFaqGroup[] = [\n  {\n    id: \"starting\",\n    label: \"Getting started\",\n    description: \"Install, style, and test the first sample component.\",\n    questions: [\n      {\n        value: \"install\",\n        title: \"How do I install a component?\",\n        searchText: \"registry command files css styles dependency\",\n        icon: Braces,\n        answer: (\n          <div>\n            <p>\n              Copy the registry command from the component page and import its\n              listed stylesheets.\n            </p>\n            <a className=\"faq-section-demo-link\" href=\"#faq-demo-install-note\">\n              View installation note\n            </a>\n          </div>\n        ),\n      },\n      {\n        value: \"sample-data\",\n        title: \"Can I evaluate components with sample data?\",\n        searchText: \"demo fictional local preview backend account\",\n        icon: FolderOpen,\n        answer: (\n          <p>\n            Yes. TidalUI demos use clearly labelled fictional data and local\n            React state. Replace the supplied records and handlers with your own\n            application data when you integrate a component.\n          </p>\n        ),\n      },\n      {\n        value: \"keyboard\",\n        title: \"What keyboard checks should I run?\",\n        searchText: \"accessibility arrows home end tab enter space focus\",\n        icon: Keyboard,\n        answer: (\n          <p>\n            Test Tab order, visible focus, Enter and Space activation, then the\n            arrow, Home, and End behavior documented for the primitive. Repeat\n            the flow at a narrow width and with reduced motion enabled.\n          </p>\n        ),\n      },\n    ],\n  },\n  {\n    id: \"workflow\",\n    label: \"Project workflow\",\n    description: \"Keep component changes legible inside a product codebase.\",\n    questions: [\n      {\n        value: \"tokens\",\n        title: \"Can I change the visual tokens?\",\n        searchText: \"theme color radius typography monochrome css\",\n        icon: Palette,\n        answer: (\n          <p>\n            Yes. Apply your values through the documented Tidal scope tokens so\n            focus, contrast, and light or dark surfaces stay coordinated. Keep\n            the component's state selectors intact.\n          </p>\n        ),\n      },\n      {\n        value: \"updates\",\n        title: \"How should I review an update?\",\n        searchText: \"upgrade diff source behavior regression\",\n        icon: BookOpen,\n        answer: (\n          <p>\n            Read the source diff, repeat the component's native interaction\n            path, and verify the widths your product actually supports. Treat a\n            demo screenshot as visual evidence, not proof of your integration.\n          </p>\n        ),\n      },\n      {\n        value: \"state\",\n        title: \"Who owns requests and saved state?\",\n        searchText: \"network persistence storage server handlers controlled\",\n        icon: RefreshCw,\n        answer: (\n          <p>\n            Your application does. Reusable TidalUI components expose native\n            events and controlled values; consumers connect those requests,\n            persistence rules, and result messages.\n          </p>\n        ),\n      },\n    ],\n  },\n  {\n    id: \"access\",\n    label: \"Access and plans\",\n    description: \"Understand source access without implying a transaction.\",\n    questions: [\n      {\n        value: \"free-pro\",\n        title: \"What is the difference between Free and Pro items?\",\n        searchText: \"license registry source plan access\",\n        icon: CreditCard,\n        answer: (\n          <p>\n            Free items expose their public registry source. Pro pages show the\n            component contract and preview, while source access depends on the\n            product plan selected by the consumer. This sample does not sell or\n            unlock anything.\n          </p>\n        ),\n      },\n      {\n        value: \"team-use\",\n        title: \"Can a team share the installed source?\",\n        searchText: \"members workspace organization license\",\n        icon: Users,\n        answer: (\n          <p>\n            Follow the license attached to the source package and your own\n            repository access policy. This fictional FAQ does not grant or\n            change a license.\n          </p>\n        ),\n      },\n      {\n        value: \"credentials\",\n        title: \"Do the components need account credentials?\",\n        searchText: \"secret token password api authentication\",\n        icon: LockKeyhole,\n        answer: (\n          <p>\n            No credential is required to render a component. If your product\n            connects a service, keep secrets on your backend and pass only the\n            safe state and actions the interface needs.\n          </p>\n        ),\n      },\n    ],\n  },\n] as const;\n\nconst CATEGORY_OPTIONS = [\n  { id: \"all\", label: \"All\" },\n  { id: \"starting\", label: \"Start\" },\n  { id: \"workflow\", label: \"Workflow\" },\n  { id: \"access\", label: \"Access\" },\n] as const;\n\nexport function FaqSectionDemo() {\n  const [query, setQuery] = useState(\"\");\n  const [category, setCategory] = useState<CategoryId>(\"all\");\n  const [openQuestion, setOpenQuestion] = useState(\"sample-data\");\n  const [message, setMessage] = useState(\n    \"Showing all nine fictional questions. Sample data is open.\",\n  );\n\n  function resetView() {\n    setQuery(\"\");\n    setCategory(\"all\");\n    setOpenQuestion(\"sample-data\");\n    setMessage(\"FAQ sample reset. No account or request changed.\");\n  }\n\n  return (\n    <section className=\"faq-section-demo\" aria-label=\"FAQ section preview\">\n      <div className=\"faq-section-demo-shell\">\n        <TidalFaqSection\n          title=\"Frequently asked questions\"\n          summaryHint={null}\n          eyebrow={null}\n          description=\"Search the sample questions by topic.\"\n          groups={GROUPS}\n          value={openQuestion}\n          onValueChange={(nextValue) => {\n            setOpenQuestion(nextValue);\n            setMessage(\n              nextValue\n                ? \"A fictional FAQ answer was opened.\"\n                : \"The open FAQ answer was closed.\",\n            );\n          }}\n          search={{\n            value: query,\n            label: \"Search questions\",\n            placeholder: \"Search install, keyboard, access…\",\n            inputProps: { name: \"faq-search\", autoComplete: \"off\" },\n            onValueChange: (nextQuery) => {\n              setQuery(nextQuery);\n              setMessage(\n                nextQuery.trim()\n                  ? `Showing local FAQ matches for “${nextQuery.trim()}”.`\n                  : \"FAQ search cleared.\",\n              );\n            },\n          }}\n          category={{\n            value: category,\n            allId: \"all\",\n            label: \"Filter FAQ topics\",\n            options: CATEGORY_OPTIONS,\n            onValueChange: (nextCategory) => {\n              setCategory(nextCategory as CategoryId);\n              setMessage(\n                nextCategory === \"all\"\n                  ? \"Showing every fictional FAQ topic.\"\n                  : `Showing the ${GROUPS.find((group) => group.id === nextCategory)?.label ?? \"selected\"} topic.`,\n              );\n            },\n          }}\n          reset={{ label: \"Reset view\", onReset: resetView }}\n          emptyMessage=\"No fictional questions match those filters.\"\n          footer={\n            <span>Local preview. Search and filters stay in this page.</span>\n          }\n        />\n\n        <p className=\"faq-section-demo-status\" role=\"status\" aria-live=\"polite\">\n          {message}\n        </p>\n\n        <aside id=\"faq-demo-install-note\" className=\"faq-section-demo-note\">\n          <span>LOCAL INSTALLATION NOTE</span>\n          <strong>\n            Copy the command shown on the selected component page.\n          </strong>\n          <p>\n            This same-page destination demonstrates a real native FAQ link. It\n            does not install a package or change a project.\n          </p>\n        </aside>\n      </div>\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      <FaqSectionDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/faq-section.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "value",
      "type": "inferred-from-existing-demo",
      "initial": "\"sample-data\"",
      "setter": "setOpenQuestion",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "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": "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": []
}
