@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.js
CHANGED
|
@@ -2397,6 +2397,8 @@ function ProviderSignIn({
|
|
|
2397
2397
|
if (providers.length === 0) return null;
|
|
2398
2398
|
const providerReturnTo = returnTo.startsWith("/") ? origin ? `${origin}${returnTo}` : returnTo : returnTo;
|
|
2399
2399
|
const line = { flex: 1, height: 1, background: "var(--border, #27272a)" };
|
|
2400
|
+
const BLOCK_GAP = 16;
|
|
2401
|
+
const BUTTON_GAP = 8;
|
|
2400
2402
|
const divider = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2401
2403
|
"div",
|
|
2402
2404
|
{
|
|
@@ -2404,7 +2406,10 @@ function ProviderSignIn({
|
|
|
2404
2406
|
display: "flex",
|
|
2405
2407
|
alignItems: "center",
|
|
2406
2408
|
gap: 10,
|
|
2407
|
-
|
|
2409
|
+
// Symmetric in both orderings: in `first` mode the divider
|
|
2410
|
+
// owns the gap on both sides; at the bottom the container's
|
|
2411
|
+
// marginTop owns the gap above, so the divider only pads below.
|
|
2412
|
+
margin: first ? `${BLOCK_GAP}px 0` : `0 0 ${BLOCK_GAP}px`,
|
|
2408
2413
|
color: "var(--muted-foreground, #a1a1aa)",
|
|
2409
2414
|
fontFamily: "ui-monospace, SFMono-Regular, monospace",
|
|
2410
2415
|
fontSize: 10,
|
|
@@ -2432,7 +2437,7 @@ function ProviderSignIn({
|
|
|
2432
2437
|
gap: 10,
|
|
2433
2438
|
boxSizing: "border-box",
|
|
2434
2439
|
width: "100%",
|
|
2435
|
-
marginTop: i === 0 ? 0 :
|
|
2440
|
+
marginTop: i === 0 ? 0 : BUTTON_GAP,
|
|
2436
2441
|
padding: "0.6rem 0.875rem",
|
|
2437
2442
|
border: "1px solid var(--border, #27272a)",
|
|
2438
2443
|
borderRadius: 6,
|
|
@@ -2449,13 +2454,20 @@ function ProviderSignIn({
|
|
|
2449
2454
|
},
|
|
2450
2455
|
p.id
|
|
2451
2456
|
));
|
|
2452
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2457
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2458
|
+
"div",
|
|
2459
|
+
{
|
|
2460
|
+
"data-oc-signin-providers": "",
|
|
2461
|
+
style: first ? { marginBottom: 0 } : { marginTop: BLOCK_GAP },
|
|
2462
|
+
children: first ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2463
|
+
buttons,
|
|
2464
|
+
divider
|
|
2465
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2466
|
+
divider,
|
|
2467
|
+
buttons
|
|
2468
|
+
] })
|
|
2469
|
+
}
|
|
2470
|
+
);
|
|
2459
2471
|
}
|
|
2460
2472
|
function WalletFlow({ authOrigin, audience, add, onSuccess }) {
|
|
2461
2473
|
const [address, setAddress] = React3__namespace.useState("");
|