@orangecheck/auth-client 2.22.0 → 2.22.1
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 +21 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2375,6 +2375,8 @@ function ProviderSignIn({
|
|
|
2375
2375
|
if (providers.length === 0) return null;
|
|
2376
2376
|
const providerReturnTo = returnTo.startsWith("/") ? origin ? `${origin}${returnTo}` : returnTo : returnTo;
|
|
2377
2377
|
const line = { flex: 1, height: 1, background: "var(--border, #27272a)" };
|
|
2378
|
+
const BLOCK_GAP = 16;
|
|
2379
|
+
const BUTTON_GAP = 8;
|
|
2378
2380
|
const divider = /* @__PURE__ */ jsxs(
|
|
2379
2381
|
"div",
|
|
2380
2382
|
{
|
|
@@ -2382,7 +2384,10 @@ function ProviderSignIn({
|
|
|
2382
2384
|
display: "flex",
|
|
2383
2385
|
alignItems: "center",
|
|
2384
2386
|
gap: 10,
|
|
2385
|
-
|
|
2387
|
+
// Symmetric in both orderings: in `first` mode the divider
|
|
2388
|
+
// owns the gap on both sides; at the bottom the container's
|
|
2389
|
+
// marginTop owns the gap above, so the divider only pads below.
|
|
2390
|
+
margin: first ? `${BLOCK_GAP}px 0` : `0 0 ${BLOCK_GAP}px`,
|
|
2386
2391
|
color: "var(--muted-foreground, #a1a1aa)",
|
|
2387
2392
|
fontFamily: "ui-monospace, SFMono-Regular, monospace",
|
|
2388
2393
|
fontSize: 10,
|
|
@@ -2410,7 +2415,7 @@ function ProviderSignIn({
|
|
|
2410
2415
|
gap: 10,
|
|
2411
2416
|
boxSizing: "border-box",
|
|
2412
2417
|
width: "100%",
|
|
2413
|
-
marginTop: i === 0 ? 0 :
|
|
2418
|
+
marginTop: i === 0 ? 0 : BUTTON_GAP,
|
|
2414
2419
|
padding: "0.6rem 0.875rem",
|
|
2415
2420
|
border: "1px solid var(--border, #27272a)",
|
|
2416
2421
|
borderRadius: 6,
|
|
@@ -2427,13 +2432,20 @@ function ProviderSignIn({
|
|
|
2427
2432
|
},
|
|
2428
2433
|
p.id
|
|
2429
2434
|
));
|
|
2430
|
-
return /* @__PURE__ */ jsx(
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2435
|
+
return /* @__PURE__ */ jsx(
|
|
2436
|
+
"div",
|
|
2437
|
+
{
|
|
2438
|
+
"data-oc-signin-providers": "",
|
|
2439
|
+
style: first ? { marginBottom: 0 } : { marginTop: BLOCK_GAP },
|
|
2440
|
+
children: first ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2441
|
+
buttons,
|
|
2442
|
+
divider
|
|
2443
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2444
|
+
divider,
|
|
2445
|
+
buttons
|
|
2446
|
+
] })
|
|
2447
|
+
}
|
|
2448
|
+
);
|
|
2437
2449
|
}
|
|
2438
2450
|
function WalletFlow({ authOrigin, audience, add, onSuccess }) {
|
|
2439
2451
|
const [address, setAddress] = React3.useState("");
|