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.
@@ -1,17 +1,17 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
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
-
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: "components/Chat/MainChat/ChatBody",
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="inbound"
23
- session="bot"
22
+ state='inbound'
23
+ session='bot'
24
24
  displayTime={<p>12:00pm</p>}
25
- status="sent"
25
+ status='sent'
26
26
  >
27
27
  <p>Inbound Text Message</p>
28
28
  </BmChat.Details>
29
29
  <BmChat.Details
30
- state="inbound"
31
- session="live"
30
+ state='inbound'
31
+ session='live'
32
32
  displayTime={<p>12:00pm</p>}
33
- status="sent"
33
+ status='sent'
34
34
  fileName={<p>chat.png</p>}
35
35
  src={image}
36
36
  />
37
37
  <BmChat.Details
38
- state="inbound"
39
- session="live"
38
+ state='inbound'
39
+ session='live'
40
40
  displayTime={<p>10:00am</p>}
41
- status="failed"
41
+ status='failed'
42
42
  fileName={<p>file.csv</p>}
43
43
  file={image}
44
44
  />
45
45
  <BmChat.Details
46
- state="outbound"
47
- session="bot"
46
+ state='outbound'
47
+ session='bot'
48
48
  displayTime={<p>12:00pm</p>}
49
- status="sent"
49
+ status='sent'
50
50
  >
51
51
  <p>Outbound Text Message</p>
52
52
  </BmChat.Details>
53
53
  <BmChat.Details
54
- state="outbound"
55
- session="live"
54
+ state='outbound'
55
+ session='live'
56
56
  displayTime={<p>12:00pm</p>}
57
- status="sent"
57
+ status='sent'
58
58
  fileName={<p>chat.png</p>}
59
59
  src={image}
60
60
  />
61
61
  <BmChat.Details
62
- state="outbound"
63
- session="live"
62
+ state='outbound'
63
+ session='live'
64
64
  displayTime={<p>10:00am</p>}
65
- status="failed"
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="chat-footer">
72
- <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
73
- <BmIcons icon={<AttachFileIcon />} size="xlarge" />
74
- <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
75
- <BmInput placeholder="Enter Message" style={{ flex: "1" }} />
76
- <BmIcons icon={<SendIcon />} size="xlarge" />
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>