@zohodesk/dot 1.0.0-temp-137 → 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.
- package/README.md +6 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +66 -0
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +4 -0
- package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +4 -0
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +66 -0
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +66 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +4 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +4 -0
- package/css_error.log +1 -0
- package/es/TagWithIcon/TagWithIcon.js +62 -0
- package/es/TagWithIcon/TagWithIcon.module.css +56 -0
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +9 -3
- package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/es/dropdown/ToggleDropDown/props/propTypes.js +5 -1
- package/es/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
- package/es/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
- package/es/layout/List/CommentsList/CommentListItemFromTabUI.js +121 -0
- package/es/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
- package/es/layout/List/CommentsList/CommentListItemWebUI.js +107 -0
- package/es/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
- package/es/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
- package/es/layout/List/ThreadsList/ThreadListItemFromTabUI.js +282 -0
- package/es/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
- package/es/layout/List/ThreadsList/ThreadListItemWebUI.js +270 -0
- package/es/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
- package/es/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
- package/es/layout/List/common/twoToneIconColor.module.css +26 -0
- package/es/list/status/StatusListItem/StatusListItem.js +1 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +7 -5
- package/lib/TagWithIcon/TagWithIcon.js +92 -0
- package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +9 -3
- package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
- package/lib/dropdown/ToggleDropDown/props/propTypes.js +5 -1
- package/lib/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
- package/lib/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
- package/lib/layout/List/CommentsList/CommentListItemFromTabUI.js +123 -0
- package/lib/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
- package/lib/layout/List/CommentsList/CommentListItemWebUI.js +109 -0
- package/lib/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
- package/lib/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
- package/lib/layout/List/ThreadsList/ThreadListItemFromTabUI.js +283 -0
- package/lib/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
- package/lib/layout/List/ThreadsList/ThreadListItemWebUI.js +271 -0
- package/lib/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
- package/lib/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
- package/lib/layout/List/common/twoToneIconColor.module.css +26 -0
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +7 -5
- package/package.json +3 -3
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
.normal {
|
|
2
|
+
border: 1px solid var(--zdt_conversationList_border);
|
|
3
|
+
background-color: var(--zdt_thread_bg);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.threadShrink {
|
|
7
|
+
background-color: var(--zdt_subtabList_bg_hover);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[dir=ltr] .avatarWrapper {
|
|
11
|
+
margin-right: var(--zd_size15);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[dir=rtl] .avatarWrapper {
|
|
15
|
+
margin-left: var(--zd_size15);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.agentName {
|
|
19
|
+
font-size: var(--zd_font_size14);
|
|
20
|
+
composes: bold from '~@zohodesk/components/lib/common/common.module.css';
|
|
21
|
+
color: var(--zdt_conversationList_agentName_text);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.agentNameHover:hover,
|
|
25
|
+
.primaryText {
|
|
26
|
+
color: var(--zdt_conversationList_agent_text);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.agentNameHover:hover, .primaryText {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.attachCount {
|
|
34
|
+
top: calc(var(--zd_size4) * -1);
|
|
35
|
+
color: var(--zdt_conversationList_attachCount_text);
|
|
36
|
+
position: relative;
|
|
37
|
+
font-size: var(--zd_font_size10);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.attachIconWrapper {
|
|
41
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/lib/common/common.module.css';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.attachmentWrapper {
|
|
45
|
+
margin-top: var(--zd_size5);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.thrdPlain {
|
|
49
|
+
font-size: var(--zd_font_size14);
|
|
50
|
+
word-break: break-word;
|
|
51
|
+
composes: oflowx from '~@zohodesk/components/lib/common/common.module.css';
|
|
52
|
+
color: var(--zdt_conversationList_thread_text);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.thrdPlain table {
|
|
56
|
+
word-break: initial;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.thrdPlainContent {
|
|
60
|
+
line-height: var(--zd_size20);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.thrdPlain a {
|
|
64
|
+
color: var(--zdt_conversationList_primary_text);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.thrdPlain a:hover {
|
|
68
|
+
color: var(--zdt_conversationList_primary_hover_text);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.thrdPlain img[src*='/ImageDisplay'], .thrdPlain img[src*='/inlineImages'], .thrdPlain img[src*='/ViewMailAttachment.do'] {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[dir=ltr] .thrdPlain blockquote {
|
|
76
|
+
margin: 0 0 0 var(--zd_size4);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[dir=rtl] .thrdPlain blockquote {
|
|
80
|
+
margin: 0 var(--zd_size4) 0 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.thrdPlain img {
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.whiteBg.thrdPlain a,
|
|
88
|
+
.whiteBg .thrdPlain a {
|
|
89
|
+
color: var(--zdt_conversationList_agent_text);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.whiteBg.thrdPlain a:hover,
|
|
93
|
+
.whiteBg .thrdPlain a:hover {
|
|
94
|
+
color: var(--zdt_conversationList_agent_hover_text);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* opposite colors applied in variables to show original theme colors for selection area in inverted threads */
|
|
98
|
+
.invert .thrdPlain ::selection,
|
|
99
|
+
.invert.thrdPlain ::selection,
|
|
100
|
+
.invert .thrdPlain::selection,
|
|
101
|
+
.invert.thrdPlain::selection {
|
|
102
|
+
color: var(--zdt_inverted_selection_text);
|
|
103
|
+
}
|
|
104
|
+
.invert .thrdPlain ::selection, .invert.thrdPlain ::selection, .invert .thrdPlain::selection, .invert.thrdPlain::selection {
|
|
105
|
+
background-color: var(--zdt_selection_bg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.invert .thrdPlain ::-moz-selection,
|
|
109
|
+
.invert.thrdPlain ::-moz-selection,
|
|
110
|
+
.invert .thrdPlain::-moz-selection,
|
|
111
|
+
.invert.thrdPlain::-moz-selection {
|
|
112
|
+
color: var(--zdt_inverted_selection_text);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.invert .thrdPlain ::-moz-selection, .invert.thrdPlain ::-moz-selection, .invert .thrdPlain::-moz-selection, .invert.thrdPlain::-moz-selection {
|
|
116
|
+
background-color: var(--zdt_selection_bg);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.invert .thrdPlain,
|
|
120
|
+
.invert.thrdPlain {
|
|
121
|
+
filter: invert(1) hue-rotate(180deg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* <img> and <a> elements selection inverted again below. So, to avoid opposite colors in <img> & <a> area original colors variables used below */
|
|
125
|
+
.invert .thrdPlain img::selection,
|
|
126
|
+
.invert.thrdPlain img::selection {
|
|
127
|
+
color: var(--zdt_selection_text);
|
|
128
|
+
}
|
|
129
|
+
.invert .thrdPlain img::selection, .invert.thrdPlain img::selection {
|
|
130
|
+
background-color: var(--zdt_selection_bg);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.invert .thrdPlain img::-moz-selection,
|
|
134
|
+
.invert.thrdPlain img::-moz-selection {
|
|
135
|
+
color: var(--zdt_selection_text);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.invert .thrdPlain img::-moz-selection, .invert.thrdPlain img::-moz-selection {
|
|
139
|
+
background-color: var(--zdt_selection_bg);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.invert img,
|
|
143
|
+
.invert video {
|
|
144
|
+
filter: invert(1) hue-rotate(180deg);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.dotted {
|
|
148
|
+
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
/* ----- */
|
|
154
|
+
.draftText,
|
|
155
|
+
.forumText,
|
|
156
|
+
.showVisitor,
|
|
157
|
+
.response,
|
|
158
|
+
.bestAns {
|
|
159
|
+
font-size: var(--zd_font_size12);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.draftText {
|
|
163
|
+
color: var(--zdt_threadList_Draft_text);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.forumText {
|
|
167
|
+
color: var(--zdt_conversationList_secondaryText);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.bestAns {
|
|
171
|
+
color: var(--zdt_threadList_BestAns_text);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.time {
|
|
175
|
+
font-size: var(--zd_font_size12);
|
|
176
|
+
color: var(--zdt_conversationList_time_text);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.recipientsCont {
|
|
180
|
+
line-height: 0;
|
|
181
|
+
color: var(--zdt_threadList_secondaryText);
|
|
182
|
+
border: 1px solid var(--zdt_threadList_recipient_border);
|
|
183
|
+
padding: var(--zd_size2);
|
|
184
|
+
border-radius: 1px;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.recipientsCont:hover {
|
|
189
|
+
color: var(--zdt_threadList_secondaryText_hover);
|
|
190
|
+
border: 1px solid var(--zdt_threadList_recipient_border_hover);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
[dir=ltr] .recipientsHide {
|
|
194
|
+
transform: rotate(-90deg);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[dir=rtl] .recipientsHide {
|
|
198
|
+
transform: rotate(90deg);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.ratingImage {
|
|
202
|
+
height: var(--zd_size15);
|
|
203
|
+
width: var(--zd_size15);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
[dir=ltr] .icnBtnSpace {
|
|
207
|
+
margin-right: var(--zd_size8);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
[dir=rtl] .icnBtnSpace {
|
|
211
|
+
margin-left: var(--zd_size8);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.cntntOvrLd {
|
|
215
|
+
margin-top: var(--zd_size30);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.cntntOvrLdSpn {
|
|
219
|
+
color: var(--zdt_threadList_secondaryText);
|
|
220
|
+
font-size: var(--zd_font_size14);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.cntOvrLdLnk {
|
|
224
|
+
color: var(--zdt_threadList_link_text);
|
|
225
|
+
vertical-align: middle;
|
|
226
|
+
font-size: var(--zd_font_size14);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
[dir=ltr] .cntOvrLdLnk {
|
|
230
|
+
margin-left: var(--zd_size2);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
[dir=rtl] .cntOvrLdLnk {
|
|
234
|
+
margin-right: var(--zd_size2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.showVisitor,
|
|
238
|
+
.hideVisitor,
|
|
239
|
+
.response {
|
|
240
|
+
text-decoration: underline;
|
|
241
|
+
color: var(--zdt_threadList_secondaryText);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.showVisitor:hover,
|
|
245
|
+
.hideVisitor:hover,
|
|
246
|
+
.response:hover {
|
|
247
|
+
text-decoration: none;
|
|
248
|
+
color: var(--zdt_threadList_secondaryText_hover);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.quotedIcon {
|
|
252
|
+
color: var(--zdt_threadList_expand_icon);
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.quotedIcon:hover {
|
|
257
|
+
color: var(--zdt_threadList_secondaryText);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.quotedIcon.isOpened {
|
|
261
|
+
color: var(--zdt_threadList_expand_icon_active);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.quote {
|
|
265
|
+
margin: var(--zd_size15);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.visitorInfo {
|
|
269
|
+
margin: var(--zd_size20) 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.metaText {
|
|
273
|
+
composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.subjectWrapper {
|
|
278
|
+
margin-top: var(--zd_size11);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.delivered, .readByAll, .read, .failed {
|
|
282
|
+
padding: 0 var(--zd_size2);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
[dir=ltr] .delivered, [dir=ltr] .readByAll, [dir=ltr] .read, [dir=ltr] .failed {
|
|
286
|
+
margin-left: var(--zd_size4);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
[dir=rtl] .delivered, [dir=rtl] .readByAll, [dir=rtl] .read, [dir=rtl] .failed {
|
|
290
|
+
margin-right: var(--zd_size4);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.delivered:hover {
|
|
294
|
+
background-color: var(--zdt_readReceipts_statusIcon_grey_bg);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.readByAll {
|
|
298
|
+
color: var(--zdt_readReceipts_statusIcon_green)
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.readByAll:hover {
|
|
302
|
+
background-color: var(--zdt_readReceipts_statusIcon_green_bg);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.read {
|
|
306
|
+
color: var(--zdt_readReceipts_statusIcon_blue)
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.read:hover {
|
|
310
|
+
background-color: var(--zdt_readReceipts_statusIcon_blue_bg);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.failed {
|
|
314
|
+
color: var(--zdt_readReceipts_statusIcon_red)
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.failed:hover {
|
|
318
|
+
background-color: var(--zdt_readReceipts_statusIcon_red_bg);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.threadWrapper {
|
|
322
|
+
height: 100%;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.expanded {
|
|
326
|
+
height: calc(100% - calc(var(--threadListMargin) * 2));
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.navigationArrow {
|
|
330
|
+
color: var(--zdt_threadList_recipient_border)
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.navigationArrow:hover {
|
|
334
|
+
color: var(--zdt_threadList_recipient_border_hover)
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
[dir=ltr] .upArrow {
|
|
338
|
+
transform: rotate(180deg);
|
|
339
|
+
margin-right: var(--zd_size10);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
[dir=rtl] .upArrow {
|
|
343
|
+
transform: rotate(-180deg);
|
|
344
|
+
margin-left: var(--zd_size10);
|
|
345
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.listWrapper,
|
|
2
|
+
.mobileListWrapper {
|
|
3
|
+
letter-spacing: 0.2px;
|
|
4
|
+
transition: var(--zd_transition3)
|
|
5
|
+
}.listWrapper, .mobileListWrapper {
|
|
6
|
+
padding-top: var(--zd_size12);
|
|
7
|
+
padding-bottom: var(--zd_size12);
|
|
8
|
+
margin: var(--zd_size8);
|
|
9
|
+
border-radius: var(--zd_size4)
|
|
10
|
+
}
|
|
11
|
+
[dir=ltr] .mobileListWrapper {
|
|
12
|
+
padding-left: var(--zd_size16);
|
|
13
|
+
padding-right: var(--zd_size16);
|
|
14
|
+
}
|
|
15
|
+
[dir=rtl] .mobileListWrapper {
|
|
16
|
+
padding-right: var(--zd_size16);
|
|
17
|
+
padding-left: var(--zd_size16);
|
|
18
|
+
}
|
|
19
|
+
[dir=ltr] .listWrapper {
|
|
20
|
+
padding-left: var(--zd_size20);
|
|
21
|
+
padding-right: var(--zd_size16);
|
|
22
|
+
}
|
|
23
|
+
[dir=rtl] .listWrapper {
|
|
24
|
+
padding-right: var(--zd_size20);
|
|
25
|
+
padding-left: var(--zd_size16);
|
|
26
|
+
}
|
|
27
|
+
[dir=ltr] .chnlIcn {
|
|
28
|
+
margin-right: var(--zd_size14);
|
|
29
|
+
}
|
|
30
|
+
[dir=rtl] .chnlIcn {
|
|
31
|
+
margin-left: var(--zd_size14);
|
|
32
|
+
}
|
|
33
|
+
.lineSpace {
|
|
34
|
+
margin-top: var(--zd_size4)
|
|
35
|
+
}
|
|
@@ -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
|
+
}
|