@developer_tribe/react-builder 1.0.1 → 1.0.3

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 (218) hide show
  1. package/dist/AttributesEditor.d.ts +3 -1
  2. package/dist/DeviceMockFrame.d.ts +2 -1
  3. package/dist/RenderPage.d.ts +5 -3
  4. package/dist/attributes-editor/Field.d.ts +17 -0
  5. package/dist/attributes-editor/FieldInfoTooltip.d.ts +7 -0
  6. package/dist/attributes-editor/LayoutPreviewPicker.d.ts +12 -0
  7. package/dist/attributes-editor/SpecialCategorySection.d.ts +20 -0
  8. package/dist/attributes-editor/types.d.ts +14 -0
  9. package/dist/background.jpg +0 -0
  10. package/dist/build-components/BackgroundImage/BackgroundImage.d.ts +5 -0
  11. package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +44 -0
  12. package/dist/build-components/Button/Button.d.ts +1 -1
  13. package/dist/build-components/Button/ButtonProps.generated.d.ts +33 -1
  14. package/dist/build-components/Carousel/CarouselProps.generated.d.ts +34 -1
  15. package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +32 -0
  16. package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +32 -0
  17. package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +34 -1
  18. package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +34 -1
  19. package/dist/build-components/Image/ImageProps.generated.d.ts +32 -3
  20. package/dist/build-components/Onboard/OnboardProps.generated.d.ts +34 -1
  21. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +32 -0
  22. package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +32 -0
  23. package/dist/build-components/OnboardDot/OnboardDot.d.ts +1 -1
  24. package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +29 -0
  25. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +11 -5
  26. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +32 -3
  27. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +31 -3
  28. package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +32 -5
  29. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +11 -5
  30. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +11 -5
  31. package/dist/build-components/Text/TextProps.generated.d.ts +11 -5
  32. package/dist/build-components/View/ViewProps.generated.d.ts +10 -4
  33. package/dist/build-components/index.d.ts +2 -1
  34. package/dist/build-components/patterns.generated.d.ts +6288 -136
  35. package/dist/components/AttributesEditorPanel.d.ts +3 -4
  36. package/dist/components/Breadcrumb.d.ts +3 -1
  37. package/dist/components/Builder.d.ts +2 -1
  38. package/dist/components/BuilderButton.d.ts +9 -0
  39. package/dist/components/Checkbox.d.ts +17 -0
  40. package/dist/components/DeviceButton.d.ts +8 -0
  41. package/dist/components/DeviceNavigationBar.d.ts +10 -0
  42. package/dist/components/DeviceStatusBar.d.ts +9 -0
  43. package/dist/components/EditorHeader.d.ts +3 -8
  44. package/dist/index.cjs.js +5 -5
  45. package/dist/index.cjs.js.map +1 -1
  46. package/dist/index.d.ts +2 -2
  47. package/dist/index.esm.js +5 -5
  48. package/dist/index.esm.js.map +1 -1
  49. package/dist/mockOS/components/MockLaunchScreenComponent.d.ts +6 -0
  50. package/dist/mockOS/components/MockOSRouter.d.ts +8 -0
  51. package/dist/mockOS/components/PermissionModal.d.ts +9 -0
  52. package/dist/mockOS/context/MockOSContext.d.ts +36 -0
  53. package/dist/mockOS/hooks/useMockNavigation.d.ts +3 -0
  54. package/dist/mockOS/hooks/useMockPermission.d.ts +3 -0
  55. package/dist/mockOS/index.d.ts +9 -0
  56. package/dist/mockOS/managers/mockPermissionManager.d.ts +10 -0
  57. package/dist/mockOS/managers/navigationManager.d.ts +17 -0
  58. package/dist/modals/AddComponentModal.d.ts +8 -0
  59. package/dist/modals/ColorModal.d.ts +11 -0
  60. package/dist/modals/DeviceSelectorModal.d.ts +9 -0
  61. package/dist/modals/LocalicationModal.d.ts +8 -0
  62. package/dist/modals/Modal.d.ts +12 -0
  63. package/dist/modals/index.d.ts +5 -0
  64. package/dist/pages/ProjectPage.d.ts +3 -3
  65. package/dist/pages/tabs/BuilderPanel.d.ts +8 -0
  66. package/dist/pages/tabs/{DebugTab.d.ts → SideTool.d.ts} +2 -2
  67. package/dist/store.d.ts +7 -3
  68. package/dist/styles.css +1 -1
  69. package/dist/types/Project.d.ts +11 -0
  70. package/dist/utils/analyseNode.d.ts +1 -0
  71. package/dist/utils/extractTextStyle.d.ts +8 -1
  72. package/dist/utils/extractViewStyle.d.ts +8 -1
  73. package/dist/utils/parseColor.d.ts +7 -0
  74. package/dist/utils/patterns.d.ts +24 -0
  75. package/package.json +2 -1
  76. package/scripts/prebuild/utils/createGeneratedProps.js +11 -3
  77. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +45 -6
  78. package/scripts/prebuild/utils/validatePatternJson.js +13 -5
  79. package/src/AttributesEditor.tsx +493 -310
  80. package/src/DeviceMockFrame.tsx +21 -37
  81. package/src/RenderPage.tsx +86 -7
  82. package/src/assets/images/android.svg +42 -42
  83. package/src/assets/images/apple.svg +15 -15
  84. package/src/attributes-editor/Field.tsx +669 -0
  85. package/src/attributes-editor/FieldInfoTooltip.tsx +49 -0
  86. package/src/attributes-editor/LayoutPreviewPicker.tsx +199 -0
  87. package/src/attributes-editor/SpecialCategorySection.tsx +285 -0
  88. package/src/attributes-editor/types.ts +30 -0
  89. package/src/build-components/BackgroundImage/BackgroundImage.tsx +87 -0
  90. package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +60 -0
  91. package/src/build-components/BackgroundImage/pattern.json +45 -0
  92. package/src/build-components/Button/Button.tsx +37 -2
  93. package/src/build-components/Button/ButtonProps.generated.ts +44 -1
  94. package/src/build-components/Button/pattern.json +31 -2
  95. package/src/build-components/Carousel/Carousel.tsx +39 -2
  96. package/src/build-components/Carousel/CarouselProps.generated.ts +46 -1
  97. package/src/build-components/Carousel/pattern.json +10 -0
  98. package/src/build-components/CarouselButtons/CarouselButtons.tsx +21 -2
  99. package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +43 -0
  100. package/src/build-components/CarouselButtons/pattern.json +22 -0
  101. package/src/build-components/CarouselDots/CarouselDots.tsx +49 -8
  102. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +43 -0
  103. package/src/build-components/CarouselDots/pattern.json +15 -0
  104. package/src/build-components/CarouselItem/CarouselItem.tsx +21 -2
  105. package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +46 -1
  106. package/src/build-components/CarouselItem/pattern.json +7 -0
  107. package/src/build-components/CarouselProvider/CarouselProvider.tsx +21 -2
  108. package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +46 -1
  109. package/src/build-components/CarouselProvider/pattern.json +7 -0
  110. package/src/build-components/Image/Image.tsx +33 -2
  111. package/src/build-components/Image/ImageProps.generated.ts +43 -3
  112. package/src/build-components/Image/pattern.json +46 -3
  113. package/src/build-components/Onboard/Onboard.tsx +6 -1
  114. package/src/build-components/Onboard/OnboardProps.generated.ts +46 -1
  115. package/src/build-components/Onboard/pattern.json +11 -0
  116. package/src/build-components/OnboardButton/OnboardButton.tsx +54 -6
  117. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +43 -0
  118. package/src/build-components/OnboardButton/pattern.json +71 -5
  119. package/src/build-components/OnboardButtons/OnboardButtons.tsx +33 -11
  120. package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +43 -0
  121. package/src/build-components/OnboardButtons/pattern.json +70 -4
  122. package/src/build-components/OnboardDot/OnboardDot.tsx +113 -4
  123. package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +29 -0
  124. package/src/build-components/OnboardDot/pattern.json +55 -2
  125. package/src/build-components/OnboardFooter/OnboardFooter.tsx +20 -4
  126. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +11 -5
  127. package/src/build-components/OnboardFooter/pattern.json +58 -2
  128. package/src/build-components/OnboardImage/OnboardImage.tsx +49 -5
  129. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +43 -3
  130. package/src/build-components/OnboardImage/pattern.json +21 -0
  131. package/src/build-components/OnboardItem/OnboardItem.tsx +17 -1
  132. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +42 -3
  133. package/src/build-components/OnboardItem/pattern.json +38 -2
  134. package/src/build-components/OnboardProvider/OnboardProvider.tsx +52 -18
  135. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +44 -5
  136. package/src/build-components/OnboardProvider/pattern.json +44 -5
  137. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +11 -5
  138. package/src/build-components/OnboardSubtitle/pattern.json +7 -1
  139. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +11 -5
  140. package/src/build-components/OnboardTitle/pattern.json +7 -1
  141. package/src/build-components/RenderNode.generated.tsx +3 -0
  142. package/src/build-components/Text/Text.tsx +34 -6
  143. package/src/build-components/Text/TextProps.generated.ts +11 -5
  144. package/src/build-components/Text/pattern.json +38 -2
  145. package/src/build-components/View/View.tsx +33 -6
  146. package/src/build-components/View/ViewProps.generated.ts +10 -4
  147. package/src/build-components/View/pattern.json +285 -19
  148. package/src/build-components/index.ts +5 -0
  149. package/src/build-components/patterns.generated.ts +6346 -143
  150. package/src/components/AttributesEditorPanel.tsx +17 -64
  151. package/src/components/Breadcrumb.tsx +37 -5
  152. package/src/components/Builder.tsx +311 -108
  153. package/src/components/BuilderButton.tsx +127 -0
  154. package/src/components/Checkbox.tsx +81 -0
  155. package/src/components/DeviceButton.tsx +39 -0
  156. package/src/components/DeviceNavigationBar.tsx +201 -0
  157. package/src/components/DeviceStatusBar.tsx +85 -0
  158. package/src/components/EditorHeader.tsx +26 -74
  159. package/src/index.ts +2 -2
  160. package/src/mockOS/components/MockLaunchScreenComponent.tsx +43 -0
  161. package/src/mockOS/components/MockOSRouter.tsx +123 -0
  162. package/src/mockOS/components/PermissionModal.tsx +270 -0
  163. package/src/mockOS/context/MockOSContext.tsx +179 -0
  164. package/src/mockOS/hooks/useMockNavigation.ts +11 -0
  165. package/src/mockOS/hooks/useMockPermission.ts +11 -0
  166. package/src/mockOS/index.ts +26 -0
  167. package/src/mockOS/managers/mockPermissionManager.ts +54 -0
  168. package/src/mockOS/managers/navigationManager.ts +91 -0
  169. package/src/modals/AddComponentModal.tsx +313 -0
  170. package/src/modals/ColorModal.tsx +425 -0
  171. package/src/modals/DeviceSelectorModal.tsx +57 -0
  172. package/src/modals/LocalicationModal.tsx +54 -0
  173. package/src/modals/Modal.tsx +57 -0
  174. package/src/modals/index.ts +5 -0
  175. package/src/pages/ProjectPage.tsx +307 -71
  176. package/src/pages/tabs/{BuilderTab.tsx → BuilderPanel.tsx} +13 -9
  177. package/src/pages/tabs/SideTool.tsx +259 -0
  178. package/src/size-matters/index.ts +27 -5
  179. package/src/store.ts +13 -5
  180. package/src/styles/base/_global.scss +404 -0
  181. package/src/styles/components/_attributes-editor.scss +273 -0
  182. package/src/styles/components/_editor-shell.scss +212 -0
  183. package/src/styles/components/_mockos-router.scss +140 -0
  184. package/src/styles/components/_ui-components.scss +183 -0
  185. package/src/styles/foundation/_colors.scss +8 -0
  186. package/src/styles/{_mixins.scss → foundation/_mixins.scss} +5 -4
  187. package/src/styles/{_reset.scss → foundation/_reset.scss} +5 -2
  188. package/src/styles/foundation/_sizes.scss +37 -0
  189. package/src/styles/foundation/_typography.scss +4 -0
  190. package/src/styles/foundation/_variables.scss +3 -0
  191. package/src/styles/index.scss +22 -136
  192. package/src/styles/layout/_builder.scss +124 -0
  193. package/src/styles/layout/_pages.scss +3 -0
  194. package/src/styles/modals/_add-component.scss +122 -0
  195. package/src/styles/modals/_color-modal.scss +159 -0
  196. package/src/styles/modals/_device-selector.scss +18 -0
  197. package/src/styles/modals/_localication-modal.scss +68 -0
  198. package/src/styles/modals/_modal-shell.scss +46 -0
  199. package/src/styles/utilities/_carousel.scss +125 -0
  200. package/src/types/Project.ts +14 -0
  201. package/src/types/images.d.ts +8 -0
  202. package/src/utils/analyseNode.ts +98 -0
  203. package/src/utils/extractTextStyle.ts +28 -10
  204. package/src/utils/extractViewStyle.ts +77 -9
  205. package/src/utils/parseColor.ts +43 -0
  206. package/src/utils/patterns.ts +33 -0
  207. package/dist/build-components/OnboardDot/OnboardExpandingDotProps.generated.d.ts +0 -10
  208. package/dist/pages/tabs/BuilderTab.d.ts +0 -9
  209. package/dist/pages/tabs/PreviewTab.d.ts +0 -3
  210. package/src/build-components/OnboardDot/OnboardExpandingDotProps.generated.ts +0 -20
  211. package/src/pages/tabs/DebugTab.tsx +0 -23
  212. package/src/pages/tabs/PreviewTab.tsx +0 -194
  213. package/src/styles/_variables.scss +0 -27
  214. package/src/styles/builder.scss +0 -60
  215. package/src/styles/components.scss +0 -88
  216. package/src/styles/editor.scss +0 -174
  217. package/src/styles/global.scss +0 -200
  218. package/src/styles/pages.scss +0 -2
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { Node } from './types/Node';
3
+ import type { ProjectColors } from './types/Project';
3
4
  type AttributesEditorProps = {
4
5
  node: Node;
5
6
  onChange: (next: Node) => void;
7
+ projectColors?: ProjectColors;
6
8
  };
