"use client" import * as React from "react" import { LeoAssistSelectionToolbarPreview } from "@/components/design-system/leo-assist-bar-previews" import { Button } from "@/components/ui/button" import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/components/ui/alert-dialog" import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "@/components/ui/context-menu" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog" import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/components/ui/hover-card" import { Popover, PopoverContent, PopoverTrigger, } from "@/components/ui/popover" import { Tip } from "@/components/ui/tip" export function DialogPreview() { return ( Open dialog Dialog title Short blocking confirmation copy. ) } export function AlertDialogPreview() { return ( Confirm action Archive pattern? This removes the pattern from the active catalog view. Cancel Archive ) } export function PopoverPreview() { return ( Open popover Anchored non-modal surface. ) } export function HoverCardPreview() { return ( Hover for preview Row identity preview content. ) } /** Simple overflow menu (row / toolbar). */ export function DropdownMenuPreview() { return ( Actions Edit Duplicate Open in new tab Delete ) } /** Groups, checkboxes, radio, and submenu. */ export function DropdownMenuRichPreview() { const [showArchived, setShowArchived] = React.useState(false) const [density, setDensity] = React.useState("comfortable") return ( View options Display setShowArchived(v === true)} > Show archived Density Compact Comfortable Spacious Share Copy link Email coordinators Export CSV ) } /** Icon-only trigger (hub row overflow). */ export function DropdownMenuIconPreview() { return ( View details Move to folder Remove ) } /** Right-click contextual menu with groups, shortcuts, and submenu. */ export function ContextMenuPreview() { const [bookmarked, setBookmarked] = React.useState(true) const [priority, setPriority] = React.useState("normal") return ( Right-click this surface for the contextual menu Question Open ↵ Duplicate ⌘D setBookmarked(v === true)} > Bookmarked Priority High Normal Low Move to Library Drafts Archive Delete ) } /** Canonical demo lives on Leo Assist Bar; re-exported for Dropdown Menu docs. */ export function TextSelectionToolbarPreview() { return } export function TipPreview() { return ( ) } export function TooltipPreview() { return ( Hover me ) }
Anchored non-modal surface.
Row identity preview content.