@zohoim/chat-components 0.0.13 → 0.0.14
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/es/ActionIcon/ActionIcon.js +57 -35
- package/es/ActionIcon/css/ActionIcon.module.css +4 -23
- package/es/ActionIcon/props/defaultProps.js +4 -2
- package/es/ActionIcon/props/propTypes.js +10 -3
- package/es/ActionIconWrapper/ActionIconWrapper.js +49 -0
- package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +27 -0
- package/es/ActionIconWrapper/index.js +1 -0
- package/es/{MediaControls → ActionIconWrapper}/props/defaultProps.js +3 -3
- package/es/ActionIconWrapper/props/propTypes.js +11 -0
- package/es/AttachmentBubble/AttachmentBubble.js +28 -28
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +16 -15
- package/es/AttachmentBubble/props/defaultProps.js +2 -2
- package/es/AttachmentBubble/props/propTypes.js +10 -5
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +7 -19
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +20 -16
- package/es/AttachmentBubbleInfo/props/defaultProps.js +1 -1
- package/es/AttachmentBubbleInfo/props/propTypes.js +3 -3
- package/es/AttachmentIcon/AttachmentIcon.js +47 -0
- package/es/AttachmentIcon/css/AttachmentIcon.module.css +4 -0
- package/es/AttachmentIcon/index.js +1 -0
- package/es/{im/IMAttachmentIcon → AttachmentIcon}/props/defaultProps.js +3 -3
- package/es/AttachmentIcon/props/propTypes.js +11 -0
- package/es/{im/IMAttachmentIcon/IMAttachmentIcon.js → AttachmentIcon/utils/getAttachmentIconComponent.js} +10 -40
- package/es/Audio/Audio.js +14 -36
- package/es/Audio/css/Audio.module.css +3 -3
- package/es/Audio/props/defaultProps.js +2 -3
- package/es/Audio/props/propTypes.js +3 -4
- package/es/AudioBubble/AudioBubble.js +25 -42
- package/es/AudioBubble/props/defaultProps.js +2 -4
- package/es/AudioBubble/props/propTypes.js +10 -7
- package/es/Fonts/puviFont.module.css +55 -54
- package/es/ImageBubble/ImageBubble.js +20 -20
- package/es/ImageBubble/css/ImageBubble.module.css +8 -11
- package/es/ImageBubble/props/defaultProps.js +1 -1
- package/es/ImageBubble/props/propTypes.js +5 -3
- package/es/InfoBubble/InfoBubble.js +6 -8
- package/es/InfoBubble/props/defaultProps.js +1 -1
- package/es/LazyLoadImage/LazyLoadImage.js +6 -16
- package/es/LazyLoadImage/css/LazyLoadImage.module.css +1 -0
- package/es/LazyLoadImage/props/defaultProps.js +1 -1
- package/es/LazyLoadImage/props/propTypes.js +3 -3
- package/es/LocationBubble/LocationBubble.js +15 -33
- package/es/LocationBubble/css/LocationBubble.module.css +11 -11
- package/es/LocationBubble/props/defaultProps.js +1 -1
- package/es/LocationBubble/props/propTypes.js +2 -2
- package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +59 -0
- package/es/MediaBubbleWrapper/css/MediaBubbleWrapper.module.css +3 -0
- package/es/MediaBubbleWrapper/index.js +1 -0
- package/es/MediaBubbleWrapper/props/defaultProps.js +7 -0
- package/es/MediaBubbleWrapper/props/propTypes.js +16 -0
- package/es/Message/Message.js +59 -37
- package/es/Message/props/defaultProps.js +3 -3
- package/es/Message/props/propTypes.js +17 -38
- package/es/MessageAction/MessageAction.js +31 -18
- package/es/MessageAction/props/defaultProps.js +4 -4
- package/es/MessageAction/props/propTypes.js +11 -8
- package/es/MessageActions/MessageActions.js +54 -96
- package/es/MessageActions/css/MessageActions.module.css +2 -9
- package/es/MessageActions/props/defaultProps.js +2 -4
- package/es/MessageActions/props/propTypes.js +13 -19
- package/es/MessageActionsMore/MessageActionsMore.js +43 -35
- package/es/MessageActionsMore/css/MessageActionsMore.module.css +8 -5
- package/es/MessageActionsMore/props/defaultProps.js +3 -2
- package/es/MessageActionsMore/props/propTypes.js +3 -2
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +36 -44
- package/es/MessageActionsWrapper/css/MessageActionsWrapper.module.css +1 -1
- package/es/MessageActionsWrapper/props/defaultProps.js +4 -5
- package/es/MessageActionsWrapper/props/propTypes.js +7 -4
- package/es/MessageAvatar/MessageAvatar.js +11 -19
- package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
- package/es/MessageAvatar/props/defaultProps.js +2 -6
- package/es/MessageAvatar/props/propTypes.js +5 -5
- package/es/MessageBox/MessageBox.js +24 -25
- package/es/MessageBox/css/MessageBox.module.css +12 -14
- package/es/MessageBox/css/cssJSLogic.js +1 -21
- package/es/MessageBox/props/defaultProps.js +1 -3
- package/es/MessageBox/props/propTypes.js +8 -7
- package/es/MessageBubble/MessageBubble.js +61 -38
- package/es/MessageBubble/css/MessageBubble.module.css +11 -8
- package/es/MessageBubble/css/cssJSLogic.js +10 -26
- package/es/MessageBubble/props/defaultProps.js +1 -1
- package/es/MessageBubble/props/propTypes.js +7 -7
- package/es/MessageStatus/MessageStatus.js +11 -11
- package/es/MessageStatus/css/MessageStatus.module.css +1 -1
- package/es/MessageStatus/css/cssJSLogic.js +13 -9
- package/es/MessageStatus/props/defaultProps.js +1 -1
- package/es/MessageStatus/props/propTypes.js +4 -14
- package/es/MoreActionItem/MoreActionItem.js +21 -33
- package/es/MoreActionItem/css/MoreActionItem.module.css +5 -11
- package/es/MoreActionItem/props/defaultProps.js +1 -5
- package/es/MoreActionItem/props/propTypes.js +6 -5
- package/es/ReplyBubble/ReplyBubble.js +59 -28
- package/es/ReplyBubble/css/ReplyBubble.module.css +17 -0
- package/es/ReplyBubble/props/defaultProps.js +3 -4
- package/es/ReplyBubble/props/propTypes.js +15 -8
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +11 -22
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +38 -38
- package/es/ReplyBubbleContent/props/defaultProps.js +1 -1
- package/es/ReplyBubbleContent/props/propTypes.js +4 -4
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +25 -31
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +4 -7
- package/es/ReplyBubbleHeader/props/defaultProps.js +2 -4
- package/es/ReplyBubbleHeader/props/propTypes.js +3 -2
- package/es/TextBubble/TextBubble.js +11 -29
- package/es/TextBubble/css/TextBubble.module.css +13 -9
- package/es/TextBubble/props/defaultProps.js +2 -5
- package/es/TextBubble/props/propTypes.js +3 -4
- package/es/Theme/{DeskAssets.js → ThemeAssets.js} +10 -6
- package/es/Theme/ThemeWrapper.js +54 -57
- package/es/Theme/{ToolttipWrapper.js → TooltipWrapper.js} +29 -25
- package/es/Theme/constants/index.js +1 -4
- package/es/Theme/crm/dark/blueFanTheme.js +5 -5
- package/es/Theme/crm/dark/blueTheme.js +5 -5
- package/es/Theme/crm/dark/commonColorVariable.js +5 -5
- package/es/Theme/crm/dark/darkBlueTheme.js +5 -5
- package/es/Theme/crm/dark/darkGreyTheme.js +5 -5
- package/es/Theme/crm/dark/greenTheme.js +5 -5
- package/es/Theme/crm/dark/orangeTheme.js +5 -5
- package/es/Theme/crm/dark/pinkTheme.js +5 -5
- package/es/Theme/crm/dark/tealTheme.js +5 -5
- package/es/Theme/crm/dark/whiteTheme.js +5 -5
- package/es/Theme/crm/light/blueFanTheme.js +5 -5
- package/es/Theme/crm/light/blueTheme.js +3 -3
- package/es/Theme/crm/light/commonColorVariable.js +3 -3
- package/es/Theme/crm/light/darkBlueTheme.js +5 -5
- package/es/Theme/crm/light/darkGreyTheme.js +5 -5
- package/es/Theme/crm/light/greenTheme.js +3 -3
- package/es/Theme/crm/light/orangeTheme.js +3 -3
- package/es/Theme/crm/light/pinkTheme.js +3 -3
- package/es/Theme/crm/light/tealTheme.js +3 -3
- package/es/Theme/crm/light/whiteTheme.js +5 -5
- package/es/Theme/crm/pureDark/blueFanTheme.js +5 -5
- package/es/Theme/crm/pureDark/blueTheme.js +5 -5
- package/es/Theme/crm/pureDark/commonColorVariable.js +3 -3
- package/es/Theme/crm/pureDark/darkBlueTheme.js +5 -5
- package/es/Theme/crm/pureDark/darkGreyTheme.js +5 -5
- package/es/Theme/crm/pureDark/greenTheme.js +5 -5
- package/es/Theme/crm/pureDark/orangeTheme.js +5 -5
- package/es/Theme/crm/pureDark/pinkTheme.js +5 -5
- package/es/Theme/crm/pureDark/tealTheme.js +5 -5
- package/es/Theme/crm/pureDark/whiteTheme.js +5 -5
- package/es/Theme/css/TooltipWrapper.module.css +2 -2
- package/es/Theme/props/defaultProps.js +2 -3
- package/es/Theme/props/propTypes.js +5 -6
- package/es/Theme/{desk/commonDeskColorVariable.js → themeVariables/commonThemeColorVariable.js} +2 -3
- package/es/Theme/{desk → themeVariables}/dark/blueTheme.js +11 -11
- package/es/Theme/{desk → themeVariables}/dark/commonColorVariable.js +1 -1
- package/es/Theme/{desk → themeVariables}/dark/greenTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/dark/orangeTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/dark/redTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/dark/yellowTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/light/blueTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/light/commonColorVariable.js +1 -1
- package/es/Theme/{desk → themeVariables}/light/greenTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/light/orangeTheme.js +6 -6
- package/es/Theme/{desk → themeVariables}/light/redTheme.js +6 -6
- package/es/Theme/{desk → themeVariables}/light/yellowTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/pureDark/blueTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/pureDark/commonColorVariable.js +1 -1
- package/es/Theme/{desk → themeVariables}/pureDark/greenTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/pureDark/orangeTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/pureDark/redTheme.js +7 -7
- package/es/Theme/{desk → themeVariables}/pureDark/yellowTheme.js +7 -7
- package/es/Theme/utils/combineConfigurations.js +17 -0
- package/es/Theme/utils/flatVariables.js +12 -0
- package/es/Theme/utils/getCustomizedCssVariables.js +19 -0
- package/es/Theme/utils/getThemeConfigurations.js +47 -175
- package/es/Theme/utils/getWrapperDivProps.js +12 -0
- package/es/Video/Video.js +13 -45
- package/es/Video/css/Video.module.css +2 -7
- package/es/Video/props/defaultProps.js +2 -3
- package/es/Video/props/propTypes.js +3 -4
- package/es/VideoBubble/VideoBubble.js +31 -35
- package/es/VideoBubble/css/VideoBubble.module.css +4 -4
- package/es/VideoBubble/props/defaultProps.js +2 -3
- package/es/VideoBubble/props/propTypes.js +11 -7
- package/es/icons/create-icon-components.js +30 -0
- package/es/icons/icon.template.js +9 -8
- package/es/icons/iconSrc/common/index.js +1 -2
- package/es/im/ArticleBubble/ArticleBubble.js +66 -0
- package/es/{ArticleBubble → im/ArticleBubble}/css/ArticleBubble.module.css +9 -10
- package/es/{ArticleBubble → im/ArticleBubble}/props/defaultProps.js +1 -1
- package/es/im/ArticleBubble/props/propTypes.js +13 -0
- package/es/im/IMAutoMessageInfo/IMAutoMessageInfo.js +10 -20
- package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +2 -3
- package/es/im/IMAutoMessageInfo/props/defaultProps.js +1 -1
- package/es/im/IMAutoMessageInfo/props/propTypes.js +11 -9
- package/es/im/IMInfoBubble/IMInfoBubble.js +6 -8
- package/es/im/IMInfoBubble/props/defaultProps.js +1 -1
- package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +31 -38
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +5 -8
- package/es/im/IMIntegrationIcon/css/cssJSLogic.js +9 -13
- package/es/im/IMIntegrationIcon/index.js +1 -2
- package/es/im/IMIntegrationIcon/props/defaultProps.js +6 -4
- package/es/im/IMIntegrationIcon/props/propTypes.js +6 -17
- package/es/im/IMMessage/IMMessage.js +76 -91
- package/es/im/IMMessage/props/defaultProps.js +1 -10
- package/es/im/IMMessage/props/propTypes.js +49 -96
- package/es/im/IMMessageContent/IMMessageContent.js +74 -65
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +1 -1
- package/es/im/IMMessageContent/props/defaultProps.js +2 -3
- package/es/im/IMMessageContent/props/propTypes.js +28 -23
- package/es/im/IMMessageMeta/IMMessageMeta.js +26 -21
- package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +15 -4
- package/es/im/IMMessageMeta/css/cssJSLogic.js +11 -3
- package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
- package/es/im/IMMessageMeta/props/propTypes.js +17 -12
- package/es/im/IMReplyBubble/IMReplyBubble.js +20 -59
- package/es/im/IMReplyBubble/props/defaultProps.js +2 -4
- package/es/im/IMReplyBubble/props/propTypes.js +16 -14
- package/es/im/IMTextBubble/IMTextBubble.js +15 -31
- package/es/im/IMTextBubble/props/defaultProps.js +3 -9
- package/es/im/IMTextBubble/props/propTypes.js +22 -8
- package/es/im/IMTicketLink/IMTicketLink.js +13 -11
- package/es/im/IMTicketLink/css/IMTicketLink.module.css +3 -4
- package/es/im/IMTicketLink/props/defaultProps.js +1 -1
- package/es/im/IMTicketLink/props/propTypes.js +4 -3
- package/es/im/index.js +1 -9
- package/es/index.js +4 -6
- package/package.json +32 -14
- package/es/ActionIcon/css/cssJSLogic.js +0 -10
- package/es/ArticleBubble/ArticleBubble.js +0 -70
- package/es/ArticleBubble/css/cssJSLogic.js +0 -34
- package/es/ArticleBubble/props/propTypes.js +0 -10
- package/es/AttachmentBubble/css/cssJSLogic.js +0 -18
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +0 -18
- package/es/Audio/css/cssJSLogic.js +0 -14
- package/es/AudioBubble/css/AudioBubble.module.css +0 -3
- package/es/AudioBubble/css/cssJSLogic.js +0 -20
- package/es/ImageBubble/css/cssJSLogic.js +0 -22
- package/es/LazyLoadImage/css/cssJSLogic.js +0 -10
- package/es/LocationBubble/css/cssJSLogic.js +0 -30
- package/es/MediaControls/MediaControls.js +0 -59
- package/es/MediaControls/css/MediaControls.module.css +0 -1
- package/es/MediaControls/css/cssJSLogic.js +0 -22
- package/es/MediaControls/index.js +0 -1
- package/es/MediaControls/props/propTypes.js +0 -11
- package/es/Message/css/Message.module.css +0 -0
- package/es/Message/css/cssJSLogic.js +0 -10
- package/es/MessageAction/css/MessageAction.module.css +0 -0
- package/es/MessageAction/css/cssJSLogic.js +0 -0
- package/es/MessageActions/css/cssJSLogic.js +0 -20
- package/es/MessageActionsMore/css/cssJSLogic.js +0 -28
- package/es/MessageActionsWrapper/css/cssJSLogic.js +0 -10
- package/es/MessageActionsWrapper/props/propConstants.js +0 -7
- package/es/MessageAvatar/css/cssJSLogic.js +0 -18
- package/es/MessageBubble/props/propConstants.js +0 -6
- package/es/MoreActionItem/css/cssJSLogic.js +0 -27
- package/es/ReplyBubble/css/cssJSLogic.js +0 -10
- package/es/ReplyBubbleContent/css/cssJSLogic.js +0 -22
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +0 -18
- package/es/TextBubble/css/cssJSLogic.js +0 -18
- package/es/Theme/css/cssJSLogic.js +0 -14
- package/es/Video/css/cssJSLogic.js +0 -14
- package/es/VideoBubble/css/cssJSLogic.js +0 -10
- package/es/icons/factory/actions/convertTicket.svg +0 -21
- package/es/icons/factory/common/quote.svg +0 -1
- package/es/icons/iconSrc/actions/ConvertTicket.js +0 -25
- package/es/icons/iconSrc/actions/index.js +0 -1
- package/es/icons/iconSrc/common/Quote.js +0 -17
- package/es/im/IMArticleBubble/IMArticleBubble.js +0 -54
- package/es/im/IMArticleBubble/css/IMArticleBubble.module.css +0 -0
- package/es/im/IMArticleBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMArticleBubble/index.js +0 -1
- package/es/im/IMArticleBubble/props/defaultProps.js +0 -8
- package/es/im/IMArticleBubble/props/propTypes.js +0 -14
- package/es/im/IMAttachmentBubble/IMAttachmentBubble.js +0 -62
- package/es/im/IMAttachmentBubble/css/IMAttachmentBubble.module.css +0 -1
- package/es/im/IMAttachmentBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMAttachmentBubble/index.js +0 -1
- package/es/im/IMAttachmentBubble/props/defaultProps.js +0 -10
- package/es/im/IMAttachmentBubble/props/propTypes.js +0 -16
- package/es/im/IMAttachmentIcon/css/IMAttachmentIcon.module.css +0 -4
- package/es/im/IMAttachmentIcon/css/cssJSLogic.js +0 -16
- package/es/im/IMAttachmentIcon/index.js +0 -1
- package/es/im/IMAttachmentIcon/props/propTypes.js +0 -26
- package/es/im/IMAudioBubble/IMAudioBubble.js +0 -62
- package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
- package/es/im/IMAudioBubble/css/cssJSLogic.js +0 -20
- package/es/im/IMAudioBubble/index.js +0 -1
- package/es/im/IMAudioBubble/props/defaultProps.js +0 -11
- package/es/im/IMAudioBubble/props/propTypes.js +0 -17
- package/es/im/IMAutoMessageInfo/css/cssJSLogic.js +0 -10
- package/es/im/IMDateTime/IMDateTime.js +0 -40
- package/es/im/IMDateTime/css/IMDateTime.module.css +0 -10
- package/es/im/IMDateTime/css/cssJSLogic.js +0 -10
- package/es/im/IMDateTime/index.js +0 -1
- package/es/im/IMDateTime/props/defaultProps.js +0 -6
- package/es/im/IMDateTime/props/propTypes.js +0 -6
- package/es/im/IMImageBubble/IMImageBubble.js +0 -50
- package/es/im/IMImageBubble/css/IMImageBubble.module.css +0 -0
- package/es/im/IMImageBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMImageBubble/index.js +0 -1
- package/es/im/IMImageBubble/props/defaultProps.js +0 -7
- package/es/im/IMImageBubble/props/propTypes.js +0 -13
- package/es/im/IMIntegrationIcon/props/propConstants.js +0 -8
- package/es/im/IMLocationBubble/IMLocationBubble.js +0 -50
- package/es/im/IMLocationBubble/css/IMLocationBubble.module.css +0 -0
- package/es/im/IMLocationBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMLocationBubble/index.js +0 -1
- package/es/im/IMLocationBubble/props/defaultProps.js +0 -8
- package/es/im/IMLocationBubble/props/propTypes.js +0 -11
- package/es/im/IMMessage/css/IMMessage.module.css +0 -0
- package/es/im/IMMessage/css/cssJSLogic.js +0 -10
- package/es/im/IMMessageAvatar/IMMessageAvatar.js +0 -45
- package/es/im/IMMessageAvatar/css/IMMessageAvatar.module.css +0 -0
- package/es/im/IMMessageAvatar/css/cssJSLogic.js +0 -0
- package/es/im/IMMessageAvatar/index.js +0 -1
- package/es/im/IMMessageAvatar/props/defaultProps.js +0 -12
- package/es/im/IMMessageAvatar/props/propTypes.js +0 -53
- package/es/im/IMMessageContent/css/cssJSLogic.js +0 -10
- package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +0 -18
- package/es/im/IMReplyBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMTextBubble/css/IMTextBubble.module.css +0 -1
- package/es/im/IMTextBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMVideoBubble/IMVideoBubble.js +0 -61
- package/es/im/IMVideoBubble/css/IMVideoBubble.module.css +0 -1
- package/es/im/IMVideoBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMVideoBubble/index.js +0 -1
- package/es/im/IMVideoBubble/props/defaultProps.js +0 -11
- package/es/im/IMVideoBubble/props/propTypes.js +0 -17
- package/es/unused/AvatarSpace/AvatarSpace.js +0 -40
- package/es/unused/AvatarSpace/css/AvatarSpace.module.css +0 -1
- package/es/unused/AvatarSpace/css/cssJSLogic.js +0 -15
- package/es/unused/AvatarSpace/index.js +0 -1
- package/es/unused/AvatarSpace/props/defaultProps.js +0 -10
- package/es/unused/AvatarSpace/props/propConstants.js +0 -7
- package/es/unused/AvatarSpace/props/propTypes.js +0 -8
- package/es/unused/MessageBoxFooter/MessageBoxFooter.js +0 -39
- package/es/unused/MessageBoxFooter/css/MessageBoxFooter.module.css +0 -3
- package/es/unused/MessageBoxFooter/css/cssJSLogic.js +0 -10
- package/es/unused/MessageBoxFooter/index.js +0 -1
- package/es/unused/MessageBoxFooter/props/defaultProps.js +0 -5
- package/es/unused/MessageBoxFooter/props/propTypes.js +0 -6
- package/es/unused/MessageBoxHeader/MessageBoxHeader.js +0 -7
- package/es/unused/MessageBoxHeader/css/MessageBoxHeader.module.css +0 -0
- package/es/unused/MessageBoxHeader/css/cssJsLogic.js +0 -0
- package/es/unused/MessageBoxHeader/index.js +0 -2
- package/es/unused/MessageBoxHeader/props/defaultProps.js +0 -0
- package/es/unused/MessageBoxHeader/props/propTypes.js +0 -0
- package/es/unused/MessageWrapper/MessageWrapper.js +0 -36
- package/es/unused/MessageWrapper/css/MessageWrapper.module.css +0 -0
- package/es/unused/MessageWrapper/css/cssJSLogic.js +0 -10
- package/es/unused/MessageWrapper/index.js +0 -1
- package/es/unused/MessageWrapper/props/defaultProps.js +0 -6
- package/es/unused/MessageWrapper/props/propTypes.js +0 -6
- package/es/unused/TextMessage/DefaultActions.js +0 -60
- package/es/unused/TextMessage/TextMessage.js +0 -67
- package/es/unused/TextMessage/TextMessage1.js +0 -66
- package/es/unused/TextMessage/css/TextMessage.module.css +0 -5
- package/es/unused/TextMessage/css/cssJSLogic.js +0 -0
- package/es/unused/TextMessage/index.js +0 -1
- package/es/unused/TextMessage/props/defaultProps.js +0 -4
- package/es/unused/TextMessage/props/propConstants.js +0 -3
- package/es/unused/TextMessage/props/propTypes.js +0 -17
- package/es/unused/darkTheme.js +0 -9
- package/es/unused/defaultTheme.js +0 -33
- /package/es/{ArticleBubble → im/ArticleBubble}/index.js +0 -0
|
@@ -1,52 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
/* eslint-disable max-len */
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
2
|
|
|
4
3
|
/** ** Libraries *** */
|
|
5
4
|
import React from 'react';
|
|
6
|
-
|
|
7
|
-
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
9
|
-
|
|
10
5
|
/** ** Constants *** */
|
|
6
|
+
|
|
11
7
|
import imTextBubbleDefaultProps from './props/defaultProps';
|
|
12
8
|
import imTextBubblePropTypes from './props/propTypes';
|
|
9
|
+
import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
|
|
10
|
+
/** ** Components *** */
|
|
13
11
|
|
|
14
|
-
/** ** Methods *** */
|
|
15
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
16
|
-
|
|
17
|
-
/** ** Styles *** */
|
|
18
|
-
import style from './css/IMTextBubble.module.css';
|
|
19
12
|
import TextBubble from '../../TextBubble/TextBubble';
|
|
13
|
+
/** ** Hooks *** */
|
|
14
|
+
|
|
20
15
|
import useIMTextBubble from '@zohoim/chat-components-hooks/es/im/IMTextBubble/useIMTextBubble';
|
|
21
|
-
import QuoteIcon from '../../icons/iconSrc/common/Quote';
|
|
22
16
|
export default function IMTextBubble(props) {
|
|
23
17
|
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
moreText
|
|
18
|
+
moreText,
|
|
19
|
+
customProps
|
|
27
20
|
} = props;
|
|
21
|
+
const {
|
|
22
|
+
textBubbleProps = dummyObject
|
|
23
|
+
} = customProps;
|
|
28
24
|
const {
|
|
29
25
|
onLoadFullMessage,
|
|
30
26
|
sanitizedDisplayMessage,
|
|
31
|
-
isShowSeeMore
|
|
32
|
-
isShowQuote
|
|
27
|
+
isShowSeeMore
|
|
33
28
|
} = useIMTextBubble(props);
|
|
34
|
-
|
|
35
|
-
/* External customization */
|
|
36
|
-
const newStyle = useMergeStyle(style, customStyle);
|
|
37
|
-
/* CSS classnames added based on logic */
|
|
38
|
-
const {
|
|
39
|
-
imTextBubbleWrapperClass
|
|
40
|
-
} = cssJSLogic(props, newStyle);
|
|
41
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: imTextBubbleWrapperClass
|
|
43
|
-
}, isShowQuote ? /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(QuoteIcon, null)) : null, /*#__PURE__*/React.createElement(TextBubble, {
|
|
44
|
-
customStyle: textBubbleCustomStyle,
|
|
45
|
-
isShowMoreText: isShowSeeMore,
|
|
29
|
+
return /*#__PURE__*/React.createElement(TextBubble, _extends({
|
|
46
30
|
message: sanitizedDisplayMessage,
|
|
47
|
-
moreText: moreText,
|
|
31
|
+
moreText: isShowSeeMore ? moreText : '',
|
|
48
32
|
onClickMore: onLoadFullMessage
|
|
49
|
-
}));
|
|
33
|
+
}, textBubbleProps));
|
|
50
34
|
}
|
|
51
35
|
IMTextBubble.propTypes = imTextBubblePropTypes;
|
|
52
36
|
IMTextBubble.defaultProps = imTextBubbleDefaultProps;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
/** ** Constants *** */
|
|
2
|
-
import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
|
|
2
|
+
import { dummyObject } from '@zohoim/chat-components-utils/es/constants/emptyConstants';
|
|
3
3
|
import { TEXT_MESSAGE_MAX_LENGTH } from '@zohoim/chat-components-utils/es/constants/messageConstants';
|
|
4
4
|
const imTextBubbleDefaultProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
message: '',
|
|
8
|
-
fullMessage: '',
|
|
9
|
-
messageMaxLength: TEXT_MESSAGE_MAX_LENGTH,
|
|
10
|
-
fullContentURL: '',
|
|
11
|
-
messageId: '',
|
|
12
|
-
sessionId: ''
|
|
5
|
+
customProps: dummyObject,
|
|
6
|
+
messageMaxLength: TEXT_MESSAGE_MAX_LENGTH
|
|
13
7
|
};
|
|
14
8
|
export default imTextBubbleDefaultProps;
|
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
/** ** Libraries *** */
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
const imTextBubblePropTypes = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
messageDetails: PropTypes.shape({
|
|
5
|
+
displayMessage: PropTypes.string.isRequired,
|
|
6
|
+
attachment: PropTypes.shape({
|
|
7
|
+
name: PropTypes.string,
|
|
8
|
+
type: PropTypes.string
|
|
9
|
+
}),
|
|
10
|
+
contentType: PropTypes.string,
|
|
11
|
+
fullContentURL: PropTypes.string,
|
|
12
|
+
fullMessage: PropTypes.string,
|
|
13
|
+
id: PropTypes.string
|
|
14
|
+
}).isRequired,
|
|
15
|
+
customProps: PropTypes.shape({
|
|
16
|
+
textBubbleProps: PropTypes.object
|
|
17
|
+
}),
|
|
8
18
|
messageMaxLength: PropTypes.number,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
19
|
+
markDownOptions: PropTypes.shape({
|
|
20
|
+
applyLink: PropTypes.bool,
|
|
21
|
+
isRemoveUrl: PropTypes.bool
|
|
22
|
+
}),
|
|
23
|
+
moreText: PropTypes.string,
|
|
12
24
|
onLoadFullMessage: PropTypes.func,
|
|
13
|
-
|
|
25
|
+
sessionDetails: PropTypes.shape({
|
|
26
|
+
id: PropTypes.string
|
|
27
|
+
})
|
|
14
28
|
};
|
|
15
29
|
export default imTextBubblePropTypes;
|
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
/* eslint-disable @zohodesk/zsecurity/no-protocol-check */
|
|
2
|
-
/* eslint-disable react/jsx-no-bind */
|
|
3
|
-
/* eslint-disable max-len */
|
|
4
2
|
|
|
5
3
|
/** ** Libraries *** */
|
|
6
4
|
import React from 'react';
|
|
7
|
-
|
|
8
5
|
/** ** Hooks *** */
|
|
6
|
+
|
|
9
7
|
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
10
8
|
import useIMTicketLink from '@zohoim/chat-components-hooks/es/im/IMTicketLink/useIMTicketLink';
|
|
11
|
-
|
|
12
9
|
/** ** Constants *** */
|
|
10
|
+
|
|
13
11
|
import imTicketLinkDefaultProps from './props/defaultProps';
|
|
14
12
|
import imTicketLinkPropTypes from './props/propTypes';
|
|
15
|
-
|
|
16
13
|
/** ** Methods *** */
|
|
17
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
18
14
|
|
|
15
|
+
import cssJSLogic from './css/cssJSLogic';
|
|
19
16
|
/** ** Styles *** */
|
|
17
|
+
|
|
20
18
|
import style from './css/IMTicketLink.module.css';
|
|
21
19
|
export default function IMTicketLink(props) {
|
|
22
20
|
const {
|
|
23
|
-
customStyle
|
|
21
|
+
customStyle,
|
|
22
|
+
isDisabled
|
|
24
23
|
} = props;
|
|
25
24
|
const {
|
|
26
|
-
|
|
25
|
+
ticketUrl,
|
|
27
26
|
onClick,
|
|
28
27
|
ticketNumber
|
|
29
28
|
} = useIMTicketLink(props);
|
|
29
|
+
/* External CSS Customization */
|
|
30
30
|
|
|
31
|
-
/* External customization */
|
|
32
31
|
const newStyle = useMergeStyle(style, customStyle);
|
|
33
32
|
/* CSS classnames added based on logic */
|
|
33
|
+
|
|
34
34
|
const {
|
|
35
35
|
imTicketLinkClass
|
|
36
|
-
} = cssJSLogic(
|
|
36
|
+
} = cssJSLogic({
|
|
37
|
+
isDisabled
|
|
38
|
+
}, newStyle);
|
|
37
39
|
return ticketNumber ? /*#__PURE__*/React.createElement("a", {
|
|
38
40
|
className: imTicketLinkClass,
|
|
39
|
-
href:
|
|
41
|
+
href: ticketUrl,
|
|
40
42
|
onClick: onClick,
|
|
41
43
|
rel: "noopener noreferrer"
|
|
42
44
|
}, ticketNumber) : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
--imTicketLink-top_gap: var(--
|
|
3
|
-
--imTicketLink-font_size: var(--
|
|
4
|
-
--imTicketLink-max_width: var(--
|
|
2
|
+
--imTicketLink-top_gap: var(--zd_size5);
|
|
3
|
+
--imTicketLink-font_size: var(--zd_font_size12);
|
|
4
|
+
--imTicketLink-max_width: var(--zd_size150);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ticketNumber {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
white-space: nowrap;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
text-overflow: ellipsis;
|
|
16
|
-
|
|
17
16
|
margin-top: var(--imTicketLink-top_gap);
|
|
18
17
|
cursor: pointer;
|
|
19
18
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/** ** Libraries *** */
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
const imTicketLinkPropTypes = {
|
|
4
|
+
ticketNumber: PropTypes.string.isRequired,
|
|
4
5
|
customStyle: PropTypes.object,
|
|
5
|
-
|
|
6
|
+
isDisabled: PropTypes.bool,
|
|
6
7
|
onClick: PropTypes.func,
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
ticketId: PropTypes.string,
|
|
9
|
+
ticketUrl: PropTypes.string
|
|
9
10
|
};
|
|
10
11
|
export default imTicketLinkPropTypes;
|
package/es/im/index.js
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
export * from './IMIntegrationIcon';
|
|
2
|
-
export * from './IMMessageAvatar';
|
|
3
2
|
export * from './IMMessage';
|
|
4
|
-
export * from './IMDateTime';
|
|
5
3
|
export * from './IMTicketLink';
|
|
6
4
|
export * from './IMMessageMeta';
|
|
7
5
|
export * from './IMAutoMessageInfo';
|
|
8
6
|
export * from './IMMessageContent';
|
|
9
|
-
export * from './IMAudioBubble';
|
|
10
|
-
export * from './IMAttachmentBubble';
|
|
11
|
-
export * from './IMVideoBubble';
|
|
12
7
|
export * from './IMTextBubble';
|
|
13
8
|
export * from './IMInfoBubble';
|
|
14
|
-
export * from './IMAttachmentIcon';
|
|
15
9
|
export * from './IMReplyBubble';
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './IMLocationBubble';
|
|
18
|
-
export * from './IMArticleBubble';
|
|
10
|
+
export * from './ArticleBubble';
|
package/es/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export * from './MessageBubble';
|
|
2
|
-
|
|
3
|
-
// export * from './AvatarSpace';
|
|
4
2
|
export * from './MessageActionsWrapper';
|
|
5
3
|
export * from './MessageActions';
|
|
6
4
|
export * from './MessageBox';
|
|
7
5
|
export * from './ActionIcon';
|
|
6
|
+
export * from './ActionIconWrapper';
|
|
8
7
|
export * from './MessageActionsMore';
|
|
9
8
|
export * from './MessageAvatar';
|
|
10
9
|
export * from './MoreActionItem';
|
|
@@ -13,10 +12,10 @@ export * from './Theme';
|
|
|
13
12
|
export * from './Message';
|
|
14
13
|
export * from './AudioBubble';
|
|
15
14
|
export * from './AttachmentBubble';
|
|
15
|
+
export * from './AttachmentIcon';
|
|
16
16
|
export * from './VideoBubble';
|
|
17
17
|
export * from './ImageBubble';
|
|
18
18
|
export * from './TextBubble';
|
|
19
|
-
export * from './ArticleBubble';
|
|
20
19
|
export * from './LocationBubble';
|
|
21
20
|
export * from './InfoBubble';
|
|
22
21
|
export * from './AttachmentBubbleInfo';
|
|
@@ -27,9 +26,8 @@ export * from './ReplyBubbleHeader';
|
|
|
27
26
|
export * from './LazyLoadImage';
|
|
28
27
|
export * from './ReplyBubbleContent';
|
|
29
28
|
export * from './MessageStatus';
|
|
30
|
-
export * from './im';
|
|
31
|
-
|
|
32
|
-
// ... export other components
|
|
29
|
+
export * from './im'; // ... export other components
|
|
33
30
|
|
|
34
31
|
/** * CONSTANTS ** */
|
|
32
|
+
|
|
35
33
|
export * from './constants';
|
package/package.json
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/chat-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "Chat Components",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "react-cli build:component:es",
|
|
9
|
-
"build_watch": "
|
|
9
|
+
"build_watch": "npm run build -- -w",
|
|
10
10
|
"clean": "react-cli clean unittest coverage es result.json",
|
|
11
11
|
"rtl": "react-cli rtl ./src ./es",
|
|
12
|
-
"prepare": "npm run clean && npm run build && npm run rtl",
|
|
12
|
+
"prepare": "npm run clean && npm run build && npm run rtl && npm run cssVariableConvert",
|
|
13
13
|
"test": "react-cli test",
|
|
14
14
|
"test:debug": "react-cli test --runInBand --watch",
|
|
15
|
-
"create-icons": "node ./src/icons/create-icon-components --sourucePath=./factory --targetPath=./iconSrc"
|
|
15
|
+
"create-icons": "node ./src/icons/create-icon-components --sourucePath=./factory --targetPath=./iconSrc",
|
|
16
|
+
"cssVariableConvert": "react-cli variableConverter ./es ./es",
|
|
17
|
+
"variable:addignore": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
18
|
+
"variable:convert": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
19
|
+
"variable:check": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ../../node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
|
|
16
20
|
},
|
|
17
21
|
"author": "ZohoDesk - IM Team",
|
|
18
22
|
"license": "ISC",
|
|
@@ -26,22 +30,36 @@
|
|
|
26
30
|
],
|
|
27
31
|
"dependencies": {
|
|
28
32
|
"@zohodesk/components": "1.0.0-alpha-259",
|
|
29
|
-
"@zohodesk/datetimejs": "1.0.0-beta.8",
|
|
30
33
|
"@zohodesk/hooks": "1.3.12",
|
|
31
|
-
"@zohodesk/i18n": "1.0.0-beta.20",
|
|
32
34
|
"@zohodesk/icon": "1.3.12",
|
|
33
|
-
"@zohodesk/icons": "1.0.0-beta.118",
|
|
34
|
-
"@zohodesk/theme": "1.3.2",
|
|
35
|
-
"@zohodesk/theme-defaults": "1.3.12",
|
|
36
35
|
"@zohodesk/utils": "1.3.9",
|
|
37
36
|
"@zohodesk/variables": "1.0.0-beta.30",
|
|
38
37
|
"@zohodesk/virtualizer": "1.0.13",
|
|
39
|
-
"@zohoim/chat-components-hooks": "^0.0.
|
|
40
|
-
"@zohoim/chat-components-utils": "^0.0.
|
|
38
|
+
"@zohoim/chat-components-hooks": "^0.0.12",
|
|
39
|
+
"@zohoim/chat-components-utils": "^0.0.11"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
42
|
+
"@zohodesk-private/css-variable-migrator": "1.0.1",
|
|
43
|
+
"html-to-react": "1.6.0 ",
|
|
44
|
+
"jsdom": "22.1.0",
|
|
45
|
+
"react-to-jsx": "1.3.2"
|
|
45
46
|
},
|
|
46
|
-
"
|
|
47
|
+
"react-cli": {
|
|
48
|
+
"css": {
|
|
49
|
+
"plugins": {
|
|
50
|
+
"hasRTL": true,
|
|
51
|
+
"cssVariableReplacement": true
|
|
52
|
+
},
|
|
53
|
+
"patterns": {
|
|
54
|
+
"cssVariableReplacement": [
|
|
55
|
+
"**/src/**",
|
|
56
|
+
"**/lib/**",
|
|
57
|
+
"**/es/**",
|
|
58
|
+
"!**/node_modules/**"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"cssVariableReplacementConfig": "../../node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "de72d83a0b40cde9b34b122654601ec5c23c8e55"
|
|
47
65
|
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-no-bind */
|
|
2
|
-
/* eslint-disable max-len */
|
|
3
|
-
|
|
4
|
-
/** ** Libraries *** */
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
9
|
-
|
|
10
|
-
/** ** Constants *** */
|
|
11
|
-
import articleBubbleDefaultProps from './props/defaultProps';
|
|
12
|
-
import articleBubblePropTypes from './props/propTypes';
|
|
13
|
-
|
|
14
|
-
/** ** Methods *** */
|
|
15
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
16
|
-
|
|
17
|
-
/** ** Components *** */
|
|
18
|
-
import { Container } from '@zohodesk/components/es/Layout';
|
|
19
|
-
|
|
20
|
-
/** ** Styles *** */
|
|
21
|
-
import style from './css/ArticleBubble.module.css';
|
|
22
|
-
|
|
23
|
-
/** ** Icons *** */
|
|
24
|
-
import ArticleIcon from '../icons/iconSrc/common/Article';
|
|
25
|
-
export default function ArticleBubble(props) {
|
|
26
|
-
const {
|
|
27
|
-
customStyle,
|
|
28
|
-
bubbleInfo,
|
|
29
|
-
title,
|
|
30
|
-
summary
|
|
31
|
-
} = props;
|
|
32
|
-
|
|
33
|
-
/* External customization */
|
|
34
|
-
const newStyle = useMergeStyle(style, customStyle);
|
|
35
|
-
/* CSS classnames added based on logic */
|
|
36
|
-
const {
|
|
37
|
-
articleBubbleClass,
|
|
38
|
-
headerClass,
|
|
39
|
-
iconClass,
|
|
40
|
-
headerTextClass,
|
|
41
|
-
articleWrapperClass,
|
|
42
|
-
titleClass,
|
|
43
|
-
summaryClass
|
|
44
|
-
} = cssJSLogic(props, newStyle);
|
|
45
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: articleBubbleClass
|
|
47
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
48
|
-
align: "vertical",
|
|
49
|
-
alignBox: "row",
|
|
50
|
-
className: headerClass,
|
|
51
|
-
isCover: false
|
|
52
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: iconClass
|
|
54
|
-
}, /*#__PURE__*/React.createElement(ArticleIcon, {
|
|
55
|
-
customStyle: {
|
|
56
|
-
base: newStyle.articleIcon
|
|
57
|
-
}
|
|
58
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: headerTextClass
|
|
60
|
-
}, bubbleInfo)), /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: articleWrapperClass
|
|
62
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: titleClass
|
|
64
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: summaryClass
|
|
66
|
-
}, summary)));
|
|
67
|
-
}
|
|
68
|
-
ArticleBubble.propTypes = articleBubblePropTypes;
|
|
69
|
-
ArticleBubble.defaultProps = articleBubbleDefaultProps;
|
|
70
|
-
ArticleBubble.displayName = 'ArticleBubble';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const articleBubbleClass = compileClassNames({
|
|
5
|
-
[style.articleBubble]: true
|
|
6
|
-
});
|
|
7
|
-
const headerClass = compileClassNames({
|
|
8
|
-
[style.header]: true
|
|
9
|
-
});
|
|
10
|
-
const iconClass = compileClassNames({
|
|
11
|
-
[style.icon]: true
|
|
12
|
-
});
|
|
13
|
-
const headerTextClass = compileClassNames({
|
|
14
|
-
[style.headerText]: true
|
|
15
|
-
});
|
|
16
|
-
const articleWrapperClass = compileClassNames({
|
|
17
|
-
[style.articleWrapper]: true
|
|
18
|
-
});
|
|
19
|
-
const titleClass = compileClassNames({
|
|
20
|
-
[style.title]: true
|
|
21
|
-
});
|
|
22
|
-
const summaryClass = compileClassNames({
|
|
23
|
-
[style.summary]: true
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
articleBubbleClass,
|
|
27
|
-
headerClass,
|
|
28
|
-
iconClass,
|
|
29
|
-
headerTextClass,
|
|
30
|
-
articleWrapperClass,
|
|
31
|
-
titleClass,
|
|
32
|
-
summaryClass
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** ** Libraries *** */
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
const articleBubblePropTypes = {
|
|
4
|
-
customStyle: PropTypes.object,
|
|
5
|
-
bubbleInfo: PropTypes.string,
|
|
6
|
-
title: PropTypes.string,
|
|
7
|
-
summary: PropTypes.string,
|
|
8
|
-
articleURL: PropTypes.string
|
|
9
|
-
};
|
|
10
|
-
export default articleBubblePropTypes;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const attachmentBubbleClass = compileClassNames({
|
|
5
|
-
[style.attachmentBubble]: true
|
|
6
|
-
});
|
|
7
|
-
const attachmentBubbleIconClass = compileClassNames({
|
|
8
|
-
[style.attachmentBubbleIcon]: true
|
|
9
|
-
});
|
|
10
|
-
const attachmentBubbleContentClass = compileClassNames({
|
|
11
|
-
[style.attachmentBubbleContent]: true
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
attachmentBubbleClass,
|
|
15
|
-
attachmentBubbleIconClass,
|
|
16
|
-
attachmentBubbleContentClass
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const attachmentBubbleInfoClass = compileClassNames({
|
|
5
|
-
[style.attachmentBubbleInfo]: true
|
|
6
|
-
});
|
|
7
|
-
const fileNameClass = compileClassNames({
|
|
8
|
-
[style.fileName]: true
|
|
9
|
-
});
|
|
10
|
-
const fileSizeClass = compileClassNames({
|
|
11
|
-
[style.fileSize]: true
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
attachmentBubbleInfoClass,
|
|
15
|
-
fileNameClass,
|
|
16
|
-
fileSizeClass
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const audioClass = compileClassNames({
|
|
5
|
-
[style.audio]: true
|
|
6
|
-
});
|
|
7
|
-
const audioWrapperClass = compileClassNames({
|
|
8
|
-
[style.audio]: true
|
|
9
|
-
});
|
|
10
|
-
return {
|
|
11
|
-
audioClass,
|
|
12
|
-
audioWrapperClass
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const {
|
|
5
|
-
headerCustomStyle: propHeaderCustomStyle
|
|
6
|
-
} = props;
|
|
7
|
-
const audioBubbleClass = compileClassNames({
|
|
8
|
-
[style.audioBubble]: true
|
|
9
|
-
});
|
|
10
|
-
const headerCustomStyle = compileClassNames({
|
|
11
|
-
[style.header]: true
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
audioBubbleClass,
|
|
15
|
-
headerCustomStyle: {
|
|
16
|
-
attachmentBubbleInfo: headerCustomStyle,
|
|
17
|
-
...propHeaderCustomStyle
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const imageBubbleWrapperClass = compileClassNames({
|
|
5
|
-
[style.imageBubbleWrapper]: true
|
|
6
|
-
});
|
|
7
|
-
const imageClass = compileClassNames({
|
|
8
|
-
[style.image]: true
|
|
9
|
-
});
|
|
10
|
-
const blurImageClass = compileClassNames({
|
|
11
|
-
[style.blurImage]: true
|
|
12
|
-
});
|
|
13
|
-
return {
|
|
14
|
-
imageBubbleWrapperClass,
|
|
15
|
-
blurImageStyle: {
|
|
16
|
-
lazyLoadImage: blurImageClass
|
|
17
|
-
},
|
|
18
|
-
imageStyle: {
|
|
19
|
-
lazyLoadImage: imageClass
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** ** Methods *** */
|
|
2
|
-
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
-
export default function cssJSLogic(props, style) {
|
|
4
|
-
const locationBubbleClass = compileClassNames({
|
|
5
|
-
[style.locationBubble]: true
|
|
6
|
-
});
|
|
7
|
-
const imageWrapperClass = compileClassNames({
|
|
8
|
-
[style.imageWrapper]: true
|
|
9
|
-
});
|
|
10
|
-
const imageClass = compileClassNames({
|
|
11
|
-
[style.image]: true
|
|
12
|
-
});
|
|
13
|
-
const imageLinkClass = compileClassNames({
|
|
14
|
-
[style.imageLink]: true
|
|
15
|
-
});
|
|
16
|
-
const textWrapperClass = compileClassNames({
|
|
17
|
-
[style.textWrapper]: true
|
|
18
|
-
});
|
|
19
|
-
const textLinkClass = compileClassNames({
|
|
20
|
-
[style.textLink]: true
|
|
21
|
-
});
|
|
22
|
-
return {
|
|
23
|
-
locationBubbleClass,
|
|
24
|
-
imageWrapperClass,
|
|
25
|
-
imageClass,
|
|
26
|
-
imageLinkClass,
|
|
27
|
-
textWrapperClass,
|
|
28
|
-
textLinkClass
|
|
29
|
-
};
|
|
30
|
-
}
|