@terreno/ui 0.23.0 → 0.24.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.
- package/dist/AiSuggestionBox.d.ts +11 -0
- package/dist/AiSuggestionBox.js +50 -23
- package/dist/AiSuggestionBox.js.map +1 -1
- package/dist/Button.js +4 -3
- package/dist/Button.js.map +1 -1
- package/dist/Common.d.ts +15 -2
- package/dist/Common.js.map +1 -1
- package/dist/IconButton.js +8 -4
- package/dist/IconButton.js.map +1 -1
- package/dist/icons/SparklesIcon.d.ts +7 -0
- package/dist/icons/SparklesIcon.js +32 -0
- package/dist/icons/SparklesIcon.js.map +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +1 -0
- package/dist/icons/index.js.map +1 -1
- package/package.json +2 -2
- package/src/ActionSheet.test.tsx +96 -0
- package/src/AiSuggestionBox.test.tsx +184 -15
- package/src/AiSuggestionBox.tsx +72 -55
- package/src/Button.test.tsx +31 -1
- package/src/Button.tsx +5 -4
- package/src/Common.ts +16 -2
- package/src/ErrorBoundary.test.tsx +3 -4
- package/src/IconButton.test.tsx +14 -0
- package/src/IconButton.tsx +9 -4
- package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +489 -102
- package/src/__snapshots__/Button.test.tsx.snap +18 -1
- package/src/__snapshots__/DecimalRangeActionSheet.test.tsx.snap +2 -0
- package/src/__snapshots__/ErrorPage.test.tsx.snap +1 -0
- package/src/__snapshots__/HeightActionSheet.test.tsx.snap +2 -0
- package/src/__snapshots__/HeightField.test.tsx.snap +5 -0
- package/src/__snapshots__/IconButton.test.tsx.snap +4 -0
- package/src/__snapshots__/InfoModalIcon.test.tsx.snap +4 -0
- package/src/__snapshots__/Modal.test.tsx.snap +3 -0
- package/src/__snapshots__/NumberPickerActionSheet.test.tsx.snap +2 -0
- package/src/__snapshots__/Page.test.tsx.snap +1 -0
- package/src/icons/SparklesIcon.test.tsx +16 -0
- package/src/icons/SparklesIcon.tsx +38 -0
- package/src/icons/__snapshots__/SparklesIcon.test.tsx.snap +47 -0
- package/src/icons/index.ts +1 -0
- package/src/login/__snapshots__/LoginScreen.test.tsx.snap +3 -0
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +2 -0
- package/src/testing/resolveTestId.test.ts +101 -0
|
@@ -13,6 +13,26 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for not-sta
|
|
|
13
13
|
{
|
|
14
14
|
"$$typeof": Symbol(react.test.json),
|
|
15
15
|
"children": [
|
|
16
|
+
{
|
|
17
|
+
"$$typeof": Symbol(react.test.json),
|
|
18
|
+
"children": [
|
|
19
|
+
{
|
|
20
|
+
"$$typeof": Symbol(react.test.json),
|
|
21
|
+
"children": null,
|
|
22
|
+
"props": {
|
|
23
|
+
"d": "M 200 72 Q 232 240 400 272 Q 232 304 200 472 Q 168 304 0 272 Q 168 240 200 72 Z M 420 4 Q 434.08 77.92 508 92 Q 434.08 106.08 420 180 Q 405.92 106.08 332 92 Q 405.92 77.92 420 4 Z M 420 348 Q 432.8 415.2 500 428 Q 432.8 440.8 420 508 Q 407.2 440.8 340 428 Q 407.2 415.2 420 348 Z",
|
|
24
|
+
},
|
|
25
|
+
"type": "Path",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
"props": {
|
|
29
|
+
"fill": "#092E3A",
|
|
30
|
+
"height": 16,
|
|
31
|
+
"viewBox": "0 0 512 512",
|
|
32
|
+
"width": 16,
|
|
33
|
+
},
|
|
34
|
+
"type": "Svg",
|
|
35
|
+
},
|
|
16
36
|
{
|
|
17
37
|
"$$typeof": Symbol(react.test.json),
|
|
18
38
|
"children": [
|
|
@@ -176,6 +196,26 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for generat
|
|
|
176
196
|
{
|
|
177
197
|
"$$typeof": Symbol(react.test.json),
|
|
178
198
|
"children": [
|
|
199
|
+
{
|
|
200
|
+
"$$typeof": Symbol(react.test.json),
|
|
201
|
+
"children": [
|
|
202
|
+
{
|
|
203
|
+
"$$typeof": Symbol(react.test.json),
|
|
204
|
+
"children": null,
|
|
205
|
+
"props": {
|
|
206
|
+
"d": "M 200 72 Q 232 240 400 272 Q 232 304 200 472 Q 168 304 0 272 Q 168 240 200 72 Z M 420 4 Q 434.08 77.92 508 92 Q 434.08 106.08 420 180 Q 405.92 106.08 332 92 Q 405.92 77.92 420 4 Z M 420 348 Q 432.8 415.2 500 428 Q 432.8 440.8 420 508 Q 407.2 440.8 340 428 Q 407.2 415.2 420 348 Z",
|
|
207
|
+
},
|
|
208
|
+
"type": "Path",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
"props": {
|
|
212
|
+
"fill": "#092E3A",
|
|
213
|
+
"height": 16,
|
|
214
|
+
"viewBox": "0 0 512 512",
|
|
215
|
+
"width": 16,
|
|
216
|
+
},
|
|
217
|
+
"type": "Svg",
|
|
218
|
+
},
|
|
179
219
|
{
|
|
180
220
|
"$$typeof": Symbol(react.test.json),
|
|
181
221
|
"children": [
|
|
@@ -339,6 +379,26 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for ready s
|
|
|
339
379
|
{
|
|
340
380
|
"$$typeof": Symbol(react.test.json),
|
|
341
381
|
"children": [
|
|
382
|
+
{
|
|
383
|
+
"$$typeof": Symbol(react.test.json),
|
|
384
|
+
"children": [
|
|
385
|
+
{
|
|
386
|
+
"$$typeof": Symbol(react.test.json),
|
|
387
|
+
"children": null,
|
|
388
|
+
"props": {
|
|
389
|
+
"d": "M 200 72 Q 232 240 400 272 Q 232 304 200 472 Q 168 304 0 272 Q 168 240 200 72 Z M 420 4 Q 434.08 77.92 508 92 Q 434.08 106.08 420 180 Q 405.92 106.08 332 92 Q 405.92 77.92 420 4 Z M 420 348 Q 432.8 415.2 500 428 Q 432.8 440.8 420 508 Q 407.2 440.8 340 428 Q 407.2 415.2 420 348 Z",
|
|
390
|
+
},
|
|
391
|
+
"type": "Path",
|
|
392
|
+
},
|
|
393
|
+
],
|
|
394
|
+
"props": {
|
|
395
|
+
"fill": "#092E3A",
|
|
396
|
+
"height": 16,
|
|
397
|
+
"viewBox": "0 0 512 512",
|
|
398
|
+
"width": 16,
|
|
399
|
+
},
|
|
400
|
+
"type": "Svg",
|
|
401
|
+
},
|
|
342
402
|
{
|
|
343
403
|
"$$typeof": Symbol(react.test.json),
|
|
344
404
|
"children": [
|
|
@@ -485,38 +545,65 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for ready s
|
|
|
485
545
|
{
|
|
486
546
|
"$$typeof": Symbol(react.test.json),
|
|
487
547
|
"children": [
|
|
488
|
-
|
|
548
|
+
{
|
|
549
|
+
"$$typeof": Symbol(react.test.json),
|
|
550
|
+
"children": [
|
|
551
|
+
"Hide",
|
|
552
|
+
],
|
|
553
|
+
"props": {
|
|
554
|
+
"style": {
|
|
555
|
+
"color": "#2B6072",
|
|
556
|
+
"fontSize": 14,
|
|
557
|
+
"fontWeight": "700",
|
|
558
|
+
},
|
|
559
|
+
},
|
|
560
|
+
"type": "Text",
|
|
561
|
+
},
|
|
489
562
|
],
|
|
490
563
|
"props": {
|
|
491
|
-
"numberOfLines": 0,
|
|
492
|
-
"selectable": undefined,
|
|
493
564
|
"style": {
|
|
494
|
-
"
|
|
495
|
-
"fontFamily": "text-bold",
|
|
496
|
-
"fontSize": 10,
|
|
497
|
-
"textAlign": "left",
|
|
565
|
+
"flexDirection": "row",
|
|
498
566
|
},
|
|
499
567
|
"testID": undefined,
|
|
500
568
|
},
|
|
501
|
-
"type": "
|
|
569
|
+
"type": "View",
|
|
502
570
|
},
|
|
503
571
|
],
|
|
504
|
-
"props": {
|
|
572
|
+
"props": {
|
|
573
|
+
"style": {
|
|
574
|
+
"flexDirection": "row",
|
|
575
|
+
},
|
|
576
|
+
"testID": undefined,
|
|
577
|
+
},
|
|
505
578
|
"type": "View",
|
|
506
579
|
},
|
|
507
580
|
],
|
|
508
581
|
"props": {
|
|
509
|
-
"
|
|
582
|
+
"accessibilityHint": "Press to perform action",
|
|
583
|
+
"accessibilityLabel": "Hide",
|
|
510
584
|
"accessibilityRole": "button",
|
|
511
|
-
"
|
|
585
|
+
"accessibilityState": {
|
|
586
|
+
"disabled": false,
|
|
587
|
+
},
|
|
588
|
+
"disabled": false,
|
|
589
|
+
"onPress": [Function: debounced],
|
|
512
590
|
"style": {
|
|
591
|
+
"alignItems": "center",
|
|
592
|
+
"alignSelf": "flex-start",
|
|
593
|
+
"backgroundColor": "transparent",
|
|
594
|
+
"borderColor": undefined,
|
|
595
|
+
"borderRadius": 360,
|
|
596
|
+
"borderWidth": undefined,
|
|
597
|
+
"flexDirection": "column",
|
|
513
598
|
"height": 28,
|
|
514
599
|
"justifyContent": "center",
|
|
515
600
|
"paddingHorizontal": 16,
|
|
601
|
+
"paddingVertical": 0,
|
|
602
|
+
"width": "auto",
|
|
516
603
|
},
|
|
517
604
|
"testID": "test-ai-suggestion-hide",
|
|
518
605
|
},
|
|
519
|
-
"type": "
|
|
606
|
+
"type": "PressableScale",
|
|
520
607
|
},
|
|
521
608
|
{
|
|
522
609
|
"$$typeof": Symbol(react.test.json),
|
|
@@ -527,41 +614,65 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for ready s
|
|
|
527
614
|
{
|
|
528
615
|
"$$typeof": Symbol(react.test.json),
|
|
529
616
|
"children": [
|
|
530
|
-
|
|
617
|
+
{
|
|
618
|
+
"$$typeof": Symbol(react.test.json),
|
|
619
|
+
"children": [
|
|
620
|
+
"Add to note",
|
|
621
|
+
],
|
|
622
|
+
"props": {
|
|
623
|
+
"style": {
|
|
624
|
+
"color": "#FFFFFF",
|
|
625
|
+
"fontSize": 14,
|
|
626
|
+
"fontWeight": "700",
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
"type": "Text",
|
|
630
|
+
},
|
|
531
631
|
],
|
|
532
632
|
"props": {
|
|
533
|
-
"numberOfLines": 0,
|
|
534
|
-
"selectable": undefined,
|
|
535
633
|
"style": {
|
|
536
|
-
"
|
|
537
|
-
"fontFamily": "text-bold",
|
|
538
|
-
"fontSize": 10,
|
|
539
|
-
"textAlign": "left",
|
|
634
|
+
"flexDirection": "row",
|
|
540
635
|
},
|
|
541
636
|
"testID": undefined,
|
|
542
637
|
},
|
|
543
|
-
"type": "
|
|
638
|
+
"type": "View",
|
|
544
639
|
},
|
|
545
640
|
],
|
|
546
|
-
"props": {
|
|
641
|
+
"props": {
|
|
642
|
+
"style": {
|
|
643
|
+
"flexDirection": "row",
|
|
644
|
+
},
|
|
645
|
+
"testID": undefined,
|
|
646
|
+
},
|
|
547
647
|
"type": "View",
|
|
548
648
|
},
|
|
549
649
|
],
|
|
550
650
|
"props": {
|
|
651
|
+
"accessibilityHint": "Press to perform action",
|
|
551
652
|
"accessibilityLabel": "Add to note",
|
|
552
653
|
"accessibilityRole": "button",
|
|
553
|
-
"
|
|
654
|
+
"accessibilityState": {
|
|
655
|
+
"disabled": false,
|
|
656
|
+
},
|
|
657
|
+
"disabled": false,
|
|
658
|
+
"onPress": [Function: debounced],
|
|
554
659
|
"style": {
|
|
555
660
|
"alignItems": "center",
|
|
661
|
+
"alignSelf": "flex-start",
|
|
556
662
|
"backgroundColor": "#2B6072",
|
|
663
|
+
"borderColor": undefined,
|
|
557
664
|
"borderRadius": 360,
|
|
665
|
+
"borderWidth": undefined,
|
|
666
|
+
"flexDirection": "column",
|
|
558
667
|
"height": 28,
|
|
559
668
|
"justifyContent": "center",
|
|
560
669
|
"paddingHorizontal": 16,
|
|
670
|
+
"paddingVertical": 0,
|
|
671
|
+
"width": "auto",
|
|
561
672
|
},
|
|
562
673
|
"testID": "test-ai-suggestion-add",
|
|
563
674
|
},
|
|
564
|
-
"type": "
|
|
675
|
+
"type": "PressableScale",
|
|
565
676
|
},
|
|
566
677
|
],
|
|
567
678
|
"props": {
|
|
@@ -678,7 +789,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for ready s
|
|
|
678
789
|
}
|
|
679
790
|
`;
|
|
680
791
|
|
|
681
|
-
exports[`AiSuggestionBox in TextArea snapshots should match snapshot for
|
|
792
|
+
exports[`AiSuggestionBox in TextArea snapshots should match snapshot for hidden state 1`] = `
|
|
682
793
|
{
|
|
683
794
|
"$$typeof": Symbol(react.test.json),
|
|
684
795
|
"children": [
|
|
@@ -691,6 +802,26 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
691
802
|
{
|
|
692
803
|
"$$typeof": Symbol(react.test.json),
|
|
693
804
|
"children": [
|
|
805
|
+
{
|
|
806
|
+
"$$typeof": Symbol(react.test.json),
|
|
807
|
+
"children": [
|
|
808
|
+
{
|
|
809
|
+
"$$typeof": Symbol(react.test.json),
|
|
810
|
+
"children": null,
|
|
811
|
+
"props": {
|
|
812
|
+
"d": "M 200 72 Q 232 240 400 272 Q 232 304 200 472 Q 168 304 0 272 Q 168 240 200 72 Z M 420 4 Q 434.08 77.92 508 92 Q 434.08 106.08 420 180 Q 405.92 106.08 332 92 Q 405.92 77.92 420 4 Z M 420 348 Q 432.8 415.2 500 428 Q 432.8 440.8 420 508 Q 407.2 440.8 340 428 Q 407.2 415.2 420 348 Z",
|
|
813
|
+
},
|
|
814
|
+
"type": "Path",
|
|
815
|
+
},
|
|
816
|
+
],
|
|
817
|
+
"props": {
|
|
818
|
+
"fill": "#092E3A",
|
|
819
|
+
"height": 16,
|
|
820
|
+
"viewBox": "0 0 512 512",
|
|
821
|
+
"width": 16,
|
|
822
|
+
},
|
|
823
|
+
"type": "Svg",
|
|
824
|
+
},
|
|
694
825
|
{
|
|
695
826
|
"$$typeof": Symbol(react.test.json),
|
|
696
827
|
"children": [
|
|
@@ -700,7 +831,7 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
700
831
|
{
|
|
701
832
|
"$$typeof": Symbol(react.test.json),
|
|
702
833
|
"children": [
|
|
703
|
-
"AI-generated note
|
|
834
|
+
"AI-generated note (hidden)",
|
|
704
835
|
],
|
|
705
836
|
"props": {
|
|
706
837
|
"numberOfLines": 0,
|
|
@@ -733,45 +864,128 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
733
864
|
"children": [
|
|
734
865
|
{
|
|
735
866
|
"$$typeof": Symbol(react.test.json),
|
|
736
|
-
"children":
|
|
867
|
+
"children": [
|
|
868
|
+
{
|
|
869
|
+
"$$typeof": Symbol(react.test.json),
|
|
870
|
+
"children": [
|
|
871
|
+
{
|
|
872
|
+
"$$typeof": Symbol(react.test.json),
|
|
873
|
+
"children": [
|
|
874
|
+
{
|
|
875
|
+
"$$typeof": Symbol(react.test.json),
|
|
876
|
+
"children": [
|
|
877
|
+
"Show",
|
|
878
|
+
],
|
|
879
|
+
"props": {
|
|
880
|
+
"style": {
|
|
881
|
+
"color": "#2B6072",
|
|
882
|
+
"fontSize": 14,
|
|
883
|
+
"fontWeight": "700",
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
"type": "Text",
|
|
887
|
+
},
|
|
888
|
+
],
|
|
889
|
+
"props": {
|
|
890
|
+
"style": {
|
|
891
|
+
"flexDirection": "row",
|
|
892
|
+
},
|
|
893
|
+
"testID": undefined,
|
|
894
|
+
},
|
|
895
|
+
"type": "View",
|
|
896
|
+
},
|
|
897
|
+
],
|
|
898
|
+
"props": {
|
|
899
|
+
"style": {
|
|
900
|
+
"flexDirection": "row",
|
|
901
|
+
},
|
|
902
|
+
"testID": undefined,
|
|
903
|
+
},
|
|
904
|
+
"type": "View",
|
|
905
|
+
},
|
|
906
|
+
],
|
|
737
907
|
"props": {
|
|
738
|
-
"
|
|
908
|
+
"accessibilityHint": "Press to perform action",
|
|
909
|
+
"accessibilityLabel": "Show",
|
|
739
910
|
"accessibilityRole": "button",
|
|
740
|
-
"
|
|
911
|
+
"accessibilityState": {
|
|
912
|
+
"disabled": false,
|
|
913
|
+
},
|
|
914
|
+
"disabled": false,
|
|
915
|
+
"onPress": [Function: debounced],
|
|
741
916
|
"style": {
|
|
742
917
|
"alignItems": "center",
|
|
743
|
-
"
|
|
918
|
+
"alignSelf": "flex-start",
|
|
919
|
+
"backgroundColor": "transparent",
|
|
920
|
+
"borderColor": undefined,
|
|
921
|
+
"borderRadius": 360,
|
|
922
|
+
"borderWidth": undefined,
|
|
923
|
+
"flexDirection": "column",
|
|
924
|
+
"height": 28,
|
|
744
925
|
"justifyContent": "center",
|
|
745
|
-
"
|
|
926
|
+
"paddingHorizontal": 16,
|
|
927
|
+
"paddingVertical": 0,
|
|
928
|
+
"width": "auto",
|
|
746
929
|
},
|
|
747
|
-
"testID": "test-ai-suggestion-
|
|
930
|
+
"testID": "test-ai-suggestion-show",
|
|
748
931
|
},
|
|
749
|
-
"type": "
|
|
932
|
+
"type": "PressableScale",
|
|
750
933
|
},
|
|
751
934
|
{
|
|
752
935
|
"$$typeof": Symbol(react.test.json),
|
|
753
|
-
"children":
|
|
936
|
+
"children": [
|
|
937
|
+
{
|
|
938
|
+
"$$typeof": Symbol(react.test.json),
|
|
939
|
+
"children": null,
|
|
940
|
+
"props": {
|
|
941
|
+
"accessibilityLabel": "Thumbs up",
|
|
942
|
+
"accessibilityRole": "button",
|
|
943
|
+
"onPress": [Function],
|
|
944
|
+
"style": {
|
|
945
|
+
"alignItems": "center",
|
|
946
|
+
"height": 24,
|
|
947
|
+
"justifyContent": "center",
|
|
948
|
+
"width": 24,
|
|
949
|
+
},
|
|
950
|
+
"testID": "test-ai-suggestion-thumbs-up",
|
|
951
|
+
},
|
|
952
|
+
"type": "Pressable",
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"$$typeof": Symbol(react.test.json),
|
|
956
|
+
"children": null,
|
|
957
|
+
"props": {
|
|
958
|
+
"accessibilityLabel": "Thumbs down",
|
|
959
|
+
"accessibilityRole": "button",
|
|
960
|
+
"onPress": [Function],
|
|
961
|
+
"style": {
|
|
962
|
+
"alignItems": "center",
|
|
963
|
+
"height": 24,
|
|
964
|
+
"justifyContent": "center",
|
|
965
|
+
"width": 24,
|
|
966
|
+
},
|
|
967
|
+
"testID": "test-ai-suggestion-thumbs-down",
|
|
968
|
+
},
|
|
969
|
+
"type": "Pressable",
|
|
970
|
+
},
|
|
971
|
+
],
|
|
754
972
|
"props": {
|
|
755
|
-
"accessibilityLabel": "Thumbs down",
|
|
756
|
-
"accessibilityRole": "button",
|
|
757
|
-
"onPress": [Function],
|
|
758
973
|
"style": {
|
|
759
974
|
"alignItems": "center",
|
|
760
|
-
"
|
|
761
|
-
"justifyContent": "center",
|
|
762
|
-
"width": 24,
|
|
975
|
+
"flexDirection": "row",
|
|
763
976
|
},
|
|
764
|
-
"testID": "test-ai-suggestion-
|
|
977
|
+
"testID": "test-ai-suggestion-feedback",
|
|
765
978
|
},
|
|
766
|
-
"type": "
|
|
979
|
+
"type": "View",
|
|
767
980
|
},
|
|
768
981
|
],
|
|
769
982
|
"props": {
|
|
770
983
|
"style": {
|
|
771
984
|
"alignItems": "center",
|
|
772
985
|
"flexDirection": "row",
|
|
986
|
+
"gap": 4,
|
|
773
987
|
},
|
|
774
|
-
"testID":
|
|
988
|
+
"testID": undefined,
|
|
775
989
|
},
|
|
776
990
|
"type": "View",
|
|
777
991
|
},
|
|
@@ -787,6 +1001,118 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
787
1001
|
},
|
|
788
1002
|
"type": "View",
|
|
789
1003
|
},
|
|
1004
|
+
],
|
|
1005
|
+
"props": {
|
|
1006
|
+
"style": {
|
|
1007
|
+
"backgroundColor": "#EBFAFF",
|
|
1008
|
+
"borderColor": "#90D8F0",
|
|
1009
|
+
"borderRadius": 8,
|
|
1010
|
+
"borderWidth": 1,
|
|
1011
|
+
"flexDirection": "column",
|
|
1012
|
+
"gap": 8,
|
|
1013
|
+
"padding": 8,
|
|
1014
|
+
"width": "100%",
|
|
1015
|
+
},
|
|
1016
|
+
"testID": "test-ai-suggestion",
|
|
1017
|
+
},
|
|
1018
|
+
"type": "View",
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"$$typeof": Symbol(react.test.json),
|
|
1022
|
+
"children": [
|
|
1023
|
+
{
|
|
1024
|
+
"$$typeof": Symbol(react.test.json),
|
|
1025
|
+
"children": null,
|
|
1026
|
+
"props": {
|
|
1027
|
+
"accessibilityHint": "Enter text here",
|
|
1028
|
+
"accessibilityState": {
|
|
1029
|
+
"disabled": undefined,
|
|
1030
|
+
},
|
|
1031
|
+
"aria-label": "Text input field",
|
|
1032
|
+
"autoCapitalize": "sentences",
|
|
1033
|
+
"autoCorrect": true,
|
|
1034
|
+
"blurOnSubmit": true,
|
|
1035
|
+
"enterKeyHint": undefined,
|
|
1036
|
+
"keyboardType": "default",
|
|
1037
|
+
"multiline": true,
|
|
1038
|
+
"nativeID": undefined,
|
|
1039
|
+
"numberOfLines": 1,
|
|
1040
|
+
"onBlur": [Function],
|
|
1041
|
+
"onChangeText": [Function],
|
|
1042
|
+
"onContentSizeChange": [Function],
|
|
1043
|
+
"onFocus": [Function],
|
|
1044
|
+
"onSubmitEditing": [Function],
|
|
1045
|
+
"placeholder": undefined,
|
|
1046
|
+
"placeholderTextColor": "#686868",
|
|
1047
|
+
"readOnly": undefined,
|
|
1048
|
+
"ref": [Function],
|
|
1049
|
+
"secureTextEntry": false,
|
|
1050
|
+
"style": {
|
|
1051
|
+
"color": "#1C1C1C",
|
|
1052
|
+
"flex": 1,
|
|
1053
|
+
"fontFamily": "text",
|
|
1054
|
+
"fontSize": 16,
|
|
1055
|
+
"gap": 10,
|
|
1056
|
+
"height": 40,
|
|
1057
|
+
"paddingVertical": 0,
|
|
1058
|
+
"width": "100%",
|
|
1059
|
+
},
|
|
1060
|
+
"testID": "test",
|
|
1061
|
+
"textContentType": "none",
|
|
1062
|
+
"underlineColorAndroid": "transparent",
|
|
1063
|
+
"value": "",
|
|
1064
|
+
},
|
|
1065
|
+
"type": "TextInput",
|
|
1066
|
+
},
|
|
1067
|
+
],
|
|
1068
|
+
"props": {
|
|
1069
|
+
"style": {
|
|
1070
|
+
"alignItems": "center",
|
|
1071
|
+
"flexDirection": "row",
|
|
1072
|
+
},
|
|
1073
|
+
"testID": undefined,
|
|
1074
|
+
},
|
|
1075
|
+
"type": "View",
|
|
1076
|
+
},
|
|
1077
|
+
],
|
|
1078
|
+
"props": {
|
|
1079
|
+
"style": {
|
|
1080
|
+
"backgroundColor": "#FFFFFF",
|
|
1081
|
+
"borderColor": "#9A9A9A",
|
|
1082
|
+
"borderRadius": 4,
|
|
1083
|
+
"borderWidth": 1,
|
|
1084
|
+
"flexDirection": "column",
|
|
1085
|
+
"gap": 10,
|
|
1086
|
+
"overflow": "hidden",
|
|
1087
|
+
"paddingHorizontal": 12,
|
|
1088
|
+
"paddingVertical": 8,
|
|
1089
|
+
},
|
|
1090
|
+
"testID": undefined,
|
|
1091
|
+
},
|
|
1092
|
+
"type": "View",
|
|
1093
|
+
},
|
|
1094
|
+
],
|
|
1095
|
+
"props": {
|
|
1096
|
+
"style": {
|
|
1097
|
+
"flexDirection": "column",
|
|
1098
|
+
"width": "100%",
|
|
1099
|
+
},
|
|
1100
|
+
"testID": undefined,
|
|
1101
|
+
},
|
|
1102
|
+
"type": "View",
|
|
1103
|
+
}
|
|
1104
|
+
`;
|
|
1105
|
+
|
|
1106
|
+
exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added state 1`] = `
|
|
1107
|
+
{
|
|
1108
|
+
"$$typeof": Symbol(react.test.json),
|
|
1109
|
+
"children": [
|
|
1110
|
+
{
|
|
1111
|
+
"$$typeof": Symbol(react.test.json),
|
|
1112
|
+
"children": [
|
|
1113
|
+
{
|
|
1114
|
+
"$$typeof": Symbol(react.test.json),
|
|
1115
|
+
"children": [
|
|
790
1116
|
{
|
|
791
1117
|
"$$typeof": Symbol(react.test.json),
|
|
792
1118
|
"children": [
|
|
@@ -795,39 +1121,21 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
795
1121
|
"children": [
|
|
796
1122
|
{
|
|
797
1123
|
"$$typeof": Symbol(react.test.json),
|
|
798
|
-
"children":
|
|
799
|
-
"AI-generated suggestion text.",
|
|
800
|
-
],
|
|
1124
|
+
"children": null,
|
|
801
1125
|
"props": {
|
|
802
|
-
"
|
|
803
|
-
"selectable": undefined,
|
|
804
|
-
"style": {
|
|
805
|
-
"color": "#1C1C1C",
|
|
806
|
-
"fontFamily": "text-regular",
|
|
807
|
-
"fontSize": 14,
|
|
808
|
-
"textAlign": "left",
|
|
809
|
-
},
|
|
810
|
-
"testID": undefined,
|
|
1126
|
+
"d": "M 200 72 Q 232 240 400 272 Q 232 304 200 472 Q 168 304 0 272 Q 168 240 200 72 Z M 420 4 Q 434.08 77.92 508 92 Q 434.08 106.08 420 180 Q 405.92 106.08 332 92 Q 405.92 77.92 420 4 Z M 420 348 Q 432.8 415.2 500 428 Q 432.8 440.8 420 508 Q 407.2 440.8 340 428 Q 407.2 415.2 420 348 Z",
|
|
811
1127
|
},
|
|
812
|
-
"type": "
|
|
1128
|
+
"type": "Path",
|
|
813
1129
|
},
|
|
814
1130
|
],
|
|
815
|
-
"props": {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
"
|
|
822
|
-
"width": "100%",
|
|
1131
|
+
"props": {
|
|
1132
|
+
"fill": "#092E3A",
|
|
1133
|
+
"height": 16,
|
|
1134
|
+
"viewBox": "0 0 512 512",
|
|
1135
|
+
"width": 16,
|
|
1136
|
+
},
|
|
1137
|
+
"type": "Svg",
|
|
823
1138
|
},
|
|
824
|
-
"testID": undefined,
|
|
825
|
-
},
|
|
826
|
-
"type": "View",
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"$$typeof": Symbol(react.test.json),
|
|
830
|
-
"children": [
|
|
831
1139
|
{
|
|
832
1140
|
"$$typeof": Symbol(react.test.json),
|
|
833
1141
|
"children": [
|
|
@@ -837,14 +1145,14 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
837
1145
|
{
|
|
838
1146
|
"$$typeof": Symbol(react.test.json),
|
|
839
1147
|
"children": [
|
|
840
|
-
"
|
|
1148
|
+
"AI-generated note added!",
|
|
841
1149
|
],
|
|
842
1150
|
"props": {
|
|
843
1151
|
"numberOfLines": 0,
|
|
844
1152
|
"selectable": undefined,
|
|
845
1153
|
"style": {
|
|
846
1154
|
"color": "#092E3A",
|
|
847
|
-
"fontFamily": "text-
|
|
1155
|
+
"fontFamily": "text-regular",
|
|
848
1156
|
"fontSize": 10,
|
|
849
1157
|
"textAlign": "left",
|
|
850
1158
|
},
|
|
@@ -858,17 +1166,12 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
858
1166
|
},
|
|
859
1167
|
],
|
|
860
1168
|
"props": {
|
|
861
|
-
"accessibilityLabel": "Hide suggestion",
|
|
862
|
-
"accessibilityRole": "button",
|
|
863
|
-
"onPress": [Function],
|
|
864
1169
|
"style": {
|
|
865
|
-
"
|
|
866
|
-
"justifyContent": "center",
|
|
867
|
-
"paddingHorizontal": 16,
|
|
1170
|
+
"flex": 1,
|
|
868
1171
|
},
|
|
869
|
-
"testID":
|
|
1172
|
+
"testID": undefined,
|
|
870
1173
|
},
|
|
871
|
-
"type": "
|
|
1174
|
+
"type": "View",
|
|
872
1175
|
},
|
|
873
1176
|
{
|
|
874
1177
|
"$$typeof": Symbol(react.test.json),
|
|
@@ -879,49 +1182,133 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
879
1182
|
{
|
|
880
1183
|
"$$typeof": Symbol(react.test.json),
|
|
881
1184
|
"children": [
|
|
882
|
-
|
|
1185
|
+
{
|
|
1186
|
+
"$$typeof": Symbol(react.test.json),
|
|
1187
|
+
"children": [
|
|
1188
|
+
{
|
|
1189
|
+
"$$typeof": Symbol(react.test.json),
|
|
1190
|
+
"children": [
|
|
1191
|
+
"Show",
|
|
1192
|
+
],
|
|
1193
|
+
"props": {
|
|
1194
|
+
"style": {
|
|
1195
|
+
"color": "#2B6072",
|
|
1196
|
+
"fontSize": 14,
|
|
1197
|
+
"fontWeight": "700",
|
|
1198
|
+
},
|
|
1199
|
+
},
|
|
1200
|
+
"type": "Text",
|
|
1201
|
+
},
|
|
1202
|
+
],
|
|
1203
|
+
"props": {
|
|
1204
|
+
"style": {
|
|
1205
|
+
"flexDirection": "row",
|
|
1206
|
+
},
|
|
1207
|
+
"testID": undefined,
|
|
1208
|
+
},
|
|
1209
|
+
"type": "View",
|
|
1210
|
+
},
|
|
883
1211
|
],
|
|
884
1212
|
"props": {
|
|
885
|
-
"numberOfLines": 0,
|
|
886
|
-
"selectable": undefined,
|
|
887
1213
|
"style": {
|
|
888
|
-
"
|
|
889
|
-
"fontFamily": "text-bold",
|
|
890
|
-
"fontSize": 10,
|
|
891
|
-
"textAlign": "left",
|
|
1214
|
+
"flexDirection": "row",
|
|
892
1215
|
},
|
|
893
1216
|
"testID": undefined,
|
|
894
1217
|
},
|
|
895
|
-
"type": "
|
|
1218
|
+
"type": "View",
|
|
896
1219
|
},
|
|
897
1220
|
],
|
|
898
|
-
"props": {
|
|
1221
|
+
"props": {
|
|
1222
|
+
"accessibilityHint": "Press to perform action",
|
|
1223
|
+
"accessibilityLabel": "Show",
|
|
1224
|
+
"accessibilityRole": "button",
|
|
1225
|
+
"accessibilityState": {
|
|
1226
|
+
"disabled": false,
|
|
1227
|
+
},
|
|
1228
|
+
"disabled": false,
|
|
1229
|
+
"onPress": [Function: debounced],
|
|
1230
|
+
"style": {
|
|
1231
|
+
"alignItems": "center",
|
|
1232
|
+
"alignSelf": "flex-start",
|
|
1233
|
+
"backgroundColor": "transparent",
|
|
1234
|
+
"borderColor": undefined,
|
|
1235
|
+
"borderRadius": 360,
|
|
1236
|
+
"borderWidth": undefined,
|
|
1237
|
+
"flexDirection": "column",
|
|
1238
|
+
"height": 28,
|
|
1239
|
+
"justifyContent": "center",
|
|
1240
|
+
"paddingHorizontal": 16,
|
|
1241
|
+
"paddingVertical": 0,
|
|
1242
|
+
"width": "auto",
|
|
1243
|
+
},
|
|
1244
|
+
"testID": "test-ai-suggestion-show",
|
|
1245
|
+
},
|
|
1246
|
+
"type": "PressableScale",
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"$$typeof": Symbol(react.test.json),
|
|
1250
|
+
"children": [
|
|
1251
|
+
{
|
|
1252
|
+
"$$typeof": Symbol(react.test.json),
|
|
1253
|
+
"children": null,
|
|
1254
|
+
"props": {
|
|
1255
|
+
"accessibilityLabel": "Thumbs up",
|
|
1256
|
+
"accessibilityRole": "button",
|
|
1257
|
+
"onPress": [Function],
|
|
1258
|
+
"style": {
|
|
1259
|
+
"alignItems": "center",
|
|
1260
|
+
"height": 24,
|
|
1261
|
+
"justifyContent": "center",
|
|
1262
|
+
"width": 24,
|
|
1263
|
+
},
|
|
1264
|
+
"testID": "test-ai-suggestion-thumbs-up",
|
|
1265
|
+
},
|
|
1266
|
+
"type": "Pressable",
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"$$typeof": Symbol(react.test.json),
|
|
1270
|
+
"children": null,
|
|
1271
|
+
"props": {
|
|
1272
|
+
"accessibilityLabel": "Thumbs down",
|
|
1273
|
+
"accessibilityRole": "button",
|
|
1274
|
+
"onPress": [Function],
|
|
1275
|
+
"style": {
|
|
1276
|
+
"alignItems": "center",
|
|
1277
|
+
"height": 24,
|
|
1278
|
+
"justifyContent": "center",
|
|
1279
|
+
"width": 24,
|
|
1280
|
+
},
|
|
1281
|
+
"testID": "test-ai-suggestion-thumbs-down",
|
|
1282
|
+
},
|
|
1283
|
+
"type": "Pressable",
|
|
1284
|
+
},
|
|
1285
|
+
],
|
|
1286
|
+
"props": {
|
|
1287
|
+
"style": {
|
|
1288
|
+
"alignItems": "center",
|
|
1289
|
+
"flexDirection": "row",
|
|
1290
|
+
},
|
|
1291
|
+
"testID": "test-ai-suggestion-feedback",
|
|
1292
|
+
},
|
|
899
1293
|
"type": "View",
|
|
900
1294
|
},
|
|
901
1295
|
],
|
|
902
1296
|
"props": {
|
|
903
|
-
"accessibilityLabel": "Add to note",
|
|
904
|
-
"accessibilityRole": "button",
|
|
905
|
-
"onPress": [Function],
|
|
906
1297
|
"style": {
|
|
907
1298
|
"alignItems": "center",
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"height": 28,
|
|
911
|
-
"justifyContent": "center",
|
|
912
|
-
"paddingHorizontal": 16,
|
|
1299
|
+
"flexDirection": "row",
|
|
1300
|
+
"gap": 4,
|
|
913
1301
|
},
|
|
914
|
-
"testID":
|
|
1302
|
+
"testID": undefined,
|
|
915
1303
|
},
|
|
916
|
-
"type": "
|
|
1304
|
+
"type": "View",
|
|
917
1305
|
},
|
|
918
1306
|
],
|
|
919
1307
|
"props": {
|
|
920
1308
|
"style": {
|
|
921
1309
|
"alignItems": "center",
|
|
922
1310
|
"flexDirection": "row",
|
|
923
|
-
"gap":
|
|
924
|
-
"justifyContent": "flex-end",
|
|
1311
|
+
"gap": 4,
|
|
925
1312
|
"width": "100%",
|
|
926
1313
|
},
|
|
927
1314
|
"testID": undefined,
|
|
@@ -931,11 +1318,11 @@ exports[`AiSuggestionBox in TextArea snapshots should match snapshot for added s
|
|
|
931
1318
|
],
|
|
932
1319
|
"props": {
|
|
933
1320
|
"style": {
|
|
934
|
-
"alignItems": "flex-end",
|
|
935
1321
|
"backgroundColor": "#DCF2E2",
|
|
936
1322
|
"borderColor": "#9BE7B2",
|
|
937
1323
|
"borderRadius": 8,
|
|
938
1324
|
"borderWidth": 1,
|
|
1325
|
+
"flexDirection": "column",
|
|
939
1326
|
"gap": 8,
|
|
940
1327
|
"padding": 8,
|
|
941
1328
|
"width": "100%",
|