@zohoim/chat-components 1.1.2-beta.3 → 1.1.2-beta.4

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 (62) hide show
  1. package/README.md +1 -5
  2. package/es/ActionIconWrapper/ActionIconWrapper.js +1 -5
  3. package/es/AttachmentHandler/AttachmentHandler.js +0 -3
  4. package/es/AttachmentHandler/css/AttachmentHandler.module.css +2 -2
  5. package/es/AttachmentPreviewBody/css/AttachmentPreviewBody.module.css +8 -4
  6. package/es/AttachmentPreviewHeader/css/AttachmentPreviewHeader.module.css +4 -4
  7. package/es/Emoji/Emoji.js +1 -5
  8. package/es/EmojiPopup/EmojiPopup.js +1 -4
  9. package/es/EmojiPopup/css/EmojiPopup.module.css +7 -2
  10. package/es/EmojisFooter/css/EmojisFooter.module.css +4 -3
  11. package/es/EmojisHeader/css/EmojisHeader.module.css +3 -3
  12. package/es/MessageActions/MessageActions.js +1 -3
  13. package/es/MessageActions/props/propTypes.js +1 -2
  14. package/es/MessageBubble/MessageBubble.js +4 -20
  15. package/es/MoreActionItem/MoreActionItem.js +0 -4
  16. package/es/TextBubble/TextBubble.js +2 -5
  17. package/es/TextBubble/css/TextBubble.module.css +0 -1
  18. package/es/Theme/ThemeAssets.js +0 -18
  19. package/es/Theme/ThemeWrapper.js +5 -7
  20. package/es/Theme/themeVariables/commonThemeColorVariable.js +17 -0
  21. package/es/Theme/themeVariables/dark/blueTheme.js +133 -0
  22. package/es/Theme/themeVariables/dark/commonColorVariable.js +35 -0
  23. package/es/Theme/themeVariables/dark/greenTheme.js +132 -0
  24. package/es/Theme/themeVariables/dark/orangeTheme.js +132 -0
  25. package/es/Theme/themeVariables/dark/redTheme.js +132 -0
  26. package/es/Theme/themeVariables/dark/yellowTheme.js +132 -0
  27. package/es/Theme/themeVariables/light/blueTheme.js +135 -0
  28. package/es/Theme/themeVariables/light/commonColorVariable.js +54 -0
  29. package/es/Theme/themeVariables/light/greenTheme.js +131 -0
  30. package/es/Theme/themeVariables/light/orangeTheme.js +131 -0
  31. package/es/Theme/themeVariables/light/redTheme.js +131 -0
  32. package/es/Theme/themeVariables/light/yellowTheme.js +131 -0
  33. package/es/Theme/themeVariables/pureDark/blueTheme.js +132 -0
  34. package/es/Theme/themeVariables/pureDark/commonColorVariable.js +37 -0
  35. package/es/Theme/themeVariables/pureDark/greenTheme.js +132 -0
  36. package/es/Theme/themeVariables/pureDark/orangeTheme.js +132 -0
  37. package/es/Theme/themeVariables/pureDark/redTheme.js +132 -0
  38. package/es/Theme/themeVariables/pureDark/yellowTheme.js +132 -0
  39. package/es/Theme/utils/getThemeConfigurations.js +55 -1
  40. package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +2 -2
  41. package/es/im/ReplyComposer/ReplyComposer.js +3 -1
  42. package/es/im/ReplyEditor/css/ReplyEditor.module.css +3 -7
  43. package/package.json +11 -18
  44. package/assets/Appearance/dark/mode/General_DarkMode.module.css +0 -93
  45. package/assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css +0 -40
  46. package/assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css +0 -40
  47. package/assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css +0 -40
  48. package/assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css +0 -40
  49. package/assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css +0 -40
  50. package/assets/Appearance/light/mode/General_LightMode.module.css +0 -93
  51. package/assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css +0 -40
  52. package/assets/Appearance/light/themes/green/green_General_LightTheme.module.css +0 -40
  53. package/assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css +0 -40
  54. package/assets/Appearance/light/themes/red/red_General_LightTheme.module.css +0 -40
  55. package/assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css +0 -40
  56. package/assets/Appearance/pureDark/mode/General_PureDarkMode.module.css +0 -93
  57. package/assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css +0 -40
  58. package/assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css +0 -40
  59. package/assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css +0 -40
  60. package/assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css +0 -40
  61. package/assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css +0 -40
  62. package/lib/index.js +0 -538
