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