@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 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
- children: /* @__PURE__ */ jsx(KitProvider, { children: /* @__PURE__ */ jsxs(Dialog, {
1267
- open: true,
1268
- title: "New color",
1269
- onCancel: () => {
1270
- setAdding(false);
1271
- setName("");
1272
- setHex("");
1273
- setSourceStep(500);
1274
- },
1275
- confirmLabel: "Create color scale",
1276
- onConfirm: add,
1277
- confirmDisabled: !slugify(name) || !isThemeHex(hex),
1278
- children: [
1279
- /* @__PURE__ */ jsx("p", { children: "Give it a useful name, enter your brand hex, then say which scale step that hex is." }),
1280
- /* @__PURE__ */ jsxs(Field, { children: [/* @__PURE__ */ jsx(Label, { children: "Name" }), /* @__PURE__ */ jsx(Input, {
1281
- "aria-label": "Name",
1282
- value: name,
1283
- placeholder: "e.g. Coral",
1284
- onChange: (event) => setName(event.target.value)
1285
- })] }),
1286
- /* @__PURE__ */ jsxs(Field, {
1287
- as: "div",
1288
- children: [/* @__PURE__ */ jsx(Label, { children: "Brand hex" }), /* @__PURE__ */ jsx(BrandHexField, {
1289
- name: "Brand",
1290
- value: hex,
1291
- onChange: setHex,
1292
- picker: "inline"
1293
- })]
1294
- }),
1295
- /* @__PURE__ */ jsxs(Field, {
1296
- as: "div",
1297
- children: [/* @__PURE__ */ jsx(Label, { children: "This color is" }), /* @__PURE__ */ jsxs(Select, {
1298
- value: String(sourceStep),
1299
- onValueChange: (value) => setSourceStep(Number(value)),
1300
- children: [/* @__PURE__ */ jsx(SelectTrigger, {
1301
- "aria-label": "This color is",
1302
- children: /* @__PURE__ */ jsx(SelectValue, {})
1303
- }), /* @__PURE__ */ jsx(SelectContent, { children: SHADE_STEPS.map((step) => /* @__PURE__ */ jsx(SelectItem, {
1304
- value: String(step),
1305
- children: step
1306
- }, step)) })]
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-theme-dialog .bl-nav-kit__modal{z-index:10000}
1415
+ .bl-nav-kit__modal.bl-theme-dialog{z-index:10000}
1418
1416
  `;
1419
1417
  //#endregion
1420
1418
  //#region src/admin/typography-pairing.tsx