isometrik-plugin-chat-sdk 1.0.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 (507) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/BlockChatList-720a703e.js +423 -0
  3. package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
  4. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
  5. package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
  6. package/dist/cjs/Image-67c52acd.js +135 -0
  7. package/dist/cjs/Image-67c52acd.js.map +1 -0
  8. package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
  9. package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
  10. package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
  11. package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
  12. package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
  13. package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
  14. package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
  15. package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
  16. package/dist/cjs/Text-fedf6eab.js +60 -0
  17. package/dist/cjs/Text-fedf6eab.js.map +1 -0
  18. package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
  19. package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
  20. package/dist/cjs/WebChat-403e7ab1.js +2884 -0
  21. package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
  22. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  23. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  24. package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
  25. package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
  26. package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
  27. package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
  28. package/dist/cjs/chat-app.cjs.entry.js +55 -0
  29. package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
  30. package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
  31. package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
  32. package/dist/cjs/chat-creds-f4cbf400.js +38 -0
  33. package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
  34. package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
  35. package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
  36. package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
  37. package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
  38. package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
  39. package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
  40. package/dist/cjs/content-eca5336c.js +81 -0
  41. package/dist/cjs/content-eca5336c.js.map +1 -0
  42. package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
  43. package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
  44. package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
  45. package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
  46. package/dist/cjs/group-members-a60fb1cb.js +41 -0
  47. package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
  48. package/dist/cjs/groupcast-49dae5ab.js +202 -0
  49. package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
  50. package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
  51. package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
  52. package/dist/cjs/index-9afe62b6.js +3129 -0
  53. package/dist/cjs/index-9afe62b6.js.map +1 -0
  54. package/dist/cjs/index.cjs.js +148 -0
  55. package/dist/cjs/index.cjs.js.map +1 -0
  56. package/dist/cjs/isometrik-webchat.cjs.js +54 -0
  57. package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
  58. package/dist/cjs/loader.cjs.js +17 -0
  59. package/dist/cjs/loader.cjs.js.map +1 -0
  60. package/dist/cjs/login-page.cjs.entry.js +85 -0
  61. package/dist/cjs/login-page.cjs.entry.js.map +1 -0
  62. package/dist/cjs/member-add.cjs.entry.js +122 -0
  63. package/dist/cjs/member-add.cjs.entry.js.map +1 -0
  64. package/dist/cjs/message-reaction-976f6261.js +24 -0
  65. package/dist/cjs/message-reaction-976f6261.js.map +1 -0
  66. package/dist/cjs/my-component.cjs.entry.js +29 -0
  67. package/dist/cjs/my-component.cjs.entry.js.map +1 -0
  68. package/dist/cjs/reaction-container.cjs.entry.js +52 -0
  69. package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
  70. package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
  71. package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
  72. package/dist/cjs/signup-page.cjs.entry.js +143 -0
  73. package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
  74. package/dist/cjs/taguser-aca04ed9.js +512 -0
  75. package/dist/cjs/taguser-aca04ed9.js.map +1 -0
  76. package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
  77. package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
  78. package/dist/cjs/toast-helper-defae4a5.js +84 -0
  79. package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
  80. package/dist/cjs/utils-bcad3386.js +9 -0
  81. package/dist/cjs/utils-bcad3386.js.map +1 -0
  82. package/dist/collection/api/conversations.js +12 -0
  83. package/dist/collection/api/group-members.js +36 -0
  84. package/dist/collection/api/groupcast.js +183 -0
  85. package/dist/collection/api/membership-control.js +13 -0
  86. package/dist/collection/api/message-reaction.js +16 -0
  87. package/dist/collection/api/social-accounts.js +282 -0
  88. package/dist/collection/app-root.js +51 -0
  89. package/dist/collection/app-root.js.map +1 -0
  90. package/dist/collection/assets/images/avatar.svg +1 -0
  91. package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
  92. package/dist/collection/assets/images/equalizer.svg +1 -0
  93. package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
  94. package/dist/collection/assets/images/link.svg +1 -0
  95. package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
  96. package/dist/collection/assets/images/videoThumbnail.svg +1 -0
  97. package/dist/collection/assets/svg/ExcelDocument.js +2 -0
  98. package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
  99. package/dist/collection/assets/svg/Moon.svg +1 -0
  100. package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
  101. package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
  102. package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
  103. package/dist/collection/assets/svg/PdfDocument.js +2 -0
  104. package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
  105. package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
  106. package/dist/collection/assets/svg/Sun.svg +1 -0
  107. package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
  108. package/dist/collection/assets/svg/broadcst-default.svg +4 -0
  109. package/dist/collection/assets/svg/close.svg +1 -0
  110. package/dist/collection/assets/svg/group.svg +7 -0
  111. package/dist/collection/assets/svg/login.svg +3051 -0
  112. package/dist/collection/assets/svg/message-add.svg +5 -0
  113. package/dist/collection/assets/svg/message-bold.svg +3 -0
  114. package/dist/collection/assets/svg/message-outline.svg +5 -0
  115. package/dist/collection/collection-manifest.json +32 -0
  116. package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
  117. package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
  118. package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
  119. package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
  120. package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
  121. package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
  122. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
  123. package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
  124. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
  125. package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
  126. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
  127. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
  128. package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
  129. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
  130. package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
  131. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
  132. package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
  133. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
  134. package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
  135. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
  136. package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
  137. package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
  138. package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
  139. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
  140. package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
  141. package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
  142. package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
  143. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
  144. package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
  145. package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
  146. package/dist/collection/components/Login.js +118 -0
  147. package/dist/collection/components/Login.js.map +1 -0
  148. package/dist/collection/components/Signup.js +177 -0
  149. package/dist/collection/components/Signup.js.map +1 -0
  150. package/dist/collection/components/chat-main.js +131 -0
  151. package/dist/collection/components/chat-main.js.map +1 -0
  152. package/dist/collection/components/my-component/my-component.css +3 -0
  153. package/dist/collection/components/my-component/my-component.js +83 -0
  154. package/dist/collection/components/my-component/my-component.js.map +1 -0
  155. package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
  156. package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
  157. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
  158. package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
  159. package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
  160. package/dist/collection/components/theme-provider.js +182 -0
  161. package/dist/collection/components/theme-provider.js.map +1 -0
  162. package/dist/collection/constants/chat-assets.js +12 -0
  163. package/dist/collection/constants/chat-creds.js +31 -0
  164. package/dist/collection/constants/content.js +75 -0
  165. package/dist/collection/constants/urls.js +1 -0
  166. package/dist/collection/index.js +135 -0
  167. package/dist/collection/index.js.map +1 -0
  168. package/dist/collection/lib/helpers.js +205 -0
  169. package/dist/collection/lib/taguser.js +123 -0
  170. package/dist/collection/store/conversation.js +25 -0
  171. package/dist/collection/store/conversation.js.map +1 -0
  172. package/dist/collection/store/group-members.js +24 -0
  173. package/dist/collection/store/group-members.js.map +1 -0
  174. package/dist/collection/store/unread-count.js +18 -0
  175. package/dist/collection/store/unread-count.js.map +1 -0
  176. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
  177. package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
  178. package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
  179. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
  180. package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
  181. package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
  182. package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
  183. package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
  184. package/dist/collection/stories/Components/Body/Body.js +48 -0
  185. package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
  186. package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
  187. package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
  188. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
  189. package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
  190. package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
  191. package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
  192. package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
  193. package/dist/collection/stories/Components/Chip/Chip.js +111 -0
  194. package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
  195. package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
  196. package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
  197. package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
  198. package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
  199. package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
  200. package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
  201. package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
  202. package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
  203. package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
  204. package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
  205. package/dist/collection/stories/Components/Footer/Footer.js +4 -0
  206. package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
  207. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
  208. package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
  209. package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
  210. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
  211. package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
  212. package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
  213. package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
  214. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
  215. package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
  216. package/dist/collection/stories/Components/Head/Head.js +672 -0
  217. package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
  218. package/dist/collection/stories/Components/Icon/Icon.js +115 -0
  219. package/dist/collection/stories/Components/Image/Image.js +41 -0
  220. package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
  221. package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
  222. package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
  223. package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
  224. package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
  225. package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
  226. package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
  227. package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
  228. package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
  229. package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
  230. package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
  231. package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
  232. package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
  233. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
  234. package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
  235. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
  236. package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
  237. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
  238. package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
  239. package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
  240. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
  241. package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
  242. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
  243. package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
  244. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
  245. package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
  246. package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
  247. package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
  248. package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
  249. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
  250. package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
  251. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
  252. package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
  253. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
  254. package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
  255. package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
  256. package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
  257. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
  258. package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
  259. package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
  260. package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
  261. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
  262. package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
  263. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
  264. package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
  265. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
  266. package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
  267. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
  268. package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
  269. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
  270. package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
  271. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
  272. package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
  273. package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
  274. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
  275. package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
  276. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
  277. package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
  278. package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
  279. package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
  280. package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
  281. package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
  282. package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
  283. package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
  284. package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
  285. package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
  286. package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
  287. package/dist/collection/stories/Components/Text/Text.js +57 -0
  288. package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
  289. package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
  290. package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
  291. package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
  292. package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
  293. package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
  294. package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
  295. package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
  296. package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
  297. package/dist/collection/stories/Components/final/final.js +86 -0
  298. package/dist/collection/stories/Components/final/final.stories.js +30 -0
  299. package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
  300. package/dist/collection/types/ConversationDetailsTypes.js +2 -0
  301. package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
  302. package/dist/collection/utils/chatSdk.js +14 -0
  303. package/dist/collection/utils/getFomattedDate.js +34 -0
  304. package/dist/collection/utils/getFomattedDate.js.map +1 -0
  305. package/dist/collection/utils/unixTimeConverter.js +28 -0
  306. package/dist/collection/utils/utils.js +4 -0
  307. package/dist/collection/utils/utils.js.map +1 -0
  308. package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
  309. package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
  310. package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
  311. package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
  312. package/dist/esm/Image-bb9efda3.js +121 -0
  313. package/dist/esm/Image-bb9efda3.js.map +1 -0
  314. package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
  315. package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
  316. package/dist/esm/IsometrikLogo-14db76af.js +42 -0
  317. package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
  318. package/dist/esm/MessageSearch-4101a627.js +5875 -0
  319. package/dist/esm/MessageSearch-4101a627.js.map +1 -0
  320. package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
  321. package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
  322. package/dist/esm/Text-3b0b3898.js +58 -0
  323. package/dist/esm/Text-3b0b3898.js.map +1 -0
  324. package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
  325. package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
  326. package/dist/esm/WebChat-5448d615.js +2882 -0
  327. package/dist/esm/WebChat-5448d615.js.map +1 -0
  328. package/dist/esm/app-globals-0f993ce5.js +5 -0
  329. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  330. package/dist/esm/audio-bubble_8.entry.js +21001 -0
  331. package/dist/esm/audio-bubble_8.entry.js.map +1 -0
  332. package/dist/esm/block-chat-list.entry.js +8 -0
  333. package/dist/esm/block-chat-list.entry.js.map +1 -0
  334. package/dist/esm/chat-app.entry.js +51 -0
  335. package/dist/esm/chat-app.entry.js.map +1 -0
  336. package/dist/esm/chat-assets-bd8778d5.js +6 -0
  337. package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
  338. package/dist/esm/chat-creds-ff086f05.js +35 -0
  339. package/dist/esm/chat-creds-ff086f05.js.map +1 -0
  340. package/dist/esm/chat-document-message-bubble.entry.js +20 -0
  341. package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
  342. package/dist/esm/chat-image-message-bubble.entry.js +22 -0
  343. package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
  344. package/dist/esm/chat-video-message-bubble.entry.js +20 -0
  345. package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
  346. package/dist/esm/content-5aea5e39.js +79 -0
  347. package/dist/esm/content-5aea5e39.js.map +1 -0
  348. package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
  349. package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
  350. package/dist/esm/forward-memebers.entry.js +124 -0
  351. package/dist/esm/forward-memebers.entry.js.map +1 -0
  352. package/dist/esm/group-members-bb3c8db7.js +37 -0
  353. package/dist/esm/group-members-bb3c8db7.js.map +1 -0
  354. package/dist/esm/groupcast-d1c54a27.js +187 -0
  355. package/dist/esm/groupcast-d1c54a27.js.map +1 -0
  356. package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
  357. package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
  358. package/dist/esm/index-fddf30b7.js +3093 -0
  359. package/dist/esm/index-fddf30b7.js.map +1 -0
  360. package/dist/esm/index.js +139 -0
  361. package/dist/esm/index.js.map +1 -0
  362. package/dist/esm/isometrik-webchat.js +49 -0
  363. package/dist/esm/isometrik-webchat.js.map +1 -0
  364. package/dist/esm/loader.js +13 -0
  365. package/dist/esm/loader.js.map +1 -0
  366. package/dist/esm/login-page.entry.js +81 -0
  367. package/dist/esm/login-page.entry.js.map +1 -0
  368. package/dist/esm/member-add.entry.js +118 -0
  369. package/dist/esm/member-add.entry.js.map +1 -0
  370. package/dist/esm/message-reaction-ad47ea1a.js +20 -0
  371. package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
  372. package/dist/esm/my-component.entry.js +25 -0
  373. package/dist/esm/my-component.entry.js.map +1 -0
  374. package/dist/esm/reaction-container.entry.js +48 -0
  375. package/dist/esm/reaction-container.entry.js.map +1 -0
  376. package/dist/esm/shadow-css-7ad5caf8.js +334 -0
  377. package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
  378. package/dist/esm/signup-page.entry.js +139 -0
  379. package/dist/esm/signup-page.entry.js.map +1 -0
  380. package/dist/esm/taguser-e9032d65.js +510 -0
  381. package/dist/esm/taguser-e9032d65.js.map +1 -0
  382. package/dist/esm/theme-provider_2.entry.js +108 -0
  383. package/dist/esm/theme-provider_2.entry.js.map +1 -0
  384. package/dist/esm/toast-helper-840fd8dc.js +82 -0
  385. package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
  386. package/dist/esm/utils-11fcde98.js +7 -0
  387. package/dist/esm/utils-11fcde98.js.map +1 -0
  388. package/dist/index.cjs.js +1 -0
  389. package/dist/index.js +1 -0
  390. package/dist/isometrik-webchat/index.esm.js +2 -0
  391. package/dist/isometrik-webchat/index.esm.js.map +1 -0
  392. package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
  393. package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
  394. package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
  395. package/dist/isometrik-webchat/p-12774661.js +2 -0
  396. package/dist/isometrik-webchat/p-12774661.js.map +1 -0
  397. package/dist/isometrik-webchat/p-12e56271.js +549 -0
  398. package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
  399. package/dist/isometrik-webchat/p-1415e589.js +2 -0
  400. package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
  401. package/dist/isometrik-webchat/p-18f8d210.js +13 -0
  402. package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
  403. package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
  404. package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
  405. package/dist/isometrik-webchat/p-229095d4.js +2 -0
  406. package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
  407. package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
  408. package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
  409. package/dist/isometrik-webchat/p-3004a123.js +2 -0
  410. package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
  411. package/dist/isometrik-webchat/p-3044698a.js +2 -0
  412. package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
  413. package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
  414. package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
  415. package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
  416. package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
  417. package/dist/isometrik-webchat/p-48e1d174.js +45 -0
  418. package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
  419. package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
  420. package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
  421. package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
  422. package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
  423. package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
  424. package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
  425. package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
  426. package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
  427. package/dist/isometrik-webchat/p-8490e13d.js +192 -0
  428. package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
  429. package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
  430. package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
  431. package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
  432. package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
  433. package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
  434. package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
  435. package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
  436. package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
  437. package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
  438. package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
  439. package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
  440. package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
  441. package/dist/isometrik-webchat/p-b07dd267.js +2 -0
  442. package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
  443. package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
  444. package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
  445. package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
  446. package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
  447. package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
  448. package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
  449. package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
  450. package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
  451. package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
  452. package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
  453. package/dist/isometrik-webchat/p-de8a8642.js +197 -0
  454. package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
  455. package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
  456. package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
  457. package/dist/isometrik-webchat/p-e1255160.js +2 -0
  458. package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
  459. package/dist/isometrik-webchat/p-e3731295.js +274 -0
  460. package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
  461. package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
  462. package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
  463. package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
  464. package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
  465. package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
  466. package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
  467. package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
  468. package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
  469. package/dist/loader/cdn.js +1 -0
  470. package/dist/loader/index.cjs.js +1 -0
  471. package/dist/loader/index.d.ts +24 -0
  472. package/dist/loader/index.es2017.js +1 -0
  473. package/dist/loader/index.js +2 -0
  474. package/dist/loader/package.json +11 -0
  475. package/dist/types/app-root.d.ts +0 -0
  476. package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
  477. package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
  478. package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
  479. package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
  480. package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
  481. package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
  482. package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
  483. package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
  484. package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
  485. package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
  486. package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
  487. package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
  488. package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
  489. package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
  490. package/dist/types/components/Login.d.ts +13 -0
  491. package/dist/types/components/Signup.d.ts +17 -0
  492. package/dist/types/components/chat-main.d.ts +15 -0
  493. package/dist/types/components/my-component/my-component.d.ts +16 -0
  494. package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
  495. package/dist/types/components/theme-provider.d.ts +44 -0
  496. package/dist/types/components.d.ts +838 -0
  497. package/dist/types/index.d.ts +37 -0
  498. package/dist/types/stencil-public-runtime.d.ts +1678 -0
  499. package/dist/types/store/conversation.d.ts +17 -0
  500. package/dist/types/store/group-members.d.ts +18 -0
  501. package/dist/types/store/unread-count.d.ts +10 -0
  502. package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
  503. package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
  504. package/dist/types/utils/getFomattedDate.d.ts +1 -0
  505. package/dist/types/utils/utils.d.ts +1 -0
  506. package/package.json +89 -0
  507. package/readme.md +569 -0
