admin-lib-cms 1.0.9 → 1.1.0

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/index.js CHANGED
@@ -1313,8 +1313,8 @@ function CollectionsSection() {
1313
1313
  });
1314
1314
  });
1315
1315
  }, [ctx.adapter, collections]);
1316
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex h-full bg-slate-50", children: [
1317
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "w-72 shrink-0 border-r border-slate-200 bg-white/50 p-4", children: [
1316
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col md:flex-row h-full bg-slate-50", children: [
1317
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "w-full md:w-72 shrink-0 border-b md:border-b-0 md:border-r border-slate-200 bg-white/50 p-4", children: [
1318
1318
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "mb-3 px-2 text-xs font-bold uppercase tracking-widest text-slate-500", children: "Collections" }),
1319
1319
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("ul", { className: "space-y-1", children: [
1320
1320
  collections.map((c) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -1334,7 +1334,7 @@ function CollectionsSection() {
1334
1334
  collections.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { className: "px-3 py-6 text-center text-sm text-slate-500 bg-slate-50 rounded-lg border border-dashed border-slate-200", children: "No collections registered." })
1335
1335
  ] })
1336
1336
  ] }),
1337
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-1 overflow-auto p-8 relative", children: [
1337
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-1 overflow-auto p-4 md:p-8 relative", children: [
1338
1338
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,white,rgba(255,255,255,0.6))] -z-10 pointer-events-none" }),
1339
1339
  selected ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CollectionEditor, { collection: selected }, selected.id) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "grid h-full place-items-center text-sm text-slate-500", children: "Select a collection to manage its entries." })
1340
1340
  ] })
@@ -1683,8 +1683,8 @@ function SubmissionsSection() {
1683
1683
  setSelectedFormId(formIds[0]);
1684
1684
  }
1685
1685
  }, [formIds, selectedFormId]);
1686
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex h-full bg-slate-50", children: [
1687
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "w-72 shrink-0 border-r border-slate-200 bg-white/50 p-4", children: [
1686
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col md:flex-row h-full bg-slate-50", children: [
1687
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "w-full md:w-72 shrink-0 border-b md:border-b-0 md:border-r border-slate-200 bg-white/50 p-4", children: [
1688
1688
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "mb-3 px-2 text-xs font-bold uppercase tracking-widest text-slate-500", children: "Data Collections" }),
1689
1689
  /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("ul", { className: "space-y-1", children: [
1690
1690
  formIds.map((id) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
@@ -1704,7 +1704,7 @@ function SubmissionsSection() {
1704
1704
  formIds.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("li", { className: "px-3 py-6 text-center text-sm text-slate-500 bg-slate-50 rounded-lg border border-dashed border-slate-200", children: "No data collected." })
1705
1705
  ] })
1706
1706
  ] }),
1707
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-1 overflow-auto p-8 relative", children: [
1707
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-1 overflow-auto p-4 md:p-8 relative", children: [
1708
1708
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,white,rgba(255,255,255,0.6))] -z-10 pointer-events-none" }),
1709
1709
  selectedFormId ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1710
1710
  SubmissionsList,
package/dist/index.mjs CHANGED
@@ -1310,8 +1310,8 @@ function CollectionsSection() {
1310
1310
  });
1311
1311
  });
1312
1312
  }, [ctx.adapter, collections]);
1313
- return /* @__PURE__ */ jsxs2("div", { className: "flex h-full bg-slate-50", children: [
1314
- /* @__PURE__ */ jsxs2("div", { className: "w-72 shrink-0 border-r border-slate-200 bg-white/50 p-4", children: [
1313
+ return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col md:flex-row h-full bg-slate-50", children: [
1314
+ /* @__PURE__ */ jsxs2("div", { className: "w-full md:w-72 shrink-0 border-b md:border-b-0 md:border-r border-slate-200 bg-white/50 p-4", children: [
1315
1315
  /* @__PURE__ */ jsx5("div", { className: "mb-3 px-2 text-xs font-bold uppercase tracking-widest text-slate-500", children: "Collections" }),
1316
1316
  /* @__PURE__ */ jsxs2("ul", { className: "space-y-1", children: [
1317
1317
  collections.map((c) => /* @__PURE__ */ jsx5("li", { children: /* @__PURE__ */ jsxs2(
@@ -1331,7 +1331,7 @@ function CollectionsSection() {
1331
1331
  collections.length === 0 && /* @__PURE__ */ jsx5("li", { className: "px-3 py-6 text-center text-sm text-slate-500 bg-slate-50 rounded-lg border border-dashed border-slate-200", children: "No collections registered." })
1332
1332
  ] })
1333
1333
  ] }),
1334
- /* @__PURE__ */ jsxs2("div", { className: "flex-1 overflow-auto p-8 relative", children: [
1334
+ /* @__PURE__ */ jsxs2("div", { className: "flex-1 overflow-auto p-4 md:p-8 relative", children: [
1335
1335
  /* @__PURE__ */ jsx5("div", { className: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,white,rgba(255,255,255,0.6))] -z-10 pointer-events-none" }),
1336
1336
  selected ? /* @__PURE__ */ jsx5(CollectionEditor, { collection: selected }, selected.id) : /* @__PURE__ */ jsx5("div", { className: "grid h-full place-items-center text-sm text-slate-500", children: "Select a collection to manage its entries." })
1337
1337
  ] })
@@ -1680,8 +1680,8 @@ function SubmissionsSection() {
1680
1680
  setSelectedFormId(formIds[0]);
1681
1681
  }
1682
1682
  }, [formIds, selectedFormId]);
1683
- return /* @__PURE__ */ jsxs2("div", { className: "flex h-full bg-slate-50", children: [
1684
- /* @__PURE__ */ jsxs2("div", { className: "w-72 shrink-0 border-r border-slate-200 bg-white/50 p-4", children: [
1683
+ return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col md:flex-row h-full bg-slate-50", children: [
1684
+ /* @__PURE__ */ jsxs2("div", { className: "w-full md:w-72 shrink-0 border-b md:border-b-0 md:border-r border-slate-200 bg-white/50 p-4", children: [
1685
1685
  /* @__PURE__ */ jsx5("div", { className: "mb-3 px-2 text-xs font-bold uppercase tracking-widest text-slate-500", children: "Data Collections" }),
1686
1686
  /* @__PURE__ */ jsxs2("ul", { className: "space-y-1", children: [
1687
1687
  formIds.map((id) => /* @__PURE__ */ jsx5("li", { children: /* @__PURE__ */ jsxs2(
@@ -1701,7 +1701,7 @@ function SubmissionsSection() {
1701
1701
  formIds.length === 0 && /* @__PURE__ */ jsx5("li", { className: "px-3 py-6 text-center text-sm text-slate-500 bg-slate-50 rounded-lg border border-dashed border-slate-200", children: "No data collected." })
1702
1702
  ] })
1703
1703
  ] }),
1704
- /* @__PURE__ */ jsxs2("div", { className: "flex-1 overflow-auto p-8 relative", children: [
1704
+ /* @__PURE__ */ jsxs2("div", { className: "flex-1 overflow-auto p-4 md:p-8 relative", children: [
1705
1705
  /* @__PURE__ */ jsx5("div", { className: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,white,rgba(255,255,255,0.6))] -z-10 pointer-events-none" }),
1706
1706
  selectedFormId ? /* @__PURE__ */ jsx5(
1707
1707
  SubmissionsList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admin-lib-cms",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "Agnostic Admin CMS Library",
5
5
  "keywords": [
6
6
  "cms",