@zohoim/chat-components 0.0.15 → 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.
Files changed (142) hide show
  1. package/es/ActionIcon/ActionIcon.js +2 -0
  2. package/es/ActionIconWrapper/ActionIconWrapper.js +6 -2
  3. package/es/ActionIconWrapper/props/propTypes.js +1 -0
  4. package/es/AttachmentBubble/AttachmentBubble.js +24 -8
  5. package/es/AttachmentBubble/css/AttachmentBubble.module.css +15 -1
  6. package/es/AttachmentBubble/css/cssJSLogic.js +15 -0
  7. package/es/AttachmentBubble/props/propTypes.js +2 -1
  8. package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +13 -2
  9. package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +9 -0
  10. package/es/AttachmentBubbleInfo/css/cssJSLogic.js +13 -0
  11. package/es/AttachmentBubbleInfo/props/propTypes.js +2 -1
  12. package/es/AttachmentIcon/AttachmentIcon.js +3 -1
  13. package/es/AttachmentIcon/css/AttachmentIcon.module.css +2 -2
  14. package/es/AttachmentIcon/props/propTypes.js +6 -0
  15. package/es/AttachmentIcon/utils/getAttachmentIconComponent.js +4 -3
  16. package/es/AudioBubble/AudioBubble.js +5 -2
  17. package/es/AudioBubble/props/propTypes.js +2 -1
  18. package/es/ImageBubble/ImageBubble.js +13 -2
  19. package/es/ImageBubble/css/ImageBubble.module.css +8 -2
  20. package/es/ImageBubble/css/cssJSLogic.js +13 -0
  21. package/es/ImageBubble/props/propTypes.js +2 -1
  22. package/es/LocationBubble/LocationBubble.js +13 -2
  23. package/es/LocationBubble/css/LocationBubble.module.css +14 -1
  24. package/es/LocationBubble/css/cssJSLogic.js +13 -0
  25. package/es/LocationBubble/props/propTypes.js +2 -1
  26. package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +5 -2
  27. package/es/MediaBubbleWrapper/props/propTypes.js +2 -1
  28. package/es/Message/Message.js +4 -2
  29. package/es/MessageAction/MessageAction.js +3 -0
  30. package/es/MessageAction/props/propTypes.js +1 -0
  31. package/es/MessageActions/MessageActions.js +14 -2
  32. package/es/MessageActions/props/propTypes.js +1 -0
  33. package/es/MessageBox/MessageBox.js +2 -2
  34. package/es/MessageBubble/MessageBubble.js +16 -11
  35. package/es/MessageStatus/css/MessageStatus.module.css +0 -3
  36. package/es/MoreActionItem/MoreActionItem.js +8 -0
  37. package/es/MoreActionItem/props/propTypes.js +1 -0
  38. package/es/ReplyBubble/ReplyBubble.js +32 -13
  39. package/es/ReplyBubble/css/ReplyBubble.module.css +1 -1
  40. package/es/ReplyBubble/props/propTypes.js +8 -2
  41. package/es/ReplyBubbleContent/ReplyBubbleContent.js +11 -2
  42. package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +21 -3
  43. package/es/ReplyBubbleContent/css/cssJSLogic.js +13 -0
  44. package/es/ReplyBubbleContent/props/propTypes.js +2 -1
  45. package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +20 -5
  46. package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +12 -0
  47. package/es/ReplyBubbleHeader/css/cssJSLogic.js +12 -0
  48. package/es/ReplyBubbleHeader/props/defaultProps.js +2 -1
  49. package/es/ReplyBubbleHeader/props/propTypes.js +6 -2
  50. package/es/TextBubble/TextBubble.js +15 -3
  51. package/es/TextBubble/css/TextBubble.module.css +13 -0
  52. package/es/TextBubble/css/cssJSLogic.js +18 -0
  53. package/es/TextBubble/props/propTypes.js +2 -1
  54. package/es/Theme/themeVariables/commonThemeColorVariable.js +1 -2
  55. package/es/Theme/themeVariables/dark/blueTheme.js +97 -40
  56. package/es/Theme/themeVariables/dark/commonColorVariable.js +7 -1
  57. package/es/Theme/themeVariables/dark/greenTheme.js +95 -38
  58. package/es/Theme/themeVariables/dark/orangeTheme.js +94 -37
  59. package/es/Theme/themeVariables/dark/redTheme.js +94 -46
  60. package/es/Theme/themeVariables/dark/yellowTheme.js +94 -37
  61. package/es/Theme/themeVariables/light/blueTheme.js +96 -35
  62. package/es/Theme/themeVariables/light/commonColorVariable.js +8 -1
  63. package/es/Theme/themeVariables/light/greenTheme.js +96 -35
  64. package/es/Theme/themeVariables/light/orangeTheme.js +97 -34
  65. package/es/Theme/themeVariables/light/redTheme.js +97 -34
  66. package/es/Theme/themeVariables/light/yellowTheme.js +96 -35
  67. package/es/Theme/themeVariables/pureDark/blueTheme.js +93 -37
  68. package/es/Theme/themeVariables/pureDark/commonColorVariable.js +7 -1
  69. package/es/Theme/themeVariables/pureDark/greenTheme.js +94 -37
  70. package/es/Theme/themeVariables/pureDark/orangeTheme.js +94 -37
  71. package/es/Theme/themeVariables/pureDark/redTheme.js +94 -37
  72. package/es/Theme/themeVariables/pureDark/yellowTheme.js +94 -37
  73. package/es/VideoBubble/VideoBubble.js +5 -2
  74. package/es/VideoBubble/props/propTypes.js +2 -1
  75. package/es/icons/iconSrc/attachments/Text.js +47 -0
  76. package/es/icons/iconSrc/attachments/index.js +1 -1
  77. package/es/im/ArticleBubble/ArticleBubble.js +16 -3
  78. package/es/im/ArticleBubble/css/ArticleBubble.module.css +18 -3
  79. package/es/im/ArticleBubble/css/cssJSLogic.js +12 -0
  80. package/es/im/ArticleBubble/props/propTypes.js +2 -1
  81. package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +1 -0
  82. package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +1 -6
  83. package/es/im/IMMessage/IMMessage.js +28 -4
  84. package/es/im/IMMessage/props/propTypes.js +25 -1
  85. package/es/im/IMMessageContent/IMMessageContent.js +39 -42
  86. package/es/im/IMMessageContent/css/IMMessageContent.module.css +6 -2
  87. package/es/im/IMMessageContent/props/propTypes.js +7 -2
  88. package/es/im/IMMessageMeta/IMMessageMeta.js +8 -8
  89. package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +1 -1
  90. package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
  91. package/es/im/IMPermaLink/css/IMPermaLink.module.css +1 -1
  92. package/es/im/IMReplyBubble/IMReplyBubble.js +10 -5
  93. package/es/im/IMReplyBubble/props/propTypes.js +7 -2
  94. package/es/im/IMTextBubble/IMTextBubble.js +5 -2
  95. package/es/im/IMTextBubble/props/propTypes.js +2 -1
  96. package/es/im/css/common.module.css +2 -2
  97. package/es/im/index.js +0 -1
  98. package/es/index.js +0 -1
  99. package/package.json +4 -21
  100. package/es/InfoBubble/InfoBubble.js +0 -34
  101. package/es/InfoBubble/css/InfoBubble.module.css +0 -0
  102. package/es/InfoBubble/css/cssJSLogic.js +0 -10
  103. package/es/InfoBubble/index.js +0 -1
  104. package/es/InfoBubble/props/defaultProps.js +0 -6
  105. package/es/InfoBubble/props/propTypes.js +0 -6
  106. package/es/Theme/crm/dark/blueFanTheme.js +0 -28
  107. package/es/Theme/crm/dark/blueTheme.js +0 -28
  108. package/es/Theme/crm/dark/commonColorVariable.js +0 -11
  109. package/es/Theme/crm/dark/darkBlueTheme.js +0 -28
  110. package/es/Theme/crm/dark/darkGreyTheme.js +0 -28
  111. package/es/Theme/crm/dark/greenTheme.js +0 -28
  112. package/es/Theme/crm/dark/orangeTheme.js +0 -28
  113. package/es/Theme/crm/dark/pinkTheme.js +0 -28
  114. package/es/Theme/crm/dark/tealTheme.js +0 -28
  115. package/es/Theme/crm/dark/whiteTheme.js +0 -28
  116. package/es/Theme/crm/light/blueFanTheme.js +0 -28
  117. package/es/Theme/crm/light/blueTheme.js +0 -31
  118. package/es/Theme/crm/light/commonColorVariable.js +0 -9
  119. package/es/Theme/crm/light/darkBlueTheme.js +0 -28
  120. package/es/Theme/crm/light/darkGreyTheme.js +0 -28
  121. package/es/Theme/crm/light/greenTheme.js +0 -28
  122. package/es/Theme/crm/light/orangeTheme.js +0 -28
  123. package/es/Theme/crm/light/pinkTheme.js +0 -28
  124. package/es/Theme/crm/light/tealTheme.js +0 -28
  125. package/es/Theme/crm/light/whiteTheme.js +0 -28
  126. package/es/Theme/crm/pureDark/blueFanTheme.js +0 -28
  127. package/es/Theme/crm/pureDark/blueTheme.js +0 -28
  128. package/es/Theme/crm/pureDark/commonColorVariable.js +0 -9
  129. package/es/Theme/crm/pureDark/darkBlueTheme.js +0 -28
  130. package/es/Theme/crm/pureDark/darkGreyTheme.js +0 -28
  131. package/es/Theme/crm/pureDark/greenTheme.js +0 -28
  132. package/es/Theme/crm/pureDark/orangeTheme.js +0 -28
  133. package/es/Theme/crm/pureDark/pinkTheme.js +0 -28
  134. package/es/Theme/crm/pureDark/tealTheme.js +0 -28
  135. package/es/Theme/crm/pureDark/whiteTheme.js +0 -28
  136. package/es/im/IMInfoBubble/IMInfoBubble.js +0 -34
  137. package/es/im/IMInfoBubble/css/IMInfoBubble.module.css +0 -0
  138. package/es/im/IMInfoBubble/css/cssJSLogic.js +0 -10
  139. package/es/im/IMInfoBubble/index.js +0 -1
  140. package/es/im/IMInfoBubble/props/defaultProps.js +0 -6
  141. package/es/im/IMInfoBubble/props/propTypes.js +0 -6
  142. /package/es/icons/factory/attachments/{txt.svg → text.svg} +0 -0
