@zohodesk/dot 1.0.0-temp-218.4 → 1.0.0-temp-224
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/es/form/fields/CheckBoxField/CheckBoxField.js +12 -8
- package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/es/form/fields/DateField/DateField.js +12 -7
- package/es/form/fields/MultiSelectField/MultiSelectField.js +20 -18
- package/es/form/fields/RadioField/RadioField.js +10 -5
- package/es/form/fields/SelectField/SelectField.js +12 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -7
- package/es/form/fields/TextBoxField/TextBoxField.js +11 -6
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/es/form/fields/TextareaField/TextareaField.js +10 -5
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/SecondaryText/AccountName.js +8 -23
- package/es/list/SecondaryText/ContactName.js +6 -18
- package/es/list/SecondaryText/DepartmentText.js +6 -13
- package/es/list/SecondaryText/Email.js +7 -19
- package/es/list/SecondaryText/PhoneNumber.js +7 -19
- package/es/list/SecondaryText/PriorityText.js +6 -13
- package/es/list/SecondaryText/SecondaryText.js +8 -17
- package/es/list/SecondaryText/SecondaryText.module.css +24 -40
- package/es/list/SecondaryText/StatusText.js +6 -13
- package/es/list/SecondaryText/TicketId.js +2 -8
- package/es/list/SecondaryText/Website.js +5 -16
- package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +2 -6
- package/es/list/SecondaryText/props/defaultProps.js +0 -18
- package/es/list/SecondaryText/props/propTypes.js +0 -21
- package/es/list/Subject/Subject.js +12 -28
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +1 -3
- package/es/list/Subject/props/propTypes.js +1 -5
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +13 -9
- package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/lib/form/fields/DateField/DateField.js +13 -9
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +19 -18
- package/lib/form/fields/RadioField/RadioField.js +10 -5
- package/lib/form/fields/SelectField/SelectField.js +12 -8
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -7
- package/lib/form/fields/TextBoxField/TextBoxField.js +11 -7
- package/lib/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/lib/form/fields/TextareaField/TextareaField.js +10 -5
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/SecondaryText/AccountName.js +8 -27
- package/lib/list/SecondaryText/ContactName.js +6 -21
- package/lib/list/SecondaryText/DepartmentText.js +6 -15
- package/lib/list/SecondaryText/Email.js +7 -22
- package/lib/list/SecondaryText/PhoneNumber.js +7 -22
- package/lib/list/SecondaryText/PriorityText.js +6 -15
- package/lib/list/SecondaryText/SecondaryText.js +8 -26
- package/lib/list/SecondaryText/SecondaryText.module.css +24 -40
- package/lib/list/SecondaryText/StatusText.js +6 -15
- package/lib/list/SecondaryText/TicketId.js +2 -10
- package/lib/list/SecondaryText/Website.js +5 -18
- package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +2 -6
- package/lib/list/SecondaryText/props/defaultProps.js +0 -18
- package/lib/list/SecondaryText/props/propTypes.js +0 -22
- package/lib/list/Subject/Subject.js +13 -40
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +1 -3
- package/lib/list/Subject/props/propTypes.js +1 -6
- package/package.json +3 -3
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { PriorityText_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { PriorityText_propTypes } from "./props/propTypes";
|
|
4
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
6
4
|
import style from "./SecondaryText.module.css";
|
|
7
5
|
export default class PriorityText extends Component {
|
|
8
6
|
constructor(props) {
|
|
@@ -15,18 +13,13 @@ export default class PriorityText extends Component {
|
|
|
15
13
|
color,
|
|
16
14
|
text,
|
|
17
15
|
dataTitle,
|
|
18
|
-
dataId
|
|
19
|
-
isHighlighted,
|
|
20
|
-
highlightData
|
|
16
|
+
dataId
|
|
21
17
|
} = this.props;
|
|
22
|
-
return /*#__PURE__*/React.createElement(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
$i18n_dataTitle: dataTitle,
|
|
28
|
-
customId: dataId,
|
|
29
|
-
testId: dataId
|
|
18
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: `${style.priorityText} ${style[color]} ${className ? className : ''}`,
|
|
20
|
+
"data-title": dataTitle,
|
|
21
|
+
"data-id": dataId,
|
|
22
|
+
"data-test-id": dataId
|
|
30
23
|
}, text);
|
|
31
24
|
}
|
|
32
25
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { SecondaryText_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { SecondaryText_propTypes } from "./props/propTypes";
|
|
4
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
6
4
|
import style from "./SecondaryText.module.css";
|
|
7
5
|
export default class SecondaryText extends Component {
|
|
8
6
|
constructor(props) {
|
|
@@ -16,25 +14,18 @@ export default class SecondaryText extends Component {
|
|
|
16
14
|
dataTitle,
|
|
17
15
|
dataId,
|
|
18
16
|
onClick,
|
|
19
|
-
customProps
|
|
20
|
-
isHighlighted,
|
|
21
|
-
highlightData
|
|
17
|
+
customProps
|
|
22
18
|
} = this.props;
|
|
23
19
|
let {
|
|
24
20
|
SecondaryTextProps
|
|
25
21
|
} = customProps;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
$ui_className: `${style.secondaryText} ${className ? className : ''}`,
|
|
34
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT,
|
|
35
|
-
$i18n_dataTitle: dataTitle,
|
|
36
|
-
customId: dataId,
|
|
37
|
-
testId: dataId
|
|
22
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
+
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
24
|
+
"data-title": dataTitle,
|
|
25
|
+
"data-id": dataId,
|
|
26
|
+
"data-test-id": dataId,
|
|
27
|
+
onClick: onClick,
|
|
28
|
+
...SecondaryTextProps
|
|
38
29
|
}, text);
|
|
39
30
|
}
|
|
40
31
|
|
|
@@ -8,120 +8,109 @@
|
|
|
8
8
|
}[dir=rtl] .paidUserIcon {
|
|
9
9
|
margin-left: var(--zd_size5) ;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
11
|
.icon {
|
|
13
12
|
display: block;
|
|
14
13
|
}
|
|
15
|
-
|
|
16
14
|
.disable {
|
|
17
15
|
cursor: not-allowed;
|
|
18
16
|
}
|
|
19
|
-
|
|
20
17
|
.textBold {
|
|
21
18
|
font-weight: var(--zd-fw-bold);
|
|
22
19
|
color: var(--zdt_secondaryText_black_text);
|
|
23
20
|
}
|
|
24
|
-
|
|
25
|
-
.link {
|
|
21
|
+
.textStyle, .link{
|
|
26
22
|
display: block
|
|
27
23
|
}
|
|
28
|
-
|
|
24
|
+
.textStyle.textBold {
|
|
25
|
+
font-weight: var(--zd-fw-bold);
|
|
26
|
+
color: var(--zdt_secondaryText_black_text);
|
|
27
|
+
}
|
|
29
28
|
.ticketId,
|
|
30
29
|
.link,
|
|
30
|
+
.textStyle,
|
|
31
31
|
.secondaryText,
|
|
32
32
|
.ratingText,
|
|
33
33
|
.phoneNumber {
|
|
34
34
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
.textStyle,
|
|
37
|
+
.secondaryText {
|
|
38
|
+
font-size: var(--zd_font_size12) ;
|
|
39
|
+
}
|
|
37
40
|
.ticketId,
|
|
41
|
+
.phoneNumber,
|
|
38
42
|
.ratingText {
|
|
39
43
|
font-size: var(--zd_font_size12) ;
|
|
40
44
|
}
|
|
41
|
-
|
|
42
|
-
.linkWithText {
|
|
43
|
-
color: var(--zdt_secondaryText_secondaryText_text);
|
|
44
|
-
max-width: 100% ;
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.linkWithText:hover {
|
|
49
|
-
color: var(--zdt_secondaryText_blue_text);
|
|
50
|
-
}
|
|
51
|
-
|
|
45
|
+
.textStyle,
|
|
52
46
|
.secondaryText,
|
|
53
47
|
.phoneNumber {
|
|
48
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
54
49
|
max-width: 100% ;
|
|
50
|
+
display: block;
|
|
55
51
|
}
|
|
56
|
-
|
|
57
|
-
.secondaryText, .phoneNumber {
|
|
52
|
+
.textStyle, .secondaryText, .phoneNumber {
|
|
58
53
|
cursor: pointer;
|
|
59
54
|
}
|
|
60
|
-
|
|
55
|
+
.textStyle:hover,
|
|
61
56
|
.ticketIdLink,
|
|
62
57
|
.phoneNumber:hover,
|
|
63
58
|
.link:hover {
|
|
64
59
|
color: var(--zdt_secondaryText_blue_text);
|
|
65
60
|
}
|
|
66
|
-
|
|
67
61
|
/* .link:focus, .link:focus .textStyle, .link:focus .phoneNumber{
|
|
68
62
|
color: var(--zdt_secondaryText_blue_text);
|
|
69
63
|
} */
|
|
70
64
|
.ticketIdLink {
|
|
71
65
|
cursor: pointer;
|
|
72
66
|
}
|
|
73
|
-
|
|
74
|
-
.ticketIdLink:hover,
|
|
75
|
-
.ticketIdLink:focus {
|
|
67
|
+
.ticketIdLink:hover,.ticketIdLink:focus {
|
|
76
68
|
color: var(--zdt_secondaryText_blue_hover_text);
|
|
77
69
|
}
|
|
78
|
-
|
|
79
70
|
.primaryAccountNameCnt {
|
|
80
71
|
max-width: 100% ;
|
|
81
72
|
}
|
|
82
|
-
|
|
83
73
|
/* status */
|
|
84
74
|
.font_regular {
|
|
85
75
|
font-weight: var(--zd-fw-normal);
|
|
86
76
|
}
|
|
87
|
-
|
|
88
77
|
.font_semibold {
|
|
89
78
|
font-weight: var(--zd-fw-semibold);
|
|
90
79
|
}
|
|
91
|
-
|
|
92
80
|
.font_bold {
|
|
93
81
|
font-weight: var(--zd-fw-bold);
|
|
94
82
|
}
|
|
95
|
-
|
|
96
83
|
.font_semibold,
|
|
97
84
|
.font_bold,
|
|
98
85
|
.textBold {
|
|
99
86
|
composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
|
|
100
87
|
}
|
|
88
|
+
.priorityText,
|
|
89
|
+
.statusText {
|
|
90
|
+
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
91
|
+
}
|
|
101
92
|
|
|
102
93
|
.priorityText {
|
|
94
|
+
font-size: var(--zd_font_size12) ;
|
|
103
95
|
max-width: 100% ;
|
|
104
96
|
}
|
|
105
|
-
|
|
106
97
|
.departmentText {
|
|
98
|
+
font-size: var(--zd_font_size12) ;
|
|
107
99
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
108
100
|
max-width: 100% ;
|
|
101
|
+
composes: dotted from '~@zohodesk/components/es/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,23 +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
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { StatusText_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { StatusText_propTypes } from "./props/propTypes";
|
|
4
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
6
4
|
import style from "./SecondaryText.module.css";
|
|
7
5
|
export default class StatusText extends Component {
|
|
8
6
|
constructor(props) {
|
|
@@ -16,18 +14,13 @@ export default class StatusText extends Component {
|
|
|
16
14
|
text,
|
|
17
15
|
dataTitle,
|
|
18
16
|
fontWeight,
|
|
19
|
-
dataId
|
|
20
|
-
isHighlighted,
|
|
21
|
-
highlightData
|
|
17
|
+
dataId
|
|
22
18
|
} = this.props;
|
|
23
|
-
return /*#__PURE__*/React.createElement(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
$i18n_dataTitle: dataTitle,
|
|
29
|
-
customId: dataId,
|
|
30
|
-
testId: dataId
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
21
|
+
"data-title": dataTitle,
|
|
22
|
+
"data-id": dataId,
|
|
23
|
+
"data-test-id": dataId
|
|
31
24
|
}, text);
|
|
32
25
|
}
|
|
33
26
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { TicketId_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { TicketId_propTypes } from "./props/propTypes";
|
|
4
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
6
4
|
import Link from "../../Link/Link";
|
|
7
5
|
import style from "./SecondaryText.module.css";
|
|
8
6
|
export default class TicketId extends Component {
|
|
@@ -22,9 +20,7 @@ export default class TicketId extends Component {
|
|
|
22
20
|
target,
|
|
23
21
|
urlName,
|
|
24
22
|
urlData,
|
|
25
|
-
customProps
|
|
26
|
-
isHighlighted,
|
|
27
|
-
highlightData
|
|
23
|
+
customProps
|
|
28
24
|
} = this.props;
|
|
29
25
|
let {
|
|
30
26
|
LinkProps = {},
|
|
@@ -44,9 +40,7 @@ export default class TicketId extends Component {
|
|
|
44
40
|
target: target,
|
|
45
41
|
onClick: onClick,
|
|
46
42
|
...LinkProps
|
|
47
|
-
},
|
|
48
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
49
|
-
}, text)) : text);
|
|
43
|
+
}, text) : text);
|
|
50
44
|
}
|
|
51
45
|
|
|
52
46
|
}
|
|
@@ -6,8 +6,6 @@ import { Website_defaultProps } from "./props/defaultProps";
|
|
|
6
6
|
import { Website_propTypes } from "./props/propTypes";
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
10
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
11
9
|
import ExternalLink from "../../ExternalLink/ExternalLink";
|
|
12
10
|
/**** CSS ****/
|
|
13
11
|
|
|
@@ -21,26 +19,17 @@ export default class Website extends Component {
|
|
|
21
19
|
href,
|
|
22
20
|
dataId,
|
|
23
21
|
isLink,
|
|
24
|
-
target
|
|
25
|
-
isHighlighted,
|
|
26
|
-
highlightData
|
|
22
|
+
target
|
|
27
23
|
} = this.props;
|
|
28
24
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(ExternalLink, {
|
|
29
|
-
className: style.
|
|
25
|
+
className: `${style.textStyle} ${className ? className : ''}`,
|
|
30
26
|
href: href,
|
|
31
27
|
title: title,
|
|
32
28
|
dataId: dataId,
|
|
33
29
|
target: target
|
|
34
|
-
}, /*#__PURE__*/React.createElement(
|
|
35
|
-
$
|
|
36
|
-
|
|
37
|
-
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
38
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
39
|
-
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
40
|
-
$ui_size: "12",
|
|
41
|
-
$flag_dotted: true,
|
|
42
|
-
$ui_className: `${style.secondaryText} ${className ? className : ''}`,
|
|
43
|
-
$i18n_dataTitle: text
|
|
30
|
+
}, text) : /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: `${style.secondaryText} ${className ? className : ''}`,
|
|
32
|
+
"data-title": text
|
|
44
33
|
}, text));
|
|
45
34
|
}
|
|
46
35
|
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
exports[`Website rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<a
|
|
6
|
-
class="link
|
|
6
|
+
class="link textStyle "
|
|
7
7
|
href="javascript:void(0);"
|
|
8
8
|
rel="noopener noreferrer"
|
|
9
9
|
target="_blank"
|
|
10
|
-
|
|
11
|
-
<div
|
|
12
|
-
class="dotted size12 linkWithText "
|
|
13
|
-
/>
|
|
14
|
-
</a>
|
|
10
|
+
/>
|
|
15
11
|
</DocumentFragment>
|
|
16
12
|
`;
|
|
@@ -2,8 +2,6 @@ export const AccountName_defaultProps = {
|
|
|
2
2
|
isLink: true,
|
|
3
3
|
dataId: 'accountName',
|
|
4
4
|
fontWeight: 'regular',
|
|
5
|
-
isHighlighted: false,
|
|
6
|
-
highlightData: {},
|
|
7
5
|
customProps: {}
|
|
8
6
|
};
|
|
9
7
|
export const ContactName_defaultProps = {
|
|
@@ -12,51 +10,35 @@ export const ContactName_defaultProps = {
|
|
|
12
10
|
dataId: 'contactName',
|
|
13
11
|
fontWeight: 'regular',
|
|
14
12
|
i18nKeys: {},
|
|
15
|
-
isHighlighted: false,
|
|
16
|
-
highlightData: {},
|
|
17
13
|
customProps: {}
|
|
18
14
|
};
|
|
19
15
|
export const Email_defaultProps = {
|
|
20
16
|
isLink: true,
|
|
21
17
|
fontWeight: 'regular',
|
|
22
|
-
isHighlighted: false,
|
|
23
|
-
highlightData: {},
|
|
24
18
|
customProps: {}
|
|
25
19
|
};
|
|
26
20
|
export const PhoneNumber_defaultProps = {
|
|
27
21
|
isLink: true,
|
|
28
22
|
hasReload: false,
|
|
29
23
|
fontWeight: 'regular',
|
|
30
|
-
isHighlighted: false,
|
|
31
|
-
highlightData: {},
|
|
32
24
|
customProps: {}
|
|
33
25
|
};
|
|
34
26
|
export const PriorityText_defaultProps = {
|
|
35
27
|
color: 'black',
|
|
36
|
-
isHighlighted: false,
|
|
37
|
-
highlightData: {},
|
|
38
28
|
dataId: 'priority'
|
|
39
29
|
};
|
|
40
30
|
export const SecondaryText_defaultProps = {
|
|
41
|
-
isHighlighted: false,
|
|
42
|
-
highlightData: {},
|
|
43
31
|
customProps: {}
|
|
44
32
|
};
|
|
45
33
|
export const StatusText_defaultProps = {
|
|
46
34
|
color: 'black',
|
|
47
35
|
dataId: 'statusContainer',
|
|
48
|
-
isHighlighted: false,
|
|
49
|
-
highlightData: {},
|
|
50
36
|
fontWeight: 'regular'
|
|
51
37
|
};
|
|
52
38
|
export const TicketId_defaultProps = {
|
|
53
39
|
dataId: 'ticketId',
|
|
54
|
-
isHighlighted: false,
|
|
55
|
-
highlightData: {},
|
|
56
40
|
customProps: {}
|
|
57
41
|
};
|
|
58
42
|
export const Website_defaultProps = {
|
|
59
|
-
isHighlighted: false,
|
|
60
|
-
highlightData: {},
|
|
61
43
|
isLink: true
|
|
62
44
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
3
2
|
export const AccountName_propTypes = {
|
|
4
3
|
className: PropTypes.string,
|
|
5
4
|
dataId: PropTypes.string,
|
|
@@ -15,8 +14,6 @@ export const AccountName_propTypes = {
|
|
|
15
14
|
secondaryAccountHref: PropTypes.string,
|
|
16
15
|
secondaryAccountClick: PropTypes.func,
|
|
17
16
|
secondaryAccountText: PropTypes.string,
|
|
18
|
-
isHighlighted: PropTypes.bool,
|
|
19
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
20
17
|
customProps: PropTypes.shape({
|
|
21
18
|
LinkProps: PropTypes.object,
|
|
22
19
|
TextProps: PropTypes.object,
|
|
@@ -45,8 +42,6 @@ export const ContactName_propTypes = {
|
|
|
45
42
|
}),
|
|
46
43
|
paidTitle: PropTypes.string
|
|
47
44
|
}),
|
|
48
|
-
isHighlighted: PropTypes.bool,
|
|
49
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
50
45
|
customProps: PropTypes.shape({
|
|
51
46
|
LinkProps: PropTypes.object,
|
|
52
47
|
TextProps: PropTypes.object
|
|
@@ -56,8 +51,6 @@ export const DepartmentText_propTypes = {
|
|
|
56
51
|
className: PropTypes.string,
|
|
57
52
|
dataId: PropTypes.string,
|
|
58
53
|
dataTitle: PropTypes.string,
|
|
59
|
-
isHighlighted: PropTypes.bool,
|
|
60
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
61
54
|
text: PropTypes.string
|
|
62
55
|
};
|
|
63
56
|
export const Email_propTypes = {
|
|
@@ -70,8 +63,6 @@ export const Email_propTypes = {
|
|
|
70
63
|
title: PropTypes.string,
|
|
71
64
|
urlData: PropTypes.object,
|
|
72
65
|
urlName: PropTypes.string,
|
|
73
|
-
isHighlighted: PropTypes.bool,
|
|
74
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
75
66
|
customProps: PropTypes.shape({
|
|
76
67
|
LinkProps: PropTypes.object,
|
|
77
68
|
TextProps: PropTypes.object
|
|
@@ -94,8 +85,6 @@ export const PhoneNumber_propTypes = {
|
|
|
94
85
|
title: PropTypes.string,
|
|
95
86
|
urlData: PropTypes.object,
|
|
96
87
|
urlName: PropTypes.string,
|
|
97
|
-
isHighlighted: PropTypes.bool,
|
|
98
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
99
88
|
customProps: PropTypes.shape({
|
|
100
89
|
LinkProps: PropTypes.object,
|
|
101
90
|
TextProps: PropTypes.object
|
|
@@ -106,8 +95,6 @@ export const PriorityText_propTypes = {
|
|
|
106
95
|
color: PropTypes.oneOf(['red', 'green', 'gray', 'orange']),
|
|
107
96
|
dataId: PropTypes.string,
|
|
108
97
|
dataTitle: PropTypes.string,
|
|
109
|
-
isHighlighted: PropTypes.bool,
|
|
110
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
111
98
|
text: PropTypes.string
|
|
112
99
|
};
|
|
113
100
|
export const SecondaryText_propTypes = {
|
|
@@ -116,8 +103,6 @@ export const SecondaryText_propTypes = {
|
|
|
116
103
|
dataTitle: PropTypes.string,
|
|
117
104
|
onClick: PropTypes.func,
|
|
118
105
|
text: PropTypes.string,
|
|
119
|
-
isHighlighted: PropTypes.bool,
|
|
120
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
121
106
|
customProps: PropTypes.shape({
|
|
122
107
|
SecondaryTextProps: PropTypes.object
|
|
123
108
|
})
|
|
@@ -128,8 +113,6 @@ export const StatusText_propTypes = {
|
|
|
128
113
|
dataId: PropTypes.string,
|
|
129
114
|
dataTitle: PropTypes.string,
|
|
130
115
|
fontWeight: PropTypes.oneOf(['regular', 'semibold', 'bold']),
|
|
131
|
-
isHighlighted: PropTypes.bool,
|
|
132
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
133
116
|
text: PropTypes.string
|
|
134
117
|
};
|
|
135
118
|
export const TicketId_propTypes = {
|
|
@@ -143,8 +126,6 @@ export const TicketId_propTypes = {
|
|
|
143
126
|
url: PropTypes.string,
|
|
144
127
|
urlData: PropTypes.string,
|
|
145
128
|
urlName: PropTypes.string,
|
|
146
|
-
isHighlighted: PropTypes.bool,
|
|
147
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
148
129
|
customProps: PropTypes.shape({
|
|
149
130
|
TicketIdProps: PropTypes.object,
|
|
150
131
|
LinkProps: PropTypes.object
|
|
@@ -157,7 +138,5 @@ export const Website_propTypes = {
|
|
|
157
138
|
isLink: PropTypes.bool,
|
|
158
139
|
target: PropTypes.string,
|
|
159
140
|
text: PropTypes.string,
|
|
160
|
-
isHighlighted: PropTypes.bool,
|
|
161
|
-
highlightData: typographyProps.$ui_highlightConfig,
|
|
162
141
|
title: PropTypes.string
|
|
163
142
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { propTypes } from "./props/propTypes";
|
|
4
|
-
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
5
|
-
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
6
4
|
import Link from "../../Link/Link";
|
|
7
5
|
import { whiteSpaceClassMapping } from '@zohodesk/components/es/utils/cssUtils';
|
|
8
6
|
import style from "./Subject.module.css";
|
|
@@ -26,44 +24,30 @@ export default class Subject extends Component {
|
|
|
26
24
|
isDotted,
|
|
27
25
|
children,
|
|
28
26
|
customProps,
|
|
29
|
-
whiteSpace
|
|
30
|
-
isHighlighted,
|
|
31
|
-
highlightData
|
|
27
|
+
whiteSpace
|
|
32
28
|
} = this.props;
|
|
33
29
|
let {
|
|
34
30
|
LinkProps = {},
|
|
35
31
|
TextProps = {}
|
|
36
32
|
} = customProps;
|
|
37
|
-
let tagAttributesText = { ...TextProps,
|
|
38
|
-
'data-title-wrap': whiteSpace
|
|
39
|
-
};
|
|
40
|
-
let linkTagAttributes = {
|
|
41
|
-
'data-title-wrap': whiteSpace
|
|
42
|
-
};
|
|
43
33
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
44
34
|
urlName: urlName,
|
|
45
35
|
href: href,
|
|
46
36
|
urlData: urlData,
|
|
47
37
|
onClick: onClick,
|
|
38
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
39
|
+
dataId: dataId,
|
|
40
|
+
title: text,
|
|
48
41
|
target: target,
|
|
42
|
+
"data-title-wrap": whiteSpace,
|
|
49
43
|
...LinkProps
|
|
50
|
-
}, children ? children : /*#__PURE__*/React.createElement(
|
|
51
|
-
$
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
58
|
-
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
59
|
-
$tagAttributes_text: tagAttributesText,
|
|
60
|
-
$ui_className: `${style.subject} ${className} ${whiteSpaceClassMapping[whiteSpace]}`,
|
|
61
|
-
$flag_dotted: isDotted,
|
|
62
|
-
$ui_weight: fontWeight,
|
|
63
|
-
$i18n_dataTitle: text,
|
|
64
|
-
customId: dataId,
|
|
65
|
-
testId: dataId,
|
|
66
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
44
|
+
}, children ? children : text) : /*#__PURE__*/React.createElement("span", {
|
|
45
|
+
className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]}`,
|
|
46
|
+
"data-title": text,
|
|
47
|
+
"data-id": dataId,
|
|
48
|
+
"data-test-id": dataId,
|
|
49
|
+
"data-title-wrap": whiteSpace,
|
|
50
|
+
...TextProps
|
|
67
51
|
}, text));
|
|
68
52
|
}
|
|
69
53
|
|