@loafmarkets/ui 0.1.407 → 0.1.408

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
@@ -7576,7 +7576,6 @@ var LoginPopup = ({
7576
7576
  ] })
7577
7577
  ] });
7578
7578
  if (gate) {
7579
- const codeAccepted = codeStatus === "valid";
7580
7579
  const showSignIn = signInMode || signInRevealed;
7581
7580
  return /* @__PURE__ */ jsxRuntime.jsxs(GateShell, { children: [
7582
7581
  /* @__PURE__ */ jsxRuntime.jsx(GateTint, { $reveal: showSignIn ? 1 : 0 }),
@@ -7602,35 +7601,30 @@ var LoginPopup = ({
7602
7601
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7603
7602
  /* @__PURE__ */ jsxRuntime.jsxs(CodeInputWrapper, { $status: codeStatus, children: [
7604
7603
  /* @__PURE__ */ jsxRuntime.jsx(CodePrefix, { children: CODE_PREFIX }),
7605
- codeInput,
7606
- /* @__PURE__ */ jsxRuntime.jsx(
7607
- GateSubmit,
7608
- {
7609
- type: "button",
7610
- "aria-label": "Submit access code",
7611
- $status: codeStatus,
7612
- disabled: codeStatus === "checking" || !codeComplete,
7613
- onClick: () => void runCodeValidation(referralCode),
7614
- children: codeAccepted ? /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 6L9 17l-5-5" }) }) : codeStatus === "checking" ? /* @__PURE__ */ jsxRuntime.jsx(GateSpinner, {}) : /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) })
7615
- }
7616
- )
7604
+ codeInput
7617
7605
  ] }),
7618
7606
  (codeStatus === "invalid" || error && !signInRevealed) && /* @__PURE__ */ jsxRuntime.jsx(StatusMessage, { $error: true, children: error || "That code isn't valid. Double-check and try again." }),
7619
- signInRevealed ? signInStep : /* @__PURE__ */ jsxRuntime.jsxs(GateResendText, { children: [
7620
- "Already have an account?",
7621
- " ",
7622
- /* @__PURE__ */ jsxRuntime.jsx(
7623
- "button",
7624
- {
7625
- type: "button",
7626
- onClick: () => {
7627
- setError("");
7628
- setIsSignUp(false);
7629
- setSignInMode(true);
7630
- },
7631
- children: "Sign in"
7632
- }
7633
- )
7607
+ signInRevealed ? signInStep : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7608
+ /* @__PURE__ */ jsxRuntime.jsxs(GateResendText, { children: [
7609
+ "Already have an account?",
7610
+ " ",
7611
+ /* @__PURE__ */ jsxRuntime.jsx(
7612
+ "button",
7613
+ {
7614
+ type: "button",
7615
+ onClick: () => {
7616
+ setError("");
7617
+ setIsSignUp(false);
7618
+ setSignInMode(true);
7619
+ },
7620
+ children: "Sign in"
7621
+ }
7622
+ )
7623
+ ] }),
7624
+ /* @__PURE__ */ jsxRuntime.jsxs(GateEarlyAccess, { href: "https://loafmarkets.com/?waitlist=1", children: [
7625
+ "Signup for early access",
7626
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) })
7627
+ ] })
7634
7628
  ] })
7635
7629
  ] })
7636
7630
  ] })
@@ -8253,6 +8247,33 @@ var GateResendText = styled10__default.default.p`
8253
8247
  font-size: inherit;
8254
8248
  }
8255
8249
  `;
8250
+ var GateEarlyAccess = styled10__default.default.a`
8251
+ display: inline-flex;
8252
+ align-items: center;
8253
+ gap: 0.4rem;
8254
+ margin-top: 0.15rem;
8255
+ color: var(--color-text-secondary, #848e9c);
8256
+ font-size: 0.8rem;
8257
+ font-weight: 500;
8258
+ letter-spacing: 0.02em;
8259
+ text-decoration: none;
8260
+ cursor: pointer;
8261
+ transition: color 0.15s ease;
8262
+
8263
+ svg {
8264
+ width: 13px;
8265
+ height: 13px;
8266
+ transition: transform 0.15s ease;
8267
+ }
8268
+
8269
+ &:hover {
8270
+ color: var(--color-accent, #E6C87E);
8271
+ }
8272
+
8273
+ &:hover svg {
8274
+ transform: translateX(3px);
8275
+ }
8276
+ `;
8256
8277
  var GateSubmit = styled10__default.default.button`
8257
8278
  display: flex;
8258
8279
  align-items: center;