@orion-studios/payload-studio 0.6.0-beta.14 → 0.6.0-beta.16
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 +3 -2
- package/dist/admin/client.mjs +3 -2
- package/dist/admin-app/styles.css +20 -1
- package/dist/admin.css +18 -2
- package/package.json +1 -1
package/dist/admin/client.js
CHANGED
|
@@ -8095,11 +8095,12 @@ function AdminStudioToolsView(props) {
|
|
|
8095
8095
|
}, []);
|
|
8096
8096
|
const createUser = async (event) => {
|
|
8097
8097
|
event.preventDefault();
|
|
8098
|
+
const form = event.currentTarget;
|
|
8098
8099
|
setCreateSubmitting(true);
|
|
8099
8100
|
setError(null);
|
|
8100
8101
|
setSavedMessage(null);
|
|
8101
8102
|
try {
|
|
8102
|
-
const formData = new FormData(
|
|
8103
|
+
const formData = new FormData(form);
|
|
8103
8104
|
const email = String(formData.get("email") || "").trim();
|
|
8104
8105
|
const password = String(formData.get("password") || "");
|
|
8105
8106
|
const fullName = String(formData.get("fullName") || "").trim();
|
|
@@ -8123,7 +8124,7 @@ function AdminStudioToolsView(props) {
|
|
|
8123
8124
|
if (!response.ok) {
|
|
8124
8125
|
throw new Error(`Failed to create user (${response.status}).`);
|
|
8125
8126
|
}
|
|
8126
|
-
|
|
8127
|
+
form.reset();
|
|
8127
8128
|
await loadUsers();
|
|
8128
8129
|
setSavedMessage("User created.");
|
|
8129
8130
|
} catch (createError) {
|
package/dist/admin/client.mjs
CHANGED
|
@@ -5769,11 +5769,12 @@ function AdminStudioToolsView(props) {
|
|
|
5769
5769
|
}, []);
|
|
5770
5770
|
const createUser = async (event) => {
|
|
5771
5771
|
event.preventDefault();
|
|
5772
|
+
const form = event.currentTarget;
|
|
5772
5773
|
setCreateSubmitting(true);
|
|
5773
5774
|
setError(null);
|
|
5774
5775
|
setSavedMessage(null);
|
|
5775
5776
|
try {
|
|
5776
|
-
const formData = new FormData(
|
|
5777
|
+
const formData = new FormData(form);
|
|
5777
5778
|
const email = String(formData.get("email") || "").trim();
|
|
5778
5779
|
const password = String(formData.get("password") || "");
|
|
5779
5780
|
const fullName = String(formData.get("fullName") || "").trim();
|
|
@@ -5797,7 +5798,7 @@ function AdminStudioToolsView(props) {
|
|
|
5797
5798
|
if (!response.ok) {
|
|
5798
5799
|
throw new Error(`Failed to create user (${response.status}).`);
|
|
5799
5800
|
}
|
|
5800
|
-
|
|
5801
|
+
form.reset();
|
|
5801
5802
|
await loadUsers();
|
|
5802
5803
|
setSavedMessage("User created.");
|
|
5803
5804
|
} catch (createError) {
|
|
@@ -25,7 +25,17 @@
|
|
|
25
25
|
--orion-cms-accent-border,
|
|
26
26
|
var(--orion-cms-accent-border-resolved, color-mix(in srgb, var(--orion-admin-accent) 36%, transparent))
|
|
27
27
|
);
|
|
28
|
-
--orion-admin-selection-bg:
|
|
28
|
+
--orion-admin-selection-bg: var(
|
|
29
|
+
--orion-cms-selection-bg,
|
|
30
|
+
var(
|
|
31
|
+
--orion-cms-selection-bg-resolved,
|
|
32
|
+
color-mix(in srgb, var(--orion-admin-accent) 18%, var(--orion-admin-main-bg))
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
--orion-admin-selection-text: var(
|
|
36
|
+
--orion-cms-selection-text,
|
|
37
|
+
var(--orion-cms-selection-text-resolved, var(--orion-admin-text))
|
|
38
|
+
);
|
|
29
39
|
--orion-admin-radius-xs: var(--orion-cms-radius-xs, var(--orion-cms-radius-xs-resolved, 8px));
|
|
30
40
|
--orion-admin-radius-sm: var(--orion-cms-radius-sm, var(--orion-cms-radius-sm-resolved, 12px));
|
|
31
41
|
--orion-admin-radius-md: var(--orion-cms-radius-md, var(--orion-cms-radius-md-resolved, 16px));
|
|
@@ -116,6 +126,15 @@
|
|
|
116
126
|
.orion-admin-page ::selection,
|
|
117
127
|
.orion-admin-login-shell ::selection {
|
|
118
128
|
background: var(--orion-admin-selection-bg);
|
|
129
|
+
color: var(--orion-admin-selection-text);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.orion-admin-shell ::-moz-selection,
|
|
133
|
+
.orion-admin-main ::-moz-selection,
|
|
134
|
+
.orion-admin-page ::-moz-selection,
|
|
135
|
+
.orion-admin-login-shell ::-moz-selection {
|
|
136
|
+
background: var(--orion-admin-selection-bg);
|
|
137
|
+
color: var(--orion-admin-selection-text);
|
|
119
138
|
}
|
|
120
139
|
|
|
121
140
|
.orion-admin-shell {
|
package/dist/admin.css
CHANGED
|
@@ -260,6 +260,8 @@ html[data-orion-brand]:not([data-theme='dark']) {
|
|
|
260
260
|
--color-base-50: color-mix(in srgb, var(--brand-primary) 2%, rgb(245, 245, 245));
|
|
261
261
|
--color-base-100: color-mix(in srgb, var(--brand-primary) 3%, rgb(235, 235, 235));
|
|
262
262
|
--color-base-150: color-mix(in srgb, var(--brand-primary) 4%, rgb(221, 221, 221));
|
|
263
|
+
--orion-cms-selection-bg-resolved: color-mix(in srgb, var(--brand-primary) 16%, white);
|
|
264
|
+
--orion-cms-selection-text-resolved: var(--theme-text);
|
|
263
265
|
}
|
|
264
266
|
|
|
265
267
|
/* ============================================================
|
|
@@ -311,6 +313,8 @@ html[data-orion-brand][data-theme='dark'] {
|
|
|
311
313
|
--color-base-900: color-mix(in srgb, var(--brand-primary) 4%, rgb(20, 20, 20));
|
|
312
314
|
--color-base-850: color-mix(in srgb, var(--brand-primary) 3%, rgb(34, 34, 34));
|
|
313
315
|
--color-base-800: color-mix(in srgb, var(--brand-primary) 2%, rgb(47, 47, 47));
|
|
316
|
+
--orion-cms-selection-bg-resolved: color-mix(in srgb, var(--brand-primary) 28%, var(--color-base-900));
|
|
317
|
+
--orion-cms-selection-text-resolved: var(--theme-text);
|
|
314
318
|
}
|
|
315
319
|
|
|
316
320
|
/* ============================================================
|
|
@@ -321,11 +325,23 @@ html {
|
|
|
321
325
|
}
|
|
322
326
|
|
|
323
327
|
html[data-orion-brand] ::selection {
|
|
324
|
-
background:
|
|
328
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
329
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
325
330
|
}
|
|
326
331
|
|
|
327
332
|
html[data-orion-brand][data-theme='dark'] ::selection {
|
|
328
|
-
background:
|
|
333
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
334
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
html[data-orion-brand] ::-moz-selection {
|
|
338
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
339
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
html[data-orion-brand][data-theme='dark'] ::-moz-selection {
|
|
343
|
+
background: var(--orion-cms-selection-bg, var(--orion-cms-selection-bg-resolved));
|
|
344
|
+
color: var(--orion-cms-selection-text, var(--orion-cms-selection-text-resolved));
|
|
329
345
|
}
|
|
330
346
|
|
|
331
347
|
/* ============================================================
|
package/package.json
CHANGED