@loafmarkets/ui 0.1.353 → 0.1.355

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.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: 3,
4571
- maximumFractionDigits: 3
4570
+ minimumFractionDigits: 0,
4571
+ maximumFractionDigits: 2
4572
4572
  })}`;
4573
4573
  };
4574
4574
  var PropertyHeroHeader = React5.forwardRef(
@@ -6794,8 +6794,12 @@ var LoginPopup = ({
6794
6794
  /* @__PURE__ */ jsx(CloseButton, { onClick: onClose, "aria-label": "Close login popup", children: /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) }),
6795
6795
  /* @__PURE__ */ jsxs(Title, { children: [
6796
6796
  /* @__PURE__ */ jsx(LogoContainer3, { children: /* @__PURE__ */ jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
6797
- "Welcome to Loaf"
6797
+ /* @__PURE__ */ jsxs(TitleText, { children: [
6798
+ "Welcome to Loaf",
6799
+ /* @__PURE__ */ jsx(BetaBadge, { children: "(Private Beta)" })
6800
+ ] })
6798
6801
  ] }),
6802
+ /* @__PURE__ */ jsx(Subtitle, { children: "Sign in to claim $100k in test USD." }),
6799
6803
  /* @__PURE__ */ jsxs(ButtonsContainer, { children: [
6800
6804
  /* @__PURE__ */ jsxs(LoginButton, { onClick: () => handleEmailClick(false), children: [
6801
6805
  /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z" }) }),
@@ -6811,19 +6815,6 @@ var LoginPopup = ({
6811
6815
  "Sign in with Passkey"
6812
6816
  ] })
6813
6817
  ] }),
6814
- /* @__PURE__ */ jsx("div", { style: { textAlign: "center", marginTop: "0.5rem", marginBottom: "1rem" }, children: /* @__PURE__ */ jsx(
6815
- "span",
6816
- {
6817
- onClick: () => handleEmailClick(true),
6818
- style: {
6819
- color: "var(--color-text-secondary, #848e9c)",
6820
- fontSize: "0.8rem",
6821
- cursor: "pointer",
6822
- textDecoration: "underline"
6823
- },
6824
- children: "Sign Up"
6825
- }
6826
- ) }),
6827
6818
  /* @__PURE__ */ jsx(Divider, {}),
6828
6819
  /* @__PURE__ */ jsxs(AnnotationContainer, { children: [
6829
6820
  /* @__PURE__ */ jsxs(Annotation, { children: [
@@ -7490,7 +7481,7 @@ var Title = styled9.h2`
7490
7481
  font-size: 1.75rem;
7491
7482
  font-weight: 600;
7492
7483
  color: var(--color-text, #eaecef);
7493
- margin-bottom: 2rem;
7484
+ margin-bottom: 0.5rem;
7494
7485
  text-align: center;
7495
7486
  display: flex;
7496
7487
  flex-direction: column;
@@ -7498,6 +7489,27 @@ var Title = styled9.h2`
7498
7489
  justify-content: center;
7499
7490
  gap: 1rem;
7500
7491
  `;
7492
+ var TitleText = styled9.span`
7493
+ display: flex;
7494
+ flex-direction: column;
7495
+ align-items: center;
7496
+ gap: 0.35rem;
7497
+ text-align: center;
7498
+ line-height: 1.2;
7499
+ `;
7500
+ var BetaBadge = styled9.span`
7501
+ font-size: 0.875rem;
7502
+ font-weight: 500;
7503
+ color: var(--color-accent, #e6c87e);
7504
+ white-space: nowrap;
7505
+ `;
7506
+ var Subtitle = styled9.p`
7507
+ font-size: 0.9rem;
7508
+ font-weight: 400;
7509
+ color: var(--color-text-secondary, #848e9c);
7510
+ text-align: center;
7511
+ margin: 0 0 2rem;
7512
+ `;
7501
7513
  var LogoContainer3 = styled9.div`
7502
7514
  display: flex;
7503
7515
  justify-content: center;
@@ -9072,10 +9084,9 @@ function PropertyOverview({
9072
9084
  const ownershipLabel = overviewData?.ownership ? overviewData.ownership.charAt(0).toUpperCase() + overviewData.ownership.slice(1).toLowerCase() : null;
9073
9085
  const propertyHistory = overviewData?.propertyHistory ?? [];
9074
9086
  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;
9087
+ const tradingHoursValue = marketHours ? marketHours.marketOpenTime === marketHours.marketCloseTime ? "24 Hours" : `${marketHours.marketOpenTime} \u2013 ${marketHours.marketCloseTime}` : "10:00 \u2013 16:00";
9088
+ const tradingDaysValue = marketHours ? closedDays.length ? `Closed ${closedDays.join(", ")}` : "Every day" : "Mon \u2013 Fri";
9089
+ const tradingHoursNote = marketHours ? `All times shown in ${marketHours.marketTimezone}.` : "Markets are closed on public holidays.";
9079
9090
  return /* @__PURE__ */ jsxs(Wrapper, { children: [
9080
9091
  /* @__PURE__ */ jsxs(Section, { children: [
9081
9092
  /* @__PURE__ */ jsx(SectionHeader, { children: "About" }),
@@ -9278,7 +9289,7 @@ function PropertyOverview({
9278
9289
  ] })
9279
9290
  ] })
9280
9291
  ] }),
9281
- showTradingHours && /* @__PURE__ */ jsxs(Section, { children: [
9292
+ /* @__PURE__ */ jsxs(Section, { children: [
9282
9293
  /* @__PURE__ */ jsx(SectionHeader, { children: "Trading Hours" }),
9283
9294
  /* @__PURE__ */ jsxs(TradingHoursCard, { children: [
9284
9295
  /* @__PURE__ */ jsxs(TradingHoursRow, { children: [
@@ -11688,6 +11699,7 @@ function SlideDigit({ value }) {
11688
11699
  ] });
11689
11700
  }
11690
11701
  var formatCurrency3 = (amount) => {
11702
+ if (amount >= 1e9) return `$${(amount / 1e9).toFixed(1)}B`;
11691
11703
  if (amount >= 1e6) return `$${(amount / 1e6).toFixed(1)}M`;
11692
11704
  if (amount >= 1e3) return `$${(amount / 1e3).toFixed(0)}K`;
11693
11705
  return `$${Math.round(amount).toLocaleString()}`;