@weaverse/react 0.5.8 → 0.5.11

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 CHANGED
@@ -79,10 +79,9 @@ var base_default = BaseElement;
79
79
  // src/elements/button.tsx
80
80
  var React2 = __toESM(require("react"));
81
81
  var Button = React2.forwardRef((props, ref) => {
82
- const _a = props, { style, buttonType, css } = _a, rest = __objRest(_a, ["style", "buttonType", "css"]);
82
+ const _a = props, { buttonType, css } = _a, rest = __objRest(_a, ["buttonType", "css"]);
83
83
  return /* @__PURE__ */ React2.createElement("button", __spreadValues({
84
- ref,
85
- style
84
+ ref
86
85
  }, rest), props.value);
87
86
  });
88
87
  Button.defaultProps = {
@@ -102,6 +101,26 @@ var schema2 = {
102
101
  }
103
102
  ]
104
103
  },
104
+ {
105
+ tab: "Settings",
106
+ label: "Visibility",
107
+ inspectors: [
108
+ {
109
+ binding: "style",
110
+ type: "visibility"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ tab: "Settings",
116
+ label: "Dimensions",
117
+ inspectors: [
118
+ {
119
+ binding: "style",
120
+ type: "dimensions"
121
+ }
122
+ ]
123
+ },
105
124
  {
106
125
  tab: "Settings",
107
126
  label: "Spacing",
@@ -200,9 +219,12 @@ var schema3 = {
200
219
  display: "flex",
201
220
  backgroundColor: "rgba(248,203,203,0.38)",
202
221
  gridArea: "1 / 1 / 3 / 6",
203
- minHeight: "96px"
222
+ minHeight: "96px",
223
+ overflow: "hidden"
204
224
  },
205
- "@mobile": {}
225
+ "@mobile": {
226
+ width: "100%"
227
+ }
206
228
  }
207
229
  },
208
230
  settings: [
@@ -215,6 +237,16 @@ var schema3 = {
215
237
  type: "alignment"
216
238
  }
217
239
  ]
240
+ },
241
+ {
242
+ tab: "Settings",
243
+ label: "Visibility",
244
+ inspectors: [
245
+ {
246
+ binding: "style",
247
+ type: "visibility"
248
+ }
249
+ ]
218
250
  }
219
251
  ]
220
252
  };
@@ -233,15 +265,16 @@ var schema4 = {
233
265
  data: {
234
266
  css: {
235
267
  "@desktop": {
236
- display: "grid",
268
+ display: "grid !important",
237
269
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
238
270
  gridTemplateColumns: "repeat($columns, 1fr)",
239
271
  gridGap: "$gap",
240
- minHeight: "480px",
241
- backgroundColor: "#c7c7c7"
272
+ minHeight: "104px",
273
+ width: "100%",
274
+ margin: "0 auto"
242
275
  },
243
276
  "@mobile": {
244
- display: "flex"
277
+ display: "flex !important"
245
278
  }
246
279
  }
247
280
  },
@@ -264,16 +297,14 @@ var layout_default = Layout;
264
297
  var React5 = __toESM(require("react"));
265
298
  var Text = React5.forwardRef((props, ref) => {
266
299
  let _a = props, { children, value } = _a, rest = __objRest(_a, ["children", "value"]);
267
- return /* @__PURE__ */ React5.createElement("span", __spreadProps(__spreadValues({
300
+ return /* @__PURE__ */ React5.createElement("div", __spreadProps(__spreadValues({
268
301
  ref
269
302
  }, rest), {
270
- contentEditable: true,
271
303
  dangerouslySetInnerHTML: { __html: value }
272
304
  }));
273
305
  });
274
306
  Text.defaultProps = {
275
- value: "sample text",
276
- tag: "span"
307
+ value: "sample text"
277
308
  };
278
309
  var schema5 = {
279
310
  type: "text",
@@ -295,7 +326,18 @@ var schema5 = {
295
326
  }
296
327
  ]
297
328
  }
298
- ]
329
+ ],
330
+ data: {
331
+ css: {
332
+ "@desktop": {
333
+ width: "100%",
334
+ height: "fit-content",
335
+ "&:focus": {
336
+ outline: "none"
337
+ }
338
+ }
339
+ }
340
+ }
299
341
  };
300
342
  var text_default = Text;
301
343
 
@@ -328,7 +370,6 @@ var elements_default = elements;
328
370
  var shortCssObject = (css) => {
329
371
  return {
330
372
  "@desktop": css[`@desktop`],
331
- "@tablet": css[`@tablet`],
332
373
  "@mobile": css[`@mobile`]
333
374
  };
334
375
  };
package/dist/index.mjs CHANGED
@@ -52,10 +52,9 @@ var base_default = BaseElement;
52
52
  // src/elements/button.tsx
53
53
  import * as React2 from "react";
54
54
  var Button = React2.forwardRef((props, ref) => {
55
- const _a = props, { style, buttonType, css } = _a, rest = __objRest(_a, ["style", "buttonType", "css"]);
55
+ const _a = props, { buttonType, css } = _a, rest = __objRest(_a, ["buttonType", "css"]);
56
56
  return /* @__PURE__ */ React2.createElement("button", __spreadValues({
57
- ref,
58
- style
57
+ ref
59
58
  }, rest), props.value);
60
59
  });
61
60
  Button.defaultProps = {
@@ -75,6 +74,26 @@ var schema2 = {
75
74
  }
76
75
  ]
77
76
  },
