vrfi-design-system 1.1.54 → 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 +48 -0
- 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
|
@@ -137,6 +137,7 @@ import { UseFormProps } from 'react-hook-form';
|
|
|
137
137
|
import { useFormProps } from '../hooks/useForm';
|
|
138
138
|
import { UseFormReturn } from 'react-hook-form';
|
|
139
139
|
import { UserType } from '../../../enums/userTypes.enum';
|
|
140
|
+
import { UserType as UserType_2 } from '../../../../enums/userTypes.enum';
|
|
140
141
|
import { VerificationTypes } from '../../enums/verificationTypes.enum';
|
|
141
142
|
import { VerificationTypes as VerificationTypes_2 } from '../../../enums/verificationTypes.enum';
|
|
142
143
|
import * as Yup from 'yup';
|
|
@@ -293,6 +294,24 @@ export declare interface CardWithIconAndTextProps {
|
|
|
293
294
|
subHeading: string;
|
|
294
295
|
}
|
|
295
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
|
+
|
|
296
315
|
export declare const Checkbox: ({ children, group, options, disabled, indeterminate, defaultChecked, onChange, label, isBlock, checked, maxRows }: CheckboxProps) => default_2.JSX.Element;
|
|
297
316
|
|
|
298
317
|
export declare const CheckboxGroup: ({ label, name, isBlock, className, options, maxRows, ...props }: CheckboxGroupProps) => default_2.JSX.Element;
|
|
@@ -591,6 +610,20 @@ export { GenderProfileEnum }
|
|
|
591
610
|
|
|
592
611
|
export { GenderValueEnum }
|
|
593
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
|
+
|
|
594
627
|
export { HtmlButtonType }
|
|
595
628
|
|
|
596
629
|
export { Icons }
|
|
@@ -689,6 +722,21 @@ export declare interface LoaderProps {
|
|
|
689
722
|
tip?: string;
|
|
690
723
|
}
|
|
691
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
|
+
|
|
692
740
|
export declare type MenuItem = Required<MenuProps>["items"][number];
|
|
693
741
|
|
|
694
742
|
export { MobileInputValue }
|