@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
@@ -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
  };
@@ -178,8 +178,12 @@ export class StatusDropdown extends React.Component {
178
178
  targetOffset,
179
179
  renderTargetElement,
180
180
  renderFooterElement,
181
- a11y = {}
181
+ a11y = {},
182
+ customClass
182
183
  } = this.props;
184
+ const {
185
+ dropBoxClass = ''
186
+ } = customClass;
183
187
  const {
184
188
  tabIndex = 0,
185
189
  ariaLabelledby,
@@ -247,7 +251,8 @@ export class StatusDropdown extends React.Component {
247
251
  isAnimate: true,
248
252
  getRef: getContainerRef,
249
253
  customClass: {
250
- customDropBoxWrap: style.dropBoxContainer
254
+ customDropBoxWrap: style.dropBoxContainer,
255
+ customDropBox: dropBoxClass
251
256
  },
252
257
  needResponsive: needResponsive,
253
258
  isResponsivePadding: true,
@@ -18,5 +18,6 @@ export const defaultProps = {
18
18
  needMultiLineText: false,
19
19
  isFetchingOptions: false,
20
20
  isAbsolutePositioningNeeded: true,
21
- isRestrictScroll: false
21
+ isRestrictScroll: false,
22
+ customClass: {}
22
23
  };
@@ -56,5 +56,8 @@ export const propTypes = {
56
56
  positionsOffset: PropTypes.object,
57
57
  renderTargetElement: PropTypes.func,
58
58
  renderFooterElement: PropTypes.node,
59
- targetOffset: PropTypes.object
59
+ targetOffset: PropTypes.object,
60
+ customClass: PropTypes.shape({
61
+ dropBoxClass: PropTypes.string
62
+ })
60
63
  };
@@ -36,9 +36,8 @@
36
36
  .value {
37
37
  composes: dotted from '~@zohodesk/components/es/common/common.module.css';
38
38
  }
39
- .multiLineValue{
40
- word-break: break-word;
41
- composes: clamp from '~@zohodesk/components/es/common/common.module.css';
39
+ .multiLineValue {
40
+ composes: lineClamp from '~@zohodesk/components/es/common/common.module.css';
42
41
  }
43
42
  [dir=ltr] .withBorder.active {
44
43
  border-left-color: var(--zdt_statuslistitem_default_active_border);
@@ -90,6 +89,10 @@
90
89
  }
91
90
  /* Status Type */
92
91
  .statusType {
92
+ --status_listitem_bullet_min_height: var(--zd_size8);
93
+ --status_listitem_bullet_min_width: var(--zd_size8);
94
+ min-height: var(--status_listitem_bullet_min_height);
95
+ min-width: var(--status_listitem_bullet_min_width);
93
96
  width: var(--zd_size8) ;
94
97
  height: var(--zd_size8) ;
95
98
  border-radius: 50%;
@@ -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
  }
@@ -222,13 +222,17 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
222
222
  _customClass$listItem = customClass.listItemClass,
223
223
  listItemClass = _customClass$listItem === void 0 ? '' : _customClass$listItem,
224
224
  _customClass$textBoxI = customClass.textBoxIconWrapperClass,
225
- textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI;
225
+ textBoxIconWrapperClass = _customClass$textBoxI === void 0 ? '' : _customClass$textBoxI,
226
+ _customClass$dropBoxC = customClass.dropBoxClass,
227
+ dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
226
228
  var _customProps$TextBoxI = customProps.TextBoxIconProps,
227
229
  TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
228
230
  _customProps$TagWrapp = customProps.TagWrapperProps,
229
231
  TagWrapperProps = _customProps$TagWrapp === void 0 ? {} : _customProps$TagWrapp,
230
232
  _customProps$TagProps = customProps.TagProps,
231
- TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps;
233
+ TagProps = _customProps$TagProps === void 0 ? {} : _customProps$TagProps,
234
+ _customProps$ListItem = customProps.ListItemProps,
235
+ ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
232
236
  var isEditable = !isReadOnly;
233
237
  return /*#__PURE__*/_react["default"].createElement("div", {
234
238
  className: "".concat(_TagsMultiSelectModule["default"].container, " ").concat(!isReadOnly ? " ".concat(needBorder ? _TagsMultiSelectModule["default"].hasBorder : '', "\n ").concat(needBorder ? _TagsMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _TagsMultiSelectModule["default"].borderColor_transparent, " ").concat(isPopupReady && needBorder || isEditable && isFocus ? _TagsMultiSelectModule["default"].active : '') : '', " ").concat(className),
@@ -306,7 +310,8 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
306
310
  boxPosition: boxPosition,
307
311
  isPadding: false,
308
312
  customClass: {
309
- customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown
313
+ customDropBoxWrap: _TagsMultiSelectModule["default"].dropdown,
314
+ customDropBox: dropBoxClass
310
315
  },
311
316
  dataId: "".concat(dataId, "_dropbox"),
312
317
  isResponsivePadding: true,
@@ -337,8 +342,8 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
337
342
  }, searchList.map(function (item, index) {
338
343
  var name = item.name,
339
344
  isNew = item.isNew,
340
- listItemProps = item.listItemProps;
341
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
345
+ listProps = item.listProps;
346
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/_react["default"].createElement(_DropDownSeparator["default"], null) : null, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
342
347
  key: index,
343
348
  index: index,
344
349
  autoHover: true,
@@ -349,9 +354,9 @@ var TagsMultiSelect = /*#__PURE__*/function (_React$Component) {
349
354
  highlight: selectSearchIndex === index,
350
355
  getRef: _this3.getSelectedItemRef,
351
356
  isDisabled: listDisabled,
352
- customProps: listItemProps,
357
+ customProps: listProps,
353
358
  customClass: listItemClass
354
- }, isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
359
+ }, ListItemProps), isNew ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
355
360
  alignBox: "row",
356
361
  align: "vertical"
357
362
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -62,7 +62,8 @@ var propTypes = {
62
62
  customProps: _propTypes["default"].shape({
63
63
  TextBoxIconProps: _propTypes["default"].object,
64
64
  TagWrapperProps: _propTypes["default"].object,
65
- TagProps: _propTypes["default"].object
65
+ TagProps: _propTypes["default"].object,
66
+ ListItemProps: _propTypes["default"].object
66
67
  }),
67
68
  isFocus: _propTypes["default"].bool
68
69
  };
@@ -25,6 +25,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
25
25
 
26
26
  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; }
27
27
 
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); }
29
+
28
30
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
31
 
30
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); } }
@@ -100,7 +102,10 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
100
102
  onSearch = _this$props3.onSearch,
