@developer_tribe/react-builder 0.1.27 → 0.1.29

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.
Files changed (76) hide show
  1. package/dist/RenderPage.d.ts +13 -13
  2. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +2 -2
  3. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +18 -4
  4. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +6 -1
  5. package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +4 -0
  6. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +23 -1
  7. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +23 -0
  8. package/dist/build-components/Text/TextProps.generated.d.ts +23 -0
  9. package/dist/build-components/View/ViewProps.generated.d.ts +15 -3
  10. package/dist/build-components/index.d.ts +1 -0
  11. package/dist/build-components/patterns.generated.d.ts +389 -0
  12. package/dist/index.cjs.js +28 -1
  13. package/dist/index.d.ts +1 -2
  14. package/dist/index.esm.js +28 -1
  15. package/dist/size-matters/index.d.ts +6 -0
  16. package/dist/store.d.ts +25 -0
  17. package/dist/styles.css +1 -1
  18. package/dist/types/PreviewConfig.d.ts +2 -0
  19. package/dist/utils/getDevices.d.ts +1 -0
  20. package/dist/utils/patterns.d.ts +3 -2
  21. package/package.json +2 -1
  22. package/scripts/prebuild/build-components.js +2 -0
  23. package/scripts/prebuild/utils/createBuildComponentsIndex.js +5 -1
  24. package/scripts/prebuild/utils/createPatternsGenerated.js +23 -0
  25. package/scripts/prebuild/utils/index.js +1 -0
  26. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +126 -1
  27. package/src/RenderPage.tsx +33 -29
  28. package/src/build-components/Button/Button.tsx +2 -2
  29. package/src/build-components/Carousel/Carousel.tsx +2 -2
  30. package/src/build-components/CarouselButtons/CarouselButtons.tsx +2 -2
  31. package/src/build-components/CarouselDots/CarouselDots.tsx +2 -2
  32. package/src/build-components/CarouselItem/CarouselItem.tsx +2 -2
  33. package/src/build-components/CarouselProvider/CarouselProvider.tsx +2 -2
  34. package/src/build-components/Image/Image.tsx +2 -3
  35. package/src/build-components/Onboard/Onboard.tsx +2 -2
  36. package/src/build-components/OnboardButton/OnboardButton.tsx +13 -6
  37. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +2 -2
  38. package/src/build-components/OnboardButton/pattern.json +2 -2
  39. package/src/build-components/OnboardButtons/OnboardButtons.tsx +14 -9
  40. package/src/build-components/OnboardDot/OnboardDot.tsx +2 -2
  41. package/src/build-components/OnboardFooter/OnboardFooter.tsx +22 -12
  42. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +29 -4
  43. package/src/build-components/OnboardFooter/pattern.json +4 -19
  44. package/src/build-components/OnboardImage/OnboardImage.tsx +2 -2
  45. package/src/build-components/OnboardItem/OnboardItem.tsx +20 -19
  46. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +6 -1
  47. package/src/build-components/OnboardItem/pattern.json +12 -1
  48. package/src/build-components/OnboardProvider/OnboardProvider.tsx +15 -12
  49. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +4 -0
  50. package/src/build-components/OnboardProvider/pattern.json +11 -1
  51. package/src/build-components/OnboardSubtitle/OnboardSubtitle.tsx +3 -17
  52. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +29 -1
  53. package/src/build-components/OnboardSubtitle/pattern.json +3 -19
  54. package/src/build-components/OnboardTitle/OnboardTitle.tsx +4 -17
  55. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +29 -0
  56. package/src/build-components/OnboardTitle/pattern.json +5 -19
  57. package/src/build-components/Text/Text.tsx +21 -9
  58. package/src/build-components/Text/TextProps.generated.ts +29 -0
  59. package/src/build-components/Text/pattern.json +1 -0
  60. package/src/build-components/View/View.tsx +3 -3
  61. package/src/build-components/View/ViewProps.generated.ts +15 -3
  62. package/src/build-components/View/pattern.json +15 -3
  63. package/src/build-components/index.ts +2 -0
  64. package/src/build-components/patterns.generated.ts +502 -0
  65. package/src/build-components/useNode.ts +1 -0
  66. package/src/index.ts +1 -2
  67. package/src/size-matters/index.ts +64 -0
  68. package/src/store.ts +56 -0
  69. package/src/styles/_reset.scss +30 -0
  70. package/src/styles/index.scss +2 -0
  71. package/src/types/PreviewConfig.ts +2 -2
  72. package/src/utils/getDevices.ts +4 -0
  73. package/src/utils/novaToJson.ts +46 -8
  74. package/src/utils/patterns.ts +14 -45
  75. package/dist/RenderMainNode.d.ts +0 -16
  76. package/src/RenderMainNode.tsx +0 -37
