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

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 (164) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +16 -5
  4. package/es/Avatar/Avatar.module.css +0 -12
  5. package/es/AvatarTeam/AvatarTeam.module.css +0 -4
  6. package/es/Button/css/Button.module.css +0 -6
  7. package/es/Buttongroup/Buttongroup.module.css +0 -2
  8. package/es/CheckBox/CheckBox.js +10 -0
  9. package/es/CheckBox/CheckBox.module.css +0 -2
  10. package/es/CheckBox/props/propTypes.js +1 -0
  11. package/es/DateTime/DateTime.module.css +0 -1
  12. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  13. package/es/DropBox/css/DropBox.module.css +0 -1
  14. package/es/DropDown/DropDownHeading.module.css +0 -6
  15. package/es/DropDown/DropDownItem.module.css +0 -3
  16. package/es/Label/Label.module.css +0 -1
  17. package/es/ListItem/ListItem.js +2 -2
  18. package/es/ListItem/ListItem.module.css +85 -39
  19. package/es/ListItem/ListItemWithAvatar.js +3 -3
  20. package/es/ListItem/ListItemWithIcon.js +2 -2
  21. package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
  22. package/es/MultiSelect/MultiSelect.js +9 -3
  23. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -1
  24. package/es/MultiSelect/Suggestions.js +8 -4
  25. package/es/MultiSelect/props/defaultProps.js +9 -3
  26. package/es/MultiSelect/props/propTypes.js +7 -3
  27. package/es/PopOver/PopOver.module.css +3 -3
  28. package/es/Radio/Radio.js +26 -7
  29. package/es/Radio/Radio.module.css +3 -1
  30. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  31. package/es/Radio/props/defaultProps.js +1 -0
  32. package/es/Radio/props/propTypes.js +7 -0
  33. package/es/Ribbon/Ribbon.module.css +0 -4
  34. package/es/Select/GroupSelect.js +9 -3
  35. package/es/Select/SelectWithAvatar.js +9 -3
  36. package/es/Select/SelectWithIcon.js +9 -3
  37. package/es/Select/props/defaultProps.js +6 -3
  38. package/es/Select/props/propTypes.js +6 -3
  39. package/es/Switch/Switch.module.css +0 -2
  40. package/es/Tag/Tag.module.css +0 -6
  41. package/es/TextBox/TextBox.module.css +1 -21
  42. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -5
  43. package/es/Textarea/Textarea.module.css +0 -6
  44. package/es/common/customscroll.module.css +27 -3
  45. package/es/v1/Animation/Animation.js +1 -1
  46. package/es/v1/Card/Card.js +1 -1
  47. package/es/v1/CheckBox/CheckBox.js +7 -1
  48. package/es/v1/CheckBox/props/propTypes.js +1 -0
  49. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  50. package/es/v1/ListItem/ListContainer.js +1 -1
  51. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  52. package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
  53. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +1 -1
  54. package/es/v1/MultiSelect/props/defaultProps.js +5 -3
  55. package/es/v1/Radio/Radio.js +22 -7
  56. package/es/v1/Radio/props/defaultProps.js +1 -0
  57. package/es/v1/Radio/props/propTypes.js +7 -0
  58. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  59. package/es/v1/Select/GroupSelect.js +1 -1
  60. package/es/v1/Select/Select.js +1 -1
  61. package/es/v1/Select/SelectWithAvatar.js +5 -7
  62. package/es/v1/Select/SelectWithIcon.js +1 -1
  63. package/es/v1/Select/props/defaultProps.js +1 -1
  64. package/es/v1/Select/props/propTypes.js +1 -3
  65. package/es/v1/Tab/Tabs.js +2 -2
  66. package/es/v1/Tooltip/Tooltip.js +1 -1
  67. package/lib/Avatar/Avatar.module.css +0 -12
  68. package/lib/AvatarTeam/AvatarTeam.module.css +0 -4
  69. package/lib/Button/css/Button.module.css +0 -6
  70. package/lib/Buttongroup/Buttongroup.module.css +0 -2
  71. package/lib/CheckBox/CheckBox.js +34 -24
  72. package/lib/CheckBox/CheckBox.module.css +0 -2
  73. package/lib/CheckBox/props/propTypes.js +1 -0
  74. package/lib/DateTime/DateTime.module.css +0 -1
  75. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -7
  76. package/lib/DropBox/css/DropBox.module.css +0 -1
  77. package/lib/DropDown/DropDownHeading.module.css +0 -6
  78. package/lib/DropDown/DropDownItem.module.css +0 -3
  79. package/lib/Label/Label.module.css +0 -1
  80. package/lib/ListItem/ListItem.js +2 -2
  81. package/lib/ListItem/ListItem.module.css +85 -39
  82. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  83. package/lib/ListItem/ListItemWithIcon.js +2 -2
  84. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  85. package/lib/MultiSelect/MultiSelect.js +8 -3
  86. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
  87. package/lib/MultiSelect/Suggestions.js +8 -4
  88. package/lib/MultiSelect/props/defaultProps.js +9 -3
  89. package/lib/MultiSelect/props/propTypes.js +9 -6
  90. package/lib/PopOver/PopOver.module.css +3 -3
  91. package/lib/Radio/Radio.js +45 -26
  92. package/lib/Radio/Radio.module.css +3 -1
  93. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  94. package/lib/Radio/props/defaultProps.js +1 -0
  95. package/lib/Radio/props/propTypes.js +7 -0
  96. package/lib/Ribbon/Ribbon.module.css +0 -4
  97. package/lib/Select/GroupSelect.js +8 -3
  98. package/lib/Select/SelectWithAvatar.js +8 -3
  99. package/lib/Select/SelectWithIcon.js +8 -3
  100. package/lib/Select/props/defaultProps.js +5 -3
  101. package/lib/Select/props/propTypes.js +6 -3
  102. package/lib/Switch/Switch.module.css +0 -2
  103. package/lib/Tag/Tag.module.css +0 -6
  104. package/lib/TextBox/TextBox.module.css +1 -21
  105. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -5
  106. package/lib/Textarea/Textarea.module.css +0 -6
  107. package/lib/common/customscroll.module.css +27 -3
  108. package/lib/v1/Animation/Animation.js +1 -1
  109. package/lib/v1/Card/Card.js +1 -1
  110. package/lib/v1/CheckBox/CheckBox.js +7 -1
  111. package/lib/v1/CheckBox/props/propTypes.js +1 -0
  112. package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
  113. package/lib/v1/ListItem/ListContainer.js +1 -1
  114. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  115. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
  116. package/lib/v1/MultiSelect/props/defaultProps.js +5 -3
  117. package/lib/v1/Radio/Radio.js +22 -7
  118. package/lib/v1/Radio/props/defaultProps.js +1 -0
  119. package/lib/v1/Radio/props/propTypes.js +7 -0
  120. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  121. package/lib/v1/Select/GroupSelect.js +1 -1
  122. package/lib/v1/Select/Select.js +1 -1
  123. package/lib/v1/Select/SelectWithAvatar.js +4 -6
  124. package/lib/v1/Select/SelectWithIcon.js +1 -1
  125. package/lib/v1/Select/props/defaultProps.js +1 -1
  126. package/lib/v1/Select/props/propTypes.js +1 -3
  127. package/lib/v1/Tab/Tabs.js +2 -2
  128. package/lib/v1/Tooltip/Tooltip.js +1 -1
  129. package/package.json +10 -10
  130. package/result.json +1 -1
  131. package/es/v1/Provider/AvatarSize.js +0 -13
  132. package/es/v1/Provider/Config.js +0 -18
  133. package/es/v1/Provider/CssProvider.js +0 -16
  134. package/es/v1/Provider/IdProvider.js +0 -66
  135. package/es/v1/Provider/LibraryContext.js +0 -37
  136. package/es/v1/Provider/LibraryContextInit.js +0 -3
  137. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
  138. package/es/v1/Provider/ZindexProvider.js +0 -57
  139. package/es/v1/Provider/index.js +0 -4
  140. package/es/v1/Responsive/CustomResponsive.js +0 -195
  141. package/es/v1/Responsive/RefWrapper.js +0 -39
  142. package/es/v1/Responsive/ResizeComponent.js +0 -197
  143. package/es/v1/Responsive/ResizeObserver.js +0 -140
  144. package/es/v1/Responsive/Responsive.js +0 -194
  145. package/es/v1/Responsive/index.js +0 -9
  146. package/es/v1/Responsive/props/defaultProps.js +0 -13
  147. package/es/v1/Responsive/props/propTypes.js +0 -25
  148. package/lib/v1/Provider/AvatarSize.js +0 -24
  149. package/lib/v1/Provider/Config.js +0 -27
  150. package/lib/v1/Provider/CssProvider.js +0 -27
  151. package/lib/v1/Provider/IdProvider.js +0 -79
  152. package/lib/v1/Provider/LibraryContext.js +0 -76
  153. package/lib/v1/Provider/LibraryContextInit.js +0 -15
  154. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
  155. package/lib/v1/Provider/ZindexProvider.js +0 -69
  156. package/lib/v1/Provider/index.js +0 -81
  157. package/lib/v1/Responsive/CustomResponsive.js +0 -242
  158. package/lib/v1/Responsive/RefWrapper.js +0 -57
  159. package/lib/v1/Responsive/ResizeComponent.js +0 -268
  160. package/lib/v1/Responsive/ResizeObserver.js +0 -168
  161. package/lib/v1/Responsive/Responsive.js +0 -274
  162. package/lib/v1/Responsive/index.js +0 -55
  163. package/lib/v1/Responsive/props/defaultProps.js +0 -23
  164. package/lib/v1/Responsive/props/propTypes.js +0 -39