101
103
  needSearchFetching = _this$props3.needSearchFetching,
102
104
  searchStr = _this$props3.searchStr,
103
- i18nKeys = _this$props3.i18nKeys;
105
+ i18nKeys = _this$props3.i18nKeys,
106
+ customProps = _this$props3.customProps;
107
+ var _customProps$ToggleDr = customProps.ToggleDropDownProps,
108
+ ToggleDropDownProps = _customProps$ToggleDr === void 0 ? {} : _customProps$ToggleDr;
104
109
  var _i18nKeys$title = i18nKeys.title,
105
110
  title = _i18nKeys$title === void 0 ? 'Move Department' : _i18nKeys$title,
106
111
  _i18nKeys$searchEmpty = i18nKeys.searchEmptyText,
@@ -109,7 +114,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
109
114
  searchErrorText = _i18nKeys$searchError === void 0 ? 'No results' : _i18nKeys$searchError,
110
115
  _i18nKeys$placeholder = i18nKeys.placeholder,
111
116
  placeholder = _i18nKeys$placeholder === void 0 ? 'Search Department' : _i18nKeys$placeholder;
112
- return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], {
117
+ return /*#__PURE__*/_react["default"].createElement(_ToggleDropDown["default"], _extends({}, ToggleDropDownProps, {
113
118
  title: title,
114
119
  options: departmentList,
115
120
  value: /*#__PURE__*/_react["default"].createElement(_SecondaryText.DepartmentText, {
@@ -138,7 +143,7 @@ var DepartmentDropDown = /*#__PURE__*/function (_Component) {
138
143
  isNextOptions: isNextOptions,
139
144
  onSearch: onSearch,
140
145
  needSearchFetching: needSearchFetching
141
- });
146
+ }));
142
147
  }
143
148
  }]);
144
149
 
@@ -9,6 +9,7 @@ var defaultProps = {
9
9
  isPopupActive: true,
10
10
  isNextOptions: false,
11
11
  searchStr: '',
12
- i18nKeys: {}
12
+ i18nKeys: {},
13
+ customProps: {}
13
14
  };
14
15
  exports.defaultProps = defaultProps;
@@ -31,5 +31,7 @@ var propTypes = (_propTypes = {
31
31
  searchEmptyText: _propTypes2["default"].string,
32
32
  searchErrorText: _propTypes2["default"].string,
33
33
  placeholder: _propTypes2["default"].string
34
+ })), _defineProperty(_propTypes, "customProps", _propTypes2["default"].shape({
35
+ ToggleDropDownProps: _propTypes2["default"].object
34
36
  })), _propTypes);
35
37
  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