@zohodesk/dot 1.0.0-temp-218.1 → 1.0.0-temp-187.18

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 (51) hide show
  1. package/es/form/fields/Fields.module.css +4 -1
  2. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
  3. package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  4. package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
  5. package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
  6. package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
  7. package/es/list/SecondaryText/AccountName.js +2 -8
  8. package/es/list/SecondaryText/ContactName.js +2 -8
  9. package/es/list/SecondaryText/DepartmentText.js +2 -8
  10. package/es/list/SecondaryText/Email.js +3 -9
  11. package/es/list/SecondaryText/PhoneNumber.js +3 -9
  12. package/es/list/SecondaryText/PriorityText.js +2 -8
  13. package/es/list/SecondaryText/SecondaryText.js +2 -8
  14. package/es/list/SecondaryText/StatusText.js +2 -8
  15. package/es/list/SecondaryText/TicketId.js +2 -9
  16. package/es/list/SecondaryText/Website.js +3 -9
  17. package/es/list/SecondaryText/props/defaultProps.js +0 -18
  18. package/es/list/SecondaryText/props/propTypes.js +0 -20
  19. package/es/list/Subject/Subject.js +3 -9
  20. package/es/list/Subject/props/defaultProps.js +1 -3
  21. package/es/list/Subject/props/propTypes.js +1 -28
  22. package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
  23. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  24. package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
  25. package/es/list/status/StatusListItem/StatusListItem.module.css +6 -3
  26. package/lib/form/fields/Fields.module.css +4 -1
  27. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
  28. package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
  29. package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
  30. package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
  31. package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
  32. package/lib/list/SecondaryText/AccountName.js +2 -17
  33. package/lib/list/SecondaryText/ContactName.js +2 -17
  34. package/lib/list/SecondaryText/DepartmentText.js +2 -17
  35. package/lib/list/SecondaryText/Email.js +3 -18
  36. package/lib/list/SecondaryText/PhoneNumber.js +3 -18
  37. package/lib/list/SecondaryText/PriorityText.js +2 -17
  38. package/lib/list/SecondaryText/SecondaryText.js +2 -17
  39. package/lib/list/SecondaryText/StatusText.js +2 -17
  40. package/lib/list/SecondaryText/TicketId.js +2 -18
  41. package/lib/list/SecondaryText/Website.js +3 -18
  42. package/lib/list/SecondaryText/props/defaultProps.js +0 -18
  43. package/lib/list/SecondaryText/props/propTypes.js +0 -20
  44. package/lib/list/Subject/Subject.js +3 -18
  45. package/lib/list/Subject/props/defaultProps.js +1 -3
  46. package/lib/list/Subject/props/propTypes.js +1 -33
  47. package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
  48. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  49. package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
  50. package/lib/list/status/StatusListItem/StatusListItem.module.css +6 -3
  51. package/package.json +11 -11
@@ -226,7 +226,10 @@ position: relative;
226
226
  [dir=rtl] .rightPlaceholder{
227
227
  left:var(--zd_size15)
228
228
  }
229
-
230
229
  .phoneField{
231
230
  composes: ltr-zone from '~@zohodesk/components/es/common/common.module.css';
231
+ }
232
+
233
+ .lineClampPickListItem{
234
+ --line-clamp: var(--picklist-field-line-clamp,3);
232
235
  }
