@zohodesk/components 1.0.0-temp-234 → 1.0.0-temp-235
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 +0 -22
- package/es/ListItem/ListItem.js +3 -7
- package/es/ListItem/ListItemWithAvatar.js +6 -12
- package/es/ListItem/ListItemWithCheckBox.js +6 -12
- package/es/ListItem/ListItemWithIcon.js +5 -11
- package/es/ListItem/ListItemWithRadio.js +6 -12
- package/es/ListItem/__tests__/ListItem.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +0 -17
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +0 -19
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -78
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +46 -140
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +49 -251
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +50 -144
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +52 -252
- package/es/ListItem/props/propTypes.js +5 -15
- package/es/MultiSelect/MultiSelect.js +1 -8
- package/es/Select/GroupSelect.js +2 -4
- package/es/Select/Select.js +1 -7
- package/es/Select/SelectWithAvatar.js +3 -14
- package/es/Select/SelectWithIcon.js +2 -6
- package/es/Select/props/defaultProps.js +0 -1
- package/es/Select/props/propTypes.js +0 -5
- package/es/Typography/Typography.js +9 -2
- package/es/Typography/__tests__/Typography.spec.js +334 -0
- package/es/Typography/__tests__/__snapshots__/Typography.spec.js.snap +451 -0
- package/es/Typography/highlight.js +144 -0
- package/es/Typography/props/defaultProps.js +2 -1
- package/es/Typography/props/propTypes.js +26 -1
- package/es/utils/dropDownUtils.js +3 -12
- package/lib/ListItem/ListItem.js +3 -8
- package/lib/ListItem/ListItemWithAvatar.js +6 -13
- package/lib/ListItem/ListItemWithCheckBox.js +6 -13
- package/lib/ListItem/ListItemWithIcon.js +5 -11
- package/lib/ListItem/ListItemWithRadio.js +6 -13
- package/lib/ListItem/__tests__/ListItem.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +0 -21
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +0 -23
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -78
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +46 -140
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +49 -251
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +50 -144
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +52 -252
- package/lib/ListItem/props/propTypes.js +6 -15
- package/lib/MultiSelect/MultiSelect.js +2 -6
- package/lib/Select/GroupSelect.js +3 -4
- package/lib/Select/Select.js +1 -7
- package/lib/Select/SelectWithAvatar.js +6 -14
- package/lib/Select/SelectWithIcon.js +3 -6
- package/lib/Select/props/defaultProps.js +0 -1
- package/lib/Select/props/propTypes.js +0 -5
- package/lib/Typography/Typography.js +9 -2
- package/lib/Typography/__tests__/Typography.spec.js +342 -0
- package/lib/Typography/__tests__/__snapshots__/Typography.spec.js.snap +451 -0
- package/lib/Typography/highlight.js +151 -0
- package/lib/Typography/props/defaultProps.js +2 -1
- package/lib/Typography/props/propTypes.js +31 -1
- package/lib/utils/dropDownUtils.js +3 -14
- package/package.json +1 -1
|
@@ -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 secondaryValue text and LHS align center 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 renderValueRightPlaceholderNod
|
|
|
12
12
|
tabindex="0"
|
|
13
13
|
>
|
|
14
14
|
<div
|
|
15
|
-
class="iconBox lhsBox lhsJustifyContent_center shrinkOff
|
|
15
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfCenter"
|
|
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="
|
|
21
|
+
class="shrinkOff selfCenter"
|
|
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 renderValueRightPlaceholderNod
|
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
<div
|
|
68
|
-
class="
|
|
68
|
+
class="grow basis shrinkOn"
|
|
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="flex cover coldir"
|
|
75
|
+
data-id="containerComponent"
|
|
76
|
+
data-selector-id="container"
|
|
77
|
+
data-test-id="containerComponent"
|
|
78
78
|
>
|
|
79
79
|
<div
|
|
80
|
-
class="value
|
|
80
|
+
class="value shrinkOff"
|
|
81
81
|
data-id="boxComponent"
|
|
82
82
|
data-selector-id="box"
|
|
83
83
|
data-test-id="boxComponent"
|
|
@@ -85,14 +85,13 @@ exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNod
|
|
|
85
85
|
List
|
|
86
86
|
</div>
|
|
87
87
|
<div
|
|
88
|
-
class="
|
|
88
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
89
89
|
data-id="boxComponent"
|
|
90
90
|
data-selector-id="box"
|
|
91
91
|
data-test-id="boxComponent"
|
|
92
|
+
data-title="secondaryValue"
|
|
92
93
|
>
|
|
93
|
-
|
|
94
|
-
Custom Placeholder
|
|
95
|
-
</div>
|
|
94
|
+
secondaryValue
|
|
96
95
|
</div>
|
|
97
96
|
</div>
|
|
98
97
|
</div>
|
|
@@ -100,7 +99,7 @@ exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNod
|
|
|
100
99
|
</DocumentFragment>
|
|
101
100
|
`;
|
|
102
101
|
|
|
103
|
-
exports[`ListItemWithRadio ListItemWithRadio with
|
|
102
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align end 1`] = `
|
|
104
103
|
<DocumentFragment>
|
|
105
104
|
<li
|
|
106
105
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -112,13 +111,13 @@ exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNod
|
|
|
112
111
|
tabindex="0"
|
|
113
112
|
>
|
|
114
113
|
<div
|
|
115
|
-
class="iconBox lhsBox lhsJustifyContent_center shrinkOff
|
|
114
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfEnd"
|
|
116
115
|
data-id="listItemWithRadioComp_radio"
|
|
117
116
|
data-selector-id="box"
|
|
118
117
|
data-test-id="listItemWithRadioComp_radio"
|
|
119
118
|
>
|
|
120
119
|
<div
|
|
121
|
-
class="lhsBox_medium shrinkOff
|
|
120
|
+
class="lhsBox_medium shrinkOff selfEnd"
|
|
122
121
|
data-id="boxComponent"
|
|
123
122
|
data-selector-id="box"
|
|
124
123
|
data-test-id="boxComponent"
|
|
@@ -165,19 +164,19 @@ exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNod
|
|
|
165
164
|
</div>
|
|
166
165
|
</div>
|
|
167
166
|
<div
|
|
168
|
-
class="
|
|
167
|
+
class="grow basis shrinkOn"
|
|
169
168
|
data-id="boxComponent"
|
|
170
169
|
data-selector-id="box"
|
|
171
170
|
data-test-id="boxComponent"
|
|
172
171
|
>
|
|
173
172
|
<div
|
|
174
|
-
class="
|
|
175
|
-
data-id="
|
|
176
|
-
data-selector-id="
|
|
177
|
-
data-test-id="
|
|
173
|
+
class="flex cover coldir"
|
|
174
|
+
data-id="containerComponent"
|
|
175
|
+
data-selector-id="container"
|
|
176
|
+
data-test-id="containerComponent"
|
|
178
177
|
>
|
|
179
178
|
<div
|
|
180
|
-
class="value
|
|
179
|
+
class="value shrinkOff"
|
|
181
180
|
data-id="boxComponent"
|
|
182
181
|
data-selector-id="box"
|
|
183
182
|
data-test-id="boxComponent"
|
|
@@ -185,14 +184,13 @@ exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNod
|
|
|
185
184
|
List
|
|
186
185
|
</div>
|
|
187
186
|
<div
|
|
188
|
-
class="shrinkOff"
|
|
187
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
189
188
|
data-id="boxComponent"
|
|
190
189
|
data-selector-id="box"
|
|
191
190
|
data-test-id="boxComponent"
|
|
191
|
+
data-title="secondaryValue"
|
|
192
192
|
>
|
|
193
|
-
|
|
194
|
-
Custom Placeholder
|
|
195
|
-
</div>
|
|
193
|
+
secondaryValue
|
|
196
194
|
</div>
|
|
197
195
|
</div>
|
|
198
196
|
</div>
|
|
@@ -200,7 +198,7 @@ exports[`ListItemWithRadio ListItemWithRadio with renderValueRightPlaceholderNod
|
|
|
200
198
|
</DocumentFragment>
|
|
201
199
|
`;
|
|
202
200
|
|
|
203
|
-
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue
|
|
201
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
204
202
|
<DocumentFragment>
|
|
205
203
|
<li
|
|
206
204
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -212,13 +210,13 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
212
210
|
tabindex="0"
|
|
213
211
|
>
|
|
214
212
|
<div
|
|
215
|
-
class="iconBox lhsBox lhsJustifyContent_center shrinkOff
|
|
213
|
+
class="iconBox lhsBox lhsJustifyContent_center shrinkOff selfStart"
|
|
216
214
|
data-id="listItemWithRadioComp_radio"
|
|
217
215
|
data-selector-id="box"
|
|
218
216
|
data-test-id="listItemWithRadioComp_radio"
|
|
219
217
|
>
|
|
220
218
|
<div
|
|
221
|
-
class="shrinkOff
|
|
219
|
+
class="lhsBox_medium shrinkOff selfStart"
|
|
222
220
|
data-id="boxComponent"
|
|
223
221
|
data-selector-id="box"
|
|
224
222
|
data-test-id="boxComponent"
|
|
@@ -265,140 +263,41 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS a
|
|
|
265
263
|
</div>
|
|
266
264
|
</div>
|
|
267
265
|
<div
|
|
268
|
-
class="
|
|
266
|
+
class="grow basis shrinkOn"
|
|
269
267
|
data-id="boxComponent"
|
|
270
268
|
data-selector-id="box"
|
|
271
269
|
data-test-id="boxComponent"
|
|
272
270
|
>
|
|
273
271
|
<div
|
|
274
|
-
class="
|
|
275
|
-
data-id="
|
|
276
|
-
data-selector-id="
|
|
277
|
-
data-test-id="
|
|
272
|
+
class="flex cover coldir"
|
|
273
|
+
data-id="containerComponent"
|
|
274
|
+
data-selector-id="container"
|
|
275
|
+
data-test-id="containerComponent"
|
|
278
276
|
>
|
|
279
277
|
<div
|
|
280
|
-
class="value
|
|
278
|
+
class="value shrinkOff"
|
|
281
279
|
data-id="boxComponent"
|
|
282
280
|
data-selector-id="box"
|
|
283
281
|
data-test-id="boxComponent"
|
|
284
282
|
>
|
|
285
283
|
List
|
|
286
284
|
</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
|
-
>
|
|
325
285
|
<div
|
|
326
|
-
|
|
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"
|
|
286
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
380
287
|
data-id="boxComponent"
|
|
381
288
|
data-selector-id="box"
|
|
382
289
|
data-test-id="boxComponent"
|
|
290
|
+
data-title="secondaryValue"
|
|
383
291
|
>
|
|
384
|
-
|
|
292
|
+
secondaryValue
|
|
385
293
|
</div>
|
|
386
294
|
</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>
|
|
396
295
|
</div>
|
|
397
296
|
</li>
|
|
398
297
|
</DocumentFragment>
|
|
399
298
|
`;
|
|
400
299
|
|
|
401
|
-
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
300
|
+
exports[`ListItemWithRadio ListItemWithRadio with secondaryValue text and LHS align start 1`] = `
|
|
402
301
|
<DocumentFragment>
|
|
403
302
|
<li
|
|
404
303
|
class="list medium default withBorder flex rowdir vCenter"
|
|
@@ -463,134 +362,35 @@ exports[`ListItemWithRadio ListItemWithRadio with secondaryValue 1`] = `
|
|
|
463
362
|
</div>
|
|
464
363
|
</div>
|
|
465
364
|
<div
|
|
466
|
-
class="
|
|
365
|
+
class="grow basis shrinkOn"
|
|
467
366
|
data-id="boxComponent"
|
|
468
367
|
data-selector-id="box"
|
|
469
368
|
data-test-id="boxComponent"
|
|
470
369
|
>
|
|
471
370
|
<div
|
|
472
|
-
class="
|
|
473
|
-
data-id="
|
|
474
|
-
data-selector-id="
|
|
475
|
-
data-test-id="
|
|
371
|
+
class="flex cover coldir"
|
|
372
|
+
data-id="containerComponent"
|
|
373
|
+
data-selector-id="container"
|
|
374
|
+
data-test-id="containerComponent"
|
|
476
375
|
>
|
|
477
376
|
<div
|
|
478
|
-
class="value
|
|
377
|
+
class="value shrinkOff"
|
|
479
378
|
data-id="boxComponent"
|
|
480
379
|
data-selector-id="box"
|
|
481
380
|
data-test-id="boxComponent"
|
|
482
381
|
>
|
|
483
382
|
List
|
|
484
383
|
</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
|
-
>
|
|
576
384
|
<div
|
|
577
|
-
class="
|
|
385
|
+
class="secondaryField secondaryValue shrinkOff"
|
|
578
386
|
data-id="boxComponent"
|
|
579
387
|
data-selector-id="box"
|
|
580
388
|
data-test-id="boxComponent"
|
|
389
|
+
data-title="secondaryValue"
|
|
581
390
|
>
|
|
582
|
-
|
|
391
|
+
secondaryValue
|
|
583
392
|
</div>
|
|
584
393
|
</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>
|
|
594
394
|
</div>
|
|
595
395
|
</li>
|
|
596
396
|
</DocumentFragment>
|
|
@@ -661,19 +461,19 @@ exports[`ListItemWithRadio rendering the defult props 1`] = `
|
|
|
661
461
|
</div>
|
|
662
462
|
</div>
|
|
663
463
|
<div
|
|
664
|
-
class="
|
|
464
|
+
class="grow basis shrinkOn"
|
|
665
465
|
data-id="boxComponent"
|
|
666
466
|
data-selector-id="box"
|
|
667
467
|
data-test-id="boxComponent"
|
|
668
468
|
>
|
|
669
469
|
<div
|
|
670
|
-
class="
|
|
671
|
-
data-id="
|
|
672
|
-
data-selector-id="
|
|
673
|
-
data-test-id="
|
|
470
|
+
class="flex cover coldir"
|
|
471
|
+
data-id="containerComponent"
|
|
472
|
+
data-selector-id="container"
|
|
473
|
+
data-test-id="containerComponent"
|
|
674
474
|
>
|
|
675
475
|
<div
|
|
676
|
-
class="value
|
|
476
|
+
class="value shrinkOff"
|
|
677
477
|
data-id="boxComponent"
|
|
678
478
|
data-selector-id="box"
|
|
679
479
|
data-test-id="boxComponent"
|
|
@@ -77,29 +77,26 @@ 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
|
|
81
|
-
customValueRightPlaceholder: _propTypes["default"].string
|
|
80
|
+
customTickIcon: _propTypes["default"].string
|
|
82
81
|
}),
|
|
83
82
|
customProps: _propTypes["default"].shape({
|
|
84
83
|
ListItemProps: _propTypes["default"].object
|
|
85
84
|
}),
|
|
86
|
-
secondaryValue: _propTypes["default"].string
|
|
87
|
-
renderValueRightPlaceholderNode: _propTypes["default"].func
|
|
85
|
+
secondaryValue: _propTypes["default"].string
|
|
88
86
|
};
|
|
89
87
|
exports.ListItem_Props = ListItem_Props;
|
|
90
88
|
var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
|
|
91
89
|
active: _propTypes["default"].bool,
|
|
92
90
|
autoHover: _propTypes["default"].bool,
|
|
93
91
|
avatarPalette: _propTypes["default"].string
|
|
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, "
|
|
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({
|
|
95
93
|
role: _propTypes["default"].string,
|
|
96
94
|
ariaSelected: _propTypes["default"].bool,
|
|
97
95
|
ariaHidden: _propTypes["default"].bool
|
|
98
96
|
})), _defineProperty(_ListItemWithAvatar_P, "customClass", _propTypes["default"].shape({
|
|
99
97
|
customListItem: _propTypes["default"].string,
|
|
100
98
|
customAvatar: _propTypes["default"].string,
|
|
101
|
-
customAvatarTeam: _propTypes["default"].string
|
|
102
|
-
customValueRightPlaceholder: _propTypes["default"].string
|
|
99
|
+
customAvatarTeam: _propTypes["default"].string
|
|
103
100
|
})), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
|
|
104
101
|
ListItemProps: _propTypes["default"].object,
|
|
105
102
|
ContainerProps: _propTypes["default"].object,
|
|
@@ -126,7 +123,6 @@ var ListItemWithCheckBox_Props = {
|
|
|
126
123
|
title: _propTypes["default"].string,
|
|
127
124
|
value: _propTypes["default"].string,
|
|
128
125
|
secondaryValue: _propTypes["default"].string,
|
|
129
|
-
renderValueRightPlaceholderNode: _propTypes["default"].func,
|
|
130
126
|
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
131
127
|
lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
132
128
|
a11y: _propTypes["default"].shape({
|
|
@@ -137,8 +133,7 @@ var ListItemWithCheckBox_Props = {
|
|
|
137
133
|
customClass: _propTypes["default"].shape({
|
|
138
134
|
customListItem: _propTypes["default"].string,
|
|
139
135
|
customCheckBox: _propTypes["default"].string,
|
|
140
|
-
customLabel: _propTypes["default"].string
|
|
141
|
-
customValueRightPlaceholder: _propTypes["default"].string
|
|
136
|
+
customLabel: _propTypes["default"].string
|
|
142
137
|
}),
|
|
143
138
|
customProps: _propTypes["default"].object
|
|
144
139
|
};
|
|
@@ -166,7 +161,6 @@ var ListItemWithIcon_Props = {
|
|
|
166
161
|
title: _propTypes["default"].string,
|
|
167
162
|
value: _propTypes["default"].string,
|
|
168
163
|
secondaryValue: _propTypes["default"].string,
|
|
169
|
-
renderValueRightPlaceholderNode: _propTypes["default"].func,
|
|
170
164
|
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
171
165
|
lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
172
166
|
a11y: _propTypes["default"].shape({
|
|
@@ -176,7 +170,6 @@ var ListItemWithIcon_Props = {
|
|
|
176
170
|
}),
|
|
177
171
|
needMultiLineText: _propTypes["default"].bool,
|
|
178
172
|
customClass: _propTypes["default"].string,
|
|
179
|
-
customValueRightPlaceholderClass: _propTypes["default"].string,
|
|
180
173
|
customProps: _propTypes["default"].shape({
|
|
181
174
|
ListItemProps: _propTypes["default"].object
|
|
182
175
|
}),
|
|
@@ -204,7 +197,6 @@ var ListItemWithRadio_Props = {
|
|
|
204
197
|
title: _propTypes["default"].string,
|
|
205
198
|
value: _propTypes["default"].string,
|
|
206
199
|
secondaryValue: _propTypes["default"].string,
|
|
207
|
-
renderValueRightPlaceholderNode: _propTypes["default"].func,
|
|
208
200
|
lhsAlignContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
209
201
|
lhsJustifyContent: _propTypes["default"].oneOf(['start', 'center', 'end']),
|
|
210
202
|
a11y: _propTypes["default"].shape({
|
|
@@ -215,8 +207,7 @@ var ListItemWithRadio_Props = {
|
|
|
215
207
|
customClass: _propTypes["default"].shape({
|
|
216
208
|
customListItem: _propTypes["default"].string,
|
|
217
209
|
customRadio: _propTypes["default"].string,
|
|
218
|
-
customRadioWrap: _propTypes["default"].string
|
|
219
|
-
customValueRightPlaceholder: _propTypes["default"].string
|
|
210
|
+
customRadioWrap: _propTypes["default"].string
|
|
220
211
|
}),
|
|
221
212
|
customProps: _propTypes["default"].object
|
|
222
213
|
};
|
|
@@ -309,7 +309,6 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
309
309
|
var options = props.options,
|
|
310
310
|
valueField = props.valueField,
|
|
311
311
|
textField = props.textField,
|
|
312
|
-
secondaryField = props.secondaryField,
|
|
313
312
|
prefixText = props.prefixText,
|
|
314
313
|
disabledOptions = props.disabledOptions,
|
|
315
314
|
allowValueFallback = props.allowValueFallback,
|
|
@@ -322,7 +321,6 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
322
321
|
optionType: 'default',
|
|
323
322
|
disabledOptions: disabledOptions,
|
|
324
323
|
allowValueFallback: allowValueFallback,
|
|
325
|
-
secondaryField: secondaryField,
|
|
326
324
|
searchFields: searchFields
|
|
327
325
|
});
|
|
328
326
|
}
|
|
@@ -1142,7 +1140,6 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1142
1140
|
isLoading = _this$props15.isLoading,
|
|
1143
1141
|
selectAllText = _this$props15.selectAllText,
|
|
1144
1142
|
needSelectAll = _this$props15.needSelectAll,
|
|
1145
|
-
customProps = _this$props15.customProps,
|
|
1146
1143
|
isVirtualizerEnabled = _this$props15.isVirtualizerEnabled,
|
|
1147
1144
|
limit = _this$props15.limit;
|
|
1148
1145
|
var _this$state9 = this.state,
|
|
@@ -1166,7 +1163,6 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1166
1163
|
noMoreText: i18nKeys.noMoreText || noMoreOptionsMessage
|
|
1167
1164
|
});
|
|
1168
1165
|
var isModel = (0, _isMobilePopover["default"])(needResponsive);
|
|
1169
|
-
var SuggestionsProps = customProps.SuggestionsProps;
|
|
1170
1166
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1171
1167
|
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 : ''),
|
|
1172
1168
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
@@ -1224,7 +1220,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1224
1220
|
eleRef: this.suggestionContainerRef
|
|
1225
1221
|
}, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1226
1222
|
className: _MultiSelectModule["default"][palette]
|
|
1227
|
-
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
1223
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1228
1224
|
key: searchStr.trim(),
|
|
1229
1225
|
suggestions: suggestions,
|
|
1230
1226
|
isVirtualizerEnabled: isVirtualizerEnabled,
|
|
@@ -1243,7 +1239,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1243
1239
|
},
|
|
1244
1240
|
limit: limit,
|
|
1245
1241
|
limitReachedMessage: limitReachedMessage
|
|
1246
|
-
}
|
|
1242
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1247
1243
|
isLoading: isFetchingOptions,
|
|
1248
1244
|
options: options,
|
|
1249
1245
|
searchString: searchStr,
|
|
@@ -699,8 +699,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
699
699
|
var _customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
700
700
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI,
|
|
701
701
|
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
702
|
-
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP
|
|
703
|
-
SuggestionsProps = customProps.SuggestionsProps;
|
|
702
|
+
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP;
|
|
704
703
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
705
704
|
className: "".concat(_SelectModule["default"].container, " ").concat(_SelectModule["default"]["box_".concat(size)], " ").concat(isReadOnly ? _SelectModule["default"].readonly : '', " ").concat(borderColor === 'transparent' ? _SelectModule["default"].transparentContainer : '', " ").concat(iconOnHover && (isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? _SelectModule["default"].iconOnHoverStyle : ''),
|
|
706
705
|
"data-id": dataIdSlctComp,
|
|
@@ -847,7 +846,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
847
846
|
a11y: {
|
|
848
847
|
role: 'heading'
|
|
849
848
|
}
|
|
850
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"],
|
|
849
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
851
850
|
activeId: selectedId,
|
|
852
851
|
suggestions: options,
|
|
853
852
|
getRef: _this7.suggestionItemRef,
|
|
@@ -863,7 +862,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
863
862
|
role: 'option'
|
|
864
863
|
},
|
|
865
864
|
dataId: "".concat(dataId, "_Options")
|
|
866
|
-
}
|
|
865
|
+
}));
|
|
867
866
|
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
868
867
|
options: revampedGroups,
|
|
869
868
|
searchString: searchStr,
|