@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.
Files changed (61) 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 +9 -3
  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.js +1 -1
  40. package/es/list/status/StatusListItem/StatusListItem.module.css +7 -5
  41. package/lib/TagWithIcon/TagWithIcon.js +92 -0
  42. package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
  43. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +9 -3
  44. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -1
  45. package/lib/dropdown/ToggleDropDown/props/propTypes.js +5 -1
  46. package/lib/layout/List/CommentsList/CommentListItemCommon.module.css +143 -0
  47. package/lib/layout/List/CommentsList/CommentListItemFromTab.module.css +50 -0
  48. package/lib/layout/List/CommentsList/CommentListItemFromTabUI.js +123 -0
  49. package/lib/layout/List/CommentsList/CommentListItemWeb.module.css +45 -0
  50. package/lib/layout/List/CommentsList/CommentListItemWebUI.js +109 -0
  51. package/lib/layout/List/ThreadsList/ThreadListItemCommon.module.css +345 -0
  52. package/lib/layout/List/ThreadsList/ThreadListItemFromTab.module.css +35 -0
  53. package/lib/layout/List/ThreadsList/ThreadListItemFromTabUI.js +283 -0
  54. package/lib/layout/List/ThreadsList/ThreadListItemWeb.module.css +35 -0
  55. package/lib/layout/List/ThreadsList/ThreadListItemWebUI.js +271 -0
  56. package/lib/layout/List/common/SubTabListItemTabCommon.module.css +59 -0
  57. package/lib/layout/List/common/SubTabListItemWebCommon.module.css +99 -0
  58. package/lib/layout/List/common/twoToneIconColor.module.css +26 -0
  59. package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
  60. package/lib/list/status/StatusListItem/StatusListItem.module.css +7 -5
  61. package/package.json +3 -3
@@ -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
+ }
@@ -0,0 +1,99 @@
1
+ .listWrapper .innerWrapper, .peekViewWrapper .innerWrapper {
2
+ padding-top: var(--zd_size15);
3
+ padding-bottom: var(--zd_size12);
4
+ }
5
+
6
+ [dir=ltr] .listWrapper {
7
+ padding-left: var(--zd_size65);
8
+ padding-right: var(--zd_size65);
9
+ }
10
+
11
+ [dir=rtl] .listWrapper {
12
+ padding-right: var(--zd_size65);
13
+ padding-left: var(--zd_size65);
14
+ }
15
+
16
+ [dir=ltr] .peekViewWrapper {
17
+ padding-left: var(--zd_size42);
18
+ padding-right: var(--zd_size42);
19
+ }
20
+
21
+ [dir=rtl] .peekViewWrapper {
22
+ padding-right: var(--zd_size42);
23
+ padding-left: var(--zd_size42);
24
+ }
25
+
26
+ [dir=ltr] .avatarWrapper {
27
+ margin-right: var(--zd_size25);
28
+ }
29
+
30
+ [dir=rtl] .avatarWrapper {
31
+ margin-left: var(--zd_size25);
32
+ }
33
+
34
+ .secondaryWrapper {
35
+ line-height: var(--zd_size18);
36
+ margin-top: var(--zd_size2);
37
+ }
38
+
39
+ .floatingWrapper {
40
+ display: none;
41
+ }
42
+
43
+ .wrapper {
44
+ transition: padding var(--zd_transition3);
45
+ }
46
+
47
+ .wrapper:hover .floatingWrapper {
48
+ display: block;
49
+ }
50
+
51
+ .notAccessible {
52
+ cursor: not-allowed
53
+ }
54
+
55
+ .dot {
56
+ color: var(--zdt_dot_text);
57
+ font-size: var(--zd_font_size16);
58
+ display: none;
59
+ transform: perspective(1px);
60
+ margin: 0 var(--zd_size6)
61
+ }
62
+
63
+ [is-dot='true']+.dot {
64
+ display: block
65
+ }
66
+
67
+ .posRel {
68
+ position: relative;
69
+ }
70
+
71
+ .dotted {
72
+ composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
73
+ }
74
+
75
+ .visibleOnHover {
76
+ opacity: 0;
77
+ visibility: hidden;
78
+ }
79
+
80
+ .wrapper:hover .visibleOnHover {
81
+ opacity: 1;
82
+ visibility: visible;
83
+ }
84
+
85
+ .pointer {
86
+ cursor: pointer;
87
+ }
88
+
89
+ .secondaryItem {
90
+ max-width: var(--zd_size232)
91
+ }
92
+
93
+ [dir=ltr] .icnSpace {
94
+ margin-left: var(--zd_size8)
95
+ }
96
+
97
+ [dir=rtl] .icnSpace {
98
+ margin-right: var(--zd_size8)
99
+ }
@@ -0,0 +1,26 @@
1
+ .primary :global .path1:before {
2
+ color: var(--zdt_twotoneIcon_primary_bg);
3
+ }
4
+
5
+ .primary :global .path2:before {
6
+ color: var(--zdt_twotoneIcon_primary_border);
7
+ }
8
+
9
+ /* .secondary :global .path1:before {
10
+ color: var(--zdt_twotoneIcon_secondary_bg);
11
+ }
12
+ .secondary :global .path2:before {
13
+ color: var(--zdt_twotoneIcon_secondary_border);
14
+ }
15
+ .danger :global .path1:before {
16
+ color: var(--zdt_twotoneIcon_danger_bg);
17
+ }
18
+ .danger :global .path2:before {
19
+ color: var(--zdt_twotoneIcon_danger_border);
20
+ }
21
+ .info :global .path1:before {
22
+ color: var(--zdt_twotoneIcon_info_bg);
23
+ }
24
+ .info :global .path2:before {
25
+ color: var(--zdt_twotoneIcon_info_border);
26
+ } */
@@ -77,7 +77,7 @@ export default class StatusListItem extends React.Component {
77
77
  role: role,
78
78
  "aria-selected": ariaSelected,
79
79
  isCover: false,
80
- align: "vertical",
80
+ align: "baseline",
81
81
  alignBox: "row",
82
82
  className: `${style.list} ${style[size]} ${style[palette]} ${active ? style.active : highlight && !isDisabled ? style.hover : ''} ${autoHover && !isDisabled ? style.effect : ''} ${needTick ? style.withTick : ''} ${isDisabled ? CssProvider('isDisable') : ''} ${needBorder ? style.withBorder : ''}`,
83
83
  dataId: String(value).replace("'", '_'),
@@ -3,6 +3,7 @@
3
3
  font-size: var(--zd_font_size13);
4
4
  position: relative;
5
5
  list-style: none;
6
+ min-height: var(--zd_size35);
6
7
  cursor: pointer;
7
8
  }