package/README.md CHANGED
@@ -10,13 +10,9 @@ In this Library, We Provide Some Basic Message Components to Build Your Chat App
10
10
 
11
11
  > import MessageBubble from '@zohoim/chat-components/es/MessageBubble/MessageBubble’;
12
12
 
13
- # 1.1.2
14
-
15
- - Color contrast support added for components
16
-
17
13
  # 1.1.1
18
14
 
19
- - **@zohoim/chat-components-utils** version updated
15
+ - **@zohoim/chat-components-utils** package updated
20
16
 
21
17
  # 1.1.0
22
18
 
@@ -53,14 +53,10 @@ export default function ActionIconWrapper(props) {
53
53
  id
54
54
  });
55
55
  return icon ? /*#__PURE__*/React.createElement("div", {
56
- "aria-label": title,
57
56
  className: actionIconWrapperClass,
58
- "data-a11y-focus": "true",
59
57
  "data-title": title,
60
58
  onClick: onClick,
61
- onMouseEnter: onMouseEnter,
62
- role: "menuitem",
63
- tabIndex: 0
59
+ onMouseEnter: onMouseEnter
64
60
  }, icon) : null;
65
61
  }
66
62
  ActionIconWrapper.propTypes = actionIconWrapperPropTypes;
@@ -71,9 +71,6 @@ export default function AttachmentHandler(props) {
71
71
  return /*#__PURE__*/React.createElement(Container, {
72
72
  alignBox: "column"
73
73
  }, customIcon || /*#__PURE__*/React.createElement(IconButton, {
74
- a11y: {
75
- ariaLabel: iconTitle
76
- },
77
74
  className: newStyle.iconButton,
78
75
  iconClass: newStyle.icon,
79
76
  iconName: iconName,
@@ -18,10 +18,10 @@
18
18
 
19
19
 
20
20
  .icon :global .path1:before {
21
- color: var(--imlib_chat_components_twotone_icon_bg) !important;
21
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path1_color) !important;
22
22
  opacity: 1;
23
23
  }
24
24
 
25
25
  .icon :global .path2:before {
26
- color: var(--imlib_chat_components_twotone_icon_border) !important;
26
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path2_color) !important;
27
27
  }
@@ -22,16 +22,21 @@
22
22
  max-height: var(--zd_size48) !important;
23
23
  background-color: transparent !important;
24
24
  border: 0 !important;
25
- border-bottom: 1px solid var(--zdt_textarea_default_border) !important;
25
+ border-bottom: 1px solid
26
+ var(--imlib_chat_components_attachmentPreviewBody_editor_border_color) !important;
26
27
  padding: 0 !important;
27
28
  }
28
29
 
29
30
  .editableDiv:hover {
30
- border-color: var(--zdt_textarea_hover_border) !important;
31
+ border-color: var(
32
+ --imlib_chat_components_attachmentPreviewBody_editor_border_hover_color
33
+ ) !important;
31
34
  }
32
35
 
33
36
  .editableDiv:focus {
34
- border-color: var(--zdt_textarea_focus_border) !important;
37
+ border-color: var(
38
+ --imlib_chat_components_attachmentPreviewBody_editor_border_active_color
39
+ ) !important;
35
40
  }
36
41
 
37
42
  .imgContent,
@@ -44,7 +49,6 @@
44
49
  .imgContent, .zoomContent {
45
50
  background-color: var(--imlib_chat_components_attachmentPreviewBody_bg_color);
46
51
  padding: var(--zd_size40);
47
- background-color: var(--imlib_chat_components_attachmentPreview_body_bg_color);
48
52
  }
49
53
 
50
54
  [dir=ltr] .imgContent, [dir=ltr] .zoomContent {
@@ -2,10 +2,10 @@
2
2
  .imgPreviewerheader {
3
3
  position: relative;
4
4
  background-color: var(
5
- --imlib_chat_components_attachmentPreview_bg_color
5
+ --imlib_chat_components_attachmentPreviewHeader_bg_color
6
6
  );
7
7
  padding: var(--zd_size15) var(--zd_size40);
8
- border-bottom: var(--zd_size1) solid var(--imlib_chat_components_common_border);
8
+ border-bottom: var(--zd_size1) solid var(--zd_im_common_border);
9
9
  }
10
10
  [dir=ltr] .imgPreviewerheader {
11
11
  border-top-left-radius: var(--zd_size5);
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .imgName {
20
- color: var(--imlib_chat_components_attachmentPreview_name_color);
20
+ color: var(--imlib_chat_components_attachmentPreviewHeader_name_color);
21
21
  font-size: var(--zd_font_size17);
22
22
  font-family: var(--zd_semibold);
23
23
  composes: dotted from '../../css/common.module.css';
@@ -27,7 +27,7 @@
27
27
 
28
28
  .imgSize {
29
29
  font-size: var(--zd_font_size13);
30
- color: var(--imlib_chat_components_attachmentPreview_size_color);
30
+ color: var(--imlib_chat_components_attachmentPreviewHeader_size_color);
31
31
  composes: dotted from '../../css/common.module.css';
32
32
  max-width: var(--zd_size150);
33
33
  }
package/es/Emoji/Emoji.js CHANGED
@@ -58,12 +58,8 @@ export default function Emoji(props) {
58
58
  });
59
59
  return /*#__PURE__*/React.createElement("span", {
60
60
  ref: eleRef,
61
- "aria-label": title,
62
61
  className: emojiClass,
63
- "data-a11y-focus": "true",
64
- onClick: onSelect,
65
- role: "button",
66
- tabIndex: 0
62
+ onClick: onSelect
67
63
  }, /*#__PURE__*/React.createElement("span", {
68
64
  className: newStyle.emojiContent,
69
65
  "data-smiley": emojiName,
@@ -83,10 +83,7 @@ function EmojiPopupComp(props) {
83
83
  isActive: isPopupOpen,
84
84
  onClick: onTogglePopup,
85
85
  title: tooltip,
86
- ...iconProps,
87
- a11y: {
88
- ariaLabel: tooltip
89
- }
86
+ ...iconProps
90
87
  }), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
91
88
  boxPosition: position,
92
89
  customClass: popupClass,
@@ -41,10 +41,15 @@
41
41
  }
42
42
 
43
43
  .icon :global .path1:before {
44
- color: var(--imlib_chat_components_twotone_icon_bg) !important;
44
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path1_color) !important;
45
45
  opacity: 1;
46
46
  }
47
47
 
48
48
  .icon :global .path2:before {
49
- color: var(--imlib_chat_components_twotone_icon_border) !important;
49
+ color: var(--imlib_chat_components_emojiPopup_ttIcon_path2_color) !important;
50
+ }
51
+
52
+ .icon :global .path2{
53
+ position: relative;
54
+ z-index: 1;
50
55
  }
@@ -1,9 +1,10 @@
1
1
  .footerTab {
2
2
  position: relative;
3
- border-top: 1px solid var(--imlib_chat_components_common_border);
3
+ border-top: 1px solid var(--imlib_chat_components_emojiFooter_border_color);
4
4
  }
5
5
 
6
6
  .tabIcon {
7
+ /* padding: var(--zd_size10) var(--zd_size16); */
7
8
  position: relative;
8
9
  height: var(--zd_size35) ;
9
10
  display: flex;
@@ -20,7 +21,7 @@
20
21
  height: var(--zd_size2) ;
21
22
  transition: 0.3s ease;
22
23
  width: 100% ;
23
- background-color: var(--imlib_chat_components_emoji_tab_line_color);
24
+ background-color: var(--imlib_chat_components_emojiFooter_tabLine);
24
25
  }
25
26
 
26
27
  [dir=ltr] .tabLine {
@@ -35,5 +36,5 @@
35
36
  width: auto ;
36
37
  height: auto ;
37
38
  margin: 0 ;
38
- padding: 0 8% ;
39
+ padding: 8% ;
39
40
  }
@@ -1,11 +1,12 @@
1
1
  .container {
2
2
  padding: var(--zd_size10) ;
3
- border-bottom: 1px solid var(--imlib_chat_components_common_border);
3
+ border-bottom: 1px solid
4
+ var(--imlib_chat_components_emojisHeader_border_color);
4
5
  }
5
6
 
6
7
  .emojisSearch {
7
8
  position: relative;
8
- background-color: var(--imlib_chat_components_emoji_popup_search_bg);
9
+ background-color: var(--imlib_chat_components_emojisHeader_bg_color);
9
10
  }
10
11
 
11
12
  .searchInput {
@@ -24,7 +25,6 @@
24
25
 
25
26
  .searchIcon {
26
27
  position: absolute;
27
- color: var(--imlib_chat_components_primary_text);
28
28
  }
29
29
 
30
30
  [dir=ltr] .searchIcon {
@@ -29,8 +29,7 @@ export default function MessageActions(props) {
29
29
  setRetainMessageActions,
30
30
  renderSecondaryActions,
31
31
  customStyle,
32
- customProps,
33
- moreTitle
32
+ customProps
34
33
  } = props;
35
34
  const {
36
35
  messageActionProps = dummyObject,
@@ -107,7 +106,6 @@ export default function MessageActions(props) {
107
106
  }, /*#__PURE__*/React.createElement(MoreIcon, null)), [newStyle.moreIcon]);
108
107
  const renderMore = useCallback(componentProps => /*#__PURE__*/React.createElement(ActionIconWrapper, {
109
108
  renderIcon: renderMoreIcon,
110
- title: moreTitle,
111
109
  ...componentProps,
112
110
  ...actionIconWrapperProps
113
111
  }), [actionIconWrapperProps, renderMoreIcon]);
@@ -21,7 +21,6 @@ const messageActionsPropTypes = {
21
21
  customStyle: PropTypes.object,
22
22
  defaultShowCount: PropTypes.number,
23
23
  renderSecondaryActions: PropTypes.func,
24
- setRetainMessageActions: PropTypes.func,
25
- moreTitle: PropTypes.string
24
+ setRetainMessageActions: PropTypes.func
26
25
  };
27
26
  export default messageActionsPropTypes;
@@ -20,7 +20,6 @@ import { Box } from '@zohodesk/components/es/Layout';
20
20
  /** ** Styles *** */
21
21
 
22
22
  import style from "./css/MessageBubble.module.css";
23
- import generateUniqueId from '@zohoim/chat-components-utils/es/common/generateUniqueId';
24
23
  export default function MessageBubble(props) {
25
24
  const {
26
25
  renderMessageBox,
@@ -40,9 +39,7 @@ export default function MessageBubble(props) {
40
39
  const {
41
40
  onMouseEnter,
42
41
  onMouseLeave,
43
- isRenderMessageActions,
44
- onFocus,
45
- onBlur
42
+ isRenderMessageActions
46
43
  } = useMessageBubbleAction(props);
47
44
  /* css classnames added based on logic */
48
45
 
@@ -70,9 +67,7 @@ export default function MessageBubble(props) {
70
67
  const messageActionsRenderer = useCallback(() => {
71
68
  const messageActions = isRenderMessageActions ? renderHandler(renderMessageActions)() : null;
72
69
  return messageActions ? /*#__PURE__*/React.createElement(Box, {
73
- className: messageActionWrapperClass,
74
- role: "button",
75
- tabIndex: "0"
70
+ className: messageActionWrapperClass
76
71
  }, messageActions) : null;
77
72
  }, [isRenderMessageActions, renderMessageActions, messageActionWrapperClass]);
78
73
  /* Message Box Render */
@@ -89,16 +84,12 @@ export default function MessageBubble(props) {
89
84
 
90
85
  const messageBox = useMemo(() => messageBoxRenderer(), [messageBoxRenderer]);
91
86
  const messageActions = useMemo(() => messageActionsRenderer(), [messageActionsRenderer]);
92
- const uniqueId = generateUniqueId();
93
87
  const messageBoxWithActionsRenderer = useCallback(() => messageBox || messageActions ? /*#__PURE__*/React.createElement(Box, {
94
88
  className: newStyle.messageContainer
95
89
  }, /*#__PURE__*/React.createElement(Box, {
96
90
  className: newStyle.messageBoxWrapper,
97
91
  flexible: true
98
- }, messageBox, /*#__PURE__*/React.createElement("div", {
99
- id: uniqueId,
100
- role: "menu"
101
- }, messageActions))) : null, [messageBox, messageActions, newStyle.messageContainer, newStyle.messageBoxWrapper, uniqueId]);
92
+ }, messageBox, messageActions)) : null, [messageBox, messageActions, newStyle.messageContainer, newStyle.messageBoxWrapper]);
102
93
  /* Message Footer Render */
103
94
 
104
95
  const messageFooterRenderer = useCallback(() => {
@@ -115,16 +106,9 @@ export default function MessageBubble(props) {
115
106
  /* Construct Layout */
116
107
 
117
108
  const messageLayout = /*#__PURE__*/React.createElement("div", {
118
- "aria-controls": uniqueId,
119
- "aria-expanded": isRenderMessageActions ? 'true' : 'false',
120
- "aria-haspopup": "true",
121
109
  className: bubbleClass,
122
- onBlur: onBlur,
123
- onFocus: onFocus,
124
110
  onMouseEnter: onMouseEnter,
125
- onMouseLeave: onMouseLeave,
126
- role: "button",
127
- tabIndex: 0
111
+ onMouseLeave: onMouseLeave
128
112
  }, messageSender, messageBoxWithActions, messageFooter);
129
113
  return messageLayout;
130
114
  }
@@ -50,10 +50,6 @@ export default function MoreActionItem(props) {
50
50
  id
51
51
  });
52
52
  return /*#__PURE__*/React.createElement(ListContainer, {
53
- a11y: {
54
- 'data-a11y-focus': true,
55
- 'data-a11y-click': true
56
- },
57
53
  autoHover: true,
58
54
  customClass: newStyle.listItem,
59
55
  disableTitle: title,
@@ -39,12 +39,9 @@ export default function TextBubble(props) {
39
39
  // __html: HTMLPurifier.sanitize(message)
40
40
  __html: message
41
41
  }
42
- }), moreText ? /*#__PURE__*/React.createElement("button", {
42
+ }), moreText ? /*#__PURE__*/React.createElement("div", {
43
43
  className: moreTextClass,
44
- "data-a11y-click": "true",
45
- "data-a11y-focus": "true",
46
- onClick: onClickMore,
47
- tabIndex: "0"
44
+ onClick: onClickMore
48
45
  }, moreText) : null);
49
46
  }
50
47
  TextBubble.propTypes = textBubblePropTypes;
@@ -9,7 +9,6 @@
9
9
 
10
10
  .moreText {
11
11
  color: var(--imlib_chat_components_textBubble_see_more_color);
12
- composes: buttonReset from '~@zohodesk/components/es/semantic/Button/semanticButton.module.css';
13
12
  cursor: pointer;
14
13
  }
15
14
 
@@ -67,24 +67,6 @@ import '@zohodesk/variables/assets/fontsizeVariables.module.css';
67
67
  import '@zohodesk/variables/es/fontFamilyVariables.module.css';
68
68
  import '@zohodesk/variables/assets/transitionVariables.module.css';
69
69
  import '@zohodesk/variables/assets/no_transitionVariables.module.css';
70
- import "../../assets/Appearance/dark/mode/General_DarkMode.module.css";
71
- import "../../assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css";
72
- import "../../assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css";
73
- import "../../assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css";
74
- import "../../assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css";
75
- import "../../assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css";
76
- import "../../assets/Appearance/light/mode/General_LightMode.module.css";
77
- import "../../assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css";
78
- import "../../assets/Appearance/light/themes/green/green_General_LightTheme.module.css";
79
- import "../../assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css";
80
- import "../../assets/Appearance/light/themes/red/red_General_LightTheme.module.css";
81
- import "../../assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css";
82
- import "../../assets/Appearance/pureDark/mode/General_PureDarkMode.module.css";
83
- import "../../assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css";
84
- import "../../assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css";
85
- import "../../assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css";
86
- import "../../assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css";
87
- import "../../assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css";
88
70
  export default function DeskAssets(props) {
89
71
  const {
90
72
  children
@@ -42,22 +42,20 @@ export default function ThemeWrapper(props) {
42
42
  /** ** ThemeConfigurations Handling *** */
43
43
 
44
44
  const {
45
+ themeConfigurations,
45
46
  mode,
46
47
  theme
47
48
  } = getThemeConfigurations({
48
49
  mode: propMode,
49
50
  theme: propTheme
50
51
  });
51
- const configurations = propThemeConfigurations;
52
+ const configurations = propThemeConfigurations || themeConfigurations;
52
53
  /** ** Style Handling *** */
53
54
 
54
55
  const selector = `#${styleTagId}`;
55
56
  const prefix = '--imlib_';
56
57
  const configuration = useMemo(() => [configurations], [configurations]);
57
- const customizedVariables = useMemo(() => {
58
- const cssVariables = propThemeConfigurations ? getCustomizedCssVariables(configuration, prefix) : null;
59
- return cssVariables;
60
- }, [configuration, prefix, propThemeConfigurations]);
58
+ const customizedVariables = useMemo(() => getCustomizedCssVariables(configuration, prefix), [configuration, prefix]);
61
59
  const wrapperDivProps = getWrapperDivProps({
62
60
  modeKey,
63
61
  themeKey,
@@ -73,9 +71,9 @@ export default function ThemeWrapper(props) {
73
71
  }), /*#__PURE__*/React.createElement("div", {
74
72
  "data-portal": EDITOR_POPUP_TARGET_PORTAL
75
73
  })), []);
76
- const renderStyle = useCallback(() => customizedVariables ? /*#__PURE__*/React.createElement("style", {
74
+ const renderStyle = useCallback(() => /*#__PURE__*/React.createElement("style", {
77
75
  id: "zoho-im-variables"
78
- }, `${selector}{${customizedVariables}}`) : null, [selector, customizedVariables]);
76
+ }, `${selector}{${customizedVariables}}`), [selector, customizedVariables]);
79
77
  const renderAssets = useCallback(() => /*#__PURE__*/React.createElement(React.Fragment, null, needThemeAssets ? /*#__PURE__*/React.createElement(ThemeAssets, null) : null, needTooltip ? /*#__PURE__*/React.createElement(TooltipWrapper, {
80
78
  containerRef: containerRef.current,
81
79
  customStyle: tooltipCustomStyle,
@@ -0,0 +1,17 @@
1
+ export const imIntegrationIcon = {
2
+ path0_color: '#ffffff40',
3
+ path1_color: '#fff',
4
+ whatsapp_color: '#24d366',
5
+ telegram_color: '#4fa7d8',
6
+ wechat_color: '#2dc100',
7
+ line_color: '#01b901',
8
+ twillio_color: '#f22f46',
9
+ instagram_color: 'linear-gradient(221.05deg,#933ab9 11.59%,#d12f8c 50.45%,#fdbb59 85.46%)',
10
+ asap_color: 'linear-gradient(180deg, #A375FF 0%, #7732FF 100%)',
11
+ fb_color: '#006aff'
12
+ };
13
+ export const imTtIcon = {
14
+ path0_color: '#ffffff40',
15
+ path1_color: '#fff'
16
+ };
17
+ export const messagetextColor = '#e2e4e6';
@@ -0,0 +1,133 @@
1
+ /* eslint-disable camelcase */
2
+ import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, replyEditor, emojiPopup, emojisHeader, attachmentPreviewHeader } from "./commonColorVariable";
3
+ import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
4
+ export default {
5
+ library: 'chat_components',
6
+ variables: {
7
+ actionIconWrapper: {
8
+ color: actionIconWrapperColor,
9
+ bg_color: '#2c3b4d',
10
+ border_color: '#3f536b'
11
+ },
12
+ attachmentBubble: {
13
+ bg_color: '#232b38',
14
+ bg_color_failed: failedBg,
15
+ border_color: '#2d3748',
16
+ border_color_failed: failedBdr
17
+ },
18
+ attachmentBubbleInfo: {
19
+ fileName_color: '#e2e4e6',
20
+ fileName_color_failed: failedColor,
21
+ fileSize_color: '#788190',
22
+ fileSize_color_failed: '#788190'
23
+ },
24
+ articleBubble: {
25
+ bg_color: '#232b38',
26
+ bg_color_failed: failedBg,
27
+ border_color: '#2d3748',
28
+ border_color_failed: failedBdr,
29
+ title_color: '#e2e4e6',
30
+ title_color_failed: failedColor,
31
+ summary_color: '#e2e4e6',
32
+ summary_color_failed: failedColor
33
+ },
34
+ imAutoMessageInfo: {
35
+ text_color: '#828994'
36
+ },
37
+ imIntegrationIcon,
38
+ imTtIcon,
39
+ imMessageContent: {
40
+ text_color: '#a8b0bd'
41
+ },
42
+ imMessageMeta: {
43
+ time_color: '#a8b0bd'
44
+ },
45
+ imPermaLink: {
46
+ url_color: '#479dff'
47
+ },
48
+ imageBubble: {
49
+ bg_color: '#232b38',
50
+ bg_color_failed: failedBg,
51
+ alt_text_color: '#e2e4e6',
52
+ alt_text_color_failed: failedColor,
53
+ border_color: '#2d3748',
54
+ border_color_failed: failedBdr
55
+ },
56
+ locationBubble: {
57
+ bg_color: '#232b38',
58
+ bg_color_failed: failedBg,
59
+ border_color: '#2d3748',
60
+ border_color_failed: failedBdr,
61
+ url_color: primaryBlue,
62
+ url_color_failed: failedUrlColor
63
+ },
64
+ messageBox: {
65
+ incoming_bg_color: incomingBubbleBgColor,
66
+ outgoing_bg_color: '#2c3b4d',
67
+ bg_color: '#f1f7fe',
68
+ failed_bg_color: failedBgWrapper,
69
+ text_color: messagetextColor,
70
+ failed_text_color: '#000'
71
+ },
72
+ messageBubble: {
73
+ active_bg_color: bubbleActiveBgColor,
74
+ messageBox_footer_text_color: '#5a616f'
75
+ },
76
+ messageStatus: {
77
+ send_color: messageStatusSendColor,
78
+ read_color: '#479dff',
79
+ failed_color: messageStatusFailedColor
80
+ },
81
+ replyBubble: {
82
+ border_color: '#2d3748',
83
+ border_color_failed: failedBdr
84
+ },
85
+ replyBubbleContent: {
86
+ bg_color: '#232b38',
87
+ bg_color_failed: failedBg,
88
+ border_color: '#2d3748',
89
+ border_color_failed: failedBdr,
90
+ line_color: '#cddbf2',
91
+ line_color_failed: failedLine,
92
+ sender_color: '#e2e4e6',
93
+ sender_color_failed: failedColor,
94
+ content_color: '#e2e4e6',
95
+ content_color_failed: failedColor
96
+ },
97
+ replyBubbleHeader: {
98
+ text_color: '#e2e4e6',
99
+ text_color_failed: failedColor,
100
+ time_color: '#828994',
101
+ time_color_failed: failedColor
102
+ },
103
+ textBubble: {
104
+ text_color: '#e2e4e6',
105
+ text_color_failed: failedColor,
106
+ see_more_color: primaryBlue,
107
+ see_more_color_failed: failedUrlColor,
108
+ url_color: primaryBlue,
109
+ url_color_failed: failedUrlColor
110
+ },
111
+ videoBubble: {
112
+ border_color: '#2d3748',
113
+ border_color_failed: failedBdr
114
+ },
115
+ emojiFooter: {
116
+ tabLine: primaryBlue,
117
+ border_color: '#2d3748'
118
+ },
119
+ replyEditor,
120
+ emojiPopup: { ...emojiPopup,
121
+ ttIcon_path1_color: '#5f6478',
122
+ ttIcon_path2_color: 'var(--dot_platinum)'
123
+ },
124
+ emojisHeader,
125
+ attachmentPreviewHeader,
126
+ attachmentPreviewBody: {
127
+ bg_color: '#262f3d',
128
+ editor_border_color: '#3e4d63',
129
+ editor_border_hover_color: '#828994',
130
+ editor_border_active_color: '#479dff'
131
+ }
132
+ }
133
+ };
@@ -0,0 +1,35 @@
1
+ export const incomingBubbleBgColor = '#232b38';
2
+ export const bubbleActiveBgColor = '#1b2e33';
3
+ export const actionIconWrapperColor = '#e2e4e6';
4
+ export const messageStatusSendColor = '#61667a';
5
+ export const messageStatusFailedColor = '#de3535';
6
+ export const primaryBlue = '#479dff';
7
+ export const primaryGreen = '#45a159';
8
+ export const primaryOrange = '#ff801f';
9
+ export const primaryRed = '#e94f4f';
10
+ export const primaryYellow = '#d79835';
11
+ export const failedBgWrapper = '#f4b5bc';
12
+ export const failedBg = '#f6dcdf';
13
+ export const failedBdr = '#eb9ea7';
14
+ export const failedLine = '#eb9ea7';
15
+ export const failedColor = '#000';
16
+ export const failedUrlColor = '#0a73eb';
17
+ export const emojiPopup = {
18
+ bg: '#f1f4f9',
19
+ border: '#f1f4f9',
20
+ titleColor: '#aaa'
21
+ };
22
+ export const replyEditor = {
23
+ bg: '#242b38',
24
+ color: '#e2e4e6',
25
+ placeholder: '#5a616f'
26
+ };
27
+ export const emojisHeader = {
28
+ bg_color: '#283442',
29
+ border_color: '#2d3748'
30
+ };
31
+ export const attachmentPreviewHeader = {
32
+ bg_color: '#232b38',
33
+ name_color: '#e2e4e6',
34
+ size_color: '#a8b0bd'
35
+ };