@zohodesk/components 1.2.63 → 1.3.0

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 (66) hide show
  1. package/.cli/config/variables/variableMapping.json +7 -0
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +8 -0
  4. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +1 -0
  5. package/assets/Appearance/light/mode/Component_LightMode.module.css +1 -0
  6. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +1 -0
  7. package/es/ListItem/ListContainer.js +3 -2
  8. package/es/ListItem/ListItem.module.css +52 -6
  9. package/es/ListItem/ListItemWithAvatar.js +17 -6
  10. package/es/ListItem/ListItemWithCheckBox.js +18 -6
  11. package/es/ListItem/ListItemWithIcon.js +20 -7
  12. package/es/ListItem/ListItemWithRadio.js +19 -6
  13. package/es/ListItem/__tests__/ListContainer.spec.js +8 -0
  14. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +35 -0
  15. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +35 -0
  16. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +35 -0
  17. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +35 -0
  18. package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +13 -0
  19. package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +200 -2
  20. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +451 -30
  21. package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +202 -4
  22. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +447 -30
  23. package/es/ListItem/props/defaultProps.js +13 -5
  24. package/es/ListItem/props/propTypes.js +13 -1
  25. package/es/MultiSelect/AdvancedMultiSelect.js +10 -4
  26. package/es/MultiSelect/MultiSelect.js +8 -4
  27. package/es/MultiSelect/MultiSelect.module.css +9 -1
  28. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -2
  29. package/es/MultiSelect/Suggestions.js +5 -2
  30. package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +34 -13
  31. package/es/MultiSelect/props/propTypes.js +3 -0
  32. package/es/Radio/props/propTypes.js +1 -1
  33. package/es/common/common.module.css +10 -0
  34. package/es/utils/dropDownUtils.js +33 -8
  35. package/es/v1/Radio/props/propTypes.js +1 -1
  36. package/lib/ListItem/ListContainer.js +3 -2
  37. package/lib/ListItem/ListItem.module.css +52 -6
  38. package/lib/ListItem/ListItemWithAvatar.js +16 -5
  39. package/lib/ListItem/ListItemWithCheckBox.js +17 -5
  40. package/lib/ListItem/ListItemWithIcon.js +19 -6
  41. package/lib/ListItem/ListItemWithRadio.js +18 -5
  42. package/lib/ListItem/__tests__/ListContainer.spec.js +8 -0
  43. package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +35 -0
  44. package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +35 -0
  45. package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +35 -0
  46. package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +35 -0
  47. package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +13 -0
  48. package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +200 -2
  49. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +451 -30
  50. package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +202 -4
  51. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +447 -30
  52. package/lib/ListItem/props/defaultProps.js +13 -5
  53. package/lib/ListItem/props/propTypes.js +12 -2
  54. package/lib/MultiSelect/AdvancedMultiSelect.js +76 -69
  55. package/lib/MultiSelect/MultiSelect.js +8 -4
  56. package/lib/MultiSelect/MultiSelect.module.css +9 -1
  57. package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -2
  58. package/lib/MultiSelect/Suggestions.js +5 -2
  59. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +34 -13
  60. package/lib/MultiSelect/props/propTypes.js +4 -1
  61. package/lib/Radio/props/propTypes.js +1 -1
  62. package/lib/common/common.module.css +10 -0
  63. package/lib/utils/dropDownUtils.js +41 -11
  64. package/lib/v1/Radio/props/propTypes.js +1 -1
  65. package/package.json +6 -6
  66. package/result.json +1 -1
