@rocapine/react-native-onboarding 1.10.0 → 1.12.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/evaluateCondition.d.ts +6 -0
- package/dist/evaluateCondition.d.ts.map +1 -0
- package/dist/evaluateCondition.js +48 -0
- package/dist/evaluateCondition.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/infra/provider/OnboardingProvider.d.ts +2 -0
- package/dist/infra/provider/OnboardingProvider.d.ts.map +1 -1
- package/dist/infra/provider/OnboardingProvider.js +8 -0
- package/dist/infra/provider/OnboardingProvider.js.map +1 -1
- package/dist/onboarding-example.d.ts +109 -15
- package/dist/onboarding-example.d.ts.map +1 -1
- package/dist/onboarding-example.js +44 -1
- package/dist/onboarding-example.js.map +1 -1
- package/dist/resolveNextStepNumber.d.ts +11 -0
- package/dist/resolveNextStepNumber.d.ts.map +1 -0
- package/dist/resolveNextStepNumber.js +39 -0
- package/dist/resolveNextStepNumber.js.map +1 -0
- package/dist/steps/Carousel/types.d.ts +29 -8
- package/dist/steps/Carousel/types.d.ts.map +1 -1
- package/dist/steps/Carousel/types.js +1 -8
- package/dist/steps/Carousel/types.js.map +1 -1
- package/dist/steps/Commitment/types.d.ts +29 -8
- package/dist/steps/Commitment/types.d.ts.map +1 -1
- package/dist/steps/Commitment/types.js +1 -8
- package/dist/steps/Commitment/types.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts +28 -6
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js +11 -2
- package/dist/steps/ComposableScreen/elements/BaseBoxProps.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts +22 -10
- package/dist/steps/ComposableScreen/elements/ButtonElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.js +0 -1
- package/dist/steps/ComposableScreen/elements/ButtonElement.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts +67 -0
- package/dist/steps/ComposableScreen/elements/CarouselElement.d.ts.map +1 -0
- package/dist/steps/ComposableScreen/elements/CarouselElement.js +19 -0
- package/dist/steps/ComposableScreen/elements/CarouselElement.js.map +1 -0
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts +17 -4
- package/dist/steps/ComposableScreen/elements/CheckboxGroupElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts +17 -4
- package/dist/steps/ComposableScreen/elements/DatePickerElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts +16 -4
- package/dist/steps/ComposableScreen/elements/IconElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts +17 -4
- package/dist/steps/ComposableScreen/elements/ImageElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts +24 -6
- package/dist/steps/ComposableScreen/elements/InputElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/InputElement.js +3 -0
- package/dist/steps/ComposableScreen/elements/InputElement.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts +17 -4
- package/dist/steps/ComposableScreen/elements/LottieElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts +17 -4
- package/dist/steps/ComposableScreen/elements/RadioGroupElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts +19 -6
- package/dist/steps/ComposableScreen/elements/RiveElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/RiveElement.js +1 -1
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts +31 -50
- package/dist/steps/ComposableScreen/elements/StackElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/StackElement.js +2 -22
- package/dist/steps/ComposableScreen/elements/StackElement.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts +35 -23
- package/dist/steps/ComposableScreen/elements/TextElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/elements/TextElement.js +2 -12
- package/dist/steps/ComposableScreen/elements/TextElement.js.map +1 -1
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts +17 -4
- package/dist/steps/ComposableScreen/elements/VideoElement.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.d.ts +37 -4
- package/dist/steps/ComposableScreen/types.d.ts.map +1 -1
- package/dist/steps/ComposableScreen/types.js +9 -7
- package/dist/steps/ComposableScreen/types.js.map +1 -1
- package/dist/steps/Loader/types.d.ts +29 -8
- package/dist/steps/Loader/types.d.ts.map +1 -1
- package/dist/steps/Loader/types.js +1 -8
- package/dist/steps/Loader/types.js.map +1 -1
- package/dist/steps/MediaContent/types.d.ts +29 -8
- package/dist/steps/MediaContent/types.d.ts.map +1 -1
- package/dist/steps/MediaContent/types.js +1 -8
- package/dist/steps/MediaContent/types.js.map +1 -1
- package/dist/steps/Picker/types.d.ts +30 -8
- package/dist/steps/Picker/types.d.ts.map +1 -1
- package/dist/steps/Picker/types.js +2 -8
- package/dist/steps/Picker/types.js.map +1 -1
- package/dist/steps/Question/types.d.ts +30 -8
- package/dist/steps/Question/types.d.ts.map +1 -1
- package/dist/steps/Question/types.js +2 -8
- package/dist/steps/Question/types.js.map +1 -1
- package/dist/steps/Ratings/types.d.ts +29 -8
- package/dist/steps/Ratings/types.d.ts.map +1 -1
- package/dist/steps/Ratings/types.js +1 -8
- package/dist/steps/Ratings/types.js.map +1 -1
- package/dist/steps/common.types.d.ts +109 -0
- package/dist/steps/common.types.d.ts.map +1 -1
- package/dist/steps/common.types.js +52 -1
- package/dist/steps/common.types.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -2
- package/src/__tests__/evaluateCondition.test.ts +167 -0
- package/src/__tests__/resolveNextStepNumber.test.ts +309 -0
- package/src/evaluateCondition.ts +50 -0
- package/src/index.ts +19 -0
- package/src/infra/provider/OnboardingProvider.tsx +11 -1
- package/src/onboarding-example.ts +44 -1
- package/src/resolveNextStepNumber.ts +41 -0
- package/src/steps/Carousel/types.ts +2 -9
- package/src/steps/Commitment/types.ts +2 -9
- package/src/steps/ComposableScreen/elements/BaseBoxProps.ts +22 -4
- package/src/steps/ComposableScreen/elements/ButtonElement.ts +0 -2
- package/src/steps/ComposableScreen/elements/CarouselElement.ts +30 -0
- package/src/steps/ComposableScreen/elements/InputElement.ts +6 -0
- package/src/steps/ComposableScreen/elements/RiveElement.ts +2 -2
- package/src/steps/ComposableScreen/elements/StackElement.ts +3 -44
- package/src/steps/ComposableScreen/elements/TextElement.ts +3 -24
- package/src/steps/ComposableScreen/types.ts +18 -8
- package/src/steps/Loader/types.ts +2 -9
- package/src/steps/MediaContent/types.ts +2 -14
- package/src/steps/Picker/types.ts +3 -9
- package/src/steps/Question/types.ts +3 -9
- package/src/steps/Ratings/types.ts +2 -9
- package/src/steps/common.types.ts +72 -0
- package/src/types.ts +3 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveNextStepNumber = resolveNextStepNumber;
|
|
4
|
+
const evaluateCondition_1 = require("./evaluateCondition");
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the 1-indexed step number to navigate to after the current step.
|
|
7
|
+
* Returns null when the onboarding should end (no next step exists).
|
|
8
|
+
*
|
|
9
|
+
* @param currentStep - The step that just completed
|
|
10
|
+
* @param variables - Global variable store (build a merged copy before calling if you just set a variable)
|
|
11
|
+
* @param steps - Full ordered steps array
|
|
12
|
+
*/
|
|
13
|
+
function resolveNextStepNumber(currentStep, variables, steps) {
|
|
14
|
+
const linearNext = () => {
|
|
15
|
+
const idx = steps.findIndex((s) => s.id === currentStep.id);
|
|
16
|
+
if (idx === -1 || idx + 1 >= steps.length)
|
|
17
|
+
return null;
|
|
18
|
+
return idx + 2;
|
|
19
|
+
};
|
|
20
|
+
const { nextStep } = currentStep;
|
|
21
|
+
if (nextStep == null)
|
|
22
|
+
return linearNext();
|
|
23
|
+
for (const branch of nextStep.branches) {
|
|
24
|
+
if (branch.targetStepId === currentStep.id)
|
|
25
|
+
continue;
|
|
26
|
+
if (branch.condition === null || (0, evaluateCondition_1.evaluateCondition)(branch.condition, variables)) {
|
|
27
|
+
const idx = steps.findIndex((s) => s.id === branch.targetStepId);
|
|
28
|
+
if (idx !== -1)
|
|
29
|
+
return idx + 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (nextStep.defaultTargetStepId !== currentStep.id) {
|
|
33
|
+
const defaultIdx = steps.findIndex((s) => s.id === nextStep.defaultTargetStepId);
|
|
34
|
+
if (defaultIdx !== -1)
|
|
35
|
+
return defaultIdx + 1;
|
|
36
|
+
}
|
|
37
|
+
return linearNext();
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=resolveNextStepNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveNextStepNumber.js","sourceRoot":"","sources":["../src/resolveNextStepNumber.ts"],"names":[],"mappings":";;AAWA,sDA6BC;AAvCD,2DAAwD;AAExD;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,WAAyB,EACzB,SAA8B,EAC9B,KAAqB;IAErB,MAAM,UAAU,GAAG,GAAkB,EAAE;QACrC,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,WAAW,CAAC,EAAE,CAAC,CAAC;QAC5D,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACvD,OAAO,GAAG,GAAG,CAAC,CAAC;IACjB,CAAC,CAAC;IAEF,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;IAEjC,IAAI,QAAQ,IAAI,IAAI;QAAE,OAAO,UAAU,EAAE,CAAC;IAE1C,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;QACvC,IAAI,MAAM,CAAC,YAAY,KAAK,WAAW,CAAC,EAAE;YAAE,SAAS;QACrD,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI,IAAI,IAAA,qCAAiB,EAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC;YAChF,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,YAAY,CAAC,CAAC;YACjE,IAAI,GAAG,KAAK,CAAC,CAAC;gBAAE,OAAO,GAAG,GAAG,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,IAAI,QAAQ,CAAC,mBAAmB,KAAK,WAAW,CAAC,EAAE,EAAE,CAAC;QACpD,MAAM,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QACjF,IAAI,UAAU,KAAK,CAAC,CAAC;YAAE,OAAO,UAAU,GAAG,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,UAAU,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -13,16 +13,8 @@ export declare const CarouselStepPayloadSchema: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export declare const CarouselStepTypeSchema: z.ZodObject<{
|
|
15
15
|
id: z.ZodString;
|
|
16
|
-
type: z.ZodLiteral<"Carousel">;
|
|
17
16
|
name: z.ZodString;
|
|
18
17
|
displayProgressHeader: z.ZodBoolean;
|
|
19
|
-
payload: z.ZodObject<{
|
|
20
|
-
screens: z.ZodArray<z.ZodObject<{
|
|
21
|
-
mediaUrl: z.ZodString;
|
|
22
|
-
title: z.ZodString;
|
|
23
|
-
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
18
|
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
27
19
|
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
28
20
|
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
@@ -30,6 +22,35 @@ export declare const CarouselStepTypeSchema: z.ZodObject<{
|
|
|
30
22
|
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
23
|
}, z.core.$strip>>;
|
|
32
24
|
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
nextStep: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
defaultTargetStepId: z.ZodString;
|
|
27
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
28
|
+
condition: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
29
|
+
variable: z.ZodString;
|
|
30
|
+
operator: z.ZodEnum<{
|
|
31
|
+
eq: "eq";
|
|
32
|
+
neq: "neq";
|
|
33
|
+
gt: "gt";
|
|
34
|
+
lt: "lt";
|
|
35
|
+
gte: "gte";
|
|
36
|
+
lte: "lte";
|
|
37
|
+
contains: "contains";
|
|
38
|
+
in: "in";
|
|
39
|
+
not_in: "not_in";
|
|
40
|
+
}>;
|
|
41
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
42
|
+
}, z.core.$strip>, z.ZodType<import("../common.types").ConditionGroup, unknown, z.core.$ZodTypeInternals<import("../common.types").ConditionGroup, unknown>>]>>>;
|
|
43
|
+
targetStepId: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
type: z.ZodLiteral<"Carousel">;
|
|
47
|
+
payload: z.ZodObject<{
|
|
48
|
+
screens: z.ZodArray<z.ZodObject<{
|
|
49
|
+
mediaUrl: z.ZodString;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
33
54
|
}, z.core.$strip>;
|
|
34
55
|
export type CarouselStepType = z.infer<typeof CarouselStepTypeSchema>;
|
|
35
56
|
export type CarouselScreenType = z.infer<typeof CarouselScreenSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Carousel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -11,15 +11,8 @@ exports.CarouselScreenSchema = zod_1.z.object({
|
|
|
11
11
|
exports.CarouselStepPayloadSchema = zod_1.z.object({
|
|
12
12
|
screens: zod_1.z.array(exports.CarouselScreenSchema),
|
|
13
13
|
});
|
|
14
|
-
exports.CarouselStepTypeSchema =
|
|
15
|
-
id: zod_1.z.string(),
|
|
14
|
+
exports.CarouselStepTypeSchema = common_types_1.BaseStepTypeSchema.extend({
|
|
16
15
|
type: zod_1.z.literal("Carousel"),
|
|
17
|
-
name: zod_1.z.string(),
|
|
18
|
-
displayProgressHeader: zod_1.z.boolean(),
|
|
19
16
|
payload: exports.CarouselStepPayloadSchema,
|
|
20
|
-
customPayload: common_types_1.CustomPayloadSchema,
|
|
21
|
-
continueButtonLabel: zod_1.z.string().optional().default("Continue"),
|
|
22
|
-
buttonSection: common_types_1.ButtonSectionSchema.optional(),
|
|
23
|
-
figmaUrl: zod_1.z.string().nullish(),
|
|
24
17
|
});
|
|
25
18
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/Carousel/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/Carousel/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AAExC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAC/B,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC;CACvC,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B,OAAO,EAAE,iCAAyB;CACnC,CAAC,CAAC"}
|
|
@@ -17,9 +17,37 @@ export declare const CommitmentStepPayloadSchema: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export declare const CommitmentStepTypeSchema: z.ZodObject<{
|
|
19
19
|
id: z.ZodString;
|
|
20
|
-
type: z.ZodLiteral<"Commitment">;
|
|
21
20
|
name: z.ZodString;
|
|
22
21
|
displayProgressHeader: z.ZodBoolean;
|
|
22
|
+
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
23
|
+
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
label: z.ZodOptional<z.ZodString>;
|
|
26
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
nextStep: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
30
|
+
defaultTargetStepId: z.ZodString;
|
|
31
|
+
branches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
32
|
+
condition: z.ZodDefault<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
variable: z.ZodString;
|
|
34
|
+
operator: z.ZodEnum<{
|
|
35
|
+
eq: "eq";
|
|
36
|
+
neq: "neq";
|
|
37
|
+
gt: "gt";
|
|
38
|
+
lt: "lt";
|
|
39
|
+
gte: "gte";
|
|
40
|
+
lte: "lte";
|
|
41
|
+
contains: "contains";
|
|
42
|
+
in: "in";
|
|
43
|
+
not_in: "not_in";
|
|
44
|
+
}>;
|
|
45
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>;
|
|
46
|
+
}, z.core.$strip>, z.ZodType<import("../common.types").ConditionGroup, unknown, z.core.$ZodTypeInternals<import("../common.types").ConditionGroup, unknown>>]>>>;
|
|
47
|
+
targetStepId: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
type: z.ZodLiteral<"Commitment">;
|
|
23
51
|
payload: z.ZodObject<{
|
|
24
52
|
title: z.ZodString;
|
|
25
53
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -33,13 +61,6 @@ export declare const CommitmentStepTypeSchema: z.ZodObject<{
|
|
|
33
61
|
simple: "simple";
|
|
34
62
|
}>>;
|
|
35
63
|
}, z.core.$strip>;
|
|
36
|
-
customPayload: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
37
|
-
continueButtonLabel: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
38
|
-
buttonSection: z.ZodOptional<z.ZodObject<{
|
|
39
|
-
label: z.ZodOptional<z.ZodString>;
|
|
40
|
-
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
}, z.core.$strip>>;
|
|
42
|
-
figmaUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
64
|
}, z.core.$strip>;
|
|
44
65
|
export type CommitmentStepType = z.infer<typeof CommitmentStepTypeSchema>;
|
|
45
66
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Commitment/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAOtC,CAAC;AAEH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/steps/Commitment/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAOtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -14,15 +14,8 @@ exports.CommitmentStepPayloadSchema = zod_1.z.object({
|
|
|
14
14
|
signatureCaption: zod_1.z.string().default("Your signature is not recorded"),
|
|
15
15
|
variant: zod_1.z.enum(["signature", "simple"]).default("signature"),
|
|
16
16
|
});
|
|
17
|
-
exports.CommitmentStepTypeSchema =
|
|
18
|
-
id: zod_1.z.string(),
|
|
17
|
+
exports.CommitmentStepTypeSchema = common_types_1.BaseStepTypeSchema.extend({
|
|
19
18
|
type: zod_1.z.literal("Commitment"),
|
|
20
|
-
name: zod_1.z.string(),
|
|
21
|
-
displayProgressHeader: zod_1.z.boolean(),
|
|
22
19
|
payload: exports.CommitmentStepPayloadSchema,
|
|
23
|
-
customPayload: common_types_1.CustomPayloadSchema,
|
|
24
|
-
continueButtonLabel: zod_1.z.string().optional().default("Continue"),
|
|
25
|
-
buttonSection: common_types_1.ButtonSectionSchema.optional(),
|
|
26
|
-
figmaUrl: zod_1.z.string().nullish(),
|
|
27
20
|
});
|
|
28
21
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/Commitment/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/steps/Commitment/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAAqD;AAExC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACjC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC,OAAO,EAAE;IACpD,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,gCAAgC,CAAC;IACtE,OAAO,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;CAC9D,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAC7B,OAAO,EAAE,mCAA2B;CACrC,CAAC,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export type BaseBoxProps = {
|
|
3
|
-
width?: number;
|
|
4
|
-
height?: number;
|
|
3
|
+
width?: number | string;
|
|
4
|
+
height?: number | string;
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
maxWidth?: number;
|
|
7
|
+
minHeight?: number;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
flex?: number;
|
|
10
|
+
flexShrink?: number;
|
|
11
|
+
flexGrow?: number;
|
|
5
12
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
6
13
|
opacity?: number;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
overflow?: "hidden" | "visible" | "scroll";
|
|
7
16
|
margin?: number;
|
|
8
17
|
marginHorizontal?: number;
|
|
9
18
|
marginVertical?: number;
|
|
@@ -15,17 +24,30 @@ export type BaseBoxProps = {
|
|
|
15
24
|
borderColor?: string;
|
|
16
25
|
};
|
|
17
26
|
export declare const BaseBoxPropsSchema: z.ZodObject<{
|
|
18
|
-
width: z.ZodOptional<z.ZodNumber
|
|
19
|
-
height: z.ZodOptional<z.ZodNumber
|
|
27
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
28
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
29
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
20
36
|
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
auto: "auto";
|
|
21
38
|
"flex-start": "flex-start";
|
|
22
|
-
center: "center";
|
|
23
39
|
"flex-end": "flex-end";
|
|
40
|
+
center: "center";
|
|
24
41
|
stretch: "stretch";
|
|
25
|
-
auto: "auto";
|
|
26
42
|
baseline: "baseline";
|
|
27
43
|
}>>;
|
|
28
44
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
46
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
hidden: "hidden";
|
|
48
|
+
visible: "visible";
|
|
49
|
+
scroll: "scroll";
|
|
50
|
+
}>>;
|
|
29
51
|
margin: z.ZodOptional<z.ZodNumber>;
|
|
30
52
|
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
31
53
|
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBoxProps.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/BaseBoxProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseBoxProps.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/BaseBoxProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuB7B,CAAC"}
|
|
@@ -3,10 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BaseBoxPropsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.BaseBoxPropsSchema = zod_1.z.object({
|
|
6
|
-
width: zod_1.z.number().min(0).optional(),
|
|
7
|
-
height: zod_1.z.number().min(0).optional(),
|
|
6
|
+
width: zod_1.z.union([zod_1.z.number().min(0), zod_1.z.string()]).optional(),
|
|
7
|
+
height: zod_1.z.union([zod_1.z.number().min(0), zod_1.z.string()]).optional(),
|
|
8
|
+
minWidth: zod_1.z.number().min(0).optional(),
|
|
9
|
+
maxWidth: zod_1.z.number().min(0).optional(),
|
|
10
|
+
minHeight: zod_1.z.number().min(0).optional(),
|
|
11
|
+
maxHeight: zod_1.z.number().min(0).optional(),
|
|
12
|
+
flex: zod_1.z.number().min(0).optional(),
|
|
13
|
+
flexShrink: zod_1.z.number().min(0).optional(),
|
|
14
|
+
flexGrow: zod_1.z.number().min(0).optional(),
|
|
8
15
|
alignSelf: zod_1.z.enum(["auto", "flex-start", "flex-end", "center", "stretch", "baseline"]).optional(),
|
|
9
16
|
opacity: zod_1.z.number().min(0).max(1).optional(),
|
|
17
|
+
backgroundColor: zod_1.z.string().optional(),
|
|
18
|
+
overflow: zod_1.z.enum(["hidden", "visible", "scroll"]).optional(),
|
|
10
19
|
margin: zod_1.z.number().optional(),
|
|
11
20
|
marginHorizontal: zod_1.z.number().optional(),
|
|
12
21
|
marginVertical: zod_1.z.number().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBoxProps.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/BaseBoxProps.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"BaseBoxProps.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/BaseBoxProps.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA2BX,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1D,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjG,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5D,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,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrC,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|
|
@@ -10,12 +10,31 @@ export type ButtonElementProps = BaseBoxProps & {
|
|
|
10
10
|
fontWeight?: string;
|
|
11
11
|
fontFamily?: string;
|
|
12
12
|
textAlign?: "left" | "center" | "right";
|
|
13
|
-
alignSelf?: "auto" | "flex-start" | "center" | "flex-end" | "stretch";
|
|
14
13
|
};
|
|
15
14
|
export declare const ButtonElementPropsSchema: z.ZodObject<{
|
|
16
|
-
width: z.ZodOptional<z.ZodNumber
|
|
17
|
-
height: z.ZodOptional<z.ZodNumber
|
|
15
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
16
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
17
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
auto: "auto";
|
|
26
|
+
"flex-start": "flex-start";
|
|
27
|
+
"flex-end": "flex-end";
|
|
28
|
+
center: "center";
|
|
29
|
+
stretch: "stretch";
|
|
30
|
+
baseline: "baseline";
|
|
31
|
+
}>>;
|
|
18
32
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
hidden: "hidden";
|
|
35
|
+
visible: "visible";
|
|
36
|
+
scroll: "scroll";
|
|
37
|
+
}>>;
|
|
19
38
|
margin: z.ZodOptional<z.ZodNumber>;
|
|
20
39
|
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
21
40
|
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
@@ -44,12 +63,5 @@ export declare const ButtonElementPropsSchema: z.ZodObject<{
|
|
|
44
63
|
left: "left";
|
|
45
64
|
right: "right";
|
|
46
65
|
}>>;
|
|
47
|
-
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
48
|
-
"flex-start": "flex-start";
|
|
49
|
-
center: "center";
|
|
50
|
-
"flex-end": "flex-end";
|
|
51
|
-
stretch: "stretch";
|
|
52
|
-
auto: "auto";
|
|
53
|
-
}>>;
|
|
54
66
|
}, z.core.$strip>;
|
|
55
67
|
//# 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,YAAY,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,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,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
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,YAAY,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,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,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUnC,CAAC"}
|
|
@@ -13,6 +13,5 @@ exports.ButtonElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
|
13
13
|
fontWeight: zod_1.z.string().optional(),
|
|
14
14
|
fontFamily: zod_1.z.string().optional(),
|
|
15
15
|
textAlign: zod_1.z.enum(["left", "center", "right"]).optional(),
|
|
16
|
-
alignSelf: zod_1.z.enum(["auto", "flex-start", "center", "flex-end", "stretch"]).optional(),
|
|
17
16
|
});
|
|
18
17
|
//# 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;
|
|
1
|
+
{"version":3,"file":"ButtonElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/ButtonElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAcrD,QAAA,wBAAwB,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAChE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
3
|
+
export type CarouselElementProps = BaseBoxProps & {
|
|
4
|
+
carouselType?: "left-align" | "normal" | "parallax" | "stack";
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
autoPlayInterval?: number;
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
showDots?: boolean;
|
|
9
|
+
dotColor?: string;
|
|
10
|
+
activeDotColor?: string;
|
|
11
|
+
dotWidth?: number;
|
|
12
|
+
dotHeight?: number;
|
|
13
|
+
dotsGap?: number;
|
|
14
|
+
dotsMarginTop?: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const CarouselElementPropsSchema: z.ZodObject<{
|
|
17
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
18
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
19
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
auto: "auto";
|
|
28
|
+
"flex-start": "flex-start";
|
|
29
|
+
"flex-end": "flex-end";
|
|
30
|
+
center: "center";
|
|
31
|
+
stretch: "stretch";
|
|
32
|
+
baseline: "baseline";
|
|
33
|
+
}>>;
|
|
34
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
36
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
hidden: "hidden";
|
|
38
|
+
visible: "visible";
|
|
39
|
+
scroll: "scroll";
|
|
40
|
+
}>>;
|
|
41
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
50
|
+
carouselType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
"left-align": "left-align";
|
|
52
|
+
normal: "normal";
|
|
53
|
+
parallax: "parallax";
|
|
54
|
+
stack: "stack";
|
|
55
|
+
}>>>;
|
|
56
|
+
autoPlay: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
57
|
+
autoPlayInterval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
58
|
+
loop: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
+
showDots: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
60
|
+
dotColor: z.ZodOptional<z.ZodString>;
|
|
61
|
+
activeDotColor: z.ZodOptional<z.ZodString>;
|
|
62
|
+
dotWidth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
63
|
+
dotHeight: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
64
|
+
dotsGap: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
65
|
+
dotsMarginTop: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
//# sourceMappingURL=CarouselElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/CarouselElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG;IAChD,YAAY,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYrC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CarouselElementPropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
6
|
+
exports.CarouselElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
7
|
+
carouselType: zod_1.z.enum(["left-align", "normal", "parallax", "stack"]).optional().default("normal"),
|
|
8
|
+
autoPlay: zod_1.z.boolean().optional().default(false),
|
|
9
|
+
autoPlayInterval: zod_1.z.number().nonnegative().optional().default(3000),
|
|
10
|
+
loop: zod_1.z.boolean().optional().default(true),
|
|
11
|
+
showDots: zod_1.z.boolean().optional().default(true),
|
|
12
|
+
dotColor: zod_1.z.string().optional(),
|
|
13
|
+
activeDotColor: zod_1.z.string().optional(),
|
|
14
|
+
dotWidth: zod_1.z.number().nonnegative().optional().default(20),
|
|
15
|
+
dotHeight: zod_1.z.number().nonnegative().optional().default(4),
|
|
16
|
+
dotsGap: zod_1.z.number().nonnegative().optional().default(8),
|
|
17
|
+
dotsMarginTop: zod_1.z.number().optional().default(12),
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=CarouselElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselElement.js","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/CarouselElement.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAkE;AAgBrD,QAAA,0BAA0B,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAClE,YAAY,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IAChG,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAC/C,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACnE,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACzD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IACvD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACjD,CAAC,CAAC"}
|
|
@@ -25,17 +25,30 @@ export type CheckboxGroupElementProps = BaseBoxProps & {
|
|
|
25
25
|
itemPaddingVertical?: number;
|
|
26
26
|
};
|
|
27
27
|
export declare const CheckboxGroupElementPropsSchema: z.ZodObject<{
|
|
28
|
-
width: z.ZodOptional<z.ZodNumber
|
|
29
|
-
height: z.ZodOptional<z.ZodNumber
|
|
28
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
29
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
30
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
30
37
|
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
auto: "auto";
|
|
31
39
|
"flex-start": "flex-start";
|
|
32
|
-
center: "center";
|
|
33
40
|
"flex-end": "flex-end";
|
|
41
|
+
center: "center";
|
|
34
42
|
stretch: "stretch";
|
|
35
|
-
auto: "auto";
|
|
36
43
|
baseline: "baseline";
|
|
37
44
|
}>>;
|
|
38
45
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
47
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
hidden: "hidden";
|
|
49
|
+
visible: "visible";
|
|
50
|
+
scroll: "scroll";
|
|
51
|
+
}>>;
|
|
39
52
|
margin: z.ZodOptional<z.ZodNumber>;
|
|
40
53
|
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
41
54
|
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroupElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/CheckboxGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,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,+BAA+B
|
|
1
|
+
{"version":3,"file":"CheckboxGroupElement.d.ts","sourceRoot":"","sources":["../../../../src/steps/ComposableScreen/elements/CheckboxGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAElE,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,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,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC1C,CAAC"}
|
|
@@ -12,17 +12,30 @@ export type DatePickerElementProps = BaseBoxProps & {
|
|
|
12
12
|
locale?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const DatePickerElementPropsSchema: z.ZodObject<{
|
|
15
|
-
width: z.ZodOptional<z.ZodNumber
|
|
16
|
-
height: z.ZodOptional<z.ZodNumber
|
|
15
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
16
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
17
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
17
24
|
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
auto: "auto";
|
|
18
26
|
"flex-start": "flex-start";
|
|
19
|
-
center: "center";
|
|
20
27
|
"flex-end": "flex-end";
|
|
28
|
+
center: "center";
|
|
21
29
|
stretch: "stretch";
|
|
22
|
-
auto: "auto";
|
|
23
30
|
baseline: "baseline";
|
|
24
31
|
}>>;
|
|
25
32
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
34
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
hidden: "hidden";
|
|
36
|
+
visible: "visible";
|
|
37
|
+
scroll: "scroll";
|
|
38
|
+
}>>;
|
|
26
39
|
margin: z.ZodOptional<z.ZodNumber>;
|
|
27
40
|
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
28
41
|
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
@@ -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"}
|
|
@@ -8,17 +8,29 @@ export type IconElementProps = BaseBoxProps & {
|
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
};
|
|
10
10
|
export declare const IconElementPropsSchema: z.ZodObject<{
|
|
11
|
-
width: z.ZodOptional<z.ZodNumber
|
|
12
|
-
height: z.ZodOptional<z.ZodNumber
|
|
11
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
12
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
13
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
13
20
|
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
auto: "auto";
|
|
14
22
|
"flex-start": "flex-start";
|
|
15
|
-
center: "center";
|
|
16
23
|
"flex-end": "flex-end";
|
|
24
|
+
center: "center";
|
|
17
25
|
stretch: "stretch";
|
|
18
|
-
auto: "auto";
|
|
19
26
|
baseline: "baseline";
|
|
20
27
|
}>>;
|
|
21
28
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
hidden: "hidden";
|
|
31
|
+
visible: "visible";
|
|
32
|
+
scroll: "scroll";
|
|
33
|
+
}>>;
|
|
22
34
|
margin: z.ZodOptional<z.ZodNumber>;
|
|
23
35
|
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
24
36
|
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
@@ -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"}
|