@hero-design/rn 8.98.0 → 8.99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/babel.config.js +4 -1
  4. package/es/index.js +50 -69
  5. package/lib/index.js +50 -69
  6. package/package.json +39 -19
  7. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +0 -3
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  9. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +87 -87
  10. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  11. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -4
  12. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  13. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  14. package/src/components/Radio/Radio.tsx +7 -1
  15. package/src/components/Radio/RadioGroup.tsx +1 -0
  16. package/src/components/Radio/__tests__/Radio.spec.tsx +15 -0
  17. package/src/components/Radio/__tests__/RadioGroup.spec.tsx +27 -0
  18. package/src/components/Radio/types.ts +3 -1
  19. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1472 -1496
  20. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +2992 -3040
  21. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1644 -1672
  22. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2512 -2554
  23. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +6 -6
  24. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -24
  25. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  26. package/src/components/Tabs/ScrollableTabs.tsx +0 -1
  27. package/src/components/Tabs/StyledScrollableTabs.tsx +8 -2
  28. package/src/components/Tabs/index.tsx +0 -1
  29. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +2 -2
  30. package/stats/8.98.1/rn-stats.html +4844 -0
  31. package/stats/8.99.0/rn-stats.html +4842 -0
  32. package/testUtils/setup.tsx +0 -1
  33. package/types/components/Accordion/StyledAccordion.d.ts +3 -5
  34. package/types/components/Alert/StyledAlert.d.ts +3 -5
  35. package/types/components/Attachment/StyledAttachment.d.ts +3 -5
  36. package/types/components/Avatar/StyledAvatar.d.ts +3 -5
  37. package/types/components/BottomSheet/StyledBottomSheet.d.ts +3 -5
  38. package/types/components/Button/StyledButton.d.ts +3 -5
  39. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -5
  40. package/types/components/Calendar/StyledCalendar.d.ts +3 -5
  41. package/types/components/Checkbox/StyledCheckbox.d.ts +3 -5
  42. package/types/components/Chip/StyledChip.d.ts +2 -5
  43. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +2 -5
  44. package/types/components/FAB/StyledFAB.d.ts +2 -2
  45. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +2 -2
  46. package/types/components/List/StyledBasicListItem.d.ts +3 -5
  47. package/types/components/List/StyledListItem.d.ts +3 -5
  48. package/types/components/Radio/Radio.d.ts +6 -1
  49. package/types/components/Radio/types.d.ts +3 -1
  50. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -5
  51. package/types/components/Swipeable/StyledSwipeable.d.ts +2 -5
  52. package/types/components/Toast/StyledToast.d.ts +3 -5
  53. package/types/components/Toolbar/StyledToolbar.d.ts +3 -5
@@ -153,191 +153,189 @@ exports[`OptionList render isLoading correctly 1`] = `
153
153
  onLayout={[Function]}
154
154
  style={null}
155
155
  >
156
- <View>
157
- <View
158
- highlighted={false}
159
- section={
160
- {
161
- "category": "A",
162
- "data": [
163
- {
164
- "text": "A1",
165
- "value": "a1",
166
- },
167
- ],
168
- }
169
- }
170
- style={
171
- [
156
+ <View
157
+ highlighted={false}
158
+ section={
159
+ {
160
+ "category": "A",
161
+ "data": [
172
162
  {
173
- "marginTop": 12,
163
+ "text": "A1",
164
+ "value": "a1",
174
165
  },
175
- undefined,
176
- ]
166
+ ],
177
167
  }
178
- trailingItem={
168
+ }
169
+ style={
170
+ [
179
171
  {
180
- "text": "A1",
181
- "value": "a1",
182
- }
172
+ "marginTop": 12,
173
+ },
174
+ undefined,
175
+ ]
176
+ }
177
+ trailingItem={
178
+ {
179
+ "text": "A1",
180
+ "value": "a1",
183
181
  }
184
- trailingSection={
185
- {
186
- "category": "B",
187
- "data": [
188
- {
189
- "text": "B1",
190
- "value": "b1",
191
- },
192
- {
193
- "text": "B2",
194
- "value": "b2",
195
- },
196
- ],
197
- }
182
+ }
183
+ trailingSection={
184
+ {
185
+ "category": "B",
186
+ "data": [
187
+ {
188
+ "text": "B1",
189
+ "value": "b1",
190
+ },
191
+ {
192
+ "text": "B2",
193
+ "value": "b2",
194
+ },
195
+ ],
198
196
  }
199
- />
200
- <View
201
- accessibilityState={
202
- {
203
- "disabled": false,
204
- }
197
+ }
198
+ />
199
+ <View
200
+ accessibilityState={
201
+ {
202
+ "disabled": false,
205
203
  }
206
- accessibilityValue={
207
- {
208
- "max": undefined,
209
- "min": undefined,
210
- "now": undefined,
211
- "text": undefined,
212
- }
204
+ }
205
+ accessibilityValue={
206
+ {
207
+ "max": undefined,
208
+ "min": undefined,
209
+ "now": undefined,
210
+ "text": undefined,
213
211
  }
214
- accessible={true}
215
- focusable={true}
216
- onClick={[Function]}
217
- onResponderGrant={[Function]}
218
- onResponderMove={[Function]}
219
- onResponderRelease={[Function]}
220
- onResponderTerminate={[Function]}
221
- onResponderTerminationRequest={[Function]}
222
- onStartShouldSetResponder={[Function]}
212
+ }
213
+ accessible={true}
214
+ focusable={true}
215
+ onClick={[Function]}
216
+ onResponderGrant={[Function]}
217
+ onResponderMove={[Function]}
218
+ onResponderRelease={[Function]}
219
+ onResponderTerminate={[Function]}
220
+ onResponderTerminationRequest={[Function]}
221
+ onStartShouldSetResponder={[Function]}
222
+ style={
223
+ [
224
+ {
225
+ "alignItems": "center",
226
+ "backgroundColor": undefined,
227
+ "borderRadius": 4,
228
+ "flexDirection": "row",
229
+ "opacity": 1,
230
+ "padding": 16,
231
+ },
232
+ undefined,
233
+ ]
234
+ }
235
+ >
236
+ <View
223
237
  style={
224
238
  [
225
239
  {
226
- "alignItems": "center",
227
- "backgroundColor": undefined,
228
- "borderRadius": 4,
229
- "flexDirection": "row",
230
- "opacity": 1,
231
- "padding": 16,
240
+ "flex": 1,
232
241
  },
233
242
  undefined,
234
243
  ]
235
244
  }
236
245
  >
237
- <View
238
- style={
239
- [
240
- {
241
- "flex": 1,
242
- },
243
- undefined,
244
- ]
245
- }
246
- >
247
- <Text
248
- allowFontScaling={false}
249
- style={
250
- [
251
- {
252
- "color": "#001f23",
253
- "fontFamily": "BeVietnamPro-Regular",
254
- "fontSize": 16,
255
- "letterSpacing": 0.48,
256
- "lineHeight": 24,
257
- },
258
- undefined,
259
- ]
260
- }
261
- themeIntent="body"
262
- themeTypeface="neutral"
263
- themeVariant="regular"
264
- >
265
- A1
266
- </Text>
267
- </View>
268
- <View
246
+ <Text
247
+ allowFontScaling={false}
269
248
  style={
270
249
  [
271
250
  {
272
- "marginLeft": 8,
251
+ "color": "#001f23",
252
+ "fontFamily": "BeVietnamPro-Regular",
253
+ "fontSize": 16,
254
+ "letterSpacing": 0.48,
255
+ "lineHeight": 24,
273
256
  },
274
257
  undefined,
275
258
  ]
276
259
  }
260
+ themeIntent="body"
261
+ themeTypeface="neutral"
262
+ themeVariant="regular"
277
263
  >
278
- <HeroIcon
279
- name="checkmark"
280
- style={
281
- [
282
- {
283
- "color": "#401960",
284
- "fontSize": 20,
285
- },
286
- {
287
- "marginRight": 12,
288
- },
289
- ]
290
- }
291
- testID="selected-icon-A1"
292
- themeIntent="primary"
293
- themeSize="small"
294
- />
295
- </View>
264
+ A1
265
+ </Text>
296
266
  </View>
297
267
  <View
298
- highlighted={false}
299
- leadingItem={
300
- {
301
- "text": "A1",
302
- "value": "a1",
303
- }
304
- }
305
- section={
306
- {
307
- "category": "A",
308
- "data": [
309
- {
310
- "text": "A1",
311
- "value": "a1",
312
- },
313
- ],
314
- }
315
- }
316
268
  style={
317
269
  [
318
270
  {
319
- "marginTop": 12,
271
+ "marginLeft": 8,
320
272
  },
321
273
  undefined,
322
274
  ]
323
275
  }
324
- trailingSection={
325
- {
326
- "category": "B",
327
- "data": [
276
+ >
277
+ <HeroIcon
278
+ name="checkmark"
279
+ style={
280
+ [
328
281
  {
329
- "text": "B1",
330
- "value": "b1",
282
+ "color": "#401960",
283
+ "fontSize": 20,
331
284
  },
332
285
  {
333
- "text": "B2",
334
- "value": "b2",
286
+ "marginRight": 12,
335
287
  },
336
- ],
288
+ ]
337
289
  }
338
- }
339
- />
290
+ testID="selected-icon-A1"
291
+ themeIntent="primary"
292
+ themeSize="small"
293
+ />
294
+ </View>
340
295
  </View>
296
+ <View
297
+ highlighted={false}
298
+ leadingItem={
299
+ {
300
+ "text": "A1",
301
+ "value": "a1",
302
+ }
303
+ }
304
+ section={
305
+ {
306
+ "category": "A",
307
+ "data": [
308
+ {
309
+ "text": "A1",
310
+ "value": "a1",
311
+ },
312
+ ],
313
+ }
314
+ }
315
+ style={
316
+ [
317
+ {
318
+ "marginTop": 12,
319
+ },
320
+ undefined,
321
+ ]
322
+ }
323
+ trailingSection={
324
+ {
325
+ "category": "B",
326
+ "data": [
327
+ {
328
+ "text": "B1",
329
+ "value": "b1",
330
+ },
331
+ {
332
+ "text": "B2",
333
+ "value": "b2",
334
+ },
335
+ ],
336
+ }
337
+ }
338
+ />
341
339
  </View>
342
340
  <View
343
341
  onFocusCapture={[Function]}
@@ -419,289 +417,285 @@ exports[`OptionList render isLoading correctly 1`] = `
419
417
  onLayout={[Function]}
420
418
  style={null}
421
419
  >
