react-native-persona 1.2.6 → 1.2.10
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/CHANGELOG.md +27 -0
- package/RNPersonaInquiry.podspec +1 -1
- package/android/build.gradle +1 -1
- package/ios/PersonaInquiry.swift +36 -8
- package/package.json +2 -2
- package/persona-tools/Theme.js +27 -7
- package/persona-tools/Theme.ts +30 -7
- package/persona-tools/lib/AndroidResourcePrinter.js +264 -6
- package/persona-tools/lib/AndroidResourcePrinter.spec.js +225 -6
- package/persona-tools/lib/AndroidResourcePrinter.spec.ts +279 -6
- package/persona-tools/lib/AndroidResourcePrinter.ts +275 -7
- package/persona-tools/tools/AndroidThemeGenerator.js +5 -1
- package/persona-tools/tools/AndroidThemeGenerator.ts +22 -3
|
@@ -17,6 +17,16 @@ const EMPTY_THEME = {
|
|
|
17
17
|
bodyTextSize: null,
|
|
18
18
|
footnoteTextColor: null,
|
|
19
19
|
footnoteTextFont: null,
|
|
20
|
+
footnoteTextSize: null,
|
|
21
|
+
cameraInstructionsTextColor: null,
|
|
22
|
+
cameraInstructionsTextFont: null,
|
|
23
|
+
cameraInstructionsTextSize: null,
|
|
24
|
+
cameraHintTextColor: null,
|
|
25
|
+
cameraHintTextFont: null,
|
|
26
|
+
cameraHintTextSize: null,
|
|
27
|
+
cameraGuideHintTextColor: null,
|
|
28
|
+
cameraGuideHintTextFont: null,
|
|
29
|
+
cameraGuideHintTextSize: null,
|
|
20
30
|
// formLabelTextColor: null,
|
|
21
31
|
// formLabelTextFont: null,
|
|
22
32
|
textFieldTextColor: null,
|
|
@@ -31,6 +41,7 @@ const EMPTY_THEME = {
|
|
|
31
41
|
// buttonTextAlignment: null,
|
|
32
42
|
buttonCornerRadius: null,
|
|
33
43
|
buttonFont: null,
|
|
44
|
+
buttonTextSize: null,
|
|
34
45
|
progressColor: null,
|
|
35
46
|
successAsset: null,
|
|
36
47
|
failAsset: null,
|
|
@@ -40,7 +51,7 @@ const EMPTY_THEME = {
|
|
|
40
51
|
selfieAnimationWidthPercent: null,
|
|
41
52
|
};
|
|
42
53
|
function printTheme(theme) {
|
|
43
|
-
const { style, buttonDrawable, buttonColor } = new AndroidResourcePrinter_1.default(theme).process();
|
|
54
|
+
const { style, buttonDrawable, buttonSecondaryDrawable, buttonColor } = new AndroidResourcePrinter_1.default(theme).process();
|
|
44
55
|
return [
|
|
45
56
|
"res/values/styles_persona.xml",
|
|
46
57
|
"-----------------------------",
|
|
@@ -52,6 +63,12 @@ function printTheme(theme) {
|
|
|
52
63
|
prettyPrint: true,
|
|
53
64
|
}),
|
|
54
65
|
"\n",
|
|
66
|
+
"res/drawable/rn_persona_button_secondary.xml",
|
|
67
|
+
"----------------------------------",
|
|
68
|
+
buttonSecondaryDrawable.end({
|
|
69
|
+
prettyPrint: true,
|
|
70
|
+
}),
|
|
71
|
+
"\n",
|
|
55
72
|
"res/color/rn_persona_button.xml",
|
|
56
73
|
"-------------------------------",
|
|
57
74
|
buttonColor.end({ prettyPrint: true }),
|
|
@@ -71,6 +88,12 @@ it("works when empty", () => {
|
|
|
71
88
|
<?xml version=\\"1.0\\"?>
|
|
72
89
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
73
90
|
|
|
91
|
+
|
|
92
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
93
|
+
----------------------------------
|
|
94
|
+
<?xml version=\\"1.0\\"?>
|
|
95
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
96
|
+
|
|
74
97
|
|
|
75
98
|
res/color/rn_persona_button.xml
|
|
76
99
|
-------------------------------
|
|
@@ -102,6 +125,12 @@ it("primaryColor", () => {
|
|
|
102
125
|
<?xml version=\\"1.0\\"?>
|
|
103
126
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
104
127
|
|
|
128
|
+
|
|
129
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
130
|
+
----------------------------------
|
|
131
|
+
<?xml version=\\"1.0\\"?>
|
|
132
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
133
|
+
|
|
105
134
|
|
|
106
135
|
res/color/rn_persona_button.xml
|
|
107
136
|
-------------------------------
|
|
@@ -133,6 +162,12 @@ it("accentColor", () => {
|
|
|
133
162
|
<?xml version=\\"1.0\\"?>
|
|
134
163
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
135
164
|
|
|
165
|
+
|
|
166
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
167
|
+
----------------------------------
|
|
168
|
+
<?xml version=\\"1.0\\"?>
|
|
169
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
170
|
+
|
|
136
171
|
|
|
137
172
|
res/color/rn_persona_button.xml
|
|
138
173
|
-------------------------------
|
|
@@ -164,6 +199,12 @@ it("darkPrimaryColor", () => {
|
|
|
164
199
|
<?xml version=\\"1.0\\"?>
|
|
165
200
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
166
201
|
|
|
202
|
+
|
|
203
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
204
|
+
----------------------------------
|
|
205
|
+
<?xml version=\\"1.0\\"?>
|
|
206
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
207
|
+
|
|
167
208
|
|
|
168
209
|
res/color/rn_persona_button.xml
|
|
169
210
|
-------------------------------
|
|
@@ -197,6 +238,12 @@ it("backgroundColor", () => {
|
|
|
197
238
|
<?xml version=\\"1.0\\"?>
|
|
198
239
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
199
240
|
|
|
241
|
+
|
|
242
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
243
|
+
----------------------------------
|
|
244
|
+
<?xml version=\\"1.0\\"?>
|
|
245
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
246
|
+
|
|
200
247
|
|
|
201
248
|
res/color/rn_persona_button.xml
|
|
202
249
|
-------------------------------
|
|
@@ -231,6 +278,12 @@ it("titleTextColor", () => {
|
|
|
231
278
|
<?xml version=\\"1.0\\"?>
|
|
232
279
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
233
280
|
|
|
281
|
+
|
|
282
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
283
|
+
----------------------------------
|
|
284
|
+
<?xml version=\\"1.0\\"?>
|
|
285
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
286
|
+
|
|
234
287
|
|
|
235
288
|
res/color/rn_persona_button.xml
|
|
236
289
|
-------------------------------
|
|
@@ -265,6 +318,12 @@ it("titleTextFont", () => {
|
|
|
265
318
|
<?xml version=\\"1.0\\"?>
|
|
266
319
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
267
320
|
|
|
321
|
+
|
|
322
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
323
|
+
----------------------------------
|
|
324
|
+
<?xml version=\\"1.0\\"?>
|
|
325
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
326
|
+
|
|
268
327
|
|
|
269
328
|
res/color/rn_persona_button.xml
|
|
270
329
|
-------------------------------
|
|
@@ -304,6 +363,12 @@ it("titleTextFont and titleTextColor", () => {
|
|
|
304
363
|
<?xml version=\\"1.0\\"?>
|
|
305
364
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
306
365
|
|
|
366
|
+
|
|
367
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
368
|
+
----------------------------------
|
|
369
|
+
<?xml version=\\"1.0\\"?>
|
|
370
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
371
|
+
|
|
307
372
|
|
|
308
373
|
res/color/rn_persona_button.xml
|
|
309
374
|
-------------------------------
|
|
@@ -337,6 +402,12 @@ it("bodyTextColor", () => {
|
|
|
337
402
|
<?xml version=\\"1.0\\"?>
|
|
338
403
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
339
404
|
|
|
405
|
+
|
|
406
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
407
|
+
----------------------------------
|
|
408
|
+
<?xml version=\\"1.0\\"?>
|
|
409
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
410
|
+
|
|
340
411
|
|
|
341
412
|
res/color/rn_persona_button.xml
|
|
342
413
|
-------------------------------
|
|
@@ -370,6 +441,12 @@ it("bodyTextFont", () => {
|
|
|
370
441
|
<?xml version=\\"1.0\\"?>
|
|
371
442
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
372
443
|
|
|
444
|
+
|
|
445
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
446
|
+
----------------------------------
|
|
447
|
+
<?xml version=\\"1.0\\"?>
|
|
448
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
449
|
+
|
|
373
450
|
|
|
374
451
|
res/color/rn_persona_button.xml
|
|
375
452
|
-------------------------------
|
|
@@ -408,6 +485,12 @@ it("bodyTextFont and bodyTextColor", () => {
|
|
|
408
485
|
<?xml version=\\"1.0\\"?>
|
|
409
486
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
410
487
|
|
|
488
|
+
|
|
489
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
490
|
+
----------------------------------
|
|
491
|
+
<?xml version=\\"1.0\\"?>
|
|
492
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
493
|
+
|
|
411
494
|
|
|
412
495
|
res/color/rn_persona_button.xml
|
|
413
496
|
-------------------------------
|
|
@@ -430,8 +513,8 @@ it("footnoteTextColor", () => {
|
|
|
430
513
|
<item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
|
|
431
514
|
</style>
|
|
432
515
|
<style name=\\"TextAppearance.AppCompat.Small\\">
|
|
433
|
-
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
434
516
|
<item name=\\"android:textColor\\">#FFFFFF</item>
|
|
517
|
+
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
435
518
|
</style>
|
|
436
519
|
</resources>
|
|
437
520
|
|
|
@@ -441,6 +524,12 @@ it("footnoteTextColor", () => {
|
|
|
441
524
|
<?xml version=\\"1.0\\"?>
|
|
442
525
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
443
526
|
|
|
527
|
+
|
|
528
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
529
|
+
----------------------------------
|
|
530
|
+
<?xml version=\\"1.0\\"?>
|
|
531
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
532
|
+
|
|
444
533
|
|
|
445
534
|
res/color/rn_persona_button.xml
|
|
446
535
|
-------------------------------
|
|
@@ -463,9 +552,9 @@ it("footnoteTextFont", () => {
|
|
|
463
552
|
<item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
|
|
464
553
|
</style>
|
|
465
554
|
<style name=\\"TextAppearance.AppCompat.Small\\">
|
|
466
|
-
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
467
555
|
<item name=\\"android:textColor\\">?android:attr/textColorTertiary</item>
|
|
468
556
|
<item name=\\"android:fontFamily\\">Arial</item>
|
|
557
|
+
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
469
558
|
</style>
|
|
470
559
|
</resources>
|
|
471
560
|
|
|
@@ -475,6 +564,12 @@ it("footnoteTextFont", () => {
|
|
|
475
564
|
<?xml version=\\"1.0\\"?>
|
|
476
565
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
477
566
|
|
|
567
|
+
|
|
568
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
569
|
+
----------------------------------
|
|
570
|
+
<?xml version=\\"1.0\\"?>
|
|
571
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
572
|
+
|
|
478
573
|
|
|
479
574
|
res/color/rn_persona_button.xml
|
|
480
575
|
-------------------------------
|
|
@@ -501,9 +596,9 @@ it("footnoteTextFont and footnoteTextColor", () => {
|
|
|
501
596
|
<item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
|
|
502
597
|
</style>
|
|
503
598
|
<style name=\\"TextAppearance.AppCompat.Small\\">
|
|
504
|
-
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
505
599
|
<item name=\\"android:textColor\\">#000000</item>
|
|
506
600
|
<item name=\\"android:fontFamily\\">Arial</item>
|
|
601
|
+
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
507
602
|
</style>
|
|
508
603
|
</resources>
|
|
509
604
|
|
|
@@ -513,6 +608,12 @@ it("footnoteTextFont and footnoteTextColor", () => {
|
|
|
513
608
|
<?xml version=\\"1.0\\"?>
|
|
514
609
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
515
610
|
|
|
611
|
+
|
|
612
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
613
|
+
----------------------------------
|
|
614
|
+
<?xml version=\\"1.0\\"?>
|
|
615
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
616
|
+
|
|
516
617
|
|
|
517
618
|
res/color/rn_persona_button.xml
|
|
518
619
|
-------------------------------
|
|
@@ -555,6 +656,12 @@ it("pickerTextColor", () => {
|
|
|
555
656
|
<?xml version=\\"1.0\\"?>
|
|
556
657
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
557
658
|
|
|
659
|
+
|
|
660
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
661
|
+
----------------------------------
|
|
662
|
+
<?xml version=\\"1.0\\"?>
|
|
663
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
664
|
+
|
|
558
665
|
|
|
559
666
|
res/color/rn_persona_button.xml
|
|
560
667
|
-------------------------------
|
|
@@ -597,6 +704,12 @@ it("pickerTextFont", () => {
|
|
|
597
704
|
<?xml version=\\"1.0\\"?>
|
|
598
705
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
599
706
|
|
|
707
|
+
|
|
708
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
709
|
+
----------------------------------
|
|
710
|
+
<?xml version=\\"1.0\\"?>
|
|
711
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
712
|
+
|
|
600
713
|
|
|
601
714
|
res/color/rn_persona_button.xml
|
|
602
715
|
-------------------------------
|
|
@@ -644,6 +757,12 @@ it("pickerTextFont and pickerTextColor", () => {
|
|
|
644
757
|
<?xml version=\\"1.0\\"?>
|
|
645
758
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
646
759
|
|
|
760
|
+
|
|
761
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
762
|
+
----------------------------------
|
|
763
|
+
<?xml version=\\"1.0\\"?>
|
|
764
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
765
|
+
|
|
647
766
|
|
|
648
767
|
res/color/rn_persona_button.xml
|
|
649
768
|
-------------------------------
|
|
@@ -662,6 +781,7 @@ it("button", () => {
|
|
|
662
781
|
buttonTextAlignment: null,
|
|
663
782
|
buttonCornerRadius: null,
|
|
664
783
|
buttonFont: null,
|
|
784
|
+
buttonTextSize: null,
|
|
665
785
|
};
|
|
666
786
|
expect(printTheme(theme)).toMatchInlineSnapshot(`
|
|
667
787
|
"res/values/styles_persona.xml
|
|
@@ -675,6 +795,7 @@ it("button", () => {
|
|
|
675
795
|
<item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
|
|
676
796
|
<item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
|
|
677
797
|
<item name=\\"buttonStyle\\">@style/RN.Persona.Button</item>
|
|
798
|
+
<item name=\\"buttonStyleSecondary\\">@style/RN.Persona.Button.Secondary</item>
|
|
678
799
|
</style>
|
|
679
800
|
<style name=\\"RN.Persona.Button\\" parent=\\"android:style/Widget.Button\\">
|
|
680
801
|
<item name=\\"android:minHeight\\">48dip</item>
|
|
@@ -683,6 +804,9 @@ it("button", () => {
|
|
|
683
804
|
<item name=\\"android:background\\">@drawable/rn_persona_button</item>
|
|
684
805
|
<item name=\\"android:textColor\\">@color/rn_persona_button</item>
|
|
685
806
|
</style>
|
|
807
|
+
<style name=\\"RN.Persona.Button.Secondary\\" parent=\\"RN.Persona.Button\\">
|
|
808
|
+
<item name=\\"android:background\\">@drawable/rn_persona_button_secondary</item>
|
|
809
|
+
</style>
|
|
686
810
|
</resources>
|
|
687
811
|
|
|
688
812
|
|
|
@@ -714,6 +838,34 @@ it("button", () => {
|
|
|
714
838
|
</selector>
|
|
715
839
|
|
|
716
840
|
|
|
841
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
842
|
+
----------------------------------
|
|
843
|
+
<?xml version=\\"1.0\\"?>
|
|
844
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\">
|
|
845
|
+
<item android:state_enabled=\\"false\\">
|
|
846
|
+
<shape android:shape=\\"rectangle\\">
|
|
847
|
+
<corners android:radius=\\"@dimen/abc_control_corner_material\\"/>
|
|
848
|
+
<padding android:left=\\"@dimen/abc_button_padding_horizontal_material\\" android:top=\\"@dimen/abc_button_padding_vertical_material\\" android:right=\\"@dimen/abc_button_padding_horizontal_material\\" android:bottom=\\"@dimen/abc_button_padding_vertical_material\\"/>
|
|
849
|
+
<solid android:color=\\"@android:color/darker_gray\\"/>
|
|
850
|
+
</shape>
|
|
851
|
+
</item>
|
|
852
|
+
<item android:state_pressed=\\"true\\">
|
|
853
|
+
<shape android:shape=\\"rectangle\\">
|
|
854
|
+
<corners android:radius=\\"@dimen/abc_control_corner_material\\"/>
|
|
855
|
+
<solid android:color=\\"@color/grayButtonDark\\"/>
|
|
856
|
+
<padding android:left=\\"@dimen/abc_button_padding_horizontal_material\\" android:top=\\"@dimen/abc_button_padding_vertical_material\\" android:right=\\"@dimen/abc_button_padding_horizontal_material\\" android:bottom=\\"@dimen/abc_button_padding_vertical_material\\"/>
|
|
857
|
+
</shape>
|
|
858
|
+
</item>
|
|
859
|
+
<item>
|
|
860
|
+
<shape android:shape=\\"rectangle\\">
|
|
861
|
+
<corners android:radius=\\"@dimen/abc_control_corner_material\\"/>
|
|
862
|
+
<solid android:color=\\"@color/grayButton\\"/>
|
|
863
|
+
<padding android:left=\\"@dimen/abc_button_padding_horizontal_material\\" android:top=\\"@dimen/abc_button_padding_vertical_material\\" android:right=\\"@dimen/abc_button_padding_horizontal_material\\" android:bottom=\\"@dimen/abc_button_padding_vertical_material\\"/>
|
|
864
|
+
</shape>
|
|
865
|
+
</item>
|
|
866
|
+
</selector>
|
|
867
|
+
|
|
868
|
+
|
|
717
869
|
res/color/rn_persona_button.xml
|
|
718
870
|
-------------------------------
|
|
719
871
|
<?xml version=\\"1.0\\"?>
|
|
@@ -750,6 +902,12 @@ it("progressColor", () => {
|
|
|
750
902
|
<?xml version=\\"1.0\\"?>
|
|
751
903
|
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
752
904
|
|
|
905
|
+
|
|
906
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
907
|
+
----------------------------------
|
|
908
|
+
<?xml version=\\"1.0\\"?>
|
|
909
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
|
|
910
|
+
|
|
753
911
|
|
|
754
912
|
res/color/rn_persona_button.xml
|
|
755
913
|
-------------------------------
|
|
@@ -769,6 +927,16 @@ it("fullTheme", () => {
|
|
|
769
927
|
bodyTextFont: "Arial",
|
|
770
928
|
footnoteTextColor: "#FF0000",
|
|
771
929
|
footnoteTextFont: "Arial",
|
|
930
|
+
footnoteTextSize: "2",
|
|
931
|
+
cameraInstructionsTextColor: "#FF0000",
|
|
932
|
+
cameraInstructionsTextFont: "Arial",
|
|
933
|
+
cameraInstructionsTextSize: "30",
|
|
934
|
+
cameraHintTextColor: "#FF0000",
|
|
935
|
+
cameraHintTextFont: "Arial",
|
|
936
|
+
cameraHintTextSize: "16",
|
|
937
|
+
cameraGuideHintTextColor: "#FF0000",
|
|
938
|
+
cameraGuideHintTextFont: "Arial",
|
|
939
|
+
cameraGuideHintTextSize: "28",
|
|
772
940
|
// formLabelTextColor: "#FF0000",
|
|
773
941
|
// formLabelTextFont: "Arial",
|
|
774
942
|
textFieldTextColor: "#FF0000",
|
|
@@ -783,6 +951,7 @@ it("fullTheme", () => {
|
|
|
783
951
|
buttonTextAlignment: "left",
|
|
784
952
|
buttonCornerRadius: "4",
|
|
785
953
|
buttonFont: "Arial",
|
|
954
|
+
buttonTextSize: "14",
|
|
786
955
|
progressColor: "#FF0000",
|
|
787
956
|
successAsset: "@drawable/success",
|
|
788
957
|
failAsset: "@drawable/fail",
|
|
@@ -812,10 +981,14 @@ it("fullTheme", () => {
|
|
|
812
981
|
|
|
813
982
|
<item name=\\"personaTitleTextAppearance\\">@style/RN.Persona.Text.Title</item>
|
|
814
983
|
<item name=\\"personaBodyTextAppearance\\">@style/RN.Persona.Text.Body</item>
|
|
984
|
+
<item name=\\"personaCameraTitleTextAppearance\\">@style/RN.Persona.Text.CameraTitle</item>
|
|
985
|
+
<item name=\\"personaCameraBodyTextAppearance\\">@style/RN.Persona.Text.CameraBody</item>
|
|
986
|
+
<item name=\\"personaCameraHintTextAppearance\\">@style/RN.Persona.Text.CameraHint</item>
|
|
815
987
|
<item name=\\"editTextStyle\\">@style/RN.Persona.EditText</item>
|
|
816
988
|
<item name=\\"spinnerStyle\\">@style/RN.Persona.Spinner</item>
|
|
817
989
|
<item name=\\"spinnerDropDownItemStyle\\">@style/RN.Persona.DropDownItem.Spinner</item>
|
|
818
990
|
<item name=\\"buttonStyle\\">@style/RN.Persona.Button</item>
|
|
991
|
+
<item name=\\"buttonStyleSecondary\\">@style/RN.Persona.Button.Secondary</item>
|
|
819
992
|
<item name=\\"colorControlActivated\\">#FF0000</item>
|
|
820
993
|
<item name=\\"personaInquiryCompleteImage\\">@drawable/success</item>
|
|
821
994
|
|
|
@@ -842,9 +1015,24 @@ it("fullTheme", () => {
|
|
|
842
1015
|
<item name=\\"android:textSize\\">18sp</item>
|
|
843
1016
|
</style>
|
|
844
1017
|
<style name=\\"TextAppearance.AppCompat.Small\\">
|
|
845
|
-
<item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
|
|
846
1018
|
<item name=\\"android:textColor\\">#FF0000</item>
|
|
847
1019
|
<item name=\\"android:fontFamily\\">Arial</item>
|
|
1020
|
+
<item name=\\"android:textSize\\">2sp</item>
|
|
1021
|
+
</style>
|
|
1022
|
+
<style name=\\"RN.Persona.Text.CameraTitle\\" parent=\\"Persona.Text.CameraTitle\\">
|
|
1023
|
+
<item name=\\"android:textColor\\">#FF0000</item>
|
|
1024
|
+
<item name=\\"android:fontFamily\\">Arial</item>
|
|
1025
|
+
<item name=\\"android:textSize\\">30sp</item>
|
|
1026
|
+
</style>
|
|
1027
|
+
<style name=\\"RN.Persona.Text.CameraBody\\" parent=\\"Persona.Text.CameraBody\\">
|
|
1028
|
+
<item name=\\"android:textColor\\">#FF0000</item>
|
|
1029
|
+
<item name=\\"android:fontFamily\\">Arial</item>
|
|
1030
|
+
<item name=\\"android:textSize\\">16sp</item>
|
|
1031
|
+
</style>
|
|
1032
|
+
<style name=\\"RN.Persona.Text.CameraHint\\" parent=\\"Persona.Text.CameraHint\\">
|
|
1033
|
+
<item name=\\"android:textColor\\">#FF0000</item>
|
|
1034
|
+
<item name=\\"android:fontFamily\\">Arial</item>
|
|
1035
|
+
<item name=\\"android:textSize\\">28sp</item>
|
|
848
1036
|
</style>
|
|
849
1037
|
<style name=\\"RN.Persona.EditText\\" parent=\\"Widget.AppCompat.EditText\\">
|
|
850
1038
|
<item name=\\"android:textAppearance\\">@style/RN.Persona.EditText.TextAppearance</item>
|
|
@@ -869,10 +1057,13 @@ it("fullTheme", () => {
|
|
|
869
1057
|
<style name=\\"RN.Persona.Button\\" parent=\\"android:style/Widget.Button\\">
|
|
870
1058
|
<item name=\\"android:minHeight\\">48dip</item>
|
|
871
1059
|
<item name=\\"android:minWidth\\">88dip</item>
|
|
872
|
-
<item name=\\"android:textSize\\">
|
|
1060
|
+
<item name=\\"android:textSize\\">14sp</item>
|
|
873
1061
|
<item name=\\"android:background\\">@drawable/rn_persona_button</item>
|
|
874
1062
|
<item name=\\"android:textColor\\">@color/rn_persona_button</item>
|
|
875
1063
|
</style>
|
|
1064
|
+
<style name=\\"RN.Persona.Button.Secondary\\" parent=\\"RN.Persona.Button\\">
|
|
1065
|
+
<item name=\\"android:background\\">@drawable/rn_persona_button_secondary</item>
|
|
1066
|
+
</style>
|
|
876
1067
|
</resources>
|
|
877
1068
|
|
|
878
1069
|
|
|
@@ -904,6 +1095,34 @@ it("fullTheme", () => {
|
|
|
904
1095
|
</selector>
|
|
905
1096
|
|
|
906
1097
|
|
|
1098
|
+
res/drawable/rn_persona_button_secondary.xml
|
|
1099
|
+
----------------------------------
|
|
1100
|
+
<?xml version=\\"1.0\\"?>
|
|
1101
|
+
<selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\">
|
|
1102
|
+
<item android:state_enabled=\\"false\\">
|
|
1103
|
+
<shape android:shape=\\"rectangle\\">
|
|
1104
|
+
<corners android:radius=\\"4dp\\"/>
|
|
1105
|
+
<padding android:left=\\"@dimen/abc_button_padding_horizontal_material\\" android:top=\\"@dimen/abc_button_padding_vertical_material\\" android:right=\\"@dimen/abc_button_padding_horizontal_material\\" android:bottom=\\"@dimen/abc_button_padding_vertical_material\\"/>
|
|
1106
|
+
<solid android:color=\\"@android:color/darker_gray\\"/>
|
|
1107
|
+
</shape>
|
|
1108
|
+
</item>
|
|
1109
|
+
<item android:state_pressed=\\"true\\">
|
|
1110
|
+
<shape android:shape=\\"rectangle\\">
|
|
1111
|
+
<corners android:radius=\\"4dp\\"/>
|
|
1112
|
+
<solid android:color=\\"@color/grayButtonDark\\"/>
|
|
1113
|
+
<padding android:left=\\"@dimen/abc_button_padding_horizontal_material\\" android:top=\\"@dimen/abc_button_padding_vertical_material\\" android:right=\\"@dimen/abc_button_padding_horizontal_material\\" android:bottom=\\"@dimen/abc_button_padding_vertical_material\\"/>
|
|
1114
|
+
</shape>
|
|
1115
|
+
</item>
|
|
1116
|
+
<item>
|
|
1117
|
+
<shape android:shape=\\"rectangle\\">
|
|
1118
|
+
<corners android:radius=\\"4dp\\"/>
|
|
1119
|
+
<solid android:color=\\"@color/grayButton\\"/>
|
|
1120
|
+
<padding android:left=\\"@dimen/abc_button_padding_horizontal_material\\" android:top=\\"@dimen/abc_button_padding_vertical_material\\" android:right=\\"@dimen/abc_button_padding_horizontal_material\\" android:bottom=\\"@dimen/abc_button_padding_vertical_material\\"/>
|
|
1121
|
+
</shape>
|
|
1122
|
+
</item>
|
|
1123
|
+
</selector>
|
|
1124
|
+
|
|
1125
|
+
|
|
907
1126
|
res/color/rn_persona_button.xml
|
|
908
1127
|
-------------------------------
|
|
909
1128
|
<?xml version=\\"1.0\\"?>
|