@zohodesk/components 1.0.0-temp-199.14 → 1.0.0-temp-222

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 (50) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
  3. package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
  4. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
  5. package/es/ListItem/ListItem.js +3 -5
  6. package/es/ListItem/ListItem.module.css +46 -23
  7. package/es/ListItem/ListItemWithAvatar.js +16 -13
  8. package/es/ListItem/ListItemWithCheckBox.js +16 -12
  9. package/es/ListItem/ListItemWithIcon.js +17 -14
  10. package/es/ListItem/ListItemWithRadio.js +16 -12
  11. package/es/ListItem/props/defaultProps.js +8 -6
  12. package/es/ListItem/props/propTypes.js +11 -5
  13. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -7
  14. package/es/MultiSelect/AdvancedMultiSelect.js +7 -3
  15. package/es/MultiSelect/MultiSelect.js +7 -8
  16. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -1
  17. package/es/MultiSelect/Suggestions.js +34 -11
  18. package/es/MultiSelect/props/defaultProps.js +1 -4
  19. package/es/MultiSelect/props/propTypes.js +8 -11
  20. package/es/Select/GroupSelect.js +1 -5
  21. package/es/Select/SelectWithAvatar.js +2 -7
  22. package/es/Select/SelectWithIcon.js +2 -4
  23. package/es/Select/props/defaultProps.js +1 -2
  24. package/es/Select/props/propTypes.js +3 -8
  25. package/es/common/common.module.css +6 -1
  26. package/es/utils/dropDownUtils.js +19 -10
  27. package/lib/ListItem/ListItem.js +3 -5
  28. package/lib/ListItem/ListItem.module.css +46 -23
  29. package/lib/ListItem/ListItemWithAvatar.js +15 -12
  30. package/lib/ListItem/ListItemWithCheckBox.js +15 -11
  31. package/lib/ListItem/ListItemWithIcon.js +16 -13
  32. package/lib/ListItem/ListItemWithRadio.js +15 -11
  33. package/lib/ListItem/props/defaultProps.js +8 -6
  34. package/lib/ListItem/props/propTypes.js +11 -6
  35. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -8
  36. package/lib/MultiSelect/AdvancedMultiSelect.js +72 -67
  37. package/lib/MultiSelect/MultiSelect.js +8 -7
  38. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
  39. package/lib/MultiSelect/Suggestions.js +36 -11
  40. package/lib/MultiSelect/props/defaultProps.js +1 -4
  41. package/lib/MultiSelect/props/propTypes.js +8 -10
  42. package/lib/Select/GroupSelect.js +2 -4
  43. package/lib/Select/SelectWithAvatar.js +3 -8
  44. package/lib/Select/SelectWithIcon.js +3 -5
  45. package/lib/Select/props/defaultProps.js +1 -2
  46. package/lib/Select/props/propTypes.js +3 -8
  47. package/lib/common/common.module.css +6 -1
  48. package/lib/utils/dropDownUtils.js +21 -10
  49. package/package.json +4 -4
  50. package/result.json +1 -1
@@ -117,7 +117,9 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
117
117
  customClass = _this$props4.customClass,
118
118
  customProps = _this$props4.customProps,
119
119
  needMultiLineText = _this$props4.needMultiLineText,
120
- lhsBoxAlign = _this$props4.lhsBoxAlign;
120
+ secondaryValue = _this$props4.secondaryValue,
121
+ lhsAlignContent = _this$props4.lhsAlignContent,
122
+ lhsJustifyContent = _this$props4.lhsJustifyContent;
121
123
 
122
124
  var listA11y = _objectSpread({
123
125
  role: 'option'
@@ -133,11 +135,6 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
133
135
  customCheckBox = _customClass$customCh === void 0 ? '' : _customClass$customCh,
134
136
  _customClass$customLa = customClass.customLabel,
135
137
  customLabel = _customClass$customLa === void 0 ? '' : _customClass$customLa;
136
- var sizeClassMap = {
137
- small: _ListItemModule["default"].smallIconBox,
138
- medium: _ListItemModule["default"].mediumIconBox,
139
- large: _ListItemModule["default"].largeIconBox
140
- };
141
138
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
142
139
  a11y: listA11y,
143
140
  size: size,
@@ -146,7 +143,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
146
143
  isDisabled: isDisabled,
147
144
  active: active,
148
145
  autoHover: autoHover,
149
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
146
+ customClass: customListItem,
150
147
  dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
151
148
  dataSelectorId: dataSelectorId,
152
149
  onClick: this.onClick,
@@ -156,7 +153,8 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
156
153
  title: null,
157
154
  customProps: ListItemProps
158
155
  }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
159
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
156
+ align: lhsAlignContent,
157
+ className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
160
158
  dataId: "".concat(dataId ? dataId : value, "_checkBox")
161
159
  }, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
