"use client"; import * as React from "react"; import { Badge } from "@/components/ui/badge"; import { Input } from "@/components/ui/input"; import { SettingsFormRow } from "@/components/settings-form-row"; import { DotPattern } from "@exxatdesignux/ui/components/ui/dot-pattern"; import { DragHandleGripIcon } from "@exxatdesignux/ui/components/ui/drag-handle-grip"; import { HorizontalScrollControls, HorizontalScrollViewport, useHorizontalScrollAffordances, } from "@exxatdesignux/ui/components/ui/horizontal-scroll-controls"; import { HorizontalScrollRegion } from "@exxatdesignux/ui/components/ui/horizontal-scroll-region"; import { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "@exxatdesignux/ui/components/ui/resizable"; import { NestedSecondaryPanelShell } from "@exxatdesignux/ui/components/templates/nested-secondary-panel-shell"; import { cn } from "@/lib/utils"; const CHIPS = [ "Placements", "Students", "Preceptors", "Compliance", "Sites", "Cohorts", "Evaluations", "Timesheets", "Case logs", "Documents", ]; /* ── dot-pattern ─────────────────────────────────────────────────────── */ export function DotPatternPreview() { return (
Decorative background, content stays on top
); } /* ── drag-handle-grip ────────────────────────────────────────────────── */ export function DragHandleGripPreview() { const [items, setItems] = React.useState(["Overview", "Placements", "Compliance"]); const move = (i: number, dir: -1 | 1) => setItems((prev) => { const next = [...prev]; const j = i + dir; if (j < 0 || j >= next.length) return prev; [next[i], next[j]] = [next[j], next[i]]; return next; }); return ( ); } /* ── horizontal-scroll-controls ──────────────────────────────────────── */ export function HorizontalScrollControlsPreview() { const ref = React.useRef(null); const a = useHorizontalScrollAffordances(ref); return (
{CHIPS.map((c) => ( {c} ))} {a.overflowing ? ( ) : null}
); } /* ── horizontal-scroll-region ────────────────────────────────────────── */ export function HorizontalScrollRegionPreview() { return (
{CHIPS.map((c, i) => ( {c} ))} {["Library", "Questions", "Clinical skills", "Wound care", "Dressing change"].map((c) => ( {c} / ))}
); } /* ── resizable ───────────────────────────────────────────────────────── */ export function ResizablePreview() { return (
Scope rail
Drag the handle, or focus it and use arrow keys.
); } /* ── nested-secondary-panel-shell ────────────────────────────────────── */ function RailItems({ compact }: { compact: boolean }) { const rows = [ { icon: "fa-list", label: "All questions" }, { icon: "fa-star", label: "Favorites" }, { icon: "fa-folder", label: "Clinical skills" }, ]; return (