@@ -1,67 +1,124 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
3
  import { imIntegrationIcon, messagetextColor } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
7
- messageBubble: {
8
- active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
10
- },
11
- messageBox: {
12
- incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#303338',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#362734',
16
- text_color: messagetextColor
17
- },
7
+ // ActionIcon: {},
18
8
  actionIconWrapper: {
19
9
  color: actionIconWrapperColor,
20
10
  bg_color: '#303338',
21
11
  border_color: '#474137'
22
12
  },
23
- imIntegrationIcon,
24
- messageStatus: {
25
- send_color: messageStatusSendColor,
26
- read_color: '#d79835',
27
- failed_color: messageStatusFailedColor
13
+ attachmentBubble: {
14
+ bg_color: '#232b38',
15
+ bg_color_failed: failedBg,
16
+ border_color: '#2d3748',
17
+ border_color_failed: failedBdr
28
18
  },
29
19
  attachmentBubbleInfo: {
30
20
  fileName_color: '#e2e4e6',
31
- fileSize_color: '#788190'
21
+ fileName_color_failed: failedColor,
22
+ fileSize_color: '#788190',
23
+ fileSize_color_failed: failedColor
32
24
  },
33
- attachmentBubble: {
25
+ // AttachmentIcon: {},
26
+ // Audio: {},
27
+ // AudioBubble: {},
28
+ articleBubble: {
34
29
  bg_color: '#232b38',
35
- border_color: '#2d3748'
30
+ bg_color_failed: failedBg,
31
+ border_color: '#2d3748',
32
+ border_color_failed: failedBdr,
33
+ title_color: '#e2e4e6',
34
+ title_color_failed: failedColor,
35
+ summary_color: '#e2e4e6',
36
+ summary_color_failed: failedColor
36
37
  },
37
- imPermaLink: {
38
- color: '#d79835'
38
+ imAutoMessageInfo: {
39
+ text_color: '#828994'
39
40
  },
40
- replyBubbleContent: {
41
- bg_color: '#232b38',
42
- color: '#e2e4e6',
43
- border_color: '#2d3748',
44
- line_color: '#cddbf2'
41
+ // IMInfoBubble: {},
42
+ imIntegrationIcon,
43
+ // IMMessage: {},
44
+ // IMMessageContent: {},
45
+ imMessageMeta: {
46
+ time_color: '#a8b0bd'
47
+ },
48
+ imPermaLink: {
49
+ url_color: '#d79835'
45
50
  },
51
+ // IMReplyBubble: {},
52
+ // IMTextBubble: {},
46
53
  imageBubble: {
47
- bg_color: '#232b38'
54
+ bg_color: '#232b38',
55
+ bg_color_failed: failedBg,
56
+ alt_text_color: '#e2e4e6',
57
+ alt_text_color_failed: failedColor
48
58
  },
59
+ // IMReplyBubble: {},
60
+ // InfoBubble: {},
61
+ // LazyLoadImage: {},
49
62
  locationBubble: {
50
63
  bg_color: '#232b38',
51
- color: primaryYellow,
52
- border_color: '#2d3748'
64
+ bg_color_failed: failedBg,
65
+ border_color: '#2d3748',
66
+ border_color_failed: failedBdr,
67
+ url_color: primaryYellow,
68
+ url_color_failed: failedUrlColor
53
69
  },
54
- articleBubble: {
70
+ // MediaBubbleWrapper: {},
71
+ // Message: {},
72
+ // MessageAction: {},
73
+ // MessageActions: {},
74
+ // MessageActionsMore: {},
75
+ // MessageActionsWrapper: {},
76
+ // MessageAvatar: {},
77
+ messageBox: {
78
+ incoming_bg_color: incomingBubbleBgColor,
79
+ outgoing_bg_color: '#303338',
80
+ bg_color: '#f1f7fe',
81
+ failed_bg_color: failedBgWrapper,
82
+ text_color: messagetextColor
83
+ },
84
+ messageBubble: {
85
+ active_bg_color: bubbleActiveBgColor,
86
+ messageBox_footer_text_color: '#5a616f'
87
+ },
88
+ messageStatus: {
89
+ send_color: messageStatusSendColor,
90
+ read_color: '#d79835',
91
+ failed_color: messageStatusFailedColor
92
+ },
93
+ // MoreActionItem: {},
94
+ // ReplyBubble: {},
95
+ replyBubbleContent: {
55
96
  bg_color: '#232b38',
56
- color: '#e2e4e6',
57
- border_color: '#2d3748'
97
+ bg_color_failed: failedBg,
98
+ border_color: '#2d3748',
99
+ border_color_failed: failedBdr,
100
+ line_color: '#cddbf2',
101
+ line_color_failed: failedLine,
102
+ sender_color: '#e2e4e6',
103
+ sender_color_failed: failedColor,
104
+ content_color: '#e2e4e6',
105
+ content_color_failed: failedColor
58
106
  },
59
- imMessageMeta: {
60
- timeColor: '#a8b0bd'
107
+ replyBubbleHeader: {
108
+ text_color: '#e2e4e6',
109
+ text_color_failed: failedColor,
110
+ time_color: '#828994',
111
+ time_color_failed: failedColor
61
112
  },
62
113
  textBubble: {
114
+ text_color: '#e2e4e6',
115
+ text_color_failed: failedColor,
63
116
  see_more_color: primaryYellow,
64
- url_color: primaryYellow
65
- }
117
+ see_more_color_failed: failedUrlColor,
118
+ url_color: primaryYellow,
119
+ url_color_failed: failedUrlColor
120
+ } // Video: {},
121
+ // VideoBubble: {}
122
+
66
123
  }
67
124
  };
@@ -1,63 +1,124 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
3
  import { imIntegrationIcon } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
7
- messageBubble: {
8
- active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
10
- },
11
- messageBox: {
12
- incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#f1f7fe',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: messagetextColor
17
- },
7
+ // ActionIcon: {},
18
8
  actionIconWrapper: {
19
9
  color: actionIconWrapperColor,
20
10
  bg_color: '#f1f7fe',
21
11
  border_color: '#b7d1f0'
22
12
  },
23
- imIntegrationIcon,
24
- messageStatus: {
25
- send_color: messageStatusSendColor,
26
- read_color: primaryBlue,
27
- failed_color: messageStatusFailedColor
28
- },
29
13
  attachmentBubble: {
30
14
  bg_color: white,
31
- border_color: '#ebf0f5'
15
+ bg_color_failed: failedBg,
16
+ border_color: '#ebf0f5',
17
+ border_color_failed: failedBdr
32
18
  },
33
- replyBubbleContent: {
19
+ attachmentBubbleInfo: {
20
+ fileName_color: black,
21
+ fileName_color_failed: failedColor,
22
+ fileSize_color: '#5a616f',
23
+ fileSize_color_failed: failedColor
24
+ },
25
+ // AttachmentIcon: {},
26
+ // Audio: {},
27
+ // AudioBubble: {},
28
+ articleBubble: {
34
29
  bg_color: white,
35
- color: '#000',
30
+ bg_color_failed: failedBg,
36
31
  border_color: '#ebf0f5',
37
- line_color: '#cddbf2'
32
+ border_color_failed: failedBdr,
33
+ title_color: black,
34
+ title_color_failed: failedColor,
35
+ summary_color: black,
36
+ summary_color_failed: failedColor
38
37
  },
38
+ imAutoMessageInfo: {
39
+ text_color: '#737376'
40
+ },
41
+ // IMInfoBubble: {},
42
+ imIntegrationIcon,
43
+ // IMMessage: {},
44
+ // IMMessageContent: {},
45
+ imMessageMeta: {
46
+ time_color: '#5a616f'
47
+ },
48
+ imPermaLink: {
49
+ url_color: primaryBlue
50
+ },
51
+ // IMReplyBubble: {},
52
+ // IMTextBubble: {},
39
53
  imageBubble: {
40
- bg_color: white
54
+ bg_color: white,
55
+ bg_color_failed: failedBg,
56
+ alt_text_color: black,
57
+ alt_text_color_failed: failedColor
41
58
  },
59
+ // IMReplyBubble: {},
60
+ // InfoBubble: {},
61
+ // LazyLoadImage: {},
42
62
  locationBubble: {
43
63
  bg_color: white,
44
- color: primaryBlue,
45
- border_color: '#ebf0f5'
64
+ bg_color_failed: failedBg,
65
+ border_color: '#ebf0f5',
66
+ border_color_failed: failedBdr,
67
+ url_color: primaryBlue,
68
+ url_color_failed: failedUrlColor
46
69
  },
47
- articleBubble: {
70
+ // MediaBubbleWrapper: {},
71
+ // Message: {},
72
+ // MessageAction: {},
73
+ // MessageActions: {},
74
+ // MessageActionsMore: {},
75
+ // MessageActionsWrapper: {},
76
+ // MessageAvatar: {},
77
+ messageBox: {
78
+ incoming_bg_color: incomingBubbleBgColor,
79
+ outgoing_bg_color: '#f1f7fe',
80
+ bg_color: '#f1f7fe',
81
+ failed_bg_color: failedBgWrapper,
82
+ text_color: messagetextColor
83
+ },
84
+ messageBubble: {
85
+ active_bg_color: bubbleActiveBgColor,
86
+ messageBox_footer_text_color: '#5a616f'
87
+ },
88
+ messageStatus: {
89
+ send_color: messageStatusSendColor,
90
+ read_color: primaryBlue,
91
+ failed_color: messageStatusFailedColor
92
+ },
93
+ // MoreActionItem: {},
94
+ // ReplyBubble: {},
95
+ replyBubbleContent: {
48
96
  bg_color: white,
49
- color: '#000',
50
- border_color: '#ebf0f5'
97
+ bg_color_failed: failedBg,
98
+ border_color: '#ebf0f5',
99
+ border_color_failed: failedBdr,
100
+ line_color: '#cddbf2',
101
+ line_color_failed: failedLine,
102
+ sender_color: black,
103
+ sender_color_failed: failedColor,
104
+ content_color: '#5a616f',
105
+ content_color_failed: failedColor
51
106
  },
52
- imPermaLink: {
53
- color: primaryBlue
107
+ replyBubbleHeader: {
108
+ text_color: black,
109
+ text_color_failed: failedColor,
110
+ time_color: '#61667a',
111
+ time_color_failed: failedColor
54
112
  },
55
113
  textBubble: {
114
+ text_color: black,
115
+ text_color_failed: failedColor,
56
116
  see_more_color: primaryBlue,
57
- url_color: primaryBlue
58
- },
59
- imMessageMeta: {
60
- timeColor: '#5a616f'
61
- }
117
+ see_more_color_failed: failedUrlColor,
118
+ url_color: primaryBlue,
119
+ url_color_failed: failedUrlColor
120
+ } // Video: {},
121
+ // VideoBubble: {}
122
+
62
123
  }
63
124
  };
@@ -5,8 +5,15 @@ export const messageStatusSendColor = '#61667a';
5
5
  export const messageStatusFailedColor = '#de3535';
6
6
  export const messagetextColor = '#000';
7
7
  export const white = '#fff';
8
+ export const black = '#000';
8
9
  export const primaryBlue = '#0a73eb';
9
10
  export const primaryGreen = '#26a942';
10
11
  export const primaryOrange = '#e57717';
11
12
  export const primaryRed = '#de3535';
12
- export const primaryYellow = '#b68c07';
13
+ export const primaryYellow = '#b68c07';
14
+ export const failedBgWrapper = '#fcebeb';
15
+ export const failedBg = '#fff0f0';
16
+ export const failedBdr = '#ffd6d6';
17
+ export const failedLine = '#ffd6d6';
18
+ export const failedColor = '#000';
19
+ export const failedUrlColor = '#0a73eb';
@@ -1,63 +1,124 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
3
  import { imIntegrationIcon } from '../commonThemeColorVariable';
4
4
  export default {
5
5
  library: 'chat_components',
6
6
  variables: {
7
- messageBubble: {
8
- active_bg_color: bubbleActiveBgColor,
9
- messageBox_footer_text_color: '#5a616f'
10
- },
11
- messageBox: {
12
- incoming_bg_color: incomingBubbleBgColor,
13
- outgoing_bg_color: '#f2faf5',
14
- bg_color: '#f1f7fe',
15
- failed_bg_color: '#fcebeb',
16
- text_color: messagetextColor
17
- },
7
+ // ActionIcon: {},
18
8
  actionIconWrapper: {
19
9
  color: actionIconWrapperColor,
20
10
  bg_color: '#f2faf5',
21
11
  border_color: '#bee5c6'
22
12
  },
23
- imIntegrationIcon,
24
- messageStatus: {
25
- send_color: messageStatusSendColor,
26
- read_color: '#26a942',
27
- failed_color: messageStatusFailedColor
28
- },
29
13
  attachmentBubble: {
30
14
  bg_color: white,
31
- border_color: '#ebf0f5'
15
+ bg_color_failed: failedBg,
16
+ border_color: '#ebf0f5',
17
+ border_color_failed: failedBdr
32
18
  },
33
- replyBubbleContent: {
19
+ attachmentBubbleInfo: {
20
+ fileName_color: black,
21
+ fileName_color_failed: failedColor,
22
+ fileSize_color: '#5a616f',
23
+ fileSize_color_failed: failedColor
24
+ },
25
+ // AttachmentIcon: {},
26
+ // Audio: {},
27
+ // AudioBubble: {},
28
+ articleBubble: {
34
29
  bg_color: white,
35
- color: '#000',
30
+ bg_color_failed: failedBg,
36
31
  border_color: '#ebf0f5',
37
- line_color: '#cddbf2'
32
+ border_color_failed: failedBdr,
33
+ title_color: black,
34
+ title_color_failed: failedColor,
35
+ summary_color: black,
36
+ summary_color_failed: failedColor
38
37
  },
38
+ imAutoMessageInfo: {
39
+ text_color: '#737376'
40
+ },
41
+ // IMInfoBubble: {},
42
+ imIntegrationIcon,
43
+ // IMMessage: {},
44
+ // IMMessageContent: {},
45
+ imMessageMeta: {
46
+ time_color: '#5a616f'
47
+ },
48
+ imPermaLink: {
49
+ url_color: primaryGreen
50
+ },
51
+ // IMReplyBubble: {},
52
+ // IMTextBubble: {},
39
53
  imageBubble: {
40
- bg_color: white
54
+ bg_color: white,
55
+ bg_color_failed: failedBg,
56
+ alt_text_color: black,
57
+ alt_text_color_failed: failedColor
41
58
  },
59
+ // IMReplyBubble: {},
60
+ // InfoBubble: {},
61
+ // LazyLoadImage: {},
42
62
  locationBubble: {
43
63
  bg_color: white,
44
- color: primaryGreen,
45
- border_color: '#ebf0f5'
64
+ bg_color_failed: failedBg,
65
+ border_color: '#ebf0f5',
66
+ border_color_failed: failedBdr,
67
+ url_color: primaryGreen,
68
+ url_color_failed: failedUrlColor
46
69
  },
47
- articleBubble: {
70
+ // MediaBubbleWrapper: {},
71
+ // Message: {},
72
+ // MessageAction: {},
73
+ // MessageActions: {},
74
+ // MessageActionsMore: {},
75
+ // MessageActionsWrapper: {},
76
+ // MessageAvatar: {},
77
+ messageBox: {
78
+ incoming_bg_color: incomingBubbleBgColor,
79
+ outgoing_bg_color: '#f2faf5',
80
+ bg_color: '#f1f7fe',
81
+ failed_bg_color: failedBgWrapper,
82
+ text_color: messagetextColor
83
+ },
84
+ messageBubble: {
85
+ active_bg_color: bubbleActiveBgColor,
86
+ messageBox_footer_text_color: '#5a616f'
87
+ },
88
+ messageStatus: {
89
+ send_color: messageStatusSendColor,
90
+ read_color: '#26a942',
91
+ failed_color: messageStatusFailedColor
92
+ },
93
+ // MoreActionItem: {},
94
+ // ReplyBubble: {},
95
+ replyBubbleContent: {
48
96
  bg_color: white,
49
- color: '#000',
50
- border_color: '#ebf0f5'
97
+ bg_color_failed: failedBg,
98
+ border_color: '#ebf0f5',
99
+ border_color_failed: failedBdr,
100
+ line_color: '#cddbf2',
101
+ line_color_failed: failedLine,
102
+ sender_color: black,
103
+ sender_color_failed: failedColor,
104
+ content_color: '#5a616f',
105
+ content_color_failed: failedColor
51
106
  },
52
- imPermaLink: {
53
- color: primaryGreen
107
+ replyBubbleHeader: {
108
+ text_color: black,
109
+ text_color_failed: failedColor,
110
+ time_color: '#61667a',
111
+ time_color_failed: failedColor
54
112
  },
55
113
  textBubble: {
114
+ text_color: black,
115
+ text_color_failed: failedColor,
56
116
  see_more_color: primaryGreen,
57
- url_color: primaryGreen
58
- },
59
- imMessageMeta: {
60
- timeColor: '#5a616f'
61
- }
117
+ see_more_color_failed: failedUrlColor,
118
+ url_color: primaryGreen,
119
+ url_color_failed: failedUrlColor
120
+ } // Video: {},
121
+ // VideoBubble: {}
122
+
62
123
  }
63
124
  };
@@ -1,61 +1,124 @@
1
1
  /* eslint-disable camelcase */
2
- import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white } from './commonColorVariable';
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
3
+ import { imIntegrationIcon } from '../commonThemeColorVariable';
3
4
  export default {
4
5
  library: 'chat_components',
5
6
  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: '#fdf5ef',
13
- bg_color: '#f1f7fe',
14
- failed_bg_color: '#fcebeb',
15
- text_color: messagetextColor
16
- },
7
+ // ActionIcon: {},
17
8
  actionIconWrapper: {
18
9
  color: actionIconWrapperColor,
19
10
  bg_color: '#fdf5ef',
20
11
  border_color: '#f7d6b9'
21
12
  },
22
- messageStatus: {
23
- send_color: messageStatusSendColor,
24
- read_color: '#e57717',
25
- failed_color: messageStatusFailedColor
26
- },
27
13
  attachmentBubble: {
28
14
  bg_color: white,
29
- border_color: '#ebf0f5'
15
+ bg_color_failed: failedBg,
16
+ border_color: '#ebf0f5',
17
+ border_color_failed: failedBdr
30
18
  },
31
- replyBubbleContent: {
19
+ attachmentBubbleInfo: {
20
+ fileName_color: black,
21
+ fileName_color_failed: failedColor,
22
+ fileSize_color: '#5a616f',
23
+ fileSize_color_failed: failedColor
24
+ },
25
+ // AttachmentIcon: {},
26
+ // Audio: {},
27
+ // AudioBubble: {},
28
+ articleBubble: {
32
29
  bg_color: white,
33
- color: '#000',
30
+ bg_color_failed: failedBg,
34
31
  border_color: '#ebf0f5',
35
- line_color: '#cddbf2'
32
+ border_color_failed: failedBdr,
33
+ title_color: black,
34
+ title_color_failed: failedColor,
35
+ summary_color: black,
36
+ summary_color_failed: failedColor
37
+ },
38
+ imAutoMessageInfo: {
39
+ text_color: '#737376'
40
+ },
41
+ // IMInfoBubble: {},
42
+ imIntegrationIcon,
43
+ // IMMessage: {},
44
+ // IMMessageContent: {},
45
+ imMessageMeta: {
46
+ time_color: '#5a616f'
47
+ },
48
+ imPermaLink: {
49
+ url_color: primaryOrange
36
50
  },
51
+ // IMReplyBubble: {},
52
+ // IMTextBubble: {},
37
53
  imageBubble: {
38
- bg_color: white
54
+ bg_color: white,
55
+ bg_color_failed: failedBg,
56
+ alt_text_color: black,
57
+ alt_text_color_failed: failedColor
39
58
  },
59
+ // IMReplyBubble: {},
60
+ // InfoBubble: {},
61
+ // LazyLoadImage: {},
40
62
  locationBubble: {
41
63
  bg_color: white,
42
- color: primaryOrange,
43
- border_color: '#ebf0f5'
64
+ bg_color_failed: failedBg,
65
+ border_color: '#ebf0f5',
66
+ border_color_failed: failedBdr,
67
+ url_color: primaryOrange,
68
+ url_color_failed: failedUrlColor
44
69
  },
45
- articleBubble: {
70
+ // MediaBubbleWrapper: {},
71
+ // Message: {},
72
+ // MessageAction: {},
73
+ // MessageActions: {},
74
+ // MessageActionsMore: {},
75
+ // MessageActionsWrapper: {},
76
+ // MessageAvatar: {},
77
+ messageBox: {
78
+ incoming_bg_color: incomingBubbleBgColor,
79
+ outgoing_bg_color: '#fdf5ef',
80
+ bg_color: '#f1f7fe',
81
+ failed_bg_color: failedBgWrapper,
82
+ text_color: messagetextColor
83
+ },
84
+ messageBubble: {
85
+ active_bg_color: bubbleActiveBgColor,
86
+ messageBox_footer_text_color: '#5a616f'
87
+ },
88
+ messageStatus: {
89
+ send_color: messageStatusSendColor,
90
+ read_color: '#e57717',
91
+ failed_color: messageStatusFailedColor
92
+ },
93
+ // MoreActionItem: {},
94
+ // ReplyBubble: {},
95
+ replyBubbleContent: {
46
96
  bg_color: white,
47
- color: '#000',
48
- border_color: '#ebf0f5'
97
+ bg_color_failed: failedBg,
98
+ border_color: '#ebf0f5',
99
+ border_color_failed: failedBdr,
100
+ line_color: '#cddbf2',
101
+ line_color_failed: failedLine,
102
+ sender_color: black,
103
+ sender_color_failed: failedColor,
104
+ content_color: '#5a616f',
105
+ content_color_failed: failedColor
49
106
  },
50
- imPermaLink: {
51
- color: primaryOrange
107
+ replyBubbleHeader: {
108
+ text_color: black,
109
+ text_color_failed: failedColor,
110
+ time_color: '#61667a',
111
+ time_color_failed: failedColor
52
112
  },
53
113
  textBubble: {
114
+ text_color: black,
115
+ text_color_failed: failedColor,
54
116
  see_more_color: primaryOrange,
55
- url_color: primaryOrange
56
- },
57
- imMessageMeta: {
58
- timeColor: '#5a616f'
59
- }
117
+ see_more_color_failed: failedUrlColor,
118
+ url_color: primaryOrange,
119
+ url_color_failed: failedUrlColor
120
+ } // Video: {},
121
+ // VideoBubble: {}
122
+
60
123
  }
61
124
  };