@swype-org/react-sdk 0.2.361 → 0.2.364
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.cjs +190 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +190 -222
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8607,25 +8607,45 @@ function SettingsMenu({ onLogout }) {
|
|
|
8607
8607
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "2", fill: "currentColor" }),
|
|
8608
8608
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "19", r: "2", fill: "currentColor" })
|
|
8609
8609
|
] }) }),
|
|
8610
|
-
open && /* @__PURE__ */ jsxRuntime.
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8610
|
+
open && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: dropdownStyle(tokens), children: [
|
|
8611
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8612
|
+
"a",
|
|
8613
|
+
{
|
|
8614
|
+
href: "https://intercom.help/blinkcash/en/",
|
|
8615
|
+
target: "_blank",
|
|
8616
|
+
rel: "noopener noreferrer",
|
|
8617
|
+
onClick: () => setOpen(false),
|
|
8618
|
+
style: menuItemStyle(tokens.text),
|
|
8619
|
+
children: [
|
|
8620
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", style: { marginRight: 8, flexShrink: 0 }, children: [
|
|
8621
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "9", stroke: tokens.text, strokeWidth: "2" }),
|
|
8622
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.5 9a2.5 2.5 0 014.5 1.5c0 1.5-2 2-2 3", stroke: tokens.text, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8623
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "17", r: "1", fill: tokens.text })
|
|
8624
|
+
] }),
|
|
8625
|
+
"Help"
|
|
8626
|
+
]
|
|
8627
|
+
}
|
|
8628
|
+
),
|
|
8629
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8630
|
+
"button",
|
|
8631
|
+
{
|
|
8632
|
+
type: "button",
|
|
8633
|
+
onClick: () => {
|
|
8634
|
+
setOpen(false);
|
|
8635
|
+
onLogout();
|
|
8636
|
+
},
|
|
8637
|
+
style: menuItemStyle(tokens.error),
|
|
8638
|
+
children: [
|
|
8639
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", style: { marginRight: 8, flexShrink: 0 }, children: [
|
|
8640
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4", stroke: tokens.error, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8641
|
+
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "16 17 21 12 16 7", stroke: tokens.error, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
8642
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "21", y1: "12", x2: "9", y2: "12", stroke: tokens.error, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
8643
|
+
] }),
|
|
8644
|
+
"Log out"
|
|
8645
|
+
]
|
|
8646
|
+
}
|
|
8647
|
+
)
|
|
8648
|
+
] })
|
|
8629
8649
|
] });
|
|
8630
8650
|
}
|
|
8631
8651
|
var containerStyle2 = {
|
|
@@ -8644,7 +8664,7 @@ var dropdownStyle = (tokens) => ({
|
|
|
8644
8664
|
zIndex: 100,
|
|
8645
8665
|
overflow: "hidden"
|
|
8646
8666
|
});
|
|
8647
|
-
var menuItemStyle = (
|
|
8667
|
+
var menuItemStyle = (color) => ({
|
|
8648
8668
|
width: "100%",
|
|
8649
8669
|
display: "flex",
|
|
8650
8670
|
alignItems: "center",
|
|
@@ -8655,7 +8675,9 @@ var menuItemStyle = (tokens) => ({
|
|
|
8655
8675
|
fontFamily: "inherit",
|
|
8656
8676
|
fontSize: "0.85rem",
|
|
8657
8677
|
fontWeight: 500,
|
|
8658
|
-
color
|
|
8678
|
+
color,
|
|
8679
|
+
textDecoration: "none",
|
|
8680
|
+
boxSizing: "border-box"
|
|
8659
8681
|
});
|
|
8660
8682
|
function ScreenHeader({ title, right, onBack, left, badge, onLogout, center }) {
|
|
8661
8683
|
const { tokens } = useBlinkConfig();
|
|
@@ -10607,6 +10629,38 @@ function FaceIdIcon({ size = 24 }) {
|
|
|
10607
10629
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9.5 16c.7.6 1.6 1 2.5 1s1.8-.4 2.5-1", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round" })
|
|
10608
10630
|
] });
|
|
10609
10631
|
}
|
|
10632
|
+
function WalletIcon() {
|
|
10633
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
10634
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10635
|
+
"path",
|
|
10636
|
+
{
|
|
10637
|
+
d: "M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-9Zm2.5-1a1 1 0 0 0-1 1V9h13v-1.5a1 1 0 0 0-1-1h-11ZM5.5 10.5v6a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-6h-13Z",
|
|
10638
|
+
fill: "currentColor"
|
|
10639
|
+
}
|
|
10640
|
+
),
|
|
10641
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10642
|
+
"path",
|
|
10643
|
+
{
|
|
10644
|
+
d: "M14.5 13.75a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Z",
|
|
10645
|
+
fill: "currentColor"
|
|
10646
|
+
}
|
|
10647
|
+
)
|
|
10648
|
+
] });
|
|
10649
|
+
}
|
|
10650
|
+
function QrIcon({ color = "currentColor" } = {}) {
|
|
10651
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
10652
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3.5", y: "3.5", width: "7", height: "7", rx: "1", stroke: color, strokeWidth: "1.4" }),
|
|
10653
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "6", y: "6", width: "2", height: "2", fill: color }),
|
|
10654
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "3.5", width: "7", height: "7", rx: "1", stroke: color, strokeWidth: "1.4" }),
|
|
10655
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "16", y: "6", width: "2", height: "2", fill: color }),
|
|
10656
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3.5", y: "13.5", width: "7", height: "7", rx: "1", stroke: color, strokeWidth: "1.4" }),
|
|
10657
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "6", y: "16", width: "2", height: "2", fill: color }),
|
|
10658
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "13.5", width: "2.5", height: "2.5", fill: color }),
|
|
10659
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "18", y: "13.5", width: "2.5", height: "2.5", fill: color }),
|
|
10660
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "18", width: "2.5", height: "2.5", fill: color }),
|
|
10661
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "18", y: "18", width: "2.5", height: "2.5", fill: color })
|
|
10662
|
+
] });
|
|
10663
|
+
}
|
|
10610
10664
|
function LogoCircle({ src, fallback, preserveShape, size = 36 }) {
|
|
10611
10665
|
const { tokens } = useBlinkConfig();
|
|
10612
10666
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { style: logoCircleStyle(size, tokens.bgCard, tokens.textMuted), children: src ? /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt: "", style: logoImageStyle(preserveShape) }) : fallback });
|
|
@@ -11292,7 +11346,7 @@ function DepositOptionsScreen({
|
|
|
11292
11346
|
),
|
|
11293
11347
|
children: [
|
|
11294
11348
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: manualLabelStyle(tokens.text), children: "Send Crypto Manually" }),
|
|
11295
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11349
|
+
/* @__PURE__ */ jsxRuntime.jsx(QrIcon2, { color: tokens.text })
|
|
11296
11350
|
]
|
|
11297
11351
|
}
|
|
11298
11352
|
)
|
|
@@ -11300,7 +11354,7 @@ function DepositOptionsScreen({
|
|
|
11300
11354
|
] })
|
|
11301
11355
|
] });
|
|
11302
11356
|
}
|
|
11303
|
-
function
|
|
11357
|
+
function QrIcon2({ color }) {
|
|
11304
11358
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11305
11359
|
"svg",
|
|
11306
11360
|
{
|
|
@@ -11490,7 +11544,7 @@ function WelcomeBackScreen({
|
|
|
11490
11544
|
),
|
|
11491
11545
|
children: [
|
|
11492
11546
|
/* @__PURE__ */ jsxRuntime.jsx("span", { style: manualLabelStyle2(tokens.text), children: "Send Crypto Manually" }),
|
|
11493
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11547
|
+
/* @__PURE__ */ jsxRuntime.jsx(QrIcon3, { color: tokens.text })
|
|
11494
11548
|
]
|
|
11495
11549
|
}
|
|
11496
11550
|
)
|
|
@@ -11498,7 +11552,7 @@ function WelcomeBackScreen({
|
|
|
11498
11552
|
] })
|
|
11499
11553
|
] });
|
|
11500
11554
|
}
|
|
11501
|
-
function
|
|
11555
|
+
function QrIcon3({ color }) {
|
|
11502
11556
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11503
11557
|
"svg",
|
|
11504
11558
|
{
|
|
@@ -13608,7 +13662,7 @@ function SelectDepositSourceScreen({
|
|
|
13608
13662
|
label: "Send manually",
|
|
13609
13663
|
color: tokens.text,
|
|
13610
13664
|
onClick: onSendManually,
|
|
13611
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13665
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(QrIcon, { color: tokens.text })
|
|
13612
13666
|
}
|
|
13613
13667
|
),
|
|
13614
13668
|
onAddProvider && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13724,38 +13778,6 @@ function ActionRow({
|
|
|
13724
13778
|
}
|
|
13725
13779
|
);
|
|
13726
13780
|
}
|
|
13727
|
-
function QrIcon3({ color }) {
|
|
13728
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
13729
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3.5", y: "3.5", width: "7", height: "7", rx: "1", stroke: color, strokeWidth: "1.4" }),
|
|
13730
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "6", y: "6", width: "2", height: "2", fill: color }),
|
|
13731
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "3.5", width: "7", height: "7", rx: "1", stroke: color, strokeWidth: "1.4" }),
|
|
13732
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "16", y: "6", width: "2", height: "2", fill: color }),
|
|
13733
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3.5", y: "13.5", width: "7", height: "7", rx: "1", stroke: color, strokeWidth: "1.4" }),
|
|
13734
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "6", y: "16", width: "2", height: "2", fill: color }),
|
|
13735
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "13.5", width: "2.5", height: "2.5", fill: color }),
|
|
13736
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "18", y: "13.5", width: "2.5", height: "2.5", fill: color }),
|
|
13737
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "13.5", y: "18", width: "2.5", height: "2.5", fill: color }),
|
|
13738
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "18", y: "18", width: "2.5", height: "2.5", fill: color })
|
|
13739
|
-
] });
|
|
13740
|
-
}
|
|
13741
|
-
function WalletIcon() {
|
|
13742
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
13743
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13744
|
-
"path",
|
|
13745
|
-
{
|
|
13746
|
-
d: "M4 7.5A2.5 2.5 0 0 1 6.5 5h11A2.5 2.5 0 0 1 20 7.5v9A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-9Zm2.5-1a1 1 0 0 0-1 1V9h13v-1.5a1 1 0 0 0-1-1h-11ZM5.5 10.5v6a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-6h-13Z",
|
|
13747
|
-
fill: "currentColor"
|
|
13748
|
-
}
|
|
13749
|
-
),
|
|
13750
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13751
|
-
"path",
|
|
13752
|
-
{
|
|
13753
|
-
d: "M14.5 13.75a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1-.75-.75Z",
|
|
13754
|
-
fill: "currentColor"
|
|
13755
|
-
}
|
|
13756
|
-
)
|
|
13757
|
-
] });
|
|
13758
|
-
}
|
|
13759
13781
|
var actionRowStyle = (color, hovered) => ({
|
|
13760
13782
|
display: "flex",
|
|
13761
13783
|
alignItems: "center",
|
|
@@ -13995,7 +14017,13 @@ function DepositScreen({
|
|
|
13995
14017
|
100% { background-position: -200% 0; }
|
|
13996
14018
|
}
|
|
13997
14019
|
` }),
|
|
13998
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14020
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14021
|
+
ScreenHeader,
|
|
14022
|
+
{
|
|
14023
|
+
left: /* @__PURE__ */ jsxRuntime.jsx("img", { src: BLINK_WORDMARK, alt: "Blink", style: wordmarkImgStyle4 }),
|
|
14024
|
+
onLogout
|
|
14025
|
+
}
|
|
14026
|
+
),
|
|
13999
14027
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: redesignHeroStackStyle(mobileEntryWithKeypad), children: [
|
|
14000
14028
|
showDesktopInputHero ? /* @__PURE__ */ jsxRuntime.jsxs("div", { style: entryDesktopHeroRowStyle(desktopInputHeroColor, getDesktopHeroFontSize(liveMobileHeroValue)), children: [
|
|
14001
14029
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", style: entryDollarStyle(isZero), children: "$" }),
|
|
@@ -14135,6 +14163,11 @@ function FaceIdIcon2() {
|
|
|
14135
14163
|
)
|
|
14136
14164
|
] });
|
|
14137
14165
|
}
|
|
14166
|
+
var wordmarkImgStyle4 = {
|
|
14167
|
+
height: 31,
|
|
14168
|
+
width: "auto",
|
|
14169
|
+
display: "block"
|
|
14170
|
+
};
|
|
14138
14171
|
var bannerSlotStyle2 = {
|
|
14139
14172
|
display: "flex",
|
|
14140
14173
|
justifyContent: "center",
|
|
@@ -15354,6 +15387,7 @@ function OpenWalletScreen({
|
|
|
15354
15387
|
onLogout
|
|
15355
15388
|
}) {
|
|
15356
15389
|
const { tokens } = useBlinkConfig();
|
|
15390
|
+
const [showQrView, setShowQrView] = react.useState(false);
|
|
15357
15391
|
const displayName = walletName ?? "your wallet";
|
|
15358
15392
|
const logoSrc = walletLogoUrl ?? (walletName ? KNOWN_LOGOS[walletName.toLowerCase()] : void 0);
|
|
15359
15393
|
const autoOpenedRef = react.useRef(null);
|
|
@@ -15371,61 +15405,6 @@ function OpenWalletScreen({
|
|
|
15371
15405
|
const handleOpen = react.useCallback(() => {
|
|
15372
15406
|
openDeeplink(deeplinkUri);
|
|
15373
15407
|
}, [deeplinkUri]);
|
|
15374
|
-
const logoBlock = /* @__PURE__ */ jsxRuntime.jsxs("div", { style: logoFrameStyle, children: [
|
|
15375
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15376
|
-
"svg",
|
|
15377
|
-
{
|
|
15378
|
-
width: "96",
|
|
15379
|
-
height: "96",
|
|
15380
|
-
viewBox: "0 0 96 96",
|
|
15381
|
-
fill: "none",
|
|
15382
|
-
style: logoRingSvgStyle,
|
|
15383
|
-
"aria-hidden": true,
|
|
15384
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15385
|
-
"circle",
|
|
15386
|
-
{
|
|
15387
|
-
cx: "48",
|
|
15388
|
-
cy: "48",
|
|
15389
|
-
r: "47",
|
|
15390
|
-
stroke: tokens.textMuted,
|
|
15391
|
-
strokeOpacity: "0.18",
|
|
15392
|
-
strokeWidth: "2",
|
|
15393
|
-
fill: "none"
|
|
15394
|
-
}
|
|
15395
|
-
)
|
|
15396
|
-
}
|
|
15397
|
-
),
|
|
15398
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15399
|
-
"svg",
|
|
15400
|
-
{
|
|
15401
|
-
width: "96",
|
|
15402
|
-
height: "96",
|
|
15403
|
-
viewBox: "0 0 96 96",
|
|
15404
|
-
fill: "none",
|
|
15405
|
-
style: spinningRingSvgStyle,
|
|
15406
|
-
"aria-hidden": true,
|
|
15407
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15408
|
-
"path",
|
|
15409
|
-
{
|
|
15410
|
-
d: "M 71.7 89.04 A 47 47 0 1 1 89.04 71.7",
|
|
15411
|
-
stroke: tokens.textMuted,
|
|
15412
|
-
strokeOpacity: "0.65",
|
|
15413
|
-
strokeWidth: "2",
|
|
15414
|
-
fill: "none",
|
|
15415
|
-
strokeLinecap: "round"
|
|
15416
|
-
}
|
|
15417
|
-
)
|
|
15418
|
-
}
|
|
15419
|
-
),
|
|
15420
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: logoCircleStyle2(tokens.bgRecessed), children: logoSrc && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15421
|
-
"img",
|
|
15422
|
-
{
|
|
15423
|
-
src: logoSrc,
|
|
15424
|
-
alt: displayName,
|
|
15425
|
-
style: walletLogoUrl ? reownLogoStyle : logoStyle2
|
|
15426
|
-
}
|
|
15427
|
-
) })
|
|
15428
|
-
] });
|
|
15429
15408
|
const heroBlock = /* @__PURE__ */ jsxRuntime.jsxs("div", { style: heroFrameStyle, "aria-hidden": true, children: [
|
|
15430
15409
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15431
15410
|
"svg",
|
|
@@ -15474,42 +15453,25 @@ function OpenWalletScreen({
|
|
|
15474
15453
|
] });
|
|
15475
15454
|
if (!useDeeplink) {
|
|
15476
15455
|
const hasQr = !!deeplinkUri;
|
|
15477
|
-
const
|
|
15478
|
-
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
}
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: desktopContentStyle, children: [
|
|
15497
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: primaryClusterStyle, children: [
|
|
15498
|
-
logoBlock,
|
|
15499
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { style: headingStyle12(tokens.text), children: [
|
|
15500
|
-
"Setting up ",
|
|
15501
|
-
displayName,
|
|
15502
|
-
"\u2026"
|
|
15503
|
-
] }),
|
|
15504
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: bodyStyle4(tokens.text), children: "Approve the connection in your wallet extension." }),
|
|
15505
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: inlineWaitStyle(tokens.textMuted), children: [
|
|
15506
|
-
/* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 14 }),
|
|
15507
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Waiting for authorization\u2026" })
|
|
15508
|
-
] })
|
|
15509
|
-
] }),
|
|
15510
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: qrSectionStyle, children: [
|
|
15511
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: qrDividerLabelStyle(tokens.textMuted), children: "or scan with your phone" }),
|
|
15512
|
-
hasQr ? /* @__PURE__ */ jsxRuntime.jsx(QrCode, { value: deeplinkUri, size: 180 }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
15456
|
+
const sharedStyles = /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
|
|
15457
|
+
@keyframes blink-open-wallet-qr-shimmer {
|
|
15458
|
+
0% { background-position: 200% 0; }
|
|
15459
|
+
100% { background-position: -200% 0; }
|
|
15460
|
+
}
|
|
15461
|
+
@keyframes blink-open-wallet-ring-spin {
|
|
15462
|
+
to { transform: rotate(360deg); }
|
|
15463
|
+
}
|
|
15464
|
+
` });
|
|
15465
|
+
if (showQrView) {
|
|
15466
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15467
|
+
ScreenLayout,
|
|
15468
|
+
{
|
|
15469
|
+
footer: error ? /* @__PURE__ */ jsxRuntime.jsx(InfoBanner, { children: error }) : void 0,
|
|
15470
|
+
children: [
|
|
15471
|
+
sharedStyles,
|
|
15472
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack: () => setShowQrView(false), onLogout }),
|
|
15473
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: desktopContentStyle, children: [
|
|
15474
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: qrCardStyle, children: hasQr ? /* @__PURE__ */ jsxRuntime.jsx(QrCode, { value: deeplinkUri, size: 180 }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
15513
15475
|
"div",
|
|
15514
15476
|
{
|
|
15515
15477
|
role: "status",
|
|
@@ -15517,10 +15479,63 @@ function OpenWalletScreen({
|
|
|
15517
15479
|
"aria-busy": "true",
|
|
15518
15480
|
style: qrShimmerStyle2(tokens.bgHover, tokens.border)
|
|
15519
15481
|
}
|
|
15520
|
-
),
|
|
15521
|
-
/* @__PURE__ */ jsxRuntime.
|
|
15482
|
+
) }),
|
|
15483
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: primaryClusterStyle, children: [
|
|
15484
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle12(tokens.text), children: "Authorize Your Passkey" }),
|
|
15485
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { style: bodyStyle4(tokens.text), children: [
|
|
15486
|
+
"Scan the QR code to open ",
|
|
15487
|
+
displayName,
|
|
15488
|
+
"."
|
|
15489
|
+
] })
|
|
15490
|
+
] })
|
|
15522
15491
|
] })
|
|
15523
|
-
]
|
|
15492
|
+
]
|
|
15493
|
+
}
|
|
15494
|
+
);
|
|
15495
|
+
}
|
|
15496
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15497
|
+
ScreenLayout,
|
|
15498
|
+
{
|
|
15499
|
+
footer: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: footerStackStyle5, children: [
|
|
15500
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(InfoBanner, { children: error }),
|
|
15501
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15502
|
+
SecondaryButton,
|
|
15503
|
+
{
|
|
15504
|
+
onClick: onRetryAuthorization,
|
|
15505
|
+
disabled: !onRetryAuthorization,
|
|
15506
|
+
children: [
|
|
15507
|
+
/* @__PURE__ */ jsxRuntime.jsx(WalletIcon, {}),
|
|
15508
|
+
"Open ",
|
|
15509
|
+
displayName,
|
|
15510
|
+
" Extension"
|
|
15511
|
+
]
|
|
15512
|
+
}
|
|
15513
|
+
),
|
|
15514
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: orDividerStyle, children: [
|
|
15515
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: orDividerRuleStyle(tokens.textTertiary) }),
|
|
15516
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: orDividerLabelStyle(tokens.textMuted), children: "OR" }),
|
|
15517
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: orDividerRuleStyle(tokens.textTertiary) })
|
|
15518
|
+
] }),
|
|
15519
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15520
|
+
SecondaryButton,
|
|
15521
|
+
{
|
|
15522
|
+
onClick: () => setShowQrView(true),
|
|
15523
|
+
disabled: !hasQr,
|
|
15524
|
+
children: [
|
|
15525
|
+
/* @__PURE__ */ jsxRuntime.jsx(QrIcon, {}),
|
|
15526
|
+
"Continue on your phone"
|
|
15527
|
+
]
|
|
15528
|
+
}
|
|
15529
|
+
)
|
|
15530
|
+
] }),
|
|
15531
|
+
children: [
|
|
15532
|
+
sharedStyles,
|
|
15533
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack, onLogout }),
|
|
15534
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: desktopContentStyle, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { style: primaryClusterStyle, children: [
|
|
15535
|
+
heroBlock,
|
|
15536
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle12(tokens.text), children: "Authorize Your Passkey" }),
|
|
15537
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: bodyStyle4(tokens.text), children: "If your wallet didn\u2019t open automatically, tap below." })
|
|
15538
|
+
] }) })
|
|
15524
15539
|
]
|
|
15525
15540
|
}
|
|
15526
15541
|
);
|
|
@@ -15617,50 +15632,33 @@ var footerStackStyle5 = {
|
|
|
15617
15632
|
flexDirection: "column",
|
|
15618
15633
|
gap: 8
|
|
15619
15634
|
};
|
|
15620
|
-
var
|
|
15621
|
-
position: "relative",
|
|
15622
|
-
width: 96,
|
|
15623
|
-
height: 96,
|
|
15635
|
+
var qrCardStyle = {
|
|
15624
15636
|
display: "flex",
|
|
15625
15637
|
alignItems: "center",
|
|
15626
15638
|
justifyContent: "center",
|
|
15639
|
+
background: "#FFFFFF",
|
|
15640
|
+
padding: 16,
|
|
15641
|
+
borderRadius: 16,
|
|
15627
15642
|
flexShrink: 0
|
|
15628
15643
|
};
|
|
15629
|
-
var
|
|
15630
|
-
position: "absolute",
|
|
15631
|
-
top: "50%",
|
|
15632
|
-
left: "50%",
|
|
15633
|
-
transform: "translate(-50%, -50%)"
|
|
15634
|
-
};
|
|
15635
|
-
var spinningRingSvgStyle = {
|
|
15636
|
-
position: "absolute",
|
|
15637
|
-
top: 0,
|
|
15638
|
-
left: 0,
|
|
15639
|
-
transformOrigin: "center",
|
|
15640
|
-
animation: "blink-open-wallet-ring-spin 0.9s linear infinite"
|
|
15641
|
-
};
|
|
15642
|
-
var logoCircleStyle2 = (bg) => ({
|
|
15643
|
-
width: 80,
|
|
15644
|
-
height: 80,
|
|
15645
|
-
borderRadius: "50%",
|
|
15646
|
-
background: bg,
|
|
15644
|
+
var orDividerStyle = {
|
|
15647
15645
|
display: "flex",
|
|
15648
15646
|
alignItems: "center",
|
|
15649
15647
|
justifyContent: "center",
|
|
15650
|
-
|
|
15651
|
-
|
|
15652
|
-
|
|
15653
|
-
width: 48,
|
|
15654
|
-
height: 48,
|
|
15655
|
-
borderRadius: 12,
|
|
15656
|
-
objectFit: "contain"
|
|
15657
|
-
};
|
|
15658
|
-
var reownLogoStyle = {
|
|
15659
|
-
width: 48,
|
|
15660
|
-
height: 48,
|
|
15661
|
-
borderRadius: "50%",
|
|
15662
|
-
objectFit: "cover"
|
|
15648
|
+
gap: 10,
|
|
15649
|
+
paddingLeft: 16,
|
|
15650
|
+
paddingRight: 16
|
|
15663
15651
|
};
|
|
15652
|
+
var orDividerRuleStyle = (color) => ({
|
|
15653
|
+
flex: 1,
|
|
15654
|
+
height: 1,
|
|
15655
|
+
background: color
|
|
15656
|
+
});
|
|
15657
|
+
var orDividerLabelStyle = (color) => ({
|
|
15658
|
+
fontSize: "0.75rem",
|
|
15659
|
+
fontWeight: 500,
|
|
15660
|
+
color
|
|
15661
|
+
});
|
|
15664
15662
|
var headingStyle12 = (color) => ({
|
|
15665
15663
|
fontSize: "1.5rem",
|
|
15666
15664
|
fontWeight: 700,
|
|
@@ -15677,21 +15675,6 @@ var bodyStyle4 = (color) => ({
|
|
|
15677
15675
|
margin: 0,
|
|
15678
15676
|
maxWidth: 320
|
|
15679
15677
|
});
|
|
15680
|
-
var inlineWaitStyle = (color) => ({
|
|
15681
|
-
display: "inline-flex",
|
|
15682
|
-
alignItems: "center",
|
|
15683
|
-
gap: 8,
|
|
15684
|
-
color,
|
|
15685
|
-
fontSize: "0.85rem"
|
|
15686
|
-
});
|
|
15687
|
-
var qrSectionStyle = {
|
|
15688
|
-
display: "flex",
|
|
15689
|
-
flexDirection: "column",
|
|
15690
|
-
alignItems: "center",
|
|
15691
|
-
gap: 12,
|
|
15692
|
-
width: "100%",
|
|
15693
|
-
maxWidth: 320
|
|
15694
|
-
};
|
|
15695
15678
|
var qrShimmerStyle2 = (baseColor, highlightColor) => ({
|
|
15696
15679
|
width: 180,
|
|
15697
15680
|
height: 180,
|
|
@@ -15700,21 +15683,6 @@ var qrShimmerStyle2 = (baseColor, highlightColor) => ({
|
|
|
15700
15683
|
backgroundSize: "200% 100%",
|
|
15701
15684
|
animation: "blink-open-wallet-qr-shimmer 1.4s ease-in-out infinite"
|
|
15702
15685
|
});
|
|
15703
|
-
var qrDividerLabelStyle = (color) => ({
|
|
15704
|
-
fontSize: "0.75rem",
|
|
15705
|
-
fontWeight: 600,
|
|
15706
|
-
letterSpacing: "0.06em",
|
|
15707
|
-
textTransform: "uppercase",
|
|
15708
|
-
color
|
|
15709
|
-
});
|
|
15710
|
-
var qrCaptionStyle = (color) => ({
|
|
15711
|
-
fontSize: "0.85rem",
|
|
15712
|
-
color,
|
|
15713
|
-
margin: 0,
|
|
15714
|
-
textAlign: "center",
|
|
15715
|
-
maxWidth: 320,
|
|
15716
|
-
lineHeight: 1.4
|
|
15717
|
-
});
|
|
15718
15686
|
var mobileContentStyle = {
|
|
15719
15687
|
flex: 1,
|
|
15720
15688
|
display: "flex",
|
|
@@ -15836,7 +15804,7 @@ function ApprovingInWalletScreen({
|
|
|
15836
15804
|
{
|
|
15837
15805
|
onBack,
|
|
15838
15806
|
onLogout,
|
|
15839
|
-
center: /* @__PURE__ */ jsxRuntime.jsx("img", { src: BLINK_WORDMARK, alt: "Blink", style:
|
|
15807
|
+
center: /* @__PURE__ */ jsxRuntime.jsx("img", { src: BLINK_WORDMARK, alt: "Blink", style: wordmarkImgStyle5 })
|
|
15840
15808
|
}
|
|
15841
15809
|
),
|
|
15842
15810
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle16, children: [
|
|
@@ -15940,7 +15908,7 @@ function LockIcon4() {
|
|
|
15940
15908
|
}
|
|
15941
15909
|
) });
|
|
15942
15910
|
}
|
|
15943
|
-
var
|
|
15911
|
+
var wordmarkImgStyle5 = {
|
|
15944
15912
|
height: 22,
|
|
15945
15913
|
width: "auto",
|
|
15946
15914
|
display: "block",
|
|
@@ -16073,7 +16041,7 @@ function ConfirmSignScreen({
|
|
|
16073
16041
|
children: [
|
|
16074
16042
|
/* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
|
|
16075
16043
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle17, children: [
|
|
16076
|
-
logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logoSrc, alt: displayName, style:
|
|
16044
|
+
logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logoSrc, alt: displayName, style: logoStyle2 }) : /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 48 }),
|
|
16077
16045
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle14(tokens.text), children: heading }),
|
|
16078
16046
|
/* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle12(tokens.textSecondary), children: subtitle }),
|
|
16079
16047
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: successBadgeStyle(tokens), children: [
|
|
@@ -16094,7 +16062,7 @@ var contentStyle17 = {
|
|
|
16094
16062
|
textAlign: "center",
|
|
16095
16063
|
padding: "0 24px"
|
|
16096
16064
|
};
|
|
16097
|
-
var
|
|
16065
|
+
var logoStyle2 = {
|
|
16098
16066
|
width: 56,
|
|
16099
16067
|
height: 56,
|
|
16100
16068
|
borderRadius: 14,
|