@loafmarkets/ui 0.1.342 → 0.1.343

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.d.mts CHANGED
@@ -703,7 +703,7 @@ interface OverviewResponse {
703
703
  readonly tokensIssued: number;
704
704
  readonly offeringValuation: number;
705
705
  readonly weeklyRent: number;
706
- readonly indicativeListing: string;
706
+ readonly indicativeListing?: string;
707
707
  readonly minimumParticipation?: number;
708
708
  readonly landSizeSqm: number;
709
709
  readonly buildingSizeSqm: number;
package/dist/index.d.ts CHANGED
@@ -703,7 +703,7 @@ interface OverviewResponse {
703
703
  readonly tokensIssued: number;
704
704
  readonly offeringValuation: number;
705
705
  readonly weeklyRent: number;
706
- readonly indicativeListing: string;
706
+ readonly indicativeListing?: string;
707
707
  readonly minimumParticipation?: number;
708
708
  readonly landSizeSqm: number;
709
709
  readonly buildingSizeSqm: number;
package/dist/index.js CHANGED
@@ -6778,62 +6778,68 @@ var LoginPopup = ({
6778
6778
  ] }) });
6779
6779
  }
6780
6780
  if (view === "otp") {
6781
- return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
6782
- /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: onClose, "aria-label": "Close login popup", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) }),
6783
- /* @__PURE__ */ jsxRuntime.jsxs(BackButton, { onClick: () => setView("email"), children: [
6784
- /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" }) }),
6785
- "Back"
6786
- ] }),
6787
- /* @__PURE__ */ jsxRuntime.jsxs(Title, { children: [
6788
- /* @__PURE__ */ jsxRuntime.jsx(LogoContainer3, { children: /* @__PURE__ */ jsxRuntime.jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
6789
- "Enter Verification Code"
6790
- ] }),
6791
- /* @__PURE__ */ jsxRuntime.jsxs(InfoText, { style: { marginBottom: "1.5rem" }, children: [
6792
- "We sent a code to ",
6793
- /* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "#eaecef" }, children: email })
6794
- ] }),
6795
- /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleVerifyCode, children: /* @__PURE__ */ jsxRuntime.jsxs(EmailFormContainer, { children: [
6796
- /* @__PURE__ */ jsxRuntime.jsx(OTPContainer, { children: otp.map((digit, index) => /* @__PURE__ */ jsxRuntime.jsx(
6797
- OTPInput,
6798
- {
6799
- id: `otp-${index}`,
6800
- type: "text",
6801
- inputMode: "numeric",
6802
- maxLength: 1,
6803
- value: digit,
6804
- onChange: (event) => handleOTPChange(index, event.target.value),
6805
- onKeyDown: (event) => handleOTPKeyDown(index, event),
6806
- onInput: (event) => handleOTPInput(index, event),
6807
- onPaste: handleOTPPaste,
6808
- autoComplete: index === 0 ? "one-time-code" : "off",
6809
- autoFocus: index === 0
6810
- },
6811
- index
6812
- )) }),
6813
- /* @__PURE__ */ jsxRuntime.jsx(SubmitButton, { type: "submit", disabled: loading || otp.join("").length !== OTP_INPUT_LENGTH, children: loading ? "Verifying..." : "Verify" }),
6814
- error && /* @__PURE__ */ jsxRuntime.jsx(StatusMessage, { $error: true, children: error })
6815
- ] }) }),
6816
- /* @__PURE__ */ jsxRuntime.jsxs(InfoText, { children: [
6817
- "Didn't receive a code?",
6818
- " ",
6819
- /* @__PURE__ */ jsxRuntime.jsx(
6820
- "button",
6821
- {
6822
- type: "button",
6823
- onClick: (event) => {
6824
- event.preventDefault();
6825
- void handleSendCode(event);
6826
- },
6827
- style: {
6828
- background: "none",
6829
- border: "none",
6830
- color: "#f0b90b",
6831
- cursor: "pointer",
6832
- textDecoration: "underline"
6781
+ return /* @__PURE__ */ jsxRuntime.jsx(Overlay2, { onClick: loading ? void 0 : onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(PopupContainer, { onClick: (event) => event.stopPropagation(), children: [
6782
+ !loading && /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { onClick: onClose, "aria-label": "Close login popup", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }) }) }),
6783
+ loading ? /* @__PURE__ */ jsxRuntime.jsxs(AccountCreationLoader, { children: [
6784
+ /* @__PURE__ */ jsxRuntime.jsx(SpinnerRing, {}),
6785
+ /* @__PURE__ */ jsxRuntime.jsx(AccountCreationText, { children: isSignUp ? "Preparing your account\u2026" : "Signing you in\u2026" }),
6786
+ /* @__PURE__ */ jsxRuntime.jsx(AccountCreationSubtext, { children: "This may take a few seconds" })
6787
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6788
+ /* @__PURE__ */ jsxRuntime.jsxs(BackButton, { onClick: () => setView("email"), children: [
6789
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" }) }),
6790
+ "Back"
6791
+ ] }),
6792
+ /* @__PURE__ */ jsxRuntime.jsxs(Title, { children: [
6793
+ /* @__PURE__ */ jsxRuntime.jsx(LogoContainer3, { children: /* @__PURE__ */ jsxRuntime.jsx(LogoImage, { src: logoSrc, alt: logoAlt }) }),
6794
+ "Enter Verification Code"
6795
+ ] }),
6796
+ /* @__PURE__ */ jsxRuntime.jsxs(InfoText, { style: { marginBottom: "1.5rem" }, children: [
6797
+ "We sent a code to ",
6798
+ /* @__PURE__ */ jsxRuntime.jsx("strong", { style: { color: "#eaecef" }, children: email })
6799
+ ] }),
6800
+ /* @__PURE__ */ jsxRuntime.jsx("form", { onSubmit: handleVerifyCode, children: /* @__PURE__ */ jsxRuntime.jsxs(EmailFormContainer, { children: [
6801
+ /* @__PURE__ */ jsxRuntime.jsx(OTPContainer, { children: otp.map((digit, index) => /* @__PURE__ */ jsxRuntime.jsx(
6802
+ OTPInput,
6803
+ {
6804
+ id: `otp-${index}`,
6805
+ type: "text",
6806
+ inputMode: "numeric",
6807
+ maxLength: 1,
6808
+ value: digit,
6809
+ onChange: (event) => handleOTPChange(index, event.target.value),
6810
+ onKeyDown: (event) => handleOTPKeyDown(index, event),
6811
+ onInput: (event) => handleOTPInput(index, event),
6812
+ onPaste: handleOTPPaste,
6813
+ autoComplete: index === 0 ? "one-time-code" : "off",
6814
+ autoFocus: index === 0
6833
6815
  },
6834
- children: "Resend"
6835
- }
6836
- )
6816
+ index
6817
+ )) }),
6818
+ /* @__PURE__ */ jsxRuntime.jsx(SubmitButton, { type: "submit", disabled: otp.join("").length !== OTP_INPUT_LENGTH, children: "Verify" }),
6819
+ error && /* @__PURE__ */ jsxRuntime.jsx(StatusMessage, { $error: true, children: error })
6820
+ ] }) }),
6821
+ /* @__PURE__ */ jsxRuntime.jsxs(InfoText, { children: [
6822
+ "Didn't receive a code?",
6823
+ " ",
6824
+ /* @__PURE__ */ jsxRuntime.jsx(
6825
+ "button",
6826
+ {
6827
+ type: "button",
6828
+ onClick: (event) => {
6829
+ event.preventDefault();
6830
+ void handleSendCode(event);
6831
+ },
6832
+ style: {
6833
+ background: "none",
6834
+ border: "none",
6835
+ color: "#f0b90b",
6836
+ cursor: "pointer",
6837
+ textDecoration: "underline"
6838
+ },
6839
+ children: "Resend"
6840
+ }
6841
+ )
6842
+ ] })
6837
6843
  ] })
6838
6844
  ] }) });
6839
6845
  }
@@ -7658,6 +7664,37 @@ var MiniLiveFeed = () => {
7658
7664
  }
7659
7665
  );
