sphere-connect 1.0.2 → 1.0.4
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 +57 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -1214,19 +1214,18 @@ var SphereModal = ({ isOpen, onClose }) => {
|
|
|
1214
1214
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: styles.header, children: [
|
|
1215
1215
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { width: 32 } }),
|
|
1216
1216
|
" ",
|
|
1217
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { style: styles.title, children: "Login or sign up" }),
|
|
1217
1218
|
/* @__PURE__ */ jsxRuntime.jsx("button", { style: styles.closeBtn, onClick: onClose, "aria-label": "Close", children: "\xD7" })
|
|
1218
1219
|
] }),
|
|
1219
1220
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: styles.content, children: [
|
|
1220
|
-
/* @__PURE__ */ jsxRuntime.
|
|
1221
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { style: styles.description, children: "Experience the next generation of account abstraction. Secure, fast, and effortless." }),
|
|
1222
|
-
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: styles.errorBanner, children: error }),
|
|
1223
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: styles.actionContainer, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1221
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1224
1222
|
"button",
|
|
1225
1223
|
{
|
|
1226
1224
|
style: {
|
|
1227
|
-
...styles.
|
|
1225
|
+
...styles.socialButton,
|
|
1228
1226
|
opacity: isLoading || localLoading ? 0.7 : 1,
|
|
1229
|
-
cursor: isLoading || localLoading ? "not-allowed" : "pointer"
|
|
1227
|
+
cursor: isLoading || localLoading ? "not-allowed" : "pointer",
|
|
1228
|
+
marginBottom: 0
|
|
1230
1229
|
},
|
|
1231
1230
|
onClick: handleLogin,
|
|
1232
1231
|
disabled: isLoading || localLoading,
|
|
@@ -1234,15 +1233,16 @@ var SphereModal = ({ isOpen, onClose }) => {
|
|
|
1234
1233
|
isLoading || localLoading ? /* @__PURE__ */ jsxRuntime.jsx("div", { style: styles.spinner }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1235
1234
|
"img",
|
|
1236
1235
|
{
|
|
1237
|
-
src: "https://www.gstatic.com/images/
|
|
1236
|
+
src: "https://www.gstatic.com/marketing-cms/assets/images/d5/dc/cfe9ce8b4425b410b49b7f2dd3f3/g.webp=s48-fcrop64=1,00000000ffffffff-rw",
|
|
1238
1237
|
alt: "Google",
|
|
1239
|
-
style: styles.
|
|
1238
|
+
style: styles.socialIcon
|
|
1240
1239
|
}
|
|
1241
1240
|
),
|
|
1242
|
-
|
|
1241
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: styles.socialText, children: "Google" })
|
|
1243
1242
|
]
|
|
1244
1243
|
}
|
|
1245
|
-
)
|
|
1244
|
+
),
|
|
1245
|
+
error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: styles.errorBanner, children: error }),
|
|
1246
1246
|
/* @__PURE__ */ jsxRuntime.jsx("style", { children: `
|
|
1247
1247
|
@keyframes sphere-spin {
|
|
1248
1248
|
0% { transform: rotate(0deg); }
|
|
@@ -1250,8 +1250,8 @@ var SphereModal = ({ isOpen, onClose }) => {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
` }),
|
|
1252
1252
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { style: styles.footer, children: [
|
|
1253
|
-
"
|
|
1254
|
-
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Sphere
|
|
1253
|
+
"Protected by ",
|
|
1254
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Sphere" })
|
|
1255
1255
|
] })
|
|
1256
1256
|
] })
|
|
1257
1257
|
] }) });
|
|
@@ -1274,7 +1274,7 @@ var styles = {
|
|
|
1274
1274
|
backgroundColor: "#0c0c0c",
|
|
1275
1275
|
color: "#ffffff",
|
|
1276
1276
|
width: "90%",
|
|
1277
|
-
maxWidth: "
|
|
1277
|
+
maxWidth: "360px",
|
|
1278
1278
|
aspectRatio: "1/1",
|
|
1279
1279
|
borderRadius: "0",
|
|
1280
1280
|
position: "relative",
|
|
@@ -1282,54 +1282,68 @@ var styles = {
|
|
|
1282
1282
|
overflow: "hidden",
|
|
1283
1283
|
fontFamily: "Inter, -apple-system, system-ui, sans-serif",
|
|
1284
1284
|
display: "flex",
|
|
1285
|
-
flexDirection: "column"
|
|
1285
|
+
flexDirection: "column",
|
|
1286
|
+
padding: "24px",
|
|
1287
|
+
boxSizing: "border-box",
|
|
1288
|
+
justifyContent: "center"
|
|
1286
1289
|
},
|
|
1287
1290
|
header: {
|
|
1288
1291
|
display: "flex",
|
|
1289
1292
|
justifyContent: "space-between",
|
|
1290
1293
|
alignItems: "center",
|
|
1291
|
-
|
|
1294
|
+
marginBottom: "24px",
|
|
1295
|
+
width: "100%"
|
|
1296
|
+
},
|
|
1297
|
+
title: {
|
|
1298
|
+
fontSize: "14px",
|
|
1299
|
+
fontWeight: "500",
|
|
1300
|
+
color: "#94a3b8",
|
|
1301
|
+
textAlign: "center",
|
|
1302
|
+
margin: 0,
|
|
1303
|
+
flex: 1
|
|
1292
1304
|
},
|
|
1293
1305
|
closeBtn: {
|
|
1294
1306
|
background: "rgba(255, 255, 255, 0.05)",
|
|
1295
1307
|
border: "none",
|
|
1296
1308
|
color: "#888",
|
|
1297
|
-
fontSize: "
|
|
1309
|
+
fontSize: "20px",
|
|
1298
1310
|
cursor: "pointer",
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
height: "32px",
|
|
1311
|
+
width: "28px",
|
|
1312
|
+
height: "28px",
|
|
1302
1313
|
borderRadius: "50%",
|
|
1303
1314
|
display: "flex",
|
|
1304
1315
|
alignItems: "center",
|
|
1305
|
-
justifyContent: "center"
|
|
1306
|
-
transition: "all 0.2s"
|
|
1316
|
+
justifyContent: "center"
|
|
1307
1317
|
},
|
|
1308
1318
|
content: {
|
|
1309
1319
|
display: "flex",
|
|
1310
1320
|
flexDirection: "column",
|
|
1311
|
-
padding: "20px",
|
|
1312
1321
|
alignItems: "center",
|
|
1313
|
-
|
|
1314
|
-
justifyContent: "center",
|
|
1315
|
-
width: "100%",
|
|
1316
|
-
boxSizing: "border-box"
|
|
1322
|
+
width: "100%"
|
|
1317
1323
|
},
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1324
|
+
socialButton: {
|
|
1325
|
+
display: "flex",
|
|
1326
|
+
alignItems: "center",
|
|
1327
|
+
width: "100%",
|
|
1328
|
+
height: "48px",
|
|
1329
|
+
backgroundColor: "transparent",
|
|
1330
|
+
border: "1px solid #333",
|
|
1331
|
+
borderRadius: "0",
|
|
1332
|
+
padding: "0 16px",
|
|
1323
1333
|
marginBottom: "10px",
|
|
1324
|
-
|
|
1334
|
+
cursor: "pointer",
|
|
1335
|
+
fontSize: "14px",
|
|
1336
|
+
color: "#fff",
|
|
1337
|
+
boxSizing: "border-box",
|
|
1338
|
+
transition: "background 0.2s"
|
|
1325
1339
|
},
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1340
|
+
socialIcon: {
|
|
1341
|
+
width: "18px",
|
|
1342
|
+
height: "18px"
|
|
1343
|
+
},
|
|
1344
|
+
socialText: {
|
|
1345
|
+
marginLeft: "12px",
|
|
1346
|
+
fontWeight: "500"
|
|
1333
1347
|
},
|
|
1334
1348
|
errorBanner: {
|
|
1335
1349
|
backgroundColor: "rgba(239, 68, 68, 0.1)",
|
|
@@ -1342,46 +1356,19 @@ var styles = {
|
|
|
1342
1356
|
textAlign: "center",
|
|
1343
1357
|
width: "100%"
|
|
1344
1358
|
},
|
|
1345
|
-
actionContainer: {
|
|
1346
|
-
display: "flex",
|
|
1347
|
-
flexDirection: "column",
|
|
1348
|
-
width: "100%"
|
|
1349
|
-
},
|
|
1350
|
-
customButton: {
|
|
1351
|
-
display: "flex",
|
|
1352
|
-
alignItems: "center",
|
|
1353
|
-
justifyContent: "center",
|
|
1354
|
-
gap: "12px",
|
|
1355
|
-
width: "100%",
|
|
1356
|
-
height: "52px",
|
|
1357
|
-
backgroundColor: "#0c0c0c",
|
|
1358
|
-
border: "1px solid #333",
|
|
1359
|
-
borderRadius: "0",
|
|
1360
|
-
cursor: "pointer",
|
|
1361
|
-
fontSize: "15px",
|
|
1362
|
-
fontWeight: "600",
|
|
1363
|
-
color: "#ffffff",
|
|
1364
|
-
transition: "transform 0.1s, opacity 0.2s",
|
|
1365
|
-
boxSizing: "border-box"
|
|
1366
|
-
},
|
|
1367
|
-
googleIcon: {
|
|
1368
|
-
width: "20px",
|
|
1369
|
-
height: "20px"
|
|
1370
|
-
},
|
|
1371
1359
|
spinner: {
|
|
1372
|
-
width: "
|
|
1373
|
-
height: "
|
|
1360
|
+
width: "18px",
|
|
1361
|
+
height: "18px",
|
|
1374
1362
|
border: "2px solid rgba(255, 255, 255, 0.1)",
|
|
1375
1363
|
borderTop: "2px solid #ffffff",
|
|
1376
1364
|
borderRadius: "50%",
|
|
1377
1365
|
animation: "sphere-spin 0.8s linear infinite"
|
|
1378
1366
|
},
|
|
1379
1367
|
footer: {
|
|
1380
|
-
marginTop: "
|
|
1368
|
+
marginTop: "20px",
|
|
1381
1369
|
textAlign: "center",
|
|
1382
1370
|
fontSize: "11px",
|
|
1383
|
-
color: "#475569"
|
|
1384
|
-
letterSpacing: "0.5px"
|
|
1371
|
+
color: "#475569"
|
|
1385
1372
|
}
|
|
1386
1373
|
};
|
|
1387
1374
|
var SphereAvatar = ({
|