@raketa-builder/menu-builder 0.6.0 → 0.7.0
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
|
@@ -394,18 +394,8 @@ var require_dist = __commonJS({
|
|
|
394
394
|
var import_react13 = __toESM2(require("react"));
|
|
395
395
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
396
396
|
var Stack6 = (_a) => {
|
|
397
|
-
var _b = _a, {
|
|
398
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
399
|
-
"div",
|
|
400
|
-
__spreadValues2({
|
|
401
|
-
style: {
|
|
402
|
-
justifyContent: h || "flex-start",
|
|
403
|
-
alignItems: v || "flex-start",
|
|
404
|
-
gap: g || "1em"
|
|
405
|
-
},
|
|
406
|
-
className: cn5("r-stack", className)
|
|
407
|
-
}, props)
|
|
408
|
-
);
|
|
397
|
+
var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
|
|
398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", __spreadValues2({ className: cn5("r-stack", className) }, props));
|
|
409
399
|
};
|
|
410
400
|
var Stack_default = Stack6;
|
|
411
401
|
var import_react14 = __toESM2(require("react"));
|
|
@@ -1200,11 +1190,11 @@ var ContentBuilder = ({ value, onChange }) => {
|
|
|
1200
1190
|
handle: ".r-handle",
|
|
1201
1191
|
direction: "vertical",
|
|
1202
1192
|
children: state.widgets.map((widget2) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui6.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui6.PanelTitle, { children: [
|
|
1203
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui6.Stack, {
|
|
1193
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui6.Stack, { className: "r-stack-align-center", children: [
|
|
1204
1194
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui6.Handle, { className: "r-handle" }),
|
|
1205
1195
|
getTitle(WIDGETS, widget2)
|
|
1206
1196
|
] }),
|
|
1207
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui6.Stack, {
|
|
1197
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_ui6.Stack, { className: "r-stack-align-center", children: [
|
|
1208
1198
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1209
1199
|
import_ui6.Button,
|
|
1210
1200
|
{
|
|
@@ -1316,12 +1306,12 @@ var ColumnBuilder = ({ value, onChange }) => {
|
|
|
1316
1306
|
direction: "vertical",
|
|
1317
1307
|
children: state.columns.map((column, idx) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui7.Panel, { style: { flex: 1, marginRight: "0.5em" }, children: [
|
|
1318
1308
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui7.PanelTitle, { children: [
|
|
1319
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui7.Stack, {
|
|
1309
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui7.Stack, { className: "r-stack-align-center", children: [
|
|
1320
1310
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui7.Handle, { className: "r-chandle" }),
|
|
1321
1311
|
"Column #",
|
|
1322
1312
|
idx + 1
|
|
1323
1313
|
] }),
|
|
1324
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui7.Stack, {
|
|
1314
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui7.Stack, { className: "r-stack-align-center", children: [
|
|
1325
1315
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1326
1316
|
import_ui7.Button,
|
|
1327
1317
|
{
|
|
@@ -1400,7 +1390,7 @@ var RowBuilder = ({ value, onChange }) => {
|
|
|
1400
1390
|
direction: "vertical",
|
|
1401
1391
|
children: state.rows.map((row, idx) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui8.Panel, { children: [
|
|
1402
1392
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui8.PanelTitle, { children: [
|
|
1403
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui8.Stack, {
|
|
1393
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_ui8.Stack, { className: "r-stack-align-center", children: [
|
|
1404
1394
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui8.Handle, { className: "r-handle" }),
|
|
1405
1395
|
"Row #",
|
|
1406
1396
|
idx + 1
|
package/package.json
CHANGED
|
@@ -99,12 +99,12 @@ const ColumnBuilder = ({ value, onChange }) => {
|
|
|
99
99
|
{state.columns.map((column, idx) => (
|
|
100
100
|
<Panel key={column.id} style={{ flex: 1, marginRight: "0.5em" }}>
|
|
101
101
|
<PanelTitle>
|
|
102
|
-
<Stack
|
|
102
|
+
<Stack className="r-stack-align-center">
|
|
103
103
|
<Handle className="r-chandle" />
|
|
104
104
|
Column #{idx + 1}
|
|
105
105
|
</Stack>
|
|
106
106
|
|
|
107
|
-
<Stack
|
|
107
|
+
<Stack className="r-stack-align-center">
|
|
108
108
|
<Button
|
|
109
109
|
variant="secondary"
|
|
110
110
|
onClick={() => duplicateColumn(state.columns, column)}
|
|
@@ -92,12 +92,12 @@ const ContentBuilder = ({ value, onChange }) => {
|
|
|
92
92
|
{state.widgets.map((widget) => (
|
|
93
93
|
<Panel key={widget.id}>
|
|
94
94
|
<PanelTitle>
|
|
95
|
-
<Stack
|
|
95
|
+
<Stack className="r-stack-align-center">
|
|
96
96
|
<Handle className="r-handle" />
|
|
97
97
|
{getTitle(WIDGETS, widget)}
|
|
98
98
|
</Stack>
|
|
99
99
|
|
|
100
|
-
<Stack
|
|
100
|
+
<Stack className="r-stack-align-center">
|
|
101
101
|
<Button
|
|
102
102
|
variant="secondary"
|
|
103
103
|
onClick={() => setWidget({ open: true, current: widget })}
|