@@ -1,6 +1,204 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`ListItemWithRadio rendering the defult props 1`] = `
3
+ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align center 1`] = `
4
+ <DocumentFragment>
5
+ <li
6
+ class="list medium default withBorder flex rowdir vCenter"
7
+ data-a11y-inset-focus="true"
8
+ data-id="listItemWithRadioComp"
9
+ data-selector-id="listItemWithRadio"
10
+ data-test-id="listItemWithRadioComp"
11
+ role="option"
12
+ tabindex="0"
13
+ >
14
+ <div
15
+ class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfCenter"
16
+ data-id="listItemWithRadioComp_radio"
17
+ data-selector-id="box"
18
+ data-test-id="listItemWithRadioComp_radio"
19
+ >
20
+ <div
21
+ class="shrinkOff selfCenter"
22
+ data-id="boxComponent"
23
+ data-selector-id="box"
24
+ data-test-id="boxComponent"
25
+ >
26
+ <div
27
+ aria-checked="false"
28
+ aria-hidden="true"
29
+ aria-readonly="false"
30
+ class="container pointer hoverEfffect inflex rowdir both"
31
+ data-id="RadioComp"
32
+ data-selector-id="container"
33
+ data-test-id="RadioComp"
34
+ role="radio"
35
+ tabindex="-1"
36
+ >
37
+ <div
38
+ class="radio
39
+ hoverprimary medium filled centerPathprimary shrinkOff"
40
+ data-id="boxComponent"
41
+ data-selector-id="box"
42
+ data-test-id="boxComponent"
43
+ >
44
+ <input
45
+ type="hidden"
46
+ value=""
47
+ />
48
+ <label
49
+ class="radioLabel pointer"
50
+ >
51
+ <svg
52
+ viewBox="0 0 40 40"
53
+ xmlns="http://www.w3.org/2000/svg"
54
+ >
55
+ <circle
56
+ class="rdBox"
57
+ cx="20"
58
+ cy="20"
59
+ r="19"
60
+ />
61
+ </svg>
62
+ </label>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ <div
68
+ class="grow basis shrinkOn"
69
+ data-id="boxComponent"
70
+ data-selector-id="box"
71
+ data-test-id="boxComponent"
72
+ >
73
+ <div
74
+ class="flex cover coldir"
75
+ data-id="containerComponent"
76
+ data-selector-id="container"
77
+ data-test-id="containerComponent"
78
+ >
79
+ <div
80
+ class="value shrinkOff"
81
+ data-id="boxComponent"
82
+ data-selector-id="box"
83
+ data-test-id="boxComponent"
84
+ >
85
+ List
86
+ </div>
87
+ <div
88
+ class="secondaryField shrinkOff"
89
+ data-id="boxComponent"
90
+ data-selector-id="box"
91
+ data-test-id="boxComponent"
92
+ data-title="secondaryValue"
93
+ >
94
+ secondaryValue
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </li>
99
+ </DocumentFragment>
100
+ `;
101
+
102
+ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align end 1`] = `
103
+ <DocumentFragment>
104
+ <li
105
+ class="list medium default withBorder flex rowdir vCenter"
106
+ data-a11y-inset-focus="true"
107
+ data-id="listItemWithRadioComp"
108
+ data-selector-id="listItemWithRadio"
109
+ data-test-id="listItemWithRadioComp"
110
+ role="option"
111
+ tabindex="0"
112
+ >
113
+ <div
114
+ class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfEnd"
115
+ data-id="listItemWithRadioComp_radio"
116
+ data-selector-id="box"
117
+ data-test-id="listItemWithRadioComp_radio"
118
+ >
119
+ <div
120
+ class="lhsBox_medium shrinkOff selfEnd"
121
+ data-id="boxComponent"
122
+ data-selector-id="box"
123
+ data-test-id="boxComponent"
124
+ >
125
+ <div
126
+ aria-checked="false"
127
+ aria-hidden="true"
128
+ aria-readonly="false"
129
+ class="container pointer hoverEfffect inflex rowdir both"
130
+ data-id="RadioComp"
131
+ data-selector-id="container"
132
+ data-test-id="RadioComp"
133
+ role="radio"
134
+ tabindex="-1"
135
+ >
136
+ <div
137
+ class="radio
138
+ hoverprimary medium filled centerPathprimary shrinkOff"
139
+ data-id="boxComponent"
140
+ data-selector-id="box"
141
+ data-test-id="boxComponent"
142
+ >
143
+ <input
144
+ type="hidden"
145
+ value=""
146
+ />
147
+ <label
148
+ class="radioLabel pointer"
149
+ >
150
+ <svg
151
+ viewBox="0 0 40 40"
152
+ xmlns="http://www.w3.org/2000/svg"
153
+ >
154
+ <circle
155
+ class="rdBox"
156
+ cx="20"
157
+ cy="20"
158
+ r="19"
159
+ />
160
+ </svg>
161
+ </label>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ </div>
166
+ <div
167
+ class="grow basis shrinkOn"
168
+ data-id="boxComponent"
169
+ data-selector-id="box"
170
+ data-test-id="boxComponent"
171
+ >
172
+ <div
173
+ class="flex cover coldir"
174
+ data-id="containerComponent"
175
+ data-selector-id="container"
176
+ data-test-id="containerComponent"
177
+ >
178
+ <div
179
+ class="value shrinkOff"
180
+ data-id="boxComponent"
181
+ data-selector-id="box"
182
+ data-test-id="boxComponent"
183
+ >
184
+ List
185
+ </div>
186
+ <div
187
+ class="secondaryField shrinkOff"
188
+ data-id="boxComponent"
189
+ data-selector-id="box"
190
+ data-test-id="boxComponent"
191
+ data-title="secondaryValue"
192
+ >
193
+ secondaryValue
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </li>
198
+ </DocumentFragment>
199
+ `;
200
+
201
+ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
4
202
  <DocumentFragment>
5
203
  <li
6
204
  class="list medium default withBorder flex rowdir vCenter"
@@ -12,58 +210,277 @@ exports[`ListItemWithRadio rendering the defult props 1`] = `
12
210
  tabindex="0"
