@1urso/generic-editor 0.1.4 → 0.1.5
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/generic-editor.js +73 -80
- package/dist/generic-editor.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/generic-editor.js
CHANGED
|
@@ -13222,47 +13222,84 @@ var EditorContent = ({ layout: s, initialState: C, onSave: w, theme: k = "light"
|
|
|
13222
13222
|
flexShrink: 0,
|
|
13223
13223
|
height: "100%"
|
|
13224
13224
|
},
|
|
13225
|
-
children: [/* @__PURE__ */ jsx(
|
|
13225
|
+
children: [/* @__PURE__ */ jsx(p$1, {
|
|
13226
|
+
p: "4",
|
|
13227
|
+
style: {
|
|
13228
|
+
borderBottom: "1px solid var(--gray-5)",
|
|
13229
|
+
backgroundColor: "var(--gray-2)"
|
|
13230
|
+
},
|
|
13231
|
+
children: /* @__PURE__ */ jsx(p, {
|
|
13232
|
+
direction: "column",
|
|
13233
|
+
gap: "3",
|
|
13234
|
+
children: /* @__PURE__ */ jsxs(p$1, { children: [
|
|
13235
|
+
/* @__PURE__ */ jsx(p$2, {
|
|
13236
|
+
size: "2",
|
|
13237
|
+
weight: "bold",
|
|
13238
|
+
mb: "2",
|
|
13239
|
+
as: "div",
|
|
13240
|
+
children: "Editor"
|
|
13241
|
+
}),
|
|
13242
|
+
/* @__PURE__ */ jsxs(I$1, { children: [/* @__PURE__ */ jsx(h, { children: /* @__PURE__ */ jsx(o, {
|
|
13243
|
+
variant: "solid",
|
|
13244
|
+
color: "green",
|
|
13245
|
+
size: "3",
|
|
13246
|
+
style: {
|
|
13247
|
+
width: "100%",
|
|
13248
|
+
cursor: "pointer",
|
|
13249
|
+
justifyContent: "center",
|
|
13250
|
+
marginBottom: "8px"
|
|
13251
|
+
},
|
|
13252
|
+
children: "Adicionar Novo +"
|
|
13253
|
+
}) }), /* @__PURE__ */ jsxs(g, {
|
|
13254
|
+
style: { width: "240px" },
|
|
13255
|
+
children: [
|
|
13256
|
+
/* @__PURE__ */ jsx(v$1, {
|
|
13257
|
+
onSelect: () => X("text"),
|
|
13258
|
+
children: "Texto"
|
|
13259
|
+
}),
|
|
13260
|
+
/* @__PURE__ */ jsx(v$1, {
|
|
13261
|
+
onSelect: () => X("image"),
|
|
13262
|
+
children: "Imagem"
|
|
13263
|
+
}),
|
|
13264
|
+
/* @__PURE__ */ jsx(v$1, {
|
|
13265
|
+
onSelect: () => X("box"),
|
|
13266
|
+
children: "Caixa (Container)"
|
|
13267
|
+
})
|
|
13268
|
+
]
|
|
13269
|
+
})] }),
|
|
13270
|
+
/* @__PURE__ */ jsxs(o, {
|
|
13271
|
+
variant: "soft",
|
|
13272
|
+
color: "blue",
|
|
13273
|
+
style: {
|
|
13274
|
+
width: "100%",
|
|
13275
|
+
justifyContent: "center",
|
|
13276
|
+
cursor: "pointer"
|
|
13277
|
+
},
|
|
13278
|
+
onClick: () => {
|
|
13279
|
+
if (w) {
|
|
13280
|
+
let s = {
|
|
13281
|
+
elements: J.elements,
|
|
13282
|
+
isList: J.isList,
|
|
13283
|
+
mockData: J.mockData,
|
|
13284
|
+
singleMockData: J.singleMockData,
|
|
13285
|
+
listSettings: J.listSettings
|
|
13286
|
+
};
|
|
13287
|
+
w(JSON.stringify(s, null, 2));
|
|
13288
|
+
}
|
|
13289
|
+
},
|
|
13290
|
+
children: [/* @__PURE__ */ jsx(Share1Icon, {}), " Salvar Alterações"]
|
|
13291
|
+
})
|
|
13292
|
+
] })
|
|
13293
|
+
})
|
|
13294
|
+
}), /* @__PURE__ */ jsx(c, {
|
|
13226
13295
|
type: "auto",
|
|
13227
13296
|
scrollbars: "vertical",
|
|
13228
13297
|
style: { flex: 1 },
|
|
13229
|
-
children: /* @__PURE__ */
|
|
13298
|
+
children: /* @__PURE__ */ jsx(p, {
|
|
13230
13299
|
direction: "column",
|
|
13231
13300
|
gap: "4",
|
|
13232
13301
|
p: "4",
|
|
13233
|
-
children:
|
|
13234
|
-
size: "2",
|
|
13235
|
-
weight: "bold",
|
|
13236
|
-
mb: "2",
|
|
13237
|
-
as: "div",
|
|
13238
|
-
children: "Elementos"
|
|
13239
|
-
}), /* @__PURE__ */ jsxs(I$1, { children: [/* @__PURE__ */ jsx(h, { children: /* @__PURE__ */ jsx(o, {
|
|
13240
|
-
variant: "solid",
|
|
13241
|
-
color: "green",
|
|
13242
|
-
size: "3",
|
|
13243
|
-
style: {
|
|
13244
|
-
width: "100%",
|
|
13245
|
-
cursor: "pointer",
|
|
13246
|
-
justifyContent: "center"
|
|
13247
|
-
},
|
|
13248
|
-
children: "Adicionar Novo +"
|
|
13249
|
-
}) }), /* @__PURE__ */ jsxs(g, {
|
|
13250
|
-
style: { width: "240px" },
|
|
13251
|
-
children: [
|
|
13252
|
-
/* @__PURE__ */ jsx(v$1, {
|
|
13253
|
-
onSelect: () => X("text"),
|
|
13254
|
-
children: "Texto"
|
|
13255
|
-
}),
|
|
13256
|
-
/* @__PURE__ */ jsx(v$1, {
|
|
13257
|
-
onSelect: () => X("image"),
|
|
13258
|
-
children: "Imagem"
|
|
13259
|
-
}),
|
|
13260
|
-
/* @__PURE__ */ jsx(v$1, {
|
|
13261
|
-
onSelect: () => X("box"),
|
|
13262
|
-
children: "Caixa (Container)"
|
|
13263
|
-
})
|
|
13264
|
-
]
|
|
13265
|
-
})] })] }), /* @__PURE__ */ jsxs(p$1, { children: [
|
|
13302
|
+
children: /* @__PURE__ */ jsxs(p$1, { children: [
|
|
13266
13303
|
/* @__PURE__ */ jsx(p$2, {
|
|
13267
13304
|
size: "2",
|
|
13268
13305
|
weight: "bold",
|
|
@@ -13304,51 +13341,7 @@ var EditorContent = ({ layout: s, initialState: C, onSave: w, theme: k = "light"
|
|
|
13304
13341
|
children: "Nenhuma variável configurada."
|
|
13305
13342
|
})]
|
|
13306
13343
|
})
|
|
13307
|
-
] })
|
|
13308
|
-
})
|
|
13309
|
-
}), /* @__PURE__ */ jsx(p$1, {
|
|
13310
|
-
p: "4",
|
|
13311
|
-
pb: "6",
|
|
13312
|
-
style: {
|
|
13313
|
-
borderTop: "1px solid var(--gray-5)",
|
|
13314
|
-
backgroundColor: "var(--color-background)"
|
|
13315
|
-
},
|
|
13316
|
-
children: /* @__PURE__ */ jsx(p, {
|
|
13317
|
-
direction: "column",
|
|
13318
|
-
gap: "3",
|
|
13319
|
-
children: /* @__PURE__ */ jsxs(p$1, { children: [/* @__PURE__ */ jsx(p$2, {
|
|
13320
|
-
size: "2",
|
|
13321
|
-
weight: "bold",
|
|
13322
|
-
mb: "2",
|
|
13323
|
-
as: "div",
|
|
13324
|
-
children: "Ações"
|
|
13325
|
-
}), /* @__PURE__ */ jsx(p, {
|
|
13326
|
-
gap: "3",
|
|
13327
|
-
direction: "column",
|
|
13328
|
-
children: /* @__PURE__ */ jsxs(o, {
|
|
13329
|
-
variant: "soft",
|
|
13330
|
-
color: "blue",
|
|
13331
|
-
style: {
|
|
13332
|
-
width: "100%",
|
|
13333
|
-
justifyContent: "center",
|
|
13334
|
-
cursor: "pointer",
|
|
13335
|
-
marginBottom: "12px"
|
|
13336
|
-
},
|
|
13337
|
-
onClick: () => {
|
|
13338
|
-
if (w) {
|
|
13339
|
-
let s = {
|
|
13340
|
-
elements: J.elements,
|
|
13341
|
-
isList: J.isList,
|
|
13342
|
-
mockData: J.mockData,
|
|
13343
|
-
singleMockData: J.singleMockData,
|
|
13344
|
-
listSettings: J.listSettings
|
|
13345
|
-
};
|
|
13346
|
-
w(JSON.stringify(s, null, 2));
|
|
13347
|
-
}
|
|
13348
|
-
},
|
|
13349
|
-
children: [/* @__PURE__ */ jsx(Share1Icon, {}), " Salvar Alterações"]
|
|
13350
|
-
})
|
|
13351
|
-
})] })
|
|
13344
|
+
] })
|
|
13352
13345
|
})
|
|
13353
13346
|
})]
|
|
13354
13347
|
}), /* @__PURE__ */ jsxs(p$1, {
|