@zohodesk/components 1.0.0-temp-192 → 1.0.0-temp-193

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 (43) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/es/DateTime/DateTime.js +8 -2
  3. package/es/DateTime/DateWidget.js +14 -3
  4. package/es/DateTime/Time.js +30 -13
  5. package/es/DateTime/props/defaultProps.js +4 -2
  6. package/es/DateTime/props/propTypes.js +6 -3
  7. package/es/ListItem/ListItem.js +2 -2
  8. package/es/ListItem/ListItem.module.css +18 -85
  9. package/es/ListItem/ListItemWithAvatar.js +3 -3
  10. package/es/ListItem/ListItemWithIcon.js +2 -2
  11. package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -9
  12. package/es/MultiSelect/MultiSelect.js +3 -9
  13. package/es/MultiSelect/MultiSelectWithAvatar.js +1 -3
  14. package/es/MultiSelect/Suggestions.js +4 -8
  15. package/es/MultiSelect/props/defaultProps.js +5 -9
  16. package/es/MultiSelect/props/propTypes.js +3 -7
  17. package/es/Select/GroupSelect.js +3 -9
  18. package/es/Select/SelectWithAvatar.js +3 -9
  19. package/es/Select/SelectWithIcon.js +3 -9
  20. package/es/Select/props/defaultProps.js +3 -6
  21. package/es/Select/props/propTypes.js +3 -6
  22. package/lib/DateTime/DateTime.js +13 -2
  23. package/lib/DateTime/DateWidget.js +19 -3
  24. package/lib/DateTime/Time.js +35 -13
  25. package/lib/DateTime/props/defaultProps.js +4 -2
  26. package/lib/DateTime/props/propTypes.js +6 -3
  27. package/lib/ListItem/ListItem.js +2 -2
  28. package/lib/ListItem/ListItem.module.css +18 -85
  29. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  30. package/lib/ListItem/ListItemWithIcon.js +2 -2
  31. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -7
  32. package/lib/MultiSelect/MultiSelect.js +3 -8
  33. package/lib/MultiSelect/MultiSelectWithAvatar.js +1 -3
  34. package/lib/MultiSelect/Suggestions.js +4 -8
  35. package/lib/MultiSelect/props/defaultProps.js +5 -9
  36. package/lib/MultiSelect/props/propTypes.js +6 -9
  37. package/lib/Select/GroupSelect.js +3 -8
  38. package/lib/Select/SelectWithAvatar.js +3 -8
  39. package/lib/Select/SelectWithIcon.js +3 -8
  40. package/lib/Select/props/defaultProps.js +3 -5
  41. package/lib/Select/props/propTypes.js +3 -6
  42. package/package.json +3 -3
  43. package/result.json +1 -1
@@ -17,9 +17,8 @@
17
17
  }[dir=ltr] .varClass {
18
18
  --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
19
19
  }[dir=rtl] .varClass {
20
- --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
20
+ --listitem_avatar_margin: 0 0 0 var(--zd_size15);
21
21
  }
22
-
23
22
  .list {
24
23
  composes: varClass;
25
24
  position: relative;
@@ -35,84 +34,62 @@
35
34
  border-color: var(--listitem_border_color);
36
35
  cursor: pointer;
37
36
  }
38
-
39
37
  .list, .default, .secondary {
40
38
  background-color: var(--listitem_bg_color);
41
39
  }
42
-
43
40
  [dir=ltr] .withBorder {
44
- --listitem_border_width: 0 0 0 1px
45
- /*rtl: 0 1px 0 0*/
46
- ;
41
+ --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
47
42
  }
48
-
49
43
  [dir=rtl] .withBorder {
50
- --listitem_border_width: 0 0 0 1px ;
44
+ --listitem_border_width: 0 1px 0 0;
51
45
  }
52
-
53
46
  .active {
54
47
  --listitem_border_color: var(--zdt_listitem_active_border);
55
48
  }
56
-
57
49
  [dir=ltr] .small {
58
50
  --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
59
51
  }
60
-
61
52
  [dir=rtl] .small {
62
- --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
53
+ --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
63
54
  }
64
-
65
55
  .medium {
66
56
  --listitem_padding: var(--zd_size7) var(--zd_size20);
67
57
  --listitem_min_height: var(--zd_size35);
68
58
  }
