beem-component 1.5.6 → 1.5.9

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 (209) hide show
  1. package/.babelrc +17 -0
  2. package/.eslintrc +62 -0
  3. package/.prettierrc +6 -0
  4. package/dist/assets/fb.png +0 -0
  5. package/dist/assets/insta.png +0 -0
  6. package/dist/assets/wa.png +0 -0
  7. package/dist/components/Accordion/Accordion.js +31 -64
  8. package/dist/components/Accordion/Accordion.stories.js +29 -29
  9. package/dist/components/Avatars/avatars.js +31 -46
  10. package/dist/components/Avatars/avatars.stories.js +18 -18
  11. package/dist/components/BannerCard/bannerCard.stories.js +14 -14
  12. package/dist/components/BannerCard/bannerCards.js +30 -48
  13. package/dist/components/Buttons/Stories/basicbutton.stories.js +24 -24
  14. package/dist/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
  15. package/dist/components/Buttons/Stories/buttonIconsOnly.stories.js +17 -17
  16. package/dist/components/Buttons/buttonAlertIcons.js +28 -44
  17. package/dist/components/Buttons/buttonDropdown copy.js +15 -18
  18. package/dist/components/Buttons/buttonDropdown.js +2 -2
  19. package/dist/components/Buttons/buttonIconsOnly.js +35 -49
  20. package/dist/components/Buttons/buttons.js +75 -86
  21. package/dist/components/Cards/cards.js +15 -11
  22. package/dist/components/Cards/cards.stories.js +8 -8
  23. package/dist/components/ChatComponents/ChatBody/chatBody.js +80 -69
  24. package/dist/components/ChatComponents/ChatBody/chatBody.stories.js +6 -6
  25. package/dist/components/ChatComponents/ChatBody/sessionDetails.js +9 -16
  26. package/dist/components/ChatComponents/ChatHeader/chatHeader.js +5 -7
  27. package/dist/components/ChatComponents/ChatHeader/chatHeader.stories.js +3 -3
  28. package/dist/components/ChatComponents/ColorPicker/colorPicker.js +5 -7
  29. package/dist/components/ChatComponents/ColorPicker/colorPicker.stories.js +7 -3
  30. package/dist/components/ChatComponents/ContactCards/contactCards.js +15 -12
  31. package/dist/components/ChatComponents/ContactCards/contactCards.stories.js +4 -4
  32. package/dist/components/ChatComponents/FormAccordion/FormAccordion.js +14 -10
  33. package/dist/components/ChatComponents/FormAccordion/FormAccordion.stories.js +9 -5
  34. package/dist/components/ChatComponents/InfoTab/infoTab.js +11 -9
  35. package/dist/components/ChatComponents/InfoTab/infoTab.stories.js +6 -6
  36. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.js +5 -7
  37. package/dist/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +12 -7
  38. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.js +11 -9
  39. package/dist/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +15 -13
  40. package/dist/components/Chats/chat.js +41 -32
  41. package/dist/components/Chats/chatInput.js +18 -14
  42. package/dist/components/Chats/chatwrapper.js +20 -12
  43. package/dist/components/Checkbox/checkboxToggler.js +61 -0
  44. package/dist/components/Checkbox/checkboxToggler.stories.js +81 -0
  45. package/dist/components/Lists/listBox.js +14 -30
  46. package/dist/components/Lists/listBox.stories.js +12 -23
  47. package/dist/components/Lists/listHeader.stories.js +13 -13
  48. package/dist/components/Lists/listheader.js +12 -27
  49. package/dist/components/Lists/rowLabels.js +19 -30
  50. package/dist/components/Lists/rowLabels.stories.js +22 -25
  51. package/dist/components/Loader/loader.js +17 -31
  52. package/dist/components/Loader/loader.stories.js +13 -13
  53. package/dist/components/MainWrapper/index.js +5 -7
  54. package/dist/components/MessageCounter/MessageCounter.stories.js +14 -14
  55. package/dist/components/MessageCounter/messageCounter.js +16 -18
  56. package/dist/components/Modals/modal.js +38 -57
  57. package/dist/components/Modals/modals.stories.js +38 -29
  58. package/dist/components/NoteBar/noteBar.js +28 -57
  59. package/dist/components/NoteBar/noteBar.stories.js +17 -17
  60. package/dist/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
  61. package/dist/components/PerformanceIndicator/performanceIndicator.js +21 -34
  62. package/dist/components/Pills/pills.js +24 -56
  63. package/dist/components/Pills/pills.stories.js +21 -23
  64. package/dist/components/ProfileIcon/ProfileIcon.js +96 -0
  65. package/dist/components/ProfileIcon/profileIcon.stories.js +82 -0
  66. package/dist/components/ProgressBar/progressbar.js +15 -17
  67. package/dist/components/ProgressBar/progressbar.stories.js +8 -10
  68. package/dist/components/ProgressRing/progressRing.js +38 -54
  69. package/dist/components/ProgressRing/progressRing.stories.js +16 -16
  70. package/dist/components/RouteLink/link.js +8 -10
  71. package/dist/components/RouteLink/link.stories.js +3 -3
  72. package/dist/components/ScrollBar/scrollBar.js +19 -17
  73. package/dist/components/SuperFluid/Content/index.js +5 -7
  74. package/dist/components/SuperFluid/ContentTitle.js/index.js +14 -10
  75. package/dist/components/SuperFluid/SegmentCard/index.js +22 -13
  76. package/dist/components/Tabs/tabs.js +16 -35
  77. package/dist/components/Tabs/tabs.stories.js +19 -19
  78. package/dist/components/Tags/tags.js +33 -65
  79. package/dist/components/Tags/tags.stories.js +18 -18
  80. package/dist/components/breakpoints.js +3 -3
  81. package/dist/components/chatHeader.js +17 -11
  82. package/dist/components/checkbox.js +27 -26
  83. package/dist/components/colors.js +32 -30
  84. package/dist/components/contacts.js +39 -25
  85. package/dist/components/dropdown.js +29 -35
  86. package/dist/components/dropdownButton.js +50 -53
  87. package/dist/components/dropdownItems.js +26 -19
  88. package/dist/components/examples/App.js +137 -0
  89. package/dist/components/examples/InfoAccordion.js +23 -0
  90. package/dist/components/examples/chatBodyExample.js +68 -0
  91. package/dist/components/examples/selectExample.js +63 -0
  92. package/dist/components/globalStyles.js +1 -5
  93. package/dist/components/iconStyles.js +56 -58
  94. package/dist/components/index.js +35 -23
  95. package/dist/components/input.js +33 -36
  96. package/dist/components/logo.js +9 -16
  97. package/dist/components/navbar.js +24 -13
  98. package/dist/components/search.js +20 -21
  99. package/dist/components/text.js +15 -6
  100. package/dist/components/typography.js +14 -14
  101. package/dist/components/wrapper.js +8 -8
  102. package/package.json +54 -30
  103. package/src/App.js +31 -175
  104. package/src/index.js +6 -8
  105. package/src/lib/assets/fb.png +0 -0
  106. package/src/lib/assets/insta.png +0 -0
  107. package/src/lib/assets/wa.png +0 -0
  108. package/src/lib/components/Accordion/Accordion.js +32 -14
  109. package/src/lib/components/Accordion/Accordion.stories.js +31 -31
  110. package/src/lib/components/Avatars/avatars.js +33 -28
  111. package/src/lib/components/Avatars/avatars.stories.js +18 -18
  112. package/src/lib/components/BannerCard/bannerCard.stories.js +16 -17
  113. package/src/lib/components/BannerCard/bannerCards.js +18 -18
  114. package/src/lib/components/Buttons/Stories/basicbutton.stories.js +29 -29
  115. package/src/lib/components/Buttons/Stories/buttonAlertIcons.stories.js +17 -17
  116. package/src/lib/components/Buttons/Stories/buttonIconsOnly.stories.js +24 -24
  117. package/src/lib/components/Buttons/buttonAlertIcons.js +22 -25
  118. package/src/lib/components/Buttons/buttonIconsOnly.js +32 -28
  119. package/src/lib/components/Buttons/buttons.js +70 -73
  120. package/src/lib/components/Cards/cards.js +2 -3
  121. package/src/lib/components/Cards/cards.stories.js +10 -10
  122. package/src/lib/components/ChatComponents/ChatBody/chatBody.js +46 -45
  123. package/src/lib/components/ChatComponents/ChatBody/chatBody.stories.js +34 -28
  124. package/src/lib/components/ChatComponents/ChatBody/sessionDetails.js +2 -2
  125. package/src/lib/components/ChatComponents/ChatHeader/chatHeader.js +2 -2
  126. package/src/lib/components/ChatComponents/ChatHeader/chatHeader.stories.js +4 -4
  127. package/src/lib/components/ChatComponents/ColorPicker/colorPicker.js +2 -2
  128. package/src/lib/components/ChatComponents/ColorPicker/colorPicker.stories.js +4 -3
  129. package/src/lib/components/ChatComponents/ContactCards/contactCards.js +7 -5
  130. package/src/lib/components/ChatComponents/ContactCards/contactCards.stories.js +6 -6
  131. package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.js +3 -3
  132. package/src/lib/components/ChatComponents/FormAccordion/FormAccordion.stories.js +4 -3
  133. package/src/lib/components/ChatComponents/InfoTab/infoTab.js +2 -2
  134. package/src/lib/components/ChatComponents/InfoTab/infoTab.stories.js +7 -7
  135. package/src/lib/components/ChatComponents/LabelAccordion/LabelAccordion.stories.js +5 -3
  136. package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.js +2 -2
  137. package/src/lib/components/ChatComponents/NoteAccordion/NoteAccordion.stories.js +6 -5
  138. package/src/lib/components/Checkbox/checkboxToggler.js +89 -0
  139. package/src/lib/components/Checkbox/checkboxToggler.stories.js +48 -0
  140. package/src/lib/components/Lists/listBox.js +7 -7
  141. package/src/lib/components/Lists/listBox.stories.js +8 -11
  142. package/src/lib/components/Lists/listHeader.stories.js +13 -13
  143. package/src/lib/components/Lists/listheader.js +7 -7
  144. package/src/lib/components/Lists/rowLabels.js +6 -6
  145. package/src/lib/components/Lists/rowLabels.stories.js +18 -18
  146. package/src/lib/components/Loader/loader.js +13 -13
  147. package/src/lib/components/Loader/loader.stories.js +14 -14
  148. package/src/lib/components/MainWrapper/index.js +2 -2
  149. package/src/lib/components/MessageCounter/MessageCounter.stories.js +14 -14
  150. package/src/lib/components/MessageCounter/messageCounter.js +16 -16
  151. package/src/lib/components/Modals/modal.js +33 -23
  152. package/src/lib/components/Modals/modals.stories.js +34 -9
  153. package/src/lib/components/NoteBar/noteBar.js +20 -20
  154. package/src/lib/components/NoteBar/noteBar.stories.js +18 -17
  155. package/src/lib/components/PerformanceIndicator/performaceIndicator.stories.js +15 -15
  156. package/src/lib/components/PerformanceIndicator/performanceIndicator.js +11 -10
  157. package/src/lib/components/Pills/pills.js +16 -16
  158. package/src/lib/components/Pills/pills.stories.js +22 -23
  159. package/src/lib/components/ProfileIcon/ProfileIcon.js +76 -0
  160. package/src/lib/components/ProfileIcon/profileIcon.stories.js +57 -0
  161. package/src/lib/components/ProgressBar/progressbar.js +4 -5
  162. package/src/lib/components/ProgressBar/progressbar.stories.js +8 -9
  163. package/src/lib/components/ProgressRing/progressRing.js +25 -24
  164. package/src/lib/components/ProgressRing/progressRing.stories.js +18 -18
  165. package/src/lib/components/RouteLink/link.js +10 -8
  166. package/src/lib/components/RouteLink/link.stories.js +4 -4
  167. package/src/lib/components/ScrollBar/scrollBar.js +15 -14
  168. package/src/lib/components/SuperFluid/Content/index.js +2 -2
  169. package/src/lib/components/SuperFluid/ContentTitle.js/index.js +2 -2
  170. package/src/lib/components/SuperFluid/SegmentCard/index.js +9 -8
  171. package/src/lib/components/Tabs/tabs.js +11 -11
  172. package/src/lib/components/Tabs/tabs.stories.js +20 -20
  173. package/src/lib/components/Tags/tags.js +26 -24
  174. package/src/lib/components/Tags/tags.stories.js +19 -19
  175. package/src/lib/components/breakpoints.js +3 -3
  176. package/src/lib/components/checkbox.js +7 -6
  177. package/src/lib/components/colors.js +30 -28
  178. package/src/lib/components/dropdownButton.js +36 -39
  179. package/src/lib/components/examples/App.js +181 -0
  180. package/src/{InfoAccordion.js → lib/components/examples/InfoAccordion.js} +1 -1
  181. package/src/{App1.js → lib/components/examples/chatBodyExample.js} +2 -2
  182. package/src/{App copy.js → lib/components/examples/selectExample.js} +0 -0
  183. package/src/lib/components/globalStyles.js +4 -5
  184. package/src/lib/components/iconStyles.js +45 -48
  185. package/src/lib/components/index.js +48 -45
  186. package/src/lib/components/input.js +20 -20
  187. package/src/lib/components/text.js +17 -3
  188. package/src/lib/components/typography.js +14 -14
  189. package/src/reportWebVitals.js +1 -1
  190. package/babel.config.js +0 -12
  191. package/dist/components/checkboxToggler.js +0 -50
  192. package/dist/components/example.js +0 -47
  193. package/dist/components/sidebar.js +0 -32
  194. package/dist/components/tabs.js +0 -106
  195. package/dist/components/tags.js +0 -100
  196. package/dist/images/azam.png +0 -0
  197. package/dist/images/azam1.png +0 -0
  198. package/src/ChatHeader.js +0 -22
  199. package/src/CustomerInfo.js +0 -46
  200. package/src/MainChat.js +0 -41
  201. package/src/SideBar.js +0 -81
  202. package/src/lib/components/checkboxToggler.js +0 -19
  203. package/src/lib/components/example.js +0 -30
  204. package/src/lib/components/sidebar.js +0 -33
  205. package/src/lib/components/tabs.js +0 -123
  206. package/src/lib/components/tags.js +0 -101
  207. package/src/lib/images/azam.png +0 -0
  208. package/src/lib/images/azam1.png +0 -0
  209. package/src/list.scss +0 -4
