@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.
package/dist/index.mjs CHANGED
@@ -1791,10 +1791,19 @@ var BORDER_TONE = {
1791
1791
  primary: "border-primary/40 text-primary",
1792
1792
  info: "border-info/40 text-info"
1793
1793
  };
1794
+ var FILL_TONE = {
1795
+ success: "bg-success/10",
1796
+ warning: "bg-warning/10",
1797
+ destructive: "bg-destructive/10",
1798
+ muted: "bg-muted/30",
1799
+ primary: "bg-primary/10",
1800
+ info: "bg-info/10"
1801
+ };
1794
1802
  function StatusPill({
1795
1803
  label,
1796
1804
  tone = "muted",
1797
1805
  variant = "plain",
1806
+ filled = false,
1798
1807
  icon,
1799
1808
  className
1800
1809
  }) {
@@ -1805,6 +1814,7 @@ function StatusPill({
1805
1814
  className: cn(
1806
1815
  "inline-flex items-center gap-1.5 border px-1.5 py-0.5 font-mono text-[9px] tracking-widest uppercase",
1807
1816
  BORDER_TONE[tone],
1817
+ filled && FILL_TONE[tone],
1808
1818
  className
1809
1819
  ),
1810
1820
  children: [
@@ -1831,6 +1841,7 @@ function StatusPill({
1831
1841
  }
1832
1842
  function makeStatusPill(map, options) {
1833
1843
  const variant = options?.variant ?? "plain";
1844
+ const filled = options?.filled ?? false;
1834
1845
  const fallbackTone = options?.fallbackTone ?? "muted";
1835
1846
  function DomainStatusPill({ status, className }) {
1836
1847
  const spec = map[status];
@@ -1840,6 +1851,7 @@ function makeStatusPill(map, options) {
1840
1851
  tone: spec?.tone ?? fallbackTone,
1841
1852
  label: spec?.label ?? status,
1842
1853
  icon: spec?.icon,
1854
+ filled,
1843
1855
  variant,
1844
1856
  className
1845
1857
  }