@zohodesk/dot 1.0.0-temp-218.5 → 1.0.0-temp-224.1
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 +13 -0
- package/es/common/dot_boxShadow.module.css +1 -2
- package/es/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/es/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/es/form/fields/DateField/DateField.js +17 -7
- package/es/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/es/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/es/form/fields/RadioField/RadioField.js +15 -5
- package/es/form/fields/SelectField/SelectField.js +17 -7
- package/es/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/es/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +16 -6
- package/es/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/TextEditor.js +6 -2
- package/es/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/es/form/fields/TextEditor/props/propTypes.js +2 -1
- 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 +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/es/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/lib/common/dot_boxShadow.module.css +1 -2
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/lib/form/fields/CurrencyField/__tests__/__snapshots__/CurrencyField.spec.js.snap +1 -1
- package/lib/form/fields/DateField/DateField.js +17 -8
- package/lib/form/fields/DateField/__tests__/__snapshots__/DateField.spec.js.snap +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/lib/form/fields/MultiSelectField/__tests__/__snapshots__/MultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/PhoneField/__tests__/__snapshots__/PhoneField.spec.js.snap +1 -1
- package/lib/form/fields/RadioField/RadioField.js +15 -5
- package/lib/form/fields/SelectField/SelectField.js +17 -8
- package/lib/form/fields/SelectField/__tests__/__snapshots__/SelectField.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelect/__tests__/__snapshots__/TagsMultiSelect.spec.js.snap +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/lib/form/fields/TagsMultiSelectField/__tests__/__snapshots__/TagsMultiSelectField.spec.js.snap +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +16 -7
- package/lib/form/fields/TextBoxField/__tests__/__snapshots__/TextBoxField.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +5 -2
- package/lib/form/fields/TextEditor/__tests__/__snapshots__/TextEditor.spec.js.snap +1 -1
- package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
- package/lib/form/fields/TextEditor/props/propTypes.js +2 -1
- 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 +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/lib/lookup/header/Search/__tests__/__snapshots__/Search.spec.js.snap +6 -6
- package/package.json +10 -10
|
@@ -2,8 +2,6 @@ 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';
|
|
7
5
|
import Link from "../../Link/Link";
|
|
8
6
|
import SentimentStatus from "../SentimentStatus/SentimentStatus";
|
|
9
7
|
import { Icon } from '@zohodesk/icons';
|
|
@@ -25,8 +23,6 @@ export default class ContactName extends Component {
|
|
|
25
23
|
notAccessible = false,
|
|
26
24
|
fontWeight,
|
|
27
25
|
i18nKeys,
|
|
28
|
-
highlightData,
|
|
29
|
-
isHighlighted,
|
|
30
26
|
customProps
|
|
31
27
|
} = this.props;
|
|
32
28
|
let {
|
|
@@ -66,20 +62,12 @@ export default class ContactName extends Component {
|
|
|
66
62
|
className: style.link,
|
|
67
63
|
...LinkProps,
|
|
68
64
|
ariaLabel: `Contact Name ${text}`
|
|
69
|
-
}, /*#__PURE__*/React.createElement(
|
|
70
|
-
$
|
|
71
|
-
|
|
72
|
-
$
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
65
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
67
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
|
|
69
|
+
"data-title": dataTitle,
|
|
70
|
+
...TextProps
|
|
83
71
|
}, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
|
|
84
72
|
type: sentimentType,
|
|
85
73
|
dataTitle: sentimentDataTitle
|
|
@@ -1,7 +1,5 @@
|
|
|
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';
|
|
5
3
|
import style from "./SecondaryText.module.css";
|
|
6
4
|
export default class DepartmentText extends Component {
|
|
7
5
|
constructor(props) {
|
|
@@ -13,18 +11,13 @@ export default class DepartmentText extends Component {
|
|
|
13
11
|
className,
|
|
14
12
|
text,
|
|
15
13
|
dataTitle,
|
|
16
|
-
dataId
|
|
17
|
-
isHighlighted,
|
|
18
|
-
highlightData
|
|
14
|
+
dataId
|
|
19
15
|
} = this.props;
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
|
21
|
-
$
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
customId: dataId,
|
|
26
|
-
testId: dataId,
|
|
27
|
-
$ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: `${style.departmentText} ${className ? className : ''}`,
|
|
18
|
+
"data-title": dataTitle,
|
|
19
|
+
"data-id": dataId,
|
|
20
|
+
"data-test-id": dataId
|
|
28
21
|
}, text);
|
|
29
22
|
}
|
|
30
23
|
|
|
@@ -6,8 +6,6 @@ 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';
|
|
11
9
|
import Link from "../../Link/Link";
|
|
12
10
|
/**** CSS ****/
|
|
13
11
|
|
|
@@ -24,9 +22,7 @@ export default class Email extends Component {
|
|
|
24
22
|
isLink,
|
|
25
23
|
target,
|
|
26
24
|
fontWeight,
|
|
27
|
-
customProps
|
|
28
|
-
isHighlighted,
|
|
29
|
-
highlightData
|
|
25
|
+
customProps
|
|
30
26
|
} = this.props;
|
|
31
27
|
let {
|
|
32
28
|
LinkProps = {},
|
|
@@ -40,20 +36,12 @@ export default class Email extends Component {
|
|
|
40
36
|
target: target,
|
|
41
37
|
className: style.link,
|
|
42
38
|
...LinkProps
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
44
|
-
$
|
|
45
|
-
|
|
46
|
-
$
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
41
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
43
|
+
"data-title": title,
|
|
44
|
+
...TextProps
|
|
57
45
|
}, text));
|
|
58
46
|
}
|
|
59
47
|
|
|
@@ -6,8 +6,6 @@ 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';
|
|
11
9
|
import Link from "../../Link/Link";
|
|
12
10
|
/**** CSS ****/
|
|
13
11
|
|
|
@@ -26,9 +24,7 @@ export default class PhoneNumber extends Component {
|
|
|
26
24
|
target,
|
|
27
25
|
hasReload,
|
|
28
26
|
fontWeight,
|
|
29
|
-
customProps
|
|
30
|
-
isHighlighted,
|
|
31
|
-
highlightData
|
|
27
|
+
customProps
|
|
32
28
|
} = this.props;
|
|
33
29
|
let {
|
|
34
30
|
LinkProps = {},
|
|
@@ -44,20 +40,12 @@ export default class PhoneNumber extends Component {
|
|
|
44
40
|
hasReload: hasReload,
|
|
45
41
|
className: style.link,
|
|
46
42
|
...LinkProps
|
|
47
|
-
}, /*#__PURE__*/React.createElement(
|
|
48
|
-
$
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
|
43
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
+
className: `${style.phoneNumber} ${style.phonetxt} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
|
|
45
|
+
}, text)) : /*#__PURE__*/React.createElement("div", {
|
|
46
|
+
className: `${style.secondaryText} ${style.phonetxt} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
|
|
47
|
+
"data-title": title,
|
|
48
|
+
...TextProps
|
|
61
49
|
}, text));
|
|
62
50
|
}
|
|
63
51
|
|
|
@@ -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
|
`;
|