@@ -1,24 +1,25 @@
1
- import React from "react";
2
- import { Done, DoneAll } from "@material-ui/icons";
3
- import FilePresentIcon from "@mui/icons-material/FilePresent";
4
- import DownloadIcon from "@mui/icons-material/Download";
5
- import styled from "styled-components";
6
- import BmAvatar from "../../Avatars/avatars";
7
- import { BmIcons } from "../../iconStyles";
8
- import { SessionDetails } from "./sessionDetails";
1
+ /* eslint-disable react/display-name */
2
+ import React from 'react';
3
+ import { Done, DoneAll } from '@material-ui/icons';
4
+ import FilePresentIcon from '@mui/icons-material/FilePresent';
5
+ import DownloadIcon from '@mui/icons-material/Download';
6
+ import styled from 'styled-components';
7
+ import BmAvatar from '../../Avatars/avatars';
8
+ import { BmIcons } from '../../iconStyles';
9
+ import { SessionDetails } from './sessionDetails';
9
10
  import {
10
11
  BmPrimaryWhite,
11
12
  BmPrimaryBlue,
12
13
  BmPrimaryBlack,
13
14
  BmSecondaryDarkGreen,
14
15
  BmGrey200,
15
- } from "../../colors";
16
+ } from '../../colors';
16
17
 