7660
7666
  };
7667
+ var AccountCreationLoader = styled9__default.default.div`
7668
+ display: flex;
7669
+ flex-direction: column;
7670
+ align-items: center;
7671
+ justify-content: center;
7672
+ padding: 2rem 0;
7673
+ gap: 1rem;
7674
+ `;
7675
+ var AccountCreationText = styled9__default.default.p`
7676
+ color: var(--color-text, #eaecef);
7677
+ font-size: 1rem;
7678
+ font-weight: 500;
7679
+ margin: 0;
7680
+ `;
7681
+ var AccountCreationSubtext = styled9__default.default.p`
7682
+ color: var(--color-text-secondary, #848e9c);
7683
+ font-size: 0.8rem;
7684
+ margin: 0;
7685
+ `;
7686
+ var SpinnerRing = styled9__default.default.div`
7687
+ width: 40px;
7688
+ height: 40px;
7689
+ border: 3px solid rgba(230, 198, 86, 0.2);
7690
+ border-top-color: var(--color-accent, #e6c656);
7691
+ border-radius: 50%;
7692
+ animation: spin 0.8s linear infinite;
7693
+
7694
+ @keyframes spin {
7695
+ to { transform: rotate(360deg); }
7696
+ }
7697
+ `;
7661
7698
  LoginPopup.displayName = "LoginPopup";
7662
7699
  var PropertyCompareBar = React5__namespace.forwardRef(
7663
7700
  ({