@cuemath/leap 3.1.2-j1 → 3.1.2-j3

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,34 +1,38 @@
1
- import { jsxs as t, Fragment as a, jsx as e } from "react/jsx-runtime";
2
- import { memo as i } from "react";
3
- import o from "../../../ui/buttons/button/button.js";
4
- import c from "../../../ui/layout/flex-view.js";
5
- import l from "../../../ui/separator/separator.js";
6
- const m = ({ onRetryLogin: n, onGoToSignup: r }) => /* @__PURE__ */ t(c, { $alignItems: "center", $justifyContent: "center", children: [
7
- !!r && /* @__PURE__ */ t(a, { children: [
1
+ import { jsxs as o, Fragment as i, jsx as e } from "react/jsx-runtime";
2
+ import { memo as c } from "react";
3
+ import r from "../../../ui/buttons/button/button.js";
4
+ import l from "../../../ui/layout/flex-view.js";
5
+ import m from "../../../ui/separator/separator.js";
6
+ const s = ({
7
+ onRetryLogin: t,
8
+ onGoToSignup: n,
9
+ showSignupButton: a = !0
10
+ }) => /* @__PURE__ */ o(l, { $alignItems: "center", $justifyContent: "center", children: [
11
+ !!a && /* @__PURE__ */ o(i, { children: [
8
12
  /* @__PURE__ */ e(
9
- o,
13
+ r,
10
14
  {
11
15
  size: "small",
12
16
  renderAs: "secondary-dark",
13
17
  label: "Create a new account",
14
18
  width: 232,
15
- onClick: r
19
+ onClick: n
16
20
  }
17
21
  ),
18
- /* @__PURE__ */ e(l, { heightX: 1 })
22
+ /* @__PURE__ */ e(m, { heightX: 1 })
19
23
  ] }),
20
24
  /* @__PURE__ */ e(
21
- o,
25
+ r,
22
26
  {
23
27
  size: "small",
24
28
  renderAs: "secondary-dark",
25
29
  label: "Try another Login method",
26
30
  width: 232,
27
- onClick: n
31
+ onClick: t
28
32
  }
29
33
  )
30
- ] }), p = i(m);
34
+ ] }), g = c(s);
31
35
  export {
32
- p as default
36
+ g as default
33
37
  };
34
38
  //# 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 { memo } from 'react';\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 {!!onGoToSignup && (\n <>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Create a new account\"\n width={232}\n onClick={onGoToSignup}\n />\n <Separator heightX={1} />\n </>\n )}\n\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Try another Login method\"\n width={232}\n onClick={onRetryLogin}\n />\n </FlexView>\n );\n};\n\nexport default memo(SocialAccountNotFound);\n"],"names":["SocialAccountNotFound","onRetryLogin","onGoToSignup","jsxs","FlexView","Fragment","jsx","Button","Separator","socialAccountNotFound","memo"],"mappings":";;;;;AAQA,MAAMA,IAAwB,CAAC,EAAE,cAAAC,GAAc,cAAAC,QAE1C,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC5C,UAAA;AAAA,EAAC,CAAA,CAACF,KAEC,gBAAAC,EAAAE,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAS;AAAA,QACT,OAAM;AAAA,QACN,OAAO;AAAA,QACP,SAASL;AAAA,MAAA;AAAA,IACX;AAAA,IACA,gBAAAI,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EAAA,GACzB;AAAA,EAGF,gBAAAF;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASN;AAAA,IAAA;AAAA,EACX;AACF,EAAA,CAAA,GAIWQ,IAAAC,EAAKV,CAAqB;"}
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 { memo } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\n\nconst SocialAccountNotFound = ({\n onRetryLogin,\n onGoToSignup,\n showSignupButton = true,\n}: ISocialAccountNotFoundProps) => {\n return (\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n {!!showSignupButton && (\n <>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Create a new account\"\n width={232}\n onClick={onGoToSignup}\n />\n <Separator heightX={1} />\n </>\n )}\n\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n label=\"Try another Login method\"\n width={232}\n onClick={onRetryLogin}\n />\n </FlexView>\n );\n};\n\nexport default memo(SocialAccountNotFound);\n"],"names":["SocialAccountNotFound","onRetryLogin","onGoToSignup","showSignupButton","jsxs","FlexView","Fragment","jsx","Button","Separator","socialAccountNotFound","memo"],"mappings":";;;;;AAQA,MAAMA,IAAwB,CAAC;AAAA,EAC7B,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,kBAAAC,IAAmB;AACrB,MAEK,gBAAAC,EAAAC,GAAA,EAAS,aAAY,UAAS,iBAAgB,UAC5C,UAAA;AAAA,EAAC,CAAA,CAACF,KAEC,gBAAAC,EAAAE,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,UAAS;AAAA,QACT,OAAM;AAAA,QACN,OAAO;AAAA,QACP,SAASN;AAAA,MAAA;AAAA,IACX;AAAA,IACA,gBAAAK,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EAAA,GACzB;AAAA,EAGF,gBAAAF;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAS;AAAA,MACT,OAAM;AAAA,MACN,OAAO;AAAA,MACP,SAASP;AAAA,IAAA;AAAA,EACX;AACF,EAAA,CAAA,GAIWS,IAAAC,EAAKX,CAAqB;"}
package/dist/index.d.ts CHANGED
@@ -3011,6 +3011,7 @@ declare interface ISingleFieldFormProps {
3011
3011
  declare interface ISocialAccountNotFoundProps {
3012
3012
  onRetryLogin: () => void;
3013
3013
  onGoToSignup?: () => void;
3014
+ showSignupButton?: boolean;
3014
3015
  }
3015
3016
 
3016
3017
  declare interface ISocialLoginMethodsProps {
@@ -4488,7 +4489,7 @@ export declare const SkipColoredIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4488
4489
 
4489
4490
  export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4490
4491
 
4491
- export declare const SocialAccountNotFound: MemoExoticComponent<({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element>;
4492
+ export declare const SocialAccountNotFound: MemoExoticComponent<({ onRetryLogin, onGoToSignup, showSignupButton, }: ISocialAccountNotFoundProps) => JSX_2.Element>;
4492
4493
 
4493
4494
  export declare const SocialLoginMethods: NamedExoticComponent<ISocialLoginMethodsProps>;
4494
4495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.1.2-j1",
3
+ "version": "3.1.2-j3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"