@rocapine/react-native-onboarding 1.18.0 → 1.20.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/index.d.ts CHANGED
@@ -5,6 +5,8 @@ export type { ButtonAction, CustomButtonAction, ComposableVariableEntry, } from
5
5
  export { ButtonActionSchema, CustomButtonActionSchema, } from "./steps/ComposableScreen/types";
6
6
  export * from "./infra";
7
7
  export { resolveNextStepNumber } from "./resolveNextStepNumber";
8
+ export { evaluateCondition, evaluateLeaf, isConditionGroup } from "./evaluateCondition";
9
+ export type { Condition } from "./evaluateCondition";
8
10
  export type { LeafCondition, ConditionGroup, ConditionValue, ConditionOperator, Branch, NextStep, } from "./steps/common.types";
9
11
  export { BaseStepTypeSchema, LeafConditionSchema, ConditionGroupSchema, BranchSchema, NextStepSchema, ConditionOperatorSchema, ConditionValueSchema, } from "./steps/common.types";
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AAErC,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAExC,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AAErC,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,gCAAgC,CAAC;AAExC,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACxF,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ConditionValueSchema = exports.ConditionOperatorSchema = exports.NextStepSchema = exports.BranchSchema = exports.ConditionGroupSchema = exports.LeafConditionSchema = exports.BaseStepTypeSchema = exports.resolveNextStepNumber = exports.CustomButtonActionSchema = exports.ButtonActionSchema = exports.OnboardingStudioClient = void 0;
17
+ exports.ConditionValueSchema = exports.ConditionOperatorSchema = exports.NextStepSchema = exports.BranchSchema = exports.ConditionGroupSchema = exports.LeafConditionSchema = exports.BaseStepTypeSchema = exports.isConditionGroup = exports.evaluateLeaf = exports.evaluateCondition = exports.resolveNextStepNumber = exports.CustomButtonActionSchema = exports.ButtonActionSchema = exports.OnboardingStudioClient = void 0;
18
18
  // Core client and types
19
19
  var OnboardingStudioClient_1 = require("./OnboardingStudioClient");
20
20
  Object.defineProperty(exports, "OnboardingStudioClient", { enumerable: true, get: function () { return OnboardingStudioClient_1.OnboardingStudioClient; } });
@@ -28,6 +28,10 @@ __exportStar(require("./infra"), exports);
28
28
  // Branching
29
29
  var resolveNextStepNumber_1 = require("./resolveNextStepNumber");
30
30
  Object.defineProperty(exports, "resolveNextStepNumber", { enumerable: true, get: function () { return resolveNextStepNumber_1.resolveNextStepNumber; } });
31
+ var evaluateCondition_1 = require("./evaluateCondition");
32
+ Object.defineProperty(exports, "evaluateCondition", { enumerable: true, get: function () { return evaluateCondition_1.evaluateCondition; } });
33
+ Object.defineProperty(exports, "evaluateLeaf", { enumerable: true, get: function () { return evaluateCondition_1.evaluateLeaf; } });
34
+ Object.defineProperty(exports, "isConditionGroup", { enumerable: true, get: function () { return evaluateCondition_1.isConditionGroup; } });
31
35
  var common_types_1 = require("./steps/common.types");
32
36
  Object.defineProperty(exports, "BaseStepTypeSchema", { enumerable: true, get: function () { return common_types_1.BaseStepTypeSchema; } });
33
37
  Object.defineProperty(exports, "LeafConditionSchema", { enumerable: true, get: function () { return common_types_1.LeafConditionSchema; } });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wBAAwB;AACxB,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,0CAAwB;AACxB,uDAAqC;AAOrC,wDAGwC;AAFtC,2GAAA,kBAAkB,OAAA;AAClB,iHAAA,wBAAwB,OAAA;AAE1B,sBAAsB;AACtB,0CAAwB;AACxB,YAAY;AACZ,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAS9B,qDAQ8B;AAP5B,kHAAA,kBAAkB,OAAA;AAClB,mHAAA,mBAAmB,OAAA;AACnB,oHAAA,oBAAoB,OAAA;AACpB,4GAAA,YAAY,OAAA;AACZ,8GAAA,cAAc,OAAA;AACd,uHAAA,uBAAuB,OAAA;AACvB,oHAAA,oBAAoB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,wBAAwB;AACxB,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,0CAAwB;AACxB,uDAAqC;AAOrC,wDAGwC;AAFtC,2GAAA,kBAAkB,OAAA;AAClB,iHAAA,wBAAwB,OAAA;AAE1B,sBAAsB;AACtB,0CAAwB;AACxB,YAAY;AACZ,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,yDAAwF;AAA/E,sHAAA,iBAAiB,OAAA;AAAE,iHAAA,YAAY,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAU1D,qDAQ8B;AAP5B,kHAAA,kBAAkB,OAAA;AAClB,mHAAA,mBAAmB,OAAA;AACnB,oHAAA,oBAAoB,OAAA;AACpB,4GAAA,YAAY,OAAA;AACZ,8GAAA,cAAc,OAAA;AACd,uHAAA,uBAAuB,OAAA;AACvB,oHAAA,oBAAoB,OAAA"}
