{
  "component": {
    "id": "empty-state-section",
    "name": "Empty state section",
    "tier": "pro",
    "exampleId": "empty-state-section",
    "access": "pro",
    "requiresAuthorization": true
  },
  "source": {
    "demoModule": "src/empty-state-section-demo.tsx",
    "exportName": "EmptyStateSectionDemo",
    "sha256": "4d4714334cd5b4b408497b74c6b4382ac01167416d6b4c2fa062cbdce3e937a7",
    "helperImports": [],
    "directComponentImports": [
      "empty-state-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/empty-state-section",
    "registryUrl": "https://tidalui.com/r/pro/empty-state-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/empty-state-section",
      "purpose": "component",
      "command": "npx shadcn@latest add @tidal-pro/empty-state-section",
      "registryUrl": "https://tidalui.com/r/pro/empty-state-section.json",
      "access": "pro",
      "sourceDelivery": "server-gated",
      "requiresAuthorization": true
    }
  ],
  "imports": {
    "componentPath": "components/ui/empty-state-section.tsx",
    "exports": [
      "TidalEmptyStateAction",
      "TidalEmptyStateSection",
      "TidalEmptyStateVariant"
    ],
    "stylesheets": [
      "components/ui/tidal.css",
      "components/ui/empty-state-section.css"
    ],
    "scopeClass": "tidal-scope"
  },
  "dependencies": {
    "npm": [],
    "registry": [],
    "additionalRegistry": [],
    "installClosure": [
      "empty-state-section"
    ],
    "css": [
      "components/ui/tidal.css",
      "components/ui/empty-state-section.css"
    ],
    "demoCss": [],
    "consumerOwned": [
      "react",
      "react-dom"
    ]
  },
  "files": {
    "sourceFile": "/examples/empty-state-section.tsx",
    "demoStyles": [],
    "inlinedDemoStyles": [
      "src/empty-state-section-demo.css"
    ],
    "assets": []
  },
  "example": {
    "language": "tsx",
    "source": "\"use client\";\n\nimport \"./components/ui/tidal.css\";\n\nimport { useId, useLayoutEffect, useMemo, useRef, useState } from \"react\";\n\nimport { TidalEmptyStateSection, type TidalEmptyStateAction, type TidalEmptyStateVariant } from \"./components/ui/empty-state-section\";\n\nimport \"./components/ui/empty-state-section.css\";\n\n\n\nconst tidalExampleStyles = \".tidal-scope .empty-section-demo,\\n.tidal-scope .empty-section-demo * {\\n  box-sizing: border-box;\\n}\\n\\n.tidal-scope .empty-section-demo {\\n  display: grid;\\n  width: 100%;\\n  max-width: 1120px;\\n  min-width: 0;\\n  gap: 16px;\\n  color: var(--t-ink);\\n  container: empty-section-demo / inline-size;\\n}\\n\\n.tidal-scope .empty-section-demo-controls {\\n  display: grid;\\n  width: min(100%, 620px);\\n  min-width: 0;\\n  grid-template-columns: repeat(4, minmax(0, 1fr));\\n  gap: 6px;\\n  padding: 6px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 14px;\\n  background: var(--t-subtle);\\n}\\n\\n.tidal-scope .empty-section-demo-controls button {\\n  min-width: 0;\\n  min-height: 44px;\\n  padding: 8px 10px;\\n  border: 1px solid transparent;\\n  border-radius: 9px;\\n  background: transparent;\\n  color: var(--t-muted);\\n  font: inherit;\\n  font-size: 11px;\\n  font-weight: 650;\\n  line-height: 1.35;\\n  overflow-wrap: anywhere;\\n  cursor: pointer;\\n  transition:\\n    background 160ms,\\n    color 160ms,\\n    border-color 160ms,\\n    transform 140ms var(--t-ease-out);\\n}\\n\\n.tidal-scope .empty-section-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 .empty-section-demo-controls button:hover {\\n  border-color: var(--t-border-strong);\\n}\\n\\n.tidal-scope .empty-section-demo-controls button:active {\\n  transform: scale(0.98);\\n}\\n\\n.tidal-scope .empty-section-demo-controls button:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .empty-section-demo-notes {\\n  display: grid;\\n  grid-template-columns: repeat(2, minmax(0, 1fr));\\n  gap: 10px;\\n  min-width: 0;\\n}\\n\\n.tidal-scope .empty-section-demo-notes article {\\n  min-width: 0;\\n  padding: 14px 16px;\\n  border: 1px solid var(--t-border);\\n  border-radius: 10px;\\n  background: var(--t-surface);\\n  scroll-margin-block: 18px;\\n}\\n\\n.tidal-scope .empty-section-demo-notes article:focus-visible {\\n  outline: 2px solid var(--t-accent);\\n  outline-offset: 3px;\\n}\\n\\n.tidal-scope .empty-section-demo-notes strong {\\n  display: block;\\n  font-size: 11px;\\n  font-weight: 680;\\n  line-height: 1.4;\\n}\\n\\n.tidal-scope .empty-section-demo-notes p {\\n  margin: 5px 0 0;\\n  color: var(--t-muted);\\n  font-size: 11px;\\n  line-height: 1.55;\\n  overflow-wrap: anywhere;\\n}\\n\\n@container empty-section-demo (max-width: 520px) {\\n  .tidal-scope .empty-section-demo-controls {\\n    grid-template-columns: repeat(2, minmax(0, 1fr));\\n  }\\n\\n  .tidal-scope .empty-section-demo-notes {\\n    grid-template-columns: minmax(0, 1fr);\\n  }\\n}\\n\\n@media (hover: none) and (pointer: coarse) {\\n  .tidal-scope .empty-section-demo-controls button {\\n    font-size: 16px;\\n  }\\n}\\n\\n@media (prefers-reduced-motion: reduce) {\\n  .tidal-scope .empty-section-demo-controls button {\\n    transition: none;\\n  }\\n}\";\n\nconst VARIANTS: readonly { id: TidalEmptyStateVariant; label: string }[] = [\n  { id: \"blank\", label: \"Blank\" },\n  { id: \"no-results\", label: \"No results\" },\n  { id: \"error\", label: \"Error\" },\n  { id: \"permission\", label: \"Permission\" },\n];\n\nconst COPY: Record<\n  TidalEmptyStateVariant,\n  { title: string; description: string; detailLabel: string }\n> = {\n  blank: {\n    title: \"Start with a first project\",\n    description:\n      \"Prepare a local draft or review how this empty view behaves before connecting product data.\",\n    detailLabel: \"Local drafts\",\n  },\n  \"no-results\": {\n    title: \"No projects match this query\",\n    description:\n      \"The fictional filter is active. Clear it locally to return to the blank workspace sample.\",\n    detailLabel: \"Sample query\",\n  },\n  error: {\n    title: \"The sample view could not load\",\n    description:\n      \"This is a rendered error state. Retry only increments a local preview counter and makes no request.\",\n    detailLabel: \"Local retries\",\n  },\n  permission: {\n    title: \"You need access to this view\",\n    description:\n      \"Read the local access note or acknowledge it in this preview. No permission or account changes.\",\n    detailLabel: \"Preview status\",\n  },\n};\n\nexport function EmptyStateSectionDemo() {\n  const generatedId = useId().replace(/:/g, \"\");\n  const behaviorNoteId = `empty-demo-${generatedId}-behavior`;\n  const permissionNoteId = `empty-demo-${generatedId}-permission`;\n  const [variant, setVariant] = useState<TidalEmptyStateVariant>(\"blank\");\n  const [drafts, setDrafts] = useState(0);\n  const [retries, setRetries] = useState(0);\n  const [permissionAcknowledged, setPermissionAcknowledged] = useState(false);\n  const [query, setQuery] = useState(\"status:blocked\");\n  const [message, setMessage] = useState(\n    \"Blank workspace sample selected. Nothing has been created.\",\n  );\n  const blankControlRef = useRef<HTMLButtonElement>(null);\n  const noResultsControlRef = useRef<HTMLButtonElement>(null);\n  const errorControlRef = useRef<HTMLButtonElement>(null);\n  const permissionControlRef = useRef<HTMLButtonElement>(null);\n  const pendingVariantFocus = useRef<TidalEmptyStateVariant | null>(null);\n\n  useLayoutEffect(() => {\n    if (pendingVariantFocus.current !== variant) return;\n    pendingVariantFocus.current = null;\n    const target = {\n      blank: blankControlRef.current,\n      \"no-results\": noResultsControlRef.current,\n      error: errorControlRef.current,\n      permission: permissionControlRef.current,\n    }[variant];\n    target?.focus({ preventScroll: true });\n  }, [permissionAcknowledged, variant]);\n\n  const actions = useMemo<readonly TidalEmptyStateAction[]>(() => {\n    if (variant === \"blank\") {\n      return [\n        {\n          kind: \"button\",\n          id: \"prepare-draft\",\n          label: \"Prepare local draft\",\n          variant: \"primary\",\n          icon: <span>+</span>,\n          onAction: () => {\n            setDrafts((count) => count + 1);\n            setMessage(\n              \"A sample draft was prepared in memory. No project or account was created.\",\n            );\n          },\n        },\n        {\n          kind: \"link\",\n          id: \"review-behavior\",\n          label: \"Review local behavior\",\n          href: `#${behaviorNoteId}`,\n          icon: <span>↗</span>,\n          linkProps: {\n            onClick: () =>\n              setMessage(\"The in-page behavior note was selected.\"),\n          },\n        },\n      ];\n    }\n\n    if (variant === \"no-results\") {\n      return [\n        {\n          kind: \"button\",\n          id: \"clear-query\",\n          label: \"Clear sample query\",\n          variant: \"primary\",\n          icon: <span>×</span>,\n          onAction: () => {\n            setQuery(\"\");\n            pendingVariantFocus.current = \"blank\";\n            setVariant(\"blank\");\n            setMessage(\n              \"The fictional query was cleared. The blank sample is visible.\",\n            );\n          },\n        },\n      ];\n    }\n\n    if (variant === \"error\") {\n      return [\n        {\n          kind: \"button\",\n          id: \"retry-preview\",\n          label: \"Retry local preview\",\n          variant: \"primary\",\n          icon: <span>↻</span>,\n          onAction: () => {\n            setRetries((count) => count + 1);\n            setMessage(\n              \"The retry counter changed locally. No server or service was contacted.\",\n            );\n          },\n        },\n        {\n          kind: \"link\",\n          id: \"error-note\",\n          label: \"Read behavior note\",\n          href: `#${behaviorNoteId}`,\n        },\n      ];\n    }\n\n    return [\n      {\n        kind: \"link\",\n        id: \"access-note\",\n        label: \"Read access note\",\n        href: `#${permissionNoteId}`,\n        variant: \"primary\",\n        icon: <span>↗</span>,\n        linkProps: {\n          onClick: () => setMessage(\"The in-page access note was selected.\"),\n        },\n      },\n      {\n        kind: \"button\",\n        id: \"acknowledge\",\n        label: permissionAcknowledged\n          ? \"Acknowledged locally\"\n          : \"Acknowledge locally\",\n        disabled: permissionAcknowledged,\n        onAction: () => {\n          pendingVariantFocus.current = \"permission\";\n          setPermissionAcknowledged(true);\n          setMessage(\n            \"The sample note was acknowledged locally. No permission changed.\",\n          );\n        },\n      },\n    ];\n  }, [behaviorNoteId, permissionAcknowledged, permissionNoteId, variant]);\n\n  const activeCopy = COPY[variant];\n  const detail =\n    variant === \"blank\"\n      ? `${drafts} prepared in memory`\n      : variant === \"no-results\"\n        ? query || \"No query\"\n        : variant === \"error\"\n          ? `${retries} local ${retries === 1 ? \"retry\" : \"retries\"}`\n          : permissionAcknowledged\n            ? \"Acknowledged locally\"\n            : \"No access granted\";\n\n  function selectVariant(nextVariant: TidalEmptyStateVariant) {\n    setVariant(nextVariant);\n    if (nextVariant === \"no-results\" && !query) setQuery(\"status:blocked\");\n    setMessage(\n      `${VARIANTS.find((item) => item.id === nextVariant)?.label ?? \"State\"} sample selected. Changes remain local.`,\n    );\n  }\n\n  return (\n    <section\n      className=\"empty-section-demo\"\n      aria-label=\"Empty state section preview\"\n    >\n      <div\n        className=\"empty-section-demo-controls\"\n        role=\"group\"\n        aria-label=\"Choose empty state sample\"\n      >\n        {VARIANTS.map((item) => (\n          <button\n            key={item.id}\n            ref={\n              item.id === \"blank\"\n                ? blankControlRef\n                : item.id === \"no-results\"\n                  ? noResultsControlRef\n                  : item.id === \"error\"\n                    ? errorControlRef\n                    : permissionControlRef\n            }\n            type=\"button\"\n            aria-pressed={variant === item.id}\n            onClick={() => selectVariant(item.id)}\n          >\n            {item.label}\n          </button>\n        ))}\n      </div>\n\n      <TidalEmptyStateSection\n        variant={variant}\n        title={activeCopy.title}\n        description={activeCopy.description}\n        detailLabel={activeCopy.detailLabel}\n        detail={detail}\n        actions={actions}\n        footer={\n          <span role=\"status\" aria-live=\"polite\">\n            {message}\n          </span>\n        }\n      />\n\n      <div className=\"empty-section-demo-notes\">\n        <article id={behaviorNoteId} tabIndex={-1}>\n          <strong>Local behavior note</strong>\n          <p>\n            Buttons in this preview update React state only. Links stay on this\n            page. No request, project, record, or stored result is created.\n          </p>\n        </article>\n        <article id={permissionNoteId} tabIndex={-1}>\n          <strong>Access note</strong>\n          <p>\n            Permission changes belong to the consuming product. This sample\n            cannot grant access, contact an administrator, or change an account.\n          </p>\n        </article>\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      <EmptyStateSectionDemo />\n    </div>\n  );\n}\n",
    "sourceFile": "/examples/empty-state-section.tsx",
    "fixtureData": "Existing demo fixture data only; replace with consumer-owned data before production use."
  },
  "controlledState": [
    {
      "prop": "variant",
      "type": "inferred-from-existing-demo",
      "initial": "\"blank\"",
      "setter": "setVariant",
      "proposalCanBeRejected": false
    }
  ],
  "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": "The existing error or alert path remains consumer-owned and should be announced by the rendered semantics.",
    "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": []
}
