@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.
Files changed (58) hide show
  1. package/README.md +5 -0
  2. package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
  3. package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
  4. package/es/list/SecondaryText/AccountName.js +23 -8
  5. package/es/list/SecondaryText/ContactName.js +18 -6
  6. package/es/list/SecondaryText/DepartmentText.js +13 -6
  7. package/es/list/SecondaryText/Email.js +19 -7
  8. package/es/list/SecondaryText/PhoneNumber.js +19 -7
  9. package/es/list/SecondaryText/PriorityText.js +13 -6
  10. package/es/list/SecondaryText/SecondaryText.js +17 -8
  11. package/es/list/SecondaryText/SecondaryText.module.css +40 -24
  12. package/es/list/SecondaryText/StatusText.js +13 -6
  13. package/es/list/SecondaryText/TicketId.js +8 -2
  14. package/es/list/SecondaryText/Website.js +16 -5
  15. package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
  16. package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
  17. package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
  18. package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
  19. package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
  20. package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
  21. package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
  22. package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
  23. package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
  24. package/es/list/SecondaryText/props/defaultProps.js +18 -0
  25. package/es/list/SecondaryText/props/propTypes.js +21 -0
  26. package/es/list/Subject/Subject.js +28 -12
  27. package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
  28. package/es/list/Subject/props/defaultProps.js +3 -1
  29. package/es/list/Subject/props/propTypes.js +5 -1
  30. package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
  31. package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
  32. package/lib/list/SecondaryText/AccountName.js +27 -8
  33. package/lib/list/SecondaryText/ContactName.js +21 -6
  34. package/lib/list/SecondaryText/DepartmentText.js +15 -6
  35. package/lib/list/SecondaryText/Email.js +22 -7
  36. package/lib/list/SecondaryText/PhoneNumber.js +22 -7
  37. package/lib/list/SecondaryText/PriorityText.js +15 -6
  38. package/lib/list/SecondaryText/SecondaryText.js +26 -8
  39. package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
  40. package/lib/list/SecondaryText/StatusText.js +15 -6
  41. package/lib/list/SecondaryText/TicketId.js +10 -2
  42. package/lib/list/SecondaryText/Website.js +18 -5
  43. package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
  44. package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
  45. package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
  46. package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
  47. package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
  48. package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
  49. package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
  50. package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
  51. package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
  52. package/lib/list/SecondaryText/props/defaultProps.js +18 -0
  53. package/lib/list/SecondaryText/props/propTypes.js +22 -0
  54. package/lib/list/Subject/Subject.js +40 -13
  55. package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
  56. package/lib/list/Subject/props/defaultProps.js +3 -1
  57. package/lib/list/Subject/props/propTypes.js +6 -1
  58. package/package.json +3 -3
@@ -35,7 +35,7 @@ exports[`AccountName rendering the defult props 1`] = `
35
35
  rel="noopener noreferrer"
36
36
  >
37
37
  <div
38
- class="textStyle font_regular "
38
+ class="dotted size12 font_regular linkWithText "
39
39
  />
40
40
  </a>
41
41
  </div>
@@ -23,7 +23,7 @@ exports[`ContactName rendering the defult props 1`] = `
23
23
  rel="noopener noreferrer"
24
24
  >
25
25
  <div
26
- class="textStyle font_regular "
26
+ class="dotted size12 font_regular linkWithText "
27
27
  />
28
28
  </a>
29
29
  </div>
