{
  "component": {
    "id": "text-reveal",
    "name": "Text reveal",
    "tier": "pro",
    "exampleId": "text-reveal",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/text-reveal-demo.tsx",
    "exportName": "TextRevealDemo",
    "sha256": "04dbfbb978c64fe0e617bdb707aca5d9d7485bea563f083696910c45b3331e7f",
    "helperImports": [],
    "directComponentImports": [
      "text-reveal"
    ],
    "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/text-reveal",
    "registryUrl": "https://tidalui.com/r/pro/text-reveal.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/text-reveal",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/text-reveal",
      "registryUrl": "https://tidalui.com/r/pro/text-reveal.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/text-reveal.tsx",
    "exports": [
      "TidalTextReveal",
      "TidalTextRevealMode"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/text-reveal.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [
      "lucide-react"
    ],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "text-reveal"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/text-reveal.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/text-reveal.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/text-reveal-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useState } from \"react\";\n\nimport { RotateCcw } from \"lucide-react\";\n\nimport { TidalTextReveal, type TidalTextRevealMode } from \"./components/ui/text-reveal\";\n\nimport \"./components/ui/text-reveal.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .text-reveal-demo {\\n  width: 100%;\\n  max-width: 1040px;\\n  min-width: 0;\\n  overflow: hidden;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-card);\\n  background: var(--t-subtle);\\n  color: var(--t-ink);\\n  box-shadow: 0 24px 54px -40px #00000066;\\n  container-type: inline-size;\\n}\\n\\n.tidal-scope .text-reveal-demo,\\n.tidal-scope .text-reveal-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .text-reveal-demo-layout {\\n  display: grid;\\n  grid-template-columns: minmax(0, 1fr);\\n  min-width: 0;\\n}\\n\\n\\n.tidal-scope .text-reveal-demo-stage-head {\\n  display: flex;\\n  align-items: center;\\n  justify-content: space-between;\\n  gap: 12px;\\n}\\n\\n.tidal-scope .text-reveal-demo-stage {\\n  display: grid;\\n  min-width: 0;\\n  gap: 21px;\\n  padding: 26px;\\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 .text-reveal-demo-stage-head {\\n  align-items: flex-start;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head > div {\\n  min-width: 0;\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head p {\\n  margin: 5px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.5;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head button,\\n.tidal-scope .text-reveal-demo-controls button {\\n  min-width: 44px;\\n  min-height: 44px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-control);\\n  background: var(--t-surface);\\n  color: var(--t-ink);\\n  font: inherit;\\n  cursor: pointer;\\n  transition:\\n    background 160ms,\\n    border-color 160ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head button {\\n  display: inline-flex;\\n  flex: none;\\n  align-items: center;\\n  justify-content: center;\\n  gap: 7px;\\n  padding: 8px 12px;\\n  font-size: 11px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head button:hover,\\n.tidal-scope .text-reveal-demo-controls button:hover {\\n  background: var(--t-wash);\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head button:active,\\n.tidal-scope .text-reveal-demo-controls button:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .text-reveal-demo-stage-head button:focus-visible,\\n.tidal-scope .text-reveal-demo-controls button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .text-reveal-demo-sample {\\n  min-width: 0;\\n  padding: 29px 28px 31px;\\n  border: 1px solid var(--t-border);\\n  border-radius: var(--t-radius-card);\\n  background: var(--t-surface);\\n  box-shadow: 0 14px 30px -26px #0000005c;\\n}\\n\\n.tidal-scope .text-reveal-demo-sample-label {\\n  display: block;\\n  margin-bottom: 19px;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  font-weight: 650;\\n  letter-spacing: 0.12em;\\n}\\n\\n.tidal-scope .text-reveal-demo-sample h2 {\\n  max-width: 660px;\\n  font-size: clamp(29px, 5.3cqi, 56px);\\n  font-weight: 500;\\n  letter-spacing: -0.06em;\\n  line-height: 0.99;\\n  text-wrap: balance;\\n}\\n\\n.tidal-scope .text-reveal-demo-sample > p {\\n  max-width: 470px;\\n  margin: 19px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.65;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .text-reveal-demo-controls {\\n  display: grid;\\n  grid-template-columns: repeat(3, minmax(0, 1fr));\\n  gap: 8px;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .text-reveal-demo-controls button {\\n  display: grid;\\n  min-width: 0;\\n  align-content: center;\\n  justify-items: start;\\n  gap: 3px;\\n  padding: 9px 12px;\\n  text-align: start;\\n}\\n\\n.tidal-scope .text-reveal-demo-controls button[aria-pressed=\\\"true\\\"] {\\n  border-color: var(--t-ink);\\n  background: var(--t-ink);\\n  color: var(--t-surface);\\n}\\n\\n.tidal-scope .text-reveal-demo-controls span,\\n.tidal-scope .text-reveal-demo-controls small {\\n  min-width: 0;\\n  overflow-wrap: anywhere;\\n}\\n\\n.tidal-scope .text-reveal-demo-controls span {\\n  font-size: 11px;\\n  font-weight: 650;\\n}\\n\\n.tidal-scope .text-reveal-demo-controls small {\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.35;\\n}\\n\\n.tidal-scope .text-reveal-demo-controls button[aria-pressed=\\\"true\\\"] small {\\n  color: color-mix(in srgb, var(--t-surface) 78%, var(--t-ink));\\n}\\n\\n.tidal-scope .text-reveal-demo-status {\\n  margin: -5px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.45;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container (max-width: 760px) {\\n  .tidal-scope .text-reveal-demo-layout {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@container (max-width: 500px) {\\n  .tidal-scope .text-reveal-demo-stage {\\n    gap: 17px;\\n    padding: 14px;\\n    background-size: 18px 18px;\\n  }\\n\\n  .tidal-scope .text-reveal-demo-stage-head {\\n    display: block;\\n  }\\n\\n  .tidal-scope .text-reveal-demo-stage-head button {\\n    width: 100%;\\n    margin-top: 13px;\\n  }\\n\\n  .tidal-scope .text-reveal-demo-sample {\\n    padding: 23px 19px 25px;\\n  }\\n\\n  .tidal-scope .text-reveal-demo-sample h2 {\\n    font-size: 31px;\\n  }\\n\\n  .tidal-scope .text-reveal-demo-controls {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .text-reveal-demo-stage-head button,\\n  .tidal-scope .text-reveal-demo-controls button {\\n    transition: none;\\n    transform: none;\\n  }\\n}\";\n\nconst MODES: readonly TidalTextRevealMode[] = [\"words\", \"lines\", \"simple\"];\n\nconst MODE_COPY: Record<TidalTextRevealMode, { label: string; note: string }> =\n  {\n    words: { label: \"Words\", note: \"Each word takes its place.\" },\n    lines: { label: \"Lines\", note: \"Line breaks become the rhythm.\" },\n    simple: { label: \"Simple\", note: \"One quiet surface reveal.\" },\n  };\n\nconst REVEAL_COPY: Record<TidalTextRevealMode, string> = {\n  words: \"Make the next decision easier to see.\",\n  lines: \"Make the next decision\\neasier to see.\",\n  simple: \"Make the next decision easier to see.\",\n};\n\nexport function TextRevealDemo() {\n  const [mode, setMode] = useState<TidalTextRevealMode>(\"words\");\n  const [replayKey, setReplayKey] = useState(0);\n  const [replayCount, setReplayCount] = useState(0);\n\n  function chooseMode(nextMode: TidalTextRevealMode) {\n    setMode(nextMode);\n    setReplayKey((value) => value + 1);\n  }\n\n  function replay() {\n    setReplayKey((value) => value + 1);\n    setReplayCount((value) => value + 1);\n  }\n\n  return (\n    <section className=\"text-reveal-demo\" aria-label=\"Text reveal preview\">\n      <div className=\"text-reveal-demo-layout\">\n        <div className=\"text-reveal-demo-stage\">\n          <div className=\"text-reveal-demo-stage-head\">\n            <div>\n              <p>Choose a staging mode, then replay the entrance.</p>\n            </div>\n            <button type=\"button\" onClick={replay}>\n              <RotateCcw size={14} aria-hidden=\"true\" />\n              Replay\n            </button>\n          </div>\n\n          <div className=\"text-reveal-demo-sample\">\n            <span className=\"text-reveal-demo-sample-label\">\n              CURRENT MODE / {mode}\n            </span>\n            <TidalTextReveal\n              as=\"h2\"\n              mode={mode}\n              replayKey={replayKey}\n              durationMs={420}\n              staggerMs={mode === \"words\" ? 34 : 54}\n            >\n              {REVEAL_COPY[mode]}\n            </TidalTextReveal>\n            <p>\n              A semantic heading with a visual entrance that can stop at its\n              final readable state.\n            </p>\n          </div>\n\n          <div\n            className=\"text-reveal-demo-controls\"\n            role=\"group\"\n            aria-label=\"Reveal mode\"\n          >\n            {MODES.map((option) => (\n              <button\n                key={option}\n                type=\"button\"\n                aria-pressed={mode === option}\n                onClick={() => chooseMode(option)}\n              >\n                <span>{MODE_COPY[option].label}</span>\n                <small>{MODE_COPY[option].note}</small>\n              </button>\n            ))}\n          </div>\n\n          <p className=\"text-reveal-demo-status\" aria-live=\"polite\">\n            {MODE_COPY[mode].label} staging selected. Replay is local and\n            finite.\n            {replayCount > 0 ? ` Replay ${replayCount} requested.` : \"\"}\n          </p>\n        </div>\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      <TextRevealDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/text-reveal.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "mode",
      "type": "inferred-from-existing-demo",
      "initial": "\"words\"",
      "setter": "setMode",
      "proposalCanBeRejected": false
    },
    {
      "prop": "replayKey",
      "type": "inferred-from-existing-demo",
      "initial": "0",
      "setter": "setReplayKey",
      "proposalCanBeRejected": false
    }
  ],
  "events": [
    {
      "name": "onClick",
      "nativeType": "React synthetic event or native callback",
      "callerFirst": true,
      "preventable": false,
      "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": "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": "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": []
}
