@loafmarkets/ui 0.1.399 → 0.1.400
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1093,7 +1093,7 @@ type ToastData = {
|
|
|
1093
1093
|
amount?: string;
|
|
1094
1094
|
/** On-chain tx hash — shown truncated with a block explorer link */
|
|
1095
1095
|
txHash?: string;
|
|
1096
|
-
/** Explorer base URL, defaults to
|
|
1096
|
+
/** Explorer base URL, defaults to Arbitrum Sepolia */
|
|
1097
1097
|
explorerUrl?: string;
|
|
1098
1098
|
/** Auto-dismiss after ms. 0 = never. Default 6000 */
|
|
1099
1099
|
duration?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1093,7 +1093,7 @@ type ToastData = {
|
|
|
1093
1093
|
amount?: string;
|
|
1094
1094
|
/** On-chain tx hash — shown truncated with a block explorer link */
|
|
1095
1095
|
txHash?: string;
|
|
1096
|
-
/** Explorer base URL, defaults to
|
|
1096
|
+
/** Explorer base URL, defaults to Arbitrum Sepolia */
|
|
1097
1097
|
explorerUrl?: string;
|
|
1098
1098
|
/** Auto-dismiss after ms. 0 = never. Default 6000 */
|
|
1099
1099
|
duration?: number;
|
package/dist/index.js
CHANGED
|
@@ -7706,12 +7706,12 @@ var LoginPopup = ({
|
|
|
7706
7706
|
marginBottom: "1.25rem"
|
|
7707
7707
|
}, children: [
|
|
7708
7708
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: 7, height: 7, borderRadius: "50%", background: "#0052FF", flexShrink: 0 } }),
|
|
7709
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.72rem", fontWeight: 600, color: "#6b9fff", letterSpacing: "0.02em" }, children: "
|
|
7709
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "0.72rem", fontWeight: 600, color: "#6b9fff", letterSpacing: "0.02em" }, children: "Arbitrum Sepolia" })
|
|
7710
7710
|
] }),
|
|
7711
7711
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: { fontSize: "0.82rem", color: "rgba(255,255,255,0.5)", textAlign: "center", marginBottom: "1.1rem", lineHeight: 1.5, maxWidth: 320 }, children: [
|
|
7712
7712
|
"Send ",
|
|
7713
7713
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "rgba(255,255,255,0.8)" }, children: "USDC" }),
|
|
7714
|
-
" on
|
|
7714
|
+
" on Arbitrum Sepolia to the address below. Only send on this network."
|
|
7715
7715
|
] }),
|
|
7716
7716
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: {
|
|
7717
7717
|
width: "100%",
|
|
@@ -10368,13 +10368,13 @@ function PropertyOverview({
|
|
|
10368
10368
|
const resolvedPropertyType = rawPropertyType?.toLowerCase() === "house" ? "Residential" : rawPropertyType;
|
|
10369
10369
|
const galleryImages = images ?? [];
|
|
10370
10370
|
const chainValue = /* @__PURE__ */ jsxRuntime.jsxs(ChainLogos, { children: [
|
|
10371
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChainLogoImg, { src: "/
|
|
10371
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChainLogoImg, { src: "/Arbitrum-Symbol.svg", alt: "Arbitrum" }),
|
|
10372
10372
|
/* @__PURE__ */ jsxRuntime.jsx(ChainLogoImg, { src: "/Ethereum-Logo.png", alt: "Ethereum", style: { filter: "brightness(0) invert(1)" } }),
|
|
10373
10373
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: chain })
|
|
10374
10374
|
] });
|
|
10375
10375
|
const tokenDetailsItems = [
|
|
10376
10376
|
{ label: "Chain", value: chainValue },
|
|
10377
|
-
{ label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://sepolia.
|
|
10377
|
+
{ label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://sepolia.arbiscan.io/address/${contractAddress}` : void 0, copyValue: contractAddress },
|
|
10378
10378
|
{ label: "Token Ticker", value: ticker ?? "\u2014" },
|
|
10379
10379
|
{ label: "Total Circulating Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
|
|
10380
10380
|
{ label: "Legal Structuring", value: "See Documents", docLink: true },
|
|
@@ -14895,7 +14895,7 @@ var getOrderStatusMeta = (statusRaw) => {
|
|
|
14895
14895
|
return { color: "#E6C87E", bg: "rgba(240,185,11,0.15)" };
|
|
14896
14896
|
};
|
|
14897
14897
|
var ChevronDown = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255,255,255,0.5)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "6 9 12 15 18 9" }) });
|
|
14898
|
-
var
|
|
14898
|
+
var ArbiscanIconLink = ({ url }) => /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: url, target: "_blank", rel: "noopener noreferrer", title: "View on Arbiscan", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "13", height: "13", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
14899
14899
|
/* @__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" }),
|
|
14900
14900
|
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "15 3 21 3 21 9" }),
|
|
14901
14901
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
@@ -14920,7 +14920,7 @@ function PortfolioActivityPanel({
|
|
|
14920
14920
|
defaultTab,
|
|
14921
14921
|
onTabChange,
|
|
14922
14922
|
pageSize = ACTIVITY_PAGE_SIZE_DEFAULT,
|
|
14923
|
-
blockExplorerBaseUrl: _blockExplorerBaseUrl = "https://sepolia.
|
|
14923
|
+
blockExplorerBaseUrl: _blockExplorerBaseUrl = "https://sepolia.arbiscan.io/tx",
|
|
14924
14924
|
className,
|
|
14925
14925
|
style
|
|
14926
14926
|
}) {
|
|
@@ -15364,7 +15364,7 @@ function PortfolioActivityPanel({
|
|
|
15364
15364
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: "0.35rem" }, children: [
|
|
15365
15365
|
formatNumber2(order.quantity),
|
|
15366
15366
|
order.ticker && /* @__PURE__ */ jsxRuntime.jsx(TickerTag, { style: { marginLeft: 0 }, children: order.ticker.toUpperCase() }),
|
|
15367
|
-
order.txHash && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15367
|
+
order.txHash && /* @__PURE__ */ jsxRuntime.jsx(ArbiscanIconLink, { url: `${_blockExplorerBaseUrl}/${order.txHash}` })
|
|
15368
15368
|
] })
|
|
15369
15369
|
] }),
|
|
15370
15370
|
/* @__PURE__ */ jsxRuntime.jsxs(CUnitsCell, { children: [
|
|
@@ -15417,7 +15417,7 @@ function PortfolioActivityPanel({
|
|
|
15417
15417
|
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 })
|
|
15418
15418
|
] }),
|
|
15419
15419
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: formatTimestamp(order.createdAt) }) }),
|
|
15420
|
-
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: order.txHash && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: `${_blockExplorerBaseUrl}/${order.txHash}`, target: "_blank", rel: "noopener noreferrer", title: "View on
|
|
15420
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: order.txHash && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: `${_blockExplorerBaseUrl}/${order.txHash}`, target: "_blank", rel: "noopener noreferrer", title: "View on Arbiscan", 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: [
|
|
15421
15421
|
/* @__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" }),
|
|
15422
15422
|
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "15 3 21 3 21 9" }),
|
|
15423
15423
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
@@ -15661,7 +15661,7 @@ function PortfolioActivityPanel({
|
|
|
15661
15661
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { display: "inline-flex", alignItems: "center", gap: "0.35rem" }, children: [
|
|
15662
15662
|
formatNumber2(trade.quantity),
|
|
15663
15663
|
trade.ticker && /* @__PURE__ */ jsxRuntime.jsx(TickerTag, { style: { marginLeft: 0 }, children: trade.ticker.toUpperCase() }),
|
|
15664
|
-
trade.txHash && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15664
|
+
trade.txHash && /* @__PURE__ */ jsxRuntime.jsx(ArbiscanIconLink, { url: `${_blockExplorerBaseUrl}/${trade.txHash}` })
|
|
15665
15665
|
] })
|
|
15666
15666
|
] }),
|
|
15667
15667
|
/* @__PURE__ */ jsxRuntime.jsxs(CUnitsCell, { children: [
|
|
@@ -15728,7 +15728,7 @@ function PortfolioActivityPanel({
|
|
|
15728
15728
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { children: formatCurrency4(trade.price * trade.quantity) }) }),
|
|
15729
15729
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: settlementMeta ? /* @__PURE__ */ jsxRuntime.jsx(ActivityTag, { $color: settlementMeta.color, $bg: settlementMeta.bg, children: settlementLabel }) : /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: "\u2014" }) }),
|
|
15730
15730
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: formatTimestamp(trade.executedAt) }) }),
|
|
15731
|
-
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: trade.txHash && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: `${_blockExplorerBaseUrl}/${trade.txHash}`, target: "_blank", rel: "noopener noreferrer", title: "View on
|
|
15731
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: trade.txHash && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: `${_blockExplorerBaseUrl}/${trade.txHash}`, target: "_blank", rel: "noopener noreferrer", title: "View on Arbiscan", 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: [
|
|
15732
15732
|
/* @__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" }),
|
|
15733
15733
|
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "15 3 21 3 21 9" }),
|
|
15734
15734
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
@@ -15775,7 +15775,7 @@ function PortfolioActivityPanel({
|
|
|
15775
15775
|
/* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: formatTimestamp(t.createdAt) })
|
|
15776
15776
|
] })
|
|
15777
15777
|
] }),
|
|
15778
|
-
txUrl && /* @__PURE__ */ jsxRuntime.jsx(CExpandedLink, { href: txUrl, target: "_blank", rel: "noopener noreferrer", children: "View on
|
|
15778
|
+
txUrl && /* @__PURE__ */ jsxRuntime.jsx(CExpandedLink, { href: txUrl, target: "_blank", rel: "noopener noreferrer", children: "View on Arbiscan \u2197" })
|
|
15779
15779
|
] })
|
|
15780
15780
|
] }, rowKey);
|
|
15781
15781
|
}),
|
|
@@ -15801,7 +15801,7 @@ function PortfolioActivityPanel({
|
|
|
15801
15801
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: formatAddress(t.address) }) }),
|
|
15802
15802
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(ActivityTag, { $color: statusMeta.color, $bg: statusMeta.bg, children: prettyLabel(t.status) }) }),
|
|
15803
15803
|
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: /* @__PURE__ */ jsxRuntime.jsx(CellText, { $muted: true, children: formatTimestamp(t.createdAt) }) }),
|
|
15804
|
-
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: txUrl && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: txUrl, target: "_blank", rel: "noopener noreferrer", title: "View on
|
|
15804
|
+
/* @__PURE__ */ jsxRuntime.jsx(GridCell, { children: txUrl && /* @__PURE__ */ jsxRuntime.jsx(TxLink, { href: txUrl, target: "_blank", rel: "noopener noreferrer", title: "View on Arbiscan", 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: [
|
|
15805
15805
|
/* @__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" }),
|
|
15806
15806
|
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "15 3 21 3 21 9" }),
|
|
15807
15807
|
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
|
|
@@ -19468,7 +19468,7 @@ var Container3 = styled10__default.default.div`
|
|
|
19468
19468
|
gap: 8px;
|
|
19469
19469
|
}
|
|
19470
19470
|
`;
|
|
19471
|
-
var DEFAULT_EXPLORER = "https://sepolia.
|
|
19471
|
+
var DEFAULT_EXPLORER = "https://sepolia.arbiscan.io/tx/";
|
|
19472
19472
|
function truncateHash(hash) {
|
|
19473
19473
|
return `${hash.slice(0, 6)}\u2026${hash.slice(-4)}`;
|
|
19474
19474
|
}
|