@zohodesk/components 1.2.29 → 1.2.31

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 (122) hide show
  1. package/README.md +8 -0
  2. package/es/AppContainer/AppContainer.js +10 -9
  3. package/es/Avatar/Avatar.js +4 -5
  4. package/es/Avatar/Avatar.module.css +0 -12
  5. package/es/AvatarTeam/AvatarTeam.js +7 -7
  6. package/es/AvatarTeam/AvatarTeam.module.css +0 -4
  7. package/es/Button/Button.js +5 -6
  8. package/es/Button/css/Button.module.css +0 -6
  9. package/es/Buttongroup/Buttongroup.module.css +0 -2
  10. package/es/CheckBox/CheckBox.js +8 -8
  11. package/es/CheckBox/CheckBox.module.css +0 -2
  12. package/es/DateTime/DateTime.module.css +0 -1
  13. package/es/DropBox/DropBox.js +10 -11
  14. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  15. package/es/DropBox/css/DropBox.module.css +0 -1
  16. package/es/DropDown/DropDown.js +2 -1
  17. package/es/DropDown/DropDownHeading.module.css +0 -6
  18. package/es/DropDown/DropDownItem.module.css +0 -3
  19. package/es/Label/Label.module.css +0 -1
  20. package/es/ListItem/ListContainer.js +6 -5
  21. package/es/ListItem/ListItem.js +4 -5
  22. package/es/ListItem/ListItem.module.css +0 -21
  23. package/es/ListItem/ListItemWithAvatar.js +4 -5
  24. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  25. package/es/ListItem/ListItemWithIcon.js +4 -5
  26. package/es/ListItem/ListItemWithRadio.js +4 -5
  27. package/es/Modal/Modal.js +4 -5
  28. package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
  29. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
  30. package/es/MultiSelect/SelectedOptions.js +6 -8
  31. package/es/MultiSelect/Suggestions.js +6 -8
  32. package/es/MultiSelect/props/defaultProps.js +4 -2
  33. package/es/PopOver/PopOver.module.css +3 -3
  34. package/es/Popup/Popup.js +3 -4
  35. package/es/Radio/Radio.js +8 -8
  36. package/es/Radio/Radio.module.css +0 -1
  37. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  38. package/es/Ribbon/Ribbon.module.css +0 -4
  39. package/es/Select/GroupSelect.js +11 -6
  40. package/es/Select/Select.js +4 -6
  41. package/es/Select/props/defaultProps.js +1 -0
  42. package/es/Switch/Switch.js +8 -8
  43. package/es/Switch/Switch.module.css +0 -2
  44. package/es/Tab/Tab.js +4 -5
  45. package/es/Tab/TabContentWrapper.js +4 -5
  46. package/es/Tab/TabWrapper.js +2 -4
  47. package/es/Tab/Tabs.js +16 -16
  48. package/es/Tag/Tag.module.css +0 -6
  49. package/es/TextBox/TextBox.js +5 -5
  50. package/es/TextBox/TextBox.module.css +1 -21
  51. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  52. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
  53. package/es/Textarea/Textarea.js +4 -6
  54. package/es/Textarea/Textarea.module.css +0 -6
  55. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  56. package/es/common/customscroll.module.css +27 -3
  57. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  58. package/es/v1/AppContainer/AppContainer.js +10 -9
  59. package/es/v1/Avatar/Avatar.js +4 -5
  60. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  61. package/es/v1/Button/Button.js +5 -6
  62. package/es/v1/CheckBox/CheckBox.js +8 -8
  63. package/es/v1/DropBox/DropBox.js +10 -11
  64. package/es/v1/DropDown/DropDown.js +2 -1
  65. package/es/v1/ListItem/ListContainer.js +6 -5
  66. package/es/v1/ListItem/ListItem.js +4 -5
  67. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  68. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  69. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  70. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  71. package/es/v1/Modal/Modal.js +4 -5
  72. package/es/v1/MultiSelect/AdvancedMultiSelect.js +8 -9
  73. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +4 -5
  74. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  75. package/es/v1/MultiSelect/Suggestions.js +6 -8
  76. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  77. package/es/v1/Popup/Popup.js +3 -4
  78. package/es/v1/Radio/Radio.js +8 -8
  79. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  80. package/es/v1/Select/GroupSelect.js +11 -6
  81. package/es/v1/Select/Select.js +4 -6
  82. package/es/v1/Select/props/defaultProps.js +1 -0
  83. package/es/v1/Switch/Switch.js +8 -8
  84. package/es/v1/Tab/Tab.js +4 -5
  85. package/es/v1/Tab/TabContentWrapper.js +4 -5
  86. package/es/v1/Tab/TabWrapper.js +2 -4
  87. package/es/v1/Tab/Tabs.js +16 -16
  88. package/es/v1/TextBox/TextBox.js +5 -5
  89. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  90. package/es/v1/Textarea/Textarea.js +4 -6
  91. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  92. package/lib/Avatar/Avatar.module.css +0 -12
  93. package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
  94. package/lib/Button/css/Button.module.css +0 -6
  95. package/lib/Buttongroup/Buttongroup.module.css +0 -2
  96. package/lib/CheckBox/CheckBox.module.css +0 -2
  97. package/lib/DateTime/DateTime.module.css +0 -1
  98. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  99. package/lib/DropBox/css/DropBox.module.css +0 -1
  100. package/lib/DropDown/DropDownHeading.module.css +0 -6
  101. package/lib/DropDown/DropDownItem.module.css +0 -3
  102. package/lib/Label/Label.module.css +0 -1
  103. package/lib/ListItem/ListItem.module.css +0 -21
  104. package/lib/MultiSelect/props/defaultProps.js +4 -2
  105. package/lib/PopOver/PopOver.module.css +3 -3
  106. package/lib/Radio/Radio.module.css +0 -1
  107. package/lib/Ribbon/Ribbon.module.css +0 -4
  108. package/lib/Select/GroupSelect.js +11 -6
  109. package/lib/Select/Select.js +0 -2
  110. package/lib/Select/props/defaultProps.js +1 -0
  111. package/lib/Switch/Switch.module.css +0 -2
  112. package/lib/Tag/Tag.module.css +0 -6
  113. package/lib/TextBox/TextBox.module.css +1 -21
  114. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
  115. package/lib/Textarea/Textarea.module.css +0 -6
  116. package/lib/common/customscroll.module.css +27 -3
  117. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  118. package/lib/v1/Select/GroupSelect.js +11 -6
  119. package/lib/v1/Select/Select.js +0 -2
  120. package/lib/v1/Select/props/defaultProps.js +1 -0
  121. package/package.json +10 -10
  122. package/result.json +1 -1
