@loafmarkets/ui 0.1.354 → 0.1.356

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
@@ -4566,6 +4566,11 @@ var PriceChart = React5.forwardRef(
4566
4566
  );
4567
4567
  PriceChart.displayName = "PriceChart";
4568
4568
  var formatPrice3 = (value, currencySymbol) => {
4569
+ const abs = Math.abs(value);
4570
+ if (abs >= 1e6) {
4571
+ const unit = abs >= 1e12 ? { v: 1e12, s: "T" } : abs >= 1e9 ? { v: 1e9, s: "B" } : { v: 1e6, s: "M" };
4572
+ return `${currencySymbol}${(value / unit.v).toFixed(1)}${unit.s}`;
4573
+ }
4569
4574
  return `${currencySymbol}${value.toLocaleString(void 0, {
4570
4575
  minimumFractionDigits: 0,
4571
4576
  maximumFractionDigits: 2
@@ -6794,8 +6799,12 @@ var LoginPopup = ({
6794
6799
  /* @__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
6800
  /* @__PURE__ */ jsxs(Title, { children: [
6796
6801
  /* @__PURE__ */ jsx(LogoContainer3, { children: /* @__PURE__ */ jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
6797
- "Welcome to Loaf"
6802
+ /* @__PURE__ */ jsxs(TitleText, { children: [
6803
+ "Welcome to Loaf",
6804
+ /* @__PURE__ */ jsx(BetaBadge, { children: "(Private Beta)" })
6805
+ ] })
6798
6806
  ] }),
6807
+ /* @__PURE__ */ jsx(Subtitle, { children: "Sign in to claim $100k in test USD." }),
6799
6808
  /* @__PURE__ */ jsxs(ButtonsContainer, { children: [
6800
6809
  /* @__PURE__ */ jsxs(LoginButton, { onClick: () => handleEmailClick(false), children: [
6801
6810
  /* @__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 +6820,6 @@ var LoginPopup = ({
6811
6820
  "Sign in with Passkey"
6812
6821
  ] })
6813
6822
  ] }),
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
6823
  /* @__PURE__ */ jsx(Divider, {}),
6828
6824
  /* @__PURE__ */ jsxs(AnnotationContainer, { children: [
6829
6825
  /* @__PURE__ */ jsxs(Annotation, { children: [
@@ -7490,7 +7486,7 @@ var Title = styled9.h2`
7490
7486
  font-size: 1.75rem;
7491
7487
  font-weight: 600;
7492
7488
  color: var(--color-text, #eaecef);
7493
- margin-bottom: 2rem;
7489
+ margin-bottom: 0.5rem;
7494
7490
  text-align: center;
7495
7491
  display: flex;
7496
7492
  flex-direction: column;
@@ -7498,6 +7494,27 @@ var Title = styled9.h2`
7498
7494
  justify-content: center;
7499
7495
  gap: 1rem;
7500
7496
  `;
7497
+ var TitleText = styled9.span`
7498
+ display: flex;
7499
+ flex-direction: column;
7500
+ align-items: center;
7501
+ gap: 0.35rem;
7502
+ text-align: center;
7503
+ line-height: 1.2;
7504
+ `;
7505
+ var BetaBadge = styled9.span`
7506
+ font-size: 0.875rem;
7507
+ font-weight: 500;
7508
+ color: var(--color-accent, #e6c87e);
7509
+ white-space: nowrap;
7510
+ `;
7511
+ var Subtitle = styled9.p`
7512
+ font-size: 0.9rem;
7513
+ font-weight: 400;
7514
+ color: var(--color-text-secondary, #848e9c);
7515
+ text-align: center;
7516
+ margin: 0 0 2rem;
7517
+ `;
7501
7518
  var LogoContainer3 = styled9.div`
7502
7519
  display: flex;
7503
7520
  justify-content: center;
@@ -9041,7 +9058,7 @@ function PropertyOverview({
9041
9058
  ] });
9042
9059
  const tokenDetailsItems = [
9043
9060
  { label: "Chain", value: chainValue },
9044
- { label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
9061
+ { label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://sepolia.basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
9045
9062
  { label: "Token Ticker", value: ticker ?? "\u2014" },
9046
9063
  { label: "Total Circulating Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
9047
9064
  { label: "Legal Structuring", value: "See Documents", docLink: true },
@@ -9487,7 +9504,7 @@ function HoldersPopup({
9487
9504
  window.addEventListener("keydown", handleEsc);
9488
9505
  return () => window.removeEventListener("keydown", handleEsc);
9489
9506
  }, [onClose]);
9490
- const basescanUrl = contractAddress ? `https://basescan.org/token/${contractAddress}#balances` : "https://basescan.org";
9507
+ const basescanUrl = contractAddress ? `https://sepolia.basescan.org/token/${contractAddress}#balances` : "https://sepolia.basescan.org";
9491
9508
  return /* @__PURE__ */ jsx(DivPopupOverlay, { onClick: onClose, children: /* @__PURE__ */ jsxs(HoldersPanel, { onClick: (e) => e.stopPropagation(), children: [
9492
9509
  /* @__PURE__ */ jsxs(DivPopupHeader, { children: [
9493
9510
  /* @__PURE__ */ jsxs(DivPopupTitle, { children: [
@@ -9509,7 +9526,7 @@ function HoldersPopup({
9509
9526
  MOCK_HOLDERS.map((h) => /* @__PURE__ */ jsxs(HoldersTableRow, { children: [
9510
9527
  /* @__PURE__ */ jsx(HoldersColRank, { children: h.rank }),
9511
9528
  /* @__PURE__ */ jsxs(HoldersColAddr, { children: [
9512
- /* @__PURE__ */ jsx(HolderAddrLink, { href: `https://basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
9529
+ /* @__PURE__ */ jsx(HolderAddrLink, { href: `https://sepolia.basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
9513
9530
  h.label && /* @__PURE__ */ jsx(HolderLabel, { children: h.label })
9514
9531
  ] }),
9515
9532
  /* @__PURE__ */ jsx(HoldersColTokens, { children: h.tokens.toLocaleString() }),