@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,143 @@
|
|
|
1
|
+
.private {
|
|
2
|
+
background-color: var(--zdt_commentList_private_bg);
|
|
3
|
+
border: 1px solid var(--zdt_commentList_private_border);
|
|
4
|
+
}
|
|
5
|
+
.public {
|
|
6
|
+
background-color: var(--zdt_commentList_public_bg);
|
|
7
|
+
border: 1px solid var(--zdt_commentList_public_border);
|
|
8
|
+
}
|
|
9
|
+
.normal {
|
|
10
|
+
background-color: var(--zdt_commentList_normal_bg);
|
|
11
|
+
border: 1px solid var(--zdt_conversationList_border);
|
|
12
|
+
}
|
|
13
|
+
.publicIcon :global .path2:before {
|
|
14
|
+
color: var(--zdt_commentList_publicIcon_border);
|
|
15
|
+
}
|
|
16
|
+
.publicIcon :global .path1:before {
|
|
17
|
+
color: var(--zdt_commentList_publicIcon_bg);
|
|
18
|
+
}
|
|
19
|
+
.privateIcon :global .path2:before {
|
|
20
|
+
color: var(--zdt_commentList_privateIcon_border);
|
|
21
|
+
}
|
|
22
|
+
.privateIcon :global .path1:before {
|
|
23
|
+
color: var(--zdt_commentList_privateIcon_bg);
|
|
24
|
+
}
|
|
25
|
+
[dir=ltr] .avatarWrapper {
|
|
26
|
+
margin-right: var(--zd_size15);
|
|
27
|
+
}
|
|
28
|
+
[dir=rtl] .avatarWrapper {
|
|
29
|
+
margin-left: var(--zd_size15);
|
|
30
|
+
}
|
|
31
|
+
.agentName {
|
|
32
|
+
font-size: var(--zd_font_size14);
|
|
33
|
+
composes: bold from '~@zohodesk/components/lib/common/common.module.css';
|
|
34
|
+
color: var(--zdt_conversationList_agentName_text);
|
|
35
|
+
}
|
|
36
|
+
.agentNameHover:hover {
|
|
37
|
+
color: var(--zdt_conversationList_agent_text);
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
.editTxt {
|
|
41
|
+
font-size: var(--zd_font_size12);
|
|
42
|
+
color: var(--zdt_conversationList_secondaryText);
|
|
43
|
+
}
|
|
44
|
+
.editAccess {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
.editAccess:hover {
|
|
48
|
+
color: var(--zdt_commentList_edit_hover_text);
|
|
49
|
+
}
|
|
50
|
+
.attachCount {
|
|
51
|
+
top: calc(var(--zd_size4) * -1);
|
|
52
|
+
color: var(--zdt_conversationList_attachCount_text);
|
|
53
|
+
position: relative;
|
|
54
|
+
font-size: var(--zd_font_size10);
|
|
55
|
+
}
|
|
56
|
+
.contentWrapper {
|
|
57
|
+
margin-bottom: var(--zd_size12);
|
|
58
|
+
}
|
|
59
|
+
.attachmentWrapper {
|
|
60
|
+
margin-top: var(--zd_size4);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.thrdPlain {
|
|
64
|
+
font-size: var(--zd_font_size14);
|
|
65
|
+
word-break: break-word;
|
|
66
|
+
composes: oflowx from '~@zohodesk/components/lib/common/common.module.css';
|
|
67
|
+
color: var(--zdt_conversationList_thread_text);
|
|
68
|
+
}
|
|
69
|
+
.thrdPlain table {
|
|
70
|
+
word-break: initial;
|
|
71
|
+
}
|
|
72
|
+
.thrdPlainContent {
|
|
73
|
+
line-height: var(--zd_size20);
|
|
74
|
+
}
|
|
75
|
+
.thrdPlain a {
|
|
76
|
+
color: var(--zdt_conversationList_primary_text);
|
|
77
|
+
}
|
|
78
|
+
.thrdPlain a:hover {
|
|
79
|
+
color: var(--zdt_conversationList_primary_hover_text);
|
|
80
|
+
}
|
|
81
|
+
.thrdPlain img[src*='/ImageDisplay'], .thrdPlain img[src*='/inlineImages'], .thrdPlain img[src*='/ViewMailAttachment.do'] {
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
[dir=ltr] .thrdPlain blockquote {
|
|
85
|
+
margin: 0 0 0 var(--zd_size4);
|
|
86
|
+
}
|
|
87
|
+
[dir=rtl] .thrdPlain blockquote {
|
|
88
|
+
margin: 0 var(--zd_size4) 0 0;
|
|
89
|
+
}
|
|
90
|
+
.thrdPlain img {
|
|
91
|
+
max-width: 100%;
|
|
92
|
+
}
|
|
93
|
+
.whiteBg.thrdPlain a,
|
|
94
|
+
.whiteBg .thrdPlain a {
|
|
95
|
+
color: var(--zdt_conversationList_agent_text);
|
|
96
|
+
}
|
|
97
|
+
.whiteBg.thrdPlain a:hover,
|
|
98
|
+
.whiteBg .thrdPlain a:hover {
|
|
99
|
+
color: var(--zdt_conversationList_agent_hover_text);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* opposite colors applied in variables to show original theme colors for selection area in inverted threads */
|
|
103
|
+
.invert .thrdPlain ::selection,
|
|
104
|
+
.invert.thrdPlain ::selection,
|
|
105
|
+
.invert .thrdPlain::selection,
|
|
106
|
+
.invert.thrdPlain::selection {
|
|
107
|
+
color: var(--zdt_inverted_selection_text);
|
|
108
|
+
}
|
|
109
|
+
.invert .thrdPlain ::selection, .invert.thrdPlain ::selection, .invert .thrdPlain::selection, .invert.thrdPlain::selection {
|
|
110
|
+
background-color: var(--zdt_selection_bg);
|
|
111
|
+
}
|
|
112
|
+
.invert .thrdPlain ::-moz-selection,
|
|
113
|
+
.invert.thrdPlain ::-moz-selection,
|
|
114
|
+
.invert .thrdPlain::-moz-selection,
|
|
115
|
+
.invert.thrdPlain::-moz-selection {
|
|
116
|
+
color: var(--zdt_inverted_selection_text);
|
|
117
|
+
}
|
|
118
|
+
.invert .thrdPlain ::-moz-selection, .invert.thrdPlain ::-moz-selection, .invert .thrdPlain::-moz-selection, .invert.thrdPlain::-moz-selection {
|
|
119
|
+
background-color: var(--zdt_selection_bg);
|
|
120
|
+
}
|
|
121
|
+
.invert .thrdPlain,
|
|
122
|
+
.invert.thrdPlain {
|
|
123
|
+
filter: invert(1) hue-rotate(180deg);
|
|
124
|
+
}
|
|
125
|
+
/* <img> and <a> elements selection inverted again below. So, to avoid opposite colors in <img> & <a> area original colors variables used below */
|
|
126
|
+
.invert .thrdPlain img::selection,
|
|
127
|
+
.invert.thrdPlain img::selection {
|
|
128
|
+
color: var(--zdt_selection_text);
|
|
129
|
+
}
|
|
130
|
+
.invert .thrdPlain img::selection, .invert.thrdPlain img::selection {
|
|
131
|
+
background-color: var(--zdt_selection_bg);
|
|
132
|
+
}
|
|
133
|
+
.invert .thrdPlain img::-moz-selection,
|
|
134
|
+
.invert.thrdPlain img::-moz-selection {
|
|
135
|
+
color: var(--zdt_selection_text);
|
|
136
|
+
}
|
|
137
|
+
.invert .thrdPlain img::-moz-selection, .invert.thrdPlain img::-moz-selection {
|
|
138
|
+
background-color: var(--zdt_selection_bg);
|
|
139
|
+
}
|
|
140
|
+
.invert img,
|
|
141
|
+
.invert video {
|
|
142
|
+
filter: invert(1) hue-rotate(180deg);
|
|
143
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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_size12);
|
|
22
|
+
}
|
|
23
|
+
[dir=rtl] .listWrapper {
|
|
24
|
+
padding-right: var(--zd_size20);
|
|
25
|
+
padding-left: var(--zd_size12);
|
|
26
|
+
}
|
|
27
|
+
.lightAgentTxt {
|
|
28
|
+
font-size: var(--zd_font_size12);
|
|
29
|
+
color: var(--zdt_conversationList_secondaryText);
|
|
30
|
+
}
|
|
31
|
+
[dir=ltr] .lightAgentTxt {
|
|
32
|
+
margin-left: var(--zd_size4);
|
|
33
|
+
}
|
|
34
|
+
[dir=rtl] .lightAgentTxt {
|
|
35
|
+
margin-right: var(--zd_size4);
|
|
36
|
+
}
|
|
37
|
+
.attachIconWrapper {
|
|
38
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/lib/common/common.module.css';
|
|
39
|
+
}
|
|
40
|
+
[dir=ltr] .attachIconWrapper {
|
|
41
|
+
margin-right: var(--zd_size8);
|
|
42
|
+
margin-left: var(--zd_size8);
|
|
43
|
+
}
|
|
44
|
+
[dir=rtl] .attachIconWrapper {
|
|
45
|
+
margin-left: var(--zd_size8);
|
|
46
|
+
margin-right: var(--zd_size8);
|
|
47
|
+
}
|
|
48
|
+
.time {
|
|
49
|
+
font-size: var(--zd_size11)
|
|
50
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
3
|
+
import tabStyle from './CommentListItemFromTab.module.css';
|
|
4
|
+
import commonTabStyle from '../common/SubTabListItemTabCommon.module.css';
|
|
5
|
+
import commonCommentStyle from './CommentListItemCommon.module.css';
|
|
6
|
+
export default function CommentListItemFromTabUI(props) {
|
|
7
|
+
const {
|
|
8
|
+
isPeekView,
|
|
9
|
+
isPublic,
|
|
10
|
+
dataId,
|
|
11
|
+
getAvatar,
|
|
12
|
+
getName,
|
|
13
|
+
getLightAgent,
|
|
14
|
+
getTag,
|
|
15
|
+
getTime,
|
|
16
|
+
getEdit,
|
|
17
|
+
getAttachmentIcon,
|
|
18
|
+
getAttachment,
|
|
19
|
+
getMoreDropdown,
|
|
20
|
+
getContent,
|
|
21
|
+
from,
|
|
22
|
+
hasPrivacyMode,
|
|
23
|
+
hasEditHistoryPermission,
|
|
24
|
+
isPopupOpen,
|
|
25
|
+
isNightMode,
|
|
26
|
+
onContentWrapperClick,
|
|
27
|
+
contentWrapperRef,
|
|
28
|
+
key,
|
|
29
|
+
id,
|
|
30
|
+
customList,
|
|
31
|
+
isMobile,
|
|
32
|
+
ViewInLightDarkBg,
|
|
33
|
+
getTheme,
|
|
34
|
+
children
|
|
35
|
+
} = props;
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
"data-desk-mode": ViewInLightDarkBg ? 'default' : '',
|
|
38
|
+
"data-desk-theme": ViewInLightDarkBg ? getTheme : '',
|
|
39
|
+
className: `${commonTabStyle.wrapper}
|
|
40
|
+
${isMobile ? tabStyle.mobileListWrapper : tabStyle.listWrapper}
|
|
41
|
+
${hasPrivacyMode ? isPublic ? commonCommentStyle.public : commonCommentStyle.private : commonCommentStyle.normal}
|
|
42
|
+
${customList}`,
|
|
43
|
+
"data-id": dataId,
|
|
44
|
+
key: key,
|
|
45
|
+
id: id
|
|
46
|
+
}, children ? children : null, /*#__PURE__*/React.createElement(Container, {
|
|
47
|
+
alignBox: "row",
|
|
48
|
+
align: "vertical",
|
|
49
|
+
isCover: false,
|
|
50
|
+
className: getContent || getAttachment ? commonCommentStyle.contentWrapper : ''
|
|
51
|
+
}, getAvatar ? /*#__PURE__*/React.createElement(Box, {
|
|
52
|
+
shrink: true,
|
|
53
|
+
className: commonCommentStyle.avatarWrapper
|
|
54
|
+
}, getAvatar({
|
|
55
|
+
size: 'xsmall',
|
|
56
|
+
iconColor: hasPrivacyMode ? isPublic ? commonCommentStyle.publicIcon : commonCommentStyle.privateIcon : ''
|
|
57
|
+
})) : null, /*#__PURE__*/React.createElement(Box, {
|
|
58
|
+
flexible: true
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
60
|
+
alignBox: "row",
|
|
61
|
+
align: "vertical",
|
|
62
|
+
isCover: false
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
64
|
+
flexible: true
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
66
|
+
alignBox: "row",
|
|
67
|
+
align: "vertical",
|
|
68
|
+
isCover: false,
|
|
69
|
+
"data-a11y-focus": true,
|
|
70
|
+
onClick: onContentWrapperClick
|
|
71
|
+
}, getName ? /*#__PURE__*/React.createElement(React.Fragment, null, getName({
|
|
72
|
+
'is-dot': 'true',
|
|
73
|
+
className: `${commonCommentStyle.agentName} ${from != 'editHistory' ? commonCommentStyle.agentNameHover : ''} ${commonTabStyle.dotted}`
|
|
74
|
+
})) : null, getLightAgent ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
75
|
+
className: commonTabStyle.dot
|
|
76
|
+
}, "."), getLightAgent({
|
|
77
|
+
'is-dot': 'true',
|
|
78
|
+
className: `${tabStyle.lightAgentTxt} ${commonTabStyle.dotted}`
|
|
79
|
+
})) : null)), getAttachmentIcon ? /*#__PURE__*/React.createElement(Box, null, getAttachmentIcon({
|
|
80
|
+
innerProps: {
|
|
81
|
+
className: commonCommentStyle.attachCount
|
|
82
|
+
},
|
|
83
|
+
wrapperProps: {
|
|
84
|
+
className: tabStyle.attachIconWrapper
|
|
85
|
+
}
|
|
86
|
+
})) : null, getMoreDropdown ? /*#__PURE__*/React.createElement(Box, {
|
|
87
|
+
className: `${commonTabStyle.posRel} ${!isPopupOpen ? commonTabStyle.floatingWrapper : ''}`
|
|
88
|
+
}, getMoreDropdown()) : null), /*#__PURE__*/React.createElement(Container, {
|
|
89
|
+
alignBox: "row",
|
|
90
|
+
align: "vertical",
|
|
91
|
+
isCover: false
|
|
92
|
+
}, getTag ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
93
|
+
className: commonTabStyle.dot
|
|
94
|
+
}, "."), /*#__PURE__*/React.createElement(Box, {
|
|
95
|
+
shrink: true,
|
|
96
|
+
"is-dot": "true"
|
|
97
|
+
}, getTag())) : null, getTime ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
98
|
+
className: commonTabStyle.dot
|
|
99
|
+
}, "."), /*#__PURE__*/React.createElement(Box, {
|
|
100
|
+
shrink: true,
|
|
101
|
+
"is-dot": "true",
|
|
102
|
+
className: commonTabStyle.dotted
|
|
103
|
+
}, getTime(isMobile ? {
|
|
104
|
+
textClass: tabStyle.time
|
|
105
|
+
} : ''))) : null, getEdit ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
106
|
+
className: commonTabStyle.dot
|
|
107
|
+
}, "."), getEdit({
|
|
108
|
+
'is-dot': 'true',
|
|
109
|
+
className: `${commonCommentStyle.editTxt} ${hasEditHistoryPermission ? commonCommentStyle.editAccess : ''} ${commonTabStyle.dotted}`
|
|
110
|
+
})) : null))), /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
onClick: onContentWrapperClick,
|
|
112
|
+
ref: contentWrapperRef
|
|
113
|
+
}, getContent ? getContent({
|
|
114
|
+
className: `${isNightMode ? ViewInLightDarkBg ? commonCommentStyle.whiteBg : commonCommentStyle.invert : ''} ${commonCommentStyle.thrdPlain}`
|
|
115
|
+
}) : null, getAttachment ? getAttachment({
|
|
116
|
+
customWrapperClass: {
|
|
117
|
+
className: commonCommentStyle.attachmentWrapper
|
|
118
|
+
},
|
|
119
|
+
size: 'small'
|
|
120
|
+
}) : null));
|
|
121
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
.lightAgentTxt {
|
|
28
|
+
font-size: var(--zd_font_size11);
|
|
29
|
+
color: var(--zdt_conversationList_secondaryText);
|
|
30
|
+
}
|
|
31
|
+
[dir=ltr] .lightAgentTxt {
|
|
32
|
+
margin-left: var(--zd_size4);
|
|
33
|
+
}
|
|
34
|
+
[dir=rtl] .lightAgentTxt {
|
|
35
|
+
margin-right: var(--zd_size4);
|
|
36
|
+
}
|
|
37
|
+
[dir=ltr] .icnBtnSpace {
|
|
38
|
+
margin-right: var(--zd_size8);
|
|
39
|
+
}
|
|
40
|
+
[dir=rtl] .icnBtnSpace {
|
|
41
|
+
margin-left: var(--zd_size8);
|
|
42
|
+
}
|
|
43
|
+
.attachIconWrapper {
|
|
44
|
+
composes: dflex alignVertical alignHorizontal from '~@zohodesk/components/lib/common/common.module.css';
|
|
45
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
3
|
+
import webStyle from './CommentListItemWeb.module.css';
|
|
4
|
+
import commonWebStyle from '../common/SubTabListItemWebCommon.module.css';
|
|
5
|
+
import commonCommentStyle from './CommentListItemCommon.module.css';
|
|
6
|
+
export default function CommentListItemWebUI(props) {
|
|
7
|
+
const {
|
|
8
|
+
isPeekView,
|
|
9
|
+
isPublic,
|
|
10
|
+
dataId,
|
|
11
|
+
getAvatar,
|
|
12
|
+
getName,
|
|
13
|
+
getLightAgent,
|
|
14
|
+
getTag,
|
|
15
|
+
getTime,
|
|
16
|
+
getEdit,
|
|
17
|
+
getAttachmentIcon,
|
|
18
|
+
getAttachment,
|
|
19
|
+
getMoreDropdown,
|
|
20
|
+
getContent,
|
|
21
|
+
from,
|
|
22
|
+
hasPrivacyMode,
|
|
23
|
+
hasEditHistoryPermission,
|
|
24
|
+
isPopupOpen,
|
|
25
|
+
isNightMode,
|
|
26
|
+
ViewInLightDarkBg,
|
|
27
|
+
onContentWrapperClick,
|
|
28
|
+
contentWrapperRef,
|
|
29
|
+
key,
|
|
30
|
+
id,
|
|
31
|
+
customList,
|
|
32
|
+
getTheme,
|
|
33
|
+
children
|
|
34
|
+
} = props;
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
"data-desk-mode": ViewInLightDarkBg ? 'default' : '',
|
|
37
|
+
"data-desk-theme": ViewInLightDarkBg ? getTheme : '',
|
|
38
|
+
className: `${commonWebStyle.wrapper}
|
|
39
|
+
${isPeekView ? webStyle.peekListWrapper : webStyle.listWrapper}
|
|
40
|
+
${hasPrivacyMode ? isPublic ? commonCommentStyle.public : commonCommentStyle.private : commonCommentStyle.normal}
|
|
41
|
+
${customList}`,
|
|
42
|
+
"data-id": dataId,
|
|
43
|
+
key: key,
|
|
44
|
+
id: id,
|
|
45
|
+
tabIndex: "0",
|
|
46
|
+
"aria-label": getContent
|
|
47
|
+
}, children ? children : null, /*#__PURE__*/React.createElement(Container, {
|
|
48
|
+
alignBox: "row",
|
|
49
|
+
align: "vertical",
|
|
50
|
+
isCover: false,
|
|
51
|
+
className: getContent || getAttachment ? commonCommentStyle.contentWrapper : ''
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
flexible: true
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
55
|
+
alignBox: "row",
|
|
56
|
+
align: "vertical",
|
|
57
|
+
isCover: false
|
|
58
|
+
}, getAvatar ? /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
className: commonCommentStyle.avatarWrapper
|
|
60
|
+
}, getAvatar({
|
|
61
|
+
size: 'xsmall',
|
|
62
|
+
iconColor: hasPrivacyMode ? isPublic ? commonCommentStyle.publicIcon : commonCommentStyle.privateIcon : ''
|
|
63
|
+
})) : null, getName ? /*#__PURE__*/React.createElement(React.Fragment, null, getName({
|
|
64
|
+
'is-dot': 'true',
|
|
65
|
+
className: `${commonCommentStyle.agentName} ${from != 'editHistory' ? commonCommentStyle.agentNameHover : ''} ${commonWebStyle.dotted}`
|
|
66
|
+
})) : null, getLightAgent ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
67
|
+
className: commonWebStyle.dot
|
|
68
|
+
}, "."), getLightAgent({
|
|
69
|
+
'is-dot': 'true',
|
|
70
|
+
className: `${webStyle.lightAgentTxt} ${commonWebStyle.dotted}`
|
|
71
|
+
})) : null, getTag ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
72
|
+
className: commonWebStyle.dot
|
|
73
|
+
}, "."), /*#__PURE__*/React.createElement(Box, {
|
|
74
|
+
shrink: true,
|
|
75
|
+
"is-dot": "true"
|
|
76
|
+
}, getTag())) : null, getTime ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
77
|
+
className: commonWebStyle.dot
|
|
78
|
+
}, "."), /*#__PURE__*/React.createElement(Box, {
|
|
79
|
+
shrink: true,
|
|
80
|
+
"is-dot": "true",
|
|
81
|
+
className: commonWebStyle.dotted
|
|
82
|
+
}, getTime())) : null, getEdit ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
className: commonWebStyle.dot
|
|
84
|
+
}, "."), getEdit({
|
|
85
|
+
'is-dot': 'true',
|
|
86
|
+
className: `${commonCommentStyle.editTxt} ${hasEditHistoryPermission ? commonCommentStyle.editAccess : ''} ${commonWebStyle.dotted}`
|
|
87
|
+
})) : null)), getAttachmentIcon ? /*#__PURE__*/React.createElement(Box, null, getAttachmentIcon({
|
|
88
|
+
innerProps: {
|
|
89
|
+
className: commonCommentStyle.attachCount
|
|
90
|
+
},
|
|
91
|
+
wrapperProps: {
|
|
92
|
+
className: `${webStyle.attachIconWrapper} ${webStyle.icnBtnSpace}`
|
|
93
|
+
}
|
|
94
|
+
})) : null, getMoreDropdown ? /*#__PURE__*/React.createElement(Box, {
|
|
95
|
+
className: `${commonWebStyle.posRel} ${!isPopupOpen ? commonWebStyle.visibleOnHover : ''}`
|
|
96
|
+
}, getMoreDropdown()) : null), /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
onClick: onContentWrapperClick,
|
|
98
|
+
ref: contentWrapperRef
|
|
99
|
+
}, getContent ? getContent({
|
|
100
|
+
className: `${isNightMode ? ViewInLightDarkBg ? commonCommentStyle.whiteBg : commonCommentStyle.invert : ''} ${commonCommentStyle.thrdPlain}`
|
|
101
|
+
}) : null, getAttachment ? getAttachment({
|
|
102
|
+
customWrapperClass: {
|
|
103
|
+
className: commonCommentStyle.attachmentWrapper
|
|
104
|
+
},
|
|
105
|
+
size: from == 'editHistory' || from === 'leftPanel' ? 'small' : 'medium'
|
|
106
|
+
}) : null));
|
|
107
|
+
}
|