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

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 (57) hide show
  1. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +315 -315
  2. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +15 -15
  3. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +15 -15
  4. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +15 -15
  5. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +15 -15
  6. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +15 -15
  7. package/assets/Appearance/light/mode/Dot_LightMode.module.css +307 -307
  8. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +15 -15
  9. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +15 -15
  10. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +15 -15
  11. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +15 -15
  12. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +15 -15
  13. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +317 -317
  14. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +15 -15
  15. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +15 -15
  16. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +15 -15
  17. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +15 -15
  18. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +15 -15
  19. package/es/common/dot_boxShadow.module.css +1 -2
  20. package/es/form/fields/TextEditor/TextEditor.js +3 -2
  21. package/es/form/fields/TextEditor/props/defaultProps.js +2 -1
  22. package/es/form/fields/TextEditor/props/propTypes.js +2 -1
  23. package/es/list/SecondaryText/AccountName.js +2 -8
  24. package/es/list/SecondaryText/ContactName.js +2 -8
  25. package/es/list/SecondaryText/DepartmentText.js +2 -8
  26. package/es/list/SecondaryText/Email.js +3 -9
  27. package/es/list/SecondaryText/PhoneNumber.js +3 -9
  28. package/es/list/SecondaryText/PriorityText.js +2 -8
  29. package/es/list/SecondaryText/SecondaryText.js +2 -8
  30. package/es/list/SecondaryText/StatusText.js +2 -8
  31. package/es/list/SecondaryText/TicketId.js +2 -9
  32. package/es/list/SecondaryText/Website.js +3 -9
  33. package/es/list/SecondaryText/props/defaultProps.js +0 -18
  34. package/es/list/SecondaryText/props/propTypes.js +0 -20
  35. package/es/list/Subject/Subject.js +3 -9
  36. package/es/list/Subject/props/defaultProps.js +1 -3
  37. package/es/list/Subject/props/propTypes.js +1 -28
  38. package/lib/common/dot_boxShadow.module.css +1 -2
  39. package/lib/form/fields/TextEditor/TextEditor.js +3 -2
  40. package/lib/form/fields/TextEditor/props/defaultProps.js +2 -1
  41. package/lib/form/fields/TextEditor/props/propTypes.js +2 -1
  42. package/lib/list/SecondaryText/AccountName.js +2 -17
  43. package/lib/list/SecondaryText/ContactName.js +2 -17
  44. package/lib/list/SecondaryText/DepartmentText.js +2 -17
  45. package/lib/list/SecondaryText/Email.js +3 -18
  46. package/lib/list/SecondaryText/PhoneNumber.js +3 -18
  47. package/lib/list/SecondaryText/PriorityText.js +2 -17
  48. package/lib/list/SecondaryText/SecondaryText.js +2 -17
  49. package/lib/list/SecondaryText/StatusText.js +2 -17
  50. package/lib/list/SecondaryText/TicketId.js +2 -18
  51. package/lib/list/SecondaryText/Website.js +3 -18
  52. package/lib/list/SecondaryText/props/defaultProps.js +0 -18
  53. package/lib/list/SecondaryText/props/propTypes.js +0 -20
  54. package/lib/list/Subject/Subject.js +3 -18
  55. package/lib/list/Subject/props/defaultProps.js +1 -3
  56. package/lib/list/Subject/props/propTypes.js +1 -33
  57. package/package.json +12 -12
@@ -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
  };
@@ -1,20 +1,4 @@
1
1
  import PropTypes from 'prop-types';
2
- const highlightsStyleShape = PropTypes.shape({
3
- weight: PropTypes.oneOf(['regular', 'light', 'semibold', 'bold']),
4
- transform: PropTypes.oneOf(['default', 'upper', 'lower', 'capital']),
5
- decoration: PropTypes.oneOf(['default', 'underline', 'strike', 'overline']),
6
- typeFace: PropTypes.oneOf(['normal', 'italic']),
7
- customClass: PropTypes.object
8
- });
9
- const commonHighlightProps = {
10
- customStyle: PropTypes.object,
11
- isExcludedIndex: PropTypes.bool,
12
- isCaseSensitive: PropTypes.bool,
13
- isWholeWord: PropTypes.bool,
14
- tagName: PropTypes.string,
15
- render: PropTypes.element,
16
- highlightsStyle: PropTypes.objectOf(highlightsStyleShape)
17
- };
18
2
  export const propTypes = {
19
3
  className: PropTypes.string,
20
4
  dataId: PropTypes.string,
@@ -32,16 +16,5 @@ export const propTypes = {
32
16
  LinkProps: PropTypes.object,
33
17
  TextProps: PropTypes.object
34
18
  }),
