@loafmarkets/ui 0.1.285 → 0.1.286
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.js +64 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15186,34 +15186,53 @@ function PropertyBuy({
|
|
|
15186
15186
|
isPrivateClient
|
|
15187
15187
|
}
|
|
15188
15188
|
),
|
|
15189
|
-
/* @__PURE__ */ jsxs(
|
|
15190
|
-
/* @__PURE__ */
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
|
|
15198
|
-
|
|
15199
|
-
|
|
15200
|
-
|
|
15189
|
+
/* @__PURE__ */ jsxs(BottomRow, { children: [
|
|
15190
|
+
/* @__PURE__ */ jsx(ActivityWrapper, { children: /* @__PURE__ */ jsx(
|
|
15191
|
+
PortfolioActivityPanel,
|
|
15192
|
+
{
|
|
15193
|
+
positions: portfolioActivity?.positions,
|
|
15194
|
+
showPositionsTab: true,
|
|
15195
|
+
onPositionClick: portfolioActivity?.onPositionClick,
|
|
15196
|
+
offeringOrders: portfolioActivity?.offeringOrders,
|
|
15197
|
+
openOrders: portfolioActivity?.openOrders,
|
|
15198
|
+
orderHistory: portfolioActivity?.orderHistory,
|
|
15199
|
+
tradeHistory: portfolioActivity?.tradeHistory,
|
|
15200
|
+
transfers: portfolioActivity?.transfers,
|
|
15201
|
+
onCancelOrder: portfolioActivity?.onCancelOrder,
|
|
15202
|
+
cancellingOrderId: portfolioActivity?.cancellingOrderId,
|
|
15203
|
+
defaultTab: "subscriptions",
|
|
15204
|
+
pageSize: 6
|
|
15205
|
+
}
|
|
15206
|
+
) }),
|
|
15207
|
+
/* @__PURE__ */ jsxs(RecentOrderPanel, { children: [
|
|
15208
|
+
/* @__PURE__ */ jsxs("div", { className: "roa-header", children: [
|
|
15209
|
+
/* @__PURE__ */ jsxs("h3", { children: [
|
|
15210
|
+
/* @__PURE__ */ jsx(LiveDot, { $active: ipoStarted && !ipoEnded }),
|
|
15211
|
+
"Recent Order Activity"
|
|
15212
|
+
] }),
|
|
15213
|
+
/* @__PURE__ */ jsx("span", { children: ipoEnded ? `Sale ended${ordersAllocated > 0 ? ` \xB7 ${ordersAllocated.toLocaleString()} orders` : ""}` : ipoStarted ? isLoadingActivity && sortedOrders.length === 0 ? "Loading orders\u2026" : `Active orders: ${ordersAllocated.toLocaleString()}` : "Waiting for Offer to Open" })
|
|
15201
15214
|
] }),
|
|
15202
|
-
/* @__PURE__ */ jsx(
|
|
15203
|
-
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
return /* @__PURE__ */ jsxs(PurchaseItem, { $barWidth: `${barPercent}%`, $isAlternate: index % 2 === 1, children: [
|
|
15207
|
-
/* @__PURE__ */ jsxs(PurchaseInfo, { children: [
|
|
15208
|
-
/* @__PURE__ */ jsx(PurchaseName, { children: order.buyerHandle || `${order.buyerAddress.slice(0, 6)}...${order.buyerAddress.slice(-4)}` }),
|
|
15209
|
-
/* @__PURE__ */ jsx(PurchaseTime, { children: formatTimeAgo2(order.timestamp) })
|
|
15215
|
+
/* @__PURE__ */ jsx("div", { className: "roa-content", children: ipoStarted && isLoadingActivity && sortedOrders.length === 0 ? /* @__PURE__ */ jsx(FeedList, { children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsxs(SkeletonFeedRow, { children: [
|
|
15216
|
+
/* @__PURE__ */ jsxs("div", { className: "info-col", children: [
|
|
15217
|
+
/* @__PURE__ */ jsx(Skeleton, { width: 110, height: 14 }),
|
|
15218
|
+
/* @__PURE__ */ jsx(Skeleton, { width: 56, height: 10 })
|
|
15210
15219
|
] }),
|
|
15211
|
-
/* @__PURE__ */ jsx(
|
|
15212
|
-
] }, order
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15220
|
+
/* @__PURE__ */ jsx(Skeleton, { width: 70, height: 14 })
|
|
15221
|
+
] }, `skel-${i}`)) }) : ipoStarted || ipoEnded && sortedOrders.length > 0 ? /* @__PURE__ */ jsx(FeedList, { children: sortedOrders.map((order, index) => {
|
|
15222
|
+
const amount = tokenPrice * order.quantity;
|
|
15223
|
+
const barPercent = Math.min(85, Math.max(15, amount / 6e4 * 100));
|
|
15224
|
+
return /* @__PURE__ */ jsxs(PurchaseItem, { $barWidth: `${barPercent}%`, $isAlternate: index % 2 === 1, children: [
|
|
15225
|
+
/* @__PURE__ */ jsxs(PurchaseInfo, { children: [
|
|
15226
|
+
/* @__PURE__ */ jsx(PurchaseName, { children: order.buyerHandle || `${order.buyerAddress.slice(0, 6)}...${order.buyerAddress.slice(-4)}` }),
|
|
15227
|
+
/* @__PURE__ */ jsx(PurchaseTime, { children: formatTimeAgo2(order.timestamp) })
|
|
15228
|
+
] }),
|
|
15229
|
+
/* @__PURE__ */ jsx(PurchaseAmount, { children: formatOrderCurrency(amount) })
|
|
15230
|
+
] }, order.txHash);
|
|
15231
|
+
}) }) : ipoEnded ? /* @__PURE__ */ jsx("div", { className: "roa-empty", children: /* @__PURE__ */ jsx("p", { children: "Sale ended \u2014 no orders were placed." }) }) : /* @__PURE__ */ jsxs("div", { className: "roa-empty", children: [
|
|
15232
|
+
/* @__PURE__ */ jsx("div", { className: "roa-spinner" }),
|
|
15233
|
+
/* @__PURE__ */ jsx("p", { children: "Activity will appear once the Offering opens" })
|
|
15234
|
+
] }) })
|
|
15235
|
+
] })
|
|
15217
15236
|
] }),
|
|
15218
15237
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
15219
15238
|
/* @__PURE__ */ jsx(
|
|
@@ -15254,23 +15273,6 @@ function PropertyBuy({
|
|
|
15254
15273
|
purchaseError && /* @__PURE__ */ jsx("div", { style: { marginTop: "0.75rem", padding: "0.75rem 1rem", borderRadius: "8px", background: "rgba(246,70,93,0.1)", border: "1px solid rgba(246,70,93,0.3)", color: "#f6465d", fontSize: "0.8rem", fontWeight: 500 }, children: purchaseError })
|
|
15255
15274
|
] })
|
|
15256
15275
|
] }),
|
|
15257
|
-
/* @__PURE__ */ jsx(ActivityWrapper, { children: /* @__PURE__ */ jsx(
|
|
15258
|
-
PortfolioActivityPanel,
|
|
15259
|
-
{
|
|
15260
|
-
positions: portfolioActivity?.positions,
|
|
15261
|
-
showPositionsTab: true,
|
|
15262
|
-
onPositionClick: portfolioActivity?.onPositionClick,
|
|
15263
|
-
offeringOrders: portfolioActivity?.offeringOrders,
|
|
15264
|
-
openOrders: portfolioActivity?.openOrders,
|
|
15265
|
-
orderHistory: portfolioActivity?.orderHistory,
|
|
15266
|
-
tradeHistory: portfolioActivity?.tradeHistory,
|
|
15267
|
-
transfers: portfolioActivity?.transfers,
|
|
15268
|
-
onCancelOrder: portfolioActivity?.onCancelOrder,
|
|
15269
|
-
cancellingOrderId: portfolioActivity?.cancellingOrderId,
|
|
15270
|
-
defaultTab: "subscriptions",
|
|
15271
|
-
pageSize: 6
|
|
15272
|
-
}
|
|
15273
|
-
) }),
|
|
15274
15276
|
/* @__PURE__ */ jsxs(NewsVideoRow, { children: [
|
|
15275
15277
|
/* @__PURE__ */ jsx(
|
|
15276
15278
|
PropertyNewsUpdates,
|
|
@@ -15387,6 +15389,8 @@ var HeroGrid = styled9.div`
|
|
|
15387
15389
|
}
|
|
15388
15390
|
`;
|
|
15389
15391
|
var ActivityWrapper = styled9.div`
|
|
15392
|
+
flex: 1;
|
|
15393
|
+
min-width: 0;
|
|
15390
15394
|
background-color: var(--color-card-darker, #111);
|
|
15391
15395
|
border-radius: 8px;
|
|
15392
15396
|
padding: 1.5rem;
|
|
@@ -15401,7 +15405,19 @@ var ActivityWrapper = styled9.div`
|
|
|
15401
15405
|
min-height: auto;
|
|
15402
15406
|
}
|
|
15403
15407
|
`;
|
|
15408
|
+
var BottomRow = styled9.div`
|
|
15409
|
+
display: flex;
|
|
15410
|
+
gap: 1.5rem;
|
|
15411
|
+
align-items: stretch;
|
|
15412
|
+
@media (max-width: 1024px) {
|
|
15413
|
+
flex-direction: column;
|
|
15414
|
+
gap: 1rem;
|
|
15415
|
+
}
|
|
15416
|
+
`;
|
|
15404
15417
|
var RecentOrderPanel = styled9.div`
|
|
15418
|
+
flex: 0 0 auto;
|
|
15419
|
+
min-width: 380px;
|
|
15420
|
+
max-width: 480px;
|
|
15405
15421
|
background-color: var(--color-card-darker, #111);
|
|
15406
15422
|
border-radius: 8px;
|
|
15407
15423
|
padding: 1.5rem;
|
|
@@ -15410,6 +15426,11 @@ var RecentOrderPanel = styled9.div`
|
|
|
15410
15426
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
|
15411
15427
|
border: 1px solid var(--color-border);
|
|
15412
15428
|
overflow: hidden;
|
|
15429
|
+
@media (max-width: 1024px) {
|
|
15430
|
+
min-width: 0;
|
|
15431
|
+
max-width: none;
|
|
15432
|
+
width: 100%;
|
|
15433
|
+
}
|
|
15413
15434
|
@media (max-width: 768px) {
|
|
15414
15435
|
padding: 1rem;
|
|
15415
15436
|
}
|