@cuemath/leap 2.9.5-j4 → 2.9.5-j6
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/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/login/social-account-not-found/social-account-not-found.js +46 -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.js +7 -7
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- 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 +25 -6
- package/dist/index.js +347 -343
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,60 +1,63 @@
|
|
1
|
-
import { jsx as
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
2
2
|
import { useTheme as z } from "styled-components";
|
3
|
-
import { Container as A, Wrapper as f, InputWrapper as L, Error as
|
4
|
-
const
|
3
|
+
import { Container as A, Wrapper as f, InputWrapper as L, Error as x, SiblingWrapper as y, Label as E } from "./base-input-styled.js";
|
4
|
+
const k = ($) => {
|
5
5
|
const {
|
6
6
|
label: t,
|
7
|
-
stickyLabel:
|
8
|
-
renderAs:
|
9
|
-
width:
|
7
|
+
stickyLabel: p,
|
8
|
+
renderAs: s,
|
9
|
+
width: c,
|
10
10
|
widthX: b,
|
11
|
-
disabled:
|
12
|
-
willShowMessage:
|
13
|
-
inputElement:
|
14
|
-
siblingElement:
|
15
|
-
siblingPosition:
|
11
|
+
disabled: i,
|
12
|
+
willShowMessage: m,
|
13
|
+
inputElement: u,
|
14
|
+
siblingElement: o,
|
15
|
+
siblingPosition: w,
|
16
16
|
size: e,
|
17
17
|
errorMessage: d,
|
18
|
-
mandatory:
|
18
|
+
mandatory: T,
|
19
19
|
shape: n,
|
20
|
-
isTransparent:
|
21
|
-
|
22
|
-
|
20
|
+
isTransparent: h = !1,
|
21
|
+
colorTheme: a
|
22
|
+
} = $, { input: g } = z();
|
23
|
+
return /* @__PURE__ */ r(A, { $width: c, $widthX: b, $size: e, $willShowMessage: m, children: /* @__PURE__ */ l(
|
23
24
|
f,
|
24
25
|
{
|
25
|
-
$renderAs:
|
26
|
+
$renderAs: s,
|
26
27
|
$size: e,
|
27
|
-
$disabled:
|
28
|
+
$disabled: i,
|
28
29
|
$shape: n,
|
29
|
-
$isTransparent:
|
30
|
+
$isTransparent: h,
|
31
|
+
$colorTheme: a,
|
30
32
|
children: [
|
31
|
-
/* @__PURE__ */
|
32
|
-
|
33
|
-
d && /* @__PURE__ */
|
33
|
+
/* @__PURE__ */ l(L, { children: [
|
34
|
+
u,
|
35
|
+
d && /* @__PURE__ */ r(x, { $renderAs: "body3", $colorTheme: a, children: d })
|
34
36
|
] }),
|
35
|
-
|
36
|
-
|
37
|
+
o ? /* @__PURE__ */ r(
|
38
|
+
y,
|
37
39
|
{
|
38
|
-
$inputRenderAs:
|
39
|
-
$disabled:
|
40
|
+
$inputRenderAs: s,
|
41
|
+
$disabled: i,
|
40
42
|
$size: e,
|
41
|
-
$siblingPosition:
|
42
|
-
children:
|
43
|
+
$siblingPosition: w ?? "right",
|
44
|
+
children: o
|
43
45
|
}
|
44
46
|
) : void 0,
|
45
|
-
t && n !== "curved" && /* @__PURE__ */
|
46
|
-
|
47
|
+
t && n !== "curved" && /* @__PURE__ */ l(
|
48
|
+
E,
|
47
49
|
{
|
48
50
|
$renderAs: g.sizes[e].labelTextVariant,
|
49
|
-
$inputRenderAs:
|
51
|
+
$inputRenderAs: s,
|
50
52
|
$size: e,
|
51
|
-
$stickyLabel:
|
52
|
-
$disabled:
|
53
|
+
$stickyLabel: p,
|
54
|
+
$disabled: i,
|
53
55
|
$shape: n,
|
54
|
-
$isTransparent:
|
56
|
+
$isTransparent: h,
|
57
|
+
$colorTheme: a,
|
55
58
|
children: [
|
56
59
|
t,
|
57
|
-
|
60
|
+
T && /* @__PURE__ */ r("span", { children: "*" })
|
58
61
|
]
|
59
62
|
}
|
60
63
|
)
|
@@ -63,6 +66,6 @@ const j = (p) => {
|
|
63
66
|
) });
|
64
67
|
};
|
65
68
|
export {
|
66
|
-
|
69
|
+
k as default
|
67
70
|
};
|
68
71
|
//# sourceMappingURL=base-input.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base-input.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input.tsx"],"sourcesContent":["import type { IBaseInputProps } from './base-input-types';\n\nimport React from 'react';\nimport { useTheme } from 'styled-components';\n\nimport {\n Container,\n Error,\n InputWrapper,\n Label,\n SiblingWrapper,\n Wrapper,\n} from './base-input-styled';\n\nconst BaseInput: React.FC<IBaseInputProps> = props => {\n const {\n label,\n stickyLabel,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n inputElement,\n siblingElement,\n siblingPosition,\n size,\n errorMessage,\n mandatory,\n shape,\n isTransparent = false,\n } = props;\n const { input } = useTheme();\n const showLabel = label && shape !== 'curved';\n\n return (\n <Container $width={width} $widthX={widthX} $size={size} $willShowMessage={willShowMessage}>\n <Wrapper\n $renderAs={renderAs}\n $size={size}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n >\n <InputWrapper>\n {inputElement}\n {errorMessage && <Error $renderAs=\"body3\"
|
1
|
+
{"version":3,"file":"base-input.js","sources":["../../../../../src/features/ui/inputs/base-input/base-input.tsx"],"sourcesContent":["import type { IBaseInputProps } from './base-input-types';\n\nimport React from 'react';\nimport { useTheme } from 'styled-components';\n\nimport {\n Container,\n Error,\n InputWrapper,\n Label,\n SiblingWrapper,\n Wrapper,\n} from './base-input-styled';\n\nconst BaseInput: React.FC<IBaseInputProps> = props => {\n const {\n label,\n stickyLabel,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n inputElement,\n siblingElement,\n siblingPosition,\n size,\n errorMessage,\n mandatory,\n shape,\n isTransparent = false,\n colorTheme,\n } = props;\n const { input } = useTheme();\n const showLabel = label && shape !== 'curved';\n\n return (\n <Container $width={width} $widthX={widthX} $size={size} $willShowMessage={willShowMessage}>\n <Wrapper\n $renderAs={renderAs}\n $size={size}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n $colorTheme={colorTheme}\n >\n <InputWrapper>\n {inputElement}\n {errorMessage && (\n <Error $renderAs=\"body3\" $colorTheme={colorTheme}>\n {errorMessage}\n </Error>\n )}\n </InputWrapper>\n {siblingElement ? (\n <SiblingWrapper\n $inputRenderAs={renderAs}\n $disabled={disabled}\n $size={size}\n $siblingPosition={siblingPosition ?? 'right'}\n >\n {siblingElement}\n </SiblingWrapper>\n ) : undefined}\n {showLabel && (\n <Label\n $renderAs={input.sizes[size].labelTextVariant}\n $inputRenderAs={renderAs}\n $size={size}\n $stickyLabel={stickyLabel}\n $disabled={disabled}\n $shape={shape}\n $isTransparent={isTransparent}\n $colorTheme={colorTheme}\n >\n {label}\n {mandatory && <span>*</span>}\n </Label>\n )}\n </Wrapper>\n </Container>\n );\n};\n\nexport default BaseInput;\n"],"names":["BaseInput","props","label","stickyLabel","renderAs","width","widthX","disabled","willShowMessage","inputElement","siblingElement","siblingPosition","size","errorMessage","mandatory","shape","isTransparent","colorTheme","input","useTheme","jsx","Container","jsxs","Wrapper","InputWrapper","Error","SiblingWrapper","Label"],"mappings":";;;AAcA,MAAMA,IAAuC,CAASC,MAAA;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,YAAAC;AAAA,EACE,IAAAhB,GACE,EAAE,OAAAiB,MAAUC;AAIhB,SAAA,gBAAAC,EAACC,KAAU,QAAQhB,GAAO,SAASC,GAAQ,OAAOM,GAAM,kBAAkBJ,GACxE,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,WAAWnB;AAAA,MACX,OAAOQ;AAAA,MACP,WAAWL;AAAA,MACX,QAAQQ;AAAA,MACR,gBAAgBC;AAAA,MAChB,aAAaC;AAAA,MAEb,UAAA;AAAA,QAAA,gBAAAK,EAACE,GACE,EAAA,UAAA;AAAA,UAAAf;AAAA,UACAI,KACE,gBAAAO,EAAAK,GAAA,EAAM,WAAU,SAAQ,aAAaR,GACnC,UACHJ,GAAA;AAAA,QAAA,GAEJ;AAAA,QACCH,IACC,gBAAAU;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,gBAAgBtB;AAAA,YAChB,WAAWG;AAAA,YACX,OAAOK;AAAA,YACP,kBAAkBD,KAAmB;AAAA,YAEpC,UAAAD;AAAA,UAAA;AAAA,QAED,IAAA;AAAA,QA7BQR,KAASa,MAAU,YA+B7B,gBAAAO;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,WAAWT,EAAM,MAAMN,CAAI,EAAE;AAAA,YAC7B,gBAAgBR;AAAA,YAChB,OAAOQ;AAAA,YACP,cAAcT;AAAA,YACd,WAAWI;AAAA,YACX,QAAQQ;AAAA,YACR,gBAAgBC;AAAA,YAChB,aAAaC;AAAA,YAEZ,UAAA;AAAA,cAAAf;AAAA,cACAY,KAAc,gBAAAM,EAAA,QAAA,EAAK,UAAC,IAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACvB;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN,EAAA,CAAA;AAEJ;"}
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
2
|
-
const
|
3
|
-
|
4
|
-
|
1
|
+
import g from "styled-components";
|
2
|
+
const x = g.input(
|
3
|
+
({ theme: p, $size: s, $renderAs: a, $isTransparent: d, $colorTheme: u }) => {
|
4
|
+
const { colors: o, input: t, text: $ } = p, { valueColorName: n, labelColorName: r, backgroundColorName: b } = u === "dark" ? t.darkVariants[a] : t.variants[a], { inputTextVariant: h } = t.sizes[s], { fontFamily: i, fontSize: l, lineHeight: c, letterSpacing: e } = $[h], f = d ? "transparent" : o[b ?? "WHITE"];
|
5
|
+
return `
|
5
6
|
position: relative;
|
6
7
|
width: 100%;
|
7
8
|
height: 100%;
|
@@ -10,24 +11,24 @@ const m = f.input(({ theme: c, $size: p, $renderAs: s, $isTransparent: d }) => {
|
|
10
11
|
outline: none;
|
11
12
|
|
12
13
|
font-family: ${i};
|
13
|
-
font-size: ${
|
14
|
-
line-height: ${
|
15
|
-
${typeof
|
14
|
+
font-size: ${l}px;
|
15
|
+
line-height: ${c}px;
|
16
|
+
${typeof e == "number" ? `letter-spacing: ${e}px;` : ""}
|
16
17
|
|
17
18
|
|
18
|
-
background-color: ${
|
19
|
-
color: ${
|
19
|
+
background-color: ${f};
|
20
|
+
color: ${o[n.inactive]};
|
20
21
|
|
21
22
|
&::placeholder {
|
22
|
-
color: ${
|
23
|
+
color: ${o[r.inactive]};
|
23
24
|
font-family: ${i};
|
24
|
-
font-size: ${
|
25
|
-
line-height: ${
|
26
|
-
${typeof
|
25
|
+
font-size: ${l}px;
|
26
|
+
line-height: ${c}px;
|
27
|
+
${typeof e == "number" ? `letter-spacing: ${e}px;` : ""}
|
27
28
|
}
|
28
29
|
|
29
30
|
&:hover, &:focus {
|
30
|
-
color: ${
|
31
|
+
color: ${o[n.active]};
|
31
32
|
}
|
32
33
|
|
33
34
|
&:read-only {
|
@@ -35,16 +36,16 @@ const m = f.input(({ theme: c, $size: p, $renderAs: s, $isTransparent: d }) => {
|
|
35
36
|
}
|
36
37
|
|
37
38
|
&:disabled {
|
38
|
-
color: ${
|
39
|
+
color: ${o[n.disabled]};
|
39
40
|
cursor: not-allowed;
|
40
41
|
|
41
42
|
&::placeholder {
|
42
|
-
color: ${
|
43
|
+
color: ${o[r.disabled]};
|
43
44
|
}
|
44
45
|
}
|
45
46
|
|
46
47
|
&:hover:not([disabled, focused])::placeholder {
|
47
|
-
color: ${
|
48
|
+
color: ${o[r.active]};
|
48
49
|
}
|
49
50
|
|
50
51
|
&:focus::placeholder {
|
@@ -57,12 +58,13 @@ const m = f.input(({ theme: c, $size: p, $renderAs: s, $isTransparent: d }) => {
|
|
57
58
|
margin: 0;
|
58
59
|
}
|
59
60
|
&[type="date"]:not(:placeholder-shown){
|
60
|
-
color: ${
|
61
|
+
color: ${o.BLACK_T_60};
|
61
62
|
text-transform: uppercase;
|
62
63
|
}
|
63
64
|
`;
|
64
|
-
}
|
65
|
+
}
|
66
|
+
);
|
65
67
|
export {
|
66
|
-
|
68
|
+
x as Input
|
67
69
|
};
|
68
70
|
//# sourceMappingURL=text-input-styled.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-input-styled.js","sources":["../../../../../src/features/ui/inputs/text-input/text-input-styled.ts"],"sourcesContent":["import type { IBaseInputProps } from '../base-input/base-input-types';\nimport type { ITextInputProps } from './text-input-types';\n\nimport styled from 'styled-components';\n\ninterface IInputProps {\n $renderAs: ITextInputProps['renderAs'];\n $size: IBaseInputProps['size'];\n $isTransparent?: IBaseInputProps['isTransparent'];\n}\n\nconst Input = styled.input<IInputProps>(({ theme, $size, $renderAs, $isTransparent }) => {\n
|
1
|
+
{"version":3,"file":"text-input-styled.js","sources":["../../../../../src/features/ui/inputs/text-input/text-input-styled.ts"],"sourcesContent":["import type { IBaseInputProps } from '../base-input/base-input-types';\nimport type { ITextInputProps } from './text-input-types';\n\nimport styled from 'styled-components';\n\ninterface IInputProps {\n $renderAs: ITextInputProps['renderAs'];\n $size: IBaseInputProps['size'];\n $isTransparent?: IBaseInputProps['isTransparent'];\n $colorTheme?: IBaseInputProps['colorTheme'];\n}\n\nconst Input = styled.input<IInputProps>(\n ({ theme, $size, $renderAs, $isTransparent, $colorTheme }) => {\n const { colors, input, text } = theme;\n const { valueColorName, labelColorName, backgroundColorName } =\n $colorTheme === 'dark' ? input.darkVariants[$renderAs] : input.variants[$renderAs];\n const { inputTextVariant } = input.sizes[$size];\n const { fontFamily, fontSize, lineHeight, letterSpacing } = text[inputTextVariant];\n const background = $isTransparent ? 'transparent' : colors[backgroundColorName ?? 'WHITE'];\n\n return `\n position: relative;\n width: 100%;\n height: 100%;\n border: 0;\n padding: 0;\n outline: none;\n\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n line-height: ${lineHeight}px;\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n\n \n background-color: ${background};\n color: ${colors[valueColorName.inactive]};\n \n &::placeholder {\n color: ${colors[labelColorName.inactive]};\n font-family: ${fontFamily};\n font-size: ${fontSize}px;\n line-height: ${lineHeight}px;\n ${typeof letterSpacing === 'number' ? `letter-spacing: ${letterSpacing}px;` : ''}\n }\n\n &:hover, &:focus {\n color: ${colors[valueColorName.active]};\n }\n\n &:read-only {\n cursor: pointer;\n }\n \n &:disabled {\n color: ${colors[valueColorName.disabled]};\n cursor: not-allowed;\n\n &::placeholder {\n color: ${colors[labelColorName.disabled]};\n }\n }\n \n &:hover:not([disabled, focused])::placeholder {\n color: ${colors[labelColorName.active]};\n }\n\n &:focus::placeholder {\n color: transparent;\n }\n\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n &[type=\"date\"]:not(:placeholder-shown){\n color: ${colors.BLACK_T_60};\n text-transform: uppercase;\n }\n `;\n },\n);\n\nexport { Input };\n"],"names":["Input","styled","theme","$size","$renderAs","$isTransparent","$colorTheme","colors","input","text","valueColorName","labelColorName","backgroundColorName","inputTextVariant","fontFamily","fontSize","lineHeight","letterSpacing","background"],"mappings":";AAYA,MAAMA,IAAQC,EAAO;AAAA,EACnB,CAAC,EAAE,OAAAC,GAAO,OAAAC,GAAO,WAAAC,GAAW,gBAAAC,GAAgB,aAAAC,QAAkB;AAC5D,UAAM,EAAE,QAAAC,GAAQ,OAAAC,GAAO,MAAAC,EAAA,IAASP,GAC1B,EAAE,gBAAAQ,GAAgB,gBAAAC,GAAgB,qBAAAC,EACtC,IAAAN,MAAgB,SAASE,EAAM,aAAaJ,CAAS,IAAII,EAAM,SAASJ,CAAS,GAC7E,EAAE,kBAAAS,EAAqB,IAAAL,EAAM,MAAML,CAAK,GACxC,EAAE,YAAAW,GAAY,UAAAC,GAAU,YAAAC,GAAY,eAAAC,MAAkBR,EAAKI,CAAgB,GAC3EK,IAAab,IAAiB,gBAAgBE,EAAOK,KAAuB,OAAO;AAElF,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAQQE,CAAU;AAAA,iBACZC,CAAQ;AAAA,mBACNC,CAAU;AAAA,MACvB,OAAOC,KAAkB,WAAW,mBAAmBA,CAAa,QAAQ,EAAE;AAAA;AAAA;AAAA,wBAG5DC,CAAU;AAAA,aACrBX,EAAOG,EAAe,QAAQ,CAAC;AAAA;AAAA;AAAA,eAG7BH,EAAOI,EAAe,QAAQ,CAAC;AAAA,qBACzBG,CAAU;AAAA,mBACZC,CAAQ;AAAA,qBACNC,CAAU;AAAA,QACvB,OAAOC,KAAkB,WAAW,mBAAmBA,CAAa,QAAQ,EAAE;AAAA;AAAA;AAAA;AAAA,eAIvEV,EAAOG,EAAe,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAQ7BH,EAAOG,EAAe,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA,iBAI7BH,EAAOI,EAAe,QAAQ,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,eAKjCJ,EAAOI,EAAe,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAa7BJ,EAAO,UAAU;AAAA;AAAA;AAAA;AAAA,EAI9B;AACF;"}
|
@@ -1,55 +1,58 @@
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
2
|
-
import { forwardRef as
|
3
|
-
import
|
4
|
-
import { Input as
|
5
|
-
const i = "regular",
|
2
|
+
import { forwardRef as I } from "react";
|
3
|
+
import $ from "../base-input/base-input.js";
|
4
|
+
import { Input as b } from "./text-input-styled.js";
|
5
|
+
const i = "regular", g = I((l, p) => {
|
6
6
|
const {
|
7
7
|
type: e,
|
8
|
-
label:
|
9
|
-
value:
|
10
|
-
renderAs:
|
11
|
-
width:
|
12
|
-
widthX:
|
8
|
+
label: m,
|
9
|
+
value: r,
|
10
|
+
renderAs: t,
|
11
|
+
width: u,
|
12
|
+
widthX: d,
|
13
13
|
disabled: s,
|
14
|
-
willShowMessage:
|
14
|
+
willShowMessage: c,
|
15
15
|
siblingElement: f,
|
16
|
-
errorMessage:
|
17
|
-
shape:
|
18
|
-
isTransparent:
|
19
|
-
|
20
|
-
|
16
|
+
errorMessage: h,
|
17
|
+
shape: T,
|
18
|
+
isTransparent: o,
|
19
|
+
colorTheme: n,
|
20
|
+
...w
|
21
|
+
} = l;
|
21
22
|
return /* @__PURE__ */ a(
|
22
|
-
|
23
|
+
$,
|
23
24
|
{
|
24
|
-
renderAs:
|
25
|
-
label:
|
26
|
-
stickyLabel: !!
|
27
|
-
width:
|
28
|
-
widthX:
|
25
|
+
renderAs: t,
|
26
|
+
label: m,
|
27
|
+
stickyLabel: !!r || e === "date",
|
28
|
+
width: u,
|
29
|
+
widthX: d,
|
29
30
|
disabled: s,
|
30
|
-
willShowMessage:
|
31
|
+
willShowMessage: c,
|
31
32
|
size: i,
|
32
|
-
shape:
|
33
|
-
errorMessage:
|
34
|
-
isTransparent:
|
33
|
+
shape: T,
|
34
|
+
errorMessage: h,
|
35
|
+
isTransparent: o,
|
36
|
+
colorTheme: n,
|
35
37
|
inputElement: /* @__PURE__ */ a(
|
36
|
-
|
38
|
+
b,
|
37
39
|
{
|
38
40
|
ref: p,
|
39
41
|
type: e,
|
40
|
-
value:
|
41
|
-
$renderAs:
|
42
|
+
value: r ?? "",
|
43
|
+
$renderAs: t,
|
42
44
|
$size: i,
|
43
45
|
disabled: s,
|
44
|
-
$isTransparent:
|
45
|
-
|
46
|
+
$isTransparent: o,
|
47
|
+
$colorTheme: n,
|
48
|
+
...w
|
46
49
|
}
|
47
50
|
),
|
48
51
|
siblingElement: f
|
49
52
|
}
|
50
53
|
);
|
51
|
-
}),
|
54
|
+
}), z = g;
|
52
55
|
export {
|
53
|
-
|
56
|
+
z as default
|
54
57
|
};
|
55
58
|
//# sourceMappingURL=text-input.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-input.js","sources":["../../../../../src/features/ui/inputs/text-input/text-input.tsx"],"sourcesContent":["import type { ITextInputProps } from './text-input-types';\nimport type { Ref } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport BaseInput from '../base-input/base-input';\nimport * as Styled from './text-input-styled';\n\nconst SIZE = 'regular';\n\nconst TextInput = forwardRef((props: ITextInputProps, ref: Ref<HTMLInputElement>) => {\n const {\n type,\n label,\n value,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n siblingElement,\n errorMessage,\n shape,\n isTransparent,\n ...rest\n } = props;\n\n return (\n <BaseInput\n renderAs={renderAs}\n label={label}\n stickyLabel={!!value || type === 'date'}\n width={width}\n widthX={widthX}\n disabled={disabled}\n willShowMessage={willShowMessage}\n size={SIZE}\n shape={shape}\n errorMessage={errorMessage}\n isTransparent={isTransparent}\n inputElement={\n <Styled.Input\n ref={ref}\n type={type}\n value={value ?? ''}\n $renderAs={renderAs}\n $size={SIZE}\n disabled={disabled}\n $isTransparent={isTransparent}\n {...rest}\n />\n }\n siblingElement={siblingElement}\n />\n );\n});\n\nexport default TextInput;\n"],"names":["SIZE","TextInput","forwardRef","props","ref","type","label","value","renderAs","width","widthX","disabled","willShowMessage","siblingElement","errorMessage","shape","isTransparent","rest","jsx","BaseInput","Styled.Input","TextInput$1"],"mappings":";;;;AAQA,MAAMA,IAAO,WAEPC,IAAYC,EAAW,CAACC,GAAwBC,MAA+B;AAC7E,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC;AAAA,IACA,GAAGC;AAAA,EACD,
|
1
|
+
{"version":3,"file":"text-input.js","sources":["../../../../../src/features/ui/inputs/text-input/text-input.tsx"],"sourcesContent":["import type { ITextInputProps } from './text-input-types';\nimport type { Ref } from 'react';\n\nimport { forwardRef } from 'react';\n\nimport BaseInput from '../base-input/base-input';\nimport * as Styled from './text-input-styled';\n\nconst SIZE = 'regular';\n\nconst TextInput = forwardRef((props: ITextInputProps, ref: Ref<HTMLInputElement>) => {\n const {\n type,\n label,\n value,\n renderAs,\n width,\n widthX,\n disabled,\n willShowMessage,\n siblingElement,\n errorMessage,\n shape,\n isTransparent,\n colorTheme,\n ...rest\n } = props;\n\n return (\n <BaseInput\n renderAs={renderAs}\n label={label}\n stickyLabel={!!value || type === 'date'}\n width={width}\n widthX={widthX}\n disabled={disabled}\n willShowMessage={willShowMessage}\n size={SIZE}\n shape={shape}\n errorMessage={errorMessage}\n isTransparent={isTransparent}\n colorTheme={colorTheme}\n inputElement={\n <Styled.Input\n ref={ref}\n type={type}\n value={value ?? ''}\n $renderAs={renderAs}\n $size={SIZE}\n disabled={disabled}\n $isTransparent={isTransparent}\n $colorTheme={colorTheme}\n {...rest}\n />\n }\n siblingElement={siblingElement}\n />\n );\n});\n\nexport default TextInput;\n"],"names":["SIZE","TextInput","forwardRef","props","ref","type","label","value","renderAs","width","widthX","disabled","willShowMessage","siblingElement","errorMessage","shape","isTransparent","colorTheme","rest","jsx","BaseInput","Styled.Input","TextInput$1"],"mappings":";;;;AAQA,MAAMA,IAAO,WAEPC,IAAYC,EAAW,CAACC,GAAwBC,MAA+B;AAC7E,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,OAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,GAAGC;AAAA,EACD,IAAAf;AAGF,SAAA,gBAAAgB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAAZ;AAAA,MACA,OAAAF;AAAA,MACA,aAAa,CAAC,CAACC,KAASF,MAAS;AAAA,MACjC,OAAAI;AAAA,MACA,QAAAC;AAAA,MACA,UAAAC;AAAA,MACA,iBAAAC;AAAA,MACA,MAAMZ;AAAA,MACN,OAAAe;AAAA,MACA,cAAAD;AAAA,MACA,eAAAE;AAAA,MACA,YAAAC;AAAA,MACA,cACE,gBAAAE;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,KAAAjB;AAAA,UACA,MAAAC;AAAA,UACA,OAAOE,KAAS;AAAA,UAChB,WAAWC;AAAA,UACX,OAAOR;AAAA,UACP,UAAAW;AAAA,UACA,gBAAgBK;AAAA,UAChB,aAAaC;AAAA,UACZ,GAAGC;AAAA,QAAA;AAAA,MACN;AAAA,MAEF,gBAAAL;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC,GAEDS,IAAerB;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
const n = (a) => {
|
2
|
-
const
|
2
|
+
const o = {
|
3
3
|
regular: {
|
4
4
|
height: a * 2.75,
|
5
5
|
// height of input
|
@@ -51,7 +51,7 @@ const n = (a) => {
|
|
51
51
|
iconPadding: a * 0.5
|
52
52
|
// padding between left of icon and input
|
53
53
|
}
|
54
|
-
},
|
54
|
+
}, e = {
|
55
55
|
valueColorName: {
|
56
56
|
inactive: "BLACK",
|
57
57
|
active: "BLACK",
|
@@ -76,8 +76,8 @@ const n = (a) => {
|
|
76
76
|
disabled: 0.5,
|
77
77
|
enabled: 1
|
78
78
|
}
|
79
|
-
},
|
80
|
-
...
|
79
|
+
}, l = {
|
80
|
+
...e,
|
81
81
|
backgroundColorName: "GREY_1",
|
82
82
|
optionHoverColorName: "WHITE",
|
83
83
|
borderColorName: {
|
@@ -86,11 +86,11 @@ const n = (a) => {
|
|
86
86
|
disabled: "TRANSPARENT"
|
87
87
|
}
|
88
88
|
}, d = {
|
89
|
-
primary:
|
90
|
-
secondary:
|
89
|
+
primary: e,
|
90
|
+
secondary: l,
|
91
91
|
success: {
|
92
|
-
opacity:
|
93
|
-
valueColorName:
|
92
|
+
opacity: e.opacity,
|
93
|
+
valueColorName: e.valueColorName,
|
94
94
|
borderColorName: {
|
95
95
|
inactive: "GREEN_5",
|
96
96
|
active: "GREEN_5",
|
@@ -108,8 +108,8 @@ const n = (a) => {
|
|
108
108
|
}
|
109
109
|
},
|
110
110
|
error: {
|
111
|
-
opacity:
|
112
|
-
valueColorName:
|
111
|
+
opacity: e.opacity,
|
112
|
+
valueColorName: e.valueColorName,
|
113
113
|
borderColorName: {
|
114
114
|
inactive: "RED",
|
115
115
|
active: "RED",
|
@@ -126,8 +126,81 @@ const n = (a) => {
|
|
126
126
|
disabled: "RED"
|
127
127
|
}
|
128
128
|
}
|
129
|
+
}, i = {
|
130
|
+
...e,
|
131
|
+
labelBackgroundColorName: "TRANSPARENT",
|
132
|
+
backgroundColorName: "TRANSPARENT",
|
133
|
+
valueColorName: {
|
134
|
+
inactive: "WHITE",
|
135
|
+
active: "WHITE",
|
136
|
+
disabled: "WHITE_T_10"
|
137
|
+
},
|
138
|
+
borderColorName: {
|
139
|
+
inactive: "WHITE_T_15",
|
140
|
+
active: "WHITE",
|
141
|
+
disabled: "WHITE_T_15"
|
142
|
+
},
|
143
|
+
labelColorName: {
|
144
|
+
inactive: "WHITE_T_60",
|
145
|
+
active: "WHITE_T_60",
|
146
|
+
disabled: "WHITE_T_15"
|
147
|
+
}
|
148
|
+
}, r = {
|
149
|
+
...i,
|
150
|
+
backgroundColorName: "WHITE_T_60",
|
151
|
+
optionHoverColorName: "WHITE",
|
152
|
+
borderColorName: {
|
153
|
+
active: "TRANSPARENT",
|
154
|
+
inactive: "TRANSPARENT",
|
155
|
+
disabled: "TRANSPARENT"
|
156
|
+
}
|
157
|
+
}, N = {
|
158
|
+
primary: i,
|
159
|
+
secondary: r,
|
160
|
+
success: {
|
161
|
+
labelBackgroundColorName: "TRANSPARENT",
|
162
|
+
backgroundColorName: "TRANSPARENT",
|
163
|
+
opacity: i.opacity,
|
164
|
+
valueColorName: i.valueColorName,
|
165
|
+
borderColorName: {
|
166
|
+
inactive: "GREEN_4",
|
167
|
+
active: "GREEN_4",
|
168
|
+
disabled: "GREEN_4"
|
169
|
+
},
|
170
|
+
labelColorName: {
|
171
|
+
inactive: "GREEN_4",
|
172
|
+
active: "GREEN_4",
|
173
|
+
disabled: "GREEN_4"
|
174
|
+
},
|
175
|
+
messageColorName: {
|
176
|
+
inactive: "GREEN_4",
|
177
|
+
active: "GREEN_4",
|
178
|
+
disabled: "GREEN_4"
|
179
|
+
}
|
180
|
+
},
|
181
|
+
error: {
|
182
|
+
labelBackgroundColorName: "TRANSPARENT",
|
183
|
+
backgroundColorName: "TRANSPARENT",
|
184
|
+
opacity: i.opacity,
|
185
|
+
valueColorName: i.valueColorName,
|
186
|
+
borderColorName: {
|
187
|
+
inactive: "ORANGE_4",
|
188
|
+
active: "ORANGE_4",
|
189
|
+
disabled: "ORANGE_4"
|
190
|
+
},
|
191
|
+
labelColorName: {
|
192
|
+
inactive: "ORANGE_4",
|
193
|
+
active: "ORANGE_4",
|
194
|
+
disabled: "ORANGE_4"
|
195
|
+
},
|
196
|
+
messageColorName: {
|
197
|
+
inactive: "ORANGE_4",
|
198
|
+
active: "ORANGE_4",
|
199
|
+
disabled: "ORANGE_4"
|
200
|
+
}
|
201
|
+
}
|
129
202
|
};
|
130
|
-
return { sizes:
|
203
|
+
return { sizes: o, variants: d, darkVariants: N };
|
131
204
|
};
|
132
205
|
export {
|
133
206
|
n as default
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../../../src/features/ui/theme/input.ts"],"sourcesContent":["import type { IInputSizeConfig, IInputVariantConfig, TInputSizes, TInputVariants } from '../types';\n\ninterface IGetInputConfig {\n (gutter: number): {\n sizes: Record<TInputSizes, IInputSizeConfig>;\n variants: Record<TInputVariants, IInputVariantConfig>;\n };\n}\nconst getInputConfig: IGetInputConfig = gutter => {\n const sizes: Record<TInputSizes, IInputSizeConfig> = {\n regular: {\n height: gutter * 2.75, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: gutter * 1.5, // extra space for message comes on bottom of input\n paddingLeft: gutter,\n paddingRight: gutter * 0.75,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'body1',\n labelTextVariant: 'body1',\n messageTextVariant: 'body3',\n iconsize: gutter * 1.5,\n iconPadding: gutter, // padding between left of icon and input\n },\n small: {\n height: gutter * 2.125, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: 0, // extra space for message comes on bottom of input\n paddingLeft: gutter * 0.5,\n paddingRight: gutter * 0.5,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'body3',\n labelTextVariant: 'body3',\n messageTextVariant: 'body3',\n iconsize: gutter * 1.25,\n iconPadding: gutter * 0.5, // padding between left of icon and input\n },\n xsmall: {\n height: gutter * 1.75, // height of input\n marginTop: 0, // extra space when label is on top of input\n marginBottom: 0, // extra space for message comes on bottom of input\n paddingLeft: gutter * 0.75,\n paddingRight: gutter * 0.5,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'body3',\n labelTextVariant: 'body3',\n messageTextVariant: 'body3',\n iconsize: gutter,\n iconPadding: gutter * 0.5, // padding between left of icon and input\n },\n };\n const primaryVariant: IInputVariantConfig = {\n valueColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'BLACK_T_15',\n active: 'BLACK_T_87',\n disabled: 'BLACK_T_15',\n },\n labelColorName: {\n inactive: 'BLACK_75',\n active: 'BLACK',\n disabled: 'BLACK_50',\n },\n messageColorName: {\n inactive: 'BLACK_75',\n active: 'BLACK_75',\n disabled: 'BLACK_50',\n },\n opacity: {\n disabled: 0.5,\n enabled: 1,\n },\n };\n\n const secondaryVariant: IInputVariantConfig = {\n ...primaryVariant,\n backgroundColorName: 'GREY_1',\n optionHoverColorName: 'WHITE',\n borderColorName: {\n active: 'TRANSPARENT',\n inactive: 'TRANSPARENT',\n disabled: 'TRANSPARENT',\n },\n };\n\n const variants: Record<TInputVariants, IInputVariantConfig> = {\n primary: primaryVariant,\n secondary: secondaryVariant,\n success: {\n opacity: primaryVariant.opacity,\n valueColorName: primaryVariant.valueColorName,\n borderColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n labelColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n messageColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n },\n error: {\n opacity: primaryVariant.opacity,\n valueColorName: primaryVariant.valueColorName,\n borderColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n labelColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n messageColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n },\n };\n\n return { sizes, variants };\n};\n\nexport default getInputConfig;\n"],"names":["getInputConfig","gutter","sizes","primaryVariant","secondaryVariant","variants"],"mappings":"
|
1
|
+
{"version":3,"file":"input.js","sources":["../../../../src/features/ui/theme/input.ts"],"sourcesContent":["import type { IInputSizeConfig, IInputVariantConfig, TInputSizes, TInputVariants } from '../types';\n\ninterface IGetInputConfig {\n (gutter: number): {\n sizes: Record<TInputSizes, IInputSizeConfig>;\n variants: Record<TInputVariants, IInputVariantConfig>;\n darkVariants: Record<TInputVariants, IInputVariantConfig>;\n };\n}\nconst getInputConfig: IGetInputConfig = gutter => {\n const sizes: Record<TInputSizes, IInputSizeConfig> = {\n regular: {\n height: gutter * 2.75, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: gutter * 1.5, // extra space for message comes on bottom of input\n paddingLeft: gutter,\n paddingRight: gutter * 0.75,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'body1',\n labelTextVariant: 'body1',\n messageTextVariant: 'body3',\n iconsize: gutter * 1.5,\n iconPadding: gutter, // padding between left of icon and input\n },\n small: {\n height: gutter * 2.125, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: 0, // extra space for message comes on bottom of input\n paddingLeft: gutter * 0.5,\n paddingRight: gutter * 0.5,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'body3',\n labelTextVariant: 'body3',\n messageTextVariant: 'body3',\n iconsize: gutter * 1.25,\n iconPadding: gutter * 0.5, // padding between left of icon and input\n },\n xsmall: {\n height: gutter * 1.75, // height of input\n marginTop: 0, // extra space when label is on top of input\n marginBottom: 0, // extra space for message comes on bottom of input\n paddingLeft: gutter * 0.75,\n paddingRight: gutter * 0.5,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'body3',\n labelTextVariant: 'body3',\n messageTextVariant: 'body3',\n iconsize: gutter,\n iconPadding: gutter * 0.5, // padding between left of icon and input\n },\n };\n const primaryVariant: IInputVariantConfig = {\n valueColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'BLACK_T_15',\n active: 'BLACK_T_87',\n disabled: 'BLACK_T_15',\n },\n labelColorName: {\n inactive: 'BLACK_75',\n active: 'BLACK',\n disabled: 'BLACK_50',\n },\n messageColorName: {\n inactive: 'BLACK_75',\n active: 'BLACK_75',\n disabled: 'BLACK_50',\n },\n opacity: {\n disabled: 0.5,\n enabled: 1,\n },\n };\n\n const secondaryVariant: IInputVariantConfig = {\n ...primaryVariant,\n backgroundColorName: 'GREY_1',\n optionHoverColorName: 'WHITE',\n borderColorName: {\n active: 'TRANSPARENT',\n inactive: 'TRANSPARENT',\n disabled: 'TRANSPARENT',\n },\n };\n\n const variants: Record<TInputVariants, IInputVariantConfig> = {\n primary: primaryVariant,\n secondary: secondaryVariant,\n success: {\n opacity: primaryVariant.opacity,\n valueColorName: primaryVariant.valueColorName,\n borderColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n labelColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n messageColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n },\n error: {\n opacity: primaryVariant.opacity,\n valueColorName: primaryVariant.valueColorName,\n borderColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n labelColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n messageColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n },\n };\n\n const primaryDarkVariant: IInputVariantConfig = {\n ...primaryVariant,\n labelBackgroundColorName: 'TRANSPARENT',\n backgroundColorName: 'TRANSPARENT',\n valueColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE_T_15',\n active: 'WHITE',\n disabled: 'WHITE_T_15',\n },\n labelColorName: {\n inactive: 'WHITE_T_60',\n active: 'WHITE_T_60',\n disabled: 'WHITE_T_15',\n },\n };\n\n const secondaryDarkVariant: IInputVariantConfig = {\n ...primaryDarkVariant,\n backgroundColorName: 'WHITE_T_60',\n optionHoverColorName: 'WHITE',\n borderColorName: {\n active: 'TRANSPARENT',\n inactive: 'TRANSPARENT',\n disabled: 'TRANSPARENT',\n },\n };\n\n const darkVariants: Record<TInputVariants, IInputVariantConfig> = {\n primary: primaryDarkVariant,\n secondary: secondaryDarkVariant,\n success: {\n labelBackgroundColorName: 'TRANSPARENT',\n backgroundColorName: 'TRANSPARENT',\n opacity: primaryDarkVariant.opacity,\n valueColorName: primaryDarkVariant.valueColorName,\n borderColorName: {\n inactive: 'GREEN_4',\n active: 'GREEN_4',\n disabled: 'GREEN_4',\n },\n labelColorName: {\n inactive: 'GREEN_4',\n active: 'GREEN_4',\n disabled: 'GREEN_4',\n },\n messageColorName: {\n inactive: 'GREEN_4',\n active: 'GREEN_4',\n disabled: 'GREEN_4',\n },\n },\n error: {\n labelBackgroundColorName: 'TRANSPARENT',\n backgroundColorName: 'TRANSPARENT',\n opacity: primaryDarkVariant.opacity,\n valueColorName: primaryDarkVariant.valueColorName,\n borderColorName: {\n inactive: 'ORANGE_4',\n active: 'ORANGE_4',\n disabled: 'ORANGE_4',\n },\n labelColorName: {\n inactive: 'ORANGE_4',\n active: 'ORANGE_4',\n disabled: 'ORANGE_4',\n },\n messageColorName: {\n inactive: 'ORANGE_4',\n active: 'ORANGE_4',\n disabled: 'ORANGE_4',\n },\n },\n };\n\n return { sizes, variants, darkVariants };\n};\n\nexport default getInputConfig;\n"],"names":["getInputConfig","gutter","sizes","primaryVariant","secondaryVariant","variants","primaryDarkVariant","secondaryDarkVariant","darkVariants"],"mappings":"AASA,MAAMA,IAAkC,CAAUC,MAAA;AAChD,QAAMC,IAA+C;AAAA,IACnD,SAAS;AAAA,MACP,QAAQD,IAAS;AAAA;AAAA,MACjB,WAAWA,IAAS;AAAA;AAAA,MACpB,cAAcA,IAAS;AAAA;AAAA,MACvB,aAAaA;AAAA,MACb,cAAcA,IAAS;AAAA,MACvB,cAAcA,IAAS;AAAA,MACvB,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,oBAAoB;AAAA,MACpB,UAAUA,IAAS;AAAA,MACnB,aAAaA;AAAA;AAAA,IACf;AAAA,IACA,OAAO;AAAA,MACL,QAAQA,IAAS;AAAA;AAAA,MACjB,WAAWA,IAAS;AAAA;AAAA,MACpB,cAAc;AAAA;AAAA,MACd,aAAaA,IAAS;AAAA,MACtB,cAAcA,IAAS;AAAA,MACvB,cAAcA,IAAS;AAAA,MACvB,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,oBAAoB;AAAA,MACpB,UAAUA,IAAS;AAAA,MACnB,aAAaA,IAAS;AAAA;AAAA,IACxB;AAAA,IACA,QAAQ;AAAA,MACN,QAAQA,IAAS;AAAA;AAAA,MACjB,WAAW;AAAA;AAAA,MACX,cAAc;AAAA;AAAA,MACd,aAAaA,IAAS;AAAA,MACtB,cAAcA,IAAS;AAAA,MACvB,cAAcA,IAAS;AAAA,MACvB,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,oBAAoB;AAAA,MACpB,UAAUA;AAAA,MACV,aAAaA,IAAS;AAAA;AAAA,IACxB;AAAA,EAAA,GAEIE,IAAsC;AAAA,IAC1C,gBAAgB;AAAA,MACd,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,gBAAgB;AAAA,MACd,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,kBAAkB;AAAA,MAChB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,SAAS;AAAA,MACP,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,EAAA,GAGIC,IAAwC;AAAA,IAC5C,GAAGD;AAAA,IACH,qBAAqB;AAAA,IACrB,sBAAsB;AAAA,IACtB,iBAAiB;AAAA,MACf,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,IACZ;AAAA,EAAA,GAGIE,IAAwD;AAAA,IAC5D,SAASF;AAAA,IACT,WAAWC;AAAA,IACX,SAAS;AAAA,MACP,SAASD,EAAe;AAAA,MACxB,gBAAgBA,EAAe;AAAA,MAC/B,iBAAiB;AAAA,QACf,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,gBAAgB;AAAA,QACd,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,kBAAkB;AAAA,QAChB,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,SAASA,EAAe;AAAA,MACxB,gBAAgBA,EAAe;AAAA,MAC/B,iBAAiB;AAAA,QACf,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,gBAAgB;AAAA,QACd,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,kBAAkB;AAAA,QAChB,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EAAA,GAGIG,IAA0C;AAAA,IAC9C,GAAGH;AAAA,IACH,0BAA0B;AAAA,IAC1B,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,MACd,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,gBAAgB;AAAA,MACd,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,EAAA,GAGII,IAA4C;AAAA,IAChD,GAAGD;AAAA,IACH,qBAAqB;AAAA,IACrB,sBAAsB;AAAA,IACtB,iBAAiB;AAAA,MACf,QAAQ;AAAA,MACR,UAAU;AAAA,MACV,UAAU;AAAA,IACZ;AAAA,EAAA,GAGIE,IAA4D;AAAA,IAChE,SAASF;AAAA,IACT,WAAWC;AAAA,IACX,SAAS;AAAA,MACP,0BAA0B;AAAA,MAC1B,qBAAqB;AAAA,MACrB,SAASD,EAAmB;AAAA,MAC5B,gBAAgBA,EAAmB;AAAA,MACnC,iBAAiB;AAAA,QACf,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,gBAAgB;AAAA,QACd,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,kBAAkB;AAAA,QAChB,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,OAAO;AAAA,MACL,0BAA0B;AAAA,MAC1B,qBAAqB;AAAA,MACrB,SAASA,EAAmB;AAAA,MAC5B,gBAAgBA,EAAmB;AAAA,MACnC,iBAAiB;AAAA,QACf,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,gBAAgB;AAAA,QACd,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,kBAAkB;AAAA,QAChB,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EAAA;AAGK,SAAA,EAAE,OAAAJ,GAAO,UAAAG,GAAU,cAAAG;AAC5B;"}
|
package/dist/index.d.ts
CHANGED
@@ -607,6 +607,7 @@ declare interface IBaseInputProps {
|
|
607
607
|
mandatory?: boolean;
|
608
608
|
shape?: TInputShapes;
|
609
609
|
isTransparent?: boolean;
|
610
|
+
colorTheme?: 'light' | 'dark';
|
610
611
|
}
|
611
612
|
|
612
613
|
declare interface IBaseLeaderboardDetails {
|
@@ -912,15 +913,15 @@ declare interface ICircularStepsProps {
|
|
912
913
|
|
913
914
|
declare interface ICircularStepWrapperProps {
|
914
915
|
children: ReactNode;
|
915
|
-
onGoBack?: () => void;
|
916
|
-
onNext?: () => void;
|
917
|
-
label?: string;
|
918
|
-
showNext: boolean;
|
919
|
-
showPrevious: boolean;
|
920
916
|
animation: string;
|
921
917
|
introFrames: [number, number];
|
922
918
|
outroFrames: [number, number];
|
923
|
-
|
919
|
+
onGoBack?: () => void;
|
920
|
+
onNext?: () => void;
|
921
|
+
label?: string;
|
922
|
+
showNext?: boolean;
|
923
|
+
showPrevious?: boolean;
|
924
|
+
isNextLoading?: boolean;
|
924
925
|
}
|
925
926
|
|
926
927
|
declare interface IClaimUserAccountProps {
|
@@ -1248,6 +1249,7 @@ declare interface IGetInputConfig {
|
|
1248
1249
|
(gutter: number): {
|
1249
1250
|
sizes: Record<TInputSizes, IInputSizeConfig>;
|
1250
1251
|
variants: Record<TInputVariants, IInputVariantConfig>;
|
1252
|
+
darkVariants: Record<TInputVariants, IInputVariantConfig>;
|
1251
1253
|
};
|
1252
1254
|
}
|
1253
1255
|
|
@@ -1373,6 +1375,7 @@ export declare interface IInputVariantConfig {
|
|
1373
1375
|
};
|
1374
1376
|
backgroundColorName?: TColorNames;
|
1375
1377
|
optionHoverColorName?: TColorNames;
|
1378
|
+
labelBackgroundColorName?: TColorNames;
|
1376
1379
|
}
|
1377
1380
|
|
1378
1381
|
declare interface IIsOkayTypeQuestion {
|
@@ -2713,6 +2716,18 @@ export declare interface ISignUpProps {
|
|
2713
2716
|
onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | null) => void;
|
2714
2717
|
}
|
2715
2718
|
|
2719
|
+
declare interface ISocialAccountNotFoundProps {
|
2720
|
+
provider: TSocialAuthProvider;
|
2721
|
+
onRetryLogin: () => void;
|
2722
|
+
onGoToSignup: () => void;
|
2723
|
+
}
|
2724
|
+
|
2725
|
+
declare interface ISocialLoginMethodsProps {
|
2726
|
+
onGoogleLogin: () => void;
|
2727
|
+
onAppleLogin: () => void;
|
2728
|
+
loadingProvider: TSocialAuthProvider | null;
|
2729
|
+
}
|
2730
|
+
|
2716
2731
|
export declare const isOkayTypeQuestion: IIsOkayTypeQuestion;
|
2717
2732
|
|
2718
2733
|
export declare enum IStatsToAwardErrorCode {
|
@@ -4058,6 +4073,10 @@ export declare const Skip2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4058
4073
|
|
4059
4074
|
export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4060
4075
|
|
4076
|
+
export declare const SocialAccountNotFound: ({ provider, onRetryLogin, onGoToSignup, }: ISocialAccountNotFoundProps) => JSX_2.Element;
|
4077
|
+
|
4078
|
+
export declare const SocialLoginMethods: FC<ISocialLoginMethodsProps>;
|
4079
|
+
|
4061
4080
|
export declare const SplashScreen: ({ animationCompleted }: {
|
4062
4081
|
animationCompleted: () => void;
|
4063
4082
|
}) => JSX_2.Element;
|