17
18
  const BmChat = styled.div`
18
19
  display: flex;
19
20
  flex-direction: column;
20
21
  height: 100%;
21
- ${"" /* border: 0.071rem solid ${BmGrey400}; */}
22
+ ${'' /* border: 0.071rem solid ${BmGrey400}; */}
22
23
  `;
23
24
 
24
25
  BmChat.Body = styled.div`
@@ -33,13 +34,13 @@ BmChat.Body = styled.div`
33
34
  const Details = styled.div`
34
35
  display: flex;
35
36
  justify-content: ${({ state }) => {
36
- if (state === "inbound") {
37
- return "flex-start";
37
+ if (state === 'inbound') {
38
+ return 'flex-start';
38
39
  }
39
- if (state === "outbound") {
40
- return "flex-end";
40
+ if (state === 'outbound') {
41
+ return 'flex-end';
41
42
  }
42
- return "row";
43
+ return 'row';
43
44
  }};
44
45
  > *:not(:last-child) {
45
46
  margin-right: 1rem;
@@ -49,7 +50,7 @@ const Details = styled.div`
49
50
  word-wrap: break-word !important;
50
51
  margin: 0rem;
51
52
  flex-grow: 1;
52
- ${"" /* border: 1px solid red; */}
53
+ ${'' /* border: 1px solid red; */}
53
54
  `;
54
55
 
55
56
  const MessageDetails = styled.div`
