beem-component 1.0.9 → 1.1.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.
Files changed (42) hide show
  1. package/dist/assets/css/sidebar.css +78 -0
  2. package/dist/components/Buttons/buttonIconsOnly.js +1 -1
  3. package/dist/components/Buttons/buttons.js +1 -1
  4. package/dist/components/Cards/cards.js +1 -1
  5. package/dist/components/ChatBody/chatBody.js +5 -5
  6. package/dist/components/ChatHeader/chatHeader.js +1 -1
  7. package/dist/components/Chats/chat.js +2 -2
  8. package/dist/components/Chats/chatInput.js +1 -1
  9. package/dist/components/Lists/listBox.js +1 -1
  10. package/dist/components/Tags/tags.js +116 -0
  11. package/dist/components/Tags/tags.stories.js +62 -0
  12. package/dist/components/dropdown.js +1 -1
  13. package/dist/components/dropdownItems.js +1 -1
  14. package/dist/components/index.js +79 -1
  15. package/dist/components/input.js +1 -3
  16. package/dist/components/search.js +1 -1
  17. package/dist/components/tags.js +3 -3
  18. package/package.json +1 -1
  19. package/src/App.js +25 -81
  20. package/src/Chat.js +130 -0
  21. package/src/ChatHeader.js +22 -0
  22. package/src/CustomerInfo.js +46 -0
  23. package/src/SideBar.js +81 -0
  24. package/src/lib/assets/css/sidebar.css +78 -0
  25. package/src/lib/components/Buttons/buttonIconsOnly.js +1 -1
  26. package/src/lib/components/Buttons/buttons.js +1 -1
  27. package/src/lib/components/Cards/cards.js +1 -1
  28. package/src/lib/components/ChatBody/chatBody.js +8 -5
  29. package/src/lib/components/ChatBody/chatBody.stories.js +27 -27
  30. package/src/lib/components/ChatHeader/chatHeader.js +1 -4
  31. package/src/lib/components/Chats/chat.js +2 -2
  32. package/src/lib/components/Chats/chatInput.js +1 -1
  33. package/src/lib/components/Lists/listBox.js +1 -1
  34. package/src/lib/components/Tags/tags.js +109 -0
  35. package/src/lib/components/Tags/tags.stories.js +37 -0
  36. package/src/lib/components/dropdown.js +1 -1
  37. package/src/lib/components/dropdownItems.js +1 -1
  38. package/src/lib/components/index.js +34 -2
  39. package/src/lib/components/input.js +1 -2
  40. package/src/lib/components/search.js +1 -1
  41. package/src/lib/components/tags.js +4 -4
  42. package/storybook-static/main.3c8d8027.iframe.bundle.js +1 -1
package/src/App.js CHANGED
@@ -1,94 +1,38 @@
1
- import React, { useState } from "react";
1
+ import React from "react";
2
2
  import "../src/main.scss";
3
- import { BmAvatar, BmInput, BmTab, MainWrapper } from "./lib/components";
3
+ import { MainWrapper } from "./lib/components";
4
4
  import { GlobalStyle } from "./lib/components/globalStyles";
5
- import { BmSideBar } from "./lib/components/sidebar";
6
5
  import "./lib/assets/css/sidebar.css";
7
- import BmChat from "./lib/components/ChatBody/chatBody";
8
- import { DoneAll, Home, MoreVert, Person, Phone } from "@material-ui/icons";
9
- import { BmIcons } from "./lib/components/iconStyles";
10
- import EmojiEmotionsIcon from "@mui/icons-material/EmojiEmotions";
11
- import AttachFileIcon from "@mui/icons-material/AttachFile";
12
- import QuickreplyIcon from "@mui/icons-material/Quickreply";
13
- import SendIcon from "@mui/icons-material/Send";
14
- import BmInfoTab from "./lib/components/InfoTab/infoTab";
15
- import { BmButton } from "./lib/components/Buttons/buttons";
16
- import {
17
- BmCustomizedDropdown,
18
- BmDropDownMenu,
19
- BmDropDownItem,
20
- BmButtonDropdownItem,
21
- } from "./lib/components/dropdownItems";
22
-
23
- import { BmButtonDropDown } from "./lib/components/dropdownButton";
24
- import { BmListBox } from "./lib/components/Lists/listBox";
25
- import { BmRowLabel } from "./lib/components/Lists/rowLabels";
6
+ import SideBar from "./SideBar";
7
+ import ChatHeader from "./ChatHeader";
8
+ import Chat from "./Chat";
9
+ import CustomerInfo from "./CustomerInfo";
10
+ import { BmTag } from "./lib/components/Tags/tags";
11
+ import { Home } from "@material-ui/icons";
26
12
 
