@cuemath/leap 2.9.5-j13 → 2.9.5-j14
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/features/auth/forgot-password/otp-form/otp-form.js +31 -34
- package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -1
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +80 -77
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -1
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +61 -0
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -0
- package/dist/features/auth/signup/custom-input/phone-input/phone-input.js +41 -38
- package/dist/features/auth/signup/custom-input/phone-input/phone-input.js.map +1 -1
- package/dist/features/ui/context-menu/context-menu.js +29 -21
- package/dist/features/ui/context-menu/context-menu.js.map +1 -1
- package/dist/features/ui/lottie-animation/helper.js +5 -6
- package/dist/features/ui/lottie-animation/helper.js.map +1 -1
- package/dist/index.d.ts +27 -18
- package/dist/index.js +220 -222
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/features/auth/forgot-password/identifier-form/identifier-form.js +0 -59
- package/dist/features/auth/forgot-password/identifier-form/identifier-form.js.map +0 -1
- package/dist/features/auth/forgot-password/username-form/username-form.js +0 -60
- package/dist/features/auth/forgot-password/username-form/username-form.js.map +0 -1
@@ -1,59 +0,0 @@
|
|
1
|
-
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
2
|
-
import l from "../../../ui/buttons/button/button.js";
|
3
|
-
import u from "../../../ui/inputs/text-input/text-input.js";
|
4
|
-
import f from "../../../ui/layout/flex-view.js";
|
5
|
-
import p from "../../comps/input-status-icon/input-status-icon.js";
|
6
|
-
import { FormWrapper as c } from "../forgot-password-styled.js";
|
7
|
-
const g = ({
|
8
|
-
onSubmit: i,
|
9
|
-
onChange: t,
|
10
|
-
formData: o,
|
11
|
-
errors: r,
|
12
|
-
isSubmitDisabled: n,
|
13
|
-
isProcessing: a,
|
14
|
-
isValid: s = !1
|
15
|
-
}) => /* @__PURE__ */ e(
|
16
|
-
f,
|
17
|
-
{
|
18
|
-
$gutterX: 2,
|
19
|
-
$gapX: 1.5,
|
20
|
-
$alignItems: "center",
|
21
|
-
$justifyContent: "center",
|
22
|
-
$background: "BLACK_2",
|
23
|
-
$height: 308,
|
24
|
-
children: /* @__PURE__ */ m(c, { onSubmit: i, children: [
|
25
|
-
/* @__PURE__ */ e(
|
26
|
-
u,
|
27
|
-
{
|
28
|
-
renderAs: r.identifier ? "error" : "primary",
|
29
|
-
autoFocus: !0,
|
30
|
-
label: "Email or Phone number",
|
31
|
-
value: o.identifier,
|
32
|
-
onChange: (d) => t("identifier", d.target.value),
|
33
|
-
width: 330,
|
34
|
-
required: !0,
|
35
|
-
shape: "borderLess",
|
36
|
-
colorTheme: "dark",
|
37
|
-
errorMessage: r.identifier,
|
38
|
-
siblingElement: /* @__PURE__ */ e(p, { isError: !!r.identifier, isValid: s, isLoading: !1 })
|
39
|
-
}
|
40
|
-
),
|
41
|
-
/* @__PURE__ */ e(
|
42
|
-
l,
|
43
|
-
{
|
44
|
-
size: "small",
|
45
|
-
renderAs: "secondary",
|
46
|
-
type: "submit",
|
47
|
-
label: "Get Verification Code",
|
48
|
-
width: 336,
|
49
|
-
busy: a,
|
50
|
-
disabled: n
|
51
|
-
}
|
52
|
-
)
|
53
|
-
] })
|
54
|
-
}
|
55
|
-
), F = g;
|
56
|
-
export {
|
57
|
-
F as default
|
58
|
-
};
|
59
|
-
//# sourceMappingURL=identifier-form.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"identifier-form.js","sources":["../../../../../src/features/auth/forgot-password/identifier-form/identifier-form.tsx"],"sourcesContent":["import type { IFormProps } from '../forgot-password-types';\nimport type { ChangeEvent } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst IdentifierForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IFormProps) => {\n return (\n <FlexView\n $gutterX={2}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <TextInput\n renderAs={errors.identifier ? 'error' : 'primary'}\n autoFocus\n label=\"Email or Phone number\"\n value={formData.identifier}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('identifier', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.identifier}\n siblingElement={\n <InputStatusIcon isError={!!errors.identifier} isValid={isValid} isLoading={false} />\n }\n />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n type=\"submit\"\n label=\"Get Verification Code\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default IdentifierForm;\n"],"names":["IdentifierForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","e","InputStatusIcon","Button","IdentifierForm$1"],"mappings":";;;;;;AASA,MAAMA,IAAiB,CAAC;AAAA,EACtB,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAEI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,aAAY;AAAA,IACZ,SAAS;AAAA,IAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAV,GAClB,UAAA;AAAA,MAAA,gBAAAO;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAUR,EAAO,aAAa,UAAU;AAAA,UACxC,WAAS;AAAA,UACT,OAAM;AAAA,UACN,OAAOD,EAAS;AAAA,UAChB,UAAU,CAACU,MAAqCX,EAAS,cAAcW,EAAE,OAAO,KAAK;AAAA,UACrF,OAAO;AAAA,UACP,UAAQ;AAAA,UACR,OAAM;AAAA,UACN,YAAW;AAAA,UACX,cAAcT,EAAO;AAAA,UACrB,gBACG,gBAAAI,EAAAM,GAAA,EAAgB,SAAS,CAAC,CAACV,EAAO,YAAY,SAAAG,GAAkB,WAAW,GAAO,CAAA;AAAA,QAAA;AAAA,MAEvF;AAAA,MACA,gBAAAC;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,MAAK;AAAA,UACL,OAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAMT;AAAA,UACN,UAAUD;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA,GACF;AAAA,EAAA;AAAA,GAKNW,IAAehB;"}
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
2
|
-
import l from "../../../ui/buttons/button/button.js";
|
3
|
-
import d from "../../../ui/inputs/text-input/text-input.js";
|
4
|
-
import p from "../../../ui/layout/flex-view.js";
|
5
|
-
import f from "../../comps/input-status-icon/input-status-icon.js";
|
6
|
-
import { FormWrapper as c } from "../forgot-password-styled.js";
|
7
|
-
const g = ({
|
8
|
-
onSubmit: t,
|
9
|
-
onChange: a,
|
10
|
-
formData: s,
|
11
|
-
errors: r,
|
12
|
-
isSubmitDisabled: o,
|
13
|
-
isProcessing: n,
|
14
|
-
isValid: m = !1
|
15
|
-
}) => /* @__PURE__ */ e(
|
16
|
-
p,
|
17
|
-
{
|
18
|
-
$gutterX: 2,
|
19
|
-
$gapX: 1.5,
|
20
|
-
$alignItems: "center",
|
21
|
-
$justifyContent: "flex-start",
|
22
|
-
$background: "BLACK_2",
|
23
|
-
$height: 308,
|
24
|
-
children: /* @__PURE__ */ u(c, { onSubmit: t, children: [
|
25
|
-
/* @__PURE__ */ e(
|
26
|
-
d,
|
27
|
-
{
|
28
|
-
renderAs: r.username ? "error" : "primary",
|
29
|
-
autoFocus: !0,
|
30
|
-
autoComplete: "username",
|
31
|
-
label: "Username",
|
32
|
-
value: s.username,
|
33
|
-
onChange: (i) => a("username", i.target.value),
|
34
|
-
width: 330,
|
35
|
-
required: !0,
|
36
|
-
shape: "borderLess",
|
37
|
-
colorTheme: "dark",
|
38
|
-
errorMessage: r.username,
|
39
|
-
siblingElement: /* @__PURE__ */ e(f, { isError: !!r.username, isValid: m, isLoading: !1 })
|
40
|
-
}
|
41
|
-
),
|
42
|
-
/* @__PURE__ */ e(
|
43
|
-
l,
|
44
|
-
{
|
45
|
-
size: "small",
|
46
|
-
renderAs: "secondary",
|
47
|
-
type: "submit",
|
48
|
-
label: "Get Verification Code",
|
49
|
-
width: 336,
|
50
|
-
busy: n,
|
51
|
-
disabled: o
|
52
|
-
}
|
53
|
-
)
|
54
|
-
] })
|
55
|
-
}
|
56
|
-
), F = g;
|
57
|
-
export {
|
58
|
-
F as default
|
59
|
-
};
|
60
|
-
//# sourceMappingURL=username-form.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"username-form.js","sources":["../../../../../src/features/auth/forgot-password/username-form/username-form.tsx"],"sourcesContent":["import type { IFormProps } from '../forgot-password-types';\nimport type { ChangeEvent } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst UsernameForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IFormProps) => {\n return (\n <FlexView\n $gutterX={2}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"flex-start\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <TextInput\n renderAs={errors.username ? 'error' : 'primary'}\n autoFocus\n autoComplete=\"username\"\n label=\"Username\"\n value={formData.username}\n onChange={(e: ChangeEvent<HTMLInputElement>) => onChange('username', e.target.value)}\n width={330}\n required\n shape=\"borderLess\"\n colorTheme=\"dark\"\n errorMessage={errors.username}\n siblingElement={\n <InputStatusIcon isError={!!errors.username} isValid={isValid} isLoading={false} />\n }\n />\n <Button\n size=\"small\"\n renderAs=\"secondary\"\n type=\"submit\"\n label=\"Get Verification Code\"\n width={336}\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default UsernameForm;\n"],"names":["UsernameForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","e","InputStatusIcon","Button","UsernameForm$1"],"mappings":";;;;;;AASA,MAAMA,IAAe,CAAC;AAAA,EACpB,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAEI,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,UAAU;AAAA,IACV,OAAO;AAAA,IACP,aAAY;AAAA,IACZ,iBAAgB;AAAA,IAChB,aAAY;AAAA,IACZ,SAAS;AAAA,IAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAV,GAClB,UAAA;AAAA,MAAA,gBAAAO;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,UAAUR,EAAO,WAAW,UAAU;AAAA,UACtC,WAAS;AAAA,UACT,cAAa;AAAA,UACb,OAAM;AAAA,UACN,OAAOD,EAAS;AAAA,UAChB,UAAU,CAACU,MAAqCX,EAAS,YAAYW,EAAE,OAAO,KAAK;AAAA,UACnF,OAAO;AAAA,UACP,UAAQ;AAAA,UACR,OAAM;AAAA,UACN,YAAW;AAAA,UACX,cAAcT,EAAO;AAAA,UACrB,gBACG,gBAAAI,EAAAM,GAAA,EAAgB,SAAS,CAAC,CAACV,EAAO,UAAU,SAAAG,GAAkB,WAAW,GAAO,CAAA;AAAA,QAAA;AAAA,MAErF;AAAA,MACA,gBAAAC;AAAA,QAACO;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,UAAS;AAAA,UACT,MAAK;AAAA,UACL,OAAM;AAAA,UACN,OAAO;AAAA,UACP,MAAMT;AAAA,UACN,UAAUD;AAAA,QAAA;AAAA,MACZ;AAAA,IAAA,GACF;AAAA,EAAA;AAAA,GAKNW,IAAehB;"}
|