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 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.jsx("h2", { style: styles.title, children: "Connect to Sphere" }),
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.customButton,
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/branding/product/1x/gsa_512dp.png",
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.googleIcon
1238
+ style: styles.socialIcon
1240
1239
  }
1241
1240
  ),
1242
- isLoading || localLoading ? "Connecting..." : "Continue with Google"
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
- "Securely powered by ",
1254
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Sphere SDK" })
1253
+ "Protected by ",
1254
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "Sphere" })
1255
1255
  ] })
1256
1256
  ] })
1257
1257
  ] }) });
@@ -1274,62 +1274,73 @@ var styles = {
1274
1274
  backgroundColor: "#0c0c0c",
1275
1275
  color: "#ffffff",
1276
1276
  width: "90%",
1277
- maxWidth: "400px",
1278
- aspectRatio: "1/1",
1277
+ maxWidth: "360px",
1279
1278
  borderRadius: "0",
1280
1279
  position: "relative",
1281
1280
  boxShadow: "0 0 0 1px #222, 0 25px 60px rgba(0, 0, 0, 0.7)",
1282
1281
  overflow: "hidden",
1283
1282
  fontFamily: "Inter, -apple-system, system-ui, sans-serif",
1284
1283
  display: "flex",
1285
- flexDirection: "column"
1284
+ flexDirection: "column",
1285
+ padding: "24px",
1286
+ boxSizing: "border-box"
1286
1287
  },
1287
1288
  header: {
1288
1289
  display: "flex",
1289
1290
  justifyContent: "space-between",
1290
1291
  alignItems: "center",
1291
- padding: "24px 24px 0 24px"
1292
+ marginBottom: "24px"
1293
+ },
1294
+ title: {
1295
+ fontSize: "14px",
1296
+ fontWeight: "500",
1297
+ color: "#94a3b8",
1298
+ textAlign: "center",
1299
+ margin: 0,
1300
+ flex: 1
1292
1301
  },
1293
1302
  closeBtn: {
1294
1303
  background: "rgba(255, 255, 255, 0.05)",
1295
1304
  border: "none",
1296
1305
  color: "#888",
1297
- fontSize: "24px",
1306
+ fontSize: "20px",
1298
1307
  cursor: "pointer",
1299
- lineHeight: 1,
1300
- width: "32px",
1301
- height: "32px",
1308
+ width: "28px",
1309
+ height: "28px",
1302
1310
  borderRadius: "50%",
1303
1311
  display: "flex",
1304
1312
  alignItems: "center",
1305
- justifyContent: "center",
1306
- transition: "all 0.2s"
1313
+ justifyContent: "center"
1307
1314
  },
1308
1315
  content: {
1309
1316
  display: "flex",
1310
1317
  flexDirection: "column",
1311
- padding: "20px",
1312
1318
  alignItems: "center",
1313
- flex: 1,
1314
- justifyContent: "center",
1315
- width: "100%",
1316
- boxSizing: "border-box"
1319
+ width: "100%"
1317
1320
  },
1318
- title: {
1319
- fontSize: "1.5rem",
1320
- fontWeight: "700",
1321
- color: "#ffffff",
1322
- textAlign: "center",
1321
+ socialButton: {
1322
+ display: "flex",
1323
+ alignItems: "center",
1324
+ width: "100%",
1325
+ height: "48px",
1326
+ backgroundColor: "transparent",
1327
+ border: "1px solid #333",
1328
+ borderRadius: "0",
1329
+ padding: "0 16px",
1323
1330
  marginBottom: "10px",
1324
- margin: 0
1331
+ cursor: "pointer",
1332
+ fontSize: "14px",
1333
+ color: "#fff",
1334
+ boxSizing: "border-box",
1335
+ transition: "background 0.2s"
1325
1336
  },
1326
- description: {
1327
- fontSize: "0.7rem",
1328
- color: "#94a3b8",
1329
- textAlign: "center",
1330
- lineHeight: "1.5",
1331
- marginBottom: "32px",
1332
- margin: 0
1337
+ socialIcon: {
1338
+ width: "18px",
1339
+ height: "18px"
1340
+ },
1341
+ socialText: {
1342
+ marginLeft: "12px",
1343
+ fontWeight: "500"
1333
1344
  },
1334
1345
  errorBanner: {
1335
1346
  backgroundColor: "rgba(239, 68, 68, 0.1)",
@@ -1342,46 +1353,19 @@ var styles = {
1342
1353
  textAlign: "center",
1343
1354
  width: "100%"
1344
1355
  },
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
1356
  spinner: {
1372
- width: "20px",
1373
- height: "20px",
1357
+ width: "18px",
1358
+ height: "18px",
1374
1359
  border: "2px solid rgba(255, 255, 255, 0.1)",
1375
1360
  borderTop: "2px solid #ffffff",
1376
1361
  borderRadius: "50%",
1377
1362
  animation: "sphere-spin 0.8s linear infinite"
1378
1363
  },
1379
1364
  footer: {
1380
- marginTop: "32px",
1365
+ marginTop: "20px",
1381
1366
  textAlign: "center",
1382
1367
  fontSize: "11px",
1383
- color: "#475569",
1384
- letterSpacing: "0.5px"
1368
+ color: "#475569"
1385
1369
  }
1386
1370
  };
1387
1371
  var SphereAvatar = ({