27
13
  export const App = () => {
28
- const [dropDownItem, setDropdownItem] = useState(false);
29
-
30
14
  return (
31
15
  <>
32
16
  <GlobalStyle />
33
17
  <MainWrapper>
34
- <BmSideBar>
35
- <div className="main-sidebar-tabs">
36
- <BmTab state="active" className="sidebar-tabs">
37
- <h3>Tabs</h3>
38
- </BmTab>
39
- <BmTab state="inactive" className="sidebar-tabs">
40
- <h3>Tabs</h3>
41
- </BmTab>
42
- </div>
43
- </BmSideBar>
18
+ <BmTag leadingIcon={<Home/>} trailingIcon={<Home/>}><p>Hello</p></BmTag>
44
19
 
45
- <BmChat>
46
- <BmChat.Body>
47
- <BmChat.Details
48
- state="inbound"
49
- session="bot"
50
- displayTime={<p>12:00pm</p>}
51
- status="sent"
52
- >
53
- <p>Inbound</p>
54
- </BmChat.Details>
55
- <BmChat.Details
56
- state="outbound"
57
- session="live"
58
- displayTime={<p>10:00am</p>}
59
- status="failed"
60
- >
61
- <p>Outbound</p>
62
- </BmChat.Details>
63
- </BmChat.Body>
64
- <BmChat.Footer>
65
- <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
66
- <BmIcons icon={<AttachFileIcon />} size="xlarge" />
67
- <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
68
- <BmInput placeholder="Enter Message" />
69
- <BmIcons icon={<SendIcon />} size="xlarge" />
70
- </BmChat.Footer>
71
- </BmChat>
72
- {/* <BmCustomizedDropdown> */}
73
- <BmButton>Create Ticket</BmButton>
74
- <BmButtonDropDown
75
- size="medium"
76
- onClick={() => {
77
- setDropdownItem(!dropDownItem);
78
- }}
79
- variant="primary"
80
- >
81
- Session
82
- </BmButtonDropDown>
83
- <BmListBox isOpen={dropDownItem}>
84
- <BmRowLabel trailingIcon={<Person />} size="large">
85
- <h4>Row Label</h4>
86
- </BmRowLabel>
87
- <BmRowLabel size="large">
88
- <h4>Row Label</h4>
89
- </BmRowLabel>
90
- </BmListBox>
91
- {/* </BmCustomizedDropdown> */}
20
+ <div className="main-chat-container">
21
+ <div className="sidebar">
22
+ <SideBar />
23
+ </div>
24
+ <div className="chat">
25
+ <ChatHeader />
26
+ <div className="chat-menu">
27
+ <div className="chat-messages">
28
+ <Chat />
29
+ </div>
30
+ <div className="chat-contact-info">
31
+ <CustomerInfo />
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
92
36
  </MainWrapper>
93
37
  </>
94
38
  );
package/src/Chat.js ADDED
@@ -0,0 +1,130 @@
1
+ import React from "react";
2
+ import { AttachFile } from "@material-ui/icons";
3
+ import EmojiEmotionsIcon from "@material-ui/icons/EmojiEmotions";
4
+ import QuickreplyIcon from "@mui/icons-material/Quickreply";
5
+ import SendIcon from "@mui/icons-material/Send";
6
+ import { BmChat, BmIcons, BmInput } from "./lib/components";
7
+ import "../src/lib/assets/css/sidebar.css";
8
+ import { BmMessage, BmMessageTabInput } from "./lib/components/Chats/chatInput";
9
+
10
+ const Chat = () => {
11
+ return (
12
+ <BmChat>
13
+ <BmChat.Body>
14
+ <BmChat.Details
15
+ state="inbound"
16
+ session="bot"
17
+ displayTime={<p>12:00pm</p>}
18
+ status="sent"
19
+ >
20
+ <p>Inbound</p>
21
+ </BmChat.Details>
22
+ <BmChat.Details
23
+ state="outbound"
24
+ session="live"
25
+ displayTime={<p>10:00am</p>}
26
+ status="failed"
27
+ >
28
+ <p>Outbound</p>
29
+ </BmChat.Details>
30
+ <BmChat.Details
31
+ state="outbound"
32
+ session="live"
33
+ displayTime={<p>10:00am</p>}
34
+ status="failed"
35
+ >
36
+ <p>Outbound</p>
37
+ </BmChat.Details>
38
+ <BmChat.Details
39
+ state="outbound"
40
+ session="live"
41
+ displayTime={<p>10:00am</p>}
42
+ status="failed"
43
+ >
44
+ <p>Outbound</p>
45
+ </BmChat.Details>
46
+ <BmChat.Details
47
+ state="outbound"
48
+ session="live"
49
+ displayTime={<p>10:00am</p>}
50
+ status="failed"
51
+ >
52
+ <p>Outbound</p>
53
+ </BmChat.Details>{" "}
54
+ <BmChat.Details
55
+ state="outbound"
56
+ session="live"
57
+ displayTime={<p>10:00am</p>}
58
+ status="failed"
59
+ >
60
+ <p>Outbound</p>
61
+ </BmChat.Details>{" "}
62
+ <BmChat.Details
63
+ state="outbound"
64
+ session="live"
65
+ displayTime={<p>10:00am</p>}
66
+ status="failed"
67
+ >
68
+ <p>Outbound</p>
69
+ </BmChat.Details>{" "}
70
+ <BmChat.Details
71
+ state="outbound"
72
+ session="live"
73
+ displayTime={<p>10:00am</p>}
74
+ status="failed"
75
+ >
76
+ <p>Outbound</p>
77
+ </BmChat.Details>{" "}
78
+ <BmChat.Details
79
+ state="outbound"
80
+ session="live"
81
+ displayTime={<p>10:00am</p>}
82
+ status="failed"
83
+ >
84
+ <p>Outbound</p>
85
+ </BmChat.Details>{" "}
86
+ <BmChat.Details
87
+ state="outbound"
88
+ session="live"
89
+ displayTime={<p>10:00am</p>}
90
+ status="failed"
91
+ >
92
+ <p>Outbound</p>
93
+ </BmChat.Details>{" "}
94
+ <BmChat.Details
95
+ state="outbound"
96
+ session="live"
97
+ displayTime={<p>10:00am</p>}
98
+ status="failed"
99
+ >
100
+ <p>Outbound</p>
101
+ </BmChat.Details>{" "}
102
+ <BmChat.Details
103
+ state="outbound"
104
+ session="live"
105
+ displayTime={<p>10:00am</p>}
106
+ status="failed"
107
+ >
108
+ <p>Outbound</p>
109
+ </BmChat.Details>
110
+ </BmChat.Body>
111
+ <BmChat.Footer>
112
+ <div class="footer">
113
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
114
+ </div>
115
+ <div class="footer">
116
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
117
+ <BmIcons icon={<AttachFile />} size="xlarge" />
118
+ <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
119
+ {/* <BmInput placeholder="Enter Message" /> */}
120
+ <BmMessage>
121
+ <BmMessageTabInput placeholder="Type your message" />
122
+ </BmMessage>
123
+ <BmIcons icon={<SendIcon />} size="xlarge" />
124
+ </div>
125
+ </BmChat.Footer>
126
+ </BmChat>
127
+ );
128
+ };
129
+
130
+ export default Chat;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { BmChatHeader, BmButton } from "../src/lib/components/";
3
+ import "../src/lib/assets/css/sidebar.css";
4
+
5
+ export const ChatHeader = () => {
6
+ return (
7
+ <>
8
+ <div className="chat-header">
9
+ <BmChatHeader>
10
+ <h2>Contact Name</h2>
11
+ <p>Last seen: 00:00</p>
12
+ <div className="chat-header-buttons">
13
+ <BmButton size="medium">End Session</BmButton>
14
+ <BmButton size="medium">End Session</BmButton>
15
+ </div>
16
+ </BmChatHeader>
17
+ </div>
18
+ </>
19
+ );
20
+ };
21
+
22
+ export default ChatHeader;
@@ -0,0 +1,46 @@
1
+ /* eslint-disable react/prop-types */
2
+ import React from 'react';
3
+ import { BmBtnIcon, BmInfoTab, BmIcons } from '../src/lib/components/';
4
+ import CallIcon from '@material-ui/icons/Call';
5
+ import EmailIcon from '@material-ui/icons/Email';
6
+ import NoteAddIcon from '@material-ui/icons/NoteAdd';
7
+ import AddIcon from '@material-ui/icons/Add';
8
+ import PriorityHighIcon from '@material-ui/icons/PriorityHigh';
9
+ import { MoreVert } from '@material-ui/icons';
10
+
11
+ const CustomerInfo = () => {
12
+ return (
13
+ <>
14
+ <BmInfoTab>
15
+ <BmInfoTab.Content>
16
+ <h3>Contact Name</h3>
17
+ <BmIcons icon={<MoreVert />} />
18
+ </BmInfoTab.Content>
19
+ <BmInfoTab.Content>
20
+ <BmInfoTab.Tabs>
21
+ <BmBtnIcon icon={<CallIcon />} />
22
+ <h4>Call</h4>
23
+ </BmInfoTab.Tabs>
24
+ <BmInfoTab.Tabs>
25
+ <BmBtnIcon icon={<EmailIcon />} />
26
+ <h4>Email</h4>
27
+ </BmInfoTab.Tabs>
28
+ <BmInfoTab.Tabs>
29
+ <BmBtnIcon icon={<NoteAddIcon />} />
30
+ <h4>Note</h4>
31
+ </BmInfoTab.Tabs>
32
+ <BmInfoTab.Tabs>
33
+ <BmBtnIcon icon={<AddIcon />} />
34
+ <h4>Log</h4>
35
+ </BmInfoTab.Tabs>
36
+ <BmInfoTab.Tabs>
37
+ <BmBtnIcon icon={<PriorityHighIcon />} variant="enabled" />
38
+ <h4>Priority</h4>
39
+ </BmInfoTab.Tabs>
40
+ </BmInfoTab.Content>
41
+ </BmInfoTab>
42
+ </>
43
+ );
44
+ };
45
+
46
+ export default CustomerInfo;
package/src/SideBar.js ADDED
@@ -0,0 +1,81 @@
1
+ import React from "react";
2
+ import { BmTab } from "./lib/components/Tabs/tabs";
3
+ import { BmTag } from "./lib/components/Tags/tags";
4
+ import ForumIcon from "@material-ui/icons/Forum";
5
+ import { BmContactCard, BmAvatar, BmCounter } from "./lib/components";
6
+
7
+ const SideBar = () => {
8
+ return (
9
+ <>
10
+ <div className="main-sidebar-tabs">
11
+ <BmTab
12
+ state="active"
13
+ className="sidebar-tabs"
14
+ leadingIcon={<ForumIcon />}
15
+ >
16
+ <h3>Chats</h3>
17
+ </BmTab>
18
+ </div>
19
+ <div className="sidebar-contacts">
20
+ <BmContactCard>
21
+ <BmContactCard.Profile>
22
+ <BmAvatar user="employee" size="small" color="{$BmPrimaryBlack}" />
23
+ </BmContactCard.Profile>
24
+ <BmContactCard.Details>
25
+ <BmContactCard.SubDetails>
26
+ <h3>Contact Names</h3>
27
+ </BmContactCard.SubDetails>
28
+ <BmContactCard.SubDetails>
29
+ <p>Message text</p>
30
+ <BmCounter>10</BmCounter>
31
+ </BmContactCard.SubDetails>
32
+ <BmContactCard.SubDetails>
33
+ <BmTag variant="success">
34
+ <p>label</p>
35
+ </BmTag>
36
+ <p>10:00 am</p>
37
+ </BmContactCard.SubDetails>
38
+ </BmContactCard.Details>
39
+ </BmContactCard>
40
+ <BmContactCard>
41
+ <BmContactCard.Profile>
42
+ <BmAvatar user="employee" size="small" color="{$BmPrimaryBlack}" />
43
+ </BmContactCard.Profile>
44
+ <BmContactCard.Details>
45
+ <BmContactCard.SubDetails>
46
+ <h3>Contact Names</h3>
47
+ </BmContactCard.SubDetails>
48
+ <BmContactCard.SubDetails>
49
+ <p>Message text</p>
50
+ <BmCounter>10</BmCounter>
51
+ </BmContactCard.SubDetails>
52
+ <BmContactCard.SubDetails>
53
+ <BmTag variant="success">label</BmTag>
54
+ <p>10:00 am</p>
55
+ </BmContactCard.SubDetails>
56
+ </BmContactCard.Details>
57
+ </BmContactCard>
58
+ <BmContactCard>
59
+ <BmContactCard.Profile>
60
+ <BmAvatar user="employee" size="small" color="{$BmPrimaryBlack}" />
61
+ </BmContactCard.Profile>
62
+ <BmContactCard.Details>
63
+ <BmContactCard.SubDetails>
64
+ <h3>Contact Names</h3>
65
+ </BmContactCard.SubDetails>
66
+ <BmContactCard.SubDetails>
67
+ <p>Message text</p>
68
+ <BmCounter>10</BmCounter>
69
+ </BmContactCard.SubDetails>
70
+ <BmContactCard.SubDetails>
71
+ {/* <BmTag variant="success">label</BmTag> */}
72
+ <p>10:00 am</p>
73
+ </BmContactCard.SubDetails>
74
+ </BmContactCard.Details>
75
+ </BmContactCard>
76
+ </div>
77
+ </>
78
+ );
79
+ };
80
+
81
+ export default SideBar;
@@ -6,6 +6,11 @@
6
6
  overflow: auto;
7
7
  max-width: 20%;
8
8
  width: 20%;
9
+ border: 1px solid #E2E2E2;
10
+ }
11
+
12
+ .sidebar>* {
13
+ margin-bottom: 1.5rem;
9
14
  }
