vrfi-design-system 1.1.54 → 1.1.56
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 +53 -2
- package/dist/main.es.js +12870 -12654
- package/dist/main.umd.js +115 -115
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,9 @@ import { default as useForm } from '../hooks/useForm';
|
|
|
136
136
|
import { UseFormProps } from 'react-hook-form';
|
|
137
137
|
import { useFormProps } from '../hooks/useForm';
|
|
138
138
|
import { UseFormReturn } from 'react-hook-form';
|
|
139
|
-
import { UserType } from '
|
|
139
|
+
import { UserType } from '../../enums/userTypes.enum';
|
|
140
|
+
import { UserType as UserType_2 } from '../../../enums/userTypes.enum';
|
|
141
|
+
import { UserType as UserType_3 } from '../../../../enums/userTypes.enum';
|
|
140
142
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
141
143
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
142
144
|
import * as Yup from 'yup';
|
|
@@ -293,6 +295,24 @@ export declare interface CardWithIconAndTextProps {
|
|
|
293
295
|
subHeading: string;
|
|
294
296
|
}
|
|
295
297
|
|
|
298
|
+
export declare const ChatDetails: default_2.FC<ChatDetailsProps>;
|
|
299
|
+
|
|
300
|
+
declare interface ChatDetailsProps {
|
|
301
|
+
selectedChat: LooseChat | null;
|
|
302
|
+
newMessage: string;
|
|
303
|
+
onMessageChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
304
|
+
onSendMessage: () => void;
|
|
305
|
+
userType: UserType_3;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export declare const ChatList: <T extends GenericChatShape>({ chats, onChatClick, selectedChat, }: ChatListProps<T>) => default_2.JSX.Element;
|
|
309
|
+
|
|
310
|
+
declare interface ChatListProps<T extends GenericChatShape> {
|
|
311
|
+
chats: T[];
|
|
312
|
+
onChatClick: (chat: T) => void | Promise<void>;
|
|
313
|
+
selectedChat: T | null;
|
|
314
|
+
}
|
|
315
|
+
|
|
296
316
|
export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, label, isBlock, checked, maxRows }: CheckboxProps) => default_2.JSX.Element;
|
|
297
317
|
|
|
298
318
|
export declare const CheckboxGroup: ({ label, name, isBlock, className, options, maxRows, ...props }: CheckboxGroupProps) => default_2.JSX.Element;
|
|
@@ -591,6 +611,20 @@ export { GenderProfileEnum }
|
|
|
591
611
|
|
|
592
612
|
export { GenderValueEnum }
|
|
593
613
|
|
|
614
|
+
declare interface GenericChatShape {
|
|
615
|
+
id?: string | number;
|
|
616
|
+
newChatId?: string | number;
|
|
617
|
+
updatedAt?: string;
|
|
618
|
+
unreadCount?: number;
|
|
619
|
+
lastMessage?: {
|
|
620
|
+
body?: string;
|
|
621
|
+
};
|
|
622
|
+
participantDetails?: {
|
|
623
|
+
name?: string;
|
|
624
|
+
profileUrl?: string;
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
|
|
594
628
|
export { HtmlButtonType }
|
|
595
629
|
|
|
596
630
|
export { Icons }
|
|
@@ -689,6 +723,21 @@ export declare interface LoaderProps {
|
|
|
689
723
|
tip?: string;
|
|
690
724
|
}
|
|
691
725
|
|
|
726
|
+
declare interface LooseChat {
|
|
727
|
+
participantDetails?: {
|
|
728
|
+
name?: string;
|
|
729
|
+
profileUrl?: string;
|
|
730
|
+
};
|
|
731
|
+
messages?: LooseMessage[];
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
declare interface LooseMessage {
|
|
735
|
+
id?: number;
|
|
736
|
+
senderType?: string;
|
|
737
|
+
body?: string;
|
|
738
|
+
createdAt?: string;
|
|
739
|
+
}
|
|
740
|
+
|
|
692
741
|
export declare type MenuItem = Required<MenuProps>["items"][number];
|
|
693
742
|
|
|
694
743
|
export { MobileInputValue }
|
|
@@ -876,7 +925,7 @@ export declare interface ProfileDetailProps {
|
|
|
876
925
|
verificationType?: string;
|
|
877
926
|
verificationDocument?: string;
|
|
878
927
|
verificationExpiryDate?: string;
|
|
879
|
-
userType?:
|
|
928
|
+
userType?: UserType_2;
|
|
880
929
|
userAttachment?: PreviewCardProps;
|
|
881
930
|
textImage?: boolean;
|
|
882
931
|
}
|
|
@@ -1211,6 +1260,8 @@ export declare type UserStatusProps = {
|
|
|
1211
1260
|
userStatus: StatusTypes_2;
|
|
1212
1261
|
};
|
|
1213
1262
|
|
|
1263
|
+
export { UserType }
|
|
1264
|
+
|
|
1214
1265
|
export declare interface ValidationRuleProps {
|
|
1215
1266
|
test: (val: string) => boolean;
|
|
1216
1267
|
message: string;
|