@loafmarkets/ui 0.1.82 → 0.1.83
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 +19 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13732,7 +13732,7 @@ function PropertyValuation({
|
|
|
13732
13732
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [
|
|
13733
13733
|
/* @__PURE__ */ jsxs(PricingModelDetail, { children: [
|
|
13734
13734
|
/* @__PURE__ */ jsx(PropertyDetailLabel, { children: "Last Price" }),
|
|
13735
|
-
/* @__PURE__ */ jsx(PricingDetailValue, { children:
|
|
13735
|
+
/* @__PURE__ */ jsx(PricingDetailValue, { children: formatCompact(lastPrice) })
|
|
13736
13736
|
] }),
|
|
13737
13737
|
/* @__PURE__ */ jsxs(PricingModelDetail, { children: [
|
|
13738
13738
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", width: "100%" }, children: [
|
|
@@ -13743,11 +13743,11 @@ function PropertyValuation({
|
|
|
13743
13743
|
] })
|
|
13744
13744
|
] }),
|
|
13745
13745
|
/* @__PURE__ */ jsxs(PricingDetailValue, { style: { color: "var(--color-accent)", fontWeight: "bold" }, children: [
|
|
13746
|
-
|
|
13746
|
+
formatCompact(fairValue),
|
|
13747
13747
|
" ",
|
|
13748
13748
|
/* @__PURE__ */ jsxs("span", { style: { fontSize: "0.85em", fontWeight: "normal", opacity: 0.8 }, children: [
|
|
13749
13749
|
"(",
|
|
13750
|
-
|
|
13750
|
+
formatCompact(fairValue * tokensOutstanding),
|
|
13751
13751
|
")"
|
|
13752
13752
|
] })
|
|
13753
13753
|
] })
|
|
@@ -13764,7 +13764,7 @@ function PropertyValuation({
|
|
|
13764
13764
|
/* @__PURE__ */ jsx(GaugeIndicator, { type: "fairValue", position: 50 }),
|
|
13765
13765
|
/* @__PURE__ */ jsxs(GaugePriceTag, { position: gaugePosition, children: [
|
|
13766
13766
|
/* @__PURE__ */ jsx("span", { children: "Last Price" }),
|
|
13767
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
13767
|
+
/* @__PURE__ */ jsx("span", { children: formatCompact(lastPrice) })
|
|
13768
13768
|
] }),
|
|
13769
13769
|
/* @__PURE__ */ jsx(GaugeIndicator, { type: "lastPrice", position: gaugePosition })
|
|
13770
13770
|
] }),
|
|
@@ -13772,30 +13772,30 @@ function PropertyValuation({
|
|
|
13772
13772
|
/* @__PURE__ */ jsx(ValuationItem, { children: /* @__PURE__ */ jsxs(ValuationValue, { style: { color: "#4CAF50" }, children: [
|
|
13773
13773
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
13774
13774
|
"< ",
|
|
13775
|
-
|
|
13775
|
+
formatCompact(undervaluedThreshold)
|
|
13776
13776
|
] }),
|
|
13777
13777
|
/* @__PURE__ */ jsxs("span", { className: "valuation-amount-span", style: { fontSize: "0.8rem", fontWeight: "normal" }, children: [
|
|
13778
13778
|
"(",
|
|
13779
|
-
|
|
13779
|
+
formatCompact(undervaluedThreshold * tokensOutstanding),
|
|
13780
13780
|
")"
|
|
13781
13781
|
] })
|
|
13782
13782
|
] }) }),
|
|
13783
13783
|
/* @__PURE__ */ jsx(ValuationItem, { children: /* @__PURE__ */ jsxs(ValuationValue, { style: { color: "var(--color-accent)" }, children: [
|
|
13784
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
13784
|
+
/* @__PURE__ */ jsx("span", { children: formatCompact(fairValue) }),
|
|
13785
13785
|
/* @__PURE__ */ jsxs("span", { className: "valuation-amount-span", style: { fontSize: "0.8rem", fontWeight: "normal" }, children: [
|
|
13786
13786
|
"(",
|
|
13787
|
-
|
|
13787
|
+
formatCompact(fairValue * tokensOutstanding),
|
|
13788
13788
|
")"
|
|
13789
13789
|
] })
|
|
13790
13790
|
] }) }),
|
|
13791
13791
|
/* @__PURE__ */ jsx(ValuationItem, { children: /* @__PURE__ */ jsxs(ValuationValue, { style: { color: "#F44336" }, children: [
|
|
13792
13792
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
13793
13793
|
"> ",
|
|
13794
|
-
|
|
13794
|
+
formatCompact(overvaluedThreshold)
|
|
13795
13795
|
] }),
|
|
13796
13796
|
/* @__PURE__ */ jsxs("span", { className: "valuation-amount-span", style: { fontSize: "0.8rem", fontWeight: "normal" }, children: [
|
|
13797
13797
|
"(",
|
|
13798
|
-
|
|
13798
|
+
formatCompact(overvaluedThreshold * tokensOutstanding),
|
|
13799
13799
|
")"
|
|
13800
13800
|
] })
|
|
13801
13801
|
] }) })
|
|
@@ -14002,6 +14002,14 @@ function formatMillions(value) {
|
|
|
14002
14002
|
}
|
|
14003
14003
|
return `$${(value / 1e6).toFixed(2)}m`;
|
|
14004
14004
|
}
|
|
14005
|
+
function formatCompact(value) {
|
|
14006
|
+
if (value == null || !Number.isFinite(value)) return "\u2014";
|
|
14007
|
+
const abs = Math.abs(value);
|
|
14008
|
+
if (abs >= 1e9) return `$${(value / 1e9).toFixed(2)}B`;
|
|
14009
|
+
if (abs >= 1e6) return `$${(value / 1e6).toFixed(2)}M`;
|
|
14010
|
+
if (abs >= 1e3) return `$${(value / 1e3).toFixed(1)}K`;
|
|
14011
|
+
return formatCurrency6(value);
|
|
14012
|
+
}
|
|
14005
14013
|
function formatBedroomLabel(bedrooms) {
|
|
14006
14014
|
if (!Number.isFinite(bedrooms)) return "\u2014";
|
|
14007
14015
|
return `${bedrooms} Bed`;
|
|
@@ -14282,7 +14290,7 @@ var ValuationValue = styled25.div`
|
|
|
14282
14290
|
font-size: 0.72rem;
|
|
14283
14291
|
|
|
14284
14292
|
.valuation-amount-span {
|
|
14285
|
-
|
|
14293
|
+
display: none;
|
|
14286
14294
|
}
|
|
14287
14295
|
}
|
|
14288
14296
|
`;
|