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,91 @@
1
+ import { html } from 'lit';
2
+ import { Head } from './Head';
3
+
4
+ export default {
5
+ title: 'Molecules/Head',
6
+ component: Head,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ borderRadius: {control : 'text'},
10
+ borderColor: {control: 'color'},
11
+ borderWidth: {control: 'text'},
12
+ borderStyle: {control: 'select' ,
13
+ options: ['dashed', 'dotted', 'solid', 'double']
14
+ },
15
+ boxShadow: {control: 'text'},
16
+ padding: {control: 'text'},
17
+ image: {
18
+ control: {
19
+ type: 'object',
20
+ properties: {
21
+ src: { control: 'text' },
22
+ alt: { control: 'text' },
23
+ width: { control: 'text' },
24
+ height: { control: 'text' },
25
+ borderRadius: { control: 'text' },
26
+ }
27
+ }
28
+ },
29
+ text: {
30
+ control: {
31
+ type: 'object',
32
+ properties: {
33
+ content: { control: 'text' },
34
+ color: { control: 'color' },
35
+ fontSize: { control: 'text' },
36
+ fontWeight: { control: 'select', options: ['normal', 'bold', 'bolder', 'lighter'] },
37
+ fontStyle: { control: 'select', options: ['normal', 'italic', 'oblique'] },
38
+ textAlign: { control: 'select', options: ['left', 'center', 'right'] },
39
+ }
40
+ }
41
+ },
42
+ lastSeenText: { control: 'text' },
43
+ lastSeenTextColor: { control: 'color' },
44
+ lastSeenTextFontSize: { control: 'text' },
45
+ textHref: { control: 'text' },
46
+ onFirstSvgClick: { action: 'firstSvgClicked' },
47
+ onSecondSvgClick: { action: 'secondSvgClicked' },
48
+ },
49
+ args: {
50
+ image: {
51
+ src: '/assets/images/iso-img.svg',
52
+ alt: 'Nature image',
53
+ width: '45px',
54
+ height: '45px',
55
+ borderRadius: '50%',
56
+ },
57
+ text: {
58
+ content: 'Kristin Watson',
59
+ color: 'black',
60
+ fontSize: '18px',
61
+ textAlign: 'left',
62
+ fontWeight: 'bolder',
63
+ fontStyle: 'normal',
64
+ },
65
+ borderWidth: '0px 0px 2px 0px',
66
+ borderColor: '#E6E8F3',
67
+ borderStyle: 'solid',
68
+ padding: '15px 10px 15px 10px'
69
+ },
70
+ };
71
+
72
+ export const Default = (args) => html`
73
+ <my-head
74
+ .image=${args.image}
75
+ .text=${args.text}
76
+ .lastSeenText=${args.lastSeenText}
77
+ .lastSeenTextColor=${args.lastSeenTextColor}
78
+ .lastSeenTextFontSize=${args.lastSeenTextFontSize}
79
+ .textHref=${args.textHref}
80
+ .onFirstSvgClick=${args.onFirstSvgClick}
81
+ .onSecondSvgClick=${args.onSecondSvgClick}
82
+ .borderRadius=${args.borderRadius}
83
+ .borderColor=${args.borderColor}
84
+ .borderWidth=${args.borderWidth}
85
+ .borderStyle=${args.borderStyle}
86
+ .padding=${args.padding}
87
+ .boxShadow=${args.boxShadow}
88
+ ></my-head>
89
+ `;
90
+
91
+
@@ -0,0 +1,115 @@
1
+ import { html, LitElement, css } from 'lit';
2
+
3
+ export class IconElement extends LitElement {
4
+ static properties = {
5
+ name: { type: String },
6
+ size: { type: String },
7
+ color: { type: String },
8
+ };
9
+
10
+ constructor() {
11
+ super();
12
+ this.size = 30;
13
+ this.color = '#1e3a8a';
14
+ this.twitterSize = this.size - 4;
15
+ }
16
+
17
+ static styles = css`
18
+ .icon-container {
19
+ align-items: center;
20
+ justify-content: center;
21
+ border-radius: 50%;
22
+ }
23
+
24
+ .facebook-icon {
25
+ border: 2px solid var(--bg-facebook-color);
26
+ }
27
+
28
+ .whatsapp-icon {
29
+ border: 2px solid var(--bg-whatsapp-color);
30
+ }
31
+
32
+ .email-icon {
33
+ border: 2px solid var(--bg-email-color);
34
+ }
35
+ `;
36
+
37
+ render() {
38
+ const iconClass = `icon-container ${this.name}-icon`;
39
+
40
+ return html` <div class="${iconClass}" style="width: ${this.size}; height: ${this.size}; ">${this._getIcon()}</div> `;
41
+ }
42
+
43
+ _getIcon() {
44
+ switch (this.name) {
45
+ case 'facebook':
46
+ return this._getFacebookIcon();
47
+
48
+ case 'whatsapp':
49
+ return this._getWhatsappIcon();
50
+ case 'email':
51
+ return this._getEmailIcon();
52
+ default:
53
+ return html`<div>Icon not found</div>`;
54
+ }
55
+ }
56
+
57
+ _getFacebookIcon() {
58
+ return html`
59
+ <svg
60
+ height=${this.size}
61
+ width=${this.size}
62
+ viewBox="-14.4 -14.4 76.80 76.80"
63
+ version="1.1"
64
+ xmlns="http://www.w3.org/2000/svg"
65
+ xmlns:xlink="http://www.w3.org/1999/xlink"
66
+ fill="#000000"
67
+ >
68
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
69
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
70
+ <g id="SVGRepo_iconCarrier">
71
+ <title>Facebook-color</title>
72
+ <desc>Created with Sketch.</desc>
73
+ <defs></defs>
74
+ <g id="Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
75
+ <g id="Color-" transform="translate(-200.000000, -160.000000)" fill="#4460A0">
76
+ <path
77
+ d="M225.638355,208 L202.649232,208 C201.185673,208 200,206.813592 200,205.350603 L200,162.649211 C200,161.18585 201.185859,160 202.649232,160 L245.350955,160 C246.813955,160 248,161.18585 248,162.649211 L248,205.350603 C248,206.813778 246.813769,208 245.350955,208 L233.119305,208 L233.119305,189.411755 L239.358521,189.411755 L240.292755,182.167586 L233.119305,182.167586 L233.119305,177.542641 C233.119305,175.445287 233.701712,174.01601 236.70929,174.01601 L240.545311,174.014333 L240.545311,167.535091 C239.881886,167.446808 237.604784,167.24957 234.955552,167.24957 C229.424834,167.24957 225.638355,170.625526 225.638355,176.825209 L225.638355,182.167586 L219.383122,182.167586 L219.383122,189.411755 L225.638355,189.411755 L225.638355,208 L225.638355,208 Z"
78
+ id="Facebook"
79
+ ></path>
80
+ </g>
81
+ </g>
82
+ </g>
83
+ </svg>
84
+ `;
85
+ }
86
+
87
+ _getWhatsappIcon() {
88
+ return html`
89
+ <svg width=${this.size} height=${this.size} viewBox="-9.28 -9.28 50.56 50.56" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16 31C23.732 31 30 24.732 30 17C30 9.26801 23.732 3 16 3C8.26801 3 2 9.26801 2 17C2 19.5109 2.661 21.8674 3.81847 23.905L2 31L9.31486 29.3038C11.3014 30.3854 13.5789 31 16 31ZM16 28.8462C22.5425 28.8462 27.8462 23.5425 27.8462 17C27.8462 10.4576 22.5425 5.15385 16 5.15385C9.45755 5.15385 4.15385 10.4576 4.15385 17C4.15385 19.5261 4.9445 21.8675 6.29184 23.7902L5.23077 27.7692L9.27993 26.7569C11.1894 28.0746 13.5046 28.8462 16 28.8462Z" fill="#BFC8D0"></path> <path d="M28 16C28 22.6274 22.6274 28 16 28C13.4722 28 11.1269 27.2184 9.19266 25.8837L5.09091 26.9091L6.16576 22.8784C4.80092 20.9307 4 18.5589 4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16Z" fill="url(#paint0_linear_87_7264)"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 18.5109 2.661 20.8674 3.81847 22.905L2 30L9.31486 28.3038C11.3014 29.3854 13.5789 30 16 30ZM16 27.8462C22.5425 27.8462 27.8462 22.5425 27.8462 16C27.8462 9.45755 22.5425 4.15385 16 4.15385C9.45755 4.15385 4.15385 9.45755 4.15385 16C4.15385 18.5261 4.9445 20.8675 6.29184 22.7902L5.23077 26.7692L9.27993 25.7569C11.1894 27.0746 13.5046 27.8462 16 27.8462Z" fill="white"></path> <path d="M12.5 9.49989C12.1672 8.83131 11.6565 8.8905 11.1407 8.8905C10.2188 8.8905 8.78125 9.99478 8.78125 12.05C8.78125 13.7343 9.52345 15.578 12.0244 18.3361C14.438 20.9979 17.6094 22.3748 20.2422 22.3279C22.875 22.2811 23.4167 20.0154 23.4167 19.2503C23.4167 18.9112 23.2062 18.742 23.0613 18.696C22.1641 18.2654 20.5093 17.4631 20.1328 17.3124C19.7563 17.1617 19.5597 17.3656 19.4375 17.4765C19.0961 17.8018 18.4193 18.7608 18.1875 18.9765C17.9558 19.1922 17.6103 19.083 17.4665 19.0015C16.9374 18.7892 15.5029 18.1511 14.3595 17.0426C12.9453 15.6718 12.8623 15.2001 12.5959 14.7803C12.3828 14.4444 12.5392 14.2384 12.6172 14.1483C12.9219 13.7968 13.3426 13.254 13.5313 12.9843C13.7199 12.7145 13.5702 12.305 13.4803 12.05C13.0938 10.953 12.7663 10.0347 12.5 9.49989Z" fill="white"></path> <defs> <linearGradient id="paint0_linear_87_7264" x1="26.5" y1="7" x2="4" y2="28" gradientUnits="userSpaceOnUse"> <stop stop-color="#5BD066"></stop> <stop offset="1" stop-color="#27B43E"></stop> </linearGradient> </defs> </g></svg>
90
+ `;
91
+ }
92
+
93
+ _getEmailIcon() {
94
+ return html`
95
+ <svg width=${this.size} height=${this.size} viewBox="-2.4 -2.4 28.80 28.80" fill="none" xmlns="http://www.w3.org/2000/svg">
96
+ <g id="SVGRepo_bgCarrier" stroke-width="0"></g>
97
+ <g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
98
+ <g id="SVGRepo_iconCarrier">
99
+ <path
100
+ fill-rule="evenodd"
101
+ clip-rule="evenodd"
102
+ d="M3.75 5.25L3 6V18L3.75 18.75H20.25L21 18V6L20.25 5.25H3.75ZM4.5 7.6955V17.25H19.5V7.69525L11.9999 14.5136L4.5 7.6955ZM18.3099 6.75H5.68986L11.9999 12.4864L18.3099 6.75Z"
103
+ fill="#080341"
104
+ ></path>
105
+ </g>
106
+ </svg>
107
+ `;
108
+ }
109
+ }
110
+
111
+ customElements.define('app-icon', IconElement);
112
+
113
+ export const Icon = (name, size = 24, color = 'currentColor') => {
114
+ return html`<app-icon name="${name}" size="${size}" color="${color}"></app-icon>`;
115
+ };
@@ -0,0 +1,41 @@
1
+ import { html } from 'lit';
2
+ import { styleMap } from 'lit/directives/style-map.js';
3
+ import './Image.css';
4
+
5
+ export const Image = ({
6
+ src,
7
+ alt = '',
8
+ width = 'auto',
9
+ height = 'auto',
10
+ borderRadius = '0px',
11
+ border = 'none',
12
+ borderColor = 'transparent',
13
+ borderStyle = 'solid',
14
+ objectFit='contain',
15
+ backgroundColor = 'transparent',
16
+ placeholderImage,
17
+ cursor,
18
+ className = '',
19
+ }) => {
20
+ return html`
21
+ <img
22
+ src=${src}
23
+ alt=${alt}
24
+ @error=${(e) => {
25
+ if (placeholderImage) {
26
+ e.target.src = placeholderImage;
27
+ }
28
+ }}
29
+ style=${styleMap({
30
+ width,
31
+ height,
32
+ borderRadius,
33
+ border: `${borderStyle} ${border} ${borderColor}`,
34
+ objectFit,
35
+ cursor,
36
+ backgroundColor
37
+ })}
38
+ class="storybook-image ${className}"
39
+ />
40
+ `;
41
+ };
@@ -0,0 +1,49 @@
1
+ import { Image } from './Image';
2
+ import { fn } from '@storybook/test';
3
+
4
+ export default {
5
+ title: 'Atoms/Image',
6
+ tags: ['autodocs'],
7
+ render: (args) => Image(args),
8
+ argTypes: {
9
+ src: { control: 'text' },
10
+ alt: { control: 'text' },
11
+ width: { control: 'text' },
12
+ height: { control: 'text' },
13
+ borderRadius: { control: 'text' },
14
+ border: { control: 'text' },
15
+ borderColor: { control: 'color' },
16
+ borderStyle: { control: 'select', options: ['solid', 'dotted', 'dashed', 'double', 'groove', 'ridge', 'inset', 'outset'] },
17
+ objectFit: {control: 'select', options: ['contain', 'fill', 'cover', 'none']}
18
+ },
19
+ args: {
20
+ onClick: fn(),
21
+ },
22
+ };
23
+
24
+ export const Default = {
25
+ args: {
26
+ src: '/assets/images/iso-img.svg',
27
+ alt: 'Nature image',
28
+ width: '45px',
29
+ height: '45px',
30
+ borderRadius: '8px',
31
+ border: '2px',
32
+ borderColor: 'black',
33
+ borderStyle: 'solid',
34
+ objectFit: 'contain'
35
+ },
36
+ };
37
+
38
+ export const Rounded = {
39
+ args:{
40
+ src:'/assets/images/iso-img.svg',
41
+ alt:'Nature image',
42
+ width:'45px',
43
+ height:'45px',
44
+ borderRadius:'50%',
45
+ border:"0px",
46
+ borderColor:'black',
47
+ borderStyle:'solid',
48
+ },
49
+ };
@@ -0,0 +1,178 @@
1
+ import { html } from 'lit-html';
2
+
3
+ export default {
4
+ title: 'Components/Image/Img',
5
+ argTypes: {
6
+ src: { control: 'text' },
7
+ alt: { control: 'text' },
8
+ width: { control: 'text' },
9
+ height: { control: 'text' },
10
+ borderRadius: { control: 'text' },
11
+ border: { control: 'text' },
12
+ borderColor: { control: 'color' },
13
+ borderStyle: {
14
+ control: { type: 'select' },
15
+ options: ['solid', 'dashed', 'dotted', 'double', 'groove', 'ridge', 'inset', 'outset', 'none']
16
+ },
17
+ objectFit: {
18
+ control: { type: 'select' },
19
+ options: ['contain', 'cover', 'fill', 'none', 'scale-down']
20
+ },
21
+ placeholderImage: { control: 'text' },
22
+ cursor: {
23
+ control: { type: 'select' },
24
+ options: ['auto', 'pointer', 'default', 'not-allowed', 'zoom-in', 'grab']
25
+ },
26
+ className: { control: 'text' },
27
+ },
28
+ };
29
+
30
+ const Template = (args) => {
31
+ const { src, alt, width, height, borderRadius, border, borderColor, borderStyle, objectFit, placeholderImage, cursor, className } = args;
32
+ return html`
33
+ <div style="padding: 20px;">
34
+ <img-tag
35
+ src=${src}
36
+ alt=${alt}
37
+ width=${width}
38
+ height=${height}
39
+ borderRadius=${borderRadius}
40
+ border=${border}
41
+ borderColor=${borderColor}
42
+ borderStyle=${borderStyle}
43
+ objectFit=${objectFit}
44
+ placeholderImage=${placeholderImage}
45
+ cursor=${cursor}
46
+ className=${className}
47
+ ></img-tag>
48
+ </div>
49
+ `;
50
+ };
51
+
52
+ export const Default = Template.bind({});
53
+ Default.args = {
54
+ src: 'https://placehold.co/200x200',
55
+ alt: 'Default image',
56
+ width: '200px',
57
+ height: '200px',
58
+ borderRadius: '0px',
59
+ border: '0px',
60
+ borderColor: 'transparent',
61
+ borderStyle: 'solid',
62
+ objectFit: 'contain',
63
+ placeholderImage: '',
64
+ cursor: 'auto',
65
+ className: '',
66
+ };
67
+
68
+ export const Rounded = Template.bind({});
69
+ Rounded.args = {
70
+ src: 'https://placehold.co/200x200',
71
+ alt: 'Rounded image',
72
+ width: '200px',
73
+ height: '200px',
74
+ borderRadius: '10px',
75
+ border: '0px',
76
+ borderColor: 'transparent',
77
+ borderStyle: 'solid',
78
+ objectFit: 'contain',
79
+ placeholderImage: '',
80
+ cursor: 'auto',
81
+ className: '',
82
+ };
83
+
84
+ export const Circle = Template.bind({});
85
+ Circle.args = {
86
+ src: 'https://placehold.co/200x200',
87
+ alt: 'Circle image',
88
+ width: '200px',
89
+ height: '200px',
90
+ borderRadius: '50%',
91
+ border: '0px',
92
+ borderColor: 'transparent',
93
+ borderStyle: 'solid',
94
+ objectFit: 'cover',
95
+ placeholderImage: '',
96
+ cursor: 'auto',
97
+ className: '',
98
+ };
99
+
100
+ export const WithBorder = Template.bind({});
101
+ WithBorder.args = {
102
+ src: 'https://placehold.co/200x200',
103
+ alt: 'Image with border',
104
+ width: '200px',
105
+ height: '200px',
106
+ borderRadius: '0px',
107
+ border: '2px',
108
+ borderColor: '#3498db',
109
+ borderStyle: 'solid',
110
+ objectFit: 'contain',
111
+ placeholderImage: '',
112
+ cursor: 'auto',
113
+ className: '',
114
+ };
115
+
116
+ export const CoverFit = Template.bind({});
117
+ CoverFit.args = {
118
+ src: 'https://placehold.co/400x200',
119
+ alt: 'Cover fit image',
120
+ width: '200px',
121
+ height: '200px',
122
+ borderRadius: '0px',
123
+ border: '0px',
124
+ borderColor: 'transparent',
125
+ borderStyle: 'solid',
126
+ objectFit: 'cover',
127
+ placeholderImage: '',
128
+ cursor: 'auto',
129
+ className: '',
130
+ };
131
+
132
+ export const WithPlaceholder = Template.bind({});
133
+ WithPlaceholder.args = {
134
+ src: 'https://non-existent-image-url.jpg',
135
+ alt: 'Image with placeholder',
136
+ width: '200px',
137
+ height: '200px',
138
+ borderRadius: '0px',
139
+ border: '0px',
140
+ borderColor: 'transparent',
141
+ borderStyle: 'solid',
142
+ objectFit: 'contain',
143
+ placeholderImage: 'https://placehold.co/200x200/e74c3c/ffffff?text=Placeholder',
144
+ cursor: 'auto',
145
+ className: '',
146
+ };
147
+
148
+ export const Interactive = Template.bind({});
149
+ Interactive.args = {
150
+ src: 'https://placehold.co/200x200',
151
+ alt: 'Interactive image',
152
+ width: '200px',
153
+ height: '200px',
154
+ borderRadius: '10px',
155
+ border: '0px',
156
+ borderColor: 'transparent',
157
+ borderStyle: 'solid',
158
+ objectFit: 'contain',
159
+ placeholderImage: '',
160
+ cursor: 'pointer',
161
+ className: 'interactive-image',
162
+ };
163
+
164
+ export const LargeImage = Template.bind({});
165
+ LargeImage.args = {
166
+ src: 'https://placehold.co/800x600',
167
+ alt: 'Large image scaled down',
168
+ width: '400px',
169
+ height: '300px',
170
+ borderRadius: '0px',
171
+ border: '0px',
172
+ borderColor: 'transparent',
173
+ borderStyle: 'solid',
174
+ objectFit: 'contain',
175
+ placeholderImage: '',
176
+ cursor: 'auto',
177
+ className: '',
178
+ };
@@ -0,0 +1,206 @@
1
+ import { html, css, LitElement } from 'lit';
2
+ import { styleMap } from 'lit/directives/style-map.js';
3
+
4
+ class Input extends LitElement {
5
+ static properties = {
6
+ value: { type: String },
7
+ placeholder: { type: String },
8
+ width: { type: String },
9
+ height: { type: String },
10
+ borderColor: { type: String },
11
+ borderRadius: { type: String },
12
+ backgroundColor: { type: String },
13
+ fontSize: { type: String },
14
+ padding: { type: String },
15
+ color: { type: String },
16
+ placeholderColor: { type: String },
17
+ lineHeight: { type: String },
18
+ borderWidth: { type: String },
19
+ inputHeight: { type: String, reflect: true },
20
+ minHeight: { type: String , reflect: true},
21
+ maxHeight: { type: String , reflect: true},
22
+ overflow: {type: String},
23
+ isSearchSvg: { type: Boolean },
24
+ disabled: { type: Boolean }
25
+ };
26
+
27
+ static styles = css`
28
+ :host {
29
+ display: block;
30
+ }
31
+
32
+ .input-container {
33
+ position: relative;
34
+ width: 100%;
35
+ }
36
+
37
+ textarea {
38
+ width: var(--input-width, 100%);
39
+ max-height: var(--input-max-height, 100px);
40
+ min-height: var(--input-min-height, 45px);
41
+ height: var(--input-height, 45px);
42
+ border: var(--input-border-width, 1px) solid var(--input-border-color, gray);
43
+ border-radius: var(--input-border-radius, 4px);
44
+ background-color: var(--input-background-color, white);
45
+ font-size: var(--input-font-size, 16px);
46
+ padding: var(--input-padding, 12px);
47
+ color: var(--input-text-color);
48
+ box-sizing: border-box;
49
+ resize: none;
50
+ overflow-x: hidden;
51
+ overflow-y: hidden;
52
+ outline: none;
53
+ border-width: none;
54
+ font-family: var(--font-sans, inherit);
55
+ transition: height 0.2s ease;
56
+ line-height: var(--input-line-height, 1.45);
57
+ vertical-align: middle;
58
+ scrollbar-width: none;
59
+ }
60
+
61
+ textarea.is-scrollable {
62
+ overflow-y: auto;
63
+ scrollbar-width: thin;
64
+ }
65
+
66
+ :host([data-search]) textarea {
67
+ padding-right: 40px;
68
+ }
69
+
70
+ textarea::-webkit-scrollbar {
71
+ width: 0;
72
+ height: 0;
73
+ }
74
+
75
+ textarea.is-scrollable::-webkit-scrollbar {
76
+ width: 4px;
77
+ }
78
+
79
+ textarea.is-scrollable::-webkit-scrollbar-track {
80
+ background: transparent;
81
+ }
82
+
83
+ textarea.is-scrollable::-webkit-scrollbar-thumb {
84
+ background-color: var(--bg-grey-color, #e2e2e7);
85
+ border-radius: 10px;
86
+ }
87
+
88
+ textarea.is-scrollable::-webkit-scrollbar-thumb:hover {
89
+ background-color: var(--text-secondary-color, #6b6a75);
90
+ }
91
+ textarea::placeholder {
92
+ color: var(--input-placeholder-color, #aaa);
93
+ font-family: inherit;
94
+ }
95
+
96
+ .search-icon {
97
+ position: absolute;
98
+ right: 12px;
99
+ top: 50%;
100
+ transform: translateY(-50%);
101
+ pointer-events: none;
102
+ }
103
+ `;
104
+
105
+ constructor() {
106
+ super();
107
+ this.value = '';
108
+ this.placeholder = 'Enter your text here...';
109
+ this.width = '100%';
110
+ this.minHeight = '45px';
111
+ this.maxHeight = '105px';
112
+ this.inputHeight = '45px';
113
+ this.borderColor = 'gray';
114
+ this.borderRadius = '0px';
115
+ this.backgroundColor = 'white';
116
+ this.fontSize = '16px';
117
+ this.padding = '12px';
118
+ this.lineHeight = '';
119
+ this.placeholderColor = '#aaa';
120
+ this.borderWidth = '1px';
121
+ this.isSearchSvg = true;
122
+ this.disabled = false;
123
+ }
124
+
125
+ get isFixedHeight() {
126
+ return Boolean(this.minHeight && this.maxHeight && this.minHeight === this.maxHeight);
127
+ }
128
+
129
+ render() {
130
+ if (this.isSearchSvg) {
131
+ this.setAttribute('data-search', '');
132
+ } else {
133
+ this.removeAttribute('data-search');
134
+ }
135
+
136
+ return html`
137
+ <div class="input-container">
138
+ <textarea
139
+ .value=${this.value}
140
+ placeholder=${this.placeholder}
141
+ ?disabled=${this.disabled}
142
+ style=${styleMap({
143
+ '--input-width': this.width,
144
+ '--input-min-height': this.minHeight,
145
+ '--input-max-height': this.maxHeight,
146
+ '--input-height': this.inputHeight,
147
+ '--input-border-color': this.borderColor,
148
+ '--input-border-radius': this.borderRadius,
149
+ '--input-background-color': this.backgroundColor,
150
+ '--input-font-size': this.fontSize,
151
+ '--input-padding': this.padding,
152
+ '--input-line-height': this.lineHeight || undefined,
153
+ '--input-text-color': this.color,
154
+ '--input-placeholder-color': this.placeholderColor,
155
+ '--input-border-width': this.borderWidth,
156
+ })}
157
+ @input=${this.handleInputChange}
158
+ ></textarea>
159
+ </div>
160
+ `;
161
+ }
162
+
163
+
164
+ handleInputChange(event) {
165
+ // Prevent event bubbling
166
+ event.stopPropagation();
167
+
168
+ this.value = event.target.value;
169
+ if (!this.isFixedHeight) {
170
+ this.adjustTextareaHeight(event.target);
171
+ }
172
+ this.dispatchEvent(
173
+ new CustomEvent('input', {
174
+ detail: { value: this.value },
175
+ bubbles: true,
176
+ composed: true,
177
+ }),
178
+ );
179
+ }
180
+
181
+
182
+
183
+ adjustTextareaHeight(textarea) {
184
+ const minH = parseInt(this.minHeight, 10) || 24;
185
+ const maxH = parseInt(this.maxHeight, 10) || 120;
186
+
187
+ textarea.style.height = 'auto';
188
+ const scrollHeight = textarea.scrollHeight;
189
+ const next = Math.min(Math.max(scrollHeight, minH), maxH);
190
+ this.inputHeight = `${next}px`;
191
+ textarea.style.height = this.inputHeight;
192
+ textarea.classList.toggle('is-scrollable', scrollHeight > maxH);
193
+ }
194
+
195
+ resetHeight() {
196
+ const textarea = this.shadowRoot.querySelector('textarea');
197
+ if (textarea) {
198
+ const minH = this.minHeight || '24px';
199
+ this.inputHeight = minH;
200
+ textarea.style.height = minH;
201
+ textarea.classList.remove('is-scrollable');
202
+ }
203
+ }
204
+ }
205
+
206
+ customElements.define('my-input', Input);