@zohodesk/components 1.0.0-temp-199.10 → 1.0.0-temp-199.12

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 (87) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +18 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +8 -0
  4. package/assets/Appearance/light/mode/Component_LightMode.module.css +8 -0
  5. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +8 -0
  6. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +2 -2
  7. package/es/Button/css/Button.module.css +57 -10
  8. package/es/Button/css/cssJSLogic.js +1 -1
  9. package/es/Button/props/propTypes.js +1 -1
  10. package/es/ListItem/ListContainer.js +3 -2
  11. package/es/ListItem/ListItem.js +3 -2
  12. package/es/ListItem/ListItem.module.css +4 -7
  13. package/es/ListItem/ListItemWithAvatar.js +1 -1
  14. package/es/ListItem/ListItemWithIcon.js +2 -1
  15. package/es/ListItem/props/defaultProps.js +2 -1
  16. package/es/ListItem/props/propTypes.js +2 -1
  17. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
  18. package/es/MultiSelect/MultiSelect.js +2 -2
  19. package/es/MultiSelect/Suggestions.js +5 -7
  20. package/es/MultiSelect/props/defaultProps.js +1 -3
  21. package/es/MultiSelect/props/propTypes.js +4 -2
  22. package/es/RippleEffect/RippleEffect.module.css +16 -0
  23. package/es/RippleEffect/props/propTypes.js +1 -1
  24. package/es/Select/GroupSelect.js +2 -2
  25. package/es/Select/SelectWithAvatar.js +2 -2
  26. package/es/Select/SelectWithIcon.js +2 -2
  27. package/es/Select/props/propTypes.js +6 -3
  28. package/es/Tag/Tag.js +1 -1
  29. package/es/Textarea/Textarea.js +9 -3
  30. package/es/Textarea/Textarea.module.css +11 -3
  31. package/es/Textarea/__tests__/Textarea.spec.js +38 -0
  32. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +90 -41
  33. package/es/Textarea/props/defaultProps.js +2 -1
  34. package/es/Textarea/props/propTypes.js +5 -2
  35. package/es/common/common.module.css +2 -2
  36. package/es/v1/ListItem/ListItem.js +1 -1
  37. package/es/v1/MultiSelect/AdvancedMultiSelect.js +1 -2
  38. package/es/v1/MultiSelect/MultiSelect.js +2 -7
  39. package/es/v1/MultiSelect/Suggestions.js +4 -8
  40. package/es/v1/MultiSelect/props/defaultProps.js +2 -4
  41. package/es/v1/MultiSelect/props/propTypes.js +2 -6
  42. package/es/v1/Select/GroupSelect.js +2 -7
  43. package/es/v1/Select/SelectWithAvatar.js +2 -7
  44. package/es/v1/Select/props/defaultProps.js +2 -4
  45. package/es/v1/Select/props/propTypes.js +2 -6
  46. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +2 -2
  47. package/lib/Button/css/Button.module.css +57 -10
  48. package/lib/Button/css/cssJSLogic.js +1 -1
  49. package/lib/Button/props/propTypes.js +1 -1
  50. package/lib/ListItem/ListContainer.js +3 -2
  51. package/lib/ListItem/ListItem.js +3 -2
  52. package/lib/ListItem/ListItem.module.css +4 -7
  53. package/lib/ListItem/ListItemWithAvatar.js +1 -1
  54. package/lib/ListItem/ListItemWithIcon.js +2 -1
  55. package/lib/ListItem/props/defaultProps.js +2 -1
  56. package/lib/ListItem/props/propTypes.js +2 -1
  57. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -2
  58. package/lib/MultiSelect/MultiSelect.js +3 -3
  59. package/lib/MultiSelect/Suggestions.js +7 -8
  60. package/lib/MultiSelect/props/defaultProps.js +1 -3
  61. package/lib/MultiSelect/props/propTypes.js +4 -2
  62. package/lib/RippleEffect/RippleEffect.module.css +16 -0
  63. package/lib/RippleEffect/props/propTypes.js +1 -1
  64. package/lib/Select/GroupSelect.js +3 -3
  65. package/lib/Select/SelectWithAvatar.js +3 -3
  66. package/lib/Select/SelectWithIcon.js +3 -3
  67. package/lib/Select/props/propTypes.js +6 -3
  68. package/lib/Tag/Tag.js +1 -1
  69. package/lib/Textarea/Textarea.js +9 -4
  70. package/lib/Textarea/Textarea.module.css +11 -3
  71. package/lib/Textarea/__tests__/Textarea.spec.js +38 -0
  72. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +90 -41
  73. package/lib/Textarea/props/defaultProps.js +2 -1
  74. package/lib/Textarea/props/propTypes.js +5 -2
  75. package/lib/common/common.module.css +2 -2
  76. package/lib/v1/ListItem/ListItem.js +1 -1
  77. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -3
  78. package/lib/v1/MultiSelect/MultiSelect.js +3 -8
  79. package/lib/v1/MultiSelect/Suggestions.js +4 -8
  80. package/lib/v1/MultiSelect/props/defaultProps.js +2 -4
  81. package/lib/v1/MultiSelect/props/propTypes.js +2 -6
  82. package/lib/v1/Select/GroupSelect.js +3 -8
  83. package/lib/v1/Select/SelectWithAvatar.js +3 -8
  84. package/lib/v1/Select/props/defaultProps.js +2 -4
  85. package/lib/v1/Select/props/propTypes.js +2 -6
  86. package/package.json +6 -6
  87. package/result.json +1 -1
