{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "progress",
  "title": "Progress",
  "description": "Displays an indicator showing the completion progress of a task.",
  "dependencies": [
    "@base-ui/react",
    "clsx",
    "tailwind-merge"
  ],
  "registryDependencies": [
    "https://optics.agusmayol.com.ar/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/optics/progress.jsx",
      "content": "\"use client\";\n\nimport { Progress as ProgressPrimitive } from \"@base-ui/react/progress\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Progress({ className = \"\", children = null, value = 0, ...props }) {\n\treturn (\n\t\t<ProgressPrimitive.Root\n\t\t\tvalue={value}\n\t\t\tdata-slot=\"progress\"\n\t\t\tclassName={cn(\"flex flex-wrap gap-3\", className)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t\t<ProgressTrack>\n\t\t\t\t<ProgressIndicator />\n\t\t\t</ProgressTrack>\n\t\t</ProgressPrimitive.Root>\n\t);\n}\n\nfunction ProgressTrack({ className = \"\", ...props }) {\n\treturn (\n\t\t<ProgressPrimitive.Track\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted h-1 rounded-md relative flex w-full items-center overflow-x-hidden\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"progress-track\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ProgressIndicator({ className = \"\", ...props }) {\n\treturn (\n\t\t<ProgressPrimitive.Indicator\n\t\t\tdata-slot=\"progress-indicator\"\n\t\t\tclassName={cn(\"bg-primary h-full transition-all\", className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ProgressLabel({ className = \"\", ...props }) {\n\treturn (\n\t\t<ProgressPrimitive.Label\n\t\t\tclassName={cn(\"text-xs/relaxed font-medium\", className)}\n\t\t\tdata-slot=\"progress-label\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction ProgressValue({ className = \"\", ...props }) {\n\treturn (\n\t\t<ProgressPrimitive.Value\n\t\t\tclassName={cn(\n\t\t\t\t\"text-muted-foreground ml-auto text-xs/relaxed tabular-nums\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"progress-value\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nProgress.displayName = \"Progress\";\nProgressTrack.displayName = \"ProgressTrack\";\nProgressIndicator.displayName = \"ProgressIndicator\";\nProgressLabel.displayName = \"ProgressLabel\";\nProgressValue.displayName = \"ProgressValue\";\n\nexport {\n\tProgress,\n\tProgressTrack,\n\tProgressIndicator,\n\tProgressLabel,\n\tProgressValue,\n};\n",
      "type": "registry:component",
      "target": "components/optics/progress.jsx"
    }
  ],
  "type": "registry:component"
}