@orion-studios/payload-studio 0.6.0-beta.36 → 0.6.0-beta.37
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.
|
@@ -962,6 +962,7 @@ var sectionPaddingPointMap = {
|
|
|
962
962
|
md: 31,
|
|
963
963
|
lg: 41
|
|
964
964
|
};
|
|
965
|
+
var heroDefaultPaddingPt = 30;
|
|
965
966
|
var normalizeSectionPaddingY = (value) => value === "none" || value === "sm" || value === "lg" ? value : "md";
|
|
966
967
|
var normalizePaddingPointValue = (value) => {
|
|
967
968
|
if (typeof value === "number" && Number.isFinite(value)) {
|
|
@@ -982,7 +983,7 @@ var getEffectiveVerticalPaddingValue = (block, key) => {
|
|
|
982
983
|
}
|
|
983
984
|
const layoutSectionPaddingY = getByPath(block, "settings.layout.sectionPaddingY");
|
|
984
985
|
const legacySectionPaddingY = block.sectionPaddingY;
|
|
985
|
-
const inherited = sectionPaddingPointMap[normalizeSectionPaddingY(layoutSectionPaddingY || legacySectionPaddingY)];
|
|
986
|
+
const inherited = block.blockType === "hero" ? heroDefaultPaddingPt : sectionPaddingPointMap[normalizeSectionPaddingY(layoutSectionPaddingY || legacySectionPaddingY)];
|
|
986
987
|
return inherited;
|
|
987
988
|
};
|
|
988
989
|
var getRelationID = (value) => {
|
|
@@ -3965,6 +3966,7 @@ var sectionPaddingMap = {
|
|
|
3965
3966
|
md: "2.6rem",
|
|
3966
3967
|
lg: "3.4rem"
|
|
3967
3968
|
};
|
|
3969
|
+
var heroDefaultPadding = "30pt";
|
|
3968
3970
|
var quickAddBlockTypes = [
|
|
3969
3971
|
"hero",
|
|
3970
3972
|
"featureGrid",
|
|
@@ -4319,10 +4321,10 @@ var sectionStyleFromBlock = (block, pageDefaults) => {
|
|
|
4319
4321
|
} : {},
|
|
4320
4322
|
sectionClass: `orion-builder-shell is-${pageDefaults.pageWidthDefault} padx-${resolvedSectionPaddingX}`,
|
|
4321
4323
|
sectionInnerStyle: {
|
|
4322
|
-
paddingBottom: customPaddingBottom === null ? sectionPaddingMap[sectionPaddingY] : `${customPaddingBottom}pt`,
|
|
4324
|
+
paddingBottom: customPaddingBottom === null ? block.blockType === "hero" ? heroDefaultPadding : sectionPaddingMap[sectionPaddingY] : `${customPaddingBottom}pt`,
|
|
4323
4325
|
paddingLeft: customPaddingLeft === null ? void 0 : `${customPaddingLeft}pt`,
|
|
4324
4326
|
paddingRight: customPaddingRight === null ? void 0 : `${customPaddingRight}pt`,
|
|
4325
|
-
paddingTop: customPaddingTop === null ? sectionPaddingMap[sectionPaddingY] : `${customPaddingTop}pt`
|
|
4327
|
+
paddingTop: customPaddingTop === null ? block.blockType === "hero" ? heroDefaultPadding : sectionPaddingMap[sectionPaddingY] : `${customPaddingTop}pt`
|
|
4326
4328
|
},
|
|
4327
4329
|
sectionStyle: sectionMode === "color" ? { background: sectionColor } : sectionMode === "gradient" ? { background: sectionGradient } : block.blockType === "hero" ? { background: "transparent" } : {}
|
|
4328
4330
|
};
|
|
@@ -935,6 +935,7 @@ var sectionPaddingPointMap = {
|
|
|
935
935
|
md: 31,
|
|
936
936
|
lg: 41
|
|
937
937
|
};
|
|
938
|
+
var heroDefaultPaddingPt = 30;
|
|
938
939
|
var normalizeSectionPaddingY = (value) => value === "none" || value === "sm" || value === "lg" ? value : "md";
|
|
939
940
|
var normalizePaddingPointValue = (value) => {
|
|
940
941
|
if (typeof value === "number" && Number.isFinite(value)) {
|
|
@@ -955,7 +956,7 @@ var getEffectiveVerticalPaddingValue = (block, key) => {
|
|
|
955
956
|
}
|
|
956
957
|
const layoutSectionPaddingY = getByPath(block, "settings.layout.sectionPaddingY");
|
|
957
958
|
const legacySectionPaddingY = block.sectionPaddingY;
|
|
958
|
-
const inherited = sectionPaddingPointMap[normalizeSectionPaddingY(layoutSectionPaddingY || legacySectionPaddingY)];
|
|
959
|
+
const inherited = block.blockType === "hero" ? heroDefaultPaddingPt : sectionPaddingPointMap[normalizeSectionPaddingY(layoutSectionPaddingY || legacySectionPaddingY)];
|
|
959
960
|
return inherited;
|
|
960
961
|
};
|
|
961
962
|
var getRelationID = (value) => {
|
|
@@ -3845,6 +3846,7 @@ var sectionPaddingMap = {
|
|
|
3845
3846
|
md: "2.6rem",
|
|
3846
3847
|
lg: "3.4rem"
|
|
3847
3848
|
};
|
|
3849
|
+
var heroDefaultPadding = "30pt";
|
|
3848
3850
|
var quickAddBlockTypes = [
|
|
3849
3851
|
"hero",
|
|
3850
3852
|
"featureGrid",
|
|
@@ -4199,10 +4201,10 @@ var sectionStyleFromBlock = (block, pageDefaults) => {
|
|
|
4199
4201
|
} : {},
|
|
4200
4202
|
sectionClass: `orion-builder-shell is-${pageDefaults.pageWidthDefault} padx-${resolvedSectionPaddingX}`,
|
|
4201
4203
|
sectionInnerStyle: {
|
|
4202
|
-
paddingBottom: customPaddingBottom === null ? sectionPaddingMap[sectionPaddingY] : `${customPaddingBottom}pt`,
|
|
4204
|
+
paddingBottom: customPaddingBottom === null ? block.blockType === "hero" ? heroDefaultPadding : sectionPaddingMap[sectionPaddingY] : `${customPaddingBottom}pt`,
|
|
4203
4205
|
paddingLeft: customPaddingLeft === null ? void 0 : `${customPaddingLeft}pt`,
|
|
4204
4206
|
paddingRight: customPaddingRight === null ? void 0 : `${customPaddingRight}pt`,
|
|
4205
|
-
paddingTop: customPaddingTop === null ? sectionPaddingMap[sectionPaddingY] : `${customPaddingTop}pt`
|
|
4207
|
+
paddingTop: customPaddingTop === null ? block.blockType === "hero" ? heroDefaultPadding : sectionPaddingMap[sectionPaddingY] : `${customPaddingTop}pt`
|
|
4206
4208
|
},
|
|
4207
4209
|
sectionStyle: sectionMode === "color" ? { background: sectionColor } : sectionMode === "gradient" ? { background: sectionGradient } : block.blockType === "hero" ? { background: "transparent" } : {}
|
|
4208
4210
|
};
|
package/package.json
CHANGED