react-native-persona 1.2.4 → 1.2.8

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.
@@ -8,10 +8,22 @@ const EMPTY_THEME: AndroidThemeObject = {
8
8
  accentColor: null,
9
9
  titleTextColor: null,
10
10
  titleTextFont: null,
11
+ titleTextSize: null,
11
12
  bodyTextColor: null,
12
13
  bodyTextFont: null,
14
+ bodyTextSize: null,
13
15
  footnoteTextColor: null,
14
16
  footnoteTextFont: null,
17
+ footnoteTextSize: null,
18
+ cameraInstructionsTextColor: null,
19
+ cameraInstructionsTextFont: null,
20
+ cameraInstructionsTextSize: null,
21
+ cameraHintTextColor: null,
22
+ cameraHintTextFont: null,
23
+ cameraHintTextSize: null,
24
+ cameraGuideHintTextColor: null,
25
+ cameraGuideHintTextFont: null,
26
+ cameraGuideHintTextSize: null,
15
27
  // formLabelTextColor: null,
16
28
  // formLabelTextFont: null,
17
29
  textFieldTextColor: null,
@@ -26,6 +38,7 @@ const EMPTY_THEME: AndroidThemeObject = {
26
38
  // buttonTextAlignment: null,
27
39
  buttonCornerRadius: null,
28
40
  buttonFont: null,
41
+ buttonTextSize: null,
29
42
  progressColor: null,
30
43
  successAsset: null,
31
44
  failAsset: null,
@@ -36,7 +49,7 @@ const EMPTY_THEME: AndroidThemeObject = {
36
49
  };
37
50
 
38
51
  function printTheme(theme: AndroidThemeObject) {
39
- const { style, buttonDrawable, buttonColor } = new AndroidResourcePrinter(
52
+ const { style, buttonDrawable, buttonSecondaryDrawable, buttonColor } = new AndroidResourcePrinter(
40
53
  theme
41
54
  ).process();
42
55
 
@@ -51,6 +64,12 @@ function printTheme(theme: AndroidThemeObject) {
51
64
  prettyPrint: true,
52
65
  }),
53
66
  "\n",
67
+ "res/drawable/rn_persona_button_secondary.xml",
68
+ "----------------------------------",
69
+ buttonSecondaryDrawable.end({
70
+ prettyPrint: true,
71
+ }),
72
+ "\n",
54
73
  "res/color/rn_persona_button.xml",
55
74
  "-------------------------------",
56
75
  buttonColor.end({ prettyPrint: true }),
@@ -73,6 +92,12 @@ it("works when empty", () => {
73
92
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
74
93
 
75
94
 
95
+ res/drawable/rn_persona_button_secondary.xml
96
+ ----------------------------------
97
+ <?xml version=\\"1.0\\"?>
98
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
99
+
100
+
76
101
  res/color/rn_persona_button.xml
77
102
  -------------------------------
78
103
  <?xml version=\\"1.0\\"?>
@@ -95,6 +120,9 @@ it("primaryColor", () => {
95
120
 
96
121
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
97
122
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
123
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
124
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
125
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
98
126
  </style>
99
127
  </resources>
100
128
 
@@ -104,6 +132,12 @@ it("primaryColor", () => {
104
132
  <?xml version=\\"1.0\\"?>
105
133
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
106
134
 
135
+
136
+ res/drawable/rn_persona_button_secondary.xml
137
+ ----------------------------------
138
+ <?xml version=\\"1.0\\"?>
139
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
140
+
107
141
 
108
142
  res/color/rn_persona_button.xml
109
143
  -------------------------------
@@ -127,6 +161,9 @@ it("accentColor", () => {
127
161
 
128
162
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
129
163
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
164
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
165
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
166
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
130
167
  </style>
131
168
  </resources>
132
169
 
@@ -136,6 +173,12 @@ it("accentColor", () => {
136
173
  <?xml version=\\"1.0\\"?>
137
174
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
138
175
 
176
+
177
+ res/drawable/rn_persona_button_secondary.xml
178
+ ----------------------------------
179
+ <?xml version=\\"1.0\\"?>
180
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
181
+
139
182
 
140
183
  res/color/rn_persona_button.xml
141
184
  -------------------------------
@@ -159,6 +202,9 @@ it("darkPrimaryColor", () => {
159
202
 
160
203
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
161
204
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
205
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
206
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
207
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
162
208
  </style>
163
209
  </resources>
164
210
 
@@ -168,6 +214,12 @@ it("darkPrimaryColor", () => {
168
214
  <?xml version=\\"1.0\\"?>
169
215
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
170
216
 
217
+
218
+ res/drawable/rn_persona_button_secondary.xml
219
+ ----------------------------------
220
+ <?xml version=\\"1.0\\"?>
221
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
222
+
171
223
 
172
224
  res/color/rn_persona_button.xml
173
225
  -------------------------------
@@ -194,6 +246,9 @@ it("backgroundColor", () => {
194
246
 
195
247
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
196
248
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
249
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
250
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
251
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
197
252
  </style>
198
253
  </resources>
199
254
 
@@ -203,6 +258,12 @@ it("backgroundColor", () => {
203
258
  <?xml version=\\"1.0\\"?>
204
259
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
205
260
 
261
+
262
+ res/drawable/rn_persona_button_secondary.xml
263
+ ----------------------------------
264
+ <?xml version=\\"1.0\\"?>
265
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
266
+
206
267
 
207
268
  res/color/rn_persona_button.xml
208
269
  -------------------------------
@@ -225,6 +286,9 @@ it("titleTextColor", () => {
225
286
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
226
287
  <item name=\\"personaTitleTextAppearance\\">@style/RN.Persona.Text.Title</item>
227
288
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
289
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
290
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
291
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
228
292
  </style>
229
293
  <style name=\\"RN.Persona.Text.Title\\" parent=\\"Persona.Text.Body\\">
230
294
  <item name=\\"android:textColor\\">#FFFFFF</item>
@@ -239,6 +303,12 @@ it("titleTextColor", () => {
239
303
  <?xml version=\\"1.0\\"?>
240
304
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
241
305
 
306
+
307
+ res/drawable/rn_persona_button_secondary.xml
308
+ ----------------------------------
309
+ <?xml version=\\"1.0\\"?>
310
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
311
+
242
312
 
243
313
  res/color/rn_persona_button.xml
244
314
  -------------------------------
@@ -261,6 +331,9 @@ it("titleTextFont", () => {
261
331
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
262
332
  <item name=\\"personaTitleTextAppearance\\">@style/RN.Persona.Text.Title</item>
263
333
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
334
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
335
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
336
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
264
337
  </style>
265
338
  <style name=\\"RN.Persona.Text.Title\\" parent=\\"Persona.Text.Body\\">
266
339
  <item name=\\"android:fontFamily\\">Arial</item>
@@ -275,6 +348,12 @@ it("titleTextFont", () => {
275
348
  <?xml version=\\"1.0\\"?>
276
349
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
277
350
 
351
+
352
+ res/drawable/rn_persona_button_secondary.xml
353
+ ----------------------------------
354
+ <?xml version=\\"1.0\\"?>
355
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
356
+
278
357
 
279
358
  res/color/rn_persona_button.xml
280
359
  -------------------------------
@@ -301,6 +380,9 @@ it("titleTextFont and titleTextColor", () => {
301
380
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
302
381
  <item name=\\"personaTitleTextAppearance\\">@style/RN.Persona.Text.Title</item>
303
382
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
383
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
384
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
385
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
304
386
  </style>
305
387
  <style name=\\"RN.Persona.Text.Title\\" parent=\\"Persona.Text.Body\\">
306
388
  <item name=\\"android:textColor\\">#000000</item>
@@ -316,6 +398,12 @@ it("titleTextFont and titleTextColor", () => {
316
398
  <?xml version=\\"1.0\\"?>
317
399
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
318
400
 
401
+
402
+ res/drawable/rn_persona_button_secondary.xml
403
+ ----------------------------------
404
+ <?xml version=\\"1.0\\"?>
405
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
406
+
319
407
 
320
408
  res/color/rn_persona_button.xml
321
409
  -------------------------------
@@ -338,6 +426,9 @@ it("bodyTextColor", () => {
338
426
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
339
427
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
340
428
  <item name=\\"personaBodyTextAppearance\\">@style/RN.Persona.Text.Body</item>
429
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
430
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
431
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
341
432
  </style>
342
433
  <style name=\\"RN.Persona.Text.Body\\" parent=\\"Persona.Text.Body\\">
343
434
  <item name=\\"android:textColor\\">#FFFFFF</item>
@@ -351,6 +442,12 @@ it("bodyTextColor", () => {
351
442
  <?xml version=\\"1.0\\"?>
352
443
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
353
444
 
445
+
446
+ res/drawable/rn_persona_button_secondary.xml
447
+ ----------------------------------
448
+ <?xml version=\\"1.0\\"?>
449
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
450
+
354
451
 
355
452
  res/color/rn_persona_button.xml
356
453
  -------------------------------
@@ -373,6 +470,9 @@ it("bodyTextFont", () => {
373
470
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
374
471
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
375
472
  <item name=\\"personaBodyTextAppearance\\">@style/RN.Persona.Text.Body</item>
473
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
474
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
475
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
376
476
  </style>
377
477
  <style name=\\"RN.Persona.Text.Body\\" parent=\\"Persona.Text.Body\\">
378
478
  <item name=\\"android:fontFamily\\">Arial</item>
@@ -386,6 +486,12 @@ it("bodyTextFont", () => {
386
486
  <?xml version=\\"1.0\\"?>
387
487
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
388
488
 
489
+
490
+ res/drawable/rn_persona_button_secondary.xml
491
+ ----------------------------------
492
+ <?xml version=\\"1.0\\"?>
493
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
494
+
389
495
 
390
496
  res/color/rn_persona_button.xml
391
497
  -------------------------------
@@ -412,6 +518,9 @@ it("bodyTextFont and bodyTextColor", () => {
412
518
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
413
519
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
414
520
  <item name=\\"personaBodyTextAppearance\\">@style/RN.Persona.Text.Body</item>
521
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
522
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
523
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
415
524
  </style>
416
525
  <style name=\\"RN.Persona.Text.Body\\" parent=\\"Persona.Text.Body\\">
417
526
  <item name=\\"android:textColor\\">#000000</item>
@@ -426,6 +535,12 @@ it("bodyTextFont and bodyTextColor", () => {
426
535
  <?xml version=\\"1.0\\"?>
427
536
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
428
537
 
538
+
539
+ res/drawable/rn_persona_button_secondary.xml
540
+ ----------------------------------
541
+ <?xml version=\\"1.0\\"?>
542
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
543
+
429
544
 
430
545
  res/color/rn_persona_button.xml
431
546
  -------------------------------
@@ -448,10 +563,13 @@ it("footnoteTextColor", () => {
448
563
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
449
564
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
450
565
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
566
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
567
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
568
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
451
569
  </style>
452
570
  <style name=\\"TextAppearance.AppCompat.Small\\">
453
- <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
454
571
  <item name=\\"android:textColor\\">#FFFFFF</item>
572
+ <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
455
573
  </style>
456
574
  </resources>
457
575
 
@@ -461,6 +579,12 @@ it("footnoteTextColor", () => {
461
579
  <?xml version=\\"1.0\\"?>
462
580
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
463
581
 
582
+
583
+ res/drawable/rn_persona_button_secondary.xml
584
+ ----------------------------------
585
+ <?xml version=\\"1.0\\"?>
586
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
587
+
464
588
 
465
589
  res/color/rn_persona_button.xml
466
590
  -------------------------------
@@ -483,11 +607,14 @@ it("footnoteTextFont", () => {
483
607
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
484
608
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
485
609
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
610
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
611
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
612
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
486
613
  </style>
487
614
  <style name=\\"TextAppearance.AppCompat.Small\\">
488
- <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
489
615
  <item name=\\"android:textColor\\">?android:attr/textColorTertiary</item>
490
616
  <item name=\\"android:fontFamily\\">Arial</item>
617
+ <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
491
618
  </style>
492
619
  </resources>
493
620
 
@@ -497,6 +624,12 @@ it("footnoteTextFont", () => {
497
624
  <?xml version=\\"1.0\\"?>
498
625
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
499
626
 
627
+
628
+ res/drawable/rn_persona_button_secondary.xml
629
+ ----------------------------------
630
+ <?xml version=\\"1.0\\"?>
631
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
632
+
500
633
 
501
634
  res/color/rn_persona_button.xml
502
635
  -------------------------------
@@ -523,11 +656,14 @@ it("footnoteTextFont and footnoteTextColor", () => {
523
656
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
524
657
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
525
658
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
659
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
660
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
661
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
526
662
  </style>
527
663
  <style name=\\"TextAppearance.AppCompat.Small\\">
528
- <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
529
664
  <item name=\\"android:textColor\\">#000000</item>
530
665
  <item name=\\"android:fontFamily\\">Arial</item>
666
+ <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
531
667
  </style>
532
668
  </resources>
533
669
 
@@ -537,6 +673,12 @@ it("footnoteTextFont and footnoteTextColor", () => {
537
673
  <?xml version=\\"1.0\\"?>
538
674
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
539
675
 
676
+
677
+ res/drawable/rn_persona_button_secondary.xml
678
+ ----------------------------------
679
+ <?xml version=\\"1.0\\"?>
680
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
681
+
540
682
 
541
683
  res/color/rn_persona_button.xml
542
684
  -------------------------------
@@ -559,6 +701,9 @@ it("pickerTextColor", () => {
559
701
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
560
702
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
561
703
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
704
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
705
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
706
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
562
707
  <item name=\\"spinnerStyle\\">@style/RN.Persona.Spinner</item>
563
708
  <item name=\\"spinnerDropDownItemStyle\\">@style/RN.Persona.DropDownItem.Spinner</item>
564
709
  </style>
@@ -581,6 +726,12 @@ it("pickerTextColor", () => {
581
726
  <?xml version=\\"1.0\\"?>
582
727
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
583
728
 
729
+
730
+ res/drawable/rn_persona_button_secondary.xml
731
+ ----------------------------------
732
+ <?xml version=\\"1.0\\"?>
733
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
734
+
584
735
 
585
736
  res/color/rn_persona_button.xml
586
737
  -------------------------------
@@ -603,6 +754,9 @@ it("pickerTextFont", () => {
603
754
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
604
755
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
605
756
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
757
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
758
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
759
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
606
760
  <item name=\\"spinnerStyle\\">@style/RN.Persona.Spinner</item>
607
761
  <item name=\\"spinnerDropDownItemStyle\\">@style/RN.Persona.DropDownItem.Spinner</item>
608
762
  </style>
@@ -625,6 +779,12 @@ it("pickerTextFont", () => {
625
779
  <?xml version=\\"1.0\\"?>
626
780
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
627
781
 
782
+
783
+ res/drawable/rn_persona_button_secondary.xml
784
+ ----------------------------------
785
+ <?xml version=\\"1.0\\"?>
786
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
787
+
628
788
 
629
789
  res/color/rn_persona_button.xml
630
790
  -------------------------------
@@ -651,6 +811,9 @@ it("pickerTextFont and pickerTextColor", () => {
651
811
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
652
812
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
653
813
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
814
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
815
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
816
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
654
817
  <item name=\\"spinnerStyle\\">@style/RN.Persona.Spinner</item>
655
818
  <item name=\\"spinnerDropDownItemStyle\\">@style/RN.Persona.DropDownItem.Spinner</item>
656
819
  </style>
@@ -674,6 +837,12 @@ it("pickerTextFont and pickerTextColor", () => {
674
837
  <?xml version=\\"1.0\\"?>
675
838
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
676
839
 
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
+
677
846
 
678
847
  res/color/rn_persona_button.xml
679
848
  -------------------------------
@@ -693,6 +862,7 @@ it("button", () => {
693
862
  buttonTextAlignment: null,
694
863
  buttonCornerRadius: null,
695
864
  buttonFont: null,
865
+ buttonTextSize: null,
696
866
  };
697
867
 
698
868
  expect(printTheme(theme)).toMatchInlineSnapshot(`
@@ -706,7 +876,11 @@ it("button", () => {
706
876
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
707
877
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
708
878
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
879
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
880
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
881
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
709
882
  <item name=\\"buttonStyle\\">@style/RN.Persona.Button</item>
883
+ <item name=\\"buttonStyleSecondary\\">@style/RN.Persona.Button.Secondary</item>
710
884
  </style>
711
885
  <style name=\\"RN.Persona.Button\\" parent=\\"android:style/Widget.Button\\">
712
886
  <item name=\\"android:minHeight\\">48dip</item>
@@ -715,6 +889,9 @@ it("button", () => {
715
889
  <item name=\\"android:background\\">@drawable/rn_persona_button</item>
716
890
  <item name=\\"android:textColor\\">@color/rn_persona_button</item>
717
891
  </style>
892
+ <style name=\\"RN.Persona.Button.Secondary\\" parent=\\"RN.Persona.Button\\">
893
+ <item name=\\"android:background\\">@drawable/rn_persona_button_secondary</item>
894
+ </style>
718
895
  </resources>
719
896
 
720
897
 
@@ -746,6 +923,34 @@ it("button", () => {
746
923
  </selector>
747
924
 
748
925
 
926
+ res/drawable/rn_persona_button_secondary.xml
927
+ ----------------------------------
928
+ <?xml version=\\"1.0\\"?>
929
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\">
930
+ <item android:state_enabled=\\"false\\">
931
+ <shape android:shape=\\"rectangle\\">
932
+ <corners android:radius=\\"@dimen/abc_control_corner_material\\"/>
933
+ <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\\"/>
934
+ <solid android:color=\\"@android:color/darker_gray\\"/>
935
+ </shape>
936
+ </item>
937
+ <item android:state_pressed=\\"true\\">
938
+ <shape android:shape=\\"rectangle\\">
939
+ <corners android:radius=\\"@dimen/abc_control_corner_material\\"/>
940
+ <solid android:color=\\"@color/grayButtonDark\\"/>
941
+ <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\\"/>
942
+ </shape>
943
+ </item>
944
+ <item>
945
+ <shape android:shape=\\"rectangle\\">
946
+ <corners android:radius=\\"@dimen/abc_control_corner_material\\"/>
947
+ <solid android:color=\\"@color/grayButton\\"/>
948
+ <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\\"/>
949
+ </shape>
950
+ </item>
951
+ </selector>
952
+
953
+
749
954
  res/color/rn_persona_button.xml
750
955
  -------------------------------
751
956
  <?xml version=\\"1.0\\"?>
@@ -774,6 +979,9 @@ it("progressColor", () => {
774
979
  <style name=\\"Persona.Inquiry.Theme\\" parent=\\"Base.Persona.Inquiry.Theme.Light\\">
775
980
  <item name=\\"personaTitleTextAppearance\\">@style/Persona.Text.Title</item>
776
981
  <item name=\\"personaBodyTextAppearance\\">@style/Persona.Text.Body</item>
982
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/Persona.Text.CameraTitle</item>
983
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/Persona.Text.CameraBody</item>
984
+ <item name=\\"personaCameraHintTextAppearance\\">@style/Persona.Text.CameraHint</item>
777
985
  <item name=\\"colorControlActivated\\">#FF0000</item>
778
986
  </style>
779
987
  </resources>
@@ -784,6 +992,12 @@ it("progressColor", () => {
784
992
  <?xml version=\\"1.0\\"?>
785
993
  <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
786
994
 
995
+
996
+ res/drawable/rn_persona_button_secondary.xml
997
+ ----------------------------------
998
+ <?xml version=\\"1.0\\"?>
999
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\"/>
1000
+
787
1001
 
788
1002
  res/color/rn_persona_button.xml
789
1003
  -------------------------------
@@ -800,10 +1014,22 @@ it("fullTheme", () => {
800
1014
  accentColor: "#FF0000",
801
1015
  titleTextColor: "#FF0000",
802
1016
  titleTextFont: "Arial",
1017
+ titleTextSize: "40",
803
1018
  bodyTextColor: "#FF0000",
804
1019
  bodyTextFont: "Arial",
1020
+ bodyTextSize: "4",
805
1021
  footnoteTextColor: "#FF0000",
806
1022
  footnoteTextFont: "Arial",
1023
+ footnoteTextSize: "2",
1024
+ cameraInstructionsTextColor: "#FF0000",
1025
+ cameraInstructionsTextFont: "Arial",
1026
+ cameraInstructionsTextSize: "30",
1027
+ cameraHintTextColor: "#FF0000",
1028
+ cameraHintTextFont: "Arial",
1029
+ cameraHintTextSize: "16",
1030
+ cameraGuideHintTextColor: "#FF0000",
1031
+ cameraGuideHintTextFont: "Arial",
1032
+ cameraGuideHintTextSize: "28",
807
1033
  // formLabelTextColor: "#FF0000",
808
1034
  // formLabelTextFont: "Arial",
809
1035
  textFieldTextColor: "#FF0000",
@@ -818,6 +1044,7 @@ it("fullTheme", () => {
818
1044
  buttonTextAlignment: "left",
819
1045
  buttonCornerRadius: "4",
820
1046
  buttonFont: "Arial",
1047
+ buttonTextSize: "14",
821
1048
  progressColor: "#FF0000",
822
1049
  successAsset: "@drawable/success",
823
1050
  failAsset: "@drawable/fail",
@@ -848,10 +1075,14 @@ it("fullTheme", () => {
848
1075
 
849
1076
  <item name=\\"personaTitleTextAppearance\\">@style/RN.Persona.Text.Title</item>
850
1077
  <item name=\\"personaBodyTextAppearance\\">@style/RN.Persona.Text.Body</item>
1078
+ <item name=\\"personaCameraTitleTextAppearance\\">@style/RN.Persona.Text.CameraTitle</item>
1079
+ <item name=\\"personaCameraBodyTextAppearance\\">@style/RN.Persona.Text.CameraBody</item>
1080
+ <item name=\\"personaCameraHintTextAppearance\\">@style/RN.Persona.Text.CameraHint</item>
851
1081
  <item name=\\"editTextStyle\\">@style/RN.Persona.EditText</item>
852
1082
  <item name=\\"spinnerStyle\\">@style/RN.Persona.Spinner</item>
853
1083
  <item name=\\"spinnerDropDownItemStyle\\">@style/RN.Persona.DropDownItem.Spinner</item>
854
1084
  <item name=\\"buttonStyle\\">@style/RN.Persona.Button</item>
1085
+ <item name=\\"buttonStyleSecondary\\">@style/RN.Persona.Button.Secondary</item>
855
1086
  <item name=\\"colorControlActivated\\">#FF0000</item>
856
1087
  <item name=\\"personaInquiryCompleteImage\\">@drawable/success</item>
857
1088
 
@@ -869,18 +1100,33 @@ it("fullTheme", () => {
869
1100
  <style name=\\"RN.Persona.Text.Title\\" parent=\\"Persona.Text.Body\\">
870
1101
  <item name=\\"android:textColor\\">#FF0000</item>
871
1102
  <item name=\\"android:fontFamily\\">Arial</item>
872
- <item name=\\"android:textSize\\">26sp</item>
1103
+ <item name=\\"android:textSize\\">40sp</item>
873
1104
  <item name=\\"android:textStyle\\">bold</item>
874
1105
  </style>
875
1106
  <style name=\\"RN.Persona.Text.Body\\" parent=\\"Persona.Text.Body\\">
876
1107
  <item name=\\"android:textColor\\">#FF0000</item>
877
1108
  <item name=\\"android:fontFamily\\">Arial</item>
878
- <item name=\\"android:textSize\\">18sp</item>
1109
+ <item name=\\"android:textSize\\">4sp</item>
879
1110
  </style>
880
1111
  <style name=\\"TextAppearance.AppCompat.Small\\">
881
- <item name=\\"android:textSize\\">@dimen/abc_text_size_small_material</item>
882
1112
  <item name=\\"android:textColor\\">#FF0000</item>
883
1113
  <item name=\\"android:fontFamily\\">Arial</item>
1114
+ <item name=\\"android:textSize\\">2sp</item>
1115
+ </style>
1116
+ <style name=\\"RN.Persona.Text.CameraTitle\\" parent=\\"Persona.Text.CameraTitle\\">
1117
+ <item name=\\"android:textColor\\">#FF0000</item>
1118
+ <item name=\\"android:fontFamily\\">Arial</item>
1119
+ <item name=\\"android:textSize\\">30sp</item>
1120
+ </style>
1121
+ <style name=\\"RN.Persona.Text.CameraBody\\" parent=\\"Persona.Text.CameraBody\\">
1122
+ <item name=\\"android:textColor\\">#FF0000</item>
1123
+ <item name=\\"android:fontFamily\\">Arial</item>
1124
+ <item name=\\"android:textSize\\">16sp</item>
1125
+ </style>
1126
+ <style name=\\"RN.Persona.Text.CameraHint\\" parent=\\"Persona.Text.CameraHint\\">
1127
+ <item name=\\"android:textColor\\">#FF0000</item>
1128
+ <item name=\\"android:fontFamily\\">Arial</item>
1129
+ <item name=\\"android:textSize\\">28sp</item>
884
1130
  </style>
885
1131
  <style name=\\"RN.Persona.EditText\\" parent=\\"Widget.AppCompat.EditText\\">
886
1132
  <item name=\\"android:textAppearance\\">@style/RN.Persona.EditText.TextAppearance</item>
@@ -905,10 +1151,13 @@ it("fullTheme", () => {
905
1151
  <style name=\\"RN.Persona.Button\\" parent=\\"android:style/Widget.Button\\">
906
1152
  <item name=\\"android:minHeight\\">48dip</item>
907
1153
  <item name=\\"android:minWidth\\">88dip</item>
908
- <item name=\\"android:textSize\\">18sp</item>
1154
+ <item name=\\"android:textSize\\">14sp</item>
909
1155
  <item name=\\"android:background\\">@drawable/rn_persona_button</item>
910
1156
  <item name=\\"android:textColor\\">@color/rn_persona_button</item>
911
1157
  </style>
1158
+ <style name=\\"RN.Persona.Button.Secondary\\" parent=\\"RN.Persona.Button\\">
1159
+ <item name=\\"android:background\\">@drawable/rn_persona_button_secondary</item>
1160
+ </style>
912
1161
  </resources>
913
1162
 
914
1163
 
@@ -940,6 +1189,34 @@ it("fullTheme", () => {
940
1189
  </selector>
941
1190
 
942
1191
 
1192
+ res/drawable/rn_persona_button_secondary.xml
1193
+ ----------------------------------
1194
+ <?xml version=\\"1.0\\"?>
1195
+ <selector xmlns:android=\\"http://schemas.android.com/apk/res/android\\">
1196
+ <item android:state_enabled=\\"false\\">
1197
+ <shape android:shape=\\"rectangle\\">
1198
+ <corners android:radius=\\"4dp\\"/>
1199
+ <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\\"/>
1200
+ <solid android:color=\\"@android:color/darker_gray\\"/>
1201
+ </shape>
1202
+ </item>
1203
+ <item android:state_pressed=\\"true\\">
1204
+ <shape android:shape=\\"rectangle\\">
1205
+ <corners android:radius=\\"4dp\\"/>
1206
+ <solid android:color=\\"@color/grayButtonDark\\"/>
1207
+ <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\\"/>
1208
+ </shape>
1209
+ </item>
1210
+ <item>
1211
+ <shape android:shape=\\"rectangle\\">
1212
+ <corners android:radius=\\"4dp\\"/>
1213
+ <solid android:color=\\"@color/grayButton\\"/>
1214
+ <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\\"/>
1215
+ </shape>
1216
+ </item>
1217
+ </selector>
1218
+
1219
+
943
1220
  res/color/rn_persona_button.xml
944
1221
  -------------------------------
945
1222
  <?xml version=\\"1.0\\"?>