@rocapine/react-native-onboarding-ui 1.10.0 → 1.11.1
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/UI/Pages/ComposableScreen/elements/BaseBoxProps.d.ts +26 -4
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.js +11 -2
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.d.ts +22 -10
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.js +3 -3
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/CarouselElement.d.ts +79 -0
- package/dist/UI/Pages/ComposableScreen/elements/CarouselElement.d.ts.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/CarouselElement.js +133 -0
- package/dist/UI/Pages/ComposableScreen/elements/CarouselElement.js.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.d.ts +16 -3
- package/dist/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.js +3 -2
- package/dist/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/DatePickerElement.d.ts +16 -3
- package/dist/UI/Pages/ComposableScreen/elements/DatePickerElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/DatePickerElement.js +3 -2
- package/dist/UI/Pages/ComposableScreen/elements/DatePickerElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/IconElement.d.ts +14 -2
- package/dist/UI/Pages/ComposableScreen/elements/IconElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/IconElement.js +12 -2
- package/dist/UI/Pages/ComposableScreen/elements/IconElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ImageElement.d.ts +15 -2
- package/dist/UI/Pages/ComposableScreen/elements/ImageElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ImageElement.js +15 -7
- package/dist/UI/Pages/ComposableScreen/elements/ImageElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/InputElement.d.ts +20 -2
- package/dist/UI/Pages/ComposableScreen/elements/InputElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/InputElement.js +17 -2
- package/dist/UI/Pages/ComposableScreen/elements/InputElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/LottieElement.d.ts +15 -2
- package/dist/UI/Pages/ComposableScreen/elements/LottieElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/LottieElement.js +12 -2
- package/dist/UI/Pages/ComposableScreen/elements/LottieElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RadioGroupElement.d.ts +15 -2
- package/dist/UI/Pages/ComposableScreen/elements/RadioGroupElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RadioGroupElement.js +3 -2
- package/dist/UI/Pages/ComposableScreen/elements/RadioGroupElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RiveElement.d.ts +17 -4
- package/dist/UI/Pages/ComposableScreen/elements/RiveElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RiveElement.js +25 -14
- package/dist/UI/Pages/ComposableScreen/elements/RiveElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.d.ts +28 -47
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.js +30 -47
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.d.ts +35 -23
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.js +35 -35
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/VideoElement.d.ts +15 -2
- package/dist/UI/Pages/ComposableScreen/elements/VideoElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/VideoElement.js +12 -2
- package/dist/UI/Pages/ComposableScreen/elements/VideoElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.js +4 -0
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/shared.d.ts +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/shared.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/shared.js +4 -1
- package/dist/UI/Pages/ComposableScreen/elements/shared.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/types.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/types.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/types.js +8 -0
- package/dist/UI/Pages/ComposableScreen/types.js.map +1 -1
- package/package.json +6 -4
- package/src/UI/Pages/ComposableScreen/elements/BaseBoxProps.ts +22 -4
- package/src/UI/Pages/ComposableScreen/elements/ButtonElement.tsx +3 -5
- package/src/UI/Pages/ComposableScreen/elements/CarouselElement.tsx +152 -0
- package/src/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.tsx +3 -3
- package/src/UI/Pages/ComposableScreen/elements/DatePickerElement.tsx +3 -3
- package/src/UI/Pages/ComposableScreen/elements/IconElement.tsx +12 -3
- package/src/UI/Pages/ComposableScreen/elements/ImageElement.tsx +16 -8
- package/src/UI/Pages/ComposableScreen/elements/InputElement.tsx +20 -3
- package/src/UI/Pages/ComposableScreen/elements/LottieElement.tsx +12 -3
- package/src/UI/Pages/ComposableScreen/elements/RadioGroupElement.tsx +3 -3
- package/src/UI/Pages/ComposableScreen/elements/RiveElement.tsx +26 -16
- package/src/UI/Pages/ComposableScreen/elements/StackElement.tsx +31 -70
- package/src/UI/Pages/ComposableScreen/elements/TextElement.tsx +36 -47
- package/src/UI/Pages/ComposableScreen/elements/VideoElement.tsx +12 -3
- package/src/UI/Pages/ComposableScreen/elements/renderElement.tsx +5 -0
- package/src/UI/Pages/ComposableScreen/elements/shared.ts +4 -0
- package/src/UI/Pages/ComposableScreen/types.ts +16 -0
|
@@ -14,6 +14,7 @@ const RadioGroupElement_1 = require("./RadioGroupElement");
|
|
|
14
14
|
const CheckboxGroupElement_1 = require("./CheckboxGroupElement");
|
|
15
15
|
const ButtonElement_1 = require("./ButtonElement");
|
|
16
16
|
const DatePickerElement_1 = require("./DatePickerElement");
|
|
17
|
+
const CarouselElement_1 = require("./CarouselElement");
|
|
17
18
|
const renderElement = (element, ctx, parentType) => {
|
|
18
19
|
if (element.type === "YStack" || element.type === "XStack") {
|
|
19
20
|
return (0, jsx_runtime_1.jsx)(StackElement_1.StackElementComponent, { element: element, ctx: ctx, parentType: parentType }, element.id);
|
|
@@ -51,6 +52,9 @@ const renderElement = (element, ctx, parentType) => {
|
|
|
51
52
|
if (element.type === "DatePicker") {
|
|
52
53
|
return (0, jsx_runtime_1.jsx)(DatePickerElement_1.DatePickerElementComponent, { element: element, ctx: ctx }, element.id);
|
|
53
54
|
}
|
|
55
|
+
if (element.type === "Carousel") {
|
|
56
|
+
return (0, jsx_runtime_1.jsx)(CarouselElement_1.CarouselElementComponent, { element: element, ctx: ctx }, element.id);
|
|
57
|
+
}
|
|
54
58
|
return null;
|
|
55
59
|
};
|
|
56
60
|
exports.renderElement = renderElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderElement.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/renderElement.tsx"],"names":[],"mappings":";;;;AAGA,iDAAuD;AACvD,+CAAqD;AACrD,iDAAuD;AACvD,mDAAyD;AACzD,+CAAoD;AACpD,+CAAqD;AACrD,iDAAsD;AACtD,iDAAuD;AACvD,2DAA0D;AAC1D,iEAAgE;AAChE,mDAAyD;AACzD,2DAAiE;
|
|
1
|
+
{"version":3,"file":"renderElement.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/renderElement.tsx"],"names":[],"mappings":";;;;AAGA,iDAAuD;AACvD,+CAAqD;AACrD,iDAAuD;AACvD,mDAAyD;AACzD,+CAAoD;AACpD,+CAAqD;AACrD,iDAAsD;AACtD,iDAAuD;AACvD,2DAA0D;AAC1D,iEAAgE;AAChE,mDAAyD;AACzD,2DAAiE;AACjE,uDAA6D;AAEtD,MAAM,aAAa,GAAG,CAC3B,OAAkB,EAClB,GAAkB,EAClB,UAAgC,EACf,EAAE;IACnB,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3D,OAAO,uBAAC,oCAAqB,IAAkB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,IAA9D,OAAO,CAAC,EAAE,CAAwD,CAAC;IACxG,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC5B,OAAO,uBAAC,kCAAoB,IAAkB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,UAAU,IAA9D,OAAO,CAAC,EAAE,CAAwD,CAAC;IACvG,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC7B,OAAO,uBAAC,oCAAqB,IAAkB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAtC,OAAO,CAAC,EAAE,CAAgC,CAAC;IAChF,CAAC;IAED,IAAI,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,EAAE,CAAgC,CAAC;IACjF,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,uBAAC,sCAAsB,IAAkB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAtC,OAAO,CAAC,EAAE,CAAgC,CAAC;IACjF,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;QAClC,OAAO,uBAAC,8CAA0B,IAAkB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAtC,OAAO,CAAC,EAAE,CAAgC,CAAC;IACrF,CAAC;IAED,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAChC,OAAO,uBAAC,0CAAwB,IAAkB,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAtC,OAAO,CAAC,EAAE,CAAgC,CAAC;IACnF,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA1DW,QAAA,aAAa,iBA0DxB"}
|
|
@@ -10,4 +10,5 @@ export type RenderContext = {
|
|
|
10
10
|
renderChildren: (elements: UIElement[], parentType: "XStack" | "YStack") => React.ReactNode;
|
|
11
11
|
};
|
|
12
12
|
export declare const interpolate: (template: string, variables: Record<string, ComposableVariableEntry>) => string;
|
|
13
|
+
export declare const dim: (v: number | string | undefined) => import("react-native").DimensionValue | undefined;
|
|
13
14
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8CAA8C,CAAC;AAEvF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BAAuB,CAAC,KAAG,MACM,CAAC;AAG1G,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,KAAG,OAAO,cAAc,EAAE,cAAc,GAAG,SACrC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.interpolate = void 0;
|
|
3
|
+
exports.dim = exports.interpolate = void 0;
|
|
4
4
|
const interpolate = (template, variables) => template.replace(/\{\{([^}]+?)\}\}/g, (_, key) => { var _a, _b, _c, _d; return (_d = (_b = (_a = variables[key]) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : (_c = variables[key]) === null || _c === void 0 ? void 0 : _c.value) !== null && _d !== void 0 ? _d : ""; });
|
|
5
5
|
exports.interpolate = interpolate;
|
|
6
|
+
// Cast number | string dimension values to DimensionValue for React Native style props
|
|
7
|
+
const dim = (v) => v;
|
|
8
|
+
exports.dim = dim;
|
|
6
9
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/shared.ts"],"names":[],"mappings":";;;AAaO,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,SAAkD,EAAU,EAAE,CAC1G,QAAQ,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,uBAAC,OAAA,MAAA,MAAA,MAAA,SAAS,CAAC,GAAG,CAAC,0CAAE,KAAK,mCAAI,MAAA,SAAS,CAAC,GAAG,CAAC,0CAAE,KAAK,mCAAI,EAAE,CAAA,EAAA,CAAC,CAAC;AAD7F,QAAA,WAAW,eACkF"}
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/shared.ts"],"names":[],"mappings":";;;AAaO,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,SAAkD,EAAU,EAAE,CAC1G,QAAQ,CAAC,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,uBAAC,OAAA,MAAA,MAAA,MAAA,SAAS,CAAC,GAAG,CAAC,0CAAE,KAAK,mCAAI,MAAA,SAAS,CAAC,GAAG,CAAC,0CAAE,KAAK,mCAAI,EAAE,CAAA,EAAA,CAAC,CAAC;AAD7F,QAAA,WAAW,eACkF;AAE1G,uFAAuF;AAChF,MAAM,GAAG,GAAG,CAAC,CAA8B,EAAqD,EAAE,CACvG,CAAsD,CAAC;AAD5C,QAAA,GAAG,OACyC"}
|
|
@@ -11,6 +11,7 @@ import { type ButtonElementProps } from "./elements/ButtonElement";
|
|
|
11
11
|
import { type RadioGroupElementProps } from "./elements/RadioGroupElement";
|
|
12
12
|
import { type CheckboxGroupElementProps } from "./elements/CheckboxGroupElement";
|
|
13
13
|
import { type DatePickerElementProps } from "./elements/DatePickerElement";
|
|
14
|
+
import { type CarouselElementProps } from "./elements/CarouselElement";
|
|
14
15
|
export type { BaseBoxProps } from "./elements/BaseBoxProps";
|
|
15
16
|
export { BaseBoxPropsSchema } from "./elements/BaseBoxProps";
|
|
16
17
|
export type { StackElementProps } from "./elements/StackElement";
|
|
@@ -25,6 +26,7 @@ export type { ButtonElementProps } from "./elements/ButtonElement";
|
|
|
25
26
|
export type { RadioGroupElementProps } from "./elements/RadioGroupElement";
|
|
26
27
|
export type { CheckboxGroupElementProps } from "./elements/CheckboxGroupElement";
|
|
27
28
|
export type { DatePickerElementProps } from "./elements/DatePickerElement";
|
|
29
|
+
export type { CarouselElementProps } from "./elements/CarouselElement";
|
|
28
30
|
export type UIElement = {
|
|
29
31
|
id: string;
|
|
30
32
|
name?: string;
|
|
@@ -86,6 +88,12 @@ export type UIElement = {
|
|
|
86
88
|
name?: string;
|
|
87
89
|
type: "DatePicker";
|
|
88
90
|
props: DatePickerElementProps;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
name?: string;
|
|
94
|
+
type: "Carousel";
|
|
95
|
+
props: CarouselElementProps;
|
|
96
|
+
children: UIElement[];
|
|
89
97
|
};
|
|
90
98
|
export declare const UIElementSchema: z.ZodType<UIElement>;
|
|
91
99
|
export declare const ComposableScreenStepPayloadSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/UI/Pages/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,CAAC;AAC1F,OAAO,EAAE,KAAK,iBAAiB,EAA2B,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,KAAK,sBAAsB,EAAgC,MAAM,8BAA8B,CAAC;AACzG,OAAO,EAAE,KAAK,yBAAyB,EAAmC,MAAM,iCAAiC,CAAC;AAClH,OAAO,EAAE,KAAK,sBAAsB,EAAgC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/UI/Pages/ComposableScreen/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,C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M,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -15,6 +15,7 @@ const ButtonElement_1 = require("./elements/ButtonElement");
|
|
|
15
15
|
const RadioGroupElement_1 = require("./elements/RadioGroupElement");
|
|
16
16
|
const CheckboxGroupElement_1 = require("./elements/CheckboxGroupElement");
|
|
17
17
|
const DatePickerElement_1 = require("./elements/DatePickerElement");
|
|
18
|
+
const CarouselElement_1 = require("./elements/CarouselElement");
|
|
18
19
|
var BaseBoxProps_1 = require("./elements/BaseBoxProps");
|
|
19
20
|
Object.defineProperty(exports, "BaseBoxPropsSchema", { enumerable: true, get: function () { return BaseBoxProps_1.BaseBoxPropsSchema; } });
|
|
20
21
|
exports.UIElementSchema = zod_1.z.lazy(() => zod_1.z.union([
|
|
@@ -91,6 +92,13 @@ exports.UIElementSchema = zod_1.z.lazy(() => zod_1.z.union([
|
|
|
91
92
|
type: zod_1.z.literal("DatePicker"),
|
|
92
93
|
props: DatePickerElement_1.DatePickerElementPropsSchema,
|
|
93
94
|
}),
|
|
95
|
+
zod_1.z.object({
|
|
96
|
+
id: zod_1.z.string(),
|
|
97
|
+
name: zod_1.z.string().optional(),
|
|
98
|
+
type: zod_1.z.literal("Carousel"),
|
|
99
|
+
props: CarouselElement_1.CarouselElementPropsSchema,
|
|
100
|
+
children: zod_1.z.array(exports.UIElementSchema),
|
|
101
|
+
}),
|
|
94
102
|
]));
|
|
95
103
|
exports.ComposableScreenStepPayloadSchema = zod_1.z.object({
|
|
96
104
|
elements: zod_1.z.array(exports.UIElementSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/UI/Pages/ComposableScreen/types.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oCAA+C;AAC/C,0DAA0F;AAC1F,wDAAuF;AACvF,0DAA0F;AAC1F,4DAA6F;AAC7F,wDAAuF;AACvF,wDAAuF;AACvF,0DA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AAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAe,CAAC;CACnC,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,qBAAqB,EAAE,OAAC,CAAC,OAAO,EAAE;IAClC,OAAO,EAAE,yCAAiC;IAC1C,aAAa,EAAE,2BAAmB;IAClC,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;IAC9D,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocapine/react-native-onboarding-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "UI components and renderers for Rocapine Onboarding Studio - Built on top of the headless SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"react-native": "0.83.4",
|
|
39
39
|
"react-native-gesture-handler": "^2.28.0",
|
|
40
40
|
"react-native-reanimated": "^4.1.2",
|
|
41
|
+
"react-native-reanimated-carousel": "^4.0.3",
|
|
41
42
|
"react-native-safe-area-context": "^5.6.1",
|
|
42
43
|
"react-native-svg": "15.15.3",
|
|
43
44
|
"typescript": "^5.0.0"
|
|
@@ -45,18 +46,19 @@
|
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"@react-native-community/datetimepicker": "*",
|
|
47
48
|
"@react-native-picker/picker": "*",
|
|
48
|
-
"@rocapine/react-native-onboarding": "^1.
|
|
49
|
+
"@rocapine/react-native-onboarding": "^1.11.1",
|
|
49
50
|
"@shopify/react-native-skia": ">=1.0.0",
|
|
50
51
|
"@tanstack/react-query": ">=5.0.0",
|
|
51
52
|
"@types/react": "*",
|
|
52
53
|
"expo-router": ">=3.0.0",
|
|
53
54
|
"expo-store-review": "*",
|
|
55
|
+
"expo-video": "*",
|
|
54
56
|
"lottie-react-native": "*",
|
|
55
57
|
"react": "*",
|
|
56
58
|
"react-native": "*",
|
|
59
|
+
"react-native-reanimated-carousel": "*",
|
|
57
60
|
"react-native-safe-area-context": "*",
|
|
58
|
-
"rive-react-native": "*"
|
|
59
|
-
"expo-video": "*"
|
|
61
|
+
"rive-react-native": "*"
|
|
60
62
|
},
|
|
61
63
|
"peerDependenciesMeta": {
|
|
62
64
|
"@react-native-community/datetimepicker": {
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
export type BaseBoxProps = {
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height?: number | string;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
minHeight?: number;
|
|
9
|
+
maxHeight?: number;
|
|
10
|
+
flex?: number;
|
|
11
|
+
flexShrink?: number;
|
|
12
|
+
flexGrow?: number;
|
|
6
13
|
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
7
14
|
opacity?: number;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
overflow?: "hidden" | "visible" | "scroll";
|
|
8
17
|
margin?: number;
|
|
9
18
|
marginHorizontal?: number;
|
|
10
19
|
marginVertical?: number;
|
|
@@ -17,10 +26,19 @@ export type BaseBoxProps = {
|
|
|
17
26
|
};
|
|
18
27
|
|
|
19
28
|
export const BaseBoxPropsSchema = z.object({
|
|
20
|
-
width: z.number().min(0).optional(),
|
|
21
|
-
height: z.number().min(0).optional(),
|
|
29
|
+
width: z.union([z.number().min(0), z.string()]).optional(),
|
|
30
|
+
height: z.union([z.number().min(0), z.string()]).optional(),
|
|
31
|
+
minWidth: z.number().min(0).optional(),
|
|
32
|
+
maxWidth: z.number().min(0).optional(),
|
|
33
|
+
minHeight: z.number().min(0).optional(),
|
|
34
|
+
maxHeight: z.number().min(0).optional(),
|
|
35
|
+
flex: z.number().min(0).optional(),
|
|
36
|
+
flexShrink: z.number().min(0).optional(),
|
|
37
|
+
flexGrow: z.number().min(0).optional(),
|
|
22
38
|
alignSelf: z.enum(["auto", "flex-start", "flex-end", "center", "stretch", "baseline"]).optional(),
|
|
23
39
|
opacity: z.number().min(0).max(1).optional(),
|
|
40
|
+
backgroundColor: z.string().optional(),
|
|
41
|
+
overflow: z.enum(["hidden", "visible", "scroll"]).optional(),
|
|
24
42
|
margin: z.number().optional(),
|
|
25
43
|
marginHorizontal: z.number().optional(),
|
|
26
44
|
marginVertical: z.number().optional(),
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { Text, TouchableOpacity } from "react-native";
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import { UIElement } from "../types";
|
|
6
|
-
import { RenderContext } from "./shared";
|
|
6
|
+
import { RenderContext, dim } from "./shared";
|
|
7
7
|
|
|
8
8
|
export type ButtonElementProps = BaseBoxProps & {
|
|
9
9
|
label: string;
|
|
@@ -15,7 +15,6 @@ export type ButtonElementProps = BaseBoxProps & {
|
|
|
15
15
|
fontWeight?: string;
|
|
16
16
|
fontFamily?: string;
|
|
17
17
|
textAlign?: "left" | "center" | "right";
|
|
18
|
-
alignSelf?: "auto" | "flex-start" | "center" | "flex-end" | "stretch";
|
|
19
18
|
};
|
|
20
19
|
|
|
21
20
|
export const ButtonElementPropsSchema = BaseBoxPropsSchema.extend({
|
|
@@ -28,7 +27,6 @@ export const ButtonElementPropsSchema = BaseBoxPropsSchema.extend({
|
|
|
28
27
|
fontWeight: z.string().optional(),
|
|
29
28
|
fontFamily: z.string().optional(),
|
|
30
29
|
textAlign: z.enum(["left", "center", "right"]).optional(),
|
|
31
|
-
alignSelf: z.enum(["auto", "flex-start", "center", "flex-end", "stretch"]).optional(),
|
|
32
30
|
});
|
|
33
31
|
|
|
34
32
|
type ButtonUIElement = Extract<UIElement, { type: "Button" }>;
|
|
@@ -69,8 +67,8 @@ export const ButtonElementComponent = ({ element, ctx }: Props): React.ReactElem
|
|
|
69
67
|
padding: element.props.padding,
|
|
70
68
|
paddingVertical: element.props.paddingVertical ?? 14,
|
|
71
69
|
paddingHorizontal: element.props.paddingHorizontal ?? 24,
|
|
72
|
-
width: element.props.width,
|
|
73
|
-
height: element.props.height,
|
|
70
|
+
width: dim(element.props.width),
|
|
71
|
+
height: dim(element.props.height),
|
|
74
72
|
margin: element.props.margin,
|
|
75
73
|
marginHorizontal: element.props.marginHorizontal,
|
|
76
74
|
marginVertical: element.props.marginVertical,
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import React, { useRef } from "react";
|
|
2
|
+
import { useWindowDimensions, View } from "react-native";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { useSharedValue } from "react-native-reanimated";
|
|
5
|
+
import Carousel, { Pagination, ICarouselInstance } from "react-native-reanimated-carousel";
|
|
6
|
+
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
7
|
+
import type { UIElement } from "../types";
|
|
8
|
+
import { dim, type RenderContext } from "./shared";
|
|
9
|
+
|
|
10
|
+
export type CarouselElementProps = BaseBoxProps & {
|
|
11
|
+
carouselType?: "left-align" | "normal" | "parallax" | "stack";
|
|
12
|
+
autoPlay?: boolean;
|
|
13
|
+
autoPlayInterval?: number;
|
|
14
|
+
loop?: boolean;
|
|
15
|
+
showDots?: boolean;
|
|
16
|
+
dotColor?: string;
|
|
17
|
+
activeDotColor?: string;
|
|
18
|
+
dotWidth?: number;
|
|
19
|
+
dotHeight?: number;
|
|
20
|
+
dotsGap?: number;
|
|
21
|
+
dotsMarginTop?: number;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const CarouselElementPropsSchema = BaseBoxPropsSchema.extend({
|
|
25
|
+
carouselType: z.enum(["left-align", "normal", "parallax", "stack"]).optional().default("normal"),
|
|
26
|
+
autoPlay: z.boolean().optional().default(false),
|
|
27
|
+
autoPlayInterval: z.number().nonnegative().optional().default(3000),
|
|
28
|
+
loop: z.boolean().optional().default(true),
|
|
29
|
+
showDots: z.boolean().optional().default(true),
|
|
30
|
+
dotColor: z.string().optional(),
|
|
31
|
+
activeDotColor: z.string().optional(),
|
|
32
|
+
dotWidth: z.number().nonnegative().optional().default(20),
|
|
33
|
+
dotHeight: z.number().nonnegative().optional().default(4),
|
|
34
|
+
dotsGap: z.number().nonnegative().optional().default(8),
|
|
35
|
+
dotsMarginTop: z.number().optional().default(12),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
type CarouselUIElement = Extract<UIElement, { type: "Carousel" }>;
|
|
39
|
+
|
|
40
|
+
type Props = {
|
|
41
|
+
element: CarouselUIElement;
|
|
42
|
+
ctx: RenderContext;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export function CarouselElementComponent({ element, ctx }: Props): React.ReactElement {
|
|
46
|
+
const { theme } = ctx;
|
|
47
|
+
const { props, children } = element;
|
|
48
|
+
const { width: windowWidth } = useWindowDimensions();
|
|
49
|
+
const progress = useSharedValue<number>(0);
|
|
50
|
+
const ref = useRef<ICarouselInstance>(null);
|
|
51
|
+
|
|
52
|
+
const carouselType = props.carouselType ?? "normal";
|
|
53
|
+
|
|
54
|
+
// Stack uses 75% width (shows side items); left-align uses 82% (peek effect)
|
|
55
|
+
const itemWidth =
|
|
56
|
+
carouselType === "stack"
|
|
57
|
+
? windowWidth * 0.75
|
|
58
|
+
: carouselType === "left-align"
|
|
59
|
+
? windowWidth * 0.82
|
|
60
|
+
: (typeof props.width === "number" ? props.width : windowWidth);
|
|
61
|
+
const itemHeight = typeof props.height === "number" ? props.height : 220;
|
|
62
|
+
|
|
63
|
+
const containerStyle = {
|
|
64
|
+
alignSelf: props.alignSelf,
|
|
65
|
+
flex: props.flex,
|
|
66
|
+
flexShrink: props.flexShrink,
|
|
67
|
+
flexGrow: props.flexGrow,
|
|
68
|
+
width: dim(props.width),
|
|
69
|
+
minWidth: props.minWidth,
|
|
70
|
+
maxWidth: props.maxWidth,
|
|
71
|
+
minHeight: props.minHeight,
|
|
72
|
+
maxHeight: props.maxHeight,
|
|
73
|
+
margin: props.margin,
|
|
74
|
+
marginHorizontal: props.marginHorizontal,
|
|
75
|
+
marginVertical: props.marginVertical,
|
|
76
|
+
padding: props.padding,
|
|
77
|
+
paddingHorizontal: props.paddingHorizontal,
|
|
78
|
+
paddingVertical: props.paddingVertical,
|
|
79
|
+
borderRadius: props.borderRadius,
|
|
80
|
+
borderWidth: props.borderWidth,
|
|
81
|
+
borderColor: props.borderColor,
|
|
82
|
+
backgroundColor: props.backgroundColor,
|
|
83
|
+
opacity: props.opacity,
|
|
84
|
+
// Left-align shows the next slide peeking — must not clip
|
|
85
|
+
overflow: carouselType === "left-align" ? ("visible" as const) : (props.overflow ?? ("hidden" as const)),
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const modeProps: Record<string, unknown> =
|
|
89
|
+
carouselType === "parallax"
|
|
90
|
+
? {
|
|
91
|
+
mode: "parallax",
|
|
92
|
+
modeConfig: { parallaxScrollingScale: 0.9, parallaxScrollingOffset: 50 },
|
|
93
|
+
}
|
|
94
|
+
: carouselType === "stack"
|
|
95
|
+
? {
|
|
96
|
+
mode: "horizontal-stack",
|
|
97
|
+
modeConfig: { snapDirection: "left", stackInterval: 18 },
|
|
98
|
+
customConfig: () => ({ type: "positive", viewCount: 5 }),
|
|
99
|
+
}
|
|
100
|
+
: {};
|
|
101
|
+
|
|
102
|
+
const dotW = props.dotWidth ?? 20;
|
|
103
|
+
const dotH = props.dotHeight ?? 4;
|
|
104
|
+
const dotsGap = props.dotsGap ?? 8;
|
|
105
|
+
const dotsMarginTop = props.dotsMarginTop ?? 12;
|
|
106
|
+
const dotBg = props.dotColor ?? theme.colors.neutral.low;
|
|
107
|
+
const activeDotBg = props.activeDotColor ?? theme.colors.primary;
|
|
108
|
+
console.log(props.autoPlay, props.autoPlayInterval);
|
|
109
|
+
console.log(element);
|
|
110
|
+
return (
|
|
111
|
+
<View style={containerStyle}>
|
|
112
|
+
<Carousel
|
|
113
|
+
ref={ref}
|
|
114
|
+
loop={props.loop}
|
|
115
|
+
autoPlay={props.autoPlay}
|
|
116
|
+
autoPlayInterval={props.autoPlayInterval}
|
|
117
|
+
snapEnabled={true}
|
|
118
|
+
pagingEnabled={true}
|
|
119
|
+
data={children}
|
|
120
|
+
width={itemWidth}
|
|
121
|
+
height={itemHeight}
|
|
122
|
+
style={{ width: itemWidth, height: itemHeight }}
|
|
123
|
+
renderItem={({ item }: { item: UIElement }) => ctx.renderChildren([item], "YStack")}
|
|
124
|
+
onProgressChange={(_: number, absoluteProgress: number) => {
|
|
125
|
+
progress.value = absoluteProgress;
|
|
126
|
+
}}
|
|
127
|
+
{...(modeProps as any)}
|
|
128
|
+
/>
|
|
129
|
+
{(props.showDots ?? true) && (
|
|
130
|
+
<Pagination.Basic
|
|
131
|
+
progress={progress}
|
|
132
|
+
data={children}
|
|
133
|
+
dotStyle={{
|
|
134
|
+
width: dotW,
|
|
135
|
+
height: dotH,
|
|
136
|
+
borderRadius: dotH / 2,
|
|
137
|
+
backgroundColor: dotBg,
|
|
138
|
+
}}
|
|
139
|
+
activeDotStyle={{
|
|
140
|
+
overflow: "hidden",
|
|
141
|
+
backgroundColor: activeDotBg,
|
|
142
|
+
}}
|
|
143
|
+
containerStyle={{ gap: dotsGap, marginTop: dotsMarginTop }}
|
|
144
|
+
horizontal
|
|
145
|
+
onPress={(index: number) => {
|
|
146
|
+
ref.current?.scrollTo({ count: index - progress.value, animated: true });
|
|
147
|
+
}}
|
|
148
|
+
/>
|
|
149
|
+
)}
|
|
150
|
+
</View>
|
|
151
|
+
);
|
|
152
|
+
}
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { View, Text, TouchableOpacity } from "react-native";
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import type { UIElement } from "../types";
|
|
6
|
-
import type
|
|
6
|
+
import { dim, type RenderContext } from "./shared";
|
|
7
7
|
|
|
8
8
|
export type CheckboxGroupElementProps = BaseBoxProps & {
|
|
9
9
|
variableName?: string;
|
|
@@ -109,8 +109,8 @@ export const CheckboxGroupComponent = ({ element, ctx }: Props): React.ReactElem
|
|
|
109
109
|
flexWrap: isHorizontal ? "wrap" : undefined,
|
|
110
110
|
alignSelf: element.props.alignSelf,
|
|
111
111
|
gap: element.props.gap ?? 8,
|
|
112
|
-
width: element.props.width,
|
|
113
|
-
height: element.props.height,
|
|
112
|
+
width: dim(element.props.width),
|
|
113
|
+
height: dim(element.props.height),
|
|
114
114
|
margin: element.props.margin,
|
|
115
115
|
marginHorizontal: element.props.marginHorizontal,
|
|
116
116
|
marginVertical: element.props.marginVertical,
|
|
@@ -4,7 +4,7 @@ import DateTimePicker, { DateTimePickerEvent } from "@react-native-community/dat
|
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import type { UIElement } from "../types";
|
|
7
|
-
import type
|
|
7
|
+
import { dim, type RenderContext } from "./shared";
|
|
8
8
|
|
|
9
9
|
export type DatePickerElementProps = BaseBoxProps & {
|
|
10
10
|
variableName?: string;
|
|
@@ -93,8 +93,8 @@ export const DatePickerElementComponent = ({ element, ctx }: Props): React.React
|
|
|
93
93
|
|
|
94
94
|
const containerStyle = {
|
|
95
95
|
alignSelf: props.alignSelf,
|
|
96
|
-
width: props.width,
|
|
97
|
-
height: props.height,
|
|
96
|
+
width: dim(props.width),
|
|
97
|
+
height: dim(props.height),
|
|
98
98
|
margin: props.margin,
|
|
99
99
|
marginHorizontal: props.marginHorizontal,
|
|
100
100
|
marginVertical: props.marginVertical,
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { View } from "react-native";
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import { UIElement } from "../types";
|
|
6
|
-
import { RenderContext } from "./shared";
|
|
6
|
+
import { RenderContext, dim } from "./shared";
|
|
7
7
|
|
|
8
8
|
export type IconElementProps = BaseBoxProps & {
|
|
9
9
|
name: string;
|
|
@@ -40,8 +40,17 @@ export const IconElementComponent = ({ element, ctx }: Props): React.ReactElemen
|
|
|
40
40
|
return (
|
|
41
41
|
<View
|
|
42
42
|
style={{
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
flex: element.props.flex,
|
|
44
|
+
flexShrink: element.props.flexShrink,
|
|
45
|
+
flexGrow: element.props.flexGrow,
|
|
46
|
+
alignSelf: element.props.alignSelf,
|
|
47
|
+
width: dim(element.props.width),
|
|
48
|
+
height: dim(element.props.height),
|
|
49
|
+
minWidth: element.props.minWidth,
|
|
50
|
+
maxWidth: element.props.maxWidth,
|
|
51
|
+
minHeight: element.props.minHeight,
|
|
52
|
+
maxHeight: element.props.maxHeight,
|
|
53
|
+
overflow: element.props.overflow,
|
|
45
54
|
margin: element.props.margin,
|
|
46
55
|
marginHorizontal: element.props.marginHorizontal,
|
|
47
56
|
marginVertical: element.props.marginVertical,
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { Image } from "react-native";
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import { UIElement } from "../types";
|
|
6
|
-
import { RenderContext } from "./shared";
|
|
6
|
+
import { RenderContext, dim } from "./shared";
|
|
7
7
|
|
|
8
8
|
export type ImageElementProps = BaseBoxProps & {
|
|
9
9
|
url: string;
|
|
@@ -26,16 +26,24 @@ type Props = {
|
|
|
26
26
|
|
|
27
27
|
export const ImageElementComponent = ({ element }: Props): React.ReactElement => {
|
|
28
28
|
const hasExplicitHeight = element.props.height !== undefined;
|
|
29
|
-
const aspectRatio = hasExplicitHeight ? undefined : (element.props.aspectRatio ?? 16 / 9);
|
|
30
29
|
|
|
31
30
|
return (
|
|
32
31
|
<Image
|
|
33
32
|
source={{ uri: element.props.url }}
|
|
34
|
-
resizeMode={element.props.resizeMode
|
|
35
|
-
style={{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
resizeMode={element.props.resizeMode}
|
|
34
|
+
style={({
|
|
35
|
+
flex: element.props.flex,
|
|
36
|
+
flexShrink: element.props.flexShrink,
|
|
37
|
+
flexGrow: element.props.flexGrow,
|
|
38
|
+
alignSelf: element.props.alignSelf,
|
|
39
|
+
width: dim(element.props.width),
|
|
40
|
+
height: dim(element.props.height),
|
|
41
|
+
minWidth: element.props.minWidth,
|
|
42
|
+
maxWidth: element.props.maxWidth,
|
|
43
|
+
minHeight: element.props.minHeight,
|
|
44
|
+
maxHeight: element.props.maxHeight,
|
|
45
|
+
backgroundColor: element.props.backgroundColor,
|
|
46
|
+
overflow: element.props.overflow,
|
|
39
47
|
borderRadius: element.props.borderRadius,
|
|
40
48
|
borderWidth: element.props.borderWidth,
|
|
41
49
|
borderColor: element.props.borderColor,
|
|
@@ -46,7 +54,7 @@ export const ImageElementComponent = ({ element }: Props): React.ReactElement =>
|
|
|
46
54
|
padding: element.props.padding,
|
|
47
55
|
paddingHorizontal: element.props.paddingHorizontal,
|
|
48
56
|
paddingVertical: element.props.paddingVertical,
|
|
49
|
-
}}
|
|
57
|
+
}) as any}
|
|
50
58
|
/>
|
|
51
59
|
);
|
|
52
60
|
};
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { View, TextInput } from "react-native";
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import { UIElement } from "../types";
|
|
6
|
-
import { RenderContext } from "./shared";
|
|
6
|
+
import { RenderContext, dim } from "./shared";
|
|
7
7
|
|
|
8
8
|
export type InputElementProps = BaseBoxProps & {
|
|
9
9
|
variableName?: string;
|
|
@@ -21,6 +21,9 @@ export type InputElementProps = BaseBoxProps & {
|
|
|
21
21
|
backgroundColor?: string;
|
|
22
22
|
fontSize?: number;
|
|
23
23
|
fontWeight?: string;
|
|
24
|
+
fontFamily?: string;
|
|
25
|
+
lineHeight?: number;
|
|
26
|
+
letterSpacing?: number;
|
|
24
27
|
textAlign?: "left" | "center" | "right";
|
|
25
28
|
placeholderColor?: string;
|
|
26
29
|
};
|
|
@@ -41,6 +44,9 @@ export const InputElementPropsSchema = BaseBoxPropsSchema.extend({
|
|
|
41
44
|
backgroundColor: z.string().optional(),
|
|
42
45
|
fontSize: z.number().optional(),
|
|
43
46
|
fontWeight: z.string().optional(),
|
|
47
|
+
fontFamily: z.string().optional(),
|
|
48
|
+
lineHeight: z.number().optional(),
|
|
49
|
+
letterSpacing: z.number().optional(),
|
|
44
50
|
textAlign: z.enum(["left", "center", "right"]).optional(),
|
|
45
51
|
placeholderColor: z.string().optional(),
|
|
46
52
|
});
|
|
@@ -85,10 +91,18 @@ export const InputElementComponent = ({ element, ctx }: Props): React.ReactEleme
|
|
|
85
91
|
numberOfLines={element.props.numberOfLines}
|
|
86
92
|
editable={element.props.editable ?? true}
|
|
87
93
|
style={{
|
|
94
|
+
flex: element.props.flex,
|
|
95
|
+
flexShrink: element.props.flexShrink,
|
|
96
|
+
flexGrow: element.props.flexGrow,
|
|
88
97
|
alignSelf: element.props.alignSelf,
|
|
89
|
-
width: element.props.width,
|
|
90
|
-
height: element.props.height,
|
|
98
|
+
width: dim(element.props.width),
|
|
99
|
+
height: dim(element.props.height),
|
|
100
|
+
minWidth: element.props.minWidth,
|
|
101
|
+
maxWidth: element.props.maxWidth,
|
|
102
|
+
minHeight: element.props.minHeight,
|
|
103
|
+
maxHeight: element.props.maxHeight,
|
|
91
104
|
opacity: element.props.opacity,
|
|
105
|
+
overflow: element.props.overflow,
|
|
92
106
|
margin: element.props.margin,
|
|
93
107
|
marginHorizontal: element.props.marginHorizontal,
|
|
94
108
|
marginVertical: element.props.marginVertical,
|
|
@@ -99,6 +113,9 @@ export const InputElementComponent = ({ element, ctx }: Props): React.ReactEleme
|
|
|
99
113
|
color: element.props.color ?? theme.colors.text.primary,
|
|
100
114
|
fontSize: element.props.fontSize ?? theme.typography.textStyles.body.fontSize,
|
|
101
115
|
fontWeight: element.props.fontWeight as any,
|
|
116
|
+
fontFamily: element.props.fontFamily,
|
|
117
|
+
lineHeight: element.props.lineHeight,
|
|
118
|
+
letterSpacing: element.props.letterSpacing,
|
|
102
119
|
textAlign: element.props.textAlign,
|
|
103
120
|
padding: element.props.padding ?? 12,
|
|
104
121
|
paddingHorizontal: element.props.paddingHorizontal,
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { View, Text, StyleSheet } from "react-native";
|
|
4
4
|
import { BaseBoxProps, BaseBoxPropsSchema } from "./BaseBoxProps";
|
|
5
5
|
import { UIElement } from "../types";
|
|
6
|
-
import { RenderContext } from "./shared";
|
|
6
|
+
import { RenderContext, dim } from "./shared";
|
|
7
7
|
import { getTextStyle } from "../../../Theme/helpers";
|
|
8
8
|
|
|
9
9
|
export type LottieElementProps = BaseBoxProps & {
|
|
@@ -43,9 +43,18 @@ type Props = {
|
|
|
43
43
|
export const LottieElementComponent = ({ element, ctx }: Props): React.ReactElement => {
|
|
44
44
|
const { theme } = ctx;
|
|
45
45
|
const wrapperStyle = {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
flex: element.props.flex,
|
|
47
|
+
flexShrink: element.props.flexShrink,
|
|
48
|
+
flexGrow: element.props.flexGrow,
|
|
49
|
+
alignSelf: element.props.alignSelf,
|
|
50
|
+
width: dim(element.props.width) ?? ("100%" as `${number}%`),
|
|
51
|
+
height: dim(element.props.height ?? 200),
|
|
52
|
+
minWidth: element.props.minWidth,
|
|
53
|
+
maxWidth: element.props.maxWidth,
|
|
54
|
+
minHeight: element.props.minHeight,
|
|
55
|
+
maxHeight: element.props.maxHeight,
|
|
48
56
|
opacity: element.props.opacity,
|
|
57
|
+
backgroundColor: element.props.backgroundColor,
|
|
49
58
|
margin: element.props.margin,
|
|
50
59
|
marginHorizontal: element.props.marginHorizontal,
|
|
51
60
|
marginVertical: element.props.marginVertical,
|