@bison-lab/payload-core 4.9.1 → 4.9.2
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.mjs +46 -48
- package/dist/admin.mjs.map +1 -1
- package/package.json +4 -4
package/dist/admin.mjs
CHANGED
|
@@ -1261,54 +1261,52 @@ const LibraryField = ({ field, path, readOnly }) => {
|
|
|
1261
1261
|
children: "Add color"
|
|
1262
1262
|
})]
|
|
1263
1263
|
}),
|
|
1264
|
-
adding ? /* @__PURE__ */ jsx(ThemePortal, { children: /* @__PURE__ */ jsx("div", {
|
|
1264
|
+
adding ? /* @__PURE__ */ jsx(ThemePortal, { children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(KitProvider, { children: /* @__PURE__ */ jsxs(Dialog, {
|
|
1265
1265
|
className: "bl-theme-dialog",
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
children:
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}) })
|
|
1311
|
-
}) }) : null,
|
|
1266
|
+
open: true,
|
|
1267
|
+
title: "New color",
|
|
1268
|
+
onCancel: () => {
|
|
1269
|
+
setAdding(false);
|
|
1270
|
+
setName("");
|
|
1271
|
+
setHex("");
|
|
1272
|
+
setSourceStep(500);
|
|
1273
|
+
},
|
|
1274
|
+
confirmLabel: "Create color scale",
|
|
1275
|
+
onConfirm: add,
|
|
1276
|
+
confirmDisabled: !slugify(name) || !isThemeHex(hex),
|
|
1277
|
+
children: [
|
|
1278
|
+
/* @__PURE__ */ jsx("p", { children: "Give it a useful name, enter your brand hex, then say which scale step that hex is." }),
|
|
1279
|
+
/* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Name" }), /* @__PURE__ */ jsx(Input, {
|
|
1280
|
+
"aria-label": "Name",
|
|
1281
|
+
value: name,
|
|
1282
|
+
placeholder: "e.g. Coral",
|
|
1283
|
+
onChange: (event) => setName(event.target.value)
|
|
1284
|
+
})] }),
|
|
1285
|
+
/* @__PURE__ */ jsxs(Field, {
|
|
1286
|
+
as: "div",
|
|
1287
|
+
children: [/* @__PURE__ */ jsx(Label, { children: "Brand hex" }), /* @__PURE__ */ jsx(BrandHexField, {
|
|
1288
|
+
name: "Brand",
|
|
1289
|
+
value: hex,
|
|
1290
|
+
onChange: setHex,
|
|
1291
|
+
picker: "inline"
|
|
1292
|
+
})]
|
|
1293
|
+
}),
|
|
1294
|
+
/* @__PURE__ */ jsxs(Field, {
|
|
1295
|
+
as: "div",
|
|
1296
|
+
children: [/* @__PURE__ */ jsx(Label, { children: "This color is" }), /* @__PURE__ */ jsxs(Select, {
|
|
1297
|
+
value: String(sourceStep),
|
|
1298
|
+
onValueChange: (value) => setSourceStep(Number(value)),
|
|
1299
|
+
children: [/* @__PURE__ */ jsx(SelectTrigger, {
|
|
1300
|
+
"aria-label": "This color is",
|
|
1301
|
+
children: /* @__PURE__ */ jsx(SelectValue, {})
|
|
1302
|
+
}), /* @__PURE__ */ jsx(SelectContent, { children: SHADE_STEPS.map((step) => /* @__PURE__ */ jsx(SelectItem, {
|
|
1303
|
+
value: String(step),
|
|
1304
|
+
children: step
|
|
1305
|
+
}, step)) })]
|
|
1306
|
+
})]
|
|
1307
|
+
})
|
|
1308
|
+
]
|
|
1309
|
+
}) }) }) }) : null,
|
|
1312
1310
|
replacing ? /* @__PURE__ */ jsx(ThemePortal, { children: /* @__PURE__ */ jsx("div", {
|
|
1313
1311
|
className: "bl-library__modal",
|
|
1314
1312
|
role: "dialog",
|
|
@@ -1414,7 +1412,7 @@ const CSS$3 = `
|
|
|
1414
1412
|
.bl-library__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:1rem}
|
|
1415
1413
|
.bl-library__actions button:last-child{border:0;background:#0f172a;color:#fff;font-weight:600}
|
|
1416
1414
|
.bl-library__actions button:last-child:disabled{opacity:.4;cursor:not-allowed}
|
|
1417
|
-
.bl-
|
|
1415
|
+
.bl-nav-kit__modal.bl-theme-dialog{z-index:10000}
|
|
1418
1416
|
`;
|
|
1419
1417
|
//#endregion
|
|
1420
1418
|
//#region src/admin/typography-pairing.tsx
|