@loafmarkets/ui 0.1.353 → 0.1.354
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 +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4567,8 +4567,8 @@ var PriceChart = React5.forwardRef(
|
|
|
4567
4567
|
PriceChart.displayName = "PriceChart";
|
|
4568
4568
|
var formatPrice3 = (value, currencySymbol) => {
|
|
4569
4569
|
return `${currencySymbol}${value.toLocaleString(void 0, {
|
|
4570
|
-
minimumFractionDigits:
|
|
4571
|
-
maximumFractionDigits:
|
|
4570
|
+
minimumFractionDigits: 0,
|
|
4571
|
+
maximumFractionDigits: 2
|
|
4572
4572
|
})}`;
|
|
4573
4573
|
};
|
|
4574
4574
|
var PropertyHeroHeader = React5.forwardRef(
|
|
@@ -9072,10 +9072,9 @@ function PropertyOverview({
|
|
|
9072
9072
|
const ownershipLabel = overviewData?.ownership ? overviewData.ownership.charAt(0).toUpperCase() + overviewData.ownership.slice(1).toLowerCase() : null;
|
|
9073
9073
|
const propertyHistory = overviewData?.propertyHistory ?? [];
|
|
9074
9074
|
const closedDays = marketHours?.marketClosedDays.filter((d) => d.toLowerCase() !== "never") ?? [];
|
|
9075
|
-
const tradingHoursValue = marketHours ? marketHours.marketOpenTime === marketHours.marketCloseTime ? "24 Hours" : `${marketHours.marketOpenTime} \u2013 ${marketHours.marketCloseTime}` : "";
|
|
9076
|
-
const tradingDaysValue = marketHours ? closedDays.length ? `Closed ${closedDays.join(", ")}` : "Every day" : "";
|
|
9077
|
-
const tradingHoursNote = marketHours ? `All times shown in ${marketHours.marketTimezone}.` : "";
|
|
9078
|
-
const showTradingHours = marketHours != null;
|
|
9075
|
+
const tradingHoursValue = marketHours ? marketHours.marketOpenTime === marketHours.marketCloseTime ? "24 Hours" : `${marketHours.marketOpenTime} \u2013 ${marketHours.marketCloseTime}` : "10:00 \u2013 16:00";
|
|
9076
|
+
const tradingDaysValue = marketHours ? closedDays.length ? `Closed ${closedDays.join(", ")}` : "Every day" : "Mon \u2013 Fri";
|
|
9077
|
+
const tradingHoursNote = marketHours ? `All times shown in ${marketHours.marketTimezone}.` : "Markets are closed on public holidays.";
|
|
9079
9078
|
return /* @__PURE__ */ jsxs(Wrapper, { children: [
|
|
9080
9079
|
/* @__PURE__ */ jsxs(Section, { children: [
|
|
9081
9080
|
/* @__PURE__ */ jsx(SectionHeader, { children: "About" }),
|
|
@@ -9278,7 +9277,7 @@ function PropertyOverview({
|
|
|
9278
9277
|
] })
|
|
9279
9278
|
] })
|
|
9280
9279
|
] }),
|
|
9281
|
-
|
|
9280
|
+
/* @__PURE__ */ jsxs(Section, { children: [
|
|
9282
9281
|
/* @__PURE__ */ jsx(SectionHeader, { children: "Trading Hours" }),
|
|
9283
9282
|
/* @__PURE__ */ jsxs(TradingHoursCard, { children: [
|
|
9284
9283
|
/* @__PURE__ */ jsxs(TradingHoursRow, { children: [
|
|
@@ -11688,6 +11687,7 @@ function SlideDigit({ value }) {
|
|
|
11688
11687
|
] });
|
|
11689
11688
|
}
|
|
11690
11689
|
var formatCurrency3 = (amount) => {
|
|
11690
|
+
if (amount >= 1e9) return `$${(amount / 1e9).toFixed(1)}B`;
|
|
11691
11691
|
if (amount >= 1e6) return `$${(amount / 1e6).toFixed(1)}M`;
|
|
11692
11692
|
if (amount >= 1e3) return `$${(amount / 1e3).toFixed(0)}K`;
|
|
11693
11693
|
return `$${Math.round(amount).toLocaleString()}`;
|