@hero-design/rn 8.105.4-alpha.1 → 8.106.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 (55) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +22 -6
  3. package/es/index.js +2797 -2453
  4. package/lib/index.js +2800 -2456
  5. package/package.json +2 -2
  6. package/src/components/Button/Button.tsx +70 -44
  7. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +12 -33
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  9. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  10. package/src/components/Button/LoadingIndicator/index.tsx +4 -1
  11. package/src/components/Button/StyledButton.tsx +461 -313
  12. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +102 -86
  13. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +19 -18
  14. package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  15. package/src/components/Checkbox/{index.tsx → DefaultCheckBox.tsx} +6 -31
  16. package/src/components/Checkbox/InlineCheckBox.tsx +97 -0
  17. package/src/components/Checkbox/{StyledCheckbox.tsx → StyledDefaultCheckBox.tsx} +1 -0
  18. package/src/components/Checkbox/StyledInlineCheckBox.tsx +49 -0
  19. package/src/components/Checkbox/__tests__/{index.spec.tsx → DefaultCheckBox.spec.tsx} +21 -20
  20. package/src/components/Checkbox/__tests__/InlineCheckBox.spec.tsx +93 -0
  21. package/src/components/Checkbox/__tests__/{StyledCheckbox.spec.tsx → StyledDefaultCheckbox.spec.tsx} +2 -2
  22. package/src/components/Checkbox/__tests__/__snapshots__/{index.spec.tsx.snap → DefaultCheckBox.spec.tsx.snap} +6 -0
  23. package/src/components/Checkbox/__tests__/__snapshots__/InlineCheckBox.spec.tsx.snap +988 -0
  24. package/src/components/Checkbox/__tests__/__snapshots__/{StyledCheckbox.spec.tsx.snap → StyledDefaultCheckbox.spec.tsx.snap} +4 -0
  25. package/src/components/Checkbox/__tests__/utils.spec.ts +20 -0
  26. package/src/components/Checkbox/index.ts +9 -0
  27. package/src/components/Checkbox/utils.ts +25 -0
  28. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -2
  29. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +11 -8
  30. package/src/components/Drawer/__tests__/index.spec.tsx +15 -1
  31. package/src/components/Drawer/index.tsx +5 -2
  32. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
  33. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  34. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +59 -19
  35. package/src/theme/components/button.ts +52 -19
  36. package/src/theme/components/checkbox.ts +7 -0
  37. package/src/theme/components/drawer.ts +1 -1
  38. package/src/utils/__tests__/helpers.spec.ts +37 -1
  39. package/src/utils/helpers.ts +14 -0
  40. package/stats/8.105.4/rn-stats.html +4844 -0
  41. package/stats/8.106.0/rn-stats.html +4844 -0
  42. package/types/components/Button/Button.d.ts +5 -4
  43. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +3 -4
  44. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  45. package/types/components/Button/StyledButton.d.ts +8 -4
  46. package/types/components/Checkbox/DefaultCheckBox.d.ts +40 -0
  47. package/types/components/Checkbox/InlineCheckBox.d.ts +38 -0
  48. package/types/components/Checkbox/StyledInlineCheckBox.d.ts +45 -0
  49. package/types/components/Checkbox/index.d.ts +5 -45
  50. package/types/components/Checkbox/utils.d.ts +6 -0
  51. package/types/theme/components/button.d.ts +49 -15
  52. package/types/theme/components/checkbox.d.ts +6 -0
  53. package/types/theme/components/drawer.d.ts +1 -1
  54. package/types/utils/helpers.d.ts +2 -0
  55. /package/types/components/Checkbox/{StyledCheckbox.d.ts → StyledDefaultCheckBox.d.ts} +0 -0