@@ -1,9 +1,9 @@
1
1
  .popup {
2
2
  position: relative;
3
- /* css:theme-validation:ignore */
4
- background-color: var(--dot_white);
3
+ background-color: var(--zdt_popover_default_bg);
5
4
  }
5
+
6
6
  .target {
7
7
  composes: offSelection from '../common/common.module.css';
8
8
  cursor: pointer;
9
- }
9
+ }
@@ -28,7 +28,6 @@
28
28
  composes: offSelection from '../common/common.module.css';
29
29
  width: var(--radio_width);
30
30
  height: var(--radio_height);
31
- /* css:theme-validation:ignore */
32
31
  stroke: var(--radio_stroke_color);
33
32
  background: var(--radio_bg_color);
34
33
  border-radius: 50%;
@@ -36,12 +36,9 @@
36
36
  .basic {
37
37
  composes: varClass;
38
38
  position: relative;
39
- /* css:theme-validation:ignore */
40
39
  color: var(--ribbon_text_color);
41
40
  text-transform: var(--ribbon_text_transform);
42
41
  font-size: var(--ribbon_font_size);
43
- /* css:theme-validation:ignore */
44
- /* css:theme-validation:ignore */
45
42
  line-height: var(--ribbon_line_height);
46
43
  padding: var(--ribbon_padding);
47
44
  background-color: var(--ribbon_bg_color);
@@ -368,7 +365,6 @@
368
365
  position: absolute;
369
366
  content: '';
370
367
  top: var(--ribbon_tag_before_top);
371
- /* css:theme-validation:ignore */
372
368
  width: var(--ribbon_tag_before_width);
373
369
  height: var(--ribbon_tag_before_height);
374
370
  background-color: inherit;
@@ -692,7 +692,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
692
692
  }, /*#__PURE__*/_react["default"].createElement("div", {
693
693
  className: "".concat(className ? className : ''),
694
694
  onClick: isDisabled || isReadOnly ? null : this.togglePopup,
695
- ref: getTargetRef
695
+ ref: getTargetRef,
696
+ "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
697
+ "data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
696
698
  }, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, needSelectDownIcon ? /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
697
699
  isDisabled: isDisabled,
698
700
  iconRotated: isPopupOpen,
@@ -707,7 +709,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
707
709
  value: selected,
708
710
  variant: textBoxVariant,
709
711
  needReadOnlyStyle: isReadOnly ? true : false,
710
- dataId: dataId,
712
+ dataId: "".concat(dataId, "_textBox"),
711
713
  onKeyPress: this.handleValueInputChange,
712
714
  needEffect: isReadOnly || isDisabled ? false : true,
713
715
  borderColor: borderColor,
@@ -744,7 +746,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
744
746
  value: selected,
745
747
  variant: textBoxVariant,
746
748
  needReadOnlyStyle: isReadOnly ? true : false,
747
- dataId: dataId,
749
+ dataId: "".concat(dataId, "_textBox"),
748
750
  onKeyPress: this.handleValueInputChange,
749
751
  borderColor: borderColor,
750
752
  htmlId: htmlId,
@@ -776,7 +778,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
776
778
  needResponsive: needResponsive,
777
779
  isPadding: false,
778
780
  isResponsivePadding: getFooter ? false : true,
779
- alignBox: "row"
781
+ alignBox: "row",
782
+ dataId: "".concat(dataId, "_suggestionBox")
780
783
  }, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
