@zohodesk/components 1.0.0-temp-199.16 → 1.0.0-temp-220.4

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 (45) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/es/ListItem/ListContainer.js +2 -3
  3. package/es/ListItem/ListItem.js +2 -2
  4. package/es/ListItem/ListItem.module.css +2 -39
  5. package/es/ListItem/ListItemWithAvatar.js +4 -6
  6. package/es/ListItem/ListItemWithCheckBox.js +3 -6
  7. package/es/ListItem/ListItemWithIcon.js +4 -8
  8. package/es/ListItem/ListItemWithRadio.js +3 -6
  9. package/es/ListItem/props/defaultProps.js +5 -13
  10. package/es/ListItem/props/propTypes.js +1 -9
  11. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -7
  12. package/es/MultiSelect/MultiSelect.js +2 -7
  13. package/es/MultiSelect/Suggestions.js +2 -9
  14. package/es/MultiSelect/props/defaultProps.js +1 -4
  15. package/es/MultiSelect/props/propTypes.js +3 -11
  16. package/es/Popup/Popup.js +104 -30
  17. package/es/Select/GroupSelect.js +1 -5
  18. package/es/Select/SelectWithAvatar.js +2 -7
  19. package/es/Select/SelectWithIcon.js +4 -13
  20. package/es/Select/props/defaultProps.js +2 -4
  21. package/es/Select/props/propTypes.js +3 -11
  22. package/es/common/common.module.css +0 -11
  23. package/lib/ListItem/ListContainer.js +2 -3
  24. package/lib/ListItem/ListItem.js +2 -2
  25. package/lib/ListItem/ListItem.module.css +2 -39
  26. package/lib/ListItem/ListItemWithAvatar.js +4 -6
  27. package/lib/ListItem/ListItemWithCheckBox.js +3 -6
  28. package/lib/ListItem/ListItemWithIcon.js +4 -8
  29. package/lib/ListItem/ListItemWithRadio.js +3 -6
  30. package/lib/ListItem/props/defaultProps.js +5 -13
  31. package/lib/ListItem/props/propTypes.js +2 -9
  32. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -8
  33. package/lib/MultiSelect/MultiSelect.js +3 -6
  34. package/lib/MultiSelect/Suggestions.js +3 -9
  35. package/lib/MultiSelect/props/defaultProps.js +1 -4
  36. package/lib/MultiSelect/props/propTypes.js +3 -10
  37. package/lib/Popup/Popup.js +168 -83
  38. package/lib/Select/GroupSelect.js +2 -4
  39. package/lib/Select/SelectWithAvatar.js +3 -8
  40. package/lib/Select/SelectWithIcon.js +5 -13
  41. package/lib/Select/props/defaultProps.js +2 -3
  42. package/lib/Select/props/propTypes.js +3 -11
  43. package/lib/common/common.module.css +0 -11
  44. package/package.json +3 -3
  45. package/result.json +1 -1
@@ -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
  };
@@ -260,12 +260,6 @@
260
260
  justify-content: space-between;
261
261
  }
262
262
 
263
- .justifyFStart {
264
- -webkit-box-pack: flex-start;
265
- -ms-flex-pack: flex-start;
266
- justify-content: flex-start;
267
- }
268
-
269
263
  .justifyFend {
270
264
  -webkit-box-pack: flex-end;
271
265
  -ms-flex-pack: flex-end;
@@ -500,11 +494,6 @@
500
494
  overflow: hidden;
501
495
  }
502
496
 