@@ -27,8 +27,7 @@ export default class Suggestions extends React.PureComponent {
27
27
  avatarPalette,
28
28
  palette,
29
29
  htmlId,
30
- a11y,
31
- needMultiLineText
30
+ a11y
32
31
  } = this.props;
33
32
  const {
34
33
  ariaParentRole,
@@ -93,8 +92,7 @@ export default class Suggestions extends React.PureComponent {
93
92
  size: listItemSize,
94
93
  avatarPalette: avatarPalette,
95
94
  palette: palette,
96
- a11y: list_a11y,
97
- needMultiLineText: needMultiLineText
95
+ a11y: list_a11y
98
96
  });
99
97
  } else if (optionType === 'icon') {
100
98
  return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
@@ -114,8 +112,7 @@ export default class Suggestions extends React.PureComponent {
114
112
  iconSize: iconSize,
115
113
  size: listItemSize,
116
114
  palette: palette,
117
- a11y: list_a11y,
118
- needMultiLineText: needMultiLineText
115
+ a11y: list_a11y
119
116
  });
120
117
  }
121
118
 
@@ -134,8 +131,7 @@ export default class Suggestions extends React.PureComponent {
134
131
  active: isActive,
135
132
  size: listItemSize,
136
133
  palette: palette,
137
- a11y: list_a11y,
138
- needMultiLineText: needMultiLineText
134
+ a11y: list_a11y
139
135
  });
140
136
  })));
141
137
  }
@@ -117,8 +117,7 @@ export const MultiSelect_defaultProps = {
117
117
  keepSelectedOptions: false,
118
118
  selectedOptionsCount: 0,
119
119
  cardHeaderName: '',
120
- needResponsive: true,
121
- customProps: {}
120
+ needResponsive: true
122
121
  };
123
122
  export const MultiSelectHeader_defaultProps = {
124
123
  dataId: 'MultiSelectHeader'
@@ -162,6 +161,5 @@ export const SelectedOptions_defaultProps = {
162
161
  dataId: 'selectedOptions'
163
162
  };
164
163
  export const Suggestions_defaultProps = {
165
- a11y: {},
166
- needMultiLineText: false
164
+ a11y: {}
167
165
  };
@@ -108,10 +108,7 @@ export const MultiSelect_propTypes = {
108
108
  needSelectAll: PropTypes.bool,
109
109
  selectAllText: PropTypes.string,
110
110
  setAriaId: PropTypes.string,
111
- ariaErrorId: PropTypes.string,
112
- customProps: {
113
- suggestionsProps: PropTypes.object
114
- }
111
+ ariaErrorId: PropTypes.string
115
112
  };
116
113
  export const MultiSelectHeader_propTypes = {
117
114
  dataId: PropTypes.string,
@@ -176,8 +173,7 @@ export const Suggestions_propTypes = {
176
173
  logo: PropTypes.string,
177
174
  optionType: PropTypes.string,
178
175
  listItemProps: PropTypes.object
179
- })),
180
- needMultiLineText: PropTypes.bool
176
+ }))
181
177
  };
182
178
  export const AdvancedGroupMultiSelect_propTypes = {
183
179
  animationStyle: PropTypes.string,
@@ -590,12 +590,8 @@ export class GroupSelectComponent extends PureComponent {
590
590
  htmlId,
591
591
  iconOnHover,
592
592
  isLoading,
593
- dataSelectorId,
594
- customProps
593
+ dataSelectorId
595
594
  } = this.props;
596
- const {
597
- suggestionsProps = {}
598
- } = customProps;
599
595
  i18nKeys = Object.assign({}, i18nKeys, {
600
596
  emptyText: i18nKeys.emptyText || emptyMessage,
601
597
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -788,8 +784,7 @@ export class GroupSelectComponent extends PureComponent {
788
784
  ariaParentRole: 'listbox',
789
785
  role: 'option'
790
786
  },
791
- dataId: `${dataId}_Options`,
792
- ...suggestionsProps
787
+ dataId: `${dataId}_Options`
793
788
  }));
