@orangecheck/design 0.7.2 → 0.7.4

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.
@@ -1366,7 +1366,16 @@ function StatBlock({ label, value, sub, delta, tone = "default", className }) {
1366
1366
  const toneClass = tone === "success" ? "text-success" : tone === "warning" ? "text-warning" : tone === "destructive" ? "text-destructive" : "text-foreground";
1367
1367
  return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", className), children: [
1368
1368
  /* @__PURE__ */ jsx("span", { className: "label-mono text-[10px]", children: label }),
1369
- /* @__PURE__ */ jsx("span", { className: cn("font-display text-2xl leading-none", toneClass), children: value }),
1369
+ /* @__PURE__ */ jsx(
1370
+ "span",
1371
+ {
1372
+ className: cn(
1373
+ "font-display text-2xl font-bold tracking-tight tabular-nums",
1374
+ toneClass
1375
+ ),
1376
+ children: value
1377
+ }
1378
+ ),
1370
1379
  /* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
1371
1380
  sub && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-mono text-[11px] tracking-wide lowercase", children: sub }),
1372
1381
  delta && /* @__PURE__ */ jsxs(
@@ -1419,10 +1428,19 @@ var BORDER_TONE = {
1419
1428
  primary: "border-primary/40 text-primary",
1420
1429
  info: "border-info/40 text-info"
1421
1430
  };
1431
+ var FILL_TONE = {
1432
+ success: "bg-success/10",
1433
+ warning: "bg-warning/10",
1434
+ destructive: "bg-destructive/10",
1435
+ muted: "bg-muted/30",
1436
+ primary: "bg-primary/10",
1437
+ info: "bg-info/10"
1438
+ };
1422
1439
  function StatusPill({
1423
1440
  label,
1424
1441
  tone = "muted",
1425
1442
  variant = "plain",
1443
+ filled = false,
1426
1444
  icon,
1427
1445
  className
1428
1446
  }) {
@@ -1433,6 +1451,7 @@ function StatusPill({
1433
1451
  className: cn(
1434
1452
  "inline-flex items-center gap-1.5 border px-1.5 py-0.5 font-mono text-[9px] tracking-widest uppercase",
1435
1453
  BORDER_TONE[tone],
1454
+ filled && FILL_TONE[tone],
1436
1455
  className
1437
1456
  ),
1438
1457
  children: [
@@ -1459,6 +1478,7 @@ function StatusPill({
1459
1478
  }
1460
1479
  function makeStatusPill(map, options) {
1461
1480
  const variant = options?.variant ?? "plain";
1481
+ const filled = options?.filled ?? false;
1462
1482
  const fallbackTone = options?.fallbackTone ?? "muted";
1463
1483
  function DomainStatusPill({ status, className }) {
1464
1484
  const spec = map[status];
@@ -1468,6 +1488,7 @@ function makeStatusPill(map, options) {
1468
1488
  tone: spec?.tone ?? fallbackTone,
1469
1489
  label: spec?.label ?? status,
1470
1490
  icon: spec?.icon,
1491
+ filled,
1471
1492
  variant,
1472
1493
  className
1473
1494
  }