@cuemath/leap 2.9.5-j1 → 2.9.5-j11
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/assets/illustrations/loader-1.svg.js +6 -0
- package/dist/assets/illustrations/loader-1.svg.js.map +1 -0
- package/dist/assets/lottie/lottie.js +1 -0
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector-styled.js +27 -16
- package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +83 -68
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +1 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +1 -1
- package/dist/features/auth/comps/input-status-icon/input-status-icon.js +20 -0
- package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -0
- package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js +19 -22
- package/dist/features/auth/comps/resend-otp/otp-timer/otp-timer.js.map +1 -1
- package/dist/features/auth/comps/resend-otp/resend-otp.js +12 -12
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
- package/dist/features/auth/comps/tabs/tabs-styled.js +23 -0
- package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -0
- package/dist/features/auth/comps/tabs/tabs.js +23 -0
- package/dist/features/auth/comps/tabs/tabs.js.map +1 -0
- package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +31 -0
- package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods.js +46 -0
- package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -0
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +17 -15
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +66 -52
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js +16 -5
- package/dist/features/auth/signup/claim-user-account/claim-user-account-styled.js.map +1 -1
- package/dist/features/auth/signup/claim-user-account/claim-user-account.js +66 -61
- package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +1 -1
- package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js +10 -3
- package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js.map +1 -1
- package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js +54 -50
- package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input.js.map +1 -1
- package/dist/features/auth/signup/custom-input/grade-input/grade-input.js +6 -6
- package/dist/features/auth/signup/custom-input/grade-input/grade-input.js.map +1 -1
- package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper.js +22 -22
- package/dist/features/auth/signup/custom-input/input-wrapper/input-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input/student-password/student-password.js +1 -1
- package/dist/features/auth/signup/custom-input/student-password/student-password.js.map +1 -1
- package/dist/features/auth/signup/custom-input/student-username/student-username.js +23 -23
- package/dist/features/auth/signup/custom-input/student-username/student-username.js.map +1 -1
- package/dist/features/auth/signup/signup-constants.js.map +1 -1
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +14 -14
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +1 -1
- package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +1 -1
- package/dist/features/post-game-stats/digital-meter/digital-meter.js +29 -28
- package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -1
- package/dist/features/ui/animated-arc/animated-arc-helpers.js +14 -0
- package/dist/features/ui/animated-arc/animated-arc-helpers.js.map +1 -0
- package/dist/features/ui/animated-arc/animated-arc-styled.js +21 -0
- package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -0
- package/dist/features/ui/animated-arc/animated-arc.js +49 -0
- package/dist/features/ui/animated-arc/animated-arc.js.map +1 -0
- package/dist/features/ui/inputs/base-input/base-input-styled.js +61 -60
- package/dist/features/ui/inputs/base-input/base-input-styled.js.map +1 -1
- package/dist/features/ui/inputs/base-input/base-input.js +38 -35
- package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
- package/dist/features/ui/inputs/text-input/text-input-styled.js +22 -20
- package/dist/features/ui/inputs/text-input/text-input-styled.js.map +1 -1
- package/dist/features/ui/inputs/text-input/text-input.js +35 -32
- package/dist/features/ui/inputs/text-input/text-input.js.map +1 -1
- package/dist/features/ui/theme/input.js +84 -11
- package/dist/features/ui/theme/input.js.map +1 -1
- package/dist/index.d.ts +58 -11
- package/dist/index.js +520 -512
- package/dist/index.js.map +1 -1
- package/dist/node_modules/query-string/base.js +1 -1
- package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/dist/static/error.cbe1ddde.json +1 -0
- package/package.json +1 -1
- package/dist/node_modules/decode-uri-component/index.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
package/dist/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"date-picker-input-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledDatePickerWrapper = styled.div`\n .react-datepicker {\n font-family: UntitledSans-Medium;\n font-size: 14px;\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n border: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n padding: 16px;\n border-radius: 8px;\n transition: all 0.3s ease-in-out;\n }\n\n .react-datepicker__aria-live {\n display: none;\n }\n .react-datepicker__header {\n color: ${({ theme }) => theme.colors.WHITE};\n text-align: center;\n }\n\n .react-datepicker__month-wrapper {\n display: flex;\n }\n .react-datepicker__month-text {\n color: ${({ theme }) => theme.colors.WHITE_T_38};\n cursor: pointer;\n padding: 8px;\n border-radius: 4px;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n }\n .react-datepicker__month-text--selected {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n\n .react-datepicker__navigation--previous {\n background: url('/path/to/your/custom-left-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation--next {\n background: url('/path/to/your/custom-right-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation-icon::before {\n content: none;\n }\n\n .react-datepicker__input-container input {\n max-width: 320px;\n padding: 0;\n line-height: 40px;\n border: none;\n outline: none;\n background-color: transparent;\n font-size: 32px;\n text-align: center;\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme, color }) => color || theme.colors.WHITE};\n font-family: 'Athletics-Light';\n\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n }\n`;\n"],"names":["StyledDatePickerWrapper","styled","theme","color"],"mappings":";AAEO,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA,wBAItB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,wBACnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAU9C,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,aAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAgC3B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,aACvC,CAAC,EAAE,OAAAA,GAAO,OAAAC,EAAA,MAAYA,KAASD,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
1
|
+
{"version":3,"file":"date-picker-input-styled.js","sources":["../../../../../../src/features/auth/signup/custom-input/date-picker-input/date-picker-input-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledDatePickerWrapper = styled.div`\n .react-datepicker {\n font-family: UntitledSans-Medium;\n font-size: 14px;\n background-color: ${({ theme }) => theme.colors.BLACK_3};\n border: 1px solid ${({ theme }) => theme.colors.BLACK_5};\n padding: 16px;\n border-radius: 8px;\n transition: all 0.3s ease-in-out;\n }\n\n .react-datepicker__aria-live {\n display: none;\n }\n .react-datepicker__header {\n color: ${({ theme }) => theme.colors.WHITE};\n text-align: center;\n }\n\n .react-datepicker__month-wrapper {\n display: flex;\n }\n .react-datepicker__month-text {\n color: ${({ theme }) => theme.colors.WHITE_T_38};\n cursor: pointer;\n padding: 8px;\n border-radius: 4px;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n }\n .react-datepicker__month-text--disabled {\n color: ${({ theme }) => theme.colors.WHITE_T_10};\n cursor: not-allowed;\n &:hover {\n color: ${({ theme }) => theme.colors.WHITE_T_10};\n }\n }\n .react-datepicker__month-text--selected {\n color: ${({ theme }) => theme.colors.WHITE};\n }\n\n .react-datepicker__navigation--previous {\n background: url('/path/to/your/custom-left-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation--next {\n background: url('/path/to/your/custom-right-arrow.svg') no-repeat center;\n width: 20px;\n height: 20px;\n border: none;\n background-size: contain;\n }\n\n .react-datepicker__navigation-icon::before {\n content: none;\n }\n\n .react-datepicker__input-container input {\n max-width: 320px;\n padding: 0;\n line-height: 40px;\n border: none;\n outline: none;\n background-color: transparent;\n font-size: 32px;\n text-align: center;\n caret-color: ${({ theme }) => theme.colors.WHITE};\n color: ${({ theme, color }) => color || theme.colors.WHITE};\n font-family: 'Athletics-Light';\n\n &::placeholder {\n font-family: 'Athletics-Light';\n font-size: 32px;\n }\n }\n`;\n"],"names":["StyledDatePickerWrapper","styled","theme","color"],"mappings":";AAEO,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA,wBAItB,CAAC,EAAE,OAAAC,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA,wBACnC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAU9C,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAQjC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,eAKpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA,aAInC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA,eAGpC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,UAAU;AAAA;AAAA;AAAA;AAAA,aAIxC,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAgC3B,CAAC,EAAE,OAAAA,EAAA,MAAYA,EAAM,OAAO,KAAK;AAAA,aACvC,CAAC,EAAE,OAAAA,GAAO,OAAAC,EAAA,MAAYA,KAASD,EAAM,OAAO,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
@@ -1,54 +1,58 @@
|
|
1
|
-
import { jsx as e, jsxs as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
2
|
+
import f from "../../../../../node_modules/react-datepicker/dist/index.es.js";
|
3
|
+
import { useTheme as h } from "styled-components";
|
4
|
+
import I from "../../../../../assets/line-icons/icons/left.js";
|
5
|
+
import T from "../../../../../assets/line-icons/icons/right.js";
|
6
|
+
import l from "../../../../ui/buttons/clickable/clickable.js";
|
6
7
|
import u from "../../../../ui/layout/flex-view.js";
|
7
|
-
import
|
8
|
-
import { InputWrapper as
|
9
|
-
import { StyledDatePickerWrapper as
|
10
|
-
import { subYears as
|
11
|
-
const
|
12
|
-
|
13
|
-
{
|
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
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
8
|
+
import k from "../../../../ui/text/text.js";
|
9
|
+
import { InputWrapper as w } from "../input-wrapper/input-wrapper.js";
|
10
|
+
import { StyledDatePickerWrapper as x } from "./date-picker-input-styled.js";
|
11
|
+
import { subYears as c } from "../../../../../node_modules/date-fns/subYears.js";
|
12
|
+
const y = ({ value: a, onChange: m, error: n }) => {
|
13
|
+
const o = h();
|
14
|
+
return /* @__PURE__ */ e(w, { helperText: n, children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
|
15
|
+
f,
|
16
|
+
{
|
17
|
+
selected: a,
|
18
|
+
showMonthYearPicker: !0,
|
19
|
+
showPopperArrow: !1,
|
20
|
+
dateFormat: "MM/yyyy",
|
21
|
+
placeholderText: "MM / YYYY",
|
22
|
+
onChange: (r) => m(r),
|
23
|
+
minDate: c(/* @__PURE__ */ new Date(), 22),
|
24
|
+
maxDate: c(/* @__PURE__ */ new Date(), 2),
|
25
|
+
renderCustomHeader: ({
|
26
|
+
date: r,
|
27
|
+
decreaseYear: p,
|
28
|
+
increaseYear: s,
|
29
|
+
prevYearButtonDisabled: t,
|
30
|
+
nextYearButtonDisabled: i
|
31
|
+
}) => /* @__PURE__ */ d(u, { $alignItems: "center", $flexDirection: "row", $justifyContent: "space-between", children: [
|
32
|
+
/* @__PURE__ */ e(
|
33
|
+
l,
|
34
|
+
{
|
35
|
+
onClick: p,
|
36
|
+
label: "increase-year",
|
37
|
+
disabled: t,
|
38
|
+
children: /* @__PURE__ */ e(I, { color: o.colors[t ? "WHITE_T_10" : "WHITE"] })
|
39
|
+
}
|
40
|
+
),
|
41
|
+
/* @__PURE__ */ e(k, { $renderAs: "ub2-bold", $color: "WHITE", children: r.getFullYear() }),
|
42
|
+
/* @__PURE__ */ e(
|
43
|
+
l,
|
44
|
+
{
|
45
|
+
onClick: s,
|
46
|
+
label: "decrease-year",
|
47
|
+
disabled: i,
|
48
|
+
children: /* @__PURE__ */ e(T, { color: o.colors[i ? "WHITE_T_10" : "WHITE"] })
|
49
|
+
}
|
50
|
+
)
|
51
|
+
] })
|
52
|
+
}
|
53
|
+
) }) });
|
54
|
+
}, _ = y;
|
51
55
|
export {
|
52
|
-
|
56
|
+
_ as default
|
53
57
|
};
|
54
58
|
//# sourceMappingURL=date-picker-input.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"date-picker-input.js","sources":["../../../../../../src/features/auth/signup/custom-input/date-picker-input/date-picker-input.tsx"],"sourcesContent":["import type { IDatePickerInputProps } from './date-picker-input-types';\n\nimport { subYears } from 'date-fns';\nimport { type FC } from 'react';\nimport DatePicker from 'react-datepicker';\n\nimport LeftIcon from '../../../../../assets/line-icons/icons/left';\nimport RightIcon from '../../../../../assets/line-icons/icons/right';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\nimport * as Styled from './date-picker-input-styled';\n\nconst DatePickerInput: FC<IDatePickerInputProps> = ({ value, onChange, error }) => {\n return (\n <InputWrapper helperText={error}>\n <Styled.StyledDatePickerWrapper>\n <DatePicker\n selected={value}\n showMonthYearPicker\n showPopperArrow={false}\n dateFormat=\"MM/yyyy\"\n placeholderText=\"MM / YYYY\"\n onChange={date => onChange(date)}\n minDate={subYears(new Date(), 22)}\n maxDate={subYears(new Date(), 2)}\n renderCustomHeader={({\n date,\n decreaseYear,\n increaseYear,\n prevYearButtonDisabled,\n nextYearButtonDisabled,\n }) => (\n <FlexView $alignItems=\"center\" $flexDirection=\"row\" $justifyContent=\"space-between\">\n <Clickable\n onClick={decreaseYear}\n label=\"increase-year\"\n disabled={prevYearButtonDisabled}\n >\n <LeftIcon color
|
1
|
+
{"version":3,"file":"date-picker-input.js","sources":["../../../../../../src/features/auth/signup/custom-input/date-picker-input/date-picker-input.tsx"],"sourcesContent":["import type { IDatePickerInputProps } from './date-picker-input-types';\n\nimport { subYears } from 'date-fns';\nimport { type FC } from 'react';\nimport DatePicker from 'react-datepicker';\nimport { useTheme } from 'styled-components';\n\nimport LeftIcon from '../../../../../assets/line-icons/icons/left';\nimport RightIcon from '../../../../../assets/line-icons/icons/right';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\nimport * as Styled from './date-picker-input-styled';\n\nconst DatePickerInput: FC<IDatePickerInputProps> = ({ value, onChange, error }) => {\n const theme = useTheme();\n\n return (\n <InputWrapper helperText={error}>\n <Styled.StyledDatePickerWrapper>\n <DatePicker\n selected={value}\n showMonthYearPicker\n showPopperArrow={false}\n dateFormat=\"MM/yyyy\"\n placeholderText=\"MM / YYYY\"\n onChange={date => onChange(date)}\n minDate={subYears(new Date(), 22)}\n maxDate={subYears(new Date(), 2)}\n renderCustomHeader={({\n date,\n decreaseYear,\n increaseYear,\n prevYearButtonDisabled,\n nextYearButtonDisabled,\n }) => (\n <FlexView $alignItems=\"center\" $flexDirection=\"row\" $justifyContent=\"space-between\">\n <Clickable\n onClick={decreaseYear}\n label=\"increase-year\"\n disabled={prevYearButtonDisabled}\n >\n <LeftIcon color={theme.colors[prevYearButtonDisabled ? 'WHITE_T_10' : 'WHITE']} />\n </Clickable>\n <Text $renderAs=\"ub2-bold\" $color=\"WHITE\">\n {date.getFullYear()}\n </Text>\n <Clickable\n onClick={increaseYear}\n label=\"decrease-year\"\n disabled={nextYearButtonDisabled}\n >\n <RightIcon color={theme.colors[nextYearButtonDisabled ? 'WHITE_T_10' : 'WHITE']} />\n </Clickable>\n </FlexView>\n )}\n />\n </Styled.StyledDatePickerWrapper>\n </InputWrapper>\n );\n};\n\nexport default DatePickerInput;\n"],"names":["DatePickerInput","value","onChange","error","theme","useTheme","InputWrapper","jsx","Styled.StyledDatePickerWrapper","DatePicker","date","subYears","decreaseYear","increaseYear","prevYearButtonDisabled","nextYearButtonDisabled","FlexView","Clickable","LeftIcon","Text","RightIcon","DatePickerInput$1"],"mappings":";;;;;;;;;;;AAeA,MAAMA,IAA6C,CAAC,EAAE,OAAAC,GAAO,UAAAC,GAAU,OAAAC,QAAY;AACjF,QAAMC,IAAQC;AAEd,2BACGC,GAAa,EAAA,YAAYH,GACxB,UAAC,gBAAAI,EAAAC,GAAA,EACC,UAAA,gBAAAD;AAAA,IAACE;AAAA,IAAA;AAAA,MACC,UAAUR;AAAA,MACV,qBAAmB;AAAA,MACnB,iBAAiB;AAAA,MACjB,YAAW;AAAA,MACX,iBAAgB;AAAA,MAChB,UAAU,CAAQS,MAAAR,EAASQ,CAAI;AAAA,MAC/B,SAASC,EAAa,oBAAA,KAAA,GAAQ,EAAE;AAAA,MAChC,SAASA,EAAa,oBAAA,KAAA,GAAQ,CAAC;AAAA,MAC/B,oBAAoB,CAAC;AAAA,QACnB,MAAAD;AAAA,QACA,cAAAE;AAAA,QACA,cAAAC;AAAA,QACA,wBAAAC;AAAA,QACA,wBAAAC;AAAA,MAAA,wBAECC,GAAS,EAAA,aAAY,UAAS,gBAAe,OAAM,iBAAgB,iBAClE,UAAA;AAAA,QAAA,gBAAAT;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,SAASL;AAAA,YACT,OAAM;AAAA,YACN,UAAUE;AAAA,YAEV,UAAA,gBAAAP,EAACW,KAAS,OAAOd,EAAM,OAAOU,IAAyB,eAAe,OAAO,GAAG;AAAA,UAAA;AAAA,QAClF;AAAA,QACA,gBAAAP,EAACY,KAAK,WAAU,YAAW,QAAO,SAC/B,UAAAT,EAAK,eACR;AAAA,QACA,gBAAAH;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,SAASJ;AAAA,YACT,OAAM;AAAA,YACN,UAAUE;AAAA,YAEV,UAAA,gBAAAR,EAACa,KAAU,OAAOhB,EAAM,OAAOW,IAAyB,eAAe,OAAO,GAAG;AAAA,UAAA;AAAA,QACnF;AAAA,MAAA,GACF;AAAA,IAAA;AAAA,EAAA,EAGN,CAAA,EACF,CAAA;AAEJ,GAEAM,IAAerB;"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
2
|
-
import
|
3
|
-
import { STUDENT_GRADE_OPTIONS as
|
4
|
-
import { InputWrapper as
|
2
|
+
import a from "../../../../ui/text/text.js";
|
3
|
+
import { STUDENT_GRADE_OPTIONS as c } from "../../signup-constants.js";
|
4
|
+
import { InputWrapper as p } from "../input-wrapper/input-wrapper.js";
|
5
5
|
import { GradeListWrapper as $, GradeItem as l } from "./grade-input-styled.js";
|
6
|
-
const m = ({ value: n, onChange: d, error: i }) => /* @__PURE__ */ r(
|
6
|
+
const m = ({ value: n, onChange: d, error: i }) => /* @__PURE__ */ r(p, { helperText: i, children: /* @__PURE__ */ r($, { $flexDirection: "row", $flexWrap: !0, $flexGapX: 1, children: [...c].map(({ label: o, value: e }) => {
|
7
7
|
const t = e === n;
|
8
8
|
return /* @__PURE__ */ r(
|
9
9
|
l,
|
@@ -17,9 +17,9 @@ const m = ({ value: n, onChange: d, error: i }) => /* @__PURE__ */ r(c, { helper
|
|
17
17
|
$justifyContent: "center",
|
18
18
|
$background: t ? "WHITE" : "REAL_BLACK",
|
19
19
|
$borderColor: t ? "WHITE" : "BLACK_5",
|
20
|
-
$width: e === "
|
20
|
+
$width: e === "-1" ? 96 : 40,
|
21
21
|
$height: 40,
|
22
|
-
children: /* @__PURE__ */ r(
|
22
|
+
children: /* @__PURE__ */ r(a, { $align: "center", $renderAs: "ab1", children: o })
|
23
23
|
},
|
24
24
|
e
|
25
25
|
);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grade-input.js","sources":["../../../../../../src/features/auth/signup/custom-input/grade-input/grade-input.tsx"],"sourcesContent":["import type { ICustomInputProps } from '../custom-input-types';\nimport type { FC } from 'react';\n\nimport Text from '../../../../ui/text/text';\nimport { STUDENT_GRADE_OPTIONS } from '../../signup-constants';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\nimport * as Styled from './grade-input-styled';\n\nconst GradeInput: FC<ICustomInputProps> = ({ value, onChange, error }) => {\n return (\n <InputWrapper helperText={error}>\n <Styled.GradeListWrapper $flexDirection=\"row\" $flexWrap $flexGapX={1}>\n {[...STUDENT_GRADE_OPTIONS].map(({ label, value: optionVal }) => {\n const isSelected = optionVal === value;\n\n return (\n <Styled.GradeItem\n key={optionVal}\n selected={isSelected}\n onClick={() => onChange(optionVal)}\n $borderRadius={48}\n $gutter={13}\n $gap={6}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background={isSelected ? 'WHITE' : 'REAL_BLACK'}\n $borderColor={isSelected ? 'WHITE' : 'BLACK_5'}\n $width={optionVal === '
|
1
|
+
{"version":3,"file":"grade-input.js","sources":["../../../../../../src/features/auth/signup/custom-input/grade-input/grade-input.tsx"],"sourcesContent":["import type { ICustomInputProps } from '../custom-input-types';\nimport type { FC } from 'react';\n\nimport Text from '../../../../ui/text/text';\nimport { STUDENT_GRADE_OPTIONS } from '../../signup-constants';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\nimport * as Styled from './grade-input-styled';\n\nconst GradeInput: FC<ICustomInputProps> = ({ value, onChange, error }) => {\n return (\n <InputWrapper helperText={error}>\n <Styled.GradeListWrapper $flexDirection=\"row\" $flexWrap $flexGapX={1}>\n {[...STUDENT_GRADE_OPTIONS].map(({ label, value: optionVal }) => {\n const isSelected = optionVal === value;\n\n return (\n <Styled.GradeItem\n key={optionVal}\n selected={isSelected}\n onClick={() => onChange(optionVal)}\n $borderRadius={48}\n $gutter={13}\n $gap={6}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background={isSelected ? 'WHITE' : 'REAL_BLACK'}\n $borderColor={isSelected ? 'WHITE' : 'BLACK_5'}\n $width={optionVal === '-1' ? 96 : 40}\n $height={40}\n >\n <Text $align=\"center\" $renderAs=\"ab1\">\n {label}\n </Text>\n </Styled.GradeItem>\n );\n })}\n </Styled.GradeListWrapper>\n </InputWrapper>\n );\n};\n\nexport default GradeInput;\n"],"names":["GradeInput","value","onChange","error","jsx","InputWrapper","Styled.GradeListWrapper","STUDENT_GRADE_OPTIONS","label","optionVal","isSelected","Styled.GradeItem","Text","GradeInput$1"],"mappings":";;;;;AAQA,MAAMA,IAAoC,CAAC,EAAE,OAAAC,GAAO,UAAAC,GAAU,OAAAC,QAE1D,gBAAAC,EAACC,GAAa,EAAA,YAAYF,GACxB,UAAA,gBAAAC,EAACE,GAAA,EAAwB,gBAAe,OAAM,WAAS,IAAC,WAAW,GAChE,UAAA,CAAC,GAAGC,CAAqB,EAAE,IAAI,CAAC,EAAE,OAAAC,GAAO,OAAOC,EAAA,MAAgB;AAC/D,QAAMC,IAAaD,MAAcR;AAG/B,SAAA,gBAAAG;AAAA,IAACO;AAAAA,IAAA;AAAA,MAEC,UAAUD;AAAA,MACV,SAAS,MAAMR,EAASO,CAAS;AAAA,MACjC,eAAe;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,MACN,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAaC,IAAa,UAAU;AAAA,MACpC,cAAcA,IAAa,UAAU;AAAA,MACrC,QAAQD,MAAc,OAAO,KAAK;AAAA,MAClC,SAAS;AAAA,MAET,4BAACG,GAAK,EAAA,QAAO,UAAS,WAAU,OAC7B,UACHJ,GAAA;AAAA,IAAA;AAAA,IAfKC;AAAA,EAAA;AAgBP,CAEH,GACH,EACF,CAAA,GAIJI,IAAeb;"}
|
@@ -1,33 +1,33 @@
|
|
1
|
-
import { jsxs as r,
|
2
|
-
import { LOTTIE as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import { InputWrapper as
|
8
|
-
const
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { LOTTIE as h } from "../../../../../assets/lottie/lottie.js";
|
3
|
+
import t from "../../../../ui/layout/flex-view.js";
|
4
|
+
import c from "../../../../ui/lottie-animation/lottie-animation.js";
|
5
|
+
import i from "../../../../ui/separator/separator.js";
|
6
|
+
import a from "../../../../ui/text/text.js";
|
7
|
+
import { InputWrapper as s, ContentWrapper as l } from "./input-wrapper-styled.js";
|
8
|
+
const T = ({
|
9
9
|
children: p,
|
10
|
-
helperText:
|
11
|
-
actionElement:
|
10
|
+
helperText: n,
|
11
|
+
actionElement: o,
|
12
12
|
isLoading: m
|
13
|
-
}) => /* @__PURE__ */ r(
|
13
|
+
}) => /* @__PURE__ */ r(s, { children: [
|
14
14
|
p,
|
15
|
-
/* @__PURE__ */ r(
|
16
|
-
|
17
|
-
/* @__PURE__ */ e(
|
18
|
-
/* @__PURE__ */ e(
|
15
|
+
/* @__PURE__ */ r(l, { $alignItems: "center", $justifyContent: "center", children: [
|
16
|
+
n && /* @__PURE__ */ r(t, { $gutterX: 3.5, children: [
|
17
|
+
/* @__PURE__ */ e(a, { $renderAs: "ub3", $color: "WHITE_T_60", $align: "center", $whiteSpace: "pre-line", children: n }),
|
18
|
+
/* @__PURE__ */ e(i, { heightX: 0.5 })
|
19
19
|
] }),
|
20
|
-
|
21
|
-
|
22
|
-
/* @__PURE__ */ e(
|
20
|
+
o && /* @__PURE__ */ r(t, { $justifyContent: "center", $alignItems: "center", children: [
|
21
|
+
o,
|
22
|
+
/* @__PURE__ */ e(i, { heightX: 1 })
|
23
23
|
] }),
|
24
|
-
m && /* @__PURE__ */ r(
|
25
|
-
/* @__PURE__ */ e(
|
26
|
-
/* @__PURE__ */ e(
|
24
|
+
m && /* @__PURE__ */ r(t, { children: [
|
25
|
+
/* @__PURE__ */ e(i, { heightX: 2 }),
|
26
|
+
/* @__PURE__ */ e(c, { src: h.SPINNER_WHITE, height: 20, width: 40 })
|
27
27
|
] })
|
28
28
|
] })
|
29
29
|
] });
|
30
30
|
export {
|
31
|
-
|
31
|
+
T as InputWrapper
|
32
32
|
};
|
33
33
|
//# sourceMappingURL=input-wrapper.js.map
|
@@ -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
|
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;"}
|
@@ -42,7 +42,7 @@ const b = ({
|
|
42
42
|
onKeyDown: m
|
43
43
|
}
|
44
44
|
),
|
45
|
-
/* @__PURE__ */ t(g, { label: "password-toggle", onClick: () => c((e) => !e), children: s ? /* @__PURE__ */ t(
|
45
|
+
/* @__PURE__ */ t(g, { label: "password-toggle", onClick: () => c((e) => !e), children: s ? /* @__PURE__ */ t(w, { color: "WHITE", width: 24, height: 24 }) : /* @__PURE__ */ t(I, { color: "WHITE", width: 24, height: 24 }) })
|
46
46
|
]
|
47
47
|
}
|
48
48
|
) });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"student-password.js","sources":["../../../../../../src/features/auth/signup/custom-input/student-password/student-password.tsx"],"sourcesContent":["import type { ICustomInputProps } from '../custom-input-types';\n\nimport { useCallback, useState, type FC, type KeyboardEvent } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport EyeIcon from '../../../../../assets/line-icons/icons/eye';\nimport StrikedEyeIcon from '../../../../../assets/line-icons/icons/striked-eye';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport * as Styled from '../custom-input-styled';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\n\nconst StudentPasswordInput: FC<ICustomInputProps> = ({\n onEnter,\n value,\n onChange,\n error,\n helperText,\n}) => {\n const theme = useTheme();\n const [isVisible, setIsVisible] = useState(false);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter') {\n onEnter?.();\n }\n },\n [onEnter],\n );\n\n return (\n <InputWrapper helperText={error || helperText}>\n <Styled.PasswordInputWrapper\n $width={220}\n $alignItems=\"center\"\n $flexDirection=\"row\"\n $flexGapX={0.5}\n >\n <Styled.CustomInput\n value={value}\n onChange={event => onChange(event.target.value)}\n autoFocus\n placeholder=\"password\"\n align=\"left\"\n color={theme.colors?.[error ? 'RED' : 'WHITE']}\n autoCapitalize=\"none\"\n type={isVisible ? 'text' : 'password'}\n onKeyDown={handleKeyDown}\n />\n <Clickable label=\"password-toggle\" onClick={() => setIsVisible(prev => !prev)}>\n {isVisible ? (\n <StrikedEyeIcon color=\"WHITE\" width={24} height={24} />\n ) : (\n <EyeIcon color=\"WHITE\" width={24} height={24} />\n )}\n </Clickable>\n </Styled.PasswordInputWrapper>\n </InputWrapper>\n );\n};\n\nexport default StudentPasswordInput;\n"],"names":["StudentPasswordInput","onEnter","value","onChange","error","helperText","theme","useTheme","isVisible","setIsVisible","useState","handleKeyDown","useCallback","event","jsx","InputWrapper","jsxs","Styled.PasswordInputWrapper","Styled.CustomInput","_a","Clickable","prev","
|
1
|
+
{"version":3,"file":"student-password.js","sources":["../../../../../../src/features/auth/signup/custom-input/student-password/student-password.tsx"],"sourcesContent":["import type { ICustomInputProps } from '../custom-input-types';\n\nimport { useCallback, useState, type FC, type KeyboardEvent } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport EyeIcon from '../../../../../assets/line-icons/icons/eye';\nimport StrikedEyeIcon from '../../../../../assets/line-icons/icons/striked-eye';\nimport Clickable from '../../../../ui/buttons/clickable/clickable';\nimport * as Styled from '../custom-input-styled';\nimport { InputWrapper } from '../input-wrapper/input-wrapper';\n\nconst StudentPasswordInput: FC<ICustomInputProps> = ({\n onEnter,\n value,\n onChange,\n error,\n helperText,\n}) => {\n const theme = useTheme();\n const [isVisible, setIsVisible] = useState(false);\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === 'Enter') {\n onEnter?.();\n }\n },\n [onEnter],\n );\n\n return (\n <InputWrapper helperText={error || helperText}>\n <Styled.PasswordInputWrapper\n $width={220}\n $alignItems=\"center\"\n $flexDirection=\"row\"\n $flexGapX={0.5}\n >\n <Styled.CustomInput\n value={value}\n onChange={event => onChange(event.target.value)}\n autoFocus\n placeholder=\"password\"\n align=\"left\"\n color={theme.colors?.[error ? 'RED' : 'WHITE']}\n autoCapitalize=\"none\"\n type={isVisible ? 'text' : 'password'}\n onKeyDown={handleKeyDown}\n />\n <Clickable label=\"password-toggle\" onClick={() => setIsVisible(prev => !prev)}>\n {!isVisible ? (\n <StrikedEyeIcon color=\"WHITE\" width={24} height={24} />\n ) : (\n <EyeIcon color=\"WHITE\" width={24} height={24} />\n )}\n </Clickable>\n </Styled.PasswordInputWrapper>\n </InputWrapper>\n );\n};\n\nexport default StudentPasswordInput;\n"],"names":["StudentPasswordInput","onEnter","value","onChange","error","helperText","theme","useTheme","isVisible","setIsVisible","useState","handleKeyDown","useCallback","event","jsx","InputWrapper","jsxs","Styled.PasswordInputWrapper","Styled.CustomInput","_a","Clickable","prev","EyeIcon","StrikedEyeIcon","StudentPasswordInput$1"],"mappings":";;;;;;;;AAWA,MAAMA,IAA8C,CAAC;AAAA,EACnD,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,YAAAC;AACF,MAAM;;AACJ,QAAMC,IAAQC,KACR,CAACC,GAAWC,CAAY,IAAIC,EAAS,EAAK,GAE1CC,IAAgBC;AAAA,IACpB,CAACC,MAA2C;AACtC,MAAAA,EAAM,QAAQ,YACNZ,KAAA,QAAAA;AAAA,IAEd;AAAA,IACA,CAACA,CAAO;AAAA,EAAA;AAGV,SACG,gBAAAa,EAAAC,GAAA,EAAa,YAAYX,KAASC,GACjC,UAAA,gBAAAW;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,QAAQ;AAAA,MACR,aAAY;AAAA,MACZ,gBAAe;AAAA,MACf,WAAW;AAAA,MAEX,UAAA;AAAA,QAAA,gBAAAH;AAAA,UAACI;AAAAA,UAAA;AAAA,YACC,OAAAhB;AAAA,YACA,UAAU,CAAAW,MAASV,EAASU,EAAM,OAAO,KAAK;AAAA,YAC9C,WAAS;AAAA,YACT,aAAY;AAAA,YACZ,OAAM;AAAA,YACN,QAAOM,IAAAb,EAAM,WAAN,gBAAAa,EAAef,IAAQ,QAAQ;AAAA,YACtC,gBAAe;AAAA,YACf,MAAMI,IAAY,SAAS;AAAA,YAC3B,WAAWG;AAAA,UAAA;AAAA,QACb;AAAA,QACC,gBAAAG,EAAAM,GAAA,EAAU,OAAM,mBAAkB,SAAS,MAAMX,EAAa,CAAAY,MAAQ,CAACA,CAAI,GACzE,UAACb,IAGA,gBAAAM,EAACQ,GAAQ,EAAA,OAAM,SAAQ,OAAO,IAAI,QAAQ,GAAI,CAAA,IAF7C,gBAAAR,EAAAS,GAAA,EAAe,OAAM,SAAQ,OAAO,IAAI,QAAQ,GAAI,CAAA,GAIzD;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEAC,IAAexB;"}
|
@@ -1,38 +1,38 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { useCallback as
|
3
|
-
import { useTheme as
|
4
|
-
import { CustomInput as
|
5
|
-
import { InputWrapper as
|
6
|
-
const
|
7
|
-
value:
|
8
|
-
onChange:
|
9
|
-
error:
|
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
|
+
import { CustomInput as h } from "../custom-input-styled.js";
|
5
|
+
import { InputWrapper as d } from "../input-wrapper/input-wrapper.js";
|
6
|
+
const I = ({
|
7
|
+
value: a,
|
8
|
+
onChange: m,
|
9
|
+
error: t,
|
10
10
|
helperText: s,
|
11
|
-
isLoading:
|
12
|
-
onEnter: e
|
11
|
+
isLoading: u,
|
12
|
+
onEnter: e,
|
13
|
+
isValid: n
|
13
14
|
}) => {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
t.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
|
-
);
|
21
|
-
return /* @__PURE__ */
|
22
|
-
|
20
|
+
), c = n ? "GREEN_4" : "WHITE";
|
21
|
+
return /* @__PURE__ */ r(d, { helperText: t || s, isLoading: u, children: /* @__PURE__ */ r(
|
22
|
+
h,
|
23
23
|
{
|
24
|
-
value:
|
25
|
-
onChange: (
|
24
|
+
value: a,
|
25
|
+
onChange: (o) => m(o.target.value),
|
26
26
|
autoFocus: !0,
|
27
27
|
placeholder: "username_1412",
|
28
|
-
color:
|
28
|
+
color: p.colors[t ? "RED" : c],
|
29
29
|
autoCapitalize: "none",
|
30
30
|
textTransform: "lowercase",
|
31
31
|
onKeyDown: l
|
32
32
|
}
|
33
33
|
) });
|
34
|
-
},
|
34
|
+
}, D = I;
|
35
35
|
export {
|
36
|
-
|
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}) => {\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 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
|
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;"}
|