781
784
  align: "both",
782
785
  className: _SelectModule["default"].loader
@@ -801,7 +804,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
801
804
  ariaAutocomplete: 'list',
802
805
  ariaDescribedby: ariaErrorId
803
806
  },
804
- autoComplete: false
807
+ autoComplete: false,
808
+ dataId: "".concat(dataId, "_search")
805
809
  }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
806
810
  shrink: true,
807
811
  customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
@@ -834,7 +838,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
834
838
  a11y: {
835
839
  ariaParentRole: 'listbox',
836
840
  role: 'option'
837
- }
841
+ },
842
+ dataId: "".concat(dataId, "_Options")
838
843
  }));
839
844
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
840
845
  options: revampedGroups,
@@ -43,8 +43,6 @@ var _Common = require("../utils/Common.js");
43
43
 
44
44
  var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
45
45
 
46
- var _Config = require("../Provider/Config");
47
-
48
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
47
 
50
48
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -72,6 +72,7 @@ var GroupSelect_defaultProps = {
72
72
  dataIdDownIcon: 'downIcon',
73
73
  dataIdLoading: 'loading',
74
74
  dataIdSrchEmptyMsg: 'searchEmptyMessage',
75
+ dataId: 'GroupSelect',
75
76
  isPopupOpenOnEnter: false,
76
77
  borderColor: 'default',
77
78
  needTick: true,
@@ -26,7 +26,6 @@
26
26
  display: inline-block;
27
27
  position: relative;
28
28
  transition: box-shadow var(--zd_transition3) ease-in-out;
29
- /* css:theme-validation:ignore */
30
29
  background-color: var(--switch_off_bg_color);
31
30
  border-radius: 20px;
32
31
  cursor: pointer;
@@ -45,7 +44,6 @@
45
44
  right: 50% ;
46
45
  transition: all var(--zd_transition2);
47
46
  box-shadow: var(--switch_cricle_box_shadow);
48
- /* css:theme-validation:ignore */
49
47
  background-color: var(--switch_circle_bg_color);
50
48
  border-radius: var(--switch_circle_border_radius);
51
49
  }