422
- <View>
423
- <View
424
- highlighted={false}
425
- leadingSection={
426
- {
427
- "category": "A",
428
- "data": [
429
- {
430
- "text": "A1",
431
- "value": "a1",
432
- },
433
- ],
434
- }
435
- }
436
- section={
437
- {
438
- "category": "B",
439
- "data": [
440
- {
441
- "text": "B1",
442
- "value": "b1",
443
- },
444
- {
445
- "text": "B2",
446
- "value": "b2",
447
- },
448
- ],
449
- }
420
+ <View
421
+ highlighted={false}
422
+ leadingSection={
423
+ {
424
+ "category": "A",
425
+ "data": [
426
+ {
427
+ "text": "A1",
428
+ "value": "a1",
429
+ },
430
+ ],
450
431
  }
451
- style={
452
- [
432
+ }
433
+ section={
434
+ {
435
+ "category": "B",
436
+ "data": [
453
437
  {
454
- "marginTop": 12,
438
+ "text": "B1",
439
+ "value": "b1",
455
440
  },
456
- undefined,
457
- ]
441
+ {
442
+ "text": "B2",
443
+ "value": "b2",
444
+ },
445
+ ],
458
446
  }
459
- trailingItem={
447
+ }
448
+ style={
449
+ [
460
450
  {
461
- "text": "B1",
462
- "value": "b1",
463
- }
451
+ "marginTop": 12,
452
+ },
453
+ undefined,
454
+ ]
455
+ }
456
+ trailingItem={
457
+ {
458
+ "text": "B1",
459
+ "value": "b1",
464
460
  }
465
- />
466
- <View
467
- accessibilityState={
468
- {
469
- "disabled": false,
470
- }
461
+ }
462
+ />
463
+ <View
464
+ accessibilityState={
465
+ {
466
+ "disabled": false,
471
467
  }
472
- accessibilityValue={
473
- {
474
- "max": undefined,
475
- "min": undefined,
476
- "now": undefined,
477
- "text": undefined,
478
- }
468
+ }
469
+ accessibilityValue={
470
+ {
471
+ "max": undefined,
472
+ "min": undefined,
473
+ "now": undefined,
474
+ "text": undefined,
479
475
  }
480
- accessible={true}
481
- focusable={true}
482
- onClick={[Function]}
483
- onResponderGrant={[Function]}
484
- onResponderMove={[Function]}
485
- onResponderRelease={[Function]}
486
- onResponderTerminate={[Function]}
487
- onResponderTerminationRequest={[Function]}
488
- onStartShouldSetResponder={[Function]}
476
+ }
477
+ accessible={true}
478
+ focusable={true}
479
+ onClick={[Function]}
480
+ onResponderGrant={[Function]}
481
+ onResponderMove={[Function]}
482
+ onResponderRelease={[Function]}
483
+ onResponderTerminate={[Function]}
484
+ onResponderTerminationRequest={[Function]}
485
+ onStartShouldSetResponder={[Function]}
486
+ style={
487
+ [
488
+ {
489
+ "alignItems": "center",
490
+ "backgroundColor": "#ffffff",
491
+ "borderRadius": 4,
492
+ "flexDirection": "row",
493
+ "opacity": 1,
494
+ "padding": 16,
495
+ },
496
+ undefined,
497
+ ]
498
+ }
499
+ >
500
+ <View
489
501
  style={
490
502
  [
491
503
  {
492
- "alignItems": "center",
493
- "backgroundColor": "#ffffff",
494
- "borderRadius": 4,
495
- "flexDirection": "row",
496
- "opacity": 1,
497
- "padding": 16,
504
+ "flex": 1,
498
505
  },
499
506
  undefined,
500
507
  ]
501
508
  }
502
509
  >
503
- <View
510
+ <Text
511
+ allowFontScaling={false}
504
512
  style={
505
513
  [
506
514
  {
507
- "flex": 1,
515
+ "color": "#001f23",
516
+ "fontFamily": "BeVietnamPro-Regular",
517
+ "fontSize": 16,
518
+ "letterSpacing": 0.48,
519
+ "lineHeight": 24,
508
520
  },
509
521
  undefined,
510
522
  ]
511
523
  }
524
+ themeIntent="body"
525
+ themeTypeface="neutral"
526
+ themeVariant="regular"
512
527
  >
513
- <Text
514
- allowFontScaling={false}
515
- style={
516
- [
517
- {
518
- "color": "#001f23",
519
- "fontFamily": "BeVietnamPro-Regular",
520
- "fontSize": 16,
521
- "letterSpacing": 0.48,
522
- "lineHeight": 24,
523
- },
524
- undefined,
525
- ]
526
- }
527
- themeIntent="body"
528
- themeTypeface="neutral"
529
- themeVariant="regular"
530
- >
531
- B1
532
- </Text>
533
- </View>
528
+ B1
529
+ </Text>
534
530
  </View>
535
- <View
536
- highlighted={false}
537
- leadingItem={
538
- {
539
- "text": "B1",
540
- "value": "b1",
541
- }
542
- }
543
- leadingSection={
544
- {
545
- "category": "A",
546
- "data": [
547
- {
548
- "text": "A1",
549
- "value": "a1",
550
- },
551
- ],
552
- }
531
+ </View>
532
+ <View
533
+ highlighted={false}
534
+ leadingItem={
535
+ {
536
+ "text": "B1",
537
+ "value": "b1",
553
538
  }
554
- section={
555
- {
556
- "category": "B",
557
- "data": [
558
- {
559
- "text": "B1",
560
- "value": "b1",
561
- },
562
- {
563
- "text": "B2",
564
- "value": "b2",
565
- },
566
- ],
567
- }
539
+ }
540
+ leadingSection={
541
+ {
542
+ "category": "A",
543
+ "data": [
544
+ {
545
+ "text": "A1",
546
+ "value": "a1",
547
+ },
548
+ ],
568
549
  }
569
- style={
570
- [
550
+ }
551
+ section={
552
+ {
553
+ "category": "B",
554
+ "data": [
571
555
  {
572
- "marginTop": 4,
556
+ "text": "B1",
557
+ "value": "b1",
573
558
  },
574
- undefined,
575
- ]
559
+ {
560
+ "text": "B2",
561
+ "value": "b2",
562
+ },
563
+ ],
576
564
  }
577
- trailingItem={
565
+ }
566
+ style={
567
+ [
578
568
  {
579
- "text": "B2",
580
- "value": "b2",
581
- }
569
+ "marginTop": 4,
570
+ },
571
+ undefined,
572
+ ]
573
+ }
574
+ trailingItem={
575
+ {
576
+ "text": "B2",
577
+ "value": "b2",
582
578
  }
583
- />
584
- </View>
579
+ }
580
+ />
585
581
  </View>
586
582
  <View
587
583
  onFocusCapture={[Function]}
588
584
  onLayout={[Function]}
589
585
  style={null}
590
586
  >
591
- <View>
592
- <View
593
- accessibilityState={
594
- {
595
- "disabled": false,
596
- }
587
+ <View
588
+ accessibilityState={
589
+ {
590
+ "disabled": false,
597
591
  }
598
- accessibilityValue={
599
- {
600
- "max": undefined,
601
- "min": undefined,
602
- "now": undefined,
603
- "text": undefined,
604
- }
592
+ }
593
+ accessibilityValue={
594
+ {
595
+ "max": undefined,
596
+ "min": undefined,
597
+ "now": undefined,
598
+ "text": undefined,
605
599
  }
606
- accessible={true}
607
- focusable={true}
608
- onClick={[Function]}
609
- onResponderGrant={[Function]}
610
- onResponderMove={[Function]}
611
- onResponderRelease={[Function]}
612
- onResponderTerminate={[Function]}
613
- onResponderTerminationRequest={[Function]}
614
- onStartShouldSetResponder={[Function]}
600
+ }
601
+ accessible={true}
602
+ focusable={true}
603
+ onClick={[Function]}
604
+ onResponderGrant={[Function]}
605
+ onResponderMove={[Function]}
606
+ onResponderRelease={[Function]}
607
+ onResponderTerminate={[Function]}
608
+ onResponderTerminationRequest={[Function]}
609
+ onStartShouldSetResponder={[Function]}
610
+ style={
611
+ [
612
+ {
613
+ "alignItems": "center",
614
+ "backgroundColor": "#ffffff",
615
+ "borderRadius": 4,
616
+ "flexDirection": "row",
617
+ "opacity": 1,
618
+ "padding": 16,
619
+ },
620
+ undefined,
621
+ ]
622
+ }
623
+ >
624
+ <View
615
625
  style={
616
626
  [
617
627
  {
618
- "alignItems": "center",
619
- "backgroundColor": "#ffffff",
620
- "borderRadius": 4,
621
- "flexDirection": "row",
622
- "opacity": 1,
623
- "padding": 16,
628
+ "flex": 1,
624
629
  },
625
630
  undefined,
626
631
  ]
627
632
  }
628
633
  >
629
- <View
634
+ <Text
635
+ allowFontScaling={false}
630
636
  style={
631
637
  [
632
638
  {
633
- "flex": 1,
639
+ "color": "#001f23",
640
+ "fontFamily": "BeVietnamPro-Regular",
641
+ "fontSize": 16,
642
+ "letterSpacing": 0.48,
643
+ "lineHeight": 24,
634
644
  },
635
645
  undefined,
636
646
  ]
637
647
  }
648
+ themeIntent="body"
649
+ themeTypeface="neutral"
650
+ themeVariant="regular"
638
651
  >
639
- <Text
640
- allowFontScaling={false}
641
- style={
642
- [
643
- {
644
- "color": "#001f23",
645
- "fontFamily": "BeVietnamPro-Regular",
646
- "fontSize": 16,
647
- "letterSpacing": 0.48,
648
- "lineHeight": 24,
649
- },
650
- undefined,
651
- ]
652
- }
653
- themeIntent="body"
654
- themeTypeface="neutral"
655
- themeVariant="regular"
656
- >
657
- B2
658
- </Text>
659
- </View>
652
+ B2
653
+ </Text>
660
654
  </View>
661
- <View
662
- highlighted={false}
663
- leadingItem={
664
- {
665
- "text": "B2",
666
- "value": "b2",
667
- }
668
- }
669
- leadingSection={
670
- {
671
- "category": "A",
672
- "data": [
673
- {
674
- "text": "A1",
675
- "value": "a1",
676
- },
677
- ],
678
- }
655
+ </View>
656
+ <View
657
+ highlighted={false}
658
+ leadingItem={
659
+ {
660
+ "text": "B2",
661
+ "value": "b2",
679
662
  }
680
- section={
681
- {
682
- "category": "B",
683
- "data": [
684
- {
685
- "text": "B1",
686
- "value": "b1",
687
- },
688
- {
689
- "text": "B2",
690
- "value": "b2",
691
- },
692
- ],
693
- }
663
+ }
664
+ leadingSection={
665
+ {
666
+ "category": "A",
667
+ "data": [
668
+ {
669
+ "text": "A1",
670
+ "value": "a1",
671
+ },
672
+ ],
694
673
  }
695
- style={
696
- [
674
+ }
675
+ section={
676
+ {
677
+ "category": "B",
678
+ "data": [
697
679
  {
698
- "marginTop": 12,
680
+ "text": "B1",
681
+ "value": "b1",
699
682
  },
700
- undefined,
701
- ]
683
+ {
684
+ "text": "B2",
685
+ "value": "b2",
686
+ },
687
+ ],
702
688
  }
703
- />
704
- </View>
689
+ }
690
+ style={
691
+ [
692
+ {
693
+ "marginTop": 12,
694
+ },
695
+ undefined,
696
+ ]
697
+ }
698
+ />
705
699
  </View>
706
700
  <View
707
701
  onFocusCapture={[Function]}
@@ -760,7 +754,7 @@ exports[`OptionList render isLoading correctly 1`] = `
760
754
  "flexDirection": "row",
761
755
  "marginBottom": 8,
762
756
  },
763
- {},
757
+ undefined,
764
758
  ]
765
759
  }
766
760
  themePosition="top"
@@ -777,7 +771,7 @@ exports[`OptionList render isLoading correctly 1`] = `
777
771
  "opacity": 0.9,
778
772
  "width": 16,
779
773
  },
780
- {},
774
+ undefined,
781
775
  ]
782
776
  }
783
777
  themeIntent="primary"
@@ -796,7 +790,7 @@ exports[`OptionList render isLoading correctly 1`] = `
796
790
  "opacity": 0.675,
797
791
  "width": 16,
798
792
  },
799
- {},
793
+ undefined,
800
794
  ]
801
795
  }
802
796
  themeIntent="primary"
@@ -812,7 +806,7 @@ exports[`OptionList render isLoading correctly 1`] = `
812
806
  "flexDirection": "row",
813
807
  "marginBottom": 0,
814
808
  },
815
- {},
809
+ undefined,
816
810
  ]
817
811
  }
818
812
  themePosition="bottom"
@@ -829,7 +823,7 @@ exports[`OptionList render isLoading correctly 1`] = `
829
823
  "opacity": 0.45,
830
824
  "width": 16,
831
825
  },
832
- {},
826
+ undefined,
833
827
  ]
834
828
  }
835
829
  themeIntent="primary"
@@ -848,7 +842,7 @@ exports[`OptionList render isLoading correctly 1`] = `
848
842
  "opacity": 0.225,
849
843
  "width": 16,
850
844
  },
851
- {},
845
+ undefined,
852
846
  ]
853
847
  }
854
848
  themeIntent="primary"
@@ -1027,191 +1021,189 @@ exports[`OptionList renders correctly 1`] = `
1027
1021
  onLayout={[Function]}
1028
1022
  style={null}
1029
1023
  >
1030
- <View>
1031
- <View
1032
- highlighted={false}
1033
- section={
1034
- {
1035
- "category": "A",
1036
- "data": [
1037
- {
1038
- "text": "A1",
1039
- "value": "a1",
1040
- },
1041
- ],
1042
- }
1043
- }
1044
- style={
1045
- [
1024
+ <View
1025
+ highlighted={false}
1026
+ section={
1027
+ {
1028
+ "category": "A",
1029
+ "data": [
1046
1030
  {
1047
- "marginTop": 12,
1031
+ "text": "A1",
1032
+ "value": "a1",
1048
1033
  },
1049
- undefined,
1050
- ]
1034
+ ],
1051
1035
  }
1052
- trailingItem={
1036
+ }
1037
+ style={
1038
+ [
1053
1039
  {
1054
- "text": "A1",
1055
- "value": "a1",
1056
- }
1040
+ "marginTop": 12,
1041
+ },
1042
+ undefined,
1043
+ ]
1044
+ }
1045
+ trailingItem={
1046
+ {
1047
+ "text": "A1",
1048
+ "value": "a1",
1057
1049
  }
1058
- trailingSection={
1059
- {
1060
- "category": "B",
1061
- "data": [
1062
- {
1063
- "text": "B1",
1064
- "value": "b1",
1065
- },
1066
- {
1067
- "text": "B2",
1068
- "value": "b2",
1069
- },
1070
- ],
1071
- }
1050
+ }
1051
+ trailingSection={
1052
+ {
1053
+ "category": "B",
1054
+ "data": [
1055
+ {
1056
+ "text": "B1",
1057
+ "value": "b1",
1058
+ },
1059
+ {
1060
+ "text": "B2",
1061
+ "value": "b2",
1062
+ },
1063
+ ],
1072
1064
  }
1073
- />
1074
- <View
1075
- accessibilityState={
1076
- {
1077
- "disabled": false,
1078
- }
1065
+ }
1066
+ />
1067
+ <View
1068
+ accessibilityState={
1069
+ {
1070
+ "disabled": false,
1079
1071
  }
1080
- accessibilityValue={
1081
- {
1082
- "max": undefined,
1083
- "min": undefined,
1084
- "now": undefined,
1085
- "text": undefined,
1086
- }
1072
+ }
1073
+ accessibilityValue={
1074
+ {
1075
+ "max": undefined,
1076
+ "min": undefined,
1077
+ "now": undefined,
1078
+ "text": undefined,
1087
1079
  }
1088
- accessible={true}
1089
- focusable={true}
1090
- onClick={[Function]}
1091
- onResponderGrant={[Function]}
1092
- onResponderMove={[Function]}
1093
- onResponderRelease={[Function]}
1094
- onResponderTerminate={[Function]}
1095
- onResponderTerminationRequest={[Function]}
1096
- onStartShouldSetResponder={[Function]}
1080
+ }
1081
+ accessible={true}
1082
+ focusable={true}
1083
+ onClick={[Function]}
1084
+ onResponderGrant={[Function]}
1085
+ onResponderMove={[Function]}
1086
+ onResponderRelease={[Function]}
1087
+ onResponderTerminate={[Function]}
1088
+ onResponderTerminationRequest={[Function]}
1089
+ onStartShouldSetResponder={[Function]}
1090
+ style={
1091
+ [
1092
+ {
1093
+ "alignItems": "center",
1094
+ "backgroundColor": undefined,
1095
+ "borderRadius": 4,
1096
+ "flexDirection": "row",
1097
+ "opacity": 1,
1098
+ "padding": 16,
1099
+ },
1100
+ undefined,
1101
+ ]
1102
+ }
1103
+ >
1104
+ <View
1097
1105
  style={
1098
1106
  [
1099
1107
  {
1100
- "alignItems": "center",
1101
- "backgroundColor": undefined,
1102
- "borderRadius": 4,
1103
- "flexDirection": "row",
1104
- "opacity": 1,
1105
- "padding": 16,
1108
+ "flex": 1,
1106
1109
  },
1107
1110
  undefined,
1108
1111
  ]
1109
1112
  }
1110
1113
  >
1111
- <View
1112
- style={
1113
- [
1114
- {
1115
- "flex": 1,
1116
- },
1117
- undefined,
1118
- ]
1119
- }
1120
- >
1121
- <Text
1122
- allowFontScaling={false}
1123
- style={
1124
- [
1125
- {
1126
- "color": "#001f23",
1127
- "fontFamily": "BeVietnamPro-Regular",
1128
- "fontSize": 16,
1129
- "letterSpacing": 0.48,
1130
- "lineHeight": 24,
1131
- },
1132
- undefined,
1133
- ]
1134
- }
1135
- themeIntent="body"
1136
- themeTypeface="neutral"
1137
- themeVariant="regular"
1138
- >
1139
- A1
1140
- </Text>
1141
- </View>
1142
- <View
1114
+ <Text
1115
+ allowFontScaling={false}
1143
1116
  style={
1144
1117
  [
1145
1118
  {
1146
- "marginLeft": 8,
1119
+ "color": "#001f23",
1120
+ "fontFamily": "BeVietnamPro-Regular",
1121
+ "fontSize": 16,
1122
+ "letterSpacing": 0.48,
1123
+ "lineHeight": 24,
1147
1124
  },
1148
1125
  undefined,
1149
1126
  ]
1150
1127
  }
1128
+ themeIntent="body"
1129
+ themeTypeface="neutral"
1130
+ themeVariant="regular"
1151
1131
  >
1152
- <HeroIcon
1153
- name="checkmark"
1154
- style={
1155
- [
1156
- {
1157
- "color": "#401960",
1158
- "fontSize": 20,
1159
- },
1160
- {
1161
- "marginRight": 12,
1162
- },
1163
- ]
1164
- }
1165
- testID="selected-icon-A1"
1166
- themeIntent="primary"
1167
- themeSize="small"
1168
- />
1169
- </View>
1132
+ A1
1133
+ </Text>
1170
1134
  </View>
1171
1135
  <View
1172
- highlighted={false}
1173
- leadingItem={
1174
- {
1175
- "text": "A1",
1176
- "value": "a1",
1177
- }
1178
- }
1179
- section={
1180
- {
1181
- "category": "A",
1182
- "data": [
1183
- {
1184
- "text": "A1",
1185
- "value": "a1",
1186
- },
1187
- ],
1188
- }
1189
- }
1190
1136
  style={
1191
1137
  [
1192
1138
  {
1193
- "marginTop": 12,
1139
+ "marginLeft": 8,
1194
1140
  },
1195
1141
  undefined,
1196
1142
  ]
1197
1143
  }
1198
- trailingSection={
1199
- {
1200
- "category": "B",
1201
- "data": [
1144
+ >
1145
+ <HeroIcon
1146
+ name="checkmark"
1147
+ style={
1148
+ [
1202
1149
  {
1203
- "text": "B1",
1204
- "value": "b1",
1150
+ "color": "#401960",
1151
+ "fontSize": 20,
1205
1152
  },
1206
1153
  {
1207
- "text": "B2",
1208
- "value": "b2",
1154
+ "marginRight": 12,
1209
1155
  },
1210
- ],
1156
+ ]
1211
1157
  }
1212
- }
1213
- />
1158
+ testID="selected-icon-A1"
1159
+ themeIntent="primary"
1160
+ themeSize="small"
1161
+ />
1162
+ </View>
1214
1163
  </View>
1164
+ <View
1165
+ highlighted={false}
1166
+ leadingItem={
1167
+ {
1168
+ "text": "A1",
1169
+ "value": "a1",
1170
+ }
1171
+ }
1172
+ section={
1173
+ {
1174
+ "category": "A",
1175
+ "data": [
1176
+ {
1177
+ "text": "A1",
1178
+ "value": "a1",
1179
+ },
1180
+ ],
1181
+ }
1182
+ }
1183
+ style={
1184
+ [
1185
+ {
1186
+ "marginTop": 12,
1187
+ },
1188
+ undefined,
1189
+ ]
1190
+ }
1191
+ trailingSection={
1192
+ {
1193
+ "category": "B",
1194
+ "data": [
1195
+ {
1196
+ "text": "B1",
1197
+ "value": "b1",
1198
+ },
1199
+ {
1200
+ "text": "B2",
1201
+ "value": "b2",
1202
+ },
1203
+ ],
1204
+ }
1205
+ }
1206
+ />
1215
1207
  </View>
1216
1208
  <View
1217
1209
  onFocusCapture={[Function]}
@@ -1293,289 +1285,285 @@ exports[`OptionList renders correctly 1`] = `
1293
1285
  onLayout={[Function]}
1294
1286
  style={null}
1295
1287
  >
1296
- <View>
1297
- <View
1298
- highlighted={false}
1299
- leadingSection={
1300
- {
1301
- "category": "A",
1302
- "data": [
1303
- {
1304
- "text": "A1",
1305
- "value": "a1",
1306
- },
1307
- ],
1308
- }
1309
- }
1310
- section={
1311
- {
1312
- "category": "B",
1313
- "data": [
1314
- {
1315
- "text": "B1",
1316
- "value": "b1",
1317
- },
1318
- {
1319
- "text": "B2",
1320
- "value": "b2",
1321
- },
1322
- ],
1323
- }
1288
+ <View
1289
+ highlighted={false}
1290
+ leadingSection={
1291
+ {
1292
+ "category": "A",
1293
+ "data": [
1294
+ {
1295
+ "text": "A1",
1296
+ "value": "a1",
1297
+ },
1298
+ ],
1324
1299
  }
1325
- style={
1326
- [
1300
+ }
1301
+ section={
1302
+ {
1303
+ "category": "B",
1304
+ "data": [
1327
1305
  {
1328
- "marginTop": 12,
1306
+ "text": "B1",
1307
+ "value": "b1",
1329
1308
  },
1330
- undefined,
1331
- ]
1309
+ {
1310
+ "text": "B2",
1311
+ "value": "b2",
1312
+ },
1313
+ ],
1332
1314
  }
1333
- trailingItem={
1315
+ }
1316
+ style={
1317
+ [
1334
1318
  {
1335
- "text": "B1",
1336
- "value": "b1",
1337
- }
1319
+ "marginTop": 12,
1320
+ },
1321
+ undefined,
1322
+ ]
1323
+ }
1324
+ trailingItem={
1325
+ {
1326
+ "text": "B1",
1327
+ "value": "b1",
1338
1328
  }
1339
- />
1340
- <View
1341
- accessibilityState={
1342
- {
1343
- "disabled": false,
1344
- }
1329
+ }
1330
+ />
1331
+ <View
1332
+ accessibilityState={
1333
+ {
1334
+ "disabled": false,
1345
1335
  }
1346
- accessibilityValue={
1347
- {
1348
- "max": undefined,
1349
- "min": undefined,
1350
- "now": undefined,
1351
- "text": undefined,
1352
- }
1336
+ }
1337
+ accessibilityValue={
1338
+ {
1339
+ "max": undefined,
1340
+ "min": undefined,
1341
+ "now": undefined,
1342
+ "text": undefined,
1353
1343
  }
1354
- accessible={true}
1355
- focusable={true}
1356
- onClick={[Function]}
1357
- onResponderGrant={[Function]}
1358
- onResponderMove={[Function]}
1359
- onResponderRelease={[Function]}
1360
- onResponderTerminate={[Function]}
1361
- onResponderTerminationRequest={[Function]}
1362
- onStartShouldSetResponder={[Function]}
1344
+ }
1345
+ accessible={true}
1346
+ focusable={true}
1347
+ onClick={[Function]}
1348
+ onResponderGrant={[Function]}
1349
+ onResponderMove={[Function]}
1350
+ onResponderRelease={[Function]}
1351
+ onResponderTerminate={[Function]}
1352
+ onResponderTerminationRequest={[Function]}
1353
+ onStartShouldSetResponder={[Function]}
1354
+ style={
1355
+ [
1356
+ {
1357
+ "alignItems": "center",
1358
+ "backgroundColor": "#ffffff",
1359
+ "borderRadius": 4,
1360
+ "flexDirection": "row",
1361
+ "opacity": 1,
1362
+ "padding": 16,
1363
+ },
1364
+ undefined,
1365
+ ]
1366
+ }
1367
+ >
1368
+ <View
1363
1369
  style={
1364
1370
  [
1365
1371
  {
1366
- "alignItems": "center",
1367
- "backgroundColor": "#ffffff",
1368
- "borderRadius": 4,
1369
- "flexDirection": "row",
1370
- "opacity": 1,
1371
- "padding": 16,
1372
+ "flex": 1,
1372
1373
  },
1373
1374
  undefined,
1374
1375
  ]
1375
1376
  }
1376
1377
  >
1377
- <View
1378
+ <Text
1379
+ allowFontScaling={false}
1378
1380
  style={
1379
1381
  [
1380
1382
  {
1381
- "flex": 1,
1383
+ "color": "#001f23",
1384
+ "fontFamily": "BeVietnamPro-Regular",
1385
+ "fontSize": 16,
1386
+ "letterSpacing": 0.48,
1387
+ "lineHeight": 24,
1382
1388
  },
1383
1389
  undefined,
1384
1390
  ]
1385
1391
  }
1392
+ themeIntent="body"
1393
+ themeTypeface="neutral"
1394
+ themeVariant="regular"
1386
1395
  >
1387
- <Text
1388
- allowFontScaling={false}
1389
- style={
1390
- [
1391
- {
1392
- "color": "#001f23",
1393
- "fontFamily": "BeVietnamPro-Regular",
1394
- "fontSize": 16,
1395
- "letterSpacing": 0.48,
1396
- "lineHeight": 24,
1397
- },
1398
- undefined,
1399
- ]
1400
- }
1401
- themeIntent="body"
1402
- themeTypeface="neutral"
1403
- themeVariant="regular"
1404
- >
1405
- B1
1406
- </Text>
1407
- </View>
1396
+ B1
1397
+ </Text>
1408
1398
  </View>
1409
- <View
1410
- highlighted={false}
1411
- leadingItem={
1412
- {
1413
- "text": "B1",
1414
- "value": "b1",
1415
- }
1416
- }
1417
- leadingSection={
1418
- {
1419
- "category": "A",
1420
- "data": [
1421
- {
1422
- "text": "A1",
1423
- "value": "a1",
1424
- },
1425
- ],
1426
- }
1399
+ </View>
1400
+ <View
1401
+ highlighted={false}
1402
+ leadingItem={
1403
+ {
1404
+ "text": "B1",
1405
+ "value": "b1",
1427
1406
  }
1428
- section={
1429
- {
1430
- "category": "B",
1431
- "data": [
1432
- {
1433
- "text": "B1",
1434
- "value": "b1",
1435
- },
1436
- {
1437
- "text": "B2",
1438
- "value": "b2",
1439
- },
1440
- ],
1441
- }
1407
+ }
1408
+ leadingSection={
1409
+ {
1410
+ "category": "A",
1411
+ "data": [
1412
+ {
1413
+ "text": "A1",
1414
+ "value": "a1",
1415
+ },
1416
+ ],
1442
1417
  }
1443
- style={
1444
- [
1418
+ }
1419
+ section={
1420
+ {
1421
+ "category": "B",
1422
+ "data": [
1445
1423
  {
1446
- "marginTop": 4,
1424
+ "text": "B1",
1425
+ "value": "b1",
1447
1426
  },
1448
- undefined,
1449
- ]
1427
+ {
1428
+ "text": "B2",
1429
+ "value": "b2",
1430
+ },
1431
+ ],
1450
1432
  }
1451
- trailingItem={
1433
+ }
1434
+ style={
1435
+ [
1452
1436
  {
1453
- "text": "B2",
1454
- "value": "b2",
1455
- }
1437
+ "marginTop": 4,
1438
+ },
1439
+ undefined,
1440
+ ]
1441
+ }
1442
+ trailingItem={
1443
+ {
1444
+ "text": "B2",
1445
+ "value": "b2",
1456
1446
  }
1457
- />
1458
- </View>
1447
+ }
1448
+ />
1459
1449
  </View>
1460
1450
  <View
1461
1451
  onFocusCapture={[Function]}
1462
1452
  onLayout={[Function]}
1463
1453
  style={null}
1464
1454
  >
1465
- <View>
1466
- <View
1467
- accessibilityState={
1468
- {
1469
- "disabled": false,
1470
- }
1455
+ <View
1456
+ accessibilityState={
1457
+ {
1458
+ "disabled": false,
1471
1459
  }
1472
- accessibilityValue={
1473
- {
1474
- "max": undefined,
1475
- "min": undefined,
1476
- "now": undefined,
1477
- "text": undefined,
1478
- }
1460
+ }
1461
+ accessibilityValue={
1462
+ {
1463
+ "max": undefined,
1464
+ "min": undefined,
1465
+ "now": undefined,
1466
+ "text": undefined,
1479
1467
  }
1480
- accessible={true}
1481
- focusable={true}
1482
- onClick={[Function]}
1483
- onResponderGrant={[Function]}
1484
- onResponderMove={[Function]}
1485
- onResponderRelease={[Function]}
1486
- onResponderTerminate={[Function]}
1487
- onResponderTerminationRequest={[Function]}
1488
- onStartShouldSetResponder={[Function]}
1468
+ }
1469
+ accessible={true}
1470
+ focusable={true}
1471
+ onClick={[Function]}
1472
+ onResponderGrant={[Function]}
1473
+ onResponderMove={[Function]}
1474
+ onResponderRelease={[Function]}
1475
+ onResponderTerminate={[Function]}
1476
+ onResponderTerminationRequest={[Function]}
1477
+ onStartShouldSetResponder={[Function]}
1478
+ style={
1479
+ [
1480
+ {
1481
+ "alignItems": "center",
1482
+ "backgroundColor": "#ffffff",
1483
+ "borderRadius": 4,
1484
+ "flexDirection": "row",
1485
+ "opacity": 1,
1486
+ "padding": 16,
1487
+ },
1488
+ undefined,
1489
+ ]
1490
+ }
1491
+ >
1492
+ <View
1489
1493
  style={
1490
1494
  [
1491
1495
  {
1492
- "alignItems": "center",
1493
- "backgroundColor": "#ffffff",
1494
- "borderRadius": 4,
1495
- "flexDirection": "row",
1496
- "opacity": 1,
1497
- "padding": 16,
1496
+ "flex": 1,
1498
1497
  },
1499
1498
  undefined,
1500
1499
  ]
1501
1500
  }
1502
1501
  >
1503
- <View
1502
+ <Text
1503
+ allowFontScaling={false}
1504
1504
  style={
1505
1505
  [
1506
1506
  {
1507
- "flex": 1,
1507
+ "color": "#001f23",
1508
+ "fontFamily": "BeVietnamPro-Regular",
1509
+ "fontSize": 16,
1510
+ "letterSpacing": 0.48,
1511
+ "lineHeight": 24,
1508
1512
  },
1509
1513
  undefined,
1510
1514
  ]
1511
1515
  }
1516
+ themeIntent="body"
1517
+ themeTypeface="neutral"
1518
+ themeVariant="regular"
1512
1519
  >
1513
- <Text
1514
- allowFontScaling={false}
1515
- style={
1516
- [
1517
- {
1518
- "color": "#001f23",
1519
- "fontFamily": "BeVietnamPro-Regular",
1520
- "fontSize": 16,
1521
- "letterSpacing": 0.48,
1522
- "lineHeight": 24,
1523
- },
1524
- undefined,
1525
- ]
1526
- }
1527
- themeIntent="body"
1528
- themeTypeface="neutral"
1529
- themeVariant="regular"
1530
- >
1531
- B2
1532
- </Text>
1533
- </View>
1520
+ B2
1521
+ </Text>
1534
1522
  </View>
1535
- <View
1536
- highlighted={false}
1537
- leadingItem={
1538
- {
1539
- "text": "B2",
1540
- "value": "b2",
1541
- }
1542
- }
1543
- leadingSection={
1544
- {
1545
- "category": "A",
1546
- "data": [
1547
- {
1548
- "text": "A1",
1549
- "value": "a1",
1550
- },
1551
- ],
1552
- }
1523
+ </View>
1524
+ <View
1525
+ highlighted={false}
1526
+ leadingItem={
1527
+ {
1528
+ "text": "B2",
1529
+ "value": "b2",
1553
1530
  }
1554
- section={
1555
- {
1556
- "category": "B",
1557
- "data": [
1558
- {
1559
- "text": "B1",
1560
- "value": "b1",
1561
- },
1562
- {
1563
- "text": "B2",
1564
- "value": "b2",
1565
- },
1566
- ],
1567
- }
1531
+ }
1532
+ leadingSection={
1533
+ {
1534
+ "category": "A",
1535
+ "data": [
1536
+ {
1537
+ "text": "A1",
1538
+ "value": "a1",
1539
+ },
1540
+ ],
1568
1541
  }
1569
- style={
1570
- [
1542
+ }
1543
+ section={
1544
+ {
1545
+ "category": "B",
1546
+ "data": [
1571
1547
  {
1572
- "marginTop": 12,
1548
+ "text": "B1",
1549
+ "value": "b1",
1573
1550
  },
1574
- undefined,
1575
- ]
1551
+ {
1552
+ "text": "B2",
1553
+ "value": "b2",
1554
+ },
1555
+ ],
1576
1556
  }
1577
- />
1578
- </View>
1557
+ }
1558
+ style={
1559
+ [
1560
+ {
1561
+ "marginTop": 12,
1562
+ },
1563
+ undefined,
1564
+ ]
1565
+ }
1566
+ />
1579
1567
  </View>
1580
1568
  <View
1581
1569
  onFocusCapture={[Function]}
@@ -1748,191 +1736,189 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
1748
1736
  onLayout={[Function]}
1749
1737
  style={null}
1750
1738
  >
1751
- <View>
1752
- <View
1753
- highlighted={false}
1754
- section={
1755
- {
1756
- "category": "A",
1757
- "data": [
1758
- {
1759
- "text": "A1",
1760
- "value": "a1",
1761
- },
1762
- ],
1763
- }
1764
- }
1765
- style={
1766
- [
1739
+ <View
1740
+ highlighted={false}
1741
+ section={
1742
+ {
1743
+ "category": "A",
1744
+ "data": [
1767
1745
  {
1768
- "marginTop": 12,
1746
+ "text": "A1",
1747
+ "value": "a1",
1769
1748
  },
1770
- undefined,
1771
- ]
1749
+ ],
1772
1750
  }
1773
- trailingItem={
1751
+ }
1752
+ style={
1753
+ [
1774
1754
  {
1775
- "text": "A1",
1776
- "value": "a1",
1777
- }
1755
+ "marginTop": 12,
1756
+ },
1757
+ undefined,
1758
+ ]
1759
+ }
1760
+ trailingItem={
1761
+ {
1762
+ "text": "A1",
1763
+ "value": "a1",
1778
1764
  }
1779
- trailingSection={
1780
- {
1781
- "category": "B",
1782
- "data": [
1783
- {
1784
- "text": "B1",
1785
- "value": "b1",
1786
- },
1787
- {
1788
- "text": "B2",
1789
- "value": "b2",
1790
- },
1791
- ],
1792
- }
1765
+ }
1766
+ trailingSection={
1767
+ {
1768
+ "category": "B",
1769
+ "data": [
1770
+ {
1771
+ "text": "B1",
1772
+ "value": "b1",
1773
+ },
1774
+ {
1775
+ "text": "B2",
1776
+ "value": "b2",
1777
+ },
1778
+ ],
1793
1779
  }
1794
- />
1795
- <View
1796
- accessibilityState={
1797
- {
1798
- "disabled": false,
1799
- }
1780
+ }
1781
+ />
1782
+ <View
1783
+ accessibilityState={
1784
+ {
1785
+ "disabled": false,
1800
1786
  }
1801
- accessibilityValue={
1802
- {
1803
- "max": undefined,
1804
- "min": undefined,
1805
- "now": undefined,
1806
- "text": undefined,
1807
- }
1787
+ }
1788
+ accessibilityValue={
1789
+ {
1790
+ "max": undefined,
1791
+ "min": undefined,
1792
+ "now": undefined,
1793
+ "text": undefined,
1808
1794
  }
1809
- accessible={true}
1810
- focusable={true}
1811
- onClick={[Function]}
1812
- onResponderGrant={[Function]}
1813
- onResponderMove={[Function]}
1814
- onResponderRelease={[Function]}
1815
- onResponderTerminate={[Function]}
1816
- onResponderTerminationRequest={[Function]}
1817
- onStartShouldSetResponder={[Function]}
1795
+ }
1796
+ accessible={true}
1797
+ focusable={true}
1798
+ onClick={[Function]}
1799
+ onResponderGrant={[Function]}
1800
+ onResponderMove={[Function]}
1801
+ onResponderRelease={[Function]}
1802
+ onResponderTerminate={[Function]}
1803
+ onResponderTerminationRequest={[Function]}
1804
+ onStartShouldSetResponder={[Function]}
1805
+ style={
1806
+ [
1807
+ {
1808
+ "alignItems": "center",
1809
+ "backgroundColor": undefined,
1810
+ "borderRadius": 4,
1811
+ "flexDirection": "row",
1812
+ "opacity": 1,
1813
+ "padding": 16,
1814
+ },
1815
+ undefined,
1816
+ ]
1817
+ }
1818
+ >
1819
+ <View
1818
1820
  style={
1819
1821
  [
1820
1822
  {
1821
- "alignItems": "center",
1822
- "backgroundColor": undefined,
1823
- "borderRadius": 4,
1824
- "flexDirection": "row",
1825
- "opacity": 1,
1826
- "padding": 16,
1823
+ "flex": 1,
1827
1824
  },
1828
1825
  undefined,
1829
1826
  ]
1830
1827
  }
1831
1828
  >
1832
- <View
1833
- style={
1834
- [
1835
- {
1836
- "flex": 1,
1837
- },
1838
- undefined,
1839
- ]
1840
- }
1841
- >
1842
- <Text
1843
- allowFontScaling={false}
1844
- style={
1845
- [
1846
- {
1847
- "color": "#001f23",
1848
- "fontFamily": "BeVietnamPro-Regular",
1849
- "fontSize": 16,
1850
- "letterSpacing": 0.48,
1851
- "lineHeight": 24,
1852
- },
1853
- undefined,
1854
- ]
1855
- }
1856
- themeIntent="body"
1857
- themeTypeface="neutral"
1858
- themeVariant="regular"
1859
- >
1860
- A1
1861
- </Text>
1862
- </View>
1863
- <View
1829
+ <Text
1830
+ allowFontScaling={false}
1864
1831
  style={
1865
1832
  [
1866
1833
  {
1867
- "marginLeft": 8,
1834
+ "color": "#001f23",
1835
+ "fontFamily": "BeVietnamPro-Regular",
1836
+ "fontSize": 16,
1837
+ "letterSpacing": 0.48,
1838
+ "lineHeight": 24,
1868
1839
  },
1869
1840
  undefined,
1870
1841
  ]
1871
1842
  }
1843
+ themeIntent="body"
1844
+ themeTypeface="neutral"
1845
+ themeVariant="regular"
1872
1846
  >
1873
- <HeroIcon
1874
- name="checkmark"
1875
- style={
1876
- [
1877
- {
1878
- "color": "#401960",
1879
- "fontSize": 20,
1880
- },
1881
- {
1882
- "marginRight": 12,
1883
- },
1884
- ]
1885
- }
1886
- testID="selected-icon-A1"
1887
- themeIntent="primary"
1888
- themeSize="small"
1889
- />
1890
- </View>
1847
+ A1
1848
+ </Text>
1891
1849
  </View>
1892
1850
  <View
1893
- highlighted={false}
1894
- leadingItem={
1895
- {
1896
- "text": "A1",
1897
- "value": "a1",
1898
- }
1899
- }
1900
- section={
1901
- {
1902
- "category": "A",
1903
- "data": [
1904
- {
1905
- "text": "A1",
1906
- "value": "a1",
1907
- },
1908
- ],
1909
- }
1910
- }
1911
1851
  style={
1912
1852
  [
1913
1853
  {
1914
- "marginTop": 12,
1854
+ "marginLeft": 8,
1915
1855
  },
1916
1856
  undefined,
1917
1857
  ]
1918
1858
  }
1919
- trailingSection={
1920
- {
1921
- "category": "B",
1922
- "data": [
1859
+ >
1860
+ <HeroIcon
1861
+ name="checkmark"
1862
+ style={
1863
+ [
1923
1864
  {
1924
- "text": "B1",
1925
- "value": "b1",
1865
+ "color": "#401960",
1866
+ "fontSize": 20,
1926
1867
  },
1927
1868
  {
1928
- "text": "B2",
1929
- "value": "b2",
1869
+ "marginRight": 12,
1930
1870
  },
1931
- ],
1871
+ ]
1932
1872
  }
1933
- }
1934
- />
1873
+ testID="selected-icon-A1"
1874
+ themeIntent="primary"
1875
+ themeSize="small"
1876
+ />
1877
+ </View>
1935
1878
  </View>
1879
+ <View
1880
+ highlighted={false}
1881
+ leadingItem={
1882
+ {
1883
+ "text": "A1",
1884
+ "value": "a1",
1885
+ }
1886
+ }
1887
+ section={
1888
+ {
1889
+ "category": "A",
1890
+ "data": [
1891
+ {
1892
+ "text": "A1",
1893
+ "value": "a1",
1894
+ },
1895
+ ],
1896
+ }
1897
+ }
1898
+ style={
1899
+ [
1900
+ {
1901
+ "marginTop": 12,
1902
+ },
1903
+ undefined,
1904
+ ]
1905
+ }
1906
+ trailingSection={
1907
+ {
1908
+ "category": "B",
1909
+ "data": [
1910
+ {
1911
+ "text": "B1",
1912
+ "value": "b1",
1913
+ },
1914
+ {
1915
+ "text": "B2",
1916
+ "value": "b2",
1917
+ },
1918
+ ],
1919
+ }
1920
+ }
1921
+ />
1936
1922
  </View>
1937
1923
  <View
1938
1924
  onFocusCapture={[Function]}
@@ -2014,317 +2000,313 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
2014
2000
  onLayout={[Function]}
2015
2001
  style={null}
2016
2002
  >
2017
- <View>
2018
- <View
2019
- highlighted={false}
2020
- leadingSection={
2021
- {
2022
- "category": "A",
2023
- "data": [
2024
- {
2025
- "text": "A1",
2026
- "value": "a1",
2027
- },
2028
- ],
2029
- }
2030
- }
2031
- section={
2032
- {
2033
- "category": "B",
2034
- "data": [
2035
- {
2036
- "text": "B1",
2037
- "value": "b1",
2038
- },
2039
- {
2040
- "text": "B2",
2041
- "value": "b2",
2042
- },
2043
- ],
2044
- }
2003
+ <View
2004
+ highlighted={false}
2005
+ leadingSection={
2006
+ {
2007
+ "category": "A",
2008
+ "data": [
2009
+ {
2010
+ "text": "A1",
2011
+ "value": "a1",
2012
+ },
2013
+ ],
2045
2014
  }
2046
- style={
2047
- [
2015
+ }
2016
+ section={
2017
+ {
2018
+ "category": "B",
2019
+ "data": [
2048
2020
  {
2049
- "marginTop": 12,
2021
+ "text": "B1",
2022
+ "value": "b1",
2050
2023
  },
2051
- undefined,
2052
- ]
2024
+ {
2025
+ "text": "B2",
2026
+ "value": "b2",
2027
+ },
2028
+ ],
2053
2029
  }
2054
- trailingItem={
2030
+ }
2031
+ style={
2032
+ [
2055
2033
  {
2056
- "text": "B1",
2057
- "value": "b1",
2058
- }
2034
+ "marginTop": 12,
2035
+ },
2036
+ undefined,
2037
+ ]
2038
+ }
2039
+ trailingItem={
2040
+ {
2041
+ "text": "B1",
2042
+ "value": "b1",
2059
2043
  }
2060
- />
2061
- <View
2062
- accessibilityState={
2063
- {
2064
- "disabled": false,
2065
- }
2044
+ }
2045
+ />
2046
+ <View
2047
+ accessibilityState={
2048
+ {
2049
+ "disabled": false,
2066
2050
  }
2067
- accessibilityValue={
2068
- {
2069
- "max": undefined,
2070
- "min": undefined,
2071
- "now": undefined,
2072
- "text": undefined,
2073
- }
2051
+ }
2052
+ accessibilityValue={
2053
+ {
2054
+ "max": undefined,
2055
+ "min": undefined,
2056
+ "now": undefined,
2057
+ "text": undefined,
2074
2058
  }
2075
- accessible={true}
2076
- focusable={true}
2077
- onClick={[Function]}
2078
- onResponderGrant={[Function]}
2079
- onResponderMove={[Function]}
2080
- onResponderRelease={[Function]}
2081
- onResponderTerminate={[Function]}
2082
- onResponderTerminationRequest={[Function]}
2083
- onStartShouldSetResponder={[Function]}
2059
+ }
2060
+ accessible={true}
2061
+ focusable={true}
2062
+ onClick={[Function]}
2063
+ onResponderGrant={[Function]}
2064
+ onResponderMove={[Function]}
2065
+ onResponderRelease={[Function]}
2066
+ onResponderTerminate={[Function]}
2067
+ onResponderTerminationRequest={[Function]}
2068
+ onStartShouldSetResponder={[Function]}
2069
+ style={
2070
+ [
2071
+ {
2072
+ "alignItems": "center",
2073
+ "backgroundColor": undefined,
2074
+ "borderRadius": 4,
2075
+ "flexDirection": "row",
2076
+ "opacity": 1,
2077
+ "padding": 16,
2078
+ },
2079
+ undefined,
2080
+ ]
2081
+ }
2082
+ >
2083
+ <View
2084
2084
  style={
2085
2085
  [
2086
2086
  {
2087
- "alignItems": "center",
2088
- "backgroundColor": undefined,
2089
- "borderRadius": 4,
2090
- "flexDirection": "row",
2091
- "opacity": 1,
2092
- "padding": 16,
2087
+ "flex": 1,
2093
2088
  },
2094
2089
  undefined,
2095
2090
  ]
2096
2091
  }
2097
2092
  >
2098
- <View
2099
- style={
2100
- [
2101
- {
2102
- "flex": 1,
2103
- },
2104
- undefined,
2105
- ]
2106
- }
2107
- >
2108
- <Text
2109
- allowFontScaling={false}
2110
- style={
2111
- [
2112
- {
2113
- "color": "#001f23",
2114
- "fontFamily": "BeVietnamPro-Regular",
2115
- "fontSize": 16,
2116
- "letterSpacing": 0.48,
2117
- "lineHeight": 24,
2118
- },
2119
- undefined,
2120
- ]
2121
- }
2122
- themeIntent="body"
2123
- themeTypeface="neutral"
2124
- themeVariant="regular"
2125
- >
2126
- B1
2127
- </Text>
2128
- </View>
2129
- <View
2093
+ <Text
2094
+ allowFontScaling={false}
2130
2095
  style={
2131
2096
  [
2132
2097
  {
2133
- "marginLeft": 8,
2098
+ "color": "#001f23",
2099
+ "fontFamily": "BeVietnamPro-Regular",
2100
+ "fontSize": 16,
2101
+ "letterSpacing": 0.48,
2102
+ "lineHeight": 24,
2134
2103
  },
2135
2104
  undefined,
2136
2105
  ]
2137
2106
  }
2107
+ themeIntent="body"
2108
+ themeTypeface="neutral"
2109
+ themeVariant="regular"
2138
2110
  >
2139
- <HeroIcon
2140
- name="checkmark"
2141
- style={
2142
- [
2143
- {
2144
- "color": "#401960",
2145
- "fontSize": 20,
2146
- },
2147
- {
2148
- "marginRight": 12,
2149
- },
2150
- ]
2151
- }
2152
- testID="selected-icon-B1"
2153
- themeIntent="primary"
2154
- themeSize="small"
2155
- />
2156
- </View>
2111
+ B1
2112
+ </Text>
2157
2113
  </View>
2158
2114
  <View
2159
- highlighted={false}
2160
- leadingItem={
2161
- {
2162
- "text": "B1",
2163
- "value": "b1",
2164
- }
2165
- }
2166
- leadingSection={
2167
- {
2168
- "category": "A",
2169
- "data": [
2170
- {
2171
- "text": "A1",
2172
- "value": "a1",
2173
- },
2174
- ],
2175
- }
2115
+ style={
2116
+ [
2117
+ {
2118
+ "marginLeft": 8,
2119
+ },
2120
+ undefined,
2121
+ ]
2176
2122
  }
2177
- section={
2178
- {
2179
- "category": "B",
2180
- "data": [
2123
+ >
2124
+ <HeroIcon
2125
+ name="checkmark"
2126
+ style={
2127
+ [
2181
2128
  {
2182
- "text": "B1",
2183
- "value": "b1",
2129
+ "color": "#401960",
2130
+ "fontSize": 20,
2184
2131
  },
2185
2132
  {
2186
- "text": "B2",
2187
- "value": "b2",
2133
+ "marginRight": 12,
2188
2134
  },
2189
- ],
2135
+ ]
2190
2136
  }
2137
+ testID="selected-icon-B1"
2138
+ themeIntent="primary"
2139
+ themeSize="small"
2140
+ />
2141
+ </View>
2142
+ </View>
2143
+ <View
2144
+ highlighted={false}
2145
+ leadingItem={
2146
+ {
2147
+ "text": "B1",
2148
+ "value": "b1",
2191
2149
  }
2192
- style={
2193
- [
2150
+ }
2151
+ leadingSection={
2152
+ {
2153
+ "category": "A",
2154
+ "data": [
2194
2155
  {
2195
- "marginTop": 4,
2156
+ "text": "A1",
2157
+ "value": "a1",
2196
2158
  },
2197
- undefined,
2198
- ]
2159
+ ],
2160
+ }
2161
+ }
2162
+ section={
2163
+ {
2164
+ "category": "B",
2165
+ "data": [
2166
+ {
2167
+ "text": "B1",
2168
+ "value": "b1",
2169
+ },
2170
+ {
2171
+ "text": "B2",
2172
+ "value": "b2",
2173
+ },
2174
+ ],
2199
2175
  }
2200
- trailingItem={
2176
+ }
2177
+ style={
2178
+ [
2201
2179
  {
2202
- "text": "B2",
2203
- "value": "b2",
2204
- }
2180
+ "marginTop": 4,
2181
+ },
2182
+ undefined,
2183
+ ]
2184
+ }
2185
+ trailingItem={
2186
+ {
2187
+ "text": "B2",
2188
+ "value": "b2",
2205
2189
  }
2206
- />
2207
- </View>
2190
+ }
2191
+ />
2208
2192
  </View>
2209
2193
  <View
2210
2194
  onFocusCapture={[Function]}
2211
2195
  onLayout={[Function]}
2212
2196
  style={null}
2213
2197
  >
2214
- <View>
2215
- <View
2216
- accessibilityState={
2217
- {
2218
- "disabled": false,
2219
- }
2198
+ <View
2199
+ accessibilityState={
2200
+ {
2201
+ "disabled": false,
2220
2202
  }
2221
- accessibilityValue={
2222
- {
2223
- "max": undefined,
2224
- "min": undefined,
2225
- "now": undefined,
2226
- "text": undefined,
2227
- }
2203
+ }
2204
+ accessibilityValue={
2205
+ {
2206
+ "max": undefined,
2207
+ "min": undefined,
2208
+ "now": undefined,
2209
+ "text": undefined,
2228
2210
  }
2229
- accessible={true}
2230
- focusable={true}
2231
- onClick={[Function]}
2232
- onResponderGrant={[Function]}
2233
- onResponderMove={[Function]}
2234
- onResponderRelease={[Function]}
2235
- onResponderTerminate={[Function]}
2236
- onResponderTerminationRequest={[Function]}
2237
- onStartShouldSetResponder={[Function]}
2211
+ }
2212
+ accessible={true}
2213
+ focusable={true}
2214
+ onClick={[Function]}
2215
+ onResponderGrant={[Function]}
2216
+ onResponderMove={[Function]}
2217
+ onResponderRelease={[Function]}
2218
+ onResponderTerminate={[Function]}
2219
+ onResponderTerminationRequest={[Function]}
2220
+ onStartShouldSetResponder={[Function]}
2221
+ style={
2222
+ [
2223
+ {
2224
+ "alignItems": "center",
2225
+ "backgroundColor": "#ffffff",
2226
+ "borderRadius": 4,
2227
+ "flexDirection": "row",
2228
+ "opacity": 1,
2229
+ "padding": 16,
2230
+ },
2231
+ undefined,
2232
+ ]
2233
+ }
2234
+ >
2235
+ <View
2238
2236
  style={
2239
2237
  [
2240
2238
  {
2241
- "alignItems": "center",
2242
- "backgroundColor": "#ffffff",
2243
- "borderRadius": 4,
2244
- "flexDirection": "row",
2245
- "opacity": 1,
2246
- "padding": 16,
2239
+ "flex": 1,
2247
2240
  },
2248
2241
  undefined,
2249
2242
  ]
2250
2243
  }
2251
2244
  >
2252
- <View
2245
+ <Text
2246
+ allowFontScaling={false}
2253
2247
  style={
2254
2248
  [
2255
2249
  {
2256
- "flex": 1,
2250
+ "color": "#001f23",
2251
+ "fontFamily": "BeVietnamPro-Regular",
2252
+ "fontSize": 16,
2253
+ "letterSpacing": 0.48,
2254
+ "lineHeight": 24,
2257
2255
  },
2258
2256
  undefined,
2259
2257
  ]
2260
2258
  }
2259
+ themeIntent="body"
2260
+ themeTypeface="neutral"
2261
+ themeVariant="regular"
2261
2262
  >
2262
- <Text
2263
- allowFontScaling={false}
2264
- style={
2265
- [
2266
- {
2267
- "color": "#001f23",
2268
- "fontFamily": "BeVietnamPro-Regular",
2269
- "fontSize": 16,
2270
- "letterSpacing": 0.48,
2271
- "lineHeight": 24,
2272
- },
2273
- undefined,
2274
- ]
2275
- }
2276
- themeIntent="body"
2277
- themeTypeface="neutral"
2278
- themeVariant="regular"
2279
- >
2280
- B2
2281
- </Text>
2282
- </View>
2263
+ B2
2264
+ </Text>
2283
2265
  </View>
2284
- <View
2285
- highlighted={false}
2286
- leadingItem={
2287
- {
2288
- "text": "B2",
2289
- "value": "b2",
2290
- }
2291
- }
2292
- leadingSection={
2293
- {
2294
- "category": "A",
2295
- "data": [
2296
- {
2297
- "text": "A1",
2298
- "value": "a1",
2299
- },
2300
- ],
2301
- }
2266
+ </View>
2267
+ <View
2268
+ highlighted={false}
2269
+ leadingItem={
2270
+ {
2271
+ "text": "B2",
2272
+ "value": "b2",
2302
2273
  }
2303
- section={
2304
- {
2305
- "category": "B",
2306
- "data": [
2307
- {
2308
- "text": "B1",
2309
- "value": "b1",
2310
- },
2311
- {
2312
- "text": "B2",
2313
- "value": "b2",
2314
- },
2315
- ],
2316
- }
2274
+ }
2275
+ leadingSection={
2276
+ {
2277
+ "category": "A",
2278
+ "data": [
2279
+ {
2280
+ "text": "A1",
2281
+ "value": "a1",
2282
+ },
2283
+ ],
2317
2284
  }
2318
- style={
2319
- [
2285
+ }
2286
+ section={
2287
+ {
2288
+ "category": "B",
2289
+ "data": [
2320
2290
  {
2321
- "marginTop": 12,
2291
+ "text": "B1",
2292
+ "value": "b1",
2322
2293
  },
2323
- undefined,
2324
- ]
2294
+ {
2295
+ "text": "B2",
2296
+ "value": "b2",
2297
+ },
2298
+ ],
2325
2299
  }
2326
- />
2327
- </View>
2300
+ }
2301
+ style={
2302
+ [
2303
+ {
2304
+ "marginTop": 12,
2305
+ },
2306
+ undefined,
2307
+ ]
2308
+ }
2309
+ />
2328
2310
  </View>
2329
2311
  <View
2330
2312
  onFocusCapture={[Function]}
@@ -2497,191 +2479,189 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2497
2479
  onLayout={[Function]}
2498
2480
  style={null}
2499
2481
  >
2500
- <View>
2501
- <View
2502
- highlighted={false}
2503
- section={
2504
- {
2505
- "category": "A",
2506
- "data": [
2507
- {
2508
- "text": "A1",
2509
- "value": "a1",
2510
- },
2511
- ],
2512
- }
2513
- }
2514
- style={
2515
- [
2482
+ <View
2483
+ highlighted={false}
2484
+ section={
2485
+ {
2486
+ "category": "A",
2487
+ "data": [
2516
2488
  {
2517
- "marginTop": 12,
2489
+ "text": "A1",
2490
+ "value": "a1",
2518
2491
  },
2519
- undefined,
2520
- ]
2492
+ ],
2521
2493
  }
2522
- trailingItem={
2494
+ }
2495
+ style={
2496
+ [
2523
2497
  {
2524
- "text": "A1",
2525
- "value": "a1",
2526
- }
2498
+ "marginTop": 12,
2499
+ },
2500
+ undefined,
2501
+ ]
2502
+ }
2503
+ trailingItem={
2504
+ {
2505
+ "text": "A1",
2506
+ "value": "a1",
2527
2507
  }
2528
- trailingSection={
2529
- {
2530
- "category": "B",
2531
- "data": [
2532
- {
2533
- "text": "B1",
2534
- "value": "b1",
2535
- },
2536
- {
2537
- "text": "B2",
2538
- "value": "b2",
2539
- },
2540
- ],
2541
- }
2508
+ }
2509
+ trailingSection={
2510
+ {
2511
+ "category": "B",
2512
+ "data": [
2513
+ {
2514
+ "text": "B1",
2515
+ "value": "b1",
2516
+ },
2517
+ {
2518
+ "text": "B2",
2519
+ "value": "b2",
2520
+ },
2521
+ ],
2542
2522
  }
2543
- />
2544
- <View
2545
- accessibilityState={
2546
- {
2547
- "disabled": false,
2548
- }
2523
+ }
2524
+ />
2525
+ <View
2526
+ accessibilityState={
2527
+ {
2528
+ "disabled": false,
2549
2529
  }
2550
- accessibilityValue={
2551
- {
2552
- "max": undefined,
2553
- "min": undefined,
2554
- "now": undefined,
2555
- "text": undefined,
2556
- }
2530
+ }
2531
+ accessibilityValue={
2532
+ {
2533
+ "max": undefined,
2534
+ "min": undefined,
2535
+ "now": undefined,
2536
+ "text": undefined,
2557
2537
  }
2558
- accessible={true}
2559
- focusable={true}
2560
- onClick={[Function]}
2561
- onResponderGrant={[Function]}
2562
- onResponderMove={[Function]}
2563
- onResponderRelease={[Function]}
2564
- onResponderTerminate={[Function]}
2565
- onResponderTerminationRequest={[Function]}
2566
- onStartShouldSetResponder={[Function]}
2538
+ }
2539
+ accessible={true}
2540
+ focusable={true}
2541
+ onClick={[Function]}
2542
+ onResponderGrant={[Function]}
2543
+ onResponderMove={[Function]}
2544
+ onResponderRelease={[Function]}
2545
+ onResponderTerminate={[Function]}
2546
+ onResponderTerminationRequest={[Function]}
2547
+ onStartShouldSetResponder={[Function]}
2548
+ style={
2549
+ [
2550
+ {
2551
+ "alignItems": "center",
2552
+ "backgroundColor": undefined,
2553
+ "borderRadius": 4,
2554
+ "flexDirection": "row",
2555
+ "opacity": 1,
2556
+ "padding": 16,
2557
+ },
2558
+ undefined,
2559
+ ]
2560
+ }
2561
+ >
2562
+ <View
2567
2563
  style={
2568
2564
  [
2569
2565
  {
2570
- "alignItems": "center",
2571
- "backgroundColor": undefined,
2572
- "borderRadius": 4,
2573
- "flexDirection": "row",
2574
- "opacity": 1,
2575
- "padding": 16,
2566
+ "flex": 1,
2576
2567
  },
2577
2568
  undefined,
2578
2569
  ]
2579
2570
  }
2580
2571
  >
2581
- <View
2582
- style={
2583
- [
2584
- {
2585
- "flex": 1,
2586
- },
2587
- undefined,
2588
- ]
2589
- }
2590
- >
2591
- <Text
2592
- allowFontScaling={false}
2593
- style={
2594
- [
2595
- {
2596
- "color": "#001f23",
2597
- "fontFamily": "BeVietnamPro-Regular",
2598
- "fontSize": 16,
2599
- "letterSpacing": 0.48,
2600
- "lineHeight": 24,
2601
- },
2602
- undefined,
2603
- ]
2604
- }
2605
- themeIntent="body"
2606
- themeTypeface="neutral"
2607
- themeVariant="regular"
2608
- >
2609
- A1
2610
- </Text>
2611
- </View>
2612
- <View
2572
+ <Text
2573
+ allowFontScaling={false}
2613
2574
  style={
2614
2575
  [
2615
2576
  {
2616
- "marginLeft": 8,
2577
+ "color": "#001f23",
2578
+ "fontFamily": "BeVietnamPro-Regular",
2579
+ "fontSize": 16,
2580
+ "letterSpacing": 0.48,
2581
+ "lineHeight": 24,
2617
2582
  },
2618
2583
  undefined,
2619
2584
  ]
2620
2585
  }
2586
+ themeIntent="body"
2587
+ themeTypeface="neutral"
2588
+ themeVariant="regular"
2621
2589
  >
2622
- <HeroIcon
2623
- name="checkmark"
2624
- style={
2625
- [
2626
- {
2627
- "color": "#401960",
2628
- "fontSize": 20,
2629
- },
2630
- {
2631
- "marginRight": 12,
2632
- },
2633
- ]
2634
- }
2635
- testID="selected-icon-A1"
2636
- themeIntent="primary"
2637
- themeSize="small"
2638
- />
2639
- </View>
2590
+ A1
2591
+ </Text>
2640
2592
  </View>
2641
2593
  <View
2642
- highlighted={false}
2643
- leadingItem={
2644
- {
2645
- "text": "A1",
2646
- "value": "a1",
2647
- }
2648
- }
2649
- section={
2650
- {
2651
- "category": "A",
2652
- "data": [
2653
- {
2654
- "text": "A1",
2655
- "value": "a1",
2656
- },
2657
- ],
2658
- }
2659
- }
2660
2594
  style={
2661
2595
  [
2662
2596
  {
2663
- "marginTop": 12,
2597
+ "marginLeft": 8,
2664
2598
  },
2665
2599
  undefined,
2666
2600
  ]
2667
2601
  }
2668
- trailingSection={
2669
- {
2670
- "category": "B",
2671
- "data": [
2602
+ >
2603
+ <HeroIcon
2604
+ name="checkmark"
2605
+ style={
2606
+ [
2672
2607
  {
2673
- "text": "B1",
2674
- "value": "b1",
2608
+ "color": "#401960",
2609
+ "fontSize": 20,
2675
2610
  },
2676
2611
  {
2677
- "text": "B2",
2678
- "value": "b2",
2612
+ "marginRight": 12,
2679
2613
  },
2680
- ],
2614
+ ]
2681
2615
  }
2682
- }
2683
- />
2616
+ testID="selected-icon-A1"
2617
+ themeIntent="primary"
2618
+ themeSize="small"
2619
+ />
2620
+ </View>
2684
2621
  </View>
2622
+ <View
2623
+ highlighted={false}
2624
+ leadingItem={
2625
+ {
2626
+ "text": "A1",
2627
+ "value": "a1",
2628
+ }
2629
+ }
2630
+ section={
2631
+ {
2632
+ "category": "A",
2633
+ "data": [
2634
+ {
2635
+ "text": "A1",
2636
+ "value": "a1",
2637
+ },
2638
+ ],
2639
+ }
2640
+ }
2641
+ style={
2642
+ [
2643
+ {
2644
+ "marginTop": 12,
2645
+ },
2646
+ undefined,
2647
+ ]
2648
+ }
2649
+ trailingSection={
2650
+ {
2651
+ "category": "B",
2652
+ "data": [
2653
+ {
2654
+ "text": "B1",
2655
+ "value": "b1",
2656
+ },
2657
+ {
2658
+ "text": "B2",
2659
+ "value": "b2",
2660
+ },
2661
+ ],
2662
+ }
2663
+ }
2664
+ />
2685
2665
  </View>
2686
2666
  <View
2687
2667
  onFocusCapture={[Function]}
@@ -2763,289 +2743,285 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
2763
2743
  onLayout={[Function]}
2764
2744
  style={null}
2765
2745
  >
2766
- <View>
2767
- <View
2768
- highlighted={false}
2769
- leadingSection={
2770
- {
2771
- "category": "A",
2772
- "data": [
2773
- {
2774
- "text": "A1",
2775
- "value": "a1",
2776
- },
2777
- ],
2778
- }
2779
- }
2780
- section={
2781
- {
2782
- "category": "B",
2783
- "data": [
2784
- {
2785
- "text": "B1",
2786
- "value": "b1",
2787
- },
2788
- {
2789
- "text": "B2",
2790
- "value": "b2",
2791
- },
2792
- ],
2793
- }
2746
+ <View
2747
+ highlighted={false}
2748
+ leadingSection={
2749
+ {
2750
+ "category": "A",
2751
+ "data": [
2752
+ {
2753
+ "text": "A1",
2754
+ "value": "a1",
2755
+ },
2756
+ ],
2794
2757
  }
2795
- style={
2796
- [
2758
+ }
2759
+ section={
2760
+ {
2761
+ "category": "B",
2762
+ "data": [
2797
2763
  {
2798
- "marginTop": 12,
2764
+ "text": "B1",
2765
+ "value": "b1",
2799
2766
  },
2800
- undefined,
2801
- ]
2767
+ {
2768
+ "text": "B2",
2769
+ "value": "b2",
2770
+ },
2771
+ ],
2802
2772
  }
2803
- trailingItem={
2773
+ }
2774
+ style={
2775
+ [
2804
2776
  {
2805
- "text": "B1",
2806
- "value": "b1",
2807
- }
2777
+ "marginTop": 12,
2778
+ },
2779
+ undefined,
2780
+ ]
2781
+ }
2782
+ trailingItem={
2783
+ {
2784
+ "text": "B1",
2785
+ "value": "b1",
2808
2786
  }
2809
- />
2810
- <View
2811
- accessibilityState={
2812
- {
2813
- "disabled": false,
2814
- }
2787
+ }
2788
+ />
2789
+ <View
2790
+ accessibilityState={
2791
+ {
2792
+ "disabled": false,
2815
2793
  }
2816
- accessibilityValue={
2817
- {
2818
- "max": undefined,
2819
- "min": undefined,
2820
- "now": undefined,
2821
- "text": undefined,
2822
- }
2794
+ }
2795
+ accessibilityValue={
2796
+ {
2797
+ "max": undefined,
2798
+ "min": undefined,
2799
+ "now": undefined,
2800
+ "text": undefined,
2823
2801
  }
2824
- accessible={true}
2825
- focusable={true}
2826
- onClick={[Function]}
2827
- onResponderGrant={[Function]}
2828
- onResponderMove={[Function]}
2829
- onResponderRelease={[Function]}
2830
- onResponderTerminate={[Function]}
2831
- onResponderTerminationRequest={[Function]}
2832
- onStartShouldSetResponder={[Function]}
2802
+ }
2803
+ accessible={true}
2804
+ focusable={true}
2805
+ onClick={[Function]}
2806
+ onResponderGrant={[Function]}
2807
+ onResponderMove={[Function]}
2808
+ onResponderRelease={[Function]}
2809
+ onResponderTerminate={[Function]}
2810
+ onResponderTerminationRequest={[Function]}
2811
+ onStartShouldSetResponder={[Function]}
2812
+ style={
2813
+ [
2814
+ {
2815
+ "alignItems": "center",
2816
+ "backgroundColor": "#ffffff",
2817
+ "borderRadius": 4,
2818
+ "flexDirection": "row",
2819
+ "opacity": 1,
2820
+ "padding": 16,
2821
+ },
2822
+ undefined,
2823
+ ]
2824
+ }
2825
+ >
2826
+ <View
2833
2827
  style={
2834
2828
  [
2835
2829
  {
2836
- "alignItems": "center",
2837
- "backgroundColor": "#ffffff",
2838
- "borderRadius": 4,
2839
- "flexDirection": "row",
2840
- "opacity": 1,
2841
- "padding": 16,
2830
+ "flex": 1,
2842
2831
  },
2843
2832
  undefined,
2844
2833
  ]
2845
2834
  }
2846
2835
  >
2847
- <View
2836
+ <Text
2837
+ allowFontScaling={false}
2848
2838
  style={
2849
2839
  [
2850
2840
  {
2851
- "flex": 1,
2841
+ "color": "#001f23",
2842
+ "fontFamily": "BeVietnamPro-Regular",
2843
+ "fontSize": 16,
2844
+ "letterSpacing": 0.48,
2845
+ "lineHeight": 24,
2852
2846
  },
2853
2847
  undefined,
2854
2848
  ]
2855
2849
  }
2850
+ themeIntent="body"
2851
+ themeTypeface="neutral"
2852
+ themeVariant="regular"
2856
2853
  >
2857
- <Text
2858
- allowFontScaling={false}
2859
- style={
2860
- [
2861
- {
2862
- "color": "#001f23",
2863
- "fontFamily": "BeVietnamPro-Regular",
2864
- "fontSize": 16,
2865
- "letterSpacing": 0.48,
2866
- "lineHeight": 24,
2867
- },
2868
- undefined,
2869
- ]
2870
- }
2871
- themeIntent="body"
2872
- themeTypeface="neutral"
2873
- themeVariant="regular"
2874
- >
2875
- B1
2876
- </Text>
2877
- </View>
2854
+ B1
2855
+ </Text>
2878
2856
  </View>
2879
- <View
2880
- highlighted={false}
2881
- leadingItem={
2882
- {
2883
- "text": "B1",
2884
- "value": "b1",
2885
- }
2886
- }
2887
- leadingSection={
2888
- {
2889
- "category": "A",
2890
- "data": [
2891
- {
2892
- "text": "A1",
2893
- "value": "a1",
2894
- },
2895
- ],
2896
- }
2857
+ </View>
2858
+ <View
2859
+ highlighted={false}
2860
+ leadingItem={
2861
+ {
2862
+ "text": "B1",
2863
+ "value": "b1",
2897
2864
  }
2898
- section={
2899
- {
2900
- "category": "B",
2901
- "data": [
2902
- {
2903
- "text": "B1",
2904
- "value": "b1",
2905
- },
2906
- {
2907
- "text": "B2",
2908
- "value": "b2",
2909
- },
2910
- ],
2911
- }
2865
+ }
2866
+ leadingSection={
2867
+ {
2868
+ "category": "A",
2869
+ "data": [
2870
+ {
2871
+ "text": "A1",
2872
+ "value": "a1",
2873
+ },
2874
+ ],
2912
2875
  }
2913
- style={
2914
- [
2876
+ }
2877
+ section={
2878
+ {
2879
+ "category": "B",
2880
+ "data": [
2915
2881
  {
2916
- "marginTop": 4,
2882
+ "text": "B1",
2883
+ "value": "b1",
2917
2884
  },
2918
- undefined,
2919
- ]
2885
+ {
2886
+ "text": "B2",
2887
+ "value": "b2",
2888
+ },
2889
+ ],
2920
2890
  }
2921
- trailingItem={
2891
+ }
2892
+ style={
2893
+ [
2922
2894
  {
2923
- "text": "B2",
2924
- "value": "b2",
2925
- }
2895
+ "marginTop": 4,
2896
+ },
2897
+ undefined,
2898
+ ]
2899
+ }
2900
+ trailingItem={
2901
+ {
2902
+ "text": "B2",
2903
+ "value": "b2",
2926
2904
  }
2927
- />
2928
- </View>
2905
+ }
2906
+ />
2929
2907
  </View>
2930
2908
  <View
2931
2909
  onFocusCapture={[Function]}
2932
2910
  onLayout={[Function]}
2933
2911
  style={null}
2934
2912
  >
2935
- <View>
2936
- <View
2937
- accessibilityState={
2938
- {
2939
- "disabled": false,
2940
- }
2913
+ <View
2914
+ accessibilityState={
2915
+ {
2916
+ "disabled": false,
2941
2917
  }
2942
- accessibilityValue={
2943
- {
2944
- "max": undefined,
2945
- "min": undefined,
2946
- "now": undefined,
2947
- "text": undefined,
2948
- }
2918
+ }
2919
+ accessibilityValue={
2920
+ {
2921
+ "max": undefined,
2922
+ "min": undefined,
2923
+ "now": undefined,
2924
+ "text": undefined,
2949
2925
  }
2950
- accessible={true}
2951
- focusable={true}
2952
- onClick={[Function]}
2953
- onResponderGrant={[Function]}
2954
- onResponderMove={[Function]}
2955
- onResponderRelease={[Function]}
2956
- onResponderTerminate={[Function]}
2957
- onResponderTerminationRequest={[Function]}
2958
- onStartShouldSetResponder={[Function]}
2926
+ }
2927
+ accessible={true}
2928
+ focusable={true}
2929
+ onClick={[Function]}
2930
+ onResponderGrant={[Function]}
2931
+ onResponderMove={[Function]}
2932
+ onResponderRelease={[Function]}
2933
+ onResponderTerminate={[Function]}
2934
+ onResponderTerminationRequest={[Function]}
2935
+ onStartShouldSetResponder={[Function]}
2936
+ style={
2937
+ [
2938
+ {
2939
+ "alignItems": "center",
2940
+ "backgroundColor": "#ffffff",
2941
+ "borderRadius": 4,
2942
+ "flexDirection": "row",
2943
+ "opacity": 1,
2944
+ "padding": 16,
2945
+ },
2946
+ undefined,
2947
+ ]
2948
+ }
2949
+ >
2950
+ <View
2959
2951
  style={
2960
2952
  [
2961
2953
  {
2962
- "alignItems": "center",
2963
- "backgroundColor": "#ffffff",
2964
- "borderRadius": 4,
2965
- "flexDirection": "row",
2966
- "opacity": 1,
2967
- "padding": 16,
2954
+ "flex": 1,
2968
2955
  },
2969
2956
  undefined,
2970
2957
  ]
2971
2958
  }
2972
2959
  >
2973
- <View
2960
+ <Text
2961
+ allowFontScaling={false}
2974
2962
  style={
2975
2963
  [
2976
2964
  {
2977
- "flex": 1,
2965
+ "color": "#001f23",
2966
+ "fontFamily": "BeVietnamPro-Regular",
2967
+ "fontSize": 16,
2968
+ "letterSpacing": 0.48,
2969
+ "lineHeight": 24,
2978
2970
  },
2979
2971
  undefined,
2980
2972
  ]
2981
2973
  }
2974
+ themeIntent="body"
2975
+ themeTypeface="neutral"
2976
+ themeVariant="regular"
2982
2977
  >
2983
- <Text
2984
- allowFontScaling={false}
2985
- style={
2986
- [
2987
- {
2988
- "color": "#001f23",
2989
- "fontFamily": "BeVietnamPro-Regular",
2990
- "fontSize": 16,
2991
- "letterSpacing": 0.48,
2992
- "lineHeight": 24,
2993
- },
2994
- undefined,
2995
- ]
2996
- }
2997
- themeIntent="body"
2998
- themeTypeface="neutral"
2999
- themeVariant="regular"
3000
- >
3001
- B2
3002
- </Text>
3003
- </View>
2978
+ B2
2979
+ </Text>
3004
2980
  </View>
3005
- <View
3006
- highlighted={false}
3007
- leadingItem={
3008
- {
3009
- "text": "B2",
3010
- "value": "b2",
3011
- }
3012
- }
3013
- leadingSection={
3014
- {
3015
- "category": "A",
3016
- "data": [
3017
- {
3018
- "text": "A1",
3019
- "value": "a1",
3020
- },
3021
- ],
3022
- }
2981
+ </View>
2982
+ <View
2983
+ highlighted={false}
2984
+ leadingItem={
2985
+ {
2986
+ "text": "B2",
2987
+ "value": "b2",
3023
2988
  }
3024
- section={
3025
- {
3026
- "category": "B",
3027
- "data": [
3028
- {
3029
- "text": "B1",
3030
- "value": "b1",
3031
- },
3032
- {
3033
- "text": "B2",
3034
- "value": "b2",
3035
- },
3036
- ],
3037
- }
2989
+ }
2990
+ leadingSection={
2991
+ {
2992
+ "category": "A",
2993
+ "data": [
2994
+ {
2995
+ "text": "A1",
2996
+ "value": "a1",
2997
+ },
2998
+ ],
3038
2999
  }
3039
- style={
3040
- [
3000
+ }
3001
+ section={
3002
+ {
3003
+ "category": "B",
3004
+ "data": [
3041
3005
  {
3042
- "marginTop": 12,
3006
+ "text": "B1",
3007
+ "value": "b1",
3043
3008
  },
3044
- undefined,
3045
- ]
3009
+ {
3010
+ "text": "B2",
3011
+ "value": "b2",
3012
+ },
3013
+ ],
3046
3014
  }
3047
- />
3048
- </View>
3015
+ }
3016
+ style={
3017
+ [
3018
+ {
3019
+ "marginTop": 12,
3020
+ },
3021
+ undefined,
3022
+ ]
3023
+ }
3024
+ />
3049
3025
  </View>
3050
3026
  <View
3051
3027
  onFocusCapture={[Function]}