"use client"; import * as React from "react"; import { DataRowList } from "@exxatdesignux/ui/components/data-views/data-row-list"; import { FinderPanelView } from "@exxatdesignux/ui/components/data-views/finder-panel-view"; import { FolderGridView } from "@exxatdesignux/ui/components/data-views/folder-grid-view"; import { ListPageBoardCard, ListPageBoardCardAvatar, ListPageBoardCardBadgeRow, ListPageBoardCardBody, ListPageBoardCardHeader, ListPageBoardCardSecondary, ListPageBoardCardTitleRow, } from "@exxatdesignux/ui/components/data-views/list-page-board-card"; import { ListPageBoardTemplate } from "@exxatdesignux/ui/components/data-views/list-page-board-template"; import { ListPageTreePanelShell } from "@exxatdesignux/ui/components/data-views/list-page-tree-panel-shell"; import { OutlineTreeLeafButton, OutlineTreeMenu, OutlineTreeMenuItem, OutlineTreeSub, OutlineTreeSubItem, } from "@exxatdesignux/ui/components/data-views/outline-tree-menu"; import { ListPageViewFrame, LIST_PAGE_VIEW_FRAME_MAX_ICON_GRID, } from "@exxatdesignux/ui/components/ui/list-page-view-frame"; import { Badge } from "@/components/ui/badge"; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandShortcut, } from "@/components/ui/command"; type Placement = { id: string; name: string; site: string; initials: string; status: "Active" | "Pending" | "Completed"; group: string; }; const ROWS: Placement[] = [ { id: "p1", name: "Maya Johnson", site: "Riverside Medical Center", initials: "MJ", status: "Active", group: "nursing" }, { id: "p2", name: "Daniel Okafor", site: "Northside Clinic", initials: "DO", status: "Pending", group: "nursing" }, { id: "p3", name: "Priya Raman", site: "Lakeview Rehab", initials: "PR", status: "Completed", group: "therapy" }, { id: "p4", name: "Sam Whitaker", site: "Harbor Pharmacy", initials: "SW", status: "Active", group: "pharmacy" }, { id: "p5", name: "Lena Fischer", site: "Summit Health", initials: "LF", status: "Pending", group: "therapy" }, ]; function RecordCard({ row, layout = "stack" }: { row: Placement; layout?: "stack" | "row" }) { if (layout === "row") { return ( } rowEnd={{row.status}} >

{row.name}

{row.site}
); } return ( } /> {row.status} {row.site} ); } export function ListPageBoardCardPreview() { return (
); } export function ListPageBoardTemplatePreview() { return (
r.status === "Pending" }, { id: "active", label: "Active", filter: (r: Placement) => r.status === "Active" }, { id: "done", label: "Completed", filter: (r: Placement) => r.status === "Completed" }, ]} rows={ROWS} getRowKey={(r) => r.id} renderCard={(r) => } />
); } export function DataRowListPreview() { const [open, setOpen] = React.useState("p1"); return (
r.id} ariaLabel="Placements list" openRowId={open} renderRow={(r) => ( )} />
); } const GROUPS = [ { id: "all", label: "All", icon: "fa-light fa-layer-group", count: ROWS.length }, { id: "nursing", label: "Nursing", icon: "fa-light fa-user-nurse", count: 2 }, { id: "therapy", label: "Therapy", icon: "fa-light fa-hand-holding-medical", count: 2 }, { id: "pharmacy", label: "Pharmacy", icon: "fa-light fa-prescription-bottle-medical", count: 1 }, ]; export function FinderPanelViewPreview() { return (
r.id} getRowGroupId={(r) => r.group} renderListRow={(r, selected) => (

{r.name}

{r.site}

)} renderDetail={(r) => (

{r.name}

{r.site}

{r.status}
)} />
); } export function FolderGridViewPreview() { return (
g.id} ariaLabel="Programs folder view preview" constrainWidth className="mx-0 lg:mx-0" renderTile={(g) => (