162
160
  checked: checked,
@@ -167,12 +165,18 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
167
165
  customCheckBox: customCheckBox,
168
166
  customLabel: customLabel
169
167
  }
170
- })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
168
+ })), value || secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
171
169
  flexible: true,
172
- shrink: true,
170
+ shrink: true
171
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
172
+ alignBox: "column"
173
+ }, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
173
174
  "data-title": isDisabled ? null : title,
174
175
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
175
- }, value));
176
+ }, value) : null, secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
177
+ "data-title": isDisabled ? null : secondaryValue,
178
+ className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value)
179
+ }, secondaryValue) : null)) : null);
176
180
  }
177
181
  }]);
178
182
 
@@ -125,7 +125,9 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
125
125
  customClass = _this$props4.customClass,
126
126
  customProps = _this$props4.customProps,
127
127
  needMultiLineText = _this$props4.needMultiLineText,
128
- lhsBoxAlign = _this$props4.lhsBoxAlign;
128
+ secondaryValue = _this$props4.secondaryValue,
129
+ lhsAlignContent = _this$props4.lhsAlignContent,
130
+ lhsJustifyContent = _this$props4.lhsJustifyContent;
129
131
  var _customProps$ListItem = customProps.ListItemProps,
130
132
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
131
133
  _customProps$Containe = customProps.ContainerProps,
@@ -138,11 +140,6 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
138
140
 
139
141
  var ariaHidden = listA11y.ariaHidden;
140
142
  var dataIdString = dataId ? "".concat(dataId.replace("'", '_')) : value.toLowerCase().replace("'", '_');
141
- var sizeClassMap = {
142
- small: _ListItemModule["default"].smallIconBox,
143
- medium: _ListItemModule["default"].mediumIconBox,
144
- large: _ListItemModule["default"].largeIconBox
145
- };
146
143
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
147
144
  a11y: listA11y,
148
145
  size: size,
@@ -153,8 +150,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
153
150
  autoHover: autoHover,
154
151
  needTick: needTick,
155
152
  needBorder: needBorder,
156
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customClass),
157
- align: needMultiLineText && iconClass && !iconName ? 'baseline' : 'vertical',
153
+ customClass: customClass,
158
154
  dataId: dataIdString,
159
155
  dataSelectorId: dataSelectorId,
160
156
  isLink: isLink,
@@ -168,7 +164,8 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
168
164
  customProps: ListItemProps
169
165
  }, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
170
166
  "aria-hidden": true,
171
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
167
+ align: lhsAlignContent,
168
+ className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
172
169
  dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
173
170
  }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
174
171
  iconClass: iconClass,
@@ -176,14 +173,20 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
176
173
  size: iconSize
177
174
  })), iconClass && !iconName ? /*#__PURE__*/_react["default"].createElement("span", {
178
175
  className: iconClass
179
- }) : null, value && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
176
+ }) : null, value || secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
180
177
  flexible: true,
181
- shrink: true,
178
+ shrink: true
179
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
180
+ alignBox: "column"
181
+ }, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
182
182
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value,
183
183
  "data-title": isDisabled ? null : title,
184
184
  dataId: "".concat(dataIdString, "_Text")
185
- }, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
186
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
185
+ }, value) : null, secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
186
+ "data-title": isDisabled ? null : secondaryValue,
187
+ className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value)
188
+ }, secondaryValue) : null)) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
189
+ className: _ListItemModule["default"].tickIcon,
187
190
  "aria-hidden": ariaHidden,
188
191
  dataId: "".concat(dataIdString, "_tickIcon"),
189
192
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -118,7 +118,9 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
118
118
  customClass = _this$props4.customClass,
119
119
  customProps = _this$props4.customProps,
120
120
  needMultiLineText = _this$props4.needMultiLineText,
121
- lhsBoxAlign = _this$props4.lhsBoxAlign;
121
+ secondaryValue = _this$props4.secondaryValue,
122
+ lhsAlignContent = _this$props4.lhsAlignContent,
123
+ lhsJustifyContent = _this$props4.lhsJustifyContent;
122
124
  var _customProps$ListItem = customProps.ListItemProps,
