vrfi-design-system 1.1.78 → 1.1.80

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
@@ -43,6 +43,7 @@ import { FieldValues } from 'react-hook-form';
43
43
  import { FilterValue } from 'antd/lib/table/interface';
44
44
  import { FooterDetailsProps } from '../types/footerDetails';
45
45
  import { FooterDetailsProps as FooterDetailsProps_2 } from '../../types/footerDetails';
46
+ import { formatTimeAgo } from '../utils/formatTimeAgo';
46
47
  import { FormValidationTriggers } from '../../enums/formTriggers.enum';
47
48
  import { GenderProfileEnum } from '../../enums/genderProfile.enum';
48
49
  import { GenderProfileEnum as GenderProfileEnum_2 } from '../../../enums/genderProfile.enum';
@@ -314,7 +315,6 @@ declare interface ChatDetailsProps {
314
315
  onMessageChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
315
316
  onSendMessage: () => void;
316
317
  userType: UserType_3;
317
- senderId?: number;
318
318
  }
319
319
 
320
320
  export declare const ChatList: <T extends GenericChatShape>({ chats, onChatClick, selectedChat, userType, }: ChatListProps<T>) => default_2.JSX.Element;
@@ -620,6 +620,8 @@ export { FooterDetailsProps }
620
620
 
621
621
  export declare function Form<T extends FieldValues>({ onSubmit, children, methods, ...rest }: FormProps<T>): default_2.JSX.Element;
622
622
 
623
+ export { formatTimeAgo }
624
+
623
625
  declare interface FormProps<T extends FieldValues> extends UseFormProps<T> {
624
626
  children: ReactNode | ((methods: UseFormReturn<T>) => ReactNode | default_2.JSX.Element);
625
627
  onSubmit: (data: T, methods: UseFormReturn<T>) => void;
@@ -762,7 +764,6 @@ declare interface LooseMessage {
762
764
  senderType?: string;
763
765
  body?: string;
764
766
  createdAt?: string;
765
- senderId?: number;
766
767
  }
767
768
 
768
769
  export { Menu }
@@ -830,6 +831,26 @@ export declare interface NotificationCardProps extends HTMLAttributes<HTMLDivEle
830
831
  avatarNames: string[];
831
832
  }
832
833
 
834
+ export declare interface NotificationData {
835
+ title?: string;
836
+ timeStamp?: string;
837
+ description?: string;
838
+ icon?: string;
839
+ onAccept?: () => void;
840
+ onReject?: () => void;
841
+ onApply?: () => void;
842
+ onClick?: () => void;
843
+ }
844
+
845
+ export declare const NotificationPanel: default_2.FC<NotificationPanelProps>;
846
+
847
+ export declare interface NotificationPanelProps {
848
+ onClose: () => void;
849
+ data: NotificationData[];
850
+ title?: string;
851
+ visible: boolean;
852
+ }
853
+
833
854
  export { NotificationTypes }
834
855
 
835
856
  export declare const Offline: ({ children, }: PropsWithChildren<OfflineProps>) => default_2.JSX.Element;