@arbidocs/blocks 0.3.164 → 0.3.166

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.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 quiet
484
- * primary normally, amber near the limit, destructive at it so a stack of
485
- * meters reads at a glance which quota is the one to think about.
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 quiet
484
- * primary normally, amber near the limit, destructive at it so a stack of
485
- * meters reads at a glance which quota is the one to think about.
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-destructive" : clamped >= 80 ? "bg-amber-500" : "bg-primary";
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: [