@@ -3,7 +3,7 @@
3
3
  exports[`DepartmentText rendering the defult props 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="departmentText "
6
+ class="dotted size12 departmentText "
7
7
  />
8
8
  </DocumentFragment>
9
9
  `;
@@ -8,7 +8,7 @@ exports[`Email rendering the defult props 1`] = `
8
8
  rel="noopener noreferrer"
9
9
  >
10
10
  <div
11
- class="textStyle font_regular "
11
+ class="dotted size12 font_regular linkWithText "
12
12
  />
13
13
  </a>
14
14
  </DocumentFragment>
@@ -8,7 +8,7 @@ exports[`PhoneNumber rendering the defult props 1`] = `
8
8
  rel="noopener noreferrer"
9
9
  >
10
10
  <div
11
- class="phoneNumber phonetxt font_regular "
11
+ class="dotted size12 font_regular phoneNumber phonetxt "
12
12
  />
13
13
  </a>
14
14
  </DocumentFragment>
@@ -3,7 +3,7 @@
3
3
  exports[`PriorityText rendering the defult props 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="priorityText black "
6
+ class="dotted size12 priorityText black "
7
7
  data-id="priority"
8
8
  data-test-id="priority"
9
9
  />
@@ -3,7 +3,7 @@
3
3
  exports[`SecondaryText rendering the defult props 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="secondaryText "
6
+ class="dotted size12 secondaryText "
7
7
  />
8
8
  </DocumentFragment>
9
9
  `;
@@ -3,7 +3,7 @@
3
3
  exports[`StatusText rendering the defult props 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="statusText black font_regular "
6
+ class="dotted font_regular black "
7
7
  data-id="statusContainer"
8
8
  data-test-id="statusContainer"
9
9
  />
@@ -3,10 +3,14 @@
3
3
  exports[`Website rendering the defult props 1`] = `
4
4
  <DocumentFragment>
5
5
  <a
6
- class="link textStyle "
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 : text) : /*#__PURE__*/React.createElement("span", {
45
- className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]}`,
46
- "data-title": text,
47
- "data-id": dataId,
48
- "data-test-id": dataId,
49
- "data-title-wrap": whiteSpace,
50
- ...TextProps
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
- <span
6
- class="subject dotted whiteSpace_pre font_regular"
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
- <span
15
- class="subject dotted whiteSpace_breakSpaces font_regular"
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
- <span
24
- class="subject dotted whiteSpace_normal font_regular"
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
- <span
33
- class="subject dotted whiteSpace_nowrap font_regular"
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
- <span
42
- class="subject dotted whiteSpace_pre font_regular"
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
- <span
51
- class="subject dotted whiteSpace_preLine font_regular"
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
- <span
60
- class="subject dotted whiteSpace_preWrap font_regular"
59
+ <div
60
+ class="dotted font_regular subject whiteSpace_preWrap"
61
61
  data-title-wrap="pre-wrap"
62
62
  />
63
63
  </DocumentFragment>
@@ -4,5 +4,7 @@ export const defaultProps = {
4
4
  className: '',
5
5
  isDotted: true,
6
6
  customProps: {},
7
- whiteSpace: 'pre'
7
+ whiteSpace: 'pre',
8
+ isHighlighted: false,
9
+ highlightData: {}
8
10
  };
@@ -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
- <label
77
- class="label title medium default font_primary
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="label"
79
+ data-selector-id="undefined_label"
81
80
  data-test-id="undefined_label"
82
81
  >
83
- Label
84
- </label>
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
- <label
168
- class="label title medium default font_primary
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="label"
171
+ data-selector-id="undefined_label"
172
172
  data-test-id="undefined_label"
173
173
  >
174
- Label
175
- </label>
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
- <label
259
- class="label title medium default font_primary
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="label"
263
+ data-selector-id="undefined_label"
263
264
  data-test-id="undefined_label"
264
265
  >
265
- Label
266
- </label>
266
+ <label
267
+ class="size14 font_semibold label"
268
+ />
269
+ </div>
267
270
  </div>
268
271
  </div>
269
272
  </div>
@@ -30,7 +30,7 @@ exports[`DepartmentDropDown rendering the defult props 1`] = `
30
30
  id="1"
31
31
  >
32
32
  <div
33
- class="departmentText "
33
+ class="dotted size12 departmentText "
34
34
  />
35
35
  </span>
36
36
  <i
@@ -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("div", {
113
- className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
114
- }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
115
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : '')
116
- }, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
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("div", _extends({
121
- className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
122
- }, SecondaryTextProps), secondaryAccountText))))));
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("div", {
123
- className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
124
- }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
125
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
126
- "data-title": dataTitle
127
- }, TextProps), text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
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
- return /*#__PURE__*/_react["default"].createElement("div", {
62
- className: "".concat(_SecondaryTextModule["default"].departmentText, " ").concat(className ? className : ''),
63
- "data-title": dataTitle,
64
- "data-id": dataId,
65
- "data-test-id": dataId
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
  }]);