@@ -1,26 +1,26 @@
1
1
  import { Localication } from './types/PreviewConfig';
2
2
  import { Node } from './types/Node';
3
3
  import { Device } from './types/Device';
4
+ export type ScreenStyle = {
5
+ light: {
6
+ backgroundColor: string;
7
+ color: string;
8
+ seperatorColor?: string;
9
+ };
10
+ dark: {
11
+ backgroundColor: string;
12
+ color: string;
13
+ seperatorColor?: string;
14
+ };
15
+ };
4
16
  type RenderPageProps = {
5
17
  data: Node;
6
18
  isRtl: boolean;
7
- screenStyle: {
8
- light: {
9
- backgroundColor: string;
10
- color: string;
11
- };
12
- dark: {
13
- backgroundColor: string;
14
- color: string;
15
- };
16
- };
19
+ screenStyle: ScreenStyle;
17
20
  theme: 'dark' | 'light';
18
21
  localication: Localication;
19
22
  defaultLanguage?: string;
20
23
  device: Device;
21
24
  };
22
- export declare const renderPageContext: import("react").Context<{
23
- device: Device;
24
- } | null>;
25
25
  export declare function RenderPage({ data, theme, isRtl, screenStyle, localication, defaultLanguage, device, }: RenderPageProps): import("react/jsx-runtime").JSX.Element;
26
26
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { NodeData } from '../../types/Node';
2
2
  export interface EventObjectGenerated {
3
3
  type?: 'Permission' | 'Navigate';
4
- permission?: string;
5
- next_page_key?: string;
4
+ permission?: 'att' | 'notification' | 'rating' | 'null';
5
+ navigate_to?: 'string' | 'null';
6
6
  }
