@open-mercato/ui 0.6.8-develop.7072.1.19c2a8bbe0 → 0.6.8-develop.7077.1.94f1126c13

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.
@@ -1315,8 +1315,8 @@ function SidebarPreview({
1315
1315
  }
1316
1316
  return null;
1317
1317
  }, [groups, pickFirstActive]);
1318
- return /* @__PURE__ */ jsx("div", { className: "relative w-[240px] overflow-hidden rounded-xl border bg-background shadow-sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 px-3 py-4", children: [
1319
- /* @__PURE__ */ jsx("div", { className: "mb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-xl p-3", children: [
1318
+ return /* @__PURE__ */ jsx("div", { className: "relative w-[240px] overflow-hidden rounded-xl border bg-background shadow-sm", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 py-4", children: [
1319
+ /* @__PURE__ */ jsx("div", { className: "mb-2 px-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-xl p-3", children: [
1320
1320
  /* @__PURE__ */ jsx(
1321
1321
  Image,
1322
1322
  {
@@ -1329,39 +1329,45 @@ function SidebarPreview({
1329
1329
  ),
1330
1330
  /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground truncate", children: productName })
1331
1331
  ] }) }),
1332
- /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-2 rounded-lg border border-border bg-background pl-2.5 pr-2 py-2 shadow-sm", children: [
1332
+ /* @__PURE__ */ jsx("div", { className: "px-3", children: /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-2 rounded-lg border border-border bg-background pl-2.5 pr-2 py-2 shadow-sm", children: [
1333
1333
  /* @__PURE__ */ jsx(Search, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": true }),
1334
1334
  /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 text-sm text-muted-foreground/70 truncate", children: t("appShell.sidebarCustomizationPreviewSearchPlaceholder", "Search...") })
1335
- ] }),
1335
+ ] }) }),
1336
1336
  groups.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-2 text-sm text-muted-foreground", children: t("appShell.sidebarCustomizationPreviewEmpty", "No groups to preview.") }) : /* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-2", children: groups.map((group, gi) => {
1337
1337
  const visibleItems = group.items.filter((item) => item.hidden !== true);
1338
1338
  if (visibleItems.length === 0) return null;
1339
- return /* @__PURE__ */ jsxs("div", { children: [
1340
- /* @__PURE__ */ jsx("div", { className: "w-full px-1 justify-between flex text-xs font-medium uppercase tracking-wider text-muted-foreground/70 py-1", children: /* @__PURE__ */ jsx("span", { children: group.name }) }),
1341
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1", children: visibleItems.map((item) => {
1342
- const itemKey = resolveItemKey(item);
1343
- const isActive = activeKey === itemKey;
1344
- return /* @__PURE__ */ jsxs(
1345
- "div",
1346
- {
1347
- className: `relative text-sm font-medium rounded-lg inline-flex items-center w-full px-3 py-2 gap-2 ${isActive ? "bg-muted text-foreground" : "text-muted-foreground"}`,
1348
- children: [
1349
- isActive ? /* @__PURE__ */ jsx(
1350
- "span",
1351
- {
1352
- "aria-hidden": true,
1353
- className: "absolute left-[-12px] top-2 w-1 h-5 rounded-r bg-foreground"
1354
- }
1355
- ) : null,
1356
- /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(SidebarPreviewIcon, { item }) }),
1357
- /* @__PURE__ */ jsx("span", { className: "truncate", children: item.title })
1358
- ]
1359
- },
1360
- itemKey
1361
- );
1362
- }) }),
1363
- gi < groups.length - 1 ? /* @__PURE__ */ jsx("div", { className: "my-2 border-t -ml-3 -mr-4" }) : null
1364
- ] }, resolveGroupKey(group));
1339
+ return /* @__PURE__ */ jsxs(
1340
+ "div",
1341
+ {
1342
+ className: `px-3 ${gi < groups.length - 1 ? "border-b pb-2" : ""}`,
1343
+ children: [
1344
+ /* @__PURE__ */ jsx("div", { className: "w-full px-1 justify-between flex text-xs font-medium uppercase tracking-wider text-muted-foreground/70 py-1", children: /* @__PURE__ */ jsx("span", { children: group.name }) }),
1345
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1", children: visibleItems.map((item) => {
1346
+ const itemKey = resolveItemKey(item);
1347
+ const isActive = activeKey === itemKey;
1348
+ return /* @__PURE__ */ jsxs(
1349
+ "div",
1350
+ {
1351
+ className: `relative text-sm font-medium rounded-lg inline-flex items-center w-full px-3 py-2 gap-2 ${isActive ? "bg-muted text-foreground" : "text-muted-foreground"}`,
1352
+ children: [
1353
+ isActive ? /* @__PURE__ */ jsx(
1354
+ "span",
1355
+ {
1356
+ "aria-hidden": true,
1357
+ className: "absolute left-[-12px] top-2 w-1 h-5 rounded-r bg-foreground"
1358
+ }
1359
+ ) : null,
1360
+ /* @__PURE__ */ jsx("span", { className: "flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(SidebarPreviewIcon, { item }) }),
1361
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: item.title })
1362
+ ]
1363
+ },
1364
+ itemKey
1365
+ );
1366
+ }) })
1367
+ ]
1368
+ },
1369
+ resolveGroupKey(group)
1370
+ );
1365
1371
  }) })
1366
1372
  ] }) });
1367
1373
  }