69
-
70
59
  .large {
71
60
  --listitem_height: var(--zd_size48);
72
61
  }
73
-
74
62
  [dir=ltr] .large {
75
63
  --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
76
64
  }
77
-
78
65
  [dir=rtl] .large {
79
- --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
66
+ --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
80
67
  }
81
-
82
68
  .value,
83
69
  .children {
84
70
  composes: dotted from '../common/common.module.css';
85
71
  }
86
-
87
- .value {
72
+ .value, .multiLineValue {
88
73
  line-height: 1.5385;
89
74
  }
90
-
91
- .multiLineValue {
92
- line-height: 1.3076;
75
+ .multiLineValue{
93
76
  word-break: break-word;
94
- -webkit-line-clamp: 5;
95
- composes: clamp from '../common/common.module.css';
77
+ composes: clamp from '../common/common.module.css'
96
78
  }
97
-
98
79
  .iconBox {
99
80
  width: var(--zd_size20) ;
100
81
  text-align: center;
101
82
  }
102
-
103
83
  [dir=ltr] .iconBox {
104
84
  margin-right: var(--zd_size10) ;
105
85
  }
106
-
107
86
  [dir=rtl] .iconBox {
108
87
  margin-left: var(--zd_size10) ;
109
88
  }
110
-
111
89
  .iconBox,
112
90
  .leftAvatar {
113
91
  font-size: 0 ;
114
92
  }
115
-
116
93
  .leftAvatar {
117
94
  margin: var(--listitem_avatar_margin);
118
95
  }
@@ -120,78 +97,61 @@
120
97
  .defaultHover, .primaryHover, .secondaryHover, .darkHover {
121
98
  background-color: var(--listitem_highlight_bg_color);
122
99
  }
123
-
124
100
  .activewithBorder {
125
101
  --listitem_border_color: var(--zdt_listitem_active_border);
126
102
  }
127
-
128
103
  [dir=ltr] .activewithBorder {
129
- --listitem_border_width: 0 0 0 1px
130
- /*rtl: 0 1px 0 0*/
131
- ;
104
+ --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
132
105
  }
133
-
134
106
  [dir=rtl] .activewithBorder {
135
- --listitem_border_width: 0 0 0 1px ;
107
+ --listitem_border_width: 0 1px 0 0;
136
108
  }
137
109
 
138
110
  .defaultHover,
139
111
  .defaultEffect:hover
140
-
141
112
  /* .defaultEffect:focus */
142
- {
113
+ {
143
114
  --listitem_bg_color: var(--zdt_listitem_highlight_bg);
144
115
  }
145
-
146
116
  .primaryHover,
147
117
  .primaryEffect:hover
148
-
149
118
  /* .primaryEffect:focus */
150
- {
119
+ {
151
120
  --listitem_bg_color: var(--zdt_listitem_primary_bg);
152
121
  --listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
153
122
  }
154
-
155
123
  .secondaryHover,
156
124
  .secondaryEffect:hover
157
-
158
125
  /* .secondaryEffect:focus */
159
- {
126
+ {
160
127
  --listitem_bg_color: var(--zdt_listitem_secondary_bg);
161
128
  --listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
162
129
  --listitem_text_color: var(--zdt_listitem_secondary_text);
163
130
  }
164
-
165
131
  .darkHover,
166
132
  .darkEffect:hover
167
-
168
133
  /* .darkEffect:focus */
169
- {
134
+ {
170
135
  --listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
171
136
  --listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
172
137
  }
173
-
174
138
  .activedefault, .activeprimary, .activesecondary, .activedark {
175
139
  background-color: var(--listitem_active_bg_color);
176
140
  }
177
-
178
141
  .activedefault,
179
142
  .activedefault:hover,
180
143
  .activeprimary,
181
144
  .activeprimary:hover {
182
145
  --listitem_active_bg_color: var(--zdt_listitem_primary_bg);
183
146
  }
184
-
185
147
  .activesecondary {
186
148
  --listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
187
149
  --listitem_text_color: var(--zdt_listitem_secondary_text);
188
150
  }
189
-
190
151
  .dark {
191
152
  --listitem_bg_color: var(--zdt_listitem_dark_bg);
192
153
  --listitem_text_color: var(--zdt_listitem_dark_text);
193
154
  }
194
-
195
155
  .activedark {
196
156
  --listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
197
157
  }
@@ -210,63 +170,36 @@
210
170
  [dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
211
171
  left: var(--zd_size20) ;
212
172
  }
213
-
214
173
  .defaultTick {
215
174
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
216
175
  }
217
-
218
176
  .darkTick {
219
177
  --listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
220
178
  }
221
-
222
- .defaultTick>i {
179
+ .defaultTick > i {
223
180
  display: block;
224
181
  }
225
-
226
182
  [dir=ltr] .smallwithTick {
227
183
  --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
228
184
  }
229
-
230
185
  [dir=rtl] .smallwithTick {
231
- --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
186
+ --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size39);
232
187
  }
233
-
234
188
  [dir=ltr] .mediumwithTick {
235
189
  --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
236
190
  }
237
-
238
191
  [dir=rtl] .mediumwithTick {
239
- --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
192
+ --listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
240
193
  }
241
-
242
194
  [dir=ltr] .largewithTick {
243
195
  --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
244
196
  }
245
-
246
197
  [dir=rtl] .largewithTick {
247
- --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
198
+ --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
248
199
  }
249
-
250
200
  .responsiveHeight {
251
201
  --listitem_min_height: var(--zd_size45);
252
202
  font-size: var(--zd_font_size15) ;
253
203
  padding-top: var(--zd_size10) ;
254
204
  padding-bottom: var(--zd_size10) ;
255
205
  }
256
-
257
- .autoHeight {
258
- height: auto ;
259
- }
260
-
261
- .tickIconCenter {
262
- top: 50% ;
263
- transform: translateY(-50%);
264
- }
265
-
266
- .txtAlignBaseLine {
267
- align-items: baseline;
268
- }
269
-
270
- .alignSelfTop {
271
- align-self: start;
272
- }
@@ -158,7 +158,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
158
158
  autoHover: autoHover,
159
159
  needTick: needTick,
160
160
  needBorder: needBorder,
161
- customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
161
+ customClass: customListItem,
162
162
  dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
163
163
  dataSelectorId: "".concat(dataSelectorId),
164
164
  onClick: this.handleClick,
@@ -168,7 +168,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
168
168
  title: null,
169
169
  customProps: ListItemProps
170
170
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
171
- className: "".concat(needMultiLineText ? _ListItemModule["default"].alignSelfTop : '', " ").concat(_ListItemModule["default"].leftAvatar)
171
+ className: _ListItemModule["default"].leftAvatar
172
172
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
173
173
  name: name,
174
174
  size: "small",
@@ -195,7 +195,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
195
195
  "data-title": isDisabled ? null : title,
196
196
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
197
197
  }, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
198
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
198
+ className: _ListItemModule["default"].tickIcon,
199
199
  "aria-hidden": ariaHidden,
200
200
  dataId: "".concat(dataIdString, "_tickIcon"),
201
201
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -147,7 +147,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
147
147
  autoHover: autoHover,
148
148
  needTick: needTick,
149
149
  needBorder: needBorder,
150
- customClass: "".concat(needMultiLineText && iconClass && !iconName ? _ListItemModule["default"].txtAlignBaseLine : '', " ").concat(customClass),
150
+ customClass: customClass,
151
151
  dataId: dataIdString,
152
152
  dataSelectorId: dataSelectorId,
153
153
  isLink: isLink,
@@ -176,7 +176,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
176
176
  "data-title": isDisabled ? null : title,
177
177
  dataId: "".concat(dataIdString, "_Text")
178
178
  }, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
179
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
179
+ className: _ListItemModule["default"].tickIcon,
180
180
  "aria-hidden": ariaHidden,
181
181
  dataId: "".concat(dataIdString, "_tickIcon"),
182
182
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -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."); }
@@ -962,9 +960,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
962
960
  a11y = _this$props8.a11y,
963
961
  palette = _this$props8.palette,
964
962
  needEffect = _this$props8.needEffect,
965
- autoComplete = _this$props8.autoComplete,
966
- customProps = _this$props8.customProps;
967
- var suggestionsProps = customProps.suggestionsProps;
963
+ autoComplete = _this$props8.autoComplete;
968
964
  var _i18nKeys = i18nKeys,
969
965
  _i18nKeys$clearText = _i18nKeys.clearText,
970
966
  clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
@@ -1120,7 +1116,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1120
1116
  a11y: {
1121
1117
  role: 'heading'
1122
1118
  }
1123
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
1119
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1124
1120
  suggestions: suggestions,
1125
1121
  selectedOptions: selectedOptionIds,
1126
1122
  getRef: _this5.suggestionItemRef,
@@ -1132,7 +1128,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1132
1128
  a11y: {
1133
1129
  role: 'option'
1134
1130
  }
1135
- }, suggestionsProps)));
1131
+ }));
1136
1132
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1137
1133
  options: revampedGroups,
