@weaverse/react 0.5.7 → 0.5.10

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",
@@ -202,7 +221,9 @@ var schema3 = {
202
221
  gridArea: "1 / 1 / 3 / 6",
203
222
  minHeight: "96px"
204
223
  },
205
- "@mobile": {}
224
+ "@mobile": {
225
+ display: "flex"
226
+ }
206
227
  }
207
228
  },
208
229
  settings: [
@@ -215,6 +236,16 @@ var schema3 = {
215
236
  type: "alignment"
216
237
  }
217
238
  ]
239
+ },
240
+ {
241
+ tab: "Settings",
242
+ label: "Visibility",
243
+ inspectors: [
244
+ {
245
+ binding: "style",
246
+ type: "visibility"
247
+ }
248
+ ]
218
249
  }
219
250
  ]
220
251
  };
@@ -233,15 +264,16 @@ var schema4 = {
233
264
  data: {
234
265
  css: {
235
266
  "@desktop": {
236
- display: "grid",
267
+ display: "grid !important",
237
268
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
238
269
  gridTemplateColumns: "repeat($columns, 1fr)",
239
270
  gridGap: "$gap",
240
- minHeight: "480px",
241
- backgroundColor: "#c7c7c7"
271
+ minHeight: "104px",
272
+ width: "100%",
273
+ margin: "0 auto"
242
274
  },
243
275
  "@mobile": {
244
- display: "flex"
276
+ display: "flex !important"
245
277
  }
246
278
  }
247
279
  },
@@ -328,7 +360,6 @@ var elements_default = elements;
328
360
  var shortCssObject = (css) => {
329
361
  return {
330
362
  "@desktop": css[`@desktop`],
331
- "@tablet": css[`@tablet`],
332
363
  "@mobile": css[`@mobile`]
333
364
  };
334
365
  };
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",
@@ -175,7 +194,9 @@ var schema3 = {
175
194
  gridArea: "1 / 1 / 3 / 6",
176
195
  minHeight: "96px"
177
196
  },
178
- "@mobile": {}
197
+ "@mobile": {
198
+ display: "flex"
199
+ }
179
200
  }
180
201
  },
181
202
  settings: [
@@ -188,6 +209,16 @@ var schema3 = {
188
209
  type: "alignment"
189
210
  }
190
211
  ]
212
+ },
213
+ {
214
+ tab: "Settings",
215
+ label: "Visibility",
216
+ inspectors: [
217
+ {
218
+ binding: "style",
219
+ type: "visibility"
220
+ }
221
+ ]
191
222
  }
192
223
  ]
193
224
  };
@@ -206,15 +237,16 @@ var schema4 = {
206
237
  data: {
207
238
  css: {
208
239
  "@desktop": {
209
- display: "grid",
240
+ display: "grid !important",
210
241
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
211
242
  gridTemplateColumns: "repeat($columns, 1fr)",
212
243
  gridGap: "$gap",
213
- minHeight: "480px",
214
- backgroundColor: "#c7c7c7"
244
+ minHeight: "104px",
245
+ width: "100%",
246
+ margin: "0 auto"
215
247
  },
216
248
  "@mobile": {
217
- display: "flex"
249
+ display: "flex !important"
218
250
  }
219
251
  }
220
252
  },
@@ -301,7 +333,6 @@ var elements_default = elements;
301
333
  var shortCssObject = (css) => {
302
334
  return {
303
335
  "@desktop": css[`@desktop`],
304
- "@tablet": css[`@tablet`],
305
336
  "@mobile": css[`@mobile`]
306
337
  };
307
338
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.7",
2
+ "version": "0.5.10",
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.6"
34
+ "@weaverse/core": "0.5.10"
35
35
  }
36
36
  }