503
- .lineClamp {
504
- composes: wbreak clamp;
505
- -webkit-line-clamp: var(--line-clamp,3);
506
- }
507
-
508
497
  .offSelection {
509
498
  -webkit-user-select: none;
510
499
  -moz-user-select: none;
@@ -58,8 +58,7 @@ var ListContainer = function ListContainer(props) {
58
58
  onClick = props.onClick,
59
59
  onMouseEnter = props.onMouseEnter,
60
60
  onMouseOver = props.onMouseOver,
61
- eleRef = props.eleRef,
62
- align = props.align;
61
+ eleRef = props.eleRef;
63
62
  var responsiveFunc = (0, _react.useCallback)(function (_ref) {
64
63
  var mediaQueryOR = _ref.mediaQueryOR,
65
64
  isTouchDevice = _ref.isTouchDevice;
@@ -103,7 +102,7 @@ var ListContainer = function ListContainer(props) {
103
102
  "aria-selected": ariaSelected,
104
103
  "aria-label": ariaLabel,
105
104
  isCover: false,
106
- align: align,
105
+ align: "vertical",
107
106
  alignBox: "row",
108
107
  className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(mobileToTab && isTouchDevice ? _ListItemModule["default"].responsiveHeight : '', " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " ").concat(needTick ? _ListItemModule["default"]["".concat(size, "withTick")] : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? active ? _ListItemModule["default"].activewithBorder : _ListItemModule["default"].withBorder : '', " ").concat(customClass),
109
108
  dataId: dataId,
@@ -150,7 +150,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
150
150
  autoHover: autoHover,
151
151
  needTick: needTick,
152
152
  needBorder: needBorder,
153
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
153
+ customClass: customListItem,
154
154
  dataId: dataIdString,
155
155
  dataSelectorId: "".concat(dataSelectorId),
156
156
  isLink: isLink,
@@ -171,7 +171,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
171
171
  adjust: true,
172
172
  className: _ListItemModule["default"].children
173
173
  }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
174
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : '', " ").concat(customTickIcon),
174
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon),
175
175
  "aria-hidden": ariaHidden,
176
176
  dataId: "".concat(dataIdString, "_tickIcon"),
177
177
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -73,7 +73,8 @@
73
73
  line-height: 1.5385;
74
74
  }
75
75
  .multiLineValue{
76
- composes: lineClamp from '../common/common.module.css';
76
+ word-break: break-word;
77
+ composes: clamp from '../common/common.module.css'
77
78
  }
78
79
  .iconBox {
79
80
  width: var(--zd_size20) ;
@@ -93,36 +94,6 @@
93
94
  margin: var(--listitem_avatar_margin);
94
95
  }
95
96
 
96
- .lhsAvatarBox,
97
- .lhsJustifyContent_start,
98
- .lhsJustifyContent_center,
99
- .lhsJustifyContent_end {
100
- composes: dflex alignVertical from '../common/common.module.css';
101
- }
102
- .lhsJustifyContent_start {
103
- composes: justifyFStart from '../common/common.module.css';
104
- }
105
- .lhsJustifyContent_center {
106
- composes: alignHorizontal from '../common/common.module.css';
107
- }
108
- .lhsJustifyContent_end {
109
- composes: justifyFend from '../common/common.module.css';
110
- }
111
-
112
- .lhsBox_small,
113
- .lhsBox_medium,
114
- .lhsBox_large{
115
- height: 1em ;
116
- }
117
- .lhsBox_small {
118
- font-size: var(--zd_font_size20) ;
119
- }
120
- .lhsBox_medium {
121
- font-size: var(--zd_font_size21) ;
122
- }
123
- .lhsBox_large {
124
- font-size: var(--zd_font_size28) ;
125
- }
126
97
  .defaultHover, .primaryHover, .secondaryHover, .darkHover {
127
98
  background-color: var(--listitem_highlight_bg_color);
128
99
  }
@@ -226,17 +197,9 @@
226
197
  [dir=rtl] .largewithTick {
227
198
  --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
228
199
  }
229
- .largeSizeContainer{
230
- --listitem_height: auto;
231
- --listitem_min_height: var(--zd_size48);
232
- }
233
200
  .responsiveHeight {
234
201
  --listitem_min_height: var(--zd_size45);
235
202
  font-size: var(--zd_font_size15) ;
236
203
  padding-top: var(--zd_size10) ;
237
204
  padding-bottom: var(--zd_size10) ;
238
205
  }
239
- .tickIconCenter {
240
- top: 50% ;
241
- transform: translateY(-50%);
242
- }
@@ -128,8 +128,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
128
128
  a11y = _this$props4.a11y,
129
129
  customClass = _this$props4.customClass,
130
130
  customProps = _this$props4.customProps,
131
- needMultiLineText = _this$props4.needMultiLineText,
132
- lhsAlignContent = _this$props4.lhsAlignContent;
131
+ needMultiLineText = _this$props4.needMultiLineText;
133
132
  var _customProps$ListItem = customProps.ListItemProps,
134
133
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
135
134
  _customProps$Containe = customProps.ContainerProps,
@@ -163,7 +162,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
163
162
  autoHover: autoHover,
164
163
  needTick: needTick,
165
164
  needBorder: needBorder,
166
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
165
+ customClass: customListItem,
167
166
  dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
168
167
  dataSelectorId: "".concat(dataSelectorId),
169
168
  onClick: this.handleClick,
@@ -173,8 +172,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
173
172
  title: null,
174
173
  customProps: ListItemProps
175
174
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
176
- align: lhsAlignContent,
177
- className: "".concat(_ListItemModule["default"].leftAvatar, " ").concat(lhsAlignContent !== 'center' ? "".concat(_ListItemModule["default"].lhsAvatarBox, " ").concat(_ListItemModule["default"]["lhsBox_".concat(size)]) : '')
175
+ className: _ListItemModule["default"].leftAvatar
178
176
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
179
177
  name: name,
180
178
  size: "small",
@@ -201,7 +199,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
201
199
  "data-title": isDisabled ? null : title,
202
200
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
203
201
  }, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
204
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
202
+ className: _ListItemModule["default"].tickIcon,
205
203
  "aria-hidden": ariaHidden,
206
204
  dataId: "".concat(dataIdString, "_tickIcon"),
207
205
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -116,9 +116,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
116
116
  a11y = _this$props4.a11y,
117
117
  customClass = _this$props4.customClass,
118
118
  customProps = _this$props4.customProps,
119
- needMultiLineText = _this$props4.needMultiLineText,
120
- lhsAlignContent = _this$props4.lhsAlignContent,
121
- lhsJustifyContent = _this$props4.lhsJustifyContent;
119
+ needMultiLineText = _this$props4.needMultiLineText;
122
120
 
123
121
  var listA11y = _objectSpread({
124
122
  role: 'option'
@@ -142,7 +140,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
142
140
  isDisabled: isDisabled,
143
141
  active: active,
144
142
  autoHover: autoHover,
145
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
143
+ customClass: customListItem,
146
144
  dataId: "".concat(dataId ? dataId : value, "_ListItemWithCheckBox"),
147
145
  dataSelectorId: dataSelectorId,
148
146
  onClick: this.onClick,
@@ -152,8 +150,7 @@ var ListItemWithCheckBox = /*#__PURE__*/function (_React$Component) {
152
150
  title: null,
153
151
  customProps: ListItemProps
154
152
  }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
155
- align: lhsAlignContent,
156
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
153
+ className: _ListItemModule["default"].iconBox,
157
154
  dataId: "".concat(dataId ? dataId : value, "_checkBox")
158
155
  }, /*#__PURE__*/_react["default"].createElement(_CheckBox["default"], {
159
156
  checked: checked,
@@ -124,9 +124,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
124
124
  a11y = _this$props4.a11y,
125
125
  customClass = _this$props4.customClass,
126
126
  customProps = _this$props4.customProps,
127
- needMultiLineText = _this$props4.needMultiLineText,
128
- lhsAlignContent = _this$props4.lhsAlignContent,
129
- lhsJustifyContent = _this$props4.lhsJustifyContent;
127
+ needMultiLineText = _this$props4.needMultiLineText;
130
128
  var _customProps$ListItem = customProps.ListItemProps,
131
129
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
132
130
  _customProps$Containe = customProps.ContainerProps,
@@ -149,8 +147,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
149
147
  autoHover: autoHover,
150
148
  needTick: needTick,
151
149
  needBorder: needBorder,
152
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customClass),
153
- align: needMultiLineText && iconClass && !iconName ? 'baseline' : 'vertical',
150
+ customClass: customClass,
154
151
  dataId: dataIdString,
155
152
  dataSelectorId: dataSelectorId,
156
153
  isLink: isLink,
@@ -164,8 +161,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
164
161
  customProps: ListItemProps
165
162
  }, ContainerProps), iconName && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
166
163
  "aria-hidden": true,
167
- align: lhsAlignContent,
168
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
164
+ className: _ListItemModule["default"].iconBox,
169
165
  dataId: dataId ? "".concat(dataId, "_Icon") : "".concat(value.toLowerCase().replace("'", '_'), "_Icon")
170
166
  }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
