{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-changelogs-table-changelog","type":"registry:block","title":"Table Changelog","files":[{"path":"components/blocks/marketing/changelogs/table-changelog.tsx","content":"import * as React from 'react';\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from '@/components/ui/table';\nimport { Badge } from '@/components/ui/badge';\nimport { Input } from '@/components/ui/input';\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from '@/components/ui/select';\nimport {\n  ChevronDownIcon,\n  ChevronUpIcon,\n  SearchIcon,\n  FilterIcon,\n} from 'lucide-react';\nimport { Button } from '@/components/ui/button';\n\ntype ChangeType = 'feature' | 'improvement' | 'bugfix' | 'breaking';\n\ninterface Change {\n  id: string;\n  version: string;\n  date: string;\n  type: ChangeType;\n  description: string;\n}\n\nconst typeLabels: Record<ChangeType, string> = {\n  feature: 'Feature',\n  improvement: 'Improvement',\n  bugfix: 'Bug Fix',\n  breaking: 'Breaking Change',\n};\n\nconst typeColors: Record<ChangeType, string> = {\n  feature:\n    'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400',\n  improvement:\n    'bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400',\n  bugfix: 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400',\n  breaking:\n    'bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-400',\n};\n\nexport default function TableChangelog() {\n  const [searchQuery, setSearchQuery] = React.useState('');\n  const [typeFilter, setTypeFilter] = React.useState<string>('all');\n  const [sortConfig, setSortConfig] = React.useState<{\n    key: keyof Change;\n    direction: 'ascending' | 'descending';\n  }>({\n    key: 'date',\n    direction: 'descending',\n  });\n\n  // Sample changelog data\n  const changes: Change[] = [\n    {\n      id: '1',\n      version: '2.0.0',\n      date: '2023-04-15',\n      type: 'feature',\n      description: 'Completely redesigned dashboard interface',\n    },\n    {\n      id: '2',\n      version: '2.0.0',\n      date: '2023-04-15',\n      type: 'feature',\n      description: 'Added dark mode support across all pages',\n    },\n    {\n      id: '3',\n      version: '2.0.0',\n      date: '2023-04-15',\n      type: 'improvement',\n      description: 'Improved performance by 40%',\n    },\n    {\n      id: '4',\n      version: '2.0.0',\n      date: '2023-04-15',\n      type: 'bugfix',\n      description: 'Fixed multiple accessibility issues',\n    },\n    {\n      id: '5',\n      version: '2.0.0',\n      date: '2023-04-15',\n      type: 'breaking',\n      description: 'API endpoints restructured for v2',\n    },\n    {\n      id: '6',\n      version: '1.2.0',\n      date: '2023-03-02',\n      type: 'feature',\n      description: 'Added new analytics dashboard',\n    },\n    {\n      id: '7',\n      version: '1.2.0',\n      date: '2023-03-02',\n      type: 'improvement',\n      description: 'Enhanced mobile responsiveness',\n    },\n    {\n      id: '8',\n      version: '1.2.0',\n      date: '2023-03-02',\n      type: 'bugfix',\n      description: 'Fixed bug with user authentication',\n    },\n    {\n      id: '9',\n      version: '1.1.0',\n      date: '2023-01-15',\n      type: 'feature',\n      description: 'Added support for custom themes',\n    },\n    {\n      id: '10',\n      version: '1.1.0',\n      date: '2023-01-15',\n      type: 'improvement',\n      description: 'Improved form validation',\n    },\n  ];\n\n  // Format date for display\n  const formatDate = (dateString: string) => {\n    return new Date(dateString).toLocaleDateString('en-US', {\n      year: 'numeric',\n      month: 'long',\n      day: 'numeric',\n    });\n  };\n\n  // Handle sorting\n  const requestSort = (key: keyof Change) => {\n    let direction: 'ascending' | 'descending' = 'ascending';\n    if (sortConfig.key === key && sortConfig.direction === 'ascending') {\n      direction = 'descending';\n    }\n    setSortConfig({ key, direction });\n  };\n\n  // Apply sorting and filtering\n  const sortedAndFilteredChanges = React.useMemo(() => {\n    let filteredData = [...changes];\n\n    // Apply type filter\n    if (typeFilter !== 'all') {\n      filteredData = filteredData.filter((item) => item.type === typeFilter);\n    }\n\n    // Apply search filter\n    if (searchQuery) {\n      const lowerCaseQuery = searchQuery.toLowerCase();\n      filteredData = filteredData.filter(\n        (item) =>\n          item.description.toLowerCase().includes(lowerCaseQuery) ||\n          item.version.toLowerCase().includes(lowerCaseQuery)\n      );\n    }\n\n    // Apply sorting\n    filteredData.sort((a, b) => {\n      if (a[sortConfig.key] < b[sortConfig.key]) {\n        return sortConfig.direction === 'ascending' ? -1 : 1;\n      }\n      if (a[sortConfig.key] > b[sortConfig.key]) {\n        return sortConfig.direction === 'ascending' ? 1 : -1;\n      }\n      return 0;\n    });\n\n    return filteredData;\n  }, [changes, sortConfig, typeFilter, searchQuery]);\n\n  // Group changes by version for displaying version badges\n  const isFirstOfVersion = (change: Change, index: number): boolean => {\n    if (index === 0) return true;\n    return change.version !== sortedAndFilteredChanges[index - 1]!.version;\n  };\n\n  // Render sort indicator\n  const renderSortIndicator = (key: keyof Change) => {\n    if (sortConfig.key !== key) return null;\n    return sortConfig.direction === 'ascending' ? (\n      <ChevronUpIcon className=\"ml-1 h-4 w-4\" />\n    ) : (\n      <ChevronDownIcon className=\"ml-1 h-4 w-4\" />\n    );\n  };\n\n  return (\n    <div className=\"container mx-auto space-y-6 px-4 py-8\">\n      <div>\n        <h2 className=\"text-3xl font-bold tracking-tight\">Changelog</h2>\n        <p className=\"text-muted-foreground mt-2\">\n          Track all changes across versions\n        </p>\n      </div>\n\n      <div className=\"flex flex-col gap-4 md:flex-row md:items-center\">\n        <div className=\"relative flex-1\">\n          <SearchIcon className=\"text-muted-foreground absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2\" />\n          <Input\n            placeholder=\"Search changes...\"\n            value={searchQuery}\n            onChange={(e) => setSearchQuery(e.target.value)}\n            className=\"pl-10\"\n          />\n        </div>\n        <div className=\"w-full md:w-[180px]\">\n          <Select value={typeFilter} onValueChange={setTypeFilter}>\n            <SelectTrigger>\n              <span className=\"flex items-center\">\n                <FilterIcon className=\"mr-2 h-4 w-4\" />\n                <SelectValue placeholder=\"All types\" />\n              </span>\n            </SelectTrigger>\n            <SelectContent>\n              <SelectItem value=\"all\">All types</SelectItem>\n              <SelectItem value=\"feature\">Features</SelectItem>\n              <SelectItem value=\"improvement\">Improvements</SelectItem>\n              <SelectItem value=\"bugfix\">Bug Fixes</SelectItem>\n              <SelectItem value=\"breaking\">Breaking Changes</SelectItem>\n            </SelectContent>\n          </Select>\n        </div>\n      </div>\n\n      <div className=\"rounded-md border\">\n        <Table>\n          <TableHeader>\n            <TableRow>\n              <TableHead className=\"w-[120px]\">\n                <Button\n                  variant=\"ghost\"\n                  className=\"flex h-8 items-center px-2 text-xs font-semibold\"\n                  onClick={() => requestSort('version')}\n                >\n                  Version\n                  {renderSortIndicator('version')}\n                </Button>\n              </TableHead>\n              <TableHead className=\"w-[180px]\">\n                <Button\n                  variant=\"ghost\"\n                  className=\"flex h-8 items-center px-2 text-xs font-semibold\"\n                  onClick={() => requestSort('date')}\n                >\n                  Date\n                  {renderSortIndicator('date')}\n                </Button>\n              </TableHead>\n              <TableHead className=\"w-[150px]\">\n                <Button\n                  variant=\"ghost\"\n                  className=\"flex h-8 items-center px-2 text-xs font-semibold\"\n                  onClick={() => requestSort('type')}\n                >\n                  Type\n                  {renderSortIndicator('type')}\n                </Button>\n              </TableHead>\n              <TableHead>\n                <Button\n                  variant=\"ghost\"\n                  className=\"flex h-8 items-center px-2 text-xs font-semibold\"\n                  onClick={() => requestSort('description')}\n                >\n                  Change\n                  {renderSortIndicator('description')}\n                </Button>\n              </TableHead>\n            </TableRow>\n          </TableHeader>\n          <TableBody>\n            {sortedAndFilteredChanges.length === 0 ? (\n              <TableRow>\n                <TableCell\n                  colSpan={4}\n                  className=\"text-muted-foreground h-24 text-center\"\n                >\n                  No changes found.\n                </TableCell>\n              </TableRow>\n            ) : (\n              sortedAndFilteredChanges.map((change, index) => (\n                <TableRow key={change.id}>\n                  <TableCell className=\"py-3 font-medium\">\n                    {isFirstOfVersion(change, index) && (\n                      <div className=\"flex items-center gap-2\">\n                        v{change.version}\n                        {change.version === '2.0.0' && (\n                          <Badge variant=\"outline\" className=\"text-[10px]\">\n                            Latest\n                          </Badge>\n                        )}\n                      </div>\n                    )}\n                  </TableCell>\n                  <TableCell className=\"text-muted-foreground py-3\">\n                    {isFirstOfVersion(change, index) && formatDate(change.date)}\n                  </TableCell>\n                  <TableCell className=\"py-3\">\n                    <Badge\n                      variant=\"outline\"\n                      className={`${typeColors[change.type]} border-transparent text-xs capitalize`}\n                    >\n                      {typeLabels[change.type]}\n                    </Badge>\n                  </TableCell>\n                  <TableCell className=\"py-3\">{change.description}</TableCell>\n                </TableRow>\n              ))\n            )}\n          </TableBody>\n        </Table>\n      </div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/changelogs/table-changelog.tsx"},{"path":"components/ui/table.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n  return (\n    <div\n      data-slot=\"table-container\"\n      className=\"relative w-full overflow-x-auto\"\n    >\n      <table\n        data-slot=\"table\"\n        className={cn(\"w-full caption-bottom text-sm\", className)}\n        {...props}\n      />\n    </div>\n  )\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n  return (\n    <thead\n      data-slot=\"table-header\"\n      className={cn(\"[&_tr]:border-b\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n  return (\n    <tbody\n      data-slot=\"table-body\"\n      className={cn(\"[&_tr:last-child]:border-0\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n  return (\n    <tfoot\n      data-slot=\"table-footer\"\n      className={cn(\n        \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n  return (\n    <tr\n      data-slot=\"table-row\"\n      className={cn(\n        \"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n  return (\n    <th\n      data-slot=\"table-head\"\n      className={cn(\n        \"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n  return (\n    <td\n      data-slot=\"table-cell\"\n      className={cn(\n        \"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TableCaption({\n  className,\n  ...props\n}: React.ComponentProps<\"caption\">) {\n  return (\n    <caption\n      data-slot=\"table-caption\"\n      className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nexport {\n  Table,\n  TableHeader,\n  TableBody,\n  TableFooter,\n  TableHead,\n  TableRow,\n  TableCell,\n  TableCaption,\n}\n","type":"registry:ui","target":"components/ui/table.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/input.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n  return (\n    <input\n      type={type}\n      data-slot=\"input\"\n      className={cn(\n        \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Input }\n","type":"registry:ui","target":"components/ui/input.tsx"},{"path":"components/ui/select.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Select as SelectPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from \"lucide-react\"\n\nfunction Select({\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n  return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n  return (\n    <SelectPrimitive.Group\n      data-slot=\"select-group\"\n      className={cn(\"scroll-my-1 p-1\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction SelectValue({\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n  return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n  className,\n  size = \"default\",\n  children,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n  size?: \"sm\" | \"default\"\n}) {\n  return (\n    <SelectPrimitive.Trigger\n      data-slot=\"select-trigger\"\n      data-size={size}\n      className={cn(\n        \"flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 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        className\n      )}\n      {...props}\n    >\n      {children}\n      <SelectPrimitive.Icon asChild>\n        <ChevronDownIcon className=\"pointer-events-none size-4 text-muted-foreground\" />\n      </SelectPrimitive.Icon>\n    </SelectPrimitive.Trigger>\n  )\n}\n\nfunction SelectContent({\n  className,\n  children,\n  position = \"item-aligned\",\n  align = \"center\",\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n  return (\n    <SelectPrimitive.Portal>\n      <SelectPrimitive.Content\n        data-slot=\"select-content\"\n        data-align-trigger={position === \"item-aligned\"}\n        className={cn(\"relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95\", position ===\"popper\"&&\"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\", className )}\n        position={position}\n        align={align}\n        {...props}\n      >\n        <SelectScrollUpButton />\n        <SelectPrimitive.Viewport\n          data-position={position}\n          className={cn(\n            \"data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)\",\n            position === \"popper\" && \"\"\n          )}\n        >\n          {children}\n        </SelectPrimitive.Viewport>\n        <SelectScrollDownButton />\n      </SelectPrimitive.Content>\n    </SelectPrimitive.Portal>\n  )\n}\n\nfunction SelectLabel({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n  return (\n    <SelectPrimitive.Label\n      data-slot=\"select-label\"\n      className={cn(\"px-2 py-1.5 text-xs text-muted-foreground\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction SelectItem({\n  className,\n  children,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n  return (\n    <SelectPrimitive.Item\n      data-slot=\"select-item\"\n      className={cn(\n        \"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n        className\n      )}\n      {...props}\n    >\n      <span className=\"pointer-events-none absolute right-2 flex size-4 items-center justify-center\">\n        <SelectPrimitive.ItemIndicator>\n          <CheckIcon className=\"pointer-events-none\" />\n        </SelectPrimitive.ItemIndicator>\n      </span>\n      <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n    </SelectPrimitive.Item>\n  )\n}\n\nfunction SelectSeparator({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n  return (\n    <SelectPrimitive.Separator\n      data-slot=\"select-separator\"\n      className={cn(\"pointer-events-none -mx-1 my-1 h-px bg-border\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction SelectScrollUpButton({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n  return (\n    <SelectPrimitive.ScrollUpButton\n      data-slot=\"select-scroll-up-button\"\n      className={cn(\n        \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    >\n      <ChevronUpIcon\n      />\n    </SelectPrimitive.ScrollUpButton>\n  )\n}\n\nfunction SelectScrollDownButton({\n  className,\n  ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n  return (\n    <SelectPrimitive.ScrollDownButton\n      data-slot=\"select-scroll-down-button\"\n      className={cn(\n        \"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    >\n      <ChevronDownIcon\n      />\n    </SelectPrimitive.ScrollDownButton>\n  )\n}\n\nexport {\n  Select,\n  SelectContent,\n  SelectGroup,\n  SelectItem,\n  SelectLabel,\n  SelectScrollDownButton,\n  SelectScrollUpButton,\n  SelectSeparator,\n  SelectTrigger,\n  SelectValue,\n}\n","type":"registry:ui","target":"components/ui/select.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"}],"description":"A changelog rendered as a table with columns for version, date, and notes. Use it when readers need to scan and compare many releases quickly.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}