@zohoim/chat-components 0.0.14 → 0.0.16
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 +2 -0
- package/es/ActionIconWrapper/ActionIconWrapper.js +15 -3
- package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +5 -0
- package/es/ActionIconWrapper/css/cssJSLogic.js +14 -0
- package/es/ActionIconWrapper/props/propTypes.js +1 -0
- package/es/AttachmentBubble/AttachmentBubble.js +26 -9
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +16 -1
- package/es/AttachmentBubble/css/cssJSLogic.js +15 -0
- package/es/AttachmentBubble/props/propTypes.js +2 -1
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +20 -5
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +11 -3
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +13 -0
- package/es/AttachmentBubbleInfo/props/propTypes.js +2 -1
- package/es/AttachmentIcon/AttachmentIcon.js +3 -1
- package/es/AttachmentIcon/css/AttachmentIcon.module.css +2 -2
- package/es/AttachmentIcon/props/propTypes.js +6 -0
- package/es/AttachmentIcon/utils/getAttachmentIconComponent.js +12 -5
- package/es/AudioBubble/AudioBubble.js +21 -5
- package/es/AudioBubble/css/AudioBubble.module.css +4 -0
- package/es/AudioBubble/props/defaultProps.js +1 -0
- package/es/AudioBubble/props/propTypes.js +2 -1
- package/es/ImageBubble/ImageBubble.js +13 -2
- package/es/ImageBubble/css/ImageBubble.module.css +8 -2
- package/es/ImageBubble/css/cssJSLogic.js +13 -0
- package/es/ImageBubble/props/propTypes.js +2 -1
- package/es/LocationBubble/LocationBubble.js +15 -3
- package/es/LocationBubble/css/LocationBubble.module.css +17 -5
- package/es/LocationBubble/css/cssJSLogic.js +13 -0
- package/es/LocationBubble/props/propTypes.js +2 -1
- package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +7 -4
- package/es/MediaBubbleWrapper/css/MediaBubbleWrapper.module.css +4 -0
- package/es/MediaBubbleWrapper/props/propTypes.js +2 -1
- package/es/Message/Message.js +4 -2
- package/es/MessageAction/MessageAction.js +3 -0
- package/es/MessageAction/props/propTypes.js +1 -0
- package/es/MessageActions/MessageActions.js +18 -4
- package/es/MessageActions/props/propTypes.js +1 -0
- package/es/MessageBox/MessageBox.js +10 -6
- package/es/MessageBox/css/MessageBox.module.css +1 -6
- package/es/MessageBubble/MessageBubble.js +21 -13
- package/es/MessageStatus/css/MessageStatus.module.css +0 -3
- package/es/MoreActionItem/MoreActionItem.js +8 -0
- package/es/MoreActionItem/css/MoreActionItem.module.css +1 -3
- package/es/MoreActionItem/props/propTypes.js +1 -0
- package/es/ReplyBubble/ReplyBubble.js +32 -14
- package/es/ReplyBubble/css/ReplyBubble.module.css +3 -3
- package/es/ReplyBubble/props/propTypes.js +8 -2
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +15 -5
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +22 -7
- package/es/ReplyBubbleContent/css/cssJSLogic.js +13 -0
- package/es/ReplyBubbleContent/props/propTypes.js +2 -1
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +24 -9
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +37 -6
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +12 -0
- package/es/ReplyBubbleHeader/props/defaultProps.js +2 -1
- package/es/ReplyBubbleHeader/props/propTypes.js +6 -2
- package/es/TextBubble/TextBubble.js +17 -5
- package/es/TextBubble/css/TextBubble.module.css +16 -1
- package/es/TextBubble/css/cssJSLogic.js +18 -0
- package/es/TextBubble/props/propTypes.js +2 -1
- package/es/Theme/ThemeWrapper.js +2 -2
- package/es/Theme/themeVariables/commonThemeColorVariable.js +1 -2
- package/es/Theme/themeVariables/dark/blueTheme.js +97 -40
- package/es/Theme/themeVariables/dark/commonColorVariable.js +7 -1
- package/es/Theme/themeVariables/dark/greenTheme.js +95 -38
- package/es/Theme/themeVariables/dark/orangeTheme.js +94 -37
- package/es/Theme/themeVariables/dark/redTheme.js +94 -46
- package/es/Theme/themeVariables/dark/yellowTheme.js +94 -37
- package/es/Theme/themeVariables/light/blueTheme.js +96 -35
- package/es/Theme/themeVariables/light/commonColorVariable.js +8 -1
- package/es/Theme/themeVariables/light/greenTheme.js +96 -35
- package/es/Theme/themeVariables/light/orangeTheme.js +97 -34
- package/es/Theme/themeVariables/light/redTheme.js +97 -34
- package/es/Theme/themeVariables/light/yellowTheme.js +96 -35
- package/es/Theme/themeVariables/pureDark/blueTheme.js +93 -37
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +7 -1
- package/es/Theme/themeVariables/pureDark/greenTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/redTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +94 -37
- package/es/VideoBubble/VideoBubble.js +7 -3
- package/es/VideoBubble/props/propTypes.js +2 -1
- package/es/css/common.module.css +6 -0
- package/es/icons/factory/common/article.svg +4 -4
- package/es/icons/factory/integrations/chInstagram.svg +2 -2
- package/es/icons/factory/integrations/chWhatsApp.svg +2 -2
- package/es/icons/factory/integrations/ttASAP.svg +6 -1
- package/es/icons/factory/integrations/ttLine.svg +8 -0
- package/es/icons/factory/integrations/ttTelegram.svg +4 -1
- package/es/icons/factory/integrations/ttTwillio.svg +8 -1
- package/es/icons/factory/integrations/ttWechat.svg +9 -1
- package/es/icons/iconSrc/attachments/Text.js +47 -0
- package/es/icons/iconSrc/attachments/index.js +1 -1
- package/es/icons/iconSrc/common/Article.js +2 -3
- package/es/icons/iconSrc/integrations/ChInstagram.js +2 -3
- package/es/icons/iconSrc/integrations/ChWhatsApp.js +2 -3
- package/es/icons/iconSrc/integrations/TtASAP.js +11 -15
- package/es/icons/iconSrc/integrations/{TtTwitter.js → TtLine.js} +14 -18
- package/es/icons/iconSrc/integrations/TtTelegram.js +8 -12
- package/es/icons/iconSrc/integrations/TtTwillio.js +15 -19
- package/es/icons/iconSrc/integrations/TtWechat.js +19 -20
- package/es/icons/iconSrc/integrations/index.js +1 -1
- package/es/im/ArticleBubble/ArticleBubble.js +22 -8
- package/es/im/ArticleBubble/css/ArticleBubble.module.css +40 -15
- package/es/im/ArticleBubble/css/cssJSLogic.js +12 -0
- package/es/im/ArticleBubble/props/propTypes.js +2 -1
- package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +1 -0
- package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +1 -1
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +1 -6
- package/es/im/IMMessage/IMMessage.js +57 -11
- package/es/im/{IMTicketLink/css/IMTicketLink.module.css → IMMessage/css/IMMessage.module.css} +21 -11
- package/es/im/IMMessage/css/cssJSLogic.js +23 -0
- package/es/im/IMMessage/props/defaultProps.js +2 -1
- package/es/im/IMMessage/props/propTypes.js +28 -2
- package/es/im/IMMessageContent/IMMessageContent.js +41 -42
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +6 -2
- package/es/im/IMMessageContent/props/propTypes.js +8 -2
- package/es/im/IMMessageMeta/IMMessageMeta.js +8 -8
- package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +2 -4
- package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
- package/es/im/IMPermaLink/IMPermaLink.js +48 -0
- package/es/im/IMPermaLink/css/IMPermaLink.module.css +14 -0
- package/es/im/{IMTicketLink → IMPermaLink}/css/cssJSLogic.js +3 -3
- package/es/im/IMPermaLink/index.js +1 -0
- package/es/{InfoBubble → im/IMPermaLink}/props/defaultProps.js +2 -2
- package/es/im/IMPermaLink/props/propTypes.js +11 -0
- package/es/im/IMReplyBubble/IMReplyBubble.js +10 -5
- package/es/im/IMReplyBubble/props/propTypes.js +7 -2
- package/es/im/IMTextBubble/IMTextBubble.js +5 -2
- package/es/im/IMTextBubble/props/propTypes.js +2 -1
- package/es/im/css/common.module.css +6 -0
- package/es/im/index.js +1 -2
- package/es/index.js +0 -1
- package/package.json +4 -21
- package/es/InfoBubble/InfoBubble.js +0 -34
- package/es/InfoBubble/css/InfoBubble.module.css +0 -0
- package/es/InfoBubble/css/cssJSLogic.js +0 -10
- package/es/InfoBubble/index.js +0 -1
- package/es/InfoBubble/props/propTypes.js +0 -6
- package/es/Theme/crm/dark/blueFanTheme.js +0 -28
- package/es/Theme/crm/dark/blueTheme.js +0 -28
- package/es/Theme/crm/dark/commonColorVariable.js +0 -11
- package/es/Theme/crm/dark/darkBlueTheme.js +0 -28
- package/es/Theme/crm/dark/darkGreyTheme.js +0 -28
- package/es/Theme/crm/dark/greenTheme.js +0 -28
- package/es/Theme/crm/dark/orangeTheme.js +0 -28
- package/es/Theme/crm/dark/pinkTheme.js +0 -28
- package/es/Theme/crm/dark/tealTheme.js +0 -28
- package/es/Theme/crm/dark/whiteTheme.js +0 -28
- package/es/Theme/crm/light/blueFanTheme.js +0 -28
- package/es/Theme/crm/light/blueTheme.js +0 -31
- package/es/Theme/crm/light/commonColorVariable.js +0 -9
- package/es/Theme/crm/light/darkBlueTheme.js +0 -28
- package/es/Theme/crm/light/darkGreyTheme.js +0 -28
- package/es/Theme/crm/light/greenTheme.js +0 -28
- package/es/Theme/crm/light/orangeTheme.js +0 -28
- package/es/Theme/crm/light/pinkTheme.js +0 -28
- package/es/Theme/crm/light/tealTheme.js +0 -28
- package/es/Theme/crm/light/whiteTheme.js +0 -28
- package/es/Theme/crm/pureDark/blueFanTheme.js +0 -28
- package/es/Theme/crm/pureDark/blueTheme.js +0 -28
- package/es/Theme/crm/pureDark/commonColorVariable.js +0 -9
- package/es/Theme/crm/pureDark/darkBlueTheme.js +0 -28
- package/es/Theme/crm/pureDark/darkGreyTheme.js +0 -28
- package/es/Theme/crm/pureDark/greenTheme.js +0 -28
- package/es/Theme/crm/pureDark/orangeTheme.js +0 -28
- package/es/Theme/crm/pureDark/pinkTheme.js +0 -28
- package/es/Theme/crm/pureDark/tealTheme.js +0 -28
- package/es/Theme/crm/pureDark/whiteTheme.js +0 -28
- package/es/icons/factory/integrations/ttTwitter.svg +0 -1
- package/es/im/IMInfoBubble/IMInfoBubble.js +0 -34
- package/es/im/IMInfoBubble/css/IMInfoBubble.module.css +0 -0
- package/es/im/IMInfoBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMInfoBubble/index.js +0 -1
- package/es/im/IMInfoBubble/props/defaultProps.js +0 -6
- package/es/im/IMInfoBubble/props/propTypes.js +0 -6
- package/es/im/IMTicketLink/IMTicketLink.js +0 -48
- package/es/im/IMTicketLink/index.js +0 -1
- package/es/im/IMTicketLink/props/defaultProps.js +0 -6
- package/es/im/IMTicketLink/props/propTypes.js +0 -11
- /package/es/icons/factory/attachments/{txt.svg → text.svg} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconWrapperBgColor, actionIconWrapperBorderColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable';
|
|
3
|
-
export default {
|
|
4
|
-
library: 'chat_components',
|
|
5
|
-
variables: {
|
|
6
|
-
messageBubble: {
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: '#000'
|
|
16
|
-
},
|
|
17
|
-
actionIconWrapper: {
|
|
18
|
-
color: actionIconWrapperColor,
|
|
19
|
-
bg_color: actionIconWrapperBgColor,
|
|
20
|
-
border_color: actionIconWrapperBorderColor
|
|
21
|
-
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: '#5cab8b',
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconWrapperBgColor, actionIconWrapperBorderColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable';
|
|
3
|
-
export default {
|
|
4
|
-
library: 'chat_components',
|
|
5
|
-
variables: {
|
|
6
|
-
messageBubble: {
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: '#000'
|
|
16
|
-
},
|
|
17
|
-
actionIconWrapper: {
|
|
18
|
-
color: actionIconWrapperColor,
|
|
19
|
-
bg_color: actionIconWrapperBgColor,
|
|
20
|
-
border_color: actionIconWrapperBorderColor
|
|
21
|
-
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: '#f07b61',
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconWrapperBgColor, actionIconWrapperBorderColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable';
|
|
3
|
-
export default {
|
|
4
|
-
library: 'chat_components',
|
|
5
|
-
variables: {
|
|
6
|
-
messageBubble: {
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: '#000'
|
|
16
|
-
},
|
|
17
|
-
actionIconWrapper: {
|
|
18
|
-
color: actionIconWrapperColor,
|
|
19
|
-
bg_color: actionIconWrapperBgColor,
|
|
20
|
-
border_color: actionIconWrapperBorderColor
|
|
21
|
-
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: '#ff69b4',
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconWrapperBgColor, actionIconWrapperBorderColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable';
|
|
3
|
-
export default {
|
|
4
|
-
library: 'chat_components',
|
|
5
|
-
variables: {
|
|
6
|
-
messageBubble: {
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: '#000'
|
|
16
|
-
},
|
|
17
|
-
actionIconWrapper: {
|
|
18
|
-
color: actionIconWrapperColor,
|
|
19
|
-
bg_color: actionIconWrapperBgColor,
|
|
20
|
-
border_color: actionIconWrapperBorderColor
|
|
21
|
-
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: '#37a5a5',
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconWrapperBgColor, actionIconWrapperBorderColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable';
|
|
3
|
-
export default {
|
|
4
|
-
library: 'chat_components',
|
|
5
|
-
variables: {
|
|
6
|
-
messageBubble: {
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: '#000'
|
|
16
|
-
},
|
|
17
|
-
actionIconWrapper: {
|
|
18
|
-
color: actionIconWrapperColor,
|
|
19
|
-
bg_color: actionIconWrapperBgColor,
|
|
20
|
-
border_color: actionIconWrapperBorderColor
|
|
21
|
-
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: messageStatusReadColor,
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><style>.cls-1{fill:#c8cadb;isolation:isolate;opacity:0.5;}.cls-2{fill:#010101;}</style></defs><ellipse class="cls-1" cx="23.38" cy="21.39" rx="14.03" ry="11.35"/><path class="cls-2" d="M28.79,15.92H24.94a.26.26,0,0,0-.26.26v6a.26.26,0,0,0,.26.26h3.85a.25.25,0,0,0,.26-.26v-1a.26.26,0,0,0-.26-.26H26.17v-1h2.62a.26.26,0,0,0,.26-.26v-1a.26.26,0,0,0-.26-.27H26.17v-1h2.62a.25.25,0,0,0,.26-.26v-1A.26.26,0,0,0,28.79,15.92Z"/><path class="cls-2" d="M14.55,20.93H11.93V16.18a.26.26,0,0,0-.26-.26h-1a.27.27,0,0,0-.27.26v6a.27.27,0,0,0,.27.26h3.85a.26.26,0,0,0,.26-.26v-1A.26.26,0,0,0,14.55,20.93Z"/><rect class="cls-2" x="15.63" y="15.92" width="1.5" height="6.51" rx="0.26"/><path class="cls-2" d="M23.48,15.92h-1a.26.26,0,0,0-.26.26v3.55L19.5,16s0,0,0,0v0H18.32a.27.27,0,0,0-.26.27v6a.26.26,0,0,0,.26.26h1a.27.27,0,0,0,.27-.26V18.61l2.74,3.71s0,.05.06.06h.07a.06.06,0,0,0,.06,0h1a.25.25,0,0,0,.26-.25h0V16.18A.25.25,0,0,0,23.48,15.92Z"/><path class="cls-2" d="M19.89,6.17c-8.56,0-15.53,5.72-15.53,12.77,0,6.31,5.47,11.61,12.94,12.59a2.06,2.06,0,0,1,.63.22,2.42,2.42,0,0,1,0,.76l-.22,1.27a1.74,1.74,0,0,0,.47,1.75,1.45,1.45,0,0,0,.92.3,3.14,3.14,0,0,0,1.17-.28C22,34.83,28.94,30.42,32,26.84a11.45,11.45,0,0,0,3.37-7.91C35.41,11.89,28.44,6.17,19.89,6.17ZM30.65,25.61h0c-2.86,3.29-9.4,7.46-11.07,8.2l.17-1a3.7,3.7,0,0,0-.1-1.79,2.51,2.51,0,0,0-2-1.29c-6.6-.88-11.4-5.4-11.4-10.77,0-6,6.13-10.9,13.67-10.9s13.66,4.89,13.66,10.9A9.61,9.61,0,0,1,30.65,25.61Z"/></svg>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** ** Libraries *** */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
/** ** Hooks *** */
|
|
4
|
-
|
|
5
|
-
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
6
|
-
/** ** Constants *** */
|
|
7
|
-
|
|
8
|
-
import imInfoBubbleDefaultProps from './props/defaultProps';
|
|
9
|
-
import imInfoBubblePropTypes from './props/propTypes';
|
|
10
|
-
/** ** Methods *** */
|
|
11
|
-
|
|
12
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
13
|
-
/** ** Styles *** */
|
|
14
|
-
|
|
15
|
-
import style from './css/IMInfoBubble.module.css';
|
|
16
|
-
export default function IMInfoBubble(props) {
|
|
17
|
-
const {
|
|
18
|
-
customStyle
|
|
19
|
-
} = props;
|
|
20
|
-
/* External CSS Customization */
|
|
21
|
-
|
|
22
|
-
const newStyle = useMergeStyle(style, customStyle);
|
|
23
|
-
/* CSS classnames added based on logic */
|
|
24
|
-
|
|
25
|
-
const {
|
|
26
|
-
imInfoBubbleClass
|
|
27
|
-
} = cssJSLogic(props, newStyle);
|
|
28
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
-
className: imInfoBubbleClass
|
|
30
|
-
}, "Working On this...");
|
|
31
|
-
}
|
|
32
|
-
IMInfoBubble.propTypes = imInfoBubblePropTypes;
|
|
33
|
-
IMInfoBubble.defaultProps = imInfoBubbleDefaultProps;
|
|
34
|
-
IMInfoBubble.displayName = 'IMInfoBubble';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IMInfoBubble } from './IMInfoBubble';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @zohodesk/zsecurity/no-protocol-check */
|
|
2
|
-
|
|
3
|
-
/** ** Libraries *** */
|
|
4
|
-
import React from 'react';
|
|
5
|
-
/** ** Hooks *** */
|
|
6
|
-
|
|
7
|
-
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
8
|
-
import useIMTicketLink from '@zohoim/chat-components-hooks/es/im/IMTicketLink/useIMTicketLink';
|
|
9
|
-
/** ** Constants *** */
|
|
10
|
-
|
|
11
|
-
import imTicketLinkDefaultProps from './props/defaultProps';
|
|
12
|
-
import imTicketLinkPropTypes from './props/propTypes';
|
|
13
|
-
/** ** Methods *** */
|
|
14
|
-
|
|
15
|
-
import cssJSLogic from './css/cssJSLogic';
|
|
16
|
-
/** ** Styles *** */
|
|
17
|
-
|
|
18
|
-
import style from './css/IMTicketLink.module.css';
|
|
19
|
-
export default function IMTicketLink(props) {
|
|
20
|
-
const {
|
|
21
|
-
customStyle,
|
|
22
|
-
isDisabled
|
|
23
|
-
} = props;
|
|
24
|
-
const {
|
|
25
|
-
ticketUrl,
|
|
26
|
-
onClick,
|
|
27
|
-
ticketNumber
|
|
28
|
-
} = useIMTicketLink(props);
|
|
29
|
-
/* External CSS Customization */
|
|
30
|
-
|
|
31
|
-
const newStyle = useMergeStyle(style, customStyle);
|
|
32
|
-
/* CSS classnames added based on logic */
|
|
33
|
-
|
|
34
|
-
const {
|
|
35
|
-
imTicketLinkClass
|
|
36
|
-
} = cssJSLogic({
|
|
37
|
-
isDisabled
|
|
38
|
-
}, newStyle);
|
|
39
|
-
return ticketNumber ? /*#__PURE__*/React.createElement("a", {
|
|
40
|
-
className: imTicketLinkClass,
|
|
41
|
-
href: ticketUrl,
|
|
42
|
-
onClick: onClick,
|
|
43
|
-
rel: "noopener noreferrer"
|
|
44
|
-
}, ticketNumber) : null;
|
|
45
|
-
}
|
|
46
|
-
IMTicketLink.propTypes = imTicketLinkPropTypes;
|
|
47
|
-
IMTicketLink.defaultProps = imTicketLinkDefaultProps;
|
|
48
|
-
IMTicketLink.displayName = 'IMTicketLink';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as IMTicketLink } from './IMTicketLink';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** ** Libraries *** */
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
const imTicketLinkPropTypes = {
|
|
4
|
-
ticketNumber: PropTypes.string.isRequired,
|
|
5
|
-
customStyle: PropTypes.object,
|
|
6
|
-
isDisabled: PropTypes.bool,
|
|
7
|
-
onClick: PropTypes.func,
|
|
8
|
-
ticketId: PropTypes.string,
|
|
9
|
-
ticketUrl: PropTypes.string
|
|
10
|
-
};
|
|
11
|
-
export default imTicketLinkPropTypes;
|
|
File without changes
|