@levo-so/studio 0.3.1 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { t as e } from "./LoginForm-CLUpD3qG.js";
2
+ import { t as e } from "./LoginForm-DhGQD4uI.js";
3
3
  import { t } from "./card-Cb4m0p4i.js";
4
4
  import { Suspense as n, lazy as r, useState as i } from "react";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -8,7 +8,7 @@ var s = {
8
8
  title: "_title_s7k8g_7",
9
9
  subtitle: "_subtitle_s7k8g_14",
10
10
  formWrapper: "_formWrapper_s7k8g_20"
11
- }, c = r(() => import("./PendingApprovalCard-ARwwmFAe.js")), l = ({ logo: r, siteName: l, page: u }) => {
11
+ }, c = r(() => import("./PendingApprovalCard-BlyH59Vy.js")), l = ({ logo: r, siteName: l, page: u }) => {
12
12
  let [d, f] = i(!1), [p, m] = i(!1), h = u.access?.find((e) => e.kind === "gating" && e.enabled)?.options;
13
13
  return p ? /* @__PURE__ */ a(n, {
14
14
  fallback: /* @__PURE__ */ a("div", {}),
@@ -10,8 +10,8 @@ import { Popover as g } from "radix-ui";
10
10
  import * as _ from "yup";
11
11
  import { useFormik as v } from "formik";
12
12
  import { parsePhoneNumberWithError as y } from "libphonenumber-js";
13
- import b from "react-otp-input";
14
- import { FlagImage as x, defaultCountries as S, parseCountry as C, usePhoneInput as w } from "react-international-phone";
13
+ import { FlagImage as b, defaultCountries as x, parseCountry as S, usePhoneInput as C } from "react-international-phone";
14
+ import w from "react-otp-input";
15
15
  //#region src/schemas/authSchemas.ts
16
16
  var T = _.string().required("Email is required").email("Please enter a valid email address").trim(), E = _.string().required("Please enter the verification code").length(4, "Verification code must be 4 digits").matches(/^\d+$/, "Verification code must contain only numbers"), D = _.string().required("Phone number is required").test("phone", "The phone number has incorrect format", (e) => {
17
17
  if (!e) return !1;
@@ -333,7 +333,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
333
333
  }),
334
334
  /* @__PURE__ */ f("div", {
335
335
  className: H.inputGroup,
336
- children: /* @__PURE__ */ f(b, {
336
+ children: /* @__PURE__ */ f(w, {
337
337
  value: n,
338
338
  onChange: i,
339
339
  numInputs: 4,
@@ -460,17 +460,17 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
460
460
  countryName: "_countryName_1odi8_118",
461
461
  dialCode: "_dialCode_1odi8_125"
462
462
  }, K = ({ phone: e, setPhone: t, otpSent: n, handleReset: r }) => {
463
- let [i, a] = u(!1), [o, s] = u(""), c = l(null), d = l(null), { inputValue: m, handlePhoneValueChange: _, inputRef: v, country: y, setCountry: b } = w({
463
+ let [i, a] = u(!1), [o, s] = u(""), c = l(null), d = l(null), { inputValue: m, handlePhoneValueChange: _, inputRef: v, country: y, setCountry: w } = C({
464
464
  defaultCountry: "in",
465
465
  value: e,
466
- countries: S,
466
+ countries: x,
467
467
  onChange: (e) => {
468
468
  t(e.phone);
469
469
  },
470
470
  disableDialCodePrefill: !0,
471
471
  forceDialCode: !0
472
- }), T = S.filter((e) => {
473
- let t = C(e);
472
+ }), T = x.filter((e) => {
473
+ let t = S(e);
474
474
  return t.name.toLowerCase().includes(o.toLowerCase()) || t.dialCode.includes(o);
475
475
  });
476
476
  return /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
@@ -490,7 +490,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
490
490
  type: "button",
491
491
  className: G.selector,
492
492
  disabled: n,
493
- children: [/* @__PURE__ */ f(x, {
493
+ children: [/* @__PURE__ */ f(b, {
494
494
  iso2: y.iso2,
495
495
  style: {
496
496
  width: "24px",
@@ -536,13 +536,13 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
536
536
  flex: 1
537
537
  },
538
538
  children: [T.map((e) => {
539
- let t = C(e), n = t.iso2 === y.iso2;
539
+ let t = S(e), n = t.iso2 === y.iso2;
540
540
  return /* @__PURE__ */ p("button", {
541
541
  type: "button",
542
542
  className: G.countryItem,
543
543
  "data-selected": n,
544
544
  onClick: () => {
545
- b(t.iso2), a(!1), s("");
545
+ w(t.iso2), a(!1), s("");
546
546
  },
547
547
  onKeyDown: (e) => {
548
548
  if (e.key === "ArrowDown") e.preventDefault(), e.currentTarget.nextElementSibling?.focus();
@@ -553,7 +553,7 @@ var T = _.string().required("Email is required").email("Please enter a valid ema
553
553
  }
554
554
  },
555
555
  children: [
556
- /* @__PURE__ */ f(x, {
556
+ /* @__PURE__ */ f(b, {
557
557
  iso2: t.iso2,
558
558
  className: G.flag
559
559
  }),
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { n as e } from "./AuthProvider-CFQqiIf1.js";
3
- import { n as t } from "./ModalManager-7Nhr8gTs.js";
3
+ import { n as t } from "./ModalManager-BW3Dol7F.js";
4
4
  import { a as n, n as r, o as i, r as a, t as o } from "./dialog-RrTP-MGm.js";
5
- import { t as s } from "./LoginForm-CLUpD3qG.js";
5
+ import { t as s } from "./LoginForm-DhGQD4uI.js";
6
6
  import { useEffect as c } from "react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  var d = {
@@ -2,7 +2,7 @@
2
2
  import { Suspense as e, createContext as t, lazy as n, useCallback as r, useContext as i, useState as a } from "react";
3
3
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
4
  //#region src/context/ModalManager.tsx
5
- var c = n(() => import("./LoginModal-D9jhZlJr.js")), l = t({
5
+ var c = n(() => import("./LoginModal-Ui2GnSje.js")), l = t({
6
6
  availableModals: ["login"],
7
7
  openModals: { key: null },
8
8
  openModal: () => ({}),
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as e } from "./dist-DanVCpXe.js";
2
+ import { n as e } from "./dist-Ckw19x6H.js";
3
3
  import { t } from "./card-Cb4m0p4i.js";
4
4
  import { t as n } from "./MessageFooter-CrhrI-su.js";
5
5
  import { useState as r } from "react";