@loafmarkets/ui 0.1.264 → 0.1.266

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 CHANGED
@@ -13666,6 +13666,7 @@ function PortfolioActivityPanel({
13666
13666
  };
13667
13667
  const [expandedPositions, setExpandedPositions] = React5.useState(/* @__PURE__ */ new Set());
13668
13668
  const [allExpanded, setAllExpanded] = React5.useState(false);
13669
+ const [sortDropdownOpen, setSortDropdownOpen] = React5.useState(false);
13669
13670
  const togglePosition = (tokenName) => {
13670
13671
  setExpandedPositions((prev) => {
13671
13672
  const next = new Set(prev);
@@ -13693,12 +13694,6 @@ function PortfolioActivityPanel({
13693
13694
  }
13694
13695
  };
13695
13696
  const sortKeys = ["asset", "units", "value", "avgPrice", "currentPrice", "pnl"];
13696
- const cycleSortKey = () => {
13697
- const idx = sortKeys.indexOf(posSortKey);
13698
- const nextKey = sortKeys[(idx + 1) % sortKeys.length];
13699
- setPosSortKey(nextKey);
13700
- setPosSortAsc(true);
13701
- };
13702
13697
  const sortedPositions = React5.useMemo(() => {
13703
13698
  const arr = [...positions];
13704
13699
  const dir = posSortAsc ? 1 : -1;
@@ -13815,16 +13810,22 @@ function PortfolioActivityPanel({
13815
13810
  activeTab === "positions" && showPositionsTab && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13816
13811
  positions.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(EmptyState, { children: "No positions yet. Subscribe to an offering or buy on the secondary market." }),
13817
13812
  positions.length > 0 && compactPositions && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13818
- /* @__PURE__ */ jsxRuntime.jsxs(CompactToolbar, { children: [
13819
- /* @__PURE__ */ jsxRuntime.jsxs(CompactSortBtn, { onClick: cycleSortKey, children: [
13820
- "Sort by: ",
13821
- sortKeyLabel(posSortKey),
13822
- " ",
13823
- posSortAsc ? "\u2191" : "\u2193"
13813
+ /* @__PURE__ */ jsxRuntime.jsxs(CToolbar, { children: [
13814
+ /* @__PURE__ */ jsxRuntime.jsxs(CSortWrap, { children: [
13815
+ /* @__PURE__ */ jsxRuntime.jsxs(CSortBtn, { onClick: () => setSortDropdownOpen((v) => !v), children: [
13816
+ "Sort by: ",
13817
+ sortKeyLabel(posSortKey),
13818
+ " \u25BE"
13819
+ ] }),
13820
+ sortDropdownOpen && /* @__PURE__ */ jsxRuntime.jsx(CSortDropdown, { children: sortKeys.map((k) => /* @__PURE__ */ jsxRuntime.jsx(CSortOption, { $active: posSortKey === k, onClick: () => {
13821
+ setPosSortKey(k);
13822
+ setPosSortAsc(true);
13823
+ setSortDropdownOpen(false);
13824
+ }, children: sortKeyLabel(k) }, k)) })
13824
13825
  ] }),
13825
- /* @__PURE__ */ jsxRuntime.jsxs(CompactToolbarRight, { children: [
13826
- /* @__PURE__ */ jsxRuntime.jsx(CompactActionBtn, { onClick: toggleExpandAll, children: allExpanded ? "Collapse All" : "Expand All" }),
13827
- onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(CompactSellAllBtn, { onClick: () => setCloseAllOpen(true), children: "Sell All" })
13826
+ /* @__PURE__ */ jsxRuntime.jsxs(CToolbarActions, { children: [
13827
+ /* @__PURE__ */ jsxRuntime.jsx(CToolbarLink, { onClick: toggleExpandAll, children: allExpanded ? "Collapse All" : "Expand All" }),
13828
+ onClosePosition && /* @__PURE__ */ jsxRuntime.jsx(CToolbarLink, { onClick: () => setCloseAllOpen(true), children: "Sell All" })
13828
13829
  ] })
13829
13830
  ] }),
13830
13831
  pageSlice(sortedPositions).map((pos) => {
@@ -13833,45 +13834,59 @@ function PortfolioActivityPanel({
13833
13834
  const pnl = pos.propertyPnl ?? currentValue - costBasis;
13834
13835
  const pnlPercent = pos.propertyPnlPercent ?? pos.percentChange ?? 0;
13835
13836
  const isPositive = pnl >= 0;
13836
- const isExpanded = expandedPositions.has(pos.tokenName);
13837
- return /* @__PURE__ */ jsxRuntime.jsxs(CompactCard, { children: [
13838
- /* @__PURE__ */ jsxRuntime.jsxs(CompactCardHeader, { onClick: () => togglePosition(pos.tokenName), children: [
13839
- /* @__PURE__ */ jsxRuntime.jsx(CompactAsset, { onClick: (e) => {
13837
+ const posExpanded = expandedPositions.has(pos.tokenName) || allExpanded;
13838
+ const ticker = pos.tokenName.toUpperCase().slice(0, 7);
13839
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
13840
+ /* @__PURE__ */ jsxRuntime.jsxs(CRow, { $expanded: posExpanded, onClick: () => togglePosition(pos.tokenName), children: [
13841
+ /* @__PURE__ */ jsxRuntime.jsxs(CAssetCell, { onClick: (e) => {
13840
13842
  e.stopPropagation();
13841
13843
  onPositionClick?.(pos.tokenName, pos.isIpoAllocation);
13842
- }, children: pos.tokenName }),
13843
- /* @__PURE__ */ jsxRuntime.jsxs(CompactUnits, { children: [
13844
- formatNumber2(pos.quantity),
13845
- " units"
13844
+ }, children: [
13845
+ /* @__PURE__ */ jsxRuntime.jsx(CCellLabel, { children: "Asset" }),
13846
+ /* @__PURE__ */ jsxRuntime.jsxs(CAssetName, { children: [
13847
+ pos.imageUrl && /* @__PURE__ */ jsxRuntime.jsx(CAssetLogo, { src: pos.imageUrl, alt: "" }),
13848
+ pos.tokenName
13849
+ ] })
13846
13850
  ] }),
13847
- /* @__PURE__ */ jsxRuntime.jsxs(CompactPnl, { $positive: isPositive, children: [
13848
- isPositive ? "+" : "-",
13849
- formatCurrency4(Math.abs(pnl)),
13850
- " (",
13851
- isPositive ? "+" : "",
13852
- pnlPercent.toFixed(1),
13853
- "%)"
13851
+ /* @__PURE__ */ jsxRuntime.jsxs(CUnitsCell, { children: [
13852
+ /* @__PURE__ */ jsxRuntime.jsx(CCellLabel, { children: "Units" }),
13853
+ formatNumber2(pos.quantity, pos.quantity >= 100 ? 0 : 2),
13854
+ " ",
13855
+ ticker
13856
+ ] }),
13857
+ /* @__PURE__ */ jsxRuntime.jsxs(CPnlCell, { children: [
13858
+ /* @__PURE__ */ jsxRuntime.jsx(CCellLabel, { children: "PNL (%)" }),
13859
+ /* @__PURE__ */ jsxRuntime.jsxs(CPnlValue, { $positive: isPositive, children: [
13860
+ isPositive ? "+" : "-",
13861
+ formatCurrency4(Math.abs(pnl))
13862
+ ] }),
13863
+ /* @__PURE__ */ jsxRuntime.jsxs(CPnlPct, { $positive: isPositive, children: [
13864
+ "(",
13865
+ isPositive ? "+" : "",
13866
+ pnlPercent.toFixed(1),
13867
+ "%)"
13868
+ ] })
13854
13869
  ] }),
13855
- /* @__PURE__ */ jsxRuntime.jsx(CompactChevron, { $expanded: isExpanded, children: /* @__PURE__ */ jsxRuntime.jsx(fi.FiChevronDown, { size: 14 }) })
13870
+ /* @__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" }) }) })
13856
13871
  ] }),
13857
- isExpanded && /* @__PURE__ */ jsxRuntime.jsxs(CompactCardBody, { children: [
13858
- /* @__PURE__ */ jsxRuntime.jsxs(CompactDetailRow, { children: [
13859
- /* @__PURE__ */ jsxRuntime.jsxs(CompactDetail, { children: [
13860
- /* @__PURE__ */ jsxRuntime.jsx(CompactDetailLabel, { children: "Position Value" }),
13861
- /* @__PURE__ */ jsxRuntime.jsx(CompactDetailValue, { children: formatCurrency4(currentValue, { minimumFractionDigits: 0, maximumFractionDigits: 0 }) })
13872
+ posExpanded && /* @__PURE__ */ jsxRuntime.jsxs(CExpandedWrap, { children: [
13873
+ /* @__PURE__ */ jsxRuntime.jsxs(CDetailGrid, { children: [
13874
+ /* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
13875
+ /* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Position Value" }),
13876
+ /* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: formatCurrency4(currentValue, { minimumFractionDigits: 0, maximumFractionDigits: 0 }) })
13862
13877
  ] }),
13863
- /* @__PURE__ */ jsxRuntime.jsxs(CompactDetail, { children: [
13864
- /* @__PURE__ */ jsxRuntime.jsx(CompactDetailLabel, { children: "Avg Price" }),
13865
- /* @__PURE__ */ jsxRuntime.jsx(CompactDetailValue, { children: formatCurrency4(pos.averageEntryPrice) })
13878
+ /* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
13879
+ /* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Avg Price" }),
13880
+ /* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: formatCurrency4(pos.averageEntryPrice) })
13866
13881
  ] }),
13867
- /* @__PURE__ */ jsxRuntime.jsxs(CompactDetail, { children: [
13868
- /* @__PURE__ */ jsxRuntime.jsx(CompactDetailLabel, { children: "Current Price" }),
13869
- /* @__PURE__ */ jsxRuntime.jsx(CompactDetailValue, { children: formatCurrency4(pos.marketPrice) })
13882
+ /* @__PURE__ */ jsxRuntime.jsxs(CDetailItem, { children: [
13883
+ /* @__PURE__ */ jsxRuntime.jsx(CDLabel, { children: "Current Price" }),
13884
+ /* @__PURE__ */ jsxRuntime.jsx(CDValue, { children: formatCurrency4(pos.marketPrice) })
13870
13885
  ] })
13871
13886
  ] }),
13872
- onClosePosition && /* @__PURE__ */ jsxRuntime.jsxs(CompactCloseActions, { children: [
13873
- /* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: () => onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice), children: "Market Sell" }),
13874
- /* @__PURE__ */ jsxRuntime.jsx(CloseBtn2, { onClick: () => onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice), children: "Limit Sell" })
13887
+ onClosePosition && /* @__PURE__ */ jsxRuntime.jsxs(CActionRow, { children: [
13888
+ /* @__PURE__ */ jsxRuntime.jsx(CCloseBtn, { onClick: () => onClosePosition(pos.tokenName, "market", pos.quantity, pos.marketPrice), children: "Market Sell" }),
13889
+ /* @__PURE__ */ jsxRuntime.jsx(CCloseBtn, { onClick: () => onClosePosition(pos.tokenName, "limit", pos.quantity, pos.marketPrice), children: "Limit Sell" })
13875
13890
  ] })
13876
13891
  ] })
13877
13892
  ] }, pos.tokenName);
@@ -14201,7 +14216,13 @@ function PortfolioActivityPanel({
14201
14216
  ] }) })
14202
14217
  ] });
14203
14218
  }
14204
- var Container3 = styled9__default.default.div``;
14219
+ var Container3 = styled9__default.default.div`
14220
+ scrollbar-width: thin;
14221
+ scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
14222
+ &::-webkit-scrollbar { width: 4px; }
14223
+ &::-webkit-scrollbar-track { background: transparent; }
14224
+ &::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
14225
+ `;
14205
14226
  var PanelTitle = styled9__default.default.h3`
14206
14227
  font-size: 1rem;
14207
14228
  font-weight: 600;
@@ -14772,147 +14793,181 @@ var CloseAllConfirmBtn = styled9__default.default.button`
14772
14793
  background: rgba(246, 70, 93, 0.25);
14773
14794
  }
14774
14795
  `;
14775
- var CompactToolbar = styled9__default.default.div`
14796
+ var CToolbar = styled9__default.default.div`
14776
14797
  display: flex;
14777
14798
  align-items: center;
14778
14799
  justify-content: space-between;
14779
- padding: 0.35rem 0.5rem;
14780
- margin-bottom: 0.25rem;
14781
- border-bottom: 1px solid rgba(255, 255, 255, 0.06);
14800
+ padding: 0.3rem 0.6rem;
14801
+ border-bottom: 1px solid rgba(255, 255, 255, 0.04);
14782
14802
  `;
14783
- var CompactSortBtn = styled9__default.default.button`
14784
- background: transparent;
14785
- border: 1px solid rgba(255, 255, 255, 0.1);
14786
- border-radius: 4px;
14787
- padding: 0.2rem 0.6rem;
14788
- font-size: 0.68rem;
14789
- font-weight: 500;
14790
- color: rgba(255, 255, 255, 0.6);
14791
- cursor: pointer;
14792
- transition: all 0.15s ease;
14793
-
14794
- &:hover {
14795
- color: rgba(255, 255, 255, 0.85);
14796
- border-color: rgba(255, 255, 255, 0.2);
14797
- }
14803
+ var CSortWrap = styled9__default.default.div`
14804
+ position: relative;
14798
14805
  `;
14799
- var CompactToolbarRight = styled9__default.default.div`
14806
+ var CSortBtn = styled9__default.default.button`
14807
+ font-size: 0.6rem;
14808
+ color: rgba(255, 255, 255, 0.45);
14809
+ background: none;
14810
+ border: none;
14811
+ cursor: pointer;
14800
14812
  display: flex;
14801
14813
  align-items: center;
14802
- gap: 0.4rem;
14814
+ gap: 0.2rem;
14815
+ &:hover { color: rgba(255, 255, 255, 0.7); }
14803
14816
  `;
14804
- var CompactActionBtn = styled9__default.default.button`
14805
- background: transparent;
14817
+ var CSortDropdown = styled9__default.default.div`
14818
+ position: absolute;
14819
+ top: 100%;
14820
+ left: 0;
14821
+ z-index: 10;
14822
+ margin-top: 2px;
14823
+ background: #1a1c24;
14806
14824
  border: 1px solid rgba(255, 255, 255, 0.1);
14807
- border-radius: 4px;
14808
- padding: 0.2rem 0.6rem;
14809
- font-size: 0.68rem;
14810
- font-weight: 500;
14811
- color: rgba(255, 255, 255, 0.6);
14812
- cursor: pointer;
14813
- transition: all 0.15s ease;
14814
-
14815
- &:hover {
14816
- color: rgba(255, 255, 255, 0.85);
14817
- border-color: rgba(255, 255, 255, 0.2);
14818
- }
14825
+ border-radius: 6px;
14826
+ overflow: hidden;
14827
+ min-width: 120px;
14828
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
14819
14829
  `;
14820
- var CompactSellAllBtn = styled9__default.default.button`
14821
- background: rgba(246, 70, 93, 0.08);
14822
- border: 1px solid rgba(246, 70, 93, 0.25);
14823
- border-radius: 4px;
14824
- padding: 0.2rem 0.6rem;
14825
- font-size: 0.68rem;
14826
- font-weight: 600;
14827
- color: #f6465d;
14830
+ var CSortOption = styled9__default.default.button`
14831
+ display: block;
14832
+ width: 100%;
14833
+ padding: 0.4rem 0.6rem;
14834
+ font-size: 0.6rem;
14835
+ font-weight: ${(p) => p.$active ? 600 : 400};
14836
+ color: ${(p) => p.$active ? "#E6C87E" : "rgba(255, 255, 255, 0.6)"};
14837
+ background: ${(p) => p.$active ? "rgba(230, 200, 126, 0.06)" : "none"};
14838
+ border: none;
14839
+ text-align: left;
14828
14840
  cursor: pointer;
14829
- transition: all 0.15s ease;
14830
-
14831
- &:hover {
14832
- background: rgba(246, 70, 93, 0.15);
14833
- border-color: rgba(246, 70, 93, 0.4);
14834
- }
14841
+ &:hover { background: rgba(255, 255, 255, 0.05); }
14835
14842
  `;
14836
- var CompactCard = styled9__default.default.div`
14837
- border-bottom: 1px solid rgba(255, 255, 255, 0.04);
14838
-
14839
- &:last-child {
14840
- border-bottom: none;
14841
- }
14843
+ var CToolbarActions = styled9__default.default.div`
14844
+ display: flex;
14845
+ gap: 0.5rem;
14846
+ `;
14847
+ var CToolbarLink = styled9__default.default.button`
14848
+ font-size: 0.58rem;
14849
+ font-weight: 500;
14850
+ color: rgba(255, 255, 255, 0.45);
14851
+ background: none;
14852
+ border: none;
14853
+ cursor: pointer;
14854
+ text-decoration: underline;
14855
+ text-decoration-color: rgba(255, 255, 255, 0.15);
14856
+ &:hover { color: rgba(255, 255, 255, 0.7); }
14842
14857
  `;
14843
- var CompactCardHeader = styled9__default.default.div`
14858
+ var CRow = styled9__default.default.button`
14844
14859
  display: grid;
14845
- grid-template-columns: 1fr 1fr 1.4fr auto;
14860
+ grid-template-columns: 1fr 1fr 1fr 24px;
14846
14861
  align-items: center;
14847
- gap: 0.5rem;
14848
- padding: 0.6rem 0.5rem;
14862
+ width: calc(100% - 1rem);
14863
+ margin: 0.25rem 0.5rem;
14864
+ margin-bottom: ${(p) => p.$expanded ? "0" : "0.25rem"};
14865
+ padding: 0.55rem 0.65rem;
14866
+ background: rgba(255, 255, 255, 0.035);
14867
+ border: 1px solid rgba(255, 255, 255, 0.06);
14868
+ border-bottom: ${(p) => p.$expanded ? "none" : "1px solid rgba(255, 255, 255, 0.06)"};
14869
+ border-radius: ${(p) => p.$expanded ? "8px 8px 0 0" : "8px"};
14849
14870
  cursor: pointer;
14850
- transition: background 0.15s ease;
14851
- border-radius: 4px;
14852
-
14853
- &:hover {
14854
- background: rgba(255, 255, 255, 0.03);
14855
- }
14871
+ text-align: left;
14872
+ transition: background 0.15s;
14873
+ outline: none;
14874
+ &:active { background: rgba(255, 255, 255, 0.06); }
14875
+ &:focus { outline: none; }
14876
+ &:focus-visible { outline: none; }
14856
14877
  `;
14857
- var CompactAsset = styled9__default.default.span`
14858
- font-size: 0.8rem;
14878
+ var CCellLabel = styled9__default.default.div`
14879
+ font-size: 0.6rem;
14880
+ font-weight: 500;
14881
+ color: rgba(255, 255, 255, 0.3);
14882
+ margin-bottom: 1px;
14883
+ `;
14884
+ var CAssetCell = styled9__default.default.div``;
14885
+ var CAssetName = styled9__default.default.div`
14886
+ font-size: 0.85rem;
14859
14887
  font-weight: 600;
14860
14888
  color: #fff;
14861
- cursor: pointer;
14862
-
14863
- &:hover {
14864
- text-decoration: underline;
14865
- color: var(--color-accent, #E6C87E);
14866
- }
14889
+ display: flex;
14890
+ align-items: center;
14891
+ gap: 0.3rem;
14867
14892
  `;
14868
- var CompactUnits = styled9__default.default.span`
14869
- font-size: 0.75rem;
14870
- color: rgba(255, 255, 255, 0.6);
14893
+ var CAssetLogo = styled9__default.default.img`
14894
+ width: 22px;
14895
+ height: 22px;
14896
+ border-radius: 4px;
14897
+ object-fit: cover;
14898
+ flex-shrink: 0;
14871
14899
  `;
14872
- var CompactPnl = styled9__default.default.span`
14873
- font-size: 0.75rem;
14900
+ var CUnitsCell = styled9__default.default.div`
14901
+ font-size: 0.78rem;
14902
+ color: rgba(255, 255, 255, 0.8);
14903
+ font-variant-numeric: tabular-nums;
14904
+ `;
14905
+ var CPnlCell = styled9__default.default.div``;
14906
+ var CPnlValue = styled9__default.default.div`
14907
+ font-size: 0.78rem;
14874
14908
  font-weight: 600;
14875
14909
  color: ${(p) => p.$positive ? "#0ecb81" : "#f6465d"};
14876
- text-align: right;
14910
+ font-variant-numeric: tabular-nums;
14877
14911
  `;
14878
- var CompactChevron = styled9__default.default.span`
14912
+ var CPnlPct = styled9__default.default.div`
14913
+ font-size: 0.62rem;
14914
+ color: ${(p) => p.$positive ? "rgba(14, 203, 129, 0.65)" : "rgba(246, 70, 93, 0.65)"};
14915
+ margin-top: 1px;
14916
+ `;
14917
+ var CChevronWrap = styled9__default.default.span`
14879
14918
  display: flex;
14880
14919
  align-items: center;
14881
14920
  justify-content: center;
14882
- color: rgba(255, 255, 255, 0.35);
14883
- transition: transform 0.2s ease;
14884
- transform: rotate(${(p) => p.$expanded ? "180deg" : "0deg"});
14885
- `;
14886
- var CompactCardBody = styled9__default.default.div`
14887
- padding: 0 0.5rem 0.6rem;
14921
+ transition: transform 0.2s;
14922
+ transform: rotate(${(p) => p.$open ? "180deg" : "0deg"});
14888
14923
  `;
14889
- var CompactDetailRow = styled9__default.default.div`
14890
- display: flex;
14891
- gap: 1.5rem;
14892
- padding: 0.5rem 0.75rem;
14893
- background: rgba(255, 255, 255, 0.02);
14894
- border-radius: 6px;
14895
- margin-bottom: 0.5rem;
14924
+ var CExpandedWrap = styled9__default.default.div`
14925
+ margin: 0 0.5rem 0.25rem;
14926
+ padding: 0.4rem 0.65rem 0.5rem;
14927
+ background: rgba(255, 255, 255, 0.035);
14928
+ border: 1px solid rgba(255, 255, 255, 0.06);
14929
+ border-top: none;
14930
+ border-radius: 0 0 8px 8px;
14896
14931
  `;
14897
- var CompactDetail = styled9__default.default.div`
14898
- display: flex;
14899
- flex-direction: column;
14900
- gap: 0.15rem;
14932
+ var CDetailGrid = styled9__default.default.div`
14933
+ display: grid;
14934
+ grid-template-columns: 1fr 1fr 1fr 24px;
14935
+ gap: 0.45rem 0;
14901
14936
  `;
14902
- var CompactDetailLabel = styled9__default.default.span`
14903
- font-size: 0.62rem;
14904
- color: rgba(255, 255, 255, 0.35);
14905
- font-weight: 500;
14937
+ var CDetailItem = styled9__default.default.div``;
14938
+ var CDLabel = styled9__default.default.div`
14939
+ font-size: 0.6rem;
14940
+ color: rgba(255, 255, 255, 0.3);
14941
+ margin-bottom: 1px;
14906
14942
  `;
14907
- var CompactDetailValue = styled9__default.default.span`
14943
+ var CDValue = styled9__default.default.div`
14908
14944
  font-size: 0.78rem;
14909
- color: #fff;
14910
14945
  font-weight: 500;
14946
+ color: rgba(255, 255, 255, 0.85);
14947
+ font-variant-numeric: tabular-nums;
14911
14948
  `;
14912
- var CompactCloseActions = styled9__default.default.div`
14913
- display: flex;
14949
+ var CActionRow = styled9__default.default.div`
14950
+ display: grid;
14951
+ grid-template-columns: 1fr 1fr;
14914
14952
  gap: 0.5rem;
14915
- padding: 0 0.75rem;
14953
+ margin-top: 0.5rem;
14954
+ `;
14955
+ var CCloseBtn = styled9__default.default.button`
14956
+ background: transparent;
14957
+ border: 1px solid rgba(230, 200, 126, 0.25);
14958
+ border-radius: 6px;
14959
+ padding: 0.45rem 0.6rem;
14960
+ font-size: 0.72rem;
14961
+ font-weight: 600;
14962
+ color: #E6C87E;
14963
+ cursor: pointer;
14964
+ white-space: nowrap;
14965
+ text-align: center;
14966
+ transition: all 0.15s ease;
14967
+ &:hover {
14968
+ background: rgba(230, 200, 126, 0.1);
14969
+ border-color: rgba(230, 200, 126, 0.5);
14970
+ }
14916
14971
  `;
14917
14972
  function PropertyBuy({
14918
14973
  propertyName = "Loaf Property",