1138
1134
  searchString: searchStr,
@@ -57,8 +57,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
57
57
 
58
58
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
59
59
 
60
- 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); }
61
-
62
60
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
63
61
 
64
62
  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."); }
@@ -1070,10 +1068,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1070
1068
  boxSize = _this$props15.boxSize,
1071
1069
  isLoading = _this$props15.isLoading,
1072
1070
  selectAllText = _this$props15.selectAllText,
1073
- needSelectAll = _this$props15.needSelectAll,
1074
- customProps = _this$props15.customProps;
1075
- var _customProps$suggesti = customProps.suggestionsProps,
1076
- suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
1071
+ needSelectAll = _this$props15.needSelectAll;
1077
1072
  var _this$state9 = this.state,
1078
1073
  selectedOptions = _this$state9.selectedOptions,
1079
1074
  searchStr = _this$state9.searchStr,
@@ -1145,7 +1140,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1145
1140
  eleRef: this.suggestionContainerRef
1146
1141
  }, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
1147
1142
  className: _MultiSelectModule["default"][palette]
1148
- }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
1143
+ }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1149
1144
  suggestions: suggestions,
1150
1145
  getRef: this.suggestionItemRef,
1151
1146
  hoverOption: hoverOption,
@@ -1158,7 +1153,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1158
1153
  a11y: {
1159
1154
  role: 'option'
1160
1155
  }
