@orion-studios/payload-studio 0.5.0-beta.102 → 0.5.0-beta.104
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/admin/client.js +4 -4
- package/dist/admin/client.mjs +4 -4
- package/dist/admin-app/client.js +5 -5
- package/dist/admin-app/client.mjs +5 -5
- package/dist/admin-app/styles.css +28 -10
- package/dist/admin.css +8 -0
- package/dist/studio-pages/client.js +2 -2
- package/dist/studio-pages/client.mjs +2 -2
- package/package.json +1 -1
package/dist/admin/client.js
CHANGED
|
@@ -3140,10 +3140,10 @@ function AdminStudioPageEditView(props) {
|
|
|
3140
3140
|
"div",
|
|
3141
3141
|
{
|
|
3142
3142
|
style: {
|
|
3143
|
-
background: hasUnpublishedChanges ? "#fff3cd" : "
|
|
3144
|
-
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "
|
|
3143
|
+
background: hasUnpublishedChanges ? "#fff3cd" : "var(--theme-success-50)",
|
|
3144
|
+
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "var(--theme-success-300)"}`,
|
|
3145
3145
|
borderRadius: 999,
|
|
3146
|
-
color: hasUnpublishedChanges ? "#6a4a00" : "
|
|
3146
|
+
color: hasUnpublishedChanges ? "#6a4a00" : "var(--theme-success-700)",
|
|
3147
3147
|
fontSize: "0.75rem",
|
|
3148
3148
|
fontWeight: 800,
|
|
3149
3149
|
padding: "0.2rem 0.55rem",
|
|
@@ -3207,7 +3207,7 @@ function AdminStudioPageEditView(props) {
|
|
|
3207
3207
|
disabled: !canPublish || saving !== null,
|
|
3208
3208
|
onClick: () => requestSave("published"),
|
|
3209
3209
|
style: {
|
|
3210
|
-
background: canPublish ? "var(--theme-
|
|
3210
|
+
background: canPublish ? "var(--theme-success-700)" : "var(--theme-elevation-300)",
|
|
3211
3211
|
border: "none",
|
|
3212
3212
|
borderRadius: 12,
|
|
3213
3213
|
color: canPublish ? "var(--theme-elevation-0)" : "var(--theme-elevation-700)",
|
package/dist/admin/client.mjs
CHANGED
|
@@ -1957,10 +1957,10 @@ function AdminStudioPageEditView(props) {
|
|
|
1957
1957
|
"div",
|
|
1958
1958
|
{
|
|
1959
1959
|
style: {
|
|
1960
|
-
background: hasUnpublishedChanges ? "#fff3cd" : "
|
|
1961
|
-
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "
|
|
1960
|
+
background: hasUnpublishedChanges ? "#fff3cd" : "var(--theme-success-50)",
|
|
1961
|
+
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "var(--theme-success-300)"}`,
|
|
1962
1962
|
borderRadius: 999,
|
|
1963
|
-
color: hasUnpublishedChanges ? "#6a4a00" : "
|
|
1963
|
+
color: hasUnpublishedChanges ? "#6a4a00" : "var(--theme-success-700)",
|
|
1964
1964
|
fontSize: "0.75rem",
|
|
1965
1965
|
fontWeight: 800,
|
|
1966
1966
|
padding: "0.2rem 0.55rem",
|
|
@@ -2024,7 +2024,7 @@ function AdminStudioPageEditView(props) {
|
|
|
2024
2024
|
disabled: !canPublish || saving !== null,
|
|
2025
2025
|
onClick: () => requestSave("published"),
|
|
2026
2026
|
style: {
|
|
2027
|
-
background: canPublish ? "var(--theme-
|
|
2027
|
+
background: canPublish ? "var(--theme-success-700)" : "var(--theme-elevation-300)",
|
|
2028
2028
|
border: "none",
|
|
2029
2029
|
borderRadius: 12,
|
|
2030
2030
|
color: canPublish ? "var(--theme-elevation-0)" : "var(--theme-elevation-700)",
|
package/dist/admin-app/client.js
CHANGED
|
@@ -1214,10 +1214,10 @@ function PageEditorFrame({ src }) {
|
|
|
1214
1214
|
{
|
|
1215
1215
|
style: {
|
|
1216
1216
|
alignItems: "center",
|
|
1217
|
-
background: hasUnpublishedChanges ? "#fff3cd" : "
|
|
1218
|
-
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "
|
|
1217
|
+
background: hasUnpublishedChanges ? "#fff3cd" : "var(--orion-admin-accent-subtle)",
|
|
1218
|
+
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "color-mix(in srgb, var(--orion-admin-accent) 36%, transparent)"}`,
|
|
1219
1219
|
borderRadius: 999,
|
|
1220
|
-
color: hasUnpublishedChanges ? "#6a4a00" : "
|
|
1220
|
+
color: hasUnpublishedChanges ? "#6a4a00" : "var(--orion-admin-accent)",
|
|
1221
1221
|
display: "inline-flex",
|
|
1222
1222
|
fontSize: "0.75rem",
|
|
1223
1223
|
fontWeight: 800,
|
|
@@ -1268,7 +1268,7 @@ function PageEditorFrame({ src }) {
|
|
|
1268
1268
|
className: "orion-admin-action-button",
|
|
1269
1269
|
disabled: saving !== null,
|
|
1270
1270
|
onClick: () => sendSave("published"),
|
|
1271
|
-
style: { background: "
|
|
1271
|
+
style: { background: "var(--orion-admin-accent)" },
|
|
1272
1272
|
type: "button",
|
|
1273
1273
|
children: saving === "published" ? "Publishing..." : "Publish"
|
|
1274
1274
|
}
|
|
@@ -1277,7 +1277,7 @@ function PageEditorFrame({ src }) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
}
|
|
1279
1279
|
),
|
|
1280
|
-
message ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { color: "
|
|
1280
|
+
message ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { color: "var(--orion-admin-accent)", fontSize: "0.9rem", fontWeight: 700 }, children: message }) : null,
|
|
1281
1281
|
error ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "orion-admin-error", children: error }) : null,
|
|
1282
1282
|
sessionExpired ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1283
1283
|
"div",
|
|
@@ -1092,10 +1092,10 @@ function PageEditorFrame({ src }) {
|
|
|
1092
1092
|
{
|
|
1093
1093
|
style: {
|
|
1094
1094
|
alignItems: "center",
|
|
1095
|
-
background: hasUnpublishedChanges ? "#fff3cd" : "
|
|
1096
|
-
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "
|
|
1095
|
+
background: hasUnpublishedChanges ? "#fff3cd" : "var(--orion-admin-accent-subtle)",
|
|
1096
|
+
border: `1px solid ${hasUnpublishedChanges ? "#f0c36d" : "color-mix(in srgb, var(--orion-admin-accent) 36%, transparent)"}`,
|
|
1097
1097
|
borderRadius: 999,
|
|
1098
|
-
color: hasUnpublishedChanges ? "#6a4a00" : "
|
|
1098
|
+
color: hasUnpublishedChanges ? "#6a4a00" : "var(--orion-admin-accent)",
|
|
1099
1099
|
display: "inline-flex",
|
|
1100
1100
|
fontSize: "0.75rem",
|
|
1101
1101
|
fontWeight: 800,
|
|
@@ -1146,7 +1146,7 @@ function PageEditorFrame({ src }) {
|
|
|
1146
1146
|
className: "orion-admin-action-button",
|
|
1147
1147
|
disabled: saving !== null,
|
|
1148
1148
|
onClick: () => sendSave("published"),
|
|
1149
|
-
style: { background: "
|
|
1149
|
+
style: { background: "var(--orion-admin-accent)" },
|
|
1150
1150
|
type: "button",
|
|
1151
1151
|
children: saving === "published" ? "Publishing..." : "Publish"
|
|
1152
1152
|
}
|
|
@@ -1155,7 +1155,7 @@ function PageEditorFrame({ src }) {
|
|
|
1155
1155
|
]
|
|
1156
1156
|
}
|
|
1157
1157
|
),
|
|
1158
|
-
message ? /* @__PURE__ */ jsx7("div", { style: { color: "
|
|
1158
|
+
message ? /* @__PURE__ */ jsx7("div", { style: { color: "var(--orion-admin-accent)", fontSize: "0.9rem", fontWeight: 700 }, children: message }) : null,
|
|
1159
1159
|
error ? /* @__PURE__ */ jsx7("div", { className: "orion-admin-error", children: error }) : null,
|
|
1160
1160
|
sessionExpired ? /* @__PURE__ */ jsx7(
|
|
1161
1161
|
"div",
|
|
@@ -8,6 +8,19 @@
|
|
|
8
8
|
--orion-admin-muted: #5d6664;
|
|
9
9
|
--orion-admin-card-bg: #ffffff;
|
|
10
10
|
--orion-admin-card-border: #dce2e0;
|
|
11
|
+
--orion-admin-accent: #2563eb;
|
|
12
|
+
--orion-admin-accent-hover: color-mix(in srgb, var(--orion-admin-accent) 84%, black);
|
|
13
|
+
--orion-admin-accent-subtle: color-mix(in srgb, var(--orion-admin-accent) 10%, white);
|
|
14
|
+
--orion-admin-accent-soft: color-mix(in srgb, var(--orion-admin-accent) 14%, transparent);
|
|
15
|
+
--orion-admin-accent-border: color-mix(in srgb, var(--orion-admin-accent) 36%, transparent);
|
|
16
|
+
--orion-admin-selection-bg: color-mix(in srgb, var(--orion-admin-accent) 18%, white);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.orion-admin-shell ::selection,
|
|
20
|
+
.orion-admin-main ::selection,
|
|
21
|
+
.orion-admin-page ::selection,
|
|
22
|
+
.orion-admin-login-shell ::selection {
|
|
23
|
+
background: var(--orion-admin-selection-bg);
|
|
11
24
|
}
|
|
12
25
|
|
|
13
26
|
.orion-admin-shell {
|
|
@@ -146,7 +159,7 @@
|
|
|
146
159
|
}
|
|
147
160
|
|
|
148
161
|
.orion-admin-nav-editor-add {
|
|
149
|
-
background:
|
|
162
|
+
background: var(--orion-admin-accent);
|
|
150
163
|
border: 0;
|
|
151
164
|
border-radius: 999px;
|
|
152
165
|
color: #fff;
|
|
@@ -157,7 +170,7 @@
|
|
|
157
170
|
}
|
|
158
171
|
|
|
159
172
|
.orion-admin-action-button {
|
|
160
|
-
background:
|
|
173
|
+
background: var(--orion-admin-accent);
|
|
161
174
|
border: 0;
|
|
162
175
|
border-radius: 10px;
|
|
163
176
|
color: #fff;
|
|
@@ -166,6 +179,11 @@
|
|
|
166
179
|
padding: 0.55rem 0.8rem;
|
|
167
180
|
}
|
|
168
181
|
|
|
182
|
+
.orion-admin-nav-editor-add:hover,
|
|
183
|
+
.orion-admin-action-button:hover {
|
|
184
|
+
background: var(--orion-admin-accent-hover);
|
|
185
|
+
}
|
|
186
|
+
|
|
169
187
|
.orion-admin-nav-editor-help {
|
|
170
188
|
color: var(--orion-admin-muted);
|
|
171
189
|
font-size: 0.84rem;
|
|
@@ -196,14 +214,14 @@
|
|
|
196
214
|
}
|
|
197
215
|
|
|
198
216
|
.orion-admin-nav-editor-row.is-dragging {
|
|
199
|
-
border-color:
|
|
200
|
-
box-shadow: 0 10px 24px
|
|
217
|
+
border-color: var(--orion-admin-accent-border);
|
|
218
|
+
box-shadow: 0 10px 24px color-mix(in srgb, var(--orion-admin-accent) 16%, transparent);
|
|
201
219
|
transform: scale(0.996);
|
|
202
220
|
}
|
|
203
221
|
|
|
204
222
|
.orion-admin-nav-editor-row.is-drop-target {
|
|
205
|
-
border-color:
|
|
206
|
-
box-shadow: inset 0 0 0 2px
|
|
223
|
+
border-color: color-mix(in srgb, var(--orion-admin-accent) 56%, transparent);
|
|
224
|
+
box-shadow: inset 0 0 0 2px var(--orion-admin-accent-soft);
|
|
207
225
|
}
|
|
208
226
|
|
|
209
227
|
.orion-admin-nav-editor-row-head {
|
|
@@ -213,9 +231,9 @@
|
|
|
213
231
|
}
|
|
214
232
|
|
|
215
233
|
.orion-admin-nav-editor-drag {
|
|
216
|
-
background:
|
|
234
|
+
background: var(--orion-admin-accent-subtle);
|
|
217
235
|
border-radius: 999px;
|
|
218
|
-
color:
|
|
236
|
+
color: var(--orion-admin-accent);
|
|
219
237
|
cursor: grab;
|
|
220
238
|
font-size: 0.75rem;
|
|
221
239
|
font-weight: 800;
|
|
@@ -308,8 +326,8 @@
|
|
|
308
326
|
}
|
|
309
327
|
|
|
310
328
|
.orion-admin-dropzone.is-dragging {
|
|
311
|
-
background:
|
|
312
|
-
border-color:
|
|
329
|
+
background: color-mix(in srgb, var(--orion-admin-accent) 7%, white);
|
|
330
|
+
border-color: color-mix(in srgb, var(--orion-admin-accent) 50%, transparent);
|
|
313
331
|
}
|
|
314
332
|
|
|
315
333
|
.orion-admin-dropzone.has-file {
|
package/dist/admin.css
CHANGED
|
@@ -222,6 +222,14 @@ html {
|
|
|
222
222
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
html[data-orion-brand] ::selection {
|
|
226
|
+
background: color-mix(in srgb, var(--brand-primary) 18%, white);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
html[data-orion-brand][data-theme='dark'] ::selection {
|
|
230
|
+
background: color-mix(in srgb, var(--brand-primary) 26%, black);
|
|
231
|
+
}
|
|
232
|
+
|
|
225
233
|
/* ============================================================
|
|
226
234
|
Collapsible sections — card-like styling
|
|
227
235
|
============================================================ */
|
|
@@ -2068,10 +2068,10 @@ function InlineText({
|
|
|
2068
2068
|
style: {
|
|
2069
2069
|
background: "transparent",
|
|
2070
2070
|
borderRadius: 6,
|
|
2071
|
-
boxShadow: "0 0 0 4px
|
|
2071
|
+
boxShadow: "0 0 0 4px var(--orion-studio-accent-soft-strong)",
|
|
2072
2072
|
cursor: "text",
|
|
2073
2073
|
minHeight: multiline ? "1.6em" : void 0,
|
|
2074
|
-
outline: "3px solid
|
|
2074
|
+
outline: "3px solid var(--orion-studio-selection-outline)",
|
|
2075
2075
|
outlineOffset: 2,
|
|
2076
2076
|
...style
|
|
2077
2077
|
},
|
|
@@ -1948,10 +1948,10 @@ function InlineText({
|
|
|
1948
1948
|
style: {
|
|
1949
1949
|
background: "transparent",
|
|
1950
1950
|
borderRadius: 6,
|
|
1951
|
-
boxShadow: "0 0 0 4px
|
|
1951
|
+
boxShadow: "0 0 0 4px var(--orion-studio-accent-soft-strong)",
|
|
1952
1952
|
cursor: "text",
|
|
1953
1953
|
minHeight: multiline ? "1.6em" : void 0,
|
|
1954
|
-
outline: "3px solid
|
|
1954
|
+
outline: "3px solid var(--orion-studio-selection-outline)",
|
|
1955
1955
|
outlineOffset: 2,
|
|
1956
1956
|
...style
|
|
1957
1957
|
},
|