@loafmarkets/ui 0.1.329 → 0.1.330
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 +9 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6666,13 +6666,18 @@ var LoginPopup = ({
|
|
|
6666
6666
|
}
|
|
6667
6667
|
setFundingError("");
|
|
6668
6668
|
setFiatFundingLoading(true);
|
|
6669
|
+
if (typeof window !== "undefined") {
|
|
6670
|
+
window.dispatchEvent(new CustomEvent("loaf:prefetch-kyc"));
|
|
6671
|
+
}
|
|
6669
6672
|
try {
|
|
6670
6673
|
const result = await onFundWallet({ amount: fundingAmount, mode: "fiat" });
|
|
6671
6674
|
if (result?.widgetUrl) {
|
|
6672
6675
|
setTransakWidgetUrl(result.widgetUrl);
|
|
6673
6676
|
} else if (result?.requiresKyc) {
|
|
6674
|
-
|
|
6675
|
-
|
|
6677
|
+
onClose();
|
|
6678
|
+
if (typeof window !== "undefined") {
|
|
6679
|
+
window.dispatchEvent(new CustomEvent("loaf:open-login-popup", { detail: { initialView: "kyc" } }));
|
|
6680
|
+
}
|
|
6676
6681
|
} else if (result?.funded) {
|
|
6677
6682
|
onClose();
|
|
6678
6683
|
}
|
|
@@ -6860,9 +6865,9 @@ var LoginPopup = ({
|
|
|
6860
6865
|
$expanded: showKycWidget,
|
|
6861
6866
|
children: [
|
|
6862
6867
|
/* @__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" }) }) }),
|
|
6863
|
-
renderKycWidget &&
|
|
6868
|
+
renderKycWidget && /* @__PURE__ */ jsxRuntime.jsxs(KycWidgetContainer, { style: showKycWidget ? {} : { position: "absolute", visibility: "hidden", pointerEvents: "none" }, children: [
|
|
6864
6869
|
renderKycWidget(handleKycWidgetResult),
|
|
6865
|
-
showKycFooter && /* @__PURE__ */ jsxRuntime.jsxs(KycWidgetFooter, { children: [
|
|
6870
|
+
showKycWidget && showKycFooter && /* @__PURE__ */ jsxRuntime.jsxs(KycWidgetFooter, { children: [
|
|
6866
6871
|
/* @__PURE__ */ jsxRuntime.jsxs(KycProgressSaved, { children: [
|
|
6867
6872
|
/* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "#0ecb81", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "20 6 9 17 4 12" }) }),
|
|
6868
6873
|
"Progress saved"
|
|
@@ -7103,9 +7108,6 @@ var KycLandingContainer = styled9__default.default.div`
|
|
|
7103
7108
|
align-items: center;
|
|
7104
7109
|
text-align: center;
|
|
7105
7110
|
`;
|
|
7106
|
-
styled9__default.default.div`
|
|
7107
|
-
display: none;
|
|
7108
|
-
`;
|
|
7109
7111
|
var KycLockIcon = styled9__default.default.div`
|
|
7110
7112
|
width: 44px;
|
|
7111
7113
|
height: 44px;
|
|
@@ -7130,12 +7132,6 @@ var KycSubline = styled9__default.default.p`
|
|
|
7130
7132
|
margin: 0 0 1.75rem;
|
|
7131
7133
|
line-height: 1.5;
|
|
7132
7134
|
`;
|
|
7133
|
-
styled9__default.default.div`
|
|
7134
|
-
display: none;
|
|
7135
|
-
`;
|
|
7136
|
-
styled9__default.default.div`
|
|
7137
|
-
display: none;
|
|
7138
|
-
`;
|
|
7139
7135
|
var KycStartButton = styled9__default.default.button`
|
|
7140
7136
|
width: 100%;
|
|
7141
7137
|
padding: 0.8rem 1rem;
|
|
@@ -7173,35 +7169,6 @@ var KycExitLink = styled9__default.default.button`
|
|
|
7173
7169
|
transition: color 0.15s ease;
|
|
7174
7170
|
&:hover { color: rgba(255,255,255,0.6); }
|
|
7175
7171
|
`;
|
|
7176
|
-
styled9__default.default.div`
|
|
7177
|
-
display: none;
|
|
7178
|
-
`;
|
|
7179
|
-
styled9__default.default.button`
|
|
7180
|
-
position: absolute;
|
|
7181
|
-
top: -12px;
|
|
7182
|
-
right: -12px;
|
|
7183
|
-
background: rgba(0, 0, 0, 0.4);
|
|
7184
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
7185
|
-
border-radius: 999px;
|
|
7186
|
-
color: var(--color-text-secondary, #848e9c);
|
|
7187
|
-
width: 32px;
|
|
7188
|
-
height: 32px;
|
|
7189
|
-
display: flex;
|
|
7190
|
-
align-items: center;
|
|
7191
|
-
justify-content: center;
|
|
7192
|
-
cursor: pointer;
|
|
7193
|
-
transition: color 0.2s ease, background 0.2s ease;
|
|
7194
|
-
|
|
7195
|
-
&:hover {
|
|
7196
|
-
background: rgba(0, 0, 0, 0.6);
|
|
7197
|
-
color: var(--color-accent, #e6c656);
|
|
7198
|
-
}
|
|
7199
|
-
|
|
7200
|
-
svg {
|
|
7201
|
-
width: 18px;
|
|
7202
|
-
height: 18px;
|
|
7203
|
-
}
|
|
7204
|
-
`;
|
|
7205
7172
|
var CloseButton = styled9__default.default.button`
|
|
7206
7173
|
position: absolute;
|
|
7207
7174
|
top: 1rem;
|