@zohodesk/dot 1.0.0-temp-138 → 1.0.0-temp.139

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 (59) hide show
  1. package/README.md +6 -0
  2. package/assets/Appearance/dark/mode/dotDarkMode.module.css +66 -0
  3. package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +4 -0
  4. package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +4 -0
  5. package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +4 -0
  6. package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +4 -0
  7. package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +4 -0
  8. package/assets/Appearance/default/mode/dotDefaultMode.module.css +66 -0
  9. package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +4 -0
  10. package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +4 -0
  11. package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +4 -0
  12. package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +4 -0
  13. package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +4 -0
  14. package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +66 -0
  15. package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +4 -0
  16. package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +4 -0
  17. package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +4 -0
  18. package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +4 -0
  19. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +4 -0
  20. package/css_error.log +1 -0
  21. package/es/TagWithIcon/TagWithIcon.js +62 -0
  22. package/es/TagWithIcon/TagWithIcon.module.css +56 -0
  23. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +2 -2
  24. package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
  25. package/es/dropdown/ToggleDropDown/props/propTypes.js +5 -1
  26. package/es/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
  27. package/es/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
  28. package/es/layout/List/CommentsList/CommentListItemFromTabUI.js +121 -0
  29. package/es/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
  30. package/es/layout/List/CommentsList/CommentListItemWebUI.js +107 -0
  31. package/es/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
  32. package/es/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
  33. package/es/layout/List/ThreadsList/ThreadListItemFromTabUI.js +282 -0
  34. package/es/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
  35. package/es/layout/List/ThreadsList/ThreadListItemWebUI.js +270 -0
  36. package/es/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
  37. package/es/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
  38. package/es/layout/List/common/twoToneIconColor.module.css +26 -0
  39. package/es/list/status/StatusListItem/StatusListItem.module.css +7 -5
  40. package/lib/TagWithIcon/TagWithIcon.js +92 -0
  41. package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
  42. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +4 -2
  43. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
  44. package/lib/dropdown/ToggleDropDown/props/propTypes.js +5 -1
  45. package/lib/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
  46. package/lib/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
  47. package/lib/layout/List/CommentsList/CommentListItemFromTabUI.js +123 -0
  48. package/lib/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
  49. package/lib/layout/List/CommentsList/CommentListItemWebUI.js +109 -0
  50. package/lib/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
  51. package/lib/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
  52. package/lib/layout/List/ThreadsList/ThreadListItemFromTabUI.js +283 -0
  53. package/lib/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
  54. package/lib/layout/List/ThreadsList/ThreadListItemWebUI.js +271 -0
  55. package/lib/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
  56. package/lib/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
  57. package/lib/layout/List/common/twoToneIconColor.module.css +26 -0
  58. package/lib/list/status/StatusListItem/StatusListItem.module.css +7 -5
  59. package/package.json +3 -3
