vrfi-design-system 1.1.53 → 1.1.55

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
@@ -42,6 +42,7 @@ import { FooterDetailsProps } from '../types/footerDetails';
42
42
  import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
43
43
  import { GenderProfileEnum } from '../../enums/genderProfile.enum';
44
44
  import { GenderProfileEnum as GenderProfileEnum_2 } from '../../../enums/genderProfile.enum';
45
+ import { GenderValueEnum } from '../../enums/genderProfile.enum';
45
46
  import { HTMLAttributes } from 'react';
46
47
  import { HtmlButtonType } from '../../enums/buttonType';
47
48
  import { HtmlButtonType as HtmlButtonType_2 } from '../../../enums/buttonType';
@@ -136,6 +137,7 @@ import { UseFormProps } from 'react-hook-form';
136
137
  import { useFormProps } from '../hooks/useForm';
137
138
  import { UseFormReturn } from 'react-hook-form';
138
139
  import { UserType } from '../../../enums/userTypes.enum';
140
+ import { UserType as UserType_2 } from '../../../../enums/userTypes.enum';
139
141
  import { VerificationTypes } from '../../enums/verificationTypes.enum';
140
142
  import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
141
143
  import * as Yup from 'yup';
@@ -292,6 +294,24 @@ export declare interface CardWithIconAndTextProps {
292
294
  subHeading: string;
293
295
  }
294
296
 
297
+ export declare const ChatDetails: default_2.FC<ChatDetailsProps>;
298
+
299
+ declare interface ChatDetailsProps {
300
+ selectedChat: LooseChat | null;
301
+ newMessage: string;
302
+ onMessageChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
303
+ onSendMessage: () => void;
304
+ userType: UserType_2;
305
+ }
306
+
307
+ export declare const ChatList: <T extends GenericChatShape>({ chats, onChatClick, selectedChat, }: ChatListProps<T>) => default_2.JSX.Element;
308
+
309
+ declare interface ChatListProps<T extends GenericChatShape> {
310
+ chats: T[];
311
+ onChatClick: (chat: T) => void | Promise<void>;
312
+ selectedChat: T | null;
313
+ }
314
+
295
315
  export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, label, isBlock, checked, maxRows }: CheckboxProps) => default_2.JSX.Element;
296
316
 
297
317
  export declare const CheckboxGroup: ({ label, name, isBlock, className, options, maxRows, ...props }: CheckboxGroupProps) => default_2.JSX.Element;
@@ -588,6 +608,22 @@ declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
588
608
 
589
609
  export { GenderProfileEnum }
590
610
 
611
+ export { GenderValueEnum }
612
+
613
+ declare interface GenericChatShape {
614
+ id?: string | number;
615
+ newChatId?: string | number;
616
+ updatedAt?: string;
617
+ unreadCount?: number;
618
+ lastMessage?: {
619
+ body?: string;
620
+ };
621
+ participantDetails?: {
622
+ name?: string;
623
+ profileUrl?: string;
624
+ };
625
+ }
626
+
591
627
  export { HtmlButtonType }
592
628
 
593
629
  export { Icons }
@@ -686,6 +722,21 @@ export declare interface LoaderProps {
686
722
  tip?: string;
687
723
  }
688
724
 
725
+ declare interface LooseChat {
726
+ participantDetails?: {
727
+ name?: string;
728
+ profileUrl?: string;
729
+ };
730
+ messages?: LooseMessage[];
731
+ }
732
+
733
+ declare interface LooseMessage {
734
+ id?: number;
735
+ senderType?: string;
736
+ body?: string;
737
+ createdAt?: string;
738
+ }
739
+
689
740
  export declare type MenuItem = Required<MenuProps>["items"][number];
690
741
 
691
742
  export { MobileInputValue }