@loafmarkets/ui 0.1.345 → 0.1.347

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.d.mts CHANGED
@@ -841,6 +841,7 @@ interface OfferingOrder {
841
841
  readonly price: number;
842
842
  readonly quantity: number;
843
843
  readonly status: string;
844
+ readonly rejectionReason?: string | null;
844
845
  readonly imageUrl?: string;
845
846
  readonly createdAt: number;
846
847
  }
package/dist/index.d.ts CHANGED
@@ -841,6 +841,7 @@ interface OfferingOrder {
841
841
  readonly price: number;
842
842
  readonly quantity: number;
843
843
  readonly status: string;
844
+ readonly rejectionReason?: string | null;
844
845
  readonly imageUrl?: string;
845
846
  readonly createdAt: number;
846
847
  }
package/dist/index.js CHANGED
@@ -5984,9 +5984,9 @@ var Button2 = styled9__default.default.button.attrs({ type: "button" })`
5984
5984
  }
5985
5985
 
5986
5986
  @media (max-width: 768px) {
5987
- padding: 0.65rem 1.25rem;
5988
- font-size: 0.9rem;
5989
- margin-left: 0.5rem;
5987
+ padding: 0.35rem 0.7rem;
5988
+ font-size: 0.78rem;
5989
+ margin-left: 0.35rem;
5990
5990
  }
5991
5991
  `;
5992
5992
  var UserMenu = styled9__default.default.div`
@@ -13908,7 +13908,10 @@ function PortfolioActivityPanel({
13908
13908
  /* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { children: formatNumber2(order.quantity) }) }),
13909
13909
  /* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: formatCurrency4(order.price) }) }),
13910
13910
  /* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { children: formatCurrency4(order.price * order.quantity) }) }),
13911
- /* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(ActivityTag, { $color: meta.color, $bg: meta.bg, children: prettyLabel(order.status) }) }),
13911
+ /* @__PURE__ */ jsxRuntime.jsxs(GridCell, { children: [
13912
+ /* @__PURE__ */ jsxRuntime.jsx(ActivityTag, { $color: meta.color, $bg: meta.bg, title: order.status === "REJECTED" && order.rejectionReason ? order.rejectionReason : void 0, children: prettyLabel(order.status) }),
13913
+ order.status === "REJECTED" && order.rejectionReason && /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, style: { fontSize: "0.62rem", marginTop: "0.2rem", maxWidth: "120px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, title: order.rejectionReason, children: order.rejectionReason })
13914
+ ] }),
13912
13915
  /* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: formatTimestamp(order.createdAt) }) }),
13913
13916
  /* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: order.txHash && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: `${_blockExplorerBaseUrl}/${order.txHash}`, target: "_blank", rel: "noopener noreferrer", title: "View on BaseScan", children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
13914
13917
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),