@@ -0,0 +1,988 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`InlineCheckbox renders correctly when checked is false and there is no description 1`] = `
4
+ <View
5
+ style={
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <View
12
+ accessibilityRole="checkbox"
13
+ accessibilityState={
14
+ {
15
+ "busy": undefined,
16
+ "checked": false,
17
+ "disabled": false,
18
+ "expanded": undefined,
19
+ "selected": undefined,
20
+ }
21
+ }
22
+ accessibilityValue={
23
+ {
24
+ "max": undefined,
25
+ "min": undefined,
26
+ "now": undefined,
27
+ "text": undefined,
28
+ }
29
+ }
30
+ accessible={true}
31
+ collapsable={false}
32
+ focusable={false}
33
+ onClick={[Function]}
34
+ onResponderGrant={[Function]}
35
+ onResponderMove={[Function]}
36
+ onResponderRelease={[Function]}
37
+ onResponderTerminate={[Function]}
38
+ onResponderTerminationRequest={[Function]}
39
+ onStartShouldSetResponder={[Function]}
40
+ style={
41
+ {
42
+ "flexDirection": "row",
43
+ "gap": 8,
44
+ "opacity": 1,
45
+ }
46
+ }
47
+ >
48
+ <View
49
+ style={
50
+ [
51
+ {
52
+ "height": 14.67,
53
+ "margin": 8,
54
+ "overflow": "hidden",
55
+ "width": 14.67,
56
+ },
57
+ undefined,
58
+ ]
59
+ }
60
+ themeSize="medium"
61
+ >
62
+ <View
63
+ style={
64
+ [
65
+ {
66
+ "borderColor": "#001f23",
67
+ "borderRadius": 4,
68
+ "borderWidth": 2,
69
+ "flex": 1,
70
+ "overflow": "hidden",
71
+ },
72
+ undefined,
73
+ ]
74
+ }
75
+ themeSize="medium"
76
+ themeState="default"
77
+ />
78
+ </View>
79
+ </View>
80
+ <View
81
+ pointerEvents="box-none"
82
+ position="bottom"
83
+ style={
84
+ [
85
+ {
86
+ "bottom": 0,
87
+ "elevation": 9999,
88
+ "flexDirection": "column-reverse",
89
+ "left": 0,
90
+ "paddingHorizontal": 24,
91
+ "paddingVertical": 16,
92
+ "position": "absolute",
93
+ "right": 0,
94
+ "top": 0,
95
+ },
96
+ undefined,
97
+ ]
98
+ }
99
+ />
100
+ </View>
101
+ `;
102
+
103
+ exports[`InlineCheckbox renders correctly when checked is true and there is no description 1`] = `
104
+ <View
105
+ style={
106
+ {
107
+ "flex": 1,
108
+ }
109
+ }
110
+ >
111
+ <View
112
+ accessibilityRole="checkbox"
113
+ accessibilityState={
114
+ {
115
+ "busy": undefined,
116
+ "checked": true,
117
+ "disabled": false,
118
+ "expanded": undefined,
119
+ "selected": undefined,
120
+ }
121
+ }
122
+ accessibilityValue={
123
+ {
124
+ "max": undefined,
125
+ "min": undefined,
126
+ "now": undefined,
127
+ "text": undefined,
128
+ }
129
+ }
130
+ accessible={true}
131
+ collapsable={false}
132
+ focusable={false}
133
+ onClick={[Function]}
134
+ onResponderGrant={[Function]}
135
+ onResponderMove={[Function]}
136
+ onResponderRelease={[Function]}
137
+ onResponderTerminate={[Function]}
138
+ onResponderTerminationRequest={[Function]}
139
+ onStartShouldSetResponder={[Function]}
140
+ style={
141
+ {
142
+ "flexDirection": "row",
143
+ "gap": 8,
144
+ "opacity": 1,
145
+ }
146
+ }
147
+ >
148
+ <View
149
+ style={
150
+ [
151
+ {
152
+ "height": 14.67,
153
+ "margin": 8,
154
+ "overflow": "hidden",
155
+ "width": 14.67,
156
+ },
157
+ undefined,
158
+ ]
159
+ }
160
+ themeSize="medium"
161
+ >
162
+ <HeroIcon
163
+ name="box-check"
164
+ style={
165
+ [
166
+ {
167
+ "color": "#401960",
168
+ "fontSize": 24,
169
+ },
170
+ [
171
+ {
172
+ "borderRadius": 4,
173
+ "color": "#401960",
174
+ "fontSize": 14.67,
175
+ "overflow": "hidden",
176
+ "position": "absolute",
177
+ },
178
+ undefined,
179
+ ],
180
+ ]
181
+ }
182
+ testID="check-mark"
183
+ themeIntent="primary"
184
+ themeSize="medium"
185
+ themeState="checked"
186
+ />
187
+ <View
188
+ style={
189
+ [
190
+ {
191
+ "borderColor": "#401960",
192
+ "borderRadius": 4,
193
+ "borderWidth": 2,
194
+ "flex": 1,
195
+ "overflow": "hidden",
196
+ },
197
+ undefined,
198
+ ]
199
+ }
200
+ themeSize="medium"
201
+ themeState="checked"
202
+ />
203
+ </View>
204
+ </View>
205
+ <View
206
+ pointerEvents="box-none"
207
+ position="bottom"
208
+ style={
209
+ [
210
+ {
211
+ "bottom": 0,
212
+ "elevation": 9999,
213
+ "flexDirection": "column-reverse",
214
+ "left": 0,
215
+ "paddingHorizontal": 24,
216
+ "paddingVertical": 16,
217
+ "position": "absolute",
218
+ "right": 0,
219
+ "top": 0,
220
+ },
221
+ undefined,
222
+ ]
223
+ }
224
+ />
225
+ </View>
226
+ `;
227
+
228
+ exports[`InlineCheckbox renders correctly when disabled is false and readonly is false 1`] = `
229
+ <View
230
+ style={
231
+ {
232
+ "flex": 1,
233
+ }
234
+ }
235
+ >
236
+ <View
237
+ accessibilityLabel="Please agree to our privacy policy"
238
+ accessibilityRole="checkbox"
239
+ accessibilityState={
240
+ {
241
+ "busy": undefined,
242
+ "checked": false,
243
+ "disabled": false,
244
+ "expanded": undefined,
245
+ "selected": undefined,
246
+ }
247
+ }
248
+ accessibilityValue={
249
+ {
250
+ "max": undefined,
251
+ "min": undefined,
252
+ "now": undefined,
253
+ "text": undefined,
254
+ }
255
+ }
256
+ accessible={true}
257
+ collapsable={false}
258
+ focusable={false}
259
+ onClick={[Function]}
260
+ onResponderGrant={[Function]}
261
+ onResponderMove={[Function]}
262
+ onResponderRelease={[Function]}
263
+ onResponderTerminate={[Function]}
264
+ onResponderTerminationRequest={[Function]}
265
+ onStartShouldSetResponder={[Function]}
266
+ style={
267
+ {
268
+ "flexDirection": "row",
269
+ "gap": 8,
270
+ "opacity": 1,
271
+ }
272
+ }
273
+ >
274
+ <View
275
+ style={
276
+ [
277
+ {
278
+ "height": 14.67,
279
+ "margin": 8,
280
+ "overflow": "hidden",
281
+ "width": 14.67,
282
+ },
283
+ undefined,
284
+ ]
285
+ }
286
+ themeSize="medium"
287
+ >
288
+ <View
289
+ style={
290
+ [
291
+ {
292
+ "borderColor": "#001f23",
293
+ "borderRadius": 4,
294
+ "borderWidth": 2,
295
+ "flex": 1,
296
+ "overflow": "hidden",
297
+ },
298
+ undefined,
299
+ ]
300
+ }
301
+ themeSize="medium"
302
+ themeState="default"
303
+ />
304
+ </View>
305
+ <Text
306
+ allowFontScaling={false}
307
+ style={
308
+ [
309
+ {
310
+ "color": "#001f23",
311
+ "fontFamily": "BeVietnamPro-Regular",
312
+ "fontSize": 14,
313
+ "letterSpacing": 0.48,
314
+ "lineHeight": 22,
315
+ },
316
+ [
317
+ {
318
+ "alignSelf": "center",
319
+ "flex": 1,
320
+ },
321
+ undefined,
322
+ ],
323
+ ]
324
+ }
325
+ themeIntent="body"
326
+ themeTypeface="neutral"
327
+ themeVariant="small"
328
+ >
329
+ Please agree to our privacy policy
330
+ </Text>
331
+ </View>
332
+ <View
333
+ pointerEvents="box-none"
334
+ position="bottom"
335
+ style={
336
+ [
337
+ {
338
+ "bottom": 0,
339
+ "elevation": 9999,
340
+ "flexDirection": "column-reverse",
341
+ "left": 0,
342
+ "paddingHorizontal": 24,
343
+ "paddingVertical": 16,
344
+ "position": "absolute",
345
+ "right": 0,
346
+ "top": 0,
347
+ },
348
+ undefined,
349
+ ]
350
+ }
351
+ />
352
+ </View>
353
+ `;
354
+
355
+ exports[`InlineCheckbox renders correctly when disabled is false and readonly is true 1`] = `
356
+ <View
357
+ style={
358
+ {
359
+ "flex": 1,
360
+ }
361
+ }
362
+ >
363
+ <View
364
+ accessibilityLabel="Please agree to our privacy policy"
365
+ accessibilityRole="checkbox"
366
+ accessibilityState={
367
+ {
368
+ "busy": undefined,
369
+ "checked": false,
370
+ "disabled": true,
371
+ "expanded": undefined,
372
+ "selected": undefined,
373
+ }
374
+ }
375
+ accessibilityValue={
376
+ {
377
+ "max": undefined,
378
+ "min": undefined,
379
+ "now": undefined,
380
+ "text": undefined,
381
+ }
382
+ }
383
+ accessible={true}
384
+ collapsable={false}
385
+ focusable={false}
386
+ onClick={[Function]}
387
+ onResponderGrant={[Function]}
388
+ onResponderMove={[Function]}
389
+ onResponderRelease={[Function]}
390
+ onResponderTerminate={[Function]}
391
+ onResponderTerminationRequest={[Function]}
392
+ onStartShouldSetResponder={[Function]}
393
+ style={
394
+ {
395
+ "flexDirection": "row",
396
+ "gap": 8,
397
+ "opacity": 1,
398
+ }
399
+ }
400
+ >
401
+ <View
402
+ style={
403
+ [
404
+ {
405
+ "height": 14.67,
406
+ "margin": 8,
407
+ "overflow": "hidden",
408
+ "width": 14.67,
409
+ },
410
+ undefined,
411
+ ]
412
+ }
413
+ themeSize="medium"
414
+ >
415
+ <View
416
+ style={
417
+ [
418
+ {
419
+ "borderColor": "#4d6265",
420
+ "borderRadius": 4,
421
+ "borderWidth": 2,
422
+ "flex": 1,
423
+ "overflow": "hidden",
424
+ },
425
+ undefined,
426
+ ]
427
+ }
428
+ themeSize="medium"
429
+ themeState="readonly"
430
+ />
431
+ </View>
432
+ <Text
433
+ allowFontScaling={false}
434
+ style={
435
+ [
436
+ {
437
+ "color": "#001f23",
438
+ "fontFamily": "BeVietnamPro-Regular",
439
+ "fontSize": 14,
440
+ "letterSpacing": 0.48,
441
+ "lineHeight": 22,
442
+ },
443
+ [
444
+ {
445
+ "alignSelf": "center",
446
+ "flex": 1,
447
+ },
448
+ undefined,
449
+ ],
450
+ ]
451
+ }
452
+ themeIntent="body"
453
+ themeTypeface="neutral"
454
+ themeVariant="small"
455
+ >
456
+ Please agree to our privacy policy
457
+ </Text>
458
+ </View>
459
+ <View
460
+ pointerEvents="box-none"
461
+ position="bottom"
462
+ style={
463
+ [
464
+ {
465
+ "bottom": 0,
466
+ "elevation": 9999,
467
+ "flexDirection": "column-reverse",
468
+ "left": 0,
469
+ "paddingHorizontal": 24,
470
+ "paddingVertical": 16,
471
+ "position": "absolute",
472
+ "right": 0,
473
+ "top": 0,
474
+ },
475
+ undefined,
476
+ ]
477
+ }
478
+ />
479
+ </View>
480
+ `;
481
+
482
+ exports[`InlineCheckbox renders correctly when disabled is true and readonly is false 1`] = `
483
+ <View
484
+ style={
485
+ {
486
+ "flex": 1,
487
+ }
488
+ }
489
+ >
490
+ <View
491
+ accessibilityLabel="Please agree to our privacy policy"
492
+ accessibilityRole="checkbox"
493
+ accessibilityState={
494
+ {
495
+ "busy": undefined,
496
+ "checked": false,
497
+ "disabled": true,
498
+ "expanded": undefined,
499
+ "selected": undefined,
500
+ }
501
+ }
502
+ accessibilityValue={
503
+ {
504
+ "max": undefined,
505
+ "min": undefined,
506
+ "now": undefined,
507
+ "text": undefined,
508
+ }
509
+ }
510
+ accessible={true}
511
+ collapsable={false}
512
+ focusable={false}
513
+ onClick={[Function]}
514
+ onResponderGrant={[Function]}
515
+ onResponderMove={[Function]}
516
+ onResponderRelease={[Function]}
517
+ onResponderTerminate={[Function]}
518
+ onResponderTerminationRequest={[Function]}
519
+ onStartShouldSetResponder={[Function]}
520
+ style={
521
+ {
522
+ "flexDirection": "row",
523
+ "gap": 8,
524
+ "opacity": 1,
525
+ }
526
+ }
527
+ >
528
+ <View
529
+ style={
530
+ [
531
+ {
532
+ "height": 14.67,
533
+ "margin": 8,
534
+ "overflow": "hidden",
535
+ "width": 14.67,
536
+ },
537
+ undefined,
538
+ ]
539
+ }
540
+ themeSize="medium"
541
+ >
542
+ <View
543
+ style={
544
+ [
545
+ {
546
+ "borderColor": "#bfc1c5",
547
+ "borderRadius": 4,
548
+ "borderWidth": 2,
549
+ "flex": 1,
550
+ "overflow": "hidden",
551
+ },
552
+ undefined,
553
+ ]
554
+ }
555
+ themeSize="medium"
556
+ themeState="disabled"
557
+ />
558
+ </View>
559
+ <Text
560
+ allowFontScaling={false}
561
+ style={
562
+ [
563
+ {
564
+ "color": "#4d6265",
565
+ "fontFamily": "BeVietnamPro-Regular",
566
+ "fontSize": 14,
567
+ "letterSpacing": 0.48,
568
+ "lineHeight": 22,
569
+ },
570
+ [
571
+ {
572
+ "alignSelf": "center",
573
+ "flex": 1,
574
+ },
575
+ undefined,
576
+ ],
577
+ ]
578
+ }
579
+ themeIntent="subdued"
580
+ themeTypeface="neutral"
581
+ themeVariant="small"
582
+ >
583
+ Please agree to our privacy policy
584
+ </Text>
585
+ </View>
586
+ <View
587
+ pointerEvents="box-none"
588
+ position="bottom"
589
+ style={
590
+ [
591
+ {
592
+ "bottom": 0,
593
+ "elevation": 9999,
594
+ "flexDirection": "column-reverse",
595
+ "left": 0,
596
+ "paddingHorizontal": 24,
597
+ "paddingVertical": 16,
598
+ "position": "absolute",
599
+ "right": 0,
600
+ "top": 0,
601
+ },
602
+ undefined,
603
+ ]
604
+ }
605
+ />
606
+ </View>
607
+ `;
608
+
609
+ exports[`InlineCheckbox renders correctly when disabled is true and readonly is true 1`] = `
610
+ <View
611
+ style={
612
+ {
613
+ "flex": 1,
614
+ }
615
+ }
616
+ >
617
+ <View
618
+ accessibilityLabel="Please agree to our privacy policy"
619
+ accessibilityRole="checkbox"
620
+ accessibilityState={
621
+ {
622
+ "busy": undefined,
623
+ "checked": false,
624
+ "disabled": true,
625
+ "expanded": undefined,
626
+ "selected": undefined,
627
+ }
628
+ }
629
+ accessibilityValue={
630
+ {
631
+ "max": undefined,
632
+ "min": undefined,
633
+ "now": undefined,
634
+ "text": undefined,
635
+ }
636
+ }
637
+ accessible={true}
638
+ collapsable={false}
639
+ focusable={false}
640
+ onClick={[Function]}
641
+ onResponderGrant={[Function]}
642
+ onResponderMove={[Function]}
643
+ onResponderRelease={[Function]}
644
+ onResponderTerminate={[Function]}
645
+ onResponderTerminationRequest={[Function]}
646
+ onStartShouldSetResponder={[Function]}
647
+ style={
648
+ {
649
+ "flexDirection": "row",
650
+ "gap": 8,
651
+ "opacity": 1,
652
+ }
653
+ }
654
+ >
655
+ <View
656
+ style={
657
+ [
658
+ {
659
+ "height": 14.67,
660
+ "margin": 8,
661
+ "overflow": "hidden",
662
+ "width": 14.67,
663
+ },
664
+ undefined,
665
+ ]
666
+ }
667
+ themeSize="medium"
668
+ >
669
+ <View
670
+ style={
671
+ [
672
+ {
673
+ "borderColor": "#bfc1c5",
674
+ "borderRadius": 4,
675
+ "borderWidth": 2,
676
+ "flex": 1,
677
+ "overflow": "hidden",
678
+ },
679
+ undefined,
680
+ ]
681
+ }
682
+ themeSize="medium"
683
+ themeState="disabled"
684
+ />
685
+ </View>
686
+ <Text
687
+ allowFontScaling={false}
688
+ style={
689
+ [
690
+ {
691
+ "color": "#4d6265",
692
+ "fontFamily": "BeVietnamPro-Regular",
693
+ "fontSize": 14,
694
+ "letterSpacing": 0.48,
695
+ "lineHeight": 22,
696
+ },
697
+ [
698
+ {
699
+ "alignSelf": "center",
700
+ "flex": 1,
701
+ },
702
+ undefined,
703
+ ],
704
+ ]
705
+ }
706
+ themeIntent="subdued"
707
+ themeTypeface="neutral"
708
+ themeVariant="small"
709
+ >
710
+ Please agree to our privacy policy
711
+ </Text>
712
+ </View>
713
+ <View
714
+ pointerEvents="box-none"
715
+ position="bottom"
716
+ style={
717
+ [
718
+ {
719
+ "bottom": 0,
720
+ "elevation": 9999,
721
+ "flexDirection": "column-reverse",
722
+ "left": 0,
723
+ "paddingHorizontal": 24,
724
+ "paddingVertical": 16,
725
+ "position": "absolute",
726
+ "right": 0,
727
+ "top": 0,
728
+ },
729
+ undefined,
730
+ ]
731
+ }
732
+ />
733
+ </View>
734
+ `;
735
+
736
+ exports[`InlineCheckbox renders correctly when size is large 1`] = `
737
+ <View
738
+ style={
739
+ {
740
+ "flex": 1,
741
+ }
742
+ }
743
+ >
744
+ <View
745
+ accessibilityLabel="Please agree to our privacy policy"
746
+ accessibilityRole="checkbox"
747
+ accessibilityState={
748
+ {
749
+ "busy": undefined,
750
+ "checked": false,
751
+ "disabled": false,
752
+ "expanded": undefined,
753
+ "selected": undefined,
754
+ }
755
+ }
756
+ accessibilityValue={
757
+ {
758
+ "max": undefined,
759
+ "min": undefined,
760
+ "now": undefined,
761
+ "text": undefined,
762
+ }
763
+ }
764
+ accessible={true}
765
+ collapsable={false}
766
+ focusable={false}
767
+ onClick={[Function]}
768
+ onResponderGrant={[Function]}
769
+ onResponderMove={[Function]}
770
+ onResponderRelease={[Function]}
771
+ onResponderTerminate={[Function]}
772
+ onResponderTerminationRequest={[Function]}
773
+ onStartShouldSetResponder={[Function]}
774
+ style={
775
+ {
776
+ "flexDirection": "row",
777
+ "gap": 8,
778
+ "opacity": 1,
779
+ }
780
+ }
781
+ >
782
+ <View
783
+ style={
784
+ [
785
+ {
786
+ "height": 16,
787
+ "margin": 8,
788
+ "overflow": "hidden",
789
+ "width": 16,
790
+ },
791
+ undefined,
792
+ ]
793
+ }
794
+ themeSize="large"
795
+ >
796
+ <View
797
+ style={
798
+ [
799
+ {
800
+ "borderColor": "#001f23",
801
+ "borderRadius": 4,
802
+ "borderWidth": 2,
803
+ "flex": 1,
804
+ "overflow": "hidden",
805
+ },
806
+ undefined,
807
+ ]
808
+ }
809
+ themeSize="large"
810
+ themeState="default"
811
+ />
812
+ </View>
813
+ <Text
814
+ allowFontScaling={false}
815
+ style={
816
+ [
817
+ {
818
+ "color": "#001f23",
819
+ "fontFamily": "BeVietnamPro-Regular",
820
+ "fontSize": 16,
821
+ "letterSpacing": 0.48,
822
+ "lineHeight": 24,
823
+ },
824
+ [
825
+ {
826
+ "alignSelf": "center",
827
+ "flex": 1,
828
+ },
829
+ undefined,
830
+ ],
831
+ ]
832
+ }
833
+ themeIntent="body"
834
+ themeTypeface="neutral"
835
+ themeVariant="regular"
836
+ >
837
+ Please agree to our privacy policy
838
+ </Text>
839
+ </View>
840
+ <View
841
+ pointerEvents="box-none"
842
+ position="bottom"
843
+ style={
844
+ [
845
+ {
846
+ "bottom": 0,
847
+ "elevation": 9999,
848
+ "flexDirection": "column-reverse",
849
+ "left": 0,
850
+ "paddingHorizontal": 24,
851
+ "paddingVertical": 16,
852
+ "position": "absolute",
853
+ "right": 0,
854
+ "top": 0,
855
+ },
856
+ undefined,
857
+ ]
858
+ }
859
+ />
860
+ </View>
861
+ `;
862
+
863
+ exports[`InlineCheckbox renders correctly when size is medium 1`] = `
864
+ <View
865
+ style={
866
+ {
867
+ "flex": 1,
868
+ }
869
+ }
870
+ >
871
+ <View
872
+ accessibilityLabel="Please agree to our privacy policy"
873
+ accessibilityRole="checkbox"
874
+ accessibilityState={
875
+ {
876
+ "busy": undefined,
877
+ "checked": false,
878
+ "disabled": false,
879
+ "expanded": undefined,
880
+ "selected": undefined,
881
+ }
882
+ }
883
+ accessibilityValue={
884
+ {
885
+ "max": undefined,
886
+ "min": undefined,
887
+ "now": undefined,
888
+ "text": undefined,
889
+ }
890
+ }
891
+ accessible={true}
892
+ collapsable={false}
893
+ focusable={false}
894
+ onClick={[Function]}
895
+ onResponderGrant={[Function]}
896
+ onResponderMove={[Function]}
897
+ onResponderRelease={[Function]}
898
+ onResponderTerminate={[Function]}
899
+ onResponderTerminationRequest={[Function]}
900
+ onStartShouldSetResponder={[Function]}
901
+ style={
902
+ {
903
+ "flexDirection": "row",
904
+ "gap": 8,
905
+ "opacity": 1,
906
+ }
907
+ }
908
+ >
909
+ <View
910
+ style={
911
+ [
912
+ {
913
+ "height": 14.67,
914
+ "margin": 8,
915
+ "overflow": "hidden",
916
+ "width": 14.67,
917
+ },
918
+ undefined,
919
+ ]
920
+ }
921
+ themeSize="medium"
922
+ >
923
+ <View
924
+ style={
925
+ [
926
+ {
927
+ "borderColor": "#001f23",
928
+ "borderRadius": 4,
929
+ "borderWidth": 2,
930
+ "flex": 1,
931
+ "overflow": "hidden",
932
+ },
933
+ undefined,
934
+ ]
935
+ }
936
+ themeSize="medium"
937
+ themeState="default"
938
+ />
939
+ </View>
940
+ <Text
941
+ allowFontScaling={false}
942
+ style={
943
+ [
944
+ {
945
+ "color": "#001f23",
946
+ "fontFamily": "BeVietnamPro-Regular",
947
+ "fontSize": 14,
948
+ "letterSpacing": 0.48,
949
+ "lineHeight": 22,
950
+ },
951
+ [
952
+ {
953
+ "alignSelf": "center",
954
+ "flex": 1,
955
+ },
956
+ undefined,
957
+ ],
958
+ ]
959
+ }
960
+ themeIntent="body"
961
+ themeTypeface="neutral"
962
+ themeVariant="small"
963
+ >
964
+ Please agree to our privacy policy
965
+ </Text>
966
+ </View>
967
+ <View
968
+ pointerEvents="box-none"
969
+ position="bottom"
970
+ style={
971
+ [
972
+ {
973
+ "bottom": 0,
974
+ "elevation": 9999,
975
+ "flexDirection": "column-reverse",
976
+ "left": 0,
977
+ "paddingHorizontal": 24,
978
+ "paddingVertical": 16,
979
+ "position": "absolute",
980
+ "right": 0,
981
+ "top": 0,
982
+ },
983
+ undefined,
984
+ ]
985
+ }
986
+ />
987
+ </View>
988
+ `;