794
789
  }) : /*#__PURE__*/React.createElement(EmptyState, {
795
790
  options: revampedGroups,
@@ -163,12 +163,8 @@ class SelectWithAvatarComponent extends SelectComponent {
163
163
  needEffect,
164
164
  isLoading,
165
165
  dataSelectorId,
166
- getTargetRef,
167
- customProps
166
+ getTargetRef
168
167
  } = this.props;
169
- const {
170
- suggestionsProps = {}
171
- } = customProps;
172
168
  i18nKeys = Object.assign({}, i18nKeys, {
173
169
  emptyText: i18nKeys.emptyText || emptyMessage,
174
170
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -325,8 +321,7 @@ class SelectWithAvatarComponent extends SelectComponent {
325
321
  a11y: {
326
322
  ariaParentRole: 'listbox',
327
323
  role: 'option'
328
- },
329
- ...suggestionsProps
324
+ }
330
325
  }) : /*#__PURE__*/React.createElement(EmptyState, {
331
326
  isLoading: isFetchingOptions,
332
327
  options: options,
@@ -69,8 +69,7 @@ export const GroupSelect_defaultProps = {
69
69
  isRestrictScroll: false,
70
70
  i18nKeys: {},
71
71
  iconOnHover: false,
72
- isLoading: false,
73
- customProps: {}
72
+ isLoading: false
74
73
  };
75
74
  export const SelectWithAvatar_defaultProps = {
76
75
  animationStyle: 'bounce',
@@ -96,8 +95,7 @@ export const SelectWithAvatar_defaultProps = {
96
95
  isRestrictScroll: false,
97
96
  i18nKeys: {},
98
97
  needEffect: true,
99
- isLoading: false,
100
- customProps: {}
98
+ isLoading: false
101
99
  };
102
100
  export const SelectWithIcon_defaultProps = {
103
101
  isReadOnly: false,
@@ -174,10 +174,7 @@ export const GroupSelect_propTypes = {
174
174
  }),
175
175
  isLoading: PropTypes.bool,
176
176
  dataSelectorId: PropTypes.string,
177
- isDefaultSelectValue: PropTypes.bool,
178
- customProps: PropTypes.shape({
179
- suggestionsProps: PropTypes.object
180
- })
177
+ isDefaultSelectValue: PropTypes.bool
181
178
  };
182
179
  export const SelectWithAvatar_propTypes = { ...Select_propTypes,
183
180
  textBoxClass: PropTypes.string,
@@ -238,8 +235,7 @@ export const SelectWithAvatar_propTypes = { ...Select_propTypes,
238
235
  htmlId: PropTypes.string,
239
236
  needEffect: PropTypes.bool,
240
237
  isLoading: PropTypes.bool,
241
- dataSelectorId: PropTypes.string,
242
- customProps: PropTypes.object
238
+ dataSelectorId: PropTypes.string
243
239
  };
244
240
  export const SelectWithIcon_propTypes = {
245
241
  animationStyle: PropTypes.oneOf(['default', 'bounce']),
@@ -139,7 +139,7 @@ exports[`Button component Should render CustomStatusclassname of buttons - succe
139
139
  class="overlay"
140
140
  >
141
141
  <div
142
- class="success"
142
+ class="successstate"
143
143
  >
144
144
  <div
145
145
  class="customStautusClassName successelement primarysuccess"
@@ -260,7 +260,7 @@ exports[`Button component Should render Status of buttons - success 1`] = `
260
260
  class="overlay"
261
261
  >
262
262
  <div
263
- class="success"
263
+ class="successstate"
264
264
  >
265
265
  <div
266
266
  class="successelement primarysuccess"
@@ -25,6 +25,7 @@
25
25
  /* button success status default variable */
26
26
  --button_success_border_color: var(--zdt_button_success_default_border);
27
27
  }
28
+
28
29
  .native {
29
30
  composes: varClass;
30
31
  /* transition: all var(--zd_transition2) ease 0s; */
@@ -130,22 +131,43 @@
130
131
  composes: container;
131
132
  }
132
133
 
133
- .plainprimary {
134
- --button_text_color: var(--zdt_button_default_text);
134
+ .plainprimary,
135
+ .plaindanger,
136
+ .plainsuccess,
137
+ .plainsecondary {
135
138
  --button_padding: var(--zd_size5);
136
139
  --button_min_width: initial;
137
140
  --button_bg_color: var(--zdt_button_default_bg);
138
141
  }
142
+
143
+ .plainprimary {
144
+ --button_text_color: var(--zdt_button_default_text);
145
+ }
146
+
139
147
  .plainprimary:hover {
140
148
  --button_text_color: var(--zdt_button_plainprimary_hover_text);
141
149
  }
142
150
 
151
+ .plaindanger {
152
+ --button_text_color: var(--zdt_button_danger_text);
153
+ }
154
+
155
+ .plaindanger:hover {
156
+ --button_text_color: var(--zdt_button_danger_hover_text);
157
+ }
158
+
159
+ .plainsuccess {
160
+ --button_text_color: var(--zdt_button_success_text);
161
+ }
162
+
163
+ .plainsuccess:hover {
164
+ --button_text_color: var(--zdt_button_success_hover_text);
165
+ }
166
+
143
167
  .plainsecondary {
144
168
  --button_text_color: var(--zdt_button_secondary_text);
145
- --button_padding: var(--zd_size5);
146
- --button_min_width: initial;
147
- --button_bg_color: var(--zdt_button_default_bg);
148
169
  }
170
+
149
171
  .plainsecondary:hover {
150
172
  --button_text_color: var(--zdt_button_secondary_hover_text);
151
173
  }
@@ -156,10 +178,12 @@
156
178
  .dangerfilled,
157
179
  .secondary,
158
180
  .secondaryfilled,
181
+ .success,
159
182
  .successfilled,
160
183
  .tertiaryfilled {
161
184
  --button_border_width: 1px;
162
185
  }
186
+
163
187
  .primary:hover {
164
188
  --button_border_color: var(--zdt_button_primary_hover_border);
165
189
  --button_text_color: var(--zdt_button_primary_hover_text);
@@ -170,6 +194,7 @@
170
194
  --button_bg_color: var(--zdt_button_primaryfill_bg);
171
195
  --button_text_color: var(--zdt_button_primaryfill_text);
172
196
  }
197
+
173
198
  .primaryfilled:hover {
174
199
  --button_bg_color: var(--zdt_button_primaryfill_hover_bg);
175
200
  }
@@ -179,16 +204,29 @@
179
204
  --button_bg_color: var(--zdt_button_default_bg);
180
205
  --button_text_color: var(--zdt_button_danger_text);
181
206
  }
207
+
182
208
  .danger:hover {
183
209
  --button_border_color: var(--zdt_button_danger_hover_border);
184
210
  --button_text_color: var(--zdt_button_danger_hover_text);
185
211
  }
186
212
 
213
+ .success {
214
+ --button_border_color: var(--zdt_button_success_border);
215
+ --button_bg_color: var(--zdt_button_default_bg);
216
+ --button_text_color: var(--zdt_button_success_text);
217
+ }
218
+
219
+ .success:hover {
220
+ --button_border_color: var(--zdt_button_success_hover_border);
221
+ --button_text_color: var(--zdt_button_success_hover_text);
222
+ }
223
+
187
224
  .dangerfilled {
188
225
  --button_border_color: var(--zdt_button_primaryfill_border);
189
226
  --button_bg_color: var(--zdt_button_dangerfill_bg);
190
227
  --button_text_color: var(--zdt_button_dangerfill_text);
191
228
  }
229
+
192
230
  .dangerfilled:hover {
193
231
  --button_bg_color: var(--zdt_button_dangerfill_hover_bg);
194
232
  }
@@ -198,6 +236,7 @@
198
236
  --button_bg_color: var(--zdt_button_default_bg);
199
237
  --button_text_color: var(--zdt_button_secondary_text);
200
238
  }
239
+
201
240
  .secondary:hover {
202
241
  --button_border_color: var(--zdt_button_secondary_hover_border);
203
242
  --button_text_color: var(--zdt_button_secondary_hover_text);
@@ -208,6 +247,7 @@
208
247
  --button_bg_color: var(--zdt_button_secondaryfill_bg);
209
248
  --button_text_color: var(--zdt_button_secondary_text);
210
249
  }
250
+
211
251
  .secondaryfilled:hover {
212
252
  --button_text_color: var(--zdt_button_secondary_hover_text);
213
253
  }
@@ -217,6 +257,7 @@
217
257
  --button_bg_color: var(--zdt_button_successfill_bg);
218
258
  --button_text_color: var(--zdt_button_dangerfill_text);
219
259
  }
260
+
220
261
  .successfilled:hover {
221
262
  --button_border_color: var(--zdt_button_successfill_hover_border);
222
263
  --button_bg_color: var(--zdt_button_successfill_hover_bg);
@@ -227,6 +268,7 @@
227
268
  --button_bg_color: var(--zdt_button_tertiaryfill_bg);
228
269
  --button_text_color: var(--zdt_button_dangerfill_text);
229
270
  }
271
+
230
272
  .tertiaryfilled:hover {
231
273
  --button_bg_color: var(--zdt_button_tertiaryfill_hover_bg);
232
274
  }
@@ -326,18 +368,23 @@
326
368
  .loadingelement {
327
369
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
328
370
  }
371
+
329
372
  .primaryelement {
330
373
  --button_loading_bg_color: var(--zdt_button_loading_default_bg);
331
374
  }
375
+
332
376
  .primaryfilledelement {
333
377
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
334
378
  }
379
+
335
380
  .dangerelement {
336
381
  --button_loading_bg_color: var(--zdt_button_loading_default_bg);
337
382
  }
383
+
338
384
  .dangerfilledelement {
339
385
  --button_loading_bg_color: var(--zdt_button_dangerfill_bg);
340
386
  }
387
+
341
388
  .loadingelement:after,
342
389
  .primaryelement:after,
343
390
  .primaryfilledelement:after,
@@ -366,13 +413,13 @@
366
413
 
367
414
  .primaryelement:before {
368
415
  --button_loading_bg_color: var(--zdt_button_primaryfill_bg);
369
- --zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
416
+ --zdt_button_loading_linear_gradient: var(--zdt_button_loading_primary_linear_gradient);
370
417
  transform: rotateX(180deg);
371
418
  }
372
419
 
373
420
  .dangerelement:before {
374
421
  --button_loading_bg_color: var(--zdt_button_dangerfill_bg);
375
- --zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
422
+ --zdt_button_loading_linear_gradient: var(--zdt_button_loading_danger_linear_gradient);
376
423
  transform: rotateX(180deg);
377
424
  }
378
425
 
@@ -447,7 +494,7 @@
447
494
  -webkit-transform: scaleX(-1) rotate(360deg);
448
495
  }
449
496
  }
450
- .success {
497
+ .successstate {
451
498
  position: absolute;
452
499
  top: 50% ;
453
500
  left: 50% ;
@@ -523,6 +570,6 @@
523
570
  }
524
571
  }
525
572
 
526
- .loader{
527
- color:var(--dot_mirror)
573
+ .loader {
574
+ color: var(--dot_mirror)
528
575
  }
@@ -31,7 +31,7 @@ function cssJSLogic(_ref) {
31
31
  var paletteLower = palette.toLowerCase();
32
32
  var statusLower = status.toLowerCase();
33
33
  var buttonClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, customButton, !!customButton), _defineProperty(_compileClassNames, style.bold, isBold), _defineProperty(_compileClassNames, style["default"], !needAppearance), _defineProperty(_compileClassNames, style[paletteLower], needAppearance), _defineProperty(_compileClassNames, style.rounded, needAppearance && rounded), _defineProperty(_compileClassNames, style[size.toLowerCase()], needAppearance && !children), _defineProperty(_compileClassNames, style["".concat(size, "Btn")], needAppearance && children), _defineProperty(_compileClassNames, style["".concat(size, "Btn").concat(paletteLower)], needAppearance && children && rounded), _defineProperty(_compileClassNames, style.loader, !!needAppearance && statusLower !== 'none'), _compileClassNames));
34
- var loaderParentClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, customStatusSize, !!customStatusSize), _defineProperty(_compileClassNames2, style.loading, statusLower === 'loading'), _defineProperty(_compileClassNames2, style["".concat(size, "loading")], statusLower === 'loading'), _defineProperty(_compileClassNames2, style.success, statusLower != 'loading'), _compileClassNames2));
34
+ var loaderParentClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, customStatusSize, !!customStatusSize), _defineProperty(_compileClassNames2, style.loading, statusLower === 'loading'), _defineProperty(_compileClassNames2, style["".concat(size, "loading")], statusLower === 'loading'), _defineProperty(_compileClassNames2, style.successstate, statusLower != 'loading'), _compileClassNames2));
35
35
  var loaderChildClass = (0, _utils.compileClassNames)((_compileClassNames3 = {}, _defineProperty(_compileClassNames3, customStatus, !!customStatus), _defineProperty(_compileClassNames3, style.loadingelement, statusLower === 'loading'), _defineProperty(_compileClassNames3, style["".concat(paletteLower, "element")], statusLower === 'loading'), _defineProperty(_compileClassNames3, style.successelement, statusLower != 'loading'), _defineProperty(_compileClassNames3, style["".concat(paletteLower, "success")], statusLower != 'loading'), _compileClassNames3));