7
- export declare function AttributesEditor({ node, onChange }: AttributesEditorProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export declare function AttributesEditor({ node, onChange, projectColors, }: AttributesEditorProps): import("react/jsx-runtime").JSX.Element | null;
8
10
  declare const _default: React.MemoExoticComponent<typeof AttributesEditor>;
9
11
  export default _default;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  type DeviceMockFrameProps = {
3
3
  children: React.ReactNode;
4
+ appName?: string;
4
5
  };
5
- export declare function DeviceMockFrame({ children }: DeviceMockFrameProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function DeviceMockFrame({ children, appName }: DeviceMockFrameProps): import("react/jsx-runtime").JSX.Element;
6
7
  export default DeviceMockFrame;
@@ -11,8 +11,10 @@ export type ScreenStyle = {
11
11
  seperatorColor?: string;
12
12
  };
13
13
  };
14
- type RenderPageProps = {
14
+ interface RenderPageProps {
15
15
  data: Node;
16
- };
17
- export declare function RenderPage({ data }: RenderPageProps): import("react/jsx-runtime").JSX.Element;
16
+ name: string;
17
+ onSelectNode?: (node: Node | null) => void;
18
+ }
19
+ export declare function RenderPage({ data, name, onSelectNode }: RenderPageProps): import("react/jsx-runtime").JSX.Element;
18
20
  export {};
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { ViewPropsGenerated } from '../build-components/View/ViewProps.generated';
3
+ import type { ProjectColors } from '../types/Project';
4
+ import { LayoutContext } from './types';
5
+ export type FieldProps = {
6
+ name: string;
7
+ type: string | string[];
8
+ value: any;
9
+ onChange: (v: any) => void;
10
+ componentType?: string;
11
+ projectColors?: ProjectColors;
12
+ layoutContext?: LayoutContext;
13
+ viewAttributes?: Partial<ViewPropsGenerated['attributes']>;
14
+ label?: React.ReactNode;
15
+ preferredScale?: string;
16
+ };
17
+ export declare function Field({ name, type, value, onChange, componentType, projectColors, layoutContext, viewAttributes, label, preferredScale, }: FieldProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type FieldInfoTooltipProps = {
3
+ description?: string;
4
+ children: React.ReactNode;
5
+ };
6
+ export declare function FieldInfoTooltip({ description, children, }: FieldInfoTooltipProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { ViewPropsGenerated } from '../build-components/View/ViewProps.generated';
2
+ import { LayoutContext, LayoutFieldName } from './types';
3
+ type LayoutPreviewPickerProps = {
4
+ mode: LayoutFieldName;
5
+ options: string[];
6
+ value?: string;
7
+ onChange: (val?: string) => void;
8
+ layoutContext?: LayoutContext;
9
+ viewAttributes?: Partial<ViewPropsGenerated['attributes']>;
10
+ };
11
+ export declare function LayoutPreviewPicker({ mode, options, value, onChange, layoutContext, viewAttributes, }: LayoutPreviewPickerProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export {};
@@ -0,0 +1,20 @@
1
+ import { NodeDefaultAttribute } from '../types/Node';
2
+ import type { ProjectColors } from '../types/Project';
3
+ import { AttributeMetaMap, LayoutContext, SchemaEntry } from './types';
4
+ type SpecialCategorySectionProps = {
5
+ category: string;
6
+ entries: SchemaEntry[];
7
+ attributeMeta?: AttributeMetaMap;
8
+ attributes: NodeDefaultAttribute;
9
+ onAttributeChange: (name: string, value: unknown) => void;
10
+ componentType?: string;
11
+ projectColors?: ProjectColors;
12
+ layoutContext?: LayoutContext;
13
+ viewAttributes?: NodeDefaultAttribute;
14
+ meta?: {
15
+ label?: string;
16
+ description?: string;
17
+ };
18
+ };
19
+ export declare function SpecialCategorySection({ category, entries, attributeMeta, attributes, onAttributeChange, componentType, projectColors, layoutContext, viewAttributes, meta, }: SpecialCategorySectionProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { AlignItemsOptionType, FlexDirectionOptionType, JustifyContentOptionType } from '../build-components/View/ViewProps.generated';
2
+ import { getAttributeMeta } from '../utils/patterns';
3
+ export type SchemaEntry = {
4
+ name: string;
5
+ type: string | string[];
6
+ };
7
+ export type AttributeMetaMap = ReturnType<typeof getAttributeMeta>;
8
+ export type LayoutFieldName = 'flexDirection' | 'alignItems' | 'justifyContent';
9
+ export type LayoutContext = {
10
+ flexDirection?: FlexDirectionOptionType;
11
+ alignItems?: AlignItemsOptionType;
12
+ justifyContent?: JustifyContentOptionType;
13
+ };
14
+ export declare function isBooleanFieldType(type: string | string[]): boolean;
Binary file
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { BackgroundImageComponentProps } from './BackgroundImageProps.generated';
3
+ declare function BackgroundImage({ node }: BackgroundImageComponentProps): import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: React.MemoExoticComponent<typeof BackgroundImage>;
5
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
6
+ export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
7
+ export interface BackgroundImagePropsGenerated {
8
+ child: string;
9
+ attributes: {
10
+ scrollable?: boolean;
11
+ flexDirection?: FlexDirectionOptionType;
12
+ alignItems?: AlignItemsOptionType;
13
+ justifyContent?: JustifyContentOptionType;
14
+ gap?: string;
15
+ padding?: string;
16
+ paddingHorizontal?: string;
17
+ paddingVertical?: string;
18
+ paddingTop?: string;
19
+ paddingBottom?: string;
20
+ paddingLeft?: string;
21
+ paddingRight?: string;
22
+ margin?: string;
23
+ marginVertical?: string;
24
+ marginTop?: string;
25
+ marginBottom?: string;
26
+ marginLeft?: string;
27
+ marginRight?: string;
28
+ backgroundColor?: string;
29
+ borderRadius?: string;
30
+ width?: string;
31
+ height?: string;
32
+ position?: PositionOptionType;
33
+ top?: string;
34
+ bottom?: string;
35
+ left?: string;
36
+ right?: string;
37
+ zIndex?: number;
38
+ src?: string;
39
+ resizeMode?: ResizeModeOptionType;
40
+ };
41
+ }
42
+ export interface BackgroundImageComponentProps {
43
+ node: NodeData<BackgroundImagePropsGenerated['attributes']>;
44
+ }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ButtonComponentProps } from './ButtonProps.generated';
3
- declare function Button({ node }: ButtonComponentProps): string;
3
+ declare function Button({ node }: ButtonComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Button>;
5
5
  export default _default;
@@ -1,10 +1,42 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export type FontWeightOptionType = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
3
7
  export interface ButtonPropsGenerated {
4
8
  child: string;
5
9
  attributes: {
10
+ scrollable?: boolean;
11
+ flexDirection?: FlexDirectionOptionType;
12
+ alignItems?: AlignItemsOptionType;
13
+ justifyContent?: JustifyContentOptionType;
14
+ gap?: string;
15
+ padding?: string;
16
+ paddingHorizontal?: string;
17
+ paddingVertical?: string;
18
+ paddingTop?: string;
19
+ paddingBottom?: string;
20
+ paddingLeft?: string;
21
+ paddingRight?: string;
22
+ margin?: string;
23
+ marginVertical?: string;
24
+ marginTop?: string;
25
+ marginBottom?: string;
26
+ marginLeft?: string;
27
+ marginRight?: string;
28
+ backgroundColor?: string;
29
+ borderRadius?: string;
30
+ width?: string;
31
+ height?: string;
32
+ position?: PositionOptionType;
33
+ top?: string;
34
+ bottom?: string;
35
+ left?: string;
36
+ right?: string;
37
+ zIndex?: number;
6
38
  color?: string;
7
- fontSize?: number;
39
+ fontSize?: string;
8
40
  fontWeight?: FontWeightOptionType;
9
41
  };
10
42
  }
@@ -1,7 +1,40 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export interface CarouselPropsGenerated {
3
7
  child: string;
4
- attributes: {};
8
+ attributes: {
9
+ scrollable?: boolean;
10
+ flexDirection?: FlexDirectionOptionType;
11
+ alignItems?: AlignItemsOptionType;
12
+ justifyContent?: JustifyContentOptionType;
13
+ gap?: string;
14
+ padding?: string;
15
+ paddingHorizontal?: string;
16
+ paddingVertical?: string;
17
+ paddingTop?: string;
18
+ paddingBottom?: string;
19
+ paddingLeft?: string;
20
+ paddingRight?: string;
21
+ margin?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
27
+ backgroundColor?: string;
28
+ borderRadius?: string;
29
+ width?: string;
30
+ height?: string;
31
+ position?: PositionOptionType;
32
+ top?: string;
33
+ bottom?: string;
34
+ left?: string;
35
+ right?: string;
36
+ zIndex?: number;
37
+ };
5
38
  }
6
39
  export interface CarouselComponentProps {
7
40
  node: NodeData<CarouselPropsGenerated['attributes']>;
@@ -1,8 +1,40 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
3
7
  export interface CarouselButtonsPropsGenerated {
4
8
  child: string;
5
9
  attributes: {
10
+ scrollable?: boolean;
11
+ flexDirection?: FlexDirectionOptionType;
12
+ alignItems?: AlignItemsOptionType;
13
+ justifyContent?: JustifyContentOptionType;
14
+ gap?: string;
15
+ padding?: string;
16
+ paddingHorizontal?: string;
17
+ paddingVertical?: string;
18
+ paddingTop?: string;
19
+ paddingBottom?: string;
20
+ paddingLeft?: string;
21
+ paddingRight?: string;
22
+ margin?: string;
23
+ marginVertical?: string;
24
+ marginTop?: string;
25
+ marginBottom?: string;
26
+ marginLeft?: string;
27
+ marginRight?: string;
28
+ backgroundColor?: string;
29
+ borderRadius?: string;
30
+ width?: string;
31
+ height?: string;
32
+ position?: PositionOptionType;
33
+ top?: string;
34
+ bottom?: string;
35
+ left?: string;
36
+ right?: string;
37
+ zIndex?: number;
6
38
  buttonType?: ButtonTypeOptionType;
7
39
  skipNumber?: number;
8
40
  };
@@ -1,8 +1,40 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export type DotTypeOptionType = 'expanding_dot' | 'normal_dot' | 'scaling_dot' | 'sliding_border' | 'sliding_dot' | 'liquid_like';
3
7
  export interface CarouselDotsPropsGenerated {
4
8
  child: string;
5
9
  attributes: {
10
+ scrollable?: boolean;
11
+ flexDirection?: FlexDirectionOptionType;
12
+ alignItems?: AlignItemsOptionType;
13
+ justifyContent?: JustifyContentOptionType;
14
+ gap?: string;
15
+ padding?: string;
16
+ paddingHorizontal?: string;
17
+ paddingVertical?: string;
18
+ paddingTop?: string;
19
+ paddingBottom?: string;
20
+ paddingLeft?: string;
21
+ paddingRight?: string;
22
+ margin?: string;
23
+ marginVertical?: string;
24
+ marginTop?: string;
25
+ marginBottom?: string;
26
+ marginLeft?: string;
27
+ marginRight?: string;
28
+ backgroundColor?: string;
29
+ borderRadius?: string;
30
+ width?: string;
31
+ height?: string;
32
+ position?: PositionOptionType;
33
+ top?: string;
34
+ bottom?: string;
35
+ left?: string;
36
+ right?: string;
37
+ zIndex?: number;
6
38
  dotType?: DotTypeOptionType;
7
39
  };
8
40
  }
@@ -1,7 +1,40 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export interface CarouselItemPropsGenerated {
3
7
  child: string;
4
- attributes: {};
8
+ attributes: {
9
+ scrollable?: boolean;
10
+ flexDirection?: FlexDirectionOptionType;
11
+ alignItems?: AlignItemsOptionType;
12
+ justifyContent?: JustifyContentOptionType;
13
+ gap?: string;
14
+ padding?: string;
15
+ paddingHorizontal?: string;
16
+ paddingVertical?: string;
17
+ paddingTop?: string;
18
+ paddingBottom?: string;
19
+ paddingLeft?: string;
20
+ paddingRight?: string;
21
+ margin?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
27
+ backgroundColor?: string;
28
+ borderRadius?: string;
29
+ width?: string;
30
+ height?: string;
31
+ position?: PositionOptionType;
32
+ top?: string;
33
+ bottom?: string;
34
+ left?: string;
35
+ right?: string;
36
+ zIndex?: number;
37
+ };
5
38
  }
6
39
  export interface CarouselItemComponentProps {
7
40
  node: NodeData<CarouselItemPropsGenerated['attributes']>;
@@ -1,7 +1,40 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export interface CarouselProviderPropsGenerated {
3
7
  child: string;
4
- attributes: {};
8
+ attributes: {
9
+ scrollable?: boolean;
10
+ flexDirection?: FlexDirectionOptionType;
11
+ alignItems?: AlignItemsOptionType;
12
+ justifyContent?: JustifyContentOptionType;
13
+ gap?: string;
14
+ padding?: string;
15
+ paddingHorizontal?: string;
16
+ paddingVertical?: string;
17
+ paddingTop?: string;
18
+ paddingBottom?: string;
19
+ paddingLeft?: string;
20
+ paddingRight?: string;
21
+ margin?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
27
+ backgroundColor?: string;
28
+ borderRadius?: string;
29
+ width?: string;
30
+ height?: string;
31
+ position?: PositionOptionType;
32
+ top?: string;
33
+ bottom?: string;
34
+ left?: string;
35
+ right?: string;
36
+ zIndex?: number;
37
+ };
5
38
  }
6
39
  export interface CarouselProviderComponentProps {
7
40
  node: NodeData<CarouselProviderPropsGenerated['attributes']>;
@@ -1,13 +1,42 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export type ResizeModeOptionType = 'cover' | 'contain' | 'stretch' | 'center';
3
7
  export interface ImagePropsGenerated {
4
8
  child: string;
5
9
  attributes: {
10
+ scrollable?: boolean;
11
+ flexDirection?: FlexDirectionOptionType;
12
+ alignItems?: AlignItemsOptionType;
13
+ justifyContent?: JustifyContentOptionType;
14
+ gap?: string;
15
+ padding?: string;
16
+ paddingHorizontal?: string;
17
+ paddingVertical?: string;
18
+ paddingTop?: string;
19
+ paddingBottom?: string;
20
+ paddingLeft?: string;
21
+ paddingRight?: string;
22
+ margin?: string;
23
+ marginVertical?: string;
24
+ marginTop?: string;
25
+ marginBottom?: string;
26
+ marginLeft?: string;
27
+ marginRight?: string;
28
+ backgroundColor?: string;
29
+ borderRadius?: string;
30
+ width?: string;
31
+ height?: string;
32
+ position?: PositionOptionType;
33
+ top?: string;
34
+ bottom?: string;
35
+ left?: string;
36
+ right?: string;
37
+ zIndex?: number;
6
38
  src?: string;
7
- width?: number;
8
- height?: number;
9
39
  resizeMode?: ResizeModeOptionType;
10
- borderRadius?: number;
11
40
  };
12
41
  }
13
42
  export interface ImageComponentProps {
@@ -1,7 +1,40 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export interface OnboardPropsGenerated {
3
7
  child: string;
4
- attributes: {};
8
+ attributes: {
9
+ scrollable?: boolean;
10
+ flexDirection?: FlexDirectionOptionType;
11
+ alignItems?: AlignItemsOptionType;
12
+ justifyContent?: JustifyContentOptionType;
13
+ gap?: string;
14
+ padding?: string;
15
+ paddingHorizontal?: string;
16
+ paddingVertical?: string;
17
+ paddingTop?: string;
18
+ paddingBottom?: string;
19
+ paddingLeft?: string;
20
+ paddingRight?: string;
21
+ margin?: string;
22
+ marginVertical?: string;
23
+ marginTop?: string;
24
+ marginBottom?: string;
25
+ marginLeft?: string;
26
+ marginRight?: string;
27
+ backgroundColor?: string;
28
+ borderRadius?: string;
29
+ width?: string;
30
+ height?: string;
31
+ position?: PositionOptionType;
32
+ top?: string;
33
+ bottom?: string;
34
+ left?: string;
35
+ right?: string;
36
+ zIndex?: number;
37
+ };
5
38
  }
6
39
  export interface OnboardComponentProps {
7
40
  node: NodeData<OnboardPropsGenerated['attributes']>;
@@ -1,6 +1,10 @@
1
1
  import type { NodeData } from '../../types/Node';
2
2
  export type TypeOptionType = 'Permission' | 'Navigate';
3
3
  export type PermissionOptionType = 'att' | 'notification' | 'rating' | 'GDPR';
4
+ export type FlexDirectionOptionType = 'row' | 'column';
5
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
6
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
7
+ export type PositionOptionType = 'relative' | 'absolute';
4
8
  export type AnimationOptionType = 'simple-animation' | 'line-animation' | 'blur' | 'blur-animation' | 'blur-line-animation';
5
9
  export interface EventObjectGenerated {
6
10
  type?: TypeOptionType;
@@ -11,6 +15,34 @@ export interface EventObjectGenerated {
11
15
  export interface OnboardButtonPropsGenerated {
12
16
  child: string;
13
17
  attributes: {
18
+ scrollable?: boolean;
19
+ flexDirection?: FlexDirectionOptionType;
20
+ alignItems?: AlignItemsOptionType;
21
+ justifyContent?: JustifyContentOptionType;
22
+ gap?: string;
23
+ padding?: string;
24
+ paddingHorizontal?: string;
25
+ paddingVertical?: string;
26
+ paddingTop?: string;
27
+ paddingBottom?: string;
28
+ paddingLeft?: string;
29
+ paddingRight?: string;
30
+ margin?: string;
31
+ marginVertical?: string;
32
+ marginTop?: string;
33
+ marginBottom?: string;
34
+ marginLeft?: string;
35
+ marginRight?: string;
36
+ backgroundColor?: string;
37
+ borderRadius?: string;
38
+ width?: string;
39
+ height?: string;
40
+ position?: PositionOptionType;
41
+ top?: string;
42
+ bottom?: string;
43
+ left?: string;
44
+ right?: string;
45
+ zIndex?: number;
14
46
  labelKey?: string;
15
47
  button_text_color?: string;
16
48
  animation?: AnimationOptionType;
@@ -1,10 +1,42 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type FlexDirectionOptionType = 'row' | 'column';
3
+ export type AlignItemsOptionType = 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline';
4
+ export type JustifyContentOptionType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
5
+ export type PositionOptionType = 'relative' | 'absolute';
2
6
  export type ButtonTypeOptionType = 'previous_button' | 'next_button' | 'skip_button';
3
7
  export type ButtonsDirectionOptionType = 'row' | 'column';
4
8
  export type ConditionOptionType = 'carousel-index';
5
9
  export interface OnboardButtonsPropsGenerated {
6
10
  child: string;
7
11
  attributes: {
12
+ scrollable?: boolean;
13
+ flexDirection?: FlexDirectionOptionType;
14
+ alignItems?: AlignItemsOptionType;
15
+ justifyContent?: JustifyContentOptionType;
16
+ gap?: string;
17
+ padding?: string;
18
+ paddingHorizontal?: string;
19
+ paddingVertical?: string;
20
+ paddingTop?: string;
21
+ paddingBottom?: string;
22
+ paddingLeft?: string;
23
+ paddingRight?: string;
24
+ margin?: string;
25
+ marginVertical?: string;
26
+ marginTop?: string;
27
+ marginBottom?: string;
28
+ marginLeft?: string;
29
+ marginRight?: string;
30
+ backgroundColor?: string;
31
+ borderRadius?: string;
32
+ width?: string;
33
+ height?: string;
34
+ position?: PositionOptionType;
35
+ top?: string;
36
+ bottom?: string;
37
+ left?: string;
38
+ right?: string;
39
+ zIndex?: number;
8
40
  buttonType?: ButtonTypeOptionType;
9
41
  skipNumber?: number;
10
42
  buttons_direction?: ButtonsDirectionOptionType;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { OnboardDotComponentProps } from './OnboardExpandingDotProps.generated';
2
+ import type { OnboardDotComponentProps } from './OnboardDotProps.generated';
3
3
  declare function OnboardDot({ node }: OnboardDotComponentProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof OnboardDot>;
5
5
  export default _default;
@@ -1,8 +1,37 @@
1
1
  import type { NodeData } from '../../types/Node';
2
+ export type PositionOptionType = 'relative' | 'absolute';
2
3
  export type DotTypeOptionType = 'expanding_dot' | 'normal_dot' | 'scaling_dot' | 'sliding_border' | 'sliding_dot' | 'liquid_like';
3
4
  export interface OnboardDotPropsGenerated {
4
5
  child: string;
5
6
  attributes: {
7
+ scrollable?: boolean;
8
+ flexDirection?: never;
9
+ alignItems?: never;
10
+ justifyContent?: never;
11
+ gap?: string;
12
+ padding?: string;
13
+ paddingHorizontal?: string;
14
+ paddingVertical?: string;
15
+ paddingTop?: string;
16
+ paddingBottom?: string;
17
+ paddingLeft?: string;
18
+ paddingRight?: string;
19
+ margin?: string;
20
+ marginVertical?: string;
21
+ marginTop?: string;
22
+ marginBottom?: string;
23
+ marginLeft?: string;
24
+ marginRight?: string;
25
+ backgroundColor?: string;
26
+ borderRadius?: string;
27
+ width?: string;
28
+ height?: string;
29
+ position?: PositionOptionType;
30
+ top?: string;
31
+ bottom?: string;
32
+ left?: string;
33
+ right?: string;
34
+ zIndex?: number;
6
35
  dotType?: DotTypeOptionType;
7
36
  inactive_dot_opacity?: number;
8
37
  expanding_dot_width?: number;