@developer_tribe/react-builder 1.2.7 → 1.2.9
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/AttributesEditor.d.ts +2 -11
- package/dist/attribute-analyser/style/native/useExtractImageStyle.d.ts +10 -0
- package/dist/attribute-analyser/style/native/useExtractTextStyle.d.ts +9 -0
- package/dist/attribute-analyser/style/native/useExtractViewStyle.d.ts +8 -0
- package/dist/attribute-analyser/style/web/useExtractImageStyle.d.ts +4 -0
- package/dist/attribute-analyser/style/web/useExtractTextStyle.d.ts +4 -0
- package/dist/attribute-analyser/style/web/useExtractViewStyle.d.ts +4 -0
- package/dist/attributes-editor/AttributesEditorFields.d.ts +18 -0
- package/dist/attributes-editor/AttributesEditorView.d.ts +4 -0
- package/dist/attributes-editor/attributesEditorModelTypes.d.ts +67 -0
- package/dist/attributes-editor/attributesEditorUtils.d.ts +19 -0
- package/dist/attributes-editor/useAttributesEditorModel.d.ts +2 -0
- package/dist/build-components/BIcon/BIconProps.generated.d.ts +41 -38
- package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +37 -34
- package/dist/build-components/Button/ButtonProps.generated.d.ts +39 -36
- package/dist/build-components/Carousel/CarouselProps.generated.d.ts +37 -34
- package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +37 -34
- package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +37 -34
- package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +36 -33
- package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +36 -33
- package/dist/build-components/Image/ImageProps.generated.d.ts +38 -33
- package/dist/build-components/Main/MainProps.generated.d.ts +36 -33
- package/dist/build-components/Onboard/OnboardProps.generated.d.ts +36 -33
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +38 -34
- package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +39 -36
- package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +43 -34
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +41 -38
- package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +36 -31
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +39 -33
- package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +38 -34
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +41 -38
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +41 -38
- package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +36 -33
- package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +41 -38
- package/dist/build-components/PaywallOptions/PaywallOptionsProps.generated.d.ts +36 -33
- package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +36 -33
- package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +39 -36
- package/dist/build-components/RadioButton/RadioButtonProps.generated.d.ts +36 -33
- package/dist/build-components/Text/TextProps.generated.d.ts +41 -38
- package/dist/build-components/View/ViewProps.generated.d.ts +36 -33
- package/dist/build-components/patterns.generated.d.ts +2673 -5787
- package/dist/components/BuilderProvider.d.ts +6 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -26
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.cjs.js +6 -4
- package/dist/index.native.cjs.js.map +1 -1
- package/dist/index.native.d.ts +6 -3
- package/dist/index.native.esm.js +6 -4
- package/dist/index.native.esm.js.map +1 -1
- package/dist/migrations/migratePipe.d.ts +1 -1
- package/dist/migrations/migrations/1.1.2_extract_component_attributes_from_style.d.ts +2 -0
- package/dist/mockOS/components/PermissionModal.d.ts +1 -2
- package/dist/styles.css +1 -1
- package/dist/types/PreviewConfig.d.ts +1 -5
- package/dist/utils/extractImageStyle.d.ts +3 -0
- package/dist/utils/extractTextStyle/extractTextStyleNative.d.ts +17 -0
- package/dist/utils/extractTextStyle.d.ts +2 -0
- package/dist/utils/extractViewStyle/extractViewStyleNative.d.ts +12 -0
- package/dist/utils/extractViewStyle.d.ts +2 -0
- package/dist/utils/getMeta.d.ts +5 -0
- package/dist/utils/patterns.d.ts +14 -1
- package/package.json +2 -1
- package/scripts/prebuild/prebuild.js +14 -0
- package/scripts/prebuild/utils/createGeneratedProps.js +51 -3
- package/scripts/prebuild/utils/index.js +1 -0
- package/scripts/prebuild/utils/updateMetaJson.js +66 -0
- package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +37 -3
- package/scripts/prebuild/utils/validatePatternJson.js +27 -2
- package/scripts/public/scripts/build/index.js +20 -3
- package/scripts/public/scripts/build/info.json +6 -0
- package/scripts/public/scripts/build/utils/createComponentsIndex.js +9 -3
- package/scripts/public/scripts/build/utils/createRenderNodeGenerated.js +66 -8
- package/src/AttributesEditor.tsx +8 -944
- package/src/assets/meta.json +4 -0
- package/src/assets/samples/carousel-sample.json +1 -1
- package/src/assets/samples/getSamples.ts +2 -0
- package/src/assets/samples/paywall-1.json +11 -7
- package/src/assets/samples/simple-1.json +3 -3
- package/src/assets/samples/simple-2.json +3 -3
- package/src/assets/samples/unmigrated-builder-1.1.1.json +87 -0
- package/src/assets/samples/unmigrated-builder1.json +1 -1
- package/src/assets/samples/unvalidated-builder1.json +3 -3
- package/src/assets/samples/unvalidated-crash1.json +1 -1
- package/src/assets/samples/unvalidated-crashcomponent1.json +1 -1
- package/src/assets/samples/vpn-onboard-1.json +1 -1
- package/src/assets/samples/vpn-onboard-2.json +1 -1
- package/src/assets/samples/vpn-onboard-3.json +1 -1
- package/src/assets/samples/vpn-onboard-4.json +1 -1
- package/src/assets/samples/vpn-onboard-5.json +1 -1
- package/src/assets/samples/vpn-onboard-6.json +1 -1
- package/src/attribute-analyser/style/native/useExtractImageStyle.ts +46 -0
- package/src/attribute-analyser/style/native/useExtractTextStyle.ts +50 -0
- package/src/attribute-analyser/style/native/useExtractViewStyle.ts +32 -0
- package/src/attribute-analyser/style/web/useExtractImageStyle.ts +20 -0
- package/src/{hooks → attribute-analyser/style/web}/useExtractTextStyle.ts +7 -6
- package/src/{hooks → attribute-analyser/style/web}/useExtractViewStyle.ts +7 -6
- package/src/attributes-editor/AttributesEditorFields.tsx +248 -0
- package/src/attributes-editor/AttributesEditorView.tsx +360 -0
- package/src/attributes-editor/LayoutPreviewPicker.tsx +4 -3
- package/src/attributes-editor/attributesEditorModelTypes.ts +86 -0
- package/src/attributes-editor/attributesEditorUtils.ts +102 -0
- package/src/attributes-editor/useAttributesEditorModel.ts +477 -0
- package/src/build-components/BIcon/BIcon.tsx +4 -3
- package/src/build-components/BIcon/BIconProps.generated.ts +42 -38
- package/src/build-components/BIcon/pattern.json +5 -6
- package/src/build-components/BackgroundImage/BackgroundImage.tsx +7 -4
- package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +38 -34
- package/src/build-components/BackgroundImage/pattern.json +9 -17
- package/src/build-components/Button/Button.tsx +7 -6
- package/src/build-components/Button/ButtonProps.generated.ts +40 -36
- package/src/build-components/Button/pattern.json +17 -15
- package/src/build-components/Carousel/Carousel.tsx +1 -1
- package/src/build-components/Carousel/CarouselProps.generated.ts +38 -34
- package/src/build-components/CarouselButtons/CarouselButtons.tsx +4 -6
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +41 -37
- package/src/build-components/CarouselButtons/pattern.json +2 -1
- package/src/build-components/CarouselDots/CarouselDots.tsx +2 -2
- package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +44 -40
- package/src/build-components/CarouselItem/CarouselItem.tsx +1 -1
- package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +37 -33
- package/src/build-components/CarouselProvider/CarouselProvider.tsx +1 -1
- package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +37 -33
- package/src/build-components/Image/Image.tsx +4 -3
- package/src/build-components/Image/ImageProps.generated.ts +39 -33
- package/src/build-components/Image/pattern.json +5 -11
- package/src/build-components/Main/Main.tsx +1 -1
- package/src/build-components/Main/MainProps.generated.ts +37 -33
- package/src/build-components/Main/pattern.json +2 -1
- package/src/build-components/Onboard/OnboardProps.generated.ts +37 -33
- package/src/build-components/OnboardButton/OnboardButton.tsx +8 -6
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +44 -39
- package/src/build-components/OnboardButton/pattern.json +9 -7
- package/src/build-components/OnboardButtons/OnboardButtons.tsx +31 -31
- package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +43 -39
- package/src/build-components/OnboardButtons/pattern.json +9 -7
- package/src/build-components/OnboardDot/OnboardDot.tsx +7 -5
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +55 -34
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +19 -23
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +42 -38
- package/src/build-components/OnboardFooter/pattern.json +16 -14
- package/src/build-components/OnboardImage/OnboardImage.tsx +8 -7
- package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +37 -31
- package/src/build-components/OnboardImage/pattern.json +2 -1
- package/src/build-components/OnboardItem/OnboardItem.tsx +1 -1
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +40 -33
- package/src/build-components/OnboardItem/pattern.json +2 -1
- package/src/build-components/OnboardProvider/OnboardProvider.tsx +1 -1
- package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +39 -34
- package/src/build-components/OnboardProvider/pattern.json +2 -1
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +42 -38
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +42 -38
- package/src/build-components/PaywallBackground/PaywallBackground.tsx +1 -1
- package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +37 -33
- package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +6 -5
- package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +42 -38
- package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +1 -1
- package/src/build-components/PaywallOptions/PaywallOptionsProps.generated.ts +37 -33
- package/src/build-components/PaywallProvider/PaywallProvider.tsx +1 -1
- package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +37 -33
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +1 -1
- package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +40 -36
- package/src/build-components/RadioButton/RadioButton.tsx +5 -4
- package/src/build-components/RadioButton/RadioButtonProps.generated.ts +37 -33
- package/src/build-components/RadioButton/pattern.json +9 -7
- package/src/build-components/Text/Text.tsx +6 -8
- package/src/build-components/Text/TextProps.generated.ts +42 -38
- package/src/build-components/Text/pattern.json +15 -11
- package/src/build-components/View/View.tsx +1 -1
- package/src/build-components/View/ViewProps.generated.ts +37 -33
- package/src/build-components/View/pattern.json +71 -66
- package/src/build-components/patterns.generated.ts +3022 -5971
- package/src/components/AttributesEditorPanel.tsx +2 -2
- package/src/components/BuilderProvider.tsx +15 -1
- package/src/index.native.ts +7 -4
- package/src/index.ts +6 -77
- package/src/migrations/migratePipe.ts +7 -3
- package/src/migrations/migrations/1.1.2_extract_component_attributes_from_style.ts +211 -0
- package/src/mockOS/components/MockOSRouter.tsx +3 -1
- package/src/mockOS/components/PermissionModal.tsx +20 -160
- package/src/mockOS/components/SubscriptionModal.tsx +41 -278
- package/src/pages/ProjectPage.tsx +12 -6
- package/src/styles/components/_attributes-editor.scss +122 -0
- package/src/styles/components/_mockos-router.scss +388 -0
- package/src/styles/components/_onboard.scss +23 -0
- package/src/styles/index.scss +1 -0
- package/src/types/PreviewConfig.ts +1 -5
- package/src/utils/analyseNodeByPatterns.ts +39 -4
- package/src/utils/extractImageStyle.ts +34 -5
- package/src/utils/extractTextStyle/extractTextStyle.ts +7 -6
- package/src/utils/extractTextStyle/extractTextStyleNative.ts +106 -0
- package/src/utils/extractTextStyle.ts +2 -0
- package/src/utils/extractViewStyle/extractViewStyle.ts +2 -4
- package/src/utils/extractViewStyle/extractViewStyleNative.ts +111 -0
- package/src/utils/extractViewStyle.ts +2 -0
- package/src/utils/getMeta.ts +15 -0
- package/src/utils/patterns.ts +100 -3
- package/dist/hooks/useExtractImageStyle.d.ts +0 -3
- package/dist/hooks/useExtractTextStyle.d.ts +0 -3
- package/dist/hooks/useExtractViewStyle.d.ts +0 -3
- package/src/hooks/useExtractImageStyle.ts +0 -19
- package/src/migrations/migrations/1.1.0_normalize_style_attributes.ts +0 -80
|
@@ -19,48 +19,52 @@ export type JustifyContentOptionType =
|
|
|
19
19
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
20
|
export type TextAlignOptionType = 'left' | 'center' | 'right' | 'justify';
|
|
21
21
|
|
|
22
|
+
export interface TextStyleGenerated {
|
|
23
|
+
flexDirection?: FlexDirectionOptionType;
|
|
24
|
+
alignItems?: AlignItemsOptionType;
|
|
25
|
+
justifyContent?: JustifyContentOptionType;
|
|
26
|
+
gap?: string;
|
|
27
|
+
padding?: string;
|
|
28
|
+
paddingHorizontal?: string;
|
|
29
|
+
paddingVertical?: string;
|
|
30
|
+
paddingTop?: string;
|
|
31
|
+
paddingBottom?: string;
|
|
32
|
+
paddingLeft?: string;
|
|
33
|
+
paddingRight?: string;
|
|
34
|
+
margin?: string;
|
|
35
|
+
marginHorizontal?: string;
|
|
36
|
+
marginVertical?: string;
|
|
37
|
+
marginTop?: string;
|
|
38
|
+
marginBottom?: string;
|
|
39
|
+
marginLeft?: string;
|
|
40
|
+
marginRight?: string;
|
|
41
|
+
backgroundColor?: string;
|
|
42
|
+
borderRadius?: string;
|
|
43
|
+
width?: string;
|
|
44
|
+
minWidth?: string;
|
|
45
|
+
maxWidth?: string;
|
|
46
|
+
height?: string;
|
|
47
|
+
minHeight?: string;
|
|
48
|
+
maxHeight?: string;
|
|
49
|
+
flex?: number;
|
|
50
|
+
position?: PositionOptionType;
|
|
51
|
+
top?: string;
|
|
52
|
+
bottom?: string;
|
|
53
|
+
left?: string;
|
|
54
|
+
right?: string;
|
|
55
|
+
zIndex?: number;
|
|
56
|
+
color?: string;
|
|
57
|
+
fontSize?: string;
|
|
58
|
+
fontFamily?: string;
|
|
59
|
+
fontWeight?: string;
|
|
60
|
+
textAlign?: TextAlignOptionType;
|
|
61
|
+
}
|
|
62
|
+
|
|
22
63
|
export interface TextPropsGenerated {
|
|
23
64
|
child: string;
|
|
24
65
|
attributes: {
|
|
25
|
-
style?:
|
|
66
|
+
style?: TextStyleGenerated;
|
|
26
67
|
scrollable?: boolean;
|
|
27
|
-
flexDirection?: FlexDirectionOptionType;
|
|
28
|
-
alignItems?: AlignItemsOptionType;
|
|
29
|
-
justifyContent?: JustifyContentOptionType;
|
|
30
|
-
gap?: string;
|
|
31
|
-
padding?: string;
|
|
32
|
-
paddingHorizontal?: string;
|
|
33
|
-
paddingVertical?: string;
|
|
34
|
-
paddingTop?: string;
|
|
35
|
-
paddingBottom?: string;
|
|
36
|
-
paddingLeft?: string;
|
|
37
|
-
paddingRight?: string;
|
|
38
|
-
margin?: string;
|
|
39
|
-
marginVertical?: string;
|
|
40
|
-
marginTop?: string;
|
|
41
|
-
marginBottom?: string;
|
|
42
|
-
marginLeft?: string;
|
|
43
|
-
marginRight?: string;
|
|
44
|
-
backgroundColor?: string;
|
|
45
|
-
borderRadius?: string;
|
|
46
|
-
width?: string;
|
|
47
|
-
minWidth?: string;
|
|
48
|
-
maxWidth?: string;
|
|
49
|
-
height?: string;
|
|
50
|
-
minHeight?: string;
|
|
51
|
-
maxHeight?: string;
|
|
52
|
-
flex?: number;
|
|
53
|
-
position?: PositionOptionType;
|
|
54
|
-
top?: string;
|
|
55
|
-
bottom?: string;
|
|
56
|
-
left?: string;
|
|
57
|
-
right?: string;
|
|
58
|
-
zIndex?: number;
|
|
59
|
-
color?: string;
|
|
60
|
-
fontSize?: string;
|
|
61
|
-
fontFamily?: string;
|
|
62
|
-
fontWeight?: string;
|
|
63
|
-
textAlign?: TextAlignOptionType;
|
|
64
68
|
adjustsFontSizeToFit?: boolean;
|
|
65
69
|
showEllipsis?: boolean;
|
|
66
70
|
};
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
"children": "string",
|
|
6
6
|
"extends": "View",
|
|
7
7
|
"attributes": {
|
|
8
|
-
"color": "color",
|
|
9
|
-
"fontSize": "size",
|
|
10
|
-
"fontFamily": "fontFamily",
|
|
11
|
-
"fontWeight": "fontWeight",
|
|
12
|
-
"textAlign": ["left", "center", "right", "justify"],
|
|
13
8
|
"adjustsFontSizeToFit": "boolean",
|
|
14
|
-
"showEllipsis": "boolean"
|
|
9
|
+
"showEllipsis": "boolean",
|
|
10
|
+
"style": {
|
|
11
|
+
"color": "color",
|
|
12
|
+
"fontSize": "size",
|
|
13
|
+
"fontFamily": "fontFamily",
|
|
14
|
+
"fontWeight": "fontWeight",
|
|
15
|
+
"textAlign": ["left", "center", "right", "justify"]
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
"meta": {
|
|
@@ -54,20 +56,22 @@
|
|
|
54
56
|
"category": "style",
|
|
55
57
|
"specialCategory": null,
|
|
56
58
|
"sort": 5
|
|
57
|
-
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"attributes": {
|
|
58
62
|
"adjustsFontSizeToFit": {
|
|
59
63
|
"label": "Adjust Font Size To Fit",
|
|
60
64
|
"description": "Automatically reduces font size to fit the available space.",
|
|
61
|
-
"category": "
|
|
65
|
+
"category": "other",
|
|
62
66
|
"specialCategory": null,
|
|
63
|
-
"sort":
|
|
67
|
+
"sort": 1
|
|
64
68
|
},
|
|
65
69
|
"showEllipsis": {
|
|
66
70
|
"label": "Show Ellipsis",
|
|
67
71
|
"description": "If text overflows, show ellipsis (…); applied as single-line truncation.",
|
|
68
|
-
"category": "
|
|
72
|
+
"category": "other",
|
|
69
73
|
"specialCategory": null,
|
|
70
|
-
"sort":
|
|
74
|
+
"sort": 2
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
}
|
|
@@ -4,7 +4,7 @@ import RenderNode from '../RenderNode.generated';
|
|
|
4
4
|
import { Node } from '../../types/Node';
|
|
5
5
|
import useNode from '../useNode';
|
|
6
6
|
import { useBuilderParams } from '../../components/BuilderProvider';
|
|
7
|
-
import { useExtractViewStyle } from '../../
|
|
7
|
+
import { useExtractViewStyle } from '../../attribute-analyser/style/web/useExtractViewStyle';
|
|
8
8
|
import { useLogRender } from '../../utils/useLogRender';
|
|
9
9
|
import { isNodeSelected, SELECTED_OUTLINE_STYLE } from '../../utils/selection';
|
|
10
10
|
import { useMergedStyle } from '../../utils/useMergedStyle';
|
|
@@ -18,43 +18,47 @@ export type JustifyContentOptionType =
|
|
|
18
18
|
| 'space-evenly';
|
|
19
19
|
export type PositionOptionType = 'relative' | 'absolute';
|
|
20
20
|
|
|
21
|
+
export interface ViewStyleGenerated {
|
|
22
|
+
flexDirection?: FlexDirectionOptionType;
|
|
23
|
+
alignItems?: AlignItemsOptionType;
|
|
24
|
+
justifyContent?: JustifyContentOptionType;
|
|
25
|
+
gap?: string;
|
|
26
|
+
padding?: string;
|
|
27
|
+
paddingHorizontal?: string;
|
|
28
|
+
paddingVertical?: string;
|
|
29
|
+
paddingTop?: string;
|
|
30
|
+
paddingBottom?: string;
|
|
31
|
+
paddingLeft?: string;
|
|
32
|
+
paddingRight?: string;
|
|
33
|
+
margin?: string;
|
|
34
|
+
marginHorizontal?: string;
|
|
35
|
+
marginVertical?: string;
|
|
36
|
+
marginTop?: string;
|
|
37
|
+
marginBottom?: string;
|
|
38
|
+
marginLeft?: string;
|
|
39
|
+
marginRight?: string;
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
borderRadius?: string;
|
|
42
|
+
width?: string;
|
|
43
|
+
minWidth?: string;
|
|
44
|
+
maxWidth?: string;
|
|
45
|
+
height?: string;
|
|
46
|
+
minHeight?: string;
|
|
47
|
+
maxHeight?: string;
|
|
48
|
+
flex?: number;
|
|
49
|
+
position?: PositionOptionType;
|
|
50
|
+
top?: string;
|
|
51
|
+
bottom?: string;
|
|
52
|
+
left?: string;
|
|
53
|
+
right?: string;
|
|
54
|
+
zIndex?: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
21
57
|
export interface ViewPropsGenerated {
|
|
22
58
|
child: string;
|
|
23
59
|
attributes: {
|
|
24
|
-
style?:
|
|
60
|
+
style?: ViewStyleGenerated;
|
|
25
61
|
scrollable?: boolean;
|
|
26
|
-
flexDirection?: FlexDirectionOptionType;
|
|
27
|
-
alignItems?: AlignItemsOptionType;
|
|
28
|
-
justifyContent?: JustifyContentOptionType;
|
|
29
|
-
gap?: string;
|
|
30
|
-
padding?: string;
|
|
31
|
-
paddingHorizontal?: string;
|
|
32
|
-
paddingVertical?: string;
|
|
33
|
-
paddingTop?: string;
|
|
34
|
-
paddingBottom?: string;
|
|
35
|
-
paddingLeft?: string;
|
|
36
|
-
paddingRight?: string;
|
|
37
|
-
margin?: string;
|
|
38
|
-
marginVertical?: string;
|
|
39
|
-
marginTop?: string;
|
|
40
|
-
marginBottom?: string;
|
|
41
|
-
marginLeft?: string;
|
|
42
|
-
marginRight?: string;
|
|
43
|
-
backgroundColor?: string;
|
|
44
|
-
borderRadius?: string;
|
|
45
|
-
width?: string;
|
|
46
|
-
minWidth?: string;
|
|
47
|
-
maxWidth?: string;
|
|
48
|
-
height?: string;
|
|
49
|
-
minHeight?: string;
|
|
50
|
-
maxHeight?: string;
|
|
51
|
-
flex?: number;
|
|
52
|
-
position?: PositionOptionType;
|
|
53
|
-
top?: string;
|
|
54
|
-
bottom?: string;
|
|
55
|
-
left?: string;
|
|
56
|
-
right?: string;
|
|
57
|
-
zIndex?: number;
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
64
|
|
|
@@ -5,57 +5,60 @@
|
|
|
5
5
|
"children": "node",
|
|
6
6
|
"attributes": {
|
|
7
7
|
"scrollable": "boolean",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
8
|
+
"style": {
|
|
9
|
+
"flexDirection": [
|
|
10
|
+
"row",
|
|
11
|
+
"column"
|
|
12
|
+
],
|
|
13
|
+
"alignItems": [
|
|
14
|
+
"flex-start",
|
|
15
|
+
"center",
|
|
16
|
+
"flex-end",
|
|
17
|
+
"stretch",
|
|
18
|
+
"baseline"
|
|
19
|
+
],
|
|
20
|
+
"justifyContent": [
|
|
21
|
+
"flex-start",
|
|
22
|
+
"center",
|
|
23
|
+
"flex-end",
|
|
24
|
+
"space-between",
|
|
25
|
+
"space-around",
|
|
26
|
+
"space-evenly"
|
|
27
|
+
],
|
|
28
|
+
"gap": "size",
|
|
29
|
+
"padding": "size",
|
|
30
|
+
"paddingHorizontal": "size",
|
|
31
|
+
"paddingVertical": "size",
|
|
32
|
+
"paddingTop": "size",
|
|
33
|
+
"paddingBottom": "size",
|
|
34
|
+
"paddingLeft": "size",
|
|
35
|
+
"paddingRight": "size",
|
|
36
|
+
"margin": "size",
|
|
37
|
+
"marginHorizontal": "size",
|
|
38
|
+
"marginVertical": "size",
|
|
39
|
+
"marginTop": "size",
|
|
40
|
+
"marginBottom": "size",
|
|
41
|
+
"marginLeft": "size",
|
|
42
|
+
"marginRight": "size",
|
|
43
|
+
"backgroundColor": "color",
|
|
44
|
+
"borderRadius": "size",
|
|
45
|
+
"width": "size",
|
|
46
|
+
"minWidth": "size",
|
|
47
|
+
"maxWidth": "size",
|
|
48
|
+
"height": "size",
|
|
49
|
+
"minHeight": "size",
|
|
50
|
+
"maxHeight": "size",
|
|
51
|
+
"flex": "number",
|
|
52
|
+
"position": [
|
|
53
|
+
"relative",
|
|
54
|
+
"absolute"
|
|
55
|
+
],
|
|
56
|
+
"top": "size",
|
|
57
|
+
"bottom": "size",
|
|
58
|
+
"left": "size",
|
|
59
|
+
"right": "size",
|
|
60
|
+
"zIndex": "number"
|
|
61
|
+
}
|
|
59
62
|
}
|
|
60
63
|
},
|
|
61
64
|
"meta": {
|
|
@@ -91,6 +94,23 @@
|
|
|
91
94
|
}
|
|
92
95
|
},
|
|
93
96
|
"styles": {
|
|
97
|
+
"backgroundColor": {
|
|
98
|
+
"label": "Background Color",
|
|
99
|
+
"description": "Background fill color.",
|
|
100
|
+
"category": "style",
|
|
101
|
+
"specialCategory": null,
|
|
102
|
+
"sort": 20
|
|
103
|
+
},
|
|
104
|
+
"borderRadius": {
|
|
105
|
+
"label": "Border Radius",
|
|
106
|
+
"description": "Corner rounding amount.",
|
|
107
|
+
"category": "style",
|
|
108
|
+
"specialCategory": null,
|
|
109
|
+
"sort": 21,
|
|
110
|
+
"preferedScale": "s"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"attributes": {
|
|
94
114
|
"scrollable": {
|
|
95
115
|
"label": "Scrollable",
|
|
96
116
|
"description": "Turns scroll interaction on.",
|
|
@@ -239,21 +259,6 @@
|
|
|
239
259
|
"sort": 19,
|
|
240
260
|
"preferedScale": "s"
|
|
241
261
|
},
|
|
242
|
-
"backgroundColor": {
|
|
243
|
-
"label": "Background Color",
|
|
244
|
-
"description": "Background fill color.",
|
|
245
|
-
"category": "style",
|
|
246
|
-
"specialCategory": null,
|
|
247
|
-
"sort": 20
|
|
248
|
-
},
|
|
249
|
-
"borderRadius": {
|
|
250
|
-
"label": "Border Radius",
|
|
251
|
-
"description": "Corner rounding amount.",
|
|
252
|
-
"category": "style",
|
|
253
|
-
"specialCategory": null,
|
|
254
|
-
"sort": 21,
|
|
255
|
-
"preferedScale": "s"
|
|
256
|
-
},
|
|
257
262
|
"width": {
|
|
258
263
|
"label": "Width",
|
|
259
264
|
"description": "Fixed width value.",
|