36
36
  return {
37
37
  buttonClass: buttonClass,
@@ -18,7 +18,7 @@ var propTypes = {
18
18
  isBold: _propTypes["default"].bool,
19
19
  needAppearance: _propTypes["default"].bool,
20
20
  onClick: _propTypes["default"].func,
21
- palette: _propTypes["default"].oneOf(['plainPrimary', 'plainSecondary', 'primary', 'primaryFilled', 'danger', 'dangerFilled', 'secondary', 'secondaryFilled', 'successFilled', 'info', 'tertiaryFilled']),
21
+ palette: _propTypes["default"].oneOf(['plainPrimary', 'plainSecondary', 'plainDanger', 'plainSuccess', 'primary', 'primaryFilled', 'danger', 'dangerFilled', 'secondary', 'secondaryFilled', 'success', 'successFilled', 'info', 'tertiaryFilled']),
22
22
  rounded: _propTypes["default"].bool,
23
23
  size: _propTypes["default"].oneOf(['small', 'medium', 'large', 'xlarge']),
24
24
  status: _propTypes["default"].oneOf(['loading', 'success', 'none']),
@@ -58,7 +58,8 @@ var ListContainer = function ListContainer(props) {
58
58
  onClick = props.onClick,
59
59
  onMouseEnter = props.onMouseEnter,
60
60
  onMouseOver = props.onMouseOver,
61
- eleRef = props.eleRef;
61
+ eleRef = props.eleRef,
62
+ align = props.align;
62
63
  var responsiveFunc = (0, _react.useCallback)(function (_ref) {
63
64
  var mediaQueryOR = _ref.mediaQueryOR,
64
65
  isTouchDevice = _ref.isTouchDevice;
@@ -102,7 +103,7 @@ var ListContainer = function ListContainer(props) {
102
103
  "aria-selected": ariaSelected,
103
104
  "aria-label": ariaLabel,
104
105
  isCover: false,
105
- align: "vertical",
106
+ align: align,
106
107
  alignBox: "row",
107
108
  className: "".concat(_ListItemModule["default"].list, " ").concat(_ListItemModule["default"][size], " ").concat(mobileToTab && isTouchDevice ? _ListItemModule["default"].responsiveHeight : '', " ").concat(_ListItemModule["default"][palette], " ").concat(active ? _ListItemModule["default"]["active".concat(palette)] : highlight && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Hover")] : '', " ").concat(autoHover && !isDisabled ? _ListItemModule["default"]["".concat(palette, "Effect")] : '', " ").concat(needTick ? _ListItemModule["default"]["".concat(size, "withTick")] : '', " ").concat(isDisabled ? (0, _CssProvider["default"])('isDisable') : '', " ").concat(needBorder ? active ? _ListItemModule["default"].activewithBorder : _ListItemModule["default"].withBorder : '', " ").concat(customClass),
108
109
  dataId: dataId,
@@ -150,7 +150,8 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
150
150
  autoHover: autoHover,
151
151
  needTick: needTick,
152
152
  needBorder: needBorder,
153
- customClass: "".concat(needMultiLineText ? _ListItemModule["default"].txtAlignBaseLine + ' ' + _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
153
+ customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(customListItem),
154
+ align: needMultiLineText ? 'baseline' : 'vertical',
154
155
  dataId: dataIdString,
155
156
  dataSelectorId: "".concat(dataSelectorId),
156
157
  isLink: isLink,
@@ -171,7 +172,7 @@ var ListItem = /*#__PURE__*/function (_React$Component) {
171
172
  adjust: true,
172
173
  className: _ListItemModule["default"].children
173
174
  }, children) : null, needTick && active ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
174
- className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(customTickIcon, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : ''),
175
+ className: "".concat(_ListItemModule["default"].tickIcon, " ").concat(tickIconPalette, " ").concat(needMultiLineText ? _ListItemModule["default"].tickIconCenter : '', " ").concat(customTickIcon),
175
176
  "aria-hidden": ariaHidden,
176
177
  dataId: "".concat(dataIdString, "_tickIcon"),
177
178
  dataSelectorId: "".concat(dataSelectorId, "_tickIcon")
@@ -73,7 +73,7 @@
73
73
  line-height: 1.5385;
74
74
  }
75
75
  .multiLineValue{
76
- composes: listItemClamp from '~@zohodesk/components/es/common/common.module.css';
76
+ composes: lineClamp from '../common/common.module.css';
77
77
  }
78
78
  .iconBox {
79
79
  width: var(--zd_size20) ;
@@ -203,15 +203,12 @@
203
203
  padding-bottom: var(--zd_size10) ;
204
204
  }
205
205
  .autoHeight {
206
- height: auto ;
206
+ --listitem_height: auto;
207
207
  }
208
208
  .tickIconCenter {
209
209
  top: 50% ;
210
210
  transform: translateY(-50%);
211
211
  }
212
- .txtAlignBaseLine {
213
- align-items: baseline;
214
- }
215
- .alignSelfTop {
216
- align-self: start;
212
+ .alignItemBaseline {
213
+ align-self: baseline;
217
214
  }
@@ -172,7 +172,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
172
172
  title: null,
173
173
  customProps: ListItemProps
174
174
  }, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
175
- className: "".concat(needMultiLineText ? _ListItemModule["default"].alignSelfTop : '', " ").concat(_ListItemModule["default"].leftAvatar)
175
+ className: "".concat(needMultiLineText ? _ListItemModule["default"].alignItemBaseline : '', " ").concat(_ListItemModule["default"].leftAvatar)
176
176
  }, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], _extends({
177
177
  name: name,
178
178
  size: "small",
@@ -147,7 +147,8 @@ var ListItemWithIcon = /*#__PURE__*/function (_React$Component) {
147
147
  autoHover: autoHover,
148
148
  needTick: needTick,
149
149
  needBorder: needBorder,
150
- customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(needMultiLineText && iconClass && !iconName ? _ListItemModule["default"].txtAlignBaseLine : '', " ").concat(customClass),
150
+ customClass: "".concat(needMultiLineText ? _ListItemModule["default"].autoHeight : '', " ").concat(customClass),
151
+ align: needMultiLineText && iconClass && !iconName ? 'baseline' : 'vertical',
151
152
  dataId: dataIdString,
152
153
  dataSelectorId: dataSelectorId,
153
154
  isLink: isLink,
@@ -18,7 +18,8 @@ var ListContainerDefaultProps = {
18
18
  customClass: '',
19
19
  customProps: {},
20
20
  dataSelectorId: 'listContainer',
21
- needMultiLineText: false
21
+ needMultiLineText: false,
22
+ align: 'vertical'
22
23
  };
23
24
  exports.ListContainerDefaultProps = ListContainerDefaultProps;
24
25
  var ListItemDefaultProps = {
@@ -43,7 +43,8 @@ var ListContainer_Props = {
43
43
  }),
44
44
  customClass: _propTypes["default"].string,
45
45
  customProps: _propTypes["default"].object,
46
- eleRef: _propTypes["default"].func
46
+ eleRef: _propTypes["default"].func,
47
+ align: _propTypes["default"].string
47
48
  };
48
49
  exports.ListContainer_Props = ListContainer_Props;
49
50
  var ListItem_Props = {
@@ -970,7 +970,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
970
970
  getTargetRef = _this$props8.getTargetRef,
971
971
  isFocus = _this$props8.isFocus,
972
972
  customProps = _this$props8.customProps;
973
- var suggestionsProps = customProps.suggestionsProps;
973
+ var _customProps$Suggesti = customProps.SuggestionsProps,
974
+ SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
974
975
  var _i18nKeys = i18nKeys,
975
976
  _i18nKeys$clearText = _i18nKeys.clearText,
976
977
  clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
@@ -1147,7 +1148,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
1147
1148
  role: 'option'
1148
1149
  },
1149
1150
  dataId: "".concat(dataId, "_Options")
1150
- }, suggestionsProps)));
1151
+ }, SuggestionsProps)));
1151
1152
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1152
1153
  options: revampedGroups,