35
- whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']),
36
- // Highlight props
37
- enableHighlight: PropTypes.bool,
38
- highlights: PropTypes.objectOf(PropTypes.shape({
39
- text: PropTypes.string,
40
- highlightData: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
41
- highlightText: PropTypes.string,
42
- index: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
43
- ...commonHighlightProps
44
- })])),
45
- ...commonHighlightProps
46
- }))
19
+ whiteSpace: PropTypes.oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
47
20
  };
@@ -37,8 +37,7 @@
37
37
  --zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
38
38
 
39
39
  /* onboarding */
40
- --zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px rgba(0, 0, 0, 0.09));
40
+ --zd_bs_onboarding_close_icon: var(--zd_bs_contrast_outline, 0px 2px 15px var(--zd-shadow-saturation, rgba(0, 0, 0, 0.09)));
41
41
  --zd_bs_onboarding_gradient: var(--zd_bs_contrast_outline, 0px 20px 30px 0px var(--zdt_onboarding_bg_box_shadow));
42
42
  --zd_bs_onboarding_primary_button: var(--zd_bs_contrast_outline, 0px 4px 20px 0px var(--zdt_onboarding_primary_button_shadow));
43
-
44
43
  }
@@ -427,13 +427,14 @@ var TextEditor = /*#__PURE__*/function (_Component) {
427
427
  isNightMode = _this$props9.isNightMode,
428
428
  isReadOnly = _this$props9.isReadOnly,
429
429
  dataSelectorId = _this$props9.dataSelectorId,
430
- isDisabled = _this$props9.isDisabled;
430
+ isDisabled = _this$props9.isDisabled,
431
+ customClass = _this$props9.customClass;
431
432
  var _this$state = this.state,
432
433
  isEditorLoad = _this$state.isEditorLoad,
433
434
  isEditorShow = _this$state.isEditorShow;
434
435
  var editorDoc = ImgLazyLoad && global.editor && global.editor[id] ? global.editor[id].doc : null;
435
436
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
436
- className: "".concat(_TextEditorModule["default"].textEditor, " ").concat(_TextEditorModule["default"][type], " ").concat(_TextEditorModule["default"][border], "\n ").concat(isNightMode ? _TextEditorModule["default"].night : _TextEditorModule["default"].light, " ").concat(isReadOnly ? _TextEditorModule["default"].readOnly : '', " ").concat(isDisabled ? _TextEditorModule["default"].disable : '', " ").concat(!isEditorShow ? _TextEditorModule["default"].editorHide : ''),
437
+ className: "".concat(_TextEditorModule["default"].textEditor, " ").concat(_TextEditorModule["default"][type], " ").concat(_TextEditorModule["default"][border], "\n ").concat(isNightMode ? _TextEditorModule["default"].night : _TextEditorModule["default"].light, " ").concat(isReadOnly ? _TextEditorModule["default"].readOnly : '', " ").concat(isDisabled ? _TextEditorModule["default"].disable : '', " ").concat(!isEditorShow ? _TextEditorModule["default"].editorHide : '', " ").concat(customClass),
437
438
  dataId: dataId,
438
439
  "data-isEditor": true,
439
440
  dataSelectorId: dataSelectorId
@@ -18,6 +18,7 @@ var defaultProps = {
18
18
  dataSelectorId: 'textEditor',
19
19
  customCSS: '',
20
20
  isDisabled: false,
21
- inlineImageProps: {}
21
+ inlineImageProps: {},
22
+ customClass: ''
22
23
  };
23
24
  exports.defaultProps = defaultProps;
@@ -59,6 +59,7 @@ var propTypes = {
59
59
  allowedFileExtensions: _propTypes["default"].array,
60
60
  fileNameMaxCharacters: _propTypes["default"].number,
61
61
  fileSizeMaxBytes: _propTypes["default"].number
62
- })
62
+ }),
63
+ customClass: _propTypes["default"].string
63
64
  };
64
65
  exports.propTypes = propTypes;
