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,144 @@
|
|
|
1
|
+
import { html } from 'lit-html';
|
|
2
|
+
import './ProfileTab.js';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/Profile/ProfilePage',
|
|
6
|
+
component: 'profile-page',
|
|
7
|
+
argTypes: {
|
|
8
|
+
name: { control: 'text' },
|
|
9
|
+
profilePhotoUrl: { control: 'text' },
|
|
10
|
+
isLoading: { control: 'boolean' },
|
|
11
|
+
conversationId: { control: 'text' },
|
|
12
|
+
getUserDetails: { action: 'getUserDetails' },
|
|
13
|
+
closeDrawer: { action: 'closeDrawer' }
|
|
14
|
+
},
|
|
15
|
+
parameters: {
|
|
16
|
+
docs: {
|
|
17
|
+
description: {
|
|
18
|
+
component: 'Profile page component with editing capabilities for user name and profile photo.'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const Template = (args) => {
|
|
25
|
+
return html`
|
|
26
|
+
<div style="width: 400px; height: 600px; border: 1px solid #ccc; border-radius: 8px; overflow: hidden;">
|
|
27
|
+
<profile-tab
|
|
28
|
+
.name=${args.name}
|
|
29
|
+
.profilePhotoUrl=${args.profilePhotoUrl}
|
|
30
|
+
.conversationId=${args.conversationId}
|
|
31
|
+
.getUserDetails=${args.getUserDetails}
|
|
32
|
+
.closeDrawer=${args.closeDrawer}
|
|
33
|
+
></profile-tab>
|
|
34
|
+
</div>
|
|
35
|
+
`;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const Default = Template.bind({});
|
|
39
|
+
Default.args = {
|
|
40
|
+
name: 'default_user',
|
|
41
|
+
profilePhotoUrl: '',
|
|
42
|
+
conversationId: 'conv123',
|
|
43
|
+
getUserDetails: () => console.log('Getting user details...'),
|
|
44
|
+
closeDrawer: () => console.log('Closing drawer...')
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const WithProfilePhoto = Template.bind({});
|
|
48
|
+
WithProfilePhoto.args = {
|
|
49
|
+
...Default.args,
|
|
50
|
+
profilePhotoUrl: 'https://placekitten.com/200/200',
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export const LongName = Template.bind({});
|
|
54
|
+
LongName.args = {
|
|
55
|
+
...Default.args,
|
|
56
|
+
name: 'very_long_username_example',
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export const Loading = Template.bind({});
|
|
60
|
+
Loading.storyName = 'In Loading State';
|
|
61
|
+
Loading.args = {
|
|
62
|
+
...Default.args,
|
|
63
|
+
name: 'loading_user',
|
|
64
|
+
};
|
|
65
|
+
Loading.play = async ({ canvasElement }) => {
|
|
66
|
+
// Select the profile-page element
|
|
67
|
+
const profilePage = canvasElement.querySelector('profile-page');
|
|
68
|
+
|
|
69
|
+
// Set isLoading state to true to simulate loading
|
|
70
|
+
if (profilePage) {
|
|
71
|
+
profilePage.isLoading = true;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// Mock API functions for interactive testing
|
|
76
|
+
export const Interactive = Template.bind({});
|
|
77
|
+
Interactive.args = {
|
|
78
|
+
...Default.args,
|
|
79
|
+
name: 'interactive_user',
|
|
80
|
+
profilePhotoUrl: 'https://placekitten.com/300/300',
|
|
81
|
+
getUserDetails: () => {
|
|
82
|
+
return new Promise((resolve) => {
|
|
83
|
+
setTimeout(() => {
|
|
84
|
+
console.log('User details fetched!');
|
|
85
|
+
resolve();
|
|
86
|
+
}, 1000);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
Interactive.parameters = {
|
|
91
|
+
docs: {
|
|
92
|
+
description: {
|
|
93
|
+
story: 'Fully interactive version with mocked API responses for testing user interactions.'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// Test with validation errors
|
|
99
|
+
export const ValidationErrors = Template.bind({});
|
|
100
|
+
ValidationErrors.args = {
|
|
101
|
+
...Default.args,
|
|
102
|
+
name: 'test_user123',
|
|
103
|
+
};
|
|
104
|
+
ValidationErrors.play = async ({ canvasElement }) => {
|
|
105
|
+
// This story demonstrates entering invalid characters for name validation
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
// Simulate updating with a large file
|
|
109
|
+
export const LargeFileUpload = Template.bind({});
|
|
110
|
+
LargeFileUpload.args = {
|
|
111
|
+
...Default.args,
|
|
112
|
+
name: 'file_upload_user',
|
|
113
|
+
};
|
|
114
|
+
LargeFileUpload.parameters = {
|
|
115
|
+
docs: {
|
|
116
|
+
description: {
|
|
117
|
+
story: 'Tests uploading a large profile photo to observe loading states and error handling.'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
// Mobile view simulation
|
|
123
|
+
export const MobileView = Template.bind({});
|
|
124
|
+
MobileView.args = {
|
|
125
|
+
...Default.args,
|
|
126
|
+
name: 'mobile_user',
|
|
127
|
+
};
|
|
128
|
+
MobileView.parameters = {
|
|
129
|
+
viewport: {
|
|
130
|
+
defaultViewport: 'mobile1'
|
|
131
|
+
},
|
|
132
|
+
docs: {
|
|
133
|
+
description: {
|
|
134
|
+
story: 'Profile page as displayed on mobile devices.'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
// Edge case: Empty name
|
|
140
|
+
export const EmptyName = Template.bind({});
|
|
141
|
+
EmptyName.args = {
|
|
142
|
+
...Default.args,
|
|
143
|
+
name: '',
|
|
144
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { Text } from '../Text/Text';
|
|
3
|
+
import { Button } from '../Buttons/Buttons';
|
|
4
|
+
import { Image } from '../Image/Image';
|
|
5
|
+
import './ReactionsInfoCard/ReactionsInfoCard.js';
|
|
6
|
+
import '../Popup/ConfirmationPopup/DeleteConfirmationPopup/DeletePopup.js';
|
|
7
|
+
|
|
8
|
+
class ReactionsContainer extends LitElement {
|
|
9
|
+
static properties = {
|
|
10
|
+
bgColor: { type: String },
|
|
11
|
+
border: { type: String },
|
|
12
|
+
borderRadius: { type: String },
|
|
13
|
+
color: { type: String },
|
|
14
|
+
height: { type: String },
|
|
15
|
+
width: { type: String },
|
|
16
|
+
reactions: { type: Array },
|
|
17
|
+
fontSize: { type: String },
|
|
18
|
+
reactionsUser: { type: Array },
|
|
19
|
+
showConfirmationPopup: { type: Boolean },
|
|
20
|
+
handleConfirmDelete: { type: Function },
|
|
21
|
+
handleClosePopup: { type: Function },
|
|
22
|
+
userMetaData: { type: Object },
|
|
23
|
+
selectedEmojiToRemove: { type: Object },
|
|
24
|
+
selectedEmojiId: { type: String },
|
|
25
|
+
messageId: { type: String },
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
this.showConfirmationPopup = false;
|
|
31
|
+
this.addEventListener('remove-click', this.handleRemoveReactionClick);
|
|
32
|
+
this.selectedEmojiToRemove = null;
|
|
33
|
+
this.selectedEmojiId = null; // Initialize the selected emoji ID
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
handleRemoveReactionClick(e) {
|
|
37
|
+
this.showConfirmationPopup = true;
|
|
38
|
+
this.selectedEmojiToRemove = e.detail;
|
|
39
|
+
}
|
|
40
|
+
static styles = css`
|
|
41
|
+
.reactions-container {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
padding: 10px;
|
|
45
|
+
box-shadow:
|
|
46
|
+
2px 2px 2px var(--bg-senary-color),
|
|
47
|
+
-2px -2px 2px var(--bg-senary-color);
|
|
48
|
+
}
|
|
49
|
+
.reactions-list-container {
|
|
50
|
+
margin-top: 10px;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 8px;
|
|
54
|
+
}
|
|
55
|
+
.reactions-tab-container {
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: 8px;
|
|
58
|
+
padding: 0;
|
|
59
|
+
}
|
|
60
|
+
.emoji-tab {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
padding: 4px 8px;
|
|
63
|
+
background: transparent;
|
|
64
|
+
border-bottom: 1px solid var(--text-primary-color);
|
|
65
|
+
}
|
|
66
|
+
.emoji-tab:hover {
|
|
67
|
+
background: var(--bg-tertiary-color);
|
|
68
|
+
}
|
|
69
|
+
.emoji-tab.selected {
|
|
70
|
+
background: var(--bg-tertiary-color);
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
handleEmojiClick(emojiId) {
|
|
75
|
+
this.selectedEmojiId = emojiId;
|
|
76
|
+
const event = new CustomEvent('emojiTabClick', {
|
|
77
|
+
detail: emojiId,
|
|
78
|
+
bubbles: true,
|
|
79
|
+
composed: true,
|
|
80
|
+
});
|
|
81
|
+
this.dispatchEvent(event);
|
|
82
|
+
|
|
83
|
+
this.requestUpdate();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
handleConfirmRemove() {
|
|
87
|
+
if (this.selectedEmojiToRemove) {
|
|
88
|
+
this.dispatchEvent(
|
|
89
|
+
new CustomEvent('reaction-removed', {
|
|
90
|
+
detail: {
|
|
91
|
+
messageId: this.messageId,
|
|
92
|
+
emojiId: this.selectedEmojiToRemove.reactionType,
|
|
93
|
+
},
|
|
94
|
+
bubbles: true,
|
|
95
|
+
composed: true,
|
|
96
|
+
}),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
this.closeConfirmationPopup();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
closeConfirmationPopup() {
|
|
103
|
+
this.showConfirmationPopup = false;
|
|
104
|
+
this.selectedEmojiToRemove = null;
|
|
105
|
+
}
|
|
106
|
+
render() {
|
|
107
|
+
const updatedData = this.reactions?.map(item => ({
|
|
108
|
+
...item,
|
|
109
|
+
messageId: item.messageId[0],
|
|
110
|
+
}));
|
|
111
|
+
|
|
112
|
+
return html`
|
|
113
|
+
<div
|
|
114
|
+
class="reactions-container"
|
|
115
|
+
style="background-color: ${this.bgColor}; color: ${this.color};
|
|
116
|
+
font-size: ${this.fontSize}; border: ${this.border}; border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};
|
|
117
|
+
"
|
|
118
|
+
>
|
|
119
|
+
<div class="reactions-tab-container">
|
|
120
|
+
${updatedData?.map(
|
|
121
|
+
data => html` <div class="emoji-tab ${this.selectedEmojiId === data.emojiId ? 'selected' : ''}" @click=${() => this.handleEmojiClick(data.emojiId)}>${data.src}</div> `,
|
|
122
|
+
)}
|
|
123
|
+
</div>
|
|
124
|
+
<div class="reactions-list-container">
|
|
125
|
+
${this.selectedEmojiId && this.reactionsUser?.length > 0
|
|
126
|
+
? this.reactionsUser.map(
|
|
127
|
+
user => html`
|
|
128
|
+
<reactions-info-card
|
|
129
|
+
.userName=${user.userName}
|
|
130
|
+
.userProfileImage=${user.userProfileImageUrl}
|
|
131
|
+
.imageRadius=${'50%'}
|
|
132
|
+
.imageHeight=${'40px'}
|
|
133
|
+
.imageWidth=${'40px'}
|
|
134
|
+
.isSelfReaction=${user.userId === this.userMetaData?.userId}
|
|
135
|
+
.fontSize=${this.fontSize}
|
|
136
|
+
.reactionType=${this.selectedEmojiId}
|
|
137
|
+
></reactions-info-card>
|
|
138
|
+
`,
|
|
139
|
+
)
|
|
140
|
+
: html`<div style="font-size: 14px ; padding: 10px" >Tap on any tab to see list</div>`}
|
|
141
|
+
</div>
|
|
142
|
+
${this.showConfirmationPopup
|
|
143
|
+
? html`
|
|
144
|
+
<delete-popup
|
|
145
|
+
.bgColor=${'var(--bg-primary-color)'}
|
|
146
|
+
.height=${'200px'}
|
|
147
|
+
.width=${'400px'}
|
|
148
|
+
primaryButtonBgColor=${' var(--text-danger-color)'}
|
|
149
|
+
primaryButtonTextColor=${'var(--text-incoming-message)'}
|
|
150
|
+
primaryButtonText="Delete"
|
|
151
|
+
secondaryButtonText="Cancel"
|
|
152
|
+
secondaryButtonBgColor=${' var(--bg-outgoing-message)'}
|
|
153
|
+
secondaryButtonTextColor=${'var(--text-primary-color)'}
|
|
154
|
+
title="Delete Reaction"
|
|
155
|
+
message="Are you sure you want to remove as a reaction?"
|
|
156
|
+
.handleConfirmRemove=${() => this.handleConfirmRemove()}
|
|
157
|
+
.closeConfirmationPopup=${() => this.closeConfirmationPopup()}
|
|
158
|
+
></delete-popup>
|
|
159
|
+
`
|
|
160
|
+
: ''}
|
|
161
|
+
</div>
|
|
162
|
+
`;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
customElements.define('reactions-container', ReactionsContainer);
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import './ReactionsContainer';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/ReactionsContainer',
|
|
5
|
+
component: 'reactions-container',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
argTypes: {
|
|
8
|
+
bgColor: { control: 'color' },
|
|
9
|
+
border: { control: 'text' },
|
|
10
|
+
borderRadius: { control: 'text' },
|
|
11
|
+
color: { control: 'color' },
|
|
12
|
+
height: { control: 'text' },
|
|
13
|
+
width: { control: 'text' },
|
|
14
|
+
reactions: { control: 'object' },
|
|
15
|
+
reactionsUser: {control: 'array'}
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// Story 1: Default Reactions
|
|
20
|
+
export const DefaultReactions = {
|
|
21
|
+
args: {
|
|
22
|
+
bgColor: '#222e35',
|
|
23
|
+
border: '1px solid #e0e0e0',
|
|
24
|
+
borderRadius: '8px',
|
|
25
|
+
color: '#000000',
|
|
26
|
+
height: 'auto',
|
|
27
|
+
width: '300px',
|
|
28
|
+
reactionsUser: [
|
|
29
|
+
{
|
|
30
|
+
"lastSeen": 1743617499160,
|
|
31
|
+
"metaData": {},
|
|
32
|
+
"online": false,
|
|
33
|
+
"userId": "67d90a0cb218a3000168622d",
|
|
34
|
+
"userIdentifier": "tokyo@money.heist",
|
|
35
|
+
"userName": "tokyo",
|
|
36
|
+
"userProfileImageUrl": "https://vertigomag.co.uk/wp-content/uploads/2020/05/19-FACTS-ABOUT-TOKYO-FROM-MONEY-HEIST.jpg"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
reactions: [
|
|
40
|
+
{
|
|
41
|
+
emojiId: "crying",
|
|
42
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
43
|
+
src: "😭"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
emojiId: "yes",
|
|
47
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
48
|
+
src: "👍"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// Story 2: Multiple Reactions
|
|
55
|
+
export const MultipleReactions = {
|
|
56
|
+
args: {
|
|
57
|
+
...DefaultReactions.args,
|
|
58
|
+
reactions: [
|
|
59
|
+
{
|
|
60
|
+
emojiId: "heart",
|
|
61
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
62
|
+
src: "❤️"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
emojiId: "laugh",
|
|
66
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
67
|
+
src: "😂"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
emojiId: "fire",
|
|
71
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
72
|
+
src: "🔥"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
emojiId: "clap",
|
|
76
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
77
|
+
src: "👏"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// Story 3: No Reactions
|
|
84
|
+
export const NoReactions = {
|
|
85
|
+
args: {
|
|
86
|
+
...DefaultReactions.args,
|
|
87
|
+
reactions: []
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// Story 4: Custom Styled
|
|
92
|
+
export const CustomStyled = {
|
|
93
|
+
args: {
|
|
94
|
+
...DefaultReactions.args,
|
|
95
|
+
bgColor: '#f0f8ff',
|
|
96
|
+
border: '2px solid #4a90e2',
|
|
97
|
+
borderRadius: '12px',
|
|
98
|
+
width: '400px',
|
|
99
|
+
reactions: [
|
|
100
|
+
{
|
|
101
|
+
emojiId: "star",
|
|
102
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
103
|
+
src: "⭐"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
emojiId: "rocket",
|
|
107
|
+
messageId: ["67d90a0cb218a3000168622d"],
|
|
108
|
+
src: "🚀"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
package/dist/collection/stories/Components/ReactionsContainer/ReactionsInfoCard/ReactionsInfoCard.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { WEB_CONTENT } from '../../../../constants/content';
|
|
3
|
+
import { Image } from '../../Image/Image';
|
|
4
|
+
class ReactionsInfoCard extends LitElement {
|
|
5
|
+
static properties = {
|
|
6
|
+
reactionType: { type: String },
|
|
7
|
+
userName: { type: String },
|
|
8
|
+
userProfileImage: { type: String },
|
|
9
|
+
isSelfReaction: { type: String },
|
|
10
|
+
|
|
11
|
+
bgColor: { type: String },
|
|
12
|
+
color: { type: String },
|
|
13
|
+
borderRadius: { type: String },
|
|
14
|
+
border: { type: String },
|
|
15
|
+
fontSize: { type: String },
|
|
16
|
+
height: { type: String },
|
|
17
|
+
width: { type: String },
|
|
18
|
+
|
|
19
|
+
imageRadius: { type: String },
|
|
20
|
+
imageHeight: { type: String },
|
|
21
|
+
imageWidth: { type: String },
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
static styles = css`
|
|
25
|
+
.reaction-info-card-container {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
padding: 12px;
|
|
30
|
+
border-radius: 4px;
|
|
31
|
+
gap: 10px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.reaction-info-username-container {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
flex: 1;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
handleRemoveClick() {
|
|
42
|
+
this.dispatchEvent(new CustomEvent('remove-click', {
|
|
43
|
+
detail: {
|
|
44
|
+
reactionType: this.reactionType,
|
|
45
|
+
},
|
|
46
|
+
bubbles: true,
|
|
47
|
+
composed: true
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
const emojis = [
|
|
52
|
+
{ id: 'star', src: '⭐' },
|
|
53
|
+
{ id: 'crying_with_laughter', src: '😂' },
|
|
54
|
+
{ id: 'yes', src: '👍' },
|
|
55
|
+
{ id: 'no', src: '❌' },
|
|
56
|
+
{ id: 'party', src: '🥳' },
|
|
57
|
+
{ id: 'high_five', src: '✋' },
|
|
58
|
+
{ id: 'rock', src: '🪨' },
|
|
59
|
+
{ id: 'facepal', src: '🤦' },
|
|
60
|
+
{ id: 'sarcastic', src: '🙄' },
|
|
61
|
+
{ id: 'talking_too_much', src: '🤫' },
|
|
62
|
+
{ id: 'crying', src: '😭' },
|
|
63
|
+
{ id: 'heart', src: '❤️' },
|
|
64
|
+
{ id: 'surprised', src: '😮' },
|
|
65
|
+
{ id: 'bowing', src: '🙇' },
|
|
66
|
+
];
|
|
67
|
+
const matchingEmoji = emojis.find(emoji => emoji.id === this.reactionType)?.src || '';
|
|
68
|
+
|
|
69
|
+
const emojiSize = `calc(${this.fontSize} + 4px)`;
|
|
70
|
+
const seondarySize = `calc(${this.fontSize} - 6px)`;
|
|
71
|
+
return html`
|
|
72
|
+
<div
|
|
73
|
+
class="reaction-info-card-container"
|
|
74
|
+
style="background-color: ${this.bgColor}; color: ${this.color}; border: ${this.border};
|
|
75
|
+
border-radius: ${this.borderRadius}; height: ${this.height}; width: ${this.width};"
|
|
76
|
+
>
|
|
77
|
+
<div class="reaction-info-user-image">
|
|
78
|
+
${Image({
|
|
79
|
+
src: this.userProfileImage,
|
|
80
|
+
height: this.imageHeight,
|
|
81
|
+
width: this.imageWidth,
|
|
82
|
+
borderRadius: this.imageRadius,
|
|
83
|
+
objectFit: 'cover',
|
|
84
|
+
})}
|
|
85
|
+
</div>
|
|
86
|
+
<div class="reaction-info-username-container">
|
|
87
|
+
<div class="reaction-info-username" style="font-size: ${this.fontSize}">${this.userName}</div>
|
|
88
|
+
${this.isSelfReaction
|
|
89
|
+
? html`<div @click=${this.handleRemoveClick} style="cursor: pointer; font-size: ${seondarySize}">${WEB_CONTENT.REACTIONS.REMOVE_REACTION_ON_TAP}</div>`
|
|
90
|
+
: null}
|
|
91
|
+
</div>
|
|
92
|
+
<div class="reaction-info-emoji" style="font-size: ${emojiSize}">${matchingEmoji}</div>
|
|
93
|
+
</div>
|
|
94
|
+
`;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
customElements.define('reactions-info-card', ReactionsInfoCard);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import './ReactionsInfoCard';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/ReactionsInfoCard',
|
|
5
|
+
component: 'reactions-info-card',
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
argTypes: {
|
|
8
|
+
reactionType: { control: 'text' },
|
|
9
|
+
userName: { control: 'text' },
|
|
10
|
+
userProfileImage: { control: 'text' },
|
|
11
|
+
isSelfReaction: { control: 'boolean' },
|
|
12
|
+
|
|
13
|
+
bgColor: { control: 'color' },
|
|
14
|
+
color: { control: 'color' },
|
|
15
|
+
borderRadius: { control: 'text' },
|
|
16
|
+
border: { control: 'text' },
|
|
17
|
+
fontSize: { control: 'text' },
|
|
18
|
+
|
|
19
|
+
imageRadius: { control: 'text' },
|
|
20
|
+
imageHeight: { control: 'text' },
|
|
21
|
+
imageWidth: { control: 'text' },
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const SelfReaction = {
|
|
26
|
+
args: {
|
|
27
|
+
reactionType: 'star',
|
|
28
|
+
userName: 'tokyo',
|
|
29
|
+
userProfileImage: 'https://vertigomag.co.uk/wp-content/uploads/2020/05/19-FACTS-ABOUT-TOKYO-FROM-MONEY-HEIST.jpg',
|
|
30
|
+
isSelfReaction: true,
|
|
31
|
+
bgColor: '#FF5733',
|
|
32
|
+
color: 'white',
|
|
33
|
+
borderRadius: '12px',
|
|
34
|
+
fontSize: '22px',
|
|
35
|
+
imageRadius: '50%',
|
|
36
|
+
imageHeight: '60px',
|
|
37
|
+
imageWidth: '60px',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const OpponentReaction = {
|
|
42
|
+
args: {
|
|
43
|
+
reactionType: 'star',
|
|
44
|
+
userName: 'tokyo',
|
|
45
|
+
userProfileImage: 'https://vertigomag.co.uk/wp-content/uploads/2020/05/19-FACTS-ABOUT-TOKYO-FROM-MONEY-HEIST.jpg',
|
|
46
|
+
isSelfReaction: false,
|
|
47
|
+
bgColor: '#4690c2',
|
|
48
|
+
color: 'white',
|
|
49
|
+
borderRadius: '12px',
|
|
50
|
+
fontSize: '22px',
|
|
51
|
+
imageRadius: '50%',
|
|
52
|
+
imageHeight: '60px',
|
|
53
|
+
imageWidth: '60px',
|
|
54
|
+
},
|
|
55
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
class BlueReadMark extends LitElement {
|
|
4
|
+
static properties = {
|
|
5
|
+
svgFillColor: { type: String },
|
|
6
|
+
svgHeight: { type: String },
|
|
7
|
+
svgWidth: { type: String },
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
return html`
|
|
12
|
+
|
|
13
|
+
<svg width=${this.svgWidth || '20px'} height=${this.svgHeight || '20px'} viewBox="0 -0.5 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
|
15
|
+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
|
16
|
+
<g id="SVGRepo_iconCarrier">
|
|
17
|
+
<path
|
|
18
|
+
d="M5.03033 11.4697C4.73744 11.1768 4.26256 11.1768 3.96967 11.4697C3.67678 11.7626 3.67678 12.2374 3.96967 12.5303L5.03033 11.4697ZM8.5 16L7.96967 16.5303C8.26256 16.8232 8.73744 16.8232 9.03033 16.5303L8.5 16ZM17.0303 8.53033C17.3232 8.23744 17.3232 7.76256 17.0303 7.46967C16.7374 7.17678 16.2626 7.17678 15.9697 7.46967L17.0303 8.53033ZM9.03033 11.4697C8.73744 11.1768 8.26256 11.1768 7.96967 11.4697C7.67678 11.7626 7.67678 12.2374 7.96967 12.5303L9.03033 11.4697ZM12.5 16L11.9697 16.5303C12.2626 16.8232 12.7374 16.8232 13.0303 16.5303L12.5 16ZM21.0303 8.53033C21.3232 8.23744 21.3232 7.76256 21.0303 7.46967C20.7374 7.17678 20.2626 7.17678 19.9697 7.46967L21.0303 8.53033ZM3.96967 12.5303L7.96967 16.5303L9.03033 15.4697L5.03033 11.4697L3.96967 12.5303ZM9.03033 16.5303L17.0303 8.53033L15.9697 7.46967L7.96967 15.4697L9.03033 16.5303ZM7.96967 12.5303L11.9697 16.5303L13.0303 15.4697L9.03033 11.4697L7.96967 12.5303ZM13.0303 16.5303L21.0303 8.53033L19.9697 7.46967L11.9697 15.4697L13.0303 16.5303Z"
|
|
19
|
+
fill=${this.svgFillColor || '#00A2F3'}
|
|
20
|
+
></path>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
customElements.define('blue-read-mark', BlueReadMark);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import './BlueReadMark';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Atoms/BlueReadMark',
|
|
6
|
+
component: 'blue-read-mark',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
svgFillColor: { control: 'text' },
|
|
10
|
+
svgHeight: { control: 'text' },
|
|
11
|
+
svgWidth: { type: 'text' },
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
render: args => html`
|
|
15
|
+
<blue-read-mark
|
|
16
|
+
.svgFillColor = ${args.svgFillColor}
|
|
17
|
+
.svgHeight = ${args.svgHeight}
|
|
18
|
+
.svgWidth= ${args.svgWidth}
|
|
19
|
+
>
|
|
20
|
+
</blue-read-mark>
|
|
21
|
+
`,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const Default = {
|
|
25
|
+
args:{
|
|
26
|
+
|
|
27
|
+
},
|
|
28
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
class ClockMark extends LitElement {
|
|
4
|
+
static properties = {
|
|
5
|
+
svgFillColor: { type: String },
|
|
6
|
+
svgHeight: { type: String },
|
|
7
|
+
svgWidth: { type: String },
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
render() {
|
|
11
|
+
return html`
|
|
12
|
+
<svg fill=${this.svgFillColor || '#808080'} width=${this.svgWidth || '14px'} height=${this.svgHeight || '14px'} viewBox="0 0 24 24" data-name="Layer 1" id="Layer_1" xmlns="http://www.w3.org/2000/svg">
|
|
13
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
|
|
14
|
+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
|
|
15
|
+
<g id="SVGRepo_iconCarrier">
|
|
16
|
+
<title></title>
|
|
17
|
+
<path
|
|
18
|
+
d="M12,13.41,13.41,12,8.46,7.05,7.05,8.46Zm7.07-8.48A9.93,9.93,0,0,0,12,2H11V6h2V4.06A8,8,0,1,1,6.34,6.34l.71-.7L5.64,4.22l-.71.71A10,10,0,1,0,19.07,19.07a10,10,0,0,0,0-14.14Z"
|
|
19
|
+
></path>
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
customElements.define('clock-mark', ClockMark);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import './ClockMark';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Atoms/ClockMark',
|
|
6
|
+
component: 'clock-mark',
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
svgFillColor: { control: 'text' },
|
|
10
|
+
svgHeight: { control: 'text' },
|
|
11
|
+
svgWidth: { type: 'text' },
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
render: args => html`
|
|
15
|
+
<clock-mark
|
|
16
|
+
.svgFillColor = ${args.svgFillColor}
|
|
17
|
+
.svgHeight = ${args.svgHeight}
|
|
18
|
+
.svgWidth= ${args.svgWidth}
|
|
19
|
+
>
|
|
20
|
+
</clock-mark>
|
|
21
|
+
`,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export const Default = {
|
|
26
|
+
args: {
|
|
27
|
+
svgFillColor: '#808080',
|
|
28
|
+
svgHeight: '14px',
|
|
29
|
+
svgWidth: '14px',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
|