@mindly/ui-components 3.16.0 → 3.16.2

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.
@@ -10,5 +10,6 @@ export declare type AvatarProps = {
10
10
  style?: CSSProperties;
11
11
  className?: string;
12
12
  withBorder?: boolean;
13
+ onClick?: () => void;
13
14
  };
14
15
  export declare const Avatar: FC<AvatarProps>;
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  declare type ChatListItemProps = {
3
3
  name: string;
4
- message: string;
4
+ message?: string;
5
5
  avatar?: string;
6
6
  newMessagesCount?: number;
7
7
  onClick?: () => void;
8
8
  status?: 'sent' | 'viewed';
9
- time: number;
9
+ time?: number;
10
10
  timeZone?: string;
11
11
  };
12
12
  declare const _default: React.NamedExoticComponent<ChatListItemProps>;
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  declare type ChatMessageProps = {
3
3
  message: string;
4
4
  position: 'left' | 'right';
5
+ time: number;
6
+ timeZone?: string;
5
7
  status?: 'loading' | 'sent' | 'viewed';
6
8
  };
7
9
  declare const _default: React.NamedExoticComponent<ChatMessageProps>;
@@ -11,4 +11,5 @@ declare type MessageTimeWrapperProps = {
11
11
  position: 'left' | 'right';
12
12
  };
13
13
  export declare const MessageTimeWrapper: import("styled-components").StyledComponent<"div", any, MessageTimeWrapperProps, never>;
14
+ export declare const MessageContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
14
15
  export {};
@@ -9,6 +9,7 @@ export declare type LetterAvatarProps = {
9
9
  width?: number;
10
10
  height?: number;
11
11
  fontSize?: number;
12
+ onClick?: () => void;
12
13
  };
13
14
  declare const _default: React.NamedExoticComponent<LetterAvatarProps>;
14
15
  export default _default;
package/dist/index.d.ts CHANGED
@@ -201,6 +201,7 @@ declare type LetterAvatarProps = {
201
201
  width?: number;
202
202
  height?: number;
203
203
  fontSize?: number;
204
+ onClick?: () => void;
204
205
  };
205
206
  declare const _default$b: React.NamedExoticComponent<LetterAvatarProps>;
206
207
 
@@ -383,6 +384,7 @@ declare type AvatarProps = {
383
384
  style?: CSSProperties;
384
385
  className?: string;
385
386
  withBorder?: boolean;
387
+ onClick?: () => void;
386
388
  };
387
389
  declare const Avatar: FC<AvatarProps>;
388
390
 
@@ -471,12 +473,12 @@ declare const RoundButton: React.FC<RoundButtonPropsType>;
471
473
 
472
474
  declare type ChatListItemProps = {
473
475
  name: string;
474
- message: string;
476
+ message?: string;
475
477
  avatar?: string;
476
478
  newMessagesCount?: number;
477
479
  onClick?: () => void;
478
480
  status?: 'sent' | 'viewed';
479
- time: number;
481
+ time?: number;
480
482
  timeZone?: string;
481
483
  };
482
484
  declare const _default$7: React.NamedExoticComponent<ChatListItemProps>;
@@ -484,6 +486,8 @@ declare const _default$7: React.NamedExoticComponent<ChatListItemProps>;
484
486
  declare type ChatMessageProps = {
485
487
  message: string;
486
488
  position: 'left' | 'right';
489
+ time: number;
490
+ timeZone?: string;
487
491
  status?: 'loading' | 'sent' | 'viewed';
488
492
  };
489
493
  declare const _default$6: React.NamedExoticComponent<ChatMessageProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "3.16.0",
3
+ "version": "3.16.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "react-scripts start",