@rocapine/react-native-onboarding-ui 1.32.0 → 1.33.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.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/RichTextElement.d.ts +305 -0
- package/dist/UI/Pages/ComposableScreen/elements/RichTextElement.d.ts.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/RichTextElement.js +133 -0
- package/dist/UI/Pages/ComposableScreen/elements/RichTextElement.js.map +1 -0
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.d.ts +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/StackElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.d.ts +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.js +26 -12
- package/dist/UI/Pages/ComposableScreen/elements/TextElement.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/renderElement.d.ts +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 +12 -1
- package/dist/UI/Pages/ComposableScreen/elements/shared.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/elements/shared.js +6 -1
- package/dist/UI/Pages/ComposableScreen/elements/shared.js.map +1 -1
- package/dist/UI/Pages/ComposableScreen/types.d.ts +11 -0
- package/dist/UI/Pages/ComposableScreen/types.d.ts.map +1 -1
- package/dist/UI/Pages/ComposableScreen/types.js +15 -2
- package/dist/UI/Pages/ComposableScreen/types.js.map +1 -1
- package/package.json +1 -1
- package/src/UI/Pages/ComposableScreen/Renderer.tsx +1 -1
- package/src/UI/Pages/ComposableScreen/elements/RichTextElement.tsx +177 -0
- package/src/UI/Pages/ComposableScreen/elements/StackElement.tsx +1 -1
- package/src/UI/Pages/ComposableScreen/elements/TextElement.tsx +21 -11
- package/src/UI/Pages/ComposableScreen/elements/renderElement.tsx +6 -1
- package/src/UI/Pages/ComposableScreen/elements/shared.ts +19 -1
- package/src/UI/Pages/ComposableScreen/types.ts +25 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Renderer.js","sourceRoot":"","sources":["../../../../src/UI/Pages/ComposableScreen/Renderer.tsx"],"names":[],"mappings":";;;;AAAA,iCAAyD;AACzD,+CAAgF;AAChF,+EAAyG;AACzG,mCAA8F;AAC9F,uDAAwD;AACxD,2EAAwE;AACxE,0FAA+G;AAC/G,mDAAgD;AAEhD,4DAAyD;AACzD,gEAAoE;AAOpE,MAAM,4BAA4B,GAAG,CAAC,EAAE,IAAI,EAAE,UAAU,EAAgB,EAAE,EAAE;IAC1E,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,mBAAQ,GAAE,CAAC;IAC7B,MAAM,aAAa,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IACxF,MAAM,EAAE,QAAQ,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC;IAC3C,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,GAAG,IAAA,kBAAU,EAAC,sDAAyB,CAAC,CAAC;IAC7F,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,GAAG,IAAA,kBAAU,EAAC,mDAAuB,CAAC,CAAC;IAEhG,MAAM,kBAAkB,GAAG,IAAA,mBAAW,EACpC,CAAC,GAAW,EAAE,KAA8B,EAAE,EAAE;QAC9C,qBAAqB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAClC,mBAAmB,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CA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BAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YACrB,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,6BAAa,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC,GAClD,GACc,GACJ,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,yBAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,IAAA,iCAAiB,EAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { BaseBoxProps } from "./BaseBoxProps";
|
|
4
|
+
import { UIElement } from "../types";
|
|
5
|
+
import { RenderContext } from "./shared";
|
|
6
|
+
export type RichTextElementProps = BaseBoxProps & {
|
|
7
|
+
gap?: number;
|
|
8
|
+
alignItems?: "flex-start" | "center" | "flex-end" | "baseline" | "stretch";
|
|
9
|
+
justifyContent?: "flex-start" | "center" | "flex-end" | "space-between" | "space-around";
|
|
10
|
+
flexWrap?: "wrap" | "nowrap";
|
|
11
|
+
fontSize?: number;
|
|
12
|
+
fontWeight?: string;
|
|
13
|
+
fontFamily?: string | "inherit";
|
|
14
|
+
fontStyle?: "normal" | "italic";
|
|
15
|
+
color?: string;
|
|
16
|
+
textAlign?: "left" | "center" | "right";
|
|
17
|
+
letterSpacing?: number;
|
|
18
|
+
lineHeight?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const RichTextElementPropsSchema: z.ZodObject<{
|
|
21
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
22
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
23
|
+
minWidth: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
minHeight: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
flex: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
flexShrink: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
flexGrow: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
aspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
alignSelf: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
auto: "auto";
|
|
33
|
+
center: "center";
|
|
34
|
+
"flex-start": "flex-start";
|
|
35
|
+
"flex-end": "flex-end";
|
|
36
|
+
stretch: "stretch";
|
|
37
|
+
baseline: "baseline";
|
|
38
|
+
}>>;
|
|
39
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
41
|
+
backgroundGradient: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"linear">;
|
|
43
|
+
from: z.ZodEnum<{
|
|
44
|
+
left: "left";
|
|
45
|
+
right: "right";
|
|
46
|
+
top: "top";
|
|
47
|
+
bottom: "bottom";
|
|
48
|
+
topLeft: "topLeft";
|
|
49
|
+
topRight: "topRight";
|
|
50
|
+
bottomLeft: "bottomLeft";
|
|
51
|
+
bottomRight: "bottomRight";
|
|
52
|
+
}>;
|
|
53
|
+
to: z.ZodEnum<{
|
|
54
|
+
left: "left";
|
|
55
|
+
right: "right";
|
|
56
|
+
top: "top";
|
|
57
|
+
bottom: "bottom";
|
|
58
|
+
topLeft: "topLeft";
|
|
59
|
+
topRight: "topRight";
|
|
60
|
+
bottomLeft: "bottomLeft";
|
|
61
|
+
bottomRight: "bottomRight";
|
|
62
|
+
}>;
|
|
63
|
+
stops: z.ZodArray<z.ZodObject<{
|
|
64
|
+
color: z.ZodString;
|
|
65
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>], "type">>;
|
|
68
|
+
overflow: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
visible: "visible";
|
|
70
|
+
hidden: "hidden";
|
|
71
|
+
scroll: "scroll";
|
|
72
|
+
}>>;
|
|
73
|
+
margin: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
marginHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
marginVertical: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
padding: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
paddingHorizontal: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
paddingVertical: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
borderWidth: z.ZodOptional<z.ZodNumber>;
|
|
80
|
+
borderRadius: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
|
82
|
+
shadowColor: z.ZodOptional<z.ZodString>;
|
|
83
|
+
shadowOffset: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
width: z.ZodNumber;
|
|
85
|
+
height: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
shadowOpacity: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
shadowRadius: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
elevation: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
transform: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
translateX: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
translateY: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
scaleX: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
scaleY: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
rotate: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
animation: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
entering: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
preset: z.ZodEnum<{
|
|
101
|
+
FadeIn: "FadeIn";
|
|
102
|
+
FadeInUp: "FadeInUp";
|
|
103
|
+
FadeInDown: "FadeInDown";
|
|
104
|
+
FadeInLeft: "FadeInLeft";
|
|
105
|
+
FadeInRight: "FadeInRight";
|
|
106
|
+
SlideInUp: "SlideInUp";
|
|
107
|
+
SlideInDown: "SlideInDown";
|
|
108
|
+
SlideInLeft: "SlideInLeft";
|
|
109
|
+
SlideInRight: "SlideInRight";
|
|
110
|
+
ZoomIn: "ZoomIn";
|
|
111
|
+
ZoomInRotate: "ZoomInRotate";
|
|
112
|
+
ZoomInUp: "ZoomInUp";
|
|
113
|
+
ZoomInDown: "ZoomInDown";
|
|
114
|
+
ZoomInLeft: "ZoomInLeft";
|
|
115
|
+
ZoomInRight: "ZoomInRight";
|
|
116
|
+
ZoomInEasyUp: "ZoomInEasyUp";
|
|
117
|
+
ZoomInEasyDown: "ZoomInEasyDown";
|
|
118
|
+
BounceIn: "BounceIn";
|
|
119
|
+
BounceInUp: "BounceInUp";
|
|
120
|
+
BounceInDown: "BounceInDown";
|
|
121
|
+
BounceInLeft: "BounceInLeft";
|
|
122
|
+
BounceInRight: "BounceInRight";
|
|
123
|
+
FlipInXUp: "FlipInXUp";
|
|
124
|
+
FlipInYLeft: "FlipInYLeft";
|
|
125
|
+
FlipInXDown: "FlipInXDown";
|
|
126
|
+
FlipInYRight: "FlipInYRight";
|
|
127
|
+
FlipInEasyX: "FlipInEasyX";
|
|
128
|
+
FlipInEasyY: "FlipInEasyY";
|
|
129
|
+
StretchInX: "StretchInX";
|
|
130
|
+
StretchInY: "StretchInY";
|
|
131
|
+
RotateInDownLeft: "RotateInDownLeft";
|
|
132
|
+
RotateInDownRight: "RotateInDownRight";
|
|
133
|
+
RotateInUpLeft: "RotateInUpLeft";
|
|
134
|
+
RotateInUpRight: "RotateInUpRight";
|
|
135
|
+
RollInLeft: "RollInLeft";
|
|
136
|
+
RollInRight: "RollInRight";
|
|
137
|
+
PinwheelIn: "PinwheelIn";
|
|
138
|
+
LightSpeedInLeft: "LightSpeedInLeft";
|
|
139
|
+
LightSpeedInRight: "LightSpeedInRight";
|
|
140
|
+
}>;
|
|
141
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
easing: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
linear: "linear";
|
|
145
|
+
"ease-in": "ease-in";
|
|
146
|
+
"ease-out": "ease-out";
|
|
147
|
+
"ease-in-out": "ease-in-out";
|
|
148
|
+
}>>;
|
|
149
|
+
spring: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
damping: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
stiffness: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
mass: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
exiting: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
preset: z.ZodEnum<{
|
|
157
|
+
FadeOut: "FadeOut";
|
|
158
|
+
FadeOutUp: "FadeOutUp";
|
|
159
|
+
FadeOutDown: "FadeOutDown";
|
|
160
|
+
FadeOutLeft: "FadeOutLeft";
|
|
161
|
+
FadeOutRight: "FadeOutRight";
|
|
162
|
+
SlideOutUp: "SlideOutUp";
|
|
163
|
+
SlideOutDown: "SlideOutDown";
|
|
164
|
+
SlideOutLeft: "SlideOutLeft";
|
|
165
|
+
SlideOutRight: "SlideOutRight";
|
|
166
|
+
ZoomOut: "ZoomOut";
|
|
167
|
+
ZoomOutRotate: "ZoomOutRotate";
|
|
168
|
+
ZoomOutUp: "ZoomOutUp";
|
|
169
|
+
ZoomOutDown: "ZoomOutDown";
|
|
170
|
+
ZoomOutLeft: "ZoomOutLeft";
|
|
171
|
+
ZoomOutRight: "ZoomOutRight";
|
|
172
|
+
ZoomOutEasyUp: "ZoomOutEasyUp";
|
|
173
|
+
ZoomOutEasyDown: "ZoomOutEasyDown";
|
|
174
|
+
BounceOut: "BounceOut";
|
|
175
|
+
BounceOutUp: "BounceOutUp";
|
|
176
|
+
BounceOutDown: "BounceOutDown";
|
|
177
|
+
BounceOutLeft: "BounceOutLeft";
|
|
178
|
+
BounceOutRight: "BounceOutRight";
|
|
179
|
+
FlipOutXUp: "FlipOutXUp";
|
|
180
|
+
FlipOutYLeft: "FlipOutYLeft";
|
|
181
|
+
FlipOutXDown: "FlipOutXDown";
|
|
182
|
+
FlipOutYRight: "FlipOutYRight";
|
|
183
|
+
FlipOutEasyX: "FlipOutEasyX";
|
|
184
|
+
FlipOutEasyY: "FlipOutEasyY";
|
|
185
|
+
StretchOutX: "StretchOutX";
|
|
186
|
+
StretchOutY: "StretchOutY";
|
|
187
|
+
RotateOutDownLeft: "RotateOutDownLeft";
|
|
188
|
+
RotateOutDownRight: "RotateOutDownRight";
|
|
189
|
+
RotateOutUpLeft: "RotateOutUpLeft";
|
|
190
|
+
RotateOutUpRight: "RotateOutUpRight";
|
|
191
|
+
RollOutLeft: "RollOutLeft";
|
|
192
|
+
RollOutRight: "RollOutRight";
|
|
193
|
+
PinwheelOut: "PinwheelOut";
|
|
194
|
+
LightSpeedOutLeft: "LightSpeedOutLeft";
|
|
195
|
+
LightSpeedOutRight: "LightSpeedOutRight";
|
|
196
|
+
}>;
|
|
197
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
easing: z.ZodOptional<z.ZodEnum<{
|
|
200
|
+
linear: "linear";
|
|
201
|
+
"ease-in": "ease-in";
|
|
202
|
+
"ease-out": "ease-out";
|
|
203
|
+
"ease-in-out": "ease-in-out";
|
|
204
|
+
}>>;
|
|
205
|
+
spring: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
damping: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
stiffness: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
mass: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
layout: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
preset: z.ZodEnum<{
|
|
213
|
+
LinearTransition: "LinearTransition";
|
|
214
|
+
FadingTransition: "FadingTransition";
|
|
215
|
+
SequencedTransition: "SequencedTransition";
|
|
216
|
+
JumpingTransition: "JumpingTransition";
|
|
217
|
+
CurvedTransition: "CurvedTransition";
|
|
218
|
+
EntryExitTransition: "EntryExitTransition";
|
|
219
|
+
}>;
|
|
220
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
spring: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
damping: z.ZodOptional<z.ZodNumber>;
|
|
223
|
+
stiffness: z.ZodOptional<z.ZodNumber>;
|
|
224
|
+
mass: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
}, z.core.$strip>>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
effect: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
preset: z.ZodEnum<{
|
|
229
|
+
rotate: "rotate";
|
|
230
|
+
pulse: "pulse";
|
|
231
|
+
fade: "fade";
|
|
232
|
+
shimmer: "shimmer";
|
|
233
|
+
bounce: "bounce";
|
|
234
|
+
}>;
|
|
235
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
237
|
+
easing: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
linear: "linear";
|
|
239
|
+
"ease-in": "ease-in";
|
|
240
|
+
"ease-out": "ease-out";
|
|
241
|
+
"ease-in-out": "ease-in-out";
|
|
242
|
+
}>>;
|
|
243
|
+
loop: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
minScale: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
maxScale: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
minOpacity: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
degrees: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
gap: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
alignItems: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
center: "center";
|
|
253
|
+
"flex-start": "flex-start";
|
|
254
|
+
"flex-end": "flex-end";
|
|
255
|
+
stretch: "stretch";
|
|
256
|
+
baseline: "baseline";
|
|
257
|
+
}>>;
|
|
258
|
+
justifyContent: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
center: "center";
|
|
260
|
+
"flex-start": "flex-start";
|
|
261
|
+
"flex-end": "flex-end";
|
|
262
|
+
"space-between": "space-between";
|
|
263
|
+
"space-around": "space-around";
|
|
264
|
+
}>>;
|
|
265
|
+
flexWrap: z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
wrap: "wrap";
|
|
267
|
+
nowrap: "nowrap";
|
|
268
|
+
}>>;
|
|
269
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
fontWeight: z.ZodOptional<z.ZodString>;
|
|
271
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
272
|
+
fontStyle: z.ZodOptional<z.ZodEnum<{
|
|
273
|
+
normal: "normal";
|
|
274
|
+
italic: "italic";
|
|
275
|
+
}>>;
|
|
276
|
+
color: z.ZodOptional<z.ZodString>;
|
|
277
|
+
textAlign: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
left: "left";
|
|
279
|
+
right: "right";
|
|
280
|
+
center: "center";
|
|
281
|
+
}>>;
|
|
282
|
+
letterSpacing: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
lineHeight: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
type RichTextUIElement = Extract<UIElement, {
|
|
286
|
+
type: "RichText";
|
|
287
|
+
}>;
|
|
288
|
+
type Props = {
|
|
289
|
+
element: RichTextUIElement;
|
|
290
|
+
ctx: RenderContext;
|
|
291
|
+
parentType?: "XStack" | "YStack" | "ZStack" | "RichText";
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Wrapping flex row of child `Text` elements. Plain-text children are split into
|
|
295
|
+
* per-word flex items so text wraps word-by-word (like a paragraph); box-styled
|
|
296
|
+
* children render as atomic "chips" (padded/rounded/rotated pills) that honor
|
|
297
|
+
* their own box props, `renderWhen`, `expression`, and motion. The result is a
|
|
298
|
+
* title where chips sit inline with naturally-wrapping words.
|
|
299
|
+
*
|
|
300
|
+
* The container's text-style props are published via `RichTextStyleContext` so
|
|
301
|
+
* every child `Text` inherits them as defaults (child overrides win).
|
|
302
|
+
*/
|
|
303
|
+
export declare const RichTextElementComponent: ({ element, ctx, parentType }: Props) => React.ReactElement;
|
|
304
|
+
export {};
|
|
305
|
+
//# sourceMappingURL=RichTextElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/RichTextElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,aAAa,EAA8D,MAAM,UAAU,CAAC;AAMrG,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG;IAChD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3E,cAAc,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC;IAC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+
exports.RichTextElementComponent = exports.RichTextElementPropsSchema = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const react_native_onboarding_1 = require("@rocapine/react-native-onboarding");
|
|
7
|
+
const BaseBoxProps_1 = require("./BaseBoxProps");
|
|
8
|
+
const shared_1 = require("./shared");
|
|
9
|
+
const GradientBox_1 = require("./GradientBox");
|
|
10
|
+
exports.RichTextElementPropsSchema = BaseBoxProps_1.BaseBoxPropsSchema.extend({
|
|
11
|
+
gap: zod_1.z.number().optional(),
|
|
12
|
+
alignItems: zod_1.z.enum(["flex-start", "center", "flex-end", "baseline", "stretch"]).optional(),
|
|
13
|
+
justifyContent: zod_1.z.enum(["flex-start", "center", "flex-end", "space-between", "space-around"]).optional(),
|
|
14
|
+
flexWrap: zod_1.z.enum(["wrap", "nowrap"]).optional(),
|
|
15
|
+
fontSize: zod_1.z.number().optional(),
|
|
16
|
+
fontWeight: zod_1.z.string().optional(),
|
|
17
|
+
fontFamily: zod_1.z.string().optional(),
|
|
18
|
+
fontStyle: zod_1.z.enum(["normal", "italic"]).optional(),
|
|
19
|
+
color: zod_1.z.string().optional(),
|
|
20
|
+
textAlign: zod_1.z.enum(["left", "center", "right"]).optional(),
|
|
21
|
+
letterSpacing: zod_1.z.number().optional(),
|
|
22
|
+
lineHeight: zod_1.z.number().optional(),
|
|
23
|
+
});
|
|
24
|
+
// A plain-text child (no box styling, no motion) is split into one flex item per
|
|
25
|
+
// word so the row wraps word-by-word like real text — the chip pattern from
|
|
26
|
+
// host apps (parseTitleWithChips). A child carrying box styling (backgroundColor
|
|
27
|
+
// / borderRadius / border / padding) or motion is a "chip" and stays atomic so
|
|
28
|
+
// its box renders as a single rounded unit.
|
|
29
|
+
const isFlowingText = (child) => {
|
|
30
|
+
const p = child.props;
|
|
31
|
+
return (typeof p.content === "string" &&
|
|
32
|
+
p.backgroundColor == null &&
|
|
33
|
+
p.backgroundGradient == null &&
|
|
34
|
+
p.borderRadius == null &&
|
|
35
|
+
p.borderWidth == null &&
|
|
36
|
+
p.padding == null &&
|
|
37
|
+
p.paddingHorizontal == null &&
|
|
38
|
+
p.paddingVertical == null &&
|
|
39
|
+
// margin / explicit size would be applied to *every* word if split, so a
|
|
40
|
+
// child carrying any of them is treated as an atomic chip too.
|
|
41
|
+
p.margin == null &&
|
|
42
|
+
p.marginHorizontal == null &&
|
|
43
|
+
p.marginVertical == null &&
|
|
44
|
+
p.width == null &&
|
|
45
|
+
p.height == null &&
|
|
46
|
+
p.minWidth == null &&
|
|
47
|
+
p.maxWidth == null &&
|
|
48
|
+
p.minHeight == null &&
|
|
49
|
+
p.maxHeight == null &&
|
|
50
|
+
p.animation == null &&
|
|
51
|
+
p.transform == null);
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Wrapping flex row of child `Text` elements. Plain-text children are split into
|
|
55
|
+
* per-word flex items so text wraps word-by-word (like a paragraph); box-styled
|
|
56
|
+
* children render as atomic "chips" (padded/rounded/rotated pills) that honor
|
|
57
|
+
* their own box props, `renderWhen`, `expression`, and motion. The result is a
|
|
58
|
+
* title where chips sit inline with naturally-wrapping words.
|
|
59
|
+
*
|
|
60
|
+
* The container's text-style props are published via `RichTextStyleContext` so
|
|
61
|
+
* every child `Text` inherits them as defaults (child overrides win).
|
|
62
|
+
*/
|
|
63
|
+
const RichTextElementComponent = ({ element, ctx, parentType }) => {
|
|
64
|
+
var _a, _b, _c, _d;
|
|
65
|
+
const p = element.props;
|
|
66
|
+
const inheritedTextStyle = {
|
|
67
|
+
fontSize: p.fontSize,
|
|
68
|
+
fontWeight: p.fontWeight,
|
|
69
|
+
fontFamily: p.fontFamily,
|
|
70
|
+
fontStyle: p.fontStyle,
|
|
71
|
+
color: p.color,
|
|
72
|
+
textAlign: p.textAlign,
|
|
73
|
+
letterSpacing: p.letterSpacing,
|
|
74
|
+
lineHeight: p.lineHeight,
|
|
75
|
+
};
|
|
76
|
+
// Expand children into the actual flex items to render: split flowing text into
|
|
77
|
+
// words, keep chips whole. renderWhen is evaluated once per source child here
|
|
78
|
+
// (flowing-text words then render unconditionally); chips keep their renderWhen
|
|
79
|
+
// and are gated by renderElement.
|
|
80
|
+
const flatVars = Object.fromEntries(Object.entries(ctx.variables).map(([k, v]) => [k, v === null || v === void 0 ? void 0 : v.value]));
|
|
81
|
+
const expanded = [];
|
|
82
|
+
for (const child of element.children) {
|
|
83
|
+
if (child.renderWhen && !(0, react_native_onboarding_1.evaluateCondition)(child.renderWhen, flatVars))
|
|
84
|
+
continue;
|
|
85
|
+
if (isFlowingText(child)) {
|
|
86
|
+
const raw = child.props.content;
|
|
87
|
+
const text = child.props.mode === "expression" ? (0, shared_1.interpolate)(raw, ctx.variables) : raw;
|
|
88
|
+
const tokens = text.split(/(\s+)/).filter((t) => t.length > 0);
|
|
89
|
+
tokens.forEach((tok, i) => {
|
|
90
|
+
expanded.push(Object.assign(Object.assign({}, child), { id: `${child.id}-w${i}`, renderWhen: undefined,
|
|
91
|
+
// mode dropped (undefined): content is already interpolated above, and
|
|
92
|
+
// undefined is truer to the schema than the non-enum "plain".
|
|
93
|
+
props: Object.assign(Object.assign({}, child.props), { content: tok, mode: undefined }) }));
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
// Chip: renderWhen already passed above; null it so renderElement doesn't
|
|
98
|
+
// re-evaluate the same condition (symmetry with the word path).
|
|
99
|
+
expanded.push(Object.assign(Object.assign({}, child), { renderWhen: undefined }));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return ((0, jsx_runtime_1.jsx)(GradientBox_1.GradientBox, { gradient: p.backgroundGradient, style: {
|
|
103
|
+
flexDirection: "row",
|
|
104
|
+
flexWrap: (_a = p.flexWrap) !== null && _a !== void 0 ? _a : "wrap",
|
|
105
|
+
gap: p.gap,
|
|
106
|
+
alignItems: (_b = p.alignItems) !== null && _b !== void 0 ? _b : "center",
|
|
107
|
+
justifyContent: (_c = p.justifyContent) !== null && _c !== void 0 ? _c : "center",
|
|
108
|
+
flex: p.flex,
|
|
109
|
+
flexShrink: (_d = p.flexShrink) !== null && _d !== void 0 ? _d : (parentType === "XStack" ? 1 : undefined),
|
|
110
|
+
flexGrow: p.flexGrow,
|
|
111
|
+
alignSelf: p.alignSelf,
|
|
112
|
+
width: (0, shared_1.dim)(p.width),
|
|
113
|
+
height: (0, shared_1.dim)(p.height),
|
|
114
|
+
minWidth: p.minWidth,
|
|
115
|
+
maxWidth: p.maxWidth,
|
|
116
|
+
minHeight: p.minHeight,
|
|
117
|
+
maxHeight: p.maxHeight,
|
|
118
|
+
padding: p.padding,
|
|
119
|
+
paddingHorizontal: p.paddingHorizontal,
|
|
120
|
+
paddingVertical: p.paddingVertical,
|
|
121
|
+
margin: p.margin,
|
|
122
|
+
marginHorizontal: p.marginHorizontal,
|
|
123
|
+
marginVertical: p.marginVertical,
|
|
124
|
+
backgroundColor: p.backgroundGradient ? undefined : p.backgroundColor,
|
|
125
|
+
borderWidth: p.borderWidth,
|
|
126
|
+
borderRadius: p.borderRadius,
|
|
127
|
+
borderColor: p.borderColor,
|
|
128
|
+
overflow: p.overflow,
|
|
129
|
+
opacity: p.opacity,
|
|
130
|
+
}, children: (0, jsx_runtime_1.jsx)(shared_1.RichTextStyleContext.Provider, { value: inheritedTextStyle, children: ctx.renderChildren(expanded, "RichText") }) }));
|
|
131
|
+
};
|
|
132
|
+
exports.RichTextElementComponent = RichTextElementComponent;
|
|
133
|
+
//# sourceMappingURL=RichTextElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RichTextElement.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/RichTextElement.tsx"],"names":[],"mappings":";;;;AACA,6BAAwB;AACxB,+EAAsE;AACtE,iDAAkE;AAElE,qCAAqG;AACrG,+CAA4C;AAoB/B,QAAA,0BAA0B,GAAG,iCAAkB,CAAC,MAAM,CAAC;IAClE,GAAG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B;YACpC,cAAc,EAAE,CAAC,CAAC,cAAc;YAChC,eAAe,EAAE,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe;YACrE,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;YAC5B,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,OAAO,EAAE,CAAC,CAAC,OAAO;SACnB,YAED,uBAAC,6BAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,kBAAkB,YACrD,GAAG,CAAC,cAAc,CAAC,QAAQ,EAAE,UAAU,CAAC,GACX,GACpB,CACf,CAAC;AACJ,CAAC,CAAC;AApFW,QAAA,wBAAwB,4BAoFnC"}
|
|
@@ -264,7 +264,7 @@ type StackUIElement = Extract<UIElement, {
|
|
|
264
264
|
type Props = {
|
|
265
265
|
element: StackUIElement;
|
|
266
266
|
ctx: RenderContext;
|
|
267
|
-
parentType?: "XStack" | "YStack" | "ZStack";
|
|
267
|
+
parentType?: "XStack" | "YStack" | "ZStack" | "RichText";
|
|
268
268
|
};
|
|
269
269
|
export declare const StackElementComponent: ({ element, ctx, parentType }: Props) => React.ReactElement;
|
|
270
270
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/StackElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,aAAa,EAAO,MAAM,UAAU,CAAC;AAG9C,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG;IAC7C,GA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;IAC7C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAC9D,cAAc,CAAC,EAAE,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,GAAG,cAAc,CAAC;IACzF,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlC,CAAC;AAEH,KAAK,cAAc,GAAG,OAAO,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAE,CAAC,CAAC;AAExE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,cAAc,CAAC;IACxB,GAAG,EAAE,aAAa,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,8BAA8B,KAAK,KAAG,KAAK,CAAC,YAsCjF,CAAC"}
|
|
@@ -355,7 +355,7 @@ type TextUIElement = Extract<UIElement, {
|
|
|
355
355
|
type Props = {
|
|
356
356
|
element: TextUIElement;
|
|
357
357
|
ctx: RenderContext;
|
|
358
|
-
parentType?: "XStack" | "YStack" | "ZStack";
|
|
358
|
+
parentType?: "XStack" | "YStack" | "ZStack" | "RichText";
|
|
359
359
|
};
|
|
360
360
|
export declare const TextElementComponent: ({ element, ctx, parentType }: Props) => React.ReactElement;
|
|
361
361
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/TextElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"TextElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/TextElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,aAAa,EAAsE,MAAM,UAAU,CAAC;AAG7G,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;IAClE,kBAAkB,CAAC,EACf,MAAM,GACN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AK,KAAK,GAAG;IACX,OAAO,EAAE,aAAa,CAAC;IACvB,GAAG,EAAE,aAAa,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,8BAA8B,KAAK,KAAG,KAAK,CAAC,YAuGhF,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.TextElementComponent = exports.TextElementPropsSchema = exports.TextSpanSchema = void 0;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
5
9
|
const zod_1 = require("zod");
|
|
6
10
|
const react_native_1 = require("react-native");
|
|
7
11
|
const react_native_onboarding_1 = require("@rocapine/react-native-onboarding");
|
|
@@ -66,9 +70,19 @@ const RichTextSpan = ({ span, baseFontFamily, }) => {
|
|
|
66
70
|
}, children: span.text }));
|
|
67
71
|
};
|
|
68
72
|
const TextElementComponent = ({ element, ctx, parentType }) => {
|
|
69
|
-
var _a, _b, _c;
|
|
73
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
70
74
|
const { theme, variables } = ctx;
|
|
71
75
|
const p = element.props;
|
|
76
|
+
// Text-style defaults inherited from a parent `RichText` container (empty when
|
|
77
|
+
// this Text isn't inside one). Element props always win over inherited values.
|
|
78
|
+
const inherited = react_1.default.useContext(shared_1.RichTextStyleContext);
|
|
79
|
+
const fontSize = (_a = p.fontSize) !== null && _a !== void 0 ? _a : inherited.fontSize;
|
|
80
|
+
const fontWeight = (_b = p.fontWeight) !== null && _b !== void 0 ? _b : inherited.fontWeight;
|
|
81
|
+
const fontStyle = (_c = p.fontStyle) !== null && _c !== void 0 ? _c : inherited.fontStyle;
|
|
82
|
+
const color = (_d = p.color) !== null && _d !== void 0 ? _d : inherited.color;
|
|
83
|
+
const textAlign = (_e = p.textAlign) !== null && _e !== void 0 ? _e : inherited.textAlign;
|
|
84
|
+
const letterSpacing = (_f = p.letterSpacing) !== null && _f !== void 0 ? _f : inherited.letterSpacing;
|
|
85
|
+
const lineHeight = (_g = p.lineHeight) !== null && _g !== void 0 ? _g : inherited.lineHeight;
|
|
72
86
|
const isExpression = p.mode === "expression";
|
|
73
87
|
const content = Array.isArray(p.content)
|
|
74
88
|
? isExpression
|
|
@@ -77,11 +91,11 @@ const TextElementComponent = ({ element, ctx, parentType }) => {
|
|
|
77
91
|
: isExpression
|
|
78
92
|
? (0, shared_1.interpolate)(p.content, variables)
|
|
79
93
|
: p.content;
|
|
80
|
-
const inheritedFontFamily = (0, shared_1.resolveInheritedFontFamily)(p.fontFamily, theme.typography.defaultFontFamily);
|
|
81
|
-
const resolvedFont = (0, react_native_onboarding_1.useResolvedFontStyle)(inheritedFontFamily,
|
|
94
|
+
const inheritedFontFamily = (0, shared_1.resolveInheritedFontFamily)((_h = p.fontFamily) !== null && _h !== void 0 ? _h : inherited.fontFamily, theme.typography.defaultFontFamily);
|
|
95
|
+
const resolvedFont = (0, react_native_onboarding_1.useResolvedFontStyle)(inheritedFontFamily, fontWeight);
|
|
82
96
|
const textNode = ((0, jsx_runtime_1.jsx)(react_native_1.Text, { style: {
|
|
83
97
|
flex: p.flex,
|
|
84
|
-
flexShrink: (
|
|
98
|
+
flexShrink: (_j = p.flexShrink) !== null && _j !== void 0 ? _j : (parentType === "XStack" ? 1 : undefined),
|
|
85
99
|
flexGrow: p.backgroundGradient ? undefined : p.flexGrow,
|
|
86
100
|
alignSelf: p.backgroundGradient ? undefined : p.alignSelf,
|
|
87
101
|
width: p.backgroundGradient ? undefined : (0, shared_1.dim)(p.width),
|
|
@@ -90,14 +104,14 @@ const TextElementComponent = ({ element, ctx, parentType }) => {
|
|
|
90
104
|
maxWidth: p.backgroundGradient ? undefined : p.maxWidth,
|
|
91
105
|
minHeight: p.backgroundGradient ? undefined : p.minHeight,
|
|
92
106
|
maxHeight: p.backgroundGradient ? undefined : p.maxHeight,
|
|
93
|
-
fontSize
|
|
94
|
-
fontWeight: resolvedFont.resolvedToVariant ? undefined :
|
|
107
|
+
fontSize,
|
|
108
|
+
fontWeight: resolvedFont.resolvedToVariant ? undefined : fontWeight,
|
|
95
109
|
fontFamily: resolvedFont.fontFamily,
|
|
96
|
-
fontStyle
|
|
97
|
-
color:
|
|
98
|
-
textAlign
|
|
99
|
-
letterSpacing
|
|
100
|
-
lineHeight
|
|
110
|
+
fontStyle,
|
|
111
|
+
color: color !== null && color !== void 0 ? color : theme.colors.text.primary,
|
|
112
|
+
textAlign,
|
|
113
|
+
letterSpacing,
|
|
114
|
+
lineHeight,
|
|
101
115
|
backgroundColor: p.backgroundGradient ? undefined : p.backgroundColor,
|
|
102
116
|
padding: p.backgroundGradient ? undefined : p.padding,
|
|
103
117
|
paddingHorizontal: p.backgroundGradient ? undefined : p.paddingHorizontal,
|
|
@@ -115,7 +129,7 @@ const TextElementComponent = ({ element, ctx, parentType }) => {
|
|
|
115
129
|
if (p.backgroundGradient) {
|
|
116
130
|
return ((0, jsx_runtime_1.jsx)(GradientBox_1.GradientBox, { gradient: p.backgroundGradient, style: {
|
|
117
131
|
flex: p.flex,
|
|
118
|
-
flexShrink: (
|
|
132
|
+
flexShrink: (_k = p.flexShrink) !== null && _k !== void 0 ? _k : (parentType === "XStack" ? 1 : undefined),
|
|
119
133
|
flexGrow: p.flexGrow,
|
|
120
134
|
alignSelf: p.alignSelf,
|
|
121
135
|
width: (0, shared_1.dim)(p.width),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextElement.js","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/TextElement.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":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J,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAvGW,QAAA,oBAAoB,wBAuG/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { UIElement } from "../types";
|
|
3
3
|
import { RenderContext } from "./shared";
|
|
4
|
-
export declare const renderElement: (element: UIElement, ctx: RenderContext, parentType?: "XStack" | "YStack" | "ZStack") => React.ReactNode;
|
|
4
|
+
export declare const renderElement: (element: UIElement, ctx: RenderContext, parentType?: "XStack" | "YStack" | "ZStack" | "RichText") => React.ReactNode;
|
|
5
5
|
//# sourceMappingURL=renderElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/renderElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"renderElement.d.ts","sourceRoot":"","sources":["../../../../../src/UI/Pages/ComposableScreen/elements/renderElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAuBzC,eAAO,MAAM,aAAa,GACxB,SAAS,SAAS,EAClB,KAAK,aAAa,EAClB,aAAa,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,KACvD,KAAK,CAAC,SAkHR,CAAC"}
|