77
+ {
78
+ tab: "Settings",
79
+ label: "Visibility",
80
+ inspectors: [
81
+ {
82
+ binding: "style",
83
+ type: "visibility"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ tab: "Settings",
89
+ label: "Dimensions",
90
+ inspectors: [
91
+ {
92
+ binding: "style",
93
+ type: "dimensions"
94
+ }
95
+ ]
96
+ },
78
97
  {
79
98
  tab: "Settings",
80
99
  label: "Spacing",
@@ -173,9 +192,12 @@ var schema3 = {
173
192
  display: "flex",
174
193
  backgroundColor: "rgba(248,203,203,0.38)",
175
194
  gridArea: "1 / 1 / 3 / 6",
176
- minHeight: "96px"
195
+ minHeight: "96px",
196
+ overflow: "hidden"
177
197
  },
178
- "@mobile": {}
198
+ "@mobile": {
199
+ width: "100%"
200
+ }
179
201
  }
180
202
  },
181
203
  settings: [
@@ -188,6 +210,16 @@ var schema3 = {
188
210
  type: "alignment"
189
211
  }
190
212
  ]
213
+ },
214
+ {
215
+ tab: "Settings",
216
+ label: "Visibility",
217
+ inspectors: [
218
+ {
219
+ binding: "style",
220
+ type: "visibility"
221
+ }
222
+ ]
191
223
  }
192
224
  ]
193
225
  };
@@ -206,15 +238,16 @@ var schema4 = {
206
238
  data: {
207
239
  css: {
208
240
  "@desktop": {
209
- display: "grid",
241
+ display: "grid !important",
210
242
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
211
243
  gridTemplateColumns: "repeat($columns, 1fr)",
212
244
  gridGap: "$gap",
213
- minHeight: "480px",
214
- backgroundColor: "#c7c7c7"
245
+ minHeight: "104px",
246
+ width: "100%",
247
+ margin: "0 auto"
215
248
  },
216
249
  "@mobile": {
217
- display: "flex"
250
+ display: "flex !important"
218
251
  }
219
252
  }
220
253
  },
@@ -237,16 +270,14 @@ var layout_default = Layout;
237
270
  import * as React5 from "react";
238
271
  var Text = React5.forwardRef((props, ref) => {
239
272
  let _a = props, { children, value } = _a, rest = __objRest(_a, ["children", "value"]);
240
- return /* @__PURE__ */ React5.createElement("span", __spreadProps(__spreadValues({
273
+ return /* @__PURE__ */ React5.createElement("div", __spreadProps(__spreadValues({
241
274
  ref
242
275
  }, rest), {
243
- contentEditable: true,
244
276
  dangerouslySetInnerHTML: { __html: value }
245
277
  }));
246
278
  });
247
279
  Text.defaultProps = {
248
- value: "sample text",
249
- tag: "span"
280
+ value: "sample text"
250
281
  };
251
282
  var schema5 = {
252
283
  type: "text",
@@ -268,7 +299,18 @@ var schema5 = {
268
299
  }
269
300
  ]
270
301
  }
271
- ]
302
+ ],
303
+ data: {
304
+ css: {
305
+ "@desktop": {
306
+ width: "100%",
307
+ height: "fit-content",
308
+ "&:focus": {
309
+ outline: "none"
310
+ }
311
+ }
312
+ }
313
+ }
272
314
  };
273
315
  var text_default = Text;
274
316
 
@@ -301,7 +343,6 @@ var elements_default = elements;
301
343
  var shortCssObject = (css) => {
302
344
  return {
303
345
  "@desktop": css[`@desktop`],
304
- "@tablet": css[`@tablet`],
305
346
  "@mobile": css[`@mobile`]
306
347
  };
307
348
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.8",
2
+ "version": "0.5.11",
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.8"
34
+ "@weaverse/core": "0.5.11"
35
35
  }
36
36
  }