@hero-design/rn 7.16.2 → 7.17.1

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 (122) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +331 -259
  3. package/lib/index.js +330 -258
  4. package/package.json +2 -2
  5. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
  6. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
  8. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  9. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  10. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
  11. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
  12. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  13. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  14. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  15. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  16. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  17. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
  18. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +67 -67
  19. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
  20. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  21. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  22. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  23. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
  24. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  25. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +5 -5
  26. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -12
  27. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
  28. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  29. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  30. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
  31. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  32. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
  33. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  34. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  35. package/src/components/List/BasicListItem.tsx +8 -4
  36. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
  37. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
  38. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
  39. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
  40. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
  41. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  42. package/src/components/Progress/ProgressCircle.tsx +25 -22
  43. package/src/components/Progress/StyledProgressCircle.tsx +33 -28
  44. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
  45. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
  46. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
  47. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
  48. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
  49. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
  50. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  51. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  52. package/src/components/Select/MultiSelect/Option.tsx +20 -11
  53. package/src/components/Select/MultiSelect/OptionList.tsx +47 -41
  54. package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +25 -14
  55. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +6 -4
  56. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1638 -134
  57. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5312 -366
  58. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +122 -1
  59. package/src/components/Select/MultiSelect/index.tsx +26 -36
  60. package/src/components/Select/SingleSelect/Option.tsx +19 -3
  61. package/src/components/Select/SingleSelect/OptionList.tsx +47 -39
  62. package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +23 -12
  63. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +5 -3
  64. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +1632 -128
  65. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4932 -302
  66. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +117 -1
  67. package/src/components/Select/SingleSelect/index.tsx +26 -37
  68. package/src/components/Select/StyledOptionList.tsx +43 -44
  69. package/src/components/Select/StyledSelect.tsx +7 -3
  70. package/src/components/Select/__tests__/StyledSelect.spec.tsx +1 -9
  71. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -15
  72. package/src/components/Select/__tests__/helpers.spec.tsx +74 -0
  73. package/src/components/Select/helpers.tsx +87 -4
  74. package/src/components/Select/types.ts +99 -0
  75. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  76. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
  77. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  78. package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  79. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  80. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +6 -6
  81. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  82. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +8 -8
  83. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
  84. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +241 -85
  85. package/src/components/TextInput/__tests__/index.spec.tsx +29 -8
  86. package/src/components/TextInput/index.tsx +18 -7
  87. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -5
  88. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -12
  89. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
  90. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  91. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
  92. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
  93. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +145 -146
  94. package/src/theme/components/alert.ts +3 -3
  95. package/src/theme/components/badge.ts +1 -1
  96. package/src/theme/components/card.ts +4 -4
  97. package/src/theme/components/list.ts +4 -4
  98. package/src/theme/components/pinInput.ts +2 -2
  99. package/src/theme/components/progress.ts +5 -5
  100. package/src/theme/components/select.ts +3 -3
  101. package/src/theme/components/toast.ts +3 -3
  102. package/src/theme/global/colors.ts +40 -39
  103. package/src/types.ts +7 -1
  104. package/types/components/List/BasicListItem.d.ts +1 -1
  105. package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
  106. package/types/components/Select/MultiSelect/Option.d.ts +4 -2
  107. package/types/components/Select/MultiSelect/OptionList.d.ts +6 -7
  108. package/types/components/Select/MultiSelect/index.d.ts +5 -5
  109. package/types/components/Select/SingleSelect/Option.d.ts +4 -2
  110. package/types/components/Select/SingleSelect/OptionList.d.ts +6 -7
  111. package/types/components/Select/SingleSelect/index.d.ts +5 -5
  112. package/types/components/Select/StyledOptionList.d.ts +10 -16
  113. package/types/components/Select/StyledSelect.d.ts +8 -2
  114. package/types/components/Select/__tests__/helpers.spec.d.ts +1 -0
  115. package/types/components/Select/helpers.d.ts +14 -2
  116. package/types/components/Select/index.d.ts +1 -1
  117. package/types/components/Select/types.d.ts +32 -7
  118. package/types/components/TextInput/index.d.ts +4 -2
  119. package/types/theme/components/progress.d.ts +1 -2
  120. package/types/theme/components/select.d.ts +3 -3
  121. package/types/types.d.ts +2 -1
  122. package/src/components/Select/types.tsx +0 -52
@@ -18,16 +18,26 @@ exports[`OptionList render isLoading correctly 1`] = `
18
18
  data={
19
19
  Array [
20
20
  Object {
21
- "text": "A",
22
- "value": "a",
23
- },
24
- Object {
25
- "text": "B",
26
- "value": "b",
21
+ "category": "A",
22
+ "data": Array [
23
+ Object {
24
+ "text": "A1",
25
+ "value": "a1",
26
+ },
27
+ ],
27
28
  },
28
29
  Object {
29
- "text": "C",
30
- "value": "c",
30
+ "category": "B",
31
+ "data": Array [
32
+ Object {
33
+ "text": "B1",
34
+ "value": "b1",
35
+ },
36
+ Object {
37
+ "text": "B2",
38
+ "value": "b2",
39
+ },
40
+ ],
31
41
  },
32
42
  ]
33
43
  }
@@ -44,23 +54,131 @@ exports[`OptionList render isLoading correctly 1`] = `
44
54
  onScrollBeginDrag={[Function]}
45
55
  onScrollEndDrag={[Function]}
46
56
  onScrollToIndexFailed={[Function]}
47
- removeClippedSubviews={false}
48
57
  renderItem={[Function]}
49
58
  scrollEventThrottle={50}