@@ -0,0 +1,282 @@
1
+ import React from 'react';
2
+ import { Container, Box } from '@zohodesk/components/es/Layout';
3
+ import VelocityAnimation from '@zohodesk/components/es/VelocityAnimation/VelocityAnimation/VelocityAnimation';
4
+ import tabStyle from './ThreadListItemFromTab.module.css';
5
+ import commonTabStyle from '../common/SubTabListItemTabCommon.module.css';
6
+ import commonIconStyle from '../common/twoToneIconColor.module.css';
7
+ import commonThreadStyle from './ThreadListItemCommon.module.css';
8
+ export default function ThreadListItemFromTabUI(props) {
9
+ const {
10
+ getAvatar,
11
+ getName,
12
+ getSentiment,
13
+ getDraft,
14
+ getTag,
15
+ getResponseDeleted,
16
+ getDraftWithTime,
17
+ getReadStatus,
18
+ getBestAnswer,
19
+ getViaChannel,
20
+ getViaCustomChannel,
21
+ getRecipentsIcon,
22
+ getKeyWords,
23
+ getRatingImg,
24
+ getChannelInfo,
25
+ getAttachmentIcon,
26
+ getMoreDropdown,
27
+ getRecipents,
28
+ getAudioMsg,
29
+ getTruncateOption,
30
+ getQuotedOption,
31
+ getQuotedContent,
32
+ getVisitorOption,
33
+ getVisitorInfo,
34
+ getSummary,
35
+ getContent,
36
+ getAttachment,
37
+ isPeekView,
38
+ isPopupOpen,
39
+ isNightMode,
40
+ dataId,
41
+ id,
42
+ onThreadClick,
43
+ threadRef,
44
+ onContainerCLick,
45
+ containerRef,
46
+ customList,
47
+ authorType,
48
+ isRecipients,
49
+ channel,
50
+ showVisitor,
51
+ needToShowContent,
52
+ hasTelephonyAudio,
53
+ isThreadOpened,
54
+ showQuotedContent,
55
+ getReadReceiptsLookup,
56
+ isMobile,
57
+ needReadStatus,
58
+ getImScrollComp,
59
+ ViewInLightDarkBg,
60
+ getTheme,
61
+ children
62
+ } = props;
63
+ let invertClass = isNightMode ? ViewInLightDarkBg ? commonThreadStyle.whiteBg : commonThreadStyle.invert : '';
64
+ return /*#__PURE__*/React.createElement("div", {
65
+ "data-desk-mode": ViewInLightDarkBg ? 'default' : '',
66
+ "data-desk-theme": ViewInLightDarkBg ? getTheme : '',
67
+ className: `${commonTabStyle.wrapper}
68
+ ${isMobile ? tabStyle.mobileListWrapper : tabStyle.listWrapper}
69
+ ${commonThreadStyle.normal}
70
+ ${!isThreadOpened ? commonThreadStyle.threadShrink : ''}
71
+ ${customList}`,
72
+ "data-id": dataId,
73
+ key: id,
74
+ id: id,
75
+ ref: threadRef,
76
+ "data-a11y-focus": !isThreadOpened
77
+ }, children ? children : null, /*#__PURE__*/React.createElement(Container, {
78
+ alignBox: "row",
79
+ align: "vertical",
80
+ isCover: false
81
+ }, getAvatar ? /*#__PURE__*/React.createElement(Box, {
82
+ className: commonThreadStyle.avatarWrapper
83
+ }, getAvatar({
84
+ size: 'medium'
85
+ })) : null, /*#__PURE__*/React.createElement(Box, {
86
+ flexible: true
87
+ }, /*#__PURE__*/React.createElement(Container, {
88
+ alignBox: "row",
89
+ align: "vertical",
90
+ isCover: false,
91
+ dataId: "secThreadPanel",
92
+ onClick: onThreadClick,
93
+ className: commonTabStyle.pointer
94
+ }, /*#__PURE__*/React.createElement(Box, {
95
+ flexible: true
96
+ }, /*#__PURE__*/React.createElement(Container, {
97
+ alignBox: "row",
98
+ align: "vertical",
99
+ isCover: false,
100
+ className: `${commonTabStyle.pointer} ${commonThreadStyle.icnBtnSpace}`
101
+ }, getName ? /*#__PURE__*/React.createElement(React.Fragment, null, getName({
102
+ 'is-dot': 'true',
103
+ className: `${commonThreadStyle.agentName} ${authorType === 'AGENT' ? commonThreadStyle.agentNameHover : ''} ${commonTabStyle.dotted}`
104
+ })) : null, getSentiment ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
105
+ shrink: true,
106
+ "is-dot": "true"
107
+ }, getSentiment({
108
+ iconSize: '9'
109
+ }))) : null, getBestAnswer ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
110
+ className: commonTabStyle.dot
111
+ }, "."), /*#__PURE__*/React.createElement(Box, {
112
+ shrink: true,
113
+ "is-dot": "true",
114
+ dataId: "Best Answer",
115
+ className: `${commonThreadStyle.bestAns} ${commonThreadStyle.dotted}`
116
+ }, getBestAnswer())) : null, getViaChannel ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
117
+ className: commonTabStyle.dot
118
+ }, "."), /*#__PURE__*/React.createElement(Box, {
119
+ shrink: true,
120
+ "is-dot": "true",
121
+ className: commonThreadStyle.forumText
122
+ }, getViaChannel({
123
+ className: `${commonThreadStyle.primaryText} ${commonThreadStyle.dotted}`
124
+ }))) : null, getViaCustomChannel ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
125
+ className: commonTabStyle.dot
126
+ }, "."), /*#__PURE__*/React.createElement(Box, {
127
+ shrink: true,
128
+ "is-dot": "true",
129
+ className: commonThreadStyle.forumText
130
+ }, getViaCustomChannel({
131
+ className: `${commonThreadStyle.primaryText} ${commonThreadStyle.dotted}`
132
+ }))) : null)), getRatingImg ? getRatingImg({
133
+ className: `${commonThreadStyle.ratingImage} ${commonThreadStyle.icnBtnSpace}`
134
+ }) : null, getChannelInfo ? getChannelInfo({
135
+ iconClass: `${tabStyle.chnlIcn} ${commonIconStyle.primary}`
136
+ }) : null, getAttachmentIcon ? /*#__PURE__*/React.createElement(Box, null, getAttachmentIcon({
137
+ innerProps: {
138
+ className: commonThreadStyle.attachCount
139
+ },
140
+ wrapperProps: {
141
+ className: ` ${commonThreadStyle.attachIconWrapper} ${commonThreadStyle.icnBtnSpace}`
142
+ }
143
+ })) : null, getMoreDropdown ? /*#__PURE__*/React.createElement(Box, {
144
+ className: `${commonTabStyle.posRel} `
145
+ }, getMoreDropdown()) : null), /*#__PURE__*/React.createElement(Container, {
146
+ alignBox: "row",
147
+ align: "vertical",
148
+ isCover: false,
149
+ dataId: "secThreadPanel",
150
+ onClick: onThreadClick,
151
+ className: commonTabStyle.pointer
152
+ }, getTag ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
153
+ className: commonTabStyle.dot
154
+ }, "."), /*#__PURE__*/React.createElement(Box, {
155
+ shrink: true,
156
+ "is-dot": "true",
157
+ dataId: "privateThread"
158
+ }, getTag())) : null, getDraft ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
159
+ className: commonTabStyle.dot
160
+ }, "."), /*#__PURE__*/React.createElement(Box, {
161
+ shrink: true,
162
+ "is-dot": "true",
163
+ dataId: "draftThread",
164
+ className: `${commonThreadStyle.draftText} ${commonThreadStyle.dotted}`
165
+ }, getDraft())) : null, getResponseDeleted ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
166
+ className: commonTabStyle.dot
167
+ }, "."), /*#__PURE__*/React.createElement(Box, {
168
+ shrink: true,
169
+ "is-dot": "true",
170
+ className: `${commonThreadStyle.forumText} ${commonThreadStyle.dotted}`
171
+ }, getResponseDeleted())) : null, getDraftWithTime ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
172
+ className: commonTabStyle.dot
173
+ }, "."), /*#__PURE__*/React.createElement(Box, {
174
+ shrink: true,
175
+ "is-dot": "true"
176
+ }, getDraftWithTime({
177
+ className: commonThreadStyle.time
178
+ }))) : null, needReadStatus ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
179
+ className: commonTabStyle.dot
180
+ }, "."), /*#__PURE__*/React.createElement(Box, {
181
+ shrink: true,
182
+ "is-dot": "true"
183
+ }, getReadStatus({
184
+ readAllClass: {
185
+ iconClass: commonThreadStyle.readByAll
186
+ },
187
+ readToClass: {
188
+ iconClass: commonThreadStyle.read
189
+ },
190
+ deliveredClass: {
191
+ iconClass: commonThreadStyle.delivered
192
+ },
193
+ failedClass: {
194
+ iconClass: commonThreadStyle.failed
195
+ }
196
+ }))) : null, getRecipentsIcon ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
197
+ className: `${commonTabStyle.dot}`
198
+ }, "."), /*#__PURE__*/React.createElement(Box, {
199
+ "is-dot": "true"
200
+ }, getRecipentsIcon({
201
+ className: `${commonThreadStyle.recipientsCont} ${!isRecipients ? commonThreadStyle.recipientsHide : ''}`
202
+ }))) : null, getKeyWords ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
203
+ className: commonTabStyle.dot
204
+ }, "."), /*#__PURE__*/React.createElement(Box, {
205
+ "is-dot": "true"
206
+ }, getKeyWords())) : null, getImScrollComp ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
207
+ className: `${commonTabStyle.dot} ${commonTabStyle.visibleOnHover}`
208
+ }, "."), /*#__PURE__*/React.createElement(Box, {
209
+ "is-dot": "true",
210
+ className: commonTabStyle.visibleOnHover
211
+ }, getImScrollComp({
212
+ downArrow: {
213
+ iconClass: `${commonThreadStyle.navigationArrow} ${commonThreadStyle.upArrow}`
214
+ },
215
+ upArrow: {
216
+ iconClass: commonThreadStyle.navigationArrow
217
+ }
218
+ }))) : null))), getRecipents ? getRecipents() : null, /*#__PURE__*/React.createElement("div", {
219
+ onClick: onContainerCLick,
220
+ ref: containerRef,
221
+ className: commonThreadStyle.subjectWrapper
222
+ }, getAudioMsg ? getAudioMsg() : null, /*#__PURE__*/React.createElement(VelocityAnimation, {
223
+ name: "slideDown",
224
+ isActive: needToShowContent && !hasTelephonyAudio
225
+ }, /*#__PURE__*/React.createElement("div", {
226
+ "data-id": "content",
227
+ className: invertClass
228
+ }, getContent ? getContent({
229
+ className: commonThreadStyle.thrdPlain
230
+ }) : null, getTruncateOption ? /*#__PURE__*/React.createElement("div", {
231
+ className: commonThreadStyle.cntntOvrLd
232
+ }, getTruncateOption({
233
+ textProps: {
234
+ className: commonThreadStyle.cntntOvrLdSpn
235
+ },
236
+ linkProps: {
237
+ className: commonThreadStyle.cntOvrLdLnk
238
+ }
239
+ })) : null, getQuotedOption ? getQuotedOption({
240
+ textProps: {
241
+ className: commonThreadStyle.response
242
+ },
243
+ iconProps: {
244
+ iconClass: `${commonThreadStyle.quotedIcon} ${showQuotedContent ? commonThreadStyle.isOpened : ''}`
245
+ }
246
+ }) : null, getQuotedContent ? getQuotedContent({
247
+ className: `${commonThreadStyle.thrdPlain} ${channel === 'FEEDBACK' ? commonThreadStyle.quote : ''}`
248
+ }) : null, getVisitorOption ? /*#__PURE__*/React.createElement("div", {
249
+ className: commonThreadStyle.visitorInfo
250
+ }, getVisitorOption({
251
+ wrapperProps: {
252
+ className: !showVisitor ? commonThreadStyle.showVisitor : ''
253
+ },
254
+ innerProps: {
255
+ className: commonThreadStyle.hideVisitor
256
+ }
257
+ })) : null, getVisitorInfo ? getVisitorInfo({
258
+ className: `${invertClass} ${commonThreadStyle.thrdPlain} ${commonThreadStyle.thrdPlainContent}`
259
+ }) : null)), getSummary ? getSummary({
260
+ className: `${invertClass} ${commonThreadStyle.thrdPlain} ${commonThreadStyle.thrdPlainContent} ${needToShowContent ? '' : commonThreadStyle.metaText}`
261
+ }) : null, getAttachment ? getAttachment({
262
+ customWrapperProps: {
263
+ className: commonThreadStyle.attachmentWrapper
264
+ },
265
+ customAttahmentProps: {
266
+ size: 'medium'
267
+ }
268
+ }) : null), getReadReceiptsLookup ? getReadReceiptsLookup({
269
+ readAllClass: {
270
+ iconClass: commonThreadStyle.readByAll
271
+ },
272
+ readToClass: {
273
+ iconClass: commonThreadStyle.read
274
+ },
275
+ deliveredClass: {
276
+ iconClass: commonThreadStyle.delivered
277
+ },
278
+ failedClass: {
279
+ iconClass: commonThreadStyle.failed
280
+ }
281
+ }) : null);
282
+ }
@@ -0,0 +1,35 @@
1
+ .listWrapper,
2
+ .peekListWrapper {
3
+ letter-spacing: 0.2px;
4
+ transition: var(--zd_transition3)
5
+ }.listWrapper, .peekListWrapper {
6
+ padding-top: var(--zd_size15);
7
+ padding-bottom: var(--zd_size9);
8
+ margin: var(--zd_size6);
9
+ border-radius: var(--zd_size4)
10
+ }
11
+ [dir=ltr] .peekListWrapper {
12
+ padding-left: var(--zd_size35);
13
+ padding-right: var(--zd_size23);
14
+ }
15
+ [dir=rtl] .peekListWrapper {
16
+ padding-right: var(--zd_size35);
17
+ padding-left: var(--zd_size23);
18
+ }
19
+ [dir=ltr] .listWrapper {
20
+ padding-left: var(--zd_size58);
21
+ padding-right: var(--zd_size23);
22
+ }
23
+ [dir=rtl] .listWrapper {
24
+ padding-right: var(--zd_size58);
25
+ padding-left: var(--zd_size23);
26
+ }
27
+ .chnlIcn {
28
+ display: block
29
+ }
30
+ [dir=ltr] .chnlIcn {
31
+ margin-right: var(--zd_size14)
32
+ }
33
+ [dir=rtl] .chnlIcn {
34
+ margin-left: var(--zd_size14)
35
+ }
@@ -0,0 +1,270 @@
1
+ import React from 'react';
2
+ import { Container, Box } from '@zohodesk/components/es/Layout';
3
+ import VelocityAnimation from '@zohodesk/components/es/VelocityAnimation/VelocityAnimation/VelocityAnimation';
4
+ import webStyle from './ThreadListItemWeb.module.css';
5
+ import commonWebStyle from '../common/SubTabListItemWebCommon.module.css';
6
+ import commonIconStyle from '../common/twoToneIconColor.module.css';
7
+ import commonThreadStyle from './ThreadListItemCommon.module.css';
8
+ export default function ThreadListItemWebUI(props) {
9
+ const {
10
+ getAvatar,
11
+ getName,
12
+ getSentiment,
13
+ getDraft,
14
+ getTag,
15
+ getResponseDeleted,
16
+ getDraftWithTime,
17
+ getReadStatus,
18
+ getBestAnswer,
19
+ getViaChannel,
20
+ getViaCustomChannel,
21
+ getRecipentsIcon,
22
+ getKeyWords,
23
+ getRatingImg,
24
+ getChannelInfo,
25
+ getAttachmentIcon,
26
+ getMoreDropdown,
27
+ getRecipents,
28
+ getAudioMsg,
29
+ getTruncateOption,
30
+ getQuotedOption,
31
+ getQuotedContent,
32
+ getVisitorOption,
33
+ getVisitorInfo,
34
+ getSummary,
35
+ getContent,
36
+ getAttachment,
37
+ isPeekView,
38
+ isPopupOpen,
39
+ isNightMode,
40
+ dataId,
41
+ id,
42
+ onThreadClick,
43
+ threadRef,
44
+ onContainerCLick,
45
+ containerRef,
46
+ customList,
47
+ authorType,
48
+ isRecipients,
49
+ channel,
50
+ showVisitor,
51
+ needToShowContent,
52
+ hasTelephonyAudio,
53
+ isThreadOpened,
54
+ showQuotedContent,
55
+ getReadReceiptsLookup,
56
+ needReadStatus,
57
+ ViewInLightDarkBg,
58
+ getImScrollComp,
59
+ getTheme,
60
+ children
61
+ } = props;
62
+ let invertClass = isNightMode ? ViewInLightDarkBg ? commonThreadStyle.whiteBg : commonThreadStyle.invert : '';
63
+ return /*#__PURE__*/React.createElement("div", {
64
+ "data-desk-mode": ViewInLightDarkBg ? 'default' : '',
65
+ "data-desk-theme": ViewInLightDarkBg ? getTheme : '',
66
+ className: `${commonWebStyle.wrapper}
67
+ ${isPeekView ? webStyle.peekListWrapper : webStyle.listWrapper}
68
+ ${commonThreadStyle.normal}
69
+ ${!isThreadOpened ? commonThreadStyle.threadShrink : ''}
70
+ ${customList}`,
71
+ "data-id": dataId,
72
+ key: id,
73
+ id: id,
74
+ ref: threadRef,
75
+ "data-a11y-focus": !isThreadOpened,
76
+ tabIndex: "0",
77
+ "aria-label": getContent
78
+ }, children ? children : null, /*#__PURE__*/React.createElement(Container, {
79
+ alignBox: "row",
80
+ align: "vertical",
81
+ isCover: false
82
+ }, /*#__PURE__*/React.createElement(Box, {
83
+ flexible: true
84
+ }, /*#__PURE__*/React.createElement(Container, {
85
+ alignBox: "row",
86
+ align: "vertical",
87
+ isCover: false,
88
+ dataId: "secThreadPanel",
89
+ onClick: onThreadClick,
90
+ className: `${commonThreadStyle.icnBtnSpace} ${commonWebStyle.pointer}`
91
+ }, getAvatar ? /*#__PURE__*/React.createElement(Box, {
92
+ className: commonThreadStyle.avatarWrapper
93
+ }, getAvatar({
94
+ size: 'xsmall'
95
+ })) : null, getName ? /*#__PURE__*/React.createElement(React.Fragment, null, getName({
96
+ 'is-dot': 'true',
97
+ className: `${commonThreadStyle.agentName} ${authorType === 'AGENT' ? commonThreadStyle.agentNameHover : ''} ${commonWebStyle.dotted}`
98
+ })) : null, getSentiment ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
99
+ shrink: true,
100
+ "is-dot": "true"
101
+ }, getSentiment({
102
+ iconSize: '9'
103
+ }))) : null, getDraft ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
104
+ className: commonWebStyle.dot
105
+ }, "."), /*#__PURE__*/React.createElement(Box, {
106
+ shrink: true,
107
+ "is-dot": "true",
108
+ dataId: "draftThread",
109
+ className: `${commonThreadStyle.draftText} ${commonThreadStyle.dotted}`
110
+ }, getDraft())) : null, getTag ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
111
+ className: commonWebStyle.dot
112
+ }, "."), /*#__PURE__*/React.createElement(Box, {
113
+ shrink: true,
114
+ "is-dot": "true",
115
+ dataId: "privateThread"
116
+ }, getTag())) : null, getResponseDeleted ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
117
+ className: commonWebStyle.dot
118
+ }, "."), /*#__PURE__*/React.createElement(Box, {
119
+ shrink: true,
120
+ "is-dot": "true",
121
+ className: `${commonThreadStyle.forumText} ${commonThreadStyle.dotted}`
122
+ }, getResponseDeleted())) : null, getDraftWithTime ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
123
+ className: commonWebStyle.dot
124
+ }, "."), /*#__PURE__*/React.createElement(Box, {
125
+ shrink: true,
126
+ "is-dot": "true"
127
+ }, getDraftWithTime({
128
+ className: commonThreadStyle.time
129
+ }))) : null, needReadStatus ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
130
+ className: commonWebStyle.dot
131
+ }, "."), /*#__PURE__*/React.createElement(Box, {
132
+ shrink: true,
133
+ "is-dot": "true"
134
+ }, getReadStatus({
135
+ readAllClass: {
136
+ iconClass: commonThreadStyle.readByAll
137
+ },
138
+ readToClass: {
139
+ iconClass: commonThreadStyle.read
140
+ },
141
+ deliveredClass: {
142
+ iconClass: commonThreadStyle.delivered
143
+ },
144
+ failedClass: {
145
+ iconClass: commonThreadStyle.failed
146
+ }
147
+ }))) : null, getBestAnswer ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
148
+ className: commonWebStyle.dot
149
+ }, "."), /*#__PURE__*/React.createElement(Box, {
150
+ shrink: true,
151
+ "is-dot": "true",
152
+ dataId: "Best Answer",
153
+ className: `${commonThreadStyle.bestAns} ${commonThreadStyle.dotted}`
154
+ }, getBestAnswer())) : null, getViaChannel ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
155
+ className: commonWebStyle.dot
156
+ }, "."), /*#__PURE__*/React.createElement(Box, {
157
+ shrink: true,
158
+ "is-dot": "true",
159
+ className: commonThreadStyle.forumText
160
+ }, getViaChannel({
161
+ className: commonThreadStyle.primaryText
162
+ }))) : null, getViaCustomChannel ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
163
+ className: commonWebStyle.dot
164
+ }, "."), /*#__PURE__*/React.createElement(Box, {
165
+ shrink: true,
166
+ "is-dot": "true",
167
+ className: commonThreadStyle.forumText
168
+ }, getViaCustomChannel({
169
+ className: commonThreadStyle.primaryText
170
+ }))) : null, getRecipentsIcon ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
171
+ className: `${commonWebStyle.dot} ${commonWebStyle.visibleOnHover}`
172
+ }, "."), /*#__PURE__*/React.createElement(Box, {
173
+ "is-dot": "true"
174
+ }, getRecipentsIcon({
175
+ className: `${commonThreadStyle.recipientsCont} ${commonWebStyle.visibleOnHover} ${!isRecipients ? commonThreadStyle.recipientsHide : ''}`
176
+ }))) : null, getKeyWords ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
177
+ className: `${commonWebStyle.dot} ${commonWebStyle.visibleOnHover}`
178
+ }, "."), /*#__PURE__*/React.createElement(Box, {
179
+ "is-dot": "true",
180
+ className: commonWebStyle.visibleOnHover
181
+ }, getKeyWords())) : null, getImScrollComp ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
182
+ className: `${commonWebStyle.dot} ${commonWebStyle.visibleOnHover}`
183
+ }, "."), /*#__PURE__*/React.createElement(Box, {
184
+ "is-dot": "true",
185
+ className: commonWebStyle.visibleOnHover
186
+ }, getImScrollComp({
187
+ downArrow: {
188
+ iconClass: `${commonThreadStyle.navigationArrow} ${commonThreadStyle.upArrow}`
189
+ },
190
+ upArrow: {
191
+ iconClass: commonThreadStyle.navigationArrow
192
+ }
193
+ }))) : null)), getRatingImg ? /*#__PURE__*/React.createElement(Box, null, getRatingImg({
194
+ className: `${commonThreadStyle.ratingImage} ${commonThreadStyle.icnBtnSpace} ${commonWebStyle.visibleOnHover}`
195
+ })) : null, getChannelInfo ? /*#__PURE__*/React.createElement(Box, null, getChannelInfo({
196
+ iconClass: `${webStyle.chnlIcn} ${commonIconStyle.primary}`
197
+ })) : null, getAttachmentIcon ? /*#__PURE__*/React.createElement(Box, null, getAttachmentIcon({
198
+ innerProps: {
199
+ className: commonThreadStyle.attachCount
200
+ },
201
+ wrapperProps: {
202
+ className: `${commonThreadStyle.attachIconWrapper} ${commonThreadStyle.icnBtnSpace}`
203
+ }
204
+ })) : null, getMoreDropdown ? /*#__PURE__*/React.createElement(Box, {
205
+ className: `${commonWebStyle.posRel} ${!isPopupOpen ? commonWebStyle.visibleOnHover : ''}`
206
+ }, getMoreDropdown()) : null), getRecipents ? getRecipents() : null, /*#__PURE__*/React.createElement("div", {
207
+ onClick: onContainerCLick,
208
+ ref: containerRef,
209
+ className: commonThreadStyle.subjectWrapper
210
+ }, getAudioMsg ? getAudioMsg() : null, /*#__PURE__*/React.createElement(VelocityAnimation, {
211
+ name: "slideDown",
212
+ isActive: needToShowContent && !hasTelephonyAudio
213
+ }, /*#__PURE__*/React.createElement("div", {
214
+ "data-id": "content",
215
+ className: invertClass
216
+ }, getContent ? getContent({
217
+ className: commonThreadStyle.thrdPlain
218
+ }) : null, getTruncateOption ? /*#__PURE__*/React.createElement("div", {
219
+ className: commonThreadStyle.cntntOvrLd
220
+ }, getTruncateOption({
221
+ textProps: {
222
+ className: commonThreadStyle.cntntOvrLdSpn
223
+ },
224
+ linkProps: {
225
+ className: commonThreadStyle.cntOvrLdLnk
226
+ }
227
+ })) : null, getQuotedOption ? getQuotedOption({
228
+ textProps: {
229
+ className: commonThreadStyle.response
230
+ },
231
+ iconProps: {
232
+ iconClass: `${commonThreadStyle.quotedIcon} ${showQuotedContent ? commonThreadStyle.isOpened : ''}`
233
+ }
234
+ }) : null, getQuotedContent ? getQuotedContent({
235
+ className: `${commonThreadStyle.thrdPlain} ${channel === 'FEEDBACK' ? commonThreadStyle.quote : ''}`
236
+ }) : null, getVisitorOption ? /*#__PURE__*/React.createElement("div", {
237
+ className: commonThreadStyle.visitorInfo
238
+ }, getVisitorOption({
239
+ wrapperProps: {
240
+ className: !showVisitor ? commonThreadStyle.showVisitor : ''
241
+ },
242
+ innerProps: {
243
+ className: commonThreadStyle.hideVisitor
244
+ }
245
+ })) : null, getVisitorInfo ? getVisitorInfo({
246
+ className: `${invertClass} ${commonThreadStyle.thrdPlain} ${commonThreadStyle.thrdPlainContent}`
247
+ }) : null)), getSummary ? getSummary({
248
+ className: `${invertClass} ${commonThreadStyle.thrdPlain} ${commonThreadStyle.thrdPlainContent} ${needToShowContent ? '' : commonThreadStyle.metaText}`
249
+ }) : null, getAttachment ? getAttachment({
250
+ customWrapperProps: {
251
+ className: commonThreadStyle.attachmentWrapper
252
+ },
253
+ customAttahmentProps: {
254
+ size: 'medium'
255
+ }
256
+ }) : null), getReadReceiptsLookup ? getReadReceiptsLookup({
257
+ readAllClass: {
258
+ iconClass: commonThreadStyle.readByAll
259
+ },
260
+ readToClass: {
261
+ iconClass: commonThreadStyle.read
262
+ },
263
+ deliveredClass: {
264
+ iconClass: commonThreadStyle.delivered
265
+ },
266
+ failedClass: {
267
+ iconClass: commonThreadStyle.failed
268
+ }
269
+ }) : null);
270
+ }
@@ -0,0 +1,59 @@
1
+ [dir=ltr] .listWrapper {
2
+ padding-left: var(--zd_size20);
3
+ padding-right: var(--zd_size15);
4
+ }[dir=rtl] .listWrapper {
5
+ padding-right: var(--zd_size20);
6
+ padding-left: var(--zd_size15);
7
+ }
8
+
9
+ [dir=ltr] .avatarWrapper {
10
+ margin-right: var(--zd_size15);
11
+ }
12
+
13
+ [dir=rtl] .avatarWrapper {
14
+ margin-left: var(--zd_size15);
15
+ }
16
+
17
+ .secondaryWrapper {
18
+ line-height: var(--zd_size18);
19
+ margin-top: var(--zd_size2);
20
+ }
21
+
22
+ .notAccessible {
23
+ cursor: not-allowed
24
+ }
25
+
26
+ .dot {
27
+ color: var(--zdt_dot_text);
28
+ font-size: var(--zd_font_size16);
29
+ line-height: 0;
30
+ display: none;
31
+ transform: perspective(1px);
32
+ margin: 0 var(--zd_size6)
33
+ }
34
+
35
+ [is-dot='true']+.dot {
36
+ display: block
37
+ }
38
+
39
+ .posRel {
40
+ position: relative;
41
+ }
42
+
43
+ .dotted {
44
+ composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
45
+ }
46
+
47
+ .visibleOnHover {
48
+ opacity: 0;
49
+ visibility: hidden;
50
+ }
51
+
52
+ .wrapper:hover .visibleOnHover {
53
+ opacity: 1;
54
+ visibility: visible;
55
+ }
56
+
57
+ .secondaryItem {
58
+ max-width: var(--zd_size132)
59
+ }