{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats-lead",
  "title": "Stats lead",
  "description": "One number leads beside the section’s words and counts up to its value the first time it is seen; the two or three that back it up roll in below, each with its source.",
  "dependencies": [],
  "registryDependencies": [
    "https://kinoui.com/r/hero-parts.json",
    "https://kinoui.com/r/section-heading.json",
    "https://kinoui.com/r/stats-parts.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/stats-lead/stats-lead.tsx",
      "content": "'use client'\n\nimport { displayTitleClassName } from '@/registry/lib/hero-parts'\nimport { SectionHeading } from '@/registry/lib/section-heading'\nimport {\n  figureOf,\n  type Stat,\n  type StatFigure,\n  StatsArrival,\n  statsColumnClassName,\n  StatsNumber,\n  statsSectionClassName,\n  StatsSource,\n  type StatsWordsProps,\n} from '@/registry/lib/stats-parts'\nimport { type ComponentProps, type CSSProperties, type ReactNode, useId } from 'react'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * One number leads, beside the section's words: it is the largest thing on\n * the page and counts up to its value the first time it is seen, with what\n * it counts and why it matters under it. The numbers that back it up sit in\n * a row below, over a hairline, and roll into place after it.\n *\n *   <StatsLead\n *     title='Teams ship more when the week plans itself'\n *     lead={{ value: 38, format: { style: 'percent' }, label: 'fewer missed deadlines' }}\n *     stats={[{ value: 12400, label: 'teams' }]}\n *   />\n */\n\ninterface StatsLeadProps\n  extends StatsWordsProps, Omit<ComponentProps<'section'>, 'title' | 'children'> {\n  title: ReactNode\n  description?: ReactNode\n  /** The number the section is about. */\n  lead: Stat\n  /** Two or three that back it up, each with what it counts and where it comes from. */\n  stats: (StatFigure & Pick<Stat, 'label' | 'source'>)[]\n  /** A link to more under the words, such as the customer stories: a `NudgeLink`. */\n  action?: ReactNode\n}\n\nfunction StatsLead({\n  eyebrow,\n  title,\n  description,\n  heading = 'h2',\n  locale,\n  lead,\n  stats,\n  action,\n  className,\n  ...props\n}: StatsLeadProps) {\n  const titleId = useId()\n  return (\n    <section\n      data-slot='stats-lead'\n      aria-labelledby={titleId}\n      className={cn(statsSectionClassName, className)}\n      {...props}\n    >\n      <StatsArrival locale={locale}>\n        <div\n          className={cn(\n            statsColumnClassName,\n            'grid gap-12 @4xl/stats:grid-cols-[minmax(0,5fr)_minmax(0,7fr)] @4xl/stats:gap-16',\n          )}\n        >\n          <SectionHeading\n            id={titleId}\n            eyebrow={eyebrow}\n            title={title}\n            description={description}\n            heading={heading}\n            align='start'\n            className='gap-6'\n          >\n            {action}\n          </SectionHeading>\n          <div className='flex min-w-0 flex-col gap-10'>\n            <figure className='flex min-w-0 flex-col gap-3'>\n              <StatsNumber\n                {...figureOf(lead)}\n                variant='count'\n                className={cn(\n                  displayTitleClassName,\n                  'text-6xl leading-none @lg/stats:text-7xl @6xl/stats:text-8xl',\n                )}\n              />\n              <figcaption className='flex max-w-md min-w-0 flex-col gap-1'>\n                <span className='text-lg font-medium text-pretty'>\n                  <bdi>{lead.label}</bdi>\n                </span>\n                {lead.description ? (\n                  <span className='text-muted-foreground text-pretty'>\n                    <bdi>{lead.description}</bdi>\n                  </span>\n                ) : null}\n              </figcaption>\n              {lead.source ? (\n                <StatsSource source={lead.source} className='self-start' />\n              ) : null}\n            </figure>\n            <ul\n              style={{ '--stats-columns': stats.length } as CSSProperties}\n              className='grid gap-x-8 gap-y-6 border-t pt-6 @xs/stats:grid-cols-2 @lg/stats:grid-cols-[repeat(var(--stats-columns),minmax(0,1fr))]'\n            >\n              {stats.map((stat, index) => (\n                <li key={index} className='flex min-w-0 flex-col gap-1'>\n                  <StatsNumber\n                    {...figureOf(stat)}\n                    className={cn(displayTitleClassName, 'text-3xl')}\n                  />\n                  <p className='text-muted-foreground text-sm text-pretty'>\n                    <bdi>{stat.label}</bdi>\n                  </p>\n                  {stat.source ? (\n                    <StatsSource source={stat.source} className='self-start' />\n                  ) : null}\n                </li>\n              ))}\n            </ul>\n          </div>\n        </div>\n      </StatsArrival>\n    </section>\n  )\n}\n\nexport { StatsLead, type StatsLeadProps }\n",
      "type": "registry:component",
      "target": "@components/kino/stats-lead/stats-lead.tsx"
    }
  ],
  "type": "registry:block"
}