10
15
 
11
16
  .main-sidebar-tabs {
@@ -19,4 +24,77 @@
19
24
  .main-sidebar-tabs>.sidebar-tabs {
20
25
  padding: 1.714rem;
21
26
  flex: 1;
27
+ }
28
+
29
+ .sidebar-contacts {
30
+ display: flex;
31
+ flex-direction: column;
32
+ margin: 0rem;
33
+ overflow: auto;
34
+ }
35
+
36
+ .main-chat-container {
37
+ display: flex;
38
+ flex-direction: row;
39
+ align-items: center;
40
+ height: calc(100vh - 180px);
41
+ max-width: 100%;
42
+ width: 100%;
43
+ background: white;
44
+ }
45
+
46
+ .chat {
47
+ display: flex;
48
+ flex-direction: column;
49
+ max-height: 100%;
50
+ height: 100%;
51
+ flex-grow: 1;
52
+ max-height: 100%;
53
+ height: 100%;
54
+ }
55
+
56
+ .chat-menu {
57
+ display: flex;
58
+ flex-direction: row;
59
+ height: 0%;
60
+ flex-grow: 1;
61
+ width: 100%;
62
+ }
63
+
64
+ .chat-messages {
65
+ display: flex;
66
+ flex-direction: column;
67
+ height: 100%;
68
+ overflow: auto;
69
+ width: 80%;
70
+ border: 1px solid #E2E2E2;
71
+ }
72
+
73
+ .chat-contact-info {
74
+ display: flex;
75
+ flex-direction: column;
76
+ height: 100%;
77
+ overflow: auto;
78
+ width: 25%;
79
+ border: 1px solid #E2E2E2;
80
+ }
81
+
82
+ .chat-header-buttons {
83
+ display: flex;
84
+ flex-direction: row;
85
+ margin-left: auto;
86
+ }
87
+
88
+ .chat-header-buttons>*:not(:last-child) {
89
+ margin-right: 0.5rem;
90
+ }
91
+
92
+ .chat-footer {
93
+ display: flex;
94
+ flex-direction: row;
95
+ align-items: center;
96
+ }
97
+
98
+ .chat-footer>*:not(:last-child) {
99
+ margin-right: 0.5rem;
22
100
  }
@@ -50,7 +50,7 @@ const BeemButtonIcon = styled.button`
50
50
  }
51
51
  }};
52
52
  box-sizing: border-box;
53
- border-radius: 0.21875rem;
53
+ border-radius: 0.25rem;
54
54
  padding: 0rem;
55
55
  `;
56
56
 
@@ -47,7 +47,7 @@ const BeemButton = styled.button`
47
47
  flex-direction: row;
48
48
  justify-content: center;
49
49
  align-items: center;
50
- border-radius: 0.21875rem;
50
+ border-radius: 0.25rem;
51
51
  padding: ${({ size }) => {
52
52
  if (size === "large") return "0.625rem 1.5rem";
53
53
  if (size === "medium") return "0.4375rem 1rem";
@@ -6,7 +6,7 @@ const BmCard = styled.div`
6
6
  flex-direction: column;
7
7
  background: ${BmPrimaryWhite};
8
8
  border: 0.071rem solid ${BmGrey400};
9
- border-radius: 0.21875rem;
9
+ border-radius: 0.25rem;
10
10
  `;
11
11
 
12
12
  BmCard.Header = styled.div`
@@ -5,16 +5,17 @@ import BmAvatar from "../Avatars/avatars";
5
5
  import { BmIcons } from "../iconStyles";
6
6
  import {
7
7
  BmGrey400,
8
- BmGrey50,
9
8
  BmPrimaryWhite,
10
9
  BmPrimaryBlue,
11
10
  BmPrimaryBlack,
12
11
  BmSecondaryDarkGreen,
12
+ BmGrey200,
13
13
  } from "../colors";
14
14
 
15
15
  const BmChat = styled.div`
16
16
  display: flex;
17
17
  flex-direction: column;
18
+ height: 100%;
18
19
  ${"" /* border: 0.071rem solid ${BmGrey400}; */}
19
20
  `;
20
21
 
@@ -22,6 +23,8 @@ BmChat.Body = styled.div`
22
23
  display: flex;
23
24
  flex-direction: column;
24
25
  padding: 0rem 1.5rem;
26
+ flex-grow: 1;
27
+ overflow: auto;
25
28
  `;
26
29
 
27
30
  const Details = styled.div`
@@ -42,6 +45,7 @@ const Details = styled.div`
42
45
  overflow-wrap: break-word !important;
43
46
  word-wrap: break-word !important;
44
47
  margin: 0rem;
48
+ flex-grow: 1;
45
49
  `;
46
50
 
47
51
  const MessageDetails = styled.div`
@@ -131,14 +135,13 @@ BmChat.Details = ({
131
135
 
132
136
  BmChat.Footer = styled.div`
133
137
  display: flex;
134
- flex-direction: row;
135
- border-top: 0.071rem solid ${BmGrey400};
138
+ flex-direction: column;
139
+ ${'' /* border-top: 0.071rem solid ${BmGrey200}; */}
136
140
  padding: 0.5rem 0rem;
137
141
  align-items: center;
138
142
  justify-content: center;
139
- ${'' /* background: ${BmGrey50}; */}
140
143
  > *:not(:last-child) {
141
- margin-right: 0.5rem;
144
+ margin-bottom: 0.5rem;
142
145
  }
143
146
  `;
144
147
 
@@ -17,32 +17,32 @@ export default {
17
17
 
18
18
  export const ChatBody = () => {
19
19
  return (
20
- <BmChat>
21
- <BmChat.Body>
22
- <BmChat.Details
23
- state="inbound"
24
- session="bot"
25
- displayTime={<p>12:00pm</p>}
26
- status="sent"
27
- >
28
- <p>Inbound</p>
29
- </BmChat.Details>
30
- <BmChat.Details
31
- state="outbound"
32
- session="live"
33
- displayTime={<p>10:00am</p>}
34
- status="failed"
35
- >
36
- <p>Outbound</p>
37
- </BmChat.Details>
38
- </BmChat.Body>
39
- <BmChat.Footer>
40
- <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
41
- <BmIcons icon={<AttachFileIcon />} size="xlarge" />
42
- <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
43
- <BmInput placeholder="Enter Message" />
44
- <BmIcons icon={<SendIcon />} size="xlarge" />
45
- </BmChat.Footer>
46
- </BmChat>
20
+ <BmChat>
21
+ <BmChat.Body>
22
+ <BmChat.Details
23
+ state="inbound"
24
+ session="bot"
25
+ displayTime={<p>12:00pm</p>}
26
+ status="sent"
27
+ >
28
+ <p>Inbound</p>
29
+ </BmChat.Details>
30
+ <BmChat.Details
31
+ state="outbound"
32
+ session="live"
33
+ displayTime={<p>10:00am</p>}
34
+ status="failed"
35
+ >
36
+ <p>Outbound</p>
37
+ </BmChat.Details>
38
+ </BmChat.Body>
39
+ <BmChat.Footer>
40
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
41
+ <BmIcons icon={<AttachFileIcon />} size="xlarge" />
42
+ <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
43
+ <BmInput placeholder="Enter Message" />
44
+ <BmIcons icon={<SendIcon />} size="xlarge" />
45
+ </BmChat.Footer>
46
+ </BmChat>
47
47
  );
48
48
  };
@@ -5,12 +5,9 @@ export const BmChatHeader = styled.div`
5
5
  display: flex;
6
6
  flex-direction: row;
7
7
  align-items: center;
8
- ${'' /* border: 0.071rem solid ${BmGrey400}; */}
8
+ ${"" /* border: 0.071rem solid ${BmGrey400}; */}
9
9
  padding: 1rem;
10
10
  > *:not(:last-child) {
11
11
  margin-right: 0.5rem;
12
12
  }
13
- button {
14
- margin-left: auto;
15
- }
16
13
  `;
@@ -25,7 +25,7 @@ export const BmChatWrapper = styled.div`
25
25
  return `${BmPrimaryWhite}`;
26
26
  }};
27
27
  border: 0.071rem solid ${BmGrey400};
28
- border-radius: 0.21875rem 0.21875rem 0.21875rem 0rem;
28
+ border-radius: 0.25rem 0.21875rem 0.21875rem 0rem;
29
29
  max-width: 50%;
30
30
  overflow-wrap: break-word !important;
31
31
  word-wrap: break-word !important;
@@ -170,7 +170,7 @@ export const BmFileChat = ({ children, displayTime, type, ...rest }) => {
170
170
  export const BmImageWrapper = styled.div`
171
171
  background: ${BmGrey100};
172
172
  border: 0.071rem solid ${BmGrey400};
173
- border-radius: 0.21875rem 0.21875rem 0rem 0.21875rem;
173
+ border-radius: 0.25rem 0.21875rem 0rem 0.21875rem;
174
174
  display: flex;
175
175
  flex-direction: column;
176
176
  max-width: 50%;
@@ -63,7 +63,7 @@ export const BmMessage = styled("div")`
63
63
  background: ${BmPrimaryWhite};
64
64
  border: 0.071rem solid ${BmGrey400};
65
65
  box-sizing: border-box;
66
- border-radius: 0.21875rem;
66
+ border-radius: 0.25rem;
67
67
  flex-grow: 1;
68
68
  max-width: 75%;
69
69
  `;