@weaverse/react 0.5.9 → 0.5.12

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
@@ -218,11 +218,14 @@ var schema3 = {
218
218
  "@desktop": {
219
219
  display: "flex",
220
220
  backgroundColor: "rgba(248,203,203,0.38)",
221
+ flexDirection: "column",
222
+ alignItems: "flex-start",
223
+ justifyContent: "center",
224
+ textAlign: "left",
221
225
  gridArea: "1 / 1 / 3 / 6",
222
- minHeight: "96px"
223
- },
224
- "@mobile": {
225
- display: "flex"
226
+ overflow: "hidden",
227
+ width: "100%",
228
+ height: "fit-content"
226
229
  }
227
230
  }
228
231
  },
@@ -254,9 +257,11 @@ var container_default = Container;
254
257
  // src/elements/layout.tsx
255
258
  var import_react3 = __toESM(require("react"));
256
259
  var Layout = (0, import_react3.forwardRef)((props, ref) => {
257
- return /* @__PURE__ */ import_react3.default.createElement("div", __spreadValues({
260
+ return /* @__PURE__ */ import_react3.default.createElement("div", __spreadProps(__spreadValues({
258
261
  ref
259
- }, props));
262
+ }, props), {
263
+ children: props.children || "Layout Placeholder"
264
+ }));
260
265
  });
261
266
  var schema4 = {
262
267
  title: "Layout",
@@ -268,11 +273,13 @@ var schema4 = {
268
273
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
269
274
  gridTemplateColumns: "repeat($columns, 1fr)",
270
275
  gridGap: "$gap",
271
- minHeight: "480px",
272
- backgroundColor: "#c7c7c7"
276
+ minHeight: "104px",
277
+ width: "100%",
278
+ margin: "0 auto"
273
279
  },
274
280
  "@mobile": {
275
- display: "flex !important"
281
+ display: "flex !important",
282
+ flexDirection: "column"
276
283
  }
277
284
  }
278
285
  },
@@ -295,16 +302,14 @@ var layout_default = Layout;
295
302
  var React5 = __toESM(require("react"));
296
303
  var Text = React5.forwardRef((props, ref) => {
297
304
  let _a = props, { children, value } = _a, rest = __objRest(_a, ["children", "value"]);
298
- return /* @__PURE__ */ React5.createElement("span", __spreadProps(__spreadValues({
305
+ return /* @__PURE__ */ React5.createElement("div", __spreadProps(__spreadValues({
299
306
  ref
300
307
  }, rest), {
301
- contentEditable: true,
302
308
  dangerouslySetInnerHTML: { __html: value }
303
309
  }));
304
310
  });
305
311
  Text.defaultProps = {
306
- value: "sample text",
307
- tag: "span"
312
+ value: "sample text"
308
313
  };
309
314
  var schema5 = {
310
315
  type: "text",
@@ -326,7 +331,21 @@ var schema5 = {
326
331
  }
327
332
  ]
328
333
  }
329
- ]
334
+ ],
335
+ data: {
336
+ css: {
337
+ "@desktop": {
338
+ width: "100%",
339
+ height: "fit-content",
340
+ padding: 0,
341
+ margin: 0,
342
+ outline: "none",
343
+ wordBreak: "break-word",
344
+ overflowWrap: "break-word",
345
+ whitespace: "break-spaces"
346
+ }
347
+ }
348
+ }
330
349
  };
331
350
  var text_default = Text;
332
351
 
package/dist/index.mjs CHANGED
@@ -191,11 +191,14 @@ var schema3 = {
191
191
  "@desktop": {
192
192
  display: "flex",
193
193
  backgroundColor: "rgba(248,203,203,0.38)",
194
+ flexDirection: "column",
195
+ alignItems: "flex-start",
196
+ justifyContent: "center",
197
+ textAlign: "left",
194
198
  gridArea: "1 / 1 / 3 / 6",
195
- minHeight: "96px"
196
- },
197
- "@mobile": {
198
- display: "flex"
199
+ overflow: "hidden",
200
+ width: "100%",
201
+ height: "fit-content"
199
202
  }
200
203
  }
201
204
  },
@@ -227,9 +230,11 @@ var container_default = Container;
227
230
  // src/elements/layout.tsx
228
231
  import React4, { forwardRef as forwardRef3 } from "react";
229
232
  var Layout = forwardRef3((props, ref) => {
230
- return /* @__PURE__ */ React4.createElement("div", __spreadValues({
233
+ return /* @__PURE__ */ React4.createElement("div", __spreadProps(__spreadValues({
231
234
  ref
232
- }, props));
235
+ }, props), {
236
+ children: props.children || "Layout Placeholder"
237
+ }));
233
238
  });
234
239
  var schema4 = {
235
240
  title: "Layout",
@@ -241,11 +246,13 @@ var schema4 = {
241
246
  gridTemplateRows: "repeat(auto-fill, $rowSize)",
242
247
  gridTemplateColumns: "repeat($columns, 1fr)",
243
248
  gridGap: "$gap",
244
- minHeight: "480px",
245
- backgroundColor: "#c7c7c7"
249
+ minHeight: "104px",
250
+ width: "100%",
251
+ margin: "0 auto"
246
252
  },
247
253
  "@mobile": {
248
- display: "flex !important"
254
+ display: "flex !important",
255
+ flexDirection: "column"
249
256
  }
250
257
  }
251
258
  },
@@ -268,16 +275,14 @@ var layout_default = Layout;
268
275
  import * as React5 from "react";
269
276
  var Text = React5.forwardRef((props, ref) => {
270
277
  let _a = props, { children, value } = _a, rest = __objRest(_a, ["children", "value"]);
271
- return /* @__PURE__ */ React5.createElement("span", __spreadProps(__spreadValues({
278
+ return /* @__PURE__ */ React5.createElement("div", __spreadProps(__spreadValues({
272
279
  ref
273
280
  }, rest), {
274
- contentEditable: true,
275
281
  dangerouslySetInnerHTML: { __html: value }
276
282
  }));
277
283
  });
278
284
  Text.defaultProps = {
279
- value: "sample text",
280
- tag: "span"
285
+ value: "sample text"
281
286
  };
282
287
  var schema5 = {
283
288
  type: "text",
@@ -299,7 +304,21 @@ var schema5 = {
299
304
  }
300
305
  ]
301
306
  }
302
- ]
307
+ ],
308
+ data: {
309
+ css: {
310
+ "@desktop": {
311
+ width: "100%",
312
+ height: "fit-content",
313
+ padding: 0,
314
+ margin: 0,
315
+ outline: "none",
316
+ wordBreak: "break-word",
317
+ overflowWrap: "break-word",
318
+ whitespace: "break-spaces"
319
+ }
320
+ }
321
+ }
303
322
  };
304
323
  var text_default = Text;
305
324
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.9",
2
+ "version": "0.5.12",
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.9"
34
+ "@weaverse/core": "0.5.12"
35
35
  }
36
36
  }