@weaverse/react 0.5.11 → 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 +19 -11
- package/dist/index.mjs +19 -11
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -218,12 +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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
"@mobile": {
|
|
226
|
-
width: "100%"
|
|
226
|
+
overflow: "hidden",
|
|
227
|
+
width: "100%",
|
|
228
|
+
height: "fit-content"
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
231
|
},
|
|
@@ -255,9 +257,11 @@ var container_default = Container;
|
|
|
255
257
|
// src/elements/layout.tsx
|
|
256
258
|
var import_react3 = __toESM(require("react"));
|
|
257
259
|
var Layout = (0, import_react3.forwardRef)((props, ref) => {
|
|
258
|
-
return /* @__PURE__ */ import_react3.default.createElement("div", __spreadValues({
|
|
260
|
+
return /* @__PURE__ */ import_react3.default.createElement("div", __spreadProps(__spreadValues({
|
|
259
261
|
ref
|
|
260
|
-
}, props)
|
|
262
|
+
}, props), {
|
|
263
|
+
children: props.children || "Layout Placeholder"
|
|
264
|
+
}));
|
|
261
265
|
});
|
|
262
266
|
var schema4 = {
|
|
263
267
|
title: "Layout",
|
|
@@ -274,7 +278,8 @@ var schema4 = {
|
|
|
274
278
|
margin: "0 auto"
|
|
275
279
|
},
|
|
276
280
|
"@mobile": {
|
|
277
|
-
display: "flex !important"
|
|
281
|
+
display: "flex !important",
|
|
282
|
+
flexDirection: "column"
|
|
278
283
|
}
|
|
279
284
|
}
|
|
280
285
|
},
|
|
@@ -332,9 +337,12 @@ var schema5 = {
|
|
|
332
337
|
"@desktop": {
|
|
333
338
|
width: "100%",
|
|
334
339
|
height: "fit-content",
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
340
|
+
padding: 0,
|
|
341
|
+
margin: 0,
|
|
342
|
+
outline: "none",
|
|
343
|
+
wordBreak: "break-word",
|
|
344
|
+
overflowWrap: "break-word",
|
|
345
|
+
whitespace: "break-spaces"
|
|
338
346
|
}
|
|
339
347
|
}
|
|
340
348
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -191,12 +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
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
"@mobile": {
|
|
199
|
-
width: "100%"
|
|
199
|
+
overflow: "hidden",
|
|
200
|
+
width: "100%",
|
|
201
|
+
height: "fit-content"
|
|
200
202
|
}
|
|
201
203
|
}
|
|
202
204
|
},
|
|
@@ -228,9 +230,11 @@ var container_default = Container;
|
|
|
228
230
|
// src/elements/layout.tsx
|
|
229
231
|
import React4, { forwardRef as forwardRef3 } from "react";
|
|
230
232
|
var Layout = forwardRef3((props, ref) => {
|
|
231
|
-
return /* @__PURE__ */ React4.createElement("div", __spreadValues({
|
|
233
|
+
return /* @__PURE__ */ React4.createElement("div", __spreadProps(__spreadValues({
|
|
232
234
|
ref
|
|
233
|
-
}, props)
|
|
235
|
+
}, props), {
|
|
236
|
+
children: props.children || "Layout Placeholder"
|
|
237
|
+
}));
|
|
234
238
|
});
|
|
235
239
|
var schema4 = {
|
|
236
240
|
title: "Layout",
|
|
@@ -247,7 +251,8 @@ var schema4 = {
|
|
|
247
251
|
margin: "0 auto"
|
|
248
252
|
},
|
|
249
253
|
"@mobile": {
|
|
250
|
-
display: "flex !important"
|
|
254
|
+
display: "flex !important",
|
|
255
|
+
flexDirection: "column"
|
|
251
256
|
}
|
|
252
257
|
}
|
|
253
258
|
},
|
|
@@ -305,9 +310,12 @@ var schema5 = {
|
|
|
305
310
|
"@desktop": {
|
|
306
311
|
width: "100%",
|
|
307
312
|
height: "fit-content",
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
313
|
+
padding: 0,
|
|
314
|
+
margin: 0,
|
|
315
|
+
outline: "none",
|
|
316
|
+
wordBreak: "break-word",
|
|
317
|
+
overflowWrap: "break-word",
|
|
318
|
+
whitespace: "break-spaces"
|
|
311
319
|
}
|
|
312
320
|
}
|
|
313
321
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.5.
|
|
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.
|
|
34
|
+
"@weaverse/core": "0.5.12"
|
|
35
35
|
}
|
|
36
36
|
}
|