package/README.md CHANGED
@@ -32,17 +32,28 @@ In this Package, we Provide Some Basic Components to Build Web App
32
32
  - TextBoxIcon
33
33
  - Tooltip
34
34
 
35
+ # 1.2.30
36
+
37
+ - **MultiSelect** - needResponsive default Prop Setted as true as before.
38
+
39
+ # 1.2.29
40
+
41
+ - Common providers update for v1 components
42
+
43
+ # 1.2.28
44
+
45
+ - **CheckBox** - getContainerRef prop supported
46
+ - **Radio** - children, customProps, getRef props supported. tabIndex option supported inside a11y prop
47
+
35
48
  # 1.2.27
36
49
 
37
50
  - **DateWidget** - The issue with the YearView Open State Reset on Blur Event in DidMount has been resolved
38
51
 
39
-
40
52
  # 1.2.26
41
53
 
42
- - ** MultiSelect, MultiSelectWithAvatar ** - Mobile Header Render Issue in Mobile Responsive Fixed.
43
- - ** isMobilePopover ** - Function added in Dropbox.
44
- - ** Tag ** - closeTitle not working issue fixed ( because value sends in wrong prop key data-title)
45
-
54
+ - **MultiSelect, MultiSelectWithAvatar** - Mobile Header Render Issue in Mobile Responsive Fixed.
55
+ - **isMobilePopover** - Function added in Dropbox.
56
+ - **Tag** - closeTitle not working issue fixed ( because value sends in wrong prop key data-title)
46
57
 