7
7
  export interface OnboardButtonPropsGenerated {
8
8
  child: string;
@@ -2,19 +2,33 @@ import type { NodeData } from '../../types/Node';
2
2
  export interface OnboardFooterPropsGenerated {
3
3
  child: string;
4
4
  attributes: {
5
+ color?: string;
6
+ fontSize?: number;
7
+ fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
5
8
  scrollable?: boolean;
6
9
  flexDirection?: 'row' | 'column';
7
10
  alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
8
11
  justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
9
- gap?: number;
12
+ gap?: string;
10
13
  padding?: number;
11
- margin?: number;
14
+ paddingHorizontal?: string;
15
+ paddingVertical?: string;
16
+ paddingTop?: string;
17
+ paddingBottom?: string;
18
+ paddingLeft?: string;
19
+ paddingRight?: string;
20
+ margin?: string;
21
+ marginHorizontal?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
12
27
  backgroundColor?: string;
13
- borderRadius?: number;
28
+ borderRadius?: string;
14
29
  width?: number;
15
30
  height?: number;
16
31
  textLocalizationKey?: string;
17
- textColor?: string;
18
32
  linkedWordFirstLocalizationKey?: string;
19
33
  linkedWordFirstColor?: string;
20
34
  linkedWordFirstPage?: string;
@@ -1,7 +1,12 @@
1
1
  import type { NodeData } from '../../types/Node';
2
2
  export interface OnboardItemPropsGenerated {
3
3
  child: string;
4
- attributes: {};
4
+ attributes: {
5
+ display?: 'flex' | 'block';
6
+ gap?: string;
7
+ flexDirection?: 'row' | 'column';
8
+ paddingHorizontal?: string;
9
+ };
5
10
  }
6
11
  export interface OnboardItemComponentProps {
7
12
  node: NodeData<OnboardItemPropsGenerated['attributes']>;
@@ -4,6 +4,10 @@ export interface OnboardProviderPropsGenerated {
4
4
  attributes: {
5
5
  theme?: string;
6
6
  use_safe_area_inset?: boolean;
7
+ paddingTop?: number;
8
+ paddingRight?: number;
9
+ paddingBottom?: number;
10
+ paddingLeft?: number;
7
11
  };
8
12
  }
9
13
  export interface OnboardProviderComponentProps {
@@ -4,8 +4,30 @@ export interface OnboardSubtitlePropsGenerated {
4
4
  attributes: {
5
5
  color?: string;
6
6
  fontSize?: number;
7
- textAlign?: 'left' | 'center' | 'right' | 'justify';
8
7
  fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
8
+ scrollable?: boolean;
9
+ flexDirection?: 'row' | 'column';
10
+ alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
11
+ justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
12
+ gap?: string;
13
+ padding?: number;
14
+ paddingHorizontal?: string;
15
+ paddingVertical?: string;
16
+ paddingTop?: string;
17
+ paddingBottom?: string;
18
+ paddingLeft?: string;
19
+ paddingRight?: string;
20
+ margin?: string;
21
+ marginHorizontal?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
27
+ backgroundColor?: string;
28
+ borderRadius?: string;
29
+ width?: number;
30
+ height?: number;
9
31
  };
10
32
  }
11
33
  export interface OnboardSubtitleComponentProps {
@@ -5,6 +5,29 @@ 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
+ scrollable?: boolean;
9
+ flexDirection?: 'row' | 'column';
10
+ alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
11
+ justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
12
+ gap?: string;
13
+ padding?: number;
14
+ paddingHorizontal?: string;
15
+ paddingVertical?: string;
16
+ paddingTop?: string;
17
+ paddingBottom?: string;
18
+ paddingLeft?: string;
19
+ paddingRight?: string;
20
+ margin?: string;
21
+ marginHorizontal?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
27
+ backgroundColor?: string;
28
+ borderRadius?: string;
29
+ width?: number;
30
+ height?: number;
8
31
  };
9
32
  }
10
33
  export interface OnboardTitleComponentProps {
@@ -2,6 +2,29 @@ import type { NodeData } from '../../types/Node';
2
2
  export interface TextPropsGenerated {
3
3
  child: string;
4
4
  attributes: {
5
+ scrollable?: boolean;
6
+ flexDirection?: 'row' | 'column';
7
+ alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
8
+ justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
9
+ gap?: string;
10
+ padding?: number;
11
+ paddingHorizontal?: string;
12
+ paddingVertical?: string;
13
+ paddingTop?: string;
14
+ paddingBottom?: string;
15
+ paddingLeft?: string;
16
+ paddingRight?: string;
17
+ margin?: string;
18
+ marginHorizontal?: string;
19
+ marginVertical?: string;
20
+ marginTop?: string;
21
+ marginBottom?: string;
22
+ marginLeft?: string;
23
+ marginRight?: string;
24
+ backgroundColor?: string;
25
+ borderRadius?: string;
26
+ width?: number;
27
+ height?: number;
5
28
  color?: string;
6
29
  fontSize?: number;
7
30
  fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
@@ -6,11 +6,23 @@ export interface ViewPropsGenerated {
6
6
  flexDirection?: 'row' | 'column';
7
7
  alignItems?: 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
8
8
  justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
9
- gap?: number;
9
+ gap?: string;
10
10
  padding?: number;
11
- margin?: number;
11
+ paddingHorizontal?: string;
12
+ paddingVertical?: string;
13
+ paddingTop?: string;
14
+ paddingBottom?: string;
15
+ paddingLeft?: string;
16
+ paddingRight?: string;
17
+ margin?: string;
18
+ marginHorizontal?: string;
19
+ marginVertical?: string;
20
+ marginTop?: string;
21
+ marginBottom?: string;
22
+ marginLeft?: string;
23
+ marginRight?: string;
12
24
  backgroundColor?: string;
13
- borderRadius?: number;
25
+ borderRadius?: string;
14
26
  width?: number;
15
27
  height?: number;
16
28
  };
@@ -1,4 +1,5 @@
1
1
  export { default as RenderNode } from './RenderNode.generated';
2
+ export { patterns } from './patterns.generated';
2
3
  export type { ButtonPropsGenerated, ButtonComponentProps, } from './Button/ButtonProps.generated';
3
4
  export type { CarouselPropsGenerated, CarouselComponentProps, } from './Carousel/CarouselProps.generated';
4
5
  export type { CarouselButtonsPropsGenerated, CarouselButtonsComponentProps, } from './CarouselButtons/CarouselButtonsProps.generated';
@@ -0,0 +1,389 @@
1
+ export declare const patterns: readonly [{
2
+ readonly schemaVersion: 1;
3
+ readonly allowUnknownAttributes: false;
4
+ readonly pattern: {
5
+ readonly type: "button";
6
+ readonly children: "string";
7
+ readonly attributes: {
8
+ readonly color: "string";
9
+ readonly fontSize: "number";
10
+ readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
11
+ };
12
+ };
13
+ }, {
14
+ readonly schemaVersion: 1;
15
+ readonly allowUnknownAttributes: false;
16
+ readonly pattern: {
17
+ readonly type: "carousel";
18
+ readonly children: "carouselItem";
19
+ readonly attributes: {};
20
+ };
21
+ }, {
22
+ readonly schemaVersion: 1;
23
+ readonly allowUnknownAttributes: false;
24
+ readonly pattern: {
25
+ readonly type: "carouselButtons";
26
+ readonly children: "never";
27
+ readonly attributes: {
28
+ readonly buttonType: readonly ["previous_button", "next_button", "skip_button"];
29
+ readonly skipNumber: "number";
30
+ };
31
+ };
32
+ }, {
33
+ readonly schemaVersion: 1;
34
+ readonly allowUnknownAttributes: false;
35
+ readonly pattern: {
36
+ readonly type: "carouselDots";
37
+ readonly children: "never";
38
+ readonly attributes: {
39
+ readonly dotType: readonly ["expanding_dot", "normal_dot", "scaling_dot", "sliding_border", "sliding_dot", "liquid_like"];
40
+ };
41
+ };
42
+ }, {
43
+ readonly schemaVersion: 1;
44
+ readonly allowUnknownAttributes: false;
45
+ readonly pattern: {
46
+ readonly type: "carouselItem";
47
+ readonly children: "node";
48
+ readonly attributes: {};
49
+ };
50
+ }, {
51
+ readonly schemaVersion: 1;
52
+ readonly allowUnknownAttributes: false;
53
+ readonly pattern: {
54
+ readonly type: "carouselProvider";
55
+ readonly children: "node";
56
+ readonly attributes: {};
57
+ };
58
+ }, {
59
+ readonly schemaVersion: 1;
60
+ readonly allowUnknownAttributes: false;
61
+ readonly pattern: {
62
+ readonly type: "image";
63
+ readonly children: "never";
64
+ readonly attributes: {
65
+ readonly src: "string";
66
+ readonly width: "number";
67
+ readonly height: "number";
68
+ readonly resizeMode: readonly ["cover", "contain", "stretch", "center"];
69
+ readonly borderRadius: "number";
70
+ };
71
+ };
72
+ }, {
73
+ readonly schemaVersion: 1;
74
+ readonly allowUnknownAttributes: false;
75
+ readonly pattern: {
76
+ readonly type: "Onboard";
77
+ readonly children: "node";
78
+ readonly attributes: {};
79
+ };
80
+ }, {
81
+ readonly schemaVersion: 1;
82
+ readonly allowUnknownAttributes: false;
83
+ readonly pattern: {
84
+ readonly type: "OnboardButton";
85
+ readonly children: "never";
86
+ readonly attributes: {
87
+ readonly labelKey: "string";
88
+ readonly button_text_color: "string";
89
+ readonly animation: readonly ["simple-animation", "line-animation", "blur", "blur-animation", "blur-line-animation"];
90
+ readonly animation_color: "string";
91
+ readonly button_background_color: "string";
92
+ readonly flex: "number";
93
+ readonly targetIndex: "number";
94
+ readonly events: "EventObject[]";
95
+ };
96
+ };
97
+ readonly types: {
98
+ readonly EventObject: {
99
+ readonly type: readonly ["Permission", "Navigate"];
100
+ readonly permission: readonly ["att", "notification", "rating", "null"];
101
+ readonly navigate_to: readonly ["string", "null"];
102
+ };
103
+ };
104
+ }, {
105
+ readonly schemaVersion: 1;
106
+ readonly allowUnknownAttributes: false;
107
+ readonly pattern: {
108
+ readonly type: "OnboardButtons";
109
+ readonly children: "node";
110
+ readonly attributes: {
111
+ readonly buttonType: readonly ["previous_button", "next_button", "skip_button"];
112
+ readonly skipNumber: "number";
113
+ readonly buttons_direction: readonly ["row", "column"];
114
+ readonly forIndex: "number";
115
+ readonly seperatorColor: "string";
116
+ readonly condition: readonly ["carousel-index"];
117
+ readonly conditionVariable: "number";
118
+ };
119
+ };
120
+ }, {
121
+ readonly schemaVersion: 1;
122
+ readonly allowUnknownAttributes: false;
123
+ readonly pattern: {
124
+ readonly type: "OnboardDot";
125
+ readonly children: "node";
126
+ readonly attributes: {
127
+ readonly dotType: readonly ["expanding_dot", "normal_dot", "scaling_dot", "sliding_border", "sliding_dot", "liquid_like"];
128
+ readonly inactive_dot_opacity: "number";
129
+ readonly expanding_dot_width: "number";
130
+ readonly dot_style: "string";
131
+ readonly container_style: "string";
132
+ readonly active_dot_color: "string";
133
+ };
134
+ };
135
+ }, {
136
+ readonly schemaVersion: 1;
137
+ readonly allowUnknownAttributes: false;
138
+ readonly pattern: {
139
+ readonly type: "OnboardFooter";
140
+ readonly children: "node";
141
+ readonly attributes: {
142
+ readonly color: "string";
143
+ readonly fontSize: "number";
144
+ readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
145
+ readonly scrollable: "boolean";
146
+ readonly flexDirection: readonly ["row", "column"];
147
+ readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
148
+ readonly justifyContent: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
149
+ readonly gap: "string";
150
+ readonly padding: "number";
151
+ readonly paddingHorizontal: "string";
152
+ readonly paddingVertical: "string";
153
+ readonly paddingTop: "string";
154
+ readonly paddingBottom: "string";
155
+ readonly paddingLeft: "string";
156
+ readonly paddingRight: "string";
157
+ readonly margin: "string";
158
+ readonly marginHorizontal: "string";
159
+ readonly marginVertical: "string";
160
+ readonly marginTop: "string";
161
+ readonly marginBottom: "string";
162
+ readonly marginLeft: "string";
163
+ readonly marginRight: "string";
164
+ readonly backgroundColor: "string";
165
+ readonly borderRadius: "string";
166
+ readonly width: "number";
167
+ readonly height: "number";
168
+ readonly textLocalizationKey: "string";
169
+ readonly linkedWordFirstLocalizationKey: "string";
170
+ readonly linkedWordFirstColor: "string";
171
+ readonly linkedWordFirstPage: "string";
172
+ readonly linkedWordSecondLocalizationKey: "string";
173
+ readonly linkedWordSecondColor: "string";
174
+ readonly linkedWordSecondPage: "string";
175
+ };
176
+ readonly textAlign: readonly ["left", "center", "right", "justify"];
177
+ };
178
+ readonly defaults: {
179
+ readonly paddingHorizontal: "24@s";
180
+ };
181
+ readonly types: {};
182
+ }, {
183
+ readonly schemaVersion: 1;
184
+ readonly allowUnknownAttributes: false;
185
+ readonly pattern: {
186
+ readonly type: "OnboardImage";
187
+ readonly children: "node";
188
+ readonly attributes: {
189
+ readonly src: "string";
190
+ readonly width: "number";
191
+ readonly height: "number";
192
+ readonly resizeMode: readonly ["cover", "contain", "stretch", "center"];
193
+ readonly borderRadius: "number";
194
+ };
195
+ };
196
+ }, {
197
+ readonly schemaVersion: 1;
198
+ readonly allowUnknownAttributes: false;
199
+ readonly pattern: {
200
+ readonly type: "OnboardItem";
201
+ readonly children: "node";
202
+ readonly attributes: {
203
+ readonly display: readonly ["flex", "block"];
204
+ readonly gap: "string";
205
+ readonly flexDirection: readonly ["row", "column"];
206
+ readonly paddingHorizontal: "string";
207
+ };
208
+ };
209
+ readonly defaults: {
210
+ readonly gap: "16@vs";
211
+ readonly display: "flex";
212
+ readonly flexDirection: "column";
213
+ readonly paddingHorizontal: "24@s";
214
+ };
215
+ }, {
216
+ readonly schemaVersion: 1;
217
+ readonly allowUnknownAttributes: false;
218
+ readonly pattern: {
219
+ readonly type: "OnboardProvider";
220
+ readonly children: "node";
221
+ readonly attributes: {
222
+ readonly theme: "string";
223
+ readonly use_safe_area_inset: "boolean";
224
+ readonly paddingTop: "number";
225
+ readonly paddingRight: "number";
226
+ readonly paddingBottom: "number";
227
+ readonly paddingLeft: "number";
228
+ };
229
+ };
230
+ readonly defaults: {
231
+ readonly paddingTop: 0;
232
+ readonly paddingRight: 0;
233
+ readonly paddingBottom: 8;
234
+ readonly paddingLeft: 0;
235
+ };
236
+ }, {
237
+ readonly schemaVersion: 1;
238
+ readonly allowUnknownAttributes: false;
239
+ readonly pattern: {
240
+ readonly type: "OnboardSubtitle";
241
+ readonly children: "node";
242
+ readonly attributes: {
243
+ readonly color: "string";
244
+ readonly fontSize: "number";
245
+ readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
246
+ readonly scrollable: "boolean";
247
+ readonly flexDirection: readonly ["row", "column"];
248
+ readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
249
+ readonly justifyContent: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
250
+ readonly gap: "string";
251
+ readonly padding: "number";
252
+ readonly paddingHorizontal: "string";
253
+ readonly paddingVertical: "string";
254
+ readonly paddingTop: "string";
255
+ readonly paddingBottom: "string";
256
+ readonly paddingLeft: "string";
257
+ readonly paddingRight: "string";
258
+ readonly margin: "string";
259
+ readonly marginHorizontal: "string";
260
+ readonly marginVertical: "string";
261
+ readonly marginTop: "string";
262
+ readonly marginBottom: "string";
263
+ readonly marginLeft: "string";
264
+ readonly marginRight: "string";
265
+ readonly backgroundColor: "string";
266
+ readonly borderRadius: "string";
267
+ readonly width: "number";
268
+ readonly height: "number";
269
+ };
270
+ readonly textAlign: readonly ["left", "center", "right", "justify"];
271
+ };
272
+ readonly defaults: {
273
+ readonly fontSize: "14@fs";
274
+ readonly fontWeight: "600";
275
+ };
276
+ readonly types: {};
277
+ }, {
278
+ readonly schemaVersion: 1;
279
+ readonly allowUnknownAttributes: false;
280
+ readonly pattern: {
281
+ readonly type: "OnboardTitle";
282
+ readonly children: "node";
283
+ readonly attributes: {
284
+ readonly color: "string";
285
+ readonly fontSize: "number";
286
+ readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
287
+ readonly scrollable: "boolean";
288
+ readonly flexDirection: readonly ["row", "column"];
289
+ readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
290
+ readonly justifyContent: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
291
+ readonly gap: "string";
292
+ readonly padding: "number";
293
+ readonly paddingHorizontal: "string";
294
+ readonly paddingVertical: "string";
295
+ readonly paddingTop: "string";
296
+ readonly paddingBottom: "string";
297
+ readonly paddingLeft: "string";
298
+ readonly paddingRight: "string";
299
+ readonly margin: "string";
300
+ readonly marginHorizontal: "string";
301
+ readonly marginVertical: "string";
302
+ readonly marginTop: "string";
303
+ readonly marginBottom: "string";
304
+ readonly marginLeft: "string";
305
+ readonly marginRight: "string";
306
+ readonly backgroundColor: "string";
307
+ readonly borderRadius: "string";
308
+ readonly width: "number";
309
+ readonly height: "number";
310
+ };
311
+ readonly textAlign: readonly ["left", "center", "right", "justify"];
312
+ };
313
+ readonly defaults: {
314
+ readonly fontSize: "24@fs";
315
+ readonly fontWeight: "700";
316
+ readonly textAlign: "center";
317
+ };
318
+ readonly types: {};
319
+ }, {
320
+ readonly schemaVersion: 1;
321
+ readonly allowUnknownAttributes: false;
322
+ readonly pattern: {
323
+ readonly type: "text";
324
+ readonly children: "string";
325
+ readonly attributes: {
326
+ readonly scrollable: "boolean";
327
+ readonly flexDirection: readonly ["row", "column"];
328
+ readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
329
+ readonly justifyContent: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
330
+ readonly gap: "string";
331
+ readonly padding: "number";
332
+ readonly paddingHorizontal: "string";
333
+ readonly paddingVertical: "string";
334
+ readonly paddingTop: "string";
335
+ readonly paddingBottom: "string";
336
+ readonly paddingLeft: "string";
337
+ readonly paddingRight: "string";
338
+ readonly margin: "string";
339
+ readonly marginHorizontal: "string";
340
+ readonly marginVertical: "string";
341
+ readonly marginTop: "string";
342
+ readonly marginBottom: "string";
343
+ readonly marginLeft: "string";
344
+ readonly marginRight: "string";
345
+ readonly backgroundColor: "string";
346
+ readonly borderRadius: "string";
347
+ readonly width: "number";
348
+ readonly height: "number";
349
+ readonly color: "string";
350
+ readonly fontSize: "number";
351
+ readonly fontWeight: readonly ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
352
+ };
353
+ readonly textAlign: readonly ["left", "center", "right", "justify"];
354
+ };
355
+ readonly types: {};
356
+ readonly defaults: {};
357
+ }, {
358
+ readonly schemaVersion: 1;
359
+ readonly allowUnknownAttributes: false;
360
+ readonly pattern: {
361
+ readonly type: "view";
362
+ readonly children: readonly ["node", "array"];
363
+ readonly attributes: {
364
+ readonly scrollable: "boolean";
365
+ readonly flexDirection: readonly ["row", "column"];
366
+ readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
367
+ readonly justifyContent: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
368
+ readonly gap: "string";
369
+ readonly padding: "number";
370
+ readonly paddingHorizontal: "string";
371
+ readonly paddingVertical: "string";
372
+ readonly paddingTop: "string";
373
+ readonly paddingBottom: "string";
374
+ readonly paddingLeft: "string";
375
+ readonly paddingRight: "string";
376
+ readonly margin: "string";
377
+ readonly marginHorizontal: "string";
378
+ readonly marginVertical: "string";
379
+ readonly marginTop: "string";
380
+ readonly marginBottom: "string";
381
+ readonly marginLeft: "string";
382
+ readonly marginRight: "string";
383
+ readonly backgroundColor: "string";
384
+ readonly borderRadius: "string";
385
+ readonly width: "number";
386
+ readonly height: "number";
387
+ };
388
+ };
389
+ }];