@@ -15,8 +15,6 @@ var _propTypes = require("./props/propTypes");
15
15
 
16
16
  var _Layout = require("@zohodesk/components/es/Layout");
17
17
 
18
- var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
19
-
20
18
  var _Link = _interopRequireDefault(require("../../Link/Link"));
21
19
 
22
20
  var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
@@ -29,12 +27,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
29
27
 
30
28
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
29
 
32
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
33
-
34
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
35
-
36
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
-
38
30
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
39
31
 
40
32
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -69,8 +61,6 @@ var AccountName = /*#__PURE__*/function (_Component) {
69
61
  _createClass(AccountName, [{
70
62
  key: "render",
71
63
  value: function render() {
72
- var _highlights$data;
73
-
74
64
  var _this$props = this.props,
75
65
  dataTitle = _this$props.dataTitle,
76
66
  dataId = _this$props.dataId,
@@ -87,12 +77,7 @@ var AccountName = /*#__PURE__*/function (_Component) {
87
77
  secondaryAccountHref = _this$props.secondaryAccountHref,
88
78
  secondaryAccountClick = _this$props.secondaryAccountClick,
89
79
  secondaryAccountText = _this$props.secondaryAccountText,
90
- highlights = _this$props.highlights,
91
- enableHighlight = _this$props.enableHighlight,
92
80
  customProps = _this$props.customProps;
93
- var displayContent = enableHighlight && highlights !== null && highlights !== void 0 && highlights.data && (highlights === null || highlights === void 0 ? void 0 : (_highlights$data = highlights.data) === null || _highlights$data === void 0 ? void 0 : _highlights$data.length) > 0 && text ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
94
- text: text
95
- })) : text;
96
81
  var _customProps$LinkProp = customProps.LinkProps,
97
82
  LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
98
83
  _customProps$TextProp = customProps.TextProps,
@@ -126,9 +111,9 @@ var AccountName = /*#__PURE__*/function (_Component) {
126
111
  ariaLabel: "Account Name ".concat(text)
127
112
  }), /*#__PURE__*/_react["default"].createElement("div", {
128
113
  className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
129
- }, displayContent)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
114
+ }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
130
115
  className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : '')
131
- }, TextProps), displayContent)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
116
+ }, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
132
117
  href: secondaryAccountHref,
133
118
  onClick: secondaryAccountClick,
134
119
  className: _SecondaryTextModule["default"].link
@@ -15,8 +15,6 @@ var _propTypes = require("./props/propTypes");
15
15
 
16
16
  var _Layout = require("@zohodesk/components/es/Layout");
17
17
 
18
- var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
19
-
20
18
  var _Link = _interopRequireDefault(require("../../Link/Link"));
21
19
 
22
20
  var _SentimentStatus = _interopRequireDefault(require("../SentimentStatus/SentimentStatus"));
@@ -33,12 +31,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
31
 
34
32
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
35
33
 
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
-
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
-
40
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41
-
42
34
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
43
35
 
44
36
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -73,8 +65,6 @@ var ContactName = /*#__PURE__*/function (_Component) {
73
65
  _createClass(ContactName, [{
74
66
  key: "render",
75
67
  value: function render() {
76
- var _highlights$data;
77
-
78
68
  var _this$props = this.props,
79
69
  dataTitle = _this$props.dataTitle,
80
70
  dataId = _this$props.dataId,
@@ -91,8 +81,6 @@ var ContactName = /*#__PURE__*/function (_Component) {
91
81
  notAccessible = _this$props$notAccess === void 0 ? false : _this$props$notAccess,
92
82
  fontWeight = _this$props.fontWeight,
93
83
  i18nKeys = _this$props.i18nKeys,
94
- highlights = _this$props.highlights,
95
- enableHighlight = _this$props.enableHighlight,
96
84
  customProps = _this$props.customProps;
97
85
  var _i18nKeys$sentimentTi = i18nKeys.sentimentTitles,
98
86
  sentimentTitles = _i18nKeys$sentimentTi === void 0 ? {
@@ -107,9 +95,6 @@ var ContactName = /*#__PURE__*/function (_Component) {
107
95
  LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
108
96
  _customProps$TextProp = customProps.TextProps,
109
97
  TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
110
- var displayContent = enableHighlight && highlights !== null && highlights !== void 0 && highlights.data && (highlights === null || highlights === void 0 ? void 0 : (_highlights$data = highlights.data) === null || _highlights$data === void 0 ? void 0 : _highlights$data.length) > 0 && text ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
111
- text: text
112
- })) : text;
113
98
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
114
99
  alignBox: "row",
115
100
  align: "baseline",
@@ -136,10 +121,10 @@ var ContactName = /*#__PURE__*/function (_Component) {
136
121
  ariaLabel: "Contact Name ".concat(text)
137
122
  }), /*#__PURE__*/_react["default"].createElement("div", {
138
123
  className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
139
- }, displayContent)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
124
+ }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
140
125
  className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
141
126
  "data-title": dataTitle
142
- }, TextProps), displayContent)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
127
+ }, TextProps), text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
143
128
  type: sentimentType,