47
58
  # 1.2.25
48
59
 
@@ -18,31 +18,19 @@
18
18
  composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
19
19
  vertical-align: middle;
20
20
  font-size: var(--avatar_font_size);
21
- /* css:theme-validation:ignore */
22
21
  color: var(--avatar_text_color);
23
22
  border-width: var(--avatar_border_width);
24
23
  border-style: var(--avatar_border_style);
25
24
  }
26
25
 
27
26
  .border {
28
- /* css:theme-validation:ignore */
29
27
  border-color: var(--avatar_border_color);
30
28
  }
31
29
 
32
- .borderOnHover:hover,
33
- .borderOnActive {
34
- /* css:theme-validation:ignore */
35
- }
36
-
37
30
  .borderOnHover:hover, .borderOnActive {
38
31
  border-color: var(--avatar_border_hoverColor);
39
32
  }
40
33
 
41
- .avatar,
42
- .primary {
43
- /* css:theme-validation:ignore */
44
- }
45
-
46
34
  .avatar, .primary {
47
35
  background-color: var(--avatar_bg_color);
48
36
  }
@@ -25,13 +25,10 @@
25
25
  composes: varClass;
26
26
  composes: posab from '../common/common.module.css';
27
27
  top: var(--avatarteam_top_top);
28
- /* css:theme-validation:ignore */
29
- /* css:theme-validation:ignore */
30
28
  width: var(--avatarteam_width);
31
29
  height: var(--avatarteam_height);
32
30
  outline-width: var(--avatarteam_outline_width);
33
31
  outline-style: var(--avatarteam_outline_style);
34
- /* css:theme-validation:ignore */
35
32
  outline-color: var(--avatarteam_outline_color);
36
33
  border-width: var(--avatarteam_border_width);
37
34
  border-style: var(--avatarteam_border_style);
@@ -76,7 +73,6 @@
76
73
  top: var(--avatarteam_bottom_top);
77
74
  outline-width: var(--avatarteam_outline_width);
78
75
  outline-style: var(--avatarteam_outline_style);