@@ -160,12 +160,14 @@ export default class TagsMultiSelect extends React.Component {
160
160
  let {
161
161
  tagCustomClass = '',
162
162
  listItemClass = '',
163
- textBoxIconWrapperClass = ''
163
+ textBoxIconWrapperClass = '',
164
+ dropBoxClass = ''
164
165
  } = customClass;
165
166
  const {
166
167
  TextBoxIconProps = {},
167
168
  TagWrapperProps = {},
168
- TagProps = {}
169
+ TagProps = {},
170
+ ListItemProps = {}
169
171
  } = customProps;
170
172
  const isEditable = !isReadOnly;
171
173
  return /*#__PURE__*/React.createElement("div", {
@@ -254,7 +256,8 @@ export default class TagsMultiSelect extends React.Component {
254
256
  boxPosition: boxPosition,
255
257
  isPadding: false,
256
258
  customClass: {
257
- customDropBoxWrap: style.dropdown
259
+ customDropBoxWrap: style.dropdown,
260
+ customDropBox: dropBoxClass
258
261
  },
259
262
  dataId: `${dataId}_dropbox`,
260
263
  isResponsivePadding: true,
@@ -286,7 +289,7 @@ export default class TagsMultiSelect extends React.Component {
286
289
  let {
287
290
  name,
288
291
  isNew,
289
- listItemProps
292
+ listProps
290
293
  } = item;
291
294
  return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, {
292
295
  key: index,
@@ -299,8 +302,9 @@ export default class TagsMultiSelect extends React.Component {
299
302
  highlight: selectSearchIndex === index,
300
303
  getRef: this.getSelectedItemRef,
301
304
  isDisabled: listDisabled,
302
- customProps: listItemProps,
303
- customClass: listItemClass
305
+ customProps: listProps,
306
+ customClass: listItemClass,
307
+ ...ListItemProps
304
308
  }, isNew ? /*#__PURE__*/React.createElement(Container, {
305
309
  alignBox: "row",
306
310
  align: "vertical"
@@ -52,7 +52,8 @@ export const propTypes = {
52
52
  customProps: PropTypes.shape({
53
53
  TextBoxIconProps: PropTypes.object,
54
54
  TagWrapperProps: PropTypes.object,
55
- TagProps: PropTypes.object
55
+ TagProps: PropTypes.object,
56
+ ListItemProps: PropTypes.object
56
57
  }),
57
58
  isFocus: PropTypes.bool
58
59
  };
@@ -48,15 +48,19 @@ class DepartmentDropDown extends Component {
48
48
  onSearch,
49
49
  needSearchFetching,
50
50
  searchStr,
51
- i18nKeys
51
+ i18nKeys,
52
+ customProps
52
53
  } = this.props;
54
+ const {
55
+ ToggleDropDownProps = {}
56
+ } = customProps;
53
57
  let {
54
58
  title = 'Move Department',
55
59
  searchEmptyText = 'No results found',
56
60
  searchErrorText = 'No results',
57
61
  placeholder = 'Search Department'
58
62
  } = i18nKeys;
59
- return /*#__PURE__*/React.createElement(ToggleDropDown, {
63
+ return /*#__PURE__*/React.createElement(ToggleDropDown, { ...ToggleDropDownProps,
60
64
  title: title,
61
65
  options: departmentList,
62
66
  value: /*#__PURE__*/React.createElement(DepartmentText, {
@@ -3,5 +3,6 @@ export const defaultProps = {
3
3
  isPopupActive: true,
4
4
  isNextOptions: false,
5
5
  searchStr: '',
6
- i18nKeys: {}
6
+ i18nKeys: {},
7
+ customProps: {}
7
8
  };
@@ -20,5 +20,8 @@ export const propTypes = {
20
20
  searchEmptyText: PropTypes.string,
21
21
  searchErrorText: PropTypes.string,
22
22
  placeholder: PropTypes.string
23
+ }),
24
+ customProps: PropTypes.shape({
25
+ ToggleDropDownProps: PropTypes.object
23
26
  })
24
27
  };
@@ -7,7 +7,6 @@ import { AccountName_propTypes } from "./props/propTypes";
7
7
  /**** Components ****/
8
8
 
9
9
  import { Container, Box } from '@zohodesk/components/es/Layout';
10
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
11
10
  import Link from "../../Link/Link";
12
11
  /**** CSS ****/
13
12
 
@@ -29,13 +28,8 @@ export default class AccountName extends Component {
29
28
  secondaryAccountHref,
30
29
  secondaryAccountClick,
31
30
  secondaryAccountText,
32
- highlights,
33
- enableHighlight,
34
31
  customProps
35
32
  } = this.props;
36
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
37
- text
38
- }) : text;
39
33
  let {
40
34
  LinkProps = {},
41
35
  TextProps = {},
@@ -68,10 +62,10 @@ export default class AccountName extends Component {
68
62
  ariaLabel: `Account Name ${text}`
69
63
  }, /*#__PURE__*/React.createElement("div", {
70
64
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
71
- }, displayContent)) : /*#__PURE__*/React.createElement("div", {
65
+ }, text)) : /*#__PURE__*/React.createElement("div", {
72
66
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
73
67
  ...TextProps
74
- }, displayContent)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
68
+ }, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
75
69
  href: secondaryAccountHref,
76
70
  onClick: secondaryAccountClick,
77
71
  className: style.link
@@ -2,7 +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 { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
6
5
  import Link from "../../Link/Link";
7
6
  import SentimentStatus from "../SentimentStatus/SentimentStatus";
8
7
  import { Icon } from '@zohodesk/icons';
@@ -24,8 +23,6 @@ export default class ContactName extends Component {
24
23
  notAccessible = false,
25
24
  fontWeight,
26
25
  i18nKeys,
27
- highlights,
28
- enableHighlight,
29
26
  customProps
30
27
  } = this.props;
31
28
  let {
@@ -41,9 +38,6 @@ export default class ContactName extends Component {
41
38
  LinkProps = {},
42
39
  TextProps = {}
43
40
  } = customProps;
44
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
45
- text
46
- }) : text;
47
41
  return /*#__PURE__*/React.createElement(Container, {
48
42
  alignBox: "row",
49
43
  align: "baseline",
@@ -70,11 +64,11 @@ export default class ContactName extends Component {
70
64
  ariaLabel: `Contact Name ${text}`
71
65
  }, /*#__PURE__*/React.createElement("div", {
72
66
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
73
- }, displayContent)) : /*#__PURE__*/React.createElement("div", {
67
+ }, text)) : /*#__PURE__*/React.createElement("div", {
74
68
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
75
69
  "data-title": dataTitle,
76
70
  ...TextProps
77
- }, displayContent)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
71
+ }, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
78
72
  type: sentimentType,
79
73
  dataTitle: sentimentDataTitle
80
74
  })));
@@ -1,6 +1,5 @@
1
1
  import React, { Component } from 'react';
2
2
  import { DepartmentText_propTypes } from "./props/propTypes";
3
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
4
3
  import style from "./SecondaryText.module.css";
5
4
  export default class DepartmentText extends Component {
6
5
  constructor(props) {
@@ -12,19 +11,14 @@ export default class DepartmentText extends Component {
12
11
  className,
13
12
  text,
14
13
  dataTitle,
15
- dataId,
16
- enableHighlight,
17
- highlights
14
+ dataId
18
15
  } = this.props;
19
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
20
- text
21
- }) : text;
22
16
  return /*#__PURE__*/React.createElement("div", {
23
17
  className: `${style.departmentText} ${className ? className : ''}`,
24
18
  "data-title": dataTitle,
25
19
  "data-id": dataId,
26
20
  "data-test-id": dataId
27
- }, displayContent);
21
+ }, text);
28
22
  }