@@ -0,0 +1,373 @@
1
+ import { h, i, k as ke, I as Image } from './Image-bb9efda3.js';
2
+ import { W as WEB_CONTENT } from './content-5aea5e39.js';
3
+
4
+ class DeletePopup extends h {
5
+ static properties = {
6
+ bgColor: {type: String},
7
+ borderRadius: {type: String},
8
+ height: {type: String},
9
+ width: {type: String},
10
+ title: {type: String},
11
+ message: {type: String},
12
+ primaryButtonBgColor: {type: String},
13
+ primaryButtonTextColor: {type: String},
14
+ primaryButtonText: {type: String},
15
+ secondaryButtonText: {type: String},
16
+ secondaryButtonBgColor : {type: String},
17
+ secondaryButtonTextColor: {type: String},
18
+ handleConfirmRemove: {type: Function},
19
+ closeConfirmationPopup: {type: Function},
20
+ };
21
+
22
+ static styles = i`
23
+ .confirmation-popup {
24
+ position: fixed;
25
+ border-radius: 8px;
26
+ padding: 12px;
27
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
28
+ z-index: 1000;
29
+ top: 50%;
30
+ left: 50%;
31
+ transform: translate(-50%, -50%);
32
+ display: flex;
33
+ flex-direction: column;
34
+ align-items: center;
35
+ justify-content: center;
36
+ }
37
+
38
+ .confirmation-popup svg {
39
+ align-self: center;
40
+ }
41
+
42
+ .confirmation-popup-title {
43
+ width: 75%;
44
+ display: block;
45
+ font-size: 22px;
46
+ color: var(--text-primary-color);
47
+ text-align: center;
48
+ }
49
+ .confirmation-popup-message {
50
+ width: 75%;
51
+ display: block;
52
+ font-size: 16px;
53
+ color: #a5a4a7;
54
+ text-align: center;
55
+ }
56
+ .confirmation-buttons {
57
+ display: flex;
58
+ gap: 8px;
59
+ margin-top: 30px;
60
+ width: 100%;
61
+ }
62
+
63
+ .confirm-btn {
64
+ padding: 6px 26px;
65
+ border-radius: 4px;
66
+ cursor: pointer;
67
+ border: none;
68
+ width: 50%;
69
+ font-size: 18px;
70
+ height: 50px;
71
+ }
72
+
73
+
74
+ .background-overlay {
75
+ background: var(--popup-overlay);
76
+ width: 100vw;
77
+ height: 100vh;
78
+ position: fixed;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ top: 0;
83
+ left: 0;
84
+ z-index: 100;
85
+ }
86
+ @media (max-width: 768px) {
87
+ .confirmation-popup {
88
+ width: 90%;
89
+ }
90
+ }
91
+ `;
92
+
93
+ render() {
94
+ return ke`
95
+ <div class="background-overlay">
96
+ <div class="confirmation-popup" style="background-color: ${this.bgColor}; height: ${this.height}; width: ${this.width}">
97
+ <svg width="40px" height="40px" viewBox="-6.96 -6.96 37.92 37.92" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="" transform="matrix(-1, 0, 0, 1, 0, 0)rotate(180)"><g id="SVGRepo_bgCarrier" stroke-width="0" transform="translate(0,0), scale(1)"><rect x="-6.96" y="-6.96" width="37.92" height="37.92" rx="18.96" fill="#ffc2ca" strokewidth="0"></rect></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="0.24000000000000005"></g><g id="SVGRepo_iconCarrier"> <circle cx="12" cy="12" r="10" stroke="#d15e6d" stroke-width="1.7280000000000002"></circle> <path d="M12 17V11" stroke="#d15e6d" stroke-width="1.7280000000000002" stroke-linecap="round"></path> <circle cx="1" cy="1" r="1" transform="matrix(1 0 0 -1 11 9)" fill="#d15e6d"></circle> </g></svg>
98
+ <span class="confirmation-popup-title">${this.title}</span>
99
+ <span class="confirmation-popup-message">${this.message}</span>
100
+
101
+ <div class="confirmation-buttons">
102
+ <button class="confirm-btn yes-btn" @click="${this.handleConfirmRemove}" style="background-color: ${this.primaryButtonBgColor}; color: ${this.primaryButtonTextColor}">
103
+ ${this.primaryButtonText}
104
+ </button>
105
+ <button class="confirm-btn no-btn" @click="${this.closeConfirmationPopup}" style="background-color: ${this.secondaryButtonBgColor}; color: ${this.secondaryButtonTextColor}">
106
+ ${this.secondaryButtonText}
107
+ </button>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ `;
112
+ }
113
+ }
114
+
115
+ customElements.define('delete-popup', DeletePopup);
116
+
117
+ class ReactionsInfoCard extends h {
118
+ static properties = {
119
+ reactionType: { type: String },
120
+ userName: { type: String },
121
+ userProfileImage: { type: String },
122
+ isSelfReaction: { type: String },
123
+
124
+ bgColor: { type: String },
125
+ color: { type: String },
126
+ borderRadius: { type: String },
127
+ border: { type: String },
128
+ fontSize: { type: String },
129
+ height: { type: String },
130
+ width: { type: String },
131
+
132
+ imageRadius: { type: String },
133
+ imageHeight: { type: String },
134
+ imageWidth: { type: String },
135
+ };
136
+
137
+ static styles = i`
138
+ .reaction-info-card-container {
139
+ display: flex;
140
+ align-items: center;
141
+ justify-content: space-between;
142
+ padding: 12px;
143
+ border-radius: 4px;
144
+ gap: 10px;
145
+ }
146
+
147
+ .reaction-info-username-container {
148
+ display: flex;
149
+ flex-direction: column;
150
+ flex: 1;
151
+ }
152
+ `;
153
+
154
+ handleRemoveClick() {
155
+ this.dispatchEvent(new CustomEvent('remove-click', {
156
+ detail: {
157
+ reactionType: this.reactionType,
158
+ },
159
+ bubbles: true,
160
+ composed: true
161
+ }));
162
+ }
163
+ render() {
164
+ const emojis = [
165
+ { id: 'star', src: '⭐' },
166
+ { id: 'crying_with_laughter', src: '😂' },
167
+ { id: 'yes', src: '👍' },
168
+ { id: 'no', src: '❌' },
169
+ { id: 'party', src: '🥳' },
170
+ { id: 'high_five', src: '✋' },
171
+ { id: 'rock', src: '🪨' },
172
+ { id: 'facepal', src: '🤦' },
173
+ { id: 'sarcastic', src: '🙄' },
174
+ { id: 'talking_too_much', src: '🤫' },
175
+ { id: 'crying', src: '😭' },
176
+ { id: 'heart', src: '❤️' },
177
+ { id: 'surprised', src: '😮' },
178
+ { id: 'bowing', src: '🙇' },
179
+ ];
180
+ const matchingEmoji = emojis.find(emoji => emoji.id === this.reactionType)?.src || '';
181
+
182
+ const emojiSize = `calc(${this.fontSize} + 4px)`;
183
+ const seondarySize = `calc(${this.fontSize} - 6px)`;
184
+ return ke`
185
+ <div
186
+ class="reaction-info-card-container"
187
+ style="background-color: ${this.bgColor}; color: ${this.color}; border: ${this.border};
188
+ border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};"
189
+ >
190
+ <div class="reaction-info-user-image">
191
+ ${Image({
192
+ src: this.userProfileImage,
193
+ height: this.imageHeight,
194
+ width: this.imageWidth,
195
+ borderRadius: this.imageRadius,
196
+ objectFit: 'cover',
197
+ })}
198
+ </div>
199
+ <div class="reaction-info-username-container">
200
+ <div class="reaction-info-username" style="font-size: ${this.fontSize}">${this.userName}</div>
201
+ ${this.isSelfReaction
202
+ ? ke`<div @click=${this.handleRemoveClick} style="cursor: pointer; font-size: ${seondarySize}">${WEB_CONTENT.REACTIONS.REMOVE_REACTION_ON_TAP}</div>`
203
+ : null}
204
+ </div>
205
+ <div class="reaction-info-emoji" style="font-size: ${emojiSize}">${matchingEmoji}</div>
206
+ </div>
207
+ `;
208
+ }
209
+ }
210
+
211
+ customElements.define('reactions-info-card', ReactionsInfoCard);
212
+
213
+ class ReactionsContainer extends h {
214
+ static properties = {
215
+ bgColor: { type: String },
216
+ border: { type: String },
217
+ borderRadius: { type: String },
218
+ color: { type: String },
219
+ height: { type: String },
220
+ width: { type: String },
221
+ reactions: { type: Array },
222
+ fontSize: { type: String },
223
+ reactionsUser: { type: Array },
224
+ showConfirmationPopup: { type: Boolean },
225
+ handleConfirmDelete: { type: Function },
226
+ handleClosePopup: { type: Function },
227
+ userMetaData: { type: Object },
228
+ selectedEmojiToRemove: { type: Object },
229
+ selectedEmojiId: { type: String },
230
+ messageId: { type: String },
231
+ };
232
+
233
+ constructor() {
234
+ super();
235
+ this.showConfirmationPopup = false;
236
+ this.addEventListener('remove-click', this.handleRemoveReactionClick);
237
+ this.selectedEmojiToRemove = null;
238
+ this.selectedEmojiId = null; // Initialize the selected emoji ID
239
+ }
240
+
241
+ handleRemoveReactionClick(e) {
242
+ this.showConfirmationPopup = true;
243
+ this.selectedEmojiToRemove = e.detail;
244
+ }
245
+ static styles = i`
246
+ .reactions-container {
247
+ display: flex;
248
+ flex-direction: column;
249
+ padding: 10px;
250
+ box-shadow:
251
+ 2px 2px 2px var(--bg-senary-color),
252
+ -2px -2px 2px var(--bg-senary-color);
253
+ }
254
+ .reactions-list-container {
255
+ margin-top: 10px;
256
+ display: flex;
257
+ flex-direction: column;
258
+ gap: 8px;
259
+ }
260
+ .reactions-tab-container {
261
+ display: flex;
262
+ gap: 8px;
263
+ padding: 0;
264
+ }
265
+ .emoji-tab {
266
+ cursor: pointer;
267
+ padding: 4px 8px;
268
+ background: transparent;
269
+ border-bottom: 1px solid var(--text-primary-color);
270
+ }
271
+ .emoji-tab:hover {
272
+ background: var(--bg-tertiary-color);
273
+ }
274
+ .emoji-tab.selected {
275
+ background: var(--bg-tertiary-color);
276
+ }
277
+ `;
278
+
279
+ handleEmojiClick(emojiId) {
280
+ this.selectedEmojiId = emojiId;
281
+ const event = new CustomEvent('emojiTabClick', {
282
+ detail: emojiId,
283
+ bubbles: true,
284
+ composed: true,
285
+ });
286
+ this.dispatchEvent(event);
287
+
288
+ this.requestUpdate();
289
+ }
290
+
291
+ handleConfirmRemove() {
292
+ if (this.selectedEmojiToRemove) {
293
+ this.dispatchEvent(
294
+ new CustomEvent('reaction-removed', {
295
+ detail: {
296
+ messageId: this.messageId,
297
+ emojiId: this.selectedEmojiToRemove.reactionType,
298
+ },
299
+ bubbles: true,
300
+ composed: true,
301
+ }),
302
+ );
303
+ }
304
+ this.closeConfirmationPopup();
305
+ }
306
+
307
+ closeConfirmationPopup() {
308
+ this.showConfirmationPopup = false;
309
+ this.selectedEmojiToRemove = null;
310
+ }
311
+ render() {
312
+ const updatedData = this.reactions?.map(item => ({
313
+ ...item,
314
+ messageId: item.messageId[0],
315
+ }));
316
+
317
+ return ke`
318
+ <div
319
+ class="reactions-container"
320
+ style="background-color: ${this.bgColor}; color: ${this.color};
321
+ font-size: ${this.fontSize}; border: ${this.border}; border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};
322
+ "
323
+ >
324
+ <div class="reactions-tab-container">
325
+ ${updatedData?.map(
326
+ data => ke` <div class="emoji-tab ${this.selectedEmojiId === data.emojiId ? 'selected' : ''}" @click=${() => this.handleEmojiClick(data.emojiId)}>${data.src}</div> `,
327
+ )}
328
+ </div>
329
+ <div class="reactions-list-container">
330
+ ${this.selectedEmojiId && this.reactionsUser?.length > 0
331
+ ? this.reactionsUser.map(
332
+ user => ke`
333
+ <reactions-info-card
334
+ .userName=${user.userName}
335
+ .userProfileImage=${user.userProfileImageUrl}
336
+ .imageRadius=${'50%'}
337
+ .imageHeight=${'40px'}
338
+ .imageWidth=${'40px'}
339
+ .isSelfReaction=${user.userId === this.userMetaData?.userId}
340
+ .fontSize=${this.fontSize}
341
+ .reactionType=${this.selectedEmojiId}
342
+ ></reactions-info-card>
343
+ `,
344
+ )
345
+ : ke`<div style="font-size: 14px ; padding: 10px" >Tap on any tab to see list</div>`}
346
+ </div>
347
+ ${this.showConfirmationPopup
348
+ ? ke`
349
+ <delete-popup
350
+ .bgColor=${'var(--bg-primary-color)'}
351
+ .height=${'200px'}
352
+ .width=${'400px'}
353
+ primaryButtonBgColor=${' var(--text-danger-color)'}
354
+ primaryButtonTextColor=${'var(--text-incoming-message)'}
355
+ primaryButtonText="Delete"
356
+ secondaryButtonText="Cancel"
357
+ secondaryButtonBgColor=${' var(--bg-outgoing-message)'}
358
+ secondaryButtonTextColor=${'var(--text-primary-color)'}
359
+ title="Delete Reaction"
360
+ message="Are you sure you want to remove as a reaction?"
361
+ .handleConfirmRemove=${() => this.handleConfirmRemove()}
362
+ .closeConfirmationPopup=${() => this.closeConfirmationPopup()}
363
+ ></delete-popup>
364
+ `
365
+ : ''}
366
+ </div>
367
+ `;
368
+ }
369
+ }
370
+
371
+ customElements.define('reactions-container', ReactionsContainer);
372
+
373
+ //# sourceMappingURL=ReactionsContainer-bdd74a3c.js.map
@@ -0,0 +1 @@
1
+ {"file":"ReactionsContainer-bdd74a3c.js","mappings":";;;AAEA,MAAM,WAAW,SAASA,CAAU,CAAC;AACrC,EAAE,OAAO,UAAU,GAAG;AACtB,KAAK,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5B,KAAK,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACjC,KAAK,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC3B,KAAK,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC1B,KAAK,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC1B,KAAK,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5B,KAAK,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACzC,KAAK,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC3C,KAAK,iBAAiB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACtC,KAAK,mBAAmB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AACxC,KAAK,sBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;AAC5C,KAAK,wBAAwB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;AAC7C,KAAK,mBAAmB,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;AAC1C,KAAK,sBAAsB,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;AAC7C,GAAG,CAAC;AACJ;AACA,EAAE,OAAO,MAAM,GAAGC,CAAG,CAAC;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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IAAI,CAAC,eAAe,CAAC;AACzD;AACA,gBAAgB,CAAC;AACjB,eAAe;AACf,cAAcA,EAAI,CAAC,8EAA8E,CAAC,CAAC;AACnG;AACA,QAAQ,EAAE,IAAI,CAAC,qBAAqB;AACpC,YAAYA,EAAI,CAAC;AACjB;AACA,yBAAyB,EAAE,yBAAyB,CAAC;AACrD,wBAAwB,EAAE,OAAO,CAAC;AAClC,uBAAuB,EAAE,OAAO,CAAC;AACjC,qCAAqC,EAAE,2BAA2B,CAAC;AACnE,uCAAuC,EAAE,8BAA8B,CAAC;AACxE;AACA;AACA,uCAAuC,EAAE,6BAA6B,CAAC;AACvE,yCAAyC,EAAE,2BAA2B,CAAC;AACvE;AACA;AACA,qCAAqC,EAAE,MAAM,IAAI,CAAC,mBAAmB,EAAE,CAAC;AACxE,wCAAwC,EAAE,MAAM,IAAI,CAAC,sBAAsB,EAAE,CAAC;AAC9E;AACA,YAAY,CAAC;AACb,YAAY,EAAE,CAAC;AACf;AACA,IAAI,CAAC,CAAC;AACN,GAAG;AACH,CAAC;AACD;AACA,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,CAAC","names":["LitElement","css","html"],"sources":["src/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js","src/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js","src/stories/Components/ReactionsContainer/ReactionsContainer.js"],"sourcesContent":["import { LitElement, html, css } from 'lit';\n\nclass DeletePopup extends LitElement {\n static properties = {\n bgColor: {type: String},\n borderRadius: {type: String},\n height: {type: String},\n width: {type: String},\n title: {type: String},\n message: {type: String},\n primaryButtonBgColor: {type: String},\n primaryButtonTextColor: {type: String},\n primaryButtonText: {type: String},\n secondaryButtonText: {type: String},\n secondaryButtonBgColor : {type: String},\n secondaryButtonTextColor: {type: String},\n handleConfirmRemove: {type: Function},\n closeConfirmationPopup: {type: Function},\n };\n\n static styles = css`\n .confirmation-popup {\n position: fixed;\n border-radius: 8px;\n padding: 12px;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n\n .confirmation-popup svg {\n align-self: center;\n }\n\n .confirmation-popup-title {\n width: 75%;\n display: block;\n font-size: 22px;\n color: var(--text-primary-color);\n text-align: center;\n }\n .confirmation-popup-message {\n width: 75%;\n display: block;\n font-size: 16px;\n color: #a5a4a7;\n text-align: center;\n }\n .confirmation-buttons {\n display: flex;\n gap: 8px;\n margin-top: 30px;\n width: 100%;\n }\n\n .confirm-btn {\n padding: 6px 26px;\n border-radius: 4px;\n cursor: pointer;\n border: none;\n width: 50%;\n font-size: 18px;\n height: 50px;\n }\n\n\n .background-overlay {\n background: var(--popup-overlay);\n width: 100vw;\n height: 100vh;\n position: fixed;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n z-index: 100;\n }\n @media (max-width: 768px) {\n .confirmation-popup {\n width: 90%;\n }\n }\n `;\n\n render() {\n return html`\n <div class=\"background-overlay\">\n <div class=\"confirmation-popup\" style=\"background-color: ${this.bgColor}; height: ${this.height}; width: ${this.width}\">\n <svg width=\"40px\" height=\"40px\" viewBox=\"-6.96 -6.96 37.92 37.92\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" stroke=\"\" transform=\"matrix(-1, 0, 0, 1, 0, 0)rotate(180)\"><g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\" transform=\"translate(0,0), scale(1)\"><rect x=\"-6.96\" y=\"-6.96\" width=\"37.92\" height=\"37.92\" rx=\"18.96\" fill=\"#ffc2ca\" strokewidth=\"0\"></rect></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke=\"#CCCCCC\" stroke-width=\"0.24000000000000005\"></g><g id=\"SVGRepo_iconCarrier\"> <circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"#d15e6d\" stroke-width=\"1.7280000000000002\"></circle> <path d=\"M12 17V11\" stroke=\"#d15e6d\" stroke-width=\"1.7280000000000002\" stroke-linecap=\"round\"></path> <circle cx=\"1\" cy=\"1\" r=\"1\" transform=\"matrix(1 0 0 -1 11 9)\" fill=\"#d15e6d\"></circle> </g></svg>\n <span class=\"confirmation-popup-title\">${this.title}</span> \n <span class=\"confirmation-popup-message\">${this.message}</span>\n \n <div class=\"confirmation-buttons\">\n <button class=\"confirm-btn yes-btn\" @click=\"${this.handleConfirmRemove}\" style=\"background-color: ${this.primaryButtonBgColor}; color: ${this.primaryButtonTextColor}\">\n ${this.primaryButtonText}\n </button>\n <button class=\"confirm-btn no-btn\" @click=\"${this.closeConfirmationPopup}\" style=\"background-color: ${this.secondaryButtonBgColor}; color: ${this.secondaryButtonTextColor}\">\n ${this.secondaryButtonText}\n </button>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ncustomElements.define('delete-popup', DeletePopup);\n","import { css, html, LitElement } from 'lit';\nimport { WEB_CONTENT } from '../../../../constants/content';\nimport { Image } from '../../Image/Image';\nclass ReactionsInfoCard extends LitElement {\n static properties = {\n reactionType: { type: String },\n userName: { type: String },\n userProfileImage: { type: String },\n isSelfReaction: { type: String },\n\n bgColor: { type: String },\n color: { type: String },\n borderRadius: { type: String },\n border: { type: String },\n fontSize: { type: String },\n height: { type: String },\n width: { type: String },\n\n imageRadius: { type: String },\n imageHeight: { type: String },\n imageWidth: { type: String },\n };\n\n static styles = css`\n .reaction-info-card-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px;\n border-radius: 4px;\n gap: 10px;\n }\n\n .reaction-info-username-container {\n display: flex;\n flex-direction: column;\n flex: 1;\n }\n `;\n\n handleRemoveClick() {\n this.dispatchEvent(new CustomEvent('remove-click', {\n detail: {\n reactionType: this.reactionType,\n },\n bubbles: true,\n composed: true\n }));\n }\n render() {\n const emojis = [\n { id: 'star', src: '⭐' },\n { id: 'crying_with_laughter', src: '😂' },\n { id: 'yes', src: '👍' },\n { id: 'no', src: '❌' },\n { id: 'party', src: '🥳' },\n { id: 'high_five', src: '✋' },\n { id: 'rock', src: '🪨' },\n { id: 'facepal', src: '🤦' },\n { id: 'sarcastic', src: '🙄' },\n { id: 'talking_too_much', src: '🤫' },\n { id: 'crying', src: '😭' },\n { id: 'heart', src: '❤️' },\n { id: 'surprised', src: '😮' },\n { id: 'bowing', src: '🙇' },\n ];\n const matchingEmoji = emojis.find(emoji => emoji.id === this.reactionType)?.src || '';\n\n const emojiSize = `calc(${this.fontSize} + 4px)`;\n const seondarySize = `calc(${this.fontSize} - 6px)`;\n return html`\n <div\n class=\"reaction-info-card-container\"\n style=\"background-color: ${this.bgColor}; color: ${this.color}; border: ${this.border};\n border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};\"\n >\n <div class=\"reaction-info-user-image\">\n ${Image({\n src: this.userProfileImage,\n height: this.imageHeight,\n width: this.imageWidth,\n borderRadius: this.imageRadius,\n objectFit: 'cover',\n })}\n </div>\n <div class=\"reaction-info-username-container\">\n <div class=\"reaction-info-username\" style=\"font-size: ${this.fontSize}\">${this.userName}</div>\n ${this.isSelfReaction\n ? html`<div @click=${this.handleRemoveClick} style=\"cursor: pointer; font-size: ${seondarySize}\">${WEB_CONTENT.REACTIONS.REMOVE_REACTION_ON_TAP}</div>`\n : null}\n </div>\n <div class=\"reaction-info-emoji\" style=\"font-size: ${emojiSize}\">${matchingEmoji}</div>\n </div>\n `;\n }\n}\n\ncustomElements.define('reactions-info-card', ReactionsInfoCard);\n","import { css, html, LitElement } from 'lit';\nimport { Text } from '../Text/Text';\nimport { Button } from '../Buttons/Buttons';\nimport { Image } from '../Image/Image';\nimport './ReactionsInfoCard/ReactionsInfoCard.js';\nimport '../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';\n\nclass ReactionsContainer extends LitElement {\n static properties = {\n bgColor: { type: String },\n border: { type: String },\n borderRadius: { type: String },\n color: { type: String },\n height: { type: String },\n width: { type: String },\n reactions: { type: Array },\n fontSize: { type: String },\n reactionsUser: { type: Array },\n showConfirmationPopup: { type: Boolean },\n handleConfirmDelete: { type: Function },\n handleClosePopup: { type: Function },\n userMetaData: { type: Object },\n selectedEmojiToRemove: { type: Object },\n selectedEmojiId: { type: String },\n messageId: { type: String },\n };\n\n constructor() {\n super();\n this.showConfirmationPopup = false;\n this.addEventListener('remove-click', this.handleRemoveReactionClick);\n this.selectedEmojiToRemove = null;\n this.selectedEmojiId = null; // Initialize the selected emoji ID\n }\n\n handleRemoveReactionClick(e) {\n this.showConfirmationPopup = true;\n this.selectedEmojiToRemove = e.detail;\n }\n static styles = css`\n .reactions-container {\n display: flex;\n flex-direction: column;\n padding: 10px;\n box-shadow:\n 2px 2px 2px var(--bg-senary-color),\n -2px -2px 2px var(--bg-senary-color);\n }\n .reactions-list-container {\n margin-top: 10px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n .reactions-tab-container {\n display: flex;\n gap: 8px;\n padding: 0;\n }\n .emoji-tab {\n cursor: pointer;\n padding: 4px 8px;\n background: transparent;\n border-bottom: 1px solid var(--text-primary-color);\n }\n .emoji-tab:hover {\n background: var(--bg-tertiary-color);\n }\n .emoji-tab.selected {\n background: var(--bg-tertiary-color);\n }\n `;\n\n handleEmojiClick(emojiId) {\n this.selectedEmojiId = emojiId;\n const event = new CustomEvent('emojiTabClick', {\n detail: emojiId,\n bubbles: true,\n composed: true,\n });\n this.dispatchEvent(event);\n\n this.requestUpdate();\n }\n\n handleConfirmRemove() {\n if (this.selectedEmojiToRemove) {\n this.dispatchEvent(\n new CustomEvent('reaction-removed', {\n detail: {\n messageId: this.messageId,\n emojiId: this.selectedEmojiToRemove.reactionType,\n },\n bubbles: true,\n composed: true,\n }),\n );\n }\n this.closeConfirmationPopup();\n }\n\n closeConfirmationPopup() {\n this.showConfirmationPopup = false;\n this.selectedEmojiToRemove = null;\n }\n render() {\n const updatedData = this.reactions?.map(item => ({\n ...item,\n messageId: item.messageId[0],\n }));\n\n return html`\n <div\n class=\"reactions-container\"\n style=\"background-color: ${this.bgColor}; color: ${this.color}; \n font-size: ${this.fontSize}; border: ${this.border}; border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};\n \"\n >\n <div class=\"reactions-tab-container\">\n ${updatedData?.map(\n data => html` <div class=\"emoji-tab ${this.selectedEmojiId === data.emojiId ? 'selected' : ''}\" @click=${() => this.handleEmojiClick(data.emojiId)}>${data.src}</div> `,\n )}\n </div>\n <div class=\"reactions-list-container\">\n ${this.selectedEmojiId && this.reactionsUser?.length > 0\n ? this.reactionsUser.map(\n user => html`\n <reactions-info-card\n .userName=${user.userName}\n .userProfileImage=${user.userProfileImageUrl}\n .imageRadius=${'50%'}\n .imageHeight=${'40px'}\n .imageWidth=${'40px'}\n .isSelfReaction=${user.userId === this.userMetaData?.userId}\n .fontSize=${this.fontSize}\n .reactionType=${this.selectedEmojiId}\n ></reactions-info-card>\n `,\n )\n : html`<div style=\"font-size: 14px ; padding: 10px\" >Tap on any tab to see list</div>`}\n </div>\n ${this.showConfirmationPopup\n ? html`\n <delete-popup\n .bgColor=${'var(--bg-primary-color)'}\n .height=${'200px'}\n .width=${'400px'}\n primaryButtonBgColor=${' var(--text-danger-color)'}\n primaryButtonTextColor=${'var(--text-incoming-message)'}\n primaryButtonText=\"Delete\"\n secondaryButtonText=\"Cancel\"\n secondaryButtonBgColor=${' var(--bg-outgoing-message)'}\n secondaryButtonTextColor=${'var(--text-primary-color)'}\n title=\"Delete Reaction\"\n message=\"Are you sure you want to remove as a reaction?\"\n .handleConfirmRemove=${() => this.handleConfirmRemove()}\n .closeConfirmationPopup=${() => this.closeConfirmationPopup()}\n ></delete-popup>\n `\n : ''}\n </div>\n `;\n }\n}\n\ncustomElements.define('reactions-container', ReactionsContainer);\n"],"version":3}
@@ -0,0 +1,58 @@
1
+ import { k as ke, s as se } from './Image-bb9efda3.js';
2
+
3
+ const Text = ({
4
+ content = '',
5
+ color = 'var(--text-primary-color)',
6
+ fontSize = '16px',
7
+ textAlign = 'center',
8
+ fontWeight = 'normal',
9
+ fontStyle = 'normal',
10
+ backgroundColor = 'transparent',
11
+ borderColor = 'transparent',
12
+ borderWidth = '1px',
13
+ borderStyle = 'solid',
14
+ borderRadius = '4px',
15
+ fontFamily = '',
16
+ width = "",
17
+ height = "auto",
18
+ lineHeight = "auto",
19
+ overflow= "hidden",
20
+ maxWidth="",
21
+ textOverflow="ellipsis",
22
+ whiteSpace="",
23
+ wordBreak='break-word'
24
+
25
+ }) => {
26
+ return ke`
27
+ <div
28
+ class="storybook-text"
29
+ style=${se({
30
+ color,
31
+ fontSize,
32
+ textAlign,
33
+ fontWeight,
34
+ fontStyle,
35
+ backgroundColor,
36
+ borderColor,
37
+ borderWidth,
38
+ borderStyle,
39
+ borderRadius,
40
+ fontFamily,
41
+ width,
42
+ height,
43
+ lineHeight,
44
+ overflow,
45
+ maxWidth,
46
+ textOverflow,
47
+ whiteSpace,
48
+ wordBreak
49
+ })}
50
+ >
51
+ ${content}
52
+ </div>
53
+ `;
54
+ };
55
+
56
+ export { Text as T };
57
+
58
+ //# sourceMappingURL=Text-3b0b3898.js.map
@@ -0,0 +1 @@
1
+ {"file":"Text-3b0b3898.js","mappings":";;AAIY,MAAC,IAAI,GAAG,CAAC;AACrB,EAAE,OAAO,GAAG,EAAE;AACd,EAAE,KAAK,GAAG,2BAA2B;AACrC,EAAE,QAAQ,GAAG,MAAM;AACnB,EAAE,SAAS,GAAG,QAAQ;AACtB,EAAE,UAAU,GAAG,QAAQ;AACvB,EAAE,SAAS,GAAG,QAAQ;AACtB,EAAE,eAAe,GAAG,aAAa;AACjC,EAAE,WAAW,GAAG,aAAa;AAC7B,EAAE,WAAW,GAAG,KAAK;AACrB,EAAE,WAAW,GAAG,OAAO;AACvB,EAAE,YAAY,GAAG,KAAK;AACtB,EAAE,UAAU,GAAG,EAAE;AACjB,EAAE,KAAK,GAAG,EAAE;AACZ,EAAE,MAAM,GAAG,MAAM;AACjB,EAAE,UAAU,GAAG,MAAM;AACrB,EAAE,QAAQ,EAAE,QAAQ;AACpB,EAAE,QAAQ,CAAC,EAAE;AACb,EAAE,YAAY,CAAC,UAAU;AACzB,EAAE,UAAU,CAAC,EAAE;AACf,EAAE,SAAS,CAAC,YAAY;AACxB;AACA,CAAC,KAAK;AACN,EAAE,OAAOA,EAAI,CAAC;AACd;AACA;AACA,YAAY,EAAEC,EAAQ,CAAC;AACvB,QAAQ,KAAK;AACb,QAAQ,QAAQ;AAChB,QAAQ,SAAS;AACjB,QAAQ,UAAU;AAClB,QAAQ,SAAS;AACjB,QAAQ,eAAe;AACvB,QAAQ,WAAW;AACnB,QAAQ,WAAW;AACnB,QAAQ,WAAW;AACnB,QAAQ,YAAY;AACpB,QAAQ,UAAU;AAClB,QAAQ,KAAK;AACb,QAAQ,MAAM;AACd,QAAQ,UAAU;AAClB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ;AAChB,QAAQ,YAAY;AACpB,QAAQ,UAAU;AAClB,QAAQ,SAAS;AACjB,OAAO,CAAC,CAAC;AACT;AACA,MAAM,EAAE,OAAO,CAAC;AAChB;AACA,EAAE,CAAC,CAAC;AACJ;;;;","names":["html","styleMap"],"sources":["src/stories/Components/Text/Text.js"],"sourcesContent":["import { html } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport './Text.css'; \n\nexport const Text = ({ \n content = '', \n color = 'var(--text-primary-color)', \n fontSize = '16px', \n textAlign = 'center', \n fontWeight = 'normal', \n fontStyle = 'normal', \n backgroundColor = 'transparent', \n borderColor = 'transparent', \n borderWidth = '1px', \n borderStyle = 'solid', \n borderRadius = '4px',\n fontFamily = '',\n width = \"\",\n height = \"auto\",\n lineHeight = \"auto\",\n overflow= \"hidden\",\n maxWidth=\"\",\n textOverflow=\"ellipsis\",\n whiteSpace=\"\",\n wordBreak='break-word'\n \n}) => {\n return html`\n <div\n class=\"storybook-text\"\n style=${styleMap({ \n color, \n fontSize, \n textAlign, \n fontWeight, \n fontStyle, \n backgroundColor,\n borderColor, \n borderWidth, \n borderStyle,\n borderRadius,\n fontFamily,\n width,\n height,\n lineHeight,\n overflow,\n maxWidth,\n textOverflow,\n whiteSpace,\n wordBreak\n })}\n >\n ${content}\n </div>\n `;\n};\n\n"],"version":3}