79
- /* css:theme-validation:ignore */
80
76
  outline-color: var( --avatarteam_outline_color);
81
77
  }
82
78
  .team:after, .team:before {
@@ -48,13 +48,10 @@
48
48
  composes: dotted from '../../common/common.module.css';
49
49
  position: relative;
50
50
  font-size: var(--button_font_size);
51
- /* css:theme-validation:ignore */
52
51
  color: var(--button_text_color);
53
52
  font-family: var(--button_font_family);
54
53
  text-transform: var(--button_text_transform);
55
- /* css:theme-validation:ignore */
56
54
  min-width: var(--button_min_width);
57
- /* css:theme-validation:ignore */
58
55
  height: var(--button_height);
59
56
  background-color: var(--button_bg_color);
60
57
  border-radius: var(--button_border_radius);
@@ -298,7 +295,6 @@
298
295
  .loadingelement:after {
299
296
  content: '';
300
297
  position: absolute;
301
- /* css:theme-validation:ignore */
302
298
  }
303
299
 
304
300
  .loadingelement:before, .loadingelement:after {
@@ -472,7 +468,6 @@
472
468
  transform-origin: center;
473
469
  border-width: 2px 2px 0 0;
474
470
  border-style: solid;
475
- /* css:theme-validation:ignore */
476
471
  border-color: var(--button_success_border_color);
477
472
  animation: tick var(--zd_no_transition3) ease 0s forwards;
478
473
  }
@@ -529,6 +524,5 @@
529
524
  }
530
525
 
531
526
  .loader{
532
- /* css:theme-validation:ignore */
533
527
  color:var(--dot_mirror)
534
528
  }
