@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.js +35 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4592,6 +4592,11 @@ var PriceChart = React5__namespace.forwardRef(
|
|
|
4592
4592
|
);
|
|
4593
4593
|
PriceChart.displayName = "PriceChart";
|
|
4594
4594
|
var formatPrice3 = (value, currencySymbol) => {
|
|
4595
|
+
const abs = Math.abs(value);
|
|
4596
|
+
if (abs >= 1e6) {
|
|
4597
|
+
const unit = abs >= 1e12 ? { v: 1e12, s: "T" } : abs >= 1e9 ? { v: 1e9, s: "B" } : { v: 1e6, s: "M" };
|
|
4598
|
+
return `${currencySymbol}${(value / unit.v).toFixed(1)}${unit.s}`;
|
|
4599
|
+
}
|
|
4595
4600
|
return `${currencySymbol}${value.toLocaleString(void 0, {
|
|
4596
4601
|
minimumFractionDigits: 0,
|
|
4597
4602
|
maximumFractionDigits: 2
|
|
@@ -6820,8 +6825,12 @@ var LoginPopup = ({
|
|
|
6820
6825
|
/* @__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
6826
|
/* @__PURE__ */ jsxRuntime.jsxs(Title, { children: [
|
|
6822
6827
|
/* @__PURE__ */ jsxRuntime.jsx(LogoContainer3, { children: /* @__PURE__ */ jsxRuntime.jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
|
|
6823
|
-
|
|
6828
|
+
/* @__PURE__ */ jsxRuntime.jsxs(TitleText, { children: [
|
|
6829
|
+
"Welcome to Loaf",
|
|
6830
|
+
/* @__PURE__ */ jsxRuntime.jsx(BetaBadge, { children: "(Private Beta)" })
|
|
6831
|
+
] })
|
|
6824
6832
|
] }),
|
|
6833
|
+
/* @__PURE__ */ jsxRuntime.jsx(Subtitle, { children: "Sign in to claim $100k in test USD." }),
|
|
6825
6834
|
/* @__PURE__ */ jsxRuntime.jsxs(ButtonsContainer, { children: [
|
|
6826
6835
|
/* @__PURE__ */ jsxRuntime.jsxs(LoginButton, { onClick: () => handleEmailClick(false), children: [
|
|
6827
6836
|
/* @__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 +6846,6 @@ var LoginPopup = ({
|
|
|
6837
6846
|
"Sign in with Passkey"
|
|
6838
6847
|
] })
|
|
6839
6848
|
] }),
|
|
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
6849
|
/* @__PURE__ */ jsxRuntime.jsx(Divider, {}),
|
|
6854
6850
|
/* @__PURE__ */ jsxRuntime.jsxs(AnnotationContainer, { children: [
|
|
6855
6851
|
/* @__PURE__ */ jsxRuntime.jsxs(Annotation, { children: [
|
|
@@ -7516,7 +7512,7 @@ var Title = styled9__default.default.h2`
|
|
|
7516
7512
|
font-size: 1.75rem;
|
|
7517
7513
|
font-weight: 600;
|
|
7518
7514
|
color: var(--color-text, #eaecef);
|
|
7519
|
-
margin-bottom:
|
|
7515
|
+
margin-bottom: 0.5rem;
|
|
7520
7516
|
text-align: center;
|
|
7521
7517
|
display: flex;
|
|
7522
7518
|
flex-direction: column;
|
|
@@ -7524,6 +7520,27 @@ var Title = styled9__default.default.h2`
|
|
|
7524
7520
|
justify-content: center;
|
|
7525
7521
|
gap: 1rem;
|
|
7526
7522
|
`;
|
|
7523
|
+
var TitleText = styled9__default.default.span`
|
|
7524
|
+
display: flex;
|
|
7525
|
+
flex-direction: column;
|
|
7526
|
+
align-items: center;
|
|
7527
|
+
gap: 0.35rem;
|
|
7528
|
+
text-align: center;
|
|
7529
|
+
line-height: 1.2;
|
|
7530
|
+
`;
|
|
7531
|
+
var BetaBadge = styled9__default.default.span`
|
|
7532
|
+
font-size: 0.875rem;
|
|
7533
|
+
font-weight: 500;
|
|
7534
|
+
color: var(--color-accent, #e6c87e);
|
|
7535
|
+
white-space: nowrap;
|
|
7536
|
+
`;
|
|
7537
|
+
var Subtitle = styled9__default.default.p`
|
|
7538
|
+
font-size: 0.9rem;
|
|
7539
|
+
font-weight: 400;
|
|
7540
|
+
color: var(--color-text-secondary, #848e9c);
|
|
7541
|
+
text-align: center;
|
|
7542
|
+
margin: 0 0 2rem;
|
|
7543
|
+
`;
|
|
7527
7544
|
var LogoContainer3 = styled9__default.default.div`
|
|
7528
7545
|
display: flex;
|
|
7529
7546
|
justify-content: center;
|
|
@@ -9067,7 +9084,7 @@ function PropertyOverview({
|
|
|
9067
9084
|
] });
|
|
9068
9085
|
const tokenDetailsItems = [
|
|
9069
9086
|
{ label: "Chain", value: chainValue },
|
|
9070
|
-
{ label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
|
|
9087
|
+
{ label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://sepolia.basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
|
|
9071
9088
|
{ label: "Token Ticker", value: ticker ?? "\u2014" },
|
|
9072
9089
|
{ label: "Total Circulating Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
|
|
9073
9090
|
{ label: "Legal Structuring", value: "See Documents", docLink: true },
|
|
@@ -9513,7 +9530,7 @@ function HoldersPopup({
|
|
|
9513
9530
|
window.addEventListener("keydown", handleEsc);
|
|
9514
9531
|
return () => window.removeEventListener("keydown", handleEsc);
|
|
9515
9532
|
}, [onClose]);
|
|
9516
|
-
const basescanUrl = contractAddress ? `https://basescan.org/token/${contractAddress}#balances` : "https://basescan.org";
|
|
9533
|
+
const basescanUrl = contractAddress ? `https://sepolia.basescan.org/token/${contractAddress}#balances` : "https://sepolia.basescan.org";
|
|
9517
9534
|
return /* @__PURE__ */ jsxRuntime.jsx(DivPopupOverlay, { onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(HoldersPanel, { onClick: (e) => e.stopPropagation(), children: [
|
|
9518
9535
|
/* @__PURE__ */ jsxRuntime.jsxs(DivPopupHeader, { children: [
|
|
9519
9536
|
/* @__PURE__ */ jsxRuntime.jsxs(DivPopupTitle, { children: [
|
|
@@ -9535,7 +9552,7 @@ function HoldersPopup({
|
|
|
9535
9552
|
MOCK_HOLDERS.map((h) => /* @__PURE__ */ jsxRuntime.jsxs(HoldersTableRow, { children: [
|
|
9536
9553
|
/* @__PURE__ */ jsxRuntime.jsx(HoldersColRank, { children: h.rank }),
|
|
9537
9554
|
/* @__PURE__ */ jsxRuntime.jsxs(HoldersColAddr, { children: [
|
|
9538
|
-
/* @__PURE__ */ jsxRuntime.jsx(HolderAddrLink, { href: `https://basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
|
|
9555
|
+
/* @__PURE__ */ jsxRuntime.jsx(HolderAddrLink, { href: `https://sepolia.basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
|
|
9539
9556
|
h.label && /* @__PURE__ */ jsxRuntime.jsx(HolderLabel, { children: h.label })
|
|
9540
9557
|
] }),
|
|
9541
9558
|
/* @__PURE__ */ jsxRuntime.jsx(HoldersColTokens, { children: h.tokens.toLocaleString() }),
|