@arbidocs/blocks 0.3.164 → 0.3.165
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -480,9 +480,10 @@ declare function EmptyState({ icon: Icon, title, description, action, className,
|
|
|
480
480
|
|
|
481
481
|
/**
|
|
482
482
|
* One labelled quota meter: icon + label on the left, used-of-limit on the
|
|
483
|
-
* right, a thin bar underneath. The bar's tone follows pressure
|
|
484
|
-
*
|
|
485
|
-
*
|
|
483
|
+
* right, a thin bar underneath. The bar's tone follows pressure with the shared
|
|
484
|
+
* green → yellow → red gradation — green while there's room, yellow past the
|
|
485
|
+
* halfway mark, red at the limit — so a stack of meters reads at a glance which
|
|
486
|
+
* quota is the one to think about.
|
|
486
487
|
*/
|
|
487
488
|
declare function UsageMeter({ icon: Icon, label, value, pct, hint, className, testId, }: {
|
|
488
489
|
icon?: LucideIcon;
|
package/dist/index.d.ts
CHANGED
|
@@ -480,9 +480,10 @@ declare function EmptyState({ icon: Icon, title, description, action, className,
|
|
|
480
480
|
|
|
481
481
|
/**
|
|
482
482
|
* One labelled quota meter: icon + label on the left, used-of-limit on the
|
|
483
|
-
* right, a thin bar underneath. The bar's tone follows pressure
|
|
484
|
-
*
|
|
485
|
-
*
|
|
483
|
+
* right, a thin bar underneath. The bar's tone follows pressure with the shared
|
|
484
|
+
* green → yellow → red gradation — green while there's room, yellow past the
|
|
485
|
+
* halfway mark, red at the limit — so a stack of meters reads at a glance which
|
|
486
|
+
* quota is the one to think about.
|
|
486
487
|
*/
|
|
487
488
|
declare function UsageMeter({ icon: Icon, label, value, pct, hint, className, testId, }: {
|
|
488
489
|
icon?: LucideIcon;
|
package/dist/index.js
CHANGED
|
@@ -1049,7 +1049,7 @@ function UsageMeter({
|
|
|
1049
1049
|
testId
|
|
1050
1050
|
}) {
|
|
1051
1051
|
const clamped = Math.max(0, Math.min(100, pct2));
|
|
1052
|
-
const tone = clamped >= 100 ? "bg-
|
|
1052
|
+
const tone = clamped >= 100 ? "bg-red-500" : clamped >= 50 ? "bg-yellow-500" : "bg-green-500";
|
|
1053
1053
|
return /* @__PURE__ */ jsxs("div", { className: cn("space-y-1.5", className), "data-testid": testId, children: [
|
|
1054
1054
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
1055
1055
|
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1.5 text-muted-foreground", children: [
|