@cuemath/leap 2.9.5-j12 → 2.9.5-j14

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.
Files changed (22) hide show
  1. package/dist/features/auth/comps/input-status-icon/input-status-icon.js +13 -13
  2. package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +1 -1
  3. package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -0
  4. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -0
  5. package/dist/features/auth/forgot-password/otp-form/otp-form.js +68 -0
  6. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -0
  7. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +91 -0
  8. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -0
  9. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +61 -0
  10. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -0
  11. package/dist/features/auth/login/login-constants.js +12 -0
  12. package/dist/features/auth/login/login-constants.js.map +1 -0
  13. package/dist/features/auth/signup/custom-input/phone-input/phone-input.js +41 -38
  14. package/dist/features/auth/signup/custom-input/phone-input/phone-input.js.map +1 -1
  15. package/dist/features/ui/context-menu/context-menu.js +29 -21
  16. package/dist/features/ui/context-menu/context-menu.js.map +1 -1
  17. package/dist/features/ui/lottie-animation/helper.js +5 -6
  18. package/dist/features/ui/lottie-animation/helper.js.map +1 -1
  19. package/dist/index.d.ts +38 -6
  20. package/dist/index.js +360 -352
  21. package/dist/index.js.map +1 -1
  22. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import type { DefaultTheme } from 'styled-components';
7
7
  import { DetailedHTMLProps } from 'react';
8
8
  import type { Dispatch } from 'react';
9
9
  import { FC } from 'react';
10
+ import type { FormEvent } from 'react';
10
11
  import { ForwardRefExoticComponent } from 'react';
11
12
  import { HTMLAttributes } from 'react';
12
13
  import { IChannelMessage } from '@cuemath/cue-message-broker';
@@ -61,6 +62,8 @@ export declare const ArcButton: MemoExoticComponent<ForwardRefExoticComponent<IA
61
62
 
62
63
  export declare const ArrowTooltip: FC<IArrowTooltipProps>;
63
64
 
65
+ export declare const AUTH_TABS: ITabConfig<TAuthTabKeys>;
66
+
64
67
  export declare const AuthPageLayout: FC<IAuthPageLayoutProps>;
65
68
 
66
69
  export declare const AuthStaticPanel: FC<IAuthStaticPanelProps>;
@@ -997,14 +1000,13 @@ declare interface IconProps_2 extends React_2.SVGProps<SVGSVGElement> {
997
1000
  }
998
1001
 
999
1002
  declare interface IContextMenuProps {
1000
- targetElement: React.ReactElement<{
1001
- menuVisible?: boolean;
1002
- }>;
1003
+ targetElement: JSX.Element;
1003
1004
  menuElement: JSX.Element;
1004
1005
  menuOffset?: number;
1005
1006
  menuZIndex?: number;
1006
1007
  startLeft?: boolean;
1007
1008
  placeTop?: boolean;
1009
+ onMenuVisibilityChange?: (visible: boolean) => void;
1008
1010
  }
1009
1011
 
1010
1012
  declare interface ICountdownTimer {
@@ -1351,9 +1353,9 @@ export declare interface IInputSizeConfig {
1351
1353
  }
1352
1354
 
1353
1355
  declare interface IInputStatusIconProps {
1354
- isLoading: boolean;
1355
- isValid: boolean;
1356
- isError: boolean;
1356
+ isLoading?: boolean;
1357
+ isValid?: boolean;
1358
+ isError?: boolean;
1357
1359
  size?: number;
1358
1360
  successColor?: TColorNames;
1359
1361
  errorColor?: TColorNames;
@@ -2486,6 +2488,16 @@ declare interface IReferenceSheetProps {
2486
2488
  };
2487
2489
  }
2488
2490
 
2491
+ declare interface IResetPasswordFormProps {
2492
+ onSubmit: (e: FormEvent<HTMLFormElement>) => void;
2493
+ onChange: (key: string, value: string) => void;
2494
+ formData: Record<string, string>;
2495
+ errors: Record<string, string>;
2496
+ isProcessing: boolean;
2497
+ isSubmitDisabled: boolean;
2498
+ isValid?: boolean;
2499
+ }
2500
+
2489
2501
  export declare interface IResourceItemData {
2490
2502
  boards: string[];
2491
2503
  created_on: string;
@@ -2729,6 +2741,18 @@ export declare interface ISignUpProps {
2729
2741
  onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | null) => void;
2730
2742
  }
2731
2743
 
2744
+ declare interface ISingleFieldFormProps {
2745
+ onSubmit: (e?: FormEvent<HTMLFormElement>) => void;
2746
+ onChange: (key: string, value: string) => void;
2747
+ value: string;
2748
+ error: string;
2749
+ isProcessing: boolean;
2750
+ isSubmitDisabled?: boolean;
2751
+ isValid?: boolean;
2752
+ field?: string;
2753
+ label?: string;
2754
+ }
2755
+
2732
2756
  declare interface ISocialAccountNotFoundProps {
2733
2757
  onRetryLogin: () => void;
2734
2758
  onGoToSignup: () => void;
@@ -3878,6 +3902,8 @@ declare interface NumRangeInputProps {
3878
3902
  endPlaceholder?: string;
3879
3903
  }
3880
3904
 
3905
+ export declare const OTPForm: ({ onSubmit, onChange, value, error, isProcessing, isValid, }: ISingleFieldFormProps) => JSX_2.Element;
3906
+
3881
3907
  export declare const OTPInput: FC<IOTPInputProps>;
3882
3908
 
3883
3909
  export declare type OutcomeStage = keyof typeof STAGES;
@@ -4016,6 +4042,8 @@ export declare const RemotePeerPointer: MemoExoticComponent<({ containerRef, onP
4016
4042
 
4017
4043
  export declare const ResendOTP: React.FC<IOTPResendProps>;
4018
4044
 
4045
+ export declare const ResetPasswordForm: ({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX_2.Element;
4046
+
4019
4047
  export declare const REWARDS_LIST: string[];
4020
4048
 
4021
4049
  export declare const RightIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -4202,6 +4230,8 @@ export declare type TArrowTooltipVariants = 'primary' | 'secondary';
4202
4230
 
4203
4231
  export declare type TAuthProvider = 'email' | 'phone';
4204
4232
 
4233
+ export declare type TAuthTabKeys = 'identifier' | 'username';
4234
+
4205
4235
  export declare type TAuthUserType = 'student' | 'parent';
4206
4236
 
4207
4237
  declare type TBadgeData = {
@@ -5314,6 +5344,8 @@ export declare const User2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
5314
5344
 
5315
5345
  export declare const UserIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5316
5346
 
5347
+ export declare const UserIdentifierForm: ({ onSubmit, onChange, value, error, isSubmitDisabled, isProcessing, isValid, label, field, }: ISingleFieldFormProps) => JSX_2.Element;
5348
+
5317
5349
  export declare const UserTypeSelector: NamedExoticComponent<IUserTypeSelectorProps>;
5318
5350
 
5319
5351
  export declare const useTrackingContext: (commonAnalyticsProps: Record<string, unknown>, overrides?: Record<string, unknown>) => {