144
129
  dataTitle: sentimentDataTitle
145
130
  })));
@@ -11,8 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _propTypes = require("./props/propTypes");
13
13
 
14
- var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
15
-
16
14
  var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -21,12 +19,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
19
 
22
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
21
 
24
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
-
26
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
-
28
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
-
30
22
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
23
 
32
24
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -61,24 +53,17 @@ var DepartmentText = /*#__PURE__*/function (_Component) {
61
53
  _createClass(DepartmentText, [{
62
54
  key: "render",
63
55
  value: function render() {
64
- var _highlights$data;
65
-
66
56
  var _this$props = this.props,
67
57
  className = _this$props.className,
68
58
  text = _this$props.text,
69
59
  dataTitle = _this$props.dataTitle,
70
- dataId = _this$props.dataId,
71
- enableHighlight = _this$props.enableHighlight,
72
- highlights = _this$props.highlights;
73
- var displayContent = enableHighlight && highlights !== null && highlights !== void 0 && highlights.data && (highlights === null || highlights === void 0 ? void 0 : (_highlights$data = highlights.data) === null || _highlights$data === void 0 ? void 0 : _highlights$data.length) > 0 && text ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
74
- text: text
75
- })) : text;
60
+ dataId = _this$props.dataId;
76
61
  return /*#__PURE__*/_react["default"].createElement("div", {
77
62
  className: "".concat(_SecondaryTextModule["default"].departmentText, " ").concat(className ? className : ''),
78
63
  "data-title": dataTitle,
79
64
  "data-id": dataId,
80
65
  "data-test-id": dataId
81
- }, displayContent);
66
+ }, text);
82
67
  }
83
68
  }]);
84
69
 
@@ -13,8 +13,6 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
- var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
17
-
18
16
  var _Link = _interopRequireDefault(require("../../Link/Link"));
19
17
 
20
18
  var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
@@ -27,12 +25,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
27
25
 
28
26
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
27
 
30
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31
-
32
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
33
-
34
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
-
36
28
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
37
29
 
38
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -67,8 +59,6 @@ var Email = /*#__PURE__*/function (_Component) {
67
59
  _createClass(Email, [{
68
60
  key: "render",
69
61
  value: function render() {
70
- var _highlights$data;
71
-
72
62
  var _this$props = this.props,
73
63
  text = _this$props.text,
74
64
  urlData = _this$props.urlData,
@@ -79,16 +69,11 @@ var Email = /*#__PURE__*/function (_Component) {
79
69
  isLink = _this$props.isLink,
80
70
  target = _this$props.target,
81
71
  fontWeight = _this$props.fontWeight,
82
- customProps = _this$props.customProps,
83
- enableHighlight = _this$props.enableHighlight,
84
- highlights = _this$props.highlights;
72
+ customProps = _this$props.customProps;
85
73
  var _customProps$LinkProp = customProps.LinkProps,
86
74
  LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
87
75
  _customProps$TextProp = customProps.TextProps,
88
76
  TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
89
- var displayContent = enableHighlight && highlights !== null && highlights !== void 0 && highlights.data && (highlights === null || highlights === void 0 ? void 0 : (_highlights$data = highlights.data) === null || _highlights$data === void 0 ? void 0 : _highlights$data.length) > 0 && text ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
90
- text: text
91
- })) : text;
92
77
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
93
78
  href: href,
94
79
  title: title,
@@ -98,10 +83,10 @@ var Email = /*#__PURE__*/function (_Component) {
98
83
  className: _SecondaryTextModule["default"].link
99
84
  }, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
100
85
  className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
101
- }, displayContent)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
86
+ }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
102
87
  className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