1153
1154
  searchString: searchStr,
@@ -1091,8 +1091,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1091
1091
  selectAllText = _this$props15.selectAllText,
1092
1092
  needSelectAll = _this$props15.needSelectAll,
1093
1093
  customProps = _this$props15.customProps;
1094
- var _customProps$suggesti = customProps.suggestionsProps,
1095
- suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
1094
+ var _customProps$Suggesti = customProps.SuggestionsProps,
1095
+ SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti;
1096
1096
  var _this$state9 = this.state,
1097
1097
  selectedOptions = _this$state9.selectedOptions,
1098
1098
  searchStr = _this$state9.searchStr,
@@ -1182,7 +1182,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
1182
1182
  a11y: {
1183
1183
  role: 'option'
1184
1184
  }
1185
- }, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1185
+ }, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
1186
1186
  isLoading: isFetchingOptions,
1187
1187
  options: options,
1188
1188
  searchString: searchStr,
@@ -88,7 +88,8 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
88
88
  needMultiLineText = _this$props.needMultiLineText;
89
89
  var ariaParentRole = a11y.ariaParentRole,
90
90
  ariaMultiselectable = a11y.ariaMultiselectable;
91
- var containerClass = customClass.containerClass;
91
+ var _customClass$containe = customClass.containerClass,
92
+ containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
92
93
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
93
94
  isCover: false,
