@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/EditorTableControls.d.ts +9 -1
- package/dist/EditorTableControls.d.ts.map +1 -1
- package/dist/NavItem.d.ts +3 -1
- package/dist/NavItem.d.ts.map +1 -1
- package/dist/editor.d.ts +1 -1
- package/dist/editor.d.ts.map +1 -1
- package/dist/editor.js +17 -1
- package/dist/editor.js.map +3 -3
- package/dist/index.js +6 -1
- package/dist/index.js.map +2 -2
- package/dist/linked.d.ts +1 -1
- package/package.json +1 -1
- package/registry.json +27 -2
- package/src/CardUnder.tsx +1 -1
- package/src/EditorTableControls.mdx +7 -2
- package/src/EditorTableControls.stories.tsx +16 -3
- package/src/EditorTableControls.test.tsx +40 -2
- package/src/EditorTableControls.tsx +25 -2
- package/src/NavItem.mdx +8 -0
- package/src/NavItem.stories.tsx +5 -0
- package/src/NavItem.test.tsx +40 -1
- package/src/NavItem.tsx +12 -1
- package/src/editor.ts +1 -1
- package/src/linked.ts +1 -1
- package/src/registry/registry.test.ts +3 -3
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
|
-
|
|
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
|