@@ -34,13 +34,10 @@
34
34
  composes: dInflex alignVertical flexrow from '../common/common.module.css';
35
35
  position: relative;
36
36
  vertical-align: middle;
37
- /* css:theme-validation:ignore */
38
37
  color: var(--tag_text_color);
39
- /* css:theme-validation:ignore */
40
38
  font-size: var(--tag_font_size);
41
39
  letter-spacing: var(--tag_letter_spacing);
42
40
  height: var(--tag_height);
43
- /* css:theme-validation:ignore */
44
41
  max-width: 100% ;
45
42
  background-color: var(--tag_bg_color);
46
43
  border-radius: var(--tag_border_radius);
@@ -125,13 +122,11 @@
125
122
  display: block;
126
123
  }
127
124
  .close {
128
- /* css:theme-validation:ignore */
129
125
  color: var(--tag_closeicon_color);
130
126
  display: none;
131
127
  position: absolute;
132
128
  top: 0 ;
133
129
  bottom: 0 ;
134
- /* css:theme-validation:ignore */
135
130
  padding: var(--tag_closeicon_padding);
136
131
  cursor: var(--tag_closeicon_cursor);
137
132
  border-radius: var(--tag_closeicon_border_radius);
@@ -229,7 +224,6 @@
229
224
  }
230
225
 
231
226
  .icon {
232
- /* css:theme-validation:ignore */
233
227
  margin: var(--tag_icon_margin);
234
228
  background-color: var(--tag_icon_bg_color);
235
229
  }
@@ -32,36 +32,30 @@
32
32
  }
33
33
 
34
34
  .basic::placeholder {
35
- /* css:theme-validation:ignore */
36
35
  color: var(--textbox_placeholder_text_color);
37
36
  }
38
37
 
39
38
  .basic::-webkit-placeholder {
40
- /* css:theme-validation:ignore */
41
39
  color: var(--textbox_placeholder_text_color);
42
40
  }
43
41
 
44
42
  .basic::-moz-placeholder {
45
- /* css:theme-validation:ignore */
46
43
  color: var(--textbox_placeholder_text_color);
47
44
  }
48
45
 
49
46
  .basic::-ms-placeholder {
50
- /* css:theme-validation:ignore */
51
47
  color: var(--textbox_placeholder_text_color);
52
48
  }
49
+
53
50
  /* css:lineheight-validation:ignore */
54
51
  .container {
55
52
  composes: basic;
56
- /* css:theme-validation:ignore */
57
53
  transition: border var(--zd_transition2) linear 0s;
58
54
  -moz-transition: border var(--zd_transition2) linear 0s;
59
55
  width: var(--textbox_width);
60
- /* css:theme-validation:ignore */
61
56
  color: var(--textbox_text_color);
62
57
  font-size: var(--textbox_font_size);
63
58
  height: var(--textbox_height);
64
- /* css:theme-validation:ignore */
65
59
  line-height: var(--textbox_line_height);
66
60
  background-color: var(--textbox_bg_color);
67
61
  -webkit-transition: border var(--zd_transition2) linear 0s;
@@ -85,22 +79,18 @@
85
79
  }
86
80
 
87
81
  .container::placeholder {
88
- /* css:theme-validation:ignore */
89
82
  color: var(--textbox_placeholder_text_color);
90
83
  }
91
84
 
92
85
  .container::-webkit-placeholder {
93
- /* css:theme-validation:ignore */
94
86
  color: var(--textbox_placeholder_text_color);
95
87
  }
96
88
 
97
89
  .container::-moz-placeholder {
98
- /* css:theme-validation:ignore */
99
90
  color: var(--textbox_placeholder_text_color);
100
91
  }
