@weaverse/react 0.5.13 → 0.6.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.
- package/dist/index.js +10 -141
- package/dist/index.mjs +10 -141
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -90,106 +90,24 @@ Button.defaultProps = {
|
|
|
90
90
|
var schema2 = {
|
|
91
91
|
title: "Button",
|
|
92
92
|
type: "button",
|
|
93
|
-
|
|
93
|
+
styles: [
|
|
94
94
|
{
|
|
95
|
-
|
|
96
|
-
label: "Alignment",
|
|
97
|
-
inspectors: [
|
|
98
|
-
{
|
|
99
|
-
binding: "style",
|
|
100
|
-
type: "alignment"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
95
|
+
type: "dimensions"
|
|
103
96
|
},
|
|
104
97
|
{
|
|
105
|
-
|
|
106
|
-
label: "Visibility",
|
|
107
|
-
inspectors: [
|
|
108
|
-
{
|
|
109
|
-
binding: "style",
|
|
110
|
-
type: "visibility"
|
|
111
|
-
}
|
|
112
|
-
]
|
|
98
|
+
type: "alignment"
|
|
113
99
|
},
|
|
114
100
|
{
|
|
115
|
-
|
|
116
|
-
label: "Dimensions",
|
|
117
|
-
inspectors: [
|
|
118
|
-
{
|
|
119
|
-
binding: "style",
|
|
120
|
-
type: "dimensions"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
101
|
+
type: "border"
|
|
123
102
|
},
|
|
124
103
|
{
|
|
125
|
-
|
|
126
|
-
label: "Spacing",
|
|
127
|
-
inspectors: [
|
|
128
|
-
{
|
|
129
|
-
binding: "style",
|
|
130
|
-
type: "spacing"
|
|
131
|
-
}
|
|
132
|
-
]
|
|
104
|
+
type: "background"
|
|
133
105
|
},
|
|
134
106
|
{
|
|
135
|
-
|
|
136
|
-
label: "Overlay",
|
|
137
|
-
inspectors: [
|
|
138
|
-
{
|
|
139
|
-
binding: "data",
|
|
140
|
-
key: "applyOverlay",
|
|
141
|
-
label: "Apply Overlay",
|
|
142
|
-
type: "switch"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
binding: "data",
|
|
146
|
-
key: "buttonType",
|
|
147
|
-
label: "Button Type",
|
|
148
|
-
type: "select",
|
|
149
|
-
options: [
|
|
150
|
-
{ value: 1, label: "One" },
|
|
151
|
-
{ value: 2, label: "Two" }
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
tab: "Settings",
|
|
158
|
-
label: "Group 1",
|
|
159
|
-
inspectors: [
|
|
160
|
-
{
|
|
161
|
-
binding: "data",
|
|
162
|
-
key: "value",
|
|
163
|
-
type: "textarea",
|
|
164
|
-
placeholder: "Button text",
|
|
165
|
-
label: "Button text 1"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
binding: "data",
|
|
169
|
-
key: "value",
|
|
170
|
-
type: "input",
|
|
171
|
-
placeholder: "Button text",
|
|
172
|
-
label: "Button text 2"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
binding: "style",
|
|
176
|
-
key: "backgroundColor",
|
|
177
|
-
type: "color"
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
tab: "Settings",
|
|
183
|
-
label: "Group 2",
|
|
184
|
-
inspectors: [
|
|
185
|
-
{
|
|
186
|
-
binding: "style",
|
|
187
|
-
key: "color",
|
|
188
|
-
type: "color"
|
|
189
|
-
}
|
|
190
|
-
]
|
|
107
|
+
type: "spacing"
|
|
191
108
|
}
|
|
192
109
|
],
|
|
110
|
+
settings: [],
|
|
193
111
|
toolbar: [],
|
|
194
112
|
data: {
|
|
195
113
|
css: {
|
|
@@ -229,28 +147,7 @@ var schema3 = {
|
|
|
229
147
|
}
|
|
230
148
|
}
|
|
231
149
|
},
|
|
232
|
-
settings: [
|
|
233
|
-
{
|
|
234
|
-
tab: "Settings",
|
|
235
|
-
label: "Alignment",
|
|
236
|
-
inspectors: [
|
|
237
|
-
{
|
|
238
|
-
binding: "style",
|
|
239
|
-
type: "alignment"
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
tab: "Settings",
|
|
245
|
-
label: "Visibility",
|
|
246
|
-
inspectors: [
|
|
247
|
-
{
|
|
248
|
-
binding: "style",
|
|
249
|
-
type: "visibility"
|
|
250
|
-
}
|
|
251
|
-
]
|
|
252
|
-
}
|
|
253
|
-
]
|
|
150
|
+
settings: []
|
|
254
151
|
};
|
|
255
152
|
var container_default = Container;
|
|
256
153
|
|
|
@@ -284,18 +181,7 @@ var schema4 = {
|
|
|
284
181
|
}
|
|
285
182
|
}
|
|
286
183
|
},
|
|
287
|
-
settings: [
|
|
288
|
-
{
|
|
289
|
-
tab: "Settings",
|
|
290
|
-
label: "Spacing",
|
|
291
|
-
inspectors: [
|
|
292
|
-
{
|
|
293
|
-
binding: "style",
|
|
294
|
-
type: "spacing"
|
|
295
|
-
}
|
|
296
|
-
]
|
|
297
|
-
}
|
|
298
|
-
]
|
|
184
|
+
settings: []
|
|
299
185
|
};
|
|
300
186
|
var layout_default = Layout;
|
|
301
187
|
|
|
@@ -315,24 +201,7 @@ Text.defaultProps = {
|
|
|
315
201
|
var schema5 = {
|
|
316
202
|
type: "text",
|
|
317
203
|
title: "Text Settings",
|
|
318
|
-
settings: [
|
|
319
|
-
{
|
|
320
|
-
tab: "General",
|
|
321
|
-
label: "Text",
|
|
322
|
-
inspectors: [
|
|
323
|
-
{
|
|
324
|
-
binding: "data",
|
|
325
|
-
key: "value",
|
|
326
|
-
type: "textarea"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
binding: "style",
|
|
330
|
-
key: "color",
|
|
331
|
-
type: "color"
|
|
332
|
-
}
|
|
333
|
-
]
|
|
334
|
-
}
|
|
335
|
-
],
|
|
204
|
+
settings: [],
|
|
336
205
|
data: {
|
|
337
206
|
css: {
|
|
338
207
|
"@desktop": {
|
package/dist/index.mjs
CHANGED
|
@@ -63,106 +63,24 @@ Button.defaultProps = {
|
|
|
63
63
|
var schema2 = {
|
|
64
64
|
title: "Button",
|
|
65
65
|
type: "button",
|
|
66
|
-
|
|
66
|
+
styles: [
|
|
67
67
|
{
|
|
68
|
-
|
|
69
|
-
label: "Alignment",
|
|
70
|
-
inspectors: [
|
|
71
|
-
{
|
|
72
|
-
binding: "style",
|
|
73
|
-
type: "alignment"
|
|
74
|
-
}
|
|
75
|
-
]
|
|
68
|
+
type: "dimensions"
|
|
76
69
|
},
|
|
77
70
|
{
|
|
78
|
-
|
|
79
|
-
label: "Visibility",
|
|
80
|
-
inspectors: [
|
|
81
|
-
{
|
|
82
|
-
binding: "style",
|
|
83
|
-
type: "visibility"
|
|
84
|
-
}
|
|
85
|
-
]
|
|
71
|
+
type: "alignment"
|
|
86
72
|
},
|
|
87
73
|
{
|
|
88
|
-
|
|
89
|
-
label: "Dimensions",
|
|
90
|
-
inspectors: [
|
|
91
|
-
{
|
|
92
|
-
binding: "style",
|
|
93
|
-
type: "dimensions"
|
|
94
|
-
}
|
|
95
|
-
]
|
|
74
|
+
type: "border"
|
|
96
75
|
},
|
|
97
76
|
{
|
|
98
|
-
|
|
99
|
-
label: "Spacing",
|
|
100
|
-
inspectors: [
|
|
101
|
-
{
|
|
102
|
-
binding: "style",
|
|
103
|
-
type: "spacing"
|
|
104
|
-
}
|
|
105
|
-
]
|
|
77
|
+
type: "background"
|
|
106
78
|
},
|
|
107
79
|
{
|
|
108
|
-
|
|
109
|
-
label: "Overlay",
|
|
110
|
-
inspectors: [
|
|
111
|
-
{
|
|
112
|
-
binding: "data",
|
|
113
|
-
key: "applyOverlay",
|
|
114
|
-
label: "Apply Overlay",
|
|
115
|
-
type: "switch"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
binding: "data",
|
|
119
|
-
key: "buttonType",
|
|
120
|
-
label: "Button Type",
|
|
121
|
-
type: "select",
|
|
122
|
-
options: [
|
|
123
|
-
{ value: 1, label: "One" },
|
|
124
|
-
{ value: 2, label: "Two" }
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
tab: "Settings",
|
|
131
|
-
label: "Group 1",
|
|
132
|
-
inspectors: [
|
|
133
|
-
{
|
|
134
|
-
binding: "data",
|
|
135
|
-
key: "value",
|
|
136
|
-
type: "textarea",
|
|
137
|
-
placeholder: "Button text",
|
|
138
|
-
label: "Button text 1"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
binding: "data",
|
|
142
|
-
key: "value",
|
|
143
|
-
type: "input",
|
|
144
|
-
placeholder: "Button text",
|
|
145
|
-
label: "Button text 2"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
binding: "style",
|
|
149
|
-
key: "backgroundColor",
|
|
150
|
-
type: "color"
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
tab: "Settings",
|
|
156
|
-
label: "Group 2",
|
|
157
|
-
inspectors: [
|
|
158
|
-
{
|
|
159
|
-
binding: "style",
|
|
160
|
-
key: "color",
|
|
161
|
-
type: "color"
|
|
162
|
-
}
|
|
163
|
-
]
|
|
80
|
+
type: "spacing"
|
|
164
81
|
}
|
|
165
82
|
],
|
|
83
|
+
settings: [],
|
|
166
84
|
toolbar: [],
|
|
167
85
|
data: {
|
|
168
86
|
css: {
|
|
@@ -202,28 +120,7 @@ var schema3 = {
|
|
|
202
120
|
}
|
|
203
121
|
}
|
|
204
122
|
},
|
|
205
|
-
settings: [
|
|
206
|
-
{
|
|
207
|
-
tab: "Settings",
|
|
208
|
-
label: "Alignment",
|
|
209
|
-
inspectors: [
|
|
210
|
-
{
|
|
211
|
-
binding: "style",
|
|
212
|
-
type: "alignment"
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
tab: "Settings",
|
|
218
|
-
label: "Visibility",
|
|
219
|
-
inspectors: [
|
|
220
|
-
{
|
|
221
|
-
binding: "style",
|
|
222
|
-
type: "visibility"
|
|
223
|
-
}
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
]
|
|
123
|
+
settings: []
|
|
227
124
|
};
|
|
228
125
|
var container_default = Container;
|
|
229
126
|
|
|
@@ -257,18 +154,7 @@ var schema4 = {
|
|
|
257
154
|
}
|
|
258
155
|
}
|
|
259
156
|
},
|
|
260
|
-
settings: [
|
|
261
|
-
{
|
|
262
|
-
tab: "Settings",
|
|
263
|
-
label: "Spacing",
|
|
264
|
-
inspectors: [
|
|
265
|
-
{
|
|
266
|
-
binding: "style",
|
|
267
|
-
type: "spacing"
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
}
|
|
271
|
-
]
|
|
157
|
+
settings: []
|
|
272
158
|
};
|
|
273
159
|
var layout_default = Layout;
|
|
274
160
|
|
|
@@ -288,24 +174,7 @@ Text.defaultProps = {
|
|
|
288
174
|
var schema5 = {
|
|
289
175
|
type: "text",
|
|
290
176
|
title: "Text Settings",
|
|
291
|
-
settings: [
|
|
292
|
-
{
|
|
293
|
-
tab: "General",
|
|
294
|
-
label: "Text",
|
|
295
|
-
inspectors: [
|
|
296
|
-
{
|
|
297
|
-
binding: "data",
|
|
298
|
-
key: "value",
|
|
299
|
-
type: "textarea"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
binding: "style",
|
|
303
|
-
key: "color",
|
|
304
|
-
type: "color"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
}
|
|
308
|
-
],
|
|
177
|
+
settings: [],
|
|
309
178
|
data: {
|
|
310
179
|
css: {
|
|
311
180
|
"@desktop": {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.6.3",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"name": "@weaverse/react",
|
|
32
32
|
"author": "Weaverse Team",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@weaverse/core": "0.
|
|
34
|
+
"@weaverse/core": "0.6.3"
|
|
35
35
|
}
|
|
36
36
|
}
|