@zohodesk/dot 1.9.1 → 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 +5 -0
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- 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/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- 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 +3 -3
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.9.2
|
|
6
|
+
|
|
7
|
+
- **Highlight options added**
|
|
8
|
+
- Account Name, Contact Name, Department Text, Email, Phone Number, Priority, StatusText, TicketID, Website and Subject components
|
|
9
|
+
|
|
5
10
|
# 1.9.1
|
|
6
11
|
|
|
7
12
|
- **CheckBoxField, CurrencyField, DateField, MultiSelectField, RadioField, SelectField, TagsMultiSelectField, TextareaField, TextBoxField, TextEditorField**
|
|
@@ -73,15 +73,16 @@ exports[`CheckBoxField rendering the custom children 1`] = `
|
|
|
73
73
|
data-selector-id="fieldContainer"
|
|
74
74
|
data-test-id="containerComponent"
|
|
75
75
|
>
|
|
76
|
-
<
|
|
77
|
-
class="
|
|
78
|
-
pointer checkboxText undefined cbTextPointer "
|
|
76
|
+
<div
|
|
77
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
79
78
|
data-id="undefined_label"
|
|
80
|
-
data-selector-id="
|
|
79
|
+
data-selector-id="undefined_label"
|
|
81
80
|
data-test-id="undefined_label"
|
|
82
81
|
>
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
<label
|
|
83
|
+
class="size14 font_semibold label"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
85
86
|
</div>
|
|
86
87
|
</div>
|
|
87
88
|
</div>
|
|
@@ -164,15 +165,16 @@ exports[`CheckBoxField rendering the custom label children via renderLabelProps
|
|
|
164
165
|
data-selector-id="fieldContainer"
|
|
165
166
|
data-test-id="containerComponent"
|
|
166
167
|
>
|
|
167
|
-
<
|
|
168
|
-
class="
|
|
169
|
-
pointer checkboxText undefined cbTextPointer "
|
|
168
|
+
<div
|
|
169
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
170
170
|
data-id="undefined_label"
|
|
171
|
-
data-selector-id="
|
|
171
|
+
data-selector-id="undefined_label"
|
|
172
172
|
data-test-id="undefined_label"
|
|
173
173
|
>
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
<label
|
|
175
|
+
class="size14 font_semibold label"
|
|
176
|
+
/>
|
|
177
|
+
</div>
|
|
176
178
|
{}
|
|
177
179
|
</div>
|
|
178
180
|
</div>
|
|
@@ -255,15 +257,16 @@ exports[`CheckBoxField rendering the defult props 1`] = `
|
|
|
255
257
|
data-selector-id="fieldContainer"
|
|
256
258
|
data-test-id="containerComponent"
|
|
257
259
|
>
|
|
258
|
-
<
|
|
259
|
-
class="
|
|
260
|
-
pointer checkboxText undefined cbTextPointer "
|
|
260
|
+
<div
|
|
261
|
+
class="inlineFlex row alignItems_center container default checkboxText"
|
|
261
262
|
data-id="undefined_label"
|
|
262
|
-
data-selector-id="
|
|
263
|
+
data-selector-id="undefined_label"
|
|
263
264
|
data-test-id="undefined_label"
|
|
264
265
|
>
|
|
265
|
-
|
|
266
|
-
|
|
266
|
+
<label
|
|
267
|
+
class="size14 font_semibold label"
|
|
268
|
+
/>
|
|
269
|
+
</div>
|
|
267
270
|
</div>
|
|
268
271
|
</div>
|
|
269
272
|
</div>
|
|
@@ -7,6 +7,8 @@ import { AccountName_propTypes } from "./props/propTypes";
|
|
|
7
7
|
/**** Components ****/
|
|
8
8
|
|
|
9
9
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
10
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
11
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
10
12
|
import Link from "../../Link/Link";
|
|
11
13
|
/**** CSS ****/
|
|
12
14
|
|
|
@@ -28,6 +30,8 @@ export default class AccountName extends Component {
|
|
|
28
30
|
secondaryAccountHref,
|
|
29
31
|
secondaryAccountClick,
|
|
30
32
|
secondaryAccountText,
|
|
33
|
+
highlightData,
|
|
34
|
+
isHighlighted,
|
|
31
35
|
customProps
|
|
32
36
|
} = this.props;
|
|
33
37
|
let {
|
|
@@ -60,18 +64,29 @@ export default class AccountName extends Component {
|
|
|
60
64
|
className: style.link,
|
|
61
65
|
...LinkProps,
|
|
62
66
|
ariaLabel: `Account Name ${text}`
|
|
63
|
-
}, /*#__PURE__*/React.createElement(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
68
|
+
$tagAttributes_text: TextProps,
|
|
69
|
+
$ui_size: "12",
|
|
70
|
+
$flag_dotted: true,
|
|
71
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
74
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
75
|
+
$tagAttributes_text: TextProps,
|
|
76
|
+
$ui_size: "12",
|
|
77
|
+
$flag_dotted: true,
|
|
78
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
79
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
68
80
|
}, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
|
|
69
81
|
href: secondaryAccountHref,
|
|
70
82
|
onClick: secondaryAccountClick,
|
|
71
83
|
className: style.link
|
|
72
|
-
}, /*#__PURE__*/React.createElement(
|
|
73
|
-
|
|
74
|
-
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
85
|
+
$tagAttributes_text: SecondaryTextProps,
|
|
86
|
+
$ui_size: "12",
|
|
87
|
+
$flag_dotted: true,
|
|
88
|
+
$ui_weight: fontWeight,
|
|
89
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`
|
|
75
90
|
}, secondaryAccountText))))));
|
|
76
91
|
}
|
|
77
92
|
|
|
@@ -2,6 +2,8 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { ContactName_defaultProps } from "./props/defaultProps";
|
|
3
3
|
import { ContactName_propTypes } from "./props/propTypes";
|
|
4
4
|
import { Container, Box } from '@zohodesk/components/es/Layout';
|
|
5
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
6
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
5
7
|
import Link from "../../Link/Link";
|
|
6
8
|
import SentimentStatus from "../SentimentStatus/SentimentStatus";
|
|
7
9
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -23,6 +25,8 @@ export default class ContactName extends Component {
|
|
|
23
25
|
notAccessible = false,
|
|
24
26
|
fontWeight,
|
|
25
27
|
i18nKeys,
|
|
28
|
+
highlightData,
|
|
29
|
+
isHighlighted,
|
|
26
30
|
customProps
|
|
27
31
|
} = this.props;
|
|
28
32
|
let {
|
|
@@ -62,12 +66,20 @@ export default class ContactName extends Component {
|
|
|
62
66
|
className: style.link,
|
|
63
67
|
...LinkProps,
|
|
64
68
|
ariaLabel: `Contact Name ${text}`
|
|
65
|
-
}, /*#__PURE__*/React.createElement(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
70
|
+
$flag_dotted: true,
|
|
71
|
+
$ui_size: "12",
|
|
72
|
+
$ui_weight: fontWeight,
|
|
73
|
+
$ui_className: `${style.linkWithText} ${className ? className : ''}`,
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
75
|
+
}, text)) : /*#__PURE__*/React.createElement(Typography, {
|
|
76
|
+
$tagAttributes_text: TextProps,
|
|
77
|
+
$ui_size: "12",
|
|
78
|
+
$flag_dotted: true,
|
|
79
|
+
$ui_className: `${style.secondaryText} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
80
|
+
$ui_weight: fontWeight,
|
|
81
|
+
$i18n_dataTitle: dataTitle,
|
|
82
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
71
83
|
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
72
84
|
type: sentimentType,
|
|
73
85
|
dataTitle: sentimentDataTitle
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { DepartmentText_propTypes } from "./props/propTypes";
|
|
3
|
+
import Typography from '@zohodesk/components/es/Typography/Typography';
|
|
4
|
+
import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common';
|
|
3
5
|
import style from "./SecondaryText.module.css";
|
|
4
6
|
export default class DepartmentText extends Component {
|
|
5
7
|
constructor(props) {
|
|
@@ -11,13 +13,18 @@ export default class DepartmentText extends Component {
|
|
|
11
13
|
className,
|
|
12
14
|
text,
|
|
13
15
|
dataTitle,
|
|
14
|
-
dataId
|
|
16
|
+
dataId,
|
|
17
|
+
isHighlighted,
|
|
18
|
+
highlightData
|
|
15
19
|
} = this.props;
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
21
|
+
$ui_size: "12",
|
|
22
|
+
$flag_dotted: true,
|
|
23
|
+
$ui_className: `${style.departmentText} ${className ? className : ''}`,
|
|
24
|
+
$i18n_dataTitle: dataTitle,
|
|
25
|
+
customId: dataId,
|
|
26
|
+
testId: dataId,
|
|
27
|
+
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
21
28
|
}, text);
|
|
22
29
|
}
|
|
23
30
|
|
|
@@ -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
|
|