123
125
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
124
126
  _customProps$Containe = customProps.ContainerProps,
@@ -134,11 +136,6 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
134
136
  customRadio = _customClass$customRa === void 0 ? '' : _customClass$customRa,
135
137
  _customClass$customRa2 = customClass.customRadioWrap,
136
138
  customRadioWrap = _customClass$customRa2 === void 0 ? '' : _customClass$customRa2;
137
- var sizeClassMap = {
138
- small: _ListItemModule["default"].smallIconBox,
139
- medium: _ListItemModule["default"].mediumIconBox,
140
- large: _ListItemModule["default"].largeIconBox
141
- };
142
139
  return /*#__PURE__*/_react["default"].createElement(_ListContainer["default"], _extends({
143
140
  a11y: listA11y,
144
141
  size: size,
@@ -147,7 +144,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
147
144
  isDisabled: isDisabled,
148
145
  active: active,
149
146
  autoHover: autoHover,
150
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
147
+ customClass: customListItem,
151
148
  dataId: dataId,
152
149
  dataSelectorId: dataSelectorId,
153
150
  onClick: this.onClick,
@@ -157,7 +154,8 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
157
154
  title: null,
158
155
  customProps: ListItemProps
159
156
  }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
160
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(lhsBoxAlign == 'baseline' ? "".concat(_ListItemModule["default"].iconBoxTopAlign, " ").concat(sizeClassMap[size]) : ''),
157
+ align: lhsAlignContent,
158
+ className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
161
159
  dataId: "".concat(dataId, "_radio")
162
160
  }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
163
161
  checked: checked,
@@ -169,12 +167,18 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
169
167
  customRadio: customRadio,
170
168
  customRadioWrap: customRadioWrap
171
169
  }
172
- })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
170
+ })), value || secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
173
171
  flexible: true,
174
- shrink: true,
172
+ shrink: true
173
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
174
+ alignBox: "column"
175
+ }, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
175
176
  "data-title": disableTitle ? null : title,
176
177
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
177
- }, value));
178
+ }, value) : null, secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
179
+ "data-title": isDisabled ? null : secondaryValue,
180
+ className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value)
181
+ }, secondaryValue) : null)) : null);
178
182
  }
179
183
  }]);
180
184
 
@@ -37,8 +37,7 @@ var ListItemDefaultProps = {
37
37
  customClass: {},
38
38
  customProps: {},
39
39
  dataSelectorId: 'listItem',
40
- needMultiLineText: false,
41
- lhsBoxAlign: 'baseline'
40
+ needMultiLineText: false
42
41
  };
43
42
  exports.ListItemDefaultProps = ListItemDefaultProps;