@@ -11,8 +11,6 @@
11
11
  .buttonGroup {
12
12
  composes: varClass;
13
13
  composes: cboth from '../common/common.module.css';
14
- /* css:theme-validation:ignore */
15
- /* css:theme-validation:ignore */
16
14
  background-color: var(--buttongroup_bg_color);
17
15
  box-shadow: var(--buttongroup_box_shadow);
18
16
  padding: var(--buttongroup_padding);
@@ -11,6 +11,7 @@ export default class CheckBox extends React.Component {
11
11
  constructor(props) {
12
12
  super(props);
13
13
  this.onChange = this.onChange.bind(this);
14
+ this.handleGetContainerRef = this.handleGetContainerRef.bind(this);
14
15
  }
15
16
 
16
17
  onChange(e) {
@@ -21,6 +22,14 @@ export default class CheckBox extends React.Component {
21
22
  onChange && onChange(!checked, e);
22
23
  }
23
24
 
25
+ handleGetContainerRef(ele) {
26
+ let {
27
+ getContainerRef,
28
+ id
29
+ } = this.props;
30
+ getContainerRef && getContainerRef(ele, id);
31
+ }
32
+
24
33
  render() {
25
34
  let {
26
35
  id,
@@ -78,6 +87,7 @@ export default class CheckBox extends React.Component {
78
87
  onClick: isReadOnly || disabled ? null : this.onChange,
79
88
  tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
80
89
  "aria-checked": ariaChecked,
90
+ eleRef: this.handleGetContainerRef,
81
91
  role: role,
82
92
  "aria-label": ariaLabel,
83
93
  "aria-labelledby": ariaLabelledby,
@@ -34,7 +34,6 @@
34
34
  }
35
35
  .boxContainer {
36
36
  composes: offSelection from '../common/common.module.css';
37
- /* css:theme-validation:ignore */
38
37
  border-radius: 2px;
39
38
  background-color: var(--checkbox_bg_color);
40
39
  }
@@ -121,7 +120,6 @@
121
120
 
122
121
  .checkedprimaryLabel,
123
122
  .checkeddangerLabel {
124
- /* css:theme-validation:ignore */
125
123
  color: var(--checkbox_checked_active_color);
126
124
  }
127
125
  .activeprimaryLabel:hover
@@ -8,6 +8,7 @@ export const propTypes = {
8
8
  disabled: PropTypes.bool,
9
9
  disabledTitle: PropTypes.string,
10
10
  getRef: PropTypes.func,
11
+ getContainerRef: PropTypes.func,
11
12
  id: PropTypes.string,
12
13
  isFilled: PropTypes.bool,
13
14
  isClipped: PropTypes.bool,
@@ -36,7 +36,6 @@
36
36
  width: var(--zd_size28) ;
37
37
  height: var(--zd_size28) ;
38
38
  line-height: 1.3846;
39
- /* css:theme-validation:ignore */
40
39
  text-align: center;
41
40
  padding: var(--zd_size4) 0 ;
42
41
  border-radius: 50%;
@@ -18,11 +18,6 @@
18
18
  box-shadow: var(--dropbox_box_shadow);
19
19
  }
20
20
 
21
- .defaultPalette,
22
- .darkPalette {
23
- /* css:theme-validation:ignore */
24
- }
25
-
26
21
  .defaultPalette, .darkPalette {
27
22
  background-color: var(--dropbox_bg_color);
28
23
  }
@@ -212,7 +207,6 @@
212
207
  height: var(--zd_size10) ;
213
208
  width: var(--zd_size10) ;
214
209
  box-shadow: 1px -1px 2px 0 var(--dropbox_arrow_box_shadow_color);
215
- /* css:theme-validation:ignore */
216
210
  background-color: var(--dropbox_bg_color);
217
211
  -webkit-transform: rotateZ(-45deg);
218
212
  transform: rotateZ(-45deg);
@@ -422,7 +416,6 @@
422
416
  .closeBar {
423
417
  /* Variable:Ignore */
424
418
  height: 6px;
425
- /* css:theme-validation:ignore */
426
419
  width: 20% ;
427
420
  border-radius: 5px;
428
421
  background-color: var(--dropbox_mob_close_bg_color);
@@ -49,7 +49,6 @@
49
49
 
50
50
  .freeze {
51
51
  composes: varClass;
52
- /* css:theme-validation:ignore */
53
52
  background: var(--dropbox_mob_bg_color);
54
53
  }
55
54
 
@@ -18,9 +18,7 @@
18
18
  font-size: var(--zd_font_size11) ;
19
19
  letter-spacing: 0.6px;
20
20
  text-transform: var(--dropdownheading_text_transform);
21
- /* css:theme-validation:ignore */
22
21
  color: var(--dropdownheading_text_color);
23
- /* css:theme-validation:ignore */
24
22
  padding: var(--dropdownheading_padding);
25
23
  background-color: var(--dropdownheading_bg_color);
26
24
  }
@@ -35,10 +33,6 @@
35
33
  .light {
36
34
  composes: default;
37
35
  }
38
- .light::after,
39
- .dark::after {
40
- /* css:theme-validation:ignore */
41
- }
42
36
  .light::after, .dark::after {
43
37
  background-color: var(--dropdownheading_underline_bg_color);
44
38
  }
@@ -20,8 +20,6 @@
20
20
  position: relative;
21
21
  color: var(--zdt_dropdown_default_text);
22
22
  font-size: var(--zd_font_size13) ;
23
- /* css:theme-validation:ignore */
24
- /* css:theme-validation:ignore */
25
23
  padding: var(--dropdownitem-padding);
26
24
  border-style: solid;
27
25
  border-color: var(--dropdownitem-border-color);
@@ -76,7 +74,6 @@
76
74
  opacity: 0;
77
75
  visibility: hidden;
78
76
  width: var(--dropdownitem-user-width);
79
- /* css:theme-validation:ignore */
80
77
  border-width: var(--dropdownitem-user-border-width);
81
78
  border-style: var(--dropdownitem-user-border-style);
82
79
  border-color: var(--dropdownitem-user-border-color);
@@ -12,7 +12,6 @@
12
12
  vertical-align: middle;
13
13
  line-height: var(--label_line_height);
14
14
  font-size: var(--label_font_size);
15
- /* css:theme-validation:ignore */
16
15
  color: var(--label_text_color);
17
16
  font-family: var(--label_font_family);
18
17
  cursor: var(--label_cursor);
@@ -102,7 +102,7 @@ export default class ListItem extends React.Component {
102
102
  autoHover: autoHover,
103
103
  needTick: needTick,
104
104
  needBorder: needBorder,
105
- customClass: customListItem,
105
+ customClass: `${style.txtAlignBaseLine} ${customListItem}`,
106
106
  dataId: dataIdString,
107
107
  dataSelectorId: `${dataSelectorId}`,
108
108
  isLink: isLink,
@@ -123,7 +123,7 @@ export default class ListItem extends React.Component {
123
123
  adjust: true,
124
124
  className: style.children
125
125
  }, children) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
126
- className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon}`,
126
+ className: `${style.tickIcon} ${tickIconPalette} ${customTickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
127
127
  "aria-hidden": ariaHidden,
128
128
  dataId: `${dataIdString}_tickIcon`,
129
129
  dataSelectorId: `${dataSelectorId}_tickIcon`
@@ -17,16 +17,15 @@
17
17
  }[dir=ltr] .varClass {
18
18
  --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
19
19
  }[dir=rtl] .varClass {
20
- --listitem_avatar_margin: 0 0 0 var(--zd_size15);
20
+ --listitem_avatar_margin: 0 var(--zd_size15) 0 0;
21
21
  }
22
+
22
23
  .list {
23
24
  composes: varClass;
24
25
  position: relative;
25
26
  list-style: none;
26
- /* css:theme-validation:ignore */
27
27
  color: var(--listitem_text_color);
28
28
  font-size: var(--zd_font_size13) ;
29
- /* css:theme-validation:ignore */
30
29
  height: var(--listitem_height);
31
30
  min-height: var(--listitem_min_height);
32
31
  text-decoration: none;
@@ -36,142 +35,163 @@
36
35
  border-color: var(--listitem_border_color);
37
36
  cursor: pointer;
38
37
  }
39
- .list,
40
- .default,
41
- .secondary {
42
- /* css:theme-validation:ignore */
43
- }
38
+
44
39
  .list, .default, .secondary {
45
40
  background-color: var(--listitem_bg_color);
46
41
  }
42
+
47
43
  [dir=ltr] .withBorder {
48
- --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
44
+ --listitem_border_width: 0 0 0 1px
45
+ /*rtl: 0 1px 0 0*/
46
+ ;
49
47
  }
48
+
50
49
  [dir=rtl] .withBorder {
51
- --listitem_border_width: 0 1px 0 0;
50
+ --listitem_border_width: 0 0 0 1px ;
52
51
  }
52
+
53
53
  .active {
54
54
  --listitem_border_color: var(--zdt_listitem_active_border);
55
55
  }
56
+
56
57
  [dir=ltr] .small {
57
58
  --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
58
59
  }
60
+
59
61
  [dir=rtl] .small {
60
- --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3);
62
+ --listitem_padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5);
61
63
  }
64
+
62
65
  .medium {
63
66
  --listitem_padding: var(--zd_size7) var(--zd_size20);
64
67
  --listitem_min_height: var(--zd_size35);
65
68
  }
69
+
66
70
  .large {
67
71
  --listitem_height: var(--zd_size48);
68
72
  }
73
+
69
74
  [dir=ltr] .large {
70
75
  --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
71
76
  }
77
+
72
78
  [dir=rtl] .large {
73
- --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
79
+ --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25);
74
80
  }
81
+
75
82
  .value,
76
83
  .children {
77
84
  composes: dotted from '../common/common.module.css';
78
85
  }
79
- .value, .multiLineValue {
86
+
87
+ .value {
80
88
  line-height: 1.5385;
81
89
  }
82
- .multiLineValue{
90
+
91
+ .multiLineValue {
92
+ line-height: 1.3076;
83
93
  word-break: break-word;
84
- composes: clamp from '../common/common.module.css'
94
+ -webkit-line-clamp: 5;
95
+ composes: clamp from '../common/common.module.css';
85
96
  }
97
+
86
98
  .iconBox {
87
99
  width: var(--zd_size20) ;
88
100
  text-align: center;
89
101
  }
102
+
90
103
  [dir=ltr] .iconBox {
91
104
  margin-right: var(--zd_size10) ;
92
105
  }
106
+
93
107
  [dir=rtl] .iconBox {
94
108
  margin-left: var(--zd_size10) ;
95
109
  }
110
+
96
111
  .iconBox,
97
112
  .leftAvatar {
98
113
  font-size: 0 ;
99
114
  }
115
+
100
116
  .leftAvatar {
101
117
  margin: var(--listitem_avatar_margin);
102
118
  }
103
119
 
104
- .defaultHover,
105
- .primaryHover,
106
- .secondaryHover,
107
- .darkHover {
108
- /* css:theme-validation:ignore */
109
- }
110
-
111
120
  .defaultHover, .primaryHover, .secondaryHover, .darkHover {
112
121
  background-color: var(--listitem_highlight_bg_color);
113
122
  }
123
+
114
124
  .activewithBorder {
115
125
  --listitem_border_color: var(--zdt_listitem_active_border);
116
126
  }
127
+
117
128
  [dir=ltr] .activewithBorder {
118
- --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
129
+ --listitem_border_width: 0 0 0 1px
130
+ /*rtl: 0 1px 0 0*/
131
+ ;
119
132
  }
133
+
120
134
  [dir=rtl] .activewithBorder {
121
- --listitem_border_width: 0 1px 0 0;
135
+ --listitem_border_width: 0 0 0 1px ;
122
136
  }
123
137
 
124
138
  .defaultHover,
125
139
  .defaultEffect:hover
140
+
126
141
  /* .defaultEffect:focus */
127
- {
142
+ {
128
143
  --listitem_bg_color: var(--zdt_listitem_highlight_bg);
129
144
  }
145
+
130
146
  .primaryHover,
131
147
  .primaryEffect:hover
148
+
132
149
  /* .primaryEffect:focus */
133
- {
150
+ {
134
151
  --listitem_bg_color: var(--zdt_listitem_primary_bg);
135
152
  --listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
136
153
  }
154
+
137
155
  .secondaryHover,
138
156
  .secondaryEffect:hover
157
+
139
158
  /* .secondaryEffect:focus */
140
- {
159
+ {
141
160
  --listitem_bg_color: var(--zdt_listitem_secondary_bg);
142
161
  --listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
143
162
  --listitem_text_color: var(--zdt_listitem_secondary_text);
144
163
  }
164
+
145
165
  .darkHover,
146
166
  .darkEffect:hover
167
+
147
168
  /* .darkEffect:focus */
148
- {
169
+ {
149
170
  --listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
150
171
  --listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
151
172
  }
152
- .activedefault,
153
- .activeprimary,
154
- .activesecondary,
155
- .activedark {
156
- /* css:theme-validation:ignore */
157
- }
173
+
158
174
  .activedefault, .activeprimary, .activesecondary, .activedark {
159
175
  background-color: var(--listitem_active_bg_color);
160
176
  }
177
+
161
178
  .activedefault,
162
179
  .activedefault:hover,
163
180
  .activeprimary,
164
181
  .activeprimary:hover {
165
182
  --listitem_active_bg_color: var(--zdt_listitem_primary_bg);
166
183
  }
184
+
167
185
  .activesecondary {
168
186
  --listitem_active_bg_color: var(--zdt_listitem_secondary_bg);
169
187
  --listitem_text_color: var(--zdt_listitem_secondary_text);
170
188
  }
189
+
171
190
  .dark {
172
191
  --listitem_bg_color: var(--zdt_listitem_dark_bg);
173
192
  --listitem_text_color: var(--zdt_listitem_dark_text);
174
193
  }
194
+
175
195
  .activedark {
176
196
  --listitem_active_bg_color: var(--zdt_listitem_dark_active_bg);
177
197
  }
@@ -180,7 +200,6 @@
180
200
  .defaultTick,
181
201
  .darkTick {
182
202
  position: absolute;
183
- /* css:theme-validation:ignore */
184
203
  color: var(--listitem_tickicon_color);
185
204
  }
186
205
 
@@ -191,36 +210,63 @@
191
210
  [dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
192
211
  left: var(--zd_size20) ;
193
212
  }
213
+
194
214
  .defaultTick {
195
215
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
196
216
  }
217
+
197
218
  .darkTick {
198
219
  --listitem_tickicon_color: var(--zdt_listitem_dark_tickicon);
199
220
  }
200
- .defaultTick > i {
221
+
222
+ .defaultTick>i {
201
223
  display: block;
202
224
  }
225
+
203
226
  [dir=ltr] .smallwithTick {
204
227
  --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
205
228
  }
229
+
206
230
  [dir=rtl] .smallwithTick {
207
- --listitem_padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size39);
231
+ --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size5);
208
232
  }
233
+
209
234
  [dir=ltr] .mediumwithTick {
210
235
  --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
211
236
  }
237
+
212
238
  [dir=rtl] .mediumwithTick {
213
- --listitem_padding: var(--zd_size7) var(--zd_size20) var(--zd_size7) var(--zd_size39);
239
+ --listitem_padding: var(--zd_size7) var(--zd_size39) var(--zd_size7) var(--zd_size20);
214
240
  }
241
+
215
242
  [dir=ltr] .largewithTick {
216
243
  --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
217
244
  }
245
+
218
246
  [dir=rtl] .largewithTick {
219
- --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
247
+ --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10) var(--zd_size25);
220
248
  }
249
+
221
250
  .responsiveHeight {
222
251
  --listitem_min_height: var(--zd_size45);
223
252
  font-size: var(--zd_font_size15) ;
224
253
  padding-top: var(--zd_size10) ;
225
254
  padding-bottom: var(--zd_size10) ;
226
255
  }
256
+
257
+ .autoHeight {
258
+ height: auto ;
259
+ }
260
+
261
+ .tickIconCenter {
262
+ top: 50% ;
263
+ transform: translateY(-50%);
264
+ }
265
+
266
+ .txtAlignBaseLine {
267
+ align-items: baseline;
268
+ }
269
+
270
+ .alignSelfTop {
271
+ align-self: start;
272
+ }
@@ -107,7 +107,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
107
107
  autoHover: autoHover,
108
108
  needTick: needTick,
109
109
  needBorder: needBorder,
110
- customClass: customListItem,
110
+ customClass: `${needMultiLineText ? style.autoHeight : ''} ${customListItem}`,
111
111
  dataId: `${dataIdString}_ListItemWithAvatar`,
112
112
  dataSelectorId: `${dataSelectorId}`,
113
113
  onClick: this.handleClick,
@@ -117,7 +117,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
117
117
  title: null,
118
118
  customProps: ListItemProps
119
119
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
120
- className: style.leftAvatar
120
+ className: `${needMultiLineText ? style.alignSelfTop : ''} ${style.leftAvatar}`
121
121
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
122
122
  name: name,
123
123
  size: "small",
@@ -144,7 +144,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
144
144
  "data-title": isDisabled ? null : title,
145
145
  className: needMultiLineText ? style.multiLineValue : style.value
146
146
  }, value) : null, needTick && active ? /*#__PURE__*/React.createElement(Box, {
147
- className: style.tickIcon,
147
+ className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
148
148
  "aria-hidden": ariaHidden,
149
149
  dataId: `${dataIdString}_tickIcon`,
150
150
  dataSelectorId: `${dataSelectorId}_tickIcon`
@@ -97,7 +97,7 @@ export default class ListItemWithIcon extends React.Component {
97
97
  autoHover: autoHover,
98
98
  needTick: needTick,
99
99
  needBorder: needBorder,
100
- customClass: customClass,
100
+ customClass: `${needMultiLineText && iconClass && !iconName ? style.txtAlignBaseLine : ''} ${customClass}`,
101
101
  dataId: dataIdString,
102
102
  dataSelectorId: dataSelectorId,
103
103
  isLink: isLink,
@@ -126,7 +126,7 @@ export default class ListItemWithIcon extends React.Component {
126
126
  "data-title": isDisabled ? null : title,
127
127
  dataId: `${dataIdString}_Text`
128
128
  }, value), needTick && active ? /*#__PURE__*/React.createElement(Box, {
129
- className: style.tickIcon,
129
+ className: `${style.tickIcon} ${needMultiLineText ? style.tickIconCenter : ''}`,
130
130
  "aria-hidden": ariaHidden,
131
131
  dataId: `${dataIdString}_tickIcon`,
132
132
  dataSelectorId: `${dataSelectorId}_tickIcon`
@@ -1,3 +1,5 @@
1
+ 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); }
2
+
1
3
  import React from 'react';
2
4
  import { AdvancedGroupMultiSelect_propTypes } from './props/propTypes';
3
5
  import { AdvancedGroupMultiSelect_defaultProps } from './props/defaultProps';
@@ -870,8 +872,12 @@ class AdvancedGroupMultiSelect extends React.Component {
870
872
  a11y,
871
873
  palette,
872
874
  needEffect,
873
- autoComplete
875
+ autoComplete,
876
+ customProps
874
877
  } = this.props;
878
+ const {
879
+ suggestionsProps
880
+ } = customProps;
875
881
  let {
876
882
  clearText = 'Clear all'
877
883
  } = i18nKeys;
@@ -1031,7 +1037,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1031
1037
  a11y: {
1032
1038
  role: 'heading'
1033
1039
  }
1034
- })), /*#__PURE__*/React.createElement(Suggestions, {
1040
+ })), /*#__PURE__*/React.createElement(Suggestions, _extends({
1035
1041
  suggestions: suggestions,
1036
1042
  selectedOptions: selectedOptionIds,
1037
1043
  getRef: this.suggestionItemRef,
@@ -1043,7 +1049,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1043
1049
  a11y: {
1044
1050
  role: 'option'
1045
1051
  }
1046
- }));
1052
+ }, suggestionsProps)));
1047
1053
  }) : /*#__PURE__*/React.createElement(EmptyState, {
1048
1054
  options: revampedGroups,
1049
1055
  searchString: searchStr,