@loafmarkets/ui 0.1.352 → 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 +30 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -8
- 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()}`;
|
|
@@ -13438,8 +13438,14 @@ var Modal = styled9.div`
|
|
|
13438
13438
|
padding: 2rem;
|
|
13439
13439
|
max-width: 480px;
|
|
13440
13440
|
width: 90%;
|
|
13441
|
+
max-height: 90vh;
|
|
13442
|
+
overflow-y: auto;
|
|
13443
|
+
overflow-x: hidden;
|
|
13441
13444
|
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
|
|
13442
|
-
|
|
13445
|
+
|
|
13446
|
+
@media (max-width: 768px) {
|
|
13447
|
+
padding: 1.5rem;
|
|
13448
|
+
}
|
|
13443
13449
|
`;
|
|
13444
13450
|
var ModalHeader = styled9.div`
|
|
13445
13451
|
display: flex;
|
|
@@ -13545,6 +13551,12 @@ var ModalFooter = styled9.div`
|
|
|
13545
13551
|
align-items: center;
|
|
13546
13552
|
justify-content: space-between;
|
|
13547
13553
|
gap: 0.75rem;
|
|
13554
|
+
|
|
13555
|
+
@media (max-width: 560px) {
|
|
13556
|
+
flex-direction: column;
|
|
13557
|
+
align-items: stretch;
|
|
13558
|
+
gap: 1rem;
|
|
13559
|
+
}
|
|
13548
13560
|
`;
|
|
13549
13561
|
var DontShowLabel = styled9.label`
|
|
13550
13562
|
display: flex;
|
|
@@ -13562,6 +13574,11 @@ var ButtonRow2 = styled9.div`
|
|
|
13562
13574
|
gap: 1rem;
|
|
13563
13575
|
justify-content: flex-end;
|
|
13564
13576
|
flex-shrink: 0;
|
|
13577
|
+
|
|
13578
|
+
@media (max-width: 560px) {
|
|
13579
|
+
width: 100%;
|
|
13580
|
+
gap: 0.75rem;
|
|
13581
|
+
}
|
|
13565
13582
|
`;
|
|
13566
13583
|
var BaseButton = styled9.button`
|
|
13567
13584
|
padding: 0.75rem 1.5rem;
|
|
@@ -13579,6 +13596,11 @@ var BaseButton = styled9.button`
|
|
|
13579
13596
|
cursor: not-allowed;
|
|
13580
13597
|
opacity: 0.75;
|
|
13581
13598
|
}
|
|
13599
|
+
|
|
13600
|
+
@media (max-width: 560px) {
|
|
13601
|
+
flex: 1;
|
|
13602
|
+
padding: 0.875rem 1rem;
|
|
13603
|
+
}
|
|
13582
13604
|
`;
|
|
13583
13605
|
var SecondaryButton = styled9(BaseButton)`
|
|
13584
13606
|
background: rgba(255,255,255,0.1);
|