@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
@@ -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,WA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Q;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
@@ -502,7 +502,7 @@ declare interface IAccountSelectorViewProps {
|
|
502
502
|
userAccounts: {
|
503
503
|
id: string;
|
504
504
|
username: string;
|
505
|
-
user_avatar?: IAvatarLayer[];
|
505
|
+
user_avatar?: IAvatarLayer[] | null;
|
506
506
|
}[];
|
507
507
|
onSelect: (accountId: string) => void;
|
508
508
|
onAddNew: () => void;
|
@@ -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,16 @@ 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;
|
925
|
+
progressAngle?: number;
|
924
926
|
}
|
925
927
|
|
926
928
|
declare interface IClaimUserAccountProps {
|
@@ -1089,6 +1091,7 @@ declare interface ICustomInputProps {
|
|
1089
1091
|
helperText?: string;
|
1090
1092
|
actionElement?: ReactNode;
|
1091
1093
|
isLoading?: boolean;
|
1094
|
+
isValid?: boolean;
|
1092
1095
|
}
|
1093
1096
|
|
1094
1097
|
declare interface ICustomVideoProps extends React_2.DetailedHTMLProps<React_2.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement> {
|
@@ -1248,6 +1251,7 @@ declare interface IGetInputConfig {
|
|
1248
1251
|
(gutter: number): {
|
1249
1252
|
sizes: Record<TInputSizes, IInputSizeConfig>;
|
1250
1253
|
variants: Record<TInputVariants, IInputVariantConfig>;
|
1254
|
+
darkVariants: Record<TInputVariants, IInputVariantConfig>;
|
1251
1255
|
};
|
1252
1256
|
}
|
1253
1257
|
|
@@ -1346,6 +1350,15 @@ export declare interface IInputSizeConfig {
|
|
1346
1350
|
iconPadding: number;
|
1347
1351
|
}
|
1348
1352
|
|
1353
|
+
declare interface IInputStatusIconProps {
|
1354
|
+
isLoading: boolean;
|
1355
|
+
isValid: boolean;
|
1356
|
+
isError: boolean;
|
1357
|
+
size?: number;
|
1358
|
+
successColor?: TColorNames;
|
1359
|
+
errorColor?: TColorNames;
|
1360
|
+
}
|
1361
|
+
|
1349
1362
|
export declare interface IInputVariantConfig {
|
1350
1363
|
valueColorName: {
|
1351
1364
|
inactive: TColorNames;
|
@@ -1373,6 +1386,7 @@ export declare interface IInputVariantConfig {
|
|
1373
1386
|
};
|
1374
1387
|
backgroundColorName?: TColorNames;
|
1375
1388
|
optionHoverColorName?: TColorNames;
|
1389
|
+
labelBackgroundColorName?: TColorNames;
|
1376
1390
|
}
|
1377
1391
|
|
1378
1392
|
declare interface IIsOkayTypeQuestion {
|
@@ -2149,6 +2163,8 @@ export declare const Info2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
2149
2163
|
|
2150
2164
|
export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
2151
2165
|
|
2166
|
+
export declare const InputStatusIcon: React.FC<IInputStatusIconProps>;
|
2167
|
+
|
2152
2168
|
export declare interface INudgeProps {
|
2153
2169
|
nudge: 'click';
|
2154
2170
|
content: ReactNode;
|
@@ -2713,6 +2729,17 @@ export declare interface ISignUpProps {
|
|
2713
2729
|
onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | null) => void;
|
2714
2730
|
}
|
2715
2731
|
|
2732
|
+
declare interface ISocialAccountNotFoundProps {
|
2733
|
+
onRetryLogin: () => void;
|
2734
|
+
onGoToSignup: () => void;
|
2735
|
+
}
|
2736
|
+
|
2737
|
+
declare interface ISocialLoginMethodsProps {
|
2738
|
+
onGoogleLogin: () => void;
|
2739
|
+
onAppleLogin: () => void;
|
2740
|
+
loadingProvider: TSocialAuthProvider | null;
|
2741
|
+
}
|
2742
|
+
|
2716
2743
|
export declare const isOkayTypeQuestion: IIsOkayTypeQuestion;
|
2717
2744
|
|
2718
2745
|
export declare enum IStatsToAwardErrorCode {
|
@@ -2808,6 +2835,13 @@ declare interface ISyncableWebGameProps {
|
|
2808
2835
|
enableSync?: boolean;
|
2809
2836
|
}
|
2810
2837
|
|
2838
|
+
export declare type ITabConfig<T extends string = string> = Record<T, ITabItem>;
|
2839
|
+
|
2840
|
+
declare interface ITabItem {
|
2841
|
+
label: string;
|
2842
|
+
component?: JSX.Element;
|
2843
|
+
}
|
2844
|
+
|
2811
2845
|
export declare interface ITable {
|
2812
2846
|
tableList: ITableInfo[];
|
2813
2847
|
infiniteModeHighScore: number;
|
@@ -2871,6 +2905,12 @@ export declare interface ITabSizeConfig {
|
|
2871
2905
|
textVariant: TTextVariants;
|
2872
2906
|
}
|
2873
2907
|
|
2908
|
+
declare interface ITabsProps<T extends string> {
|
2909
|
+
selectedTab: T;
|
2910
|
+
onChange: (tab: T) => void;
|
2911
|
+
tabs: ITabConfig<T>;
|
2912
|
+
}
|
2913
|
+
|
2874
2914
|
export declare interface ITabVariantConfig {
|
2875
2915
|
backgroundColorName: {
|
2876
2916
|
inactive: TColorNames;
|
@@ -3215,8 +3255,8 @@ declare interface IUserChapterProgressProps {
|
|
3215
3255
|
|
3216
3256
|
declare interface IUserTypeSelectorProps {
|
3217
3257
|
onNext: () => void;
|
3218
|
-
onUserTypeChange: (id:
|
3219
|
-
userType:
|
3258
|
+
onUserTypeChange: (id: TAuthUserType) => void;
|
3259
|
+
userType: TAuthUserType;
|
3220
3260
|
}
|
3221
3261
|
|
3222
3262
|
declare interface IUseTrialSessionMessageBroker {
|
@@ -3615,6 +3655,7 @@ export declare const LOTTIE: {
|
|
3615
3655
|
DOB: string;
|
3616
3656
|
EASY: string;
|
3617
3657
|
ELITE_CIRCLE: string;
|
3658
|
+
ERROR: string;
|
3618
3659
|
ERROR_LOTTIE: string;
|
3619
3660
|
FAMILIAR1X: string;
|
3620
3661
|
FIFTEEN_MIN_CLOCK: string;
|
@@ -4058,6 +4099,10 @@ export declare const Skip2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4058
4099
|
|
4059
4100
|
export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4060
4101
|
|
4102
|
+
export declare const SocialAccountNotFound: ({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element;
|
4103
|
+
|
4104
|
+
export declare const SocialLoginMethods: FC<ISocialLoginMethodsProps>;
|
4105
|
+
|
4061
4106
|
export declare const SplashScreen: ({ animationCompleted }: {
|
4062
4107
|
animationCompleted: () => void;
|
4063
4108
|
}) => JSX_2.Element;
|
@@ -4127,6 +4172,8 @@ declare const TAB_CODES: {
|
|
4127
4172
|
|
4128
4173
|
export declare const TabComponent: React_2.FC<ITabProps>;
|
4129
4174
|
|
4175
|
+
export declare function Tabs<T extends string>({ selectedTab, onChange, tabs }: ITabsProps<T>): JSX_2.Element;
|
4176
|
+
|
4130
4177
|
export declare type TAction = EventToPayload<TInclassMessage>;
|
4131
4178
|
|
4132
4179
|
declare type TActionListenerOptions = {
|
@@ -4155,6 +4202,8 @@ export declare type TArrowTooltipVariants = 'primary' | 'secondary';
|
|
4155
4202
|
|
4156
4203
|
export declare type TAuthProvider = 'email' | 'phone';
|
4157
4204
|
|
4205
|
+
export declare type TAuthUserType = 'student' | 'parent';
|
4206
|
+
|
4158
4207
|
declare type TBadgeData = {
|
4159
4208
|
acknowledged_on: number | null;
|
4160
4209
|
animation_url: string;
|
@@ -5018,8 +5067,6 @@ export declare type TSheetsSection = 'core_lessons' | 'supplementary_sheets' | '
|
|
5018
5067
|
|
5019
5068
|
declare type TSheetStateProps = 'LOCKED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'FAMILIAR' | 'PROFICIENT' | 'MASTERED' | 'COMPLETED' | 'RE_ATTEMPT';
|
5020
5069
|
|
5021
|
-
export declare type TSignupUserType = 'student' | 'parent';
|
5022
|
-
|
5023
5070
|
export declare type TSkillStatus = 'pending' | 'completed';
|
5024
5071
|
|
5025
5072
|
export declare type TSocialAuthProvider = 'google' | 'apple';
|