29
23
 
30
24
  }
@@ -6,7 +6,6 @@ import { Email_defaultProps } from "./props/defaultProps";
6
6
  import { Email_propTypes } from "./props/propTypes";
7
7
  /**** Components ****/
8
8
 
9
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
10
9
  import Link from "../../Link/Link";
11
10
  /**** CSS ****/
12
11
 
@@ -23,17 +22,12 @@ export default class Email extends Component {
23
22
  isLink,
24
23
  target,
25
24
  fontWeight,
26
- customProps,
27
- enableHighlight,
28
- highlights
25
+ customProps
29
26
  } = this.props;
30
27
  let {
31
28
  LinkProps = {},
32
29
  TextProps = {}
33
30
  } = customProps;
34
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
35
- text
36
- }) : text;
37
31
  return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
38
32
  href: href,
39
33
  title: title,
@@ -44,11 +38,11 @@ export default class Email extends Component {
44
38
  ...LinkProps
45
39
  }, /*#__PURE__*/React.createElement("div", {
46
40
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
47
- }, displayContent)) : /*#__PURE__*/React.createElement("div", {
41
+ }, text)) : /*#__PURE__*/React.createElement("div", {
48
42
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
49
43
  "data-title": title,
50
44
  ...TextProps
51
- }, displayContent));
45
+ }, text));
52
46
  }
