@lovett/ui 0.2.8 → 0.2.9

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
@@ -1363,23 +1363,13 @@ function SidebarNavItem({
1363
1363
  ROW_BASE,
1364
1364
  active ? ROW_ACTIVE : ROW_REST,
1365
1365
  collapsed && "justify-center px-0",
1366
- nested && !collapsed && "h-8 pl-[2.375rem] text-[13px]",
1366
+ // A nested row is a step shorter and a step smaller; it keeps its icon.
1367
+ nested && !collapsed && "h-8 gap-2.5 px-2 text-[13px]",
1367
1368
  className
1368
1369
  );
1369
1370
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
1370
1371
  active && !nested && /* @__PURE__ */ jsx(ActiveBar, {}),
1371
- (!nested || collapsed) && /* @__PURE__ */ jsx(RowIcon, { icon }),
1372
- nested && !collapsed && // The connector: a dot on the group's rail, filled when active.
1373
- /* @__PURE__ */ jsx(
1374
- "span",
1375
- {
1376
- "aria-hidden": "true",
1377
- className: cn(
1378
- "absolute left-[1.0625rem] top-1/2 h-1.5 w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors",
1379
- active ? "bg-[rgb(var(--accent))]" : "bg-[rgb(var(--sidebar-rail))]"
1380
- )
1381
- }
1382
- ),
1372
+ /* @__PURE__ */ jsx(RowIcon, { icon }),
1383
1373
  !collapsed && /* @__PURE__ */ jsx("span", { className: "flex-1 truncate", children: label }),
1384
1374
  !collapsed && badge !== void 0 && badge !== null && /* @__PURE__ */ jsxs(Fragment, { children: [
1385
1375
  " ",
@@ -1487,7 +1477,7 @@ function SidebarNavGroup({
1487
1477
  id: bodyId,
1488
1478
  role: "group",
1489
1479
  "aria-labelledby": `${labelId}-text`,
1490
- className: "relative flex flex-col gap-0.5 py-0.5 before:absolute before:bottom-1 before:left-[1.0625rem] before:top-1 before:w-px before:-translate-x-1/2 before:bg-[rgb(var(--sidebar-rail))]",
1480
+ className: "ml-[calc(1.0625rem-0.5px)] flex flex-col gap-0.5 border-l border-[rgb(var(--sidebar-rail))] py-1 pl-2",
1491
1481
  inert: !open,
1492
1482
  "aria-hidden": !open,
1493
1483
  children