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.
- package/LICENSE +21 -0
- package/dist/cjs/BlockChatList-720a703e.js +423 -0
- package/dist/cjs/BlockChatList-720a703e.js.map +1 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js +493 -0
- package/dist/cjs/DocumentMessageBubble-c79bfbe5.js.map +1 -0
- package/dist/cjs/Image-67c52acd.js +135 -0
- package/dist/cjs/Image-67c52acd.js.map +1 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js +675 -0
- package/dist/cjs/ImageMessageBubble-1218fb66.js.map +1 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js +44 -0
- package/dist/cjs/IsometrikLogo-976b1c34.js.map +1 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js +5892 -0
- package/dist/cjs/MessageSearch-5fc9dc00.js.map +1 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js +375 -0
- package/dist/cjs/ReactionsContainer-a6ce9059.js.map +1 -0
- package/dist/cjs/Text-fedf6eab.js +60 -0
- package/dist/cjs/Text-fedf6eab.js.map +1 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js +571 -0
- package/dist/cjs/VideoMessageBubble-c4694a78.js.map +1 -0
- package/dist/cjs/WebChat-403e7ab1.js +2884 -0
- package/dist/cjs/WebChat-403e7ab1.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js +21011 -0
- package/dist/cjs/audio-bubble_8.cjs.entry.js.map +1 -0
- package/dist/cjs/block-chat-list.cjs.entry.js +16 -0
- package/dist/cjs/block-chat-list.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-app.cjs.entry.js +55 -0
- package/dist/cjs/chat-app.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-assets-6ab1faa6.js +9 -0
- package/dist/cjs/chat-assets-6ab1faa6.js.map +1 -0
- package/dist/cjs/chat-creds-f4cbf400.js +38 -0
- package/dist/cjs/chat-creds-f4cbf400.js.map +1 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js +26 -0
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js +24 -0
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js.map +1 -0
- package/dist/cjs/content-eca5336c.js +81 -0
- package/dist/cjs/content-eca5336c.js.map +1 -0
- package/dist/cjs/dialog-drawer-9d04911c.js +5313 -0
- package/dist/cjs/dialog-drawer-9d04911c.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +128 -0
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -0
- package/dist/cjs/group-members-a60fb1cb.js +41 -0
- package/dist/cjs/group-members-a60fb1cb.js.map +1 -0
- package/dist/cjs/groupcast-49dae5ab.js +202 -0
- package/dist/cjs/groupcast-49dae5ab.js.map +1 -0
- package/dist/cjs/imagePlaceholder-030cc566.js +4365 -0
- package/dist/cjs/imagePlaceholder-030cc566.js.map +1 -0
- package/dist/cjs/index-9afe62b6.js +3129 -0
- package/dist/cjs/index-9afe62b6.js.map +1 -0
- package/dist/cjs/index.cjs.js +148 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/isometrik-webchat.cjs.js +54 -0
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/login-page.cjs.entry.js +85 -0
- package/dist/cjs/login-page.cjs.entry.js.map +1 -0
- package/dist/cjs/member-add.cjs.entry.js +122 -0
- package/dist/cjs/member-add.cjs.entry.js.map +1 -0
- package/dist/cjs/message-reaction-976f6261.js +24 -0
- package/dist/cjs/message-reaction-976f6261.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +29 -0
- package/dist/cjs/my-component.cjs.entry.js.map +1 -0
- package/dist/cjs/reaction-container.cjs.entry.js +52 -0
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -0
- package/dist/cjs/shadow-css-7c4dbc43.js +336 -0
- package/dist/cjs/shadow-css-7c4dbc43.js.map +1 -0
- package/dist/cjs/signup-page.cjs.entry.js +143 -0
- package/dist/cjs/signup-page.cjs.entry.js.map +1 -0
- package/dist/cjs/taguser-aca04ed9.js +512 -0
- package/dist/cjs/taguser-aca04ed9.js.map +1 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js +113 -0
- package/dist/cjs/theme-provider_2.cjs.entry.js.map +1 -0
- package/dist/cjs/toast-helper-defae4a5.js +84 -0
- package/dist/cjs/toast-helper-defae4a5.js.map +1 -0
- package/dist/cjs/utils-bcad3386.js +9 -0
- package/dist/cjs/utils-bcad3386.js.map +1 -0
- package/dist/collection/api/conversations.js +12 -0
- package/dist/collection/api/group-members.js +36 -0
- package/dist/collection/api/groupcast.js +183 -0
- package/dist/collection/api/membership-control.js +13 -0
- package/dist/collection/api/message-reaction.js +16 -0
- package/dist/collection/api/social-accounts.js +282 -0
- package/dist/collection/app-root.js +51 -0
- package/dist/collection/app-root.js.map +1 -0
- package/dist/collection/assets/images/avatar.svg +1 -0
- package/dist/collection/assets/images/chatdefaultbg.svg +6140 -0
- package/dist/collection/assets/images/equalizer.svg +1 -0
- package/dist/collection/assets/images/imagePlaceholder.svg +2 -0
- package/dist/collection/assets/images/link.svg +1 -0
- package/dist/collection/assets/images/videoPlaceholder.svg +4 -0
- package/dist/collection/assets/images/videoThumbnail.svg +1 -0
- package/dist/collection/assets/svg/ExcelDocument.js +2 -0
- package/dist/collection/assets/svg/IsometrikLogo.js +38 -0
- package/dist/collection/assets/svg/Moon.svg +1 -0
- package/dist/collection/assets/svg/NoChatPlaceholder.js +16 -0
- package/dist/collection/assets/svg/NoContactsPlaceholder.js +9 -0
- package/dist/collection/assets/svg/NoMessagePlaceholder.svg +13 -0
- package/dist/collection/assets/svg/PdfDocument.js +2 -0
- package/dist/collection/assets/svg/ProfilePlaceholder.js +1 -0
- package/dist/collection/assets/svg/SelectChatPlaceholder.js +13 -0
- package/dist/collection/assets/svg/Sun.svg +1 -0
- package/dist/collection/assets/svg/broadcast-selected.svg +4 -0
- package/dist/collection/assets/svg/broadcst-default.svg +4 -0
- package/dist/collection/assets/svg/close.svg +1 -0
- package/dist/collection/assets/svg/group.svg +7 -0
- package/dist/collection/assets/svg/login.svg +3051 -0
- package/dist/collection/assets/svg/message-add.svg +5 -0
- package/dist/collection/assets/svg/message-bold.svg +3 -0
- package/dist/collection/assets/svg/message-outline.svg +5 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js +144 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js +528 -0
- package/dist/collection/components/ChatUIComponent/AudioBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js +114 -0
- package/dist/collection/components/ChatUIComponent/BlockChatList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +540 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/profile-page.css +252 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +1175 -0
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +11 -0
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +790 -0
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js +152 -0
- package/dist/collection/components/ChatUIComponent/ForwardMessageList.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js +218 -0
- package/dist/collection/components/ChatUIComponent/GroupCast.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +590 -0
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +103 -0
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +1352 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +277 -0
- package/dist/collection/components/Login.js +118 -0
- package/dist/collection/components/Login.js.map +1 -0
- package/dist/collection/components/Signup.js +177 -0
- package/dist/collection/components/Signup.js.map +1 -0
- package/dist/collection/components/chat-main.js +131 -0
- package/dist/collection/components/chat-main.js.map +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +83 -0
- package/dist/collection/components/my-component/my-component.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js +2686 -0
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +675 -0
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -0
- package/dist/collection/components/my-component/web-chat/web-chat.css +336 -0
- package/dist/collection/components/theme-provider.js +182 -0
- package/dist/collection/components/theme-provider.js.map +1 -0
- package/dist/collection/constants/chat-assets.js +12 -0
- package/dist/collection/constants/chat-creds.js +31 -0
- package/dist/collection/constants/content.js +75 -0
- package/dist/collection/constants/urls.js +1 -0
- package/dist/collection/index.js +135 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/lib/helpers.js +205 -0
- package/dist/collection/lib/taguser.js +123 -0
- package/dist/collection/store/conversation.js +25 -0
- package/dist/collection/store/conversation.js.map +1 -0
- package/dist/collection/store/group-members.js +24 -0
- package/dist/collection/store/group-members.js.map +1 -0
- package/dist/collection/store/unread-count.js +18 -0
- package/dist/collection/store/unread-count.js.map +1 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.js +222 -0
- package/dist/collection/stories/Components/ActionsPopup/ActionsPopup.stories.js +148 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentBox.js +211 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.js +708 -0
- package/dist/collection/stories/Components/AttachmentBox/AttachmentPreview/AttachmentPreview.stories.js +57 -0
- package/dist/collection/stories/Components/AttachmentBox/Attachmentbox.stories.js +74 -0
- package/dist/collection/stories/Components/AttachmentBox/CameraPreview.js +231 -0
- package/dist/collection/stories/Components/BlockUsers/BlockUsers.js +337 -0
- package/dist/collection/stories/Components/Body/Body.js +48 -0
- package/dist/collection/stories/Components/Body/Body.stories.js +33 -0
- package/dist/collection/stories/Components/Buttons/Buttons.js +65 -0
- package/dist/collection/stories/Components/Buttons/Buttons.stories.js +132 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.js +951 -0
- package/dist/collection/stories/Components/ChatSidebar/ChatSidebar.stories.js +75 -0
- package/dist/collection/stories/Components/ChatSidebar/ContextMenu.js +109 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.js +290 -0
- package/dist/collection/stories/Components/ChatTile/ChatTile.stories.js +180 -0
- package/dist/collection/stories/Components/Chip/Chip.js +111 -0
- package/dist/collection/stories/Components/Chip/Chip.stories.js +149 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.js +1491 -0
- package/dist/collection/stories/Components/ContactInfo/ContactInfo.stories.js +118 -0
- package/dist/collection/stories/Components/ContactInfo/MediaList.js +147 -0
- package/dist/collection/stories/Components/ContactInfo/ProfileInfo.js +1219 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.js +416 -0
- package/dist/collection/stories/Components/ContactTile/ContactTile.stories.js +60 -0
- package/dist/collection/stories/Components/Dialog-Drawer/confirm.js +113 -0
- package/dist/collection/stories/Components/Dialog-Drawer/deletemessage.js +97 -0
- package/dist/collection/stories/Components/Dialog-Drawer/dialog-drawer.js +264 -0
- package/dist/collection/stories/Components/EmojiReactions/EmojiReactions.js +179 -0
- package/dist/collection/stories/Components/Footer/Footer.js +4 -0
- package/dist/collection/stories/Components/Footer/Footer.stories.js +155 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.js +433 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardMessageContainer.stories.js +110 -0
- package/dist/collection/stories/Components/ForwardMessage/ForwardUi.js +46 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.js +546 -0
- package/dist/collection/stories/Components/GroupChatContacts/GroupChatContacts.stories.js +56 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.js +394 -0
- package/dist/collection/stories/Components/GroupInfo/GroupInfo.stories.js +107 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.js +129 -0
- package/dist/collection/stories/Components/Head/ClosedHeader/ClosedHead.stories.js +78 -0
- package/dist/collection/stories/Components/Head/Head.js +672 -0
- package/dist/collection/stories/Components/Head/Head.stories.js +91 -0
- package/dist/collection/stories/Components/Icon/Icon.js +115 -0
- package/dist/collection/stories/Components/Image/Image.js +41 -0
- package/dist/collection/stories/Components/Image/Image.stories.js +49 -0
- package/dist/collection/stories/Components/Image/Img.stories.js +178 -0
- package/dist/collection/stories/Components/Inputbox/Input.js +206 -0
- package/dist/collection/stories/Components/Inputbox/Input.stories.js +87 -0
- package/dist/collection/stories/Components/InstagramAccounts/InstagramAccountsPanel.js +605 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.js +60 -0
- package/dist/collection/stories/Components/Loader/Spinner/Spinner.stories.js +38 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainChatPlaceHolder.js +78 -0
- package/dist/collection/stories/Components/MainPlaceHolder/MainPlaceHolder.stories.js +130 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.js +868 -0
- package/dist/collection/stories/Components/MediaGallery/MediaGallery.stories.js +81 -0
- package/dist/collection/stories/Components/MembersList/MembersList.js +348 -0
- package/dist/collection/stories/Components/MessageBubble/AudioMessageBubble/AudioMesaageBubble.js +533 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.js +484 -0
- package/dist/collection/stories/Components/MessageBubble/DocumentMessageBubble/DocumentMessageBubble.stories.js +54 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.js +683 -0
- package/dist/collection/stories/Components/MessageBubble/ImageMessageBubble/ImageMessageBubble.stories.js +49 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.js +450 -0
- package/dist/collection/stories/Components/MessageBubble/IncomingTextMessageBubble/IncomingTextMessageBubble.stories.js +56 -0
- package/dist/collection/stories/Components/MessageBubble/LinkMessageBubble/LinkMessageBubble.js +721 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.js +139 -0
- package/dist/collection/stories/Components/MessageBubble/OutgoingTextMessageBubble/OutgoingTextMessageBubble.stories.js +63 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.js +576 -0
- package/dist/collection/stories/Components/MessageBubble/VideoMessageBubble/VideoMessageBubble.stories.js +50 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.js +66 -0
- package/dist/collection/stories/Components/MessageDatePill/MessageDatePill.stories.js +48 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.js +465 -0
- package/dist/collection/stories/Components/MessageInfo/MessageInfo.stories.js +111 -0
- package/dist/collection/stories/Components/MessageSearch/MessageSearch.js +242 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.js +523 -0
- package/dist/collection/stories/Components/MessageSearchBar/SearchBar.stories.js +98 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.js +51 -0
- package/dist/collection/stories/Components/MessageUnreadCount/MessageUnreadCount.stories.js +79 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.js +560 -0
- package/dist/collection/stories/Components/NewChatSidebar/NewChatSidebar.stories.js +56 -0
- package/dist/collection/stories/Components/Placeholder/NoContactsPlaceholder.js +57 -0
- package/dist/collection/stories/Components/Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js +114 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.js +166 -0
- package/dist/collection/stories/Components/ProfileSidebar/ProfileSidebar.stories.js +125 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.js +939 -0
- package/dist/collection/stories/Components/ProfileTab/ProfileTab.stories.js +144 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.js +166 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsContainer.stories.js +115 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js +98 -0
- package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.stories.js +55 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/BlueReadMark/BlueReadMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.js +26 -0
- package/dist/collection/stories/Components/ReadMark/ClockMark/ClockMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.js +27 -0
- package/dist/collection/stories/Components/ReadMark/DoubleMark/DoubleMark.stories.js +28 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.js +38 -0
- package/dist/collection/stories/Components/ReadMark/SingleMark/SingleMark.stories.js +33 -0
- package/dist/collection/stories/Components/ReplyBlock/MediaIcons.js +16 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.js +196 -0
- package/dist/collection/stories/Components/ReplyBlock/ReplyBlock.stories.js +57 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.js +645 -0
- package/dist/collection/stories/Components/ReplyMessageContainer/ReplyMessageContainer.stories.js +58 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.js +393 -0
- package/dist/collection/stories/Components/SearchableList/SearchableList.stories.js +65 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.js +152 -0
- package/dist/collection/stories/Components/SharePopup/SharePopup.stories.js +47 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.js +157 -0
- package/dist/collection/stories/Components/Splitscreen/Splitscreen.stories.js +100 -0
- package/dist/collection/stories/Components/TestFooter/MentionUserList.js +194 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.js +1339 -0
- package/dist/collection/stories/Components/TestFooter/TestFooter.stories.js +89 -0
- package/dist/collection/stories/Components/Text/Text.js +57 -0
- package/dist/collection/stories/Components/Text/Text.stories.js +83 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.js +38 -0
- package/dist/collection/stories/Components/TextStyle/TextStyle.stories.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.js +50 -0
- package/dist/collection/stories/Components/Time/Timestamp.stories.js +34 -0
- package/dist/collection/stories/Components/Toaster/Toaster.js +94 -0
- package/dist/collection/stories/Components/Toaster/Toaster.stories.js +108 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js +79 -0
- package/dist/collection/stories/Components/Toaster/toast-helper.js.map +1 -0
- package/dist/collection/stories/Components/final/final.js +86 -0
- package/dist/collection/stories/Components/final/final.stories.js +30 -0
- package/dist/collection/stories/assets/SEARCH ICON.svg +1 -0
- package/dist/collection/types/ConversationDetailsTypes.js +2 -0
- package/dist/collection/types/ConversationDetailsTypes.js.map +1 -0
- package/dist/collection/utils/chatSdk.js +14 -0
- package/dist/collection/utils/getFomattedDate.js +34 -0
- package/dist/collection/utils/getFomattedDate.js.map +1 -0
- package/dist/collection/utils/unixTimeConverter.js +28 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/esm/BlockChatList-9fc3a42b.js +421 -0
- package/dist/esm/BlockChatList-9fc3a42b.js.map +1 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js +491 -0
- package/dist/esm/DocumentMessageBubble-b67726f2.js.map +1 -0
- package/dist/esm/Image-bb9efda3.js +121 -0
- package/dist/esm/Image-bb9efda3.js.map +1 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js +673 -0
- package/dist/esm/ImageMessageBubble-0e473f6e.js.map +1 -0
- package/dist/esm/IsometrikLogo-14db76af.js +42 -0
- package/dist/esm/IsometrikLogo-14db76af.js.map +1 -0
- package/dist/esm/MessageSearch-4101a627.js +5875 -0
- package/dist/esm/MessageSearch-4101a627.js.map +1 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js +373 -0
- package/dist/esm/ReactionsContainer-bdd74a3c.js.map +1 -0
- package/dist/esm/Text-3b0b3898.js +58 -0
- package/dist/esm/Text-3b0b3898.js.map +1 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js +569 -0
- package/dist/esm/VideoMessageBubble-88a7a53e.js.map +1 -0
- package/dist/esm/WebChat-5448d615.js +2882 -0
- package/dist/esm/WebChat-5448d615.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/audio-bubble_8.entry.js +21001 -0
- package/dist/esm/audio-bubble_8.entry.js.map +1 -0
- package/dist/esm/block-chat-list.entry.js +8 -0
- package/dist/esm/block-chat-list.entry.js.map +1 -0
- package/dist/esm/chat-app.entry.js +51 -0
- package/dist/esm/chat-app.entry.js.map +1 -0
- package/dist/esm/chat-assets-bd8778d5.js +6 -0
- package/dist/esm/chat-assets-bd8778d5.js.map +1 -0
- package/dist/esm/chat-creds-ff086f05.js +35 -0
- package/dist/esm/chat-creds-ff086f05.js.map +1 -0
- package/dist/esm/chat-document-message-bubble.entry.js +20 -0
- package/dist/esm/chat-document-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-image-message-bubble.entry.js +22 -0
- package/dist/esm/chat-image-message-bubble.entry.js.map +1 -0
- package/dist/esm/chat-video-message-bubble.entry.js +20 -0
- package/dist/esm/chat-video-message-bubble.entry.js.map +1 -0
- package/dist/esm/content-5aea5e39.js +79 -0
- package/dist/esm/content-5aea5e39.js.map +1 -0
- package/dist/esm/dialog-drawer-9fa083b1.js +5304 -0
- package/dist/esm/dialog-drawer-9fa083b1.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +124 -0
- package/dist/esm/forward-memebers.entry.js.map +1 -0
- package/dist/esm/group-members-bb3c8db7.js +37 -0
- package/dist/esm/group-members-bb3c8db7.js.map +1 -0
- package/dist/esm/groupcast-d1c54a27.js +187 -0
- package/dist/esm/groupcast-d1c54a27.js.map +1 -0
- package/dist/esm/imagePlaceholder-e544f70b.js +4360 -0
- package/dist/esm/imagePlaceholder-e544f70b.js.map +1 -0
- package/dist/esm/index-fddf30b7.js +3093 -0
- package/dist/esm/index-fddf30b7.js.map +1 -0
- package/dist/esm/index.js +139 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isometrik-webchat.js +49 -0
- package/dist/esm/isometrik-webchat.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/login-page.entry.js +81 -0
- package/dist/esm/login-page.entry.js.map +1 -0
- package/dist/esm/member-add.entry.js +118 -0
- package/dist/esm/member-add.entry.js.map +1 -0
- package/dist/esm/message-reaction-ad47ea1a.js +20 -0
- package/dist/esm/message-reaction-ad47ea1a.js.map +1 -0
- package/dist/esm/my-component.entry.js +25 -0
- package/dist/esm/my-component.entry.js.map +1 -0
- package/dist/esm/reaction-container.entry.js +48 -0
- package/dist/esm/reaction-container.entry.js.map +1 -0
- package/dist/esm/shadow-css-7ad5caf8.js +334 -0
- package/dist/esm/shadow-css-7ad5caf8.js.map +1 -0
- package/dist/esm/signup-page.entry.js +139 -0
- package/dist/esm/signup-page.entry.js.map +1 -0
- package/dist/esm/taguser-e9032d65.js +510 -0
- package/dist/esm/taguser-e9032d65.js.map +1 -0
- package/dist/esm/theme-provider_2.entry.js +108 -0
- package/dist/esm/theme-provider_2.entry.js.map +1 -0
- package/dist/esm/toast-helper-840fd8dc.js +82 -0
- package/dist/esm/toast-helper-840fd8dc.js.map +1 -0
- package/dist/esm/utils-11fcde98.js +7 -0
- package/dist/esm/utils-11fcde98.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/isometrik-webchat/index.esm.js +2 -0
- package/dist/isometrik-webchat/index.esm.js.map +1 -0
- package/dist/isometrik-webchat/isometrik-webchat.css +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +2 -0
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -0
- package/dist/isometrik-webchat/p-12774661.js +2 -0
- package/dist/isometrik-webchat/p-12774661.js.map +1 -0
- package/dist/isometrik-webchat/p-12e56271.js +549 -0
- package/dist/isometrik-webchat/p-12e56271.js.map +1 -0
- package/dist/isometrik-webchat/p-1415e589.js +2 -0
- package/dist/isometrik-webchat/p-1415e589.js.map +1 -0
- package/dist/isometrik-webchat/p-18f8d210.js +13 -0
- package/dist/isometrik-webchat/p-18f8d210.js.map +1 -0
- package/dist/isometrik-webchat/p-1b2461f4.js +357 -0
- package/dist/isometrik-webchat/p-1b2461f4.js.map +1 -0
- package/dist/isometrik-webchat/p-229095d4.js +2 -0
- package/dist/isometrik-webchat/p-229095d4.js.map +1 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js +2 -0
- package/dist/isometrik-webchat/p-2953d06a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-3004a123.js +2 -0
- package/dist/isometrik-webchat/p-3004a123.js.map +1 -0
- package/dist/isometrik-webchat/p-3044698a.js +2 -0
- package/dist/isometrik-webchat/p-3044698a.js.map +1 -0
- package/dist/isometrik-webchat/p-40517d7f.js +1098 -0
- package/dist/isometrik-webchat/p-40517d7f.js.map +1 -0
- package/dist/isometrik-webchat/p-42a62cf2.js +2 -0
- package/dist/isometrik-webchat/p-42a62cf2.js.map +1 -0
- package/dist/isometrik-webchat/p-48e1d174.js +45 -0
- package/dist/isometrik-webchat/p-48e1d174.js.map +1 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js +2 -0
- package/dist/isometrik-webchat/p-48e243ec.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-4d2aca06.js +257 -0
- package/dist/isometrik-webchat/p-4d2aca06.js.map +1 -0
- package/dist/isometrik-webchat/p-610bfd8a.js +2 -0
- package/dist/isometrik-webchat/p-610bfd8a.js.map +1 -0
- package/dist/isometrik-webchat/p-674e4bb0.js +9 -0
- package/dist/isometrik-webchat/p-674e4bb0.js.map +1 -0
- package/dist/isometrik-webchat/p-8490e13d.js +192 -0
- package/dist/isometrik-webchat/p-8490e13d.js.map +1 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js +2 -0
- package/dist/isometrik-webchat/p-858b0da8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-89108249.entry.js +5010 -0
- package/dist/isometrik-webchat/p-89108249.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-8dcdea59.js +2963 -0
- package/dist/isometrik-webchat/p-8dcdea59.js.map +1 -0
- package/dist/isometrik-webchat/p-92d0b21c.js +2 -0
- package/dist/isometrik-webchat/p-92d0b21c.js.map +1 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js +2 -0
- package/dist/isometrik-webchat/p-ada9c8e8.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js +2 -0
- package/dist/isometrik-webchat/p-adbb398d.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-b07dd267.js +2 -0
- package/dist/isometrik-webchat/p-b07dd267.js.map +1 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js +2 -0
- package/dist/isometrik-webchat/p-bf0aeb22.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js +2 -0
- package/dist/isometrik-webchat/p-bfd51dd4.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js +2 -0
- package/dist/isometrik-webchat/p-c50aa410.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js +2 -0
- package/dist/isometrik-webchat/p-cd34448c.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js +2 -0
- package/dist/isometrik-webchat/p-d4b8ece6.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-de8a8642.js +197 -0
- package/dist/isometrik-webchat/p-de8a8642.js.map +1 -0
- package/dist/isometrik-webchat/p-e09b32eb.js +591 -0
- package/dist/isometrik-webchat/p-e09b32eb.js.map +1 -0
- package/dist/isometrik-webchat/p-e1255160.js +2 -0
- package/dist/isometrik-webchat/p-e1255160.js.map +1 -0
- package/dist/isometrik-webchat/p-e3731295.js +274 -0
- package/dist/isometrik-webchat/p-e3731295.js.map +1 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js +2 -0
- package/dist/isometrik-webchat/p-e4efea64.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js +2 -0
- package/dist/isometrik-webchat/p-ef6e482a.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js +3 -0
- package/dist/isometrik-webchat/p-f1f5d5bd.js.map +1 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js +203 -0
- package/dist/isometrik-webchat/p-ff9f3dfe.js.map +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/app-root.d.ts +0 -0
- package/dist/types/components/ChatUIComponent/AddMember.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/AudioBubble.d.ts +39 -0
- package/dist/types/components/ChatUIComponent/BlockChatList.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/ChatDocumentMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatImageMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +42 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +85 -0
- package/dist/types/components/ChatUIComponent/ChatVideoMessageBubble.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +154 -0
- package/dist/types/components/ChatUIComponent/ForwardMessageList.d.ts +15 -0
- package/dist/types/components/ChatUIComponent/GroupCast.d.ts +26 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +45 -0
- package/dist/types/components/ChatUIComponent/ReactionContainer.d.ts +12 -0
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +120 -0
- package/dist/types/components/Login.d.ts +13 -0
- package/dist/types/components/Signup.d.ts +17 -0
- package/dist/types/components/chat-main.d.ts +15 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +42 -0
- package/dist/types/components/theme-provider.d.ts +44 -0
- package/dist/types/components.d.ts +838 -0
- package/dist/types/index.d.ts +37 -0
- package/dist/types/stencil-public-runtime.d.ts +1678 -0
- package/dist/types/store/conversation.d.ts +17 -0
- package/dist/types/store/group-members.d.ts +18 -0
- package/dist/types/store/unread-count.d.ts +10 -0
- package/dist/types/stories/Components/Toaster/toast-helper.d.ts +8 -0
- package/dist/types/types/ConversationDetailsTypes.d.ts +52 -0
- package/dist/types/utils/getFomattedDate.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +89 -0
- package/readme.md +569 -0
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
import { Text } from '../Text/Text';
|
|
3
|
+
import { Image } from '../Image/Image';
|
|
4
|
+
|
|
5
|
+
class GroupInfo extends LitElement {
|
|
6
|
+
static properties = {
|
|
7
|
+
imageSrc: { type: String },
|
|
8
|
+
imageAlt: { type: String },
|
|
9
|
+
imageHeight: { type: String },
|
|
10
|
+
imageWidth: { type: String },
|
|
11
|
+
imageRadius: { type: String },
|
|
12
|
+
// image property ends here
|
|
13
|
+
label: { type: String },
|
|
14
|
+
labelColor: { type: String },
|
|
15
|
+
labelFontFamily: { type: String },
|
|
16
|
+
labelFontWeight: { type: String },
|
|
17
|
+
labelFontSize: { type: String },
|
|
18
|
+
labelFontStyle: { type: String },
|
|
19
|
+
// label properties ends here
|
|
20
|
+
|
|
21
|
+
padding: { type: String },
|
|
22
|
+
bgColor: { type: String },
|
|
23
|
+
borderWidth: { type: String },
|
|
24
|
+
borderColor: { type: String },
|
|
25
|
+
borderStyle: { type: String },
|
|
26
|
+
height: { type: String },
|
|
27
|
+
width: { type: String },
|
|
28
|
+
textColor: { type: String },
|
|
29
|
+
groupTitle: { type: String },
|
|
30
|
+
selectedUserIds: { type: Array },
|
|
31
|
+
closeGroupInfo: { type: Function },
|
|
32
|
+
isGroupCast: {type: Boolean}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
static styles = css`
|
|
36
|
+
.chip-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
}
|
|
41
|
+
.chip-close-icon {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
}
|
|
45
|
+
.chip-label-container {
|
|
46
|
+
overflow-wrap: break-word;
|
|
47
|
+
word-wrap: break-word;
|
|
48
|
+
word-break: break-word;
|
|
49
|
+
max-width: calc(100% - 40px);
|
|
50
|
+
margin: 0 8px;
|
|
51
|
+
}
|
|
52
|
+
.chip-image-container {
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.group-info-content {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
align-items: center;
|
|
60
|
+
gap: 16px;
|
|
61
|
+
padding: 20px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.group-info-image {
|
|
65
|
+
position: relative;
|
|
66
|
+
width: 200px;
|
|
67
|
+
height: 200px;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
border: 2px dashed #ccc;
|
|
76
|
+
transition: border-color 0.3s ease;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.group-info-image:hover {
|
|
80
|
+
border-color: #666;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.default-group-svg {
|
|
84
|
+
position: absolute;
|
|
85
|
+
width: 60%;
|
|
86
|
+
height: 60%;
|
|
87
|
+
opacity: 0.3;
|
|
88
|
+
top: 20%;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.image-upload-label {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0;
|
|
94
|
+
left: 0;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
background-color: #f5f5f5;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
font-size: 14px;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
color: #666;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
text-align: center;
|
|
108
|
+
z-index: 1;
|
|
109
|
+
transition: background-color 0.3s ease;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.image-upload-label:hover {
|
|
113
|
+
background-color: #eeeeee;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.image-upload-input {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.preview-image {
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 100%;
|
|
123
|
+
object-fit: cover;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.preview-image-container {
|
|
127
|
+
position: relative;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: 100%;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.edit-overlay {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 50%;
|
|
135
|
+
left: 50%;
|
|
136
|
+
transform: translate(-50%, -50%);
|
|
137
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
138
|
+
border-radius: 50%;
|
|
139
|
+
padding: 8px;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transition: opacity 0.3s ease;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.preview-image-container:hover .edit-overlay {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.edit-icon {
|
|
150
|
+
width: 24px;
|
|
151
|
+
height: 24px;
|
|
152
|
+
color: white;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.image-upload-input {
|
|
156
|
+
display: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.image-controls {
|
|
160
|
+
position: absolute;
|
|
161
|
+
top: 50%;
|
|
162
|
+
left: 50%;
|
|
163
|
+
transform: translate(-50%, -50%);
|
|
164
|
+
display: flex;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
opacity: 0;
|
|
167
|
+
transition: opacity 0.3s ease;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.preview-image-container:hover .image-controls {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.control-button {
|
|
175
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
176
|
+
border-radius: 50%;
|
|
177
|
+
padding: 8px;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
color: white;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.control-button:hover {
|
|
183
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.group-info-title input {
|
|
187
|
+
padding: 8px 12px;
|
|
188
|
+
font-size: 16px;
|
|
189
|
+
width: 100%;
|
|
190
|
+
border: none;
|
|
191
|
+
background-color: transparent;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.group-info-title input:focus {
|
|
195
|
+
outline: none;
|
|
196
|
+
border-color: #666;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.group-info-topbar {
|
|
200
|
+
display: flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: 8px;
|
|
203
|
+
padding: 10px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.group-info-topbar svg {
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.create-group-button button {
|
|
211
|
+
padding: 12px 24px;
|
|
212
|
+
font-size: 16px;
|
|
213
|
+
background-color: var(--text-primary-color);
|
|
214
|
+
color: var(--bg-primary-color);
|
|
215
|
+
border: none;
|
|
216
|
+
border-radius: 8px;
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
transition: background-color 0.3s ease;
|
|
219
|
+
font-weight: 500;
|
|
220
|
+
min-width: 160px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.create-group-button button:active {
|
|
224
|
+
transform: scale(0.98);
|
|
225
|
+
background-color: var(--text-primary-color);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.create-group-button button:disabled {
|
|
229
|
+
background-color: #cccccc;
|
|
230
|
+
cursor: not-allowed;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.camera-icon {
|
|
234
|
+
width: 48px;
|
|
235
|
+
height: 48px;
|
|
236
|
+
margin-bottom: 12px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.upload-text {
|
|
240
|
+
margin-top: 8px;
|
|
241
|
+
text-align: center;
|
|
242
|
+
line-height: 1.4;
|
|
243
|
+
}
|
|
244
|
+
`;
|
|
245
|
+
|
|
246
|
+
constructor() {
|
|
247
|
+
super();
|
|
248
|
+
this.profilePlaceholderImage = 'https://isometrik-website-bucket.s3.ap-south-1.amazonaws.com/Frame_02577f7cb1.svg';
|
|
249
|
+
this.groupTitle = '';
|
|
250
|
+
this.selectedUserIds = [];
|
|
251
|
+
this.isGroupCast = false;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
handleImageError(e) {
|
|
255
|
+
e.target.src = this.profilePlaceholderImage;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
handleGroupTitleChange(e) {
|
|
259
|
+
this.groupTitle = e.target.value;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
handleCreateGroup() {
|
|
263
|
+
if (!this.groupTitle.trim()) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const groupDetails = {
|
|
268
|
+
conversationTitle: this.groupTitle,
|
|
269
|
+
imageFile: this.imageFile ,
|
|
270
|
+
selectedUserIds: this.selectedUserIds
|
|
271
|
+
};
|
|
272
|
+
const eventName = this.isGroupCast ? 'create-group-cast-submitted' : 'create-group-submitted'
|
|
273
|
+
|
|
274
|
+
// Dispatch event with all group details
|
|
275
|
+
this.dispatchEvent(new CustomEvent(eventName, {
|
|
276
|
+
detail: {
|
|
277
|
+
...groupDetails,
|
|
278
|
+
closeAll: true,
|
|
279
|
+
isGroupCast: this.isGroupCast
|
|
280
|
+
},
|
|
281
|
+
bubbles: true,
|
|
282
|
+
composed: true
|
|
283
|
+
}));
|
|
284
|
+
|
|
285
|
+
// Close the group info overlay
|
|
286
|
+
if (this.closeGroupInfo) {
|
|
287
|
+
this.closeGroupInfo();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
render() {
|
|
292
|
+
return html`
|
|
293
|
+
<div class="group-info-container" style="background-color: ${this.bgColor}; width: ${this.width}; height: ${this.height}; padding: ${this.padding};">
|
|
294
|
+
<div class="group-info-topbar">
|
|
295
|
+
<svg @click=${this.closeGroupInfo} xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="${this.textColor}">
|
|
296
|
+
<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z" />
|
|
297
|
+
</svg>
|
|
298
|
+
${Text({
|
|
299
|
+
content: this.label,
|
|
300
|
+
fontSize: this.labelFontSize,
|
|
301
|
+
fontFamily: this.labelFontFamily,
|
|
302
|
+
color: this.textColor,
|
|
303
|
+
})}
|
|
304
|
+
</div>
|
|
305
|
+
<div class="group-info-content">
|
|
306
|
+
<div class="group-info-image">
|
|
307
|
+
${this.imageSrc
|
|
308
|
+
? html`
|
|
309
|
+
<div class="preview-image-container">
|
|
310
|
+
<img class="preview-image" src="${this.imageSrc}" alt="Group photo" @error=${this.handleImageError} />
|
|
311
|
+
<div class="image-controls">
|
|
312
|
+
<div class="control-button" @click=${this._triggerFileInput}>
|
|
313
|
+
<svg class="edit-icon" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="currentColor">
|
|
314
|
+
<path
|
|
315
|
+
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
316
|
+
/>
|
|
317
|
+
</svg>
|
|
318
|
+
</div>
|
|
319
|
+
<div class="control-button" @click=${this._removeImage}>
|
|
320
|
+
<svg class="edit-icon" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24" fill="currentColor">
|
|
321
|
+
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />
|
|
322
|
+
</svg>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
<input type="file" class="image-upload-input" accept="image/*" @change=${this._handleImageUpload} id="fileInput" />
|
|
326
|
+
</div>
|
|
327
|
+
`
|
|
328
|
+
: html`
|
|
329
|
+
<label class="image-upload-label">
|
|
330
|
+
<svg class="default-group-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
331
|
+
<path
|
|
332
|
+
d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zM20 19h-6v-2.5c0-2.33 4.67-3.5 7-3.5V19z"
|
|
333
|
+
/>
|
|
334
|
+
</svg>
|
|
335
|
+
<svg class="camera-icon" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#666">
|
|
336
|
+
<path
|
|
337
|
+
d="M440-440ZM120-120q-33 0-56.5-23.5T40-200v-480q0-33 23.5-56.5T120-760h126l74-80h240v80H355l-73 80H120v480h640v-360h80v360q0 33-23.5 56.5T760-120H120Zm640-560v-80h-80v-80h80v-80h80v80h80v80h-80v80h-80ZM440-260q75 0 127.5-52.5T620-440q0-75-52.5-127.5T440-620q-75 0-127.5 52.5T260-440q0 75 52.5 127.5T440-260Zm0-80q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Z"
|
|
338
|
+
/>
|
|
339
|
+
</svg>
|
|
340
|
+
<div class="upload-text">
|
|
341
|
+
Add Group<br>Photo
|
|
342
|
+
</div>
|
|
343
|
+
<input type="file" class="image-upload-input" accept="image/*" @change=${this._handleImageUpload} />
|
|
344
|
+
</label>
|
|
345
|
+
`}
|
|
346
|
+
</div>
|
|
347
|
+
<div class="group-info-title" style="border-bottom: 1px solid var(--text-primary-color); width: 100%;">
|
|
348
|
+
<input
|
|
349
|
+
type="text"
|
|
350
|
+
placeholder="${this.isGroupCast? 'Groupcast Name' : 'Group Name'}"
|
|
351
|
+
style="color: ${this.textColor};"
|
|
352
|
+
.value=${this.groupTitle}
|
|
353
|
+
@input=${this.handleGroupTitleChange}
|
|
354
|
+
/>
|
|
355
|
+
</div>
|
|
356
|
+
<div class="create-group-button">
|
|
357
|
+
<button
|
|
358
|
+
@click=${this.handleCreateGroup}
|
|
359
|
+
?disabled=${!this.groupTitle.trim() }
|
|
360
|
+
>
|
|
361
|
+
Create Group
|
|
362
|
+
</button>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
`;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
_handleImageUpload(e) {
|
|
370
|
+
const file = e.target.files[0];
|
|
371
|
+
if (file) {
|
|
372
|
+
this.imageFile = file;
|
|
373
|
+
|
|
374
|
+
const reader = new FileReader();
|
|
375
|
+
reader.onload = e => {
|
|
376
|
+
this.imageSrc = e.target.result;
|
|
377
|
+
this.requestUpdate();
|
|
378
|
+
};
|
|
379
|
+
reader.readAsDataURL(file);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
_triggerFileInput() {
|
|
384
|
+
this.shadowRoot.querySelector('#fileInput').click();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
_removeImage() {
|
|
388
|
+
this.imageSrc = '';
|
|
389
|
+
this.imageFile = null;
|
|
390
|
+
this.requestUpdate();
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
customElements.define('iso-group-info', GroupInfo);
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import "./GroupInfo"
|
|
2
|
+
import { html } from "lit"
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/GroupInfo',
|
|
6
|
+
component: 'iso-group-info',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
imageSrc: { control: 'text' },
|
|
10
|
+
imageAlt: { control: 'text' },
|
|
11
|
+
imageHeight: { control: 'text' },
|
|
12
|
+
imageWidth: { control: 'text' },
|
|
13
|
+
imageRadius: { control: 'text' },
|
|
14
|
+
label: { control: 'text' },
|
|
15
|
+
labelColor: { control: 'color' },
|
|
16
|
+
labelFontFamily: { control: 'text' },
|
|
17
|
+
labelFontWeight: { control: 'text' },
|
|
18
|
+
labelFontSize: { control: 'text' },
|
|
19
|
+
labelFontStyle: { control: 'text' },
|
|
20
|
+
padding: { control: 'text' },
|
|
21
|
+
bgColor: { control: 'color' },
|
|
22
|
+
borderWidth: { control: 'text' },
|
|
23
|
+
borderColor: { control: 'color' },
|
|
24
|
+
borderStyle: { control: 'text' },
|
|
25
|
+
height: { control: 'text' },
|
|
26
|
+
width: { control: 'text' },
|
|
27
|
+
textColor: { control: 'color' }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Basic example
|
|
32
|
+
export const Default = {
|
|
33
|
+
args: {
|
|
34
|
+
label: 'Group Info',
|
|
35
|
+
labelFontSize: '18px',
|
|
36
|
+
labelFontFamily: 'Inter, sans-serif',
|
|
37
|
+
textColor: '#333333',
|
|
38
|
+
bgColor: '#ffffff',
|
|
39
|
+
width: '400px',
|
|
40
|
+
padding: '24px',
|
|
41
|
+
imageAlt: 'Group Image',
|
|
42
|
+
imageHeight: '120px',
|
|
43
|
+
imageWidth: '120px',
|
|
44
|
+
imageRadius: '50%',
|
|
45
|
+
labelColor: '#333333',
|
|
46
|
+
labelFontWeight: '500',
|
|
47
|
+
labelFontStyle: 'normal',
|
|
48
|
+
borderWidth: '1px',
|
|
49
|
+
borderColor: '#e0e0e0',
|
|
50
|
+
borderStyle: 'solid',
|
|
51
|
+
height: 'auto'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Dark theme example
|
|
56
|
+
export const DarkTheme = {
|
|
57
|
+
args: {
|
|
58
|
+
label: 'Design Team',
|
|
59
|
+
labelFontSize: '20px',
|
|
60
|
+
labelFontFamily: 'Poppins, sans-serif',
|
|
61
|
+
textColor: '#ffffff',
|
|
62
|
+
bgColor: '#1a1a1a',
|
|
63
|
+
width: '400px',
|
|
64
|
+
padding: '24px'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Professional team example
|
|
69
|
+
export const CorporateTeam = {
|
|
70
|
+
args: {
|
|
71
|
+
imageSrc: 'https://picsum.photos/120',
|
|
72
|
+
label: 'Executive Board',
|
|
73
|
+
labelFontSize: '22px',
|
|
74
|
+
labelFontFamily: 'Montserrat, sans-serif',
|
|
75
|
+
textColor: '#2c3e50',
|
|
76
|
+
bgColor: '#f8f9fa',
|
|
77
|
+
width: '450px',
|
|
78
|
+
padding: '32px'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Fun social group example
|
|
83
|
+
export const SocialGroup = {
|
|
84
|
+
args: {
|
|
85
|
+
imageSrc: 'https://picsum.photos/120?random=1',
|
|
86
|
+
label: '🎮 Gaming Squad',
|
|
87
|
+
labelFontSize: '24px',
|
|
88
|
+
labelFontFamily: 'Nunito, sans-serif',
|
|
89
|
+
textColor: '#000000',
|
|
90
|
+
bgColor: '#ffeaa7',
|
|
91
|
+
width: '400px',
|
|
92
|
+
padding: '24px'
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Compact mobile view
|
|
97
|
+
export const MobileView = {
|
|
98
|
+
args: {
|
|
99
|
+
label: 'Project Team',
|
|
100
|
+
labelFontSize: '16px',
|
|
101
|
+
labelFontFamily: 'Roboto, sans-serif',
|
|
102
|
+
textColor: '#2196f3',
|
|
103
|
+
bgColor: '#ffffff',
|
|
104
|
+
width: '320px',
|
|
105
|
+
padding: '16px'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
import { Image } from '../../Image/Image';
|
|
3
|
+
import { Text } from '../../Text/Text';
|
|
4
|
+
import { getAssetPath } from '@stencil/core';
|
|
5
|
+
|
|
6
|
+
class ClosedHead extends LitElement {
|
|
7
|
+
static properties = {
|
|
8
|
+
image: { type: Object },
|
|
9
|
+
text: { type: Object },
|
|
10
|
+
lastSeenText: { type: String },
|
|
11
|
+
lastSeenTextColor: { type: String },
|
|
12
|
+
lastSeenTextFontSize: { type: String },
|
|
13
|
+
textHref: { type: String },
|
|
14
|
+
onFirstSvgClick: { type: Function },
|
|
15
|
+
onSecondSvgClick: { type: Function },
|
|
16
|
+
padding: { type: String },
|
|
17
|
+
conversationDetails: { type: Object },
|
|
18
|
+
profileImage: { type: String },
|
|
19
|
+
borderRadius: { type: String },
|
|
20
|
+
borderColor: { type: String },
|
|
21
|
+
borderStyle: { type: String },
|
|
22
|
+
borderWidth: { type: String },
|
|
23
|
+
boxShadow: { type: String },
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
|
|
29
|
+
this.profilePlaceholderImage = getAssetPath('../../../assets/images/profilePlaceholderImage.png');
|
|
30
|
+
this.borderWidth = '0px 0px 2px 0px';
|
|
31
|
+
this.borderColor = '#E6E8F3';
|
|
32
|
+
this.borderStyle = 'solid';
|
|
33
|
+
}
|
|
34
|
+
static styles = css`
|
|
35
|
+
.head-container {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
.image-container {
|
|
40
|
+
margin-right: 16px;
|
|
41
|
+
}
|
|
42
|
+
.text-container {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
}
|
|
50
|
+
.actions {
|
|
51
|
+
display: flex;
|
|
52
|
+
gap: 8px;
|
|
53
|
+
margin-left: auto;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.last-seen {
|
|
58
|
+
color: var(--last-seen-text-color, gray);
|
|
59
|
+
font-size: var(--last-seen-text-font-size, 14px);
|
|
60
|
+
margin-top: 4px;
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
_handleTextClick() {
|
|
64
|
+
if (this.textHref) {
|
|
65
|
+
window.location.href = this.textHref;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
_handleFirstSvgClick() {
|
|
70
|
+
if (this.onFirstSvgClick) {
|
|
71
|
+
this.onFirstSvgClick();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
_handleSecondSvgClick() {
|
|
76
|
+
if (this.onSecondSvgClick) {
|
|
77
|
+
this.onSecondSvgClick();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
return html`
|
|
82
|
+
<div class="head-container" style="padding: ${this.padding}">
|
|
83
|
+
<div class="image-container">
|
|
84
|
+
${Image({
|
|
85
|
+
src: this.profileImage || this.profilePlaceholderImage,
|
|
86
|
+
height: '50px',
|
|
87
|
+
width: '50px',
|
|
88
|
+
placeholderImage: this.profilePlaceholderImage
|
|
89
|
+
})}
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
<div class="text-container" @click=${this._handleTextClick}>
|
|
93
|
+
${Text({
|
|
94
|
+
fontSize: '20px',
|
|
95
|
+
fontWeight: 'bold',
|
|
96
|
+
content: this.text || '',
|
|
97
|
+
})}
|
|
98
|
+
${this.lastSeenText
|
|
99
|
+
? html` <div
|
|
100
|
+
class="last-seen"
|
|
101
|
+
style="
|
|
102
|
+
color: ${this.lastSeenTextColor || 'gray'};
|
|
103
|
+
font-size: ${this.lastSeenTextFontSize || '14px'};
|
|
104
|
+
"
|
|
105
|
+
>
|
|
106
|
+
${this.lastSeenText}
|
|
107
|
+
</div>`
|
|
108
|
+
: ''}
|
|
109
|
+
</div>
|
|
110
|
+
<div class="actions">
|
|
111
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" @click=${this._handleFirstSvgClick}>
|
|
112
|
+
<path
|
|
113
|
+
d="M19.6373 14.2635L15.968 10.5943L13.7276 8.34242C12.7789 7.39367 11.2357 7.39367 10.287 8.34242L4.36586 14.2635C3.58858 15.0408 4.14868 16.3668 5.2346 16.3668H11.6472H18.7685C19.8659 16.3668 20.4146 15.0408 19.6373 14.2635Z"
|
|
114
|
+
fill="#292D32"
|
|
115
|
+
/>
|
|
116
|
+
</svg>
|
|
117
|
+
|
|
118
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" @click=${this._handleSecondSvgClick}>
|
|
119
|
+
<path d="M7.05078 7.05078L16.9503 16.9503" stroke="#292D32" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
120
|
+
<path d="M7.04972 16.9503L16.9492 7.05078" stroke="#292D32" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
121
|
+
</svg>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
customElements.define('close-head', ClosedHead);
|
|
129
|
+
export default { ClosedHead };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { ClosedHead } from './ClosedHead';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Molecules/CloseHead',
|
|
6
|
+
component: ClosedHead,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
padding: {control: 'text'},
|
|
10
|
+
image: {
|
|
11
|
+
control: {
|
|
12
|
+
type: 'object',
|
|
13
|
+
properties: {
|
|
14
|
+
src: { control: 'text' },
|
|
15
|
+
alt: { control: 'text' },
|
|
16
|
+
width: { control: 'text' },
|
|
17
|
+
height: { control: 'text' },
|
|
18
|
+
borderRadius: { control: 'text' },
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
control: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
content: { control: 'text' },
|
|
27
|
+
color: { control: 'color' },
|
|
28
|
+
fontSize: { control: 'text' },
|
|
29
|
+
fontWeight: { control: 'select', options: ['normal', 'bold', 'bolder', 'lighter'] },
|
|
30
|
+
fontStyle: { control: 'select', options: ['normal', 'italic', 'oblique'] },
|
|
31
|
+
textAlign: { control: 'select', options: ['left', 'center', 'right'] },
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
lastSeenText: { control: 'text' },
|
|
36
|
+
lastSeenTextColor: { control: 'color' },
|
|
37
|
+
lastSeenTextFontSize: { control: 'text' },
|
|
38
|
+
textHref: { control: 'text' },
|
|
39
|
+
onFirstSvgClick: { action: 'firstSvgClicked' },
|
|
40
|
+
onSecondSvgClick: { action: 'secondSvgClicked' },
|
|
41
|
+
},
|
|
42
|
+
args: {
|
|
43
|
+
image: {
|
|
44
|
+
src: '/assets/images/iso-img.svg',
|
|
45
|
+
alt: 'Nature image',
|
|
46
|
+
width: '45px',
|
|
47
|
+
height: '45px',
|
|
48
|
+
borderRadius: '50%',
|
|
49
|
+
},
|
|
50
|
+
text: {
|
|
51
|
+
content: 'Kristin Watson',
|
|
52
|
+
color: 'black',
|
|
53
|
+
fontSize: '18px',
|
|
54
|
+
textAlign: 'left',
|
|
55
|
+
fontWeight: 'bolder',
|
|
56
|
+
fontStyle: 'normal',
|
|
57
|
+
},
|
|
58
|
+
lastSeenText: 'Last seen today at 10:07 am',
|
|
59
|
+
lastSeenTextColor: 'gray',
|
|
60
|
+
lastSeenTextFontSize: '12px',
|
|
61
|
+
textHref: '/',
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const Default = (args) => html`
|
|
66
|
+
<close-head
|
|
67
|
+
.image=${args.image}
|
|
68
|
+
.text=${args.text}
|
|
69
|
+
.lastSeenText=${args.lastSeenText}
|
|
70
|
+
.lastSeenTextColor=${args.lastSeenTextColor}
|
|
71
|
+
.lastSeenTextFontSize=${args.lastSeenTextFontSize}
|
|
72
|
+
.textHref=${args.textHref}
|
|
73
|
+
.onFirstSvgClick=${args.onFirstSvgClick}
|
|
74
|
+
.onSecondSvgClick=${args.onSecondSvgClick}
|
|
75
|
+
.padding=${args.padding}
|
|
76
|
+
></close-head>
|
|
77
|
+
`;
|
|
78
|
+
|