1161
- }, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1156
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1162
1157
  isLoading: isFetchingOptions,
1163
1158
  options: options,
1164
1159
  searchString: searchStr,
@@ -141,7 +141,6 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
141
141
  needEffect = _this$props.needEffect,
142
142
  isLoading = _this$props.isLoading,
143
143
  keepSelectedOptions = _this$props.keepSelectedOptions,
144
- needMultiLineText = _this$props.needMultiLineText,
145
144
  customProps = _this$props.customProps;
146
145
  var _customProps$Suggesti = customProps.SuggestionsProps,
147
146
  SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
@@ -224,8 +223,7 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
224
223
  selectedOptions: selectedOptionIds,
225
224
  a11y: {
226
225
  role: 'option'
227
- },
228
- needMultiLineText: needMultiLineText
226
+ }
229
227
  }, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
230
228
  isLoading: isFetchingOptions,
231
229
  options: options,
@@ -83,8 +83,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
83
83
  avatarPalette = _this$props.avatarPalette,
84
84
  palette = _this$props.palette,
85
85
  htmlId = _this$props.htmlId,
86
- a11y = _this$props.a11y,
87
- needMultiLineText = _this$props.needMultiLineText;
86
+ a11y = _this$props.a11y;
88
87
  var ariaParentRole = a11y.ariaParentRole,
89
88
  ariaMultiselectable = a11y.ariaMultiselectable;
90
89
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
@@ -144,8 +143,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
144
143
  size: listItemSize,
145
144
  avatarPalette: avatarPalette,
146
145
  palette: palette,
147
- a11y: list_a11y,
148
- needMultiLineText: needMultiLineText
146
+ a11y: list_a11y
149
147
  }));
150
148
  } else if (optionType === 'icon') {
151
149
  return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({}, commonProps, {
@@ -165,8 +163,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
165
163
  iconSize: iconSize,
166
164
  size: listItemSize,
167
165
  palette: palette,
168
- a11y: list_a11y,
169
- needMultiLineText: needMultiLineText
166
+ a11y: list_a11y
170
167
  }));
171
168
  }
172
169
 
@@ -185,8 +182,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
185
182
  active: isActive,
186
183
  size: listItemSize,