101
92
 
102
93
  .container::-ms-placeholder {
103
- /* css:theme-validation:ignore */
104
94
  color: var(--textbox_placeholder_text_color);
105
95
  }
106
96
 
@@ -114,11 +104,6 @@
114
104
  border-style: var(--textbox_border_style);
115
105
  }
116
106
 
117
- .effect:hover,
118
- .effect:focus {
119
- /* css:theme-validation:ignore */
120
- }
121
-
122
107
  .effect:hover, .effect:focus {
123
108
  border-color: var(--textbox_border_color);
124
109
  }
@@ -127,11 +112,6 @@
127
112
  --textbox_border_width: 0 0 1px 0;
128
113
  }
129
114
 
130
- .borderColor_transparent,
131
- .borderColor_default {
132
- /* css:theme-validation:ignore */
133
- }
134
-
135
115
  .borderColor_transparent, .borderColor_default {
136
116
  border-color: var(--textbox_border_color);
137
117
  }
@@ -24,7 +24,6 @@
24
24
  cursor: var(--textboxicon_icon_cursor);
25
25
  }
26
26
  .iconContainer {
27
- /* css:theme-validation:ignore */
28
27
  color: var(--textboxicon_icon_color);
29
28
  }
30
29
  .effect:hover .iconContainer,
@@ -51,10 +50,6 @@
51
50
  right: 0 ;
52
51
  left: 0 ;
53
52
  }
54
- .line,
55
- .borderColor_default {
56
- /* css:theme-validation:ignore */
57
- }
58
53
  .line, .borderColor_default {
59
54
  background-color: var(--textboxicon_line_color);
60
55
  }
@@ -19,7 +19,6 @@
19
19
  appearance: none;
20
20
  outline: 0;
21
21
  letter-spacing: 0.1px;
22
- /* css:theme-validation:ignore */
23
22
  color: var(--textarea_text_color);
24
23
  cursor: var(--textarea_cursor);
25
24
  }
@@ -27,19 +26,15 @@
27
26
  border-width: var(--textarea_border_width);
28
27
  }
29
28
  .basic::placeholder {
30
- /* css:theme-validation:ignore */
31
29
  color: var(--textarea_placeholder_text_color);
32
30
  }
33
31
  .basic::-webkit-placeholder {
34
- /* css:theme-validation:ignore */
35
32
  color: var(--textarea_placeholder_text_color);
36
33
  }
37
34
  .basic::-moz-placeholder {
38
- /* css:theme-validation:ignore */
39
35
  color: var(--textarea_placeholder_text_color);
40
36
  }
41
37
  .basic::-ms-placeholder {
42
- /* css:theme-validation:ignore */
43
38
  color: var(--textarea_placeholder_text_color);
44
39
  }
45
40
  .basic:disabled {
@@ -73,7 +68,6 @@
73
68
  min-width: var(--zd_size100) ;
74
69
  font-size: var(--textarea_font_size);
75
70
  line-height: var(--textarea_line_height);
76
- /* css:theme-validation:ignore */
77
71
  height: var(--textarea_height);
78
72
  -webkit-transition: border var(--zd_transition2) linear 0s,
79
73
  height var(--zd_transition2) linear 0s;
@@ -9,6 +9,7 @@
9
9
  --zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_hover_bg);
10
10
  --zd-scroll-border: var(--zdt_customscroll_border);
11
11
  }
12
+
12
13
  .scroll[data-scroll-palette='dark'],
13
14
  .scroll [data-scroll-palette='dark'] {
14
15
  --zd-scroll-bg: var(--zdt_customscroll_dark_bg);
@@ -16,92 +17,114 @@
16
17
  --zd-scroll-thump-hoverbg: var(--zdt_customscroll_thump_dark_hover_bg);
17
18
  --zd-scroll-border: var(--zdt_customscroll_dark_border);
18
19
  }
20
+
19
21
  .scroll,
