{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "comp-483",
  "type": "registry:component",
  "title": "Comp 483",
  "description": "Comp 483",
  "files": [
    {
      "path": "registry/ui-basic/comp-483.tsx",
      "content": "\"use client\";\n\nimport { useEffect, useId, useState } from \"react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { Label } from \"@/components/ui/label\";\nimport {\n\tPagination,\n\tPaginationContent,\n\tPaginationItem,\n} from \"@/components/ui/pagination\";\nimport {\n\tSelect,\n\tSelectContent,\n\tSelectItem,\n\tSelectTrigger,\n\tSelectValue,\n} from \"@/components/ui/select\";\nimport {\n\tTable,\n\tTableBody,\n\tTableCell,\n\tTableHead,\n\tTableHeader,\n\tTableRow,\n} from \"@/components/ui/table\";\nimport {\n\tColumnDef,\n\tflexRender,\n\tgetCoreRowModel,\n\tgetPaginationRowModel,\n\tgetSortedRowModel,\n\tPaginationState,\n\tSortingState,\n\tuseReactTable,\n} from \"@tanstack/react-table\";\nimport {\n\tChevronDownIcon,\n\tChevronFirstIcon,\n\tChevronLastIcon,\n\tChevronLeftIcon,\n\tChevronRightIcon,\n\tChevronUpIcon,\n} from \"lucide-react\";\n\nimport { cn } from \"../utilities/cn\";\n\ntype Item = {\n\tid: string;\n\tname: string;\n\temail: string;\n\tlocation: string;\n\tflag: string;\n\tstatus: \"Active\" | \"Inactive\" | \"Pending\";\n\tbalance: number;\n};\n\nconst columns: ColumnDef<Item>[] = [\n\t{\n\t\tid: \"select\",\n\t\theader: ({ table }) => (\n\t\t\t<Checkbox\n\t\t\t\tchecked={\n\t\t\t\t\ttable.getIsAllPageRowsSelected() ||\n\t\t\t\t\t(table.getIsSomePageRowsSelected() && \"indeterminate\")\n\t\t\t\t}\n\t\t\t\tonCheckedChange={(value) =>\n\t\t\t\t\ttable.toggleAllPageRowsSelected(!!value)\n\t\t\t\t}\n\t\t\t\taria-label=\"Select all\"\n\t\t\t/>\n\t\t),\n\t\tcell: ({ row }) => (\n\t\t\t<Checkbox\n\t\t\t\tchecked={row.getIsSelected()}\n\t\t\t\tonCheckedChange={(value) => row.toggleSelected(!!value)}\n\t\t\t\taria-label=\"Select row\"\n\t\t\t/>\n\t\t),\n\t\tsize: 28,\n\t\tenableSorting: false,\n\t},\n\t{\n\t\theader: \"Name\",\n\t\taccessorKey: \"name\",\n\t\tcell: ({ row }) => (\n\t\t\t<div className=\"font-medium\">{row.getValue(\"name\")}</div>\n\t\t),\n\t\tsize: 180,\n\t},\n\t{\n\t\theader: \"Email\",\n\t\taccessorKey: \"email\",\n\t\tsize: 200,\n\t},\n\t{\n\t\theader: \"Location\",\n\t\taccessorKey: \"location\",\n\t\tcell: ({ row }) => (\n\t\t\t<div>\n\t\t\t\t<span className=\"text-lg leading-none\">{row.original.flag}</span>{\" \"}\n\t\t\t\t{row.getValue(\"location\")}\n\t\t\t</div>\n\t\t),\n\t\tsize: 180,\n\t},\n\t{\n\t\theader: \"Status\",\n\t\taccessorKey: \"status\",\n\t\tcell: ({ row }) => (\n\t\t\t<Badge\n\t\t\t\tclassName={cn(\n\t\t\t\t\trow.getValue(\"status\") === \"Inactive\" &&\n\t\t\t\t\t\t\"bg-muted-foreground/60 text-primary-foreground\"\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{row.getValue(\"status\")}\n\t\t\t</Badge>\n\t\t),\n\t\tsize: 120,\n\t},\n\t{\n\t\theader: \"Balance\",\n\t\taccessorKey: \"balance\",\n\t\tcell: ({ row }) => {\n\t\t\tconst amount = parseFloat(row.getValue(\"balance\"));\n\t\t\tconst formatted = new Intl.NumberFormat(\"en-US\", {\n\t\t\t\tstyle: \"currency\",\n\t\t\t\tcurrency: \"USD\",\n\t\t\t}).format(amount);\n\t\t\treturn formatted;\n\t\t},\n\t\tsize: 120,\n\t},\n];\n\nexport default function Component() {\n\tconst id = useId();\n\tconst [pagination, setPagination] = useState<PaginationState>({\n\t\tpageIndex: 0,\n\t\tpageSize: 5,\n\t});\n\n\tconst [sorting, setSorting] = useState<SortingState>([\n\t\t{\n\t\t\tid: \"name\",\n\t\t\tdesc: false,\n\t\t},\n\t]);\n\n\tconst [data, setData] = useState<Item[]>([]);\n\tuseEffect(() => {\n\t\tasync function fetchPosts() {\n\t\t\tconst res = await fetch(\n\t\t\t\t\"https://raw.githubusercontent.com/origin-space/origin-images/refs/heads/main/users-01_fertyx.json\"\n\t\t\t);\n\t\t\tconst data = await res.json();\n\t\t\tsetData([...data, ...data]);\n\t\t}\n\t\tfetchPosts();\n\t}, []);\n\n\tconst table = useReactTable({\n\t\tdata,\n\t\tcolumns,\n\t\tgetCoreRowModel: getCoreRowModel(),\n\t\tgetSortedRowModel: getSortedRowModel(),\n\t\tonSortingChange: setSorting,\n\t\tenableSortingRemoval: false,\n\t\tgetPaginationRowModel: getPaginationRowModel(),\n\t\tonPaginationChange: setPagination,\n\t\tstate: {\n\t\t\tsorting,\n\t\t\tpagination,\n\t\t},\n\t});\n\n\treturn (\n\t\t<div className=\"space-y-4\">\n\t\t\t<div className=\"bg-background overflow-hidden rounded-md border\">\n\t\t\t\t<Table className=\"table-fixed\">\n\t\t\t\t\t<TableHeader>\n\t\t\t\t\t\t{table.getHeaderGroups().map((headerGroup) => (\n\t\t\t\t\t\t\t<TableRow\n\t\t\t\t\t\t\t\tkey={headerGroup.id}\n\t\t\t\t\t\t\t\tclassName=\"hover:bg-transparent\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{headerGroup.headers.map((header) => {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<TableHead\n\t\t\t\t\t\t\t\t\t\t\tkey={header.id}\n\t\t\t\t\t\t\t\t\t\t\tstyle={{ width: `${header.getSize()}px` }}\n\t\t\t\t\t\t\t\t\t\t\tclassName=\"h-11\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{header.isPlaceholder ? null : header.column.getCanSort() ? (\n\t\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.getCanSort() &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"flex h-full cursor-pointer items-center justify-between gap-2 select-none\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={header.column.getToggleSortingHandler()}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonKeyDown={(e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Enhanced keyboard handling for sorting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.getCanSort() &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e.key === \"Enter\" ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.key === \" \")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.getToggleSortingHandler()?.(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t\ttabIndex={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.getCanSort()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: undefined\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{flexRender(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.columnDef.header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.getContext()\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tasc: (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ChevronUpIcon\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"shrink-0 opacity-60\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize={16}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdesc: (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ChevronDownIcon\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"shrink-0 opacity-60\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsize={16}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t}[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.getIsSorted() as string\n\t\t\t\t\t\t\t\t\t\t\t\t\t] ?? null}\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\t\t\t\tflexRender(\n\t\t\t\t\t\t\t\t\t\t\t\t\theader.column.columnDef.header,\n\t\t\t\t\t\t\t\t\t\t\t\t\theader.getContext()\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t</TableHead>\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</TableHeader>\n\t\t\t\t\t<TableBody>\n\t\t\t\t\t\t{table.getRowModel().rows?.length ? (\n\t\t\t\t\t\t\ttable.getRowModel().rows.map((row) => (\n\t\t\t\t\t\t\t\t<TableRow\n\t\t\t\t\t\t\t\t\tkey={row.id}\n\t\t\t\t\t\t\t\t\tdata-state={row.getIsSelected() && \"selected\"}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{row.getVisibleCells().map((cell) => (\n\t\t\t\t\t\t\t\t\t\t<TableCell key={cell.id}>\n\t\t\t\t\t\t\t\t\t\t\t{flexRender(\n\t\t\t\t\t\t\t\t\t\t\t\tcell.column.columnDef.cell,\n\t\t\t\t\t\t\t\t\t\t\t\tcell.getContext()\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t</TableCell>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t\t\t))\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<TableRow>\n\t\t\t\t\t\t\t\t<TableCell\n\t\t\t\t\t\t\t\t\tcolSpan={columns.length}\n\t\t\t\t\t\t\t\t\tclassName=\"h-24 text-center\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tNo results.\n\t\t\t\t\t\t\t\t</TableCell>\n\t\t\t\t\t\t\t</TableRow>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</TableBody>\n\t\t\t\t</Table>\n\t\t\t</div>\n\n\t\t\t{/* Pagination */}\n\t\t\t<div className=\"flex items-center justify-between gap-8\">\n\t\t\t\t{/* Results per page */}\n\t\t\t\t<div className=\"flex items-center gap-3\">\n\t\t\t\t\t<Label htmlFor={id} className=\"max-sm:sr-only\">\n\t\t\t\t\t\tRows per page\n\t\t\t\t\t</Label>\n\t\t\t\t\t<Select\n\t\t\t\t\t\tvalue={table.getState().pagination.pageSize.toString()}\n\t\t\t\t\t\tonValueChange={(value) => {\n\t\t\t\t\t\t\ttable.setPageSize(Number(value));\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<SelectTrigger id={id} className=\"w-fit whitespace-nowrap\">\n\t\t\t\t\t\t\t<SelectValue placeholder=\"Select number of results\" />\n\t\t\t\t\t\t</SelectTrigger>\n\t\t\t\t\t\t<SelectContent className=\"[&_*[role=option]]:ps-2 [&_*[role=option]]:pe-8 [&_*[role=option]>span]:start-auto [&_*[role=option]>span]:inset-e-2\">\n\t\t\t\t\t\t\t{[5, 10, 25, 50].map((pageSize) => (\n\t\t\t\t\t\t\t\t<SelectItem key={pageSize} value={pageSize.toString()}>\n\t\t\t\t\t\t\t\t\t{pageSize}\n\t\t\t\t\t\t\t\t</SelectItem>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t</SelectContent>\n\t\t\t\t\t</Select>\n\t\t\t\t</div>\n\t\t\t\t{/* Page number information */}\n\t\t\t\t<div className=\"text-muted-foreground flex grow justify-end text-sm whitespace-nowrap\">\n\t\t\t\t\t<p\n\t\t\t\t\t\tclassName=\"text-muted-foreground text-sm whitespace-nowrap\"\n\t\t\t\t\t\taria-live=\"polite\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<span className=\"text-foreground\">\n\t\t\t\t\t\t\t{table.getState().pagination.pageIndex *\n\t\t\t\t\t\t\t\ttable.getState().pagination.pageSize +\n\t\t\t\t\t\t\t\t1}\n\t\t\t\t\t\t\t-\n\t\t\t\t\t\t\t{Math.min(\n\t\t\t\t\t\t\t\tMath.max(\n\t\t\t\t\t\t\t\t\ttable.getState().pagination.pageIndex *\n\t\t\t\t\t\t\t\t\t\ttable.getState().pagination.pageSize +\n\t\t\t\t\t\t\t\t\t\ttable.getState().pagination.pageSize,\n\t\t\t\t\t\t\t\t\t0\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\ttable.getRowCount()\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</span>{\" \"}\n\t\t\t\t\t\tof{\" \"}\n\t\t\t\t\t\t<span className=\"text-foreground\">\n\t\t\t\t\t\t\t{table.getRowCount().toString()}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t{/* Pagination buttons */}\n\t\t\t\t<div>\n\t\t\t\t\t<Pagination>\n\t\t\t\t\t\t<PaginationContent>\n\t\t\t\t\t\t\t{/* First page button */}\n\t\t\t\t\t\t\t<PaginationItem>\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\t\tclassName=\"disabled:pointer-events-none disabled:opacity-50\"\n\t\t\t\t\t\t\t\t\tonClick={() => table.firstPage()}\n\t\t\t\t\t\t\t\t\tdisabled={!table.getCanPreviousPage()}\n\t\t\t\t\t\t\t\t\taria-label=\"Go to first page\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ChevronFirstIcon size={16} aria-hidden=\"true\" />\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</PaginationItem>\n\t\t\t\t\t\t\t{/* Previous page button */}\n\t\t\t\t\t\t\t<PaginationItem>\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\t\tclassName=\"disabled:pointer-events-none disabled:opacity-50\"\n\t\t\t\t\t\t\t\t\tonClick={() => table.previousPage()}\n\t\t\t\t\t\t\t\t\tdisabled={!table.getCanPreviousPage()}\n\t\t\t\t\t\t\t\t\taria-label=\"Go to previous page\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ChevronLeftIcon size={16} aria-hidden=\"true\" />\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</PaginationItem>\n\t\t\t\t\t\t\t{/* Next page button */}\n\t\t\t\t\t\t\t<PaginationItem>\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\t\tclassName=\"disabled:pointer-events-none disabled:opacity-50\"\n\t\t\t\t\t\t\t\t\tonClick={() => table.nextPage()}\n\t\t\t\t\t\t\t\t\tdisabled={!table.getCanNextPage()}\n\t\t\t\t\t\t\t\t\taria-label=\"Go to next page\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ChevronRightIcon size={16} aria-hidden=\"true\" />\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</PaginationItem>\n\t\t\t\t\t\t\t{/* Last page button */}\n\t\t\t\t\t\t\t<PaginationItem>\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\t\tclassName=\"disabled:pointer-events-none disabled:opacity-50\"\n\t\t\t\t\t\t\t\t\tonClick={() => table.lastPage()}\n\t\t\t\t\t\t\t\t\tdisabled={!table.getCanNextPage()}\n\t\t\t\t\t\t\t\t\taria-label=\"Go to last page\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<ChevronLastIcon size={16} aria-hidden=\"true\" />\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</PaginationItem>\n\t\t\t\t\t\t</PaginationContent>\n\t\t\t\t\t</Pagination>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<p className=\"text-muted-foreground mt-4 text-center text-sm\">\n\t\t\t\tPaginated table made with{\" \"}\n\t\t\t\t<a\n\t\t\t\t\tclassName=\"hover:text-foreground underline\"\n\t\t\t\t\thref=\"https://tanstack.com/table\"\n\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t>\n\t\t\t\t\tTanStack Table\n\t\t\t\t</a>\n\t\t\t</p>\n\t\t</div>\n\t);\n}\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/badge.tsx",
      "content": "import React from \"react\";\r\n\r\nimport { cn } from \"@/registry/utilities/cn\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nconst badgeVariants = cva(\r\n\t\"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2\",\r\n\t{\r\n\t\tvariants: {\r\n\t\t\tvariant: {\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t\"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\r\n\t\t\t\tsecondary:\r\n\t\t\t\t\t\"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\r\n\t\t\t\tdestructive:\r\n\t\t\t\t\t\"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\r\n\t\t\t\toutline: \"text-foreground\",\r\n\t\t\t},\r\n\t\t},\r\n\t\tdefaultVariants: {\r\n\t\t\tvariant: \"default\",\r\n\t\t},\r\n\t}\r\n);\r\n\r\nexport interface BadgeProps\r\n\textends React.HTMLAttributes<HTMLDivElement>,\r\n\t\tVariantProps<typeof badgeVariants> {}\r\n\r\nfunction Badge({ className, variant, ...props }: BadgeProps) {\r\n\treturn (\r\n\t\t<div className={cn(badgeVariants({ variant }), className)} {...props} />\r\n\t);\r\n}\r\n\r\nexport { Badge, badgeVariants };\r\n",
      "type": "registry:ui"
    },
    {
      "path": "registry/utilities/cn.ts",
      "content": "import { ClassValue, clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n\treturn twMerge(clsx(inputs));\r\n}\r\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/button.tsx",
      "content": "import * as React from \"react\";\r\n\r\nimport { cn } from \"@/registry/utilities/cn\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nconst buttonVariants = cva(\r\n\t\"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm text-white hover:text-gray-400 font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\r\n\t{\r\n\t\tvariants: {\r\n\t\t\tvariant: {\r\n\t\t\t\tsimple:\r\n\t\t\t\t\t\"bg-secondary relative z-10 bg-transparent hover:border-secondary hover:bg-secondary/50  border border-transparent dark:text-white text-sm md:text-sm transition font-medium duration-200  rounded-md px-4 py-2  flex items-center justify-center\",\r\n\t\t\t\tdefault: \"bg-primary text-primary-foreground hover:bg-primary/90\",\r\n\t\t\t\tdestructive:\r\n\t\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\r\n\t\t\t\toutline:\r\n\t\t\t\t\t\"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\r\n\t\t\t\tsecondary:\r\n\t\t\t\t\t\"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\r\n\t\t\t\tghost: \"hover:bg-accent hover:text-black hover:stroke-black dark:text-white text-black\",\r\n\t\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\r\n\t\t\t},\r\n\t\t\tsize: {\r\n\t\t\t\tdefault: \"h-10 px-4 py-2\",\r\n\t\t\t\tsm: \"h-9 rounded-md px-3\",\r\n\t\t\t\tlg: \"h-11 rounded-md px-8\",\r\n\t\t\t\ticon: \"h-10 w-10\",\r\n\t\t\t},\r\n\t\t},\r\n\t\tdefaultVariants: {\r\n\t\t\tvariant: \"default\",\r\n\t\t\tsize: \"default\",\r\n\t\t},\r\n\t}\r\n);\r\n\r\nexport interface ButtonProps\r\n\textends React.ButtonHTMLAttributes<HTMLButtonElement>,\r\n\t\tVariantProps<typeof buttonVariants> {\r\n\tasChild?: boolean;\r\n}\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\r\n\t({ className, variant, size, asChild = false, ...props }, ref) => {\r\n\t\tconst Comp = asChild ? Slot : \"button\";\r\n\t\treturn (\r\n\t\t\t<Comp\r\n\t\t\t\tclassName={cn(buttonVariants({ variant, size, className }))}\r\n\t\t\t\tref={ref}\r\n\t\t\t\t{...props}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n);\r\nButton.displayName = \"Button\";\r\n\r\nexport { Button, buttonVariants };\r\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/checkbox.tsx",
      "content": "\"use client\";\r\n\r\nimport React from \"react\";\r\n\r\nimport { cn } from \"@/registry/utilities/cn\";\r\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\r\nimport { Check } from \"lucide-react\";\r\n\r\nconst Checkbox = React.forwardRef<\r\n\tReact.ElementRef<typeof CheckboxPrimitive.Root>,\r\n\tReact.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\r\n>(({ className, ...props }, ref) => (\r\n\t<CheckboxPrimitive.Root\r\n\t\tref={ref}\r\n\t\tclassName={cn(\r\n\t\t\t\"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground\",\r\n\t\t\tclassName\r\n\t\t)}\r\n\t\t{...props}\r\n\t>\r\n\t\t<CheckboxPrimitive.Indicator\r\n\t\t\tclassName={cn(\"flex items-center justify-center text-current\")}\r\n\t\t>\r\n\t\t\t<Check className=\"h-4 w-4\" />\r\n\t\t</CheckboxPrimitive.Indicator>\r\n\t</CheckboxPrimitive.Root>\r\n));\r\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\r\n\r\nexport { Checkbox };\r\n",
      "type": "registry:ui"
    },
    {
      "path": "components/ui/label.tsx",
      "content": "\"use client\";\n\nimport React from \"react\";\n\nimport { cn } from \"@/registry/utilities/cn\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nconst labelVariants = cva(\n\t\"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n);\n\nconst Label = React.forwardRef<\n\tReact.ElementRef<typeof LabelPrimitive.Root>,\n\tReact.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n\t\tVariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n\t<LabelPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cn(labelVariants(), className)}\n\t\t{...props}\n\t/>\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n",
      "type": "registry:ui"
    }
  ]
}