@cuemath/leap 3.0.28 → 3.0.30-j
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/comps/auth-page-layout/auth-page-layout-styled.js +21 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styled.js.map +1 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +8 -9
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +1 -1
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +15 -3
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
- package/dist/features/auth/forgot-password/otp-form/otp-form.js +29 -29
- 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 +2 -4
- 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 +13 -15
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -1
- package/dist/features/auth/login/login-styled.js +13 -0
- package/dist/features/auth/login/login-styled.js.map +1 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js +9 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js.map +1 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods.js +43 -34
- package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -1
- package/dist/features/auth/login/username-password-form/username-password-form.js +22 -21
- package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -1
- package/dist/features/hooks/use-device-type.js +25 -0
- package/dist/features/hooks/use-device-type.js.map +1 -0
- package/dist/features/ui/buttons/button/button-styled.js +29 -29
- package/dist/features/ui/buttons/button/button-styled.js.map +1 -1
- package/dist/features/ui/error/error.js +20 -20
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/utils/media.js +16 -0
- package/dist/features/utils/media.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +57 -58
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +91 -97
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js.map +1 -1
- package/dist/index.d.ts +19 -4
- package/dist/index.js +53 -49
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
@@ -0,0 +1,21 @@
|
|
1
|
+
import o from "styled-components";
|
2
|
+
import n from "../../../ui/layout/flex-view.js";
|
3
|
+
import { media as t } from "../../../utils/media.js";
|
4
|
+
const d = o(n)`
|
5
|
+
min-height: 100vh;
|
6
|
+
`, m = o(n)`
|
7
|
+
overflow: hidden;
|
8
|
+
${t.down919} {
|
9
|
+
width: 100%;
|
10
|
+
}
|
11
|
+
`, p = o(n)`
|
12
|
+
${t.down919} {
|
13
|
+
display: none;
|
14
|
+
}
|
15
|
+
`;
|
16
|
+
export {
|
17
|
+
d as Container,
|
18
|
+
m as ContentWrapper,
|
19
|
+
p as RightPanel
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=auth-page-layout-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auth-page-layout-styled.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { media } from '../../../utils/media';\n\nexport const Container = styled(FlexView)`\n min-height: 100vh;\n`;\n\nexport const ContentWrapper = styled(FlexView)`\n overflow: hidden;\n ${media.down919} {\n width: 100%;\n }\n`;\n\nexport const RightPanel = styled(FlexView)`\n ${media.down919} {\n display: none;\n }\n`;\n"],"names":["Container","styled","FlexView","ContentWrapper","media","RightPanel"],"mappings":";;;AAKa,MAAAA,IAAYC,EAAOC,CAAQ;AAAA;AAAA,GAI3BC,IAAiBF,EAAOC,CAAQ;AAAA;AAAA,IAEzCE,EAAM,OAAO;AAAA;AAAA;AAAA,GAKJC,IAAaJ,EAAOC,CAAQ;AAAA,IACrCE,EAAM,OAAO;AAAA;AAAA;AAAA;"}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { jsxs as n, jsx as
|
2
|
-
import { memo as
|
3
|
-
import
|
4
|
-
|
5
|
-
|
6
|
-
/* @__PURE__ */
|
7
|
-
|
8
|
-
] }), f = i(h);
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { memo as a } from "react";
|
3
|
+
import { Container as i, ContentWrapper as h, RightPanel as d } from "./auth-page-layout-styled.js";
|
4
|
+
const m = ({ leftBlock: e, rightBlock: t, isFullWidth: r }) => /* @__PURE__ */ n(i, { $width: "100%", $height: "100%", $flexDirection: "row", children: [
|
5
|
+
/* @__PURE__ */ o(h, { $width: r ? "100%" : "50%", $background: "BLACK_1", children: e }),
|
6
|
+
!r && t && /* @__PURE__ */ o(d, { $width: "50%", $background: "BLACK_2", children: t })
|
7
|
+
] }), p = a(m);
|
9
8
|
export {
|
10
|
-
|
9
|
+
p as default
|
11
10
|
};
|
12
11
|
//# sourceMappingURL=auth-page-layout.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-page-layout.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout.tsx"],"sourcesContent":["import type { IAuthPageLayoutProps } from './auth-page-layout-types';\n\nimport { memo, type FC } from 'react';\n\nimport
|
1
|
+
{"version":3,"file":"auth-page-layout.js","sources":["../../../../../src/features/auth/comps/auth-page-layout/auth-page-layout.tsx"],"sourcesContent":["import type { IAuthPageLayoutProps } from './auth-page-layout-types';\n\nimport { memo, type FC } from 'react';\n\nimport * as Styled from './auth-page-layout-styled';\n\nconst AuthPageLayout: FC<IAuthPageLayoutProps> = ({ leftBlock, rightBlock, isFullWidth }) => {\n return (\n <Styled.Container $width=\"100%\" $height=\"100%\" $flexDirection=\"row\">\n <Styled.ContentWrapper $width={isFullWidth ? '100%' : '50%'} $background=\"BLACK_1\">\n {leftBlock}\n </Styled.ContentWrapper>\n {!isFullWidth && rightBlock && (\n <Styled.RightPanel $width=\"50%\" $background=\"BLACK_2\">\n {rightBlock}\n </Styled.RightPanel>\n )}\n </Styled.Container>\n );\n};\n\nexport default memo(AuthPageLayout);\n"],"names":["AuthPageLayout","leftBlock","rightBlock","isFullWidth","jsxs","Styled.Container","jsx","Styled.ContentWrapper","Styled.RightPanel","authPageLayout","memo"],"mappings":";;;AAMA,MAAMA,IAA2C,CAAC,EAAE,WAAAC,GAAW,YAAAC,GAAY,aAAAC,QAEvE,gBAAAC,EAACC,GAAA,EAAiB,QAAO,QAAO,SAAQ,QAAO,gBAAe,OAC5D,UAAA;AAAA,EAAC,gBAAAC,EAAAC,GAAA,EAAsB,QAAQJ,IAAc,SAAS,OAAO,aAAY,WACtE,UACHF,EAAA,CAAA;AAAA,EACC,CAACE,KAAeD,KACd,gBAAAI,EAAAE,GAAA,EAAkB,QAAO,OAAM,aAAY,WACzC,UACHN,EAAA,CAAA;AAEJ,EAAA,CAAA,GAIWO,IAAAC,EAAKV,CAAc;"}
|
@@ -5,7 +5,7 @@ import l from "../../../ui/image/image.js";
|
|
5
5
|
import c from "../../../ui/layout/flex-view.js";
|
6
6
|
import r from "../../../ui/separator/separator.js";
|
7
7
|
import t from "../../../ui/text/text.js";
|
8
|
-
const h = ({ title: o, description: i }) => /* @__PURE__ */ a(c, { $flex: 1, $alignItems: "center", $justifyContent: "center", $gutterX:
|
8
|
+
const h = ({ title: o, description: i }) => /* @__PURE__ */ a(c, { $flex: 1, $alignItems: "center", $justifyContent: "center", $gutterX: 2, children: [
|
9
9
|
/* @__PURE__ */ e(l, { src: m.CIRCLE_CUEMATH_LOGO_WHITE, alt: "Cuemath Logo", withLoader: !1 }),
|
10
10
|
/* @__PURE__ */ e(r, { heightX: 1.5 }),
|
11
11
|
/* @__PURE__ */ e(t, { $whiteSpace: "pre-line", $renderAs: "ah2", $color: "WHITE", $align: "center", children: o }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth-static-panel.js","sources":["../../../../../src/features/auth/comps/auth-static-panel/auth-static-panel.tsx"],"sourcesContent":["import type { IAuthStaticPanelProps } from './auth-static-panel-types';\n\nimport { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\n\nconst AuthStaticPanel: FC<IAuthStaticPanelProps> = ({ title, description }) => {\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\" $gutterX={
|
1
|
+
{"version":3,"file":"auth-static-panel.js","sources":["../../../../../src/features/auth/comps/auth-static-panel/auth-static-panel.tsx"],"sourcesContent":["import type { IAuthStaticPanelProps } from './auth-static-panel-types';\n\nimport { memo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport Image from '../../../ui/image/image';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\n\nconst AuthStaticPanel: FC<IAuthStaticPanelProps> = ({ title, description }) => {\n return (\n <FlexView $flex={1} $alignItems=\"center\" $justifyContent=\"center\" $gutterX={2}>\n <Image src={ILLUSTRATIONS.CIRCLE_CUEMATH_LOGO_WHITE} alt=\"Cuemath Logo\" withLoader={false} />\n <Separator heightX={1.5} />\n <Text $whiteSpace=\"pre-line\" $renderAs=\"ah2\" $color=\"WHITE\" $align=\"center\">\n {title}\n </Text>\n <Separator heightX={1} />\n <Text $whiteSpace=\"pre-line\" $renderAs=\"ab1\" $color=\"WHITE_T_60\" $align=\"center\">\n {description}\n </Text>\n </FlexView>\n );\n};\n\nexport default memo(AuthStaticPanel);\n"],"names":["AuthStaticPanel","title","description","jsxs","FlexView","jsx","Image","ILLUSTRATIONS","Separator","Text","authStaticPanel","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAA6C,CAAC,EAAE,OAAAC,GAAO,aAAAC,QAEzD,gBAAAC,EAACC,KAAS,OAAO,GAAG,aAAY,UAAS,iBAAgB,UAAS,UAAU,GAC1E,UAAA;AAAA,EAAA,gBAAAC,EAACC,KAAM,KAAKC,EAAc,2BAA2B,KAAI,gBAAe,YAAY,IAAO;AAAA,EAC3F,gBAAAF,EAACG,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,EACzB,gBAAAH,EAACI,GAAK,EAAA,aAAY,YAAW,WAAU,OAAM,QAAO,SAAQ,QAAO,UAChE,UACHR,EAAA,CAAA;AAAA,EACA,gBAAAI,EAACG,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,EACvB,gBAAAH,EAACI,GAAK,EAAA,aAAY,YAAW,WAAU,OAAM,QAAO,cAAa,QAAO,UACrE,UACHP,EAAA,CAAA;AACF,EAAA,CAAA,GAIWQ,IAAAC,EAAKX,CAAe;"}
|
@@ -1,12 +1,24 @@
|
|
1
|
-
import { styled as
|
2
|
-
|
1
|
+
import { styled as t } from "styled-components";
|
2
|
+
import o from "../../ui/buttons/button/button.js";
|
3
|
+
import p from "../../ui/layout/flex-view.js";
|
4
|
+
const m = t.form`
|
3
5
|
display: flex;
|
4
6
|
flex: 1;
|
5
7
|
margin-top: 8px;
|
6
8
|
flex-direction: column;
|
7
9
|
justify-content: space-between;
|
10
|
+
max-width: 336px;
|
11
|
+
width: 100%;
|
12
|
+
`, n = t(p)`
|
13
|
+
margin-top: 8px;
|
14
|
+
max-width: 336px;
|
15
|
+
width: 100%;
|
16
|
+
`, x = t(o)`
|
17
|
+
width: 100%;
|
8
18
|
`;
|
9
19
|
export {
|
10
|
-
|
20
|
+
x as ButtonWrapper,
|
21
|
+
m as FormWrapper,
|
22
|
+
n as Wrapper
|
11
23
|
};
|
12
24
|
//# sourceMappingURL=forgot-password-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"forgot-password-styled.js","sources":["../../../../src/features/auth/forgot-password/forgot-password-styled.tsx"],"sourcesContent":["import { styled } from 'styled-components';\n\nexport const FormWrapper = styled.form`\n display: flex;\n flex: 1;\n margin-top: 8px;\n flex-direction: column;\n justify-content: space-between;\n`;\n"],"names":["FormWrapper","styled"],"mappings":"
|
1
|
+
{"version":3,"file":"forgot-password-styled.js","sources":["../../../../src/features/auth/forgot-password/forgot-password-styled.tsx"],"sourcesContent":["import { styled } from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\nimport FlexView from '../../ui/layout/flex-view';\n\nexport const FormWrapper = styled.form`\n display: flex;\n flex: 1;\n margin-top: 8px;\n flex-direction: column;\n justify-content: space-between;\n max-width: 336px;\n width: 100%;\n`;\n\nexport const Wrapper = styled(FlexView)`\n margin-top: 8px;\n max-width: 336px;\n width: 100%;\n`;\n\nexport const ButtonWrapper = styled(Button)`\n width: 100%;\n`;\n"],"names":["FormWrapper","styled","Wrapper","FlexView","ButtonWrapper","Button"],"mappings":";;;AAKO,MAAMA,IAAcC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUrBC,IAAUD,EAAOE,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMzBC,IAAgBH,EAAOI,CAAM;AAAA;AAAA;"}
|
@@ -1,66 +1,66 @@
|
|
1
|
-
import { jsx as e, jsxs as
|
2
|
-
import { memo as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
|
8
|
-
|
1
|
+
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
2
|
+
import { memo as d, useCallback as c } from "react";
|
3
|
+
import l from "../../../ui/inputs/text-input/text-input.js";
|
4
|
+
import f from "../../../ui/layout/flex-view.js";
|
5
|
+
import b from "../../comps/input-status-icon/input-status-icon.js";
|
6
|
+
import g from "../../comps/resend-otp/resend-otp.js";
|
7
|
+
import { Wrapper as h } from "../forgot-password-styled.js";
|
8
|
+
const $ = ({
|
9
|
+
onSubmit: n,
|
9
10
|
onChange: r,
|
10
|
-
value:
|
11
|
+
value: a,
|
11
12
|
error: t,
|
12
|
-
isProcessing:
|
13
|
+
isProcessing: o,
|
13
14
|
isValid: s = !1,
|
14
|
-
helperText:
|
15
|
+
helperText: i
|
15
16
|
}) => {
|
16
|
-
const
|
17
|
-
(
|
18
|
-
r("otp",
|
17
|
+
const m = c(
|
18
|
+
(u) => {
|
19
|
+
r("otp", u.target.value);
|
19
20
|
},
|
20
21
|
[r]
|
21
22
|
);
|
22
23
|
return /* @__PURE__ */ e(
|
23
|
-
|
24
|
+
f,
|
24
25
|
{
|
25
|
-
$gutterX:
|
26
|
+
$gutterX: 1.5,
|
26
27
|
$gapX: 1.5,
|
27
28
|
$alignItems: "center",
|
28
29
|
$justifyContent: "center",
|
29
30
|
$background: "BLACK_2",
|
30
31
|
$height: 308,
|
31
|
-
children: /* @__PURE__ */
|
32
|
+
children: /* @__PURE__ */ p(h, { $flex: 1, $justifyContent: "space-between", children: [
|
32
33
|
/* @__PURE__ */ e(
|
33
|
-
|
34
|
+
l,
|
34
35
|
{
|
35
36
|
renderAs: t ? "error-dark" : s ? "success-dark" : "primary-dark",
|
36
37
|
autoFocus: !0,
|
37
38
|
label: "Verification code",
|
38
|
-
value:
|
39
|
-
onChange:
|
40
|
-
width: 330,
|
39
|
+
value: a,
|
40
|
+
onChange: m,
|
41
41
|
required: !0,
|
42
42
|
shape: "borderLess",
|
43
43
|
type: "number",
|
44
44
|
errorMessage: t,
|
45
|
-
siblingElement: /* @__PURE__ */ e(
|
46
|
-
helperText:
|
45
|
+
siblingElement: /* @__PURE__ */ e(b, { isError: !!t, isValid: s, isLoading: o }),
|
46
|
+
helperText: i
|
47
47
|
}
|
48
48
|
),
|
49
49
|
/* @__PURE__ */ e(
|
50
|
-
|
50
|
+
g,
|
51
51
|
{
|
52
52
|
renderAs: "submit",
|
53
53
|
timerSeconds: 15,
|
54
|
-
onResendOTP:
|
55
|
-
|
56
|
-
|
54
|
+
onResendOTP: n,
|
55
|
+
disabled: o,
|
56
|
+
width: "100%"
|
57
57
|
}
|
58
58
|
)
|
59
59
|
] })
|
60
60
|
}
|
61
61
|
);
|
62
|
-
},
|
62
|
+
}, T = d($);
|
63
63
|
export {
|
64
|
-
|
64
|
+
T as default
|
65
65
|
};
|
66
66
|
//# sourceMappingURL=otp-form.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"otp-form.js","sources":["../../../../../src/features/auth/forgot-password/otp-form/otp-form.tsx"],"sourcesContent":["import type { ISingleFieldFormProps } from '../forgot-password-types';\n\nimport { type ChangeEvent, memo, useCallback } from 'react';\n\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 ResendOtp from '../../comps/resend-otp/resend-otp';\n\nconst OTPForm = ({\n onSubmit,\n onChange,\n value,\n error,\n isProcessing,\n isValid = false,\n helperText,\n}: ISingleFieldFormProps) => {\n const handleOTPChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('otp', e.target.value);\n },\n [onChange],\n );\n\n const statusVariant = isValid ? 'success-dark' : 'primary-dark';\n\n return (\n <FlexView\n $gutterX={
|
1
|
+
{"version":3,"file":"otp-form.js","sources":["../../../../../src/features/auth/forgot-password/otp-form/otp-form.tsx"],"sourcesContent":["import type { ISingleFieldFormProps } from '../forgot-password-types';\n\nimport { type ChangeEvent, memo, useCallback } from 'react';\n\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 ResendOtp from '../../comps/resend-otp/resend-otp';\nimport * as Styled from '../forgot-password-styled';\n\nconst OTPForm = ({\n onSubmit,\n onChange,\n value,\n error,\n isProcessing,\n isValid = false,\n helperText,\n}: ISingleFieldFormProps) => {\n const handleOTPChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('otp', e.target.value);\n },\n [onChange],\n );\n\n const statusVariant = isValid ? 'success-dark' : 'primary-dark';\n\n return (\n <FlexView\n $gutterX={1.5}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.Wrapper $flex={1} $justifyContent=\"space-between\">\n <TextInput\n renderAs={error ? 'error-dark' : statusVariant}\n autoFocus\n label=\"Verification code\"\n value={value}\n onChange={handleOTPChange}\n required\n shape=\"borderLess\"\n type=\"number\"\n errorMessage={error}\n siblingElement={\n <InputStatusIcon isError={!!error} isValid={isValid} isLoading={isProcessing} />\n }\n helperText={helperText}\n />\n <ResendOtp\n renderAs=\"submit\"\n timerSeconds={15}\n onResendOTP={onSubmit}\n disabled={isProcessing}\n width=\"100%\"\n />\n </Styled.Wrapper>\n </FlexView>\n );\n};\n\nexport default memo(OTPForm);\n"],"names":["OTPForm","onSubmit","onChange","value","error","isProcessing","isValid","helperText","handleOTPChange","useCallback","e","jsx","FlexView","Styled.Wrapper","TextInput","InputStatusIcon","ResendOtp","otpForm","memo"],"mappings":";;;;;;;AAUA,MAAMA,IAAU,CAAC;AAAA,EACf,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,YAAAC;AACF,MAA6B;AAC3B,QAAMC,IAAkBC;AAAA,IACtB,CAACC,MAAqC;AAC3B,MAAAR,EAAA,OAAOQ,EAAE,OAAO,KAAK;AAAA,IAChC;AAAA,IACA,CAACR,CAAQ;AAAA,EAAA;AAMT,SAAA,gBAAAS;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,4BAACC,GAAA,EAAe,OAAO,GAAG,iBAAgB,iBACxC,UAAA;AAAA,QAAA,gBAAAF;AAAA,UAACG;AAAA,UAAA;AAAA,YACC,UAAUV,IAAQ,eAbJE,IAAU,iBAAiB;AAAA,YAczC,WAAS;AAAA,YACT,OAAM;AAAA,YACN,OAAAH;AAAA,YACA,UAAUK;AAAA,YACV,UAAQ;AAAA,YACR,OAAM;AAAA,YACN,MAAK;AAAA,YACL,cAAcJ;AAAA,YACd,kCACGW,GAAgB,EAAA,SAAS,CAAC,CAACX,GAAO,SAAAE,GAAkB,WAAWD,GAAc;AAAA,YAEhF,YAAAE;AAAA,UAAA;AAAA,QACF;AAAA,QACA,gBAAAI;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,cAAc;AAAA,YACd,aAAaf;AAAA,YACb,UAAUI;AAAA,YACV,OAAM;AAAA,UAAA;AAAA,QACR;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeY,IAAAC,EAAKlB,CAAO;"}
|
@@ -29,7 +29,7 @@ const y = ({
|
|
29
29
|
return /* @__PURE__ */ r(
|
30
30
|
m,
|
31
31
|
{
|
32
|
-
$gutterX:
|
32
|
+
$gutterX: 1.5,
|
33
33
|
$gapX: 1.5,
|
34
34
|
$alignItems: "center",
|
35
35
|
$justifyContent: "center",
|
@@ -46,7 +46,6 @@ const y = ({
|
|
46
46
|
label: "New Password",
|
47
47
|
value: o.password,
|
48
48
|
onChange: f,
|
49
|
-
width: 330,
|
50
49
|
autoFocus: !0,
|
51
50
|
required: !0,
|
52
51
|
shape: "borderLess",
|
@@ -64,7 +63,6 @@ const y = ({
|
|
64
63
|
label: "Re-enter Password",
|
65
64
|
value: o.confirmPassword,
|
66
65
|
onChange: g,
|
67
|
-
width: 330,
|
68
66
|
required: !0,
|
69
67
|
shape: "borderLess",
|
70
68
|
errorMessage: s.confirmPassword,
|
@@ -86,7 +84,7 @@ const y = ({
|
|
86
84
|
renderAs: "secondary-dark",
|
87
85
|
type: "submit",
|
88
86
|
label: "Continue",
|
89
|
-
width:
|
87
|
+
width: "100%",
|
90
88
|
busy: u,
|
91
89
|
disabled: w
|
92
90
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reset-password-form.js","sources":["../../../../../src/features/auth/forgot-password/reset-password-form/reset-password-form.tsx"],"sourcesContent":["import type { IResetPasswordFormProps } from './reset-password-form-types';\n\nimport { type ChangeEvent, memo, useCallback } 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 Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst ResetPasswordForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IResetPasswordFormProps) => {\n const isConfirmPasswordValid = isValid && formData.password === formData.confirmPassword;\n\n const handlePasswordChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('password', e.target.value);\n },\n [onChange],\n );\n\n const handleConfirmPasswordChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('confirmPassword', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={
|
1
|
+
{"version":3,"file":"reset-password-form.js","sources":["../../../../../src/features/auth/forgot-password/reset-password-form/reset-password-form.tsx"],"sourcesContent":["import type { IResetPasswordFormProps } from './reset-password-form-types';\n\nimport { type ChangeEvent, memo, useCallback } 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 Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport * as Styled from '../forgot-password-styled';\n\nconst ResetPasswordForm = ({\n onSubmit,\n onChange,\n formData,\n errors,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n}: IResetPasswordFormProps) => {\n const isConfirmPasswordValid = isValid && formData.password === formData.confirmPassword;\n\n const handlePasswordChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('password', e.target.value);\n },\n [onChange],\n );\n\n const handleConfirmPasswordChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('confirmPassword', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={1.5}\n $gapX={1.5}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"BLACK_2\"\n $height={308}\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView>\n <TextInput\n type={'password'}\n renderAs={errors.password ? 'error-dark' : 'primary-dark'}\n autoComplete=\"new-password\"\n label=\"New Password\"\n value={formData.password}\n onChange={handlePasswordChange}\n autoFocus\n required\n shape=\"borderLess\"\n errorMessage={errors.password}\n siblingElement={\n <InputStatusIcon isError={!!errors.password} isValid={isValid} isLoading={false} />\n }\n />\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.confirmPassword ? 'error-dark' : 'primary-dark'}\n autoComplete=\"new-password\"\n label=\"Re-enter Password\"\n value={formData.confirmPassword}\n onChange={handleConfirmPasswordChange}\n required\n shape=\"borderLess\"\n errorMessage={errors.confirmPassword}\n siblingElement={\n <InputStatusIcon\n isError={!!errors.confirmPassword}\n isValid={isConfirmPasswordValid}\n isLoading={false}\n />\n }\n />\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label=\"Continue\"\n width=\"100%\"\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default memo(ResetPasswordForm);\n"],"names":["ResetPasswordForm","onSubmit","onChange","formData","errors","isSubmitDisabled","isProcessing","isValid","isConfirmPasswordValid","handlePasswordChange","useCallback","e","handleConfirmPasswordChange","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","InputStatusIcon","Separator","Button","resetPasswordForm","memo"],"mappings":";;;;;;;;AAWA,MAAMA,IAAoB,CAAC;AAAA,EACzB,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AACZ,MAA+B;AAC7B,QAAMC,IAAyBD,KAAWJ,EAAS,aAAaA,EAAS,iBAEnEM,IAAuBC;AAAA,IAC3B,CAACC,MAAqC;AAC3B,MAAAT,EAAA,YAAYS,EAAE,OAAO,KAAK;AAAA,IACrC;AAAA,IACA,CAACT,CAAQ;AAAA,EAAA,GAGLU,IAA8BF;AAAA,IAClC,CAACC,MAAqC;AAC3B,MAAAT,EAAA,mBAAmBS,EAAE,OAAO,KAAK;AAAA,IAC5C;AAAA,IACA,CAACT,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAW;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAf,GAClB,UAAA;AAAA,QAAA,gBAAAc,EAACD,GACC,EAAA,UAAA;AAAA,UAAA,gBAAAD;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,MAAM;AAAA,cACN,UAAUb,EAAO,WAAW,eAAe;AAAA,cAC3C,cAAa;AAAA,cACb,OAAM;AAAA,cACN,OAAOD,EAAS;AAAA,cAChB,UAAUM;AAAA,cACV,WAAS;AAAA,cACT,UAAQ;AAAA,cACR,OAAM;AAAA,cACN,cAAcL,EAAO;AAAA,cACrB,gBACG,gBAAAS,EAAAK,GAAA,EAAgB,SAAS,CAAC,CAACd,EAAO,UAAU,SAAAG,GAAkB,WAAW,GAAO,CAAA;AAAA,YAAA;AAAA,UAErF;AAAA,UACA,gBAAAM,EAACM,GAAU,EAAA,QAAQ,GAAI,CAAA;AAAA,UACvB,gBAAAN;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,UAAUb,EAAO,kBAAkB,eAAe;AAAA,cAClD,cAAa;AAAA,cACb,OAAM;AAAA,cACN,OAAOD,EAAS;AAAA,cAChB,UAAUS;AAAA,cACV,UAAQ;AAAA,cACR,OAAM;AAAA,cACN,cAAcR,EAAO;AAAA,cACrB,gBACE,gBAAAS;AAAA,gBAACK;AAAA,gBAAA;AAAA,kBACC,SAAS,CAAC,CAACd,EAAO;AAAA,kBAClB,SAASI;AAAA,kBACT,WAAW;AAAA,gBAAA;AAAA,cACb;AAAA,YAAA;AAAA,UAEJ;AAAA,QAAA,GACF;AAAA,QACA,gBAAAK;AAAA,UAACO;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAM;AAAA,YACN,OAAM;AAAA,YACN,MAAMd;AAAA,YACN,UAAUD;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEegB,IAAAC,EAAKtB,CAAiB;"}
|
@@ -1,18 +1,17 @@
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
2
2
|
import { memo as p, useCallback as f } from "react";
|
3
|
-
import c from "../../../ui/
|
4
|
-
import g from "../../../ui/
|
5
|
-
import h from "../../../ui/layout/flex-view.js";
|
3
|
+
import c from "../../../ui/inputs/text-input/text-input.js";
|
4
|
+
import g from "../../../ui/layout/flex-view.js";
|
6
5
|
import b from "../../comps/input-status-icon/input-status-icon.js";
|
7
|
-
import { FormWrapper as I } from "../forgot-password-styled.js";
|
6
|
+
import { FormWrapper as h, ButtonWrapper as I } from "../forgot-password-styled.js";
|
8
7
|
const $ = ({
|
9
8
|
onSubmit: i,
|
10
9
|
onChange: t,
|
11
10
|
value: o,
|
12
11
|
error: r,
|
13
12
|
isSubmitDisabled: s,
|
14
|
-
isProcessing:
|
15
|
-
isValid:
|
13
|
+
isProcessing: a,
|
14
|
+
isValid: n = !1,
|
16
15
|
label: m
|
17
16
|
}) => {
|
18
17
|
const d = f(
|
@@ -22,39 +21,38 @@ const $ = ({
|
|
22
21
|
[t]
|
23
22
|
);
|
24
23
|
return /* @__PURE__ */ e(
|
25
|
-
|
24
|
+
g,
|
26
25
|
{
|
27
|
-
$gutterX:
|
26
|
+
$gutterX: 1.5,
|
28
27
|
$gapX: 1.5,
|
29
28
|
$alignItems: "center",
|
30
29
|
$justifyContent: "center",
|
31
30
|
$background: "BLACK_2",
|
32
31
|
$height: 308,
|
33
|
-
children: /* @__PURE__ */ l(
|
32
|
+
children: /* @__PURE__ */ l(h, { onSubmit: i, children: [
|
34
33
|
/* @__PURE__ */ e(
|
35
|
-
|
34
|
+
c,
|
36
35
|
{
|
37
36
|
renderAs: r ? "error-dark" : "primary-dark",
|
38
37
|
autoFocus: !0,
|
39
38
|
label: m,
|
40
39
|
value: o,
|
41
40
|
onChange: d,
|
42
|
-
width: 330,
|
43
41
|
required: !0,
|
44
42
|
shape: "borderLess",
|
45
43
|
errorMessage: r,
|
46
|
-
siblingElement: /* @__PURE__ */ e(b, { isError: !!r, isValid:
|
44
|
+
siblingElement: /* @__PURE__ */ e(b, { isError: !!r, isValid: n, isLoading: !1 })
|
47
45
|
}
|
48
46
|
),
|
49
47
|
/* @__PURE__ */ e(
|
50
|
-
|
48
|
+
I,
|
51
49
|
{
|
52
50
|
size: "small",
|
53
51
|
renderAs: "secondary-dark",
|
54
52
|
type: "submit",
|
53
|
+
width: "100%",
|
55
54
|
label: "Get Verification Code",
|
56
|
-
|
57
|
-
busy: n,
|
55
|
+
busy: a,
|
58
56
|
disabled: s
|
59
57
|
}
|
60
58
|
)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-identifier-form.js","sources":["../../../../../src/features/auth/forgot-password/user-identifier-form/user-identifier-form.tsx"],"sourcesContent":["import type { ISingleFieldFormProps } from '../forgot-password-types';\n\nimport { memo, useCallback, type ChangeEvent } from 'react';\n\nimport
|
1
|
+
{"version":3,"file":"user-identifier-form.js","sources":["../../../../../src/features/auth/forgot-password/user-identifier-form/user-identifier-form.tsx"],"sourcesContent":["import type { ISingleFieldFormProps } from '../forgot-password-types';\n\nimport { memo, useCallback, type ChangeEvent } from 'react';\n\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 UserIdentifierForm = ({\n onSubmit,\n onChange,\n value,\n error,\n isSubmitDisabled,\n isProcessing,\n isValid = false,\n label,\n}: ISingleFieldFormProps) => {\n const handleInputChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n return (\n <FlexView\n $gutterX={1.5}\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={error ? 'error-dark' : 'primary-dark'}\n autoFocus\n label={label}\n value={value}\n onChange={handleInputChange}\n required\n shape=\"borderLess\"\n errorMessage={error}\n siblingElement={<InputStatusIcon isError={!!error} isValid={isValid} isLoading={false} />}\n />\n <Styled.ButtonWrapper\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n width=\"100%\"\n label=\"Get Verification Code\"\n busy={isProcessing}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </FlexView>\n );\n};\n\nexport default memo(UserIdentifierForm);\n"],"names":["UserIdentifierForm","onSubmit","onChange","value","error","isSubmitDisabled","isProcessing","isValid","label","handleInputChange","useCallback","e","jsx","FlexView","jsxs","Styled.FormWrapper","TextInput","InputStatusIcon","Styled.ButtonWrapper","userIdentifierForm","memo"],"mappings":";;;;;;AASA,MAAMA,IAAqB,CAAC;AAAA,EAC1B,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,OAAAC;AACF,MAA6B;AAC3B,QAAMC,IAAoBC;AAAA,IACxB,CAACC,MAAqC;AAC3B,MAAAT,EAAA,cAAcS,EAAE,OAAO,KAAK;AAAA,IACvC;AAAA,IACA,CAACT,CAAQ;AAAA,EAAA;AAIT,SAAA,gBAAAU;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU;AAAA,MACV,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MACZ,SAAS;AAAA,MAET,UAAC,gBAAAC,EAAAC,GAAA,EAAmB,UAAAd,GAClB,UAAA;AAAA,QAAA,gBAAAW;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,UAAUZ,IAAQ,eAAe;AAAA,YACjC,WAAS;AAAA,YACT,OAAAI;AAAA,YACA,OAAAL;AAAA,YACA,UAAUM;AAAA,YACV,UAAQ;AAAA,YACR,OAAM;AAAA,YACN,cAAcL;AAAA,YACd,kCAAiBa,GAAgB,EAAA,SAAS,CAAC,CAACb,GAAO,SAAAG,GAAkB,WAAW,IAAO;AAAA,UAAA;AAAA,QACzF;AAAA,QACA,gBAAAK;AAAA,UAACM;AAAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,UAAS;AAAA,YACT,MAAK;AAAA,YACL,OAAM;AAAA,YACN,OAAM;AAAA,YACN,MAAMZ;AAAA,YACN,UAAUD;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA;AAGN,GAEec,IAAAC,EAAKpB,CAAkB;"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import t from "styled-components";
|
2
|
+
import o from "../../ui/buttons/button/button.js";
|
3
|
+
const i = t.form`
|
4
|
+
max-width: 336px;
|
5
|
+
width: 100%;
|
6
|
+
`;
|
7
|
+
t(o)`
|
8
|
+
max-width: 160px;
|
9
|
+
`;
|
10
|
+
export {
|
11
|
+
i as FormContainer
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=login-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"login-styled.js","sources":["../../../../src/features/auth/login/login-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Button from '../../ui/buttons/button/button';\n\nconst FormContainer = styled.form`\n max-width: 336px;\n width: 100%;\n`;\n\nconst ButtonWrapper = styled(Button)`\n max-width: 160px;\n`;\n\nexport { FormContainer, ButtonWrapper };\n"],"names":["FormContainer","styled","Button"],"mappings":";;AAIA,MAAMA,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAKPA,EAAOC,CAAM;AAAA;AAAA;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"social-login-methods-styled.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\n\nexport const Wrapper = styled(FlexView)`\n max-width: 336px;\n`;\n"],"names":["Wrapper","styled","FlexView"],"mappings":";;AAIa,MAAAA,IAAUC,EAAOC,CAAQ;AAAA;AAAA;"}
|
@@ -1,47 +1,56 @@
|
|
1
1
|
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
2
2
|
import { memo as r } from "react";
|
3
3
|
import c from "../../../../assets/line-icons/icons/apple-icon.js";
|
4
|
-
import
|
4
|
+
import p from "../../../../assets/line-icons/icons/google-icon.js";
|
5
5
|
import s from "../../../ui/buttons/button/button.js";
|
6
|
-
import
|
6
|
+
import { Wrapper as d } from "./social-login-methods-styled.js";
|
7
7
|
const m = ({
|
8
8
|
onGoogleLogin: n,
|
9
9
|
onAppleLogin: t,
|
10
10
|
loadingProvider: o
|
11
11
|
}) => {
|
12
12
|
const e = o === "google", l = o === "apple";
|
13
|
-
return /* @__PURE__ */ a(
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
13
|
+
return /* @__PURE__ */ a(
|
14
|
+
d,
|
15
|
+
{
|
16
|
+
$flexGapX: 1,
|
17
|
+
$flexDirection: "row",
|
18
|
+
$justifyContent: "space-between",
|
19
|
+
$width: "100%",
|
20
|
+
children: [
|
21
|
+
/* @__PURE__ */ i(
|
22
|
+
s,
|
23
|
+
{
|
24
|
+
renderAs: "secondary-dark",
|
25
|
+
Icon: p,
|
26
|
+
label: "",
|
27
|
+
analyticsLabel: "google_login",
|
28
|
+
onClick: n,
|
29
|
+
size: "small",
|
30
|
+
width: "100%",
|
31
|
+
busy: e,
|
32
|
+
disabled: e
|
33
|
+
}
|
34
|
+
),
|
35
|
+
/* @__PURE__ */ i(
|
36
|
+
s,
|
37
|
+
{
|
38
|
+
renderAs: "secondary-dark",
|
39
|
+
size: "small",
|
40
|
+
Icon: c,
|
41
|
+
width: "100%",
|
42
|
+
label: "",
|
43
|
+
analyticsLabel: "apple_login",
|
44
|
+
onClick: t,
|
45
|
+
busy: l,
|
46
|
+
disabled: l
|
47
|
+
}
|
48
|
+
)
|
49
|
+
]
|
50
|
+
}
|
51
|
+
);
|
52
|
+
}, L = r(m);
|
44
53
|
export {
|
45
|
-
|
54
|
+
L as default
|
46
55
|
};
|
47
56
|
//# sourceMappingURL=social-login-methods.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"social-login-methods.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods.tsx"],"sourcesContent":["import type { ISocialLoginMethodsProps } from './social-login-methods-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport
|
1
|
+
{"version":3,"file":"social-login-methods.js","sources":["../../../../../src/features/auth/login/social-login-methods/social-login-methods.tsx"],"sourcesContent":["import type { ISocialLoginMethodsProps } from './social-login-methods-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport * as Styled from './social-login-methods-styled';\n\nconst SocialLoginMethods: FC<ISocialLoginMethodsProps> = ({\n onGoogleLogin,\n onAppleLogin,\n loadingProvider,\n}) => {\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <Styled.Wrapper\n $flexGapX={1}\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $width=\"100%\"\n >\n <Button\n renderAs=\"secondary-dark\"\n Icon={GoogleIcon}\n label=\"\"\n analyticsLabel=\"google_login\"\n onClick={onGoogleLogin}\n size=\"small\"\n width=\"100%\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n />\n <Button\n renderAs=\"secondary-dark\"\n size=\"small\"\n Icon={AppleIcon}\n width=\"100%\"\n label=\"\"\n analyticsLabel=\"apple_login\"\n onClick={onAppleLogin}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n />\n </Styled.Wrapper>\n );\n};\n\nexport default memo(SocialLoginMethods);\n"],"names":["SocialLoginMethods","onGoogleLogin","onAppleLogin","loadingProvider","isLoadingGoogle","isLoadingApple","jsxs","Styled.Wrapper","jsx","Button","GoogleIcon","AppleIcon","socialLoginMethods","memo"],"mappings":";;;;;;AAUA,MAAMA,IAAmD,CAAC;AAAA,EACxD,eAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC;AACF,MAAM;AACJ,QAAMC,IAAkBD,MAAoB,UACtCE,IAAiBF,MAAoB;AAGzC,SAAA,gBAAAG;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,gBAAe;AAAA,MACf,iBAAgB;AAAA,MAChB,QAAO;AAAA,MAEP,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,MAAMC;AAAA,YACN,OAAM;AAAA,YACN,gBAAe;AAAA,YACf,SAAST;AAAA,YACT,MAAK;AAAA,YACL,OAAM;AAAA,YACN,MAAMG;AAAA,YACN,UAAUA;AAAA,UAAA;AAAA,QACZ;AAAA,QACA,gBAAAI;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,MAAK;AAAA,YACL,MAAME;AAAA,YACN,OAAM;AAAA,YACN,OAAM;AAAA,YACN,gBAAe;AAAA,YACf,SAAST;AAAA,YACT,MAAMG;AAAA,YACN,UAAUA;AAAA,UAAA;AAAA,QACZ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN,GAEeO,IAAAC,EAAKb,CAAkB;"}
|