@@ -69,22 +70,22 @@ const Messages = styled.div`
69
70
  padding: 0.5rem;
70
71
  background: ${({ state }) => {
71
72
  if (state) {
72
- if (state === "inbound") return `${BmPrimaryWhite}`;
73
- if (state === "outbound") return `${BmPrimaryBlue}`;
73
+ if (state === 'inbound') return `${BmPrimaryWhite}`;
74
+ if (state === 'outbound') return `${BmPrimaryBlue}`;
74
75
  }
75
76
  return `${BmPrimaryWhite}`;
76
77
  }};
77
78
  color: ${({ state }) => {
78
79
  if (state) {
79
- if (state === "inbound") return `${BmPrimaryBlack}`;
80
- if (state === "outbound") return `${BmPrimaryWhite}`;
80
+ if (state === 'inbound') return `${BmPrimaryBlack}`;
81
+ if (state === 'outbound') return `${BmPrimaryWhite}`;
81
82
  }
82
83
  return `${BmPrimaryWhite}`;
83
84
  }};
84
85
  border-radius: ${({ state }) => {
85
86
  if (state) {
86
- if (state === "inbound") return "0.21875rem 0.21875rem 0.21875rem 0rem";
87
- if (state === "outbound") return "0.21875rem 0.21875rem 0rem 0.21875rem";
87
+ if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
88
+ if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
88
89
  }
89
90
  return `${BmPrimaryWhite}`;
90
91
  }};
@@ -104,10 +105,10 @@ const MessagesSubDetails = styled.div`
104
105
  `;
105
106
 
106
107
  const handleState = ({ session }) => {
107
- if (session === "bot") {
108
+ if (session === 'bot') {
108
109
  return <BmAvatar size="small" user="chatbot" />;
109
110
  }
110
- if (session === "live") {
111
+ if (session === 'live') {
111
112
  return <BmAvatar size="small" user="employee" />;
112
113
  }
113
114
  };
@@ -120,22 +121,22 @@ const FileAttachmentWrapper = styled.div`
120
121
  padding: 1rem;
