{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats68",
  "title": "Segmented Total Breakdown",
  "description": "A results section that leads on one oversized total, splits it across a segmented accent bar, then legends each segment on a hairline row aligning its value, share, and what it covers.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/stats68/stats68.tsx",
      "content": "\"use client\";\n\nimport { Badge23 } from \"@/components/beste/component/badge23\";\nimport { Button21 } from \"@/components/beste/component/button21\";\nimport { cn } from \"@/lib/utils\";\nimport Link from \"next/link\";\n\ninterface Badge {\n  label: string;\n}\n\ninterface ActionLink {\n  label: string;\n  href: string;\n}\n\ninterface Segment {\n  label: string;\n  value: string;\n  percent: number;\n  description: string;\n}\n\ninterface Stats68Props {\n  badge?: Badge;\n  heading?: string;\n  description?: string;\n  totalValue?: string;\n  totalLabel?: string;\n  segments?: Segment[];\n  footnote?: string;\n  button?: ActionLink;\n  className?: string;\n}\n\nconst segmentFills = [\"bg-primary\", \"bg-primary/70\", \"bg-primary/45\", \"bg-primary/25\"];\n\nexport const stats68Demo: Stats68Props = {\n  badge: { label: \"Where the hours go\" },\n  heading: \"Ninety-six clinical hours, split four ways\",\n  description:\n    \"One week at a four-site group, counted from the rota rather than estimated afterwards. The fourth segment is the one everybody is trying to shrink.\",\n  totalValue: \"96\",\n  totalLabel: \"clinical hours booked last week\",\n  segments: [\n    {\n      label: \"Consultations\",\n      value: \"40 hrs\",\n      percent: 42,\n      description: \"First appointments and the longer reviews that follow a referral.\",\n    },\n    {\n      label: \"Follow-ups\",\n      value: \"27 hrs\",\n      percent: 28,\n      description: \"Repeat visits inside an existing care plan, mostly half-hour slots.\",\n    },\n    {\n      label: \"Assessments\",\n      value: \"18 hrs\",\n      percent: 19,\n      description: \"Structured assessments that need a room, a clinician, and a full hour.\",\n    },\n    {\n      label: \"Admin held in clinical rooms\",\n      value: \"11 hrs\",\n      percent: 11,\n      description:\n        \"Time a room was blocked for paperwork. Down from 23 hours before the switch, and still falling.\",\n    },\n  ],\n  footnote:\n    \"Percentages are rounded to the nearest whole number, so they do not always total exactly one hundred.\",\n  button: { label: \"See your own breakdown\", href: \"https://beste.co\" },\n};\n\nexport function Stats68({\n  badge,\n  heading,\n  description,\n  totalValue,\n  totalLabel,\n  segments = [],\n  footnote,\n  button,\n  className,\n}: Stats68Props) {\n  return (\n    <section className={cn(\"bg-background py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-7xl px-4 md:px-6\">\n        {badge && <Badge23 label={badge.label} />}\n\n        <div className=\"mt-6 border-t border-border pt-8 md:pt-10\">\n          <div className=\"grid gap-6 md:grid-cols-2 md:gap-12\">\n            {heading && (\n              <h2 className=\"text-3xl font-light leading-[1.1] tracking-tight text-foreground md:text-5xl\">\n                {heading}\n              </h2>\n            )}\n            {description && (\n              <div className=\"flex md:justify-end\">\n                <p className=\"max-w-md text-base leading-relaxed text-muted-foreground\">\n                  {description}\n                </p>\n              </div>\n            )}\n          </div>\n        </div>\n\n        <div className=\"mt-12 md:mt-16\">\n          <div className=\"flex flex-wrap items-baseline gap-x-4\">\n            {totalValue && (\n              <p className=\"text-4xl font-light tracking-tight tabular-nums text-foreground md:text-6xl\">\n                {totalValue}\n              </p>\n            )}\n            {totalLabel && <p className=\"text-base text-muted-foreground\">{totalLabel}</p>}\n          </div>\n\n          {segments.length > 0 && (\n            <div className=\"mt-6 flex h-4 w-full gap-1 overflow-hidden\" aria-hidden=\"true\">\n              {segments.map((segment, index) => (\n                <span\n                  key={index}\n                  className={cn(\n                    \"rounded-sm\",\n                    segmentFills[index % segmentFills.length]\n                  )}\n                  style={{ width: `${segment.percent}%` }}\n                />\n              ))}\n            </div>\n          )}\n        </div>\n\n        <div className=\"mt-10\">\n          {segments.map((segment, index) => (\n            <div\n              key={index}\n              className=\"grid gap-3 border-t border-border py-5 md:grid-cols-[minmax(0,1fr)_6rem_5rem_minmax(0,1.6fr)] md:items-baseline md:gap-8\"\n            >\n              <div className=\"flex items-center gap-3\">\n                <span\n                  className={cn(\n                    \"size-3 shrink-0 rounded-sm\",\n                    segmentFills[index % segmentFills.length]\n                  )}\n                  aria-hidden=\"true\"\n                />\n                <p className=\"text-lg font-medium text-foreground\">{segment.label}</p>\n              </div>\n\n              <p className=\"text-lg tabular-nums text-foreground\">{segment.value}</p>\n              <p className=\"text-lg tabular-nums text-muted-foreground\">{segment.percent}%</p>\n              <p className=\"text-base leading-relaxed text-muted-foreground\">\n                {segment.description}\n              </p>\n            </div>\n          ))}\n        </div>\n\n        <div className=\"mt-8 flex flex-col items-start gap-4 md:flex-row md:items-center md:justify-between md:gap-8\">\n          {footnote && (\n            <p className=\"max-w-xl text-sm leading-relaxed text-muted-foreground\">{footnote}</p>\n          )}\n          {button && (\n            <Button21 asChild label={button.label} tone=\"outline\">\n              <Link href={button.href} />\n            </Button21>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/stats68.tsx"
    },
    {
      "path": "registry-components/badge23/badge23.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"muted\" | \"foreground\" | \"primary\";\n\ninterface Badge23Props {\n  /** Eyebrow label */\n  label: string;\n  /** Text/border tone */\n  tone?: Tone;\n  /** Additional classes merged onto the root */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  muted: \"border-border text-muted-foreground\",\n  foreground: \"border-foreground/30 text-foreground\",\n  primary: \"border-primary/40 text-primary\",\n};\n\nexport const badge23Demo: Badge23Props = {\n  label: \"Product\",\n};\n\nexport function Badge23({ label, tone = \"muted\", className }: Badge23Props) {\n  return (\n    <span\n      className={cn(\n        \"inline-flex items-center rounded-md border bg-transparent px-2.5 py-1 text-sm font-medium leading-none\",\n        toneStyles[tone],\n        className\n      )}\n    >\n      {label}\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/badge23.tsx"
    },
    {
      "path": "registry-components/button21/button21.tsx",
      "content": "\"use client\";\n\nimport type { LucideIcon } from \"lucide-react\";\nimport * as React from \"react\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\ntype Tone = \"primary\" | \"neutral\" | \"outline\";\n\ninterface Button21Props {\n  /** Button label */\n  label: string;\n  /**\n   * Compose the rendered element shadcn-style (radix asChild): your element\n   * (e.g. a router Link) becomes the root and the button content is injected\n   * as its children. Pass the element without children of its own.\n   */\n  asChild?: boolean;\n  /** The element to render when `asChild` is set (e.g. your framework's Link) */\n  children?: React.ReactElement;\n  /**\n   * Fallback link: renders a plain `<a>`. Prefer `asChild` with your\n   * framework's Link component for client-side navigation.\n   */\n  href?: string;\n  /** Optional trailing icon */\n  icon?: LucideIcon;\n  /** Surface tone: solid accent (default), soft neutral pill, or hairline outline */\n  tone?: Tone;\n  /** Click handler (used when there is no href and no asChild) */\n  onClick?: React.MouseEventHandler<HTMLButtonElement>;\n  /** Additional classes merged onto the button */\n  className?: string;\n}\n\nconst toneStyles: Record<Tone, string> = {\n  primary: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n  neutral: \"bg-muted text-foreground hover:bg-muted/70\",\n  outline: \"border border-border bg-transparent text-foreground hover:bg-muted\",\n};\n\nexport const button21Demo: Button21Props = {\n  label: \"Book a demo\",\n};\n\nexport function Button21({\n  label,\n  asChild = false,\n  children,\n  href,\n  icon: Icon,\n  tone = \"primary\",\n  onClick,\n  className,\n}: Button21Props) {\n  const classes = cn(\n    \"group/button21 h-auto w-fit gap-2 rounded-md px-5 py-2.5 text-sm font-medium tracking-tight transition-colors\",\n    toneStyles[tone],\n    className\n  );\n\n  const inner = (\n    <>\n      {label}\n      {Icon && (\n        <Icon className=\"size-4 transition-transform motion-safe:group-hover/button21:translate-x-0.5\" />\n      )}\n    </>\n  );\n\n  if (asChild && React.isValidElement(children)) {\n    return (\n      <Button asChild className={classes}>\n        {React.cloneElement(children, undefined, inner)}\n      </Button>\n    );\n  }\n\n  if (href) {\n    return (\n      <Button asChild className={classes}>\n        <a href={href}>{inner}</a>\n      </Button>\n    );\n  }\n\n  return (\n    <Button type=\"button\" className={classes} onClick={onClick}>\n      {inner}\n    </Button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/component/button21.tsx"
    }
  ],
  "type": "registry:block"
}