20
22
  .scroll * {
23
+ /* css:theme-validation:ignore */
21
24
  scrollbar-color: var(--zd-scroll-thump) var(--zd-scroll-bg);
22
25
  scrollbar-width: thin;
26
+ /* css:theme-validation:ignore */
23
27
  -ms-scrollbar-highlight-color: var(--zd-scroll-bg);
28
+ /* css:theme-validation:ignore */
24
29
  -ms-scrollbar-face-color: var(--zd-scroll-thump);
25
30
  }
31
+
26
32
  .scroll::-webkit-scrollbar,
27
33
  .scroll ::-webkit-scrollbar {
28
34
  /* css:theme-validation:ignore */
29
35
  }
36
+
30
37
  .scroll::-webkit-scrollbar, .scroll ::-webkit-scrollbar {
31
38
  background: var(--zd-scroll-corner-bg);
32
39
  }
40
+
33
41
  .scroll::-webkit-scrollbar:hover,
34
42
  .scroll ::-webkit-scrollbar:hover {
35
43
  /* css:theme-validation:ignore */
36
44
  }
45
+
37
46
  .scroll::-webkit-scrollbar:hover, .scroll ::-webkit-scrollbar:hover {
38
47
  background: var(--zd-scroll-bg);
39
48
  }
49
+
40
50
  .scroll::-webkit-scrollbar:horizontal,
41
51
  .scroll ::-webkit-scrollbar:horizontal {
42
52
  height: var(--zd-scroll-height);
43
53
  }
54
+
44
55
  .scroll::-webkit-scrollbar:vertical,
45
56
  .scroll ::-webkit-scrollbar:vertical {
46
57
  width: var(--zd-scroll-width);
47
58
  }
59
+
48
60
  .scroll::-webkit-scrollbar-button,
49
61
  .scroll ::-webkit-scrollbar-button {
50
62
  display: none;
51
63
  width: 0 ;
52
64
  height: 0 ;
53
65
  }
66
+
54
67
  [dir=ltr] .scroll::-webkit-scrollbar-track:vertical, [dir=ltr] .scroll ::-webkit-scrollbar-track:vertical {
55
68
  border-left: 1px solid transparent;
56
69
  border-right: 1px solid transparent;
57
70
  }
71
+
58
72
  [dir=rtl] .scroll::-webkit-scrollbar-track:vertical, [dir=rtl] .scroll ::-webkit-scrollbar-track:vertical {
59
73
  border-right: 1px solid transparent;
60
74
  border-left: 1px solid transparent;
61
75
  }
76
+
62
77
  .scroll::-webkit-scrollbar-track:vertical:hover,
63
78
  .scroll ::-webkit-scrollbar-track:vertical:hover {
64
79
  /* css:theme-validation:ignore */
65
80
  }
81
+
66
82
  .scroll::-webkit-scrollbar-track:vertical:hover, .scroll ::-webkit-scrollbar-track:vertical:hover {
67
83
  border-color: var(--zd-scroll-border);
68
84
  }
85
+
69
86
  .scroll::-webkit-scrollbar-track:horizontal, .scroll ::-webkit-scrollbar-track:horizontal {
70
87
  border-top: 1px solid transparent;
71
88
  border-bottom: 1px solid transparent;
72
89
  }
90
+
73
91
  .scroll::-webkit-scrollbar-track:horizontal:hover,
74
92
  .scroll ::-webkit-scrollbar-track:horizontal:hover {
75
93
  /* css:theme-validation:ignore */
76
94
  }
95
+
77
96
  .scroll::-webkit-scrollbar-track:horizontal:hover, .scroll ::-webkit-scrollbar-track:horizontal:hover {
78
97
  border-color: var(--zd-scroll-border);
79
98
  }
99
+
80
100
  .scroll::-webkit-scrollbar-track-piece, .scroll ::-webkit-scrollbar-track-piece {
81
101
  background: inherit;
82
102
  }
103
+
83
104
  .scroll::-webkit-scrollbar-thumb,
