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