@loafmarkets/ui 0.1.393 → 0.1.395
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.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +31 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5074,10 +5074,11 @@ var Header = ({
|
|
|
5074
5074
|
onOrdersNavigate: _onOrdersNavigate,
|
|
5075
5075
|
onWalletNavigate: _onWalletNavigate,
|
|
5076
5076
|
onSettingsClick,
|
|
5077
|
-
showRefer = false,
|
|
5078
5077
|
portfolioSummary,
|
|
5079
5078
|
fundsPending = false,
|
|
5080
|
-
transparentOnTop = false
|
|
5079
|
+
transparentOnTop = false,
|
|
5080
|
+
headerCta = "deposit",
|
|
5081
|
+
showRefer = false
|
|
5081
5082
|
}) => {
|
|
5082
5083
|
const [headerBgOpacity, setHeaderBgOpacity] = useState(transparentOnTop ? 0 : 1);
|
|
5083
5084
|
const [isUserMenuOpen, setIsUserMenuOpen] = useState(false);
|
|
@@ -5504,14 +5505,25 @@ var Header = ({
|
|
|
5504
5505
|
children: isPortfolioBarVisible ? /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" }) }) : /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 001 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z" }) })
|
|
5505
5506
|
}
|
|
5506
5507
|
),
|
|
5507
|
-
isAuthenticated && /* @__PURE__ */ jsx(
|
|
5508
|
+
isAuthenticated && (headerCta === "refer" ? /* @__PURE__ */ jsx(
|
|
5509
|
+
DepositButton,
|
|
5510
|
+
{
|
|
5511
|
+
type: "button",
|
|
5512
|
+
onClick: (event) => {
|
|
5513
|
+
event?.preventDefault();
|
|
5514
|
+
closeMenus();
|
|
5515
|
+
onSettingsClick?.();
|
|
5516
|
+
},
|
|
5517
|
+
children: "Refer"
|
|
5518
|
+
}
|
|
5519
|
+
) : /* @__PURE__ */ jsx(
|
|
5508
5520
|
DepositButton,
|
|
5509
5521
|
{
|
|
5510
5522
|
type: "button",
|
|
5511
5523
|
onClick: (e) => handleAddFundingClick(e),
|
|
5512
5524
|
children: "Deposit"
|
|
5513
5525
|
}
|
|
5514
|
-
),
|
|
5526
|
+
)),
|
|
5515
5527
|
/* @__PURE__ */ jsxs(UserMenu, { children: [
|
|
5516
5528
|
/* @__PURE__ */ jsxs(
|
|
5517
5529
|
UserButton,
|
|
@@ -7392,6 +7404,7 @@ var LoginPopup = ({
|
|
|
7392
7404
|
] }) : /* @__PURE__ */ jsxs(OnboardingStepContainer, { style: { alignItems: "stretch", textAlign: "left" }, children: [
|
|
7393
7405
|
/* @__PURE__ */ jsx(OnboardingHeading, { style: { textAlign: "center" }, children: "Deposit Funds" }),
|
|
7394
7406
|
/* @__PURE__ */ jsx(OnboardingSubtext, { style: { textAlign: "center", marginBottom: "1rem" }, children: "Choose how you'd like to fund your account." }),
|
|
7407
|
+
/* @__PURE__ */ jsx(TestnetWarningBanner, { children: TESTNET_DEPOSIT_WARNING }),
|
|
7395
7408
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.75rem" }, children: [
|
|
7396
7409
|
/* @__PURE__ */ jsxs(ModalOptionCard, { onClick: () => {
|
|
7397
7410
|
if (walletAddress) {
|
|
@@ -7629,6 +7642,7 @@ var LoginPopup = ({
|
|
|
7629
7642
|
"Back"
|
|
7630
7643
|
] }),
|
|
7631
7644
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", paddingTop: "0.5rem" }, children: [
|
|
7645
|
+
/* @__PURE__ */ jsx(TestnetWarningBanner, { children: TESTNET_DEPOSIT_WARNING }),
|
|
7632
7646
|
/* @__PURE__ */ jsx("div", { style: {
|
|
7633
7647
|
width: 52,
|
|
7634
7648
|
height: 52,
|
|
@@ -8405,6 +8419,19 @@ var OnboardingSubtext = styled10.p`
|
|
|
8405
8419
|
line-height: 1.6;
|
|
8406
8420
|
margin-bottom: 2rem;
|
|
8407
8421
|
`;
|
|
8422
|
+
var TestnetWarningBanner = styled10.div`
|
|
8423
|
+
width: 100%;
|
|
8424
|
+
background: #f5c84b;
|
|
8425
|
+
color: #1a1205;
|
|
8426
|
+
font-size: 0.76rem;
|
|
8427
|
+
font-weight: 600;
|
|
8428
|
+
line-height: 1.4;
|
|
8429
|
+
text-align: center;
|
|
8430
|
+
padding: 0.6rem 0.85rem;
|
|
8431
|
+
border-radius: 8px;
|
|
8432
|
+
margin-bottom: 1rem;
|
|
8433
|
+
`;
|
|
8434
|
+
var TESTNET_DEPOSIT_WARNING = "Attention: This is a testnet trading environment. Do NOT send any real funds to your address as you won't be able to recover them";
|
|
8408
8435
|
var OnboardingButtonGroup = styled10.div`
|
|
8409
8436
|
display: flex;
|
|
8410
8437
|
flex-direction: column;
|