@qratilabs/qrati-connect 2.23.2 → 2.23.4
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/element/CpBGzCRR2.js +8 -0
- package/element/CpaT2goE2.js +5 -0
- package/element/{li7rgMA52.js → D9MdXU5q2.js} +1 -1
- package/element/D9_lIXvx2.js +3 -0
- package/{umd/gieTP6MG2.js → element/DJWnpm1A2.js} +1 -1
- package/element/{tZTSWgVI.js → DiBNGdQS.js} +1 -1
- package/element/web.es.js +4 -4
- package/package.json +1 -1
- package/umd/CpBGzCRR2.js +8 -0
- package/umd/CpaT2goE2.js +5 -0
- package/umd/{li7rgMA52.js → D9MdXU5q2.js} +1 -1
- package/umd/D9_lIXvx2.js +3 -0
- package/{element/gieTP6MG2.js → umd/DJWnpm1A2.js} +1 -1
- package/umd/{tZTSWgVI.js → DiBNGdQS.js} +1 -1
- package/umd/web.es.js +4 -4
- package/element/BbOqM_N12.js +0 -5
- package/element/DoAMw2hA2.js +0 -8
- package/element/DuyDrUjK2.js +0 -2
- package/umd/BbOqM_N12.js +0 -5
- package/umd/DoAMw2hA2.js +0 -8
- package/umd/DuyDrUjK2.js +0 -2
package/element/BbOqM_N12.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{h as a,t as e}from"./qbHuxVSe.js";import{D as o,n as s}from"./TV5seYRS.js";import{c as l,t as r}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as m,t as p}from"./DuyDrUjK2.js";import{n as c,r as g,t as u}from"./u7SUQ9Kb2.js";var h=()=>{const{t:h}=t(),f=l(),[v,w]=a(""),[b,y]=a(""),[N,j]=a(!1),[C,k]=a(null),[P,x]=a(!1),[A,D]=a({}),{loginUsingEmail:E,loginWithGoogle:F,loginWithApple:O}=s(),[S,W]=a({google:!1,apple:!1}),G=a=>{D(e=>e[a]?{...e,[a]:void 0}:e)},L=async(a,e)=>{W(e=>({...e,[a]:!0})),k(null);try{await(e?.())}catch(o){o instanceof Error?k(o.message):k(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(e=>({...e,[a]:!1}))}};/* @__PURE__ */
|
|
2
|
-
return e("div",{className:"bg-background w-full space-y-6",children:[/* @__PURE__ */e("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const e=d(v),o=m(b);if(e||o)return void D({email:e,password:o});D({}),j(!0),k(null);const s=await(E?.(v.toLowerCase(),b));s?.error&&k(s.error),j(!1)},className:"space-y-6",children:[
|
|
3
|
-
/* @__PURE__ */e("div",{className:"space-y-9",children:[/* @__PURE__ */e(p,{label:h("auth.email","Email address"),name:"email",disabled:N,type:"email",value:v,onChange:a=>{w(a.target.value),G("email")},autoComplete:"email",error:A.email}),/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e(p,{label:h("auth.password","Password"),name:"password",disabled:N,type:P?"text":"password",value:b,onChange:a=>{y(a.target.value),G("password")},autoComplete:"current-password",error:A.password}),/* @__PURE__ */e(n,{variant:"ghost",color:"primary",className:"absolute top-8 right-0",icon:/* @__PURE__ */e(P?u:c,{className:"size-5"}),onClick:()=>x(!P)})]})]}),C&&/* @__PURE__ */e(i,{align:"center",color:"error",className:"font-medium",children:C}),
|
|
4
|
-
/* @__PURE__ */e("div",{className:"flex justify-end",children:/* @__PURE__ */e(r,{to:o.FORGOT_PASSWORD,state:{from:f.pathname},children:/* @__PURE__ */e(i,{variant:"h6",className:"w-fit",children:h("button.forgotPassword","Forgot Password?")})})}),
|
|
5
|
-
/* @__PURE__ */e(n,{type:"submit",color:"primary",className:"w-full",loading:N,disabled:N,children:h("button.login","Login")})]}),/* @__PURE__ */e("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */e(g,{disabled:N||S.google||S.apple,loading:S.google,onClick:()=>L("google",F),provider:"google"}),/* @__PURE__ */e(g,{disabled:N||S.google||S.apple,loading:S.apple,onClick:()=>L("apple",O),provider:"apple"})]})]})};export{h as default};
|
package/element/DoAMw2hA2.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{h as a,t as e}from"./qbHuxVSe.js";import{D as s,n as o}from"./TV5seYRS.js";import{c as r,t as l}from"./Crix9_9X.js";import{t}from"./CtYiLBXL.js";import{n as i}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{a as m,i as d,o as c,r as p,s as g,t as w}from"./DuyDrUjK2.js";import{n as h,r as u,t as f}from"./u7SUQ9Kb2.js";var v=()=>{const{t:v}=i(),[b,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[z,F]=a(""),[A,D]=a(null),[E,O]=a({}),[R,S]=a(!1),[W,G]=a({google:!1,apple:!1}),[L,U]=a({showPassword:!1,showConfirmPassword:!1}),B=r(),{registerUsingEmail:J,loginWithGoogle:T,loginWithApple:V}=o(),$=a=>{O(e=>e[a]?{...e,[a]:void 0}:e)},_=async(a,e)=>{G(e=>({...e,[a]:!0})),D(null);try{await(e?.())}catch(s){s instanceof Error?D(s.message):D(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{G(e=>({...e,[a]:!1}))}};/* @__PURE__ */
|
|
2
|
-
return e("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */e("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const e=m(b),s=c(P),o=d(N),r=g(x),l=p(z,x);if(e||s||o||r||l)return void O({fname:e,lname:s,email:o,password:r,confirmPassword:l});O({}),S(!0),D(null);const t=await(J?.(N.toLowerCase(),x,b,P));t?.error&&D(t.error),S(!1)},className:"space-y-4",children:[
|
|
3
|
-
/* @__PURE__ */e("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */e(w,{label:v("auth.firstName","First name"),name:"fname",disabled:R,type:"text",value:b,onChange:a=>{C(a.target.value),$("fname")},error:E.fname}),/* @__PURE__ */e(w,{label:v("auth.lastName","Last name"),name:"lname",disabled:R,type:"text",value:P,onChange:a=>{y(a.target.value),$("lname")},error:E.lname})]}),
|
|
4
|
-
/* @__PURE__ */e(w,{label:v("auth.email","Email address"),name:"email",disabled:R,type:"email",value:N,onChange:a=>{j(a.target.value),$("email")},autoComplete:"email",error:E.email}),
|
|
5
|
-
/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e(w,{label:v("auth.password","Password"),name:"password",disabled:R,type:L.showPassword?"text":"password",value:x,onChange:a=>{k(a.target.value),$("password")},autoComplete:"new-password",error:E.password}),/* @__PURE__ */e(n,{type:"button",variant:"ghost",color:"primary",className:"absolute top-8 right-0",icon:L.showPassword?/* @__PURE__ */e(f,{className:"size-5"}):/* @__PURE__ */e(h,{className:"size-5"}),onClick:()=>U(a=>({...a,showPassword:!a.showPassword}))})]}),
|
|
6
|
-
/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e(w,{label:v("auth.confirmPassword","Confirm password"),name:"confirmPassword",disabled:R,type:L.showConfirmPassword?"text":"password",value:z,onChange:a=>{F(a.target.value),$("confirmPassword")},autoComplete:"new-password",error:E.confirmPassword}),/* @__PURE__ */e(n,{type:"button",variant:"ghost",color:"primary",className:"absolute top-8 right-0",icon:L.showConfirmPassword?/* @__PURE__ */e(f,{className:"size-5"}):/* @__PURE__ */e(h,{className:"size-5"}),onClick:()=>U(a=>({...a,showConfirmPassword:!a.showConfirmPassword}))})]}),A&&/* @__PURE__ */e(t,{align:"center",color:"error",className:"font-medium",children:A}),
|
|
7
|
-
/* @__PURE__ */e("div",{className:"flex justify-end",children:/* @__PURE__ */e(l,{to:s.FORGOT_PASSWORD,state:{from:B.pathname},children:/* @__PURE__ */e(t,{variant:"h6",className:"w-fit",children:v("button.forgotPassword","Forgot Password?")})})}),
|
|
8
|
-
/* @__PURE__ */e(n,{type:"submit",color:"primary",className:"w-full",disabled:R,loading:R,children:v("button.register","Register")})]}),/* @__PURE__ */e("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */e(u,{disabled:R||W.google||W.apple,loading:W.google,onClick:()=>_("google",T),provider:"google"}),/* @__PURE__ */e(u,{disabled:R||W.google||W.apple,loading:W.apple,onClick:()=>_("apple",V),provider:"apple"})]})]})};export{v as default};
|
package/element/DuyDrUjK2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./qbHuxVSe.js";import{i as r}from"./TV5seYRS.js";import{t as s}from"./CtYiLBXL.js";var a=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",t=e=>e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?void 0:"Enter a valid email":"Please enter your email",o=e=>e?e.length<8?"Min password length is 8":void 0:"Please enter your password",i=e=>{if(!e.trim())return"First name is required"},n=e=>{if(!e.trim())return"Last name is required"},d=(e,r)=>e?e!==r?"Passwords do not match":void 0:"Please confirm your password",l=({label:a,type:t="text",disabled:o,error:i,iconSVG:n,className:d="",step:l,...m})=>/* @__PURE__ */e("div",{className:"relative",children:[a&&/* @__PURE__ */e(s,{variant:"body1",className:"sm:mb-1",children:a}),
|
|
2
|
-
/* @__PURE__ */e("input",{type:t,disabled:o,step:"number"===t?l:void 0,"aria-invalid":!!i,className:r("border-border shadow-outer focus:border-primary peer w-full rounded border px-4 py-2 focus:border focus:ring-0 focus:outline-none",o?"text-muted-foreground bg-transparent":"bg-input",i?"border-destructive animate-pulse":"border-border animate-none",n?"pl-9":"",d),...m,value:m.value??""}),i&&/* @__PURE__ */e(s,{variant:"caption",color:"error","data-testid":"input-error",children:i}),n&&/* @__PURE__ */e("div",{className:r("pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",o?"text-muted-foreground":" "),children:n})]});export{i as a,t as i,a as n,n as o,d as r,o as s,l as t};
|
package/umd/BbOqM_N12.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{h as a,t as e}from"./qbHuxVSe.js";import{D as o,n as s}from"./TV5seYRS.js";import{c as l,t as r}from"./Crix9_9X.js";import{t as i}from"./CtYiLBXL.js";import{n as t}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{i as d,s as m,t as p}from"./DuyDrUjK2.js";import{n as c,r as g,t as u}from"./u7SUQ9Kb2.js";var h=()=>{const{t:h}=t(),f=l(),[v,w]=a(""),[b,y]=a(""),[N,j]=a(!1),[C,k]=a(null),[P,x]=a(!1),[A,D]=a({}),{loginUsingEmail:E,loginWithGoogle:F,loginWithApple:O}=s(),[S,W]=a({google:!1,apple:!1}),G=a=>{D(e=>e[a]?{...e,[a]:void 0}:e)},L=async(a,e)=>{W(e=>({...e,[a]:!0})),k(null);try{await(e?.())}catch(o){o instanceof Error?k(o.message):k(`Failed to login with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{W(e=>({...e,[a]:!1}))}};/* @__PURE__ */
|
|
2
|
-
return e("div",{className:"bg-background w-full space-y-6",children:[/* @__PURE__ */e("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const e=d(v),o=m(b);if(e||o)return void D({email:e,password:o});D({}),j(!0),k(null);const s=await(E?.(v.toLowerCase(),b));s?.error&&k(s.error),j(!1)},className:"space-y-6",children:[
|
|
3
|
-
/* @__PURE__ */e("div",{className:"space-y-9",children:[/* @__PURE__ */e(p,{label:h("auth.email","Email address"),name:"email",disabled:N,type:"email",value:v,onChange:a=>{w(a.target.value),G("email")},autoComplete:"email",error:A.email}),/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e(p,{label:h("auth.password","Password"),name:"password",disabled:N,type:P?"text":"password",value:b,onChange:a=>{y(a.target.value),G("password")},autoComplete:"current-password",error:A.password}),/* @__PURE__ */e(n,{variant:"ghost",color:"primary",className:"absolute top-8 right-0",icon:/* @__PURE__ */e(P?u:c,{className:"size-5"}),onClick:()=>x(!P)})]})]}),C&&/* @__PURE__ */e(i,{align:"center",color:"error",className:"font-medium",children:C}),
|
|
4
|
-
/* @__PURE__ */e("div",{className:"flex justify-end",children:/* @__PURE__ */e(r,{to:o.FORGOT_PASSWORD,state:{from:f.pathname},children:/* @__PURE__ */e(i,{variant:"h6",className:"w-fit",children:h("button.forgotPassword","Forgot Password?")})})}),
|
|
5
|
-
/* @__PURE__ */e(n,{type:"submit",color:"primary",className:"w-full",loading:N,disabled:N,children:h("button.login","Login")})]}),/* @__PURE__ */e("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */e(g,{disabled:N||S.google||S.apple,loading:S.google,onClick:()=>L("google",F),provider:"google"}),/* @__PURE__ */e(g,{disabled:N||S.google||S.apple,loading:S.apple,onClick:()=>L("apple",O),provider:"apple"})]})]})};export{h as default};
|
package/umd/DoAMw2hA2.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{h as a,t as e}from"./qbHuxVSe.js";import{D as s,n as o}from"./TV5seYRS.js";import{c as r,t as l}from"./Crix9_9X.js";import{t}from"./CtYiLBXL.js";import{n as i}from"./DWbLshVZ.js";import{t as n}from"./BCyTQnZ1.js";import{a as m,i as d,o as c,r as p,s as g,t as w}from"./DuyDrUjK2.js";import{n as h,r as u,t as f}from"./u7SUQ9Kb2.js";var v=()=>{const{t:v}=i(),[b,C]=a(""),[P,y]=a(""),[N,j]=a(""),[x,k]=a(""),[z,F]=a(""),[A,D]=a(null),[E,O]=a({}),[R,S]=a(!1),[W,G]=a({google:!1,apple:!1}),[L,U]=a({showPassword:!1,showConfirmPassword:!1}),B=r(),{registerUsingEmail:J,loginWithGoogle:T,loginWithApple:V}=o(),$=a=>{O(e=>e[a]?{...e,[a]:void 0}:e)},_=async(a,e)=>{G(e=>({...e,[a]:!0})),D(null);try{await(e?.())}catch(s){s instanceof Error?D(s.message):D(`Failed to sign up with ${a.charAt(0).toUpperCase()+a.slice(1)}`)}finally{G(e=>({...e,[a]:!1}))}};/* @__PURE__ */
|
|
2
|
-
return e("div",{className:"bg-background w-full space-y-8",children:[/* @__PURE__ */e("form",{noValidate:!0,onSubmit:async a=>{a.preventDefault();const e=m(b),s=c(P),o=d(N),r=g(x),l=p(z,x);if(e||s||o||r||l)return void O({fname:e,lname:s,email:o,password:r,confirmPassword:l});O({}),S(!0),D(null);const t=await(J?.(N.toLowerCase(),x,b,P));t?.error&&D(t.error),S(!1)},className:"space-y-4",children:[
|
|
3
|
-
/* @__PURE__ */e("div",{className:"grid grid-cols-2 gap-4",children:[/* @__PURE__ */e(w,{label:v("auth.firstName","First name"),name:"fname",disabled:R,type:"text",value:b,onChange:a=>{C(a.target.value),$("fname")},error:E.fname}),/* @__PURE__ */e(w,{label:v("auth.lastName","Last name"),name:"lname",disabled:R,type:"text",value:P,onChange:a=>{y(a.target.value),$("lname")},error:E.lname})]}),
|
|
4
|
-
/* @__PURE__ */e(w,{label:v("auth.email","Email address"),name:"email",disabled:R,type:"email",value:N,onChange:a=>{j(a.target.value),$("email")},autoComplete:"email",error:E.email}),
|
|
5
|
-
/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e(w,{label:v("auth.password","Password"),name:"password",disabled:R,type:L.showPassword?"text":"password",value:x,onChange:a=>{k(a.target.value),$("password")},autoComplete:"new-password",error:E.password}),/* @__PURE__ */e(n,{type:"button",variant:"ghost",color:"primary",className:"absolute top-8 right-0",icon:L.showPassword?/* @__PURE__ */e(f,{className:"size-5"}):/* @__PURE__ */e(h,{className:"size-5"}),onClick:()=>U(a=>({...a,showPassword:!a.showPassword}))})]}),
|
|
6
|
-
/* @__PURE__ */e("div",{className:"relative",children:[/* @__PURE__ */e(w,{label:v("auth.confirmPassword","Confirm password"),name:"confirmPassword",disabled:R,type:L.showConfirmPassword?"text":"password",value:z,onChange:a=>{F(a.target.value),$("confirmPassword")},autoComplete:"new-password",error:E.confirmPassword}),/* @__PURE__ */e(n,{type:"button",variant:"ghost",color:"primary",className:"absolute top-8 right-0",icon:L.showConfirmPassword?/* @__PURE__ */e(f,{className:"size-5"}):/* @__PURE__ */e(h,{className:"size-5"}),onClick:()=>U(a=>({...a,showConfirmPassword:!a.showConfirmPassword}))})]}),A&&/* @__PURE__ */e(t,{align:"center",color:"error",className:"font-medium",children:A}),
|
|
7
|
-
/* @__PURE__ */e("div",{className:"flex justify-end",children:/* @__PURE__ */e(l,{to:s.FORGOT_PASSWORD,state:{from:B.pathname},children:/* @__PURE__ */e(t,{variant:"h6",className:"w-fit",children:v("button.forgotPassword","Forgot Password?")})})}),
|
|
8
|
-
/* @__PURE__ */e(n,{type:"submit",color:"primary",className:"w-full",disabled:R,loading:R,children:v("button.register","Register")})]}),/* @__PURE__ */e("div",{className:"grid grid-cols-2 gap-2",children:[/* @__PURE__ */e(u,{disabled:R||W.google||W.apple,loading:W.google,onClick:()=>_("google",T),provider:"google"}),/* @__PURE__ */e(u,{disabled:R||W.google||W.apple,loading:W.apple,onClick:()=>_("apple",V),provider:"apple"})]})]})};export{v as default};
|
package/umd/DuyDrUjK2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./qbHuxVSe.js";import{i as r}from"./TV5seYRS.js";import{t as s}from"./CtYiLBXL.js";var a=e=>e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"",t=e=>e.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?void 0:"Enter a valid email":"Please enter your email",o=e=>e?e.length<8?"Min password length is 8":void 0:"Please enter your password",i=e=>{if(!e.trim())return"First name is required"},n=e=>{if(!e.trim())return"Last name is required"},d=(e,r)=>e?e!==r?"Passwords do not match":void 0:"Please confirm your password",l=({label:a,type:t="text",disabled:o,error:i,iconSVG:n,className:d="",step:l,...m})=>/* @__PURE__ */e("div",{className:"relative",children:[a&&/* @__PURE__ */e(s,{variant:"body1",className:"sm:mb-1",children:a}),
|
|
2
|
-
/* @__PURE__ */e("input",{type:t,disabled:o,step:"number"===t?l:void 0,"aria-invalid":!!i,className:r("border-border shadow-outer focus:border-primary peer w-full rounded border px-4 py-2 focus:border focus:ring-0 focus:outline-none",o?"text-muted-foreground bg-transparent":"bg-input",i?"border-destructive animate-pulse":"border-border animate-none",n?"pl-9":"",d),...m,value:m.value??""}),i&&/* @__PURE__ */e(s,{variant:"caption",color:"error","data-testid":"input-error",children:i}),n&&/* @__PURE__ */e("div",{className:r("pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",o?"text-muted-foreground":" "),children:n})]});export{i as a,t as i,a as n,n as o,d as r,o as s,l as t};
|