@estiva-app/ui 0.77.0 → 0.79.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
@@ -3339,6 +3339,7 @@ function NavItem({
3339
3339
  menuLabel,
3340
3340
  action,
3341
3341
  hint,
3342
+ tooltip,
3342
3343
  unread = false,
3343
3344
  urgent = false,
3344
3345
  children,
@@ -3395,7 +3396,11 @@ function NavItem({
3395
3396
  children: icon
3396
3397
  }
3397
3398
  ),
3398
- /* @__PURE__ */ jsx50("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
3399
+ tooltip?.trim() ? (
3400
+ // On the label alone, not the row: the ⋮ and the action keep their
3401
+ // own tooltips, and the two never stand up at once.
3402
+ /* @__PURE__ */ jsx50(WithTooltip, { label: tooltip, inline: true, wrapperClassName: "flex min-w-0 flex-1", children: /* @__PURE__ */ jsx50("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }) })
3403
+ ) : /* @__PURE__ */ jsx50("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
3399
3404
  hint != null && // Takes room only while it shows, so the label gives way to it.
3400
3405
  /* @__PURE__ */ jsx50("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
3401
3406
  buttons > 1 && // Two buttons: the second one's room (24px and the 4px between them, the