@bubo-squared/ui-framework 0.2.25 → 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 +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -240,8 +240,10 @@ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "ch
|
|
|
240
240
|
hint?: React$1.ReactNode;
|
|
241
241
|
/** Optional accessible label for the progressbar (string-only). */
|
|
242
242
|
ariaLabel?: string;
|
|
243
|
-
/**
|
|
244
|
-
|
|
243
|
+
/** If true, the progress percentage label will not be rendered. */
|
|
244
|
+
hideProgressLabel?: boolean;
|
|
245
|
+
/** If true, the bar turns status color only when value reaches 100%. */
|
|
246
|
+
useStatusColorOnComplete?: boolean;
|
|
245
247
|
/** If true, the hint will not be rendered even if provided. */
|
|
246
248
|
hideHint?: boolean;
|
|
247
249
|
status?: ProgressStatus;
|
package/dist/index.d.ts
CHANGED
|
@@ -240,8 +240,10 @@ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "ch
|
|
|
240
240
|
hint?: React$1.ReactNode;
|
|
241
241
|
/** Optional accessible label for the progressbar (string-only). */
|
|
242
242
|
ariaLabel?: string;
|
|
243
|
-
/**
|
|
244
|
-
|
|
243
|
+
/** If true, the progress percentage label will not be rendered. */
|
|
244
|
+
hideProgressLabel?: boolean;
|
|
245
|
+
/** If true, the bar turns status color only when value reaches 100%. */
|
|
246
|
+
useStatusColorOnComplete?: boolean;
|
|
245
247
|
/** If true, the hint will not be rendered even if provided. */
|
|
246
248
|
hideHint?: boolean;
|
|
247
249
|
status?: ProgressStatus;
|
package/dist/index.js
CHANGED
|
@@ -1071,7 +1071,8 @@ var Progress = React15.forwardRef(
|
|
|
1071
1071
|
label,
|
|
1072
1072
|
hint,
|
|
1073
1073
|
ariaLabel,
|
|
1074
|
-
|
|
1074
|
+
hideProgressLabel = false,
|
|
1075
|
+
useStatusColorOnComplete = false,
|
|
1075
1076
|
hideHint,
|
|
1076
1077
|
size = "lg",
|
|
1077
1078
|
status = "default",
|
|
@@ -1087,7 +1088,7 @@ var Progress = React15.forwardRef(
|
|
|
1087
1088
|
Field,
|
|
1088
1089
|
{
|
|
1089
1090
|
label,
|
|
1090
|
-
labelRight:
|
|
1091
|
+
labelRight: !hideProgressLabel && label != null ? /* @__PURE__ */ jsx17("span", { className: "footnote text-(--color-secondary)", children: percentageLabel }) : void 0,
|
|
1091
1092
|
hint,
|
|
1092
1093
|
hideHint,
|
|
1093
1094
|
status,
|
|
@@ -1115,7 +1116,8 @@ var Progress = React15.forwardRef(
|
|
|
1115
1116
|
"div",
|
|
1116
1117
|
{
|
|
1117
1118
|
className: cn(
|
|
1118
|
-
"
|
|
1119
|
+
"h-full",
|
|
1120
|
+
useStatusColorOnComplete && clamped === 100 ? status === "success" ? "bg-(--color-success)" : status === "error" ? "bg-(--color-error)" : "bg-(--chart-brand)" : "bg-(--chart-brand)",
|
|
1119
1121
|
size === "lg" ? "rounded-4" : size === "md" ? "rounded-2" : "rounded-[1px]"
|
|
1120
1122
|
),
|
|
1121
1123
|
style: { width: `${clamped}%` }
|