187
184
  palette: palette,
188
- a11y: list_a11y,
189
- needMultiLineText: needMultiLineText
185
+ a11y: list_a11y
190
186
  }));
191
187
  })));
192
188
  }
@@ -43,8 +43,7 @@ var AdvancedGroupMultiSelect_defaultProps = {
43
43
  needEffect: true,
44
44
  palette: 'default',
45
45
  isLoading: false,
46
- dataSelectorId: 'advancedGroupMultiSelect',
47
- customProps: {}
46
+ dataSelectorId: 'advancedGroupMultiSelect'
48
47
  };
49
48
  exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
50
49
  var AdvancedMultiSelect_defaultProps = {
@@ -122,8 +121,7 @@ var MultiSelect_defaultProps = {
122
121
  keepSelectedOptions: false,
123
122
  selectedOptionsCount: 0,
124
123
  cardHeaderName: '',
125
- needResponsive: true,
126
- customProps: {}
124
+ needResponsive: true
127
125
  };
128
126
  exports.MultiSelect_defaultProps = MultiSelect_defaultProps;
129
127
  var MultiSelectHeader_defaultProps = {
@@ -159,9 +157,8 @@ var MultiSelectWithAvatar_defaultProps = {
159
157
  isLoading: false,
160
158
  dataSelectorId: 'multiSelectWithAvatar',
161
159
  keepSelectedOptions: false,
162
- needResponsive: true,
163
- needMultiLineText: false,
164
- customProps: {}
160
+ customProps: {},
161
+ needResponsive: true
165
162
  };
166
163
  exports.MultiSelectWithAvatar_defaultProps = MultiSelectWithAvatar_defaultProps;
167
164
  var SelectedOptions_defaultProps = {
@@ -169,7 +166,6 @@ var SelectedOptions_defaultProps = {
169
166
  };
170
167
  exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
171
168
  var Suggestions_defaultProps = {
172
- a11y: {},
173
- needMultiLineText: false
169
+ a11y: {}
174
170
  };
175
171
  exports.Suggestions_defaultProps = Suggestions_defaultProps;
@@ -7,8 +7,6 @@ exports.Suggestions_propTypes = exports.SelectedOptions_propTypes = exports.Mult
7
7
 
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
- var _AdvancedGroupMultiSe;
11
-
12
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
11
 
14
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; }
@@ -123,8 +121,7 @@ var MultiSelect_propTypes = {
123
121
  needSelectAll: _propTypes["default"].bool,
124
122
  selectAllText: _propTypes["default"].string,
125
123
  setAriaId: _propTypes["default"].string,
126
- ariaErrorId: _propTypes["default"].string,
127
- customProps: _propTypes["default"].string
124
+ ariaErrorId: _propTypes["default"].string
128
125
  };
129
126
  exports.MultiSelect_propTypes = MultiSelect_propTypes;
130
127
  var MultiSelectHeader_propTypes = {
@@ -142,7 +139,6 @@ var MultiSelectWithAvatar_propTypes = _objectSpread({
142
139
  photoURL: _propTypes["default"].string
143
140
  }))]).isRequired,
144
141
  imageField: _propTypes["default"].string,
145
- needMultiLineText: _propTypes["default"].string,
146
142
  customProps: _propTypes["default"].shape({
147
143
  SuggestionsProps: _propTypes["default"].object,
148
144
  DropBoxProps: _propTypes["default"].object
@@ -194,11 +190,11 @@ var Suggestions_propTypes = {
194
190
  logo: _propTypes["default"].string,
195
191
  optionType: _propTypes["default"].string,
196
192
  listItemProps: _propTypes["default"].object
197
- })),
198
- needMultiLineText: _propTypes["default"].bool
193
+ }))
199
194
  };
200
195
  exports.Suggestions_propTypes = Suggestions_propTypes;
201
- var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
196
+
197
+ var AdvancedGroupMultiSelect_propTypes = _defineProperty({
202
198
  animationStyle: _propTypes["default"].string,
203
199
  autoComplete: _propTypes["default"].bool,
204
200
  borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
@@ -262,7 +258,8 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
262
258
  needToCloseOnSelect: _propTypes["default"].func,
263
259
  searchStr: _propTypes["default"].string,
264
260
  children: _propTypes["default"].node
265
- }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].string), _AdvancedGroupMultiSe);
261
+ }, "dataSelectorId", _propTypes["default"].string);
262
+
266
263
  exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