53
47
 
54
48
  }
@@ -6,7 +6,6 @@ import { PhoneNumber_defaultProps } from "./props/defaultProps";
6
6
  import { PhoneNumber_propTypes } from "./props/propTypes";
7
7
  /**** Components ****/
8
8
 
9
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
10
9
  import Link from "../../Link/Link";
11
10
  /**** CSS ****/
12
11
 
@@ -25,17 +24,12 @@ export default class PhoneNumber extends Component {
25
24
  target,
26
25
  hasReload,
27
26
  fontWeight,
28
- customProps,
29
- enableHighlight,
30
- highlights
27
+ customProps
31
28
  } = this.props;
32
29
  let {
33
30
  LinkProps = {},
34
31
  TextProps = {}
35
32
  } = customProps;
36
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
37
- text
38
- }) : text;
39
33
  return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
40
34
  href: href,
41
35
  title: title,
@@ -48,11 +42,11 @@ export default class PhoneNumber extends Component {
48
42
  ...LinkProps
49
43
  }, /*#__PURE__*/React.createElement("div", {
50
44
  className: `${style.phoneNumber} ${style.phonetxt} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
51
- }, displayContent)) : /*#__PURE__*/React.createElement("div", {
45
+ }, text)) : /*#__PURE__*/React.createElement("div", {
52
46
  className: `${style.secondaryText} ${style.phonetxt} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
53
47
  "data-title": title,
54
48
  ...TextProps
55
- }, displayContent));
49
+ }, text));
56
50
  }
57
51
 
58
52
  }
@@ -1,7 +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 { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
5
4
  import style from "./SecondaryText.module.css";
6
5
  export default class PriorityText extends Component {
7
6
  constructor(props) {
@@ -14,19 +13,14 @@ export default class PriorityText extends Component {
14
13
  color,
15
14
  text,
16
15
  dataTitle,
17
- dataId,
18
- enableHighlight,
19
- highlights
16
+ dataId
20
17
  } = this.props;
21
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
22
- text
23
- }) : text;
24
18
  return /*#__PURE__*/React.createElement("div", {
25
19
  className: `${style.priorityText} ${style[color]} ${className ? className : ''}`,
26
20
  "data-title": dataTitle,
27
21
  "data-id": dataId,
28
22
  "data-test-id": dataId
29
- }, displayContent);
23
+ }, text);
30
24
  }
31
25
 
32
26
  }
@@ -1,7 +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 { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
5
4
  import style from "./SecondaryText.module.css";
6
5
  export default class SecondaryText extends Component {
7
6
  constructor(props) {
@@ -15,16 +14,11 @@ export default class SecondaryText extends Component {
15
14
  dataTitle,
16
15
  dataId,
17
16
  onClick,
18
- customProps,
19
- enableHighlight,
20
- highlights
17
+ customProps
21
18
  } = this.props;
22
19
  let {
23
20
  SecondaryTextProps
24
21
  } = customProps;
25
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
26
- text
27
- }) : text;
28
22
  return /*#__PURE__*/React.createElement("div", {
29
23
  className: `${style.secondaryText} ${className ? className : ''}`,
30
24
  "data-title": dataTitle,
@@ -32,7 +26,7 @@ export default class SecondaryText extends Component {
32
26
  "data-test-id": dataId,
33
27
  onClick: onClick,
34
28
  ...SecondaryTextProps
35
- }, displayContent);
29
+ }, text);
36
30
  }
37
31
 
38
32
  }
