{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-changelogs-compact-changelog","type":"registry:block","title":"Compact Changelog","files":[{"path":"components/blocks/marketing/changelogs/compact-changelog.tsx","content":"import * as React from 'react';\nimport { Badge } from '@/components/ui/badge';\nimport { Button } from '@/components/ui/button';\nimport { ScrollArea } from '@/components/ui/scroll-area';\nimport {\n  Collapsible,\n  CollapsibleContent,\n  CollapsibleTrigger,\n} from '@/components/ui/collapsible';\nimport { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';\n\ninterface Version {\n  number: string;\n  date: string;\n  isLatest: boolean;\n  description: string;\n  changes: {\n    category: 'added' | 'improved' | 'fixed' | 'removed';\n    items: string[];\n  }[];\n}\n\nexport default function CompactChangelog() {\n  const versions: Version[] = [\n    {\n      number: '2.0.0',\n      date: 'April 15, 2023',\n      isLatest: true,\n      description:\n        'Major redesign with dark mode support and significant performance improvements.',\n      changes: [\n        {\n          category: 'added',\n          items: [\n            'Completely redesigned dashboard interface',\n            'Dark mode support across all pages',\n            'New analytics dashboard with advanced filters',\n          ],\n        },\n        {\n          category: 'improved',\n          items: [\n            'Performance improved by 40%',\n            'Enhanced mobile responsiveness',\n            'Better form validation',\n          ],\n        },\n        {\n          category: 'fixed',\n          items: [\n            'Multiple accessibility issues',\n            'Display issues on Safari',\n            'Authentication errors',\n          ],\n        },\n        {\n          category: 'removed',\n          items: ['Legacy API endpoints', 'Deprecated dashboard features'],\n        },\n      ],\n    },\n    {\n      number: '1.9.0',\n      date: 'March 20, 2023',\n      isLatest: false,\n      description: 'New notification system and multiple UI improvements.',\n      changes: [\n        {\n          category: 'added',\n          items: ['Real-time notification system', 'Custom alert preferences'],\n        },\n        {\n          category: 'improved',\n          items: ['Form loading times', 'Animation smoothness'],\n        },\n        {\n          category: 'fixed',\n          items: ['Dropdown menu positioning on mobile devices'],\n        },\n        {\n          category: 'removed',\n          items: [],\n        },\n      ],\n    },\n    {\n      number: '1.8.0',\n      date: 'February 5, 2023',\n      isLatest: false,\n      description: 'Enhanced search functionality and bug fixes.',\n      changes: [\n        {\n          category: 'added',\n          items: ['Advanced search filters', 'Search history'],\n        },\n        {\n          category: 'improved',\n          items: ['Search results accuracy', 'Search performance'],\n        },\n        {\n          category: 'fixed',\n          items: ['Search result pagination issues'],\n        },\n        {\n          category: 'removed',\n          items: [],\n        },\n      ],\n    },\n    {\n      number: '1.7.0',\n      date: 'January 10, 2023',\n      isLatest: false,\n      description: 'Integration with third-party services and UI tweaks.',\n      changes: [\n        {\n          category: 'added',\n          items: [\n            'Integration with popular calendar services',\n            'Export to PDF feature',\n          ],\n        },\n        {\n          category: 'improved',\n          items: ['Dashboard loading times'],\n        },\n        {\n          category: 'fixed',\n          items: ['Account settings synchronization'],\n        },\n        {\n          category: 'removed',\n          items: [],\n        },\n      ],\n    },\n    {\n      number: '1.6.0',\n      date: 'December 5, 2022',\n      isLatest: false,\n      description: 'Year-end updates with performance optimizations.',\n      changes: [\n        {\n          category: 'added',\n          items: ['Year-end reporting tools'],\n        },\n        {\n          category: 'improved',\n          items: ['Overall system performance', 'Database query optimization'],\n        },\n        {\n          category: 'fixed',\n          items: ['Data export issues', 'Several minor UI bugs'],\n        },\n        {\n          category: 'removed',\n          items: [],\n        },\n      ],\n    },\n  ];\n\n  // Styling for categories\n  const getCategoryStyles = (category: string) => {\n    switch (category) {\n      case 'added':\n        return 'text-green-600 dark:text-green-400';\n      case 'improved':\n        return 'text-blue-600 dark:text-blue-400';\n      case 'fixed':\n        return 'text-amber-600 dark:text-amber-400';\n      case 'removed':\n        return 'text-red-600 dark:text-red-400';\n      default:\n        return '';\n    }\n  };\n\n  // Icons for categories\n  const getCategoryIcon = (category: string) => {\n    switch (category) {\n      case 'added':\n        return (\n          <svg\n            xmlns=\"http://www.w3.org/2000/svg\"\n            width=\"16\"\n            height=\"16\"\n            viewBox=\"0 0 24 24\"\n            fill=\"none\"\n            stroke=\"currentColor\"\n            strokeWidth=\"2\"\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n            className=\"mr-1\"\n          >\n            <path d=\"M5 12h14\"></path>\n            <path d=\"M12 5v14\"></path>\n          </svg>\n        );\n      case 'improved':\n        return (\n          <svg\n            xmlns=\"http://www.w3.org/2000/svg\"\n            width=\"16\"\n            height=\"16\"\n            viewBox=\"0 0 24 24\"\n            fill=\"none\"\n            stroke=\"currentColor\"\n            strokeWidth=\"2\"\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n            className=\"mr-1\"\n          >\n            <path d=\"M12 20V10\"></path>\n            <path d=\"M18 20V4\"></path>\n            <path d=\"M6 20v-4\"></path>\n          </svg>\n        );\n      case 'fixed':\n        return (\n          <svg\n            xmlns=\"http://www.w3.org/2000/svg\"\n            width=\"16\"\n            height=\"16\"\n            viewBox=\"0 0 24 24\"\n            fill=\"none\"\n            stroke=\"currentColor\"\n            strokeWidth=\"2\"\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n            className=\"mr-1\"\n          >\n            <path d=\"m5 12 5 5 9-9\"></path>\n          </svg>\n        );\n      case 'removed':\n        return (\n          <svg\n            xmlns=\"http://www.w3.org/2000/svg\"\n            width=\"16\"\n            height=\"16\"\n            viewBox=\"0 0 24 24\"\n            fill=\"none\"\n            stroke=\"currentColor\"\n            strokeWidth=\"2\"\n            strokeLinecap=\"round\"\n            strokeLinejoin=\"round\"\n            className=\"mr-1\"\n          >\n            <path d=\"M5 12h14\"></path>\n          </svg>\n        );\n      default:\n        return null;\n    }\n  };\n\n  const [expandedVersions, setExpandedVersions] = React.useState<string[]>([\n    versions[0]!.number,\n  ]);\n\n  const toggleVersion = (versionNumber: string) => {\n    setExpandedVersions((prev) =>\n      prev.includes(versionNumber)\n        ? prev.filter((v) => v !== versionNumber)\n        : [...prev, versionNumber]\n    );\n  };\n\n  return (\n    <div className=\"container mx-auto max-w-3xl px-4 py-8\">\n      <div className=\"mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between\">\n        <div>\n          <h2 className=\"text-3xl font-bold tracking-tight\">Changelog</h2>\n          <p className=\"text-muted-foreground mt-1\">\n            Recent updates and improvements\n          </p>\n        </div>\n        <div className=\"mt-2 sm:mt-0\">\n          <Button\n            variant=\"outline\"\n            size=\"sm\"\n            onClick={() =>\n              setExpandedVersions(\n                expandedVersions.length === versions.length\n                  ? []\n                  : versions.map((v) => v.number)\n              )\n            }\n          >\n            {expandedVersions.length === versions.length\n              ? 'Collapse All'\n              : 'Expand All'}\n          </Button>\n        </div>\n      </div>\n\n      <div className=\"rounded-lg border\">\n        <ScrollArea className=\"h-[500px] rounded-md\">\n          <div className=\"divide-y\">\n            {versions.map((version) => (\n              <Collapsible\n                key={version.number}\n                open={expandedVersions.includes(version.number)}\n                onOpenChange={() => toggleVersion(version.number)}\n                className=\"w-full\"\n              >\n                <div className=\"bg-muted/20\">\n                  <CollapsibleTrigger asChild>\n                    <Button\n                      variant=\"ghost\"\n                      className=\"hover:bg-muted/40 w-full justify-start rounded-none px-4 py-3 text-left\"\n                    >\n                      <div className=\"flex w-full items-center justify-between\">\n                        <div className=\"flex items-center gap-2\">\n                          {expandedVersions.includes(version.number) ? (\n                            <ChevronDownIcon className=\"h-4 w-4\" />\n                          ) : (\n                            <ChevronRightIcon className=\"h-4 w-4\" />\n                          )}\n                          <span className=\"font-bold\">v{version.number}</span>\n                          {version.isLatest && (\n                            <Badge className=\"ml-2\">Latest</Badge>\n                          )}\n                        </div>\n                        <span className=\"text-muted-foreground text-sm\">\n                          {version.date}\n                        </span>\n                      </div>\n                    </Button>\n                  </CollapsibleTrigger>\n                </div>\n                <CollapsibleContent>\n                  <div className=\"bg-background p-4\">\n                    <p className=\"text-muted-foreground mb-4 text-sm\">\n                      {version.description}\n                    </p>\n                    <div className=\"space-y-4\">\n                      {version.changes.map(\n                        (category) =>\n                          category.items.length > 0 && (\n                            <div key={category.category}>\n                              <h4\n                                className={`mb-2 flex items-center text-sm font-semibold capitalize ${getCategoryStyles(\n                                  category.category\n                                )}`}\n                              >\n                                {getCategoryIcon(category.category)}\n                                {category.category}\n                              </h4>\n                              <ul className=\"ml-5 space-y-1 text-sm\">\n                                {category.items.map((item, i) => (\n                                  <li key={i} className=\"list-disc\">\n                                    {item}\n                                  </li>\n                                ))}\n                              </ul>\n                            </div>\n                          )\n                      )}\n                    </div>\n                  </div>\n                </CollapsibleContent>\n              </Collapsible>\n            ))}\n          </div>\n        </ScrollArea>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/changelogs/compact-changelog.tsx"},{"path":"components/ui/badge.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  \"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground [a]:hover:bg-primary/80\",\n        secondary:\n          \"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80\",\n        destructive:\n          \"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20\",\n        outline:\n          \"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  }\n)\n\nfunction Badge({\n  className,\n  variant = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"span\"> &\n  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n  const Comp = asChild ? Slot.Root : \"span\"\n\n  return (\n    <Comp\n      data-slot=\"badge\"\n      data-variant={variant}\n      className={cn(badgeVariants({ variant }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n","type":"registry:ui","target":"components/ui/badge.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"},{"path":"components/ui/scroll-area.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { ScrollArea as ScrollAreaPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction ScrollArea({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n  return (\n    <ScrollAreaPrimitive.Root\n      data-slot=\"scroll-area\"\n      className={cn(\"relative\", className)}\n      {...props}\n    >\n      <ScrollAreaPrimitive.Viewport\n        data-slot=\"scroll-area-viewport\"\n        className=\"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1\"\n      >\n        {children}\n      </ScrollAreaPrimitive.Viewport>\n      <ScrollBar />\n      <ScrollAreaPrimitive.Corner />\n    </ScrollAreaPrimitive.Root>\n  )\n}\n\nfunction ScrollBar({\n  className,\n  orientation = \"vertical\",\n  ...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n  return (\n    <ScrollAreaPrimitive.ScrollAreaScrollbar\n      data-slot=\"scroll-area-scrollbar\"\n      data-orientation={orientation}\n      orientation={orientation}\n      className={cn(\n        \"flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent\",\n        className\n      )}\n      {...props}\n    >\n      <ScrollAreaPrimitive.ScrollAreaThumb\n        data-slot=\"scroll-area-thumb\"\n        className=\"relative flex-1 rounded-full bg-border\"\n      />\n    </ScrollAreaPrimitive.ScrollAreaScrollbar>\n  )\n}\n\nexport { ScrollArea, ScrollBar }\n","type":"registry:ui","target":"components/ui/scroll-area.tsx"},{"path":"components/ui/collapsible.tsx","content":"\"use client\"\n\nimport { Collapsible as CollapsiblePrimitive } from \"radix-ui\"\n\nfunction Collapsible({\n  ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {\n  return <CollapsiblePrimitive.Root data-slot=\"collapsible\" {...props} />\n}\n\nfunction CollapsibleTrigger({\n  ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {\n  return (\n    <CollapsiblePrimitive.CollapsibleTrigger\n      data-slot=\"collapsible-trigger\"\n      {...props}\n    />\n  )\n}\n\nfunction CollapsibleContent({\n  ...props\n}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {\n  return (\n    <CollapsiblePrimitive.CollapsibleContent\n      data-slot=\"collapsible-content\"\n      {...props}\n    />\n  )\n}\n\nexport { Collapsible, CollapsibleTrigger, CollapsibleContent }\n","type":"registry:ui","target":"components/ui/collapsible.tsx"}],"description":"A dense changelog that packs many versions into a tight column. Ideal when you ship often and want the full history visible without heavy scrolling.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}