{
  "component": {
    "id": "call-to-action-section",
    "name": "Call to action section",
    "tier": "pro",
    "exampleId": "call-to-action-section",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/call-to-action-section-demo.tsx",
    "exportName": "CallToActionSectionDemo",
    "sha256": "85de83bd8915a3796be5b13a8a363979033ba04a0f528e5b4d5fe6448cb65f19",
    "helperImports": [],
    "directComponentImports": [
      "call-to-action-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/call-to-action-section",
    "registryUrl": "https://tidalui.com/r/pro/call-to-action-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/call-to-action-section",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/call-to-action-section",
      "registryUrl": "https://tidalui.com/r/pro/call-to-action-section.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/call-to-action-section.tsx",
    "exports": [
      "TidalCallToAction",
      "TidalCallToActionSection"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/call-to-action-section.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "call-to-action-section"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/call-to-action-section.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/call-to-action-section.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/call-to-action-section-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "import \"./components/ui/tidal.css\";\n\nimport { useId, useMemo, useRef, useState } from \"react\";\n\nimport { TidalCallToActionSection, type TidalCallToAction } from \"./components/ui/call-to-action-section\";\n\nimport \"./components/ui/call-to-action-section.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .cta-demo,\\n.tidal-scope .cta-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .cta-demo {\\n  width: 100%;\\n  max-width: 1160px;\\n  min-width: 0;\\n  overflow: hidden;\\n  border: 1px solid var(--t-border);\\n  border-radius: 22px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  box-shadow: 0 34px 72px -56px #0000008f;\\n  container: cta-demo / inline-size;\\n}\\n\\n.tidal-scope .cta-demo-kicker {\\n  display: block;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 690;\\n  letter-spacing: 0.11em;\\n  line-height: 1.4;\\n  text-transform: uppercase;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .cta-demo-guide h3,\\n.tidal-scope .cta-demo-entries h3 {\\n  margin: 4px 0 0;\\n  color: var(--t-ink);\\n  font-size: 15px;\\n  font-weight: 640;\\n  letter-spacing: -0.025em;\\n  line-height: 1.3;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .cta-demo-stage {\\n  display: grid;\\n  gap: 14px;\\n  min-width: 0;\\n  padding: 24px;\\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: 22px 22px;\\n}\\n\\n.tidal-scope .cta-demo-lower {\\n  display: grid;\\n  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);\\n  gap: 14px;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .cta-demo-guide,\\n.tidal-scope .cta-demo-entries {\\n  min-width: 0;\\n  padding: 18px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 18px;\\n  background: var(--t-surface);\\n}\\n\\n.tidal-scope .cta-demo-guide:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .cta-demo-guide ol,\\n.tidal-scope .cta-demo-entries ol {\\n  margin: 15px 0 0;\\n  padding: 0;\\n  list-style: none;\\n}\\n\\n.tidal-scope .cta-demo-guide ol {\\n  counter-reset: guide;\\n}\\n\\n.tidal-scope .cta-demo-guide li {\\n  display: grid;\\n  grid-template-columns: 28px minmax(0, 1fr);\\n  align-items: center;\\n  gap: 9px;\\n  min-height: 40px;\\n  padding-block: 6px;\\n  border-top: 1px solid var(--t-border);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  counter-increment: guide;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .cta-demo-guide li::before {\\n  display: grid;\\n  width: 28px;\\n  height: 28px;\\n  place-items: center;\\n  border: 1px solid var(--t-border);\\n  border-radius: 7px;\\n  color: var(--t-ink);\\n  content: counter(guide, decimal-leading-zero);\\n  font-size: 11px;\\n  font-weight: 680;\\n}\\n\\n.tidal-scope .cta-demo-entries-head {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 14px;\\n}\\n\\n.tidal-scope .cta-demo-entries-head > div {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .cta-demo-entries-head button {\\n  min-width: 44px;\\n  min-height: 44px;\\n  padding: 8px 11px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n  cursor: pointer;\\n}\\n\\n.tidal-scope .cta-demo-entries-head button:disabled {\\n  opacity: 0.4;\\n  cursor: not-allowed;\\n}\\n\\n.tidal-scope .cta-demo-entries-head button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .cta-demo-entries li {\\n  display: flex;\\n  min-width: 0;\\n  align-items: center;\\n  gap: 10px;\\n  min-height: 42px;\\n  padding: 7px 0;\\n  border-top: 1px solid var(--t-border);\\n  animation: cta-demo-entry-in 320ms var(--t-ease-out) both;\\n}\\n\\n.tidal-scope .cta-demo-entries li > span {\\n  flex: none;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-variant-numeric: tabular-nums;\\n}\\n\\n.tidal-scope .cta-demo-entries li > strong {\\n  min-width: 0;\\n  font-size: 11px;\\n  font-weight: 620;\\n  line-height: 1.4;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .cta-demo-entries > p {\\n  min-height: 60px;\\n  margin: 15px 0 0;\\n  padding: 18px;\\n  border: 1px dashed var(--t-border);\\n  border-radius: 10px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  text-align: center;\\n}\\n\\n.tidal-scope .cta-demo-status {\\n  min-height: 35px;\\n  margin: 0;\\n  padding: 9px 12px;\\n  border-inline-start: 2px solid var(--t-ink);\\n  background: var(--t-surface);\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@keyframes cta-demo-entry-in {\\n  from {\\n    opacity: 0;\\n    transform: translateY(6px);\\n  }\\n  to {\\n    opacity: 1;\\n    transform: translateY(0);\\n  }\\n}\\n\\n@container cta-demo (max-width: 700px) {\\n  .tidal-scope .cta-demo-stage {\\n    padding: 16px;\\n  }\\n\\n  .tidal-scope .cta-demo-lower {\\n    grid-template-columns: 1fr;\\n  }\\n}\\n\\n@container cta-demo (max-width: 390px) {\\n  .tidal-scope .cta-demo-stage {\\n    padding: 10px;\\n  }\\n\\n  .tidal-scope .cta-demo-guide,\\n  .tidal-scope .cta-demo-entries {\\n    padding: 14px;\\n  }\\n\\n  .tidal-scope .cta-demo-entries-head button {\\n    font-size: 16px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .cta-demo-entries li {\\n    animation: none;\\n  }\\n}\";\n\nexport function CallToActionSectionDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const guideId = `cta-demo-${generatedId}-guide`;\n  const [briefs, setBriefs] = useState<readonly string[]>([]);\n  const [message, setMessage] = useState(\n    \"Choose the guide link or create a local sample brief.\",\n  );\n  const createRef = useRef<HTMLButtonElement>(null);\n\n  const actions = useMemo<readonly TidalCallToAction[]>(\n    () => [\n      {\n        kind: \"button\",\n        id: \"create-brief\",\n        label: \"Create local brief\",\n        variant: \"primary\",\n        icon: <span>+</span>,\n        actionRef: createRef,\n        onAction: () => {\n          const nextNumber = briefs.length + 1;\n          setBriefs((current) => [\n            ...current,\n            `Sample brief ${String(nextNumber).padStart(2, \"0\")}`,\n          ]);\n          setMessage(\n            `Sample brief ${String(nextNumber).padStart(2, \"0\")} added locally.`,\n          );\n        },\n      },\n      {\n        kind: \"link\",\n        id: \"read-guide\",\n        label: \"Read the brief guide\",\n        href: `#${guideId}`,\n        variant: \"secondary\",\n        icon: <span>↗</span>,\n        linkProps: {\n          onClick: () => setMessage(\"The in-page brief guide was selected.\"),\n        },\n      },\n    ],\n    [briefs.length, guideId],\n  );\n\n  function resetSample() {\n    setBriefs([]);\n    setMessage(\"The local brief list was cleared.\");\n    createRef.current?.focus({ preventScroll: true });\n  }\n\n  return (\n    <section className=\"cta-demo\" aria-label=\"Call to action section preview\">\n      <div className=\"cta-demo-stage\">\n        <TidalCallToActionSection\n          title=\"Create your project brief.\"\n          description=\"Add a sample brief or read the guide.\"\n          detail={`${briefs.length} local ${briefs.length === 1 ? \"brief\" : \"briefs\"}`}\n          detailLabel=\"Preview state\"\n          actions={actions}\n          footer=\"Local preview. Nothing is sent or saved.\"\n        />\n\n        <div className=\"cta-demo-lower\">\n          <article id={guideId} className=\"cta-demo-guide\" tabIndex={-1}>\n            <span className=\"cta-demo-kicker\">IN-PAGE GUIDE</span>\n            <h3>Brief checklist</h3>\n            <ol>\n              <li>Name the page outcome.</li>\n              <li>Choose one primary action.</li>\n              <li>List the evidence needed for review.</li>\n            </ol>\n          </article>\n\n          <section\n            className=\"cta-demo-entries\"\n            aria-labelledby={`cta-demo-${generatedId}-entries`}\n          >\n            <div className=\"cta-demo-entries-head\">\n              <div>\n                <span className=\"cta-demo-kicker\">LOCAL ENTRIES</span>\n                <h3 id={`cta-demo-${generatedId}-entries`}>Created briefs</h3>\n              </div>\n              <button\n                type=\"button\"\n                onClick={resetSample}\n                disabled={!briefs.length}\n              >\n                Clear\n              </button>\n            </div>\n            {briefs.length ? (\n              <ol>\n                {briefs.map((brief, index) => (\n                  <li key={`${brief}-${index}`}>\n                    <span>{String(index + 1).padStart(2, \"0\")}</span>\n                    <strong>{brief}</strong>\n                  </li>\n                ))}\n              </ol>\n            ) : (\n              <p>No local briefs yet.</p>\n            )}\n          </section>\n        </div>\n\n        <p className=\"cta-demo-status\" role=\"status\" aria-live=\"polite\">\n          {message}\n        </p>\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      <CallToActionSectionDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/call-to-action-section.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native 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": []
}