84
105
  .scroll ::-webkit-scrollbar-thumb {
85
- /* css:theme-validation:ignore */
86
106
  /* css:theme-validation:ignore */
87
107
  /* display: none; */
88
108
  }
109
+
89
110
  .scroll::-webkit-scrollbar-thumb, .scroll ::-webkit-scrollbar-thumb {
90
111
  border-radius: 10px;
91
112
  background: var(--zd-scroll-thump);
92
113
  background-clip: padding-box;
93
114
  border: 3px solid transparent;
94
115
  }
116
+
95
117
  .scroll::-webkit-scrollbar-thumb:hover,
96
118
  .scroll ::-webkit-scrollbar-thumb:hover {
97
119
  /* css:theme-validation:ignore */
98
- /* css:theme-validation:ignore */
99
120
  }
121
+
100
122
  .scroll::-webkit-scrollbar-thumb:hover, .scroll ::-webkit-scrollbar-thumb:hover {
101
123
  background: var(--zd-scroll-thump-hoverbg);
102
124
  background-clip: padding-box;
103
125
  border: 3px solid transparent;
104
126
  }
127
+
105
128
  /* .scroll:hover > ::-webkit-scrollbar-thumb,
106
129
  .scroll *:hover > ::-webkit-scrollbar-thumb {
107
130
  display: block;
@@ -113,6 +136,7 @@
113
136
  .scroll::-webkit-scrollbar-corner, .scroll ::-webkit-scrollbar-corner {
114
137
  background: var(--zd-scroll-corner-bg);
115
138
  }
139
+
116
140
  .scroll::-webkit-resizer, .scroll ::-webkit-resizer {
117
141
  background: inherit;
118
- }
142
+ }
@@ -120,7 +120,8 @@ var MultiSelect_defaultProps = {
120
120
  dataSelectorId: 'multiSelect',
121
121
  keepSelectedOptions: false,
122
122
  selectedOptionsCount: 0,
123
- cardHeaderName: ''
123
+ cardHeaderName: '',
124
+ needResponsive: true
124
125
  };
125
126
  exports.MultiSelect_defaultProps = MultiSelect_defaultProps;
126
127
  var MultiSelectHeader_defaultProps = {
@@ -156,7 +157,8 @@ var MultiSelectWithAvatar_defaultProps = {
156
157
  isLoading: false,
157
158
  dataSelectorId: 'multiSelectWithAvatar',
158
159
  keepSelectedOptions: false,
159
- customProps: {}
160
+ customProps: {},
161
+ needResponsive: true
160
162
  };
161
163
  exports.MultiSelectWithAvatar_defaultProps = MultiSelectWithAvatar_defaultProps;
162
164
  var SelectedOptions_defaultProps = {
@@ -694,7 +694,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
694
694
  }, /*#__PURE__*/_react["default"].createElement("div", {
695
695
  className: "".concat(className ? className : ''),
696
696
  onClick: isDisabled || isReadOnly ? null : this.togglePopup,
697
- ref: getTargetRef
697
+ ref: getTargetRef,
698
+ "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
699
+ "data-test-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId)
698
700
  }, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, needSelectDownIcon ? /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
699
701
  isDisabled: isDisabled,
700
702
  iconRotated: isPopupOpen,
@@ -709,7 +711,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
709
711
  value: selected,
710
712
  variant: textBoxVariant,
711
713
  needReadOnlyStyle: isReadOnly ? true : false,
712
- dataId: dataId,
714
+ dataId: "".concat(dataId, "_textBox"),
713
715
  onKeyPress: this.handleValueInputChange,
714
716
  needEffect: isReadOnly || isDisabled ? false : true,
715
717
  borderColor: borderColor,
@@ -746,7 +748,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
746
748
  value: selected,
747
749
  variant: textBoxVariant,
748
750
  needReadOnlyStyle: isReadOnly ? true : false,
749
- dataId: dataId,
751
+ dataId: "".concat(dataId, "_textBox"),
750
752
  onKeyPress: this.handleValueInputChange,
751
753
  borderColor: borderColor,
752
754
  htmlId: htmlId,
@@ -778,7 +780,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
778
780
  needResponsive: needResponsive,
779
781
  isPadding: false,
780
782
  isResponsivePadding: getFooter ? false : true,
781
- alignBox: "row"
783
+ alignBox: "row",
784
+ dataId: "".concat(dataId, "_suggestionBox")
782
785
  }, isLoading ? /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
