isometrik-chat 0.1.0

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 (188) hide show
  1. package/README.md +74 -0
  2. package/babel.config.js +6 -0
  3. package/dist/index.js +684 -0
  4. package/package.json +59 -0
  5. package/public/Logo-192x192.png +0 -0
  6. package/public/Logo-512x512.png +0 -0
  7. package/public/favicon.ico +0 -0
  8. package/public/fonts/BenjaminVictoria.ttf +0 -0
  9. package/public/icons/arrow_logo.svg +9 -0
  10. package/public/icons/assets/ic_placeholder_banner.svg +1 -0
  11. package/public/icons/attach-file.svg +9 -0
  12. package/public/icons/audio_pause.svg +1 -0
  13. package/public/icons/audio_play.svg +6 -0
  14. package/public/icons/back.svg +3 -0
  15. package/public/icons/bell.svg +1 -0
  16. package/public/icons/block.svg +1 -0
  17. package/public/icons/bottom-arrow.svg +1 -0
  18. package/public/icons/camera-switch.svg +12 -0
  19. package/public/icons/camera.svg +4 -0
  20. package/public/icons/cancel.svg +1 -0
  21. package/public/icons/chat empty placeholder.svg +58 -0
  22. package/public/icons/chat_audio_pause.png +0 -0
  23. package/public/icons/chat_audio_play.png +0 -0
  24. package/public/icons/close.svg +5 -0
  25. package/public/icons/crossCarousel.svg +3 -0
  26. package/public/icons/delete.svg +3 -0
  27. package/public/icons/disappear.svg +24 -0
  28. package/public/icons/document.png +0 -0
  29. package/public/icons/document.svg +1 -0
  30. package/public/icons/downloadCarousel.svg +6 -0
  31. package/public/icons/edit-pencil.svg +6 -0
  32. package/public/icons/emoji.svg +8 -0
  33. package/public/icons/emojiCarousel.svg +3 -0
  34. package/public/icons/filter.svg +1 -0
  35. package/public/icons/forwardCarousel.svg +3 -0
  36. package/public/icons/gallery.svg +1 -0
  37. package/public/icons/goToMessageCarousel.svg +3 -0
  38. package/public/icons/ic_uil_arrow-left.svg +1 -0
  39. package/public/icons/ic_uil_eye-slash.svg +1 -0
  40. package/public/icons/ic_uil_eye.svg +1 -0
  41. package/public/icons/leftArrowCarousel.svg +6 -0
  42. package/public/icons/light-mode.svg +14 -0
  43. package/public/icons/lock.svg +1 -0
  44. package/public/icons/login_background.png +0 -0
  45. package/public/icons/menu .svg +5 -0
  46. package/public/icons/menuCarousel.svg +5 -0
  47. package/public/icons/message.svg +3 -0
  48. package/public/icons/placeholder.svg +958 -0
  49. package/public/icons/poll.svg +1 -0
  50. package/public/icons/retake.png +0 -0
  51. package/public/icons/right-arrow.svg +3 -0
  52. package/public/icons/right.svg +3 -0
  53. package/public/icons/round-star.svg +1 -0
  54. package/public/icons/search.svg +3 -0
  55. package/public/icons/send.svg +10 -0
  56. package/public/icons/starCarousel.svg +3 -0
  57. package/public/icons/status.svg +1 -0
  58. package/public/icons/sticker.svg +1 -0
  59. package/public/icons/thumb-down.svg +1 -0
  60. package/public/icons/user.svg +1 -0
  61. package/public/icons/users.svg +1 -0
  62. package/public/icons/voice.png +0 -0
  63. package/public/index.html +38 -0
  64. package/public/logo192.png +0 -0
  65. package/public/logo512.png +0 -0
  66. package/public/manifest.json +25 -0
  67. package/public/offline.html +12 -0
  68. package/public/robots.txt +3 -0
  69. package/public/service-worker.js +81 -0
  70. package/src/App.js +15 -0
  71. package/src/App.test.js +8 -0
  72. package/src/Authpage.js +16 -0
  73. package/src/ChatContext.js +172 -0
  74. package/src/Data/index.js +110 -0
  75. package/src/assets/icons.js +49 -0
  76. package/src/assets/images/WhatsApp.html +258 -0
  77. package/src/assets/images/WhatsApp_files/301446776_522918349234681_1974693392291574064_n.jpg +0 -0
  78. package/src/assets/images/WhatsApp_files/app-bf223f825866ee433b07.css +242 -0
  79. package/src/assets/images/WhatsApp_files/app.77ee8aa7a4c593101105.js +77 -0
  80. package/src/assets/images/WhatsApp_files/lazy_loaded_high_priority_components.85a06e74a0a4ade1640b.css +16 -0
  81. package/src/assets/images/WhatsApp_files/lazy_loaded_low_priority_components.8621270bc215a9298a97.css +47 -0
  82. package/src/assets/images/WhatsApp_files/libsignal-protocol-ee5b8ba.min.js +21 -0
  83. package/src/assets/images/WhatsApp_files/main.48b845d68e066fb27a75.css +161 -0
  84. package/src/assets/images/WhatsApp_files/runtime.e6018f3c1e255e8f4dc7.js +2 -0
  85. package/src/assets/images/WhatsApp_files/stylex-d50abd61e6cf7eab2afd855adccf14e5.css +2841 -0
  86. package/src/assets/images/WhatsApp_files/vendor1_app.58a51d93a250f83ab555.js +79 -0
  87. package/src/assets/images/bg.jpeg +0 -0
  88. package/src/assets/images/drkbg.jpg +0 -0
  89. package/src/assets/images/notFound.jpeg +0 -0
  90. package/src/assets/images/watsapp.jpg +0 -0
  91. package/src/assets/images/watsappbg.png +0 -0
  92. package/src/assets/images/wb.jpg +0 -0
  93. package/src/assets/images/whatsapp.jpeg +0 -0
  94. package/src/components/ChatBox/AudioBubble.js +162 -0
  95. package/src/components/ChatBox/ChatBubble.js +232 -0
  96. package/src/components/ChatBox/DocumentBubble.js +87 -0
  97. package/src/components/ChatBox/MessagesBox.js +533 -0
  98. package/src/components/CustomModal.js +60 -0
  99. package/src/components/Icon.js +10 -0
  100. package/src/components/ImageComponent.js +24 -0
  101. package/src/components/MediaDocs.js +155 -0
  102. package/src/components/MediaDocumentContainer.js +55 -0
  103. package/src/components/MessageInfoDropdown.js +124 -0
  104. package/src/components/Modal/AllowMicPermissionModal.js +63 -0
  105. package/src/components/Modal/BlockUnblockChatModal.js +78 -0
  106. package/src/components/Modal/CameraPermissionBlockedModal.js +61 -0
  107. package/src/components/Modal/CameraPermissionRequestModal.js +60 -0
  108. package/src/components/Modal/ClearChatModal.js +78 -0
  109. package/src/components/Modal/DeleteChatModal.js +79 -0
  110. package/src/components/Modal/MicPermissionDisableModal.js +63 -0
  111. package/src/components/Modal/Modal.js +103 -0
  112. package/src/components/Modal/ModalDialog.js +103 -0
  113. package/src/components/Modal/ProfilePictureUploadPreview.js +160 -0
  114. package/src/components/OutsideAlerter/OutsideAlerter.js +38 -0
  115. package/src/components/ProfilePicture/ProfilePicture.js +127 -0
  116. package/src/components/Registration/Login.js +265 -0
  117. package/src/components/Registration/SignUp.js +322 -0
  118. package/src/components/SnackBar.js +42 -0
  119. package/src/components/common/Modal/useDetectOutsideClick.js +23 -0
  120. package/src/components/common/styled/PageWrapper.js +25 -0
  121. package/src/components/formcontrol/CustomButton.js +38 -0
  122. package/src/components/formcontrol/InputText.js +60 -0
  123. package/src/global-styles.js +42 -0
  124. package/src/hooks/useDeviceType.js +28 -0
  125. package/src/hooks/useThrottle.js +29 -0
  126. package/src/index.css +225 -0
  127. package/src/index.js +23 -0
  128. package/src/lib/constant.js +21 -0
  129. package/src/lib/functionality.js +13 -0
  130. package/src/lib/helpers.js +320 -0
  131. package/src/lib/mockData/index.js +76 -0
  132. package/src/lib/session/index.js +31 -0
  133. package/src/lib/validation.js +4 -0
  134. package/src/logo.svg +1 -0
  135. package/src/pages/WhatsappMainBox/index.js +574 -0
  136. package/src/reportWebVitals.js +13 -0
  137. package/src/services/deliveryStatus.js +27 -0
  138. package/src/setupTests.js +5 -0
  139. package/src/utils/chatSdk.js +14 -0
  140. package/src/utils/global.js +57 -0
  141. package/src/utils/media.js +79 -0
  142. package/src/view/component/BlockedContactSlide.js +134 -0
  143. package/src/view/component/Carousle/UpperMenuBar.js +106 -0
  144. package/src/view/component/Carousle/index.js +204 -0
  145. package/src/view/component/Chatbox.js/AudioRecorder.js +311 -0
  146. package/src/view/component/Chatbox.js/ChatBubbleReply.js +27 -0
  147. package/src/view/component/Chatbox.js/TakePhoto.js +363 -0
  148. package/src/view/component/Chatbox.js/index.js +856 -0
  149. package/src/view/component/Chatbox.js/styles.css +231 -0
  150. package/src/view/component/Contact/index.js +56 -0
  151. package/src/view/component/Contact/styles.css +208 -0
  152. package/src/view/component/ContactInfo/index.js +543 -0
  153. package/src/view/component/ContactInfo/styles.css +289 -0
  154. package/src/view/component/Context/index.js +3 -0
  155. package/src/view/component/DialogBox.js +15 -0
  156. package/src/view/component/ImageCropper/ImageCropper.js +128 -0
  157. package/src/view/component/Loader/Loader.js +52 -0
  158. package/src/view/component/Loader/UserPagingLoader.js +62 -0
  159. package/src/view/component/MainChatBox/index.js +819 -0
  160. package/src/view/component/MainChatBox/styles.css +124 -0
  161. package/src/view/component/Menu/index.js +261 -0
  162. package/src/view/component/Menu/styles.css +68 -0
  163. package/src/view/component/Profile/ProfileInfoContainer.js +112 -0
  164. package/src/view/component/Profile/ProfileUpdate.js +178 -0
  165. package/src/view/component/Profile/TakeProfilePhoto.js +391 -0
  166. package/src/view/component/Profile/index.js +550 -0
  167. package/src/view/component/Profile/styles.css +370 -0
  168. package/src/view/component/ReplyChatMessage/ReplyChatMessage.js +48 -0
  169. package/src/view/component/SeachBar/index.js +106 -0
  170. package/src/view/component/SeachBar/styles.css +53 -0
  171. package/src/view/component/Siderbar/index.js +512 -0
  172. package/src/view/component/Siderbar/styles.css +138 -0
  173. package/src/view/component/Toaster/Toaster.js +117 -0
  174. package/src/view/component/UserDetailsCard/UserDetailCard.js +337 -0
  175. package/src/view/component/deleteMessageMoal.js +80 -0
  176. package/src/view/component/emoji/index.js +22 -0
  177. package/src/view/component/emoji/sstyles.css +0 -0
  178. package/src/view/component/forwardData/index.js +327 -0
  179. package/src/view/component/forwardData/styles.css +112 -0
  180. package/src/view/component/forwardPopup/index.js +55 -0
  181. package/src/view/component/forwardPopup/styles.css +144 -0
  182. package/src/view/component/mediaList/index.js +92 -0
  183. package/src/view/component/menuDialog/index.js +71 -0
  184. package/src/view/component/menuDialog/styles.css +24 -0
  185. package/src/view/component/pagination/pagination.js +52 -0
  186. package/src/view/component/pagination/paginationForMsg.js +43 -0
  187. package/src/view/component/sidebarChat/index.js +321 -0
  188. package/src/view/component/sidebarChat/styles.css +109 -0