171
167
  iconClass: iconClass,
@@ -180,7 +176,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
180
176
  "data-title": isDisabled ? null : title,
181
177
  dataId: "".concat(dataIdString, "_Text")
182
178
  }, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
183
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
179
+ className: _ListItemModule["default"].tickIcon,
184
180
  "aria-hidden": ariaHidden,
185
181
  dataId: "".concat(dataIdString, "_tickIcon"),
186
182
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -117,9 +117,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
117
117
  a11y = _this$props4.a11y,
118
118
  customClass = _this$props4.customClass,
119
119
  customProps = _this$props4.customProps,
120
- needMultiLineText = _this$props4.needMultiLineText,
121
- lhsAlignContent = _this$props4.lhsAlignContent,
122
- lhsJustifyContent = _this$props4.lhsJustifyContent;
120
+ needMultiLineText = _this$props4.needMultiLineText;
123
121
  var _customProps$ListItem = customProps.ListItemProps,
124
122
  ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
125
123
  _customProps$Containe = customProps.ContainerProps,
@@ -143,7 +141,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
143
141
  isDisabled: isDisabled,
144
142
  active: active,
145
143
  autoHover: autoHover,
146
- customClass: "".concat(needMultiLineText && size == 'large' ? _ListItemModule["default"].largeSizeContainer : '', " ").concat(customListItem),
144
+ customClass: customListItem,
147
145
  dataId: dataId,