94
95
  role: ariaParentRole,
@@ -119,7 +120,8 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
119
120
  });
120
121
 
121
122
  var commonProps = _objectSpread({
122
- isDisabled: isDisabled
123
+ isDisabled: isDisabled,
124
+ needMultiLineText: needMultiLineText
123
125
  }, listItemCustomProps);
124
126
 
125
127
  if (listItemProps) {
@@ -147,8 +149,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
147
149
  size: listItemSize,
148
150
  avatarPalette: avatarPalette,
149
151
  palette: palette,
150
- a11y: list_a11y,
151
- needMultiLineText: needMultiLineText
152
+ a11y: list_a11y
152
153
  }));
153
154
  } else if (optionType === 'icon') {
154
155
  return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({}, commonProps, {
@@ -168,8 +169,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
168
169
  iconSize: iconSize,
169
170
  size: listItemSize,
170
171
  palette: palette,
171
- a11y: list_a11y,
172
- needMultiLineText: needMultiLineText
172
+ a11y: list_a11y
173
173
  }));
174
174
  }
175
175
 
@@ -188,8 +188,7 @@ var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
188
188
  active: isActive,
189
189
  size: listItemSize,
190
190
  palette: palette,
191
- a11y: list_a11y,
192
- needMultiLineText: needMultiLineText
191
+ a11y: list_a11y
193
192
  }));
