@orangecheck/design 0.7.2 → 0.7.3

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.
@@ -1419,10 +1419,19 @@ var BORDER_TONE = {
1419
1419
  primary: "border-primary/40 text-primary",
1420
1420
  info: "border-info/40 text-info"
1421
1421
  };
1422
+ var FILL_TONE = {
1423
+ success: "bg-success/10",
1424
+ warning: "bg-warning/10",
1425
+ destructive: "bg-destructive/10",
1426
+ muted: "bg-muted/30",
1427
+ primary: "bg-primary/10",
1428
+ info: "bg-info/10"
1429
+ };
1422
1430
  function StatusPill({
1423
1431
  label,
1424
1432
  tone = "muted",
1425
1433
  variant = "plain",
1434
+ filled = false,
1426
1435
  icon,
1427
1436
  className
1428
1437
  }) {
@@ -1433,6 +1442,7 @@ function StatusPill({
1433
1442
  className: cn(
1434
1443
  "inline-flex items-center gap-1.5 border px-1.5 py-0.5 font-mono text-[9px] tracking-widest uppercase",
1435
1444
  BORDER_TONE[tone],
1445
+ filled && FILL_TONE[tone],
1436
1446
  className
1437
1447
  ),
1438
1448
  children: [
@@ -1459,6 +1469,7 @@ function StatusPill({
1459
1469
  }
1460
1470
  function makeStatusPill(map, options) {
1461
1471
  const variant = options?.variant ?? "plain";
1472
+ const filled = options?.filled ?? false;
1462
1473
  const fallbackTone = options?.fallbackTone ?? "muted";
1463
1474
  function DomainStatusPill({ status, className }) {
1464
1475
  const spec = map[status];
@@ -1468,6 +1479,7 @@ function makeStatusPill(map, options) {
1468
1479
  tone: spec?.tone ?? fallbackTone,
1469
1480
  label: spec?.label ?? status,
1470
1481
  icon: spec?.icon,
1482
+ filled,
1471
1483
  variant,
1472
1484
  className
1473
1485
  }