50
- stickyHeaderIndices={Array []}
51
- style={
52
- Object {
53
- "paddingHorizontal": 16,
54
- }
59
+ stickyHeaderIndices={
60
+ Array [
61
+ 0,
62
+ 3,
63
+ ]
55
64
  }
56
- viewabilityConfigCallbackPairs={Array []}
65
+ style={Object {}}
57
66
  >
58
67
  <View>
68
+ <View
69
+ onLayout={[Function]}
70
+ style={null}
71
+ >
72
+ <View
73
+ style={
74
+ Array [
75
+ Object {
76
+ "alignContent": "center",
77
+ "backgroundColor": "#e8e9ea",
78
+ "display": "flex",
79
+ "flexDirection": "row",
80
+ "justifyContent": "space-between",
81
+ "marginBottom": 16,
82
+ "paddingHorizontal": 16,
83
+ "paddingVertical": 8,
84
+ },
85
+ Object {
86
+ "marginBottom": 0,
87
+ },
88
+ ]
89
+ }
90
+ >
91
+ <View
92
+ style={
93
+ Array [
94
+ Object {
95
+ "display": "flex",
96
+ "flexDirection": "row",
97
+ },
98
+ undefined,
99
+ ]
100
+ }
101
+ >
102
+ <View
103
+ style={
104
+ Array [
105
+ Object {
106
+ "marginRight": 8,
107
+ },
108
+ undefined,
109
+ ]
110
+ }
111
+ />
112
+ <Text
113
+ style={
114
+ Array [
115
+ Object {
116
+ "color": "#001f23",
117
+ "fontFamily": "BeVietnamPro-Regular",
118
+ "fontSize": 16,
119
+ "letterSpacing": 0.48,
120
+ "lineHeight": 24,
121
+ },
122
+ undefined,
123
+ ]
124
+ }
125
+ themeFontSize="large"
126
+ themeFontWeight="regular"
127
+ themeIntent="body"
128
+ >
129
+ A
130
+ </Text>
131
+ </View>
132
+ </View>
133
+ </View>
59
134
  <View
60
135
  onLayout={[Function]}
61
136
  style={null}
62
137
  >
63
138
  <View>
139
+ <View
140
+ highlighted={false}
141
+ section={
142
+ Object {
143
+ "category": "A",
144
+ "data": Array [
145
+ Object {
146
+ "text": "A1",
147
+ "value": "a1",
148
+ },
149
+ ],
150
+ }
151
+ }
152
+ style={
153
+ Array [
154
+ Object {
155
+ "marginTop": 12,
156
+ },
157
+ undefined,
158
+ ]
159
+ }
160
+ trailingItem={
161
+ Object {
162
+ "text": "A1",
163
+ "value": "a1",
164
+ }
165
+ }
166
+ trailingSection={
167
+ Object {
168
+ "category": "B",
169
+ "data": Array [
170
+ Object {
171
+ "text": "B1",
172
+ "value": "b1",
173
+ },
174
+ Object {
175
+ "text": "B2",
176
+ "value": "b2",
177
+ },
178
+ ],
179
+ }
180
+ }
181
+ />
64
182
  <View
65
183
  accessibilityState={
66
184
  Object {
@@ -80,12 +198,14 @@ exports[`OptionList render isLoading correctly 1`] = `
80
198
  Array [
81
199
  Object {
82
200
  "alignItems": "center",
83
- "backgroundColor": "#f1e9fb",
201
+ "backgroundColor": "#f3e6f6",
84
202
  "flexDirection": "row",
85
203
  "opacity": 1,
86
204
  "padding": 16,
87
205
  },
88
- undefined,
206
+ Object {
207
+ "marginHorizontal": 12,
208
+ },
89
209
  ]
90
210
  }
91
211
  >
@@ -103,7 +223,7 @@ exports[`OptionList render isLoading correctly 1`] = `
103
223
  style={
104
224
  Array [
105
225
  Object {
106
- "color": "#292a2b",
226
+ "color": "#001f23",
107
227
  "fontFamily": "BeVietnamPro-Regular",
108
228
  "fontSize": 16,
109
229
  "letterSpacing": 0.48,
@@ -116,10 +236,123 @@ exports[`OptionList render isLoading correctly 1`] = `
116
236
  themeFontWeight="regular"
117
237
  themeIntent="body"
118
238
  >
119
- A
239
+ A1
120
240
  </Text>
121
241
  </View>
122
242
  </View>
243
+ <View
244
+ highlighted={false}
245
+ leadingItem={
246
+ Object {
247
+ "text": "A1",
248
+ "value": "a1",
249
+ }
250
+ }
251
+ section={
252
+ Object {
253
+ "category": "A",
254
+ "data": Array [
255
+ Object {
256
+ "text": "A1",
257
+ "value": "a1",
258
+ },
259
+ ],
260
+ }
261
+ }
262
+ style={
263
+ Array [
264
+ Object {
265
+ "marginTop": 12,
266
+ },
267
+ undefined,
268
+ ]
269
+ }
270
+ trailingSection={
271
+ Object {
272
+ "category": "B",
273
+ "data": Array [
274
+ Object {
275
+ "text": "B1",
276
+ "value": "b1",
277
+ },
278
+ Object {
279
+ "text": "B2",
280
+ "value": "b2",
281
+ },
282
+ ],
283
+ }
284
+ }
285
+ />
286
+ </View>
287
+ </View>
288
+ <View
289
+ onLayout={[Function]}
290
+ style={null}
291
+ />
292
+ <View
293
+ onLayout={[Function]}
294
+ style={null}
295
+ >
296
+ <View
297
+ style={
298
+ Array [
299
+ Object {
300
+ "alignContent": "center",
301
+ "backgroundColor": "#e8e9ea",
302
+ "display": "flex",
303
+ "flexDirection": "row",
304
+ "justifyContent": "space-between",
305
+ "marginBottom": 16,
306
+ "paddingHorizontal": 16,
307
+ "paddingVertical": 8,
308
+ },
309
+ Object {
310
+ "marginBottom": 0,
311
+ },
312
+ ]
313
+ }
314
+ >
315
+ <View
316
+ style={
317
+ Array [
318
+ Object {
319
+ "display": "flex",
320
+ "flexDirection": "row",
321
+ },
322
+ undefined,
323
+ ]
324
+ }
325
+ >
326
+ <View
327
+ style={
328
+ Array [
329
+ Object {
330
+ "marginRight": 8,
331
+ },
332
+ undefined,
333
+ ]
334
+ }
335
+ />
336
+ <Text
337
+ style={
338
+ Array [
339
+ Object {
340
+ "color": "#001f23",
341
+ "fontFamily": "BeVietnamPro-Regular",
342
+ "fontSize": 16,
343
+ "letterSpacing": 0.48,
344
+ "lineHeight": 24,
345
+ },
346
+ undefined,
347
+ ]
348
+ }
349
+ themeFontSize="large"
350
+ themeFontWeight="regular"
351
+ themeIntent="body"
352
+ >
353
+ B
354
+ </Text>
355
+ </View>
123
356
  </View>
124
357
  </View>
125
358
  <View
@@ -127,6 +360,49 @@ exports[`OptionList render isLoading correctly 1`] = `
127
360
  style={null}
128
361
  >
129
362
  <View>
363
+ <View
364
+ highlighted={false}
365
+ leadingSection={
366
+ Object {
367
+ "category": "A",
368
+ "data": Array [
369
+ Object {
370
+ "text": "A1",
371
+ "value": "a1",
372
+ },
373
+ ],
374
+ }
375
+ }
376
+ section={
377
+ Object {
378
+ "category": "B",
379
+ "data": Array [
380
+ Object {
381
+ "text": "B1",
382
+ "value": "b1",
383
+ },
384
+ Object {
385
+ "text": "B2",
386
+ "value": "b2",
387
+ },
388
+ ],
389
+ }
390
+ }
391
+ style={
392
+ Array [
393
+ Object {
394
+ "marginTop": 12,
395
+ },
396
+ undefined,
397
+ ]
398
+ }
399
+ trailingItem={
400
+ Object {
401
+ "text": "B1",
402
+ "value": "b1",
403
+ }
404
+ }
405
+ />
130
406
  <View
131
407
  accessibilityState={
132
408
  Object {
@@ -151,7 +427,9 @@ exports[`OptionList render isLoading correctly 1`] = `
151
427
  "opacity": 1,
152
428
  "padding": 16,
153
429
  },
154
- undefined,
430
+ Object {
431
+ "marginHorizontal": 12,
432
+ },
155
433
  ]
156
434
  }
157
435
  >
@@ -169,7 +447,7 @@ exports[`OptionList render isLoading correctly 1`] = `
169
447
  style={
170
448
  Array [
171
449
  Object {
172
- "color": "#292a2b",
450
+ "color": "#001f23",
173
451
  "fontFamily": "BeVietnamPro-Regular",
174
452
  "fontSize": 16,
175
453
  "letterSpacing": 0.48,
@@ -182,10 +460,59 @@ exports[`OptionList render isLoading correctly 1`] = `
182
460
  themeFontWeight="regular"
183
461
  themeIntent="body"
184
462
  >
185
- B
463
+ B1
186
464
  </Text>
187
465
  </View>
188
466
  </View>
467
+ <View
468
+ highlighted={false}
469
+ leadingItem={
470
+ Object {
471
+ "text": "B1",
472
+ "value": "b1",
473
+ }
474
+ }
475
+ leadingSection={
476
+ Object {
477
+ "category": "A",
478
+ "data": Array [
479
+ Object {
480
+ "text": "A1",
481
+ "value": "a1",
482
+ },
483
+ ],
484
+ }
485
+ }
486
+ section={
487
+ Object {
488
+ "category": "B",
489
+ "data": Array [
490
+ Object {
491
+ "text": "B1",
492
+ "value": "b1",
493
+ },
494
+ Object {
495
+ "text": "B2",
496
+ "value": "b2",
497
+ },
498
+ ],
499
+ }
500
+ }
501
+ style={
502
+ Array [
503
+ Object {
504
+ "marginTop": 4,
505
+ },
506
+ undefined,
507
+ ]
508
+ }
509
+ trailingItem={
510
+ Object {
511
+ "text": "B2",
512
+ "value": "b2",
513
+ }
514
+ }
515
+ />
189
516
  </View>
190
517
  </View>
191
518
  <View
@@ -217,7 +544,9 @@ exports[`OptionList render isLoading correctly 1`] = `
217
544
  "opacity": 1,
218
545
  "padding": 16,
219
546
  },
220
- undefined,
547
+ Object {
548
+ "marginHorizontal": 12,
549
+ },
221
550
  ]
222
551
  }
223
552
  >
@@ -235,7 +564,7 @@ exports[`OptionList render isLoading correctly 1`] = `
235
564
  style={
236
565
  Array [
237
566
  Object {
238
- "color": "#292a2b",
567
+ "color": "#001f23",
239
568
  "fontFamily": "BeVietnamPro-Regular",
240
569
  "fontSize": 16,
241
570
  "letterSpacing": 0.48,
@@ -248,12 +577,59 @@ exports[`OptionList render isLoading correctly 1`] = `
248
577
  themeFontWeight="regular"
249
578
  themeIntent="body"
250
579
  >
251
- C
580
+ B2
252
581
  </Text>
253
582
  </View>
254
583
  </View>
584
+ <View
585
+ highlighted={false}
586
+ leadingItem={
587
+ Object {
588
+ "text": "B2",
589
+ "value": "b2",
590
+ }
591
+ }
592
+ leadingSection={
593
+ Object {
594
+ "category": "A",
595
+ "data": Array [
596
+ Object {
597
+ "text": "A1",
598
+ "value": "a1",
599
+ },
600
+ ],
601
+ }
602
+ }
603
+ section={
604
+ Object {
605
+ "category": "B",
606
+ "data": Array [
607
+ Object {
608
+ "text": "B1",
609
+ "value": "b1",
610
+ },
611
+ Object {
612
+ "text": "B2",
613
+ "value": "b2",
614
+ },
615
+ ],
616
+ }
617
+ }
618
+ style={
619
+ Array [
620
+ Object {
621
+ "marginTop": 12,
622
+ },
623
+ undefined,
624
+ ]
625
+ }
626
+ />
255
627
  </View>
256
628
  </View>
629
+ <View
630
+ onLayout={[Function]}
631
+ style={null}
632
+ />
257
633
  <View
258
634
  onLayout={[Function]}
259
635
  >
@@ -319,7 +695,7 @@ exports[`OptionList render isLoading correctly 1`] = `
319
695
  style={
320
696
  Array [
321
697
  Object {
322
- "backgroundColor": "#7622d7",
698
+ "backgroundColor": "#8505a2",
323
699
  "borderRadius": 8,
324
700
  "height": 16,
325
701
  "opacity": 1,
@@ -336,7 +712,7 @@ exports[`OptionList render isLoading correctly 1`] = `
336
712
  style={
337
713
  Array [
338
714
  Object {
339
- "backgroundColor": "#7622d7",
715
+ "backgroundColor": "#8505a2",
340
716
  "borderRadius": 8,
341
717
  "height": 16,
342
718
  "marginLeft": 8,
@@ -369,7 +745,7 @@ exports[`OptionList render isLoading correctly 1`] = `
369
745
  style={
370
746
  Array [
371
747
  Object {
372
- "backgroundColor": "#7622d7",
748
+ "backgroundColor": "#8505a2",
373
749
  "borderRadius": 8,
374
750
  "height": 16,
375
751
  "opacity": 0.5,
@@ -386,7 +762,7 @@ exports[`OptionList render isLoading correctly 1`] = `
386
762
  style={
387
763
  Array [
388
764
  Object {
389
- "backgroundColor": "#7622d7",
765
+ "backgroundColor": "#8505a2",
390
766
  "borderRadius": 8,
391
767
  "height": 16,
392
768
  "marginLeft": 8,
@@ -414,16 +790,26 @@ exports[`OptionList renders correctly 1`] = `
414
790
  data={
415
791
  Array [
416
792
  Object {
417
- "text": "A",
418
- "value": "a",
419
- },
420
- Object {
421
- "text": "B",
422
- "value": "b",
793
+ "category": "A",
794
+ "data": Array [
795
+ Object {
796
+ "text": "A1",
797
+ "value": "a1",
798
+ },
799
+ ],
423
800
  },
424
801
  Object {
425
- "text": "C",
426
- "value": "c",
802
+ "category": "B",
803
+ "data": Array [
804
+ Object {
805
+ "text": "B1",
806
+ "value": "b1",
807
+ },
808
+ Object {
809
+ "text": "B2",
810
+ "value": "b2",
811
+ },
812
+ ],
427
813
  },
428
814
  ]
429
815
  }
@@ -440,46 +826,46 @@ exports[`OptionList renders correctly 1`] = `
440
826
  onScrollBeginDrag={[Function]}
441
827
  onScrollEndDrag={[Function]}
442
828
  onScrollToIndexFailed={[Function]}
443
- removeClippedSubviews={false}
444
829
  renderItem={[Function]}
445
830
  scrollEventThrottle={50}
446
- stickyHeaderIndices={Array []}
447
- style={
448
- Object {
449
- "paddingHorizontal": 16,
450
- }
831
+ stickyHeaderIndices={
832
+ Array [
833
+ 0,
834
+ 3,
835
+ ]
451
836
  }
452
- viewabilityConfigCallbackPairs={Array []}
837
+ style={Object {}}
453
838
  >
454
839
  <View>
455
840
  <View
456
841
  onLayout={[Function]}
457
842
  style={null}
458
843
  >
459
- <View>
460
- <View
461
- accessibilityState={
844
+ <View
845
+ style={
846
+ Array [
462
847
  Object {
463
- "disabled": false,
464
- }
465
- }
466
- accessible={true}
467
- focusable={true}
468
- onClick={[Function]}
469
- onResponderGrant={[Function]}
470
- onResponderMove={[Function]}
471
- onResponderRelease={[Function]}
472
- onResponderTerminate={[Function]}
473
- onResponderTerminationRequest={[Function]}
474
- onStartShouldSetResponder={[Function]}
848
+ "alignContent": "center",
849
+ "backgroundColor": "#e8e9ea",
850
+ "display": "flex",
851
+ "flexDirection": "row",
852
+ "justifyContent": "space-between",
853
+ "marginBottom": 16,
854
+ "paddingHorizontal": 16,
855
+ "paddingVertical": 8,
856
+ },
857
+ Object {
858
+ "marginBottom": 0,
859
+ },
860
+ ]
861
+ }
862
+ >
863
+ <View
475
864
  style={
476
865
  Array [
477
866
  Object {
478
- "alignItems": "center",
479
- "backgroundColor": "#f1e9fb",
867
+ "display": "flex",
480
868
  "flexDirection": "row",
481
- "opacity": 1,
482
- "padding": 16,
483
869
  },
484
870
  undefined,
485
871
  ]
@@ -489,18 +875,128 @@ exports[`OptionList renders correctly 1`] = `
489
875
  style={
490
876
  Array [
491
877
  Object {
492
- "flex": 1,
878
+ "marginRight": 8,
493
879
  },
494
880
  undefined,
495
881
  ]
496
882
  }
497
- >
498
- <Text
499
- style={
500
- Array [
501
- Object {
502
- "color": "#292a2b",
503
- "fontFamily": "BeVietnamPro-Regular",
883
+ />
884
+ <Text
885
+ style={
886
+ Array [
887
+ Object {
888
+ "color": "#001f23",
889
+ "fontFamily": "BeVietnamPro-Regular",
890
+ "fontSize": 16,
891
+ "letterSpacing": 0.48,
892
+ "lineHeight": 24,
893
+ },
894
+ undefined,
895
+ ]
896
+ }
897
+ themeFontSize="large"
898
+ themeFontWeight="regular"
899
+ themeIntent="body"
900
+ >
901
+ A
902
+ </Text>
903
+ </View>
904
+ </View>
905
+ </View>
906
+ <View
907
+ onLayout={[Function]}
908
+ style={null}
909
+ >
910
+ <View>
911
+ <View
912
+ highlighted={false}
913
+ section={
914
+ Object {
915
+ "category": "A",
916
+ "data": Array [
917
+ Object {
918
+ "text": "A1",
919
+ "value": "a1",
920
+ },
921
+ ],
922
+ }
923
+ }
924
+ style={
925
+ Array [
926
+ Object {
927
+ "marginTop": 12,
928
+ },
929
+ undefined,
930
+ ]
931
+ }
932
+ trailingItem={
933
+ Object {
934
+ "text": "A1",
935
+ "value": "a1",
936
+ }
937
+ }
938
+ trailingSection={
939
+ Object {
940
+ "category": "B",
941
+ "data": Array [
942
+ Object {
943
+ "text": "B1",
944
+ "value": "b1",
945
+ },
946
+ Object {
947
+ "text": "B2",
948
+ "value": "b2",
949
+ },
950
+ ],
951
+ }
952
+ }
953
+ />
954
+ <View
955
+ accessibilityState={
956
+ Object {
957
+ "disabled": false,
958
+ }
959
+ }
960
+ accessible={true}
961
+ focusable={true}
962
+ onClick={[Function]}
963
+ onResponderGrant={[Function]}
964
+ onResponderMove={[Function]}
965
+ onResponderRelease={[Function]}
966
+ onResponderTerminate={[Function]}
967
+ onResponderTerminationRequest={[Function]}
968
+ onStartShouldSetResponder={[Function]}
969
+ style={
970
+ Array [
971
+ Object {
972
+ "alignItems": "center",
973
+ "backgroundColor": "#f3e6f6",
974
+ "flexDirection": "row",
975
+ "opacity": 1,
976
+ "padding": 16,
977
+ },
978
+ Object {
979
+ "marginHorizontal": 12,
980
+ },
981
+ ]
982
+ }
983
+ >
984
+ <View
985
+ style={
986
+ Array [
987
+ Object {
988
+ "flex": 1,
989
+ },
990
+ undefined,
991
+ ]
992
+ }
993
+ >
994
+ <Text
995
+ style={
996
+ Array [
997
+ Object {
998
+ "color": "#001f23",
999
+ "fontFamily": "BeVietnamPro-Regular",
504
1000
  "fontSize": 16,
505
1001
  "letterSpacing": 0.48,
506
1002
  "lineHeight": 24,
@@ -512,10 +1008,123 @@ exports[`OptionList renders correctly 1`] = `
512
1008
  themeFontWeight="regular"
513
1009
  themeIntent="body"
514
1010
  >
515
- A
1011
+ A1
516
1012
  </Text>
517
1013
  </View>
518
1014
  </View>
1015
+ <View
1016
+ highlighted={false}
1017
+ leadingItem={
1018
+ Object {
1019
+ "text": "A1",
1020
+ "value": "a1",
1021
+ }
1022
+ }
1023
+ section={
1024
+ Object {
1025
+ "category": "A",
1026
+ "data": Array [
1027
+ Object {
1028
+ "text": "A1",
1029
+ "value": "a1",
1030
+ },
1031
+ ],
1032
+ }
1033
+ }
1034
+ style={
1035
+ Array [
1036
+ Object {
1037
+ "marginTop": 12,
1038
+ },
1039
+ undefined,
1040
+ ]
1041
+ }
1042
+ trailingSection={
1043
+ Object {
1044
+ "category": "B",
1045
+ "data": Array [
1046
+ Object {
1047
+ "text": "B1",
1048
+ "value": "b1",
1049
+ },
1050
+ Object {
1051
+ "text": "B2",
1052
+ "value": "b2",
1053
+ },
1054
+ ],
1055
+ }
1056
+ }
1057
+ />
1058
+ </View>
1059
+ </View>
1060
+ <View
1061
+ onLayout={[Function]}
1062
+ style={null}
1063
+ />
1064
+ <View
1065
+ onLayout={[Function]}
1066
+ style={null}
1067
+ >
1068
+ <View
1069
+ style={
1070
+ Array [
1071
+ Object {
1072
+ "alignContent": "center",
1073
+ "backgroundColor": "#e8e9ea",
1074
+ "display": "flex",
1075
+ "flexDirection": "row",
1076
+ "justifyContent": "space-between",
1077
+ "marginBottom": 16,
1078
+ "paddingHorizontal": 16,
1079
+ "paddingVertical": 8,
1080
+ },
1081
+ Object {
1082
+ "marginBottom": 0,
1083
+ },
1084
+ ]
1085
+ }
1086
+ >
1087
+ <View
1088
+ style={
1089
+ Array [
1090
+ Object {
1091
+ "display": "flex",
1092
+ "flexDirection": "row",
1093
+ },
1094
+ undefined,
1095
+ ]
1096
+ }
1097
+ >
1098
+ <View
1099
+ style={
1100
+ Array [
1101
+ Object {
1102
+ "marginRight": 8,
1103
+ },
1104
+ undefined,
1105
+ ]
1106
+ }
1107
+ />
1108
+ <Text
1109
+ style={
1110
+ Array [
1111
+ Object {
1112
+ "color": "#001f23",
1113
+ "fontFamily": "BeVietnamPro-Regular",
1114
+ "fontSize": 16,
1115
+ "letterSpacing": 0.48,
1116
+ "lineHeight": 24,
1117
+ },
1118
+ undefined,
1119
+ ]
1120
+ }
1121
+ themeFontSize="large"
1122
+ themeFontWeight="regular"
1123
+ themeIntent="body"
1124
+ >
1125
+ B
1126
+ </Text>
1127
+ </View>
519
1128
  </View>
520
1129
  </View>
521
1130
  <View
@@ -523,6 +1132,49 @@ exports[`OptionList renders correctly 1`] = `
523
1132
  style={null}
524
1133
  >
525
1134
  <View>
1135
+ <View
1136
+ highlighted={false}
1137
+ leadingSection={
1138
+ Object {
1139
+ "category": "A",
1140
+ "data": Array [
1141
+ Object {
1142
+ "text": "A1",
1143
+ "value": "a1",
1144
+ },
1145
+ ],
1146
+ }
1147
+ }
1148
+ section={
1149
+ Object {
1150
+ "category": "B",
1151
+ "data": Array [
1152
+ Object {
1153
+ "text": "B1",
1154
+ "value": "b1",
1155
+ },
1156
+ Object {
1157
+ "text": "B2",
1158
+ "value": "b2",
1159
+ },
1160
+ ],
1161
+ }
1162
+ }
1163
+ style={
1164
+ Array [
1165
+ Object {
1166
+ "marginTop": 12,
1167
+ },
1168
+ undefined,
1169
+ ]
1170
+ }
1171
+ trailingItem={
1172
+ Object {
1173
+ "text": "B1",
1174
+ "value": "b1",
1175
+ }
1176
+ }
1177
+ />
526
1178
  <View
527
1179
  accessibilityState={
528
1180
  Object {
@@ -547,7 +1199,9 @@ exports[`OptionList renders correctly 1`] = `
547
1199
  "opacity": 1,
548
1200
  "padding": 16,
549
1201
  },
550
- undefined,
1202
+ Object {
1203
+ "marginHorizontal": 12,
1204
+ },
551
1205
  ]
552
1206
  }
553
1207
  >
@@ -565,7 +1219,7 @@ exports[`OptionList renders correctly 1`] = `
565
1219
  style={
566
1220
  Array [
567
1221
  Object {
568
- "color": "#292a2b",
1222
+ "color": "#001f23",
569
1223
  "fontFamily": "BeVietnamPro-Regular",
570
1224
  "fontSize": 16,
571
1225
  "letterSpacing": 0.48,
@@ -578,10 +1232,59 @@ exports[`OptionList renders correctly 1`] = `
578
1232
  themeFontWeight="regular"
579
1233
  themeIntent="body"
580
1234
  >
581
- B
1235
+ B1
582
1236
  </Text>
583
1237
  </View>
584
1238
  </View>
1239
+ <View
1240
+ highlighted={false}
1241
+ leadingItem={
1242
+ Object {
1243
+ "text": "B1",
1244
+ "value": "b1",
1245
+ }
1246
+ }
1247
+ leadingSection={
1248
+ Object {
1249
+ "category": "A",
1250
+ "data": Array [
1251
+ Object {
1252
+ "text": "A1",
1253
+ "value": "a1",
1254
+ },
1255
+ ],
1256
+ }
1257
+ }
1258
+ section={
1259
+ Object {
1260
+ "category": "B",
1261
+ "data": Array [
1262
+ Object {
1263
+ "text": "B1",
1264
+ "value": "b1",
1265
+ },
1266
+ Object {
1267
+ "text": "B2",
1268
+ "value": "b2",
1269
+ },
1270
+ ],
1271
+ }
1272
+ }
1273
+ style={
1274
+ Array [
1275
+ Object {
1276
+ "marginTop": 4,
1277
+ },
1278
+ undefined,
1279
+ ]
1280
+ }
1281
+ trailingItem={
1282
+ Object {
1283
+ "text": "B2",
1284
+ "value": "b2",
1285
+ }
1286
+ }
1287
+ />
585
1288
  </View>
586
1289
  </View>
587
1290
  <View
@@ -613,7 +1316,9 @@ exports[`OptionList renders correctly 1`] = `
613
1316
  "opacity": 1,
614
1317
  "padding": 16,
615
1318
  },
616
- undefined,
1319
+ Object {
1320
+ "marginHorizontal": 12,
1321
+ },
617
1322
  ]
618
1323
  }
619
1324
  >
@@ -631,7 +1336,7 @@ exports[`OptionList renders correctly 1`] = `
631
1336
  style={
632
1337
  Array [
633
1338
  Object {
634
- "color": "#292a2b",
1339
+ "color": "#001f23",
635
1340
  "fontFamily": "BeVietnamPro-Regular",
636
1341
  "fontSize": 16,
637
1342
  "letterSpacing": 0.48,
@@ -644,12 +1349,59 @@ exports[`OptionList renders correctly 1`] = `
644
1349
  themeFontWeight="regular"
645
1350
  themeIntent="body"
646
1351
  >
647
- C
1352
+ B2
648
1353
  </Text>
649
1354
  </View>
650
1355
  </View>
1356
+ <View
1357
+ highlighted={false}
1358
+ leadingItem={
1359
+ Object {
1360
+ "text": "B2",
1361
+ "value": "b2",
1362
+ }
1363
+ }
1364
+ leadingSection={
1365
+ Object {
1366
+ "category": "A",
1367
+ "data": Array [
1368
+ Object {
1369
+ "text": "A1",
1370
+ "value": "a1",
1371
+ },
1372
+ ],
1373
+ }
1374
+ }
1375
+ section={
1376
+ Object {
1377
+ "category": "B",
1378
+ "data": Array [
1379
+ Object {
1380
+ "text": "B1",
1381
+ "value": "b1",
1382
+ },
1383
+ Object {
1384
+ "text": "B2",
1385
+ "value": "b2",
1386
+ },
1387
+ ],
1388
+ }
1389
+ }
1390
+ style={
1391
+ Array [
1392
+ Object {
1393
+ "marginTop": 12,
1394
+ },
1395
+ undefined,
1396
+ ]
1397
+ }
1398
+ />
651
1399
  </View>
652
1400
  </View>
1401
+ <View
1402
+ onLayout={[Function]}
1403
+ style={null}
1404
+ />
653
1405
  </View>
654
1406
  </RCTScrollView>
655
1407
  `;
@@ -660,16 +1412,26 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
660
1412
  data={
661
1413
  Array [
662
1414
  Object {
663
- "text": "A",
664
- "value": "a",
665
- },
666
- Object {
667
- "text": "B",
668
- "value": "b",
1415
+ "category": "A",
1416
+ "data": Array [
1417
+ Object {
1418
+ "text": "A1",
1419
+ "value": "a1",
1420
+ },
1421
+ ],
669
1422
  },
670
1423
  Object {
671
- "text": "C",
672
- "value": "c",
1424
+ "category": "B",
1425
+ "data": Array [
1426
+ Object {
1427
+ "text": "B1",
1428
+ "value": "b1",
1429
+ },
1430
+ Object {
1431
+ "text": "B2",
1432
+ "value": "b2",
1433
+ },
1434
+ ],
673
1435
  },
674
1436
  ]
675
1437
  }
@@ -686,23 +1448,131 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
686
1448
  onScrollBeginDrag={[Function]}
687
1449
  onScrollEndDrag={[Function]}
688
1450
  onScrollToIndexFailed={[Function]}
689
- removeClippedSubviews={false}
690
1451
  renderItem={[Function]}
691
1452
  scrollEventThrottle={50}
692
- stickyHeaderIndices={Array []}
693
- style={
694
- Object {
695
- "paddingHorizontal": 16,
696
- }
1453
+ stickyHeaderIndices={
1454
+ Array [
1455
+ 0,
1456
+ 3,
1457
+ ]
697
1458
  }
698
- viewabilityConfigCallbackPairs={Array []}
1459
+ style={Object {}}
699
1460
  >
700
1461
  <View>
1462
+ <View
1463
+ onLayout={[Function]}
1464
+ style={null}
1465
+ >
1466
+ <View
1467
+ style={
1468
+ Array [
1469
+ Object {
1470
+ "alignContent": "center",
1471
+ "backgroundColor": "#e8e9ea",
1472
+ "display": "flex",
1473
+ "flexDirection": "row",
1474
+ "justifyContent": "space-between",
1475
+ "marginBottom": 16,
1476
+ "paddingHorizontal": 16,
1477
+ "paddingVertical": 8,
1478
+ },
1479
+ Object {
1480
+ "marginBottom": 0,
1481
+ },
1482
+ ]
1483
+ }
1484
+ >
1485
+ <View
1486
+ style={
1487
+ Array [
1488
+ Object {
1489
+ "display": "flex",
1490
+ "flexDirection": "row",
1491
+ },
1492
+ undefined,
1493
+ ]
1494
+ }
1495
+ >
1496
+ <View
1497
+ style={
1498
+ Array [
1499
+ Object {
1500
+ "marginRight": 8,
1501
+ },
1502
+ undefined,
1503
+ ]
1504
+ }
1505
+ />
1506
+ <Text
1507
+ style={
1508
+ Array [
1509
+ Object {
1510
+ "color": "#001f23",
1511
+ "fontFamily": "BeVietnamPro-Regular",
1512
+ "fontSize": 16,
1513
+ "letterSpacing": 0.48,
1514
+ "lineHeight": 24,
1515
+ },
1516
+ undefined,
1517
+ ]
1518
+ }
1519
+ themeFontSize="large"
1520
+ themeFontWeight="regular"
1521
+ themeIntent="body"
1522
+ >
1523
+ A
1524
+ </Text>
1525
+ </View>
1526
+ </View>
1527
+ </View>
701
1528
  <View
702
1529
  onLayout={[Function]}
703
1530
  style={null}
704
1531
  >
705
1532
  <View>
1533
+ <View
1534
+ highlighted={false}
1535
+ section={
1536
+ Object {
1537
+ "category": "A",
1538
+ "data": Array [
1539
+ Object {
1540
+ "text": "A1",
1541
+ "value": "a1",
1542
+ },
1543
+ ],
1544
+ }
1545
+ }
1546
+ style={
1547
+ Array [
1548
+ Object {
1549
+ "marginTop": 12,
1550
+ },
1551
+ undefined,
1552
+ ]
1553
+ }
1554
+ trailingItem={
1555
+ Object {
1556
+ "text": "A1",
1557
+ "value": "a1",
1558
+ }
1559
+ }
1560
+ trailingSection={
1561
+ Object {
1562
+ "category": "B",
1563
+ "data": Array [
1564
+ Object {
1565
+ "text": "B1",
1566
+ "value": "b1",
1567
+ },
1568
+ Object {
1569
+ "text": "B2",
1570
+ "value": "b2",
1571
+ },
1572
+ ],
1573
+ }
1574
+ }
1575
+ />
706
1576
  <View
707
1577
  accessibilityState={
708
1578
  Object {
@@ -722,12 +1592,14 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
722
1592
  Array [
723
1593
  Object {
724
1594
  "alignItems": "center",
725
- "backgroundColor": "#f1e9fb",
1595
+ "backgroundColor": "#f3e6f6",
726
1596
  "flexDirection": "row",
727
1597
  "opacity": 1,
728
1598
  "padding": 16,
729
1599
  },
730
- undefined,
1600
+ Object {
1601
+ "marginHorizontal": 12,
1602
+ },
731
1603
  ]
732
1604
  }
733
1605
  >
@@ -745,7 +1617,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
745
1617
  style={
746
1618
  Array [
747
1619
  Object {
748
- "color": "#292a2b",
1620
+ "color": "#001f23",
749
1621
  "fontFamily": "BeVietnamPro-Regular",
750
1622
  "fontSize": 16,
751
1623
  "letterSpacing": 0.48,
@@ -758,10 +1630,123 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
758
1630
  themeFontWeight="regular"
759
1631
  themeIntent="body"
760
1632
  >
761
- A
1633
+ A1
762
1634
  </Text>
763
1635
  </View>
764
1636
  </View>
1637
+ <View
1638
+ highlighted={false}
1639
+ leadingItem={
1640
+ Object {
1641
+ "text": "A1",
1642
+ "value": "a1",
1643
+ }
1644
+ }
1645
+ section={
1646
+ Object {
1647
+ "category": "A",
1648
+ "data": Array [
1649
+ Object {
1650
+ "text": "A1",
1651
+ "value": "a1",
1652
+ },
1653
+ ],
1654
+ }
1655
+ }
1656
+ style={
1657
+ Array [
1658
+ Object {
1659
+ "marginTop": 12,
1660
+ },
1661
+ undefined,
1662
+ ]
1663
+ }
1664
+ trailingSection={
1665
+ Object {
1666
+ "category": "B",
1667
+ "data": Array [
1668
+ Object {
1669
+ "text": "B1",
1670
+ "value": "b1",
1671
+ },
1672
+ Object {
1673
+ "text": "B2",
1674
+ "value": "b2",
1675
+ },
1676
+ ],
1677
+ }
1678
+ }
1679
+ />
1680
+ </View>
1681
+ </View>
1682
+ <View
1683
+ onLayout={[Function]}
1684
+ style={null}
1685
+ />
1686
+ <View
1687
+ onLayout={[Function]}
1688
+ style={null}
1689
+ >
1690
+ <View
1691
+ style={
1692
+ Array [
1693
+ Object {
1694
+ "alignContent": "center",
1695
+ "backgroundColor": "#e8e9ea",
1696
+ "display": "flex",
1697
+ "flexDirection": "row",
1698
+ "justifyContent": "space-between",
1699
+ "marginBottom": 16,
1700
+ "paddingHorizontal": 16,
1701
+ "paddingVertical": 8,
1702
+ },
1703
+ Object {
1704
+ "marginBottom": 0,
1705
+ },
1706
+ ]
1707
+ }
1708
+ >
1709
+ <View
1710
+ style={
1711
+ Array [
1712
+ Object {
1713
+ "display": "flex",
1714
+ "flexDirection": "row",
1715
+ },
1716
+ undefined,
1717
+ ]
1718
+ }
1719
+ >
1720
+ <View
1721
+ style={
1722
+ Array [
1723
+ Object {
1724
+ "marginRight": 8,
1725
+ },
1726
+ undefined,
1727
+ ]
1728
+ }
1729
+ />
1730
+ <Text
1731
+ style={
1732
+ Array [
1733
+ Object {
1734
+ "color": "#001f23",
1735
+ "fontFamily": "BeVietnamPro-Regular",
1736
+ "fontSize": 16,
1737
+ "letterSpacing": 0.48,
1738
+ "lineHeight": 24,
1739
+ },
1740
+ undefined,
1741
+ ]
1742
+ }
1743
+ themeFontSize="large"
1744
+ themeFontWeight="regular"
1745
+ themeIntent="body"
1746
+ >
1747
+ B
1748
+ </Text>
1749
+ </View>
765
1750
  </View>
766
1751
  </View>
767
1752
  <View
@@ -769,6 +1754,49 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
769
1754
  style={null}
770
1755
  >
771
1756
  <View>
1757
+ <View
1758
+ highlighted={false}
1759
+ leadingSection={
1760
+ Object {
1761
+ "category": "A",
1762
+ "data": Array [
1763
+ Object {
1764
+ "text": "A1",
1765
+ "value": "a1",
1766
+ },
1767
+ ],
1768
+ }
1769
+ }
1770
+ section={
1771
+ Object {
1772
+ "category": "B",
1773
+ "data": Array [
1774
+ Object {
1775
+ "text": "B1",
1776
+ "value": "b1",
1777
+ },
1778
+ Object {
1779
+ "text": "B2",
1780
+ "value": "b2",
1781
+ },
1782
+ ],
1783
+ }
1784
+ }
1785
+ style={
1786
+ Array [
1787
+ Object {
1788
+ "marginTop": 12,
1789
+ },
1790
+ undefined,
1791
+ ]
1792
+ }
1793
+ trailingItem={
1794
+ Object {
1795
+ "text": "B1",
1796
+ "value": "b1",
1797
+ }
1798
+ }
1799
+ />
772
1800
  <View
773
1801
  accessibilityState={
774
1802
  Object {
@@ -793,7 +1821,9 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
793
1821
  "opacity": 1,
794
1822
  "padding": 16,
795
1823
  },
796
- undefined,
1824
+ Object {
1825
+ "marginHorizontal": 12,
1826
+ },
797
1827
  ]
798
1828
  }
799
1829
  >
@@ -811,7 +1841,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
811
1841
  style={
812
1842
  Array [
813
1843
  Object {
814
- "color": "#292a2b",
1844
+ "color": "#001f23",
815
1845
  "fontFamily": "BeVietnamPro-Regular",
816
1846
  "fontSize": 16,
817
1847
  "letterSpacing": 0.48,
@@ -824,10 +1854,59 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
824
1854
  themeFontWeight="regular"
825
1855
  themeIntent="body"
826
1856
  >
827
- B
1857
+ B1
828
1858
  </Text>
829
1859
  </View>
830
1860
  </View>
1861
+ <View
1862
+ highlighted={false}
1863
+ leadingItem={
1864
+ Object {
1865
+ "text": "B1",
1866
+ "value": "b1",
1867
+ }
1868
+ }
1869
+ leadingSection={
1870
+ Object {
1871
+ "category": "A",
1872
+ "data": Array [
1873
+ Object {
1874
+ "text": "A1",
1875
+ "value": "a1",
1876
+ },
1877
+ ],
1878
+ }
1879
+ }
1880
+ section={
1881
+ Object {
1882
+ "category": "B",
1883
+ "data": Array [
1884
+ Object {
1885
+ "text": "B1",
1886
+ "value": "b1",
1887
+ },
1888
+ Object {
1889
+ "text": "B2",
1890
+ "value": "b2",
1891
+ },
1892
+ ],
1893
+ }
1894
+ }
1895
+ style={
1896
+ Array [
1897
+ Object {
1898
+ "marginTop": 4,
1899
+ },
1900
+ undefined,
1901
+ ]
1902
+ }
1903
+ trailingItem={
1904
+ Object {
1905
+ "text": "B2",
1906
+ "value": "b2",
1907
+ }
1908
+ }
1909
+ />
831
1910
  </View>
832
1911
  </View>
833
1912
  <View
@@ -859,7 +1938,9 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
859
1938
  "opacity": 1,
860
1939
  "padding": 16,
861
1940
  },
862
- undefined,
1941
+ Object {
1942
+ "marginHorizontal": 12,
1943
+ },
863
1944
  ]
864
1945
  }
865
1946
  >
@@ -877,7 +1958,7 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
877
1958
  style={
878
1959
  Array [
879
1960
  Object {
880
- "color": "#292a2b",
1961
+ "color": "#001f23",
881
1962
  "fontFamily": "BeVietnamPro-Regular",
882
1963
  "fontSize": 16,
883
1964
  "letterSpacing": 0.48,
@@ -890,12 +1971,59 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
890
1971
  themeFontWeight="regular"
891
1972
  themeIntent="body"
892
1973
  >
893
- C
1974
+ B2
894
1975
  </Text>
895
1976
  </View>
896
1977
  </View>
1978
+ <View
1979
+ highlighted={false}
1980
+ leadingItem={
1981
+ Object {
1982
+ "text": "B2",
1983
+ "value": "b2",
1984
+ }
1985
+ }
1986
+ leadingSection={
1987
+ Object {
1988
+ "category": "A",
1989
+ "data": Array [
1990
+ Object {
1991
+ "text": "A1",
1992
+ "value": "a1",
1993
+ },
1994
+ ],
1995
+ }
1996
+ }
1997
+ section={
1998
+ Object {
1999
+ "category": "B",
2000
+ "data": Array [
2001
+ Object {
2002
+ "text": "B1",
2003
+ "value": "b1",
2004
+ },
2005
+ Object {
2006
+ "text": "B2",
2007
+ "value": "b2",
2008
+ },
2009
+ ],
2010
+ }
2011
+ }
2012
+ style={
2013
+ Array [
2014
+ Object {
2015
+ "marginTop": 12,
2016
+ },
2017
+ undefined,
2018
+ ]
2019
+ }
2020
+ />
897
2021
  </View>
898
2022
  </View>
2023
+ <View
2024
+ onLayout={[Function]}
2025
+ style={null}
2026
+ />
899
2027
  </View>
900
2028
  </RCTScrollView>
901
2029
  `;
@@ -906,16 +2034,26 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
906
2034
  data={
907
2035
  Array [
908
2036
  Object {
909
- "text": "A",
910
- "value": "a",
911
- },
912
- Object {
913
- "text": "B",
914
- "value": "b",
2037
+ "category": "A",
2038
+ "data": Array [
2039
+ Object {
2040
+ "text": "A1",
2041
+ "value": "a1",
2042
+ },
2043
+ ],
915
2044
  },
916
2045
  Object {
917
- "text": "C",
918
- "value": "c",
2046
+ "category": "B",
2047
+ "data": Array [
2048
+ Object {
2049
+ "text": "B1",
2050
+ "value": "b1",
2051
+ },
2052
+ Object {
2053
+ "text": "B2",
2054
+ "value": "b2",
2055
+ },
2056
+ ],
919
2057
  },
920
2058
  ]
921
2059
  }
@@ -932,23 +2070,131 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
932
2070
  onScrollBeginDrag={[Function]}
933
2071
  onScrollEndDrag={[Function]}
934
2072
  onScrollToIndexFailed={[Function]}
935
- removeClippedSubviews={false}
936
2073
  renderItem={[Function]}
937
2074
  scrollEventThrottle={50}
938
- stickyHeaderIndices={Array []}
939
- style={
940
- Object {
941
- "paddingHorizontal": 16,
942
- }
2075
+ stickyHeaderIndices={
2076
+ Array [
2077
+ 0,
2078
+ 3,
2079
+ ]
943
2080
  }
944
- viewabilityConfigCallbackPairs={Array []}
2081
+ style={Object {}}
945
2082
  >
946
2083
  <View>
2084
+ <View
2085
+ onLayout={[Function]}
2086
+ style={null}
2087
+ >
2088
+ <View
2089
+ style={
2090
+ Array [
2091
+ Object {
2092
+ "alignContent": "center",
2093
+ "backgroundColor": "#e8e9ea",
2094
+ "display": "flex",
2095
+ "flexDirection": "row",
2096
+ "justifyContent": "space-between",
2097
+ "marginBottom": 16,
2098
+ "paddingHorizontal": 16,
2099
+ "paddingVertical": 8,
2100
+ },
2101
+ Object {
2102
+ "marginBottom": 0,
2103
+ },
2104
+ ]
2105
+ }
2106
+ >
2107
+ <View
2108
+ style={
2109
+ Array [
2110
+ Object {
2111
+ "display": "flex",
2112
+ "flexDirection": "row",
2113
+ },
2114
+ undefined,
2115
+ ]
2116
+ }
2117
+ >
2118
+ <View
2119
+ style={
2120
+ Array [
2121
+ Object {
2122
+ "marginRight": 8,
2123
+ },
2124
+ undefined,
2125
+ ]
2126
+ }
2127
+ />
2128
+ <Text
2129
+ style={
2130
+ Array [
2131
+ Object {
2132
+ "color": "#001f23",
2133
+ "fontFamily": "BeVietnamPro-Regular",
2134
+ "fontSize": 16,
2135
+ "letterSpacing": 0.48,
2136
+ "lineHeight": 24,
2137
+ },
2138
+ undefined,
2139
+ ]
2140
+ }
2141
+ themeFontSize="large"
2142
+ themeFontWeight="regular"
2143
+ themeIntent="body"
2144
+ >
2145
+ A
2146
+ </Text>
2147
+ </View>
2148
+ </View>
2149
+ </View>
947
2150
  <View
948
2151
  onLayout={[Function]}
949
2152
  style={null}
950
2153
  >
951
2154
  <View>
2155
+ <View
2156
+ highlighted={false}
2157
+ section={
2158
+ Object {
2159
+ "category": "A",
2160
+ "data": Array [
2161
+ Object {
2162
+ "text": "A1",
2163
+ "value": "a1",
2164
+ },
2165
+ ],
2166
+ }
2167
+ }
2168
+ style={
2169
+ Array [
2170
+ Object {
2171
+ "marginTop": 12,
2172
+ },
2173
+ undefined,
2174
+ ]
2175
+ }
2176
+ trailingItem={
2177
+ Object {
2178
+ "text": "A1",
2179
+ "value": "a1",
2180
+ }
2181
+ }
2182
+ trailingSection={
2183
+ Object {
2184
+ "category": "B",
2185
+ "data": Array [
2186
+ Object {
2187
+ "text": "B1",
2188
+ "value": "b1",
2189
+ },
2190
+ Object {
2191
+ "text": "B2",
2192
+ "value": "b2",
2193
+ },
2194
+ ],
2195
+ }
2196
+ }
2197
+ />
952
2198
  <View
953
2199
  accessibilityState={
954
2200
  Object {
@@ -968,12 +2214,14 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
968
2214
  Array [
969
2215
  Object {
970
2216
  "alignItems": "center",
971
- "backgroundColor": "#f1e9fb",
2217
+ "backgroundColor": "#f3e6f6",
972
2218
  "flexDirection": "row",
973
2219
  "opacity": 1,
974
2220
  "padding": 16,
975
2221
  },
976
- undefined,
2222
+ Object {
2223
+ "marginHorizontal": 12,
2224
+ },
977
2225
  ]
978
2226
  }
979
2227
  >
@@ -991,7 +2239,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
991
2239
  style={
992
2240
  Array [
993
2241
  Object {
994
- "color": "#292a2b",
2242
+ "color": "#001f23",
995
2243
  "fontFamily": "BeVietnamPro-Regular",
996
2244
  "fontSize": 16,
997
2245
  "letterSpacing": 0.48,
@@ -1004,10 +2252,123 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1004
2252
  themeFontWeight="regular"
1005
2253
  themeIntent="body"
1006
2254
  >
1007
- A
2255
+ A1
1008
2256
  </Text>
1009
2257
  </View>
1010
2258
  </View>
2259
+ <View
2260
+ highlighted={false}
2261
+ leadingItem={
2262
+ Object {
2263
+ "text": "A1",
2264
+ "value": "a1",
2265
+ }
2266
+ }
2267
+ section={
2268
+ Object {
2269
+ "category": "A",
2270
+ "data": Array [
2271
+ Object {
2272
+ "text": "A1",
2273
+ "value": "a1",
2274
+ },
2275
+ ],
2276
+ }
2277
+ }
2278
+ style={
2279
+ Array [
2280
+ Object {
2281
+ "marginTop": 12,
2282
+ },
2283
+ undefined,
2284
+ ]
2285
+ }
2286
+ trailingSection={
2287
+ Object {
2288
+ "category": "B",
2289
+ "data": Array [
2290
+ Object {
2291
+ "text": "B1",
2292
+ "value": "b1",
2293
+ },
2294
+ Object {
2295
+ "text": "B2",
2296
+ "value": "b2",
2297
+ },
2298
+ ],
2299
+ }
2300
+ }
2301
+ />
2302
+ </View>
2303
+ </View>
2304
+ <View
2305
+ onLayout={[Function]}
2306
+ style={null}
2307
+ />
2308
+ <View
2309
+ onLayout={[Function]}
2310
+ style={null}
2311
+ >
2312
+ <View
2313
+ style={
2314
+ Array [
2315
+ Object {
2316
+ "alignContent": "center",
2317
+ "backgroundColor": "#e8e9ea",
2318
+ "display": "flex",
2319
+ "flexDirection": "row",
2320
+ "justifyContent": "space-between",
2321
+ "marginBottom": 16,
2322
+ "paddingHorizontal": 16,
2323
+ "paddingVertical": 8,
2324
+ },
2325
+ Object {
2326
+ "marginBottom": 0,
2327
+ },
2328
+ ]
2329
+ }
2330
+ >
2331
+ <View
2332
+ style={
2333
+ Array [
2334
+ Object {
2335
+ "display": "flex",
2336
+ "flexDirection": "row",
2337
+ },
2338
+ undefined,
2339
+ ]
2340
+ }
2341
+ >
2342
+ <View
2343
+ style={
2344
+ Array [
2345
+ Object {
2346
+ "marginRight": 8,
2347
+ },
2348
+ undefined,
2349
+ ]
2350
+ }
2351
+ />
2352
+ <Text
2353
+ style={
2354
+ Array [
2355
+ Object {
2356
+ "color": "#001f23",
2357
+ "fontFamily": "BeVietnamPro-Regular",
2358
+ "fontSize": 16,
2359
+ "letterSpacing": 0.48,
2360
+ "lineHeight": 24,
2361
+ },
2362
+ undefined,
2363
+ ]
2364
+ }
2365
+ themeFontSize="large"
2366
+ themeFontWeight="regular"
2367
+ themeIntent="body"
2368
+ >
2369
+ B
2370
+ </Text>
2371
+ </View>
1011
2372
  </View>
1012
2373
  </View>
1013
2374
  <View
@@ -1015,6 +2376,49 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1015
2376
  style={null}
1016
2377
  >
1017
2378
  <View>
2379
+ <View
2380
+ highlighted={false}
2381
+ leadingSection={
2382
+ Object {
2383
+ "category": "A",
2384
+ "data": Array [
2385
+ Object {
2386
+ "text": "A1",
2387
+ "value": "a1",
2388
+ },
2389
+ ],
2390
+ }
2391
+ }
2392
+ section={
2393
+ Object {
2394
+ "category": "B",
2395
+ "data": Array [
2396
+ Object {
2397
+ "text": "B1",
2398
+ "value": "b1",
2399
+ },
2400
+ Object {
2401
+ "text": "B2",
2402
+ "value": "b2",
2403
+ },
2404
+ ],
2405
+ }
2406
+ }
2407
+ style={
2408
+ Array [
2409
+ Object {
2410
+ "marginTop": 12,
2411
+ },
2412
+ undefined,
2413
+ ]
2414
+ }
2415
+ trailingItem={
2416
+ Object {
2417
+ "text": "B1",
2418
+ "value": "b1",
2419
+ }
2420
+ }
2421
+ />
1018
2422
  <View
1019
2423
  accessibilityState={
1020
2424
  Object {
@@ -1039,7 +2443,9 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1039
2443
  "opacity": 1,
1040
2444
  "padding": 16,
1041
2445
  },
1042
- undefined,
2446
+ Object {
2447
+ "marginHorizontal": 12,
2448
+ },
1043
2449
  ]
1044
2450
  }
1045
2451
  >
@@ -1057,7 +2463,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1057
2463
  style={
1058
2464
  Array [
1059
2465
  Object {
1060
- "color": "#292a2b",
2466
+ "color": "#001f23",
1061
2467
  "fontFamily": "BeVietnamPro-Regular",
1062
2468
  "fontSize": 16,
1063
2469
  "letterSpacing": 0.48,
@@ -1070,10 +2476,59 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1070
2476
  themeFontWeight="regular"
1071
2477
  themeIntent="body"
1072
2478
  >
1073
- B
2479
+ B1
1074
2480
  </Text>
1075
2481
  </View>
1076
2482
  </View>
2483
+ <View
2484
+ highlighted={false}
2485
+ leadingItem={
2486
+ Object {
2487
+ "text": "B1",
2488
+ "value": "b1",
2489
+ }
2490
+ }
2491
+ leadingSection={
2492
+ Object {
2493
+ "category": "A",
2494
+ "data": Array [
2495
+ Object {
2496
+ "text": "A1",
2497
+ "value": "a1",
2498
+ },
2499
+ ],
2500
+ }
2501
+ }
2502
+ section={
2503
+ Object {
2504
+ "category": "B",
2505
+ "data": Array [
2506
+ Object {
2507
+ "text": "B1",
2508
+ "value": "b1",
2509
+ },
2510
+ Object {
2511
+ "text": "B2",
2512
+ "value": "b2",
2513
+ },
2514
+ ],
2515
+ }
2516
+ }
2517
+ style={
2518
+ Array [
2519
+ Object {
2520
+ "marginTop": 4,
2521
+ },
2522
+ undefined,
2523
+ ]
2524
+ }
2525
+ trailingItem={
2526
+ Object {
2527
+ "text": "B2",
2528
+ "value": "b2",
2529
+ }
2530
+ }
2531
+ />
1077
2532
  </View>
1078
2533
  </View>
1079
2534
  <View
@@ -1105,7 +2560,9 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1105
2560
  "opacity": 1,
1106
2561
  "padding": 16,
1107
2562
  },
1108
- undefined,
2563
+ Object {
2564
+ "marginHorizontal": 12,
2565
+ },
1109
2566
  ]
1110
2567
  }
1111
2568
  >
@@ -1123,7 +2580,7 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1123
2580
  style={
1124
2581
  Array [
1125
2582
  Object {
1126
- "color": "#292a2b",
2583
+ "color": "#001f23",
1127
2584
  "fontFamily": "BeVietnamPro-Regular",
1128
2585
  "fontSize": 16,
1129
2586
  "letterSpacing": 0.48,
@@ -1136,12 +2593,59 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
1136
2593
  themeFontWeight="regular"
1137
2594
  themeIntent="body"
1138
2595
  >
1139
- C
2596
+ B2
1140
2597
  </Text>
1141
2598
  </View>
1142
2599
  </View>
2600
+ <View
2601
+ highlighted={false}
2602
+ leadingItem={
2603
+ Object {
2604
+ "text": "B2",
2605
+ "value": "b2",
2606
+ }
2607
+ }
2608
+ leadingSection={
2609
+ Object {
2610
+ "category": "A",
2611
+ "data": Array [
2612
+ Object {
2613
+ "text": "A1",
2614
+ "value": "a1",
2615
+ },
2616
+ ],
2617
+ }
2618
+ }
2619
+ section={
2620
+ Object {
2621
+ "category": "B",
2622
+ "data": Array [
2623
+ Object {
2624
+ "text": "B1",
2625
+ "value": "b1",
2626
+ },
2627
+ Object {
2628
+ "text": "B2",
2629
+ "value": "b2",
2630
+ },
2631
+ ],
2632
+ }
2633
+ }
2634
+ style={
2635
+ Array [
2636
+ Object {
2637
+ "marginTop": 12,
2638
+ },
2639
+ undefined,
2640
+ ]
2641
+ }
2642
+ />
1143
2643
  </View>
1144
2644
  </View>
2645
+ <View
2646
+ onLayout={[Function]}
2647
+ style={null}
2648
+ />
1145
2649
  </View>
1146
2650
  </RCTScrollView>
1147
2651
  `;