@orion-studios/payload-studio 0.6.0-beta.27 → 0.6.0-beta.29

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.
@@ -8882,43 +8882,24 @@ function AdminStudioFormDetailView(props) {
8882
8882
  }
8883
8883
  )
8884
8884
  ] }),
8885
- editorState.steps.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "orion-admin-workflow-map", "aria-label": "Form step flow", children: editorState.steps.map((step, stepIndex) => {
8886
- const fields = getFields(step);
8887
- const requiredCount = fields.filter((field) => field.required === true).length;
8888
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "orion-admin-workflow-node", children: [
8889
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "orion-admin-workflow-node-number", children: stepIndex + 1 }),
8890
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "orion-admin-workflow-node-body", children: [
8891
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("strong", { children: getStepTitle(step, stepIndex) }),
8892
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { children: [
8893
- fields.length,
8894
- " field",
8895
- fields.length === 1 ? "" : "s",
8896
- requiredCount > 0 ? ` \xB7 ${requiredCount} required` : ""
8897
- ] })
8898
- ] }),
8899
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "orion-admin-workflow-node-destination", children: getStepDestination(stepIndex, editorState.steps.length) })
8900
- ] }, `flow-step-${stepIndex}`);
8901
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "orion-admin-empty-state", children: [
8885
+ editorState.steps.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "orion-admin-empty-state", children: [
8902
8886
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("strong", { children: "No steps configured" }),
8903
8887
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { children: "Add a first step to start building the public form flow." })
8904
- ] }),
8888
+ ] }) : null,
8905
8889
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "orion-admin-step-editor-list", children: editorState.steps.map((step, stepIndex) => {
8906
8890
  const fields = getFields(step);
8891
+ const requiredCount = fields.filter((field) => field.required === true).length;
8907
8892
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("details", { className: "orion-admin-step-editor", open: true, children: [
8908
8893
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("summary", { className: "orion-admin-step-editor-summary", children: [
8909
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "orion-admin-step-editor-index", children: [
8910
- "Step ",
8911
- stepIndex + 1
8912
- ] }),
8894
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "orion-admin-workflow-node-number", children: stepIndex + 1 }),
8913
8895
  /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "orion-admin-step-editor-title", children: getStepTitle(step, stepIndex) }),
8914
8896
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "orion-admin-step-editor-meta", children: [
8915
8897
  fields.length,
8916
8898
  " field",
8917
8899
  fields.length === 1 ? "" : "s",
8918
- " \xB7",
8919
- " ",
8920
- getStepDestination(stepIndex, editorState.steps.length)
8921
- ] })
8900
+ requiredCount > 0 ? ` \xB7 ${requiredCount} required` : ""
8901
+ ] }),
8902
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "orion-admin-workflow-node-destination", children: getStepDestination(stepIndex, editorState.steps.length) })
8922
8903
  ] }),
8923
8904
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "orion-admin-step-editor-body", children: [
8924
8905
  /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "orion-admin-step-editor-actions", children: [
@@ -6552,43 +6552,24 @@ function AdminStudioFormDetailView(props) {
6552
6552
  }
6553
6553
  )
6554
6554
  ] }),