148
146
  dataSelectorId: dataSelectorId,
149
147
  onClick: this.onClick,
@@ -153,8 +151,7 @@ var ListItemWithRadio = /*#__PURE__*/function (_React$Component) {
153
151
  title: null,
154
152
  customProps: ListItemProps
155
153
  }, ContainerProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
156
- align: lhsAlignContent,
157
- className: "".concat(_ListItemModule["default"].iconBox, " ").concat(_ListItemModule["default"]["lhsJustifyContent_".concat(lhsJustifyContent)], " ").concat(lhsAlignContent !== 'center' ? _ListItemModule["default"]["lhsBox_".concat(size)] : ''),
154
+ className: _ListItemModule["default"].iconBox,
158
155
  dataId: "".concat(dataId, "_radio")
159
156
  }, /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
160
157
  checked: checked,
@@ -18,8 +18,7 @@ var ListContainerDefaultProps = {
18
18
  customClass: '',
19
19
  customProps: {},
20
20
  dataSelectorId: 'listContainer',
21
- needMultiLineText: false,
22
- align: 'vertical'
21
+ needMultiLineText: false
23
22
  };
24
23
  exports.ListContainerDefaultProps = ListContainerDefaultProps;
25
24
  var ListItemDefaultProps = {
@@ -56,8 +55,7 @@ var ListItemWithAvatarDefaultProps = {
56
55
  customClass: {},
57
56
  customProps: {},
58
57
  dataSelectorId: 'listItemWithAvatar',
59
- needMultiLineText: false,
60
- lhsAlignContent: 'start'
58
+ needMultiLineText: false
61
59
  };
62
60
  exports.ListItemWithAvatarDefaultProps = ListItemWithAvatarDefaultProps;
63
61
  var ListItemWithCheckBoxDefaultProps = {
@@ -72,9 +70,7 @@ var ListItemWithCheckBoxDefaultProps = {
72
70
  customClass: {},
73
71
  customProps: {},
74
72
  dataSelectorId: 'listItemWithCheckBox',
75
- needMultiLineText: false,
76
- lhsAlignContent: 'start',
77
- lhsJustifyContent: 'center'
73
+ needMultiLineText: false
78
74
  };
79
75
  exports.ListItemWithCheckBoxDefaultProps = ListItemWithCheckBoxDefaultProps;
80
76
  var ListItemWithIconDefaultProps = {
@@ -92,9 +88,7 @@ var ListItemWithIconDefaultProps = {
92
88
  customClass: '',
93
89
  customProps: {},
94
90
  dataSelectorId: 'listItemWithIcon',
95
- needMultiLineText: false,
96
- lhsAlignContent: 'start',
97
- lhsJustifyContent: 'center'
91
+ needMultiLineText: false
98
92
  };
99
93
  exports.ListItemWithIconDefaultProps = ListItemWithIconDefaultProps;
100
94
  var ListItemWithRadioDefaultProps = {
@@ -110,8 +104,6 @@ var ListItemWithRadioDefaultProps = {
110
104
  customClass: {},
111
105
  customProps: {},
112
106
  dataSelectorId: 'listItemWithRadio',
113
- needMultiLineText: false,
114
- lhsAlignContent: 'start',
115
- lhsJustifyContent: 'center'
107
+ needMultiLineText: false
116
108
  };
117
109
  exports.ListItemWithRadioDefaultProps = ListItemWithRadioDefaultProps;
@@ -43,8 +43,7 @@ var ListContainer_Props = {
43
43
  }),
44
44
  customClass: _propTypes["default"].string,
45
45
  customProps: _propTypes["default"].object,
46
- eleRef: _propTypes["default"].func,
47
- align: _propTypes["default"].string
46
+ eleRef: _propTypes["default"].func
48
47
  };
49
48
  exports.ListContainer_Props = ListContainer_Props;
50
49
  var ListItem_Props = {
@@ -96,7 +95,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
96
95
  customListItem: _propTypes["default"].string,
97
96
  customAvatar: _propTypes["default"].string,
98
97
  customAvatarTeam: _propTypes["default"].string
99
- })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "lhsAlignContent", _propTypes["default"].oneOf(['start', 'center', 'end'])), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
98
+ })), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
100
99
  ListItemProps: _propTypes["default"].object,