783
786
  align: "both",
784
787
  className: _SelectModule["default"].loader
@@ -803,7 +806,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
803
806
  ariaAutocomplete: 'list',
804
807
  ariaDescribedby: ariaErrorId
805
808
  },
806
- autoComplete: false
809
+ autoComplete: false,
810
+ dataId: "".concat(dataId, "_search")
807
811
  }))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
808
812
  shrink: true,
809
813
  customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
@@ -836,7 +840,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
836
840
  a11y: {
837
841
  ariaParentRole: 'listbox',
838
842
  role: 'option'
839
- }
843
+ },
844
+ dataId: "".concat(dataId, "_Options")
840
845
  }));
841
846
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
842
847
  options: revampedGroups,
@@ -43,8 +43,6 @@ var _Common = require("../../utils/Common.js");
43
43
 
44
44
  var _SelectModule = _interopRequireDefault(require("../../Select/Select.module.css"));
45
45
 
46
- var _Config = require("../../Provider/Config");
47
-
48
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
47
 
50
48
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -72,6 +72,7 @@ var GroupSelect_defaultProps = {
72
72
  dataIdDownIcon: 'downIcon',
73
73
  dataIdLoading: 'loading',
74
74
  dataIdSrchEmptyMsg: 'searchEmptyMessage',
75
+ dataId: 'GroupSelect',
75
76
  isPopupOpenOnEnter: false,
76
77
  borderColor: 'default',
77
78
  needTick: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -65,13 +65,13 @@
65
65
  "@testing-library/user-event": "^13.0.10",
66
66
  "@zohodesk-private/color-variable-preprocessor": "1.2.0",
67
67
  "@zohodesk-private/css-variable-migrator": "^1.0.7",
68
- "@zohodesk-private/node-plugins": "1.1.7",
68
+ "@zohodesk-private/node-plugins": "1.1.8",
69
69
  "@zohodesk-private/react-prop-validator": "1.2.3",
70
- "@zohodesk/a11y": "2.2.0",
70
+ "@zohodesk/a11y": "2.2.1",
71
71
  "@zohodesk/docstool": "1.0.0-alpha-2",
72
- "@zohodesk/hooks": "2.0.3",
73
- "@zohodesk/icons": "1.0.35",
74
- "@zohodesk/svg": "1.1.11",
72
+ "@zohodesk/hooks": "2.0.4",
73
+ "@zohodesk/icons": "1.0.43",
74
+ "@zohodesk/svg": "1.1.14",
75
75
  "@zohodesk/utils": "1.3.13",
76
76
  "@zohodesk/variables": "1.0.0",
77
77
  "@zohodesk/virtualizer": "1.0.3",
@@ -85,14 +85,14 @@
85
85
  "selectn": "1.1.2"
86
86
  },
87
87
  "peerDependencies": {
88
- "@zohodesk/icons": "1.0.35",
88
+ "@zohodesk/icons": "1.0.43",
89
89
  "@zohodesk/variables": "1.0.0",
90
- "@zohodesk/svg": "1.1.11",
90
+ "@zohodesk/svg": "1.1.14",
91
91
  "@zohodesk/virtualizer": "1.0.3",
92
92
  "velocity-react": "1.4.3",
93
93
  "react-sortable-hoc": "^0.8.3",
94
- "@zohodesk/hooks": "2.0.3",
94
+ "@zohodesk/hooks": "2.0.4",
95
95
  "@zohodesk/utils": "1.3.13",
96
- "@zohodesk/a11y": "2.2.0"
96
+ "@zohodesk/a11y": "2.2.1"
97
97
  }
98
98
  }