@@ -1,7 +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 { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
5
4
  import style from "./SecondaryText.module.css";
6
5
  export default class StatusText extends Component {
7
6
  constructor(props) {
@@ -15,19 +14,14 @@ export default class StatusText extends Component {
15
14
  text,
16
15
  dataTitle,
17
16
  fontWeight,
18
- dataId,
19
- enableHighlight,
20
- highlights
17
+ dataId
21
18
  } = this.props;
22
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
23
- text
24
- }) : text;
25
19
  return /*#__PURE__*/React.createElement("div", {
26
20
  className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
27
21
  "data-title": dataTitle,
28
22
  "data-id": dataId,
29
23
  "data-test-id": dataId
30
- }, displayContent);
24
+ }, text);
31
25
  }
32
26
 
33
27
  }
@@ -2,7 +2,6 @@ import React, { Component } from 'react';
2
2
  import { TicketId_defaultProps } from "./props/defaultProps";
3
3
  import { TicketId_propTypes } from "./props/propTypes";
4
4
  import Link from "../../Link/Link";
5
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
6
5
  import style from "./SecondaryText.module.css";
7
6
  export default class TicketId extends Component {
8
7
  constructor(props) {
@@ -21,18 +20,12 @@ export default class TicketId extends Component {
21
20
  target,
22
21
  urlName,
23
22
  urlData,
24
- customProps,
25
- enableHighlight,
26
- highlights
23
+ customProps
27
24
  } = this.props;
28
25
  let {
29
26
  LinkProps = {},
30
27
  TicketIdProps = {}
31
28
  } = customProps;
32
- const processedText = enableHighlight && highlights?.data && highlights?.data?.length > 0 && typeof text === 'string' ? highlightText({ ...highlights,
33
- text
34
- }) : text;
35
- const textContent = Array.isArray(processedText) ? /*#__PURE__*/React.createElement(React.Fragment, null, processedText) : processedText;
36
29
  return /*#__PURE__*/React.createElement("div", {
37
30
  className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
38
31
  "data-id": dataId,
@@ -47,7 +40,7 @@ export default class TicketId extends Component {
47
40
  target: target,
48
41
  onClick: onClick,
49
42
  ...LinkProps
50
- }, textContent) : textContent);
43
+ }, text) : text);
51
44
  }
52
45
 
53
46
  }
@@ -6,7 +6,6 @@ import { Website_defaultProps } from "./props/defaultProps";
6
6
  import { Website_propTypes } from "./props/propTypes";
7
7
  /**** Components ****/
8
8
 
9
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
10
9
  import ExternalLink from "../../ExternalLink/ExternalLink";
11
10
  /**** CSS ****/
12
11
 
@@ -20,23 +19,18 @@ export default class Website extends Component {
20
19
  href,
21
20
  dataId,
22
21
  isLink,
23
- target,
24
- enableHighlight,
25
- highlights
22
+ target
26
23
  } = this.props;
27
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
28
- text
29
- }) : text;
30
24
  return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(ExternalLink, {
31
25
  className: `${style.textStyle} ${className ? className : ''}`,
32
26
  href: href,
33
27
  title: title,
34
28
  dataId: dataId,
35
29
  target: target
36
- }, displayContent) : /*#__PURE__*/React.createElement("div", {
30
+ }, text) : /*#__PURE__*/React.createElement("div", {
37
31
  className: `${style.secondaryText} ${className ? className : ''}`,
38
32
  "data-title": text
39
- }, displayContent));
33
+ }, text));
40
34
  }
41
35
 
42
36
  }
@@ -2,8 +2,6 @@ export const AccountName_defaultProps = {
2
2
  isLink: true,
3
3
  dataId: 'accountName',
4
4
  fontWeight: 'regular',
5
- enableHighlight: false,
6
- highlights: {},
7
5
  customProps: {}
8
6
  };
