@rocapine/react-native-onboarding-ui 1.23.0 → 1.25.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/UI/Pages/ComposableScreen/Renderer.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/Renderer.js +4 -1
- package/dist/UI/Pages/ComposableScreen/Renderer.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.d.ts +21 -0
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.js +10 -1
- package/dist/UI/Pages/ComposableScreen/elements/BaseBoxProps.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.d.ts +289 -4
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.js +98 -57
- package/dist/UI/Pages/ComposableScreen/elements/ButtonElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/CarouselElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/CarouselElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/CheckboxGroupElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/DatePickerElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/DatePickerElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/IconElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/IconElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ImageElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/ImageElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/InputElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/InputElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/KeyboardAvoidingViewElement.d.ts +98 -0
- package/dist/UI/Pages/ComposableScreen/elements/KeyboardAvoidingViewElement.d.ts.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/KeyboardAvoidingViewElement.js +51 -0
- package/dist/UI/Pages/ComposableScreen/elements/KeyboardAvoidingViewElement.js.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/LottieElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/LottieElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RadioGroupElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/RadioGroupElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RiveElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/RiveElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/SafeAreaViewElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/SafeAreaViewElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ScrollViewElement.d.ts +120 -0
- package/dist/UI/Pages/ComposableScreen/elements/ScrollViewElement.d.ts.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/ScrollViewElement.js +67 -0
- package/dist/UI/Pages/ComposableScreen/elements/ScrollViewElement.js.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/VideoElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/VideoElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/ZStackElement.d.ts +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/ZStackElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/collectDefaults.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/collectDefaults.js +2 -0
- package/dist/UI/Pages/ComposableScreen/elements/collectDefaults.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.js +8 -0
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/types.d.ts +18 -0
- package/dist/UI/Pages/ComposableScreen/types.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/types.js +51 -1
- package/dist/UI/Pages/ComposableScreen/types.js.map +1 -1
- package/package.json +1 -1
- package/src/UI/Pages/ComposableScreen/Renderer.tsx +16 -8
- package/src/UI/Pages/ComposableScreen/elements/BaseBoxProps.ts +20 -0
- package/src/UI/Pages/ComposableScreen/elements/ButtonElement.tsx +169 -69
- package/src/UI/Pages/ComposableScreen/elements/KeyboardAvoidingViewElement.tsx +81 -0
- package/src/UI/Pages/ComposableScreen/elements/ScrollViewElement.tsx +115 -0
- package/src/UI/Pages/ComposableScreen/elements/collectDefaults.ts +2 -0
- package/src/UI/Pages/ComposableScreen/elements/renderElement.tsx +10 -0
- package/src/UI/Pages/ComposableScreen/types.ts +83 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/UI/Pages/ComposableScreen/Renderer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAA6C,MAAM,SAAS,CAAC;AAS9F,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;
|
|
1
|
+
{"version":3,"file":"Renderer.d.ts","sourceRoot":"","sources":["../../../../src/UI/Pages/ComposableScreen/Renderer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAA6C,MAAM,SAAS,CAAC;AAS9F,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAwEF,eAAO,MAAM,wBAAwB;;;CAAsE,CAAC"}
|
|
@@ -37,9 +37,12 @@ const ComposableScreenRendererBase = ({ step, onContinue }) => {
|
|
|
37
37
|
customActions,
|
|
38
38
|
renderChildren,
|
|
39
39
|
};
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(OnboardingTemplate_1.OnboardingTemplate, { step: validatedData, onContinue: onContinue, theme: theme, disableTopPadding: true, children: (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { contentContainerStyle: styles.scrollContent, showsVerticalScrollIndicator: false, alwaysBounceVertical: false, keyboardShouldPersistTaps: "handled", children: elements.map((element) => (0, renderElement_1.renderElement)(element, ctx)) }) }));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(OnboardingTemplate_1.OnboardingTemplate, { step: validatedData, onContinue: onContinue, theme: theme, disableTopPadding: true, children: (0, jsx_runtime_1.jsx)(react_native_1.KeyboardAvoidingView, { style: styles.flex, behavior: react_native_1.Platform.OS === "ios" ? "padding" : "height", children: (0, jsx_runtime_1.jsx)(react_native_1.ScrollView, { contentContainerStyle: styles.scrollContent, showsVerticalScrollIndicator: false, alwaysBounceVertical: false, keyboardShouldPersistTaps: "handled", children: elements.map((element) => (0, renderElement_1.renderElement)(element, ctx)) }) }) }));
|
|
41
41
|
};
|
|
42
42
|
const styles = react_native_1.StyleSheet.create({
|
|
43
|
+
flex: {
|
|
44
|
+
flex: 1,
|
|
45
|
+
},
|
|
43
46
|
scrollContent: {
|
|
44
47
|
flexGrow: 1,
|
|
45
48
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Renderer.js","sourceRoot":"","sources":["../../../../src/UI/Pages/ComposableScreen/Renderer.tsx"],"names":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CAAC;KACZ;CACF,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,IAAA,iCAAiB,EAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -38,6 +38,14 @@ export declare const GradientBackgroundSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
38
38
|
position: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
}, z.core.$strip>>;
|
|
40
40
|
}, z.core.$strip>], "type">;
|
|
41
|
+
export type ShadowOffset = {
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
};
|
|
45
|
+
export declare const ShadowOffsetSchema: z.ZodObject<{
|
|
46
|
+
width: z.ZodNumber;
|
|
47
|
+
height: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
41
49
|
export type BaseBoxProps = {
|
|
42
50
|
width?: number | string;
|
|
43
51
|
height?: number | string;
|
|
@@ -62,6 +70,11 @@ export type BaseBoxProps = {
|
|
|
62
70
|
borderWidth?: number;
|
|
63
71
|
borderRadius?: number;
|
|
64
72
|
borderColor?: string;
|
|
73
|
+
shadowColor?: string;
|
|
74
|
+
shadowOffset?: ShadowOffset;
|
|
75
|
+
shadowOpacity?: number;
|
|
76
|
+
shadowRadius?: number;
|
|
77
|
+
elevation?: number;
|
|
65
78
|
};
|
|
66
79
|
export declare const BaseBoxPropsSchema: z.ZodObject<{
|
|
67
80
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -124,5 +137,13 @@ export declare const BaseBoxPropsSchema: z.ZodObject<{
|
|
|
124
137
|
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
125
138
|
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
126
139
|
borderColor: z.ZodOptional<z.ZodString>;
|
|
140
|
+
shadowColor: z.ZodOptional<z.ZodString>;
|
|
141
|
+
shadowOffset: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
width: z.ZodNumber;
|
|
143
|
+
height: z.ZodNumber;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
shadowOpacity: z.ZodOptional<z.ZodNumber>;
|
|
146
|
+
shadowRadius: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
elevation: z.ZodOptional<z.ZodNumber>;
|
|
127
148
|
}, z.core.$strip>;
|
|
128
149
|
//# sourceMappingURL=BaseBoxProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBoxProps.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/BaseBoxProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,YAAY,CAAC;IACnB,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;AAStD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;2BAOnC,CAAC;AAEH,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,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,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6B7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseBoxPropsSchema = exports.GradientBackgroundSchema = void 0;
|
|
3
|
+
exports.BaseBoxPropsSchema = exports.ShadowOffsetSchema = exports.GradientBackgroundSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const GradientEdgeSchema = zod_1.z.enum(["top", "bottom", "left", "right", "topLeft", "topRight", "bottomLeft", "bottomRight"]);
|
|
6
6
|
const GradientStopSchema = zod_1.z.object({
|
|
@@ -15,6 +15,10 @@ exports.GradientBackgroundSchema = zod_1.z.discriminatedUnion("type", [
|
|
|
15
15
|
stops: zod_1.z.array(GradientStopSchema).min(2, "gradient requires at least 2 stops"),
|
|
16
16
|
}),
|
|
17
17
|
]);
|
|
18
|
+
exports.ShadowOffsetSchema = zod_1.z.object({
|
|
19
|
+
width: zod_1.z.number(),
|
|
20
|
+
height: zod_1.z.number(),
|
|
21
|
+
});
|
|
18
22
|
exports.BaseBoxPropsSchema = zod_1.z.object({
|
|
19
23
|
width: zod_1.z.union([zod_1.z.number().min(0), zod_1.z.string()]).optional(),
|
|
20
24
|
height: zod_1.z.union([zod_1.z.number().min(0), zod_1.z.string()]).optional(),
|
|
@@ -39,5 +43,10 @@ exports.BaseBoxPropsSchema = zod_1.z.object({
|
|
|
39
43
|
borderWidth: zod_1.z.number().min(0).optional(),
|
|
40
44
|
borderRadius: zod_1.z.number().min(0).optional(),
|
|
41
45
|
borderColor: zod_1.z.string().optional(),
|
|
46
|
+
shadowColor: zod_1.z.string().optional(),
|
|
47
|
+
shadowOffset: exports.ShadowOffsetSchema.optional(),
|
|
48
|
+
shadowOpacity: zod_1.z.number().min(0).max(1).optional(),
|
|
49
|
+
shadowRadius: zod_1.z.number().min(0).optional(),
|
|
50
|
+
elevation: zod_1.z.number().min(0).optional(),
|
|
42
51
|
});
|
|
43
52
|
//# sourceMappingURL=BaseBoxProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBoxProps.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/BaseBoxProps.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AA0BxB,MAAM,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;AAE1H,MAAM,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnE,OAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,IAAI,EAAE,kBAAkB;QACxB,EAAE,EAAE,kBAAkB;QACtB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,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AQ,EAAE;CACxC,CAAC,CAAC"}
|
|
@@ -69,12 +69,19 @@ export declare const ButtonActionSchema: z.ZodUnion<readonly [z.ZodLiteral<"cont
|
|
|
69
69
|
float: "float";
|
|
70
70
|
}>>;
|
|
71
71
|
}, z.core.$strip>]>;
|
|
72
|
+
type ButtonOverridableProps = BaseBoxProps & {
|
|
73
|
+
variant?: "filled" | "outlined" | "ghost";
|
|
74
|
+
backgroundColor?: string;
|
|
75
|
+
color?: string;
|
|
76
|
+
fontSize?: number;
|
|
77
|
+
fontWeight?: string;
|
|
78
|
+
fontFamily?: string | "inherit";
|
|
79
|
+
fontStyle?: "normal" | "italic";
|
|
80
|
+
textAlign?: "left" | "center" | "right";
|
|
81
|
+
};
|
|
82
|
+
export type ButtonStyleOverride = Partial<ButtonOverridableProps>;
|
|
72
83
|
export type ButtonElementProps = BaseBoxProps & {
|
|
73
84
|
label: string;
|
|
74
|
-
/**
|
|
75
|
-
* Ordered list of actions to run on press. Sequential, await async handlers,
|
|
76
|
-
* abort on error, `"continue"` is terminal.
|
|
77
|
-
*/
|
|
78
85
|
actions?: ButtonAction[];
|
|
79
86
|
/** @deprecated Use `actions` instead. */
|
|
80
87
|
action?: "continue";
|
|
@@ -87,9 +94,102 @@ export type ButtonElementProps = BaseBoxProps & {
|
|
|
87
94
|
fontStyle?: "normal" | "italic";
|
|
88
95
|
textAlign?: "left" | "center" | "right";
|
|
89
96
|
disabledWhen?: LeafCondition | ConditionGroup;
|
|
97
|
+
/** @deprecated Use `disabledStyle.backgroundColor`. */
|
|
90
98
|
disabledBackgroundColor?: string;
|
|
99
|
+
/** @deprecated Use `disabledStyle.color`. */
|
|
91
100
|
disabledColor?: string;
|
|
101
|
+
pressedStyle?: ButtonStyleOverride;
|
|
102
|
+
disabledStyle?: ButtonStyleOverride;
|
|
103
|
+
transitionDurationMs?: number;
|
|
92
104
|
};
|
|
105
|
+
export declare const ButtonStyleOverrideSchema: z.ZodObject<{
|
|
106
|
+
width: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
107
|
+
height: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
108
|
+
minWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
109
|
+
maxWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
110
|
+
minHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
111
|
+
maxHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
112
|
+
flex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
113
|
+
flexShrink: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
114
|
+
flexGrow: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
115
|
+
alignSelf: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
116
|
+
auto: "auto";
|
|
117
|
+
center: "center";
|
|
118
|
+
"flex-start": "flex-start";
|
|
119
|
+
"flex-end": "flex-end";
|
|
120
|
+
stretch: "stretch";
|
|
121
|
+
baseline: "baseline";
|
|
122
|
+
}>>>;
|
|
123
|
+
opacity: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
124
|
+
backgroundGradient: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
125
|
+
type: z.ZodLiteral<"linear">;
|
|
126
|
+
from: z.ZodEnum<{
|
|
127
|
+
left: "left";
|
|
128
|
+
right: "right";
|
|
129
|
+
top: "top";
|
|
130
|
+
bottom: "bottom";
|
|
131
|
+
topLeft: "topLeft";
|
|
132
|
+
topRight: "topRight";
|
|
133
|
+
bottomLeft: "bottomLeft";
|
|
134
|
+
bottomRight: "bottomRight";
|
|
135
|
+
}>;
|
|
136
|
+
to: z.ZodEnum<{
|
|
137
|
+
left: "left";
|
|
138
|
+
right: "right";
|
|
139
|
+
top: "top";
|
|
140
|
+
bottom: "bottom";
|
|
141
|
+
topLeft: "topLeft";
|
|
142
|
+
topRight: "topRight";
|
|
143
|
+
bottomLeft: "bottomLeft";
|
|
144
|
+
bottomRight: "bottomRight";
|
|
145
|
+
}>;
|
|
146
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
147
|
+
color: z.ZodString;
|
|
148
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
}, z.core.$strip>], "type">>>;
|
|
151
|
+
overflow: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
visible: "visible";
|
|
153
|
+
hidden: "hidden";
|
|
154
|
+
scroll: "scroll";
|
|
155
|
+
}>>>;
|
|
156
|
+
margin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
157
|
+
marginHorizontal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
158
|
+
marginVertical: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
159
|
+
padding: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
160
|
+
paddingHorizontal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
161
|
+
paddingVertical: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
162
|
+
borderWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
163
|
+
borderRadius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
164
|
+
borderColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
165
|
+
shadowColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
166
|
+
shadowOffset: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
167
|
+
width: z.ZodNumber;
|
|
168
|
+
height: z.ZodNumber;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
170
|
+
shadowOpacity: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
171
|
+
shadowRadius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
172
|
+
elevation: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
173
|
+
variant: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
174
|
+
filled: "filled";
|
|
175
|
+
outlined: "outlined";
|
|
176
|
+
ghost: "ghost";
|
|
177
|
+
}>>>;
|
|
178
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
179
|
+
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
180
|
+
fontSize: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
181
|
+
fontWeight: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
182
|
+
fontFamily: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
183
|
+
fontStyle: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
normal: "normal";
|
|
185
|
+
italic: "italic";
|
|
186
|
+
}>>>;
|
|
187
|
+
textAlign: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
left: "left";
|
|
189
|
+
right: "right";
|
|
190
|
+
center: "center";
|
|
191
|
+
}>>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
93
193
|
export declare const ButtonElementPropsSchema: z.ZodObject<{
|
|
94
194
|
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
95
195
|
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -150,6 +250,14 @@ export declare const ButtonElementPropsSchema: z.ZodObject<{
|
|
|
150
250
|
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
151
251
|
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
152
252
|
borderColor: z.ZodOptional<z.ZodString>;
|
|
253
|
+
shadowColor: z.ZodOptional<z.ZodString>;
|
|
254
|
+
shadowOffset: z.ZodOptional<z.ZodObject<{
|
|
255
|
+
width: z.ZodNumber;
|
|
256
|
+
height: z.ZodNumber;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
shadowOpacity: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
shadowRadius: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
elevation: z.ZodOptional<z.ZodNumber>;
|
|
153
261
|
label: z.ZodString;
|
|
154
262
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"continue">, z.ZodObject<{
|
|
155
263
|
type: z.ZodLiteral<"custom">;
|
|
@@ -209,6 +317,183 @@ export declare const ButtonElementPropsSchema: z.ZodObject<{
|
|
|
209
317
|
}, z.core.$strip>, z.ZodType<ConditionGroup, unknown, z.core.$ZodTypeInternals<ConditionGroup, unknown>>]>>;
|
|
210
318
|
disabledBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
211
319
|
disabledColor: z.ZodOptional<z.ZodString>;
|
|
320
|
+
pressedStyle: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
width: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
322
|
+
height: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
323
|
+
minWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
324
|
+
maxWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
325
|
+
minHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
326
|
+
maxHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
327
|
+
flex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
328
|
+
flexShrink: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
329
|
+
flexGrow: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
330
|
+
alignSelf: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
331
|
+
auto: "auto";
|
|
332
|
+
center: "center";
|
|
333
|
+
"flex-start": "flex-start";
|
|
334
|
+
"flex-end": "flex-end";
|
|
335
|
+
stretch: "stretch";
|
|
336
|
+
baseline: "baseline";
|
|
337
|
+
}>>>;
|
|
338
|
+
opacity: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
339
|
+
backgroundGradient: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
340
|
+
type: z.ZodLiteral<"linear">;
|
|
341
|
+
from: z.ZodEnum<{
|
|
342
|
+
left: "left";
|
|
343
|
+
right: "right";
|
|
344
|
+
top: "top";
|
|
345
|
+
bottom: "bottom";
|
|
346
|
+
topLeft: "topLeft";
|
|
347
|
+
topRight: "topRight";
|
|
348
|
+
bottomLeft: "bottomLeft";
|
|
349
|
+
bottomRight: "bottomRight";
|
|
350
|
+
}>;
|
|
351
|
+
to: z.ZodEnum<{
|
|
352
|
+
left: "left";
|
|
353
|
+
right: "right";
|
|
354
|
+
top: "top";
|
|
355
|
+
bottom: "bottom";
|
|
356
|
+
topLeft: "topLeft";
|
|
357
|
+
topRight: "topRight";
|
|
358
|
+
bottomLeft: "bottomLeft";
|
|
359
|
+
bottomRight: "bottomRight";
|
|
360
|
+
}>;
|
|
361
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
362
|
+
color: z.ZodString;
|
|
363
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
}, z.core.$strip>], "type">>>;
|
|
366
|
+
overflow: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
367
|
+
visible: "visible";
|
|
368
|
+
hidden: "hidden";
|
|
369
|
+
scroll: "scroll";
|
|
370
|
+
}>>>;
|
|
371
|
+
margin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
372
|
+
marginHorizontal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
373
|
+
marginVertical: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
374
|
+
padding: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
375
|
+
paddingHorizontal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
376
|
+
paddingVertical: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
377
|
+
borderWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
378
|
+
borderRadius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
379
|
+
borderColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
380
|
+
shadowColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
381
|
+
shadowOffset: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
382
|
+
width: z.ZodNumber;
|
|
383
|
+
height: z.ZodNumber;
|
|
384
|
+
}, z.core.$strip>>>;
|
|
385
|
+
shadowOpacity: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
386
|
+
shadowRadius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
387
|
+
elevation: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
388
|
+
variant: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
389
|
+
filled: "filled";
|
|
390
|
+
outlined: "outlined";
|
|
391
|
+
ghost: "ghost";
|
|
392
|
+
}>>>;
|
|
393
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
394
|
+
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
395
|
+
fontSize: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
396
|
+
fontWeight: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
397
|
+
fontFamily: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
398
|
+
fontStyle: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
399
|
+
normal: "normal";
|
|
400
|
+
italic: "italic";
|
|
401
|
+
}>>>;
|
|
402
|
+
textAlign: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
403
|
+
left: "left";
|
|
404
|
+
right: "right";
|
|
405
|
+
center: "center";
|
|
406
|
+
}>>>;
|
|
407
|
+
}, z.core.$strip>>;
|
|
408
|
+
disabledStyle: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
width: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
410
|
+
height: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
411
|
+
minWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
412
|
+
maxWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
413
|
+
minHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
414
|
+
maxHeight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
415
|
+
flex: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
416
|
+
flexShrink: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
417
|
+
flexGrow: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
418
|
+
alignSelf: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
419
|
+
auto: "auto";
|
|
420
|
+
center: "center";
|
|
421
|
+
"flex-start": "flex-start";
|
|
422
|
+
"flex-end": "flex-end";
|
|
423
|
+
stretch: "stretch";
|
|
424
|
+
baseline: "baseline";
|
|
425
|
+
}>>>;
|
|
426
|
+
opacity: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
427
|
+
backgroundGradient: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
428
|
+
type: z.ZodLiteral<"linear">;
|
|
429
|
+
from: z.ZodEnum<{
|
|
430
|
+
left: "left";
|
|
431
|
+
right: "right";
|
|
432
|
+
top: "top";
|
|
433
|
+
bottom: "bottom";
|
|
434
|
+
topLeft: "topLeft";
|
|
435
|
+
topRight: "topRight";
|
|
436
|
+
bottomLeft: "bottomLeft";
|
|
437
|
+
bottomRight: "bottomRight";
|
|
438
|
+
}>;
|
|
439
|
+
to: z.ZodEnum<{
|
|
440
|
+
left: "left";
|
|
441
|
+
right: "right";
|
|
442
|
+
top: "top";
|
|
443
|
+
bottom: "bottom";
|
|
444
|
+
topLeft: "topLeft";
|
|
445
|
+
topRight: "topRight";
|
|
446
|
+
bottomLeft: "bottomLeft";
|
|
447
|
+
bottomRight: "bottomRight";
|
|
448
|
+
}>;
|
|
449
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
450
|
+
color: z.ZodString;
|
|
451
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
}, z.core.$strip>], "type">>>;
|
|
454
|
+
overflow: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
455
|
+
visible: "visible";
|
|
456
|
+
hidden: "hidden";
|
|
457
|
+
scroll: "scroll";
|
|
458
|
+
}>>>;
|
|
459
|
+
margin: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
460
|
+
marginHorizontal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
461
|
+
marginVertical: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
462
|
+
padding: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
463
|
+
paddingHorizontal: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
464
|
+
paddingVertical: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
465
|
+
borderWidth: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
466
|
+
borderRadius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
467
|
+
borderColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
468
|
+
shadowColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
469
|
+
shadowOffset: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
470
|
+
width: z.ZodNumber;
|
|
471
|
+
height: z.ZodNumber;
|
|
472
|
+
}, z.core.$strip>>>;
|
|
473
|
+
shadowOpacity: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
474
|
+
shadowRadius: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
475
|
+
elevation: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
476
|
+
variant: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
477
|
+
filled: "filled";
|
|
478
|
+
outlined: "outlined";
|
|
479
|
+
ghost: "ghost";
|
|
480
|
+
}>>>;
|
|
481
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
482
|
+
color: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
483
|
+
fontSize: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
484
|
+
fontWeight: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
485
|
+
fontFamily: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
486
|
+
fontStyle: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
487
|
+
normal: "normal";
|
|
488
|
+
italic: "italic";
|
|
489
|
+
}>>>;
|
|
490
|
+
textAlign: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
491
|
+
left: "left";
|
|
492
|
+
right: "right";
|
|
493
|
+
center: "center";
|
|
494
|
+
}>>>;
|
|
495
|
+
}, z.core.$strip>>;
|
|
496
|
+
transitionDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
212
497
|
}, z.core.$strip>;
|
|
213
498
|
type ButtonUIElement = Extract<UIElement, {
|
|
214
499
|
type: "Button";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/ButtonElement.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ButtonElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI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