@inf-monkeys-tech/monkeys-design 2.0.389 → 2.0.392
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/artifacts/conversation-capability-catalog.json +1 -1
- package/dist/assembly-catalog.data.js +10 -10
- package/dist/beautiful.css +31 -0
- package/dist/components/beautiful/index.d.mts +2 -1
- package/dist/components/beautiful/index.d.ts +2 -1
- package/dist/components/beautiful/index.js +56 -56
- package/dist/components/beautiful/index.js.map +1 -1
- package/dist/components/beautiful/index.mjs +48 -48
- package/dist/components/beautiful/index.mjs.map +1 -1
- package/dist/sources/{5c0ba17575a45d178308f84c1bb66045469aff5f8e6580c3e4ca92f9bac72834.tsx → ab3a463e54918595b79681a411c9f8e5043333b5b3b7bdd2b93f6aaf5dc9f8ff.tsx} +5 -2
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ import { IceCreamCone as IconPopsicle2 } from "lucide-react";
|
|
|
17
17
|
import { Settings as IconSettingsGear1 } from "lucide-react";
|
|
18
18
|
import { PanelLeftClose as IconSidebarLeftArrow } from "lucide-react";
|
|
19
19
|
import { UserPlus as IconUserAdd } from "lucide-react";
|
|
20
|
-
import { MoreHorizontal, Pencil, Trash2, LoaderCircle } from "lucide-react";
|
|
20
|
+
import { MoreHorizontal, Pencil, Trash2, LoaderCircle, MessageSquare } from "lucide-react";
|
|
21
21
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from "../../primitives/Menus";
|
|
22
22
|
import { Dialog, DialogContent, DialogTitle, DialogDescription, DialogFooter } from "../../primitives/Overlays";
|
|
23
23
|
import { Input } from "../../primitives/FormControls";
|
|
@@ -67,6 +67,7 @@ export type SidebarNavProps = {
|
|
|
67
67
|
recentUpdate?: { id: string; label: string; manual?: boolean };
|
|
68
68
|
onRenameRecent?: (id: string, label: string) => void | Promise<void>;
|
|
69
69
|
onDeleteRecent?: (id: string) => void | Promise<void>;
|
|
70
|
+
/** Use `light-edge` for pill-shaped conversation rows with a glowing selection. */
|
|
70
71
|
variant?: string;
|
|
71
72
|
};
|
|
72
73
|
|
|
@@ -218,7 +219,7 @@ export function BUISidebarNav({
|
|
|
218
219
|
footerLabel = "",
|
|
219
220
|
footerIcon,
|
|
220
221
|
onFooterClick,
|
|
221
|
-
recents = EMPTY_RECENTS, recentUpdate, onRenameRecent, onDeleteRecent,
|
|
222
|
+
recents = EMPTY_RECENTS, recentUpdate, onRenameRecent, onDeleteRecent, variant,
|
|
222
223
|
}: SidebarNavProps) {
|
|
223
224
|
const translate = useBUICopy();
|
|
224
225
|
const [collapsed, setCollapsed] = useState(false);
|
|
@@ -294,6 +295,7 @@ export function BUISidebarNav({
|
|
|
294
295
|
return <BUIScope>{(
|
|
295
296
|
<aside
|
|
296
297
|
data-sidebar-collapsed={collapsed}
|
|
298
|
+
data-sidebar-variant={variant === "light-edge" ? variant : undefined}
|
|
297
299
|
aria-label={translate("Workspace navigation")}
|
|
298
300
|
className={`relative flex shrink-0 overflow-hidden transition-[width] ${fill ? "h-full" : "h-[600px]"} ${className}`}
|
|
299
301
|
style={{
|
|
@@ -452,6 +454,7 @@ export function BUISidebarNav({
|
|
|
452
454
|
<button type="button" title={item.label} aria-current={active ? "page" : undefined}
|
|
453
455
|
onClick={() => { selectNav("chats"); if (activeTitle === undefined) setLocalActiveTitle(item.label); onPick?.(item.id, item.label, item.prompt); }}
|
|
454
456
|
className="sidebar-recent-select min-w-0 flex-1 self-stretch text-left">
|
|
457
|
+
{variant === "light-edge" && <MessageSquare size={16} aria-hidden="true" />}
|
|
455
458
|
<span className={`sidebar-copy block truncate text-sm font-medium ${active ? "text-ink" : "text-ink-2"}`}>{item.label}</span>
|
|
456
459
|
</button>
|
|
457
460
|
{item.running && <span className="sidebar-recent-running" role="status" aria-label={translate("recentRunning")} title={translate("recentRunning")}><LoaderCircle size={16} className="animate-spin" aria-hidden="true" /></span>}
|