@orion-studios/payload-studio 0.5.0-beta.4 → 0.5.0-beta.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/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
admin_exports
|
|
3
3
|
} from "./chunk-J7W5EE3B.mjs";
|
|
4
|
-
import {
|
|
5
|
-
studio_exports
|
|
6
|
-
} from "./chunk-N67KVM2S.mjs";
|
|
7
4
|
import {
|
|
8
5
|
admin_app_exports
|
|
9
6
|
} from "./chunk-AAOHJDNS.mjs";
|
|
7
|
+
import {
|
|
8
|
+
studio_exports
|
|
9
|
+
} from "./chunk-N67KVM2S.mjs";
|
|
10
10
|
import {
|
|
11
11
|
studio_pages_exports
|
|
12
12
|
} from "./chunk-UJFU323N.mjs";
|
|
@@ -742,15 +742,16 @@ var sectionStyleFromBlock = (block, pageDefaults) => {
|
|
|
742
742
|
contentStyle: contentMode === "color" ? {
|
|
743
743
|
background: contentColor,
|
|
744
744
|
borderRadius: 20,
|
|
745
|
-
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)"
|
|
745
|
+
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)",
|
|
746
|
+
padding: "1rem"
|
|
746
747
|
} : contentMode === "gradient" ? {
|
|
747
748
|
background: contentGradient,
|
|
748
749
|
borderRadius: 20,
|
|
749
|
-
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)"
|
|
750
|
+
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)",
|
|
751
|
+
padding: "1rem"
|
|
750
752
|
} : {},
|
|
751
753
|
sectionClass: `orion-builder-shell is-${pageDefaults.pageWidthDefault}`,
|
|
752
754
|
sectionInnerStyle: {
|
|
753
|
-
paddingInline: "1rem",
|
|
754
755
|
paddingBottom: sectionPaddingMap[sectionPaddingY],
|
|
755
756
|
paddingTop: sectionPaddingMap[sectionPaddingY]
|
|
756
757
|
},
|
|
@@ -1387,7 +1388,7 @@ function BuilderPageEditor({ initialDoc, pageID }) {
|
|
|
1387
1388
|
});
|
|
1388
1389
|
const renderWithSectionShell = (block, className, content) => {
|
|
1389
1390
|
const shell = sectionStyleFromBlock(block, pageDefaults);
|
|
1390
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { className: `${className} ${shell.sectionClass}`, style: shell.sectionStyle, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { className: `${className} ${shell.sectionClass}`, style: shell.sectionStyle, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: shell.sectionInnerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: shell.contentClass, style: shell.contentStyle, children: content }) }) });
|
|
1391
1392
|
};
|
|
1392
1393
|
const sidebarSectionStyle = {
|
|
1393
1394
|
border: "1px solid rgba(13, 74, 55, 0.15)",
|
|
@@ -714,15 +714,16 @@ var sectionStyleFromBlock = (block, pageDefaults) => {
|
|
|
714
714
|
contentStyle: contentMode === "color" ? {
|
|
715
715
|
background: contentColor,
|
|
716
716
|
borderRadius: 20,
|
|
717
|
-
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)"
|
|
717
|
+
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)",
|
|
718
|
+
padding: "1rem"
|
|
718
719
|
} : contentMode === "gradient" ? {
|
|
719
720
|
background: contentGradient,
|
|
720
721
|
borderRadius: 20,
|
|
721
|
-
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)"
|
|
722
|
+
boxShadow: "0 8px 20px rgba(13, 74, 55, 0.08)",
|
|
723
|
+
padding: "1rem"
|
|
722
724
|
} : {},
|
|
723
725
|
sectionClass: `orion-builder-shell is-${pageDefaults.pageWidthDefault}`,
|
|
724
726
|
sectionInnerStyle: {
|
|
725
|
-
paddingInline: "1rem",
|
|
726
727
|
paddingBottom: sectionPaddingMap[sectionPaddingY],
|
|
727
728
|
paddingTop: sectionPaddingMap[sectionPaddingY]
|
|
728
729
|
},
|
|
@@ -1359,7 +1360,7 @@ function BuilderPageEditor({ initialDoc, pageID }) {
|
|
|
1359
1360
|
});
|
|
1360
1361
|
const renderWithSectionShell = (block, className, content) => {
|
|
1361
1362
|
const shell = sectionStyleFromBlock(block, pageDefaults);
|
|
1362
|
-
return /* @__PURE__ */ jsx("section", { className: `${className} ${shell.sectionClass}`, style: shell.sectionStyle, children: /* @__PURE__ */ jsx("div", {
|
|
1363
|
+
return /* @__PURE__ */ jsx("section", { className: `${className} ${shell.sectionClass}`, style: shell.sectionStyle, children: /* @__PURE__ */ jsx("div", { style: shell.sectionInnerStyle, children: /* @__PURE__ */ jsx("div", { className: shell.contentClass, style: shell.contentStyle, children: content }) }) });
|
|
1363
1364
|
};
|
|
1364
1365
|
const sidebarSectionStyle = {
|
|
1365
1366
|
border: "1px solid rgba(13, 74, 55, 0.15)",
|