@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.mjs CHANGED
@@ -13869,15 +13869,17 @@ function PortfolioActivityPanel({
13869
13869
  ] }),
13870
13870
  /* @__PURE__ */ jsxs(CPnlCell, { children: [
13871
13871
  /* @__PURE__ */ jsx(CCellLabel, { children: "PNL (%)" }),
13872
- /* @__PURE__ */ jsxs(CPnlValue, { $positive: isPositive, children: [
13873
- isPositive ? "+" : "-",
13874
- formatCurrency4(Math.abs(pnl))
13875
- ] }),
13876
- /* @__PURE__ */ jsxs(CPnlPct, { $positive: isPositive, children: [
13877
- "(",
13878
- isPositive ? "+" : "",
13879
- pnlPercent.toFixed(1),
13880
- "%)"
13872
+ /* @__PURE__ */ jsxs(CPnlLine, { children: [
13873
+ /* @__PURE__ */ jsxs(CPnlValue, { $positive: isPositive, children: [
13874
+ isPositive ? "+" : "-",
13875
+ formatCurrency4(Math.abs(pnl))
13876
+ ] }),
13877
+ /* @__PURE__ */ jsxs(CPnlPct, { $positive: isPositive, children: [
13878
+ "(",
13879
+ isPositive ? "+" : "",
13880
+ pnlPercent.toFixed(1),
13881
+ "%)"
13882
+ ] })
13881
13883
  ] })
13882
13884
  ] }),
13883
13885
  /* @__PURE__ */ jsx(CChevronWrap, { $open: posExpanded, children: /* @__PURE__ */ 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__ */ jsx("polyline", { points: "6 9 12 15 18 9" }) }) })
@@ -14927,16 +14929,20 @@ var CUnitsCell = styled9.div`
14927
14929
  font-variant-numeric: tabular-nums;
14928
14930
  `;
14929
14931
  var CPnlCell = styled9.div``;
14930
- var CPnlValue = styled9.div`
14932
+ var CPnlLine = styled9.div`
14933
+ display: flex;
14934
+ align-items: baseline;
14935
+ gap: 4px;
14936
+ `;
14937
+ var CPnlValue = styled9.span`
14931
14938
  font-size: 0.78rem;
14932
14939
  font-weight: 600;
14933
14940
  color: ${(p) => p.$positive ? "#0ecb81" : "#f6465d"};
14934
14941
  font-variant-numeric: tabular-nums;
14935
14942
  `;
14936
- var CPnlPct = styled9.div`
14943
+ var CPnlPct = styled9.span`
14937
14944
  font-size: 0.62rem;
14938
14945
  color: ${(p) => p.$positive ? "rgba(14, 203, 129, 0.65)" : "rgba(246, 70, 93, 0.65)"};
14939
- margin-top: 1px;
14940
14946
  `;
14941
14947
  var CChevronWrap = styled9.span`
14942
14948
  display: flex;
@@ -15207,23 +15213,6 @@ function PropertyBuy({
15207
15213
  /* @__PURE__ */ jsx("p", { children: "Activity will appear once the Offering opens" })
15208
15214
  ] }) })
15209
15215
  ] }),
15210
- /* @__PURE__ */ jsx(ActivityWrapper, { children: /* @__PURE__ */ jsx(
15211
- PortfolioActivityPanel,
15212
- {
15213
- positions: portfolioActivity?.positions,
15214
- showPositionsTab: true,
15215
- onPositionClick: portfolioActivity?.onPositionClick,
15216
- offeringOrders: portfolioActivity?.offeringOrders,
15217
- openOrders: portfolioActivity?.openOrders,
15218
- orderHistory: portfolioActivity?.orderHistory,
15219
- tradeHistory: portfolioActivity?.tradeHistory,
15220
- transfers: portfolioActivity?.transfers,
15221
- onCancelOrder: portfolioActivity?.onCancelOrder,
15222
- cancellingOrderId: portfolioActivity?.cancellingOrderId,
15223
- defaultTab: "subscriptions",
15224
- pageSize: 6
15225
- }
15226
- ) }),
15227
15216
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
15228
15217
  /* @__PURE__ */ jsx(
15229
15218
  OrderPanel,
@@ -15263,6 +15252,23 @@ function PropertyBuy({
15263
15252
  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 })
15264
15253
  ] })
15265
15254
  ] }),
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
+ ) }),
15266
15272
  /* @__PURE__ */ jsxs(NewsVideoRow, { children: [
15267
15273
  /* @__PURE__ */ jsx(
15268
15274
  PropertyNewsUpdates,
@@ -15312,7 +15318,7 @@ function PropertyBuy({
15312
15318
  var HeroGrid = styled9.div`
15313
15319
  display: grid;
15314
15320
  grid-template-columns: 1fr auto;
15315
- grid-template-rows: auto auto auto minmax(450px, 520px);
15321
+ grid-template-rows: auto auto minmax(450px, 520px);
15316
15322
  gap: 1.5rem;
15317
15323
  width: 100%;
15318
15324
  max-width: 1800px;
@@ -15334,13 +15340,8 @@ var HeroGrid = styled9.div`
15334
15340
  }
15335
15341
 
15336
15342
  & > div:nth-child(4) {
15337
- grid-column: 1 / 2;
15338
- grid-row: 4 / 5;
15339
- }
15340
-
15341
- & > div:nth-child(5) {
15342
15343
  grid-column: 2 / 3;
15343
- grid-row: 1 / 5;
15344
+ grid-row: 1 / 4;
15344
15345
  display: flex;
15345
15346
  flex-direction: column;
15346
15347
  }
@@ -15361,7 +15362,7 @@ var HeroGrid = styled9.div`
15361
15362
  width: 100%;
15362
15363
  }
15363
15364
 
15364
- & > div:nth-child(5) {
15365
+ & > div:nth-child(4) {
15365
15366
  order: 2;
15366
15367
  min-width: 0;
15367
15368
  width: 100%;
@@ -15373,12 +15374,6 @@ var HeroGrid = styled9.div`
15373
15374
  min-width: 0;
15374
15375
  width: 100%;
15375
15376
  }
15376
-
15377
- & > div:nth-child(4) {
15378
- order: 4;
15379
- min-width: 0;
15380
- width: 100%;
15381
- }
15382
15377
  }
15383
15378
 
15384
15379
  @media (max-width: 768px) {