@weaverse/react 0.5.12 → 0.6.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.
Files changed (3) hide show
  1. package/dist/index.js +11 -141
  2. package/dist/index.mjs +11 -141
  3. 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
- settings: [
93
+ styles: [
94
94
  {
95
- tab: "Settings",
96
- label: "Alignment",
97
- inspectors: [
98
- {
99
- binding: "style",
100
- type: "alignment"
101
- }
102
- ]
95
+ type: "alignment"
103
96
  },
104
97
  {
105
- tab: "Settings",
106
- label: "Visibility",
107
- inspectors: [
108
- {
109
- binding: "style",
110
- type: "visibility"
111
- }
112
- ]
98
+ type: "visibility"
113
99
  },
114
100
  {
115
- tab: "Settings",
116
- label: "Dimensions",
117
- inspectors: [
118
- {
119
- binding: "style",
120
- type: "dimensions"
121
- }
122
- ]
101
+ type: "dimensions"
123
102
  },
124
103
  {
125
- tab: "Settings",
126
- label: "Spacing",
127
- inspectors: [
128
- {
129
- binding: "style",
130
- type: "spacing"
131
- }
132
- ]
104
+ type: "spacing"
133
105
  },
134
106
  {
135
- tab: "Settings",
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: "background"
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
 
@@ -272,6 +169,7 @@ var schema4 = {
272
169
  display: "grid !important",
273
170
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
274
171
  gridTemplateColumns: "repeat($columns, 1fr)",
172
+ gridAutoRows: "$sizes$rowSize",
275
173
  gridGap: "$gap",
276
174
  minHeight: "104px",
277
175
  width: "100%",
@@ -283,18 +181,7 @@ var schema4 = {
283
181
  }
284
182
  }
285
183
  },
286
- settings: [
287
- {
288
- tab: "Settings",
289
- label: "Spacing",
290
- inspectors: [
291
- {
292
- binding: "style",
293
- type: "spacing"
294
- }
295
- ]
296
- }
297
- ]
184
+ settings: []
298
185
  };
299
186
  var layout_default = Layout;
300
187
 
@@ -314,24 +201,7 @@ Text.defaultProps = {
314
201
  var schema5 = {
315
202
  type: "text",
316
203
  title: "Text Settings",
317
- settings: [
318
- {
319
- tab: "General",
320
- label: "Text",
321
- inspectors: [
322
- {
323
- binding: "data",
324
- key: "value",
325
- type: "textarea"
326
- },
327
- {
328
- binding: "style",
329
- key: "color",
330
- type: "color"
331
- }
332
- ]
333
- }
334
- ],
204
+ settings: [],
335
205
  data: {
336
206
  css: {
337
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
- settings: [
66
+ styles: [
67
67
  {
68
- tab: "Settings",
69
- label: "Alignment",
70
- inspectors: [
71
- {
72
- binding: "style",
73
- type: "alignment"
74
- }
75
- ]
68
+ type: "alignment"
76
69
  },
77
70
  {
78
- tab: "Settings",
79
- label: "Visibility",
80
- inspectors: [
81
- {
82
- binding: "style",
83
- type: "visibility"
84
- }
85
- ]
71
+ type: "visibility"
86
72
  },
87
73
  {
88
- tab: "Settings",
89
- label: "Dimensions",
90
- inspectors: [
91
- {
92
- binding: "style",
93
- type: "dimensions"
94
- }
95
- ]
74
+ type: "dimensions"
96
75
  },
97
76
  {
98
- tab: "Settings",
99
- label: "Spacing",
100
- inspectors: [
101
- {
102
- binding: "style",
103
- type: "spacing"
104
- }
105
- ]
77
+ type: "spacing"
106
78
  },
107
79
  {
108
- tab: "Settings",
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: "background"
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
 
@@ -245,6 +142,7 @@ var schema4 = {
245
142
  display: "grid !important",
246
143
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
247
144
  gridTemplateColumns: "repeat($columns, 1fr)",
145
+ gridAutoRows: "$sizes$rowSize",
248
146
  gridGap: "$gap",
249
147
  minHeight: "104px",
250
148
  width: "100%",
@@ -256,18 +154,7 @@ var schema4 = {
256
154
  }
257
155
  }
258
156
  },
259
- settings: [
260
- {
261
- tab: "Settings",
262
- label: "Spacing",
263
- inspectors: [
264
- {
265
- binding: "style",
266
- type: "spacing"
267
- }
268
- ]
269
- }
270
- ]
157
+ settings: []
271
158
  };
272
159
  var layout_default = Layout;
273
160
 
@@ -287,24 +174,7 @@ Text.defaultProps = {
287
174
  var schema5 = {
288
175
  type: "text",
289
176
  title: "Text Settings",
290
- settings: [
291
- {
292
- tab: "General",
293
- label: "Text",
294
- inspectors: [
295
- {
296
- binding: "data",
297
- key: "value",
298
- type: "textarea"
299
- },
300
- {
301
- binding: "style",
302
- key: "color",
303
- type: "color"
304
- }
305
- ]
306
- }
307
- ],
177
+ settings: [],
308
178
  data: {
309
179
  css: {
310
180
  "@desktop": {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.12",
2
+ "version": "0.6.2",
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.5.12"
34
+ "@weaverse/core": "0.6.2"
35
35
  }
36
36
  }