@zohodesk/components 1.4.17 → 1.4.18
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.
- package/README.md +27 -0
- package/es/Card/__tests__/Card.spec.js +48 -0
- package/es/Card/__tests__/CardContent.spec.js +61 -0
- package/es/Card/__tests__/CardHeader.spec.js +33 -0
- package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +125 -0
- package/es/Card/__tests__/__snapshots__/CardContent.spec.js.snap +177 -0
- package/es/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +51 -0
- package/es/ListItem/ListItem.js +10 -3
- package/es/ListItem/ListItemWithAvatar.js +15 -6
- package/es/ListItem/ListItemWithCheckBox.js +13 -6
- package/es/ListItem/ListItemWithIcon.js +14 -5
- package/es/ListItem/ListItemWithRadio.js +13 -6
- package/es/ListItem/__tests__/ListItem.spec.js +19 -0
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +19 -0
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +19 -0
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +17 -0
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +19 -0
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +78 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +140 -46
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +251 -49
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +144 -50
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +252 -52
- package/es/ListItem/props/propTypes.js +15 -5
- package/es/MultiSelect/MultiSelect.js +8 -1
- package/es/MultiSelect/Suggestions.js +2 -1
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +6 -6
- package/es/MultiSelect/props/propTypes.js +2 -3
- package/es/Select/GroupSelect.js +4 -2
- package/es/Select/Select.js +7 -1
- package/es/Select/SelectWithAvatar.js +17 -4
- package/es/Select/SelectWithIcon.js +15 -5
- package/es/Select/props/defaultProps.js +2 -0
- package/es/Select/props/propTypes.js +5 -0
- package/es/Typography/__tests__/Typography.spec.js +225 -0
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1226 -0
- package/es/utils/dropDownUtils.js +13 -4
- package/es/v1/Switch/__tests__/Switch.spec.js +41 -6
- package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +176 -5
- package/lib/Card/__tests__/Card.spec.js +54 -6
- package/lib/Card/__tests__/CardContent.spec.js +68 -0
- package/lib/Card/__tests__/CardHeader.spec.js +40 -0
- package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +125 -0
- package/lib/Card/__tests__/__snapshots__/CardContent.spec.js.snap +177 -0
- package/lib/Card/__tests__/__snapshots__/CardHeader.spec.js.snap +51 -0
- package/lib/ListItem/ListItem.js +10 -3
- package/lib/ListItem/ListItemWithAvatar.js +15 -6
- package/lib/ListItem/ListItemWithCheckBox.js +15 -6
- package/lib/ListItem/ListItemWithIcon.js +13 -5
- package/lib/ListItem/ListItemWithRadio.js +15 -6
- package/lib/ListItem/__tests__/ListItem.spec.js +23 -0
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +23 -0
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +23 -0
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +21 -0
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +23 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +78 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +140 -46
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +251 -49
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +144 -50
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +252 -52
- package/lib/ListItem/props/propTypes.js +15 -6
- package/lib/MultiSelect/MultiSelect.js +6 -2
- package/lib/MultiSelect/Suggestions.js +2 -1
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +6 -6
- package/lib/MultiSelect/props/propTypes.js +3 -4
- package/lib/Select/GroupSelect.js +4 -3
- package/lib/Select/Select.js +7 -1
- package/lib/Select/SelectWithAvatar.js +17 -7
- package/lib/Select/SelectWithIcon.js +15 -5
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +5 -0
- package/lib/Typography/__tests__/Typography.spec.js +232 -0
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +1226 -0
- package/lib/utils/dropDownUtils.js +17 -4
- package/lib/v1/Switch/__tests__/Switch.spec.js +41 -6
- package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +176 -5
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`ListItemWithRadio ListItemWithRadio with
|
|
3
|
+
exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNode & it's custom class 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
5
|
<li
|
|
6
6
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -12,13 +12,13 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
12
12
|
tabindex="0"
|
|
13
13
|
>
|
|
14
14
|
<div
|
|
15
|
-
class="iconBox lhsBox lhsJustifyContent_center shrinkOff
|
|
15
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
|
|
16
16
|
data-id="listItemWithRadioComp_radio"
|
|
17
17
|
data-selector-id="box"
|
|
18
18
|
data-test-id="listItemWithRadioComp_radio"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
|
-
class="shrinkOff
|
|
21
|
+
class="lhsBox_medium shrinkOff selfStart"
|
|
22
22
|
data-id="boxComponent"
|
|
23
23
|
data-selector-id="box"
|
|
24
24
|
data-test-id="boxComponent"
|
|
@@ -65,19 +65,19 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
<div
|
|
68
|
-
class="grow basis
|
|
68
|
+
class="leftBox grow basis shrinkOff"
|
|
69
69
|
data-id="boxComponent"
|
|
70
70
|
data-selector-id="box"
|
|
71
71
|
data-test-id="boxComponent"
|
|
72
72
|
>
|
|
73
73
|
<div
|
|
74
|
-
class="
|
|
75
|
-
data-id="
|
|
76
|
-
data-selector-id="
|
|
77
|
-
data-test-id="
|
|
74
|
+
class="titleBox shrinkOff"
|
|
75
|
+
data-id="boxComponent"
|
|
76
|
+
data-selector-id="box"
|
|
77
|
+
data-test-id="boxComponent"
|
|
78
78
|
>
|
|
79
79
|
<div
|
|
80
|
-
class="value
|
|
80
|
+
class="value basisAuto shrinkOn"
|
|
81
81
|
data-id="boxComponent"
|
|
82
82
|
data-selector-id="box"
|
|
83
83
|
data-test-id="boxComponent"
|
|
@@ -85,13 +85,14 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
85
85
|
List
|
|
86
86
|
</div>
|
|
87
87
|
<div
|
|
88
|
-
class="
|
|
88
|
+
class="customValueRightPlaceholderClass shrinkOff"
|
|
89
89
|
data-id="boxComponent"
|
|
90
90
|
data-selector-id="box"
|
|
91
91
|
data-test-id="boxComponent"
|
|
92
|
-
data-title="secondaryValue"
|
|
93
92
|
>
|
|
94
|
-
|
|
93
|
+
<div>
|
|
94
|
+
Custom Placeholder
|
|
95
|
+
</div>
|
|
95
96
|
</div>
|
|
96
97
|
</div>
|
|
97
98
|
</div>
|
|
@@ -99,7 +100,7 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
99
100
|
</DocumentFragment>
|
|
100
101
|
`;
|
|
101
102
|
|
|
102
|
-
exports[`ListItemWithRadio ListItemWithRadio with
|
|
103
|
+
exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNode 1`] = `
|
|
103
104
|
<DocumentFragment>
|
|
104
105
|
<li
|
|
105
106
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -111,13 +112,13 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
111
112
|
tabindex="0"
|
|
112
113
|
>
|
|
113
114
|
<div
|
|
114
|
-
class="iconBox lhsBox lhsJustifyContent_center shrinkOff
|
|
115
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
|
|
115
116
|
data-id="listItemWithRadioComp_radio"
|
|
116
117
|
data-selector-id="box"
|
|
117
118
|
data-test-id="listItemWithRadioComp_radio"
|
|
118
119
|
>
|
|
119
120
|
<div
|
|
120
|
-
class="lhsBox_medium shrinkOff
|
|
121
|
+
class="lhsBox_medium shrinkOff selfStart"
|
|
121
122
|
data-id="boxComponent"
|
|
122
123
|
data-selector-id="box"
|
|
123
124
|
data-test-id="boxComponent"
|
|
@@ -164,19 +165,19 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
164
165
|
</div>
|
|
165
166
|
</div>
|
|
166
167
|
<div
|
|
167
|
-
class="grow basis
|
|
168
|
+
class="leftBox grow basis shrinkOff"
|
|
168
169
|
data-id="boxComponent"
|
|
169
170
|
data-selector-id="box"
|
|
170
171
|
data-test-id="boxComponent"
|
|
171
172
|
>
|
|
172
173
|
<div
|
|
173
|
-
class="
|
|
174
|
-
data-id="
|
|
175
|
-
data-selector-id="
|
|
176
|
-
data-test-id="
|
|
174
|
+
class="titleBox shrinkOff"
|
|
175
|
+
data-id="boxComponent"
|
|
176
|
+
data-selector-id="box"
|
|
177
|
+
data-test-id="boxComponent"
|
|
177
178
|
>
|
|
178
179
|
<div
|
|
179
|
-
class="value
|
|
180
|
+
class="value basisAuto shrinkOn"
|
|
180
181
|
data-id="boxComponent"
|
|
181
182
|
data-selector-id="box"
|
|
182
183
|
data-test-id="boxComponent"
|
|
@@ -184,13 +185,14 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
184
185
|
List
|
|
185
186
|
</div>
|
|
186
187
|
<div
|
|
187
|
-
class="
|
|
188
|
+
class="shrinkOff"
|
|
188
189
|
data-id="boxComponent"
|
|
189
190
|
data-selector-id="box"
|
|
190
191
|
data-test-id="boxComponent"
|
|
191
|
-
data-title="secondaryValue"
|
|
192
192
|
>
|
|
193
|
-
|
|
193
|
+
<div>
|
|
194
|
+
Custom Placeholder
|
|
195
|
+
</div>
|
|
194
196
|
</div>
|
|
195
197
|
</div>
|
|
196
198
|
</div>
|
|
@@ -198,7 +200,7 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
198
200
|
</DocumentFragment>
|
|
199
201
|
`;
|
|
200
202
|
|
|
201
|
-
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
203
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align center 1`] = `
|
|
202
204
|
<DocumentFragment>
|
|
203
205
|
<li
|
|
204
206
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -210,13 +212,13 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
|
210
212
|
tabindex="0"
|
|
211
213
|
>
|
|
212
214
|
<div
|
|
213
|
-
class="iconBox lhsBox lhsJustifyContent_center shrinkOff
|
|
215
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfCenter"
|
|
214
216
|
data-id="listItemWithRadioComp_radio"
|
|
215
217
|
data-selector-id="box"
|
|
216
218
|
data-test-id="listItemWithRadioComp_radio"
|
|
217
219
|
>
|
|
218
220
|
<div
|
|
219
|
-
class="
|
|
221
|
+
class="shrinkOff selfCenter"
|
|
220
222
|
data-id="boxComponent"
|
|
221
223
|
data-selector-id="box"
|
|
222
224
|
data-test-id="boxComponent"
|
|
@@ -263,41 +265,140 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
|
263
265
|
</div>
|
|
264
266
|
</div>
|
|
265
267
|
<div
|
|
266
|
-
class="grow basis
|
|
268
|
+
class="leftBox grow basis shrinkOff"
|
|
267
269
|
data-id="boxComponent"
|
|
268
270
|
data-selector-id="box"
|
|
269
271
|
data-test-id="boxComponent"
|
|
270
272
|
>
|
|
271
273
|
<div
|
|
272
|
-
class="
|
|
273
|
-
data-id="
|
|
274
|
-
data-selector-id="
|
|
275
|
-
data-test-id="
|
|
274
|
+
class="titleBox shrinkOff"
|
|
275
|
+
data-id="boxComponent"
|
|
276
|
+
data-selector-id="box"
|
|
277
|
+
data-test-id="boxComponent"
|
|
276
278
|
>
|
|
277
279
|
<div
|
|
278
|
-
class="value
|
|
280
|
+
class="value basisAuto shrinkOn"
|
|
279
281
|
data-id="boxComponent"
|
|
280
282
|
data-selector-id="box"
|
|
281
283
|
data-test-id="boxComponent"
|
|
282
284
|
>
|
|
283
285
|
List
|
|
284
286
|
</div>
|
|
287
|
+
</div>
|
|
288
|
+
<div
|
|
289
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
290
|
+
data-id="boxComponent"
|
|
291
|
+
data-selector-id="box"
|
|
292
|
+
data-test-id="boxComponent"
|
|
293
|
+
data-title="secondaryValue"
|
|
294
|
+
>
|
|
295
|
+
secondaryValue
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
</li>
|
|
299
|
+
</DocumentFragment>
|
|
300
|
+
`;
|
|
301
|
+
|
|
302
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align end 1`] = `
|
|
303
|
+
<DocumentFragment>
|
|
304
|
+
<li
|
|
305
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
306
|
+
data-a11y-inset-focus="true"
|
|
307
|
+
data-id="listItemWithRadioComp"
|
|
308
|
+
data-selector-id="listItemWithRadio"
|
|
309
|
+
data-test-id="listItemWithRadioComp"
|
|
310
|
+
role="option"
|
|
311
|
+
tabindex="0"
|
|
312
|
+
>
|
|
313
|
+
<div
|
|
314
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfEnd"
|
|
315
|
+
data-id="listItemWithRadioComp_radio"
|
|
316
|
+
data-selector-id="box"
|
|
317
|
+
data-test-id="listItemWithRadioComp_radio"
|
|
318
|
+
>
|
|
319
|
+
<div
|
|
320
|
+
class="lhsBox_medium shrinkOff selfEnd"
|
|
321
|
+
data-id="boxComponent"
|
|
322
|
+
data-selector-id="box"
|
|
323
|
+
data-test-id="boxComponent"
|
|
324
|
+
>
|
|
285
325
|
<div
|
|
286
|
-
|
|
326
|
+
aria-checked="false"
|
|
327
|
+
aria-hidden="true"
|
|
328
|
+
aria-readonly="false"
|
|
329
|
+
class="container pointer hoverEfffect inflex rowdir both"
|
|
330
|
+
data-id="RadioComp"
|
|
331
|
+
data-selector-id="container"
|
|
332
|
+
data-test-id="RadioComp"
|
|
333
|
+
role="radio"
|
|
334
|
+
tabindex="-1"
|
|
335
|
+
>
|
|
336
|
+
<div
|
|
337
|
+
class="radio
|
|
338
|
+
hoverprimary medium filled centerPathprimary shrinkOff"
|
|
339
|
+
data-id="boxComponent"
|
|
340
|
+
data-selector-id="box"
|
|
341
|
+
data-test-id="boxComponent"
|
|
342
|
+
>
|
|
343
|
+
<input
|
|
344
|
+
type="hidden"
|
|
345
|
+
value=""
|
|
346
|
+
/>
|
|
347
|
+
<label
|
|
348
|
+
class="radioLabel pointer"
|
|
349
|
+
>
|
|
350
|
+
<svg
|
|
351
|
+
viewBox="0 0 40 40"
|
|
352
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
353
|
+
>
|
|
354
|
+
<circle
|
|
355
|
+
class="rdBox"
|
|
356
|
+
cx="20"
|
|
357
|
+
cy="20"
|
|
358
|
+
r="19"
|
|
359
|
+
/>
|
|
360
|
+
</svg>
|
|
361
|
+
</label>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
</div>
|
|
366
|
+
<div
|
|
367
|
+
class="leftBox grow basis shrinkOff"
|
|
368
|
+
data-id="boxComponent"
|
|
369
|
+
data-selector-id="box"
|
|
370
|
+
data-test-id="boxComponent"
|
|
371
|
+
>
|
|
372
|
+
<div
|
|
373
|
+
class="titleBox shrinkOff"
|
|
374
|
+
data-id="boxComponent"
|
|
375
|
+
data-selector-id="box"
|
|
376
|
+
data-test-id="boxComponent"
|
|
377
|
+
>
|
|
378
|
+
<div
|
|
379
|
+
class="value basisAuto shrinkOn"
|
|
287
380
|
data-id="boxComponent"
|
|
288
381
|
data-selector-id="box"
|
|
289
382
|
data-test-id="boxComponent"
|
|
290
|
-
data-title="secondaryValue"
|
|
291
383
|
>
|
|
292
|
-
|
|
384
|
+
List
|
|
293
385
|
</div>
|
|
294
386
|
</div>
|
|
387
|
+
<div
|
|
388
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
389
|
+
data-id="boxComponent"
|
|
390
|
+
data-selector-id="box"
|
|
391
|
+
data-test-id="boxComponent"
|
|
392
|
+
data-title="secondaryValue"
|
|
393
|
+
>
|
|
394
|
+
secondaryValue
|
|
395
|
+
</div>
|
|
295
396
|
</div>
|
|
296
397
|
</li>
|
|
297
398
|
</DocumentFragment>
|
|
298
399
|
`;
|
|
299
400
|
|
|
300
|
-
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue
|
|
401
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
301
402
|
<DocumentFragment>
|
|
302
403
|
<li
|
|
303
404
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -362,35 +463,134 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS al
|
|
|
362
463
|
</div>
|
|
363
464
|
</div>
|
|
364
465
|
<div
|
|
365
|
-
class="grow basis
|
|
466
|
+
class="leftBox grow basis shrinkOff"
|
|
366
467
|
data-id="boxComponent"
|
|
367
468
|
data-selector-id="box"
|
|
368
469
|
data-test-id="boxComponent"
|
|
369
470
|
>
|
|
370
471
|
<div
|
|
371
|
-
class="
|
|
372
|
-
data-id="
|
|
373
|
-
data-selector-id="
|
|
374
|
-
data-test-id="
|
|
472
|
+
class="titleBox shrinkOff"
|
|
473
|
+
data-id="boxComponent"
|
|
474
|
+
data-selector-id="box"
|
|
475
|
+
data-test-id="boxComponent"
|
|
375
476
|
>
|
|
376
477
|
<div
|
|
377
|
-
class="value
|
|
478
|
+
class="value basisAuto shrinkOn"
|
|
378
479
|
data-id="boxComponent"
|
|
379
480
|
data-selector-id="box"
|
|
380
481
|
data-test-id="boxComponent"
|
|
381
482
|
>
|
|
382
483
|
List
|
|
383
484
|
</div>
|
|
485
|
+
</div>
|
|
486
|
+
<div
|
|
487
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
488
|
+
data-id="boxComponent"
|
|
489
|
+
data-selector-id="box"
|
|
490
|
+
data-test-id="boxComponent"
|
|
491
|
+
data-title="secondaryValue"
|
|
492
|
+
>
|
|
493
|
+
secondaryValue
|
|
494
|
+
</div>
|
|
495
|
+
</div>
|
|
496
|
+
</li>
|
|
497
|
+
</DocumentFragment>
|
|
498
|
+
`;
|
|
499
|
+
|
|
500
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align start 1`] = `
|
|
501
|
+
<DocumentFragment>
|
|
502
|
+
<li
|
|
503
|
+
class="list medium default withBorder flex rowdir vCenter"
|
|
504
|
+
data-a11y-inset-focus="true"
|
|
505
|
+
data-id="listItemWithRadioComp"
|
|
506
|
+
data-selector-id="listItemWithRadio"
|
|
507
|
+
data-test-id="listItemWithRadioComp"
|
|
508
|
+
role="option"
|
|
509
|
+
tabindex="0"
|
|
510
|
+
>
|
|
511
|
+
<div
|
|
512
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
|
|
513
|
+
data-id="listItemWithRadioComp_radio"
|
|
514
|
+
data-selector-id="box"
|
|
515
|
+
data-test-id="listItemWithRadioComp_radio"
|
|
516
|
+
>
|
|
517
|
+
<div
|
|
518
|
+
class="lhsBox_medium shrinkOff selfStart"
|
|
519
|
+
data-id="boxComponent"
|
|
520
|
+
data-selector-id="box"
|
|
521
|
+
data-test-id="boxComponent"
|
|
522
|
+
>
|
|
523
|
+
<div
|
|
524
|
+
aria-checked="false"
|
|
525
|
+
aria-hidden="true"
|
|
526
|
+
aria-readonly="false"
|
|
527
|
+
class="container pointer hoverEfffect inflex rowdir both"
|
|
528
|
+
data-id="RadioComp"
|
|
529
|
+
data-selector-id="container"
|
|
530
|
+
data-test-id="RadioComp"
|
|
531
|
+
role="radio"
|
|
532
|
+
tabindex="-1"
|
|
533
|
+
>
|
|
534
|
+
<div
|
|
535
|
+
class="radio
|
|
536
|
+
hoverprimary medium filled centerPathprimary shrinkOff"
|
|
537
|
+
data-id="boxComponent"
|
|
538
|
+
data-selector-id="box"
|
|
539
|
+
data-test-id="boxComponent"
|
|
540
|
+
>
|
|
541
|
+
<input
|
|
542
|
+
type="hidden"
|
|
543
|
+
value=""
|
|
544
|
+
/>
|
|
545
|
+
<label
|
|
546
|
+
class="radioLabel pointer"
|
|
547
|
+
>
|
|
548
|
+
<svg
|
|
549
|
+
viewBox="0 0 40 40"
|
|
550
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
551
|
+
>
|
|
552
|
+
<circle
|
|
553
|
+
class="rdBox"
|
|
554
|
+
cx="20"
|
|
555
|
+
cy="20"
|
|
556
|
+
r="19"
|
|
557
|
+
/>
|
|
558
|
+
</svg>
|
|
559
|
+
</label>
|
|
560
|
+
</div>
|
|
561
|
+
</div>
|
|
562
|
+
</div>
|
|
563
|
+
</div>
|
|
564
|
+
<div
|
|
565
|
+
class="leftBox grow basis shrinkOff"
|
|
566
|
+
data-id="boxComponent"
|
|
567
|
+
data-selector-id="box"
|
|
568
|
+
data-test-id="boxComponent"
|
|
569
|
+
>
|
|
570
|
+
<div
|
|
571
|
+
class="titleBox shrinkOff"
|
|
572
|
+
data-id="boxComponent"
|
|
573
|
+
data-selector-id="box"
|
|
574
|
+
data-test-id="boxComponent"
|
|
575
|
+
>
|
|
384
576
|
<div
|
|
385
|
-
class="
|
|
577
|
+
class="value basisAuto shrinkOn"
|
|
386
578
|
data-id="boxComponent"
|
|
387
579
|
data-selector-id="box"
|
|
388
580
|
data-test-id="boxComponent"
|
|
389
|
-
data-title="secondaryValue"
|
|
390
581
|
>
|
|
391
|
-
|
|
582
|
+
List
|
|
392
583
|
</div>
|
|
393
584
|
</div>
|
|
585
|
+
<div
|
|
586
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
587
|
+
data-id="boxComponent"
|
|
588
|
+
data-selector-id="box"
|
|
589
|
+
data-test-id="boxComponent"
|
|
590
|
+
data-title="secondaryValue"
|
|
591
|
+
>
|
|
592
|
+
secondaryValue
|
|
593
|
+
</div>
|
|
394
594
|
</div>
|
|
395
595
|
</li>
|
|
396
596
|
</DocumentFragment>
|
|
@@ -461,19 +661,19 @@ exports[`ListItemWithRadio rendering the defult props 1`] = `
|
|
|
461
661
|
</div>
|
|
462
662
|
</div>
|
|
463
663
|
<div
|
|
464
|
-
class="grow basis
|
|
664
|
+
class="leftBox grow basis shrinkOff"
|
|
465
665
|
data-id="boxComponent"
|
|
466
666
|
data-selector-id="box"
|
|
467
667
|
data-test-id="boxComponent"
|
|
468
668
|
>
|
|
469
669
|
<div
|
|
470
|
-
class="
|
|
471
|
-
data-id="
|
|
472
|
-
data-selector-id="
|
|
473
|
-
data-test-id="
|
|
670
|
+
class="titleBox shrinkOff"
|
|
671
|
+
data-id="boxComponent"
|
|
672
|
+
data-selector-id="box"
|
|
673
|
+
data-test-id="boxComponent"
|
|
474
674
|
>
|
|
475
675
|
<div
|
|
476
|
-
class="value
|
|
676
|
+
class="value basisAuto shrinkOn"
|
|
477
677
|
data-id="boxComponent"
|
|
478
678
|
data-selector-id="box"
|
|
479
679
|
data-test-id="boxComponent"
|
|
@@ -77,26 +77,29 @@ var ListItem_Props = {
|
|
|
77
77
|
needMultiLineText: _propTypes["default"].bool,
|
|
78
78
|
customClass: _propTypes["default"].shape({
|
|
79
79
|
customListItem: _propTypes["default"].string,
|
|
80
|
-
customTickIcon: _propTypes["default"].string
|
|
80
|
+
customTickIcon: _propTypes["default"].string,
|
|
81
|
+
customValueRightPlaceholder: _propTypes["default"].string
|
|
81
82
|
}),
|
|
82
83
|
customProps: _propTypes["default"].shape({
|
|
83
84
|
ListItemProps: _propTypes["default"].object
|
|
84
85
|
}),
|
|
85
|
-
secondaryValue: _propTypes["default"].string
|
|
86
|
+
secondaryValue: _propTypes["default"].string,
|
|
87
|
+
renderValueRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func])
|
|
86
88
|
};
|
|
87
89
|
exports.ListItem_Props = ListItem_Props;
|
|
88
90
|
var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
|
|
89
91
|
active: _propTypes["default"].bool,
|
|
90
92
|
autoHover: _propTypes["default"].bool,
|
|
91
93
|
avatarPalette: _propTypes["default"].string
|
|
92
|
-
}, _defineProperty(_ListItemWithAvatar_P, "avatarPalette", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataSelectorId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "disableTitle", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "getRef", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "highlight", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "id", _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _defineProperty(_ListItemWithAvatar_P, "imgSrc", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "index", _propTypes["default"].number), _defineProperty(_ListItemWithAvatar_P, "initial", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "isDisabled", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "isTeam", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "name", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "needAvatarTitle", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needBorder", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needTick", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "onClick", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "onMouseEnter", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "palette", _propTypes["default"].oneOf(['dark'])), _defineProperty(_ListItemWithAvatar_P, "size", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "title", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "value", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "secondaryValue", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "lhsAlignContent", _propTypes["default"].oneOf(['start', 'center', 'end'])), _defineProperty(_ListItemWithAvatar_P, "a11y", _propTypes["default"].shape({
|
|
94
|
+
}, _defineProperty(_ListItemWithAvatar_P, "avatarPalette", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "dataSelectorId", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "disableTitle", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "getRef", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "highlight", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "id", _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _defineProperty(_ListItemWithAvatar_P, "imgSrc", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "index", _propTypes["default"].number), _defineProperty(_ListItemWithAvatar_P, "initial", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "isDisabled", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "isTeam", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "name", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "needAvatarTitle", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needBorder", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "needTick", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "onClick", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "onMouseEnter", _propTypes["default"].func), _defineProperty(_ListItemWithAvatar_P, "palette", _propTypes["default"].oneOf(['dark'])), _defineProperty(_ListItemWithAvatar_P, "size", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "title", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "value", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "secondaryValue", _propTypes["default"].string), _defineProperty(_ListItemWithAvatar_P, "renderValueRightPlaceholderNode", _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func])), _defineProperty(_ListItemWithAvatar_P, "lhsAlignContent", _propTypes["default"].oneOf(['start', 'center', 'end'])), _defineProperty(_ListItemWithAvatar_P, "a11y", _propTypes["default"].shape({
|
|
93
95
|
role: _propTypes["default"].string,
|
|
94
96
|
ariaSelected: _propTypes["default"].bool,
|
|
95
97
|
ariaHidden: _propTypes["default"].bool
|
|
96
98
|
})), _defineProperty(_ListItemWithAvatar_P, "customClass", _propTypes["default"].shape({
|
|
97
99
|
customListItem: _propTypes["default"].string,
|
|
98
100
|
customAvatar: _propTypes["default"].string,
|
|
99
|
-
customAvatarTeam: _propTypes["default"].string
|
|
101
|
+
customAvatarTeam: _propTypes["default"].string,
|
|
102
|
+
customValueRightPlaceholder: _propTypes["default"].string
|
|
100
103
|
})), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
|
|
101
104
|
ListItemProps: _propTypes["default"].object,
|
|
102
105
|
ContainerProps: _propTypes["default"].object,
|
|
@@ -123,6 +126,7 @@ var ListItemWithCheckBox_Props = {
|
|
|
123
126
|
title: _propTypes["default"].string,
|
|
124
127
|
value: _propTypes["default"].string,
|
|
125
128
|
secondaryValue: _propTypes["default"].string,
|
|
129
|
+
renderValueRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func]),
|
|
126
130
|
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
127
131
|
lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
128
132
|
a11y: _propTypes["default"].shape({
|
|
@@ -133,7 +137,8 @@ var ListItemWithCheckBox_Props = {
|
|
|
133
137
|
customClass: _propTypes["default"].shape({
|
|
134
138
|
customListItem: _propTypes["default"].string,
|
|
135
139
|
customCheckBox: _propTypes["default"].string,
|
|
136
|
-
customLabel: _propTypes["default"].string
|
|
140
|
+
customLabel: _propTypes["default"].string,
|
|
141
|
+
customValueRightPlaceholder: _propTypes["default"].string
|
|
137
142
|
}),
|
|
138
143
|
customProps: _propTypes["default"].object
|
|
139
144
|
};
|
|
@@ -161,6 +166,7 @@ var ListItemWithIcon_Props = {
|
|
|
161
166
|
title: _propTypes["default"].string,
|
|
162
167
|
value: _propTypes["default"].string,
|
|
163
168
|
secondaryValue: _propTypes["default"].string,
|
|
169
|
+
renderValueRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func]),
|
|
164
170
|
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
165
171
|
lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
166
172
|
a11y: _propTypes["default"].shape({
|
|
@@ -170,6 +176,7 @@ var ListItemWithIcon_Props = {
|
|
|
170
176
|
}),
|
|
171
177
|
needMultiLineText: _propTypes["default"].bool,
|
|
172
178
|
customClass: _propTypes["default"].string,
|
|
179
|
+
customValueRightPlaceholderClass: _propTypes["default"].string,
|
|
173
180
|
customProps: _propTypes["default"].shape({
|
|
174
181
|
ListItemProps: _propTypes["default"].object
|
|
175
182
|
}),
|
|
@@ -197,6 +204,7 @@ var ListItemWithRadio_Props = {
|
|
|
197
204
|
title: _propTypes["default"].string,
|
|
198
205
|
value: _propTypes["default"].string,
|
|
199
206
|
secondaryValue: _propTypes["default"].string,
|
|
207
|
+
renderValueRightPlaceholderNode: _propTypes["default"].oneOfType([_propTypes["default"].node, _propTypes["default"].func]),
|
|
200
208
|
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
201
209
|
lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
202
210
|
a11y: _propTypes["default"].shape({
|
|
@@ -207,7 +215,8 @@ var ListItemWithRadio_Props = {
|
|
|
207
215
|
customClass: _propTypes["default"].shape({
|
|
208
216
|
customListItem: _propTypes["default"].string,
|
|
209
217
|
customRadio: _propTypes["default"].string,
|
|
210
|
-
customRadioWrap: _propTypes["default"].string
|
|
218
|
+
customRadioWrap: _propTypes["default"].string,
|
|
219
|
+
customValueRightPlaceholder: _propTypes["default"].string
|
|
211
220
|
}),
|
|
212
221
|
customProps: _propTypes["default"].object
|
|
213
222
|
};
|
|
@@ -330,6 +330,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
330
330
|
var options = props.options,
|
|
331
331
|
valueField = props.valueField,
|
|
332
332
|
textField = props.textField,
|
|
333
|
+
secondaryField = props.secondaryField,
|
|
333
334
|
prefixText = props.prefixText,
|
|
334
335
|
disabledOptions = props.disabledOptions,
|
|
335
336
|
allowValueFallback = props.allowValueFallback,
|
|
@@ -342,6 +343,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
342
343
|
optionType: 'default',
|
|
343
344
|
disabledOptions: disabledOptions,
|
|
344
345
|
allowValueFallback: allowValueFallback,
|
|
346
|
+
secondaryField: secondaryField,
|
|
345
347
|
searchFields: searchFields
|
|
346
348
|
});
|
|
347
349
|
}
|
|
@@ -1161,6 +1163,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1161
1163
|
isLoading = _this$props15.isLoading,
|
|
1162
1164
|
selectAllText = _this$props15.selectAllText,
|
|
1163
1165
|
needSelectAll = _this$props15.needSelectAll,
|
|
1166
|
+
customProps = _this$props15.customProps,
|
|
1164
1167
|
isVirtualizerEnabled = _this$props15.isVirtualizerEnabled,
|
|
1165
1168
|
limit = _this$props15.limit;
|
|
1166
1169
|
var _this$state9 = this.state,
|
|
@@ -1184,6 +1187,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1184
1187
|
noMoreText: i18nKeys.noMoreText || noMoreOptionsMessage
|
|
1185
1188
|
});
|
|
1186
1189
|
var isModel = (0, _isMobilePopover["default"])(needResponsive);
|
|
1190
|
+
var SuggestionsProps = customProps.SuggestionsProps;
|
|
1187
1191
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1188
1192
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(isReadOnly ? _MultiSelectModule["default"].readOnly : '', " ").concat(disableAction ? (0, _CssProvider["default"])('isBlock') : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
1189
1193
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
@@ -1242,7 +1246,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1242
1246
|
eleRef: this.suggestionContainerRef
|
|
1243
1247
|
}, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1244
1248
|
className: _MultiSelectModule["default"][palette]
|
|
1245
|
-
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1249
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
1246
1250
|
key: searchStr.trim(),
|
|
1247
1251
|
suggestions: suggestions,
|
|
1248
1252
|
isVirtualizerEnabled: isVirtualizerEnabled,
|
|
@@ -1261,7 +1265,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1261
1265
|
},
|
|
1262
1266
|
limit: limit,
|
|
1263
1267
|
limitReachedMessage: limitReachedMessage
|
|
1264
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1268
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1265
1269
|
isLoading: isFetchingOptions,
|
|
1266
1270
|
options: options,
|
|
1267
1271
|
searchString: searchStr,
|
|
@@ -35,19 +35,19 @@ exports[`MultiSelectHeader rendering the basic value 1`] = `
|
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
<div
|
|
38
|
-
class="grow basis
|
|
38
|
+
class="leftBox grow basis shrinkOff"
|
|
39
39
|
data-id="boxComponent"
|
|
40
40
|
data-selector-id="box"
|
|
41
41
|
data-test-id="boxComponent"
|
|
42
42
|
>
|
|
43
43
|
<div
|
|
44
|
-
class="
|
|
45
|
-
data-id="
|
|
46
|
-
data-selector-id="
|
|
47
|
-
data-test-id="
|
|
44
|
+
class="titleBox shrinkOff"
|
|
45
|
+
data-id="boxComponent"
|
|
46
|
+
data-selector-id="box"
|
|
47
|
+
data-test-id="boxComponent"
|
|
48
48
|
>
|
|
49
49
|
<div
|
|
50
|
-
class="value
|
|
50
|
+
class="value basisAuto shrinkOn"
|
|
51
51
|
data-id="MultiSelectHeader_selectAll_Text"
|
|
52
52
|
data-selector-id="box"
|
|
53
53
|
data-test-id="MultiSelectHeader_selectAll_Text"
|