@loafmarkets/ui 0.1.282 → 0.1.284
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 +38 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13895,15 +13895,17 @@ function PortfolioActivityPanel({
|
|
|
13895
13895
|
] }),
|
|
13896
13896
|
/* @__PURE__ */ jsxRuntime.jsxs(CPnlCell, { children: [
|
|
13897
13897
|
/* @__PURE__ */ jsxRuntime.jsx(CCellLabel, { children: "PNL (%)" }),
|
|
13898
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13898
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CPnlLine, { children: [
|
|
13899
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CPnlValue, { $positive: isPositive, children: [
|
|
13900
|
+
isPositive ? "+" : "-",
|
|
13901
|
+
formatCurrency4(Math.abs(pnl))
|
|
13902
|
+
] }),
|
|
13903
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CPnlPct, { $positive: isPositive, children: [
|
|
13904
|
+
"(",
|
|
13905
|
+
isPositive ? "+" : "",
|
|
13906
|
+
pnlPercent.toFixed(1),
|
|
13907
|
+
"%)"
|
|
13908
|
+
] })
|
|
13907
13909
|
] })
|
|
13908
13910
|
] }),
|
|
13909
13911
|
/* @__PURE__ */ jsxRuntime.jsx(CChevronWrap, { $open: posExpanded, children: /* @__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" }) }) })
|
|
@@ -14953,16 +14955,20 @@ var CUnitsCell = styled9__default.default.div`
|
|
|
14953
14955
|
font-variant-numeric: tabular-nums;
|
|
14954
14956
|
`;
|
|
14955
14957
|
var CPnlCell = styled9__default.default.div``;
|
|
14956
|
-
var
|
|
14958
|
+
var CPnlLine = styled9__default.default.div`
|
|
14959
|
+
display: flex;
|
|
14960
|
+
align-items: baseline;
|
|
14961
|
+
gap: 4px;
|
|
14962
|
+
`;
|
|
14963
|
+
var CPnlValue = styled9__default.default.span`
|
|
14957
14964
|
font-size: 0.78rem;
|
|
14958
14965
|
font-weight: 600;
|
|
14959
14966
|
color: ${(p) => p.$positive ? "#0ecb81" : "#f6465d"};
|
|
14960
14967
|
font-variant-numeric: tabular-nums;
|
|
14961
14968
|
`;
|
|
14962
|
-
var CPnlPct = styled9__default.default.
|
|
14969
|
+
var CPnlPct = styled9__default.default.span`
|
|
14963
14970
|
font-size: 0.62rem;
|
|
14964
14971
|
color: ${(p) => p.$positive ? "rgba(14, 203, 129, 0.65)" : "rgba(246, 70, 93, 0.65)"};
|
|
14965
|
-
margin-top: 1px;
|
|
14966
14972
|
`;
|
|
14967
14973
|
var CChevronWrap = styled9__default.default.span`
|
|
14968
14974
|
display: flex;
|
|
@@ -15233,23 +15239,6 @@ function PropertyBuy({
|
|
|
15233
15239
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Activity will appear once the Offering opens" })
|
|
15234
15240
|
] }) })
|
|
15235
15241
|
] }),
|
|
15236
|
-
/* @__PURE__ */ jsxRuntime.jsx(ActivityWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15237
|
-
PortfolioActivityPanel,
|
|
15238
|
-
{
|
|
15239
|
-
positions: portfolioActivity?.positions,
|
|
15240
|
-
showPositionsTab: true,
|
|
15241
|
-
onPositionClick: portfolioActivity?.onPositionClick,
|
|
15242
|
-
offeringOrders: portfolioActivity?.offeringOrders,
|
|
15243
|
-
openOrders: portfolioActivity?.openOrders,
|
|
15244
|
-
orderHistory: portfolioActivity?.orderHistory,
|
|
15245
|
-
tradeHistory: portfolioActivity?.tradeHistory,
|
|
15246
|
-
transfers: portfolioActivity?.transfers,
|
|
15247
|
-
onCancelOrder: portfolioActivity?.onCancelOrder,
|
|
15248
|
-
cancellingOrderId: portfolioActivity?.cancellingOrderId,
|
|
15249
|
-
defaultTab: "subscriptions",
|
|
15250
|
-
pageSize: 6
|
|
15251
|
-
}
|
|
15252
|
-
) }),
|
|
15253
15242
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
15254
15243
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15255
15244
|
OrderPanel,
|
|
@@ -15289,6 +15278,23 @@ function PropertyBuy({
|
|
|
15289
15278
|
purchaseError && /* @__PURE__ */ jsxRuntime.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 })
|
|
15290
15279
|
] })
|
|
15291
15280
|
] }),
|
|
15281
|
+
/* @__PURE__ */ jsxRuntime.jsx(ActivityWrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15282
|
+
PortfolioActivityPanel,
|
|
15283
|
+
{
|
|
15284
|
+
positions: portfolioActivity?.positions,
|
|
15285
|
+
showPositionsTab: true,
|
|
15286
|
+
onPositionClick: portfolioActivity?.onPositionClick,
|
|
15287
|
+
offeringOrders: portfolioActivity?.offeringOrders,
|
|
15288
|
+
openOrders: portfolioActivity?.openOrders,
|
|
15289
|
+
orderHistory: portfolioActivity?.orderHistory,
|
|
15290
|
+
tradeHistory: portfolioActivity?.tradeHistory,
|
|
15291
|
+
transfers: portfolioActivity?.transfers,
|
|
15292
|
+
onCancelOrder: portfolioActivity?.onCancelOrder,
|
|
15293
|
+
cancellingOrderId: portfolioActivity?.cancellingOrderId,
|
|
15294
|
+
defaultTab: "subscriptions",
|
|
15295
|
+
pageSize: 6
|
|
15296
|
+
}
|
|
15297
|
+
) }),
|
|
15292
15298
|
/* @__PURE__ */ jsxRuntime.jsxs(NewsVideoRow, { children: [
|
|
15293
15299
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15294
15300
|
PropertyNewsUpdates,
|
|
@@ -15338,7 +15344,7 @@ function PropertyBuy({
|
|
|
15338
15344
|
var HeroGrid = styled9__default.default.div`
|
|
15339
15345
|
display: grid;
|
|
15340
15346
|
grid-template-columns: 1fr auto;
|
|
15341
|
-
grid-template-rows: auto auto
|
|
15347
|
+
grid-template-rows: auto auto minmax(450px, 520px);
|
|
15342
15348
|
gap: 1.5rem;
|
|
15343
15349
|
width: 100%;
|
|
15344
15350
|
max-width: 1800px;
|
|
@@ -15360,13 +15366,8 @@ var HeroGrid = styled9__default.default.div`
|
|
|
15360
15366
|
}
|
|
15361
15367
|
|
|
15362
15368
|
& > div:nth-child(4) {
|
|
15363
|
-
grid-column: 1 / 2;
|
|
15364
|
-
grid-row: 4 / 5;
|
|
15365
|
-
}
|
|
15366
|
-
|
|
15367
|
-
& > div:nth-child(5) {
|
|
15368
15369
|
grid-column: 2 / 3;
|
|
15369
|
-
grid-row: 1 /
|
|
15370
|
+
grid-row: 1 / 4;
|
|
15370
15371
|
display: flex;
|
|
15371
15372
|
flex-direction: column;
|
|
15372
15373
|
}
|
|
@@ -15387,7 +15388,7 @@ var HeroGrid = styled9__default.default.div`
|
|
|
15387
15388
|
width: 100%;
|
|
15388
15389
|
}
|
|
15389
15390
|
|
|
15390
|
-
& > div:nth-child(
|
|
15391
|
+
& > div:nth-child(4) {
|
|
15391
15392
|
order: 2;
|
|
15392
15393
|
min-width: 0;
|
|
15393
15394
|
width: 100%;
|
|
@@ -15399,12 +15400,6 @@ var HeroGrid = styled9__default.default.div`
|
|
|
15399
15400
|
min-width: 0;
|
|
15400
15401
|
width: 100%;
|
|
15401
15402
|
}
|
|
15402
|
-
|
|
15403
|
-
& > div:nth-child(4) {
|
|
15404
|
-
order: 4;
|
|
15405
|
-
min-width: 0;
|
|
15406
|
-
width: 100%;
|
|
15407
|
-
}
|
|
15408
15403
|
}
|
|
15409
15404
|
|
|
15410
15405
|
@media (max-width: 768px) {
|