@rocapine/react-native-onboarding 1.6.0 → 1.8.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 +171 -0
- package/dist/onboarding-example.d.ts.map +1 -1
- package/dist/onboarding-example.js +37 -0
- package/dist/onboarding-example.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts +30 -0
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js +19 -0
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts +55 -0
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/ButtonElement.js +18 -0
- package/dist/steps/ComposableScreen/elements/ButtonElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts +29 -0
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/IconElement.js +13 -0
- package/dist/steps/ComposableScreen/elements/IconElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts +30 -0
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/ImageElement.js +11 -0
- package/dist/steps/ComposableScreen/elements/ImageElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts +90 -0
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/InputElement.js +25 -0
- package/dist/steps/ComposableScreen/elements/InputElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts +27 -0
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/LottieElement.js +12 -0
- package/dist/steps/ComposableScreen/elements/LottieElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts +66 -0
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.js +36 -0
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts +50 -0
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/RiveElement.js +14 -0
- package/dist/steps/ComposableScreen/elements/RiveElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts +72 -0
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/StackElement.js +31 -0
- package/dist/steps/ComposableScreen/elements/StackElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts +53 -0
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/TextElement.js +27 -0
- package/dist/steps/ComposableScreen/elements/TextElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts +29 -0
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/VideoElement.js +13 -0
- package/dist/steps/ComposableScreen/elements/VideoElement.js.map +1 -0
- package/dist/steps/ComposableScreen/types.d.ts +40 -113
- package/dist/steps/ComposableScreen/types.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.js +33 -121
- package/dist/steps/ComposableScreen/types.js.map +1 -1
- package/package.json +1 -1
- package/src/onboarding-example.ts +37 -0
- package/src/steps/ComposableScreen/elements/BaseBoxProps.ts +31 -0
- package/src/steps/ComposableScreen/elements/ButtonElement.ts +28 -0
- package/src/steps/ComposableScreen/elements/IconElement.ts +18 -0
- package/src/steps/ComposableScreen/elements/ImageElement.ts +14 -0
- package/src/steps/ComposableScreen/elements/InputElement.ts +42 -0
- package/src/steps/ComposableScreen/elements/LottieElement.ts +16 -0
- package/src/steps/ComposableScreen/elements/RadioGroupElement.ts +55 -0
- package/src/steps/ComposableScreen/elements/RiveElement.ts +20 -0
- package/src/steps/ComposableScreen/elements/StackElement.ts +55 -0
- package/src/steps/ComposableScreen/elements/TextElement.ts +47 -0
- package/src/steps/ComposableScreen/elements/VideoElement.ts +18 -0
- package/src/steps/ComposableScreen/types.ts +56 -233
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
3
|
+
export type InputElementProps = BaseBoxProps & {
|
|
4
|
+
variableName?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
keyboardType?: "default" | "email-address" | "numeric" | "phone-pad" | "decimal-pad" | "url" | "number-pad" | "ascii-capable" | "numbers-and-punctuation" | "name-phone-pad" | "twitter" | "web-search" | "visible-password";
|
|
8
|
+
returnKeyType?: "done" | "next" | "go" | "search" | "send" | "default" | "emergency-call" | "google" | "join" | "route" | "yahoo" | "none" | "previous";
|
|
9
|
+
autoCapitalize?: "none" | "sentences" | "words" | "characters";
|
|
10
|
+
secureTextEntry?: boolean;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
multiline?: boolean;
|
|
13
|
+
numberOfLines?: number;
|
|
14
|
+
editable?: boolean;
|
|
15
|
+
color?: string;
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
fontSize?: number;
|
|
18
|
+
fontWeight?: string;
|
|
19
|
+
textAlign?: "left" | "center" | "right";
|
|
20
|
+
placeholderColor?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const InputElementPropsSchema: z.ZodObject<{
|
|
23
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
35
|
+
variableName: z.ZodOptional<z.ZodString>;
|
|
36
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
37
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
38
|
+
keyboardType: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
default: "default";
|
|
40
|
+
url: "url";
|
|
41
|
+
"email-address": "email-address";
|
|
42
|
+
numeric: "numeric";
|
|
43
|
+
"phone-pad": "phone-pad";
|
|
44
|
+
"decimal-pad": "decimal-pad";
|
|
45
|
+
"number-pad": "number-pad";
|
|
46
|
+
"ascii-capable": "ascii-capable";
|
|
47
|
+
"numbers-and-punctuation": "numbers-and-punctuation";
|
|
48
|
+
"name-phone-pad": "name-phone-pad";
|
|
49
|
+
twitter: "twitter";
|
|
50
|
+
"web-search": "web-search";
|
|
51
|
+
"visible-password": "visible-password";
|
|
52
|
+
}>>;
|
|
53
|
+
returnKeyType: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
default: "default";
|
|
55
|
+
done: "done";
|
|
56
|
+
next: "next";
|
|
57
|
+
go: "go";
|
|
58
|
+
search: "search";
|
|
59
|
+
send: "send";
|
|
60
|
+
"emergency-call": "emergency-call";
|
|
61
|
+
google: "google";
|
|
62
|
+
join: "join";
|
|
63
|
+
route: "route";
|
|
64
|
+
yahoo: "yahoo";
|
|
65
|
+
none: "none";
|
|
66
|
+
previous: "previous";
|
|
67
|
+
}>>;
|
|
68
|
+
autoCapitalize: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
none: "none";
|
|
70
|
+
sentences: "sentences";
|
|
71
|
+
words: "words";
|
|
72
|
+
characters: "characters";
|
|
73
|
+
}>>;
|
|
74
|
+
secureTextEntry: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
numberOfLines: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
editable: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
color: z.ZodOptional<z.ZodString>;
|
|
80
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
81
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
83
|
+
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
center: "center";
|
|
85
|
+
left: "left";
|
|
86
|
+
right: "right";
|
|
87
|
+
}>>;
|
|
88
|
+
placeholderColor: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
//# sourceMappingURL=InputElement.d.ts.map
|
|
@@ -0,0 +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,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBlC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InputElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
6
|
+
exports.InputElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
|
+
variableName: zod_1.z.string().min(1).optional(),
|
|
8
|
+
placeholder: zod_1.z.string().optional(),
|
|
9
|
+
defaultValue: zod_1.z.string().optional(),
|
|
10
|
+
keyboardType: zod_1.z.enum(["default", "email-address", "numeric", "phone-pad", "decimal-pad", "url", "number-pad", "ascii-capable", "numbers-and-punctuation", "name-phone-pad", "twitter", "web-search", "visible-password"]).optional(),
|
|
11
|
+
returnKeyType: zod_1.z.enum(["done", "next", "go", "search", "send", "default", "emergency-call", "google", "join", "route", "yahoo", "none", "previous"]).optional(),
|
|
12
|
+
autoCapitalize: zod_1.z.enum(["none", "sentences", "words", "characters"]).optional(),
|
|
13
|
+
secureTextEntry: zod_1.z.boolean().optional(),
|
|
14
|
+
maxLength: zod_1.z.number().int().nonnegative().optional(),
|
|
15
|
+
multiline: zod_1.z.boolean().optional(),
|
|
16
|
+
numberOfLines: zod_1.z.number().int().nonnegative().optional(),
|
|
17
|
+
editable: zod_1.z.boolean().optional(),
|
|
18
|
+
color: zod_1.z.string().optional(),
|
|
19
|
+
backgroundColor: zod_1.z.string().optional(),
|
|
20
|
+
fontSize: zod_1.z.number().optional(),
|
|
21
|
+
fontWeight: zod_1.z.string().optional(),
|
|
22
|
+
textAlign: zod_1.z.enum(["left", "center", "right"]).optional(),
|
|
23
|
+
placeholderColor: zod_1.z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=InputElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/InputElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAsBrD,QAAA,uBAAuB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC/D,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,OAAC,CAAC,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AAE,CAAC,QAAQ,EAAE;IACjC,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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
3
|
+
export type LottieElementProps = BaseBoxProps & {
|
|
4
|
+
source: string;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
speed?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const LottieElementPropsSchema: z.ZodObject<{
|
|
10
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
22
|
+
source: z.ZodString;
|
|
23
|
+
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
//# sourceMappingURL=LottieElement.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;iBAKnC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LottieElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
6
|
+
exports.LottieElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
|
+
source: zod_1.z.string().min(1, "source must not be empty"),
|
|
8
|
+
autoPlay: zod_1.z.boolean().optional(),
|
|
9
|
+
loop: zod_1.z.boolean().optional(),
|
|
10
|
+
speed: zod_1.z.number().optional(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=LottieElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LottieElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/LottieElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AASrD,QAAA,wBAAwB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAChE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;IACrD,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
3
|
+
export type RadioGroupElementProps = BaseBoxProps & {
|
|
4
|
+
variableName?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
gap?: number;
|
|
7
|
+
direction?: "vertical" | "horizontal";
|
|
8
|
+
items: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}>;
|
|
12
|
+
itemBackgroundColor?: string;
|
|
13
|
+
itemSelectedBackgroundColor?: string;
|
|
14
|
+
itemBorderColor?: string;
|
|
15
|
+
itemSelectedBorderColor?: string;
|
|
16
|
+
itemBorderRadius?: number;
|
|
17
|
+
itemBorderWidth?: number;
|
|
18
|
+
itemColor?: string;
|
|
19
|
+
itemSelectedColor?: string;
|
|
20
|
+
itemFontSize?: number;
|
|
21
|
+
itemFontWeight?: string;
|
|
22
|
+
itemFontFamily?: string;
|
|
23
|
+
itemPadding?: number;
|
|
24
|
+
itemPaddingHorizontal?: number;
|
|
25
|
+
itemPaddingVertical?: number;
|
|
26
|
+
};
|
|
27
|
+
export declare const RadioGroupElementPropsSchema: z.ZodObject<{
|
|
28
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
40
|
+
variableName: z.ZodOptional<z.ZodString>;
|
|
41
|
+
defaultValue: z.ZodOptional<z.ZodString>;
|
|
42
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
vertical: "vertical";
|
|
45
|
+
horizontal: "horizontal";
|
|
46
|
+
}>>;
|
|
47
|
+
items: z.ZodArray<z.ZodObject<{
|
|
48
|
+
label: z.ZodString;
|
|
49
|
+
value: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
itemBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
52
|
+
itemSelectedBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
53
|
+
itemBorderColor: z.ZodOptional<z.ZodString>;
|
|
54
|
+
itemSelectedBorderColor: z.ZodOptional<z.ZodString>;
|
|
55
|
+
itemBorderRadius: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
itemBorderWidth: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
itemColor: z.ZodOptional<z.ZodString>;
|
|
58
|
+
itemSelectedColor: z.ZodOptional<z.ZodString>;
|
|
59
|
+
itemFontSize: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
itemFontWeight: z.ZodOptional<z.ZodString>;
|
|
61
|
+
itemFontFamily: z.ZodOptional<z.ZodString>;
|
|
62
|
+
itemPadding: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
itemPaddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
itemPaddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
//# sourceMappingURL=RadioGroupElement.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BvC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RadioGroupElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
6
|
+
exports.RadioGroupElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
|
+
variableName: zod_1.z.string().optional(),
|
|
8
|
+
defaultValue: zod_1.z.string().optional(),
|
|
9
|
+
gap: zod_1.z.number().optional(),
|
|
10
|
+
direction: zod_1.z.enum(["vertical", "horizontal"]).optional(),
|
|
11
|
+
items: zod_1.z.array(zod_1.z.object({ label: zod_1.z.string().trim().min(1, "item label must not be empty"), value: zod_1.z.string().trim().min(1, "item value must not be empty") })).min(1, "items must not be empty"),
|
|
12
|
+
itemBackgroundColor: zod_1.z.string().optional(),
|
|
13
|
+
itemSelectedBackgroundColor: zod_1.z.string().optional(),
|
|
14
|
+
itemBorderColor: zod_1.z.string().optional(),
|
|
15
|
+
itemSelectedBorderColor: zod_1.z.string().optional(),
|
|
16
|
+
itemBorderRadius: zod_1.z.number().optional(),
|
|
17
|
+
itemBorderWidth: zod_1.z.number().optional(),
|
|
18
|
+
itemColor: zod_1.z.string().optional(),
|
|
19
|
+
itemSelectedColor: zod_1.z.string().optional(),
|
|
20
|
+
itemFontSize: zod_1.z.number().optional(),
|
|
21
|
+
itemFontWeight: zod_1.z.string().optional(),
|
|
22
|
+
itemFontFamily: zod_1.z.string().optional(),
|
|
23
|
+
itemPadding: zod_1.z.number().optional(),
|
|
24
|
+
itemPaddingHorizontal: zod_1.z.number().optional(),
|
|
25
|
+
itemPaddingVertical: zod_1.z.number().optional(),
|
|
26
|
+
}).superRefine((data, ctx) => {
|
|
27
|
+
const values = data.items.map((i) => i.value);
|
|
28
|
+
const unique = new Set(values);
|
|
29
|
+
if (unique.size !== values.length) {
|
|
30
|
+
ctx.addIssue({ code: zod_1.z.ZodIssueCode.custom, message: "item values must be unique", path: ["items"] });
|
|
31
|
+
}
|
|
32
|
+
if (data.defaultValue !== undefined && !unique.has(data.defaultValue)) {
|
|
33
|
+
ctx.addIssue({ code: zod_1.z.ZodIssueCode.custom, message: "defaultValue must match one of the item values", path: ["defaultValue"] });
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=RadioGroupElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroupElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RadioGroupElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAwBrD,QAAA,4BAA4B,GAAG,iCAAkB,CAAC,MAAM,CAAC;IACpE,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;IAChM,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,2BAA2B,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE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I,IAAI,CAAC,YAAY,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACtE,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,gDAAgD,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACnI,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
3
|
+
export type RiveElementProps = BaseBoxProps & {
|
|
4
|
+
url: string;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
fit?: "Contain" | "Cover" | "Fill" | "FitWidth" | "FitHeight" | "None" | "ScaleDown" | "Layout";
|
|
7
|
+
alignment?: "TopLeft" | "TopCenter" | "TopRight" | "CenterLeft" | "Center" | "CenterRight" | "BottomLeft" | "BottomCenter" | "BottomRight";
|
|
8
|
+
artboardName?: string;
|
|
9
|
+
stateMachineName?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const RiveElementPropsSchema: z.ZodObject<{
|
|
12
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
24
|
+
url: z.ZodString;
|
|
25
|
+
autoplay: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
fit: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
Contain: "Contain";
|
|
28
|
+
Cover: "Cover";
|
|
29
|
+
Fill: "Fill";
|
|
30
|
+
FitWidth: "FitWidth";
|
|
31
|
+
FitHeight: "FitHeight";
|
|
32
|
+
None: "None";
|
|
33
|
+
ScaleDown: "ScaleDown";
|
|
34
|
+
Layout: "Layout";
|
|
35
|
+
}>>;
|
|
36
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
TopLeft: "TopLeft";
|
|
38
|
+
TopCenter: "TopCenter";
|
|
39
|
+
TopRight: "TopRight";
|
|
40
|
+
CenterLeft: "CenterLeft";
|
|
41
|
+
Center: "Center";
|
|
42
|
+
CenterRight: "CenterRight";
|
|
43
|
+
BottomLeft: "BottomLeft";
|
|
44
|
+
BottomCenter: "BottomCenter";
|
|
45
|
+
BottomRight: "BottomRight";
|
|
46
|
+
}>>;
|
|
47
|
+
artboardName: z.ZodOptional<z.ZodString>;
|
|
48
|
+
stateMachineName: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
//# sourceMappingURL=RiveElement.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOjC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RiveElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
6
|
+
exports.RiveElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
|
+
url: zod_1.z.string().min(1, "url must not be empty"),
|
|
8
|
+
autoplay: zod_1.z.boolean().optional(),
|
|
9
|
+
fit: zod_1.z.enum(["Contain", "Cover", "Fill", "FitWidth", "FitHeight", "None", "ScaleDown", "Layout"]).optional(),
|
|
10
|
+
alignment: zod_1.z.enum(["TopLeft", "TopCenter", "TopRight", "CenterLeft", "Center", "CenterRight", "BottomLeft", "BottomCenter", "BottomRight"]).optional(),
|
|
11
|
+
artboardName: zod_1.z.string().optional(),
|
|
12
|
+
stateMachineName: zod_1.z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=RiveElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RiveElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/RiveElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAWrD,QAAA,sBAAsB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC9D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5G,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtJ,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export type StackElementProps = {
|
|
3
|
+
gap?: number;
|
|
4
|
+
padding?: number;
|
|
5
|
+
paddingHorizontal?: number;
|
|
6
|
+
paddingVertical?: number;
|
|
7
|
+
margin?: number;
|
|
8
|
+
marginHorizontal?: number;
|
|
9
|
+
marginVertical?: number;
|
|
10
|
+
flex?: number;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
minWidth?: number;
|
|
14
|
+
maxWidth?: number;
|
|
15
|
+
minHeight?: number;
|
|
16
|
+
maxHeight?: number;
|
|
17
|
+
alignItems?: "flex-start" | "center" | "flex-end" | "stretch";
|
|
18
|
+
justifyContent?: "flex-start" | "center" | "flex-end" | "space-between" | "space-around";
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
flexWrap?: "wrap" | "nowrap";
|
|
21
|
+
flexShrink?: number;
|
|
22
|
+
borderWidth?: number;
|
|
23
|
+
borderRadius?: number;
|
|
24
|
+
borderColor?: string;
|
|
25
|
+
overflow?: "hidden" | "visible" | "scroll";
|
|
26
|
+
opacity?: number;
|
|
27
|
+
};
|
|
28
|
+
export declare const StackElementPropsSchema: z.ZodObject<{
|
|
29
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
alignItems: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
"flex-start": "flex-start";
|
|
45
|
+
center: "center";
|
|
46
|
+
"flex-end": "flex-end";
|
|
47
|
+
stretch: "stretch";
|
|
48
|
+
}>>;
|
|
49
|
+
justifyContent: z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
"flex-start": "flex-start";
|
|
51
|
+
center: "center";
|
|
52
|
+
"flex-end": "flex-end";
|
|
53
|
+
"space-between": "space-between";
|
|
54
|
+
"space-around": "space-around";
|
|
55
|
+
}>>;
|
|
56
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
57
|
+
flexWrap: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
wrap: "wrap";
|
|
59
|
+
nowrap: "nowrap";
|
|
60
|
+
}>>;
|
|
61
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
65
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
hidden: "hidden";
|
|
67
|
+
visible: "visible";
|
|
68
|
+
scroll: "scroll";
|
|
69
|
+
}>>;
|
|
70
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
//# sourceMappingURL=StackElement.d.ts.map
|
|
@@ -0,0 +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;AAExB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBlC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StackElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.StackElementPropsSchema = zod_1.z.object({
|
|
6
|
+
gap: zod_1.z.number().optional(),
|
|
7
|
+
padding: zod_1.z.number().optional(),
|
|
8
|
+
paddingHorizontal: zod_1.z.number().optional(),
|
|
9
|
+
paddingVertical: zod_1.z.number().optional(),
|
|
10
|
+
margin: zod_1.z.number().optional(),
|
|
11
|
+
marginHorizontal: zod_1.z.number().optional(),
|
|
12
|
+
marginVertical: zod_1.z.number().optional(),
|
|
13
|
+
flex: zod_1.z.number().optional(),
|
|
14
|
+
width: zod_1.z.number().optional(),
|
|
15
|
+
height: zod_1.z.number().optional(),
|
|
16
|
+
minWidth: zod_1.z.number().optional(),
|
|
17
|
+
maxWidth: zod_1.z.number().optional(),
|
|
18
|
+
minHeight: zod_1.z.number().optional(),
|
|
19
|
+
maxHeight: zod_1.z.number().optional(),
|
|
20
|
+
alignItems: zod_1.z.enum(["flex-start", "center", "flex-end", "stretch"]).optional(),
|
|
21
|
+
justifyContent: zod_1.z.enum(["flex-start", "center", "flex-end", "space-between", "space-around"]).optional(),
|
|
22
|
+
backgroundColor: zod_1.z.string().optional(),
|
|
23
|
+
flexWrap: zod_1.z.enum(["wrap", "nowrap"]).optional(),
|
|
24
|
+
flexShrink: zod_1.z.number().optional(),
|
|
25
|
+
borderWidth: zod_1.z.number().optional(),
|
|
26
|
+
borderRadius: zod_1.z.number().optional(),
|
|
27
|
+
borderColor: zod_1.z.string().optional(),
|
|
28
|
+
overflow: zod_1.z.enum(["hidden", "visible", "scroll"]).optional(),
|
|
29
|
+
opacity: zod_1.z.number().min(0).max(1).optional(),
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=StackElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/StackElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA6BX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,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Q,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export type TextElementProps = {
|
|
3
|
+
content: string;
|
|
4
|
+
mode?: "plain" | "expression";
|
|
5
|
+
fontSize?: number;
|
|
6
|
+
fontWeight?: string;
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
textAlign?: "left" | "center" | "right";
|
|
10
|
+
letterSpacing?: number;
|
|
11
|
+
lineHeight?: number;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
padding?: number;
|
|
14
|
+
paddingHorizontal?: number;
|
|
15
|
+
paddingVertical?: number;
|
|
16
|
+
margin?: number;
|
|
17
|
+
marginHorizontal?: number;
|
|
18
|
+
marginVertical?: number;
|
|
19
|
+
borderWidth?: number;
|
|
20
|
+
borderRadius?: number;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
opacity?: number;
|
|
23
|
+
};
|
|
24
|
+
export declare const TextElementPropsSchema: z.ZodObject<{
|
|
25
|
+
content: z.ZodString;
|
|
26
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
plain: "plain";
|
|
28
|
+
expression: "expression";
|
|
29
|
+
}>>;
|
|
30
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
32
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
33
|
+
color: z.ZodOptional<z.ZodString>;
|
|
34
|
+
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
center: "center";
|
|
36
|
+
left: "left";
|
|
37
|
+
right: "right";
|
|
38
|
+
}>>;
|
|
39
|
+
letterSpacing: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
42
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
51
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
//# sourceMappingURL=TextElement.d.ts.map
|
|
@@ -0,0 +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;AAExB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBjC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.TextElementPropsSchema = zod_1.z.object({
|
|
6
|
+
content: zod_1.z.string(),
|
|
7
|
+
mode: zod_1.z.enum(["plain", "expression"]).optional(),
|
|
8
|
+
fontSize: zod_1.z.number().optional(),
|
|
9
|
+
fontWeight: zod_1.z.string().optional(),
|
|
10
|
+
fontFamily: zod_1.z.string().optional(),
|
|
11
|
+
color: zod_1.z.string().optional(),
|
|
12
|
+
textAlign: zod_1.z.enum(["left", "center", "right"]).optional(),
|
|
13
|
+
letterSpacing: zod_1.z.number().optional(),
|
|
14
|
+
lineHeight: zod_1.z.number().optional(),
|
|
15
|
+
backgroundColor: zod_1.z.string().optional(),
|
|
16
|
+
padding: zod_1.z.number().optional(),
|
|
17
|
+
paddingHorizontal: zod_1.z.number().optional(),
|
|
18
|
+
paddingVertical: zod_1.z.number().optional(),
|
|
19
|
+
margin: zod_1.z.number().optional(),
|
|
20
|
+
marginHorizontal: zod_1.z.number().optional(),
|
|
21
|
+
marginVertical: zod_1.z.number().optional(),
|
|
22
|
+
borderWidth: zod_1.z.number().optional(),
|
|
23
|
+
borderRadius: zod_1.z.number().optional(),
|
|
24
|
+
borderColor: zod_1.z.string().optional(),
|
|
25
|
+
opacity: zod_1.z.number().min(0).max(1).optional(),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL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AM,EAAE,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
3
|
+
export type VideoElementProps = BaseBoxProps & {
|
|
4
|
+
url: string;
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
muted?: boolean;
|
|
8
|
+
controls?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const VideoElementPropsSchema: z.ZodObject<{
|
|
11
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
23
|
+
url: z.ZodString;
|
|
24
|
+
autoPlay: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
muted: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
controls: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
//# sourceMappingURL=VideoElement.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;iBAMlC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
6
|
+
exports.VideoElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
|
+
url: zod_1.z.string().min(1, "url must not be empty"),
|
|
8
|
+
autoPlay: zod_1.z.boolean().optional(),
|
|
9
|
+
loop: zod_1.z.boolean().optional(),
|
|
10
|
+
muted: zod_1.z.boolean().optional(),
|
|
11
|
+
controls: zod_1.z.boolean().optional(),
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=VideoElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/VideoElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAUrD,QAAA,uBAAuB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC/D,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
|