44
43
  var ListItemWithAvatarDefaultProps = {
@@ -58,7 +57,7 @@ var ListItemWithAvatarDefaultProps = {
58
57
  customProps: {},
59
58
  dataSelectorId: 'listItemWithAvatar',
60
59
  needMultiLineText: false,
61
- lhsBoxAlign: 'baseline'
60
+ lhsAlignContent: 'start'
62
61
  };
63
62
  exports.ListItemWithAvatarDefaultProps = ListItemWithAvatarDefaultProps;
64
63
  var ListItemWithCheckBoxDefaultProps = {
@@ -74,7 +73,8 @@ var ListItemWithCheckBoxDefaultProps = {
74
73
  customProps: {},
75
74
  dataSelectorId: 'listItemWithCheckBox',
76
75
  needMultiLineText: false,
77
- lhsBoxAlign: 'baseline'
76
+ lhsAlignContent: 'start',
77
+ lhsJustifyContent: 'center'
78
78
  };
79
79
  exports.ListItemWithCheckBoxDefaultProps = ListItemWithCheckBoxDefaultProps;
80
80
  var ListItemWithIconDefaultProps = {
@@ -93,7 +93,8 @@ var ListItemWithIconDefaultProps = {
93
93
  customProps: {},
94
94
  dataSelectorId: 'listItemWithIcon',
95
95
  needMultiLineText: false,
96
- lhsBoxAlign: 'baseline'
96
+ lhsAlignContent: 'start',
97
+ lhsJustifyContent: 'center'
97
98
  };
98
99
  exports.ListItemWithIconDefaultProps = ListItemWithIconDefaultProps;
99
100
  var ListItemWithRadioDefaultProps = {
@@ -110,6 +111,7 @@ var ListItemWithRadioDefaultProps = {
110
111
  customProps: {},
111
112
  dataSelectorId: 'listItemWithRadio',
112
113
  needMultiLineText: false,
113
- lhsBoxAlign: 'baseline'
114
+ lhsAlignContent: 'start',
115
+ lhsJustifyContent: 'center'
114
116
  };
115
117
  exports.ListItemWithRadioDefaultProps = ListItemWithRadioDefaultProps;
@@ -75,7 +75,6 @@ var ListItem_Props = {
75
75
  ariaSelected: _propTypes["default"].bool
76
76
  }),
77
77
  needMultiLineText: _propTypes["default"].bool,
78
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
79
78
  customClass: _propTypes["default"].shape({
80
79
  customListItem: _propTypes["default"].string,
81
80
  customTickIcon: _propTypes["default"].string
@@ -89,7 +88,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
89
88
  active: _propTypes["default"].bool,
90
89
  autoHover: _propTypes["default"].bool,
91
90
  avatarPalette: _propTypes["default"].string
92
- }, _defineProperty(_ListItemWithAvatar_P, "avatarPalette", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataSelectorId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "disableTitle", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "getRef", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "highlight", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "id", _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _defineProperty(_ListItemWithAvatar_P, "imgSrc", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "index", _propTypes["default"].number), _defineProperty(_ListItemWithAvatar_P, "initial", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "isDisabled", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "isTeam", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "name", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "needAvatarTitle", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needBorder", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needTick", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "onClick", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "onMouseEnter", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "palette", _propTypes["default"].oneOf(['dark'])), _defineProperty(_ListItemWithAvatar_P, "size", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "title", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "value", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "a11y", _propTypes["default"].shape({
91
+ }, _defineProperty(_ListItemWithAvatar_P, "avatarPalette", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataSelectorId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "disableTitle", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "getRef", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "highlight", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "id", _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _defineProperty(_ListItemWithAvatar_P, "imgSrc", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "index", _propTypes["default"].number), _defineProperty(_ListItemWithAvatar_P, "initial", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "isDisabled", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "isTeam", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "name", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "needAvatarTitle", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needBorder", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needTick", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "onClick", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "onMouseEnter", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "palette", _propTypes["default"].oneOf(['dark'])), _defineProperty(_ListItemWithAvatar_P, "size", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "title", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "value", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "secondaryValue", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "lhsAlignContent", _propTypes["default"].oneOf(['start', 'end', 'center'])), _defineProperty(_ListItemWithAvatar_P, "a11y", _propTypes["default"].shape({
93
92
  role: _propTypes["default"].string,
94
93
  ariaSelected: _propTypes["default"].bool,
95
94
  ariaHidden: _propTypes["default"].bool
@@ -97,7 +96,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
97
96
  customListItem: _propTypes["default"].string,
98
97
  customAvatar: _propTypes["default"].string,
99
98
  customAvatarTeam: _propTypes["default"].string
100
- })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "lhsBoxAlign", _propTypes["default"].oneOf(['baseline', 'vertical'])), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
99
+ })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
101
100
  ListItemProps: _propTypes["default"].object,
102
101
  ContainerProps: _propTypes["default"].object,
103
102
  AvatarTeamProps: _propTypes["default"].exact(_propTypes3.propTypes),
@@ -122,12 +121,14 @@ var ListItemWithCheckBox_Props = {
122
121
  size: _propTypes["default"].string,
123
122
  title: _propTypes["default"].string,
124
123
  value: _propTypes["default"].string,
124
+ secondaryValue: _propTypes["default"].string,
125
+ lhsAlignContent: _propTypes["default"].oneOf(['start', 'end', 'center']),
126
+ lhsJustifyContent: _propTypes["default"].oneOf(['start', 'end', 'center']),
125
127
  a11y: _propTypes["default"].shape({
126
128
  role: _propTypes["default"].string,
127
129
  ariaSelected: _propTypes["default"].bool
128
130
  }),
129
131
  needMultiLineText: _propTypes["default"].bool,
130
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
131
132
  customClass: _propTypes["default"].shape({
132
133
  customListItem: _propTypes["default"].string,
133
134
  customCheckBox: _propTypes["default"].string,
@@ -158,13 +159,15 @@ var ListItemWithIcon_Props = {
158
159
  size: _propTypes["default"].string,
159
160
  title: _propTypes["default"].string,
160
161
  value: _propTypes["default"].string,
162
+ secondaryValue: _propTypes["default"].string,
163
+ lhsAlignContent: _propTypes["default"].oneOf(['start', 'end', 'center']),
164
+ lhsJustifyContent: _propTypes["default"].oneOf(['start', 'end', 'center']),
161
165
  a11y: _propTypes["default"].shape({
162
166
  role: _propTypes["default"].string,
163
167
  ariaSelected: _propTypes["default"].bool,
164
168
  ariaHidden: _propTypes["default"].bool
165
169
  }),
166
170
  needMultiLineText: _propTypes["default"].bool,
167
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
168
171
  customClass: _propTypes["default"].string,
169
172
  customProps: _propTypes["default"].shape({
170
173
  ListItemProps: _propTypes["default"].object
@@ -192,12 +195,14 @@ var ListItemWithRadio_Props = {
192
195
  size: _propTypes["default"].string,
193
196
  title: _propTypes["default"].string,
194
197
  value: _propTypes["default"].string,
198
+ secondaryValue: _propTypes["default"].string,
199
+ lhsAlignContent: _propTypes["default"].oneOf(['start', 'end', 'center']),
200
+ lhsJustifyContent: _propTypes["default"].oneOf(['start', 'end', 'center']),
195
201
  a11y: _propTypes["default"].shape({
196
202
  role: _propTypes["default"].string,
197
203
  ariaSelected: _propTypes["default"].bool
198
204
  }),
199
205
  needMultiLineText: _propTypes["default"].bool,
200
- lhsBoxAlign: _propTypes["default"].oneOf(['baseline', 'vertical']),
201
206
  customClass: _propTypes["default"].shape({
202
207
  customListItem: _propTypes["default"].string,
203
208
  customRadio: _propTypes["default"].string,
@@ -53,8 +53,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
53
53
 
54
54
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
55
55
 
56
- 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); }
57
-
58
56
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
59
57
 
60
58
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -974,10 +972,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
974
972
  needEffect = _this$props8.needEffect,
975
973
  autoComplete = _this$props8.autoComplete,
976
974
  getTargetRef = _this$props8.getTargetRef,
977
- isFocus = _this$props8.isFocus,
978
- customProps = _this$props8.customProps;
979
- var _customProps$Suggesti = customProps.SuggestionsProps,
980
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
975
+ isFocus = _this$props8.isFocus;
981
976
  var _i18nKeys = i18nKeys,
982
977
  _i18nKeys$clearText = _i18nKeys.clearText,
983
978
  clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
@@ -1141,7 +1136,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1141
1136
  a11y: {
1142
1137
  role: 'heading'
1143
1138
  }
1144
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
1139
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1145
1140
  suggestions: suggestions,
1146
1141
  selectedOptions: selectedOptionIds,
1147
1142
  getRef: _this5.suggestionItemRef,
@@ -1154,7 +1149,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1154
1149
  role: 'option'
1155
1150
  },
1156
1151
  dataId: "".concat(dataId, "_Options")
1157
- }, SuggestionsProps)));
1152
+ }));
1158
1153
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1159
1154
  options: revampedGroups,
1160
1155
  searchString: searchStr,
@@ -135,13 +135,16 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
135
135
  _this$state$options = _this$state.options,
136
136
  options = _this$state$options === void 0 ? dummyArray : _this$state$options,
137
137
  searchStr = _this$state.searchStr;
138
- var needLocalSearch = this.props.needLocalSearch;
138
+ var _this$props2 = this.props,
139
+ needLocalSearch = _this$props2.needLocalSearch,
140
+ searchFields = _this$props2.searchFields;
139
141
 
140
142
  var _this$getFilterSugges = this.getFilterSuggestions({
141
143
  options: options,
142
144
  selectedOptions: dummyArray,
143
145
  searchStr: (0, _Common.getSearchString)(searchStr),
144
- needSearch: needLocalSearch
146
+ needSearch: needLocalSearch,
147
+ searchFields: searchFields
145
148
  }),
146
149
  suggestions = _this$getFilterSugges.suggestions,
147
150
  suggestionIds = _this$getFilterSugges.suggestionIds;
@@ -157,14 +160,14 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
157
160
  var _this$state2 = this.state,
158
161
  optionsNormalize = _this$state2.optionsNormalize,
159
162
  searchStr = _this$state2.searchStr;
160
- var _this$props2 = this.props,
161
- onChange = _this$props2.onChange,
162
- _this$props2$needToCl = _this$props2.needToCloseOnSelect,
163
- needToCloseOnSelect = _this$props2$needToCl === void 0 ? false : _this$props2$needToCl,
164
- togglePopup = _this$props2.togglePopup,
165
- isSearchClearOnSelect = _this$props2.isSearchClearOnSelect,
166
- propSelectedOptions = _this$props2.selectedOptions,
167
- disabledOptions = _this$props2.disabledOptions;
163
+ var _this$props3 = this.props,
164
+ onChange = _this$props3.onChange,
165
+ _this$props3$needToCl = _this$props3.needToCloseOnSelect,
166
+ needToCloseOnSelect = _this$props3$needToCl === void 0 ? false : _this$props3$needToCl,
167
+ togglePopup = _this$props3.togglePopup,
168
+ isSearchClearOnSelect = _this$props3.isSearchClearOnSelect,
169
+ propSelectedOptions = _this$props3.selectedOptions,
170
+ disabledOptions = _this$props3.disabledOptions;
168
171
 
169
172
  var _filterSelectedOption = (0, _dropDownUtils.filterSelectedOptions)({
170
173
  selectedOptions: selectedOptions,
@@ -288,11 +291,11 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
288
291
  var _this2 = this;
289
292
 
290
293
  var oldAllSelectedOptionsDetails = this.allSelectedOptionsDetails;
291
- var _this$props3 = this.props,
292
- selectedOptions = _this$props3.selectedOptions,
293
- selectedOptionsLimit = _this$props3.selectedOptionsLimit,
294
- id = _this$props3.id,
295
- selectedOptionDetails = _this$props3.selectedOptionDetails;
294
+ var _this$props4 = this.props,
295
+ selectedOptions = _this$props4.selectedOptions,
296
+ selectedOptionsLimit = _this$props4.selectedOptionsLimit,
297
+ id = _this$props4.id,
298
+ selectedOptionDetails = _this$props4.selectedOptionDetails;
296
299
  var oldSelectedOptions = prevProps.selectedOptions,
297
300
  oldSelectedOptionsLimit = prevProps.selectedOptionsLimit;
298
301
  var oldCount = this.state.showedSelectedOptionsCount;
@@ -360,11 +363,11 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
360
363
  var _this3 = this;
361
364
 
362
365
  var showedSelectedOptionsCount = this.state.showedSelectedOptionsCount;
363
- var _this$props4 = this.props,
364
- selectedOptionsLimit = _this$props4.selectedOptionsLimit,
365
- selectedOptions = _this$props4.selectedOptions,
366
- getSelectedOptionDetails = _this$props4.getSelectedOptionDetails,
367
- removeClose = _this$props4.removeClose;
366
+ var _this$props5 = this.props,
367
+ selectedOptionsLimit = _this$props5.selectedOptionsLimit,
368
+ selectedOptions = _this$props5.selectedOptions,
369
+ getSelectedOptionDetails = _this$props5.getSelectedOptionDetails,
370
+ removeClose = _this$props5.removeClose;
368
371
  removeClose(e);
369
372
  var selectedOptionsLen = selectedOptions.length;
370
373
 
@@ -401,53 +404,54 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
401
404
  value: function render() {
402
405
  var _this4 = this;
403
406
 
404
- var _this$props5 = this.props,
405
- isReadOnly = _this$props5.isReadOnly,
406
- needSelectAll = _this$props5.needSelectAll,
407
- searchEmptyMessage = _this$props5.searchEmptyMessage,
408
- emptyMessage = _this$props5.emptyMessage,
409
- noMoreOptionsMessage = _this$props5.noMoreOptionsMessage,
410
- dropBoxSize = _this$props5.dropBoxSize,
411
- placeHolder = _this$props5.placeHolder,
412
- isPopupOpen = _this$props5.isPopupOpen,
413
- isPopupReady = _this$props5.isPopupReady,
414
- position = _this$props5.position,
415
- defaultDropBoxPosition = _this$props5.defaultDropBoxPosition,
416
- selectAllText = _this$props5.selectAllText,
417
- getContainerRef = _this$props5.getContainerRef,
418
- removeClose = _this$props5.removeClose,
419
- isAnimate = _this$props5.isAnimate,
420
- animationStyle = _this$props5.animationStyle,
421
- textBoxSize = _this$props5.textBoxSize,
422
- variant = _this$props5.variant,
423
- size = _this$props5.size,
424
- isDisabled = _this$props5.isDisabled,
425
- title = _this$props5.title,
426
- dataIdMultiSelectComp = _this$props5.dataIdMultiSelectComp,
427
- dataIdClearIcon = _this$props5.dataIdClearIcon,
428
- dataIdSelectAllEle = _this$props5.dataIdSelectAllEle,
429
- dataIdLoading = _this$props5.dataIdLoading,
430
- _this$props5$selected = _this$props5.selectedOptions,
431
- allselectedOptionIds = _this$props5$selected === void 0 ? [] : _this$props5$selected,
432
- listItemSize = _this$props5.listItemSize,
433
- needBorder = _this$props5.needBorder,
434
- i18nKeys = _this$props5.i18nKeys,
435
- htmlId = _this$props5.htmlId,
436
- a11y = _this$props5.a11y,
437
- borderColor = _this$props5.borderColor,
438
- isBoxPaddingNeed = _this$props5.isBoxPaddingNeed,
439
- getFooter = _this$props5.getFooter,
440
- customProps = _this$props5.customProps,
441
- needEffect = _this$props5.needEffect,
442
- disabledOptions = _this$props5.disabledOptions,
443
- isLoading = _this$props5.isLoading,
444
- dataSelectorId = _this$props5.dataSelectorId,
445
- customClass = _this$props5.customClass,
446
- isAbsolutePositioningNeeded = _this$props5.isAbsolutePositioningNeeded,
447
- positionsOffset = _this$props5.positionsOffset,
448
- targetOffset = _this$props5.targetOffset,
449
- isRestrictScroll = _this$props5.isRestrictScroll,
450
- isFocus = _this$props5.isFocus;
407
+ var _this$props6 = this.props,
408
+ isReadOnly = _this$props6.isReadOnly,
409
+ needSelectAll = _this$props6.needSelectAll,
410
+ searchEmptyMessage = _this$props6.searchEmptyMessage,
411
+ emptyMessage = _this$props6.emptyMessage,
412
+ noMoreOptionsMessage = _this$props6.noMoreOptionsMessage,
413
+ dropBoxSize = _this$props6.dropBoxSize,
414
+ placeHolder = _this$props6.placeHolder,
415
+ isPopupOpen = _this$props6.isPopupOpen,
416
+ isPopupReady = _this$props6.isPopupReady,
417
+ position = _this$props6.position,
418
+ defaultDropBoxPosition = _this$props6.defaultDropBoxPosition,
419
+ selectAllText = _this$props6.selectAllText,
420
+ getContainerRef = _this$props6.getContainerRef,
421
+ removeClose = _this$props6.removeClose,
422
+ isAnimate = _this$props6.isAnimate,
423
+ animationStyle = _this$props6.animationStyle,
424
+ textBoxSize = _this$props6.textBoxSize,
425
+ variant = _this$props6.variant,
426
+ size = _this$props6.size,
427
+ isDisabled = _this$props6.isDisabled,
428
+ title = _this$props6.title,
429
+ dataIdMultiSelectComp = _this$props6.dataIdMultiSelectComp,
430
+ dataIdClearIcon = _this$props6.dataIdClearIcon,
431
+ dataIdSelectAllEle = _this$props6.dataIdSelectAllEle,
432
+ dataIdLoading = _this$props6.dataIdLoading,
433
+ _this$props6$selected = _this$props6.selectedOptions,
434
+ allselectedOptionIds = _this$props6$selected === void 0 ? [] : _this$props6$selected,
435
+ listItemSize = _this$props6.listItemSize,
436
+ needBorder = _this$props6.needBorder,
437
+ i18nKeys = _this$props6.i18nKeys,
438
+ htmlId = _this$props6.htmlId,
439
+ a11y = _this$props6.a11y,
440
+ borderColor = _this$props6.borderColor,
441
+ isBoxPaddingNeed = _this$props6.isBoxPaddingNeed,
442
+ getFooter = _this$props6.getFooter,
443
+ customProps = _this$props6.customProps,
444
+ needEffect = _this$props6.needEffect,
445
+ disabledOptions = _this$props6.disabledOptions,
446
+ isLoading = _this$props6.isLoading,
447
+ dataSelectorId = _this$props6.dataSelectorId,
448
+ customClass = _this$props6.customClass,
449
+ isAbsolutePositioningNeeded = _this$props6.isAbsolutePositioningNeeded,
450
+ positionsOffset = _this$props6.positionsOffset,
451
+ targetOffset = _this$props6.targetOffset,
452
+ isRestrictScroll = _this$props6.isRestrictScroll,
453
+ isFocus = _this$props6.isFocus,
454
+ secondaryField = _this$props6.secondaryField;
451
455
  var _customProps$Suggesti = customProps.SuggestionsProps,
452
456
  SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
453
457
  _customProps$DropBoxP = customProps.DropBoxProps,
@@ -615,6 +619,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
615
619
  onMouseEnter: _this4.handleMouseEnter,
616
620
  needTick: true,
617
621
  listItemSize: listItemSize,
622
+ secondaryField: secondaryField,
618
623
  a11y: {
619
624
  role: 'option'
620
625
  },
@@ -354,14 +354,16 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
354
354
  var _this$props4 = this.props,
355
355
  selectedOptions = _this$props4.selectedOptions,
356
356
  needLocalSearch = _this$props4.needLocalSearch,
357
- keepSelectedOptions = _this$props4.keepSelectedOptions;
357
+ keepSelectedOptions = _this$props4.keepSelectedOptions,
358
+ searchFields = _this$props4.searchFields;
358
359
 
359
360
  var _this$getFilterSugges = this.getFilterSuggestions({
360
361
  options: options,
361
362
  selectedOptions: selectedOptions,
362
363
  searchStr: (0, _Common.getSearchString)(searchStr),
363
364
  needSearch: needLocalSearch,
364
- keepSelectedOptions: keepSelectedOptions
365
+ keepSelectedOptions: keepSelectedOptions,
366
+ searchFields: searchFields
365
367
  }),
366
368
  suggestions = _this$getFilterSugges.suggestions,
367
369
  suggestionIds = _this$getFilterSugges.suggestionIds;
@@ -1094,9 +1096,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1094
1096
  isLoading = _this$props15.isLoading,
1095
1097
  selectAllText = _this$props15.selectAllText,
1096
1098
  needSelectAll = _this$props15.needSelectAll,
1097
- customProps = _this$props15.customProps;
1098
- var _customProps$Suggesti = customProps.SuggestionsProps,
1099
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
1099
+ secondaryField = _this$props15.secondaryField;
1100
1100
  var _this$state9 = this.state,
1101
1101
  selectedOptions = _this$state9.selectedOptions,
1102
1102
  searchStr = _this$state9.searchStr,
@@ -1173,7 +1173,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1173
1173
  eleRef: this.suggestionContainerRef
1174
1174
  }, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
1175
1175
  className: _MultiSelectModule["default"][palette]
1176
- }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
1176
+ }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1177
1177
  suggestions: suggestions,
1178
1178
  getRef: this.suggestionItemRef,
1179
1179
  hoverOption: hoverOption,
@@ -1183,10 +1183,11 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1183
1183
  dataId: "".concat(dataId, "_Options"),
1184
1184
  palette: palette,
1185
1185
  selectedOptions: selectedOptionIds,
1186
+ secondaryField: secondaryField,
1186
1187
  a11y: {
1187
1188
  role: 'option'
1188
1189
  }
1189
- }, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1190
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1190
1191
  isLoading: isFetchingOptions,
1191
1192
  options: options,
1192
1193
  searchString: searchStr,
@@ -147,7 +147,8 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
147
147
  needEffect = _this$props.needEffect,
148
148
  isLoading = _this$props.isLoading,
149
149
  keepSelectedOptions = _this$props.keepSelectedOptions,
150
- customProps = _this$props.customProps;
150
+ customProps = _this$props.customProps,
151
+ secondaryField = _this$props.secondaryField;
151
152
  var _customProps$Suggesti = customProps.SuggestionsProps,
152
153
  SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
153
154
  i18nKeys = Object.assign({}, _defaultProps2.defaultProps.i18nKeys, i18nKeys, {
@@ -232,6 +233,7 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
232
233
  dataId: "".concat(dataId, "_Options"),
233
234
  palette: palette,
234
235
  selectedOptions: selectedOptionIds,
236
+ secondaryField: secondaryField,
235
237
  a11y: {
236
238
  role: 'option'
237
239
  }