@draftbit/core 46.10.3-31b3e0.2 → 46.10.3-3aae02.2
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/lib/commonjs/mappings/NativeBase/Layout.js +4 -11
- package/lib/module/mappings/NativeBase/Layout.js +5 -12
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +15 -26
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/mappings/NativeBase/Layout.js +9 -12
- package/src/mappings/NativeBase/Layout.ts +8 -12
|
@@ -72,24 +72,17 @@ const SEED_DATA = [{
|
|
|
72
72
|
name: "Spacer",
|
|
73
73
|
tag: "Spacer",
|
|
74
74
|
description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
75
|
+
layout: {
|
|
76
|
+
flex: 1
|
|
77
|
+
},
|
|
75
78
|
...SHARED_SEED_DATA,
|
|
76
|
-
stylesPanelSections:
|
|
79
|
+
stylesPanelSections: [_types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.Background, _types.StylesPanelSections.Margins]
|
|
77
80
|
}, {
|
|
78
81
|
name: "Stack",
|
|
79
82
|
tag: "Stack",
|
|
80
83
|
description: "Stack aligns items vertically or horizontally based on the direction prop",
|
|
81
84
|
...SHARED_SEED_DATA,
|
|
82
85
|
props: {
|
|
83
|
-
direction: (0, _types.createTextEnumProp)({
|
|
84
|
-
label: "Direction",
|
|
85
|
-
description: "The direction of the Stack",
|
|
86
|
-
options: ["row", "column"],
|
|
87
|
-
defaultValue: "column"
|
|
88
|
-
}),
|
|
89
|
-
reversed: (0, _types.createBoolProp)({
|
|
90
|
-
label: "Reversed",
|
|
91
|
-
description: "Determines whether to reverse the direction of items"
|
|
92
|
-
}),
|
|
93
86
|
isDisabled: (0, _types.createBoolProp)({
|
|
94
87
|
label: "Disabled",
|
|
95
88
|
description: "If true, the Stack will be disabled"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES,
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, StylesPanelSections, createStaticBoolProp } from "@draftbit/types";
|
|
2
2
|
const SHARED_SEED_DATA = {
|
|
3
3
|
category: COMPONENT_TYPES.layout,
|
|
4
4
|
packageName: "native-base",
|
|
@@ -66,24 +66,17 @@ export const SEED_DATA = [{
|
|
|
66
66
|
name: "Spacer",
|
|
67
67
|
tag: "Spacer",
|
|
68
68
|
description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
69
|
+
layout: {
|
|
70
|
+
flex: 1
|
|
71
|
+
},
|
|
69
72
|
...SHARED_SEED_DATA,
|
|
70
|
-
stylesPanelSections:
|
|
73
|
+
stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Margins]
|
|
71
74
|
}, {
|
|
72
75
|
name: "Stack",
|
|
73
76
|
tag: "Stack",
|
|
74
77
|
description: "Stack aligns items vertically or horizontally based on the direction prop",
|
|
75
78
|
...SHARED_SEED_DATA,
|
|
76
79
|
props: {
|
|
77
|
-
direction: createTextEnumProp({
|
|
78
|
-
label: "Direction",
|
|
79
|
-
description: "The direction of the Stack",
|
|
80
|
-
options: ["row", "column"],
|
|
81
|
-
defaultValue: "column"
|
|
82
|
-
}),
|
|
83
|
-
reversed: createBoolProp({
|
|
84
|
-
label: "Reversed",
|
|
85
|
-
description: "Determines whether to reverse the direction of items"
|
|
86
|
-
}),
|
|
87
80
|
isDisabled: createBoolProp({
|
|
88
81
|
label: "Disabled",
|
|
89
82
|
description: "If true, the Stack will be disabled"
|
|
@@ -12,10 +12,9 @@ export declare const SEED_DATA: ({
|
|
|
12
12
|
step: number;
|
|
13
13
|
};
|
|
14
14
|
centerContent?: undefined;
|
|
15
|
-
direction?: undefined;
|
|
16
|
-
reversed?: undefined;
|
|
17
15
|
isDisabled?: undefined;
|
|
18
16
|
isInvalid?: undefined;
|
|
17
|
+
reversed?: undefined;
|
|
19
18
|
};
|
|
20
19
|
category: string;
|
|
21
20
|
packageName: string;
|
|
@@ -49,10 +48,9 @@ export declare const SEED_DATA: ({
|
|
|
49
48
|
group: string;
|
|
50
49
|
};
|
|
51
50
|
ratio?: undefined;
|
|
52
|
-
direction?: undefined;
|
|
53
|
-
reversed?: undefined;
|
|
54
51
|
isDisabled?: undefined;
|
|
55
52
|
isInvalid?: undefined;
|
|
53
|
+
reversed?: undefined;
|
|
56
54
|
};
|
|
57
55
|
} | {
|
|
58
56
|
category: string;
|
|
@@ -63,30 +61,21 @@ export declare const SEED_DATA: ({
|
|
|
63
61
|
description: string;
|
|
64
62
|
layout: {
|
|
65
63
|
flexDirection: string;
|
|
64
|
+
flex?: undefined;
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
stylesPanelSections: string[];
|
|
68
|
+
category: string;
|
|
69
|
+
packageName: string;
|
|
70
|
+
name: string;
|
|
71
|
+
tag: string;
|
|
72
|
+
description: string;
|
|
73
|
+
layout: {
|
|
74
|
+
flex: number;
|
|
75
|
+
flexDirection?: undefined;
|
|
66
76
|
};
|
|
67
77
|
} | {
|
|
68
78
|
props: {
|
|
69
|
-
direction: {
|
|
70
|
-
group: string;
|
|
71
|
-
label: string;
|
|
72
|
-
description: string;
|
|
73
|
-
editable: boolean;
|
|
74
|
-
required: boolean;
|
|
75
|
-
formType: string;
|
|
76
|
-
propType: string;
|
|
77
|
-
defaultValue: null;
|
|
78
|
-
options: never[];
|
|
79
|
-
};
|
|
80
|
-
reversed: {
|
|
81
|
-
label: string;
|
|
82
|
-
description: string;
|
|
83
|
-
formType: string;
|
|
84
|
-
propType: string;
|
|
85
|
-
defaultValue: boolean;
|
|
86
|
-
editable: boolean;
|
|
87
|
-
required: boolean;
|
|
88
|
-
group: string;
|
|
89
|
-
};
|
|
90
79
|
isDisabled: {
|
|
91
80
|
label: string;
|
|
92
81
|
description: string;
|
|
@@ -109,6 +98,7 @@ export declare const SEED_DATA: ({
|
|
|
109
98
|
};
|
|
110
99
|
ratio?: undefined;
|
|
111
100
|
centerContent?: undefined;
|
|
101
|
+
reversed?: undefined;
|
|
112
102
|
};
|
|
113
103
|
category: string;
|
|
114
104
|
packageName: string;
|
|
@@ -130,7 +120,6 @@ export declare const SEED_DATA: ({
|
|
|
130
120
|
};
|
|
131
121
|
ratio?: undefined;
|
|
132
122
|
centerContent?: undefined;
|
|
133
|
-
direction?: undefined;
|
|
134
123
|
isDisabled?: undefined;
|
|
135
124
|
isInvalid?: undefined;
|
|
136
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/mappings/NativeBase/Layout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../../../src/mappings/NativeBase/Layout.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkHrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.10.3-
|
|
3
|
+
"version": "46.10.3-3aae02.2+3aae02c",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^46.10.3-
|
|
44
|
+
"@draftbit/types": "^46.10.3-3aae02.2+3aae02c",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
]
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "3aae02cccac71c7081c63ab1b10da34c8262cadf"
|
|
104
104
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COMPONENT_TYPES,
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, StylesPanelSections, createStaticBoolProp, } from "@draftbit/types";
|
|
2
2
|
const SHARED_SEED_DATA = {
|
|
3
3
|
category: COMPONENT_TYPES.layout,
|
|
4
4
|
packageName: "native-base",
|
|
@@ -75,8 +75,15 @@ export const SEED_DATA = [
|
|
|
75
75
|
name: "Spacer",
|
|
76
76
|
tag: "Spacer",
|
|
77
77
|
description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
78
|
+
layout: {
|
|
79
|
+
flex: 1,
|
|
80
|
+
},
|
|
78
81
|
...SHARED_SEED_DATA,
|
|
79
|
-
stylesPanelSections:
|
|
82
|
+
stylesPanelSections: [
|
|
83
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
84
|
+
StylesPanelSections.Background,
|
|
85
|
+
StylesPanelSections.Margins,
|
|
86
|
+
],
|
|
80
87
|
},
|
|
81
88
|
{
|
|
82
89
|
name: "Stack",
|
|
@@ -84,16 +91,6 @@ export const SEED_DATA = [
|
|
|
84
91
|
description: "Stack aligns items vertically or horizontally based on the direction prop",
|
|
85
92
|
...SHARED_SEED_DATA,
|
|
86
93
|
props: {
|
|
87
|
-
direction: createTextEnumProp({
|
|
88
|
-
label: "Direction",
|
|
89
|
-
description: "The direction of the Stack",
|
|
90
|
-
options: ["row", "column"],
|
|
91
|
-
defaultValue: "column",
|
|
92
|
-
}),
|
|
93
|
-
reversed: createBoolProp({
|
|
94
|
-
label: "Reversed",
|
|
95
|
-
description: "Determines whether to reverse the direction of items",
|
|
96
|
-
}),
|
|
97
94
|
isDisabled: createBoolProp({
|
|
98
95
|
label: "Disabled",
|
|
99
96
|
description: "If true, the Stack will be disabled",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMPONENT_TYPES,
|
|
3
|
-
createTextEnumProp,
|
|
4
3
|
createBoolProp,
|
|
5
4
|
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
5
|
createStaticNumberProp,
|
|
@@ -96,8 +95,15 @@ export const SEED_DATA = [
|
|
|
96
95
|
tag: "Spacer",
|
|
97
96
|
description:
|
|
98
97
|
"An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
|
|
98
|
+
layout: {
|
|
99
|
+
flex: 1,
|
|
100
|
+
},
|
|
99
101
|
...SHARED_SEED_DATA,
|
|
100
|
-
stylesPanelSections:
|
|
102
|
+
stylesPanelSections: [
|
|
103
|
+
StylesPanelSections.LayoutSelectedItem,
|
|
104
|
+
StylesPanelSections.Background,
|
|
105
|
+
StylesPanelSections.Margins,
|
|
106
|
+
],
|
|
101
107
|
},
|
|
102
108
|
{
|
|
103
109
|
name: "Stack",
|
|
@@ -106,16 +112,6 @@ export const SEED_DATA = [
|
|
|
106
112
|
"Stack aligns items vertically or horizontally based on the direction prop",
|
|
107
113
|
...SHARED_SEED_DATA,
|
|
108
114
|
props: {
|
|
109
|
-
direction: createTextEnumProp({
|
|
110
|
-
label: "Direction",
|
|
111
|
-
description: "The direction of the Stack",
|
|
112
|
-
options: ["row", "column"],
|
|
113
|
-
defaultValue: "column",
|
|
114
|
-
}),
|
|
115
|
-
reversed: createBoolProp({
|
|
116
|
-
label: "Reversed",
|
|
117
|
-
description: "Determines whether to reverse the direction of items",
|
|
118
|
-
}),
|
|
119
115
|
isDisabled: createBoolProp({
|
|
120
116
|
label: "Disabled",
|
|
121
117
|
description: "If true, the Stack will be disabled",
|