@loafmarkets/ui 0.1.212 → 0.1.213
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 +37 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8499,6 +8499,7 @@ function PropertyOverview({
|
|
|
8499
8499
|
const [showDividendHistory, setShowDividendHistory] = useState(false);
|
|
8500
8500
|
const [showHolders, setShowHolders] = useState(false);
|
|
8501
8501
|
const [copiedAddress, setCopiedAddress] = useState(false);
|
|
8502
|
+
const [statsTab, setStatsTab] = useState("token");
|
|
8502
8503
|
const description = descriptionProp ?? overviewData?.description ?? DEFAULT_DESCRIPTION;
|
|
8503
8504
|
const landSize = landProp ?? overviewData?.landSizeSqm ?? null;
|
|
8504
8505
|
const buildingSize = buildingProp ?? overviewData?.buildingSizeSqm ?? null;
|
|
@@ -8630,9 +8631,12 @@ function PropertyOverview({
|
|
|
8630
8631
|
] }),
|
|
8631
8632
|
/* @__PURE__ */ jsxs(Section, { children: [
|
|
8632
8633
|
/* @__PURE__ */ jsx(SectionHeader, { children: "Statistics" }),
|
|
8633
|
-
/* @__PURE__ */ jsxs(
|
|
8634
|
-
/* @__PURE__ */ jsxs(
|
|
8635
|
-
/* @__PURE__ */ jsx(
|
|
8634
|
+
/* @__PURE__ */ jsxs(StatsTabbedCard, { children: [
|
|
8635
|
+
/* @__PURE__ */ jsxs(StatsTabBar, { children: [
|
|
8636
|
+
/* @__PURE__ */ jsx(StatsTab, { $active: statsTab === "token", onClick: () => setStatsTab("token"), children: "Token Performance" }),
|
|
8637
|
+
/* @__PURE__ */ jsx(StatsTab, { $active: statsTab === "property", onClick: () => setStatsTab("property"), children: "Property Fundamentals" })
|
|
8638
|
+
] }),
|
|
8639
|
+
statsTab === "token" && /* @__PURE__ */ jsxs(StatsTabContent, { children: [
|
|
8636
8640
|
tokenStats.map((item) => /* @__PURE__ */ jsxs(StatRow, { $gold: !!item.gold, children: [
|
|
8637
8641
|
/* @__PURE__ */ jsx(StatLabel, { children: item.label }),
|
|
8638
8642
|
item.label === "Holders" && holderCount != null ? /* @__PURE__ */ jsx(StatValueClickable, { onClick: () => setShowHolders(true), children: item.value }) : /* @__PURE__ */ jsx(StatValue, { $gold: !!item.gold, children: item.value })
|
|
@@ -8661,8 +8665,7 @@ function PropertyOverview({
|
|
|
8661
8665
|
/* @__PURE__ */ jsx(HoldRatioTrack, { children: /* @__PURE__ */ jsx(HoldRatioFill, { $pct: holdRatio.holdPct }) })
|
|
8662
8666
|
] })
|
|
8663
8667
|
] }),
|
|
8664
|
-
/* @__PURE__ */ jsxs(
|
|
8665
|
-
/* @__PURE__ */ jsx(StatsColumnHeader, { children: "Property Fundamentals" }),
|
|
8668
|
+
statsTab === "property" && /* @__PURE__ */ jsxs(StatsTabContent, { children: [
|
|
8666
8669
|
propertyStats.map((item) => /* @__PURE__ */ jsxs(StatRow, { children: [
|
|
8667
8670
|
/* @__PURE__ */ jsx(StatLabel, { children: item.label }),
|
|
8668
8671
|
/* @__PURE__ */ jsx(StatValue, { children: item.value })
|
|
@@ -9330,6 +9333,35 @@ var ChainLogoImg = styled9.img`
|
|
|
9330
9333
|
width: auto;
|
|
9331
9334
|
vertical-align: middle;
|
|
9332
9335
|
`;
|
|
9336
|
+
var StatsTabbedCard = styled9.div`
|
|
9337
|
+
background: rgba(255,255,255,0.025);
|
|
9338
|
+
border: 1px solid rgba(255,255,255,0.06);
|
|
9339
|
+
border-radius: 10px;
|
|
9340
|
+
max-width: 400px;
|
|
9341
|
+
`;
|
|
9342
|
+
var StatsTabBar = styled9.div`
|
|
9343
|
+
display: flex;
|
|
9344
|
+
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
9345
|
+
`;
|
|
9346
|
+
var StatsTab = styled9.button`
|
|
9347
|
+
flex: 1;
|
|
9348
|
+
padding: 0.85rem 1rem;
|
|
9349
|
+
background: none;
|
|
9350
|
+
border: none;
|
|
9351
|
+
font-size: 0.68rem;
|
|
9352
|
+
font-weight: 600;
|
|
9353
|
+
text-transform: uppercase;
|
|
9354
|
+
letter-spacing: 0.1em;
|
|
9355
|
+
cursor: pointer;
|
|
9356
|
+
transition: color 0.15s, border-color 0.15s;
|
|
9357
|
+
color: ${(p) => p.$active ? "#D4AF37" : "rgba(255,255,255,0.35)"};
|
|
9358
|
+
border-bottom: 2px solid ${(p) => p.$active ? "#D4AF37" : "transparent"};
|
|
9359
|
+
margin-bottom: -1px;
|
|
9360
|
+
&:hover { color: ${(p) => p.$active ? "#D4AF37" : "rgba(255,255,255,0.6)"}; }
|
|
9361
|
+
`;
|
|
9362
|
+
var StatsTabContent = styled9.div`
|
|
9363
|
+
padding: 0.5rem 1.25rem 1.25rem;
|
|
9364
|
+
`;
|
|
9333
9365
|
var StatsGrid = styled9.div`
|
|
9334
9366
|
display: grid;
|
|
9335
9367
|
grid-template-columns: 340px 340px;
|