@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.js
CHANGED
|
@@ -8525,6 +8525,7 @@ function PropertyOverview({
|
|
|
8525
8525
|
const [showDividendHistory, setShowDividendHistory] = React5.useState(false);
|
|
8526
8526
|
const [showHolders, setShowHolders] = React5.useState(false);
|
|
8527
8527
|
const [copiedAddress, setCopiedAddress] = React5.useState(false);
|
|
8528
|
+
const [statsTab, setStatsTab] = React5.useState("token");
|
|
8528
8529
|
const description = descriptionProp ?? overviewData?.description ?? DEFAULT_DESCRIPTION;
|
|
8529
8530
|
const landSize = landProp ?? overviewData?.landSizeSqm ?? null;
|
|
8530
8531
|
const buildingSize = buildingProp ?? overviewData?.buildingSizeSqm ?? null;
|
|
@@ -8656,9 +8657,12 @@ function PropertyOverview({
|
|
|
8656
8657
|
] }),
|
|
8657
8658
|
/* @__PURE__ */ jsxRuntime.jsxs(Section, { children: [
|
|
8658
8659
|
/* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { children: "Statistics" }),
|
|
8659
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8660
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8661
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8660
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StatsTabbedCard, { children: [
|
|
8661
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StatsTabBar, { children: [
|
|
8662
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatsTab, { $active: statsTab === "token", onClick: () => setStatsTab("token"), children: "Token Performance" }),
|
|
8663
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatsTab, { $active: statsTab === "property", onClick: () => setStatsTab("property"), children: "Property Fundamentals" })
|
|
8664
|
+
] }),
|
|
8665
|
+
statsTab === "token" && /* @__PURE__ */ jsxRuntime.jsxs(StatsTabContent, { children: [
|
|
8662
8666
|
tokenStats.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(StatRow, { $gold: !!item.gold, children: [
|
|
8663
8667
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: item.label }),
|
|
8664
8668
|
item.label === "Holders" && holderCount != null ? /* @__PURE__ */ jsxRuntime.jsx(StatValueClickable, { onClick: () => setShowHolders(true), children: item.value }) : /* @__PURE__ */ jsxRuntime.jsx(StatValue, { $gold: !!item.gold, children: item.value })
|
|
@@ -8687,8 +8691,7 @@ function PropertyOverview({
|
|
|
8687
8691
|
/* @__PURE__ */ jsxRuntime.jsx(HoldRatioTrack, { children: /* @__PURE__ */ jsxRuntime.jsx(HoldRatioFill, { $pct: holdRatio.holdPct }) })
|
|
8688
8692
|
] })
|
|
8689
8693
|
] }),
|
|
8690
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8691
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatsColumnHeader, { children: "Property Fundamentals" }),
|
|
8694
|
+
statsTab === "property" && /* @__PURE__ */ jsxRuntime.jsxs(StatsTabContent, { children: [
|
|
8692
8695
|
propertyStats.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(StatRow, { children: [
|
|
8693
8696
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: item.label }),
|
|
8694
8697
|
/* @__PURE__ */ jsxRuntime.jsx(StatValue, { children: item.value })
|
|
@@ -9356,6 +9359,35 @@ var ChainLogoImg = styled9__default.default.img`
|
|
|
9356
9359
|
width: auto;
|
|
9357
9360
|
vertical-align: middle;
|
|
9358
9361
|
`;
|
|
9362
|
+
var StatsTabbedCard = styled9__default.default.div`
|
|
9363
|
+
background: rgba(255,255,255,0.025);
|
|
9364
|
+
border: 1px solid rgba(255,255,255,0.06);
|
|
9365
|
+
border-radius: 10px;
|
|
9366
|
+
max-width: 400px;
|
|
9367
|
+
`;
|
|
9368
|
+
var StatsTabBar = styled9__default.default.div`
|
|
9369
|
+
display: flex;
|
|
9370
|
+
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
9371
|
+
`;
|
|
9372
|
+
var StatsTab = styled9__default.default.button`
|
|
9373
|
+
flex: 1;
|
|
9374
|
+
padding: 0.85rem 1rem;
|
|
9375
|
+
background: none;
|
|
9376
|
+
border: none;
|
|
9377
|
+
font-size: 0.68rem;
|
|
9378
|
+
font-weight: 600;
|
|
9379
|
+
text-transform: uppercase;
|
|
9380
|
+
letter-spacing: 0.1em;
|
|
9381
|
+
cursor: pointer;
|
|
9382
|
+
transition: color 0.15s, border-color 0.15s;
|
|
9383
|
+
color: ${(p) => p.$active ? "#D4AF37" : "rgba(255,255,255,0.35)"};
|
|
9384
|
+
border-bottom: 2px solid ${(p) => p.$active ? "#D4AF37" : "transparent"};
|
|
9385
|
+
margin-bottom: -1px;
|
|
9386
|
+
&:hover { color: ${(p) => p.$active ? "#D4AF37" : "rgba(255,255,255,0.6)"}; }
|
|
9387
|
+
`;
|
|
9388
|
+
var StatsTabContent = styled9__default.default.div`
|
|
9389
|
+
padding: 0.5rem 1.25rem 1.25rem;
|
|
9390
|
+
`;
|
|
9359
9391
|
var StatsGrid = styled9__default.default.div`
|
|
9360
9392
|
display: grid;
|
|
9361
9393
|
grid-template-columns: 340px 340px;
|