{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "order-summary",
  "title": "Order Summary",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-native/blocks/order-summary/OrderSummary.tsx",
      "content": "import * as React from 'react'\nimport { View, type ViewProps } from 'react-native'\nimport { Text } from '@/components/ui/text'\nimport { cn } from '@/lib/utils'\n\nexport interface OrderSummaryProps extends ViewProps {\n  className?: string\n  title?: string\n  /** Authored order lines belong here, above the price breakdown. */\n  children?: React.ReactNode\n  /** Amounts from the consumer's order system, already formatted for its locale and currency. */\n  subtotal?: string\n  shipping?: string\n  discount?: string\n  tax?: string\n  total: string\n  labels?: Partial<Record<'subtotal' | 'shipping' | 'discount' | 'tax' | 'total', string>>\n  action?: React.ReactNode\n}\n\nexport function OrderSummary({\n  className,\n  title = 'Order summary',\n  children,\n  subtotal,\n  shipping,\n  discount,\n  tax,\n  total,\n  labels,\n  action,\n  ...props\n}: OrderSummaryProps) {\n  return (\n    <View {...props} className={cn('gap-[16px] rounded-lg border border-border bg-card p-[16px]', className)}>\n      <Text size=\"lg\" accessibilityRole=\"header\" className=\"font-semibold text-card-foreground\">\n        {title}\n      </Text>\n      {children}\n      <View className=\"gap-[8px]\">\n        {subtotal ? (\n          <View className=\"flex-row flex-wrap justify-between gap-x-[12px]\">\n            <Text size=\"sm\" variant=\"muted\" className=\"shrink\">\n              {labels?.subtotal ?? 'Subtotal'}\n            </Text>\n            <Text size=\"sm\" className=\"shrink text-card-foreground\" style={{ fontVariant: ['tabular-nums'] }}>\n              {subtotal}\n            </Text>\n          </View>\n        ) : null}\n        {shipping ? (\n          <View className=\"flex-row flex-wrap justify-between gap-x-[12px]\">\n            <Text size=\"sm\" variant=\"muted\" className=\"shrink\">\n              {labels?.shipping ?? 'Shipping'}\n            </Text>\n            <Text size=\"sm\" className=\"shrink text-card-foreground\" style={{ fontVariant: ['tabular-nums'] }}>\n              {shipping}\n            </Text>\n          </View>\n        ) : null}\n        {discount ? (\n          <View className=\"flex-row flex-wrap justify-between gap-x-[12px]\">\n            <Text size=\"sm\" variant=\"muted\" className=\"shrink\">\n              {labels?.discount ?? 'Discount'}\n            </Text>\n            <Text size=\"sm\" className=\"shrink text-card-foreground\" style={{ fontVariant: ['tabular-nums'] }}>\n              {discount}\n            </Text>\n          </View>\n        ) : null}\n        {tax ? (\n          <View className=\"flex-row flex-wrap justify-between gap-x-[12px]\">\n            <Text size=\"sm\" variant=\"muted\" className=\"shrink\">\n              {labels?.tax ?? 'Tax'}\n            </Text>\n            <Text size=\"sm\" className=\"shrink text-card-foreground\" style={{ fontVariant: ['tabular-nums'] }}>\n              {tax}\n            </Text>\n          </View>\n        ) : null}\n        <View className=\"flex-row flex-wrap justify-between gap-x-[12px] border-t border-border pt-[12px]\">\n          <Text className=\"shrink font-semibold text-card-foreground\">{labels?.total ?? 'Total'}</Text>\n          <Text className=\"shrink font-semibold text-card-foreground\" style={{ fontVariant: ['tabular-nums'] }}>\n            {total}\n          </Text>\n        </View>\n      </View>\n      {action}\n    </View>\n  )\n}\n",
      "type": "registry:block",
      "target": "~/components/blocks/order-summary/OrderSummary.tsx"
    },
    {
      "path": "packages/registry-native/blocks/order-summary/index.ts",
      "content": "export { OrderSummary, type OrderSummaryProps } from './OrderSummary'\n",
      "type": "registry:block",
      "target": "~/components/blocks/order-summary/index.ts"
    }
  ],
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/text.json"
  ],
  "description": "Order review section with item content, subtotal, shipping, discounts, tax and a clearly labeled total.",
  "categories": [
    "commerce"
  ]
}