@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.
package/dist/index.mjs CHANGED
@@ -1738,7 +1738,16 @@ function StatBlock({ label, value, sub, delta, tone = "default", className }) {
1738
1738
  const toneClass = tone === "success" ? "text-success" : tone === "warning" ? "text-warning" : tone === "destructive" ? "text-destructive" : "text-foreground";
1739
1739
  return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", className), children: [
1740
1740
  /* @__PURE__ */ jsx("span", { className: "label-mono text-[10px]", children: label }),
1741
- /* @__PURE__ */ jsx("span", { className: cn("font-display text-2xl leading-none", toneClass), children: value }),
1741
+ /* @__PURE__ */ jsx(
1742
+ "span",
1743
+ {
1744
+ className: cn(
1745
+ "font-display text-2xl font-bold tracking-tight tabular-nums",
1746
+ toneClass
1747
+ ),
1748
+ children: value
1749
+ }
1750
+ ),
1742
1751
  /* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
1743
1752
  sub && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground font-mono text-[11px] tracking-wide lowercase", children: sub }),
1744
1753
  delta && /* @__PURE__ */ jsxs(
@@ -1791,10 +1800,19 @@ var BORDER_TONE = {
1791
1800
  primary: "border-primary/40 text-primary",
1792
1801
  info: "border-info/40 text-info"
1793
1802
  };
1803
+ var FILL_TONE = {
1804
+ success: "bg-success/10",
1805
+ warning: "bg-warning/10",
1806
+ destructive: "bg-destructive/10",
1807
+ muted: "bg-muted/30",
1808
+ primary: "bg-primary/10",
1809
+ info: "bg-info/10"
1810
+ };
1794
1811
  function StatusPill({
1795
1812
  label,
1796
1813
  tone = "muted",
1797
1814
  variant = "plain",
1815
+ filled = false,
1798
1816
  icon,
1799
1817
  className
1800
1818
  }) {
@@ -1805,6 +1823,7 @@ function StatusPill({
1805
1823
  className: cn(
1806
1824
  "inline-flex items-center gap-1.5 border px-1.5 py-0.5 font-mono text-[9px] tracking-widest uppercase",
1807
1825
  BORDER_TONE[tone],
1826
+ filled && FILL_TONE[tone],
1808
1827
  className
1809
1828
  ),
1810
1829
  children: [
@@ -1831,6 +1850,7 @@ function StatusPill({
1831
1850
  }
1832
1851
  function makeStatusPill(map, options) {
1833
1852
  const variant = options?.variant ?? "plain";
1853
+ const filled = options?.filled ?? false;
1834
1854
  const fallbackTone = options?.fallbackTone ?? "muted";
1835
1855
  function DomainStatusPill({ status, className }) {
1836
1856
  const spec = map[status];
@@ -1840,6 +1860,7 @@ function makeStatusPill(map, options) {
1840
1860
  tone: spec?.tone ?? fallbackTone,
1841
1861
  label: spec?.label ?? status,
1842
1862
  icon: spec?.icon,
1863
+ filled,
1843
1864
  variant,
1844
1865
  className
1845
1866
  }