{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "progress",
  "type": "registry:ui",
  "title": "Progress",
  "description": "A thin bar that shows how far a task has come.",
  "categories": [
    "feedback"
  ],
  "dependencies": [
    "@base-ui/react@1.9.0"
  ],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/progress.tsx",
      "type": "registry:ui",
      "target": "components/ui/progress.tsx",
      "content": "'use client';\n\nimport { Progress as BaseProgress } from '@base-ui/react/progress';\nimport { stateClassName } from '@/lib/sprout/classes';\n\nexport type ProgressProps = BaseProgress.Root.Props;\n\nexport function Progress({ className, children, ...props }: ProgressProps) {\n  return (\n    <BaseProgress.Root\n      data-slot=\"progress\"\n      {...props}\n      className={stateClassName<BaseProgress.Root.State>('sprout-progress', className)}\n    >\n      {children}\n      <ProgressTrack>\n        <ProgressIndicator />\n      </ProgressTrack>\n    </BaseProgress.Root>\n  );\n}\n\nexport type ProgressTrackProps = BaseProgress.Track.Props;\n\nexport function ProgressTrack({ className, ...props }: ProgressTrackProps) {\n  return (\n    <BaseProgress.Track\n      data-slot=\"progress-track\"\n      {...props}\n      className={stateClassName<BaseProgress.Root.State>('sprout-progress-track', className)}\n    />\n  );\n}\n\nexport type ProgressIndicatorProps = BaseProgress.Indicator.Props;\n\nexport function ProgressIndicator({ className, ...props }: ProgressIndicatorProps) {\n  return (\n    <BaseProgress.Indicator\n      data-slot=\"progress-indicator\"\n      {...props}\n      className={stateClassName<BaseProgress.Root.State>('sprout-progress-indicator', className)}\n    />\n  );\n}\n\nexport type ProgressLabelProps = BaseProgress.Label.Props;\n\nexport function ProgressLabel({ className, ...props }: ProgressLabelProps) {\n  return (\n    <BaseProgress.Label\n      data-slot=\"progress-label\"\n      {...props}\n      className={stateClassName<BaseProgress.Root.State>('sprout-progress-label', className)}\n    />\n  );\n}\n\nexport type ProgressValueProps = BaseProgress.Value.Props;\n\nexport function ProgressValue({ className, ...props }: ProgressValueProps) {\n  return (\n    <BaseProgress.Value\n      data-slot=\"progress-value\"\n      {...props}\n      className={stateClassName<BaseProgress.Root.State>('sprout-progress-value', className)}\n    />\n  );\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-progress": {
        "--sprout-progress-direction": "1",
        "width": "100%",
        "min-width": "0",
        "font-family": "var(--sprout-font)",
        "flex-wrap": "wrap",
        "align-items": "baseline",
        "gap": "8px 12px",
        "display": "flex"
      },
      ".sprout-progress:dir(rtl)": {
        "--sprout-progress-direction": "-1"
      },
      ".sprout-progress-label": {
        "overflow-wrap": "anywhere",
        "min-width": "0",
        "font-size": "var(--sprout-text-sm)",
        "color": "var(--sprout-text)",
        "font-weight": "500",
        "line-height": "1.25rem"
      },
      ".sprout-progress-value": {
        "font-size": "var(--sprout-text-sm)",
        "font-variant-numeric": "tabular-nums",
        "color": "var(--sprout-muted)",
        "margin-inline-start": "auto",
        "line-height": "1.25rem"
      },
      ".sprout-progress-track": {
        "background-color": "var(--sprout-secondary)",
        "border-radius": "999px",
        "flex-basis": "100%",
        "align-items": "center",
        "width": "100%",
        "height": "4px",
        "display": "flex",
        "position": "relative",
        "overflow": "hidden"
      },
      ".sprout-progress-indicator": {
        "border-radius": "inherit",
        "background-color": "var(--sprout-primary)",
        "height": "100%"
      },
      ".sprout-progress-indicator[data-indeterminate]": {
        "width": "40%",
        "animation": "sprout-progress-slide 1.4s var(--sprout-motion-ease, ease-in-out) infinite",
        "position": "absolute",
        "inset-block": "0",
        "inset-inline-start": "0"
      },
      "@keyframes sprout-progress-slide": {
        "from": {
          "translate": "calc(-100% * var(--sprout-progress-direction)) 0"
        },
        "to": {
          "translate": "calc(250% * var(--sprout-progress-direction)) 0"
        }
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-progress-indicator": {
          "transition": "width var(--sprout-motion-normal, .18s) var(--sprout-motion-ease, ease-out)"
        }
      },
      "@media (prefers-reduced-motion: reduce)": {
        ".sprout-progress-indicator[data-indeterminate]": {
          "opacity": ".4",
          "width": "100%",
          "animation": "none"
        }
      },
      "@media (forced-colors: active)": {
        ".sprout-progress-track": {
          "background-color": "canvas",
          "border": "1px solid canvastext"
        },
        ".sprout-progress-indicator": {
          "background-color": "highlight"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/progress/",
  "meta": {
    "source": "packages/sprout/src/components/progress.tsx"
  }
}