6555
- editorState.steps.length > 0 ? /* @__PURE__ */ jsx30("div", { className: "orion-admin-workflow-map", "aria-label": "Form step flow", children: editorState.steps.map((step, stepIndex) => {
6556
- const fields = getFields(step);
6557
- const requiredCount = fields.filter((field) => field.required === true).length;
6558
- return /* @__PURE__ */ jsxs27("div", { className: "orion-admin-workflow-node", children: [
6559
- /* @__PURE__ */ jsx30("div", { className: "orion-admin-workflow-node-number", children: stepIndex + 1 }),
6560
- /* @__PURE__ */ jsxs27("div", { className: "orion-admin-workflow-node-body", children: [
6561
- /* @__PURE__ */ jsx30("strong", { children: getStepTitle(step, stepIndex) }),
6562
- /* @__PURE__ */ jsxs27("span", { children: [
6563
- fields.length,
6564
- " field",
6565
- fields.length === 1 ? "" : "s",
6566
- requiredCount > 0 ? ` \xB7 ${requiredCount} required` : ""
6567
- ] })
6568
- ] }),
6569
- /* @__PURE__ */ jsx30("div", { className: "orion-admin-workflow-node-destination", children: getStepDestination(stepIndex, editorState.steps.length) })
6570
- ] }, `flow-step-${stepIndex}`);
6571
- }) }) : /* @__PURE__ */ jsxs27("div", { className: "orion-admin-empty-state", children: [
6555
+ editorState.steps.length === 0 ? /* @__PURE__ */ jsxs27("div", { className: "orion-admin-empty-state", children: [
6572
6556
  /* @__PURE__ */ jsx30("strong", { children: "No steps configured" }),
6573
6557
  /* @__PURE__ */ jsx30("span", { children: "Add a first step to start building the public form flow." })
6574
- ] }),
6558
+ ] }) : null,
6575
6559
  /* @__PURE__ */ jsx30("div", { className: "orion-admin-step-editor-list", children: editorState.steps.map((step, stepIndex) => {
6576
6560
  const fields = getFields(step);
6561
+ const requiredCount = fields.filter((field) => field.required === true).length;
6577
6562
  return /* @__PURE__ */ jsxs27("details", { className: "orion-admin-step-editor", open: true, children: [
6578
6563
  /* @__PURE__ */ jsxs27("summary", { className: "orion-admin-step-editor-summary", children: [
6579
- /* @__PURE__ */ jsxs27("span", { className: "orion-admin-step-editor-index", children: [
6580
- "Step ",
6581
- stepIndex + 1
6582
- ] }),
6564
+ /* @__PURE__ */ jsx30("span", { className: "orion-admin-workflow-node-number", children: stepIndex + 1 }),
6583
6565
  /* @__PURE__ */ jsx30("span", { className: "orion-admin-step-editor-title", children: getStepTitle(step, stepIndex) }),
6584
6566
  /* @__PURE__ */ jsxs27("span", { className: "orion-admin-step-editor-meta", children: [
6585
6567
  fields.length,
6586
6568
  " field",
6587
6569
  fields.length === 1 ? "" : "s",
6588
- " \xB7",
6589
- " ",
6590
- getStepDestination(stepIndex, editorState.steps.length)
6591
- ] })
6570
+ requiredCount > 0 ? ` \xB7 ${requiredCount} required` : ""
6571
+ ] }),
6572
+ /* @__PURE__ */ jsx30("span", { className: "orion-admin-workflow-node-destination", children: getStepDestination(stepIndex, editorState.steps.length) })
6592
6573
  ] }),
6593
6574
  /* @__PURE__ */ jsxs27("div", { className: "orion-admin-step-editor-body", children: [
6594
6575
  /* @__PURE__ */ jsxs27("div", { className: "orion-admin-step-editor-actions", children: [
@@ -1640,11 +1640,6 @@
1640
1640
  justify-content: space-between;
1641
1641
  }
1642
1642
 
1643
- .orion-admin-workflow-map {
1644
- display: grid;
1645
- gap: 0.75rem;
1646
- }
1647
-
1648
1643
  .orion-admin-workflow-node {
1649
1644
  align-items: center;
1650
1645
  background:
@@ -1658,11 +1653,11 @@
1658
1653
  position: relative;
1659
1654
  }
1660
1655
 
1661
- .orion-admin-workflow-node:not(:last-child)::after {
1656
+ .orion-admin-step-editor:not(:last-child)::after {
1662
1657
  background: color-mix(in srgb, var(--orion-admin-accent) 34%, var(--orion-admin-card-border));
1663
- bottom: -0.75rem;
1658
+ bottom: -0.85rem;
1664
1659
  content: '';
1665
- height: 0.75rem;
1660
+ height: 0.85rem;
1666
1661
  left: 1.42rem;
1667
1662
  position: absolute;
1668
1663
  width: 2px;
@@ -1679,8 +1674,11 @@
1679
1674
  display: inline-flex;
1680
1675
  flex: 0 0 auto;
1681
1676
  font-size: 0.78rem;
1677
+ font-variant-numeric: tabular-nums;
1682
1678
  font-weight: 900;
1683
1679
  justify-content: center;
1680
+ line-height: 1;
1681
+ text-align: center;
1684
1682
  }
1685
1683
 
1686
1684
  .orion-admin-workflow-node-number {
@@ -1731,6 +1729,31 @@
1731
1729
  border: 1px solid color-mix(in srgb, var(--orion-admin-card-border) 84%, transparent);
1732
1730
  border-radius: var(--orion-admin-radius-md);
1733
1731
  overflow: hidden;
1732
+ position: relative;
1733
+ }
1734
+
1735
+ .orion-admin-step-editor {
1736
+ background:
1737
+ linear-gradient(180deg, color-mix(in srgb, var(--orion-admin-card-bg) 97%, white), var(--orion-admin-card-bg));
1738
+ box-shadow:
1739
+ 0 1px 0 color-mix(in srgb, var(--orion-admin-card-bg) 88%, white) inset,
1740
+ 0 10px 24px color-mix(in srgb, var(--orion-admin-text) 5%, transparent);
1741
+ }
1742
+
1743
+ .orion-admin-step-editor[open] {
1744
+ background:
1745
+ linear-gradient(180deg, color-mix(in srgb, var(--orion-admin-accent-subtle) 38%, var(--orion-admin-card-bg)), var(--orion-admin-card-bg));
1746
+ border-color: color-mix(in srgb, var(--orion-admin-accent) 34%, var(--orion-admin-card-border));
1747
+ }
1748
+
1749
+ .orion-admin-step-editor[open]::before {
1750
+ background: linear-gradient(180deg, var(--orion-admin-accent), color-mix(in srgb, var(--orion-admin-accent) 46%, var(--brand-secondary)));
1751
+ bottom: 0;
1752
+ content: '';
1753
+ left: 0;
1754
+ position: absolute;
1755
+ top: 0;
1756
+ width: 4px;
1734
1757
  }
1735
1758
 
1736
1759
  .orion-admin-step-editor-summary,
@@ -1739,12 +1762,16 @@
1739
1762
  cursor: pointer;
1740
1763
  display: grid;
1741
1764
  gap: 0.65rem;
1742
- grid-template-columns: auto minmax(0, 1fr) minmax(96px, auto) auto;
1765
+ grid-template-columns: auto minmax(0, 1fr) minmax(96px, auto) auto auto;
1743
1766
  list-style: none;
1744
1767
  min-height: 52px;
1745
1768
  padding: 0.75rem 0.9rem;
1746
1769
  }
1747
1770
 
1771
+ .orion-admin-step-editor-summary {
1772
+ padding-left: 1rem;
1773
+ }
1774
+
1748
1775
  .orion-admin-step-editor-summary::-webkit-details-marker,
1749
1776
  .orion-admin-field-editor-summary::-webkit-details-marker {
1750
1777
  display: none;
@@ -1783,6 +1810,11 @@
1783
1810
  padding: 0.95rem;
1784
1811
  }
1785
1812
 
1813
+ .orion-admin-step-editor-body {
1814
+ background: color-mix(in srgb, var(--orion-admin-card-bg) 86%, var(--orion-admin-main-bg));
1815
+ padding-left: 1.15rem;
1816
+ }
1817
+
1786
1818
  .orion-admin-step-editor-actions {
1787
1819
  display: flex;
1788
1820
  flex-wrap: wrap;
@@ -1796,13 +1828,40 @@
1796
1828
  }
1797
1829
 
1798
1830
  .orion-admin-field-editor {
1831
+ background: color-mix(in srgb, var(--orion-admin-main-bg) 72%, var(--orion-admin-card-bg));
1832
+ border-color: color-mix(in srgb, var(--brand-secondary) 22%, var(--orion-admin-card-border));
1799
1833
  border-radius: var(--orion-admin-radius-sm);
1834
+ box-shadow: none;
1800
1835
  }
1801
1836
 
1802
1837
  .orion-admin-field-editor-summary {
1838
+ grid-template-columns: auto minmax(0, 1fr) minmax(96px, auto) auto;
1803
1839
  padding: 0.68rem 0.75rem;
1804
1840
  }
1805
1841
 
1842
+ .orion-admin-field-editor-list {
1843
+ background:
1844
+ linear-gradient(180deg, color-mix(in srgb, var(--orion-admin-main-bg) 74%, var(--orion-admin-card-bg)), color-mix(in srgb, var(--orion-admin-main-bg) 88%, white));
1845
+ border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, var(--orion-admin-card-border));
1846
+ border-radius: var(--orion-admin-radius-md);
1847
+ padding: 0.7rem;
1848
+ }
1849
+
1850
+ .orion-admin-field-order {
1851
+ background: color-mix(in srgb, var(--brand-secondary) 10%, var(--orion-admin-card-bg));
1852
+ border-color: color-mix(in srgb, var(--brand-secondary) 32%, var(--orion-admin-card-border));
1853
+ color: color-mix(in srgb, var(--brand-secondary) 74%, var(--orion-admin-text));
1854
+ }
1855
+
1856
+ .orion-admin-field-editor-meta {
1857
+ background: color-mix(in srgb, var(--brand-secondary) 8%, var(--orion-admin-card-bg));
1858
+ border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, transparent);
1859
+ border-radius: var(--orion-admin-radius-pill);
1860
+ font-weight: 800;
1861
+ justify-self: end;
1862
+ padding: 0.28rem 0.55rem;
1863
+ }
1864
+
1806
1865
  .orion-admin-response-stack.is-scrollable {
1807
1866
  mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
1808
1867
  max-height: 34rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orion-studios/payload-studio",
3
- "version": "0.6.0-beta.27",
3
+ "version": "0.6.0-beta.29",
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",