{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stats",
  "title": "Stats",
  "description": "A landing page’s headline numbers in a row over hairlines, each with what it counts and where it comes from; the digits roll into place, one number after another, the first time each is seen.",
  "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/stats.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  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 * A row of headline numbers under the section's title, each over a hairline,\n * with what it counts and where it comes from. The first time the row is\n * seen, each number's digits roll up into place, one number after another.\n *\n *   <Stats\n *     title='The planning tool teams stay with'\n *     stats={[{ value: 12400, label: 'teams plan their week in Kino' }]}\n *   />\n */\n\ninterface StatsProps\n  extends StatsWordsProps, Omit<ComponentProps<'section'>, 'title' | 'children'> {\n  title: ReactNode\n  description?: ReactNode\n  /** Two to four reads best: a row of them on a page, two to a row on a phone. */\n  stats: Stat[]\n}\n\nfunction Stats({\n  eyebrow,\n  title,\n  description,\n  heading = 'h2',\n  locale,\n  stats,\n  className,\n  style,\n  ...props\n}: StatsProps) {\n  const titleId = useId()\n  return (\n    <section\n      data-slot='stats'\n      aria-labelledby={titleId}\n      className={cn(statsSectionClassName, className)}\n      style={{ '--stats-columns': stats.length, ...style } as CSSProperties}\n      {...props}\n    >\n      <StatsArrival locale={locale}>\n        <div\n          className={cn(statsColumnClassName, 'flex flex-col gap-12 @3xl/stats:gap-16')}\n        >\n          <SectionHeading\n            id={titleId}\n            eyebrow={eyebrow}\n            title={title}\n            description={description}\n            heading={heading}\n          />\n          <ul className='grid gap-x-8 gap-y-10 @sm/stats:grid-cols-2 @3xl/stats:grid-cols-[repeat(var(--stats-columns),minmax(0,1fr))]'>\n            {stats.map((stat, index) => (\n              <li key={index} className='flex min-w-0 flex-col gap-2 border-t pt-6'>\n                <StatsNumber\n                  {...figureOf(stat)}\n                  className={cn(\n                    displayTitleClassName,\n                    'text-4xl @3xl/stats:text-5xl @6xl/stats:text-6xl',\n                  )}\n                />\n                <p className='text-foreground font-medium text-pretty'>\n                  <bdi>{stat.label}</bdi>\n                </p>\n                {stat.description ? (\n                  <p className='text-muted-foreground text-sm text-pretty'>\n                    <bdi>{stat.description}</bdi>\n                  </p>\n                ) : null}\n                {stat.source ? (\n                  <StatsSource source={stat.source} className='mt-1 self-start' />\n                ) : null}\n              </li>\n            ))}\n          </ul>\n        </div>\n      </StatsArrival>\n    </section>\n  )\n}\n\nexport { Stats, type StatsProps }\n",
      "type": "registry:component",
      "target": "@components/kino/stats/stats.tsx"
    }
  ],
  "type": "registry:block"
}