@cuemath/leap 2.9.5-j7 → 2.9.5-j9

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.
@@ -0,0 +1,6 @@
1
+ import * as e from "react";
2
+ const i = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M12 3.66675V7.00008", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.875s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M12 17V20.3333", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.75s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M6.1084 6.1084L8.46673 8.46673", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.625s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M15.5337 15.5332L17.892 17.8915", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.5s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M3.6665 12H6.99984", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.375s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M17 12H20.3333", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.25s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M6.1084 17.8915L8.46673 15.5332", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.125s", repeatCount: "indefinite" })), /* @__PURE__ */ e.createElement("path", { d: "M15.5337 8.46673L17.892 6.1084", stroke: "white", strokeWidth: 1.66667, strokeLinecap: "square", strokeLinejoin: "round" }, /* @__PURE__ */ e.createElement("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "0s", repeatCount: "indefinite" })));
3
+ export {
4
+ i as ReactComponent
5
+ };
6
+ //# sourceMappingURL=loader-1.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader-1.svg.js","sources":["../../../src/assets/illustrations/loader-1.svg"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%203.66675V7.00008'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.875s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M12%2017V20.3333'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.75s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M6.1084%206.1084L8.46673%208.46673'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.625s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M15.5337%2015.5332L17.892%2017.8915'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.5s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M3.6665%2012H6.99984'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.375s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M17%2012H20.3333'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.25s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M6.1084%2017.8915L8.46673%2015.5332'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='-0.125s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3cpath%20d='M15.5337%208.46673L17.892%206.1084'%20stroke='white'%20stroke-width='1.66667'%20stroke-linecap='square'%20stroke-linejoin='round'%3e%3canimate%20attributeName='opacity'%20values='1;0'%20keyTimes='0;1'%20dur='1s'%20begin='0s'%20repeatCount='indefinite'%3e%3c/animate%3e%3c/path%3e%3c/svg%3e\""],"names":["SvgLoader1","props","React"],"mappings":";AACK,MA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U,OAAO,KAAK,MAAM,OAAO,WAAW,aAAa,aAAY,CAAE,CAAC,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,kBAAkB,QAAQ,SAAS,aAAa,SAAS,eAAe,UAAU,gBAAgB,QAAS,GAAkB,gBAAAA,EAAM,cAAc,WAAW,EAAE,eAAe,WAAW,QAAQ,OAAO,UAAU,OAAO,KAAK,MAAM,OAAO,UAAU,aAAa,aAAc,CAAA,CAAC,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,mCAAmC,QAAQ,SAAS,aAAa,SAAS,eAAe,UAAU,gBAAgB,QAAO,GAAoB,gBAAAA,EAAM,cAAc,WAAW,EAAE,eAAe,WAAW,QAAQ,OAAO,UAAU,OAAO,KAAK,MAAM,OAAO,WAAW,aAAa,aAAY,CAAE,CAAC,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,kCAAkC,QAAQ,SAAS,aAAa,SAAS,eAAe,UAAU,gBAAgB,QAAS,GAAkB,gBAAAA,EAAM,cAAc,WAAW,EAAE,eAAe,WAAW,QAAQ,OAAO,UAAU,OAAO,KAAK,MAAM,OAAO,MAAM,aAAa,aAAY,CAAE,CAAC,CAAC;"}
@@ -0,0 +1,20 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useTheme as u } from "styled-components";
3
+ import { ReactComponent as f } from "../../../../assets/illustrations/loader-1.svg.js";
4
+ import i from "../../../../assets/line-icons/icons/check2.js";
5
+ import p from "../../../../assets/line-icons/icons/cross.js";
6
+ const a = ({
7
+ isLoading: n,
8
+ isValid: c,
9
+ isError: m,
10
+ size: o = 24,
11
+ successColor: e = "GREEN_4",
12
+ errorColor: h = "ORANGE_4"
13
+ }) => {
14
+ const { colors: r } = u();
15
+ return n ? /* @__PURE__ */ t(f, { width: o, height: o }) : m ? /* @__PURE__ */ t(p, { color: r[h], width: o, height: o }) : c ? /* @__PURE__ */ t(i, { color: r[e], width: o, height: o }) : null;
16
+ }, w = a;
17
+ export {
18
+ w as default
19
+ };
20
+ //# sourceMappingURL=input-status-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-status-icon.js","sources":["../../../../../src/features/auth/comps/input-status-icon/input-status-icon.tsx"],"sourcesContent":["import type { IInputStatusIconProps } from './input-status-icon-types';\n\nimport { useTheme } from 'styled-components';\n\nimport { ReactComponent as LoaderSVG } from '../../../../assets/illustrations/loader-1.svg';\nimport Check2Icon from '../../../../assets/line-icons/icons/check2';\nimport CrossIcon from '../../../../assets/line-icons/icons/cross';\n\nconst InputStatusIcon: React.FC<IInputStatusIconProps> = ({\n isLoading,\n isValid,\n isError,\n size = 24,\n successColor = 'GREEN_4',\n errorColor = 'ORANGE_4',\n}) => {\n const { colors } = useTheme();\n\n if (isLoading) {\n return <LoaderSVG width={size} height={size} />;\n }\n\n if (isError) {\n return <CrossIcon color={colors[errorColor]} width={size} height={size} />;\n }\n\n if (isValid) {\n return <Check2Icon color={colors[successColor]} width={size} height={size} />;\n }\n\n return null;\n};\n\nexport default InputStatusIcon;\n"],"names":["InputStatusIcon","isLoading","isValid","isError","size","successColor","errorColor","colors","useTheme","jsx","LoaderSVG","CrossIcon","Check2Icon","InputStatusIcon$1"],"mappings":";;;;;AAQA,MAAMA,IAAmD,CAAC;AAAA,EACxD,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,cAAAC,IAAe;AAAA,EACf,YAAAC,IAAa;AACf,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC;AAEnB,SAAIP,IACM,gBAAAQ,EAAAC,GAAA,EAAU,OAAON,GAAM,QAAQA,EAAM,CAAA,IAG3CD,IACK,gBAAAM,EAACE,KAAU,OAAOJ,EAAOD,CAAU,GAAG,OAAOF,GAAM,QAAQA,EAAM,CAAA,IAGtEF,IACK,gBAAAO,EAACG,KAAW,OAAOL,EAAOF,CAAY,GAAG,OAAOD,GAAM,QAAQA,EAAM,CAAA,IAGtE;AACT,GAEAS,IAAeb;"}
@@ -0,0 +1,23 @@
1
+ import s from "styled-components";
2
+ import p from "../../../ui/text/text.js";
3
+ const d = s.div(({ theme: r, tabsCount: o }) => {
4
+ const { colors: t } = r;
5
+ return `
6
+ display: grid;
7
+ background: ${t.BLACK_4};
8
+ grid-template-columns: repeat(${o}, 1fr);
9
+ `;
10
+ }), l = s(p)(({ theme: r, $selected: o }) => {
11
+ const { layout: t, colors: e } = r, { WHITE_T_15: n, WHITE: a } = e;
12
+ return `
13
+ cursor: pointer;
14
+ padding: ${t.gutter * 0.875}px 0;
15
+ border-bottom: 1.5px solid ${o ? a : n};
16
+ transition: all 0.3s ease;
17
+ `;
18
+ });
19
+ export {
20
+ l as TabsText,
21
+ d as TabsWrapper
22
+ };
23
+ //# sourceMappingURL=tabs-styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs-styled.js","sources":["../../../../../src/features/auth/comps/tabs/tabs-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport Text from '../../../ui/text/text';\n\ninterface TabsWrapperProps {\n tabsCount: number;\n}\n\nconst TabsWrapper = styled.div<TabsWrapperProps>(({ theme, tabsCount }) => {\n const { colors } = theme;\n\n return `\n display: grid;\n background: ${colors.BLACK_4};\n grid-template-columns: repeat(${tabsCount}, 1fr);\n `;\n});\n\ninterface ITabsText {\n $selected?: boolean;\n}\n\nconst TabsText = styled(Text)<ITabsText>(({ theme, $selected }) => {\n const { layout, colors } = theme;\n const { WHITE_T_15, WHITE } = colors;\n\n return `\n cursor: pointer;\n padding: ${layout.gutter * 0.875}px 0;\n border-bottom: 1.5px solid ${$selected ? WHITE : WHITE_T_15};\n transition: all 0.3s ease;\n `;\n});\n\nexport { TabsWrapper, TabsText };\n"],"names":["TabsWrapper","styled","theme","tabsCount","colors","TabsText","Text","$selected","layout","WHITE_T_15","WHITE"],"mappings":";;AAQA,MAAMA,IAAcC,EAAO,IAAsB,CAAC,EAAE,OAAAC,GAAO,WAAAC,QAAgB;AACnE,QAAA,EAAE,QAAAC,EAAW,IAAAF;AAEZ,SAAA;AAAA;AAAA,kBAESE,EAAO,OAAO;AAAA,oCACID,CAAS;AAAA;AAE7C,CAAC,GAMKE,IAAWJ,EAAOK,CAAI,EAAa,CAAC,EAAE,OAAAJ,GAAO,WAAAK,QAAgB;AAC3D,QAAA,EAAE,QAAAC,GAAQ,QAAAJ,EAAW,IAAAF,GACrB,EAAE,YAAAO,GAAY,OAAAC,EAAU,IAAAN;AAEvB,SAAA;AAAA;AAAA,eAEMI,EAAO,SAAS,KAAK;AAAA,iCACHD,IAAYG,IAAQD,CAAU;AAAA;AAAA;AAG/D,CAAC;"}
@@ -0,0 +1,23 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { TabsWrapper as b, TabsText as i } from "./tabs-styled.js";
3
+ function m({ selectedTab: o, onChange: c, tabs: t }) {
4
+ return /* @__PURE__ */ n(b, { tabsCount: Object.keys(t).length, children: Object.entries(t).map((s) => {
5
+ const [e, a] = s, { label: l } = a, r = e === o;
6
+ return /* @__PURE__ */ n(
7
+ i,
8
+ {
9
+ $renderAs: r ? "ub2-bold" : "ub2",
10
+ $align: "center",
11
+ $selected: r,
12
+ onClick: () => c(e),
13
+ $color: "WHITE",
14
+ children: l
15
+ },
16
+ e
17
+ );
18
+ }) });
19
+ }
20
+ export {
21
+ m as default
22
+ };
23
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","sources":["../../../../../src/features/auth/comps/tabs/tabs.tsx"],"sourcesContent":["import type { ITabItem, ITabsProps } from './tabs-types';\n\nimport * as Styled from './tabs-styled';\n\nfunction Tabs<T extends string>({ selectedTab, onChange, tabs }: ITabsProps<T>) {\n return (\n <Styled.TabsWrapper tabsCount={Object.keys(tabs).length}>\n {Object.entries(tabs).map(tabConfig => {\n const [tabName, tabInfo] = tabConfig;\n const { label } = tabInfo as ITabItem;\n const isSelected = tabName === selectedTab;\n\n return (\n <Styled.TabsText\n $renderAs={isSelected ? 'ub2-bold' : 'ub2'}\n $align=\"center\"\n key={tabName}\n $selected={isSelected}\n onClick={() => onChange(tabName as T)}\n $color=\"WHITE\"\n >\n {label}\n </Styled.TabsText>\n );\n })}\n </Styled.TabsWrapper>\n );\n}\n\nexport default Tabs;\n"],"names":["Tabs","selectedTab","onChange","tabs","jsx","Styled.TabsWrapper","tabConfig","tabName","tabInfo","label","isSelected","Styled.TabsText"],"mappings":";;AAIA,SAASA,EAAuB,EAAE,aAAAC,GAAa,UAAAC,GAAU,MAAAC,KAAuB;AAC9E,SACG,gBAAAC,EAAAC,GAAA,EAAmB,WAAW,OAAO,KAAKF,CAAI,EAAE,QAC9C,UAAO,OAAA,QAAQA,CAAI,EAAE,IAAI,CAAaG,MAAA;AAC/B,UAAA,CAACC,GAASC,CAAO,IAAIF,GACrB,EAAE,OAAAG,EAAU,IAAAD,GACZE,IAAaH,MAAYN;AAG7B,WAAA,gBAAAG;AAAA,MAACO;AAAAA,MAAA;AAAA,QACC,WAAWD,IAAa,aAAa;AAAA,QACrC,QAAO;AAAA,QAEP,WAAWA;AAAA,QACX,SAAS,MAAMR,EAASK,CAAY;AAAA,QACpC,QAAO;AAAA,QAEN,UAAAE;AAAA,MAAA;AAAA,MALIF;AAAA,IAAA;AAAA,EAQV,CAAA,EACH,CAAA;AAEJ;"}
@@ -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;"}
@@ -73,7 +73,7 @@ const D = {
73
73
  $alignItems: "center",
74
74
  $justifyContent: "center",
75
75
  children: /* @__PURE__ */ o(O, { $isVisible: L, children: [
76
- i ? /* @__PURE__ */ o(j, { $gutterX: 4, children: [
76
+ i ? /* @__PURE__ */ o(j, { $gutterX: 3.5, children: [
77
77
  /* @__PURE__ */ e(z, { $renderAs: "ab2", $color: "WHITE", $align: "center", children: i }),
78
78
  /* @__PURE__ */ e(T, { heightX: 1 })
79
79
  ] }) : null,
@@ -1 +1 @@
1
- {"version":3,"file":"circular-step-wrapper.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ICircularStepRef, ICircularStepWrapperProps } from './circular-step-wrapper-types';\n\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n type Ref,\n} from 'react';\n\nimport Back2Icon from '../../../../assets/line-icons/icons/back2';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './circular-step-wrapper-styled';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'svg',\n rendererSettings: {\n preserveAspectRatio: 'xMidYMin slice',\n },\n};\n\nconst CircularStepWrapper = forwardRef<ICircularStepRef, ICircularStepWrapperProps>(\n (\n {\n children,\n onGoBack,\n onNext,\n label,\n showNext,\n showPrevious,\n animation,\n introFrames,\n outroFrames,\n isNextLoading,\n },\n ref: Ref<ICircularStepRef>,\n ) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerHeight, setContainerHeight] = useState<number | undefined>();\n const [showContent, setShowContent] = useState(false);\n\n const onLottieRender = useCallback(() => {\n if (animation && animationRef.current) {\n animationRef.current.playSegments(introFrames, true);\n setTimeout(() => setShowContent(true), 500);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [animation]);\n\n useImperativeHandle(ref, () => ({\n playOutroAndFadeOut: async () => {\n return new Promise<void>(resolve => {\n const handleComplete = () => {\n resolve();\n animationRef.current?.removeEventListener('complete', handleComplete);\n };\n\n animationRef.current?.playSegments(outroFrames, true);\n setShowContent(false);\n animationRef.current?.addEventListener('complete', handleComplete);\n });\n },\n }));\n\n useLayoutEffect(() => {\n if (containerRef.current) {\n setContainerHeight(containerRef.current.offsetHeight);\n }\n }, []);\n\n return (\n <Styled.Container\n $flex={1}\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={containerRef}\n >\n {containerHeight && (\n <LottieAnimation\n width={1280}\n height={containerHeight}\n src={animation}\n ref={animationRef}\n onRender={onLottieRender}\n settings={animationSettings}\n />\n )}\n <Styled.CircularStepContainer\n $width={400}\n $height={400}\n $background=\"REAL_BLACK\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Styled.ContentWrapper $isVisible={showContent}>\n {label ? (\n <FlexView $gutterX={4}>\n <Text $renderAs=\"ab2\" $color=\"WHITE\" $align=\"center\">\n {label}\n </Text>\n <Separator heightX={1} />\n </FlexView>\n ) : null}\n <Styled.InputContainer>{children}</Styled.InputContainer>\n </Styled.ContentWrapper>\n </Styled.CircularStepContainer>\n {showPrevious && (\n <Styled.PrevButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onGoBack}\n disabled={isNextLoading}\n size=\"regular\"\n />\n </Styled.PrevButtonWrapper>\n )}\n {showNext && (\n <Styled.NextButtonWrapper>\n <IconButton\n size=\"regular\"\n Icon={Next2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onNext}\n busy={isNextLoading}\n />\n </Styled.NextButtonWrapper>\n )}\n </Styled.Container>\n );\n },\n);\n\nexport default CircularStepWrapper;\n"],"names":["animationSettings","CircularStepWrapper","forwardRef","children","onGoBack","onNext","label","showNext","showPrevious","animation","introFrames","outroFrames","isNextLoading","ref","animationRef","useRef","containerRef","containerHeight","setContainerHeight","useState","showContent","setShowContent","onLottieRender","useCallback","useImperativeHandle","resolve","handleComplete","_a","_b","useLayoutEffect","jsxs","Styled.Container","jsx","LottieAnimation","Styled.CircularStepContainer","Styled.ContentWrapper","FlexView","Text","Separator","Styled.InputContainer","Styled.PrevButtonWrapper","IconButton","Back2Icon","Styled.NextButtonWrapper","Next2Icon","CircularStepWrapper$1"],"mappings":";;;;;;;;;;AAsBA,MAAMA,IAAoB;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,kBAAkB;AAAA,IAChB,qBAAqB;AAAA,EACvB;AACF,GAEMC,IAAsBC;AAAA,EAC1B,CACE;AAAA,IACE,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IAAeC,EAAmC,IAAI,GACtDC,IAAeD,EAAuB,IAAI,GAC1C,CAACE,GAAiBC,CAAkB,IAAIC,EAA6B,GACrE,CAACC,GAAaC,CAAc,IAAIF,EAAS,EAAK,GAE9CG,IAAiBC,EAAY,MAAM;AACnC,MAAAd,KAAaK,EAAa,YACfA,EAAA,QAAQ,aAAaJ,GAAa,EAAI,GACnD,WAAW,MAAMW,EAAe,EAAI,GAAG,GAAG;AAAA,IAC5C,GAEC,CAACZ,CAAS,CAAC;AAEd,WAAAe,EAAoBX,GAAK,OAAO;AAAA,MAC9B,qBAA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ACE;AAAA,gBACH,gBAAAN,EAAAO,GAAA,EAAuB,UAAApC,GAAS;AAAA,cAAA,GACnC;AAAA,YAAA;AAAA,UACF;AAAA,UACCK,KACC,gBAAAwB,EAACQ,GAAA,EACC,UAAA,gBAAAR;AAAA,YAACS;AAAA,YAAA;AAAA,cACC,MAAMC;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAStC;AAAA,cACT,UAAUQ;AAAA,cACV,MAAK;AAAA,YAAA;AAAA,UAAA,GAET;AAAA,UAEDL,KACC,gBAAAyB,EAACW,GAAA,EACC,UAAA,gBAAAX;AAAA,YAACS;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAMG;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAASvC;AAAA,cACT,MAAMO;AAAA,YAAA;AAAA,UAAA,GAEV;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF,GAEAiC,KAAe5C;"}
1
+ {"version":3,"file":"circular-step-wrapper.js","sources":["../../../../../src/features/auth/signup/circular-step-wrapper/circular-step-wrapper.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../ui/lottie-animation/types';\nimport type { ICircularStepRef, ICircularStepWrapperProps } from './circular-step-wrapper-types';\n\nimport {\n forwardRef,\n useCallback,\n useImperativeHandle,\n useLayoutEffect,\n useRef,\n useState,\n type Ref,\n} from 'react';\n\nimport Back2Icon from '../../../../assets/line-icons/icons/back2';\nimport Next2Icon from '../../../../assets/line-icons/icons/next2';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport * as Styled from './circular-step-wrapper-styled';\n\nconst animationSettings = {\n autoplay: false,\n loop: false,\n renderer: 'svg',\n rendererSettings: {\n preserveAspectRatio: 'xMidYMin slice',\n },\n};\n\nconst CircularStepWrapper = forwardRef<ICircularStepRef, ICircularStepWrapperProps>(\n (\n {\n children,\n onGoBack,\n onNext,\n label,\n showNext,\n showPrevious,\n animation,\n introFrames,\n outroFrames,\n isNextLoading,\n },\n ref: Ref<ICircularStepRef>,\n ) => {\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n const containerRef = useRef<HTMLDivElement>(null);\n const [containerHeight, setContainerHeight] = useState<number | undefined>();\n const [showContent, setShowContent] = useState(false);\n\n const onLottieRender = useCallback(() => {\n if (animation && animationRef.current) {\n animationRef.current.playSegments(introFrames, true);\n setTimeout(() => setShowContent(true), 500);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [animation]);\n\n useImperativeHandle(ref, () => ({\n playOutroAndFadeOut: async () => {\n return new Promise<void>(resolve => {\n const handleComplete = () => {\n resolve();\n animationRef.current?.removeEventListener('complete', handleComplete);\n };\n\n animationRef.current?.playSegments(outroFrames, true);\n setShowContent(false);\n animationRef.current?.addEventListener('complete', handleComplete);\n });\n },\n }));\n\n useLayoutEffect(() => {\n if (containerRef.current) {\n setContainerHeight(containerRef.current.offsetHeight);\n }\n }, []);\n\n return (\n <Styled.Container\n $flex={1}\n $flexDirection=\"column\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $width=\"100%\"\n $height=\"100%\"\n ref={containerRef}\n >\n {containerHeight && (\n <LottieAnimation\n width={1280}\n height={containerHeight}\n src={animation}\n ref={animationRef}\n onRender={onLottieRender}\n settings={animationSettings}\n />\n )}\n <Styled.CircularStepContainer\n $width={400}\n $height={400}\n $background=\"REAL_BLACK\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Styled.ContentWrapper $isVisible={showContent}>\n {label ? (\n <FlexView $gutterX={3.5}>\n <Text $renderAs=\"ab2\" $color=\"WHITE\" $align=\"center\">\n {label}\n </Text>\n <Separator heightX={1} />\n </FlexView>\n ) : null}\n <Styled.InputContainer>{children}</Styled.InputContainer>\n </Styled.ContentWrapper>\n </Styled.CircularStepContainer>\n {showPrevious && (\n <Styled.PrevButtonWrapper>\n <IconButton\n Icon={Back2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onGoBack}\n disabled={isNextLoading}\n size=\"regular\"\n />\n </Styled.PrevButtonWrapper>\n )}\n {showNext && (\n <Styled.NextButtonWrapper>\n <IconButton\n size=\"regular\"\n Icon={Next2Icon}\n renderAs=\"secondary\"\n analyticsLabel=\"Next\"\n onClick={onNext}\n busy={isNextLoading}\n />\n </Styled.NextButtonWrapper>\n )}\n </Styled.Container>\n );\n },\n);\n\nexport default CircularStepWrapper;\n"],"names":["animationSettings","CircularStepWrapper","forwardRef","children","onGoBack","onNext","label","showNext","showPrevious","animation","introFrames","outroFrames","isNextLoading","ref","animationRef","useRef","containerRef","containerHeight","setContainerHeight","useState","showContent","setShowContent","onLottieRender","useCallback","useImperativeHandle","resolve","handleComplete","_a","_b","useLayoutEffect","jsxs","Styled.Container","jsx","LottieAnimation","Styled.CircularStepContainer","Styled.ContentWrapper","FlexView","Text","Separator","Styled.InputContainer","Styled.PrevButtonWrapper","IconButton","Back2Icon","Styled.NextButtonWrapper","Next2Icon","CircularStepWrapper$1"],"mappings":";;;;;;;;;;AAsBA,MAAMA,IAAoB;AAAA,EACxB,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,kBAAkB;AAAA,IAChB,qBAAqB;AAAA,EACvB;AACF,GAEMC,IAAsBC;AAAA,EAC1B,CACE;AAAA,IACE,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,KAEFC,MACG;AACG,UAAAC,IAAeC,EAAmC,IAAI,GACtDC,IAAeD,EAAuB,IAAI,GAC1C,CAACE,GAAiBC,CAAkB,IAAIC,EAA6B,GACrE,CAACC,G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YAAYf,GAChC,UAAA;AAAA,gBACCd,IAAA,gBAAAwB,EAACM,GAAS,EAAA,UAAU,KAClB,UAAA;AAAA,kBAAA,gBAAAJ,EAACK,KAAK,WAAU,OAAM,QAAO,SAAQ,QAAO,UACzC,UACH/B,EAAA,CAAA;AAAA,kBACA,gBAAA0B,EAACM,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,gBAAA,EAAA,CACzB,IACE;AAAA,gBACH,gBAAAN,EAAAO,GAAA,EAAuB,UAAApC,GAAS;AAAA,cAAA,GACnC;AAAA,YAAA;AAAA,UACF;AAAA,UACCK,KACC,gBAAAwB,EAACQ,GAAA,EACC,UAAA,gBAAAR;AAAA,YAACS;AAAA,YAAA;AAAA,cACC,MAAMC;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAAStC;AAAA,cACT,UAAUQ;AAAA,cACV,MAAK;AAAA,YAAA;AAAA,UAAA,GAET;AAAA,UAEDL,KACC,gBAAAyB,EAACW,GAAA,EACC,UAAA,gBAAAX;AAAA,YAACS;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,MAAMG;AAAA,cACN,UAAS;AAAA,cACT,gBAAe;AAAA,cACf,SAASvC;AAAA,cACT,MAAMO;AAAA,YAAA;AAAA,UAAA,GAEV;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF,GAEAiC,KAAe5C;"}
@@ -13,7 +13,7 @@ const T = ({
13
13
  }) => /* @__PURE__ */ r(s, { children: [
14
14
  p,
15
15
  /* @__PURE__ */ r(l, { $alignItems: "center", $justifyContent: "center", children: [
16
- n && /* @__PURE__ */ r(t, { $gutterX: 4, children: [
16
+ n && /* @__PURE__ */ r(t, { $gutterX: 3.5, children: [
17
17
  /* @__PURE__ */ e(a, { $renderAs: "ub3", $color: "WHITE_T_60", $align: "center", $whiteSpace: "pre-line", children: n }),
18
18
  /* @__PURE__ */ e(i, { heightX: 0.5 })
19
19
  ] }),
@@ -1 +1 @@
1
- {"version":3,"file":"input-wrapper.js","sources":["../../../../../../src/features/auth/signup/custom-input/input-wrapper/input-wrapper.tsx"],"sourcesContent":["import type { IInputWrapperProps } from './input-wrapper-types';\n\nimport { LOTTIE } from '../../../../../assets/lottie/lottie';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport * as Styled from './input-wrapper-styled';\n\nexport const InputWrapper = ({\n children,\n helperText,\n actionElement,\n isLoading,\n}: IInputWrapperProps) => {\n return (\n <Styled.InputWrapper>\n {children}\n <Styled.ContentWrapper $alignItems=\"center\" $justifyContent=\"center\">\n {helperText && (\n <FlexView $gutterX={4}>\n <Text $renderAs=\"ub3\" $color=\"WHITE_T_60\" $align=\"center\" $whiteSpace=\"pre-line\">\n {helperText}\n </Text>\n <Separator heightX={0.5} />\n </FlexView>\n )}\n {actionElement && (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n {actionElement}\n <Separator heightX={1} />\n </FlexView>\n )}\n {isLoading && (\n <FlexView>\n <Separator heightX={2} />\n <LottieAnimation src={LOTTIE.SPINNER_WHITE} height={20} width={40} />\n </FlexView>\n )}\n </Styled.ContentWrapper>\n </Styled.InputWrapper>\n );\n};\n"],"names":["InputWrapper","children","helperText","actionElement","isLoading","jsxs","Styled.InputWrapper","Styled.ContentWrapper","FlexView","jsx","Text","Separator","LottieAnimation","LOTTIE"],"mappings":";;;;;;;AASO,MAAMA,IAAe,CAAC;AAAA,EAC3B,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC,EAACC,GAAA,EACE,UAAA;AAAA,EAAAL;AAAA,oBACAM,GAAA,EAAsB,aAAY,UAAS,iBAAgB,UACzD,UAAA;AAAA,IACCL,KAAA,gBAAAG,EAACG,GAAS,EAAA,UAAU,GAClB,UAAA;AAAA,MAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,OAAM,QAAO,cAAa,QAAO,UAAS,aAAY,YACnE,UACHR,EAAA,CAAA;AAAA,MACA,gBAAAO,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IAAA,GAC3B;AAAA,IAEDR,KACE,gBAAAE,EAAAG,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAC5C,UAAA;AAAA,MAAAL;AAAA,MACD,gBAAAM,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IAAA,GACzB;AAAA,IAEDP,uBACEI,GACC,EAAA,UAAA;AAAA,MAAC,gBAAAC,EAAAE,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,MACvB,gBAAAF,EAACG,KAAgB,KAAKC,EAAO,eAAe,QAAQ,IAAI,OAAO,IAAI;AAAA,IAAA,GACrE;AAAA,EAAA,GAEJ;AACF,EAAA,CAAA;"}
1
+ {"version":3,"file":"input-wrapper.js","sources":["../../../../../../src/features/auth/signup/custom-input/input-wrapper/input-wrapper.tsx"],"sourcesContent":["import type { IInputWrapperProps } from './input-wrapper-types';\n\nimport { LOTTIE } from '../../../../../assets/lottie/lottie';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport * as Styled from './input-wrapper-styled';\n\nexport const InputWrapper = ({\n children,\n helperText,\n actionElement,\n isLoading,\n}: IInputWrapperProps) => {\n return (\n <Styled.InputWrapper>\n {children}\n <Styled.ContentWrapper $alignItems=\"center\" $justifyContent=\"center\">\n {helperText && (\n <FlexView $gutterX={3.5}>\n <Text $renderAs=\"ub3\" $color=\"WHITE_T_60\" $align=\"center\" $whiteSpace=\"pre-line\">\n {helperText}\n </Text>\n <Separator heightX={0.5} />\n </FlexView>\n )}\n {actionElement && (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n {actionElement}\n <Separator heightX={1} />\n </FlexView>\n )}\n {isLoading && (\n <FlexView>\n <Separator heightX={2} />\n <LottieAnimation src={LOTTIE.SPINNER_WHITE} height={20} width={40} />\n </FlexView>\n )}\n </Styled.ContentWrapper>\n </Styled.InputWrapper>\n );\n};\n"],"names":["InputWrapper","children","helperText","actionElement","isLoading","jsxs","Styled.InputWrapper","Styled.ContentWrapper","FlexView","jsx","Text","Separator","LottieAnimation","LOTTIE"],"mappings":";;;;;;;AASO,MAAMA,IAAe,CAAC;AAAA,EAC3B,UAAAC;AAAA,EACA,YAAAC;AAAA,EACA,eAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC,EAACC,GAAA,EACE,UAAA;AAAA,EAAAL;AAAA,oBACAM,GAAA,EAAsB,aAAY,UAAS,iBAAgB,UACzD,UAAA;AAAA,IACCL,KAAA,gBAAAG,EAACG,GAAS,EAAA,UAAU,KAClB,UAAA;AAAA,MAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,OAAM,QAAO,cAAa,QAAO,UAAS,aAAY,YACnE,UACHR,EAAA,CAAA;AAAA,MACA,gBAAAO,EAACE,GAAU,EAAA,SAAS,IAAK,CAAA;AAAA,IAAA,GAC3B;AAAA,IAEDR,KACE,gBAAAE,EAAAG,GAAA,EAAS,iBAAgB,UAAS,aAAY,UAC5C,UAAA;AAAA,MAAAL;AAAA,MACD,gBAAAM,EAACE,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,IAAA,GACzB;AAAA,IAEDP,uBACEI,GACC,EAAA,UAAA;AAAA,MAAC,gBAAAC,EAAAE,GAAA,EAAU,SAAS,EAAG,CAAA;AAAA,MACvB,gBAAAF,EAACG,KAAgB,KAAKC,EAAO,eAAe,QAAQ,IAAI,OAAO,IAAI;AAAA,IAAA,GACrE;AAAA,EAAA,GAEJ;AACF,EAAA,CAAA;"}
@@ -1,38 +1,38 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useCallback as a } from "react";
3
- import { useTheme as i } from "styled-components";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useCallback as i } from "react";
3
+ import { useTheme as f } from "styled-components";
4
4
  import { CustomInput as h } from "../custom-input-styled.js";
5
5
  import { InputWrapper as d } from "../input-wrapper/input-wrapper.js";
6
- const C = ({
7
- value: n,
6
+ const I = ({
7
+ value: a,
8
8
  onChange: m,
9
- error: o,
10
- helperText: l,
11
- isLoading: c,
9
+ error: t,
10
+ helperText: s,
11
+ isLoading: u,
12
12
  onEnter: e,
13
- isValid: u
13
+ isValid: n
14
14
  }) => {
15
- const t = i(), p = a(
16
- (r) => {
17
- r.key === "Enter" && (e == null || e());
15
+ const p = f(), l = i(
16
+ (o) => {
17
+ o.key === "Enter" && (e == null || e());
18
18
  },
19
19
  [e]
20
- ), f = a(() => o ? t.colors.RED : u ? t.colors.GREEN_4 : t.colors.WHITE, [o, u, t.colors]);
21
- return /* @__PURE__ */ s(d, { helperText: o || l, isLoading: c, children: /* @__PURE__ */ s(
20
+ ), c = n ? "GREEN_4" : "WHITE";
21
+ return /* @__PURE__ */ r(d, { helperText: t || s, isLoading: u, children: /* @__PURE__ */ r(
22
22
  h,
23
23
  {
24
- value: n,
25
- onChange: (r) => m(r.target.value),
24
+ value: a,
25
+ onChange: (o) => m(o.target.value),
26
26
  autoFocus: !0,
27
27
  placeholder: "username_1412",
28
- color: f(),
28
+ color: p.colors[t ? "RED" : c],
29
29
  autoCapitalize: "none",
30
30
  textTransform: "lowercase",
31
- onKeyDown: p
31
+ onKeyDown: l
32
32
  }
33
33
  ) });
34
- }, y = C;
34
+ }, D = I;
35
35
  export {
36
- y as default
36
+ D as default
37
37
  };
38
38
  //# sourceMappingURL=student-username.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"student-username.js","sources":["../../../../../../src/features/auth/signup/custom-input/student-username/student-username.tsx"],"sourcesContent":["import type { ICustomInputProps } from '../custom-input-types';\n\nimport { useCallback, type FC, type KeyboardEvent } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport * as Styled from '../custom-input-styled';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\n\nconst StudentUsernameInput: FC<ICustomInputProps> = ({\n value,\n onChange,\n error,\n helperText,\n isLoading,\n onEnter,\n isValid,\n}) => {\n const theme = useTheme();\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter') {\n onEnter?.();\n }\n },\n [onEnter],\n );\n\n const getStatusColor = useCallback(() => {\n if (error) return theme.colors.RED;\n\n if (isValid) return theme.colors.GREEN_4;\n\n return theme.colors.WHITE;\n }, [error, isValid, theme.colors]);\n\n return (\n <InputWrapper helperText={error || helperText} isLoading={isLoading}>\n <Styled.CustomInput\n value={value}\n onChange={event => onChange(event.target.value)}\n autoFocus\n placeholder=\"username_1412\"\n color={getStatusColor()}\n autoCapitalize=\"none\"\n textTransform=\"lowercase\"\n onKeyDown={handleKeyDown}\n />\n </InputWrapper>\n );\n};\n\nexport default StudentUsernameInput;\n"],"names":["StudentUsernameInput","value","onChange","error","helperText","isLoading","onEnter","isValid","theme","useTheme","handleKeyDown","useCallback","event","getStatusColor","jsx","InputWrapper","Styled.CustomInput","StudentUsernameInput$1"],"mappings":";;;;;AAQA,MAAMA,IAA8C,CAAC;AAAA,EACnD,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AACF,MAAM;AACJ,QAAMC,IAAQC,KAERC,IAAgBC;AAAA,IACpB,CAACC,MAA2C;AACtC,MAAAA,EAAM,QAAQ,YACNN,KAAA,QAAAA;AAAA,IAEd;AAAA,IACA,CAACA,CAAO;AAAA,EAAA,GAGJO,IAAiBF,EAAY,MAC7BR,IAAcK,EAAM,OAAO,MAE3BD,IAAgBC,EAAM,OAAO,UAE1BA,EAAM,OAAO,OACnB,CAACL,GAAOI,GAASC,EAAM,MAAM,CAAC;AAEjC,SACG,gBAAAM,EAAAC,GAAA,EAAa,YAAYZ,KAASC,GAAY,WAAAC,GAC7C,UAAA,gBAAAS;AAAA,IAACE;AAAAA,IAAA;AAAA,MACC,OAAAf;AAAA,MACA,UAAU,CAAAW,MAASV,EAASU,EAAM,OAAO,KAAK;AAAA,MAC9C,WAAS;AAAA,MACT,aAAY;AAAA,MACZ,OAAOC,EAAe;AAAA,MACtB,gBAAe;AAAA,MACf,eAAc;AAAA,MACd,WAAWH;AAAA,IAAA;AAAA,EAEf,EAAA,CAAA;AAEJ,GAEAO,IAAejB;"}
1
+ {"version":3,"file":"student-username.js","sources":["../../../../../../src/features/auth/signup/custom-input/student-username/student-username.tsx"],"sourcesContent":["import type { ICustomInputProps } from '../custom-input-types';\n\nimport { useCallback, type FC, type KeyboardEvent } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport * as Styled from '../custom-input-styled';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\n\nconst StudentUsernameInput: FC<ICustomInputProps> = ({\n value,\n onChange,\n error,\n helperText,\n isLoading,\n onEnter,\n isValid,\n}) => {\n const theme = useTheme();\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter') {\n onEnter?.();\n }\n },\n [onEnter],\n );\n\n const colorKey = isValid ? 'GREEN_4' : 'WHITE';\n\n return (\n <InputWrapper helperText={error || helperText} isLoading={isLoading}>\n <Styled.CustomInput\n value={value}\n onChange={event => onChange(event.target.value)}\n autoFocus\n placeholder=\"username_1412\"\n color={theme.colors[error ? 'RED' : colorKey]}\n autoCapitalize=\"none\"\n textTransform=\"lowercase\"\n onKeyDown={handleKeyDown}\n />\n </InputWrapper>\n );\n};\n\nexport default StudentUsernameInput;\n"],"names":["StudentUsernameInput","value","onChange","error","helperText","isLoading","onEnter","isValid","theme","useTheme","handleKeyDown","useCallback","event","colorKey","jsx","InputWrapper","Styled.CustomInput","StudentUsernameInput$1"],"mappings":";;;;;AAQA,MAAMA,IAA8C,CAAC;AAAA,EACnD,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AACF,MAAM;AACJ,QAAMC,IAAQC,KAERC,IAAgBC;AAAA,IACpB,CAACC,MAA2C;AACtC,MAAAA,EAAM,QAAQ,YACNN,KAAA,QAAAA;AAAA,IAEd;AAAA,IACA,CAACA,CAAO;AAAA,EAAA,GAGJO,IAAWN,IAAU,YAAY;AAEvC,SACG,gBAAAO,EAAAC,GAAA,EAAa,YAAYZ,KAASC,GAAY,WAAAC,GAC7C,UAAA,gBAAAS;AAAA,IAACE;AAAAA,IAAA;AAAA,MACC,OAAAf;AAAA,MACA,UAAU,CAAAW,MAASV,EAASU,EAAM,OAAO,KAAK;AAAA,MAC9C,WAAS;AAAA,MACT,aAAY;AAAA,MACZ,OAAOJ,EAAM,OAAOL,IAAQ,QAAQU,CAAQ;AAAA,MAC5C,gBAAe;AAAA,MACf,eAAc;AAAA,MACd,WAAWH;AAAA,IAAA;AAAA,EAEf,EAAA,CAAA;AAEJ,GAEAO,IAAejB;"}
package/dist/index.d.ts CHANGED
@@ -1349,6 +1349,15 @@ export declare interface IInputSizeConfig {
1349
1349
  iconPadding: number;
1350
1350
  }
1351
1351
 
1352
+ declare interface IInputStatusIconProps {
1353
+ isLoading: boolean;
1354
+ isValid: boolean;
1355
+ isError: boolean;
1356
+ size?: number;
1357
+ successColor?: TColorNames;
1358
+ errorColor?: TColorNames;
1359
+ }
1360
+
1352
1361
  export declare interface IInputVariantConfig {
1353
1362
  valueColorName: {
1354
1363
  inactive: TColorNames;
@@ -2153,6 +2162,8 @@ export declare const Info2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
2153
2162
 
2154
2163
  export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
2155
2164
 
2165
+ export declare const InputStatusIcon: React.FC<IInputStatusIconProps>;
2166
+
2156
2167
  export declare interface INudgeProps {
2157
2168
  nudge: 'click';
2158
2169
  content: ReactNode;
@@ -2718,7 +2729,6 @@ export declare interface ISignUpProps {
2718
2729
  }
2719
2730
 
2720
2731
  declare interface ISocialAccountNotFoundProps {
2721
- provider: TSocialAuthProvider;
2722
2732
  onRetryLogin: () => void;
2723
2733
  onGoToSignup: () => void;
2724
2734
  }
@@ -2824,6 +2834,13 @@ declare interface ISyncableWebGameProps {
2824
2834
  enableSync?: boolean;
2825
2835
  }
2826
2836
 
2837
+ declare type ITabConfig<T extends string = string> = Record<T, ITabItem>;
2838
+
2839
+ declare interface ITabItem {
2840
+ label: string;
2841
+ component?: JSX.Element;
2842
+ }
2843
+
2827
2844
  export declare interface ITable {
2828
2845
  tableList: ITableInfo[];
2829
2846
  infiniteModeHighScore: number;
@@ -2887,6 +2904,12 @@ export declare interface ITabSizeConfig {
2887
2904
  textVariant: TTextVariants;
2888
2905
  }
2889
2906
 
2907
+ declare interface ITabsProps<T extends string> {
2908
+ selectedTab: T;
2909
+ onChange: (tab: T) => void;
2910
+ tabs: ITabConfig<T>;
2911
+ }
2912
+
2890
2913
  export declare interface ITabVariantConfig {
2891
2914
  backgroundColorName: {
2892
2915
  inactive: TColorNames;
@@ -4075,7 +4098,7 @@ export declare const Skip2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
4075
4098
 
4076
4099
  export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4077
4100
 
4078
- export declare const SocialAccountNotFound: ({ provider, onRetryLogin, onGoToSignup, }: ISocialAccountNotFoundProps) => JSX_2.Element;
4101
+ export declare const SocialAccountNotFound: ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element;
4079
4102
 
4080
4103
  export declare const SocialLoginMethods: FC<ISocialLoginMethodsProps>;
4081
4104
 
@@ -4148,6 +4171,8 @@ declare const TAB_CODES: {
4148
4171
 
4149
4172
  export declare const TabComponent: React_2.FC<ITabProps>;
4150
4173
 
4174
+ export declare function Tabs<T extends string>({ selectedTab, onChange, tabs }: ITabsProps<T>): JSX_2.Element;
4175
+
4151
4176
  export declare type TAction = EventToPayload<TInclassMessage>;
4152
4177
 
4153
4178
  declare type TActionListenerOptions = {