@zohoim/chat-components 0.0.10 → 0.0.13
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 -2
- package/es/ArticleBubble/ArticleBubble.js +17 -15
- package/es/ArticleBubble/css/ArticleBubble.module.css +37 -29
- package/es/AttachmentBubble/AttachmentBubble.js +14 -12
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +4 -4
- package/es/AttachmentBubble/css/cssJSLogic.js +1 -1
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +0 -1
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +1 -0
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +1 -1
- package/es/Audio/Audio.js +23 -23
- package/es/AudioBubble/AudioBubble.js +2 -3
- package/es/AudioBubble/css/cssJSLogic.js +2 -2
- package/es/ImageBubble/ImageBubble.js +7 -6
- package/es/InfoBubble/InfoBubble.js +0 -1
- package/es/LazyLoadImage/LazyLoadImage.js +5 -6
- package/es/LocationBubble/LocationBubble.js +20 -21
- package/es/LocationBubble/css/LocationBubble.module.css +9 -7
- package/es/MediaControls/MediaControls.js +0 -1
- package/es/Message/Message.js +58 -93
- package/es/Message/props/defaultProps.js +2 -34
- package/es/Message/props/propTypes.js +19 -57
- package/es/MessageAction/MessageAction.js +5 -5
- package/es/MessageActions/MessageActions.js +120 -45
- package/es/MessageActions/css/MessageActions.module.css +30 -2
- package/es/MessageActions/css/cssJSLogic.js +13 -3
- package/es/MessageActions/props/defaultProps.js +5 -3
- package/es/MessageActions/props/propTypes.js +22 -4
- package/es/MessageActionsMore/MessageActionsMore.js +5 -5
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +75 -0
- package/es/MessageActionsWrapper/css/MessageActionsWrapper.module.css +3 -0
- package/es/MessageActionsWrapper/css/cssJSLogic.js +10 -0
- package/es/MessageActionsWrapper/index.js +1 -0
- package/es/MessageActionsWrapper/props/defaultProps.js +10 -0
- package/es/MessageActionsWrapper/props/propTypes.js +12 -0
- package/es/MessageAvatar/MessageAvatar.js +7 -6
- package/es/MessageAvatar/props/defaultProps.js +3 -3
- package/es/MessageBubble/MessageBubble.js +1 -1
- package/es/MessageBubble/props/defaultProps.js +2 -2
- package/es/MessageBubble/props/propConstants.js +1 -1
- package/es/MessageBubble/props/propTypes.js +2 -2
- package/es/{im/IMMessageStatus/IMMessageStatus.js → MessageStatus/MessageStatus.js} +18 -15
- package/es/{im/IMMessageStatus → MessageStatus}/css/cssJSLogic.js +3 -3
- package/es/MessageStatus/index.js +1 -0
- package/es/{im/IMMessageStatus → MessageStatus}/props/defaultProps.js +2 -2
- package/es/{im/IMMessageStatus → MessageStatus}/props/propTypes.js +4 -3
- package/es/MoreActionItem/MoreActionItem.js +7 -7
- package/es/MoreActionItem/css/cssJSLogic.js +1 -1
- package/es/ReplyBubble/ReplyBubble.js +4 -3
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +16 -12
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +26 -16
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +20 -18
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +15 -4
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +9 -1
- package/es/ReplyBubbleHeader/props/defaultProps.js +1 -2
- package/es/ReplyBubbleHeader/props/propTypes.js +1 -2
- package/es/TextBubble/TextBubble.js +8 -9
- package/es/TextBubble/css/TextBubble.module.css +11 -2
- package/es/Theme/ThemeWrapper.js +32 -29
- package/es/Theme/crm/dark/blueFanTheme.js +1 -1
- package/es/Theme/crm/dark/blueTheme.js +1 -1
- package/es/Theme/crm/dark/darkBlueTheme.js +1 -1
- package/es/Theme/crm/dark/darkGreyTheme.js +1 -1
- package/es/Theme/crm/dark/greenTheme.js +1 -1
- package/es/Theme/crm/dark/orangeTheme.js +1 -1
- package/es/Theme/crm/dark/pinkTheme.js +1 -1
- package/es/Theme/crm/dark/tealTheme.js +1 -1
- package/es/Theme/crm/dark/whiteTheme.js +1 -1
- package/es/Theme/crm/light/blueFanTheme.js +1 -1
- package/es/Theme/crm/light/blueTheme.js +1 -1
- package/es/Theme/crm/light/darkBlueTheme.js +1 -1
- package/es/Theme/crm/light/darkGreyTheme.js +1 -1
- package/es/Theme/crm/light/greenTheme.js +1 -1
- package/es/Theme/crm/light/orangeTheme.js +1 -1
- package/es/Theme/crm/light/pinkTheme.js +1 -1
- package/es/Theme/crm/light/tealTheme.js +1 -1
- package/es/Theme/crm/light/whiteTheme.js +1 -1
- package/es/Theme/crm/pureDark/blueFanTheme.js +1 -1
- package/es/Theme/crm/pureDark/blueTheme.js +1 -1
- package/es/Theme/crm/pureDark/darkBlueTheme.js +1 -1
- package/es/Theme/crm/pureDark/darkGreyTheme.js +1 -1
- package/es/Theme/crm/pureDark/greenTheme.js +1 -1
- package/es/Theme/crm/pureDark/orangeTheme.js +1 -1
- package/es/Theme/crm/pureDark/pinkTheme.js +1 -1
- package/es/Theme/crm/pureDark/tealTheme.js +1 -1
- package/es/Theme/crm/pureDark/whiteTheme.js +1 -1
- package/es/Theme/desk/commonDeskColorVariable.js +10 -10
- package/es/Theme/desk/dark/blueTheme.js +42 -16
- package/es/Theme/desk/dark/commonColorVariable.js +10 -5
- package/es/Theme/desk/dark/greenTheme.js +41 -15
- package/es/Theme/desk/dark/orangeTheme.js +34 -8
- package/es/Theme/desk/dark/redTheme.js +50 -15
- package/es/Theme/desk/dark/yellowTheme.js +41 -15
- package/es/Theme/desk/light/blueTheme.js +35 -18
- package/es/Theme/desk/light/commonColorVariable.js +7 -1
- package/es/Theme/desk/light/greenTheme.js +39 -13
- package/es/Theme/desk/light/orangeTheme.js +38 -13
- package/es/Theme/desk/light/redTheme.js +38 -13
- package/es/Theme/desk/light/yellowTheme.js +39 -13
- package/es/Theme/desk/pureDark/blueTheme.js +41 -14
- package/es/Theme/desk/pureDark/commonColorVariable.js +6 -1
- package/es/Theme/desk/pureDark/greenTheme.js +40 -14
- package/es/Theme/desk/pureDark/orangeTheme.js +40 -14
- package/es/Theme/desk/pureDark/redTheme.js +40 -14
- package/es/Theme/desk/pureDark/yellowTheme.js +40 -14
- package/es/Theme/utils/getThemeConfigurations.js +5 -5
- package/es/Video/Video.js +13 -12
- package/es/VideoBubble/VideoBubble.js +2 -3
- package/es/icons/create-icon-components.js +1 -0
- package/es/icons/icon.template.js +2 -2
- package/es/icons/iconSrc/actions/ConvertTicket.js +1 -0
- package/es/icons/iconSrc/actions/index.js +1 -1
- package/es/icons/iconSrc/attachments/Audio.js +1 -0
- package/es/icons/iconSrc/attachments/Code.js +1 -0
- package/es/icons/iconSrc/attachments/Image.js +1 -0
- package/es/icons/iconSrc/attachments/Pdf.js +1 -0
- package/es/icons/iconSrc/attachments/Txt.js +1 -0
- package/es/icons/iconSrc/attachments/Unknown.js +1 -0
- package/es/icons/iconSrc/attachments/Video.js +1 -0
- package/es/icons/iconSrc/attachments/Zip.js +1 -0
- package/es/icons/iconSrc/attachments/index.js +8 -8
- package/es/icons/iconSrc/common/Article.js +1 -0
- package/es/icons/iconSrc/common/Quote.js +1 -0
- package/es/icons/iconSrc/common/index.js +2 -2
- package/es/icons/iconSrc/integrations/ChInstagram.js +1 -0
- package/es/icons/iconSrc/integrations/ChWhatsApp.js +1 -0
- package/es/icons/iconSrc/integrations/TtASAP.js +1 -0
- package/es/icons/iconSrc/integrations/TtTelegram.js +1 -0
- package/es/icons/iconSrc/integrations/TtTwillio.js +1 -0
- package/es/icons/iconSrc/integrations/TtTwitter.js +1 -0
- package/es/icons/iconSrc/integrations/TtWechat.js +1 -0
- package/es/icons/iconSrc/integrations/index.js +7 -7
- package/es/icons/iconSrc/messageStatus/Clock.js +1 -0
- package/es/icons/iconSrc/messageStatus/DoubleTick.js +1 -0
- package/es/icons/iconSrc/messageStatus/Failed.js +1 -0
- package/es/icons/iconSrc/messageStatus/Tick.js +1 -0
- package/es/icons/iconSrc/messageStatus/index.js +4 -4
- package/es/im/IMArticleBubble/IMArticleBubble.js +3 -4
- package/es/im/IMAttachmentBubble/IMAttachmentBubble.js +4 -5
- package/es/im/IMAttachmentIcon/IMAttachmentIcon.js +8 -9
- package/es/im/IMAudioBubble/IMAudioBubble.js +3 -4
- package/es/im/IMAudioBubble/css/cssJSLogic.js +2 -2
- package/es/im/IMAutoMessageInfo/IMAutoMessageInfo.js +0 -1
- package/es/im/IMDateTime/IMDateTime.js +0 -1
- package/es/im/IMDateTime/css/IMDateTime.module.css +6 -1
- package/es/im/IMImageBubble/IMImageBubble.js +6 -5
- package/es/im/IMInfoBubble/IMInfoBubble.js +0 -1
- package/es/im/IMLocationBubble/IMLocationBubble.js +6 -5
- package/es/im/IMMessage/IMMessage.js +57 -103
- package/es/im/IMMessage/props/defaultProps.js +1 -19
- package/es/im/IMMessage/props/propTypes.js +17 -30
- package/es/im/IMMessageAvatar/IMMessageAvatar.js +7 -7
- package/es/im/IMMessageAvatar/props/defaultProps.js +4 -4
- package/es/im/IMMessageAvatar/props/propTypes.js +25 -0
- package/es/im/IMMessageContent/IMMessageContent.js +44 -28
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +3 -0
- package/es/im/IMMessageMeta/IMMessageMeta.js +3 -4
- package/es/im/IMReplyBubble/IMReplyBubble.js +14 -12
- package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +7 -13
- package/es/im/IMTextBubble/IMTextBubble.js +3 -4
- package/es/im/IMTicketLink/IMTicketLink.js +1 -3
- package/es/im/IMVideoBubble/IMVideoBubble.js +3 -4
- package/es/im/index.js +0 -2
- package/es/index.js +28 -30
- package/es/{MessageWrapper → unused/MessageWrapper}/MessageWrapper.js +0 -1
- package/es/{TextMessage → unused/TextMessage}/DefaultActions.js +4 -4
- package/es/{TextMessage → unused/TextMessage}/TextMessage.js +14 -14
- package/es/{TextMessage → unused/TextMessage}/TextMessage1.js +18 -21
- package/package.json +4 -4
- package/es/im/IMMessage/renderChild/renderMessage.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageActions.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageBox.js +0 -15
- package/es/im/IMMessage/renderChild/renderMessageBoxFooter.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageFooter.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageHeader.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageOwner.js +0 -8
- package/es/im/IMMessage/renderChild/renderMessageStatus.js +0 -8
- package/es/im/IMMessageActions/IMMessageActions.js +0 -150
- package/es/im/IMMessageActions/css/IMMessageActions.module.css +0 -31
- package/es/im/IMMessageActions/css/cssJSLogic.js +0 -20
- package/es/im/IMMessageActions/index.js +0 -1
- package/es/im/IMMessageActions/props/defaultProps.js +0 -12
- package/es/im/IMMessageActions/props/propTypes.js +0 -30
- package/es/im/IMMessageStatus/index.js +0 -1
- /package/es/{MessageActions → MessageActionsWrapper}/props/propConstants.js +0 -0
- /package/es/{im/IMMessageStatus/css/IMMessageStatus.module.css → MessageStatus/css/MessageStatus.module.css} +0 -0
- /package/es/{MessageBoxFooter → unused/MessageBoxFooter}/MessageBoxFooter.js +0 -0
- /package/es/{MessageBoxFooter → unused/MessageBoxFooter}/css/MessageBoxFooter.module.css +0 -0
- /package/es/{MessageBoxFooter → unused/MessageBoxFooter}/css/cssJSLogic.js +0 -0
- /package/es/{MessageBoxFooter → unused/MessageBoxFooter}/index.js +0 -0
- /package/es/{MessageBoxFooter → unused/MessageBoxFooter}/props/defaultProps.js +0 -0
- /package/es/{MessageBoxFooter → unused/MessageBoxFooter}/props/propTypes.js +0 -0
- /package/es/{MessageBoxHeader → unused/MessageBoxHeader}/MessageBoxHeader.js +0 -0
- /package/es/{MessageBoxHeader → unused/MessageBoxHeader}/css/MessageBoxHeader.module.css +0 -0
- /package/es/{MessageBoxHeader → unused/MessageBoxHeader}/css/cssJsLogic.js +0 -0
- /package/es/{MessageBoxHeader → unused/MessageBoxHeader}/index.js +0 -0
- /package/es/{MessageBoxHeader → unused/MessageBoxHeader}/props/defaultProps.js +0 -0
- /package/es/{MessageBoxHeader → unused/MessageBoxHeader}/props/propTypes.js +0 -0
- /package/es/{MessageWrapper → unused/MessageWrapper}/css/MessageWrapper.module.css +0 -0
- /package/es/{MessageWrapper → unused/MessageWrapper}/css/cssJSLogic.js +0 -0
- /package/es/{MessageWrapper → unused/MessageWrapper}/index.js +0 -0
- /package/es/{MessageWrapper → unused/MessageWrapper}/props/defaultProps.js +0 -0
- /package/es/{MessageWrapper → unused/MessageWrapper}/props/propTypes.js +0 -0
- /package/es/{TextMessage → unused/TextMessage}/css/TextMessage.module.css +0 -0
- /package/es/{TextMessage → unused/TextMessage}/css/cssJSLogic.js +0 -0
- /package/es/{TextMessage → unused/TextMessage}/index.js +0 -0
- /package/es/{TextMessage → unused/TextMessage}/props/defaultProps.js +0 -0
- /package/es/{TextMessage → unused/TextMessage}/props/propConstants.js +0 -0
- /package/es/{TextMessage → unused/TextMessage}/props/propTypes.js +0 -0
- /package/es/{Theme → unused}/darkTheme.js +0 -0
- /package/es/{Theme → unused}/defaultTheme.js +0 -0
|
@@ -1,37 +1,63 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor } from
|
|
3
|
-
import { imIntegrationIcon } from
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryYellow, white } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon } from '../commonDeskColorVariable';
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: '#5a616f'
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color:
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
13
|
+
outgoing_bg_color: '#fdf8e9',
|
|
14
|
+
bg_color: '#f1f7fe',
|
|
15
|
+
failed_bg_color: '#fcebeb',
|
|
16
16
|
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: '#fdf8e9',
|
|
21
|
+
border_color: '#f6e3a7'
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: '#b68c07',
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
28
|
},
|
|
29
29
|
attachmentBubble: {
|
|
30
|
-
bg_color:
|
|
31
|
-
border_color:
|
|
30
|
+
bg_color: white,
|
|
31
|
+
border_color: '#ebf0f5'
|
|
32
|
+
},
|
|
33
|
+
ReplyBubbleContent: {
|
|
34
|
+
bg_color: white,
|
|
35
|
+
color: '#000',
|
|
36
|
+
border_color: '#ebf0f5',
|
|
37
|
+
line_color: '#cddbf2'
|
|
38
|
+
},
|
|
39
|
+
imageBubble: {
|
|
40
|
+
bg_color: white
|
|
41
|
+
},
|
|
42
|
+
locationBubble: {
|
|
43
|
+
bg_color: white,
|
|
44
|
+
color: primaryYellow,
|
|
45
|
+
border_color: '#ebf0f5'
|
|
46
|
+
},
|
|
47
|
+
articleBubble: {
|
|
48
|
+
bg_color: white,
|
|
49
|
+
color: '#000',
|
|
50
|
+
border_color: '#ebf0f5'
|
|
32
51
|
},
|
|
33
52
|
imTicketLink: {
|
|
34
|
-
color:
|
|
53
|
+
color: primaryYellow
|
|
54
|
+
},
|
|
55
|
+
textBubble: {
|
|
56
|
+
see_more_color: primaryYellow,
|
|
57
|
+
url_color: primaryYellow
|
|
58
|
+
},
|
|
59
|
+
iMDateTime: {
|
|
60
|
+
color: '#5a616f'
|
|
35
61
|
}
|
|
36
62
|
}
|
|
37
63
|
};
|
|
@@ -1,41 +1,68 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: '#5a616f'
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
14
|
+
bg_color: '#f1f7fe',
|
|
15
|
+
failed_bg_color: '#fcebeb',
|
|
16
16
|
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: '#252d37',
|
|
21
|
+
border_color: '#2c4664'
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: '#479dff',
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
28
|
},
|
|
29
29
|
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color:
|
|
31
|
-
fileSize_color:
|
|
30
|
+
fileName_color: '#e2e4e6',
|
|
31
|
+
fileSize_color: '#788190'
|
|
32
32
|
},
|
|
33
33
|
attachmentBubble: {
|
|
34
|
-
bg_color:
|
|
35
|
-
border_color:
|
|
34
|
+
bg_color: '#212121',
|
|
35
|
+
border_color: '#161515'
|
|
36
36
|
},
|
|
37
37
|
imTicketLink: {
|
|
38
|
-
color:
|
|
38
|
+
color: '#479dff'
|
|
39
|
+
},
|
|
40
|
+
ReplyBubbleContent: {
|
|
41
|
+
bg_color: '#212121',
|
|
42
|
+
color: '#e2e4e6',
|
|
43
|
+
border_color: '#161515',
|
|
44
|
+
line_color: '#cddbf2'
|
|
45
|
+
},
|
|
46
|
+
imageBubble: {
|
|
47
|
+
bg_color: '#212121',
|
|
48
|
+
color: '#e2e4e6'
|
|
49
|
+
},
|
|
50
|
+
locationBubble: {
|
|
51
|
+
bg_color: '#212121',
|
|
52
|
+
color: primaryBlue,
|
|
53
|
+
border_color: '#161515'
|
|
54
|
+
},
|
|
55
|
+
articleBubble: {
|
|
56
|
+
bg_color: '#212121',
|
|
57
|
+
color: '#e2e4e6',
|
|
58
|
+
border_color: '#161515'
|
|
59
|
+
},
|
|
60
|
+
iMDateTime: {
|
|
61
|
+
color: '#999'
|
|
62
|
+
},
|
|
63
|
+
textBubble: {
|
|
64
|
+
see_more_color: primaryBlue,
|
|
65
|
+
url_color: primaryBlue
|
|
39
66
|
}
|
|
40
67
|
}
|
|
41
68
|
};
|
|
@@ -4,4 +4,9 @@ export const bubbleActiveBgColor = '#202821';
|
|
|
4
4
|
export const actionIconColor = '#e2e4e6';
|
|
5
5
|
export const messageStatusSendColor = '#61667a';
|
|
6
6
|
export const messageStatusFailedColor = '#de3535';
|
|
7
|
-
export const messagetextColor =
|
|
7
|
+
export const messagetextColor = '#e2e4e6';
|
|
8
|
+
export const primaryBlue = '#479dff';
|
|
9
|
+
export const primaryGreen = '#45a159';
|
|
10
|
+
export const primaryOrange = '#ff801f';
|
|
11
|
+
export const primaryRed = '#e94f4f';
|
|
12
|
+
export const primaryYellow = '#d79835';
|
|
@@ -1,41 +1,67 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: '#5a616f'
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
14
|
+
bg_color: '#f1f7fe',
|
|
15
|
+
failed_bg_color: '#fcebeb',
|
|
16
16
|
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: '#252e27',
|
|
21
|
+
border_color: '#2c4732'
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: '#45a159',
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
28
|
},
|
|
29
29
|
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color:
|
|
31
|
-
fileSize_color:
|
|
30
|
+
fileName_color: '#e2e4e6',
|
|
31
|
+
fileSize_color: '#788190'
|
|
32
32
|
},
|
|
33
33
|
attachmentBubble: {
|
|
34
|
-
bg_color:
|
|
35
|
-
border_color:
|
|
34
|
+
bg_color: '#212121',
|
|
35
|
+
border_color: '#161515'
|
|
36
36
|
},
|
|
37
37
|
imTicketLink: {
|
|
38
|
-
color:
|
|
38
|
+
color: '#45a159'
|
|
39
|
+
},
|
|
40
|
+
ReplyBubbleContent: {
|
|
41
|
+
bg_color: '#212121',
|
|
42
|
+
color: '#e2e4e6',
|
|
43
|
+
border_color: '#161515',
|
|
44
|
+
line_color: '#cddbf2'
|
|
45
|
+
},
|
|
46
|
+
imageBubble: {
|
|
47
|
+
bg_color: '#212121'
|
|
48
|
+
},
|
|
49
|
+
locationBubble: {
|
|
50
|
+
bg_color: '#212121',
|
|
51
|
+
color: primaryGreen,
|
|
52
|
+
border_color: '#161515'
|
|
53
|
+
},
|
|
54
|
+
articleBubble: {
|
|
55
|
+
bg_color: '#212121',
|
|
56
|
+
color: '#e2e4e6',
|
|
57
|
+
border_color: '#161515'
|
|
58
|
+
},
|
|
59
|
+
iMDateTime: {
|
|
60
|
+
color: '#999'
|
|
61
|
+
},
|
|
62
|
+
textBubble: {
|
|
63
|
+
see_more_color: primaryGreen,
|
|
64
|
+
url_color: primaryGreen
|
|
39
65
|
}
|
|
40
66
|
}
|
|
41
67
|
};
|
|
@@ -1,41 +1,67 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: '#5a616f'
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
14
|
+
bg_color: '#f1f7fe',
|
|
15
|
+
failed_bg_color: '#fcebeb',
|
|
16
16
|
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: '#312821',
|
|
21
|
+
border_color: '#4d3421'
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: '#ff801f',
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
28
|
},
|
|
29
29
|
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color:
|
|
31
|
-
fileSize_color:
|
|
30
|
+
fileName_color: '#e2e4e6',
|
|
31
|
+
fileSize_color: '#788190'
|
|
32
32
|
},
|
|
33
33
|
attachmentBubble: {
|
|
34
|
-
bg_color:
|
|
35
|
-
border_color:
|
|
34
|
+
bg_color: '#212121',
|
|
35
|
+
border_color: '#161515'
|
|
36
36
|
},
|
|
37
37
|
imTicketLink: {
|
|
38
|
-
color:
|
|
38
|
+
color: '#ff801f'
|
|
39
|
+
},
|
|
40
|
+
ReplyBubbleContent: {
|
|
41
|
+
bg_color: '#212121',
|
|
42
|
+
color: '#e2e4e6',
|
|
43
|
+
border_color: '#161515',
|
|
44
|
+
line_color: '#cddbf2'
|
|
45
|
+
},
|
|
46
|
+
imageBubble: {
|
|
47
|
+
bg_color: '#212121'
|
|
48
|
+
},
|
|
49
|
+
locationBubble: {
|
|
50
|
+
bg_color: '#212121',
|
|
51
|
+
color: primaryOrange,
|
|
52
|
+
border_color: '#161515'
|
|
53
|
+
},
|
|
54
|
+
articleBubble: {
|
|
55
|
+
bg_color: '#212121',
|
|
56
|
+
color: '#e2e4e6',
|
|
57
|
+
border_color: '#161515'
|
|
58
|
+
},
|
|
59
|
+
iMDateTime: {
|
|
60
|
+
color: '#999'
|
|
61
|
+
},
|
|
62
|
+
textBubble: {
|
|
63
|
+
see_more_color: primaryOrange,
|
|
64
|
+
url_color: primaryOrange
|
|
39
65
|
}
|
|
40
66
|
}
|
|
41
67
|
};
|
|
@@ -1,41 +1,67 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, primaryRed } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: '#5a616f'
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
14
|
+
bg_color: '#f1f7fe',
|
|
15
|
+
failed_bg_color: '#fcebeb',
|
|
16
16
|
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: '#2f2424',
|
|
21
|
+
border_color: '#492A29'
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: '#e94f4f',
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
28
|
},
|
|
29
29
|
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color:
|
|
31
|
-
fileSize_color:
|
|
30
|
+
fileName_color: '#e2e4e6',
|
|
31
|
+
fileSize_color: '#788190'
|
|
32
32
|
},
|
|
33
33
|
attachmentBubble: {
|
|
34
|
-
bg_color:
|
|
35
|
-
border_color:
|
|
34
|
+
bg_color: '#212121',
|
|
35
|
+
border_color: '#161515'
|
|
36
36
|
},
|
|
37
37
|
imTicketLink: {
|
|
38
|
-
color:
|
|
38
|
+
color: '#e94f4f'
|
|
39
|
+
},
|
|
40
|
+
ReplyBubbleContent: {
|
|
41
|
+
bg_color: '#212121',
|
|
42
|
+
color: '#e2e4e6',
|
|
43
|
+
border_color: '#161515',
|
|
44
|
+
line_color: '#cddbf2'
|
|
45
|
+
},
|
|
46
|
+
imageBubble: {
|
|
47
|
+
bg_color: '#212121'
|
|
48
|
+
},
|
|
49
|
+
locationBubble: {
|
|
50
|
+
bg_color: '#212121',
|
|
51
|
+
color: primaryRed,
|
|
52
|
+
border_color: '#161515'
|
|
53
|
+
},
|
|
54
|
+
articleBubble: {
|
|
55
|
+
bg_color: '#212121',
|
|
56
|
+
color: '#e2e4e6',
|
|
57
|
+
border_color: '#161515'
|
|
58
|
+
},
|
|
59
|
+
iMDateTime: {
|
|
60
|
+
color: '#999'
|
|
61
|
+
},
|
|
62
|
+
textBubble: {
|
|
63
|
+
see_more_color: primaryRed,
|
|
64
|
+
url_color: primaryRed
|
|
39
65
|
}
|
|
40
66
|
}
|
|
41
67
|
};
|
|
@@ -1,41 +1,67 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconColor } from
|
|
3
|
-
import { imIntegrationIcon, messagetextColor } from
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconColor, primaryYellow } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon, messagetextColor } from '../commonDeskColorVariable';
|
|
4
4
|
export default {
|
|
5
|
-
library:
|
|
5
|
+
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
7
|
messageBubble: {
|
|
8
8
|
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color:
|
|
9
|
+
messageBox_footer_text_color: '#5a616f'
|
|
10
10
|
},
|
|
11
11
|
messageBox: {
|
|
12
12
|
incoming_bg_color: incomingBubbleBgColor,
|
|
13
13
|
outgoing_bg_color: outgoingBubbleBgColor,
|
|
14
|
-
bg_color:
|
|
15
|
-
failed_bg_color:
|
|
14
|
+
bg_color: '#f1f7fe',
|
|
15
|
+
failed_bg_color: '#362734',
|
|
16
16
|
text_color: messagetextColor
|
|
17
17
|
},
|
|
18
18
|
actionIcon: {
|
|
19
19
|
color: actionIconColor,
|
|
20
|
-
bg_color:
|
|
21
|
-
border_color:
|
|
20
|
+
bg_color: '#2e2922',
|
|
21
|
+
border_color: '#453925'
|
|
22
22
|
},
|
|
23
23
|
imIntegrationIcon,
|
|
24
24
|
messageStatus: {
|
|
25
25
|
send_color: messageStatusSendColor,
|
|
26
|
-
read_color:
|
|
26
|
+
read_color: '#d79835',
|
|
27
27
|
failed_color: messageStatusFailedColor
|
|
28
28
|
},
|
|
29
29
|
attachmentBubbleInfo: {
|
|
30
|
-
fileName_color:
|
|
31
|
-
fileSize_color:
|
|
30
|
+
fileName_color: '#e2e4e6',
|
|
31
|
+
fileSize_color: '#788190'
|
|
32
32
|
},
|
|
33
33
|
attachmentBubble: {
|
|
34
|
-
bg_color:
|
|
35
|
-
border_color:
|
|
34
|
+
bg_color: '#212121',
|
|
35
|
+
border_color: '#161515'
|
|
36
36
|
},
|
|
37
37
|
imTicketLink: {
|
|
38
|
-
color:
|
|
38
|
+
color: '#d79835'
|
|
39
|
+
},
|
|
40
|
+
ReplyBubbleContent: {
|
|
41
|
+
bg_color: '#212121',
|
|
42
|
+
color: '#e2e4e6',
|
|
43
|
+
border_color: '#161515',
|
|
44
|
+
line_color: '#cddbf2'
|
|
45
|
+
},
|
|
46
|
+
imageBubble: {
|
|
47
|
+
bg_color: '#212121'
|
|
48
|
+
},
|
|
49
|
+
locationBubble: {
|
|
50
|
+
bg_color: '#212121',
|
|
51
|
+
color: primaryYellow,
|
|
52
|
+
border_color: '#161515'
|
|
53
|
+
},
|
|
54
|
+
articleBubble: {
|
|
55
|
+
bg_color: '#212121',
|
|
56
|
+
color: '#e2e4e6',
|
|
57
|
+
border_color: '#161515'
|
|
58
|
+
},
|
|
59
|
+
iMDateTime: {
|
|
60
|
+
color: '#999'
|
|
61
|
+
},
|
|
62
|
+
textBubble: {
|
|
63
|
+
see_more_color: primaryYellow,
|
|
64
|
+
url_color: primaryYellow
|
|
39
65
|
}
|
|
40
66
|
}
|
|
41
67
|
};
|
|
@@ -44,7 +44,7 @@ import crmPureDarkGreen from '../crm/pureDark/greenTheme';
|
|
|
44
44
|
import crmPureDarkOrange from '../crm/pureDark/orangeTheme';
|
|
45
45
|
import crmPureDarkPink from '../crm/pureDark/pinkTheme';
|
|
46
46
|
import crmPureDarkTeal from '../crm/pureDark/tealTheme';
|
|
47
|
-
import crmPureDarkWhite from '../crm/pureDark/whiteTheme'
|
|
47
|
+
import crmPureDarkWhite from '../crm/pureDark/whiteTheme'; */
|
|
48
48
|
|
|
49
49
|
const deskModeMapping = {
|
|
50
50
|
[modeConstants.LIGHT]: 'default',
|
|
@@ -59,7 +59,7 @@ const deskThemeMapping = {
|
|
|
59
59
|
[themeConstants.YELLOW]: 'yellow'
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
/*const crmThemeMapping = {
|
|
62
|
+
/* const crmThemeMapping = {
|
|
63
63
|
[themeConstants.BLUE_FAN]: 'crmBlue',
|
|
64
64
|
[themeConstants.BLUE]: 'crmBlue',
|
|
65
65
|
[themeConstants.DARK_BLUE]: 'crmBlue',
|
|
@@ -70,7 +70,7 @@ const deskThemeMapping = {
|
|
|
70
70
|
[themeConstants.ORANGE]: 'crmOrange',
|
|
71
71
|
[themeConstants.PINK]: 'crmPink',
|
|
72
72
|
[themeConstants.TEAL]: 'crmTeal'
|
|
73
|
-
}
|
|
73
|
+
}; */
|
|
74
74
|
|
|
75
75
|
const concatString = '_';
|
|
76
76
|
const defaultDeskTheme = deskThemeMapping[themeConstants.BLUE];
|
|
@@ -92,7 +92,7 @@ const themeConfigMapping = {
|
|
|
92
92
|
[`${appConstants.DESK}${concatString}${modeConstants.PURE_DARK}${concatString}${themeConstants.ORANGE}`]: deskPureDarkOrange,
|
|
93
93
|
[`${appConstants.DESK}${concatString}${modeConstants.PURE_DARK}${concatString}${themeConstants.RED}`]: deskPureDarkRed,
|
|
94
94
|
[`${appConstants.DESK}${concatString}${modeConstants.PURE_DARK}${concatString}${themeConstants.YELLOW}`]: deskPureDarkYellow
|
|
95
|
-
/*[`${appConstants.CRM}${concatString}${modeConstants.LIGHT}${concatString}${themeConstants.BLUE_FAN}`]:
|
|
95
|
+
/* [`${appConstants.CRM}${concatString}${modeConstants.LIGHT}${concatString}${themeConstants.BLUE_FAN}`]:
|
|
96
96
|
crmLightBlueFan,
|
|
97
97
|
[`${appConstants.CRM}${concatString}${modeConstants.LIGHT}${concatString}${themeConstants.BLUE}`]:
|
|
98
98
|
crmLightBlue,
|
|
@@ -145,7 +145,7 @@ const themeConfigMapping = {
|
|
|
145
145
|
[`${appConstants.CRM}${concatString}${modeConstants.PURE_DARK}${concatString}${themeConstants.TEAL}`]:
|
|
146
146
|
crmPureDarkTeal,
|
|
147
147
|
[`${appConstants.CRM}${concatString}${modeConstants.PURE_DARK}${concatString}${themeConstants.WHITE}`]:
|
|
148
|
-
crmPureDarkWhite*/
|
|
148
|
+
crmPureDarkWhite */
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
function getThemeName() {
|
package/es/Video/Video.js
CHANGED
|
@@ -13,12 +13,14 @@ import videoDefaultProps from './props/defaultProps';
|
|
|
13
13
|
import videoPropTypes from './props/propTypes';
|
|
14
14
|
|
|
15
15
|
/** ** Methods *** */
|
|
16
|
-
import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
|
|
17
16
|
import cssJSLogic from './css/cssJSLogic';
|
|
18
17
|
|
|
19
18
|
/** ** Styles *** */
|
|
20
19
|
import style from './css/Video.module.css';
|
|
21
|
-
|
|
20
|
+
|
|
21
|
+
/** ** Components *** */
|
|
22
|
+
// import MediaControls from '../MediaControls/MediaControls';
|
|
23
|
+
|
|
22
24
|
export default function Video(props) {
|
|
23
25
|
const {
|
|
24
26
|
customStyle,
|
|
@@ -26,12 +28,12 @@ export default function Video(props) {
|
|
|
26
28
|
fileURL
|
|
27
29
|
} = props;
|
|
28
30
|
const {
|
|
29
|
-
mediaElementRef
|
|
30
|
-
durationTime,
|
|
31
|
-
onTogglePlay,
|
|
32
|
-
currentTime,
|
|
33
|
-
progressPercentage,
|
|
34
|
-
isMediaPlayed
|
|
31
|
+
mediaElementRef
|
|
32
|
+
// durationTime,
|
|
33
|
+
// onTogglePlay,
|
|
34
|
+
// currentTime,
|
|
35
|
+
// progressPercentage,
|
|
36
|
+
// isMediaPlayed
|
|
35
37
|
} = useMedia(props);
|
|
36
38
|
|
|
37
39
|
/* External customization */
|
|
@@ -44,13 +46,13 @@ export default function Video(props) {
|
|
|
44
46
|
/*#__PURE__*/
|
|
45
47
|
// <div className={videoWrapperClass}>
|
|
46
48
|
React.createElement("video", {
|
|
47
|
-
controls: true,
|
|
48
49
|
className: videoClass,
|
|
50
|
+
controls: true,
|
|
49
51
|
preload: "metadata",
|
|
50
52
|
ref: mediaElementRef
|
|
51
53
|
}, /*#__PURE__*/React.createElement("source", {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
"data-src": fileURL,
|
|
55
|
+
type: fileType
|
|
54
56
|
}))
|
|
55
57
|
/* <MediaControls
|
|
56
58
|
customStyle={controlsCustomStyle}
|
|
@@ -60,7 +62,6 @@ export default function Video(props) {
|
|
|
60
62
|
currentTime={currentTime}
|
|
61
63
|
durationTime={durationTime}
|
|
62
64
|
/> */
|
|
63
|
-
// </div>
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -12,7 +12,6 @@ import videoBubbleDefaultProps from './props/defaultProps';
|
|
|
12
12
|
import videoBubblePropTypes from './props/propTypes';
|
|
13
13
|
|
|
14
14
|
/** ** Methods *** */
|
|
15
|
-
import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
|
|
16
15
|
import cssJSLogic from './css/cssJSLogic';
|
|
17
16
|
|
|
18
17
|
/** ** Styles *** */
|
|
@@ -46,10 +45,10 @@ export default function VideoBubble(props) {
|
|
|
46
45
|
}), /*#__PURE__*/React.createElement("div", {
|
|
47
46
|
className: videoBubbleClass
|
|
48
47
|
}, /*#__PURE__*/React.createElement(Video, {
|
|
48
|
+
controlsCustomStyle: controlsCustomStyle,
|
|
49
49
|
customStyle: videoCustomStyle,
|
|
50
|
-
fileURL: fileURL,
|
|
51
50
|
fileType: fileType,
|
|
52
|
-
|
|
51
|
+
fileURL: fileURL
|
|
53
52
|
})));
|
|
54
53
|
}
|
|
55
54
|
VideoBubble.propTypes = videoBubblePropTypes;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
function iconTemplate(_ref) {
|
|
2
2
|
let {
|
|
3
3
|
path,
|
|
4
|
-
name,
|
|
5
4
|
value
|
|
6
5
|
} = _ref;
|
|
7
6
|
return `
|
|
7
|
+
/* eslint-disable */
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import Icon from '${path}';
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ function indexTemplate(_ref2) {
|
|
|
19
19
|
name,
|
|
20
20
|
path
|
|
21
21
|
} = _ref2;
|
|
22
|
-
return `export { default as ${name} } from
|
|
22
|
+
return `export { default as ${name} } from '${path}';`;
|
|
23
23
|
}
|
|
24
24
|
module.exports = {
|
|
25
25
|
iconTemplate,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as ConvertTicket } from
|
|
1
|
+
export { default as ConvertTicket } from './ConvertTicket';
|