267
264
 
268
265
  var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
@@ -51,8 +51,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
51
51
 
52
52
  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; }
53
53
 
54
- 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); }
55
-
56
54
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
57
55
 
58
56
  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."); }
@@ -662,10 +660,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
662
660
  htmlId = _this$props9.htmlId,
663
661
  iconOnHover = _this$props9.iconOnHover,
664
662
  isLoading = _this$props9.isLoading,
665
- dataSelectorId = _this$props9.dataSelectorId,
666
- customProps = _this$props9.customProps;
667
- var _customProps$suggesti = customProps.suggestionsProps,
668
- suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
663
+ dataSelectorId = _this$props9.dataSelectorId;
669
664
  i18nKeys = Object.assign({}, i18nKeys, {
670
665
  emptyText: i18nKeys.emptyText || emptyMessage,
671
666
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -825,7 +820,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
825
820
  a11y: {
826
821
  role: 'heading'
827
822
  }
828
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
823
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
829
824
  activeId: selectedId,
830
825
  suggestions: options,
831
826
  getRef: _this7.suggestionItemRef,
@@ -840,7 +835,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
840
835
  ariaParentRole: 'listbox',
841
836
  role: 'option'
842
837
  }
843
- }, suggestionsProps)));
838
+ }));
844
839
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
845
840
  options: revampedGroups,
846
841
  searchString: searchStr,
@@ -51,8 +51,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
51
51
 
52
52
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
53
53
 
54
- 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); }
55
-
56
54
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
57
55
 
58
56
  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); } }
@@ -210,10 +208,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
210
208
  htmlId = _this$props.htmlId,
211
209
  needEffect = _this$props.needEffect,
212
210
  isLoading = _this$props.isLoading,
213
- dataSelectorId = _this$props.dataSelectorId,
214
- customProps = _this$props.customProps;
215
- var _customProps$suggesti = customProps.suggestionsProps,
216
- suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
211
+ dataSelectorId = _this$props.dataSelectorId;
217
212
  i18nKeys = Object.assign({}, i18nKeys, {
218
213
  emptyText: i18nKeys.emptyText || emptyMessage,
219
214
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -346,7 +341,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
346
341
  a11y: {
347
342
  role: 'heading'
348
343
  }
349
- })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
344
+ })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
350
345
  activeId: selectedId,
351
346
  suggestions: suggestions,
352
347
  getRef: _this2.suggestionItemRef,
@@ -362,7 +357,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
362
357
  ariaParentRole: 'listbox',
363
358
  role: 'option'
364
359
  }
365
- }, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
360
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
366
361
  isLoading: isFetchingOptions,
367
362
  options: options,
368
363
  searchString: searchStr,
@@ -45,8 +45,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
45
45
 
46
46
  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; }
47
47
 
48
- 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); }
49
-
50
48
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
51
49
 
52
50
  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); } }
@@ -412,10 +410,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
412
410
  i18nKeys = _this$props7.i18nKeys,
413
411
  htmlId = _this$props7.htmlId,
414
412
  isLoading = _this$props7.isLoading,
415
- dataSelectorId = _this$props7.dataSelectorId,
416
- customProps = _this$props7.customProps;
417
- var _customProps$listItem = customProps.listItemProps,
418
- listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
413
+ dataSelectorId = _this$props7.dataSelectorId;
419
414
  i18nKeys = Object.assign({}, i18nKeys, {
420
415
  emptyText: i18nKeys.emptyText || emptyMessage,
421
416
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -541,7 +536,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
541
536
  var iconName = options.iconName,
542
537
  iconSize = options.iconSize,
543
538
  iconColor = options.iconColor;
544
- return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
539
+ return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
545
540
  key: options[idKey],
546
541
  value: options[valueKey],
547
542
  size: "medium",
@@ -565,7 +560,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
565
560
  ariaSelected: selectedId === options[idKey],
566
561
  ariaLabel: options[valueKey]
567
562
  }
568
- }, listItemProps));
563
+ });
569
564
  })) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
570
565
  isLoading: isFetchingOptions,
571
566
  options: options,