121
122
  background: ${({ state }) => {
122
123
  if (state) {
123
- if (state === "inbound") return `${BmPrimaryWhite}`;
124
- if (state === "outbound") return `${BmPrimaryBlue}`;
124
+ if (state === 'inbound') return `${BmPrimaryWhite}`;
125
+ if (state === 'outbound') return `${BmPrimaryBlue}`;
125
126
  }
126
127
  return `${BmPrimaryWhite}`;
127
128
  }};
128
129
  color: ${({ state }) => {
129
130
  if (state) {
130
- if (state === "inbound") return `${BmPrimaryBlack}`;
131
- if (state === "outbound") return `${BmPrimaryWhite}`;
131
+ if (state === 'inbound') return `${BmPrimaryBlack}`;
132
+ if (state === 'outbound') return `${BmPrimaryWhite}`;
132
133
  }
133
134
  return `${BmPrimaryWhite}`;
134
135
  }};
135
136
  border-radius: ${({ state }) => {
136
137
  if (state) {
137
- if (state === "inbound") return "0.21875rem 0.21875rem 0.21875rem 0rem";
138
- if (state === "outbound") return "0.21875rem 0.21875rem 0rem 0.21875rem";
138
+ if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
139
+ if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
139
140
  }
140
141
  return `${BmPrimaryWhite}`;
141
142
  }};
@@ -152,14 +153,14 @@ const FileAttachmentWrapper = styled.div`
152
153
  align-items: center;
153
154
  color: ${({ state }) => {
154
155
  if (state) {
155
- if (state === "inbound") return `${BmPrimaryBlue}`;
156
- if (state === "outbound") return `${BmPrimaryWhite}`;
156
+ if (state === 'inbound') return `${BmPrimaryBlue}`;
157
+ if (state === 'outbound') return `${BmPrimaryWhite}`;
157
158
  }
158
159
  return `${BmPrimaryWhite}`;
159
160
  }};
160
161
  }
161
- ${"" /* max-width: 100%; */}
162
- ${"" /* max-height: 100%; */}
162
+ ${'' /* max-width: 100%; */}
163
+ ${'' /* max-height: 100%; */}
163
164
  `;
164
165
 
