import { useState, type ComponentType } from 'react' import { IconBold, IconFile, IconInfoCircle, IconItalic, IconSearch, IconUnderline, IconX } from '@tabler/icons-react' import { Bar, BarChart, CartesianGrid, XAxis } from 'recharts' import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/ui-components/accordion' import { Alert, AlertDescription, AlertTitle } from '@/ui-components/alert' import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger } from '@/ui-components/alert-dialog' import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentMedia, AttachmentTitle } from '@/ui-components/attachment' import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup } from '@/ui-components/avatar' import { Badge } from '@/ui-components/badge' import { Button } from '@/ui-components/button' import { ButtonGroup, ButtonGroupText } from '@/ui-components/button-group' import { Calendar } from '@/ui-components/calendar' import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/ui-components/card' import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from '@/ui-components/carousel' import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig } from '@/ui-components/chart' import { Checkbox } from '@/ui-components/checkbox' import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/ui-components/collapsible' import { Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList } from '@/ui-components/combobox' import { ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuTrigger } from '@/ui-components/context-menu' import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '@/ui-components/dialog' import { Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger } from '@/ui-components/drawer' import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from '@/ui-components/dropdown-menu' import { Field, FieldDescription, FieldGroup, FieldLabel } from '@/ui-components/field' import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/ui-components/hover-card' import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText } from '@/ui-components/input-group' import { Input } from '@/ui-components/input' import { Kbd, KbdGroup } from '@/ui-components/kbd' import { Label } from '@/ui-components/label' import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from '@/ui-components/pagination' import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '@/ui-components/popover' import { Progress, ProgressLabel, ProgressValue } from '@/ui-components/progress' import { RadioGroup, RadioGroupItem } from '@/ui-components/radio-group' import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@/ui-components/resizable' import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '@/ui-components/select' import { Separator } from '@/ui-components/separator' import { Skeleton } from '@/ui-components/skeleton' import { Slider } from '@/ui-components/slider' import { Spinner } from '@/ui-components/spinner' import { Switch } from '@/ui-components/switch' import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from '@/ui-components/table' import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/ui-components/tabs' import { Textarea } from '@/ui-components/textarea' import { Toggle } from '@/ui-components/toggle' import { ToggleGroup, ToggleGroupItem } from '@/ui-components/toggle-group' import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/ui-components/tooltip' const comboboxItems = ['React', 'Vue', 'Svelte', 'Solid'] const selectItems = [ { label: 'Apple', value: 'apple' }, { label: 'Banana', value: 'banana' }, { label: 'Pear', value: 'pear' } ] const chartData = [ { month: 'Jan', orders: 24 }, { month: 'Feb', orders: 38 }, { month: 'Mar', orders: 31 }, { month: 'Apr', orders: 46 } ] const chartConfig = { orders: { label: 'Orders', color: 'var(--primary)' } } satisfies ChartConfig function AccordionPreview() { return ( When will my order arrive? Standard delivery takes three to five business days. Can I return it? Unused items can be returned within 30 days. ) } function AlertPreview() { return ( Order updated The delivery time changed to tomorrow at 10:00. ) } function AlertDialogPreview() { return ( }>Delete order Delete this order? This action cannot be undone. Cancel Delete ) } function AttachmentPreview() { return ( order-summary.pdf PDF · 240 KB ) } function AvatarPreview() { return ( MC JW LH ) } function BadgePreview() { return (
Ready Picking Draft Blocked Ghost Link
) } function ButtonPreview() { return (
) } function ButtonGroupPreview() { return ( Status ) } function CalendarPreview() { const [date, setDate] = useState(new Date()) return } function CardPreview() { return ( Order #1048 Desk lamp / Moss Two units, due today at 16:30. ) } function CarouselPreview() { return ( {[1, 2, 3].map(item => (
{item}
))}
) } function ChartPreview() { return ( } /> ) } function CheckboxPreview() { return ( Send shipping updates ) } function CollapsiblePreview() { const [open, setOpen] = useState(false) return (

Order details

}> {open ? 'Hide' : 'Show'}
Two desk lamps shipping to Berlin.
) } function ComboboxPreview() { return ( No matches. {item => ( {item} )} ) } function ContextMenuPreview() { return ( Right-click here Order Open ↵ Duplicate Delete ) } function DialogPreview() { return ( }>Open dialog Edit order Change the customer-facing order name. ) } function DrawerPreview() { return ( }>Open drawer Drawer The component stays inside this view frame.
Customer
Mira Chen
Status
Picking
Due
Today, 16:30
}>Close
) } function DropdownMenuPreview() { return ( }>Open menu Order actions Open ↵ Duplicate Move to Inbox Archive Delete ) } function FieldPreview() { return ( Email We will send order updates here. ) } function HoverCardPreview() { return ( }>Hover for details

Mira Chen

Five orders since March.

) } function InputPreview() { return } function InputGroupPreview() { return ( ⌘K ) } function KbdPreview() { return (
Esc ⌘ ⇧ K
) } function LabelPreview() { return (
) } function PaginationPreview() { return ( 1 2 ) } function PopoverPreview() { return ( }>Open popover Delivery details Choose where the order should be left. ) } function ProgressPreview() { return ( Upload ) } function RadioGroupPreview() { return (
) } function ResizablePreview() { return (
Orders
Details
) } function SelectPreview() { return ( ) } function SeparatorPreview() { return (

Order #1048

Desk lamp / Moss

Delivery today at 16:30.

) } function SkeletonPreview() { return (
) } function SliderPreview() { return (
) } function SpinnerPreview() { return (
Processing order…
) } function SwitchPreview() { return (
) } function TablePreview() { return ( Recent orders Order Status Total #1048 Picking €184.00 #1047 Packed €320.00
) } function TabsPreview() { return ( Overview Activity Five orders are ready to ship. Two orders changed in the last hour. ) } function TextareaPreview() { return