beem-component 1.4.0 → 1.4.3
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/components/ChatComponents/ChatBody/chatBody.js +37 -35
- package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +7 -3
- package/package.json +1 -1
- package/src/App.js +78 -11
- package/src/lib/components/ChatComponents/ChatBody/chatBody.js +55 -48
- package/src/lib/components/ChatComponents/ChatBody/chatBody.stories.js +38 -35
- package/build-storybook.log +0 -14621
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
-
import React from
|
|
3
|
-
import BmChat from
|
|
4
|
-
import { BmIcons } from
|
|
5
|
-
import EmojiEmotionsIcon from
|
|
6
|
-
import AttachFileIcon from
|
|
7
|
-
import QuickreplyIcon from
|
|
8
|
-
import SendIcon from
|
|
9
|
-
import { BmInput } from
|
|
10
|
-
import image from
|
|
11
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import BmChat from './chatBody';
|
|
4
|
+
import { BmIcons } from '../../iconStyles';
|
|
5
|
+
import EmojiEmotionsIcon from '@mui/icons-material/EmojiEmotions';
|
|
6
|
+
import AttachFileIcon from '@mui/icons-material/AttachFile';
|
|
7
|
+
import QuickreplyIcon from '@mui/icons-material/Quickreply';
|
|
8
|
+
import SendIcon from '@mui/icons-material/Send';
|
|
9
|
+
import { BmInput } from '../../input';
|
|
10
|
+
import image from '../../../assets/chart-img.png';
|
|
11
|
+
// TODO: ADD DESCRIPTION
|
|
12
12
|
export default {
|
|
13
13
|
component: BmChat,
|
|
14
|
-
title:
|
|
14
|
+
title: 'components/Chat/MainChat/ChatBody',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
export const ChatBody = () => {
|
|
@@ -19,61 +19,64 @@ export const ChatBody = () => {
|
|
|
19
19
|
<BmChat>
|
|
20
20
|
<BmChat.Body>
|
|
21
21
|
<BmChat.Details
|
|
22
|
-
state=
|
|
23
|
-
session=
|
|
22
|
+
state='inbound'
|
|
23
|
+
session='bot'
|
|
24
24
|
displayTime={<p>12:00pm</p>}
|
|
25
|
-
status=
|
|
25
|
+
status='sent'
|
|
26
26
|
>
|
|
27
27
|
<p>Inbound Text Message</p>
|
|
28
28
|
</BmChat.Details>
|
|
29
29
|
<BmChat.Details
|
|
30
|
-
state=
|
|
31
|
-
session=
|
|
30
|
+
state='inbound'
|
|
31
|
+
session='live'
|
|
32
32
|
displayTime={<p>12:00pm</p>}
|
|
33
|
-
status=
|
|
33
|
+
status='sent'
|
|
34
34
|
fileName={<p>chat.png</p>}
|
|
35
35
|
src={image}
|
|
36
36
|
/>
|
|
37
37
|
<BmChat.Details
|
|
38
|
-
state=
|
|
39
|
-
session=
|
|
38
|
+
state='inbound'
|
|
39
|
+
session='live'
|
|
40
40
|
displayTime={<p>10:00am</p>}
|
|
41
|
-
status=
|
|
41
|
+
status='failed'
|
|
42
42
|
fileName={<p>file.csv</p>}
|
|
43
43
|
file={image}
|
|
44
44
|
/>
|
|
45
45
|
<BmChat.Details
|
|
46
|
-
state=
|
|
47
|
-
session=
|
|
46
|
+
state='outbound'
|
|
47
|
+
session='bot'
|
|
48
48
|
displayTime={<p>12:00pm</p>}
|
|
49
|
-
status=
|
|
49
|
+
status='sent'
|
|
50
50
|
>
|
|
51
51
|
<p>Outbound Text Message</p>
|
|
52
52
|
</BmChat.Details>
|
|
53
53
|
<BmChat.Details
|
|
54
|
-
state=
|
|
55
|
-
session=
|
|
54
|
+
state='outbound'
|
|
55
|
+
session='live'
|
|
56
56
|
displayTime={<p>12:00pm</p>}
|
|
57
|
-
status=
|
|
57
|
+
status='sent'
|
|
58
58
|
fileName={<p>chat.png</p>}
|
|
59
59
|
src={image}
|
|
60
60
|
/>
|
|
61
61
|
<BmChat.Details
|
|
62
|
-
state=
|
|
63
|
-
session=
|
|
62
|
+
state='outbound'
|
|
63
|
+
session='live'
|
|
64
64
|
displayTime={<p>10:00am</p>}
|
|
65
|
-
status=
|
|
65
|
+
status='failed'
|
|
66
66
|
fileName={<p>file.csv</p>}
|
|
67
67
|
file={image}
|
|
68
|
+
onDownload={() => {
|
|
69
|
+
alert('hello');
|
|
70
|
+
}}
|
|
68
71
|
/>
|
|
69
72
|
</BmChat.Body>
|
|
70
73
|
<BmChat.Footer>
|
|
71
|
-
<div className=
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
<div className='chat-footer'>
|
|
75
|
+
<BmIcons icon={<EmojiEmotionsIcon />} size='xlarge' />
|
|
76
|
+
<BmIcons icon={<AttachFileIcon />} size='xlarge' />
|
|
77
|
+
<BmIcons icon={<QuickreplyIcon />} size='xlarge' />
|
|
78
|
+
<BmInput placeholder='Enter Message' style={{ flex: '1' }} />
|
|
79
|
+
<BmIcons icon={<SendIcon />} size='xlarge' />
|
|
77
80
|
</div>
|
|
78
81
|
</BmChat.Footer>
|
|
79
82
|
</BmChat>
|