165
166
  const BmFileAttachment = ({
@@ -178,21 +179,21 @@ const BmFileAttachment = ({
178
179
  </FileAttachmentWrapper>
179
180
  );
180
181
  };
181
- //Start of Component for Images
182
+ // Start of Component for Images
182
183
  export const BmImageWrapper = styled.div`
183
184
  display: flex;
184
185
  flex-direction: column;
185
186
  color: ${({ state }) => {
186
187
  if (state) {
187
- if (state === "inbound") return `${BmPrimaryBlack}`;
188
- if (state === "outbound") return `${BmPrimaryWhite}`;
188
+ if (state === 'inbound') return `${BmPrimaryBlack}`;
189
+ if (state === 'outbound') return `${BmPrimaryWhite}`;
189
190
  }
190
191
  return `${BmPrimaryWhite}`;
191
192
  }};
192
193
  border-radius: ${({ state }) => {
193
194
  if (state) {
194
- if (state === "inbound") return "0.21875rem 0.21875rem 0.21875rem 0rem";
195
- if (state === "outbound") return "0.21875rem 0.21875rem 0rem 0.21875rem";
195
+ if (state === 'inbound') return '0.21875rem 0.21875rem 0.21875rem 0rem';
196
+ if (state === 'outbound') return '0.21875rem 0.21875rem 0rem 0.21875rem';
196
197
  }
197
198
  return `${BmPrimaryWhite}`;
198
199
  }};
@@ -200,7 +201,7 @@ export const BmImageWrapper = styled.div`
200
201
  `;
201
202
 
202
203
  export const BmImage = styled.img`
203
- ${"" /* Fix width */}
204
+ ${'' /* Fix width */}
204
205
  width: 100%;
205
206
  object-fit: cover;
206
207
  flex-grow: 1;
@@ -230,7 +231,7 @@ export const MessageState = styled.div`
230
231
  }
231
232
  `;
232
233
 
233
- //End of Component for Images
234
+ // End of Component for Images
234
235
 
235
236
  BmChat.Details = ({
236
237
  children,
@@ -256,7 +257,7 @@ BmChat.Details = ({
256
257
  <Details state={state} {...rest}>
257
258
  {/* Adding for mobile */}
258
259
  <MessageState>
259
- {state === "inbound" && session && handleState({ state, session })}
260
+ {state === 'inbound' && session && handleState({ state, session })}
260
261
  </MessageState>
261
262
  <MessageDetails>
262
263
  {/* For Images */}
@@ -281,14 +282,14 @@ BmChat.Details = ({
281
282
  )}
282
283
  <MessagesSubDetails>
283
284
  {displayTime && displayTime}
284
- {status === "sent" && (
285
+ {status === 'sent' && (
285
286
  <BmIcons
286
287
  icon={<DoneAll />}
287
288
  color={`${BmSecondaryDarkGreen}`}
288
289
  size="small"
289
290
  />
290
291
  )}
291
- {status === "failed" && (
292
+ {status === 'failed' && (
292
293
  <BmIcons
293
294
  icon={<Done />}
294
295
  color={`${BmPrimaryBlack}`}
@@ -298,7 +299,7 @@ BmChat.Details = ({
298
299
  </MessagesSubDetails>
299
300
  </MessageDetails>
300
301
  <MessageState>
301
- {state === "outbound" && session && handleState({ state, session })}
302
+ {state === 'outbound' && session && handleState({ state, session })}
302
303
  </MessageState>
303
304
  </Details>
304
305
  </>
@@ -1,11 +1,11 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
2
2
  import React from 'react';
3
- import BmChat from './chatBody';
4
- import { BmIcons } from '../../iconStyles';
5
3
  import EmojiEmotionsIcon from '@mui/icons-material/EmojiEmotions';
6
4
  import AttachFileIcon from '@mui/icons-material/AttachFile';
7
5
  import QuickreplyIcon from '@mui/icons-material/Quickreply';
8
6
  import SendIcon from '@mui/icons-material/Send';
7
+ import { BmIcons } from '../../iconStyles';
8
+ import BmChat from './chatBody';
9
9
  import { BmInput } from '../../input';
10
10
  import image from '../../../assets/chart-img.png';
11
11
  // TODO: ADD DESCRIPTION
@@ -19,52 +19,58 @@ 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'
26
- sessionDetails={{ message: <h3>Session Message</h3>, time: <p>12:00pm</p> }}
25
+ status="sent"
26
+ sessionDetails={{
27
+ message: <h3>Session Message</h3>,
28
+ time: <p>12:00pm</p>,
29
+ }}
27
30
  >
28
31
  <p>Inbound Text Message</p>
29
32
  </BmChat.Details>
30
33
  <BmChat.Details
31
- state='inbound'
32
- session='live'
34
+ state="inbound"
35
+ session="live"
33
36
  displayTime={<p>12:00pm</p>}
34
- status='sent'
37
+ status="sent"
35
38
  fileName={<p>chat.png</p>}
36
39
  src={image}
37
- sessionDetails={{ message: <h3>Session Message</h3>, time: <p>12:00pm</p> }}
40
+ sessionDetails={{
41
+ message: <h3>Session Message</h3>,
42
+ time: <p>12:00pm</p>,
43
+ }}
38
44
  />
39
45
  <BmChat.Details
40
- state='inbound'
41
- session='live'
46
+ state="inbound"
47
+ session="live"
42
48
  displayTime={<p>10:00am</p>}
43
- status='failed'
49
+ status="failed"
44
50
  fileName={<p>file.csv</p>}
45
51
  file={image}
46
52
  />
47
53
  <BmChat.Details
48
- state='outbound'
49
- session='bot'
54
+ state="outbound"
55
+ session="bot"
50
56
  displayTime={<p>12:00pm</p>}
51
- status='sent'
57
+ status="sent"
52
58
  >
53
59
  <p>Outbound Text Message</p>
54
60
  </BmChat.Details>
55
61
  <BmChat.Details
56
- state='outbound'
57
- session='live'
62
+ state="outbound"
63
+ session="live"
58
64
  displayTime={<p>12:00pm</p>}
59
- status='sent'
65
+ status="sent"
60
66
  fileName={<p>chat.png</p>}
61
67
  src={image}
62
68
  />
63
69
  <BmChat.Details
64
- state='outbound'
65
- session='live'
70
+ state="outbound"
71
+ session="live"
66
72
  displayTime={<p>10:00am</p>}
67
- status='failed'
73
+ status="failed"
68
74
  fileName={<p>file.csv</p>}
69
75
  file={image}
70
76
  onDownload={() => {
@@ -73,12 +79,12 @@ export const ChatBody = () => {
73
79
  />
74
80
  </BmChat.Body>
75
81
  <BmChat.Footer>
76
- <div className='chat-footer'>
77
- <BmIcons icon={<EmojiEmotionsIcon />} size='xlarge' />
78
- <BmIcons icon={<AttachFileIcon />} size='xlarge' />
79
- <BmIcons icon={<QuickreplyIcon />} size='xlarge' />
80
- <BmInput placeholder='Enter Message' style={{ flex: '1' }} />
81
- <BmIcons icon={<SendIcon />} size='xlarge' />
82
+ <div className="chat-footer">
83
+ <BmIcons icon={<EmojiEmotionsIcon />} size="xlarge" />
84
+ <BmIcons icon={<AttachFileIcon />} size="xlarge" />
85
+ <BmIcons icon={<QuickreplyIcon />} size="xlarge" />
86
+ <BmInput placeholder="Enter Message" style={{ flex: '1' }} />
87
+ <BmIcons icon={<SendIcon />} size="xlarge" />
82
88
  </div>
83
89
  </BmChat.Footer>
84
90
  </BmChat>
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import styled from "styled-components";
3
- import { BmGrey200 } from "../../colors";
2
+ import styled from 'styled-components';
3
+ import { BmGrey200 } from '../../colors';
4
4
 
5
5
  const SessionDetailsWrapper = styled.div`
6
6
  display: flex;
@@ -1,11 +1,11 @@
1
- import styled from "styled-components";
1
+ import styled from 'styled-components';
2
2
  // import { BmGrey400 } from "../colors";
3
3
 
4
4
  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;
@@ -1,11 +1,11 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
2
- import React from "react";
3
- import { BmButton } from "../../Buttons/buttons";
4
- import { BmChatHeader } from "./chatHeader";
2
+ import React from 'react';
3
+ import { BmButton } from '../../Buttons/buttons';
4
+ import { BmChatHeader } from './chatHeader';
5
5
 
6
6
  export default {
7
7
  component: BmChatHeader,
8
- title: "components/Chat/MainChat/ChatHeader",
8
+ title: 'components/Chat/MainChat/ChatHeader',
9
9
  };
10
10
 
11
11
  export const ChatHeader = () => {
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import styled from 'styled-components';
2
2
 
3
3
  export const BmColorPicker = styled.div`
4
4
  width: 1.429rem;
@@ -8,4 +8,4 @@ export const BmColorPicker = styled.div`
8
8
  > *:not(:last-child) {
9
9
  margin-right: 0.5rem;
10
10
  }
11
- `;
11
+ `;
@@ -1,15 +1,16 @@
1
- import { BmColorPicker } from "./colorPicker";
1
+ import React from 'react';
2
+ import { BmColorPicker } from './colorPicker';
2
3
 
3
4
  // eslint-disable-next-line import/no-anonymous-default-export
4
5
  export default {
5
6
  component: BmColorPicker,
6
- title: "components/Chat/Components/ColorPicker",
7
+ title: 'components/Chat/Components/ColorPicker',
7
8
  };
8
9
 
9
10
  export const ColorPicker = () => {
10
11
  return (
11
12
  <>
12
- {["#33b1ba", "#000000", "#F62E48", "#8CC63F"].map((color) => (
13
+ {['#33b1ba', '#000000', '#F62E48', '#8CC63F'].map((color) => (
13
14
  <BmColorPicker key={color} color={color} />
14
15
  ))}
15
16
  </>
@@ -1,7 +1,7 @@
1
- import styled from "styled-components";
2
- import { BmSecondaryBlue12 } from "../../colors";
1
+ import styled from 'styled-components';
2
+ import { BmSecondaryBlue12 } from '../../colors';
3
3
 
4
- export const BmContactCard = styled.div`
4
+ const BmContactCard = styled.div`
5
5
  display: flex;
6
6
  flex-direction: row;
7
7
  justify-content: space-between;
@@ -51,9 +51,11 @@ BmContactCard.SubDetails = styled.div`
51
51
  align-items: flex-start;
52
52
  }
53
53
  ${'' /* TODO */}
54
- ${'' /* > :last-child {
54
+ ${
55
+ '' /* > :last-child {
55
56
  margin-left: auto;
56
- } */}
57
+ } */
58
+ }
57
59
  `;
58
60
 
59
61
  export default BmContactCard;
@@ -1,13 +1,13 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
2
- import React from "react";
3
- import BmContactCard from "./contactCards";
4
- import BmAvatar from "../../Avatars/avatars";
5
- import BmCounter from "../../MessageCounter/messageCounter";
6
- import { BmTag } from "../../tags";
2
+ import React from 'react';
3
+ import BmContactCard from './contactCards';
4
+ import BmAvatar from '../../Avatars/avatars';
5
+ import BmCounter from '../../MessageCounter/messageCounter';
6
+ import { BmTag } from '../../Tags/tags';
7
7
 
8
8
  export default {
9
9
  component: { BmContactCard, BmAvatar, BmTag, BmCounter },
10
- title: "components/Chat/Components/ContactCard",
10
+ title: 'components/Chat/Components/ContactCard',
11
11
  };
12
12
 
13
13
  export const ContactCard = () => {
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import styled from 'styled-components';
2
2
 
3
3
  const BmChatForm = styled.div`
4
4
  display: flex;
@@ -23,7 +23,7 @@ BmChatForm.Label = styled.div`
23
23
  width: 50%;
24
24
  overflow: hidden;
25
25
  text-overflow: ellipsis;
26
- `
26
+ `;
27
27
 
28
28
  BmChatForm.Input = styled.input`
29
29
  text-align: right;
@@ -39,6 +39,6 @@ BmChatForm.Input = styled.input`
39
39
  text-decoration: none;
40
40
  }
41
41
  background: transparent;
42
- `
42
+ `;
43
43
 
44
44
  export default BmChatForm;
@@ -1,15 +1,16 @@
1
- import { BmAccordion, BmChatForm } from "../..";
1
+ import React from 'react';
2
+ import { BmAccordion, BmChatForm } from '../..';
2
3
 
3
4
  // eslint-disable-next-line import/no-anonymous-default-export
4
5
  export default {
5
6
  component: BmChatForm,
6
- title: "components/Chat/Components/FormAccordion",
7
+ title: 'components/Chat/Components/FormAccordion',
7
8
  };
8
9
 
9
10
  export const FormAccordion = () => {
10
11
  return (
11
12
  <>
12
- <div style={{ width: "30%" }}>
13
+ <div style={{ width: '30%' }}>
13
14
  <BmAccordion>
14
15
  <BmAccordion.Title>
15
16
  <h3>Information</h3>
@@ -1,4 +1,4 @@
1
- import styled from "styled-components";
1
+ import styled from 'styled-components';
2
2
 
3
3
  const BmInfoTab = styled.div`
4
4
  display: flex;
@@ -19,7 +19,7 @@ BmInfoTab.Content = styled.div`
19
19
  BmInfoTab.Tabs = styled.div`
20
20
  display: flex;
21
21
  flex-direction: column;
22
- >*:not(:first-child) {
22
+ > *:not(:first-child) {
23
23
  margin-top: 0.5rem;
24
24
  }
25
25
  `;
@@ -1,18 +1,18 @@
1
1
  /* eslint-disable import/no-anonymous-default-export */
2
- import React from "react";
3
- import BmInfoTab from "./infoTab";
4
- import { BmBtnIcon } from "../../Buttons/buttonIconsOnly";
5
- import { MoreVert, Phone } from "@material-ui/icons";
6
- import { BmIcons } from "../../iconStyles";
2
+ import React from 'react';
3
+ import { MoreVert, Phone } from '@material-ui/icons';
4
+ import BmInfoTab from './infoTab';
5
+ import { BmBtnIcon } from '../../Buttons/buttonIconsOnly';
6
+ import { BmIcons } from '../../iconStyles';
7
7
 
8
8
  export default {
9
9
  component: BmInfoTab,
10
- title: "components/Chat/Components/InfoTab",
10
+ title: 'components/Chat/Components/InfoTab',
11
11
  };
12
12
 
13
13
  export const InfoTab = () => {
14
14
  return (
15
- <div style={{ maxWidth: "30%" }}>
15
+ <div style={{ maxWidth: '30%' }}>
16
16
  <BmInfoTab>
17
17
  <BmInfoTab.Content>
18
18
  <h2>Contact Name</h2>
@@ -1,15 +1,17 @@
1
- import { BmAccordion, BmChatLabels, BmTag } from "../..";
1
+ /* eslint-disable jsx-a11y/anchor-is-valid */
2
+ import React from 'react';
3
+ import { BmAccordion, BmChatLabels, BmTag } from '../..';
2
4
 
3
5
  // eslint-disable-next-line import/no-anonymous-default-export
4
6
  export default {
5
7
  component: BmChatLabels,
6
- title: "components/Chat/Components/LabelAccordion",
8
+ title: 'components/Chat/Components/LabelAccordion',
7
9
  };
8
10
 
9
11
  export const LabelAccordion = () => {
10
12
  return (
11
13
  <>
12
- <div style={{ width: "30%" }}>
14
+ <div style={{ width: '30%' }}>
13
15
  <BmAccordion>
14
16
  <BmAccordion.Title>
15
17
  <h3>Labels</h3>
@@ -1,5 +1,5 @@
1
- import styled from "styled-components";
2
- import { BmGrey100, BmGrey200 } from "../../colors";
1
+ import styled from 'styled-components';
2
+ import { BmGrey100, BmGrey200 } from '../../colors';
3
3
 
4
4
  const BmChatNotes = styled.div`
5
5
  display: flex;
@@ -1,17 +1,18 @@
1
- import { BmAccordion, BmChatLabels, BmChatNotes, BmIcons } from "../..";
2
- import ContentCopyIcon from "@mui/icons-material/ContentCopy";
3
- import { Delete, Edit } from "@material-ui/icons";
1
+ import React from 'react';
2
+ import ContentCopyIcon from '@mui/icons-material/ContentCopy';
3
+ import { Delete, Edit } from '@material-ui/icons';
4
+ import { BmAccordion, BmChatLabels, BmChatNotes, BmIcons } from '../..';
4
5
 
5
6
  // eslint-disable-next-line import/no-anonymous-default-export
6
7
  export default {
7
8
  component: BmChatLabels,
8
- title: "components/Chat/Components/NoteAccordion",
9
+ title: 'components/Chat/Components/NoteAccordion',
9
10
  };
10
11
 
11
12
  export const NoteAccordion = () => {
12
13
  return (
13
14
  <>
14
- <div style={{ width: "30%" }}>
15
+ <div style={{ width: '30%' }}>
15
16
  <BmAccordion>
16
17
  <BmAccordion.Title>
17
18
  <h3>Notes</h3>