@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
|
@@ -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
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
2
3
|
export const AccountName_propTypes = {
|
|
3
4
|
className: PropTypes.string,
|
|
4
5
|
dataId: PropTypes.string,
|
|
@@ -14,6 +15,8 @@ export const AccountName_propTypes = {
|
|
|
14
15
|
secondaryAccountHref: PropTypes.string,
|
|
15
16
|
secondaryAccountClick: PropTypes.func,
|
|
16
17
|
secondaryAccountText: PropTypes.string,
|
|
18
|
+
isHighlighted: PropTypes.bool,
|
|
19
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
17
20
|
customProps: PropTypes.shape({
|
|
18
21
|
LinkProps: PropTypes.object,
|
|
19
22
|
TextProps: PropTypes.object,
|
|
@@ -42,6 +45,8 @@ export const ContactName_propTypes = {
|
|
|
42
45
|
}),
|
|
43
46
|
paidTitle: PropTypes.string
|
|
44
47
|
}),
|
|
48
|
+
isHighlighted: PropTypes.bool,
|
|
49
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
45
50
|
customProps: PropTypes.shape({
|
|
46
51
|
LinkProps: PropTypes.object,
|
|
47
52
|
TextProps: PropTypes.object
|
|
@@ -51,6 +56,8 @@ export const DepartmentText_propTypes = {
|
|
|
51
56
|
className: PropTypes.string,
|
|
52
57
|
dataId: PropTypes.string,
|
|
53
58
|
dataTitle: PropTypes.string,
|
|
59
|
+
isHighlighted: PropTypes.bool,
|
|
60
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
54
61
|
text: PropTypes.string
|
|
55
62
|
};
|
|
56
63
|
export const Email_propTypes = {
|
|
@@ -63,6 +70,8 @@ export const Email_propTypes = {
|
|
|
63
70
|
title: PropTypes.string,
|
|
64
71
|
urlData: PropTypes.object,
|
|
65
72
|
urlName: PropTypes.string,
|
|
73
|
+
isHighlighted: PropTypes.bool,
|
|
74
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
66
75
|
customProps: PropTypes.shape({
|
|
67
76
|
LinkProps: PropTypes.object,
|
|
68
77
|
TextProps: PropTypes.object
|
|
@@ -85,6 +94,8 @@ export const PhoneNumber_propTypes = {
|
|
|
85
94
|
title: PropTypes.string,
|
|
86
95
|
urlData: PropTypes.object,
|
|
87
96
|
urlName: PropTypes.string,
|
|
97
|
+
isHighlighted: PropTypes.bool,
|
|
98
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
88
99
|
customProps: PropTypes.shape({
|
|
89
100
|
LinkProps: PropTypes.object,
|
|
90
101
|
TextProps: PropTypes.object
|
|
@@ -95,6 +106,8 @@ export const PriorityText_propTypes = {
|
|
|
95
106
|
color: PropTypes.oneOf(['red', 'green', 'gray', 'orange']),
|
|
96
107
|
dataId: PropTypes.string,
|
|
97
108
|
dataTitle: PropTypes.string,
|
|
109
|
+
isHighlighted: PropTypes.bool,
|
|
110
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
98
111
|
text: PropTypes.string
|
|
99
112
|
};
|
|
100
113
|
export const SecondaryText_propTypes = {
|
|
@@ -103,6 +116,8 @@ export const SecondaryText_propTypes = {
|
|
|
103
116
|
dataTitle: PropTypes.string,
|
|
104
117
|
onClick: PropTypes.func,
|
|
105
118
|
text: PropTypes.string,
|
|
119
|
+
isHighlighted: PropTypes.bool,
|
|
120
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
106
121
|
customProps: PropTypes.shape({
|
|
107
122
|
SecondaryTextProps: PropTypes.object
|
|
108
123
|
})
|
|
@@ -113,6 +128,8 @@ export const StatusText_propTypes = {
|
|
|
113
128
|
dataId: PropTypes.string,
|
|
114
129
|
dataTitle: PropTypes.string,
|
|
115
130
|
fontWeight: PropTypes.oneOf(['regular', 'semibold', 'bold']),
|
|
131
|
+
isHighlighted: PropTypes.bool,
|
|
132
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
116
133
|
text: PropTypes.string
|
|
117
134
|
};
|
|
118
135
|
export const TicketId_propTypes = {
|
|
@@ -126,6 +143,8 @@ export const TicketId_propTypes = {
|
|
|
126
143
|
url: PropTypes.string,
|
|
127
144
|
urlData: PropTypes.string,
|
|
128
145
|
urlName: PropTypes.string,
|
|
146
|
+
isHighlighted: PropTypes.bool,
|
|
147
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
129
148
|
customProps: PropTypes.shape({
|
|
130
149
|
TicketIdProps: PropTypes.object,
|
|
131
150
|
LinkProps: PropTypes.object
|
|
@@ -138,5 +157,7 @@ export const Website_propTypes = {
|
|
|
138
157
|
isLink: PropTypes.bool,
|
|
139
158
|
target: PropTypes.string,
|
|
140
159
|
text: PropTypes.string,
|
|
160
|
+
isHighlighted: PropTypes.bool,
|
|
161
|
+
highlightData: typographyProps.$ui_highlightConfig,
|
|
141
162
|
title: PropTypes.string
|
|
142
163
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
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';
|
|
4
6
|
import Link from "../../Link/Link";
|
|
5
7
|
import { whiteSpaceClassMapping } from '@zohodesk/components/es/utils/cssUtils';
|
|
6
8
|
import style from "./Subject.module.css";
|
|
@@ -24,30 +26,44 @@ export default class Subject extends Component {
|
|
|
24
26
|
isDotted,
|
|
25
27
|
children,
|
|
26
28
|
customProps,
|
|
27
|
-
whiteSpace
|
|
29
|
+
whiteSpace,
|
|
30
|
+
isHighlighted,
|
|
31
|
+
highlightData
|
|
28
32
|
} = this.props;
|
|
29
33
|
let {
|
|
30
34
|
LinkProps = {},
|
|
31
35
|
TextProps = {}
|
|
32
36
|
} = customProps;
|
|
37
|
+
let tagAttributesText = { ...TextProps,
|
|
38
|
+
'data-title-wrap': whiteSpace
|
|
39
|
+
};
|
|
40
|
+
let linkTagAttributes = {
|
|
41
|
+
'data-title-wrap': whiteSpace
|
|
42
|
+
};
|
|
33
43
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
34
44
|
urlName: urlName,
|
|
35
45
|
href: href,
|
|
36
46
|
urlData: urlData,
|
|
37
47
|
onClick: onClick,
|
|
38
|
-
className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
|
|
39
|
-
dataId: dataId,
|
|
40
|
-
title: text,
|
|
41
48
|
target: target,
|
|
42
|
-
"data-title-wrap": whiteSpace,
|
|
43
49
|
...LinkProps
|
|
44
|
-
}, children ? children :
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
}, children ? children : /*#__PURE__*/React.createElement(Typography, {
|
|
51
|
+
$tagAttributes_text: linkTagAttributes,
|
|
52
|
+
$i18n_dataTitle: text,
|
|
53
|
+
$ui_className: `${style.subject} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style.cursorPointer}`,
|
|
54
|
+
customId: dataId,
|
|
55
|
+
$flag_dotted: isDotted,
|
|
56
|
+
$ui_weight: fontWeight,
|
|
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
|
|
51
67
|
}, text));
|
|
52
68
|
}
|
|
53
69
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Subject rendering the defult props 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
6
|
-
class="
|
|
5
|
+
<div
|
|
6
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
7
7
|
data-title-wrap="pre"
|
|
8
8
|
/>
|
|
9
9
|
</DocumentFragment>
|
|
@@ -11,8 +11,8 @@ exports[`Subject rendering the defult props 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
13
13
|
<DocumentFragment>
|
|
14
|
-
<
|
|
15
|
-
class="
|
|
14
|
+
<div
|
|
15
|
+
class="dotted font_regular subject whiteSpace_breakSpaces"
|
|
16
16
|
data-title-wrap="break-spaces"
|
|
17
17
|
/>
|
|
18
18
|
</DocumentFragment>
|
|
@@ -20,8 +20,8 @@ exports[`Subject rendering the whiteSpace of -break-spaces 1`] = `
|
|
|
20
20
|
|
|
21
21
|
exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
22
22
|
<DocumentFragment>
|
|
23
|
-
<
|
|
24
|
-
class="
|
|
23
|
+
<div
|
|
24
|
+
class="dotted font_regular subject whiteSpace_normal"
|
|
25
25
|
data-title-wrap="normal"
|
|
26
26
|
/>
|
|
27
27
|
</DocumentFragment>
|
|
@@ -29,8 +29,8 @@ exports[`Subject rendering the whiteSpace of -normal 1`] = `
|
|
|
29
29
|
|
|
30
30
|
exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
31
31
|
<DocumentFragment>
|
|
32
|
-
<
|
|
33
|
-
class="
|
|
32
|
+
<div
|
|
33
|
+
class="dotted font_regular subject whiteSpace_nowrap"
|
|
34
34
|
data-title-wrap="nowrap"
|
|
35
35
|
/>
|
|
36
36
|
</DocumentFragment>
|
|
@@ -38,8 +38,8 @@ exports[`Subject rendering the whiteSpace of -nowrap 1`] = `
|
|
|
38
38
|
|
|
39
39
|
exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
40
40
|
<DocumentFragment>
|
|
41
|
-
<
|
|
42
|
-
class="
|
|
41
|
+
<div
|
|
42
|
+
class="dotted font_regular subject whiteSpace_pre"
|
|
43
43
|
data-title-wrap="pre"
|
|
44
44
|
/>
|
|
45
45
|
</DocumentFragment>
|
|
@@ -47,8 +47,8 @@ exports[`Subject rendering the whiteSpace of -pre 1`] = `
|
|
|
47
47
|
|
|
48
48
|
exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
49
49
|
<DocumentFragment>
|
|
50
|
-
<
|
|
51
|
-
class="
|
|
50
|
+
<div
|
|
51
|
+
class="dotted font_regular subject whiteSpace_preLine"
|
|
52
52
|
data-title-wrap="pre-line"
|
|
53
53
|
/>
|
|
54
54
|
</DocumentFragment>
|
|
@@ -56,8 +56,8 @@ exports[`Subject rendering the whiteSpace of -pre-line 1`] = `
|
|
|
56
56
|
|
|
57
57
|
exports[`Subject rendering the whiteSpace of -pre-wrap 1`] = `
|
|
58
58
|
<DocumentFragment>
|
|
59
|
-
<
|
|
60
|
-
class="
|
|
59
|
+
<div
|
|
60
|
+
class="dotted font_regular subject whiteSpace_preWrap"
|
|
61
61
|
data-title-wrap="pre-wrap"
|
|
62
62
|
/>
|
|
63
63
|
</DocumentFragment>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { propTypes as typographyProps } from '@zohodesk/components/es/Typography/props/propTypes';
|
|
2
3
|
export const propTypes = {
|
|
3
4
|
className: PropTypes.string,
|
|
4
5
|
dataId: PropTypes.string,
|
|
@@ -16,5 +17,8 @@ export const propTypes = {
|
|
|
16
17
|
LinkProps: PropTypes.object,
|
|
17
18
|
TextProps: PropTypes.object
|
|
18
19
|
}),
|
|
19
|
-
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
20
|
+
whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']),
|
|
21
|
+
// Highlight props
|
|
22
|
+
isHighlighted: PropTypes.bool,
|
|
23
|
+
highlightData: typographyProps.$ui_highlightConfig
|
|
20
24
|
};
|
|
@@ -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>
|
|
@@ -15,6 +15,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
19
|
+
|
|
20
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
21
|
+
|
|
18
22
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
19
23
|
|
|
20
24
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -77,6 +81,8 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
77
81
|
secondaryAccountHref = _this$props.secondaryAccountHref,
|
|
78
82
|
secondaryAccountClick = _this$props.secondaryAccountClick,
|
|
79
83
|
secondaryAccountText = _this$props.secondaryAccountText,
|
|
84
|
+
highlightData = _this$props.highlightData,
|
|
85
|
+
isHighlighted = _this$props.isHighlighted,
|
|
80
86
|
customProps = _this$props.customProps;
|
|
81
87
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
82
88
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
@@ -109,17 +115,30 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
109
115
|
className: _SecondaryTextModule["default"].link
|
|
110
116
|
}, LinkProps, {
|
|
111
117
|
ariaLabel: "Account Name ".concat(text)
|
|
112
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
119
|
+
$tagAttributes_text: TextProps,
|
|
120
|
+
$ui_size: "12",
|
|
121
|
+
$flag_dotted: true,
|
|
122
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
123
|
+
$ui_weight: fontWeight,
|
|
124
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
125
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
126
|
+
$tagAttributes_text: TextProps,
|
|
127
|
+
$ui_size: "12",
|
|
128
|
+
$flag_dotted: true,
|
|
129
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
130
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
131
|
+
}, text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
117
132
|
href: secondaryAccountHref,
|
|
118
133
|
onClick: secondaryAccountClick,
|
|
119
134
|
className: _SecondaryTextModule["default"].link
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
136
|
+
$tagAttributes_text: SecondaryTextProps,
|
|
137
|
+
$ui_size: "12",
|
|
138
|
+
$flag_dotted: true,
|
|
139
|
+
$ui_weight: fontWeight,
|
|
140
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : '')
|
|
141
|
+
}, secondaryAccountText))))));
|
|
123
142
|
}
|
|
124
143
|
}]);
|
|
125
144
|
|
|
@@ -15,6 +15,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
19
|
+
|
|
20
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
21
|
+
|
|
18
22
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
19
23
|
|
|
20
24
|
var _SentimentStatus = _interopRequireDefault(require("../SentimentStatus/SentimentStatus"));
|
|
@@ -81,6 +85,8 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
81
85
|
notAccessible = _this$props$notAccess === void 0 ? false : _this$props$notAccess,
|
|
82
86
|
fontWeight = _this$props.fontWeight,
|
|
83
87
|
i18nKeys = _this$props.i18nKeys,
|
|
88
|
+
highlightData = _this$props.highlightData,
|
|
89
|
+
isHighlighted = _this$props.isHighlighted,
|
|
84
90
|
customProps = _this$props.customProps;
|
|
85
91
|
var _i18nKeys$sentimentTi = i18nKeys.sentimentTitles,
|
|
86
92
|
sentimentTitles = _i18nKeys$sentimentTi === void 0 ? {
|
|
@@ -119,12 +125,21 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
119
125
|
className: _SecondaryTextModule["default"].link
|
|
120
126
|
}, LinkProps, {
|
|
121
127
|
ariaLabel: "Contact Name ".concat(text)
|
|
122
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
129
|
+
$flag_dotted: true,
|
|
130
|
+
$ui_size: "12",
|
|
131
|
+
$ui_weight: fontWeight,
|
|
132
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
133
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
134
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
135
|
+
$tagAttributes_text: TextProps,
|
|
136
|
+
$ui_size: "12",
|
|
137
|
+
$flag_dotted: true,
|
|
138
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
139
|
+
$ui_weight: fontWeight,
|
|
140
|
+
$i18n_dataTitle: dataTitle,
|
|
141
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
142
|
+
}, text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
|
|
128
143
|
type: sentimentType,
|
|
129
144
|
dataTitle: sentimentDataTitle
|
|
130
145
|
})));
|
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = require("./props/propTypes");
|
|
13
13
|
|
|
14
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
15
|
+
|
|
16
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
17
|
+
|
|
14
18
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
15
19
|
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,12 +61,17 @@ var DepartmentText = /*#__PURE__*/function (_Component) {
|
|
|
57
61
|
className = _this$props.className,
|
|
58
62
|
text = _this$props.text,
|
|
59
63
|
dataTitle = _this$props.dataTitle,
|
|
60
|
-
dataId = _this$props.dataId
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
64
|
+
dataId = _this$props.dataId,
|
|
65
|
+
isHighlighted = _this$props.isHighlighted,
|
|
66
|
+
highlightData = _this$props.highlightData;
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
68
|
+
$ui_size: "12",
|
|
69
|
+
$flag_dotted: true,
|
|
70
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].departmentText, " ").concat(className ? className : ''),
|
|
71
|
+
$i18n_dataTitle: dataTitle,
|
|
72
|
+
customId: dataId,
|
|
73
|
+
testId: dataId,
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
66
75
|
}, text);
|
|
67
76
|
}
|
|
68
77
|
}]);
|