8
9
  [dir=ltr] .withBorder {
@@ -12,13 +13,13 @@
12
13
  border-right: 1px solid var(--zdt_statuslistitem_default_border);
13
14
  }
14
15
  [dir=ltr] .small {
15
- padding: var(--zd_size9) var(--zd_size3) var(--zd_size9) var(--zd_size5);
16
+ padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
16
17
  }
17
18
  [dir=rtl] .small {
18
- padding: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size3);
19
+ padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
19
20
  }
20
21
  .medium {
21
- padding: var(--zd_size9) var(--zd_size20);
22
+ padding: var(--zd_size7) var(--zd_size20);
22
23
  }
23
24
  .large {
24
25
  height: var(--zd_size48);
@@ -29,13 +30,14 @@
29
30
  [dir=rtl] .large {
30
31
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
31
32
  }
32
-
33
+ .value,.multiLineValue {
34
+ line-height: var(--zd_size20);
35
+ }
33
36
  .value {
34
37
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
35
38
  }
36
39
  .multiLineValue{
37
40
  word-break: break-word;
38
- line-height: var(--zd_size18);
39
41
  composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
40
42
  }
41
43
  [dir=ltr] .withBorder.active {
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _Layout = require("@zohodesk/components/es/Layout");
11
+ var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
12
+ var _TagWithIconModule = _interopRequireDefault(require("./TagWithIcon.module.css"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
22
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
+ var TagWithIcon = /*#__PURE__*/function (_React$Component) {
27
+ _inherits(TagWithIcon, _React$Component);
28
+ var _super = _createSuper(TagWithIcon);
29
+ function TagWithIcon() {
30
+ _classCallCheck(this, TagWithIcon);
31
+ return _super.apply(this, arguments);
32
+ }
33
+ _createClass(TagWithIcon, [{
34
+ key: "render",
35
+ value: function render() {
36
+ var _this$props = this.props,
37
+ text = _this$props.text,
38
+ iconName = _this$props.iconName,
39
+ iconSize = _this$props.iconSize,
40
+ palette = _this$props.palette,
41
+ iconClass = _this$props.iconClass,
42
+ isBold = _this$props.isBold,
43
+ size = _this$props.size,
44
+ dataId = _this$props.dataId,
45
+ className = _this$props.className,
46
+ title = _this$props.title;
47
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
48
+ isInline: true,
49
+ alignBox: "row",
50
+ align: "vertical",
51
+ isCover: false,
52
+ className: "".concat(_TagWithIconModule["default"].wrapper, " ").concat(_TagWithIconModule["default"][palette], " ").concat(_TagWithIconModule["default"][size], " ").concat(className),
53
+ dataId: dataId,
54
+ title: title
55
+ }, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
56
+ name: iconName,
57
+ size: iconSize,
58
+ iconClass: "".concat(text ? _TagWithIconModule["default"].iconSpace : '', " ").concat(iconClass, " ")
59
+ }) : null, text ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
60
+ shrink: true,
61
+ "data-title": text,
62
+ className: "".concat(_TagWithIconModule["default"].text, " ").concat(_TagWithIconModule["default"][size], "_text ").concat(isBold ? _TagWithIconModule["default"].bold : '')
63
+ }, text) : null);
64
+ }
65
+ }]);
66
+ return TagWithIcon;
67
+ }(_react["default"].Component);
68
+ exports["default"] = TagWithIcon;
69
+ TagWithIcon.defaultProps = {
70
+ iconSize: '9',
71
+ size: 'large',
72
+ iconClass: '',
73
+ isBold: true,
74
+ palette: 'grey',
75
+ className: ''
76
+ };
77
+ TagWithIcon.propTypes = {
78
+ iconClass: _propTypes["default"].string,
79
+ iconName: _propTypes["default"].string,
80
+ iconSize: _propTypes["default"].string,
81
+ title: _propTypes["default"].string,
82
+ isBold: _propTypes["default"].bool,
83
+ palette: _propTypes["default"].oneOf(['yellow', 'blue', 'grey']),
84
+ size: _propTypes["default"].oneOf('small', 'large'),
85
+ className: _propTypes["default"].string,
86
+ text: _propTypes["default"].string
87
+ };
88
+ if (false) {
89
+ TagWithIcon.docs = {
90
+ componentGroup: 'TagWithIcon'
91
+ };
92
+ }
@@ -0,0 +1,56 @@
1
+ .varClass {
2
+ --tag_bg_color: var(--zdt_tagWithIconGrey_bg);
3
+ --tag_text_color: var(--zdt_tagWithIconGrey_text);
4
+ --tag_border_color: var(--zdt_tagWithIconGrey_border);
5
+ --tag_small_fontSize: var(--zd_font_size10);
6
+ --tag_large_fontSize: var(--zd_font_size12);
7
+ }
8
+ .wrapper {
9
+ composes: varClass;
10
+ color: var(--tag_text_color);
11
+ background-color: var(--tag_bg_color);
12
+ }
13
+ .small,
14
+ .large {
15
+ max-width: 100%;
16
+ height: var(--zd_size18);
17
+ }
18
+ .small, .large {
19
+ border: 1px solid;
20
+ border-color: var(--tag_border_color);
21
+ border-radius: var(--zd_size4);
22
+ padding: 0 var(--zd_size6);
23
+ }
24
+ .bold {
25
+ composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
26
+ }
27
+ .small_text {
28
+ font-size: var(--tag_small_fontSize);
29
+ }
30
+ .large_text {
31
+ font-size: var(--tag_large_fontSize);
32
+ }
33
+ .text {
34
+ composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
35
+ }
36
+ [dir=ltr] .iconSpace{
37
+ margin-right: var(--zd_size4);
38
+ }
39
+ [dir=rtl] .iconSpace{
40
+ margin-left: var(--zd_size4);
41
+ }
42
+ .yellow {
43
+ --tag_bg_color: var(--zdt_tagWithIconYellow_bg);
44
+ --tag_text_color: var(--zdt_tagWithIconYellow_text);
45
+ --tag_border_color: var(--zdt_tagWithIconYellow_border);
46
+ }
47
+ .grey {
48
+ --tag_bg_color: var(--zdt_tagWithIconGrey_bg);
49
+ --tag_text_color: var(--zdt_tagWithIconGrey_text);
50
+ --tag_border_color: var(--zdt_tagWithIconGrey_border);
51
+ }
52
+ .blue {
53
+ --tag_bg_color: var(--zdt_tagWithIconBlue_bg);
54
+ --tag_text_color: var(--zdt_tagWithIconBlue_text);
55
+ --tag_border_color: var(--zdt_tagWithIconBlue_border);
56
+ }