@ambuj.bhaskar/react-component-library 0.24.0-alpha → 0.24.3-alpha

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/index.d.ts CHANGED
@@ -980,9 +980,9 @@ export declare interface LoggedUser {
980
980
  userObj: LoggedInUser;
981
981
  }
982
982
 
983
- export declare const LoginPage: React.FC<LoginPageProps>;
983
+ export declare const LoginPage: <TFormValues extends Record<string, any> = any>({ width, height, elementSize, className, bannerImage, showAwirosLogo, title, description, headerImage, headerImageMargin, formConfig, formSchema, formSubmitDisclaimer, formSubmitButtonText, formSubmitLoading, onSubmit, footerItems, footerImage, footerImageMargin, }: LoginPageProps<TFormValues>) => JSX_2.Element;
984
984
 
985
- export declare type LoginPageProps = {
985
+ export declare type LoginPageProps<TFormValues extends Record<string, any> = any> = {
986
986
  className?: string;
987
987
  width?: string;
988
988
  height?: string;
@@ -992,6 +992,7 @@ export declare type LoginPageProps = {
992
992
  title?: string;
993
993
  description?: string;
994
994
  headerImage?: string;
995
+ headerImageMargin?: CSSstring;
995
996
  formConfig: {
996
997
  [key: string]: {
997
998
  label?: string;
@@ -1002,15 +1003,17 @@ export declare type LoginPageProps = {
1002
1003
  label: string;
1003
1004
  value: string;
1004
1005
  }[];
1006
+ required?: boolean;
1005
1007
  };
1006
1008
  };
1007
- formSchema?: Resolver<Record<string, unknown>>;
1008
1009
  formSubmitDisclaimer?: string;
1009
1010
  formSubmitButtonText?: string;
1010
1011
  formSubmitLoading?: boolean;
1011
- onSubmit?: (data: any) => void;
1012
+ formSchema: Resolver<TFormValues>;
1013
+ onSubmit?: (values: TFormValues) => void;
1012
1014
  footerItems?: React.ReactNode;
1013
1015
  footerImage?: string;
1016
+ footerImageMargin?: CSSstring;
1014
1017
  };
1015
1018
 
1016
1019
  declare type MapItem = {