@bubo-squared/ui-framework 0.2.26 → 0.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1154,7 +1154,7 @@ var Progress = React15.forwardRef(
1154
1154
  hint,
1155
1155
  ariaLabel,
1156
1156
  hideProgressLabel = false,
1157
- successBarColorOnComplete = false,
1157
+ useStatusColorOnComplete = false,
1158
1158
  hideHint,
1159
1159
  size = "lg",
1160
1160
  status = "default",
@@ -1199,7 +1199,7 @@ var Progress = React15.forwardRef(
1199
1199
  {
1200
1200
  className: cn(
1201
1201
  "h-full",
1202
- successBarColorOnComplete && clamped === 100 ? "bg-(--color-success)" : "bg-(--chart-brand)",
1202
+ useStatusColorOnComplete && clamped === 100 ? status === "success" ? "bg-(--color-success)" : status === "error" ? "bg-(--color-error)" : "bg-(--chart-brand)" : "bg-(--chart-brand)",
1203
1203
  size === "lg" ? "rounded-4" : size === "md" ? "rounded-2" : "rounded-[1px]"
1204
1204
  ),
1205
1205
  style: { width: `${clamped}%` }