@cuemath/leap 2.9.5-j7 → 2.9.5-j8

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,46 +1,31 @@
1
- import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
- import { LOTTIE as i } from "../../../../assets/lottie/lottie.js";
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
3
2
  import e from "../../../ui/buttons/button/button.js";
4
- import c from "../../../ui/layout/flex-view.js";
5
- import l from "../../../ui/separator/separator.js";
6
- import m from "../../signup/circular-step-wrapper/circular-step-wrapper.js";
7
- const s = ({
8
- provider: t,
9
- onRetryLogin: r,
10
- onGoToSignup: n
11
- }) => /* @__PURE__ */ o(
12
- m,
13
- {
14
- label: `Your ${t === "google" ? "Google" : "Apple"} account is not linked with any cuemath account.`,
15
- animation: i.ERROR,
16
- introFrames: [0, 23],
17
- outroFrames: [23, 40],
18
- children: /* @__PURE__ */ a(c, { $alignItems: "center", $justifyContent: "center", children: [
19
- /* @__PURE__ */ o(
20
- e,
21
- {
22
- size: "small",
23
- renderAs: "secondary",
24
- label: "Create a new account",
25
- width: 232,
26
- onClick: n
27
- }
28
- ),
29
- /* @__PURE__ */ o(l, { heightX: 1 }),
30
- /* @__PURE__ */ o(
31
- e,
32
- {
33
- size: "small",
34
- renderAs: "secondary",
35
- label: "Try another Login method",
36
- width: 232,
37
- onClick: r
38
- }
39
- )
40
- ] })
41
- }
42
- ), w = s;
3
+ import i from "../../../ui/layout/flex-view.js";
4
+ import a from "../../../ui/separator/separator.js";
5
+ const c = ({ onRetryLogin: t, onGoToSignup: r }) => /* @__PURE__ */ n(i, { $alignItems: "center", $justifyContent: "center", children: [
6
+ /* @__PURE__ */ o(
7
+ e,
8
+ {
9
+ size: "small",
10
+ renderAs: "secondary",
11
+ label: "Create a new account",
12
+ width: 232,
13
+ onClick: r
14
+ }
15
+ ),
16
+ /* @__PURE__ */ o(a, { heightX: 1 }),
17
+ /* @__PURE__ */ o(
18
+ e,
19
+ {
20
+ size: "small",
21
+ renderAs: "secondary",
22
+ label: "Try another Login method",
23
+ width: 232,
24
+ onClick: t
25
+ }
26
+ )
27
+ ] }), u = c;
43
28
  export {
44
- w as default
29
+ u as default
45
30
  };
46
31
  //# sourceMappingURL=social-account-not-found.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"social-account-not-found.js","sources":["../../../../../src/features/auth/login/social-account-not-found/social-account-not-found.tsx"],"sourcesContent":["import type { ISocialAccountNotFoundProps } from './social-account-not-found-types';\n\nimport { LOTTIE } from '../../../../assets/lottie/lottie';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport CircularStepWrapper from '../../signup/circular-step-wrapper/circular-step-wrapper';\n\nconst SocialAccountNotFound = ({\n provider,\n onRetryLogin,\n onGoToSignup,\n}: ISocialAccountNotFoundProps) => {\n return (\n <CircularStepWrapper\n label={`Your ${\n provider === 'google' ? 'Google' : 'Apple'\n } account is not linked with any cuemath account.`}\n animation={LOTTIE.ERROR}\n introFrames={[0, 23]}\n outroFrames={[23, 40]}\n >\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n label=\"Create a new account\"\n width={232}\n onClick={onGoToSignup}\n />\n <Separator heightX={1} />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n label=\"Try another Login method\"\n width={232}\n onClick={onRetryLogin}\n />\n </FlexView>\n </CircularStepWrapper>\n );\n};\n\nexport default SocialAccountNotFound;\n"],"names":["SocialAccountNotFound","provider","onRetryLogin","onGoToSignup","jsx","CircularStepWrapper","LOTTIE","jsxs","FlexView","Button","Separator","SocialAccountNotFound$1"],"mappings":";;;;;;AAQA,MAAMA,IAAwB,CAAC;AAAA,EAC7B,UAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AACF,MAEI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,OAAO,QACLJ,MAAa,WAAW,WAAW,OACrC;AAAA,IACA,WAAWK,EAAO;AAAA,IAClB,aAAa,CAAC,GAAG,EAAE;AAAA,IACnB,aAAa,CAAC,IAAI,EAAE;AAAA,IAEpB,UAAC,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,MAAA,gBAAAJ;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,OAAM;AAAA,UACN,OAAO;AAAA,UACP,SAASN;AAAA,QAAA;AAAA,MACX;AAAA,MACA,gBAAAC,EAACM,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,MACvB,gBAAAN;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,OAAM;AAAA,UACN,OAAO;AAAA,UACP,SAASP;AAAA,QAAA;AAAA,MACX;AAAA,IAAA,GACF;AAAA,EAAA;AAAA,GAKNS,IAAeX;"}
1
+ {"version":3,"file":"social-account-not-found.js","sources":["../../../../../src/features/auth/login/social-account-not-found/social-account-not-found.tsx"],"sourcesContent":["import type { ISocialAccountNotFoundProps } from './social-account-not-found-types';\n\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\n\nconst SocialAccountNotFound = ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => {\n return (\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n label=\"Create a new account\"\n width={232}\n onClick={onGoToSignup}\n />\n <Separator heightX={1} />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n label=\"Try another Login method\"\n width={232}\n onClick={onRetryLogin}\n />\n </FlexView>\n );\n};\n\nexport default SocialAccountNotFound;\n"],"names":["SocialAccountNotFound","onRetryLogin","onGoToSignup","jsxs","FlexView","jsx","Button","Separator","SocialAccountNotFound$1"],"mappings":";;;;AAMA,MAAMA,IAAwB,CAAC,EAAE,cAAAC,GAAc,cAAAC,QAE1C,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC7C,UAAA;AAAA,EAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASJ;AAAA,IAAA;AAAA,EACX;AAAA,EACA,gBAAAG,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAF;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASL;AAAA,IAAA;AAAA,EACX;AACF,EAAA,CAAA,GAIJO,IAAeR;"}
package/dist/index.d.ts CHANGED
@@ -2718,7 +2718,6 @@ export declare interface ISignUpProps {
2718
2718
  }
2719
2719
 
2720
2720
  declare interface ISocialAccountNotFoundProps {
2721
- provider: TSocialAuthProvider;
2722
2721
  onRetryLogin: () => void;
2723
2722
  onGoToSignup: () => void;
2724
2723
  }
@@ -4075,7 +4074,7 @@ export declare const Skip2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
4075
4074
 
4076
4075
  export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4077
4076
 
4078
- export declare const SocialAccountNotFound: ({ provider, onRetryLogin, onGoToSignup, }: ISocialAccountNotFoundProps) => JSX_2.Element;
4077
+ export declare const SocialAccountNotFound: ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element;
4079
4078
 
4080
4079
  export declare const SocialLoginMethods: FC<ISocialLoginMethodsProps>;
4081
4080
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.9.5-j7",
3
+ "version": "2.9.5-j8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"