@zohodesk/components 1.0.0-temp-199.17 → 1.0.0-temp-225

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.
@@ -1,6 +1,6 @@
1
1
  /**** Libraries ****/
2
2
  import React from 'react';
3
- import { Box } from "../Layout";
3
+ import { Container, Box } from "../Layout";
4
4
  import ListContainer from "./ListContainer";
5
5
  import { ListItemDefaultProps } from "./props/defaultProps";
6
6
  import { ListItem_Props } from "./props/propTypes";
@@ -70,7 +70,8 @@ export default class ListItem extends React.Component {
70
70
  a11y,
71
71
  customClass,
72
72
  customProps,
73
- needMultiLineText
73
+ needMultiLineText,
74
+ secondaryValue
74
75
  } = this.props;
75
76
  let {
76
77
  ListItemProps = {},
@@ -113,6 +114,11 @@ export default class ListItem extends React.Component {
113
114
  eleRef: this.getRef,
114
115
  customProps: ListItemProps,
115
116
  ...ContainerProps
117
+ }, /*#__PURE__*/React.createElement(Container, {
118
+ alignBox: "column"
119
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Container, {
120
+ alignBox: "row",
121
+ align: "vertical"
116
122
  }, value ? /*#__PURE__*/React.createElement(Box, {
117
123
  shrink: true,
118
124
  adjust: true,
@@ -121,7 +127,10 @@ export default class ListItem extends React.Component {
121
127
  shrink: true,
122
128
  adjust: true,
123
129
  className: style.children
124
- }, children) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
130
+ }, children) : null)), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
131
+ "data-title": isDisabled ? null : secondaryValue,
132
+ className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
133
+ }, secondaryValue) : null), needTick && active ? /*#__PURE__*/React.createElement(Box, {
125
134
  className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}`,
126
135
  "aria-hidden": ariaHidden,
127
136
  dataId: `${dataIdString}_tickIcon`,
@@ -884,12 +884,8 @@ class AdvancedGroupMultiSelect extends React.Component {
884
884
  needEffect,
885
885
  autoComplete,
886
886
  getTargetRef,
887
- isFocus,
888
- customProps
887
+ isFocus
889
888
  } = this.props;
890
- const {
891
- SuggestionsProps = {}
892
- } = customProps;
893
889
  let {
894
890
  clearText = 'Clear all'
895
891
  } = i18nKeys;
@@ -1069,8 +1065,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1069
1065
  a11y: {
1070
1066
  role: 'option'
1071
1067
  },
1072
- dataId: `${dataId}_Options`,
1073
- ...SuggestionsProps
1068
+ dataId: `${dataId}_Options`
1074
1069
  }));
1075
1070
  }) : /*#__PURE__*/React.createElement(EmptyState, {
1076
1071
  options: revampedGroups,
@@ -1021,12 +1021,8 @@ export class MultiSelectComponent extends React.Component {
1021
1021
  boxSize,
1022
1022
  isLoading,
1023
1023
  selectAllText,
1024
- needSelectAll,
1025
- customProps
1024
+ needSelectAll
1026
1025
  } = this.props;
1027
- const {
1028
- SuggestionsProps = {}
1029
- } = customProps;
1030
1026
  const {
1031
1027
  selectedOptions,
1032
1028
  searchStr,
@@ -1116,8 +1112,7 @@ export class MultiSelectComponent extends React.Component {
1116
1112
  selectedOptions: selectedOptionIds,
1117
1113
  a11y: {
1118
1114
  role: 'option'
1119
- },
1120
- ...SuggestionsProps
1115
+ }
1121
1116
  }) : /*#__PURE__*/React.createElement(EmptyState, {
1122
1117
  isLoading: isFetchingOptions,
1123
1118
  options: options,
@@ -28,23 +28,18 @@ export default class Suggestions extends React.PureComponent {
28
28
  palette,
29
29
  htmlId,
30
30
  a11y,
31
- customClass,
32
31
  needMultiLineText
33
32
  } = this.props;
34
33
  const {
35
34
  ariaParentRole,
36
35
  ariaMultiselectable
37
36
  } = a11y;
38
- const {
39
- containerClass = ''
40
- } = customClass;
41
37
  return /*#__PURE__*/React.createElement(Container, {
42
38
  isCover: false,
43
39
  role: ariaParentRole,
44
40
  id: htmlId,
45
41
  tabindex: "0",
46
- "aria-multiselectable": ariaMultiselectable,
47
- className: containerClass
42
+ "aria-multiselectable": ariaMultiselectable
48
43
  }, /*#__PURE__*/React.createElement(Box, {
49
44
  dataId: `${dataId}`,
50
45
  className: className ? className : ''
@@ -38,7 +38,6 @@ export const AdvancedGroupMultiSelect_defaultProps = {
38
38
  palette: 'default',
39
39
  isLoading: false,
40
40
  dataSelectorId: 'advancedGroupMultiSelect',
41
- customProps: {},
42
41
  allowValueFallback: true
43
42
  };
44
43
  export const AdvancedMultiSelect_defaultProps = {
@@ -168,6 +167,5 @@ export const SelectedOptions_defaultProps = {
168
167
  };
169
168
  export const Suggestions_defaultProps = {
170
169
  a11y: {},
171
- customClass: {},
172
170
  needMultiLineText: false
173
171
  };
@@ -111,8 +111,7 @@ export const MultiSelect_propTypes = {
111
111
  setAriaId: PropTypes.string,
112
112
  ariaErrorId: PropTypes.string,
113
113
  customProps: PropTypes.shape({
114
- TextBoxIconProps: PropTypes.object,
115
- SuggestionsProps: PropTypes.object
114
+ TextBoxIconProps: PropTypes.object
116
115
  }),
117
116
  isFocus: PropTypes.bool,
118
117
  allowValueFallback: PropTypes.bool
@@ -182,11 +181,7 @@ export const Suggestions_propTypes = {
182
181
  logo: PropTypes.string,
183
182
  optionType: PropTypes.string,
184
183
  listItemProps: PropTypes.object
185
- })),
186
- customClass: PropTypes.shape({
187
- containerClass: PropTypes.string
188
- }),
189
- needMultiLineText: PropTypes.bool
184
+ }))
190
185
  };
191
186
  export const AdvancedGroupMultiSelect_propTypes = {
192
187
  animationStyle: PropTypes.string,
@@ -258,10 +253,7 @@ export const AdvancedGroupMultiSelect_propTypes = {
258
253
  children: PropTypes.node,
259
254
  dataSelectorId: PropTypes.string,
260
255
  isFocus: PropTypes.bool,
261
- allowValueFallback: PropTypes.bool,
262
- customProps: PropTypes.shape({
263
- SuggestionsProps: PropTypes.object
264
- })
256
+ allowValueFallback: PropTypes.bool
265
257
  };
266
258
  export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
267
259
  selectedOptionDetails: PropTypes.string,
@@ -593,9 +593,6 @@ export class GroupSelectComponent extends PureComponent {
593
593
  dataSelectorId,
594
594
  customProps
595
595
  } = this.props;
596
- const {
597
- SuggestionsProps = {}
598
- } = customProps;
599
596
  i18nKeys = Object.assign({}, i18nKeys, {
600
597
  emptyText: i18nKeys.emptyText || emptyMessage,
601
598
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -794,8 +791,7 @@ export class GroupSelectComponent extends PureComponent {
794
791
  ariaParentRole: 'listbox',
795
792
  role: 'option'
796
793
  },
797
- dataId: `${dataId}_Options`,
798
- ...SuggestionsProps
794
+ dataId: `${dataId}_Options`
799
795
  }));
800
796
  }) : /*#__PURE__*/React.createElement(EmptyState, {
801
797
  options: revampedGroups,
@@ -165,12 +165,8 @@ class SelectWithAvatarComponent extends SelectComponent {
165
165
  needEffect,
166
166
  isLoading,
167
167
  dataSelectorId,
168
- getTargetRef,
169
- customProps
168
+ getTargetRef
170
169
  } = this.props;
171
- const {
172
- SuggestionsProps = {}
173
- } = customProps;
174
170
  i18nKeys = Object.assign({}, i18nKeys, {
175
171
  emptyText: i18nKeys.emptyText || emptyMessage,
176
172
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -327,8 +323,7 @@ class SelectWithAvatarComponent extends SelectComponent {
327
323
  a11y: {
328
324
  ariaParentRole: 'listbox',
329
325
  role: 'option'
330
- },
331
- ...SuggestionsProps
326
+ }
332
327
  }) : /*#__PURE__*/React.createElement(EmptyState, {
333
328
  isLoading: isFetchingOptions,
334
329
  options: options,
@@ -350,8 +350,7 @@ class SelectWithIcon extends Component {
350
350
  htmlId,
351
351
  isLoading,
352
352
  dataSelectorId,
353
- customProps,
354
- customClass
353
+ customProps
355
354
  } = this.props;
356
355
  i18nKeys = Object.assign({}, i18nKeys, {
357
356
  emptyText: i18nKeys.emptyText || emptyMessage,
@@ -368,12 +367,8 @@ class SelectWithIcon extends Component {
368
367
  let {
369
368
  TextBoxProps = {},
370
369
  DropdownSearchTextBoxProps = {},
371
- TextBoxIconProps = {},
372
- ListItemProps = {}
370
+ TextBoxIconProps = {}
373
371
  } = customProps;
374
- const {
375
- dropBoxClass = ''
376
- } = customClass;
377
372
  return /*#__PURE__*/React.createElement("div", {
378
373
  className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
379
374
  "data-title": isDisabled ? title : null,
@@ -470,10 +465,7 @@ class SelectWithIcon extends Component {
470
465
  size: boxSize,
471
466
  isPadding: false,
472
467
  isResponsivePadding: true,
473
- alignBox: "row",
474
- customClass: {
475
- customDropBox: dropBoxClass
476
- }
468
+ alignBox: "row"
477
469
  }, isLoading ? /*#__PURE__*/React.createElement(Container, {
478
470
  align: "both",
479
471
  className: style.loader
@@ -538,8 +530,7 @@ class SelectWithIcon extends Component {
538
530
  role: 'option',
539
531
  ariaSelected: selectedId === options[idKey],
540
532
  ariaLabel: options[valueKey]
541
- },
542
- ...ListItemProps
533
+ }
543
534
  });
544
535
  })) : /*#__PURE__*/React.createElement(EmptyState, {
545
536
  isLoading: isFetchingOptions,
@@ -98,8 +98,7 @@ export const SelectWithAvatar_defaultProps = {
98
98
  isRestrictScroll: false,
99
99
  i18nKeys: {},
100
100
  needEffect: true,
101
- isLoading: false,
102
- customProps: {}
101
+ isLoading: false
103
102
  };
104
103
  export const SelectWithIcon_defaultProps = {
105
104
  isReadOnly: false,
@@ -127,6 +126,5 @@ export const SelectWithIcon_defaultProps = {
127
126
  isLoading: false,
128
127
  isAbsolutePositioningNeeded: true,
129
128
  isRestrictScroll: false,
130
- customProps: {},
131
- customClass: {}
129
+ customProps: {}
132
130
  };
@@ -178,8 +178,7 @@ export const GroupSelect_propTypes = {
178
178
  isDefaultSelectValue: PropTypes.bool,
179
179
  customProps: PropTypes.shape({
180
180
  TextBoxProps: PropTypes.object,
181
- TextBoxIconProps: PropTypes.object,
182
- SuggestionsProps: PropTypes.object
181
+ TextBoxIconProps: PropTypes.object
183
182
  }),
184
183
  allowValueFallback: PropTypes.bool
185
184
  };
@@ -242,10 +241,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
242
241
  htmlId: PropTypes.string,
243
242
  needEffect: PropTypes.bool,
244
243
  isLoading: PropTypes.bool,
245
- dataSelectorId: PropTypes.string,
246
- customProps: PropTypes.shape({
247
- SuggestionsProps: PropTypes.object
248
- })
244
+ dataSelectorId: PropTypes.string
249
245
  };
250
246
  export const SelectWithIcon_propTypes = {
251
247
  animationStyle: PropTypes.oneOf(['default', 'bounce']),
@@ -307,10 +303,6 @@ export const SelectWithIcon_propTypes = {
307
303
  customProps: PropTypes.shape({
308
304
  TextBoxProps: PropTypes.object,
309
305
  DropdownSearchTextBoxProps: PropTypes.object,
310
- TextBoxIconProps: PropTypes.object,
311
- ListItemProps: PropTypes.object
312
- }),
313
- customClass: PropTypes.shape({
314
- dropBoxClass: PropTypes.string
306
+ TextBoxIconProps: PropTypes.object
315
307
  })
316
308
  };
@@ -501,7 +501,7 @@
501
501
  }
502
502
  .lineClamp {
503
503
  composes: wbreak clamp;
504
- -webkit-line-clamp: var(--line-clamp, 3);
504
+ -webkit-line-clamp: var(--line-clamp,2);
505
505
  }
506
506
 
507
507
  .offSelection {
@@ -122,7 +122,8 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
122
122
  a11y = _this$props4.a11y,
123
123
  customClass = _this$props4.customClass,
124
124
  customProps = _this$props4.customProps,
125
- needMultiLineText = _this$props4.needMultiLineText;
125
+ needMultiLineText = _this$props4.needMultiLineText,
126
+ secondaryValue = _this$props4.secondaryValue;
126
127
  var _customProps$ListItem = customProps.ListItemProps,
127
128
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
128
129
  _customProps$Containe = customProps.ContainerProps,
@@ -162,7 +163,12 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
162
163
  onMouseEnter: this.handleMouseEnter,
163
164
  eleRef: this.getRef,
164
165
  customProps: ListItemProps
165
- }, ContainerProps), value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
166
+ }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
167
+ alignBox: "column"
168
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
169
+ alignBox: "row",
170
+ align: "vertical"
171
+ }, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
166
172
  shrink: true,
167
173
  adjust: true,
168
174
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
@@ -170,7 +176,10 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
170
176
  shrink: true,
171
177
  adjust: true,
172
178
  className: _ListItemModule["default"].children
173
- }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
179
+ }, children) : null)), secondaryValue ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
180
+ "data-title": isDisabled ? null : secondaryValue,
181
+ className: "".concat(_ListItemModule["default"].secondaryField, " ").concat(needMultiLineText ? _ListItemModule["default"].multiLine : _ListItemModule["default"].secondaryValue)
182
+ }, secondaryValue) : null), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
174
183
  className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
175
184
  "aria-hidden": ariaHidden,
176
185
  dataId: "".concat(dataIdString, "_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."); }
@@ -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,
@@ -1097,10 +1097,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1097
1097
  boxSize = _this$props15.boxSize,
1098
1098
  isLoading = _this$props15.isLoading,
1099
1099
  selectAllText = _this$props15.selectAllText,
1100
- needSelectAll = _this$props15.needSelectAll,
1101
- customProps = _this$props15.customProps;
1102
- var _customProps$Suggesti = customProps.SuggestionsProps,
1103
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
1100
+ needSelectAll = _this$props15.needSelectAll;
1104
1101
  var _this$state9 = this.state,
1105
1102
  selectedOptions = _this$state9.selectedOptions,
1106
1103
  searchStr = _this$state9.searchStr,
@@ -1177,7 +1174,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1177
1174
  eleRef: this.suggestionContainerRef
1178
1175
  }, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
1179
1176
  className: _MultiSelectModule["default"][palette]
1180
- }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
1177
+ }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1181
1178
  suggestions: suggestions,
1182
1179
  getRef: this.suggestionItemRef,
1183
1180
  hoverOption: hoverOption,
@@ -1190,7 +1187,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1190
1187
  a11y: {
1191
1188
  role: 'option'
1192
1189
  }
1193
- }, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1190
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1194
1191
  isLoading: isFetchingOptions,
1195
1192
  options: options,
1196
1193
  searchString: searchStr,
@@ -84,19 +84,15 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
84
84
  palette = _this$props.palette,
85
85
  htmlId = _this$props.htmlId,
86
86
  a11y = _this$props.a11y,
87
- customClass = _this$props.customClass,
88
87
  needMultiLineText = _this$props.needMultiLineText;
89
88
  var ariaParentRole = a11y.ariaParentRole,
90
89
  ariaMultiselectable = a11y.ariaMultiselectable;
91
- var _customClass$containe = customClass.containerClass,
92
- containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
93
90
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
94
91
  isCover: false,
95
92
  role: ariaParentRole,
96
93
  id: htmlId,
97
94
  tabindex: "0",
98
- "aria-multiselectable": ariaMultiselectable,
99
- className: containerClass
95
+ "aria-multiselectable": ariaMultiselectable
100
96
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
101
97
  dataId: "".concat(dataId),
102
98
  className: className ? className : ''
@@ -46,7 +46,6 @@ var AdvancedGroupMultiSelect_defaultProps = {
46
46
  palette: 'default',
47
47
  isLoading: false,
48
48
  dataSelectorId: 'advancedGroupMultiSelect',
49
- customProps: {},
50
49
  allowValueFallback: true
51
50
  };
52
51
  exports.AdvancedGroupMultiSelect_defaultProps = AdvancedGroupMultiSelect_defaultProps;
@@ -183,7 +182,6 @@ var SelectedOptions_defaultProps = {
183
182
  exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
184
183
  var Suggestions_defaultProps = {
185
184
  a11y: {},
186
- customClass: {},
187
185
  needMultiLineText: false
188
186
  };
189
187
  exports.Suggestions_defaultProps = Suggestions_defaultProps;
@@ -130,8 +130,7 @@ var MultiSelect_propTypes = {
130
130
  setAriaId: _propTypes["default"].string,
131
131
  ariaErrorId: _propTypes["default"].string,
132
132
  customProps: _propTypes["default"].shape({
133
- TextBoxIconProps: _propTypes["default"].object,
134
- SuggestionsProps: _propTypes["default"].object
133
+ TextBoxIconProps: _propTypes["default"].object
135
134
  }),
136
135
  isFocus: _propTypes["default"].bool,
137
136
  allowValueFallback: _propTypes["default"].bool
@@ -178,8 +177,7 @@ var SelectedOptions_propTypes = {
178
177
  dataId: _propTypes["default"].string
179
178
  };
180
179
  exports.SelectedOptions_propTypes = SelectedOptions_propTypes;
181
-
182
- var Suggestions_propTypes = _defineProperty({
180
+ var Suggestions_propTypes = {
183
181
  a11y: _propTypes["default"].shape({
184
182
  ariaParentRole: _propTypes["default"].string,
185
183
  ariaMultiselectable: _propTypes["default"].bool
@@ -207,12 +205,8 @@ var Suggestions_propTypes = _defineProperty({
207
205
  logo: _propTypes["default"].string,
208
206
  optionType: _propTypes["default"].string,
209
207
  listItemProps: _propTypes["default"].object
210
- })),
211
- customClass: _propTypes["default"].shape({
212
- containerClass: _propTypes["default"].string
213
- })
214
- }, "needMultiLineText", _propTypes["default"].bool);
215
-
208
+ }))
209
+ };
216
210
  exports.Suggestions_propTypes = Suggestions_propTypes;
217
211
  var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
218
212
  animationStyle: _propTypes["default"].string,
@@ -282,9 +276,7 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
282
276
  needToCloseOnSelect: _propTypes["default"].func,
283
277
  searchStr: _propTypes["default"].string,
284
278
  children: _propTypes["default"].node
285
- }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].shape({
286
- SuggestionsProps: _propTypes["default"].object
287
- })), _AdvancedGroupMultiSe);
279
+ }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _AdvancedGroupMultiSe);
288
280
  exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
289
281
 
290
282
  var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
@@ -670,8 +670,6 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
670
670
  isLoading = _this$props9.isLoading,
671
671
  dataSelectorId = _this$props9.dataSelectorId,
672
672
  customProps = _this$props9.customProps;
673
- var _customProps$Suggesti = customProps.SuggestionsProps,
674
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
675
673
  i18nKeys = Object.assign({}, i18nKeys, {
676
674
  emptyText: i18nKeys.emptyText || emptyMessage,
677
675
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -848,7 +846,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
848
846
  a11y: {
849
847
  role: 'heading'
850
848
  }
851
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
849
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
852
850
  activeId: selectedId,
853
851
  suggestions: options,
854
852
  getRef: _this7.suggestionItemRef,
@@ -864,7 +862,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
864
862
  role: 'option'
865
863
  },
866
864
  dataId: "".concat(dataId, "_Options")
867
- }, SuggestionsProps)));
865
+ }));
868
866
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
869
867
  options: revampedGroups,
870
868
  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); } }
@@ -217,10 +215,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
217
215
  needEffect = _this$props.needEffect,
218
216
  isLoading = _this$props.isLoading,
219
217
  dataSelectorId = _this$props.dataSelectorId,
220
- getTargetRef = _this$props.getTargetRef,
221
- customProps = _this$props.customProps;
222
- var _customProps$Suggesti = customProps.SuggestionsProps,
223
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
218
+ getTargetRef = _this$props.getTargetRef;
224
219
  i18nKeys = Object.assign({}, i18nKeys, {
225
220
  emptyText: i18nKeys.emptyText || emptyMessage,
226
221
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -359,7 +354,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
359
354
  a11y: {
360
355
  role: 'heading'
361
356
  }
362
- })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
357
+ })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
363
358
  dataId: "".concat(dataId, "_Options"),
364
359
  activeId: selectedId,
365
360
  suggestions: suggestions,
@@ -376,7 +371,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
376
371
  ariaParentRole: 'listbox',
377
372
  role: 'option'
378
373
  }
379
- }, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
374
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
380
375
  isLoading: isFetchingOptions,
381
376
  options: options,
382
377
  searchString: searchStr,
@@ -423,8 +423,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
423
423
  htmlId = _this$props7.htmlId,
424
424
  isLoading = _this$props7.isLoading,
425
425
  dataSelectorId = _this$props7.dataSelectorId,
426
- customProps = _this$props7.customProps,
427
- customClass = _this$props7.customClass;
426
+ customProps = _this$props7.customProps;
428
427
  i18nKeys = Object.assign({}, i18nKeys, {
429
428
  emptyText: i18nKeys.emptyText || emptyMessage,
430
429
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -441,11 +440,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
441
440
  _customProps$Dropdown = customProps.DropdownSearchTextBoxProps,
442
441
  DropdownSearchTextBoxProps = _customProps$Dropdown === void 0 ? {} : _customProps$Dropdown,
443
442
  _customProps$TextBoxI = customProps.TextBoxIconProps,
444
- TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
445
- _customProps$ListItem = customProps.ListItemProps,
446
- ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem;
447
- var _customClass$dropBoxC = customClass.dropBoxClass,
448
- dropBoxClass = _customClass$dropBoxC === void 0 ? '' : _customClass$dropBoxC;
443
+ TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI;
449
444
  return /*#__PURE__*/_react["default"].createElement("div", {
450
445
  className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : ''),
451
446
  "data-title": isDisabled ? title : null,
@@ -538,10 +533,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
538
533
  size: boxSize,
539
534
  isPadding: false,
540
535
  isResponsivePadding: true,
541
- alignBox: "row",
542
- customClass: {
543
- customDropBox: dropBoxClass
544
- }
536
+ alignBox: "row"
545
537
  }, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
546
538
  align: "both",
547
539
  className: _SelectModule["default"].loader
@@ -581,7 +573,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
581
573
  var iconName = options.iconName,
582
574
  iconSize = options.iconSize,
583
575
  iconColor = options.iconColor;
584
- return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
576
+ return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
585
577
  key: options[idKey],
586
578
  value: options[valueKey],
587
579
  size: "medium",
@@ -605,7 +597,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
605
597
  ariaSelected: selectedId === options[idKey],
606
598
  ariaLabel: options[valueKey]
607
599
  }
608
- }, ListItemProps));
600
+ });
609
601
  })) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
610
602
  isLoading: isFetchingOptions,
611
603
  options: options,
@@ -112,8 +112,7 @@ var SelectWithAvatar_defaultProps = {
112
112
  isRestrictScroll: false,
113
113
  i18nKeys: {},
114
114
  needEffect: true,
115
- isLoading: false,
116
- customProps: {}
115
+ isLoading: false
117
116
  };
118
117
  exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
119
118
  var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
@@ -125,5 +124,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
125
124
  needListBorder: false,
126
125
  needSearch: false,
127
126
  boxSize: 'default'
128
- }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _defineProperty(_SelectWithIcon_defau, "customClass", {}), _SelectWithIcon_defau);
127
+ }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _SelectWithIcon_defau);
129
128
  exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;