@developer_tribe/react-builder 0.1.29 → 0.1.31
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/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +0 -1
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +1 -0
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +1 -0
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +1 -0
- package/dist/build-components/Text/TextProps.generated.d.ts +1 -0
- package/dist/build-components/patterns.generated.d.ts +4 -5
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +4 -0
- package/dist/index.esm.js +4 -4
- package/dist/utils/extractImageStyle.d.ts +3 -0
- package/dist/utils/extractTextStyle.d.ts +3 -0
- package/dist/utils/extractViewStyle.d.ts +3 -0
- package/dist/utils/querySelector.d.ts +2 -0
- package/package.json +1 -1
- package/scripts/prebuild/prebuild.js +1 -1
- package/src/build-components/Image/Image.tsx +2 -13
- package/src/build-components/OnboardButton/OnboardButton.tsx +4 -5
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +0 -1
- package/src/build-components/OnboardButton/pattern.json +0 -1
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +2 -29
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +1 -0
- package/src/build-components/OnboardProvider/OnboardProvider.tsx +0 -1
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +1 -0
- package/src/build-components/OnboardTitle/OnboardTitle.tsx +0 -1
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +1 -0
- package/src/build-components/Text/Text.tsx +3 -12
- package/src/build-components/Text/TextProps.generated.ts +1 -0
- package/src/build-components/Text/pattern.json +3 -3
- package/src/build-components/View/View.tsx +2 -45
- package/src/build-components/patterns.generated.ts +4 -5
- package/src/build-components/useNode.ts +0 -1
- package/src/index.ts +4 -0
- package/src/utils/extractImageStyle.ts +24 -0
- package/src/utils/extractTextStyle.ts +109 -0
- package/src/utils/extractViewStyle.ts +44 -0
- package/src/utils/novaToJson.ts +5 -2
- package/src/utils/querySelector.ts +43 -0
|
@@ -5,6 +5,7 @@ export interface OnboardFooterPropsGenerated {
|
|
|
5
5
|
color?: string;
|
|
6
6
|
fontSize?: number;
|
|
7
7
|
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
8
9
|
scrollable?: boolean;
|
|
9
10
|
flexDirection?: 'row' | 'column';
|
|
10
11
|
alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
@@ -5,6 +5,7 @@ export interface OnboardSubtitlePropsGenerated {
|
|
|
5
5
|
color?: string;
|
|
6
6
|
fontSize?: number;
|
|
7
7
|
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
8
9
|
scrollable?: boolean;
|
|
9
10
|
flexDirection?: 'row' | 'column';
|
|
10
11
|
alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
@@ -5,6 +5,7 @@ export interface OnboardTitlePropsGenerated {
|
|
|
5
5
|
color?: string;
|
|
6
6
|
fontSize?: number;
|
|
7
7
|
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
8
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
8
9
|
scrollable?: boolean;
|
|
9
10
|
flexDirection?: 'row' | 'column';
|
|
10
11
|
alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
|
|
@@ -28,6 +28,7 @@ export interface TextPropsGenerated {
|
|
|
28
28
|
color?: string;
|
|
29
29
|
fontSize?: number;
|
|
30
30
|
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
31
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify';
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export interface TextComponentProps {
|
|
@@ -90,7 +90,6 @@ export declare const patterns: readonly [{
|
|
|
90
90
|
readonly animation_color: "string";
|
|
91
91
|
readonly button_background_color: "string";
|
|
92
92
|
readonly flex: "number";
|
|
93
|
-
readonly targetIndex: "number";
|
|
94
93
|
readonly events: "EventObject[]";
|
|
95
94
|
};
|
|
96
95
|
};
|
|
@@ -142,6 +141,7 @@ export declare const patterns: readonly [{
|
|
|
142
141
|
readonly color: "string";
|
|
143
142
|
readonly fontSize: "number";
|
|
144
143
|
readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
|
144
|
+
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
145
145
|
readonly scrollable: "boolean";
|
|
146
146
|
readonly flexDirection: readonly ["row", "column"];
|
|
147
147
|
readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
|
|
@@ -173,7 +173,6 @@ export declare const patterns: readonly [{
|
|
|
173
173
|
readonly linkedWordSecondColor: "string";
|
|
174
174
|
readonly linkedWordSecondPage: "string";
|
|
175
175
|
};
|
|
176
|
-
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
177
176
|
};
|
|
178
177
|
readonly defaults: {
|
|
179
178
|
readonly paddingHorizontal: "24@s";
|
|
@@ -243,6 +242,7 @@ export declare const patterns: readonly [{
|
|
|
243
242
|
readonly color: "string";
|
|
244
243
|
readonly fontSize: "number";
|
|
245
244
|
readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
|
245
|
+
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
246
246
|
readonly scrollable: "boolean";
|
|
247
247
|
readonly flexDirection: readonly ["row", "column"];
|
|
248
248
|
readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
|
|
@@ -267,7 +267,6 @@ export declare const patterns: readonly [{
|
|
|
267
267
|
readonly width: "number";
|
|
268
268
|
readonly height: "number";
|
|
269
269
|
};
|
|
270
|
-
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
271
270
|
};
|
|
272
271
|
readonly defaults: {
|
|
273
272
|
readonly fontSize: "14@fs";
|
|
@@ -284,6 +283,7 @@ export declare const patterns: readonly [{
|
|
|
284
283
|
readonly color: "string";
|
|
285
284
|
readonly fontSize: "number";
|
|
286
285
|
readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
|
286
|
+
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
287
287
|
readonly scrollable: "boolean";
|
|
288
288
|
readonly flexDirection: readonly ["row", "column"];
|
|
289
289
|
readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
|
|
@@ -308,7 +308,6 @@ export declare const patterns: readonly [{
|
|
|
308
308
|
readonly width: "number";
|
|
309
309
|
readonly height: "number";
|
|
310
310
|
};
|
|
311
|
-
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
312
311
|
};
|
|
313
312
|
readonly defaults: {
|
|
314
313
|
readonly fontSize: "24@fs";
|
|
@@ -349,8 +348,8 @@ export declare const patterns: readonly [{
|
|
|
349
348
|
readonly color: "string";
|
|
350
349
|
readonly fontSize: "number";
|
|
351
350
|
readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
|
351
|
+
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
352
352
|
};
|
|
353
|
-
readonly textAlign: readonly ["left", "center", "right", "justify"];
|
|
354
353
|
};
|
|
355
354
|
readonly types: {};
|
|
356
355
|
readonly defaults: {};
|