13
211
  >
14
212
  <div
15
- class="iconBox shrinkOff"
213
+ class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
16
214
  data-id="listItemWithRadioComp_radio"
17
215
  data-selector-id="box"
18
216
  data-test-id="listItemWithRadioComp_radio"
19
217
  >
20
218
  <div
21
- aria-checked="false"
22
- aria-hidden="true"
23
- aria-readonly="false"
24
- class="container pointer hoverEfffect inflex rowdir both"
25
- data-id="RadioComp"
219
+ class="lhsBox_medium shrinkOff selfStart"
220
+ data-id="boxComponent"
221
+ data-selector-id="box"
222
+ data-test-id="boxComponent"
223
+ >
224
+ <div
225
+ aria-checked="false"
226
+ aria-hidden="true"
227
+ aria-readonly="false"
228
+ class="container pointer hoverEfffect inflex rowdir both"
229
+ data-id="RadioComp"
230
+ data-selector-id="container"
231
+ data-test-id="RadioComp"
232
+ role="radio"
233
+ tabindex="-1"
234
+ >
235
+ <div
236
+ class="radio
237
+ hoverprimary medium filled centerPathprimary shrinkOff"
238
+ data-id="boxComponent"
239
+ data-selector-id="box"
240
+ data-test-id="boxComponent"
241
+ >
242
+ <input
243
+ type="hidden"
244
+ value=""
245
+ />
246
+ <label
247
+ class="radioLabel pointer"
248
+ >
249
+ <svg
250
+ viewBox="0 0 40 40"
251
+ xmlns="http://www.w3.org/2000/svg"
252
+ >
253
+ <circle
254
+ class="rdBox"
255
+ cx="20"
256
+ cy="20"
257
+ r="19"
258
+ />
259
+ </svg>
260
+ </label>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ <div
266
+ class="grow basis shrinkOn"
267
+ data-id="boxComponent"
268
+ data-selector-id="box"
269
+ data-test-id="boxComponent"
270
+ >
271
+ <div
272
+ class="flex cover coldir"
273
+ data-id="containerComponent"
26
274
  data-selector-id="container"
27
- data-test-id="RadioComp"
28
- role="radio"
29
- tabindex="-1"
275
+ data-test-id="containerComponent"
30
276
  >
31
277
  <div
