{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "news-card-fixtures",
  "title": "News Card — fixtures",
  "author": "ilinxa",
  "description": "News Card plus the dummy-data fixtures used by the docs-site demo.",
  "registryDependencies": [
    "@ilinxa/news-card"
  ],
  "files": [
    {
      "path": "src/registry/components/data/news-card/dummy-data.ts",
      "content": "import type { NewsCardItem } from \"./types\";\n\nconst today = new Date();\nconst daysAgo = (days: number): string =>\n  new Date(today.getTime() - days * 24 * 60 * 60 * 1000).toISOString();\n\n/**\n * 8 demo items spanning the 6 sample categories. The first item is the\n * \"featured\" piece for the Composed demo tab. Mix of populated and\n * absent optional fields demonstrates the soft-fail behavior:\n *\n *   • #6 has no `excerpt` (kicker-style \"headline-only\" card)\n *   • #7 has no `author` (anonymous announcement)\n *   • #8 has no `views` (medium variant omits the chip)\n */\nexport const dummyNewsCardItems: NewsCardItem[] = [\n  {\n    id: \"1\",\n    title: \"Türkiye'nin Yeşil Şehir Dönüşümü: 2025 Hedefleri Açıklandı\",\n    excerpt:\n      \"Çevre ve Şehircilik Bakanlığı, 2025 yılına kadar 10 büyükşehirde yeşil alan oranını %40'a çıkarmayı hedefleyen kapsamlı planını açıkladı.\",\n    category: \"Sustainability\",\n    author: \"Ayşe Yılmaz\",\n    date: daysAgo(0),\n    readTime: 8,\n    image:\n      \"https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1200\",\n    views: 2453,\n  },\n  {\n    id: \"2\",\n    title: \"Smart City Technology Summit Wraps Up in Istanbul\",\n    excerpt:\n      \"The conference brought together 2,000+ attendees from over 50 countries. AI-powered traffic management and energy optimization led the program.\",\n    category: \"Events\",\n    author: \"Mehmet Kaya\",\n    date: daysAgo(1),\n    readTime: 5,\n    image:\n      \"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800\",\n    views: 1876,\n  },\n  {\n    id: \"3\",\n    title: \"Earthquake-Resilient Building Standards Updated\",\n    excerpt:\n      \"New regulations make seismic isolation systems mandatory in all new construction. Retrofit incentives announced for existing buildings.\",\n    category: \"Urban Development\",\n    author: \"Prof. Dr. Ali Demir\",\n    date: daysAgo(2),\n    readTime: 12,\n    image:\n      \"https://images.unsplash.com/photo-1486325212027-8081e485255e?w=800\",\n    views: 3421,\n  },\n  {\n    id: \"4\",\n    title: \"Electric Public Transit Fleet Expanding Nationwide\",\n    excerpt:\n      \"Metropolitan bus fleets target 60% electrification by end of 2025. Charging infrastructure investments accelerate.\",\n    category: \"Technology\",\n    author: \"Zeynep Öztürk\",\n    date: daysAgo(3),\n    readTime: 6,\n    image:\n      \"https://images.unsplash.com/photo-1570125909232-eb263c188f7e?w=800\",\n    views: 987,\n  },\n  {\n    id: \"5\",\n    title: \"Urban Renewal Permitting Goes Digital\",\n    excerpt:\n      \"The new e-government system promises 3-day turnaround on urban-renewal applications. Pilot launches in Istanbul.\",\n    category: \"Announcement\",\n    author: \"Burak Şahin\",\n    date: daysAgo(4),\n    readTime: 4,\n    image:\n      \"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800\",\n    views: 2134,\n  },\n  {\n    id: \"6\",\n    title: \"European Urban Planning Award Goes to Ankara\",\n    category: \"Research\",\n    author: \"Dr. Selin Arslan\",\n    date: daysAgo(5),\n    readTime: 7,\n    image:\n      \"https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=800\",\n    views: 1543,\n  },\n  {\n    id: \"7\",\n    title: \"Next-Gen Smart Buildings Cut Energy Use by 70%\",\n    excerpt:\n      \"IoT sensors and AI algorithms power a new wave of intelligent building systems, slashing operating costs.\",\n    category: \"Technology\",\n    date: daysAgo(7),\n    readTime: 9,\n    image:\n      \"https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=800\",\n    views: 2876,\n  },\n  {\n    id: \"8\",\n    title: \"Walkable Cities Design Guide Released\",\n    excerpt:\n      \"A comprehensive design guide for pedestrian-friendly urban planning, prepared for municipal teams.\",\n    category: \"Announcement\",\n    author: \"Editorial Team\",\n    date: daysAgo(18),\n    readTime: 5,\n    image:\n      \"https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=800\",\n  },\n];\n\n// ─────────────────────────────────────────────────────────────────────────────\n// v0.3.0 demo fixtures — exercise the new editorial features\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Featured + breaking-news fixture — exercises isBreaking + isLive + live-update sub-line.\n */\nexport const breakingNewsItem: NewsCardItem = {\n  id: \"v3-1\",\n  title: \"BREAKING: Major Earthquake Strikes Eastern Anatolia\",\n  excerpt:\n    \"Magnitude 6.8 reported near Erzurum. Search-and-rescue teams deployed; first damage reports incoming.\",\n  category: \"Urban Development\",\n  authorEntity: {\n    id: \"u-1\",\n    name: \"Ayşe Yılmaz\",\n    role: \"Chief Editor\",\n    avatar: \"https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=128&h=128&fit=crop&crop=faces&q=80\",\n    isVerified: true,\n  },\n  publisher: {\n    id: \"pub-1\",\n    name: \"Anatolia Today\",\n    logo: \"https://api.dicebear.com/7.x/initials/svg?seed=AT&backgroundColor=ef4444\",\n    slug: \"anatolia-today\",\n  },\n  publishedAt: daysAgo(0),\n  isBreaking: true,\n  isLive: true,\n  lastLiveUpdateAt: daysAgo(0),\n  liveUpdateCount: 14,\n  readTime: 3,\n  image:\n    \"https://images.unsplash.com/photo-1495344517868-8ebaf0a2044a?w=1200\",\n  views: 24530,\n  likeCount: 1240,\n  commentCount: 412,\n  shareCount: 890,\n  bookmarkCount: 234,\n};\n\n/**\n * Paywalled premium content fixture — exercises paywall + preview + CTA.\n */\nexport const paywalledItem: NewsCardItem = {\n  id: \"v3-2\",\n  title: \"Inside the Smart-City Procurement Crisis\",\n  excerpt:\n    \"Six-month investigation exposes how vendor lock-in has cost three major cities over €40M.\",\n  category: \"Research\",\n  authorEntity: {\n    id: \"u-2\",\n    name: \"Dr. Selin Arslan\",\n    role: \"Investigations\",\n    isVerified: true,\n  },\n  publishedAt: daysAgo(1),\n  visibility: \"subscribers\",\n  isExclusive: true,\n  readTime: 18,\n  image:\n    \"https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1200\",\n  paywall: {\n    isPaywalled: true,\n    tier: \"subscribers\",\n    preview:\n      \"What began as a routine audit in March 2025 has uncovered systemic procurement failures\",\n    ctaLabel: \"Subscribe to read\",\n    ctaHref: \"/subscribe\",\n  },\n  views: 8930,\n  likeCount: 421,\n  commentCount: 89,\n  bookmarkCount: 156,\n};\n\n/**\n * Sensitive content fixture — exercises sensitivity gate + contentWarnings.\n */\nexport const sensitiveItem: NewsCardItem = {\n  id: \"v3-3\",\n  title: \"Field Report: Flood Aftermath in Black Sea Region\",\n  excerpt:\n    \"Visual documentation from the recent flooding. Reader discretion advised.\",\n  category: \"Urban Development\",\n  authorEntity: {\n    id: \"u-3\",\n    name: \"Mehmet Kaya\",\n    role: \"Field Correspondent\",\n    avatar: \"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=128&h=128&fit=crop&crop=faces&q=80\",\n  },\n  publishedAt: daysAgo(2),\n  readTime: 7,\n  image:\n    \"https://images.unsplash.com/photo-1547036967-23d11aacaee0?w=1200\",\n  sensitivity: {\n    isSensitive: true,\n    reason: \"Documentary imagery of disaster aftermath\",\n    contentWarnings: [\"graphic imagery\", \"displacement\"],\n  },\n  views: 4521,\n  likeCount: 234,\n  commentCount: 67,\n};\n\n/**\n * Editor-mode draft fixture — exercises status: \"draft\" + scheduled.\n */\nexport const draftItem: NewsCardItem = {\n  id: \"v3-4\",\n  title: \"[DRAFT] Urban Renewal Permitting Goes Digital — Phase 2\",\n  excerpt:\n    \"Internal working title. Pending editorial review before scheduled publication.\",\n  category: \"Announcement\",\n  authorEntity: {\n    id: \"u-4\",\n    name: \"Burak Şahin\",\n    role: \"Staff Writer\",\n  },\n  publishedAt: daysAgo(3),\n  scheduledFor: new Date(Date.now() + 2 * 24 * 60 * 60 * 1000).toISOString(),\n  status: \"draft\",\n  visibility: \"staff\",\n  readTime: 6,\n  image:\n    \"https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800\",\n};\n\n/**\n * Sponsored content fixture — exercises isSponsored + sponsorLabel.\n */\nexport const sponsoredItem: NewsCardItem = {\n  id: \"v3-5\",\n  title: \"How Modern Buildings Use AI to Cut Energy Costs\",\n  excerpt:\n    \"A practical look at the latest in IoT building automation, with case studies from three pilot deployments.\",\n  category: \"Technology\",\n  authorEntity: {\n    id: \"u-5\",\n    name: \"Sponsored Editorial\",\n    role: \"Partner Content\",\n  },\n  publishedAt: daysAgo(4),\n  isSponsored: true,\n  sponsorLabel: \"GreenTech Industries\",\n  readTime: 6,\n  image:\n    \"https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=800\",\n  views: 1234,\n};\n\n/**\n * Quoted-article fixture — analysis piece quoting a source article.\n */\nexport const quotingItem: NewsCardItem = {\n  id: \"v3-6\",\n  title: \"Analysis: What the Procurement Investigation Means for Public Trust\",\n  excerpt:\n    \"Building on the original investigation, here are the three structural reforms that could prevent recurrence.\",\n  category: \"Research\",\n  authorEntity: {\n    id: \"u-6\",\n    name: \"Prof. Dr. Ali Demir\",\n    role: \"Senior Analyst\",\n    isVerified: true,\n  },\n  publishedAt: daysAgo(0),\n  readTime: 9,\n  image:\n    \"https://images.unsplash.com/photo-1518770660439-4636190af475?w=800\",\n  views: 2103,\n  likeCount: 87,\n  commentCount: 24,\n  quotedArticle: paywalledItem,\n};\n\n/**\n * Pinned + featured editor's pick — exercises multiple badges + isPinned + isFeatured.\n */\nexport const editorsPickItem: NewsCardItem = {\n  id: \"v3-7\",\n  title: \"Türkiye's Carbon-Neutral City Pilots: Year One Results\",\n  excerpt:\n    \"First annual report card on the 2025 pilot cities. Three exceeded targets; one fell short.\",\n  category: \"Sustainability\",\n  authorEntity: {\n    id: \"u-1\",\n    name: \"Ayşe Yılmaz\",\n    role: \"Chief Editor\",\n    avatar: \"https://images.unsplash.com/photo-1531123897727-8f129e1688ce?w=128&h=128&fit=crop&crop=faces&q=80\",\n    isVerified: true,\n  },\n  publishedAt: daysAgo(5),\n  isPinned: true,\n  isFeatured: true,\n  isExclusive: true,\n  readTime: 14,\n  image:\n    \"https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=1200\",\n  views: 18920,\n  likeCount: 945,\n  commentCount: 287,\n  bookmarkCount: 512,\n  shareCount: 401,\n  topics: [\"sustainability\", \"urban-planning\", \"annual-report\"],\n  tags: [\"2025\", \"carbon-neutral\", \"pilot-program\"],\n};\n\n/**\n * v0.3 fixture bundle — items that exercise the editorial feature surface.\n */\nexport const v3DummyItems: NewsCardItem[] = [\n  breakingNewsItem,\n  paywalledItem,\n  sensitiveItem,\n  draftItem,\n  sponsoredItem,\n  quotingItem,\n  editorsPickItem,\n];\n\n/**\n * Sample category → Tailwind-class map. Acts as a usage example AND\n * documents the recommended shape for the `categoryStyles` prop.\n */\nexport const dummyCategoryStyles: Record<string, string> = {\n  \"Urban Development\": \"bg-primary/10 text-primary\",\n  Sustainability: \"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400\",\n  Technology: \"bg-accent/10 text-accent-foreground\",\n  Events: \"bg-amber-500/10 text-amber-600 dark:text-amber-400\",\n  Announcement: \"bg-destructive/10 text-destructive\",\n  Research: \"bg-secondary text-secondary-foreground\",\n};\n\n// @ilinxa/news-card-fixtures 0.4.5\n",
      "type": "registry:component",
      "target": "components/news-card/dummy-data.ts"
    }
  ],
  "meta": {
    "version": "0.4.5",
    "status": "alpha"
  },
  "categories": [
    "data",
    "news",
    "fixtures"
  ],
  "type": "registry:block"
}