@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
@@ -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);
@@ -57,6 +57,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
57
57
 
58
58
  _this = _super.call(this, props);
59
59
  _this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
60
+ _this.handleGetContainerRef = _this.handleGetContainerRef.bind(_assertThisInitialized(_this));
60
61
  return _this;
61
62
  }
62
63
 
@@ -68,33 +69,41 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
68
69
  checked = _this$props.checked;
69
70
  onChange && onChange(!checked, e);
70
71
  }
72
+ }, {
73
+ key: "handleGetContainerRef",
74
+ value: function handleGetContainerRef(ele) {
75
+ var _this$props2 = this.props,
76
+ getContainerRef = _this$props2.getContainerRef,
77
+ id = _this$props2.id;
78
+ getContainerRef && getContainerRef(ele, id);
79
+ }
71
80
  }, {
72
81
  key: "render",
73
82
  value: function render() {
74
- var _this$props2 = this.props,
75
- id = _this$props2.id,
76
- checked = _this$props2.checked,
77
- disabled = _this$props2.disabled,
78
- isReadOnly = _this$props2.isReadOnly,
79
- disabledTitle = _this$props2.disabledTitle,
80
- title = _this$props2.title,
81
- palette = _this$props2.palette,
82
- text = _this$props2.text,
83
- size = _this$props2.size,
84
- labelPalette = _this$props2.labelPalette,
85
- labelSize = _this$props2.labelSize,
86
- isFilled = _this$props2.isFilled,
87
- isClipped = _this$props2.isClipped,
88
- getRef = _this$props2.getRef,
89
- variant = _this$props2.variant,
90
- active = _this$props2.active,
91
- dataId = _this$props2.dataId,
92
- name = _this$props2.name,
93
- activeStyle = _this$props2.activeStyle,
94
- a11y = _this$props2.a11y,
95
- customClass = _this$props2.customClass,
96
- customProps = _this$props2.customProps,
97
- dataSelectorId = _this$props2.dataSelectorId;
83
+ var _this$props3 = this.props,
84
+ id = _this$props3.id,
85
+ checked = _this$props3.checked,
86
+ disabled = _this$props3.disabled,
87
+ isReadOnly = _this$props3.isReadOnly,
88
+ disabledTitle = _this$props3.disabledTitle,
89
+ title = _this$props3.title,
90
+ palette = _this$props3.palette,
91
+ text = _this$props3.text,
92
+ size = _this$props3.size,
93
+ labelPalette = _this$props3.labelPalette,
94
+ labelSize = _this$props3.labelSize,
95
+ isFilled = _this$props3.isFilled,
96
+ isClipped = _this$props3.isClipped,
97
+ getRef = _this$props3.getRef,
98
+ variant = _this$props3.variant,
99
+ active = _this$props3.active,
100
+ dataId = _this$props3.dataId,
101
+ name = _this$props3.name,
102
+ activeStyle = _this$props3.activeStyle,
103
+ a11y = _this$props3.a11y,
104
+ customClass = _this$props3.customClass,
105
+ customProps = _this$props3.customProps,
106
+ dataSelectorId = _this$props3.dataSelectorId;
98
107
  var _customProps$CheckBox = customProps.CheckBoxProps,
99
108
  CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
100
109
  _customProps$LabelPro = customProps.LabelProps,
@@ -127,6 +136,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
127
136
  onClick: isReadOnly || disabled ? null : this.onChange,
128
137
  tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
129
138
  "aria-checked": ariaChecked,
139
+ eleRef: this.handleGetContainerRef,
130
140
  role: role,
131
141
  "aria-label": ariaLabel,
132
142
  "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
@@ -18,6 +18,7 @@ var propTypes = {
18
18
  disabled: _propTypes["default"].bool,
19
19
  disabledTitle: _propTypes["default"].string,
20
20
  getRef: _propTypes["default"].func,
21
+ getContainerRef: _propTypes["default"].func,
21
22
  id: _propTypes["default"].string,
22
23
  isFilled: _propTypes["default"].bool,
23
24
  isClipped: _propTypes["default"].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);
@@ -150,7 +150,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
150
150
  autoHover: autoHover,
151
151
  needTick: needTick,
152
152
  needBorder: needBorder,
153
- customClass: customListItem,
153
+ customClass: "".concat(_ListItemModule["default"].txtAlignBaseLine, " ").concat(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(customTickIcon),
174
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
175
175
  "aria-hidden": ariaHidden,
176
176
  dataId: "".concat(dataIdString, "_tickIcon"),
177
177
  dataSelectorId: "".concat(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
+ }
@@ -158,7 +158,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
158
158
  autoHover: autoHover,
159
159
  needTick: needTick,
160
160
  needBorder: needBorder,
161
- customClass: customListItem,
161
+ customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
162
162
  dataId: "".concat(dataIdString, "_ListItemWithAvatar"),
163
163
  dataSelectorId: "".concat(dataSelectorId),
164
164
  onClick: this.handleClick,
@@ -168,7 +168,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
168
168
  title: null,
169
169
  customProps: ListItemProps
170
170
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
171
- className: _ListItemModule["default"].leftAvatar
171
+ className: "".concat(needMultiLineText ? _ListItemModule["default"].alignSelfTop : '', " ").concat(_ListItemModule["default"].leftAvatar)
172
172
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
173
173
  name: name,
174
174
  size: "small",
@@ -195,7 +195,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
195
195
  "data-title": isDisabled ? null : title,
196
196
  className: needMultiLineText ? _ListItemModule["default"].multiLineValue : _ListItemModule["default"].value
197
197
  }, value) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
198
- className: _ListItemModule["default"].tickIcon,
198
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
199
199
  "aria-hidden": ariaHidden,
200
200
  dataId: "".concat(dataIdString, "_tickIcon"),
201
201
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -147,7 +147,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
147
147
  autoHover: autoHover,
148
148
  needTick: needTick,
149
149
  needBorder: needBorder,
150
- customClass: customClass,
150
+ customClass: "".concat(needMultiLineText && iconClass && !iconName ? _ListItemModule["default"].txtAlignBaseLine : '', " ").concat(customClass),
151
151
  dataId: dataIdString,
152
152
  dataSelectorId: dataSelectorId,
153
153
  isLink: isLink,
@@ -176,7 +176,7 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
176
176
  "data-title": isDisabled ? null : title,
177
177
  dataId: "".concat(dataIdString, "_Text")
178
178
  }, value), needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
179
- className: _ListItemModule["default"].tickIcon,
179
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
180
180
  "aria-hidden": ariaHidden,
181
181
  dataId: "".concat(dataIdString, "_tickIcon"),
182
182
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")