@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.js CHANGED
@@ -4593,8 +4593,8 @@ var PriceChart = React5__namespace.forwardRef(
4593
4593
  PriceChart.displayName = "PriceChart";
4594
4594
  var formatPrice3 = (value, currencySymbol) => {
4595
4595
  return `${currencySymbol}${value.toLocaleString(void 0, {
4596
- minimumFractionDigits: 3,
4597
- maximumFractionDigits: 3
4596
+ minimumFractionDigits: 0,
4597
+ maximumFractionDigits: 2
4598
4598
  })}`;
4599
4599
  };
4600
4600
  var PropertyHeroHeader = React5__namespace.forwardRef(
@@ -6820,8 +6820,12 @@ var LoginPopup = ({
6820
6820
  /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: onClose, "aria-label": "Close login popup", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.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" }) }) }),
6821
6821
  /* @__PURE__ */ jsxRuntime.jsxs(Title, { children: [
6822
6822
  /* @__PURE__ */ jsxRuntime.jsx(LogoContainer3, { children: /* @__PURE__ */ jsxRuntime.jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
6823
- "Welcome to Loaf"
6823
+ /* @__PURE__ */ jsxRuntime.jsxs(TitleText, { children: [
6824
+ "Welcome to Loaf",
6825
+ /* @__PURE__ */ jsxRuntime.jsx(BetaBadge, { children: "(Private Beta)" })
6826
+ ] })
6824
6827
  ] }),
6828
+ /* @__PURE__ */ jsxRuntime.jsx(Subtitle, { children: "Sign in to claim $100k in test USD." }),
6825
6829
  /* @__PURE__ */ jsxRuntime.jsxs(ButtonsContainer, { children: [
6826
6830
  /* @__PURE__ */ jsxRuntime.jsxs(LoginButton, { onClick: () => handleEmailClick(false), children: [
6827
6831
  /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.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" }) }),
@@ -6837,19 +6841,6 @@ var LoginPopup = ({
6837
6841
  "Sign in with Passkey"
6838
6842
  ] })
6839
6843
  ] }),
6840
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { textAlign: "center", marginTop: "0.5rem", marginBottom: "1rem" }, children: /* @__PURE__ */ jsxRuntime.jsx(
6841
- "span",
6842
- {
6843
- onClick: () => handleEmailClick(true),
6844
- style: {
6845
- color: "var(--color-text-secondary, #848e9c)",
6846
- fontSize: "0.8rem",
6847
- cursor: "pointer",
6848
- textDecoration: "underline"
6849
- },
6850
- children: "Sign Up"
6851
- }
6852
- ) }),
6853
6844
  /* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
6854
6845
  /* @__PURE__ */ jsxRuntime.jsxs(AnnotationContainer, { children: [
6855
6846
  /* @__PURE__ */ jsxRuntime.jsxs(Annotation, { children: [
@@ -7516,7 +7507,7 @@ var Title = styled9__default.default.h2`
7516
7507
  font-size: 1.75rem;
7517
7508
  font-weight: 600;
7518
7509
  color: var(--color-text, #eaecef);
7519
- margin-bottom: 2rem;
7510
+ margin-bottom: 0.5rem;
7520
7511
  text-align: center;
7521
7512
  display: flex;
7522
7513
  flex-direction: column;
@@ -7524,6 +7515,27 @@ var Title = styled9__default.default.h2`
7524
7515
  justify-content: center;
7525
7516
  gap: 1rem;
7526
7517
  `;
7518
+ var TitleText = styled9__default.default.span`
7519
+ display: flex;
7520
+ flex-direction: column;
7521
+ align-items: center;
7522
+ gap: 0.35rem;
7523
+ text-align: center;
7524
+ line-height: 1.2;
7525
+ `;
7526
+ var BetaBadge = styled9__default.default.span`
7527
+ font-size: 0.875rem;
7528
+ font-weight: 500;
7529
+ color: var(--color-accent, #e6c87e);
7530
+ white-space: nowrap;
7531
+ `;
7532
+ var Subtitle = styled9__default.default.p`
7533
+ font-size: 0.9rem;
7534
+ font-weight: 400;
7535
+ color: var(--color-text-secondary, #848e9c);
7536
+ text-align: center;
7537
+ margin: 0 0 2rem;
7538
+ `;
7527
7539
  var LogoContainer3 = styled9__default.default.div`
7528
7540
  display: flex;
7529
7541
  justify-content: center;
@@ -9098,10 +9110,9 @@ function PropertyOverview({
9098
9110
  const ownershipLabel = overviewData?.ownership ? overviewData.ownership.charAt(0).toUpperCase() + overviewData.ownership.slice(1).toLowerCase() : null;
9099
9111
  const propertyHistory = overviewData?.propertyHistory ?? [];
9100
9112
  const closedDays = marketHours?.marketClosedDays.filter((d) => d.toLowerCase() !== "never") ?? [];
9101
- const tradingHoursValue = marketHours ? marketHours.marketOpenTime === marketHours.marketCloseTime ? "24 Hours" : `${marketHours.marketOpenTime} \u2013 ${marketHours.marketCloseTime}` : "";
9102
- const tradingDaysValue = marketHours ? closedDays.length ? `Closed ${closedDays.join(", ")}` : "Every day" : "";
9103
- const tradingHoursNote = marketHours ? `All times shown in ${marketHours.marketTimezone}.` : "";
9104
- const showTradingHours = marketHours != null;
9113
+ const tradingHoursValue = marketHours ? marketHours.marketOpenTime === marketHours.marketCloseTime ? "24 Hours" : `${marketHours.marketOpenTime} \u2013 ${marketHours.marketCloseTime}` : "10:00 \u2013 16:00";
9114
+ const tradingDaysValue = marketHours ? closedDays.length ? `Closed ${closedDays.join(", ")}` : "Every day" : "Mon \u2013 Fri";
9115
+ const tradingHoursNote = marketHours ? `All times shown in ${marketHours.marketTimezone}.` : "Markets are closed on public holidays.";
9105
9116
  return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { children: [
9106
9117
  /* @__PURE__ */ jsxRuntime.jsxs(Section, { children: [
9107
9118
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { children: "About" }),
@@ -9304,7 +9315,7 @@ function PropertyOverview({
9304
9315
  ] })
9305
9316
  ] })
9306
9317
  ] }),
9307
- showTradingHours && /* @__PURE__ */ jsxRuntime.jsxs(Section, { children: [
9318
+ /* @__PURE__ */ jsxRuntime.jsxs(Section, { children: [
9308
9319
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { children: "Trading Hours" }),
9309
9320
  /* @__PURE__ */ jsxRuntime.jsxs(TradingHoursCard, { children: [
9310
9321
  /* @__PURE__ */ jsxRuntime.jsxs(TradingHoursRow, { children: [
@@ -11714,6 +11725,7 @@ function SlideDigit({ value }) {
11714
11725
  ] });
11715
11726
  }
11716
11727
  var formatCurrency3 = (amount) => {
11728
+ if (amount >= 1e9) return `$${(amount / 1e9).toFixed(1)}B`;
11717
11729
  if (amount >= 1e6) return `$${(amount / 1e6).toFixed(1)}M`;
11718
11730
  if (amount >= 1e3) return `$${(amount / 1e3).toFixed(0)}K`;
11719
11731
  return `$${Math.round(amount).toLocaleString()}`;