{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "summary-card",
  "title": "Summary card",
  "description": "label/value rows, optionally in a Card",
  "dependencies": [],
  "registryDependencies": [
    "@kit-native/card",
    "@kit-native/lib-utils",
    "@kit-native/text"
  ],
  "files": [
    {
      "path": "components/kit/key-value-list.tsx",
      "content": "import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';\nimport { Text } from '@/components/ui/text';\nimport { cn } from '@/lib/utils';\nimport { View } from 'react-native';\n\nexport type KeyValueRow = { label: string; value: string; valueClassName?: string };\n\ntype ListProps = { rows: KeyValueRow[]; className?: string };\n\n/** Label/value rows (order summaries, details). */\nexport function KeyValueList({ rows, className }: ListProps) {\n  return (\n    <View className={cn('gap-3', className)}>\n      {rows.map((r, i) => (\n        <View key={`${r.label}-${i}`} className=\"flex-row items-start justify-between gap-4\">\n          <Text className=\"text-muted-foreground text-sm\">{r.label}</Text>\n          <Text className={cn('flex-shrink text-right text-sm font-medium', r.valueClassName)}>{r.value}</Text>\n        </View>\n      ))}\n    </View>\n  );\n}\n\ntype CardProps = ListProps & { title?: string };\n\n/** KeyValueList inside a Card — confirmations, receipts, loan details. */\nexport function SummaryCard({ title, rows, className }: CardProps) {\n  return (\n    <Card className={cn('w-full gap-4 py-4', className)}>\n      {title ? (\n        <CardHeader className=\"px-4\">\n          <CardTitle className=\"text-base\">{title}</CardTitle>\n        </CardHeader>\n      ) : null}\n      <CardContent className=\"px-4\">\n        <KeyValueList rows={rows} />\n      </CardContent>\n    </Card>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/kit/key-value-list.tsx"
    }
  ],
  "meta": {
    "exports": [
      "KeyValueList",
      "SummaryCard"
    ],
    "api": "<SummaryCard title? rows={[{label,value}]} /> · <KeyValueList rows />"
  },
  "docs": "Run `npx expo install --fix` afterwards so Expo SDK packages match your SDK. Needs the kit theme (`@kit-native/theme`) and `KitThemeProvider` from `@kit-native/lib-theme-context` at the root.",
  "categories": [
    "data"
  ],
  "type": "registry:component"
}