@@ -180,8 +180,8 @@ export declare const onboardingExample: {
180
180
  textAlign?: undefined;
181
181
  fontFamily?: undefined;
182
182
  fontStyle?: undefined;
183
- lineHeight?: undefined;
184
183
  opacity?: undefined;
184
+ lineHeight?: undefined;
185
185
  defaultValue?: undefined;
186
186
  gap?: undefined;
187
187
  items?: undefined;
@@ -197,6 +197,7 @@ export declare const onboardingExample: {
197
197
  actions?: undefined;
198
198
  padding?: undefined;
199
199
  backgroundGradient?: undefined;
200
+ disabledWhen?: undefined;
200
201
  };
201
202
  children?: undefined;
202
203
  } | {
@@ -230,8 +231,8 @@ export declare const onboardingExample: {
230
231
  textAlign?: undefined;
231
232
  fontFamily?: undefined;
232
233
  fontStyle?: undefined;
233
- lineHeight?: undefined;
234
234
  opacity?: undefined;
235
+ lineHeight?: undefined;
235
236
  defaultValue?: undefined;
236
237
  gap?: undefined;
237
238
  items?: undefined;
@@ -247,6 +248,7 @@ export declare const onboardingExample: {
247
248
  actions?: undefined;
248
249
  padding?: undefined;
249
250
  backgroundGradient?: undefined;
251
+ disabledWhen?: undefined;
250
252
  };
251
253
  children?: undefined;
252
254
  } | {
@@ -280,8 +282,8 @@ export declare const onboardingExample: {
280
282
  textAlign?: undefined;
281
283
  fontFamily?: undefined;
282
284
  fontStyle?: undefined;
283
- lineHeight?: undefined;
284
285
  opacity?: undefined;
286
+ lineHeight?: undefined;
285
287
  defaultValue?: undefined;
286
288
  gap?: undefined;
287
289
  items?: undefined;
@@ -297,6 +299,7 @@ export declare const onboardingExample: {
297
299
  actions?: undefined;
298
300
  padding?: undefined;
299
301
  backgroundGradient?: undefined;
302
+ disabledWhen?: undefined;
300
303
  };
301
304
  children?: undefined;
302
305
  } | {
@@ -330,8 +333,8 @@ export declare const onboardingExample: {
330
333
  textAlign?: undefined;
331
334
  fontFamily?: undefined;
332
335
  fontStyle?: undefined;
333
- lineHeight?: undefined;
334
336
  opacity?: undefined;
337
+ lineHeight?: undefined;
335
338
  defaultValue?: undefined;
336
339
  gap?: undefined;
337
340
  items?: undefined;
@@ -347,6 +350,7 @@ export declare const onboardingExample: {
347
350
  actions?: undefined;
348
351
  padding?: undefined;
349
352
  backgroundGradient?: undefined;
353
+ disabledWhen?: undefined;
350
354
  };
351
355
  children?: undefined;
352
356
  } | {
@@ -380,8 +384,8 @@ export declare const onboardingExample: {
380
384
  textAlign?: undefined;
381
385
  fontFamily?: undefined;
382
386
  fontStyle?: undefined;
383
- lineHeight?: undefined;
384
387
  opacity?: undefined;
388
+ lineHeight?: undefined;
385
389
  defaultValue?: undefined;
386
390
  gap?: undefined;
387
391
  items?: undefined;
@@ -397,6 +401,7 @@ export declare const onboardingExample: {
397
401
  actions?: undefined;
398
402
  padding?: undefined;
399
403
  backgroundGradient?: undefined;
404
+ disabledWhen?: undefined;
400
405
  };
401
406
  children?: undefined;
402
407
  } | {
@@ -430,8 +435,8 @@ export declare const onboardingExample: {
430
435
  textAlign?: undefined;
431
436
  fontFamily?: undefined;
432
437
  fontStyle?: undefined;
433
- lineHeight?: undefined;
434
438
  opacity?: undefined;
439
+ lineHeight?: undefined;
435
440
  defaultValue?: undefined;
436
441
  gap?: undefined;
437
442
  items?: undefined;
@@ -447,6 +452,7 @@ export declare const onboardingExample: {
447
452
  actions?: undefined;
448
453
  padding?: undefined;
449
454
  backgroundGradient?: undefined;
455
+ disabledWhen?: undefined;
450
456
  };
451
457
  children?: undefined;
452
458
  } | {
@@ -480,8 +486,8 @@ export declare const onboardingExample: {
480
486
  autoCapitalize?: undefined;
481
487
  fontFamily?: undefined;
482
488
  fontStyle?: undefined;
483
- lineHeight?: undefined;
484
489
  opacity?: undefined;
490
+ lineHeight?: undefined;
485
491
  defaultValue?: undefined;
486
492
  gap?: undefined;
487
493
  items?: undefined;
@@ -497,6 +503,7 @@ export declare const onboardingExample: {
497
503
  actions?: undefined;
498
504
  padding?: undefined;
499
505
  backgroundGradient?: undefined;
506
+ disabledWhen?: undefined;
500
507
  };
501
508
  children?: undefined;
502
509
  } | {
@@ -530,8 +537,8 @@ export declare const onboardingExample: {
530
537
  autoCapitalize?: undefined;
531
538
  mode?: undefined;
532
539
  fontStyle?: undefined;
533
- lineHeight?: undefined;
534
540
  opacity?: undefined;
541
+ lineHeight?: undefined;
535
542
  defaultValue?: undefined;
536
543
  gap?: undefined;
537
544
  items?: undefined;
@@ -547,6 +554,7 @@ export declare const onboardingExample: {
547
554
  actions?: undefined;
548
555
  padding?: undefined;
549
556
  backgroundGradient?: undefined;
557
+ disabledWhen?: undefined;
550
558
  };
551
559
  children?: undefined;
552
560
  } | {
@@ -580,8 +588,8 @@ export declare const onboardingExample: {
580
588
  autoCapitalize?: undefined;
581
589
  mode?: undefined;
582
590
  fontWeight?: undefined;
583
- lineHeight?: undefined;
584
591
  opacity?: undefined;
592
+ lineHeight?: undefined;
585
593
  defaultValue?: undefined;
586
594
  gap?: undefined;
587
595
  items?: undefined;
@@ -597,6 +605,109 @@ export declare const onboardingExample: {
597
605
  actions?: undefined;
598
606
  padding?: undefined;
599
607
  backgroundGradient?: undefined;
608
+ disabledWhen?: undefined;
609
+ };
610
+ children?: undefined;
611
+ } | {
612
+ id: string;
613
+ type: string;
614
+ props: {
615
+ content: string;
616
+ fontSize: number;
617
+ textAlign: string;
618
+ opacity: number;
619
+ source?: undefined;
620
+ height?: undefined;
621
+ autoPlay?: undefined;
622
+ loop?: undefined;
623
+ url?: undefined;
624
+ fit?: undefined;
625
+ resizeMode?: undefined;
626
+ borderRadius?: undefined;
627
+ name?: undefined;
628
+ size?: undefined;
629
+ color?: undefined;
630
+ marginVertical?: undefined;
631
+ controls?: undefined;
632
+ muted?: undefined;
633
+ contentFit?: undefined;
634
+ variableName?: undefined;
635
+ placeholder?: undefined;
636
+ keyboardType?: undefined;
637
+ returnKeyType?: undefined;
638
+ autoCapitalize?: undefined;
639
+ mode?: undefined;
640
+ fontWeight?: undefined;
641
+ fontFamily?: undefined;
642
+ fontStyle?: undefined;
643
+ lineHeight?: undefined;
644
+ defaultValue?: undefined;
645
+ gap?: undefined;
646
+ items?: undefined;
647
+ defaultValues?: undefined;
648
+ display?: undefined;
649
+ maximumDate?: undefined;
650
+ carouselType?: undefined;
651
+ autoPlayInterval?: undefined;
652
+ showDots?: undefined;
653
+ overflow?: undefined;
654
+ label?: undefined;
655
+ variant?: undefined;
656
+ actions?: undefined;
657
+ padding?: undefined;
658
+ backgroundGradient?: undefined;
659
+ disabledWhen?: undefined;
660
+ };
661
+ children?: undefined;
662
+ } | {
663
+ id: string;
664
+ type: string;
665
+ props: {
666
+ content: string;
667
+ fontFamily: string;
668
+ fontSize: number;
669
+ textAlign: string;
670
+ opacity: number;
671
+ source?: undefined;
672
+ height?: undefined;
673
+ autoPlay?: undefined;
674
+ loop?: undefined;
675
+ url?: undefined;
676
+ fit?: undefined;
677
+ resizeMode?: undefined;
678
+ borderRadius?: undefined;
679
+ name?: undefined;
680
+ size?: undefined;
681
+ color?: undefined;
682
+ marginVertical?: undefined;
683
+ controls?: undefined;
684
+ muted?: undefined;
685
+ contentFit?: undefined;
686
+ variableName?: undefined;
687
+ placeholder?: undefined;
688
+ keyboardType?: undefined;
689
+ returnKeyType?: undefined;
690
+ autoCapitalize?: undefined;
691
+ mode?: undefined;
692
+ fontWeight?: undefined;
693
+ fontStyle?: undefined;
694
+ lineHeight?: undefined;
695
+ defaultValue?: undefined;
696
+ gap?: undefined;
697
+ items?: undefined;
698
+ defaultValues?: undefined;
699
+ display?: undefined;
700
+ maximumDate?: undefined;
701
+ carouselType?: undefined;
702
+ autoPlayInterval?: undefined;
703
+ showDots?: undefined;
704
+ overflow?: undefined;
705
+ label?: undefined;
706
+ variant?: undefined;
707
+ actions?: undefined;
708
+ padding?: undefined;
709
+ backgroundGradient?: undefined;
710
+ disabledWhen?: undefined;
600
711
  };
601
712
  children?: undefined;
602
713
  } | {
@@ -647,6 +758,7 @@ export declare const onboardingExample: {
647
758
  actions?: undefined;
648
759
  padding?: undefined;
649
760
  backgroundGradient?: undefined;
761
+ disabledWhen?: undefined;
650
762
  };
651
763
  children?: undefined;
652
764
  } | {
@@ -686,8 +798,8 @@ export declare const onboardingExample: {
686
798
  textAlign?: undefined;
687
799
  fontFamily?: undefined;
688
800
  fontStyle?: undefined;
689
- lineHeight?: undefined;
690
801
  opacity?: undefined;
802
+ lineHeight?: undefined;
691
803
  defaultValues?: undefined;
692
804
  display?: undefined;
693
805
  maximumDate?: undefined;
@@ -700,6 +812,7 @@ export declare const onboardingExample: {
700
812
  actions?: undefined;
701
813
  padding?: undefined;
702
814
  backgroundGradient?: undefined;
815
+ disabledWhen?: undefined;
703
816
  };
704
817
  children?: undefined;
705
818
  } | {
@@ -750,6 +863,7 @@ export declare const onboardingExample: {
750
863
  actions?: undefined;
751
864
  padding?: undefined;
752
865
  backgroundGradient?: undefined;
866
+ disabledWhen?: undefined;
753
867
  };
754
868
  children?: undefined;
755
869
  } | {
@@ -789,8 +903,8 @@ export declare const onboardingExample: {
789
903
  textAlign?: undefined;
790
904
  fontFamily?: undefined;
791
905
  fontStyle?: undefined;
792
- lineHeight?: undefined;
793
906
  opacity?: undefined;
907
+ lineHeight?: undefined;
794
908
  defaultValue?: undefined;
795
909
  display?: undefined;
796
910
  maximumDate?: undefined;
@@ -803,6 +917,7 @@ export declare const onboardingExample: {
803
917
  actions?: undefined;
804
918
  padding?: undefined;
805
919
  backgroundGradient?: undefined;
920
+ disabledWhen?: undefined;
806
921
  };
807
922
  children?: undefined;
808
923
  } | {
@@ -839,8 +954,8 @@ export declare const onboardingExample: {
839
954
  textAlign?: undefined;
840
955
  fontFamily?: undefined;
841
956
  fontStyle?: undefined;
842
- lineHeight?: undefined;
843
957
  opacity?: undefined;
958
+ lineHeight?: undefined;
844
959
  gap?: undefined;
845
960
  items?: undefined;
846
961
  defaultValues?: undefined;
@@ -853,6 +968,7 @@ export declare const onboardingExample: {
853
968
  actions?: undefined;
854
969
  padding?: undefined;
855
970
  backgroundGradient?: undefined;
971
+ disabledWhen?: undefined;
856
972
  };
857
973
  children?: undefined;
858
974
  } | {
@@ -889,8 +1005,8 @@ export declare const onboardingExample: {
889
1005
  textAlign?: undefined;
890
1006
  fontFamily?: undefined;
891
1007
  fontStyle?: undefined;
892
- lineHeight?: undefined;
893
1008
  opacity?: undefined;
1009
+ lineHeight?: undefined;
894
1010
  defaultValue?: undefined;
895
1011
  gap?: undefined;
896
1012
  items?: undefined;
@@ -903,6 +1019,7 @@ export declare const onboardingExample: {
903
1019
  actions?: undefined;
904
1020
  padding?: undefined;
905
1021
  backgroundGradient?: undefined;
1022
+ disabledWhen?: undefined;
906
1023
  };
907
1024
  children: {
908
1025
  id: string;
@@ -945,8 +1062,8 @@ export declare const onboardingExample: {
945
1062
  textAlign?: undefined;
946
1063
  fontFamily?: undefined;
947
1064
  fontStyle?: undefined;
948
- lineHeight?: undefined;
949
1065
  opacity?: undefined;
1066
+ lineHeight?: undefined;
950
1067
  defaultValue?: undefined;
951
1068
  gap?: undefined;
952
1069
  items?: undefined;
@@ -961,6 +1078,7 @@ export declare const onboardingExample: {
961
1078
  actions?: undefined;
962
1079
  padding?: undefined;
963
1080
  backgroundGradient?: undefined;
1081
+ disabledWhen?: undefined;
964
1082
  };
965
1083
  children: ({
966
1084
  id: string;
@@ -1036,8 +1154,8 @@ export declare const onboardingExample: {
1036
1154
  textAlign?: undefined;
1037
1155
  fontFamily?: undefined;
1038
1156
  fontStyle?: undefined;
1039
- lineHeight?: undefined;
1040
1157
  opacity?: undefined;
1158
+ lineHeight?: undefined;
1041
1159
  defaultValue?: undefined;
1042
1160
  gap?: undefined;
1043
1161
  items?: undefined;
@@ -1050,6 +1168,7 @@ export declare const onboardingExample: {
1050
1168
  overflow?: undefined;
1051
1169
  padding?: undefined;
1052
1170
  backgroundGradient?: undefined;
1171
+ disabledWhen?: undefined;
1053
1172
  };
1054
1173
  children?: undefined;
1055
1174
  } | {
@@ -1094,8 +1213,8 @@ export declare const onboardingExample: {
1094
1213
  textAlign?: undefined;
1095
1214
  fontFamily?: undefined;
1096
1215
  fontStyle?: undefined;
1097
- lineHeight?: undefined;
1098
1216
  opacity?: undefined;
1217
+ lineHeight?: undefined;
1099
1218
  defaultValue?: undefined;
1100
1219
  items?: undefined;
1101
1220
  defaultValues?: undefined;
@@ -1107,6 +1226,7 @@ export declare const onboardingExample: {
1107
1226
  label?: undefined;
1108
1227
  variant?: undefined;
1109
1228
  actions?: undefined;
1229
+ disabledWhen?: undefined;
1110
1230
  };
1111
1231
  children: ({
1112
1232
  id: string;
@@ -1171,8 +1291,8 @@ export declare const onboardingExample: {
1171
1291
  textAlign?: undefined;
1172
1292
  fontFamily?: undefined;
1173
1293
  fontStyle?: undefined;
1174
- lineHeight?: undefined;
1175
1294
  opacity?: undefined;
1295
+ lineHeight?: undefined;
1176
1296
  defaultValue?: undefined;
1177
1297
  gap?: undefined;
1178
1298
  items?: undefined;
@@ -1185,6 +1305,118 @@ export declare const onboardingExample: {
1185
1305
  overflow?: undefined;
1186
1306
  actions?: undefined;
1187
1307
  padding?: undefined;
1308
+ disabledWhen?: undefined;
1309
+ };
1310
+ children?: undefined;
1311
+ } | {
1312
+ id: string;
1313
+ type: string;
1314
+ props: {
1315
+ label: string;
1316
+ variant: string;
1317
+ marginVertical: number;
1318
+ actions: {
1319
+ type: string;
1320
+ name: string;
1321
+ value: string;
1322
+ label: string;
1323
+ }[];
1324
+ source?: undefined;
1325
+ height?: undefined;
1326
+ autoPlay?: undefined;
1327
+ loop?: undefined;
1328
+ url?: undefined;
1329
+ fit?: undefined;
1330
+ resizeMode?: undefined;
1331
+ borderRadius?: undefined;
1332
+ name?: undefined;
1333
+ size?: undefined;
1334
+ color?: undefined;
1335
+ controls?: undefined;
1336
+ muted?: undefined;
1337
+ contentFit?: undefined;
1338
+ variableName?: undefined;
1339
+ placeholder?: undefined;
1340
+ keyboardType?: undefined;
1341
+ returnKeyType?: undefined;
1342
+ autoCapitalize?: undefined;
1343
+ content?: undefined;
1344
+ mode?: undefined;
1345
+ fontSize?: undefined;
1346
+ fontWeight?: undefined;
1347
+ textAlign?: undefined;
1348
+ fontFamily?: undefined;
1349
+ fontStyle?: undefined;
1350
+ opacity?: undefined;
1351
+ lineHeight?: undefined;
1352
+ defaultValue?: undefined;
1353
+ gap?: undefined;
1354
+ items?: undefined;
1355
+ defaultValues?: undefined;
1356
+ display?: undefined;
1357
+ maximumDate?: undefined;
1358
+ carouselType?: undefined;
1359
+ autoPlayInterval?: undefined;
1360
+ showDots?: undefined;
1361
+ overflow?: undefined;
1362
+ padding?: undefined;
1363
+ backgroundGradient?: undefined;
1364
+ disabledWhen?: undefined;
1365
+ };
1366
+ children?: undefined;
1367
+ } | {
1368
+ id: string;
1369
+ type: string;
1370
+ props: {
1371
+ label: string;
1372
+ variant: string;
1373
+ marginVertical: number;
1374
+ actions: string[];
1375
+ disabledWhen: {
1376
+ variable: string;
1377
+ operator: string;
1378
+ value: string;
1379
+ };
1380
+ source?: undefined;
1381
+ height?: undefined;
1382
+ autoPlay?: undefined;
1383
+ loop?: undefined;
1384
+ url?: undefined;
1385
+ fit?: undefined;
1386
+ resizeMode?: undefined;
1387
+ borderRadius?: undefined;
1388
+ name?: undefined;
1389
+ size?: undefined;
1390
+ color?: undefined;
1391
+ controls?: undefined;
1392
+ muted?: undefined;
1393
+ contentFit?: undefined;
1394
+ variableName?: undefined;
1395
+ placeholder?: undefined;
1396
+ keyboardType?: undefined;
1397
+ returnKeyType?: undefined;
1398
+ autoCapitalize?: undefined;
1399
+ content?: undefined;
1400
+ mode?: undefined;
1401
+ fontSize?: undefined;
1402
+ fontWeight?: undefined;
1403
+ textAlign?: undefined;
1404
+ fontFamily?: undefined;
1405
+ fontStyle?: undefined;
1406
+ opacity?: undefined;
1407
+ lineHeight?: undefined;
1408
+ defaultValue?: undefined;
1409
+ gap?: undefined;
1410
+ items?: undefined;
1411
+ defaultValues?: undefined;
1412
+ display?: undefined;
1413
+ maximumDate?: undefined;
1414
+ carouselType?: undefined;
1415
+ autoPlayInterval?: undefined;
1416
+ showDots?: undefined;
1417
+ overflow?: undefined;
1418
+ padding?: undefined;
1419
+ backgroundGradient?: undefined;
1188
1420
  };
1189
1421
  children?: undefined;
1190
1422
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-example.d.ts","sourceRoot":"","sources":["../src/onboarding-example.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwhBR,CAAC"}
@@ -215,6 +215,27 @@ exports.onboardingExample = {
215
215
  marginVertical: 4,
216
216
  },
217
217
  },
218
+ {
219
+ id: "inherit-implicit",
220
+ type: "Text",
221
+ props: {
222
+ content: "Inherits theme.typography.defaultFontFamily (omitted)",
223
+ fontSize: 14,
224
+ textAlign: "center",
225
+ opacity: 0.6,
226
+ },
227
+ },
228
+ {
229
+ id: "inherit-explicit",
230
+ type: "Text",
231
+ props: {
232
+ content: "Inherits theme.typography.defaultFontFamily (explicit \"inherit\")",
233
+ fontFamily: "inherit",
234
+ fontSize: 14,
235
+ textAlign: "center",
236
+ opacity: 0.6,
237
+ },
238
+ },
218
239
  {
219
240
  id: "subheadline",
220
241
  type: "Text",
@@ -454,6 +475,33 @@ exports.onboardingExample = {
454
475
  },
455
476
  },
456
477
  },
478
+ {
479
+ id: "consent-toggle",
480
+ type: "Button",
481
+ props: {
482
+ label: "I agree to the terms",
483
+ variant: "outlined",
484
+ marginVertical: 8,
485
+ actions: [
486
+ { type: "setVariable", name: "consent_given", value: "yes", label: "Agreed" },
487
+ ],
488
+ },
489
+ },
490
+ {
491
+ id: "gated-continue",
492
+ type: "Button",
493
+ props: {
494
+ label: "Continue (gated)",
495
+ variant: "filled",
496
+ marginVertical: 4,
497
+ actions: ["continue"],
498
+ disabledWhen: {
499
+ variable: "consent_given",
500
+ operator: "neq",
501
+ value: "yes",
502
+ },
503
+ },
504
+ },
457
505
  ],
458
506
  },
459
507
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-example.js","sourceRoot":"","sources":["../src/onboarding-example.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE;QACR,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,oBAAoB;QAC1B,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,SAAS;QACvB,aAAa,EAAE,SAAS;QACxB,KAAK,EAAE,IAAI;KACZ;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,OAAO,EAAE,6EAA6E;YACtF,MAAM,EAAE,6EAA6E;YACrF,IAAI,EAAE,6EAA6E;SACpF;QACD,OAAO,EAAE;YACP,OAAO,EAAE,+EAA+E;SACzF;KACF;IACD,KAAK,EAAE;QACL;YACE,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE;gBACP,KAAK,EAAE,qBAAqB;gBAC5B,WAAW,EAAE,+CAA+C;gBAC5D,WAAW,EAAE;oBACX,GAAG,EAAE,mDAAmD;oBACxD,IAAI,EAAE,OAAO;iBACd;aACF;YACD,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,EAAE;YACjB,mBAAmB,EAAE,UAAU;YAC/B,qBAAqB,EAAE,IAAI;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ACF;6BACF;yBACE;qBACF;iBACF;aACF;YACD,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,EAAE;YACjB,mBAAmB,EAAE,UAAU;SAChC;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE;gBACP,KAAK,EAAE,mBAAmB;gBAC1B,QAAQ,EAAE,0BAA0B;gBACpC,YAAY,EAAE;oBACZ;wBACE,OAAO,EACL,wFAAwF;wBAC1F,UAAU,EAAE,eAAe;wBAC3B,YAAY,EAAE,CAAC;qBAChB;iBACF;gBACD,qBAAqB,EAAE,cAAc;aACtC;YACD,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,EAAE;YACjB,mBAAmB,EAAE,UAAU;YAC/B,qBAAqB,EAAE,KAAK;SAC7B;KACF;IACD,aAAa,EAAE,EAAE;CACG,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { BaseBoxProps } from "./BaseBoxProps";
3
+ import { type LeafCondition, type ConditionGroup } from "../../common.types";
3
4
  export type CustomButtonAction = {
4
5
  type: "custom";
5
6
  function: string;
@@ -33,9 +34,23 @@ export type ButtonElementProps = BaseBoxProps & {
33
34
  color?: string;
34
35
  fontSize?: number;
35
36
  fontWeight?: string;
36
- fontFamily?: string;
37
+ /**
38
+ * Font family name. Omit or set to `"inherit"` to inherit from
39
+ * `theme.typography.defaultFontFamily`.
40
+ */
41
+ fontFamily?: string | "inherit";
37
42
  fontStyle?: "normal" | "italic";
38
43
  textAlign?: "left" | "center" | "right";
44
+ /**
45
+ * When the condition evaluates truthy against current onboarding variables,
46
+ * the button blocks all press actions and renders in a disabled style. Uses
47
+ * the same condition schema as `Branch.condition`.
48
+ */
49
+ disabledWhen?: LeafCondition | ConditionGroup;
50
+ /** Override background color in the disabled state (filled variant). Defaults to `theme.colors.disable`. */
51
+ disabledBackgroundColor?: string;
52
+ /** Override text color in the disabled state. Defaults to `theme.colors.text.disable`. */
53
+ disabledColor?: string;
39
54
  };
40
55
  export declare const ButtonElementPropsSchema: z.ZodObject<{
41
56
  width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
@@ -125,5 +140,22 @@ export declare const ButtonElementPropsSchema: z.ZodObject<{
125
140
  right: "right";
126
141
  center: "center";
127
142
  }>>;
143
+ disabledWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
144
+ variable: z.ZodString;
145
+ operator: z.ZodEnum<{
146
+ eq: "eq";
147
+ neq: "neq";
148
+ gt: "gt";
149
+ lt: "lt";
150
+ gte: "gte";
151
+ lte: "lte";
152
+ contains: "contains";
153
+ in: "in";
154
+ not_in: "not_in";
155
+ }>;
156
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
157
+ }, z.core.$strip>, z.ZodType<ConditionGroup, unknown, z.core.$ZodTypeInternals<ConditionGroup, unknown>>]>>;
158
+ disabledBackgroundColor: z.ZodOptional<z.ZodString>;
159
+ disabledColor: z.ZodOptional<z.ZodString>;
128
160
  }, z.core.$strip>;
129
161
  //# sourceMappingURL=ButtonElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/ButtonElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,kBAAk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YAAY,GAAG,UAAU,GAAG,kBAAkB,CAAC;AAE3D,eAAO,MAAM,kBAAkB;;;;mBAG7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;IAC9C,4GAA4G;IAC5G,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAenC,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ButtonElementPropsSchema = exports.ButtonActionSchema = exports.CustomButtonActionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const BaseBoxProps_1 = require("./BaseBoxProps");
6
+ const common_types_1 = require("../../common.types");
6
7
  exports.CustomButtonActionSchema = zod_1.z.object({
7
8
  type: zod_1.z.literal("custom"),
8
9
  function: zod_1.z.string().min(1, "function must not be empty"),
@@ -24,5 +25,8 @@ exports.ButtonElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
24
25
  fontFamily: zod_1.z.string().optional(),
25
26
  fontStyle: zod_1.z.enum(["normal", "italic"]).optional(),
26
27
  textAlign: zod_1.z.enum(["left", "center", "right"]).optional(),
28
+ disabledWhen: zod_1.z.union([common_types_1.LeafConditionSchema, common_types_1.ConditionGroupSchema]).optional(),
29
+ disabledBackgroundColor: zod_1.z.string().optional(),
30
+ disabledColor: zod_1.z.string().optional(),
27
31
  });
28
32
  //# sourceMappingURL=ButtonElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/ButtonElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAQrD,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,4BAA4B,CAAC;IACzD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,OAAC,CAAC,KAAK,CAAC;IACxC,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IACrB,gCAAwB;CACzB,CAAC,CAAC;AAwBU,QAAA,wBAAwB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAChE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;IACnD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,0BAAkB,CAAC,CAAC,QAAQ,EAAE;IAC/C,MAAM,EAAE,OAAC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,CAAC"}
@@ -16,7 +16,11 @@ export type InputElementProps = BaseBoxProps & {
16
16
  backgroundColor?: string;
17
17
  fontSize?: number;
18
18
  fontWeight?: string;
19
- fontFamily?: string;
19
+ /**
20
+ * Font family name. Omit or set to `"inherit"` to inherit from
21
+ * `theme.typography.defaultFontFamily`.
22
+ */
23
+ fontFamily?: string | "inherit";
20
24
  fontStyle?: "normal" | "italic";
21
25
  lineHeight?: number;
22
26
  letterSpacing?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"InputElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/InputElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,KAAK,GAAG,YAAY,GAAG,eAAe,GAAG,yBAAyB,GAAG,gBAAgB,GAAG,SAAS,GAAG,YAAY,GAAG,kBAAkB,CAAC;IAC7N,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;IACxJ,cAAc,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;IAC/D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MA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EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
@@ -5,7 +5,11 @@ export type TextElementProps = BaseBoxProps & {
5
5
  mode?: "plain" | "expression";
6
6
  fontSize?: number;
7
7
  fontWeight?: string;
8
- fontFamily?: string;
8
+ /**
9
+ * Font family name. Omit or set to `"inherit"` to inherit from
10
+ * `theme.typography.defaultFontFamily`.
11
+ */
12
+ fontFamily?: string | "inherit";
9
13
  fontStyle?: "normal" | "italic";
10
14
  color?: string;
11
15
  textAlign?: "left" | "center" | "right";
@@ -1 +1 @@
1
- {"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TextElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWjC,CAAC"}
1
+ {"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TextElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,GAAG,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/TextElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAerD,QAAA,sBAAsB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC9D,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAA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AC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rocapine/react-native-onboarding",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "description": "Headless React Native SDK for Rocapine Onboarding Studio - Data fetching, state management, and hooks",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -16,6 +16,8 @@ export {
16
16
  export * from "./infra";
17
17
  // Branching
18
18
  export { resolveNextStepNumber } from "./resolveNextStepNumber";
19
+ export { evaluateCondition, evaluateLeaf, isConditionGroup } from "./evaluateCondition";
20
+ export type { Condition } from "./evaluateCondition";
19
21
  export type {
20
22
  LeafCondition,
21
23
  ConditionGroup,
@@ -214,6 +214,27 @@ export const onboardingExample = {
214
214
  marginVertical: 4,
215
215
  },
216
216
  },
217
+ {
218
+ id: "inherit-implicit",
219
+ type: "Text",
220
+ props: {
221
+ content: "Inherits theme.typography.defaultFontFamily (omitted)",
222
+ fontSize: 14,
223
+ textAlign: "center",
224
+ opacity: 0.6,
225
+ },
226
+ },
227
+ {
228
+ id: "inherit-explicit",
229
+ type: "Text",
230
+ props: {
231
+ content: "Inherits theme.typography.defaultFontFamily (explicit \"inherit\")",
232
+ fontFamily: "inherit",
233
+ fontSize: 14,
234
+ textAlign: "center",
235
+ opacity: 0.6,
236
+ },
237
+ },
217
238
  {
218
239
  id: "subheadline",
219
240
  type: "Text",
@@ -454,6 +475,33 @@ export const onboardingExample = {
454
475
  },
455
476
  },
456
477
  },
478
+ {
479
+ id: "consent-toggle",
480
+ type: "Button",
481
+ props: {
482
+ label: "I agree to the terms",
483
+ variant: "outlined",
484
+ marginVertical: 8,
485
+ actions: [
486
+ { type: "setVariable", name: "consent_given", value: "yes", label: "Agreed" },
487
+ ],
488
+ },
489
+ },
490
+ {
491
+ id: "gated-continue",
492
+ type: "Button",
493
+ props: {
494
+ label: "Continue (gated)",
495
+ variant: "filled",
496
+ marginVertical: 4,
497
+ actions: ["continue"],
498
+ disabledWhen: {
499
+ variable: "consent_given",
500
+ operator: "neq",
501
+ value: "yes",
502
+ },
503
+ },
504
+ },
457
505
  ],
458
506
  },
459
507
  ],
@@ -1,5 +1,11 @@
1
1
  import { z } from "zod";
2
2
  import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
3
+ import {
4
+ type LeafCondition,
5
+ type ConditionGroup,
6
+ LeafConditionSchema,
7
+ ConditionGroupSchema,
8
+ } from "../../common.types";
3
9
 
4
10
  export type CustomButtonAction = {
5
11
  type: "custom";
@@ -37,9 +43,23 @@ export type ButtonElementProps = BaseBoxProps & {
37
43
  color?: string;
38
44
  fontSize?: number;
39
45
  fontWeight?: string;
40
- fontFamily?: string;
46
+ /**
47
+ * Font family name. Omit or set to `"inherit"` to inherit from
48
+ * `theme.typography.defaultFontFamily`.
49
+ */
50
+ fontFamily?: string | "inherit";
41
51
  fontStyle?: "normal" | "italic";
42
52
  textAlign?: "left" | "center" | "right";
53
+ /**
54
+ * When the condition evaluates truthy against current onboarding variables,
55
+ * the button blocks all press actions and renders in a disabled style. Uses
56
+ * the same condition schema as `Branch.condition`.
57
+ */
58
+ disabledWhen?: LeafCondition | ConditionGroup;
59
+ /** Override background color in the disabled state (filled variant). Defaults to `theme.colors.disable`. */
60
+ disabledBackgroundColor?: string;
61
+ /** Override text color in the disabled state. Defaults to `theme.colors.text.disable`. */
62
+ disabledColor?: string;
43
63
  };
44
64
 
45
65
  export const ButtonElementPropsSchema = BaseBoxPropsSchema.extend({
@@ -54,4 +74,7 @@ export const ButtonElementPropsSchema = BaseBoxPropsSchema.extend({
54
74
  fontFamily: z.string().optional(),
55
75
  fontStyle: z.enum(["normal", "italic"]).optional(),
56
76
  textAlign: z.enum(["left", "center", "right"]).optional(),
77
+ disabledWhen: z.union([LeafConditionSchema, ConditionGroupSchema]).optional(),
78
+ disabledBackgroundColor: z.string().optional(),
79
+ disabledColor: z.string().optional(),
57
80
  });
@@ -17,7 +17,11 @@ export type InputElementProps = BaseBoxProps & {
17
17
  backgroundColor?: string;
18
18
  fontSize?: number;
19
19
  fontWeight?: string;
20
- fontFamily?: string;
20
+ /**
21
+ * Font family name. Omit or set to `"inherit"` to inherit from
22
+ * `theme.typography.defaultFontFamily`.
23
+ */
24
+ fontFamily?: string | "inherit";
21
25
  fontStyle?: "normal" | "italic";
22
26
  lineHeight?: number;
23
27
  letterSpacing?: number;
@@ -6,7 +6,11 @@ export type TextElementProps = BaseBoxProps & {
6
6
  mode?: "plain" | "expression";
7
7
  fontSize?: number;
8
8
  fontWeight?: string;
9
- fontFamily?: string;
9
+ /**
10
+ * Font family name. Omit or set to `"inherit"` to inherit from
11
+ * `theme.typography.defaultFontFamily`.
12
+ */
13
+ fontFamily?: string | "inherit";
10
14
  fontStyle?: "normal" | "italic";
11
15
  color?: string;
12
16
  textAlign?: "left" | "center" | "right";