@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.
- package/es/form/fields/Fields.module.css +4 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -6
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +6 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/SecondaryText/AccountName.js +2 -8
- package/es/list/SecondaryText/ContactName.js +2 -8
- package/es/list/SecondaryText/DepartmentText.js +2 -8
- package/es/list/SecondaryText/Email.js +3 -9
- package/es/list/SecondaryText/PhoneNumber.js +3 -9
- package/es/list/SecondaryText/PriorityText.js +2 -8
- package/es/list/SecondaryText/SecondaryText.js +2 -8
- package/es/list/SecondaryText/StatusText.js +2 -8
- package/es/list/SecondaryText/TicketId.js +2 -9
- package/es/list/SecondaryText/Website.js +3 -9
- package/es/list/SecondaryText/props/defaultProps.js +0 -18
- package/es/list/SecondaryText/props/propTypes.js +0 -20
- package/es/list/Subject/Subject.js +3 -9
- package/es/list/Subject/props/defaultProps.js +1 -3
- package/es/list/Subject/props/propTypes.js +1 -28
- package/es/list/status/StatusDropdown/StatusDropdown.js +7 -2
- package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/es/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/es/list/status/StatusListItem/StatusListItem.module.css +6 -3
- package/lib/form/fields/Fields.module.css +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -7
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/SecondaryText/AccountName.js +2 -17
- package/lib/list/SecondaryText/ContactName.js +2 -17
- package/lib/list/SecondaryText/DepartmentText.js +2 -17
- package/lib/list/SecondaryText/Email.js +3 -18
- package/lib/list/SecondaryText/PhoneNumber.js +3 -18
- package/lib/list/SecondaryText/PriorityText.js +2 -17
- package/lib/list/SecondaryText/SecondaryText.js +2 -17
- package/lib/list/SecondaryText/StatusText.js +2 -17
- package/lib/list/SecondaryText/TicketId.js +2 -18
- package/lib/list/SecondaryText/Website.js +3 -18
- package/lib/list/SecondaryText/props/defaultProps.js +0 -18
- package/lib/list/SecondaryText/props/propTypes.js +0 -20
- package/lib/list/Subject/Subject.js +3 -18
- package/lib/list/Subject/props/defaultProps.js +1 -3
- package/lib/list/Subject/props/propTypes.js +1 -33
- package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -2
- package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +3 -1
- package/lib/list/status/StatusListItem/StatusListItem.module.css +6 -3
- package/package.json +11 -11
|
@@ -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 }; }
|
|
@@ -25,12 +23,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
25
23
|
|
|
26
24
|
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); }
|
|
27
25
|
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
27
|
|
|
36
28
|
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); } }
|
|
@@ -65,28 +57,21 @@ var SecondaryText = /*#__PURE__*/function (_Component) {
|
|
|
65
57
|
_createClass(SecondaryText, [{
|
|
66
58
|
key: "render",
|
|
67
59
|
value: function render() {
|
|
68
|
-
var _highlights$data;
|
|
69
|
-
|
|
70
60
|
var _this$props = this.props,
|
|
71
61
|
className = _this$props.className,
|
|
72
62
|
text = _this$props.text,
|
|
73
63
|
dataTitle = _this$props.dataTitle,
|
|
74
64
|
dataId = _this$props.dataId,
|
|
75
65
|
onClick = _this$props.onClick,
|
|
76
|
-
customProps = _this$props.customProps
|
|
77
|
-
enableHighlight = _this$props.enableHighlight,
|
|
78
|
-
highlights = _this$props.highlights;
|
|
66
|
+
customProps = _this$props.customProps;
|
|
79
67
|
var SecondaryTextProps = customProps.SecondaryTextProps;
|
|
80
|
-
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), {}, {
|
|
81
|
-
text: text
|
|
82
|
-
})) : text;
|
|
83
68
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
84
69
|
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
|
|
85
70
|
"data-title": dataTitle,
|
|
86
71
|
"data-id": dataId,
|
|
87
72
|
"data-test-id": dataId,
|
|
88
73
|
onClick: onClick
|
|
89
|
-
}, SecondaryTextProps),
|
|
74
|
+
}, SecondaryTextProps), text);
|
|
90
75
|
}
|
|
91
76
|
}]);
|
|
92
77
|
|
|
@@ -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,26 +55,19 @@ var StatusText = /*#__PURE__*/function (_Component) {
|
|
|
63
55
|
_createClass(StatusText, [{
|
|
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
63
|
fontWeight = _this$props.fontWeight,
|
|
74
|
-
dataId = _this$props.dataId
|
|
75
|
-
enableHighlight = _this$props.enableHighlight,
|
|
76
|
-
highlights = _this$props.highlights;
|
|
77
|
-
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), {}, {
|
|
78
|
-
text: text
|
|
79
|
-
})) : text;
|
|
64
|
+
dataId = _this$props.dataId;
|
|
80
65
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
81
66
|
className: "".concat(_SecondaryTextModule["default"].statusText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
|
|
82
67
|
"data-title": dataTitle,
|
|
83
68
|
"data-id": dataId,
|
|
84
69
|
"data-test-id": dataId
|
|
85
|
-
},
|
|
70
|
+
}, text);
|
|
86
71
|
}
|
|
87
72
|
}]);
|
|
88
73
|
|
|
@@ -15,8 +15,6 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
17
17
|
|
|
18
|
-
var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
|
|
19
|
-
|
|
20
18
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -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 TicketId = /*#__PURE__*/function (_Component) {
|
|
|
67
59
|
_createClass(TicketId, [{
|
|
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
|
className = _this$props.className,
|
|
@@ -80,17 +70,11 @@ var TicketId = /*#__PURE__*/function (_Component) {
|
|
|
80
70
|
target = _this$props.target,
|
|
81
71
|
urlName = _this$props.urlName,
|
|
82
72
|
urlData = _this$props.urlData,
|
|
83
|
-
customProps = _this$props.customProps
|
|
84
|
-
enableHighlight = _this$props.enableHighlight,
|
|
85
|
-
highlights = _this$props.highlights;
|
|
73
|
+
customProps = _this$props.customProps;
|
|
86
74
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
87
75
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
88
76
|
_customProps$TicketId = customProps.TicketIdProps,
|
|
89
77
|
TicketIdProps = _customProps$TicketId === void 0 ? {} : _customProps$TicketId;
|
|
90
|
-
var processedText = 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 && typeof text === 'string' ? (0, _textHighlighter.highlightText)(_objectSpread(_objectSpread({}, highlights), {}, {
|
|
91
|
-
text: text
|
|
92
|
-
})) : text;
|
|
93
|
-
var textContent = Array.isArray(processedText) ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, processedText) : processedText;
|
|
94
78
|
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
95
79
|
className: "".concat(_SecondaryTextModule["default"].ticketId, " ").concat(isLink ? _SecondaryTextModule["default"].ticketIdLink : '', " ").concat(className ? className : ''),
|
|
96
80
|
"data-id": dataId,
|
|
@@ -103,7 +87,7 @@ var TicketId = /*#__PURE__*/function (_Component) {
|
|
|
103
87
|
href: url,
|
|
104
88
|
target: target,
|
|
105
89
|
onClick: onClick
|
|
106
|
-
}, LinkProps),
|
|
90
|
+
}, LinkProps), text) : text);
|
|
107
91
|
}
|
|
108
92
|
}]);
|
|
109
93
|
|
|
@@ -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 _ExternalLink = _interopRequireDefault(require("../../ExternalLink/ExternalLink"));
|
|
19
17
|
|
|
20
18
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -25,12 +23,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
23
|
|
|
26
24
|
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
25
|
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
27
|
|
|
36
28
|
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); } }
|
|
@@ -65,8 +57,6 @@ var Website = /*#__PURE__*/function (_Component) {
|
|
|
65
57
|
_createClass(Website, [{
|
|
66
58
|
key: "render",
|
|
67
59
|
value: function render() {
|
|
68
|
-
var _highlights$data;
|
|
69
|
-
|
|
70
60
|
var _this$props = this.props,
|
|
71
61
|
text = _this$props.text,
|
|
72
62
|
className = _this$props.className,
|
|
@@ -74,22 +64,17 @@ var Website = /*#__PURE__*/function (_Component) {
|
|
|
74
64
|
href = _this$props.href,
|
|
75
65
|
dataId = _this$props.dataId,
|
|
76
66
|
isLink = _this$props.isLink,
|
|
77
|
-
target = _this$props.target
|
|
78
|
-
enableHighlight = _this$props.enableHighlight,
|
|
79
|
-
highlights = _this$props.highlights;
|
|
80
|
-
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), {}, {
|
|
81
|
-
text: text
|
|
82
|
-
})) : text;
|
|
67
|
+
target = _this$props.target;
|
|
83
68
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_ExternalLink["default"], {
|
|
84
69
|
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(className ? className : ''),
|
|
85
70
|
href: href,
|
|
86
71
|
title: title,
|
|
87
72
|
dataId: dataId,
|
|
88
73
|
target: target
|
|
89
|
-
},
|
|
74
|
+
}, text) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
75
|
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
|
|
91
76
|
"data-title": text
|
|
92
|
-
},
|
|
77
|
+
}, text));
|
|
93
78
|
}
|
|
94
79
|
}]);
|
|
95
80
|
|
|
@@ -8,8 +8,6 @@ var AccountName_defaultProps = {
|
|
|
8
8
|
isLink: true,
|
|
9
9
|
dataId: 'accountName',
|
|
10
10
|
fontWeight: 'regular',
|
|
11
|
-
enableHighlight: false,
|
|
12
|
-
highlights: {},
|
|
13
11
|
customProps: {}
|
|
14
12
|
};
|
|
15
13
|
exports.AccountName_defaultProps = AccountName_defaultProps;
|
|
@@ -19,16 +17,12 @@ var ContactName_defaultProps = {
|
|
|
19
17
|
dataId: 'contactName',
|
|
20
18
|
fontWeight: 'regular',
|
|
21
19
|
i18nKeys: {},
|
|
22
|
-
enableHighlight: false,
|
|
23
|
-
highlights: {},
|
|
24
20
|
customProps: {}
|
|
25
21
|
};
|
|
26
22
|
exports.ContactName_defaultProps = ContactName_defaultProps;
|
|
27
23
|
var Email_defaultProps = {
|
|
28
24
|
isLink: true,
|
|
29
25
|
fontWeight: 'regular',
|
|
30
|
-
enableHighlight: false,
|
|
31
|
-
highlights: {},
|
|
32
26
|
customProps: {}
|
|
33
27
|
};
|
|
34
28
|
exports.Email_defaultProps = Email_defaultProps;
|
|
@@ -36,42 +30,30 @@ var PhoneNumber_defaultProps = {
|
|
|
36
30
|
isLink: true,
|
|
37
31
|
hasReload: false,
|
|
38
32
|
fontWeight: 'regular',
|
|
39
|
-
enableHighlight: false,
|
|
40
|
-
highlights: {},
|
|
41
33
|
customProps: {}
|
|
42
34
|
};
|
|
43
35
|
exports.PhoneNumber_defaultProps = PhoneNumber_defaultProps;
|
|
44
36
|
var PriorityText_defaultProps = {
|
|
45
37
|
color: 'black',
|
|
46
|
-
enableHighlight: false,
|
|
47
|
-
highlights: {},
|
|
48
38
|
dataId: 'priority'
|
|
49
39
|
};
|
|
50
40
|
exports.PriorityText_defaultProps = PriorityText_defaultProps;
|
|
51
41
|
var SecondaryText_defaultProps = {
|
|
52
|
-
enableHighlight: false,
|
|
53
|
-
highlights: {},
|
|
54
42
|
customProps: {}
|
|
55
43
|
};
|
|
56
44
|
exports.SecondaryText_defaultProps = SecondaryText_defaultProps;
|
|
57
45
|
var StatusText_defaultProps = {
|
|
58
46
|
color: 'black',
|
|
59
47
|
dataId: 'statusContainer',
|
|
60
|
-
enableHighlight: false,
|
|
61
|
-
highlights: {},
|
|
62
48
|
fontWeight: 'regular'
|
|
63
49
|
};
|
|
64
50
|
exports.StatusText_defaultProps = StatusText_defaultProps;
|
|
65
51
|
var TicketId_defaultProps = {
|
|
66
52
|
dataId: 'ticketId',
|
|
67
|
-
enableHighlight: false,
|
|
68
|
-
highlights: {},
|
|
69
53
|
customProps: {}
|
|
70
54
|
};
|
|
71
55
|
exports.TicketId_defaultProps = TicketId_defaultProps;
|
|
72
56
|
var Website_defaultProps = {
|
|
73
|
-
enableHighlight: false,
|
|
74
|
-
highlights: {},
|
|
75
57
|
isLink: true
|
|
76
58
|
};
|
|
77
59
|
exports.Website_defaultProps = Website_defaultProps;
|
|
@@ -24,8 +24,6 @@ var AccountName_propTypes = {
|
|
|
24
24
|
secondaryAccountHref: _propTypes["default"].string,
|
|
25
25
|
secondaryAccountClick: _propTypes["default"].func,
|
|
26
26
|
secondaryAccountText: _propTypes["default"].string,
|
|
27
|
-
enableHighlight: _propTypes["default"].bool,
|
|
28
|
-
highlights: _propTypes["default"].object,
|
|
29
27
|
customProps: _propTypes["default"].shape({
|
|
30
28
|
LinkProps: _propTypes["default"].object,
|
|
31
29
|
TextProps: _propTypes["default"].object,
|
|
@@ -55,8 +53,6 @@ var ContactName_propTypes = {
|
|
|
55
53
|
}),
|
|
56
54
|
paidTitle: _propTypes["default"].string
|
|
57
55
|
}),
|
|
58
|
-
enableHighlight: _propTypes["default"].bool,
|
|
59
|
-
highlights: _propTypes["default"].object,
|
|
60
56
|
customProps: _propTypes["default"].shape({
|
|
61
57
|
LinkProps: _propTypes["default"].object,
|
|
62
58
|
TextProps: _propTypes["default"].object
|
|
@@ -67,8 +63,6 @@ var DepartmentText_propTypes = {
|
|
|
67
63
|
className: _propTypes["default"].string,
|
|
68
64
|
dataId: _propTypes["default"].string,
|
|
69
65
|
dataTitle: _propTypes["default"].string,
|
|
70
|
-
enableHighlight: _propTypes["default"].bool,
|
|
71
|
-
highlights: _propTypes["default"].object,
|
|
72
66
|
text: _propTypes["default"].string
|
|
73
67
|
};
|
|
74
68
|
exports.DepartmentText_propTypes = DepartmentText_propTypes;
|
|
@@ -82,8 +76,6 @@ var Email_propTypes = {
|
|
|
82
76
|
title: _propTypes["default"].string,
|
|
83
77
|
urlData: _propTypes["default"].object,
|
|
84
78
|
urlName: _propTypes["default"].string,
|
|
85
|
-
enableHighlight: _propTypes["default"].bool,
|
|
86
|
-
highlights: _propTypes["default"].object,
|
|
87
79
|
customProps: _propTypes["default"].shape({
|
|
88
80
|
LinkProps: _propTypes["default"].object,
|
|
89
81
|
TextProps: _propTypes["default"].object
|
|
@@ -108,8 +100,6 @@ var PhoneNumber_propTypes = {
|
|
|
108
100
|
title: _propTypes["default"].string,
|
|
109
101
|
urlData: _propTypes["default"].object,
|
|
110
102
|
urlName: _propTypes["default"].string,
|
|
111
|
-
enableHighlight: _propTypes["default"].bool,
|
|
112
|
-
highlights: _propTypes["default"].object,
|
|
113
103
|
customProps: _propTypes["default"].shape({
|
|
114
104
|
LinkProps: _propTypes["default"].object,
|
|
115
105
|
TextProps: _propTypes["default"].object
|
|
@@ -121,8 +111,6 @@ var PriorityText_propTypes = {
|
|
|
121
111
|
color: _propTypes["default"].oneOf(['red', 'green', 'gray', 'orange']),
|
|
122
112
|
dataId: _propTypes["default"].string,
|
|
123
113
|
dataTitle: _propTypes["default"].string,
|
|
124
|
-
enableHighlight: _propTypes["default"].bool,
|
|
125
|
-
highlights: _propTypes["default"].object,
|
|
126
114
|
text: _propTypes["default"].string
|
|
127
115
|
};
|
|
128
116
|
exports.PriorityText_propTypes = PriorityText_propTypes;
|
|
@@ -132,8 +120,6 @@ var SecondaryText_propTypes = {
|
|
|
132
120
|
dataTitle: _propTypes["default"].string,
|
|
133
121
|
onClick: _propTypes["default"].func,
|
|
134
122
|
text: _propTypes["default"].string,
|
|
135
|
-
enableHighlight: _propTypes["default"].bool,
|
|
136
|
-
highlights: _propTypes["default"].object,
|
|
137
123
|
customProps: _propTypes["default"].shape({
|
|
138
124
|
SecondaryTextProps: _propTypes["default"].object
|
|
139
125
|
})
|
|
@@ -145,8 +131,6 @@ var StatusText_propTypes = {
|
|
|
145
131
|
dataId: _propTypes["default"].string,
|
|
146
132
|
dataTitle: _propTypes["default"].string,
|
|
147
133
|
fontWeight: _propTypes["default"].oneOf(['regular', 'semibold', 'bold']),
|
|
148
|
-
enableHighlight: _propTypes["default"].bool,
|
|
149
|
-
highlights: _propTypes["default"].object,
|
|
150
134
|
text: _propTypes["default"].string
|
|
151
135
|
};
|
|
152
136
|
exports.StatusText_propTypes = StatusText_propTypes;
|
|
@@ -161,8 +145,6 @@ var TicketId_propTypes = {
|
|
|
161
145
|
url: _propTypes["default"].string,
|
|
162
146
|
urlData: _propTypes["default"].string,
|
|
163
147
|
urlName: _propTypes["default"].string,
|
|
164
|
-
enableHighlight: _propTypes["default"].bool,
|
|
165
|
-
highlights: _propTypes["default"].object,
|
|
166
148
|
customProps: _propTypes["default"].shape({
|
|
167
149
|
TicketIdProps: _propTypes["default"].object,
|
|
168
150
|
LinkProps: _propTypes["default"].object
|
|
@@ -176,8 +158,6 @@ var Website_propTypes = {
|
|
|
176
158
|
isLink: _propTypes["default"].bool,
|
|
177
159
|
target: _propTypes["default"].string,
|
|
178
160
|
text: _propTypes["default"].string,
|
|
179
|
-
enableHighlight: _propTypes["default"].bool,
|
|
180
|
-
highlights: _propTypes["default"].object,
|
|
181
161
|
title: _propTypes["default"].string
|
|
182
162
|
};
|
|
183
163
|
exports.Website_propTypes = Website_propTypes;
|
|
@@ -17,8 +17,6 @@ var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
|
17
17
|
|
|
18
18
|
var _cssUtils = require("@zohodesk/components/es/utils/cssUtils");
|
|
19
19
|
|
|
20
|
-
var _textHighlighter = require("@zohodesk/components/es/Typography/utils/textHighlighter");
|
|
21
|
-
|
|
22
20
|
var _SubjectModule = _interopRequireDefault(require("./Subject.module.css"));
|
|
23
21
|
|
|
24
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -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 Subject = /*#__PURE__*/function (_Component) {
|
|
|
69
61
|
_createClass(Subject, [{
|
|
70
62
|
key: "render",
|
|
71
63
|
value: function render() {
|
|
72
|
-
var _highlights$data;
|
|
73
|
-
|
|
74
64
|
var _this$props = this.props,
|
|
75
65
|
text = _this$props.text,
|
|
76
66
|
dataId = _this$props.dataId,
|
|
@@ -85,16 +75,11 @@ var Subject = /*#__PURE__*/function (_Component) {
|
|
|
85
75
|
isDotted = _this$props.isDotted,
|
|
86
76
|
children = _this$props.children,
|
|
87
77
|
customProps = _this$props.customProps,
|
|
88
|
-
whiteSpace = _this$props.whiteSpace
|
|
89
|
-
enableHighlight = _this$props.enableHighlight,
|
|
90
|
-
highlights = _this$props.highlights;
|
|
78
|
+
whiteSpace = _this$props.whiteSpace;
|
|
91
79
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
92
80
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
93
81
|
_customProps$TextProp = customProps.TextProps,
|
|
94
82
|
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
|
|
95
|
-
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), {}, {
|
|
96
|
-
text: text
|
|
97
|
-
})) : children ? children : text;
|
|
98
83
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
99
84
|
urlName: urlName,
|
|
100
85
|
href: href,
|
|
@@ -105,13 +90,13 @@ var Subject = /*#__PURE__*/function (_Component) {
|
|
|
105
90
|
title: text,
|
|
106
91
|
target: target,
|
|
107
92
|
"data-title-wrap": whiteSpace
|
|
108
|
-
}, LinkProps),
|
|
93
|
+
}, LinkProps), children ? children : text) : /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
109
94
|
className: "".concat(_SubjectModule["default"].subject, " ").concat(isDotted ? _SubjectModule["default"].dotted : '', " ").concat(_cssUtils.whiteSpaceClassMapping[whiteSpace], " ").concat(className, " ").concat(_SubjectModule["default"]["font_".concat(fontWeight)]),
|
|
110
95
|
"data-title": text,
|
|
111
96
|
"data-id": dataId,
|
|
112
97
|
"data-test-id": dataId,
|
|
113
98
|
"data-title-wrap": whiteSpace
|
|
114
|
-
}, TextProps),
|
|
99
|
+
}, TextProps), text));
|
|
115
100
|
}
|
|
116
101
|
}]);
|
|
117
102
|
|
|
@@ -9,29 +9,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
|
|
12
|
-
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; }
|
|
13
|
-
|
|
14
|
-
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; }
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
18
|
-
var highlightsStyleShape = _propTypes["default"].shape({
|
|
19
|
-
weight: _propTypes["default"].oneOf(['regular', 'light', 'semibold', 'bold']),
|
|
20
|
-
transform: _propTypes["default"].oneOf(['default', 'upper', 'lower', 'capital']),
|
|
21
|
-
decoration: _propTypes["default"].oneOf(['default', 'underline', 'strike', 'overline']),
|
|
22
|
-
typeFace: _propTypes["default"].oneOf(['normal', 'italic']),
|
|
23
|
-
customClass: _propTypes["default"].object
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
var commonHighlightProps = {
|
|
27
|
-
customStyle: _propTypes["default"].object,
|
|
28
|
-
isExcludedIndex: _propTypes["default"].bool,
|
|
29
|
-
isCaseSensitive: _propTypes["default"].bool,
|
|
30
|
-
isWholeWord: _propTypes["default"].bool,
|
|
31
|
-
tagName: _propTypes["default"].string,
|
|
32
|
-
render: _propTypes["default"].element,
|
|
33
|
-
highlightsStyle: _propTypes["default"].objectOf(highlightsStyleShape)
|
|
34
|
-
};
|
|
35
12
|
var propTypes = {
|
|
36
13
|
className: _propTypes["default"].string,
|
|
37
14
|
dataId: _propTypes["default"].string,
|
|
@@ -49,15 +26,6 @@ var propTypes = {
|
|
|
49
26
|
LinkProps: _propTypes["default"].object,
|
|
50
27
|
TextProps: _propTypes["default"].object
|
|
51
28
|
}),
|
|
52
|
-
whiteSpace: _propTypes["default"].oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
53
|
-
// Highlight props
|
|
54
|
-
enableHighlight: _propTypes["default"].bool,
|
|
55
|
-
highlights: _propTypes["default"].objectOf(_propTypes["default"].shape(_objectSpread({
|
|
56
|
-
text: _propTypes["default"].string,
|
|
57
|
-
highlightData: _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].shape(_objectSpread({
|
|
58
|
-
highlightText: _propTypes["default"].string,
|
|
59
|
-
index: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].number), _propTypes["default"].number])
|
|
60
|
-
}, commonHighlightProps))]))
|
|
61
|
-
}, commonHighlightProps)))
|
|
29
|
+
whiteSpace: _propTypes["default"].oneOf(['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces'])
|
|
62
30
|
};
|
|
63
31
|
exports.propTypes = propTypes;
|
|
@@ -247,7 +247,10 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
247
247
|
renderTargetElement = _this$props4.renderTargetElement,
|
|
248
248
|
renderFooterElement = _this$props4.renderFooterElement,
|
|
249
249
|
_this$props4$a11y = _this$props4.a11y,
|
|
250
|
-
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y
|
|
250
|
+
a11y = _this$props4$a11y === void 0 ? {} : _this$props4$a11y,
|
|
251
|
+
customClass = _this$props4.customClass;
|
|
252
|
+
var _customClass$dropBoxC = customClass.dropBoxClass,
|
|
253
|
+
dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
|
|
251
254
|
var _a11y$tabIndex = a11y.tabIndex,
|
|
252
255
|
tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
|
|
253
256
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
@@ -310,7 +313,8 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
310
313
|
isAnimate: true,
|
|
311
314
|
getRef: getContainerRef,
|
|
312
315
|
customClass: {
|
|
313
|
-
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
316
|
+
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer,
|
|
317
|
+
customDropBox: dropBoxClass
|
|
314
318
|
},
|
|
315
319
|
needResponsive: needResponsive,
|
|
316
320
|
isResponsivePadding: true,
|
|
@@ -30,5 +30,7 @@ var propTypes = (_propTypes = {
|
|
|
30
30
|
idName: _propTypes2["default"].string,
|
|
31
31
|
isArrow: _propTypes2["default"].bool,
|
|
32
32
|
isDataLoaded: _propTypes2["default"].bool
|
|
33
|
-
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _propTypes
|
|
33
|
+
}, _defineProperty(_propTypes, "isDataLoaded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isDisabled", _propTypes2["default"].bool), _defineProperty(_propTypes, "isEditable", _propTypes2["default"].bool), _defineProperty(_propTypes, "isFetchingOptions", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupActive", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupOpen", _propTypes2["default"].bool), _defineProperty(_propTypes, "isPopupReady", _propTypes2["default"].bool), _defineProperty(_propTypes, "isReadOnly", _propTypes2["default"].bool), _defineProperty(_propTypes, "isSearch", _propTypes2["default"].bool), _defineProperty(_propTypes, "keyName", _propTypes2["default"].string), _defineProperty(_propTypes, "left", _propTypes2["default"].number), _defineProperty(_propTypes, "needExternalPopupState", _propTypes2["default"].bool), _defineProperty(_propTypes, "needResponsive", _propTypes2["default"].bool), _defineProperty(_propTypes, "needTick", _propTypes2["default"].bool), _defineProperty(_propTypes, "onClick", _propTypes2["default"].func), _defineProperty(_propTypes, "onTogglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "options", _propTypes2["default"].array.isRequired), _defineProperty(_propTypes, "placeHolderText", _propTypes2["default"].string), _defineProperty(_propTypes, "position", _propTypes2["default"].string), _defineProperty(_propTypes, "removeClose", _propTypes2["default"].func), _defineProperty(_propTypes, "right", _propTypes2["default"].number), _defineProperty(_propTypes, "searchBoxSize", _propTypes2["default"].oneOf(['small', 'medium', 'xmedium'])), _defineProperty(_propTypes, "searchEmptyHint", _propTypes2["default"].string), _defineProperty(_propTypes, "searchErrorText", _propTypes2["default"].string), _defineProperty(_propTypes, "showIconOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "showOnHover", _propTypes2["default"].bool), _defineProperty(_propTypes, "statusColor", _propTypes2["default"].string), _defineProperty(_propTypes, "targetAlign", _propTypes2["default"].oneOf(['vertical', 'horizontal', 'both', 'top', 'right', 'bottom', 'left', 'between', 'around'])), _defineProperty(_propTypes, "title", _propTypes2["default"].string), _defineProperty(_propTypes, "togglePopup", _propTypes2["default"].func), _defineProperty(_propTypes, "value", _propTypes2["default"].node), _defineProperty(_propTypes, "needMultiLineText", _propTypes2["default"].bool), _defineProperty(_propTypes, "onSelectLabel", _propTypes2["default"].func), _defineProperty(_propTypes, "top", _propTypes2["default"].number), _defineProperty(_propTypes, "a11y", _propTypes2["default"].object), _defineProperty(_propTypes, "isAbsolutePositioningNeeded", _propTypes2["default"].bool), _defineProperty(_propTypes, "isRestrictScroll", _propTypes2["default"].bool), _defineProperty(_propTypes, "positionsOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "renderTargetElement", _propTypes2["default"].func), _defineProperty(_propTypes, "renderFooterElement", _propTypes2["default"].node), _defineProperty(_propTypes, "targetOffset", _propTypes2["default"].object), _defineProperty(_propTypes, "customClass", _propTypes2["default"].shape({
|
|
34
|
+
dropBoxClass: _propTypes2["default"].string
|
|
35
|
+
})), _propTypes);
|
|
34
36
|
exports.propTypes = propTypes;
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
.value {
|
|
37
37
|
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
38
38
|
}
|
|
39
|
-
.multiLineValue{
|
|
40
|
-
|
|
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%;
|