@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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -242,8 +242,8 @@ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "ch
|
|
|
242
242
|
ariaLabel?: string;
|
|
243
243
|
/** If true, the progress percentage label will not be rendered. */
|
|
244
244
|
hideProgressLabel?: boolean;
|
|
245
|
-
/** If true, the bar turns
|
|
246
|
-
|
|
245
|
+
/** If true, the bar turns status color only when value reaches 100%. */
|
|
246
|
+
useStatusColorOnComplete?: boolean;
|
|
247
247
|
/** If true, the hint will not be rendered even if provided. */
|
|
248
248
|
hideHint?: boolean;
|
|
249
249
|
status?: ProgressStatus;
|
package/dist/index.d.ts
CHANGED
|
@@ -242,8 +242,8 @@ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "ch
|
|
|
242
242
|
ariaLabel?: string;
|
|
243
243
|
/** If true, the progress percentage label will not be rendered. */
|
|
244
244
|
hideProgressLabel?: boolean;
|
|
245
|
-
/** If true, the bar turns
|
|
246
|
-
|
|
245
|
+
/** If true, the bar turns status color only when value reaches 100%. */
|
|
246
|
+
useStatusColorOnComplete?: boolean;
|
|
247
247
|
/** If true, the hint will not be rendered even if provided. */
|
|
248
248
|
hideHint?: boolean;
|
|
249
249
|
status?: ProgressStatus;
|
package/dist/index.js
CHANGED
|
@@ -1072,7 +1072,7 @@ var Progress = React15.forwardRef(
|
|
|
1072
1072
|
hint,
|
|
1073
1073
|
ariaLabel,
|
|
1074
1074
|
hideProgressLabel = false,
|
|
1075
|
-
|
|
1075
|
+
useStatusColorOnComplete = false,
|
|
1076
1076
|
hideHint,
|
|
1077
1077
|
size = "lg",
|
|
1078
1078
|
status = "default",
|
|
@@ -1117,7 +1117,7 @@ var Progress = React15.forwardRef(
|
|
|
1117
1117
|
{
|
|
1118
1118
|
className: cn(
|
|
1119
1119
|
"h-full",
|
|
1120
|
-
|
|
1120
|
+
useStatusColorOnComplete && clamped === 100 ? status === "success" ? "bg-(--color-success)" : status === "error" ? "bg-(--color-error)" : "bg-(--chart-brand)" : "bg-(--chart-brand)",
|
|
1121
1121
|
size === "lg" ? "rounded-4" : size === "md" ? "rounded-2" : "rounded-[1px]"
|
|
1122
1122
|
),
|
|
1123
1123
|
style: { width: `${clamped}%` }
|