103
88
  "data-title": title
104
- }, TextProps), displayContent));
89
+ }, TextProps), text));
105
90
  }
106
91
  }]);
107
92
 
@@ -13,8 +13,6 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
- var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
17
-
18
16
  var _Link = _interopRequireDefault(require("../../Link/Link"));
19
17
 
20
18
  var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
@@ -27,12 +25,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
27
25
 
28
26
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29
27
 
30
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31
-
32
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
33
-
34
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
-
36
28
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
37
29
 
38
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -67,8 +59,6 @@ var PhoneNumber = /*#__PURE__*/function (_Component) {
67
59
  _createClass(PhoneNumber, [{
68
60
  key: "render",
69
61
  value: function render() {
70
- var _highlights$data;
71
-
72
62
  var _this$props = this.props,
73
63
  text = _this$props.text,
74
64
  urlData = _this$props.urlData,
@@ -81,16 +71,11 @@ var PhoneNumber = /*#__PURE__*/function (_Component) {
81
71
  target = _this$props.target,
82
72
  hasReload = _this$props.hasReload,
83
73
  fontWeight = _this$props.fontWeight,
84
- customProps = _this$props.customProps,
85
- enableHighlight = _this$props.enableHighlight,
86
- highlights = _this$props.highlights;
74
+ customProps = _this$props.customProps;
87
75
  var _customProps$LinkProp = customProps.LinkProps,
88
76
  LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
89
77
  _customProps$TextProp = customProps.TextProps,
90
78
  TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
91
- var displayContent = enableHighlight && highlights !== null && highlights !== void 0 && highlights.data && (highlights === null || highlights === void 0 ? void 0 : (_highlights$data = highlights.data) === null || _highlights$data === void 0 ? void 0 : _highlights$data.length) > 0 && text ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
92
- text: text
93
- })) : text;
94
79
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
95
80
  href: href,
96
81
  title: title,
@@ -102,10 +87,10 @@ var PhoneNumber = /*#__PURE__*/function (_Component) {
102
87
  className: _SecondaryTextModule["default"].link
103
88
  }, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
104
89
  className: "".concat(_SecondaryTextModule["default"].phoneNumber, " ").concat(_SecondaryTextModule["default"].phonetxt, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
105
- }, displayContent)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
90
+ }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
106
91
  className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"].phonetxt, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
107
92
  "data-title": title
108
- }, TextProps), displayContent));
93
+ }, TextProps), text));
109
94
  }
110
95
  }]);
111
96
 
@@ -13,8 +13,6 @@ var _defaultProps = require("./props/defaultProps");
13
13
 
14
14
  var _propTypes = require("./props/propTypes");
15
15
 
16
- var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
17
-
18
16
  var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -23,12 +21,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
23
21
 
24
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
25
23
 
26
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
27
-
28
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
-
30
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
-
32
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
25
 
34
26
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -63,25 +55,18 @@ var PriorityText = /*#__PURE__*/function (_Component) {
63
55
  _createClass(PriorityText, [{
64
56
  key: "render",
65
57
  value: function render() {
66
- var _highlights$data;
67
-
68
58
  var _this$props = this.props,
69
59
  className = _this$props.className,
70
60
  color = _this$props.color,
71
61
  text = _this$props.text,
72
62
  dataTitle = _this$props.dataTitle,
73
- dataId = _this$props.dataId,
74
- enableHighlight = _this$props.enableHighlight,
75
- highlights = _this$props.highlights;
76
- var displayContent = enableHighlight && highlights !== null && highlights !== void 0 && highlights.data && (highlights === null || highlights === void 0 ? void 0 : (_highlights$data = highlights.data) === null || _highlights$data === void 0 ? void 0 : _highlights$data.length) > 0 && text ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
77
- text: text
78
- })) : text;
63
+ dataId = _this$props.dataId;
79
64
  return /*#__PURE__*/_react["default"].createElement("div", {
80
65
  className: "".concat(_SecondaryTextModule["default"].priorityText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
81
66
  "data-title": dataTitle,
82
67
  "data-id": dataId,
83
68
  "data-test-id": dataId
84
- }, displayContent);
69
+ }, text);
85
70
  }
86
71
  }]);
87
72