@loafmarkets/ui 0.1.284 → 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 +66 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14886,6 +14886,7 @@ var CRow = styled9.button`
|
|
|
14886
14886
|
grid-template-columns: 1fr 1fr 1fr 24px;
|
|
14887
14887
|
align-items: center;
|
|
14888
14888
|
width: calc(100% - 1rem);
|
|
14889
|
+
max-width: 460px;
|
|
14889
14890
|
margin: 0.25rem 0.5rem;
|
|
14890
14891
|
margin-bottom: ${(p) => p.$expanded ? "0" : "0.25rem"};
|
|
14891
14892
|
padding: 0.55rem 0.65rem;
|
|
@@ -14953,6 +14954,7 @@ var CChevronWrap = styled9.span`
|
|
|
14953
14954
|
`;
|
|
14954
14955
|
var CExpandedWrap = styled9.div`
|
|
14955
14956
|
margin: 0 0.5rem 0.25rem;
|
|
14957
|
+
max-width: 460px;
|
|
14956
14958
|
padding: 0.4rem 0.65rem 0.5rem;
|
|
14957
14959
|
background: rgba(255, 255, 255, 0.035);
|
|
14958
14960
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
@@ -15184,34 +15186,53 @@ function PropertyBuy({
|
|
|
15184
15186
|
isPrivateClient
|
|
15185
15187
|
}
|
|
15186
15188
|
),
|
|
15187
|
-
/* @__PURE__ */ jsxs(
|
|
15188
|
-
/* @__PURE__ */
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
|
|
15198
|
-
|
|
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" })
|
|
15199
15214
|
] }),
|
|
15200
|
-
/* @__PURE__ */ jsx(
|
|
15201
|
-
|
|
15202
|
-
|
|
15203
|
-
|
|
15204
|
-
return /* @__PURE__ */ jsxs(PurchaseItem, { $barWidth: `${barPercent}%`, $isAlternate: index % 2 === 1, children: [
|
|
15205
|
-
/* @__PURE__ */ jsxs(PurchaseInfo, { children: [
|
|
15206
|
-
/* @__PURE__ */ jsx(PurchaseName, { children: order.buyerHandle || `${order.buyerAddress.slice(0, 6)}...${order.buyerAddress.slice(-4)}` }),
|
|
15207
|
-
/* @__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 })
|
|
15208
15219
|
] }),
|
|
15209
|
-
/* @__PURE__ */ jsx(
|
|
15210
|
-
] }, order
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
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
|
+
] })
|
|
15215
15236
|
] }),
|
|
15216
15237
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
15217
15238
|
/* @__PURE__ */ jsx(
|
|
@@ -15252,23 +15273,6 @@ function PropertyBuy({
|
|
|
15252
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 })
|
|
15253
15274
|
] })
|
|
15254
15275
|
] }),
|
|
15255
|
-
/* @__PURE__ */ jsx(ActivityWrapper, { children: /* @__PURE__ */ jsx(
|
|
15256
|
-
PortfolioActivityPanel,
|
|
15257
|
-
{
|
|
15258
|
-
positions: portfolioActivity?.positions,
|
|
15259
|
-
showPositionsTab: true,
|
|
15260
|
-
onPositionClick: portfolioActivity?.onPositionClick,
|
|
15261
|
-
offeringOrders: portfolioActivity?.offeringOrders,
|
|
15262
|
-
openOrders: portfolioActivity?.openOrders,
|
|
15263
|
-
orderHistory: portfolioActivity?.orderHistory,
|
|
15264
|
-
tradeHistory: portfolioActivity?.tradeHistory,
|
|
15265
|
-
transfers: portfolioActivity?.transfers,
|
|
15266
|
-
onCancelOrder: portfolioActivity?.onCancelOrder,
|
|
15267
|
-
cancellingOrderId: portfolioActivity?.cancellingOrderId,
|
|
15268
|
-
defaultTab: "subscriptions",
|
|
15269
|
-
pageSize: 6
|
|
15270
|
-
}
|
|
15271
|
-
) }),
|
|
15272
15276
|
/* @__PURE__ */ jsxs(NewsVideoRow, { children: [
|
|
15273
15277
|
/* @__PURE__ */ jsx(
|
|
15274
15278
|
PropertyNewsUpdates,
|
|
@@ -15385,6 +15389,8 @@ var HeroGrid = styled9.div`
|
|
|
15385
15389
|
}
|
|
15386
15390
|
`;
|
|
15387
15391
|
var ActivityWrapper = styled9.div`
|
|
15392
|
+
flex: 1;
|
|
15393
|
+
min-width: 0;
|
|
15388
15394
|
background-color: var(--color-card-darker, #111);
|
|
15389
15395
|
border-radius: 8px;
|
|
15390
15396
|
padding: 1.5rem;
|
|
@@ -15399,7 +15405,19 @@ var ActivityWrapper = styled9.div`
|
|
|
15399
15405
|
min-height: auto;
|
|
15400
15406
|
}
|
|
15401
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
|
+
`;
|
|
15402
15417
|
var RecentOrderPanel = styled9.div`
|
|
15418
|
+
flex: 0 0 auto;
|
|
15419
|
+
min-width: 380px;
|
|
15420
|
+
max-width: 480px;
|
|
15403
15421
|
background-color: var(--color-card-darker, #111);
|
|
15404
15422
|
border-radius: 8px;
|
|
15405
15423
|
padding: 1.5rem;
|
|
@@ -15408,6 +15426,11 @@ var RecentOrderPanel = styled9.div`
|
|
|
15408
15426
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
|
15409
15427
|
border: 1px solid var(--color-border);
|
|
15410
15428
|
overflow: hidden;
|
|
15429
|
+
@media (max-width: 1024px) {
|
|
15430
|
+
min-width: 0;
|
|
15431
|
+
max-width: none;
|
|
15432
|
+
width: 100%;
|
|
15433
|
+
}
|
|
15411
15434
|
@media (max-width: 768px) {
|
|
15412
15435
|
padding: 1rem;
|
|
15413
15436
|
}
|