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

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 +56 -22
  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 +96 -60
  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 +1 -1
  45. package/result.json +1 -1
@@ -147,8 +147,9 @@ var Popup = function Popup(Component) {
147
147
  isMobile: false
148
148
  };
149
149
  _this.togglePopup = _this.togglePopup.bind(_assertThisInitialized(_this));
150
+ _this.closePopups = _this.closePopups.bind(_assertThisInitialized(_this));
151
+ _this.handleDocumentInteraction = _this.handleDocumentInteraction.bind(_assertThisInitialized(_this));
150
152
  _this.documentClickHandler = _this.documentClickHandler.bind(_assertThisInitialized(_this));
151
- _this.documentClickHandler1 = _this.documentClickHandler1.bind(_assertThisInitialized(_this));
152
153
  _this.removeClose = _this.removeClose.bind(_assertThisInitialized(_this));
153
154
  _this.documentKeyupHandler = _this.documentKeyupHandler.bind(_assertThisInitialized(_this));
154
155
  _this.openPopupOnly = _this.openPopupOnly.bind(_assertThisInitialized(_this));
@@ -210,11 +211,11 @@ var Popup = function Popup(Component) {
210
211
  popups[group] = groupPopups;
211
212
 
212
213
  if (Object.keys(popups).length === 1 && groupPopups.length === 1) {
214
+ document.addEventListener('click', this.handleDocumentInteraction, true);
213
215
  document.addEventListener('click', this.documentClickHandler, false);
214
216
  document.addEventListener('keyup', this.documentKeyupHandler, false); // document.addEventListener('scroll', this.handleScroll, true);
215
217
 
216
218
  window.addEventListener('resize', this.handleResize);
217
- document.addEventListener('click', this.documentClickHandler1, true);
218
219
  document.addEventListener('mousedown', this.handleDocumentMouseDown, true);
219
220
  document.addEventListener('focus', this.handleDocumentFocus, true);
220
221
  }
@@ -304,11 +305,11 @@ var Popup = function Popup(Component) {
304
305
  }
305
306
 
306
307
  if (noPopups) {
307
- document.removeEventListener('click', this.documentClickHandler);
308
+ document.removeEventListener('click', this.handleDocumentInteraction, true);
309
+ document.removeEventListener('click', this.documentClickHandler, false);
308
310
  document.removeEventListener('keyup', this.documentKeyupHandler); // document.removeEventListener('scroll', this.handleScroll);
309
311
 
310
312
  window.removeEventListener('resize', this.handleResize);
311
- document.removeEventListener('click', this.documentClickHandler1, true);
312
313
  document.removeEventListener('mousedown', this.handleDocumentMouseDown, true);
313
314
  document.removeEventListener('focus', this.handleDocumentFocus, true);
314
315
  }
@@ -689,31 +690,66 @@ var Popup = function Popup(Component) {
689
690
  return needPrevent;
690
691
  }
691
692
  }, {
692
- key: "documentClickHandler1",
693
- value: function documentClickHandler1(e) {
694
- var needPrevent = this.handleGetNeedPrevent(e);
693
+ key: "closePopups",
694
+ value: function closePopups(e) {
695
+ var checkTarget = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
695
696
 
696
- if (needPrevent) {
697
- this.removeClose(e);
698
- this.handleCloseLastOpenedGroup();
699
- }
700
- }
701
- }, {
702
- key: "documentClickHandler",
703
- value: function documentClickHandler() {
704
697
  try {
705
698
  Object.keys(popups).forEach(function (groupName) {
706
- var groupPopups = popups[groupName] || [];
707
- groupPopups.forEach(function (popup) {
708
- popup.state.isPopupOpen && (!popup.props.checkBeforeClose || popup.props.checkBeforeClose && popup.props.checkBeforeClose()) && !(0, _Common.isTextSelected)() && popup.setState({
709
- isPopupOpen: false,
710
- isPopupReady: false
711
- });
699
+ var openGroupPopups = (popups[groupName] || []).filter(function (popup) {
700
+ return popup.state.isPopupOpen;
701
+ });
702
+ openGroupPopups.forEach(function (popup) {
703
+ var dropElement = popup.dropElement,
704
+ placeHolderElement = popup.placeHolderElement;
705
+
706
+ var _ref5 = e || {},
707
+ target = _ref5.target;
708
+
709
+ var canClosePopup = !popup.props.checkBeforeClose || popup.props.checkBeforeClose && popup.props.checkBeforeClose() && !(0, _Common.isTextSelected)();
710
+ var isOutsideClick = checkTarget && placeHolderElement && dropElement && placeHolderElement !== target && !placeHolderElement.contains(target) && dropElement !== target && !dropElement.contains(target);
711
+
712
+ if (canClosePopup && (!checkTarget || isOutsideClick)) {
713
+ popup.setState({
714
+ isPopupOpen: false,
715
+ isPopupReady: false
716
+ });
717
+ }
712
718
  });
713
719
  });
714
- lastOpenedGroup = [];
715
- } catch (e) {// eslint-disable-next-line no-console
716
- //console.error('popup component not unmounted properly', e);
720
+
721
+ if (!checkTarget) {
722
+ lastOpenedGroup = [];
723
+ }
724
+ } catch (error) {// eslint-disable-next-line no-console
725
+ //console.error('popup component not unmounted properly', error);
726
+ }
727
+ }
728
+ }, {
729
+ key: "documentClickHandler",
730
+ value: function documentClickHandler(e) {
731
+ // Handles document click events to close all popups.
732
+ // This function closes all popups without checking if the click occurred outside the popup.
733
+ this.closePopups(e, false);
734
+ }
735
+ }, {
736
+ key: "handleDocumentInteraction",
737
+ value: function handleDocumentInteraction(e) {
738
+ // Handles interactions with the document to determine whether to close the popup.
739
+ // This function is specifically designed to close the popup when clicking outside of it.
740
+ // Check if the click event should prevent popup closure.
741
+ var needPrevent = this.handleGetNeedPrevent(e);
742
+
743
+ if (needPrevent) {
744
+ // If the click event should prevent popup closure:
745
+ // - Stop the event propagation.
746
+ // - Close the last opened group of popups.
747
+ this.removeClose(e);
748
+ this.handleCloseLastOpenedGroup();
749
+ } else {
750
+ // If the click event does not need to prevent popup closure:
751
+ // - Close all popups, but only if the click occurred outside the popup elements.
752
+ this.closePopups(e, true);
717
753
  }
718
754
  }
719
755
  }, {
@@ -757,8 +793,8 @@ var Popup = function Popup(Component) {
757
793
  var isUpdatePosition = arguments.length > 1 ? arguments[1] : undefined;
758
794
 
759
795
  // isUpdatePosition --->>> Window resize and dropBox resize and to update the position
760
- var _ref5 = this.context || {},
761
- direction = _ref5.direction;
796
+ var _ref6 = this.context || {},
797
+ direction = _ref6.direction;
762
798
 
763
799
  var placeHolderElement = this.placeHolderElement,
764
800
  dropElement = this.dropElement;
@@ -797,12 +833,12 @@ var Popup = function Popup(Component) {
797
833
  customOrder: customOrder
798
834
  });
799
835
 
800
- var _ref6 = betterPosition || _Common.DUMMY_OBJECT,
801
- view = _ref6.view,
802
- views = _ref6.views,
803
- viewsOffset = _ref6.viewsOffset,
804
- targetOffset = _ref6.targetOffset,
805
- popupOffset = _ref6.popupOffset;
836
+ var _ref7 = betterPosition || _Common.DUMMY_OBJECT,
837
+ view = _ref7.view,
838
+ views = _ref7.views,
839
+ viewsOffset = _ref7.viewsOffset,
840
+ targetOffset = _ref7.targetOffset,
841
+ popupOffset = _ref7.popupOffset;
806
842
 
807
843
  if (!isAbsolute) {
808
844
  if (!isPopupReady) {
@@ -866,33 +902,33 @@ var Popup = function Popup(Component) {
866
902
  customOrder: customOrder
867
903
  });
868
904
 
869
- var _ref7 = betterPosition || {},
870
- view = _ref7.view,
871
- views = _ref7.views,
872
- _ref7$viewsOffset = _ref7.viewsOffset,
873
- viewsOffset = _ref7$viewsOffset === void 0 ? {} : _ref7$viewsOffset,
874
- targetOffset = _ref7.targetOffset,
875
- popupOffset = _ref7.popupOffset;
876
-
877
- var _ref8 = positionsOffset[position] || {},
878
- _ref8$left = _ref8.left,
879
- oldLeft = _ref8$left === void 0 ? '' : _ref8$left,
880
- _ref8$top = _ref8.top,
881
- oldTop = _ref8$top === void 0 ? '' : _ref8$top,
882
- _ref8$bottom = _ref8.bottom,
883
- oldBottom = _ref8$bottom === void 0 ? '' : _ref8$bottom,
884
- _ref8$right = _ref8.right,
885
- oldRight = _ref8$right === void 0 ? '' : _ref8$right;
886
-
887
- var _ref9 = viewsOffset[view] || {},
905
+ var _ref8 = betterPosition || {},
906
+ view = _ref8.view,
907
+ views = _ref8.views,
908
+ _ref8$viewsOffset = _ref8.viewsOffset,
909
+ viewsOffset = _ref8$viewsOffset === void 0 ? {} : _ref8$viewsOffset,
910
+ targetOffset = _ref8.targetOffset,
911
+ popupOffset = _ref8.popupOffset;
912
+
913
+ var _ref9 = positionsOffset[position] || {},
888
914
  _ref9$left = _ref9.left,
889
- left = _ref9$left === void 0 ? '' : _ref9$left,
915
+ oldLeft = _ref9$left === void 0 ? '' : _ref9$left,
890
916
  _ref9$top = _ref9.top,
891
- top = _ref9$top === void 0 ? '' : _ref9$top,
917
+ oldTop = _ref9$top === void 0 ? '' : _ref9$top,
892
918
  _ref9$bottom = _ref9.bottom,
893
- bottom = _ref9$bottom === void 0 ? '' : _ref9$bottom,
919
+ oldBottom = _ref9$bottom === void 0 ? '' : _ref9$bottom,
894
920
  _ref9$right = _ref9.right,
895
- right = _ref9$right === void 0 ? '' : _ref9$right;
921
+ oldRight = _ref9$right === void 0 ? '' : _ref9$right;
922
+
923
+ var _ref10 = viewsOffset[view] || {},
924
+ _ref10$left = _ref10.left,
925
+ left = _ref10$left === void 0 ? '' : _ref10$left,
926
+ _ref10$top = _ref10.top,
927
+ top = _ref10$top === void 0 ? '' : _ref10$top,
928
+ _ref10$bottom = _ref10.bottom,
929
+ bottom = _ref10$bottom === void 0 ? '' : _ref10$bottom,
930
+ _ref10$right = _ref10.right,
931
+ right = _ref10$right === void 0 ? '' : _ref10$right;
896
932
 
897
933
  var changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top || oldBottom !== bottom || oldRight !== right; // let isInViewPort = viewPort.isInViewPort(
898
934
  // placeHolderElement,
@@ -951,11 +987,11 @@ var Popup = function Popup(Component) {
951
987
  var height = popupSize.height,
952
988
  width = popupSize.width;
953
989
 
954
- var _ref10 = this.size || {},
955
- _ref10$height = _ref10.height,
956
- oldHeight = _ref10$height === void 0 ? 0 : _ref10$height,
957
- _ref10$width = _ref10.width,
958
- oldWidth = _ref10$width === void 0 ? 0 : _ref10$width;
990
+ var _ref11 = this.size || {},
991
+ _ref11$height = _ref11.height,
992
+ oldHeight = _ref11$height === void 0 ? 0 : _ref11$height,
993
+ _ref11$width = _ref11.width,
994
+ oldWidth = _ref11$width === void 0 ? 0 : _ref11$width;
959
995
 
960
996
  var _this$state2 = this.state,
961
997
  isPopupReady = _this$state2.isPopupReady,
@@ -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;
@@ -195,8 +195,7 @@ var GroupSelect_propTypes = {
195
195
  isDefaultSelectValue: _propTypes["default"].bool,
196
196
  customProps: _propTypes["default"].shape({
197
197
  TextBoxProps: _propTypes["default"].object,
198
- TextBoxIconProps: _propTypes["default"].object,
199
- SuggestionsProps: _propTypes["default"].object
198
+ TextBoxIconProps: _propTypes["default"].object
200
199
  }),
201
200
  allowValueFallback: _propTypes["default"].bool
202
201
  };
@@ -261,10 +260,7 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
261
260
  htmlId: _propTypes["default"].string,
262
261
  needEffect: _propTypes["default"].bool,
263
262
  isLoading: _propTypes["default"].bool,
264
- dataSelectorId: _propTypes["default"].string,
265
- customProps: _propTypes["default"].shape({
266
- SuggestionsProps: _propTypes["default"].object
267
- })
263
+ dataSelectorId: _propTypes["default"].string
268
264
  });
269
265
 
270
266
  exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
@@ -328,11 +324,7 @@ var SelectWithIcon_propTypes = {
328
324
  customProps: _propTypes["default"].shape({
329
325
  TextBoxProps: _propTypes["default"].object,
330
326
  DropdownSearchTextBoxProps: _propTypes["default"].object,
331
- TextBoxIconProps: _propTypes["default"].object,
332
- ListItemProps: _propTypes["default"].object
333
- }),
334
- customClass: _propTypes["default"].shape({
335
- dropBoxClass: _propTypes["default"].string
327
+ TextBoxIconProps: _propTypes["default"].object
336
328
  })
337
329
  };
338
330
  exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-199.16",
3
+ "version": "1.0.0-temp-220.5",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,