@orion-studios/payload-studio 0.6.0-beta.19 → 0.6.0-beta.20

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.
@@ -256,36 +256,44 @@ h4 {
256
256
  }
257
257
 
258
258
  .hero-content {
259
- position: absolute;
260
- inset: 0;
261
259
  display: flex;
262
260
  flex-direction: column;
263
261
  justify-content: center;
264
- padding: 2rem;
262
+ inset: 0;
265
263
  max-width: 610px;
264
+ padding: 2rem;
265
+ position: absolute;
266
+ text-align: var(--orion-builder-body-align, left);
266
267
  }
267
268
 
268
269
  .hero h1 {
269
270
  font-size: clamp(2rem, 4vw, 3.1rem);
270
271
  letter-spacing: -0.02em;
271
272
  margin: 0;
273
+ text-align: var(--orion-builder-heading-align, var(--orion-builder-body-align, left));
272
274
  }
273
275
 
274
276
  .hero p {
277
+ color: color-mix(in srgb, var(--orion-studio-accent-contrast) 90%, transparent);
275
278
  margin-top: 0.75rem;
276
279
  max-width: 48ch;
277
- color: color-mix(in srgb, var(--orion-studio-accent-contrast) 90%, transparent);
280
+ text-align: var(--orion-builder-body-align, left);
278
281
  }
279
282
 
280
283
  .hero-actions {
281
284
  display: flex;
282
285
  flex-wrap: wrap;
283
286
  gap: 0.75rem;
287
+ justify-content: var(--orion-builder-actions-align, flex-start);
284
288
  margin-top: 1.1rem;
285
289
  }
286
290
 
287
291
  .hero-centered .hero-content {
288
- text-align: center;
292
+ text-align: var(--orion-builder-body-align, center);
293
+ }
294
+
295
+ .hero .kicker {
296
+ text-align: var(--orion-builder-heading-align, var(--orion-builder-body-align, left));
289
297
  }
290
298
 
291
299
  .features {
@@ -984,6 +992,11 @@ h4 {
984
992
  text-align: var(--orion-builder-heading-align, inherit);
985
993
  }
986
994
 
995
+ .orion-builder-content p,
996
+ .orion-builder-content li {
997
+ text-align: var(--orion-builder-body-align, inherit);
998
+ }
999
+
987
1000
  /* Builder-only override: show full testimonial copy even if host app globals clamp it. */
988
1001
  .orion-builder-shell .orion-builder-content .testimonial-quote {
989
1002
  -webkit-box-orient: initial;
@@ -4709,8 +4709,9 @@ function BuilderPageEditor({
4709
4709
  const heroMedia = block.blockType === "hero" ? resolveMedia(block.media) : null;
4710
4710
  const heroHasImage = block.blockType === "hero" && Boolean(heroBackgroundImageURL || heroMedia?.url);
4711
4711
  const heroTextColor = block.blockType === "hero" ? heroHasImage ? "#ffffff" : heroBackgroundColor ? getReadableTextColor(heroBackgroundColor, resolvedThemeTokens.colors.headingText, "#ffffff") : resolvedThemeTokens.colors.headingText : null;
4712
+ const bodyAlign = blockTypography.bodyAlign === "center" || blockTypography.bodyAlign === "justify" || blockTypography.bodyAlign === "right" ? blockTypography.bodyAlign : "left";
4712
4713
  const typographyStyle = resolveTypographyStyleFromSettings({
4713
- bodyAlign: blockTypography.bodyAlign === "center" || blockTypography.bodyAlign === "justify" || blockTypography.bodyAlign === "right" ? blockTypography.bodyAlign : "left",
4714
+ bodyAlign,
4714
4715
  letterSpacingPreset: blockTypography.letterSpacingPreset === "tight" || blockTypography.letterSpacingPreset === "relaxed" ? blockTypography.letterSpacingPreset : "normal",
4715
4716
  lineHeightPreset: blockTypography.lineHeightPreset === "tight" || blockTypography.lineHeightPreset === "relaxed" ? blockTypography.lineHeightPreset : "normal",
4716
4717
  maxTextWidth: blockTypography.maxTextWidth === "sm" || blockTypography.maxTextWidth === "md" || blockTypography.maxTextWidth === "lg" || blockTypography.maxTextWidth === "full" ? blockTypography.maxTextWidth : "auto"
@@ -4726,6 +4727,8 @@ function BuilderPageEditor({
4726
4727
  ...shell.contentStyle,
4727
4728
  ...inheritProjectStyles ? {} : {
4728
4729
  "--orion-builder-heading-align": headingAlign,
4730
+ "--orion-builder-body-align": bodyAlign,
4731
+ "--orion-builder-actions-align": bodyAlign === "center" ? "center" : bodyAlign === "right" ? "flex-end" : "flex-start",
4729
4732
  "--orion-builder-heading-color": headingColor,
4730
4733
  color: bodyColor,
4731
4734
  ...typographyStyle
@@ -4589,8 +4589,9 @@ function BuilderPageEditor({
4589
4589
  const heroMedia = block.blockType === "hero" ? resolveMedia(block.media) : null;
4590
4590
  const heroHasImage = block.blockType === "hero" && Boolean(heroBackgroundImageURL || heroMedia?.url);
4591
4591
  const heroTextColor = block.blockType === "hero" ? heroHasImage ? "#ffffff" : heroBackgroundColor ? getReadableTextColor(heroBackgroundColor, resolvedThemeTokens.colors.headingText, "#ffffff") : resolvedThemeTokens.colors.headingText : null;
4592
+ const bodyAlign = blockTypography.bodyAlign === "center" || blockTypography.bodyAlign === "justify" || blockTypography.bodyAlign === "right" ? blockTypography.bodyAlign : "left";
4592
4593
  const typographyStyle = resolveTypographyStyleFromSettings({
4593
- bodyAlign: blockTypography.bodyAlign === "center" || blockTypography.bodyAlign === "justify" || blockTypography.bodyAlign === "right" ? blockTypography.bodyAlign : "left",
4594
+ bodyAlign,
4594
4595
  letterSpacingPreset: blockTypography.letterSpacingPreset === "tight" || blockTypography.letterSpacingPreset === "relaxed" ? blockTypography.letterSpacingPreset : "normal",
4595
4596
  lineHeightPreset: blockTypography.lineHeightPreset === "tight" || blockTypography.lineHeightPreset === "relaxed" ? blockTypography.lineHeightPreset : "normal",
4596
4597
  maxTextWidth: blockTypography.maxTextWidth === "sm" || blockTypography.maxTextWidth === "md" || blockTypography.maxTextWidth === "lg" || blockTypography.maxTextWidth === "full" ? blockTypography.maxTextWidth : "auto"
@@ -4606,6 +4607,8 @@ function BuilderPageEditor({
4606
4607
  ...shell.contentStyle,
4607
4608
  ...inheritProjectStyles ? {} : {
4608
4609
  "--orion-builder-heading-align": headingAlign,
4610
+ "--orion-builder-body-align": bodyAlign,
4611
+ "--orion-builder-actions-align": bodyAlign === "center" ? "center" : bodyAlign === "right" ? "flex-end" : "flex-start",
4609
4612
  "--orion-builder-heading-color": headingColor,
4610
4613
  color: bodyColor,
4611
4614
  ...typographyStyle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.19",
3
+ "version": "0.6.0-beta.20",
4
4
  "description": "Base CMS, builder, and custom admin toolkit for Orion Studios websites",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",