@loafmarkets/ui 0.1.75 → 0.1.77
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +131 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +131 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2664,7 +2664,7 @@ var PropertyTour = React5.forwardRef(
|
|
|
2664
2664
|
}
|
|
2665
2665
|
);
|
|
2666
2666
|
PropertyTour.displayName = "PropertyTour";
|
|
2667
|
-
var ITEMS_PER_PAGE =
|
|
2667
|
+
var ITEMS_PER_PAGE = 5;
|
|
2668
2668
|
var ensureAnimationsInjected = () => {
|
|
2669
2669
|
if (typeof document === "undefined") return;
|
|
2670
2670
|
if (document.getElementById("property-news-updates-animations")) return;
|
|
@@ -9707,6 +9707,90 @@ function OfferingProgressCard({
|
|
|
9707
9707
|
] })
|
|
9708
9708
|
] });
|
|
9709
9709
|
}
|
|
9710
|
+
if (variant === "home") {
|
|
9711
|
+
const isPreLive = !ipoStarted && ipoStatus !== "CLOSED" && ipoStatus !== "CANCELLED";
|
|
9712
|
+
return /* @__PURE__ */ jsxs(Container, { style, className, children: [
|
|
9713
|
+
/* @__PURE__ */ jsxs(Header2, { children: [
|
|
9714
|
+
/* @__PURE__ */ jsxs("h3", { children: [
|
|
9715
|
+
/* @__PURE__ */ jsx(FaChartLine, {}),
|
|
9716
|
+
" Offering Progress"
|
|
9717
|
+
] }),
|
|
9718
|
+
/* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "0.4rem" }, children: ipoStarted ? /* @__PURE__ */ jsxs(StatusSpan, { $color: "#0ecb81", children: [
|
|
9719
|
+
/* @__PURE__ */ jsx(StatusDot, { $color: "#0ecb81", $pulse: true }),
|
|
9720
|
+
"LIVE"
|
|
9721
|
+
] }) : /* @__PURE__ */ jsxs(StatusSpan, { $color: statusColor || "#D4AF37", children: [
|
|
9722
|
+
/* @__PURE__ */ jsx(StatusDot, { $color: statusColor || "#D4AF37" }),
|
|
9723
|
+
statusLabel || "Preparing"
|
|
9724
|
+
] }) })
|
|
9725
|
+
] }),
|
|
9726
|
+
isPreLive ? /* @__PURE__ */ jsxs(HomePreLiveRow, { children: [
|
|
9727
|
+
countdown ? /* @__PURE__ */ jsxs(HomeCountdownSide, { children: [
|
|
9728
|
+
/* @__PURE__ */ jsx(CountdownLabel, { children: "Opens In" }),
|
|
9729
|
+
/* @__PURE__ */ jsxs(CountdownDigits, { children: [
|
|
9730
|
+
/* @__PURE__ */ jsx(CountdownNumber, { children: String(countdown.days).padStart(2, "0") }),
|
|
9731
|
+
/* @__PURE__ */ jsx(CountdownUnitLabel, { children: "D" }),
|
|
9732
|
+
/* @__PURE__ */ jsx(CountdownSeparator, { children: ":" }),
|
|
9733
|
+
/* @__PURE__ */ jsx(CountdownNumber, { children: String(countdown.hours).padStart(2, "0") }),
|
|
9734
|
+
/* @__PURE__ */ jsx(CountdownUnitLabel, { children: "H" }),
|
|
9735
|
+
/* @__PURE__ */ jsx(CountdownSeparator, { children: ":" }),
|
|
9736
|
+
/* @__PURE__ */ jsx(CountdownNumber, { children: String(countdown.minutes).padStart(2, "0") }),
|
|
9737
|
+
/* @__PURE__ */ jsx(CountdownUnitLabel, { children: "M" }),
|
|
9738
|
+
/* @__PURE__ */ jsx(CountdownSeparator, { children: ":" }),
|
|
9739
|
+
/* @__PURE__ */ jsx(CountdownNumber, { children: String(countdown.seconds).padStart(2, "0") }),
|
|
9740
|
+
/* @__PURE__ */ jsx(CountdownUnitLabel, { children: "S" })
|
|
9741
|
+
] })
|
|
9742
|
+
] }) : /* @__PURE__ */ jsx(HomeCountdownSide, { children: /* @__PURE__ */ jsx(PreLiveStatus, { $statusColor: statusColor, children: "Sale Not Yet Open" }) }),
|
|
9743
|
+
/* @__PURE__ */ jsxs(HomeUnitsSide, { children: [
|
|
9744
|
+
/* @__PURE__ */ jsx(HomeUnitsLabel, { children: "Units Subscribed" }),
|
|
9745
|
+
/* @__PURE__ */ jsxs(HomeUnitsValue, { children: [
|
|
9746
|
+
/* @__PURE__ */ jsx(HomeSpinner, {}),
|
|
9747
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
9748
|
+
" / ",
|
|
9749
|
+
supplyToSell.toLocaleString()
|
|
9750
|
+
] })
|
|
9751
|
+
] })
|
|
9752
|
+
] })
|
|
9753
|
+
] }) : /* @__PURE__ */ jsxs(LiveBody, { children: [
|
|
9754
|
+
/* @__PURE__ */ jsxs(LiveTopRow, { children: [
|
|
9755
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
9756
|
+
/* @__PURE__ */ jsxs(LiveLabel, { children: [
|
|
9757
|
+
"Offering Subscribed ",
|
|
9758
|
+
/* @__PURE__ */ jsx("span", { children: "\u24D8" })
|
|
9759
|
+
] }),
|
|
9760
|
+
/* @__PURE__ */ jsxs(LivePercent, { children: [
|
|
9761
|
+
percentSold.toFixed(1),
|
|
9762
|
+
"%",
|
|
9763
|
+
/* @__PURE__ */ jsx("span", { className: "arrow", children: "\u2191" })
|
|
9764
|
+
] })
|
|
9765
|
+
] }),
|
|
9766
|
+
/* @__PURE__ */ jsxs("div", { style: { textAlign: "right" }, children: [
|
|
9767
|
+
/* @__PURE__ */ jsx(LiveLabel, { children: "Units Subscribed" }),
|
|
9768
|
+
/* @__PURE__ */ jsxs(UnitsValue, { children: [
|
|
9769
|
+
/* @__PURE__ */ jsx("span", { children: totalSold.toLocaleString() }),
|
|
9770
|
+
/* @__PURE__ */ jsxs("small", { children: [
|
|
9771
|
+
"/ ",
|
|
9772
|
+
supplyToSell.toLocaleString()
|
|
9773
|
+
] })
|
|
9774
|
+
] })
|
|
9775
|
+
] })
|
|
9776
|
+
] }),
|
|
9777
|
+
/* @__PURE__ */ jsx(ProgressBarOuter, { children: /* @__PURE__ */ jsx(ProgressBarInner, { style: { width: `${Math.min(percentSold, 100)}%` } }) }),
|
|
9778
|
+
/* @__PURE__ */ jsxs(ProgressInfo, { children: [
|
|
9779
|
+
/* @__PURE__ */ jsxs(ProgressSubscribers, { children: [
|
|
9780
|
+
"Subscribers: ",
|
|
9781
|
+
subscriberCount.toLocaleString()
|
|
9782
|
+
] }),
|
|
9783
|
+
/* @__PURE__ */ jsxs(ProgressAmounts, { children: [
|
|
9784
|
+
/* @__PURE__ */ jsx("span", { className: "raised", children: formatCurrency3(computedRaised) }),
|
|
9785
|
+
/* @__PURE__ */ jsxs("span", { className: "target", children: [
|
|
9786
|
+
" / ",
|
|
9787
|
+
formatCurrency3(computedTarget)
|
|
9788
|
+
] })
|
|
9789
|
+
] })
|
|
9790
|
+
] })
|
|
9791
|
+
] })
|
|
9792
|
+
] });
|
|
9793
|
+
}
|
|
9710
9794
|
return /* @__PURE__ */ jsxs(Container, { style, className, children: [
|
|
9711
9795
|
/* @__PURE__ */ jsxs(Header2, { children: [
|
|
9712
9796
|
/* @__PURE__ */ jsxs("h3", { children: [
|
|
@@ -10015,6 +10099,52 @@ var CompactContainer = styled25.div`
|
|
|
10015
10099
|
flex-direction: column;
|
|
10016
10100
|
gap: 0.5rem;
|
|
10017
10101
|
`;
|
|
10102
|
+
var HomePreLiveRow = styled25.div`
|
|
10103
|
+
display: flex;
|
|
10104
|
+
align-items: center;
|
|
10105
|
+
justify-content: space-between;
|
|
10106
|
+
padding-top: 1rem;
|
|
10107
|
+
`;
|
|
10108
|
+
var HomeCountdownSide = styled25.div`
|
|
10109
|
+
display: flex;
|
|
10110
|
+
flex-direction: column;
|
|
10111
|
+
align-items: center;
|
|
10112
|
+
flex: 1;
|
|
10113
|
+
`;
|
|
10114
|
+
var HomeUnitsSide = styled25.div`
|
|
10115
|
+
text-align: center;
|
|
10116
|
+
flex-shrink: 0;
|
|
10117
|
+
`;
|
|
10118
|
+
var HomeUnitsLabel = styled25.div`
|
|
10119
|
+
font-size: 0.6rem;
|
|
10120
|
+
color: var(--color-text-secondary);
|
|
10121
|
+
text-transform: uppercase;
|
|
10122
|
+
letter-spacing: 0.1em;
|
|
10123
|
+
margin-bottom: 0.2rem;
|
|
10124
|
+
`;
|
|
10125
|
+
var HomeUnitsValue = styled25.div`
|
|
10126
|
+
font-size: 1.1rem;
|
|
10127
|
+
font-weight: 700;
|
|
10128
|
+
font-family: monospace;
|
|
10129
|
+
span {
|
|
10130
|
+
color: var(--color-text-secondary);
|
|
10131
|
+
font-weight: 400;
|
|
10132
|
+
}
|
|
10133
|
+
`;
|
|
10134
|
+
var HomeSpinner = styled25.span`
|
|
10135
|
+
display: inline-block;
|
|
10136
|
+
width: 14px;
|
|
10137
|
+
height: 14px;
|
|
10138
|
+
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
10139
|
+
border-top-color: var(--color-accent, #f0b90b);
|
|
10140
|
+
border-radius: 50%;
|
|
10141
|
+
animation: homeSpin 1s linear infinite;
|
|
10142
|
+
vertical-align: middle;
|
|
10143
|
+
margin-right: 0.15rem;
|
|
10144
|
+
@keyframes homeSpin {
|
|
10145
|
+
to { transform: rotate(360deg); }
|
|
10146
|
+
}
|
|
10147
|
+
`;
|
|
10018
10148
|
var MAX_DISPLAY_AMOUNT = 6e4;
|
|
10019
10149
|
var formatCurrency4 = (amount) => {
|
|
10020
10150
|
if (amount >= 1e6) return `$${(amount / 1e6).toFixed(2)}M`;
|