101
100
  ContainerProps: _propTypes["default"].object,
102
101
  AvatarTeamProps: _propTypes["default"].exact(_propTypes3.propTypes),
@@ -126,8 +125,6 @@ var ListItemWithCheckBox_Props = {
126
125
  ariaSelected: _propTypes["default"].bool
127
126
  }),
128
127
  needMultiLineText: _propTypes["default"].bool,
129
- lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
130
- lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
131
128
  customClass: _propTypes["default"].shape({
132
129
  customListItem: _propTypes["default"].string,
133
130
  customCheckBox: _propTypes["default"].string,
@@ -164,8 +161,6 @@ var ListItemWithIcon_Props = {
164
161
  ariaHidden: _propTypes["default"].bool
165
162
  }),
166
163
  needMultiLineText: _propTypes["default"].bool,
167
- lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
168
- lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
169
164
  customClass: _propTypes["default"].string,
170
165
  customProps: _propTypes["default"].shape({
171
166
  ListItemProps: _propTypes["default"].object
@@ -198,8 +193,6 @@ var ListItemWithRadio_Props = {
198
193
  ariaSelected: _propTypes["default"].bool
199
194
  }),
200
195
  needMultiLineText: _propTypes["default"].bool,
201
- lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
202
- lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
203
196
  customClass: _propTypes["default"].shape({
204
197
  customListItem: _propTypes["default"].string,
205
198
  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,
@@ -1093,10 +1093,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1093
1093
  boxSize = _this$props15.boxSize,
1094
1094
  isLoading = _this$props15.isLoading,
1095
1095
  selectAllText = _this$props15.selectAllText,
1096
- needSelectAll = _this$props15.needSelectAll,
1097
- customProps = _this$props15.customProps;
1098
- var _customProps$Suggesti = customProps.SuggestionsProps,
1099
- SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
1096
+ needSelectAll = _this$props15.needSelectAll;
1100
1097
  var _this$state9 = this.state,
1101
1098
  selectedOptions = _this$state9.selectedOptions,
1102
1099
  searchStr = _this$state9.searchStr,
@@ -1173,7 +1170,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1173
1170
  eleRef: this.suggestionContainerRef
1174
1171
  }, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
1175
1172
  className: _MultiSelectModule["default"][palette]
1176
- }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
1173
+ }, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
1177
1174
  suggestions: suggestions,
1178
1175
  getRef: this.suggestionItemRef,
1179
1176
  hoverOption: hoverOption,
@@ -1186,7 +1183,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1186
1183
  a11y: {
1187
1184
  role: 'option'
1188
1185
  }
1189
- }, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1186
+ }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1190
1187
  isLoading: isFetchingOptions,