9
7
  export const ContactName_defaultProps = {
@@ -12,51 +10,35 @@ export const ContactName_defaultProps = {
12
10
  dataId: 'contactName',
13
11
  fontWeight: 'regular',
14
12
  i18nKeys: {},
15
- enableHighlight: false,
16
- highlights: {},
17
13
  customProps: {}
18
14
  };
19
15
  export const Email_defaultProps = {
20
16
  isLink: true,
21
17
  fontWeight: 'regular',
22
- enableHighlight: false,
23
- highlights: {},
24
18
  customProps: {}
25
19
  };
26
20
  export const PhoneNumber_defaultProps = {
27
21
  isLink: true,
28
22
  hasReload: false,
29
23
  fontWeight: 'regular',
30
- enableHighlight: false,
31
- highlights: {},
32
24
  customProps: {}
33
25
  };
34
26
  export const PriorityText_defaultProps = {
35
27
  color: 'black',
36
- enableHighlight: false,
37
- highlights: {},
38
28
  dataId: 'priority'
39
29
  };
40
30
  export const SecondaryText_defaultProps = {
41
- enableHighlight: false,
42
- highlights: {},
43
31
  customProps: {}
44
32
  };
45
33
  export const StatusText_defaultProps = {
46
34
  color: 'black',
47
35
  dataId: 'statusContainer',
48
- enableHighlight: false,
49
- highlights: {},
50
36
  fontWeight: 'regular'
51
37
  };
52
38
  export const TicketId_defaultProps = {
53
39
  dataId: 'ticketId',
54
- enableHighlight: false,
55
- highlights: {},
56
40
  customProps: {}
57
41
  };
58
42
  export const Website_defaultProps = {
59
- enableHighlight: false,
60
- highlights: {},
61
43
  isLink: true
62
44
  };
@@ -14,8 +14,6 @@ export const AccountName_propTypes = {
14
14
  secondaryAccountHref: PropTypes.string,
15
15
  secondaryAccountClick: PropTypes.func,
16
16
  secondaryAccountText: PropTypes.string,
17
- enableHighlight: PropTypes.bool,
18
- highlights: PropTypes.object,
19
17
  customProps: PropTypes.shape({
20
18
  LinkProps: PropTypes.object,
21
19
  TextProps: PropTypes.object,
@@ -44,8 +42,6 @@ export const ContactName_propTypes = {
44
42
  }),
45
43
  paidTitle: PropTypes.string
46
44
  }),
47
- enableHighlight: PropTypes.bool,
48
- highlights: PropTypes.object,
49
45
  customProps: PropTypes.shape({
50
46
  LinkProps: PropTypes.object,
51
47
  TextProps: PropTypes.object
@@ -55,8 +51,6 @@ export const DepartmentText_propTypes = {
55
51
  className: PropTypes.string,
56
52
  dataId: PropTypes.string,
57
53
  dataTitle: PropTypes.string,
58
- enableHighlight: PropTypes.bool,
59
- highlights: PropTypes.object,
60
54
  text: PropTypes.string
61
55
  };
62
56
  export const Email_propTypes = {
@@ -69,8 +63,6 @@ export const Email_propTypes = {
69
63
  title: PropTypes.string,
70
64
  urlData: PropTypes.object,
71
65
  urlName: PropTypes.string,
72
- enableHighlight: PropTypes.bool,
73
- highlights: PropTypes.object,
74
66
  customProps: PropTypes.shape({
75
67
  LinkProps: PropTypes.object,
76
68
  TextProps: PropTypes.object
@@ -93,8 +85,6 @@ export const PhoneNumber_propTypes = {
93
85
  title: PropTypes.string,
94
86
  urlData: PropTypes.object,
95
87
  urlName: PropTypes.string,
96
- enableHighlight: PropTypes.bool,
97
- highlights: PropTypes.object,
98
88
  customProps: PropTypes.shape({
99
89
  LinkProps: PropTypes.object,
100
90
  TextProps: PropTypes.object
@@ -105,8 +95,6 @@ export const PriorityText_propTypes = {
105
95
  color: PropTypes.oneOf(['red', 'green', 'gray', 'orange']),
106
96
  dataId: PropTypes.string,
107
97
  dataTitle: PropTypes.string,
108
- enableHighlight: PropTypes.bool,
109
- highlights: PropTypes.object,
110
98
  text: PropTypes.string
111
99
  };
112
100
  export const SecondaryText_propTypes = {
@@ -115,8 +103,6 @@ export const SecondaryText_propTypes = {
115
103
  dataTitle: PropTypes.string,
116
104
  onClick: PropTypes.func,
117
105
  text: PropTypes.string,
118
- enableHighlight: PropTypes.bool,
119
- highlights: PropTypes.object,
120
106
  customProps: PropTypes.shape({
121
107
  SecondaryTextProps: PropTypes.object
122
108
  })
@@ -127,8 +113,6 @@ export const StatusText_propTypes = {
127
113
  dataId: PropTypes.string,
128
114
  dataTitle: PropTypes.string,
129
115
  fontWeight: PropTypes.oneOf(['regular', 'semibold', 'bold']),
130
- enableHighlight: PropTypes.bool,
131
- highlights: PropTypes.object,
132
116
  text: PropTypes.string
133
117
  };
134
118
  export const TicketId_propTypes = {
@@ -142,8 +126,6 @@ export const TicketId_propTypes = {
142
126
  url: PropTypes.string,
143
127
  urlData: PropTypes.string,
144
128
  urlName: PropTypes.string,
145
- enableHighlight: PropTypes.bool,
146
- highlights: PropTypes.object,
147
129
  customProps: PropTypes.shape({
148
130
  TicketIdProps: PropTypes.object,
149
131
  LinkProps: PropTypes.object
@@ -156,7 +138,5 @@ export const Website_propTypes = {
156
138
  isLink: PropTypes.bool,
157
139
  target: PropTypes.string,
158
140
  text: PropTypes.string,
159
- enableHighlight: PropTypes.bool,
160
- highlights: PropTypes.object,
161
141
  title: PropTypes.string
162
142
  };
@@ -3,7 +3,6 @@ import { defaultProps } from "./props/defaultProps";
3
3
  import { propTypes } from "./props/propTypes";
4
4
  import Link from "../../Link/Link";
5
5
  import { whiteSpaceClassMapping } from '@zohodesk/components/es/utils/cssUtils';
6
- import { highlightText } from '@zohodesk/components/es/Typography/utils/textHighlighter';
7
6
  import style from "./Subject.module.css";
8
7
  export default class Subject extends Component {
9
8
  constructor(props) {
@@ -25,17 +24,12 @@ export default class Subject extends Component {
25
24
  isDotted,
26
25
  children,
27
26
  customProps,
28
- whiteSpace,
29
- enableHighlight,
30
- highlights
27
+ whiteSpace
31
28
  } = this.props;
32
29
  let {
33
30
  LinkProps = {},
34
31
  TextProps = {}
35
32
  } = customProps;
36
- const displayContent = enableHighlight && highlights?.data && highlights?.data?.length > 0 && text ? highlightText({ ...highlights,
37
- text
38
- }) : children ? children : text;
39
33
  return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
40
34
  urlName: urlName,
41
35
  href: href,
@@ -47,14 +41,14 @@ export default class Subject extends Component {
47
41
  target: target,
48
42
  "data-title-wrap": whiteSpace,
49
43
  ...LinkProps
50
- }, displayContent) : /*#__PURE__*/React.createElement("span", {
44
+ }, children ? children : text) : /*#__PURE__*/React.createElement("span", {
51
45
  className: `${style.subject} ${isDotted ? style.dotted : ''} ${whiteSpaceClassMapping[whiteSpace]} ${className} ${style[`font_${fontWeight}`]}`,
52
46
  "data-title": text,
53
47
  "data-id": dataId,
54
48
  "data-test-id": dataId,
55
49
  "data-title-wrap": whiteSpace,
56
50
  ...TextProps
57
- }, displayContent));
51
+ }, text));
58
52
  }
59
53
 
60
54
  }
@@ -4,7 +4,5 @@ export const defaultProps = {
4
4
  className: '',
5
5
  isDotted: true,
6
6
  customProps: {},
7
- whiteSpace: 'pre',
8
- enableHighlight: false,
9
- highlights: {}
7
+ whiteSpace: 'pre'
10
8
  };