@cardinali-studio/adminkit 2.2.42 → 2.2.43

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/README.md CHANGED
@@ -292,3 +292,5 @@ The information dialog explains those limits. Rates are supplied by the consumer
292
292
  not inferred from storage credentials or provider names.
293
293
  The dedicated delivery entry now initializes its own module configuration;
294
294
  consumers must remove the old internal `setSiteConfig` workaround.
295
+
296
+ 2.2.43 aligns the dedicated delivery navigation with the full shell: shared icons, accessible labels and text wrappers preserve both admin interface variants.
@@ -45,7 +45,7 @@ function DeliveryAdmin({ name, websiteUrl }) {
45
45
  const open = (value) => { setSelectedId(undefined); go(`/deliveries/${value}`); };
46
46
  // Never render the previous transfer while the requested detail is loading.
47
47
  const detail = id && api.detail?.id === id ? api.detail : null;
48
- return _jsxs("div", { className: "app", "data-admin-interface": adminInterface, children: [_jsxs("nav", { className: "rail", "aria-label": "Navigazione", children: [_jsxs("div", { className: "rail-brand", children: [_jsx("span", { className: "rail-brand-name", children: name }), _jsx("span", { className: "rail-brand-role", children: "Consegne" })] }), _jsx("button", { className: "rail-item is-on", onClick: () => go("/deliveries"), children: "Transfer" }), _jsxs("div", { className: "rail-foot", children: [websiteUrl && _jsx("a", { className: "rail-item", href: websiteUrl, target: "_blank", rel: "noreferrer", children: "Sito dello studio" }), _jsx("button", { className: "rail-item", onClick: toggle, children: theme === "dark" ? "Tema chiaro" : "Tema scuro" })] })] }), _jsxs("aside", { className: "col", "aria-label": "Elenco transfer", children: [_jsxs("div", { className: "col-head col-head-actions dl-col-head", children: [_jsx("span", { className: "col-title", children: "Transfer" }), _jsxs("button", { type: "button", className: "ak-btn dl-dashboard-button" + (!id && route[1] !== "new" ? " is-on" : ""), "aria-current": !id && route[1] !== "new" ? "page" : undefined, onClick: () => { setSelectedId(undefined); go("/deliveries"); }, children: [_jsx(Icon.grid, {}), _jsx("span", { children: "Dashboard" })] }), _jsx(NewDeliveryButton, { onCreate: () => { setSelectedId(undefined); setDraftKey(v => v + 1); go("/deliveries/new"); } })] }), _jsx("div", { className: "col-body", children: !api.rows ? _jsx("p", { className: "ak-hint", children: "Carico\u2026" }) : api.rows.length === 0 ? _jsx("p", { className: "ak-hint", children: "Nessun transfer, per ora." })
48
+ return _jsxs("div", { className: "app", "data-admin-interface": adminInterface, children: [_jsxs("nav", { className: "rail", "aria-label": "Navigazione", children: [_jsxs("div", { className: "rail-brand", children: [_jsx("span", { className: "rail-brand-name", children: name }), _jsx("span", { className: "rail-brand-role", children: "Consegne" })] }), _jsxs("button", { className: "rail-item is-on", "aria-label": "Transfer", onClick: () => go("/deliveries"), children: [_jsx(Icon.delivery, {}), _jsx("span", { children: "Transfer" })] }), _jsxs("div", { className: "rail-foot", children: [websiteUrl && _jsxs("a", { className: "rail-item", href: websiteUrl, target: "_blank", rel: "noreferrer", "aria-label": "Sito dello studio", children: [_jsx(Icon.out, {}), _jsx("span", { children: "Sito dello studio" })] }), _jsxs("button", { className: "rail-item", onClick: toggle, "aria-label": theme === "dark" ? "Tema chiaro" : "Tema scuro", children: [theme === "dark" ? _jsx(Icon.sun, {}) : _jsx(Icon.moon, {}), _jsx("span", { children: theme === "dark" ? "Tema chiaro" : "Tema scuro" })] })] })] }), _jsxs("aside", { className: "col", "aria-label": "Elenco transfer", children: [_jsxs("div", { className: "col-head col-head-actions dl-col-head", children: [_jsx("span", { className: "col-title", children: "Transfer" }), _jsxs("button", { type: "button", className: "ak-btn dl-dashboard-button" + (!id && route[1] !== "new" ? " is-on" : ""), "aria-current": !id && route[1] !== "new" ? "page" : undefined, onClick: () => { setSelectedId(undefined); go("/deliveries"); }, children: [_jsx(Icon.grid, {}), _jsx("span", { children: "Dashboard" })] }), _jsx(NewDeliveryButton, { onCreate: () => { setSelectedId(undefined); setDraftKey(v => v + 1); go("/deliveries/new"); } })] }), _jsx("div", { className: "col-body", children: !api.rows ? _jsx("p", { className: "ak-hint", children: "Carico\u2026" }) : api.rows.length === 0 ? _jsx("p", { className: "ak-hint", children: "Nessun transfer, per ora." })
49
49
  : _jsx(DeliveriesList, { rows: api.rows, current: id || selectedId, onOpen: open }) }), _jsx("div", { className: "dl-col-foot", children: api.rows && _jsx(DeliveriesTotal, { rows: api.rows }) })] }), _jsx("main", { className: "pane", children: _jsx("div", { className: "pane-body", children: api.error ? _jsxs("div", { role: "alert", children: [_jsx("p", { className: "ak-error", children: api.error }), _jsx("button", { className: "ak-btn", onClick: () => void api.refresh(), children: "Riprova" })] })
50
50
  : id && !detail ? _jsx("p", { className: "ak-hint", children: "Carico\u2026" })
51
51
  : !id && route[1] !== "new" ? _jsx(DeliveryDashboard, { onCreate: () => { setSelectedId(undefined); setDraftKey(v => v + 1); go("/deliveries/new"); }, onOpen: open })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cardinali-studio/adminkit",
3
- "version": "2.2.42",
3
+ "version": "2.2.43",
4
4
  "type": "module",
5
5
  "description": "Motore riusabile di un pannello di amministrazione per siti Hugo su Cloudflare Pages: codec del front matter guidato dallo schema, form React, libreria media su R2. NIENTE di specifico di un sito qui dentro.",
6
6
  "license": "0BSD",