@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"
|
|
@@ -60,14 +60,12 @@ export const ListItem_Props = {
|
|
|
60
60
|
needMultiLineText: PropTypes.bool,
|
|
61
61
|
customClass: PropTypes.shape({
|
|
62
62
|
customListItem: PropTypes.string,
|
|
63
|
-
customTickIcon: PropTypes.string
|
|
64
|
-
customValueRightPlaceholder: PropTypes.string
|
|
63
|
+
customTickIcon: PropTypes.string
|
|
65
64
|
}),
|
|
66
65
|
customProps: PropTypes.shape({
|
|
67
66
|
ListItemProps: PropTypes.object
|
|
68
67
|
}),
|
|
69
|
-
secondaryValue: PropTypes.string
|
|
70
|
-
renderValueRightPlaceholderNode: PropTypes.func
|
|
68
|
+
secondaryValue: PropTypes.string
|
|
71
69
|
};
|
|
72
70
|
export const ListItemWithAvatar_Props = {
|
|
73
71
|
active: PropTypes.bool,
|
|
@@ -96,7 +94,6 @@ export const ListItemWithAvatar_Props = {
|
|
|
96
94
|
title: PropTypes.string,
|
|
97
95
|
value: PropTypes.string,
|
|
98
96
|
secondaryValue: PropTypes.string,
|
|
99
|
-
renderValueRightPlaceholderNode: PropTypes.func,
|
|
100
97
|
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
101
98
|
a11y: PropTypes.shape({
|
|
102
99
|
role: PropTypes.string,
|
|
@@ -106,8 +103,7 @@ export const ListItemWithAvatar_Props = {
|
|
|
106
103
|
customClass: PropTypes.shape({
|
|
107
104
|
customListItem: PropTypes.string,
|
|
108
105
|
customAvatar: PropTypes.string,
|
|
109
|
-
customAvatarTeam: PropTypes.string
|
|
110
|
-
customValueRightPlaceholder: PropTypes.string
|
|
106
|
+
customAvatarTeam: PropTypes.string
|
|
111
107
|
}),
|
|
112
108
|
needMultiLineText: PropTypes.bool,
|
|
113
109
|
customProps: PropTypes.shape({
|
|
@@ -136,7 +132,6 @@ export const ListItemWithCheckBox_Props = {
|
|
|
136
132
|
title: PropTypes.string,
|
|
137
133
|
value: PropTypes.string,
|
|
138
134
|
secondaryValue: PropTypes.string,
|
|
139
|
-
renderValueRightPlaceholderNode: PropTypes.func,
|
|
140
135
|
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
141
136
|
lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
142
137
|
a11y: PropTypes.shape({
|
|
@@ -147,8 +142,7 @@ export const ListItemWithCheckBox_Props = {
|
|
|
147
142
|
customClass: PropTypes.shape({
|
|
148
143
|
customListItem: PropTypes.string,
|
|
149
144
|
customCheckBox: PropTypes.string,
|
|
150
|
-
customLabel: PropTypes.string
|
|
151
|
-
customValueRightPlaceholder: PropTypes.string
|
|
145
|
+
customLabel: PropTypes.string
|
|
152
146
|
}),
|
|
153
147
|
customProps: PropTypes.object
|
|
154
148
|
};
|
|
@@ -175,7 +169,6 @@ export const ListItemWithIcon_Props = {
|
|
|
175
169
|
title: PropTypes.string,
|
|
176
170
|
value: PropTypes.string,
|
|
177
171
|
secondaryValue: PropTypes.string,
|
|
178
|
-
renderValueRightPlaceholderNode: PropTypes.func,
|
|
179
172
|
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
180
173
|
lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
181
174
|
a11y: PropTypes.shape({
|
|
@@ -185,7 +178,6 @@ export const ListItemWithIcon_Props = {
|
|
|
185
178
|
}),
|
|
186
179
|
needMultiLineText: PropTypes.bool,
|
|
187
180
|
customClass: PropTypes.string,
|
|
188
|
-
customValueRightPlaceholderClass: PropTypes.string,
|
|
189
181
|
customProps: PropTypes.shape({
|
|
190
182
|
ListItemProps: PropTypes.object
|
|
191
183
|
}),
|
|
@@ -212,7 +204,6 @@ export const ListItemWithRadio_Props = {
|
|
|
212
204
|
title: PropTypes.string,
|
|
213
205
|
value: PropTypes.string,
|
|
214
206
|
secondaryValue: PropTypes.string,
|
|
215
|
-
renderValueRightPlaceholderNode: PropTypes.func,
|
|
216
207
|
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
217
208
|
lhsJustifyContent: PropTypes.oneOf(['start', 'center', 'end']),
|
|
218
209
|
a11y: PropTypes.shape({
|
|
@@ -223,8 +214,7 @@ export const ListItemWithRadio_Props = {
|
|
|
223
214
|
customClass: PropTypes.shape({
|
|
224
215
|
customListItem: PropTypes.string,
|
|
225
216
|
customRadio: PropTypes.string,
|
|
226
|
-
customRadioWrap: PropTypes.string
|
|
227
|
-
customValueRightPlaceholder: PropTypes.string
|
|
217
|
+
customRadioWrap: PropTypes.string
|
|
228
218
|
}),
|
|
229
219
|
customProps: PropTypes.object
|
|
230
220
|
};
|
|
@@ -225,7 +225,6 @@ export class MultiSelectComponent extends React.Component {
|
|
|
225
225
|
options,
|
|
226
226
|
valueField,
|
|
227
227
|
textField,
|
|
228
|
-
secondaryField,
|
|
229
228
|
prefixText,
|
|
230
229
|
disabledOptions,
|
|
231
230
|
allowValueFallback,
|
|
@@ -239,7 +238,6 @@ export class MultiSelectComponent extends React.Component {
|
|
|
239
238
|
optionType: 'default',
|
|
240
239
|
disabledOptions,
|
|
241
240
|
allowValueFallback,
|
|
242
|
-
secondaryField,
|
|
243
241
|
searchFields
|
|
244
242
|
});
|
|
245
243
|
}
|
|
@@ -1063,7 +1061,6 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1063
1061
|
isLoading,
|
|
1064
1062
|
selectAllText,
|
|
1065
1063
|
needSelectAll,
|
|
1066
|
-
customProps,
|
|
1067
1064
|
isVirtualizerEnabled,
|
|
1068
1065
|
limit
|
|
1069
1066
|
} = this.props;
|
|
@@ -1088,9 +1085,6 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1088
1085
|
noMoreText: i18nKeys.noMoreText || noMoreOptionsMessage
|
|
1089
1086
|
});
|
|
1090
1087
|
let isModel = isMobilePopover(needResponsive);
|
|
1091
|
-
let {
|
|
1092
|
-
SuggestionsProps
|
|
1093
|
-
} = customProps;
|
|
1094
1088
|
return /*#__PURE__*/React.createElement("div", {
|
|
1095
1089
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
1096
1090
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
@@ -1166,8 +1160,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1166
1160
|
role: 'option'
|
|
1167
1161
|
},
|
|
1168
1162
|
limit: limit,
|
|
1169
|
-
limitReachedMessage: limitReachedMessage
|
|
1170
|
-
...SuggestionsProps
|
|
1163
|
+
limitReachedMessage: limitReachedMessage
|
|
1171
1164
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1172
1165
|
isLoading: isFetchingOptions,
|
|
1173
1166
|
options: options,
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -622,8 +622,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
622
622
|
let ariaErrorId = this.getNextAriaId();
|
|
623
623
|
let {
|
|
624
624
|
TextBoxIconProps = {},
|
|
625
|
-
TextBoxProps = {}
|
|
626
|
-
SuggestionsProps
|
|
625
|
+
TextBoxProps = {}
|
|
627
626
|
} = customProps;
|
|
628
627
|
return /*#__PURE__*/React.createElement("div", {
|
|
629
628
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
@@ -792,8 +791,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
792
791
|
ariaParentRole: 'listbox',
|
|
793
792
|
role: 'option'
|
|
794
793
|
},
|
|
795
|
-
dataId: `${dataId}_Options
|
|
796
|
-
...SuggestionsProps
|
|
794
|
+
dataId: `${dataId}_Options`
|
|
797
795
|
}));
|
|
798
796
|
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
799
797
|
options: revampedGroups,
|
package/es/Select/Select.js
CHANGED
|
@@ -265,9 +265,7 @@ export class SelectComponent extends Component {
|
|
|
265
265
|
valueField,
|
|
266
266
|
textField,
|
|
267
267
|
allowValueFallback,
|
|
268
|
-
customProps = dummyObj
|
|
269
|
-
searchFields,
|
|
270
|
-
secondaryField
|
|
268
|
+
customProps = dummyObj
|
|
271
269
|
} = props;
|
|
272
270
|
let {
|
|
273
271
|
listItemProps = dummyObj
|
|
@@ -276,8 +274,6 @@ export class SelectComponent extends Component {
|
|
|
276
274
|
options,
|
|
277
275
|
valueField,
|
|
278
276
|
textField,
|
|
279
|
-
secondaryField,
|
|
280
|
-
searchFields,
|
|
281
277
|
listItemProps,
|
|
282
278
|
allowValueFallback
|
|
283
279
|
});
|
|
@@ -447,7 +443,6 @@ export class SelectComponent extends Component {
|
|
|
447
443
|
handleFilterSuggestions() {
|
|
448
444
|
let {
|
|
449
445
|
needLocalSearch,
|
|
450
|
-
searchFields,
|
|
451
446
|
excludeOptions = dummyArray // needSearch
|
|
452
447
|
|
|
453
448
|
} = this.props;
|
|
@@ -467,7 +462,6 @@ export class SelectComponent extends Component {
|
|
|
467
462
|
options,
|
|
468
463
|
selectedOptions: excludeOptions,
|
|
469
464
|
searchStr,
|
|
470
|
-
searchFields,
|
|
471
465
|
needSearch: needLocalSearch
|
|
472
466
|
});
|
|
473
467
|
this.optionsOrder = suggestionIds;
|