194
193
  })));
195
194
  }
@@ -179,9 +179,7 @@ var SelectedOptions_defaultProps = {
179
179
  exports.SelectedOptions_defaultProps = SelectedOptions_defaultProps;
180
180
  var Suggestions_defaultProps = {
181
181
  a11y: {},
182
- customClass: {
183
- containerClass: ''
184
- },
182
+ customClass: {},
185
183
  needMultiLineText: false
186
184
  };
187
185
  exports.Suggestions_defaultProps = Suggestions_defaultProps;
@@ -130,7 +130,7 @@ var MultiSelect_propTypes = {
130
130
  ariaErrorId: _propTypes["default"].string,
131
131
  customProps: _propTypes["default"].shape({
132
132
  TextBoxIconProps: _propTypes["default"].object,
133
- suggestionsProps: _propTypes["default"].object
133
+ SuggestionsProps: _propTypes["default"].object
134
134
  }),
135
135
  isFocus: _propTypes["default"].bool
136
136
  };
@@ -277,7 +277,9 @@ var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
277
277
  needToCloseOnSelect: _propTypes["default"].func,
278
278
  searchStr: _propTypes["default"].string,
279
279
  children: _propTypes["default"].node
280
- }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].object), _AdvancedGroupMultiSe);
280
+ }, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _defineProperty(_AdvancedGroupMultiSe, "customProps", _propTypes["default"].shape({
281
+ SuggestionsProps: _propTypes["default"].object
282
+ })), _AdvancedGroupMultiSe);
281
283
  exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
282
284
 
283
285
  var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
@@ -90,3 +90,19 @@
90
90
  .notAllowed {
91
91
  cursor: not-allowed;
92
92
  }
93
+ .secondary.defaultHover, .hoverEffect:hover.secondary.borderHover
94
+ /* .hoverEffect:focus.secondary.borderHover */
95
+ {
96
+ border-color: var(--zdt_rippleeffect_secondary_border);
97
+ }
98
+ .hoverEffect:hover.secondary.bgHover
99
+ /* .hoverEffect:focus.secondary.bgHover */
100
+ {
101
+ background-color: var(--zdt_rippleeffect_secondary_bg);
102
+ }
103
+ .secondary.active {
104
+ background-color: var(--zdt_rippleeffect_secondary_active_bg);
105
+ }
106
+ .secondary.active.border {
107
+ border-color: var(--zdt_rippleeffect_secondary_active_border);
108
+ }