32
- class="radio
278
+ class="value shrinkOff"
279
+ data-id="boxComponent"
280
+ data-selector-id="box"
281
+ data-test-id="boxComponent"
282
+ >
283
+ List
284
+ </div>
285
+ <div
286
+ class="secondaryField shrinkOff"
287
+ data-id="boxComponent"
288
+ data-selector-id="box"
289
+ data-test-id="boxComponent"
290
+ data-title="secondaryValue"
291
+ >
292
+ secondaryValue
293
+ </div>
294
+ </div>
295
+ </div>
296
+ </li>
297
+ </DocumentFragment>
298
+ `;
299
+
300
+ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align start 1`] = `
301
+ <DocumentFragment>
302
+ <li
303
+ class="list medium default withBorder flex rowdir vCenter"
304
+ data-a11y-inset-focus="true"
305
+ data-id="listItemWithRadioComp"
306
+ data-selector-id="listItemWithRadio"
307
+ data-test-id="listItemWithRadioComp"
308
+ role="option"
309
+ tabindex="0"
310
+ >
311
+ <div
312
+ class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
313
+ data-id="listItemWithRadioComp_radio"
314
+ data-selector-id="box"
315
+ data-test-id="listItemWithRadioComp_radio"
316
+ >
317
+ <div
318
+ class="lhsBox_medium shrinkOff selfStart"
319
+ data-id="boxComponent"
320
+ data-selector-id="box"
321
+ data-test-id="boxComponent"
322
+ >
323
+ <div
324
+ aria-checked="false"
325
+ aria-hidden="true"
326
+ aria-readonly="false"
327
+ class="container pointer hoverEfffect inflex rowdir both"
328
+ data-id="RadioComp"
329
+ data-selector-id="container"
330
+ data-test-id="RadioComp"
331
+ role="radio"
332
+ tabindex="-1"
333
+ >
334
+ <div
335
+ class="radio
33
336
  hoverprimary medium filled centerPathprimary shrinkOff"
337
+ data-id="boxComponent"
338
+ data-selector-id="box"
339
+ data-test-id="boxComponent"
340
+ >
341
+ <input
342
+ type="hidden"
343
+ value=""
344
+ />
345
+ <label
346
+ class="radioLabel pointer"
347
+ >
348
+ <svg
349
+ viewBox="0 0 40 40"
350
+ xmlns="http://www.w3.org/2000/svg"
351
+ >
352
+ <circle
353
+ class="rdBox"
354
+ cx="20"
355
+ cy="20"
356
+ r="19"
357
+ />
358
+ </svg>
359
+ </label>
360
+ </div>
361
+ </div>
362
+ </div>
363
+ </div>
364
+ <div
365
+ class="grow basis shrinkOn"
366
+ data-id="boxComponent"
367
+ data-selector-id="box"
368
+ data-test-id="boxComponent"
369
+ >
370
+ <div
371
+ class="flex cover coldir"
372
+ data-id="containerComponent"
373
+ data-selector-id="container"
374
+ data-test-id="containerComponent"
375
+ >
376
+ <div
377
+ class="value shrinkOff"
34
378
  data-id="boxComponent"
35
379
  data-selector-id="box"
36
380
  data-test-id="boxComponent"
37
381
  >
38
- <input
39
- type="hidden"
40
- value=""
41
- />
42
- <label
43
- class="radioLabel pointer"
382
+ List
383
+ </div>
384
+ <div
385
+ class="secondaryField shrinkOff"
386
+ data-id="boxComponent"
387
+ data-selector-id="box"
388
+ data-test-id="boxComponent"
389
+ data-title="secondaryValue"
390
+ >
391
+ secondaryValue
392
+ </div>
393
+ </div>
394
+ </div>
395
+ </li>
396
+ </DocumentFragment>
397
+ `;
398
+
399
+ exports[`ListItemWithRadio rendering the defult props 1`] = `
400
+ <DocumentFragment>
401
+ <li
402
+ class="list medium default withBorder flex rowdir vCenter"
403
+ data-a11y-inset-focus="true"
404
+ data-id="listItemWithRadioComp"
405
+ data-selector-id="listItemWithRadio"
406
+ data-test-id="listItemWithRadioComp"
407
+ role="option"
408
+ tabindex="0"
409
+ >
410
+ <div
411
+ class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
412
+ data-id="listItemWithRadioComp_radio"
413
+ data-selector-id="box"
414
+ data-test-id="listItemWithRadioComp_radio"
415
+ >
416
+ <div
417
+ class="lhsBox_medium shrinkOff selfStart"
418
+ data-id="boxComponent"
419
+ data-selector-id="box"
420
+ data-test-id="boxComponent"
421
+ >
422
+ <div
423
+ aria-checked="false"
424
+ aria-hidden="true"
425
+ aria-readonly="false"
426
+ class="container pointer hoverEfffect inflex rowdir both"
427
+ data-id="RadioComp"
428
+ data-selector-id="container"
429
+ data-test-id="RadioComp"
430
+ role="radio"
431
+ tabindex="-1"
432
+ >
433
+ <div
434
+ class="radio
435
+ hoverprimary medium filled centerPathprimary shrinkOff"
436
+ data-id="boxComponent"
437
+ data-selector-id="box"
438
+ data-test-id="boxComponent"
44
439
  >
45
- <svg
46
- viewBox="0 0 40 40"
47
- xmlns="http://www.w3.org/2000/svg"
440
+ <input
441
+ type="hidden"
442
+ value=""
443
+ />
444
+ <label
445
+ class="radioLabel pointer"
48
446
  >
49
- <circle
50
- class="rdBox"
51
- cx="20"
52
- cy="20"
53
- r="19"
54
- />
55
- </svg>
56
- </label>
447
+ <svg
448
+ viewBox="0 0 40 40"
449
+ xmlns="http://www.w3.org/2000/svg"
450
+ >
451
+ <circle
452
+ class="rdBox"
453
+ cx="20"
454
+ cy="20"
455
+ r="19"
456
+ />
457
+ </svg>
458
+ </label>
459
+ </div>
57
460
  </div>
58
461
  </div>
59
462
  </div>
60
463
  <div
61
- class="value grow basis shrinkOn"
464
+ class="grow basis shrinkOn"
62
465
  data-id="boxComponent"
63
466
  data-selector-id="box"
64
467
  data-test-id="boxComponent"
65
468
  >
66
- List
469
+ <div
470
+ class="flex cover coldir"
471
+ data-id="containerComponent"
472
+ data-selector-id="container"
473
+ data-test-id="containerComponent"
474
+ >
475
+ <div
476
+ class="value shrinkOff"
477
+ data-id="boxComponent"
478
+ data-selector-id="box"
479
+ data-test-id="boxComponent"
480
+ >
481
+ List
482
+ </div>
483
+ </div>
67
484
  </div>
68
485
  </li>
69
486
  </DocumentFragment>
@@ -12,7 +12,8 @@ export const ListContainerDefaultProps = {
12
12
  customClass: '',
13
13
  customProps: {},
14
14
  dataSelectorId: 'listContainer',
15
- needMultiLineText: false
15
+ needMultiLineText: false,
16
+ align: 'vertical'
16
17
  };
17
18
  export const ListItemDefaultProps = {
18
19
  active: false,
@@ -47,7 +48,8 @@ export const ListItemWithAvatarDefaultProps = {
47
48
  customClass: {},
48
49
  customProps: {},
49
50
  dataSelectorId: 'listItemWithAvatar',
50
- needMultiLineText: false
51
+ needMultiLineText: false,
52
+ lhsAlignContent: 'start'
51
53
  };
52
54
  export const ListItemWithCheckBoxDefaultProps = {
53
55
  active: false,
@@ -61,7 +63,9 @@ export const ListItemWithCheckBoxDefaultProps = {
61
63
  customClass: {},
62
64
  customProps: {},
63
65
  dataSelectorId: 'listItemWithCheckBox',
64
- needMultiLineText: false
66
+ needMultiLineText: false,
67
+ lhsAlignContent: 'start',
68
+ lhsJustifyContent: 'center'
65
69
  };
66
70
  export const ListItemWithIconDefaultProps = {
67
71
  active: false,
@@ -78,7 +82,9 @@ export const ListItemWithIconDefaultProps = {
78
82
  customClass: '',
79
83
  customProps: {},
80
84
  dataSelectorId: 'listItemWithIcon',
81
- needMultiLineText: false
85
+ needMultiLineText: false,
86
+ lhsAlignContent: 'start',
87
+ lhsJustifyContent: 'center'
82
88
  };
83
89
  export const ListItemWithRadioDefaultProps = {
84
90
  active: false,
@@ -93,5 +99,7 @@ export const ListItemWithRadioDefaultProps = {
93
99
  customClass: {},
94
100
  customProps: {},
95
101
  dataSelectorId: 'listItemWithRadio',
96
- needMultiLineText: false
102
+ needMultiLineText: false,
103
+ lhsAlignContent: 'start',
104
+ lhsJustifyContent: 'center'
97
105
  };
@@ -27,7 +27,8 @@ export const ListContainer_Props = {
27
27
  }),
28
28
  customClass: PropTypes.string,
29
29
  customProps: PropTypes.object,
30
- eleRef: PropTypes.func
30
+ eleRef: PropTypes.func,
31
+ align: PropTypes.string
31
32
  };
32
33
  export const ListItem_Props = {
33
34
  active: PropTypes.bool,
@@ -91,6 +92,8 @@ export const ListItemWithAvatar_Props = {
91
92
  size: PropTypes.string,
92
93
  title: PropTypes.string,
93
94
  value: PropTypes.string,
95
+ secondaryValue: PropTypes.string,
96
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
94
97
  a11y: PropTypes.shape({
95
98
  role: PropTypes.string,
96
99
  ariaSelected: PropTypes.bool,
@@ -127,6 +130,9 @@ export const ListItemWithCheckBox_Props = {
127
130
  size: PropTypes.string,
128
131
  title: PropTypes.string,
129
132
  value: PropTypes.string,
133
+ secondaryValue: PropTypes.string,
134
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
135
+ lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
130
136
  a11y: PropTypes.shape({
131
137
  role: PropTypes.string,
132
138
  ariaSelected: PropTypes.bool
@@ -161,6 +167,9 @@ export const ListItemWithIcon_Props = {
161
167
  size: PropTypes.string,
162
168
  title: PropTypes.string,
163
169
  value: PropTypes.string,
170
+ secondaryValue: PropTypes.string,
171
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
172
+ lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
164
173
  a11y: PropTypes.shape({
165
174
  role: PropTypes.string,
166
175
  ariaSelected: PropTypes.bool,
@@ -193,6 +202,9 @@ export const ListItemWithRadio_Props = {
193
202
  size: PropTypes.string,
194
203
  title: PropTypes.string,
195
204
  value: PropTypes.string,
205
+ secondaryValue: PropTypes.string,
206
+ lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
207
+ lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
196
208
  a11y: PropTypes.shape({
197
209
  role: PropTypes.string,
198
210
  ariaSelected: PropTypes.bool
@@ -63,7 +63,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
63
63
  searchStr
64
64
  } = this.state;
65
65
  const {
66
- needLocalSearch
66
+ needLocalSearch,
67
+ searchFields
67
68
  } = this.props;
68
69
  const {
69
70
  suggestions,
@@ -72,7 +73,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
72
73
  options,
73
74
  selectedOptions: dummyArray,
74
75
  searchStr: getSearchString(searchStr),
75
- needSearch: needLocalSearch
76
+ needSearch: needLocalSearch,
77
+ searchFields
76
78
  });
77
79
  this.suggestionsOrder = suggestionIds;
78
80
  return suggestions;
@@ -147,7 +149,9 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
147
149
  prefixText,
148
150
  optionType,
149
151
  disabledOptions,
150
- allowValueFallback
152
+ allowValueFallback,
153
+ searchFields,
154
+ secondaryField
151
155
  } = props;
152
156
  return this.formatOptions({
153
157
  options,
@@ -159,7 +163,9 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
159
163
  optionType,
160
164
  iconSize,
161
165
  disabledOptions,
162
- allowValueFallback
166
+ allowValueFallback,
167
+ searchFields,
168
+ secondaryField
163
169
  });
164
170
  }
165
171
 
@@ -217,7 +217,8 @@ export class MultiSelectComponent extends React.Component {
217
217
  textField,
218
218
  prefixText,
219
219
  disabledOptions,
220
- allowValueFallback
220
+ allowValueFallback,
221
+ searchFields
221
222
  } = props;
222
223
  return this.formatOptions({
223
224
  options,
@@ -226,7 +227,8 @@ export class MultiSelectComponent extends React.Component {
226
227
  prefixText,
227
228
  optionType: 'default',
228
229
  disabledOptions,
229
- allowValueFallback
230
+ allowValueFallback,
231
+ searchFields
230
232
  });
231
233
  }
232
234
 
@@ -272,7 +274,8 @@ export class MultiSelectComponent extends React.Component {
272
274
  const {
273
275
  selectedOptions,
274
276
  needLocalSearch,
275
- keepSelectedOptions
277
+ keepSelectedOptions,
278
+ searchFields
276
279
  } = this.props;
277
280
  const {
278
281
  suggestions,
@@ -282,7 +285,8 @@ export class MultiSelectComponent extends React.Component {
282
285
  selectedOptions,
283
286
  searchStr: getSearchString(searchStr),
284
287
  needSearch: needLocalSearch,
285
- keepSelectedOptions
288
+ keepSelectedOptions,
289
+ searchFields
286
290
  });
287
291
  this.suggestionsOrder = suggestionIds;
288
292
  return suggestions;