@orion-studios/payload-studio 0.5.0-beta.42 → 0.5.0-beta.44

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
- import {
2
- admin_app_exports
3
- } from "./chunk-XVH5SCBD.mjs";
4
1
  import {
5
2
  admin_exports
6
3
  } from "./chunk-7IGLXLUB.mjs";
7
4
  import {
8
5
  blocks_exports
9
6
  } from "./chunk-ICGXZCFJ.mjs";
7
+ import {
8
+ admin_app_exports
9
+ } from "./chunk-XVH5SCBD.mjs";
10
10
  import {
11
11
  nextjs_exports
12
12
  } from "./chunk-C6VEHNJW.mjs";
@@ -228,7 +228,8 @@ h4 {
228
228
  .feature-grid {
229
229
  display: grid;
230
230
  gap: 0.9rem;
231
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
231
+ /* Mobile-first: stack. Projects can override in their own globals.css. */
232
+ grid-template-columns: 1fr;
232
233
  margin-top: 1rem;
233
234
  }
234
235
 
@@ -280,7 +281,8 @@ h4 {
280
281
  .card-grid.services {
281
282
  display: grid;
282
283
  gap: 0.9rem;
283
- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
284
+ /* Mobile-first: stack. */
285
+ grid-template-columns: 1fr;
284
286
  margin-top: 1rem;
285
287
  }
286
288
 
@@ -300,7 +302,8 @@ h4 {
300
302
  .split.testimonials-grid {
301
303
  display: grid;
302
304
  gap: 0.9rem;
303
- grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
305
+ /* Mobile-first: stack. */
306
+ grid-template-columns: 1fr;
304
307
  margin-top: 1rem;
305
308
  }
306
309
 
@@ -391,7 +394,8 @@ h4 {
391
394
  .orion-stats-grid {
392
395
  display: grid;
393
396
  gap: 0.9rem;
394
- grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
397
+ /* Mobile-first: stack. */
398
+ grid-template-columns: 1fr;
395
399
  margin-top: 1rem;
396
400
  }
397
401
 
@@ -426,7 +430,8 @@ h4 {
426
430
  .orion-logo-wall {
427
431
  display: grid;
428
432
  gap: 0.8rem;
429
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
433
+ /* Mobile-first: stack. */
434
+ grid-template-columns: 1fr;
430
435
  margin-top: 1rem;
431
436
  }
432
437
 
@@ -456,10 +461,37 @@ h4 {
456
461
  .orion-before-after-grid {
457
462
  display: grid;
458
463
  gap: 1rem;
459
- grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
464
+ /* Mobile-first: stack. */
465
+ grid-template-columns: 1fr;
460
466
  margin-top: 1rem;
461
467
  }
462
468
 
469
+ @media (min-width: 720px) {
470
+ .feature-grid {
471
+ grid-template-columns: var(--feature-grid-template-columns, repeat(auto-fit, minmax(200px, 1fr)));
472
+ }
473
+
474
+ .card-grid.services {
475
+ grid-template-columns: var(--services-grid-template-columns, repeat(auto-fit, minmax(240px, 1fr)));
476
+ }
477
+
478
+ .split.testimonials-grid {
479
+ grid-template-columns: var(--testimonials-grid-columns, repeat(auto-fit, minmax(260px, 1fr)));
480
+ }
481
+
482
+ .orion-stats-grid {
483
+ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
484
+ }
485
+
486
+ .orion-logo-wall {
487
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
488
+ }
489
+
490
+ .orion-before-after-grid {
491
+ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
492
+ }
493
+ }
494
+
463
495
  .orion-before-after-card {
464
496
  background: #fff;
465
497
  border: 1px solid rgba(13, 74, 55, 0.12);
@@ -4582,7 +4582,10 @@ function BuilderPageEditor({ initialDoc, pageID }) {
4582
4582
  "select",
4583
4583
  {
4584
4584
  onChange: (event) => {
4585
- updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", event.target.value);
4585
+ const nextPosition = event.target.value;
4586
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", nextPosition);
4587
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionX", null);
4588
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionY", null);
4586
4589
  },
4587
4590
  style: sidebarInputStyle,
4588
4591
  value: (() => {
@@ -5034,7 +5037,10 @@ function BuilderPageEditor({ initialDoc, pageID }) {
5034
5037
  "select",
5035
5038
  {
5036
5039
  onChange: (event) => {
5037
- updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", event.target.value);
5040
+ const nextPosition = event.target.value;
5041
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", nextPosition);
5042
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionX", null);
5043
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionY", null);
5038
5044
  },
5039
5045
  style: sidebarInputStyle,
5040
5046
  value: (() => {
@@ -5403,7 +5409,10 @@ function BuilderPageEditor({ initialDoc, pageID }) {
5403
5409
  "select",
5404
5410
  {
5405
5411
  onChange: (event) => {
5406
- updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", event.target.value);
5412
+ const nextPosition = event.target.value;
5413
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", nextPosition);
5414
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionX", null);
5415
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionY", null);
5407
5416
  },
5408
5417
  style: sidebarInputStyle,
5409
5418
  value: (() => {
@@ -4554,7 +4554,10 @@ function BuilderPageEditor({ initialDoc, pageID }) {
4554
4554
  "select",
4555
4555
  {
4556
4556
  onChange: (event) => {
4557
- updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", event.target.value);
4557
+ const nextPosition = event.target.value;
4558
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", nextPosition);
4559
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionX", null);
4560
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionY", null);
4558
4561
  },
4559
4562
  style: sidebarInputStyle,
4560
4563
  value: (() => {
@@ -5006,7 +5009,10 @@ function BuilderPageEditor({ initialDoc, pageID }) {
5006
5009
  "select",
5007
5010
  {
5008
5011
  onChange: (event) => {
5009
- updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", event.target.value);
5012
+ const nextPosition = event.target.value;
5013
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", nextPosition);
5014
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionX", null);
5015
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionY", null);
5010
5016
  },
5011
5017
  style: sidebarInputStyle,
5012
5018
  value: (() => {
@@ -5375,7 +5381,10 @@ function BuilderPageEditor({ initialDoc, pageID }) {
5375
5381
  "select",
5376
5382
  {
5377
5383
  onChange: (event) => {
5378
- updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", event.target.value);
5384
+ const nextPosition = event.target.value;
5385
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePosition", nextPosition);
5386
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionX", null);
5387
+ updateArrayItemField(selectedIndex ?? 0, "items", itemIndex, "imagePositionY", null);
5379
5388
  },
5380
5389
  style: sidebarInputStyle,
5381
5390
  value: (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.5.0-beta.42",
3
+ "version": "0.5.0-beta.44",
4
4
  "description": "Unified Payload CMS toolkit for Orion Studios",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",