@@ -0,0 +1,327 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import "./styles.css";
3
+ import { chatList } from "../../../Data";
4
+ import { fontSize } from "../../../Data";
5
+ import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
6
+ // import Menu from "../Menu";
7
+ import { createContext } from "react";
8
+ import { ArrowContext } from "../Context";
9
+ import notFound from "../../../assets/images/notFound.jpeg";
10
+ import Badge from '@mui/material/Badge';
11
+ import MenuDialog from "../menuDialog/index";
12
+ import Menu from '@mui/material/Menu';
13
+ import Checkbox from '@mui/material/Checkbox';
14
+ import SendIcon from '@mui/icons-material/Send';
15
+
16
+
17
+ let dataCollection = [];
18
+ let aar = [];
19
+ let markRead = [];
20
+
21
+ let chatMenuData =["Archive chat", "Mute notifications", "Exit group", "Pin chat", "Mark as read"]
22
+
23
+ function SidebarChat(props,{ dataHandler, disabledKey }) {
24
+ const [isShown, setIsShown] = useState();
25
+ const [pinChat, setPinChat] = useState(false);
26
+ const AppContext = createContext();
27
+ const [isModalShow, setIsMdalShow] = useState(false);
28
+ const [chatListItem, setChatListItem] = useState();
29
+ const Delete = localStorage.getItem("deleteIndex");
30
+ const Pin = localStorage.getItem("pinIndex");
31
+ const [pinIcon, setPinIcon] = useState(false);
32
+ const [key, setKey] = useState();
33
+ const [pinedData, setPinedData] = useState();
34
+ const [markedData, setMarkedData] = useState();
35
+ const [anchorEl, setAnchorEl] = React.useState(null);
36
+ const open = Boolean(anchorEl);
37
+
38
+ const handleClick = (event) => {
39
+ setAnchorEl(event.currentTarget);
40
+ };
41
+ const handleClosemodal = () => {
42
+ setAnchorEl(null);
43
+ };
44
+
45
+ const arrowHandler = (index, event, data) => {
46
+ setAnchorEl(event.currentTarget);
47
+ // setIsMdalShow(false);
48
+ // setIsShown(index);
49
+ // setPinedData(data);
50
+ // setMarkedData(data);
51
+ // console.log("nnn", index,data)
52
+ };
53
+
54
+ useEffect(() => {
55
+ setChatListItem(chatList);
56
+ dataCollection.push(chatListItem);
57
+ // if (isModalShow) {
58
+ // setIsMdalShow(disabledKey);
59
+ // }
60
+ }, []);
61
+
62
+ const chatDelete = (deleteItem) => {
63
+ const chat = chatListItem.filter((data) => data?.id != deleteItem);
64
+ setChatListItem(chat);
65
+ setIsMdalShow(!isModalShow);
66
+ chatListItem?.map((data) => {
67
+ if (data?.id == deleteItem) {
68
+ }
69
+ });
70
+ };
71
+
72
+ const handleClose = () => {
73
+ setIsMdalShow(!isModalShow);
74
+ };
75
+
76
+ const chatUnPin = (unpinItem) => {
77
+ const result = chatListItem.filter((data) => data?.id == unpinItem);
78
+ chatListItem.push(result[0]);
79
+ chatListItem.shift();
80
+ const unpin = aar.filter((data) => data != unpinItem);
81
+ aar = [];
82
+ aar = [...unpin];
83
+ setIsMdalShow(!isModalShow);
84
+ };
85
+
86
+ const markChatPin = (markItem) => {
87
+ markRead.push(markItem);
88
+ const result = chatListItem.filter((data) => data?.id == markItem);
89
+ result.forEach((object) => {
90
+ object.mark = "marked";
91
+ });
92
+
93
+ setIsMdalShow(!isModalShow);
94
+ };
95
+
96
+ const markUnchat = (unMarkItem) => {
97
+ const unmark = markRead.filter((data) => data != unMarkItem);
98
+ markRead = [];
99
+ markRead = [...unmark];
100
+ setIsMdalShow(!isModalShow);
101
+ };
102
+
103
+ const chatPin = (pinItem) => {
104
+ const result = chatListItem.filter((data) => data?.id == pinItem);
105
+ result.forEach((object) => {
106
+ object.pin = "pined";
107
+ });
108
+ chatListItem.unshift(result[0]);
109
+ setKey(result[0]?.id);
110
+ aar.push(result[0]?.id);
111
+ setPinChat(true);
112
+
113
+ var uniq = {};
114
+ var arrFiltered = chatListItem.filter(
115
+ (obj) => !uniq[obj.id] && (uniq[obj.id] = true)
116
+ );
117
+
118
+ setChatListItem(arrFiltered);
119
+ setPinIcon(true);
120
+ setIsMdalShow(!isModalShow);
121
+ };
122
+
123
+ if (aar.length > "3") {
124
+ }
125
+
126
+ return (
127
+ <>
128
+ <div className="sidebarChat">
129
+ {chatListItem?.map((data, index) => {
130
+ // console.log("ssss", data)
131
+ return (
132
+ <div>
133
+ <div className="user_Info" onClick={() => dataHandler(data)}>
134
+ <Checkbox />
135
+
136
+ {data.img ? (
137
+ <img src={data.img} className="userContact_image" alt="not" />
138
+ ) : (
139
+ <div
140
+ className="userContact_image"
141
+ style={{ textAlign: "center" }}
142
+ >
143
+ {data?.name?.charAt(0)}
144
+ </div>
145
+ )}
146
+
147
+ <div className="user_Item">
148
+ <div className="user_Div">
149
+ <p
150
+ style={{ fontSize: fontSize?.name }}
151
+ className="user_Name"
152
+ >
153
+ {data?.name}
154
+ </p>
155
+ <p
156
+ style={{ fontSize: fontSize?.message }}
157
+ className="user_Message text_Color"
158
+ >
159
+ {data?.message}
160
+ </p>
161
+ </div>
162
+
163
+ {/* <p className="message_Time text_Color ms-4">
164
+ 12:00 Pm
165
+ <div style={{display:"flex",justifyContent:"center",textAlign:"center",marginTop:"2vh"}} onClick={(event) => arrowHandler(index, event, data)}>
166
+ <Badge badgeContent={3} color="success" >
167
+ </Badge>
168
+
169
+ <div
170
+ className="arrow d-none"
171
+ type="button"
172
+ >
173
+ <KeyboardArrowDownIcon className=" text_Color"/>
174
+ </div>
175
+ </div>
176
+ </p> */}
177
+ </div>
178
+ {/* {pinChat ? (
179
+ <div>
180
+ {aar?.map((item, index) => {
181
+ return (
182
+ <div
183
+ className={`${
184
+ item == data?.id ? "d-block " : "d-none"
185
+ }`}
186
+ >
187
+ <h>
188
+ <svg
189
+ style={{
190
+ position: "absolute",
191
+ top: "34px",
192
+ right: "65px",
193
+ }}
194
+ height="15"
195
+ width="15"
196
+ preserveAspectRatio="xMidYMid meet"
197
+ class="text_Color"
198
+ >
199
+ <path
200
+ fill="currentColor"
201
+ d="M12.074 4.21 8.7 8.232l.116 4.233a.4.4 0 0 1-.657.318L.43 6.297a.4.4 0 0 1 .199-.702l4.196-.622L8.196.957a.63.63 0 0 1 .887-.078l2.914 2.445a.63.63 0 0 1 .077.887ZM1.294 14.229a.713.713 0 0 1-1.09-.915l2.674-3.64 1.536 1.288-3.12 3.267Z"
202
+ ></path>
203
+ </svg>
204
+ </h>
205
+ </div>
206
+ );
207
+ })}
208
+ </div>
209
+ ) : (
210
+ ""
211
+ )} */}
212
+
213
+ {/* <div>
214
+ {markRead?.map((item, index) => {
215
+ return (
216
+ <div
217
+ className={`${
218
+ item == data?.id ? "d-block " : "d-none"
219
+ }`}
220
+ >
221
+ <div
222
+ style={{
223
+ height: "22px",
224
+ width: "22px",
225
+ borderRadius: "20px",
226
+ background: "#25d366",
227
+ position: "absolute",
228
+ top: "31px",
229
+ right: "40px",
230
+ }}
231
+ >
232
+ {" "}
233
+ </div>
234
+ </div>
235
+ );
236
+ })}
237
+ </div> */}
238
+
239
+ {/* <p className={!isModalShow ? "d-none" : ""}> */}
240
+ <div
241
+ className="menuitems"
242
+ // className={`${index == isShown ? "d-block " : "d-none"}`}
243
+ style={
244
+ {
245
+ // position: "fixed",
246
+ // zIndex: "10000",
247
+ // transformOrigin: "left top",
248
+ // transform: "scale(1)",
249
+ // opacity: "1",
250
+ // top: "30%",
251
+ // width: "15%",
252
+ // boxShadow:
253
+ // "0 2px 5px 0 rgba(var(--shadow-rgb),.26),0 2px 10px 0 rgba(var(--shadow-rgb),.16)",
254
+ // overflow: "hidden",
255
+ }
256
+ }
257
+ >
258
+ {/* <Menu
259
+ isShown={data?.id}
260
+ chatDelete={chatDelete}
261
+ chatPin={chatPin}
262
+ chatUnPin={chatUnPin}
263
+ handleClose={handleClose}
264
+ data={data}
265
+ pinedData={pinedData}
266
+ markChatPin={markChatPin}
267
+ markedData={markedData}
268
+ markUnchat={markUnchat}
269
+ /> */}
270
+
271
+ <Menu
272
+ id="basic-menu"
273
+ anchorEl={anchorEl}
274
+ open={open}
275
+ onClose={handleClosemodal}
276
+ MenuListProps={{
277
+ "aria-labelledby": "basic-button",
278
+ }}
279
+ >
280
+ <MenuDialog menuData={chatMenuData} />
281
+ </Menu>
282
+ </div>
283
+ {/* </p> */}
284
+ </div>
285
+ </div>
286
+ );
287
+ })}
288
+
289
+ {aar.map((list) => {
290
+ <div>{list} </div>;
291
+ })}
292
+ </div>
293
+ <div className="frward-footer">
294
+ {/* <h1 style={{position:"flxed"}}>dsfdssfsd</h1> */}
295
+ <span>
296
+ <div
297
+ style={{
298
+ padding: "10px",
299
+ background: "#00a884",
300
+ borderRadius: "30px",
301
+ position: "relative",
302
+ top: "-25px",
303
+ left: "150px",
304
+ color: "white",
305
+ }}
306
+ >
307
+ <SendIcon
308
+ sx={{ fontSize: "xx-large" }}
309
+ onClick={props?.handleCloseForwardPopup}
310
+ />
311
+ </div>
312
+ </span>
313
+ </div>
314
+ <style jsx>{`
315
+ :global(
316
+ .menuitems
317
+ > .css-1poimk-MuiPaper-root-MuiMenu-paper-MuiPaper-root-MuiPopover-paper
318
+ ) {
319
+ box-shadow: none !important;
320
+ padding: 10px;
321
+ }
322
+ `}</style>
323
+ </>
324
+ );
325
+ }
326
+
327
+ export default SidebarChat;
@@ -0,0 +1,112 @@
1
+ .user_Info {
2
+ display: flex;
3
+ padding: 10px;
4
+ max-height: 4.4rem;
5
+ position: relative;
6
+ }
7
+
8
+ .user_Info:hover .arrow {
9
+ display: block !important;
10
+ padding-left:.7vw;
11
+ margin-top: -10px;
12
+
13
+ }
14
+ /* .arrow{
15
+ display: none;
16
+ } */
17
+ /* .arrow .text_Color{
18
+ margin-bottom: 30px;
19
+ } */
20
+
21
+ .user_Info:hover {
22
+ cursor: pointer;
23
+ background-color:var(--chat_hover)
24
+ }
25
+ .user_Info .user_Item {
26
+ margin-left: 15px;
27
+ flex: 1;
28
+ display: flex;
29
+ justify-content: space-between;
30
+ padding-bottom: 13px;
31
+ border-bottom: 1px solid var(--border_color);
32
+ align-items: center
33
+ }
34
+
35
+ .css-1poimk-MuiPaper-root-MuiMenu-paper-MuiPaper-root-MuiPopover-paper{
36
+ box-shadow: none !important;
37
+ }
38
+
39
+ .user_Item .user_Div {
40
+ display: block;
41
+ }
42
+
43
+ .user_Div .user_Name {
44
+ margin-bottom: 0px;
45
+ color:var(--black);
46
+ }
47
+
48
+ .user_Div .user_Message {
49
+ margin-bottom: 0px;
50
+ margin-right: 25px;
51
+
52
+ }
53
+
54
+ .user_Item .message_Time {
55
+
56
+ font-size: 12px;
57
+ max-height: 18px;
58
+
59
+ }
60
+
61
+ .modal-backdrop {
62
+ background-color: transparent !important;
63
+ }
64
+
65
+
66
+ .modal-content {
67
+ width: 0% !important;
68
+ padding-left: 0px !important;
69
+ padding: 0px !important;
70
+ top: 100px !important;
71
+ left: -100px !important;
72
+ }
73
+
74
+ .modal-header {
75
+ padding: 0px !important;
76
+ margin: 0px !important;
77
+ width: 0px !important;
78
+ height: 0px !important
79
+ }
80
+
81
+ .modal-dialog {
82
+ width: 32% !important;
83
+ border: none !important;
84
+ outline: none !important;
85
+ }
86
+
87
+ .btn {
88
+ color: white !important;
89
+ margin: 0px !important;
90
+ padding: 0px !important;
91
+ width: 25px !important;
92
+ height: 25px !important;
93
+ }
94
+
95
+ .css-pwyk3z-MuiBadge-badge{
96
+ z-index: 0 !important;
97
+
98
+ }
99
+
100
+ .css-1p3d99h{
101
+ z-index: 0 !important;
102
+ }
103
+
104
+ .frward-footer{
105
+ position: absolute;
106
+ top: 565px;
107
+ width:100%;
108
+ display:flex;
109
+ background:var(--profile-header);
110
+ justify-content:space-around;
111
+
112
+ }
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ import "./styles.css";
3
+ import SearchBar from "../SeachBar";
4
+ import ForwardData from "../forwardData/index";
5
+ import CloseIcon from "@mui/icons-material/Close";
6
+ import styled, { css } from "styled-components";
7
+ import { mobile } from "../../../utils/media";
8
+
9
+ const SectionTag = styled.form`
10
+ ${mobile(css`
11
+ flex: 1;
12
+ `)}
13
+ `;
14
+
15
+ function Sidebar(props, { sidebarData, disabledKey }) {
16
+
17
+ const dataHandler = (data) => {
18
+ sidebarData(data);
19
+ };
20
+
21
+
22
+ return (
23
+ <>
24
+ <SectionTag>
25
+ <div className="sidebar">
26
+ <div className="sidebar_headerr d-flex">
27
+ <div>
28
+ <CloseIcon
29
+ style={{ marginRight: "20px" }}
30
+ className="close_icon"
31
+ onClick={props?.handleCloseForwardPopup}
32
+ />
33
+ </div>
34
+ <div>
35
+ <h5>Forward message to</h5>
36
+ </div>
37
+ </div>
38
+ <div className="d-flex align-items-center border-1-light bgWhite">
39
+ <SearchBar />
40
+ </div>
41
+ <div>
42
+ <div className="chat d-flex">
43
+ <ForwardData
44
+ dataHandler={dataHandler}
45
+ disabledKey={disabledKey}
46
+ handleCloseForwardPopup={props?.handleCloseForwardPopup}
47
+ />
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </SectionTag>
52
+ </>
53
+ );
54
+ }
55
+ export default Sidebar;
@@ -0,0 +1,144 @@
1
+ .sidebar_headerr {
2
+ /* justify-content: space-between; */
3
+ padding: 10px 10px;
4
+ background-color:var(--profile-header);
5
+ /* border-right: 1px solid var(--border_color); */
6
+ color:white;
7
+ align-items: center;
8
+ }
9
+
10
+ .sidebar_headerr .close_icon{
11
+ color:var(--gray_color)
12
+ }
13
+
14
+ .sidebar {
15
+ flex: 0.3;
16
+ background-color:var(--white);
17
+ }
18
+
19
+ .sidebar .bgWhite{
20
+ background-color: var(--primary-white);
21
+ }
22
+
23
+ .sidebar .sidebar_headerr .sliderr {
24
+ height: 100vh;
25
+ width: 35vw;
26
+ position: fixed;
27
+ z-index: 1;
28
+ top: 0px;
29
+ left: 0px;
30
+ overflow-x: hidden;
31
+ transition: 0.2s;
32
+ overflow: auto;
33
+ }
34
+
35
+ .sidebar .sidebar_headerr .slider {
36
+ height: 100vh;
37
+ width: 0px;
38
+ position: fixed;
39
+ z-index: 1;
40
+ top: 0px;
41
+ left: 0px;
42
+ overflow-x: hidden;
43
+ transition: 0.2s;
44
+ overflow: auto;
45
+ }
46
+
47
+ .sidebar-search {
48
+ padding: 10px;
49
+ text-align: center;
50
+ align-items: center;
51
+ }
52
+
53
+ .sidebar-right {
54
+ width: 48%;
55
+ justify-content: space-around;
56
+ align-items: center;
57
+ }
58
+
59
+ .sidebar-input {
60
+ position: relative;
61
+ padding-left: 15px !important;
62
+ font-size: 15px;
63
+ border: none;
64
+ outline: none;
65
+ background: none;
66
+ color: var(--black);
67
+ }
68
+
69
+ .sidebar_search-container svg {
70
+ color: #54656f;
71
+ margin-left: 12px;
72
+ }
73
+
74
+ .chat {
75
+ flex-direction: column;
76
+ overflow: auto;
77
+ height: 81vh;
78
+ padding: 0;
79
+ background-color: var(--primary-white);
80
+ }
81
+
82
+ ::-webkit-scrollbar-thumb {
83
+ background-color: #e9ecef;
84
+ }
85
+
86
+ ::-webkit-scrollbar-track {
87
+ background: var(--white) !important;
88
+ }
89
+
90
+ ::-webkit-scrollbar {
91
+ width: 6px !important;
92
+ height: 6px !important;
93
+ }
94
+
95
+ ::-webkit-scrollbar-thumb {
96
+ background:var(--gray_color)
97
+ }
98
+
99
+ .css-1t1j96h-MuiPaper-root-MuiDialog-paper {
100
+ margin: 0px !important;
101
+ padding: 0px !important;
102
+ }
103
+
104
+ .css-hz1bth-MuiDialog-container {
105
+ height: auto !important;
106
+ }
107
+
108
+ .css-uhb5lp {
109
+ margin: 0px !important;
110
+ }
111
+
112
+ .css-ekeie0 {
113
+ height: none !important;
114
+ }
115
+
116
+ .css-ekeie0 {
117
+ height: auto !important;
118
+ }
119
+
120
+ .css-1t1j96h-MuiPaper-root-MuiDialog-paper {
121
+ border-radius: 0px !important;
122
+ }
123
+
124
+ .sidebar_header .user_image {
125
+ cursor: pointer;
126
+ }
127
+
128
+ .filterIcon {
129
+ margin-top: 15px;
130
+ padding-right: 10px;
131
+ }
132
+
133
+ .filter {
134
+ height: 20px !important;
135
+ width: 20px !important;
136
+ }
137
+
138
+ .sidebar-search .searchBox {
139
+ display: flex;
140
+ background-color: var(--gray_color);
141
+ flex: 1;
142
+ border-radius: 10px;
143
+ }
144
+