{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "analytics-20",
  "type": "registry:block",
  "description": "Email-style weekly digest card with a narrative summary using highlighted figures, stat row, biggest movers and CTAs.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/analytics/analytics-20.tsx",
      "content": "import {\n  ArrowRight,\n  Sparkles,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\n\nimport { CounterNumber } from \"@/registry/designali/ui/counter-number\"\n\nconst highlights = [\n  { label: \"Revenue\", value: 212480, prefix: \"$\", suffix: \"\", decimals: 0, change: \"+18%\", good: true },\n  { label: \"Orders\", value: 4906, prefix: \"\", suffix: \"\", decimals: 0, change: \"+11%\", good: true },\n  { label: \"Refund rate\", value: 6.4, prefix: \"\", suffix: \"%\", decimals: 1, change: \"+1.2 pts\", good: false },\n]\n\nconst movers = [\n  { item: \"Designali Icons Pro\", note: \"Top seller after Thursday launch\", delta: \"+214%\" },\n  { item: \"Portfolio Simple template\", note: \"Featured in the Sunday newsletter\", delta: \"+96%\" },\n  { item: \"Dalim UI kit\", note: \"Older kit, drop-off as expected\", delta: \"-38%\" },\n]\n\nexport default function Analytics20() {\n  return (\n    <section className=\"w-full bg-background py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-3xl px-6\">\n        <div className=\"border bg-card\">\n          <div className=\"flex items-center justify-between border-b px-6 py-4 md:px-10\">\n            <span className=\"inline-flex items-center gap-2 text-xs text-muted-foreground\">\n              <Sparkles className=\"size-3.5\" />\n              Weekly digest\n            </span>\n            <span className=\"text-xs text-muted-foreground\">Nov 9 – Nov 15, 2026</span>\n          </div>\n\n          <div className=\"px-6 py-10 md:px-10\">\n            <h2 className=\"text-2xl leading-snug font-medium tracking-tight md:text-3xl\">\n              Your best week since launch, carried by one icon pack.\n            </h2>\n            <p className=\"mt-6 text-base leading-8 text-muted-foreground\">\n              designali.com sold{\" \"}\n              <mark className=\"bg-primary/15 px-1 text-foreground dark:bg-primary/20\">\n                $212,480\n              </mark>{\" \"}\n              this week, up 18% on last week. Almost a third of that came from\n              the{\" \"}\n              <mark className=\"bg-chart-2/20 px-1 text-foreground\">Designali Icons Pro</mark>,\n              which launched on Thursday. Refunds ticked up to{\" \"}\n              <mark className=\"bg-primary/15 px-1 text-foreground dark:bg-primary/20\">6.4%</mark>,\n              mostly duplicate license purchases.\n            </p>\n\n            <dl className=\"mt-10 grid grid-cols-1 gap-px border bg-border sm:grid-cols-3\">\n              {highlights.map((h) => (\n                <div key={h.label} className=\"bg-card p-5\">\n                  <dt className=\"text-xs text-muted-foreground\">{h.label}</dt>\n                  <dd className=\"mt-2\">\n                    <CounterNumber\n                      value={h.value}\n                      prefix={h.prefix}\n                      suffix={h.suffix}\n                      decimalPlaces={h.decimals}\n                      className=\"text-2xl font-semibold tracking-tight\"\n                    />\n                  </dd>\n                  <dd\n                    className={\n                      h.good\n                        ? \"mt-1 text-xs text-primary dark:text-primary\"\n                        : \"mt-1 text-xs text-primary dark:text-primary\"\n                    }\n                  >\n                    {h.change} week over week\n                  </dd>\n                </div>\n              ))}\n            </dl>\n\n            <h3 className=\"mt-12 text-xs tracking-widest text-muted-foreground uppercase\">\n              Biggest movers\n            </h3>\n            <ul className=\"mt-4 divide-y border-y\">\n              {movers.map((m) => (\n                <li key={m.item} className=\"flex items-center justify-between gap-4 py-4\">\n                  <div className=\"min-w-0\">\n                    <p className=\"font-medium\">{m.item}</p>\n                    <p className=\"text-sm text-muted-foreground\">{m.note}</p>\n                  </div>\n                  <span\n                    className={\n                      m.delta.startsWith(\"-\")\n                        ? \"shrink-0 font-sans text-sm text-primary dark:text-primary\"\n                        : \"shrink-0 font-sans text-sm text-primary dark:text-primary\"\n                    }\n                  >\n                    {m.delta}\n                  </span>\n                </li>\n              ))}\n            </ul>\n\n            <div className=\"mt-10 flex flex-col gap-3 sm:flex-row\">\n              <Button nativeButton={false} render={<a href=\"#\" />}>\n                Open full report\n                <ArrowRight data-icon=\"inline-end\" />\n              </Button>\n              <Button variant=\"outline\" nativeButton={false} render={<a href=\"#\" />}>\n                View icon pack\n              </Button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "1000px"
  },
  "categories": [
    "analytics"
  ]
}