@draftbit/core 46.10.3-1ab4b6.2 → 46.10.3-258cfa.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/components/Accordion/AccordionItem.js +23 -4
- package/lib/commonjs/components/Checkbox/CheckboxGroup.js +2 -17
- package/lib/commonjs/components/Shadow.js +2 -15
- package/lib/commonjs/components/Table/Table.js +5 -7
- package/lib/commonjs/components/Table/TableCell.js +3 -3
- package/lib/commonjs/components/Table/TableRow.js +4 -4
- package/lib/commonjs/components/Table/index.js +25 -1
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/Layout.js +177 -85
- package/lib/commonjs/mappings/NativeBase/Layout.js +108 -0
- package/lib/module/components/Table/Table.js +5 -5
- package/lib/module/components/Table/TableCell.js +1 -1
- package/lib/module/components/Table/TableRow.js +1 -1
- package/lib/module/components/Table/index.js +21 -0
- package/lib/module/mappings/Layout.js +178 -86
- package/lib/module/mappings/NativeBase/Layout.js +101 -0
- package/lib/typescript/src/components/Table/Table.d.ts +3 -7
- package/lib/typescript/src/components/Table/Table.d.ts.map +1 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts +1 -1
- package/lib/typescript/src/components/Table/TableCell.d.ts.map +1 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts +1 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Table/index.d.ts +18 -0
- package/lib/typescript/src/components/Table/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Layout.d.ts +108 -72
- package/lib/typescript/src/mappings/Layout.d.ts.map +1 -1
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +133 -0
- package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/components/Table/Table.js +3 -4
- package/src/components/Table/Table.tsx +3 -7
- package/src/components/Table/TableCell.js +1 -1
- package/src/components/Table/TableCell.tsx +1 -5
- package/src/components/Table/TableRow.js +1 -1
- package/src/components/Table/TableRow.tsx +1 -1
- package/src/components/Table/index.js +12 -0
- package/src/components/Table/index.tsx +41 -0
- package/src/mappings/Layout.js +176 -100
- package/src/mappings/Layout.ts +178 -116
- package/src/mappings/NativeBase/Layout.js +124 -0
- package/src/mappings/NativeBase/Layout.ts +145 -0
- package/lib/commonjs/components/Table/TableCommon.js +0 -30
- package/lib/module/components/Table/TableCommon.js +0 -21
- package/lib/typescript/src/components/Table/TableCommon.d.ts +0 -20
- package/lib/typescript/src/components/Table/TableCommon.d.ts.map +0 -1
- package/src/components/Table/TableCommon.js +0 -12
- package/src/components/Table/TableCommon.ts +0 -40
package/src/mappings/Layout.js
CHANGED
|
@@ -1,124 +1,200 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const SHARED_SEED_DATA = {
|
|
3
|
-
category: COMPONENT_TYPES.layout,
|
|
4
|
-
packageName: "native-base",
|
|
5
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
6
|
-
};
|
|
7
|
-
const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX = CONTAINER_COMPONENT_STYLES_SECTIONS.filter((item) => item !== StylesPanelSections.LayoutFlexItems &&
|
|
8
|
-
item !== StylesPanelSections.LayoutContent);
|
|
1
|
+
import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, StylesPanelSections, } from "@draftbit/types";
|
|
9
2
|
export const SEED_DATA = [
|
|
10
3
|
{
|
|
11
|
-
name: "
|
|
12
|
-
tag: "
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
name: "Row",
|
|
5
|
+
tag: "Row",
|
|
6
|
+
category: COMPONENT_TYPES.deprecated,
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
15
8
|
props: {
|
|
16
|
-
|
|
17
|
-
label: "
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
justifyContent: {
|
|
10
|
+
label: "Align Horizontally",
|
|
11
|
+
group: GROUPS.style,
|
|
12
|
+
description: "Align Items Horizontally (on the X Axis)",
|
|
13
|
+
formType: FORM_TYPES.string,
|
|
14
|
+
propType: PROP_TYPES.STRING,
|
|
15
|
+
defaultValue: "flex-start",
|
|
16
|
+
editable: true,
|
|
17
|
+
required: false,
|
|
18
|
+
},
|
|
19
|
+
alignItems: {
|
|
20
|
+
label: "Align Vertically",
|
|
21
|
+
group: GROUPS.style,
|
|
22
|
+
description: "Align Items Vertically (on the Y Axis)",
|
|
23
|
+
formType: FORM_TYPES.string,
|
|
24
|
+
propType: PROP_TYPES.STRING,
|
|
25
|
+
defaultValue: "flex-start",
|
|
26
|
+
editable: true,
|
|
27
|
+
required: false,
|
|
28
|
+
},
|
|
21
29
|
},
|
|
22
|
-
stylesPanelSections: [
|
|
23
|
-
StylesPanelSections.Background,
|
|
24
|
-
StylesPanelSections.Size,
|
|
25
|
-
StylesPanelSections.Margins,
|
|
26
|
-
StylesPanelSections.Position,
|
|
27
|
-
StylesPanelSections.Borders,
|
|
28
|
-
StylesPanelSections.Effects,
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: "Box",
|
|
33
|
-
tag: "Box",
|
|
34
|
-
description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
|
|
35
|
-
...SHARED_SEED_DATA,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: "Center",
|
|
39
|
-
tag: "Center",
|
|
40
|
-
description: "Center aligns its contents to the center within itself",
|
|
41
|
-
...SHARED_SEED_DATA,
|
|
42
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
|
|
43
30
|
},
|
|
44
31
|
{
|
|
45
|
-
name: "
|
|
46
|
-
tag: "
|
|
47
|
-
|
|
48
|
-
...SHARED_SEED_DATA,
|
|
49
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "Container",
|
|
53
|
-
tag: "Container",
|
|
54
|
-
description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
|
|
32
|
+
name: "Spacer",
|
|
33
|
+
tag: "Spacer",
|
|
34
|
+
category: COMPONENT_TYPES.layout,
|
|
55
35
|
props: {
|
|
56
|
-
|
|
57
|
-
label: "
|
|
58
|
-
description: "
|
|
59
|
-
|
|
60
|
-
|
|
36
|
+
top: {
|
|
37
|
+
label: "Top",
|
|
38
|
+
description: "Top",
|
|
39
|
+
formType: FORM_TYPES.number,
|
|
40
|
+
propType: PROP_TYPES.NUMBER,
|
|
41
|
+
group: GROUPS.style,
|
|
42
|
+
defaultValue: 8,
|
|
43
|
+
editable: true,
|
|
44
|
+
required: false,
|
|
45
|
+
},
|
|
46
|
+
right: {
|
|
47
|
+
label: "Right",
|
|
48
|
+
description: "Right",
|
|
49
|
+
formType: FORM_TYPES.number,
|
|
50
|
+
propType: PROP_TYPES.NUMBER,
|
|
51
|
+
group: GROUPS.style,
|
|
52
|
+
defaultValue: 8,
|
|
53
|
+
editable: true,
|
|
54
|
+
required: false,
|
|
55
|
+
},
|
|
56
|
+
bottom: {
|
|
57
|
+
label: "Bottom",
|
|
58
|
+
description: "Bottom",
|
|
59
|
+
formType: FORM_TYPES.number,
|
|
60
|
+
propType: PROP_TYPES.NUMBER,
|
|
61
|
+
group: GROUPS.style,
|
|
62
|
+
defaultValue: 8,
|
|
63
|
+
editable: true,
|
|
64
|
+
required: false,
|
|
65
|
+
},
|
|
66
|
+
left: {
|
|
67
|
+
label: "Left",
|
|
68
|
+
description: "Left",
|
|
69
|
+
formType: FORM_TYPES.number,
|
|
70
|
+
propType: PROP_TYPES.NUMBER,
|
|
71
|
+
group: GROUPS.style,
|
|
72
|
+
defaultValue: 8,
|
|
73
|
+
editable: true,
|
|
74
|
+
required: false,
|
|
75
|
+
},
|
|
61
76
|
},
|
|
62
|
-
...SHARED_SEED_DATA,
|
|
63
77
|
},
|
|
64
78
|
{
|
|
65
|
-
name: "
|
|
66
|
-
tag: "
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
name: "Stack",
|
|
80
|
+
tag: "Stack",
|
|
81
|
+
category: COMPONENT_TYPES.deprecated,
|
|
82
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
83
|
+
props: {
|
|
84
|
+
justifyContent: {
|
|
85
|
+
group: GROUPS.style,
|
|
86
|
+
label: "Justify",
|
|
87
|
+
description: "Justify horizontally",
|
|
88
|
+
formType: FORM_TYPES.string,
|
|
89
|
+
propType: PROP_TYPES.STRING,
|
|
90
|
+
defaultValue: "flex-start",
|
|
91
|
+
editable: true,
|
|
92
|
+
required: false,
|
|
93
|
+
},
|
|
94
|
+
alignItems: {
|
|
95
|
+
group: GROUPS.style,
|
|
96
|
+
label: "Align",
|
|
97
|
+
description: "Vertical align",
|
|
98
|
+
formType: FORM_TYPES.string,
|
|
99
|
+
propType: PROP_TYPES.STRING,
|
|
100
|
+
defaultValue: "flex-start",
|
|
101
|
+
editable: true,
|
|
102
|
+
required: false,
|
|
103
|
+
},
|
|
79
104
|
},
|
|
80
|
-
...SHARED_SEED_DATA,
|
|
81
105
|
},
|
|
82
106
|
{
|
|
83
|
-
name: "
|
|
84
|
-
tag: "
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
107
|
+
name: "Center",
|
|
108
|
+
tag: "Center",
|
|
109
|
+
category: COMPONENT_TYPES.layout,
|
|
110
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
111
|
+
props: {
|
|
112
|
+
width: {
|
|
113
|
+
label: "Width",
|
|
114
|
+
description: "Width",
|
|
115
|
+
formType: FORM_TYPES.number,
|
|
116
|
+
propType: PROP_TYPES.NUMBER,
|
|
117
|
+
group: GROUPS.style,
|
|
118
|
+
defaultValue: 240,
|
|
119
|
+
editable: true,
|
|
120
|
+
required: false,
|
|
121
|
+
},
|
|
122
|
+
height: {
|
|
123
|
+
label: "Height",
|
|
124
|
+
description: "Height",
|
|
125
|
+
formType: FORM_TYPES.number,
|
|
126
|
+
propType: PROP_TYPES.NUMBER,
|
|
127
|
+
group: GROUPS.style,
|
|
128
|
+
defaultValue: 200,
|
|
129
|
+
editable: true,
|
|
130
|
+
required: false,
|
|
131
|
+
},
|
|
132
|
+
bgColor: {
|
|
133
|
+
label: "Background Color",
|
|
134
|
+
description: "Background color",
|
|
135
|
+
formType: FORM_TYPES.color,
|
|
136
|
+
propType: PROP_TYPES.THEME,
|
|
137
|
+
editable: true,
|
|
138
|
+
required: false,
|
|
139
|
+
defaultValue: "light",
|
|
140
|
+
group: GROUPS.style,
|
|
141
|
+
},
|
|
88
142
|
},
|
|
89
|
-
...SHARED_SEED_DATA,
|
|
90
|
-
stylesPanelSections: [
|
|
91
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
92
|
-
StylesPanelSections.Background,
|
|
93
|
-
StylesPanelSections.Margins,
|
|
94
|
-
],
|
|
95
143
|
},
|
|
96
144
|
{
|
|
97
|
-
name: "
|
|
98
|
-
tag: "
|
|
99
|
-
|
|
100
|
-
|
|
145
|
+
name: "Circle",
|
|
146
|
+
tag: "Circle",
|
|
147
|
+
category: COMPONENT_TYPES.layout,
|
|
148
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
101
149
|
props: {
|
|
102
|
-
|
|
103
|
-
label: "
|
|
104
|
-
description: "
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
150
|
+
size: {
|
|
151
|
+
label: "Size",
|
|
152
|
+
description: "Size",
|
|
153
|
+
formType: FORM_TYPES.number,
|
|
154
|
+
propType: PROP_TYPES.NUMBER,
|
|
155
|
+
group: GROUPS.style,
|
|
156
|
+
defaultValue: 50,
|
|
157
|
+
editable: true,
|
|
158
|
+
required: false,
|
|
159
|
+
},
|
|
160
|
+
bgColor: {
|
|
161
|
+
label: "Background Color",
|
|
162
|
+
description: "Background color",
|
|
163
|
+
formType: FORM_TYPES.color,
|
|
164
|
+
propType: PROP_TYPES.THEME,
|
|
165
|
+
editable: true,
|
|
166
|
+
required: false,
|
|
167
|
+
defaultValue: "light",
|
|
168
|
+
group: GROUPS.style,
|
|
169
|
+
},
|
|
110
170
|
},
|
|
111
171
|
},
|
|
112
172
|
{
|
|
113
|
-
name: "
|
|
114
|
-
tag: "
|
|
115
|
-
|
|
116
|
-
|
|
173
|
+
name: "Square",
|
|
174
|
+
tag: "Square",
|
|
175
|
+
category: COMPONENT_TYPES.layout,
|
|
176
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
117
177
|
props: {
|
|
118
|
-
|
|
119
|
-
label: "
|
|
120
|
-
description: "
|
|
121
|
-
|
|
178
|
+
size: {
|
|
179
|
+
label: "Size",
|
|
180
|
+
description: "Size",
|
|
181
|
+
formType: FORM_TYPES.number,
|
|
182
|
+
propType: PROP_TYPES.NUMBER,
|
|
183
|
+
group: GROUPS.style,
|
|
184
|
+
defaultValue: 50,
|
|
185
|
+
editable: true,
|
|
186
|
+
required: false,
|
|
187
|
+
},
|
|
188
|
+
bgColor: {
|
|
189
|
+
label: "Background Color",
|
|
190
|
+
description: "Background color",
|
|
191
|
+
formType: FORM_TYPES.color,
|
|
192
|
+
propType: PROP_TYPES.THEME,
|
|
193
|
+
editable: true,
|
|
194
|
+
required: false,
|
|
195
|
+
defaultValue: "light",
|
|
196
|
+
group: GROUPS.style,
|
|
197
|
+
},
|
|
122
198
|
},
|
|
123
199
|
},
|
|
124
200
|
];
|
package/src/mappings/Layout.ts
CHANGED
|
@@ -1,145 +1,207 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GROUPS,
|
|
3
|
+
FORM_TYPES,
|
|
4
|
+
PROP_TYPES,
|
|
2
5
|
COMPONENT_TYPES,
|
|
3
|
-
createBoolProp,
|
|
4
|
-
CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
5
|
-
createStaticNumberProp,
|
|
6
6
|
StylesPanelSections,
|
|
7
|
-
createStaticBoolProp,
|
|
8
7
|
} from "@draftbit/types";
|
|
9
8
|
|
|
10
|
-
const SHARED_SEED_DATA = {
|
|
11
|
-
category: COMPONENT_TYPES.layout,
|
|
12
|
-
packageName: "native-base",
|
|
13
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX =
|
|
17
|
-
CONTAINER_COMPONENT_STYLES_SECTIONS.filter(
|
|
18
|
-
(item) =>
|
|
19
|
-
item !== StylesPanelSections.LayoutFlexItems &&
|
|
20
|
-
item !== StylesPanelSections.LayoutContent
|
|
21
|
-
);
|
|
22
|
-
|
|
23
9
|
export const SEED_DATA = [
|
|
24
10
|
{
|
|
25
|
-
name: "
|
|
26
|
-
tag: "
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...SHARED_SEED_DATA,
|
|
11
|
+
name: "Row",
|
|
12
|
+
tag: "Row",
|
|
13
|
+
category: COMPONENT_TYPES.deprecated,
|
|
14
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
30
15
|
props: {
|
|
31
|
-
|
|
32
|
-
label: "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
justifyContent: {
|
|
17
|
+
label: "Align Horizontally",
|
|
18
|
+
group: GROUPS.style,
|
|
19
|
+
description: "Align Items Horizontally (on the X Axis)",
|
|
20
|
+
formType: FORM_TYPES.string,
|
|
21
|
+
propType: PROP_TYPES.STRING,
|
|
22
|
+
defaultValue: "flex-start",
|
|
23
|
+
editable: true,
|
|
24
|
+
required: false,
|
|
25
|
+
},
|
|
26
|
+
alignItems: {
|
|
27
|
+
label: "Align Vertically",
|
|
28
|
+
group: GROUPS.style,
|
|
29
|
+
description: "Align Items Vertically (on the Y Axis)",
|
|
30
|
+
formType: FORM_TYPES.string,
|
|
31
|
+
propType: PROP_TYPES.STRING,
|
|
32
|
+
defaultValue: "flex-start",
|
|
33
|
+
editable: true,
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
37
36
|
},
|
|
38
|
-
stylesPanelSections: [
|
|
39
|
-
StylesPanelSections.Background,
|
|
40
|
-
StylesPanelSections.Size,
|
|
41
|
-
StylesPanelSections.Margins,
|
|
42
|
-
StylesPanelSections.Position,
|
|
43
|
-
StylesPanelSections.Borders,
|
|
44
|
-
StylesPanelSections.Effects,
|
|
45
|
-
],
|
|
46
37
|
},
|
|
47
38
|
{
|
|
48
|
-
name: "
|
|
49
|
-
tag: "
|
|
50
|
-
|
|
51
|
-
"This is a generic component for low level layout needs. It is similar to a div in HTML",
|
|
52
|
-
...SHARED_SEED_DATA,
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: "Center",
|
|
56
|
-
tag: "Center",
|
|
57
|
-
description: "Center aligns its contents to the center within itself",
|
|
58
|
-
...SHARED_SEED_DATA,
|
|
59
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: "Circle",
|
|
63
|
-
tag: "Circle",
|
|
64
|
-
description:
|
|
65
|
-
"Center aligns its contents to the center within itself with a round border radius",
|
|
66
|
-
...SHARED_SEED_DATA,
|
|
67
|
-
stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: "Container",
|
|
71
|
-
tag: "Container",
|
|
72
|
-
description:
|
|
73
|
-
"The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
|
|
39
|
+
name: "Spacer",
|
|
40
|
+
tag: "Spacer",
|
|
41
|
+
category: COMPONENT_TYPES.layout,
|
|
74
42
|
props: {
|
|
75
|
-
|
|
76
|
-
label: "
|
|
77
|
-
description: "
|
|
78
|
-
|
|
79
|
-
|
|
43
|
+
top: {
|
|
44
|
+
label: "Top",
|
|
45
|
+
description: "Top",
|
|
46
|
+
formType: FORM_TYPES.number,
|
|
47
|
+
propType: PROP_TYPES.NUMBER,
|
|
48
|
+
group: GROUPS.style,
|
|
49
|
+
defaultValue: 8,
|
|
50
|
+
editable: true,
|
|
51
|
+
required: false,
|
|
52
|
+
},
|
|
53
|
+
right: {
|
|
54
|
+
label: "Right",
|
|
55
|
+
description: "Right",
|
|
56
|
+
formType: FORM_TYPES.number,
|
|
57
|
+
propType: PROP_TYPES.NUMBER,
|
|
58
|
+
group: GROUPS.style,
|
|
59
|
+
defaultValue: 8,
|
|
60
|
+
editable: true,
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
63
|
+
bottom: {
|
|
64
|
+
label: "Bottom",
|
|
65
|
+
description: "Bottom",
|
|
66
|
+
formType: FORM_TYPES.number,
|
|
67
|
+
propType: PROP_TYPES.NUMBER,
|
|
68
|
+
group: GROUPS.style,
|
|
69
|
+
defaultValue: 8,
|
|
70
|
+
editable: true,
|
|
71
|
+
required: false,
|
|
72
|
+
},
|
|
73
|
+
left: {
|
|
74
|
+
label: "Left",
|
|
75
|
+
description: "Left",
|
|
76
|
+
formType: FORM_TYPES.number,
|
|
77
|
+
propType: PROP_TYPES.NUMBER,
|
|
78
|
+
group: GROUPS.style,
|
|
79
|
+
defaultValue: 8,
|
|
80
|
+
editable: true,
|
|
81
|
+
required: false,
|
|
82
|
+
},
|
|
80
83
|
},
|
|
81
|
-
...SHARED_SEED_DATA,
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
|
-
name: "
|
|
85
|
-
tag: "
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
86
|
+
name: "Stack",
|
|
87
|
+
tag: "Stack",
|
|
88
|
+
category: COMPONENT_TYPES.deprecated,
|
|
89
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
90
|
+
props: {
|
|
91
|
+
justifyContent: {
|
|
92
|
+
group: GROUPS.style,
|
|
93
|
+
label: "Justify",
|
|
94
|
+
description: "Justify horizontally",
|
|
95
|
+
formType: FORM_TYPES.string,
|
|
96
|
+
propType: PROP_TYPES.STRING,
|
|
97
|
+
defaultValue: "flex-start",
|
|
98
|
+
editable: true,
|
|
99
|
+
required: false,
|
|
100
|
+
},
|
|
101
|
+
alignItems: {
|
|
102
|
+
group: GROUPS.style,
|
|
103
|
+
label: "Align",
|
|
104
|
+
description: "Vertical align",
|
|
105
|
+
formType: FORM_TYPES.string,
|
|
106
|
+
propType: PROP_TYPES.STRING,
|
|
107
|
+
defaultValue: "flex-start",
|
|
108
|
+
editable: true,
|
|
109
|
+
required: false,
|
|
110
|
+
},
|
|
98
111
|
},
|
|
99
|
-
...SHARED_SEED_DATA,
|
|
100
112
|
},
|
|
101
113
|
{
|
|
102
|
-
name: "
|
|
103
|
-
tag: "
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
114
|
+
name: "Center",
|
|
115
|
+
tag: "Center",
|
|
116
|
+
category: COMPONENT_TYPES.layout,
|
|
117
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
118
|
+
props: {
|
|
119
|
+
width: {
|
|
120
|
+
label: "Width",
|
|
121
|
+
description: "Width",
|
|
122
|
+
formType: FORM_TYPES.number,
|
|
123
|
+
propType: PROP_TYPES.NUMBER,
|
|
124
|
+
group: GROUPS.style,
|
|
125
|
+
defaultValue: 240,
|
|
126
|
+
editable: true,
|
|
127
|
+
required: false,
|
|
128
|
+
},
|
|
129
|
+
height: {
|
|
130
|
+
label: "Height",
|
|
131
|
+
description: "Height",
|
|
132
|
+
formType: FORM_TYPES.number,
|
|
133
|
+
propType: PROP_TYPES.NUMBER,
|
|
134
|
+
group: GROUPS.style,
|
|
135
|
+
defaultValue: 200,
|
|
136
|
+
editable: true,
|
|
137
|
+
required: false,
|
|
138
|
+
},
|
|
139
|
+
bgColor: {
|
|
140
|
+
label: "Background Color",
|
|
141
|
+
description: "Background color",
|
|
142
|
+
formType: FORM_TYPES.color,
|
|
143
|
+
propType: PROP_TYPES.THEME,
|
|
144
|
+
editable: true,
|
|
145
|
+
required: false,
|
|
146
|
+
defaultValue: "light",
|
|
147
|
+
group: GROUPS.style,
|
|
148
|
+
},
|
|
108
149
|
},
|
|
109
|
-
...SHARED_SEED_DATA,
|
|
110
|
-
stylesPanelSections: [
|
|
111
|
-
StylesPanelSections.LayoutSelectedItem,
|
|
112
|
-
StylesPanelSections.Background,
|
|
113
|
-
StylesPanelSections.Margins,
|
|
114
|
-
],
|
|
115
150
|
},
|
|
116
151
|
{
|
|
117
|
-
name: "
|
|
118
|
-
tag: "
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
...SHARED_SEED_DATA,
|
|
152
|
+
name: "Circle",
|
|
153
|
+
tag: "Circle",
|
|
154
|
+
category: COMPONENT_TYPES.layout,
|
|
155
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
122
156
|
props: {
|
|
123
|
-
|
|
124
|
-
label: "
|
|
125
|
-
description: "
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
157
|
+
size: {
|
|
158
|
+
label: "Size",
|
|
159
|
+
description: "Size",
|
|
160
|
+
formType: FORM_TYPES.number,
|
|
161
|
+
propType: PROP_TYPES.NUMBER,
|
|
162
|
+
group: GROUPS.style,
|
|
163
|
+
defaultValue: 50,
|
|
164
|
+
editable: true,
|
|
165
|
+
required: false,
|
|
166
|
+
},
|
|
167
|
+
bgColor: {
|
|
168
|
+
label: "Background Color",
|
|
169
|
+
description: "Background color",
|
|
170
|
+
formType: FORM_TYPES.color,
|
|
171
|
+
propType: PROP_TYPES.THEME,
|
|
172
|
+
editable: true,
|
|
173
|
+
required: false,
|
|
174
|
+
defaultValue: "light",
|
|
175
|
+
group: GROUPS.style,
|
|
176
|
+
},
|
|
131
177
|
},
|
|
132
178
|
},
|
|
133
179
|
{
|
|
134
|
-
name: "
|
|
135
|
-
tag: "
|
|
136
|
-
|
|
137
|
-
|
|
180
|
+
name: "Square",
|
|
181
|
+
tag: "Square",
|
|
182
|
+
category: COMPONENT_TYPES.layout,
|
|
183
|
+
stylesPanelSections: [StylesPanelSections.NoStyles],
|
|
138
184
|
props: {
|
|
139
|
-
|
|
140
|
-
label: "
|
|
141
|
-
description: "
|
|
142
|
-
|
|
185
|
+
size: {
|
|
186
|
+
label: "Size",
|
|
187
|
+
description: "Size",
|
|
188
|
+
formType: FORM_TYPES.number,
|
|
189
|
+
propType: PROP_TYPES.NUMBER,
|
|
190
|
+
group: GROUPS.style,
|
|
191
|
+
defaultValue: 50,
|
|
192
|
+
editable: true,
|
|
193
|
+
required: false,
|
|
194
|
+
},
|
|
195
|
+
bgColor: {
|
|
196
|
+
label: "Background Color",
|
|
197
|
+
description: "Background color",
|
|
198
|
+
formType: FORM_TYPES.color,
|
|
199
|
+
propType: PROP_TYPES.THEME,
|
|
200
|
+
editable: true,
|
|
201
|
+
required: false,
|
|
202
|
+
defaultValue: "light",
|
|
203
|
+
group: GROUPS.style,
|
|
204
|
+
},
|
|
143
205
|
},
|
|
144
206
|
},
|
|
145
207
|
];
|