@rocapine/react-native-onboarding 1.12.0 → 1.13.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/onboarding-example.d.ts +174 -0
- package/dist/onboarding-example.d.ts.map +1 -1
- package/dist/onboarding-example.js +50 -0
- package/dist/onboarding-example.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts +67 -0
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js +15 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts +28 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts +28 -1
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts +28 -1
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.d.ts +2 -2
- package/dist/steps/ComposableScreen/types.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.js +2 -1
- package/dist/steps/ComposableScreen/types.js.map +1 -1
- package/package.json +1 -1
- package/src/onboarding-example.ts +50 -0
- package/src/steps/ComposableScreen/elements/BaseBoxProps.ts +42 -0
- package/src/steps/ComposableScreen/types.ts +2 -2
|
@@ -31,6 +31,33 @@ export declare const DatePickerElementPropsSchema: z.ZodObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
34
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"linear">;
|
|
36
|
+
from: z.ZodEnum<{
|
|
37
|
+
top: "top";
|
|
38
|
+
bottom: "bottom";
|
|
39
|
+
left: "left";
|
|
40
|
+
right: "right";
|
|
41
|
+
topLeft: "topLeft";
|
|
42
|
+
topRight: "topRight";
|
|
43
|
+
bottomLeft: "bottomLeft";
|
|
44
|
+
bottomRight: "bottomRight";
|
|
45
|
+
}>;
|
|
46
|
+
to: z.ZodEnum<{
|
|
47
|
+
top: "top";
|
|
48
|
+
bottom: "bottom";
|
|
49
|
+
left: "left";
|
|
50
|
+
right: "right";
|
|
51
|
+
topLeft: "topLeft";
|
|
52
|
+
topRight: "topRight";
|
|
53
|
+
bottomLeft: "bottomLeft";
|
|
54
|
+
bottomRight: "bottomRight";
|
|
55
|
+
}>;
|
|
56
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
57
|
+
color: z.ZodString;
|
|
58
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>], "type">>;
|
|
34
61
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
35
62
|
hidden: "hidden";
|
|
36
63
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/DatePickerElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"DatePickerElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/DatePickerElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUvC,CAAC"}
|
|
@@ -26,6 +26,33 @@ export declare const IconElementPropsSchema: z.ZodObject<{
|
|
|
26
26
|
baseline: "baseline";
|
|
27
27
|
}>>;
|
|
28
28
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"linear">;
|
|
31
|
+
from: z.ZodEnum<{
|
|
32
|
+
top: "top";
|
|
33
|
+
bottom: "bottom";
|
|
34
|
+
left: "left";
|
|
35
|
+
right: "right";
|
|
36
|
+
topLeft: "topLeft";
|
|
37
|
+
topRight: "topRight";
|
|
38
|
+
bottomLeft: "bottomLeft";
|
|
39
|
+
bottomRight: "bottomRight";
|
|
40
|
+
}>;
|
|
41
|
+
to: z.ZodEnum<{
|
|
42
|
+
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
|
+
left: "left";
|
|
45
|
+
right: "right";
|
|
46
|
+
topLeft: "topLeft";
|
|
47
|
+
topRight: "topRight";
|
|
48
|
+
bottomLeft: "bottomLeft";
|
|
49
|
+
bottomRight: "bottomRight";
|
|
50
|
+
}>;
|
|
51
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
52
|
+
color: z.ZodString;
|
|
53
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "type">>;
|
|
29
56
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
30
57
|
hidden: "hidden";
|
|
31
58
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/IconElement.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,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"IconElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/IconElement.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,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
|
|
@@ -25,6 +25,33 @@ export declare const ImageElementPropsSchema: z.ZodObject<{
|
|
|
25
25
|
}>>;
|
|
26
26
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
28
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"linear">;
|
|
30
|
+
from: z.ZodEnum<{
|
|
31
|
+
top: "top";
|
|
32
|
+
bottom: "bottom";
|
|
33
|
+
left: "left";
|
|
34
|
+
right: "right";
|
|
35
|
+
topLeft: "topLeft";
|
|
36
|
+
topRight: "topRight";
|
|
37
|
+
bottomLeft: "bottomLeft";
|
|
38
|
+
bottomRight: "bottomRight";
|
|
39
|
+
}>;
|
|
40
|
+
to: z.ZodEnum<{
|
|
41
|
+
top: "top";
|
|
42
|
+
bottom: "bottom";
|
|
43
|
+
left: "left";
|
|
44
|
+
right: "right";
|
|
45
|
+
topLeft: "topLeft";
|
|
46
|
+
topRight: "topRight";
|
|
47
|
+
bottomLeft: "bottomLeft";
|
|
48
|
+
bottomRight: "bottomRight";
|
|
49
|
+
}>;
|
|
50
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
51
|
+
color: z.ZodString;
|
|
52
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>], "type">>;
|
|
28
55
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
29
56
|
hidden: "hidden";
|
|
30
57
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/ImageElement.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,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"ImageElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/ImageElement.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,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAC"}
|
|
@@ -41,6 +41,33 @@ export declare const InputElementPropsSchema: z.ZodObject<{
|
|
|
41
41
|
baseline: "baseline";
|
|
42
42
|
}>>;
|
|
43
43
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"linear">;
|
|
46
|
+
from: z.ZodEnum<{
|
|
47
|
+
top: "top";
|
|
48
|
+
bottom: "bottom";
|
|
49
|
+
left: "left";
|
|
50
|
+
right: "right";
|
|
51
|
+
topLeft: "topLeft";
|
|
52
|
+
topRight: "topRight";
|
|
53
|
+
bottomLeft: "bottomLeft";
|
|
54
|
+
bottomRight: "bottomRight";
|
|
55
|
+
}>;
|
|
56
|
+
to: z.ZodEnum<{
|
|
57
|
+
top: "top";
|
|
58
|
+
bottom: "bottom";
|
|
59
|
+
left: "left";
|
|
60
|
+
right: "right";
|
|
61
|
+
topLeft: "topLeft";
|
|
62
|
+
topRight: "topRight";
|
|
63
|
+
bottomLeft: "bottomLeft";
|
|
64
|
+
bottomRight: "bottomRight";
|
|
65
|
+
}>;
|
|
66
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
67
|
+
color: z.ZodString;
|
|
68
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>], "type">>;
|
|
44
71
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
45
72
|
hidden: "hidden";
|
|
46
73
|
visible: "visible";
|
|
@@ -107,9 +134,9 @@ export declare const InputElementPropsSchema: z.ZodObject<{
|
|
|
107
134
|
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
108
135
|
letterSpacing: z.ZodOptional<z.ZodNumber>;
|
|
109
136
|
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
110
|
-
center: "center";
|
|
111
137
|
left: "left";
|
|
112
138
|
right: "right";
|
|
139
|
+
center: "center";
|
|
113
140
|
}>>;
|
|
114
141
|
placeholderColor: z.ZodOptional<z.ZodString>;
|
|
115
142
|
}, z.core.$strip>;
|
|
@@ -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,YA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AAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBlC,CAAC"}
|
|
@@ -26,6 +26,33 @@ export declare const LottieElementPropsSchema: z.ZodObject<{
|
|
|
26
26
|
}>>;
|
|
27
27
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
29
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"linear">;
|
|
31
|
+
from: z.ZodEnum<{
|
|
32
|
+
top: "top";
|
|
33
|
+
bottom: "bottom";
|
|
34
|
+
left: "left";
|
|
35
|
+
right: "right";
|
|
36
|
+
topLeft: "topLeft";
|
|
37
|
+
topRight: "topRight";
|
|
38
|
+
bottomLeft: "bottomLeft";
|
|
39
|
+
bottomRight: "bottomRight";
|
|
40
|
+
}>;
|
|
41
|
+
to: z.ZodEnum<{
|
|
42
|
+
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
|
+
left: "left";
|
|
45
|
+
right: "right";
|
|
46
|
+
topLeft: "topLeft";
|
|
47
|
+
topRight: "topRight";
|
|
48
|
+
bottomLeft: "bottomLeft";
|
|
49
|
+
bottomRight: "bottomRight";
|
|
50
|
+
}>;
|
|
51
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
52
|
+
color: z.ZodString;
|
|
53
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "type">>;
|
|
29
56
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
30
57
|
hidden: "hidden";
|
|
31
58
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LottieElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/LottieElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"LottieElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/LottieElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnC,CAAC"}
|
|
@@ -44,6 +44,33 @@ export declare const RadioGroupElementPropsSchema: z.ZodObject<{
|
|
|
44
44
|
}>>;
|
|
45
45
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
46
46
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
47
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"linear">;
|
|
49
|
+
from: z.ZodEnum<{
|
|
50
|
+
top: "top";
|
|
51
|
+
bottom: "bottom";
|
|
52
|
+
left: "left";
|
|
53
|
+
right: "right";
|
|
54
|
+
topLeft: "topLeft";
|
|
55
|
+
topRight: "topRight";
|
|
56
|
+
bottomLeft: "bottomLeft";
|
|
57
|
+
bottomRight: "bottomRight";
|
|
58
|
+
}>;
|
|
59
|
+
to: z.ZodEnum<{
|
|
60
|
+
top: "top";
|
|
61
|
+
bottom: "bottom";
|
|
62
|
+
left: "left";
|
|
63
|
+
right: "right";
|
|
64
|
+
topLeft: "topLeft";
|
|
65
|
+
topRight: "topRight";
|
|
66
|
+
bottomLeft: "bottomLeft";
|
|
67
|
+
bottomRight: "bottomRight";
|
|
68
|
+
}>;
|
|
69
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
70
|
+
color: z.ZodString;
|
|
71
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
}, z.core.$strip>], "type">>;
|
|
47
74
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
48
75
|
hidden: "hidden";
|
|
49
76
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RadioGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"RadioGroupElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RadioGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BvC,CAAC"}
|
|
@@ -28,6 +28,33 @@ export declare const RiveElementPropsSchema: z.ZodObject<{
|
|
|
28
28
|
}>>;
|
|
29
29
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
31
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"linear">;
|
|
33
|
+
from: z.ZodEnum<{
|
|
34
|
+
top: "top";
|
|
35
|
+
bottom: "bottom";
|
|
36
|
+
left: "left";
|
|
37
|
+
right: "right";
|
|
38
|
+
topLeft: "topLeft";
|
|
39
|
+
topRight: "topRight";
|
|
40
|
+
bottomLeft: "bottomLeft";
|
|
41
|
+
bottomRight: "bottomRight";
|
|
42
|
+
}>;
|
|
43
|
+
to: z.ZodEnum<{
|
|
44
|
+
top: "top";
|
|
45
|
+
bottom: "bottom";
|
|
46
|
+
left: "left";
|
|
47
|
+
right: "right";
|
|
48
|
+
topLeft: "topLeft";
|
|
49
|
+
topRight: "topRight";
|
|
50
|
+
bottomLeft: "bottomLeft";
|
|
51
|
+
bottomRight: "bottomRight";
|
|
52
|
+
}>;
|
|
53
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
54
|
+
color: z.ZodString;
|
|
55
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>], "type">>;
|
|
31
58
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
32
59
|
hidden: "hidden";
|
|
33
60
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RiveElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RiveElement.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,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IAChG,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;IAC3I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"RiveElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RiveElement.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,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,CAAC;IAChG,SAAS,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,aAAa,CAAC;IAC3I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOjC,CAAC"}
|
|
@@ -26,6 +26,33 @@ export declare const StackElementPropsSchema: z.ZodObject<{
|
|
|
26
26
|
}>>;
|
|
27
27
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
29
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<"linear">;
|
|
31
|
+
from: z.ZodEnum<{
|
|
32
|
+
top: "top";
|
|
33
|
+
bottom: "bottom";
|
|
34
|
+
left: "left";
|
|
35
|
+
right: "right";
|
|
36
|
+
topLeft: "topLeft";
|
|
37
|
+
topRight: "topRight";
|
|
38
|
+
bottomLeft: "bottomLeft";
|
|
39
|
+
bottomRight: "bottomRight";
|
|
40
|
+
}>;
|
|
41
|
+
to: z.ZodEnum<{
|
|
42
|
+
top: "top";
|
|
43
|
+
bottom: "bottom";
|
|
44
|
+
left: "left";
|
|
45
|
+
right: "right";
|
|
46
|
+
topLeft: "topLeft";
|
|
47
|
+
topRight: "topRight";
|
|
48
|
+
bottomLeft: "bottomLeft";
|
|
49
|
+
bottomRight: "bottomRight";
|
|
50
|
+
}>;
|
|
51
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
52
|
+
color: z.ZodString;
|
|
53
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "type">>;
|
|
29
56
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
30
57
|
hidden: "hidden";
|
|
31
58
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/StackElement.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,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9D,cAAc,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC;IACzF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"StackElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/StackElement.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,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9D,cAAc,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC;IACzF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlC,CAAC"}
|
|
@@ -31,6 +31,33 @@ export declare const TextElementPropsSchema: z.ZodObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
33
33
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
34
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"linear">;
|
|
36
|
+
from: z.ZodEnum<{
|
|
37
|
+
top: "top";
|
|
38
|
+
bottom: "bottom";
|
|
39
|
+
left: "left";
|
|
40
|
+
right: "right";
|
|
41
|
+
topLeft: "topLeft";
|
|
42
|
+
topRight: "topRight";
|
|
43
|
+
bottomLeft: "bottomLeft";
|
|
44
|
+
bottomRight: "bottomRight";
|
|
45
|
+
}>;
|
|
46
|
+
to: z.ZodEnum<{
|
|
47
|
+
top: "top";
|
|
48
|
+
bottom: "bottom";
|
|
49
|
+
left: "left";
|
|
50
|
+
right: "right";
|
|
51
|
+
topLeft: "topLeft";
|
|
52
|
+
topRight: "topRight";
|
|
53
|
+
bottomLeft: "bottomLeft";
|
|
54
|
+
bottomRight: "bottomRight";
|
|
55
|
+
}>;
|
|
56
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
57
|
+
color: z.ZodString;
|
|
58
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>], "type">>;
|
|
34
61
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
35
62
|
hidden: "hidden";
|
|
36
63
|
visible: "visible";
|
|
@@ -55,9 +82,9 @@ export declare const TextElementPropsSchema: z.ZodObject<{
|
|
|
55
82
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
56
83
|
color: z.ZodOptional<z.ZodString>;
|
|
57
84
|
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
58
|
-
center: "center";
|
|
59
85
|
left: "left";
|
|
60
86
|
right: "right";
|
|
87
|
+
center: "center";
|
|
61
88
|
}>>;
|
|
62
89
|
letterSpacing: z.ZodOptional<z.ZodNumber>;
|
|
63
90
|
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
@@ -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,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
|
|
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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUjC,CAAC"}
|
|
@@ -27,6 +27,33 @@ export declare const VideoElementPropsSchema: z.ZodObject<{
|
|
|
27
27
|
}>>;
|
|
28
28
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
30
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
type: z.ZodLiteral<"linear">;
|
|
32
|
+
from: z.ZodEnum<{
|
|
33
|
+
top: "top";
|
|
34
|
+
bottom: "bottom";
|
|
35
|
+
left: "left";
|
|
36
|
+
right: "right";
|
|
37
|
+
topLeft: "topLeft";
|
|
38
|
+
topRight: "topRight";
|
|
39
|
+
bottomLeft: "bottomLeft";
|
|
40
|
+
bottomRight: "bottomRight";
|
|
41
|
+
}>;
|
|
42
|
+
to: z.ZodEnum<{
|
|
43
|
+
top: "top";
|
|
44
|
+
bottom: "bottom";
|
|
45
|
+
left: "left";
|
|
46
|
+
right: "right";
|
|
47
|
+
topLeft: "topLeft";
|
|
48
|
+
topRight: "topRight";
|
|
49
|
+
bottomLeft: "bottomLeft";
|
|
50
|
+
bottomRight: "bottomRight";
|
|
51
|
+
}>;
|
|
52
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
53
|
+
color: z.ZodString;
|
|
54
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
}, z.core.$strip>], "type">>;
|
|
30
57
|
overflow: z.ZodOptional<z.ZodEnum<{
|
|
31
58
|
hidden: "hidden";
|
|
32
59
|
visible: "visible";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/VideoElement.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,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"VideoElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/VideoElement.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,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMlC,CAAC"}
|
|
@@ -12,8 +12,8 @@ import { type RadioGroupElementProps } from "./elements/RadioGroupElement";
|
|
|
12
12
|
import { type CheckboxGroupElementProps } from "./elements/CheckboxGroupElement";
|
|
13
13
|
import { type DatePickerElementProps } from "./elements/DatePickerElement";
|
|
14
14
|
import { type CarouselElementProps } from "./elements/CarouselElement";
|
|
15
|
-
export type { BaseBoxProps } from "./elements/BaseBoxProps";
|
|
16
|
-
export { BaseBoxPropsSchema } from "./elements/BaseBoxProps";
|
|
15
|
+
export type { BaseBoxProps, GradientBackground, GradientEdge, GradientStop, LinearGradientConfig } from "./elements/BaseBoxProps";
|
|
16
|
+
export { BaseBoxPropsSchema, GradientBackgroundSchema } from "./elements/BaseBoxProps";
|
|
17
17
|
export type { StackElementProps } from "./elements/StackElement";
|
|
18
18
|
export type { TextElementProps } from "./elements/TextElement";
|
|
19
19
|
export type { ImageElementProps } from "./elements/ImageElement";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/ComposableScreen/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAAE,KAAK,gBAAgB,EAA0B,MAAM,wBAAwB,CAAC;AACvF,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,yBAAyB,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,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,yBAAyB,CAAC;CAClC,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,sBAAsB,CAAC;CAC/B,GACD;IACE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB,CAAC;AAuFN,eAAO,MAAM,iCAAiC;;iBAE5C,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ComposableScreenStepTypeSchema = exports.ComposableScreenStepPayloadSchema = exports.BaseBoxPropsSchema = void 0;
|
|
3
|
+
exports.ComposableScreenStepTypeSchema = exports.ComposableScreenStepPayloadSchema = exports.GradientBackgroundSchema = exports.BaseBoxPropsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const common_types_1 = require("../common.types");
|
|
6
6
|
const StackElement_1 = require("./elements/StackElement");
|
|
@@ -18,6 +18,7 @@ const DatePickerElement_1 = require("./elements/DatePickerElement");
|
|
|
18
18
|
const CarouselElement_1 = require("./elements/CarouselElement");
|
|
19
19
|
var BaseBoxProps_1 = require("./elements/BaseBoxProps");
|
|
20
20
|
Object.defineProperty(exports, "BaseBoxPropsSchema", { enumerable: true, get: function () { return BaseBoxProps_1.BaseBoxPropsSchema; } });
|
|
21
|
+
Object.defineProperty(exports, "GradientBackgroundSchema", { enumerable: true, get: function () { return BaseBoxProps_1.GradientBackgroundSchema; } });
|
|
21
22
|
const UIElementSchema = zod_1.z.lazy(() => zod_1.z.union([
|
|
22
23
|
zod_1.z.object({
|
|
23
24
|
id: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/ComposableScreen/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AACrD,0DAA0F;AAC1F,wDAAuF;AACvF,0DAA0F;AAC1F,4DAA6F;AAC7F,wDAAuF;AACvF,wDAAuF;AACvF,0DAA0F;AAC1F,0DAA0F;AAC1F,4DAA6F;AAC7F,oEAAyG;AACzG,0EAAkH;AAClH,oEAAyG;AACzG,gEAAmG;AAGnG,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/ComposableScreen/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AACrD,0DAA0F;AAC1F,wDAAuF;AACvF,0DAA0F;AAC1F,4DAA6F;AAC7F,wDAAuF;AACvF,wDAAuF;AACvF,0DAA0F;AAC1F,0DAA0F;AAC1F,4DAA6F;AAC7F,oEAAyG;AACzG,0EAAkH;AAClH,oEAAyG;AACzG,gEAAmG;AAGnG,wDAAuF;AAA9E,kHAAA,kBAAkB,OAAA;AAAE,wHAAA,wBAAwB,OAAA;AAmGrD,MAAM,eAAe,GAAyB,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACxD,OAAC,CAAC,KAAK,CAAC;IACN,OAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAC,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AI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC;QAC7B,KAAK,EAAE,gDAA4B;KACpC,CAAC;IACF,OAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QAC3B,KAAK,EAAE,4CAA0B;QACjC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACnC,CAAC;CACH,CAAC,CACH,CAAC;AAEW,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,eAAe,CAAC;CACnC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,iCAAkB,CAAC,MAAM,CAAC;IACtE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,OAAO,EAAE,yCAAiC;CAC3C,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocapine/react-native-onboarding",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.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",
|
|
@@ -329,6 +329,56 @@ export const onboardingExample = {
|
|
|
329
329
|
marginVertical: 8,
|
|
330
330
|
},
|
|
331
331
|
},
|
|
332
|
+
{
|
|
333
|
+
id: "gradient-card",
|
|
334
|
+
type: "YStack",
|
|
335
|
+
props: {
|
|
336
|
+
padding: 20,
|
|
337
|
+
gap: 8,
|
|
338
|
+
borderRadius: 16,
|
|
339
|
+
overflow: "hidden",
|
|
340
|
+
marginVertical: 4,
|
|
341
|
+
backgroundGradient: {
|
|
342
|
+
type: "linear",
|
|
343
|
+
from: "topLeft",
|
|
344
|
+
to: "bottomRight",
|
|
345
|
+
stops: [
|
|
346
|
+
{ color: "#6C63FF" },
|
|
347
|
+
{ color: "#FF6584" },
|
|
348
|
+
],
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
children: [
|
|
352
|
+
{
|
|
353
|
+
id: "gradient-card-title",
|
|
354
|
+
type: "Text",
|
|
355
|
+
props: { content: "Linear gradient", fontSize: 15, fontWeight: "700", color: "#fff" },
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
id: "gradient-card-body",
|
|
359
|
+
type: "Text",
|
|
360
|
+
props: { content: "topLeft → bottomRight", fontSize: 12, color: "#fff", opacity: 0.85 },
|
|
361
|
+
},
|
|
362
|
+
],
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
id: "gradient-button",
|
|
366
|
+
type: "Button",
|
|
367
|
+
props: {
|
|
368
|
+
label: "Gradient Button",
|
|
369
|
+
variant: "filled",
|
|
370
|
+
marginVertical: 4,
|
|
371
|
+
backgroundGradient: {
|
|
372
|
+
type: "linear",
|
|
373
|
+
from: "left",
|
|
374
|
+
to: "right",
|
|
375
|
+
stops: [
|
|
376
|
+
{ color: "#FF6584", position: 0 },
|
|
377
|
+
{ color: "#6C63FF", position: 1 },
|
|
378
|
+
],
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
},
|
|
332
382
|
],
|
|
333
383
|
},
|
|
334
384
|
],
|
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
export type GradientStop = {
|
|
4
|
+
color: string;
|
|
5
|
+
position?: number;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type GradientEdge =
|
|
9
|
+
| "top"
|
|
10
|
+
| "bottom"
|
|
11
|
+
| "left"
|
|
12
|
+
| "right"
|
|
13
|
+
| "topLeft"
|
|
14
|
+
| "topRight"
|
|
15
|
+
| "bottomLeft"
|
|
16
|
+
| "bottomRight";
|
|
17
|
+
|
|
18
|
+
export type LinearGradientConfig = {
|
|
19
|
+
type: "linear";
|
|
20
|
+
from: GradientEdge;
|
|
21
|
+
to: GradientEdge;
|
|
22
|
+
stops: GradientStop[];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type GradientBackground = LinearGradientConfig;
|
|
26
|
+
|
|
27
|
+
const GradientEdgeSchema = z.enum(["top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight"]);
|
|
28
|
+
|
|
29
|
+
const GradientStopSchema = z.object({
|
|
30
|
+
color: z.string(),
|
|
31
|
+
position: z.number().min(0).max(1).optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export const GradientBackgroundSchema = z.discriminatedUnion("type", [
|
|
35
|
+
z.object({
|
|
36
|
+
type: z.literal("linear"),
|
|
37
|
+
from: GradientEdgeSchema,
|
|
38
|
+
to: GradientEdgeSchema,
|
|
39
|
+
stops: z.array(GradientStopSchema).min(2, "gradient requires at least 2 stops"),
|
|
40
|
+
}),
|
|
41
|
+
]);
|
|
42
|
+
|
|
3
43
|
export type BaseBoxProps = {
|
|
4
44
|
width?: number | string;
|
|
5
45
|
height?: number | string;
|
|
@@ -13,6 +53,7 @@ export type BaseBoxProps = {
|
|
|
13
53
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
14
54
|
opacity?: number;
|
|
15
55
|
backgroundColor?: string;
|
|
56
|
+
backgroundGradient?: GradientBackground;
|
|
16
57
|
overflow?: "hidden" | "visible" | "scroll";
|
|
17
58
|
margin?: number;
|
|
18
59
|
marginHorizontal?: number;
|
|
@@ -38,6 +79,7 @@ export const BaseBoxPropsSchema = z.object({
|
|
|
38
79
|
alignSelf: z.enum(["auto", "flex-start", "flex-end", "center", "stretch", "baseline"]).optional(),
|
|
39
80
|
opacity: z.number().min(0).max(1).optional(),
|
|
40
81
|
backgroundColor: z.string().optional(),
|
|
82
|
+
backgroundGradient: GradientBackgroundSchema.optional(),
|
|
41
83
|
overflow: z.enum(["hidden", "visible", "scroll"]).optional(),
|
|
42
84
|
margin: z.number().optional(),
|
|
43
85
|
marginHorizontal: z.number().optional(),
|