sphere-connect 1.0.2 → 1.0.3
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 +55 -71
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +55 -71
- 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,62 +1269,73 @@ var styles = {
|
|
|
1269
1269
|
backgroundColor: "#0c0c0c",
|
|
1270
1270
|
color: "#ffffff",
|
|
1271
1271
|
width: "90%",
|
|
1272
|
-
maxWidth: "
|
|
1273
|
-
aspectRatio: "1/1",
|
|
1272
|
+
maxWidth: "360px",
|
|
1274
1273
|
borderRadius: "0",
|
|
1275
1274
|
position: "relative",
|
|
1276
1275
|
boxShadow: "0 0 0 1px #222, 0 25px 60px rgba(0, 0, 0, 0.7)",
|
|
1277
1276
|
overflow: "hidden",
|
|
1278
1277
|
fontFamily: "Inter, -apple-system, system-ui, sans-serif",
|
|
1279
1278
|
display: "flex",
|
|
1280
|
-
flexDirection: "column"
|
|
1279
|
+
flexDirection: "column",
|
|
1280
|
+
padding: "24px",
|
|
1281
|
+
boxSizing: "border-box"
|
|
1281
1282
|
},
|
|
1282
1283
|
header: {
|
|
1283
1284
|
display: "flex",
|
|
1284
1285
|
justifyContent: "space-between",
|
|
1285
1286
|
alignItems: "center",
|
|
1286
|
-
|
|
1287
|
+
marginBottom: "24px"
|
|
1288
|
+
},
|
|
1289
|
+
title: {
|
|
1290
|
+
fontSize: "14px",
|
|
1291
|
+
fontWeight: "500",
|
|
1292
|
+
color: "#94a3b8",
|
|
1293
|
+
textAlign: "center",
|
|
1294
|
+
margin: 0,
|
|
1295
|
+
flex: 1
|
|
1287
1296
|
},
|
|
1288
1297
|
closeBtn: {
|
|
1289
1298
|
background: "rgba(255, 255, 255, 0.05)",
|
|
1290
1299
|
border: "none",
|
|
1291
1300
|
color: "#888",
|
|
1292
|
-
fontSize: "
|
|
1301
|
+
fontSize: "20px",
|
|
1293
1302
|
cursor: "pointer",
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
height: "32px",
|
|
1303
|
+
width: "28px",
|
|
1304
|
+
height: "28px",
|
|
1297
1305
|
borderRadius: "50%",
|
|
1298
1306
|
display: "flex",
|
|
1299
1307
|
alignItems: "center",
|
|
1300
|
-
justifyContent: "center"
|
|
1301
|
-
transition: "all 0.2s"
|
|
1308
|
+
justifyContent: "center"
|
|
1302
1309
|
},
|
|
1303
1310
|
content: {
|
|
1304
1311
|
display: "flex",
|
|
1305
1312
|
flexDirection: "column",
|
|
1306
|
-
padding: "20px",
|
|
1307
1313
|
alignItems: "center",
|
|
1308
|
-
|
|
1309
|
-
justifyContent: "center",
|
|
1310
|
-
width: "100%",
|
|
1311
|
-
boxSizing: "border-box"
|
|
1314
|
+
width: "100%"
|
|
1312
1315
|
},
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1316
|
+
socialButton: {
|
|
1317
|
+
display: "flex",
|
|
1318
|
+
alignItems: "center",
|
|
1319
|
+
width: "100%",
|
|
1320
|
+
height: "48px",
|
|
1321
|
+
backgroundColor: "transparent",
|
|
1322
|
+
border: "1px solid #333",
|
|
1323
|
+
borderRadius: "0",
|
|
1324
|
+
padding: "0 16px",
|
|
1318
1325
|
marginBottom: "10px",
|
|
1319
|
-
|
|
1326
|
+
cursor: "pointer",
|
|
1327
|
+
fontSize: "14px",
|
|
1328
|
+
color: "#fff",
|
|
1329
|
+
boxSizing: "border-box",
|
|
1330
|
+
transition: "background 0.2s"
|
|
1320
1331
|
},
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1332
|
+
socialIcon: {
|
|
1333
|
+
width: "18px",
|
|
1334
|
+
height: "18px"
|
|
1335
|
+
},
|
|
1336
|
+
socialText: {
|
|
1337
|
+
marginLeft: "12px",
|
|
1338
|
+
fontWeight: "500"
|
|
1328
1339
|
},
|
|
1329
1340
|
errorBanner: {
|
|
1330
1341
|
backgroundColor: "rgba(239, 68, 68, 0.1)",
|
|
@@ -1337,46 +1348,19 @@ var styles = {
|
|
|
1337
1348
|
textAlign: "center",
|
|
1338
1349
|
width: "100%"
|
|
1339
1350
|
},
|
|
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
1351
|
spinner: {
|
|
1367
|
-
width: "
|
|
1368
|
-
height: "
|
|
1352
|
+
width: "18px",
|
|
1353
|
+
height: "18px",
|
|
1369
1354
|
border: "2px solid rgba(255, 255, 255, 0.1)",
|
|
1370
1355
|
borderTop: "2px solid #ffffff",
|
|
1371
1356
|
borderRadius: "50%",
|
|
1372
1357
|
animation: "sphere-spin 0.8s linear infinite"
|
|
1373
1358
|
},
|
|
1374
1359
|
footer: {
|
|
1375
|
-
marginTop: "
|
|
1360
|
+
marginTop: "20px",
|
|
1376
1361
|
textAlign: "center",
|
|
1377
1362
|
fontSize: "11px",
|
|
1378
|
-
color: "#475569"
|
|
1379
|
-
letterSpacing: "0.5px"
|
|
1363
|
+
color: "#475569"
|
|
1380
1364
|
}
|
|
1381
1365
|
};
|
|
1382
1366
|
var SphereAvatar = ({
|