1191
1188
  options: options,
1192
1189
  searchString: searchStr,
@@ -83,20 +83,15 @@ 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
- customClass = _this$props.customClass,
88
- needMultiLineText = _this$props.needMultiLineText;
86
+ a11y = _this$props.a11y;
89
87
  var ariaParentRole = a11y.ariaParentRole,
90
88
  ariaMultiselectable = a11y.ariaMultiselectable;
91
- var _customClass$containe = customClass.containerClass,
92
- containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
93
89
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
94
90
  isCover: false,
95
91
  role: ariaParentRole,
96
92
  id: htmlId,
97
93
  tabindex: "0",
98
- "aria-multiselectable": ariaMultiselectable,
99
- className: containerClass
94
+ "aria-multiselectable": ariaMultiselectable
100
95
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
101
96
  dataId: "".concat(dataId),
102
97
  className: className ? className : ''
@@ -120,8 +115,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
120
115
  });
121
116
 
122
117
  var commonProps = _objectSpread({
123
- isDisabled: isDisabled,
124
- needMultiLineText: needMultiLineText
118
+ isDisabled: isDisabled
125
119
  }, listItemCustomProps);
126
120
 
127
121
  if (listItemProps) {
@@ -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;
@@ -182,8 +181,6 @@ var SelectedOptions_defaultProps = {
182
181
  };
183
182
  exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
184
183
  var Suggestions_defaultProps = {
185
- a11y: {},
186
- customClass: {},
187
- needMultiLineText: false
184
+ a11y: {}
188
185
  };
189
186
  exports.Suggestions_defaultProps = Suggestions_defaultProps;
@@ -129,8 +129,7 @@ var MultiSelect_propTypes = {
129
129
  setAriaId: _propTypes["default"].string,
130
130
  ariaErrorId: _propTypes["default"].string,
131
131
  customProps: _propTypes["default"].shape({
132
- TextBoxIconProps: _propTypes["default"].object,
133
- SuggestionsProps: _propTypes["default"].object
132
+ TextBoxIconProps: _propTypes["default"].object
134
133
  }),
135
134
  isFocus: _propTypes["default"].bool,
136
135
  allowValueFallback: _propTypes["default"].bool
@@ -203,11 +202,7 @@ var Suggestions_propTypes = {
203
202
  logo: _propTypes["default"].string,
204
203
  optionType: _propTypes["default"].string,
205
204
  listItemProps: _propTypes["default"].object
206
- })),
207
- customClass: _propTypes["default"].shape({
208
- containerClass: _propTypes["default"].string
209
- }),
210
- needMultiLineText: _propTypes["default"].bool
205
+ }))
211
206
  };
212
207
  exports.Suggestions_propTypes = Suggestions_propTypes;
213
208
  var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
@@ -278,9 +273,7 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
278
273
  needToCloseOnSelect: _propTypes["default"].func,
279
274
  searchStr: _propTypes["default"].string,
280
275
  children: _propTypes["default"].node
281
- }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].shape({
282
- SuggestionsProps: _propTypes["default"].object
283
- })), _AdvancedGroupMultiSe);
276
+ }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "allowValueFallback", _propTypes["default"].bool), _AdvancedGroupMultiSe);
284
277
  exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
285
278
 
286
279
  var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {