@loafmarkets/ui 0.1.410 → 0.1.411

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
@@ -1615,12 +1615,23 @@ var StatusDot = styled10.span`
1615
1615
  width: 6px;
1616
1616
  height: 6px;
1617
1617
  border-radius: 50%;
1618
- background: #0ecb81;
1619
1618
  flex-shrink: 0;
1620
- animation: ${breathe} 3s ease-in-out infinite;
1619
+
1620
+ ${({ $state }) => $state === "active" ? css`
1621
+ background: #0ecb81;
1622
+ animation: ${breathe} 3s ease-in-out infinite;
1623
+ ` : $state === "reduced" ? css`
1624
+ background: #e6c87e;
1625
+ box-shadow: 0 0 4px rgba(240, 185, 11, 0.4);
1626
+ ` : $state === "free" ? css`
1627
+ background: #f6465d;
1628
+ box-shadow: 0 0 4px rgba(246, 70, 93, 0.4);
1629
+ ` : css`
1630
+ background: rgba(255, 255, 255, 0.3);
1631
+ `}
1621
1632
  `;
1622
1633
  var LoafLiquidityBadge = React5.forwardRef(
1623
- ({ className, isGlowing, onClick, children, ...props }, ref) => {
1634
+ ({ className, isGlowing, status = "unknown", onClick, children, ...props }, ref) => {
1624
1635
  return /* @__PURE__ */ jsxs(
1625
1636
  LogoContainer,
1626
1637
  {
@@ -1631,11 +1642,11 @@ var LoafLiquidityBadge = React5.forwardRef(
1631
1642
  role: onClick ? "button" : void 0,
1632
1643
  ...props,
1633
1644
  children: [
1634
- /* @__PURE__ */ jsxs(LogoText, { children: [
1645
+ /* @__PURE__ */ jsxs(LogoText, { className: "loaf-ll-label", children: [
1635
1646
  /* @__PURE__ */ jsx(LoafLogoImage, { src: Loaf_logo_Banner_default, alt: "Loaf" }),
1636
1647
  /* @__PURE__ */ jsx(LiquidityText, { children: children ?? "Liquidity" })
1637
1648
  ] }),
1638
- /* @__PURE__ */ jsx(StatusDot, {})
1649
+ /* @__PURE__ */ jsx(StatusDot, { $state: status, "data-liquidity": status })
1639
1650
  ]
1640
1651
  }
1641
1652
  );
@@ -1882,13 +1893,21 @@ var Orderbook = React5.forwardRef(
1882
1893
  isLoading = false,
1883
1894
  onPriceClick,
1884
1895
  onLoafLiquidityClick,
1896
+ liquidityStatus,
1885
1897
  tradeExplorerUrl,
1886
1898
  maxLevels,
1887
1899
  fillHeight = false,
1888
1900
  className,
1889
1901
  ...props
1890
1902
  }, ref) => {
1891
- const resolvedRightHeader = rightHeader ?? /* @__PURE__ */ jsx(LoafLiquidityBadge, { className: "text-[0.6rem] orderbook-ll-badge", onClick: onLoafLiquidityClick });
1903
+ const resolvedRightHeader = rightHeader ?? /* @__PURE__ */ jsx(
1904
+ LoafLiquidityBadge,
1905
+ {
1906
+ className: "text-[0.6rem] orderbook-ll-badge",
1907
+ onClick: onLoafLiquidityClick,
1908
+ status: liquidityStatus
1909
+ }
1910
+ );
1892
1911
  const [tab, setTabState] = React5.useState(defaultTab);
1893
1912
  const setTab = setTabState;
1894
1913
  const effectiveTab = showTradesTab ? tab : "orderbook";