@zohodesk/dot 1.0.0-temp-122 → 1.0.0-temp-124
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/es/avatar/AvatarStatus/AvatarStatus.js +3 -1
- package/es/avatar/AvatarStatus/props/defaultProps.js +3 -1
- package/es/avatar/AvatarStatus/props/propTypes.js +2 -0
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -2
- package/es/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/es/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/es/list/BluePrintStatus/BluePrintStatus.js +4 -2
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +9 -6
- package/es/list/SecondaryText/AccountName.js +22 -9
- package/es/list/SecondaryText/ContactName.js +17 -11
- package/es/list/SecondaryText/SecondaryText.module.css +16 -61
- package/es/list/SentimentStatus/SentimentStatus.js +6 -4
- package/es/list/SentimentStatus/SentimentStatus.module.css +9 -4
- package/es/list/UserTime/UserTime.js +5 -3
- package/es/list/UserTime/UserTime.module.css +3 -20
- package/lib/avatar/AvatarStatus/AvatarStatus.js +3 -1
- package/lib/avatar/AvatarStatus/props/defaultProps.js +3 -1
- package/lib/avatar/AvatarStatus/props/propTypes.js +22 -24
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -2
- package/lib/avatar/AvatarWithTeam/props/defaultProps.js +2 -1
- package/lib/avatar/AvatarWithTeam/props/propTypes.js +1 -0
- package/lib/list/BluePrintStatus/BluePrintStatus.js +4 -2
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +9 -6
- package/lib/list/SecondaryText/AccountName.js +22 -9
- package/lib/list/SecondaryText/ContactName.js +17 -11
- package/lib/list/SecondaryText/SecondaryText.module.css +16 -61
- package/lib/list/SentimentStatus/SentimentStatus.js +6 -4
- package/lib/list/SentimentStatus/SentimentStatus.module.css +9 -4
- package/lib/list/UserTime/UserTime.js +5 -3
- package/lib/list/UserTime/UserTime.module.css +3 -20
- package/package.json +1 -1
|
@@ -27,7 +27,8 @@ export default class AvatarStatus extends React.Component {
|
|
|
27
27
|
customTextClass,
|
|
28
28
|
statusTitle,
|
|
29
29
|
customProps,
|
|
30
|
-
dataSelectorId
|
|
30
|
+
dataSelectorId,
|
|
31
|
+
needDefaultBorder
|
|
31
32
|
} = this.props;
|
|
32
33
|
let {
|
|
33
34
|
AvatarStatusProps = {},
|
|
@@ -52,6 +53,7 @@ export default class AvatarStatus extends React.Component {
|
|
|
52
53
|
initial: initial,
|
|
53
54
|
shape: shape,
|
|
54
55
|
needTitle: needTitle,
|
|
56
|
+
needDefaultBorder: needDefaultBorder,
|
|
55
57
|
needBorder: needBorder
|
|
56
58
|
}, AvatarProps)), /*#__PURE__*/React.createElement("span", {
|
|
57
59
|
"data-title": statusTitle,
|
|
@@ -13,6 +13,8 @@ export const propTypes = {
|
|
|
13
13
|
size: PropTypes.string,
|
|
14
14
|
src: PropTypes.string,
|
|
15
15
|
state: PropTypes.string,
|
|
16
|
+
needDefaultBorder: PropTypes.bool,
|
|
17
|
+
needBorder: PropTypes.bool,
|
|
16
18
|
statusTitle: PropTypes.string,
|
|
17
19
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
18
20
|
title: PropTypes.string,
|
|
@@ -22,7 +22,8 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
22
22
|
teamClassName,
|
|
23
23
|
borderOnActive,
|
|
24
24
|
customProps,
|
|
25
|
-
dataSelectorId
|
|
25
|
+
dataSelectorId,
|
|
26
|
+
teamBorderActive
|
|
26
27
|
} = this.props;
|
|
27
28
|
let {
|
|
28
29
|
AvatarWithTeamProps = {},
|
|
@@ -81,7 +82,7 @@ export default class AvatarWithTeam extends React.Component {
|
|
|
81
82
|
customClass: {
|
|
82
83
|
customAvatar: customTextClass
|
|
83
84
|
},
|
|
84
|
-
borderOnActive:
|
|
85
|
+
borderOnActive: teamBorderActive
|
|
85
86
|
}, AvatarTeam2Props))) : null);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
@@ -14,6 +14,7 @@ export const propTypes = {
|
|
|
14
14
|
textPalette: PropTypes.oneOf(['white', 'black']),
|
|
15
15
|
title: PropTypes.string,
|
|
16
16
|
borderOnActive: PropTypes.bool,
|
|
17
|
+
teamBorderActive: PropTypes.bool,
|
|
17
18
|
customProps: PropTypes.shape({
|
|
18
19
|
AvatarWithTeamProps: PropTypes.object,
|
|
19
20
|
Avatar1Props: PropTypes.object,
|
|
@@ -10,11 +10,13 @@ export default class BluePrintStatus extends React.Component {
|
|
|
10
10
|
let {
|
|
11
11
|
title
|
|
12
12
|
} = this.props;
|
|
13
|
-
return /*#__PURE__*/React.createElement(
|
|
13
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14
|
+
className: `${style.container}`
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
14
16
|
name: "ZD-blueprint",
|
|
15
17
|
title: title,
|
|
16
18
|
iconClass: style.iconStyle
|
|
17
|
-
});
|
|
19
|
+
}));
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
BluePrintStatus.propTypes = propTypes;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
}[dir=ltr] .
|
|
1
|
+
.container {
|
|
2
|
+
display: inherit;
|
|
3
|
+
}[dir=ltr] .container {
|
|
4
4
|
padding-right: var(--zd_size5);
|
|
5
|
-
}[dir=rtl] .
|
|
5
|
+
}[dir=rtl] .container {
|
|
6
6
|
padding-left: var(--zd_size5);
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
/* .danger {
|
|
10
9
|
color: var(--dot_brightRed);
|
|
11
10
|
}
|
|
12
11
|
.default {
|
|
13
12
|
color: var(--dot_shuttleGrey);
|
|
14
|
-
} */
|
|
13
|
+
} */
|
|
14
|
+
.iconStyle {
|
|
15
|
+
display: block;
|
|
16
|
+
font-size: var(--zd_font_size10);
|
|
17
|
+
}
|
|
@@ -6,6 +6,7 @@ import { AccountName_defaultProps } from './props/defaultProps';
|
|
|
6
6
|
import { AccountName_propTypes } from './props/propTypes';
|
|
7
7
|
|
|
8
8
|
/**** Components ****/
|
|
9
|
+
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
9
10
|
import Link from '../../Link/Link';
|
|
10
11
|
|
|
11
12
|
/**** CSS ****/
|
|
@@ -34,30 +35,42 @@ export default class AccountName extends Component {
|
|
|
34
35
|
TextProps = {},
|
|
35
36
|
SecondaryTextProps = {}
|
|
36
37
|
} = customProps;
|
|
37
|
-
return /*#__PURE__*/React.createElement(
|
|
38
|
-
|
|
38
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
39
|
+
alignBox: "row",
|
|
40
|
+
align: "baseline",
|
|
41
|
+
isCover: false,
|
|
39
42
|
"data-title": dataTitle,
|
|
40
|
-
|
|
41
|
-
}, /*#__PURE__*/React.createElement(
|
|
43
|
+
dataId: dataId
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
45
|
+
flexible: true
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
47
|
+
alignBox: "row",
|
|
48
|
+
align: "baseline",
|
|
49
|
+
isCover: false,
|
|
50
|
+
className: style.primaryAccountNameCnt
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
52
|
+
className: style.primaryAccountName,
|
|
53
|
+
shrink: true
|
|
54
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
42
55
|
href: href,
|
|
43
56
|
urlName: urlName,
|
|
44
57
|
urlData: urlData,
|
|
45
58
|
onClick: onClick,
|
|
46
59
|
dataId: `${dataId}_link`,
|
|
47
|
-
className:
|
|
60
|
+
className: style.link
|
|
48
61
|
}, LinkProps, {
|
|
49
62
|
ariaLabel: `Account Name ${text}`
|
|
50
63
|
}), /*#__PURE__*/React.createElement("div", {
|
|
51
64
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
52
65
|
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
53
|
-
className: `${style.
|
|
54
|
-
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Link, {
|
|
66
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
|
|
67
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
55
68
|
href: secondaryAccountHref,
|
|
56
69
|
onClick: secondaryAccountClick,
|
|
57
|
-
className:
|
|
70
|
+
className: style.link
|
|
58
71
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
59
72
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
60
|
-
}, SecondaryTextProps), secondaryAccountText)));
|
|
73
|
+
}, SecondaryTextProps), secondaryAccountText))))));
|
|
61
74
|
}
|
|
62
75
|
}
|
|
63
76
|
AccountName.propTypes = AccountName_propTypes;
|
|
@@ -39,33 +39,39 @@ export default class ContactName extends Component {
|
|
|
39
39
|
LinkProps = {},
|
|
40
40
|
TextProps = {}
|
|
41
41
|
} = customProps;
|
|
42
|
-
return /*#__PURE__*/React.createElement(
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
43
|
+
alignBox: "row",
|
|
44
|
+
align: "baseline",
|
|
45
|
+
isCover: false,
|
|
46
|
+
dataId: dataId
|
|
47
|
+
}, isPaidUser && /*#__PURE__*/React.createElement(Box, {
|
|
48
|
+
className: style.paidUserIcon,
|
|
48
49
|
title: paidTitle,
|
|
49
50
|
"aria-label": "Paid user"
|
|
50
|
-
}
|
|
51
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
52
|
+
name: "ZD-paiduser",
|
|
53
|
+
iconClass: style.icon
|
|
54
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
flexible: true
|
|
56
|
+
}, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
|
|
51
57
|
urlName: urlName,
|
|
52
58
|
href: href,
|
|
53
59
|
urlData: urlData,
|
|
54
60
|
onClick: onClick,
|
|
55
61
|
title: dataTitle,
|
|
56
62
|
dataId: `${dataId}_link`,
|
|
57
|
-
className:
|
|
63
|
+
className: style.link
|
|
58
64
|
}, LinkProps, {
|
|
59
65
|
ariaLabel: `Contact Name ${text}`
|
|
60
66
|
}), /*#__PURE__*/React.createElement("div", {
|
|
61
67
|
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
62
68
|
}, text)) : /*#__PURE__*/React.createElement("div", _extends({
|
|
63
|
-
className: `${style.
|
|
69
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
64
70
|
"data-title": dataTitle
|
|
65
|
-
}, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
71
|
+
}, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
66
72
|
type: sentimentType,
|
|
67
73
|
dataTitle: sentimentDataTitle
|
|
68
|
-
}));
|
|
74
|
+
})));
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
ContactName.propTypes = ContactName_propTypes;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
+
.paidUserIcon {
|
|
2
|
+
vertical-align: middle;
|
|
3
|
+
bottom: var(--zd_size1);
|
|
4
|
+
position: relative;
|
|
5
|
+
font-size: var(--zd_font_size8);
|
|
6
|
+
}[dir=ltr] .paidUserIcon {
|
|
7
|
+
margin-right: var(--zd_size5);
|
|
8
|
+
}[dir=rtl] .paidUserIcon {
|
|
9
|
+
margin-left: var(--zd_size5);
|
|
10
|
+
}
|
|
1
11
|
.icon {
|
|
2
12
|
display: block;
|
|
3
13
|
}
|
|
4
|
-
|
|
5
14
|
.disable {
|
|
6
15
|
cursor: not-allowed;
|
|
7
16
|
}
|
|
8
|
-
|
|
9
17
|
.textBold {
|
|
10
18
|
font-family: var(--zd_bold);
|
|
11
19
|
color: var(--zdt_secondaryText_black_text);
|
|
12
20
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.link {
|
|
16
|
-
display: block
|
|
21
|
+
.textStyle, .link{
|
|
22
|
+
display: block
|
|
17
23
|
}
|
|
18
|
-
|
|
19
24
|
.textStyle.textBold {
|
|
20
25
|
font-family: var(--zd_bold);
|
|
21
26
|
color: var(--zdt_secondaryText_black_text);
|
|
22
27
|
}
|
|
23
|
-
|
|
24
28
|
.ticketId,
|
|
25
29
|
.link,
|
|
26
30
|
.textStyle,
|
|
@@ -29,18 +33,15 @@
|
|
|
29
33
|
.phoneNumber {
|
|
30
34
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
31
35
|
}
|
|
32
|
-
|
|
33
36
|
.textStyle,
|
|
34
37
|
.secondaryText {
|
|
35
38
|
font-size: var(--zd_font_size12);
|
|
36
39
|
}
|
|
37
|
-
|
|
38
40
|
.ticketId,
|
|
39
41
|
.phoneNumber,
|
|
40
42
|
.ratingText {
|
|
41
43
|
font-size: var(--zd_font_size12);
|
|
42
44
|
}
|
|
43
|
-
|
|
44
45
|
.textStyle,
|
|
45
46
|
.secondaryText,
|
|
46
47
|
.phoneNumber {
|
|
@@ -48,49 +49,42 @@
|
|
|
48
49
|
max-width: 100%;
|
|
49
50
|
display: block;
|
|
50
51
|
}
|
|
51
|
-
|
|
52
52
|
.textStyle, .secondaryText, .phoneNumber {
|
|
53
53
|
cursor: pointer;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
55
|
.textStyle:hover,
|
|
57
56
|
.ticketIdLink,
|
|
58
57
|
.phoneNumber:hover,
|
|
59
58
|
.link:hover {
|
|
60
59
|
color: var(--zdt_secondaryText_blue_text);
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
/* .link:focus, .link:focus .textStyle, .link:focus .phoneNumber{
|
|
64
62
|
color: var(--zdt_secondaryText_blue_text);
|
|
65
63
|
} */
|
|
66
64
|
.ticketIdLink {
|
|
67
65
|
cursor: pointer;
|
|
68
66
|
}
|
|
69
|
-
|
|
70
|
-
.ticketIdLink:hover,
|
|
71
|
-
.ticketIdLink:focus {
|
|
67
|
+
.ticketIdLink:hover, .ticketIdLink:focus {
|
|
72
68
|
color: var(--zdt_secondaryText_blue_hover_text);
|
|
73
69
|
}
|
|
74
|
-
|
|
70
|
+
.primaryAccountNameCnt {
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
}
|
|
75
73
|
/* status */
|
|
76
74
|
.font_regular {
|
|
77
75
|
font-family: var(--zd_regular);
|
|
78
76
|
}
|
|
79
|
-
|
|
80
77
|
.font_semibold {
|
|
81
78
|
font-family: var(--zd_semibold);
|
|
82
79
|
}
|
|
83
|
-
|
|
84
80
|
.font_bold {
|
|
85
81
|
font-family: var(--zd_bold);
|
|
86
82
|
}
|
|
87
|
-
|
|
88
83
|
.font_semibold,
|
|
89
84
|
.font_bold,
|
|
90
85
|
.textBold {
|
|
91
86
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
92
87
|
}
|
|
93
|
-
|
|
94
88
|
.priorityText,
|
|
95
89
|
.statusText {
|
|
96
90
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -100,28 +94,23 @@
|
|
|
100
94
|
font-size: var(--zd_font_size12);
|
|
101
95
|
max-width: 100%;
|
|
102
96
|
}
|
|
103
|
-
|
|
104
97
|
.departmentText {
|
|
105
98
|
font-size: var(--zd_font_size12);
|
|
106
99
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
107
100
|
max-width: 100%;
|
|
108
101
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
109
102
|
}
|
|
110
|
-
|
|
111
103
|
/* HappinessRating Style */
|
|
112
104
|
.happinessContainer {
|
|
113
105
|
composes: inlineBlockMiddle from '../listCommon.module.css';
|
|
114
106
|
}
|
|
115
|
-
|
|
116
107
|
.happinessImg {
|
|
117
108
|
width: var(--zd_size13);
|
|
118
109
|
vertical-align: middle;
|
|
119
110
|
}
|
|
120
|
-
|
|
121
111
|
[dir=ltr] .happinessImg {
|
|
122
112
|
margin: 0 var(--zd_size4) 0 0;
|
|
123
113
|
}
|
|
124
|
-
|
|
125
114
|
[dir=rtl] .happinessImg {
|
|
126
115
|
margin: 0 0 0 var(--zd_size4);
|
|
127
116
|
}
|
|
@@ -130,52 +119,18 @@
|
|
|
130
119
|
.gray {
|
|
131
120
|
color: var(--zdt_secondaryText_gray_text);
|
|
132
121
|
}
|
|
133
|
-
|
|
134
122
|
.orange {
|
|
135
123
|
color: var(--zdt_secondaryText_orage_text);
|
|
136
124
|
}
|
|
137
|
-
|
|
138
125
|
.green {
|
|
139
126
|
color: var(--zdt_secondaryText_green_text);
|
|
140
127
|
}
|
|
141
|
-
|
|
142
128
|
.red {
|
|
143
129
|
color: var(--zdt_secondaryText_red_text);
|
|
144
130
|
}
|
|
145
|
-
|
|
146
131
|
.blue {
|
|
147
132
|
color: var(--zdt_secondaryText_blue_text);
|
|
148
133
|
}
|
|
149
|
-
|
|
150
134
|
.black {
|
|
151
135
|
color: var(--zdt_secondaryText_black_text);
|
|
152
136
|
}
|
|
153
|
-
|
|
154
|
-
/* Contact Name */
|
|
155
|
-
.contactNameCnt,
|
|
156
|
-
.primaryAccountNameCnt {
|
|
157
|
-
display: inline-grid;
|
|
158
|
-
align-items: baseline;
|
|
159
|
-
grid-auto-flow: column;
|
|
160
|
-
grid-auto-columns: minmax(0, max-content);
|
|
161
|
-
max-width: 100%;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.paidUserIcon {
|
|
165
|
-
vertical-align: middle;
|
|
166
|
-
bottom: var(--zd_size1);
|
|
167
|
-
position: relative;
|
|
168
|
-
font-size: var(--zd_font_size8);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
[dir=ltr] .paidUserIcon {
|
|
172
|
-
margin-right: var(--zd_size5);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
[dir=rtl] .paidUserIcon {
|
|
176
|
-
margin-left: var(--zd_size5);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.gridItem {
|
|
180
|
-
min-width: 0;
|
|
181
|
-
}
|
|
@@ -16,11 +16,13 @@ export default class SentimentStatus extends React.Component {
|
|
|
16
16
|
negative: 'ZD-botNegative',
|
|
17
17
|
positive: 'ZD-botPositive'
|
|
18
18
|
};
|
|
19
|
-
return /*#__PURE__*/React.createElement(
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: style.container,
|
|
21
|
+
"data-title": dataTitle
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
20
23
|
name: icons[type],
|
|
21
|
-
iconClass: style.sentimentIcon
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
+
iconClass: style.sentimentIcon
|
|
25
|
+
}));
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
SentimentStatus.propTypes = propTypes;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
.
|
|
1
|
+
.container {
|
|
2
|
+
vertical-align: middle;
|
|
2
3
|
font-size: var(--zd_font_size10);
|
|
3
|
-
}[dir=ltr] .
|
|
4
|
+
}[dir=ltr] .container {
|
|
4
5
|
margin: 0 0 0 var(--zd_size5);
|
|
5
|
-
}[dir=rtl] .
|
|
6
|
+
}[dir=rtl] .container {
|
|
6
7
|
margin: 0 var(--zd_size5) 0 0;
|
|
7
|
-
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sentimentIcon {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
@@ -33,7 +33,7 @@ export default class UserTime extends Component {
|
|
|
33
33
|
"data-id": dataId,
|
|
34
34
|
"aria-label": title,
|
|
35
35
|
tabIndex: "0"
|
|
36
|
-
}, icon && /*#__PURE__*/React.createElement(
|
|
36
|
+
}, icon && /*#__PURE__*/React.createElement(Box, {
|
|
37
37
|
className: `${style.iconColor} ${style[iconColor] ? style[iconColor] : ''}`
|
|
38
38
|
}, icon === 'closedTime' ? /*#__PURE__*/React.createElement(Icon, {
|
|
39
39
|
iconClass: `${style.iconStyle} ${style.closedTime} ${style.f8} ${iconClass ? iconClass : ''}`,
|
|
@@ -56,7 +56,9 @@ export default class UserTime extends Component {
|
|
|
56
56
|
}) : /*#__PURE__*/React.createElement(Icon, {
|
|
57
57
|
name: "ZD-dueTime",
|
|
58
58
|
iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
|
|
59
|
-
})), /*#__PURE__*/React.createElement(
|
|
59
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
60
|
+
flexible: true
|
|
61
|
+
}, /*#__PURE__*/React.createElement(UserTimeDiffFormat, {
|
|
60
62
|
type: type,
|
|
61
63
|
page: page,
|
|
62
64
|
isNeedTime: isNeedTime,
|
|
@@ -66,7 +68,7 @@ export default class UserTime extends Component {
|
|
|
66
68
|
later: later,
|
|
67
69
|
to: to,
|
|
68
70
|
isOverdue: isOverdue
|
|
69
|
-
}));
|
|
71
|
+
})));
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
UserTime.propTypes = propTypes;
|
|
@@ -2,74 +2,57 @@
|
|
|
2
2
|
--text_color: var(--zdt_usertime_timeText);
|
|
3
3
|
--icon_color: var(--zdt_usertime_icon_gray);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
.container {
|
|
7
|
-
composes:
|
|
8
|
-
display: inline-grid;
|
|
9
|
-
grid-template-columns: minmax(0, max-content) minmax(0, max-content);
|
|
10
|
-
align-items: baseline;
|
|
6
|
+
composes: dInflex alignBaseline from '~@zohodesk/components/lib/common/common.module.css';
|
|
11
7
|
max-width: 100%;
|
|
8
|
+
composes: varClass;
|
|
12
9
|
}
|
|
13
|
-
|
|
14
10
|
.f8 {
|
|
15
11
|
font-size: var(--zd_font_size8);
|
|
16
12
|
}
|
|
17
|
-
|
|
18
13
|
.f9 {
|
|
19
14
|
font-size: var(--zd_font_size9);
|
|
20
15
|
}
|
|
21
|
-
|
|
22
16
|
.f10 {
|
|
23
17
|
font-size: var(--zd_font_size10);
|
|
24
18
|
}
|
|
25
|
-
|
|
26
19
|
.closedTime span:last-child:before,
|
|
27
20
|
.completedTask span:first-child:before {
|
|
28
21
|
color: inherit;
|
|
29
22
|
}
|
|
30
|
-
|
|
31
23
|
.closedTime span:first-child:before {
|
|
32
24
|
color: var(--zdt_usertime_icon_green);
|
|
33
25
|
}
|
|
34
|
-
|
|
35
26
|
.textStyle {
|
|
36
27
|
font-size: var(--zd_font_size12);
|
|
37
28
|
color: var(--text_color);
|
|
38
29
|
display: block;
|
|
39
30
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
40
31
|
}
|
|
41
|
-
|
|
42
32
|
.iconStyle {
|
|
43
33
|
display: block;
|
|
44
34
|
}
|
|
45
|
-
|
|
46
35
|
[dir=ltr] .iconStyle {
|
|
47
36
|
margin-right: var(--zd_size3);
|
|
48
37
|
margin-left: var(--zd_size1);
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
[dir=rtl] .iconStyle {
|
|
52
40
|
margin-left: var(--zd_size3);
|
|
53
41
|
margin-right: var(--zd_size1);
|
|
54
42
|
}
|
|
55
|
-
|
|
56
43
|
/* colors */
|
|
57
44
|
.iconColor {
|
|
58
45
|
color: var(--icon_color)
|
|
59
46
|
}
|
|
60
|
-
|
|
61
47
|
.red {
|
|
62
48
|
--icon_color: var(--zdt_usertime_icon_red);
|
|
63
49
|
}
|
|
64
|
-
|
|
65
50
|
.green {
|
|
66
51
|
--icon_color: var(--zdt_usertime_icon_green);
|
|
67
52
|
}
|
|
68
|
-
|
|
69
53
|
.orange {
|
|
70
54
|
--icon_color: var(--zdt_usertime_icon_orange);
|
|
71
55
|
}
|
|
72
|
-
|
|
73
56
|
.gray {
|
|
74
57
|
--icon_color: var(--zdt_usertime_icon_gray);
|
|
75
|
-
}
|
|
58
|
+
}
|
|
@@ -50,7 +50,8 @@ var AvatarStatus = /*#__PURE__*/function (_React$Component) {
|
|
|
50
50
|
customTextClass = _this$props.customTextClass,
|
|
51
51
|
statusTitle = _this$props.statusTitle,
|
|
52
52
|
customProps = _this$props.customProps,
|
|
53
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
53
|
+
dataSelectorId = _this$props.dataSelectorId,
|
|
54
|
+
needDefaultBorder = _this$props.needDefaultBorder;
|
|
54
55
|
var _customProps$AvatarSt = customProps.AvatarStatusProps,
|
|
55
56
|
AvatarStatusProps = _customProps$AvatarSt === void 0 ? {} : _customProps$AvatarSt,
|
|
56
57
|
_customProps$AvatarPr = customProps.AvatarProps,
|
|
@@ -74,6 +75,7 @@ var AvatarStatus = /*#__PURE__*/function (_React$Component) {
|
|
|
74
75
|
initial: initial,
|
|
75
76
|
shape: shape,
|
|
76
77
|
needTitle: needTitle,
|
|
78
|
+
needDefaultBorder: needDefaultBorder,
|
|
77
79
|
needBorder: needBorder
|
|
78
80
|
}, AvatarProps)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
79
81
|
"data-title": statusTitle,
|
|
@@ -4,29 +4,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.propTypes = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _propTypes;
|
|
8
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
AvatarProps: _propTypes["default"].object
|
|
30
|
-
})
|
|
31
|
-
};
|
|
10
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
var propTypes = (_propTypes = {
|
|
12
|
+
className: _propTypes2["default"].string,
|
|
13
|
+
customTextClass: _propTypes2["default"].string,
|
|
14
|
+
dataId: _propTypes2["default"].string,
|
|
15
|
+
initial: _propTypes2["default"].string,
|
|
16
|
+
name: _propTypes2["default"].string,
|
|
17
|
+
needBorder: _propTypes2["default"].bool,
|
|
18
|
+
needTitle: _propTypes2["default"].bool,
|
|
19
|
+
onClick: _propTypes2["default"].func,
|
|
20
|
+
palette: _propTypes2["default"].oneOf(['primary', 'secondary', 'info', 'default']),
|
|
21
|
+
shape: _propTypes2["default"].string,
|
|
22
|
+
size: _propTypes2["default"].string,
|
|
23
|
+
src: _propTypes2["default"].string,
|
|
24
|
+
state: _propTypes2["default"].string,
|
|
25
|
+
needDefaultBorder: _propTypes2["default"].bool
|
|
26
|
+
}, _defineProperty(_propTypes, "needBorder", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusTitle", _propTypes2["default"].string), _defineProperty(_propTypes, "textPalette", _propTypes2["default"].oneOf(['white', 'black'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "dataSelectorId", _propTypes2["default"].string), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
|
|
27
|
+
AvatarStatusProps: _propTypes2["default"].object,
|
|
28
|
+
AvatarProps: _propTypes2["default"].object
|
|
29
|
+
})), _propTypes);
|
|
32
30
|
exports.propTypes = propTypes;
|
|
@@ -49,7 +49,8 @@ var AvatarWithTeam = /*#__PURE__*/function (_React$Component) {
|
|
|
49
49
|
teamClassName = _this$props.teamClassName,
|
|
50
50
|
borderOnActive = _this$props.borderOnActive,
|
|
51
51
|
customProps = _this$props.customProps,
|
|
52
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
52
|
+
dataSelectorId = _this$props.dataSelectorId,
|
|
53
|
+
teamBorderActive = _this$props.teamBorderActive;
|
|
53
54
|
var _customProps$AvatarWi = customProps.AvatarWithTeamProps,
|
|
54
55
|
AvatarWithTeamProps = _customProps$AvatarWi === void 0 ? {} : _customProps$AvatarWi,
|
|
55
56
|
_customProps$Avatar1P = customProps.Avatar1Props,
|
|
@@ -110,7 +111,7 @@ var AvatarWithTeam = /*#__PURE__*/function (_React$Component) {
|
|
|
110
111
|
customClass: {
|
|
111
112
|
customAvatar: customTextClass
|
|
112
113
|
},
|
|
113
|
-
borderOnActive:
|
|
114
|
+
borderOnActive: teamBorderActive
|
|
114
115
|
}, AvatarTeam2Props))) : null);
|
|
115
116
|
}
|
|
116
117
|
}]);
|
|
@@ -21,6 +21,7 @@ var propTypes = {
|
|
|
21
21
|
textPalette: _propTypes["default"].oneOf(['white', 'black']),
|
|
22
22
|
title: _propTypes["default"].string,
|
|
23
23
|
borderOnActive: _propTypes["default"].bool,
|
|
24
|
+
teamBorderActive: _propTypes["default"].bool,
|
|
24
25
|
customProps: _propTypes["default"].shape({
|
|
25
26
|
AvatarWithTeamProps: _propTypes["default"].object,
|
|
26
27
|
Avatar1Props: _propTypes["default"].object,
|
|
@@ -31,11 +31,13 @@ var BluePrintStatus = /*#__PURE__*/function (_React$Component) {
|
|
|
31
31
|
key: "render",
|
|
32
32
|
value: function render() {
|
|
33
33
|
var title = this.props.title;
|
|
34
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
35
|
+
className: "".concat(_BluePrintStatusModule["default"].container)
|
|
36
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
35
37
|
name: "ZD-blueprint",
|
|
36
38
|
title: title,
|
|
37
39
|
iconClass: _BluePrintStatusModule["default"].iconStyle
|
|
38
|
-
});
|
|
40
|
+
}));
|
|
39
41
|
}
|
|
40
42
|
}]);
|
|
41
43
|
return BluePrintStatus;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
}[dir=ltr] .
|
|
1
|
+
.container {
|
|
2
|
+
display: inherit;
|
|
3
|
+
}[dir=ltr] .container {
|
|
4
4
|
padding-right: var(--zd_size5);
|
|
5
|
-
}[dir=rtl] .
|
|
5
|
+
}[dir=rtl] .container {
|
|
6
6
|
padding-left: var(--zd_size5);
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
/* .danger {
|
|
10
9
|
color: var(--dot_brightRed);
|
|
11
10
|
}
|
|
12
11
|
.default {
|
|
13
12
|
color: var(--dot_shuttleGrey);
|
|
14
|
-
} */
|
|
13
|
+
} */
|
|
14
|
+
.iconStyle {
|
|
15
|
+
display: block;
|
|
16
|
+
font-size: var(--zd_font_size10);
|
|
17
|
+
}
|
|
@@ -8,6 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _defaultProps = require("./props/defaultProps");
|
|
10
10
|
var _propTypes = require("./props/propTypes");
|
|
11
|
+
var _Layout = require("@zohodesk/components/lib/Layout");
|
|
11
12
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
12
13
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
13
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,30 +58,42 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
57
58
|
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp,
|
|
58
59
|
_customProps$Secondar = customProps.SecondaryTextProps,
|
|
59
60
|
SecondaryTextProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
|
|
60
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
61
|
-
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
62
|
+
alignBox: "row",
|
|
63
|
+
align: "baseline",
|
|
64
|
+
isCover: false,
|
|
62
65
|
"data-title": dataTitle,
|
|
63
|
-
|
|
64
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
66
|
+
dataId: dataId
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
68
|
+
flexible: true
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
70
|
+
alignBox: "row",
|
|
71
|
+
align: "baseline",
|
|
72
|
+
isCover: false,
|
|
73
|
+
className: _SecondaryTextModule["default"].primaryAccountNameCnt
|
|
74
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
75
|
+
className: _SecondaryTextModule["default"].primaryAccountName,
|
|
76
|
+
shrink: true
|
|
77
|
+
}, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
65
78
|
href: href,
|
|
66
79
|
urlName: urlName,
|
|
67
80
|
urlData: urlData,
|
|
68
81
|
onClick: onClick,
|
|
69
82
|
dataId: "".concat(dataId, "_link"),
|
|
70
|
-
className:
|
|
83
|
+
className: _SecondaryTextModule["default"].link
|
|
71
84
|
}, LinkProps, {
|
|
72
85
|
ariaLabel: "Account Name ".concat(text)
|
|
73
86
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
87
|
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
75
88
|
}, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
76
|
-
className: "".concat(_SecondaryTextModule["default"].
|
|
77
|
-
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
89
|
+
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : '')
|
|
90
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
78
91
|
href: secondaryAccountHref,
|
|
79
92
|
onClick: secondaryAccountClick,
|
|
80
|
-
className:
|
|
93
|
+
className: _SecondaryTextModule["default"].link
|
|
81
94
|
}, /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
82
95
|
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
83
|
-
}, SecondaryTextProps), secondaryAccountText)));
|
|
96
|
+
}, SecondaryTextProps), secondaryAccountText))))));
|
|
84
97
|
}
|
|
85
98
|
}]);
|
|
86
99
|
return AccountName;
|
|
@@ -67,33 +67,39 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
67
67
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
68
68
|
_customProps$TextProp = customProps.TextProps,
|
|
69
69
|
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
|
|
70
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
71
|
+
alignBox: "row",
|
|
72
|
+
align: "baseline",
|
|
73
|
+
isCover: false,
|
|
74
|
+
dataId: dataId
|
|
75
|
+
}, isPaidUser && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
76
|
+
className: _SecondaryTextModule["default"].paidUserIcon,
|
|
76
77
|
title: paidTitle,
|
|
77
78
|
"aria-label": "Paid user"
|
|
78
|
-
}
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
80
|
+
name: "ZD-paiduser",
|
|
81
|
+
iconClass: _SecondaryTextModule["default"].icon
|
|
82
|
+
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
83
|
+
flexible: true
|
|
84
|
+
}, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
79
85
|
urlName: urlName,
|
|
80
86
|
href: href,
|
|
81
87
|
urlData: urlData,
|
|
82
88
|
onClick: onClick,
|
|
83
89
|
title: dataTitle,
|
|
84
90
|
dataId: "".concat(dataId, "_link"),
|
|
85
|
-
className:
|
|
91
|
+
className: _SecondaryTextModule["default"].link
|
|
86
92
|
}, LinkProps, {
|
|
87
93
|
ariaLabel: "Contact Name ".concat(text)
|
|
88
94
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
95
|
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
90
96
|
}, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
91
|
-
className: "".concat(_SecondaryTextModule["default"].
|
|
97
|
+
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
92
98
|
"data-title": dataTitle
|
|
93
|
-
}, TextProps), text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
|
|
99
|
+
}, TextProps), text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
|
|
94
100
|
type: sentimentType,
|
|
95
101
|
dataTitle: sentimentDataTitle
|
|
96
|
-
}));
|
|
102
|
+
})));
|
|
97
103
|
}
|
|
98
104
|
}]);
|
|
99
105
|
return ContactName;
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
+
.paidUserIcon {
|
|
2
|
+
vertical-align: middle;
|
|
3
|
+
bottom: var(--zd_size1);
|
|
4
|
+
position: relative;
|
|
5
|
+
font-size: var(--zd_font_size8);
|
|
6
|
+
}[dir=ltr] .paidUserIcon {
|
|
7
|
+
margin-right: var(--zd_size5);
|
|
8
|
+
}[dir=rtl] .paidUserIcon {
|
|
9
|
+
margin-left: var(--zd_size5);
|
|
10
|
+
}
|
|
1
11
|
.icon {
|
|
2
12
|
display: block;
|
|
3
13
|
}
|
|
4
|
-
|
|
5
14
|
.disable {
|
|
6
15
|
cursor: not-allowed;
|
|
7
16
|
}
|
|
8
|
-
|
|
9
17
|
.textBold {
|
|
10
18
|
font-family: var(--zd_bold);
|
|
11
19
|
color: var(--zdt_secondaryText_black_text);
|
|
12
20
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.link {
|
|
16
|
-
display: block
|
|
21
|
+
.textStyle, .link{
|
|
22
|
+
display: block
|
|
17
23
|
}
|
|
18
|
-
|
|
19
24
|
.textStyle.textBold {
|
|
20
25
|
font-family: var(--zd_bold);
|
|
21
26
|
color: var(--zdt_secondaryText_black_text);
|
|
22
27
|
}
|
|
23
|
-
|
|
24
28
|
.ticketId,
|
|
25
29
|
.link,
|
|
26
30
|
.textStyle,
|
|
@@ -29,18 +33,15 @@
|
|
|
29
33
|
.phoneNumber {
|
|
30
34
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
31
35
|
}
|
|
32
|
-
|
|
33
36
|
.textStyle,
|
|
34
37
|
.secondaryText {
|
|
35
38
|
font-size: var(--zd_font_size12);
|
|
36
39
|
}
|
|
37
|
-
|
|
38
40
|
.ticketId,
|
|
39
41
|
.phoneNumber,
|
|
40
42
|
.ratingText {
|
|
41
43
|
font-size: var(--zd_font_size12);
|
|
42
44
|
}
|
|
43
|
-
|
|
44
45
|
.textStyle,
|
|
45
46
|
.secondaryText,
|
|
46
47
|
.phoneNumber {
|
|
@@ -48,49 +49,42 @@
|
|
|
48
49
|
max-width: 100%;
|
|
49
50
|
display: block;
|
|
50
51
|
}
|
|
51
|
-
|
|
52
52
|
.textStyle, .secondaryText, .phoneNumber {
|
|
53
53
|
cursor: pointer;
|
|
54
54
|
}
|
|
55
|
-
|
|
56
55
|
.textStyle:hover,
|
|
57
56
|
.ticketIdLink,
|
|
58
57
|
.phoneNumber:hover,
|
|
59
58
|
.link:hover {
|
|
60
59
|
color: var(--zdt_secondaryText_blue_text);
|
|
61
60
|
}
|
|
62
|
-
|
|
63
61
|
/* .link:focus, .link:focus .textStyle, .link:focus .phoneNumber{
|
|
64
62
|
color: var(--zdt_secondaryText_blue_text);
|
|
65
63
|
} */
|
|
66
64
|
.ticketIdLink {
|
|
67
65
|
cursor: pointer;
|
|
68
66
|
}
|
|
69
|
-
|
|
70
|
-
.ticketIdLink:hover,
|
|
71
|
-
.ticketIdLink:focus {
|
|
67
|
+
.ticketIdLink:hover, .ticketIdLink:focus {
|
|
72
68
|
color: var(--zdt_secondaryText_blue_hover_text);
|
|
73
69
|
}
|
|
74
|
-
|
|
70
|
+
.primaryAccountNameCnt {
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
}
|
|
75
73
|
/* status */
|
|
76
74
|
.font_regular {
|
|
77
75
|
font-family: var(--zd_regular);
|
|
78
76
|
}
|
|
79
|
-
|
|
80
77
|
.font_semibold {
|
|
81
78
|
font-family: var(--zd_semibold);
|
|
82
79
|
}
|
|
83
|
-
|
|
84
80
|
.font_bold {
|
|
85
81
|
font-family: var(--zd_bold);
|
|
86
82
|
}
|
|
87
|
-
|
|
88
83
|
.font_semibold,
|
|
89
84
|
.font_bold,
|
|
90
85
|
.textBold {
|
|
91
86
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
92
87
|
}
|
|
93
|
-
|
|
94
88
|
.priorityText,
|
|
95
89
|
.statusText {
|
|
96
90
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
@@ -100,28 +94,23 @@
|
|
|
100
94
|
font-size: var(--zd_font_size12);
|
|
101
95
|
max-width: 100%;
|
|
102
96
|
}
|
|
103
|
-
|
|
104
97
|
.departmentText {
|
|
105
98
|
font-size: var(--zd_font_size12);
|
|
106
99
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
107
100
|
max-width: 100%;
|
|
108
101
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
109
102
|
}
|
|
110
|
-
|
|
111
103
|
/* HappinessRating Style */
|
|
112
104
|
.happinessContainer {
|
|
113
105
|
composes: inlineBlockMiddle from '../listCommon.module.css';
|
|
114
106
|
}
|
|
115
|
-
|
|
116
107
|
.happinessImg {
|
|
117
108
|
width: var(--zd_size13);
|
|
118
109
|
vertical-align: middle;
|
|
119
110
|
}
|
|
120
|
-
|
|
121
111
|
[dir=ltr] .happinessImg {
|
|
122
112
|
margin: 0 var(--zd_size4) 0 0;
|
|
123
113
|
}
|
|
124
|
-
|
|
125
114
|
[dir=rtl] .happinessImg {
|
|
126
115
|
margin: 0 0 0 var(--zd_size4);
|
|
127
116
|
}
|
|
@@ -130,52 +119,18 @@
|
|
|
130
119
|
.gray {
|
|
131
120
|
color: var(--zdt_secondaryText_gray_text);
|
|
132
121
|
}
|
|
133
|
-
|
|
134
122
|
.orange {
|
|
135
123
|
color: var(--zdt_secondaryText_orage_text);
|
|
136
124
|
}
|
|
137
|
-
|
|
138
125
|
.green {
|
|
139
126
|
color: var(--zdt_secondaryText_green_text);
|
|
140
127
|
}
|
|
141
|
-
|
|
142
128
|
.red {
|
|
143
129
|
color: var(--zdt_secondaryText_red_text);
|
|
144
130
|
}
|
|
145
|
-
|
|
146
131
|
.blue {
|
|
147
132
|
color: var(--zdt_secondaryText_blue_text);
|
|
148
133
|
}
|
|
149
|
-
|
|
150
134
|
.black {
|
|
151
135
|
color: var(--zdt_secondaryText_black_text);
|
|
152
136
|
}
|
|
153
|
-
|
|
154
|
-
/* Contact Name */
|
|
155
|
-
.contactNameCnt,
|
|
156
|
-
.primaryAccountNameCnt {
|
|
157
|
-
display: inline-grid;
|
|
158
|
-
align-items: baseline;
|
|
159
|
-
grid-auto-flow: column;
|
|
160
|
-
grid-auto-columns: minmax(0, max-content);
|
|
161
|
-
max-width: 100%;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.paidUserIcon {
|
|
165
|
-
vertical-align: middle;
|
|
166
|
-
bottom: var(--zd_size1);
|
|
167
|
-
position: relative;
|
|
168
|
-
font-size: var(--zd_font_size8);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
[dir=ltr] .paidUserIcon {
|
|
172
|
-
margin-right: var(--zd_size5);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
[dir=rtl] .paidUserIcon {
|
|
176
|
-
margin-left: var(--zd_size5);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.gridItem {
|
|
180
|
-
min-width: 0;
|
|
181
|
-
}
|
|
@@ -38,11 +38,13 @@ var SentimentStatus = /*#__PURE__*/function (_React$Component) {
|
|
|
38
38
|
negative: 'ZD-botNegative',
|
|
39
39
|
positive: 'ZD-botPositive'
|
|
40
40
|
};
|
|
41
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
41
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
42
|
+
className: _SentimentStatusModule["default"].container,
|
|
43
|
+
"data-title": dataTitle
|
|
44
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
42
45
|
name: icons[type],
|
|
43
|
-
iconClass: _SentimentStatusModule["default"].sentimentIcon
|
|
44
|
-
|
|
45
|
-
});
|
|
46
|
+
iconClass: _SentimentStatusModule["default"].sentimentIcon
|
|
47
|
+
}));
|
|
46
48
|
}
|
|
47
49
|
}]);
|
|
48
50
|
return SentimentStatus;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
.
|
|
1
|
+
.container {
|
|
2
|
+
vertical-align: middle;
|
|
2
3
|
font-size: var(--zd_font_size10);
|
|
3
|
-
}[dir=ltr] .
|
|
4
|
+
}[dir=ltr] .container {
|
|
4
5
|
margin: 0 0 0 var(--zd_size5);
|
|
5
|
-
}[dir=rtl] .
|
|
6
|
+
}[dir=rtl] .container {
|
|
6
7
|
margin: 0 var(--zd_size5) 0 0;
|
|
7
|
-
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sentimentIcon {
|
|
11
|
+
display: block;
|
|
12
|
+
}
|
|
@@ -57,7 +57,7 @@ var UserTime = /*#__PURE__*/function (_Component) {
|
|
|
57
57
|
"data-id": dataId,
|
|
58
58
|
"aria-label": title,
|
|
59
59
|
tabIndex: "0"
|
|
60
|
-
}, icon && /*#__PURE__*/_react["default"].createElement(
|
|
60
|
+
}, icon && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
61
61
|
className: "".concat(_UserTimeModule["default"].iconColor, " ").concat(_UserTimeModule["default"][iconColor] ? _UserTimeModule["default"][iconColor] : '')
|
|
62
62
|
}, icon === 'closedTime' ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
63
63
|
iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].closedTime, " ").concat(_UserTimeModule["default"].f8, " ").concat(iconClass ? iconClass : ''),
|
|
@@ -80,7 +80,9 @@ var UserTime = /*#__PURE__*/function (_Component) {
|
|
|
80
80
|
}) : /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
81
81
|
name: "ZD-dueTime",
|
|
82
82
|
iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f8, " ").concat(iconClass ? iconClass : '')
|
|
83
|
-
})), /*#__PURE__*/_react["default"].createElement(
|
|
83
|
+
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
84
|
+
flexible: true
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_i18n.UserTimeDiffFormat, {
|
|
84
86
|
type: type,
|
|
85
87
|
page: page,
|
|
86
88
|
isNeedTime: isNeedTime,
|
|
@@ -90,7 +92,7 @@ var UserTime = /*#__PURE__*/function (_Component) {
|
|
|
90
92
|
later: later,
|
|
91
93
|
to: to,
|
|
92
94
|
isOverdue: isOverdue
|
|
93
|
-
}));
|
|
95
|
+
})));
|
|
94
96
|
}
|
|
95
97
|
}]);
|
|
96
98
|
return UserTime;
|
|
@@ -2,74 +2,57 @@
|
|
|
2
2
|
--text_color: var(--zdt_usertime_timeText);
|
|
3
3
|
--icon_color: var(--zdt_usertime_icon_gray);
|
|
4
4
|
}
|
|
5
|
-
|
|
6
5
|
.container {
|
|
7
|
-
composes:
|
|
8
|
-
display: inline-grid;
|
|
9
|
-
grid-template-columns: minmax(0, max-content) minmax(0, max-content);
|
|
10
|
-
align-items: baseline;
|
|
6
|
+
composes: dInflex alignBaseline from '~@zohodesk/components/lib/common/common.module.css';
|
|
11
7
|
max-width: 100%;
|
|
8
|
+
composes: varClass;
|
|
12
9
|
}
|
|
13
|
-
|
|
14
10
|
.f8 {
|
|
15
11
|
font-size: var(--zd_font_size8);
|
|
16
12
|
}
|
|
17
|
-
|
|
18
13
|
.f9 {
|
|
19
14
|
font-size: var(--zd_font_size9);
|
|
20
15
|
}
|
|
21
|
-
|
|
22
16
|
.f10 {
|
|
23
17
|
font-size: var(--zd_font_size10);
|
|
24
18
|
}
|
|
25
|
-
|
|
26
19
|
.closedTime span:last-child:before,
|
|
27
20
|
.completedTask span:first-child:before {
|
|
28
21
|
color: inherit;
|
|
29
22
|
}
|
|
30
|
-
|
|
31
23
|
.closedTime span:first-child:before {
|
|
32
24
|
color: var(--zdt_usertime_icon_green);
|
|
33
25
|
}
|
|
34
|
-
|
|
35
26
|
.textStyle {
|
|
36
27
|
font-size: var(--zd_font_size12);
|
|
37
28
|
color: var(--text_color);
|
|
38
29
|
display: block;
|
|
39
30
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
40
31
|
}
|
|
41
|
-
|
|
42
32
|
.iconStyle {
|
|
43
33
|
display: block;
|
|
44
34
|
}
|
|
45
|
-
|
|
46
35
|
[dir=ltr] .iconStyle {
|
|
47
36
|
margin-right: var(--zd_size3);
|
|
48
37
|
margin-left: var(--zd_size1);
|
|
49
38
|
}
|
|
50
|
-
|
|
51
39
|
[dir=rtl] .iconStyle {
|
|
52
40
|
margin-left: var(--zd_size3);
|
|
53
41
|
margin-right: var(--zd_size1);
|
|
54
42
|
}
|
|
55
|
-
|
|
56
43
|
/* colors */
|
|
57
44
|
.iconColor {
|
|
58
45
|
color: var(--icon_color)
|
|
59
46
|
}
|
|
60
|
-
|
|
61
47
|
.red {
|
|
62
48
|
--icon_color: var(--zdt_usertime_icon_red);
|
|
63
49
|
}
|
|
64
|
-
|
|
65
50
|
.green {
|
|
66
51
|
--icon_color: var(--zdt_usertime_icon_green);
|
|
67
52
|
}
|
|
68
|
-
|
|
69
53
|
.orange {
|
|
70
54
|
--icon_color: var(--zdt_usertime_icon_orange);
|
|
71
55
|
}
|
|
72
|
-
|
|
73
56
|
.gray {
|
|
74
57
|
--icon_color: var(--zdt_usertime_icon_gray);
|
|
75
|
-
}
|
|
58
|
+
}
|